univer-cli 0.1.9 → 0.1.11

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 _0x13ba2e=_0x56e8;(function(_0x4afb36,_0x4901ad){const _0x5cf111=_0x56e8,_0x3b90ff=_0x4afb36();while(!![]){try{const _0x414405=parseInt(_0x5cf111(0x98))/0x1*(parseInt(_0x5cf111(0xb7))/0x2)+parseInt(_0x5cf111(0xb3))/0x3*(-parseInt(_0x5cf111(0xb8))/0x4)+-parseInt(_0x5cf111(0xed))/0x5*(-parseInt(_0x5cf111(0xd3))/0x6)+parseInt(_0x5cf111(0xfd))/0x7+-parseInt(_0x5cf111(0x94))/0x8*(parseInt(_0x5cf111(0x100))/0x9)+parseInt(_0x5cf111(0xec))/0xa+-parseInt(_0x5cf111(0xcb))/0xb;if(_0x414405===_0x4901ad)break;else _0x3b90ff['push'](_0x3b90ff['shift']());}catch(_0x2278e8){_0x3b90ff['push'](_0x3b90ff['shift']());}}}(_0x12e7,0x681bd));import'../chunks/vendor-DjomC5bd.js';import{a as _0x51fa48,i as _0x280e9b,n,o as _0x24cd80,r as _0x531401,t as _0x490717}from'../chunks/trace-DPfd8LdJ.js';import{a as _0x579c5b,d as _0x32003f,l as _0x4cfd53,m as _0x4bb590,n as _0x593848,r as _0x292e6b,u as _0x4a7a68}from'../chunks/runtime-manifest-Bt390kp8.js';import{t as _0x25b8cc}from'../chunks/build-id-Coc3wh1M.js';import{existsSync as _0x41977f}from'node:fs';import{chmod as _0x7d075f,mkdir as _0x3740c5,readFile as _0x36af1d,rm as _0x440e19,writeFile as _0x288966}from'node:fs/promises';import _0x3a9005 from'node:net';import _0x34e82d from'node:process';function _0x12e7(){const _0x26331c=['rpc-shutdown','stringify','getSessionIdleTtlMs','traceparent','env','pid','indexOf','logRequestEvent','UNIVER_DISTRIBUTION_CHANNEL','DaemonRpcError','toISOString','mutates','message','dispose','SessionGetWorkbook','end','durationMs','now','timestamp','createdAt','destroyAll','server','sigterm','Unknown\x20daemon\x20subcommand:\x20','socketPath','8157HGNpmD','max','slice','name','4VUgRzP','748nkeJIW','write','Method\x20not\x20found:\x20','Runtime','UNIVER_CLI_BUILD_ID','metaPath','sessionId','UNIVER_CLI_VERSION','getWorkbookSession','flush','sessionHost','info','DaemonRpcFinish','EEXIST','pidPath','loadWorkbookData','close','sessionRoot','Daemon','8737190TLFICY','min','unloadIdleSessions','catch','logRequestError','DaemonRpcStart','SessionExportWorkbookFile','format','222KyLoOj','buildId','listen','packageIdentity','createServer','SessionLoadWorkbookDataReplayPack','isFinite','length','unknown','session','2.0','onShutdownRequest','getSession','absolutePath','cwd','mutations','serve','outputPath','local','Daemon\x20handler\x20not\x20ready:\x20','daemonDir','withSpan','workbookData','lockPath','runtimeRoot','7370390JDXMRj','86945pHGMRQ','getSessionCount','params','code','exit','exportWorkbookData','Health','once','SessionEvalJs','evalJs','baseWorkbookData','runtimeExecutionPlaneEntry','loadWorkbookDataReplayPack','modulePath','SessionDispose','createWorkbook','5300358GXizfF','startedAt','Another\x20daemon\x20startup\x20owns\x20','4194XmRaeD','trim','Shutdown','toString','homeDir','sigint','SessionExportWorkbookData','current','withContext','exportWorkbookFile','SIGINT','utf8','method','lastAccessedAt','SessionCreateWorkbook','11504iTGgqr','finally','error','meta','130827efQRiJ','unref'];_0x12e7=function(){return _0x26331c;};return _0x12e7();}var S=new _0x292e6b();async function C(_0x5bb97c={}){const _0x1127cc=_0x56e8;let _0x417730=_0x5bb97c[_0x1127cc(0x9e)]??_0x34e82d[_0x1127cc(0x9e)],_0x4a7b6f=_0x4a7a68(_0x417730),_0x2b2d54=_0x593848(_0x417730),_0x33a700=_0x5bb97c[_0x1127cc(0xc2)]??E(new _0x579c5b({'env':_0x417730,'logger':_0x32003f({'env':_0x417730,'role':_0x51fa48[_0x1127cc(0xbb)]}),'resolveExecutionPlaneOptions':()=>({'execArgv':[..._0x2b2d54['runtimeExecutionPlaneEntry']['execArgv']],'modulePath':_0x2b2d54[_0x1127cc(0xf8)][_0x1127cc(0xfa)]})})),_0x35cc30=_0x25b8cc(_0x417730),_0x2101e1=new Date()[_0x1127cc(0xa4)]();if(await _0x3740c5(_0x4a7b6f[_0x1127cc(0xe7)],{'recursive':!0x0,'mode':0x1c0}),await _0x3740c5(_0x4a7b6f[_0x1127cc(0xc9)],{'recursive':!0x0,'mode':0x1c0}),!await M(_0x4a7b6f[_0x1127cc(0xea)],_0x4a7b6f[_0x1127cc(0xc6)])){if(await N(_0x4a7b6f[_0x1127cc(0xb2)]))return;throw Error(_0x1127cc(0xff)+_0x4a7b6f[_0x1127cc(0xea)]);}await j(_0x4a7b6f);let _0x4aa21e=_0x32003f({'env':_0x417730,'role':_0x51fa48[_0x1127cc(0xca)]}),_0x50084d=k({'buildId':_0x35cc30,'env':_0x417730,'pid':_0x34e82d[_0x1127cc(0x9f)]}),_0x284bf9=!0x1,_0x2c0086={},_0x118655=async _0x5d7b18=>z(null,-0x7f5b,Error(_0x1127cc(0xe6)+_0x5d7b18)),_0x56263e=_0x3a9005[_0x1127cc(0xd7)](_0x33114f=>{const _0x4d3d4f=_0x1127cc;let _0x47adaa='';_0x33114f['on']('data',_0x3f561a=>{const _0xc940b1=_0x56e8;_0x47adaa+=_0x3f561a[_0xc940b1(0x103)](_0xc940b1(0x90)),_0x1da428();}),_0x33114f['on'](_0x4d3d4f(0x96),()=>void 0x0);let _0x1da428=async()=>{const _0x21025d=_0x4d3d4f;for(;;){let _0x4d239d=_0x47adaa[_0x21025d(0xa0)]('\x0a');if(_0x4d239d<0x0)return;let _0x21b929=_0x47adaa['slice'](0x0,_0x4d239d)[_0x21025d(0x101)]();if(_0x47adaa=_0x47adaa[_0x21025d(0xb5)](_0x4d239d+0x1),!_0x21b929)continue;let _0x3f449e=await _0x118655(_0x21b929);_0x33114f[_0x21025d(0xb9)](JSON[_0x21025d(0x9b)](_0x3f449e)+'\x0a');}};});_0x118655=w({'buildId':_0x35cc30,'logRequestEvent':async _0x388867=>{const _0x4d497c=_0x1127cc;_0x4aa21e['event']({'level':_0x388867['eventName']===_0x280e9b[_0x4d497c(0xa3)]?_0x4d497c(0x96):'info','event_name':_0x388867['eventName'],'component':_0x531401[_0x4d497c(0xca)],'process_role':_0x51fa48[_0x4d497c(0xca)],..._0x388867[_0x4d497c(0x96)]===void 0x0?{}:{'error':_0x388867[_0x4d497c(0x96)]},'fields':{..._0x50084d,..._0x388867['durationMs']===void 0x0?{}:{'duration_ms':_0x388867[_0x4d497c(0xaa)]},'method':_0x388867[_0x4d497c(0x91)],'timestamp':_0x388867[_0x4d497c(0xac)]}});},'logRequestError':async _0x238a41=>{const _0x41dc90=_0x1127cc;_0x4aa21e[_0x41dc90(0x96)]({'event_name':_0x280e9b[_0x41dc90(0xa3)],'component':_0x531401[_0x41dc90(0xca)],'process_role':_0x51fa48[_0x41dc90(0xca)],'error':_0x238a41[_0x41dc90(0x96)],'fields':{..._0x50084d,'method':_0x238a41['method'],'timestamp':_0x238a41[_0x41dc90(0xac)]}});},'onShutdownRequest':()=>{const _0x5152d4=_0x1127cc;_0xb58c2e(_0x5152d4(0x9a))[_0x5152d4(0x95)](()=>{const _0x4f9eff=_0x5152d4;_0x34e82d[_0x4f9eff(0xf1)](0x0);});},'pid':_0x34e82d['pid'],'runtimeRoot':_0x4a7b6f[_0x1127cc(0x89)],'sessionHost':_0x33a700,'socketPath':_0x4a7b6f['socketPath'],'startedAt':_0x2101e1}),await new Promise((_0x21a643,_0x3f7371)=>{const _0x4768a9=_0x1127cc;_0x56263e[_0x4768a9(0xf4)]('error',_0x3f7371),_0x56263e[_0x4768a9(0xd5)](_0x4a7b6f[_0x4768a9(0xb2)],_0x21a643);}),_0x4cfd53(_0x4a7b6f[_0x1127cc(0xb2)])||await _0x7d075f(_0x4a7b6f[_0x1127cc(0xb2)],0x180);let _0x8dc91e={'pid':_0x34e82d[_0x1127cc(0x9f)],'startedAt':_0x2101e1,'socketPath':_0x4a7b6f[_0x1127cc(0xb2)],'runtimeRoot':_0x4a7b6f['homeDir'],'buildId':_0x35cc30};await _0x288966(_0x4a7b6f[_0x1127cc(0xc6)],String(_0x34e82d[_0x1127cc(0x9f)]),_0x1127cc(0x90)),await _0x288966(_0x4a7b6f[_0x1127cc(0xbd)],JSON[_0x1127cc(0x9b)](_0x8dc91e,null,0x2),'utf8'),_0x4aa21e[_0x1127cc(0xc3)]({'event_name':_0x280e9b['DaemonStart'],'component':_0x531401[_0x1127cc(0xca)],'process_role':_0x51fa48[_0x1127cc(0xca)],'fields':{..._0x50084d,'pid':_0x34e82d[_0x1127cc(0x9f)],'runtime_root':_0x4a7b6f[_0x1127cc(0x89)],'socket_path':_0x4a7b6f[_0x1127cc(0xb2)],'started_at':_0x2101e1}}),await _0x4aa21e[_0x1127cc(0xc1)]();let _0x2fbbb1=setInterval(()=>{const _0xc26486=_0x1127cc;_0x33a700[_0xc26486(0xcd)]();},Math[_0x1127cc(0xb4)](0x3e8,Math[_0x1127cc(0xcc)](_0x33a700[_0x1127cc(0x9c)](),0xea60)));_0x2fbbb1[_0x1127cc(0x99)](),_0x2c0086[_0x1127cc(0x8c)]=_0x2fbbb1;async function _0xb58c2e(_0x4c441d){const _0x49bc40=_0x1127cc;_0x284bf9||(_0x284bf9=!0x0,_0x2c0086['current']!==void 0x0&&clearInterval(_0x2c0086[_0x49bc40(0x8c)]),_0x4aa21e[_0x49bc40(0xc3)]({'event_name':_0x280e9b['DaemonStop'],'component':_0x531401[_0x49bc40(0xca)],'process_role':_0x51fa48[_0x49bc40(0xca)],'fields':{..._0x50084d,'pid':_0x34e82d['pid'],'reason':_0x4c441d,'timestamp':new Date()[_0x49bc40(0xa4)]()}}),await _0x4aa21e[_0x49bc40(0xc1)](),await _0x33a700['destroyAll'](_0x4c441d),await new Promise(_0x336e5c=>{const _0x55291a=_0x49bc40;_0x56263e[_0x55291a(0xc8)](()=>_0x336e5c());}),await F(_0x4a7b6f[_0x49bc40(0xb2)]),await _0x440e19(_0x4a7b6f[_0x49bc40(0xc6)],{'force':!0x0})[_0x49bc40(0xce)](()=>void 0x0),await _0x440e19(_0x4a7b6f[_0x49bc40(0xbd)],{'force':!0x0})[_0x49bc40(0xce)](()=>void 0x0),await _0x440e19(_0x4a7b6f[_0x49bc40(0xea)],{'recursive':!0x0,'force':!0x0})[_0x49bc40(0xce)](()=>void 0x0));}_0x34e82d['on'](_0x1127cc(0x8f),()=>{const _0x1f00e3=_0x1127cc;_0xb58c2e(_0x1f00e3(0x8a))[_0x1f00e3(0x95)](()=>{_0x34e82d['exit'](0x0);});}),_0x34e82d['on']('SIGTERM',()=>{const _0x1ebc9f=_0x1127cc;_0xb58c2e(_0x1ebc9f(0xb0))[_0x1ebc9f(0x95)](()=>{const _0x48069e=_0x1ebc9f;_0x34e82d[_0x48069e(0xf1)](0x0);});});}function w(_0x822871){return async _0x1e4a30=>{const _0x459e10=_0x56e8;let _0x59ade8;try{_0x59ade8=JSON['parse'](_0x1e4a30);}catch(_0x12a1d4){return z(null,-0x7fbc,_0x12a1d4);}let _0x5ff0f3=_0x490717(_0x59ade8[_0x459e10(0x97)]?.[_0x459e10(0x9d)]),_0x2875c6=async()=>await n[_0x459e10(0xe8)]({'name':_0x24cd80['DaemonRpcServer'],'kind':_0x459e10(0xaf)},async()=>{const _0x5e5d06=_0x459e10;let _0x5efb20=Date[_0x5e5d06(0xab)]();await _0x822871[_0x5e5d06(0xa1)]?.({'eventName':_0x280e9b[_0x5e5d06(0xd0)],'method':_0x59ade8[_0x5e5d06(0x91)],'timestamp':new Date()[_0x5e5d06(0xa4)]()});try{let _0x37a0e5=await T(_0x59ade8,_0x822871);return await _0x822871[_0x5e5d06(0xa1)]?.({'durationMs':Date['now']()-_0x5efb20,'eventName':_0x280e9b[_0x5e5d06(0xc4)],'method':_0x59ade8['method'],'timestamp':new Date()['toISOString']()}),_0x37a0e5;}catch(_0x1da248){return await _0x822871[_0x5e5d06(0xa1)]?.({'durationMs':Date[_0x5e5d06(0xab)]()-_0x5efb20,'eventName':_0x280e9b['DaemonRpcError'],'method':_0x59ade8[_0x5e5d06(0x91)],'error':_0x1da248,'timestamp':new Date()[_0x5e5d06(0xa4)]()}),_0x822871[_0x5e5d06(0xa1)]===void 0x0&&await _0x822871[_0x5e5d06(0xcf)]?.({'method':_0x59ade8[_0x5e5d06(0x91)],'error':_0x1da248 instanceof Error?_0x1da248[_0x5e5d06(0xa6)]:String(_0x1da248),'timestamp':new Date()[_0x5e5d06(0xa4)]()}),z(_0x59ade8['id'],-0x7f5b,_0x1da248);}});return _0x5ff0f3===void 0x0?await _0x2875c6():await n[_0x459e10(0x8d)](_0x5ff0f3,_0x2875c6);};}async function T(_0x3a5474,_0x4fd688){const _0x32b164=_0x56e8;switch(_0x3a5474[_0x32b164(0x91)]){case _0x4bb590[_0x32b164(0xf3)]:return{'jsonrpc':_0x32b164(0xdd),'id':_0x3a5474['id'],'result':{'ok':!0x0,'pid':_0x4fd688[_0x32b164(0x9f)],'startedAt':_0x4fd688[_0x32b164(0xfe)],'socketPath':_0x4fd688[_0x32b164(0xb2)],'runtimeRoot':_0x4fd688[_0x32b164(0xeb)],'buildId':_0x4fd688['buildId'],'sessionCount':_0x4fd688[_0x32b164(0xc2)][_0x32b164(0xee)]()}};case _0x4bb590[_0x32b164(0x102)]:return _0x4fd688[_0x32b164(0xde)]?.(),{'jsonrpc':_0x32b164(0xdd),'id':_0x3a5474['id'],'result':{'stopping':!0x0}};case _0x4bb590['SessionLoadWorkbook']:{let _0x34de59=await _0x4fd688[_0x32b164(0xc2)]['loadWorkbook'](_0x3a5474[_0x32b164(0xef)]);return R(_0x3a5474['id'],_0x34de59);}case _0x4bb590[_0x32b164(0xd8)]:{let _0x36de1c=await _0x4fd688['sessionHost'][_0x32b164(0xf9)](_0x3a5474[_0x32b164(0xef)]);return R(_0x3a5474['id'],_0x36de1c);}case _0x4bb590[_0x32b164(0x93)]:{let _0x3d654c=await _0x4fd688[_0x32b164(0xc2)][_0x32b164(0xfc)](_0x3a5474['params']);return R(_0x3a5474['id'],_0x3d654c);}case _0x4bb590[_0x32b164(0xf5)]:{let _0x5b533d=await _0x4fd688['sessionHost']['evalJs'](_0x3a5474[_0x32b164(0xef)]);return R(_0x3a5474['id'],_0x5b533d);}case _0x4bb590[_0x32b164(0xd1)]:{let _0xdc2cff=await _0x4fd688['sessionHost']['exportWorkbookFile'](_0x3a5474[_0x32b164(0xef)]);return R(_0x3a5474['id'],_0xdc2cff);}case _0x4bb590[_0x32b164(0x8b)]:{let _0x34c8b4=_0x3a5474[_0x32b164(0xef)],_0x442c36=await _0x4fd688[_0x32b164(0xc2)][_0x32b164(0xf2)](_0x34c8b4);return R(_0x3a5474['id'],_0x442c36);}case _0x4bb590[_0x32b164(0xfb)]:{let _0x337b8a=await _0x4fd688[_0x32b164(0xc2)][_0x32b164(0xa7)](_0x3a5474[_0x32b164(0xef)]);return R(_0x3a5474['id'],_0x337b8a);}case _0x4bb590[_0x32b164(0xa8)]:{let _0x495695=await _0x4fd688['sessionHost'][_0x32b164(0xc0)](_0x3a5474[_0x32b164(0xef)]);return R(_0x3a5474['id'],_0x495695);}default:return z(_0x3a5474['id'],-0x7f59,Error(_0x32b164(0xba)+_0x3a5474[_0x32b164(0x91)]));}}function E(_0x1ef943){return{async 'createWorkbook'(_0x4fa462){const _0x62ca65=_0x56e8;let _0xf8bb7=await D(_0x4fa462),_0x58c78a=await _0x1ef943[_0x62ca65(0xfc)]({..._0x4fa462['cwd']===void 0x0?{}:{'cwd':_0x4fa462[_0x62ca65(0xe1)]},'identity':_0xf8bb7,..._0x4fa462['id']===void 0x0?{}:{'workbookId':_0x4fa462['id']},..._0x4fa462[_0x62ca65(0xb6)]===void 0x0?{}:{'workbookName':_0x4fa462['name']}});return{'success':!0x0,'workbookData':_0x58c78a[_0x62ca65(0xe9)],'session':O(_0x58c78a[_0x62ca65(0xdc)])};},async 'dispose'(_0x4ea846){const _0x1e6ad1=_0x56e8;let _0x444397=await D(_0x4ea846);return await _0x1ef943[_0x1e6ad1(0xa7)]({..._0x4ea846[_0x1e6ad1(0xe1)]===void 0x0?{}:{'cwd':_0x4ea846['cwd']},'identity':_0x444397}),{'disposed':!0x0,'workbookIdentity':_0x444397[_0x1e6ad1(0xe0)]};},async 'destroyAll'(_0x36a5c1){const _0x496460=_0x56e8;await _0x1ef943[_0x496460(0xae)]?.(_0x36a5c1);},async 'evalJs'(_0x13c72d){const _0x4681aa=_0x56e8;let _0x12cae8=await D(_0x13c72d),_0x216a43=await _0x1ef943[_0x4681aa(0xf6)]({'code':_0x13c72d[_0x4681aa(0xf0)],..._0x13c72d[_0x4681aa(0xe1)]===void 0x0?{}:{'cwd':_0x13c72d[_0x4681aa(0xe1)]},'identity':_0x12cae8,..._0x13c72d['mutates']===void 0x0?{}:{'mutates':_0x13c72d[_0x4681aa(0xa5)]}});return{..._0x216a43['mutations']===void 0x0?{}:{'mutations':_0x216a43[_0x4681aa(0xe2)]},'success':!0x0,'value':_0x216a43['value'],'session':O(_0x216a43[_0x4681aa(0xdc)])};},async 'exportWorkbookData'(_0x488b70){const _0x36399e=_0x56e8;let _0x2e8266=await D(_0x488b70),_0x53bd02=await _0x1ef943[_0x36399e(0xf2)]({..._0x488b70['cwd']===void 0x0?{}:{'cwd':_0x488b70[_0x36399e(0xe1)]},'identity':_0x2e8266});return{'success':!0x0,'workbookData':_0x53bd02['workbookData'],'session':O(_0x53bd02[_0x36399e(0xdc)])};},async 'exportWorkbookFile'(_0x4321c1){const _0x373b83=_0x56e8;let _0x29fefb=await D(_0x4321c1),_0xef2fc2=await _0x1ef943[_0x373b83(0x8e)]({..._0x4321c1[_0x373b83(0xe1)]===void 0x0?{}:{'cwd':_0x4321c1['cwd']},'format':_0x4321c1[_0x373b83(0xd2)],'identity':_0x29fefb,'outputPath':_0x4321c1['outputPath']});return{'success':!0x0,'format':_0xef2fc2[_0x373b83(0xd2)],'outputPath':_0xef2fc2[_0x373b83(0xe4)],'sizeBytes':_0xef2fc2['sizeBytes'],'session':O(_0xef2fc2[_0x373b83(0xdc)])};},async 'getWorkbookSession'(_0x6c5196){const _0x181e89=_0x56e8;let _0x3a6af3=await D(_0x6c5196),_0x3fd647=await _0x1ef943[_0x181e89(0xdf)]({..._0x6c5196[_0x181e89(0xe1)]===void 0x0?{}:{'cwd':_0x6c5196[_0x181e89(0xe1)]},'identity':_0x3a6af3});return{'exists':_0x3fd647!==null,'session':_0x3fd647===null?null:O(_0x3fd647)};},'getSessionCount'(){const _0x5cd652=_0x56e8;return _0x1ef943[_0x5cd652(0xee)]?.()??0x0;},'getSessionIdleTtlMs'(){return _0x1ef943['getSessionIdleTtlMs']?.()??0xea60;},async 'loadWorkbook'(_0x4fda67){const _0x5c8a47=_0x56e8;let _0x42c54f=await D(_0x4fda67),_0x518027=await _0x1ef943[_0x5c8a47(0xc7)]({..._0x4fda67[_0x5c8a47(0xe1)]===void 0x0?{}:{'cwd':_0x4fda67[_0x5c8a47(0xe1)]},'identity':_0x42c54f,'workbookData':_0x4fda67[_0x5c8a47(0xe9)]});return{'success':!0x0,'workbookData':_0x518027[_0x5c8a47(0xe9)],'session':O(_0x518027[_0x5c8a47(0xdc)])};},async 'loadWorkbookDataReplayPack'(_0x18c8cd){const _0x305084=_0x56e8;let _0x3a7b8e=await D(_0x18c8cd),_0x1700be=await _0x1ef943[_0x305084(0xf9)]({..._0x18c8cd[_0x305084(0xe1)]===void 0x0?{}:{'cwd':_0x18c8cd['cwd']},'identity':_0x3a7b8e,'replayPack':{'baseWorkbookData':_0x18c8cd[_0x305084(0xf7)],'mutations':_0x18c8cd[_0x305084(0xe2)]}});return{'success':!0x0,'workbookData':_0x1700be[_0x305084(0xe9)],'session':O(_0x1700be[_0x305084(0xdc)])};},async 'unloadIdleSessions'(){const _0x2cf597=_0x56e8;await _0x1ef943[_0x2cf597(0xcd)]?.();}};}async function D(_0x3932e7){return await S['resolveIdentity'](_0x3932e7);}function O(_0x1e2b68){const _0x1f59c7=_0x56e8;return{'createdAt':_0x1e2b68[_0x1f59c7(0xad)]??'','lastAccessedAt':_0x1e2b68[_0x1f59c7(0x92)]??'','sessionId':_0x1e2b68[_0x1f59c7(0xbe)],'workbookIdentity':_0x1e2b68[_0x1f59c7(0xd6)]['absolutePath']};}function k(_0x40fcea){const _0x5b8e8d=_0x56e8;return{'build.id':A(_0x40fcea[_0x5b8e8d(0x9e)],_0x5b8e8d(0xbc))??_0x40fcea[_0x5b8e8d(0xd4)],'deployment.environment.name':_0x5b8e8d(0xe5),'distribution.channel':A(_0x40fcea[_0x5b8e8d(0x9e)],_0x5b8e8d(0xa2))??_0x5b8e8d(0xdb),'service.instance.id':String(_0x40fcea[_0x5b8e8d(0x9f)]),'service.name':'univer-daemon',...A(_0x40fcea[_0x5b8e8d(0x9e)],'UNIVER_CLI_VERSION')===void 0x0?{}:{'service.version':A(_0x40fcea[_0x5b8e8d(0x9e)],_0x5b8e8d(0xbf))}};}function A(_0x19ac44,_0x165f66){const _0x386a7c=_0x56e8;let _0x5dc44e=_0x19ac44[_0x165f66]?.[_0x386a7c(0x101)]();return _0x5dc44e===void 0x0||_0x5dc44e[_0x386a7c(0xda)]===0x0?void 0x0:_0x5dc44e;}async function j(_0x53f9b8){const _0x269307=_0x56e8;P(_0x53f9b8[_0x269307(0xb2)])&&!await N(_0x53f9b8[_0x269307(0xb2)])&&await F(_0x53f9b8['socketPath']);let _0x1e71d5=await I(_0x53f9b8[_0x269307(0xc6)]);_0x1e71d5!==null&&!L(_0x1e71d5)&&(await _0x440e19(_0x53f9b8[_0x269307(0xc6)],{'force':!0x0})[_0x269307(0xce)](()=>void 0x0),await _0x440e19(_0x53f9b8[_0x269307(0xbd)],{'force':!0x0})['catch'](()=>void 0x0),await _0x440e19(_0x53f9b8[_0x269307(0xea)],{'recursive':!0x0,'force':!0x0})[_0x269307(0xce)](()=>void 0x0));}async function M(_0x54f8b0,_0x2e86a2){const _0x2cf459=_0x56e8;try{return await _0x3740c5(_0x54f8b0,{'recursive':!0x1,'mode':0x1c0}),!0x0;}catch(_0x30a8ff){if(_0x30a8ff[_0x2cf459(0xf0)]!==_0x2cf459(0xc5))throw _0x30a8ff;let _0x2f0a71=await I(_0x2e86a2);return _0x2f0a71!==null&&L(_0x2f0a71)?!0x1:(await _0x440e19(_0x54f8b0,{'recursive':!0x0,'force':!0x0}),await _0x3740c5(_0x54f8b0,{'recursive':!0x1,'mode':0x1c0}),!0x0);}}function _0x56e8(_0x7d4095,_0x1d52e0){_0x7d4095=_0x7d4095-0x89;const _0x12e7d0=_0x12e7();let _0x56e894=_0x12e7d0[_0x7d4095];return _0x56e894;}async function N(_0x6b104b){return await new Promise(_0x3b2bea=>{const _0x37eec0=_0x56e8;let _0x197203=_0x3a9005['createConnection'](_0x6b104b);_0x197203[_0x37eec0(0xf4)]('connect',()=>{const _0x5ab1be=_0x37eec0;_0x197203[_0x5ab1be(0xa9)](),_0x3b2bea(!0x0);}),_0x197203['once'](_0x37eec0(0x96),()=>{_0x3b2bea(!0x1);});});}function P(_0x12a871){return _0x4cfd53(_0x12a871)?!0x1:_0x41977f(_0x12a871);}async function F(_0x81f4f2){const _0x5ea351=_0x56e8;_0x4cfd53(_0x81f4f2)||await _0x440e19(_0x81f4f2,{'force':!0x0})[_0x5ea351(0xce)](()=>void 0x0);}async function I(_0x3405e7){const _0x7d8eee=_0x56e8;try{let _0x2fe760=await _0x36af1d(_0x3405e7,_0x7d8eee(0x90)),_0x2a5e26=Number(_0x2fe760[_0x7d8eee(0x101)]());return Number[_0x7d8eee(0xd9)](_0x2a5e26)?_0x2a5e26:null;}catch{return null;}}function L(_0xca7ebc){try{return _0x34e82d['kill'](_0xca7ebc,0x0),!0x0;}catch{return!0x1;}}function R(_0x160454,_0xe1f61b){const _0x2ef84a=_0x56e8;return{'jsonrpc':_0x2ef84a(0xdd),'id':_0x160454,'result':_0xe1f61b};}function z(_0x4573cf,_0x60340a,_0x9072b4){const _0x240950=_0x56e8;return{'jsonrpc':'2.0','id':_0x4573cf,'error':{'code':_0x60340a,'message':_0x9072b4 instanceof Error?_0x9072b4[_0x240950(0xa6)]:String(_0x9072b4)}};}var B=process['argv'][0x2]??_0x13ba2e(0xe3);B!==_0x13ba2e(0xe3)&&(console[_0x13ba2e(0x96)](_0x13ba2e(0xb1)+B),process[_0x13ba2e(0xf1)](0x1)),C()[_0x13ba2e(0xce)](_0x2fadb6=>{const _0x42d8ba=_0x13ba2e;console[_0x42d8ba(0x96)](_0x2fadb6 instanceof Error?_0x2fadb6[_0x42d8ba(0xa6)]:String(_0x2fadb6)),process[_0x42d8ba(0xf1)](0x1);});
2
+ function _0x5380(){const _0x87daf4=['packageIdentity','catch','unref','SIGTERM','6dLUdOM','unknown','exportWorkbookData','now','sessionRoot','loadWorkbook','logRequestEvent','env','connect','SIGINT','name','SessionEvalJs','serve','getSessionCount','max','flush','workbookData','Another\x20daemon\x20startup\x20owns\x20','lockPath','DaemonRpcFinish','Daemon\x20handler\x20not\x20ready:\x20','trim','close','kill','95024GNmlFw','socketPath','server','isFinite','SessionExportWorkbookData','listen','rpc-shutdown','utf8','616210wjDLto','SessionLoadWorkbookDataReplayPack','60083wGvDHI','UNIVER_DISTRIBUTION_CHANNEL','length','parse','current','eventName','toString','resolveIdentity','Unknown\x20daemon\x20subcommand:\x20','UNIVER_CLI_BUILD_ID','execArgv','data','createConnection','DaemonRpcError','code','sessionHost','SessionCreateWorkbook','toISOString','indexOf','slice','unloadIdleSessions','min','evalJs','withSpan','info','UNIVER_CLI_VERSION','EEXIST','metaPath','format','method','createWorkbook','pidPath','meta','error','loadWorkbookDataReplayPack','params','Daemon','session','2132151xZNBke','exportWorkbookFile','2.0','baseWorkbookData','timestamp','SessionExportWorkbookFile','outputPath','message','event','homeDir','finally','end','cwd','loadWorkbookData','once','destroyAll','local','createdAt','exit','174884hjwbSb','logRequestError','runtimeRoot','withContext','stringify','traceparent','Shutdown','mutations','DaemonRpcStart','pid','durationMs','argv','getWorkbookSession','132825ESzTPi','daemonDir','mutates','univer-daemon','Health','dispose','2517408MsChtT'];_0x5380=function(){return _0x87daf4;};return _0x5380();}const _0xdb5c01=_0x1604;(function(_0x4294ac,_0x1826b1){const _0x498817=_0x1604,_0xe14580=_0x4294ac();while(!![]){try{const _0x584a14=parseInt(_0x498817(0x1bf))/0x1+parseInt(_0x498817(0x228))/0x2+-parseInt(_0x498817(0x205))/0x3+-parseInt(_0x498817(0x1f8))/0x4+parseInt(_0x498817(0x1bd))/0x5*(parseInt(_0x498817(0x210))/0x6)+-parseInt(_0x498817(0x1e5))/0x7+parseInt(_0x498817(0x20b))/0x8;if(_0x584a14===_0x1826b1)break;else _0xe14580['push'](_0xe14580['shift']());}catch(_0x2a5be6){_0xe14580['push'](_0xe14580['shift']());}}}(_0x5380,0x2555c));import'../chunks/vendor-DjomC5bd.js';import{a as _0x5377e0,i as _0x52add4,n,o as _0x2962f1,r as _0x6199a8,t as _0x5bd92d}from'../chunks/trace-DPfd8LdJ.js';import{a as _0x3eb818,d as _0xd13baa,l as _0x2ed4a3,m as _0x1fb113,n as _0x24ed25,r as _0x3cc944,u as _0x142577}from'../chunks/runtime-manifest-Bt390kp8.js';import{t as _0x12994b}from'../chunks/build-id-Coc3wh1M.js';import{existsSync as _0x5db8da}from'node:fs';import{chmod as _0x1cd322,mkdir as _0xdfb21c,readFile as _0x1246b0,rm as _0xd487de,writeFile as _0x48c3ee}from'node:fs/promises';import _0x281c8e from'node:net';import _0xcb6ba1 from'node:process';var S=new _0x3cc944();async function C(_0x3f1439={}){const _0x3f5782=_0x1604;let _0x17c64e=_0x3f1439[_0x3f5782(0x217)]??_0xcb6ba1['env'],_0x2f30d1=_0x142577(_0x17c64e),_0x144986=_0x24ed25(_0x17c64e),_0x2fa265=_0x3f1439['sessionHost']??E(new _0x3eb818({'env':_0x17c64e,'logger':_0xd13baa({'env':_0x17c64e,'role':_0x5377e0['Runtime']}),'resolveExecutionPlaneOptions':()=>({'execArgv':[..._0x144986['runtimeExecutionPlaneEntry'][_0x3f5782(0x1c9)]],'modulePath':_0x144986['runtimeExecutionPlaneEntry']['modulePath']})})),_0x4137df=_0x12994b(_0x17c64e),_0x38cc6d=new Date()['toISOString']();if(await _0xdfb21c(_0x2f30d1[_0x3f5782(0x206)],{'recursive':!0x0,'mode':0x1c0}),await _0xdfb21c(_0x2f30d1[_0x3f5782(0x214)],{'recursive':!0x0,'mode':0x1c0}),!await M(_0x2f30d1[_0x3f5782(0x222)],_0x2f30d1['pidPath'])){if(await N(_0x2f30d1[_0x3f5782(0x229)]))return;throw Error(_0x3f5782(0x221)+_0x2f30d1[_0x3f5782(0x222)]);}await j(_0x2f30d1);let _0x129453=_0xd13baa({'env':_0x17c64e,'role':_0x5377e0[_0x3f5782(0x1e3)]}),_0x538251=k({'buildId':_0x4137df,'env':_0x17c64e,'pid':_0xcb6ba1[_0x3f5782(0x201)]}),_0x171856=!0x1,_0x14b758={},_0x4102bf=async _0x48461b=>z(null,-0x7f5b,Error(_0x3f5782(0x224)+_0x48461b)),_0x27abd5=_0x281c8e['createServer'](_0xea7918=>{const _0x338f2d=_0x3f5782;let _0x64e2e7='';_0xea7918['on'](_0x338f2d(0x1ca),_0xf7ebf=>{const _0x56b3d7=_0x338f2d;_0x64e2e7+=_0xf7ebf[_0x56b3d7(0x1c5)](_0x56b3d7(0x22f)),_0x2c37d9();}),_0xea7918['on'](_0x338f2d(0x1e0),()=>void 0x0);let _0x2c37d9=async()=>{const _0x33b3c9=_0x338f2d;for(;;){let _0x4dcb01=_0x64e2e7[_0x33b3c9(0x1d1)]('\x0a');if(_0x4dcb01<0x0)return;let _0x217f4b=_0x64e2e7[_0x33b3c9(0x1d2)](0x0,_0x4dcb01)[_0x33b3c9(0x225)]();if(_0x64e2e7=_0x64e2e7[_0x33b3c9(0x1d2)](_0x4dcb01+0x1),!_0x217f4b)continue;let _0x2d4d62=await _0x4102bf(_0x217f4b);_0xea7918['write'](JSON[_0x33b3c9(0x1fc)](_0x2d4d62)+'\x0a');}};});_0x4102bf=w({'buildId':_0x4137df,'logRequestEvent':async _0x14ec5d=>{const _0x51bcb1=_0x3f5782;_0x129453[_0x51bcb1(0x1ed)]({'level':_0x14ec5d[_0x51bcb1(0x1c4)]===_0x52add4[_0x51bcb1(0x1cc)]?'error':_0x51bcb1(0x1d7),'event_name':_0x14ec5d[_0x51bcb1(0x1c4)],'component':_0x6199a8[_0x51bcb1(0x1e3)],'process_role':_0x5377e0[_0x51bcb1(0x1e3)],..._0x14ec5d['error']===void 0x0?{}:{'error':_0x14ec5d['error']},'fields':{..._0x538251,..._0x14ec5d['durationMs']===void 0x0?{}:{'duration_ms':_0x14ec5d[_0x51bcb1(0x202)]},'method':_0x14ec5d[_0x51bcb1(0x1dc)],'timestamp':_0x14ec5d[_0x51bcb1(0x1e9)]}});},'logRequestError':async _0x496154=>{const _0x408c05=_0x3f5782;_0x129453['error']({'event_name':_0x52add4[_0x408c05(0x1cc)],'component':_0x6199a8[_0x408c05(0x1e3)],'process_role':_0x5377e0[_0x408c05(0x1e3)],'error':_0x496154['error'],'fields':{..._0x538251,'method':_0x496154['method'],'timestamp':_0x496154['timestamp']}});},'onShutdownRequest':()=>{const _0x47bd4e=_0x3f5782;_0x24d5c4(_0x47bd4e(0x22e))[_0x47bd4e(0x1ef)](()=>{const _0x240f86=_0x47bd4e;_0xcb6ba1[_0x240f86(0x1f7)](0x0);});},'pid':_0xcb6ba1[_0x3f5782(0x201)],'runtimeRoot':_0x2f30d1[_0x3f5782(0x1ee)],'sessionHost':_0x2fa265,'socketPath':_0x2f30d1[_0x3f5782(0x229)],'startedAt':_0x38cc6d}),await new Promise((_0x1e034f,_0x3ec2bd)=>{const _0x39ef2b=_0x3f5782;_0x27abd5['once'](_0x39ef2b(0x1e0),_0x3ec2bd),_0x27abd5[_0x39ef2b(0x22d)](_0x2f30d1[_0x39ef2b(0x229)],_0x1e034f);}),_0x2ed4a3(_0x2f30d1[_0x3f5782(0x229)])||await _0x1cd322(_0x2f30d1[_0x3f5782(0x229)],0x180);let _0x529db2={'pid':_0xcb6ba1[_0x3f5782(0x201)],'startedAt':_0x38cc6d,'socketPath':_0x2f30d1['socketPath'],'runtimeRoot':_0x2f30d1['homeDir'],'buildId':_0x4137df};await _0x48c3ee(_0x2f30d1['pidPath'],String(_0xcb6ba1['pid']),_0x3f5782(0x22f)),await _0x48c3ee(_0x2f30d1[_0x3f5782(0x1da)],JSON[_0x3f5782(0x1fc)](_0x529db2,null,0x2),_0x3f5782(0x22f)),_0x129453[_0x3f5782(0x1d7)]({'event_name':_0x52add4['DaemonStart'],'component':_0x6199a8['Daemon'],'process_role':_0x5377e0['Daemon'],'fields':{..._0x538251,'pid':_0xcb6ba1[_0x3f5782(0x201)],'runtime_root':_0x2f30d1['homeDir'],'socket_path':_0x2f30d1[_0x3f5782(0x229)],'started_at':_0x38cc6d}}),await _0x129453['flush']();let _0x567d11=setInterval(()=>{const _0x4eeb2a=_0x3f5782;_0x2fa265[_0x4eeb2a(0x1d3)]();},Math[_0x3f5782(0x21e)](0x3e8,Math[_0x3f5782(0x1d4)](_0x2fa265['getSessionIdleTtlMs'](),0xea60)));_0x567d11[_0x3f5782(0x20e)](),_0x14b758[_0x3f5782(0x1c3)]=_0x567d11;async function _0x24d5c4(_0xab33ec){const _0x4dc54f=_0x3f5782;_0x171856||(_0x171856=!0x0,_0x14b758[_0x4dc54f(0x1c3)]!==void 0x0&&clearInterval(_0x14b758[_0x4dc54f(0x1c3)]),_0x129453[_0x4dc54f(0x1d7)]({'event_name':_0x52add4['DaemonStop'],'component':_0x6199a8[_0x4dc54f(0x1e3)],'process_role':_0x5377e0[_0x4dc54f(0x1e3)],'fields':{..._0x538251,'pid':_0xcb6ba1[_0x4dc54f(0x201)],'reason':_0xab33ec,'timestamp':new Date()[_0x4dc54f(0x1d0)]()}}),await _0x129453[_0x4dc54f(0x21f)](),await _0x2fa265['destroyAll'](_0xab33ec),await new Promise(_0x4b07b6=>{const _0x3ca76d=_0x4dc54f;_0x27abd5[_0x3ca76d(0x226)](()=>_0x4b07b6());}),await F(_0x2f30d1[_0x4dc54f(0x229)]),await _0xd487de(_0x2f30d1[_0x4dc54f(0x1de)],{'force':!0x0})['catch'](()=>void 0x0),await _0xd487de(_0x2f30d1[_0x4dc54f(0x1da)],{'force':!0x0})[_0x4dc54f(0x20d)](()=>void 0x0),await _0xd487de(_0x2f30d1['lockPath'],{'recursive':!0x0,'force':!0x0})[_0x4dc54f(0x20d)](()=>void 0x0));}_0xcb6ba1['on'](_0x3f5782(0x219),()=>{_0x24d5c4('sigint')['finally'](()=>{const _0x39889f=_0x1604;_0xcb6ba1[_0x39889f(0x1f7)](0x0);});}),_0xcb6ba1['on'](_0x3f5782(0x20f),()=>{const _0x209d0c=_0x3f5782;_0x24d5c4('sigterm')[_0x209d0c(0x1ef)](()=>{const _0x5ec737=_0x209d0c;_0xcb6ba1[_0x5ec737(0x1f7)](0x0);});});}function w(_0x15a045){return async _0x3d2b3b=>{const _0x11c45a=_0x1604;let _0x2f45cc;try{_0x2f45cc=JSON[_0x11c45a(0x1c2)](_0x3d2b3b);}catch(_0x8948e4){return z(null,-0x7fbc,_0x8948e4);}let _0x472f89=_0x5bd92d(_0x2f45cc[_0x11c45a(0x1df)]?.[_0x11c45a(0x1fd)]),_0x36b656=async()=>await n[_0x11c45a(0x1d6)]({'name':_0x2962f1['DaemonRpcServer'],'kind':_0x11c45a(0x22a)},async()=>{const _0x5caa4c=_0x11c45a;let _0x3e5a9f=Date['now']();await _0x15a045[_0x5caa4c(0x216)]?.({'eventName':_0x52add4[_0x5caa4c(0x200)],'method':_0x2f45cc[_0x5caa4c(0x1dc)],'timestamp':new Date()['toISOString']()});try{let _0x59f32d=await T(_0x2f45cc,_0x15a045);return await _0x15a045[_0x5caa4c(0x216)]?.({'durationMs':Date[_0x5caa4c(0x213)]()-_0x3e5a9f,'eventName':_0x52add4[_0x5caa4c(0x223)],'method':_0x2f45cc[_0x5caa4c(0x1dc)],'timestamp':new Date()[_0x5caa4c(0x1d0)]()}),_0x59f32d;}catch(_0x2cfd68){return await _0x15a045[_0x5caa4c(0x216)]?.({'durationMs':Date[_0x5caa4c(0x213)]()-_0x3e5a9f,'eventName':_0x52add4[_0x5caa4c(0x1cc)],'method':_0x2f45cc[_0x5caa4c(0x1dc)],'error':_0x2cfd68,'timestamp':new Date()['toISOString']()}),_0x15a045[_0x5caa4c(0x216)]===void 0x0&&await _0x15a045[_0x5caa4c(0x1f9)]?.({'method':_0x2f45cc[_0x5caa4c(0x1dc)],'error':_0x2cfd68 instanceof Error?_0x2cfd68[_0x5caa4c(0x1ec)]:String(_0x2cfd68),'timestamp':new Date()['toISOString']()}),z(_0x2f45cc['id'],-0x7f5b,_0x2cfd68);}});return _0x472f89===void 0x0?await _0x36b656():await n[_0x11c45a(0x1fb)](_0x472f89,_0x36b656);};}async function T(_0x5ca269,_0xab1cf2){const _0x139199=_0x1604;switch(_0x5ca269['method']){case _0x1fb113[_0x139199(0x209)]:return{'jsonrpc':'2.0','id':_0x5ca269['id'],'result':{'ok':!0x0,'pid':_0xab1cf2[_0x139199(0x201)],'startedAt':_0xab1cf2['startedAt'],'socketPath':_0xab1cf2[_0x139199(0x229)],'runtimeRoot':_0xab1cf2[_0x139199(0x1fa)],'buildId':_0xab1cf2['buildId'],'sessionCount':_0xab1cf2[_0x139199(0x1ce)]['getSessionCount']()}};case _0x1fb113[_0x139199(0x1fe)]:return _0xab1cf2['onShutdownRequest']?.(),{'jsonrpc':'2.0','id':_0x5ca269['id'],'result':{'stopping':!0x0}};case _0x1fb113['SessionLoadWorkbook']:{let _0x46ce3b=await _0xab1cf2['sessionHost'][_0x139199(0x215)](_0x5ca269[_0x139199(0x1e2)]);return R(_0x5ca269['id'],_0x46ce3b);}case _0x1fb113[_0x139199(0x1be)]:{let _0x3e9498=await _0xab1cf2[_0x139199(0x1ce)][_0x139199(0x1e1)](_0x5ca269[_0x139199(0x1e2)]);return R(_0x5ca269['id'],_0x3e9498);}case _0x1fb113[_0x139199(0x1cf)]:{let _0x5c06e6=await _0xab1cf2['sessionHost'][_0x139199(0x1dd)](_0x5ca269[_0x139199(0x1e2)]);return R(_0x5ca269['id'],_0x5c06e6);}case _0x1fb113[_0x139199(0x21b)]:{let _0x3367c1=await _0xab1cf2[_0x139199(0x1ce)][_0x139199(0x1d5)](_0x5ca269[_0x139199(0x1e2)]);return R(_0x5ca269['id'],_0x3367c1);}case _0x1fb113[_0x139199(0x1ea)]:{let _0x345fb7=await _0xab1cf2[_0x139199(0x1ce)][_0x139199(0x1e6)](_0x5ca269[_0x139199(0x1e2)]);return R(_0x5ca269['id'],_0x345fb7);}case _0x1fb113[_0x139199(0x22c)]:{let _0x25017c=_0x5ca269[_0x139199(0x1e2)],_0x263078=await _0xab1cf2[_0x139199(0x1ce)][_0x139199(0x212)](_0x25017c);return R(_0x5ca269['id'],_0x263078);}case _0x1fb113['SessionDispose']:{let _0x586ef9=await _0xab1cf2[_0x139199(0x1ce)][_0x139199(0x20a)](_0x5ca269[_0x139199(0x1e2)]);return R(_0x5ca269['id'],_0x586ef9);}case _0x1fb113['SessionGetWorkbook']:{let _0x533fde=await _0xab1cf2[_0x139199(0x1ce)][_0x139199(0x204)](_0x5ca269['params']);return R(_0x5ca269['id'],_0x533fde);}default:return z(_0x5ca269['id'],-0x7f59,Error('Method\x20not\x20found:\x20'+_0x5ca269[_0x139199(0x1dc)]));}}function E(_0xd16e1){return{async 'createWorkbook'(_0x1b10c1){const _0xd18983=_0x1604;let _0x45b125=await D(_0x1b10c1),_0x2681da=await _0xd16e1[_0xd18983(0x1dd)]({..._0x1b10c1[_0xd18983(0x1f1)]===void 0x0?{}:{'cwd':_0x1b10c1[_0xd18983(0x1f1)]},'identity':_0x45b125,..._0x1b10c1['id']===void 0x0?{}:{'workbookId':_0x1b10c1['id']},..._0x1b10c1[_0xd18983(0x21a)]===void 0x0?{}:{'workbookName':_0x1b10c1[_0xd18983(0x21a)]}});return{'success':!0x0,'workbookData':_0x2681da[_0xd18983(0x220)],'session':O(_0x2681da['session'])};},async 'dispose'(_0x4d8652){const _0x443301=_0x1604;let _0x18fbc1=await D(_0x4d8652);return await _0xd16e1['dispose']({..._0x4d8652['cwd']===void 0x0?{}:{'cwd':_0x4d8652[_0x443301(0x1f1)]},'identity':_0x18fbc1}),{'disposed':!0x0,'workbookIdentity':_0x18fbc1['absolutePath']};},async 'destroyAll'(_0x3050c1){const _0xdac26a=_0x1604;await _0xd16e1[_0xdac26a(0x1f4)]?.(_0x3050c1);},async 'evalJs'(_0x1a3dcb){const _0x55a9f7=_0x1604;let _0x2749bf=await D(_0x1a3dcb),_0x40461d=await _0xd16e1[_0x55a9f7(0x1d5)]({'code':_0x1a3dcb[_0x55a9f7(0x1cd)],..._0x1a3dcb[_0x55a9f7(0x1f1)]===void 0x0?{}:{'cwd':_0x1a3dcb['cwd']},'identity':_0x2749bf,..._0x1a3dcb[_0x55a9f7(0x207)]===void 0x0?{}:{'mutates':_0x1a3dcb[_0x55a9f7(0x207)]}});return{..._0x40461d[_0x55a9f7(0x1ff)]===void 0x0?{}:{'mutations':_0x40461d['mutations']},'success':!0x0,'value':_0x40461d['value'],'session':O(_0x40461d[_0x55a9f7(0x1e4)])};},async 'exportWorkbookData'(_0x55ae18){const _0xb4d53f=_0x1604;let _0x5544c1=await D(_0x55ae18),_0x4d7cff=await _0xd16e1[_0xb4d53f(0x212)]({..._0x55ae18[_0xb4d53f(0x1f1)]===void 0x0?{}:{'cwd':_0x55ae18[_0xb4d53f(0x1f1)]},'identity':_0x5544c1});return{'success':!0x0,'workbookData':_0x4d7cff[_0xb4d53f(0x220)],'session':O(_0x4d7cff[_0xb4d53f(0x1e4)])};},async 'exportWorkbookFile'(_0x1c1daa){const _0x5adb99=_0x1604;let _0x545616=await D(_0x1c1daa),_0x4fd2cb=await _0xd16e1['exportWorkbookFile']({..._0x1c1daa[_0x5adb99(0x1f1)]===void 0x0?{}:{'cwd':_0x1c1daa[_0x5adb99(0x1f1)]},'format':_0x1c1daa[_0x5adb99(0x1db)],'identity':_0x545616,'outputPath':_0x1c1daa['outputPath']});return{'success':!0x0,'format':_0x4fd2cb[_0x5adb99(0x1db)],'outputPath':_0x4fd2cb[_0x5adb99(0x1eb)],'sizeBytes':_0x4fd2cb['sizeBytes'],'session':O(_0x4fd2cb[_0x5adb99(0x1e4)])};},async 'getWorkbookSession'(_0x7cce7){const _0x1eb26b=_0x1604;let _0x4230f6=await D(_0x7cce7),_0x2af12f=await _0xd16e1['getSession']({..._0x7cce7['cwd']===void 0x0?{}:{'cwd':_0x7cce7[_0x1eb26b(0x1f1)]},'identity':_0x4230f6});return{'exists':_0x2af12f!==null,'session':_0x2af12f===null?null:O(_0x2af12f)};},'getSessionCount'(){const _0xb2aa8c=_0x1604;return _0xd16e1[_0xb2aa8c(0x21d)]?.()??0x0;},'getSessionIdleTtlMs'(){return _0xd16e1['getSessionIdleTtlMs']?.()??0xea60;},async 'loadWorkbook'(_0x495e26){const _0x252708=_0x1604;let _0x553637=await D(_0x495e26),_0x13e8b5=await _0xd16e1[_0x252708(0x1f2)]({..._0x495e26[_0x252708(0x1f1)]===void 0x0?{}:{'cwd':_0x495e26[_0x252708(0x1f1)]},'identity':_0x553637,'workbookData':_0x495e26[_0x252708(0x220)]});return{'success':!0x0,'workbookData':_0x13e8b5[_0x252708(0x220)],'session':O(_0x13e8b5[_0x252708(0x1e4)])};},async 'loadWorkbookDataReplayPack'(_0x46d32a){const _0x1bc7e2=_0x1604;let _0x16b47d=await D(_0x46d32a),_0x3ac76d=await _0xd16e1[_0x1bc7e2(0x1e1)]({..._0x46d32a[_0x1bc7e2(0x1f1)]===void 0x0?{}:{'cwd':_0x46d32a[_0x1bc7e2(0x1f1)]},'identity':_0x16b47d,'replayPack':{'baseWorkbookData':_0x46d32a[_0x1bc7e2(0x1e8)],'mutations':_0x46d32a[_0x1bc7e2(0x1ff)]}});return{'success':!0x0,'workbookData':_0x3ac76d[_0x1bc7e2(0x220)],'session':O(_0x3ac76d[_0x1bc7e2(0x1e4)])};},async 'unloadIdleSessions'(){const _0x310ec3=_0x1604;await _0xd16e1[_0x310ec3(0x1d3)]?.();}};}async function D(_0x4408b8){const _0x4ad74a=_0x1604;return await S[_0x4ad74a(0x1c6)](_0x4408b8);}function O(_0x39b302){const _0x31938e=_0x1604;return{'createdAt':_0x39b302[_0x31938e(0x1f6)]??'','lastAccessedAt':_0x39b302['lastAccessedAt']??'','sessionId':_0x39b302['sessionId'],'workbookIdentity':_0x39b302[_0x31938e(0x20c)]['absolutePath']};}function k(_0x447450){const _0xe813=_0x1604;return{'build.id':A(_0x447450[_0xe813(0x217)],_0xe813(0x1c8))??_0x447450['buildId'],'deployment.environment.name':_0xe813(0x1f5),'distribution.channel':A(_0x447450[_0xe813(0x217)],_0xe813(0x1c0))??_0xe813(0x211),'service.instance.id':String(_0x447450[_0xe813(0x201)]),'service.name':_0xe813(0x208),...A(_0x447450['env'],_0xe813(0x1d8))===void 0x0?{}:{'service.version':A(_0x447450[_0xe813(0x217)],_0xe813(0x1d8))}};}function A(_0xe16351,_0x1c7684){const _0x786d2c=_0x1604;let _0x44d625=_0xe16351[_0x1c7684]?.[_0x786d2c(0x225)]();return _0x44d625===void 0x0||_0x44d625[_0x786d2c(0x1c1)]===0x0?void 0x0:_0x44d625;}async function j(_0x1a00cf){const _0x52577e=_0x1604;P(_0x1a00cf[_0x52577e(0x229)])&&!await N(_0x1a00cf[_0x52577e(0x229)])&&await F(_0x1a00cf[_0x52577e(0x229)]);let _0x56e939=await I(_0x1a00cf['pidPath']);_0x56e939!==null&&!L(_0x56e939)&&(await _0xd487de(_0x1a00cf[_0x52577e(0x1de)],{'force':!0x0})[_0x52577e(0x20d)](()=>void 0x0),await _0xd487de(_0x1a00cf[_0x52577e(0x1da)],{'force':!0x0})['catch'](()=>void 0x0),await _0xd487de(_0x1a00cf['lockPath'],{'recursive':!0x0,'force':!0x0})[_0x52577e(0x20d)](()=>void 0x0));}async function M(_0x2d87c7,_0x119700){const _0x47d530=_0x1604;try{return await _0xdfb21c(_0x2d87c7,{'recursive':!0x1,'mode':0x1c0}),!0x0;}catch(_0x1a9047){if(_0x1a9047[_0x47d530(0x1cd)]!==_0x47d530(0x1d9))throw _0x1a9047;let _0x1619b4=await I(_0x119700);return _0x1619b4!==null&&L(_0x1619b4)?!0x1:(await _0xd487de(_0x2d87c7,{'recursive':!0x0,'force':!0x0}),await _0xdfb21c(_0x2d87c7,{'recursive':!0x1,'mode':0x1c0}),!0x0);}}function _0x1604(_0x52b769,_0x3ea15){_0x52b769=_0x52b769-0x1bd;const _0x538030=_0x5380();let _0x16040a=_0x538030[_0x52b769];return _0x16040a;}async function N(_0x384407){return await new Promise(_0x13234e=>{const _0x5e6e2c=_0x1604;let _0x1092a3=_0x281c8e[_0x5e6e2c(0x1cb)](_0x384407);_0x1092a3[_0x5e6e2c(0x1f3)](_0x5e6e2c(0x218),()=>{const _0x4326a9=_0x5e6e2c;_0x1092a3[_0x4326a9(0x1f0)](),_0x13234e(!0x0);}),_0x1092a3[_0x5e6e2c(0x1f3)](_0x5e6e2c(0x1e0),()=>{_0x13234e(!0x1);});});}function P(_0x13f7fc){return _0x2ed4a3(_0x13f7fc)?!0x1:_0x5db8da(_0x13f7fc);}async function F(_0x3314bb){const _0x12d3bf=_0x1604;_0x2ed4a3(_0x3314bb)||await _0xd487de(_0x3314bb,{'force':!0x0})[_0x12d3bf(0x20d)](()=>void 0x0);}async function I(_0x29faa9){const _0x31499f=_0x1604;try{let _0x48ea7b=await _0x1246b0(_0x29faa9,'utf8'),_0x1d02bb=Number(_0x48ea7b['trim']());return Number[_0x31499f(0x22b)](_0x1d02bb)?_0x1d02bb:null;}catch{return null;}}function L(_0x3151f2){const _0x14eee7=_0x1604;try{return _0xcb6ba1[_0x14eee7(0x227)](_0x3151f2,0x0),!0x0;}catch{return!0x1;}}function R(_0x12474e,_0x436501){const _0x26a43d=_0x1604;return{'jsonrpc':_0x26a43d(0x1e7),'id':_0x12474e,'result':_0x436501};}function z(_0x573e58,_0x5f4a98,_0x56505b){const _0x22a5c8=_0x1604;return{'jsonrpc':_0x22a5c8(0x1e7),'id':_0x573e58,'error':{'code':_0x5f4a98,'message':_0x56505b instanceof Error?_0x56505b['message']:String(_0x56505b)}};}var B=process[_0xdb5c01(0x203)][0x2]??'serve';B!==_0xdb5c01(0x21c)&&(console[_0xdb5c01(0x1e0)](_0xdb5c01(0x1c7)+B),process[_0xdb5c01(0x1f7)](0x1)),C()[_0xdb5c01(0x20d)](_0xb0c359=>{console['error'](_0xb0c359 instanceof Error?_0xb0c359['message']:String(_0xb0c359)),process['exit'](0x1);});
@@ -1 +1 @@
1
- const _0x139eec=_0x57b9;function _0x562a(){const _0x949223=['ExportWorkbookFile','loadWorkbook','disconnect','params','217576mvdoXG','4Bkfvjb','resolve','1464BPFoxr','86511LAzypy','CreateWorkbook','2328yTyEQs','ready','enqueue','30pmGKfs','outputPath','Method\x20not\x20implemented:\x20','type','266675OosNKS','traceparent','send','code','exportWorkbookData','withSpan','ExportWorkbookData','tail','exit','loadWorkbookDataReplayPack','2rcACpu','rpc-response','1017261dEkNOi','LoadWorkbookDataReplayPack','exportWorkbookFile','33NlaPEY','LoadWorkbook','33358qepCyK','workbookData','loadWorkbookData','2.0','value','rpc-request','evaljs','7966BqRkGj','meta','evalJs','evalJsWithMutationCapture','519620RqiAqk','dispose','message','EvalJs','SIGTERM','method','server','createWorkbook'];_0x562a=function(){return _0x949223;};return _0x562a();}function _0x57b9(_0xb05f17,_0x2e77d9){_0xb05f17=_0xb05f17-0x170;const _0x562a4b=_0x562a();let _0x57b9a6=_0x562a4b[_0xb05f17];return _0x57b9a6;}(function(_0x1ce7ab,_0x530f32){const _0x19a5c4=_0x57b9,_0x13122e=_0x1ce7ab();while(!![]){try{const _0x37f82a=-parseInt(_0x19a5c4(0x19f))/0x1*(-parseInt(_0x19a5c4(0x181))/0x2)+parseInt(_0x19a5c4(0x1a3))/0x3*(-parseInt(_0x19a5c4(0x1a0))/0x4)+-parseInt(_0x19a5c4(0x177))/0x5*(parseInt(_0x19a5c4(0x173))/0x6)+-parseInt(_0x19a5c4(0x18f))/0x7*(parseInt(_0x19a5c4(0x1a2))/0x8)+parseInt(_0x19a5c4(0x183))/0x9+-parseInt(_0x19a5c4(0x193))/0xa*(parseInt(_0x19a5c4(0x186))/0xb)+-parseInt(_0x19a5c4(0x170))/0xc*(-parseInt(_0x19a5c4(0x188))/0xd);if(_0x37f82a===_0x530f32)break;else _0x13122e['push'](_0x13122e['shift']());}catch(_0x1b593f){_0x13122e['push'](_0x13122e['shift']());}}}(_0x562a,0x29335));import'../chunks/vendor-DjomC5bd.js';import{t as _0x129852}from'../chunks/headless-univer-BWfA31gd.js';import{n as _0x4f5e84,o as _0x443afc,t as _0x1605f2}from'../chunks/trace-DPfd8LdJ.js';let i=function(_0x30e7c3){const _0x4e782f=_0x57b9;return _0x30e7c3[_0x4e782f(0x1a4)]=_0x4e782f(0x19a),_0x30e7c3['EvalJs']=_0x4e782f(0x18e),_0x30e7c3[_0x4e782f(0x19b)]='exportWorkbookFile',_0x30e7c3[_0x4e782f(0x17d)]=_0x4e782f(0x17b),_0x30e7c3[_0x4e782f(0x187)]=_0x4e782f(0x19c),_0x30e7c3[_0x4e782f(0x184)]=_0x4e782f(0x180),_0x30e7c3;}({});var a=class{[_0x139eec(0x17e)]=Promise[_0x139eec(0x1a1)]();async[_0x139eec(0x172)](_0xe47fcc){const _0x5709bd=_0x139eec;let _0x28bb2d=this[_0x5709bd(0x17e)],_0x4192bc;this[_0x5709bd(0x17e)]=new Promise(_0x107b93=>{_0x4192bc=_0x107b93;}),await _0x28bb2d;try{return await _0xe47fcc();}finally{_0x4192bc?.();}}},o=_0x129852(),s=new a();process[_0x139eec(0x179)]?.({'type':_0x139eec(0x171)}),process['on'](_0x139eec(0x195),async _0x4ccae5=>{const _0x27a404=_0x139eec;if(_0x4ccae5?.[_0x27a404(0x176)]!==_0x27a404(0x18d))return;let _0x16a2d2=await c(_0x4ccae5['data']);process['send']?.({'type':_0x27a404(0x182),'id':_0x4ccae5['id'],'data':_0x16a2d2});}),process['on'](_0x139eec(0x19d),()=>{const _0x4bcd5a=_0x139eec;o[_0x4bcd5a(0x194)](),process[_0x4bcd5a(0x17f)](0x0);}),process['on'](_0x139eec(0x197),()=>{const _0x28c36a=_0x139eec;o[_0x28c36a(0x194)](),process['exit'](0x0);});async function c(_0x4455f0){const _0x3a6083=_0x139eec;let _0xd2fdb4=_0x1605f2(_0x4455f0[_0x3a6083(0x190)]?.[_0x3a6083(0x178)]),_0x1326c1=async()=>await _0x4f5e84[_0x3a6083(0x17c)]({'name':_0x443afc['RuntimeRpcClient'],'kind':_0x3a6083(0x199)},async()=>await l(_0x4455f0));return _0xd2fdb4===void 0x0?await _0x1326c1():await _0x4f5e84['withContext'](_0xd2fdb4,_0x1326c1);}async function l(_0x19be6e){const _0x1b0b65=_0x139eec;try{switch(_0x19be6e[_0x1b0b65(0x198)]){case i['CreateWorkbook']:{let _0x477fca=o['createWorkbook'](_0x19be6e[_0x1b0b65(0x19e)]??{});return{'jsonrpc':_0x1b0b65(0x18b),'id':_0x19be6e['id'],'result':{'success':!0x0,'workbookData':_0x477fca}};}case i[_0x1b0b65(0x187)]:{let _0x103564=o[_0x1b0b65(0x18a)](_0x19be6e[_0x1b0b65(0x19e)][_0x1b0b65(0x189)]);return{'jsonrpc':'2.0','id':_0x19be6e['id'],'result':{'success':!0x0,'workbookData':_0x103564}};}case i[_0x1b0b65(0x184)]:{let _0x288f1b=await o[_0x1b0b65(0x180)](_0x19be6e[_0x1b0b65(0x19e)]);return{'jsonrpc':_0x1b0b65(0x18b),'id':_0x19be6e['id'],'result':{'success':!0x0,'workbookData':_0x288f1b}};}case i[_0x1b0b65(0x17d)]:return{'jsonrpc':_0x1b0b65(0x18b),'id':_0x19be6e['id'],'result':{'success':!0x0,'workbookData':o['exportWorkbookData']()}};case i[_0x1b0b65(0x19b)]:{let _0x1e4d98=_0x19be6e[_0x1b0b65(0x19e)],_0x2fd9a9=await o[_0x1b0b65(0x185)](_0x1e4d98[_0x1b0b65(0x174)],_0x1e4d98['format']);return{'jsonrpc':_0x1b0b65(0x18b),'id':_0x19be6e['id'],'result':{'success':!0x0,..._0x2fd9a9}};}case i[_0x1b0b65(0x196)]:{let _0x36b748=_0x19be6e[_0x1b0b65(0x19e)]??{},_0x5759a2=async()=>{const _0xcd60d=_0x1b0b65;let _0x4f6eab=_0x36b748['mutates']?await o[_0xcd60d(0x192)](_0x36b748[_0xcd60d(0x17a)]):{'value':await o[_0xcd60d(0x191)](_0x36b748[_0xcd60d(0x17a)]),'mutations':void 0x0};return{'success':!0x0,..._0x4f6eab['mutations']===void 0x0?{}:{'mutations':_0x4f6eab['mutations']},'value':_0x4f6eab[_0xcd60d(0x18c)]};},_0x16951e=_0x36b748['mutates']?await s[_0x1b0b65(0x172)](_0x5759a2):await _0x5759a2();return{'jsonrpc':'2.0','id':_0x19be6e['id'],'result':_0x16951e};}default:throw Error(_0x1b0b65(0x175)+String(_0x19be6e[_0x1b0b65(0x198)]));}}catch(_0x59298d){return{'jsonrpc':_0x1b0b65(0x18b),'id':_0x19be6e['id'],'error':{'code':-0x7f5b,'message':_0x59298d instanceof Error?_0x59298d[_0x1b0b65(0x195)]:String(_0x59298d)}};}}
1
+ const _0x479362=_0x19cd;(function(_0x223fc8,_0x629f3f){const _0x5af35a=_0x19cd,_0x36c1c6=_0x223fc8();while(!![]){try{const _0x3a79ba=parseInt(_0x5af35a(0x1c8))/0x1+-parseInt(_0x5af35a(0x1e3))/0x2*(-parseInt(_0x5af35a(0x1dd))/0x3)+-parseInt(_0x5af35a(0x1f1))/0x4+-parseInt(_0x5af35a(0x1d9))/0x5*(-parseInt(_0x5af35a(0x1d7))/0x6)+parseInt(_0x5af35a(0x1c9))/0x7*(parseInt(_0x5af35a(0x1cd))/0x8)+parseInt(_0x5af35a(0x1eb))/0x9*(parseInt(_0x5af35a(0x1cb))/0xa)+-parseInt(_0x5af35a(0x1da))/0xb;if(_0x3a79ba===_0x629f3f)break;else _0x36c1c6['push'](_0x36c1c6['shift']());}catch(_0x34a4d8){_0x36c1c6['push'](_0x36c1c6['shift']());}}}(_0xd811,0x3d5c0));function _0xd811(){const _0x55a0dc=['mutates','30489AdGtrq','exportWorkbookData','EvalJs','withContext','exportWorkbookFile','params','78vRdrqA','createWorkbook','dispose','enqueue','value','SIGTERM','tail','code','209529dzCGhN','withSpan','outputPath','traceparent','type','loadWorkbookDataReplayPack','1933800oMlJri','CreateWorkbook','server','186132PEvCxW','14fuiBKa','method','170GmVLIy','ExportWorkbookFile','1744032dxISAG','2.0','Method\x20not\x20implemented:\x20','exit','workbookData','meta','LoadWorkbookDataReplayPack','ExportWorkbookData','message','loadWorkbookData','6pzESPt','send','1277995rDoUfS','10286045ZgXheq','mutations'];_0xd811=function(){return _0x55a0dc;};return _0xd811();}function _0x19cd(_0x25e526,_0x2b7ddc){_0x25e526=_0x25e526-0x1c8;const _0xd81163=_0xd811();let _0x19cdaa=_0xd81163[_0x25e526];return _0x19cdaa;}import'../chunks/vendor-DjomC5bd.js';import{t as _0x2922d1}from'../chunks/headless-univer-BWfA31gd.js';import{n as _0x1e8bf0,o as _0x2abc23,t as _0x250713}from'../chunks/trace-DPfd8LdJ.js';let i=function(_0x5ec630){const _0xd7854b=_0x19cd;return _0x5ec630[_0xd7854b(0x1f2)]=_0xd7854b(0x1e4),_0x5ec630[_0xd7854b(0x1df)]='evaljs',_0x5ec630[_0xd7854b(0x1cc)]=_0xd7854b(0x1e1),_0x5ec630[_0xd7854b(0x1d4)]=_0xd7854b(0x1de),_0x5ec630['LoadWorkbook']='loadWorkbook',_0x5ec630[_0xd7854b(0x1d3)]=_0xd7854b(0x1f0),_0x5ec630;}({});var a=class{[_0x479362(0x1e9)]=Promise['resolve']();async[_0x479362(0x1e6)](_0x41675e){const _0xfe185e=_0x479362;let _0x438e5d=this[_0xfe185e(0x1e9)],_0x46d676;this[_0xfe185e(0x1e9)]=new Promise(_0xaec243=>{_0x46d676=_0xaec243;}),await _0x438e5d;try{return await _0x41675e();}finally{_0x46d676?.();}}},o=_0x2922d1(),s=new a();process['send']?.({'type':'ready'}),process['on'](_0x479362(0x1d5),async _0xd5ebf0=>{const _0x552eea=_0x479362;if(_0xd5ebf0?.[_0x552eea(0x1ef)]!=='rpc-request')return;let _0x38e531=await c(_0xd5ebf0['data']);process[_0x552eea(0x1d8)]?.({'type':'rpc-response','id':_0xd5ebf0['id'],'data':_0x38e531});}),process['on']('disconnect',()=>{const _0x148f9d=_0x479362;o[_0x148f9d(0x1e5)](),process[_0x148f9d(0x1d0)](0x0);}),process['on'](_0x479362(0x1e8),()=>{const _0x5f4d2b=_0x479362;o[_0x5f4d2b(0x1e5)](),process[_0x5f4d2b(0x1d0)](0x0);});async function c(_0x3eaa07){const _0x296244=_0x479362;let _0xde4634=_0x250713(_0x3eaa07[_0x296244(0x1d2)]?.[_0x296244(0x1ee)]),_0x22965d=async()=>await _0x1e8bf0[_0x296244(0x1ec)]({'name':_0x2abc23['RuntimeRpcClient'],'kind':_0x296244(0x1f3)},async()=>await l(_0x3eaa07));return _0xde4634===void 0x0?await _0x22965d():await _0x1e8bf0[_0x296244(0x1e0)](_0xde4634,_0x22965d);}async function l(_0x1c26d0){const _0x2c34e0=_0x479362;try{switch(_0x1c26d0[_0x2c34e0(0x1ca)]){case i[_0x2c34e0(0x1f2)]:{let _0x3402f2=o[_0x2c34e0(0x1e4)](_0x1c26d0[_0x2c34e0(0x1e2)]??{});return{'jsonrpc':'2.0','id':_0x1c26d0['id'],'result':{'success':!0x0,'workbookData':_0x3402f2}};}case i['LoadWorkbook']:{let _0x366ba1=o[_0x2c34e0(0x1d6)](_0x1c26d0[_0x2c34e0(0x1e2)][_0x2c34e0(0x1d1)]);return{'jsonrpc':_0x2c34e0(0x1ce),'id':_0x1c26d0['id'],'result':{'success':!0x0,'workbookData':_0x366ba1}};}case i[_0x2c34e0(0x1d3)]:{let _0x11a1b4=await o[_0x2c34e0(0x1f0)](_0x1c26d0[_0x2c34e0(0x1e2)]);return{'jsonrpc':_0x2c34e0(0x1ce),'id':_0x1c26d0['id'],'result':{'success':!0x0,'workbookData':_0x11a1b4}};}case i['ExportWorkbookData']:return{'jsonrpc':'2.0','id':_0x1c26d0['id'],'result':{'success':!0x0,'workbookData':o[_0x2c34e0(0x1de)]()}};case i[_0x2c34e0(0x1cc)]:{let _0x141dea=_0x1c26d0[_0x2c34e0(0x1e2)],_0x159d45=await o[_0x2c34e0(0x1e1)](_0x141dea[_0x2c34e0(0x1ed)],_0x141dea['format']);return{'jsonrpc':_0x2c34e0(0x1ce),'id':_0x1c26d0['id'],'result':{'success':!0x0,..._0x159d45}};}case i[_0x2c34e0(0x1df)]:{let _0x2ce717=_0x1c26d0[_0x2c34e0(0x1e2)]??{},_0x12b282=async()=>{const _0x4aa7a6=_0x2c34e0;let _0x46f570=_0x2ce717[_0x4aa7a6(0x1dc)]?await o['evalJsWithMutationCapture'](_0x2ce717[_0x4aa7a6(0x1ea)]):{'value':await o['evalJs'](_0x2ce717[_0x4aa7a6(0x1ea)]),'mutations':void 0x0};return{'success':!0x0,..._0x46f570[_0x4aa7a6(0x1db)]===void 0x0?{}:{'mutations':_0x46f570[_0x4aa7a6(0x1db)]},'value':_0x46f570[_0x4aa7a6(0x1e7)]};},_0x3ff115=_0x2ce717[_0x2c34e0(0x1dc)]?await s[_0x2c34e0(0x1e6)](_0x12b282):await _0x12b282();return{'jsonrpc':'2.0','id':_0x1c26d0['id'],'result':_0x3ff115};}default:throw Error(_0x2c34e0(0x1cf)+String(_0x1c26d0[_0x2c34e0(0x1ca)]));}}catch(_0x1682dd){return{'jsonrpc':_0x2c34e0(0x1ce),'id':_0x1c26d0['id'],'error':{'code':-0x7f5b,'message':_0x1682dd instanceof Error?_0x1682dd['message']:String(_0x1682dd)}};}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "univer-cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Command-line tools for local Univer workbook automation.",
5
5
  "repository": {
6
6
  "type": "git",