@univerjs-pro/collaboration-client-node 1.3.0 → 1.3.1

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 _0x175573=_0x3ee2;(function(_0x33030c,_0x20ceb8){const _0x371261=_0x3ee2,_0x474450=_0x33030c();while(!![]){try{const _0x22d17b=parseInt(_0x371261(0xc3))/0x1*(-parseInt(_0x371261(0x7e))/0x2)+parseInt(_0x371261(0xbf))/0x3+parseInt(_0x371261(0xc0))/0x4*(-parseInt(_0x371261(0x86))/0x5)+-parseInt(_0x371261(0x8e))/0x6*(parseInt(_0x371261(0x92))/0x7)+parseInt(_0x371261(0x7f))/0x8*(-parseInt(_0x371261(0x96))/0x9)+parseInt(_0x371261(0xa3))/0xa+parseInt(_0x371261(0xc2))/0xb;if(_0x22d17b===_0x20ceb8)break;else _0x474450['push'](_0x474450['shift']());}catch(_0x5dc45d){_0x474450['push'](_0x474450['shift']());}}}(_0x33a3,0xe6ea1),Object['defineProperty'](exports,Symbol['toStringTag'],{'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');function _0x3ee2(_0x5c2e7d,_0x4609d7){_0x5c2e7d=_0x5c2e7d-0x7e;const _0x33a389=_0x33a3();let _0x3ee2b5=_0x33a389[_0x5c2e7d];return _0x3ee2b5;}var s=_0x175573(0xaa),c=_0x175573(0xb1);const l={};function u(_0x35ccec,_0x272f65){return function(_0x504b45,_0x4b4c26){_0x272f65(_0x504b45,_0x4b4c26,_0x35ccec);};}function _0x33a3(){const _0x329cb1=['_injector','collaboration-client-node.config','dispose','UniverCollaborationClientNodePlugin','string','createSocket','1.3.0','call','prototype','toDisposable','merge','NodeCollaborationSocketService','defineProperty','ISnapshotServerService','CollaborationSocketService','registerDependencies','share','headers','close','version','5360040mPKlmq','8YtBddJ','removeEventListener','18430247QTNYeJ','125ohziMH','getConfig','pipe','length','5998QpKNka','2952880OIraaP','registerHTTPInterceptor','DependentOn','Plugin','_registerDependencies','_httpService','default','566165fhXKDp','_configService','symbol','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','function','Observable','UniverCollaborationPlugin','UniverNetworkPlugin','864798gPzyGT','Inject','getOwnPropertyDescriptor','toPrimitive','7PMLAAa','iterator','Injector','_doCreateSocket','45KGdhxJ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','HTTPService','IConfigService','object','addEventListener','ILogService','customHeaders','_config','packageName','next','DisposableCollection','Disposable','746920JrDZKK','set','error','constructor','open','decorate','add','@univerjs-pro/collaboration-client-node'];_0x33a3=function(){return _0x329cb1;};return _0x33a3();}function d(_0x2ed409,_0x507ae0,_0x75709f,_0x286c40){const _0x345cdc=_0x175573;var _0x3f83f6=arguments['length'],_0x2e1b0b=_0x3f83f6<0x3?_0x507ae0:_0x286c40===null?_0x286c40=Object[_0x345cdc(0x90)](_0x507ae0,_0x75709f):_0x286c40,_0x58640e;if(typeof Reflect==_0x345cdc(0x9a)&&typeof Reflect[_0x345cdc(0xa8)]==_0x345cdc(0x8a))_0x2e1b0b=Reflect[_0x345cdc(0xa8)](_0x2ed409,_0x507ae0,_0x75709f,_0x286c40);else{for(var _0x26aacf=_0x2ed409[_0x345cdc(0xc6)]-0x1;_0x26aacf>=0x0;_0x26aacf--)(_0x58640e=_0x2ed409[_0x26aacf])&&(_0x2e1b0b=(_0x3f83f6<0x3?_0x58640e(_0x2e1b0b):_0x3f83f6>0x3?_0x58640e(_0x507ae0,_0x75709f,_0x2e1b0b):_0x58640e(_0x507ae0,_0x75709f))||_0x2e1b0b);}return _0x3f83f6>0x3&&_0x2e1b0b&&Object['defineProperty'](_0x507ae0,_0x75709f,_0x2e1b0b),_0x2e1b0b;}let f=class extends r[_0x175573(0xa2)]{constructor(_0x63f669){const _0x533fac=_0x175573;super(),this[_0x533fac(0x87)]=_0x63f669;}[_0x175573(0xb0)](_0x382025){const _0x9a74a6=_0x175573;var _0x3a32c8;let _0x13673a=((_0x3a32c8=this[_0x9a74a6(0x87)][_0x9a74a6(0xc4)](t[_0x9a74a6(0x89)]))==null?void 0x0:_0x3a32c8[_0x9a74a6(0x9d)])||{};try{let _0x503b7e=new o['WebSocket'](_0x382025,{'headers':{..._0x13673a}}),_0x1e4779=new r[(_0x9a74a6(0xa1))]();return{'URL':_0x382025,'close':(_0x194011,_0x9fadf9)=>{const _0x15b7cc=_0x9a74a6;_0x503b7e[_0x15b7cc(0xbd)](_0x194011,_0x9fadf9),_0x1e4779[_0x15b7cc(0xad)]();},'send':_0x54962c=>{_0x503b7e['send'](_0x54962c);},'open$':new a[(_0x9a74a6(0x8b))](_0x46e51a=>{const _0x2f3639=_0x9a74a6;let _0x1cef2e=_0xac19fa=>_0x46e51a['next'](_0xac19fa);_0x503b7e[_0x2f3639(0x9b)](_0x2f3639(0xa7),_0x1cef2e),_0x1e4779[_0x2f3639(0xa9)]((0x0,r[_0x2f3639(0xb4)])(()=>_0x503b7e[_0x2f3639(0xc1)](_0x2f3639(0xa7),_0x1cef2e)));})[_0x9a74a6(0xc5)]((0x0,a[_0x9a74a6(0xbb)])()),'close$':new a[(_0x9a74a6(0x8b))](_0x2d5bc3=>{const _0x445081=_0x9a74a6;let _0x5b6049=_0x558569=>_0x2d5bc3[_0x445081(0xa0)](_0x558569);_0x503b7e['addEventListener']('close',_0x5b6049),_0x1e4779['add']((0x0,r['toDisposable'])(()=>_0x503b7e['removeEventListener'](_0x445081(0xbd),_0x5b6049)));})[_0x9a74a6(0xc5)]((0x0,a[_0x9a74a6(0xbb)])()),'error$':new a[(_0x9a74a6(0x8b))](_0x23eab5=>{const _0x4e1052=_0x9a74a6;let _0x593af6=_0x1590c5=>_0x23eab5[_0x4e1052(0xa0)](_0x1590c5);_0x503b7e[_0x4e1052(0x9b)](_0x4e1052(0xa5),_0x593af6),_0x1e4779[_0x4e1052(0xa9)]((0x0,r[_0x4e1052(0xb4)])(()=>_0x503b7e[_0x4e1052(0xc1)](_0x4e1052(0xa5),_0x593af6)));})[_0x9a74a6(0xc5)]((0x0,a[_0x9a74a6(0xbb)])()),'message$':new a[(_0x9a74a6(0x8b))](_0x16137d=>{const _0x50bceb=_0x9a74a6;let _0x394066=_0x35dd0a=>_0x16137d['next'](_0x35dd0a);_0x503b7e[_0x50bceb(0x9b)]('message',_0x394066),_0x1e4779['add']((0x0,r[_0x50bceb(0xb4)])(()=>_0x503b7e[_0x50bceb(0xc1)]('message',_0x394066)));})[_0x9a74a6(0xc5)]((0x0,a[_0x9a74a6(0xbb)])())};}catch(_0x7ff6d1){return console[_0x9a74a6(0xa5)](_0x7ff6d1),null;}}};f=d([u(0x0,r[_0x175573(0x99)])],f);function p(_0x22754d){'@babel/helpers - typeof';const _0x50a215=_0x175573;return p=typeof Symbol==_0x50a215(0x8a)&&typeof Symbol[_0x50a215(0x93)]=='symbol'?function(_0x26e01f){return typeof _0x26e01f;}:function(_0x35b995){const _0x59651c=_0x50a215;return _0x35b995&&typeof Symbol==_0x59651c(0x8a)&&_0x35b995[_0x59651c(0xa6)]===Symbol&&_0x35b995!==Symbol[_0x59651c(0xb3)]?_0x59651c(0x88):typeof _0x35b995;},p(_0x22754d);}function m(_0x4e2ec1,_0x1f52c5){const _0xb2ab5d=_0x175573;if(p(_0x4e2ec1)!=_0xb2ab5d(0x9a)||!_0x4e2ec1)return _0x4e2ec1;var _0x11370a=_0x4e2ec1[Symbol[_0xb2ab5d(0x91)]];if(_0x11370a!==void 0x0){var _0x305a1a=_0x11370a[_0xb2ab5d(0xb2)](_0x4e2ec1,_0x1f52c5||_0xb2ab5d(0x85));if(p(_0x305a1a)!=_0xb2ab5d(0x9a))return _0x305a1a;throw TypeError(_0xb2ab5d(0x97));}return(_0x1f52c5===_0xb2ab5d(0xaf)?String:Number)(_0x4e2ec1);}function h(_0x539f0f){const _0x62417e=_0x175573;var _0x640dc=m(_0x539f0f,_0x62417e(0xaf));return p(_0x640dc)==_0x62417e(0x88)?_0x640dc:_0x640dc+'';}function g(_0x17ea61,_0x3be28a,_0x598031){const _0x2a82c2=_0x175573;return(_0x3be28a=h(_0x3be28a))in _0x17ea61?Object[_0x2a82c2(0xb7)](_0x17ea61,_0x3be28a,{'value':_0x598031,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17ea61[_0x3be28a]=_0x598031,_0x17ea61;}let _=class extends r[_0x175573(0x82)]{constructor(_0x174da5=l,_0x9cd722,_0x553b58){const _0x2c3e45=_0x175573;super(),this[_0x2c3e45(0x9e)]=_0x174da5,this['_configService']=_0x9cd722,this[_0x2c3e45(0xab)]=_0x553b58;let {..._0x580e75}=(0x0,r[_0x2c3e45(0xb5)])({},l,this['_config']);this[_0x2c3e45(0x87)]['setConfig'](_0x2c3e45(0xac),_0x580e75);}['onStarting'](){const _0x467ef4=_0x175573;this[_0x467ef4(0x83)]();}[_0x175573(0x83)](){const _0x5d1d8d=_0x175573;(0x0,r[_0x5d1d8d(0xba)])(this['_injector'],[[i['ISocketService'],{'useClass':f}]]);}};g(_,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,_0x175573(0x9f),s),g(_,_0x175573(0xbe),c),_=d([(0x0,r[_0x175573(0x81)])(n['UniverLicensePlugin'],i[_0x175573(0x8d)],e[_0x175573(0x8c)],t['UniverCollaborationClientPlugin']),u(0x1,r[_0x175573(0x99)]),u(0x2,(0x0,r['Inject'])(r[_0x175573(0x94)]))],_);let v=class extends t[_0x175573(0xb9)]{constructor(_0x124545,_0x4a1335,_0xe58c90,_0x317c18,_0xe2ee1b){const _0x4b244c=_0x175573;super(_0x124545,_0x4a1335,_0xe58c90,_0x317c18,_0xe2ee1b);let _0xa6f4ea=this[_0x4b244c(0x87)][_0x4b244c(0xc4)](t[_0x4b244c(0x89)]);this[_0x4b244c(0x84)][_0x4b244c(0x80)]({'interceptor':(_0xf49a9b,_0x2c38b3)=>{const _0x115af5=_0x4b244c;let _0x2eef24=_0xf49a9b[_0x115af5(0xbc)];if(_0xa6f4ea!=null&&_0xa6f4ea[_0x115af5(0x9d)]){for(let _0x1dea38 in _0xa6f4ea['customHeaders'])_0x2eef24[_0x115af5(0xa4)](_0x1dea38,_0xa6f4ea[_0x115af5(0x9d)][_0x1dea38]);}return _0x2c38b3(_0xf49a9b);}});}async['createSocket'](_0x17ddd4){const _0xd25654=_0x175573;return this[_0xd25654(0x95)](_0x17ddd4);}};v=d([u(0x0,(0x0,r[_0x175573(0x8f)])(r[_0x175573(0x94)])),u(0x1,(0x0,r['Inject'])(i[_0x175573(0x98)])),u(0x2,r['IConfigService']),u(0x3,r[_0x175573(0x9c)]),u(0x4,e[_0x175573(0xb8)])],v),Object[_0x175573(0xb7)](exports,_0x175573(0xb6),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x175573(0xb7)](exports,_0x175573(0xae),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x19b43e=_0x5501;(function(_0x3cc664,_0x793c04){const _0x980ddd=_0x5501,_0x4f3140=_0x3cc664();while(!![]){try{const _0x3a2cbf=parseInt(_0x980ddd(0x1cc))/0x1+-parseInt(_0x980ddd(0x1db))/0x2*(-parseInt(_0x980ddd(0x1d0))/0x3)+parseInt(_0x980ddd(0x1c8))/0x4*(parseInt(_0x980ddd(0x1d8))/0x5)+-parseInt(_0x980ddd(0x1c3))/0x6*(-parseInt(_0x980ddd(0x1c9))/0x7)+-parseInt(_0x980ddd(0x1d7))/0x8+-parseInt(_0x980ddd(0x1c7))/0x9*(parseInt(_0x980ddd(0x1fe))/0xa)+parseInt(_0x980ddd(0x1ed))/0xb;if(_0x3a2cbf===_0x793c04)break;else _0x4f3140['push'](_0x4f3140['shift']());}catch(_0x22317b){_0x4f3140['push'](_0x4f3140['shift']());}}}(_0x56d3,0xeeeca),Object[_0x19b43e(0x1ef)](exports,Symbol[_0x19b43e(0x1ee)],{'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=_0x19b43e(0x1be);const l={};function u(_0x122d3e,_0x4c6804){return function(_0x425998,_0x3cf72f){_0x4c6804(_0x425998,_0x3cf72f,_0x122d3e);};}function d(_0x4c4b47,_0x230df8,_0x41f2bd,_0x21767c){const _0x5bd8ca=_0x19b43e;var _0x263baf=arguments['length'],_0x1e8843=_0x263baf<0x3?_0x230df8:_0x21767c===null?_0x21767c=Object[_0x5bd8ca(0x1c0)](_0x230df8,_0x41f2bd):_0x21767c,_0x16f48c;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5bd8ca(0x1b8))_0x1e8843=Reflect[_0x5bd8ca(0x1c2)](_0x4c4b47,_0x230df8,_0x41f2bd,_0x21767c);else{for(var _0x5b63f7=_0x4c4b47[_0x5bd8ca(0x1bd)]-0x1;_0x5b63f7>=0x0;_0x5b63f7--)(_0x16f48c=_0x4c4b47[_0x5b63f7])&&(_0x1e8843=(_0x263baf<0x3?_0x16f48c(_0x1e8843):_0x263baf>0x3?_0x16f48c(_0x230df8,_0x41f2bd,_0x1e8843):_0x16f48c(_0x230df8,_0x41f2bd))||_0x1e8843);}return _0x263baf>0x3&&_0x1e8843&&Object[_0x5bd8ca(0x1ef)](_0x230df8,_0x41f2bd,_0x1e8843),_0x1e8843;}function _0x5501(_0x49a12,_0x361ade){_0x49a12=_0x49a12-0x1b7;const _0x56d352=_0x56d3();let _0x550187=_0x56d352[_0x49a12];return _0x550187;}let f=class extends r[_0x19b43e(0x1d9)]{constructor(_0x32cff2){const _0x5b1f37=_0x19b43e;super(),this[_0x5b1f37(0x1ba)]=_0x32cff2;}[_0x19b43e(0x1d1)](_0xa6014b){const _0x2450ae=_0x19b43e;var _0x5890f0;let _0x2d5899=((_0x5890f0=this[_0x2450ae(0x1ba)][_0x2450ae(0x1dd)](t[_0x2450ae(0x1f8)]))==null?void 0x0:_0x5890f0['customHeaders'])||{};try{let _0x42a305=new o[(_0x2450ae(0x1e1))](_0xa6014b,{'headers':{..._0x2d5899}}),_0x15a995=new r[(_0x2450ae(0x1e5))]();return{'URL':_0xa6014b,'close':(_0x3a244b,_0x22fad8)=>{const _0x25c1d0=_0x2450ae;_0x42a305[_0x25c1d0(0x1c5)](_0x3a244b,_0x22fad8),_0x15a995[_0x25c1d0(0x1bf)]();},'send':_0x37caea=>{const _0x3da734=_0x2450ae;_0x42a305[_0x3da734(0x1bb)](_0x37caea);},'open$':new a[(_0x2450ae(0x1cd))](_0x4696e7=>{const _0x214dda=_0x2450ae;let _0x51e9ab=_0x7e3aea=>_0x4696e7[_0x214dda(0x1da)](_0x7e3aea);_0x42a305['addEventListener']('open',_0x51e9ab),_0x15a995['add']((0x0,r[_0x214dda(0x1dc)])(()=>_0x42a305[_0x214dda(0x1d2)](_0x214dda(0x1e4),_0x51e9ab)));})[_0x2450ae(0x1b7)]((0x0,a[_0x2450ae(0x1e0)])()),'close$':new a['Observable'](_0x45728d=>{const _0x544cd2=_0x2450ae;let _0x31a708=_0x546ec3=>_0x45728d[_0x544cd2(0x1da)](_0x546ec3);_0x42a305[_0x544cd2(0x1f5)]('close',_0x31a708),_0x15a995['add']((0x0,r[_0x544cd2(0x1dc)])(()=>_0x42a305[_0x544cd2(0x1d2)](_0x544cd2(0x1c5),_0x31a708)));})[_0x2450ae(0x1b7)]((0x0,a[_0x2450ae(0x1e0)])()),'error$':new a['Observable'](_0x29e933=>{const _0x2051fb=_0x2450ae;let _0x3093d4=_0x4a7851=>_0x29e933[_0x2051fb(0x1da)](_0x4a7851);_0x42a305[_0x2051fb(0x1f5)](_0x2051fb(0x1c6),_0x3093d4),_0x15a995['add']((0x0,r[_0x2051fb(0x1dc)])(()=>_0x42a305[_0x2051fb(0x1d2)]('error',_0x3093d4)));})[_0x2450ae(0x1b7)]((0x0,a[_0x2450ae(0x1e0)])()),'message$':new a[(_0x2450ae(0x1cd))](_0x4459dc=>{const _0xa350ac=_0x2450ae;let _0x42af7e=_0x438c0c=>_0x4459dc['next'](_0x438c0c);_0x42a305[_0xa350ac(0x1f5)]('message',_0x42af7e),_0x15a995[_0xa350ac(0x1e6)]((0x0,r[_0xa350ac(0x1dc)])(()=>_0x42a305[_0xa350ac(0x1d2)](_0xa350ac(0x1f1),_0x42af7e)));})[_0x2450ae(0x1b7)]((0x0,a['share'])())};}catch(_0x224c65){return console['error'](_0x224c65),null;}}};f=d([u(0x0,r[_0x19b43e(0x1f2)])],f);function p(_0x4104cc){'@babel/helpers - typeof';const _0x3503e3=_0x19b43e;return p=typeof Symbol=='function'&&typeof Symbol[_0x3503e3(0x1e3)]==_0x3503e3(0x1e8)?function(_0x249e6e){return typeof _0x249e6e;}:function(_0x25596a){const _0x592d1c=_0x3503e3;return _0x25596a&&typeof Symbol==_0x592d1c(0x1b8)&&_0x25596a[_0x592d1c(0x1e2)]===Symbol&&_0x25596a!==Symbol['prototype']?_0x592d1c(0x1e8):typeof _0x25596a;},p(_0x4104cc);}function m(_0x3bda2d,_0x218596){const _0x3cd6ef=_0x19b43e;if(p(_0x3bda2d)!='object'||!_0x3bda2d)return _0x3bda2d;var _0x3cf574=_0x3bda2d[Symbol[_0x3cd6ef(0x1d4)]];if(_0x3cf574!==void 0x0){var _0x4274e3=_0x3cf574[_0x3cd6ef(0x1f6)](_0x3bda2d,_0x218596||_0x3cd6ef(0x1cb));if(p(_0x4274e3)!='object')return _0x4274e3;throw TypeError(_0x3cd6ef(0x1eb));}return(_0x218596==='string'?String:Number)(_0x3bda2d);}function h(_0x19f298){var _0x489b0b=m(_0x19f298,'string');return p(_0x489b0b)=='symbol'?_0x489b0b:_0x489b0b+'';}function g(_0x247e6b,_0x2ca4ee,_0x5c64c0){return(_0x2ca4ee=h(_0x2ca4ee))in _0x247e6b?Object['defineProperty'](_0x247e6b,_0x2ca4ee,{'value':_0x5c64c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x247e6b[_0x2ca4ee]=_0x5c64c0,_0x247e6b;}let _=class extends r[_0x19b43e(0x1bc)]{constructor(_0x4caec5=l,_0xbb8460,_0x1e97ab){const _0x7477ef=_0x19b43e;super(),this[_0x7477ef(0x1fa)]=_0x4caec5,this[_0x7477ef(0x1ba)]=_0xbb8460,this['_injector']=_0x1e97ab;let {..._0x11a5e6}=(0x0,r[_0x7477ef(0x1c1)])({},l,this[_0x7477ef(0x1fa)]);this[_0x7477ef(0x1ba)][_0x7477ef(0x1ce)](_0x7477ef(0x1f7),_0x11a5e6);}[_0x19b43e(0x1d6)](){const _0xe50ea1=_0x19b43e;this[_0xe50ea1(0x1ec)]();}[_0x19b43e(0x1ec)](){const _0x13ccf9=_0x19b43e;(0x0,r[_0x13ccf9(0x1fc)])(this[_0x13ccf9(0x1b9)],[[i[_0x13ccf9(0x1e7)],{'useClass':f}]]);}};g(_,'pluginName',_0x19b43e(0x1f4)),g(_,'packageName',s),g(_,'version',c),_=d([(0x0,r[_0x19b43e(0x1f3)])(n[_0x19b43e(0x1cf)],i[_0x19b43e(0x1de)],e['UniverCollaborationPlugin'],t[_0x19b43e(0x1fd)]),u(0x1,r[_0x19b43e(0x1f2)]),u(0x2,(0x0,r[_0x19b43e(0x1df)])(r[_0x19b43e(0x1d5)]))],_);function _0x56d3(){const _0x26179e=['Observable','setConfig','UniverLicensePlugin','54012eNICFB','createSocket','removeEventListener','HTTPService','toPrimitive','Injector','onStarting','13196032YDgikq','74380oWWdZn','Disposable','next','148BZjxeQ','toDisposable','getConfig','UniverNetworkPlugin','Inject','share','WebSocket','constructor','iterator','open','DisposableCollection','add','ISocketService','symbol','customHeaders','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_registerDependencies','10549616aywcXV','toStringTag','defineProperty','_doCreateSocket','message','IConfigService','DependentOn','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','addEventListener','call','collaboration-client-node.config','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','CollaborationSocketService','_config','NodeCollaborationSocketService','registerDependencies','UniverCollaborationClientPlugin','10UzrQTM','pipe','function','_injector','_configService','send','Plugin','length','1.3.1','dispose','getOwnPropertyDescriptor','merge','decorate','5166732ReZSKo','ILogService','close','error','10434717SwGxpB','128raeOzd','7BLHFPR','UniverCollaborationClientNodePlugin','default','159045sxbFuv'];_0x56d3=function(){return _0x26179e;};return _0x56d3();}let v=class extends t[_0x19b43e(0x1f9)]{constructor(_0x47be6e,_0x23b76c,_0x5656a2,_0x35ac2f,_0x1eadc9){const _0x260e15=_0x19b43e;super(_0x47be6e,_0x23b76c,_0x5656a2,_0x35ac2f,_0x1eadc9);let _0x44ef5c=this['_configService'][_0x260e15(0x1dd)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x328c74,_0x3e98af)=>{const _0x28bceb=_0x260e15;let _0x47bcd3=_0x328c74['headers'];if(_0x44ef5c!=null&&_0x44ef5c[_0x28bceb(0x1e9)]){for(let _0x351108 in _0x44ef5c['customHeaders'])_0x47bcd3[_0x28bceb(0x1ea)](_0x351108,_0x44ef5c[_0x28bceb(0x1e9)][_0x351108]);}return _0x3e98af(_0x328c74);}});}async[_0x19b43e(0x1d1)](_0x1b33c8){const _0x4fb193=_0x19b43e;return this[_0x4fb193(0x1f0)](_0x1b33c8);}};v=d([u(0x0,(0x0,r[_0x19b43e(0x1df)])(r['Injector'])),u(0x1,(0x0,r[_0x19b43e(0x1df)])(i[_0x19b43e(0x1d3)])),u(0x2,r[_0x19b43e(0x1f2)]),u(0x3,r[_0x19b43e(0x1c4)]),u(0x4,e['ISnapshotServerService'])],v),Object[_0x19b43e(0x1ef)](exports,_0x19b43e(0x1fb),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x19b43e(0x1ef)](exports,_0x19b43e(0x1ca),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x185c3f=_0x1a89;(function(_0x479a0c,_0x1503dc){const _0x5c5f36=_0x1a89,_0x3baa6a=_0x479a0c();while(!![]){try{const _0x117ccc=-parseInt(_0x5c5f36(0x12b))/0x1+parseInt(_0x5c5f36(0x11f))/0x2+-parseInt(_0x5c5f36(0xfe))/0x3+parseInt(_0x5c5f36(0xfd))/0x4*(-parseInt(_0x5c5f36(0x11b))/0x5)+parseInt(_0x5c5f36(0x110))/0x6+parseInt(_0x5c5f36(0xff))/0x7+-parseInt(_0x5c5f36(0x10b))/0x8*(parseInt(_0x5c5f36(0x111))/0x9);if(_0x117ccc===_0x1503dc)break;else _0x3baa6a['push'](_0x3baa6a['shift']());}catch(_0x4ff8d){_0x3baa6a['push'](_0x3baa6a['shift']());}}}(_0x3e9a,0xa8a78));import{ISnapshotServerService as _0x1a3457,UniverCollaborationPlugin as _0x52db28}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2d2af2,CollaborationSocketService as _0x2a33c0,UniverCollaborationClientPlugin as _0x5dd016}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x50ba0b}from'@univerjs-pro/license';import{DependentOn as _0xf720e8,Disposable as _0x535ed3,DisposableCollection as _0x463a40,IConfigService as _0x52ac4f,ILogService as _0x1d2698,Inject as _0x1f3d20,Injector as _0x2aca6b,Plugin as _0x39bb44,merge as _0x4c90a6,registerDependencies as _0x369d8b,toDisposable as _0x2aa8e9}from'@univerjs/core';import{HTTPService as _0x4f8b71,ISocketService as _0x456d2c,UniverNetworkPlugin as _0x3ae5c9}from'@univerjs/network';import{Observable as _0x3a44fb,share as _0x470873}from'rxjs';import{WebSocket as _0xf52bcd}from'ws';var C=_0x185c3f(0x101),w='1.3.0';const T={};function E(_0x4ce9a0,_0x5d7331){return function(_0x21e229,_0x5b45fe){_0x5d7331(_0x21e229,_0x5b45fe,_0x4ce9a0);};}function D(_0x242741,_0x4f2cd7,_0x5b6d46,_0x1c8d04){const _0x361d6c=_0x185c3f;var _0x348d23=arguments[_0x361d6c(0x12a)],_0x289847=_0x348d23<0x3?_0x4f2cd7:_0x1c8d04===null?_0x1c8d04=Object[_0x361d6c(0x10d)](_0x4f2cd7,_0x5b6d46):_0x1c8d04,_0x1f4f56;if(typeof Reflect==_0x361d6c(0x121)&&typeof Reflect['decorate']==_0x361d6c(0x105))_0x289847=Reflect[_0x361d6c(0x124)](_0x242741,_0x4f2cd7,_0x5b6d46,_0x1c8d04);else{for(var _0x531918=_0x242741[_0x361d6c(0x12a)]-0x1;_0x531918>=0x0;_0x531918--)(_0x1f4f56=_0x242741[_0x531918])&&(_0x289847=(_0x348d23<0x3?_0x1f4f56(_0x289847):_0x348d23>0x3?_0x1f4f56(_0x4f2cd7,_0x5b6d46,_0x289847):_0x1f4f56(_0x4f2cd7,_0x5b6d46))||_0x289847);}return _0x348d23>0x3&&_0x289847&&Object[_0x361d6c(0x102)](_0x4f2cd7,_0x5b6d46,_0x289847),_0x289847;}let O=class extends _0x535ed3{constructor(_0x235adc){const _0x3496f0=_0x185c3f;super(),this[_0x3496f0(0x128)]=_0x235adc;}['createSocket'](_0x4fdce3){const _0x23c46c=_0x185c3f;var _0x45f56a;let _0x5c9d94=((_0x45f56a=this['_configService'][_0x23c46c(0x107)](_0x2d2af2))==null?void 0x0:_0x45f56a[_0x23c46c(0x11e)])||{};try{let _0x2e20d8=new _0xf52bcd(_0x4fdce3,{'headers':{..._0x5c9d94}}),_0x197526=new _0x463a40();return{'URL':_0x4fdce3,'close':(_0x5bcffa,_0x4dfef6)=>{const _0x195059=_0x23c46c;_0x2e20d8[_0x195059(0x106)](_0x5bcffa,_0x4dfef6),_0x197526[_0x195059(0x100)]();},'send':_0x1c2013=>{const _0x4cf702=_0x23c46c;_0x2e20d8[_0x4cf702(0x104)](_0x1c2013);},'open$':new _0x3a44fb(_0x1cca6b=>{const _0x1fb1b9=_0x23c46c;let _0x45b37e=_0x5e37c2=>_0x1cca6b[_0x1fb1b9(0x126)](_0x5e37c2);_0x2e20d8[_0x1fb1b9(0x11d)](_0x1fb1b9(0x11a),_0x45b37e),_0x197526[_0x1fb1b9(0xfc)](_0x2aa8e9(()=>_0x2e20d8[_0x1fb1b9(0x113)](_0x1fb1b9(0x11a),_0x45b37e)));})['pipe'](_0x470873()),'close$':new _0x3a44fb(_0x3af7e2=>{const _0x4f8ce0=_0x23c46c;let _0x1765c9=_0x5b871c=>_0x3af7e2[_0x4f8ce0(0x126)](_0x5b871c);_0x2e20d8[_0x4f8ce0(0x11d)](_0x4f8ce0(0x106),_0x1765c9),_0x197526[_0x4f8ce0(0xfc)](_0x2aa8e9(()=>_0x2e20d8[_0x4f8ce0(0x113)](_0x4f8ce0(0x106),_0x1765c9)));})[_0x23c46c(0x10c)](_0x470873()),'error$':new _0x3a44fb(_0x200678=>{const _0x5a8272=_0x23c46c;let _0x344739=_0x8082ae=>_0x200678[_0x5a8272(0x126)](_0x8082ae);_0x2e20d8[_0x5a8272(0x11d)](_0x5a8272(0x120),_0x344739),_0x197526[_0x5a8272(0xfc)](_0x2aa8e9(()=>_0x2e20d8[_0x5a8272(0x113)](_0x5a8272(0x120),_0x344739)));})['pipe'](_0x470873()),'message$':new _0x3a44fb(_0x460c5d=>{const _0x2379bf=_0x23c46c;let _0x3d2445=_0x324bf3=>_0x460c5d[_0x2379bf(0x126)](_0x324bf3);_0x2e20d8[_0x2379bf(0x11d)]('message',_0x3d2445),_0x197526['add'](_0x2aa8e9(()=>_0x2e20d8['removeEventListener'](_0x2379bf(0x122),_0x3d2445)));})[_0x23c46c(0x10c)](_0x470873())};}catch(_0x514748){return console[_0x23c46c(0x120)](_0x514748),null;}}};function _0x1a89(_0x2a83bb,_0x5b445f){_0x2a83bb=_0x2a83bb-0xfa;const _0x3e9a62=_0x3e9a();let _0x1a8980=_0x3e9a62[_0x2a83bb];return _0x1a8980;}O=D([E(0x0,_0x52ac4f)],O);function k(_0x51bd9b){'@babel/helpers - typeof';const _0x2699d1=_0x185c3f;return k=typeof Symbol==_0x2699d1(0x105)&&typeof Symbol[_0x2699d1(0x108)]==_0x2699d1(0x114)?function(_0x529f23){return typeof _0x529f23;}:function(_0x4d76e4){const _0x1cece5=_0x2699d1;return _0x4d76e4&&typeof Symbol==_0x1cece5(0x105)&&_0x4d76e4[_0x1cece5(0x10e)]===Symbol&&_0x4d76e4!==Symbol[_0x1cece5(0x112)]?'symbol':typeof _0x4d76e4;},k(_0x51bd9b);}function A(_0x5ac4c7,_0x351678){const _0x15544d=_0x185c3f;if(k(_0x5ac4c7)!=_0x15544d(0x121)||!_0x5ac4c7)return _0x5ac4c7;var _0xafdae1=_0x5ac4c7[Symbol[_0x15544d(0x11c)]];if(_0xafdae1!==void 0x0){var _0x1ebc7b=_0xafdae1[_0x15544d(0x118)](_0x5ac4c7,_0x351678||_0x15544d(0x10f));if(k(_0x1ebc7b)!=_0x15544d(0x121))return _0x1ebc7b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x351678==='string'?String:Number)(_0x5ac4c7);}function j(_0x20a6f9){const _0x53b565=_0x185c3f;var _0x1fd35d=A(_0x20a6f9,_0x53b565(0x125));return k(_0x1fd35d)==_0x53b565(0x114)?_0x1fd35d:_0x1fd35d+'';}function M(_0x38dfbb,_0x5dda3b,_0x398620){const _0xb31216=_0x185c3f;return(_0x5dda3b=j(_0x5dda3b))in _0x38dfbb?Object[_0xb31216(0x102)](_0x38dfbb,_0x5dda3b,{'value':_0x398620,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x38dfbb[_0x5dda3b]=_0x398620,_0x38dfbb;}let N=class extends _0x39bb44{constructor(_0x46d717=T,_0x4b9823,_0x124753){const _0x2ec38c=_0x185c3f;super(),this[_0x2ec38c(0x119)]=_0x46d717,this[_0x2ec38c(0x128)]=_0x4b9823,this[_0x2ec38c(0x109)]=_0x124753;let {..._0x582f6c}=_0x4c90a6({},T,this[_0x2ec38c(0x119)]);this[_0x2ec38c(0x128)][_0x2ec38c(0x116)](_0x2ec38c(0x117),_0x582f6c);}[_0x185c3f(0x127)](){const _0x3bcc2e=_0x185c3f;this[_0x3bcc2e(0x10a)]();}['_registerDependencies'](){const _0x282f8f=_0x185c3f;_0x369d8b(this[_0x282f8f(0x109)],[[_0x456d2c,{'useClass':O}]]);}};M(N,'pluginName',_0x185c3f(0x123)),M(N,'packageName',C),M(N,_0x185c3f(0x103),w),N=D([_0xf720e8(_0x50ba0b,_0x3ae5c9,_0x52db28,_0x5dd016),E(0x1,_0x52ac4f),E(0x2,_0x1f3d20(_0x2aca6b))],N);let P=class extends _0x2a33c0{constructor(_0x3452b6,_0x40e8e6,_0x29590d,_0x541aa4,_0x435c1a){const _0x407e6c=_0x185c3f;super(_0x3452b6,_0x40e8e6,_0x29590d,_0x541aa4,_0x435c1a);let _0x290a76=this['_configService']['getConfig'](_0x2d2af2);this[_0x407e6c(0x129)][_0x407e6c(0xfa)]({'interceptor':(_0x4c22cb,_0x2920f0)=>{const _0x16a018=_0x407e6c;let _0x381926=_0x4c22cb['headers'];if(_0x290a76!=null&&_0x290a76['customHeaders']){for(let _0x553cf4 in _0x290a76[_0x16a018(0x11e)])_0x381926[_0x16a018(0xfb)](_0x553cf4,_0x290a76[_0x16a018(0x11e)][_0x553cf4]);}return _0x2920f0(_0x4c22cb);}});}async[_0x185c3f(0x115)](_0x303265){return this['_doCreateSocket'](_0x303265);}};P=D([E(0x0,_0x1f3d20(_0x2aca6b)),E(0x1,_0x1f3d20(_0x4f8b71)),E(0x2,_0x52ac4f),E(0x3,_0x1d2698),E(0x4,_0x1a3457)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x3e9a(){const _0x56db2e=['removeEventListener','symbol','createSocket','setConfig','collaboration-client-node.config','call','_config','open','5CSXlVB','toPrimitive','addEventListener','customHeaders','2505562yQbWKR','error','object','message','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','decorate','string','next','onStarting','_configService','_httpService','length','798305ovWPsF','registerHTTPInterceptor','set','add','2418604RpmyAs','527685dWDNVm','7520765cDKkEG','dispose','@univerjs-pro/collaboration-client-node','defineProperty','version','send','function','close','getConfig','iterator','_injector','_registerDependencies','3336KzOmhA','pipe','getOwnPropertyDescriptor','constructor','default','7843944bQwhFc','29457xMbXqq','prototype'];_0x3e9a=function(){return _0x56db2e;};return _0x3e9a();}
1
+ function _0x2568(_0x34c56c,_0x3a12d1){_0x34c56c=_0x34c56c-0x13f;const _0x2c1d3b=_0x2c1d();let _0x2568c6=_0x2c1d3b[_0x34c56c];return _0x2568c6;}const _0x3ed49b=_0x2568;(function(_0x3b1be8,_0x2110a0){const _0x4d09ff=_0x2568,_0x3c7b43=_0x3b1be8();while(!![]){try{const _0x3d072f=-parseInt(_0x4d09ff(0x140))/0x1*(parseInt(_0x4d09ff(0x145))/0x2)+-parseInt(_0x4d09ff(0x169))/0x3+parseInt(_0x4d09ff(0x15a))/0x4*(-parseInt(_0x4d09ff(0x161))/0x5)+-parseInt(_0x4d09ff(0x15d))/0x6*(parseInt(_0x4d09ff(0x15c))/0x7)+-parseInt(_0x4d09ff(0x16b))/0x8*(parseInt(_0x4d09ff(0x154))/0x9)+parseInt(_0x4d09ff(0x14c))/0xa*(parseInt(_0x4d09ff(0x153))/0xb)+-parseInt(_0x4d09ff(0x143))/0xc*(-parseInt(_0x4d09ff(0x151))/0xd);if(_0x3d072f===_0x2110a0)break;else _0x3c7b43['push'](_0x3c7b43['shift']());}catch(_0x4ed8d7){_0x3c7b43['push'](_0x3c7b43['shift']());}}}(_0x2c1d,0xf1052));import{ISnapshotServerService as _0x12d40d,UniverCollaborationPlugin as _0x247ccd}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2b8ddf,CollaborationSocketService as _0x405c78,UniverCollaborationClientPlugin as _0x28d393}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x253fce}from'@univerjs-pro/license';import{DependentOn as _0xd9fdd5,Disposable as _0x2958fe,DisposableCollection as _0x40c93b,IConfigService as _0x3c1060,ILogService as _0x385b76,Inject as _0x1dd1db,Injector as _0x1464a6,Plugin as _0xea637b,merge as _0x592ba3,registerDependencies as _0x3fe490,toDisposable as _0x1cd99c}from'@univerjs/core';import{HTTPService as _0x1d6519,ISocketService as _0x5a2968,UniverNetworkPlugin as _0x283729}from'@univerjs/network';import{Observable as _0x543202,share as _0x170ea9}from'rxjs';function _0x2c1d(){const _0x376f96=['headers','_httpService','toPrimitive','set','_config','1708rMDfWz','createSocket','705061YoafYY','84gONUHz','version','pipe','setConfig','1685CzyGzX','customHeaders','next','default','message','getOwnPropertyDescriptor','decorate','1.3.1','4434684fUjVNc','defineProperty','8BDDPhV','prototype','_registerDependencies','_injector','add','registerHTTPInterceptor','iterator','@univerjs-pro/collaboration-client-node','error','length','onStarting','31mXJUFP','addEventListener','send','53024808jiNpKI','close','55696jPTdiv','symbol','getConfig','open','packageName','removeEventListener','_configService','41050VKeDdZ','function','string','object','constructor','13rRctmV','pluginName','1958JQtgpt','2400021bQHmhs'];_0x2c1d=function(){return _0x376f96;};return _0x2c1d();}import{WebSocket as _0x24ba19}from'ws';var C=_0x3ed49b(0x172),w=_0x3ed49b(0x168);const T={};function E(_0x15096d,_0x4aa84e){return function(_0xaabefb,_0x1e72b2){_0x4aa84e(_0xaabefb,_0x1e72b2,_0x15096d);};}function D(_0x17a492,_0x369697,_0x97ab39,_0x36e575){const _0x1884f3=_0x3ed49b;var _0x4b03ca=arguments[_0x1884f3(0x174)],_0x4a7ecd=_0x4b03ca<0x3?_0x369697:_0x36e575===null?_0x36e575=Object[_0x1884f3(0x166)](_0x369697,_0x97ab39):_0x36e575,_0x4a80d1;if(typeof Reflect==_0x1884f3(0x14f)&&typeof Reflect[_0x1884f3(0x167)]==_0x1884f3(0x14d))_0x4a7ecd=Reflect['decorate'](_0x17a492,_0x369697,_0x97ab39,_0x36e575);else{for(var _0x1adf98=_0x17a492[_0x1884f3(0x174)]-0x1;_0x1adf98>=0x0;_0x1adf98--)(_0x4a80d1=_0x17a492[_0x1adf98])&&(_0x4a7ecd=(_0x4b03ca<0x3?_0x4a80d1(_0x4a7ecd):_0x4b03ca>0x3?_0x4a80d1(_0x369697,_0x97ab39,_0x4a7ecd):_0x4a80d1(_0x369697,_0x97ab39))||_0x4a7ecd);}return _0x4b03ca>0x3&&_0x4a7ecd&&Object['defineProperty'](_0x369697,_0x97ab39,_0x4a7ecd),_0x4a7ecd;}let O=class extends _0x2958fe{constructor(_0x1203cb){super(),this['_configService']=_0x1203cb;}[_0x3ed49b(0x15b)](_0x514da7){const _0x473ca4=_0x3ed49b;var _0x2947b9;let _0x3da7a2=((_0x2947b9=this[_0x473ca4(0x14b)][_0x473ca4(0x147)](_0x2b8ddf))==null?void 0x0:_0x2947b9['customHeaders'])||{};try{let _0x1ff457=new _0x24ba19(_0x514da7,{'headers':{..._0x3da7a2}}),_0x5669e5=new _0x40c93b();return{'URL':_0x514da7,'close':(_0xbe1ee3,_0x4fb394)=>{const _0x5d1016=_0x473ca4;_0x1ff457[_0x5d1016(0x144)](_0xbe1ee3,_0x4fb394),_0x5669e5['dispose']();},'send':_0x2aaf35=>{const _0x29b77b=_0x473ca4;_0x1ff457[_0x29b77b(0x142)](_0x2aaf35);},'open$':new _0x543202(_0x1fd000=>{const _0x15c8e9=_0x473ca4;let _0x51474e=_0x52625d=>_0x1fd000[_0x15c8e9(0x163)](_0x52625d);_0x1ff457[_0x15c8e9(0x141)](_0x15c8e9(0x148),_0x51474e),_0x5669e5[_0x15c8e9(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x15c8e9(0x14a)](_0x15c8e9(0x148),_0x51474e)));})[_0x473ca4(0x15f)](_0x170ea9()),'close$':new _0x543202(_0x48dddc=>{const _0x560941=_0x473ca4;let _0x2d5531=_0x22a694=>_0x48dddc[_0x560941(0x163)](_0x22a694);_0x1ff457['addEventListener'](_0x560941(0x144),_0x2d5531),_0x5669e5[_0x560941(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x560941(0x14a)](_0x560941(0x144),_0x2d5531)));})['pipe'](_0x170ea9()),'error$':new _0x543202(_0x853607=>{const _0x48af71=_0x473ca4;let _0x53f4ac=_0x2b4543=>_0x853607['next'](_0x2b4543);_0x1ff457[_0x48af71(0x141)](_0x48af71(0x173),_0x53f4ac),_0x5669e5[_0x48af71(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x48af71(0x14a)](_0x48af71(0x173),_0x53f4ac)));})['pipe'](_0x170ea9()),'message$':new _0x543202(_0x43ad72=>{const _0x5ccb40=_0x473ca4;let _0x3c1269=_0x594c67=>_0x43ad72[_0x5ccb40(0x163)](_0x594c67);_0x1ff457[_0x5ccb40(0x141)](_0x5ccb40(0x165),_0x3c1269),_0x5669e5[_0x5ccb40(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x5ccb40(0x14a)](_0x5ccb40(0x165),_0x3c1269)));})['pipe'](_0x170ea9())};}catch(_0x5de2e9){return console['error'](_0x5de2e9),null;}}};O=D([E(0x0,_0x3c1060)],O);function k(_0x3a2880){'@babel/helpers - typeof';const _0x5eca6b=_0x3ed49b;return k=typeof Symbol==_0x5eca6b(0x14d)&&typeof Symbol[_0x5eca6b(0x171)]==_0x5eca6b(0x146)?function(_0x166943){return typeof _0x166943;}:function(_0x40e748){const _0x77d203=_0x5eca6b;return _0x40e748&&typeof Symbol==_0x77d203(0x14d)&&_0x40e748[_0x77d203(0x150)]===Symbol&&_0x40e748!==Symbol[_0x77d203(0x16c)]?_0x77d203(0x146):typeof _0x40e748;},k(_0x3a2880);}function A(_0x142f86,_0x1b278e){const _0x2831a2=_0x3ed49b;if(k(_0x142f86)!=_0x2831a2(0x14f)||!_0x142f86)return _0x142f86;var _0x1a0ccd=_0x142f86[Symbol[_0x2831a2(0x157)]];if(_0x1a0ccd!==void 0x0){var _0x472441=_0x1a0ccd['call'](_0x142f86,_0x1b278e||_0x2831a2(0x164));if(k(_0x472441)!=_0x2831a2(0x14f))return _0x472441;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b278e===_0x2831a2(0x14e)?String:Number)(_0x142f86);}function j(_0x881ed4){const _0x2e20ec=_0x3ed49b;var _0x545ad8=A(_0x881ed4,_0x2e20ec(0x14e));return k(_0x545ad8)==_0x2e20ec(0x146)?_0x545ad8:_0x545ad8+'';}function M(_0x45e617,_0x22f246,_0x14297c){const _0x135de2=_0x3ed49b;return(_0x22f246=j(_0x22f246))in _0x45e617?Object[_0x135de2(0x16a)](_0x45e617,_0x22f246,{'value':_0x14297c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e617[_0x22f246]=_0x14297c,_0x45e617;}let N=class extends _0xea637b{constructor(_0x9a8666=T,_0x47d2db,_0x475b0e){const _0x1d7fe6=_0x3ed49b;super(),this['_config']=_0x9a8666,this[_0x1d7fe6(0x14b)]=_0x47d2db,this['_injector']=_0x475b0e;let {..._0xad2b1f}=_0x592ba3({},T,this[_0x1d7fe6(0x159)]);this['_configService'][_0x1d7fe6(0x160)]('collaboration-client-node.config',_0xad2b1f);}[_0x3ed49b(0x13f)](){this['_registerDependencies']();}[_0x3ed49b(0x16d)](){const _0x4b95ea=_0x3ed49b;_0x3fe490(this[_0x4b95ea(0x16e)],[[_0x5a2968,{'useClass':O}]]);}};M(N,_0x3ed49b(0x152),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x3ed49b(0x149),C),M(N,_0x3ed49b(0x15e),w),N=D([_0xd9fdd5(_0x253fce,_0x283729,_0x247ccd,_0x28d393),E(0x1,_0x3c1060),E(0x2,_0x1dd1db(_0x1464a6))],N);let P=class extends _0x405c78{constructor(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401){const _0x224f03=_0x3ed49b;super(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401);let _0x5c9a53=this[_0x224f03(0x14b)]['getConfig'](_0x2b8ddf);this[_0x224f03(0x156)][_0x224f03(0x170)]({'interceptor':(_0x5511a4,_0x114cb0)=>{const _0x4bdc72=_0x224f03;let _0x157b15=_0x5511a4[_0x4bdc72(0x155)];if(_0x5c9a53!=null&&_0x5c9a53[_0x4bdc72(0x162)]){for(let _0x25bc70 in _0x5c9a53[_0x4bdc72(0x162)])_0x157b15[_0x4bdc72(0x158)](_0x25bc70,_0x5c9a53[_0x4bdc72(0x162)][_0x25bc70]);}return _0x114cb0(_0x5511a4);}});}async[_0x3ed49b(0x15b)](_0x3827a7){return this['_doCreateSocket'](_0x3827a7);}};P=D([E(0x0,_0x1dd1db(_0x1464a6)),E(0x1,_0x1dd1db(_0x1d6519)),E(0x2,_0x3c1060),E(0x3,_0x385b76),E(0x4,_0x12d40d)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x185c3f=_0x1a89;(function(_0x479a0c,_0x1503dc){const _0x5c5f36=_0x1a89,_0x3baa6a=_0x479a0c();while(!![]){try{const _0x117ccc=-parseInt(_0x5c5f36(0x12b))/0x1+parseInt(_0x5c5f36(0x11f))/0x2+-parseInt(_0x5c5f36(0xfe))/0x3+parseInt(_0x5c5f36(0xfd))/0x4*(-parseInt(_0x5c5f36(0x11b))/0x5)+parseInt(_0x5c5f36(0x110))/0x6+parseInt(_0x5c5f36(0xff))/0x7+-parseInt(_0x5c5f36(0x10b))/0x8*(parseInt(_0x5c5f36(0x111))/0x9);if(_0x117ccc===_0x1503dc)break;else _0x3baa6a['push'](_0x3baa6a['shift']());}catch(_0x4ff8d){_0x3baa6a['push'](_0x3baa6a['shift']());}}}(_0x3e9a,0xa8a78));import{ISnapshotServerService as _0x1a3457,UniverCollaborationPlugin as _0x52db28}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2d2af2,CollaborationSocketService as _0x2a33c0,UniverCollaborationClientPlugin as _0x5dd016}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x50ba0b}from'@univerjs-pro/license';import{DependentOn as _0xf720e8,Disposable as _0x535ed3,DisposableCollection as _0x463a40,IConfigService as _0x52ac4f,ILogService as _0x1d2698,Inject as _0x1f3d20,Injector as _0x2aca6b,Plugin as _0x39bb44,merge as _0x4c90a6,registerDependencies as _0x369d8b,toDisposable as _0x2aa8e9}from'@univerjs/core';import{HTTPService as _0x4f8b71,ISocketService as _0x456d2c,UniverNetworkPlugin as _0x3ae5c9}from'@univerjs/network';import{Observable as _0x3a44fb,share as _0x470873}from'rxjs';import{WebSocket as _0xf52bcd}from'ws';var C=_0x185c3f(0x101),w='1.3.0';const T={};function E(_0x4ce9a0,_0x5d7331){return function(_0x21e229,_0x5b45fe){_0x5d7331(_0x21e229,_0x5b45fe,_0x4ce9a0);};}function D(_0x242741,_0x4f2cd7,_0x5b6d46,_0x1c8d04){const _0x361d6c=_0x185c3f;var _0x348d23=arguments[_0x361d6c(0x12a)],_0x289847=_0x348d23<0x3?_0x4f2cd7:_0x1c8d04===null?_0x1c8d04=Object[_0x361d6c(0x10d)](_0x4f2cd7,_0x5b6d46):_0x1c8d04,_0x1f4f56;if(typeof Reflect==_0x361d6c(0x121)&&typeof Reflect['decorate']==_0x361d6c(0x105))_0x289847=Reflect[_0x361d6c(0x124)](_0x242741,_0x4f2cd7,_0x5b6d46,_0x1c8d04);else{for(var _0x531918=_0x242741[_0x361d6c(0x12a)]-0x1;_0x531918>=0x0;_0x531918--)(_0x1f4f56=_0x242741[_0x531918])&&(_0x289847=(_0x348d23<0x3?_0x1f4f56(_0x289847):_0x348d23>0x3?_0x1f4f56(_0x4f2cd7,_0x5b6d46,_0x289847):_0x1f4f56(_0x4f2cd7,_0x5b6d46))||_0x289847);}return _0x348d23>0x3&&_0x289847&&Object[_0x361d6c(0x102)](_0x4f2cd7,_0x5b6d46,_0x289847),_0x289847;}let O=class extends _0x535ed3{constructor(_0x235adc){const _0x3496f0=_0x185c3f;super(),this[_0x3496f0(0x128)]=_0x235adc;}['createSocket'](_0x4fdce3){const _0x23c46c=_0x185c3f;var _0x45f56a;let _0x5c9d94=((_0x45f56a=this['_configService'][_0x23c46c(0x107)](_0x2d2af2))==null?void 0x0:_0x45f56a[_0x23c46c(0x11e)])||{};try{let _0x2e20d8=new _0xf52bcd(_0x4fdce3,{'headers':{..._0x5c9d94}}),_0x197526=new _0x463a40();return{'URL':_0x4fdce3,'close':(_0x5bcffa,_0x4dfef6)=>{const _0x195059=_0x23c46c;_0x2e20d8[_0x195059(0x106)](_0x5bcffa,_0x4dfef6),_0x197526[_0x195059(0x100)]();},'send':_0x1c2013=>{const _0x4cf702=_0x23c46c;_0x2e20d8[_0x4cf702(0x104)](_0x1c2013);},'open$':new _0x3a44fb(_0x1cca6b=>{const _0x1fb1b9=_0x23c46c;let _0x45b37e=_0x5e37c2=>_0x1cca6b[_0x1fb1b9(0x126)](_0x5e37c2);_0x2e20d8[_0x1fb1b9(0x11d)](_0x1fb1b9(0x11a),_0x45b37e),_0x197526[_0x1fb1b9(0xfc)](_0x2aa8e9(()=>_0x2e20d8[_0x1fb1b9(0x113)](_0x1fb1b9(0x11a),_0x45b37e)));})['pipe'](_0x470873()),'close$':new _0x3a44fb(_0x3af7e2=>{const _0x4f8ce0=_0x23c46c;let _0x1765c9=_0x5b871c=>_0x3af7e2[_0x4f8ce0(0x126)](_0x5b871c);_0x2e20d8[_0x4f8ce0(0x11d)](_0x4f8ce0(0x106),_0x1765c9),_0x197526[_0x4f8ce0(0xfc)](_0x2aa8e9(()=>_0x2e20d8[_0x4f8ce0(0x113)](_0x4f8ce0(0x106),_0x1765c9)));})[_0x23c46c(0x10c)](_0x470873()),'error$':new _0x3a44fb(_0x200678=>{const _0x5a8272=_0x23c46c;let _0x344739=_0x8082ae=>_0x200678[_0x5a8272(0x126)](_0x8082ae);_0x2e20d8[_0x5a8272(0x11d)](_0x5a8272(0x120),_0x344739),_0x197526[_0x5a8272(0xfc)](_0x2aa8e9(()=>_0x2e20d8[_0x5a8272(0x113)](_0x5a8272(0x120),_0x344739)));})['pipe'](_0x470873()),'message$':new _0x3a44fb(_0x460c5d=>{const _0x2379bf=_0x23c46c;let _0x3d2445=_0x324bf3=>_0x460c5d[_0x2379bf(0x126)](_0x324bf3);_0x2e20d8[_0x2379bf(0x11d)]('message',_0x3d2445),_0x197526['add'](_0x2aa8e9(()=>_0x2e20d8['removeEventListener'](_0x2379bf(0x122),_0x3d2445)));})[_0x23c46c(0x10c)](_0x470873())};}catch(_0x514748){return console[_0x23c46c(0x120)](_0x514748),null;}}};function _0x1a89(_0x2a83bb,_0x5b445f){_0x2a83bb=_0x2a83bb-0xfa;const _0x3e9a62=_0x3e9a();let _0x1a8980=_0x3e9a62[_0x2a83bb];return _0x1a8980;}O=D([E(0x0,_0x52ac4f)],O);function k(_0x51bd9b){'@babel/helpers - typeof';const _0x2699d1=_0x185c3f;return k=typeof Symbol==_0x2699d1(0x105)&&typeof Symbol[_0x2699d1(0x108)]==_0x2699d1(0x114)?function(_0x529f23){return typeof _0x529f23;}:function(_0x4d76e4){const _0x1cece5=_0x2699d1;return _0x4d76e4&&typeof Symbol==_0x1cece5(0x105)&&_0x4d76e4[_0x1cece5(0x10e)]===Symbol&&_0x4d76e4!==Symbol[_0x1cece5(0x112)]?'symbol':typeof _0x4d76e4;},k(_0x51bd9b);}function A(_0x5ac4c7,_0x351678){const _0x15544d=_0x185c3f;if(k(_0x5ac4c7)!=_0x15544d(0x121)||!_0x5ac4c7)return _0x5ac4c7;var _0xafdae1=_0x5ac4c7[Symbol[_0x15544d(0x11c)]];if(_0xafdae1!==void 0x0){var _0x1ebc7b=_0xafdae1[_0x15544d(0x118)](_0x5ac4c7,_0x351678||_0x15544d(0x10f));if(k(_0x1ebc7b)!=_0x15544d(0x121))return _0x1ebc7b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x351678==='string'?String:Number)(_0x5ac4c7);}function j(_0x20a6f9){const _0x53b565=_0x185c3f;var _0x1fd35d=A(_0x20a6f9,_0x53b565(0x125));return k(_0x1fd35d)==_0x53b565(0x114)?_0x1fd35d:_0x1fd35d+'';}function M(_0x38dfbb,_0x5dda3b,_0x398620){const _0xb31216=_0x185c3f;return(_0x5dda3b=j(_0x5dda3b))in _0x38dfbb?Object[_0xb31216(0x102)](_0x38dfbb,_0x5dda3b,{'value':_0x398620,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x38dfbb[_0x5dda3b]=_0x398620,_0x38dfbb;}let N=class extends _0x39bb44{constructor(_0x46d717=T,_0x4b9823,_0x124753){const _0x2ec38c=_0x185c3f;super(),this[_0x2ec38c(0x119)]=_0x46d717,this[_0x2ec38c(0x128)]=_0x4b9823,this[_0x2ec38c(0x109)]=_0x124753;let {..._0x582f6c}=_0x4c90a6({},T,this[_0x2ec38c(0x119)]);this[_0x2ec38c(0x128)][_0x2ec38c(0x116)](_0x2ec38c(0x117),_0x582f6c);}[_0x185c3f(0x127)](){const _0x3bcc2e=_0x185c3f;this[_0x3bcc2e(0x10a)]();}['_registerDependencies'](){const _0x282f8f=_0x185c3f;_0x369d8b(this[_0x282f8f(0x109)],[[_0x456d2c,{'useClass':O}]]);}};M(N,'pluginName',_0x185c3f(0x123)),M(N,'packageName',C),M(N,_0x185c3f(0x103),w),N=D([_0xf720e8(_0x50ba0b,_0x3ae5c9,_0x52db28,_0x5dd016),E(0x1,_0x52ac4f),E(0x2,_0x1f3d20(_0x2aca6b))],N);let P=class extends _0x2a33c0{constructor(_0x3452b6,_0x40e8e6,_0x29590d,_0x541aa4,_0x435c1a){const _0x407e6c=_0x185c3f;super(_0x3452b6,_0x40e8e6,_0x29590d,_0x541aa4,_0x435c1a);let _0x290a76=this['_configService']['getConfig'](_0x2d2af2);this[_0x407e6c(0x129)][_0x407e6c(0xfa)]({'interceptor':(_0x4c22cb,_0x2920f0)=>{const _0x16a018=_0x407e6c;let _0x381926=_0x4c22cb['headers'];if(_0x290a76!=null&&_0x290a76['customHeaders']){for(let _0x553cf4 in _0x290a76[_0x16a018(0x11e)])_0x381926[_0x16a018(0xfb)](_0x553cf4,_0x290a76[_0x16a018(0x11e)][_0x553cf4]);}return _0x2920f0(_0x4c22cb);}});}async[_0x185c3f(0x115)](_0x303265){return this['_doCreateSocket'](_0x303265);}};P=D([E(0x0,_0x1f3d20(_0x2aca6b)),E(0x1,_0x1f3d20(_0x4f8b71)),E(0x2,_0x52ac4f),E(0x3,_0x1d2698),E(0x4,_0x1a3457)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x3e9a(){const _0x56db2e=['removeEventListener','symbol','createSocket','setConfig','collaboration-client-node.config','call','_config','open','5CSXlVB','toPrimitive','addEventListener','customHeaders','2505562yQbWKR','error','object','message','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','decorate','string','next','onStarting','_configService','_httpService','length','798305ovWPsF','registerHTTPInterceptor','set','add','2418604RpmyAs','527685dWDNVm','7520765cDKkEG','dispose','@univerjs-pro/collaboration-client-node','defineProperty','version','send','function','close','getConfig','iterator','_injector','_registerDependencies','3336KzOmhA','pipe','getOwnPropertyDescriptor','constructor','default','7843944bQwhFc','29457xMbXqq','prototype'];_0x3e9a=function(){return _0x56db2e;};return _0x3e9a();}
1
+ function _0x2568(_0x34c56c,_0x3a12d1){_0x34c56c=_0x34c56c-0x13f;const _0x2c1d3b=_0x2c1d();let _0x2568c6=_0x2c1d3b[_0x34c56c];return _0x2568c6;}const _0x3ed49b=_0x2568;(function(_0x3b1be8,_0x2110a0){const _0x4d09ff=_0x2568,_0x3c7b43=_0x3b1be8();while(!![]){try{const _0x3d072f=-parseInt(_0x4d09ff(0x140))/0x1*(parseInt(_0x4d09ff(0x145))/0x2)+-parseInt(_0x4d09ff(0x169))/0x3+parseInt(_0x4d09ff(0x15a))/0x4*(-parseInt(_0x4d09ff(0x161))/0x5)+-parseInt(_0x4d09ff(0x15d))/0x6*(parseInt(_0x4d09ff(0x15c))/0x7)+-parseInt(_0x4d09ff(0x16b))/0x8*(parseInt(_0x4d09ff(0x154))/0x9)+parseInt(_0x4d09ff(0x14c))/0xa*(parseInt(_0x4d09ff(0x153))/0xb)+-parseInt(_0x4d09ff(0x143))/0xc*(-parseInt(_0x4d09ff(0x151))/0xd);if(_0x3d072f===_0x2110a0)break;else _0x3c7b43['push'](_0x3c7b43['shift']());}catch(_0x4ed8d7){_0x3c7b43['push'](_0x3c7b43['shift']());}}}(_0x2c1d,0xf1052));import{ISnapshotServerService as _0x12d40d,UniverCollaborationPlugin as _0x247ccd}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2b8ddf,CollaborationSocketService as _0x405c78,UniverCollaborationClientPlugin as _0x28d393}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x253fce}from'@univerjs-pro/license';import{DependentOn as _0xd9fdd5,Disposable as _0x2958fe,DisposableCollection as _0x40c93b,IConfigService as _0x3c1060,ILogService as _0x385b76,Inject as _0x1dd1db,Injector as _0x1464a6,Plugin as _0xea637b,merge as _0x592ba3,registerDependencies as _0x3fe490,toDisposable as _0x1cd99c}from'@univerjs/core';import{HTTPService as _0x1d6519,ISocketService as _0x5a2968,UniverNetworkPlugin as _0x283729}from'@univerjs/network';import{Observable as _0x543202,share as _0x170ea9}from'rxjs';function _0x2c1d(){const _0x376f96=['headers','_httpService','toPrimitive','set','_config','1708rMDfWz','createSocket','705061YoafYY','84gONUHz','version','pipe','setConfig','1685CzyGzX','customHeaders','next','default','message','getOwnPropertyDescriptor','decorate','1.3.1','4434684fUjVNc','defineProperty','8BDDPhV','prototype','_registerDependencies','_injector','add','registerHTTPInterceptor','iterator','@univerjs-pro/collaboration-client-node','error','length','onStarting','31mXJUFP','addEventListener','send','53024808jiNpKI','close','55696jPTdiv','symbol','getConfig','open','packageName','removeEventListener','_configService','41050VKeDdZ','function','string','object','constructor','13rRctmV','pluginName','1958JQtgpt','2400021bQHmhs'];_0x2c1d=function(){return _0x376f96;};return _0x2c1d();}import{WebSocket as _0x24ba19}from'ws';var C=_0x3ed49b(0x172),w=_0x3ed49b(0x168);const T={};function E(_0x15096d,_0x4aa84e){return function(_0xaabefb,_0x1e72b2){_0x4aa84e(_0xaabefb,_0x1e72b2,_0x15096d);};}function D(_0x17a492,_0x369697,_0x97ab39,_0x36e575){const _0x1884f3=_0x3ed49b;var _0x4b03ca=arguments[_0x1884f3(0x174)],_0x4a7ecd=_0x4b03ca<0x3?_0x369697:_0x36e575===null?_0x36e575=Object[_0x1884f3(0x166)](_0x369697,_0x97ab39):_0x36e575,_0x4a80d1;if(typeof Reflect==_0x1884f3(0x14f)&&typeof Reflect[_0x1884f3(0x167)]==_0x1884f3(0x14d))_0x4a7ecd=Reflect['decorate'](_0x17a492,_0x369697,_0x97ab39,_0x36e575);else{for(var _0x1adf98=_0x17a492[_0x1884f3(0x174)]-0x1;_0x1adf98>=0x0;_0x1adf98--)(_0x4a80d1=_0x17a492[_0x1adf98])&&(_0x4a7ecd=(_0x4b03ca<0x3?_0x4a80d1(_0x4a7ecd):_0x4b03ca>0x3?_0x4a80d1(_0x369697,_0x97ab39,_0x4a7ecd):_0x4a80d1(_0x369697,_0x97ab39))||_0x4a7ecd);}return _0x4b03ca>0x3&&_0x4a7ecd&&Object['defineProperty'](_0x369697,_0x97ab39,_0x4a7ecd),_0x4a7ecd;}let O=class extends _0x2958fe{constructor(_0x1203cb){super(),this['_configService']=_0x1203cb;}[_0x3ed49b(0x15b)](_0x514da7){const _0x473ca4=_0x3ed49b;var _0x2947b9;let _0x3da7a2=((_0x2947b9=this[_0x473ca4(0x14b)][_0x473ca4(0x147)](_0x2b8ddf))==null?void 0x0:_0x2947b9['customHeaders'])||{};try{let _0x1ff457=new _0x24ba19(_0x514da7,{'headers':{..._0x3da7a2}}),_0x5669e5=new _0x40c93b();return{'URL':_0x514da7,'close':(_0xbe1ee3,_0x4fb394)=>{const _0x5d1016=_0x473ca4;_0x1ff457[_0x5d1016(0x144)](_0xbe1ee3,_0x4fb394),_0x5669e5['dispose']();},'send':_0x2aaf35=>{const _0x29b77b=_0x473ca4;_0x1ff457[_0x29b77b(0x142)](_0x2aaf35);},'open$':new _0x543202(_0x1fd000=>{const _0x15c8e9=_0x473ca4;let _0x51474e=_0x52625d=>_0x1fd000[_0x15c8e9(0x163)](_0x52625d);_0x1ff457[_0x15c8e9(0x141)](_0x15c8e9(0x148),_0x51474e),_0x5669e5[_0x15c8e9(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x15c8e9(0x14a)](_0x15c8e9(0x148),_0x51474e)));})[_0x473ca4(0x15f)](_0x170ea9()),'close$':new _0x543202(_0x48dddc=>{const _0x560941=_0x473ca4;let _0x2d5531=_0x22a694=>_0x48dddc[_0x560941(0x163)](_0x22a694);_0x1ff457['addEventListener'](_0x560941(0x144),_0x2d5531),_0x5669e5[_0x560941(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x560941(0x14a)](_0x560941(0x144),_0x2d5531)));})['pipe'](_0x170ea9()),'error$':new _0x543202(_0x853607=>{const _0x48af71=_0x473ca4;let _0x53f4ac=_0x2b4543=>_0x853607['next'](_0x2b4543);_0x1ff457[_0x48af71(0x141)](_0x48af71(0x173),_0x53f4ac),_0x5669e5[_0x48af71(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x48af71(0x14a)](_0x48af71(0x173),_0x53f4ac)));})['pipe'](_0x170ea9()),'message$':new _0x543202(_0x43ad72=>{const _0x5ccb40=_0x473ca4;let _0x3c1269=_0x594c67=>_0x43ad72[_0x5ccb40(0x163)](_0x594c67);_0x1ff457[_0x5ccb40(0x141)](_0x5ccb40(0x165),_0x3c1269),_0x5669e5[_0x5ccb40(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x5ccb40(0x14a)](_0x5ccb40(0x165),_0x3c1269)));})['pipe'](_0x170ea9())};}catch(_0x5de2e9){return console['error'](_0x5de2e9),null;}}};O=D([E(0x0,_0x3c1060)],O);function k(_0x3a2880){'@babel/helpers - typeof';const _0x5eca6b=_0x3ed49b;return k=typeof Symbol==_0x5eca6b(0x14d)&&typeof Symbol[_0x5eca6b(0x171)]==_0x5eca6b(0x146)?function(_0x166943){return typeof _0x166943;}:function(_0x40e748){const _0x77d203=_0x5eca6b;return _0x40e748&&typeof Symbol==_0x77d203(0x14d)&&_0x40e748[_0x77d203(0x150)]===Symbol&&_0x40e748!==Symbol[_0x77d203(0x16c)]?_0x77d203(0x146):typeof _0x40e748;},k(_0x3a2880);}function A(_0x142f86,_0x1b278e){const _0x2831a2=_0x3ed49b;if(k(_0x142f86)!=_0x2831a2(0x14f)||!_0x142f86)return _0x142f86;var _0x1a0ccd=_0x142f86[Symbol[_0x2831a2(0x157)]];if(_0x1a0ccd!==void 0x0){var _0x472441=_0x1a0ccd['call'](_0x142f86,_0x1b278e||_0x2831a2(0x164));if(k(_0x472441)!=_0x2831a2(0x14f))return _0x472441;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b278e===_0x2831a2(0x14e)?String:Number)(_0x142f86);}function j(_0x881ed4){const _0x2e20ec=_0x3ed49b;var _0x545ad8=A(_0x881ed4,_0x2e20ec(0x14e));return k(_0x545ad8)==_0x2e20ec(0x146)?_0x545ad8:_0x545ad8+'';}function M(_0x45e617,_0x22f246,_0x14297c){const _0x135de2=_0x3ed49b;return(_0x22f246=j(_0x22f246))in _0x45e617?Object[_0x135de2(0x16a)](_0x45e617,_0x22f246,{'value':_0x14297c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e617[_0x22f246]=_0x14297c,_0x45e617;}let N=class extends _0xea637b{constructor(_0x9a8666=T,_0x47d2db,_0x475b0e){const _0x1d7fe6=_0x3ed49b;super(),this['_config']=_0x9a8666,this[_0x1d7fe6(0x14b)]=_0x47d2db,this['_injector']=_0x475b0e;let {..._0xad2b1f}=_0x592ba3({},T,this[_0x1d7fe6(0x159)]);this['_configService'][_0x1d7fe6(0x160)]('collaboration-client-node.config',_0xad2b1f);}[_0x3ed49b(0x13f)](){this['_registerDependencies']();}[_0x3ed49b(0x16d)](){const _0x4b95ea=_0x3ed49b;_0x3fe490(this[_0x4b95ea(0x16e)],[[_0x5a2968,{'useClass':O}]]);}};M(N,_0x3ed49b(0x152),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x3ed49b(0x149),C),M(N,_0x3ed49b(0x15e),w),N=D([_0xd9fdd5(_0x253fce,_0x283729,_0x247ccd,_0x28d393),E(0x1,_0x3c1060),E(0x2,_0x1dd1db(_0x1464a6))],N);let P=class extends _0x405c78{constructor(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401){const _0x224f03=_0x3ed49b;super(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401);let _0x5c9a53=this[_0x224f03(0x14b)]['getConfig'](_0x2b8ddf);this[_0x224f03(0x156)][_0x224f03(0x170)]({'interceptor':(_0x5511a4,_0x114cb0)=>{const _0x4bdc72=_0x224f03;let _0x157b15=_0x5511a4[_0x4bdc72(0x155)];if(_0x5c9a53!=null&&_0x5c9a53[_0x4bdc72(0x162)]){for(let _0x25bc70 in _0x5c9a53[_0x4bdc72(0x162)])_0x157b15[_0x4bdc72(0x158)](_0x25bc70,_0x5c9a53[_0x4bdc72(0x162)][_0x25bc70]);}return _0x114cb0(_0x5511a4);}});}async[_0x3ed49b(0x15b)](_0x3827a7){return this['_doCreateSocket'](_0x3827a7);}};P=D([E(0x0,_0x1dd1db(_0x1464a6)),E(0x1,_0x1dd1db(_0x1d6519)),E(0x2,_0x3c1060),E(0x3,_0x385b76),E(0x4,_0x12d40d)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3e6fed,_0x277b89){const _0x537694=_0x4809,_0x229b0e=_0x3e6fed();while(!![]){try{const _0x2ec0e3=-parseInt(_0x537694(0xe7))/0x1*(parseInt(_0x537694(0x101))/0x2)+parseInt(_0x537694(0xc6))/0x3+-parseInt(_0x537694(0xbe))/0x4+-parseInt(_0x537694(0xea))/0x5+parseInt(_0x537694(0xf5))/0x6*(parseInt(_0x537694(0xf6))/0x7)+-parseInt(_0x537694(0xd6))/0x8+-parseInt(_0x537694(0x10a))/0x9*(-parseInt(_0x537694(0xcd))/0xa);if(_0x2ec0e3===_0x277b89)break;else _0x229b0e['push'](_0x229b0e['shift']());}catch(_0x3aaf98){_0x229b0e['push'](_0x229b0e['shift']());}}}(_0x3872,0x1cf48),function(_0x1aeb1e,_0x5925ee){const _0x50383a=_0x4809;typeof exports=='object'&&typeof module<'u'?_0x5925ee(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x50383a(0xdd)&&define['amd']?define([_0x50383a(0xc5),_0x50383a(0xc4),_0x50383a(0xeb),'@univerjs-pro/license',_0x50383a(0xdf),_0x50383a(0xcc),'rxjs'],_0x5925ee):(_0x1aeb1e=typeof globalThis<'u'?globalThis:_0x1aeb1e||self,_0x5925ee(_0x1aeb1e[_0x50383a(0xd8)]={},_0x1aeb1e[_0x50383a(0xd3)],_0x1aeb1e['UniverProCollaborationClient'],_0x1aeb1e[_0x50383a(0xcf)],_0x1aeb1e['UniverCore'],_0x1aeb1e['UniverNetwork'],_0x1aeb1e[_0x50383a(0xf2)]));}(this,function(_0xe3990a,_0x23f73c,_0x4b5913,_0x2e78b8,_0x25dd92,_0x518bce,_0x239bf4){const _0x45a0c9=_0x4809;Object[_0x45a0c9(0xe2)](_0xe3990a,Symbol['toStringTag'],{'value':_0x45a0c9(0x105)});var _0x270a9c=(_0x8c4352,_0x158e14)=>()=>(_0x158e14||(_0x8c4352((_0x158e14={'exports':{}})[_0x45a0c9(0xc5)],_0x158e14),_0x8c4352=null),_0x158e14['exports']),_0x3fe4e6=_0x45a0c9(0x108),_0x386744=_0x45a0c9(0x109);let _0x42dc97={};var _0x58f8e6=_0x270a9c((_0x3e94ad,_0x31d0e9)=>{const _0x232153=_0x45a0c9;_0x31d0e9[_0x232153(0xc5)]=function(){const _0x18f45b=_0x232153;throw Error(_0x18f45b(0xd7));};})();function _0x307ceb(_0x4cee11,_0x342eb2){return function(_0x50ae07,_0x43251d){_0x342eb2(_0x50ae07,_0x43251d,_0x4cee11);};}function _0x1513e5(_0x58e6b2,_0x1d1f7e,_0x113b24,_0x52d948){const _0x521adc=_0x45a0c9;var _0x23f7b6=arguments['length'],_0x2e38c6=_0x23f7b6<0x3?_0x1d1f7e:_0x52d948===null?_0x52d948=Object[_0x521adc(0xc3)](_0x1d1f7e,_0x113b24):_0x52d948,_0x240f63;if(typeof Reflect==_0x521adc(0xc9)&&typeof Reflect[_0x521adc(0xdb)]==_0x521adc(0xdd))_0x2e38c6=Reflect[_0x521adc(0xdb)](_0x58e6b2,_0x1d1f7e,_0x113b24,_0x52d948);else{for(var _0x554d4b=_0x58e6b2['length']-0x1;_0x554d4b>=0x0;_0x554d4b--)(_0x240f63=_0x58e6b2[_0x554d4b])&&(_0x2e38c6=(_0x23f7b6<0x3?_0x240f63(_0x2e38c6):_0x23f7b6>0x3?_0x240f63(_0x1d1f7e,_0x113b24,_0x2e38c6):_0x240f63(_0x1d1f7e,_0x113b24))||_0x2e38c6);}return _0x23f7b6>0x3&&_0x2e38c6&&Object[_0x521adc(0xe2)](_0x1d1f7e,_0x113b24,_0x2e38c6),_0x2e38c6;}let _0x3e3281=class extends _0x25dd92[_0x45a0c9(0xc1)]{constructor(_0x5d648d){const _0x1b6409=_0x45a0c9;super(),this[_0x1b6409(0xe1)]=_0x5d648d;}['createSocket'](_0x309809){const _0x29c97b=_0x45a0c9;var _0x2b57c2;let _0x19cb14=((_0x2b57c2=this[_0x29c97b(0xe1)][_0x29c97b(0xc0)](_0x4b5913[_0x29c97b(0xe6)]))==null?void 0x0:_0x2b57c2[_0x29c97b(0xff)])||{};try{let _0xb909e6=new _0x58f8e6['WebSocket'](_0x309809,{'headers':{..._0x19cb14}}),_0x49575f=new _0x25dd92[(_0x29c97b(0xf3))]();return{'URL':_0x309809,'close':(_0x47fe20,_0x462b34)=>{const _0x410193=_0x29c97b;_0xb909e6[_0x410193(0xef)](_0x47fe20,_0x462b34),_0x49575f['dispose']();},'send':_0x2bbc58=>{_0xb909e6['send'](_0x2bbc58);},'open$':new _0x239bf4['Observable'](_0x1f46ad=>{const _0x1474d2=_0x29c97b;let _0x18f645=_0x22a5e5=>_0x1f46ad[_0x1474d2(0xfe)](_0x22a5e5);_0xb909e6[_0x1474d2(0xe3)](_0x1474d2(0xc2),_0x18f645),_0x49575f['add']((0x0,_0x25dd92[_0x1474d2(0x10b)])(()=>_0xb909e6[_0x1474d2(0xd4)](_0x1474d2(0xc2),_0x18f645)));})[_0x29c97b(0xf7)]((0x0,_0x239bf4[_0x29c97b(0xdc)])()),'close$':new _0x239bf4[(_0x29c97b(0xda))](_0x2c4a31=>{const _0x4d188e=_0x29c97b;let _0x255a65=_0x3f71d2=>_0x2c4a31[_0x4d188e(0xfe)](_0x3f71d2);_0xb909e6[_0x4d188e(0xe3)](_0x4d188e(0xef),_0x255a65),_0x49575f[_0x4d188e(0x107)]((0x0,_0x25dd92[_0x4d188e(0x10b)])(()=>_0xb909e6[_0x4d188e(0xd4)](_0x4d188e(0xef),_0x255a65)));})[_0x29c97b(0xf7)]((0x0,_0x239bf4[_0x29c97b(0xdc)])()),'error$':new _0x239bf4[(_0x29c97b(0xda))](_0x3d5e3e=>{const _0x3fad96=_0x29c97b;let _0x3f1caf=_0x5b9d2f=>_0x3d5e3e['next'](_0x5b9d2f);_0xb909e6['addEventListener']('error',_0x3f1caf),_0x49575f[_0x3fad96(0x107)]((0x0,_0x25dd92['toDisposable'])(()=>_0xb909e6['removeEventListener'](_0x3fad96(0x106),_0x3f1caf)));})[_0x29c97b(0xf7)]((0x0,_0x239bf4[_0x29c97b(0xdc)])()),'message$':new _0x239bf4[(_0x29c97b(0xda))](_0x4d0d22=>{const _0x28bc7e=_0x29c97b;let _0x2f137c=_0x5680ea=>_0x4d0d22[_0x28bc7e(0xfe)](_0x5680ea);_0xb909e6[_0x28bc7e(0xe3)](_0x28bc7e(0xd0),_0x2f137c),_0x49575f[_0x28bc7e(0x107)]((0x0,_0x25dd92[_0x28bc7e(0x10b)])(()=>_0xb909e6[_0x28bc7e(0xd4)](_0x28bc7e(0xd0),_0x2f137c)));})[_0x29c97b(0xf7)]((0x0,_0x239bf4[_0x29c97b(0xdc)])())};}catch(_0x5a274d){return console[_0x29c97b(0x106)](_0x5a274d),null;}}};_0x3e3281=_0x1513e5([_0x307ceb(0x0,_0x25dd92[_0x45a0c9(0xec)])],_0x3e3281);function _0xfe0b70(_0x1b710d){'@babel/helpers - typeof';const _0x25496d=_0x45a0c9;return _0xfe0b70=typeof Symbol==_0x25496d(0xdd)&&typeof Symbol['iterator']=='symbol'?function(_0x33ce42){return typeof _0x33ce42;}:function(_0x21ed64){const _0x5ee0de=_0x25496d;return _0x21ed64&&typeof Symbol==_0x5ee0de(0xdd)&&_0x21ed64['constructor']===Symbol&&_0x21ed64!==Symbol['prototype']?_0x5ee0de(0xf1):typeof _0x21ed64;},_0xfe0b70(_0x1b710d);}function _0x1b442f(_0x306b1e,_0x209ef9){const _0xeebd25=_0x45a0c9;if(_0xfe0b70(_0x306b1e)!='object'||!_0x306b1e)return _0x306b1e;var _0x3f19ca=_0x306b1e[Symbol['toPrimitive']];if(_0x3f19ca!==void 0x0){var _0x151084=_0x3f19ca[_0xeebd25(0xe8)](_0x306b1e,_0x209ef9||_0xeebd25(0xfa));if(_0xfe0b70(_0x151084)!=_0xeebd25(0xc9))return _0x151084;throw TypeError(_0xeebd25(0xfb));}return(_0x209ef9===_0xeebd25(0xcb)?String:Number)(_0x306b1e);}function _0x2c3ada(_0x2d2663){const _0x2b49c6=_0x45a0c9;var _0x2bffa5=_0x1b442f(_0x2d2663,_0x2b49c6(0xcb));return _0xfe0b70(_0x2bffa5)=='symbol'?_0x2bffa5:_0x2bffa5+'';}function _0x3f4fb9(_0x5f1901,_0x586d8d,_0x3aba79){const _0x3a4207=_0x45a0c9;return(_0x586d8d=_0x2c3ada(_0x586d8d))in _0x5f1901?Object[_0x3a4207(0xe2)](_0x5f1901,_0x586d8d,{'value':_0x3aba79,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f1901[_0x586d8d]=_0x3aba79,_0x5f1901;}let _0xde5269=class extends _0x25dd92[_0x45a0c9(0xfd)]{constructor(_0x40f102=_0x42dc97,_0x13acc9,_0x10cf03){const _0x195aad=_0x45a0c9;super(),this[_0x195aad(0xe9)]=_0x40f102,this[_0x195aad(0xe1)]=_0x13acc9,this[_0x195aad(0xca)]=_0x10cf03;let {..._0x4c4f23}=(0x0,_0x25dd92[_0x195aad(0x100)])({},_0x42dc97,this[_0x195aad(0xe9)]);this[_0x195aad(0xe1)][_0x195aad(0xfc)](_0x195aad(0x102),_0x4c4f23);}[_0x45a0c9(0xe0)](){const _0x431e4e=_0x45a0c9;this[_0x431e4e(0xee)]();}['_registerDependencies'](){const _0x590bbc=_0x45a0c9;(0x0,_0x25dd92[_0x590bbc(0xc7)])(this[_0x590bbc(0xca)],[[_0x518bce['ISocketService'],{'useClass':_0x3e3281}]]);}};_0x3f4fb9(_0xde5269,'pluginName',_0x45a0c9(0xd9)),_0x3f4fb9(_0xde5269,_0x45a0c9(0xd2),_0x3fe4e6),_0x3f4fb9(_0xde5269,'version',_0x386744),_0xde5269=_0x1513e5([(0x0,_0x25dd92[_0x45a0c9(0xd1)])(_0x2e78b8[_0x45a0c9(0xf4)],_0x518bce[_0x45a0c9(0xc8)],_0x23f73c[_0x45a0c9(0xf9)],_0x4b5913[_0x45a0c9(0xbd)]),_0x307ceb(0x1,_0x25dd92['IConfigService']),_0x307ceb(0x2,(0x0,_0x25dd92[_0x45a0c9(0xd5)])(_0x25dd92[_0x45a0c9(0xde)]))],_0xde5269);let _0x2b9905=class extends _0x4b5913['CollaborationSocketService']{constructor(_0x3c0d8c,_0x9f3723,_0x59342e,_0x191ec7,_0x389f77){const _0x3c2ed2=_0x45a0c9;super(_0x3c0d8c,_0x9f3723,_0x59342e,_0x191ec7,_0x389f77);let _0x239d43=this[_0x3c2ed2(0xe1)][_0x3c2ed2(0xc0)](_0x4b5913[_0x3c2ed2(0xe6)]);this[_0x3c2ed2(0xbf)]['registerHTTPInterceptor']({'interceptor':(_0x5df943,_0x2d4672)=>{const _0x5977ee=_0x3c2ed2;let _0x291934=_0x5df943[_0x5977ee(0xed)];if(_0x239d43!=null&&_0x239d43[_0x5977ee(0xff)]){for(let _0x1ba807 in _0x239d43['customHeaders'])_0x291934[_0x5977ee(0xf0)](_0x1ba807,_0x239d43[_0x5977ee(0xff)][_0x1ba807]);}return _0x2d4672(_0x5df943);}});}async['createSocket'](_0x397ea5){const _0x5bfe22=_0x45a0c9;return this[_0x5bfe22(0xf8)](_0x397ea5);}};_0x2b9905=_0x1513e5([_0x307ceb(0x0,(0x0,_0x25dd92[_0x45a0c9(0xd5)])(_0x25dd92[_0x45a0c9(0xde)])),_0x307ceb(0x1,(0x0,_0x25dd92[_0x45a0c9(0xd5)])(_0x518bce[_0x45a0c9(0xce)])),_0x307ceb(0x2,_0x25dd92['IConfigService']),_0x307ceb(0x3,_0x25dd92[_0x45a0c9(0xe5)]),_0x307ceb(0x4,_0x23f73c[_0x45a0c9(0xe4)])],_0x2b9905),Object[_0x45a0c9(0xe2)](_0xe3990a,_0x45a0c9(0x104),{'enumerable':!0x0,'get':function(){return _0x2b9905;}}),Object[_0x45a0c9(0xe2)](_0xe3990a,_0x45a0c9(0x103),{'enumerable':!0x0,'get':function(){return _0xde5269;}});}));function _0x4809(_0x3a17d7,_0x1736ca){_0x3a17d7=_0x3a17d7-0xbd;const _0x38723b=_0x3872();let _0x480957=_0x38723b[_0x3a17d7];return _0x480957;}function _0x3872(){const _0x4234f0=['ISnapshotServerService','ILogService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','56117uSgkyx','call','_config','511615HJCTij','@univerjs-pro/collaboration-client','IConfigService','headers','_registerDependencies','close','set','symbol','rxjs','DisposableCollection','UniverLicensePlugin','54jqGjNK','71078Kmxbte','pipe','_doCreateSocket','UniverCollaborationPlugin','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setConfig','Plugin','next','customHeaders','merge','8TEEGEi','collaboration-client-node.config','UniverCollaborationClientNodePlugin','NodeCollaborationSocketService','Module','error','add','@univerjs-pro/collaboration-client-node','1.3.0','4689135XrgePH','toDisposable','UniverCollaborationClientPlugin','141904BNrELf','_httpService','getConfig','Disposable','open','getOwnPropertyDescriptor','@univerjs-pro/collaboration','exports','179280LVpWkG','registerDependencies','UniverNetworkPlugin','object','_injector','string','@univerjs/network','10oAgPki','HTTPService','UniverProLicense','message','DependentOn','packageName','UniverProCollaboration','removeEventListener','Inject','1530352cyYrYS','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','UniverProCollaborationClientNode','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','Observable','decorate','share','function','Injector','@univerjs/core','onStarting','_configService','defineProperty','addEventListener'];_0x3872=function(){return _0x4234f0;};return _0x3872();}
1
+ (function(_0xcfad3e,_0xd2d50d){const _0x1fb8d0=_0x2b48,_0x1db8f3=_0xcfad3e();while(!![]){try{const _0x11fce7=parseInt(_0x1fb8d0(0x220))/0x1+-parseInt(_0x1fb8d0(0x1fc))/0x2+parseInt(_0x1fb8d0(0x20e))/0x3*(parseInt(_0x1fb8d0(0x222))/0x4)+parseInt(_0x1fb8d0(0x1f4))/0x5*(-parseInt(_0x1fb8d0(0x1eb))/0x6)+-parseInt(_0x1fb8d0(0x1de))/0x7*(-parseInt(_0x1fb8d0(0x1df))/0x8)+parseInt(_0x1fb8d0(0x227))/0x9*(parseInt(_0x1fb8d0(0x20f))/0xa)+-parseInt(_0x1fb8d0(0x22b))/0xb;if(_0x11fce7===_0xd2d50d)break;else _0x1db8f3['push'](_0x1db8f3['shift']());}catch(_0x194bc5){_0x1db8f3['push'](_0x1db8f3['shift']());}}}(_0x2c4d,0xc065f),function(_0x598e6e,_0x5d53d4){const _0x532449=_0x2b48;typeof exports==_0x532449(0x22c)&&typeof module<'u'?_0x5d53d4(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x532449(0x1f2)&&define[_0x532449(0x1e8)]?define([_0x532449(0x1fa),_0x532449(0x218),_0x532449(0x1fd),'@univerjs-pro/license',_0x532449(0x1f7),'@univerjs/network',_0x532449(0x1f8)],_0x5d53d4):(_0x598e6e=typeof globalThis<'u'?globalThis:_0x598e6e||self,_0x5d53d4(_0x598e6e[_0x532449(0x1dd)]={},_0x598e6e[_0x532449(0x205)],_0x598e6e[_0x532449(0x1fb)],_0x598e6e[_0x532449(0x20a)],_0x598e6e[_0x532449(0x1fe)],_0x598e6e[_0x532449(0x209)],_0x598e6e[_0x532449(0x1f8)]));}(this,function(_0x275261,_0x33baee,_0x42c9eb,_0x38218c,_0x4f0a9c,_0xd724,_0xf9958){const _0x48fe57=_0x2b48;Object[_0x48fe57(0x1e0)](_0x275261,Symbol[_0x48fe57(0x221)],{'value':_0x48fe57(0x1f9)});var _0x531be8=(_0x18209a,_0x2ccf79)=>()=>(_0x2ccf79||(_0x18209a((_0x2ccf79={'exports':{}})[_0x48fe57(0x1fa)],_0x2ccf79),_0x18209a=null),_0x2ccf79[_0x48fe57(0x1fa)]),_0x2ba5fa=_0x48fe57(0x22a),_0x19db15='1.3.1';let _0x538689={};var _0x27373c=_0x531be8((_0x1dfee6,_0x204bde)=>{const _0x14f09b=_0x48fe57;_0x204bde[_0x14f09b(0x1fa)]=function(){const _0x4b39cb=_0x14f09b;throw Error(_0x4b39cb(0x1dc));};})();function _0x1f0d1f(_0x1912f7,_0x43ae14){return function(_0x5cb74d,_0x26b548){_0x43ae14(_0x5cb74d,_0x26b548,_0x1912f7);};}function _0x2b33af(_0x31cccf,_0xbb62e,_0x5b4c68,_0x487c86){const _0x32a690=_0x48fe57;var _0x9eed97=arguments[_0x32a690(0x21a)],_0x42afd4=_0x9eed97<0x3?_0xbb62e:_0x487c86===null?_0x487c86=Object[_0x32a690(0x20c)](_0xbb62e,_0x5b4c68):_0x487c86,_0x28d548;if(typeof Reflect=='object'&&typeof Reflect[_0x32a690(0x200)]==_0x32a690(0x1f2))_0x42afd4=Reflect[_0x32a690(0x200)](_0x31cccf,_0xbb62e,_0x5b4c68,_0x487c86);else{for(var _0x5319a8=_0x31cccf[_0x32a690(0x21a)]-0x1;_0x5319a8>=0x0;_0x5319a8--)(_0x28d548=_0x31cccf[_0x5319a8])&&(_0x42afd4=(_0x9eed97<0x3?_0x28d548(_0x42afd4):_0x9eed97>0x3?_0x28d548(_0xbb62e,_0x5b4c68,_0x42afd4):_0x28d548(_0xbb62e,_0x5b4c68))||_0x42afd4);}return _0x9eed97>0x3&&_0x42afd4&&Object[_0x32a690(0x1e0)](_0xbb62e,_0x5b4c68,_0x42afd4),_0x42afd4;}let _0x29d974=class extends _0x4f0a9c[_0x48fe57(0x223)]{constructor(_0x3f8592){const _0x33690b=_0x48fe57;super(),this[_0x33690b(0x20d)]=_0x3f8592;}[_0x48fe57(0x215)](_0x46b043){const _0x445da6=_0x48fe57;var _0x168c2d;let _0x22fd68=((_0x168c2d=this['_configService'][_0x445da6(0x21e)](_0x42c9eb[_0x445da6(0x225)]))==null?void 0x0:_0x168c2d['customHeaders'])||{};try{let _0x43d006=new _0x27373c['WebSocket'](_0x46b043,{'headers':{..._0x22fd68}}),_0x10b30f=new _0x4f0a9c[(_0x445da6(0x1ed))]();return{'URL':_0x46b043,'close':(_0x34acfe,_0xd7c512)=>{const _0x31873b=_0x445da6;_0x43d006[_0x31873b(0x21d)](_0x34acfe,_0xd7c512),_0x10b30f['dispose']();},'send':_0x2d4828=>{const _0xd22707=_0x445da6;_0x43d006[_0xd22707(0x208)](_0x2d4828);},'open$':new _0xf9958[(_0x445da6(0x228))](_0x3584a8=>{const _0x121c80=_0x445da6;let _0x433543=_0x9375bb=>_0x3584a8[_0x121c80(0x1db)](_0x9375bb);_0x43d006[_0x121c80(0x229)]('open',_0x433543),_0x10b30f['add']((0x0,_0x4f0a9c[_0x121c80(0x1f6)])(()=>_0x43d006[_0x121c80(0x224)](_0x121c80(0x1e3),_0x433543)));})['pipe']((0x0,_0xf9958['share'])()),'close$':new _0xf9958[(_0x445da6(0x228))](_0xc74477=>{const _0x5f072f=_0x445da6;let _0x3a7bf3=_0x479322=>_0xc74477[_0x5f072f(0x1db)](_0x479322);_0x43d006[_0x5f072f(0x229)](_0x5f072f(0x21d),_0x3a7bf3),_0x10b30f[_0x5f072f(0x1e2)]((0x0,_0x4f0a9c[_0x5f072f(0x1f6)])(()=>_0x43d006[_0x5f072f(0x224)](_0x5f072f(0x21d),_0x3a7bf3)));})[_0x445da6(0x1e4)]((0x0,_0xf9958['share'])()),'error$':new _0xf9958[(_0x445da6(0x228))](_0x58f55f=>{const _0x47775e=_0x445da6;let _0x159210=_0x57f5e2=>_0x58f55f[_0x47775e(0x1db)](_0x57f5e2);_0x43d006[_0x47775e(0x229)]('error',_0x159210),_0x10b30f[_0x47775e(0x1e2)]((0x0,_0x4f0a9c[_0x47775e(0x1f6)])(()=>_0x43d006[_0x47775e(0x224)](_0x47775e(0x202),_0x159210)));})['pipe']((0x0,_0xf9958['share'])()),'message$':new _0xf9958[(_0x445da6(0x228))](_0x1ba8be=>{const _0x20d0f9=_0x445da6;let _0xa0da42=_0x19a1e8=>_0x1ba8be[_0x20d0f9(0x1db)](_0x19a1e8);_0x43d006[_0x20d0f9(0x229)](_0x20d0f9(0x207),_0xa0da42),_0x10b30f[_0x20d0f9(0x1e2)]((0x0,_0x4f0a9c[_0x20d0f9(0x1f6)])(()=>_0x43d006[_0x20d0f9(0x224)](_0x20d0f9(0x207),_0xa0da42)));})[_0x445da6(0x1e4)]((0x0,_0xf9958[_0x445da6(0x214)])())};}catch(_0x3bf289){return console['error'](_0x3bf289),null;}}};_0x29d974=_0x2b33af([_0x1f0d1f(0x0,_0x4f0a9c['IConfigService'])],_0x29d974);function _0xc5f758(_0x37a95e){'@babel/helpers - typeof';const _0x489107=_0x48fe57;return _0xc5f758=typeof Symbol==_0x489107(0x1f2)&&typeof Symbol[_0x489107(0x216)]==_0x489107(0x219)?function(_0x62e74f){return typeof _0x62e74f;}:function(_0x27ad41){const _0x3bed87=_0x489107;return _0x27ad41&&typeof Symbol==_0x3bed87(0x1f2)&&_0x27ad41['constructor']===Symbol&&_0x27ad41!==Symbol['prototype']?_0x3bed87(0x219):typeof _0x27ad41;},_0xc5f758(_0x37a95e);}function _0x11a466(_0x5685a1,_0x1e758f){const _0x54fdc4=_0x48fe57;if(_0xc5f758(_0x5685a1)!=_0x54fdc4(0x22c)||!_0x5685a1)return _0x5685a1;var _0x4773ef=_0x5685a1[Symbol[_0x54fdc4(0x1e7)]];if(_0x4773ef!==void 0x0){var _0x5813d7=_0x4773ef[_0x54fdc4(0x21f)](_0x5685a1,_0x1e758f||_0x54fdc4(0x1ec));if(_0xc5f758(_0x5813d7)!=_0x54fdc4(0x22c))return _0x5813d7;throw TypeError(_0x54fdc4(0x1f1));}return(_0x1e758f===_0x54fdc4(0x217)?String:Number)(_0x5685a1);}function _0x904c01(_0x7d1b55){const _0x1d87f7=_0x48fe57;var _0x29ec98=_0x11a466(_0x7d1b55,_0x1d87f7(0x217));return _0xc5f758(_0x29ec98)==_0x1d87f7(0x219)?_0x29ec98:_0x29ec98+'';}function _0x1ed979(_0x3009da,_0x50541f,_0x478ade){const _0x3d0485=_0x48fe57;return(_0x50541f=_0x904c01(_0x50541f))in _0x3009da?Object[_0x3d0485(0x1e0)](_0x3009da,_0x50541f,{'value':_0x478ade,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3009da[_0x50541f]=_0x478ade,_0x3009da;}let _0x567e25=class extends _0x4f0a9c[_0x48fe57(0x1ee)]{constructor(_0x39cb39=_0x538689,_0x369bef,_0xe8c047){const _0x1f3ad4=_0x48fe57;super(),this[_0x1f3ad4(0x203)]=_0x39cb39,this[_0x1f3ad4(0x20d)]=_0x369bef,this['_injector']=_0xe8c047;let {..._0x3c812f}=(0x0,_0x4f0a9c[_0x1f3ad4(0x22d)])({},_0x538689,this['_config']);this[_0x1f3ad4(0x20d)][_0x1f3ad4(0x1e1)](_0x1f3ad4(0x1f5),_0x3c812f);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0x484e98=_0x48fe57;(0x0,_0x4f0a9c['registerDependencies'])(this[_0x484e98(0x20b)],[[_0xd724[_0x484e98(0x213)],{'useClass':_0x29d974}]]);}};_0x1ed979(_0x567e25,_0x48fe57(0x1e5),_0x48fe57(0x1f3)),_0x1ed979(_0x567e25,_0x48fe57(0x211),_0x2ba5fa),_0x1ed979(_0x567e25,'version',_0x19db15),_0x567e25=_0x2b33af([(0x0,_0x4f0a9c[_0x48fe57(0x212)])(_0x38218c['UniverLicensePlugin'],_0xd724[_0x48fe57(0x210)],_0x33baee['UniverCollaborationPlugin'],_0x42c9eb['UniverCollaborationClientPlugin']),_0x1f0d1f(0x1,_0x4f0a9c[_0x48fe57(0x21c)]),_0x1f0d1f(0x2,(0x0,_0x4f0a9c[_0x48fe57(0x1e9)])(_0x4f0a9c[_0x48fe57(0x204)]))],_0x567e25);let _0x286def=class extends _0x42c9eb[_0x48fe57(0x201)]{constructor(_0x24d5c3,_0x5d7b49,_0xaf3fe6,_0x32bcf6,_0x486010){const _0xc6e8fa=_0x48fe57;super(_0x24d5c3,_0x5d7b49,_0xaf3fe6,_0x32bcf6,_0x486010);let _0x32ed5d=this['_configService'][_0xc6e8fa(0x21e)](_0x42c9eb[_0xc6e8fa(0x225)]);this[_0xc6e8fa(0x1ea)]['registerHTTPInterceptor']({'interceptor':(_0x3d2a2c,_0x56a1a4)=>{const _0x2ddf1f=_0xc6e8fa;let _0x1d8ae1=_0x3d2a2c[_0x2ddf1f(0x206)];if(_0x32ed5d!=null&&_0x32ed5d['customHeaders']){for(let _0x4dbd68 in _0x32ed5d[_0x2ddf1f(0x21b)])_0x1d8ae1['set'](_0x4dbd68,_0x32ed5d['customHeaders'][_0x4dbd68]);}return _0x56a1a4(_0x3d2a2c);}});}async[_0x48fe57(0x215)](_0x3eb8c8){const _0x5ec966=_0x48fe57;return this[_0x5ec966(0x1ff)](_0x3eb8c8);}};_0x286def=_0x2b33af([_0x1f0d1f(0x0,(0x0,_0x4f0a9c[_0x48fe57(0x1e9)])(_0x4f0a9c[_0x48fe57(0x204)])),_0x1f0d1f(0x1,(0x0,_0x4f0a9c[_0x48fe57(0x1e9)])(_0xd724['HTTPService'])),_0x1f0d1f(0x2,_0x4f0a9c[_0x48fe57(0x21c)]),_0x1f0d1f(0x3,_0x4f0a9c[_0x48fe57(0x1ef)]),_0x1f0d1f(0x4,_0x33baee[_0x48fe57(0x226)])],_0x286def),Object[_0x48fe57(0x1e0)](_0x275261,_0x48fe57(0x1f0),{'enumerable':!0x0,'get':function(){return _0x286def;}}),Object[_0x48fe57(0x1e0)](_0x275261,_0x48fe57(0x1e6),{'enumerable':!0x0,'get':function(){return _0x567e25;}});}));function _0x2b48(_0x379a1c,_0x2c00fa){_0x379a1c=_0x379a1c-0x1db;const _0x2c4df9=_0x2c4d();let _0x2b48da=_0x2c4df9[_0x379a1c];return _0x2b48da;}function _0x2c4d(){const _0x1998b1=['send','UniverNetwork','UniverProLicense','_injector','getOwnPropertyDescriptor','_configService','1049541aIGBzc','20LDbiFH','UniverNetworkPlugin','packageName','DependentOn','ISocketService','share','createSocket','iterator','string','@univerjs-pro/collaboration','symbol','length','customHeaders','IConfigService','close','getConfig','call','578070JDVgEx','toStringTag','8eTARUx','Disposable','removeEventListener','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ISnapshotServerService','4334139JDUeQL','Observable','addEventListener','@univerjs-pro/collaboration-client-node','15490123YKovNp','object','merge','next','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','UniverProCollaborationClientNode','162862pTixnh','424MLPVIF','defineProperty','setConfig','add','open','pipe','pluginName','UniverCollaborationClientNodePlugin','toPrimitive','amd','Inject','_httpService','8478AmBLoo','default','DisposableCollection','Plugin','ILogService','NodeCollaborationSocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','3470oFwSKN','collaboration-client-node.config','toDisposable','@univerjs/core','rxjs','Module','exports','UniverProCollaborationClient','594252gXUAYm','@univerjs-pro/collaboration-client','UniverCore','_doCreateSocket','decorate','CollaborationSocketService','error','_config','Injector','UniverProCollaboration','headers','message'];_0x2c4d=function(){return _0x1998b1;};return _0x2c4d();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
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.3.0",
55
- "@univerjs-pro/collaboration-client": "1.3.0",
56
- "@univerjs-pro/license": "1.3.0",
57
- "@univerjs/core": "1.3.0",
58
- "@univerjs/network": "1.3.0",
54
+ "@univerjs-pro/collaboration": "1.3.1",
55
+ "@univerjs-pro/collaboration-client": "1.3.1",
56
+ "@univerjs-pro/license": "1.3.1",
57
+ "@univerjs/core": "1.3.1",
58
+ "@univerjs/network": "1.3.1",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.3.0",
63
+ "@univerjs-infra/shared": "1.3.1",
64
64
  "rxjs": "7.8.2",
65
65
  "typescript": "^6.0.3",
66
66
  "vitest": "^5.0.4"