univer-cli 0.1.20 → 0.1.22

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 _0xfd75d1=_0x7641;(function(_0x5cb427,_0x340d92){const _0x44e169=_0x7641,_0x53c291=_0x5cb427();while(!![]){try{const _0x2d9c6a=-parseInt(_0x44e169(0x94))/0x1+parseInt(_0x44e169(0xb6))/0x2*(parseInt(_0x44e169(0x91))/0x3)+parseInt(_0x44e169(0x9d))/0x4+parseInt(_0x44e169(0xca))/0x5*(parseInt(_0x44e169(0xa0))/0x6)+parseInt(_0x44e169(0xe1))/0x7+-parseInt(_0x44e169(0xc5))/0x8*(parseInt(_0x44e169(0x9a))/0x9)+parseInt(_0x44e169(0xd0))/0xa;if(_0x2d9c6a===_0x340d92)break;else _0x53c291['push'](_0x53c291['shift']());}catch(_0x41dfe1){_0x53c291['push'](_0x53c291['shift']());}}}(_0x11e7,0x2a733));import'../chunks/vendor-CgwrUUL6.js';import{a as _0x1311d9,i as _0x531290,n,o as _0xf59f0,r as _0x47278f,t as _0x1681b9}from'../chunks/trace-DPfd8LdJ.js';import{a as _0x4b58d1,d as _0x10a065,l as _0xe2760a,m as _0x50a6f3,n as _0x1982a3,u as _0x4191f7}from'../chunks/node-BLWTwYLW.js';function _0x7641(_0x2fd5ee,_0x16b52c){_0x2fd5ee=_0x2fd5ee-0x72;const _0x11e7c6=_0x11e7();let _0x76418f=_0x11e7c6[_0x2fd5ee];return _0x76418f;}import{t as _0x19ee78}from'../chunks/build-id-Coc3wh1M.js';import{n as _0xbc40c4}from'../chunks/runtime-manifest-D6bFR_JZ.js';import{existsSync as _0x996241}from'node:fs';import{chmod as _0x1b7caa,mkdir as _0x5ed465,readFile as _0x58b207,rm as _0x52e3af,writeFile as _0x354b5a}from'node:fs/promises';import _0xb1e6b6 from'node:net';import _0x5ed6aa from'node:process';var S=0x2bf20,C=new _0x1982a3();async function w(_0x1eb4f6={}){const _0x327e40=_0x7641;let _0x5560db=_0x1eb4f6[_0x327e40(0x9b)]??_0x5ed6aa[_0x327e40(0x9b)],_0x17f2ae=_0x4191f7(_0x5560db),_0x5f48b6=_0xbc40c4(_0x5560db),_0x513763=_0x1eb4f6[_0x327e40(0xe7)]??D(new _0x4b58d1({'env':_0x5560db,'logger':_0x10a065({'env':_0x5560db,'role':_0x1311d9['Runtime']}),'resolveExecutionPlaneOptions':()=>({'execArgv':[..._0x5f48b6[_0x327e40(0xc8)]['execArgv']],'modulePath':_0x5f48b6[_0x327e40(0xc8)][_0x327e40(0xd7)]}),'rpcTimeoutMs':S})),_0x5a668d=_0x19ee78(_0x5560db),_0x1dfb17=new Date()[_0x327e40(0x89)]();if(await _0x5ed465(_0x17f2ae[_0x327e40(0x9e)],{'recursive':!0x0,'mode':0x1c0}),await _0x5ed465(_0x17f2ae[_0x327e40(0xd4)],{'recursive':!0x0,'mode':0x1c0}),!await N(_0x17f2ae[_0x327e40(0xb9)],_0x17f2ae[_0x327e40(0xac)])){if(await P(_0x17f2ae[_0x327e40(0xc3)]))return;throw Error(_0x327e40(0xed)+_0x17f2ae['lockPath']);}await M(_0x17f2ae);let _0x3151f0=_0x10a065({'env':_0x5560db,'role':_0x1311d9['Daemon']}),_0xf4b074=A({'buildId':_0x5a668d,'env':_0x5560db,'pid':_0x5ed6aa[_0x327e40(0xec)]}),_0x382cae=!0x1,_0x3a8f14={},_0x36778d=async _0x2ef47d=>B(null,-0x7f5b,Error('Daemon\x20handler\x20not\x20ready:\x20'+_0x2ef47d)),_0x2e4534=_0xb1e6b6[_0x327e40(0xa5)](_0x519765=>{const _0x2cc2fd=_0x327e40;let _0x562b24='';_0x519765['on'](_0x2cc2fd(0x97),_0x5387ea=>{const _0x15cfb6=_0x2cc2fd;_0x562b24+=_0x5387ea[_0x15cfb6(0x82)](_0x15cfb6(0x84)),_0x52eb09();}),_0x519765['on'](_0x2cc2fd(0xe0),()=>void 0x0);let _0x52eb09=async()=>{const _0x456275=_0x2cc2fd;for(;;){let _0x2fba59=_0x562b24[_0x456275(0xb7)]('\x0a');if(_0x2fba59<0x0)return;let _0x1facf5=_0x562b24[_0x456275(0xb4)](0x0,_0x2fba59)[_0x456275(0x78)]();if(_0x562b24=_0x562b24['slice'](_0x2fba59+0x1),!_0x1facf5)continue;let _0x1f8c21=await _0x36778d(_0x1facf5);_0x519765[_0x456275(0xc2)](JSON[_0x456275(0x7d)](_0x1f8c21)+'\x0a');}};});_0x36778d=T({'buildId':_0x5a668d,'logRequestEvent':async _0x12d48d=>{const _0x97b18f=_0x327e40;_0x3151f0[_0x97b18f(0xaa)]({'level':_0x12d48d[_0x97b18f(0xab)]===_0x531290['DaemonRpcError']?_0x97b18f(0xe0):'info','event_name':_0x12d48d['eventName'],'component':_0x47278f['Daemon'],'process_role':_0x1311d9[_0x97b18f(0xbb)],..._0x12d48d[_0x97b18f(0xe0)]===void 0x0?{}:{'error':_0x12d48d[_0x97b18f(0xe0)]},'fields':{..._0xf4b074,..._0x12d48d[_0x97b18f(0x7f)]===void 0x0?{}:{'duration_ms':_0x12d48d[_0x97b18f(0x7f)]},'method':_0x12d48d[_0x97b18f(0x95)],'timestamp':_0x12d48d[_0x97b18f(0xe8)]}});},'logRequestError':async _0x4b6a4b=>{const _0x4e8548=_0x327e40;_0x3151f0[_0x4e8548(0xe0)]({'event_name':_0x531290['DaemonRpcError'],'component':_0x47278f[_0x4e8548(0xbb)],'process_role':_0x1311d9[_0x4e8548(0xbb)],'error':_0x4b6a4b[_0x4e8548(0xe0)],'fields':{..._0xf4b074,'method':_0x4b6a4b[_0x4e8548(0x95)],'timestamp':_0x4b6a4b[_0x4e8548(0xe8)]}});},'onShutdownRequest':()=>{const _0x1a6947=_0x327e40;_0x133fa1('rpc-shutdown')[_0x1a6947(0xb5)](()=>{_0x5ed6aa['exit'](0x0);});},'pid':_0x5ed6aa['pid'],'runtimeRoot':_0x17f2ae[_0x327e40(0xd8)],'sessionHost':_0x513763,'socketPath':_0x17f2ae[_0x327e40(0xc3)],'startedAt':_0x1dfb17}),await new Promise((_0x1063af,_0x22809e)=>{const _0x3e1632=_0x327e40;_0x2e4534['once'](_0x3e1632(0xe0),_0x22809e),_0x2e4534[_0x3e1632(0xc1)](_0x17f2ae[_0x3e1632(0xc3)],_0x1063af);}),_0xe2760a(_0x17f2ae['socketPath'])||await _0x1b7caa(_0x17f2ae[_0x327e40(0xc3)],0x180);let _0x180cb6={'pid':_0x5ed6aa[_0x327e40(0xec)],'startedAt':_0x1dfb17,'socketPath':_0x17f2ae[_0x327e40(0xc3)],'runtimeRoot':_0x17f2ae['homeDir'],'buildId':_0x5a668d};await _0x354b5a(_0x17f2ae['pidPath'],String(_0x5ed6aa[_0x327e40(0xec)]),_0x327e40(0x84)),await _0x354b5a(_0x17f2ae['metaPath'],JSON['stringify'](_0x180cb6,null,0x2),_0x327e40(0x84)),_0x3151f0['info']({'event_name':_0x531290['DaemonStart'],'component':_0x47278f['Daemon'],'process_role':_0x1311d9[_0x327e40(0xbb)],'fields':{..._0xf4b074,'pid':_0x5ed6aa['pid'],'runtime_root':_0x17f2ae[_0x327e40(0xd8)],'socket_path':_0x17f2ae[_0x327e40(0xc3)],'started_at':_0x1dfb17}}),await _0x3151f0[_0x327e40(0x7c)]();let _0x4350e0=setInterval(()=>{_0x513763['unloadIdleSessions']();},Math[_0x327e40(0x76)](0x3e8,Math[_0x327e40(0xe5)](_0x513763[_0x327e40(0xdb)](),0xea60)));_0x4350e0[_0x327e40(0x79)](),_0x3a8f14[_0x327e40(0xce)]=_0x4350e0;async function _0x133fa1(_0x12ba2a){const _0x446c6a=_0x327e40;_0x382cae||(_0x382cae=!0x0,_0x3a8f14[_0x446c6a(0xce)]!==void 0x0&&clearInterval(_0x3a8f14['current']),_0x3151f0[_0x446c6a(0x8a)]({'event_name':_0x531290[_0x446c6a(0xd5)],'component':_0x47278f['Daemon'],'process_role':_0x1311d9[_0x446c6a(0xbb)],'fields':{..._0xf4b074,'pid':_0x5ed6aa[_0x446c6a(0xec)],'reason':_0x12ba2a,'timestamp':new Date()[_0x446c6a(0x89)]()}}),await _0x3151f0[_0x446c6a(0x7c)](),await _0x513763[_0x446c6a(0x8b)](_0x12ba2a),await new Promise(_0x2f4f00=>{_0x2e4534['close'](()=>_0x2f4f00());}),await I(_0x17f2ae[_0x446c6a(0xc3)]),await _0x52e3af(_0x17f2ae[_0x446c6a(0xac)],{'force':!0x0})[_0x446c6a(0x7e)](()=>void 0x0),await _0x52e3af(_0x17f2ae['metaPath'],{'force':!0x0})[_0x446c6a(0x7e)](()=>void 0x0),await _0x52e3af(_0x17f2ae[_0x446c6a(0xb9)],{'recursive':!0x0,'force':!0x0})[_0x446c6a(0x7e)](()=>void 0x0));}_0x5ed6aa['on'](_0x327e40(0xdc),()=>{const _0x46f091=_0x327e40;_0x133fa1(_0x46f091(0x86))[_0x46f091(0xb5)](()=>{const _0x5a78a8=_0x46f091;_0x5ed6aa[_0x5a78a8(0xaf)](0x0);});}),_0x5ed6aa['on'](_0x327e40(0xd1),()=>{const _0x30ce4f=_0x327e40;_0x133fa1(_0x30ce4f(0xc0))[_0x30ce4f(0xb5)](()=>{const _0x319510=_0x30ce4f;_0x5ed6aa[_0x319510(0xaf)](0x0);});});}function T(_0x2804c7){return async _0x19449c=>{const _0xafc556=_0x7641;let _0x49ca15;try{_0x49ca15=JSON['parse'](_0x19449c);}catch(_0x565231){return B(null,-0x7fbc,_0x565231);}let _0x691d4c=_0x1681b9(_0x49ca15[_0xafc556(0x7b)]?.[_0xafc556(0x8d)]),_0x69c86a=async()=>await n[_0xafc556(0x92)]({'name':_0xf59f0[_0xafc556(0xa2)],'kind':_0xafc556(0x8f)},async()=>{const _0x4c1c9d=_0xafc556;let _0x32ac13=Date[_0x4c1c9d(0x9c)]();await _0x2804c7[_0x4c1c9d(0xa6)]?.({'eventName':_0x531290[_0x4c1c9d(0xe2)],'method':_0x49ca15[_0x4c1c9d(0x95)],'timestamp':new Date()[_0x4c1c9d(0x89)]()});try{let _0x5671d3=await E(_0x49ca15,_0x2804c7);return await _0x2804c7[_0x4c1c9d(0xa6)]?.({'durationMs':Date[_0x4c1c9d(0x9c)]()-_0x32ac13,'eventName':_0x531290[_0x4c1c9d(0x9f)],'method':_0x49ca15['method'],'timestamp':new Date()[_0x4c1c9d(0x89)]()}),_0x5671d3;}catch(_0x5992e0){return await _0x2804c7[_0x4c1c9d(0xa6)]?.({'durationMs':Date[_0x4c1c9d(0x9c)]()-_0x32ac13,'eventName':_0x531290[_0x4c1c9d(0x83)],'method':_0x49ca15[_0x4c1c9d(0x95)],'error':_0x5992e0,'timestamp':new Date()[_0x4c1c9d(0x89)]()}),_0x2804c7['logRequestEvent']===void 0x0&&await _0x2804c7['logRequestError']?.({'method':_0x49ca15[_0x4c1c9d(0x95)],'error':_0x5992e0 instanceof Error?_0x5992e0[_0x4c1c9d(0xcf)]:String(_0x5992e0),'timestamp':new Date()[_0x4c1c9d(0x89)]()}),B(_0x49ca15['id'],-0x7f5b,_0x5992e0);}});return _0x691d4c===void 0x0?await _0x69c86a():await n[_0xafc556(0xa7)](_0x691d4c,_0x69c86a);};}async function E(_0x57db7d,_0x21c771){const _0x9d50c4=_0x7641;switch(_0x57db7d[_0x9d50c4(0x95)]){case _0x50a6f3[_0x9d50c4(0x98)]:return{'jsonrpc':_0x9d50c4(0x99),'id':_0x57db7d['id'],'result':{'ok':!0x0,'pid':_0x21c771[_0x9d50c4(0xec)],'startedAt':_0x21c771[_0x9d50c4(0xbd)],'socketPath':_0x21c771[_0x9d50c4(0xc3)],'runtimeRoot':_0x21c771[_0x9d50c4(0xeb)],'buildId':_0x21c771['buildId'],'sessionCount':_0x21c771[_0x9d50c4(0xe7)][_0x9d50c4(0x8c)]()}};case _0x50a6f3[_0x9d50c4(0x90)]:return _0x21c771[_0x9d50c4(0xb8)]?.(),{'jsonrpc':_0x9d50c4(0x99),'id':_0x57db7d['id'],'result':{'stopping':!0x0}};case _0x50a6f3[_0x9d50c4(0xc4)]:{let _0x582be9=await _0x21c771['sessionHost'][_0x9d50c4(0xdf)](_0x57db7d[_0x9d50c4(0xbe)]);return z(_0x57db7d['id'],_0x582be9);}case _0x50a6f3['SessionLoadWorkbookDataReplayPack']:{let _0x596d9c=await _0x21c771[_0x9d50c4(0xe7)][_0x9d50c4(0xc9)](_0x57db7d['params']);return z(_0x57db7d['id'],_0x596d9c);}case _0x50a6f3['SessionCreateWorkbook']:{let _0x480ec6=await _0x21c771[_0x9d50c4(0xe7)][_0x9d50c4(0xee)](_0x57db7d[_0x9d50c4(0xbe)]);return z(_0x57db7d['id'],_0x480ec6);}case _0x50a6f3[_0x9d50c4(0xc7)]:{let _0x2cb674=await _0x21c771['sessionHost'][_0x9d50c4(0xdd)](_0x57db7d[_0x9d50c4(0xbe)]);return z(_0x57db7d['id'],_0x2cb674);}case _0x50a6f3['SessionExportWorkbookFile']:{let _0x81918e=await _0x21c771[_0x9d50c4(0xe7)]['exportWorkbookFile'](_0x57db7d[_0x9d50c4(0xbe)]);return z(_0x57db7d['id'],_0x81918e);}case _0x50a6f3[_0x9d50c4(0xb3)]:{let _0x115fdd=_0x57db7d[_0x9d50c4(0xbe)],_0x115eed=await _0x21c771[_0x9d50c4(0xe7)][_0x9d50c4(0xd2)](_0x115fdd);return z(_0x57db7d['id'],_0x115eed);}case _0x50a6f3[_0x9d50c4(0x77)]:{let _0x20b95d=await _0x21c771['sessionHost']['dispose'](_0x57db7d[_0x9d50c4(0xbe)]);return z(_0x57db7d['id'],_0x20b95d);}case _0x50a6f3['SessionGetWorkbook']:{let _0xd88841=await _0x21c771['sessionHost']['getWorkbookSession'](_0x57db7d[_0x9d50c4(0xbe)]);return z(_0x57db7d['id'],_0xd88841);}default:return B(_0x57db7d['id'],-0x7f59,Error('Method\x20not\x20found:\x20'+_0x57db7d['method']));}}function D(_0x50a186){return{async 'createWorkbook'(_0x28676f){const _0x299173=_0x7641;let _0x201a9c=await O(_0x28676f),_0x2f4e4e=await _0x50a186[_0x299173(0xee)]({..._0x28676f['cwd']===void 0x0?{}:{'cwd':_0x28676f[_0x299173(0xe4)]},'identity':_0x201a9c,..._0x28676f['id']===void 0x0?{}:{'workbookId':_0x28676f['id']},..._0x28676f[_0x299173(0x87)]===void 0x0?{}:{'workbookName':_0x28676f[_0x299173(0x87)]}});return{'success':!0x0,'workbookData':_0x2f4e4e[_0x299173(0xbc)],'session':k(_0x2f4e4e['session'])};},async 'dispose'(_0x575fb5){const _0x25adb4=_0x7641;let _0x2a907b=await O(_0x575fb5);return await _0x50a186[_0x25adb4(0xd3)]({..._0x575fb5[_0x25adb4(0xe4)]===void 0x0?{}:{'cwd':_0x575fb5['cwd']},'identity':_0x2a907b}),{'disposed':!0x0,'workbookIdentity':_0x2a907b[_0x25adb4(0xa1)]};},async 'destroyAll'(_0x16ec79){const _0x30f6fa=_0x7641;await _0x50a186[_0x30f6fa(0x8b)]?.(_0x16ec79);},async 'evalJs'(_0x3bebbc){const _0x510766=_0x7641;let _0x1d2aa6=await O(_0x3bebbc),_0x6c4a77=await _0x50a186[_0x510766(0xdd)]({'code':_0x3bebbc[_0x510766(0xae)],..._0x3bebbc[_0x510766(0xe4)]===void 0x0?{}:{'cwd':_0x3bebbc[_0x510766(0xe4)]},'identity':_0x1d2aa6,..._0x3bebbc[_0x510766(0xa4)]===void 0x0?{}:{'maxCodeLength':_0x3bebbc[_0x510766(0xa4)]},..._0x3bebbc[_0x510766(0xbf)]===void 0x0?{}:{'mutates':_0x3bebbc[_0x510766(0xbf)]}});return{..._0x6c4a77[_0x510766(0xa8)]===void 0x0?{}:{'mutations':_0x6c4a77[_0x510766(0xa8)]},'success':!0x0,'value':_0x6c4a77[_0x510766(0xc6)],'session':k(_0x6c4a77['session'])};},async 'exportWorkbookData'(_0xc051c5){const _0x4cdd68=_0x7641;let _0x267f37=await O(_0xc051c5),_0x77e02b=await _0x50a186[_0x4cdd68(0xd2)]({..._0xc051c5[_0x4cdd68(0xe4)]===void 0x0?{}:{'cwd':_0xc051c5[_0x4cdd68(0xe4)]},'identity':_0x267f37});return{'success':!0x0,'workbookData':_0x77e02b['workbookData'],'session':k(_0x77e02b[_0x4cdd68(0x74)])};},async 'exportWorkbookFile'(_0x18332d){const _0x3d5cbc=_0x7641;let _0x4d7ac6=await O(_0x18332d),_0x214de0=await _0x50a186[_0x3d5cbc(0xcc)]({..._0x18332d[_0x3d5cbc(0xe4)]===void 0x0?{}:{'cwd':_0x18332d[_0x3d5cbc(0xe4)]},'format':_0x18332d[_0x3d5cbc(0xcb)],'identity':_0x4d7ac6,'outputPath':_0x18332d['outputPath']});return{'success':!0x0,'format':_0x214de0[_0x3d5cbc(0xcb)],'outputPath':_0x214de0[_0x3d5cbc(0xea)],'sizeBytes':_0x214de0[_0x3d5cbc(0xe9)],'session':k(_0x214de0['session'])};},async 'getWorkbookSession'(_0x234d4e){const _0x592b9e=_0x7641;let _0x361fb0=await O(_0x234d4e),_0x309df4=await _0x50a186[_0x592b9e(0x73)]({..._0x234d4e[_0x592b9e(0xe4)]===void 0x0?{}:{'cwd':_0x234d4e['cwd']},'identity':_0x361fb0});return{'exists':_0x309df4!==null,'session':_0x309df4===null?null:k(_0x309df4)};},'getSessionCount'(){const _0x5b96ee=_0x7641;return _0x50a186[_0x5b96ee(0x8c)]?.()??0x0;},'getSessionIdleTtlMs'(){const _0x17055f=_0x7641;return _0x50a186[_0x17055f(0xdb)]?.()??0xea60;},async 'loadWorkbook'(_0x4bd124){const _0xe77065=_0x7641;let _0x2401ed=await O(_0x4bd124),_0x2f5ffa=await _0x50a186[_0xe77065(0xde)]({..._0x4bd124[_0xe77065(0xe4)]===void 0x0?{}:{'cwd':_0x4bd124[_0xe77065(0xe4)]},'identity':_0x2401ed,'workbookData':_0x4bd124[_0xe77065(0xbc)]});return{'success':!0x0,'workbookData':_0x2f5ffa[_0xe77065(0xbc)],'session':k(_0x2f5ffa['session'])};},async 'loadWorkbookDataReplayPack'(_0x438de3){const _0x1196bb=_0x7641;let _0x519e2b=await O(_0x438de3);return{'success':!0x0,'session':k((await _0x50a186[_0x1196bb(0xc9)]({..._0x438de3['cwd']===void 0x0?{}:{'cwd':_0x438de3[_0x1196bb(0xe4)]},'identity':_0x519e2b,'replayPack':{'baseWorkbookData':_0x438de3[_0x1196bb(0x80)],'mutations':_0x438de3[_0x1196bb(0xa8)]}}))[_0x1196bb(0x74)])};},async 'unloadIdleSessions'(){const _0x816c23=_0x7641;await _0x50a186[_0x816c23(0xe6)]?.();}};}async function O(_0x1e2edd){const _0x1a0572=_0x7641;return await C[_0x1a0572(0xcd)](_0x1e2edd);}function k(_0x9e1405){const _0x3388ce=_0x7641;return{'createdAt':_0x9e1405[_0x3388ce(0xa3)]??'','lastAccessedAt':_0x9e1405[_0x3388ce(0x7a)]??'','sessionId':_0x9e1405[_0x3388ce(0x72)],'workbookIdentity':_0x9e1405['packageIdentity'][_0x3388ce(0xa1)]};}function A(_0x60cd1e){const _0x46bf39=_0x7641;return{'build.id':j(_0x60cd1e[_0x46bf39(0x9b)],_0x46bf39(0x8e))??_0x60cd1e[_0x46bf39(0x85)],'deployment.environment.name':_0x46bf39(0xa9),'distribution.channel':j(_0x60cd1e[_0x46bf39(0x9b)],_0x46bf39(0x75))??_0x46bf39(0x81),'service.instance.id':String(_0x60cd1e[_0x46bf39(0xec)]),'service.name':_0x46bf39(0xb2),...j(_0x60cd1e[_0x46bf39(0x9b)],_0x46bf39(0xe3))===void 0x0?{}:{'service.version':j(_0x60cd1e['env'],'UNIVER_CLI_VERSION')}};}function j(_0x29d96c,_0x2ccde6){const _0x163f1e=_0x7641;let _0x49d7b8=_0x29d96c[_0x2ccde6]?.[_0x163f1e(0x78)]();return _0x49d7b8===void 0x0||_0x49d7b8['length']===0x0?void 0x0:_0x49d7b8;}async function M(_0x174a73){const _0x2101f5=_0x7641;F(_0x174a73[_0x2101f5(0xc3)])&&!await P(_0x174a73[_0x2101f5(0xc3)])&&await I(_0x174a73[_0x2101f5(0xc3)]);let _0x109528=await L(_0x174a73[_0x2101f5(0xac)]);_0x109528!==null&&!R(_0x109528)&&(await _0x52e3af(_0x174a73[_0x2101f5(0xac)],{'force':!0x0})[_0x2101f5(0x7e)](()=>void 0x0),await _0x52e3af(_0x174a73[_0x2101f5(0x88)],{'force':!0x0})[_0x2101f5(0x7e)](()=>void 0x0),await _0x52e3af(_0x174a73['lockPath'],{'recursive':!0x0,'force':!0x0})[_0x2101f5(0x7e)](()=>void 0x0));}async function N(_0x55bc64,_0x644d6d){const _0x1c36ea=_0x7641;try{return await _0x5ed465(_0x55bc64,{'recursive':!0x1,'mode':0x1c0}),!0x0;}catch(_0xf4c984){if(_0xf4c984[_0x1c36ea(0xae)]!==_0x1c36ea(0xda))throw _0xf4c984;let _0x10d12c=await L(_0x644d6d);return _0x10d12c!==null&&R(_0x10d12c)?!0x1:(await _0x52e3af(_0x55bc64,{'recursive':!0x0,'force':!0x0}),await _0x5ed465(_0x55bc64,{'recursive':!0x1,'mode':0x1c0}),!0x0);}}async function P(_0x31f75e){return await new Promise(_0x2a7f21=>{const _0x223994=_0x7641;let _0x561679=_0xb1e6b6[_0x223994(0x96)](_0x31f75e);_0x561679[_0x223994(0xd9)](_0x223994(0xb1),()=>{const _0x3211d7=_0x223994;_0x561679[_0x3211d7(0xb0)](),_0x2a7f21(!0x0);}),_0x561679[_0x223994(0xd9)]('error',()=>{_0x2a7f21(!0x1);});});}function F(_0x35c8bf){return _0xe2760a(_0x35c8bf)?!0x1:_0x996241(_0x35c8bf);}async function I(_0x5bcf6a){const _0x5c168e=_0x7641;_0xe2760a(_0x5bcf6a)||await _0x52e3af(_0x5bcf6a,{'force':!0x0})[_0x5c168e(0x7e)](()=>void 0x0);}async function L(_0x142637){const _0x409dc1=_0x7641;try{let _0x366262=await _0x58b207(_0x142637,'utf8'),_0x413b7f=Number(_0x366262[_0x409dc1(0x78)]());return Number[_0x409dc1(0xba)](_0x413b7f)?_0x413b7f:null;}catch{return null;}}function R(_0x39a896){const _0x5cedc3=_0x7641;try{return _0x5ed6aa[_0x5cedc3(0xd6)](_0x39a896,0x0),!0x0;}catch{return!0x1;}}function _0x11e7(){const _0x34d2de=['1864yiDQgG','indexOf','onShutdownRequest','lockPath','isFinite','Daemon','workbookData','startedAt','params','mutates','sigterm','listen','write','socketPath','SessionLoadWorkbook','4328mUmtmE','value','SessionEvalJs','runtimeExecutionPlaneEntry','loadWorkbookDataReplayPack','1295pXGehw','format','exportWorkbookFile','resolveIdentity','current','message','1009750aBUuwg','SIGTERM','exportWorkbookData','dispose','sessionRoot','DaemonStop','kill','modulePath','homeDir','once','EEXIST','getSessionIdleTtlMs','SIGINT','evalJs','loadWorkbookData','loadWorkbook','error','2203747aWKTmC','DaemonRpcStart','UNIVER_CLI_VERSION','cwd','min','unloadIdleSessions','sessionHost','timestamp','sizeBytes','outputPath','runtimeRoot','pid','Another\x20daemon\x20startup\x20owns\x20','createWorkbook','sessionId','getSession','session','UNIVER_DISTRIBUTION_CHANNEL','max','SessionDispose','trim','unref','lastAccessedAt','meta','flush','stringify','catch','durationMs','baseWorkbookData','unknown','toString','DaemonRpcError','utf8','buildId','sigint','name','metaPath','toISOString','info','destroyAll','getSessionCount','traceparent','UNIVER_CLI_BUILD_ID','server','Shutdown','222iwRuea','withSpan','Unknown\x20daemon\x20subcommand:\x20','285794JrfeJn','method','createConnection','data','Health','2.0','1665OCYJAd','env','now','29564KfVowN','daemonDir','DaemonRpcFinish','1566hxnfsj','absolutePath','DaemonRpcServer','createdAt','maxCodeLength','createServer','logRequestEvent','withContext','mutations','local','event','eventName','pidPath','serve','code','exit','end','connect','univer-daemon','SessionExportWorkbookData','slice','finally'];_0x11e7=function(){return _0x34d2de;};return _0x11e7();}function z(_0x43b2d0,_0x7da552){const _0x9ce836=_0x7641;return{'jsonrpc':_0x9ce836(0x99),'id':_0x43b2d0,'result':_0x7da552};}function B(_0x2c45c5,_0x38340b,_0x31b37a){const _0xf2a1b9=_0x7641;return{'jsonrpc':_0xf2a1b9(0x99),'id':_0x2c45c5,'error':{'code':_0x38340b,'message':_0x31b37a instanceof Error?_0x31b37a['message']:String(_0x31b37a)}};}var V=process['argv'][0x2]??_0xfd75d1(0xad);V!==_0xfd75d1(0xad)&&(console['error'](_0xfd75d1(0x93)+V),process[_0xfd75d1(0xaf)](0x1)),w()['catch'](_0x31bb35=>{const _0x34dc35=_0xfd75d1;console[_0x34dc35(0xe0)](_0x31bb35 instanceof Error?_0x31bb35[_0x34dc35(0xcf)]:String(_0x31bb35)),process[_0x34dc35(0xaf)](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 _0x5ef050=_0x3e2e;(function(_0x5d0e88,_0x394ab2){const _0x3cf59a=_0x3e2e,_0x16d258=_0x5d0e88();while(!![]){try{const _0x1f223a=-parseInt(_0x3cf59a(0xc1))/0x1+parseInt(_0x3cf59a(0xcd))/0x2*(parseInt(_0x3cf59a(0xdf))/0x3)+-parseInt(_0x3cf59a(0x8f))/0x4+-parseInt(_0x3cf59a(0xa7))/0x5*(parseInt(_0x3cf59a(0xd4))/0x6)+parseInt(_0x3cf59a(0xe5))/0x7+-parseInt(_0x3cf59a(0x9c))/0x8*(parseInt(_0x3cf59a(0xc4))/0x9)+parseInt(_0x3cf59a(0xe0))/0xa;if(_0x1f223a===_0x394ab2)break;else _0x16d258['push'](_0x16d258['shift']());}catch(_0x3b7783){_0x16d258['push'](_0x16d258['shift']());}}}(_0x27e4,0xa267c));import{t as _0x331ee1}from'../chunks/build-info-D56x_kvi.js';import{n as _0x5e4433}from'../chunks/runtime-manifest-D6bFR_JZ.js';import{spawn as _0x2eb232}from'node:child_process';import{readFileSync as _0x13ab54}from'node:fs';function _0x27e4(){const _0x19b9ec=['univer-cli','name','first-open','isSafeInteger','env','endpoint','UNIVER_HOME','internal','application/json','2872dgTPqD','randomId','config','homeDir','trim','public-npm','distinctId','buildInfo','now','pnpm','timeoutMs','45OZjATB','anonymousInstallId','telemetry','state-unavailable','unref','eventSource','CLI\x20telemetry\x20proxy\x20failed\x20with\x20status\x20','properties','mode','cli_first_opened','events','cli_installed','execPath','cli-startup','npm_config_user_agent','buildCommit','0.0.0','.univer','ignore','unknown','already-attempted','parse','commitHash','@dream-num/univer-cli','UNIVER_MANAGED_BY_BUN','status','357260cEiALq','https://univer.ai/api/telemetry/cli','transport','27711zbDihz','product-telemetry.json','npm_execpath','eventName','packaged','state','path','bun','version','47614VKAcBR','packageRoot','not-packaged','Invalid\x20product\x20telemetry\x20anonymous\x20install\x20id.','postinstall','string','versions','62346zMfiKh','split','pid','utf8','yarn','readFile','attemptedAt','skipped','arch','stateIo','argv','159EVKuNd','4463360BiWNiN','number','development-build','manifest','capture','7863170LqNhKb','captured','test','2440260OaSYnk','length','missing-endpoint','cliVersion'];_0x27e4=function(){return _0x19b9ec;};return _0x27e4();}import{mkdir as _0x2fcb36,readFile as _0x3038c7,rename as _0x436aad,writeFile as _0x5341a7}from'node:fs/promises';import{dirname as _0x3446e2,join as _0x2fb283,resolve as _0x235d07}from'node:path';import{fileURLToPath as _0xeaf5ab}from'node:url';import{homedir as _0x4d76b4,platform as _0x10d0ea}from'node:os';import{randomUUID as _0x249a37}from'node:crypto';async function h(_0x1daed5){const _0x51aaf9=_0x3e2e;let _0x16c313=_0x1daed5['env']??process.env,_0x450ef4=_0x1daed5[_0x51aaf9(0xe3)]??_0x5e4433(_0x16c313);if(_0x450ef4['mode']!==_0x51aaf9(0xc8))return{'reason':_0x51aaf9(0xcf),'status':_0x51aaf9(0xdb)};let _0x270861=_0x1daed5['buildInfo']??_0x331ee1;if(N(_0x270861))return{'reason':_0x51aaf9(0xe2),'status':_0x51aaf9(0xdb)};let _0x24a891=_0x1daed5[_0x51aaf9(0x9e)]??await O(_0x450ef4[_0x51aaf9(0xce)]);if(_0x24a891['endpoint'][_0x51aaf9(0x90)]===0x0)return{'reason':_0x51aaf9(0x91),'status':_0x51aaf9(0xdb)};let _0x2bb054=_0x1daed5['now']??new Date(),_0xddcc83=_0x1daed5['statePath']??v({'env':_0x16c313}),_0x1f77e2=await b({'path':_0xddcc83,..._0x1daed5[_0x51aaf9(0x9d)]===void 0x0?{}:{'randomId':_0x1daed5[_0x51aaf9(0x9d)]},..._0x1daed5['stateIo']===void 0x0?{}:{'stateIo':_0x1daed5[_0x51aaf9(0xdd)]}});if(_0x1f77e2[_0x51aaf9(0xc9)]===void 0x0)return{'reason':_0x51aaf9(0xaa),'status':'skipped'};if(_0x1daed5[_0x51aaf9(0xc7)]===_0x51aaf9(0xb0)&&_0x1f77e2[_0x51aaf9(0xc9)][_0x51aaf9(0xb1)][_0x51aaf9(0xb0)]!==void 0x0)return{'reason':_0x51aaf9(0xbb),'status':_0x51aaf9(0xdb)};let _0x2cea6f=w({'buildInfo':_0x270861,'eventName':_0x1daed5['eventName'],'now':_0x2bb054,'state':_0x1f77e2[_0x51aaf9(0xc9)]});await C({'path':_0xddcc83,'state':_0x2cea6f,..._0x1daed5[_0x51aaf9(0xdd)]===void 0x0?{}:{'stateIo':_0x1daed5[_0x51aaf9(0xdd)]}});let _0x44ef24=T({'buildInfo':_0x270861,'env':_0x16c313,'eventName':_0x1daed5[_0x51aaf9(0xc7)],'eventSource':_0x1daed5['eventSource'],'manifest':_0x450ef4,'state':_0x2cea6f});try{return await(_0x1daed5[_0x51aaf9(0xc3)]??new A())[_0x51aaf9(0xe4)]({'capture':_0x44ef24,'config':_0x24a891}),{'status':_0x51aaf9(0xe6)};}catch{return{'reason':'capture-failed','status':_0x51aaf9(0xdb)};}}async function g(_0x480141={}){const _0x15c062=_0x3e2e;return await h({..._0x480141,'eventName':_0x15c062(0xb2),'eventSource':_0x15c062(0xd1)});}async function _(_0xb78376={}){const _0x2306e5=_0x3e2e;return await h({..._0xb78376,'eventName':'cli_first_opened','eventSource':_0x2306e5(0xb4)});}function v(_0x271424={}){const _0x523d74=_0x3e2e;let _0x114885=(_0x271424[_0x523d74(0x97)]??process.env)[_0x523d74(0x99)]?.[_0x523d74(0xa0)]();return _0x235d07(_0x114885&&_0x114885[_0x523d74(0x90)]>0x0?_0x114885:_0x2fb283(_0x271424[_0x523d74(0x9f)]??_0x4d76b4(),_0x523d74(0xb8)),_0x523d74(0xa9),'state.json');}function y(_0x8f07ba={}){const _0x5b85a8=_0x3e2e;return{'anonymousInstallId':_0x8f07ba[_0x5b85a8(0x9d)]?.()??_0x249a37(),'events':{},'version':0x1};}async function b(_0x2abdec){const _0x4fd915=_0x3e2e;let _0x5afb83=_0x2abdec['stateIo']?.[_0x4fd915(0xd9)]??_0x3038c7;try{return{'state':x(await _0x5afb83(_0x2abdec[_0x4fd915(0xca)],_0x4fd915(0xd7)))};}catch{return{'state':y({..._0x2abdec[_0x4fd915(0x9d)]===void 0x0?{}:{'randomId':_0x2abdec[_0x4fd915(0x9d)]}})};}}function x(_0xb92d53){const _0xbfe973=_0x3e2e;let _0x47ce33=JSON[_0xbfe973(0xbc)](_0xb92d53);if(!R(_0x47ce33)||_0x47ce33[_0xbfe973(0xcc)]!==0x1)throw Error('Invalid\x20product\x20telemetry\x20state\x20version.');if(typeof _0x47ce33[_0xbfe973(0xa8)]!='string'||_0x47ce33[_0xbfe973(0xa8)][_0xbfe973(0x90)]===0x0)throw Error(_0xbfe973(0xd0));let _0xead56c=R(_0x47ce33[_0xbfe973(0xb1)])?_0x47ce33['events']:{};return{'anonymousInstallId':_0x47ce33['anonymousInstallId'],'events':{...P(_0xead56c[_0xbfe973(0xb2)],_0xbfe973(0xb2)),...P(_0xead56c[_0xbfe973(0xb0)],_0xbfe973(0xb0))},'version':0x1};}function S(_0x158d85){return JSON['stringify'](_0x158d85,null,0x2)+'\x0a';}async function C(_0x17d947){const _0x5c266c=_0x3e2e;let _0x3a1d0d=_0x17d947[_0x5c266c(0xdd)]?.['writeFile']??_0x5341a7,_0x33973f=_0x17d947[_0x5c266c(0xdd)]?.['rename']??_0x436aad,_0x422e83=_0x17d947[_0x5c266c(0xca)]+'.'+process[_0x5c266c(0xd6)]+'.'+Date['now']()+'.tmp';try{await _0x2fcb36(_0x3446e2(_0x17d947['path']),{'mode':0x1c0,'recursive':!0x0}),await _0x3a1d0d(_0x422e83,S(_0x17d947[_0x5c266c(0xc9)]),{'encoding':_0x5c266c(0xd7),'mode':0x180}),await _0x33973f(_0x422e83,_0x17d947[_0x5c266c(0xca)]);}catch{}}function w(_0x248d1d){const _0x38103c=_0x3e2e;return{..._0x248d1d[_0x38103c(0xc9)],'events':{..._0x248d1d[_0x38103c(0xc9)][_0x38103c(0xb1)],[_0x248d1d[_0x38103c(0xc7)]]:{'attemptedAt':_0x248d1d[_0x38103c(0xa4)]['toISOString'](),'buildCommit':_0x248d1d[_0x38103c(0xa3)][_0x38103c(0xbd)],'cliVersion':_0x248d1d[_0x38103c(0xa3)][_0x38103c(0xcc)]}}};}function T(_0x6ed4f4){const _0x367f44=_0x3e2e;return{'distinctId':_0x6ed4f4[_0x367f44(0xc9)][_0x367f44(0xa8)],'event':_0x6ed4f4[_0x367f44(0xc7)],'properties':E(_0x6ed4f4)};}function E(_0x56b86c){const _0x48abe2=_0x3e2e;return{'arch':process[_0x48abe2(0xdc)],'build_commit':_0x56b86c[_0x48abe2(0xa3)][_0x48abe2(0xbd)],'cli_version':_0x56b86c[_0x48abe2(0xa3)][_0x48abe2(0xcc)],'distribution_channel':M(_0x56b86c['manifest']),'event_source':_0x56b86c[_0x48abe2(0xac)],'install_manager':D(_0x56b86c[_0x48abe2(0x97)]??process.env),'node_major_version':F(process[_0x48abe2(0xd3)]['node']),'package_name':j(_0x56b86c[_0x48abe2(0xe3)]),'platform':_0x10d0ea(),'telemetry_state_version':0x1};}function D(_0xd7e9c3=process.env){const _0x3ee38b=_0x3e2e;let _0x5bc25d=process[_0x3ee38b(0xd3)];if(typeof _0x5bc25d[_0x3ee38b(0xcb)]==_0x3ee38b(0xd2)&&_0x5bc25d[_0x3ee38b(0xcb)][_0x3ee38b(0x90)]>0x0)return _0x3ee38b(0xcb);let _0x2f66d0=_0xd7e9c3[_0x3ee38b(0xb5)]??'';if(/\bbun\//u['test'](_0x2f66d0))return _0x3ee38b(0xcb);if(/\bpnpm\//u[_0x3ee38b(0xe7)](_0x2f66d0))return'pnpm';if(/\byarn\//u[_0x3ee38b(0xe7)](_0x2f66d0))return _0x3ee38b(0xd8);if(/\bnpm\//u[_0x3ee38b(0xe7)](_0x2f66d0))return'npm';let _0x5b8cca=_0xd7e9c3[_0x3ee38b(0xc6)]??'';return/(^|[/\\])bun(?:\.exe)?$/u['test'](_0x5b8cca)?_0x3ee38b(0xcb):/(^|[/\\])pnpm(?:\.cmd|\.ps1|\.exe)?$/u[_0x3ee38b(0xe7)](_0x5b8cca)?_0x3ee38b(0xa5):/(^|[/\\])yarn(?:\.cmd|\.ps1|\.exe)?$/u[_0x3ee38b(0xe7)](_0x5b8cca)?_0x3ee38b(0xd8):/(^|[/\\])npm(?:\.cmd|\.ps1|\.exe)?$/u['test'](_0x5b8cca)?'npm':_0xd7e9c3[_0x3ee38b(0xbf)]==='1'?'bun':_0xd7e9c3['UNIVER_MANAGED_BY_NPM']==='1'?'npm':_0x3ee38b(0xba);}async function O(_0x3e6f56){const _0x14da2d=_0x3e2e;try{let _0x18ee94=await _0x3038c7(_0x2fb283(_0x3e6f56,_0x14da2d(0x9a),_0x14da2d(0xc5)),'utf8');return k(JSON[_0x14da2d(0xbc)](_0x18ee94));}catch{return k({});}}function k(_0x3b2004){const _0x1b86e7=_0x3e2e;let _0x29e218=R(_0x3b2004)?_0x3b2004:{};return{'endpoint':I(_0x29e218[_0x1b86e7(0x98)],_0x1b86e7(0xc2)),'timeoutMs':L(_0x29e218[_0x1b86e7(0xa6)],0x1388)};}var A=class{async[_0x5ef050(0xe4)](_0x223406){const _0x5e005d=_0x5ef050;let _0x31813e=await fetch(_0x223406[_0x5e005d(0x9e)][_0x5e005d(0x98)],{'body':JSON['stringify']({'distinctId':_0x223406[_0x5e005d(0xe4)][_0x5e005d(0xa2)],'event':_0x223406['capture']['event'],'properties':_0x223406[_0x5e005d(0xe4)][_0x5e005d(0xae)]}),'headers':{'content-type':_0x5e005d(0x9b)},'method':'POST','signal':AbortSignal['timeout'](_0x223406[_0x5e005d(0x9e)][_0x5e005d(0xa6)])});if(!_0x31813e['ok'])throw Error(_0x5e005d(0xad)+_0x31813e[_0x5e005d(0xc0)]);}};function j(_0xe654af){const _0x28f676=_0x5ef050;try{let _0x403ddd=JSON['parse'](_0x13ab54(_0x2fb283(_0xe654af[_0x28f676(0xce)],'package.json'),_0x28f676(0xd7)));return typeof _0x403ddd[_0x28f676(0x94)]==_0x28f676(0xd2)&&_0x403ddd['name'][_0x28f676(0xa0)]()[_0x28f676(0x90)]>0x0?_0x403ddd[_0x28f676(0x94)]:_0x28f676(0x93);}catch{return _0x28f676(0x93);}}function M(_0xc05f16){const _0x224d2c=_0x5ef050;let _0x264a42=j(_0xc05f16);return _0x264a42===_0x224d2c(0xbe)?'internal-github':_0x264a42===_0x224d2c(0x93)?_0x224d2c(0xa1):_0xc05f16[_0x224d2c(0xaf)];}function N(_0x2ed3d3){const _0x25aef1=_0x5ef050;return _0x2ed3d3[_0x25aef1(0xcc)]===_0x25aef1(0xb7);}function P(_0x245a19,_0x321ea8){const _0x566754=_0x5ef050;return!R(_0x245a19)||typeof _0x245a19['attemptedAt']!=_0x566754(0xd2)||typeof _0x245a19['buildCommit']!=_0x566754(0xd2)||typeof _0x245a19['cliVersion']!=_0x566754(0xd2)?{}:{[_0x321ea8]:{'attemptedAt':_0x245a19[_0x566754(0xda)],'buildCommit':_0x245a19[_0x566754(0xb6)],'cliVersion':_0x245a19[_0x566754(0x92)]}};}function F(_0x2499ef){const _0x5c4f55=_0x5ef050;let _0x30fd9b=Number(_0x2499ef[_0x5c4f55(0xd5)]('.')[0x0]);return Number[_0x5c4f55(0x96)](_0x30fd9b)&&_0x30fd9b>0x0?_0x30fd9b:void 0x0;}function _0x3e2e(_0x1b0c23,_0x5e46e6){_0x1b0c23=_0x1b0c23-0x8f;const _0x27e423=_0x27e4();let _0x3e2e99=_0x27e423[_0x1b0c23];return _0x3e2e99;}function I(_0x241e3c,_0x39a932){const _0x1c56b9=_0x5ef050;return typeof _0x241e3c==_0x1c56b9(0xd2)&&_0x241e3c['trim']()[_0x1c56b9(0x90)]>0x0?_0x241e3c[_0x1c56b9(0xa0)]():_0x39a932;}function L(_0x54659c,_0x458dc9){const _0x319ce2=_0x5ef050;return typeof _0x54659c==_0x319ce2(0xe1)&&Number['isSafeInteger'](_0x54659c)&&_0x54659c>0x0?_0x54659c:_0x458dc9;}function R(_0x42387c){return typeof _0x42387c=='object'&&!!_0x42387c;}var z=process[_0x5ef050(0xde)][0x2];try{z===_0x5ef050(0x95)?await _():z===_0x5ef050(0xd1)?B('postinstall-worker'):z==='postinstall-worker'&&await g();}catch{}function B(_0x165cb5){const _0x99271c=_0x5ef050;_0x2eb232(process[_0x99271c(0xb3)],[_0xeaf5ab(import.meta.url),_0x165cb5],{'detached':!0x0,'env':process.env,'stdio':_0x99271c(0xb9),'windowsHide':!0x0})[_0x99271c(0xab)]();}
@@ -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 _0x286c16=_0x21b1;(function(_0x39e4e2,_0x544bc5){const _0x12e1d2=_0x21b1,_0x320957=_0x39e4e2();while(!![]){try{const _0x10f3cf=parseInt(_0x12e1d2(0x137))/0x1+parseInt(_0x12e1d2(0x132))/0x2+-parseInt(_0x12e1d2(0x12c))/0x3*(parseInt(_0x12e1d2(0x14c))/0x4)+-parseInt(_0x12e1d2(0x134))/0x5+-parseInt(_0x12e1d2(0x12e))/0x6+parseInt(_0x12e1d2(0x146))/0x7*(-parseInt(_0x12e1d2(0x128))/0x8)+parseInt(_0x12e1d2(0x140))/0x9;if(_0x10f3cf===_0x544bc5)break;else _0x320957['push'](_0x320957['shift']());}catch(_0x18f7e9){_0x320957['push'](_0x320957['shift']());}}}(_0xaf1a,0x6296a));import'../chunks/vendor-CgwrUUL6.js';import{t as _0x858c2d}from'../chunks/headless-univer-B0Rozw6u.js';import{n as _0x4d4470,o as _0xfa6d67,t as _0x42452a}from'../chunks/trace-DPfd8LdJ.js';let i=function(_0x283320){const _0x337ab6=_0x21b1;return _0x283320[_0x337ab6(0x14b)]='createWorkbook',_0x283320[_0x337ab6(0x135)]=_0x337ab6(0x141),_0x283320['ExportWorkbookFile']='exportWorkbookFile',_0x283320[_0x337ab6(0x133)]='exportWorkbookData',_0x283320[_0x337ab6(0x139)]='loadWorkbook',_0x283320['LoadWorkbookDataReplayPack']=_0x337ab6(0x13b),_0x283320;}({});function _0x21b1(_0x8dcb34,_0x4962e9){_0x8dcb34=_0x8dcb34-0x128;const _0xaf1acd=_0xaf1a();let _0x21b190=_0xaf1acd[_0x8dcb34];return _0x21b190;}var a=class{[_0x286c16(0x136)]=Promise['resolve']();async['enqueue'](_0x3b6154){const _0x1bd43e=_0x286c16;let _0x30c67f=this['tail'],_0x229613;this[_0x1bd43e(0x136)]=new Promise(_0x43df38=>{_0x229613=_0x43df38;}),await _0x30c67f;try{return await _0x3b6154();}finally{_0x229613?.();}}},o=_0x858c2d(),s=new a();function _0xaf1a(){const _0x3c7411=['92YIgbrm','send','mutates','evalJs','workbookData','exportWorkbookFile','exit','120RogOEE','outputPath','mutations','enqueue','12846bhGZRe','traceparent','4530060OKdjkO','message','code','createWorkbook','419882JuyZUH','ExportWorkbookData','243485rAiWOS','EvalJs','tail','791386Vzyozg','maxCodeLength','LoadWorkbook','disconnect','loadWorkbookDataReplayPack','exportWorkbookData','LoadWorkbookDataReplayPack','2.0','dispose','4568031jqBxCc','evaljs','loadWorkbookData','value','type','params','94675edMYUx','method','withContext','rpc-response','evalJsWithMutationCapture','CreateWorkbook'];_0xaf1a=function(){return _0x3c7411;};return _0xaf1a();}process[_0x286c16(0x14d)]?.({'type':'ready'}),process['on'](_0x286c16(0x12f),async _0x3022da=>{const _0x42076b=_0x286c16;if(_0x3022da?.[_0x42076b(0x144)]!=='rpc-request')return;let _0x5c8b63=await c(_0x3022da['data']);process['send']?.({'type':_0x42076b(0x149),'id':_0x3022da['id'],'data':_0x5c8b63});}),process['on'](_0x286c16(0x13a),()=>{const _0x18dd30=_0x286c16;o[_0x18dd30(0x13f)](),process['exit'](0x0);}),process['on']('SIGTERM',()=>{const _0x532235=_0x286c16;o[_0x532235(0x13f)](),process[_0x532235(0x152)](0x0);});async function c(_0x440345){const _0x3397c1=_0x286c16;let _0x26983a=_0x42452a(_0x440345['meta']?.[_0x3397c1(0x12d)]),_0x21b322=async()=>await _0x4d4470['withSpan']({'name':_0xfa6d67['RuntimeRpcClient'],'kind':'server'},async()=>await l(_0x440345));return _0x26983a===void 0x0?await _0x21b322():await _0x4d4470[_0x3397c1(0x148)](_0x26983a,_0x21b322);}async function l(_0x57f9b1){const _0x12fceb=_0x286c16;try{switch(_0x57f9b1[_0x12fceb(0x147)]){case i[_0x12fceb(0x14b)]:{let _0x69a892=o[_0x12fceb(0x131)](_0x57f9b1[_0x12fceb(0x145)]??{});return{'jsonrpc':'2.0','id':_0x57f9b1['id'],'result':{'success':!0x0,'workbookData':_0x69a892}};}case i['LoadWorkbook']:{let _0x148743=o[_0x12fceb(0x142)](_0x57f9b1[_0x12fceb(0x145)][_0x12fceb(0x150)]);return{'jsonrpc':_0x12fceb(0x13e),'id':_0x57f9b1['id'],'result':{'success':!0x0,'workbookData':_0x148743}};}case i[_0x12fceb(0x13d)]:return await o[_0x12fceb(0x13b)](_0x57f9b1[_0x12fceb(0x145)]),{'jsonrpc':'2.0','id':_0x57f9b1['id'],'result':{'success':!0x0}};case i[_0x12fceb(0x133)]:return{'jsonrpc':_0x12fceb(0x13e),'id':_0x57f9b1['id'],'result':{'success':!0x0,'workbookData':o[_0x12fceb(0x13c)]()}};case i['ExportWorkbookFile']:{let _0x1031b1=_0x57f9b1[_0x12fceb(0x145)],_0x1717d6=await o[_0x12fceb(0x151)](_0x1031b1[_0x12fceb(0x129)],_0x1031b1['format']);return{'jsonrpc':_0x12fceb(0x13e),'id':_0x57f9b1['id'],'result':{'success':!0x0,..._0x1717d6}};}case i[_0x12fceb(0x135)]:{let _0x4c1215=_0x57f9b1[_0x12fceb(0x145)]??{},_0x2c7fd4=async()=>{const _0x142dae=_0x12fceb;let _0x4c143d=_0x4c1215[_0x142dae(0x14e)]?await o[_0x142dae(0x14a)](_0x4c1215[_0x142dae(0x130)],_0x4c1215['maxCodeLength']):{'value':await o[_0x142dae(0x14f)](_0x4c1215[_0x142dae(0x130)],_0x4c1215[_0x142dae(0x138)]),'mutations':void 0x0};return{'success':!0x0,..._0x4c143d['mutations']===void 0x0?{}:{'mutations':_0x4c143d[_0x142dae(0x12a)]},'value':_0x4c143d[_0x142dae(0x143)]};},_0x72ce69=_0x4c1215[_0x12fceb(0x14e)]?await s[_0x12fceb(0x12b)](_0x2c7fd4):await _0x2c7fd4();return{'jsonrpc':'2.0','id':_0x57f9b1['id'],'result':_0x72ce69};}default:throw Error('Method\x20not\x20implemented:\x20'+String(_0x57f9b1[_0x12fceb(0x147)]));}}catch(_0x3d00c4){return{'jsonrpc':_0x12fceb(0x13e),'id':_0x57f9b1['id'],'error':{'code':-0x7f5b,'message':_0x3d00c4 instanceof Error?_0x3d00c4['message']:String(_0x3d00c4)}};}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "univer-cli",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Command-line tools for local Univer workbook automation.",
5
5
  "repository": {
6
6
  "type": "git",