univer-cli 0.1.10 → 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.
- package/chunks/build-id-Coc3wh1M.js +1 -1
- package/chunks/headless-univer-BWfA31gd.js +1 -1
- package/chunks/runtime-eval-kernels-CnEan2Vi.js +1 -0
- package/chunks/runtime-manifest-Bt390kp8.js +1 -1
- package/chunks/trace-DPfd8LdJ.js +1 -1
- package/internal/cli.js +1 -1
- package/internal/daemon.js +1 -1
- package/internal/univer-runner.js +1 -1
- package/package.json +1 -1
- package/view/browser/assets/formula-dependency-graph-panel.js +1 -1
- package/view/browser/assets/viewer.js +2 -1
- package/chunks/runtime-eval-kernels-dRCWgwtH.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x598c2a=_0x2263;(function(_0x27b827,_0xcd51e2){const _0xe615b6=_0x2263,_0x429b5f=_0x27b827();while(!![]){try{const _0x22cf32=parseInt(_0xe615b6(0x35f))/0x1*(-parseInt(_0xe615b6(0x30e))/0x2)+-parseInt(_0xe615b6(0x278))/0x3*(parseInt(_0xe615b6(0x235))/0x4)+parseInt(_0xe615b6(0x2bb))/0x5*(-parseInt(_0xe615b6(0x20e))/0x6)+-parseInt(_0xe615b6(0x377))/0x7*(-parseInt(_0xe615b6(0x28f))/0x8)+parseInt(_0xe615b6(0x1f1))/0x9*(-parseInt(_0xe615b6(0x345))/0xa)+-parseInt(_0xe615b6(0x391))/0xb+-parseInt(_0xe615b6(0x2c6))/0xc*(-parseInt(_0xe615b6(0x21f))/0xd);if(_0x22cf32===_0xcd51e2)break;else _0x429b5f['push'](_0x429b5f['shift']());}catch(_0x43ed2c){_0x429b5f['push'](_0x429b5f['shift']());}}}(_0x5353,0x94001));import{o as _0x11eb6b}from'./rolldown-runtime-D8j-JhcR.js';import{gn as _0x942c4e}from'./vendor-DjomC5bd.js';import{a as _0x18fc6e,i as _0x24ef7a,n as _0x144c5b,o as _0x512996,r as _0x57fd85}from'./trace-DPfd8LdJ.js';import{spawn as _0x54e7c4}from'node:child_process';import{constants as _0x157e26,existsSync as _0x37604f,mkdirSync as _0x1e1bbb,readFileSync as _0x44739a}from'node:fs';import{access as _0x1d4b37,appendFile as _0x296465,mkdir as _0x6ec886,readFile as _0x39e465,readdir as _0x47315f,realpath as _0x38cbf4,rename as _0x31e496,rm as _0x46aa09,stat as _0x336be6,writeFile as _0x32432d}from'node:fs/promises';import{basename as _0x26e08e,dirname as _0x53ed98,extname as _0x2a6466,join as _0x52e42b,resolve as _0x103e00}from'node:path';import{fileURLToPath as _0x453965,pathToFileURL as _0x26cbc5}from'node:url';import{createRequire as _0x1836b5}from'node:module';import{hostname as _0x3fe84d}from'node:os';import{createHash as _0x2f732b,randomUUID as _0x440fb7}from'node:crypto';import _0x249226 from'node:net';import _0x276ae6 from'node:process';import{EventEmitter as _0x474d8b}from'node:events';const x={'Health':_0x598c2a(0x330),'Shutdown':'daemon.shutdown','SessionCreateWorkbook':'session.createWorkbook','SessionEvalJs':_0x598c2a(0x23b),'SessionExportWorkbookFile':_0x598c2a(0x33b),'SessionExportWorkbookData':'session.exportWorkbookData','SessionDispose':_0x598c2a(0x34a),'SessionGetWorkbook':_0x598c2a(0x322),'SessionLoadWorkbook':'session.loadWorkbook','SessionLoadWorkbookDataReplayPack':_0x598c2a(0x259)};var he=class{[_0x598c2a(0x2f8)](_0x57f4cf){}[_0x598c2a(0x2c9)](_0x23a905){}['warn'](_0x437080){}[_0x598c2a(0x33e)](_0x2e791c){}[_0x598c2a(0x2f1)](_0x1fe270){}async['flush'](){}};function ge(_0x294b90,_0x4165fa=new Date()){const _0xbccf43=_0x598c2a;let _0x198040=_0x144c5b['active']();return{'time':_0x4165fa['toISOString'](),'level':_0x294b90[_0xbccf43(0x319)]??_0xbccf43(0x2c9),'event_name':_0x294b90[_0xbccf43(0x25c)],'component':_0x294b90[_0xbccf43(0x26a)],'process_role':_0x294b90[_0xbccf43(0x298)],'pid':process['pid'],..._0x294b90[_0xbccf43(0x1ef)]===void 0x0?{}:{'message':_0x294b90[_0xbccf43(0x1ef)]},..._0x198040===void 0x0?{}:{'trace_id':_0x198040[_0xbccf43(0x22f)],'span_id':_0x198040[_0xbccf43(0x35e)],'trace_flags':_0x198040[_0xbccf43(0x308)],..._0x198040[_0xbccf43(0x22b)]===void 0x0?{}:{'parent_span_id':_0x198040[_0xbccf43(0x22b)]}},..._0x294b90[_0xbccf43(0x33e)]===void 0x0?{}:{'error':_e(_0x294b90[_0xbccf43(0x33e)])},..._0x294b90['fields']??{}};}function _e(_0x4baf10){const _0x577e8f=_0x598c2a;return _0x4baf10 instanceof Error?{'message':_0x4baf10[_0x577e8f(0x1ef)],'name':_0x4baf10[_0x577e8f(0x29d)],...ye(_0x4baf10),..._0x4baf10[_0x577e8f(0x354)]===void 0x0?{}:{'stack':_0x4baf10['stack']},...ve(_0x4baf10)}:{'message':typeof _0x4baf10==_0x577e8f(0x351)?_0x4baf10:JSON['stringify'](_0x4baf10)};}function ve(_0x3c0320){const _0x53a096=_0x598c2a;let _0x2f6305=_0x3c0320;return typeof _0x2f6305[_0x53a096(0x22c)]==_0x53a096(0x351)?{'code':_0x2f6305[_0x53a096(0x22c)]}:{};}function ye(_0x3cf5e6){const _0x2973b4=_0x598c2a;let _0x13c288=_0x3cf5e6;return _0x13c288[_0x2973b4(0x325)]===null||typeof _0x13c288[_0x2973b4(0x325)]!=_0x2973b4(0x371)||Array['isArray'](_0x13c288[_0x2973b4(0x325)])?{}:{'details':_0x13c288[_0x2973b4(0x325)]};}var be=_0x11eb6b(_0x942c4e(),0x1)[_0x598c2a(0x2f5)],xe=0xa*0x400*0x400,Se=0x5,Ce=0x3e8,we=class{[_0x598c2a(0x255)];[_0x598c2a(0x358)];[_0x598c2a(0x38c)];[_0x598c2a(0x2c5)];['maxArchiveFiles'];[_0x598c2a(0x32e)];['rotationCheckIntervalMs'];['closed']=!0x1;[_0x598c2a(0x2d5)]=0x0;[_0x598c2a(0x219)];[_0x598c2a(0x289)]=!0x1;constructor(_0x507720){const _0x563adb=_0x598c2a;this[_0x563adb(0x38c)]=_0x507720[_0x563adb(0x38c)]===!0x0,this[_0x563adb(0x2c5)]=_0x507720['logPath'],this[_0x563adb(0x27c)]=_0x507720[_0x563adb(0x27c)]??Se,this[_0x563adb(0x32e)]=_0x507720[_0x563adb(0x32e)]??xe,this[_0x563adb(0x228)]=_0x507720[_0x563adb(0x228)]??Ce,this['destination']=new be({'dest':_0x507720[_0x563adb(0x2c5)],'mkdir':!0x0,'sync':!0x1}),this[_0x563adb(0x358)]=new Promise(_0x5a05cd=>{const _0x4b1236=_0x563adb;this[_0x4b1236(0x255)][_0x4b1236(0x349)](_0x4b1236(0x358),()=>{_0x5a05cd();}),this[_0x4b1236(0x255)][_0x4b1236(0x349)]('error',()=>{_0x5a05cd();});});}[_0x598c2a(0x2f8)](_0x425d5f){const _0x56a7f9=_0x598c2a;this[_0x56a7f9(0x2f1)]({..._0x425d5f,'level':_0x56a7f9(0x2f8)});}[_0x598c2a(0x2c9)](_0x56d6f3){this['event']({..._0x56d6f3,'level':'info'});}[_0x598c2a(0x37d)](_0x5de5de){const _0xc77ad2=_0x598c2a;this[_0xc77ad2(0x2f1)]({..._0x5de5de,'level':_0xc77ad2(0x37d)});}[_0x598c2a(0x33e)](_0x1d71f3){const _0x1a6d05=_0x598c2a;this[_0x1a6d05(0x2f1)]({..._0x1d71f3,'level':'error'});}[_0x598c2a(0x2f1)](_0x49c1e6){const _0x1e4e36=_0x598c2a;if(!(this[_0x1e4e36(0x2d0)]||this[_0x1e4e36(0x289)]))try{this['saturated']=!this[_0x1e4e36(0x255)]['write'](JSON[_0x1e4e36(0x274)](ge(_0x49c1e6))+'\x0a'),this[_0x1e4e36(0x289)]&&this[_0x1e4e36(0x255)]['once']('drain',()=>{const _0x4e3f60=_0x1e4e36;this[_0x4e3f60(0x289)]=!0x1;}),this[_0x1e4e36(0x316)]();}catch{}}async[_0x598c2a(0x389)](){const _0x2f0a77=_0x598c2a;this[_0x2f0a77(0x2d0)]||(await this[_0x2f0a77(0x358)],await new Promise(_0x8f6666=>{const _0xe660c2=_0x2f0a77;this[_0xe660c2(0x255)][_0xe660c2(0x389)](()=>{_0x8f6666();});}),await this[_0x2f0a77(0x219)],this[_0x2f0a77(0x38c)]&&(this['closed']=!0x0,this[_0x2f0a77(0x255)]['end']()));}[_0x598c2a(0x316)](){const _0x3c0310=_0x598c2a;let _0x56bf60=Date[_0x3c0310(0x288)]();this[_0x3c0310(0x219)]!==void 0x0||_0x56bf60<this['nextRotationCheckAt']||(this[_0x3c0310(0x2d5)]=_0x56bf60+this['rotationCheckIntervalMs'],this[_0x3c0310(0x219)]=this[_0x3c0310(0x208)]()[_0x3c0310(0x2dc)](()=>{})[_0x3c0310(0x2e9)](()=>{const _0x2348ab=_0x3c0310;this[_0x2348ab(0x219)]=void 0x0;}));}async[_0x598c2a(0x208)](){const _0x5217bb=_0x598c2a;await this[_0x5217bb(0x358)],await Ae({'logPath':this[_0x5217bb(0x2c5)],'maxArchiveFiles':this[_0x5217bb(0x27c)],'maxBytes':this[_0x5217bb(0x32e)],'flush':async()=>{await new Promise(_0xfcc2c6=>{const _0x337873=_0x2263;this['destination'][_0x337873(0x389)](()=>{_0xfcc2c6();});});}})&&!this[_0x5217bb(0x2d0)]&&this['destination'][_0x5217bb(0x390)](this[_0x5217bb(0x2c5)]);}};function Te(_0x4decfb){return new we(_0x4decfb);}function Ee(_0x17cec2){let {env:_0x341592,role:_0x3c6f3f,..._0x550644}=_0x17cec2,_0x35ebc0=S(_0x341592);return Te({..._0x550644,'logPath':Oe(_0x35ebc0,_0x3c6f3f)});}function De(_0x44b942=process.env){const _0x43eb03=_0x598c2a;let _0x359526=_0x44b942[_0x43eb03(0x2e6)]?.[_0x43eb03(0x2f3)]();if(_0x359526)return _0x103e00(_0x359526);let _0x1cd8af=_0x44b942[_0x43eb03(0x291)]?.[_0x43eb03(0x2f3)]()||_0x44b942['USERPROFILE']?.['trim']();if(!_0x1cd8af)throw Error(_0x43eb03(0x36a));return _0x103e00(_0x1cd8af,_0x43eb03(0x384));}function S(_0x20a73b=process.env){const _0x1e2ff5=_0x598c2a;let _0xfeadc0=De(_0x20a73b),_0x236b25=_0x52e42b(_0xfeadc0,_0x1e2ff5(0x207));return{'homeDir':_0xfeadc0,'logsDir':_0x236b25,'cliLogPath':_0x52e42b(_0x236b25,_0x1e2ff5(0x238)),'daemonLogPath':_0x52e42b(_0x236b25,'daemon.jsonl'),'runtimeLogPath':_0x52e42b(_0x236b25,_0x1e2ff5(0x2da)),'viewHostLogPath':_0x52e42b(_0x236b25,'view-host.jsonl')};}function Oe(_0x219fb4,_0x49c6a2){const _0x3b54f6=_0x598c2a;switch(_0x49c6a2){case _0x3b54f6(0x269):return _0x219fb4[_0x3b54f6(0x218)];case _0x3b54f6(0x2e4):return _0x219fb4[_0x3b54f6(0x276)];case _0x3b54f6(0x253):return _0x219fb4[_0x3b54f6(0x324)];case _0x3b54f6(0x27d):return _0x219fb4[_0x3b54f6(0x327)];}}async function ke(_0x3f8a75,_0x4ccf67){const _0x2e8bee=_0x598c2a;await _0x6ec886(_0x53ed98(_0x3f8a75),{'recursive':!0x0,'mode':0x1c0}),await _0x296465(_0x3f8a75,_0x4ccf67+'\x0a',_0x2e8bee(0x1fc));try{await Ae({'logPath':_0x3f8a75,'maxArchiveFiles':Se,'maxBytes':xe});}catch{}}async function Ae(_0x20ce05){const _0x268806=_0x598c2a;if(_0x20ce05[_0x268806(0x32e)]<=0x0)return!0x1;await _0x20ce05[_0x268806(0x389)]?.();let _0x89da18;try{_0x89da18=await _0x336be6(_0x20ce05['logPath']);}catch{return!0x1;}if(!_0x89da18[_0x268806(0x254)]()||_0x89da18['size']<_0x20ce05[_0x268806(0x32e)])return!0x1;let _0x3f2311=_0x52e42b(_0x53ed98(_0x20ce05[_0x268806(0x2c5)]),'archive');await _0x6ec886(_0x3f2311,{'recursive':!0x0,'mode':0x1c0});let _0x14badd=_0x52e42b(_0x3f2311,_0x26e08e(_0x20ce05['logPath'])+'.'+Me(new Date())+'.'+process[_0x268806(0x24f)]);try{await _0x31e496(_0x20ce05['logPath'],_0x14badd);}catch{return!0x1;}return await je({'archiveDir':_0x3f2311,'maxArchiveFiles':_0x20ce05[_0x268806(0x27c)],'prefix':_0x26e08e(_0x20ce05[_0x268806(0x2c5)])+'.'}),!0x0;}async function je(_0x130241){const _0x5e572c=_0x598c2a;if(_0x130241[_0x5e572c(0x27c)]<0x0)return;let _0x1d2bc1;try{_0x1d2bc1=await _0x47315f(_0x130241[_0x5e572c(0x26e)]);}catch{return;}let _0x5ec152=_0x1d2bc1[_0x5e572c(0x2ac)](_0xabd53b=>_0xabd53b[_0x5e572c(0x2ff)](_0x130241[_0x5e572c(0x368)]))[_0x5e572c(0x31d)]()['reverse']();await Promise['allSettled'](_0x5ec152['slice'](_0x130241['maxArchiveFiles'])[_0x5e572c(0x244)](async _0xe36aea=>await _0x46aa09(_0x52e42b(_0x130241['archiveDir'],_0xe36aea),{'force':!0x0})));}function Me(_0x30f35b){const _0x5c8706=_0x598c2a;return _0x30f35b[_0x5c8706(0x216)]()[_0x5c8706(0x38e)](/[^0-9A-Za-z]/gu,'');}var Ne=0x46,Pe='\x5c\x5c.\x5cpipe\x5c';function Fe(_0x63d79e=process.env){const _0x4be8db=_0x598c2a;let _0x40405f=_0x63d79e['UNIVER_HOME']?.['trim']();if(_0x40405f)return _0x103e00(_0x40405f);let _0x3e9b92=_0x63d79e[_0x4be8db(0x291)]?.[_0x4be8db(0x2f3)]()||_0x63d79e[_0x4be8db(0x2a8)]?.[_0x4be8db(0x2f3)]();if(!_0x3e9b92)throw Error(_0x4be8db(0x36a));return _0x103e00(_0x3e9b92,'.univer');}function C(_0x297854=process.env){const _0x55f40e=_0x598c2a;let _0x58b511=Fe(_0x297854),_0xb0673e=_0x52e42b(_0x58b511,_0x55f40e(0x2e4)),_0x29830a=_0x52e42b(_0x58b511,_0x55f40e(0x37b)),_0x499303=S(_0x297854),_0x30591a=Ie(_0x58b511);return{'homeDir':_0x58b511,'daemonDir':_0xb0673e,'logsDir':_0x499303[_0x55f40e(0x2f6)],'daemonLogPath':_0x499303['daemonLogPath'],'sessionRoot':_0x29830a,'socketPath':_0x30591a,'pidPath':_0x52e42b(_0xb0673e,_0x55f40e(0x338)),'metaPath':_0x52e42b(_0xb0673e,'daemon.meta.json'),'lockPath':_0x52e42b(_0xb0673e,_0x55f40e(0x314))};}function Ie(_0x1e4140,_0x168efe=process[_0x598c2a(0x297)]){const _0x39146=_0x598c2a;let _0x6a4a1=_0x52e42b(_0x1e4140,_0x39146(0x2e4),_0x39146(0x2b0));return _0x168efe==='win32'?Pe+_0x39146(0x34f)+Re(_0x6a4a1):_0x6a4a1['length']<=Ne?_0x6a4a1:_0x52e42b(_0x39146(0x323),_0x39146(0x293)+Re(_0x6a4a1)+'.sock');}function w(_0x378aa2){const _0x3683ce=_0x598c2a;return _0x378aa2[_0x3683ce(0x2ff)](Pe);}function Le(_0x179ac6,_0x48caa7=process.env){const _0x407b2c=_0x598c2a;let _0x12d2d4=_0x52e42b(C(_0x48caa7)[_0x407b2c(0x303)],_0x179ac6);return{'sessionDir':_0x12d2d4,'tracePath':S(_0x48caa7)[_0x407b2c(0x324)],'stderrPath':_0x52e42b(_0x12d2d4,'stderr.log')};}function Re(_0x355929){const _0x4f0968=_0x598c2a;return _0x2f732b('sha1')[_0x4f0968(0x36e)](_0x355929)[_0x4f0968(0x334)](_0x4f0968(0x258))[_0x4f0968(0x226)](0x0,0x10);}var ze=0x3a98,Be=0x7530;async function T(_0x176e65={}){const _0x6b9fe4=_0x598c2a;return await D({'jsonrpc':_0x6b9fe4(0x2f9),'id':k(),'method':x[_0x6b9fe4(0x2e2)]},{..._0x176e65,'autoStart':!0x1});}async function E(_0x56a193={}){const _0x3d52f1=_0x598c2a;let _0x428b8c=_0x56a193[_0x3d52f1(0x241)]??_0x276ae6[_0x3d52f1(0x241)],{readDaemonBuildId:_0x576f8b}=await import('./build-id-BAjJE5TZ.js'),_0x4ea0cc=_0x576f8b(_0x428b8c);try{let _0x1aa160=await T({..._0x56a193,'autoStart':!0x1});return ct(_0x4ea0cc,_0x1aa160[_0x3d52f1(0x2d3)]),_0x1aa160;}catch(_0x463d4c){if(_0x56a193[_0x3d52f1(0x370)]===!0x1)throw _0x463d4c;}let _0x17790a=await rt(_0x428b8c,_0x4ea0cc,_0x56a193[_0x3d52f1(0x36d)]),_0x2f9e8b=_0x56a193['startTimeoutMs']??ze,_0x5489d1=Date[_0x3d52f1(0x288)]()+_0x2f9e8b,_0x12cf24;for(;Date[_0x3d52f1(0x288)]()<_0x5489d1;)try{let _0x3d8902=await T({..._0x56a193,'autoStart':!0x1});return ct(_0x4ea0cc,_0x3d8902[_0x3d52f1(0x2d3)]),_0x3d8902;}catch(_0x32bc29){_0x12cf24=_0x32bc29,await dt(0x64);}throw Error([_0x3d52f1(0x362)+_0x2f9e8b+'ms',_0x3d52f1(0x2ba)+_0x17790a[_0x3d52f1(0x33d)]+'\x20'+_0x17790a['args'][_0x3d52f1(0x32b)]('\x20'),_0x3d52f1(0x310)+ut(_0x12cf24)]['join'](';\x20'));}function _0x2263(_0x233dde,_0x1a4d97){_0x233dde=_0x233dde-0x1ef;const _0x53530c=_0x5353();let _0x22638d=_0x53530c[_0x233dde];return _0x22638d;}async function Ve(_0x52f6b1={}){let _0x593446=C(_0x52f6b1['env']??_0x276ae6['env']);try{return Qe(await T({..._0x52f6b1,'autoStart':!0x1}),_0x593446);}catch(_0x38d8f8){return nt(_0x593446)?et(_0x593446,_0x38d8f8):$e(_0x593446);}}async function He(_0xc39b77={}){return await E(_0xc39b77);}async function Ue(_0x25e133={}){const _0x328904=_0x598c2a;let _0x436387=C(_0x25e133[_0x328904(0x241)]??_0x276ae6[_0x328904(0x241)]);try{await D({'jsonrpc':_0x328904(0x2f9),'id':k(),'method':x[_0x328904(0x217)]},{..._0x25e133,'autoStart':!0x1});}catch{await at(_0x436387[_0x328904(0x2c8)]),await _0x46aa09(_0x436387[_0x328904(0x383)],{'force':!0x0})[_0x328904(0x2dc)](()=>void 0x0),await _0x46aa09(_0x436387[_0x328904(0x331)],{'force':!0x0})[_0x328904(0x2dc)](()=>void 0x0),await _0x46aa09(_0x436387[_0x328904(0x2b8)],{'recursive':!0x0,'force':!0x0})[_0x328904(0x2dc)](()=>void 0x0);return;}let _0x17447f=Date[_0x328904(0x288)]()+(_0x25e133[_0x328904(0x245)]??ze);for(;Date[_0x328904(0x288)]()<_0x17447f;){if(!it(_0x436387['socketPath'])&&!_0x37604f(_0x436387[_0x328904(0x383)])&&!_0x37604f(_0x436387['metaPath']))return;await dt(0x64);}throw Error('Daemon\x20did\x20not\x20stop\x20before\x20timeout');}async function We(_0x1416d5,_0x40a75a,_0x276a2f={}){const _0x128830=_0x598c2a;return await E(_0x276a2f),await D({'jsonrpc':'2.0','id':k(),'method':x['SessionLoadWorkbook'],'params':{'workbookPath':_0x1416d5,'workbookData':_0x40a75a,'cwd':_0x276a2f[_0x128830(0x344)]}},_0x276a2f);}async function Ge(_0x43ba2a,_0x4afff7,_0x229bcd={}){const _0x38943a=_0x598c2a;return await E(_0x229bcd),await D({'jsonrpc':_0x38943a(0x2f9),'id':k(),'method':x[_0x38943a(0x2d1)],'params':{'workbookPath':_0x43ba2a,'cwd':_0x229bcd[_0x38943a(0x344)],'baseWorkbookData':_0x4afff7['baseWorkbookData'],'mutations':_0x4afff7['mutations']}},_0x229bcd);}async function Ke(_0xd28615,_0x440362={}){const _0x1ce3cf=_0x598c2a;return await E(_0x440362),await D({'jsonrpc':_0x1ce3cf(0x2f9),'id':k(),'method':x[_0x1ce3cf(0x296)],'params':{'workbookPath':_0xd28615,'cwd':_0x440362['cwd']}},_0x440362);}async function qe(_0x2f3f8b,_0x48f985={}){const _0x54523d=_0x598c2a;return await E(_0x48f985),await D({'jsonrpc':'2.0','id':k(),'method':x['SessionCreateWorkbook'],'params':{'workbookPath':_0x2f3f8b,'cwd':_0x48f985[_0x54523d(0x344)],'id':_0x48f985['id'],'name':_0x48f985[_0x54523d(0x29d)]}},_0x48f985);}async function Je(_0x532577,_0x5e9c82,_0x40334a={}){const _0x1128f2=_0x598c2a;return await E(_0x40334a),await D({'jsonrpc':'2.0','id':k(),'method':x['SessionEvalJs'],'params':{'workbookPath':_0x532577,'code':_0x5e9c82,'cwd':_0x40334a[_0x1128f2(0x344)],'mutates':_0x40334a[_0x1128f2(0x367)]}},_0x40334a);}async function Ye(_0x4aed48,_0x4065cd={}){const _0x9b32fa=_0x598c2a;return await E(_0x4065cd),await D({'jsonrpc':_0x9b32fa(0x2f9),'id':k(),'method':x[_0x9b32fa(0x382)],'params':{'workbookPath':_0x4aed48,'cwd':_0x4065cd[_0x9b32fa(0x344)]}},_0x4065cd);}async function Xe(_0x4f461c,_0x1ccd30,_0x50d3c6={}){const _0x6122ae=_0x598c2a;return await E(_0x50d3c6),await D({'jsonrpc':_0x6122ae(0x2f9),'id':k(),'method':x[_0x6122ae(0x2a2)],'params':{'workbookPath':_0x4f461c,'cwd':_0x50d3c6[_0x6122ae(0x344)],'format':_0x1ccd30[_0x6122ae(0x2cd)],'outputPath':_0x1ccd30[_0x6122ae(0x1f4)]}},_0x50d3c6);}async function Ze(_0x2f57a0,_0x3649d7={}){const _0x1d3d4d=_0x598c2a;return await E(_0x3649d7),await D({'jsonrpc':_0x1d3d4d(0x2f9),'id':k(),'method':x[_0x1d3d4d(0x240)],'params':{'workbookPath':_0x2f57a0,'cwd':_0x3649d7[_0x1d3d4d(0x344)]}},_0x3649d7);}async function D(_0x11874e,_0x5ba754){const _0x108238=_0x598c2a;return await _0x144c5b[_0x108238(0x32a)]({'name':_0x512996[_0x108238(0x230)],'kind':_0x108238(0x2a9)},async()=>{const _0xd3b7d3=_0x108238;let _0xb2d5b3=C(_0x5ba754[_0xd3b7d3(0x241)]??_0x276ae6[_0xd3b7d3(0x241)]);w(_0xb2d5b3[_0xd3b7d3(0x2c8)])||await _0x1d4b37(_0xb2d5b3[_0xd3b7d3(0x2c8)],_0x157e26['F_OK']);let _0x8853fc=await st(_0xb2d5b3[_0xd3b7d3(0x2c8)],{..._0x11874e,'meta':_0x144c5b[_0xd3b7d3(0x376)](_0x11874e[_0xd3b7d3(0x2e1)])},_0x5ba754[_0xd3b7d3(0x2df)]??Be);if(_0x8853fc['error'])throw Error(_0x8853fc[_0xd3b7d3(0x33e)][_0xd3b7d3(0x1ef)]);return _0x8853fc['result'];});}function Qe(_0xec61d2,_0x3bb8d4){const _0x1c79dc=_0x598c2a;return{'ok':!0x0,'daemon':{'state':'running','pid':_0xec61d2['pid'],'runtimeRoot':_0xec61d2[_0x1c79dc(0x21b)],'socketPath':_0xec61d2['socketPath'],'startedAt':_0xec61d2[_0x1c79dc(0x23a)],'sessionCount':_0xec61d2['sessionCount'],'buildId':_0xec61d2[_0x1c79dc(0x2d3)]},'paths':O(_0x3bb8d4),'next':[{'command':_0x1c79dc(0x24a),'reason':_0x1c79dc(0x256)}],'diagnostics':[]};}function $e(_0x36cee3){const _0x43a17a=_0x598c2a;return{'ok':!0x0,'daemon':tt('stopped',_0x36cee3),'paths':O(_0x36cee3),'next':[{'command':_0x43a17a(0x237),'reason':'daemon\x20is\x20stopped'}],'diagnostics':[]};}function et(_0x3cf769,_0x1ec6df){const _0x1afd6f=_0x598c2a;return{'ok':!0x0,'daemon':tt(_0x1afd6f(0x213),_0x3cf769),'paths':O(_0x3cf769),'next':[{'command':_0x1afd6f(0x24a),'reason':_0x1afd6f(0x266)},{'command':_0x1afd6f(0x237),'reason':_0x1afd6f(0x2bc)}],'diagnostics':[{'message':_0x1ec6df instanceof Error?_0x1ec6df[_0x1afd6f(0x1ef)]:String(_0x1ec6df)}]};}function tt(_0x38152d,_0x22af39){const _0xd71b03=_0x598c2a;return{'state':_0x38152d,'pid':null,'runtimeRoot':_0x22af39[_0xd71b03(0x30d)],'socketPath':_0x22af39[_0xd71b03(0x2c8)],'startedAt':null,'sessionCount':0x0,'buildId':null};}function O(_0x53a2fe){const _0x4389ad=_0x598c2a;return{'metaPath':_0x53a2fe['metaPath'],'lockPath':_0x53a2fe[_0x4389ad(0x2b8)]};}function nt(_0x21e3cd){const _0x34b74c=_0x598c2a;return it(_0x21e3cd[_0x34b74c(0x2c8)])||_0x37604f(_0x21e3cd[_0x34b74c(0x383)])||_0x37604f(_0x21e3cd[_0x34b74c(0x331)]);}async function rt(_0x1944d5,_0x3cab5f,_0x28b8e6){const _0x3bee29=_0x598c2a;let _0x275a02=ot(_0x28b8e6);return _0x1e1bbb(C(_0x1944d5)[_0x3bee29(0x2ce)],{'recursive':!0x0,'mode':0x1c0}),_0x54e7c4(_0x275a02[_0x3bee29(0x33d)],_0x275a02[_0x3bee29(0x285)],{..._0x275a02[_0x3bee29(0x344)]===void 0x0?{}:{'cwd':_0x275a02[_0x3bee29(0x344)]},'detached':!0x0,'stdio':[_0x3bee29(0x336),'ignore',_0x3bee29(0x336)],'env':lt(_0x1944d5,_0x3cab5f),'windowsHide':!0x0})[_0x3bee29(0x249)](),_0x275a02;}function it(_0x56ffc6){return w(_0x56ffc6)?!0x1:_0x37604f(_0x56ffc6);}async function at(_0x59a3ac){const _0x2c612b=_0x598c2a;w(_0x59a3ac)||await _0x46aa09(_0x59a3ac,{'force':!0x0})[_0x2c612b(0x2dc)](()=>void 0x0);}function ot(_0x5cf01c){const _0x596569=_0x598c2a;if(_0x5cf01c===void 0x0)throw Error('Daemon\x20process\x20entry\x20is\x20not\x20configured.\x20Pass\x20DaemonClientOptions.daemonEntry\x20from\x20the\x20CLI\x20runtime\x20manifest.');return{'command':_0x5cf01c[_0x596569(0x33d)]??_0x276ae6[_0x596569(0x387)],..._0x5cf01c['cwd']===void 0x0?{}:{'cwd':_0x5cf01c[_0x596569(0x344)]},'args':[..._0x5cf01c[_0x596569(0x257)]??[],_0x5cf01c['modulePath'],..._0x5cf01c[_0x596569(0x285)]??[_0x596569(0x2c4)]][_0x596569(0x244)](String)};}async function st(_0x56fc95,_0x5079a9,_0x2febc6){return await new Promise((_0x166c8c,_0x2eef6f)=>{const _0x3dbe80=_0x2263;let _0x35c233=_0x249226[_0x3dbe80(0x20f)](_0x56fc95),_0x277aa8='',_0x33adec=setTimeout(()=>{const _0x3f1fb5=_0x3dbe80;_0x35c233[_0x3f1fb5(0x332)](),_0x2eef6f(Error(_0x3f1fb5(0x2b3)+_0x5079a9['method']));},_0x2febc6);_0x35c233['on']('connect',()=>{const _0x43e2cf=_0x3dbe80;_0x35c233[_0x43e2cf(0x2eb)](JSON['stringify'](_0x5079a9)+'\x0a');}),_0x35c233['on']('data',_0xf002c8=>{const _0x3c155d=_0x3dbe80;_0x277aa8+=_0xf002c8[_0x3c155d(0x299)](_0x3c155d(0x1fc));let _0x1f1386=_0x277aa8[_0x3c155d(0x372)]('\x0a');_0x1f1386<0x0||(clearTimeout(_0x33adec),_0x35c233['end'](),_0x166c8c(JSON[_0x3c155d(0x242)](_0x277aa8['slice'](0x0,_0x1f1386)[_0x3c155d(0x2f3)]())));}),_0x35c233['on']('error',_0x201dbd=>{clearTimeout(_0x33adec),_0x2eef6f(_0x201dbd);});});}function ct(_0xdea1c0,_0xb44c6b){const _0x587642=_0x598c2a;if(_0xdea1c0!==_0xb44c6b)throw Error(_0x587642(0x277)+_0xdea1c0+',\x20got\x20'+_0xb44c6b+_0x587642(0x248));}function lt(_0x1f8f21,_0x18244a){const _0x4c3e15=_0x598c2a;let _0xb5351e={..._0x1f8f21,'UNIVER_DAEMON_BUILD_ID_OVERRIDE':_0x18244a};return delete _0xb5351e[_0x4c3e15(0x2a7)],delete _0xb5351e['VITEST'],delete _0xb5351e['VITEST_POOL_ID'],delete _0xb5351e[_0x4c3e15(0x2a0)],_0xb5351e;}function ut(_0x393e89){const _0x3e56f4=_0x598c2a;return _0x393e89 instanceof Error?_0x393e89[_0x3e56f4(0x1ef)]:String(_0x393e89);}function k(){const _0x562fd6=_0x598c2a;return _0x562fd6(0x1f7)+Date[_0x562fd6(0x288)]()[_0x562fd6(0x299)](0x24)+'-'+Math['random']()[_0x562fd6(0x299)](0x10)[_0x562fd6(0x226)](0x2,0x8);}async function dt(_0x26dba0){await new Promise(_0x371449=>{setTimeout(_0x371449,_0x26dba0);});}var ft=0x1388,pt=0xea60,mt=class extends _0x474d8b{[_0x598c2a(0x1f6)];[_0x598c2a(0x25e)];[_0x598c2a(0x262)]=new Map();[_0x598c2a(0x2df)];[_0x598c2a(0x34e)]='';[_0x598c2a(0x290)]='starting';constructor(_0x23dc47,_0x328616){const _0x3ee683=_0x598c2a;super(),this[_0x3ee683(0x20c)]=_0x23dc47,this[_0x3ee683(0x25e)]=_0x328616['destroyGraceMs']??ft,this[_0x3ee683(0x2df)]=_0x328616[_0x3ee683(0x2df)]??pt,this[_0x3ee683(0x1f6)]=_0x54e7c4(process[_0x3ee683(0x387)],[..._0x328616[_0x3ee683(0x257)]??[],_0x328616[_0x3ee683(0x22a)]],{..._0x328616[_0x3ee683(0x344)]===void 0x0?{}:{'cwd':_0x328616[_0x3ee683(0x344)]},'env':{...process.env,..._0x328616[_0x3ee683(0x241)],'UNIVER_SESSION_ID':_0x23dc47},'stdio':[_0x3ee683(0x336),'ignore',_0x3ee683(0x251),_0x3ee683(0x329)],'windowsHide':!0x0}),this[_0x3ee683(0x1f6)][_0x3ee683(0x34e)]?.['on'](_0x3ee683(0x22d),_0x4d26b6=>{const _0x4a2b0e=_0x3ee683;this[_0x4a2b0e(0x34e)]+=_0x4d26b6[_0x4a2b0e(0x299)](),_0x328616[_0x4a2b0e(0x304)]?.(_0x4d26b6);}),this[_0x3ee683(0x1f6)]['on'](_0x3ee683(0x1ef),_0x5003d7=>{const _0x537809=_0x3ee683;if(_0x5003d7[_0x537809(0x202)]==='ready'&&(this['status']=_0x537809(0x358),this[_0x537809(0x26d)](_0x537809(0x358))),_0x5003d7[_0x537809(0x202)]==='rpc-response'&&_0x5003d7['id']!==void 0x0&&_0x5003d7[_0x537809(0x22d)]){let _0x19b584=this[_0x537809(0x262)][_0x537809(0x350)](_0x5003d7['id']);if(!_0x19b584)return;clearTimeout(_0x19b584[_0x537809(0x2f4)]),this[_0x537809(0x262)][_0x537809(0x28d)](_0x5003d7['id']),_0x19b584[_0x537809(0x20d)](_0x5003d7[_0x537809(0x22d)]);}}),this['child']['on'](_0x3ee683(0x21a),(_0x4aa3bb,_0x37712c)=>{const _0x1b9982=_0x3ee683;this[_0x1b9982(0x290)]=_0x1b9982(0x2c7),this['rejectPendingRequests'](Error(_0x1b9982(0x28e)+(_0x4aa3bb??'null')+_0x1b9982(0x2c2)+(_0x37712c??_0x1b9982(0x385))+')'+this['formatStderr']())),this[_0x1b9982(0x26d)](_0x1b9982(0x21a),_0x4aa3bb,_0x37712c);}),this[_0x3ee683(0x1f6)]['on'](_0x3ee683(0x33e),_0x20eb81=>{const _0x5709d0=_0x3ee683;this[_0x5709d0(0x26d)](_0x5709d0(0x33e),_0x20eb81);});}[_0x598c2a(0x332)](){const _0x2d1b5d=_0x598c2a;this[_0x2d1b5d(0x290)]===_0x2d1b5d(0x379)||this[_0x2d1b5d(0x290)]===_0x2d1b5d(0x2c7)||(this[_0x2d1b5d(0x290)]=_0x2d1b5d(0x379),this[_0x2d1b5d(0x1f6)][_0x2d1b5d(0x337)](_0x2d1b5d(0x343)),setTimeout(()=>{const _0x39ec49=_0x2d1b5d;this[_0x39ec49(0x1f6)]['exitCode']===null&&this[_0x39ec49(0x1f6)]['kill'](_0x39ec49(0x224));},this['destroyGraceMs'])[_0x2d1b5d(0x249)]());}['isAlive'](){const _0x4e9590=_0x598c2a;return this[_0x4e9590(0x1f6)][_0x4e9590(0x212)]===null&&this['child'][_0x4e9590(0x1fd)]===null;}async[_0x598c2a(0x356)](_0x1d5afe,_0x3f4e54){const _0x17e76c=_0x598c2a;if(this[_0x17e76c(0x290)]!==_0x17e76c(0x358))throw Error(_0x17e76c(0x333));let _0x6efcc4=_0x3f4e54?.[_0x17e76c(0x233)]??this[_0x17e76c(0x2df)];return new Promise((_0x2e1531,_0x1e41c6)=>{const _0x3b1380=_0x17e76c;let _0x40985f=setTimeout(()=>{const _0x47c3db=_0x2263;this[_0x47c3db(0x262)][_0x47c3db(0x28d)](_0x1d5afe['id']),_0x1e41c6(Error(_0x47c3db(0x348)));},_0x6efcc4);this[_0x3b1380(0x262)][_0x3b1380(0x37e)](_0x1d5afe['id'],{'resolve':_0x2e1531,'reject':_0x1e41c6,'timeout':_0x40985f}),this[_0x3b1380(0x1f6)]['send']({'type':_0x3b1380(0x37f),'id':_0x1d5afe['id'],'data':{..._0x1d5afe,'meta':_0x144c5b[_0x3b1380(0x376)](_0x1d5afe[_0x3b1380(0x2e1)])}});});}async[_0x598c2a(0x360)](_0x2edd9e=0x7530){const _0x2e865b=_0x598c2a;if(this[_0x2e865b(0x290)]!==_0x2e865b(0x358)){if(!this['isAlive']())throw Error(_0x2e865b(0x23f)+this['formatStderr']());return await new Promise((_0x58a1f6,_0x40c27d)=>{const _0x1d9212=_0x2e865b;let _0x371f41=()=>{const _0x2bede1=_0x2263;clearTimeout(_0x39bb21),this[_0x2bede1(0x1f8)]('ready',_0x10abeb),this[_0x2bede1(0x1f8)]('exit',_0x48e412),this[_0x2bede1(0x1f8)]('error',_0xb10e1d);},_0x10abeb=()=>{_0x371f41(),_0x58a1f6();},_0x48e412=()=>{const _0x17b503=_0x2263;_0x371f41(),_0x40c27d(Error('Runner\x20exited\x20before\x20ready'+this[_0x17b503(0x36b)]()));},_0xb10e1d=_0x2be5be=>{const _0x2ae822=_0x2263;_0x371f41(),_0x40c27d(Error(_0x2ae822(0x357)+_0x2be5be[_0x2ae822(0x1ef)]));},_0x39bb21=setTimeout(()=>{const _0x1998f3=_0x2263;_0x371f41(),_0x40c27d(Error(_0x1998f3(0x363)));},_0x2edd9e);this[_0x1d9212(0x349)](_0x1d9212(0x358),_0x10abeb),this['once'](_0x1d9212(0x21a),_0x48e412),this['once']('error',_0xb10e1d);});}}['formatStderr'](){const _0x196e53=_0x598c2a;let _0x236237=this[_0x196e53(0x34e)][_0x196e53(0x2f3)]();return _0x236237[_0x196e53(0x2fa)]===0x0?'':'\x0a'+_0x236237;}[_0x598c2a(0x21e)](_0x257043){const _0x18bae3=_0x598c2a;for(let _0x3559b5 of this[_0x18bae3(0x262)][_0x18bae3(0x36c)]())clearTimeout(_0x3559b5[_0x18bae3(0x2f4)]),_0x3559b5[_0x18bae3(0x2fb)](_0x257043);this['pendingRequests'][_0x18bae3(0x2b1)]();}};let A=function(_0x1c3cfd){const _0x173930=_0x598c2a;return _0x1c3cfd[_0x173930(0x2af)]='createWorkbook',_0x1c3cfd[_0x173930(0x252)]='evaljs',_0x1c3cfd[_0x173930(0x2b5)]='exportWorkbookFile',_0x1c3cfd[_0x173930(0x1f9)]=_0x173930(0x2ed),_0x1c3cfd['LoadWorkbook']=_0x173930(0x1f0),_0x1c3cfd[_0x173930(0x270)]='loadWorkbookDataReplayPack',_0x1c3cfd;}({});var ht=0x384*0x3e8,gt=class{[_0x598c2a(0x241)];[_0x598c2a(0x373)];[_0x598c2a(0x30c)];['sessions']=new Map();[_0x598c2a(0x27a)];constructor(_0x24eff5){const _0x710ea4=_0x598c2a;this[_0x710ea4(0x241)]=_0x24eff5[_0x710ea4(0x241)]??process.env,this[_0x710ea4(0x373)]=_0x24eff5[_0x710ea4(0x373)]??new he(),this[_0x710ea4(0x30c)]=_0x24eff5[_0x710ea4(0x30c)],this[_0x710ea4(0x27a)]=_0x24eff5[_0x710ea4(0x27a)]??_t(this[_0x710ea4(0x241)],ht);}[_0x598c2a(0x221)](){const _0x1aa7e2=_0x598c2a;return this[_0x1aa7e2(0x37b)][_0x1aa7e2(0x386)];}[_0x598c2a(0x282)](){return this['sessionIdleTtlMs'];}async[_0x598c2a(0x23c)](_0x5d3069){const _0x9598e5=_0x598c2a;let _0xfa75fb=await this['resolveWorkbookIdentity'](_0x5d3069[_0x9598e5(0x201)][_0x9598e5(0x2d8)]),_0x167d65=this[_0x9598e5(0x37b)][_0x9598e5(0x350)](_0xfa75fb);return _0x167d65?this['toRuntimeSessionInfo'](_0x167d65,_0x5d3069[_0x9598e5(0x201)]):null;}async[_0x598c2a(0x20a)](_0x269aa1){const _0x57cded=_0x598c2a;let _0xedb2bf=await this['ensureSession'](_0x269aa1['identity'][_0x57cded(0x2d8)]),_0x51843b=await _0xedb2bf[_0x57cded(0x2ad)][_0x57cded(0x356)]({'jsonrpc':_0x57cded(0x2f9),'id':N(_0xedb2bf[_0x57cded(0x20c)]),'method':A[_0x57cded(0x2af)],'params':{'id':_0x269aa1['workbookId'],'name':_0x269aa1['workbookName']}});if(_0x51843b['error'])throw Error(_0x51843b['error'][_0x57cded(0x1ef)]);return await this[_0x57cded(0x250)](_0xedb2bf,_0x57cded(0x286)),{'session':this[_0x57cded(0x2a6)](_0xedb2bf,_0x269aa1[_0x57cded(0x201)]),'workbookData':_0x51843b[_0x57cded(0x392)][_0x57cded(0x26f)]};}async[_0x598c2a(0x24b)](_0xf65190){const _0x1d254c=_0x598c2a;let _0x22982d=await this[_0x1d254c(0x365)](_0xf65190['identity'][_0x1d254c(0x2d8)]),_0x4a1a28=await _0x22982d[_0x1d254c(0x2ad)]['sendRpc']({'jsonrpc':_0x1d254c(0x2f9),'id':N(_0x22982d[_0x1d254c(0x20c)]),'method':A[_0x1d254c(0x35c)],'params':{'workbookData':_0xf65190[_0x1d254c(0x26f)]}});if(_0x4a1a28[_0x1d254c(0x33e)])throw Error(_0x4a1a28[_0x1d254c(0x33e)][_0x1d254c(0x1ef)]);return await this[_0x1d254c(0x250)](_0x22982d,_0x1d254c(0x313)),{'session':this[_0x1d254c(0x2a6)](_0x22982d,_0xf65190[_0x1d254c(0x201)]),'workbookData':_0x4a1a28[_0x1d254c(0x392)][_0x1d254c(0x26f)]};}async[_0x598c2a(0x33a)](_0x5b19ed){const _0x14a57e=_0x598c2a;let _0x2ad770=await this[_0x14a57e(0x365)](_0x5b19ed[_0x14a57e(0x201)][_0x14a57e(0x2d8)]),_0x1277b3={'baseWorkbookData':_0x5b19ed[_0x14a57e(0x2b4)][_0x14a57e(0x27e)],'mutations':_0x5b19ed[_0x14a57e(0x2b4)][_0x14a57e(0x2b7)]},_0x1cd465=await _0x2ad770['runner'][_0x14a57e(0x356)]({'jsonrpc':'2.0','id':N(_0x2ad770[_0x14a57e(0x20c)]),'method':A['LoadWorkbookDataReplayPack'],'params':_0x1277b3});if(_0x1cd465[_0x14a57e(0x33e)])throw Error(_0x1cd465[_0x14a57e(0x33e)][_0x14a57e(0x1ef)]);return await this[_0x14a57e(0x250)](_0x2ad770,'load-workbook-replay-pack'),{'session':this[_0x14a57e(0x2a6)](_0x2ad770,_0x5b19ed[_0x14a57e(0x201)]),'workbookData':_0x1cd465[_0x14a57e(0x392)][_0x14a57e(0x26f)]};}async[_0x598c2a(0x2fc)](_0x8c4004){const _0x4ed5b5=_0x598c2a;let _0x118287=await this[_0x4ed5b5(0x27b)](_0x8c4004['identity'][_0x4ed5b5(0x2d8)]);if(!_0x118287[_0x4ed5b5(0x300)])return await this['touchSession'](_0x118287[_0x4ed5b5(0x38d)],_0x4ed5b5(0x281)),{'loaded':!0x1,'session':this['toRuntimeSessionInfo'](_0x118287[_0x4ed5b5(0x38d)],_0x8c4004[_0x4ed5b5(0x201)])};let _0x33fdd2=await _0x8c4004[_0x4ed5b5(0x205)]();return await this['loadReplayPackIntoSession'](_0x118287[_0x4ed5b5(0x38d)],_0x33fdd2),await this[_0x4ed5b5(0x250)](_0x118287[_0x4ed5b5(0x38d)],_0x4ed5b5(0x231)),{'loaded':!0x0,'session':this['toRuntimeSessionInfo'](_0x118287[_0x4ed5b5(0x38d)],_0x8c4004[_0x4ed5b5(0x201)])};}async['evalJs'](_0x2ecb1c){const _0x1cef93=_0x598c2a;let _0x5b2afd=await this[_0x1cef93(0x365)](_0x2ecb1c[_0x1cef93(0x201)][_0x1cef93(0x2d8)]),_0x2d67fc=await _0x5b2afd[_0x1cef93(0x2ad)][_0x1cef93(0x356)]({'jsonrpc':_0x1cef93(0x2f9),'id':N(_0x5b2afd[_0x1cef93(0x20c)]),'method':A[_0x1cef93(0x252)],'params':{'code':_0x2ecb1c[_0x1cef93(0x22c)],'mutates':_0x2ecb1c['mutates']}});if(_0x2d67fc['error'])throw Error(_0x2d67fc[_0x1cef93(0x33e)]['message']);await this[_0x1cef93(0x250)](_0x5b2afd,'eval-js');let _0x1f2aee=_0x2d67fc['result'][_0x1cef93(0x2b7)];return{..._0x1f2aee===void 0x0?{}:{'mutations':_0x1f2aee},'session':this[_0x1cef93(0x2a6)](_0x5b2afd,_0x2ecb1c['identity']),'value':_0x2d67fc[_0x1cef93(0x392)][_0x1cef93(0x2de)]};}async[_0x598c2a(0x2ed)](_0x320108){const _0x25bbd1=_0x598c2a;let _0x1aae61=await this[_0x25bbd1(0x365)](_0x320108[_0x25bbd1(0x201)][_0x25bbd1(0x2d8)]),_0x425cbf=await _0x1aae61[_0x25bbd1(0x2ad)][_0x25bbd1(0x356)]({'jsonrpc':_0x25bbd1(0x2f9),'id':N(_0x1aae61[_0x25bbd1(0x20c)]),'method':A[_0x25bbd1(0x1f9)]});if(_0x425cbf[_0x25bbd1(0x33e)])throw Error(_0x425cbf[_0x25bbd1(0x33e)][_0x25bbd1(0x1ef)]);return await this[_0x25bbd1(0x250)](_0x1aae61,_0x25bbd1(0x346)),{'session':this['toRuntimeSessionInfo'](_0x1aae61,_0x320108[_0x25bbd1(0x201)]),'workbookData':_0x425cbf[_0x25bbd1(0x392)][_0x25bbd1(0x26f)]};}async[_0x598c2a(0x243)](_0x3c9700){const _0x480604=_0x598c2a;let _0x37f410=await this[_0x480604(0x365)](_0x3c9700[_0x480604(0x201)][_0x480604(0x2d8)]),_0x202e12=await _0x37f410[_0x480604(0x2ad)]['sendRpc']({'jsonrpc':_0x480604(0x2f9),'id':N(_0x37f410[_0x480604(0x20c)]),'method':A[_0x480604(0x2b5)],'params':{'format':_0x3c9700[_0x480604(0x2cd)],'outputPath':_0x3c9700[_0x480604(0x1f4)]}});if(_0x202e12[_0x480604(0x33e)])throw Error(_0x202e12[_0x480604(0x33e)][_0x480604(0x1ef)]);await this[_0x480604(0x250)](_0x37f410,_0x480604(0x222));let _0x3e4fca=_0x202e12[_0x480604(0x392)];return{'format':_0x3e4fca[_0x480604(0x2cd)],'outputPath':_0x3e4fca[_0x480604(0x1f4)],'session':this['toRuntimeSessionInfo'](_0x37f410,_0x3c9700[_0x480604(0x201)]),'sizeBytes':_0x3e4fca[_0x480604(0x229)]};}async[_0x598c2a(0x38f)](_0x4f2142){const _0x47457b=_0x598c2a;let _0x144fcc=await this[_0x47457b(0x246)](_0x4f2142['identity'][_0x47457b(0x2d8)]),_0xab3ce3=this[_0x47457b(0x37b)]['get'](_0x144fcc);_0xab3ce3&&await this[_0x47457b(0x355)](_0xab3ce3,_0x47457b(0x1fe));}async[_0x598c2a(0x2b9)](_0x2d3008=Date[_0x598c2a(0x288)]()){const _0x55de9c=_0x598c2a;let _0x34d732=Array[_0x55de9c(0x2fd)](this[_0x55de9c(0x37b)][_0x55de9c(0x36c)]());for(let _0xa5e3ff of _0x34d732)_0x2d3008-Date[_0x55de9c(0x242)](_0xa5e3ff[_0x55de9c(0x1f3)])<this[_0x55de9c(0x27a)]||await this[_0x55de9c(0x355)](_0xa5e3ff,_0x55de9c(0x275));}async[_0x598c2a(0x339)](_0x3ca723=_0x598c2a(0x35b)){const _0x2c1d40=_0x598c2a;let _0x4dbbaa=Array[_0x2c1d40(0x2fd)](this[_0x2c1d40(0x37b)][_0x2c1d40(0x36c)]());for(let _0x4b841a of _0x4dbbaa)await this[_0x2c1d40(0x355)](_0x4b841a,_0x3ca723);}async[_0x598c2a(0x246)](_0x1ef673){try{return await _0x38cbf4(_0x1ef673);}catch{return _0x1ef673;}}async[_0x598c2a(0x365)](_0x378b18){const _0x51d9bf=_0x598c2a;return(await this['ensureSessionState'](_0x378b18))[_0x51d9bf(0x38d)];}async[_0x598c2a(0x27b)](_0x3a1a3d){const _0x7ef33d=_0x598c2a;let _0x53700d=await this[_0x7ef33d(0x246)](_0x3a1a3d),_0x446641=this[_0x7ef33d(0x37b)][_0x7ef33d(0x350)](_0x53700d);if(_0x446641)return{'created':!0x1,'session':_0x446641};let _0xcf6b62=vt(),_0x118f74=Le(_0xcf6b62,this['env']);await _0x6ec886(_0x118f74[_0x7ef33d(0x307)],{'recursive':!0x0,'mode':0x1c0});let _0x217256=this['resolveExecutionPlaneOptions'](yt(this[_0x7ef33d(0x30c)])),_0x324bb3=new mt(_0xcf6b62,{'cwd':bt(_0x217256['modulePath']),'env':Object['fromEntries'](Object['entries'](this[_0x7ef33d(0x241)])['filter'](_0x538022=>_0x538022[0x1]!==void 0x0)),'execArgv':_0x217256[_0x7ef33d(0x257)],'executionPlanePath':_0x217256[_0x7ef33d(0x263)],'onStderrChunk':_0xf0337a=>{const _0x3af3bb=_0x7ef33d;ke(_0x118f74[_0x3af3bb(0x2d2)],_0xf0337a[_0x3af3bb(0x299)]()[_0x3af3bb(0x24e)]());}});await _0x324bb3[_0x7ef33d(0x360)]();let _0x561552={'sessionId':_0xcf6b62,'workbookIdentity':_0x53700d,'createdAt':new Date()[_0x7ef33d(0x216)](),'lastAccessedAt':new Date()[_0x7ef33d(0x216)](),'runner':_0x324bb3,'paths':_0x118f74};return _0x324bb3['on']('exit',()=>{const _0x3a2088=_0x7ef33d;this['logger'][_0x3a2088(0x37d)]({'event_name':_0x24ef7a['RuntimeRunnerExit'],'component':_0x57fd85[_0x3a2088(0x2a1)],'process_role':_0x18fc6e['Runtime'],'fields':{...j(this[_0x3a2088(0x241)],_0xcf6b62),'session_id':_0xcf6b62,'workbook_identity':_0x53700d}}),this[_0x3a2088(0x373)][_0x3a2088(0x389)](),this[_0x3a2088(0x355)](_0x561552,_0x3a2088(0x279));}),this[_0x7ef33d(0x37b)][_0x7ef33d(0x37e)](_0x53700d,_0x561552),this['logger'][_0x7ef33d(0x2c9)]({'event_name':_0x24ef7a['RuntimeSessionCreated'],'component':_0x57fd85['RuntimeSession'],'process_role':_0x18fc6e[_0x7ef33d(0x335)],'fields':{...j(this[_0x7ef33d(0x241)],_0xcf6b62),'created_at':_0x561552[_0x7ef33d(0x29e)],'session_id':_0xcf6b62,'workbook_identity':_0x53700d}}),await this[_0x7ef33d(0x373)][_0x7ef33d(0x389)](),{'created':!0x0,'session':_0x561552};}async[_0x598c2a(0x374)](_0x3d103e,_0x4c246a){const _0x29c43f=_0x598c2a;let _0x137f60={'baseWorkbookData':_0x4c246a[_0x29c43f(0x27e)],'mutations':_0x4c246a['mutations']},_0x19531d=await _0x3d103e[_0x29c43f(0x2ad)][_0x29c43f(0x356)]({'jsonrpc':_0x29c43f(0x2f9),'id':N(_0x3d103e[_0x29c43f(0x20c)]),'method':A[_0x29c43f(0x270)],'params':_0x137f60});if(_0x19531d['error'])throw Error(_0x19531d['error'][_0x29c43f(0x1ef)]);return _0x19531d[_0x29c43f(0x392)][_0x29c43f(0x26f)];}async[_0x598c2a(0x250)](_0x3f16fe,_0x1916ee){const _0x69f320=_0x598c2a;_0x3f16fe[_0x69f320(0x1f3)]=new Date()[_0x69f320(0x216)](),this[_0x69f320(0x373)][_0x69f320(0x2c9)]({'event_name':_0x24ef7a[_0x69f320(0x347)],'component':_0x57fd85[_0x69f320(0x31c)],'process_role':_0x18fc6e[_0x69f320(0x335)],'fields':{...j(this['env'],_0x3f16fe[_0x69f320(0x20c)]),'event':_0x1916ee,'session_id':_0x3f16fe['sessionId'],'timestamp':_0x3f16fe[_0x69f320(0x1f3)],'workbook_identity':_0x3f16fe[_0x69f320(0x359)]}}),await this['logger'][_0x69f320(0x389)]();}async[_0x598c2a(0x355)](_0x5427ab,_0x7f4026){const _0x1bd9c2=_0x598c2a;this['sessions'][_0x1bd9c2(0x350)](_0x5427ab['workbookIdentity'])===_0x5427ab&&(this[_0x1bd9c2(0x37b)]['delete'](_0x5427ab[_0x1bd9c2(0x359)]),_0x5427ab[_0x1bd9c2(0x2ad)][_0x1bd9c2(0x332)](),this['logger'][_0x1bd9c2(0x2c9)]({'event_name':_0x24ef7a[_0x1bd9c2(0x321)],'component':_0x57fd85[_0x1bd9c2(0x31c)],'process_role':_0x18fc6e[_0x1bd9c2(0x335)],'fields':{...j(this[_0x1bd9c2(0x241)],_0x5427ab[_0x1bd9c2(0x20c)]),'reason':_0x7f4026,'session_id':_0x5427ab[_0x1bd9c2(0x20c)],'timestamp':new Date()[_0x1bd9c2(0x216)](),'workbook_identity':_0x5427ab[_0x1bd9c2(0x359)]}}),await this['logger'][_0x1bd9c2(0x389)]());}[_0x598c2a(0x2a6)](_0x32a763,_0x356def){const _0x429ce8=_0x598c2a;return{'sessionId':_0x32a763['sessionId'],'packageIdentity':_0x356def,'createdAt':_0x32a763['createdAt'],'lastAccessedAt':_0x32a763[_0x429ce8(0x1f3)]};}};function _t(_0x35e05d,_0x1754c3){const _0x4de593=_0x598c2a;let _0x4189fb=_0x35e05d[_0x4de593(0x2be)]?.[_0x4de593(0x2f3)]();if(!_0x4189fb)return _0x1754c3;let _0x549a7c=Number(_0x4189fb);return!Number['isFinite'](_0x549a7c)||_0x549a7c<0x0?_0x1754c3:_0x549a7c;}function j(_0x395e64,_0x16ecb2){const _0x595f40=_0x598c2a;return{'deployment.environment.name':'local','distribution.channel':M(_0x395e64,_0x595f40(0x210))??'unknown','service.instance.id':_0x16ecb2,'service.name':_0x595f40(0x318),...M(_0x395e64,_0x595f40(0x260))===void 0x0?{}:{'build.id':M(_0x395e64,_0x595f40(0x260))},...M(_0x395e64,'UNIVER_CLI_VERSION')===void 0x0?{}:{'service.version':M(_0x395e64,_0x595f40(0x25d))}};}function M(_0x43d7d2,_0x1540de){const _0x1fed5f=_0x598c2a;let _0x4e4c22=_0x43d7d2[_0x1540de]?.['trim']();return _0x4e4c22===void 0x0||_0x4e4c22[_0x1fed5f(0x2fa)]===0x0?void 0x0:_0x4e4c22;}function N(_0x4c7828){const _0x51dbdd=_0x598c2a;return _0x4c7828+'-'+Date[_0x51dbdd(0x288)]()['toString'](0x24)+'-'+Math[_0x51dbdd(0x32f)]()[_0x51dbdd(0x299)](0x10)[_0x51dbdd(0x226)](0x2,0x8);}function vt(){const _0xc71b12=_0x598c2a;return _0xc71b12(0x352)+Date[_0xc71b12(0x288)]()[_0xc71b12(0x299)](0x24)+'-'+Math[_0xc71b12(0x32f)]()[_0xc71b12(0x299)](0x10)['slice'](0x2,0x8);}function yt(_0x2478ff){const _0x5ef8aa=_0x598c2a;return _0x453965(import.meta.url)[_0x5ef8aa(0x32d)](_0x5ef8aa(0x25b))?_0x5ef8aa(0x2b6):_0x5ef8aa(0x2f0);}function bt(_0x471a80){return _0x53ed98(_0x53ed98(_0x471a80));}var xt=class{[_0x598c2a(0x2a9)];[_0x598c2a(0x227)];constructor(_0x4c6a0b={}){const _0x253bc=_0x598c2a;this[_0x253bc(0x2a9)]=_0x4c6a0b[_0x253bc(0x2a9)]??{'sessionCreateWorkbook':qe,'sessionDisposeWorkbook':Ze,'sessionEvalJs':Je,'sessionExportWorkbookData':Ye,'sessionExportWorkbookFile':Xe,'sessionGetWorkbook':Ke,'sessionLoadWorkbookDataReplayPack':Ge,'sessionLoadWorkbook':We},this['options']=_0x4c6a0b[_0x253bc(0x295)]??{};}async[_0x598c2a(0x20a)](_0xd1cfa2){const _0x514149=_0x598c2a;let _0x3de355=await this[_0x514149(0x2a9)][_0x514149(0x236)](_0xd1cfa2[_0x514149(0x201)][_0x514149(0x2d8)],{...this[_0x514149(0x227)],..._0xd1cfa2['cwd']===void 0x0?{}:{'cwd':_0xd1cfa2['cwd']},..._0xd1cfa2['workbookId']===void 0x0?{}:{'id':_0xd1cfa2[_0x514149(0x272)]},..._0xd1cfa2[_0x514149(0x234)]===void 0x0?{}:{'name':_0xd1cfa2[_0x514149(0x234)]}});return{'session':P(_0x3de355[_0x514149(0x38d)],_0xd1cfa2['identity']),'workbookData':_0x3de355['workbookData']};}async[_0x598c2a(0x23c)](_0x3466b5){const _0x4498e7=_0x598c2a;let _0x1a4706=await this[_0x4498e7(0x2a9)][_0x4498e7(0x312)](_0x3466b5[_0x4498e7(0x201)][_0x4498e7(0x2d8)],{...this[_0x4498e7(0x227)],..._0x3466b5[_0x4498e7(0x344)]===void 0x0?{}:{'cwd':_0x3466b5[_0x4498e7(0x344)]}});return!_0x1a4706[_0x4498e7(0x380)]||_0x1a4706[_0x4498e7(0x38d)]===null?null:P(_0x1a4706[_0x4498e7(0x38d)],_0x3466b5[_0x4498e7(0x201)]);}async[_0x598c2a(0x24b)](_0x3bc502){const _0x1afdd5=_0x598c2a;let _0x4d0ae1=await this['client']['sessionLoadWorkbook'](_0x3bc502[_0x1afdd5(0x201)][_0x1afdd5(0x2d8)],_0x3bc502[_0x1afdd5(0x26f)],{...this[_0x1afdd5(0x227)],..._0x3bc502['cwd']===void 0x0?{}:{'cwd':_0x3bc502['cwd']}});return{'session':P(_0x4d0ae1[_0x1afdd5(0x38d)],_0x3bc502['identity']),'workbookData':_0x4d0ae1[_0x1afdd5(0x26f)]};}async['loadWorkbookDataReplayPack'](_0x58c0ca){const _0x294dd3=_0x598c2a;let _0x382e3b=await this[_0x294dd3(0x2a9)][_0x294dd3(0x302)](_0x58c0ca[_0x294dd3(0x201)][_0x294dd3(0x2d8)],{'baseWorkbookData':_0x58c0ca['replayPack'][_0x294dd3(0x27e)],'mutations':_0x58c0ca['replayPack']['mutations']},{...this[_0x294dd3(0x227)],..._0x58c0ca[_0x294dd3(0x344)]===void 0x0?{}:{'cwd':_0x58c0ca[_0x294dd3(0x344)]}});return{'session':P(_0x382e3b[_0x294dd3(0x38d)],_0x58c0ca[_0x294dd3(0x201)]),'workbookData':_0x382e3b[_0x294dd3(0x26f)]};}async[_0x598c2a(0x2fc)](_0x936562){const _0x4684c5=_0x598c2a;let _0x13c1dd=await this[_0x4684c5(0x23c)](_0x936562);if(_0x13c1dd!==null)return{'loaded':!0x1,'session':_0x13c1dd};let _0x9c87e1=await _0x936562['loadReplayPack']();return{'loaded':!0x0,'session':(await this['loadWorkbookDataReplayPack']({..._0x936562[_0x4684c5(0x344)]===void 0x0?{}:{'cwd':_0x936562['cwd']},'identity':_0x936562[_0x4684c5(0x201)],'replayPack':_0x9c87e1}))[_0x4684c5(0x38d)]};}async[_0x598c2a(0x206)](_0x17ec10){const _0x35291f=_0x598c2a;let _0x22f455=await this[_0x35291f(0x2a9)][_0x35291f(0x26b)](_0x17ec10['identity']['absolutePath'],_0x17ec10[_0x35291f(0x22c)],{...this[_0x35291f(0x227)],..._0x17ec10['cwd']===void 0x0?{}:{'cwd':_0x17ec10[_0x35291f(0x344)]},..._0x17ec10['mutates']===void 0x0?{}:{'mutates':_0x17ec10[_0x35291f(0x367)]}});return{..._0x22f455[_0x35291f(0x2b7)]===void 0x0?{}:{'mutations':_0x22f455['mutations']},'session':P(_0x22f455[_0x35291f(0x38d)],_0x17ec10[_0x35291f(0x201)]),'value':_0x22f455[_0x35291f(0x2de)]};}async[_0x598c2a(0x2ed)](_0x3b4648){const _0x1dcc36=_0x598c2a;let _0x57d962=await this[_0x1dcc36(0x2a9)][_0x1dcc36(0x2d4)](_0x3b4648[_0x1dcc36(0x201)][_0x1dcc36(0x2d8)],{...this['options'],..._0x3b4648[_0x1dcc36(0x344)]===void 0x0?{}:{'cwd':_0x3b4648[_0x1dcc36(0x344)]}});return{'session':P(_0x57d962['session'],_0x3b4648[_0x1dcc36(0x201)]),'workbookData':_0x57d962['workbookData']};}async[_0x598c2a(0x243)](_0x76d368){const _0x432359=_0x598c2a;let _0xd3560a=await this['client'][_0x432359(0x223)](_0x76d368[_0x432359(0x201)][_0x432359(0x2d8)],{'format':_0x76d368['format'],'outputPath':_0x76d368['outputPath']},{...this[_0x432359(0x227)],..._0x76d368[_0x432359(0x344)]===void 0x0?{}:{'cwd':_0x76d368[_0x432359(0x344)]}});return{'format':_0xd3560a[_0x432359(0x2cd)],'outputPath':_0xd3560a[_0x432359(0x1f4)],'session':P(_0xd3560a[_0x432359(0x38d)],_0x76d368['identity']),'sizeBytes':_0xd3560a[_0x432359(0x229)]};}async[_0x598c2a(0x38f)](_0x4ea285){const _0xea8b07=_0x598c2a;await this[_0xea8b07(0x2a9)]['sessionDisposeWorkbook'](_0x4ea285[_0xea8b07(0x201)][_0xea8b07(0x2d8)],{...this[_0xea8b07(0x227)],..._0x4ea285[_0xea8b07(0x344)]===void 0x0?{}:{'cwd':_0x4ea285[_0xea8b07(0x344)]}});}};function P(_0x5ca475,_0x3a542f){const _0x56a561=_0x598c2a;return{'createdAt':_0x5ca475['createdAt'],'lastAccessedAt':_0x5ca475[_0x56a561(0x1f3)],'packageIdentity':_0x3a542f,'sessionId':_0x5ca475['sessionId']};}var F=class extends Error{['code'];constructor(_0x92a1e7,_0x2aea57,_0x547be1){const _0x4c9e01=_0x598c2a;super(_0x2aea57,_0x547be1),this[_0x4c9e01(0x29d)]='WorkbookPackageError',this[_0x4c9e01(0x22c)]=_0x92a1e7;}},St=class extends F{constructor(_0x3bf967){const _0x42de1e=_0x598c2a;super('ERR_INVALID_WORKBOOK_PACKAGE_PATH',_0x42de1e(0x2a5)+_0x3bf967),this['name']=_0x42de1e(0x2e0);}},Ct=class extends F{constructor(_0x49c00d){const _0x2a05ad=_0x598c2a;super('ERR_WORKBOOK_PACKAGE_FILE_MISSING',_0x2a05ad(0x2ea)+_0x49c00d),this['name']='WorkbookPackageFileMissingError';}},I=class extends F{constructor(_0xa1e81f,_0x3a7e4d,_0x1bb512){const _0x45a6d8=_0x598c2a;super(_0x45a6d8(0x2c3),_0x45a6d8(0x28b)+_0xa1e81f+':\x20'+_0x3a7e4d,_0x1bb512),this[_0x45a6d8(0x29d)]='WorkbookPackageFileInvalidError';}},wt=class extends F{constructor(_0x17c55b,_0x2f7d72,_0x5783ce){super('ERR_WORKBOOK_PACKAGE_TRANSACTION_FAILED','Workbook\x20package\x20transaction\x20failed\x20for\x20'+_0x17c55b+':\x20'+_0x2f7d72,_0x5783ce),this['name']='WorkbookPackageTransactionError';}},Tt=class extends F{constructor(_0x19203d){const _0x4f519f=_0x598c2a;super(_0x4f519f(0x378),_0x4f519f(0x2c0)+_0x19203d),this['name']=_0x4f519f(0x239);}},Et=class extends F{constructor(_0xea7289,_0x1701bb){const _0x4fa3d6=_0x598c2a;super(_0x4fa3d6(0x1ff),_0x1701bb===null?_0x4fa3d6(0x2a4)+_0xea7289:_0x4fa3d6(0x2a4)+_0xea7289+'\x20is\x20being\x20modified\x20by\x20operation\x20'+_0x1701bb[_0x4fa3d6(0x2bd)]+'\x20(pid\x20'+_0x1701bb[_0x4fa3d6(0x24f)]+_0x4fa3d6(0x34c)+_0x1701bb[_0x4fa3d6(0x268)]+')'),this[_0x4fa3d6(0x342)]=_0x1701bb,this[_0x4fa3d6(0x29d)]='WorkbookPackageLockTimeoutError';}};function Dt(_0x52b5f0={}){const _0xda516a=_0x598c2a;return{'unitID':_0x52b5f0['unitID']??null,'initRev':_0x52b5f0[_0xda516a(0x35d)]??null,'syncedRev':_0x52b5f0['syncedRev']??null};}function Ot(_0x221c09,_0x13f3d3){const _0x10d4c0=_0x598c2a;if(!kt(_0x221c09))throw new I(_0x13f3d3,_0x10d4c0(0x388));let _0x3b6cd2=_0x221c09[_0x10d4c0(0x2d9)],_0x1e706b=_0x221c09[_0x10d4c0(0x35d)],_0x505e05=_0x221c09[_0x10d4c0(0x33f)];if(_0x3b6cd2!==null&&typeof _0x3b6cd2!=_0x10d4c0(0x351))throw new I(_0x13f3d3,'unitID\x20must\x20be\x20a\x20string\x20or\x20null');if(_0x1e706b!==null&&!At(_0x1e706b))throw new I(_0x13f3d3,_0x10d4c0(0x37c));if(_0x505e05!==null&&!At(_0x505e05))throw new I(_0x13f3d3,'syncedRev\x20must\x20be\x20a\x20non-negative\x20integer\x20or\x20null');return{'unitID':_0x3b6cd2,'initRev':_0x1e706b,'syncedRev':_0x505e05};}function kt(_0x50ea0f){const _0x1aacda=_0x598c2a;return typeof _0x50ea0f==_0x1aacda(0x371)&&!!_0x50ea0f&&!Array[_0x1aacda(0x247)](_0x50ea0f);}function At(_0x4f16bf){const _0x531c9a=_0x598c2a;return typeof _0x4f16bf==_0x531c9a(0x2e8)&&Number[_0x531c9a(0x2ee)](_0x4f16bf)&&_0x4f16bf>=0x0;}function L(_0x4b74d5,_0x431d7c){const _0x34f4ea=_0x598c2a;if(!jt(_0x4b74d5))throw new I(_0x431d7c,'mutation\x20must\x20be\x20an\x20object');if(typeof _0x4b74d5['id']!=_0x34f4ea(0x351)||_0x4b74d5['id'][_0x34f4ea(0x2fa)]===0x0)throw new I(_0x431d7c,_0x34f4ea(0x340));if(!jt(_0x4b74d5[_0x34f4ea(0x214)]))throw new I(_0x431d7c,'mutation.params\x20must\x20be\x20an\x20object');return _0x4b74d5;}function jt(_0x57a79b){const _0x281d45=_0x598c2a;return typeof _0x57a79b==_0x281d45(0x371)&&!!_0x57a79b&&!Array['isArray'](_0x57a79b);}function _0x5353(){const _0x55d8c0=['Invalid\x20workbook\x20package\x20path:\x20','toRuntimeSessionInfo','NODE_OPTIONS','USERPROFILE','client','fromAbsolutePath','view','filter','runner','local-mutations.jsonl','CreateWorkbook','daemon.sock','clear','package.json','Daemon\x20RPC\x20timeout\x20for\x20','replayPack','ExportWorkbookFile','dist','mutations','lockPath','unloadIdleSessions','entry:\x20','33955ZYdNtS','start\x20a\x20fresh\x20daemon','operation','UNIVER_DAEMON_SESSION_IDLE_TTL_MS','extension','Workbook\x20package\x20already\x20exists:\x20','.sid\x20must\x20be\x20a\x20non-empty\x20string',',\x20signal=','ERR_WORKBOOK_PACKAGE_FILE_INVALID','serve','logPath','533124PnLFMY','exited','socketPath','info','packaged','add','initialize','format','daemonDir','workbook\x20data\x20must\x20be\x20an\x20object','closed','SessionLoadWorkbookDataReplayPack','stderrPath','buildId','sessionExportWorkbookData','nextRotationCheckAt','localChangesets','.lock','absolutePath','unitID','runtime.jsonl','appendLocalChangeset','catch','univer-runner.js','value','rpcTimeoutMs','InvalidWorkbookPackagePathError','meta','Health','run-help','daemon','replace-synced-changesets','UNIVER_HOME','includes','number','finally','Missing\x20workbook\x20package\x20file:\x20','write','Missing\x20transaction\x20value\x20for\x20','exportWorkbookData','isInteger','internal','source','event','browser','trim','timeout','default','logsDir','synced\x20changeset.mutations\x20must\x20be\x20an\x20array','debug','2.0','length','reject','ensureWorkbookDataReplayPackLoaded','from','min','startsWith','created','revision','sessionLoadWorkbookDataReplayPack','sessionRoot','onStderrChunk','src','univer','sessionDir','traceFlags','basePackage','initWorkbookData','split','resolveExecutionPlaneOptions','homeDir','9760brwnjV','set-init-workbook-data','last\x20health\x20error:\x20','setInitWorkbookData','sessionGetWorkbook','load-workbook','daemon.lock','getLocalMutations','scheduleRotationIfNeeded','touchedFiles','univer-runtime','level','tsx','local\x20changeset','RuntimeSession','sort',';\x20rollback\x20failed:\x20','open','lockRetryIntervalMs','RuntimeSessionDisposed','session.getWorkbook','/tmp','runtimeLogPath','logFields','apps','viewHostLogPath','resolveIdentity','ipc','withSpan','join','removed','endsWith','maxBytes','random','daemon.health','metaPath','destroy','Runner\x20not\x20ready','digest','Runtime','ignore','kill','daemon.pid','destroyAll','loadWorkbookDataReplayPack','session.exportWorkbookFile','topics','command','error','syncedRev','mutation.id\x20must\x20be\x20a\x20non-empty\x20string','relativePath','holder','SIGTERM','cwd','232930zuOSmF','export-workbook','RuntimeSessionCreated','RPC\x20timeout','once','session.dispose','local-changesets.jsonl','\x20on\x20','daemon.js','stderr','univer-daemon-','get','string','session-','synced\x20changeset.message\x20must\x20be\x20a\x20string\x20when\x20present','stack','destroySession','sendRpc','Runner\x20startup\x20error:\x20','ready','workbookIdentity','manifest','shutdown','LoadWorkbook','initRev','spanId','200SgWFzN','waitForReady','.mutations[','Timed\x20out\x20waiting\x20for\x20daemon\x20startup\x20after\x20','Runner\x20startup\x20timeout','max','ensureSession','append-local-changeset','mutates','prefix','getLocalChangesets','Cannot\x20resolve\x20home\x20directory\x20for\x20UNIVER_HOME\x20fallback','formatStderr','values','daemonEntry','update','lockWrites','autoStart','object','indexOf','logger','loadReplayPackIntoSession','getSyncedChangesets','injectMeta','56HThEPw','ERR_WORKBOOK_PACKAGE_ALREADY_EXISTS','destroying','syncedChangesets','sessions','initRev\x20must\x20be\x20a\x20non-negative\x20integer\x20or\x20null','warn','set','rpc-request','exists','.unv','SessionExportWorkbookData','pidPath','.univer','null','size','execPath','manifest\x20must\x20be\x20an\x20object','flush','.tx-','reqId','closeAfterFlush','session','replace','dispose','reopen','12750903oAbtpw','result','message','loadWorkbook','171askOeU','beforeCommitFile','lastAccessedAt','outputPath','bin','child','daemon-','off','ExportWorkbookData','synced\x20changeset.baseRev\x20must\x20be\x20a\x20non-negative\x20integer','execution-plane','utf8','signalCode','explicit-dispose','ERR_WORKBOOK_PACKAGE_LOCK_TIMEOUT','takeWrites','identity','type','--import','isDirectory','loadReplayPack','evalJs','logs','rotateIfNeeded','synced\x20changeset','createWorkbook','replaceLocalChangesets','sessionId','resolve','1068mTKMkA','createConnection','UNIVER_DISTRIBUTION_CHANNEL','replace-local-mutations','exitCode','unreachable','params','appendSyncedChangesets','toISOString','Shutdown','cliLogPath','rotationInFlight','exit','runtimeRoot','sid','.reqId\x20must\x20be\x20a\x20positive\x20integer','rejectPendingRequests','1183YLloxZ','workspace-dist','getSessionCount','export-workbook-file','sessionExportWorkbookFile','SIGKILL','init-workbook-data.json','slice','options','rotationCheckIntervalMs','sizeBytes','executionPlanePath','parentSpanId','code','data','appendLocalMutations','traceId','DaemonRpcClient','load-workbook-replay-pack','replaceSyncedChangesets','timeoutMs','workbookName','480152bULnKg','sessionCreateWorkbook','univer\x20daemon\x20start','cli.jsonl','WorkbookPackageAlreadyExistsError','startedAt','session.evalJs','getSession','cli.js','ENOENT','Runner\x20exited\x20before\x20ready','SessionDispose','env','parse','exportWorkbookFile','map','startTimeoutMs','resolveWorkbookIdentity','isArray','.\x20Run\x20`univer\x20daemon\x20stop`\x20and\x20retry.','unref','univer\x20daemon\x20stop','loadWorkbookData','replace-local-changesets','originalContent','trimEnd','pid','touchSession','pipe','EvalJs','runtime','isFile','destination','daemon\x20is\x20running','execArgv','hex','session.loadWorkbookDataReplayPack','writeOptions','.js','event_name','UNIVER_CLI_VERSION','destroyGraceMs','main.ts','UNIVER_CLI_BUILD_ID','Unable\x20to\x20resolve\x20univer-cli\x20package\x20root\x20from\x20','pendingRequests','modulePath','setManifest','\x20must\x20be\x20an\x20object','clear\x20stale\x20daemon\x20runtime\x20files','.ts','hostname','cli','component','sessionEvalJs','all','emit','archiveDir','workbookData','LoadWorkbookDataReplayPack','committing','workbookId','serializeTouchedFile','stringify','idle-unload','daemonLogPath','Daemon\x20build\x20mismatch.\x20Expected\x20','3tSRMoT','runner-exit','sessionIdleTtlMs','ensureSessionState','maxArchiveFiles','view-host','baseWorkbookData','transaction','committed','ensure-workbook-replay-pack-loaded','getSessionIdleTtlMs','baseRev','replaceLocalMutations','args','create-workbook','.tmp-','now','saturated','localMutations','Invalid\x20workbook\x20package\x20file\x20','local\x20changeset.message\x20must\x20be\x20a\x20string','delete','Runner\x20process\x20exited\x20(code=','469928VNikaM','status','HOME','UNIVER_CLI_RUNTIME_MODE','univer-','packages','daemonOptions','SessionGetWorkbook','platform','process_role','toString','workbookPath','getManifest','keys','name','createdAt','rolled_back','VITEST_WORKER_ID','RuntimeRunner','SessionExportWorkbookFile','getInitWorkbookData','Workbook\x20package\x20is\x20busy:\x20'];_0x5353=function(){return _0x55d8c0;};return _0x5353();}function Mt(_0xe5db23,_0x5da7d2){const _0x37472e=_0x598c2a;let _0x1bab31=Pt(_0xe5db23,_0x5da7d2,_0x37472e(0x31b)),_0x31ba6b=It(_0x1bab31[_0x37472e(0x21c)],_0x5da7d2,'local\x20changeset'),_0x507a8b=Lt(_0x1bab31[_0x37472e(0x38b)],_0x5da7d2,_0x37472e(0x31b)),_0x4a7f26=_0x1bab31['message'],_0x22b362=_0x1bab31[_0x37472e(0x2b7)];if(typeof _0x4a7f26!=_0x37472e(0x351))throw new I(_0x5da7d2,_0x37472e(0x28c));if(!Array['isArray'](_0x22b362))throw new I(_0x5da7d2,'local\x20changeset.mutations\x20must\x20be\x20an\x20array');return{'sid':_0x31ba6b,'reqId':_0x507a8b,'message':_0x4a7f26,'mutations':_0x22b362[_0x37472e(0x244)]((_0x555d9c,_0x7e3a01)=>L(_0x555d9c,_0x5da7d2+_0x37472e(0x361)+_0x7e3a01+']'))};}function Nt(_0x2717fe,_0xe9bb33){const _0x405f2f=_0x598c2a;let _0xdb1627=Pt(_0x2717fe,_0xe9bb33,'synced\x20changeset'),_0xced401=It(_0xdb1627['sid'],_0xe9bb33,_0x405f2f(0x209)),_0x341d11=Lt(_0xdb1627['reqId'],_0xe9bb33,_0x405f2f(0x209)),_0x2f5c2c=_0xdb1627[_0x405f2f(0x283)],_0x402add=_0xdb1627[_0x405f2f(0x301)],_0x2275bc=_0xdb1627[_0x405f2f(0x2b7)],_0x71de93=_0xdb1627[_0x405f2f(0x1ef)];if(!Ft(_0x2f5c2c))throw new I(_0xe9bb33,_0x405f2f(0x1fa));if(!Ft(_0x402add))throw new I(_0xe9bb33,'synced\x20changeset.revision\x20must\x20be\x20a\x20non-negative\x20integer');if(!Array[_0x405f2f(0x247)](_0x2275bc))throw new I(_0xe9bb33,_0x405f2f(0x2f7));if(_0x71de93!==void 0x0&&typeof _0x71de93!='string')throw new I(_0xe9bb33,_0x405f2f(0x353));return{'sid':_0xced401,'reqId':_0x341d11,'baseRev':_0x2f5c2c,'revision':_0x402add,'mutations':_0x2275bc[_0x405f2f(0x244)]((_0x22cd57,_0x1fa164)=>L(_0x22cd57,_0xe9bb33+_0x405f2f(0x361)+_0x1fa164+']')),..._0x71de93===void 0x0?{}:{'message':_0x71de93}};}function Pt(_0x42a6fb,_0x4be340,_0x36d672){const _0x47dac4=_0x598c2a;if(typeof _0x42a6fb!=_0x47dac4(0x371)||!_0x42a6fb||Array[_0x47dac4(0x247)](_0x42a6fb))throw new I(_0x4be340,_0x36d672+_0x47dac4(0x265));return _0x42a6fb;}function Ft(_0x6683e8){const _0x320399=_0x598c2a;return typeof _0x6683e8==_0x320399(0x2e8)&&Number[_0x320399(0x2ee)](_0x6683e8)&&_0x6683e8>=0x0;}function It(_0x2db4cd,_0xe8408f,_0x27f0c4){const _0x107cec=_0x598c2a;if(typeof _0x2db4cd!=_0x107cec(0x351)||_0x2db4cd[_0x107cec(0x2fa)]===0x0)throw new I(_0xe8408f,_0x27f0c4+_0x107cec(0x2c1));return _0x2db4cd;}function Lt(_0x4b70c7,_0x5174ff,_0x37b7ca){const _0x3c364f=_0x598c2a;if(typeof _0x4b70c7!=_0x3c364f(0x2e8)||!Number[_0x3c364f(0x2ee)](_0x4b70c7)||_0x4b70c7<0x1)throw new I(_0x5174ff,_0x37b7ca+_0x3c364f(0x21d));return _0x4b70c7;}const Rt=['.univer',_0x598c2a(0x381)];var zt=class e{constructor(_0x59afc1){const _0x3ec120=_0x598c2a;this[_0x3ec120(0x2de)]=_0x59afc1;}static[_0x598c2a(0x242)](_0xa21360){const _0x51c1d6=_0x598c2a;let _0x3c5a69=_0xa21360[_0x51c1d6(0x2f3)]();if(_0x3c5a69['length']===0x0||!Bt(_0x2a6466(_0x3c5a69)))throw new St(_0xa21360);return new e(_0x3c5a69);}get[_0x598c2a(0x2bf)](){const _0x23ac22=_0x598c2a;return _0x2a6466(this[_0x23ac22(0x2de)]);}};function Bt(_0x268d9a){const _0x4890e4=_0x598c2a;return Rt[_0x4890e4(0x2e7)](_0x268d9a);}var Vt=class e{[_0x598c2a(0x2d8)];constructor(_0x3f0364){const _0x1333bd=_0x598c2a;this['absolutePath']=_0x3f0364[_0x1333bd(0x2d8)];}static[_0x598c2a(0x2aa)](_0x2a8bc2){const _0x575a41=_0x598c2a;let _0x3d6691=_0x103e00(_0x2a8bc2),_0x35050d=zt[_0x575a41(0x242)](_0x3d6691);if(_0x3d6691!==_0x2a8bc2||!Bt(_0x35050d[_0x575a41(0x2bf)]))throw new St(_0x2a8bc2);return new e({'absolutePath':_0x3d6691});}},R='manifest.json',z=_0x598c2a(0x225),B=_0x598c2a(0x2ae),V=_0x598c2a(0x34b),H='synced-changesets.jsonl',Ht=class{constructor(_0x12ea75={}){const _0x551d61=_0x598c2a;this[_0x551d61(0x227)]=_0x12ea75;}async[_0x598c2a(0x328)](_0xb8c443){const _0x2a0d81=_0x598c2a;let _0x164149=zt[_0x2a0d81(0x242)](_0xb8c443[_0x2a0d81(0x29a)]);return Vt['fromAbsolutePath'](_0x103e00(_0xb8c443['cwd']??process[_0x2a0d81(0x344)](),_0x164149[_0x2a0d81(0x2de)]));}async[_0x598c2a(0x2cc)](_0x16202d){const _0x52ea54=_0x598c2a;return await U(_0x16202d[_0x52ea54(0x201)],'initialize',this['options'],async()=>{const _0x4e89ac=_0x52ea54;let _0x3b9c03=Dt(_0x16202d[_0x4e89ac(0x35a)]),_0x42441d=new G(_0x16202d[_0x4e89ac(0x201)],this[_0x4e89ac(0x227)],{'lockWrites':!0x1});return await Ut(_0x16202d[_0x4e89ac(0x201)]),await _0x6ec886(_0x16202d[_0x4e89ac(0x201)][_0x4e89ac(0x2d8)],{'recursive':!0x0}),await Promise[_0x4e89ac(0x26c)]([_0x42441d[_0x4e89ac(0x264)](_0x3b9c03),_0x42441d[_0x4e89ac(0x311)](_0x16202d[_0x4e89ac(0x30a)]),_0x42441d[_0x4e89ac(0x284)]([]),_0x42441d[_0x4e89ac(0x20b)]([]),_0x42441d['replaceSyncedChangesets'](_0x16202d[_0x4e89ac(0x37a)]??[])]),new G(_0x16202d[_0x4e89ac(0x201)],this[_0x4e89ac(0x227)]);});}async[_0x598c2a(0x31f)](_0x1f9f5f){const _0x5061ed=_0x598c2a;return new G(_0x1f9f5f,this[_0x5061ed(0x227)]);}async[_0x598c2a(0x27f)](_0xa2395f,_0x48b558){const _0x5de4e4=_0x598c2a;return await U(_0xa2395f,_0x5de4e4(0x27f),this[_0x5de4e4(0x227)],async()=>{const _0x4007f8=_0x5de4e4;let _0x160cb0=new Xt(new G(_0xa2395f,this[_0x4007f8(0x227)],{'lockWrites':!0x1}));try{let _0x352000=await _0x48b558(_0x160cb0);return await en(_0xa2395f,_0x160cb0[_0x4007f8(0x200)](),this[_0x4007f8(0x227)]),_0x352000;}catch(_0x3d4de9){throw new wt(_0xa2395f[_0x4007f8(0x2d8)],_0x3d4de9 instanceof Error?_0x3d4de9[_0x4007f8(0x1ef)]:String(_0x3d4de9),_0x3d4de9 instanceof Error?{'cause':_0x3d4de9}:void 0x0);}});}};async function Ut(_0x1e5eec){const _0x5421a8=_0x598c2a;try{if(!(await _0x336be6(_0x1e5eec[_0x5421a8(0x2d8)]))[_0x5421a8(0x204)]()||(await _0x47315f(_0x1e5eec[_0x5421a8(0x2d8)]))['length']>0x0)throw new Tt(_0x1e5eec[_0x5421a8(0x2d8)]);}catch(_0x35792a){if(Q(_0x35792a)&&_0x35792a['code']===_0x5421a8(0x23e))return;throw _0x35792a;}}async function U(_0x260e94,_0x436ba9,_0x5ab961,_0x33debf){await Wt(_0x260e94,_0x436ba9,_0x5ab961);try{return await _0x33debf();}finally{await Jt(_0x260e94);}}async function Wt(_0x1ebbfd,_0x3ee2d0,_0xebe530){const _0x1a8ac0=_0x598c2a;let _0x13fdec=_0xebe530['lockTimeoutMs']??0x1388,_0x2370cd=_0xebe530[_0x1a8ac0(0x320)]??0x32,_0x45469f=Date['now'](),_0x5620e6=null;for(await _0x6ec886(_0x53ed98(W(_0x1ebbfd)),{'recursive':!0x0});;){try{await _0x32432d(W(_0x1ebbfd),Y({'pid':process[_0x1a8ac0(0x24f)],'hostname':_0x3fe84d(),'createdAt':new Date()['toISOString'](),'operation':_0x3ee2d0}),{'encoding':'utf8','flag':'wx'});return;}catch(_0x59bb6e){if(!Q(_0x59bb6e)||_0x59bb6e[_0x1a8ac0(0x22c)]!=='EEXIST')throw _0x59bb6e;}let _0x285c51=await Gt(_0x1ebbfd,_0xebe530);if(_0x5620e6=_0x285c51[_0x1a8ac0(0x342)],!_0x285c51[_0x1a8ac0(0x32c)]){if(Date[_0x1a8ac0(0x288)]()-_0x45469f>=_0x13fdec)throw new Et(_0x1ebbfd[_0x1a8ac0(0x2d8)],_0x5620e6);await Yt(Math[_0x1a8ac0(0x2fe)](_0x2370cd,Math[_0x1a8ac0(0x364)](_0x13fdec-(Date['now']()-_0x45469f),0x0)));}}}async function Gt(_0xfead4c,_0x5a523d){const _0x199c73=_0x598c2a;let _0x453082=await Kt(_0xfead4c);return _0x453082===null||_0x453082[_0x199c73(0x268)]!==_0x3fe84d()||qt(_0x453082[_0x199c73(0x24f)],_0x5a523d)?{'holder':_0x453082,'removed':!0x1}:(await Jt(_0xfead4c),{'holder':_0x453082,'removed':!0x0});}async function Kt(_0x1d19ae){const _0x3fd367=_0x598c2a;try{let _0x146623=JSON[_0x3fd367(0x242)](await _0x39e465(W(_0x1d19ae),_0x3fd367(0x1fc)));if(!an(_0x146623))return null;let _0x5b8fa0=_0x146623[_0x3fd367(0x24f)],_0x4843cf=_0x146623[_0x3fd367(0x268)],_0x2505e5=_0x146623[_0x3fd367(0x29e)],_0x1db02d=_0x146623['operation'];return typeof _0x5b8fa0!=_0x3fd367(0x2e8)||!Number[_0x3fd367(0x2ee)](_0x5b8fa0)||typeof _0x4843cf!=_0x3fd367(0x351)||typeof _0x2505e5!=_0x3fd367(0x351)||typeof _0x1db02d!=_0x3fd367(0x351)?null:{'pid':_0x5b8fa0,'hostname':_0x4843cf,'createdAt':_0x2505e5,'operation':_0x1db02d};}catch{return null;}}function qt(_0x3c7e04,_0x1e5f11){const _0x50759b=_0x598c2a;if(_0x1e5f11['isProcessAlive']!==void 0x0)return _0x1e5f11['isProcessAlive'](_0x3c7e04);try{return process[_0x50759b(0x337)](_0x3c7e04,0x0),!0x0;}catch{return!0x1;}}async function Jt(_0x978ff1){const _0x2d8a77=_0x598c2a;await _0x46aa09(W(_0x978ff1),{'force':!0x0})[_0x2d8a77(0x2dc)](()=>void 0x0);}function W(_0x4f466e){const _0xaeefb8=_0x598c2a;return _0x4f466e[_0xaeefb8(0x2d8)]+_0xaeefb8(0x2d7);}async function Yt(_0x2bc198){_0x2bc198<=0x0||await new Promise(_0xc38bf1=>{setTimeout(_0xc38bf1,_0x2bc198);});}var G=class{constructor(_0x27fb1d,_0x57fc8e,_0x5785de={'lockWrites':!0x0}){const _0x355a9a=_0x598c2a;this['identity']=_0x27fb1d,this['options']=_0x57fc8e,this[_0x355a9a(0x25a)]=_0x5785de;}async[_0x598c2a(0x29b)](){const _0x3bef0d=_0x598c2a;return await Zt(this[_0x3bef0d(0x201)],R,(_0x274f93,_0x1861a0)=>Ot(_0x274f93,_0x1861a0));}async['setManifest'](_0x4f9f70){const _0x32bd4d=_0x598c2a;await this['write']('set-manifest',()=>J(this[_0x32bd4d(0x201)],R,Y(_0x4f9f70)));}async['getInitWorkbookData'](){const _0x89efda=_0x598c2a;return await Zt(this[_0x89efda(0x201)],z,$t);}async[_0x598c2a(0x311)](_0x3ec9f0){const _0x565aa2=_0x598c2a;await this[_0x565aa2(0x2eb)](_0x565aa2(0x30f),()=>J(this[_0x565aa2(0x201)],z,Y(_0x3ec9f0)));}async[_0x598c2a(0x315)](){return await K(this['identity'],B,L);}async[_0x598c2a(0x22e)](_0x2d92a3){const _0x5f5dbe=_0x598c2a;_0x2d92a3[_0x5f5dbe(0x2fa)]!==0x0&&await this[_0x5f5dbe(0x2eb)]('append-local-mutations',()=>nn(this[_0x5f5dbe(0x201)],B,X(_0x2d92a3)));}async[_0x598c2a(0x284)](_0x22729f){const _0xd095a7=_0x598c2a;await this[_0xd095a7(0x2eb)](_0xd095a7(0x211),()=>J(this[_0xd095a7(0x201)],B,X(_0x22729f)));}async[_0x598c2a(0x369)](){const _0x54adcb=_0x598c2a;return await K(this[_0x54adcb(0x201)],V,Mt);}async[_0x598c2a(0x2db)](_0x4fc3ca){const _0x56e4b7=_0x598c2a;await this[_0x56e4b7(0x2eb)](_0x56e4b7(0x366),()=>nn(this[_0x56e4b7(0x201)],V,X([_0x4fc3ca])));}async[_0x598c2a(0x20b)](_0x4125b5){const _0x3ef6df=_0x598c2a;await this[_0x3ef6df(0x2eb)](_0x3ef6df(0x24c),()=>J(this[_0x3ef6df(0x201)],V,X(_0x4125b5)));}async['getSyncedChangesets'](){const _0x4ac402=_0x598c2a;return await K(this[_0x4ac402(0x201)],H,Nt);}async[_0x598c2a(0x215)](_0x379d3f){const _0x304fac=_0x598c2a;_0x379d3f['length']!==0x0&&await this[_0x304fac(0x2eb)]('append-synced-changesets',()=>nn(this['identity'],H,X(_0x379d3f)));}async[_0x598c2a(0x232)](_0x2b96bf){const _0x51081f=_0x598c2a;await this['write'](_0x51081f(0x2e5),()=>J(this[_0x51081f(0x201)],H,X(_0x2b96bf)));}async[_0x598c2a(0x2eb)](_0x39c8e3,_0xfd547e){const _0x2c63ce=_0x598c2a;if(!this[_0x2c63ce(0x25a)][_0x2c63ce(0x36f)]){await _0xfd547e();return;}await U(this[_0x2c63ce(0x201)],_0x39c8e3,this[_0x2c63ce(0x227)],_0xfd547e);}},Xt=class{[_0x598c2a(0x201)];[_0x598c2a(0x317)]=new Set();['initWorkbookData'];[_0x598c2a(0x2d6)];[_0x598c2a(0x28a)];[_0x598c2a(0x35a)];[_0x598c2a(0x37a)];constructor(_0x51c697){const _0x2f7fde=_0x598c2a;this[_0x2f7fde(0x309)]=_0x51c697,this[_0x2f7fde(0x201)]=_0x51c697[_0x2f7fde(0x201)];}async[_0x598c2a(0x29b)](){const _0x34d67d=_0x598c2a;return this['manifest']??=await this['basePackage'][_0x34d67d(0x29b)](),this[_0x34d67d(0x35a)];}async[_0x598c2a(0x264)](_0x2bcf16){const _0x24a31b=_0x598c2a;this[_0x24a31b(0x35a)]=_0x2bcf16,this[_0x24a31b(0x317)][_0x24a31b(0x2cb)](_0x24a31b(0x35a));}async[_0x598c2a(0x2a3)](){const _0x4123f1=_0x598c2a;return this[_0x4123f1(0x30a)]??=await this[_0x4123f1(0x309)]['getInitWorkbookData'](),this['initWorkbookData'];}async['setInitWorkbookData'](_0x25c843){const _0x11dc00=_0x598c2a;this[_0x11dc00(0x30a)]=_0x25c843,this[_0x11dc00(0x317)]['add'](_0x11dc00(0x30a));}async[_0x598c2a(0x315)](){const _0x893a98=_0x598c2a;return this[_0x893a98(0x28a)]??=await this['basePackage'][_0x893a98(0x315)](),this[_0x893a98(0x28a)];}async[_0x598c2a(0x22e)](_0x355eaf){const _0x2e9d5d=_0x598c2a;_0x355eaf[_0x2e9d5d(0x2fa)]!==0x0&&(this[_0x2e9d5d(0x28a)]=[...await this[_0x2e9d5d(0x315)](),..._0x355eaf],this['touchedFiles'][_0x2e9d5d(0x2cb)](_0x2e9d5d(0x28a)));}async[_0x598c2a(0x284)](_0x27afde){const _0x3bd9e1=_0x598c2a;this[_0x3bd9e1(0x28a)]=[..._0x27afde],this[_0x3bd9e1(0x317)]['add'](_0x3bd9e1(0x28a));}async['getLocalChangesets'](){const _0x3c93d2=_0x598c2a;return this[_0x3c93d2(0x2d6)]??=await this[_0x3c93d2(0x309)]['getLocalChangesets'](),this[_0x3c93d2(0x2d6)];}async[_0x598c2a(0x2db)](_0x308496){const _0x554385=_0x598c2a;this[_0x554385(0x2d6)]=[...await this[_0x554385(0x369)](),_0x308496],this[_0x554385(0x317)][_0x554385(0x2cb)](_0x554385(0x2d6));}async[_0x598c2a(0x20b)](_0x59282e){const _0x44fd0b=_0x598c2a;this[_0x44fd0b(0x2d6)]=[..._0x59282e],this[_0x44fd0b(0x317)][_0x44fd0b(0x2cb)](_0x44fd0b(0x2d6));}async['getSyncedChangesets'](){const _0x52848e=_0x598c2a;return this[_0x52848e(0x37a)]??=await this['basePackage']['getSyncedChangesets'](),this[_0x52848e(0x37a)];}async[_0x598c2a(0x215)](_0x139133){const _0x2d799e=_0x598c2a;_0x139133['length']!==0x0&&(this[_0x2d799e(0x37a)]=[...await this[_0x2d799e(0x375)](),..._0x139133],this['touchedFiles'][_0x2d799e(0x2cb)](_0x2d799e(0x37a)));}async['replaceSyncedChangesets'](_0x2625e1){const _0x464706=_0x598c2a;this[_0x464706(0x37a)]=[..._0x2625e1],this[_0x464706(0x317)][_0x464706(0x2cb)](_0x464706(0x37a));}[_0x598c2a(0x200)](){const _0x54b28c=_0x598c2a;let _0xdbcf80=new Map();for(let _0x1a387f of this[_0x54b28c(0x317)])_0xdbcf80[_0x54b28c(0x37e)](rn(_0x1a387f),this[_0x54b28c(0x273)](_0x1a387f));return _0xdbcf80;}['serializeTouchedFile'](_0xea73a9){const _0x6fc4ae=_0x598c2a;switch(_0xea73a9){case _0x6fc4ae(0x35a):return Y(Z(this['manifest'],_0xea73a9));case'initWorkbookData':return Y(Z(this['initWorkbookData'],_0xea73a9));case _0x6fc4ae(0x28a):return X(Z(this[_0x6fc4ae(0x28a)],_0xea73a9));case _0x6fc4ae(0x2d6):return X(Z(this[_0x6fc4ae(0x2d6)],_0xea73a9));case _0x6fc4ae(0x37a):return X(Z(this[_0x6fc4ae(0x37a)],_0xea73a9));}}};async function Zt(_0x9ada99,_0x87ad07,_0x342a41){const _0x3a5c28=_0x598c2a;let _0x58d312=_0x52e42b(_0x9ada99[_0x3a5c28(0x2d8)],_0x87ad07),_0x29a547=await q(_0x58d312),_0x129deb;try{_0x129deb=JSON[_0x3a5c28(0x242)](_0x29a547);}catch(_0x4302c2){throw new I(_0x58d312,_0x4302c2 instanceof Error?_0x4302c2[_0x3a5c28(0x1ef)]:String(_0x4302c2),_0x4302c2 instanceof Error?{'cause':_0x4302c2}:void 0x0);}return _0x342a41(_0x129deb,_0x58d312);}async function K(_0x2b8f23,_0xa7ee63,_0x39b16c){const _0x5ad452=_0x598c2a;return(await Qt(_0x2b8f23,_0xa7ee63))[_0x5ad452(0x244)](({value:_0x38f228,label:_0xab16ea})=>_0x39b16c(_0x38f228,_0xab16ea));}async function Qt(_0x1f261a,_0x4c0752){const _0x57f58c=_0x598c2a;let _0x244a2e=_0x52e42b(_0x1f261a[_0x57f58c(0x2d8)],_0x4c0752),_0x17de5b=(await q(_0x244a2e))[_0x57f58c(0x2f3)]();return _0x17de5b[_0x57f58c(0x2fa)]===0x0?[]:_0x17de5b[_0x57f58c(0x30b)](/\r?\n/u)[_0x57f58c(0x244)]((_0x5dac4d,_0x1ca228)=>{const _0x222f98=_0x57f58c;let _0x26680a;try{_0x26680a=JSON[_0x222f98(0x242)](_0x5dac4d);}catch(_0x51f49c){throw new I(_0x244a2e,'invalid\x20JSONL\x20at\x20line\x20'+(_0x1ca228+0x1)+':\x20'+(_0x51f49c instanceof Error?_0x51f49c['message']:String(_0x51f49c)),_0x51f49c instanceof Error?{'cause':_0x51f49c}:void 0x0);}return{'value':_0x26680a,'label':_0x244a2e+':'+(_0x1ca228+0x1)};});}async function q(_0xe7a7ef){const _0x1ec836=_0x598c2a;try{if(!(await _0x336be6(_0xe7a7ef))['isFile']())throw new Ct(_0xe7a7ef);return await _0x39e465(_0xe7a7ef,'utf8');}catch(_0xd48140){throw Q(_0xd48140)&&_0xd48140[_0x1ec836(0x22c)]==='ENOENT'?new Ct(_0xe7a7ef):_0xd48140;}}function $t(_0x22bd2a,_0x274700){const _0x5ec644=_0x598c2a;if(typeof _0x22bd2a!=_0x5ec644(0x371)||!_0x22bd2a||Array['isArray'](_0x22bd2a))throw new I(_0x274700,_0x5ec644(0x2cf));return _0x22bd2a;}async function en(_0x49e962,_0x2586d1,_0xb2fc0){const _0x315a73=_0x598c2a;if(_0x2586d1['size']===0x0)return;let _0x21b25e=_0x49e962[_0x315a73(0x2d8)]+_0x315a73(0x38a)+process[_0x315a73(0x24f)]+'-'+_0x440fb7(),_0x4e84e8=await Promise['all']([..._0x2586d1[_0x315a73(0x29c)]()]['map'](async _0x2f50b6=>({'relativePath':_0x2f50b6,'originalContent':await q(_0x52e42b(_0x49e962[_0x315a73(0x2d8)],_0x2f50b6))})));await _0x6ec886(_0x21b25e,{'recursive':!0x0}),await tn(_0x21b25e,{'state':_0x315a73(0x271),'files':_0x4e84e8});try{for(let [_0xee708a,_0x16d559]of _0x2586d1)await _0xb2fc0[_0x315a73(0x1f2)]?.(_0xee708a),await J(_0x49e962,_0xee708a,_0x16d559);await tn(_0x21b25e,{'state':_0x315a73(0x280),'files':_0x4e84e8});}catch(_0x3eec84){try{for(let _0x26b362 of _0x4e84e8)await J(_0x49e962,_0x26b362[_0x315a73(0x341)],_0x26b362[_0x315a73(0x24d)]);await tn(_0x21b25e,{'state':_0x315a73(0x29f),'files':_0x4e84e8});}catch(_0xb5935){throw Error((_0x3eec84 instanceof Error?_0x3eec84['message']:String(_0x3eec84))+_0x315a73(0x31e)+(_0xb5935 instanceof Error?_0xb5935[_0x315a73(0x1ef)]:String(_0xb5935)),_0x3eec84 instanceof Error?{'cause':_0x3eec84}:void 0x0);}throw _0x3eec84;}finally{await _0x46aa09(_0x21b25e,{'recursive':!0x0,'force':!0x0})[_0x315a73(0x2dc)](()=>void 0x0);}}async function tn(_0x2c758e,_0x478d2c){const _0x4a94d7=_0x598c2a;await _0x32432d(_0x52e42b(_0x2c758e,'journal.json'),Y(_0x478d2c),_0x4a94d7(0x1fc));}async function nn(_0x195e32,_0x44cfd2,_0x25c303){const _0x3d9571=_0x598c2a;await _0x6ec886(_0x195e32[_0x3d9571(0x2d8)],{'recursive':!0x0}),await _0x296465(_0x52e42b(_0x195e32['absolutePath'],_0x44cfd2),_0x25c303,_0x3d9571(0x1fc));}async function J(_0x66de0,_0x405ff3,_0x4fd7b3){const _0x3ebd4d=_0x598c2a;let _0x4eb1f6=_0x52e42b(_0x66de0[_0x3ebd4d(0x2d8)],_0x405ff3),_0x248976=_0x4eb1f6+_0x3ebd4d(0x287)+process[_0x3ebd4d(0x24f)]+'-'+_0x440fb7();try{await _0x6ec886(_0x53ed98(_0x4eb1f6),{'recursive':!0x0}),await _0x32432d(_0x248976,_0x4fd7b3,_0x3ebd4d(0x1fc)),await _0x31e496(_0x248976,_0x4eb1f6);}finally{await _0x46aa09(_0x248976,{'force':!0x0})[_0x3ebd4d(0x2dc)](()=>void 0x0);}}function rn(_0x1a15f7){const _0x14fd23=_0x598c2a;switch(_0x1a15f7){case _0x14fd23(0x35a):return R;case'initWorkbookData':return z;case'localMutations':return B;case'localChangesets':return V;case _0x14fd23(0x37a):return H;}}function Y(_0x2b8ea1){const _0x595a51=_0x598c2a;return JSON[_0x595a51(0x274)](_0x2b8ea1)+'\x0a';}function X(_0x4eb221){const _0x53f7ca=_0x598c2a;return _0x4eb221[_0x53f7ca(0x2fa)]===0x0?'':_0x4eb221[_0x53f7ca(0x244)](_0x1d0128=>JSON[_0x53f7ca(0x274)](_0x1d0128))[_0x53f7ca(0x32b)]('\x0a')+'\x0a';}function Z(_0x5a51b3,_0x376d9c){const _0x2a131b=_0x598c2a;if(_0x5a51b3===void 0x0)throw Error(_0x2a131b(0x2ec)+_0x376d9c);return _0x5a51b3;}function Q(_0x597300){const _0x4d24e8=_0x598c2a;return _0x597300 instanceof Error&&_0x4d24e8(0x22c)in _0x597300;}function an(_0x28df2c){const _0x1cb976=_0x598c2a;return typeof _0x28df2c==_0x1cb976(0x371)&&!!_0x28df2c&&!Array[_0x1cb976(0x247)](_0x28df2c);}var on=_0x1836b5(import.meta.url),$=gn(_0x53ed98(_0x453965(import.meta.url)));function sn(_0x173c38=process.env){const _0x4ee722=_0x598c2a;let _0x241f7f=ln(_0x173c38);return _0x241f7f==='source'?un():_0x241f7f===_0x4ee722(0x220)?dn():pn();}function cn(_0x30596e=process.env){return{'daemonEntry':sn(_0x30596e)['daemonEntry']};}function ln(_0x4c233f=process.env){const _0x35fe34=_0x598c2a;let _0x5dacfa=_0x4c233f[_0x35fe34(0x292)]?.['trim']();return _0x5dacfa===_0x35fe34(0x2f0)||_0x5dacfa===_0x35fe34(0x220)||_0x5dacfa===_0x35fe34(0x2ca)?_0x5dacfa:_0x453965(import.meta.url)['endsWith'](_0x35fe34(0x267))?'source':hn($)?'workspace-dist':_0x35fe34(0x2ca);}function un(){const _0x46047c=_0x598c2a;let _0x46d8fd=_0x103e00($,'../..'),_0x12768f=on[_0x46047c(0x20d)](_0x46047c(0x31a));return{'mode':'source','packageRoot':$,'cliEntry':{'execArgv':[_0x46047c(0x203),_0x12768f],'modulePath':_0x52e42b($,_0x46047c(0x305),'index.ts')},'daemonEntry':{'execArgv':[_0x46047c(0x203),_0x12768f],'modulePath':_0x52e42b($,'src',_0x46047c(0x2e4),'main.ts')},'runtimeExecutionPlaneEntry':{'execArgv':['--import',_0x12768f],'modulePath':_0x52e42b(_0x46d8fd,_0x46047c(0x294),_0x46047c(0x318),'src',_0x46047c(0x1fb),_0x46047c(0x25f))},'runHelpTopicsRoot':_0x52e42b($,_0x46047c(0x305),_0x46047c(0x2e3),'topics'),'viewAssetsRoot':mn(_0x46d8fd)};}function dn(){const _0x5ea53d=_0x598c2a;let _0x328b8e=fn($),_0x10d456=_0x52e42b(_0x328b8e,'internal',_0x5ea53d(0x2dd));return{'mode':_0x5ea53d(0x220),'packageRoot':$,'cliEntry':{'execArgv':[],'modulePath':_0x52e42b(_0x328b8e,_0x5ea53d(0x2ef),_0x5ea53d(0x23d))},'daemonEntry':{'execArgv':[],'modulePath':_0x52e42b(_0x328b8e,'internal',_0x5ea53d(0x34d))},'runtimeExecutionPlaneEntry':{'execArgv':[],'modulePath':_0x10d456},'runHelpTopicsRoot':_0x52e42b(_0x328b8e,_0x5ea53d(0x2e3),'topics'),'viewAssetsRoot':_0x52e42b(_0x328b8e,_0x5ea53d(0x2ab),_0x5ea53d(0x2f2))};}function fn(_0x5261e4){const _0x34377b=_0x598c2a;return hn(_0x5261e4)?_0x52e42b(_0x5261e4,_0x34377b(0x2b6)):_0x5261e4;}function pn(){const _0x5e11ef=_0x598c2a;return{'mode':_0x5e11ef(0x2ca),'packageRoot':$,'cliEntry':{'execArgv':[],'modulePath':_0x52e42b($,_0x5e11ef(0x2ef),_0x5e11ef(0x23d))},'daemonEntry':{'execArgv':[],'modulePath':_0x52e42b($,'internal','daemon.js')},'runtimeExecutionPlaneEntry':{'execArgv':[],'modulePath':_0x52e42b($,'internal',_0x5e11ef(0x2dd))},'runHelpTopicsRoot':_0x52e42b($,'run-help',_0x5e11ef(0x33c)),'viewAssetsRoot':_0x52e42b($,'view','browser')};}function mn(_0x57dcd6){const _0x2ae224=_0x598c2a;let _0x501ba6=_0x52e42b(_0x57dcd6,_0x2ae224(0x294),_0x2ae224(0x27d),_0x2ae224(0x2b6),_0x2ae224(0x2f2));return _0x37604f(_0x501ba6)?_0x501ba6:_0x52e42b(_0x57dcd6,_0x2ae224(0x294),_0x2ae224(0x27d),_0x2ae224(0x305),_0x2ae224(0x2f2));}function hn(_0x19489a){const _0x484de6=_0x598c2a;return _0x26e08e(_0x19489a)==='cli'&&_0x26e08e(_0x53ed98(_0x19489a))===_0x484de6(0x326);}function gn(_0x27108e){const _0x6d30a8=_0x598c2a;let _0x4bc1e2=_0x27108e;for(;;){let _0x11ec14=_0x52e42b(_0x4bc1e2,_0x6d30a8(0x2b2));if(_0x37604f(_0x11ec14)&&JSON[_0x6d30a8(0x242)](_0x44739a(_0x11ec14,_0x6d30a8(0x1fc)))[_0x6d30a8(0x1f5)]?.[_0x6d30a8(0x306)]!==void 0x0)return _0x4bc1e2;let _0x45e423=_0x53ed98(_0x4bc1e2);if(_0x45e423===_0x4bc1e2)throw Error(_0x6d30a8(0x261)+_0x27108e);_0x4bc1e2=_0x45e423;}}export{gt as a,Ue as c,Ee as d,S as f,xt as i,w as l,x as m,sn as n,He as o,he as p,Ht as r,Ve as s,cn as t,C as u};
|
|
1
|
+
const _0x13eb5d=_0x87b8;(function(_0x37510d,_0x16a069){const _0x8fa350=_0x87b8,_0x1b1776=_0x37510d();while(!![]){try{const _0x40e597=parseInt(_0x8fa350(0x220))/0x1*(-parseInt(_0x8fa350(0x113))/0x2)+-parseInt(_0x8fa350(0x12e))/0x3*(parseInt(_0x8fa350(0x1a3))/0x4)+parseInt(_0x8fa350(0x19d))/0x5*(-parseInt(_0x8fa350(0x190))/0x6)+parseInt(_0x8fa350(0x13b))/0x7+-parseInt(_0x8fa350(0x1ea))/0x8*(parseInt(_0x8fa350(0x1f0))/0x9)+-parseInt(_0x8fa350(0x21a))/0xa+parseInt(_0x8fa350(0x192))/0xb;if(_0x40e597===_0x16a069)break;else _0x1b1776['push'](_0x1b1776['shift']());}catch(_0x4b4334){_0x1b1776['push'](_0x1b1776['shift']());}}}(_0x164d,0xb3fb0));import{o as _0x5dc467}from'./rolldown-runtime-D8j-JhcR.js';import{gn as _0x25cfca}from'./vendor-DjomC5bd.js';import{a as _0x8b2efe,i as _0x4b4139,n as _0x3962cc,o as _0x59f395,r as _0x440815}from'./trace-DPfd8LdJ.js';import{spawn as _0xd895c4}from'node:child_process';import{constants as _0x386ee9,existsSync as _0x628e56,mkdirSync as _0x414a53,readFileSync as _0x43b78f}from'node:fs';import{access as _0x32dd22,appendFile as _0x55bba5,mkdir as _0x47bd7a,readFile as _0x11a963,readdir as _0x579b86,realpath as _0x410f72,rename as _0x169295,rm as _0x1c5ec1,stat as _0x121302,writeFile as _0x4e5722}from'node:fs/promises';import{basename as _0x284d3d,dirname as _0x140b32,extname as _0x539c34,join as _0x574a4d,resolve as _0x182912}from'node:path';import{fileURLToPath as _0x50c976,pathToFileURL as _0x42b31c}from'node:url';import{createRequire as _0x5c9913}from'node:module';import{hostname as _0x5527fa}from'node:os';import{createHash as _0x33d3c5,randomUUID as _0x1813ab}from'node:crypto';import _0x8c94f9 from'node:net';import _0x5a100f from'node:process';import{EventEmitter as _0x26a189}from'node:events';const x={'Health':_0x13eb5d(0x29e),'Shutdown':_0x13eb5d(0x241),'SessionCreateWorkbook':'session.createWorkbook','SessionEvalJs':_0x13eb5d(0x184),'SessionExportWorkbookFile':_0x13eb5d(0x201),'SessionExportWorkbookData':_0x13eb5d(0x151),'SessionDispose':_0x13eb5d(0x13f),'SessionGetWorkbook':'session.getWorkbook','SessionLoadWorkbook':'session.loadWorkbook','SessionLoadWorkbookDataReplayPack':_0x13eb5d(0x1bd)};var he=class{[_0x13eb5d(0x14c)](_0x3e934b){}[_0x13eb5d(0x262)](_0x39173e){}[_0x13eb5d(0x255)](_0x1dcdba){}['error'](_0xbe735e){}[_0x13eb5d(0x29b)](_0x125031){}async['flush'](){}};function ge(_0x28ce1b,_0x4a10ee=new Date()){const _0x12a70f=_0x13eb5d;let _0x22f7dd=_0x3962cc[_0x12a70f(0x17a)]();return{'time':_0x4a10ee[_0x12a70f(0x1d4)](),'level':_0x28ce1b['level']??_0x12a70f(0x262),'event_name':_0x28ce1b[_0x12a70f(0x137)],'component':_0x28ce1b['component'],'process_role':_0x28ce1b['process_role'],'pid':process[_0x12a70f(0x1a1)],..._0x28ce1b['message']===void 0x0?{}:{'message':_0x28ce1b['message']},..._0x22f7dd===void 0x0?{}:{'trace_id':_0x22f7dd[_0x12a70f(0x110)],'span_id':_0x22f7dd[_0x12a70f(0x24c)],'trace_flags':_0x22f7dd[_0x12a70f(0x18e)],..._0x22f7dd['parentSpanId']===void 0x0?{}:{'parent_span_id':_0x22f7dd[_0x12a70f(0x1b5)]}},..._0x28ce1b[_0x12a70f(0x1f7)]===void 0x0?{}:{'error':_e(_0x28ce1b[_0x12a70f(0x1f7)])},..._0x28ce1b[_0x12a70f(0x181)]??{}};}function _e(_0x4520b1){const _0x4bcf8c=_0x13eb5d;return _0x4520b1 instanceof Error?{'message':_0x4520b1[_0x4bcf8c(0x15d)],'name':_0x4520b1[_0x4bcf8c(0x1d5)],...ye(_0x4520b1),..._0x4520b1[_0x4bcf8c(0x207)]===void 0x0?{}:{'stack':_0x4520b1[_0x4bcf8c(0x207)]},...ve(_0x4520b1)}:{'message':typeof _0x4520b1==_0x4bcf8c(0x1c0)?_0x4520b1:JSON[_0x4bcf8c(0x288)](_0x4520b1)};}function ve(_0x487635){const _0x13bba1=_0x13eb5d;let _0x357b69=_0x487635;return typeof _0x357b69[_0x13bba1(0x25b)]==_0x13bba1(0x1c0)?{'code':_0x357b69[_0x13bba1(0x25b)]}:{};}function ye(_0x14572b){const _0x32b5db=_0x13eb5d;let _0x342288=_0x14572b;return _0x342288[_0x32b5db(0x1cf)]===null||typeof _0x342288[_0x32b5db(0x1cf)]!=_0x32b5db(0x2a3)||Array[_0x32b5db(0x2a0)](_0x342288['logFields'])?{}:{'details':_0x342288[_0x32b5db(0x1cf)]};}var be=_0x5dc467(_0x25cfca(),0x1)['default'],xe=0xa*0x400*0x400,Se=0x5,Ce=0x3e8,we=class{[_0x13eb5d(0x1a8)];['ready'];[_0x13eb5d(0x1a0)];[_0x13eb5d(0x125)];[_0x13eb5d(0x20e)];[_0x13eb5d(0x14e)];[_0x13eb5d(0x238)];[_0x13eb5d(0x131)]=!0x1;['nextRotationCheckAt']=0x0;[_0x13eb5d(0x11d)];['saturated']=!0x1;constructor(_0x27de46){const _0x1d099a=_0x13eb5d;this[_0x1d099a(0x1a0)]=_0x27de46[_0x1d099a(0x1a0)]===!0x0,this[_0x1d099a(0x125)]=_0x27de46['logPath'],this['maxArchiveFiles']=_0x27de46[_0x1d099a(0x20e)]??Se,this[_0x1d099a(0x14e)]=_0x27de46[_0x1d099a(0x14e)]??xe,this[_0x1d099a(0x238)]=_0x27de46[_0x1d099a(0x238)]??Ce,this['destination']=new be({'dest':_0x27de46['logPath'],'mkdir':!0x0,'sync':!0x1}),this[_0x1d099a(0x144)]=new Promise(_0x15cc99=>{const _0x499b59=_0x1d099a;this[_0x499b59(0x1a8)][_0x499b59(0x149)]('ready',()=>{_0x15cc99();}),this[_0x499b59(0x1a8)][_0x499b59(0x149)](_0x499b59(0x1f7),()=>{_0x15cc99();});});}['debug'](_0x1b3315){const _0x14bc21=_0x13eb5d;this[_0x14bc21(0x29b)]({..._0x1b3315,'level':'debug'});}[_0x13eb5d(0x262)](_0x15fc42){const _0x2b516e=_0x13eb5d;this[_0x2b516e(0x29b)]({..._0x15fc42,'level':_0x2b516e(0x262)});}[_0x13eb5d(0x255)](_0x5855ad){const _0x37eed4=_0x13eb5d;this[_0x37eed4(0x29b)]({..._0x5855ad,'level':_0x37eed4(0x255)});}[_0x13eb5d(0x1f7)](_0x23646b){const _0xa40b52=_0x13eb5d;this[_0xa40b52(0x29b)]({..._0x23646b,'level':_0xa40b52(0x1f7)});}[_0x13eb5d(0x29b)](_0x517235){const _0xbbd03=_0x13eb5d;if(!(this[_0xbbd03(0x131)]||this[_0xbbd03(0x2ad)]))try{this['saturated']=!this[_0xbbd03(0x1a8)]['write'](JSON[_0xbbd03(0x288)](ge(_0x517235))+'\x0a'),this[_0xbbd03(0x2ad)]&&this[_0xbbd03(0x1a8)][_0xbbd03(0x149)](_0xbbd03(0x28a),()=>{const _0x5a8d00=_0xbbd03;this[_0x5a8d00(0x2ad)]=!0x1;}),this['scheduleRotationIfNeeded']();}catch{}}async[_0x13eb5d(0x222)](){const _0x4a6c69=_0x13eb5d;this[_0x4a6c69(0x131)]||(await this[_0x4a6c69(0x144)],await new Promise(_0x331596=>{const _0x122dcc=_0x4a6c69;this[_0x122dcc(0x1a8)][_0x122dcc(0x222)](()=>{_0x331596();});}),await this[_0x4a6c69(0x11d)],this['closeAfterFlush']&&(this['closed']=!0x0,this[_0x4a6c69(0x1a8)]['end']()));}[_0x13eb5d(0x25c)](){const _0x4544be=_0x13eb5d;let _0x2734d5=Date['now']();this[_0x4544be(0x11d)]!==void 0x0||_0x2734d5<this[_0x4544be(0x1bb)]||(this[_0x4544be(0x1bb)]=_0x2734d5+this[_0x4544be(0x238)],this[_0x4544be(0x11d)]=this[_0x4544be(0x1c4)]()['catch'](()=>{})[_0x4544be(0x27d)](()=>{const _0x50aa2f=_0x4544be;this[_0x50aa2f(0x11d)]=void 0x0;}));}async[_0x13eb5d(0x1c4)](){const _0x2f4430=_0x13eb5d;await this['ready'],await Ae({'logPath':this[_0x2f4430(0x125)],'maxArchiveFiles':this[_0x2f4430(0x20e)],'maxBytes':this[_0x2f4430(0x14e)],'flush':async()=>{await new Promise(_0xb250ab=>{const _0x54d199=_0x87b8;this[_0x54d199(0x1a8)][_0x54d199(0x222)](()=>{_0xb250ab();});});}})&&!this['closed']&&this[_0x2f4430(0x1a8)][_0x2f4430(0x23f)](this['logPath']);}};function Te(_0x2575e9){return new we(_0x2575e9);}function Ee(_0x8023af){let {env:_0x2739ed,role:_0x5974ae,..._0x1512b6}=_0x8023af,_0x3ea74f=S(_0x2739ed);return Te({..._0x1512b6,'logPath':Oe(_0x3ea74f,_0x5974ae)});}function De(_0x569445=process.env){const _0x267bd2=_0x13eb5d;let _0x4f91be=_0x569445[_0x267bd2(0x275)]?.['trim']();if(_0x4f91be)return _0x182912(_0x4f91be);let _0x4ec0cb=_0x569445[_0x267bd2(0x271)]?.[_0x267bd2(0x177)]()||_0x569445[_0x267bd2(0x155)]?.[_0x267bd2(0x177)]();if(!_0x4ec0cb)throw Error(_0x267bd2(0x267));return _0x182912(_0x4ec0cb,_0x267bd2(0x1c2));}function S(_0x57565b=process.env){const _0x2e5837=_0x13eb5d;let _0x2b5fcd=De(_0x57565b),_0x3bdd03=_0x574a4d(_0x2b5fcd,_0x2e5837(0x143));return{'homeDir':_0x2b5fcd,'logsDir':_0x3bdd03,'cliLogPath':_0x574a4d(_0x3bdd03,_0x2e5837(0x1ec)),'daemonLogPath':_0x574a4d(_0x3bdd03,'daemon.jsonl'),'runtimeLogPath':_0x574a4d(_0x3bdd03,_0x2e5837(0x294)),'viewHostLogPath':_0x574a4d(_0x3bdd03,'view-host.jsonl')};}function Oe(_0x77fe63,_0x58a2e5){const _0x323b02=_0x13eb5d;switch(_0x58a2e5){case'cli':return _0x77fe63[_0x323b02(0x205)];case'daemon':return _0x77fe63['daemonLogPath'];case _0x323b02(0x194):return _0x77fe63[_0x323b02(0x208)];case _0x323b02(0x164):return _0x77fe63[_0x323b02(0x27b)];}}async function ke(_0x1ca913,_0x3bc185){const _0x348290=_0x13eb5d;await _0x47bd7a(_0x140b32(_0x1ca913),{'recursive':!0x0,'mode':0x1c0}),await _0x55bba5(_0x1ca913,_0x3bc185+'\x0a',_0x348290(0x171));try{await Ae({'logPath':_0x1ca913,'maxArchiveFiles':Se,'maxBytes':xe});}catch{}}async function Ae(_0x2569ff){const _0x12651c=_0x13eb5d;if(_0x2569ff[_0x12651c(0x14e)]<=0x0)return!0x1;await _0x2569ff[_0x12651c(0x222)]?.();let _0xbc5354;try{_0xbc5354=await _0x121302(_0x2569ff['logPath']);}catch{return!0x1;}if(!_0xbc5354[_0x12651c(0x168)]()||_0xbc5354[_0x12651c(0x295)]<_0x2569ff[_0x12651c(0x14e)])return!0x1;let _0x101c99=_0x574a4d(_0x140b32(_0x2569ff['logPath']),_0x12651c(0x160));await _0x47bd7a(_0x101c99,{'recursive':!0x0,'mode':0x1c0});let _0x661463=_0x574a4d(_0x101c99,_0x284d3d(_0x2569ff[_0x12651c(0x125)])+'.'+Me(new Date())+'.'+process[_0x12651c(0x1a1)]);try{await _0x169295(_0x2569ff['logPath'],_0x661463);}catch{return!0x1;}return await je({'archiveDir':_0x101c99,'maxArchiveFiles':_0x2569ff[_0x12651c(0x20e)],'prefix':_0x284d3d(_0x2569ff[_0x12651c(0x125)])+'.'}),!0x0;}async function je(_0x3d6ed7){const _0x49ff76=_0x13eb5d;if(_0x3d6ed7[_0x49ff76(0x20e)]<0x0)return;let _0x830a2c;try{_0x830a2c=await _0x579b86(_0x3d6ed7[_0x49ff76(0x11f)]);}catch{return;}let _0x534ecd=_0x830a2c[_0x49ff76(0x116)](_0x714c42=>_0x714c42[_0x49ff76(0x287)](_0x3d6ed7[_0x49ff76(0x246)]))[_0x49ff76(0x159)]()[_0x49ff76(0x156)]();await Promise['allSettled'](_0x534ecd[_0x49ff76(0x272)](_0x3d6ed7['maxArchiveFiles'])[_0x49ff76(0x1a5)](async _0x5bf6dd=>await _0x1c5ec1(_0x574a4d(_0x3d6ed7[_0x49ff76(0x11f)],_0x5bf6dd),{'force':!0x0})));}function Me(_0x5735aa){const _0x16b4a2=_0x13eb5d;return _0x5735aa[_0x16b4a2(0x1d4)]()[_0x16b4a2(0x189)](/[^0-9A-Za-z]/gu,'');}var Ne=0x46,Pe=_0x13eb5d(0x1a9);function Fe(_0x51b6e2=process.env){const _0x4cb7ef=_0x13eb5d;let _0x362a8e=_0x51b6e2[_0x4cb7ef(0x275)]?.[_0x4cb7ef(0x177)]();if(_0x362a8e)return _0x182912(_0x362a8e);let _0x548805=_0x51b6e2['HOME']?.[_0x4cb7ef(0x177)]()||_0x51b6e2[_0x4cb7ef(0x155)]?.[_0x4cb7ef(0x177)]();if(!_0x548805)throw Error(_0x4cb7ef(0x267));return _0x182912(_0x548805,_0x4cb7ef(0x1c2));}function C(_0x5c43df=process.env){const _0x2b670b=_0x13eb5d;let _0x3a1463=Fe(_0x5c43df),_0x2c04c4=_0x574a4d(_0x3a1463,_0x2b670b(0x193)),_0x4e1b95=_0x574a4d(_0x3a1463,_0x2b670b(0x1a2)),_0x305e00=S(_0x5c43df),_0x58c9b8=Ie(_0x3a1463);return{'homeDir':_0x3a1463,'daemonDir':_0x2c04c4,'logsDir':_0x305e00[_0x2b670b(0x14d)],'daemonLogPath':_0x305e00['daemonLogPath'],'sessionRoot':_0x4e1b95,'socketPath':_0x58c9b8,'pidPath':_0x574a4d(_0x2c04c4,'daemon.pid'),'metaPath':_0x574a4d(_0x2c04c4,_0x2b670b(0x283)),'lockPath':_0x574a4d(_0x2c04c4,_0x2b670b(0x28d))};}function Ie(_0x933ecb,_0x50c688=process[_0x13eb5d(0x10a)]){const _0x2149ee=_0x13eb5d;let _0x2fd482=_0x574a4d(_0x933ecb,_0x2149ee(0x193),_0x2149ee(0x1d9));return _0x50c688==='win32'?Pe+_0x2149ee(0x229)+Re(_0x2fd482):_0x2fd482[_0x2149ee(0x1fd)]<=Ne?_0x2fd482:_0x574a4d(_0x2149ee(0x166),'univer-'+Re(_0x2fd482)+_0x2149ee(0x256));}function w(_0x1e1c21){const _0x3ddbf3=_0x13eb5d;return _0x1e1c21[_0x3ddbf3(0x287)](Pe);}function Le(_0x5628c1,_0x39826f=process.env){const _0x1d1439=_0x13eb5d;let _0x5856c4=_0x574a4d(C(_0x39826f)[_0x1d1439(0x15a)],_0x5628c1);return{'sessionDir':_0x5856c4,'tracePath':S(_0x39826f)[_0x1d1439(0x208)],'stderrPath':_0x574a4d(_0x5856c4,_0x1d1439(0x14a))};}function Re(_0x15a8ce){const _0x17c8b2=_0x13eb5d;return _0x33d3c5('sha1')[_0x17c8b2(0x1ee)](_0x15a8ce)[_0x17c8b2(0x1c8)](_0x17c8b2(0x2a7))['slice'](0x0,0x10);}var ze=0x3a98,Be=0x7530;async function T(_0x2f85dc={}){const _0x111fa4=_0x13eb5d;return await D({'jsonrpc':_0x111fa4(0x233),'id':k(),'method':x['Health']},{..._0x2f85dc,'autoStart':!0x1});}async function E(_0x30dcf4={}){const _0x30513d=_0x13eb5d;let _0x46ea40=_0x30dcf4[_0x30513d(0x29f)]??_0x5a100f[_0x30513d(0x29f)],{readDaemonBuildId:_0x43131d}=await import(_0x30513d(0x26d)),_0x488fb6=_0x43131d(_0x46ea40);try{let _0xcb6729=await T({..._0x30dcf4,'autoStart':!0x1});return ct(_0x488fb6,_0xcb6729['buildId']),_0xcb6729;}catch(_0x3e8346){if(_0x30dcf4[_0x30513d(0x1b0)]===!0x1)throw _0x3e8346;}let _0x38ee8e=await rt(_0x46ea40,_0x488fb6,_0x30dcf4[_0x30513d(0x22b)]),_0x3848c9=_0x30dcf4[_0x30513d(0x280)]??ze,_0x6144b1=Date[_0x30513d(0x1b3)]()+_0x3848c9,_0xdbadde;for(;Date[_0x30513d(0x1b3)]()<_0x6144b1;)try{let _0x124da2=await T({..._0x30dcf4,'autoStart':!0x1});return ct(_0x488fb6,_0x124da2[_0x30513d(0x1db)]),_0x124da2;}catch(_0x294b47){_0xdbadde=_0x294b47,await dt(0x64);}throw Error([_0x30513d(0x1b8)+_0x3848c9+'ms','entry:\x20'+_0x38ee8e[_0x30513d(0x15b)]+'\x20'+_0x38ee8e[_0x30513d(0x13a)][_0x30513d(0x1af)]('\x20'),_0x30513d(0x172)+ut(_0xdbadde)][_0x30513d(0x1af)](';\x20'));}async function Ve(_0x45804e={}){const _0x486ad1=_0x13eb5d;let _0xed1825=C(_0x45804e['env']??_0x5a100f[_0x486ad1(0x29f)]);try{return Qe(await T({..._0x45804e,'autoStart':!0x1}),_0xed1825);}catch(_0x204e8b){return nt(_0xed1825)?et(_0xed1825,_0x204e8b):$e(_0xed1825);}}async function He(_0x1997b5={}){return await E(_0x1997b5);}async function Ue(_0x1e8d33={}){const _0x235147=_0x13eb5d;let _0x5804e1=C(_0x1e8d33[_0x235147(0x29f)]??_0x5a100f[_0x235147(0x29f)]);try{await D({'jsonrpc':_0x235147(0x233),'id':k(),'method':x['Shutdown']},{..._0x1e8d33,'autoStart':!0x1});}catch{await at(_0x5804e1[_0x235147(0x196)]),await _0x1c5ec1(_0x5804e1[_0x235147(0x2aa)],{'force':!0x0})[_0x235147(0x141)](()=>void 0x0),await _0x1c5ec1(_0x5804e1[_0x235147(0x1aa)],{'force':!0x0})[_0x235147(0x141)](()=>void 0x0),await _0x1c5ec1(_0x5804e1[_0x235147(0x17d)],{'recursive':!0x0,'force':!0x0})['catch'](()=>void 0x0);return;}let _0x2f3acd=Date[_0x235147(0x1b3)]()+(_0x1e8d33[_0x235147(0x280)]??ze);for(;Date['now']()<_0x2f3acd;){if(!it(_0x5804e1['socketPath'])&&!_0x628e56(_0x5804e1[_0x235147(0x2aa)])&&!_0x628e56(_0x5804e1[_0x235147(0x1aa)]))return;await dt(0x64);}throw Error('Daemon\x20did\x20not\x20stop\x20before\x20timeout');}async function We(_0x4c52e5,_0x1b501d,_0x2b5f4e={}){const _0x359724=_0x13eb5d;return await E(_0x2b5f4e),await D({'jsonrpc':_0x359724(0x233),'id':k(),'method':x[_0x359724(0x296)],'params':{'workbookPath':_0x4c52e5,'workbookData':_0x1b501d,'cwd':_0x2b5f4e[_0x359724(0x154)]}},_0x2b5f4e);}async function Ge(_0x2b5071,_0x599c2d,_0x3317f8={}){const _0x154280=_0x13eb5d;return await E(_0x3317f8),await D({'jsonrpc':_0x154280(0x233),'id':k(),'method':x[_0x154280(0x1e1)],'params':{'workbookPath':_0x2b5071,'cwd':_0x3317f8[_0x154280(0x154)],'baseWorkbookData':_0x599c2d['baseWorkbookData'],'mutations':_0x599c2d[_0x154280(0x226)]}},_0x3317f8);}async function Ke(_0x2ccdbf,_0x386b9e={}){const _0x411ed4=_0x13eb5d;return await E(_0x386b9e),await D({'jsonrpc':_0x411ed4(0x233),'id':k(),'method':x[_0x411ed4(0x1e5)],'params':{'workbookPath':_0x2ccdbf,'cwd':_0x386b9e[_0x411ed4(0x154)]}},_0x386b9e);}async function qe(_0x16d435,_0x2b015d={}){const _0x2b217a=_0x13eb5d;return await E(_0x2b015d),await D({'jsonrpc':_0x2b217a(0x233),'id':k(),'method':x['SessionCreateWorkbook'],'params':{'workbookPath':_0x16d435,'cwd':_0x2b015d[_0x2b217a(0x154)],'id':_0x2b015d['id'],'name':_0x2b015d[_0x2b217a(0x1d5)]}},_0x2b015d);}async function Je(_0x1a390e,_0xe69e5b,_0x23480f={}){const _0x2985cb=_0x13eb5d;return await E(_0x23480f),await D({'jsonrpc':_0x2985cb(0x233),'id':k(),'method':x[_0x2985cb(0x10f)],'params':{'workbookPath':_0x1a390e,'code':_0xe69e5b,'cwd':_0x23480f['cwd'],'mutates':_0x23480f[_0x2985cb(0x270)]}},_0x23480f);}async function Ye(_0x20cb88,_0x146e29={}){const _0x4ed9fd=_0x13eb5d;return await E(_0x146e29),await D({'jsonrpc':'2.0','id':k(),'method':x[_0x4ed9fd(0x130)],'params':{'workbookPath':_0x20cb88,'cwd':_0x146e29[_0x4ed9fd(0x154)]}},_0x146e29);}async function Xe(_0x238d07,_0x5dc358,_0x332602={}){const _0x27eb40=_0x13eb5d;return await E(_0x332602),await D({'jsonrpc':_0x27eb40(0x233),'id':k(),'method':x[_0x27eb40(0x23a)],'params':{'workbookPath':_0x238d07,'cwd':_0x332602[_0x27eb40(0x154)],'format':_0x5dc358['format'],'outputPath':_0x5dc358[_0x27eb40(0x28e)]}},_0x332602);}async function Ze(_0x43e6a5,_0x2fc368={}){const _0xd3d92b=_0x13eb5d;return await E(_0x2fc368),await D({'jsonrpc':_0xd3d92b(0x233),'id':k(),'method':x[_0xd3d92b(0x234)],'params':{'workbookPath':_0x43e6a5,'cwd':_0x2fc368['cwd']}},_0x2fc368);}async function D(_0x4f6d7e,_0x169fe1){const _0x3c1d94=_0x13eb5d;return await _0x3962cc[_0x3c1d94(0x29a)]({'name':_0x59f395[_0x3c1d94(0x17f)],'kind':'client'},async()=>{const _0x5037f0=_0x3c1d94;let _0x284ae8=C(_0x169fe1[_0x5037f0(0x29f)]??_0x5a100f[_0x5037f0(0x29f)]);w(_0x284ae8[_0x5037f0(0x196)])||await _0x32dd22(_0x284ae8[_0x5037f0(0x196)],_0x386ee9['F_OK']);let _0xe77ed7=await st(_0x284ae8['socketPath'],{..._0x4f6d7e,'meta':_0x3962cc[_0x5037f0(0x2b0)](_0x4f6d7e[_0x5037f0(0x1f4)])},_0x169fe1['rpcTimeoutMs']??Be);if(_0xe77ed7[_0x5037f0(0x1f7)])throw Error(_0xe77ed7[_0x5037f0(0x1f7)][_0x5037f0(0x15d)]);return _0xe77ed7[_0x5037f0(0x1e8)];});}function Qe(_0x22b558,_0x27887c){const _0x19518a=_0x13eb5d;return{'ok':!0x0,'daemon':{'state':_0x19518a(0x1b9),'pid':_0x22b558['pid'],'runtimeRoot':_0x22b558[_0x19518a(0x2a6)],'socketPath':_0x22b558[_0x19518a(0x196)],'startedAt':_0x22b558[_0x19518a(0x138)],'sessionCount':_0x22b558[_0x19518a(0x284)],'buildId':_0x22b558[_0x19518a(0x1db)]},'paths':O(_0x27887c),'next':[{'command':_0x19518a(0x26b),'reason':_0x19518a(0x214)}],'diagnostics':[]};}function $e(_0x26b5b0){const _0x506cee=_0x13eb5d;return{'ok':!0x0,'daemon':tt(_0x506cee(0x252),_0x26b5b0),'paths':O(_0x26b5b0),'next':[{'command':_0x506cee(0x178),'reason':_0x506cee(0x25d)}],'diagnostics':[]};}function et(_0x58edb0,_0x543439){const _0x594246=_0x13eb5d;return{'ok':!0x0,'daemon':tt(_0x594246(0x1e9),_0x58edb0),'paths':O(_0x58edb0),'next':[{'command':_0x594246(0x26b),'reason':_0x594246(0x11c)},{'command':_0x594246(0x178),'reason':_0x594246(0x21e)}],'diagnostics':[{'message':_0x543439 instanceof Error?_0x543439['message']:String(_0x543439)}]};}function tt(_0x2984b8,_0x3766e9){const _0x4ab53b=_0x13eb5d;return{'state':_0x2984b8,'pid':null,'runtimeRoot':_0x3766e9['homeDir'],'socketPath':_0x3766e9[_0x4ab53b(0x196)],'startedAt':null,'sessionCount':0x0,'buildId':null};}function O(_0x4dbee9){const _0x1af6cc=_0x13eb5d;return{'metaPath':_0x4dbee9[_0x1af6cc(0x1aa)],'lockPath':_0x4dbee9[_0x1af6cc(0x17d)]};}function nt(_0x26fff1){const _0x329e76=_0x13eb5d;return it(_0x26fff1['socketPath'])||_0x628e56(_0x26fff1[_0x329e76(0x2aa)])||_0x628e56(_0x26fff1[_0x329e76(0x1aa)]);}async function rt(_0xf2f5f1,_0x49ebfe,_0x5af33e){const _0x505641=_0x13eb5d;let _0x221dd3=ot(_0x5af33e);return _0x414a53(C(_0xf2f5f1)[_0x505641(0x1ad)],{'recursive':!0x0,'mode':0x1c0}),_0xd895c4(_0x221dd3[_0x505641(0x15b)],_0x221dd3[_0x505641(0x13a)],{..._0x221dd3['cwd']===void 0x0?{}:{'cwd':_0x221dd3[_0x505641(0x154)]},'detached':!0x0,'stdio':[_0x505641(0x25a),_0x505641(0x25a),_0x505641(0x25a)],'env':lt(_0xf2f5f1,_0x49ebfe),'windowsHide':!0x0})[_0x505641(0x26f)](),_0x221dd3;}function it(_0x33b872){return w(_0x33b872)?!0x1:_0x628e56(_0x33b872);}async function at(_0x40d5b8){const _0x51bde6=_0x13eb5d;w(_0x40d5b8)||await _0x1c5ec1(_0x40d5b8,{'force':!0x0})[_0x51bde6(0x141)](()=>void 0x0);}function ot(_0x92f9b7){const _0x3f0ee1=_0x13eb5d;if(_0x92f9b7===void 0x0)throw Error(_0x3f0ee1(0x1b7));return{'command':_0x92f9b7[_0x3f0ee1(0x15b)]??_0x5a100f[_0x3f0ee1(0x2a1)],..._0x92f9b7['cwd']===void 0x0?{}:{'cwd':_0x92f9b7[_0x3f0ee1(0x154)]},'args':[..._0x92f9b7[_0x3f0ee1(0x183)]??[],_0x92f9b7[_0x3f0ee1(0x230)],..._0x92f9b7[_0x3f0ee1(0x13a)]??[_0x3f0ee1(0x169)]][_0x3f0ee1(0x1a5)](String)};}async function st(_0x5e46d7,_0x12e458,_0x1b88a8){return await new Promise((_0x2259bf,_0x539649)=>{const _0x81d65c=_0x87b8;let _0x472724=_0x8c94f9[_0x81d65c(0x215)](_0x5e46d7),_0x5a039d='',_0x2291c7=setTimeout(()=>{const _0x4a5059=_0x81d65c;_0x472724[_0x4a5059(0x236)](),_0x539649(Error(_0x4a5059(0x132)+_0x12e458[_0x4a5059(0x127)]));},_0x1b88a8);_0x472724['on'](_0x81d65c(0x24b),()=>{const _0x3c8945=_0x81d65c;_0x472724[_0x3c8945(0x115)](JSON['stringify'](_0x12e458)+'\x0a');}),_0x472724['on'](_0x81d65c(0x22d),_0x3723e8=>{const _0x2f1e1f=_0x81d65c;_0x5a039d+=_0x3723e8[_0x2f1e1f(0x134)](_0x2f1e1f(0x171));let _0x51328=_0x5a039d[_0x2f1e1f(0x18f)]('\x0a');_0x51328<0x0||(clearTimeout(_0x2291c7),_0x472724[_0x2f1e1f(0x17e)](),_0x2259bf(JSON['parse'](_0x5a039d['slice'](0x0,_0x51328)[_0x2f1e1f(0x177)]())));}),_0x472724['on'](_0x81d65c(0x1f7),_0x35a76c=>{clearTimeout(_0x2291c7),_0x539649(_0x35a76c);});});}function ct(_0x488623,_0x2a1666){const _0x46ebb8=_0x13eb5d;if(_0x488623!==_0x2a1666)throw Error(_0x46ebb8(0x23d)+_0x488623+_0x46ebb8(0x18d)+_0x2a1666+_0x46ebb8(0x291));}function lt(_0x465d22,_0x8cd6cd){const _0x3e036e=_0x13eb5d;let _0x4f4ccb={..._0x465d22,'UNIVER_DAEMON_BUILD_ID_OVERRIDE':_0x8cd6cd};return delete _0x4f4ccb[_0x3e036e(0x13e)],delete _0x4f4ccb[_0x3e036e(0x250)],delete _0x4f4ccb[_0x3e036e(0x1c3)],delete _0x4f4ccb[_0x3e036e(0x1c9)],_0x4f4ccb;}function ut(_0x14dd12){return _0x14dd12 instanceof Error?_0x14dd12['message']:String(_0x14dd12);}function k(){const _0x32ca2e=_0x13eb5d;return _0x32ca2e(0x1ae)+Date[_0x32ca2e(0x1b3)]()[_0x32ca2e(0x134)](0x24)+'-'+Math[_0x32ca2e(0x1a4)]()[_0x32ca2e(0x134)](0x10)[_0x32ca2e(0x272)](0x2,0x8);}async function dt(_0x511dcb){await new Promise(_0x3113a6=>{setTimeout(_0x3113a6,_0x511dcb);});}var ft=0x1388,pt=0xea60,mt=class extends _0x26a189{[_0x13eb5d(0x224)];[_0x13eb5d(0x27e)];[_0x13eb5d(0x17b)]=new Map();[_0x13eb5d(0x2ac)];[_0x13eb5d(0x265)]='';[_0x13eb5d(0x298)]='starting';constructor(_0x18cde2,_0x4e0aab){const _0x401780=_0x13eb5d;super(),this['sessionId']=_0x18cde2,this['destroyGraceMs']=_0x4e0aab[_0x401780(0x27e)]??ft,this[_0x401780(0x2ac)]=_0x4e0aab[_0x401780(0x2ac)]??pt,this[_0x401780(0x224)]=_0xd895c4(process[_0x401780(0x2a1)],[..._0x4e0aab[_0x401780(0x183)]??[],_0x4e0aab[_0x401780(0x22f)]],{..._0x4e0aab[_0x401780(0x154)]===void 0x0?{}:{'cwd':_0x4e0aab['cwd']},'env':{...process.env,..._0x4e0aab[_0x401780(0x29f)],'UNIVER_SESSION_ID':_0x18cde2},'stdio':['ignore',_0x401780(0x25a),_0x401780(0x11e),_0x401780(0x2ab)],'windowsHide':!0x0}),this[_0x401780(0x224)]['stderr']?.['on'](_0x401780(0x22d),_0x559696=>{const _0x19c177=_0x401780;this[_0x19c177(0x265)]+=_0x559696[_0x19c177(0x134)](),_0x4e0aab['onStderrChunk']?.(_0x559696);}),this[_0x401780(0x224)]['on']('message',_0x2312f1=>{const _0x2cdead=_0x401780;if(_0x2312f1[_0x2cdead(0x117)]===_0x2cdead(0x144)&&(this[_0x2cdead(0x298)]=_0x2cdead(0x144),this[_0x2cdead(0x258)](_0x2cdead(0x144))),_0x2312f1[_0x2cdead(0x117)]==='rpc-response'&&_0x2312f1['id']!==void 0x0&&_0x2312f1['data']){let _0x279646=this[_0x2cdead(0x17b)][_0x2cdead(0x297)](_0x2312f1['id']);if(!_0x279646)return;clearTimeout(_0x279646[_0x2cdead(0x15e)]),this[_0x2cdead(0x17b)][_0x2cdead(0x21c)](_0x2312f1['id']),_0x279646[_0x2cdead(0x20f)](_0x2312f1['data']);}}),this[_0x401780(0x224)]['on'](_0x401780(0x1d1),(_0xeefab7,_0x227fe5)=>{const _0x55a437=_0x401780;this['status']=_0x55a437(0x263),this[_0x55a437(0x1d7)](Error(_0x55a437(0x1df)+(_0xeefab7??'null')+',\x20signal='+(_0x227fe5??_0x55a437(0x16f))+')'+this[_0x55a437(0x19e)]())),this[_0x55a437(0x258)](_0x55a437(0x1d1),_0xeefab7,_0x227fe5);}),this[_0x401780(0x224)]['on'](_0x401780(0x1f7),_0x1be321=>{this['emit']('error',_0x1be321);});}[_0x13eb5d(0x236)](){const _0x1071f1=_0x13eb5d;this['status']===_0x1071f1(0x227)||this[_0x1071f1(0x298)]==='exited'||(this[_0x1071f1(0x298)]='destroying',this[_0x1071f1(0x224)][_0x1071f1(0x10e)](_0x1071f1(0x12b)),setTimeout(()=>{const _0xa51c36=_0x1071f1;this[_0xa51c36(0x224)][_0xa51c36(0x11a)]===null&&this['child'][_0xa51c36(0x10e)]('SIGKILL');},this[_0x1071f1(0x27e)])[_0x1071f1(0x26f)]());}[_0x13eb5d(0x25e)](){const _0x3d053f=_0x13eb5d;return this[_0x3d053f(0x224)]['exitCode']===null&&this[_0x3d053f(0x224)][_0x3d053f(0x202)]===null;}async[_0x13eb5d(0x225)](_0x4df9e2,_0x4aca1c){const _0x3f68c6=_0x13eb5d;if(this['status']!==_0x3f68c6(0x144))throw Error(_0x3f68c6(0x179));let _0x18bcfe=_0x4aca1c?.[_0x3f68c6(0x1e7)]??this[_0x3f68c6(0x2ac)];return new Promise((_0x16f5f7,_0x5d1074)=>{const _0xfabd1=_0x3f68c6;let _0x5d19f7=setTimeout(()=>{const _0x287cc2=_0x87b8;this[_0x287cc2(0x17b)][_0x287cc2(0x21c)](_0x4df9e2['id']),_0x5d1074(Error(_0x287cc2(0x22c)));},_0x18bcfe);this[_0xfabd1(0x17b)][_0xfabd1(0x157)](_0x4df9e2['id'],{'resolve':_0x16f5f7,'reject':_0x5d1074,'timeout':_0x5d19f7}),this[_0xfabd1(0x224)][_0xfabd1(0x114)]({'type':_0xfabd1(0x161),'id':_0x4df9e2['id'],'data':{..._0x4df9e2,'meta':_0x3962cc['injectMeta'](_0x4df9e2[_0xfabd1(0x1f4)])}});});}async[_0x13eb5d(0x139)](_0xd6a1cd=0x7530){const _0x25f282=_0x13eb5d;if(this['status']!=='ready'){if(!this[_0x25f282(0x25e)]())throw Error(_0x25f282(0x200)+this[_0x25f282(0x19e)]());return await new Promise((_0x3643a8,_0x227945)=>{const _0x35242e=_0x25f282;let _0x4423b6=()=>{const _0x11365a=_0x87b8;clearTimeout(_0x39d523),this[_0x11365a(0x14f)](_0x11365a(0x144),_0x377bcf),this[_0x11365a(0x14f)](_0x11365a(0x1d1),_0xb2992c),this[_0x11365a(0x14f)](_0x11365a(0x1f7),_0x299082);},_0x377bcf=()=>{_0x4423b6(),_0x3643a8();},_0xb2992c=()=>{const _0x324129=_0x87b8;_0x4423b6(),_0x227945(Error('Runner\x20exited\x20before\x20ready'+this[_0x324129(0x19e)]()));},_0x299082=_0x2ae7bc=>{const _0x75c227=_0x87b8;_0x4423b6(),_0x227945(Error(_0x75c227(0x221)+_0x2ae7bc[_0x75c227(0x15d)]));},_0x39d523=setTimeout(()=>{_0x4423b6(),_0x227945(Error('Runner\x20startup\x20timeout'));},_0xd6a1cd);this[_0x35242e(0x149)](_0x35242e(0x144),_0x377bcf),this[_0x35242e(0x149)](_0x35242e(0x1d1),_0xb2992c),this[_0x35242e(0x149)](_0x35242e(0x1f7),_0x299082);});}}[_0x13eb5d(0x19e)](){const _0x68376=_0x13eb5d;let _0x152c22=this[_0x68376(0x265)][_0x68376(0x177)]();return _0x152c22[_0x68376(0x1fd)]===0x0?'':'\x0a'+_0x152c22;}['rejectPendingRequests'](_0x41019a){const _0x49ec0d=_0x13eb5d;for(let _0x51675f of this[_0x49ec0d(0x17b)]['values']())clearTimeout(_0x51675f[_0x49ec0d(0x15e)]),_0x51675f[_0x49ec0d(0x10b)](_0x41019a);this[_0x49ec0d(0x17b)][_0x49ec0d(0x21d)]();}};let A=function(_0x325019){const _0xc0abdc=_0x13eb5d;return _0x325019[_0xc0abdc(0x17c)]=_0xc0abdc(0x176),_0x325019[_0xc0abdc(0x251)]='evaljs',_0x325019[_0xc0abdc(0x2a4)]=_0xc0abdc(0x1da),_0x325019[_0xc0abdc(0x1bc)]='exportWorkbookData',_0x325019[_0xc0abdc(0x186)]=_0xc0abdc(0x254),_0x325019[_0xc0abdc(0x23b)]=_0xc0abdc(0x213),_0x325019;}({});var ht=0x384*0x3e8,gt=class{[_0x13eb5d(0x29f)];[_0x13eb5d(0x1b6)];[_0x13eb5d(0x260)];['sessions']=new Map();[_0x13eb5d(0x231)];constructor(_0xdd63f2){const _0x42e8b6=_0x13eb5d;this['env']=_0xdd63f2[_0x42e8b6(0x29f)]??process.env,this[_0x42e8b6(0x1b6)]=_0xdd63f2[_0x42e8b6(0x1b6)]??new he(),this[_0x42e8b6(0x260)]=_0xdd63f2[_0x42e8b6(0x260)],this[_0x42e8b6(0x231)]=_0xdd63f2['sessionIdleTtlMs']??_t(this[_0x42e8b6(0x29f)],ht);}[_0x13eb5d(0x1ca)](){const _0x187e39=_0x13eb5d;return this[_0x187e39(0x1a2)]['size'];}[_0x13eb5d(0x128)](){const _0x42f572=_0x13eb5d;return this[_0x42f572(0x231)];}async['getSession'](_0x190f19){const _0x15be32=_0x13eb5d;let _0x27845c=await this[_0x15be32(0x165)](_0x190f19[_0x15be32(0x158)][_0x15be32(0x243)]),_0x412d1b=this[_0x15be32(0x1a2)]['get'](_0x27845c);return _0x412d1b?this[_0x15be32(0x219)](_0x412d1b,_0x190f19[_0x15be32(0x158)]):null;}async['createWorkbook'](_0x5d92f5){const _0x5189c7=_0x13eb5d;let _0x15891e=await this[_0x5189c7(0x268)](_0x5d92f5['identity']['absolutePath']),_0x37fb5d=await _0x15891e[_0x5189c7(0x239)][_0x5189c7(0x225)]({'jsonrpc':_0x5189c7(0x233),'id':N(_0x15891e['sessionId']),'method':A[_0x5189c7(0x17c)],'params':{'id':_0x5d92f5[_0x5189c7(0x2a2)],'name':_0x5d92f5[_0x5189c7(0x285)]}});if(_0x37fb5d['error'])throw Error(_0x37fb5d[_0x5189c7(0x1f7)][_0x5189c7(0x15d)]);return await this[_0x5189c7(0x162)](_0x15891e,_0x5189c7(0x20b)),{'session':this[_0x5189c7(0x219)](_0x15891e,_0x5d92f5['identity']),'workbookData':_0x37fb5d[_0x5189c7(0x1e8)]['workbookData']};}async[_0x13eb5d(0x242)](_0x2c2786){const _0x58a33f=_0x13eb5d;let _0x2547b8=await this['ensureSession'](_0x2c2786[_0x58a33f(0x158)]['absolutePath']),_0x26564a=await _0x2547b8[_0x58a33f(0x239)]['sendRpc']({'jsonrpc':_0x58a33f(0x233),'id':N(_0x2547b8[_0x58a33f(0x264)]),'method':A[_0x58a33f(0x186)],'params':{'workbookData':_0x2c2786[_0x58a33f(0x10c)]}});if(_0x26564a[_0x58a33f(0x1f7)])throw Error(_0x26564a[_0x58a33f(0x1f7)][_0x58a33f(0x15d)]);return await this[_0x58a33f(0x162)](_0x2547b8,_0x58a33f(0x1fe)),{'session':this[_0x58a33f(0x219)](_0x2547b8,_0x2c2786[_0x58a33f(0x158)]),'workbookData':_0x26564a[_0x58a33f(0x1e8)]['workbookData']};}async[_0x13eb5d(0x213)](_0x89a9b0){const _0xfe660e=_0x13eb5d;let _0x3c05d2=await this[_0xfe660e(0x268)](_0x89a9b0[_0xfe660e(0x158)][_0xfe660e(0x243)]),_0xa935f7={'baseWorkbookData':_0x89a9b0[_0xfe660e(0x142)]['baseWorkbookData'],'mutations':_0x89a9b0[_0xfe660e(0x142)][_0xfe660e(0x226)]},_0x4bb0cf=await _0x3c05d2[_0xfe660e(0x239)][_0xfe660e(0x225)]({'jsonrpc':'2.0','id':N(_0x3c05d2[_0xfe660e(0x264)]),'method':A[_0xfe660e(0x23b)],'params':_0xa935f7});if(_0x4bb0cf[_0xfe660e(0x1f7)])throw Error(_0x4bb0cf[_0xfe660e(0x1f7)][_0xfe660e(0x15d)]);return await this[_0xfe660e(0x162)](_0x3c05d2,_0xfe660e(0x1f6)),{'session':this[_0xfe660e(0x219)](_0x3c05d2,_0x89a9b0['identity']),'workbookData':_0x4bb0cf['result'][_0xfe660e(0x10c)]};}async[_0x13eb5d(0x276)](_0x20669a){const _0x5a8db2=_0x13eb5d;let _0x336859=await this[_0x5a8db2(0x279)](_0x20669a[_0x5a8db2(0x158)]['absolutePath']);if(!_0x336859['created'])return await this[_0x5a8db2(0x162)](_0x336859[_0x5a8db2(0x18b)],'ensure-workbook-replay-pack-loaded'),{'loaded':!0x1,'session':this[_0x5a8db2(0x219)](_0x336859[_0x5a8db2(0x18b)],_0x20669a[_0x5a8db2(0x158)])};let _0xa89429=await _0x20669a['loadReplayPack']();return await this[_0x5a8db2(0x16e)](_0x336859[_0x5a8db2(0x18b)],_0xa89429),await this['touchSession'](_0x336859[_0x5a8db2(0x18b)],_0x5a8db2(0x1f6)),{'loaded':!0x0,'session':this['toRuntimeSessionInfo'](_0x336859['session'],_0x20669a[_0x5a8db2(0x158)])};}async[_0x13eb5d(0x146)](_0x53e2dd){const _0x51fd1d=_0x13eb5d;let _0x3c2ad0=await this[_0x51fd1d(0x268)](_0x53e2dd[_0x51fd1d(0x158)][_0x51fd1d(0x243)]),_0x4a8aab=await _0x3c2ad0[_0x51fd1d(0x239)]['sendRpc']({'jsonrpc':'2.0','id':N(_0x3c2ad0[_0x51fd1d(0x264)]),'method':A[_0x51fd1d(0x251)],'params':{'code':_0x53e2dd['code'],'mutates':_0x53e2dd[_0x51fd1d(0x270)]}});if(_0x4a8aab[_0x51fd1d(0x1f7)])throw Error(_0x4a8aab[_0x51fd1d(0x1f7)][_0x51fd1d(0x15d)]);await this[_0x51fd1d(0x162)](_0x3c2ad0,_0x51fd1d(0x232));let _0x50193d=_0x4a8aab[_0x51fd1d(0x1e8)]['mutations'];return{..._0x50193d===void 0x0?{}:{'mutations':_0x50193d},'session':this[_0x51fd1d(0x219)](_0x3c2ad0,_0x53e2dd[_0x51fd1d(0x158)]),'value':_0x4a8aab[_0x51fd1d(0x1e8)][_0x51fd1d(0x150)]};}async[_0x13eb5d(0x24f)](_0x18622e){const _0x181b77=_0x13eb5d;let _0x20b9fe=await this['ensureSession'](_0x18622e[_0x181b77(0x158)]['absolutePath']),_0x4a3da6=await _0x20b9fe[_0x181b77(0x239)][_0x181b77(0x225)]({'jsonrpc':'2.0','id':N(_0x20b9fe[_0x181b77(0x264)]),'method':A[_0x181b77(0x1bc)]});if(_0x4a3da6[_0x181b77(0x1f7)])throw Error(_0x4a3da6['error']['message']);return await this[_0x181b77(0x162)](_0x20b9fe,'export-workbook'),{'session':this[_0x181b77(0x219)](_0x20b9fe,_0x18622e[_0x181b77(0x158)]),'workbookData':_0x4a3da6[_0x181b77(0x1e8)][_0x181b77(0x10c)]};}async[_0x13eb5d(0x1da)](_0x5bccc1){const _0x3a10c4=_0x13eb5d;let _0x8325d7=await this[_0x3a10c4(0x268)](_0x5bccc1[_0x3a10c4(0x158)][_0x3a10c4(0x243)]),_0x55feca=await _0x8325d7[_0x3a10c4(0x239)]['sendRpc']({'jsonrpc':_0x3a10c4(0x233),'id':N(_0x8325d7[_0x3a10c4(0x264)]),'method':A['ExportWorkbookFile'],'params':{'format':_0x5bccc1[_0x3a10c4(0x19a)],'outputPath':_0x5bccc1[_0x3a10c4(0x28e)]}});if(_0x55feca[_0x3a10c4(0x1f7)])throw Error(_0x55feca[_0x3a10c4(0x1f7)]['message']);await this['touchSession'](_0x8325d7,'export-workbook-file');let _0x30516e=_0x55feca[_0x3a10c4(0x1e8)];return{'format':_0x30516e[_0x3a10c4(0x19a)],'outputPath':_0x30516e[_0x3a10c4(0x28e)],'session':this[_0x3a10c4(0x219)](_0x8325d7,_0x5bccc1[_0x3a10c4(0x158)]),'sizeBytes':_0x30516e[_0x3a10c4(0x16a)]};}async[_0x13eb5d(0x1d3)](_0x5052f4){const _0x1b00a2=_0x13eb5d;let _0x5d3abf=await this[_0x1b00a2(0x165)](_0x5052f4[_0x1b00a2(0x158)][_0x1b00a2(0x243)]),_0xd574f2=this[_0x1b00a2(0x1a2)]['get'](_0x5d3abf);_0xd574f2&&await this['destroySession'](_0xd574f2,_0x1b00a2(0x16c));}async['unloadIdleSessions'](_0xb876dd=Date['now']()){const _0x3c0611=_0x13eb5d;let _0x49502d=Array[_0x3c0611(0x209)](this[_0x3c0611(0x1a2)][_0x3c0611(0x1f3)]());for(let _0x202eaa of _0x49502d)_0xb876dd-Date[_0x3c0611(0x1e4)](_0x202eaa['lastAccessedAt'])<this[_0x3c0611(0x231)]||await this[_0x3c0611(0x1e3)](_0x202eaa,_0x3c0611(0x1cb));}async[_0x13eb5d(0x20d)](_0x4f19c1=_0x13eb5d(0x1e0)){const _0x253e72=_0x13eb5d;let _0x4b9ebd=Array[_0x253e72(0x209)](this[_0x253e72(0x1a2)][_0x253e72(0x1f3)]());for(let _0x1cb9f5 of _0x4b9ebd)await this[_0x253e72(0x1e3)](_0x1cb9f5,_0x4f19c1);}async[_0x13eb5d(0x165)](_0x1aeb51){try{return await _0x410f72(_0x1aeb51);}catch{return _0x1aeb51;}}async[_0x13eb5d(0x268)](_0x1f90b2){const _0x3f1530=_0x13eb5d;return(await this[_0x3f1530(0x279)](_0x1f90b2))[_0x3f1530(0x18b)];}async[_0x13eb5d(0x279)](_0x194156){const _0x1c7731=_0x13eb5d;let _0x470c4f=await this[_0x1c7731(0x165)](_0x194156),_0x577e1c=this[_0x1c7731(0x1a2)][_0x1c7731(0x297)](_0x470c4f);if(_0x577e1c)return{'created':!0x1,'session':_0x577e1c};let _0x3e757b=vt(),_0x3cf387=Le(_0x3e757b,this[_0x1c7731(0x29f)]);await _0x47bd7a(_0x3cf387[_0x1c7731(0x27c)],{'recursive':!0x0,'mode':0x1c0});let _0x4a58cb=this[_0x1c7731(0x260)](yt(this['resolveExecutionPlaneOptions'])),_0x5bac22=new mt(_0x3e757b,{'cwd':bt(_0x4a58cb[_0x1c7731(0x230)]),'env':Object[_0x1c7731(0x293)](Object['entries'](this[_0x1c7731(0x29f)])['filter'](_0x3627ad=>_0x3627ad[0x1]!==void 0x0)),'execArgv':_0x4a58cb['execArgv'],'executionPlanePath':_0x4a58cb[_0x1c7731(0x230)],'onStderrChunk':_0x5d672b=>{const _0x55e94b=_0x1c7731;ke(_0x3cf387[_0x55e94b(0x257)],_0x5d672b['toString']()[_0x55e94b(0x121)]());}});await _0x5bac22[_0x1c7731(0x139)]();let _0xbcee46={'sessionId':_0x3e757b,'workbookIdentity':_0x470c4f,'createdAt':new Date()[_0x1c7731(0x1d4)](),'lastAccessedAt':new Date()[_0x1c7731(0x1d4)](),'runner':_0x5bac22,'paths':_0x3cf387};return _0x5bac22['on']('exit',()=>{const _0x2ac49e=_0x1c7731;this[_0x2ac49e(0x1b6)]['warn']({'event_name':_0x4b4139[_0x2ac49e(0x2a9)],'component':_0x440815[_0x2ac49e(0x13d)],'process_role':_0x8b2efe['Runtime'],'fields':{...j(this['env'],_0x3e757b),'session_id':_0x3e757b,'workbook_identity':_0x470c4f}}),this['logger'][_0x2ac49e(0x222)](),this['destroySession'](_0xbcee46,'runner-exit');}),this['sessions']['set'](_0x470c4f,_0xbcee46),this[_0x1c7731(0x1b6)][_0x1c7731(0x262)]({'event_name':_0x4b4139[_0x1c7731(0x228)],'component':_0x440815[_0x1c7731(0x247)],'process_role':_0x8b2efe[_0x1c7731(0x182)],'fields':{...j(this['env'],_0x3e757b),'created_at':_0xbcee46[_0x1c7731(0x136)],'session_id':_0x3e757b,'workbook_identity':_0x470c4f}}),await this[_0x1c7731(0x1b6)][_0x1c7731(0x222)](),{'created':!0x0,'session':_0xbcee46};}async[_0x13eb5d(0x16e)](_0x5d3553,_0x53a6fc){const _0x3348c4=_0x13eb5d;let _0x397cc9={'baseWorkbookData':_0x53a6fc[_0x3348c4(0x1cd)],'mutations':_0x53a6fc[_0x3348c4(0x226)]},_0x323aa9=await _0x5d3553[_0x3348c4(0x239)]['sendRpc']({'jsonrpc':_0x3348c4(0x233),'id':N(_0x5d3553[_0x3348c4(0x264)]),'method':A[_0x3348c4(0x23b)],'params':_0x397cc9});if(_0x323aa9[_0x3348c4(0x1f7)])throw Error(_0x323aa9['error'][_0x3348c4(0x15d)]);return _0x323aa9[_0x3348c4(0x1e8)][_0x3348c4(0x10c)];}async[_0x13eb5d(0x162)](_0x2932ec,_0xb4583d){const _0x59a603=_0x13eb5d;_0x2932ec[_0x59a603(0x180)]=new Date()['toISOString'](),this[_0x59a603(0x1b6)][_0x59a603(0x262)]({'event_name':_0x4b4139[_0x59a603(0x228)],'component':_0x440815[_0x59a603(0x247)],'process_role':_0x8b2efe['Runtime'],'fields':{...j(this['env'],_0x2932ec[_0x59a603(0x264)]),'event':_0xb4583d,'session_id':_0x2932ec[_0x59a603(0x264)],'timestamp':_0x2932ec[_0x59a603(0x180)],'workbook_identity':_0x2932ec[_0x59a603(0x2ae)]}}),await this['logger'][_0x59a603(0x222)]();}async[_0x13eb5d(0x1e3)](_0x2111eb,_0x4456a8){const _0xe7063e=_0x13eb5d;this[_0xe7063e(0x1a2)]['get'](_0x2111eb[_0xe7063e(0x2ae)])===_0x2111eb&&(this['sessions'][_0xe7063e(0x21c)](_0x2111eb['workbookIdentity']),_0x2111eb[_0xe7063e(0x239)][_0xe7063e(0x236)](),this['logger'][_0xe7063e(0x262)]({'event_name':_0x4b4139[_0xe7063e(0x187)],'component':_0x440815[_0xe7063e(0x247)],'process_role':_0x8b2efe['Runtime'],'fields':{...j(this[_0xe7063e(0x29f)],_0x2111eb[_0xe7063e(0x264)]),'reason':_0x4456a8,'session_id':_0x2111eb[_0xe7063e(0x264)],'timestamp':new Date()['toISOString'](),'workbook_identity':_0x2111eb[_0xe7063e(0x2ae)]}}),await this[_0xe7063e(0x1b6)][_0xe7063e(0x222)]());}[_0x13eb5d(0x219)](_0x1f897a,_0x392a0d){const _0x4f7f3d=_0x13eb5d;return{'sessionId':_0x1f897a[_0x4f7f3d(0x264)],'packageIdentity':_0x392a0d,'createdAt':_0x1f897a[_0x4f7f3d(0x136)],'lastAccessedAt':_0x1f897a[_0x4f7f3d(0x180)]};}};function _t(_0x2c1fcd,_0x437e96){const _0x438cd7=_0x13eb5d;let _0x301ea5=_0x2c1fcd[_0x438cd7(0x2af)]?.[_0x438cd7(0x177)]();if(!_0x301ea5)return _0x437e96;let _0x4abfe6=Number(_0x301ea5);return!Number['isFinite'](_0x4abfe6)||_0x4abfe6<0x0?_0x437e96:_0x4abfe6;}function j(_0x223d79,_0xe5ba65){const _0x2fbe22=_0x13eb5d;return{'deployment.environment.name':_0x2fbe22(0x152),'distribution.channel':M(_0x223d79,'UNIVER_DISTRIBUTION_CHANNEL')??_0x2fbe22(0x27a),'service.instance.id':_0xe5ba65,'service.name':_0x2fbe22(0x290),...M(_0x223d79,_0x2fbe22(0x1dd))===void 0x0?{}:{'build.id':M(_0x223d79,'UNIVER_CLI_BUILD_ID')},...M(_0x223d79,'UNIVER_CLI_VERSION')===void 0x0?{}:{'service.version':M(_0x223d79,_0x2fbe22(0x273))}};}function M(_0x53ba1a,_0x532885){const _0x1a0ce6=_0x13eb5d;let _0x10a7d0=_0x53ba1a[_0x532885]?.[_0x1a0ce6(0x177)]();return _0x10a7d0===void 0x0||_0x10a7d0['length']===0x0?void 0x0:_0x10a7d0;}function N(_0x2281c1){const _0x4d4097=_0x13eb5d;return _0x2281c1+'-'+Date[_0x4d4097(0x1b3)]()[_0x4d4097(0x134)](0x24)+'-'+Math['random']()['toString'](0x10)[_0x4d4097(0x272)](0x2,0x8);}function vt(){const _0x7e3c40=_0x13eb5d;return _0x7e3c40(0x20a)+Date[_0x7e3c40(0x1b3)]()['toString'](0x24)+'-'+Math[_0x7e3c40(0x1a4)]()['toString'](0x10)['slice'](0x2,0x8);}function yt(_0x65a5ec){const _0x1f7d52=_0x13eb5d;return _0x50c976(import.meta.url)[_0x1f7d52(0x148)](_0x1f7d52(0x195))?_0x1f7d52(0x19c):_0x1f7d52(0x15f);}function bt(_0x4a7c06){return _0x140b32(_0x140b32(_0x4a7c06));}var xt=class{[_0x13eb5d(0x210)];[_0x13eb5d(0x129)];constructor(_0x54f8cd={}){const _0x3d26c3=_0x13eb5d;this[_0x3d26c3(0x210)]=_0x54f8cd['client']??{'sessionCreateWorkbook':qe,'sessionDisposeWorkbook':Ze,'sessionEvalJs':Je,'sessionExportWorkbookData':Ye,'sessionExportWorkbookFile':Xe,'sessionGetWorkbook':Ke,'sessionLoadWorkbookDataReplayPack':Ge,'sessionLoadWorkbook':We},this[_0x3d26c3(0x129)]=_0x54f8cd['daemonOptions']??{};}async['createWorkbook'](_0x41923c){const _0x437575=_0x13eb5d;let _0x28063b=await this[_0x437575(0x210)]['sessionCreateWorkbook'](_0x41923c['identity']['absolutePath'],{...this[_0x437575(0x129)],..._0x41923c['cwd']===void 0x0?{}:{'cwd':_0x41923c['cwd']},..._0x41923c['workbookId']===void 0x0?{}:{'id':_0x41923c[_0x437575(0x2a2)]},..._0x41923c[_0x437575(0x285)]===void 0x0?{}:{'name':_0x41923c[_0x437575(0x285)]}});return{'session':P(_0x28063b[_0x437575(0x18b)],_0x41923c[_0x437575(0x158)]),'workbookData':_0x28063b[_0x437575(0x10c)]};}async[_0x13eb5d(0x1b2)](_0xd3b822){const _0x1cd8d2=_0x13eb5d;let _0x9ce214=await this[_0x1cd8d2(0x210)][_0x1cd8d2(0x14b)](_0xd3b822['identity'][_0x1cd8d2(0x243)],{...this[_0x1cd8d2(0x129)],..._0xd3b822[_0x1cd8d2(0x154)]===void 0x0?{}:{'cwd':_0xd3b822[_0x1cd8d2(0x154)]}});return!_0x9ce214['exists']||_0x9ce214[_0x1cd8d2(0x18b)]===null?null:P(_0x9ce214[_0x1cd8d2(0x18b)],_0xd3b822[_0x1cd8d2(0x158)]);}async['loadWorkbookData'](_0x4582c6){const _0x32d727=_0x13eb5d;let _0x2a0be9=await this[_0x32d727(0x210)]['sessionLoadWorkbook'](_0x4582c6['identity'][_0x32d727(0x243)],_0x4582c6[_0x32d727(0x10c)],{...this[_0x32d727(0x129)],..._0x4582c6[_0x32d727(0x154)]===void 0x0?{}:{'cwd':_0x4582c6[_0x32d727(0x154)]}});return{'session':P(_0x2a0be9[_0x32d727(0x18b)],_0x4582c6[_0x32d727(0x158)]),'workbookData':_0x2a0be9[_0x32d727(0x10c)]};}async[_0x13eb5d(0x213)](_0x158e5c){const _0x4e71c0=_0x13eb5d;let _0x24d891=await this['client']['sessionLoadWorkbookDataReplayPack'](_0x158e5c[_0x4e71c0(0x158)][_0x4e71c0(0x243)],{'baseWorkbookData':_0x158e5c['replayPack']['baseWorkbookData'],'mutations':_0x158e5c[_0x4e71c0(0x142)][_0x4e71c0(0x226)]},{...this[_0x4e71c0(0x129)],..._0x158e5c[_0x4e71c0(0x154)]===void 0x0?{}:{'cwd':_0x158e5c['cwd']}});return{'session':P(_0x24d891['session'],_0x158e5c[_0x4e71c0(0x158)]),'workbookData':_0x24d891[_0x4e71c0(0x10c)]};}async[_0x13eb5d(0x276)](_0x326b6b){const _0xe00836=_0x13eb5d;let _0x560264=await this[_0xe00836(0x1b2)](_0x326b6b);if(_0x560264!==null)return{'loaded':!0x1,'session':_0x560264};let _0x25cc32=await _0x326b6b[_0xe00836(0x299)]();return{'loaded':!0x0,'session':(await this[_0xe00836(0x213)]({..._0x326b6b[_0xe00836(0x154)]===void 0x0?{}:{'cwd':_0x326b6b[_0xe00836(0x154)]},'identity':_0x326b6b[_0xe00836(0x158)],'replayPack':_0x25cc32}))[_0xe00836(0x18b)]};}async[_0x13eb5d(0x146)](_0x4c8eab){const _0x59f75a=_0x13eb5d;let _0x4aec9d=await this[_0x59f75a(0x210)][_0x59f75a(0x1c5)](_0x4c8eab['identity'][_0x59f75a(0x243)],_0x4c8eab['code'],{...this['options'],..._0x4c8eab[_0x59f75a(0x154)]===void 0x0?{}:{'cwd':_0x4c8eab[_0x59f75a(0x154)]},..._0x4c8eab[_0x59f75a(0x270)]===void 0x0?{}:{'mutates':_0x4c8eab['mutates']}});return{..._0x4aec9d[_0x59f75a(0x226)]===void 0x0?{}:{'mutations':_0x4aec9d[_0x59f75a(0x226)]},'session':P(_0x4aec9d[_0x59f75a(0x18b)],_0x4c8eab[_0x59f75a(0x158)]),'value':_0x4aec9d[_0x59f75a(0x150)]};}async[_0x13eb5d(0x24f)](_0x9e76eb){const _0x2e60be=_0x13eb5d;let _0x34d27a=await this[_0x2e60be(0x210)][_0x2e60be(0x1dc)](_0x9e76eb[_0x2e60be(0x158)][_0x2e60be(0x243)],{...this[_0x2e60be(0x129)],..._0x9e76eb[_0x2e60be(0x154)]===void 0x0?{}:{'cwd':_0x9e76eb[_0x2e60be(0x154)]}});return{'session':P(_0x34d27a[_0x2e60be(0x18b)],_0x9e76eb[_0x2e60be(0x158)]),'workbookData':_0x34d27a['workbookData']};}async['exportWorkbookFile'](_0x56b13b){const _0x47233a=_0x13eb5d;let _0x38544b=await this[_0x47233a(0x210)][_0x47233a(0x170)](_0x56b13b[_0x47233a(0x158)]['absolutePath'],{'format':_0x56b13b[_0x47233a(0x19a)],'outputPath':_0x56b13b[_0x47233a(0x28e)]},{...this['options'],..._0x56b13b[_0x47233a(0x154)]===void 0x0?{}:{'cwd':_0x56b13b[_0x47233a(0x154)]}});return{'format':_0x38544b['format'],'outputPath':_0x38544b[_0x47233a(0x28e)],'session':P(_0x38544b[_0x47233a(0x18b)],_0x56b13b[_0x47233a(0x158)]),'sizeBytes':_0x38544b['sizeBytes']};}async[_0x13eb5d(0x1d3)](_0x2892ef){const _0x504399=_0x13eb5d;await this[_0x504399(0x210)][_0x504399(0x240)](_0x2892ef[_0x504399(0x158)][_0x504399(0x243)],{...this[_0x504399(0x129)],..._0x2892ef[_0x504399(0x154)]===void 0x0?{}:{'cwd':_0x2892ef[_0x504399(0x154)]}});}};function P(_0x11f8c4,_0x44708d){const _0x5964ac=_0x13eb5d;return{'createdAt':_0x11f8c4[_0x5964ac(0x136)],'lastAccessedAt':_0x11f8c4[_0x5964ac(0x180)],'packageIdentity':_0x44708d,'sessionId':_0x11f8c4[_0x5964ac(0x264)]};}var F=class extends Error{[_0x13eb5d(0x25b)];constructor(_0x340b22,_0x314082,_0xa81b81){const _0x30298f=_0x13eb5d;super(_0x314082,_0xa81b81),this[_0x30298f(0x1d5)]=_0x30298f(0x1ce),this[_0x30298f(0x25b)]=_0x340b22;}},St=class extends F{constructor(_0x39df33){const _0x2d4eee=_0x13eb5d;super(_0x2d4eee(0x19b),_0x2d4eee(0x1d2)+_0x39df33),this[_0x2d4eee(0x1d5)]='InvalidWorkbookPackagePathError';}},Ct=class extends F{constructor(_0x275df4){const _0x2633c2=_0x13eb5d;super(_0x2633c2(0x21f),'Missing\x20workbook\x20package\x20file:\x20'+_0x275df4),this[_0x2633c2(0x1d5)]=_0x2633c2(0x292);}},I=class extends F{constructor(_0x1177e3,_0x2da8d7,_0x416c1b){const _0x2ac5be=_0x13eb5d;super(_0x2ac5be(0x122),_0x2ac5be(0x2a5)+_0x1177e3+':\x20'+_0x2da8d7,_0x416c1b),this[_0x2ac5be(0x1d5)]='WorkbookPackageFileInvalidError';}},wt=class extends F{constructor(_0x36a591,_0x312ef8,_0x16c037){const _0x27f603=_0x13eb5d;super(_0x27f603(0x29c),_0x27f603(0x1d0)+_0x36a591+':\x20'+_0x312ef8,_0x16c037),this['name']=_0x27f603(0x1f5);}},Tt=class extends F{constructor(_0xaa9d71){const _0x36b704=_0x13eb5d;super('ERR_WORKBOOK_PACKAGE_ALREADY_EXISTS',_0x36b704(0x1e2)+_0xaa9d71),this[_0x36b704(0x1d5)]=_0x36b704(0x111);}},Et=class extends F{constructor(_0x3260d6,_0x3f99f2){const _0x5703d0=_0x13eb5d;super(_0x5703d0(0x197),_0x3f99f2===null?_0x5703d0(0x175)+_0x3260d6:_0x5703d0(0x175)+_0x3260d6+_0x5703d0(0x16b)+_0x3f99f2['operation']+_0x5703d0(0x1a6)+_0x3f99f2[_0x5703d0(0x1a1)]+'\x20on\x20'+_0x3f99f2[_0x5703d0(0x1ab)]+')'),this['holder']=_0x3f99f2,this[_0x5703d0(0x1d5)]=_0x5703d0(0x1f1);}};function Dt(_0xb8f4d5={}){const _0x3c03b4=_0x13eb5d;return{'unitID':_0xb8f4d5[_0x3c03b4(0x21b)]??null,'initRev':_0xb8f4d5[_0x3c03b4(0x198)]??null,'syncedRev':_0xb8f4d5['syncedRev']??null};}function Ot(_0x5a6320,_0x356526){const _0x406dd7=_0x13eb5d;if(!kt(_0x5a6320))throw new I(_0x356526,_0x406dd7(0x163));let _0x3fa59a=_0x5a6320[_0x406dd7(0x21b)],_0x4a7350=_0x5a6320[_0x406dd7(0x198)],_0x9baec3=_0x5a6320[_0x406dd7(0x145)];if(_0x3fa59a!==null&&typeof _0x3fa59a!=_0x406dd7(0x1c0))throw new I(_0x356526,'unitID\x20must\x20be\x20a\x20string\x20or\x20null');if(_0x4a7350!==null&&!At(_0x4a7350))throw new I(_0x356526,'initRev\x20must\x20be\x20a\x20non-negative\x20integer\x20or\x20null');if(_0x9baec3!==null&&!At(_0x9baec3))throw new I(_0x356526,_0x406dd7(0x2a8));return{'unitID':_0x3fa59a,'initRev':_0x4a7350,'syncedRev':_0x9baec3};}function kt(_0x33b296){const _0x3f8708=_0x13eb5d;return typeof _0x33b296==_0x3f8708(0x2a3)&&!!_0x33b296&&!Array[_0x3f8708(0x2a0)](_0x33b296);}function At(_0xd55a0d){const _0x66a041=_0x13eb5d;return typeof _0xd55a0d==_0x66a041(0x244)&&Number[_0x66a041(0x23e)](_0xd55a0d)&&_0xd55a0d>=0x0;}function L(_0x3e2125,_0x450a50){const _0x5a3358=_0x13eb5d;if(!jt(_0x3e2125))throw new I(_0x450a50,_0x5a3358(0x126));if(typeof _0x3e2125['id']!=_0x5a3358(0x1c0)||_0x3e2125['id'][_0x5a3358(0x1fd)]===0x0)throw new I(_0x450a50,'mutation.id\x20must\x20be\x20a\x20non-empty\x20string');if(!jt(_0x3e2125[_0x5a3358(0x28c)]))throw new I(_0x450a50,'mutation.params\x20must\x20be\x20an\x20object');return _0x3e2125;}function jt(_0x1a8530){const _0x4a62b3=_0x13eb5d;return typeof _0x1a8530==_0x4a62b3(0x2a3)&&!!_0x1a8530&&!Array[_0x4a62b3(0x2a0)](_0x1a8530);}function Mt(_0xde0ecb,_0x30a5aa){const _0x1afd30=_0x13eb5d;let _0x46e91f=Pt(_0xde0ecb,_0x30a5aa,'local\x20changeset'),_0x18dbc5=It(_0x46e91f[_0x1afd30(0x124)],_0x30a5aa,_0x1afd30(0x1fa)),_0x131f05=Lt(_0x46e91f[_0x1afd30(0x188)],_0x30a5aa,_0x1afd30(0x1fa)),_0x42432a=_0x46e91f['message'],_0x3d35fd=_0x46e91f['mutations'];if(typeof _0x42432a!='string')throw new I(_0x30a5aa,_0x1afd30(0x1cc));if(!Array[_0x1afd30(0x2a0)](_0x3d35fd))throw new I(_0x30a5aa,_0x1afd30(0x289));return{'sid':_0x18dbc5,'reqId':_0x131f05,'message':_0x42432a,'mutations':_0x3d35fd['map']((_0x194198,_0x47d471)=>L(_0x194198,_0x30a5aa+_0x1afd30(0x185)+_0x47d471+']'))};}function Nt(_0xe159a4,_0x80db06){const _0x5931a2=_0x13eb5d;let _0xb178b4=Pt(_0xe159a4,_0x80db06,_0x5931a2(0x1f9)),_0x25b4a8=It(_0xb178b4[_0x5931a2(0x124)],_0x80db06,_0x5931a2(0x1f9)),_0x1b3d1c=Lt(_0xb178b4['reqId'],_0x80db06,'synced\x20changeset'),_0x3ebc54=_0xb178b4[_0x5931a2(0x173)],_0x4dbe15=_0xb178b4['revision'],_0x180dab=_0xb178b4[_0x5931a2(0x226)],_0x42f5b4=_0xb178b4[_0x5931a2(0x15d)];if(!Ft(_0x3ebc54))throw new I(_0x80db06,_0x5931a2(0x1c6));if(!Ft(_0x4dbe15))throw new I(_0x80db06,_0x5931a2(0x20c));if(!Array['isArray'](_0x180dab))throw new I(_0x80db06,'synced\x20changeset.mutations\x20must\x20be\x20an\x20array');if(_0x42f5b4!==void 0x0&&typeof _0x42f5b4!=_0x5931a2(0x1c0))throw new I(_0x80db06,_0x5931a2(0x1ac));return{'sid':_0x25b4a8,'reqId':_0x1b3d1c,'baseRev':_0x3ebc54,'revision':_0x4dbe15,'mutations':_0x180dab['map']((_0x352615,_0x518892)=>L(_0x352615,_0x80db06+_0x5931a2(0x185)+_0x518892+']')),..._0x42f5b4===void 0x0?{}:{'message':_0x42f5b4}};}function Pt(_0x586905,_0x15486d,_0x155ae8){const _0x2f3383=_0x13eb5d;if(typeof _0x586905!='object'||!_0x586905||Array[_0x2f3383(0x2a0)](_0x586905))throw new I(_0x15486d,_0x155ae8+_0x2f3383(0x24a));return _0x586905;}function Ft(_0x37bd5a){const _0x5ae579=_0x13eb5d;return typeof _0x37bd5a==_0x5ae579(0x244)&&Number[_0x5ae579(0x23e)](_0x37bd5a)&&_0x37bd5a>=0x0;}function It(_0x1d8e0a,_0x357666,_0x9a2dbf){const _0x41d7a6=_0x13eb5d;if(typeof _0x1d8e0a!=_0x41d7a6(0x1c0)||_0x1d8e0a[_0x41d7a6(0x1fd)]===0x0)throw new I(_0x357666,_0x9a2dbf+_0x41d7a6(0x216));return _0x1d8e0a;}function Lt(_0x3f2652,_0x3c3234,_0x5e24d2){const _0x157952=_0x13eb5d;if(typeof _0x3f2652!=_0x157952(0x244)||!Number[_0x157952(0x23e)](_0x3f2652)||_0x3f2652<0x1)throw new I(_0x3c3234,_0x5e24d2+'.reqId\x20must\x20be\x20a\x20positive\x20integer');return _0x3f2652;}const Rt=[_0x13eb5d(0x1c2),_0x13eb5d(0x120)];var zt=class e{constructor(_0x3d51b0){const _0x4b8f0f=_0x13eb5d;this[_0x4b8f0f(0x150)]=_0x3d51b0;}static[_0x13eb5d(0x1e4)](_0x5864c0){const _0x1631d4=_0x13eb5d;let _0x2784e8=_0x5864c0[_0x1631d4(0x177)]();if(_0x2784e8[_0x1631d4(0x1fd)]===0x0||!Bt(_0x539c34(_0x2784e8)))throw new St(_0x5864c0);return new e(_0x2784e8);}get['extension'](){return _0x539c34(this['value']);}};function Bt(_0x5576ad){return Rt['includes'](_0x5576ad);}var Vt=class e{['absolutePath'];constructor(_0x18f9fd){const _0x2183ea=_0x13eb5d;this[_0x2183ea(0x243)]=_0x18f9fd[_0x2183ea(0x243)];}static[_0x13eb5d(0x1e6)](_0x2a6a52){const _0x1703b6=_0x13eb5d;let _0x17798f=_0x182912(_0x2a6a52),_0x5bf6e4=zt['parse'](_0x17798f);if(_0x17798f!==_0x2a6a52||!Bt(_0x5bf6e4[_0x1703b6(0x18a)]))throw new St(_0x2a6a52);return new e({'absolutePath':_0x17798f});}},R='manifest.json',z='init-workbook-data.json',B=_0x13eb5d(0x174),V=_0x13eb5d(0x259),H=_0x13eb5d(0x23c),Ht=class{constructor(_0x28cfa7={}){const _0xc93d4b=_0x13eb5d;this[_0xc93d4b(0x129)]=_0x28cfa7;}async[_0x13eb5d(0x1be)](_0x4d902c){const _0x1db6d5=_0x13eb5d;let _0xbbf541=zt[_0x1db6d5(0x1e4)](_0x4d902c[_0x1db6d5(0x274)]);return Vt[_0x1db6d5(0x1e6)](_0x182912(_0x4d902c[_0x1db6d5(0x154)]??process['cwd'](),_0xbbf541[_0x1db6d5(0x150)]));}async[_0x13eb5d(0x1c7)](_0x4d2981){const _0x4f578c=_0x13eb5d;return await U(_0x4d2981[_0x4f578c(0x158)],_0x4f578c(0x1c7),this[_0x4f578c(0x129)],async()=>{const _0x4884cc=_0x4f578c;let _0x444016=Dt(_0x4d2981[_0x4884cc(0x16d)]),_0x4c41ce=new G(_0x4d2981[_0x4884cc(0x158)],this[_0x4884cc(0x129)],{'lockWrites':!0x1});return await Ut(_0x4d2981[_0x4884cc(0x158)]),await _0x47bd7a(_0x4d2981[_0x4884cc(0x158)][_0x4884cc(0x243)],{'recursive':!0x0}),await Promise[_0x4884cc(0x1bf)]([_0x4c41ce[_0x4884cc(0x18c)](_0x444016),_0x4c41ce['setInitWorkbookData'](_0x4d2981[_0x4884cc(0x1fb)]),_0x4c41ce['replaceLocalMutations']([]),_0x4c41ce['replaceLocalChangesets']([]),_0x4c41ce[_0x4884cc(0x123)](_0x4d2981[_0x4884cc(0x1eb)]??[])]),new G(_0x4d2981[_0x4884cc(0x158)],this[_0x4884cc(0x129)]);});}async[_0x13eb5d(0x261)](_0x64372c){return new G(_0x64372c,this['options']);}async[_0x13eb5d(0x1d8)](_0xba18b3,_0x3244c2){const _0x222380=_0x13eb5d;return await U(_0xba18b3,_0x222380(0x1d8),this[_0x222380(0x129)],async()=>{const _0x4b0312=_0x222380;let _0x246a5b=new Xt(new G(_0xba18b3,this[_0x4b0312(0x129)],{'lockWrites':!0x1}));try{let _0x2d5e59=await _0x3244c2(_0x246a5b);return await en(_0xba18b3,_0x246a5b['takeWrites'](),this[_0x4b0312(0x129)]),_0x2d5e59;}catch(_0x41b25a){throw new wt(_0xba18b3['absolutePath'],_0x41b25a instanceof Error?_0x41b25a['message']:String(_0x41b25a),_0x41b25a instanceof Error?{'cause':_0x41b25a}:void 0x0);}});}};async function Ut(_0x235cd5){const _0x250e6b=_0x13eb5d;try{if(!(await _0x121302(_0x235cd5['absolutePath']))[_0x250e6b(0x199)]()||(await _0x579b86(_0x235cd5[_0x250e6b(0x243)]))[_0x250e6b(0x1fd)]>0x0)throw new Tt(_0x235cd5[_0x250e6b(0x243)]);}catch(_0x4cc5e0){if(Q(_0x4cc5e0)&&_0x4cc5e0['code']===_0x250e6b(0x28b))return;throw _0x4cc5e0;}}async function U(_0x11eed2,_0x3ebb7a,_0x10abea,_0x4aec62){await Wt(_0x11eed2,_0x3ebb7a,_0x10abea);try{return await _0x4aec62();}finally{await Jt(_0x11eed2);}}async function Wt(_0x1037d0,_0x96b265,_0x309d20){const _0x126103=_0x13eb5d;let _0x266526=_0x309d20[_0x126103(0x1ed)]??0x1388,_0x3778a5=_0x309d20[_0x126103(0x147)]??0x32,_0x2ec0f9=Date[_0x126103(0x1b3)](),_0x1571af=null;for(await _0x47bd7a(_0x140b32(W(_0x1037d0)),{'recursive':!0x0});;){try{await _0x4e5722(W(_0x1037d0),Y({'pid':process[_0x126103(0x1a1)],'hostname':_0x5527fa(),'createdAt':new Date()[_0x126103(0x1d4)](),'operation':_0x96b265}),{'encoding':_0x126103(0x171),'flag':'wx'});return;}catch(_0x15698d){if(!Q(_0x15698d)||_0x15698d['code']!==_0x126103(0x278))throw _0x15698d;}let _0x3801a0=await Gt(_0x1037d0,_0x309d20);if(_0x1571af=_0x3801a0[_0x126103(0x12a)],!_0x3801a0[_0x126103(0x191)]){if(Date[_0x126103(0x1b3)]()-_0x2ec0f9>=_0x266526)throw new Et(_0x1037d0['absolutePath'],_0x1571af);await Yt(Math[_0x126103(0x248)](_0x3778a5,Math[_0x126103(0x108)](_0x266526-(Date['now']()-_0x2ec0f9),0x0)));}}}async function Gt(_0x17cf48,_0x497e3c){const _0x3a0e85=_0x13eb5d;let _0x5313e3=await Kt(_0x17cf48);return _0x5313e3===null||_0x5313e3[_0x3a0e85(0x1ab)]!==_0x5527fa()||qt(_0x5313e3[_0x3a0e85(0x1a1)],_0x497e3c)?{'holder':_0x5313e3,'removed':!0x1}:(await Jt(_0x17cf48),{'holder':_0x5313e3,'removed':!0x0});}async function Kt(_0x38e870){const _0x221d02=_0x13eb5d;try{let _0x223af6=JSON[_0x221d02(0x1e4)](await _0x11a963(W(_0x38e870),_0x221d02(0x171)));if(!an(_0x223af6))return null;let _0x5665d1=_0x223af6[_0x221d02(0x1a1)],_0x39a8a1=_0x223af6[_0x221d02(0x1ab)],_0x17ee75=_0x223af6[_0x221d02(0x136)],_0x489216=_0x223af6[_0x221d02(0x25f)];return typeof _0x5665d1!=_0x221d02(0x244)||!Number[_0x221d02(0x23e)](_0x5665d1)||typeof _0x39a8a1!=_0x221d02(0x1c0)||typeof _0x17ee75!='string'||typeof _0x489216!=_0x221d02(0x1c0)?null:{'pid':_0x5665d1,'hostname':_0x39a8a1,'createdAt':_0x17ee75,'operation':_0x489216};}catch{return null;}}function qt(_0x27af05,_0x430d58){const _0x32c3a0=_0x13eb5d;if(_0x430d58[_0x32c3a0(0x109)]!==void 0x0)return _0x430d58[_0x32c3a0(0x109)](_0x27af05);try{return process['kill'](_0x27af05,0x0),!0x0;}catch{return!0x1;}}async function Jt(_0x5efe1f){const _0x330eac=_0x13eb5d;await _0x1c5ec1(W(_0x5efe1f),{'force':!0x0})[_0x330eac(0x141)](()=>void 0x0);}function W(_0x2afb4c){const _0x3f9429=_0x13eb5d;return _0x2afb4c[_0x3f9429(0x243)]+_0x3f9429(0x282);}async function Yt(_0x38831e){_0x38831e<=0x0||await new Promise(_0x126ee5=>{setTimeout(_0x126ee5,_0x38831e);});}var G=class{constructor(_0x332564,_0x271df3,_0x4c384a={'lockWrites':!0x0}){const _0x217614=_0x13eb5d;this['identity']=_0x332564,this[_0x217614(0x129)]=_0x271df3,this[_0x217614(0x135)]=_0x4c384a;}async[_0x13eb5d(0x118)](){const _0x37439f=_0x13eb5d;return await Zt(this[_0x37439f(0x158)],R,(_0x3dc316,_0x435987)=>Ot(_0x3dc316,_0x435987));}async[_0x13eb5d(0x18c)](_0x3fd0ba){const _0x2473ca=_0x13eb5d;await this[_0x2473ca(0x115)]('set-manifest',()=>J(this[_0x2473ca(0x158)],R,Y(_0x3fd0ba)));}async[_0x13eb5d(0x269)](){return await Zt(this['identity'],z,$t);}async[_0x13eb5d(0x167)](_0x498a78){const _0x574aff=_0x13eb5d;await this[_0x574aff(0x115)](_0x574aff(0x1fc),()=>J(this[_0x574aff(0x158)],z,Y(_0x498a78)));}async[_0x13eb5d(0x24e)](){const _0x44e35e=_0x13eb5d;return await K(this[_0x44e35e(0x158)],B,L);}async[_0x13eb5d(0x1b1)](_0x161b26){const _0x58df8d=_0x13eb5d;_0x161b26['length']!==0x0&&await this['write'](_0x58df8d(0x1ef),()=>nn(this['identity'],B,X(_0x161b26)));}async[_0x13eb5d(0x223)](_0x3ea6ab){const _0x436150=_0x13eb5d;await this[_0x436150(0x115)]('replace-local-mutations',()=>J(this[_0x436150(0x158)],B,X(_0x3ea6ab)));}async[_0x13eb5d(0x277)](){const _0x48e9fb=_0x13eb5d;return await K(this[_0x48e9fb(0x158)],V,Mt);}async[_0x13eb5d(0x253)](_0x5babe6){const _0xee6d66=_0x13eb5d;await this[_0xee6d66(0x115)](_0xee6d66(0x249),()=>nn(this[_0xee6d66(0x158)],V,X([_0x5babe6])));}async[_0x13eb5d(0x1c1)](_0x5d8fbe){const _0x5aa5f1=_0x13eb5d;await this['write']('replace-local-changesets',()=>J(this[_0x5aa5f1(0x158)],V,X(_0x5d8fbe)));}async[_0x13eb5d(0x1a7)](){const _0x1dbe93=_0x13eb5d;return await K(this[_0x1dbe93(0x158)],H,Nt);}async[_0x13eb5d(0x26a)](_0xd17020){const _0x547f16=_0x13eb5d;_0xd17020[_0x547f16(0x1fd)]!==0x0&&await this[_0x547f16(0x115)](_0x547f16(0x119),()=>nn(this[_0x547f16(0x158)],H,X(_0xd17020)));}async[_0x13eb5d(0x123)](_0xc08984){const _0x5866c3=_0x13eb5d;await this[_0x5866c3(0x115)]('replace-synced-changesets',()=>J(this[_0x5866c3(0x158)],H,X(_0xc08984)));}async[_0x13eb5d(0x115)](_0x2d22aa,_0x38c308){const _0x440479=_0x13eb5d;if(!this[_0x440479(0x135)][_0x440479(0x133)]){await _0x38c308();return;}await U(this[_0x440479(0x158)],_0x2d22aa,this['options'],_0x38c308);}},Xt=class{[_0x13eb5d(0x158)];['touchedFiles']=new Set();[_0x13eb5d(0x1fb)];['localChangesets'];[_0x13eb5d(0x1b4)];[_0x13eb5d(0x16d)];[_0x13eb5d(0x1eb)];constructor(_0x2149e2){const _0x48b269=_0x13eb5d;this[_0x48b269(0x235)]=_0x2149e2,this[_0x48b269(0x158)]=_0x2149e2[_0x48b269(0x158)];}async[_0x13eb5d(0x118)](){const _0x26726a=_0x13eb5d;return this[_0x26726a(0x16d)]??=await this['basePackage'][_0x26726a(0x118)](),this[_0x26726a(0x16d)];}async['setManifest'](_0x4393a4){const _0x283352=_0x13eb5d;this[_0x283352(0x16d)]=_0x4393a4,this['touchedFiles'][_0x283352(0x1d6)](_0x283352(0x16d));}async[_0x13eb5d(0x269)](){const _0x1454ed=_0x13eb5d;return this[_0x1454ed(0x1fb)]??=await this[_0x1454ed(0x235)]['getInitWorkbookData'](),this[_0x1454ed(0x1fb)];}async[_0x13eb5d(0x167)](_0x4107af){const _0x23833b=_0x13eb5d;this['initWorkbookData']=_0x4107af,this[_0x23833b(0x24d)][_0x23833b(0x1d6)](_0x23833b(0x1fb));}async['getLocalMutations'](){const _0x2cbdda=_0x13eb5d;return this[_0x2cbdda(0x1b4)]??=await this[_0x2cbdda(0x235)][_0x2cbdda(0x24e)](),this['localMutations'];}async[_0x13eb5d(0x1b1)](_0x2a7e6d){const _0x33177f=_0x13eb5d;_0x2a7e6d[_0x33177f(0x1fd)]!==0x0&&(this[_0x33177f(0x1b4)]=[...await this[_0x33177f(0x24e)](),..._0x2a7e6d],this[_0x33177f(0x24d)][_0x33177f(0x1d6)](_0x33177f(0x1b4)));}async[_0x13eb5d(0x223)](_0x3ba6be){const _0x581ae4=_0x13eb5d;this[_0x581ae4(0x1b4)]=[..._0x3ba6be],this[_0x581ae4(0x24d)][_0x581ae4(0x1d6)](_0x581ae4(0x1b4));}async['getLocalChangesets'](){const _0x542a9a=_0x13eb5d;return this[_0x542a9a(0x245)]??=await this[_0x542a9a(0x235)][_0x542a9a(0x277)](),this['localChangesets'];}async['appendLocalChangeset'](_0x47f375){const _0x6e5e=_0x13eb5d;this['localChangesets']=[...await this[_0x6e5e(0x277)](),_0x47f375],this['touchedFiles'][_0x6e5e(0x1d6)](_0x6e5e(0x245));}async[_0x13eb5d(0x1c1)](_0x33814e){const _0x2f1097=_0x13eb5d;this[_0x2f1097(0x245)]=[..._0x33814e],this[_0x2f1097(0x24d)]['add']('localChangesets');}async[_0x13eb5d(0x1a7)](){const _0xe3ed97=_0x13eb5d;return this[_0xe3ed97(0x1eb)]??=await this[_0xe3ed97(0x235)][_0xe3ed97(0x1a7)](),this[_0xe3ed97(0x1eb)];}async[_0x13eb5d(0x26a)](_0x12c58d){const _0x186167=_0x13eb5d;_0x12c58d['length']!==0x0&&(this[_0x186167(0x1eb)]=[...await this['getSyncedChangesets'](),..._0x12c58d],this[_0x186167(0x24d)][_0x186167(0x1d6)]('syncedChangesets'));}async['replaceSyncedChangesets'](_0xd93bea){const _0x59bdf4=_0x13eb5d;this[_0x59bdf4(0x1eb)]=[..._0xd93bea],this[_0x59bdf4(0x24d)]['add'](_0x59bdf4(0x1eb));}[_0x13eb5d(0x286)](){const _0x3672b8=_0x13eb5d;let _0x912a48=new Map();for(let _0x1af029 of this[_0x3672b8(0x24d)])_0x912a48[_0x3672b8(0x157)](rn(_0x1af029),this[_0x3672b8(0x112)](_0x1af029));return _0x912a48;}[_0x13eb5d(0x112)](_0x122a8b){const _0x33b7ba=_0x13eb5d;switch(_0x122a8b){case _0x33b7ba(0x16d):return Y(Z(this[_0x33b7ba(0x16d)],_0x122a8b));case _0x33b7ba(0x1fb):return Y(Z(this[_0x33b7ba(0x1fb)],_0x122a8b));case _0x33b7ba(0x1b4):return X(Z(this[_0x33b7ba(0x1b4)],_0x122a8b));case _0x33b7ba(0x245):return X(Z(this[_0x33b7ba(0x245)],_0x122a8b));case _0x33b7ba(0x1eb):return X(Z(this[_0x33b7ba(0x1eb)],_0x122a8b));}}};async function Zt(_0x2cf456,_0x57e35e,_0x20b2b8){const _0x1bd356=_0x13eb5d;let _0x31fdc3=_0x574a4d(_0x2cf456[_0x1bd356(0x243)],_0x57e35e),_0x14142b=await q(_0x31fdc3),_0x5002ee;try{_0x5002ee=JSON[_0x1bd356(0x1e4)](_0x14142b);}catch(_0x4145f6){throw new I(_0x31fdc3,_0x4145f6 instanceof Error?_0x4145f6['message']:String(_0x4145f6),_0x4145f6 instanceof Error?{'cause':_0x4145f6}:void 0x0);}return _0x20b2b8(_0x5002ee,_0x31fdc3);}async function K(_0x37b923,_0x2befeb,_0x4e20f5){const _0x395c96=_0x13eb5d;return(await Qt(_0x37b923,_0x2befeb))[_0x395c96(0x1a5)](({value:_0x4bf7cf,label:_0x1a9022})=>_0x4e20f5(_0x4bf7cf,_0x1a9022));}async function Qt(_0x5b68b3,_0x493e59){const _0x190036=_0x13eb5d;let _0x3cc0c0=_0x574a4d(_0x5b68b3[_0x190036(0x243)],_0x493e59),_0x1a047a=(await q(_0x3cc0c0))[_0x190036(0x177)]();return _0x1a047a[_0x190036(0x1fd)]===0x0?[]:_0x1a047a[_0x190036(0x140)](/\r?\n/u)['map']((_0xe92148,_0xd450e0)=>{const _0x25ffa1=_0x190036;let _0x10d627;try{_0x10d627=JSON[_0x25ffa1(0x1e4)](_0xe92148);}catch(_0x3cab86){throw new I(_0x3cc0c0,_0x25ffa1(0x15c)+(_0xd450e0+0x1)+':\x20'+(_0x3cab86 instanceof Error?_0x3cab86[_0x25ffa1(0x15d)]:String(_0x3cab86)),_0x3cab86 instanceof Error?{'cause':_0x3cab86}:void 0x0);}return{'value':_0x10d627,'label':_0x3cc0c0+':'+(_0xd450e0+0x1)};});}function _0x164d(){const _0x28ec6c=['\x5c\x5c.\x5cpipe\x5c','metaPath','hostname','synced\x20changeset.message\x20must\x20be\x20a\x20string\x20when\x20present','daemonDir','daemon-','join','autoStart','appendLocalMutations','getSession','now','localMutations','parentSpanId','logger','Daemon\x20process\x20entry\x20is\x20not\x20configured.\x20Pass\x20DaemonClientOptions.daemonEntry\x20from\x20the\x20CLI\x20runtime\x20manifest.','Timed\x20out\x20waiting\x20for\x20daemon\x20startup\x20after\x20','running','run-help','nextRotationCheckAt','ExportWorkbookData','session.loadWorkbookDataReplayPack','resolveIdentity','all','string','replaceLocalChangesets','.univer','VITEST_POOL_ID','rotateIfNeeded','sessionEvalJs','synced\x20changeset.baseRev\x20must\x20be\x20a\x20non-negative\x20integer','initialize','digest','VITEST_WORKER_ID','getSessionCount','idle-unload','local\x20changeset.message\x20must\x20be\x20a\x20string','baseWorkbookData','WorkbookPackageError','logFields','Workbook\x20package\x20transaction\x20failed\x20for\x20','exit','Invalid\x20workbook\x20package\x20path:\x20','dispose','toISOString','name','add','rejectPendingRequests','transaction','daemon.sock','exportWorkbookFile','buildId','sessionExportWorkbookData','UNIVER_CLI_BUILD_ID','UNIVER_CLI_RUNTIME_MODE','Runner\x20process\x20exited\x20(code=','shutdown','SessionLoadWorkbookDataReplayPack','Workbook\x20package\x20already\x20exists:\x20','destroySession','parse','SessionGetWorkbook','fromAbsolutePath','timeoutMs','result','unreachable','4842328DpBXEi','syncedChangesets','cli.jsonl','lockTimeoutMs','update','append-local-mutations','9KSZEGm','WorkbookPackageLockTimeoutError','workspace-dist','values','meta','WorkbookPackageTransactionError','load-workbook-replay-pack','error','.tmp-','synced\x20changeset','local\x20changeset','initWorkbookData','set-init-workbook-data','length','load-workbook','keys','Runner\x20exited\x20before\x20ready','session.exportWorkbookFile','signalCode','univer-runner.js','topics','cliLogPath','cli.js','stack','runtimeLogPath','from','session-','create-workbook','synced\x20changeset.revision\x20must\x20be\x20a\x20non-negative\x20integer','destroyAll','maxArchiveFiles','resolve','client','.tx-','daemon.js','loadWorkbookDataReplayPack','daemon\x20is\x20running','createConnection','.sid\x20must\x20be\x20a\x20non-empty\x20string','browser','originalContent','toRuntimeSessionInfo','4156480LQfjDb','unitID','delete','clear','start\x20a\x20fresh\x20daemon','ERR_WORKBOOK_PACKAGE_FILE_MISSING','135321CjMmFj','Runner\x20startup\x20error:\x20','flush','replaceLocalMutations','child','sendRpc','mutations','destroying','RuntimeSessionCreated','univer-daemon-','packages','daemonEntry','RPC\x20timeout','data','.ts','executionPlanePath','modulePath','sessionIdleTtlMs','eval-js','2.0','SessionDispose','basePackage','destroy','workbook\x20data\x20must\x20be\x20an\x20object','rotationCheckIntervalMs','runner','SessionExportWorkbookFile','LoadWorkbookDataReplayPack','synced-changesets.jsonl','Daemon\x20build\x20mismatch.\x20Expected\x20','isInteger','reopen','sessionDisposeWorkbook','daemon.shutdown','loadWorkbookData','absolutePath','number','localChangesets','prefix','RuntimeSession','min','append-local-changeset','\x20must\x20be\x20an\x20object','connect','spanId','touchedFiles','getLocalMutations','exportWorkbookData','VITEST','EvalJs','stopped','appendLocalChangeset','loadWorkbook','warn','.sock','stderrPath','emit','local-changesets.jsonl','ignore','code','scheduleRotationIfNeeded','daemon\x20is\x20stopped','isAlive','operation','resolveExecutionPlaneOptions','open','info','exited','sessionId','stderr','view','Cannot\x20resolve\x20home\x20directory\x20for\x20UNIVER_HOME\x20fallback','ensureSession','getInitWorkbookData','appendSyncedChangesets','univer\x20daemon\x20stop','--import','./build-id-BAjJE5TZ.js','bin','unref','mutates','HOME','slice','UNIVER_CLI_VERSION','workbookPath','UNIVER_HOME','ensureWorkbookDataReplayPackLoaded','getLocalChangesets','EEXIST','ensureSessionState','unknown','viewHostLogPath','sessionDir','finally','destroyGraceMs','rolled_back','startTimeoutMs','cli','.lock','daemon.meta.json','sessionCount','workbookName','takeWrites','startsWith','stringify','local\x20changeset.mutations\x20must\x20be\x20an\x20array','drain','ENOENT','params','daemon.lock','outputPath','packaged','univer-runtime','.\x20Run\x20`univer\x20daemon\x20stop`\x20and\x20retry.','WorkbookPackageFileMissingError','fromEntries','runtime.jsonl','size','SessionLoadWorkbook','get','status','loadReplayPack','withSpan','event','ERR_WORKBOOK_PACKAGE_TRANSACTION_FAILED','Missing\x20transaction\x20value\x20for\x20','daemon.health','env','isArray','execPath','workbookId','object','ExportWorkbookFile','Invalid\x20workbook\x20package\x20file\x20','runtimeRoot','hex','syncedRev\x20must\x20be\x20a\x20non-negative\x20integer\x20or\x20null','RuntimeRunnerExit','pidPath','ipc','rpcTimeoutMs','saturated','workbookIdentity','UNIVER_DAEMON_SESSION_IDLE_TTL_MS','injectMeta','package.json','max','isProcessAlive','platform','reject','workbookData','main.ts','kill','SessionEvalJs','traceId','WorkbookPackageAlreadyExistsError','serializeTouchedFile','4IjkNMm','send','write','filter','type','getManifest','append-synced-changesets','exitCode','committed','clear\x20stale\x20daemon\x20runtime\x20files','rotationInFlight','pipe','archiveDir','.unv','trimEnd','ERR_WORKBOOK_PACKAGE_FILE_INVALID','replaceSyncedChangesets','sid','logPath','mutation\x20must\x20be\x20an\x20object','method','getSessionIdleTtlMs','options','holder','SIGTERM','committing','execution-plane','15Dcstlo','Unable\x20to\x20resolve\x20univer-cli\x20package\x20root\x20from\x20','SessionExportWorkbookData','closed','Daemon\x20RPC\x20timeout\x20for\x20','lockWrites','toString','writeOptions','createdAt','event_name','startedAt','waitForReady','args','252518YHcrEm','../..','RuntimeRunner','NODE_OPTIONS','session.dispose','split','catch','replayPack','logs','ready','syncedRev','evalJs','lockRetryIntervalMs','endsWith','once','stderr.log','sessionGetWorkbook','debug','logsDir','maxBytes','off','value','session.exportWorkbookData','local','internal','cwd','USERPROFILE','reverse','set','identity','sort','sessionRoot','command','invalid\x20JSONL\x20at\x20line\x20','message','timeout','source','archive','rpc-request','touchSession','manifest\x20must\x20be\x20an\x20object','view-host','resolveWorkbookIdentity','/tmp','setInitWorkbookData','isFile','serve','sizeBytes','\x20is\x20being\x20modified\x20by\x20operation\x20','explicit-dispose','manifest','loadReplayPackIntoSession','null','sessionExportWorkbookFile','utf8','last\x20health\x20error:\x20','baseRev','local-mutations.jsonl','Workbook\x20package\x20is\x20busy:\x20','createWorkbook','trim','univer\x20daemon\x20start','Runner\x20not\x20ready','active','pendingRequests','CreateWorkbook','lockPath','end','DaemonRpcClient','lastAccessedAt','fields','Runtime','execArgv','session.evalJs','.mutations[','LoadWorkbook','RuntimeSessionDisposed','reqId','replace','extension','session','setManifest',',\x20got\x20','traceFlags','indexOf','186HuUIox','removed','42777801mCqCdL','daemon','runtime','.js','socketPath','ERR_WORKBOOK_PACKAGE_LOCK_TIMEOUT','initRev','isDirectory','format','ERR_INVALID_WORKBOOK_PACKAGE_PATH','dist','228370tIDaKw','formatStderr','src','closeAfterFlush','pid','sessions','384232ofOgGa','random','map','\x20(pid\x20','getSyncedChangesets','destination'];_0x164d=function(){return _0x28ec6c;};return _0x164d();}async function q(_0x20c688){const _0x2c7168=_0x13eb5d;try{if(!(await _0x121302(_0x20c688))[_0x2c7168(0x168)]())throw new Ct(_0x20c688);return await _0x11a963(_0x20c688,_0x2c7168(0x171));}catch(_0x2a6eb2){throw Q(_0x2a6eb2)&&_0x2a6eb2['code']===_0x2c7168(0x28b)?new Ct(_0x20c688):_0x2a6eb2;}}function $t(_0x401226,_0x1e49c4){const _0x4d5b7c=_0x13eb5d;if(typeof _0x401226!=_0x4d5b7c(0x2a3)||!_0x401226||Array[_0x4d5b7c(0x2a0)](_0x401226))throw new I(_0x1e49c4,_0x4d5b7c(0x237));return _0x401226;}async function en(_0x4972b1,_0x1316e4,_0x5e712c){const _0x46f09b=_0x13eb5d;if(_0x1316e4[_0x46f09b(0x295)]===0x0)return;let _0x254110=_0x4972b1[_0x46f09b(0x243)]+_0x46f09b(0x211)+process[_0x46f09b(0x1a1)]+'-'+_0x1813ab(),_0x15985f=await Promise['all']([..._0x1316e4[_0x46f09b(0x1ff)]()][_0x46f09b(0x1a5)](async _0x3c5423=>({'relativePath':_0x3c5423,'originalContent':await q(_0x574a4d(_0x4972b1[_0x46f09b(0x243)],_0x3c5423))})));await _0x47bd7a(_0x254110,{'recursive':!0x0}),await tn(_0x254110,{'state':_0x46f09b(0x12c),'files':_0x15985f});try{for(let [_0x35a476,_0x14675e]of _0x1316e4)await _0x5e712c['beforeCommitFile']?.(_0x35a476),await J(_0x4972b1,_0x35a476,_0x14675e);await tn(_0x254110,{'state':_0x46f09b(0x11b),'files':_0x15985f});}catch(_0xd5ef6d){try{for(let _0x45b29f of _0x15985f)await J(_0x4972b1,_0x45b29f['relativePath'],_0x45b29f[_0x46f09b(0x218)]);await tn(_0x254110,{'state':_0x46f09b(0x27f),'files':_0x15985f});}catch(_0x34f295){throw Error((_0xd5ef6d instanceof Error?_0xd5ef6d['message']:String(_0xd5ef6d))+';\x20rollback\x20failed:\x20'+(_0x34f295 instanceof Error?_0x34f295[_0x46f09b(0x15d)]:String(_0x34f295)),_0xd5ef6d instanceof Error?{'cause':_0xd5ef6d}:void 0x0);}throw _0xd5ef6d;}finally{await _0x1c5ec1(_0x254110,{'recursive':!0x0,'force':!0x0})[_0x46f09b(0x141)](()=>void 0x0);}}function _0x87b8(_0x26d357,_0x183c8c){_0x26d357=_0x26d357-0x108;const _0x164d1e=_0x164d();let _0x87b868=_0x164d1e[_0x26d357];return _0x87b868;}async function tn(_0x9a331c,_0x30b875){const _0x2abae7=_0x13eb5d;await _0x4e5722(_0x574a4d(_0x9a331c,'journal.json'),Y(_0x30b875),_0x2abae7(0x171));}async function nn(_0x3f076f,_0x10f877,_0x242d0e){const _0x832fb4=_0x13eb5d;await _0x47bd7a(_0x3f076f[_0x832fb4(0x243)],{'recursive':!0x0}),await _0x55bba5(_0x574a4d(_0x3f076f[_0x832fb4(0x243)],_0x10f877),_0x242d0e,'utf8');}async function J(_0x29f0a9,_0x1e780c,_0x4341d5){const _0x2e9677=_0x13eb5d;let _0x20651e=_0x574a4d(_0x29f0a9[_0x2e9677(0x243)],_0x1e780c),_0x33630e=_0x20651e+_0x2e9677(0x1f8)+process[_0x2e9677(0x1a1)]+'-'+_0x1813ab();try{await _0x47bd7a(_0x140b32(_0x20651e),{'recursive':!0x0}),await _0x4e5722(_0x33630e,_0x4341d5,'utf8'),await _0x169295(_0x33630e,_0x20651e);}finally{await _0x1c5ec1(_0x33630e,{'force':!0x0})[_0x2e9677(0x141)](()=>void 0x0);}}function rn(_0x37752e){const _0x3c3bf0=_0x13eb5d;switch(_0x37752e){case _0x3c3bf0(0x16d):return R;case _0x3c3bf0(0x1fb):return z;case'localMutations':return B;case _0x3c3bf0(0x245):return V;case _0x3c3bf0(0x1eb):return H;}}function Y(_0x50778b){return JSON['stringify'](_0x50778b)+'\x0a';}function X(_0x4686fa){const _0x43de1b=_0x13eb5d;return _0x4686fa[_0x43de1b(0x1fd)]===0x0?'':_0x4686fa[_0x43de1b(0x1a5)](_0x1fb676=>JSON['stringify'](_0x1fb676))[_0x43de1b(0x1af)]('\x0a')+'\x0a';}function Z(_0x2da210,_0x3882cf){const _0x3185e7=_0x13eb5d;if(_0x2da210===void 0x0)throw Error(_0x3185e7(0x29d)+_0x3882cf);return _0x2da210;}function Q(_0x1acf1a){const _0x32346f=_0x13eb5d;return _0x1acf1a instanceof Error&&_0x32346f(0x25b)in _0x1acf1a;}function an(_0x4e862c){const _0x10a9dd=_0x13eb5d;return typeof _0x4e862c==_0x10a9dd(0x2a3)&&!!_0x4e862c&&!Array[_0x10a9dd(0x2a0)](_0x4e862c);}var on=_0x5c9913(import.meta.url),$=gn(_0x140b32(_0x50c976(import.meta.url)));function sn(_0x7ec2de=process.env){const _0x28df77=_0x13eb5d;let _0x1edc04=ln(_0x7ec2de);return _0x1edc04===_0x28df77(0x15f)?un():_0x1edc04===_0x28df77(0x1f2)?dn():pn();}function cn(_0xeb1449=process.env){const _0x56743e=_0x13eb5d;return{'daemonEntry':sn(_0xeb1449)[_0x56743e(0x22b)]};}function ln(_0x2bd126=process.env){const _0x3fbd65=_0x13eb5d;let _0x540c76=_0x2bd126[_0x3fbd65(0x1de)]?.['trim']();return _0x540c76===_0x3fbd65(0x15f)||_0x540c76===_0x3fbd65(0x1f2)||_0x540c76===_0x3fbd65(0x28f)?_0x540c76:_0x50c976(import.meta.url)['endsWith'](_0x3fbd65(0x22e))?_0x3fbd65(0x15f):hn($)?'workspace-dist':_0x3fbd65(0x28f);}function un(){const _0x517725=_0x13eb5d;let _0x59e63f=_0x182912($,_0x517725(0x13c)),_0xb75460=on['resolve']('tsx');return{'mode':'source','packageRoot':$,'cliEntry':{'execArgv':[_0x517725(0x26c),_0xb75460],'modulePath':_0x574a4d($,_0x517725(0x19f),'index.ts')},'daemonEntry':{'execArgv':[_0x517725(0x26c),_0xb75460],'modulePath':_0x574a4d($,_0x517725(0x19f),_0x517725(0x193),_0x517725(0x10d))},'runtimeExecutionPlaneEntry':{'execArgv':[_0x517725(0x26c),_0xb75460],'modulePath':_0x574a4d(_0x59e63f,'packages',_0x517725(0x290),_0x517725(0x19f),_0x517725(0x12d),_0x517725(0x10d))},'runHelpTopicsRoot':_0x574a4d($,_0x517725(0x19f),_0x517725(0x1ba),'topics'),'viewAssetsRoot':mn(_0x59e63f)};}function dn(){const _0x115d66=_0x13eb5d;let _0x49e180=fn($),_0x48f55f=_0x574a4d(_0x49e180,_0x115d66(0x153),'univer-runner.js');return{'mode':_0x115d66(0x1f2),'packageRoot':$,'cliEntry':{'execArgv':[],'modulePath':_0x574a4d(_0x49e180,'internal','cli.js')},'daemonEntry':{'execArgv':[],'modulePath':_0x574a4d(_0x49e180,_0x115d66(0x153),_0x115d66(0x212))},'runtimeExecutionPlaneEntry':{'execArgv':[],'modulePath':_0x48f55f},'runHelpTopicsRoot':_0x574a4d(_0x49e180,_0x115d66(0x1ba),'topics'),'viewAssetsRoot':_0x574a4d(_0x49e180,_0x115d66(0x266),_0x115d66(0x217))};}function fn(_0x180abe){return hn(_0x180abe)?_0x574a4d(_0x180abe,'dist'):_0x180abe;}function pn(){const _0x4f7844=_0x13eb5d;return{'mode':'packaged','packageRoot':$,'cliEntry':{'execArgv':[],'modulePath':_0x574a4d($,'internal',_0x4f7844(0x206))},'daemonEntry':{'execArgv':[],'modulePath':_0x574a4d($,_0x4f7844(0x153),_0x4f7844(0x212))},'runtimeExecutionPlaneEntry':{'execArgv':[],'modulePath':_0x574a4d($,_0x4f7844(0x153),_0x4f7844(0x203))},'runHelpTopicsRoot':_0x574a4d($,_0x4f7844(0x1ba),_0x4f7844(0x204)),'viewAssetsRoot':_0x574a4d($,'view',_0x4f7844(0x217))};}function mn(_0x2adcd8){const _0x3cb30a=_0x13eb5d;let _0x27da41=_0x574a4d(_0x2adcd8,_0x3cb30a(0x22a),'view-host','dist',_0x3cb30a(0x217));return _0x628e56(_0x27da41)?_0x27da41:_0x574a4d(_0x2adcd8,_0x3cb30a(0x22a),_0x3cb30a(0x164),_0x3cb30a(0x19f),'browser');}function hn(_0x59b88c){const _0x50b30f=_0x13eb5d;return _0x284d3d(_0x59b88c)===_0x50b30f(0x281)&&_0x284d3d(_0x140b32(_0x59b88c))==='apps';}function gn(_0x482977){const _0x2de299=_0x13eb5d;let _0x20550c=_0x482977;for(;;){let _0xe8ed39=_0x574a4d(_0x20550c,_0x2de299(0x2b1));if(_0x628e56(_0xe8ed39)&&JSON[_0x2de299(0x1e4)](_0x43b78f(_0xe8ed39,'utf8'))[_0x2de299(0x26e)]?.['univer']!==void 0x0)return _0x20550c;let _0x3f71e3=_0x140b32(_0x20550c);if(_0x3f71e3===_0x20550c)throw Error(_0x2de299(0x12f)+_0x482977);_0x20550c=_0x3f71e3;}}export{gt as a,Ue as c,Ee as d,S as f,xt as i,w as l,x as m,sn as n,He as o,he as p,Ht as r,Ve as s,cn as t,C as u};
|
package/chunks/trace-DPfd8LdJ.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4c630b=_0x43aa;(function(_0x302ab6,_0x17e17b){const _0x104953=_0x43aa,_0x4ab5b8=_0x302ab6();while(!![]){try{const _0x5ca973=-parseInt(_0x104953(0xfa))/0x1+-parseInt(_0x104953(0x111))/0x2*(parseInt(_0x104953(0x103))/0x3)+parseInt(_0x104953(0x10c))/0x4+parseInt(_0x104953(0xee))/0x5+-parseInt(_0x104953(0xec))/0x6*(-parseInt(_0x104953(0x107))/0x7)+parseInt(_0x104953(0xe7))/0x8+-parseInt(_0x104953(0x10e))/0x9;if(_0x5ca973===_0x17e17b)break;else _0x4ab5b8['push'](_0x4ab5b8['shift']());}catch(_0x2fdf9d){_0x4ab5b8['push'](_0x4ab5b8['shift']());}}}(_0x3f27,0xca727));import{randomBytes as _0x134fe7}from'node:crypto';import{AsyncLocalStorage as _0x176f93}from'node:async_hooks';const n={'Cli':_0x4c630b(0x100),'Daemon':_0x4c630b(0xfb),'Runtime':_0x4c630b(0x102),'ViewHost':_0x4c630b(0x121)},r={'Cli':_0x4c630b(0x100),'Daemon':_0x4c630b(0xfb),'RuntimeSession':'runtime-session','RuntimeRunner':_0x4c630b(0x10f),'ViewHost':_0x4c630b(0x121),'Cloud':_0x4c630b(0xff),'Doctor':_0x4c630b(0x11a),'Observability':_0x4c630b(0x116)},i={'CliCommandStart':_0x4c630b(0xf3),'CliCommandFinish':_0x4c630b(0xef),'CliCommandError':_0x4c630b(0xf0),'CliCommandCancel':_0x4c630b(0x118),'DaemonStart':_0x4c630b(0x104),'DaemonStop':_0x4c630b(0x110),'DaemonRpcStart':'daemon.rpc.start','DaemonRpcFinish':_0x4c630b(0x11c),'DaemonRpcError':_0x4c630b(0x10b),'RuntimeSessionCreated':_0x4c630b(0x11d),'RuntimeSessionDisposed':'runtime.session.disposed','RuntimeRunnerExit':_0x4c630b(0x109),'RuntimeRpcError':_0x4c630b(0xf1),'ViewHostStart':'view-host.start','ViewHostRequestError':_0x4c630b(0xfe),'ViewHostUncaughtException':_0x4c630b(0xe5),'ViewHostUnhandledRejection':_0x4c630b(0xfd),'ViewHostBrowserError':_0x4c630b(0x11f),'ViewHostBrowserUnhandledRejection':_0x4c630b(0xe8),'ViewHostBrowserResourceError':'view-host.browser.resource-error','ViewHostBrowserFetchError':_0x4c630b(0x115),'CloudHttpStart':_0x4c630b(0x101),'CloudHttpFinish':_0x4c630b(0x119),'CloudHttpError':_0x4c630b(0x113),'TraceContextMissing':_0x4c630b(0xf6),'TraceContextInvalid':'trace.context.invalid','DoctorCollectStart':_0x4c630b(0xf2),'DoctorCollectFinish':_0x4c630b(0xf4)},a={'CliCommand':_0x4c630b(0x10a),'DaemonRpcClient':'daemon.rpc.client','DaemonRpcServer':'daemon.rpc.server','DaemonRpcOrphan':_0x4c630b(0xe6),'RuntimeRpcClient':_0x4c630b(0x120),'RuntimeEval':'runtime.eval','ViewHostHttpRequest':_0x4c630b(0x11b),'CloudHttpRequest':'cloud.http.request','DoctorCollect':'doctor.collect'};function _0x43aa(_0x1cd14f,_0x4c6c78){_0x1cd14f=_0x1cd14f-0xe5;const _0x3f2711=_0x3f27();let _0x43aa97=_0x3f2711[_0x1cd14f];return _0x43aa97;}var o='00',s='01',c=/^[0-9a-f]{32}$/,l=/^[0-9a-f]{16}$/,u=/^[0-9a-f]{2}$/,d=_0x4c630b(0x117),f=_0x4c630b(0xf9);function _0x3f27(){const _0x7734c2=['0000000000000000','551154mygutE','daemon','active','view-host.unhandled-rejection','view-host.request.error','cloud','cli','cloud.http.start','runtime','626442REDJhA','daemon.start','test','withContext','3664815LUjOge','traceFlags','runtime.runner.exit','cli.command','daemon.rpc.error','2269996fYlLpB','injectHeaders','3004272AqfgyN','runtime-runner','daemon.stop','2jqsVfP','withSpan','cloud.http.error','trim','view-host.browser.fetch-error','observability','00000000000000000000000000000000','cli.command.cancel','cloud.http.finish','doctor','view-host.http.request','daemon.rpc.finish','runtime.session.created','getStore','view-host.browser.error','runtime.rpc.client','view-host','view-host.uncaught-exception','daemon.rpc.orphan','4271528Lekrul','view-host.browser.unhandled-rejection','injectMeta','split','traceId','6Pnzmrx','storage','1490070uAABSd','cli.command.finish','cli.command.error','runtime.rpc.error','doctor.collect.start','cli.command.start','doctor.collect.finish','spanId','trace.context.missing','hex','run'];_0x3f27=function(){return _0x7734c2;};return _0x3f27();}function p(){return b(0x10,d);}function m(){return b(0x8,f);}function h(){return{'traceId':p(),'spanId':m(),'traceFlags':s};}function g(_0x160ad4){const _0x57ae81=_0x4c630b;return{'traceId':_0x160ad4[_0x57ae81(0xeb)],'parentSpanId':_0x160ad4[_0x57ae81(0xf5)],'spanId':m(),'traceFlags':_0x160ad4['traceFlags']};}function _(_0x307e27){const _0x4eaacb=_0x4c630b;if(_0x307e27===void 0x0)return;let _0x39e085=_0x307e27[_0x4eaacb(0x114)]()[_0x4eaacb(0xea)]('-');if(_0x39e085['length']!==0x4)return;let [_0x37e222,_0x164a19,_0x583adc,_0x86783d]=_0x39e085;if(!(_0x37e222!==o||!c[_0x4eaacb(0x105)](_0x164a19)||_0x164a19===d||!l['test'](_0x583adc)||_0x583adc===f||!u[_0x4eaacb(0x105)](_0x86783d)))return{'traceId':_0x164a19,'spanId':_0x583adc,'traceFlags':_0x86783d};}function v(_0x1956ab){const _0x1aaf8a=_0x4c630b;return o+'-'+_0x1956ab[_0x1aaf8a(0xeb)]+'-'+_0x1956ab[_0x1aaf8a(0xf5)]+'-'+_0x1956ab[_0x1aaf8a(0x108)];}const y=new class{[_0x4c630b(0xed)]=new _0x176f93();[_0x4c630b(0xfc)](){const _0x17d2b7=_0x4c630b;return this[_0x17d2b7(0xed)][_0x17d2b7(0x11e)]();}['withContext'](_0x55f06f,_0xbab456){const _0x400cfd=_0x4c630b;return this['storage'][_0x400cfd(0xf8)](_0x55f06f,_0xbab456);}['withRootSpan'](_0x9da86d,_0x3393b2){return this['withContext'](h(),_0x3393b2);}[_0x4c630b(0x112)](_0x28f543,_0x3ba804){const _0x29c9c8=_0x4c630b;let _0x184751=this[_0x29c9c8(0xfc)]();return this[_0x29c9c8(0x106)](_0x184751===void 0x0?h():g(_0x184751),_0x3ba804);}[_0x4c630b(0xe9)](_0x335c8c){const _0x3a0c3c=_0x4c630b;let _0x5d9fa2=this[_0x3a0c3c(0xfc)]()??h();return{..._0x335c8c??{},'traceparent':v(_0x5d9fa2)};}[_0x4c630b(0x10d)](_0x3adf89){const _0x2ecf48=_0x4c630b;let _0x3ed6a3=this[_0x2ecf48(0xfc)]()??h();return{..._0x3adf89??{},'traceparent':v(_0x3ed6a3)};}}();function b(_0x49c1ad,_0x3fae5e){const _0x2b29fe=_0x4c630b;let _0x3d3076='';do _0x3d3076=_0x134fe7(_0x49c1ad)['toString'](_0x2b29fe(0xf7));while(_0x3d3076===_0x3fae5e);return _0x3d3076;}export{n as a,i,y as n,a as o,r,_ as t};
|