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

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 _0x1424c7=_0x400d;(function(_0x5d7679,_0x4bb4b9){const _0x4d2241=_0x400d,_0x304ceb=_0x5d7679();while(!![]){try{const _0x314a59=-parseInt(_0x4d2241(0x1b0))/0x1*(-parseInt(_0x4d2241(0x195))/0x2)+-parseInt(_0x4d2241(0x1d4))/0x3+-parseInt(_0x4d2241(0x1d0))/0x4+parseInt(_0x4d2241(0x1c5))/0x5*(-parseInt(_0x4d2241(0x1a3))/0x6)+-parseInt(_0x4d2241(0x1a2))/0x7+parseInt(_0x4d2241(0x1c7))/0x8*(parseInt(_0x4d2241(0x1cb))/0x9)+parseInt(_0x4d2241(0x1cf))/0xa;if(_0x314a59===_0x4bb4b9)break;else _0x304ceb['push'](_0x304ceb['shift']());}catch(_0x4ea97b){_0x304ceb['push'](_0x304ceb['shift']());}}}(_0x1de3,0xbd430),Object[_0x1424c7(0x194)](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');var s=_0x1424c7(0x19a),c=_0x1424c7(0x1aa);const l={};function _0x400d(_0x2d4384,_0x5ce964){_0x2d4384=_0x2d4384-0x194;const _0x1de3b6=_0x1de3();let _0x400d54=_0x1de3b6[_0x2d4384];return _0x400d54;}function u(_0x3e6a60,_0x150d28){return function(_0x18146b,_0x3f924a){_0x150d28(_0x18146b,_0x3f924a,_0x3e6a60);};}function d(_0x53c5ac,_0x39dea8,_0x130297,_0x4ff16b){const _0x4b6201=_0x1424c7;var _0x219ba5=arguments[_0x4b6201(0x1d5)],_0x5eed4e=_0x219ba5<0x3?_0x39dea8:_0x4ff16b===null?_0x4ff16b=Object[_0x4b6201(0x1a6)](_0x39dea8,_0x130297):_0x4ff16b,_0x1d4597;if(typeof Reflect=='object'&&typeof Reflect[_0x4b6201(0x1bd)]==_0x4b6201(0x1b7))_0x5eed4e=Reflect[_0x4b6201(0x1bd)](_0x53c5ac,_0x39dea8,_0x130297,_0x4ff16b);else{for(var _0x54fd8e=_0x53c5ac[_0x4b6201(0x1d5)]-0x1;_0x54fd8e>=0x0;_0x54fd8e--)(_0x1d4597=_0x53c5ac[_0x54fd8e])&&(_0x5eed4e=(_0x219ba5<0x3?_0x1d4597(_0x5eed4e):_0x219ba5>0x3?_0x1d4597(_0x39dea8,_0x130297,_0x5eed4e):_0x1d4597(_0x39dea8,_0x130297))||_0x5eed4e);}return _0x219ba5>0x3&&_0x5eed4e&&Object[_0x4b6201(0x194)](_0x39dea8,_0x130297,_0x5eed4e),_0x5eed4e;}let f=class extends r['Disposable']{constructor(_0x464c49){const _0x5ea9ec=_0x1424c7;super(),this[_0x5ea9ec(0x1af)]=_0x464c49;}[_0x1424c7(0x1c3)](_0x7f2e91){const _0x108292=_0x1424c7;var _0x19663c;let _0x46e669=((_0x19663c=this['_configService'][_0x108292(0x1ce)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x19663c['customHeaders'])||{};try{let _0x4d67cc=new o[(_0x108292(0x1cd))](_0x7f2e91,{'headers':{..._0x46e669}}),_0x24a42c=new r[(_0x108292(0x1a0))]();return{'URL':_0x7f2e91,'close':(_0x5dfd06,_0x5e2812)=>{const _0x4d208c=_0x108292;_0x4d67cc[_0x4d208c(0x197)](_0x5dfd06,_0x5e2812),_0x24a42c[_0x4d208c(0x19d)]();},'send':_0x1e3046=>{_0x4d67cc['send'](_0x1e3046);},'open$':new a['Observable'](_0x8ee127=>{const _0x137919=_0x108292;let _0x38b5ef=_0x456447=>_0x8ee127[_0x137919(0x1b3)](_0x456447);_0x4d67cc[_0x137919(0x1ab)](_0x137919(0x1bc),_0x38b5ef),_0x24a42c[_0x137919(0x1da)]((0x0,r[_0x137919(0x19c)])(()=>_0x4d67cc[_0x137919(0x1d9)](_0x137919(0x1bc),_0x38b5ef)));})[_0x108292(0x1ae)]((0x0,a[_0x108292(0x1a4)])()),'close$':new a[(_0x108292(0x19b))](_0xa4128d=>{const _0x59038e=_0x108292;let _0x1029c6=_0x22b32b=>_0xa4128d['next'](_0x22b32b);_0x4d67cc[_0x59038e(0x1ab)](_0x59038e(0x197),_0x1029c6),_0x24a42c[_0x59038e(0x1da)]((0x0,r[_0x59038e(0x19c)])(()=>_0x4d67cc[_0x59038e(0x1d9)](_0x59038e(0x197),_0x1029c6)));})[_0x108292(0x1ae)]((0x0,a[_0x108292(0x1a4)])()),'error$':new a[(_0x108292(0x19b))](_0x1f6c0d=>{const _0x352625=_0x108292;let _0x1ee5e6=_0x70ff3e=>_0x1f6c0d[_0x352625(0x1b3)](_0x70ff3e);_0x4d67cc['addEventListener']('error',_0x1ee5e6),_0x24a42c[_0x352625(0x1da)]((0x0,r['toDisposable'])(()=>_0x4d67cc[_0x352625(0x1d9)](_0x352625(0x1a8),_0x1ee5e6)));})[_0x108292(0x1ae)]((0x0,a[_0x108292(0x1a4)])()),'message$':new a[(_0x108292(0x19b))](_0x382ba0=>{const _0x3dd65b=_0x108292;let _0x3343ec=_0x47c6e6=>_0x382ba0[_0x3dd65b(0x1b3)](_0x47c6e6);_0x4d67cc[_0x3dd65b(0x1ab)]('message',_0x3343ec),_0x24a42c['add']((0x0,r[_0x3dd65b(0x19c)])(()=>_0x4d67cc[_0x3dd65b(0x1d9)](_0x3dd65b(0x1c1),_0x3343ec)));})[_0x108292(0x1ae)]((0x0,a[_0x108292(0x1a4)])())};}catch(_0x33a820){return console[_0x108292(0x1a8)](_0x33a820),null;}}};f=d([u(0x0,r['IConfigService'])],f);function p(_0x555c12){'@babel/helpers - typeof';const _0x4bc0b6=_0x1424c7;return p=typeof Symbol==_0x4bc0b6(0x1b7)&&typeof Symbol['iterator']==_0x4bc0b6(0x1a5)?function(_0x3701e1){return typeof _0x3701e1;}:function(_0x10bce0){const _0x115b08=_0x4bc0b6;return _0x10bce0&&typeof Symbol==_0x115b08(0x1b7)&&_0x10bce0[_0x115b08(0x1c4)]===Symbol&&_0x10bce0!==Symbol['prototype']?_0x115b08(0x1a5):typeof _0x10bce0;},p(_0x555c12);}function m(_0x5491e0,_0x2a81d9){const _0x3a1d37=_0x1424c7;if(p(_0x5491e0)!=_0x3a1d37(0x1c6)||!_0x5491e0)return _0x5491e0;var _0x2dbf1f=_0x5491e0[Symbol[_0x3a1d37(0x19f)]];if(_0x2dbf1f!==void 0x0){var _0x566697=_0x2dbf1f[_0x3a1d37(0x1c8)](_0x5491e0,_0x2a81d9||_0x3a1d37(0x1b2));if(p(_0x566697)!='object')return _0x566697;throw TypeError(_0x3a1d37(0x1a9));}return(_0x2a81d9===_0x3a1d37(0x1d6)?String:Number)(_0x5491e0);}function h(_0x58ae4f){const _0x264100=_0x1424c7;var _0x1af0d7=m(_0x58ae4f,_0x264100(0x1d6));return p(_0x1af0d7)==_0x264100(0x1a5)?_0x1af0d7:_0x1af0d7+'';}function g(_0x549785,_0x47d17a,_0x56dffa){const _0x236c81=_0x1424c7;return(_0x47d17a=h(_0x47d17a))in _0x549785?Object[_0x236c81(0x194)](_0x549785,_0x47d17a,{'value':_0x56dffa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x549785[_0x47d17a]=_0x56dffa,_0x549785;}let _=class extends r[_0x1424c7(0x198)]{constructor(_0x47f52d=l,_0x126165,_0x4762d6){const _0x37a2ec=_0x1424c7;super(),this['_config']=_0x47f52d,this['_configService']=_0x126165,this[_0x37a2ec(0x1a7)]=_0x4762d6;let {..._0x473c3f}=(0x0,r['merge'])({},l,this['_config']);this['_configService']['setConfig'](_0x37a2ec(0x1b8),_0x473c3f);}[_0x1424c7(0x196)](){const _0x3e8cbd=_0x1424c7;this[_0x3e8cbd(0x1c0)]();}['_registerDependencies'](){const _0x39251c=_0x1424c7;(0x0,r[_0x39251c(0x1b1)])(this[_0x39251c(0x1a7)],[[i[_0x39251c(0x1c9)],{'useClass':f}]]);}};g(_,_0x1424c7(0x1ba),_0x1424c7(0x1bb)),g(_,_0x1424c7(0x1d8),s),g(_,'version',c),_=d([(0x0,r[_0x1424c7(0x1b4)])(n['UniverLicensePlugin'],i['UniverNetworkPlugin'],e[_0x1424c7(0x1d7)],t[_0x1424c7(0x1d3)]),u(0x1,r[_0x1424c7(0x1ad)]),u(0x2,(0x0,r[_0x1424c7(0x1b6)])(r[_0x1424c7(0x1bf)]))],_);let v=class extends t[_0x1424c7(0x1d1)]{constructor(_0x49ec7b,_0x220def,_0x2a2d0d,_0x1b9b21,_0x269ede){const _0x1f0b45=_0x1424c7;super(_0x49ec7b,_0x220def,_0x2a2d0d,_0x1b9b21,_0x269ede);let _0x3d77a4=this['_configService'][_0x1f0b45(0x1ce)](t[_0x1f0b45(0x199)]);this[_0x1f0b45(0x1b9)][_0x1f0b45(0x1b5)]({'interceptor':(_0x5ab961,_0x14e981)=>{const _0x25ef4f=_0x1f0b45;let _0x38e431=_0x5ab961[_0x25ef4f(0x1cc)];if(_0x3d77a4!=null&&_0x3d77a4[_0x25ef4f(0x1d2)]){for(let _0x1253ea in _0x3d77a4[_0x25ef4f(0x1d2)])_0x38e431[_0x25ef4f(0x1a1)](_0x1253ea,_0x3d77a4['customHeaders'][_0x1253ea]);}return _0x14e981(_0x5ab961);}});}async[_0x1424c7(0x1c3)](_0x3f219f){const _0x10720a=_0x1424c7;return this[_0x10720a(0x19e)](_0x3f219f);}};function _0x1de3(){const _0x55cbf9=['decorate','ILogService','Injector','_registerDependencies','message','ISnapshotServerService','createSocket','constructor','4332025Xylcjy','object','904boimYL','call','ISocketService','HTTPService','11169ioICaB','headers','WebSocket','getConfig','31405470uNUQXZ','3966008QxjHrj','CollaborationSocketService','customHeaders','UniverCollaborationClientPlugin','3991701ardUVI','length','string','UniverCollaborationPlugin','packageName','removeEventListener','add','defineProperty','8538uHgTVB','onStarting','close','Plugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs-pro/collaboration-client-node','Observable','toDisposable','dispose','_doCreateSocket','toPrimitive','DisposableCollection','set','5589031hCzjxr','6xwlOVZ','share','symbol','getOwnPropertyDescriptor','_injector','error','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1.2.0','addEventListener','NodeCollaborationSocketService','IConfigService','pipe','_configService','347mVKHWt','registerDependencies','default','next','DependentOn','registerHTTPInterceptor','Inject','function','collaboration-client-node.config','_httpService','pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','open'];_0x1de3=function(){return _0x55cbf9;};return _0x1de3();}v=d([u(0x0,(0x0,r[_0x1424c7(0x1b6)])(r[_0x1424c7(0x1bf)])),u(0x1,(0x0,r[_0x1424c7(0x1b6)])(i[_0x1424c7(0x1ca)])),u(0x2,r[_0x1424c7(0x1ad)]),u(0x3,r[_0x1424c7(0x1be)]),u(0x4,e[_0x1424c7(0x1c2)])],v),Object[_0x1424c7(0x194)](exports,_0x1424c7(0x1ac),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x1424c7(0x194)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
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 _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x47bc2a=_0x100f;(function(_0x85ba9,_0x3a56bc){const _0x5cdbef=_0x100f,_0x159ae9=_0x85ba9();while(!![]){try{const _0x544251=parseInt(_0x5cdbef(0x178))/0x1+parseInt(_0x5cdbef(0x15a))/0x2+parseInt(_0x5cdbef(0x159))/0x3*(parseInt(_0x5cdbef(0x169))/0x4)+parseInt(_0x5cdbef(0x17e))/0x5*(parseInt(_0x5cdbef(0x17f))/0x6)+parseInt(_0x5cdbef(0x17c))/0x7+parseInt(_0x5cdbef(0x165))/0x8+-parseInt(_0x5cdbef(0x15b))/0x9;if(_0x544251===_0x3a56bc)break;else _0x159ae9['push'](_0x159ae9['shift']());}catch(_0x2448f2){_0x159ae9['push'](_0x159ae9['shift']());}}}(_0x3158,0x9db67));import{ISnapshotServerService as _0x3da036,UniverCollaborationPlugin as _0x5abde8}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2fe3fc,CollaborationSocketService as _0x2e173e,UniverCollaborationClientPlugin as _0x3b637d}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x599a0d}from'@univerjs-pro/license';import{DependentOn as _0x57091f,Disposable as _0x47d90e,DisposableCollection as _0x2b456d,IConfigService as _0x4c03a8,ILogService as _0x209a81,Inject as _0x250861,Injector as _0x2d0a9a,Plugin as _0x154098,merge as _0x1f8196,registerDependencies as _0x1e6a9c,toDisposable as _0x280896}from'@univerjs/core';import{HTTPService as _0x1fb9b7,ISocketService as _0x33e5fd,UniverNetworkPlugin as _0x3ee3ce}from'@univerjs/network';import{Observable as _0x433ce7,share as _0x2ea3a3}from'rxjs';import{WebSocket as _0xfb2a47}from'ws';var C=_0x47bc2a(0x161),w=_0x47bc2a(0x15d);const T={};function E(_0x363fe4,_0x471e00){return function(_0x436767,_0x39443e){_0x471e00(_0x436767,_0x39443e,_0x363fe4);};}function D(_0x352d22,_0x4daf38,_0x16dfb8,_0xd49fa0){const _0x579d42=_0x47bc2a;var _0x2fa88e=arguments['length'],_0x4f8238=_0x2fa88e<0x3?_0x4daf38:_0xd49fa0===null?_0xd49fa0=Object[_0x579d42(0x179)](_0x4daf38,_0x16dfb8):_0xd49fa0,_0x367f5b;if(typeof Reflect==_0x579d42(0x166)&&typeof Reflect[_0x579d42(0x175)]=='function')_0x4f8238=Reflect[_0x579d42(0x175)](_0x352d22,_0x4daf38,_0x16dfb8,_0xd49fa0);else{for(var _0x30ff70=_0x352d22['length']-0x1;_0x30ff70>=0x0;_0x30ff70--)(_0x367f5b=_0x352d22[_0x30ff70])&&(_0x4f8238=(_0x2fa88e<0x3?_0x367f5b(_0x4f8238):_0x2fa88e>0x3?_0x367f5b(_0x4daf38,_0x16dfb8,_0x4f8238):_0x367f5b(_0x4daf38,_0x16dfb8))||_0x4f8238);}return _0x2fa88e>0x3&&_0x4f8238&&Object[_0x579d42(0x158)](_0x4daf38,_0x16dfb8,_0x4f8238),_0x4f8238;}let O=class extends _0x47d90e{constructor(_0x326dad){const _0x5b5c04=_0x47bc2a;super(),this[_0x5b5c04(0x183)]=_0x326dad;}[_0x47bc2a(0x180)](_0x291f15){const _0x24218=_0x47bc2a;var _0x497c9a;let _0x129af1=((_0x497c9a=this[_0x24218(0x183)]['getConfig'](_0x2fe3fc))==null?void 0x0:_0x497c9a[_0x24218(0x164)])||{};try{let _0x14dc8c=new _0xfb2a47(_0x291f15,{'headers':{..._0x129af1}}),_0x470d0b=new _0x2b456d();return{'URL':_0x291f15,'close':(_0x39fe68,_0x3d59d6)=>{const _0xa7cdbf=_0x24218;_0x14dc8c[_0xa7cdbf(0x172)](_0x39fe68,_0x3d59d6),_0x470d0b['dispose']();},'send':_0xa92791=>{const _0x5a4d43=_0x24218;_0x14dc8c[_0x5a4d43(0x173)](_0xa92791);},'open$':new _0x433ce7(_0x3452f1=>{const _0x211510=_0x24218;let _0x10a622=_0x58aa5a=>_0x3452f1[_0x211510(0x16c)](_0x58aa5a);_0x14dc8c[_0x211510(0x17b)](_0x211510(0x16b),_0x10a622),_0x470d0b['add'](_0x280896(()=>_0x14dc8c[_0x211510(0x174)](_0x211510(0x16b),_0x10a622)));})['pipe'](_0x2ea3a3()),'close$':new _0x433ce7(_0x326cf6=>{const _0x42a9ab=_0x24218;let _0x148dbc=_0x5913e5=>_0x326cf6[_0x42a9ab(0x16c)](_0x5913e5);_0x14dc8c[_0x42a9ab(0x17b)](_0x42a9ab(0x172),_0x148dbc),_0x470d0b[_0x42a9ab(0x177)](_0x280896(()=>_0x14dc8c[_0x42a9ab(0x174)](_0x42a9ab(0x172),_0x148dbc)));})[_0x24218(0x15c)](_0x2ea3a3()),'error$':new _0x433ce7(_0x251060=>{const _0x21d29b=_0x24218;let _0x2af2d7=_0x17ee5f=>_0x251060[_0x21d29b(0x16c)](_0x17ee5f);_0x14dc8c[_0x21d29b(0x17b)](_0x21d29b(0x15f),_0x2af2d7),_0x470d0b[_0x21d29b(0x177)](_0x280896(()=>_0x14dc8c[_0x21d29b(0x174)]('error',_0x2af2d7)));})['pipe'](_0x2ea3a3()),'message$':new _0x433ce7(_0x163e7e=>{const _0x5f23b3=_0x24218;let _0x32ee0b=_0x5ee749=>_0x163e7e['next'](_0x5ee749);_0x14dc8c[_0x5f23b3(0x17b)]('message',_0x32ee0b),_0x470d0b['add'](_0x280896(()=>_0x14dc8c[_0x5f23b3(0x174)](_0x5f23b3(0x17d),_0x32ee0b)));})[_0x24218(0x15c)](_0x2ea3a3())};}catch(_0x2f763a){return console[_0x24218(0x15f)](_0x2f763a),null;}}};O=D([E(0x0,_0x4c03a8)],O);function k(_0x2b9b0a){'@babel/helpers - typeof';const _0x2532c8=_0x47bc2a;return k=typeof Symbol==_0x2532c8(0x15e)&&typeof Symbol[_0x2532c8(0x160)]=='symbol'?function(_0x2ec1ff){return typeof _0x2ec1ff;}:function(_0x2af757){const _0x163154=_0x2532c8;return _0x2af757&&typeof Symbol==_0x163154(0x15e)&&_0x2af757[_0x163154(0x170)]===Symbol&&_0x2af757!==Symbol['prototype']?_0x163154(0x182):typeof _0x2af757;},k(_0x2b9b0a);}function A(_0x23af1a,_0x16d773){const _0x2f348c=_0x47bc2a;if(k(_0x23af1a)!=_0x2f348c(0x166)||!_0x23af1a)return _0x23af1a;var _0x5d5c7b=_0x23af1a[Symbol['toPrimitive']];if(_0x5d5c7b!==void 0x0){var _0x4a470f=_0x5d5c7b[_0x2f348c(0x171)](_0x23af1a,_0x16d773||_0x2f348c(0x16a));if(k(_0x4a470f)!=_0x2f348c(0x166))return _0x4a470f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x16d773===_0x2f348c(0x187)?String:Number)(_0x23af1a);}function j(_0x1ed0dc){const _0x22530b=_0x47bc2a;var _0x18534a=A(_0x1ed0dc,_0x22530b(0x187));return k(_0x18534a)==_0x22530b(0x182)?_0x18534a:_0x18534a+'';}function M(_0x2aa112,_0x3359db,_0x3c82fd){const _0x24e1b3=_0x47bc2a;return(_0x3359db=j(_0x3359db))in _0x2aa112?Object[_0x24e1b3(0x158)](_0x2aa112,_0x3359db,{'value':_0x3c82fd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2aa112[_0x3359db]=_0x3c82fd,_0x2aa112;}let N=class extends _0x154098{constructor(_0xdb9c17=T,_0x4e282d,_0x5ee0bf){const _0x373c56=_0x47bc2a;super(),this[_0x373c56(0x162)]=_0xdb9c17,this['_configService']=_0x4e282d,this[_0x373c56(0x17a)]=_0x5ee0bf;let {..._0x338481}=_0x1f8196({},T,this[_0x373c56(0x162)]);this['_configService'][_0x373c56(0x186)](_0x373c56(0x181),_0x338481);}[_0x47bc2a(0x163)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x32fe0f=_0x47bc2a;_0x1e6a9c(this[_0x32fe0f(0x17a)],[[_0x33e5fd,{'useClass':O}]]);}};M(N,'pluginName',_0x47bc2a(0x16f)),M(N,_0x47bc2a(0x168),C),M(N,_0x47bc2a(0x167),w),N=D([_0x57091f(_0x599a0d,_0x3ee3ce,_0x5abde8,_0x3b637d),E(0x1,_0x4c03a8),E(0x2,_0x250861(_0x2d0a9a))],N);let P=class extends _0x2e173e{constructor(_0x58f740,_0x599e88,_0x352d2f,_0x1c7ec3,_0x103701){const _0x51a58e=_0x47bc2a;super(_0x58f740,_0x599e88,_0x352d2f,_0x1c7ec3,_0x103701);let _0x2797b4=this['_configService'][_0x51a58e(0x16d)](_0x2fe3fc);this[_0x51a58e(0x16e)][_0x51a58e(0x185)]({'interceptor':(_0x2ad996,_0x5667c3)=>{const _0x3391f2=_0x51a58e;let _0x2d4d64=_0x2ad996[_0x3391f2(0x188)];if(_0x2797b4!=null&&_0x2797b4[_0x3391f2(0x164)]){for(let _0x5ac32d in _0x2797b4['customHeaders'])_0x2d4d64[_0x3391f2(0x184)](_0x5ac32d,_0x2797b4['customHeaders'][_0x5ac32d]);}return _0x5667c3(_0x2ad996);}});}async[_0x47bc2a(0x180)](_0x5b671c){const _0x46efae=_0x47bc2a;return this[_0x46efae(0x176)](_0x5b671c);}};P=D([E(0x0,_0x250861(_0x2d0a9a)),E(0x1,_0x250861(_0x1fb9b7)),E(0x2,_0x4c03a8),E(0x3,_0x209a81),E(0x4,_0x3da036)],P);function _0x100f(_0x1c6378,_0x5557fc){_0x1c6378=_0x1c6378-0x158;const _0x31589b=_0x3158();let _0x100f0f=_0x31589b[_0x1c6378];return _0x100f0f;}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x3158(){const _0x434c27=['createSocket','collaboration-client-node.config','symbol','_configService','set','registerHTTPInterceptor','setConfig','string','headers','defineProperty','9pjkVYb','309792eigmeA','9989919OyCHbF','pipe','1.2.0','function','error','iterator','@univerjs-pro/collaboration-client-node','_config','onStarting','customHeaders','2694384psaQll','object','version','packageName','350684oyyOdA','default','open','next','getConfig','_httpService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','call','close','send','removeEventListener','decorate','_doCreateSocket','add','11265FHxDTQ','getOwnPropertyDescriptor','_injector','addEventListener','5341574RbXNtA','message','141830sMXkgY','48yNXkuY'];_0x3158=function(){return _0x434c27;};return _0x3158();}
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();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x47bc2a=_0x100f;(function(_0x85ba9,_0x3a56bc){const _0x5cdbef=_0x100f,_0x159ae9=_0x85ba9();while(!![]){try{const _0x544251=parseInt(_0x5cdbef(0x178))/0x1+parseInt(_0x5cdbef(0x15a))/0x2+parseInt(_0x5cdbef(0x159))/0x3*(parseInt(_0x5cdbef(0x169))/0x4)+parseInt(_0x5cdbef(0x17e))/0x5*(parseInt(_0x5cdbef(0x17f))/0x6)+parseInt(_0x5cdbef(0x17c))/0x7+parseInt(_0x5cdbef(0x165))/0x8+-parseInt(_0x5cdbef(0x15b))/0x9;if(_0x544251===_0x3a56bc)break;else _0x159ae9['push'](_0x159ae9['shift']());}catch(_0x2448f2){_0x159ae9['push'](_0x159ae9['shift']());}}}(_0x3158,0x9db67));import{ISnapshotServerService as _0x3da036,UniverCollaborationPlugin as _0x5abde8}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2fe3fc,CollaborationSocketService as _0x2e173e,UniverCollaborationClientPlugin as _0x3b637d}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x599a0d}from'@univerjs-pro/license';import{DependentOn as _0x57091f,Disposable as _0x47d90e,DisposableCollection as _0x2b456d,IConfigService as _0x4c03a8,ILogService as _0x209a81,Inject as _0x250861,Injector as _0x2d0a9a,Plugin as _0x154098,merge as _0x1f8196,registerDependencies as _0x1e6a9c,toDisposable as _0x280896}from'@univerjs/core';import{HTTPService as _0x1fb9b7,ISocketService as _0x33e5fd,UniverNetworkPlugin as _0x3ee3ce}from'@univerjs/network';import{Observable as _0x433ce7,share as _0x2ea3a3}from'rxjs';import{WebSocket as _0xfb2a47}from'ws';var C=_0x47bc2a(0x161),w=_0x47bc2a(0x15d);const T={};function E(_0x363fe4,_0x471e00){return function(_0x436767,_0x39443e){_0x471e00(_0x436767,_0x39443e,_0x363fe4);};}function D(_0x352d22,_0x4daf38,_0x16dfb8,_0xd49fa0){const _0x579d42=_0x47bc2a;var _0x2fa88e=arguments['length'],_0x4f8238=_0x2fa88e<0x3?_0x4daf38:_0xd49fa0===null?_0xd49fa0=Object[_0x579d42(0x179)](_0x4daf38,_0x16dfb8):_0xd49fa0,_0x367f5b;if(typeof Reflect==_0x579d42(0x166)&&typeof Reflect[_0x579d42(0x175)]=='function')_0x4f8238=Reflect[_0x579d42(0x175)](_0x352d22,_0x4daf38,_0x16dfb8,_0xd49fa0);else{for(var _0x30ff70=_0x352d22['length']-0x1;_0x30ff70>=0x0;_0x30ff70--)(_0x367f5b=_0x352d22[_0x30ff70])&&(_0x4f8238=(_0x2fa88e<0x3?_0x367f5b(_0x4f8238):_0x2fa88e>0x3?_0x367f5b(_0x4daf38,_0x16dfb8,_0x4f8238):_0x367f5b(_0x4daf38,_0x16dfb8))||_0x4f8238);}return _0x2fa88e>0x3&&_0x4f8238&&Object[_0x579d42(0x158)](_0x4daf38,_0x16dfb8,_0x4f8238),_0x4f8238;}let O=class extends _0x47d90e{constructor(_0x326dad){const _0x5b5c04=_0x47bc2a;super(),this[_0x5b5c04(0x183)]=_0x326dad;}[_0x47bc2a(0x180)](_0x291f15){const _0x24218=_0x47bc2a;var _0x497c9a;let _0x129af1=((_0x497c9a=this[_0x24218(0x183)]['getConfig'](_0x2fe3fc))==null?void 0x0:_0x497c9a[_0x24218(0x164)])||{};try{let _0x14dc8c=new _0xfb2a47(_0x291f15,{'headers':{..._0x129af1}}),_0x470d0b=new _0x2b456d();return{'URL':_0x291f15,'close':(_0x39fe68,_0x3d59d6)=>{const _0xa7cdbf=_0x24218;_0x14dc8c[_0xa7cdbf(0x172)](_0x39fe68,_0x3d59d6),_0x470d0b['dispose']();},'send':_0xa92791=>{const _0x5a4d43=_0x24218;_0x14dc8c[_0x5a4d43(0x173)](_0xa92791);},'open$':new _0x433ce7(_0x3452f1=>{const _0x211510=_0x24218;let _0x10a622=_0x58aa5a=>_0x3452f1[_0x211510(0x16c)](_0x58aa5a);_0x14dc8c[_0x211510(0x17b)](_0x211510(0x16b),_0x10a622),_0x470d0b['add'](_0x280896(()=>_0x14dc8c[_0x211510(0x174)](_0x211510(0x16b),_0x10a622)));})['pipe'](_0x2ea3a3()),'close$':new _0x433ce7(_0x326cf6=>{const _0x42a9ab=_0x24218;let _0x148dbc=_0x5913e5=>_0x326cf6[_0x42a9ab(0x16c)](_0x5913e5);_0x14dc8c[_0x42a9ab(0x17b)](_0x42a9ab(0x172),_0x148dbc),_0x470d0b[_0x42a9ab(0x177)](_0x280896(()=>_0x14dc8c[_0x42a9ab(0x174)](_0x42a9ab(0x172),_0x148dbc)));})[_0x24218(0x15c)](_0x2ea3a3()),'error$':new _0x433ce7(_0x251060=>{const _0x21d29b=_0x24218;let _0x2af2d7=_0x17ee5f=>_0x251060[_0x21d29b(0x16c)](_0x17ee5f);_0x14dc8c[_0x21d29b(0x17b)](_0x21d29b(0x15f),_0x2af2d7),_0x470d0b[_0x21d29b(0x177)](_0x280896(()=>_0x14dc8c[_0x21d29b(0x174)]('error',_0x2af2d7)));})['pipe'](_0x2ea3a3()),'message$':new _0x433ce7(_0x163e7e=>{const _0x5f23b3=_0x24218;let _0x32ee0b=_0x5ee749=>_0x163e7e['next'](_0x5ee749);_0x14dc8c[_0x5f23b3(0x17b)]('message',_0x32ee0b),_0x470d0b['add'](_0x280896(()=>_0x14dc8c[_0x5f23b3(0x174)](_0x5f23b3(0x17d),_0x32ee0b)));})[_0x24218(0x15c)](_0x2ea3a3())};}catch(_0x2f763a){return console[_0x24218(0x15f)](_0x2f763a),null;}}};O=D([E(0x0,_0x4c03a8)],O);function k(_0x2b9b0a){'@babel/helpers - typeof';const _0x2532c8=_0x47bc2a;return k=typeof Symbol==_0x2532c8(0x15e)&&typeof Symbol[_0x2532c8(0x160)]=='symbol'?function(_0x2ec1ff){return typeof _0x2ec1ff;}:function(_0x2af757){const _0x163154=_0x2532c8;return _0x2af757&&typeof Symbol==_0x163154(0x15e)&&_0x2af757[_0x163154(0x170)]===Symbol&&_0x2af757!==Symbol['prototype']?_0x163154(0x182):typeof _0x2af757;},k(_0x2b9b0a);}function A(_0x23af1a,_0x16d773){const _0x2f348c=_0x47bc2a;if(k(_0x23af1a)!=_0x2f348c(0x166)||!_0x23af1a)return _0x23af1a;var _0x5d5c7b=_0x23af1a[Symbol['toPrimitive']];if(_0x5d5c7b!==void 0x0){var _0x4a470f=_0x5d5c7b[_0x2f348c(0x171)](_0x23af1a,_0x16d773||_0x2f348c(0x16a));if(k(_0x4a470f)!=_0x2f348c(0x166))return _0x4a470f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x16d773===_0x2f348c(0x187)?String:Number)(_0x23af1a);}function j(_0x1ed0dc){const _0x22530b=_0x47bc2a;var _0x18534a=A(_0x1ed0dc,_0x22530b(0x187));return k(_0x18534a)==_0x22530b(0x182)?_0x18534a:_0x18534a+'';}function M(_0x2aa112,_0x3359db,_0x3c82fd){const _0x24e1b3=_0x47bc2a;return(_0x3359db=j(_0x3359db))in _0x2aa112?Object[_0x24e1b3(0x158)](_0x2aa112,_0x3359db,{'value':_0x3c82fd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2aa112[_0x3359db]=_0x3c82fd,_0x2aa112;}let N=class extends _0x154098{constructor(_0xdb9c17=T,_0x4e282d,_0x5ee0bf){const _0x373c56=_0x47bc2a;super(),this[_0x373c56(0x162)]=_0xdb9c17,this['_configService']=_0x4e282d,this[_0x373c56(0x17a)]=_0x5ee0bf;let {..._0x338481}=_0x1f8196({},T,this[_0x373c56(0x162)]);this['_configService'][_0x373c56(0x186)](_0x373c56(0x181),_0x338481);}[_0x47bc2a(0x163)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x32fe0f=_0x47bc2a;_0x1e6a9c(this[_0x32fe0f(0x17a)],[[_0x33e5fd,{'useClass':O}]]);}};M(N,'pluginName',_0x47bc2a(0x16f)),M(N,_0x47bc2a(0x168),C),M(N,_0x47bc2a(0x167),w),N=D([_0x57091f(_0x599a0d,_0x3ee3ce,_0x5abde8,_0x3b637d),E(0x1,_0x4c03a8),E(0x2,_0x250861(_0x2d0a9a))],N);let P=class extends _0x2e173e{constructor(_0x58f740,_0x599e88,_0x352d2f,_0x1c7ec3,_0x103701){const _0x51a58e=_0x47bc2a;super(_0x58f740,_0x599e88,_0x352d2f,_0x1c7ec3,_0x103701);let _0x2797b4=this['_configService'][_0x51a58e(0x16d)](_0x2fe3fc);this[_0x51a58e(0x16e)][_0x51a58e(0x185)]({'interceptor':(_0x2ad996,_0x5667c3)=>{const _0x3391f2=_0x51a58e;let _0x2d4d64=_0x2ad996[_0x3391f2(0x188)];if(_0x2797b4!=null&&_0x2797b4[_0x3391f2(0x164)]){for(let _0x5ac32d in _0x2797b4['customHeaders'])_0x2d4d64[_0x3391f2(0x184)](_0x5ac32d,_0x2797b4['customHeaders'][_0x5ac32d]);}return _0x5667c3(_0x2ad996);}});}async[_0x47bc2a(0x180)](_0x5b671c){const _0x46efae=_0x47bc2a;return this[_0x46efae(0x176)](_0x5b671c);}};P=D([E(0x0,_0x250861(_0x2d0a9a)),E(0x1,_0x250861(_0x1fb9b7)),E(0x2,_0x4c03a8),E(0x3,_0x209a81),E(0x4,_0x3da036)],P);function _0x100f(_0x1c6378,_0x5557fc){_0x1c6378=_0x1c6378-0x158;const _0x31589b=_0x3158();let _0x100f0f=_0x31589b[_0x1c6378];return _0x100f0f;}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x3158(){const _0x434c27=['createSocket','collaboration-client-node.config','symbol','_configService','set','registerHTTPInterceptor','setConfig','string','headers','defineProperty','9pjkVYb','309792eigmeA','9989919OyCHbF','pipe','1.2.0','function','error','iterator','@univerjs-pro/collaboration-client-node','_config','onStarting','customHeaders','2694384psaQll','object','version','packageName','350684oyyOdA','default','open','next','getConfig','_httpService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','call','close','send','removeEventListener','decorate','_doCreateSocket','add','11265FHxDTQ','getOwnPropertyDescriptor','_injector','addEventListener','5341574RbXNtA','message','141830sMXkgY','48yNXkuY'];_0x3158=function(){return _0x434c27;};return _0x3158();}
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();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5741(){const _0x551e4e=['20cBVrQk','591752wfxMxq','1072552RZpkQm','next','ISnapshotServerService','toStringTag','18udvfyt','string','UniverProCollaborationClientNode','CollaborationSocketService','symbol','1.2.0','createSocket','onStarting','share','set','function','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','22187KOPQqx','getOwnPropertyDescriptor','decorate','@univerjs-pro/collaboration-client','close','error','_configService','prototype','NodeCollaborationSocketService','getConfig','@univerjs/network','_doCreateSocket','pipe','UniverCollaborationPlugin','send','Module','868115HfZHKD','DisposableCollection','730379gpRopX','33562vZAfrM','UniverCollaborationClientPlugin','6852gGmRtq','version','length','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','UniverNetwork','removeEventListener','object','_config','registerDependencies','DependentOn','UniverCollaborationClientNodePlugin','collaboration-client-node.config','HTTPService','ISocketService','toPrimitive','rxjs','add','registerHTTPInterceptor','ILogService','120uXjqcD','exports','Injector','UniverNetworkPlugin','toDisposable','IConfigService','Inject','customHeaders','amd','1662810Flstsx','24bJLuzC','message','headers','@univerjs-pro/license','_registerDependencies','addEventListener','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs-pro/collaboration-client-node','@univerjs-pro/collaboration','call','WebSocket','Observable','defineProperty','dispose'];_0x5741=function(){return _0x551e4e;};return _0x5741();}function _0x4f0e(_0x5204e7,_0xbd9a2){_0x5204e7=_0x5204e7-0x8c;const _0x574174=_0x5741();let _0x4f0efa=_0x574174[_0x5204e7];return _0x4f0efa;}(function(_0x468e90,_0x43f841){const _0x5a462=_0x4f0e,_0x277543=_0x468e90();while(!![]){try{const _0x3cb9e2=parseInt(_0x5a462(0x94))/0x1+parseInt(_0x5a462(0x95))/0x2*(-parseInt(_0x5a462(0xab))/0x3)+parseInt(_0x5a462(0xc3))/0x4*(-parseInt(_0x5a462(0x92))/0x5)+-parseInt(_0x5a462(0xb5))/0x6*(parseInt(_0x5a462(0xc4))/0x7)+-parseInt(_0x5a462(0xc5))/0x8*(-parseInt(_0x5a462(0xc9))/0x9)+parseInt(_0x5a462(0xb4))/0xa+-parseInt(_0x5a462(0xd5))/0xb*(-parseInt(_0x5a462(0x97))/0xc);if(_0x3cb9e2===_0x43f841)break;else _0x277543['push'](_0x277543['shift']());}catch(_0x5c874e){_0x277543['push'](_0x277543['shift']());}}}(_0x5741,0x6b2de),function(_0x512914,_0x3bf952){const _0x206d97=_0x4f0e;typeof exports=='object'&&typeof module<'u'?_0x3bf952(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x206d97(0xd3)&&define[_0x206d97(0xb3)]?define([_0x206d97(0xac),_0x206d97(0xbd),_0x206d97(0xd8),_0x206d97(0xb8),'@univerjs/core',_0x206d97(0x8c),_0x206d97(0xa7)],_0x3bf952):(_0x512914=typeof globalThis<'u'?globalThis:_0x512914||self,_0x3bf952(_0x512914[_0x206d97(0xcb)]={},_0x512914['UniverProCollaboration'],_0x512914['UniverProCollaborationClient'],_0x512914['UniverProLicense'],_0x512914['UniverCore'],_0x512914[_0x206d97(0x9c)],_0x512914[_0x206d97(0xa7)]));}(this,function(_0x456191,_0x5b2c43,_0x3d1626,_0x5d909e,_0x2e284b,_0x224836,_0x3f5451){const _0x4b34e2=_0x4f0e;Object['defineProperty'](_0x456191,Symbol[_0x4b34e2(0xc8)],{'value':_0x4b34e2(0x91)});var _0x144a6a=(_0xeb9cb0,_0x3e234a)=>()=>(_0x3e234a||(_0xeb9cb0((_0x3e234a={'exports':{}})[_0x4b34e2(0xac)],_0x3e234a),_0xeb9cb0=null),_0x3e234a[_0x4b34e2(0xac)]),_0x1baf45=_0x4b34e2(0xbc),_0x423b82=_0x4b34e2(0xce);let _0x508ea2={};var _0x5dd875=_0x144a6a((_0xca181,_0x171d3a)=>{const _0x52b3d9=_0x4b34e2;_0x171d3a[_0x52b3d9(0xac)]=function(){const _0x5556ef=_0x52b3d9;throw Error(_0x5556ef(0xd4));};})();function _0x571732(_0x1da928,_0x41328e){return function(_0x7db2b1,_0x33534b){_0x41328e(_0x7db2b1,_0x33534b,_0x1da928);};}function _0x507320(_0xbd7aed,_0xbce5bb,_0x4b49a6,_0x5dd44a){const _0x24d8da=_0x4b34e2;var _0x10d025=arguments[_0x24d8da(0x99)],_0x35f10a=_0x10d025<0x3?_0xbce5bb:_0x5dd44a===null?_0x5dd44a=Object[_0x24d8da(0xd6)](_0xbce5bb,_0x4b49a6):_0x5dd44a,_0x46a463;if(typeof Reflect==_0x24d8da(0x9e)&&typeof Reflect[_0x24d8da(0xd7)]==_0x24d8da(0xd3))_0x35f10a=Reflect['decorate'](_0xbd7aed,_0xbce5bb,_0x4b49a6,_0x5dd44a);else{for(var _0x6b3562=_0xbd7aed[_0x24d8da(0x99)]-0x1;_0x6b3562>=0x0;_0x6b3562--)(_0x46a463=_0xbd7aed[_0x6b3562])&&(_0x35f10a=(_0x10d025<0x3?_0x46a463(_0x35f10a):_0x10d025>0x3?_0x46a463(_0xbce5bb,_0x4b49a6,_0x35f10a):_0x46a463(_0xbce5bb,_0x4b49a6))||_0x35f10a);}return _0x10d025>0x3&&_0x35f10a&&Object['defineProperty'](_0xbce5bb,_0x4b49a6,_0x35f10a),_0x35f10a;}let _0x4b6bf8=class extends _0x2e284b['Disposable']{constructor(_0x5b3129){const _0x56a4c6=_0x4b34e2;super(),this[_0x56a4c6(0xdb)]=_0x5b3129;}[_0x4b34e2(0xcf)](_0x4e9462){const _0x51088e=_0x4b34e2;var _0x2bd1a7;let _0x3ad65c=((_0x2bd1a7=this['_configService'][_0x51088e(0xde)](_0x3d1626['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x2bd1a7[_0x51088e(0xb2)])||{};try{let _0x2ce4d8=new _0x5dd875[(_0x51088e(0xbf))](_0x4e9462,{'headers':{..._0x3ad65c}}),_0x143b78=new _0x2e284b[(_0x51088e(0x93))]();return{'URL':_0x4e9462,'close':(_0xe801cc,_0x16b233)=>{const _0x4c4b0c=_0x51088e;_0x2ce4d8[_0x4c4b0c(0xd9)](_0xe801cc,_0x16b233),_0x143b78[_0x4c4b0c(0xc2)]();},'send':_0x19ce98=>{const _0x20a430=_0x51088e;_0x2ce4d8[_0x20a430(0x90)](_0x19ce98);},'open$':new _0x3f5451['Observable'](_0x1259e8=>{const _0x345f34=_0x51088e;let _0x2db9d3=_0x9acb73=>_0x1259e8[_0x345f34(0xc6)](_0x9acb73);_0x2ce4d8[_0x345f34(0xba)]('open',_0x2db9d3),_0x143b78[_0x345f34(0xa8)]((0x0,_0x2e284b['toDisposable'])(()=>_0x2ce4d8[_0x345f34(0x9d)]('open',_0x2db9d3)));})[_0x51088e(0x8e)]((0x0,_0x3f5451[_0x51088e(0xd1)])()),'close$':new _0x3f5451[(_0x51088e(0xc0))](_0x4956cf=>{const _0x5b09a6=_0x51088e;let _0x2c2526=_0x4c9020=>_0x4956cf['next'](_0x4c9020);_0x2ce4d8['addEventListener'](_0x5b09a6(0xd9),_0x2c2526),_0x143b78['add']((0x0,_0x2e284b[_0x5b09a6(0xaf)])(()=>_0x2ce4d8['removeEventListener'](_0x5b09a6(0xd9),_0x2c2526)));})[_0x51088e(0x8e)]((0x0,_0x3f5451[_0x51088e(0xd1)])()),'error$':new _0x3f5451[(_0x51088e(0xc0))](_0x4d5ad8=>{const _0x5d69df=_0x51088e;let _0x313f1d=_0x48c681=>_0x4d5ad8[_0x5d69df(0xc6)](_0x48c681);_0x2ce4d8[_0x5d69df(0xba)](_0x5d69df(0xda),_0x313f1d),_0x143b78['add']((0x0,_0x2e284b['toDisposable'])(()=>_0x2ce4d8[_0x5d69df(0x9d)](_0x5d69df(0xda),_0x313f1d)));})[_0x51088e(0x8e)]((0x0,_0x3f5451[_0x51088e(0xd1)])()),'message$':new _0x3f5451['Observable'](_0x46f161=>{const _0x4438bf=_0x51088e;let _0x484f4c=_0x34a9d1=>_0x46f161[_0x4438bf(0xc6)](_0x34a9d1);_0x2ce4d8[_0x4438bf(0xba)](_0x4438bf(0xb6),_0x484f4c),_0x143b78[_0x4438bf(0xa8)]((0x0,_0x2e284b['toDisposable'])(()=>_0x2ce4d8[_0x4438bf(0x9d)]('message',_0x484f4c)));})['pipe']((0x0,_0x3f5451[_0x51088e(0xd1)])())};}catch(_0x2af5d5){return console['error'](_0x2af5d5),null;}}};_0x4b6bf8=_0x507320([_0x571732(0x0,_0x2e284b[_0x4b34e2(0xb0)])],_0x4b6bf8);function _0xe7241f(_0x43656b){'@babel/helpers - typeof';const _0x3a7e79=_0x4b34e2;return _0xe7241f=typeof Symbol==_0x3a7e79(0xd3)&&typeof Symbol['iterator']==_0x3a7e79(0xcd)?function(_0x20b187){return typeof _0x20b187;}:function(_0x4d2be5){const _0x2df101=_0x3a7e79;return _0x4d2be5&&typeof Symbol==_0x2df101(0xd3)&&_0x4d2be5[_0x2df101(0x9b)]===Symbol&&_0x4d2be5!==Symbol[_0x2df101(0xdc)]?_0x2df101(0xcd):typeof _0x4d2be5;},_0xe7241f(_0x43656b);}function _0x401a85(_0x4da4ae,_0xb216e){const _0x33cfb8=_0x4b34e2;if(_0xe7241f(_0x4da4ae)!=_0x33cfb8(0x9e)||!_0x4da4ae)return _0x4da4ae;var _0x5ed4d0=_0x4da4ae[Symbol[_0x33cfb8(0xa6)]];if(_0x5ed4d0!==void 0x0){var _0x246f76=_0x5ed4d0[_0x33cfb8(0xbe)](_0x4da4ae,_0xb216e||'default');if(_0xe7241f(_0x246f76)!=_0x33cfb8(0x9e))return _0x246f76;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xb216e===_0x33cfb8(0xca)?String:Number)(_0x4da4ae);}function _0x392a32(_0x1deafe){const _0x3ff6b8=_0x4b34e2;var _0x49c4d0=_0x401a85(_0x1deafe,_0x3ff6b8(0xca));return _0xe7241f(_0x49c4d0)==_0x3ff6b8(0xcd)?_0x49c4d0:_0x49c4d0+'';}function _0x324a7d(_0x556c9c,_0x501067,_0x1afc30){return(_0x501067=_0x392a32(_0x501067))in _0x556c9c?Object['defineProperty'](_0x556c9c,_0x501067,{'value':_0x1afc30,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x556c9c[_0x501067]=_0x1afc30,_0x556c9c;}let _0x2435f5=class extends _0x2e284b['Plugin']{constructor(_0x56ca97=_0x508ea2,_0xef7119,_0x53d46c){const _0x3c3d7f=_0x4b34e2;super(),this[_0x3c3d7f(0x9f)]=_0x56ca97,this['_configService']=_0xef7119,this['_injector']=_0x53d46c;let {..._0x2929a2}=(0x0,_0x2e284b['merge'])({},_0x508ea2,this[_0x3c3d7f(0x9f)]);this[_0x3c3d7f(0xdb)]['setConfig'](_0x3c3d7f(0xa3),_0x2929a2);}[_0x4b34e2(0xd0)](){const _0x42cd00=_0x4b34e2;this[_0x42cd00(0xb9)]();}[_0x4b34e2(0xb9)](){const _0x37e985=_0x4b34e2;(0x0,_0x2e284b[_0x37e985(0xa0)])(this['_injector'],[[_0x224836[_0x37e985(0xa5)],{'useClass':_0x4b6bf8}]]);}};_0x324a7d(_0x2435f5,'pluginName',_0x4b34e2(0x9a)),_0x324a7d(_0x2435f5,'packageName',_0x1baf45),_0x324a7d(_0x2435f5,_0x4b34e2(0x98),_0x423b82),_0x2435f5=_0x507320([(0x0,_0x2e284b[_0x4b34e2(0xa1)])(_0x5d909e['UniverLicensePlugin'],_0x224836[_0x4b34e2(0xae)],_0x5b2c43[_0x4b34e2(0x8f)],_0x3d1626[_0x4b34e2(0x96)]),_0x571732(0x1,_0x2e284b[_0x4b34e2(0xb0)]),_0x571732(0x2,(0x0,_0x2e284b['Inject'])(_0x2e284b[_0x4b34e2(0xad)]))],_0x2435f5);let _0x31e157=class extends _0x3d1626[_0x4b34e2(0xcc)]{constructor(_0x27c8fc,_0x372b6b,_0xab4956,_0x58faa8,_0x43364d){const _0x509ed8=_0x4b34e2;super(_0x27c8fc,_0x372b6b,_0xab4956,_0x58faa8,_0x43364d);let _0x1a5d07=this[_0x509ed8(0xdb)][_0x509ed8(0xde)](_0x3d1626[_0x509ed8(0xbb)]);this['_httpService'][_0x509ed8(0xa9)]({'interceptor':(_0x16e775,_0x1aa0e9)=>{const _0x1efec0=_0x509ed8;let _0x2784b6=_0x16e775[_0x1efec0(0xb7)];if(_0x1a5d07!=null&&_0x1a5d07[_0x1efec0(0xb2)]){for(let _0x525a1e in _0x1a5d07[_0x1efec0(0xb2)])_0x2784b6[_0x1efec0(0xd2)](_0x525a1e,_0x1a5d07[_0x1efec0(0xb2)][_0x525a1e]);}return _0x1aa0e9(_0x16e775);}});}async[_0x4b34e2(0xcf)](_0x1631ea){const _0x161572=_0x4b34e2;return this[_0x161572(0x8d)](_0x1631ea);}};_0x31e157=_0x507320([_0x571732(0x0,(0x0,_0x2e284b[_0x4b34e2(0xb1)])(_0x2e284b[_0x4b34e2(0xad)])),_0x571732(0x1,(0x0,_0x2e284b['Inject'])(_0x224836[_0x4b34e2(0xa4)])),_0x571732(0x2,_0x2e284b[_0x4b34e2(0xb0)]),_0x571732(0x3,_0x2e284b[_0x4b34e2(0xaa)]),_0x571732(0x4,_0x5b2c43[_0x4b34e2(0xc7)])],_0x31e157),Object['defineProperty'](_0x456191,_0x4b34e2(0xdd),{'enumerable':!0x0,'get':function(){return _0x31e157;}}),Object[_0x4b34e2(0xc1)](_0x456191,_0x4b34e2(0xa2),{'enumerable':!0x0,'get':function(){return _0x2435f5;}});}));
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
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.2.0",
55
- "@univerjs-pro/collaboration-client": "1.2.0",
56
- "@univerjs-pro/license": "1.2.0",
57
- "@univerjs/core": "1.2.0",
58
- "@univerjs/network": "1.2.0",
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",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.2.0",
63
+ "@univerjs-infra/shared": "1.3.0",
64
64
  "rxjs": "7.8.2",
65
65
  "typescript": "^6.0.3",
66
66
  "vitest": "^5.0.4"