@myagentroam/node 0.9.57 → 0.9.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x4a8d97=_0x4e72;(function(_0x4b9be5,_0x403d0a){const _0x33d5bb=_0x4e72,_0x286cea=_0x4b9be5();while(!![]){try{const _0x4b7d68=-parseInt(_0x33d5bb(0x303))/(0x1*-0x1f2d+-0x10f7*0x1+0x3025)*(parseInt(_0x33d5bb(0x2aa))/(0xecd*0x2+0xf48+-0xb38*0x4))+parseInt(_0x33d5bb(0x1ba))/(0x18d*-0x1+-0x1*-0xc43+-0xab3*0x1)+parseInt(_0x33d5bb(0x358))/(0x1d*0xe5+-0x83f+-0x11ae)+-parseInt(_0x33d5bb(0x20b))/(0x6fa+-0x17af+-0x85d*-0x2)+-parseInt(_0x33d5bb(0x313))/(-0x39*0xc+0x159*-0x9+0xed3)*(parseInt(_0x33d5bb(0x22c))/(-0x2*-0x63c+0x125b+-0x1ecc))+-parseInt(_0x33d5bb(0x267))/(0x51a*-0x1+-0x1*-0x517+0xb*0x1)*(-parseInt(_0x33d5bb(0x2e1))/(-0x1*-0x551+-0x3*-0xf1+0x19f*-0x5))+parseInt(_0x33d5bb(0x1a3))/(0x1*0x761+0xd79*-0x2+0x139b);if(_0x4b7d68===_0x403d0a)break;else _0x286cea['push'](_0x286cea['shift']());}catch(_0x49a553){_0x286cea['push'](_0x286cea['shift']());}}}(_0x20f4,0x490be+0x7a1aa+0x1*-0x2dda3));function _0x4e72(_0x2b6eb2,_0x9a12d9){_0x2b6eb2=_0x2b6eb2-(-0xd4c+-0x4f*0x3b+0x211e);const _0x24be43=_0x20f4();let _0xb3376c=_0x24be43[_0x2b6eb2];if(_0x4e72['EoCBZy']===undefined){var _0x117063=function(_0x392b43){const _0x549f58='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1db7b1='',_0x1af74b='';for(let _0x2ac818=-0x1*-0x1f4d+-0x36a*0x3+-0x1*0x150f,_0x26bdad,_0x1f14b2,_0x4889ef=0x1ae9+0x4ba+0x59*-0x5b;_0x1f14b2=_0x392b43['charAt'](_0x4889ef++);~_0x1f14b2&&(_0x26bdad=_0x2ac818%(-0x96a+-0x55a*-0x1+0xae*0x6)?_0x26bdad*(-0x23ff+0x1*-0x1273+0x36b2)+_0x1f14b2:_0x1f14b2,_0x2ac818++%(0x22e+0x2360+-0x258a))?_0x1db7b1+=String['fromCharCode'](0x14ba+-0x1*-0x183+-0x153e*0x1&_0x26bdad>>(-(-0x30*0x57+-0x2*-0xf3e+0x62*-0x25)*_0x2ac818&0x444+0x22b5+-0xd*0x2ff)):-0x1f52+-0x7*0x3d8+-0x3a*-0x101){_0x1f14b2=_0x549f58['indexOf'](_0x1f14b2);}for(let _0x5f5bf6=-0x27e+0x2597*0x1+-0x2319,_0x4ce32a=_0x1db7b1['length'];_0x5f5bf6<_0x4ce32a;_0x5f5bf6++){_0x1af74b+='%'+('00'+_0x1db7b1['charCodeAt'](_0x5f5bf6)['toString'](-0x15ec+-0x2081+-0x1*-0x367d))['slice'](-(-0x16c6+0x1*-0x1ac9+0x1*0x3191));}return decodeURIComponent(_0x1af74b);};_0x4e72['udmSQz']=_0x117063,_0x4e72['axWemx']={},_0x4e72['EoCBZy']=!![];}const _0x39db94=_0x24be43[0x149f*0x1+-0x1bc7+0x1*0x728];_0x4e72['rQwuvQ']!==_0x39db94&&(_0x4e72['axWemx']={},_0x4e72['rQwuvQ']=_0x39db94);const _0x1f4b5e=_0x4e72['axWemx'][_0x2b6eb2];return _0x1f4b5e===undefined?(_0xb3376c=_0x4e72['udmSQz'](_0xb3376c),_0x4e72['axWemx'][_0x2b6eb2]=_0xb3376c):_0xb3376c=_0x1f4b5e,_0xb3376c;}import{createHash,randomUUID}from'node:crypto';import{constants}from'node:fs';import{lstat,mkdir,open,readFile,rename,rm,utimes}from'node:fs/promises';import{isAbsolute,join,relative,resolve,sep}from'node:path';import{conversationTurnSchema,conversationTemplateDraftSchema,conversationTemplateSummarySchema,hostedConversationConfigUpdateInputSchema,hostedConversationCreateInputSchema,hostedConversationDeleteResultSchema,hostedConversationFileDeleteInputSchema,hostedConversationFileDeleteResultSchema,hostedConversationFileReadInputSchema,hostedConversationFileReadResultSchema,hostedConversationFilesSchema,hostedConversationIdInputSchema,hostedConversationImageReadInputSchema,hostedConversationListInputSchema,hostedConversationListPageSchema,hostedConversationMessageInputSchema,hostedConversationMetadataUpdateInputSchema,hostedConversationRollbackInputSchema,hostedConversationSnapshotSchema,hostedConversationSummarySchema,hostedConversationUnwatchInputSchema,hostedConversationUploadChunkInputSchema,hostedConversationUploadControlInputSchema,hostedConversationUploadCreateInputSchema,hostedConversationUploadPreflightInputSchema,hostedConversationUploadPreflightResultSchema,hostedConversationUploadSchema,hostedConversationWatchInputSchema,marAgentRuntimeModelConfigurationSchema,mcpInstallationConfigurationSchema,mcpRuntimeDescriptorSchema,resolveMarAgentDefaultReasoningEffort}from'@myagentroam/protocol';import{hostedConversationGeneratedImagesDisplayDirectory,hostedConversationImageRunId,marAgentGeneratedImagesDirectory}from'../runner/mar-agent/generated-images.js';import{sessionTitleFromFirstMessage}from'../util/node-operation-parsers.js';import{safeErrorCode}from'../util/safe-error.js';import{SessionWatchSlotCoordinator}from'./session-watch-slot-coordinator.js';const DEFAULT_HOSTED_CONVERSATION_TITLE=_0x4a8d97(0x278),HOST_POLICY_VERSION=-0x1*-0x622+0x3*-0xb0c+0x1b03,MAX_FILE_READ_BYTES=(-0x4*0x72+-0xac*-0x10+-0x6f8*0x1)*(0x2053+0x1e34+-0x3a87),WATCH_TTL_MS=0x13941+0x3cd6*0x2+-0x10325,RUNTIME_LINK_ROOTS=[_0x4a8d97(0x31c),_0x4a8d97(0x1d1),_0x4a8d97(0x35f),_0x4a8d97(0x305),_0x4a8d97(0x1f8)],RESERVED_SANDBOX_ROOTS=[_0x4a8d97(0x1ac),_0x4a8d97(0x2d3),_0x4a8d97(0x2b2),_0x4a8d97(0x31c),_0x4a8d97(0x1d1),_0x4a8d97(0x35f),_0x4a8d97(0x305),_0x4a8d97(0x1f8),_0x4a8d97(0x1df),_0x4a8d97(0x20f),_0x4a8d97(0x295),_0x4a8d97(0x26b)];export class HostedConversationNodeService{[_0x4a8d97(0x1b1)];[_0x4a8d97(0x1a8)];['id'];[_0x4a8d97(0x23c)]=new Map();[_0x4a8d97(0x2fb)]=new Map();[_0x4a8d97(0x2f2)]=new Map();[_0x4a8d97(0x1cd)]=new Map();[_0x4a8d97(0x1d7)]=new Map();[_0x4a8d97(0x2cc)]=new Set();[_0x4a8d97(0x29f)]=new Map();[_0x4a8d97(0x30e)]=new Map();[_0x4a8d97(0x1c6)]=new Set();[_0x4a8d97(0x25e)]=new Map();[_0x4a8d97(0x2c5)]=new Set();[_0x4a8d97(0x289)]=new Map();[_0x4a8d97(0x1b9)]=new Map();[_0x4a8d97(0x223)];[_0x4a8d97(0x1ff)]=![];[_0x4a8d97(0x375)]=0x1*-0x195+-0x1b25+-0x1*-0x1cba;[_0x4a8d97(0x2e4)]=0x8e6+0x1*-0x1ddb+0x14f5;constructor(_0xa3538a){const _0x2c0d23=_0x4a8d97;this[_0x2c0d23(0x1b1)]=_0xa3538a,this[_0x2c0d23(0x1a8)]=_0xa3538a[_0x2c0d23(0x1a8)]??Date[_0x2c0d23(0x1a8)],this['id']=_0xa3538a['id']??randomUUID,this[_0x2c0d23(0x223)]=_0xa3538a[_0x2c0d23(0x223)]??new SessionWatchSlotCoordinator();}[_0x4a8d97(0x19f)](){const _0x43c676=_0x4a8d97;return{'conversation.hosted.list':_0x7765ec=>this[_0x43c676(0x20e)](_0x7765ec),'conversation.hosted.create':_0x2fe67a=>this[_0x43c676(0x294)](_0x2fe67a),'conversation.hosted.get':_0x1e7209=>this[_0x43c676(0x1b2)](_0x1e7209),'conversation.hosted.watch':_0x162870=>this[_0x43c676(0x2b7)](_0x162870),'conversation.hosted.unwatch':_0x467f97=>this[_0x43c676(0x33e)](_0x467f97),'conversation.hosted.message':_0x577780=>this[_0x43c676(0x1f5)](_0x577780),'conversation.hosted.rollback':_0x2b0b12=>this[_0x43c676(0x36b)](_0x2b0b12),'conversation.hosted.interrupt':_0x3d98b3=>this[_0x43c676(0x1be)](_0x3d98b3),'conversation.hosted.config.update':_0x3fb6c2=>this[_0x43c676(0x19e)](_0x3fb6c2),'conversation.hosted.metadata.update':_0xe75d5e=>this[_0x43c676(0x2b0)](_0xe75d5e),'conversation.hosted.image.read':_0x4ce2cc=>this[_0x43c676(0x2dd)](_0x4ce2cc),'conversation.hosted.files.list':_0x310661=>this[_0x43c676(0x2ac)](_0x310661),'conversation.hosted.file.read':_0x3ba92c=>this[_0x43c676(0x237)](_0x3ba92c),'conversation.hosted.file.delete':_0x169ea4=>this[_0x43c676(0x21b)](_0x169ea4),'conversation.hosted.files.upload.preflight':_0x44ca1f=>this[_0x43c676(0x26f)](_0x44ca1f),'conversation.hosted.files.upload.create':_0x2f66a6=>this[_0x43c676(0x2ca)](_0x2f66a6),'conversation.hosted.files.upload.chunk':_0x1d8271=>this[_0x43c676(0x1f4)](_0x1d8271),'conversation.hosted.files.upload.status':_0x1e74d5=>this[_0x43c676(0x1db)](_0x1e74d5),'conversation.hosted.files.upload.complete':_0x2a615a=>this[_0x43c676(0x275)](_0x2a615a),'conversation.hosted.files.upload.cancel':_0xa32a80=>this[_0x43c676(0x32b)](_0xa32a80),'conversation.hosted.delete':_0x286ed4=>this[_0x43c676(0x1c2)](_0x286ed4)};}[_0x4a8d97(0x264)](){const _0x3ae8c3=_0x4a8d97;if(this[_0x3ae8c3(0x1ff)]||this[_0x3ae8c3(0x2fb)][_0x3ae8c3(0x32d)]>0x9d*0x33+0xb49*-0x1+-0x13fe||this[_0x3ae8c3(0x2f2)][_0x3ae8c3(0x32d)]>-0xd85+0xe46+-0xc1||this[_0x3ae8c3(0x1cd)][_0x3ae8c3(0x32d)]>-0xbe+-0x49*-0x6b+-0x1dc5||this[_0x3ae8c3(0x289)][_0x3ae8c3(0x32d)]>0x2597*0x1+-0x1cfd+-0x89a)return undefined;return this[_0x3ae8c3(0x1ff)]=!![],()=>{const _0x565e16=_0x3ae8c3;this[_0x565e16(0x1ff)]=![];};}[_0x4a8d97(0x20e)](_0x36cdeb){const _0x5036a7=_0x4a8d97,_0x133bf0=hostedRequest(_0x36cdeb),_0x797ee9=hostedConversationListInputSchema[_0x5036a7(0x374)](_0x133bf0[_0x5036a7(0x2ec)]),_0x196b1a=this[_0x5036a7(0x1b1)][_0x5036a7(0x27e)][_0x5036a7(0x1f3)]({'userId':_0x133bf0[_0x5036a7(0x317)],'limit':_0x797ee9[_0x5036a7(0x239)],..._0x797ee9[_0x5036a7(0x23d)]===undefined?{}:{'cursor':_0x797ee9[_0x5036a7(0x23d)]}});return hostedConversationListPageSchema[_0x5036a7(0x374)]({..._0x196b1a,'items':_0x196b1a[_0x5036a7(0x235)][_0x5036a7(0x2c1)](_0x51d74c=>({..._0x51d74c,'activity':this[_0x5036a7(0x333)](_0x51d74c['id'])}))});}[_0x4a8d97(0x294)](_0x49dfa1){const _0x3ab078=_0x4a8d97;if(this[_0x3ab078(0x1ff)])return Promise[_0x3ab078(0x1e3)](new Error(_0x3ab078(0x2f0)));const _0x218904=hostedRequest(_0x49dfa1),_0x38193f=hostedConversationCreateInputSchema[_0x3ab078(0x374)](_0x218904[_0x3ab078(0x2ec)]),_0xccd550=conversationTemplateSummarySchema[_0x3ab078(0x374)](_0x218904[_0x3ab078(0x205)]),_0xf16caa=runtimeModels(_0x218904[_0x3ab078(0x30f)]);if(_0xccd550['id']!==_0x38193f[_0x3ab078(0x1d4)]||_0xccd550[_0x3ab078(0x2e2)]!==this[_0x3ab078(0x1b1)][_0x3ab078(0x2e2)]()||!_0xccd550[_0x3ab078(0x37b)]||_0xccd550[_0x3ab078(0x304)]!==_0x3ab078(0x285)||_0xccd550[_0x3ab078(0x26c)]===null)throw new Error(_0x3ab078(0x31b));const _0x3065a3=_0x218904[_0x3ab078(0x317)]+'\x00'+_0x38193f[_0x3ab078(0x2ed)],_0x516fe0=this[_0x3ab078(0x23c)][_0x3ab078(0x1b2)](_0x3065a3);if(_0x516fe0!==undefined)return _0x516fe0;const _0x362962=this[_0x3ab078(0x1b1)][_0x3ab078(0x27e)][_0x3ab078(0x1c4)](_0x218904[_0x3ab078(0x317)],_0x38193f[_0x3ab078(0x2ed)]);if(_0x362962!==undefined)return this[_0x3ab078(0x252)](_0x218904[_0x3ab078(0x317)],_0x362962['id'],_0xf16caa);const _0x5573dd=this[_0x3ab078(0x308)](_0x218904[_0x3ab078(0x317)],_0x38193f[_0x3ab078(0x2ed)],_0xccd550,_0xf16caa,_0x218904[_0x3ab078(0x343)]);return this[_0x3ab078(0x23c)][_0x3ab078(0x21e)](_0x3065a3,_0x5573dd),void _0x5573dd[_0x3ab078(0x335)](()=>this[_0x3ab078(0x23c)][_0x3ab078(0x1c2)](_0x3065a3))[_0x3ab078(0x2e9)](()=>undefined),_0x5573dd;}async[_0x4a8d97(0x308)](_0x1296c6,_0x4de7c9,_0x49689f,_0x5ddc4c,_0x547dce){const _0x565690=_0x4a8d97;await this[_0x565690(0x1b1)][_0x565690(0x1ed)]?.();const _0x508176=await this[_0x565690(0x325)](_0x49689f[_0x565690(0x26c)],_0x49689f['id']),_0x597192=selectModel(_0x508176,_0x5ddc4c,_0x508176[_0x565690(0x21c)][_0x565690(0x1cf)]),_0x2ecf02=this['id'](),_0x482303=await this[_0x565690(0x1b1)][_0x565690(0x27e)][_0x565690(0x28b)](_0x1296c6,_0x2ecf02),_0x2f7e08=this[_0x565690(0x350)](_0x482303[_0x565690(0x29e)],_0x508176),_0x56db0a=this[_0x565690(0x1dc)](_0x482303[_0x565690(0x29e)],_0x508176);let _0x1ed648;try{const _0x410504=await this[_0x565690(0x1b1)][_0x565690(0x32e)][_0x565690(0x29b)]({'conversationId':_0x2ecf02,'homeDirectory':_0x482303[_0x565690(0x29e)][_0x565690(0x1e0)],'workspaceDirectory':_0x508176[_0x565690(0x2c7)],'systemInstruction':systemInstruction(_0x508176),'defaultModelId':_0x597192['id'],'models':networkModels(allowedModels(_0x508176,_0x5ddc4c),_0x508176[_0x565690(0x33d)][_0x565690(0x211)]),..._0x547dce===undefined?{}:{'runtimeScopeId':_0x547dce},'pathMounts':_0x2f7e08,'processExecutor':_0x56db0a});_0x1ed648=_0x410504[_0x565690(0x1af)];const _0x523e4d=this[_0x565690(0x1a8)](),_0x472c59={'id':_0x2ecf02,'nodeId':this[_0x565690(0x1b1)][_0x565690(0x2e2)](),'sessionId':_0x1ed648,'templateId':_0x49689f['id'],'templateName':_0x49689f[_0x565690(0x21f)],'activeVersionId':_0x508176['id'],'title':DEFAULT_HOSTED_CONVERSATION_TITLE,'titleSource':_0x565690(0x1a0),'pinnedAt':null,'status':_0x565690(0x285),'modelId':_0x597192['id'],'createdAt':_0x523e4d,'updatedAt':_0x523e4d,'lastActivityAt':_0x523e4d,'userStorageKey':_0x482303[_0x565690(0x231)],'conversationStorageKey':_0x482303[_0x565690(0x1a9)],'clientRequestId':_0x4de7c9,'templateDeleted':![],'quota':{'usedBytes':0x0,'maxBytes':_0x508176[_0x565690(0x33d)][_0x565690(0x2cb)][_0x565690(0x1d9)]}},_0x40de87=await this[_0x565690(0x1b1)][_0x565690(0x27e)][_0x565690(0x308)](_0x472c59);return _0x40de87['id']!==_0x2ecf02&&(await this[_0x565690(0x1b1)][_0x565690(0x32e)][_0x565690(0x25b)]({'conversationId':_0x2ecf02,'sessionId':_0x1ed648,'homeDirectory':_0x482303[_0x565690(0x29e)][_0x565690(0x1e0)]})[_0x565690(0x2e9)](()=>undefined),await rm(_0x482303[_0x565690(0x29e)][_0x565690(0x282)],{'recursive':!![],'force':!![]})),this[_0x565690(0x252)](_0x1296c6,_0x40de87['id'],_0x5ddc4c);}catch(_0x436806){if(_0x1ed648!==undefined)await this[_0x565690(0x1b1)][_0x565690(0x32e)][_0x565690(0x25b)]({'conversationId':_0x2ecf02,'sessionId':_0x1ed648,'homeDirectory':_0x482303[_0x565690(0x29e)][_0x565690(0x1e0)]})[_0x565690(0x2e9)](()=>undefined);await rm(_0x482303[_0x565690(0x29e)][_0x565690(0x282)],{'recursive':!![],'force':!![]})[_0x565690(0x2e9)](()=>undefined);throw _0x436806;}}async[_0x4a8d97(0x1b2)](_0x4d273a){const _0xa08587=_0x4a8d97,_0xae4645=hostedRequest(_0x4d273a),_0x52f577=hostedConversationIdInputSchema[_0xa08587(0x374)](_0xae4645[_0xa08587(0x2ec)]);return this[_0xa08587(0x252)](_0xae4645[_0xa08587(0x317)],_0x52f577[_0xa08587(0x2d8)],runtimeModels(_0xae4645[_0xa08587(0x30f)]),_0xae4645[_0xa08587(0x323)]);}async[_0x4a8d97(0x252)](_0x44657e,_0x437d7a,_0x3cf5d5,_0x329ef6=![],_0x112dd0=![],_0xd2b1d4){const _0x2beb00=_0x4a8d97;if(_0x112dd0)return this[_0x2beb00(0x290)](_0x44657e,_0x437d7a,_0x3cf5d5,_0x329ef6,_0xd2b1d4);while(!![]){const _0x8307ff=this[_0x2beb00(0x1b9)][_0x2beb00(0x1b2)](_0x437d7a)??-0x2081+-0x1*0x1e81+0x3f02,_0x3b57f6=this[_0x2beb00(0x289)][_0x2beb00(0x1b2)](_0x437d7a);if(_0x3b57f6!==undefined){await _0x3b57f6[_0x2beb00(0x2e9)](()=>undefined);continue;}const _0x27203c=await this[_0x2beb00(0x290)](_0x44657e,_0x437d7a,_0x3cf5d5,_0x329ef6);if(!this[_0x2beb00(0x289)][_0x2beb00(0x215)](_0x437d7a)&&(this[_0x2beb00(0x1b9)][_0x2beb00(0x1b2)](_0x437d7a)??0x1*-0x1ac9+0x2d*-0xd2+-0x2c5*-0x17)===_0x8307ff)return _0x27203c;}}async[_0x4a8d97(0x290)](_0x21f1da,_0x19d6a7,_0x176c9f,_0x4a1f63,_0x55a581){const _0x409832=_0x4a8d97;let _0x5700e8=this[_0x409832(0x1b1)][_0x409832(0x27e)][_0x409832(0x36c)](_0x21f1da,_0x19d6a7);if(_0x4a1f63)_0x5700e8=await this[_0x409832(0x1b1)][_0x409832(0x27e)][_0x409832(0x259)](_0x21f1da,_0x19d6a7,this[_0x409832(0x1a8)]());const _0x1935d6=_0x5700e8[_0x409832(0x323)]?undefined:this[_0x409832(0x248)](_0x5700e8[_0x409832(0x1d4)]),_0x52d927=_0x1935d6??_0x5700e8[_0x409832(0x24f)],_0x17f926=await this[_0x409832(0x325)](_0x52d927,_0x5700e8[_0x409832(0x1d4)]),_0x435f6b=networkModels(allowedModels(_0x17f926,_0x176c9f),_0x17f926[_0x409832(0x33d)][_0x409832(0x211)]),_0xf1777f=this[_0x409832(0x1b1)][_0x409832(0x27e)][_0x409832(0x1fa)](_0x21f1da,_0x5700e8['id']),_0x49828b=_0x55a581??await this[_0x409832(0x1b1)][_0x409832(0x32e)][_0x409832(0x2cf)]({'conversationId':_0x5700e8['id'],'sessionId':_0x5700e8[_0x409832(0x1af)],'homeDirectory':_0xf1777f[_0x409832(0x1e0)],'modelId':_0x5700e8[_0x409832(0x24b)]});return hostedConversationSnapshotSchema[_0x409832(0x374)]({'nodeAppVersion':this[_0x409832(0x1b1)][_0x409832(0x1a2)]?.()??_0x409832(0x228),'conversation':this[_0x409832(0x33f)](_0x5700e8),'template':templateSummary(_0x5700e8,_0x17f926[_0x409832(0x33d)]),'run':this[_0x409832(0x2f2)][_0x409832(0x1b2)](_0x5700e8['id'])?.[_0x409832(0x1c3)]??null,'turns':_0x49828b,'files':this[_0x409832(0x1b1)][_0x409832(0x27e)][_0x409832(0x2ac)](_0x21f1da,_0x5700e8['id']),'models':_0x435f6b[_0x409832(0x2c1)](modelSummary),'error':null,'snapshotSequence':0x0});}async[_0x4a8d97(0x2b7)](_0xd9b7c5){const _0x147655=_0x4a8d97,_0x14885a=hostedRequest(_0xd9b7c5),_0x35db19=hostedConversationWatchInputSchema[_0x147655(0x374)](_0x14885a[_0x147655(0x2ec)]),_0x5e213e=this[_0x147655(0x1b1)][_0x147655(0x27e)][_0x147655(0x36c)](_0x14885a[_0x147655(0x317)],_0x35db19[_0x147655(0x2d8)]);if(this[_0x147655(0x2c5)][_0x147655(0x215)](_0x5e213e['id']))throw new Error(_0x147655(0x2c8));const _0x16de94=requireWatchSessionHash(_0x14885a[_0x147655(0x2ad)]),_0x58d719=watchOwnerKey(_0x16de94,_0x35db19[_0x147655(0x2f5)]);if(_0x35db19[_0x147655(0x1e5)]===_0x147655(0x1aa)){const _0xd5c85a=this[_0x147655(0x25e)][_0x147655(0x1b2)](_0x58d719);if(_0xd5c85a===undefined||!this[_0x147655(0x223)][_0x147655(0x1e4)](_0x58d719,_0xd5c85a[_0x147655(0x2d7)])||_0xd5c85a[_0x147655(0x2f4)]!==_0x35db19[_0x147655(0x2f4)]||_0xd5c85a[_0x147655(0x2d8)]!==_0x35db19[_0x147655(0x2d8)]||_0xd5c85a[_0x147655(0x317)]!==_0x14885a[_0x147655(0x317)]||_0xd5c85a[_0x147655(0x336)]<=Date[_0x147655(0x1a8)]()){this[_0x147655(0x1e2)](_0x58d719);throw new Error(_0x147655(0x342));}return _0xd5c85a[_0x147655(0x336)]=Date[_0x147655(0x1a8)]()+WATCH_TTL_MS,clearTimeout(_0xd5c85a[_0x147655(0x368)]),_0xd5c85a[_0x147655(0x368)]=this[_0x147655(0x216)](_0x58d719),this[_0x147655(0x23f)](_0xd5c85a);}const _0x252407=runtimeModels(_0x14885a[_0x147655(0x30f)]),_0x3a2c24=this[_0x147655(0x25e)][_0x147655(0x1b2)](_0x58d719);if(_0x3a2c24!==undefined&&this[_0x147655(0x223)][_0x147655(0x1e4)](_0x58d719,_0x3a2c24[_0x147655(0x2d7)])&&_0x3a2c24[_0x147655(0x2f4)]===_0x35db19[_0x147655(0x2f4)]&&_0x3a2c24[_0x147655(0x2d8)]===_0x35db19[_0x147655(0x2d8)]&&_0x3a2c24[_0x147655(0x317)]===_0x14885a[_0x147655(0x317)]&&_0x3a2c24[_0x147655(0x336)]>Date[_0x147655(0x1a8)]())return _0x3a2c24[_0x147655(0x336)]=Date[_0x147655(0x1a8)]()+WATCH_TTL_MS,clearTimeout(_0x3a2c24[_0x147655(0x368)]),_0x3a2c24[_0x147655(0x368)]=this[_0x147655(0x216)](_0x58d719),this[_0x147655(0x23f)](_0x3a2c24);this[_0x147655(0x1e2)](_0x58d719);const _0x5cef6f=this[_0x147655(0x223)][_0x147655(0x2c4)](_0x58d719,_0x147655(0x287),()=>this[_0x147655(0x1e2)](_0x58d719)),_0x4adbd9={'ownerKey':_0x58d719,'slotToken':_0x5cef6f,'sessionHash':_0x16de94,'workbenchConnectionId':_0x35db19[_0x147655(0x2f5)],'watchId':_0x35db19[_0x147655(0x2f4)],'conversationId':_0x35db19[_0x147655(0x2d8)],'templateId':_0x5e213e[_0x147655(0x1d4)],'userId':_0x14885a[_0x147655(0x317)],'models':_0x252407,'nodeGeneration':this[_0x147655(0x1b1)][_0x147655(0x201)]?.()??_0x147655(0x229),'pendingEvents':[],'expiresAt':Date[_0x147655(0x1a8)]()+WATCH_TTL_MS,'ready':![],'timer':undefined};return _0x4adbd9[_0x147655(0x368)]=this[_0x147655(0x216)](_0x58d719),this[_0x147655(0x25e)][_0x147655(0x21e)](_0x58d719,_0x4adbd9),void this[_0x147655(0x1d6)](_0x4adbd9),this[_0x147655(0x23f)](_0x4adbd9);}[_0x4a8d97(0x33e)](_0x51abe0){const _0x3bb891=_0x4a8d97,_0x846fee=hostedRequest(_0x51abe0),_0x5e0e44=hostedConversationUnwatchInputSchema[_0x3bb891(0x374)](_0x846fee[_0x3bb891(0x2ec)]);this[_0x3bb891(0x1b1)][_0x3bb891(0x27e)][_0x3bb891(0x36c)](_0x846fee[_0x3bb891(0x317)],_0x5e0e44[_0x3bb891(0x2d8)]);const _0x542287=watchOwnerKey(requireWatchSessionHash(_0x846fee[_0x3bb891(0x2ad)]),_0x5e0e44[_0x3bb891(0x2f5)]),_0x29a06f=this[_0x3bb891(0x25e)][_0x3bb891(0x1b2)](_0x542287);if(_0x29a06f?.[_0x3bb891(0x2f4)]===_0x5e0e44[_0x3bb891(0x2f4)]&&_0x29a06f[_0x3bb891(0x2d8)]===_0x5e0e44[_0x3bb891(0x2d8)]&&_0x29a06f[_0x3bb891(0x317)]===_0x846fee[_0x3bb891(0x317)])this[_0x3bb891(0x1e2)](_0x542287);return{'unwatched':!![]};}[_0x4a8d97(0x25c)](_0x5b0257,_0x2324ee){const _0x27c1fa=_0x4a8d97;return this[_0x27c1fa(0x276)](_0x5b0257,{'conversationId':_0x5b0257,'kind':_0x27c1fa(0x32e),'runtimeEvent':_0x2324ee});}[_0x4a8d97(0x277)](_0x301bd4){const _0x17e3f2=_0x4a8d97;return this[_0x17e3f2(0x2c5)][_0x17e3f2(0x215)](_0x301bd4)||this[_0x17e3f2(0x289)][_0x17e3f2(0x215)](_0x301bd4)||this[_0x17e3f2(0x2f2)][_0x17e3f2(0x215)](_0x301bd4)||this[_0x17e3f2(0x1cd)][_0x17e3f2(0x215)](_0x301bd4)||[...this[_0x17e3f2(0x25e)][_0x17e3f2(0x2d4)]()][_0x17e3f2(0x27a)](_0x349eeb=>_0x349eeb[_0x17e3f2(0x2d8)]===_0x301bd4)||[...this[_0x17e3f2(0x29f)][_0x17e3f2(0x2d4)]()][_0x17e3f2(0x27a)](_0x4a6285=>_0x4a6285[_0x17e3f2(0x2d8)]===_0x301bd4&&_0x4a6285[_0x17e3f2(0x304)]===_0x17e3f2(0x27f))||[...this[_0x17e3f2(0x2fb)][_0x17e3f2(0x355)]()][_0x17e3f2(0x27a)](_0x59c3d1=>_0x59c3d1[_0x17e3f2(0x2e5)](_0x301bd4+'\x00'));}[_0x4a8d97(0x319)](_0x4eb6ba){const _0x35eafa=_0x4a8d97;if(this[_0x35eafa(0x277)](_0x4eb6ba))return undefined;return this[_0x35eafa(0x2c5)][_0x35eafa(0x222)](_0x4eb6ba),()=>{const _0xc94f73=_0x35eafa;this[_0xc94f73(0x2c5)][_0xc94f73(0x1c2)](_0x4eb6ba);};}async[_0x4a8d97(0x297)](_0x3006d0){const _0x26a4ba=_0x4a8d97,_0xbcd46b=this[_0x26a4ba(0x1b1)][_0x26a4ba(0x27e)][_0x26a4ba(0x274)](_0x3006d0);await this[_0x26a4ba(0x1b1)][_0x26a4ba(0x32e)][_0x26a4ba(0x25b)]({'conversationId':_0x3006d0['id'],'sessionId':_0x3006d0[_0x26a4ba(0x1af)],'homeDirectory':_0xbcd46b[_0x26a4ba(0x1e0)]})[_0x26a4ba(0x2e9)](()=>undefined);}[_0x4a8d97(0x34d)](){const _0x52bfda=_0x4a8d97;for(const [_0xbacce4,_0x19c204]of this[_0x52bfda(0x2f2)]){const _0x4896ec=runInterruptionKey(_0xbacce4,_0x19c204[_0x52bfda(0x1c3)]['id']);this[_0x52bfda(0x2cc)][_0x52bfda(0x222)](_0x4896ec);if(!_0x19c204[_0x52bfda(0x351)]())this[_0x52bfda(0x2cc)][_0x52bfda(0x1c2)](_0x4896ec);}for(const _0x301ab6 of[...this[_0x52bfda(0x25e)][_0x52bfda(0x355)]()])this[_0x52bfda(0x1e2)](_0x301ab6);}[_0x4a8d97(0x1f5)](_0x14f423){const _0x22d3e0=_0x4a8d97;if(this[_0x22d3e0(0x1ff)])return Promise[_0x22d3e0(0x1e3)](new Error(_0x22d3e0(0x2f0)));const _0x189cf4=hostedRequest(_0x14f423),_0x308933=hostedConversationMessageInputSchema[_0x22d3e0(0x374)](_0x189cf4[_0x22d3e0(0x2ec)]);if(this[_0x22d3e0(0x289)][_0x22d3e0(0x215)](_0x308933[_0x22d3e0(0x2d8)]))return Promise[_0x22d3e0(0x1e3)](new Error(_0x22d3e0(0x2c8)));const _0x9d8f54=_0x308933[_0x22d3e0(0x2d8)]+'\x00'+_0x308933[_0x22d3e0(0x1b8)],_0x3b41fb=this[_0x22d3e0(0x2fb)][_0x22d3e0(0x1b2)](_0x9d8f54);if(_0x3b41fb!==undefined)return _0x3b41fb;const _0x285e96=this[_0x22d3e0(0x1b1)][_0x22d3e0(0x27e)][_0x22d3e0(0x314)](_0x189cf4[_0x22d3e0(0x317)],_0x308933[_0x22d3e0(0x2d8)],_0x308933[_0x22d3e0(0x1b8)]);if(_0x285e96!==undefined){const _0x190572=this[_0x22d3e0(0x1b1)][_0x22d3e0(0x27e)][_0x22d3e0(0x36c)](_0x189cf4[_0x22d3e0(0x317)],_0x308933[_0x22d3e0(0x2d8)]);return Promise[_0x22d3e0(0x363)]({'conversation':this[_0x22d3e0(0x33f)](_0x190572),'run':runFromMessage(_0x285e96)});}if([...this[_0x22d3e0(0x2fb)][_0x22d3e0(0x355)]()][_0x22d3e0(0x27a)](_0x150b34=>_0x150b34[_0x22d3e0(0x2e5)](_0x308933[_0x22d3e0(0x2d8)]+'\x00')))return Promise[_0x22d3e0(0x1e3)](new Error(_0x22d3e0(0x254)));const _0x566ab2=this[_0x22d3e0(0x36d)](_0x189cf4,_0x308933);return this[_0x22d3e0(0x2fb)][_0x22d3e0(0x21e)](_0x9d8f54,_0x566ab2),void _0x566ab2[_0x22d3e0(0x335)](()=>this[_0x22d3e0(0x2fb)][_0x22d3e0(0x1c2)](_0x9d8f54))[_0x22d3e0(0x2e9)](()=>undefined),_0x566ab2;}async[_0x4a8d97(0x36d)](_0x1207d2,_0x5ad7c7){const _0x5d5a1c=_0x4a8d97;let _0x2d7a36=this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x36c)](_0x1207d2[_0x5d5a1c(0x317)],_0x5ad7c7[_0x5d5a1c(0x2d8)]);if(this[_0x5d5a1c(0x2c5)][_0x5d5a1c(0x215)](_0x2d7a36['id']))throw new Error(_0x5d5a1c(0x2c8));if(this[_0x5d5a1c(0x289)][_0x5d5a1c(0x215)](_0x2d7a36['id']))throw new Error(_0x5d5a1c(0x2c8));if(_0x2d7a36[_0x5d5a1c(0x304)]!==_0x5d5a1c(0x285))throw new Error(_0x5d5a1c(0x2c8));if(this[_0x5d5a1c(0x2f2)][_0x5d5a1c(0x215)](_0x2d7a36['id']))throw new Error(_0x5d5a1c(0x254));const _0x47d3e5=sessionTitleFromFirstMessage(_0x5ad7c7[_0x5d5a1c(0x2e8)]),_0x4e8f0f=_0x47d3e5[_0x5d5a1c(0x299)]>0x20a4+0x1*0x210c+-0x41b0&&!this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x28c)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id']),_0xee7444=runtimeModels(_0x1207d2[_0x5d5a1c(0x30f)]),_0x24318b=this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x1fa)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id']);let _0xf871e0,_0x5652f4,_0x3e4a35,_0x272700;const _0x5cbd35=_0x2d7a36[_0x5d5a1c(0x323)]?undefined:this[_0x5d5a1c(0x248)](_0x2d7a36[_0x5d5a1c(0x1d4)]);if(_0x5cbd35!==undefined&&_0x5cbd35!==_0x2d7a36[_0x5d5a1c(0x24f)]){const _0x3144eb=_0x2d7a36[_0x5d5a1c(0x24f)],_0x27272a=_0x5cbd35;try{_0xf871e0=await this[_0x5d5a1c(0x325)](_0x27272a,_0x2d7a36[_0x5d5a1c(0x1d4)]),_0x5652f4=selectModel(_0xf871e0,_0xee7444,_0x5ad7c7[_0x5d5a1c(0x24b)]??_0xf871e0[_0x5d5a1c(0x21c)][_0x5d5a1c(0x1cf)]),_0x3e4a35=resolveMcpServers(_0xf871e0,this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x22b)]??process.env),this[_0x5d5a1c(0x350)](_0x24318b,_0xf871e0),this[_0x5d5a1c(0x1dc)](_0x24318b,_0xf871e0),_0x272700={'previousVersionId':_0x3144eb,'targetVersionId':_0x27272a};}catch(_0x59876b){this[_0x5d5a1c(0x2b9)](_0x2d7a36,_0x3144eb,_0x27272a,_0x59876b);throw new Error(_0x5d5a1c(0x1e7));}}else _0xf871e0=await this[_0x5d5a1c(0x325)](_0x2d7a36[_0x5d5a1c(0x24f)],_0x2d7a36[_0x5d5a1c(0x1d4)]),_0x5652f4=selectModel(_0xf871e0,_0xee7444,_0x5ad7c7[_0x5d5a1c(0x24b)]??_0x2d7a36[_0x5d5a1c(0x24b)]);const _0xd1f5e9=await Promise[_0x5d5a1c(0x352)](_0x5ad7c7[_0x5d5a1c(0x33c)][_0x5d5a1c(0x2c1)](_0x3c0a72=>this[_0x5d5a1c(0x31f)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id'],_0x3c0a72))),_0x1e7c6c=attachmentPrompt(_0x5ad7c7[_0x5d5a1c(0x2e8)],_0xd1f5e9),_0x2e2b65=marAgentGeneratedImagesDirectory(_0x24318b[_0x5d5a1c(0x1e0)],_0x2d7a36[_0x5d5a1c(0x1af)]),_0x2e660=hostedConversationGeneratedImagesDisplayDirectory(_0x2d7a36[_0x5d5a1c(0x1af)]);if(_0x2e2b65===undefined||_0x2e660===undefined)throw new Error(_0x5d5a1c(0x26e));await mkdir(_0x2e2b65,{'recursive':!![],'mode':0x1c0});const _0x35456a=await this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x2fc)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id']),_0x17a0cd=this[_0x5d5a1c(0x350)](_0x24318b,_0xf871e0,_0x2e2b65,_0x2e660,_0x35456a);this[_0x5d5a1c(0x20c)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36,_0x5d5a1c(0x260),this[_0x5d5a1c(0x1a8)]());const _0x3e7a87=[];let _0x5013d4=![];const _0x4de7c7=await this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x32e)][_0x5d5a1c(0x2fa)]({'conversationId':_0x2d7a36['id'],'sessionId':_0x2d7a36[_0x5d5a1c(0x1af)],'clientMessageId':_0x5ad7c7[_0x5d5a1c(0x1b8)],'userPrompt':_0x5ad7c7[_0x5d5a1c(0x2e8)],'prompt':_0x1e7c6c,'attachmentIds':_0x5ad7c7[_0x5d5a1c(0x33c)],'access':_0x5d5a1c(0x2a2),'modelId':_0x5652f4['id'],'models':networkModels(allowedModels(_0xf871e0,_0xee7444),_0xf871e0[_0x5d5a1c(0x33d)][_0x5d5a1c(0x211)]),..._0x1207d2[_0x5d5a1c(0x343)]===undefined?{}:{'runtimeScopeId':_0x1207d2[_0x5d5a1c(0x343)]},'systemInstruction':systemInstruction(_0xf871e0,_0x2e660),'homeDirectory':_0x24318b[_0x5d5a1c(0x1e0)],'workspaceDirectory':_0xf871e0[_0x5d5a1c(0x2c7)],'temporaryDirectory':_0x35456a,'pathMounts':_0x17a0cd,'processExecutor':this[_0x5d5a1c(0x1dc)](_0x24318b,_0xf871e0,_0x35456a,_0x2e2b65,_0x2e660),'mcpServers':_0x3e4a35??resolveMcpServers(_0xf871e0,this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x22b)]??process.env),'webAccess':_0xf871e0[_0x5d5a1c(0x33d)][_0x5d5a1c(0x211)]!==_0x5d5a1c(0x233),'onEvent':_0x59e55f=>{const _0x3cf30e=_0x5d5a1c;if(_0x5013d4)this[_0x3cf30e(0x25c)](_0x2d7a36['id'],_0x59e55f);else _0x3e7a87[_0x3cf30e(0x1e8)](_0x59e55f);}})[_0x5d5a1c(0x2e9)](_0x5be329=>{const _0x46f2a8=_0x5d5a1c;this[_0x46f2a8(0x20c)](_0x1207d2[_0x46f2a8(0x317)],_0x2d7a36,_0x46f2a8(0x338),this[_0x46f2a8(0x1a8)]());if(_0x272700!==undefined){this[_0x46f2a8(0x2b9)](_0x2d7a36,_0x272700[_0x46f2a8(0x35c)],_0x272700[_0x46f2a8(0x219)],_0x5be329);throw new Error(_0x46f2a8(0x1e7));}throw _0x5be329;}),_0xd67a76=_0x4de7c7[_0x5d5a1c(0x1c3)][_0x5d5a1c(0x2c0)];let _0x46eaae=![],_0x1685f6;try{this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x247)]({'conversationId':_0x2d7a36['id'],'clientMessageId':_0x5ad7c7[_0x5d5a1c(0x1b8)],'runId':_0x4de7c7[_0x5d5a1c(0x1c3)]['id'],'userTextPresent':_0x47d3e5[_0x5d5a1c(0x299)]>-0x1f2f+-0x8f8+-0x13*-0x21d,'status':_0x5d5a1c(0x292),'createdAt':_0xd67a76,'updatedAt':_0xd67a76}),_0x46eaae=!![];const _0x245707=this[_0x5d5a1c(0x1a8)]();_0x1685f6=await this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x1d2)]({'conversationId':_0x2d7a36['id'],'modelId':_0x5652f4['id'],'activityAt':_0x245707,..._0x272700===undefined?{}:{'templateVersion':{'expectedActiveVersionId':_0x272700[_0x5d5a1c(0x35c)],'activeVersionId':_0x272700[_0x5d5a1c(0x219)],'maxStorageBytes':_0xf871e0[_0x5d5a1c(0x33d)][_0x5d5a1c(0x2cb)][_0x5d5a1c(0x1d9)]}},..._0x4e8f0f?{'automaticTitle':_0x47d3e5}:{}});}catch(_0xb1aebf){try{_0x4de7c7[_0x5d5a1c(0x351)]();}catch{}const _0x154d7f=await _0x4de7c7[_0x5d5a1c(0x26a)][_0x5d5a1c(0x2e9)](()=>({'status':_0x5d5a1c(0x310),'completedAt':this[_0x5d5a1c(0x1a8)]()}));if(_0x46eaae)try{this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x210)](_0x2d7a36['id'],_0x5ad7c7[_0x5d5a1c(0x1b8)],_0x154d7f[_0x5d5a1c(0x304)],_0x154d7f[_0x5d5a1c(0x2a7)]);}catch{}this[_0x5d5a1c(0x20c)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36,_0x5d5a1c(0x338),_0x154d7f[_0x5d5a1c(0x2a7)]);if(_0x272700!==undefined)this[_0x5d5a1c(0x2b9)](_0x2d7a36,_0x272700[_0x5d5a1c(0x35c)],_0x272700[_0x5d5a1c(0x219)],_0xb1aebf);throw _0xb1aebf;}_0x2d7a36=_0x1685f6[_0x5d5a1c(0x261)];if(_0x272700!==undefined)this[_0x5d5a1c(0x276)](_0x2d7a36['id'],{'conversationId':_0x2d7a36['id'],'kind':_0x5d5a1c(0x37a),'upgrade':{'status':_0x5d5a1c(0x2bd),'previousVersionId':_0x272700[_0x5d5a1c(0x35c)],'targetVersionId':_0x272700[_0x5d5a1c(0x219)],'activeVersionId':_0x2d7a36[_0x5d5a1c(0x24f)],'conversation':this[_0x5d5a1c(0x33f)](_0x2d7a36),'error':null}});this[_0x5d5a1c(0x2f2)][_0x5d5a1c(0x21e)](_0x2d7a36['id'],_0x4de7c7),this[_0x5d5a1c(0x20c)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36,_0x5d5a1c(0x292),_0x4de7c7[_0x5d5a1c(0x1c3)][_0x5d5a1c(0x2c0)]);if(_0x1685f6[_0x5d5a1c(0x2cd)])this[_0x5d5a1c(0x276)](_0x2d7a36['id'],{'conversationId':_0x2d7a36['id'],'kind':_0x5d5a1c(0x261),'conversation':this[_0x5d5a1c(0x33f)](_0x2d7a36)});this[_0x5d5a1c(0x276)](_0x2d7a36['id'],{'conversationId':_0x2d7a36['id'],'kind':_0x5d5a1c(0x1c3),'run':_0x4de7c7[_0x5d5a1c(0x1c3)]}),_0x5013d4=!![];for(const _0x449540 of _0x3e7a87)this[_0x5d5a1c(0x25c)](_0x2d7a36['id'],_0x449540);_0x3e7a87[_0x5d5a1c(0x299)]=0x7c5+0x1e43+-0x2608;const _0x561851=_0x4de7c7[_0x5d5a1c(0x26a)][_0x5d5a1c(0x328)](_0x338b9f=>this[_0x5d5a1c(0x272)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id'],_0x5ad7c7[_0x5d5a1c(0x1b8)],_0x4de7c7[_0x5d5a1c(0x1c3)],_0x338b9f),()=>this[_0x5d5a1c(0x272)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id'],_0x5ad7c7[_0x5d5a1c(0x1b8)],_0x4de7c7[_0x5d5a1c(0x1c3)],{'status':_0x5d5a1c(0x310),'completedAt':this[_0x5d5a1c(0x1a8)]()}))[_0x5d5a1c(0x2e9)](()=>undefined)[_0x5d5a1c(0x335)](()=>{const _0x3677b5=_0x5d5a1c;this[_0x3677b5(0x2cc)][_0x3677b5(0x1c2)](runInterruptionKey(_0x2d7a36['id'],_0x4de7c7[_0x3677b5(0x1c3)]['id']));if(this[_0x3677b5(0x2f2)][_0x3677b5(0x1b2)](_0x2d7a36['id'])===_0x4de7c7)this[_0x3677b5(0x2f2)][_0x3677b5(0x1c2)](_0x2d7a36['id']);if(this[_0x3677b5(0x1cd)][_0x3677b5(0x1b2)](_0x2d7a36['id'])===_0x561851)this[_0x3677b5(0x1cd)][_0x3677b5(0x1c2)](_0x2d7a36['id']);});return this[_0x5d5a1c(0x1cd)][_0x5d5a1c(0x21e)](_0x2d7a36['id'],_0x561851),void _0x561851,{'conversation':this[_0x5d5a1c(0x33f)](_0x2d7a36),'run':_0x4de7c7[_0x5d5a1c(0x1c3)]};}[_0x4a8d97(0x36b)](_0x28fa27){const _0x32a908=_0x4a8d97;if(this[_0x32a908(0x1ff)])return Promise[_0x32a908(0x1e3)](new Error(_0x32a908(0x2f0)));const _0x1198c9=hostedRequest(_0x28fa27),_0x1e1a49=hostedConversationRollbackInputSchema[_0x32a908(0x374)](_0x1198c9[_0x32a908(0x2ec)]),_0x30bf5c=this[_0x32a908(0x1b1)][_0x32a908(0x27e)][_0x32a908(0x36c)](_0x1198c9[_0x32a908(0x317)],_0x1e1a49[_0x32a908(0x2d8)]);if(_0x30bf5c[_0x32a908(0x304)]!==_0x32a908(0x285)||this[_0x32a908(0x2c5)][_0x32a908(0x215)](_0x30bf5c['id'])||this[_0x32a908(0x289)][_0x32a908(0x215)](_0x30bf5c['id']))return Promise[_0x32a908(0x1e3)](new Error(_0x32a908(0x2c8)));if(this[_0x32a908(0x333)](_0x30bf5c['id'])[_0x32a908(0x304)]!==_0x32a908(0x338)||this[_0x32a908(0x2f2)][_0x32a908(0x215)](_0x30bf5c['id'])||this[_0x32a908(0x1cd)][_0x32a908(0x215)](_0x30bf5c['id'])||[...this[_0x32a908(0x2fb)][_0x32a908(0x355)]()][_0x32a908(0x27a)](_0x1035dc=>_0x1035dc[_0x32a908(0x2e5)](_0x30bf5c['id']+'\x00')))return Promise[_0x32a908(0x1e3)](new Error(_0x32a908(0x254)));const _0x460c59=this[_0x32a908(0x36a)](_0x1198c9,_0x30bf5c,_0x1e1a49);return this[_0x32a908(0x289)][_0x32a908(0x21e)](_0x30bf5c['id'],_0x460c59),void _0x460c59[_0x32a908(0x335)](()=>{const _0x34f129=_0x32a908;if(this[_0x34f129(0x289)][_0x34f129(0x1b2)](_0x30bf5c['id'])===_0x460c59)this[_0x34f129(0x289)][_0x34f129(0x1c2)](_0x30bf5c['id']);})[_0x32a908(0x2e9)](()=>undefined),_0x460c59;}async[_0x4a8d97(0x36a)](_0x204d0b,_0x57d0ec,_0xa60e27){const _0x30b251=_0x4a8d97,_0x2ae0b1=this[_0x30b251(0x1b1)][_0x30b251(0x27e)][_0x30b251(0x1fa)](_0x204d0b[_0x30b251(0x317)],_0x57d0ec['id']),_0x2c7109=(await this[_0x30b251(0x1b1)][_0x30b251(0x32e)][_0x30b251(0x2cf)]({'conversationId':_0x57d0ec['id'],'sessionId':_0x57d0ec[_0x30b251(0x1af)],'homeDirectory':_0x2ae0b1[_0x30b251(0x1e0)],'modelId':_0x57d0ec[_0x30b251(0x24b)]}))[_0x30b251(0x2c1)](_0x12d455=>conversationTurnSchema[_0x30b251(0x374)](_0x12d455)),_0x4ddc89=_0x2c7109[_0x30b251(0x1f6)](_0x290278=>_0x290278['id']===_0xa60e27[_0x30b251(0x2ce)]),_0x27bf26=_0x2c7109[_0x4ddc89],_0x44bf67=_0x27bf26?.[_0x30b251(0x235)][_0x30b251(0x206)](_0x4f43f0=>_0x4f43f0[_0x30b251(0x258)]===_0x30b251(0x265)&&_0x4f43f0[_0x30b251(0x304)]===_0x30b251(0x33a));if(_0x27bf26===undefined||!terminalHostedTurnStatus(_0x27bf26[_0x30b251(0x304)])||_0x44bf67===undefined||_0x27bf26[_0x30b251(0x1b0)]?.[_0x30b251(0x202)]!==_0xa60e27[_0x30b251(0x212)])throw new Error(_0x30b251(0x2c3));let _0xddc827;try{_0xddc827=await this[_0x30b251(0x1b1)][_0x30b251(0x32e)][_0x30b251(0x36b)]({'conversationId':_0x57d0ec['id'],'sessionId':_0x57d0ec[_0x30b251(0x1af)],'homeDirectory':_0x2ae0b1[_0x30b251(0x1e0)],'modelId':_0x57d0ec[_0x30b251(0x24b)],'boundaryTurnId':_0xa60e27[_0x30b251(0x212)]});}catch(_0x90f654){if(_0x90f654 instanceof Error&&_0x90f654[_0x30b251(0x1f5)]===_0x30b251(0x1eb))throw new Error(_0x30b251(0x2c3),{'cause':_0x90f654});throw _0x90f654;}this[_0x30b251(0x1b9)][_0x30b251(0x21e)](_0x57d0ec['id'],(this[_0x30b251(0x1b9)][_0x30b251(0x1b2)](_0x57d0ec['id'])??0x755*-0x1+0x3*-0x489+-0x10c*-0x14)+(0x416*-0x4+-0x1611+0x16*0x1bf)),await this[_0x30b251(0x1b1)][_0x30b251(0x27e)][_0x30b251(0x241)](_0x57d0ec['id'],Math[_0x30b251(0x1b6)](this[_0x30b251(0x1a8)](),_0xddc827[_0x30b251(0x34b)]));const _0x4886c5=await this[_0x30b251(0x252)](_0x204d0b[_0x30b251(0x317)],_0x57d0ec['id'],runtimeModels(_0x204d0b[_0x30b251(0x30f)]),_0x204d0b[_0x30b251(0x323)],!![],_0x2c7109[_0x30b251(0x2b1)](-0x32*-0x2b+-0xc4a+-0x4*-0xf9,_0x4ddc89));return this[_0x30b251(0x2e3)](_0x57d0ec['id'],_0x4886c5),_0x4886c5;}async[_0x4a8d97(0x272)](_0x74d2fe,_0x38b153,_0x5afa10,_0x5335b4,_0x8dd4a2){const _0x1e2333=_0x4a8d97,_0x2f0842=runInterruptionKey(_0x38b153,_0x5335b4['id']),_0x291b3d=this[_0x1e2333(0x2cc)][_0x1e2333(0x215)](_0x2f0842);let _0xc0bac1;try{this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x210)](_0x38b153,_0x5afa10,_0x8dd4a2[_0x1e2333(0x304)],_0x8dd4a2[_0x1e2333(0x2a7)]);try{const _0x1bae3f=await this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x2fd)](_0x74d2fe,_0x38b153);this[_0x1e2333(0x276)](_0x38b153,{'conversationId':_0x38b153,'kind':_0x1e2333(0x208),'files':_0x1bae3f,'error':null});}catch(_0x25cc9b){this[_0x1e2333(0x276)](_0x38b153,{'conversationId':_0x38b153,'kind':_0x1e2333(0x208),'files':this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x2ac)](_0x74d2fe,_0x38b153),'error':{'code':safeErrorCode(_0x25cc9b,_0x1e2333(0x1b7)),'message':_0x1e2333(0x1f9)}});}await this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x241)](_0x38b153,_0x8dd4a2[_0x1e2333(0x2a7)]),this[_0x1e2333(0x276)](_0x38b153,{'conversationId':_0x38b153,'kind':_0x1e2333(0x1c3),'run':{'id':_0x5335b4['id'],'status':_0x8dd4a2[_0x1e2333(0x304)],'startedAt':_0x5335b4[_0x1e2333(0x2c0)],'completedAt':_0x8dd4a2[_0x1e2333(0x2a7)]}}),await this[_0x1e2333(0x22f)](_0x38b153,_0x8dd4a2[_0x1e2333(0x1a6)],_0x8dd4a2[_0x1e2333(0x2a7)])[_0x1e2333(0x2e9)](()=>undefined),_0xc0bac1=this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x36c)](_0x74d2fe,_0x38b153);}finally{this[_0x1e2333(0x2cc)][_0x1e2333(0x1c2)](_0x2f0842);if(_0xc0bac1===undefined)try{_0xc0bac1=this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x36c)](_0x74d2fe,_0x38b153);}catch{}if(_0xc0bac1!==undefined)this[_0x1e2333(0x20c)](_0x74d2fe,_0xc0bac1,_0x1e2333(0x338),_0x8dd4a2[_0x1e2333(0x2a7)]);}if(_0xc0bac1!==undefined&&(_0x8dd4a2[_0x1e2333(0x304)]!==_0x1e2333(0x1de)||!_0x291b3d))this[_0x1e2333(0x2c6)](_0x74d2fe,_0xc0bac1,_0x5335b4['id'],_0x8dd4a2);}async[_0x4a8d97(0x22f)](_0x45e9f1,_0x52dbb5,_0x48d19e){const _0x39f280=_0x4a8d97,_0x5b01dd=automaticHostedConversationTitle(_0x52dbb5);if(_0x5b01dd===undefined)return;const _0x39778a=await this[_0x39f280(0x1b1)][_0x39f280(0x27e)][_0x39f280(0x243)](_0x45e9f1,_0x5b01dd,_0x48d19e);if(_0x39778a===undefined)return;this[_0x39f280(0x276)](_0x45e9f1,{'conversationId':_0x45e9f1,'kind':_0x39f280(0x261),'conversation':this[_0x39f280(0x33f)](_0x39778a)});}[_0x4a8d97(0x1be)](_0x18c43d){const _0x23ff37=_0x4a8d97,_0x40b702=hostedRequest(_0x18c43d),_0x42176a=hostedConversationIdInputSchema[_0x23ff37(0x374)](_0x40b702[_0x23ff37(0x2ec)]),_0x247477=this[_0x23ff37(0x1b1)][_0x23ff37(0x27e)][_0x23ff37(0x36c)](_0x40b702[_0x23ff37(0x317)],_0x42176a[_0x23ff37(0x2d8)]),_0x113d86=this[_0x23ff37(0x2f2)][_0x23ff37(0x1b2)](_0x42176a[_0x23ff37(0x2d8)]);if(_0x113d86===undefined)return{'interrupted':![]};const _0x8864c6=runInterruptionKey(_0x247477['id'],_0x113d86[_0x23ff37(0x1c3)]['id']);this[_0x23ff37(0x2cc)][_0x23ff37(0x222)](_0x8864c6);try{const _0x1a181d=_0x113d86[_0x23ff37(0x351)]();if(!_0x1a181d)return this[_0x23ff37(0x2cc)][_0x23ff37(0x1c2)](_0x8864c6),{'interrupted':![]};return this[_0x23ff37(0x20c)](_0x40b702[_0x23ff37(0x317)],_0x247477,_0x23ff37(0x332),this[_0x23ff37(0x1a8)]()),{'interrupted':!![]};}catch(_0x4e17ef){this[_0x23ff37(0x2cc)][_0x23ff37(0x1c2)](_0x8864c6);throw _0x4e17ef;}}async[_0x4a8d97(0x19e)](_0x41f1bc){const _0x5ee739=_0x4a8d97,_0x23f41e=hostedRequest(_0x41f1bc),_0xbaaedf=hostedConversationConfigUpdateInputSchema[_0x5ee739(0x374)](_0x23f41e[_0x5ee739(0x2ec)]),_0x214e73=this[_0x5ee739(0x1b1)][_0x5ee739(0x27e)][_0x5ee739(0x36c)](_0x23f41e[_0x5ee739(0x317)],_0xbaaedf[_0x5ee739(0x2d8)]);if(this[_0x5ee739(0x2c5)][_0x5ee739(0x215)](_0x214e73['id']))throw new Error(_0x5ee739(0x2c8));const _0x22f18d=_0x214e73[_0x5ee739(0x323)]?undefined:this[_0x5ee739(0x248)](_0x214e73[_0x5ee739(0x1d4)]),_0x3e62dc=_0x22f18d??_0x214e73[_0x5ee739(0x24f)],_0x5c6cb8=await this[_0x5ee739(0x325)](_0x3e62dc,_0x214e73[_0x5ee739(0x1d4)]),_0x4a6595=runtimeModels(_0x23f41e[_0x5ee739(0x30f)]),_0xcb686d=selectModel(_0x5c6cb8,_0x4a6595,_0xbaaedf[_0x5ee739(0x24b)]??_0x214e73[_0x5ee739(0x24b)]),_0x1196ba=this[_0x5ee739(0x1a8)](),_0x12bbbe=await this[_0x5ee739(0x1b1)][_0x5ee739(0x27e)][_0x5ee739(0x21a)](_0x214e73['id'],_0x211cbf=>({..._0x211cbf,'modelId':_0xcb686d['id'],'updatedAt':_0x1196ba,'lastActivityAt':_0x1196ba}));return this[_0x5ee739(0x276)](_0x214e73['id'],{'conversationId':_0x214e73['id'],'kind':_0x5ee739(0x2b6),'conversation':this[_0x5ee739(0x33f)](_0x12bbbe)}),{'conversation':this[_0x5ee739(0x33f)](_0x12bbbe)};}async[_0x4a8d97(0x2b0)](_0x1c61ef){const _0x219cf3=_0x4a8d97,_0x5eab09=hostedRequest(_0x1c61ef),_0x1452c5=hostedConversationMetadataUpdateInputSchema[_0x219cf3(0x374)](_0x5eab09[_0x219cf3(0x2ec)]),_0x85a810=this[_0x219cf3(0x1b1)][_0x219cf3(0x27e)][_0x219cf3(0x36c)](_0x5eab09[_0x219cf3(0x317)],_0x1452c5[_0x219cf3(0x2d8)]);if(this[_0x219cf3(0x2c5)][_0x219cf3(0x215)](_0x85a810['id']))throw new Error(_0x219cf3(0x2c8));const _0x484eb0=this[_0x219cf3(0x1a8)](),_0x41ddda=await this[_0x219cf3(0x1b1)][_0x219cf3(0x27e)][_0x219cf3(0x21a)](_0x85a810['id'],_0x3b69cf=>({..._0x3b69cf,'title':_0x1452c5[_0x219cf3(0x1a6)]??_0x3b69cf[_0x219cf3(0x1a6)],'titleSource':_0x1452c5[_0x219cf3(0x1a6)]===undefined?_0x3b69cf[_0x219cf3(0x1ca)]:_0x219cf3(0x236),'pinnedAt':_0x1452c5[_0x219cf3(0x25f)]===undefined?_0x3b69cf[_0x219cf3(0x1cc)]:_0x1452c5[_0x219cf3(0x25f)]?_0x484eb0:null,'updatedAt':_0x484eb0,'lastActivityAt':_0x3b69cf[_0x219cf3(0x34b)]}));return this[_0x219cf3(0x276)](_0x85a810['id'],{'conversationId':_0x85a810['id'],'kind':_0x219cf3(0x2b6),'conversation':this[_0x219cf3(0x33f)](_0x41ddda)}),{'conversation':this[_0x219cf3(0x33f)](_0x41ddda)};}async[_0x4a8d97(0x2ac)](_0x559be1){const _0x2d4903=_0x4a8d97,_0x520010=hostedRequest(_0x559be1),_0x12bbcd=hostedConversationIdInputSchema[_0x2d4903(0x374)](_0x520010[_0x2d4903(0x2ec)]);return hostedConversationFilesSchema[_0x2d4903(0x374)]({'files':this[_0x2d4903(0x1b1)][_0x2d4903(0x27e)][_0x2d4903(0x2ac)](_0x520010[_0x2d4903(0x317)],_0x12bbcd[_0x2d4903(0x2d8)])});}async[_0x4a8d97(0x2dd)](_0x2469bb){const _0x21f08c=_0x4a8d97,_0x52fc23=hostedRequest(_0x2469bb),_0xae5404=hostedConversationImageReadInputSchema[_0x21f08c(0x374)](_0x52fc23[_0x21f08c(0x2ec)]);this[_0x21f08c(0x1b1)][_0x21f08c(0x27e)][_0x21f08c(0x36c)](_0x52fc23[_0x21f08c(0x317)],_0xae5404[_0x21f08c(0x2d8)]);if(_0xae5404[_0x21f08c(0x1c9)]!==hostedConversationImageRunId(_0xae5404[_0x21f08c(0x2d8)]))throw new Error(_0x21f08c(0x32a));const _0x4810c3=await this[_0x21f08c(0x1b1)][_0x21f08c(0x2dd)](_0xae5404[_0x21f08c(0x1c9)],_0xae5404[_0x21f08c(0x1e9)]);if(_0x4810c3===undefined)throw new Error(_0x21f08c(0x1f7));return{'image':_0x4810c3};}async[_0x4a8d97(0x237)](_0x2f104d){const _0x3e0b5b=_0x4a8d97,_0x32d2ff=hostedRequest(_0x2f104d),_0x243b7e=hostedConversationFileReadInputSchema[_0x3e0b5b(0x374)](_0x32d2ff[_0x3e0b5b(0x2ec)]),_0x812446=this[_0x3e0b5b(0x1b1)][_0x3e0b5b(0x27e)][_0x3e0b5b(0x225)](_0x32d2ff[_0x3e0b5b(0x317)],_0x243b7e[_0x3e0b5b(0x2d8)],_0x243b7e[_0x3e0b5b(0x2c9)]),_0x1e084c=this[_0x3e0b5b(0x1b1)][_0x3e0b5b(0x27e)][_0x3e0b5b(0x20d)](_0x32d2ff[_0x3e0b5b(0x317)],_0x812446),_0x5f79a=_0x243b7e[_0x3e0b5b(0x306)]??-0xb6f*-0x2+-0x1*0xef0+-0x7ee,_0x28182b=Math[_0x3e0b5b(0x266)](_0x243b7e[_0x3e0b5b(0x239)]??MAX_FILE_READ_BYTES,MAX_FILE_READ_BYTES),_0x46c6c2=await openRegularFile(_0x1e084c);try{const _0x8768d1=await _0x46c6c2[_0x3e0b5b(0x345)]();assertRegularFileMetadata(_0x8768d1);const _0x14e3e0=await regularFileMetadata(_0x1e084c);if(!sameFileIdentity(_0x8768d1,_0x14e3e0))throw new Error(_0x3e0b5b(0x29c));if(_0x5f79a>_0x8768d1[_0x3e0b5b(0x32d)])throw new Error(_0x3e0b5b(0x23a));const _0xa21cc8=Buffer[_0x3e0b5b(0x245)](Math[_0x3e0b5b(0x266)](_0x28182b,Math[_0x3e0b5b(0x1b6)](0x1752+0x2232+0xe61*-0x4,_0x8768d1[_0x3e0b5b(0x32d)]-_0x5f79a))),_0x497059=await _0x46c6c2[_0x3e0b5b(0x1ab)](_0xa21cc8,0x76f+-0x1b37+0x13c8,_0xa21cc8[_0x3e0b5b(0x299)],_0x5f79a),_0x3c5ffe=await _0x46c6c2[_0x3e0b5b(0x345)](),_0x201886=await regularFileMetadata(_0x1e084c);if(!sameFileSnapshot(_0x8768d1,_0x3c5ffe)||!sameFileSnapshot(_0x3c5ffe,_0x201886))throw new Error(_0x3e0b5b(0x29c));const _0x598869=_0x5f79a+_0x497059[_0x3e0b5b(0x2d6)],_0x14406e=_0x598869>=_0x3c5ffe[_0x3e0b5b(0x32d)],_0x5c86da={..._0x812446,'size':_0x3c5ffe[_0x3e0b5b(0x32d)],'updatedAt':Math[_0x3e0b5b(0x1b6)](_0x812446[_0x3e0b5b(0x270)],safeFileTimestamp(_0x3c5ffe[_0x3e0b5b(0x262)]),safeFileTimestamp(_0x3c5ffe[_0x3e0b5b(0x2a6)]))};return hostedConversationFileReadResultSchema[_0x3e0b5b(0x374)]({'file':_0x5c86da,'encoding':_0x3e0b5b(0x1da),'content':_0xa21cc8[_0x3e0b5b(0x2a3)](0x1c0e+0xb9*0xf+-0x1*0x26e5,_0x497059[_0x3e0b5b(0x2d6)])[_0x3e0b5b(0x226)](_0x3e0b5b(0x1da)),'offset':_0x5f79a,'nextOffset':_0x14406e?null:_0x598869,'eof':_0x14406e});}finally{await _0x46c6c2[_0x3e0b5b(0x376)]();}}async[_0x4a8d97(0x21b)](_0x53a535){const _0x46e651=_0x4a8d97,_0x1e75e6=hostedRequest(_0x53a535),_0x5203e7=hostedConversationFileDeleteInputSchema[_0x46e651(0x374)](_0x1e75e6[_0x46e651(0x2ec)]);this[_0x46e651(0x288)](_0x1e75e6[_0x46e651(0x317)],_0x5203e7[_0x46e651(0x2d8)]);const _0x47800b=_0x5203e7[_0x46e651(0x2d8)]+'\x00'+_0x5203e7[_0x46e651(0x2c9)];if(this[_0x46e651(0x1c6)][_0x46e651(0x215)](_0x47800b))throw new Error(_0x46e651(0x2f3));this[_0x46e651(0x1c6)][_0x46e651(0x222)](_0x47800b);try{const _0x1494df=await this[_0x46e651(0x1b1)][_0x46e651(0x27e)][_0x46e651(0x21b)](_0x1e75e6[_0x46e651(0x317)],_0x5203e7[_0x46e651(0x2d8)],_0x5203e7[_0x46e651(0x2c9)],this[_0x46e651(0x1a8)]()),_0x5796bb=hostedConversationFileDeleteResultSchema[_0x46e651(0x374)]({'deletedFileId':_0x5203e7[_0x46e651(0x2c9)],'files':_0x1494df});return this[_0x46e651(0x276)](_0x5203e7[_0x46e651(0x2d8)],{'conversationId':_0x5203e7[_0x46e651(0x2d8)],'kind':_0x46e651(0x208),'files':_0x5796bb[_0x46e651(0x208)],'error':null}),_0x5796bb;}finally{this[_0x46e651(0x1c6)][_0x46e651(0x1c2)](_0x47800b);}}async[_0x4a8d97(0x26f)](_0x17c473){const _0x3a0d9d=_0x4a8d97,_0x13f9b1=hostedRequest(_0x17c473),_0x3c7138=hostedConversationUploadPreflightInputSchema[_0x3a0d9d(0x374)](_0x13f9b1[_0x3a0d9d(0x2ec)]),_0x26c1fa=this[_0x3a0d9d(0x288)](_0x13f9b1[_0x3a0d9d(0x317)],_0x3c7138[_0x3a0d9d(0x2d8)]),_0x3187d8=await this[_0x3a0d9d(0x325)](_0x26c1fa[_0x3a0d9d(0x24f)],_0x26c1fa[_0x3a0d9d(0x1d4)]),_0x230bdb=this[_0x3a0d9d(0x1b1)][_0x3a0d9d(0x27e)][_0x3a0d9d(0x1fa)](_0x13f9b1[_0x3a0d9d(0x317)],_0x26c1fa['id']),_0x467b0f=await Promise[_0x3a0d9d(0x352)](_0x3c7138[_0x3a0d9d(0x208)][_0x3a0d9d(0x2c1)](async _0x15ee49=>({'name':_0x15ee49[_0x3a0d9d(0x21f)],'status':await this[_0x3a0d9d(0x2a9)](_0x230bdb,_0x26c1fa,_0x3187d8[_0x3a0d9d(0x33d)],_0x15ee49[_0x3a0d9d(0x21f)],_0x15ee49[_0x3a0d9d(0x32d)])})));return hostedConversationUploadPreflightResultSchema[_0x3a0d9d(0x374)]({'files':_0x467b0f});}async[_0x4a8d97(0x2ca)](_0x361881){const _0x60e3ce=_0x4a8d97,_0x1dbbbf=hostedRequest(_0x361881),_0x4e75f9=hostedConversationUploadCreateInputSchema[_0x60e3ce(0x374)](_0x1dbbbf[_0x60e3ce(0x2ec)]),_0x4e1295=this[_0x60e3ce(0x288)](_0x1dbbbf[_0x60e3ce(0x317)],_0x4e75f9[_0x60e3ce(0x2d8)]),_0xea0099=_0x1dbbbf[_0x60e3ce(0x317)]+'\x00'+_0x4e1295['id']+'\x00'+_0x4e75f9[_0x60e3ce(0x2ed)],_0x526001=this[_0x60e3ce(0x30e)][_0x60e3ce(0x1b2)](_0xea0099);if(_0x526001!==undefined){const _0x3e4399=this[_0x60e3ce(0x29f)][_0x60e3ce(0x1b2)](_0x526001);if(_0x3e4399!==undefined)return{'upload':hostedConversationUploadSchema[_0x60e3ce(0x374)](uploadProjection(_0x3e4399))};}const _0x2af5dc=await this[_0x60e3ce(0x325)](_0x4e1295[_0x60e3ce(0x24f)],_0x4e1295[_0x60e3ce(0x1d4)]),_0xccc44a=this[_0x60e3ce(0x1b1)][_0x60e3ce(0x27e)][_0x60e3ce(0x1fa)](_0x1dbbbf[_0x60e3ce(0x317)],_0x4e1295['id']),_0x457303=await this[_0x60e3ce(0x2a9)](_0xccc44a,_0x4e1295,_0x2af5dc[_0x60e3ce(0x33d)],_0x4e75f9[_0x60e3ce(0x21f)],_0x4e75f9[_0x60e3ce(0x32d)]);if(_0x457303===_0x60e3ce(0x378)||_0x457303===_0x60e3ce(0x27d))throw new Error(_0x60e3ce(0x2ab));if(_0x457303!==_0x60e3ce(0x1d5))throw new Error(_0x60e3ce(0x29c));const _0x2082bc=this['id'](),_0x562919=join(_0xccc44a[_0x60e3ce(0x318)],'.'+_0x2082bc+_0x60e3ce(0x207)),_0x445f2f=join(_0xccc44a[_0x60e3ce(0x318)],_0x4e75f9[_0x60e3ce(0x21f)]),_0x1c52ca=await open(_0x562919,'wx',-0xca+0x11cb+-0x1b*0x93);await _0x1c52ca[_0x60e3ce(0x376)]();const _0x13746c={'uploadId':_0x2082bc,'conversationId':_0x4e1295['id'],'userId':_0x1dbbbf[_0x60e3ce(0x317)],'clientRequestId':_0x4e75f9[_0x60e3ce(0x2ed)],'name':_0x4e75f9[_0x60e3ce(0x21f)],'mimeType':_0x4e75f9[_0x60e3ce(0x347)],'size':_0x4e75f9[_0x60e3ce(0x32d)],'temporaryPath':_0x562919,'targetPath':_0x445f2f,'receivedBytes':0x0,'status':_0x60e3ce(0x27f)};return this[_0x60e3ce(0x29f)][_0x60e3ce(0x21e)](_0x2082bc,_0x13746c),this[_0x60e3ce(0x30e)][_0x60e3ce(0x21e)](_0xea0099,_0x2082bc),{'upload':hostedConversationUploadSchema[_0x60e3ce(0x374)](uploadProjection(_0x13746c))};}async[_0x4a8d97(0x1f4)](_0xcd1178){const _0x4680d4=_0x4a8d97,_0x20dbdc=hostedRequest(_0xcd1178),_0x5e0b5d=hostedConversationUploadChunkInputSchema[_0x4680d4(0x374)](_0x20dbdc[_0x4680d4(0x2ec)]),_0x3d18ba=this[_0x4680d4(0x249)](_0x20dbdc[_0x4680d4(0x317)],_0x5e0b5d[_0x4680d4(0x2d8)],_0x5e0b5d[_0x4680d4(0x27c)]);if(_0x3d18ba[_0x4680d4(0x304)]!==_0x4680d4(0x27f))throw new Error(_0x4680d4(0x356));if(_0x5e0b5d[_0x4680d4(0x306)]!==_0x3d18ba[_0x4680d4(0x1f0)])throw new Error(_0x4680d4(0x34a));const _0x4dcd85=Buffer[_0x4680d4(0x2f7)](_0x5e0b5d[_0x4680d4(0x268)],_0x4680d4(0x1da));if(_0x3d18ba[_0x4680d4(0x1f0)]+_0x4dcd85[_0x4680d4(0x2d0)]>_0x3d18ba[_0x4680d4(0x32d)])throw new Error(_0x4680d4(0x2fe));await assertUploadTemporaryFile(_0x3d18ba[_0x4680d4(0x1c0)],_0x3d18ba[_0x4680d4(0x1f0)]);const _0x542ffa=await open(_0x3d18ba[_0x4680d4(0x1c0)],'r+');try{await _0x542ffa[_0x4680d4(0x2db)](_0x4dcd85,0x1714*-0x1+0x9*-0xa0+0x16*0x14e,_0x4dcd85[_0x4680d4(0x2d0)],_0x3d18ba[_0x4680d4(0x1f0)]);}finally{await _0x542ffa[_0x4680d4(0x376)]();}return _0x3d18ba[_0x4680d4(0x1f0)]+=_0x4dcd85[_0x4680d4(0x2d0)],{'upload':hostedConversationUploadSchema[_0x4680d4(0x374)](uploadProjection(_0x3d18ba))};}[_0x4a8d97(0x1db)](_0x4e5f71){const _0x4890e8=_0x4a8d97,_0x366d7c=hostedRequest(_0x4e5f71),_0xaa6ec9=hostedConversationUploadControlInputSchema[_0x4890e8(0x374)](_0x366d7c[_0x4890e8(0x2ec)]),_0x55d339=this[_0x4890e8(0x249)](_0x366d7c[_0x4890e8(0x317)],_0xaa6ec9[_0x4890e8(0x2d8)],_0xaa6ec9[_0x4890e8(0x27c)]);return{'upload':hostedConversationUploadSchema[_0x4890e8(0x374)](uploadProjection(_0x55d339))};}async[_0x4a8d97(0x275)](_0x5b0762){const _0x45cd76=_0x4a8d97,_0x1c5bbd=hostedRequest(_0x5b0762),_0x12bbc7=hostedConversationUploadControlInputSchema[_0x45cd76(0x374)](_0x1c5bbd[_0x45cd76(0x2ec)]),_0x46e500=this[_0x45cd76(0x249)](_0x1c5bbd[_0x45cd76(0x317)],_0x12bbc7[_0x45cd76(0x2d8)],_0x12bbc7[_0x45cd76(0x27c)]);if(_0x46e500[_0x45cd76(0x304)]===_0x45cd76(0x33a))return{'upload':hostedConversationUploadSchema[_0x45cd76(0x374)](uploadProjection(_0x46e500))};if(_0x46e500[_0x45cd76(0x304)]!==_0x45cd76(0x27f)||_0x46e500[_0x45cd76(0x1f0)]!==_0x46e500[_0x45cd76(0x32d)])throw new Error(_0x45cd76(0x2b5));const _0x701e17=this[_0x45cd76(0x288)](_0x1c5bbd[_0x45cd76(0x317)],_0x46e500[_0x45cd76(0x2d8)]),_0x354eda=await this[_0x45cd76(0x325)](_0x701e17[_0x45cd76(0x24f)],_0x701e17[_0x45cd76(0x1d4)]);if(_0x46e500[_0x45cd76(0x32d)]>_0x354eda[_0x45cd76(0x33d)][_0x45cd76(0x2cb)][_0x45cd76(0x1ee)]||_0x701e17[_0x45cd76(0x2d9)][_0x45cd76(0x280)]+_0x46e500[_0x45cd76(0x32d)]>_0x701e17[_0x45cd76(0x2d9)][_0x45cd76(0x19d)])throw new Error(_0x45cd76(0x2ab));await assertUploadTemporaryFile(_0x46e500[_0x45cd76(0x1c0)],_0x46e500[_0x45cd76(0x32d)]);const _0x1c411c=await lstat(_0x46e500[_0x45cd76(0x20a)])[_0x45cd76(0x2e9)](_0x122f0b=>{const _0x40a10a=_0x45cd76;if(_0x122f0b[_0x40a10a(0x354)]===_0x40a10a(0x2a5))return undefined;throw _0x122f0b;});if(_0x1c411c!==undefined)throw new Error(_0x45cd76(0x29c));const _0x2ecd8e=await open(_0x46e500[_0x45cd76(0x1c0)],'r+');try{await _0x2ecd8e[_0x45cd76(0x2a8)]();}finally{await _0x2ecd8e[_0x45cd76(0x376)]();}await rename(_0x46e500[_0x45cd76(0x1c0)],_0x46e500[_0x45cd76(0x20a)]);const _0x23ed2a=this[_0x45cd76(0x1a8)]();try{await utimes(_0x46e500[_0x45cd76(0x20a)],new Date(_0x23ed2a),new Date(_0x23ed2a));const _0x4ac5a4={'id':this[_0x45cd76(0x1b1)][_0x45cd76(0x27e)][_0x45cd76(0x2ae)](_0x46e500[_0x45cd76(0x2d8)],_0x45cd76(0x32f),_0x46e500[_0x45cd76(0x21f)]),'conversationId':_0x46e500[_0x45cd76(0x2d8)],'category':_0x45cd76(0x32f),'relativePath':_0x46e500[_0x45cd76(0x21f)],'displayName':_0x46e500[_0x45cd76(0x21f)],'mimeType':_0x46e500[_0x45cd76(0x347)],'size':_0x46e500[_0x45cd76(0x32d)],'source':_0x45cd76(0x1b4),'createdAt':_0x23ed2a,'updatedAt':_0x23ed2a};return _0x46e500[_0x45cd76(0x257)]=await this[_0x45cd76(0x1b1)][_0x45cd76(0x27e)][_0x45cd76(0x227)](_0x1c5bbd[_0x45cd76(0x317)],_0x4ac5a4),_0x46e500[_0x45cd76(0x304)]=_0x45cd76(0x33a),this[_0x45cd76(0x276)](_0x46e500[_0x45cd76(0x2d8)],{'conversationId':_0x46e500[_0x45cd76(0x2d8)],'kind':_0x45cd76(0x208),'files':this[_0x45cd76(0x1b1)][_0x45cd76(0x27e)][_0x45cd76(0x2ac)](_0x1c5bbd[_0x45cd76(0x317)],_0x46e500[_0x45cd76(0x2d8)]),'error':null}),{'upload':hostedConversationUploadSchema[_0x45cd76(0x374)](uploadProjection(_0x46e500))};}catch(_0x12a9b0){await rename(_0x46e500[_0x45cd76(0x20a)],_0x46e500[_0x45cd76(0x1c0)])[_0x45cd76(0x2e9)](()=>undefined);throw _0x12a9b0;}}async[_0x4a8d97(0x32b)](_0x18d645){const _0xceba86=_0x4a8d97,_0xed7aac=hostedRequest(_0x18d645),_0x851dab=hostedConversationUploadControlInputSchema[_0xceba86(0x374)](_0xed7aac[_0xceba86(0x2ec)]),_0x26c546=this[_0xceba86(0x249)](_0xed7aac[_0xceba86(0x317)],_0x851dab[_0xceba86(0x2d8)],_0x851dab[_0xceba86(0x27c)]);if(_0x26c546[_0xceba86(0x304)]===_0xceba86(0x33a))throw new Error(_0xceba86(0x356));return _0x26c546[_0xceba86(0x304)]=_0xceba86(0x1a5),await rm(_0x26c546[_0xceba86(0x1c0)],{'force':!![]}),{'upload':hostedConversationUploadSchema[_0xceba86(0x374)](uploadProjection(_0x26c546))};}async[_0x4a8d97(0x1c2)](_0x585c2c){const _0x59997d=_0x4a8d97,_0x679e16=hostedRequest(_0x585c2c),_0x5a2ba6=hostedConversationIdInputSchema[_0x59997d(0x374)](_0x679e16[_0x59997d(0x2ec)]),_0xc1d227=this[_0x59997d(0x1b1)][_0x59997d(0x27e)][_0x59997d(0x36c)](_0x679e16[_0x59997d(0x317)],_0x5a2ba6[_0x59997d(0x2d8)]);if(this[_0x59997d(0x2c5)][_0x59997d(0x215)](_0xc1d227['id'])||this[_0x59997d(0x289)][_0x59997d(0x215)](_0xc1d227['id']))throw new Error(_0x59997d(0x2c8));this[_0x59997d(0x2c5)][_0x59997d(0x222)](_0xc1d227['id']);try{await this[_0x59997d(0x204)](_0xc1d227['id']);const _0x4713a9=this[_0x59997d(0x2f2)][_0x59997d(0x1b2)](_0xc1d227['id']);if(_0x4713a9!==undefined){const _0x52b240=runInterruptionKey(_0xc1d227['id'],_0x4713a9[_0x59997d(0x1c3)]['id']);this[_0x59997d(0x2cc)][_0x59997d(0x222)](_0x52b240);if(!_0x4713a9[_0x59997d(0x351)]())this[_0x59997d(0x2cc)][_0x59997d(0x1c2)](_0x52b240);}await this[_0x59997d(0x1a1)](_0x679e16[_0x59997d(0x317)],_0xc1d227['id']);const _0xbe0237=this[_0x59997d(0x1b1)][_0x59997d(0x27e)][_0x59997d(0x1fa)](_0x679e16[_0x59997d(0x317)],_0xc1d227['id']);return await this[_0x59997d(0x1b1)][_0x59997d(0x32e)][_0x59997d(0x25b)]({'conversationId':_0xc1d227['id'],'sessionId':_0xc1d227[_0x59997d(0x1af)],'homeDirectory':_0xbe0237[_0x59997d(0x1e0)]})[_0x59997d(0x2e9)](()=>undefined),await this[_0x59997d(0x1cd)][_0x59997d(0x1b2)](_0xc1d227['id'])?.[_0x59997d(0x2e9)](()=>undefined),this[_0x59997d(0x271)](_0xc1d227['id']),await this[_0x59997d(0x1b1)][_0x59997d(0x27e)][_0x59997d(0x1c5)](_0xc1d227['id']),this[_0x59997d(0x1d7)][_0x59997d(0x1c2)](_0xc1d227['id']),this[_0x59997d(0x1b9)][_0x59997d(0x1c2)](_0xc1d227['id']),hostedConversationDeleteResultSchema[_0x59997d(0x374)]({'deletedConversationId':_0xc1d227['id']});}finally{this[_0x59997d(0x2c5)][_0x59997d(0x1c2)](_0xc1d227['id']);}}async[_0x4a8d97(0x204)](_0x777196){const _0x1498b9=_0x4a8d97,_0x633a03=_0x777196+'\x00',_0x2b0983=[...this[_0x1498b9(0x2fb)][_0x1498b9(0x1c8)]()][_0x1498b9(0x34e)](([_0x58869f])=>_0x58869f[_0x1498b9(0x2e5)](_0x633a03))[_0x1498b9(0x2c1)](([,_0x558152])=>_0x558152);await Promise[_0x1498b9(0x322)](_0x2b0983);}async[_0x4a8d97(0x1d6)](_0x5d6807){const _0x46a775=_0x4a8d97;try{const _0x41ddf2=await this[_0x46a775(0x1b2)]({'conversationId':_0x5d6807[_0x46a775(0x2d8)],'__requestUserId':_0x5d6807[_0x46a775(0x317)],'__marAgentModels':_0x5d6807[_0x46a775(0x30f)]});if(this[_0x46a775(0x25e)][_0x46a775(0x1b2)](_0x5d6807[_0x46a775(0x2a4)])!==_0x5d6807)return;this[_0x46a775(0x1b1)][_0x46a775(0x29a)]?.({'type':_0x46a775(0x25d),'workbenchConnectionId':_0x5d6807[_0x46a775(0x2f5)],'watchId':_0x5d6807[_0x46a775(0x2f4)],'nodeGeneration':_0x5d6807[_0x46a775(0x201)],'nodeId':this[_0x46a775(0x1b1)][_0x46a775(0x2e2)](),'templateId':_0x5d6807[_0x46a775(0x1d4)],'conversationId':_0x5d6807[_0x46a775(0x2d8)],'revision':0x1,'snapshotSequence':++this[_0x46a775(0x375)],'expiresAt':_0x5d6807[_0x46a775(0x336)],'payload':_0x41ddf2}),_0x5d6807[_0x46a775(0x24d)]=!![];for(const _0x1736ae of _0x5d6807[_0x46a775(0x2d1)])this[_0x46a775(0x35b)](_0x5d6807,_0x1736ae);_0x5d6807[_0x46a775(0x2d1)][_0x46a775(0x299)]=-0xad+-0xd04+-0x1*-0xdb1;}catch(_0x198cad){if(this[_0x46a775(0x25e)][_0x46a775(0x1b2)](_0x5d6807[_0x46a775(0x2a4)])!==_0x5d6807)return;this[_0x46a775(0x1b1)][_0x46a775(0x29a)]?.({'type':_0x46a775(0x279),'workbenchConnectionId':_0x5d6807[_0x46a775(0x2f5)],'watchType':_0x46a775(0x287),'watchId':_0x5d6807[_0x46a775(0x2f4)],'nodeGeneration':_0x5d6807[_0x46a775(0x201)],'nodeId':this[_0x46a775(0x1b1)][_0x46a775(0x2e2)](),'templateId':_0x5d6807[_0x46a775(0x1d4)],'conversationId':_0x5d6807[_0x46a775(0x2d8)],'code':safeErrorCode(_0x198cad,_0x46a775(0x370)),'message':_0x46a775(0x312)}),this[_0x46a775(0x1e2)](_0x5d6807[_0x46a775(0x2a4)]);}}[_0x4a8d97(0x2e3)](_0x10ed61,_0x58f50e){const _0x51a7e2=_0x4a8d97;for(const _0x3574cf of this[_0x51a7e2(0x25e)][_0x51a7e2(0x2d4)]()){if(_0x3574cf[_0x51a7e2(0x2d8)]!==_0x10ed61||!_0x3574cf[_0x51a7e2(0x24d)])continue;this[_0x51a7e2(0x1b1)][_0x51a7e2(0x29a)]?.({'type':_0x51a7e2(0x25d),'workbenchConnectionId':_0x3574cf[_0x51a7e2(0x2f5)],'watchId':_0x3574cf[_0x51a7e2(0x2f4)],'nodeGeneration':_0x3574cf[_0x51a7e2(0x201)],'nodeId':this[_0x51a7e2(0x1b1)][_0x51a7e2(0x2e2)](),'templateId':_0x3574cf[_0x51a7e2(0x1d4)],'conversationId':_0x3574cf[_0x51a7e2(0x2d8)],'revision':0x1,'snapshotSequence':++this[_0x51a7e2(0x375)],'expiresAt':_0x3574cf[_0x51a7e2(0x336)],'payload':_0x58f50e});}}[_0x4a8d97(0x333)](_0x380190){const _0x1ca0a6=_0x4a8d97;return this[_0x1ca0a6(0x1d7)][_0x1ca0a6(0x1b2)](_0x380190)??{'status':_0x1ca0a6(0x338),'version':0x0,'updatedAt':0x0};}[_0x4a8d97(0x33f)](_0x50fa69){const _0x5e6525=_0x4a8d97;return hostedConversationSummary(_0x50fa69,this[_0x5e6525(0x333)](_0x50fa69['id']));}[_0x4a8d97(0x20c)](_0x382bfc,_0x571d02,_0x3b048b,_0x41ec84){const _0x38f264=_0x4a8d97,_0x11f7cb=this[_0x38f264(0x333)](_0x571d02['id']),_0x2cc916={'status':_0x3b048b,'version':_0x11f7cb[_0x38f264(0x1cb)]+(-0x3a*0x11+-0xd+0x3e8),'updatedAt':_0x41ec84};this[_0x38f264(0x1d7)][_0x38f264(0x21e)](_0x571d02['id'],_0x2cc916),this[_0x38f264(0x1fe)]({'kind':_0x38f264(0x333),'userId':_0x382bfc,'templateId':_0x571d02[_0x38f264(0x1d4)],'conversationId':_0x571d02['id'],'activity':_0x2cc916});}[_0x4a8d97(0x2c6)](_0x5b6ddc,_0xa66749,_0xa0738b,_0x197d4e){const _0x37b7ba=_0x4a8d97;this[_0x37b7ba(0x1fe)]({'kind':_0x37b7ba(0x1fb),'event':{'runId':_0xa0738b,'sequence':0x1,'eventType':_0x37b7ba(0x1fb),'payload':{'targetType':_0x37b7ba(0x1bc),'userId':_0x5b6ddc,'templateId':_0xa66749[_0x37b7ba(0x1d4)],'conversationId':_0xa66749['id'],'conversationTitle':_0xa66749[_0x37b7ba(0x1a6)],'runId':_0xa0738b,'notificationId':_0x37b7ba(0x251)+this[_0x37b7ba(0x1b1)][_0x37b7ba(0x2e2)]()+':'+_0xa66749['id']+':'+_0xa0738b,'kind':_0x37b7ba(0x2d2),'outcome':_0x197d4e[_0x37b7ba(0x304)],'occurredAt':_0x197d4e[_0x37b7ba(0x2a7)]},'createdAt':_0x197d4e[_0x37b7ba(0x2a7)]}});}[_0x4a8d97(0x1fe)](_0x3e143f){const _0x574ead=_0x4a8d97,_0x323c64=this[_0x574ead(0x1b1)][_0x574ead(0x1b5)]?.(_0x3e143f)??{'sequence':++this[_0x574ead(0x2e4)],'category':_0x574ead(0x287),'payload':_0x3e143f};if(_0x323c64!==undefined)this[_0x574ead(0x1b1)][_0x574ead(0x2a1)]?.(_0x323c64);}[_0x4a8d97(0x2b9)](_0x220865,_0x152d32,_0x361cea,_0x2c8298){const _0x436604=_0x4a8d97;this[_0x436604(0x276)](_0x220865['id'],{'conversationId':_0x220865['id'],'kind':_0x436604(0x37a),'upgrade':{'status':_0x436604(0x310),'previousVersionId':_0x152d32,'targetVersionId':_0x361cea,'activeVersionId':_0x220865[_0x436604(0x24f)],'conversation':this[_0x436604(0x33f)](_0x220865),'error':{'code':safeErrorCode(_0x2c8298,_0x436604(0x1e7)),'message':_0x436604(0x1ec)}}});}[_0x4a8d97(0x276)](_0x329dd0,_0x290bd0){const _0x1c2e5f=_0x4a8d97,_0x302370=[...this[_0x1c2e5f(0x25e)][_0x1c2e5f(0x2d4)]()][_0x1c2e5f(0x34e)](_0x497c20=>_0x497c20[_0x1c2e5f(0x2d8)]===_0x329dd0);if(_0x302370[_0x1c2e5f(0x299)]===0x1*-0x20a2+0x3*0x2e9+0x17e7)return![];const _0x5570a0=this[_0x1c2e5f(0x1b1)][_0x1c2e5f(0x1b5)]?.(_0x290bd0)??{'sequence':++this[_0x1c2e5f(0x2e4)],'category':_0x1c2e5f(0x287),'payload':_0x290bd0};if(_0x5570a0===undefined)return![];for(const _0x4c4ee6 of _0x302370){if(!_0x4c4ee6[_0x1c2e5f(0x24d)])_0x4c4ee6[_0x1c2e5f(0x2d1)][_0x1c2e5f(0x1e8)](_0x5570a0);else this[_0x1c2e5f(0x35b)](_0x4c4ee6,_0x5570a0);}return!![];}[_0x4a8d97(0x35b)](_0x3aa04c,_0x21d934){const _0x15e5c4=_0x4a8d97;this[_0x15e5c4(0x1b1)][_0x15e5c4(0x29a)]?.({'type':_0x15e5c4(0x281),'workbenchConnectionId':_0x3aa04c[_0x15e5c4(0x2f5)],'watchId':_0x3aa04c[_0x15e5c4(0x2f4)],'nodeGeneration':_0x3aa04c[_0x15e5c4(0x201)],'nodeId':this[_0x15e5c4(0x1b1)][_0x15e5c4(0x2e2)](),'templateId':_0x3aa04c[_0x15e5c4(0x1d4)],'conversationId':_0x3aa04c[_0x15e5c4(0x2d8)],'expiresAt':_0x3aa04c[_0x15e5c4(0x336)],'event':_0x21d934});}[_0x4a8d97(0x23f)](_0x414b24){const _0x3f58db=_0x4a8d97;return{'accepted':!![],'watchId':_0x414b24[_0x3f58db(0x2f4)],'nodeGeneration':_0x414b24[_0x3f58db(0x201)],'expiresAt':_0x414b24[_0x3f58db(0x336)]};}[_0x4a8d97(0x271)](_0x1ba866){const _0x569c01=_0x4a8d97;for(const _0x3066e7 of[...this[_0x569c01(0x25e)][_0x569c01(0x2d4)]()])if(_0x3066e7[_0x569c01(0x2d8)]===_0x1ba866)this[_0x569c01(0x1e2)](_0x3066e7[_0x569c01(0x2a4)]);}[_0x4a8d97(0x1e2)](_0x5e39f0){const _0x19bd87=_0x4a8d97,_0x3c8365=this[_0x19bd87(0x25e)][_0x19bd87(0x1b2)](_0x5e39f0);if(_0x3c8365===undefined)return;clearTimeout(_0x3c8365[_0x19bd87(0x368)]),this[_0x19bd87(0x25e)][_0x19bd87(0x1c2)](_0x5e39f0),this[_0x19bd87(0x223)][_0x19bd87(0x1dd)](_0x5e39f0,_0x3c8365[_0x19bd87(0x2d7)]);}[_0x4a8d97(0x216)](_0x3cd951){const _0x2b9f5c=_0x4a8d97,_0xa47444=setTimeout(()=>this[_0x2b9f5c(0x1e2)](_0x3cd951),WATCH_TTL_MS);return _0xa47444[_0x2b9f5c(0x330)](),_0xa47444;}[_0x4a8d97(0x288)](_0x35ba0c,_0x38ad44){const _0x4a40a6=_0x4a8d97,_0x5c180d=this[_0x4a40a6(0x1b1)][_0x4a40a6(0x27e)][_0x4a40a6(0x36c)](_0x35ba0c,_0x38ad44);if(this[_0x4a40a6(0x2c5)][_0x4a40a6(0x215)](_0x5c180d['id']))throw new Error(_0x4a40a6(0x2c8));if(_0x5c180d[_0x4a40a6(0x304)]!==_0x4a40a6(0x285))throw new Error(_0x4a40a6(0x2c8));return _0x5c180d;}[_0x4a8d97(0x249)](_0x1f459a,_0x2003c4,_0x42a83d){const _0x526e77=_0x4a8d97;this[_0x526e77(0x1b1)][_0x526e77(0x27e)][_0x526e77(0x36c)](_0x1f459a,_0x2003c4);const _0x575be0=this[_0x526e77(0x29f)][_0x526e77(0x1b2)](_0x42a83d);if(_0x575be0===undefined||_0x575be0[_0x526e77(0x317)]!==_0x1f459a||_0x575be0[_0x526e77(0x2d8)]!==_0x2003c4)throw new Error(_0x526e77(0x353));return _0x575be0;}async[_0x4a8d97(0x1a1)](_0x1e0987,_0xdef9e){const _0x256937=_0x4a8d97;for(const _0x47f56d of this[_0x256937(0x29f)][_0x256937(0x2d4)]()){if(_0x47f56d[_0x256937(0x317)]!==_0x1e0987||_0x47f56d[_0x256937(0x2d8)]!==_0xdef9e)continue;_0x47f56d[_0x256937(0x304)]===_0x256937(0x27f)&&(_0x47f56d[_0x256937(0x304)]=_0x256937(0x1a5),await rm(_0x47f56d[_0x256937(0x1c0)],{'force':!![]})[_0x256937(0x2e9)](()=>undefined));}}async[_0x4a8d97(0x31f)](_0x462a02,_0x5a5a38,_0x134904){const _0x22c5c2=_0x4a8d97,_0x6c8927=this[_0x22c5c2(0x1b1)][_0x22c5c2(0x27e)][_0x22c5c2(0x225)](_0x462a02,_0x5a5a38,_0x134904);if(_0x6c8927[_0x22c5c2(0x1d3)]!==_0x22c5c2(0x32f))throw new Error(_0x22c5c2(0x1b3));return await assertRegularFile(this[_0x22c5c2(0x1b1)][_0x22c5c2(0x27e)][_0x22c5c2(0x20d)](_0x462a02,_0x6c8927),_0x6c8927[_0x22c5c2(0x32d)]),_0x6c8927;}async[_0x4a8d97(0x2a9)](_0xc868dc,_0x43a7c8,_0x4391a2,_0xc9ddf0,_0x30bb6c){const _0x2a4926=_0x4a8d97;if(_0x30bb6c>_0x4391a2[_0x2a4926(0x2cb)][_0x2a4926(0x1ee)])return _0x2a4926(0x27d);if(_0x43a7c8[_0x2a4926(0x2d9)][_0x2a4926(0x280)]+_0x30bb6c>_0x43a7c8[_0x2a4926(0x2d9)][_0x2a4926(0x19d)])return _0x2a4926(0x378);const _0x128e53=await lstat(join(_0xc868dc[_0x2a4926(0x318)],_0xc9ddf0))[_0x2a4926(0x2e9)](_0x3ebdb6=>{const _0x5b9d54=_0x2a4926;if(_0x3ebdb6[_0x5b9d54(0x354)]===_0x5b9d54(0x2a5))return undefined;throw _0x3ebdb6;});return _0x128e53===undefined?_0x2a4926(0x1d5):_0x2a4926(0x348);}[_0x4a8d97(0x350)](_0x123564,_0x5430a9,_0x4f5c5f,_0x371d84,_0x254b2f){const _0x5cf46f=_0x4a8d97,_0x237e1b=[{'logicalPath':_0x5cf46f(0x1ac),'physicalPath':_0x5430a9[_0x5cf46f(0x2c7)],'writable':![]},{'logicalPath':_0x5cf46f(0x2f8),'physicalPath':_0x123564[_0x5cf46f(0x318)],'writable':!![]},{'logicalPath':_0x5cf46f(0x224),'physicalPath':_0x123564[_0x5cf46f(0x2ea)],'writable':!![]}];if(_0x254b2f!==undefined)_0x237e1b[_0x5cf46f(0x1e8)]({'logicalPath':_0x5cf46f(0x26b),'physicalPath':_0x254b2f,'writable':!![]});if(_0x4f5c5f!==undefined&&_0x371d84!==undefined)_0x237e1b[_0x5cf46f(0x1e8)]({'logicalPath':_0x371d84,'physicalPath':_0x4f5c5f,'writable':![]});if(_0x5430a9[_0x5cf46f(0x1ae)]!==undefined)_0x237e1b[_0x5cf46f(0x1e8)]({'logicalPath':_0x5430a9[_0x5cf46f(0x1ae)],'physicalPath':_0x5430a9[_0x5cf46f(0x2c7)],'writable':![]},{'logicalPath':join(_0x5430a9[_0x5cf46f(0x1ae)],_0x5cf46f(0x2df)),'physicalPath':_0x123564[_0x5cf46f(0x318)],'writable':!![]},{'logicalPath':join(_0x5430a9[_0x5cf46f(0x1ae)],_0x5cf46f(0x2e7)),'physicalPath':_0x123564[_0x5cf46f(0x2ea)],'writable':!![]});return _0x237e1b;}[_0x4a8d97(0x1dc)](_0x320491,_0x5a39fe,_0x44057e=_0x320491[_0x4a8d97(0x35e)],_0x4bb561,_0x53a47e){const _0x3e81e2=_0x4a8d97;return this[_0x3e81e2(0x1b1)][_0x3e81e2(0x35a)]({'policyVersion':HOST_POLICY_VERSION,'workspaceDirectory':_0x5a39fe[_0x3e81e2(0x2c7)],..._0x5a39fe[_0x3e81e2(0x1ae)]===undefined?{}:{'sourceWorkspacePath':_0x5a39fe[_0x3e81e2(0x1ae)]},'inboxDirectory':_0x320491[_0x3e81e2(0x318)],'outputDirectory':_0x320491[_0x3e81e2(0x2ea)],..._0x4bb561===undefined||_0x53a47e===undefined?{}:{'generatedImagesDirectory':_0x4bb561,'generatedImagesLogicalPath':_0x53a47e},'temporaryDirectory':_0x44057e,'networkMode':_0x5a39fe[_0x3e81e2(0x33d)][_0x3e81e2(0x211)]});}[_0x4a8d97(0x248)](_0x57c48f){const _0x7c819f=_0x4a8d97,_0x1eb1fe=this[_0x7c819f(0x1b1)][_0x7c819f(0x35d)][_0x7c819f(0x253)][_0x7c819f(0x30a)](_0x7c819f(0x1e1))[_0x7c819f(0x1b2)](_0x57c48f);if(_0x1eb1fe===undefined)return undefined;if(typeof _0x1eb1fe['id']!==_0x7c819f(0x1fc))throw new Error(_0x7c819f(0x1c1));return _0x1eb1fe['id'];}async[_0x4a8d97(0x325)](_0x2cf56b,_0x3ac312){const _0x5066c5=_0x4a8d97,_0x743e4c=this[_0x5066c5(0x1b1)][_0x5066c5(0x35d)][_0x5066c5(0x253)][_0x5066c5(0x30a)](_0x5066c5(0x331))[_0x5066c5(0x1b2)](_0x2cf56b,_0x3ac312);if(_0x743e4c===undefined||_0x743e4c[_0x5066c5(0x304)]!==_0x5066c5(0x242)&&_0x743e4c[_0x5066c5(0x304)]!==_0x5066c5(0x34f)||_0x743e4c[_0x5066c5(0x273)]!==HOST_POLICY_VERSION||typeof _0x743e4c[_0x5066c5(0x30c)]!==_0x5066c5(0x1fc)||typeof _0x743e4c[_0x5066c5(0x339)]!==_0x5066c5(0x1fc)||typeof _0x743e4c[_0x5066c5(0x23b)]!==_0x5066c5(0x1fc)||typeof _0x743e4c[_0x5066c5(0x1f1)]!==_0x5066c5(0x1fc)||typeof _0x743e4c[_0x5066c5(0x365)]!==_0x5066c5(0x1fc))throw new Error(_0x5066c5(0x1c1));const _0x352725=this[_0x5066c5(0x1b1)][_0x5066c5(0x27e)][_0x5066c5(0x2ff)](_0x743e4c[_0x5066c5(0x30c)]),_0x5daff1=join(_0x352725,_0x5066c5(0x321)),_0x5976cd=join(_0x352725,_0x5066c5(0x283)),_0x17afb8=await lstat(_0x5daff1)[_0x5066c5(0x2e9)](()=>undefined),_0x437cc1=await lstat(_0x5976cd)[_0x5066c5(0x2e9)](()=>undefined);if(_0x17afb8===undefined||!_0x17afb8[_0x5066c5(0x1ce)]()||_0x17afb8[_0x5066c5(0x373)]()||_0x437cc1===undefined||!_0x437cc1[_0x5066c5(0x2bb)]()||_0x437cc1[_0x5066c5(0x373)]()||(_0x437cc1[_0x5066c5(0x1e5)]&-0x1633*0x1+0x1*0x2459+-0x33*0x3d)!==-0x1b95+0x1de9+-0xe7)throw new Error(_0x5066c5(0x1c1));let _0x271a68;try{const _0x5d570c=await readFile(_0x5daff1,_0x5066c5(0x213)),_0x3ff31a=_0x5d570c[_0x5066c5(0x2bf)]('\x0a')?_0x5d570c[_0x5066c5(0x2b1)](0x2668+-0x2*0xda+0xa2*-0x3a,-(0x45*-0x19+0x11f8+0x3be*-0x3)):_0x5d570c;if(_0x3ff31a!==_0x743e4c[_0x5066c5(0x339)]||createHash(_0x5066c5(0x2b3))[_0x5066c5(0x2b4)](_0x3ff31a)[_0x5066c5(0x32c)](_0x5066c5(0x2a0))!==_0x743e4c[_0x5066c5(0x1f1)])throw new Error(_0x5066c5(0x1c1));_0x271a68=JSON[_0x5066c5(0x374)](_0x3ff31a);}catch{throw new Error(_0x5066c5(0x1c1));}if(!record(_0x271a68))throw new Error(_0x5066c5(0x1c1));const _0x564fc6=publishedTemplateSnapshot(_0x271a68),_0x2326b3=publishedTemplateDraft(_0x564fc6[_0x5066c5(0x2b8)],_0x271a68[_0x5066c5(0x33d)]),_0x23366b=_0x2326b3[_0x5066c5(0x33d)],_0x9067f=publishedMcpServers(_0x271a68[_0x5066c5(0x372)]),_0x5348f5=publishedTemplateContentHash(_0x564fc6[_0x5066c5(0x209)],_0x564fc6[_0x5066c5(0x1c8)],_0x564fc6[_0x5066c5(0x2b8)]),_0x445cf5=_0x564fc6[_0x5066c5(0x1c8)][_0x5066c5(0x26d)]((_0x8015cd,_0x431974)=>_0x8015cd+_0x431974[_0x5066c5(0x32d)],0xe*-0xe2+-0x23ff+-0x305b*-0x1);if(_0x271a68[_0x5066c5(0x31d)]!==_0x743e4c[_0x5066c5(0x365)]||createHash(_0x5066c5(0x2b3))[_0x5066c5(0x2b4)](JSON[_0x5066c5(0x25a)](_0x9067f))[_0x5066c5(0x32c)](_0x5066c5(0x2a0))!==_0x743e4c[_0x5066c5(0x365)]||_0x271a68[_0x5066c5(0x214)]!==_0x743e4c[_0x5066c5(0x23b)]||_0x5348f5!==_0x743e4c[_0x5066c5(0x23b)]||_0x743e4c[_0x5066c5(0x315)]!==_0x564fc6[_0x5066c5(0x1c8)][_0x5066c5(0x299)]||_0x743e4c[_0x5066c5(0x1c7)]!==_0x445cf5)throw new Error(_0x5066c5(0x1c1));if(_0x271a68[_0x5066c5(0x324)]!==_0x2cf56b||_0x271a68[_0x5066c5(0x1d4)]!==_0x3ac312||_0x271a68[_0x5066c5(0x2ee)]!==HOST_POLICY_VERSION||_0x23366b[_0x5066c5(0x1d4)]!==_0x3ac312||_0x23366b[_0x5066c5(0x2e2)]!==this[_0x5066c5(0x1b1)][_0x5066c5(0x2e2)]())throw new Error(_0x5066c5(0x1c1));return{'id':_0x2cf56b,'templateId':_0x3ac312,'storageKey':_0x743e4c[_0x5066c5(0x30c)],'templateDirectory':_0x5976cd,..._0x564fc6[_0x5066c5(0x1ae)]===undefined?{}:{'sourceWorkspacePath':_0x564fc6[_0x5066c5(0x1ae)]},'draft':_0x23366b,'modelPolicy':_0x2326b3[_0x5066c5(0x21c)],'mcpServers':_0x9067f};}}function hostedRequest(_0x4969b9){const _0x54fc97=_0x4a8d97;if(!record(_0x4969b9))throw new Error(_0x54fc97(0x32a));const {__requestUserId:_0x3f34fe,__template:_0x2f3761,__marAgentModel:_0x5c62e1,__marAgentModels:_0x2b2099,__marAgentRuntimeScopeId:_0x3766ba,__workspaceWatchSessionHash:_0x2ad7ea,__templateDeleted:_0x44315d,..._0x2253b7}=_0x4969b9;if(typeof _0x3f34fe!==_0x54fc97(0x29d)||!Number[_0x54fc97(0x1f2)](_0x3f34fe)||_0x3f34fe<=-0x1*-0x11bc+0x2210+-0x3*0x1144)throw new Error(_0x54fc97(0x32a));if(_0x44315d!==undefined&&_0x44315d!==!![])throw new Error(_0x54fc97(0x32a));if(_0x3766ba!==undefined&&(typeof _0x3766ba!==_0x54fc97(0x1fc)||_0x3766ba[_0x54fc97(0x299)]===0xbe0+0x1500+-0x20e0))throw new Error(_0x54fc97(0x32a));return{'data':_0x2253b7,'userId':_0x3f34fe,..._0x2f3761===undefined?{}:{'template':_0x2f3761},..._0x5c62e1===undefined?{}:{'model':_0x5c62e1},..._0x2b2099===undefined?{}:{'models':_0x2b2099},..._0x3766ba===undefined?{}:{'runtimeScopeId':_0x3766ba},..._0x2ad7ea===undefined?{}:{'sessionHash':_0x2ad7ea},..._0x44315d===!![]?{'templateDeleted':!![]}:{}};}function requireWatchSessionHash(_0x553d4d){const _0x12e1cf=_0x4a8d97;if(typeof _0x553d4d!==_0x12e1cf(0x1fc)||_0x553d4d[_0x12e1cf(0x299)]===0x171b+-0x1*-0x9b2+-0x20cd)throw new Error(_0x12e1cf(0x32a));return _0x553d4d;}function watchOwnerKey(_0x326169,_0x14fe31){return _0x326169+':'+_0x14fe31;}function runtimeModels(_0x592683){const _0x3a55a6=_0x4a8d97;return marAgentRuntimeModelConfigurationSchema[_0x3a55a6(0x28e)]()[_0x3a55a6(0x374)](_0x592683);}function allowedModels(_0x1c39a0,_0x4c5a6a){const _0x4d135a=_0x4a8d97,_0x1e218c=new Set(_0x1c39a0[_0x4d135a(0x21c)][_0x4d135a(0x1bd)]);return _0x4c5a6a[_0x4d135a(0x34e)](_0x3a5ec6=>_0x3a5ec6[_0x4d135a(0x30d)]&&_0x1e218c[_0x4d135a(0x215)](_0x1c39a0[_0x4d135a(0x21c)][_0x4d135a(0x244)]===_0x4d135a(0x367)?_0x3a5ec6[_0x4d135a(0x24b)]:_0x3a5ec6['id']));}function selectModel(_0x39bd5a,_0x1553c4,_0x31e5dd){const _0x180690=_0x4a8d97,_0x545479=allowedModels(_0x39bd5a,_0x1553c4),_0x357130=_0x545479[_0x180690(0x206)](_0x3a6829=>_0x3a6829['id']===_0x31e5dd);if(_0x357130!==undefined)return _0x357130;const _0x12a7fa=_0x545479[_0x180690(0x206)](_0x129b81=>(_0x39bd5a[_0x180690(0x21c)][_0x180690(0x244)]===_0x180690(0x367)?_0x129b81[_0x180690(0x24b)]:_0x129b81['id'])===_0x39bd5a[_0x180690(0x21c)][_0x180690(0x1cf)]);if(_0x12a7fa!==undefined)return _0x12a7fa;const _0x3a9696=_0x39bd5a[_0x180690(0x21c)][_0x180690(0x1bd)][_0x180690(0x2c1)](_0x21dc6f=>_0x545479[_0x180690(0x206)](_0xdc6f29=>(_0x39bd5a[_0x180690(0x21c)][_0x180690(0x244)]===_0x180690(0x367)?_0xdc6f29[_0x180690(0x24b)]:_0xdc6f29['id'])===_0x21dc6f))[_0x180690(0x206)](_0x5dd3a0=>_0x5dd3a0!==undefined);if(_0x3a9696===undefined)throw new Error(_0x180690(0x238));return _0x3a9696;}function publishedTemplateDraft(_0x148704,_0x5c6a70){const _0x2226f6=_0x4a8d97,_0x4018a4=conversationTemplateDraftSchema[_0x2226f6(0x286)](_0x5c6a70);if(_0x4018a4[_0x2226f6(0x221)]){const {allowedModels:_0x1d2b25,defaultModelId:_0x34ed73,..._0x566513}=_0x4018a4[_0x2226f6(0x2ec)];return{'draft':_0x566513,'modelPolicy':{'identity':_0x2226f6(0x367),'allowedIds':_0x1d2b25[_0x2226f6(0x2c1)](_0x320c73=>_0x320c73[_0x2226f6(0x24b)]),'defaultId':_0x34ed73}};}if(_0x148704!==0x2ec+-0x216c+0x1e81||!record(_0x5c6a70)||_0x2226f6(0x1a7)in _0x5c6a70||!Array[_0x2226f6(0x2da)](_0x5c6a70[_0x2226f6(0x232)]))throw new Error(_0x2226f6(0x1c1));const _0x1f7ec8=_0x5c6a70[_0x2226f6(0x232)],_0x1f4141={..._0x5c6a70};delete _0x1f4141[_0x2226f6(0x232)];const _0xff85a9=conversationTemplateDraftSchema[_0x2226f6(0x286)]({..._0x1f4141,'allowedModels':_0x1f7ec8[_0x2226f6(0x2c1)](_0x48540b=>({'modelId':_0x48540b,'name':_0x48540b}))});if(!_0xff85a9[_0x2226f6(0x221)])throw new Error(_0x2226f6(0x1c1));const {allowedModels:_0x38ecad,defaultModelId:_0x5c443c,..._0x5ca50a}=_0xff85a9[_0x2226f6(0x2ec)];return{'draft':_0x5ca50a,'modelPolicy':{'identity':_0x2226f6(0x1ad),'allowedIds':_0x38ecad[_0x2226f6(0x2c1)](_0x42f32a=>_0x42f32a[_0x2226f6(0x24b)]),'defaultId':_0x5c443c}};}function networkModels(_0x3c74c5,_0x56622f){const _0x388d14=_0x4a8d97;if(_0x56622f!==_0x388d14(0x233))return _0x3c74c5;return _0x3c74c5[_0x388d14(0x2c1)](_0x563ba2=>_0x563ba2[_0x388d14(0x300)]?{..._0x563ba2,'hostedWebSearch':![]}:_0x563ba2);}function publishedMcpServers(_0x133b65){const _0x42847c=_0x4a8d97;if(!Array[_0x42847c(0x2da)](_0x133b65))throw new Error(_0x42847c(0x1c1));return _0x133b65[_0x42847c(0x2c1)](_0x3d18e0=>{const _0x4b262e=_0x42847c;if(!record(_0x3d18e0))throw new Error(_0x4b262e(0x1c1));const _0x466023=Object[_0x4b262e(0x355)](_0x3d18e0)[_0x4b262e(0x334)]()[_0x4b262e(0x2c2)](',');if(_0x466023!==_0x4b262e(0x2bc))throw new Error(_0x4b262e(0x1c1));const _0x2e4bf1=mcpRuntimeDescriptorSchema[_0x4b262e(0x374)](_0x3d18e0[_0x4b262e(0x32e)]),_0x24f923=mcpInstallationConfigurationSchema[_0x4b262e(0x374)](_0x3d18e0[_0x4b262e(0x2b6)]);if(typeof _0x3d18e0['id']!==_0x4b262e(0x1fc)||typeof _0x3d18e0[_0x4b262e(0x2be)]!==_0x4b262e(0x1fc)||typeof _0x3d18e0[_0x4b262e(0x291)]!==_0x4b262e(0x1fc)||typeof _0x3d18e0[_0x4b262e(0x1cb)]!==_0x4b262e(0x1fc)||_0x3d18e0[_0x4b262e(0x1a4)]!==_0x4b262e(0x2ef)&&_0x3d18e0[_0x4b262e(0x1a4)]!==_0x4b262e(0x340)||_0x3d18e0[_0x4b262e(0x2eb)]!==_0x2e4bf1[_0x4b262e(0x2eb)])throw new Error(_0x4b262e(0x1c1));return{'id':_0x3d18e0['id'],'serverName':_0x3d18e0[_0x4b262e(0x2be)],'displayName':_0x3d18e0[_0x4b262e(0x291)],'version':_0x3d18e0[_0x4b262e(0x1cb)],'origin':_0x3d18e0[_0x4b262e(0x1a4)],'transport':_0x2e4bf1[_0x4b262e(0x2eb)],'runtime':_0x2e4bf1,'configuration':_0x24f923};});}function publishedTemplateSnapshot(_0x3e1399){const _0x48a3c1=_0x4a8d97;if(_0x3e1399[_0x48a3c1(0x2b8)]===0x565+0x1bbb+-0x211f){const _0x5d70e6=publishedTemplateFiles(_0x3e1399[_0x48a3c1(0x208)]);return{'schemaVersion':0x1,'directories':legacyPublishedTemplateDirectories(_0x5d70e6),'entries':_0x5d70e6};}if(_0x3e1399[_0x48a3c1(0x2b8)]!==0x1dd7+0xf4c+0x1*-0x2d21||typeof _0x3e1399[_0x48a3c1(0x1ae)]!==_0x48a3c1(0x1fc)||!Array[_0x48a3c1(0x2da)](_0x3e1399[_0x48a3c1(0x209)])||!Array[_0x48a3c1(0x2da)](_0x3e1399[_0x48a3c1(0x1c8)]))throw new Error(_0x48a3c1(0x1c1));validatePublishedSourceWorkspacePath(_0x3e1399[_0x48a3c1(0x1ae)]);const _0x27309f=_0x3e1399[_0x48a3c1(0x209)][_0x48a3c1(0x2c1)](safePublishedTemplateRelativePath);if(new Set(_0x27309f)[_0x48a3c1(0x32d)]!==_0x27309f[_0x48a3c1(0x299)]||_0x27309f[_0x48a3c1(0x250)](_0x48a3c1(0x2df))||_0x27309f[_0x48a3c1(0x250)](_0x48a3c1(0x2e7)))throw new Error(_0x48a3c1(0x1c1));const _0x4eb44a=_0x3e1399[_0x48a3c1(0x1c8)][_0x48a3c1(0x2c1)](publishedTemplateEntry);if(new Set(_0x4eb44a[_0x48a3c1(0x2c1)](_0x358c9d=>_0x358c9d[_0x48a3c1(0x255)]))[_0x48a3c1(0x32d)]!==_0x4eb44a[_0x48a3c1(0x299)])throw new Error(_0x48a3c1(0x1c1));return{'schemaVersion':0x2,'sourceWorkspacePath':_0x3e1399[_0x48a3c1(0x1ae)],'directories':_0x27309f,'entries':_0x4eb44a};}function publishedTemplateEntry(_0x593224){const _0x31000c=_0x4a8d97;if(!record(_0x593224))throw new Error(_0x31000c(0x1c1));if(_0x593224[_0x31000c(0x258)]===_0x31000c(0x326))return publishedTemplateFile(_0x593224,!![]);if(_0x593224[_0x31000c(0x258)]!==_0x31000c(0x28f)||typeof _0x593224[_0x31000c(0x28d)]!==_0x31000c(0x1fc)||_0x593224[_0x31000c(0x28d)][_0x31000c(0x299)]===-0x25d3+0x2629*0x1+-0x1*0x56||_0x593224[_0x31000c(0x28d)][_0x31000c(0x250)]('\x00')||_0x593224[_0x31000c(0x2f1)]!==_0x31000c(0x2f9)&&_0x593224[_0x31000c(0x2f1)]!==_0x31000c(0x269)||typeof _0x593224[_0x31000c(0x298)]!==_0x31000c(0x1fc))throw new Error(_0x31000c(0x1c1));const _0x363ce0=safePublishedTemplateRelativePath(_0x593224[_0x31000c(0x255)]),_0x8127de=safePublishedTemplateSize(_0x593224[_0x31000c(0x32d)]),_0x5582f3=_0x593224[_0x31000c(0x28d)],_0x293b24=_0x593224[_0x31000c(0x2f1)],_0x5706f1=_0x593224[_0x31000c(0x298)];if(_0x8127de!==Buffer[_0x31000c(0x2d0)](_0x5582f3))throw new Error(_0x31000c(0x1c1));if(_0x293b24===_0x31000c(0x2f9))safePublishedTemplateRelativePath(_0x5706f1);else{if(!isAbsolute(_0x5706f1)||!RUNTIME_LINK_ROOTS[_0x31000c(0x27a)](_0x62cc8e=>_0x5706f1===_0x62cc8e||within(_0x62cc8e,_0x5706f1)))throw new Error(_0x31000c(0x1c1));}return{'kind':_0x31000c(0x28f),'relativePath':_0x363ce0,'size':_0x8127de,'linkTarget':_0x5582f3,'targetKind':_0x293b24,'resolvedTarget':_0x5706f1};}function publishedTemplateFiles(_0x3d8abf){const _0x1466d4=_0x4a8d97;if(!Array[_0x1466d4(0x2da)](_0x3d8abf))throw new Error(_0x1466d4(0x1c1));const _0x13b37f=new Set();return _0x3d8abf[_0x1466d4(0x2c1)](_0x5618d6=>{const _0x43001e=_0x1466d4,_0xaaee43=publishedTemplateFile(_0x5618d6);if(_0x13b37f[_0x43001e(0x215)](_0xaaee43[_0x43001e(0x255)]))throw new Error(_0x43001e(0x1c1));return _0x13b37f[_0x43001e(0x222)](_0xaaee43[_0x43001e(0x255)]),_0xaaee43;});}function publishedTemplateFile(_0x3bd50a,_0x196b79=![]){const _0x4ff6c8=_0x4a8d97;if(!record(_0x3bd50a)||_0x196b79&&_0x3bd50a[_0x4ff6c8(0x258)]!==_0x4ff6c8(0x326)||typeof _0x3bd50a[_0x4ff6c8(0x234)]!==_0x4ff6c8(0x366)||typeof _0x3bd50a[_0x4ff6c8(0x2b3)]!==_0x4ff6c8(0x1fc)||!/^[a-f0-9]{64}$/u[_0x4ff6c8(0x346)](_0x3bd50a[_0x4ff6c8(0x2b3)]))throw new Error(_0x4ff6c8(0x1c1));return{'kind':_0x4ff6c8(0x326),'relativePath':safePublishedTemplateRelativePath(_0x3bd50a[_0x4ff6c8(0x255)]),'size':safePublishedTemplateSize(_0x3bd50a[_0x4ff6c8(0x32d)]),'executable':_0x3bd50a[_0x4ff6c8(0x234)],'sha256':_0x3bd50a[_0x4ff6c8(0x2b3)]};}function safePublishedTemplateRelativePath(_0x52dfeb){const _0x55d757=_0x4a8d97;if(typeof _0x52dfeb!==_0x55d757(0x1fc)||_0x52dfeb[_0x55d757(0x299)]===0xc89*0x2+0xc*-0x173+-0x7ae||_0x52dfeb[_0x55d757(0x2e5)]('/')||_0x52dfeb[_0x55d757(0x250)]('\x5c')||_0x52dfeb[_0x55d757(0x307)]('/')[_0x55d757(0x27a)](_0x2c5d1f=>_0x2c5d1f[_0x55d757(0x299)]===-0x7b+0x34d*-0x3+0xa62||_0x2c5d1f==='.'||_0x2c5d1f==='..'))throw new Error(_0x55d757(0x1c1));return _0x52dfeb;}function safePublishedTemplateSize(_0x37315e){const _0x497233=_0x4a8d97;if(!Number[_0x497233(0x1f2)](_0x37315e)||_0x37315e<-0x8*0x31c+-0x249b+0x3d7b)throw new Error(_0x497233(0x1c1));return _0x37315e;}function legacyPublishedTemplateDirectories(_0x155740){const _0x21a45f=_0x4a8d97,_0x3b7d5b=new Set();for(const _0x53a5ff of _0x155740){const _0x1a2964=_0x53a5ff[_0x21a45f(0x255)][_0x21a45f(0x307)]('/');for(let _0x25bcb9=0x1777+-0x5*-0x1da+-0x20b8;_0x25bcb9<_0x1a2964[_0x21a45f(0x299)];_0x25bcb9+=-0x269+0xe7a+0x608*-0x2)_0x3b7d5b[_0x21a45f(0x222)](_0x1a2964[_0x21a45f(0x2b1)](0x10cb+-0x6e2+0x9e9*-0x1,_0x25bcb9)[_0x21a45f(0x2c2)]('/'));}return[..._0x3b7d5b][_0x21a45f(0x334)]((_0x2f027c,_0x5486cd)=>_0x2f027c[_0x21a45f(0x200)](_0x5486cd,_0x21a45f(0x31e)));}function publishedTemplateContentHash(_0x51e7f0,_0x2fec63,_0x16dc9a){const _0x2beee4=_0x4a8d97,_0x4672dd=_0x16dc9a===0x1*0x1ceb+-0x402+-0x18e8?_0x2fec63[_0x2beee4(0x2c1)](_0x12625c=>{const _0x231d64=_0x2beee4;if(_0x12625c[_0x231d64(0x258)]!==_0x231d64(0x326))throw new Error(_0x231d64(0x1c1));return _0x12625c[_0x231d64(0x255)]+'\x00'+_0x12625c[_0x231d64(0x32d)]+'\x00'+_0x12625c[_0x231d64(0x2b3)];})[_0x2beee4(0x2c2)]('\x0a'):[..._0x51e7f0[_0x2beee4(0x2c1)](_0x294d8f=>_0x2beee4(0x359)+_0x294d8f),..._0x2fec63[_0x2beee4(0x2c1)](_0x50cb34=>_0x50cb34[_0x2beee4(0x258)]===_0x2beee4(0x326)?_0x50cb34[_0x2beee4(0x258)]+'\x00'+_0x50cb34[_0x2beee4(0x255)]+'\x00'+_0x50cb34[_0x2beee4(0x32d)]+'\x00'+(_0x50cb34[_0x2beee4(0x234)]?0x148d*0x1+-0xa*-0x143+-0x212a:-0x1*-0x2069+0x1f47+-0x3fb0)+'\x00'+_0x50cb34[_0x2beee4(0x2b3)]:_0x50cb34[_0x2beee4(0x258)]+'\x00'+_0x50cb34[_0x2beee4(0x255)]+'\x00'+_0x50cb34[_0x2beee4(0x32d)]+'\x00'+_0x50cb34[_0x2beee4(0x28d)]+'\x00'+_0x50cb34[_0x2beee4(0x2f1)]+'\x00'+_0x50cb34[_0x2beee4(0x298)])][_0x2beee4(0x2c2)]('\x0a');return createHash(_0x2beee4(0x2b3))[_0x2beee4(0x2b4)](_0x4672dd)[_0x2beee4(0x32c)](_0x2beee4(0x2a0));}function validatePublishedSourceWorkspacePath(_0x947806){const _0x180d78=_0x4a8d97;if(!isAbsolute(_0x947806)||resolve(_0x947806)!==_0x947806||_0x947806==='/'||RESERVED_SANDBOX_ROOTS[_0x180d78(0x27a)](_0x39a5e5=>_0x947806===_0x39a5e5||within(_0x39a5e5,_0x947806)||within(_0x947806,_0x39a5e5)))throw new Error(_0x180d78(0x1c1));}function within(_0x2ef8cd,_0x4c1ebb){const _0x5a115c=_0x4a8d97,_0x11f889=relative(_0x2ef8cd,_0x4c1ebb);return _0x11f889[_0x5a115c(0x299)]>-0x1f17+-0x11dc+0x3*0x1051&&_0x11f889!=='..'&&!_0x11f889[_0x5a115c(0x2e5)]('..'+sep);}function resolveMcpServers(_0x3f2ddd,_0x2373e2){const _0x4e3112=_0x4a8d97,_0x287107=_0x2d5524=>{const _0x34ca98=_0x4e72,_0x57cd86={};for(const [_0x51ad6c,_0x3063a9]of Object[_0x34ca98(0x1c8)](_0x2d5524??{})){const _0xba2d94=_0x2373e2[_0x3063a9[_0x34ca98(0x2dc)]];if(_0xba2d94===undefined)throw new Error(_0x34ca98(0x360));_0x57cd86[_0x51ad6c]=_0xba2d94;}return _0x57cd86;};return _0x3f2ddd[_0x4e3112(0x372)][_0x4e3112(0x220)](_0x4bc353=>{const _0x3f7b18=_0x4e3112;if(_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x2eb)]===_0x3f7b18(0x2de)){if(_0x3f2ddd[_0x3f7b18(0x33d)][_0x3f7b18(0x211)]!==_0x3f7b18(0x2f6))return[];return[{'name':_0x4bc353[_0x3f7b18(0x2be)],'lifecycle':_0x3f7b18(0x1ea),'transport':_0x3f7b18(0x2de),'url':_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x320)],'headers':{..._0x287107(_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x2ba)]),..._0x287107(_0x4bc353[_0x3f7b18(0x2b6)][_0x3f7b18(0x2ba)])}}];}return[{'name':_0x4bc353[_0x3f7b18(0x2be)],'lifecycle':_0x3f7b18(0x1ea),'transport':_0x3f7b18(0x2e0),'command':_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x24a)],'args':[..._0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x341)],..._0x4bc353[_0x3f7b18(0x2b6)][_0x3f7b18(0x27b)]??[]],'environment':{..._0x287107(_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x33b)]),..._0x287107(_0x4bc353[_0x3f7b18(0x2b6)][_0x3f7b18(0x33b)])}}];});}function hostedConversationSummary(_0x46f77a,_0x347e96){const _0x2d5507=_0x4a8d97;return hostedConversationSummarySchema[_0x2d5507(0x374)]({'id':_0x46f77a['id'],'nodeId':_0x46f77a[_0x2d5507(0x2e2)],'sessionId':_0x46f77a[_0x2d5507(0x1af)],'templateId':_0x46f77a[_0x2d5507(0x1d4)],'templateName':_0x46f77a[_0x2d5507(0x327)],'activeVersionId':_0x46f77a[_0x2d5507(0x24f)],'title':_0x46f77a[_0x2d5507(0x1a6)],'titleSource':_0x46f77a[_0x2d5507(0x1ca)],'pinnedAt':_0x46f77a[_0x2d5507(0x1cc)],'status':_0x46f77a[_0x2d5507(0x304)],'modelId':_0x46f77a[_0x2d5507(0x24b)],'createdAt':_0x46f77a[_0x2d5507(0x270)],'updatedAt':_0x46f77a[_0x2d5507(0x337)],'lastActivityAt':_0x46f77a[_0x2d5507(0x34b)],..._0x347e96===undefined?{}:{'activity':_0x347e96}});}function templateSummary(_0x20d344,_0x2e629f){const _0x4e8530=_0x4a8d97;return conversationTemplateSummarySchema[_0x4e8530(0x374)]({'id':_0x20d344[_0x4e8530(0x1d4)],'nodeId':_0x20d344[_0x4e8530(0x2e2)],'name':_0x20d344[_0x4e8530(0x327)],'description':_0x2e629f[_0x4e8530(0x217)],'status':_0x20d344[_0x4e8530(0x323)]?_0x4e8530(0x28a):_0x4e8530(0x285),'currentVersionId':_0x20d344[_0x4e8530(0x24f)],'available':!_0x20d344[_0x4e8530(0x323)],'createdAt':_0x20d344[_0x4e8530(0x270)],'updatedAt':_0x2e629f[_0x4e8530(0x337)]});}function modelSummary(_0x337611,_0x554cbe){const _0x43cd27=_0x4a8d97;return{'id':_0x337611['id'],'name':_0x337611[_0x43cd27(0x21f)],'protocol':_0x337611[_0x43cd27(0x296)],'baseUrl':_0x337611[_0x43cd27(0x1d0)],'modelId':_0x337611[_0x43cd27(0x24b)],'contextWindowTokens':_0x337611[_0x43cd27(0x240)],'maxOutputTokens':_0x337611[_0x43cd27(0x293)],'inputCapabilities':_0x337611[_0x43cd27(0x349)],'outputCapabilities':_0x337611[_0x43cd27(0x23e)],'reasoningEfforts':_0x337611[_0x43cd27(0x302)],'defaultReasoningEffort':resolveMarAgentDefaultReasoningEffort(_0x337611[_0x43cd27(0x203)],_0x337611[_0x43cd27(0x302)]),'hostedWebSearch':_0x337611[_0x43cd27(0x300)],..._0x337611[_0x43cd27(0x329)]===undefined?{}:{'responsesTransport':_0x337611[_0x43cd27(0x329)]},'responsesPreviousResponseId':_0x337611[_0x43cd27(0x2d5)],'enabled':_0x337611[_0x43cd27(0x30d)],'sortOrder':_0x554cbe,'apiKeyConfigured':!![]};}function systemInstruction(_0x523c81,_0x2eed18){const _0x4d455c=_0x4a8d97,_0x5e1f6c=_0x523c81[_0x4d455c(0x33d)],_0x3d86aa=_0x5e1f6c[_0x4d455c(0x211)]===_0x4d455c(0x233)?_0x4d455c(0x256):_0x4d455c(0x22a);return[_0x4d455c(0x364),_0x4d455c(0x230),_0x4d455c(0x1bb),_0x4d455c(0x309),_0x4d455c(0x36f),_0x4d455c(0x1bf),_0x4d455c(0x2af),_0x4d455c(0x362),_0x4d455c(0x246),_0x4d455c(0x21d),_0x4d455c(0x1d8),_0x4d455c(0x379),_0x4d455c(0x1fd),..._0x2eed18===undefined?[]:[_0x4d455c(0x361)+_0x2eed18+_0x4d455c(0x22d),_0x4d455c(0x284)+_0x2eed18+_0x4d455c(0x34c)+_0x2eed18+_0x4d455c(0x218)],..._0x523c81[_0x4d455c(0x1ae)]===undefined?[]:[_0x4d455c(0x1ef)+_0x523c81[_0x4d455c(0x1ae)]+_0x4d455c(0x371)+join(_0x523c81[_0x4d455c(0x1ae)],_0x4d455c(0x2df))+_0x4d455c(0x31a)+join(_0x523c81[_0x4d455c(0x1ae)],_0x4d455c(0x2e7))+_0x4d455c(0x369)],_0x4d455c(0x24c),_0x3d86aa][_0x4d455c(0x2c2)]('\x0a');}function attachmentPrompt(_0x55c173,_0x48f78c){const _0x181bad=_0x4a8d97;if(_0x48f78c[_0x181bad(0x299)]===0x13a0+-0x65*0x60+0x124*0x10)return _0x55c173;const _0x743a7d=_0x48f78c[_0x181bad(0x2c1)](_0x2e4835=>_0x181bad(0x36e)+_0x2e4835[_0x181bad(0x255)])[_0x181bad(0x2c2)]('\x0a');return''+_0x55c173+(_0x55c173[_0x181bad(0x2e6)]()[_0x181bad(0x299)]===-0x3d0*0x8+-0xe5*-0xb+0x3*0x6e3?'':'\x0a\x0a')+_0x181bad(0x316)+_0x743a7d;}function automaticHostedConversationTitle(_0x32c04d){const _0x4b2874=_0x4a8d97;if(_0x32c04d===undefined)return undefined;const _0x3da420=sessionTitleFromFirstMessage(_0x32c04d);if(_0x3da420[_0x4b2874(0x299)]===-0x1d0*-0x2+-0x1803+0x1463||/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x4b2874(0x346)](_0x3da420))return undefined;return _0x3da420;}function terminalHostedTurnStatus(_0x401847){const _0x186635=_0x4a8d97;return _0x401847===_0x186635(0x2bd)||_0x401847===_0x186635(0x310)||_0x401847===_0x186635(0x1a5)||_0x401847===_0x186635(0x1de)||_0x401847===_0x186635(0x24e);}function runFromMessage(_0x5cd4d1){const _0x3d14d6=_0x4a8d97;return{'id':_0x5cd4d1[_0x3d14d6(0x1c9)],'status':_0x5cd4d1[_0x3d14d6(0x304)],'startedAt':_0x5cd4d1[_0x3d14d6(0x270)],'completedAt':_0x5cd4d1[_0x3d14d6(0x304)]===_0x3d14d6(0x292)?null:_0x5cd4d1[_0x3d14d6(0x337)]};}function runInterruptionKey(_0x378875,_0x1baf14){return _0x378875+'\x00'+_0x1baf14;}function uploadProjection(_0x41f4b6){const _0x55930f=_0x4a8d97;return{'uploadId':_0x41f4b6[_0x55930f(0x27c)],'conversationId':_0x41f4b6[_0x55930f(0x2d8)],'name':_0x41f4b6[_0x55930f(0x21f)],'mimeType':_0x41f4b6[_0x55930f(0x347)],'receivedBytes':_0x41f4b6[_0x55930f(0x1f0)],'size':_0x41f4b6[_0x55930f(0x32d)],'status':_0x41f4b6[_0x55930f(0x304)],..._0x41f4b6[_0x55930f(0x257)]===undefined?{}:{'file':_0x41f4b6[_0x55930f(0x257)]}};}async function assertRegularFile(_0x497f43,_0x3e2433){const _0x3fd058=_0x4a8d97,_0x490783=await regularFileMetadata(_0x497f43);if(_0x490783[_0x3fd058(0x32d)]!==_0x3e2433)throw new Error(_0x3fd058(0x29c));}async function openRegularFile(_0xdacce9){const _0x1c149c=_0x4a8d97;return open(_0xdacce9,constants[_0x1c149c(0x30b)]|constants[_0x1c149c(0x344)])[_0x1c149c(0x2e9)](()=>{const _0x49c1c7=_0x1c149c;throw new Error(_0x49c1c7(0x29c));});}async function regularFileMetadata(_0x231bd4){const _0x1df7e4=_0x4a8d97,_0xfaa74d=await lstat(_0x231bd4)[_0x1df7e4(0x2e9)](()=>{const _0x371104=_0x1df7e4;throw new Error(_0x371104(0x29c));});return assertRegularFileMetadata(_0xfaa74d),_0xfaa74d;}function assertRegularFileMetadata(_0x5d327b){const _0x120b01=_0x4a8d97;if(!_0x5d327b[_0x120b01(0x1ce)]()||_0x5d327b[_0x120b01(0x373)]()||_0x5d327b[_0x120b01(0x301)]!==0x3a6*-0x4+-0x87c+0x1715||!Number[_0x120b01(0x1f2)](_0x5d327b[_0x120b01(0x32d)])||_0x5d327b[_0x120b01(0x32d)]<0x66c+0x3*0xa3+-0x2c7*0x3)throw new Error(_0x120b01(0x29c));}function sameFileIdentity(_0x2f9e84,_0x15702c){const _0x174222=_0x4a8d97;return _0x2f9e84[_0x174222(0x311)]===_0x15702c[_0x174222(0x311)]&&_0x2f9e84[_0x174222(0x22e)]===_0x15702c[_0x174222(0x22e)];}function sameFileSnapshot(_0x403764,_0x1086e3){const _0x19f136=_0x4a8d97;return sameFileIdentity(_0x403764,_0x1086e3)&&_0x403764[_0x19f136(0x301)]===_0x1086e3[_0x19f136(0x301)]&&_0x403764[_0x19f136(0x32d)]===_0x1086e3[_0x19f136(0x32d)]&&_0x403764[_0x19f136(0x262)]===_0x1086e3[_0x19f136(0x262)]&&_0x403764[_0x19f136(0x2a6)]===_0x1086e3[_0x19f136(0x2a6)];}function safeFileTimestamp(_0x5a9216){const _0x522d87=_0x4a8d97;if(!Number[_0x522d87(0x1e6)](_0x5a9216)||_0x5a9216<0xc6f+0x1*-0xf56+0x2e7*0x1)return-0x11*0xf7+0xe0*-0x4+0x13e7;return Math[_0x522d87(0x266)](Number[_0x522d87(0x377)],Math[_0x522d87(0x357)](_0x5a9216));}async function assertUploadTemporaryFile(_0x50de08,_0x20cab5){const _0x430fa6=_0x4a8d97,_0x50b99d=await lstat(_0x50de08)[_0x430fa6(0x2e9)](()=>{const _0x32a72f=_0x430fa6;throw new Error(_0x32a72f(0x356));});if(!_0x50b99d[_0x430fa6(0x1ce)]()||_0x50b99d[_0x430fa6(0x373)]()||_0x50b99d[_0x430fa6(0x301)]!==0x1b26+-0x1a*0xb7+-0x88f||_0x50b99d[_0x430fa6(0x32d)]!==_0x20cab5)throw new Error(_0x430fa6(0x356));}function record(_0x4d0d25){const _0x33db77=_0x4a8d97;return typeof _0x4d0d25===_0x33db77(0x263)&&_0x4d0d25!==null&&!Array[_0x33db77(0x2da)](_0x4d0d25);}function _0x20f4(){const _0x149b1d=['Bg9JywXLq29TCgfYzq','BM9KzuDLBMvYyxrPB24','yMvMB3jL','zgvMyxvSDfjLyxnVBMLUz0vMzM9YDa','D2fPDezVCLbLBMrPBMDnzxnZywDLu3rHCNrZ','DgvTCgXHDgu','zMLUza','lNvWBg9Hza','zMLSzxm','zgLYzwn0B3jPzxm','DgfYz2v0ugf0Aa','ntyYnZq1zvbjwuvc','ChvIBgLZAefJDgL2Axr5','zMLSzvbHDgG','BgLZDa','l2rLDG','zMLUAxnOtwvZC2fNzq','BMv0D29YA01Vzgu','yM91BMrHCNK','DxrMoa','y29UDgvUDeHHC2G','AgfZ','D2f0y2HmzwfZzvrPBwvY','zgvZy3jPChrPB24','ihrVic93B3jRC3bHy2uVB3v0Chv0ihDOzw4GyxzHAwXHyMXLlIbjzIbPDcbPCYbTAxnZAw5NlcbYzxbVCNqGDgHHDcbMywn0oYbYzwDLBMvYyxrLig9UBhKGD2HLBIbYzxf1zxn0zwqGB3iGyxv0Ag9YAxPLzcbIEsb0AguGDxnLCI4','DgfYz2v0vMvYC2LVBKLK','DxbKyxrLq29UDMvYC2f0Aw9U','zgvSzxrLrMLSzq','Bw9KzwXqB2XPy3K','u3rVCMuGzgLZCg9ZywjSzsbPBNrLCM1LzgLHDguGD29YAYbPBIaVDg1WlIbjDcbPCYbYzxvZzwqGywnYB3nZihj1BNmGAw4GDgHPCYbJB252zxjZyxrPB24Sigj1Dcb0AguGsg9ZDcbTyxKGy2XLyxiGAxqGywnJB3jKAw5NihrVihrOzsbZExn0zw0GDgvTCg9Yyxj5lwrPCMvJDg9YEsbSAwzLy3LJBguU','C2v0','BMfTzq','zMXHDe1HCa','C3vJy2vZCW','ywrK','C2vZC2LVBLDHDgnOu2XVDhm','l3DVCMTZCgfJzs9VDxrWDxq','CMvXDwLYzuzPBgu','Dg9tDhjPBMC','CMvNAxn0zxjgAwXL','Dw5RBM93BG','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','tg9JywWGChjVy2vZC2vZlcboB2rLlwXVy2fSifDLyIbgzxrJAcWGyxzHAwXHyMXLifDLyIbtzwfYy2GSig1VzgvSlwHVC3rLzcb3zwiSigfUzcbWDwjSAxnOzwqGCMvTB3rLieHuvfaGtunqig1HEsbHy2nLC3mGBMv0D29YA3mGCMvHy2HHyMXLigzYB20GDgHPCYboB2rLlG','C2vJCMv0rw52AxjVBM1LBNq','n0XsEM5NwG','igrPCMvJDg9YEs4','Aw5V','yxbWBhLbDxrVBwf0AwnuAxrSzq','vgHLieHVC3qGzw5MB3jJzxmGDgHPCYbMAwXLigjVDw5Kyxj5lcbHBMqGBg9JywWGChjVy2vZC2vZihj1BIbPBNnPzguGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','DxnLCLn0B3jHz2vlzxK','ywXSB3DLze1VzgvSswrZ','tK9orq','zxHLy3v0ywjSzq','AxrLBxm','q1vtve9n','CMvHzezPBgu','se9tvevex0nptLzfuLnbveLptL9nt0rftf9ot1rFqvzbsuXbqKXf','BgLTAxq','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jbtKDfx0LovKfmsuq','y29UDgvUDf9OyxnO','CgvUzgLUz0nYzwf0zxm','y3vYC29Y','B3v0Chv0q2fWywjPBgL0AwvZ','ywnJzxb0zwrxyxrJAa','y29UDgv4DfDPBMrVD1rVA2vUCW','ywr2yw5JzuXHC3rby3rPDML0Eq','qvzbsuXbqKXf','C2f2zuf1Dg9TyxrPy1rPDgXL','AwrLBNrPDhK','ywXSB2m','rM9SBg93ihnHDMvKignVBNzLCNnHDgLVBIbPBNn0CNvJDgLVBNmGC3vIAMvJDcb0BYb0AguGsg9ZDcDZihnLy3vYAxr5igjVDw5KyxjPzxmSihrOzsbWDwjSAxnOzwqGDgvTCgXHDguGAw5ZDhj1y3rPB25ZlcbHBMqGDgHLihvZzxiNCYbJDxjYzw50igv4CgXPy2L0ihjLCxvLC3qU','y3jLyxrLtwvZC2fNzq','Bgf0zxn0qxzHAwXHyMXLvgvTCgXHDgvwzxjZAw9Uswq','CMvXDwLYzvvWBg9Hza','y29TBwfUza','Bw9KzwXjza','uMvHzcb1C2vYihvWBg9HzhmGzNjVBsaVD29YA3nWywnLl2LUyM94lG','CMvHzhK','te9tva','ywn0AxzLvMvYC2LVBKLK','Aw5JBhvKzxm','CNvUoG','C25HChnOB3q','CMf3','se9tvevex0nptLzfuLnbveLptL9svu5Fqunusvzf','CMvSyxrPDMvqyxrO','tMv0D29YAYbHy2nLC3mGAxmGzgLZywjSzwqUieXVy2fSihbYB2nLC3nLCYWGv2vIifnLyxjJAcWGv2vIiezLDgnOlcbTB2rLBc1OB3n0zwqGD2vIlcbHBMqGCMvTB3rLieHuvfaGtunqignHBM5VDcb1C2uGDgHLig5LDhDVCMSU','zMLSzq','A2LUza','CMv0ywLUq29UDMvYC2f0Aw9UvgvTCgXHDgu','C3rYAw5NAwz5','CMvSzwfZzvnLC3nPB24','ChvIBgLZAfj1BNrPBwvfDMvUDa','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5ZBMfWC2HVDa','D2f0y2HmzwfZzxm','CgLUBMvK','u1rbuLrjtKC','y29UDMvYC2f0Aw9U','BxrPBwvnCW','B2jQzwn0','ChjLCgfYzuzVCKrPC2fIBgu','DxnLCL9TzxnZywDL','BwLU','nZeZodK2vLDJqMju','zgf0yujHC2u2na','uLvoveLnrq','y29TCgXLDgLVBG','l3rTCa','y3vYCMvUDfzLCNnPB25jza','CMvKDwnL','se9tvevex0nptLzfuLnbveLptL9trvntsu9ox0LovKfmsuq','ChjLzMXPz2H0vxbSB2fK','y3jLyxrLzef0','CMvTB3zLq29UDMvYC2f0Aw9Uv2f0y2HmzwfZzxm','zMLUAxnOuNvU','Ag9ZDf9WB2XPy3LFDMvYC2LVBG','Cgf0AhngB3jnyw5PzMvZDa','y29TCgXLDgvvCgXVywq','ChvIBgLZAeHVC3rLzev2zw50','AxndB252zxjZyxrPB25jBLvZzq','tMv3ignVBNzLCNnHDgLVBG','D2f0y2GUzMfPBgvK','C29Tzq','yxjNDw1LBNrZ','DxbSB2fKswq','ve9px0XbuKDf','C3rVCMu','vvbmt0fesu5h','DxnLzej5DgvZ','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5LDMvUDa','y29UDMvYC2f0Aw9UrgLYzwn0B3j5','y29UDgvUDa','v2HLBIb0AguGDxnLCIbHC2TZihrVihbSywnLigeGChjLDMLVDxnSEsbNzw5LCMf0zwqGAw1Hz2uGAw4GB3v0Chv0lcbPBNnWzwn0ia','qunusvzf','C2fMzvbHCNnL','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','CMvXDwLYzvDYAxrHyMXLq29UDMvYC2f0Aw9U','AgLZDg9YEu11Dgf0Aw9UCW','revmrvrfra','ChjLCgfYzunVBNzLCNnHDgLVBKvUDMLYB25Tzw50','AgfZtM9Urw1WDhLvC2vYtwvZC2fNzq','BgLUA1rHCMDLDa','yxjYyxK','u1LnteLosW','CMvHzfnUyxbZAg90','zgLZCgXHEu5HBwu','uLvotKLorW','Bwf4t3v0Chv0vg9Rzw5Z','y3jLyxrL','l3j1BG','ChjVDg9JB2W','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','CMvZB2X2zwruyxjNzxq','BgvUz3rO','zw1PDfDHDgnOrxzLBNq','y3jLyxrLu2vZC2LVBG','se9tvevex0nptLzfuLnbveLptL9gsuXfx0LovKfmsuq','BNvTyMvY','Cgf0Ahm','DxbSB2fKCW','Agv4','zw1PDfDVCMTIzw5JAev2zw50','zNvSBc1Hy2nLC3m','C3vIyxjYyxK','B3DUzxjlzxK','ru5pru5u','y3rPBwvnCW','y29TCgXLDgvKqxq','C3LUyW','DxbSB2fKuhjLzMXPz2H0u3rHDhvZ','otaYsfzovg5d','se9tvevex0nptLzfuLnbveLptL9rvu9uqv9fwenfrurfra','BgLZDezPBgvZ','C2vZC2LVBKHHC2G','zMLSzvbYB2PLy3rPB25jza','v2HLBIb0AguGDxnLCIbLEhbSAwnPDgX5igfZA3mGEw91ihrVihjLBwvTyMvYigeGCMvXDwLYzw1LBNqSihbYzwzLCMvUy2uSignVBNzLBNrPB24SihDVCMTMBg93ihj1BguSig9Yig90AgvYigD1AwrHBMnLigzVCIbSyxrLCIb3B3jRigLUihrOAxmGy29UDMvYC2f0Aw9UlcbJCMvHDguGB3iGDxbKyxrLic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KlG','DxbKyxrLtwv0ywrHDge','C2XPy2u','l3j1BNrPBwu','C2HHmJu2','DxbKyxrL','se9tvevex0nptLzfuLnbveLptL9vueXpqurFsu5dt01qtevurq','y29UzMLNDxjHDgLVBG','D2f0y2G','C2nOzw1HvMvYC2LVBG','ChvIBgLZAfvWz3jHzgvgywLSDxjL','AgvHzgvYCW','AxneAxjLy3rVCNK','y29UzMLNDxjHDgLVBIXKAxnWBgf5tMfTzsXPzcXVCMLNAw4SCNvUDgLTzsXZzxj2zxjoyw1LlhrYyw5ZCg9YDcX2zxjZAw9U','u1vdq0vfreve','C2vYDMvYtMfTzq','zw5KC1DPDgG','C3rHCNrLzef0','BwfW','AM9PBG','se9tvevex0nptLzfuLnbveLptL9st0XmqKfds19uqvjhrvrFsu5wquXjra','CMvWBgfJzq','y2XLyw51CeXVy2TZ','ChvIBgLZAfrLCM1PBMfStM90AwzPy2f0Aw9U','DgvTCgXHDgveAxjLy3rVCNK','se9tvevex0nptLzfuLnbveLptL9tvefurv9jtLzbteLe','zMLSzuLK','y3jLyxrLvxbSB2fK','CxvVDgfZ','zxHWzwn0zwrjBNrLCNj1ChrPB25Z','DgL0BgvdAgfUz2vK','DhvYBKLK','AgLZDg9YEq','yNL0zuXLBMD0Aa','CgvUzgLUz0v2zw50CW','uLvox1rfuK1jtKfm','l2HVBwuVBwfY','DMfSDwvZ','CMvZCg9UC2vZuhjLDMLVDxnszxnWB25ZzuLK','yNL0zxnszwfK','C2XVDfrVA2vU','y29UDMvYC2f0Aw9Uswq','CxvVDge','AxnbCNjHEq','D3jPDgu','C2vJCMv0tMfTzq','CMvHzeLTywDL','sfruua','Aw5IB3G','u1resu8','nZjzwhruy3C','BM9KzuLK','ChvIBgLZAeHVC3rLzfnUyxbZAg90','D29YA2jLBMnOu2vXDwvUy2u','C3rHCNrZv2L0Aa','DhjPBq','B3v0Chv0','ChjVBxb0','y2f0y2G','B3v0Chv0rgLYzwn0B3j5','DhjHBNnWB3j0','zgf0yq','y2XPzw50uMvXDwvZDeLK','Ag9ZDfbVBgLJEvzLCNnPB24','tK9erq','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','DgfYz2v0s2LUza','ywn0AxzLuNvUCW','se9tvevex0nptLzfuLnbveLptL9gsuXfx0nptKzmsunu','D2f0y2Hjza','D29YA2jLBMnOq29UBMvJDgLVBKLK','vu5srvnuuKLdveve','zNjVBq','l3DVCMTZCgfJzs9PBMjVEa','u05bufnit1q','C3rHCNrsDw4','CgvUzgLUz01LC3nHz2vZ','ChjLCgfYzunVBNzLCNnHDgLVBLrLBxbVCMfYEurPCMvJDg9YEq','CMvJB25JAwXLrMLSzxm','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu0LArv9jtLzbteLe','DgvTCgXHDgvwzxjZAw9UrgLYzwn0B3j5','Ag9ZDgvKv2vIu2vHCMnO','BMXPBMS','CMvHC29UAw5NrwzMB3j0CW','mJy2nunur0LKta','C3rHDhvZ','l2XPyG','B2zMC2v0','C3bSAxq','y3jLyxrLq29UDMvYC2f0Aw9U','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGyw4GAw1TDxrHyMXLigfKBwLUAxn0CMf0B3iTBwfPBNrHAw5Lzcb0zw1WBgf0zsbZBMfWC2HVDc4Gq2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguGBxvZDcbIzsbTywrLigLUigL0CYbZB3vYy2uGv29YA3nWywnLigfUzcbWDwjSAxnOzwqGyxmGysbUzxCGDMvYC2LVBI4','ChjLCgfYzq','t19sre9otfK','C3rVCMfNzv9RzxK','zw5HyMXLza','DxbSB2fKC0j5uMvXDwvZDa','Bw9KzwXZ','rKfjteve','zgv2','sg9ZDgvKignVBNzLCNnHDgLVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','ntu3oti5mKfTthbvsq','zMLUze1LC3nHz2u','zMLSzv9JB3vUDa','qxr0ywnOBwvUDhm6cG','DxnLCKLK','DxbSB2fKC0rPCMvJDg9YEq','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','igfUzca','se9tvevex0nptLzfuLnbveLptL9uru1qtefurv9vtKfwquLmqujmrq','l3vZCG','BwnWq29UzMLNsgfZAa','zw4Tvvm','CMvXDwLYzuf0DgfJAg1LBNq','DxjS','BwfUAwzLC3qUANnVBG','ywXSu2v0DgXLza','DgvTCgXHDgvezwXLDgvK','DMvYC2LVBKLK','Bg9HzfrLBxbSyxrLvMvYC2LVBG','rKLmrq','DgvTCgXHDgvoyw1L','DgHLBG','CMvZCg9UC2vZvhjHBNnWB3j0','se9tvevex0nptLzfuLnbveLptL9ot1rFqvvuse9ssvPfra','y2fUy2vSvxbSB2fK','zgLNzxn0','C2L6zq','CNvUDgLTzq','vvbmt0fe','Dw5Yzwy','u0vmrunuigLKlhrLBxbSyxrLx2LKlhn0yxr1CYXZDg9YywDLx2TLEsXTyw5PzMvZDcXJB250zw50x2HHC2GSBwfUAwzLC3rFAgfZAcXTy3bFy29UzMLNx2HHC2GScIaGicaGicaGicaGicaGicbMAwXLx2nVDw50lhrVDgfSx2j5DgvZlgHVC3rFCg9SAwn5x3zLCNnPB24kicaGicaGicaGrLjptsbJB252zxjZyxrPB25FDgvTCgXHDgvFDMvYC2LVBNmGv0HfuKuGAwq9pYbbtKqGDgvTCgXHDgvFAwq9pW','q0foq0vmteLorW','ywn0AxzPDhK','C29YDa','zMLUywXSEq','zxHWAxjLC0f0','DxbKyxrLzef0','surmrq','BwfUAwzLC3q','q09nueXfveve','zw52AxjVBM1LBNq','yxr0ywnOBwvUDeLKCW','zhjHzNq','Dw53yxrJAa','C3vTBwfYEq','v09ss1nqqunf','yxjNCW','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','CNvUDgLTzvnJB3bLswq','t19ot0zpteXpvW','C3rHDa','DgvZDa','BwLTzvr5Cgu','q09orKXjq1q','Aw5WDxrdyxbHyMLSAxrPzxm','se9tvevex0nptLzfuLnbveLptL9vueXpqurFt0zgu0vux0LovKfmsuq','BgfZDefJDgL2Axr5qxq','igfUzcbJB3b5ihrOzsbLEgLZDgLUzYbMAwXLigzYB20G','zgLZCg9Zzq','zMLSDgvY','uKvuquLoruq','Cgf0Ae1VDw50CW','y2fUy2vS','ywXS','se9tvevex0nptLzfuLnbveLptL9vueXpqurFtK9ux0zpvu5e','y29Kzq','A2v5CW','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu1rbvevFsu5wquXjra','Dhj1BMm','mJKYmtiZnNrKv255ua','reLsrunut1jzaa','ChjVy2vZC0v4zwn1Dg9YrMfJDg9YEq','zw1PDfDHDgnOtgvHC2vfDMvUDa','ChjLDMLVDxnwzxjZAw9Uswq','zgf0ywjHC2u','DgvTCg9Yyxj5uM9VDerPCMvJDg9YEq','l3nIAw4','q09ovKvsu0fusu9ox1rftvbmqvrfx01duf9jtLzbteLe','r2vUzxjHDgvKigLTywDLCYbMCM9TihrOAxmGy29UDMvYC2f0Aw9UihjLBwfPBIbHDMfPBgfIBguGywnYB3nZigv4zwn1DgLVBNmGAw4GDgHLihjLywqTB25SEsa','uMvHzcbPDhmGzxHPC3rPBMCGy29UDgvUDhmGzMLYC3qGyw5KihbYzxnLCNzLihvUCMvSyxrLzcbPBNn0CNvJDgLVBNmUierVig5VDcbWzxjZAxn0igeGChjLzMvYzw5JzsbTzxjLBhKGyMvJyxvZzsbPDcbHChbLyxjZigLUihrOzsbJDxjYzw50ihjLCxvLC3qGDw5SzxnZihrOzsb1C2vYigfZA3mGEw91ihrVihjLBwvTyMvYigL0lG','CMvZB2X2zq','vgHPCYbPCYbHie5VzguTAg9ZDgvKignVBNzLCNnHDgLVBI4GvgHLieHVC3qTzgvJBgfYzwqGBw91BNrZigfYzsb0AguGy29TCgXLDguGzMLSzsbIB3vUzgfYEs4','BwnWx2nVBMzPz19OyxnO','yM9VBgvHBG','vvbtvfjfqu1Ftu9eruXFsuq','DgLTzxi','igfYzsbHBgLHC2vZig9MihrOzsbZyw1LihDYAxrHyMXLig92zxjSyxLZlG','CM9SBgjHy2TdB252zxjZyxrPB24','CM9SBgjHy2S','CMvXDwLYzunVBNzLCNnHDgLVBG','C3rHCNrnzxnZywDL','lsaVD29YA3nWywnLl2LUyM94lW','rg8GBM90igrLC2nYAwjLigvKAxrZihvUzgvYic93B3jRC3bHy2uVAw5IB3GGB3iGl3DVCMTZCgfJzs9VDxrWDxqGyxmGy2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguU','se9tvevex0nptLzfuLnbveLptL9xqvrdsf9gquLmruq','igfZigeGy29TCgf0AwjPBgL0EsbHBgLHCZSGAxqGAxmGDgHLihnHBwuGAw1TDxrHyMXLihnUyxbZAg90lcbUB3qGDgHLigXPDMuGC291CMnLifDVCMTZCgfJzs4G','BwnWu2vYDMvYCW','AxntEw1IB2XPy0XPBMS','CgfYC2u','C25HChnOB3rtzxf1zw5Jzq','y2XVC2u','tufyx1nbrKvFsu5uruDfuG','uvvpvefFrvHdruveruq','ugXHy2uGzMLUywWGzgvSAxzLCMfIBgvZigLUigfWChjVChjPyxrLihbHDgHZihvUzgvYic93B3jRC3bHy2uVB3v0Chv0ihnVihrOzxKGyMvJB21LihvZzxiTDMLZAwjSzsbVDxrWDxrZlG','DxbNCMfKzq','yxzHAwXHyMXL','Bwf4qNL0zxm','DxbKyxrLq29UzMLNDxjHDgLVBG','B3bLCMf0Aw9UCW','revgqvvmva','y2fUy2vSq29UDMvYC2f0Aw9UvxbSB2fKCW','BM9KzufWCfzLCNnPB24','ntqYnteZmfnMB2HKyq','B3jPz2LU','q0foq0vmteve','DgL0Bgu','ywXSB3DLze1VzgvSCW','BM93','y29UDMvYC2f0Aw9Uu3rVCMfNzuTLEq','CMvUzxC','CMvHza','l3DVCMTZCgfJzq','q09orKLhvvjbveLptL9jra','C291CMnLv29YA3nWywnLugf0Aa','C2vZC2LVBKLK','CMv3Aw5K','B3b0Aw9UCW','z2v0','se9tvevex0nptLzfuLnbveLptL9bvfrbq0Hnru5ux0LovKfmsuq','vvnfuG','BMv4DfDVCMTIzw5JAev2zw50','Bwf4','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jfq09oq0Lmrv9gquLmruq','y2XPzw50twvZC2fNzuLK','AgLZDg9YEvzLCNnPB25Z','mJyWnZq1oxv1vxfcyq','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGCM9VDcbPCYbYzwfKlw9UBhKUifDPDgHPBIaVD29YA3nWywnLlcbVBMX5ic93B3jRC3bHy2uVAw5IB3GGyw5Kic93B3jRC3bHy2uVB3v0Chv0igfYzsb3CML0ywjSzs4','se9tvevex0nptLzfuLnbveLptG','ywXSB3DLzeLKCW','Aw50zxjYDxb0','qxqGDgHLihn0yxj0ig9MigvHy2GGCNvUlcbYzwfKic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KigLMigL0igv4Axn0CY4GsxqGC3rVCMvZignVBNzLCNnHDgLVBI1ZCgvJAwzPyYbYzxf1AxjLBwvUDhmGzM9YigXHDgvYihj1BNmGyw5KigLZig5VDcbWyxj0ig9MihrOzsbWDwjSAxnOzwqGDgvTCgXHDguU','DgvTCg9Yyxj5ugf0Aa','q09ovKvsu0fusu9ox1rftvbmqvrfx1zfuLnjt05Fq09suLvqveve','zgvSzxrL','CNvU','zMLUzenVBNzLCNnHDgLVBKj5q2XPzw50uMvXDwvZDa','CgvYBwfUzw50rgvSzxrLq29UDMvYC2f0Aw9U','zMLSzurLBgv0zxm','Dg90ywXFyNL0zxm','zw50CMLLCW','CNvUswq','DgL0BgvtB3vYy2u','DMvYC2LVBG','CgLUBMvKqxq','CNvUu2v0DgXLBwvUDhm','AxngAwXL','zgvMyxvSDeLK','yMfZzvvYBa','l2jPBG','C2f2zu1LC3nHz2vby2nLChrHBMnL','y2f0zwDVCNK','DgvTCgXHDgvjza','uKvbrfK','Aw5PDgLHBgL6zvDHDgnOtgvHC2u','ywn0AxzPDgLLCW','rwfJAcbUzxCGC2fUzgjVEcbWCM9JzxnZigHHCYbHihrLBxbVCMfYEsbit01figf0ic9OB21Ll21HCIWGyxbHCNqGzNjVBsbLEhbSAwnPDgX5ig1VDw50zwqGzgLYzwn0B3jPzxmUierVig5VDcbYzwX5ig9UieHptuuGzMLSzxmGB3iGC2HLBgWGC3rHDguGCgvYC2LZDgLUzYbIzxr3zwvUihrVB2WGzxHLy3v0Aw9UCY4GvxnLic90BxaGzM9YihjLDxnHyMXLigLUDgvYBwvKAwf0zsbMAwXLCYbHBMqGC2v0ihjLCxvPCMvKigvUDMLYB25Tzw50ihzHCMLHyMXLCYbPBIbLywnOignVBw1HBMqU','Bwf4u3rVCMfNzuj5DgvZ','yMfZzty0','DxbSB2fKu3rHDhvZ','ChjVy2vZC0v4zwn1Dg9Y','CMvSzwfZzq','su5urvjsvvburuq','l3bYB2m','Ag9TzurPCMvJDg9YEq','u0vmrunuigLKiezst00Gy29UDMvYC2f0Aw9Ux3rLBxbSyxrLx3zLCNnPB25ZcIaGicaGicaGifDirvjfihrLBxbSyxrLx2LKpt8Gqu5eihn0yxr1CZ0NqvzbsuXbqKXfjWOGicaGicaGicbpuKrfuIbcwsb2zxjZAw9Ux251BwjLCIbervndlhb1yMXPC2HLzf9HDcbervndlgLKierfu0mkicaGicaGicaGteLnsvqGmq','CMvTB3zLv2f0y2HmzwfZzq','CMvQzwn0','B3DUCW','Bw9Kzq','AxngAw5PDgu','se9tvevex0nptLzfuLnbveLptL9vueDsqurfx0zbsuXfra','ChvZAa','Aw1Hz2vjBMrLEa','rvHfq1vusu9o','tufsx0fhru5ux1jpteXcqunlx1rbuKDfvf9jtLzbteLe','vgHLignVBNzLCNnHDgLVBIb0zw1WBgf0zsb1CgDYywrLigzHAwXLzc4','yxnZzxj0q2fUq3jLyxrL','Bwf4vxbSB2fKqNL0zxm','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGywXZBYbTB3vUDgvKihjLywqTB25SEsbHDca','CMvJzwL2zwrcExrLCW','BwfUAwzLC3rFAgfZAa','AxntywzLsw50zwDLCG','BgLZDenVBNzLCNnHDgLVBNm','D3jPDgvvCgXVywrdAhvUAW','BwvZC2fNzq','zMLUzeLUzgv4','uLvox0LnquDfx05pvf9gt1vora','l2XPyJy0','sg9ZDgvKignVBNzLCNnHDgLVBIbMAwXLihbYB2PLy3rPB24GzMfPBgvKlG','Cgf0AhngB3jdB252zxjZyxrPB24','BM90AwzPy2f0Aw9U','C3rYAw5N','v2HLBIbYzxbVCNrPBMCGyw4GB3v0Chv0igzPBguGDg8GDgHLihvZzxiSihvZzsbHie1HCMTKB3DUigXPBMSGAw4GDgHLigv4ywn0igzVCM0Gw3jLBgf0AxzLl3bHDgHDkc93B3jRC3bHy2uVB3v0Chv0l3jLBgf0AxzLl3bHDgGPihnVihrOzsb1C2vYignHBIbVCgvUigL0CYbJB250CM9SBgvKihbYzxzPzxCGB3iGzg93BMXVywqU','ChvIBgLZAfDVCMTIzw5JAev2zw50','zgLZywjSzvbYzxbHCMvK'];_0x20f4=function(){return _0x149b1d;};return _0x20f4();}
2
+ const _0x3f3794=_0x48c7;(function(_0x2749fb,_0x11ead2){const _0x3741ba=_0x48c7,_0x27d3c5=_0x2749fb();while(!![]){try{const _0x1ed491=-parseInt(_0x3741ba(0x347))/(-0x5*0x692+0x579*-0x2+0x2bcd)*(parseInt(_0x3741ba(0x2af))/(-0x18f6+0x1fea+-0x6f2))+parseInt(_0x3741ba(0x324))/(0x1dde+-0xb1+-0x2*0xe95)+-parseInt(_0x3741ba(0x36b))/(-0xf12+-0xbd4+0x82*0x35)*(-parseInt(_0x3741ba(0x215))/(-0x46d+0x1a61+-0x15ef*0x1))+-parseInt(_0x3741ba(0x229))/(0x53a+-0x1564+-0x38*-0x4a)+parseInt(_0x3741ba(0x1cb))/(-0x1*-0x1512+-0x2d6*0xb+0x17*0x71)+-parseInt(_0x3741ba(0x27a))/(0x9*-0x3d3+0x71*0x3+-0xd4*-0x28)+parseInt(_0x3741ba(0x1d3))/(0x1d83*0x1+-0x1dac+0x32)*(parseInt(_0x3741ba(0x1bd))/(-0x4*0x77b+0x2450+-0x1*0x65a));if(_0x1ed491===_0x11ead2)break;else _0x27d3c5['push'](_0x27d3c5['shift']());}catch(_0x4645a4){_0x27d3c5['push'](_0x27d3c5['shift']());}}}(_0xfd98,0x1*-0x962f+-0x1e995*0x2+0x10a01*0x7));function _0xfd98(){const _0x206e06=['mtbizgPNt3C','B3DUzxjlzxK','ChjLCgfYzq','Aw5JBhvKzxm','se9tvevex0nptLzfuLnbveLptG','ywnJzxb0zwrxyxrJAa','y29TCgXLDgLVBG','zMLSDgvY','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu0LArv9jtLzbteLe','Ag9TzurPCMvJDg9YEq','ChvIBgLZAeHVC3rLzfnUyxbZAg90','ywXSB3DLze1VzgvSCW','Ag9ZDf9WB2XPy3LFDMvYC2LVBG','se9tvevex0nptLzfuLnbveLptL9nt0rftf9ot1rFqvzbsuXbqKXf','mJa4mZyYt2nxt2nT','Ag9ZDgvKv2vIu2vHCMnO','C2vYDMvYtMfTzq','zMLSzvbHDgG','DgvTCgXHDgveAxjLy3rVCNK','CMvXDwLYzuzPBgu','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','CgvUzgLUz0v2zw50CW','mtaZmdqXBuH3Chv3','ihrVic93B3jRC3bHy2uVB3v0Chv0ihDOzw4GyxzHAwXHyMXLlIbjzIbPDcbPCYbTAxnZAw5NlcbYzxbVCNqGDgHHDcbMywn0oYbYzwDLBMvYyxrLig9UBhKGD2HLBIbYzxf1zxn0zwqGB3iGyxv0Ag9YAxPLzcbIEsb0AguGDxnLCI4','CMvZCg9UC2vZuhjLDMLVDxnszxnWB25ZzuLK','y3jLyxrLu2vZC2LVBG','DxbKyxrLtwv0ywrHDge','yNL0zxnszwfK','DxbSB2fKswq','AM9PBG','reLsrunut1jzaa','ru5pru5u','q09orKLhvvjbveLptL9jra','CMvHzfnUyxbZAg90','CNvUDgLTzvnJB3bLswq','AgvHzgvYCW','igfZigeGy29TCgf0AwjPBgL0EsbHBgLHCZSGAxqGAxmGDgHLihnHBwuGAw1TDxrHyMXLihnUyxbZAg90lcbUB3qGDgHLigXPDMuGC291CMnLifDVCMTZCgfJzs4G','u1LnteLosW','BwnWq29UzMLNsgfZAa','zw52AxjVBM1LBNq','l3nIAw4','tMv0D29YAYbHy2nLC3mGAxmGzgLZywjSzwqUieXVy2fSihbYB2nLC3nLCYWGv2vIifnLyxjJAcWGv2vIiezLDgnOlcbTB2rLBc1OB3n0zwqGD2vIlcbHBMqGCMvTB3rLieHuvfaGtunqignHBM5VDcb1C2uGDgHLig5LDhDVCMSU','igfUzcbJB3b5ihrOzsbLEgLZDgLUzYbMAwXLigzYB20G','BwnWu2vYDMvYCW','y3vYCMvUDfzLCNnPB25jza','se9tvevex0nptLzfuLnbveLptL9uru1qtefurv9vtKfwquLmqujmrq','DxjS','ywXSB2m','y29UDgvUDeHHC2G','DgvTCgXHDgvezwXLDgvK','zgvSzxrL','y2XVC2u','ChjLCgfYzunVBNzLCNnHDgLVBKvUDMLYB25Tzw50','AxneAxjLy3rVCNK','CNvUswq','zMLUza','zgf0yujHC2u2na','y2f0zwDVCNK','DgvTCgXHDgvwzxjZAw9UrgLYzwn0B3j5','uMvHzcbPDhmGzxHPC3rPBMCGy29UDgvUDhmGzMLYC3qGyw5KihbYzxnLCNzLihvUCMvSyxrLzcbPBNn0CNvJDgLVBNmUierVig5VDcbWzxjZAxn0igeGChjLzMvYzw5JzsbTzxjLBhKGyMvJyxvZzsbPDcbHChbLyxjZigLUihrOzsbJDxjYzw50ihjLCxvLC3qGDw5SzxnZihrOzsb1C2vYigfZA3mGEw91ihrVihjLBwvTyMvYigL0lG','ChjLDMLVDxnwzxjZAw9Uswq','Aw5WDxrdyxbHyMLSAxrPzxm','zMLSzxm','uKvuquLoruq','zxHWAxjLC0f0','ChvIBgLZAefJDgL2Axr5','B3jPz2LU','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu1rbvevFsu5wquXjra','zMLSzuLK','C3bSAxq','Aw5V','Bgf0zxn0qxzHAwXHyMXLvgvTCgXHDgvwzxjZAw9Uswq','Cgf0AhngB3jnyw5PzMvZDa','CMvNAxn0zxjgAwXL','y3jLyxrLq29UDMvYC2f0Aw9U','l3DVCMTZCgfJzq','ywXSB3DLzeLKCW','l3DVCMTZCgfJzs9VDxrWDxq','DgL0Bgu','DgfYz2v0vMvYC2LVBKLK','yM9VBgvHBG','AxntywzLsw50zwDLCG','CMvSyxrPDMvqyxrO','CM9SBgjHy2TdB252zxjZyxrPB24','C2XVDfrVA2vU','B3v0Chv0','y3jLyxrL','zMXHDe1HCa','nvjmzLLhuW','BwfUAwzLC3rFAgfZAa','r2vUzxjHDgvKigLTywDLCYbMCM9TihrOAxmGy29UDMvYC2f0Aw9UihjLBwfPBIbHDMfPBgfIBguGywnYB3nZigv4zwn1DgLVBNmGAw4GDgHLihjLywqTB25SEsa','zgLNzxn0','C3rYAw5NAwz5','l3j1BNrPBwu','CgvYBwfUzw50rgvSzxrLq29UDMvYC2f0Aw9U','Bwf4qNL0zxm','ChjLCgfYzunVBNzLCNnHDgLVBLrLBxbVCMfYEurPCMvJDg9YEq','q09ovKvsu0fusu9ox1rftvbmqvrfx01duf9jtLzbteLe','zw4Tvvm','vvbmt0fe','BwfUAwzLC3qUANnVBG','l3DVCMTZCgfJzs9PBMjVEa','CMvUzxC','DgHLBG','zw5HyMXLza','D3jPDgu','ywXS','C3vIyxjYyxK','mtmXmdyXnNjfExLntG','AxngAw5PDgu','A2v5CW','tufsx0fhru5ux1jpteXcqunlx1rbuKDfvf9jtLzbteLe','yxnZzxj0q2fUq3jLyxrL','CgvUzgLUz0nYzwf0zxm','DMvYC2LVBG','ugXHy2uGzMLUywWGzgvSAxzLCMfIBgvZigLUigfWChjVChjPyxrLihbHDgHZihvUzgvYic93B3jRC3bHy2uVB3v0Chv0ihnVihrOzxKGyMvJB21LihvZzxiTDMLZAwjSzsbVDxrWDxrZlG','zMLUywXSEq','CMvZCg9UC2vZvhjHBNnWB3j0','Bwf4','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','lNvWBg9Hza','Bwf4t3v0Chv0vg9Rzw5Z','DMvYC2LVBKLK','ywn0AxzLuNvUCW','se9tvevex0nptLzfuLnbveLptL9gsuXfx0nptKzmsunu','uLvox1rfuK1jtKfm','v09ss1nqqunf','lsaVD29YA3nWywnLl2LUyM94lW','rKLmrq','igfYzsbHBgLHC2vZig9MihrOzsbZyw1LihDYAxrHyMXLig92zxjSyxLZlG','CMvZB2X2zwruyxjNzxq','CMvHzezPBgu','tK9erq','y3jLyxrLzef0','ChvIBgLZAfDVCMTIzw5JAev2zw50','rvHfq1vusu9o','B3DUCW','se9tvevex0nptLzfuLnbveLptL9st0XmqKfds19uqvjhrvrFsu5wquXjra','y29TCgXLDgvvCgXVywq','y29UDMvYC2f0Aw9U','zgLZCgXHEu5HBwu','q09nueXfveve','BMXPBMS','CMvTB3zLv2f0y2HmzwfZzq','C2vZC2LVBLDHDgnOu2XVDhm','C2HHmJu2','vvbmt0fesu5h','C2XPy2u','B3v0Chv0rgLYzwn0B3j5','BgfZDefJDgL2Axr5qxq','BM90AwzPy2f0Aw9U','vgHLieHVC3qGzw5MB3jJzxmGDgHPCYbMAwXLigjVDw5Kyxj5lcbHBMqGBg9JywWGChjVy2vZC2vZihj1BIbPBNnPzguGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','BMfTzq','C3vJy2vZCW','yxjNCW','DxnLzej5DgvZ','CMvSzwfZzvnLC3nPB24','DgfYz2v0s2LUza','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5LDMvUDa','Bw9KzwXjza','CNvUu2v0DgXLBwvUDhm','u3rVCMuGzgLZCg9ZywjSzsbPBNrLCM1LzgLHDguGD29YAYbPBIaVDg1WlIbjDcbPCYbYzxvZzwqGywnYB3nZihj1BNmGAw4GDgHPCYbJB252zxjZyxrPB24Sigj1Dcb0AguGsg9ZDcbTyxKGy2XLyxiGAxqGywnJB3jKAw5NihrVihrOzsbZExn0zw0GDgvTCg9Yyxj5lwrPCMvJDg9YEsbSAwzLy3LJBguU','DgvTCg9Yyxj5uM9VDerPCMvJDg9YEq','BgLTAxq','CgLUBMvK','zMLUAxnOtwvZC2fNzq','ve9px0XbuKDf','qxr0ywnOBwvUDhm6cG','DxbSB2fKC0rPCMvJDg9YEq','AgfZ','y2fUy2vSq29UDMvYC2f0Aw9UvxbSB2fKCW','zgLZywjSzvbYzxbHCMvK','DxbKyxrLq29UDMvYC2f0Aw9U','AxnbCNjHEq','yMfZzvvYBa','zMLSzq','Aw5PDgLHBgL6zvDHDgnOtgvHC2u','CgvUzgLUz01LC3nHz2vZ','Bw9Kzq','te9tva','C3rVCMu','BM9KzuDLBMvYyxrPB24','Ag9ZDfbVBgLJEvzLCNnPB24','se9tvevex0nptLzfuLnbveLptL9vueDsqurfx0zbsuXfra','Dhj1BMm','CxvVDge','D2fPDezVCLbLBMrPBMDnzxnZywDLu3rHCNrZ','y2f0y2G','C25HChnOB3rtzxf1zw5Jzq','mtKZmJqWz1fZAwDt','l2rLDG','BMv0D29YA01Vzgu','Bwf4u3rVCMfNzuj5DgvZ','D2f0y2HmzwfZzxm','C3rHCNrnzxnZywDL','CMv0ywLUq29UDMvYC2f0Aw9UvgvTCgXHDgu','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jbtKDfx0LovKfmsuq','ChjVy2vZC0v4zwn1Dg9Y','C3rHDa','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGywXZBYbTB3vUDgvKihjLywqTB25SEsbHDca','C29YDa','zw1PDfDHDgnOrxzLBNq','ChjVBxb0','B3b0Aw9UCW','vgHPCYbPCYbHie5VzguTAg9ZDgvKignVBNzLCNnHDgLVBI4GvgHLieHVC3qTzgvJBgfYzwqGBw91BNrZigfYzsb0AguGy29TCgXLDguGzMLSzsbIB3vUzgfYEs4','D3jPDgvvCgXVywrdAhvUAW','DxbSB2fKC0j5uMvXDwvZDa','uvvpvefFrvHdruveruq','u1vdq0vfreve','zxHLy3v0ywjSzq','l2HVBwuVBwfY','D2f0y2Hjza','ChvIBgLZAeHVC3rLzev2zw50','uMvHzcb1C2vYihvWBg9HzhmGzNjVBsaVD29YA3nWywnLl2LUyM94lG','AxngAwXL','AxndB252zxjZyxrPB25jBLvZzq','DhvYBKLK','y2fUy2vS','y2XPzw50twvZC2fNzuLK','u1rbuLrjtKC','C3LUyW','AxrLBxm','ywXSu2v0DgXLza','CMvWBgfJzq','BNvTyMvY','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','yNL0zuXLBMD0Aa','l2jPBG','y3jLyxrLtwvZC2fNzq','CNvUoG','se9tvevex0nptLzfuLnbveLptL9svu5Fqunusvzf','zMLUzenVBNzLCNnHDgLVBKj5q2XPzw50uMvXDwvZDa','qvzbsuXbqKXf','ywn0AxzLvMvYC2LVBKLK','revmrvrfra','BwnWx2nVBMzPz19OyxnO','DgL0Bgvhzw5LCMf0Aw9U','q1vtve9n','B3v0Chv0q2fWywjPBgL0AwvZ','y29UzMLNDxjHDgLVBIXKAxnWBgf5tMfTzsXPzcXVCMLNAw4SCNvUDgLTzsXZzxj2zxjoyw1LlhrYyw5ZCg9YDcX2zxjZAw9U','vvbtvfjfqu1Ftu9eruXFsuq','mJCXnJbrB3HwvwK','DxnLCLn0B3jHz2vlzxK','y3rPBwvnCW','zNjVBq','uKvbrfK','y2XPzw50uMvXDwvZDeLK','zxHWzwn0zwrjBNrLCNj1ChrPB25Z','qunusvzf','vvnfuG','se9tvevex0nptLzfuLnbveLptL9gsuXfx0LovKfmsuq','CMvHC29UAw5NrwzMB3j0CW','CMvXDwLYzvvWBg9Hza','C2vZC2LVBKLK','sg9ZDgvKignVBNzLCNnHDgLVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','zMLSzv9JB3vUDa','y3vYC29Y','CMvHzhK','C2fMzvbHCNnL','CMvXDwLYzvDYAxrHyMXLq29UDMvYC2f0Aw9U','BgLZDenVBNzLCNnHDgLVBNm','AgLZDg9YEvzLCNnPB25Z','BM9KzuLK','DxbKyxrL','CgLUBMvKqxq','ChvIBgLZAfj1BNrPBwvfDMvUDa','C2f2zu1LC3nHz2vby2nLChrHBMnL','AxntEw1IB2XPy0XPBMS','C291CMnLv29YA3nWywnLugf0Aa','B2jQzwn0','CMf3','zMLUzeLUzgv4','AgLZDg9YEu11Dgf0Aw9UCW','Bw9KzwXqB2XPy3K','yxzHAwXHyMXL','l2XPyJy0','t19sre9otfK','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','v2HLBIbYzxbVCNrPBMCGyw4GB3v0Chv0igzPBguGDg8GDgHLihvZzxiSihvZzsbHie1HCMTKB3DUigXPBMSGAw4GDgHLigv4ywn0igzVCM0Gw3jLBgf0AxzLl3bHDgHDkc93B3jRC3bHy2uVB3v0Chv0l3jLBgf0AxzLl3bHDgGPihnVihrOzsb1C2vYignHBIbVCgvUigL0CYbJB250CM9SBgvKihbYzxzPzxCGB3iGzg93BMXVywqU','C2vJCMv0tMfTzq','yxjNDw1LBNrZ','y29Kzq','C2f2zuf1Dg9TyxrPy1rPDgXL','ChjVy2vZC0v4zwn1Dg9YrMfJDg9YEq','DgvTCgXHDgvjza','y29UDgvUDf9OyxnO','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGCM9VDcbPCYbYzwfKlw9UBhKUifDPDgHPBIaVD29YA3nWywnLlcbVBMX5ic93B3jRC3bHy2uVAw5IB3GGyw5Kic93B3jRC3bHy2uVB3v0Chv0igfYzsb3CML0ywjSzs4','zw5KC1DPDgG','BxrPBwvnCW','C29Tzq','Dg9tDhjPBMC','v2HLBIb0AguGDxnLCIbHC2TZihrVihbSywnLigeGChjLDMLVDxnSEsbNzw5LCMf0zwqGAw1Hz2uGAw4GB3v0Chv0lcbPBNnWzwn0ia','se9tvevex0nptLzfuLnbveLptL9rvu9uqv9fwenfrurfra','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','BgLZDezPBgvZ','zgLYzwn0B3jPzxm','y29TCgXLDgvKqxq','BMv4DfDVCMTIzw5JAev2zw50','C25HChnOB3q','l3j1BG','B3bLCMf0Aw9UCW','se9tvevex0nptLzfuLnbveLptL9vueXpqurFtK9ux0zpvu5e','y2fUy2vSvxbSB2fK','DhjPBq','zgvMyxvSDfjLyxnVBMLUz0vMzM9YDa','l3rTCa','zgvZy3jPChrPB24','D29YA2jLBMnOu2vXDwvUy2u','ywn0AxzPDhK','yM91BMrHCNK','y29UDMvYC2f0Aw9Uu3rVCMfNzuTLEq','C3rYAw5N','y29UDMvYC2f0Aw9Uswq','Agv4','l2XPyG','Bg9HzfrLBxbSyxrLvMvYC2LVBG','D2f0y2GUzMfPBgvK','CMvHza','yxbWBhLbDxrVBwf0AwnuAxrSzq','uLvotKLorW','DxbSB2fKu3rHDhvZ','Bg9JywXLq29TCgfYzq','BwfW','CMvJzwL2zwrcExrLCW','C2vZC2LVBKHHC2G','y2XLyw51CeXVy2TZ','Dw53yxrJAa','y29UDgv4DfDPBMrVD1rVA2vUCW','y29UDMvYC2f0Aw9UrgLYzwn0B3j5','ywn0AxzPDgLLCW','BgvUz3rO','y29TBwfUza','CMvTB3zLq29UDMvYC2f0Aw9Uv2f0y2HmzwfZzxm','q0foq0vmteve','v2HLBIb0AguGDxnLCIbLEhbSAwnPDgX5igfZA3mGEw91ihrVihjLBwvTyMvYigeGCMvXDwLYzw1LBNqSihbYzwzLCMvUy2uSignVBNzLBNrPB24SihDVCMTMBg93ihj1BguSig9Yig90AgvYigD1AwrHBMnLigzVCIbSyxrLCIb3B3jRigLUihrOAxmGy29UDMvYC2f0Aw9UlcbJCMvHDguGB3iGDxbKyxrLic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KlG','q09ovKvsu0fusu9ox1rftvbmqvrfx1zfuLnjt05Fq09suLvqveve','DxbKyxrLq29UzMLNDxjHDgLVBG','Bw9KzwXZ','CgfYC2u','su5urvjsvvburuq','BwLTzvr5Cgu','zMLSzvbYB2PLy3rPB25jza','CMvXDwLYzuf0DgfJAg1LBNq','rg8GBM90igrLC2nYAwjLigvKAxrZihvUzgvYic93B3jRC3bHy2uVAw5IB3GGB3iGl3DVCMTZCgfJzs9VDxrWDxqGyxmGy2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguU','BwfUAwzLC3q','revgqvvmva','qxqGDgHLihn0yxj0ig9MigvHy2GGCNvUlcbYzwfKic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KigLMigL0igv4Axn0CY4GsxqGC3rVCMvZignVBNzLCNnHDgLVBI1ZCgvJAwzPyYbYzxf1AxjLBwvUDhmGzM9YigXHDgvYihj1BNmGyw5KigLZig5VDcbWyxj0ig9MihrOzsbWDwjSAxnOzwqGDgvTCgXHDguU','zgvSzxrLrMLSzq','CNvUDgLTzq','DgvZDa','tg9JywWGChjVy2vZC2vZlcboB2rLlwXVy2fSifDLyIbgzxrJAcWGyxzHAwXHyMXLifDLyIbtzwfYy2GSig1VzgvSlwHVC3rLzcb3zwiSigfUzcbWDwjSAxnOzwqGCMvTB3rLieHuvfaGtunqig1HEsbHy2nLC3mGBMv0D29YA3mGCMvHy2HHyMXLigzYB20GDgHPCYboB2rLlG','ChjVDg9JB2W','se9tvevex0nptLzfuLnbveLptL9bvfrbq0Hnru5ux0LovKfmsuq','B2zMC2v0','CMv3Aw5K','Cgf0AhngB3jdB252zxjZyxrPB24','DxbNCMfKzq','se9tvevex0nptLzfuLnbveLptL9vueXpqurFsu5dt01qtevurq','mZuYmJa5CKXPC2X0','AwrLBNrPDhK','CMvHzeLTywDL','Bwf4vxbSB2fKqNL0zxm','C3rHCNrLzef0','ywrK','CNvU','zhjHzNq','Dw5Yzwy','C3rHDhvZ','tMv3ignVBNzLCNnHDgLVBG','DgL0BgvdAgfUz2vK','Cgf0Ae1VDw50CW','se9tvevex0nptLzfuLnbveLptL9xqvrdsf9gquLmruq','BgLZDa','ChvIBgLZAfvWz3jHzgvgywLSDxjL','zgv2','se9tvevex0nptLzfuLnbveLptL9vueXpqurFt0zgu0vux0LovKfmsuq','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGyw4GAw1TDxrHyMXLigfKBwLUAxn0CMf0B3iTBwfPBNrHAw5Lzcb0zw1WBgf0zsbZBMfWC2HVDc4Gq2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguGBxvZDcbIzsbTywrLigLUigL0CYbZB3vYy2uGv29YA3nWywnLigfUzcbWDwjSAxnOzwqGyxmGysbUzxCGDMvYC2LVBI4','zw1PDfDVCMTIzw5JAev2zw50','DhjHBNnWB3j0','zw50CMLLCW','rwfJAcbUzxCGC2fUzgjVEcbWCM9JzxnZigHHCYbHihrLBxbVCMfYEsbit01figf0ic9OB21Ll21HCIWGyxbHCNqGzNjVBsbLEhbSAwnPDgX5ig1VDw50zwqGzgLYzwn0B3jPzxmUierVig5VDcbYzwX5ig9UieHptuuGzMLSzxmGB3iGC2HLBgWGC3rHDguGCgvYC2LZDgLUzYbIzxr3zwvUihrVB2WGzxHLy3v0Aw9UCY4GvxnLic90BxaGzM9YihjLDxnHyMXLigLUDgvYBwvKAwf0zsbMAwXLCYbHBMqGC2v0ihjLCxvPCMvKigvUDMLYB25Tzw50ihzHCMLHyMXLCYbPBIbLywnOignVBw1HBMqU','ChjLCgfYzuzVCKrPC2fIBgu','BM9KzufWCfzLCNnPB24','yMfZzty0','Aw50zxjYDxb0','C2v0','DgvTCg9Yyxj5ugf0Aa','surmrq','zMLSzurLBgv0zxm','zMLUAxnOuNvU','CMvJB25JAwXLrMLSzxm','DxbSB2fKuhjLzMXPz2H0u3rHDhvZ','zgvMyxvSDeLK','muHOB0Hyzq','q0foq0vmteLorW','D29YA2jLBMnOq29UBMvJDgLVBKLK','z2v0','ywr2yw5JzuXHC3rby3rPDML0Eq','DxrMoa','CMvQzwn0','C2nOzw1HvMvYC2LVBG','sg9ZDgvKignVBNzLCNnHDgLVBIbMAwXLihbYB2PLy3rPB24GzMfPBgvKlG','igfUzca','DgL0BgvtB3vYy2u','C3rVCMfNzv9RzxK','zgf0yq','C3vTBwfYEq','uLvoveLnrq','t19ot0zpteXpvW','Dg90ywXFyNL0zxm','DgfYz2v0ugf0Aa','BwLU','Aw5IB3G','ywXSB3DLze1VzgvSswrZ','vgHLignVBNzLCNnHDgLVBIb0zw1WBgf0zsb1CgDYywrLigzHAwXLzc4','Dw5RBM93BG','rM9SBg93ihnHDMvKignVBNzLCNnHDgLVBIbPBNn0CNvJDgLVBNmGC3vIAMvJDcb0BYb0AguGsg9ZDcDZihnLy3vYAxr5igjVDw5KyxjPzxmSihrOzsbWDwjSAxnOzwqGDgvTCgXHDguGAw5ZDhj1y3rPB25ZlcbHBMqGDgHLihvZzxiNCYbJDxjYzw50igv4CgXPy2L0ihjLCxvLC3qU','se9tvevex0nptLzfuLnbveLptL9trvntsu9ox0LovKfmsuq','q09orKXjq1q','tK9orq','u0vmrunuigLKlhrLBxbSyxrLx2LKlhn0yxr1CYXZDg9YywDLx2TLEsXTyw5PzMvZDcXJB250zw50x2HHC2GSBwfUAwzLC3rFAgfZAcXTy3bFy29UzMLNx2HHC2GScIaGicaGicaGicaGicaGicbMAwXLx2nVDw50lhrVDgfSx2j5DgvZlgHVC3rFCg9SAwn5x3zLCNnPB24kicaGicaGicaGrLjptsbJB252zxjZyxrPB25FDgvTCgXHDgvFDMvYC2LVBNmGv0HfuKuGAwq9pYbbtKqGDgvTCgXHDgvFAwq9pW','CMvZB2X2zq','se9tvevex0nptLzfuLnbveLptL9tvefurv9jtLzbteLe','zNvSBc1Hy2nLC3m','zw1PDfDHDgnOtgvHC2vfDMvUDa','ChjLzMXPz2H0vxbSB2fK','sfruua','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5ZBMfWC2HVDa','yxjYyxK','mte0mdq3nKvdCKH5yG','C3rHCNrsDw4','C3rHCNrZv2L0Aa','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jfq09oq0Lmrv9gquLmruq','rKfjteve','BwvZC2fNzq','igrPCMvJDg9YEs4','DgLTzxi','DgvTCgXHDgvoyw1L','D2f0y2G','CMvKDwnL','Cgf0Ahm','D2f0y2HmzwfZzvrPBwvY','ChvZAa','DxnLCL9TzxnZywDL','A2LUza','DxnLCKLK','y29UzMLNDxjHDgLVBG','yxr0ywnOBwvUDeLKCW','zgLZCg9Zzq','DgvTCgXHDgu','zgf0ywjHC2u','zMLUze1LC3nHz2u','y3jLyxrLvxbSB2fK','BM93','tufyx1nbrKvFsu5uruDfuG','uLvox0LnquDfx05pvf9gt1vora','C2L6zq','l3bYB2m','CMvXDwLYzunVBNzLCNnHDgLVBG','CMvSzwfZzq','Aw1Hz2vjBMrLEa','AgLZDg9YEq','DxbKyxrLzef0','DMfSDwvZ','yMvMB3jL','u0vmrunuigLKiezst00Gy29UDMvYC2f0Aw9Ux3rLBxbSyxrLx3zLCNnPB25ZcIaGicaGicaGifDirvjfihrLBxbSyxrLx2LKpt8Gqu5eihn0yxr1CZ0NqvzbsuXbqKXfjWOGicaGicaGicbpuKrfuIbcwsb2zxjZAw9Ux251BwjLCIbervndlhb1yMXPC2HLzf9HDcbervndlgLKierfu0mkicaGicaGicaGteLnsvqGmq','BgLUA1rHCMDLDa','se9tvevex0nptLzfuLnbveLptL9ot1rFqvvuse9ssvPfra','u1resu8','DxbSB2fKCW','y29UDgvUDa','C2vJCMv0rw52AxjVBM1LBNq','AgfZtM9Urw1WDhLvC2vYtwvZC2fNzq','CM9SBgjHy2S','u05bufnit1q','l3vZCG','ChvIBgLZAfrLCM1PBMfStM90AwzPy2f0Aw9U','vu5srvnuuKLdveve','CxvVDgfZ'];_0xfd98=function(){return _0x206e06;};return _0xfd98();}import{createHash,randomUUID}from'node:crypto';import{constants}from'node:fs';import{lstat,mkdir,open,readFile,rename,rm,utimes}from'node:fs/promises';import{isAbsolute,join,relative,resolve,sep}from'node:path';import{conversationTurnSchema,conversationTemplateDraftSchema,conversationTemplateSummarySchema,hostedConversationConfigUpdateInputSchema,hostedConversationCreateInputSchema,hostedConversationDeleteResultSchema,hostedConversationFileDeleteInputSchema,hostedConversationFileDeleteResultSchema,hostedConversationFileReadInputSchema,hostedConversationFileReadResultSchema,hostedConversationFilesSchema,hostedConversationIdInputSchema,hostedConversationImageReadInputSchema,hostedConversationListInputSchema,hostedConversationListPageSchema,hostedConversationMessageInputSchema,hostedConversationMetadataUpdateInputSchema,hostedConversationRollbackInputSchema,hostedConversationSnapshotSchema,hostedConversationSummarySchema,hostedConversationUnwatchInputSchema,hostedConversationUploadChunkInputSchema,hostedConversationUploadControlInputSchema,hostedConversationUploadCreateInputSchema,hostedConversationUploadPreflightInputSchema,hostedConversationUploadPreflightResultSchema,hostedConversationUploadSchema,hostedConversationWatchInputSchema,marAgentRuntimeModelConfigurationSchema,mcpInstallationConfigurationSchema,mcpRuntimeDescriptorSchema,resolveMarAgentDefaultReasoningEffort}from'@myagentroam/protocol';import{hostedConversationGeneratedImagesDisplayDirectory,hostedConversationImageRunId,marAgentGeneratedImagesDirectory}from'../runner/mar-agent/generated-images.js';import{sessionTitleFromFirstMessage}from'../util/node-operation-parsers.js';import{safeErrorCode}from'../util/safe-error.js';import{SessionWatchSlotCoordinator}from'./session-watch-slot-coordinator.js';const DEFAULT_HOSTED_CONVERSATION_TITLE=_0x3f3794(0x32e),HOST_POLICY_VERSION=-0x1506+0x53*0x61+-0xa6c*0x1,MAX_FILE_READ_BYTES=(-0x6aa+-0x1979+0x2223)*(-0x31*-0x1f+-0xb*-0x365+-0x2746),WATCH_TTL_MS=0x2818*0x4+-0xa0ca+0xb032,RUNTIME_LINK_ROOTS=[_0x3f3794(0x399),_0x3f3794(0x2a1),_0x3f3794(0x1e5),_0x3f3794(0x2f8),_0x3f3794(0x2d1)],RESERVED_SANDBOX_ROOTS=[_0x3f3794(0x208),_0x3f3794(0x290),_0x3f3794(0x21a),_0x3f3794(0x399),_0x3f3794(0x2a1),_0x3f3794(0x1e5),_0x3f3794(0x2f8),_0x3f3794(0x2d1),_0x3f3794(0x387),_0x3f3794(0x27b),_0x3f3794(0x2e9),_0x3f3794(0x2ef)];export class HostedConversationNodeService{[_0x3f3794(0x289)];[_0x3f3794(0x383)];['id'];[_0x3f3794(0x22e)]=new Map();[_0x3f3794(0x26e)]=new Map();[_0x3f3794(0x238)]=new Map();[_0x3f3794(0x25d)]=new Map();[_0x3f3794(0x307)]=new Map();[_0x3f3794(0x2b5)]=new Set();[_0x3f3794(0x393)]=new Map();[_0x3f3794(0x28c)]=new Map();[_0x3f3794(0x342)]=new Set();[_0x3f3794(0x27e)]=new Map();[_0x3f3794(0x303)]=new Set();[_0x3f3794(0x2ce)]=new Map();[_0x3f3794(0x2c3)]=new Map();[_0x3f3794(0x24d)];[_0x3f3794(0x268)]=![];[_0x3f3794(0x279)]=0x539+0x10f2*-0x1+0x1*0xbb9;[_0x3f3794(0x2f1)]=0x1*-0x1ceb+-0x1*0x25f9+0x42e4;constructor(_0x35694f){const _0x1521f1=_0x3f3794;this[_0x1521f1(0x289)]=_0x35694f,this[_0x1521f1(0x383)]=_0x35694f[_0x1521f1(0x383)]??Date[_0x1521f1(0x383)],this['id']=_0x35694f['id']??randomUUID,this[_0x1521f1(0x24d)]=_0x35694f[_0x1521f1(0x24d)]??new SessionWatchSlotCoordinator();}[_0x3f3794(0x2ea)](){const _0x1614e5=_0x3f3794;return{'conversation.hosted.list':_0x2ca473=>this[_0x1614e5(0x332)](_0x2ca473),'conversation.hosted.create':_0x20da1f=>this[_0x1614e5(0x213)](_0x20da1f),'conversation.hosted.get':_0x57f9ce=>this[_0x1614e5(0x34a)](_0x57f9ce),'conversation.hosted.watch':_0x244c6f=>this[_0x1614e5(0x374)](_0x244c6f),'conversation.hosted.unwatch':_0x12c54f=>this[_0x1614e5(0x304)](_0x12c54f),'conversation.hosted.message':_0x7a3107=>this[_0x1614e5(0x370)](_0x7a3107),'conversation.hosted.rollback':_0x1ff57c=>this[_0x1614e5(0x397)](_0x1ff57c),'conversation.hosted.interrupt':_0x21d930=>this[_0x1614e5(0x33e)](_0x21d930),'conversation.hosted.config.update':_0x19d2cf=>this[_0x1614e5(0x30e)](_0x19d2cf),'conversation.hosted.metadata.update':_0x40b40c=>this[_0x1614e5(0x1d7)](_0x40b40c),'conversation.hosted.image.read':_0x97916a=>this[_0x1614e5(0x326)](_0x97916a),'conversation.hosted.files.list':_0x3ab13b=>this[_0x1614e5(0x2e4)](_0x3ab13b),'conversation.hosted.file.read':_0x4251a0=>this[_0x1614e5(0x240)](_0x4251a0),'conversation.hosted.file.delete':_0x2aac65=>this[_0x1614e5(0x319)](_0x2aac65),'conversation.hosted.files.upload.preflight':_0x193c9d=>this[_0x1614e5(0x367)](_0x193c9d),'conversation.hosted.files.upload.create':_0x41fa39=>this[_0x1614e5(0x382)](_0x41fa39),'conversation.hosted.files.upload.chunk':_0x1686f6=>this[_0x1614e5(0x28b)](_0x1686f6),'conversation.hosted.files.upload.status':_0x41e252=>this[_0x1614e5(0x2fe)](_0x41e252),'conversation.hosted.files.upload.complete':_0x207989=>this[_0x1614e5(0x247)](_0x207989),'conversation.hosted.files.upload.cancel':_0x171e41=>this[_0x1614e5(0x2ec)](_0x171e41),'conversation.hosted.delete':_0x225072=>this[_0x1614e5(0x1ef)](_0x225072)};}[_0x3f3794(0x33b)](){const _0x2cebc3=_0x3f3794;if(this[_0x2cebc3(0x268)]||this[_0x2cebc3(0x26e)][_0x2cebc3(0x386)]>-0x11*0x10b+0x2*-0x78e+-0x20d7*-0x1||this[_0x2cebc3(0x238)][_0x2cebc3(0x386)]>-0x47*-0x7+-0x25*-0x37+0x6*-0x1a6||this[_0x2cebc3(0x25d)][_0x2cebc3(0x386)]>-0x1592+0x54*0x6f+-0xeda*0x1||this[_0x2cebc3(0x2ce)][_0x2cebc3(0x386)]>-0xdd1+-0x1*-0x214f+-0x137e)return undefined;return this[_0x2cebc3(0x268)]=!![],()=>{const _0x1d9dc3=_0x2cebc3;this[_0x1d9dc3(0x268)]=![];};}[_0x3f3794(0x332)](_0x5b6358){const _0x23bc72=_0x3f3794,_0x34b1fe=hostedRequest(_0x5b6358),_0x3a2bd6=hostedConversationListInputSchema[_0x23bc72(0x310)](_0x34b1fe[_0x23bc72(0x353)]),_0x119e18=this[_0x23bc72(0x289)][_0x23bc72(0x271)][_0x23bc72(0x2c2)]({'userId':_0x34b1fe[_0x23bc72(0x37b)],'limit':_0x3a2bd6[_0x23bc72(0x260)],..._0x3a2bd6[_0x23bc72(0x2be)]===undefined?{}:{'cursor':_0x3a2bd6[_0x23bc72(0x2be)]}});return hostedConversationListPageSchema[_0x23bc72(0x310)]({..._0x119e18,'items':_0x119e18[_0x23bc72(0x29b)][_0x23bc72(0x300)](_0x3ffbd9=>({..._0x3ffbd9,'activity':this[_0x23bc72(0x2f2)](_0x3ffbd9['id'])}))});}[_0x3f3794(0x213)](_0x108569){const _0x498970=_0x3f3794;if(this[_0x498970(0x268)])return Promise[_0x498970(0x34d)](new Error(_0x498970(0x281)));const _0x23d57a=hostedRequest(_0x108569),_0xdebfa3=hostedConversationCreateInputSchema[_0x498970(0x310)](_0x23d57a[_0x498970(0x353)]),_0x39d4c0=conversationTemplateSummarySchema[_0x498970(0x310)](_0x23d57a[_0x498970(0x37f)]),_0x186872=runtimeModels(_0x23d57a[_0x498970(0x30f)]);if(_0x39d4c0['id']!==_0xdebfa3[_0x498970(0x2da)]||_0x39d4c0[_0x498970(0x2c4)]!==this[_0x498970(0x289)][_0x498970(0x2c4)]()||!_0x39d4c0[_0x498970(0x2d0)]||_0x39d4c0[_0x498970(0x32d)]!==_0x498970(0x2b6)||_0x39d4c0[_0x498970(0x1e9)]===null)throw new Error(_0x498970(0x1ea));const _0x9e115d=_0x23d57a[_0x498970(0x37b)]+'\x00'+_0xdebfa3[_0x498970(0x2b4)],_0x2030fe=this[_0x498970(0x22e)][_0x498970(0x34a)](_0x9e115d);if(_0x2030fe!==undefined)return _0x2030fe;const _0x585f62=this[_0x498970(0x289)][_0x498970(0x271)][_0x498970(0x2a5)](_0x23d57a[_0x498970(0x37b)],_0xdebfa3[_0x498970(0x2b4)]);if(_0x585f62!==undefined)return this[_0x498970(0x2e8)](_0x23d57a[_0x498970(0x37b)],_0x585f62['id'],_0x186872);const _0x5d17eb=this[_0x498970(0x207)](_0x23d57a[_0x498970(0x37b)],_0xdebfa3[_0x498970(0x2b4)],_0x39d4c0,_0x186872,_0x23d57a[_0x498970(0x1df)]);return this[_0x498970(0x22e)][_0x498970(0x33f)](_0x9e115d,_0x5d17eb),void _0x5d17eb[_0x498970(0x231)](()=>this[_0x498970(0x22e)][_0x498970(0x1ef)](_0x9e115d))[_0x498970(0x278)](()=>undefined),_0x5d17eb;}async[_0x3f3794(0x207)](_0x4c619e,_0x3ef3e5,_0x11ece0,_0x54a65e,_0x4dcb86){const _0x4a0f2c=_0x3f3794;await this[_0x4a0f2c(0x289)][_0x4a0f2c(0x22d)]?.();const _0x464f9c=await this[_0x4a0f2c(0x2f9)](_0x11ece0[_0x4a0f2c(0x1e9)],_0x11ece0['id']),_0x5f5160=selectModel(_0x464f9c,_0x54a65e,_0x464f9c[_0x4a0f2c(0x2cf)][_0x4a0f2c(0x346)]),_0x58a39e=this['id'](),_0x5ed15e=await this[_0x4a0f2c(0x289)][_0x4a0f2c(0x271)][_0x4a0f2c(0x1f1)](_0x4c619e,_0x58a39e),_0xcd06da=this[_0x4a0f2c(0x330)](_0x5ed15e[_0x4a0f2c(0x376)],_0x464f9c),_0x259fa3=this[_0x4a0f2c(0x283)](_0x5ed15e[_0x4a0f2c(0x376)],_0x464f9c);let _0x1bd26a;try{const _0x3c5a95=await this[_0x4a0f2c(0x289)][_0x4a0f2c(0x31a)][_0x4a0f2c(0x1d6)]({'conversationId':_0x58a39e,'homeDirectory':_0x5ed15e[_0x4a0f2c(0x376)][_0x4a0f2c(0x1c6)],'workspaceDirectory':_0x464f9c[_0x4a0f2c(0x1cf)],'systemInstruction':systemInstruction(_0x464f9c),'defaultModelId':_0x5f5160['id'],'models':networkModels(allowedModels(_0x464f9c,_0x54a65e),_0x464f9c[_0x4a0f2c(0x32b)][_0x4a0f2c(0x27c)]),..._0x4dcb86===undefined?{}:{'runtimeScopeId':_0x4dcb86},'pathMounts':_0xcd06da,'processExecutor':_0x259fa3});_0x1bd26a=_0x3c5a95[_0x4a0f2c(0x2bb)];const _0x43c27d=this[_0x4a0f2c(0x383)](),_0x49d7a1={'id':_0x58a39e,'nodeId':this[_0x4a0f2c(0x289)][_0x4a0f2c(0x2c4)](),'sessionId':_0x1bd26a,'templateId':_0x11ece0['id'],'templateName':_0x11ece0[_0x4a0f2c(0x255)],'activeVersionId':_0x464f9c['id'],'title':DEFAULT_HOSTED_CONVERSATION_TITLE,'titleSource':_0x4a0f2c(0x317),'pinnedAt':null,'status':_0x4a0f2c(0x2b6),'modelId':_0x5f5160['id'],'createdAt':_0x43c27d,'updatedAt':_0x43c27d,'lastActivityAt':_0x43c27d,'userStorageKey':_0x5ed15e[_0x4a0f2c(0x2b0)],'conversationStorageKey':_0x5ed15e[_0x4a0f2c(0x2f4)],'clientRequestId':_0x3ef3e5,'templateDeleted':![],'quota':{'usedBytes':0x0,'maxBytes':_0x464f9c[_0x4a0f2c(0x32b)][_0x4a0f2c(0x1bc)][_0x4a0f2c(0x27d)]}},_0x55f276=await this[_0x4a0f2c(0x289)][_0x4a0f2c(0x271)][_0x4a0f2c(0x207)](_0x49d7a1);return _0x55f276['id']!==_0x58a39e&&(await this[_0x4a0f2c(0x289)][_0x4a0f2c(0x31a)][_0x4a0f2c(0x259)]({'conversationId':_0x58a39e,'sessionId':_0x1bd26a,'homeDirectory':_0x5ed15e[_0x4a0f2c(0x376)][_0x4a0f2c(0x1c6)]})[_0x4a0f2c(0x278)](()=>undefined),await rm(_0x5ed15e[_0x4a0f2c(0x376)][_0x4a0f2c(0x306)],{'recursive':!![],'force':!![]})),this[_0x4a0f2c(0x2e8)](_0x4c619e,_0x55f276['id'],_0x54a65e);}catch(_0x1ad778){if(_0x1bd26a!==undefined)await this[_0x4a0f2c(0x289)][_0x4a0f2c(0x31a)][_0x4a0f2c(0x259)]({'conversationId':_0x58a39e,'sessionId':_0x1bd26a,'homeDirectory':_0x5ed15e[_0x4a0f2c(0x376)][_0x4a0f2c(0x1c6)]})[_0x4a0f2c(0x278)](()=>undefined);await rm(_0x5ed15e[_0x4a0f2c(0x376)][_0x4a0f2c(0x306)],{'recursive':!![],'force':!![]})[_0x4a0f2c(0x278)](()=>undefined);throw _0x1ad778;}}async[_0x3f3794(0x34a)](_0x383cc1){const _0x5320c2=_0x3f3794,_0x23d3dd=hostedRequest(_0x383cc1),_0x463fa3=hostedConversationIdInputSchema[_0x5320c2(0x310)](_0x23d3dd[_0x5320c2(0x353)]);return this[_0x5320c2(0x2e8)](_0x23d3dd[_0x5320c2(0x37b)],_0x463fa3[_0x5320c2(0x2f6)],runtimeModels(_0x23d3dd[_0x5320c2(0x30f)]),_0x23d3dd[_0x5320c2(0x1ee)]);}async[_0x3f3794(0x2e8)](_0x5527d2,_0x2b6838,_0xf02c96,_0x43b1e7=![],_0x136b88=![],_0x5dbc48){const _0x1f5263=_0x3f3794;if(_0x136b88)return this[_0x1f5263(0x1de)](_0x5527d2,_0x2b6838,_0xf02c96,_0x43b1e7,_0x5dbc48);while(!![]){const _0x2bd318=this[_0x1f5263(0x2c3)][_0x1f5263(0x34a)](_0x2b6838)??0x1b5a+-0x2*-0x8e1+-0x2d1c,_0xa5f2d3=this[_0x1f5263(0x2ce)][_0x1f5263(0x34a)](_0x2b6838);if(_0xa5f2d3!==undefined){await _0xa5f2d3[_0x1f5263(0x278)](()=>undefined);continue;}const _0x61f5=await this[_0x1f5263(0x1de)](_0x5527d2,_0x2b6838,_0xf02c96,_0x43b1e7);if(!this[_0x1f5263(0x2ce)][_0x1f5263(0x266)](_0x2b6838)&&(this[_0x1f5263(0x2c3)][_0x1f5263(0x34a)](_0x2b6838)??-0x4*0x4f4+-0x26ec*0x1+0x15*0x2cc)===_0x2bd318)return _0x61f5;}}async[_0x3f3794(0x1de)](_0x44a2ee,_0x21a600,_0x18161d,_0x172b98,_0x2594d9){const _0x5eaf36=_0x3f3794;let _0x10b0ca=this[_0x5eaf36(0x289)][_0x5eaf36(0x271)][_0x5eaf36(0x388)](_0x44a2ee,_0x21a600);if(_0x172b98)_0x10b0ca=await this[_0x5eaf36(0x289)][_0x5eaf36(0x271)][_0x5eaf36(0x280)](_0x44a2ee,_0x21a600,this[_0x5eaf36(0x383)]());const _0x6da4cb=_0x10b0ca[_0x5eaf36(0x1ee)]?undefined:this[_0x5eaf36(0x204)](_0x10b0ca[_0x5eaf36(0x2da)]),_0x59792e=_0x6da4cb??_0x10b0ca[_0x5eaf36(0x2a7)],_0x6508c5=await this[_0x5eaf36(0x2f9)](_0x59792e,_0x10b0ca[_0x5eaf36(0x2da)]),_0x4c2c39=networkModels(allowedModels(_0x6508c5,_0x18161d),_0x6508c5[_0x5eaf36(0x32b)][_0x5eaf36(0x27c)]),_0x48b286=this[_0x5eaf36(0x289)][_0x5eaf36(0x271)][_0x5eaf36(0x321)](_0x44a2ee,_0x10b0ca['id']),_0x1d87f7=_0x2594d9??await this[_0x5eaf36(0x289)][_0x5eaf36(0x31a)][_0x5eaf36(0x38b)]({'conversationId':_0x10b0ca['id'],'sessionId':_0x10b0ca[_0x5eaf36(0x2bb)],'homeDirectory':_0x48b286[_0x5eaf36(0x1c6)],'modelId':_0x10b0ca[_0x5eaf36(0x25c)]});return hostedConversationSnapshotSchema[_0x5eaf36(0x310)]({'nodeAppVersion':this[_0x5eaf36(0x289)][_0x5eaf36(0x33c)]?.()??_0x5eaf36(0x35d),'conversation':this[_0x5eaf36(0x354)](_0x10b0ca),'template':templateSummary(_0x10b0ca,_0x6508c5[_0x5eaf36(0x32b)]),'run':this[_0x5eaf36(0x238)][_0x5eaf36(0x34a)](_0x10b0ca['id'])?.[_0x5eaf36(0x32a)]??null,'turns':_0x1d87f7,'files':this[_0x5eaf36(0x289)][_0x5eaf36(0x271)][_0x5eaf36(0x2e4)](_0x44a2ee,_0x10b0ca['id']),'models':_0x4c2c39[_0x5eaf36(0x300)](modelSummary),'error':null,'snapshotSequence':0x0});}async[_0x3f3794(0x374)](_0x5701fc){const _0x120a92=_0x3f3794,_0x29a6a0=hostedRequest(_0x5701fc),_0x51a2c8=hostedConversationWatchInputSchema[_0x120a92(0x310)](_0x29a6a0[_0x120a92(0x353)]),_0x3fd9f9=this[_0x120a92(0x289)][_0x120a92(0x271)][_0x120a92(0x388)](_0x29a6a0[_0x120a92(0x37b)],_0x51a2c8[_0x120a92(0x2f6)]);if(this[_0x120a92(0x303)][_0x120a92(0x266)](_0x3fd9f9['id']))throw new Error(_0x120a92(0x364));const _0x302b29=requireWatchSessionHash(_0x29a6a0[_0x120a92(0x302)]),_0x2f67d7=watchOwnerKey(_0x302b29,_0x51a2c8[_0x120a92(0x349)]);if(_0x51a2c8[_0x120a92(0x26f)]===_0x120a92(0x223)){const _0x384ab8=this[_0x120a92(0x27e)][_0x120a92(0x34a)](_0x2f67d7);if(_0x384ab8===undefined||!this[_0x120a92(0x24d)][_0x120a92(0x245)](_0x2f67d7,_0x384ab8[_0x120a92(0x211)])||_0x384ab8[_0x120a92(0x291)]!==_0x51a2c8[_0x120a92(0x291)]||_0x384ab8[_0x120a92(0x2f6)]!==_0x51a2c8[_0x120a92(0x2f6)]||_0x384ab8[_0x120a92(0x37b)]!==_0x29a6a0[_0x120a92(0x37b)]||_0x384ab8[_0x120a92(0x1fd)]<=Date[_0x120a92(0x383)]()){this[_0x120a92(0x24c)](_0x2f67d7);throw new Error(_0x120a92(0x1d1));}return _0x384ab8[_0x120a92(0x1fd)]=Date[_0x120a92(0x383)]()+WATCH_TTL_MS,clearTimeout(_0x384ab8[_0x120a92(0x372)]),_0x384ab8[_0x120a92(0x372)]=this[_0x120a92(0x377)](_0x2f67d7),this[_0x120a92(0x1c2)](_0x384ab8);}const _0x280f88=runtimeModels(_0x29a6a0[_0x120a92(0x30f)]),_0x7e6c00=this[_0x120a92(0x27e)][_0x120a92(0x34a)](_0x2f67d7);if(_0x7e6c00!==undefined&&this[_0x120a92(0x24d)][_0x120a92(0x245)](_0x2f67d7,_0x7e6c00[_0x120a92(0x211)])&&_0x7e6c00[_0x120a92(0x291)]===_0x51a2c8[_0x120a92(0x291)]&&_0x7e6c00[_0x120a92(0x2f6)]===_0x51a2c8[_0x120a92(0x2f6)]&&_0x7e6c00[_0x120a92(0x37b)]===_0x29a6a0[_0x120a92(0x37b)]&&_0x7e6c00[_0x120a92(0x1fd)]>Date[_0x120a92(0x383)]())return _0x7e6c00[_0x120a92(0x1fd)]=Date[_0x120a92(0x383)]()+WATCH_TTL_MS,clearTimeout(_0x7e6c00[_0x120a92(0x372)]),_0x7e6c00[_0x120a92(0x372)]=this[_0x120a92(0x377)](_0x2f67d7),this[_0x120a92(0x1c2)](_0x7e6c00);this[_0x120a92(0x24c)](_0x2f67d7);const _0x107ad1=this[_0x120a92(0x24d)][_0x120a92(0x29d)](_0x2f67d7,_0x120a92(0x234),()=>this[_0x120a92(0x24c)](_0x2f67d7)),_0x3487eb={'ownerKey':_0x2f67d7,'slotToken':_0x107ad1,'sessionHash':_0x302b29,'workbenchConnectionId':_0x51a2c8[_0x120a92(0x349)],'watchId':_0x51a2c8[_0x120a92(0x291)],'conversationId':_0x51a2c8[_0x120a92(0x2f6)],'templateId':_0x3fd9f9[_0x120a92(0x2da)],'userId':_0x29a6a0[_0x120a92(0x37b)],'models':_0x280f88,'nodeGeneration':this[_0x120a92(0x289)][_0x120a92(0x272)]?.()??_0x120a92(0x29f),'pendingEvents':[],'expiresAt':Date[_0x120a92(0x383)]()+WATCH_TTL_MS,'ready':![],'timer':undefined};return _0x3487eb[_0x120a92(0x372)]=this[_0x120a92(0x377)](_0x2f67d7),this[_0x120a92(0x27e)][_0x120a92(0x33f)](_0x2f67d7,_0x3487eb),void this[_0x120a92(0x26d)](_0x3487eb),this[_0x120a92(0x1c2)](_0x3487eb);}[_0x3f3794(0x304)](_0x20dff8){const _0x26c6d8=_0x3f3794,_0xadbd97=hostedRequest(_0x20dff8),_0x3a86f0=hostedConversationUnwatchInputSchema[_0x26c6d8(0x310)](_0xadbd97[_0x26c6d8(0x353)]);this[_0x26c6d8(0x289)][_0x26c6d8(0x271)][_0x26c6d8(0x388)](_0xadbd97[_0x26c6d8(0x37b)],_0x3a86f0[_0x26c6d8(0x2f6)]);const _0x165dee=watchOwnerKey(requireWatchSessionHash(_0xadbd97[_0x26c6d8(0x302)]),_0x3a86f0[_0x26c6d8(0x349)]),_0x4b8eb8=this[_0x26c6d8(0x27e)][_0x26c6d8(0x34a)](_0x165dee);if(_0x4b8eb8?.[_0x26c6d8(0x291)]===_0x3a86f0[_0x26c6d8(0x291)]&&_0x4b8eb8[_0x26c6d8(0x2f6)]===_0x3a86f0[_0x26c6d8(0x2f6)]&&_0x4b8eb8[_0x26c6d8(0x37b)]===_0xadbd97[_0x26c6d8(0x37b)])this[_0x26c6d8(0x24c)](_0x165dee);return{'unwatched':!![]};}[_0x3f3794(0x2c7)](_0x2208ae,_0x372ca8){const _0x152434=_0x3f3794;return this[_0x152434(0x292)](_0x2208ae,{'conversationId':_0x2208ae,'kind':_0x152434(0x31a),'runtimeEvent':_0x372ca8});}[_0x3f3794(0x295)](_0x39c496){const _0x4bbb47=_0x3f3794;return this[_0x4bbb47(0x303)][_0x4bbb47(0x266)](_0x39c496)||this[_0x4bbb47(0x2ce)][_0x4bbb47(0x266)](_0x39c496)||this[_0x4bbb47(0x238)][_0x4bbb47(0x266)](_0x39c496)||this[_0x4bbb47(0x25d)][_0x4bbb47(0x266)](_0x39c496)||[...this[_0x4bbb47(0x27e)][_0x4bbb47(0x38d)]()][_0x4bbb47(0x2df)](_0x4dbe1a=>_0x4dbe1a[_0x4bbb47(0x2f6)]===_0x39c496)||[...this[_0x4bbb47(0x393)][_0x4bbb47(0x38d)]()][_0x4bbb47(0x2df)](_0x5d153d=>_0x5d153d[_0x4bbb47(0x2f6)]===_0x39c496&&_0x5d153d[_0x4bbb47(0x32d)]===_0x4bbb47(0x24f))||[...this[_0x4bbb47(0x26e)][_0x4bbb47(0x22b)]()][_0x4bbb47(0x2df)](_0x2b2486=>_0x2b2486[_0x4bbb47(0x36d)](_0x39c496+'\x00'));}[_0x3f3794(0x2d3)](_0x2cfe9e){const _0x1e0651=_0x3f3794;if(this[_0x1e0651(0x295)](_0x2cfe9e))return undefined;return this[_0x1e0651(0x303)][_0x1e0651(0x329)](_0x2cfe9e),()=>{const _0x44f1a0=_0x1e0651;this[_0x44f1a0(0x303)][_0x44f1a0(0x1ef)](_0x2cfe9e);};}async[_0x3f3794(0x2e3)](_0x50b6cc){const _0x5a12d4=_0x3f3794,_0x9f991a=this[_0x5a12d4(0x289)][_0x5a12d4(0x271)][_0x5a12d4(0x205)](_0x50b6cc);await this[_0x5a12d4(0x289)][_0x5a12d4(0x31a)][_0x5a12d4(0x259)]({'conversationId':_0x50b6cc['id'],'sessionId':_0x50b6cc[_0x5a12d4(0x2bb)],'homeDirectory':_0x9f991a[_0x5a12d4(0x1c6)]})[_0x5a12d4(0x278)](()=>undefined);}[_0x3f3794(0x37e)](){const _0x1b0d7d=_0x3f3794;for(const [_0x12c5fc,_0x8fe5ce]of this[_0x1b0d7d(0x238)]){const _0x5f47d8=runInterruptionKey(_0x12c5fc,_0x8fe5ce[_0x1b0d7d(0x32a)]['id']);this[_0x1b0d7d(0x2b5)][_0x1b0d7d(0x329)](_0x5f47d8);if(!_0x8fe5ce[_0x1b0d7d(0x297)]())this[_0x1b0d7d(0x2b5)][_0x1b0d7d(0x1ef)](_0x5f47d8);}for(const _0x5b5fe8 of[...this[_0x1b0d7d(0x27e)][_0x1b0d7d(0x22b)]()])this[_0x1b0d7d(0x24c)](_0x5b5fe8);}[_0x3f3794(0x370)](_0x36d359){const _0x4aa5e0=_0x3f3794;if(this[_0x4aa5e0(0x268)])return Promise[_0x4aa5e0(0x34d)](new Error(_0x4aa5e0(0x281)));const _0x4c1dfb=hostedRequest(_0x36d359),_0x40a792=hostedConversationMessageInputSchema[_0x4aa5e0(0x310)](_0x4c1dfb[_0x4aa5e0(0x353)]);if(this[_0x4aa5e0(0x2ce)][_0x4aa5e0(0x266)](_0x40a792[_0x4aa5e0(0x2f6)]))return Promise[_0x4aa5e0(0x34d)](new Error(_0x4aa5e0(0x364)));const _0x112604=_0x40a792[_0x4aa5e0(0x2f6)]+'\x00'+_0x40a792[_0x4aa5e0(0x298)],_0x39755f=this[_0x4aa5e0(0x26e)][_0x4aa5e0(0x34a)](_0x112604);if(_0x39755f!==undefined)return _0x39755f;const _0x1178f8=this[_0x4aa5e0(0x289)][_0x4aa5e0(0x271)][_0x4aa5e0(0x381)](_0x4c1dfb[_0x4aa5e0(0x37b)],_0x40a792[_0x4aa5e0(0x2f6)],_0x40a792[_0x4aa5e0(0x298)]);if(_0x1178f8!==undefined){const _0x36e20e=this[_0x4aa5e0(0x289)][_0x4aa5e0(0x271)][_0x4aa5e0(0x388)](_0x4c1dfb[_0x4aa5e0(0x37b)],_0x40a792[_0x4aa5e0(0x2f6)]);return Promise[_0x4aa5e0(0x363)]({'conversation':this[_0x4aa5e0(0x354)](_0x36e20e),'run':runFromMessage(_0x1178f8)});}if([...this[_0x4aa5e0(0x26e)][_0x4aa5e0(0x22b)]()][_0x4aa5e0(0x2df)](_0x575894=>_0x575894[_0x4aa5e0(0x36d)](_0x40a792[_0x4aa5e0(0x2f6)]+'\x00')))return Promise[_0x4aa5e0(0x34d)](new Error(_0x4aa5e0(0x2a4)));const _0x5951f9=this[_0x4aa5e0(0x27f)](_0x4c1dfb,_0x40a792);return this[_0x4aa5e0(0x26e)][_0x4aa5e0(0x33f)](_0x112604,_0x5951f9),void _0x5951f9[_0x4aa5e0(0x231)](()=>this[_0x4aa5e0(0x26e)][_0x4aa5e0(0x1ef)](_0x112604))[_0x4aa5e0(0x278)](()=>undefined),_0x5951f9;}async[_0x3f3794(0x27f)](_0x380091,_0x39a906){const _0x2e236=_0x3f3794;let _0x247822=this[_0x2e236(0x289)][_0x2e236(0x271)][_0x2e236(0x388)](_0x380091[_0x2e236(0x37b)],_0x39a906[_0x2e236(0x2f6)]);if(this[_0x2e236(0x303)][_0x2e236(0x266)](_0x247822['id']))throw new Error(_0x2e236(0x364));if(this[_0x2e236(0x2ce)][_0x2e236(0x266)](_0x247822['id']))throw new Error(_0x2e236(0x364));if(_0x247822[_0x2e236(0x32d)]!==_0x2e236(0x2b6))throw new Error(_0x2e236(0x364));if(this[_0x2e236(0x238)][_0x2e236(0x266)](_0x247822['id']))throw new Error(_0x2e236(0x2a4));const _0x26358e=sessionTitleFromFirstMessage(_0x39a906[_0x2e236(0x288)]),_0x4c839f=_0x26358e[_0x2e236(0x308)]>-0x187*0xb+-0x2*0x8f3+0x22b3&&!this[_0x2e236(0x289)][_0x2e236(0x271)][_0x2e236(0x396)](_0x380091[_0x2e236(0x37b)],_0x247822['id']),_0x39cf07=runtimeModels(_0x380091[_0x2e236(0x30f)]),_0x5e59c3=this[_0x2e236(0x289)][_0x2e236(0x271)][_0x2e236(0x321)](_0x380091[_0x2e236(0x37b)],_0x247822['id']);let _0x23c952,_0x2ac156,_0x34eec5,_0x4a339d;const _0x4b3f04=_0x247822[_0x2e236(0x1ee)]?undefined:this[_0x2e236(0x204)](_0x247822[_0x2e236(0x2da)]);if(_0x4b3f04!==undefined&&_0x4b3f04!==_0x247822[_0x2e236(0x2a7)]){const _0x2ee26c=_0x247822[_0x2e236(0x2a7)],_0x52c3b9=_0x4b3f04;try{_0x23c952=await this[_0x2e236(0x2f9)](_0x52c3b9,_0x247822[_0x2e236(0x2da)]),_0x2ac156=selectModel(_0x23c952,_0x39cf07,_0x39a906[_0x2e236(0x25c)]??_0x23c952[_0x2e236(0x2cf)][_0x2e236(0x346)]),_0x34eec5=resolveMcpServers(_0x23c952,this[_0x2e236(0x289)][_0x2e236(0x395)]??process.env),this[_0x2e236(0x330)](_0x5e59c3,_0x23c952),this[_0x2e236(0x283)](_0x5e59c3,_0x23c952),_0x4a339d={'previousVersionId':_0x2ee26c,'targetVersionId':_0x52c3b9};}catch(_0x1670ba){this[_0x2e236(0x333)](_0x247822,_0x2ee26c,_0x52c3b9,_0x1670ba);throw new Error(_0x2e236(0x274));}}else _0x23c952=await this[_0x2e236(0x2f9)](_0x247822[_0x2e236(0x2a7)],_0x247822[_0x2e236(0x2da)]),_0x2ac156=selectModel(_0x23c952,_0x39cf07,_0x39a906[_0x2e236(0x25c)]??_0x247822[_0x2e236(0x25c)]);const _0x17a59a=await Promise[_0x2e236(0x227)](_0x39a906[_0x2e236(0x37d)][_0x2e236(0x300)](_0x199b2c=>this[_0x2e236(0x314)](_0x380091[_0x2e236(0x37b)],_0x247822['id'],_0x199b2c))),_0xd8daee=attachmentPrompt(_0x39a906[_0x2e236(0x288)],_0x17a59a),_0x20f2ab=marAgentGeneratedImagesDirectory(_0x5e59c3[_0x2e236(0x1c6)],_0x247822[_0x2e236(0x2bb)]),_0x331773=hostedConversationGeneratedImagesDisplayDirectory(_0x247822[_0x2e236(0x2bb)]);if(_0x20f2ab===undefined||_0x331773===undefined)throw new Error(_0x2e236(0x35f));await mkdir(_0x20f2ab,{'recursive':!![],'mode':0x1c0});const _0x421b7e=await this[_0x2e236(0x289)][_0x2e236(0x271)][_0x2e236(0x21d)](_0x380091[_0x2e236(0x37b)],_0x247822['id']),_0x1b74dc=this[_0x2e236(0x330)](_0x5e59c3,_0x23c952,_0x20f2ab,_0x331773,_0x421b7e);this[_0x2e236(0x1fe)](_0x380091[_0x2e236(0x37b)],_0x247822,_0x2e236(0x299),this[_0x2e236(0x383)]());const _0x3242b5=[];let _0x3be0b4=![];const _0x37ff17=await this[_0x2e236(0x289)][_0x2e236(0x31a)][_0x2e236(0x36c)]({'conversationId':_0x247822['id'],'sessionId':_0x247822[_0x2e236(0x2bb)],'clientMessageId':_0x39a906[_0x2e236(0x298)],'userPrompt':_0x39a906[_0x2e236(0x288)],'prompt':_0xd8daee,'attachmentIds':_0x39a906[_0x2e236(0x37d)],'access':_0x2e236(0x365),'modelId':_0x2ac156['id'],'models':networkModels(allowedModels(_0x23c952,_0x39cf07),_0x23c952[_0x2e236(0x32b)][_0x2e236(0x27c)]),..._0x380091[_0x2e236(0x1df)]===undefined?{}:{'runtimeScopeId':_0x380091[_0x2e236(0x1df)]},'systemInstruction':systemInstruction(_0x23c952,_0x331773),'homeDirectory':_0x5e59c3[_0x2e236(0x1c6)],'workspaceDirectory':_0x23c952[_0x2e236(0x1cf)],'temporaryDirectory':_0x421b7e,'pathMounts':_0x1b74dc,'processExecutor':this[_0x2e236(0x283)](_0x5e59c3,_0x23c952,_0x421b7e,_0x20f2ab,_0x331773),'mcpServers':_0x34eec5??resolveMcpServers(_0x23c952,this[_0x2e236(0x289)][_0x2e236(0x395)]??process.env),'webAccess':_0x23c952[_0x2e236(0x32b)][_0x2e236(0x27c)]!==_0x2e236(0x361),'onEvent':_0x51867f=>{const _0x1bd522=_0x2e236;if(_0x3be0b4)this[_0x1bd522(0x2c7)](_0x247822['id'],_0x51867f);else _0x3242b5[_0x1bd522(0x378)](_0x51867f);}})[_0x2e236(0x278)](_0x288a87=>{const _0x31a934=_0x2e236;this[_0x31a934(0x1fe)](_0x380091[_0x31a934(0x37b)],_0x247822,_0x31a934(0x341),this[_0x31a934(0x383)]());if(_0x4a339d!==undefined){this[_0x31a934(0x333)](_0x247822,_0x4a339d[_0x31a934(0x1f9)],_0x4a339d[_0x31a934(0x20c)],_0x288a87);throw new Error(_0x31a934(0x274));}throw _0x288a87;}),_0x3cc49d=_0x37ff17[_0x2e236(0x32a)][_0x2e236(0x328)];let _0x3708d2=![],_0x46d520;try{this[_0x2e236(0x289)][_0x2e236(0x271)][_0x2e236(0x2a2)]({'conversationId':_0x247822['id'],'clientMessageId':_0x39a906[_0x2e236(0x298)],'runId':_0x37ff17[_0x2e236(0x32a)]['id'],'userTextPresent':_0x26358e[_0x2e236(0x308)]>0x528+0x55f+-0xa87,'status':_0x2e236(0x2fd),'createdAt':_0x3cc49d,'updatedAt':_0x3cc49d}),_0x3708d2=!![];const _0x49298c=this[_0x2e236(0x383)]();_0x46d520=await this[_0x2e236(0x289)][_0x2e236(0x271)][_0x2e236(0x2c8)]({'conversationId':_0x247822['id'],'modelId':_0x2ac156['id'],'activityAt':_0x49298c,..._0x4a339d===undefined?{}:{'templateVersion':{'expectedActiveVersionId':_0x4a339d[_0x2e236(0x1f9)],'activeVersionId':_0x4a339d[_0x2e236(0x20c)],'maxStorageBytes':_0x23c952[_0x2e236(0x32b)][_0x2e236(0x1bc)][_0x2e236(0x27d)]}},..._0x4c839f?{'automaticTitle':_0x26358e}:{}});}catch(_0x1f6db0){try{_0x37ff17[_0x2e236(0x297)]();}catch{}const _0xccafa0=await _0x37ff17[_0x2e236(0x1c3)][_0x2e236(0x278)](()=>({'status':_0x2e236(0x36f),'completedAt':this[_0x2e236(0x383)]()}));if(_0x3708d2)try{this[_0x2e236(0x289)][_0x2e236(0x271)][_0x2e236(0x262)](_0x247822['id'],_0x39a906[_0x2e236(0x298)],_0xccafa0[_0x2e236(0x32d)],_0xccafa0[_0x2e236(0x2e6)]);}catch{}this[_0x2e236(0x1fe)](_0x380091[_0x2e236(0x37b)],_0x247822,_0x2e236(0x341),_0xccafa0[_0x2e236(0x2e6)]);if(_0x4a339d!==undefined)this[_0x2e236(0x333)](_0x247822,_0x4a339d[_0x2e236(0x1f9)],_0x4a339d[_0x2e236(0x20c)],_0x1f6db0);throw _0x1f6db0;}_0x247822=_0x46d520[_0x2e236(0x248)];if(_0x4a339d!==undefined)this[_0x2e236(0x292)](_0x247822['id'],{'conversationId':_0x247822['id'],'kind':_0x2e236(0x322),'upgrade':{'status':_0x2e236(0x28e),'previousVersionId':_0x4a339d[_0x2e236(0x1f9)],'targetVersionId':_0x4a339d[_0x2e236(0x20c)],'activeVersionId':_0x247822[_0x2e236(0x2a7)],'conversation':this[_0x2e236(0x354)](_0x247822),'error':null}});this[_0x2e236(0x238)][_0x2e236(0x33f)](_0x247822['id'],_0x37ff17),this[_0x2e236(0x1fe)](_0x380091[_0x2e236(0x37b)],_0x247822,_0x2e236(0x2fd),_0x37ff17[_0x2e236(0x32a)][_0x2e236(0x328)]);if(_0x46d520[_0x2e236(0x32f)])this[_0x2e236(0x292)](_0x247822['id'],{'conversationId':_0x247822['id'],'kind':_0x2e236(0x248),'conversation':this[_0x2e236(0x354)](_0x247822)});this[_0x2e236(0x292)](_0x247822['id'],{'conversationId':_0x247822['id'],'kind':_0x2e236(0x32a),'run':_0x37ff17[_0x2e236(0x32a)]}),_0x3be0b4=!![];for(const _0x240916 of _0x3242b5)this[_0x2e236(0x2c7)](_0x247822['id'],_0x240916);_0x3242b5[_0x2e236(0x308)]=-0x1a6d+-0x10e3+0x2b50;const _0x2c087f=_0x37ff17[_0x2e236(0x1c3)][_0x2e236(0x224)](_0x12489d=>this[_0x2e236(0x343)](_0x380091[_0x2e236(0x37b)],_0x247822['id'],_0x39a906[_0x2e236(0x298)],_0x37ff17[_0x2e236(0x32a)],_0x12489d),()=>this[_0x2e236(0x343)](_0x380091[_0x2e236(0x37b)],_0x247822['id'],_0x39a906[_0x2e236(0x298)],_0x37ff17[_0x2e236(0x32a)],{'status':_0x2e236(0x36f),'completedAt':this[_0x2e236(0x383)]()}))[_0x2e236(0x278)](()=>undefined)[_0x2e236(0x231)](()=>{const _0x2d63bf=_0x2e236;this[_0x2d63bf(0x2b5)][_0x2d63bf(0x1ef)](runInterruptionKey(_0x247822['id'],_0x37ff17[_0x2d63bf(0x32a)]['id']));if(this[_0x2d63bf(0x238)][_0x2d63bf(0x34a)](_0x247822['id'])===_0x37ff17)this[_0x2d63bf(0x238)][_0x2d63bf(0x1ef)](_0x247822['id']);if(this[_0x2d63bf(0x25d)][_0x2d63bf(0x34a)](_0x247822['id'])===_0x2c087f)this[_0x2d63bf(0x25d)][_0x2d63bf(0x1ef)](_0x247822['id']);});return this[_0x2e236(0x25d)][_0x2e236(0x33f)](_0x247822['id'],_0x2c087f),void _0x2c087f,{'conversation':this[_0x2e236(0x354)](_0x247822),'run':_0x37ff17[_0x2e236(0x32a)]};}[_0x3f3794(0x397)](_0x59ebdf){const _0x2b15a4=_0x3f3794;if(this[_0x2b15a4(0x268)])return Promise[_0x2b15a4(0x34d)](new Error(_0x2b15a4(0x281)));const _0xc735f6=hostedRequest(_0x59ebdf),_0x1e6613=hostedConversationRollbackInputSchema[_0x2b15a4(0x310)](_0xc735f6[_0x2b15a4(0x353)]),_0x3e7299=this[_0x2b15a4(0x289)][_0x2b15a4(0x271)][_0x2b15a4(0x388)](_0xc735f6[_0x2b15a4(0x37b)],_0x1e6613[_0x2b15a4(0x2f6)]);if(_0x3e7299[_0x2b15a4(0x32d)]!==_0x2b15a4(0x2b6)||this[_0x2b15a4(0x303)][_0x2b15a4(0x266)](_0x3e7299['id'])||this[_0x2b15a4(0x2ce)][_0x2b15a4(0x266)](_0x3e7299['id']))return Promise[_0x2b15a4(0x34d)](new Error(_0x2b15a4(0x364)));if(this[_0x2b15a4(0x2f2)](_0x3e7299['id'])[_0x2b15a4(0x32d)]!==_0x2b15a4(0x341)||this[_0x2b15a4(0x238)][_0x2b15a4(0x266)](_0x3e7299['id'])||this[_0x2b15a4(0x25d)][_0x2b15a4(0x266)](_0x3e7299['id'])||[...this[_0x2b15a4(0x26e)][_0x2b15a4(0x22b)]()][_0x2b15a4(0x2df)](_0x2c8e5a=>_0x2c8e5a[_0x2b15a4(0x36d)](_0x3e7299['id']+'\x00')))return Promise[_0x2b15a4(0x34d)](new Error(_0x2b15a4(0x2a4)));const _0x54d13e=this[_0x2b15a4(0x210)](_0xc735f6,_0x3e7299,_0x1e6613);return this[_0x2b15a4(0x2ce)][_0x2b15a4(0x33f)](_0x3e7299['id'],_0x54d13e),void _0x54d13e[_0x2b15a4(0x231)](()=>{const _0x3be53b=_0x2b15a4;if(this[_0x3be53b(0x2ce)][_0x3be53b(0x34a)](_0x3e7299['id'])===_0x54d13e)this[_0x3be53b(0x2ce)][_0x3be53b(0x1ef)](_0x3e7299['id']);})[_0x2b15a4(0x278)](()=>undefined),_0x54d13e;}async[_0x3f3794(0x210)](_0x3d605a,_0x177c7a,_0x5cc247){const _0x3b0d30=_0x3f3794,_0x398303=this[_0x3b0d30(0x289)][_0x3b0d30(0x271)][_0x3b0d30(0x321)](_0x3d605a[_0x3b0d30(0x37b)],_0x177c7a['id']),_0x19759b=(await this[_0x3b0d30(0x289)][_0x3b0d30(0x31a)][_0x3b0d30(0x38b)]({'conversationId':_0x177c7a['id'],'sessionId':_0x177c7a[_0x3b0d30(0x2bb)],'homeDirectory':_0x398303[_0x3b0d30(0x1c6)],'modelId':_0x177c7a[_0x3b0d30(0x25c)]}))[_0x3b0d30(0x300)](_0x1add2b=>conversationTurnSchema[_0x3b0d30(0x310)](_0x1add2b)),_0x3b1537=_0x19759b[_0x3b0d30(0x2cd)](_0xa194dd=>_0xa194dd['id']===_0x5cc247[_0x3b0d30(0x296)]),_0x7e05d3=_0x19759b[_0x3b1537],_0x4ba882=_0x7e05d3?.[_0x3b0d30(0x29b)][_0x3b0d30(0x1f4)](_0x16d970=>_0x16d970[_0x3b0d30(0x37a)]===_0x3b0d30(0x379)&&_0x16d970[_0x3b0d30(0x32d)]===_0x3b0d30(0x24a));if(_0x7e05d3===undefined||!terminalHostedTurnStatus(_0x7e05d3[_0x3b0d30(0x32d)])||_0x4ba882===undefined||_0x7e05d3[_0x3b0d30(0x320)]?.[_0x3b0d30(0x38e)]!==_0x5cc247[_0x3b0d30(0x2f3)])throw new Error(_0x3b0d30(0x246));let _0x161cb2;try{_0x161cb2=await this[_0x3b0d30(0x289)][_0x3b0d30(0x31a)][_0x3b0d30(0x397)]({'conversationId':_0x177c7a['id'],'sessionId':_0x177c7a[_0x3b0d30(0x2bb)],'homeDirectory':_0x398303[_0x3b0d30(0x1c6)],'modelId':_0x177c7a[_0x3b0d30(0x25c)],'boundaryTurnId':_0x5cc247[_0x3b0d30(0x2f3)]});}catch(_0x58f8b1){if(_0x58f8b1 instanceof Error&&_0x58f8b1[_0x3b0d30(0x370)]===_0x3b0d30(0x22c))throw new Error(_0x3b0d30(0x246),{'cause':_0x58f8b1});throw _0x58f8b1;}this[_0x3b0d30(0x2c3)][_0x3b0d30(0x33f)](_0x177c7a['id'],(this[_0x3b0d30(0x2c3)][_0x3b0d30(0x34a)](_0x177c7a['id'])??-0x9b2*0x1+0x3e8*-0x3+0x156a)+(0x1*-0xf6d+0x1b*0xfc+-0xb26)),await this[_0x3b0d30(0x289)][_0x3b0d30(0x271)][_0x3b0d30(0x34b)](_0x177c7a['id'],Math[_0x3b0d30(0x233)](this[_0x3b0d30(0x383)](),_0x161cb2[_0x3b0d30(0x252)]));const _0x547492=await this[_0x3b0d30(0x2e8)](_0x3d605a[_0x3b0d30(0x37b)],_0x177c7a['id'],runtimeModels(_0x3d605a[_0x3b0d30(0x30f)]),_0x3d605a[_0x3b0d30(0x1ee)],!![],_0x19759b[_0x3b0d30(0x250)](-0x56*-0x55+-0x198f+-0x2ff,_0x3b1537));return this[_0x3b0d30(0x1c7)](_0x177c7a['id'],_0x547492),_0x547492;}async[_0x3f3794(0x343)](_0x5a2a11,_0x2d2e53,_0xd5cd30,_0x55513f,_0x26c6e1){const _0x54e48c=_0x3f3794,_0x43efe1=runInterruptionKey(_0x2d2e53,_0x55513f['id']),_0x8da05b=this[_0x54e48c(0x2b5)][_0x54e48c(0x266)](_0x43efe1);let _0x5dfa85;try{this[_0x54e48c(0x289)][_0x54e48c(0x271)][_0x54e48c(0x262)](_0x2d2e53,_0xd5cd30,_0x26c6e1[_0x54e48c(0x32d)],_0x26c6e1[_0x54e48c(0x2e6)]);try{const _0x43f615=await this[_0x54e48c(0x289)][_0x54e48c(0x271)][_0x54e48c(0x344)](_0x5a2a11,_0x2d2e53);this[_0x54e48c(0x292)](_0x2d2e53,{'conversationId':_0x2d2e53,'kind':_0x54e48c(0x1fb),'files':_0x43f615,'error':null});}catch(_0x2e5c4e){this[_0x54e48c(0x292)](_0x2d2e53,{'conversationId':_0x2d2e53,'kind':_0x54e48c(0x1fb),'files':this[_0x54e48c(0x289)][_0x54e48c(0x271)][_0x54e48c(0x2e4)](_0x5a2a11,_0x2d2e53),'error':{'code':safeErrorCode(_0x2e5c4e,_0x54e48c(0x36e)),'message':_0x54e48c(0x34f)}});}await this[_0x54e48c(0x289)][_0x54e48c(0x271)][_0x54e48c(0x34b)](_0x2d2e53,_0x26c6e1[_0x54e48c(0x2e6)]),this[_0x54e48c(0x292)](_0x2d2e53,{'conversationId':_0x2d2e53,'kind':_0x54e48c(0x32a),'run':{'id':_0x55513f['id'],'status':_0x26c6e1[_0x54e48c(0x32d)],'startedAt':_0x55513f[_0x54e48c(0x328)],'completedAt':_0x26c6e1[_0x54e48c(0x2e6)]}}),await this[_0x54e48c(0x2fc)](_0x2d2e53,_0x26c6e1[_0x54e48c(0x20b)],_0x26c6e1[_0x54e48c(0x2e6)])[_0x54e48c(0x278)](()=>undefined),_0x5dfa85=this[_0x54e48c(0x289)][_0x54e48c(0x271)][_0x54e48c(0x388)](_0x5a2a11,_0x2d2e53);}finally{this[_0x54e48c(0x2b5)][_0x54e48c(0x1ef)](_0x43efe1);if(_0x5dfa85===undefined)try{_0x5dfa85=this[_0x54e48c(0x289)][_0x54e48c(0x271)][_0x54e48c(0x388)](_0x5a2a11,_0x2d2e53);}catch{}if(_0x5dfa85!==undefined)this[_0x54e48c(0x1fe)](_0x5a2a11,_0x5dfa85,_0x54e48c(0x341),_0x26c6e1[_0x54e48c(0x2e6)]);}if(_0x5dfa85!==undefined&&(_0x26c6e1[_0x54e48c(0x32d)]!==_0x54e48c(0x311)||!_0x8da05b))this[_0x54e48c(0x1ba)](_0x5a2a11,_0x5dfa85,_0x55513f['id'],_0x26c6e1);}async[_0x3f3794(0x2fc)](_0x3e8dab,_0x5afd74,_0xbcecc9){const _0x23d045=_0x3f3794,_0x1dff6a=automaticHostedConversationTitle(_0x5afd74);if(_0x1dff6a===undefined)return;const _0x561b5a=await this[_0x23d045(0x289)][_0x23d045(0x271)][_0x23d045(0x2d8)](_0x3e8dab,_0x1dff6a,_0xbcecc9);if(_0x561b5a===undefined)return;this[_0x23d045(0x292)](_0x3e8dab,{'conversationId':_0x3e8dab,'kind':_0x23d045(0x248),'conversation':this[_0x23d045(0x354)](_0x561b5a)});}[_0x3f3794(0x33e)](_0x14981e){const _0x22431a=_0x3f3794,_0x142c2f=hostedRequest(_0x14981e),_0x5048ca=hostedConversationIdInputSchema[_0x22431a(0x310)](_0x142c2f[_0x22431a(0x353)]),_0x5908da=this[_0x22431a(0x289)][_0x22431a(0x271)][_0x22431a(0x388)](_0x142c2f[_0x22431a(0x37b)],_0x5048ca[_0x22431a(0x2f6)]),_0x3f8f2e=this[_0x22431a(0x238)][_0x22431a(0x34a)](_0x5048ca[_0x22431a(0x2f6)]);if(_0x3f8f2e===undefined)return{'interrupted':![]};const _0x3ebfbf=runInterruptionKey(_0x5908da['id'],_0x3f8f2e[_0x22431a(0x32a)]['id']);this[_0x22431a(0x2b5)][_0x22431a(0x329)](_0x3ebfbf);try{const _0x5479fa=_0x3f8f2e[_0x22431a(0x297)]();if(!_0x5479fa)return this[_0x22431a(0x2b5)][_0x22431a(0x1ef)](_0x3ebfbf),{'interrupted':![]};return this[_0x22431a(0x1fe)](_0x142c2f[_0x22431a(0x37b)],_0x5908da,_0x22431a(0x348),this[_0x22431a(0x383)]()),{'interrupted':!![]};}catch(_0x114d99){this[_0x22431a(0x2b5)][_0x22431a(0x1ef)](_0x3ebfbf);throw _0x114d99;}}async[_0x3f3794(0x30e)](_0x259f67){const _0x3ddd0f=_0x3f3794,_0x579cba=hostedRequest(_0x259f67),_0x5dd1db=hostedConversationConfigUpdateInputSchema[_0x3ddd0f(0x310)](_0x579cba[_0x3ddd0f(0x353)]),_0x4d204a=this[_0x3ddd0f(0x289)][_0x3ddd0f(0x271)][_0x3ddd0f(0x388)](_0x579cba[_0x3ddd0f(0x37b)],_0x5dd1db[_0x3ddd0f(0x2f6)]);if(this[_0x3ddd0f(0x303)][_0x3ddd0f(0x266)](_0x4d204a['id']))throw new Error(_0x3ddd0f(0x364));const _0x363205=_0x4d204a[_0x3ddd0f(0x1ee)]?undefined:this[_0x3ddd0f(0x204)](_0x4d204a[_0x3ddd0f(0x2da)]),_0x38657f=_0x363205??_0x4d204a[_0x3ddd0f(0x2a7)],_0x3b1f17=await this[_0x3ddd0f(0x2f9)](_0x38657f,_0x4d204a[_0x3ddd0f(0x2da)]),_0x50c4ad=runtimeModels(_0x579cba[_0x3ddd0f(0x30f)]),_0x13a3e4=selectModel(_0x3b1f17,_0x50c4ad,_0x5dd1db[_0x3ddd0f(0x25c)]??_0x4d204a[_0x3ddd0f(0x25c)]),_0x152b76=this[_0x3ddd0f(0x383)](),_0x12faa7=await this[_0x3ddd0f(0x289)][_0x3ddd0f(0x271)][_0x3ddd0f(0x269)](_0x4d204a['id'],_0x5ec45a=>({..._0x5ec45a,'modelId':_0x13a3e4['id'],'updatedAt':_0x152b76,'lastActivityAt':_0x152b76}));return this[_0x3ddd0f(0x292)](_0x4d204a['id'],{'conversationId':_0x4d204a['id'],'kind':_0x3ddd0f(0x37c),'conversation':this[_0x3ddd0f(0x354)](_0x12faa7)}),{'conversation':this[_0x3ddd0f(0x354)](_0x12faa7)};}async[_0x3f3794(0x1d7)](_0x418cf0){const _0x26eed0=_0x3f3794,_0x559a62=hostedRequest(_0x418cf0),_0x4b427a=hostedConversationMetadataUpdateInputSchema[_0x26eed0(0x310)](_0x559a62[_0x26eed0(0x353)]),_0x46f6cd=this[_0x26eed0(0x289)][_0x26eed0(0x271)][_0x26eed0(0x388)](_0x559a62[_0x26eed0(0x37b)],_0x4b427a[_0x26eed0(0x2f6)]);if(this[_0x26eed0(0x303)][_0x26eed0(0x266)](_0x46f6cd['id']))throw new Error(_0x26eed0(0x364));const _0x267363=this[_0x26eed0(0x383)](),_0x2260d5=await this[_0x26eed0(0x289)][_0x26eed0(0x271)][_0x26eed0(0x269)](_0x46f6cd['id'],_0x5c3ebe=>({..._0x5c3ebe,'title':_0x4b427a[_0x26eed0(0x20b)]??_0x5c3ebe[_0x26eed0(0x20b)],'titleSource':_0x4b427a[_0x26eed0(0x20b)]===undefined?_0x5c3ebe[_0x26eed0(0x351)]:_0x26eed0(0x2ab),'pinnedAt':_0x4b427a[_0x26eed0(0x261)]===undefined?_0x5c3ebe[_0x26eed0(0x2c6)]:_0x4b427a[_0x26eed0(0x261)]?_0x267363:null,'updatedAt':_0x267363,'lastActivityAt':_0x5c3ebe[_0x26eed0(0x252)]}));return this[_0x26eed0(0x292)](_0x46f6cd['id'],{'conversationId':_0x46f6cd['id'],'kind':_0x26eed0(0x37c),'conversation':this[_0x26eed0(0x354)](_0x2260d5)}),{'conversation':this[_0x26eed0(0x354)](_0x2260d5)};}async[_0x3f3794(0x2e4)](_0x49ffba){const _0x2c2185=_0x3f3794,_0x5a6a80=hostedRequest(_0x49ffba),_0x3f26dc=hostedConversationIdInputSchema[_0x2c2185(0x310)](_0x5a6a80[_0x2c2185(0x353)]);return hostedConversationFilesSchema[_0x2c2185(0x310)]({'files':this[_0x2c2185(0x289)][_0x2c2185(0x271)][_0x2c2185(0x2e4)](_0x5a6a80[_0x2c2185(0x37b)],_0x3f26dc[_0x2c2185(0x2f6)])});}async[_0x3f3794(0x326)](_0x5e2169){const _0x5d99b4=_0x3f3794,_0x291536=hostedRequest(_0x5e2169),_0xf04d9b=hostedConversationImageReadInputSchema[_0x5d99b4(0x310)](_0x291536[_0x5d99b4(0x353)]);this[_0x5d99b4(0x289)][_0x5d99b4(0x271)][_0x5d99b4(0x388)](_0x291536[_0x5d99b4(0x37b)],_0xf04d9b[_0x5d99b4(0x2f6)]);if(_0xf04d9b[_0x5d99b4(0x1f3)]!==hostedConversationImageRunId(_0xf04d9b[_0x5d99b4(0x2f6)]))throw new Error(_0x5d99b4(0x391));const _0x5ce20e=await this[_0x5d99b4(0x289)][_0x5d99b4(0x326)](_0xf04d9b[_0x5d99b4(0x1f3)],_0xf04d9b[_0x5d99b4(0x38a)]);if(_0x5ce20e===undefined)throw new Error(_0x5d99b4(0x385));return{'image':_0x5ce20e};}async[_0x3f3794(0x240)](_0x52b01a){const _0x2cbcf3=_0x3f3794,_0x355853=hostedRequest(_0x52b01a),_0x2acc17=hostedConversationFileReadInputSchema[_0x2cbcf3(0x310)](_0x355853[_0x2cbcf3(0x353)]),_0x3b1b32=this[_0x2cbcf3(0x289)][_0x2cbcf3(0x271)][_0x2cbcf3(0x1d0)](_0x355853[_0x2cbcf3(0x37b)],_0x2acc17[_0x2cbcf3(0x2f6)],_0x2acc17[_0x2cbcf3(0x201)]),_0x4c539b=this[_0x2cbcf3(0x289)][_0x2cbcf3(0x271)][_0x2cbcf3(0x1ce)](_0x355853[_0x2cbcf3(0x37b)],_0x3b1b32),_0xcdcb28=_0x2acc17[_0x2cbcf3(0x31f)]??-0x15*-0x3e+-0xe*-0xd9+-0x10f4,_0x309e59=Math[_0x2cbcf3(0x359)](_0x2acc17[_0x2cbcf3(0x260)]??MAX_FILE_READ_BYTES,MAX_FILE_READ_BYTES),_0x12783e=await openRegularFile(_0x4c539b);try{const _0x38ac88=await _0x12783e[_0x2cbcf3(0x284)]();assertRegularFileMetadata(_0x38ac88);const _0x1ddb2a=await regularFileMetadata(_0x4c539b);if(!sameFileIdentity(_0x38ac88,_0x1ddb2a))throw new Error(_0x2cbcf3(0x2b8));if(_0xcdcb28>_0x38ac88[_0x2cbcf3(0x386)])throw new Error(_0x2cbcf3(0x282));const _0x125481=Buffer[_0x2cbcf3(0x1ec)](Math[_0x2cbcf3(0x359)](_0x309e59,Math[_0x2cbcf3(0x233)](-0x1f07+0x59*0x6b+-0x62c,_0x38ac88[_0x2cbcf3(0x386)]-_0xcdcb28))),_0x29391b=await _0x12783e[_0x2cbcf3(0x2fb)](_0x125481,-0x1a*-0x73+0x132d*0x1+-0x1edb,_0x125481[_0x2cbcf3(0x308)],_0xcdcb28),_0x287a1b=await _0x12783e[_0x2cbcf3(0x284)](),_0x3d6a58=await regularFileMetadata(_0x4c539b);if(!sameFileSnapshot(_0x38ac88,_0x287a1b)||!sameFileSnapshot(_0x287a1b,_0x3d6a58))throw new Error(_0x2cbcf3(0x2b8));const _0x59d664=_0xcdcb28+_0x29391b[_0x2cbcf3(0x1d8)],_0x4202d1=_0x59d664>=_0x287a1b[_0x2cbcf3(0x386)],_0x579d14={..._0x3b1b32,'size':_0x287a1b[_0x2cbcf3(0x386)],'updatedAt':Math[_0x2cbcf3(0x233)](_0x3b1b32[_0x2cbcf3(0x242)],safeFileTimestamp(_0x287a1b[_0x2cbcf3(0x2de)]),safeFileTimestamp(_0x287a1b[_0x2cbcf3(0x2b1)]))};return hostedConversationFileReadResultSchema[_0x2cbcf3(0x310)]({'file':_0x579d14,'encoding':_0x2cbcf3(0x33d),'content':_0x125481[_0x2cbcf3(0x228)](-0x79f*-0x5+0x84a+-0x2e65,_0x29391b[_0x2cbcf3(0x1d8)])[_0x2cbcf3(0x2e0)](_0x2cbcf3(0x33d)),'offset':_0xcdcb28,'nextOffset':_0x4202d1?null:_0x59d664,'eof':_0x4202d1});}finally{await _0x12783e[_0x2cbcf3(0x1f0)]();}}async[_0x3f3794(0x319)](_0x334181){const _0x47201f=_0x3f3794,_0x5acc25=hostedRequest(_0x334181),_0x2ed781=hostedConversationFileDeleteInputSchema[_0x47201f(0x310)](_0x5acc25[_0x47201f(0x353)]);this[_0x47201f(0x2c1)](_0x5acc25[_0x47201f(0x37b)],_0x2ed781[_0x47201f(0x2f6)]);const _0x165079=_0x2ed781[_0x47201f(0x2f6)]+'\x00'+_0x2ed781[_0x47201f(0x201)];if(this[_0x47201f(0x342)][_0x47201f(0x266)](_0x165079))throw new Error(_0x47201f(0x239));this[_0x47201f(0x342)][_0x47201f(0x329)](_0x165079);try{const _0x37e19e=await this[_0x47201f(0x289)][_0x47201f(0x271)][_0x47201f(0x319)](_0x5acc25[_0x47201f(0x37b)],_0x2ed781[_0x47201f(0x2f6)],_0x2ed781[_0x47201f(0x201)],this[_0x47201f(0x383)]()),_0x4a3277=hostedConversationFileDeleteResultSchema[_0x47201f(0x310)]({'deletedFileId':_0x2ed781[_0x47201f(0x201)],'files':_0x37e19e});return this[_0x47201f(0x292)](_0x2ed781[_0x47201f(0x2f6)],{'conversationId':_0x2ed781[_0x47201f(0x2f6)],'kind':_0x47201f(0x1fb),'files':_0x4a3277[_0x47201f(0x1fb)],'error':null}),_0x4a3277;}finally{this[_0x47201f(0x342)][_0x47201f(0x1ef)](_0x165079);}}async[_0x3f3794(0x367)](_0x5d32dd){const _0x192033=_0x3f3794,_0x5f1b12=hostedRequest(_0x5d32dd),_0x51a1b1=hostedConversationUploadPreflightInputSchema[_0x192033(0x310)](_0x5f1b12[_0x192033(0x353)]),_0x37ccc6=this[_0x192033(0x2c1)](_0x5f1b12[_0x192033(0x37b)],_0x51a1b1[_0x192033(0x2f6)]),_0x1beaeb=await this[_0x192033(0x2f9)](_0x37ccc6[_0x192033(0x2a7)],_0x37ccc6[_0x192033(0x2da)]),_0x28a274=this[_0x192033(0x289)][_0x192033(0x271)][_0x192033(0x321)](_0x5f1b12[_0x192033(0x37b)],_0x37ccc6['id']),_0x437410=await Promise[_0x192033(0x227)](_0x51a1b1[_0x192033(0x1fb)][_0x192033(0x300)](async _0x3cdbe0=>({'name':_0x3cdbe0[_0x192033(0x255)],'status':await this[_0x192033(0x345)](_0x28a274,_0x37ccc6,_0x1beaeb[_0x192033(0x32b)],_0x3cdbe0[_0x192033(0x255)],_0x3cdbe0[_0x192033(0x386)])})));return hostedConversationUploadPreflightResultSchema[_0x192033(0x310)]({'files':_0x437410});}async[_0x3f3794(0x382)](_0x5d6a9a){const _0x37bd4e=_0x3f3794,_0x1e0247=hostedRequest(_0x5d6a9a),_0x4db3b6=hostedConversationUploadCreateInputSchema[_0x37bd4e(0x310)](_0x1e0247[_0x37bd4e(0x353)]),_0x57e943=this[_0x37bd4e(0x2c1)](_0x1e0247[_0x37bd4e(0x37b)],_0x4db3b6[_0x37bd4e(0x2f6)]),_0x4769d8=_0x1e0247[_0x37bd4e(0x37b)]+'\x00'+_0x57e943['id']+'\x00'+_0x4db3b6[_0x37bd4e(0x2b4)],_0x271c0c=this[_0x37bd4e(0x28c)][_0x37bd4e(0x34a)](_0x4769d8);if(_0x271c0c!==undefined){const _0x15fab2=this[_0x37bd4e(0x393)][_0x37bd4e(0x34a)](_0x271c0c);if(_0x15fab2!==undefined)return{'upload':hostedConversationUploadSchema[_0x37bd4e(0x310)](uploadProjection(_0x15fab2))};}const _0x49362a=await this[_0x37bd4e(0x2f9)](_0x57e943[_0x37bd4e(0x2a7)],_0x57e943[_0x37bd4e(0x2da)]),_0x306b39=this[_0x37bd4e(0x289)][_0x37bd4e(0x271)][_0x37bd4e(0x321)](_0x1e0247[_0x37bd4e(0x37b)],_0x57e943['id']),_0x1ae3af=await this[_0x37bd4e(0x345)](_0x306b39,_0x57e943,_0x49362a[_0x37bd4e(0x32b)],_0x4db3b6[_0x37bd4e(0x255)],_0x4db3b6[_0x37bd4e(0x386)]);if(_0x1ae3af===_0x37bd4e(0x28d)||_0x1ae3af===_0x37bd4e(0x263))throw new Error(_0x37bd4e(0x2e2));if(_0x1ae3af!==_0x37bd4e(0x2b3))throw new Error(_0x37bd4e(0x2b8));const _0x3b6c7f=this['id'](),_0x3bb0f3=join(_0x306b39[_0x37bd4e(0x265)],'.'+_0x3b6c7f+_0x37bd4e(0x235)),_0x839296=join(_0x306b39[_0x37bd4e(0x265)],_0x4db3b6[_0x37bd4e(0x255)]),_0xa1f138=await open(_0x3bb0f3,'wx',-0x185*-0xe+-0xe56+0x2*-0x2b8);await _0xa1f138[_0x37bd4e(0x1f0)]();const _0x25e689={'uploadId':_0x3b6c7f,'conversationId':_0x57e943['id'],'userId':_0x1e0247[_0x37bd4e(0x37b)],'clientRequestId':_0x4db3b6[_0x37bd4e(0x2b4)],'name':_0x4db3b6[_0x37bd4e(0x255)],'mimeType':_0x4db3b6[_0x37bd4e(0x312)],'size':_0x4db3b6[_0x37bd4e(0x386)],'temporaryPath':_0x3bb0f3,'targetPath':_0x839296,'receivedBytes':0x0,'status':_0x37bd4e(0x24f)};return this[_0x37bd4e(0x393)][_0x37bd4e(0x33f)](_0x3b6c7f,_0x25e689),this[_0x37bd4e(0x28c)][_0x37bd4e(0x33f)](_0x4769d8,_0x3b6c7f),{'upload':hostedConversationUploadSchema[_0x37bd4e(0x310)](uploadProjection(_0x25e689))};}async[_0x3f3794(0x28b)](_0x5d7f87){const _0x205617=_0x3f3794,_0x1dfec3=hostedRequest(_0x5d7f87),_0x126952=hostedConversationUploadChunkInputSchema[_0x205617(0x310)](_0x1dfec3[_0x205617(0x353)]),_0x35623d=this[_0x205617(0x2ba)](_0x1dfec3[_0x205617(0x37b)],_0x126952[_0x205617(0x2f6)],_0x126952[_0x205617(0x1d9)]);if(_0x35623d[_0x205617(0x32d)]!==_0x205617(0x24f))throw new Error(_0x205617(0x200));if(_0x126952[_0x205617(0x31f)]!==_0x35623d[_0x205617(0x301)])throw new Error(_0x205617(0x335));const _0x2c3bd=Buffer[_0x205617(0x2b2)](_0x126952[_0x205617(0x1f5)],_0x205617(0x33d));if(_0x35623d[_0x205617(0x301)]+_0x2c3bd[_0x205617(0x2a0)]>_0x35623d[_0x205617(0x386)])throw new Error(_0x205617(0x1c5));await assertUploadTemporaryFile(_0x35623d[_0x205617(0x340)],_0x35623d[_0x205617(0x301)]);const _0x23b29b=await open(_0x35623d[_0x205617(0x340)],'r+');try{await _0x23b29b[_0x205617(0x226)](_0x2c3bd,-0x17dc+-0x566+0x1d42,_0x2c3bd[_0x205617(0x2a0)],_0x35623d[_0x205617(0x301)]);}finally{await _0x23b29b[_0x205617(0x1f0)]();}return _0x35623d[_0x205617(0x301)]+=_0x2c3bd[_0x205617(0x2a0)],{'upload':hostedConversationUploadSchema[_0x205617(0x310)](uploadProjection(_0x35623d))};}[_0x3f3794(0x2fe)](_0x2b130e){const _0x31b838=_0x3f3794,_0x137823=hostedRequest(_0x2b130e),_0x49d32b=hostedConversationUploadControlInputSchema[_0x31b838(0x310)](_0x137823[_0x31b838(0x353)]),_0x404c8b=this[_0x31b838(0x2ba)](_0x137823[_0x31b838(0x37b)],_0x49d32b[_0x31b838(0x2f6)],_0x49d32b[_0x31b838(0x1d9)]);return{'upload':hostedConversationUploadSchema[_0x31b838(0x310)](uploadProjection(_0x404c8b))};}async[_0x3f3794(0x247)](_0x1643ee){const _0x958089=_0x3f3794,_0x21dfa6=hostedRequest(_0x1643ee),_0x2215e4=hostedConversationUploadControlInputSchema[_0x958089(0x310)](_0x21dfa6[_0x958089(0x353)]),_0x4d4b28=this[_0x958089(0x2ba)](_0x21dfa6[_0x958089(0x37b)],_0x2215e4[_0x958089(0x2f6)],_0x2215e4[_0x958089(0x1d9)]);if(_0x4d4b28[_0x958089(0x32d)]===_0x958089(0x24a))return{'upload':hostedConversationUploadSchema[_0x958089(0x310)](uploadProjection(_0x4d4b28))};if(_0x4d4b28[_0x958089(0x32d)]!==_0x958089(0x24f)||_0x4d4b28[_0x958089(0x301)]!==_0x4d4b28[_0x958089(0x386)])throw new Error(_0x958089(0x323));const _0x126190=this[_0x958089(0x2c1)](_0x21dfa6[_0x958089(0x37b)],_0x4d4b28[_0x958089(0x2f6)]),_0x354501=await this[_0x958089(0x2f9)](_0x126190[_0x958089(0x2a7)],_0x126190[_0x958089(0x2da)]);if(_0x4d4b28[_0x958089(0x386)]>_0x354501[_0x958089(0x32b)][_0x958089(0x1bc)][_0x958089(0x327)]||_0x126190[_0x958089(0x276)][_0x958089(0x258)]+_0x4d4b28[_0x958089(0x386)]>_0x126190[_0x958089(0x276)][_0x958089(0x21c)])throw new Error(_0x958089(0x2e2));await assertUploadTemporaryFile(_0x4d4b28[_0x958089(0x340)],_0x4d4b28[_0x958089(0x386)]);const _0x5739fe=await lstat(_0x4d4b28[_0x958089(0x358)])[_0x958089(0x278)](_0x57ee5a=>{const _0x32bf8b=_0x958089;if(_0x57ee5a[_0x32bf8b(0x2d7)]===_0x32bf8b(0x1dc))return undefined;throw _0x57ee5a;});if(_0x5739fe!==undefined)throw new Error(_0x958089(0x2b8));const _0x407859=await open(_0x4d4b28[_0x958089(0x340)],'r+');try{await _0x407859[_0x958089(0x29a)]();}finally{await _0x407859[_0x958089(0x1f0)]();}await rename(_0x4d4b28[_0x958089(0x340)],_0x4d4b28[_0x958089(0x358)]);const _0x2d2210=this[_0x958089(0x383)]();try{await utimes(_0x4d4b28[_0x958089(0x358)],new Date(_0x2d2210),new Date(_0x2d2210));const _0x2bc245={'id':this[_0x958089(0x289)][_0x958089(0x271)][_0x958089(0x313)](_0x4d4b28[_0x958089(0x2f6)],_0x958089(0x220),_0x4d4b28[_0x958089(0x255)]),'conversationId':_0x4d4b28[_0x958089(0x2f6)],'category':_0x958089(0x220),'relativePath':_0x4d4b28[_0x958089(0x255)],'displayName':_0x4d4b28[_0x958089(0x255)],'mimeType':_0x4d4b28[_0x958089(0x312)],'size':_0x4d4b28[_0x958089(0x386)],'source':_0x958089(0x2b7),'createdAt':_0x2d2210,'updatedAt':_0x2d2210};return _0x4d4b28[_0x958089(0x26c)]=await this[_0x958089(0x289)][_0x958089(0x271)][_0x958089(0x206)](_0x21dfa6[_0x958089(0x37b)],_0x2bc245),_0x4d4b28[_0x958089(0x32d)]=_0x958089(0x24a),this[_0x958089(0x292)](_0x4d4b28[_0x958089(0x2f6)],{'conversationId':_0x4d4b28[_0x958089(0x2f6)],'kind':_0x958089(0x1fb),'files':this[_0x958089(0x289)][_0x958089(0x271)][_0x958089(0x2e4)](_0x21dfa6[_0x958089(0x37b)],_0x4d4b28[_0x958089(0x2f6)]),'error':null}),{'upload':hostedConversationUploadSchema[_0x958089(0x310)](uploadProjection(_0x4d4b28))};}catch(_0x324ea0){await rename(_0x4d4b28[_0x958089(0x358)],_0x4d4b28[_0x958089(0x340)])[_0x958089(0x278)](()=>undefined);throw _0x324ea0;}}async[_0x3f3794(0x2ec)](_0x23116d){const _0x383be8=_0x3f3794,_0x35a5d4=hostedRequest(_0x23116d),_0x34dc37=hostedConversationUploadControlInputSchema[_0x383be8(0x310)](_0x35a5d4[_0x383be8(0x353)]),_0x42ca31=this[_0x383be8(0x2ba)](_0x35a5d4[_0x383be8(0x37b)],_0x34dc37[_0x383be8(0x2f6)],_0x34dc37[_0x383be8(0x1d9)]);if(_0x42ca31[_0x383be8(0x32d)]===_0x383be8(0x24a))throw new Error(_0x383be8(0x200));return _0x42ca31[_0x383be8(0x32d)]=_0x383be8(0x30b),await rm(_0x42ca31[_0x383be8(0x340)],{'force':!![]}),{'upload':hostedConversationUploadSchema[_0x383be8(0x310)](uploadProjection(_0x42ca31))};}async[_0x3f3794(0x1ef)](_0x4bfece){const _0xac97de=_0x3f3794,_0x97e36=hostedRequest(_0x4bfece),_0x123d7a=hostedConversationIdInputSchema[_0xac97de(0x310)](_0x97e36[_0xac97de(0x353)]),_0x1642d4=this[_0xac97de(0x289)][_0xac97de(0x271)][_0xac97de(0x388)](_0x97e36[_0xac97de(0x37b)],_0x123d7a[_0xac97de(0x2f6)]);if(this[_0xac97de(0x303)][_0xac97de(0x266)](_0x1642d4['id'])||this[_0xac97de(0x2ce)][_0xac97de(0x266)](_0x1642d4['id']))throw new Error(_0xac97de(0x364));this[_0xac97de(0x303)][_0xac97de(0x329)](_0x1642d4['id']);try{await this[_0xac97de(0x277)](_0x1642d4['id']);const _0x2621a2=this[_0xac97de(0x238)][_0xac97de(0x34a)](_0x1642d4['id']);if(_0x2621a2!==undefined){const _0x1d7788=runInterruptionKey(_0x1642d4['id'],_0x2621a2[_0xac97de(0x32a)]['id']);this[_0xac97de(0x2b5)][_0xac97de(0x329)](_0x1d7788);if(!_0x2621a2[_0xac97de(0x297)]())this[_0xac97de(0x2b5)][_0xac97de(0x1ef)](_0x1d7788);}await this[_0xac97de(0x267)](_0x97e36[_0xac97de(0x37b)],_0x1642d4['id']);const _0x1ee9cb=this[_0xac97de(0x289)][_0xac97de(0x271)][_0xac97de(0x321)](_0x97e36[_0xac97de(0x37b)],_0x1642d4['id']);return await this[_0xac97de(0x289)][_0xac97de(0x31a)][_0xac97de(0x259)]({'conversationId':_0x1642d4['id'],'sessionId':_0x1642d4[_0xac97de(0x2bb)],'homeDirectory':_0x1ee9cb[_0xac97de(0x1c6)]})[_0xac97de(0x278)](()=>undefined),await this[_0xac97de(0x25d)][_0xac97de(0x34a)](_0x1642d4['id'])?.[_0xac97de(0x278)](()=>undefined),this[_0xac97de(0x30a)](_0x1642d4['id']),await this[_0xac97de(0x289)][_0xac97de(0x271)][_0xac97de(0x21b)](_0x1642d4['id']),this[_0xac97de(0x307)][_0xac97de(0x1ef)](_0x1642d4['id']),this[_0xac97de(0x2c3)][_0xac97de(0x1ef)](_0x1642d4['id']),hostedConversationDeleteResultSchema[_0xac97de(0x310)]({'deletedConversationId':_0x1642d4['id']});}finally{this[_0xac97de(0x303)][_0xac97de(0x1ef)](_0x1642d4['id']);}}async[_0x3f3794(0x277)](_0xf81b66){const _0x4f5276=_0x3f3794,_0x550bba=_0xf81b66+'\x00',_0x57365c=[...this[_0x4f5276(0x26e)][_0x4f5276(0x339)]()][_0x4f5276(0x1c4)](([_0x42943d])=>_0x42943d[_0x4f5276(0x36d)](_0x550bba))[_0x4f5276(0x300)](([,_0x14edd9])=>_0x14edd9);await Promise[_0x4f5276(0x29c)](_0x57365c);}async[_0x3f3794(0x26d)](_0x16fe19){const _0xa30bdd=_0x3f3794;try{const _0x4084d7=await this[_0xa30bdd(0x34a)]({'conversationId':_0x16fe19[_0xa30bdd(0x2f6)],'__requestUserId':_0x16fe19[_0xa30bdd(0x37b)],'__marAgentModels':_0x16fe19[_0xa30bdd(0x30f)]});if(this[_0xa30bdd(0x27e)][_0xa30bdd(0x34a)](_0x16fe19[_0xa30bdd(0x1be)])!==_0x16fe19)return;this[_0xa30bdd(0x289)][_0xa30bdd(0x287)]?.({'type':_0xa30bdd(0x369),'workbenchConnectionId':_0x16fe19[_0xa30bdd(0x349)],'watchId':_0x16fe19[_0xa30bdd(0x291)],'nodeGeneration':_0x16fe19[_0xa30bdd(0x272)],'nodeId':this[_0xa30bdd(0x289)][_0xa30bdd(0x2c4)](),'templateId':_0x16fe19[_0xa30bdd(0x2da)],'conversationId':_0x16fe19[_0xa30bdd(0x2f6)],'revision':0x1,'snapshotSequence':++this[_0xa30bdd(0x279)],'expiresAt':_0x16fe19[_0xa30bdd(0x1fd)],'payload':_0x4084d7}),_0x16fe19[_0xa30bdd(0x2bf)]=!![];for(const _0x2a7e7e of _0x16fe19[_0xa30bdd(0x1d2)])this[_0xa30bdd(0x366)](_0x16fe19,_0x2a7e7e);_0x16fe19[_0xa30bdd(0x1d2)][_0xa30bdd(0x308)]=0xeec*0x1+-0x26ba*-0x1+-0x35a6;}catch(_0x453bd9){if(this[_0xa30bdd(0x27e)][_0xa30bdd(0x34a)](_0x16fe19[_0xa30bdd(0x1be)])!==_0x16fe19)return;this[_0xa30bdd(0x289)][_0xa30bdd(0x287)]?.({'type':_0xa30bdd(0x2fa),'workbenchConnectionId':_0x16fe19[_0xa30bdd(0x349)],'watchType':_0xa30bdd(0x234),'watchId':_0x16fe19[_0xa30bdd(0x291)],'nodeGeneration':_0x16fe19[_0xa30bdd(0x272)],'nodeId':this[_0xa30bdd(0x289)][_0xa30bdd(0x2c4)](),'templateId':_0x16fe19[_0xa30bdd(0x2da)],'conversationId':_0x16fe19[_0xa30bdd(0x2f6)],'code':safeErrorCode(_0x453bd9,_0xa30bdd(0x331)),'message':_0xa30bdd(0x2bc)}),this[_0xa30bdd(0x24c)](_0x16fe19[_0xa30bdd(0x1be)]);}}[_0x3f3794(0x1c7)](_0x34f40b,_0x3e0e90){const _0x409ac6=_0x3f3794;for(const _0x1e42c7 of this[_0x409ac6(0x27e)][_0x409ac6(0x38d)]()){if(_0x1e42c7[_0x409ac6(0x2f6)]!==_0x34f40b||!_0x1e42c7[_0x409ac6(0x2bf)])continue;this[_0x409ac6(0x289)][_0x409ac6(0x287)]?.({'type':_0x409ac6(0x369),'workbenchConnectionId':_0x1e42c7[_0x409ac6(0x349)],'watchId':_0x1e42c7[_0x409ac6(0x291)],'nodeGeneration':_0x1e42c7[_0x409ac6(0x272)],'nodeId':this[_0x409ac6(0x289)][_0x409ac6(0x2c4)](),'templateId':_0x1e42c7[_0x409ac6(0x2da)],'conversationId':_0x1e42c7[_0x409ac6(0x2f6)],'revision':0x1,'snapshotSequence':++this[_0x409ac6(0x279)],'expiresAt':_0x1e42c7[_0x409ac6(0x1fd)],'payload':_0x3e0e90});}}[_0x3f3794(0x2f2)](_0x7f845c){const _0x3581a6=_0x3f3794;return this[_0x3581a6(0x307)][_0x3581a6(0x34a)](_0x7f845c)??{'status':_0x3581a6(0x341),'version':0x0,'updatedAt':0x0};}[_0x3f3794(0x354)](_0x1d04bd){const _0x3a4409=_0x3f3794;return hostedConversationSummary(_0x1d04bd,this[_0x3a4409(0x2f2)](_0x1d04bd['id']));}[_0x3f3794(0x1fe)](_0x1a4c96,_0x39a161,_0x183e39,_0x50c69b){const _0x5286d8=_0x3f3794,_0x10c362=this[_0x5286d8(0x2f2)](_0x39a161['id']),_0x34520b={'status':_0x183e39,'version':_0x10c362[_0x5286d8(0x22f)]+(-0x2*0x311+0x435+0x1ee),'updatedAt':_0x50c69b};this[_0x5286d8(0x307)][_0x5286d8(0x33f)](_0x39a161['id'],_0x34520b),this[_0x5286d8(0x243)]({'kind':_0x5286d8(0x2f2),'userId':_0x1a4c96,'templateId':_0x39a161[_0x5286d8(0x2da)],'conversationId':_0x39a161['id'],'activity':_0x34520b});}[_0x3f3794(0x1ba)](_0x342774,_0x3a06e3,_0x5c4290,_0x302e13){const _0x931257=_0x3f3794;this[_0x931257(0x243)]({'kind':_0x931257(0x253),'event':{'runId':_0x5c4290,'sequence':0x1,'eventType':_0x931257(0x253),'payload':{'targetType':_0x931257(0x1c1),'userId':_0x342774,'templateId':_0x3a06e3[_0x931257(0x2da)],'conversationId':_0x3a06e3['id'],'conversationTitle':_0x3a06e3[_0x931257(0x20b)],'runId':_0x5c4290,'notificationId':_0x931257(0x2a3)+this[_0x931257(0x289)][_0x931257(0x2c4)]()+':'+_0x3a06e3['id']+':'+_0x5c4290,'kind':_0x931257(0x23a),'outcome':_0x302e13[_0x931257(0x32d)],'occurredAt':_0x302e13[_0x931257(0x2e6)]},'createdAt':_0x302e13[_0x931257(0x2e6)]}});}[_0x3f3794(0x243)](_0x4f6cc3){const _0x5c8e0=_0x3f3794,_0x3561db=this[_0x5c8e0(0x289)][_0x5c8e0(0x2e7)]?.(_0x4f6cc3)??{'sequence':++this[_0x5c8e0(0x2f1)],'category':_0x5c8e0(0x234),'payload':_0x4f6cc3};if(_0x3561db!==undefined)this[_0x5c8e0(0x289)][_0x5c8e0(0x337)]?.(_0x3561db);}[_0x3f3794(0x333)](_0x414f2c,_0x5d196c,_0x18dc66,_0x5e5a17){const _0x131cbb=_0x3f3794;this[_0x131cbb(0x292)](_0x414f2c['id'],{'conversationId':_0x414f2c['id'],'kind':_0x131cbb(0x322),'upgrade':{'status':_0x131cbb(0x36f),'previousVersionId':_0x5d196c,'targetVersionId':_0x18dc66,'activeVersionId':_0x414f2c[_0x131cbb(0x2a7)],'conversation':this[_0x131cbb(0x354)](_0x414f2c),'error':{'code':safeErrorCode(_0x5e5a17,_0x131cbb(0x274)),'message':_0x131cbb(0x35c)}}});}[_0x3f3794(0x292)](_0x57695b,_0x206812){const _0x12c583=_0x3f3794,_0x2441d4=[...this[_0x12c583(0x27e)][_0x12c583(0x38d)]()][_0x12c583(0x1c4)](_0x1b9b04=>_0x1b9b04[_0x12c583(0x2f6)]===_0x57695b);if(_0x2441d4[_0x12c583(0x308)]===0x947+-0x2e*-0x74+0xb*-0x2bd)return![];const _0xec76a1=this[_0x12c583(0x289)][_0x12c583(0x2e7)]?.(_0x206812)??{'sequence':++this[_0x12c583(0x2f1)],'category':_0x12c583(0x234),'payload':_0x206812};if(_0xec76a1===undefined)return![];for(const _0x425ae3 of _0x2441d4){if(!_0x425ae3[_0x12c583(0x2bf)])_0x425ae3[_0x12c583(0x1d2)][_0x12c583(0x378)](_0xec76a1);else this[_0x12c583(0x366)](_0x425ae3,_0xec76a1);}return!![];}[_0x3f3794(0x366)](_0x1c41b3,_0x31cd9b){const _0x7b083e=_0x3f3794;this[_0x7b083e(0x289)][_0x7b083e(0x287)]?.({'type':_0x7b083e(0x25b),'workbenchConnectionId':_0x1c41b3[_0x7b083e(0x349)],'watchId':_0x1c41b3[_0x7b083e(0x291)],'nodeGeneration':_0x1c41b3[_0x7b083e(0x272)],'nodeId':this[_0x7b083e(0x289)][_0x7b083e(0x2c4)](),'templateId':_0x1c41b3[_0x7b083e(0x2da)],'conversationId':_0x1c41b3[_0x7b083e(0x2f6)],'expiresAt':_0x1c41b3[_0x7b083e(0x1fd)],'event':_0x31cd9b});}[_0x3f3794(0x1c2)](_0x3d58d8){const _0x359a19=_0x3f3794;return{'accepted':!![],'watchId':_0x3d58d8[_0x359a19(0x291)],'nodeGeneration':_0x3d58d8[_0x359a19(0x272)],'expiresAt':_0x3d58d8[_0x359a19(0x1fd)]};}[_0x3f3794(0x30a)](_0x5073ff){const _0x145c5f=_0x3f3794;for(const _0x31f34d of[...this[_0x145c5f(0x27e)][_0x145c5f(0x38d)]()])if(_0x31f34d[_0x145c5f(0x2f6)]===_0x5073ff)this[_0x145c5f(0x24c)](_0x31f34d[_0x145c5f(0x1be)]);}[_0x3f3794(0x24c)](_0x3eee62){const _0x4d3cea=_0x3f3794,_0x48b358=this[_0x4d3cea(0x27e)][_0x4d3cea(0x34a)](_0x3eee62);if(_0x48b358===undefined)return;clearTimeout(_0x48b358[_0x4d3cea(0x372)]),this[_0x4d3cea(0x27e)][_0x4d3cea(0x1ef)](_0x3eee62),this[_0x4d3cea(0x24d)][_0x4d3cea(0x389)](_0x3eee62,_0x48b358[_0x4d3cea(0x211)]);}[_0x3f3794(0x377)](_0x1006a7){const _0x2b2fec=_0x3f3794,_0x3a9069=setTimeout(()=>this[_0x2b2fec(0x24c)](_0x1006a7),WATCH_TTL_MS);return _0x3a9069[_0x2b2fec(0x32c)](),_0x3a9069;}[_0x3f3794(0x2c1)](_0x58c7ff,_0x37c06e){const _0x34cd28=_0x3f3794,_0x549944=this[_0x34cd28(0x289)][_0x34cd28(0x271)][_0x34cd28(0x388)](_0x58c7ff,_0x37c06e);if(this[_0x34cd28(0x303)][_0x34cd28(0x266)](_0x549944['id']))throw new Error(_0x34cd28(0x364));if(_0x549944[_0x34cd28(0x32d)]!==_0x34cd28(0x2b6))throw new Error(_0x34cd28(0x364));return _0x549944;}[_0x3f3794(0x2ba)](_0x2fa5ee,_0x16dc8c,_0x40b105){const _0x2dbe34=_0x3f3794;this[_0x2dbe34(0x289)][_0x2dbe34(0x271)][_0x2dbe34(0x388)](_0x2fa5ee,_0x16dc8c);const _0x522921=this[_0x2dbe34(0x393)][_0x2dbe34(0x34a)](_0x40b105);if(_0x522921===undefined||_0x522921[_0x2dbe34(0x37b)]!==_0x2fa5ee||_0x522921[_0x2dbe34(0x2f6)]!==_0x16dc8c)throw new Error(_0x2dbe34(0x2eb));return _0x522921;}async[_0x3f3794(0x267)](_0x59aa8a,_0x5591ad){const _0x5b0762=_0x3f3794;for(const _0xd9ba0a of this[_0x5b0762(0x393)][_0x5b0762(0x38d)]()){if(_0xd9ba0a[_0x5b0762(0x37b)]!==_0x59aa8a||_0xd9ba0a[_0x5b0762(0x2f6)]!==_0x5591ad)continue;_0xd9ba0a[_0x5b0762(0x32d)]===_0x5b0762(0x24f)&&(_0xd9ba0a[_0x5b0762(0x32d)]=_0x5b0762(0x30b),await rm(_0xd9ba0a[_0x5b0762(0x340)],{'force':!![]})[_0x5b0762(0x278)](()=>undefined));}}async[_0x3f3794(0x314)](_0xb4fd3a,_0x5c9662,_0x369a66){const _0x15baab=_0x3f3794,_0xe341e7=this[_0x15baab(0x289)][_0x15baab(0x271)][_0x15baab(0x1d0)](_0xb4fd3a,_0x5c9662,_0x369a66);if(_0xe341e7[_0x15baab(0x1f6)]!==_0x15baab(0x220))throw new Error(_0x15baab(0x31e));return await assertRegularFile(this[_0x15baab(0x289)][_0x15baab(0x271)][_0x15baab(0x1ce)](_0xb4fd3a,_0xe341e7),_0xe341e7[_0x15baab(0x386)]),_0xe341e7;}async[_0x3f3794(0x345)](_0xce3364,_0x394dfd,_0x4e0399,_0x33eff5,_0x4e10da){const _0x4b269e=_0x3f3794;if(_0x4e10da>_0x4e0399[_0x4b269e(0x1bc)][_0x4b269e(0x327)])return _0x4b269e(0x263);if(_0x394dfd[_0x4b269e(0x276)][_0x4b269e(0x258)]+_0x4e10da>_0x394dfd[_0x4b269e(0x276)][_0x4b269e(0x21c)])return _0x4b269e(0x28d);const _0x39b1d6=await lstat(join(_0xce3364[_0x4b269e(0x265)],_0x33eff5))[_0x4b269e(0x278)](_0x3d938a=>{const _0x49762a=_0x4b269e;if(_0x3d938a[_0x49762a(0x2d7)]===_0x49762a(0x1dc))return undefined;throw _0x3d938a;});return _0x39b1d6===undefined?_0x4b269e(0x2b3):_0x4b269e(0x360);}[_0x3f3794(0x330)](_0x4a669a,_0x2ec9b8,_0x2c33b8,_0xbe2a47,_0x268ffd){const _0x29082e=_0x3f3794,_0x21eddb=[{'logicalPath':_0x29082e(0x208),'physicalPath':_0x2ec9b8[_0x29082e(0x1cf)],'writable':![]},{'logicalPath':_0x29082e(0x222),'physicalPath':_0x4a669a[_0x29082e(0x265)],'writable':!![]},{'logicalPath':_0x29082e(0x20a),'physicalPath':_0x4a669a[_0x29082e(0x251)],'writable':!![]}];if(_0x268ffd!==undefined)_0x21eddb[_0x29082e(0x378)]({'logicalPath':_0x29082e(0x2ef),'physicalPath':_0x268ffd,'writable':!![]});if(_0x2c33b8!==undefined&&_0xbe2a47!==undefined)_0x21eddb[_0x29082e(0x378)]({'logicalPath':_0xbe2a47,'physicalPath':_0x2c33b8,'writable':![]});if(_0x2ec9b8[_0x29082e(0x2ca)]!==undefined)_0x21eddb[_0x29082e(0x378)]({'logicalPath':_0x2ec9b8[_0x29082e(0x2ca)],'physicalPath':_0x2ec9b8[_0x29082e(0x1cf)],'writable':![]},{'logicalPath':join(_0x2ec9b8[_0x29082e(0x2ca)],_0x29082e(0x35a)),'physicalPath':_0x4a669a[_0x29082e(0x265)],'writable':!![]},{'logicalPath':join(_0x2ec9b8[_0x29082e(0x2ca)],_0x29082e(0x212)),'physicalPath':_0x4a669a[_0x29082e(0x251)],'writable':!![]});return _0x21eddb;}[_0x3f3794(0x283)](_0x431289,_0x2c4b96,_0x139ab5=_0x431289[_0x3f3794(0x25f)],_0x146e50,_0x38977b){const _0x52d6fc=_0x3f3794;return this[_0x52d6fc(0x289)][_0x52d6fc(0x2d9)]({'policyVersion':HOST_POLICY_VERSION,'workspaceDirectory':_0x2c4b96[_0x52d6fc(0x1cf)],..._0x2c4b96[_0x52d6fc(0x2ca)]===undefined?{}:{'sourceWorkspacePath':_0x2c4b96[_0x52d6fc(0x2ca)]},'inboxDirectory':_0x431289[_0x52d6fc(0x265)],'outputDirectory':_0x431289[_0x52d6fc(0x251)],..._0x146e50===undefined||_0x38977b===undefined?{}:{'generatedImagesDirectory':_0x146e50,'generatedImagesLogicalPath':_0x38977b},'temporaryDirectory':_0x139ab5,'networkMode':_0x2c4b96[_0x52d6fc(0x32b)][_0x52d6fc(0x27c)]});}[_0x3f3794(0x204)](_0x381082){const _0x2c0ac1=_0x3f3794,_0x119f50=this[_0x2c0ac1(0x289)][_0x2c0ac1(0x380)][_0x2c0ac1(0x2cc)][_0x2c0ac1(0x1bf)](_0x2c0ac1(0x38f))[_0x2c0ac1(0x34a)](_0x381082);if(_0x119f50===undefined)return undefined;if(typeof _0x119f50['id']!==_0x2c0ac1(0x2f5))throw new Error(_0x2c0ac1(0x30d));return _0x119f50['id'];}async[_0x3f3794(0x2f9)](_0x15ec15,_0x474816){const _0x43fd4c=_0x3f3794,_0x3acdf2=this[_0x43fd4c(0x289)][_0x43fd4c(0x380)][_0x43fd4c(0x2cc)][_0x43fd4c(0x1bf)](_0x43fd4c(0x362))[_0x43fd4c(0x34a)](_0x15ec15,_0x474816);if(_0x3acdf2===undefined||_0x3acdf2[_0x43fd4c(0x32d)]!==_0x43fd4c(0x2a6)&&_0x3acdf2[_0x43fd4c(0x32d)]!==_0x43fd4c(0x1fc)||_0x3acdf2[_0x43fd4c(0x1c9)]!==HOST_POLICY_VERSION||typeof _0x3acdf2[_0x43fd4c(0x352)]!==_0x43fd4c(0x2f5)||typeof _0x3acdf2[_0x43fd4c(0x316)]!==_0x43fd4c(0x2f5)||typeof _0x3acdf2[_0x43fd4c(0x2db)]!==_0x43fd4c(0x2f5)||typeof _0x3acdf2[_0x43fd4c(0x216)]!==_0x43fd4c(0x2f5)||typeof _0x3acdf2[_0x43fd4c(0x2a9)]!==_0x43fd4c(0x2f5))throw new Error(_0x43fd4c(0x30d));const _0x15442b=this[_0x43fd4c(0x289)][_0x43fd4c(0x271)][_0x43fd4c(0x1f7)](_0x3acdf2[_0x43fd4c(0x352)]),_0x49576a=join(_0x15442b,_0x43fd4c(0x221)),_0x470e9a=join(_0x15442b,_0x43fd4c(0x394)),_0x73aef6=await lstat(_0x49576a)[_0x43fd4c(0x278)](()=>undefined),_0x57e963=await lstat(_0x470e9a)[_0x43fd4c(0x278)](()=>undefined);if(_0x73aef6===undefined||!_0x73aef6[_0x43fd4c(0x294)]()||_0x73aef6[_0x43fd4c(0x2c9)]()||_0x57e963===undefined||!_0x57e963[_0x43fd4c(0x1f2)]()||_0x57e963[_0x43fd4c(0x2c9)]()||(_0x57e963[_0x43fd4c(0x26f)]&0x14da+-0x182f+-0x554*-0x1)!==-0x43c+0x1df5*0x1+-0x184c)throw new Error(_0x43fd4c(0x30d));let _0x3044fd;try{const _0x188ddc=await readFile(_0x49576a,_0x43fd4c(0x34c)),_0xf481fb=_0x188ddc[_0x43fd4c(0x2dd)]('\x0a')?_0x188ddc[_0x43fd4c(0x250)](0x82*-0x4a+-0x2409+0x499d,-(-0x1217+0xcc3*-0x3+0x3861)):_0x188ddc;if(_0xf481fb!==_0x3acdf2[_0x43fd4c(0x316)]||createHash(_0x43fd4c(0x24e))[_0x43fd4c(0x2c5)](_0xf481fb)[_0x43fd4c(0x218)](_0x43fd4c(0x2f7))!==_0x3acdf2[_0x43fd4c(0x216)])throw new Error(_0x43fd4c(0x30d));_0x3044fd=JSON[_0x43fd4c(0x310)](_0xf481fb);}catch{throw new Error(_0x43fd4c(0x30d));}if(!record(_0x3044fd))throw new Error(_0x43fd4c(0x30d));const _0x4c1919=publishedTemplateSnapshot(_0x3044fd),_0x4b116c=publishedTemplateDraft(_0x4c1919[_0x43fd4c(0x34e)],_0x3044fd[_0x43fd4c(0x32b)]),_0x277875=_0x4b116c[_0x43fd4c(0x32b)],_0x12101a=publishedMcpServers(_0x3044fd[_0x43fd4c(0x1e8)]),_0x426846=publishedTemplateContentHash(_0x4c1919[_0x43fd4c(0x2e5)],_0x4c1919[_0x43fd4c(0x339)],_0x4c1919[_0x43fd4c(0x34e)]),_0x30f63b=_0x4c1919[_0x43fd4c(0x339)][_0x43fd4c(0x375)]((_0x8f37f7,_0x56e4c4)=>_0x8f37f7+_0x56e4c4[_0x43fd4c(0x386)],-0x18c7+-0x220c+0x3ad3);if(_0x3044fd[_0x43fd4c(0x1e3)]!==_0x3acdf2[_0x43fd4c(0x2a9)]||createHash(_0x43fd4c(0x24e))[_0x43fd4c(0x2c5)](JSON[_0x43fd4c(0x219)](_0x12101a))[_0x43fd4c(0x218)](_0x43fd4c(0x2f7))!==_0x3acdf2[_0x43fd4c(0x2a9)]||_0x3044fd[_0x43fd4c(0x1ed)]!==_0x3acdf2[_0x43fd4c(0x2db)]||_0x426846!==_0x3acdf2[_0x43fd4c(0x2db)]||_0x3acdf2[_0x43fd4c(0x2bd)]!==_0x4c1919[_0x43fd4c(0x339)][_0x43fd4c(0x308)]||_0x3acdf2[_0x43fd4c(0x357)]!==_0x30f63b)throw new Error(_0x43fd4c(0x30d));if(_0x3044fd[_0x43fd4c(0x237)]!==_0x15ec15||_0x3044fd[_0x43fd4c(0x2da)]!==_0x474816||_0x3044fd[_0x43fd4c(0x273)]!==HOST_POLICY_VERSION||_0x277875[_0x43fd4c(0x2da)]!==_0x474816||_0x277875[_0x43fd4c(0x2c4)]!==this[_0x43fd4c(0x289)][_0x43fd4c(0x2c4)]())throw new Error(_0x43fd4c(0x30d));return{'id':_0x15ec15,'templateId':_0x474816,'storageKey':_0x3acdf2[_0x43fd4c(0x352)],'templateDirectory':_0x470e9a,..._0x4c1919[_0x43fd4c(0x2ca)]===undefined?{}:{'sourceWorkspacePath':_0x4c1919[_0x43fd4c(0x2ca)]},'draft':_0x277875,'modelPolicy':_0x4b116c[_0x43fd4c(0x2cf)],'mcpServers':_0x12101a};}}function hostedRequest(_0x3200a2){const _0x3a0067=_0x3f3794;if(!record(_0x3200a2))throw new Error(_0x3a0067(0x391));const {__requestUserId:_0x15e2e1,__template:_0x4b74ee,__marAgentModel:_0x36ea4a,__marAgentModels:_0x253b14,__marAgentRuntimeScopeId:_0x49d782,__workspaceWatchSessionHash:_0x406325,__templateDeleted:_0x4347da,..._0x39f4e2}=_0x3200a2;if(typeof _0x15e2e1!==_0x3a0067(0x29e)||!Number[_0x3a0067(0x20e)](_0x15e2e1)||_0x15e2e1<=0x71b*-0x5+-0xb6b+-0x1779*-0x2)throw new Error(_0x3a0067(0x391));if(_0x4347da!==undefined&&_0x4347da!==!![])throw new Error(_0x3a0067(0x391));if(_0x49d782!==undefined&&(typeof _0x49d782!==_0x3a0067(0x2f5)||_0x49d782[_0x3a0067(0x308)]===-0x1501+-0x1*-0x17b9+-0x2b8))throw new Error(_0x3a0067(0x391));return{'data':_0x39f4e2,'userId':_0x15e2e1,..._0x4b74ee===undefined?{}:{'template':_0x4b74ee},..._0x36ea4a===undefined?{}:{'model':_0x36ea4a},..._0x253b14===undefined?{}:{'models':_0x253b14},..._0x49d782===undefined?{}:{'runtimeScopeId':_0x49d782},..._0x406325===undefined?{}:{'sessionHash':_0x406325},..._0x4347da===!![]?{'templateDeleted':!![]}:{}};}function requireWatchSessionHash(_0x3c40f2){const _0x17d7fe=_0x3f3794;if(typeof _0x3c40f2!==_0x17d7fe(0x2f5)||_0x3c40f2[_0x17d7fe(0x308)]===0x1c7e+0x1cfd+-0x3d5*0xf)throw new Error(_0x17d7fe(0x391));return _0x3c40f2;}function watchOwnerKey(_0x3fb575,_0x39acc0){return _0x3fb575+':'+_0x39acc0;}function runtimeModels(_0x3eaf05){const _0x47e817=_0x3f3794;return marAgentRuntimeModelConfigurationSchema[_0x47e817(0x36a)]()[_0x47e817(0x310)](_0x3eaf05);}function allowedModels(_0xd273bc,_0x222624){const _0x4ee588=_0x3f3794,_0xaa5da3=new Set(_0xd273bc[_0x4ee588(0x2cf)][_0x4ee588(0x209)]);return _0x222624[_0x4ee588(0x1c4)](_0x2669da=>_0x2669da[_0x4ee588(0x225)]&&_0xaa5da3[_0x4ee588(0x266)](_0xd273bc[_0x4ee588(0x2cf)][_0x4ee588(0x325)]===_0x4ee588(0x2ae)?_0x2669da[_0x4ee588(0x25c)]:_0x2669da['id']));}function selectModel(_0x46ab1f,_0x41d481,_0x18a80e){const _0x48ed8b=_0x3f3794,_0xfc5391=allowedModels(_0x46ab1f,_0x41d481),_0x35b34b=_0xfc5391[_0x48ed8b(0x1f4)](_0x5c7c38=>_0x5c7c38['id']===_0x18a80e);if(_0x35b34b!==undefined)return _0x35b34b;const _0x5db347=_0xfc5391[_0x48ed8b(0x1f4)](_0x44d1f2=>(_0x46ab1f[_0x48ed8b(0x2cf)][_0x48ed8b(0x325)]===_0x48ed8b(0x2ae)?_0x44d1f2[_0x48ed8b(0x25c)]:_0x44d1f2['id'])===_0x46ab1f[_0x48ed8b(0x2cf)][_0x48ed8b(0x346)]);if(_0x5db347!==undefined)return _0x5db347;const _0x40b878=_0x46ab1f[_0x48ed8b(0x2cf)][_0x48ed8b(0x209)][_0x48ed8b(0x300)](_0x2d9923=>_0xfc5391[_0x48ed8b(0x1f4)](_0x418f24=>(_0x46ab1f[_0x48ed8b(0x2cf)][_0x48ed8b(0x325)]===_0x48ed8b(0x2ae)?_0x418f24[_0x48ed8b(0x25c)]:_0x418f24['id'])===_0x2d9923))[_0x48ed8b(0x1f4)](_0x3c5b11=>_0x3c5b11!==undefined);if(_0x40b878===undefined)throw new Error(_0x48ed8b(0x1ca));return _0x40b878;}function publishedTemplateDraft(_0x1e8256,_0x18ff6e){const _0x2cb051=_0x3f3794,_0x52eb09=conversationTemplateDraftSchema[_0x2cb051(0x2c0)](_0x18ff6e);if(_0x52eb09[_0x2cb051(0x256)]){const {allowedModels:_0x1a1ce0,defaultModelId:_0x331904,..._0x4624ca}=_0x52eb09[_0x2cb051(0x353)];return{'draft':_0x4624ca,'modelPolicy':{'identity':_0x2cb051(0x2ae),'allowedIds':_0x1a1ce0[_0x2cb051(0x300)](_0x24c595=>_0x24c595[_0x2cb051(0x25c)]),'defaultId':_0x331904}};}if(_0x1e8256!==0x2*0x698+0x4ed*-0x1+-0x842||!record(_0x18ff6e)||_0x2cb051(0x1c8)in _0x18ff6e||!Array[_0x2cb051(0x26a)](_0x18ff6e[_0x2cb051(0x35b)]))throw new Error(_0x2cb051(0x30d));const _0x1aba71=_0x18ff6e[_0x2cb051(0x35b)],_0x48d17a={..._0x18ff6e};delete _0x48d17a[_0x2cb051(0x35b)];const _0x12ca88=conversationTemplateDraftSchema[_0x2cb051(0x2c0)]({..._0x48d17a,'allowedModels':_0x1aba71[_0x2cb051(0x300)](_0x5bff83=>({'modelId':_0x5bff83,'name':_0x5bff83}))});if(!_0x12ca88[_0x2cb051(0x256)])throw new Error(_0x2cb051(0x30d));const {allowedModels:_0x5b4a71,defaultModelId:_0x5039a2,..._0x14e0fc}=_0x12ca88[_0x2cb051(0x353)];return{'draft':_0x14e0fc,'modelPolicy':{'identity':_0x2cb051(0x1dd),'allowedIds':_0x5b4a71[_0x2cb051(0x300)](_0x2361a3=>_0x2361a3[_0x2cb051(0x25c)]),'defaultId':_0x5039a2}};}function networkModels(_0x400769,_0x24f2d0){const _0x19a66b=_0x3f3794;if(_0x24f2d0!==_0x19a66b(0x361))return _0x400769;return _0x400769[_0x19a66b(0x300)](_0x1911cc=>_0x1911cc[_0x19a66b(0x1cc)]?{..._0x1911cc,'hostedWebSearch':![]}:_0x1911cc);}function publishedMcpServers(_0x177efe){const _0x2db342=_0x3f3794;if(!Array[_0x2db342(0x26a)](_0x177efe))throw new Error(_0x2db342(0x30d));return _0x177efe[_0x2db342(0x300)](_0x3bd71f=>{const _0x5ea45f=_0x2db342;if(!record(_0x3bd71f))throw new Error(_0x5ea45f(0x30d));const _0x2feee0=Object[_0x5ea45f(0x22b)](_0x3bd71f)[_0x5ea45f(0x286)]()[_0x5ea45f(0x1da)](',');if(_0x2feee0!==_0x5ea45f(0x2ad))throw new Error(_0x5ea45f(0x30d));const _0x1b8f9b=mcpRuntimeDescriptorSchema[_0x5ea45f(0x310)](_0x3bd71f[_0x5ea45f(0x31a)]),_0x21e529=mcpInstallationConfigurationSchema[_0x5ea45f(0x310)](_0x3bd71f[_0x5ea45f(0x37c)]);if(typeof _0x3bd71f['id']!==_0x5ea45f(0x2f5)||typeof _0x3bd71f[_0x5ea45f(0x1cd)]!==_0x5ea45f(0x2f5)||typeof _0x3bd71f[_0x5ea45f(0x249)]!==_0x5ea45f(0x2f5)||typeof _0x3bd71f[_0x5ea45f(0x22f)]!==_0x5ea45f(0x2f5)||_0x3bd71f[_0x5ea45f(0x1ff)]!==_0x5ea45f(0x241)&&_0x3bd71f[_0x5ea45f(0x1ff)]!==_0x5ea45f(0x23b)||_0x3bd71f[_0x5ea45f(0x338)]!==_0x1b8f9b[_0x5ea45f(0x338)])throw new Error(_0x5ea45f(0x30d));return{'id':_0x3bd71f['id'],'serverName':_0x3bd71f[_0x5ea45f(0x1cd)],'displayName':_0x3bd71f[_0x5ea45f(0x249)],'version':_0x3bd71f[_0x5ea45f(0x22f)],'origin':_0x3bd71f[_0x5ea45f(0x1ff)],'transport':_0x1b8f9b[_0x5ea45f(0x338)],'runtime':_0x1b8f9b,'configuration':_0x21e529};});}function publishedTemplateSnapshot(_0x37461e){const _0x1aa48e=_0x3f3794;if(_0x37461e[_0x1aa48e(0x34e)]===0x618+0x107b+-0x1692){const _0x16221a=publishedTemplateFiles(_0x37461e[_0x1aa48e(0x1fb)]);return{'schemaVersion':0x1,'directories':legacyPublishedTemplateDirectories(_0x16221a),'entries':_0x16221a};}if(_0x37461e[_0x1aa48e(0x34e)]!==0x1*-0x36d+-0x1b81+0x1ef0||typeof _0x37461e[_0x1aa48e(0x2ca)]!==_0x1aa48e(0x2f5)||!Array[_0x1aa48e(0x26a)](_0x37461e[_0x1aa48e(0x2e5)])||!Array[_0x1aa48e(0x26a)](_0x37461e[_0x1aa48e(0x339)]))throw new Error(_0x1aa48e(0x30d));validatePublishedSourceWorkspacePath(_0x37461e[_0x1aa48e(0x2ca)]);const _0xfbe4c1=_0x37461e[_0x1aa48e(0x2e5)][_0x1aa48e(0x300)](safePublishedTemplateRelativePath);if(new Set(_0xfbe4c1)[_0x1aa48e(0x386)]!==_0xfbe4c1[_0x1aa48e(0x308)]||_0xfbe4c1[_0x1aa48e(0x1c0)](_0x1aa48e(0x35a))||_0xfbe4c1[_0x1aa48e(0x1c0)](_0x1aa48e(0x212)))throw new Error(_0x1aa48e(0x30d));const _0x23c144=_0x37461e[_0x1aa48e(0x339)][_0x1aa48e(0x300)](publishedTemplateEntry);if(new Set(_0x23c144[_0x1aa48e(0x300)](_0x4ded75=>_0x4ded75[_0x1aa48e(0x20f)]))[_0x1aa48e(0x386)]!==_0x23c144[_0x1aa48e(0x308)])throw new Error(_0x1aa48e(0x30d));return{'schemaVersion':0x2,'sourceWorkspacePath':_0x37461e[_0x1aa48e(0x2ca)],'directories':_0xfbe4c1,'entries':_0x23c144};}function publishedTemplateEntry(_0x2f300d){const _0xaa5606=_0x3f3794;if(!record(_0x2f300d))throw new Error(_0xaa5606(0x30d));if(_0x2f300d[_0xaa5606(0x37a)]===_0xaa5606(0x23d))return publishedTemplateFile(_0x2f300d,!![]);if(_0x2f300d[_0xaa5606(0x37a)]!==_0xaa5606(0x1e2)||typeof _0x2f300d[_0xaa5606(0x390)]!==_0xaa5606(0x2f5)||_0x2f300d[_0xaa5606(0x390)][_0xaa5606(0x308)]===0x1000*0x2+0x13b*0x7+-0x289d||_0x2f300d[_0xaa5606(0x390)][_0xaa5606(0x1c0)]('\x00')||_0x2f300d[_0xaa5606(0x25a)]!==_0xaa5606(0x398)&&_0x2f300d[_0xaa5606(0x25a)]!==_0xaa5606(0x355)||typeof _0x2f300d[_0xaa5606(0x23f)]!==_0xaa5606(0x2f5))throw new Error(_0xaa5606(0x30d));const _0xc2b2bb=safePublishedTemplateRelativePath(_0x2f300d[_0xaa5606(0x20f)]),_0x1078d3=safePublishedTemplateSize(_0x2f300d[_0xaa5606(0x386)]),_0x48ff7d=_0x2f300d[_0xaa5606(0x390)],_0x45a7c3=_0x2f300d[_0xaa5606(0x25a)],_0x3511d9=_0x2f300d[_0xaa5606(0x23f)];if(_0x1078d3!==Buffer[_0xaa5606(0x2a0)](_0x48ff7d))throw new Error(_0xaa5606(0x30d));if(_0x45a7c3===_0xaa5606(0x398))safePublishedTemplateRelativePath(_0x3511d9);else{if(!isAbsolute(_0x3511d9)||!RUNTIME_LINK_ROOTS[_0xaa5606(0x2df)](_0x1db4f4=>_0x3511d9===_0x1db4f4||within(_0x1db4f4,_0x3511d9)))throw new Error(_0xaa5606(0x30d));}return{'kind':_0xaa5606(0x1e2),'relativePath':_0xc2b2bb,'size':_0x1078d3,'linkTarget':_0x48ff7d,'targetKind':_0x45a7c3,'resolvedTarget':_0x3511d9};}function publishedTemplateFiles(_0x4d08b0){const _0x788ae5=_0x3f3794;if(!Array[_0x788ae5(0x26a)](_0x4d08b0))throw new Error(_0x788ae5(0x30d));const _0x2fb7f8=new Set();return _0x4d08b0[_0x788ae5(0x300)](_0x50070c=>{const _0x167e69=_0x788ae5,_0x350799=publishedTemplateFile(_0x50070c);if(_0x2fb7f8[_0x167e69(0x266)](_0x350799[_0x167e69(0x20f)]))throw new Error(_0x167e69(0x30d));return _0x2fb7f8[_0x167e69(0x329)](_0x350799[_0x167e69(0x20f)]),_0x350799;});}function publishedTemplateFile(_0x50bda5,_0x52bd1d=![]){const _0x3a3779=_0x3f3794;if(!record(_0x50bda5)||_0x52bd1d&&_0x50bda5[_0x3a3779(0x37a)]!==_0x3a3779(0x23d)||typeof _0x50bda5[_0x3a3779(0x28f)]!==_0x3a3779(0x20d)||typeof _0x50bda5[_0x3a3779(0x24e)]!==_0x3a3779(0x2f5)||!/^[a-f0-9]{64}$/u[_0x3a3779(0x31b)](_0x50bda5[_0x3a3779(0x24e)]))throw new Error(_0x3a3779(0x30d));return{'kind':_0x3a3779(0x23d),'relativePath':safePublishedTemplateRelativePath(_0x50bda5[_0x3a3779(0x20f)]),'size':safePublishedTemplateSize(_0x50bda5[_0x3a3779(0x386)]),'executable':_0x50bda5[_0x3a3779(0x28f)],'sha256':_0x50bda5[_0x3a3779(0x24e)]};}function safePublishedTemplateRelativePath(_0x40412c){const _0x89e466=_0x3f3794;if(typeof _0x40412c!==_0x89e466(0x2f5)||_0x40412c[_0x89e466(0x308)]===-0x105b+0x7e2+0x879||_0x40412c[_0x89e466(0x36d)]('/')||_0x40412c[_0x89e466(0x1c0)]('\x5c')||_0x40412c[_0x89e466(0x202)]('/')[_0x89e466(0x2df)](_0x210469=>_0x210469[_0x89e466(0x308)]===-0x6*-0x2bd+0x15c7+-0x2635||_0x210469==='.'||_0x210469==='..'))throw new Error(_0x89e466(0x30d));return _0x40412c;}function safePublishedTemplateSize(_0x36856c){const _0x199b64=_0x3f3794;if(!Number[_0x199b64(0x20e)](_0x36856c)||_0x36856c<-0x9e*-0x12+0xda5+0x1*-0x18c1)throw new Error(_0x199b64(0x30d));return _0x36856c;}function legacyPublishedTemplateDirectories(_0x3d0590){const _0x2d3c0a=_0x3f3794,_0x40f5e4=new Set();for(const _0x547f74 of _0x3d0590){const _0x4505ab=_0x547f74[_0x2d3c0a(0x20f)][_0x2d3c0a(0x202)]('/');for(let _0x42dd5d=0x1c27+-0xdba+-0x1a*0x8e;_0x42dd5d<_0x4505ab[_0x2d3c0a(0x308)];_0x42dd5d+=0x10c1*-0x1+0x1*-0x8f4+-0x19b6*-0x1)_0x40f5e4[_0x2d3c0a(0x329)](_0x4505ab[_0x2d3c0a(0x250)](0x40*-0x16+0x71b*-0x3+0x1ad1,_0x42dd5d)[_0x2d3c0a(0x1da)]('/'));}return[..._0x40f5e4][_0x2d3c0a(0x286)]((_0x54e19e,_0x24f68b)=>_0x54e19e[_0x2d3c0a(0x2ff)](_0x24f68b,_0x2d3c0a(0x21f)));}function publishedTemplateContentHash(_0x9b634e,_0x399144,_0x5b51fb){const _0x2f1055=_0x3f3794,_0x5dd3f6=_0x5b51fb===0x1ced+0x4*-0x5b5+-0x618?_0x399144[_0x2f1055(0x300)](_0x2ae265=>{const _0x1d36af=_0x2f1055;if(_0x2ae265[_0x1d36af(0x37a)]!==_0x1d36af(0x23d))throw new Error(_0x1d36af(0x30d));return _0x2ae265[_0x1d36af(0x20f)]+'\x00'+_0x2ae265[_0x1d36af(0x386)]+'\x00'+_0x2ae265[_0x1d36af(0x24e)];})[_0x2f1055(0x1da)]('\x0a'):[..._0x9b634e[_0x2f1055(0x300)](_0x376fd3=>_0x2f1055(0x1db)+_0x376fd3),..._0x399144[_0x2f1055(0x300)](_0x5e135e=>_0x5e135e[_0x2f1055(0x37a)]===_0x2f1055(0x23d)?_0x5e135e[_0x2f1055(0x37a)]+'\x00'+_0x5e135e[_0x2f1055(0x20f)]+'\x00'+_0x5e135e[_0x2f1055(0x386)]+'\x00'+(_0x5e135e[_0x2f1055(0x28f)]?0x449*0x1+-0x139*-0xf+0x1*-0x169f:0x1a9c+-0x2*-0xbed+0x6*-0x869)+'\x00'+_0x5e135e[_0x2f1055(0x24e)]:_0x5e135e[_0x2f1055(0x37a)]+'\x00'+_0x5e135e[_0x2f1055(0x20f)]+'\x00'+_0x5e135e[_0x2f1055(0x386)]+'\x00'+_0x5e135e[_0x2f1055(0x390)]+'\x00'+_0x5e135e[_0x2f1055(0x25a)]+'\x00'+_0x5e135e[_0x2f1055(0x23f)])][_0x2f1055(0x1da)]('\x0a');return createHash(_0x2f1055(0x24e))[_0x2f1055(0x2c5)](_0x5dd3f6)[_0x2f1055(0x218)](_0x2f1055(0x2f7));}function _0x48c7(_0x1b2e51,_0x19d760){_0x1b2e51=_0x1b2e51-(0xe3f+-0x1*-0x178d+-0x2412);const _0x4f61fe=_0xfd98();let _0x9a078d=_0x4f61fe[_0x1b2e51];if(_0x48c7['ONRHdF']===undefined){var _0x31327c=function(_0x35fbde){const _0x363e1a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ceb23='',_0x6a4ff5='';for(let _0x18091d=-0x4cb*0x7+-0x59e+-0x25*-0x10f,_0xf6f23f,_0x1b1360,_0x7b3c9e=-0x539*-0x1+0xe36+-0x136f;_0x1b1360=_0x35fbde['charAt'](_0x7b3c9e++);~_0x1b1360&&(_0xf6f23f=_0x18091d%(-0x6e5+0x1e1b*-0x1+-0x67*-0x5c)?_0xf6f23f*(0x174b+-0xd*0xa7+0x748*-0x2)+_0x1b1360:_0x1b1360,_0x18091d++%(-0xf*0x281+-0x1ef4+0x4487*0x1))?_0x1ceb23+=String['fromCharCode'](0x26f8+0x1264+0x1*-0x385d&_0xf6f23f>>(-(0x11ba+-0xbb5+-0x603)*_0x18091d&0x10*0x113+-0x418*0x3+0x5*-0xfa)):-0x6*-0x502+0x26*-0xb0+-0x3ec){_0x1b1360=_0x363e1a['indexOf'](_0x1b1360);}for(let _0x2f451c=0x54*0x6f+-0x5de*0x2+-0x18b0,_0x1d9d81=_0x1ceb23['length'];_0x2f451c<_0x1d9d81;_0x2f451c++){_0x6a4ff5+='%'+('00'+_0x1ceb23['charCodeAt'](_0x2f451c)['toString'](-0x1*-0x214f+-0x91c+0x25*-0xa7))['slice'](-(-0x1ada+0xaa9+0x1033));}return decodeURIComponent(_0x6a4ff5);};_0x48c7['HtAtDB']=_0x31327c,_0x48c7['HgCuhc']={},_0x48c7['ONRHdF']=!![];}const _0x241c8d=_0x4f61fe[-0x26ec+-0x2694*-0x1+0x4*0x16];_0x48c7['ElcQhf']!==_0x241c8d&&(_0x48c7['HgCuhc']={},_0x48c7['ElcQhf']=_0x241c8d);const _0x7b077b=_0x48c7['HgCuhc'][_0x1b2e51];return _0x7b077b===undefined?(_0x9a078d=_0x48c7['HtAtDB'](_0x9a078d),_0x48c7['HgCuhc'][_0x1b2e51]=_0x9a078d):_0x9a078d=_0x7b077b,_0x9a078d;}function validatePublishedSourceWorkspacePath(_0x33f882){const _0x190a09=_0x3f3794;if(!isAbsolute(_0x33f882)||resolve(_0x33f882)!==_0x33f882||_0x33f882==='/'||RESERVED_SANDBOX_ROOTS[_0x190a09(0x2df)](_0x18282b=>_0x33f882===_0x18282b||within(_0x18282b,_0x33f882)||within(_0x33f882,_0x18282b)))throw new Error(_0x190a09(0x30d));}function within(_0x3704ed,_0x4f57b0){const _0xc70f64=_0x3f3794,_0x4a63d3=relative(_0x3704ed,_0x4f57b0);return _0x4a63d3[_0xc70f64(0x308)]>0x20ef*0x1+0xd3b*-0x2+0x679*-0x1&&_0x4a63d3!=='..'&&!_0x4a63d3[_0xc70f64(0x36d)]('..'+sep);}function resolveMcpServers(_0x44c429,_0xedcce4){const _0x5cacbb=_0x3f3794,_0x3705bc=_0x4be433=>{const _0x4e2ada=_0x48c7,_0x452e7d={};for(const [_0x4712e7,_0x379af5]of Object[_0x4e2ada(0x339)](_0x4be433??{})){const _0x24f19d=_0xedcce4[_0x379af5[_0x4e2ada(0x2d5)]];if(_0x24f19d===undefined)throw new Error(_0x4e2ada(0x21e));_0x452e7d[_0x4712e7]=_0x24f19d;}return _0x452e7d;};return _0x44c429[_0x5cacbb(0x1e8)][_0x5cacbb(0x214)](_0x3c9974=>{const _0x1c97e8=_0x5cacbb;if(_0x3c9974[_0x1c97e8(0x31a)][_0x1c97e8(0x338)]===_0x1c97e8(0x368)){if(_0x44c429[_0x1c97e8(0x32b)][_0x1c97e8(0x27c)]!==_0x1c97e8(0x1bb))return[];return[{'name':_0x3c9974[_0x1c97e8(0x1cd)],'lifecycle':_0x1c97e8(0x244),'transport':_0x1c97e8(0x368),'url':_0x3c9974[_0x1c97e8(0x31a)][_0x1c97e8(0x1eb)],'headers':{..._0x3705bc(_0x3c9974[_0x1c97e8(0x31a)][_0x1c97e8(0x1e0)]),..._0x3705bc(_0x3c9974[_0x1c97e8(0x37c)][_0x1c97e8(0x1e0)])}}];}return[{'name':_0x3c9974[_0x1c97e8(0x1cd)],'lifecycle':_0x1c97e8(0x244),'transport':_0x1c97e8(0x392),'command':_0x3c9974[_0x1c97e8(0x31a)][_0x1c97e8(0x309)],'args':[..._0x3c9974[_0x1c97e8(0x31a)][_0x1c97e8(0x257)],..._0x3c9974[_0x1c97e8(0x37c)][_0x1c97e8(0x2d6)]??[]],'environment':{..._0x3705bc(_0x3c9974[_0x1c97e8(0x31a)][_0x1c97e8(0x1e4)]),..._0x3705bc(_0x3c9974[_0x1c97e8(0x37c)][_0x1c97e8(0x1e4)])}}];});}function hostedConversationSummary(_0x19a07a,_0x3a2f75){const _0x43aa53=_0x3f3794;return hostedConversationSummarySchema[_0x43aa53(0x310)]({'id':_0x19a07a['id'],'nodeId':_0x19a07a[_0x43aa53(0x2c4)],'sessionId':_0x19a07a[_0x43aa53(0x2bb)],'templateId':_0x19a07a[_0x43aa53(0x2da)],'templateName':_0x19a07a[_0x43aa53(0x373)],'activeVersionId':_0x19a07a[_0x43aa53(0x2a7)],'title':_0x19a07a[_0x43aa53(0x20b)],'titleSource':_0x19a07a[_0x43aa53(0x351)],'pinnedAt':_0x19a07a[_0x43aa53(0x2c6)],'status':_0x19a07a[_0x43aa53(0x32d)],'modelId':_0x19a07a[_0x43aa53(0x25c)],'createdAt':_0x19a07a[_0x43aa53(0x242)],'updatedAt':_0x19a07a[_0x43aa53(0x38c)],'lastActivityAt':_0x19a07a[_0x43aa53(0x252)],..._0x3a2f75===undefined?{}:{'activity':_0x3a2f75}});}function templateSummary(_0x415e70,_0x141404){const _0x18a638=_0x3f3794;return conversationTemplateSummarySchema[_0x18a638(0x310)]({'id':_0x415e70[_0x18a638(0x2da)],'nodeId':_0x415e70[_0x18a638(0x2c4)],'name':_0x415e70[_0x18a638(0x373)],'description':_0x141404[_0x18a638(0x2f0)],'status':_0x415e70[_0x18a638(0x1ee)]?_0x18a638(0x2a8):_0x18a638(0x2b6),'currentVersionId':_0x415e70[_0x18a638(0x2a7)],'available':!_0x415e70[_0x18a638(0x1ee)],'createdAt':_0x415e70[_0x18a638(0x242)],'updatedAt':_0x141404[_0x18a638(0x38c)]});}function modelSummary(_0x207ada,_0x2f56a8){const _0x1adcaa=_0x3f3794;return{'id':_0x207ada['id'],'name':_0x207ada[_0x1adcaa(0x255)],'protocol':_0x207ada[_0x1adcaa(0x31d)],'baseUrl':_0x207ada[_0x1adcaa(0x26b)],'modelId':_0x207ada[_0x1adcaa(0x25c)],'contextWindowTokens':_0x207ada[_0x1adcaa(0x305)],'maxOutputTokens':_0x207ada[_0x1adcaa(0x236)],'inputCapabilities':_0x207ada[_0x1adcaa(0x1fa)],'outputCapabilities':_0x207ada[_0x1adcaa(0x2ac)],'reasoningEfforts':_0x207ada[_0x1adcaa(0x2b9)],'defaultReasoningEffort':resolveMarAgentDefaultReasoningEffort(_0x207ada[_0x1adcaa(0x2ee)],_0x207ada[_0x1adcaa(0x2b9)]),'titleGeneration':_0x207ada[_0x1adcaa(0x2aa)],'hostedWebSearch':_0x207ada[_0x1adcaa(0x1cc)],..._0x207ada[_0x1adcaa(0x232)]===undefined?{}:{'responsesTransport':_0x207ada[_0x1adcaa(0x232)]},'responsesPreviousResponseId':_0x207ada[_0x1adcaa(0x1d5)],'enabled':_0x207ada[_0x1adcaa(0x225)],'sortOrder':_0x2f56a8,'apiKeyConfigured':!![]};}function systemInstruction(_0x34d710,_0x5cd9e8){const _0x5abd61=_0x3f3794,_0x386e8=_0x34d710[_0x5abd61(0x32b)],_0x384525=_0x386e8[_0x5abd61(0x27c)]===_0x5abd61(0x361)?_0x5abd61(0x1e6):_0x5abd61(0x31c);return[_0x5abd61(0x28a),_0x5abd61(0x254),_0x5abd61(0x2dc),_0x5abd61(0x336),_0x5abd61(0x315),_0x5abd61(0x318),_0x5abd61(0x30c),_0x5abd61(0x1f8),_0x5abd61(0x35e),_0x5abd61(0x25e),_0x5abd61(0x33a),_0x5abd61(0x230),_0x5abd61(0x2d4),..._0x5cd9e8===undefined?[]:[_0x5abd61(0x217)+_0x5cd9e8+_0x5abd61(0x371),_0x5abd61(0x2e1)+_0x5cd9e8+_0x5abd61(0x1e7)+_0x5cd9e8+_0x5abd61(0x1d4)],..._0x34d710[_0x5abd61(0x2ca)]===undefined?[]:[_0x5abd61(0x285)+_0x34d710[_0x5abd61(0x2ca)]+_0x5abd61(0x1e1)+join(_0x34d710[_0x5abd61(0x2ca)],_0x5abd61(0x35a))+_0x5abd61(0x350)+join(_0x34d710[_0x5abd61(0x2ca)],_0x5abd61(0x212))+_0x5abd61(0x23e)],_0x5abd61(0x293),_0x384525][_0x5abd61(0x1da)]('\x0a');}function attachmentPrompt(_0x242626,_0x1be626){const _0x5efda4=_0x3f3794;if(_0x1be626[_0x5efda4(0x308)]===-0x1*-0x2671+-0x1*-0x128e+-0x38ff)return _0x242626;const _0x467a44=_0x1be626[_0x5efda4(0x300)](_0x25619c=>_0x5efda4(0x23c)+_0x25619c[_0x5efda4(0x20f)])[_0x5efda4(0x1da)]('\x0a');return''+_0x242626+(_0x242626[_0x5efda4(0x2ed)]()[_0x5efda4(0x308)]===0x1*0x2dc+0x1ed5+-0x23f*0xf?'':'\x0a\x0a')+_0x5efda4(0x264)+_0x467a44;}function automaticHostedConversationTitle(_0x4fcbe3){const _0x5bcbb2=_0x3f3794;if(_0x4fcbe3===undefined)return undefined;const _0xeda837=sessionTitleFromFirstMessage(_0x4fcbe3);if(_0xeda837[_0x5bcbb2(0x308)]===-0x1b7+-0x26db+0x2892*0x1||/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x5bcbb2(0x31b)](_0xeda837))return undefined;return _0xeda837;}function terminalHostedTurnStatus(_0x2b1135){const _0x1d69ba=_0x3f3794;return _0x2b1135===_0x1d69ba(0x28e)||_0x2b1135===_0x1d69ba(0x36f)||_0x2b1135===_0x1d69ba(0x30b)||_0x2b1135===_0x1d69ba(0x311)||_0x2b1135===_0x1d69ba(0x270);}function runFromMessage(_0x578108){const _0x3157d9=_0x3f3794;return{'id':_0x578108[_0x3157d9(0x1f3)],'status':_0x578108[_0x3157d9(0x32d)],'startedAt':_0x578108[_0x3157d9(0x242)],'completedAt':_0x578108[_0x3157d9(0x32d)]===_0x3157d9(0x2fd)?null:_0x578108[_0x3157d9(0x38c)]};}function runInterruptionKey(_0x4cc6d8,_0x2d8a5e){return _0x4cc6d8+'\x00'+_0x2d8a5e;}function uploadProjection(_0x31d818){const _0x1c768b=_0x3f3794;return{'uploadId':_0x31d818[_0x1c768b(0x1d9)],'conversationId':_0x31d818[_0x1c768b(0x2f6)],'name':_0x31d818[_0x1c768b(0x255)],'mimeType':_0x31d818[_0x1c768b(0x312)],'receivedBytes':_0x31d818[_0x1c768b(0x301)],'size':_0x31d818[_0x1c768b(0x386)],'status':_0x31d818[_0x1c768b(0x32d)],..._0x31d818[_0x1c768b(0x26c)]===undefined?{}:{'file':_0x31d818[_0x1c768b(0x26c)]}};}async function assertRegularFile(_0x5b7468,_0x35801e){const _0x4d6215=_0x3f3794,_0x3abfca=await regularFileMetadata(_0x5b7468);if(_0x3abfca[_0x4d6215(0x386)]!==_0x35801e)throw new Error(_0x4d6215(0x2b8));}async function openRegularFile(_0x11a8f7){const _0x4cf563=_0x3f3794;return open(_0x11a8f7,constants[_0x4cf563(0x2d2)]|constants[_0x4cf563(0x356)])[_0x4cf563(0x278)](()=>{const _0x37962d=_0x4cf563;throw new Error(_0x37962d(0x2b8));});}async function regularFileMetadata(_0x927c5d){const _0x354821=_0x3f3794,_0x5cc3aa=await lstat(_0x927c5d)[_0x354821(0x278)](()=>{const _0x231c0a=_0x354821;throw new Error(_0x231c0a(0x2b8));});return assertRegularFileMetadata(_0x5cc3aa),_0x5cc3aa;}function assertRegularFileMetadata(_0x186e8a){const _0x569b2d=_0x3f3794;if(!_0x186e8a[_0x569b2d(0x294)]()||_0x186e8a[_0x569b2d(0x2c9)]()||_0x186e8a[_0x569b2d(0x24b)]!==-0xb82+0x92*-0x35+0x29bd||!Number[_0x569b2d(0x20e)](_0x186e8a[_0x569b2d(0x386)])||_0x186e8a[_0x569b2d(0x386)]<0x147*-0xb+0x151*-0xf+-0x135*-0x1c)throw new Error(_0x569b2d(0x2b8));}function sameFileIdentity(_0x5e4a4e,_0xac6cfa){const _0xc8302a=_0x3f3794;return _0x5e4a4e[_0xc8302a(0x334)]===_0xac6cfa[_0xc8302a(0x334)]&&_0x5e4a4e[_0xc8302a(0x203)]===_0xac6cfa[_0xc8302a(0x203)];}function sameFileSnapshot(_0x1d7869,_0x59d12a){const _0x26798a=_0x3f3794;return sameFileIdentity(_0x1d7869,_0x59d12a)&&_0x1d7869[_0x26798a(0x24b)]===_0x59d12a[_0x26798a(0x24b)]&&_0x1d7869[_0x26798a(0x386)]===_0x59d12a[_0x26798a(0x386)]&&_0x1d7869[_0x26798a(0x2de)]===_0x59d12a[_0x26798a(0x2de)]&&_0x1d7869[_0x26798a(0x2b1)]===_0x59d12a[_0x26798a(0x2b1)];}function safeFileTimestamp(_0x50fc61){const _0x43c06c=_0x3f3794;if(!Number[_0x43c06c(0x22a)](_0x50fc61)||_0x50fc61<0x2c8+-0x66*0x4c+0x1b80)return-0xfb0+0xf80*0x1+0x3*0x10;return Math[_0x43c06c(0x359)](Number[_0x43c06c(0x384)],Math[_0x43c06c(0x275)](_0x50fc61));}async function assertUploadTemporaryFile(_0x546e7a,_0x4661a9){const _0x203e79=_0x3f3794,_0x59b492=await lstat(_0x546e7a)[_0x203e79(0x278)](()=>{const _0x1b6100=_0x203e79;throw new Error(_0x1b6100(0x200));});if(!_0x59b492[_0x203e79(0x294)]()||_0x59b492[_0x203e79(0x2c9)]()||_0x59b492[_0x203e79(0x24b)]!==-0x13*0x71+0x77*-0x1b+0x14f1||_0x59b492[_0x203e79(0x386)]!==_0x4661a9)throw new Error(_0x203e79(0x200));}function record(_0x3b4ff0){const _0x3457b6=_0x3f3794;return typeof _0x3b4ff0===_0x3457b6(0x2cb)&&_0x3b4ff0!==null&&!Array[_0x3457b6(0x26a)](_0x3b4ff0);}