@univerjs-pro/collaboration-client-node 1.0.1 → 1.0.2

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/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1f11ae=_0x31e1;(function(_0x3a13f8,_0x1f0b0e){const _0x5684d6=_0x31e1,_0x5831f0=_0x3a13f8();while(!![]){try{const _0x2f8088=parseInt(_0x5684d6(0x20a))/0x1+-parseInt(_0x5684d6(0x1f9))/0x2*(parseInt(_0x5684d6(0x1f3))/0x3)+parseInt(_0x5684d6(0x20b))/0x4*(parseInt(_0x5684d6(0x1e5))/0x5)+parseInt(_0x5684d6(0x20c))/0x6*(-parseInt(_0x5684d6(0x21f))/0x7)+-parseInt(_0x5684d6(0x203))/0x8+-parseInt(_0x5684d6(0x1f0))/0x9*(-parseInt(_0x5684d6(0x1fc))/0xa)+parseInt(_0x5684d6(0x20d))/0xb;if(_0x2f8088===_0x1f0b0e)break;else _0x5831f0['push'](_0x5831f0['shift']());}catch(_0x522bc5){_0x5831f0['push'](_0x5831f0['shift']());}}}(_0x10df,0x8596d),Object[_0x1f11ae(0x1fa)](exports,Symbol[_0x1f11ae(0x217)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s='@univerjs-pro/collaboration-client-node',c=_0x1f11ae(0x1f1);const l={};function u(_0x5fdd35,_0x1232dc){return function(_0x4ed290,_0x3adc7a){_0x1232dc(_0x4ed290,_0x3adc7a,_0x5fdd35);};}function d(_0xd8d63,_0x3fcc1f,_0x34a6bd,_0x7c4837){const _0x4c1145=_0x1f11ae;var _0x15e4cb=arguments[_0x4c1145(0x1fe)],_0x2f592d=_0x15e4cb<0x3?_0x3fcc1f:_0x7c4837===null?_0x7c4837=Object[_0x4c1145(0x226)](_0x3fcc1f,_0x34a6bd):_0x7c4837,_0x5136cb;if(typeof Reflect=='object'&&typeof Reflect[_0x4c1145(0x213)]==_0x4c1145(0x223))_0x2f592d=Reflect[_0x4c1145(0x213)](_0xd8d63,_0x3fcc1f,_0x34a6bd,_0x7c4837);else{for(var _0x4f5ede=_0xd8d63['length']-0x1;_0x4f5ede>=0x0;_0x4f5ede--)(_0x5136cb=_0xd8d63[_0x4f5ede])&&(_0x2f592d=(_0x15e4cb<0x3?_0x5136cb(_0x2f592d):_0x15e4cb>0x3?_0x5136cb(_0x3fcc1f,_0x34a6bd,_0x2f592d):_0x5136cb(_0x3fcc1f,_0x34a6bd))||_0x2f592d);}return _0x15e4cb>0x3&&_0x2f592d&&Object[_0x4c1145(0x1fa)](_0x3fcc1f,_0x34a6bd,_0x2f592d),_0x2f592d;}let f=class extends r[_0x1f11ae(0x1f4)]{constructor(_0x1ff057){const _0x2e1b25=_0x1f11ae;super(),this[_0x2e1b25(0x1fd)]=_0x1ff057;}['createSocket'](_0x471052){const _0x1cc0e5=_0x1f11ae;var _0x19ad06;let _0x3733c9=((_0x19ad06=this[_0x1cc0e5(0x1fd)][_0x1cc0e5(0x21b)](t[_0x1cc0e5(0x209)]))==null?void 0x0:_0x19ad06['customHeaders'])||{};try{let _0x4597ac=new o[(_0x1cc0e5(0x205))](_0x471052,{'headers':{..._0x3733c9}}),_0x313399=new r[(_0x1cc0e5(0x211))]();return{'URL':_0x471052,'close':(_0xeb2ff3,_0x5a3e6d)=>{const _0x36ba72=_0x1cc0e5;_0x4597ac[_0x36ba72(0x20e)](_0xeb2ff3,_0x5a3e6d),_0x313399[_0x36ba72(0x1e8)]();},'send':_0x4a2232=>{_0x4597ac['send'](_0x4a2232);},'open$':new a['Observable'](_0x21844b=>{const _0xa890cc=_0x1cc0e5;let _0x4284c2=_0x1c46d0=>_0x21844b[_0xa890cc(0x214)](_0x1c46d0);_0x4597ac[_0xa890cc(0x225)](_0xa890cc(0x1f2),_0x4284c2),_0x313399['add']((0x0,r['toDisposable'])(()=>_0x4597ac[_0xa890cc(0x1ee)]('open',_0x4284c2)));})['pipe']((0x0,a[_0x1cc0e5(0x212)])()),'close$':new a[(_0x1cc0e5(0x1dc))](_0x5f35b1=>{const _0x221f9f=_0x1cc0e5;let _0x458fb5=_0x4728b1=>_0x5f35b1[_0x221f9f(0x214)](_0x4728b1);_0x4597ac['addEventListener']('close',_0x458fb5),_0x313399['add']((0x0,r[_0x221f9f(0x1e9)])(()=>_0x4597ac[_0x221f9f(0x1ee)](_0x221f9f(0x20e),_0x458fb5)));})[_0x1cc0e5(0x215)]((0x0,a[_0x1cc0e5(0x212)])()),'error$':new a['Observable'](_0x46fc33=>{const _0xc537f7=_0x1cc0e5;let _0x265190=_0xf1af17=>_0x46fc33['next'](_0xf1af17);_0x4597ac[_0xc537f7(0x225)]('error',_0x265190),_0x313399['add']((0x0,r[_0xc537f7(0x1e9)])(()=>_0x4597ac['removeEventListener'](_0xc537f7(0x220),_0x265190)));})[_0x1cc0e5(0x215)]((0x0,a[_0x1cc0e5(0x212)])()),'message$':new a[(_0x1cc0e5(0x1dc))](_0x25a837=>{const _0x38f96d=_0x1cc0e5;let _0x8a86f5=_0x1a1cc0=>_0x25a837[_0x38f96d(0x214)](_0x1a1cc0);_0x4597ac['addEventListener']('message',_0x8a86f5),_0x313399[_0x38f96d(0x1e1)]((0x0,r[_0x38f96d(0x1e9)])(()=>_0x4597ac['removeEventListener'](_0x38f96d(0x204),_0x8a86f5)));})[_0x1cc0e5(0x215)]((0x0,a['share'])())};}catch(_0x226785){return console[_0x1cc0e5(0x220)](_0x226785),null;}}};function _0x31e1(_0x31e119,_0x507cbb){_0x31e119=_0x31e119-0x1db;const _0x10df6d=_0x10df();let _0x31e17f=_0x10df6d[_0x31e119];return _0x31e17f;}f=d([u(0x0,r['IConfigService'])],f);function p(_0x217eb6){'@babel/helpers - typeof';const _0x2f1efe=_0x1f11ae;return p=typeof Symbol==_0x2f1efe(0x223)&&typeof Symbol['iterator']==_0x2f1efe(0x1ec)?function(_0x2592ba){return typeof _0x2592ba;}:function(_0x345b7a){const _0x178401=_0x2f1efe;return _0x345b7a&&typeof Symbol==_0x178401(0x223)&&_0x345b7a[_0x178401(0x1f7)]===Symbol&&_0x345b7a!==Symbol[_0x178401(0x20f)]?_0x178401(0x1ec):typeof _0x345b7a;},p(_0x217eb6);}function m(_0x3e8705,_0x3a9fdf){const _0x3c73f9=_0x1f11ae;if(p(_0x3e8705)!=_0x3c73f9(0x1e6)||!_0x3e8705)return _0x3e8705;var _0x1217c9=_0x3e8705[Symbol[_0x3c73f9(0x1ea)]];if(_0x1217c9!==void 0x0){var _0x4b0446=_0x1217c9[_0x3c73f9(0x1e7)](_0x3e8705,_0x3a9fdf||_0x3c73f9(0x1e3));if(p(_0x4b0446)!=_0x3c73f9(0x1e6))return _0x4b0446;throw TypeError(_0x3c73f9(0x1dd));}return(_0x3a9fdf===_0x3c73f9(0x221)?String:Number)(_0x3e8705);}function h(_0x2a235f){const _0x35a5e1=_0x1f11ae;var _0x14b63f=m(_0x2a235f,'string');return p(_0x14b63f)==_0x35a5e1(0x1ec)?_0x14b63f:_0x14b63f+'';}function _0x10df(){const _0xb7afd2=['pluginName','setConfig','5999SqyyFp','error','string','Inject','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','addEventListener','getOwnPropertyDescriptor','HTTPService','Observable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','packageName','merge','ISnapshotServerService','add','NodeCollaborationSocketService','default','registerDependencies','140870kPLHBn','object','call','dispose','toDisposable','toPrimitive','IConfigService','symbol','headers','removeEventListener','collaboration-client-node.config','9GLJrBV','1.0.1','open','3fxkENe','Disposable','ILogService','_injector','constructor','UniverCollaborationPlugin','1648502tMtzkh','defineProperty','createSocket','8068270taOyuC','_configService','length','version','ISocketService','Plugin','Injector','6847600ftRVLq','message','WebSocket','CollaborationSocketService','UniverCollaborationClientPlugin','UniverLicensePlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','341195BubLfH','8iISHcU','1182illznY','13110251qrqfzj','close','prototype','_httpService','DisposableCollection','share','decorate','next','pipe','UniverCollaborationClientNodePlugin','toStringTag','set','UniverNetworkPlugin','_doCreateSocket','getConfig','_config'];_0x10df=function(){return _0xb7afd2;};return _0x10df();}function g(_0x4bf737,_0x4cdbbe,_0x4fb80d){return(_0x4cdbbe=h(_0x4cdbbe))in _0x4bf737?Object['defineProperty'](_0x4bf737,_0x4cdbbe,{'value':_0x4fb80d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bf737[_0x4cdbbe]=_0x4fb80d,_0x4bf737;}let _=class extends r[_0x1f11ae(0x201)]{constructor(_0x2e1fee=l,_0x1eb328,_0x48e5d1){const _0x10d0db=_0x1f11ae;super(),this['_config']=_0x2e1fee,this[_0x10d0db(0x1fd)]=_0x1eb328,this['_injector']=_0x48e5d1;let {..._0x253b16}=(0x0,r[_0x10d0db(0x1df)])({},l,this[_0x10d0db(0x21c)]);this[_0x10d0db(0x1fd)][_0x10d0db(0x21e)](_0x10d0db(0x1ef),_0x253b16);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0x4735a8=_0x1f11ae;(0x0,r[_0x4735a8(0x1e4)])(this[_0x4735a8(0x1f6)],[[i[_0x4735a8(0x200)],{'useClass':f}]]);}};g(_,_0x1f11ae(0x21d),_0x1f11ae(0x224)),g(_,_0x1f11ae(0x1de),s),g(_,_0x1f11ae(0x1ff),c),_=d([(0x0,r['DependentOn'])(n[_0x1f11ae(0x208)],i[_0x1f11ae(0x219)],e[_0x1f11ae(0x1f8)],t[_0x1f11ae(0x207)]),u(0x1,r[_0x1f11ae(0x1eb)]),u(0x2,(0x0,r[_0x1f11ae(0x222)])(r[_0x1f11ae(0x202)]))],_);let v=class extends t[_0x1f11ae(0x206)]{constructor(_0x35bae6,_0x28762c,_0x495407,_0x3985e5,_0x1b3c23){const _0x577ffe=_0x1f11ae;super(_0x35bae6,_0x28762c,_0x495407,_0x3985e5,_0x1b3c23);let _0x228d37=this['_configService'][_0x577ffe(0x21b)](t[_0x577ffe(0x209)]);this[_0x577ffe(0x210)]['registerHTTPInterceptor']({'interceptor':(_0xfcf3fb,_0x53dc69)=>{const _0x4cb765=_0x577ffe;let _0x158657=_0xfcf3fb[_0x4cb765(0x1ed)];if(_0x228d37!=null&&_0x228d37['customHeaders']){for(let _0x1b63e2 in _0x228d37['customHeaders'])_0x158657[_0x4cb765(0x218)](_0x1b63e2,_0x228d37['customHeaders'][_0x1b63e2]);}return _0x53dc69(_0xfcf3fb);}});}async[_0x1f11ae(0x1fb)](_0x186c9f){const _0x3f0560=_0x1f11ae;return this[_0x3f0560(0x21a)](_0x186c9f);}};v=d([u(0x0,(0x0,r[_0x1f11ae(0x222)])(r['Injector'])),u(0x1,(0x0,r[_0x1f11ae(0x222)])(i[_0x1f11ae(0x1db)])),u(0x2,r[_0x1f11ae(0x1eb)]),u(0x3,r[_0x1f11ae(0x1f5)]),u(0x4,e[_0x1f11ae(0x1e0)])],v),Object[_0x1f11ae(0x1fa)](exports,_0x1f11ae(0x1e2),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x1f11ae(0x1fa)](exports,_0x1f11ae(0x216),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x21f943=_0x3baf;(function(_0x5be20f,_0x5c71fb){const _0x4a6136=_0x3baf,_0x3254e9=_0x5be20f();while(!![]){try{const _0x1e206f=parseInt(_0x4a6136(0x169))/0x1*(-parseInt(_0x4a6136(0x170))/0x2)+-parseInt(_0x4a6136(0x160))/0x3+parseInt(_0x4a6136(0x14c))/0x4+-parseInt(_0x4a6136(0x131))/0x5*(parseInt(_0x4a6136(0x145))/0x6)+-parseInt(_0x4a6136(0x12e))/0x7+-parseInt(_0x4a6136(0x158))/0x8*(parseInt(_0x4a6136(0x136))/0x9)+parseInt(_0x4a6136(0x14f))/0xa;if(_0x1e206f===_0x5c71fb)break;else _0x3254e9['push'](_0x3254e9['shift']());}catch(_0x3763e2){_0x3254e9['push'](_0x3254e9['shift']());}}}(_0x2233,0xa714f),Object[_0x21f943(0x133)](exports,Symbol[_0x21f943(0x15e)],{'value':_0x21f943(0x14e)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s=_0x21f943(0x14a),c='1.0.2';const l={};function u(_0x24a1c6,_0x51d1a9){return function(_0xa25440,_0x3ff4f0){_0x51d1a9(_0xa25440,_0x3ff4f0,_0x24a1c6);};}function d(_0xb49f7d,_0x45e2ad,_0xc87078,_0x4e548c){const _0x168be5=_0x21f943;var _0x2bfc91=arguments['length'],_0x5e4e5f=_0x2bfc91<0x3?_0x45e2ad:_0x4e548c===null?_0x4e548c=Object['getOwnPropertyDescriptor'](_0x45e2ad,_0xc87078):_0x4e548c,_0x5627f2;if(typeof Reflect==_0x168be5(0x155)&&typeof Reflect[_0x168be5(0x13b)]==_0x168be5(0x156))_0x5e4e5f=Reflect['decorate'](_0xb49f7d,_0x45e2ad,_0xc87078,_0x4e548c);else{for(var _0x1c8f7b=_0xb49f7d[_0x168be5(0x148)]-0x1;_0x1c8f7b>=0x0;_0x1c8f7b--)(_0x5627f2=_0xb49f7d[_0x1c8f7b])&&(_0x5e4e5f=(_0x2bfc91<0x3?_0x5627f2(_0x5e4e5f):_0x2bfc91>0x3?_0x5627f2(_0x45e2ad,_0xc87078,_0x5e4e5f):_0x5627f2(_0x45e2ad,_0xc87078))||_0x5e4e5f);}return _0x2bfc91>0x3&&_0x5e4e5f&&Object[_0x168be5(0x133)](_0x45e2ad,_0xc87078,_0x5e4e5f),_0x5e4e5f;}let f=class extends r[_0x21f943(0x134)]{constructor(_0x47da69){const _0x23a412=_0x21f943;super(),this[_0x23a412(0x165)]=_0x47da69;}[_0x21f943(0x137)](_0x4d4a3c){const _0x15c54a=_0x21f943;var _0x5e51c8;let _0x12bce5=((_0x5e51c8=this['_configService']['getConfig'](t[_0x15c54a(0x139)]))==null?void 0x0:_0x5e51c8[_0x15c54a(0x130)])||{};try{let _0x35ca00=new o[(_0x15c54a(0x149))](_0x4d4a3c,{'headers':{..._0x12bce5}}),_0x4a946f=new r[(_0x15c54a(0x140))]();return{'URL':_0x4d4a3c,'close':(_0x589e7f,_0x549c0e)=>{const _0x2c39f6=_0x15c54a;_0x35ca00[_0x2c39f6(0x12f)](_0x589e7f,_0x549c0e),_0x4a946f[_0x2c39f6(0x135)]();},'send':_0x4c31dd=>{_0x35ca00['send'](_0x4c31dd);},'open$':new a['Observable'](_0x12953f=>{const _0x1776da=_0x15c54a;let _0x1b44de=_0x45399f=>_0x12953f['next'](_0x45399f);_0x35ca00[_0x1776da(0x166)]('open',_0x1b44de),_0x4a946f[_0x1776da(0x151)]((0x0,r['toDisposable'])(()=>_0x35ca00[_0x1776da(0x16a)](_0x1776da(0x14b),_0x1b44de)));})['pipe']((0x0,a[_0x15c54a(0x142)])()),'close$':new a['Observable'](_0x516204=>{const _0x414177=_0x15c54a;let _0x102f9a=_0xd67fb8=>_0x516204[_0x414177(0x16e)](_0xd67fb8);_0x35ca00[_0x414177(0x166)](_0x414177(0x12f),_0x102f9a),_0x4a946f[_0x414177(0x151)]((0x0,r[_0x414177(0x152)])(()=>_0x35ca00[_0x414177(0x16a)]('close',_0x102f9a)));})[_0x15c54a(0x13f)]((0x0,a['share'])()),'error$':new a[(_0x15c54a(0x167))](_0x4bd8ac=>{const _0x495edb=_0x15c54a;let _0x3b08ae=_0x1a426d=>_0x4bd8ac['next'](_0x1a426d);_0x35ca00[_0x495edb(0x166)](_0x495edb(0x13e),_0x3b08ae),_0x4a946f[_0x495edb(0x151)]((0x0,r[_0x495edb(0x152)])(()=>_0x35ca00['removeEventListener']('error',_0x3b08ae)));})[_0x15c54a(0x13f)]((0x0,a[_0x15c54a(0x142)])()),'message$':new a[(_0x15c54a(0x167))](_0x2f44cb=>{const _0x57b623=_0x15c54a;let _0x1623f0=_0x7389e7=>_0x2f44cb[_0x57b623(0x16e)](_0x7389e7);_0x35ca00[_0x57b623(0x166)]('message',_0x1623f0),_0x4a946f[_0x57b623(0x151)]((0x0,r[_0x57b623(0x152)])(()=>_0x35ca00[_0x57b623(0x16a)](_0x57b623(0x164),_0x1623f0)));})['pipe']((0x0,a['share'])())};}catch(_0x4f6a25){return console[_0x15c54a(0x13e)](_0x4f6a25),null;}}};f=d([u(0x0,r[_0x21f943(0x14d)])],f);function p(_0x51767c){'@babel/helpers - typeof';const _0x477e79=_0x21f943;return p=typeof Symbol==_0x477e79(0x156)&&typeof Symbol[_0x477e79(0x168)]=='symbol'?function(_0x2fd087){return typeof _0x2fd087;}:function(_0xfbc9cd){const _0x43447e=_0x477e79;return _0xfbc9cd&&typeof Symbol==_0x43447e(0x156)&&_0xfbc9cd[_0x43447e(0x16b)]===Symbol&&_0xfbc9cd!==Symbol[_0x43447e(0x157)]?_0x43447e(0x153):typeof _0xfbc9cd;},p(_0x51767c);}function m(_0x12e141,_0x59e1ec){const _0x4897cf=_0x21f943;if(p(_0x12e141)!='object'||!_0x12e141)return _0x12e141;var _0x1674d7=_0x12e141[Symbol[_0x4897cf(0x15f)]];if(_0x1674d7!==void 0x0){var _0x4da1e6=_0x1674d7['call'](_0x12e141,_0x59e1ec||_0x4897cf(0x13c));if(p(_0x4da1e6)!=_0x4897cf(0x155))return _0x4da1e6;throw TypeError(_0x4897cf(0x16f));}return(_0x59e1ec==='string'?String:Number)(_0x12e141);}function h(_0x20a210){const _0x4f8dae=_0x21f943;var _0xbe9afa=m(_0x20a210,_0x4f8dae(0x147));return p(_0xbe9afa)==_0x4f8dae(0x153)?_0xbe9afa:_0xbe9afa+'';}function g(_0x1d15fc,_0x47d364,_0x4845c0){return(_0x47d364=h(_0x47d364))in _0x1d15fc?Object['defineProperty'](_0x1d15fc,_0x47d364,{'value':_0x4845c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d15fc[_0x47d364]=_0x4845c0,_0x1d15fc;}function _0x2233(){const _0x26647f=['version','message','_configService','addEventListener','Observable','iterator','1JKARKe','removeEventListener','constructor','Plugin','headers','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1068478hfWWyk','merge','packageName','Inject','72982gINJUE','close','customHeaders','60MBuceK','pluginName','defineProperty','Disposable','dispose','5090427HzTPuL','createSocket','_registerDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','decorate','default','UniverNetworkPlugin','error','pipe','DisposableCollection','NodeCollaborationSocketService','share','UniverCollaborationClientNodePlugin','getConfig','324426OMyEKf','HTTPService','string','length','WebSocket','@univerjs-pro/collaboration-client-node','open','3246312qTjojs','IConfigService','Module','24924180BSTcih','_config','add','toDisposable','symbol','UniverCollaborationClientPlugin','object','function','prototype','8WifKLs','set','_injector','ISnapshotServerService','setConfig','onStarting','toStringTag','toPrimitive','2581527ucLglB','_doCreateSocket','ILogService'];_0x2233=function(){return _0x26647f;};return _0x2233();}let _=class extends r[_0x21f943(0x16c)]{constructor(_0x54172c=l,_0x49f54b,_0x12eef2){const _0x1878a1=_0x21f943;super(),this[_0x1878a1(0x150)]=_0x54172c,this[_0x1878a1(0x165)]=_0x49f54b,this[_0x1878a1(0x15a)]=_0x12eef2;let {..._0x12a961}=(0x0,r[_0x1878a1(0x171)])({},l,this[_0x1878a1(0x150)]);this[_0x1878a1(0x165)][_0x1878a1(0x15c)]('collaboration-client-node.config',_0x12a961);}[_0x21f943(0x15d)](){const _0x1a0dba=_0x21f943;this[_0x1a0dba(0x138)]();}['_registerDependencies'](){(0x0,r['registerDependencies'])(this['_injector'],[[i['ISocketService'],{'useClass':f}]]);}};function _0x3baf(_0x35e73d,_0x5e8bb4){_0x35e73d=_0x35e73d-0x12e;const _0x223392=_0x2233();let _0x3bafe8=_0x223392[_0x35e73d];return _0x3bafe8;}g(_,_0x21f943(0x132),_0x21f943(0x13a)),g(_,_0x21f943(0x172),s),g(_,_0x21f943(0x163),c),_=d([(0x0,r['DependentOn'])(n['UniverLicensePlugin'],i[_0x21f943(0x13d)],e['UniverCollaborationPlugin'],t[_0x21f943(0x154)]),u(0x1,r[_0x21f943(0x14d)]),u(0x2,(0x0,r[_0x21f943(0x173)])(r['Injector']))],_);let v=class extends t['CollaborationSocketService']{constructor(_0x271ecf,_0x571974,_0x9ce44,_0x318197,_0x137198){const _0x8a04ce=_0x21f943;super(_0x271ecf,_0x571974,_0x9ce44,_0x318197,_0x137198);let _0x6664e5=this['_configService'][_0x8a04ce(0x144)](t[_0x8a04ce(0x139)]);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0xc19426,_0xfaf713)=>{const _0x54c299=_0x8a04ce;let _0x318be8=_0xc19426[_0x54c299(0x16d)];if(_0x6664e5!=null&&_0x6664e5[_0x54c299(0x130)]){for(let _0x23a96d in _0x6664e5[_0x54c299(0x130)])_0x318be8[_0x54c299(0x159)](_0x23a96d,_0x6664e5['customHeaders'][_0x23a96d]);}return _0xfaf713(_0xc19426);}});}async['createSocket'](_0x1f13bd){const _0x607c43=_0x21f943;return this[_0x607c43(0x161)](_0x1f13bd);}};v=d([u(0x0,(0x0,r[_0x21f943(0x173)])(r['Injector'])),u(0x1,(0x0,r[_0x21f943(0x173)])(i[_0x21f943(0x146)])),u(0x2,r['IConfigService']),u(0x3,r[_0x21f943(0x162)]),u(0x4,e[_0x21f943(0x15b)])],v),Object['defineProperty'](exports,_0x21f943(0x141),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x21f943(0x133)](exports,_0x21f943(0x143),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x26056b=_0x4bf1;(function(_0x4d96a5,_0x4774df){const _0x5694e8=_0x4bf1,_0x164cdf=_0x4d96a5();while(!![]){try{const _0x4f0d87=parseInt(_0x5694e8(0xe7))/0x1*(-parseInt(_0x5694e8(0x105))/0x2)+-parseInt(_0x5694e8(0xe3))/0x3+-parseInt(_0x5694e8(0xf5))/0x4+parseInt(_0x5694e8(0x104))/0x5*(parseInt(_0x5694e8(0xf3))/0x6)+parseInt(_0x5694e8(0xf9))/0x7+-parseInt(_0x5694e8(0x10e))/0x8*(parseInt(_0x5694e8(0x103))/0x9)+parseInt(_0x5694e8(0x116))/0xa;if(_0x4f0d87===_0x4774df)break;else _0x164cdf['push'](_0x164cdf['shift']());}catch(_0x25c44f){_0x164cdf['push'](_0x164cdf['shift']());}}}(_0x3ff0,0x97a28));import{ISnapshotServerService as _0x20df64,UniverCollaborationPlugin as _0xdd7bdc}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x41643a,CollaborationSocketService as _0x2d2aaa,UniverCollaborationClientPlugin as _0x5037e1}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2f9883}from'@univerjs-pro/license';import{DependentOn as _0x51dcbe,Disposable as _0x5bc677,DisposableCollection as _0x4b3bbf,IConfigService as _0x4bbeeb,ILogService as _0x20f274,Inject as _0x47ae56,Injector as _0x334da3,Plugin as _0x2cb4d6,merge as _0x4bf80d,registerDependencies as _0x1b1b9e,toDisposable as _0x56cf8b}from'@univerjs/core';function _0x4bf1(_0x3ca98d,_0x2e75c6){_0x3ca98d=_0x3ca98d-0xe2;const _0x3ff01d=_0x3ff0();let _0x4bf1da=_0x3ff01d[_0x3ca98d];return _0x4bf1da;}import{HTTPService as _0x47f636,ISocketService as _0x1b47cb,UniverNetworkPlugin as _0xbcf9e9}from'@univerjs/network';import{Observable as _0x18856d,share as _0x1e6217}from'rxjs';import{WebSocket as _0x2da334}from'ws';var C=_0x26056b(0x10f),w=_0x26056b(0xef);const T={};function E(_0x26fd43,_0x858797){return function(_0x10e183,_0x2ed891){_0x858797(_0x10e183,_0x2ed891,_0x26fd43);};}function D(_0x288a90,_0x561e39,_0x2290e3,_0x3713a7){const _0x5cde53=_0x26056b;var _0x157974=arguments['length'],_0x35a45a=_0x157974<0x3?_0x561e39:_0x3713a7===null?_0x3713a7=Object[_0x5cde53(0xf2)](_0x561e39,_0x2290e3):_0x3713a7,_0x4b2c1f;if(typeof Reflect==_0x5cde53(0xf8)&&typeof Reflect[_0x5cde53(0x106)]==_0x5cde53(0x112))_0x35a45a=Reflect[_0x5cde53(0x106)](_0x288a90,_0x561e39,_0x2290e3,_0x3713a7);else{for(var _0x18e1ca=_0x288a90[_0x5cde53(0x108)]-0x1;_0x18e1ca>=0x0;_0x18e1ca--)(_0x4b2c1f=_0x288a90[_0x18e1ca])&&(_0x35a45a=(_0x157974<0x3?_0x4b2c1f(_0x35a45a):_0x157974>0x3?_0x4b2c1f(_0x561e39,_0x2290e3,_0x35a45a):_0x4b2c1f(_0x561e39,_0x2290e3))||_0x35a45a);}return _0x157974>0x3&&_0x35a45a&&Object[_0x5cde53(0xf4)](_0x561e39,_0x2290e3,_0x35a45a),_0x35a45a;}let O=class extends _0x5bc677{constructor(_0x4415fb){const _0x4b10ec=_0x26056b;super(),this[_0x4b10ec(0xff)]=_0x4415fb;}[_0x26056b(0x109)](_0x3b5c29){const _0x5990fe=_0x26056b;var _0x1180dc;let _0x4f7d57=((_0x1180dc=this[_0x5990fe(0xff)][_0x5990fe(0xe9)](_0x41643a))==null?void 0x0:_0x1180dc[_0x5990fe(0x10b)])||{};try{let _0x3f2f32=new _0x2da334(_0x3b5c29,{'headers':{..._0x4f7d57}}),_0x502bb7=new _0x4b3bbf();return{'URL':_0x3b5c29,'close':(_0x17b0b7,_0x58fc98)=>{const _0x344e24=_0x5990fe;_0x3f2f32[_0x344e24(0x110)](_0x17b0b7,_0x58fc98),_0x502bb7[_0x344e24(0xea)]();},'send':_0x451349=>{_0x3f2f32['send'](_0x451349);},'open$':new _0x18856d(_0x921071=>{const _0x30d7fe=_0x5990fe;let _0x5687f5=_0x30106b=>_0x921071[_0x30d7fe(0x111)](_0x30106b);_0x3f2f32['addEventListener'](_0x30d7fe(0xfb),_0x5687f5),_0x502bb7[_0x30d7fe(0xe2)](_0x56cf8b(()=>_0x3f2f32[_0x30d7fe(0x114)](_0x30d7fe(0xfb),_0x5687f5)));})[_0x5990fe(0x102)](_0x1e6217()),'close$':new _0x18856d(_0x44ea02=>{const _0x4c3191=_0x5990fe;let _0x511af7=_0x590286=>_0x44ea02[_0x4c3191(0x111)](_0x590286);_0x3f2f32[_0x4c3191(0x10d)](_0x4c3191(0x110),_0x511af7),_0x502bb7[_0x4c3191(0xe2)](_0x56cf8b(()=>_0x3f2f32['removeEventListener'](_0x4c3191(0x110),_0x511af7)));})[_0x5990fe(0x102)](_0x1e6217()),'error$':new _0x18856d(_0x196375=>{const _0x4df8a7=_0x5990fe;let _0x40c4a2=_0x22d218=>_0x196375[_0x4df8a7(0x111)](_0x22d218);_0x3f2f32[_0x4df8a7(0x10d)]('error',_0x40c4a2),_0x502bb7['add'](_0x56cf8b(()=>_0x3f2f32[_0x4df8a7(0x114)](_0x4df8a7(0x10a),_0x40c4a2)));})['pipe'](_0x1e6217()),'message$':new _0x18856d(_0x112f9a=>{const _0x1e891e=_0x5990fe;let _0x2ca950=_0x5bfd1e=>_0x112f9a['next'](_0x5bfd1e);_0x3f2f32[_0x1e891e(0x10d)](_0x1e891e(0xed),_0x2ca950),_0x502bb7[_0x1e891e(0xe2)](_0x56cf8b(()=>_0x3f2f32[_0x1e891e(0x114)](_0x1e891e(0xed),_0x2ca950)));})[_0x5990fe(0x102)](_0x1e6217())};}catch(_0x26381f){return console[_0x5990fe(0x10a)](_0x26381f),null;}}};function _0x3ff0(){const _0x398f18=['registerHTTPInterceptor','_config','object','8478323iqUaEk','version','open','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','set','string','_configService','packageName','_httpService','pipe','18MyBXhz','877805IursMI','853266dLluHH','decorate','headers','length','createSocket','error','customHeaders','toPrimitive','addEventListener','4055456JrvDxa','@univerjs-pro/collaboration-client-node','close','next','function','collaboration-client-node.config','removeEventListener','symbol','11841880vImuel','add','2640231yEhkFi','_registerDependencies','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1LlenlB','constructor','getConfig','dispose','onStarting','prototype','message','setConfig','1.0.1','pluginName','call','getOwnPropertyDescriptor','24uBFFKm','defineProperty','623804bgzhZc'];_0x3ff0=function(){return _0x398f18;};return _0x3ff0();}O=D([E(0x0,_0x4bbeeb)],O);function k(_0x1a960f){'@babel/helpers - typeof';const _0x32c61c=_0x26056b;return k=typeof Symbol==_0x32c61c(0x112)&&typeof Symbol['iterator']==_0x32c61c(0x115)?function(_0x6a9ab2){return typeof _0x6a9ab2;}:function(_0x15b846){const _0x7a72a2=_0x32c61c;return _0x15b846&&typeof Symbol=='function'&&_0x15b846[_0x7a72a2(0xe8)]===Symbol&&_0x15b846!==Symbol[_0x7a72a2(0xec)]?_0x7a72a2(0x115):typeof _0x15b846;},k(_0x1a960f);}function A(_0x506547,_0x4a6898){const _0x433bc3=_0x26056b;if(k(_0x506547)!=_0x433bc3(0xf8)||!_0x506547)return _0x506547;var _0x5236f3=_0x506547[Symbol[_0x433bc3(0x10c)]];if(_0x5236f3!==void 0x0){var _0x4e5512=_0x5236f3[_0x433bc3(0xf1)](_0x506547,_0x4a6898||_0x433bc3(0xe5));if(k(_0x4e5512)!=_0x433bc3(0xf8))return _0x4e5512;throw TypeError(_0x433bc3(0xe6));}return(_0x4a6898===_0x433bc3(0xfe)?String:Number)(_0x506547);}function j(_0x524bff){const _0x163722=_0x26056b;var _0x518339=A(_0x524bff,_0x163722(0xfe));return k(_0x518339)=='symbol'?_0x518339:_0x518339+'';}function M(_0x374ebf,_0x2b18f0,_0x86a5b1){return(_0x2b18f0=j(_0x2b18f0))in _0x374ebf?Object['defineProperty'](_0x374ebf,_0x2b18f0,{'value':_0x86a5b1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x374ebf[_0x2b18f0]=_0x86a5b1,_0x374ebf;}let N=class extends _0x2cb4d6{constructor(_0x414ed4=T,_0x1f5195,_0x5375a5){const _0x427e6=_0x26056b;super(),this[_0x427e6(0xf7)]=_0x414ed4,this['_configService']=_0x1f5195,this['_injector']=_0x5375a5;let {..._0x34f2e0}=_0x4bf80d({},T,this[_0x427e6(0xf7)]);this[_0x427e6(0xff)][_0x427e6(0xee)](_0x427e6(0x113),_0x34f2e0);}[_0x26056b(0xeb)](){const _0x3d4d63=_0x26056b;this[_0x3d4d63(0xe4)]();}[_0x26056b(0xe4)](){_0x1b1b9e(this['_injector'],[[_0x1b47cb,{'useClass':O}]]);}};M(N,_0x26056b(0xf0),_0x26056b(0xfc)),M(N,_0x26056b(0x100),C),M(N,_0x26056b(0xfa),w),N=D([_0x51dcbe(_0x2f9883,_0xbcf9e9,_0xdd7bdc,_0x5037e1),E(0x1,_0x4bbeeb),E(0x2,_0x47ae56(_0x334da3))],N);let P=class extends _0x2d2aaa{constructor(_0x3c0c0d,_0x2f7399,_0x2f747d,_0x1f2c3a,_0x276bda){const _0x317257=_0x26056b;super(_0x3c0c0d,_0x2f7399,_0x2f747d,_0x1f2c3a,_0x276bda);let _0x23b93c=this[_0x317257(0xff)]['getConfig'](_0x41643a);this[_0x317257(0x101)][_0x317257(0xf6)]({'interceptor':(_0xd1d4d1,_0x5b2619)=>{const _0x3da4ec=_0x317257;let _0x543210=_0xd1d4d1[_0x3da4ec(0x107)];if(_0x23b93c!=null&&_0x23b93c[_0x3da4ec(0x10b)]){for(let _0x518d6b in _0x23b93c[_0x3da4ec(0x10b)])_0x543210[_0x3da4ec(0xfd)](_0x518d6b,_0x23b93c[_0x3da4ec(0x10b)][_0x518d6b]);}return _0x5b2619(_0xd1d4d1);}});}async[_0x26056b(0x109)](_0x3acaf1){return this['_doCreateSocket'](_0x3acaf1);}};P=D([E(0x0,_0x47ae56(_0x334da3)),E(0x1,_0x47ae56(_0x47f636)),E(0x2,_0x4bbeeb),E(0x3,_0x20f274),E(0x4,_0x20df64)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0xfad198=_0xd045;(function(_0x34a991,_0x46d0d0){const _0x304f2f=_0xd045,_0x36c11e=_0x34a991();while(!![]){try{const _0x5c9406=parseInt(_0x304f2f(0x16a))/0x1+parseInt(_0x304f2f(0x14c))/0x2+parseInt(_0x304f2f(0x15d))/0x3+parseInt(_0x304f2f(0x167))/0x4+-parseInt(_0x304f2f(0x15e))/0x5*(-parseInt(_0x304f2f(0x14d))/0x6)+parseInt(_0x304f2f(0x150))/0x7+parseInt(_0x304f2f(0x151))/0x8*(-parseInt(_0x304f2f(0x164))/0x9);if(_0x5c9406===_0x46d0d0)break;else _0x36c11e['push'](_0x36c11e['shift']());}catch(_0x42e37a){_0x36c11e['push'](_0x36c11e['shift']());}}}(_0x1634,0x59829));import{ISnapshotServerService as _0x2baad9,UniverCollaborationPlugin as _0x24cf9f}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x482dfd,CollaborationSocketService as _0x219388,UniverCollaborationClientPlugin as _0x411ea4}from'@univerjs-pro/collaboration-client';function _0x1634(){const _0x4147d6=['close','pipe','removeEventListener','length','customHeaders','open','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','getOwnPropertyDescriptor','_injector','1919943wvGkMS','2170VfkgGp','createSocket','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','_configService','10732833zFoqev','constructor','object','2616312NpjiSB','_doCreateSocket','packageName','512275viFyxH','_registerDependencies','dispose','iterator','toPrimitive','_config','symbol','defineProperty','message','addEventListener','decorate','1121940ZcxwOJ','2970OWOTCf','error','string','1187011qKxWrV','16Thqoqw'];_0x1634=function(){return _0x4147d6;};return _0x1634();}import{UniverLicensePlugin as _0x4bd8eb}from'@univerjs-pro/license';import{DependentOn as _0x216067,Disposable as _0x128357,DisposableCollection as _0x5175d2,IConfigService as _0x306740,ILogService as _0x9cd830,Inject as _0x2506a5,Injector as _0x18b828,Plugin as _0xd6760d,merge as _0x517c45,registerDependencies as _0x550118,toDisposable as _0x1f6998}from'@univerjs/core';import{HTTPService as _0x10e6d2,ISocketService as _0x546886,UniverNetworkPlugin as _0xb71c24}from'@univerjs/network';import{Observable as _0x424874,share as _0xfb593d}from'rxjs';import{WebSocket as _0x4b4fc7}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.2';const T={};function _0xd045(_0x159435,_0x413c6e){_0x159435=_0x159435-0x149;const _0x163481=_0x1634();let _0xd045c6=_0x163481[_0x159435];return _0xd045c6;}function E(_0x2bb152,_0x485ff5){return function(_0x15b5ef,_0x590302){_0x485ff5(_0x15b5ef,_0x590302,_0x2bb152);};}function D(_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d){const _0x132b70=_0xd045;var _0x4034f1=arguments[_0x132b70(0x155)],_0x18b934=_0x4034f1<0x3?_0x1fc6f2:_0x4bcd9d===null?_0x4bcd9d=Object[_0x132b70(0x15b)](_0x1fc6f2,_0x440e2f):_0x4bcd9d,_0x52903e;if(typeof Reflect==_0x132b70(0x166)&&typeof Reflect['decorate']==_0x132b70(0x158))_0x18b934=Reflect[_0x132b70(0x14b)](_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d);else{for(var _0x5b94a0=_0x538ed2['length']-0x1;_0x5b94a0>=0x0;_0x5b94a0--)(_0x52903e=_0x538ed2[_0x5b94a0])&&(_0x18b934=(_0x4034f1<0x3?_0x52903e(_0x18b934):_0x4034f1>0x3?_0x52903e(_0x1fc6f2,_0x440e2f,_0x18b934):_0x52903e(_0x1fc6f2,_0x440e2f))||_0x18b934);}return _0x4034f1>0x3&&_0x18b934&&Object[_0x132b70(0x171)](_0x1fc6f2,_0x440e2f,_0x18b934),_0x18b934;}let O=class extends _0x128357{constructor(_0x4c4942){const _0x240b84=_0xd045;super(),this[_0x240b84(0x163)]=_0x4c4942;}[_0xfad198(0x15f)](_0x32284e){const _0xda97ba=_0xfad198;var _0x4d4117;let _0x3a60ba=((_0x4d4117=this['_configService']['getConfig'](_0x482dfd))==null?void 0x0:_0x4d4117[_0xda97ba(0x156)])||{};try{let _0x5ac80c=new _0x4b4fc7(_0x32284e,{'headers':{..._0x3a60ba}}),_0x3c7d31=new _0x5175d2();return{'URL':_0x32284e,'close':(_0x403458,_0x47b97d)=>{const _0x7a7de1=_0xda97ba;_0x5ac80c[_0x7a7de1(0x152)](_0x403458,_0x47b97d),_0x3c7d31[_0x7a7de1(0x16c)]();},'send':_0x38b4c4=>{_0x5ac80c['send'](_0x38b4c4);},'open$':new _0x424874(_0x41e4cd=>{const _0x5ecea3=_0xda97ba;let _0x4d3864=_0x30858f=>_0x41e4cd['next'](_0x30858f);_0x5ac80c[_0x5ecea3(0x14a)](_0x5ecea3(0x157),_0x4d3864),_0x3c7d31[_0x5ecea3(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5ecea3(0x154)](_0x5ecea3(0x157),_0x4d3864)));})[_0xda97ba(0x153)](_0xfb593d()),'close$':new _0x424874(_0x2c3684=>{const _0x1306ea=_0xda97ba;let _0xf0ee44=_0x4ffd38=>_0x2c3684[_0x1306ea(0x160)](_0x4ffd38);_0x5ac80c[_0x1306ea(0x14a)](_0x1306ea(0x152),_0xf0ee44),_0x3c7d31[_0x1306ea(0x15a)](_0x1f6998(()=>_0x5ac80c['removeEventListener'](_0x1306ea(0x152),_0xf0ee44)));})[_0xda97ba(0x153)](_0xfb593d()),'error$':new _0x424874(_0x41622f=>{const _0x53fc12=_0xda97ba;let _0x153aaf=_0x179b74=>_0x41622f[_0x53fc12(0x160)](_0x179b74);_0x5ac80c['addEventListener'](_0x53fc12(0x14e),_0x153aaf),_0x3c7d31[_0x53fc12(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x53fc12(0x154)]('error',_0x153aaf)));})[_0xda97ba(0x153)](_0xfb593d()),'message$':new _0x424874(_0x14e405=>{const _0x5e717a=_0xda97ba;let _0x4e9eaf=_0x41e3bf=>_0x14e405[_0x5e717a(0x160)](_0x41e3bf);_0x5ac80c[_0x5e717a(0x14a)](_0x5e717a(0x149),_0x4e9eaf),_0x3c7d31[_0x5e717a(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5e717a(0x154)](_0x5e717a(0x149),_0x4e9eaf)));})[_0xda97ba(0x153)](_0xfb593d())};}catch(_0x3ddf67){return console[_0xda97ba(0x14e)](_0x3ddf67),null;}}};O=D([E(0x0,_0x306740)],O);function k(_0x5b526d){'@babel/helpers - typeof';const _0x174283=_0xfad198;return k=typeof Symbol==_0x174283(0x158)&&typeof Symbol[_0x174283(0x16d)]==_0x174283(0x170)?function(_0x2067f5){return typeof _0x2067f5;}:function(_0x231b23){const _0x2241b6=_0x174283;return _0x231b23&&typeof Symbol==_0x2241b6(0x158)&&_0x231b23[_0x2241b6(0x165)]===Symbol&&_0x231b23!==Symbol['prototype']?_0x2241b6(0x170):typeof _0x231b23;},k(_0x5b526d);}function A(_0x420680,_0x4c3706){const _0x1e2eff=_0xfad198;if(k(_0x420680)!=_0x1e2eff(0x166)||!_0x420680)return _0x420680;var _0x5ef63a=_0x420680[Symbol[_0x1e2eff(0x16e)]];if(_0x5ef63a!==void 0x0){var _0x3aea78=_0x5ef63a['call'](_0x420680,_0x4c3706||'default');if(k(_0x3aea78)!=_0x1e2eff(0x166))return _0x3aea78;throw TypeError(_0x1e2eff(0x161));}return(_0x4c3706===_0x1e2eff(0x14f)?String:Number)(_0x420680);}function j(_0x14d832){const _0x32d49a=_0xfad198;var _0x209345=A(_0x14d832,'string');return k(_0x209345)==_0x32d49a(0x170)?_0x209345:_0x209345+'';}function M(_0x593076,_0x2f9a3d,_0x366b7a){const _0x2e8ab1=_0xfad198;return(_0x2f9a3d=j(_0x2f9a3d))in _0x593076?Object[_0x2e8ab1(0x171)](_0x593076,_0x2f9a3d,{'value':_0x366b7a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x593076[_0x2f9a3d]=_0x366b7a,_0x593076;}let N=class extends _0xd6760d{constructor(_0x12e74d=T,_0x335765,_0xeccbae){const _0x1907fb=_0xfad198;super(),this['_config']=_0x12e74d,this[_0x1907fb(0x163)]=_0x335765,this[_0x1907fb(0x15c)]=_0xeccbae;let {..._0x52e976}=_0x517c45({},T,this[_0x1907fb(0x16f)]);this[_0x1907fb(0x163)]['setConfig']('collaboration-client-node.config',_0x52e976);}['onStarting'](){const _0x4e05f1=_0xfad198;this[_0x4e05f1(0x16b)]();}[_0xfad198(0x16b)](){const _0x445ac1=_0xfad198;_0x550118(this[_0x445ac1(0x15c)],[[_0x546886,{'useClass':O}]]);}};M(N,_0xfad198(0x162),_0xfad198(0x159)),M(N,_0xfad198(0x169),C),M(N,'version',w),N=D([_0x216067(_0x4bd8eb,_0xb71c24,_0x24cf9f,_0x411ea4),E(0x1,_0x306740),E(0x2,_0x2506a5(_0x18b828))],N);let P=class extends _0x219388{constructor(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8){const _0x6dbaf1=_0xfad198;super(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8);let _0x1db92c=this[_0x6dbaf1(0x163)]['getConfig'](_0x482dfd);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1eb59d,_0x4ed5bd)=>{const _0x3160f2=_0x6dbaf1;let _0x276679=_0x1eb59d['headers'];if(_0x1db92c!=null&&_0x1db92c[_0x3160f2(0x156)]){for(let _0x2f066e in _0x1db92c[_0x3160f2(0x156)])_0x276679['set'](_0x2f066e,_0x1db92c[_0x3160f2(0x156)][_0x2f066e]);}return _0x4ed5bd(_0x1eb59d);}});}async[_0xfad198(0x15f)](_0x6fc791){const _0x4f6c51=_0xfad198;return this[_0x4f6c51(0x168)](_0x6fc791);}};P=D([E(0x0,_0x2506a5(_0x18b828)),E(0x1,_0x2506a5(_0x10e6d2)),E(0x2,_0x306740),E(0x3,_0x9cd830),E(0x4,_0x2baad9)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x26056b=_0x4bf1;(function(_0x4d96a5,_0x4774df){const _0x5694e8=_0x4bf1,_0x164cdf=_0x4d96a5();while(!![]){try{const _0x4f0d87=parseInt(_0x5694e8(0xe7))/0x1*(-parseInt(_0x5694e8(0x105))/0x2)+-parseInt(_0x5694e8(0xe3))/0x3+-parseInt(_0x5694e8(0xf5))/0x4+parseInt(_0x5694e8(0x104))/0x5*(parseInt(_0x5694e8(0xf3))/0x6)+parseInt(_0x5694e8(0xf9))/0x7+-parseInt(_0x5694e8(0x10e))/0x8*(parseInt(_0x5694e8(0x103))/0x9)+parseInt(_0x5694e8(0x116))/0xa;if(_0x4f0d87===_0x4774df)break;else _0x164cdf['push'](_0x164cdf['shift']());}catch(_0x25c44f){_0x164cdf['push'](_0x164cdf['shift']());}}}(_0x3ff0,0x97a28));import{ISnapshotServerService as _0x20df64,UniverCollaborationPlugin as _0xdd7bdc}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x41643a,CollaborationSocketService as _0x2d2aaa,UniverCollaborationClientPlugin as _0x5037e1}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2f9883}from'@univerjs-pro/license';import{DependentOn as _0x51dcbe,Disposable as _0x5bc677,DisposableCollection as _0x4b3bbf,IConfigService as _0x4bbeeb,ILogService as _0x20f274,Inject as _0x47ae56,Injector as _0x334da3,Plugin as _0x2cb4d6,merge as _0x4bf80d,registerDependencies as _0x1b1b9e,toDisposable as _0x56cf8b}from'@univerjs/core';function _0x4bf1(_0x3ca98d,_0x2e75c6){_0x3ca98d=_0x3ca98d-0xe2;const _0x3ff01d=_0x3ff0();let _0x4bf1da=_0x3ff01d[_0x3ca98d];return _0x4bf1da;}import{HTTPService as _0x47f636,ISocketService as _0x1b47cb,UniverNetworkPlugin as _0xbcf9e9}from'@univerjs/network';import{Observable as _0x18856d,share as _0x1e6217}from'rxjs';import{WebSocket as _0x2da334}from'ws';var C=_0x26056b(0x10f),w=_0x26056b(0xef);const T={};function E(_0x26fd43,_0x858797){return function(_0x10e183,_0x2ed891){_0x858797(_0x10e183,_0x2ed891,_0x26fd43);};}function D(_0x288a90,_0x561e39,_0x2290e3,_0x3713a7){const _0x5cde53=_0x26056b;var _0x157974=arguments['length'],_0x35a45a=_0x157974<0x3?_0x561e39:_0x3713a7===null?_0x3713a7=Object[_0x5cde53(0xf2)](_0x561e39,_0x2290e3):_0x3713a7,_0x4b2c1f;if(typeof Reflect==_0x5cde53(0xf8)&&typeof Reflect[_0x5cde53(0x106)]==_0x5cde53(0x112))_0x35a45a=Reflect[_0x5cde53(0x106)](_0x288a90,_0x561e39,_0x2290e3,_0x3713a7);else{for(var _0x18e1ca=_0x288a90[_0x5cde53(0x108)]-0x1;_0x18e1ca>=0x0;_0x18e1ca--)(_0x4b2c1f=_0x288a90[_0x18e1ca])&&(_0x35a45a=(_0x157974<0x3?_0x4b2c1f(_0x35a45a):_0x157974>0x3?_0x4b2c1f(_0x561e39,_0x2290e3,_0x35a45a):_0x4b2c1f(_0x561e39,_0x2290e3))||_0x35a45a);}return _0x157974>0x3&&_0x35a45a&&Object[_0x5cde53(0xf4)](_0x561e39,_0x2290e3,_0x35a45a),_0x35a45a;}let O=class extends _0x5bc677{constructor(_0x4415fb){const _0x4b10ec=_0x26056b;super(),this[_0x4b10ec(0xff)]=_0x4415fb;}[_0x26056b(0x109)](_0x3b5c29){const _0x5990fe=_0x26056b;var _0x1180dc;let _0x4f7d57=((_0x1180dc=this[_0x5990fe(0xff)][_0x5990fe(0xe9)](_0x41643a))==null?void 0x0:_0x1180dc[_0x5990fe(0x10b)])||{};try{let _0x3f2f32=new _0x2da334(_0x3b5c29,{'headers':{..._0x4f7d57}}),_0x502bb7=new _0x4b3bbf();return{'URL':_0x3b5c29,'close':(_0x17b0b7,_0x58fc98)=>{const _0x344e24=_0x5990fe;_0x3f2f32[_0x344e24(0x110)](_0x17b0b7,_0x58fc98),_0x502bb7[_0x344e24(0xea)]();},'send':_0x451349=>{_0x3f2f32['send'](_0x451349);},'open$':new _0x18856d(_0x921071=>{const _0x30d7fe=_0x5990fe;let _0x5687f5=_0x30106b=>_0x921071[_0x30d7fe(0x111)](_0x30106b);_0x3f2f32['addEventListener'](_0x30d7fe(0xfb),_0x5687f5),_0x502bb7[_0x30d7fe(0xe2)](_0x56cf8b(()=>_0x3f2f32[_0x30d7fe(0x114)](_0x30d7fe(0xfb),_0x5687f5)));})[_0x5990fe(0x102)](_0x1e6217()),'close$':new _0x18856d(_0x44ea02=>{const _0x4c3191=_0x5990fe;let _0x511af7=_0x590286=>_0x44ea02[_0x4c3191(0x111)](_0x590286);_0x3f2f32[_0x4c3191(0x10d)](_0x4c3191(0x110),_0x511af7),_0x502bb7[_0x4c3191(0xe2)](_0x56cf8b(()=>_0x3f2f32['removeEventListener'](_0x4c3191(0x110),_0x511af7)));})[_0x5990fe(0x102)](_0x1e6217()),'error$':new _0x18856d(_0x196375=>{const _0x4df8a7=_0x5990fe;let _0x40c4a2=_0x22d218=>_0x196375[_0x4df8a7(0x111)](_0x22d218);_0x3f2f32[_0x4df8a7(0x10d)]('error',_0x40c4a2),_0x502bb7['add'](_0x56cf8b(()=>_0x3f2f32[_0x4df8a7(0x114)](_0x4df8a7(0x10a),_0x40c4a2)));})['pipe'](_0x1e6217()),'message$':new _0x18856d(_0x112f9a=>{const _0x1e891e=_0x5990fe;let _0x2ca950=_0x5bfd1e=>_0x112f9a['next'](_0x5bfd1e);_0x3f2f32[_0x1e891e(0x10d)](_0x1e891e(0xed),_0x2ca950),_0x502bb7[_0x1e891e(0xe2)](_0x56cf8b(()=>_0x3f2f32[_0x1e891e(0x114)](_0x1e891e(0xed),_0x2ca950)));})[_0x5990fe(0x102)](_0x1e6217())};}catch(_0x26381f){return console[_0x5990fe(0x10a)](_0x26381f),null;}}};function _0x3ff0(){const _0x398f18=['registerHTTPInterceptor','_config','object','8478323iqUaEk','version','open','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','set','string','_configService','packageName','_httpService','pipe','18MyBXhz','877805IursMI','853266dLluHH','decorate','headers','length','createSocket','error','customHeaders','toPrimitive','addEventListener','4055456JrvDxa','@univerjs-pro/collaboration-client-node','close','next','function','collaboration-client-node.config','removeEventListener','symbol','11841880vImuel','add','2640231yEhkFi','_registerDependencies','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1LlenlB','constructor','getConfig','dispose','onStarting','prototype','message','setConfig','1.0.1','pluginName','call','getOwnPropertyDescriptor','24uBFFKm','defineProperty','623804bgzhZc'];_0x3ff0=function(){return _0x398f18;};return _0x3ff0();}O=D([E(0x0,_0x4bbeeb)],O);function k(_0x1a960f){'@babel/helpers - typeof';const _0x32c61c=_0x26056b;return k=typeof Symbol==_0x32c61c(0x112)&&typeof Symbol['iterator']==_0x32c61c(0x115)?function(_0x6a9ab2){return typeof _0x6a9ab2;}:function(_0x15b846){const _0x7a72a2=_0x32c61c;return _0x15b846&&typeof Symbol=='function'&&_0x15b846[_0x7a72a2(0xe8)]===Symbol&&_0x15b846!==Symbol[_0x7a72a2(0xec)]?_0x7a72a2(0x115):typeof _0x15b846;},k(_0x1a960f);}function A(_0x506547,_0x4a6898){const _0x433bc3=_0x26056b;if(k(_0x506547)!=_0x433bc3(0xf8)||!_0x506547)return _0x506547;var _0x5236f3=_0x506547[Symbol[_0x433bc3(0x10c)]];if(_0x5236f3!==void 0x0){var _0x4e5512=_0x5236f3[_0x433bc3(0xf1)](_0x506547,_0x4a6898||_0x433bc3(0xe5));if(k(_0x4e5512)!=_0x433bc3(0xf8))return _0x4e5512;throw TypeError(_0x433bc3(0xe6));}return(_0x4a6898===_0x433bc3(0xfe)?String:Number)(_0x506547);}function j(_0x524bff){const _0x163722=_0x26056b;var _0x518339=A(_0x524bff,_0x163722(0xfe));return k(_0x518339)=='symbol'?_0x518339:_0x518339+'';}function M(_0x374ebf,_0x2b18f0,_0x86a5b1){return(_0x2b18f0=j(_0x2b18f0))in _0x374ebf?Object['defineProperty'](_0x374ebf,_0x2b18f0,{'value':_0x86a5b1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x374ebf[_0x2b18f0]=_0x86a5b1,_0x374ebf;}let N=class extends _0x2cb4d6{constructor(_0x414ed4=T,_0x1f5195,_0x5375a5){const _0x427e6=_0x26056b;super(),this[_0x427e6(0xf7)]=_0x414ed4,this['_configService']=_0x1f5195,this['_injector']=_0x5375a5;let {..._0x34f2e0}=_0x4bf80d({},T,this[_0x427e6(0xf7)]);this[_0x427e6(0xff)][_0x427e6(0xee)](_0x427e6(0x113),_0x34f2e0);}[_0x26056b(0xeb)](){const _0x3d4d63=_0x26056b;this[_0x3d4d63(0xe4)]();}[_0x26056b(0xe4)](){_0x1b1b9e(this['_injector'],[[_0x1b47cb,{'useClass':O}]]);}};M(N,_0x26056b(0xf0),_0x26056b(0xfc)),M(N,_0x26056b(0x100),C),M(N,_0x26056b(0xfa),w),N=D([_0x51dcbe(_0x2f9883,_0xbcf9e9,_0xdd7bdc,_0x5037e1),E(0x1,_0x4bbeeb),E(0x2,_0x47ae56(_0x334da3))],N);let P=class extends _0x2d2aaa{constructor(_0x3c0c0d,_0x2f7399,_0x2f747d,_0x1f2c3a,_0x276bda){const _0x317257=_0x26056b;super(_0x3c0c0d,_0x2f7399,_0x2f747d,_0x1f2c3a,_0x276bda);let _0x23b93c=this[_0x317257(0xff)]['getConfig'](_0x41643a);this[_0x317257(0x101)][_0x317257(0xf6)]({'interceptor':(_0xd1d4d1,_0x5b2619)=>{const _0x3da4ec=_0x317257;let _0x543210=_0xd1d4d1[_0x3da4ec(0x107)];if(_0x23b93c!=null&&_0x23b93c[_0x3da4ec(0x10b)]){for(let _0x518d6b in _0x23b93c[_0x3da4ec(0x10b)])_0x543210[_0x3da4ec(0xfd)](_0x518d6b,_0x23b93c[_0x3da4ec(0x10b)][_0x518d6b]);}return _0x5b2619(_0xd1d4d1);}});}async[_0x26056b(0x109)](_0x3acaf1){return this['_doCreateSocket'](_0x3acaf1);}};P=D([E(0x0,_0x47ae56(_0x334da3)),E(0x1,_0x47ae56(_0x47f636)),E(0x2,_0x4bbeeb),E(0x3,_0x20f274),E(0x4,_0x20df64)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0xfad198=_0xd045;(function(_0x34a991,_0x46d0d0){const _0x304f2f=_0xd045,_0x36c11e=_0x34a991();while(!![]){try{const _0x5c9406=parseInt(_0x304f2f(0x16a))/0x1+parseInt(_0x304f2f(0x14c))/0x2+parseInt(_0x304f2f(0x15d))/0x3+parseInt(_0x304f2f(0x167))/0x4+-parseInt(_0x304f2f(0x15e))/0x5*(-parseInt(_0x304f2f(0x14d))/0x6)+parseInt(_0x304f2f(0x150))/0x7+parseInt(_0x304f2f(0x151))/0x8*(-parseInt(_0x304f2f(0x164))/0x9);if(_0x5c9406===_0x46d0d0)break;else _0x36c11e['push'](_0x36c11e['shift']());}catch(_0x42e37a){_0x36c11e['push'](_0x36c11e['shift']());}}}(_0x1634,0x59829));import{ISnapshotServerService as _0x2baad9,UniverCollaborationPlugin as _0x24cf9f}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x482dfd,CollaborationSocketService as _0x219388,UniverCollaborationClientPlugin as _0x411ea4}from'@univerjs-pro/collaboration-client';function _0x1634(){const _0x4147d6=['close','pipe','removeEventListener','length','customHeaders','open','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','getOwnPropertyDescriptor','_injector','1919943wvGkMS','2170VfkgGp','createSocket','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','_configService','10732833zFoqev','constructor','object','2616312NpjiSB','_doCreateSocket','packageName','512275viFyxH','_registerDependencies','dispose','iterator','toPrimitive','_config','symbol','defineProperty','message','addEventListener','decorate','1121940ZcxwOJ','2970OWOTCf','error','string','1187011qKxWrV','16Thqoqw'];_0x1634=function(){return _0x4147d6;};return _0x1634();}import{UniverLicensePlugin as _0x4bd8eb}from'@univerjs-pro/license';import{DependentOn as _0x216067,Disposable as _0x128357,DisposableCollection as _0x5175d2,IConfigService as _0x306740,ILogService as _0x9cd830,Inject as _0x2506a5,Injector as _0x18b828,Plugin as _0xd6760d,merge as _0x517c45,registerDependencies as _0x550118,toDisposable as _0x1f6998}from'@univerjs/core';import{HTTPService as _0x10e6d2,ISocketService as _0x546886,UniverNetworkPlugin as _0xb71c24}from'@univerjs/network';import{Observable as _0x424874,share as _0xfb593d}from'rxjs';import{WebSocket as _0x4b4fc7}from'ws';var C='@univerjs-pro/collaboration-client-node',w='1.0.2';const T={};function _0xd045(_0x159435,_0x413c6e){_0x159435=_0x159435-0x149;const _0x163481=_0x1634();let _0xd045c6=_0x163481[_0x159435];return _0xd045c6;}function E(_0x2bb152,_0x485ff5){return function(_0x15b5ef,_0x590302){_0x485ff5(_0x15b5ef,_0x590302,_0x2bb152);};}function D(_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d){const _0x132b70=_0xd045;var _0x4034f1=arguments[_0x132b70(0x155)],_0x18b934=_0x4034f1<0x3?_0x1fc6f2:_0x4bcd9d===null?_0x4bcd9d=Object[_0x132b70(0x15b)](_0x1fc6f2,_0x440e2f):_0x4bcd9d,_0x52903e;if(typeof Reflect==_0x132b70(0x166)&&typeof Reflect['decorate']==_0x132b70(0x158))_0x18b934=Reflect[_0x132b70(0x14b)](_0x538ed2,_0x1fc6f2,_0x440e2f,_0x4bcd9d);else{for(var _0x5b94a0=_0x538ed2['length']-0x1;_0x5b94a0>=0x0;_0x5b94a0--)(_0x52903e=_0x538ed2[_0x5b94a0])&&(_0x18b934=(_0x4034f1<0x3?_0x52903e(_0x18b934):_0x4034f1>0x3?_0x52903e(_0x1fc6f2,_0x440e2f,_0x18b934):_0x52903e(_0x1fc6f2,_0x440e2f))||_0x18b934);}return _0x4034f1>0x3&&_0x18b934&&Object[_0x132b70(0x171)](_0x1fc6f2,_0x440e2f,_0x18b934),_0x18b934;}let O=class extends _0x128357{constructor(_0x4c4942){const _0x240b84=_0xd045;super(),this[_0x240b84(0x163)]=_0x4c4942;}[_0xfad198(0x15f)](_0x32284e){const _0xda97ba=_0xfad198;var _0x4d4117;let _0x3a60ba=((_0x4d4117=this['_configService']['getConfig'](_0x482dfd))==null?void 0x0:_0x4d4117[_0xda97ba(0x156)])||{};try{let _0x5ac80c=new _0x4b4fc7(_0x32284e,{'headers':{..._0x3a60ba}}),_0x3c7d31=new _0x5175d2();return{'URL':_0x32284e,'close':(_0x403458,_0x47b97d)=>{const _0x7a7de1=_0xda97ba;_0x5ac80c[_0x7a7de1(0x152)](_0x403458,_0x47b97d),_0x3c7d31[_0x7a7de1(0x16c)]();},'send':_0x38b4c4=>{_0x5ac80c['send'](_0x38b4c4);},'open$':new _0x424874(_0x41e4cd=>{const _0x5ecea3=_0xda97ba;let _0x4d3864=_0x30858f=>_0x41e4cd['next'](_0x30858f);_0x5ac80c[_0x5ecea3(0x14a)](_0x5ecea3(0x157),_0x4d3864),_0x3c7d31[_0x5ecea3(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5ecea3(0x154)](_0x5ecea3(0x157),_0x4d3864)));})[_0xda97ba(0x153)](_0xfb593d()),'close$':new _0x424874(_0x2c3684=>{const _0x1306ea=_0xda97ba;let _0xf0ee44=_0x4ffd38=>_0x2c3684[_0x1306ea(0x160)](_0x4ffd38);_0x5ac80c[_0x1306ea(0x14a)](_0x1306ea(0x152),_0xf0ee44),_0x3c7d31[_0x1306ea(0x15a)](_0x1f6998(()=>_0x5ac80c['removeEventListener'](_0x1306ea(0x152),_0xf0ee44)));})[_0xda97ba(0x153)](_0xfb593d()),'error$':new _0x424874(_0x41622f=>{const _0x53fc12=_0xda97ba;let _0x153aaf=_0x179b74=>_0x41622f[_0x53fc12(0x160)](_0x179b74);_0x5ac80c['addEventListener'](_0x53fc12(0x14e),_0x153aaf),_0x3c7d31[_0x53fc12(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x53fc12(0x154)]('error',_0x153aaf)));})[_0xda97ba(0x153)](_0xfb593d()),'message$':new _0x424874(_0x14e405=>{const _0x5e717a=_0xda97ba;let _0x4e9eaf=_0x41e3bf=>_0x14e405[_0x5e717a(0x160)](_0x41e3bf);_0x5ac80c[_0x5e717a(0x14a)](_0x5e717a(0x149),_0x4e9eaf),_0x3c7d31[_0x5e717a(0x15a)](_0x1f6998(()=>_0x5ac80c[_0x5e717a(0x154)](_0x5e717a(0x149),_0x4e9eaf)));})[_0xda97ba(0x153)](_0xfb593d())};}catch(_0x3ddf67){return console[_0xda97ba(0x14e)](_0x3ddf67),null;}}};O=D([E(0x0,_0x306740)],O);function k(_0x5b526d){'@babel/helpers - typeof';const _0x174283=_0xfad198;return k=typeof Symbol==_0x174283(0x158)&&typeof Symbol[_0x174283(0x16d)]==_0x174283(0x170)?function(_0x2067f5){return typeof _0x2067f5;}:function(_0x231b23){const _0x2241b6=_0x174283;return _0x231b23&&typeof Symbol==_0x2241b6(0x158)&&_0x231b23[_0x2241b6(0x165)]===Symbol&&_0x231b23!==Symbol['prototype']?_0x2241b6(0x170):typeof _0x231b23;},k(_0x5b526d);}function A(_0x420680,_0x4c3706){const _0x1e2eff=_0xfad198;if(k(_0x420680)!=_0x1e2eff(0x166)||!_0x420680)return _0x420680;var _0x5ef63a=_0x420680[Symbol[_0x1e2eff(0x16e)]];if(_0x5ef63a!==void 0x0){var _0x3aea78=_0x5ef63a['call'](_0x420680,_0x4c3706||'default');if(k(_0x3aea78)!=_0x1e2eff(0x166))return _0x3aea78;throw TypeError(_0x1e2eff(0x161));}return(_0x4c3706===_0x1e2eff(0x14f)?String:Number)(_0x420680);}function j(_0x14d832){const _0x32d49a=_0xfad198;var _0x209345=A(_0x14d832,'string');return k(_0x209345)==_0x32d49a(0x170)?_0x209345:_0x209345+'';}function M(_0x593076,_0x2f9a3d,_0x366b7a){const _0x2e8ab1=_0xfad198;return(_0x2f9a3d=j(_0x2f9a3d))in _0x593076?Object[_0x2e8ab1(0x171)](_0x593076,_0x2f9a3d,{'value':_0x366b7a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x593076[_0x2f9a3d]=_0x366b7a,_0x593076;}let N=class extends _0xd6760d{constructor(_0x12e74d=T,_0x335765,_0xeccbae){const _0x1907fb=_0xfad198;super(),this['_config']=_0x12e74d,this[_0x1907fb(0x163)]=_0x335765,this[_0x1907fb(0x15c)]=_0xeccbae;let {..._0x52e976}=_0x517c45({},T,this[_0x1907fb(0x16f)]);this[_0x1907fb(0x163)]['setConfig']('collaboration-client-node.config',_0x52e976);}['onStarting'](){const _0x4e05f1=_0xfad198;this[_0x4e05f1(0x16b)]();}[_0xfad198(0x16b)](){const _0x445ac1=_0xfad198;_0x550118(this[_0x445ac1(0x15c)],[[_0x546886,{'useClass':O}]]);}};M(N,_0xfad198(0x162),_0xfad198(0x159)),M(N,_0xfad198(0x169),C),M(N,'version',w),N=D([_0x216067(_0x4bd8eb,_0xb71c24,_0x24cf9f,_0x411ea4),E(0x1,_0x306740),E(0x2,_0x2506a5(_0x18b828))],N);let P=class extends _0x219388{constructor(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8){const _0x6dbaf1=_0xfad198;super(_0xf7ae8a,_0x23e6c7,_0x2f00c4,_0x2e101e,_0x5747e8);let _0x1db92c=this[_0x6dbaf1(0x163)]['getConfig'](_0x482dfd);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1eb59d,_0x4ed5bd)=>{const _0x3160f2=_0x6dbaf1;let _0x276679=_0x1eb59d['headers'];if(_0x1db92c!=null&&_0x1db92c[_0x3160f2(0x156)]){for(let _0x2f066e in _0x1db92c[_0x3160f2(0x156)])_0x276679['set'](_0x2f066e,_0x1db92c[_0x3160f2(0x156)][_0x2f066e]);}return _0x4ed5bd(_0x1eb59d);}});}async[_0xfad198(0x15f)](_0x6fc791){const _0x4f6c51=_0xfad198;return this[_0x4f6c51(0x168)](_0x6fc791);}};P=D([E(0x0,_0x2506a5(_0x18b828)),E(0x1,_0x2506a5(_0x10e6d2)),E(0x2,_0x306740),E(0x3,_0x9cd830),E(0x4,_0x2baad9)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4e9dc0,_0x499d51){const _0x51ac67=_0x2b7d,_0x550cb2=_0x4e9dc0();while(!![]){try{const _0x1ca54f=parseInt(_0x51ac67(0x12d))/0x1+parseInt(_0x51ac67(0xf3))/0x2*(parseInt(_0x51ac67(0x10a))/0x3)+-parseInt(_0x51ac67(0xe7))/0x4+-parseInt(_0x51ac67(0x12c))/0x5+parseInt(_0x51ac67(0x12a))/0x6+-parseInt(_0x51ac67(0x133))/0x7+-parseInt(_0x51ac67(0x10b))/0x8;if(_0x1ca54f===_0x499d51)break;else _0x550cb2['push'](_0x550cb2['shift']());}catch(_0xbfb00){_0x550cb2['push'](_0x550cb2['shift']());}}}(_0x140d,0xd3509),function(_0x1ec351,_0x4825a8){const _0x3e5284=_0x2b7d;typeof exports=='object'&&typeof module<'u'?_0x4825a8(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x3e5284(0x129)&&define[_0x3e5284(0x10e)]?define([_0x3e5284(0xeb),'@univerjs-pro/collaboration',_0x3e5284(0x101),_0x3e5284(0x118),_0x3e5284(0x105),_0x3e5284(0xf5),_0x3e5284(0x11d)],_0x4825a8):(_0x1ec351=typeof globalThis<'u'?globalThis:_0x1ec351||self,_0x4825a8(_0x1ec351[_0x3e5284(0x102)]={},_0x1ec351[_0x3e5284(0x127)],_0x1ec351['UniverProCollaborationClient'],_0x1ec351['UniverProLicense'],_0x1ec351[_0x3e5284(0x103)],_0x1ec351[_0x3e5284(0xe2)],_0x1ec351[_0x3e5284(0x11d)]));}(this,function(_0x348602,_0x357f18,_0x2ea384,_0x53db6c,_0x5ee43a,_0x258040,_0x2f0d6a){const _0x51e570=_0x2b7d;Object['defineProperty'](_0x348602,Symbol[_0x51e570(0x114)],{'value':_0x51e570(0x112)});var _0xf4624=(_0x354f33,_0x2fb966)=>()=>(_0x2fb966||(_0x354f33((_0x2fb966={'exports':{}})[_0x51e570(0xeb)],_0x2fb966),_0x354f33=null),_0x2fb966[_0x51e570(0xeb)]),_0x202324='@univerjs-pro/collaboration-client-node',_0x26242d=_0x51e570(0x124);let _0x3e0c7d={};var _0x4be084=_0xf4624((_0x34d31a,_0x3f040c)=>{const _0x32ff13=_0x51e570;_0x3f040c[_0x32ff13(0xeb)]=function(){const _0x5e6473=_0x32ff13;throw Error(_0x5e6473(0x135));};})();function _0x243cbd(_0x48f9f3,_0x5d319a){return function(_0x7c258b,_0x156832){_0x5d319a(_0x7c258b,_0x156832,_0x48f9f3);};}function _0xd5769b(_0x16aea5,_0x5b275d,_0x576e9d,_0x3c49f3){const _0x1d768d=_0x51e570;var _0x18c229=arguments[_0x1d768d(0x11c)],_0x459957=_0x18c229<0x3?_0x5b275d:_0x3c49f3===null?_0x3c49f3=Object[_0x1d768d(0x136)](_0x5b275d,_0x576e9d):_0x3c49f3,_0x24ef9c;if(typeof Reflect==_0x1d768d(0x10d)&&typeof Reflect[_0x1d768d(0x12b)]=='function')_0x459957=Reflect['decorate'](_0x16aea5,_0x5b275d,_0x576e9d,_0x3c49f3);else{for(var _0x2905ab=_0x16aea5[_0x1d768d(0x11c)]-0x1;_0x2905ab>=0x0;_0x2905ab--)(_0x24ef9c=_0x16aea5[_0x2905ab])&&(_0x459957=(_0x18c229<0x3?_0x24ef9c(_0x459957):_0x18c229>0x3?_0x24ef9c(_0x5b275d,_0x576e9d,_0x459957):_0x24ef9c(_0x5b275d,_0x576e9d))||_0x459957);}return _0x18c229>0x3&&_0x459957&&Object[_0x1d768d(0xea)](_0x5b275d,_0x576e9d,_0x459957),_0x459957;}let _0x5deac9=class extends _0x5ee43a['Disposable']{constructor(_0x246ed0){const _0x2dd61e=_0x51e570;super(),this[_0x2dd61e(0xf6)]=_0x246ed0;}[_0x51e570(0x113)](_0x2867c7){const _0x3da422=_0x51e570;var _0x5328be;let _0x10c24b=((_0x5328be=this[_0x3da422(0xf6)][_0x3da422(0x10c)](_0x2ea384['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5328be[_0x3da422(0xfc)])||{};try{let _0x4d96eb=new _0x4be084[(_0x3da422(0x130))](_0x2867c7,{'headers':{..._0x10c24b}}),_0x505900=new _0x5ee43a[(_0x3da422(0x11f))]();return{'URL':_0x2867c7,'close':(_0x570b65,_0x3d1998)=>{const _0x3c8038=_0x3da422;_0x4d96eb[_0x3c8038(0x123)](_0x570b65,_0x3d1998),_0x505900[_0x3c8038(0x116)]();},'send':_0xa343ad=>{const _0x1b16f2=_0x3da422;_0x4d96eb[_0x1b16f2(0x132)](_0xa343ad);},'open$':new _0x2f0d6a[(_0x3da422(0xf7))](_0x55151e=>{const _0x488ed7=_0x3da422;let _0x37cacf=_0x20d801=>_0x55151e[_0x488ed7(0xe3)](_0x20d801);_0x4d96eb[_0x488ed7(0xfd)](_0x488ed7(0x108),_0x37cacf),_0x505900[_0x488ed7(0x120)]((0x0,_0x5ee43a[_0x488ed7(0xe5)])(()=>_0x4d96eb[_0x488ed7(0x111)]('open',_0x37cacf)));})[_0x3da422(0xe9)]((0x0,_0x2f0d6a[_0x3da422(0x110)])()),'close$':new _0x2f0d6a['Observable'](_0x2759ba=>{const _0x587986=_0x3da422;let _0x10e295=_0x26e821=>_0x2759ba[_0x587986(0xe3)](_0x26e821);_0x4d96eb[_0x587986(0xfd)](_0x587986(0x123),_0x10e295),_0x505900[_0x587986(0x120)]((0x0,_0x5ee43a['toDisposable'])(()=>_0x4d96eb['removeEventListener'](_0x587986(0x123),_0x10e295)));})['pipe']((0x0,_0x2f0d6a[_0x3da422(0x110)])()),'error$':new _0x2f0d6a[(_0x3da422(0xf7))](_0x822ce8=>{const _0x5e2481=_0x3da422;let _0x2b5b39=_0x4cbd55=>_0x822ce8['next'](_0x4cbd55);_0x4d96eb[_0x5e2481(0xfd)](_0x5e2481(0xe8),_0x2b5b39),_0x505900[_0x5e2481(0x120)]((0x0,_0x5ee43a['toDisposable'])(()=>_0x4d96eb[_0x5e2481(0x111)]('error',_0x2b5b39)));})[_0x3da422(0xe9)]((0x0,_0x2f0d6a[_0x3da422(0x110)])()),'message$':new _0x2f0d6a['Observable'](_0x12245b=>{const _0x2d8cf8=_0x3da422;let _0x40cd91=_0x513ab2=>_0x12245b[_0x2d8cf8(0xe3)](_0x513ab2);_0x4d96eb['addEventListener']('message',_0x40cd91),_0x505900[_0x2d8cf8(0x120)]((0x0,_0x5ee43a[_0x2d8cf8(0xe5)])(()=>_0x4d96eb['removeEventListener'](_0x2d8cf8(0x117),_0x40cd91)));})[_0x3da422(0xe9)]((0x0,_0x2f0d6a[_0x3da422(0x110)])())};}catch(_0xd714f8){return console['error'](_0xd714f8),null;}}};_0x5deac9=_0xd5769b([_0x243cbd(0x0,_0x5ee43a[_0x51e570(0xf9)])],_0x5deac9);function _0x4366ff(_0x21f97e){'@babel/helpers - typeof';const _0x1e330a=_0x51e570;return _0x4366ff=typeof Symbol==_0x1e330a(0x129)&&typeof Symbol[_0x1e330a(0x11e)]==_0x1e330a(0x11a)?function(_0x48d658){return typeof _0x48d658;}:function(_0x12fefb){const _0xcd1115=_0x1e330a;return _0x12fefb&&typeof Symbol=='function'&&_0x12fefb[_0xcd1115(0xef)]===Symbol&&_0x12fefb!==Symbol[_0xcd1115(0xf8)]?'symbol':typeof _0x12fefb;},_0x4366ff(_0x21f97e);}function _0x37a100(_0x496ac1,_0x54eb93){const _0x3a2348=_0x51e570;if(_0x4366ff(_0x496ac1)!=_0x3a2348(0x10d)||!_0x496ac1)return _0x496ac1;var _0x513329=_0x496ac1[Symbol[_0x3a2348(0xf0)]];if(_0x513329!==void 0x0){var _0x4cc578=_0x513329[_0x3a2348(0x12e)](_0x496ac1,_0x54eb93||_0x3a2348(0xed));if(_0x4366ff(_0x4cc578)!=_0x3a2348(0x10d))return _0x4cc578;throw TypeError(_0x3a2348(0x121));}return(_0x54eb93===_0x3a2348(0xe6)?String:Number)(_0x496ac1);}function _0xec36de(_0x56ee7b){const _0x1af530=_0x51e570;var _0x8aaabe=_0x37a100(_0x56ee7b,_0x1af530(0xe6));return _0x4366ff(_0x8aaabe)=='symbol'?_0x8aaabe:_0x8aaabe+'';}function _0x5a5234(_0xb85169,_0x52b984,_0x18d57d){const _0x41d4d7=_0x51e570;return(_0x52b984=_0xec36de(_0x52b984))in _0xb85169?Object[_0x41d4d7(0xea)](_0xb85169,_0x52b984,{'value':_0x18d57d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb85169[_0x52b984]=_0x18d57d,_0xb85169;}let _0xd8d114=class extends _0x5ee43a[_0x51e570(0x11b)]{constructor(_0x156a5c=_0x3e0c7d,_0x19308b,_0x30351c){const _0x1af719=_0x51e570;super(),this[_0x1af719(0xff)]=_0x156a5c,this['_configService']=_0x19308b,this['_injector']=_0x30351c;let {..._0x40a709}=(0x0,_0x5ee43a[_0x1af719(0x134)])({},_0x3e0c7d,this[_0x1af719(0xff)]);this['_configService']['setConfig'](_0x1af719(0x128),_0x40a709);}[_0x51e570(0xf2)](){const _0x5cce2a=_0x51e570;this[_0x5cce2a(0xee)]();}[_0x51e570(0xee)](){const _0x44d7d3=_0x51e570;(0x0,_0x5ee43a['registerDependencies'])(this['_injector'],[[_0x258040[_0x44d7d3(0x107)],{'useClass':_0x5deac9}]]);}};_0x5a5234(_0xd8d114,'pluginName',_0x51e570(0x106)),_0x5a5234(_0xd8d114,_0x51e570(0xe4),_0x202324),_0x5a5234(_0xd8d114,'version',_0x26242d),_0xd8d114=_0xd5769b([(0x0,_0x5ee43a[_0x51e570(0x131)])(_0x53db6c[_0x51e570(0xfa)],_0x258040[_0x51e570(0xf1)],_0x357f18[_0x51e570(0xf4)],_0x2ea384[_0x51e570(0x10f)]),_0x243cbd(0x1,_0x5ee43a[_0x51e570(0xf9)]),_0x243cbd(0x2,(0x0,_0x5ee43a[_0x51e570(0x109)])(_0x5ee43a[_0x51e570(0x119)]))],_0xd8d114);let _0x2e997f=class extends _0x2ea384[_0x51e570(0x115)]{constructor(_0x2a4afc,_0x3a3a85,_0x1d16a3,_0x37c3a6,_0x79b1df){const _0x1c21ce=_0x51e570;super(_0x2a4afc,_0x3a3a85,_0x1d16a3,_0x37c3a6,_0x79b1df);let _0x2ee11a=this[_0x1c21ce(0xf6)]['getConfig'](_0x2ea384[_0x1c21ce(0x126)]);this['_httpService'][_0x1c21ce(0xfe)]({'interceptor':(_0x295375,_0x252877)=>{const _0x2d60fa=_0x1c21ce;let _0x29b1f2=_0x295375[_0x2d60fa(0x100)];if(_0x2ee11a!=null&&_0x2ee11a[_0x2d60fa(0xfc)]){for(let _0x510d34 in _0x2ee11a['customHeaders'])_0x29b1f2['set'](_0x510d34,_0x2ee11a[_0x2d60fa(0xfc)][_0x510d34]);}return _0x252877(_0x295375);}});}async[_0x51e570(0x113)](_0x2ecc2f){const _0x2a1d92=_0x51e570;return this[_0x2a1d92(0x12f)](_0x2ecc2f);}};_0x2e997f=_0xd5769b([_0x243cbd(0x0,(0x0,_0x5ee43a['Inject'])(_0x5ee43a[_0x51e570(0x119)])),_0x243cbd(0x1,(0x0,_0x5ee43a[_0x51e570(0x109)])(_0x258040[_0x51e570(0x104)])),_0x243cbd(0x2,_0x5ee43a[_0x51e570(0xf9)]),_0x243cbd(0x3,_0x5ee43a[_0x51e570(0x125)]),_0x243cbd(0x4,_0x357f18[_0x51e570(0xfb)])],_0x2e997f),Object[_0x51e570(0xea)](_0x348602,_0x51e570(0x122),{'enumerable':!0x0,'get':function(){return _0x2e997f;}}),Object['defineProperty'](_0x348602,_0x51e570(0xec),{'enumerable':!0x0,'get':function(){return _0xd8d114;}});}));function _0x2b7d(_0x4cd70e,_0x3114a9){_0x4cd70e=_0x4cd70e-0xe2;const _0x140dbc=_0x140d();let _0x2b7d9f=_0x140dbc[_0x4cd70e];return _0x2b7d9f;}function _0x140d(){const _0x12a1dd=['1.0.1','ILogService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverProCollaboration','collaboration-client-node.config','function','6362298xGMedQ','decorate','82370qeHmdd','427403CxBHAD','call','_doCreateSocket','WebSocket','DependentOn','send','3112445WhyGZo','merge','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','getOwnPropertyDescriptor','UniverNetwork','next','packageName','toDisposable','string','2082376jssQqa','error','pipe','defineProperty','exports','UniverCollaborationClientNodePlugin','default','_registerDependencies','constructor','toPrimitive','UniverNetworkPlugin','onStarting','476plJMfL','UniverCollaborationPlugin','@univerjs/network','_configService','Observable','prototype','IConfigService','UniverLicensePlugin','ISnapshotServerService','customHeaders','addEventListener','registerHTTPInterceptor','_config','headers','@univerjs-pro/collaboration-client','UniverProCollaborationClientNode','UniverCore','HTTPService','@univerjs/core','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','ISocketService','open','Inject','9993HiygSx','3466528gzQrHc','getConfig','object','amd','UniverCollaborationClientPlugin','share','removeEventListener','Module','createSocket','toStringTag','CollaborationSocketService','dispose','message','@univerjs-pro/license','Injector','symbol','Plugin','length','rxjs','iterator','DisposableCollection','add','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','NodeCollaborationSocketService','close'];_0x140d=function(){return _0x12a1dd;};return _0x140d();}
1
+ (function(_0x6e6680,_0x197f2a){const _0x4be454=_0x320e,_0x3a06ff=_0x6e6680();while(!![]){try{const _0x32d896=-parseInt(_0x4be454(0xee))/0x1+-parseInt(_0x4be454(0xeb))/0x2*(parseInt(_0x4be454(0xf0))/0x3)+parseInt(_0x4be454(0xcb))/0x4*(-parseInt(_0x4be454(0x107))/0x5)+-parseInt(_0x4be454(0xde))/0x6*(parseInt(_0x4be454(0xef))/0x7)+parseInt(_0x4be454(0x104))/0x8+parseInt(_0x4be454(0x11a))/0x9+parseInt(_0x4be454(0xd6))/0xa;if(_0x32d896===_0x197f2a)break;else _0x3a06ff['push'](_0x3a06ff['shift']());}catch(_0x4e47d1){_0x3a06ff['push'](_0x3a06ff['shift']());}}}(_0x4f0f,0x282e0),function(_0x1389ac,_0x2319a4){const _0x3ba199=_0x320e;typeof exports==_0x3ba199(0xcc)&&typeof module<'u'?_0x2319a4(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x3ba199(0x109)&&define[_0x3ba199(0xd4)]?define([_0x3ba199(0x11b),_0x3ba199(0x108),_0x3ba199(0x115),_0x3ba199(0xf4),'@univerjs/core',_0x3ba199(0xe7),_0x3ba199(0xea)],_0x2319a4):(_0x1389ac=typeof globalThis<'u'?globalThis:_0x1389ac||self,_0x2319a4(_0x1389ac[_0x3ba199(0xe8)]={},_0x1389ac[_0x3ba199(0xd7)],_0x1389ac['UniverProCollaborationClient'],_0x1389ac[_0x3ba199(0xd3)],_0x1389ac['UniverCore'],_0x1389ac[_0x3ba199(0xf1)],_0x1389ac[_0x3ba199(0xea)]));}(this,function(_0x246147,_0x4779d5,_0x36e02d,_0x3ebb5e,_0x283cc9,_0x3ba9c9,_0x5c87e7){const _0x1ee019=_0x320e;Object[_0x1ee019(0x102)](_0x246147,Symbol[_0x1ee019(0xfb)],{'value':_0x1ee019(0xfd)});var _0x48c5fc=(_0x493240,_0x4e1307)=>()=>(_0x4e1307||(_0x493240((_0x4e1307={'exports':{}})[_0x1ee019(0x11b)],_0x4e1307),_0x493240=null),_0x4e1307[_0x1ee019(0x11b)]),_0x535d99=_0x1ee019(0xd5),_0x218412=_0x1ee019(0xcd);let _0x46d112={};var _0x2a4704=_0x48c5fc((_0x353b17,_0x48eff2)=>{_0x48eff2['exports']=function(){const _0x2a3a90=_0x320e;throw Error(_0x2a3a90(0x106));};})();function _0x54e5b1(_0xa120a5,_0x2d6a2c){return function(_0x38a9fe,_0x3d7bf6){_0x2d6a2c(_0x38a9fe,_0x3d7bf6,_0xa120a5);};}function _0x32e2c0(_0x439741,_0x4f336a,_0x435298,_0x1a1945){const _0x4a9784=_0x1ee019;var _0x79dd65=arguments[_0x4a9784(0x114)],_0x59c4c0=_0x79dd65<0x3?_0x4f336a:_0x1a1945===null?_0x1a1945=Object['getOwnPropertyDescriptor'](_0x4f336a,_0x435298):_0x1a1945,_0x54b747;if(typeof Reflect==_0x4a9784(0xcc)&&typeof Reflect[_0x4a9784(0x120)]==_0x4a9784(0x109))_0x59c4c0=Reflect['decorate'](_0x439741,_0x4f336a,_0x435298,_0x1a1945);else{for(var _0x1397a6=_0x439741['length']-0x1;_0x1397a6>=0x0;_0x1397a6--)(_0x54b747=_0x439741[_0x1397a6])&&(_0x59c4c0=(_0x79dd65<0x3?_0x54b747(_0x59c4c0):_0x79dd65>0x3?_0x54b747(_0x4f336a,_0x435298,_0x59c4c0):_0x54b747(_0x4f336a,_0x435298))||_0x59c4c0);}return _0x79dd65>0x3&&_0x59c4c0&&Object[_0x4a9784(0x102)](_0x4f336a,_0x435298,_0x59c4c0),_0x59c4c0;}let _0x30aa20=class extends _0x283cc9[_0x1ee019(0x118)]{constructor(_0x3f8378){const _0x31ba40=_0x1ee019;super(),this[_0x31ba40(0xd1)]=_0x3f8378;}[_0x1ee019(0x10b)](_0x53fa1f){const _0x3219ab=_0x1ee019;var _0x460512;let _0x5ed631=((_0x460512=this[_0x3219ab(0xd1)]['getConfig'](_0x36e02d[_0x3219ab(0x10c)]))==null?void 0x0:_0x460512['customHeaders'])||{};try{let _0x45fc1e=new _0x2a4704[(_0x3219ab(0x11c))](_0x53fa1f,{'headers':{..._0x5ed631}}),_0x5c5714=new _0x283cc9[(_0x3219ab(0xcf))]();return{'URL':_0x53fa1f,'close':(_0x4c110b,_0xe7109c)=>{const _0x117154=_0x3219ab;_0x45fc1e[_0x117154(0x11d)](_0x4c110b,_0xe7109c),_0x5c5714[_0x117154(0xe6)]();},'send':_0x514839=>{_0x45fc1e['send'](_0x514839);},'open$':new _0x5c87e7['Observable'](_0x373da9=>{const _0x4ddd4d=_0x3219ab;let _0x1539c2=_0x3a8211=>_0x373da9[_0x4ddd4d(0xf6)](_0x3a8211);_0x45fc1e['addEventListener'](_0x4ddd4d(0x105),_0x1539c2),_0x5c5714[_0x4ddd4d(0xfe)]((0x0,_0x283cc9[_0x4ddd4d(0x10f)])(()=>_0x45fc1e[_0x4ddd4d(0x10d)]('open',_0x1539c2)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])()),'close$':new _0x5c87e7[(_0x3219ab(0x100))](_0x59bd03=>{const _0x7a69f0=_0x3219ab;let _0x1efa8e=_0x27faf3=>_0x59bd03[_0x7a69f0(0xf6)](_0x27faf3);_0x45fc1e['addEventListener'](_0x7a69f0(0x11d),_0x1efa8e),_0x5c5714[_0x7a69f0(0xfe)]((0x0,_0x283cc9[_0x7a69f0(0x10f)])(()=>_0x45fc1e['removeEventListener']('close',_0x1efa8e)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])()),'error$':new _0x5c87e7[(_0x3219ab(0x100))](_0x1c4f89=>{const _0xf779e0=_0x3219ab;let _0x3f42f8=_0x5ab67c=>_0x1c4f89['next'](_0x5ab67c);_0x45fc1e[_0xf779e0(0xf9)](_0xf779e0(0x101),_0x3f42f8),_0x5c5714[_0xf779e0(0xfe)]((0x0,_0x283cc9[_0xf779e0(0x10f)])(()=>_0x45fc1e[_0xf779e0(0x10d)]('error',_0x3f42f8)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])()),'message$':new _0x5c87e7['Observable'](_0x200c7b=>{const _0x5cdcff=_0x3219ab;let _0x3b9f16=_0x4e2982=>_0x200c7b[_0x5cdcff(0xf6)](_0x4e2982);_0x45fc1e[_0x5cdcff(0xf9)]('message',_0x3b9f16),_0x5c5714['add']((0x0,_0x283cc9['toDisposable'])(()=>_0x45fc1e[_0x5cdcff(0x10d)](_0x5cdcff(0xdc),_0x3b9f16)));})[_0x3219ab(0x11e)]((0x0,_0x5c87e7[_0x3219ab(0xe2)])())};}catch(_0x2d5cd7){return console[_0x3219ab(0x101)](_0x2d5cd7),null;}}};_0x30aa20=_0x32e2c0([_0x54e5b1(0x0,_0x283cc9['IConfigService'])],_0x30aa20);function _0x52d483(_0x4222cd){'@babel/helpers - typeof';const _0xbb683a=_0x1ee019;return _0x52d483=typeof Symbol==_0xbb683a(0x109)&&typeof Symbol[_0xbb683a(0xfc)]==_0xbb683a(0x117)?function(_0x26c141){return typeof _0x26c141;}:function(_0x3f7d7f){const _0xf8f671=_0xbb683a;return _0x3f7d7f&&typeof Symbol==_0xf8f671(0x109)&&_0x3f7d7f[_0xf8f671(0xf7)]===Symbol&&_0x3f7d7f!==Symbol['prototype']?'symbol':typeof _0x3f7d7f;},_0x52d483(_0x4222cd);}function _0x4baf65(_0x54a08b,_0x20cfe3){const _0x2d1160=_0x1ee019;if(_0x52d483(_0x54a08b)!='object'||!_0x54a08b)return _0x54a08b;var _0x2bc59f=_0x54a08b[Symbol[_0x2d1160(0x10e)]];if(_0x2bc59f!==void 0x0){var _0x436295=_0x2bc59f['call'](_0x54a08b,_0x20cfe3||_0x2d1160(0xe0));if(_0x52d483(_0x436295)!=_0x2d1160(0xcc))return _0x436295;throw TypeError(_0x2d1160(0x11f));}return(_0x20cfe3==='string'?String:Number)(_0x54a08b);}function _0x328873(_0x43278e){const _0x330817=_0x1ee019;var _0x462b96=_0x4baf65(_0x43278e,_0x330817(0xdd));return _0x52d483(_0x462b96)==_0x330817(0x117)?_0x462b96:_0x462b96+'';}function _0x1f2da9(_0x54803c,_0x359c78,_0x409d13){const _0x18db15=_0x1ee019;return(_0x359c78=_0x328873(_0x359c78))in _0x54803c?Object[_0x18db15(0x102)](_0x54803c,_0x359c78,{'value':_0x409d13,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54803c[_0x359c78]=_0x409d13,_0x54803c;}let _0x44b582=class extends _0x283cc9[_0x1ee019(0xd0)]{constructor(_0x5242c8=_0x46d112,_0x389127,_0x4e3597){const _0x44aec6=_0x1ee019;super(),this[_0x44aec6(0xec)]=_0x5242c8,this['_configService']=_0x389127,this[_0x44aec6(0xd8)]=_0x4e3597;let {..._0x434fdd}=(0x0,_0x283cc9[_0x44aec6(0xd9)])({},_0x46d112,this[_0x44aec6(0xec)]);this['_configService'][_0x44aec6(0xe4)]('collaboration-client-node.config',_0x434fdd);}[_0x1ee019(0xce)](){const _0x546c0a=_0x1ee019;this[_0x546c0a(0x111)]();}[_0x1ee019(0x111)](){const _0x4a0bc1=_0x1ee019;(0x0,_0x283cc9[_0x4a0bc1(0x112)])(this[_0x4a0bc1(0xd8)],[[_0x3ba9c9[_0x4a0bc1(0x10a)],{'useClass':_0x30aa20}]]);}};_0x1f2da9(_0x44b582,_0x1ee019(0xda),_0x1ee019(0xe1)),_0x1f2da9(_0x44b582,_0x1ee019(0xfa),_0x535d99),_0x1f2da9(_0x44b582,_0x1ee019(0xf3),_0x218412),_0x44b582=_0x32e2c0([(0x0,_0x283cc9[_0x1ee019(0xf8)])(_0x3ebb5e[_0x1ee019(0xf5)],_0x3ba9c9[_0x1ee019(0xca)],_0x4779d5[_0x1ee019(0x113)],_0x36e02d[_0x1ee019(0x103)]),_0x54e5b1(0x1,_0x283cc9[_0x1ee019(0xe5)]),_0x54e5b1(0x2,(0x0,_0x283cc9[_0x1ee019(0x119)])(_0x283cc9[_0x1ee019(0xed)]))],_0x44b582);let _0x43a785=class extends _0x36e02d[_0x1ee019(0xdb)]{constructor(_0x54a2bd,_0x172a2b,_0x33d960,_0x24afad,_0x43c95b){const _0x98c81a=_0x1ee019;super(_0x54a2bd,_0x172a2b,_0x33d960,_0x24afad,_0x43c95b);let _0x30d1b5=this['_configService'][_0x98c81a(0x116)](_0x36e02d[_0x98c81a(0x10c)]);this[_0x98c81a(0x110)]['registerHTTPInterceptor']({'interceptor':(_0x157b09,_0x5bd56f)=>{const _0x13f5fc=_0x98c81a;let _0x3c11a6=_0x157b09[_0x13f5fc(0x121)];if(_0x30d1b5!=null&&_0x30d1b5['customHeaders']){for(let _0x5eb971 in _0x30d1b5['customHeaders'])_0x3c11a6[_0x13f5fc(0xe3)](_0x5eb971,_0x30d1b5[_0x13f5fc(0xdf)][_0x5eb971]);}return _0x5bd56f(_0x157b09);}});}async[_0x1ee019(0x10b)](_0x465d36){return this['_doCreateSocket'](_0x465d36);}};_0x43a785=_0x32e2c0([_0x54e5b1(0x0,(0x0,_0x283cc9[_0x1ee019(0x119)])(_0x283cc9[_0x1ee019(0xed)])),_0x54e5b1(0x1,(0x0,_0x283cc9[_0x1ee019(0x119)])(_0x3ba9c9[_0x1ee019(0xf2)])),_0x54e5b1(0x2,_0x283cc9[_0x1ee019(0xe5)]),_0x54e5b1(0x3,_0x283cc9[_0x1ee019(0xe9)]),_0x54e5b1(0x4,_0x4779d5[_0x1ee019(0xff)])],_0x43a785),Object[_0x1ee019(0x102)](_0x246147,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x43a785;}}),Object['defineProperty'](_0x246147,_0x1ee019(0xd2),{'enumerable':!0x0,'get':function(){return _0x44b582;}});}));function _0x320e(_0x47163d,_0x2bf40a){_0x47163d=_0x47163d-0xca;const _0x4f0f6b=_0x4f0f();let _0x320ee4=_0x4f0f6b[_0x47163d];return _0x320ee4;}function _0x4f0f(){const _0x44c1d=['@univerjs-pro/license','UniverLicensePlugin','next','constructor','DependentOn','addEventListener','packageName','toStringTag','iterator','Module','add','ISnapshotServerService','Observable','error','defineProperty','UniverCollaborationClientPlugin','1680064hZBpNC','open','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','1129035SPVsnk','@univerjs-pro/collaboration','function','ISocketService','createSocket','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','removeEventListener','toPrimitive','toDisposable','_httpService','_registerDependencies','registerDependencies','UniverCollaborationPlugin','length','@univerjs-pro/collaboration-client','getConfig','symbol','Disposable','Inject','1879920FLaAlc','exports','WebSocket','close','pipe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','headers','UniverNetworkPlugin','4hIHaze','object','1.0.2','onStarting','DisposableCollection','Plugin','_configService','UniverCollaborationClientNodePlugin','UniverProLicense','amd','@univerjs-pro/collaboration-client-node','5645060Tnqcxx','UniverProCollaboration','_injector','merge','pluginName','CollaborationSocketService','message','string','6WyViJp','customHeaders','default','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','share','set','setConfig','IConfigService','dispose','@univerjs/network','UniverProCollaborationClientNode','ILogService','rxjs','497894pRBQmw','_config','Injector','324766QsZndP','135086vvOvJD','3gxmzxW','UniverNetwork','HTTPService','version'];_0x4f0f=function(){return _0x44c1d;};return _0x4f0f();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -51,16 +51,16 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs-pro/collaboration": "1.0.1",
55
- "@univerjs-pro/collaboration-client": "1.0.1",
56
- "@univerjs-pro/license": "1.0.1",
57
- "@univerjs/core": "1.0.1",
58
- "@univerjs/network": "1.0.1",
54
+ "@univerjs-pro/collaboration": "1.0.2",
55
+ "@univerjs-pro/collaboration-client": "1.0.2",
56
+ "@univerjs-pro/license": "1.0.2",
57
+ "@univerjs/core": "1.0.2",
58
+ "@univerjs/network": "1.0.2",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.0.1",
63
+ "@univerjs-infra/shared": "1.0.2",
64
64
  "rxjs": "7.8.2",
65
65
  "typescript": "^6.0.3",
66
66
  "vitest": "^5.0.0"