univer-cli 0.1.20 → 0.1.21

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
  #!/usr/bin/env node
2
- const _0x21fce3=_0xb5b9;(function(_0xf3e9bb,_0x3eff87){const _0x393ff6=_0xb5b9,_0x21e51f=_0xf3e9bb();while(!![]){try{const _0xf6be06=-parseInt(_0x393ff6(0x8b))/0x1*(-parseInt(_0x393ff6(0xab))/0x2)+-parseInt(_0x393ff6(0x95))/0x3*(parseInt(_0x393ff6(0x7b))/0x4)+-parseInt(_0x393ff6(0x7f))/0x5+parseInt(_0x393ff6(0xbb))/0x6*(-parseInt(_0x393ff6(0x85))/0x7)+parseInt(_0x393ff6(0xdb))/0x8*(-parseInt(_0x393ff6(0x84))/0x9)+-parseInt(_0x393ff6(0x74))/0xa+parseInt(_0x393ff6(0x71))/0xb;if(_0xf6be06===_0x3eff87)break;else _0x21e51f['push'](_0x21e51f['shift']());}catch(_0x4f30db){_0x21e51f['push'](_0x21e51f['shift']());}}}(_0x163b,0xcaa83));import'../chunks/vendor-CgwrUUL6.js';import{a as _0x480107,i as _0x32520a,n,o as _0x4e18b0,r as _0x27739c,t as _0x3d0697}from'../chunks/trace-DPfd8LdJ.js';function _0xb5b9(_0x424d11,_0x3af82f){_0x424d11=_0x424d11-0x6f;const _0x163b84=_0x163b();let _0xb5b923=_0x163b84[_0x424d11];return _0xb5b923;}import{a as _0x12a98e,d as _0x11455c,l as _0x1e6d20,m as _0x554f5d,n as _0x24f41e,u as _0x2c2b80}from'../chunks/node-BLWTwYLW.js';import{t as _0x51f720}from'../chunks/build-id-Coc3wh1M.js';import{n as _0x700ba8}from'../chunks/runtime-manifest-D6bFR_JZ.js';import{existsSync as _0x99cd7d}from'node:fs';import{chmod as _0x84db68,mkdir as _0x41098f,readFile as _0x308881,rm as _0x3fa34c,writeFile as _0x59dc96}from'node:fs/promises';import _0x355933 from'node:net';function _0x163b(){const _0x5ec312=['cwd','logRequestEvent','runtimeExecutionPlaneEntry','traceparent','getSessionCount','UNIVER_DISTRIBUTION_CHANNEL','2.0','slice','mutates','info','exit','loadWorkbookDataReplayPack','packageIdentity','unloadIdleSessions','createConnection','74zJuYdV','params','sizeBytes','flush','name','Daemon\x20handler\x20not\x20ready:\x20','Method\x20not\x20found:\x20','DaemonStart','max','Runtime','server','UNIVER_CLI_VERSION','lockPath','format','durationMs','catch','2850jpUpTn','runtimeRoot','DaemonRpcError','length','maxCodeLength','withContext','message','indexOf','EEXIST','sigint','SessionExportWorkbookFile','once','univer-daemon','trim','SessionGetWorkbook','end','sessionId','lastAccessedAt','Health','current','exportWorkbookFile','toISOString','SessionDispose','modulePath','sessionHost','env','listen','argv','timestamp','now','dispose','DaemonRpcFinish','2148456ftzTux','homeDir','parse','evalJs','socketPath','method','Another\x20daemon\x20startup\x20owns\x20','value','pid','baseWorkbookData','outputPath','event','Daemon','createWorkbook','Shutdown','toString','55247995qHrTBL','stringify','utf8','812380dXMhHq','getSessionIdleTtlMs','eventName','finally','daemonDir','exportWorkbookData','absolutePath','20durLLT','createServer','createdAt','SessionEvalJs','4015800pqECDo','rpc-shutdown','UNIVER_CLI_BUILD_ID','destroyAll','error','45lgQjqn','20062mgIEco','session','loadWorkbookData','metaPath','getSession','workbookData','21383dkkYea','meta','code','data','serve','local','SessionExportWorkbookData','resolveIdentity','connect','buildId','837060KPutOb','pidPath','SessionLoadWorkbook','SessionCreateWorkbook','mutations','startedAt','close'];_0x163b=function(){return _0x5ec312;};return _0x163b();}import _0x2dd966 from'node:process';var S=0x2bf20,C=new _0x24f41e();async function w(_0x50e9d8={}){const _0x45a361=_0xb5b9;let _0x36f3ed=_0x50e9d8[_0x45a361(0xd4)]??_0x2dd966[_0x45a361(0xd4)],_0x52e6d8=_0x2c2b80(_0x36f3ed),_0x354590=_0x700ba8(_0x36f3ed),_0x35c4b3=_0x50e9d8[_0x45a361(0xd3)]??D(new _0x12a98e({'env':_0x36f3ed,'logger':_0x11455c({'env':_0x36f3ed,'role':_0x480107[_0x45a361(0xb4)]}),'resolveExecutionPlaneOptions':()=>({'execArgv':[..._0x354590[_0x45a361(0x9e)]['execArgv']],'modulePath':_0x354590[_0x45a361(0x9e)][_0x45a361(0xd2)]}),'rpcTimeoutMs':S})),_0x591ff0=_0x51f720(_0x36f3ed),_0xb5a0da=new Date()['toISOString']();if(await _0x41098f(_0x52e6d8[_0x45a361(0x78)],{'recursive':!0x0,'mode':0x1c0}),await _0x41098f(_0x52e6d8['sessionRoot'],{'recursive':!0x0,'mode':0x1c0}),!await N(_0x52e6d8[_0x45a361(0xb7)],_0x52e6d8[_0x45a361(0x96)])){if(await P(_0x52e6d8[_0x45a361(0xdf)]))return;throw Error(_0x45a361(0xe1)+_0x52e6d8['lockPath']);}await M(_0x52e6d8);let _0x42baec=_0x11455c({'env':_0x36f3ed,'role':_0x480107[_0x45a361(0xe7)]}),_0x152f54=A({'buildId':_0x591ff0,'env':_0x36f3ed,'pid':_0x2dd966[_0x45a361(0xe3)]}),_0x558025=!0x1,_0x5ae851={},_0x3dc853=async _0x1107a1=>B(null,-0x7f5b,Error(_0x45a361(0xb0)+_0x1107a1)),_0x4e197b=_0x355933[_0x45a361(0x7c)](_0x1dc2ea=>{const _0x4e0b54=_0x45a361;let _0xc1b869='';_0x1dc2ea['on'](_0x4e0b54(0x8e),_0x1185dd=>{const _0x17f0b1=_0x4e0b54;_0xc1b869+=_0x1185dd[_0x17f0b1(0x70)](_0x17f0b1(0x73)),_0x14859f();}),_0x1dc2ea['on'](_0x4e0b54(0x83),()=>void 0x0);let _0x14859f=async()=>{const _0x10e304=_0x4e0b54;for(;;){let _0xd83980=_0xc1b869[_0x10e304(0xc2)]('\x0a');if(_0xd83980<0x0)return;let _0x366924=_0xc1b869[_0x10e304(0xa3)](0x0,_0xd83980)['trim']();if(_0xc1b869=_0xc1b869[_0x10e304(0xa3)](_0xd83980+0x1),!_0x366924)continue;let _0x220efb=await _0x3dc853(_0x366924);_0x1dc2ea['write'](JSON[_0x10e304(0x72)](_0x220efb)+'\x0a');}};});_0x3dc853=T({'buildId':_0x591ff0,'logRequestEvent':async _0x504106=>{const _0xc1cd63=_0x45a361;_0x42baec[_0xc1cd63(0xe6)]({'level':_0x504106[_0xc1cd63(0x76)]===_0x32520a[_0xc1cd63(0xbd)]?_0xc1cd63(0x83):_0xc1cd63(0xa5),'event_name':_0x504106[_0xc1cd63(0x76)],'component':_0x27739c[_0xc1cd63(0xe7)],'process_role':_0x480107[_0xc1cd63(0xe7)],..._0x504106['error']===void 0x0?{}:{'error':_0x504106[_0xc1cd63(0x83)]},'fields':{..._0x152f54,..._0x504106[_0xc1cd63(0xb9)]===void 0x0?{}:{'duration_ms':_0x504106[_0xc1cd63(0xb9)]},'method':_0x504106[_0xc1cd63(0xe0)],'timestamp':_0x504106['timestamp']}});},'logRequestError':async _0x18ddc=>{const _0x48c9a7=_0x45a361;_0x42baec[_0x48c9a7(0x83)]({'event_name':_0x32520a[_0x48c9a7(0xbd)],'component':_0x27739c[_0x48c9a7(0xe7)],'process_role':_0x480107[_0x48c9a7(0xe7)],'error':_0x18ddc[_0x48c9a7(0x83)],'fields':{..._0x152f54,'method':_0x18ddc[_0x48c9a7(0xe0)],'timestamp':_0x18ddc[_0x48c9a7(0xd7)]}});},'onShutdownRequest':()=>{const _0x5740af=_0x45a361;_0x3afd4a(_0x5740af(0x80))[_0x5740af(0x77)](()=>{_0x2dd966['exit'](0x0);});},'pid':_0x2dd966[_0x45a361(0xe3)],'runtimeRoot':_0x52e6d8[_0x45a361(0xdc)],'sessionHost':_0x35c4b3,'socketPath':_0x52e6d8['socketPath'],'startedAt':_0xb5a0da}),await new Promise((_0x37d517,_0xddcc78)=>{const _0x4bc449=_0x45a361;_0x4e197b[_0x4bc449(0xc6)](_0x4bc449(0x83),_0xddcc78),_0x4e197b[_0x4bc449(0xd5)](_0x52e6d8[_0x4bc449(0xdf)],_0x37d517);}),_0x1e6d20(_0x52e6d8['socketPath'])||await _0x84db68(_0x52e6d8['socketPath'],0x180);let _0x1f2ae9={'pid':_0x2dd966[_0x45a361(0xe3)],'startedAt':_0xb5a0da,'socketPath':_0x52e6d8['socketPath'],'runtimeRoot':_0x52e6d8['homeDir'],'buildId':_0x591ff0};await _0x59dc96(_0x52e6d8[_0x45a361(0x96)],String(_0x2dd966['pid']),_0x45a361(0x73)),await _0x59dc96(_0x52e6d8[_0x45a361(0x88)],JSON['stringify'](_0x1f2ae9,null,0x2),_0x45a361(0x73)),_0x42baec[_0x45a361(0xa5)]({'event_name':_0x32520a[_0x45a361(0xb2)],'component':_0x27739c[_0x45a361(0xe7)],'process_role':_0x480107['Daemon'],'fields':{..._0x152f54,'pid':_0x2dd966[_0x45a361(0xe3)],'runtime_root':_0x52e6d8[_0x45a361(0xdc)],'socket_path':_0x52e6d8[_0x45a361(0xdf)],'started_at':_0xb5a0da}}),await _0x42baec['flush']();let _0x162ca9=setInterval(()=>{const _0x518560=_0x45a361;_0x35c4b3[_0x518560(0xa9)]();},Math[_0x45a361(0xb3)](0x3e8,Math['min'](_0x35c4b3[_0x45a361(0x75)](),0xea60)));_0x162ca9['unref'](),_0x5ae851['current']=_0x162ca9;async function _0x3afd4a(_0x392405){const _0x3a9df1=_0x45a361;_0x558025||(_0x558025=!0x0,_0x5ae851['current']!==void 0x0&&clearInterval(_0x5ae851[_0x3a9df1(0xce)]),_0x42baec[_0x3a9df1(0xa5)]({'event_name':_0x32520a['DaemonStop'],'component':_0x27739c[_0x3a9df1(0xe7)],'process_role':_0x480107[_0x3a9df1(0xe7)],'fields':{..._0x152f54,'pid':_0x2dd966['pid'],'reason':_0x392405,'timestamp':new Date()[_0x3a9df1(0xd0)]()}}),await _0x42baec[_0x3a9df1(0xae)](),await _0x35c4b3['destroyAll'](_0x392405),await new Promise(_0xa4150a=>{const _0x1b9d52=_0x3a9df1;_0x4e197b[_0x1b9d52(0x9b)](()=>_0xa4150a());}),await I(_0x52e6d8['socketPath']),await _0x3fa34c(_0x52e6d8[_0x3a9df1(0x96)],{'force':!0x0})[_0x3a9df1(0xba)](()=>void 0x0),await _0x3fa34c(_0x52e6d8[_0x3a9df1(0x88)],{'force':!0x0})[_0x3a9df1(0xba)](()=>void 0x0),await _0x3fa34c(_0x52e6d8['lockPath'],{'recursive':!0x0,'force':!0x0})[_0x3a9df1(0xba)](()=>void 0x0));}_0x2dd966['on']('SIGINT',()=>{const _0xed15f6=_0x45a361;_0x3afd4a(_0xed15f6(0xc4))['finally'](()=>{const _0x2b835b=_0xed15f6;_0x2dd966[_0x2b835b(0xa6)](0x0);});}),_0x2dd966['on']('SIGTERM',()=>{_0x3afd4a('sigterm')['finally'](()=>{const _0x14585b=_0xb5b9;_0x2dd966[_0x14585b(0xa6)](0x0);});});}function T(_0xb17981){return async _0x21f228=>{const _0x18fdd4=_0xb5b9;let _0x1c51ae;try{_0x1c51ae=JSON[_0x18fdd4(0xdd)](_0x21f228);}catch(_0x4b3012){return B(null,-0x7fbc,_0x4b3012);}let _0x24feb2=_0x3d0697(_0x1c51ae[_0x18fdd4(0x8c)]?.[_0x18fdd4(0x9f)]),_0x48221f=async()=>await n['withSpan']({'name':_0x4e18b0['DaemonRpcServer'],'kind':_0x18fdd4(0xb5)},async()=>{const _0x3cc0f8=_0x18fdd4;let _0x4803c0=Date['now']();await _0xb17981[_0x3cc0f8(0x9d)]?.({'eventName':_0x32520a['DaemonRpcStart'],'method':_0x1c51ae['method'],'timestamp':new Date()[_0x3cc0f8(0xd0)]()});try{let _0xa3fa1e=await E(_0x1c51ae,_0xb17981);return await _0xb17981[_0x3cc0f8(0x9d)]?.({'durationMs':Date['now']()-_0x4803c0,'eventName':_0x32520a[_0x3cc0f8(0xda)],'method':_0x1c51ae[_0x3cc0f8(0xe0)],'timestamp':new Date()[_0x3cc0f8(0xd0)]()}),_0xa3fa1e;}catch(_0x5c0484){return await _0xb17981[_0x3cc0f8(0x9d)]?.({'durationMs':Date[_0x3cc0f8(0xd8)]()-_0x4803c0,'eventName':_0x32520a['DaemonRpcError'],'method':_0x1c51ae[_0x3cc0f8(0xe0)],'error':_0x5c0484,'timestamp':new Date()[_0x3cc0f8(0xd0)]()}),_0xb17981[_0x3cc0f8(0x9d)]===void 0x0&&await _0xb17981['logRequestError']?.({'method':_0x1c51ae[_0x3cc0f8(0xe0)],'error':_0x5c0484 instanceof Error?_0x5c0484[_0x3cc0f8(0xc1)]:String(_0x5c0484),'timestamp':new Date()[_0x3cc0f8(0xd0)]()}),B(_0x1c51ae['id'],-0x7f5b,_0x5c0484);}});return _0x24feb2===void 0x0?await _0x48221f():await n[_0x18fdd4(0xc0)](_0x24feb2,_0x48221f);};}async function E(_0x537682,_0x5a8154){const _0x300653=_0xb5b9;switch(_0x537682[_0x300653(0xe0)]){case _0x554f5d[_0x300653(0xcd)]:return{'jsonrpc':'2.0','id':_0x537682['id'],'result':{'ok':!0x0,'pid':_0x5a8154['pid'],'startedAt':_0x5a8154[_0x300653(0x9a)],'socketPath':_0x5a8154[_0x300653(0xdf)],'runtimeRoot':_0x5a8154[_0x300653(0xbc)],'buildId':_0x5a8154[_0x300653(0x94)],'sessionCount':_0x5a8154['sessionHost'][_0x300653(0xa0)]()}};case _0x554f5d[_0x300653(0x6f)]:return _0x5a8154['onShutdownRequest']?.(),{'jsonrpc':_0x300653(0xa2),'id':_0x537682['id'],'result':{'stopping':!0x0}};case _0x554f5d[_0x300653(0x97)]:{let _0x2f7ad3=await _0x5a8154['sessionHost']['loadWorkbook'](_0x537682[_0x300653(0xac)]);return z(_0x537682['id'],_0x2f7ad3);}case _0x554f5d['SessionLoadWorkbookDataReplayPack']:{let _0x202394=await _0x5a8154[_0x300653(0xd3)][_0x300653(0xa7)](_0x537682[_0x300653(0xac)]);return z(_0x537682['id'],_0x202394);}case _0x554f5d[_0x300653(0x98)]:{let _0x771152=await _0x5a8154[_0x300653(0xd3)]['createWorkbook'](_0x537682[_0x300653(0xac)]);return z(_0x537682['id'],_0x771152);}case _0x554f5d[_0x300653(0x7e)]:{let _0x1b935f=await _0x5a8154[_0x300653(0xd3)][_0x300653(0xde)](_0x537682[_0x300653(0xac)]);return z(_0x537682['id'],_0x1b935f);}case _0x554f5d[_0x300653(0xc5)]:{let _0x308691=await _0x5a8154[_0x300653(0xd3)][_0x300653(0xcf)](_0x537682['params']);return z(_0x537682['id'],_0x308691);}case _0x554f5d[_0x300653(0x91)]:{let _0x76bd1c=_0x537682[_0x300653(0xac)],_0x33c826=await _0x5a8154[_0x300653(0xd3)]['exportWorkbookData'](_0x76bd1c);return z(_0x537682['id'],_0x33c826);}case _0x554f5d[_0x300653(0xd1)]:{let _0x28a204=await _0x5a8154[_0x300653(0xd3)][_0x300653(0xd9)](_0x537682[_0x300653(0xac)]);return z(_0x537682['id'],_0x28a204);}case _0x554f5d[_0x300653(0xc9)]:{let _0x3a02fa=await _0x5a8154[_0x300653(0xd3)]['getWorkbookSession'](_0x537682['params']);return z(_0x537682['id'],_0x3a02fa);}default:return B(_0x537682['id'],-0x7f59,Error(_0x300653(0xb1)+_0x537682['method']));}}function D(_0x56eab4){return{async 'createWorkbook'(_0xdc00d9){const _0x131f39=_0xb5b9;let _0x5cb899=await O(_0xdc00d9),_0xa04b87=await _0x56eab4[_0x131f39(0xe8)]({..._0xdc00d9[_0x131f39(0x9c)]===void 0x0?{}:{'cwd':_0xdc00d9[_0x131f39(0x9c)]},'identity':_0x5cb899,..._0xdc00d9['id']===void 0x0?{}:{'workbookId':_0xdc00d9['id']},..._0xdc00d9[_0x131f39(0xaf)]===void 0x0?{}:{'workbookName':_0xdc00d9['name']}});return{'success':!0x0,'workbookData':_0xa04b87[_0x131f39(0x8a)],'session':k(_0xa04b87[_0x131f39(0x86)])};},async 'dispose'(_0x3a738a){const _0x452798=_0xb5b9;let _0x34d821=await O(_0x3a738a);return await _0x56eab4[_0x452798(0xd9)]({..._0x3a738a[_0x452798(0x9c)]===void 0x0?{}:{'cwd':_0x3a738a[_0x452798(0x9c)]},'identity':_0x34d821}),{'disposed':!0x0,'workbookIdentity':_0x34d821[_0x452798(0x7a)]};},async 'destroyAll'(_0x35721d){const _0x442623=_0xb5b9;await _0x56eab4[_0x442623(0x82)]?.(_0x35721d);},async 'evalJs'(_0xb48a7f){const _0x30f58a=_0xb5b9;let _0x414459=await O(_0xb48a7f),_0x4f8829=await _0x56eab4[_0x30f58a(0xde)]({'code':_0xb48a7f[_0x30f58a(0x8d)],..._0xb48a7f[_0x30f58a(0x9c)]===void 0x0?{}:{'cwd':_0xb48a7f['cwd']},'identity':_0x414459,..._0xb48a7f[_0x30f58a(0xbf)]===void 0x0?{}:{'maxCodeLength':_0xb48a7f['maxCodeLength']},..._0xb48a7f[_0x30f58a(0xa4)]===void 0x0?{}:{'mutates':_0xb48a7f[_0x30f58a(0xa4)]}});return{..._0x4f8829[_0x30f58a(0x99)]===void 0x0?{}:{'mutations':_0x4f8829['mutations']},'success':!0x0,'value':_0x4f8829[_0x30f58a(0xe2)],'session':k(_0x4f8829['session'])};},async 'exportWorkbookData'(_0x3a8d3a){const _0x32dfe4=_0xb5b9;let _0x48a54b=await O(_0x3a8d3a),_0x225cdc=await _0x56eab4[_0x32dfe4(0x79)]({..._0x3a8d3a[_0x32dfe4(0x9c)]===void 0x0?{}:{'cwd':_0x3a8d3a[_0x32dfe4(0x9c)]},'identity':_0x48a54b});return{'success':!0x0,'workbookData':_0x225cdc[_0x32dfe4(0x8a)],'session':k(_0x225cdc[_0x32dfe4(0x86)])};},async 'exportWorkbookFile'(_0x3cf369){const _0x14af84=_0xb5b9;let _0x3f3026=await O(_0x3cf369),_0x4879c1=await _0x56eab4[_0x14af84(0xcf)]({..._0x3cf369[_0x14af84(0x9c)]===void 0x0?{}:{'cwd':_0x3cf369[_0x14af84(0x9c)]},'format':_0x3cf369[_0x14af84(0xb8)],'identity':_0x3f3026,'outputPath':_0x3cf369[_0x14af84(0xe5)]});return{'success':!0x0,'format':_0x4879c1[_0x14af84(0xb8)],'outputPath':_0x4879c1[_0x14af84(0xe5)],'sizeBytes':_0x4879c1[_0x14af84(0xad)],'session':k(_0x4879c1[_0x14af84(0x86)])};},async 'getWorkbookSession'(_0x5a8931){const _0x3792f2=_0xb5b9;let _0x6de9d6=await O(_0x5a8931),_0x3dfe98=await _0x56eab4[_0x3792f2(0x89)]({..._0x5a8931[_0x3792f2(0x9c)]===void 0x0?{}:{'cwd':_0x5a8931[_0x3792f2(0x9c)]},'identity':_0x6de9d6});return{'exists':_0x3dfe98!==null,'session':_0x3dfe98===null?null:k(_0x3dfe98)};},'getSessionCount'(){const _0x2ab827=_0xb5b9;return _0x56eab4[_0x2ab827(0xa0)]?.()??0x0;},'getSessionIdleTtlMs'(){const _0x5db205=_0xb5b9;return _0x56eab4[_0x5db205(0x75)]?.()??0xea60;},async 'loadWorkbook'(_0x4b4245){const _0x47aeee=_0xb5b9;let _0x27c781=await O(_0x4b4245),_0x4a534a=await _0x56eab4[_0x47aeee(0x87)]({..._0x4b4245[_0x47aeee(0x9c)]===void 0x0?{}:{'cwd':_0x4b4245['cwd']},'identity':_0x27c781,'workbookData':_0x4b4245[_0x47aeee(0x8a)]});return{'success':!0x0,'workbookData':_0x4a534a[_0x47aeee(0x8a)],'session':k(_0x4a534a[_0x47aeee(0x86)])};},async 'loadWorkbookDataReplayPack'(_0xa0896d){const _0x220b0e=_0xb5b9;let _0x2d34cc=await O(_0xa0896d);return{'success':!0x0,'session':k((await _0x56eab4[_0x220b0e(0xa7)]({..._0xa0896d['cwd']===void 0x0?{}:{'cwd':_0xa0896d['cwd']},'identity':_0x2d34cc,'replayPack':{'baseWorkbookData':_0xa0896d[_0x220b0e(0xe4)],'mutations':_0xa0896d[_0x220b0e(0x99)]}}))[_0x220b0e(0x86)])};},async 'unloadIdleSessions'(){const _0x5db0c8=_0xb5b9;await _0x56eab4[_0x5db0c8(0xa9)]?.();}};}async function O(_0x5849eb){const _0x59bc59=_0xb5b9;return await C[_0x59bc59(0x92)](_0x5849eb);}function k(_0x37576c){const _0x34f389=_0xb5b9;return{'createdAt':_0x37576c[_0x34f389(0x7d)]??'','lastAccessedAt':_0x37576c[_0x34f389(0xcc)]??'','sessionId':_0x37576c[_0x34f389(0xcb)],'workbookIdentity':_0x37576c[_0x34f389(0xa8)][_0x34f389(0x7a)]};}function A(_0x476f4a){const _0x40672b=_0xb5b9;return{'build.id':j(_0x476f4a[_0x40672b(0xd4)],_0x40672b(0x81))??_0x476f4a[_0x40672b(0x94)],'deployment.environment.name':_0x40672b(0x90),'distribution.channel':j(_0x476f4a[_0x40672b(0xd4)],_0x40672b(0xa1))??'unknown','service.instance.id':String(_0x476f4a[_0x40672b(0xe3)]),'service.name':_0x40672b(0xc7),...j(_0x476f4a['env'],_0x40672b(0xb6))===void 0x0?{}:{'service.version':j(_0x476f4a['env'],_0x40672b(0xb6))}};}function j(_0x1d4e0e,_0x284386){const _0x24b41c=_0xb5b9;let _0x3c2ed4=_0x1d4e0e[_0x284386]?.[_0x24b41c(0xc8)]();return _0x3c2ed4===void 0x0||_0x3c2ed4[_0x24b41c(0xbe)]===0x0?void 0x0:_0x3c2ed4;}async function M(_0x1b9cf1){const _0x1bc245=_0xb5b9;F(_0x1b9cf1[_0x1bc245(0xdf)])&&!await P(_0x1b9cf1[_0x1bc245(0xdf)])&&await I(_0x1b9cf1[_0x1bc245(0xdf)]);let _0x299e9f=await L(_0x1b9cf1['pidPath']);_0x299e9f!==null&&!R(_0x299e9f)&&(await _0x3fa34c(_0x1b9cf1[_0x1bc245(0x96)],{'force':!0x0})[_0x1bc245(0xba)](()=>void 0x0),await _0x3fa34c(_0x1b9cf1[_0x1bc245(0x88)],{'force':!0x0})[_0x1bc245(0xba)](()=>void 0x0),await _0x3fa34c(_0x1b9cf1['lockPath'],{'recursive':!0x0,'force':!0x0})[_0x1bc245(0xba)](()=>void 0x0));}async function N(_0x1f540e,_0x3381d3){const _0x33693c=_0xb5b9;try{return await _0x41098f(_0x1f540e,{'recursive':!0x1,'mode':0x1c0}),!0x0;}catch(_0x421762){if(_0x421762[_0x33693c(0x8d)]!==_0x33693c(0xc3))throw _0x421762;let _0x457796=await L(_0x3381d3);return _0x457796!==null&&R(_0x457796)?!0x1:(await _0x3fa34c(_0x1f540e,{'recursive':!0x0,'force':!0x0}),await _0x41098f(_0x1f540e,{'recursive':!0x1,'mode':0x1c0}),!0x0);}}async function P(_0x17c816){return await new Promise(_0x444dd7=>{const _0x44c2b4=_0xb5b9;let _0x3fdb20=_0x355933[_0x44c2b4(0xaa)](_0x17c816);_0x3fdb20['once'](_0x44c2b4(0x93),()=>{const _0x234600=_0x44c2b4;_0x3fdb20[_0x234600(0xca)](),_0x444dd7(!0x0);}),_0x3fdb20[_0x44c2b4(0xc6)](_0x44c2b4(0x83),()=>{_0x444dd7(!0x1);});});}function F(_0x2388f6){return _0x1e6d20(_0x2388f6)?!0x1:_0x99cd7d(_0x2388f6);}async function I(_0x25bce1){const _0x33e5b1=_0xb5b9;_0x1e6d20(_0x25bce1)||await _0x3fa34c(_0x25bce1,{'force':!0x0})[_0x33e5b1(0xba)](()=>void 0x0);}async function L(_0x1549ea){const _0x1e51bc=_0xb5b9;try{let _0x5ddd91=await _0x308881(_0x1549ea,_0x1e51bc(0x73)),_0x5d80f9=Number(_0x5ddd91[_0x1e51bc(0xc8)]());return Number['isFinite'](_0x5d80f9)?_0x5d80f9:null;}catch{return null;}}function R(_0x533ad0){try{return _0x2dd966['kill'](_0x533ad0,0x0),!0x0;}catch{return!0x1;}}function z(_0x19d229,_0x527c0e){const _0x5225b4=_0xb5b9;return{'jsonrpc':_0x5225b4(0xa2),'id':_0x19d229,'result':_0x527c0e};}function B(_0x6d09c9,_0x174acc,_0x583722){const _0x299b62=_0xb5b9;return{'jsonrpc':_0x299b62(0xa2),'id':_0x6d09c9,'error':{'code':_0x174acc,'message':_0x583722 instanceof Error?_0x583722[_0x299b62(0xc1)]:String(_0x583722)}};}var V=process[_0x21fce3(0xd6)][0x2]??'serve';V!==_0x21fce3(0x8f)&&(console[_0x21fce3(0x83)]('Unknown\x20daemon\x20subcommand:\x20'+V),process[_0x21fce3(0xa6)](0x1)),w()['catch'](_0x2eb9af=>{const _0x354dd8=_0x21fce3;console[_0x354dd8(0x83)](_0x2eb9af instanceof Error?_0x2eb9af[_0x354dd8(0xc1)]:String(_0x2eb9af)),process[_0x354dd8(0xa6)](0x1);});
2
+ const _0x5edbb3=_0x522f;(function(_0x225bc7,_0x329a7a){const _0x5db977=_0x522f,_0x40b772=_0x225bc7();while(!![]){try{const _0x3b36d4=-parseInt(_0x5db977(0x1bc))/0x1+-parseInt(_0x5db977(0x1b7))/0x2*(parseInt(_0x5db977(0x1b5))/0x3)+parseInt(_0x5db977(0x1de))/0x4*(-parseInt(_0x5db977(0x182))/0x5)+parseInt(_0x5db977(0x1df))/0x6*(parseInt(_0x5db977(0x1af))/0x7)+parseInt(_0x5db977(0x183))/0x8+-parseInt(_0x5db977(0x1aa))/0x9*(-parseInt(_0x5db977(0x1d0))/0xa)+parseInt(_0x5db977(0x1a0))/0xb;if(_0x3b36d4===_0x329a7a)break;else _0x40b772['push'](_0x40b772['shift']());}catch(_0x1fc4fb){_0x40b772['push'](_0x40b772['shift']());}}}(_0x54ab,0x92562));import'../chunks/vendor-CgwrUUL6.js';import{a as _0x22a53c,i as _0x2ec8e7,n,o as _0x2c5559,r as _0x29d028,t as _0x170228}from'../chunks/trace-DPfd8LdJ.js';import{a as _0xaa1e88,d as _0x51a5d6,l as _0x54f159,m as _0x36661e,n as _0x35abd5,u as _0x441eff}from'../chunks/node-BLWTwYLW.js';import{t as _0x3ecf78}from'../chunks/build-id-Coc3wh1M.js';import{n as _0x36cb4a}from'../chunks/runtime-manifest-D6bFR_JZ.js';import{existsSync as _0x2e3d21}from'node:fs';import{chmod as _0x3a835a,mkdir as _0x4d8552,readFile as _0x452bdf,rm as _0x274234,writeFile as _0x38d2a3}from'node:fs/promises';import _0x55126e from'node:net';import _0x22fb08 from'node:process';var S=0x2bf20,C=new _0x35abd5();async function w(_0x40d97a={}){const _0xb140a3=_0x522f;let _0x5cf37c=_0x40d97a['env']??_0x22fb08['env'],_0x17911a=_0x441eff(_0x5cf37c),_0x24c904=_0x36cb4a(_0x5cf37c),_0x20eed6=_0x40d97a['sessionHost']??D(new _0xaa1e88({'env':_0x5cf37c,'logger':_0x51a5d6({'env':_0x5cf37c,'role':_0x22a53c[_0xb140a3(0x18c)]}),'resolveExecutionPlaneOptions':()=>({'execArgv':[..._0x24c904[_0xb140a3(0x1b6)][_0xb140a3(0x181)]],'modulePath':_0x24c904[_0xb140a3(0x1b6)]['modulePath']}),'rpcTimeoutMs':S})),_0x32d1dd=_0x3ecf78(_0x5cf37c),_0x5c7f14=new Date()[_0xb140a3(0x19d)]();if(await _0x4d8552(_0x17911a['daemonDir'],{'recursive':!0x0,'mode':0x1c0}),await _0x4d8552(_0x17911a[_0xb140a3(0x17e)],{'recursive':!0x0,'mode':0x1c0}),!await N(_0x17911a[_0xb140a3(0x172)],_0x17911a[_0xb140a3(0x16a)])){if(await P(_0x17911a[_0xb140a3(0x17a)]))return;throw Error(_0xb140a3(0x176)+_0x17911a['lockPath']);}await M(_0x17911a);let _0x59badc=_0x51a5d6({'env':_0x5cf37c,'role':_0x22a53c[_0xb140a3(0x177)]}),_0x1cade9=A({'buildId':_0x32d1dd,'env':_0x5cf37c,'pid':_0x22fb08[_0xb140a3(0x1c7)]}),_0x58575a=!0x1,_0x42a967={},_0x6417dc=async _0x49c408=>B(null,-0x7f5b,Error('Daemon\x20handler\x20not\x20ready:\x20'+_0x49c408)),_0x2d7c4f=_0x55126e[_0xb140a3(0x17c)](_0x3373d2=>{const _0x5e41b7=_0xb140a3;let _0x5bcd92='';_0x3373d2['on'](_0x5e41b7(0x1d4),_0x305da4=>{const _0x24771e=_0x5e41b7;_0x5bcd92+=_0x305da4[_0x24771e(0x18a)](_0x24771e(0x191)),_0x4f2acf();}),_0x3373d2['on'](_0x5e41b7(0x1cb),()=>void 0x0);let _0x4f2acf=async()=>{const _0x4df4dd=_0x5e41b7;for(;;){let _0x5cb888=_0x5bcd92[_0x4df4dd(0x19b)]('\x0a');if(_0x5cb888<0x0)return;let _0x16f4d3=_0x5bcd92[_0x4df4dd(0x1ae)](0x0,_0x5cb888)[_0x4df4dd(0x1b9)]();if(_0x5bcd92=_0x5bcd92[_0x4df4dd(0x1ae)](_0x5cb888+0x1),!_0x16f4d3)continue;let _0x2368e9=await _0x6417dc(_0x16f4d3);_0x3373d2[_0x4df4dd(0x1a1)](JSON[_0x4df4dd(0x1ad)](_0x2368e9)+'\x0a');}};});_0x6417dc=T({'buildId':_0x32d1dd,'logRequestEvent':async _0x1081a1=>{const _0x5631b2=_0xb140a3;_0x59badc['event']({'level':_0x1081a1[_0x5631b2(0x163)]===_0x2ec8e7['DaemonRpcError']?'error':'info','event_name':_0x1081a1[_0x5631b2(0x163)],'component':_0x29d028['Daemon'],'process_role':_0x22a53c[_0x5631b2(0x177)],..._0x1081a1[_0x5631b2(0x1cb)]===void 0x0?{}:{'error':_0x1081a1[_0x5631b2(0x1cb)]},'fields':{..._0x1cade9,..._0x1081a1[_0x5631b2(0x199)]===void 0x0?{}:{'duration_ms':_0x1081a1['durationMs']},'method':_0x1081a1['method'],'timestamp':_0x1081a1[_0x5631b2(0x1a2)]}});},'logRequestError':async _0x4ecf61=>{const _0x3b39c7=_0xb140a3;_0x59badc['error']({'event_name':_0x2ec8e7[_0x3b39c7(0x1b0)],'component':_0x29d028[_0x3b39c7(0x177)],'process_role':_0x22a53c[_0x3b39c7(0x177)],'error':_0x4ecf61[_0x3b39c7(0x1cb)],'fields':{..._0x1cade9,'method':_0x4ecf61[_0x3b39c7(0x18b)],'timestamp':_0x4ecf61[_0x3b39c7(0x1a2)]}});},'onShutdownRequest':()=>{const _0x23c198=_0xb140a3;_0x492888(_0x23c198(0x164))[_0x23c198(0x189)](()=>{const _0x6b4db0=_0x23c198;_0x22fb08[_0x6b4db0(0x1c9)](0x0);});},'pid':_0x22fb08[_0xb140a3(0x1c7)],'runtimeRoot':_0x17911a[_0xb140a3(0x19f)],'sessionHost':_0x20eed6,'socketPath':_0x17911a[_0xb140a3(0x17a)],'startedAt':_0x5c7f14}),await new Promise((_0xf5761d,_0x21f880)=>{const _0x38949f=_0xb140a3;_0x2d7c4f[_0x38949f(0x1a5)](_0x38949f(0x1cb),_0x21f880),_0x2d7c4f[_0x38949f(0x1ab)](_0x17911a[_0x38949f(0x17a)],_0xf5761d);}),_0x54f159(_0x17911a['socketPath'])||await _0x3a835a(_0x17911a[_0xb140a3(0x17a)],0x180);let _0x108d1b={'pid':_0x22fb08[_0xb140a3(0x1c7)],'startedAt':_0x5c7f14,'socketPath':_0x17911a[_0xb140a3(0x17a)],'runtimeRoot':_0x17911a[_0xb140a3(0x19f)],'buildId':_0x32d1dd};await _0x38d2a3(_0x17911a['pidPath'],String(_0x22fb08[_0xb140a3(0x1c7)]),_0xb140a3(0x191)),await _0x38d2a3(_0x17911a[_0xb140a3(0x197)],JSON[_0xb140a3(0x1ad)](_0x108d1b,null,0x2),_0xb140a3(0x191)),_0x59badc[_0xb140a3(0x1cc)]({'event_name':_0x2ec8e7[_0xb140a3(0x1b3)],'component':_0x29d028[_0xb140a3(0x177)],'process_role':_0x22a53c['Daemon'],'fields':{..._0x1cade9,'pid':_0x22fb08[_0xb140a3(0x1c7)],'runtime_root':_0x17911a[_0xb140a3(0x19f)],'socket_path':_0x17911a[_0xb140a3(0x17a)],'started_at':_0x5c7f14}}),await _0x59badc[_0xb140a3(0x1a9)]();let _0x54f873=setInterval(()=>{const _0x47210b=_0xb140a3;_0x20eed6[_0x47210b(0x1c2)]();},Math[_0xb140a3(0x1cf)](0x3e8,Math[_0xb140a3(0x1da)](_0x20eed6['getSessionIdleTtlMs'](),0xea60)));_0x54f873[_0xb140a3(0x1c1)](),_0x42a967[_0xb140a3(0x1b2)]=_0x54f873;async function _0x492888(_0xf8b4cb){const _0x15f1ba=_0xb140a3;_0x58575a||(_0x58575a=!0x0,_0x42a967[_0x15f1ba(0x1b2)]!==void 0x0&&clearInterval(_0x42a967[_0x15f1ba(0x1b2)]),_0x59badc['info']({'event_name':_0x2ec8e7['DaemonStop'],'component':_0x29d028[_0x15f1ba(0x177)],'process_role':_0x22a53c[_0x15f1ba(0x177)],'fields':{..._0x1cade9,'pid':_0x22fb08[_0x15f1ba(0x1c7)],'reason':_0xf8b4cb,'timestamp':new Date()[_0x15f1ba(0x19d)]()}}),await _0x59badc[_0x15f1ba(0x1a9)](),await _0x20eed6[_0x15f1ba(0x16d)](_0xf8b4cb),await new Promise(_0x24adcc=>{_0x2d7c4f['close'](()=>_0x24adcc());}),await I(_0x17911a[_0x15f1ba(0x17a)]),await _0x274234(_0x17911a[_0x15f1ba(0x16a)],{'force':!0x0})[_0x15f1ba(0x1dd)](()=>void 0x0),await _0x274234(_0x17911a[_0x15f1ba(0x197)],{'force':!0x0})[_0x15f1ba(0x1dd)](()=>void 0x0),await _0x274234(_0x17911a['lockPath'],{'recursive':!0x0,'force':!0x0})['catch'](()=>void 0x0));}_0x22fb08['on'](_0xb140a3(0x19a),()=>{const _0x3ec6f6=_0xb140a3;_0x492888('sigint')[_0x3ec6f6(0x189)](()=>{_0x22fb08['exit'](0x0);});}),_0x22fb08['on'](_0xb140a3(0x16f),()=>{const _0x1863cd=_0xb140a3;_0x492888(_0x1863cd(0x1c0))[_0x1863cd(0x189)](()=>{const _0x334699=_0x1863cd;_0x22fb08[_0x334699(0x1c9)](0x0);});});}function T(_0x4b1240){return async _0x36f6ce=>{const _0x18d29f=_0x522f;let _0x28ceaf;try{_0x28ceaf=JSON[_0x18d29f(0x1ac)](_0x36f6ce);}catch(_0x337dfb){return B(null,-0x7fbc,_0x337dfb);}let _0x597079=_0x170228(_0x28ceaf[_0x18d29f(0x1be)]?.[_0x18d29f(0x18d)]),_0x425a9f=async()=>await n['withSpan']({'name':_0x2c5559[_0x18d29f(0x1d5)],'kind':_0x18d29f(0x1bd)},async()=>{const _0x245ae1=_0x18d29f;let _0x592325=Date[_0x245ae1(0x188)]();await _0x4b1240['logRequestEvent']?.({'eventName':_0x2ec8e7[_0x245ae1(0x170)],'method':_0x28ceaf[_0x245ae1(0x18b)],'timestamp':new Date()[_0x245ae1(0x19d)]()});try{let _0x20a3c0=await E(_0x28ceaf,_0x4b1240);return await _0x4b1240['logRequestEvent']?.({'durationMs':Date[_0x245ae1(0x188)]()-_0x592325,'eventName':_0x2ec8e7['DaemonRpcFinish'],'method':_0x28ceaf[_0x245ae1(0x18b)],'timestamp':new Date()['toISOString']()}),_0x20a3c0;}catch(_0x39df28){return await _0x4b1240[_0x245ae1(0x180)]?.({'durationMs':Date[_0x245ae1(0x188)]()-_0x592325,'eventName':_0x2ec8e7[_0x245ae1(0x1b0)],'method':_0x28ceaf[_0x245ae1(0x18b)],'error':_0x39df28,'timestamp':new Date()['toISOString']()}),_0x4b1240[_0x245ae1(0x180)]===void 0x0&&await _0x4b1240[_0x245ae1(0x179)]?.({'method':_0x28ceaf['method'],'error':_0x39df28 instanceof Error?_0x39df28['message']:String(_0x39df28),'timestamp':new Date()['toISOString']()}),B(_0x28ceaf['id'],-0x7f5b,_0x39df28);}});return _0x597079===void 0x0?await _0x425a9f():await n[_0x18d29f(0x195)](_0x597079,_0x425a9f);};}async function E(_0x74c48c,_0xd8a677){const _0x21a885=_0x522f;switch(_0x74c48c[_0x21a885(0x18b)]){case _0x36661e['Health']:return{'jsonrpc':_0x21a885(0x1c5),'id':_0x74c48c['id'],'result':{'ok':!0x0,'pid':_0xd8a677[_0x21a885(0x1c7)],'startedAt':_0xd8a677['startedAt'],'socketPath':_0xd8a677[_0x21a885(0x17a)],'runtimeRoot':_0xd8a677[_0x21a885(0x1d3)],'buildId':_0xd8a677['buildId'],'sessionCount':_0xd8a677[_0x21a885(0x187)][_0x21a885(0x1db)]()}};case _0x36661e[_0x21a885(0x165)]:return _0xd8a677['onShutdownRequest']?.(),{'jsonrpc':'2.0','id':_0x74c48c['id'],'result':{'stopping':!0x0}};case _0x36661e[_0x21a885(0x1d2)]:{let _0x3d6743=await _0xd8a677[_0x21a885(0x187)][_0x21a885(0x184)](_0x74c48c['params']);return z(_0x74c48c['id'],_0x3d6743);}case _0x36661e['SessionLoadWorkbookDataReplayPack']:{let _0x59355f=await _0xd8a677[_0x21a885(0x187)][_0x21a885(0x16b)](_0x74c48c['params']);return z(_0x74c48c['id'],_0x59355f);}case _0x36661e[_0x21a885(0x1d7)]:{let _0x1860fb=await _0xd8a677['sessionHost']['createWorkbook'](_0x74c48c[_0x21a885(0x17b)]);return z(_0x74c48c['id'],_0x1860fb);}case _0x36661e[_0x21a885(0x1d1)]:{let _0x56a2da=await _0xd8a677['sessionHost'][_0x21a885(0x1d8)](_0x74c48c[_0x21a885(0x17b)]);return z(_0x74c48c['id'],_0x56a2da);}case _0x36661e[_0x21a885(0x169)]:{let _0x4140ac=await _0xd8a677[_0x21a885(0x187)]['exportWorkbookFile'](_0x74c48c[_0x21a885(0x17b)]);return z(_0x74c48c['id'],_0x4140ac);}case _0x36661e[_0x21a885(0x1c3)]:{let _0x10816a=_0x74c48c[_0x21a885(0x17b)],_0x2a7d06=await _0xd8a677['sessionHost']['exportWorkbookData'](_0x10816a);return z(_0x74c48c['id'],_0x2a7d06);}case _0x36661e[_0x21a885(0x1a8)]:{let _0x2d468a=await _0xd8a677['sessionHost'][_0x21a885(0x1c6)](_0x74c48c[_0x21a885(0x17b)]);return z(_0x74c48c['id'],_0x2d468a);}case _0x36661e[_0x21a885(0x186)]:{let _0x2363e0=await _0xd8a677[_0x21a885(0x187)][_0x21a885(0x1d9)](_0x74c48c['params']);return z(_0x74c48c['id'],_0x2363e0);}default:return B(_0x74c48c['id'],-0x7f59,Error(_0x21a885(0x193)+_0x74c48c[_0x21a885(0x18b)]));}}function D(_0x39ce72){return{async 'createWorkbook'(_0x5d9fc7){const _0x113684=_0x522f;let _0xf1a710=await O(_0x5d9fc7),_0x5cf5e6=await _0x39ce72[_0x113684(0x166)]({..._0x5d9fc7[_0x113684(0x196)]===void 0x0?{}:{'cwd':_0x5d9fc7[_0x113684(0x196)]},'identity':_0xf1a710,..._0x5d9fc7['id']===void 0x0?{}:{'workbookId':_0x5d9fc7['id']},..._0x5d9fc7[_0x113684(0x1c4)]===void 0x0?{}:{'workbookName':_0x5d9fc7[_0x113684(0x1c4)]}});return{'success':!0x0,'workbookData':_0x5cf5e6[_0x113684(0x1bb)],'session':k(_0x5cf5e6[_0x113684(0x17d)])};},async 'dispose'(_0x3f3e67){const _0x32d187=_0x522f;let _0xcec2d6=await O(_0x3f3e67);return await _0x39ce72[_0x32d187(0x1c6)]({..._0x3f3e67[_0x32d187(0x196)]===void 0x0?{}:{'cwd':_0x3f3e67[_0x32d187(0x196)]},'identity':_0xcec2d6}),{'disposed':!0x0,'workbookIdentity':_0xcec2d6['absolutePath']};},async 'destroyAll'(_0x332655){const _0x5e870c=_0x522f;await _0x39ce72[_0x5e870c(0x16d)]?.(_0x332655);},async 'evalJs'(_0x3e8d90){const _0x5f0229=_0x522f;let _0x10c062=await O(_0x3e8d90),_0x2955d3=await _0x39ce72['evalJs']({'code':_0x3e8d90['code'],..._0x3e8d90[_0x5f0229(0x196)]===void 0x0?{}:{'cwd':_0x3e8d90[_0x5f0229(0x196)]},'identity':_0x10c062,..._0x3e8d90[_0x5f0229(0x1dc)]===void 0x0?{}:{'maxCodeLength':_0x3e8d90[_0x5f0229(0x1dc)]},..._0x3e8d90[_0x5f0229(0x1ca)]===void 0x0?{}:{'mutates':_0x3e8d90['mutates']}});return{..._0x2955d3[_0x5f0229(0x17f)]===void 0x0?{}:{'mutations':_0x2955d3['mutations']},'success':!0x0,'value':_0x2955d3[_0x5f0229(0x1ba)],'session':k(_0x2955d3['session'])};},async 'exportWorkbookData'(_0x242cc5){const _0x55d741=_0x522f;let _0x53a55e=await O(_0x242cc5),_0x2c4c31=await _0x39ce72[_0x55d741(0x1bf)]({..._0x242cc5[_0x55d741(0x196)]===void 0x0?{}:{'cwd':_0x242cc5[_0x55d741(0x196)]},'identity':_0x53a55e});return{'success':!0x0,'workbookData':_0x2c4c31[_0x55d741(0x1bb)],'session':k(_0x2c4c31[_0x55d741(0x17d)])};},async 'exportWorkbookFile'(_0x220a63){const _0x91bccb=_0x522f;let _0x1f457a=await O(_0x220a63),_0x1fc5b6=await _0x39ce72[_0x91bccb(0x192)]({..._0x220a63[_0x91bccb(0x196)]===void 0x0?{}:{'cwd':_0x220a63['cwd']},'format':_0x220a63[_0x91bccb(0x198)],'identity':_0x1f457a,'outputPath':_0x220a63['outputPath']});return{'success':!0x0,'format':_0x1fc5b6[_0x91bccb(0x198)],'outputPath':_0x1fc5b6[_0x91bccb(0x178)],'sizeBytes':_0x1fc5b6[_0x91bccb(0x171)],'session':k(_0x1fc5b6[_0x91bccb(0x17d)])};},async 'getWorkbookSession'(_0x7c43fa){const _0x1af6aa=_0x522f;let _0x33f64e=await O(_0x7c43fa),_0x8027db=await _0x39ce72[_0x1af6aa(0x1a6)]({..._0x7c43fa[_0x1af6aa(0x196)]===void 0x0?{}:{'cwd':_0x7c43fa[_0x1af6aa(0x196)]},'identity':_0x33f64e});return{'exists':_0x8027db!==null,'session':_0x8027db===null?null:k(_0x8027db)};},'getSessionCount'(){const _0x3b22b8=_0x522f;return _0x39ce72[_0x3b22b8(0x1db)]?.()??0x0;},'getSessionIdleTtlMs'(){const _0x3d7b3d=_0x522f;return _0x39ce72[_0x3d7b3d(0x19e)]?.()??0xea60;},async 'loadWorkbook'(_0x12b808){const _0x282e5b=_0x522f;let _0x33e9b0=await O(_0x12b808),_0x87e1e2=await _0x39ce72['loadWorkbookData']({..._0x12b808['cwd']===void 0x0?{}:{'cwd':_0x12b808[_0x282e5b(0x196)]},'identity':_0x33e9b0,'workbookData':_0x12b808[_0x282e5b(0x1bb)]});return{'success':!0x0,'workbookData':_0x87e1e2['workbookData'],'session':k(_0x87e1e2['session'])};},async 'loadWorkbookDataReplayPack'(_0x32b905){const _0x4e0fed=_0x522f;let _0x390013=await O(_0x32b905);return{'success':!0x0,'session':k((await _0x39ce72['loadWorkbookDataReplayPack']({..._0x32b905['cwd']===void 0x0?{}:{'cwd':_0x32b905[_0x4e0fed(0x196)]},'identity':_0x390013,'replayPack':{'baseWorkbookData':_0x32b905[_0x4e0fed(0x168)],'mutations':_0x32b905[_0x4e0fed(0x17f)]}}))['session'])};},async 'unloadIdleSessions'(){const _0x1adc26=_0x522f;await _0x39ce72[_0x1adc26(0x1c2)]?.();}};}async function O(_0x2b24eb){const _0x187cbe=_0x522f;return await C[_0x187cbe(0x19c)](_0x2b24eb);}function _0x54ab(){const _0x51e4f9=['execArgv','20505bYmpqN','1375688UcCcON','loadWorkbook','univer-daemon','SessionGetWorkbook','sessionHost','now','finally','toString','method','Runtime','traceparent','length','end','connect','utf8','exportWorkbookFile','Method\x20not\x20found:\x20','isFinite','withContext','cwd','metaPath','format','durationMs','SIGINT','indexOf','resolveIdentity','toISOString','getSessionIdleTtlMs','homeDir','16429105LmpYps','write','timestamp','createConnection','local','once','getSession','message','SessionDispose','flush','36GIPndc','listen','parse','stringify','slice','77WqDIwG','DaemonRpcError','argv','current','DaemonStart','kill','491157hiigpT','runtimeExecutionPlaneEntry','4gZFBzf','UNIVER_CLI_VERSION','trim','value','workbookData','734175eEmpBd','server','meta','exportWorkbookData','sigterm','unref','unloadIdleSessions','SessionExportWorkbookData','name','2.0','dispose','pid','absolutePath','exit','mutates','error','info','buildId','sessionId','max','2235430xzAHYN','SessionEvalJs','SessionLoadWorkbook','runtimeRoot','data','DaemonRpcServer','code','SessionCreateWorkbook','evalJs','getWorkbookSession','min','getSessionCount','maxCodeLength','catch','1072sTvAkX','109302WTIPFy','eventName','rpc-shutdown','Shutdown','createWorkbook','env','baseWorkbookData','SessionExportWorkbookFile','pidPath','loadWorkbookDataReplayPack','serve','destroyAll','unknown','SIGTERM','DaemonRpcStart','sizeBytes','lockPath','lastAccessedAt','packageIdentity','UNIVER_CLI_BUILD_ID','Another\x20daemon\x20startup\x20owns\x20','Daemon','outputPath','logRequestError','socketPath','params','createServer','session','sessionRoot','mutations','logRequestEvent'];_0x54ab=function(){return _0x51e4f9;};return _0x54ab();}function k(_0x57e954){const _0x355cfd=_0x522f;return{'createdAt':_0x57e954['createdAt']??'','lastAccessedAt':_0x57e954[_0x355cfd(0x173)]??'','sessionId':_0x57e954[_0x355cfd(0x1ce)],'workbookIdentity':_0x57e954[_0x355cfd(0x174)][_0x355cfd(0x1c8)]};}function A(_0x2d0001){const _0x1475d7=_0x522f;return{'build.id':j(_0x2d0001[_0x1475d7(0x167)],_0x1475d7(0x175))??_0x2d0001[_0x1475d7(0x1cd)],'deployment.environment.name':_0x1475d7(0x1a4),'distribution.channel':j(_0x2d0001[_0x1475d7(0x167)],'UNIVER_DISTRIBUTION_CHANNEL')??_0x1475d7(0x16e),'service.instance.id':String(_0x2d0001[_0x1475d7(0x1c7)]),'service.name':_0x1475d7(0x185),...j(_0x2d0001[_0x1475d7(0x167)],'UNIVER_CLI_VERSION')===void 0x0?{}:{'service.version':j(_0x2d0001[_0x1475d7(0x167)],_0x1475d7(0x1b8))}};}function j(_0x331a80,_0x43c06f){const _0x849740=_0x522f;let _0xc73df0=_0x331a80[_0x43c06f]?.['trim']();return _0xc73df0===void 0x0||_0xc73df0[_0x849740(0x18e)]===0x0?void 0x0:_0xc73df0;}async function M(_0x315a37){const _0x4e8462=_0x522f;F(_0x315a37['socketPath'])&&!await P(_0x315a37[_0x4e8462(0x17a)])&&await I(_0x315a37[_0x4e8462(0x17a)]);let _0x226f23=await L(_0x315a37[_0x4e8462(0x16a)]);_0x226f23!==null&&!R(_0x226f23)&&(await _0x274234(_0x315a37['pidPath'],{'force':!0x0})[_0x4e8462(0x1dd)](()=>void 0x0),await _0x274234(_0x315a37[_0x4e8462(0x197)],{'force':!0x0})[_0x4e8462(0x1dd)](()=>void 0x0),await _0x274234(_0x315a37[_0x4e8462(0x172)],{'recursive':!0x0,'force':!0x0})[_0x4e8462(0x1dd)](()=>void 0x0));}async function N(_0xa95f86,_0x2a81ef){const _0x21fa79=_0x522f;try{return await _0x4d8552(_0xa95f86,{'recursive':!0x1,'mode':0x1c0}),!0x0;}catch(_0x383ce3){if(_0x383ce3[_0x21fa79(0x1d6)]!=='EEXIST')throw _0x383ce3;let _0x567271=await L(_0x2a81ef);return _0x567271!==null&&R(_0x567271)?!0x1:(await _0x274234(_0xa95f86,{'recursive':!0x0,'force':!0x0}),await _0x4d8552(_0xa95f86,{'recursive':!0x1,'mode':0x1c0}),!0x0);}}async function P(_0x86a774){return await new Promise(_0x1cb5ec=>{const _0x2cf76a=_0x522f;let _0xf126b2=_0x55126e[_0x2cf76a(0x1a3)](_0x86a774);_0xf126b2[_0x2cf76a(0x1a5)](_0x2cf76a(0x190),()=>{const _0x2a5e8d=_0x2cf76a;_0xf126b2[_0x2a5e8d(0x18f)](),_0x1cb5ec(!0x0);}),_0xf126b2[_0x2cf76a(0x1a5)]('error',()=>{_0x1cb5ec(!0x1);});});}function _0x522f(_0x11b549,_0x4fe5bb){_0x11b549=_0x11b549-0x163;const _0x54ab02=_0x54ab();let _0x522f9d=_0x54ab02[_0x11b549];return _0x522f9d;}function F(_0x4584a2){return _0x54f159(_0x4584a2)?!0x1:_0x2e3d21(_0x4584a2);}async function I(_0x5d67df){const _0x40e2a9=_0x522f;_0x54f159(_0x5d67df)||await _0x274234(_0x5d67df,{'force':!0x0})[_0x40e2a9(0x1dd)](()=>void 0x0);}async function L(_0x1dd023){const _0x9e5bef=_0x522f;try{let _0x2ff79e=await _0x452bdf(_0x1dd023,_0x9e5bef(0x191)),_0x4e42a8=Number(_0x2ff79e[_0x9e5bef(0x1b9)]());return Number[_0x9e5bef(0x194)](_0x4e42a8)?_0x4e42a8:null;}catch{return null;}}function R(_0x583e07){const _0x42fde7=_0x522f;try{return _0x22fb08[_0x42fde7(0x1b4)](_0x583e07,0x0),!0x0;}catch{return!0x1;}}function z(_0x1b6030,_0x1f3e53){return{'jsonrpc':'2.0','id':_0x1b6030,'result':_0x1f3e53};}function B(_0x5ce546,_0x54b8e8,_0x34c894){const _0xa1f957=_0x522f;return{'jsonrpc':_0xa1f957(0x1c5),'id':_0x5ce546,'error':{'code':_0x54b8e8,'message':_0x34c894 instanceof Error?_0x34c894[_0xa1f957(0x1a7)]:String(_0x34c894)}};}var V=process[_0x5edbb3(0x1b1)][0x2]??_0x5edbb3(0x16c);V!==_0x5edbb3(0x16c)&&(console[_0x5edbb3(0x1cb)]('Unknown\x20daemon\x20subcommand:\x20'+V),process[_0x5edbb3(0x1c9)](0x1)),w()['catch'](_0x384454=>{const _0xe9195c=_0x5edbb3;console[_0xe9195c(0x1cb)](_0x384454 instanceof Error?_0x384454[_0xe9195c(0x1a7)]:String(_0x384454)),process[_0xe9195c(0x1c9)](0x1);});
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x5b4041=_0x44f9;(function(_0x24b7ed,_0x4b8c1f){const _0x3135f2=_0x44f9,_0x6aeb35=_0x24b7ed();while(!![]){try{const _0x4530c2=parseInt(_0x3135f2(0x1a1))/0x1*(-parseInt(_0x3135f2(0x16f))/0x2)+-parseInt(_0x3135f2(0x192))/0x3+-parseInt(_0x3135f2(0x1c2))/0x4*(parseInt(_0x3135f2(0x189))/0x5)+-parseInt(_0x3135f2(0x1a6))/0x6*(-parseInt(_0x3135f2(0x167))/0x7)+parseInt(_0x3135f2(0x171))/0x8+-parseInt(_0x3135f2(0x187))/0x9*(parseInt(_0x3135f2(0x1a8))/0xa)+-parseInt(_0x3135f2(0x18b))/0xb*(-parseInt(_0x3135f2(0x198))/0xc);if(_0x4530c2===_0x4b8c1f)break;else _0x6aeb35['push'](_0x6aeb35['shift']());}catch(_0x3f6fb3){_0x6aeb35['push'](_0x6aeb35['shift']());}}}(_0x2c05,0xb726c));import{t as _0x30cf3e}from'../chunks/build-info-_d_PkcJH.js';import{n as _0x57740f}from'../chunks/runtime-manifest-D6bFR_JZ.js';import{spawn as _0xc32172}from'node:child_process';import{readFileSync as _0x27dfa1}from'node:fs';import{mkdir as _0x5fa9dc,readFile as _0x54a91c,rename as _0x498d14,writeFile as _0x5072d0}from'node:fs/promises';import{dirname as _0x57ec54,join as _0x247886,resolve as _0x553b9a}from'node:path';import{fileURLToPath as _0x59da15}from'node:url';import{homedir as _0x35f6b4,platform as _0x10302e}from'node:os';import{randomUUID as _0x2204b6}from'node:crypto';async function h(_0x32b7f1){const _0xeadd45=_0x44f9;let _0x5f3782=_0x32b7f1[_0xeadd45(0x181)]??process.env,_0x2c11f6=_0x32b7f1[_0xeadd45(0x186)]??_0x57740f(_0x5f3782);if(_0x2c11f6[_0xeadd45(0x196)]!==_0xeadd45(0x18a))return{'reason':_0xeadd45(0x164),'status':_0xeadd45(0x1a4)};let _0x2efbf7=_0x32b7f1[_0xeadd45(0x166)]??_0x30cf3e;if(N(_0x2efbf7))return{'reason':'development-build','status':'skipped'};let _0x2b9871=_0x32b7f1['config']??await O(_0x2c11f6[_0xeadd45(0x1b0)]);if(_0x2b9871[_0xeadd45(0x173)][_0xeadd45(0x193)]===0x0)return{'reason':_0xeadd45(0x175),'status':_0xeadd45(0x1a4)};let _0x47c584=_0x32b7f1[_0xeadd45(0x17f)]??new Date(),_0x29fd65=_0x32b7f1[_0xeadd45(0x184)]??v({'env':_0x5f3782}),_0x3ceeb7=await b({'path':_0x29fd65,..._0x32b7f1[_0xeadd45(0x17e)]===void 0x0?{}:{'randomId':_0x32b7f1[_0xeadd45(0x17e)]},..._0x32b7f1[_0xeadd45(0x182)]===void 0x0?{}:{'stateIo':_0x32b7f1[_0xeadd45(0x182)]}});if(_0x3ceeb7[_0xeadd45(0x177)]===void 0x0)return{'reason':_0xeadd45(0x1a5),'status':_0xeadd45(0x1a4)};if(_0x32b7f1[_0xeadd45(0x180)]===_0xeadd45(0x1be)&&_0x3ceeb7[_0xeadd45(0x177)]['events'][_0xeadd45(0x1be)]!==void 0x0)return{'reason':'already-attempted','status':_0xeadd45(0x1a4)};let _0x4d6ace=w({'buildInfo':_0x2efbf7,'eventName':_0x32b7f1['eventName'],'now':_0x47c584,'state':_0x3ceeb7[_0xeadd45(0x177)]});await C({'path':_0x29fd65,'state':_0x4d6ace,..._0x32b7f1['stateIo']===void 0x0?{}:{'stateIo':_0x32b7f1[_0xeadd45(0x182)]}});let _0x473431=T({'buildInfo':_0x2efbf7,'env':_0x5f3782,'eventName':_0x32b7f1['eventName'],'eventSource':_0x32b7f1[_0xeadd45(0x1b2)],'manifest':_0x2c11f6,'state':_0x4d6ace});try{return await(_0x32b7f1[_0xeadd45(0x1c3)]??new A())[_0xeadd45(0x199)]({'capture':_0x473431,'config':_0x2b9871}),{'status':_0xeadd45(0x172)};}catch{return{'reason':_0xeadd45(0x1a0),'status':_0xeadd45(0x1a4)};}}async function g(_0x1aea98={}){const _0x355c63=_0x44f9;return await h({..._0x1aea98,'eventName':_0x355c63(0x1c7),'eventSource':_0x355c63(0x197)});}async function _(_0x1e83af={}){const _0x2a70e=_0x44f9;return await h({..._0x1e83af,'eventName':_0x2a70e(0x1be),'eventSource':_0x2a70e(0x178)});}function v(_0x3e2a83={}){const _0x79d6c7=_0x44f9;let _0x200bcd=(_0x3e2a83[_0x79d6c7(0x181)]??process.env)[_0x79d6c7(0x194)]?.[_0x79d6c7(0x1b9)]();return _0x553b9a(_0x200bcd&&_0x200bcd[_0x79d6c7(0x193)]>0x0?_0x200bcd:_0x247886(_0x3e2a83[_0x79d6c7(0x16d)]??_0x35f6b4(),_0x79d6c7(0x1b4)),_0x79d6c7(0x191),_0x79d6c7(0x1ba));}function y(_0x4aaf61={}){const _0x385cfc=_0x44f9;return{'anonymousInstallId':_0x4aaf61[_0x385cfc(0x17e)]?.()??_0x2204b6(),'events':{},'version':0x1};}async function b(_0x3d9dc1){const _0x2a0d63=_0x44f9;let _0x1280b4=_0x3d9dc1[_0x2a0d63(0x182)]?.[_0x2a0d63(0x1ac)]??_0x54a91c;try{return{'state':x(await _0x1280b4(_0x3d9dc1[_0x2a0d63(0x1b8)],_0x2a0d63(0x1c0)))};}catch{return{'state':y({..._0x3d9dc1[_0x2a0d63(0x17e)]===void 0x0?{}:{'randomId':_0x3d9dc1[_0x2a0d63(0x17e)]}})};}}function x(_0x39ec88){const _0x30b17a=_0x44f9;let _0x2f0cb3=JSON[_0x30b17a(0x17c)](_0x39ec88);if(!R(_0x2f0cb3)||_0x2f0cb3[_0x30b17a(0x1a2)]!==0x1)throw Error(_0x30b17a(0x1c6));if(typeof _0x2f0cb3[_0x30b17a(0x17b)]!='string'||_0x2f0cb3[_0x30b17a(0x17b)]['length']===0x0)throw Error('Invalid\x20product\x20telemetry\x20anonymous\x20install\x20id.');let _0x19ac94=R(_0x2f0cb3[_0x30b17a(0x179)])?_0x2f0cb3['events']:{};return{'anonymousInstallId':_0x2f0cb3['anonymousInstallId'],'events':{...P(_0x19ac94['cli_installed'],_0x30b17a(0x1c7)),...P(_0x19ac94[_0x30b17a(0x1be)],_0x30b17a(0x1be))},'version':0x1};}function S(_0x3ae086){return JSON['stringify'](_0x3ae086,null,0x2)+'\x0a';}async function C(_0x5858d8){const _0x226b2e=_0x44f9;let _0x28ea8c=_0x5858d8[_0x226b2e(0x182)]?.[_0x226b2e(0x17d)]??_0x5072d0,_0xe5855d=_0x5858d8[_0x226b2e(0x182)]?.[_0x226b2e(0x19c)]??_0x498d14,_0x34c89c=_0x5858d8[_0x226b2e(0x1b8)]+'.'+process[_0x226b2e(0x195)]+'.'+Date[_0x226b2e(0x17f)]()+'.tmp';try{await _0x5fa9dc(_0x57ec54(_0x5858d8[_0x226b2e(0x1b8)]),{'mode':0x1c0,'recursive':!0x0}),await _0x28ea8c(_0x34c89c,S(_0x5858d8[_0x226b2e(0x177)]),{'encoding':'utf8','mode':0x180}),await _0xe5855d(_0x34c89c,_0x5858d8[_0x226b2e(0x1b8)]);}catch{}}function _0x2c05(){const _0x4d2418=['pid','mode','postinstall','6262332LUAJHe','capture','package.json','application/json','rename','buildCommit','toISOString','versions','capture-failed','5gBFIIK','version','UNIVER_MANAGED_BY_BUN','skipped','state-unavailable','78nTqIgK','0.0.0','150oRbMDm','npm','arch','status','readFile','https://univer.ai/api/telemetry/cli','properties','isSafeInteger','packageRoot','split','eventSource','public-npm','.univer','commitHash','distinctId','univer-cli','path','trim','state.json','postinstall-worker','stringify','argv','cli_first_opened','execPath','utf8','number','20lViCRU','transport','object','CLI\x20telemetry\x20proxy\x20failed\x20with\x20status\x20','Invalid\x20product\x20telemetry\x20state\x20version.','cli_installed','unref','not-packaged','bun','buildInfo','740054JiVVWu','timeoutMs','timeout','POST','UNIVER_MANAGED_BY_NPM','pnpm','homeDir','attemptedAt','127770NaBKyJ','internal-github','4047040OVQuFz','captured','endpoint','first-open','missing-endpoint','config','state','cli-startup','events','cliVersion','anonymousInstallId','parse','writeFile','randomId','now','eventName','env','stateIo','unknown','statePath','npm_config_user_agent','manifest','498537bhXWhc','node','676835aUzRRF','packaged','44wJDgID','test','ignore','string','yarn','name','telemetry','4171101GnKstO','length','UNIVER_HOME'];_0x2c05=function(){return _0x4d2418;};return _0x2c05();}function w(_0x4d49e7){const _0x460474=_0x44f9;return{..._0x4d49e7[_0x460474(0x177)],'events':{..._0x4d49e7[_0x460474(0x177)]['events'],[_0x4d49e7['eventName']]:{'attemptedAt':_0x4d49e7['now'][_0x460474(0x19e)](),'buildCommit':_0x4d49e7[_0x460474(0x166)][_0x460474(0x1b5)],'cliVersion':_0x4d49e7[_0x460474(0x166)][_0x460474(0x1a2)]}}};}function T(_0x3340c6){const _0x1928be=_0x44f9;return{'distinctId':_0x3340c6[_0x1928be(0x177)][_0x1928be(0x17b)],'event':_0x3340c6[_0x1928be(0x180)],'properties':E(_0x3340c6)};}function E(_0x341999){const _0x1eb759=_0x44f9;return{'arch':process[_0x1eb759(0x1aa)],'build_commit':_0x341999['buildInfo'][_0x1eb759(0x1b5)],'cli_version':_0x341999[_0x1eb759(0x166)][_0x1eb759(0x1a2)],'distribution_channel':M(_0x341999[_0x1eb759(0x186)]),'event_source':_0x341999[_0x1eb759(0x1b2)],'install_manager':D(_0x341999[_0x1eb759(0x181)]??process.env),'node_major_version':F(process[_0x1eb759(0x19f)][_0x1eb759(0x188)]),'package_name':j(_0x341999['manifest']),'platform':_0x10302e(),'telemetry_state_version':0x1};}function D(_0x38600f=process.env){const _0x426558=_0x44f9;let _0x463bde=process[_0x426558(0x19f)];if(typeof _0x463bde[_0x426558(0x165)]==_0x426558(0x18e)&&_0x463bde[_0x426558(0x165)][_0x426558(0x193)]>0x0)return _0x426558(0x165);let _0xae66fe=_0x38600f[_0x426558(0x185)]??'';if(/\bbun\//u[_0x426558(0x18c)](_0xae66fe))return'bun';if(/\bpnpm\//u[_0x426558(0x18c)](_0xae66fe))return _0x426558(0x16c);if(/\byarn\//u['test'](_0xae66fe))return _0x426558(0x18f);if(/\bnpm\//u[_0x426558(0x18c)](_0xae66fe))return _0x426558(0x1a9);let _0x17cf16=_0x38600f['npm_execpath']??'';return/(^|[/\\])bun(?:\.exe)?$/u[_0x426558(0x18c)](_0x17cf16)?_0x426558(0x165):/(^|[/\\])pnpm(?:\.cmd|\.ps1|\.exe)?$/u['test'](_0x17cf16)?'pnpm':/(^|[/\\])yarn(?:\.cmd|\.ps1|\.exe)?$/u[_0x426558(0x18c)](_0x17cf16)?_0x426558(0x18f):/(^|[/\\])npm(?:\.cmd|\.ps1|\.exe)?$/u[_0x426558(0x18c)](_0x17cf16)?_0x426558(0x1a9):_0x38600f[_0x426558(0x1a3)]==='1'?_0x426558(0x165):_0x38600f[_0x426558(0x16b)]==='1'?_0x426558(0x1a9):_0x426558(0x183);}async function O(_0x4fe8d8){const _0x5a7a1c=_0x44f9;try{let _0x3a467f=await _0x54a91c(_0x247886(_0x4fe8d8,'internal','product-telemetry.json'),'utf8');return k(JSON[_0x5a7a1c(0x17c)](_0x3a467f));}catch{return k({});}}function k(_0x480634){const _0x5b3905=_0x44f9;let _0x32295e=R(_0x480634)?_0x480634:{};return{'endpoint':I(_0x32295e[_0x5b3905(0x173)],_0x5b3905(0x1ad)),'timeoutMs':L(_0x32295e['timeoutMs'],0x1388)};}var A=class{async['capture'](_0x1eb74d){const _0x342c51=_0x44f9;let _0x2da0d8=await fetch(_0x1eb74d[_0x342c51(0x176)][_0x342c51(0x173)],{'body':JSON[_0x342c51(0x1bc)]({'distinctId':_0x1eb74d[_0x342c51(0x199)][_0x342c51(0x1b6)],'event':_0x1eb74d[_0x342c51(0x199)]['event'],'properties':_0x1eb74d[_0x342c51(0x199)][_0x342c51(0x1ae)]}),'headers':{'content-type':_0x342c51(0x19b)},'method':_0x342c51(0x16a),'signal':AbortSignal[_0x342c51(0x169)](_0x1eb74d[_0x342c51(0x176)][_0x342c51(0x168)])});if(!_0x2da0d8['ok'])throw Error(_0x342c51(0x1c5)+_0x2da0d8[_0x342c51(0x1ab)]);}};function j(_0x4490df){const _0x4e0b11=_0x44f9;try{let _0x15252d=JSON[_0x4e0b11(0x17c)](_0x27dfa1(_0x247886(_0x4490df['packageRoot'],_0x4e0b11(0x19a)),'utf8'));return typeof _0x15252d[_0x4e0b11(0x190)]==_0x4e0b11(0x18e)&&_0x15252d[_0x4e0b11(0x190)][_0x4e0b11(0x1b9)]()[_0x4e0b11(0x193)]>0x0?_0x15252d['name']:_0x4e0b11(0x1b7);}catch{return _0x4e0b11(0x1b7);}}function M(_0x5ad79c){const _0x542cf2=_0x44f9;let _0x4d253a=j(_0x5ad79c);return _0x4d253a==='@dream-num/univer-cli'?_0x542cf2(0x170):_0x4d253a===_0x542cf2(0x1b7)?_0x542cf2(0x1b3):_0x5ad79c[_0x542cf2(0x196)];}function _0x44f9(_0xa5e111,_0x2cbd41){_0xa5e111=_0xa5e111-0x164;const _0x2c0578=_0x2c05();let _0x44f98a=_0x2c0578[_0xa5e111];return _0x44f98a;}function N(_0x2ac9d3){const _0x480d31=_0x44f9;return _0x2ac9d3[_0x480d31(0x1a2)]===_0x480d31(0x1a7);}function P(_0x508187,_0x3a264a){const _0x300d17=_0x44f9;return!R(_0x508187)||typeof _0x508187['attemptedAt']!=_0x300d17(0x18e)||typeof _0x508187[_0x300d17(0x19d)]!=_0x300d17(0x18e)||typeof _0x508187[_0x300d17(0x17a)]!='string'?{}:{[_0x3a264a]:{'attemptedAt':_0x508187[_0x300d17(0x16e)],'buildCommit':_0x508187['buildCommit'],'cliVersion':_0x508187['cliVersion']}};}function F(_0xd163df){const _0x56e451=_0x44f9;let _0x1623d8=Number(_0xd163df[_0x56e451(0x1b1)]('.')[0x0]);return Number[_0x56e451(0x1af)](_0x1623d8)&&_0x1623d8>0x0?_0x1623d8:void 0x0;}function I(_0x4485ee,_0x4aaac1){const _0x2d0618=_0x44f9;return typeof _0x4485ee==_0x2d0618(0x18e)&&_0x4485ee[_0x2d0618(0x1b9)]()[_0x2d0618(0x193)]>0x0?_0x4485ee[_0x2d0618(0x1b9)]():_0x4aaac1;}function L(_0x325f64,_0x27fe02){const _0x5cc198=_0x44f9;return typeof _0x325f64==_0x5cc198(0x1c1)&&Number['isSafeInteger'](_0x325f64)&&_0x325f64>0x0?_0x325f64:_0x27fe02;}function R(_0x4a613c){const _0x15ed34=_0x44f9;return typeof _0x4a613c==_0x15ed34(0x1c4)&&!!_0x4a613c;}var z=process[_0x5b4041(0x1bd)][0x2];try{z===_0x5b4041(0x174)?await _():z===_0x5b4041(0x197)?B(_0x5b4041(0x1bb)):z===_0x5b4041(0x1bb)&&await g();}catch{}function B(_0x21eb60){const _0x42a898=_0x5b4041;_0xc32172(process[_0x42a898(0x1bf)],[_0x59da15(import.meta.url),_0x21eb60],{'detached':!0x0,'env':process.env,'stdio':_0x42a898(0x18d),'windowsHide':!0x0})[_0x42a898(0x1c8)]();}
2
+ const _0x1170d3=_0x3b33;(function(_0x593f45,_0xa77b0f){const _0x291cfe=_0x3b33,_0x5114c6=_0x593f45();while(!![]){try{const _0x27e5be=-parseInt(_0x291cfe(0x1e8))/0x1+parseInt(_0x291cfe(0x22c))/0x2*(-parseInt(_0x291cfe(0x1eb))/0x3)+-parseInt(_0x291cfe(0x20d))/0x4*(parseInt(_0x291cfe(0x1fe))/0x5)+-parseInt(_0x291cfe(0x1f4))/0x6*(parseInt(_0x291cfe(0x22b))/0x7)+-parseInt(_0x291cfe(0x223))/0x8+-parseInt(_0x291cfe(0x1fb))/0x9+parseInt(_0x291cfe(0x201))/0xa*(parseInt(_0x291cfe(0x1d8))/0xb);if(_0x27e5be===_0xa77b0f)break;else _0x5114c6['push'](_0x5114c6['shift']());}catch(_0x346ed9){_0x5114c6['push'](_0x5114c6['shift']());}}}(_0x18be,0x2bd0b));import{t as _0x5aea5a}from'../chunks/build-info-CZl5rcXC.js';import{n as _0x96ed90}from'../chunks/runtime-manifest-D6bFR_JZ.js';import{spawn as _0x3f4531}from'node:child_process';import{readFileSync as _0x160e8b}from'node:fs';import{mkdir as _0x180635,readFile as _0x26b29c,rename as _0x55d6a5,writeFile as _0x26d99d}from'node:fs/promises';import{dirname as _0x2a1d69,join as _0x37f3e6,resolve as _0x2c353a}from'node:path';import{fileURLToPath as _0x24f9ae}from'node:url';import{homedir as _0x2b3ec9,platform as _0xeb08db}from'node:os';import{randomUUID as _0xa711a2}from'node:crypto';async function h(_0x2997c7){const _0x42301a=_0x3b33;let _0x393eca=_0x2997c7['env']??process.env,_0x12b558=_0x2997c7[_0x42301a(0x221)]??_0x96ed90(_0x393eca);if(_0x12b558['mode']!=='packaged')return{'reason':_0x42301a(0x218),'status':'skipped'};let _0x423787=_0x2997c7[_0x42301a(0x214)]??_0x5aea5a;if(N(_0x423787))return{'reason':_0x42301a(0x1f9),'status':_0x42301a(0x21e)};let _0x26ef7a=_0x2997c7[_0x42301a(0x232)]??await O(_0x12b558[_0x42301a(0x1fc)]);if(_0x26ef7a[_0x42301a(0x208)][_0x42301a(0x1f3)]===0x0)return{'reason':_0x42301a(0x233),'status':_0x42301a(0x21e)};let _0x379c06=_0x2997c7['now']??new Date(),_0x1392db=_0x2997c7['statePath']??v({'env':_0x393eca}),_0x19194f=await b({'path':_0x1392db,..._0x2997c7['randomId']===void 0x0?{}:{'randomId':_0x2997c7['randomId']},..._0x2997c7['stateIo']===void 0x0?{}:{'stateIo':_0x2997c7['stateIo']}});if(_0x19194f[_0x42301a(0x1f6)]===void 0x0)return{'reason':_0x42301a(0x228),'status':'skipped'};if(_0x2997c7[_0x42301a(0x1d7)]==='cli_first_opened'&&_0x19194f['state'][_0x42301a(0x20a)][_0x42301a(0x1de)]!==void 0x0)return{'reason':_0x42301a(0x222),'status':_0x42301a(0x21e)};let _0x2c44b2=w({'buildInfo':_0x423787,'eventName':_0x2997c7[_0x42301a(0x1d7)],'now':_0x379c06,'state':_0x19194f['state']});await C({'path':_0x1392db,'state':_0x2c44b2,..._0x2997c7[_0x42301a(0x22d)]===void 0x0?{}:{'stateIo':_0x2997c7[_0x42301a(0x22d)]}});let _0x2842db=T({'buildInfo':_0x423787,'env':_0x393eca,'eventName':_0x2997c7[_0x42301a(0x1d7)],'eventSource':_0x2997c7[_0x42301a(0x215)],'manifest':_0x12b558,'state':_0x2c44b2});try{return await(_0x2997c7[_0x42301a(0x1e1)]??new A())[_0x42301a(0x21d)]({'capture':_0x2842db,'config':_0x26ef7a}),{'status':_0x42301a(0x1f7)};}catch{return{'reason':_0x42301a(0x225),'status':_0x42301a(0x21e)};}}async function g(_0x297cc5={}){const _0x3e53bf=_0x3b33;return await h({..._0x297cc5,'eventName':_0x3e53bf(0x1e5),'eventSource':_0x3e53bf(0x227)});}async function _(_0x2997fe={}){const _0x53a263=_0x3b33;return await h({..._0x2997fe,'eventName':_0x53a263(0x1de),'eventSource':'cli-startup'});}function v(_0x39035b={}){const _0x21d1e6=_0x3b33;let _0x5963e3=(_0x39035b[_0x21d1e6(0x207)]??process.env)[_0x21d1e6(0x202)]?.['trim']();return _0x2c353a(_0x5963e3&&_0x5963e3[_0x21d1e6(0x1f3)]>0x0?_0x5963e3:_0x37f3e6(_0x39035b['homeDir']??_0x2b3ec9(),_0x21d1e6(0x211)),_0x21d1e6(0x231),'state.json');}function y(_0x4dcc05={}){return{'anonymousInstallId':_0x4dcc05['randomId']?.()??_0xa711a2(),'events':{},'version':0x1};}async function b(_0x2cb837){const _0x50ee03=_0x3b33;let _0x2c4561=_0x2cb837[_0x50ee03(0x22d)]?.[_0x50ee03(0x1da)]??_0x26b29c;try{return{'state':x(await _0x2c4561(_0x2cb837[_0x50ee03(0x20c)],'utf8'))};}catch{return{'state':y({..._0x2cb837[_0x50ee03(0x1e3)]===void 0x0?{}:{'randomId':_0x2cb837[_0x50ee03(0x1e3)]}})};}}function x(_0x9bf244){const _0x1f8669=_0x3b33;let _0xff531e=JSON[_0x1f8669(0x1e9)](_0x9bf244);if(!R(_0xff531e)||_0xff531e[_0x1f8669(0x1df)]!==0x1)throw Error('Invalid\x20product\x20telemetry\x20state\x20version.');if(typeof _0xff531e[_0x1f8669(0x22e)]!=_0x1f8669(0x210)||_0xff531e[_0x1f8669(0x22e)]['length']===0x0)throw Error(_0x1f8669(0x212));let _0x58c3d9=R(_0xff531e['events'])?_0xff531e['events']:{};return{'anonymousInstallId':_0xff531e[_0x1f8669(0x22e)],'events':{...P(_0x58c3d9['cli_installed'],_0x1f8669(0x1e5)),...P(_0x58c3d9[_0x1f8669(0x1de)],_0x1f8669(0x1de))},'version':0x1};}function S(_0xfdd38a){const _0x4caf21=_0x3b33;return JSON[_0x4caf21(0x1e0)](_0xfdd38a,null,0x2)+'\x0a';}async function C(_0x2bd3ea){const _0x5aa642=_0x3b33;let _0x52b32d=_0x2bd3ea['stateIo']?.[_0x5aa642(0x1ff)]??_0x26d99d,_0x2f15bf=_0x2bd3ea[_0x5aa642(0x22d)]?.[_0x5aa642(0x1ea)]??_0x55d6a5,_0x4d0558=_0x2bd3ea[_0x5aa642(0x20c)]+'.'+process[_0x5aa642(0x22a)]+'.'+Date[_0x5aa642(0x1e7)]()+'.tmp';try{await _0x180635(_0x2a1d69(_0x2bd3ea['path']),{'mode':0x1c0,'recursive':!0x0}),await _0x52b32d(_0x4d0558,S(_0x2bd3ea[_0x5aa642(0x1f6)]),{'encoding':_0x5aa642(0x21b),'mode':0x180}),await _0x2f15bf(_0x4d0558,_0x2bd3ea[_0x5aa642(0x20c)]);}catch{}}function _0x3b33(_0xe91c0,_0x5b5b47){_0xe91c0=_0xe91c0-0x1d5;const _0x18be84=_0x18be();let _0x3b3388=_0x18be84[_0xe91c0];return _0x3b3388;}function w(_0x1c29a7){const _0x3c9699=_0x3b33;return{..._0x1c29a7[_0x3c9699(0x1f6)],'events':{..._0x1c29a7['state'][_0x3c9699(0x20a)],[_0x1c29a7[_0x3c9699(0x1d7)]]:{'attemptedAt':_0x1c29a7[_0x3c9699(0x1e7)]['toISOString'](),'buildCommit':_0x1c29a7[_0x3c9699(0x214)][_0x3c9699(0x1dd)],'cliVersion':_0x1c29a7[_0x3c9699(0x214)][_0x3c9699(0x1df)]}}};}function _0x18be(){const _0x115629=['properties','readFile','public-npm','UNIVER_MANAGED_BY_BUN','commitHash','cli_first_opened','version','stringify','transport','unknown','randomId','POST','cli_installed','cliVersion','now','72490WnoukY','parse','rename','21BLobnW','trim','isSafeInteger','unref','object','product-telemetry.json','number','ignore','length','42moXGaC','first-open','state','captured','timeoutMs','development-build','split','3216204QHcFSr','packageRoot','versions','10gOmurN','writeFile','pnpm','13957570zoyUqs','UNIVER_HOME','yarn','name','buildCommit','attemptedAt','env','endpoint','UNIVER_MANAGED_BY_NPM','events','timeout','path','239288dLwDdx','distinctId','event','string','.univer','Invalid\x20product\x20telemetry\x20anonymous\x20install\x20id.','internal','buildInfo','eventSource','test','status','not-packaged','postinstall-worker','arch','utf8','package.json','capture','skipped','node','npm','manifest','already-attempted','2671264EusoIK','univer-cli','capture-failed','0.0.0','postinstall','state-unavailable','internal-github','pid','158431CBKCVo','49846WGDbOY','stateIo','anonymousInstallId','execPath','bun','telemetry','config','missing-endpoint','@dream-num/univer-cli','npm_config_user_agent','eventName','11cgKuxE'];_0x18be=function(){return _0x115629;};return _0x18be();}function T(_0x3cb8c8){const _0x580413=_0x3b33;return{'distinctId':_0x3cb8c8[_0x580413(0x1f6)][_0x580413(0x22e)],'event':_0x3cb8c8[_0x580413(0x1d7)],'properties':E(_0x3cb8c8)};}function E(_0xef0a46){const _0x41beb8=_0x3b33;return{'arch':process[_0x41beb8(0x21a)],'build_commit':_0xef0a46[_0x41beb8(0x214)][_0x41beb8(0x1dd)],'cli_version':_0xef0a46[_0x41beb8(0x214)][_0x41beb8(0x1df)],'distribution_channel':M(_0xef0a46[_0x41beb8(0x221)]),'event_source':_0xef0a46[_0x41beb8(0x215)],'install_manager':D(_0xef0a46['env']??process.env),'node_major_version':F(process[_0x41beb8(0x1fd)][_0x41beb8(0x21f)]),'package_name':j(_0xef0a46[_0x41beb8(0x221)]),'platform':_0xeb08db(),'telemetry_state_version':0x1};}function D(_0x4362ec=process.env){const _0x398963=_0x3b33;let _0x17060d=process[_0x398963(0x1fd)];if(typeof _0x17060d['bun']==_0x398963(0x210)&&_0x17060d[_0x398963(0x230)][_0x398963(0x1f3)]>0x0)return'bun';let _0xc52e7=_0x4362ec[_0x398963(0x1d6)]??'';if(/\bbun\//u['test'](_0xc52e7))return _0x398963(0x230);if(/\bpnpm\//u[_0x398963(0x216)](_0xc52e7))return _0x398963(0x200);if(/\byarn\//u[_0x398963(0x216)](_0xc52e7))return _0x398963(0x203);if(/\bnpm\//u['test'](_0xc52e7))return _0x398963(0x220);let _0x4f93ea=_0x4362ec['npm_execpath']??'';return/(^|[/\\])bun(?:\.exe)?$/u[_0x398963(0x216)](_0x4f93ea)?_0x398963(0x230):/(^|[/\\])pnpm(?:\.cmd|\.ps1|\.exe)?$/u['test'](_0x4f93ea)?'pnpm':/(^|[/\\])yarn(?:\.cmd|\.ps1|\.exe)?$/u['test'](_0x4f93ea)?_0x398963(0x203):/(^|[/\\])npm(?:\.cmd|\.ps1|\.exe)?$/u['test'](_0x4f93ea)?_0x398963(0x220):_0x4362ec[_0x398963(0x1dc)]==='1'?'bun':_0x4362ec[_0x398963(0x209)]==='1'?_0x398963(0x220):_0x398963(0x1e2);}async function O(_0x4d8269){const _0x3bacb1=_0x3b33;try{let _0x6c616b=await _0x26b29c(_0x37f3e6(_0x4d8269,_0x3bacb1(0x213),_0x3bacb1(0x1f0)),_0x3bacb1(0x21b));return k(JSON[_0x3bacb1(0x1e9)](_0x6c616b));}catch{return k({});}}function k(_0x6a4fd9){const _0x9429d6=_0x3b33;let _0x3b0436=R(_0x6a4fd9)?_0x6a4fd9:{};return{'endpoint':I(_0x3b0436['endpoint'],'https://univer.ai/api/telemetry/cli'),'timeoutMs':L(_0x3b0436[_0x9429d6(0x1f8)],0x1388)};}var A=class{async[_0x1170d3(0x21d)](_0x2d0c62){const _0x5eb010=_0x1170d3;let _0x55ce39=await fetch(_0x2d0c62[_0x5eb010(0x232)][_0x5eb010(0x208)],{'body':JSON[_0x5eb010(0x1e0)]({'distinctId':_0x2d0c62['capture'][_0x5eb010(0x20e)],'event':_0x2d0c62[_0x5eb010(0x21d)][_0x5eb010(0x20f)],'properties':_0x2d0c62[_0x5eb010(0x21d)][_0x5eb010(0x1d9)]}),'headers':{'content-type':'application/json'},'method':_0x5eb010(0x1e4),'signal':AbortSignal[_0x5eb010(0x20b)](_0x2d0c62[_0x5eb010(0x232)][_0x5eb010(0x1f8)])});if(!_0x55ce39['ok'])throw Error('CLI\x20telemetry\x20proxy\x20failed\x20with\x20status\x20'+_0x55ce39[_0x5eb010(0x217)]);}};function j(_0x4d36e7){const _0x300361=_0x1170d3;try{let _0x4d8b68=JSON['parse'](_0x160e8b(_0x37f3e6(_0x4d36e7['packageRoot'],_0x300361(0x21c)),'utf8'));return typeof _0x4d8b68[_0x300361(0x204)]=='string'&&_0x4d8b68[_0x300361(0x204)][_0x300361(0x1ec)]()[_0x300361(0x1f3)]>0x0?_0x4d8b68[_0x300361(0x204)]:'univer-cli';}catch{return _0x300361(0x224);}}function M(_0x536789){const _0x805c2e=_0x1170d3;let _0x24756f=j(_0x536789);return _0x24756f===_0x805c2e(0x1d5)?_0x805c2e(0x229):_0x24756f===_0x805c2e(0x224)?_0x805c2e(0x1db):_0x536789['mode'];}function N(_0x1d7c9a){const _0x5f343a=_0x1170d3;return _0x1d7c9a['version']===_0x5f343a(0x226);}function P(_0x29b4f8,_0x48b549){const _0x770931=_0x1170d3;return!R(_0x29b4f8)||typeof _0x29b4f8[_0x770931(0x206)]!='string'||typeof _0x29b4f8[_0x770931(0x205)]!=_0x770931(0x210)||typeof _0x29b4f8[_0x770931(0x1e6)]!='string'?{}:{[_0x48b549]:{'attemptedAt':_0x29b4f8[_0x770931(0x206)],'buildCommit':_0x29b4f8[_0x770931(0x205)],'cliVersion':_0x29b4f8[_0x770931(0x1e6)]}};}function F(_0x3d33c6){const _0x2fe888=_0x1170d3;let _0x571154=Number(_0x3d33c6[_0x2fe888(0x1fa)]('.')[0x0]);return Number[_0x2fe888(0x1ed)](_0x571154)&&_0x571154>0x0?_0x571154:void 0x0;}function I(_0x1b022e,_0x43f84c){const _0x556a7e=_0x1170d3;return typeof _0x1b022e==_0x556a7e(0x210)&&_0x1b022e[_0x556a7e(0x1ec)]()[_0x556a7e(0x1f3)]>0x0?_0x1b022e[_0x556a7e(0x1ec)]():_0x43f84c;}function L(_0x45c43e,_0xdf7722){const _0x208e73=_0x1170d3;return typeof _0x45c43e==_0x208e73(0x1f1)&&Number[_0x208e73(0x1ed)](_0x45c43e)&&_0x45c43e>0x0?_0x45c43e:_0xdf7722;}function R(_0x260eed){const _0xe048f8=_0x1170d3;return typeof _0x260eed==_0xe048f8(0x1ef)&&!!_0x260eed;}var z=process['argv'][0x2];try{z===_0x1170d3(0x1f5)?await _():z==='postinstall'?B(_0x1170d3(0x219)):z===_0x1170d3(0x219)&&await g();}catch{}function B(_0xdc6d9a){const _0x582cab=_0x1170d3;_0x3f4531(process[_0x582cab(0x22f)],[_0x24f9ae(import.meta.url),_0xdc6d9a],{'detached':!0x0,'env':process.env,'stdio':_0x582cab(0x1f2),'windowsHide':!0x0})[_0x582cab(0x1ee)]();}
@@ -1 +1 @@
1
- const _0x5d72a3=_0x2481;(function(_0x1059c7,_0x1045e2){const _0x1fa6c1=_0x2481,_0x571a44=_0x1059c7();while(!![]){try{const _0x2acb3a=parseInt(_0x1fa6c1(0x105))/0x1*(-parseInt(_0x1fa6c1(0x106))/0x2)+parseInt(_0x1fa6c1(0x121))/0x3+parseInt(_0x1fa6c1(0x115))/0x4+-parseInt(_0x1fa6c1(0x11c))/0x5*(parseInt(_0x1fa6c1(0x12a))/0x6)+parseInt(_0x1fa6c1(0x123))/0x7+parseInt(_0x1fa6c1(0x10a))/0x8*(parseInt(_0x1fa6c1(0x132))/0x9)+-parseInt(_0x1fa6c1(0x11e))/0xa*(parseInt(_0x1fa6c1(0x102))/0xb);if(_0x2acb3a===_0x1045e2)break;else _0x571a44['push'](_0x571a44['shift']());}catch(_0x27d130){_0x571a44['push'](_0x571a44['shift']());}}}(_0x3a25,0xb522f));import'../chunks/vendor-CgwrUUL6.js';import{t as _0x2824df}from'../chunks/headless-univer-WPFdXbN7.js';import{n as _0x4352b0,o as _0x3b23f5,t as _0x2672b8}from'../chunks/trace-DPfd8LdJ.js';let i=function(_0x376d86){const _0x4f1716=_0x2481;return _0x376d86[_0x4f1716(0xff)]='createWorkbook',_0x376d86[_0x4f1716(0x12d)]=_0x4f1716(0x11d),_0x376d86[_0x4f1716(0x111)]=_0x4f1716(0x11b),_0x376d86[_0x4f1716(0x100)]=_0x4f1716(0x119),_0x376d86[_0x4f1716(0x104)]=_0x4f1716(0x108),_0x376d86[_0x4f1716(0x130)]='loadWorkbookDataReplayPack',_0x376d86;}({});function _0x3a25(){const _0x5dbb45=['LoadWorkbookDataReplayPack','mutations','207ddYjaT','value','code','CreateWorkbook','ExportWorkbookData','type','11gJiXbs','rpc-response','LoadWorkbook','2KCHzge','46604MjQDPT','ready','loadWorkbook','disconnect','382872XDlHKQ','Method\x20not\x20implemented:\x20','data','dispose','SIGTERM','traceparent','tail','ExportWorkbookFile','format','evalJs','meta','1553332sHHUkw','send','loadWorkbookData','method','exportWorkbookData','2.0','exportWorkbookFile','613045RmbPgp','evaljs','18350410heiMDe','withSpan','createWorkbook','1557693AshIFS','exit','6881602ZaicKB','evalJsWithMutationCapture','enqueue','outputPath','params','server','loadWorkbookDataReplayPack','18agyEIp','workbookData','mutates','EvalJs','withContext','message'];_0x3a25=function(){return _0x5dbb45;};return _0x3a25();}var a=class{[_0x5d72a3(0x110)]=Promise['resolve']();async['enqueue'](_0x3fe05b){const _0x395b4c=_0x5d72a3;let _0x2d0840=this[_0x395b4c(0x110)],_0x7207fc;this[_0x395b4c(0x110)]=new Promise(_0x28008c=>{_0x7207fc=_0x28008c;}),await _0x2d0840;try{return await _0x3fe05b();}finally{_0x7207fc?.();}}},o=_0x2824df(),s=new a();function _0x2481(_0x1d6c28,_0x565fd1){_0x1d6c28=_0x1d6c28-0xfe;const _0x3a25c6=_0x3a25();let _0x248194=_0x3a25c6[_0x1d6c28];return _0x248194;}process[_0x5d72a3(0x116)]?.({'type':_0x5d72a3(0x107)}),process['on'](_0x5d72a3(0x12f),async _0x1a8555=>{const _0x255b55=_0x5d72a3;if(_0x1a8555?.[_0x255b55(0x101)]!=='rpc-request')return;let _0x689a7f=await c(_0x1a8555[_0x255b55(0x10c)]);process[_0x255b55(0x116)]?.({'type':_0x255b55(0x103),'id':_0x1a8555['id'],'data':_0x689a7f});}),process['on'](_0x5d72a3(0x109),()=>{const _0x62c2d7=_0x5d72a3;o[_0x62c2d7(0x10d)](),process[_0x62c2d7(0x122)](0x0);}),process['on'](_0x5d72a3(0x10e),()=>{const _0x1c6e2e=_0x5d72a3;o[_0x1c6e2e(0x10d)](),process[_0x1c6e2e(0x122)](0x0);});async function c(_0x4c2aaf){const _0x8cfd9=_0x5d72a3;let _0x1eeda6=_0x2672b8(_0x4c2aaf[_0x8cfd9(0x114)]?.[_0x8cfd9(0x10f)]),_0xa9dad5=async()=>await _0x4352b0[_0x8cfd9(0x11f)]({'name':_0x3b23f5['RuntimeRpcClient'],'kind':_0x8cfd9(0x128)},async()=>await l(_0x4c2aaf));return _0x1eeda6===void 0x0?await _0xa9dad5():await _0x4352b0[_0x8cfd9(0x12e)](_0x1eeda6,_0xa9dad5);}async function l(_0x1372cc){const _0x3c03b8=_0x5d72a3;try{switch(_0x1372cc[_0x3c03b8(0x118)]){case i[_0x3c03b8(0xff)]:{let _0x418925=o[_0x3c03b8(0x120)](_0x1372cc['params']??{});return{'jsonrpc':'2.0','id':_0x1372cc['id'],'result':{'success':!0x0,'workbookData':_0x418925}};}case i[_0x3c03b8(0x104)]:{let _0xe21920=o[_0x3c03b8(0x117)](_0x1372cc[_0x3c03b8(0x127)][_0x3c03b8(0x12b)]);return{'jsonrpc':_0x3c03b8(0x11a),'id':_0x1372cc['id'],'result':{'success':!0x0,'workbookData':_0xe21920}};}case i[_0x3c03b8(0x130)]:return await o[_0x3c03b8(0x129)](_0x1372cc[_0x3c03b8(0x127)]),{'jsonrpc':_0x3c03b8(0x11a),'id':_0x1372cc['id'],'result':{'success':!0x0}};case i[_0x3c03b8(0x100)]:return{'jsonrpc':_0x3c03b8(0x11a),'id':_0x1372cc['id'],'result':{'success':!0x0,'workbookData':o[_0x3c03b8(0x119)]()}};case i[_0x3c03b8(0x111)]:{let _0x538d17=_0x1372cc[_0x3c03b8(0x127)],_0x3bdc21=await o[_0x3c03b8(0x11b)](_0x538d17[_0x3c03b8(0x126)],_0x538d17[_0x3c03b8(0x112)]);return{'jsonrpc':'2.0','id':_0x1372cc['id'],'result':{'success':!0x0,..._0x3bdc21}};}case i[_0x3c03b8(0x12d)]:{let _0x429321=_0x1372cc['params']??{},_0x428331=async()=>{const _0x24badf=_0x3c03b8;let _0x55420d=_0x429321[_0x24badf(0x12c)]?await o[_0x24badf(0x124)](_0x429321[_0x24badf(0xfe)],_0x429321['maxCodeLength']):{'value':await o[_0x24badf(0x113)](_0x429321['code'],_0x429321['maxCodeLength']),'mutations':void 0x0};return{'success':!0x0,..._0x55420d[_0x24badf(0x131)]===void 0x0?{}:{'mutations':_0x55420d[_0x24badf(0x131)]},'value':_0x55420d[_0x24badf(0x133)]};},_0x568242=_0x429321[_0x3c03b8(0x12c)]?await s[_0x3c03b8(0x125)](_0x428331):await _0x428331();return{'jsonrpc':'2.0','id':_0x1372cc['id'],'result':_0x568242};}default:throw Error(_0x3c03b8(0x10b)+String(_0x1372cc['method']));}}catch(_0x13bb0b){return{'jsonrpc':_0x3c03b8(0x11a),'id':_0x1372cc['id'],'error':{'code':-0x7f5b,'message':_0x13bb0b instanceof Error?_0x13bb0b[_0x3c03b8(0x12f)]:String(_0x13bb0b)}};}}
1
+ const _0x4b7f1c=_0x128e;(function(_0x35d801,_0x475707){const _0x5c8293=_0x128e,_0x314ec0=_0x35d801();while(!![]){try{const _0x2902e7=-parseInt(_0x5c8293(0x174))/0x1*(parseInt(_0x5c8293(0x199))/0x2)+-parseInt(_0x5c8293(0x197))/0x3+parseInt(_0x5c8293(0x16d))/0x4*(parseInt(_0x5c8293(0x172))/0x5)+parseInt(_0x5c8293(0x18b))/0x6+parseInt(_0x5c8293(0x177))/0x7+-parseInt(_0x5c8293(0x18e))/0x8*(parseInt(_0x5c8293(0x18c))/0x9)+-parseInt(_0x5c8293(0x185))/0xa;if(_0x2902e7===_0x475707)break;else _0x314ec0['push'](_0x314ec0['shift']());}catch(_0x3aadb6){_0x314ec0['push'](_0x314ec0['shift']());}}}(_0x1ddb,0xe01aa));import'../chunks/vendor-CgwrUUL6.js';import{t as _0x4754e9}from'../chunks/headless-univer-B0Rozw6u.js';function _0x128e(_0x21fa9a,_0x1a6194){_0x21fa9a=_0x21fa9a-0x16c;const _0x1ddb7e=_0x1ddb();let _0x128e86=_0x1ddb7e[_0x21fa9a];return _0x128e86;}import{n as _0x5d4d02,o as _0x59a1fe,t as _0xf83652}from'../chunks/trace-DPfd8LdJ.js';let i=function(_0x24e629){const _0x23aa16=_0x128e;return _0x24e629[_0x23aa16(0x198)]=_0x23aa16(0x195),_0x24e629['EvalJs']='evaljs',_0x24e629[_0x23aa16(0x16c)]=_0x23aa16(0x16f),_0x24e629['ExportWorkbookData']=_0x23aa16(0x17b),_0x24e629[_0x23aa16(0x176)]=_0x23aa16(0x16e),_0x24e629[_0x23aa16(0x19b)]=_0x23aa16(0x17d),_0x24e629;}({});var a=class{[_0x4b7f1c(0x178)]=Promise[_0x4b7f1c(0x17c)]();async['enqueue'](_0x5189e9){const _0x475b7d=_0x4b7f1c;let _0x5a6a76=this[_0x475b7d(0x178)],_0x516036;this['tail']=new Promise(_0x225265=>{_0x516036=_0x225265;}),await _0x5a6a76;try{return await _0x5189e9();}finally{_0x516036?.();}}},o=_0x4754e9(),s=new a();process['send']?.({'type':_0x4b7f1c(0x17e)}),process['on'](_0x4b7f1c(0x191),async _0x1a0509=>{const _0x527649=_0x4b7f1c;if(_0x1a0509?.[_0x527649(0x188)]!=='rpc-request')return;let _0x479cb4=await c(_0x1a0509[_0x527649(0x18f)]);process['send']?.({'type':_0x527649(0x182),'id':_0x1a0509['id'],'data':_0x479cb4});}),process['on']('disconnect',()=>{const _0x538400=_0x4b7f1c;o[_0x538400(0x18d)](),process['exit'](0x0);}),process['on'](_0x4b7f1c(0x170),()=>{const _0x1457ac=_0x4b7f1c;o[_0x1457ac(0x18d)](),process[_0x1457ac(0x196)](0x0);});async function c(_0x1bbc2a){const _0x42b42a=_0x4b7f1c;let _0x38a9cb=_0xf83652(_0x1bbc2a[_0x42b42a(0x193)]?.[_0x42b42a(0x190)]),_0x33e41c=async()=>await _0x5d4d02[_0x42b42a(0x17a)]({'name':_0x59a1fe[_0x42b42a(0x183)],'kind':'server'},async()=>await l(_0x1bbc2a));return _0x38a9cb===void 0x0?await _0x33e41c():await _0x5d4d02[_0x42b42a(0x181)](_0x38a9cb,_0x33e41c);}async function l(_0x4145fc){const _0x52bd2f=_0x4b7f1c;try{switch(_0x4145fc['method']){case i['CreateWorkbook']:{let _0x36501f=o[_0x52bd2f(0x195)](_0x4145fc[_0x52bd2f(0x184)]??{});return{'jsonrpc':_0x52bd2f(0x192),'id':_0x4145fc['id'],'result':{'success':!0x0,'workbookData':_0x36501f}};}case i[_0x52bd2f(0x176)]:{let _0x26997e=o[_0x52bd2f(0x17f)](_0x4145fc[_0x52bd2f(0x184)][_0x52bd2f(0x186)]);return{'jsonrpc':_0x52bd2f(0x192),'id':_0x4145fc['id'],'result':{'success':!0x0,'workbookData':_0x26997e}};}case i[_0x52bd2f(0x19b)]:return await o[_0x52bd2f(0x17d)](_0x4145fc['params']),{'jsonrpc':'2.0','id':_0x4145fc['id'],'result':{'success':!0x0}};case i[_0x52bd2f(0x173)]:return{'jsonrpc':_0x52bd2f(0x192),'id':_0x4145fc['id'],'result':{'success':!0x0,'workbookData':o[_0x52bd2f(0x17b)]()}};case i['ExportWorkbookFile']:{let _0x369ebf=_0x4145fc[_0x52bd2f(0x184)],_0xd0ebea=await o[_0x52bd2f(0x16f)](_0x369ebf[_0x52bd2f(0x175)],_0x369ebf['format']);return{'jsonrpc':_0x52bd2f(0x192),'id':_0x4145fc['id'],'result':{'success':!0x0,..._0xd0ebea}};}case i['EvalJs']:{let _0x3e1f52=_0x4145fc['params']??{},_0x5d66a2=async()=>{const _0x34adc3=_0x52bd2f;let _0xee3570=_0x3e1f52[_0x34adc3(0x180)]?await o[_0x34adc3(0x187)](_0x3e1f52['code'],_0x3e1f52['maxCodeLength']):{'value':await o[_0x34adc3(0x189)](_0x3e1f52[_0x34adc3(0x19a)],_0x3e1f52['maxCodeLength']),'mutations':void 0x0};return{'success':!0x0,..._0xee3570['mutations']===void 0x0?{}:{'mutations':_0xee3570[_0x34adc3(0x179)]},'value':_0xee3570[_0x34adc3(0x18a)]};},_0x3192e0=_0x3e1f52[_0x52bd2f(0x180)]?await s['enqueue'](_0x5d66a2):await _0x5d66a2();return{'jsonrpc':_0x52bd2f(0x192),'id':_0x4145fc['id'],'result':_0x3192e0};}default:throw Error(_0x52bd2f(0x171)+String(_0x4145fc[_0x52bd2f(0x194)]));}}catch(_0x5a595e){return{'jsonrpc':_0x52bd2f(0x192),'id':_0x4145fc['id'],'error':{'code':-0x7f5b,'message':_0x5a595e instanceof Error?_0x5a595e['message']:String(_0x5a595e)}};}}function _0x1ddb(){const _0x33dc78=['evalJsWithMutationCapture','type','evalJs','value','2467752xPMibg','2196918bpeZOP','dispose','8ocFAgC','data','traceparent','message','2.0','meta','method','createWorkbook','exit','1495356sYoduT','CreateWorkbook','1671822GHezHU','code','LoadWorkbookDataReplayPack','ExportWorkbookFile','2119244dwdUuA','loadWorkbook','exportWorkbookFile','SIGTERM','Method\x20not\x20implemented:\x20','15gkgUWl','ExportWorkbookData','1UPyWtL','outputPath','LoadWorkbook','8405859uFjXzS','tail','mutations','withSpan','exportWorkbookData','resolve','loadWorkbookDataReplayPack','ready','loadWorkbookData','mutates','withContext','rpc-response','RuntimeRpcClient','params','7051670pGMxQQ','workbookData'];_0x1ddb=function(){return _0x33dc78;};return _0x1ddb();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "univer-cli",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "Command-line tools for local Univer workbook automation.",
5
5
  "repository": {
6
6
  "type": "git",