@univerjs-pro/collaboration-client-node 1.0.0-alpha.0 → 1.0.0-alpha.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 _0x49dd44=_0x21f7;(function(_0x235a21,_0x793caf){const _0x2c9277=_0x21f7,_0x547665=_0x235a21();while(!![]){try{const _0xd0087e=-parseInt(_0x2c9277(0x102))/0x1+-parseInt(_0x2c9277(0xf4))/0x2+-parseInt(_0x2c9277(0x10d))/0x3*(-parseInt(_0x2c9277(0x105))/0x4)+-parseInt(_0x2c9277(0x118))/0x5+-parseInt(_0x2c9277(0x109))/0x6*(parseInt(_0x2c9277(0x11a))/0x7)+parseInt(_0x2c9277(0xe6))/0x8*(parseInt(_0x2c9277(0x103))/0x9)+parseInt(_0x2c9277(0xec))/0xa;if(_0xd0087e===_0x793caf)break;else _0x547665['push'](_0x547665['shift']());}catch(_0x61973b){_0x547665['push'](_0x547665['shift']());}}}(_0x124e,0xcd3f7),Object['defineProperty'](exports,Symbol[_0x49dd44(0x117)],{'value':_0x49dd44(0x122)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');const o=_0x49dd44(0xf8),s={};var c=_0x49dd44(0x112),l=_0x49dd44(0x10c);function _0x124e(){const _0x4366aa=['ILogService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration-client-node','getConfig','CollaborationSocketService','_injector','getOwnPropertyDescriptor','toStringTag','6966635MkcYtf','setConfig','790951JSwZrp','decorate','pipe','IConfigService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','object','dispose','headers','Module','next','Injector','HTTPService','message','open','send','272GkjWJO','function','registerDependencies','iterator','length','share','19495270FyKVoU','DependentOn','toDisposable','Disposable','DisposableCollection','Observable','_registerDependencies','string','2061624jHzyNG','packageName','error','_httpService','collaboration-client-node.config','removeEventListener','customHeaders','createSocket','NodeCollaborationSocketService','_configService','close','defineProperty','addEventListener','add','159925fnlpsQ','359847MtWWju','onStarting','17528Pnwjpp','registerHTTPInterceptor','Inject','toPrimitive','12LkUdIr','default','constructor','1.0.0-alpha.0','234tJhrhe','COLLABORATION_CLIENT_NODE_CONFIG_KEY','symbol'];_0x124e=function(){return _0x4366aa;};return _0x124e();}function u(_0x29a222,_0x8f9665){return function(_0x3f10d1,_0x2e25e6){_0x8f9665(_0x3f10d1,_0x2e25e6,_0x29a222);};}function d(_0x2ece08,_0x2700aa,_0x20a710,_0x367ebf){const _0x4493cf=_0x49dd44;var _0x210661=arguments['length'],_0x51506d=_0x210661<0x3?_0x2700aa:_0x367ebf===null?_0x367ebf=Object[_0x4493cf(0x116)](_0x2700aa,_0x20a710):_0x367ebf,_0x306e71;if(typeof Reflect==_0x4493cf(0x11f)&&typeof Reflect[_0x4493cf(0x11b)]=='function')_0x51506d=Reflect[_0x4493cf(0x11b)](_0x2ece08,_0x2700aa,_0x20a710,_0x367ebf);else{for(var _0x533dec=_0x2ece08[_0x4493cf(0xea)]-0x1;_0x533dec>=0x0;_0x533dec--)(_0x306e71=_0x2ece08[_0x533dec])&&(_0x51506d=(_0x210661<0x3?_0x306e71(_0x51506d):_0x210661>0x3?_0x306e71(_0x2700aa,_0x20a710,_0x51506d):_0x306e71(_0x2700aa,_0x20a710))||_0x51506d);}return _0x210661>0x3&&_0x51506d&&Object[_0x4493cf(0xff)](_0x2700aa,_0x20a710,_0x51506d),_0x51506d;}let f=class extends t[_0x49dd44(0xef)]{constructor(_0x262088){const _0x55086d=_0x49dd44;super(),this[_0x55086d(0xfd)]=_0x262088;}[_0x49dd44(0xfb)](_0x29d4d1){const _0xbc3115=_0x49dd44;var _0x367c1c;let _0x23e3c2=((_0x367c1c=this[_0xbc3115(0xfd)]['getConfig'](e[_0xbc3115(0x11e)]))==null?void 0x0:_0x367c1c[_0xbc3115(0xfa)])||{};try{let _0x507f8d=new i['WebSocket'](_0x29d4d1,{'headers':{..._0x23e3c2}}),_0x92f282=new t[(_0xbc3115(0xf0))]();return{'URL':_0x29d4d1,'close':(_0x595879,_0x525c63)=>{const _0x578697=_0xbc3115;_0x507f8d['close'](_0x595879,_0x525c63),_0x92f282[_0x578697(0x120)]();},'send':_0x37d6b6=>{const _0x4e18c8=_0xbc3115;_0x507f8d[_0x4e18c8(0xe5)](_0x37d6b6);},'open$':new r[(_0xbc3115(0xf1))](_0x419363=>{const _0x2114be=_0xbc3115;let _0x10e960=_0x3f38b6=>_0x419363[_0x2114be(0xe0)](_0x3f38b6);_0x507f8d[_0x2114be(0x100)](_0x2114be(0xe4),_0x10e960),_0x92f282['add']((0x0,t[_0x2114be(0xee)])(()=>_0x507f8d[_0x2114be(0xf9)](_0x2114be(0xe4),_0x10e960)));})['pipe']((0x0,r[_0xbc3115(0xeb)])()),'close$':new r[(_0xbc3115(0xf1))](_0x58c242=>{const _0x226e50=_0xbc3115;let _0x23fdaf=_0x1bd954=>_0x58c242[_0x226e50(0xe0)](_0x1bd954);_0x507f8d[_0x226e50(0x100)](_0x226e50(0xfe),_0x23fdaf),_0x92f282['add']((0x0,t['toDisposable'])(()=>_0x507f8d['removeEventListener']('close',_0x23fdaf)));})[_0xbc3115(0x11c)]((0x0,r[_0xbc3115(0xeb)])()),'error$':new r[(_0xbc3115(0xf1))](_0x5fe40a=>{const _0x5cadc3=_0xbc3115;let _0x4b1bac=_0x32aa3b=>_0x5fe40a[_0x5cadc3(0xe0)](_0x32aa3b);_0x507f8d['addEventListener'](_0x5cadc3(0xf6),_0x4b1bac),_0x92f282[_0x5cadc3(0x101)]((0x0,t[_0x5cadc3(0xee)])(()=>_0x507f8d[_0x5cadc3(0xf9)]('error',_0x4b1bac)));})[_0xbc3115(0x11c)]((0x0,r[_0xbc3115(0xeb)])()),'message$':new r['Observable'](_0x10459e=>{const _0x3c3704=_0xbc3115;let _0x5ea977=_0x26c672=>_0x10459e[_0x3c3704(0xe0)](_0x26c672);_0x507f8d[_0x3c3704(0x100)](_0x3c3704(0xe3),_0x5ea977),_0x92f282['add']((0x0,t[_0x3c3704(0xee)])(()=>_0x507f8d[_0x3c3704(0xf9)](_0x3c3704(0xe3),_0x5ea977)));})[_0xbc3115(0x11c)]((0x0,r[_0xbc3115(0xeb)])())};}catch(_0x5ac2d8){return console[_0xbc3115(0xf6)](_0x5ac2d8),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0x4500b3){'@babel/helpers - typeof';const _0x18a59b=_0x49dd44;return p=typeof Symbol==_0x18a59b(0xe7)&&typeof Symbol[_0x18a59b(0xe9)]=='symbol'?function(_0x4f516a){return typeof _0x4f516a;}:function(_0x4d2d18){const _0x58f3c2=_0x18a59b;return _0x4d2d18&&typeof Symbol==_0x58f3c2(0xe7)&&_0x4d2d18[_0x58f3c2(0x10b)]===Symbol&&_0x4d2d18!==Symbol['prototype']?_0x58f3c2(0x10f):typeof _0x4d2d18;},p(_0x4500b3);}function m(_0x528717,_0x27df3a){const _0x49bd49=_0x49dd44;if(p(_0x528717)!=_0x49bd49(0x11f)||!_0x528717)return _0x528717;var _0x46852e=_0x528717[Symbol[_0x49bd49(0x108)]];if(_0x46852e!==void 0x0){var _0x5749c0=_0x46852e['call'](_0x528717,_0x27df3a||_0x49bd49(0x10a));if(p(_0x5749c0)!='object')return _0x5749c0;throw TypeError(_0x49bd49(0x111));}return(_0x27df3a===_0x49bd49(0xf3)?String:Number)(_0x528717);}function h(_0x3bafb7){var _0x1203bd=m(_0x3bafb7,'string');return p(_0x1203bd)=='symbol'?_0x1203bd:_0x1203bd+'';}function g(_0x41ceb3,_0x316911,_0x48a68a){const _0x4f550b=_0x49dd44;return(_0x316911=h(_0x316911))in _0x41ceb3?Object[_0x4f550b(0xff)](_0x41ceb3,_0x316911,{'value':_0x48a68a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41ceb3[_0x316911]=_0x48a68a,_0x41ceb3;}function _0x21f7(_0x2c60eb,_0x43cf4b){_0x2c60eb=_0x2c60eb-0xe0;const _0x124e6f=_0x124e();let _0x21f716=_0x124e6f[_0x2c60eb];return _0x21f716;}let _=class extends t['Plugin']{constructor(_0x1ca687=s,_0x247b03,_0x253ee2){const _0x396458=_0x49dd44;super(),this['_configService']=_0x247b03,this[_0x396458(0x115)]=_0x253ee2,this['_configService'][_0x396458(0x119)](o,_0x1ca687);}[_0x49dd44(0x104)](){const _0x40f3df=_0x49dd44;this[_0x40f3df(0xf2)]();}[_0x49dd44(0xf2)](){const _0x34b88f=_0x49dd44;(0x0,t[_0x34b88f(0xe8)])(this[_0x34b88f(0x115)],[[n['ISocketService'],{'useClass':f}]]);}};g(_,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,_0x49dd44(0xf5),c),g(_,'version',l),_=d([(0x0,t[_0x49dd44(0xed)])(e['UniverCollaborationClientPlugin']),u(0x1,t[_0x49dd44(0x11d)]),u(0x2,(0x0,t[_0x49dd44(0x107)])(t[_0x49dd44(0xe1)]))],_);let v=class extends e[_0x49dd44(0x114)]{constructor(_0x3a1212,_0x989eb6,_0x31d69f,_0x56a9f5,_0x52c892){const _0x4787e1=_0x49dd44;super(_0x3a1212,_0x989eb6,_0x31d69f,_0x56a9f5,_0x52c892);let _0x213654=this['_configService'][_0x4787e1(0x113)](e[_0x4787e1(0x11e)]);this[_0x4787e1(0xf7)][_0x4787e1(0x106)]({'interceptor':(_0x1bca8d,_0x350fa8)=>{const _0x4f9e3e=_0x4787e1;let _0x278424=_0x1bca8d[_0x4f9e3e(0x121)];if(_0x213654!=null&&_0x213654[_0x4f9e3e(0xfa)]){for(let _0x261108 in _0x213654['customHeaders'])_0x278424['set'](_0x261108,_0x213654[_0x4f9e3e(0xfa)][_0x261108]);}return _0x350fa8(_0x1bca8d);}});}async[_0x49dd44(0xfb)](_0x47e1e4){return this['_doCreateSocket'](_0x47e1e4);}};v=d([u(0x0,(0x0,t[_0x49dd44(0x107)])(t[_0x49dd44(0xe1)])),u(0x1,(0x0,t[_0x49dd44(0x107)])(n[_0x49dd44(0xe2)])),u(0x2,t['IConfigService']),u(0x3,t[_0x49dd44(0x110)]),u(0x4,a['ISnapshotServerService'])],v),exports[_0x49dd44(0x10e)]=o,Object[_0x49dd44(0xff)](exports,_0x49dd44(0xfc),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x500098=_0x128e;(function(_0x12b4d4,_0x3ee7f2){const _0x1bfc49=_0x128e,_0x5cc45f=_0x12b4d4();while(!![]){try{const _0x1def23=-parseInt(_0x1bfc49(0x13a))/0x1*(parseInt(_0x1bfc49(0x145))/0x2)+-parseInt(_0x1bfc49(0x137))/0x3*(parseInt(_0x1bfc49(0x164))/0x4)+-parseInt(_0x1bfc49(0x13b))/0x5+-parseInt(_0x1bfc49(0x148))/0x6*(parseInt(_0x1bfc49(0x151))/0x7)+parseInt(_0x1bfc49(0x163))/0x8+-parseInt(_0x1bfc49(0x15d))/0x9*(parseInt(_0x1bfc49(0x14b))/0xa)+parseInt(_0x1bfc49(0x173))/0xb;if(_0x1def23===_0x3ee7f2)break;else _0x5cc45f['push'](_0x5cc45f['shift']());}catch(_0x29e2e9){_0x5cc45f['push'](_0x5cc45f['shift']());}}}(_0x28e0,0xa110c),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x500098(0x157)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');const o='collaboration-client-node.config',s={};var c=_0x500098(0x169),l=_0x500098(0x149);function u(_0x4af5cc,_0xcbea84){return function(_0x56216c,_0x3d2e2d){_0xcbea84(_0x56216c,_0x3d2e2d,_0x4af5cc);};}function d(_0x760e2,_0x19aae1,_0x45d979,_0x3e792b){const _0x7f9b4e=_0x500098;var _0x3906b8=arguments[_0x7f9b4e(0x150)],_0x2f1ead=_0x3906b8<0x3?_0x19aae1:_0x3e792b===null?_0x3e792b=Object['getOwnPropertyDescriptor'](_0x19aae1,_0x45d979):_0x3e792b,_0x4816df;if(typeof Reflect==_0x7f9b4e(0x154)&&typeof Reflect[_0x7f9b4e(0x166)]==_0x7f9b4e(0x14a))_0x2f1ead=Reflect[_0x7f9b4e(0x166)](_0x760e2,_0x19aae1,_0x45d979,_0x3e792b);else{for(var _0x1a8ab8=_0x760e2[_0x7f9b4e(0x150)]-0x1;_0x1a8ab8>=0x0;_0x1a8ab8--)(_0x4816df=_0x760e2[_0x1a8ab8])&&(_0x2f1ead=(_0x3906b8<0x3?_0x4816df(_0x2f1ead):_0x3906b8>0x3?_0x4816df(_0x19aae1,_0x45d979,_0x2f1ead):_0x4816df(_0x19aae1,_0x45d979))||_0x2f1ead);}return _0x3906b8>0x3&&_0x2f1ead&&Object[_0x7f9b4e(0x143)](_0x19aae1,_0x45d979,_0x2f1ead),_0x2f1ead;}let f=class extends t[_0x500098(0x15b)]{constructor(_0x1bf418){const _0xf5e4fa=_0x500098;super(),this[_0xf5e4fa(0x16f)]=_0x1bf418;}[_0x500098(0x14e)](_0x5a2672){const _0x13cd5e=_0x500098;var _0x15adeb;let _0x1b1529=((_0x15adeb=this[_0x13cd5e(0x16f)][_0x13cd5e(0x13d)](e[_0x13cd5e(0x158)]))==null?void 0x0:_0x15adeb[_0x13cd5e(0x159)])||{};try{let _0x3d4ae8=new i['WebSocket'](_0x5a2672,{'headers':{..._0x1b1529}}),_0x424116=new t['DisposableCollection']();return{'URL':_0x5a2672,'close':(_0x479144,_0x4d866f)=>{const _0x306c8a=_0x13cd5e;_0x3d4ae8[_0x306c8a(0x177)](_0x479144,_0x4d866f),_0x424116[_0x306c8a(0x171)]();},'send':_0x223b5e=>{const _0x54b5cc=_0x13cd5e;_0x3d4ae8[_0x54b5cc(0x160)](_0x223b5e);},'open$':new r['Observable'](_0x260751=>{const _0x2b6399=_0x13cd5e;let _0x3da87f=_0x358876=>_0x260751['next'](_0x358876);_0x3d4ae8[_0x2b6399(0x138)](_0x2b6399(0x136),_0x3da87f),_0x424116[_0x2b6399(0x135)]((0x0,t[_0x2b6399(0x162)])(()=>_0x3d4ae8[_0x2b6399(0x174)](_0x2b6399(0x136),_0x3da87f)));})[_0x13cd5e(0x16e)]((0x0,r[_0x13cd5e(0x15e)])()),'close$':new r[(_0x13cd5e(0x140))](_0x329412=>{const _0x53cb21=_0x13cd5e;let _0x385248=_0x156624=>_0x329412[_0x53cb21(0x165)](_0x156624);_0x3d4ae8[_0x53cb21(0x138)]('close',_0x385248),_0x424116[_0x53cb21(0x135)]((0x0,t[_0x53cb21(0x162)])(()=>_0x3d4ae8[_0x53cb21(0x174)]('close',_0x385248)));})[_0x13cd5e(0x16e)]((0x0,r['share'])()),'error$':new r['Observable'](_0x3a22d9=>{const _0x327178=_0x13cd5e;let _0x5988b1=_0xc77a2a=>_0x3a22d9['next'](_0xc77a2a);_0x3d4ae8[_0x327178(0x138)](_0x327178(0x16a),_0x5988b1),_0x424116[_0x327178(0x135)]((0x0,t[_0x327178(0x162)])(()=>_0x3d4ae8[_0x327178(0x174)](_0x327178(0x16a),_0x5988b1)));})[_0x13cd5e(0x16e)]((0x0,r[_0x13cd5e(0x15e)])()),'message$':new r[(_0x13cd5e(0x140))](_0x3216c3=>{const _0x3f35d0=_0x13cd5e;let _0x32c50d=_0x282430=>_0x3216c3[_0x3f35d0(0x165)](_0x282430);_0x3d4ae8[_0x3f35d0(0x138)](_0x3f35d0(0x16d),_0x32c50d),_0x424116[_0x3f35d0(0x135)]((0x0,t[_0x3f35d0(0x162)])(()=>_0x3d4ae8['removeEventListener']('message',_0x32c50d)));})[_0x13cd5e(0x16e)]((0x0,r[_0x13cd5e(0x15e)])())};}catch(_0x355c22){return console[_0x13cd5e(0x16a)](_0x355c22),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0x32e77d){'@babel/helpers - typeof';const _0x2d6118=_0x500098;return p=typeof Symbol==_0x2d6118(0x14a)&&typeof Symbol[_0x2d6118(0x14d)]==_0x2d6118(0x15a)?function(_0x1fe5cc){return typeof _0x1fe5cc;}:function(_0x89b8b7){const _0x2f43f9=_0x2d6118;return _0x89b8b7&&typeof Symbol=='function'&&_0x89b8b7[_0x2f43f9(0x15c)]===Symbol&&_0x89b8b7!==Symbol[_0x2f43f9(0x16c)]?_0x2f43f9(0x15a):typeof _0x89b8b7;},p(_0x32e77d);}function m(_0x14e86a,_0x2892b0){const _0xfa7d43=_0x500098;if(p(_0x14e86a)!=_0xfa7d43(0x154)||!_0x14e86a)return _0x14e86a;var _0x5661e3=_0x14e86a[Symbol['toPrimitive']];if(_0x5661e3!==void 0x0){var _0x5b69c3=_0x5661e3['call'](_0x14e86a,_0x2892b0||'default');if(p(_0x5b69c3)!=_0xfa7d43(0x154))return _0x5b69c3;throw TypeError(_0xfa7d43(0x142));}return(_0x2892b0===_0xfa7d43(0x13c)?String:Number)(_0x14e86a);}function h(_0x1f1b63){const _0x5701fc=_0x500098;var _0x1701b9=m(_0x1f1b63,_0x5701fc(0x13c));return p(_0x1701b9)==_0x5701fc(0x15a)?_0x1701b9:_0x1701b9+'';}function _0x28e0(){const _0x874bfe=['12835670vzencN','packageName','iterator','createSocket','_injector','length','7IMfLmv','ISnapshotServerService','registerDependencies','object','Injector','setConfig','Module','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','customHeaders','symbol','Disposable','constructor','9AxmsYA','share','headers','send','set','toDisposable','1368960eqrkzE','870388izaqUs','next','decorate','UniverCollaborationClientNodePlugin','onStarting','@univerjs-pro/collaboration-client-node','error','Inject','prototype','message','pipe','_configService','DependentOn','dispose','_httpService','43560814ZIFwcJ','removeEventListener','IConfigService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','close','CollaborationSocketService','add','open','3rUnNrf','addEventListener','COLLABORATION_CLIENT_NODE_CONFIG_KEY','1703AhRccl','2694120eionhq','string','getConfig','_registerDependencies','pluginName','Observable','NodeCollaborationSocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','_doCreateSocket','922NcJkwg','ILogService','UniverCollaborationClientPlugin','3878394QpPOCu','1.0.0-alpha.1','function'];_0x28e0=function(){return _0x874bfe;};return _0x28e0();}function g(_0x3ff0dc,_0x33fd4a,_0x1a46e2){return(_0x33fd4a=h(_0x33fd4a))in _0x3ff0dc?Object['defineProperty'](_0x3ff0dc,_0x33fd4a,{'value':_0x1a46e2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ff0dc[_0x33fd4a]=_0x1a46e2,_0x3ff0dc;}let _=class extends t['Plugin']{constructor(_0x442984=s,_0xb7b7ea,_0x16957a){const _0x247081=_0x500098;super(),this[_0x247081(0x16f)]=_0xb7b7ea,this[_0x247081(0x14f)]=_0x16957a,this[_0x247081(0x16f)][_0x247081(0x156)](o,_0x442984);}[_0x500098(0x168)](){const _0x34c062=_0x500098;this[_0x34c062(0x13e)]();}[_0x500098(0x13e)](){const _0x167408=_0x500098;(0x0,t[_0x167408(0x153)])(this['_injector'],[[n['ISocketService'],{'useClass':f}]]);}};g(_,_0x500098(0x13f),_0x500098(0x176)),g(_,_0x500098(0x14c),c),g(_,'version',l),_=d([(0x0,t[_0x500098(0x170)])(e[_0x500098(0x147)]),u(0x1,t[_0x500098(0x175)]),u(0x2,(0x0,t[_0x500098(0x16b)])(t['Injector']))],_);let v=class extends e[_0x500098(0x134)]{constructor(_0x3217f4,_0x358abe,_0x45b254,_0x21bf28,_0x4d6bbe){const _0xa0693f=_0x500098;super(_0x3217f4,_0x358abe,_0x45b254,_0x21bf28,_0x4d6bbe);let _0x5d0175=this[_0xa0693f(0x16f)]['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0xa0693f(0x172)]['registerHTTPInterceptor']({'interceptor':(_0x1ef938,_0x56dbb8)=>{const _0xd25a7f=_0xa0693f;let _0x3053ae=_0x1ef938[_0xd25a7f(0x15f)];if(_0x5d0175!=null&&_0x5d0175[_0xd25a7f(0x159)]){for(let _0x163be4 in _0x5d0175[_0xd25a7f(0x159)])_0x3053ae[_0xd25a7f(0x161)](_0x163be4,_0x5d0175[_0xd25a7f(0x159)][_0x163be4]);}return _0x56dbb8(_0x1ef938);}});}async[_0x500098(0x14e)](_0x460eb0){const _0x5149c6=_0x500098;return this[_0x5149c6(0x144)](_0x460eb0);}};function _0x128e(_0x4b5edd,_0x4027e8){_0x4b5edd=_0x4b5edd-0x134;const _0x28e05c=_0x28e0();let _0x128e35=_0x28e05c[_0x4b5edd];return _0x128e35;}v=d([u(0x0,(0x0,t['Inject'])(t[_0x500098(0x155)])),u(0x1,(0x0,t['Inject'])(n['HTTPService'])),u(0x2,t[_0x500098(0x175)]),u(0x3,t[_0x500098(0x146)]),u(0x4,a[_0x500098(0x152)])],v),exports[_0x500098(0x139)]=o,Object['defineProperty'](exports,_0x500098(0x141),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,_0x500098(0x167),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x43ea42=_0x1337;(function(_0x116da9,_0x150dc7){const _0x551007=_0x1337,_0x11fcd2=_0x116da9();while(!![]){try{const _0xb127f3=parseInt(_0x551007(0x1aa))/0x1*(parseInt(_0x551007(0x19f))/0x2)+parseInt(_0x551007(0x19a))/0x3+parseInt(_0x551007(0x192))/0x4*(parseInt(_0x551007(0x196))/0x5)+-parseInt(_0x551007(0x1b9))/0x6+-parseInt(_0x551007(0x1b1))/0x7*(parseInt(_0x551007(0x195))/0x8)+-parseInt(_0x551007(0x1ba))/0x9*(parseInt(_0x551007(0x1af))/0xa)+parseInt(_0x551007(0x1b8))/0xb*(-parseInt(_0x551007(0x1b6))/0xc);if(_0xb127f3===_0x150dc7)break;else _0x11fcd2['push'](_0x11fcd2['shift']());}catch(_0x4c04c6){_0x11fcd2['push'](_0x11fcd2['shift']());}}}(_0x1aee,0xa5166));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x962a65,CollaborationSocketService as _0x10e00f,UniverCollaborationClientPlugin as _0x375d53}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x58f136,Disposable as _0x1ee4f0,DisposableCollection as _0x1433a1,IConfigService as _0x2fb584,ILogService as _0x433198,Inject as _0x1fbf73,Injector as _0x2dd465,Plugin as _0x262031,registerDependencies as _0x1ffa01,toDisposable as _0xc2d03b}from'@univerjs/core';import{HTTPService as _0x523f9b,ISocketService as _0x4ca083}from'@univerjs/network';import{Observable as _0x308b84,share as _0x4386e2}from'rxjs';import{WebSocket as _0x47f1b6}from'ws';import{ISnapshotServerService as _0x12b622}from'@univerjs-pro/collaboration';const y=_0x43ea42(0x18d),b={};var x=_0x43ea42(0x18f),S='1.0.0-alpha.0';function C(_0x521313,_0x2910e3){return function(_0x3f38c1,_0x216397){_0x2910e3(_0x3f38c1,_0x216397,_0x521313);};}function _0x1337(_0x5f0efd,_0x3a6476){_0x5f0efd=_0x5f0efd-0x18d;const _0x1aeec8=_0x1aee();let _0x13372b=_0x1aeec8[_0x5f0efd];return _0x13372b;}function w(_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5){const _0x44b040=_0x43ea42;var _0x2760da=arguments['length'],_0x26f558=_0x2760da<0x3?_0x46ecee:_0x37c7f5===null?_0x37c7f5=Object[_0x44b040(0x1c1)](_0x46ecee,_0x4173c1):_0x37c7f5,_0x386dd3;if(typeof Reflect==_0x44b040(0x1a7)&&typeof Reflect['decorate']==_0x44b040(0x1a0))_0x26f558=Reflect[_0x44b040(0x1ad)](_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5);else{for(var _0x6ed17=_0x371487['length']-0x1;_0x6ed17>=0x0;_0x6ed17--)(_0x386dd3=_0x371487[_0x6ed17])&&(_0x26f558=(_0x2760da<0x3?_0x386dd3(_0x26f558):_0x2760da>0x3?_0x386dd3(_0x46ecee,_0x4173c1,_0x26f558):_0x386dd3(_0x46ecee,_0x4173c1))||_0x26f558);}return _0x2760da>0x3&&_0x26f558&&Object[_0x44b040(0x1c2)](_0x46ecee,_0x4173c1,_0x26f558),_0x26f558;}let T=class extends _0x1ee4f0{constructor(_0x471531){const _0x3325fa=_0x43ea42;super(),this[_0x3325fa(0x1bc)]=_0x471531;}[_0x43ea42(0x1bf)](_0x1b05d0){const _0x165ffa=_0x43ea42;var _0xef08f;let _0x23b483=((_0xef08f=this[_0x165ffa(0x1bc)]['getConfig'](_0x962a65))==null?void 0x0:_0xef08f[_0x165ffa(0x1ae)])||{};try{let _0x3df239=new _0x47f1b6(_0x1b05d0,{'headers':{..._0x23b483}}),_0x4cec74=new _0x1433a1();return{'URL':_0x1b05d0,'close':(_0x8288e3,_0x3d1ebb)=>{const _0x586df7=_0x165ffa;_0x3df239['close'](_0x8288e3,_0x3d1ebb),_0x4cec74[_0x586df7(0x199)]();},'send':_0x55f4b2=>{const _0x3fda62=_0x165ffa;_0x3df239[_0x3fda62(0x1b3)](_0x55f4b2);},'open$':new _0x308b84(_0x31efe8=>{const _0x300086=_0x165ffa;let _0x5b19e9=_0x2eba8d=>_0x31efe8[_0x300086(0x1ac)](_0x2eba8d);_0x3df239[_0x300086(0x1a6)](_0x300086(0x1bd),_0x5b19e9),_0x4cec74[_0x300086(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x300086(0x1bd),_0x5b19e9)));})[_0x165ffa(0x1a3)](_0x4386e2()),'close$':new _0x308b84(_0x18ef0b=>{const _0x5583b8=_0x165ffa;let _0x52791e=_0x4b845f=>_0x18ef0b['next'](_0x4b845f);_0x3df239[_0x5583b8(0x1a6)]('close',_0x52791e),_0x4cec74[_0x5583b8(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x5583b8(0x191),_0x52791e)));})[_0x165ffa(0x1a3)](_0x4386e2()),'error$':new _0x308b84(_0x4f61ce=>{const _0x1505a0=_0x165ffa;let _0x45be18=_0x42c626=>_0x4f61ce[_0x1505a0(0x1ac)](_0x42c626);_0x3df239['addEventListener'](_0x1505a0(0x1a1),_0x45be18),_0x4cec74[_0x1505a0(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x1505a0(0x1a1),_0x45be18)));})[_0x165ffa(0x1a3)](_0x4386e2()),'message$':new _0x308b84(_0x52a0e0=>{const _0x1d7d48=_0x165ffa;let _0x23f3db=_0x4e5caa=>_0x52a0e0[_0x1d7d48(0x1ac)](_0x4e5caa);_0x3df239[_0x1d7d48(0x1a6)](_0x1d7d48(0x1c0),_0x23f3db),_0x4cec74['add'](_0xc2d03b(()=>_0x3df239[_0x1d7d48(0x1ab)](_0x1d7d48(0x1c0),_0x23f3db)));})['pipe'](_0x4386e2())};}catch(_0x324fd8){return console[_0x165ffa(0x1a1)](_0x324fd8),null;}}};T=w([C(0x0,_0x2fb584)],T);function E(_0x4f8adf){'@babel/helpers - typeof';const _0x258a53=_0x43ea42;return E=typeof Symbol=='function'&&typeof Symbol[_0x258a53(0x1b5)]==_0x258a53(0x1a4)?function(_0x290cd5){return typeof _0x290cd5;}:function(_0x152fc0){const _0x5e47dc=_0x258a53;return _0x152fc0&&typeof Symbol==_0x5e47dc(0x1a0)&&_0x152fc0['constructor']===Symbol&&_0x152fc0!==Symbol[_0x5e47dc(0x1b7)]?_0x5e47dc(0x1a4):typeof _0x152fc0;},E(_0x4f8adf);}function D(_0x19eb9a,_0x38c08a){const _0x55605e=_0x43ea42;if(E(_0x19eb9a)!=_0x55605e(0x1a7)||!_0x19eb9a)return _0x19eb9a;var _0x33cd2=_0x19eb9a[Symbol[_0x55605e(0x1b0)]];if(_0x33cd2!==void 0x0){var _0x569602=_0x33cd2[_0x55605e(0x194)](_0x19eb9a,_0x38c08a||_0x55605e(0x19b));if(E(_0x569602)!='object')return _0x569602;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x38c08a===_0x55605e(0x1a2)?String:Number)(_0x19eb9a);}function O(_0x439694){const _0x1661de=_0x43ea42;var _0x1e3301=D(_0x439694,'string');return E(_0x1e3301)==_0x1661de(0x1a4)?_0x1e3301:_0x1e3301+'';}function k(_0x3762bd,_0x46d606,_0x2e03bc){const _0x398f14=_0x43ea42;return(_0x46d606=O(_0x46d606))in _0x3762bd?Object[_0x398f14(0x1c2)](_0x3762bd,_0x46d606,{'value':_0x2e03bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3762bd[_0x46d606]=_0x2e03bc,_0x3762bd;}let A=class extends _0x262031{constructor(_0x513c5a=b,_0x2b0458,_0xcd989e){const _0x536f7c=_0x43ea42;super(),this[_0x536f7c(0x1bc)]=_0x2b0458,this[_0x536f7c(0x19c)]=_0xcd989e,this[_0x536f7c(0x1bc)][_0x536f7c(0x198)](y,_0x513c5a);}[_0x43ea42(0x18e)](){this['_registerDependencies']();}[_0x43ea42(0x1bb)](){const _0x1fe245=_0x43ea42;_0x1ffa01(this[_0x1fe245(0x19c)],[[_0x4ca083,{'useClass':T}]]);}};k(A,_0x43ea42(0x1a9),_0x43ea42(0x1b2)),k(A,_0x43ea42(0x193),x),k(A,_0x43ea42(0x1be),S),A=w([_0x58f136(_0x375d53),C(0x1,_0x2fb584),C(0x2,_0x1fbf73(_0x2dd465))],A);let j=class extends _0x10e00f{constructor(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b){const _0x594f34=_0x43ea42;super(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b);let _0x377f42=this[_0x594f34(0x1bc)][_0x594f34(0x19d)](_0x962a65);this[_0x594f34(0x1b4)][_0x594f34(0x190)]({'interceptor':(_0x1594f7,_0x587c29)=>{const _0x56724d=_0x594f34;let _0x4efb47=_0x1594f7[_0x56724d(0x1a8)];if(_0x377f42!=null&&_0x377f42[_0x56724d(0x1ae)]){for(let _0x413bfa in _0x377f42['customHeaders'])_0x4efb47[_0x56724d(0x19e)](_0x413bfa,_0x377f42['customHeaders'][_0x413bfa]);}return _0x587c29(_0x1594f7);}});}async[_0x43ea42(0x1bf)](_0x3aa511){const _0x1712ee=_0x43ea42;return this[_0x1712ee(0x197)](_0x3aa511);}};j=w([C(0x0,_0x1fbf73(_0x2dd465)),C(0x1,_0x1fbf73(_0x523f9b)),C(0x2,_0x2fb584),C(0x3,_0x433198),C(0x4,_0x12b622)],j);function _0x1aee(){const _0x6e2000=['_configService','open','version','createSocket','message','getOwnPropertyDescriptor','defineProperty','collaboration-client-node.config','onStarting','@univerjs-pro/collaboration-client-node','registerHTTPInterceptor','close','2279368GqbwUD','packageName','call','8zQQdVb','5DKmqQC','_doCreateSocket','setConfig','dispose','3878781OyJolG','default','_injector','getConfig','set','6430vlVTds','function','error','string','pipe','symbol','add','addEventListener','object','headers','pluginName','407PAWFFz','removeEventListener','next','decorate','customHeaders','365110rpeJxx','toPrimitive','4851553TzCtNU','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','_httpService','iterator','10065564ZHPSQg','prototype','11fCgvVE','5341068PSixok','18rnWepB','_registerDependencies'];_0x1aee=function(){return _0x6e2000;};return _0x1aee();}export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0xac92aa=_0x371d;(function(_0x24f3e4,_0x2015d1){const _0x14d61a=_0x371d,_0x6835e5=_0x24f3e4();while(!![]){try{const _0x5562af=parseInt(_0x14d61a(0x186))/0x1*(-parseInt(_0x14d61a(0x17e))/0x2)+parseInt(_0x14d61a(0x1a6))/0x3*(parseInt(_0x14d61a(0x19d))/0x4)+parseInt(_0x14d61a(0x192))/0x5+parseInt(_0x14d61a(0x188))/0x6*(parseInt(_0x14d61a(0x182))/0x7)+parseInt(_0x14d61a(0x187))/0x8*(parseInt(_0x14d61a(0x178))/0x9)+-parseInt(_0x14d61a(0x194))/0xa+-parseInt(_0x14d61a(0x1a4))/0xb;if(_0x5562af===_0x2015d1)break;else _0x6835e5['push'](_0x6835e5['shift']());}catch(_0x76a757){_0x6835e5['push'](_0x6835e5['shift']());}}}(_0x2854,0x5e1ec));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x94756f,CollaborationSocketService as _0x2b1e9a,UniverCollaborationClientPlugin as _0xa1d3ad}from'@univerjs-pro/collaboration-client';import{DependentOn as _0xf9a28d,Disposable as _0x4407e6,DisposableCollection as _0x41cb13,IConfigService as _0x396948,ILogService as _0x657ce6,Inject as _0x1f5758,Injector as _0x51b714,Plugin as _0x416e72,registerDependencies as _0x539fc9,toDisposable as _0xd65bd7}from'@univerjs/core';import{HTTPService as _0x44134a,ISocketService as _0x56f629}from'@univerjs/network';import{Observable as _0x164acf,share as _0x397967}from'rxjs';import{WebSocket as _0x33c7b0}from'ws';import{ISnapshotServerService as _0x31ed16}from'@univerjs-pro/collaboration';function _0x371d(_0xbb6ef9,_0x3f48f7){_0xbb6ef9=_0xbb6ef9-0x178;const _0x285496=_0x2854();let _0x371d02=_0x285496[_0xbb6ef9];return _0x371d02;}const y=_0xac92aa(0x18e),b={};var x=_0xac92aa(0x189),S='1.0.0-alpha.1';function C(_0x4033c3,_0x406b8c){return function(_0x505a5f,_0x1029d8){_0x406b8c(_0x505a5f,_0x1029d8,_0x4033c3);};}function w(_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062){const _0x755b62=_0xac92aa;var _0x4bbdba=arguments[_0x755b62(0x183)],_0x4fff36=_0x4bbdba<0x3?_0x1763f1:_0x48e062===null?_0x48e062=Object[_0x755b62(0x17b)](_0x1763f1,_0x4782b2):_0x48e062,_0x58a209;if(typeof Reflect==_0x755b62(0x199)&&typeof Reflect[_0x755b62(0x195)]==_0x755b62(0x18c))_0x4fff36=Reflect['decorate'](_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062);else{for(var _0xf7b930=_0x4ff3b5[_0x755b62(0x183)]-0x1;_0xf7b930>=0x0;_0xf7b930--)(_0x58a209=_0x4ff3b5[_0xf7b930])&&(_0x4fff36=(_0x4bbdba<0x3?_0x58a209(_0x4fff36):_0x4bbdba>0x3?_0x58a209(_0x1763f1,_0x4782b2,_0x4fff36):_0x58a209(_0x1763f1,_0x4782b2))||_0x4fff36);}return _0x4bbdba>0x3&&_0x4fff36&&Object[_0x755b62(0x198)](_0x1763f1,_0x4782b2,_0x4fff36),_0x4fff36;}let T=class extends _0x4407e6{constructor(_0x493ac2){super(),this['_configService']=_0x493ac2;}['createSocket'](_0x5ba4bf){const _0x569aac=_0xac92aa;var _0x3175a6;let _0x260957=((_0x3175a6=this['_configService'][_0x569aac(0x17a)](_0x94756f))==null?void 0x0:_0x3175a6[_0x569aac(0x185)])||{};try{let _0x3b6c07=new _0x33c7b0(_0x5ba4bf,{'headers':{..._0x260957}}),_0x18bdee=new _0x41cb13();return{'URL':_0x5ba4bf,'close':(_0x5c25b3,_0x3c828c)=>{const _0x46756c=_0x569aac;_0x3b6c07[_0x46756c(0x190)](_0x5c25b3,_0x3c828c),_0x18bdee[_0x46756c(0x196)]();},'send':_0x2797ba=>{_0x3b6c07['send'](_0x2797ba);},'open$':new _0x164acf(_0x2e55fb=>{const _0x4794eb=_0x569aac;let _0x8d6553=_0x11de0a=>_0x2e55fb['next'](_0x11de0a);_0x3b6c07[_0x4794eb(0x191)](_0x4794eb(0x1aa),_0x8d6553),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x4794eb(0x18b)](_0x4794eb(0x1aa),_0x8d6553)));})[_0x569aac(0x1a8)](_0x397967()),'close$':new _0x164acf(_0x41dcff=>{const _0x490daa=_0x569aac;let _0x48e8d5=_0x4304f2=>_0x41dcff['next'](_0x4304f2);_0x3b6c07[_0x490daa(0x191)](_0x490daa(0x190),_0x48e8d5),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x490daa(0x18b)](_0x490daa(0x190),_0x48e8d5)));})[_0x569aac(0x1a8)](_0x397967()),'error$':new _0x164acf(_0x173311=>{const _0x2f7a07=_0x569aac;let _0xb979fd=_0xfaac5c=>_0x173311[_0x2f7a07(0x1a3)](_0xfaac5c);_0x3b6c07['addEventListener'](_0x2f7a07(0x19f),_0xb979fd),_0x18bdee[_0x2f7a07(0x197)](_0xd65bd7(()=>_0x3b6c07['removeEventListener'](_0x2f7a07(0x19f),_0xb979fd)));})['pipe'](_0x397967()),'message$':new _0x164acf(_0x3577b8=>{const _0x3b873d=_0x569aac;let _0x2e2e2f=_0x2ed7c8=>_0x3577b8['next'](_0x2ed7c8);_0x3b6c07[_0x3b873d(0x191)]('message',_0x2e2e2f),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x3b873d(0x18b)](_0x3b873d(0x17c),_0x2e2e2f)));})['pipe'](_0x397967())};}catch(_0x3d1720){return console[_0x569aac(0x19f)](_0x3d1720),null;}}};T=w([C(0x0,_0x396948)],T);function E(_0x4eba55){'@babel/helpers - typeof';const _0x525b3a=_0xac92aa;return E=typeof Symbol==_0x525b3a(0x18c)&&typeof Symbol[_0x525b3a(0x1a0)]==_0x525b3a(0x1a2)?function(_0x70120b){return typeof _0x70120b;}:function(_0x4b2e0b){const _0x5e66ff=_0x525b3a;return _0x4b2e0b&&typeof Symbol==_0x5e66ff(0x18c)&&_0x4b2e0b[_0x5e66ff(0x18a)]===Symbol&&_0x4b2e0b!==Symbol['prototype']?'symbol':typeof _0x4b2e0b;},E(_0x4eba55);}function D(_0x5b4b4f,_0x4084d6){const _0x3a02c7=_0xac92aa;if(E(_0x5b4b4f)!='object'||!_0x5b4b4f)return _0x5b4b4f;var _0x1792c8=_0x5b4b4f[Symbol[_0x3a02c7(0x19b)]];if(_0x1792c8!==void 0x0){var _0x5c901d=_0x1792c8[_0x3a02c7(0x180)](_0x5b4b4f,_0x4084d6||_0x3a02c7(0x1a9));if(E(_0x5c901d)!=_0x3a02c7(0x199))return _0x5c901d;throw TypeError(_0x3a02c7(0x179));}return(_0x4084d6===_0x3a02c7(0x19e)?String:Number)(_0x5b4b4f);}function O(_0x1b02ae){const _0x24f695=_0xac92aa;var _0x1e3012=D(_0x1b02ae,_0x24f695(0x19e));return E(_0x1e3012)=='symbol'?_0x1e3012:_0x1e3012+'';}function k(_0x205354,_0x466449,_0x4b5a8c){const _0xbae024=_0xac92aa;return(_0x466449=O(_0x466449))in _0x205354?Object[_0xbae024(0x198)](_0x205354,_0x466449,{'value':_0x4b5a8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x205354[_0x466449]=_0x4b5a8c,_0x205354;}let A=class extends _0x416e72{constructor(_0x1da9f6=b,_0x4fdd5f,_0x520db6){const _0x2a9f65=_0xac92aa;super(),this['_configService']=_0x4fdd5f,this[_0x2a9f65(0x18d)]=_0x520db6,this[_0x2a9f65(0x181)][_0x2a9f65(0x1a7)](y,_0x1da9f6);}[_0xac92aa(0x19a)](){const _0x517ea8=_0xac92aa;this[_0x517ea8(0x1a1)]();}[_0xac92aa(0x1a1)](){const _0x11657a=_0xac92aa;_0x539fc9(this[_0x11657a(0x18d)],[[_0x56f629,{'useClass':T}]]);}};k(A,_0xac92aa(0x18f),_0xac92aa(0x1a5)),k(A,'packageName',x),k(A,_0xac92aa(0x193),S),A=w([_0xf9a28d(_0xa1d3ad),C(0x1,_0x396948),C(0x2,_0x1f5758(_0x51b714))],A);let j=class extends _0x2b1e9a{constructor(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867){const _0x32b6c7=_0xac92aa;super(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867);let _0x16b5a5=this[_0x32b6c7(0x181)][_0x32b6c7(0x17a)](_0x94756f);this[_0x32b6c7(0x184)][_0x32b6c7(0x17f)]({'interceptor':(_0x1c0f1c,_0x23ca59)=>{const _0x2ed286=_0x32b6c7;let _0x465ce6=_0x1c0f1c[_0x2ed286(0x19c)];if(_0x16b5a5!=null&&_0x16b5a5[_0x2ed286(0x185)]){for(let _0x56b75c in _0x16b5a5[_0x2ed286(0x185)])_0x465ce6[_0x2ed286(0x17d)](_0x56b75c,_0x16b5a5[_0x2ed286(0x185)][_0x56b75c]);}return _0x23ca59(_0x1c0f1c);}});}async['createSocket'](_0x53cbd7){return this['_doCreateSocket'](_0x53cbd7);}};function _0x2854(){const _0x48ba41=['toPrimitive','headers','104vetNgo','string','error','iterator','_registerDependencies','symbol','next','8802717OFNfGM','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','59526zTxgwH','setConfig','pipe','default','open','2745621QXgVKz','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','getOwnPropertyDescriptor','message','set','2tXeIMO','registerHTTPInterceptor','call','_configService','14GitPhr','length','_httpService','customHeaders','192553YozEGf','8IdBLpw','2245794SNErPt','@univerjs-pro/collaboration-client-node','constructor','removeEventListener','function','_injector','collaboration-client-node.config','pluginName','close','addEventListener','2725580oHoUHr','version','7363590ktgcCz','decorate','dispose','add','defineProperty','object','onStarting'];_0x2854=function(){return _0x48ba41;};return _0x2854();}j=w([C(0x0,_0x1f5758(_0x51b714)),C(0x1,_0x1f5758(_0x44134a)),C(0x2,_0x396948),C(0x3,_0x657ce6),C(0x4,_0x31ed16)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x43ea42=_0x1337;(function(_0x116da9,_0x150dc7){const _0x551007=_0x1337,_0x11fcd2=_0x116da9();while(!![]){try{const _0xb127f3=parseInt(_0x551007(0x1aa))/0x1*(parseInt(_0x551007(0x19f))/0x2)+parseInt(_0x551007(0x19a))/0x3+parseInt(_0x551007(0x192))/0x4*(parseInt(_0x551007(0x196))/0x5)+-parseInt(_0x551007(0x1b9))/0x6+-parseInt(_0x551007(0x1b1))/0x7*(parseInt(_0x551007(0x195))/0x8)+-parseInt(_0x551007(0x1ba))/0x9*(parseInt(_0x551007(0x1af))/0xa)+parseInt(_0x551007(0x1b8))/0xb*(-parseInt(_0x551007(0x1b6))/0xc);if(_0xb127f3===_0x150dc7)break;else _0x11fcd2['push'](_0x11fcd2['shift']());}catch(_0x4c04c6){_0x11fcd2['push'](_0x11fcd2['shift']());}}}(_0x1aee,0xa5166));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x962a65,CollaborationSocketService as _0x10e00f,UniverCollaborationClientPlugin as _0x375d53}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x58f136,Disposable as _0x1ee4f0,DisposableCollection as _0x1433a1,IConfigService as _0x2fb584,ILogService as _0x433198,Inject as _0x1fbf73,Injector as _0x2dd465,Plugin as _0x262031,registerDependencies as _0x1ffa01,toDisposable as _0xc2d03b}from'@univerjs/core';import{HTTPService as _0x523f9b,ISocketService as _0x4ca083}from'@univerjs/network';import{Observable as _0x308b84,share as _0x4386e2}from'rxjs';import{WebSocket as _0x47f1b6}from'ws';import{ISnapshotServerService as _0x12b622}from'@univerjs-pro/collaboration';const y=_0x43ea42(0x18d),b={};var x=_0x43ea42(0x18f),S='1.0.0-alpha.0';function C(_0x521313,_0x2910e3){return function(_0x3f38c1,_0x216397){_0x2910e3(_0x3f38c1,_0x216397,_0x521313);};}function _0x1337(_0x5f0efd,_0x3a6476){_0x5f0efd=_0x5f0efd-0x18d;const _0x1aeec8=_0x1aee();let _0x13372b=_0x1aeec8[_0x5f0efd];return _0x13372b;}function w(_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5){const _0x44b040=_0x43ea42;var _0x2760da=arguments['length'],_0x26f558=_0x2760da<0x3?_0x46ecee:_0x37c7f5===null?_0x37c7f5=Object[_0x44b040(0x1c1)](_0x46ecee,_0x4173c1):_0x37c7f5,_0x386dd3;if(typeof Reflect==_0x44b040(0x1a7)&&typeof Reflect['decorate']==_0x44b040(0x1a0))_0x26f558=Reflect[_0x44b040(0x1ad)](_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5);else{for(var _0x6ed17=_0x371487['length']-0x1;_0x6ed17>=0x0;_0x6ed17--)(_0x386dd3=_0x371487[_0x6ed17])&&(_0x26f558=(_0x2760da<0x3?_0x386dd3(_0x26f558):_0x2760da>0x3?_0x386dd3(_0x46ecee,_0x4173c1,_0x26f558):_0x386dd3(_0x46ecee,_0x4173c1))||_0x26f558);}return _0x2760da>0x3&&_0x26f558&&Object[_0x44b040(0x1c2)](_0x46ecee,_0x4173c1,_0x26f558),_0x26f558;}let T=class extends _0x1ee4f0{constructor(_0x471531){const _0x3325fa=_0x43ea42;super(),this[_0x3325fa(0x1bc)]=_0x471531;}[_0x43ea42(0x1bf)](_0x1b05d0){const _0x165ffa=_0x43ea42;var _0xef08f;let _0x23b483=((_0xef08f=this[_0x165ffa(0x1bc)]['getConfig'](_0x962a65))==null?void 0x0:_0xef08f[_0x165ffa(0x1ae)])||{};try{let _0x3df239=new _0x47f1b6(_0x1b05d0,{'headers':{..._0x23b483}}),_0x4cec74=new _0x1433a1();return{'URL':_0x1b05d0,'close':(_0x8288e3,_0x3d1ebb)=>{const _0x586df7=_0x165ffa;_0x3df239['close'](_0x8288e3,_0x3d1ebb),_0x4cec74[_0x586df7(0x199)]();},'send':_0x55f4b2=>{const _0x3fda62=_0x165ffa;_0x3df239[_0x3fda62(0x1b3)](_0x55f4b2);},'open$':new _0x308b84(_0x31efe8=>{const _0x300086=_0x165ffa;let _0x5b19e9=_0x2eba8d=>_0x31efe8[_0x300086(0x1ac)](_0x2eba8d);_0x3df239[_0x300086(0x1a6)](_0x300086(0x1bd),_0x5b19e9),_0x4cec74[_0x300086(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x300086(0x1bd),_0x5b19e9)));})[_0x165ffa(0x1a3)](_0x4386e2()),'close$':new _0x308b84(_0x18ef0b=>{const _0x5583b8=_0x165ffa;let _0x52791e=_0x4b845f=>_0x18ef0b['next'](_0x4b845f);_0x3df239[_0x5583b8(0x1a6)]('close',_0x52791e),_0x4cec74[_0x5583b8(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x5583b8(0x191),_0x52791e)));})[_0x165ffa(0x1a3)](_0x4386e2()),'error$':new _0x308b84(_0x4f61ce=>{const _0x1505a0=_0x165ffa;let _0x45be18=_0x42c626=>_0x4f61ce[_0x1505a0(0x1ac)](_0x42c626);_0x3df239['addEventListener'](_0x1505a0(0x1a1),_0x45be18),_0x4cec74[_0x1505a0(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x1505a0(0x1a1),_0x45be18)));})[_0x165ffa(0x1a3)](_0x4386e2()),'message$':new _0x308b84(_0x52a0e0=>{const _0x1d7d48=_0x165ffa;let _0x23f3db=_0x4e5caa=>_0x52a0e0[_0x1d7d48(0x1ac)](_0x4e5caa);_0x3df239[_0x1d7d48(0x1a6)](_0x1d7d48(0x1c0),_0x23f3db),_0x4cec74['add'](_0xc2d03b(()=>_0x3df239[_0x1d7d48(0x1ab)](_0x1d7d48(0x1c0),_0x23f3db)));})['pipe'](_0x4386e2())};}catch(_0x324fd8){return console[_0x165ffa(0x1a1)](_0x324fd8),null;}}};T=w([C(0x0,_0x2fb584)],T);function E(_0x4f8adf){'@babel/helpers - typeof';const _0x258a53=_0x43ea42;return E=typeof Symbol=='function'&&typeof Symbol[_0x258a53(0x1b5)]==_0x258a53(0x1a4)?function(_0x290cd5){return typeof _0x290cd5;}:function(_0x152fc0){const _0x5e47dc=_0x258a53;return _0x152fc0&&typeof Symbol==_0x5e47dc(0x1a0)&&_0x152fc0['constructor']===Symbol&&_0x152fc0!==Symbol[_0x5e47dc(0x1b7)]?_0x5e47dc(0x1a4):typeof _0x152fc0;},E(_0x4f8adf);}function D(_0x19eb9a,_0x38c08a){const _0x55605e=_0x43ea42;if(E(_0x19eb9a)!=_0x55605e(0x1a7)||!_0x19eb9a)return _0x19eb9a;var _0x33cd2=_0x19eb9a[Symbol[_0x55605e(0x1b0)]];if(_0x33cd2!==void 0x0){var _0x569602=_0x33cd2[_0x55605e(0x194)](_0x19eb9a,_0x38c08a||_0x55605e(0x19b));if(E(_0x569602)!='object')return _0x569602;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x38c08a===_0x55605e(0x1a2)?String:Number)(_0x19eb9a);}function O(_0x439694){const _0x1661de=_0x43ea42;var _0x1e3301=D(_0x439694,'string');return E(_0x1e3301)==_0x1661de(0x1a4)?_0x1e3301:_0x1e3301+'';}function k(_0x3762bd,_0x46d606,_0x2e03bc){const _0x398f14=_0x43ea42;return(_0x46d606=O(_0x46d606))in _0x3762bd?Object[_0x398f14(0x1c2)](_0x3762bd,_0x46d606,{'value':_0x2e03bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3762bd[_0x46d606]=_0x2e03bc,_0x3762bd;}let A=class extends _0x262031{constructor(_0x513c5a=b,_0x2b0458,_0xcd989e){const _0x536f7c=_0x43ea42;super(),this[_0x536f7c(0x1bc)]=_0x2b0458,this[_0x536f7c(0x19c)]=_0xcd989e,this[_0x536f7c(0x1bc)][_0x536f7c(0x198)](y,_0x513c5a);}[_0x43ea42(0x18e)](){this['_registerDependencies']();}[_0x43ea42(0x1bb)](){const _0x1fe245=_0x43ea42;_0x1ffa01(this[_0x1fe245(0x19c)],[[_0x4ca083,{'useClass':T}]]);}};k(A,_0x43ea42(0x1a9),_0x43ea42(0x1b2)),k(A,_0x43ea42(0x193),x),k(A,_0x43ea42(0x1be),S),A=w([_0x58f136(_0x375d53),C(0x1,_0x2fb584),C(0x2,_0x1fbf73(_0x2dd465))],A);let j=class extends _0x10e00f{constructor(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b){const _0x594f34=_0x43ea42;super(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b);let _0x377f42=this[_0x594f34(0x1bc)][_0x594f34(0x19d)](_0x962a65);this[_0x594f34(0x1b4)][_0x594f34(0x190)]({'interceptor':(_0x1594f7,_0x587c29)=>{const _0x56724d=_0x594f34;let _0x4efb47=_0x1594f7[_0x56724d(0x1a8)];if(_0x377f42!=null&&_0x377f42[_0x56724d(0x1ae)]){for(let _0x413bfa in _0x377f42['customHeaders'])_0x4efb47[_0x56724d(0x19e)](_0x413bfa,_0x377f42['customHeaders'][_0x413bfa]);}return _0x587c29(_0x1594f7);}});}async[_0x43ea42(0x1bf)](_0x3aa511){const _0x1712ee=_0x43ea42;return this[_0x1712ee(0x197)](_0x3aa511);}};j=w([C(0x0,_0x1fbf73(_0x2dd465)),C(0x1,_0x1fbf73(_0x523f9b)),C(0x2,_0x2fb584),C(0x3,_0x433198),C(0x4,_0x12b622)],j);function _0x1aee(){const _0x6e2000=['_configService','open','version','createSocket','message','getOwnPropertyDescriptor','defineProperty','collaboration-client-node.config','onStarting','@univerjs-pro/collaboration-client-node','registerHTTPInterceptor','close','2279368GqbwUD','packageName','call','8zQQdVb','5DKmqQC','_doCreateSocket','setConfig','dispose','3878781OyJolG','default','_injector','getConfig','set','6430vlVTds','function','error','string','pipe','symbol','add','addEventListener','object','headers','pluginName','407PAWFFz','removeEventListener','next','decorate','customHeaders','365110rpeJxx','toPrimitive','4851553TzCtNU','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','_httpService','iterator','10065564ZHPSQg','prototype','11fCgvVE','5341068PSixok','18rnWepB','_registerDependencies'];_0x1aee=function(){return _0x6e2000;};return _0x1aee();}export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0xac92aa=_0x371d;(function(_0x24f3e4,_0x2015d1){const _0x14d61a=_0x371d,_0x6835e5=_0x24f3e4();while(!![]){try{const _0x5562af=parseInt(_0x14d61a(0x186))/0x1*(-parseInt(_0x14d61a(0x17e))/0x2)+parseInt(_0x14d61a(0x1a6))/0x3*(parseInt(_0x14d61a(0x19d))/0x4)+parseInt(_0x14d61a(0x192))/0x5+parseInt(_0x14d61a(0x188))/0x6*(parseInt(_0x14d61a(0x182))/0x7)+parseInt(_0x14d61a(0x187))/0x8*(parseInt(_0x14d61a(0x178))/0x9)+-parseInt(_0x14d61a(0x194))/0xa+-parseInt(_0x14d61a(0x1a4))/0xb;if(_0x5562af===_0x2015d1)break;else _0x6835e5['push'](_0x6835e5['shift']());}catch(_0x76a757){_0x6835e5['push'](_0x6835e5['shift']());}}}(_0x2854,0x5e1ec));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x94756f,CollaborationSocketService as _0x2b1e9a,UniverCollaborationClientPlugin as _0xa1d3ad}from'@univerjs-pro/collaboration-client';import{DependentOn as _0xf9a28d,Disposable as _0x4407e6,DisposableCollection as _0x41cb13,IConfigService as _0x396948,ILogService as _0x657ce6,Inject as _0x1f5758,Injector as _0x51b714,Plugin as _0x416e72,registerDependencies as _0x539fc9,toDisposable as _0xd65bd7}from'@univerjs/core';import{HTTPService as _0x44134a,ISocketService as _0x56f629}from'@univerjs/network';import{Observable as _0x164acf,share as _0x397967}from'rxjs';import{WebSocket as _0x33c7b0}from'ws';import{ISnapshotServerService as _0x31ed16}from'@univerjs-pro/collaboration';function _0x371d(_0xbb6ef9,_0x3f48f7){_0xbb6ef9=_0xbb6ef9-0x178;const _0x285496=_0x2854();let _0x371d02=_0x285496[_0xbb6ef9];return _0x371d02;}const y=_0xac92aa(0x18e),b={};var x=_0xac92aa(0x189),S='1.0.0-alpha.1';function C(_0x4033c3,_0x406b8c){return function(_0x505a5f,_0x1029d8){_0x406b8c(_0x505a5f,_0x1029d8,_0x4033c3);};}function w(_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062){const _0x755b62=_0xac92aa;var _0x4bbdba=arguments[_0x755b62(0x183)],_0x4fff36=_0x4bbdba<0x3?_0x1763f1:_0x48e062===null?_0x48e062=Object[_0x755b62(0x17b)](_0x1763f1,_0x4782b2):_0x48e062,_0x58a209;if(typeof Reflect==_0x755b62(0x199)&&typeof Reflect[_0x755b62(0x195)]==_0x755b62(0x18c))_0x4fff36=Reflect['decorate'](_0x4ff3b5,_0x1763f1,_0x4782b2,_0x48e062);else{for(var _0xf7b930=_0x4ff3b5[_0x755b62(0x183)]-0x1;_0xf7b930>=0x0;_0xf7b930--)(_0x58a209=_0x4ff3b5[_0xf7b930])&&(_0x4fff36=(_0x4bbdba<0x3?_0x58a209(_0x4fff36):_0x4bbdba>0x3?_0x58a209(_0x1763f1,_0x4782b2,_0x4fff36):_0x58a209(_0x1763f1,_0x4782b2))||_0x4fff36);}return _0x4bbdba>0x3&&_0x4fff36&&Object[_0x755b62(0x198)](_0x1763f1,_0x4782b2,_0x4fff36),_0x4fff36;}let T=class extends _0x4407e6{constructor(_0x493ac2){super(),this['_configService']=_0x493ac2;}['createSocket'](_0x5ba4bf){const _0x569aac=_0xac92aa;var _0x3175a6;let _0x260957=((_0x3175a6=this['_configService'][_0x569aac(0x17a)](_0x94756f))==null?void 0x0:_0x3175a6[_0x569aac(0x185)])||{};try{let _0x3b6c07=new _0x33c7b0(_0x5ba4bf,{'headers':{..._0x260957}}),_0x18bdee=new _0x41cb13();return{'URL':_0x5ba4bf,'close':(_0x5c25b3,_0x3c828c)=>{const _0x46756c=_0x569aac;_0x3b6c07[_0x46756c(0x190)](_0x5c25b3,_0x3c828c),_0x18bdee[_0x46756c(0x196)]();},'send':_0x2797ba=>{_0x3b6c07['send'](_0x2797ba);},'open$':new _0x164acf(_0x2e55fb=>{const _0x4794eb=_0x569aac;let _0x8d6553=_0x11de0a=>_0x2e55fb['next'](_0x11de0a);_0x3b6c07[_0x4794eb(0x191)](_0x4794eb(0x1aa),_0x8d6553),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x4794eb(0x18b)](_0x4794eb(0x1aa),_0x8d6553)));})[_0x569aac(0x1a8)](_0x397967()),'close$':new _0x164acf(_0x41dcff=>{const _0x490daa=_0x569aac;let _0x48e8d5=_0x4304f2=>_0x41dcff['next'](_0x4304f2);_0x3b6c07[_0x490daa(0x191)](_0x490daa(0x190),_0x48e8d5),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x490daa(0x18b)](_0x490daa(0x190),_0x48e8d5)));})[_0x569aac(0x1a8)](_0x397967()),'error$':new _0x164acf(_0x173311=>{const _0x2f7a07=_0x569aac;let _0xb979fd=_0xfaac5c=>_0x173311[_0x2f7a07(0x1a3)](_0xfaac5c);_0x3b6c07['addEventListener'](_0x2f7a07(0x19f),_0xb979fd),_0x18bdee[_0x2f7a07(0x197)](_0xd65bd7(()=>_0x3b6c07['removeEventListener'](_0x2f7a07(0x19f),_0xb979fd)));})['pipe'](_0x397967()),'message$':new _0x164acf(_0x3577b8=>{const _0x3b873d=_0x569aac;let _0x2e2e2f=_0x2ed7c8=>_0x3577b8['next'](_0x2ed7c8);_0x3b6c07[_0x3b873d(0x191)]('message',_0x2e2e2f),_0x18bdee['add'](_0xd65bd7(()=>_0x3b6c07[_0x3b873d(0x18b)](_0x3b873d(0x17c),_0x2e2e2f)));})['pipe'](_0x397967())};}catch(_0x3d1720){return console[_0x569aac(0x19f)](_0x3d1720),null;}}};T=w([C(0x0,_0x396948)],T);function E(_0x4eba55){'@babel/helpers - typeof';const _0x525b3a=_0xac92aa;return E=typeof Symbol==_0x525b3a(0x18c)&&typeof Symbol[_0x525b3a(0x1a0)]==_0x525b3a(0x1a2)?function(_0x70120b){return typeof _0x70120b;}:function(_0x4b2e0b){const _0x5e66ff=_0x525b3a;return _0x4b2e0b&&typeof Symbol==_0x5e66ff(0x18c)&&_0x4b2e0b[_0x5e66ff(0x18a)]===Symbol&&_0x4b2e0b!==Symbol['prototype']?'symbol':typeof _0x4b2e0b;},E(_0x4eba55);}function D(_0x5b4b4f,_0x4084d6){const _0x3a02c7=_0xac92aa;if(E(_0x5b4b4f)!='object'||!_0x5b4b4f)return _0x5b4b4f;var _0x1792c8=_0x5b4b4f[Symbol[_0x3a02c7(0x19b)]];if(_0x1792c8!==void 0x0){var _0x5c901d=_0x1792c8[_0x3a02c7(0x180)](_0x5b4b4f,_0x4084d6||_0x3a02c7(0x1a9));if(E(_0x5c901d)!=_0x3a02c7(0x199))return _0x5c901d;throw TypeError(_0x3a02c7(0x179));}return(_0x4084d6===_0x3a02c7(0x19e)?String:Number)(_0x5b4b4f);}function O(_0x1b02ae){const _0x24f695=_0xac92aa;var _0x1e3012=D(_0x1b02ae,_0x24f695(0x19e));return E(_0x1e3012)=='symbol'?_0x1e3012:_0x1e3012+'';}function k(_0x205354,_0x466449,_0x4b5a8c){const _0xbae024=_0xac92aa;return(_0x466449=O(_0x466449))in _0x205354?Object[_0xbae024(0x198)](_0x205354,_0x466449,{'value':_0x4b5a8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x205354[_0x466449]=_0x4b5a8c,_0x205354;}let A=class extends _0x416e72{constructor(_0x1da9f6=b,_0x4fdd5f,_0x520db6){const _0x2a9f65=_0xac92aa;super(),this['_configService']=_0x4fdd5f,this[_0x2a9f65(0x18d)]=_0x520db6,this[_0x2a9f65(0x181)][_0x2a9f65(0x1a7)](y,_0x1da9f6);}[_0xac92aa(0x19a)](){const _0x517ea8=_0xac92aa;this[_0x517ea8(0x1a1)]();}[_0xac92aa(0x1a1)](){const _0x11657a=_0xac92aa;_0x539fc9(this[_0x11657a(0x18d)],[[_0x56f629,{'useClass':T}]]);}};k(A,_0xac92aa(0x18f),_0xac92aa(0x1a5)),k(A,'packageName',x),k(A,_0xac92aa(0x193),S),A=w([_0xf9a28d(_0xa1d3ad),C(0x1,_0x396948),C(0x2,_0x1f5758(_0x51b714))],A);let j=class extends _0x2b1e9a{constructor(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867){const _0x32b6c7=_0xac92aa;super(_0x6787f4,_0x1129ba,_0x322a69,_0x3cfee2,_0x428867);let _0x16b5a5=this[_0x32b6c7(0x181)][_0x32b6c7(0x17a)](_0x94756f);this[_0x32b6c7(0x184)][_0x32b6c7(0x17f)]({'interceptor':(_0x1c0f1c,_0x23ca59)=>{const _0x2ed286=_0x32b6c7;let _0x465ce6=_0x1c0f1c[_0x2ed286(0x19c)];if(_0x16b5a5!=null&&_0x16b5a5[_0x2ed286(0x185)]){for(let _0x56b75c in _0x16b5a5[_0x2ed286(0x185)])_0x465ce6[_0x2ed286(0x17d)](_0x56b75c,_0x16b5a5[_0x2ed286(0x185)][_0x56b75c]);}return _0x23ca59(_0x1c0f1c);}});}async['createSocket'](_0x53cbd7){return this['_doCreateSocket'](_0x53cbd7);}};function _0x2854(){const _0x48ba41=['toPrimitive','headers','104vetNgo','string','error','iterator','_registerDependencies','symbol','next','8802717OFNfGM','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','59526zTxgwH','setConfig','pipe','default','open','2745621QXgVKz','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','getOwnPropertyDescriptor','message','set','2tXeIMO','registerHTTPInterceptor','call','_configService','14GitPhr','length','_httpService','customHeaders','192553YozEGf','8IdBLpw','2245794SNErPt','@univerjs-pro/collaboration-client-node','constructor','removeEventListener','function','_injector','collaboration-client-node.config','pluginName','close','addEventListener','2725580oHoUHr','version','7363590ktgcCz','decorate','dispose','add','defineProperty','object','onStarting'];_0x2854=function(){return _0x48ba41;};return _0x2854();}j=w([C(0x0,_0x1f5758(_0x51b714)),C(0x1,_0x1f5758(_0x44134a)),C(0x2,_0x396948),C(0x3,_0x657ce6),C(0x4,_0x31ed16)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x35dc3c,_0x4104f4){const _0x5a6f86=_0x537b,_0x560887=_0x35dc3c();while(!![]){try{const _0x3f7a1d=-parseInt(_0x5a6f86(0x154))/0x1*(-parseInt(_0x5a6f86(0x156))/0x2)+parseInt(_0x5a6f86(0x18b))/0x3*(-parseInt(_0x5a6f86(0x160))/0x4)+parseInt(_0x5a6f86(0x167))/0x5+-parseInt(_0x5a6f86(0x174))/0x6*(parseInt(_0x5a6f86(0x171))/0x7)+parseInt(_0x5a6f86(0x15f))/0x8+-parseInt(_0x5a6f86(0x145))/0x9+parseInt(_0x5a6f86(0x16c))/0xa;if(_0x3f7a1d===_0x4104f4)break;else _0x560887['push'](_0x560887['shift']());}catch(_0x38e6c7){_0x560887['push'](_0x560887['shift']());}}}(_0x5010,0xf3632),function(_0x42360f,_0x22aabf){const _0x364d35=_0x537b;typeof exports==_0x364d35(0x17c)&&typeof module<'u'?_0x22aabf(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x364d35(0x168)&&define[_0x364d35(0x185)]?define(['exports','@univerjs-pro/collaboration-client',_0x364d35(0x169),_0x364d35(0x186),_0x364d35(0x151),_0x364d35(0x157)],_0x22aabf):(_0x42360f=typeof globalThis<'u'?globalThis:_0x42360f||self,_0x22aabf(_0x42360f[_0x364d35(0x14e)]={},_0x42360f[_0x364d35(0x17e)],_0x42360f[_0x364d35(0x170)],_0x42360f[_0x364d35(0x187)],_0x42360f[_0x364d35(0x151)],_0x42360f[_0x364d35(0x162)]));}(this,function(_0x47313c,_0x16382c,_0x33b92e,_0x5cfb11,_0xa38acc,_0x50ee19){const _0x221703=_0x537b;Object[_0x221703(0x188)](_0x47313c,Symbol[_0x221703(0x146)],{'value':_0x221703(0x15c)});var _0x209874=(_0x8a55de,_0x318e17)=>()=>(_0x318e17||(_0x8a55de((_0x318e17={'exports':{}})[_0x221703(0x147)],_0x318e17),_0x8a55de=null),_0x318e17[_0x221703(0x147)]);let _0x428564=_0x221703(0x173),_0x39dbac={};var _0x27ad88=_0x221703(0x166),_0x22bdd4=_0x221703(0x155),_0x162aa1=_0x209874((_0x542473,_0x5bb6d4)=>{_0x5bb6d4['exports']=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x6332de(_0x371abb,_0x5b9a50){return function(_0x191037,_0x59ba87){_0x5b9a50(_0x191037,_0x59ba87,_0x371abb);};}function _0x50017b(_0x1d5803,_0x4291ac,_0x20cf1b,_0x1f7740){const _0x8f5db8=_0x221703;var _0x52241d=arguments['length'],_0x4ce01a=_0x52241d<0x3?_0x4291ac:_0x1f7740===null?_0x1f7740=Object[_0x8f5db8(0x140)](_0x4291ac,_0x20cf1b):_0x1f7740,_0x5bc8b2;if(typeof Reflect==_0x8f5db8(0x17c)&&typeof Reflect[_0x8f5db8(0x14c)]==_0x8f5db8(0x168))_0x4ce01a=Reflect[_0x8f5db8(0x14c)](_0x1d5803,_0x4291ac,_0x20cf1b,_0x1f7740);else{for(var _0x43842d=_0x1d5803[_0x8f5db8(0x16b)]-0x1;_0x43842d>=0x0;_0x43842d--)(_0x5bc8b2=_0x1d5803[_0x43842d])&&(_0x4ce01a=(_0x52241d<0x3?_0x5bc8b2(_0x4ce01a):_0x52241d>0x3?_0x5bc8b2(_0x4291ac,_0x20cf1b,_0x4ce01a):_0x5bc8b2(_0x4291ac,_0x20cf1b))||_0x4ce01a);}return _0x52241d>0x3&&_0x4ce01a&&Object[_0x8f5db8(0x188)](_0x4291ac,_0x20cf1b,_0x4ce01a),_0x4ce01a;}let _0x54deae=class extends _0x33b92e['Disposable']{constructor(_0x1b1ff0){const _0x1d86b0=_0x221703;super(),this[_0x1d86b0(0x144)]=_0x1b1ff0;}['createSocket'](_0x378ecb){const _0x49eb7b=_0x221703;var _0x4aed2b;let _0x3853d4=((_0x4aed2b=this[_0x49eb7b(0x144)][_0x49eb7b(0x181)](_0x16382c[_0x49eb7b(0x14f)]))==null?void 0x0:_0x4aed2b[_0x49eb7b(0x17f)])||{};try{let _0x355ca5=new _0x162aa1['WebSocket'](_0x378ecb,{'headers':{..._0x3853d4}}),_0x105825=new _0x33b92e['DisposableCollection']();return{'URL':_0x378ecb,'close':(_0x31bdd7,_0x269e58)=>{const _0x182559=_0x49eb7b;_0x355ca5[_0x182559(0x16e)](_0x31bdd7,_0x269e58),_0x105825['dispose']();},'send':_0x199e5a=>{const _0x13d6d4=_0x49eb7b;_0x355ca5[_0x13d6d4(0x141)](_0x199e5a);},'open$':new _0xa38acc['Observable'](_0x5c7d3c=>{const _0x59309d=_0x49eb7b;let _0x1d2ca6=_0x36412=>_0x5c7d3c[_0x59309d(0x152)](_0x36412);_0x355ca5['addEventListener']('open',_0x1d2ca6),_0x105825[_0x59309d(0x15a)]((0x0,_0x33b92e[_0x59309d(0x172)])(()=>_0x355ca5['removeEventListener'](_0x59309d(0x184),_0x1d2ca6)));})[_0x49eb7b(0x16f)]((0x0,_0xa38acc[_0x49eb7b(0x17b)])()),'close$':new _0xa38acc[(_0x49eb7b(0x175))](_0xff9c5f=>{const _0x2dc07c=_0x49eb7b;let _0x511653=_0x38422e=>_0xff9c5f[_0x2dc07c(0x152)](_0x38422e);_0x355ca5['addEventListener'](_0x2dc07c(0x16e),_0x511653),_0x105825[_0x2dc07c(0x15a)]((0x0,_0x33b92e[_0x2dc07c(0x172)])(()=>_0x355ca5[_0x2dc07c(0x16a)](_0x2dc07c(0x16e),_0x511653)));})['pipe']((0x0,_0xa38acc[_0x49eb7b(0x17b)])()),'error$':new _0xa38acc[(_0x49eb7b(0x175))](_0x4a677b=>{const _0x3dac82=_0x49eb7b;let _0x1bafb5=_0x4d9301=>_0x4a677b[_0x3dac82(0x152)](_0x4d9301);_0x355ca5[_0x3dac82(0x13e)](_0x3dac82(0x161),_0x1bafb5),_0x105825['add']((0x0,_0x33b92e['toDisposable'])(()=>_0x355ca5[_0x3dac82(0x16a)](_0x3dac82(0x161),_0x1bafb5)));})[_0x49eb7b(0x16f)]((0x0,_0xa38acc['share'])()),'message$':new _0xa38acc[(_0x49eb7b(0x175))](_0x312df8=>{const _0xcacb74=_0x49eb7b;let _0x46d43f=_0x4bb370=>_0x312df8['next'](_0x4bb370);_0x355ca5[_0xcacb74(0x13e)](_0xcacb74(0x15e),_0x46d43f),_0x105825[_0xcacb74(0x15a)]((0x0,_0x33b92e['toDisposable'])(()=>_0x355ca5[_0xcacb74(0x16a)](_0xcacb74(0x15e),_0x46d43f)));})[_0x49eb7b(0x16f)]((0x0,_0xa38acc[_0x49eb7b(0x17b)])())};}catch(_0x28870c){return console[_0x49eb7b(0x161)](_0x28870c),null;}}};_0x54deae=_0x50017b([_0x6332de(0x0,_0x33b92e[_0x221703(0x159)])],_0x54deae);function _0x29bb28(_0x59b414){'@babel/helpers - typeof';const _0x35e459=_0x221703;return _0x29bb28=typeof Symbol=='function'&&typeof Symbol[_0x35e459(0x183)]=='symbol'?function(_0x2609ef){return typeof _0x2609ef;}:function(_0x1b4328){const _0xa9edea=_0x35e459;return _0x1b4328&&typeof Symbol==_0xa9edea(0x168)&&_0x1b4328[_0xa9edea(0x158)]===Symbol&&_0x1b4328!==Symbol['prototype']?_0xa9edea(0x14a):typeof _0x1b4328;},_0x29bb28(_0x59b414);}function _0xed6a04(_0x272d5b,_0x18cb21){const _0x598975=_0x221703;if(_0x29bb28(_0x272d5b)!=_0x598975(0x17c)||!_0x272d5b)return _0x272d5b;var _0x44c676=_0x272d5b[Symbol[_0x598975(0x143)]];if(_0x44c676!==void 0x0){var _0x71bf25=_0x44c676[_0x598975(0x14d)](_0x272d5b,_0x18cb21||_0x598975(0x178));if(_0x29bb28(_0x71bf25)!=_0x598975(0x17c))return _0x71bf25;throw TypeError(_0x598975(0x150));}return(_0x18cb21===_0x598975(0x165)?String:Number)(_0x272d5b);}function _0x5249c7(_0x2a3890){const _0x5a0d88=_0x221703;var _0x47057f=_0xed6a04(_0x2a3890,_0x5a0d88(0x165));return _0x29bb28(_0x47057f)==_0x5a0d88(0x14a)?_0x47057f:_0x47057f+'';}function _0x37ee4c(_0x545e62,_0x9ff9ea,_0xbf13e9){const _0x22c98f=_0x221703;return(_0x9ff9ea=_0x5249c7(_0x9ff9ea))in _0x545e62?Object[_0x22c98f(0x188)](_0x545e62,_0x9ff9ea,{'value':_0xbf13e9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x545e62[_0x9ff9ea]=_0xbf13e9,_0x545e62;}let _0x574cfb=class extends _0x33b92e[_0x221703(0x16d)]{constructor(_0x54352e=_0x39dbac,_0x5c1b79,_0x46e162){const _0x4244a1=_0x221703;super(),this[_0x4244a1(0x144)]=_0x5c1b79,this[_0x4244a1(0x148)]=_0x46e162,this[_0x4244a1(0x144)][_0x4244a1(0x13f)](_0x428564,_0x54352e);}['onStarting'](){const _0x4f26dc=_0x221703;this[_0x4f26dc(0x15d)]();}[_0x221703(0x15d)](){const _0x229a23=_0x221703;(0x0,_0x33b92e['registerDependencies'])(this[_0x229a23(0x148)],[[_0x5cfb11[_0x229a23(0x149)],{'useClass':_0x54deae}]]);}};_0x37ee4c(_0x574cfb,'pluginName',_0x221703(0x18a)),_0x37ee4c(_0x574cfb,'packageName',_0x27ad88),_0x37ee4c(_0x574cfb,_0x221703(0x177),_0x22bdd4),_0x574cfb=_0x50017b([(0x0,_0x33b92e[_0x221703(0x17d)])(_0x16382c['UniverCollaborationClientPlugin']),_0x6332de(0x1,_0x33b92e[_0x221703(0x159)]),_0x6332de(0x2,(0x0,_0x33b92e['Inject'])(_0x33b92e[_0x221703(0x14b)]))],_0x574cfb);let _0x280db8=class extends _0x16382c[_0x221703(0x15b)]{constructor(_0x199fe3,_0x1737d2,_0x49c6b4,_0x336487,_0x45c004){const _0x4134ce=_0x221703;super(_0x199fe3,_0x1737d2,_0x49c6b4,_0x336487,_0x45c004);let _0x134b93=this[_0x4134ce(0x144)]['getConfig'](_0x16382c[_0x4134ce(0x14f)]);this['_httpService'][_0x4134ce(0x180)]({'interceptor':(_0x57db47,_0x171714)=>{const _0x4beec8=_0x4134ce;let _0x2401e6=_0x57db47[_0x4beec8(0x142)];if(_0x134b93!=null&&_0x134b93[_0x4beec8(0x17f)]){for(let _0x9dc633 in _0x134b93[_0x4beec8(0x17f)])_0x2401e6['set'](_0x9dc633,_0x134b93[_0x4beec8(0x17f)][_0x9dc633]);}return _0x171714(_0x57db47);}});}async[_0x221703(0x164)](_0x29c47d){const _0x49f92a=_0x221703;return this[_0x49f92a(0x176)](_0x29c47d);}};_0x280db8=_0x50017b([_0x6332de(0x0,(0x0,_0x33b92e['Inject'])(_0x33b92e[_0x221703(0x14b)])),_0x6332de(0x1,(0x0,_0x33b92e[_0x221703(0x17a)])(_0x5cfb11[_0x221703(0x179)])),_0x6332de(0x2,_0x33b92e[_0x221703(0x159)]),_0x6332de(0x3,_0x33b92e['ILogService']),_0x6332de(0x4,_0x50ee19[_0x221703(0x189)])],_0x280db8),_0x47313c[_0x221703(0x163)]=_0x428564,Object['defineProperty'](_0x47313c,_0x221703(0x182),{'enumerable':!0x0,'get':function(){return _0x280db8;}}),Object[_0x221703(0x188)](_0x47313c,_0x221703(0x153),{'enumerable':!0x0,'get':function(){return _0x574cfb;}});}));function _0x537b(_0x1d6ec5,_0x27b682){_0x1d6ec5=_0x1d6ec5-0x13e;const _0x5010d2=_0x5010();let _0x537bac=_0x5010d2[_0x1d6ec5];return _0x537bac;}function _0x5010(){const _0x40572b=['Plugin','close','pipe','UniverCore','11655441wuFfnj','toDisposable','collaboration-client-node.config','6cUYkHW','Observable','_doCreateSocket','version','default','HTTPService','Inject','share','object','DependentOn','UniverProCollaborationClient','customHeaders','registerHTTPInterceptor','getConfig','NodeCollaborationSocketService','iterator','open','amd','@univerjs/network','UniverNetwork','defineProperty','ISnapshotServerService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','21PVnhyC','addEventListener','setConfig','getOwnPropertyDescriptor','send','headers','toPrimitive','_configService','12837069iTpTnq','toStringTag','exports','_injector','ISocketService','symbol','Injector','decorate','call','UniverProCollaborationClientNode','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','rxjs','next','UniverCollaborationClientNodePlugin','114emfAMA','1.0.0-alpha.0','33942EAtStx','@univerjs-pro/collaboration','constructor','IConfigService','add','CollaborationSocketService','Module','_registerDependencies','message','6869696KrKBUv','1009728JJlhXz','error','UniverProCollaboration','COLLABORATION_CLIENT_NODE_CONFIG_KEY','createSocket','string','@univerjs-pro/collaboration-client-node','5040205aHjDEr','function','@univerjs/core','removeEventListener','length','20538950BRaRcz'];_0x5010=function(){return _0x40572b;};return _0x5010();}
1
+ function _0x15e7(_0x3cc28c,_0x1c5168){_0x3cc28c=_0x3cc28c-0x13d;const _0x41ae8b=_0x41ae();let _0x15e7df=_0x41ae8b[_0x3cc28c];return _0x15e7df;}function _0x41ae(){const _0x43303e=['registerDependencies','send','toDisposable','close','call','pluginName','toStringTag','ISocketService','_configService','WebSocket','iterator','collaboration-client-node.config','UniverProCollaborationClientNode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs/network','Plugin','COLLABORATION_CLIENT_NODE_CONFIG_KEY','headers','10377240yNPCzn','onStarting','set','decorate','35UpbuJi','constructor','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','string','UniverProCollaboration','_doCreateSocket','version','685812kEEcZE','default','HTTPService','DependentOn','_httpService','27970ikJDiq','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','customHeaders','1.0.0-alpha.1','amd','prototype','add','959896qLQcDe','object','ILogService','message','setConfig','@univerjs-pro/collaboration-client','getConfig','_injector','removeEventListener','@univerjs/core','IConfigService','next','pipe','exports','@univerjs-pro/collaboration-client-node','symbol','defineProperty','DisposableCollection','getOwnPropertyDescriptor','8049304ctipGc','open','share','Observable','function','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Inject','ISnapshotServerService','290vmXFOg','registerHTTPInterceptor','rxjs','length','_registerDependencies','error','464394ziFWmq','1400463hJobqA','addEventListener','Injector','createSocket','UniverCollaborationClientPlugin','225isgCnF','packageName','@univerjs-pro/collaboration'];_0x41ae=function(){return _0x43303e;};return _0x41ae();}(function(_0x6a458,_0x4caa13){const _0x4a81d1=_0x15e7,_0x33765b=_0x6a458();while(!![]){try{const _0x361e1a=-parseInt(_0x4a81d1(0x164))/0x1+-parseInt(_0x4a81d1(0x15d))/0x2*(parseInt(_0x4a81d1(0x18b))/0x3)+parseInt(_0x4a81d1(0x158))/0x4*(parseInt(_0x4a81d1(0x151))/0x5)+-parseInt(_0x4a81d1(0x14d))/0x6+-parseInt(_0x4a81d1(0x185))/0x7+-parseInt(_0x4a81d1(0x177))/0x8+-parseInt(_0x4a81d1(0x186))/0x9*(-parseInt(_0x4a81d1(0x17f))/0xa);if(_0x361e1a===_0x4caa13)break;else _0x33765b['push'](_0x33765b['shift']());}catch(_0xc2d586){_0x33765b['push'](_0x33765b['shift']());}}}(_0x41ae,0xdc346),function(_0x2e5aea,_0x106c15){const _0x399803=_0x15e7;typeof exports=='object'&&typeof module<'u'?_0x106c15(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x399803(0x17b)&&define[_0x399803(0x161)]?define([_0x399803(0x171),_0x399803(0x169),_0x399803(0x16d),_0x399803(0x149),_0x399803(0x181),_0x399803(0x18d)],_0x106c15):(_0x2e5aea=typeof globalThis<'u'?globalThis:_0x2e5aea||self,_0x106c15(_0x2e5aea[_0x399803(0x147)]={},_0x2e5aea['UniverProCollaborationClient'],_0x2e5aea['UniverCore'],_0x2e5aea['UniverNetwork'],_0x2e5aea[_0x399803(0x181)],_0x2e5aea[_0x399803(0x155)]));}(this,function(_0x3a2596,_0x551afe,_0x25ab72,_0x41dcff,_0x5e5747,_0x16a79e){const _0x490e04=_0x15e7;Object[_0x490e04(0x174)](_0x3a2596,Symbol[_0x490e04(0x141)],{'value':'Module'});var _0x17a4ac=(_0x35b320,_0xaccb39)=>()=>(_0xaccb39||(_0x35b320((_0xaccb39={'exports':{}})[_0x490e04(0x171)],_0xaccb39),_0x35b320=null),_0xaccb39[_0x490e04(0x171)]);let _0x15958f=_0x490e04(0x146),_0xbb9016={};var _0x946850=_0x490e04(0x172),_0x1c1c2a=_0x490e04(0x160),_0x44e35d=_0x17a4ac((_0x54d45c,_0x168991)=>{const _0x6b3a08=_0x490e04;_0x168991[_0x6b3a08(0x171)]=function(){const _0x2b007b=_0x6b3a08;throw Error(_0x2b007b(0x153));};})();function _0x30738e(_0x2c00be,_0x36e986){return function(_0x2e2537,_0x145102){_0x36e986(_0x2e2537,_0x145102,_0x2c00be);};}function _0x1b6218(_0x320c56,_0xc25ebc,_0x453c11,_0x559469){const _0x33732a=_0x490e04;var _0x19cdb0=arguments[_0x33732a(0x182)],_0x4aced6=_0x19cdb0<0x3?_0xc25ebc:_0x559469===null?_0x559469=Object[_0x33732a(0x176)](_0xc25ebc,_0x453c11):_0x559469,_0x283261;if(typeof Reflect==_0x33732a(0x165)&&typeof Reflect[_0x33732a(0x150)]=='function')_0x4aced6=Reflect['decorate'](_0x320c56,_0xc25ebc,_0x453c11,_0x559469);else{for(var _0x5d32ad=_0x320c56[_0x33732a(0x182)]-0x1;_0x5d32ad>=0x0;_0x5d32ad--)(_0x283261=_0x320c56[_0x5d32ad])&&(_0x4aced6=(_0x19cdb0<0x3?_0x283261(_0x4aced6):_0x19cdb0>0x3?_0x283261(_0xc25ebc,_0x453c11,_0x4aced6):_0x283261(_0xc25ebc,_0x453c11))||_0x4aced6);}return _0x19cdb0>0x3&&_0x4aced6&&Object[_0x33732a(0x174)](_0xc25ebc,_0x453c11,_0x4aced6),_0x4aced6;}let _0x3833d0=class extends _0x25ab72['Disposable']{constructor(_0x131d8a){const _0x1e79c3=_0x490e04;super(),this[_0x1e79c3(0x143)]=_0x131d8a;}[_0x490e04(0x189)](_0x22e93b){const _0x1d514e=_0x490e04;var _0x127112;let _0x10418d=((_0x127112=this[_0x1d514e(0x143)][_0x1d514e(0x16a)](_0x551afe[_0x1d514e(0x17c)]))==null?void 0x0:_0x127112[_0x1d514e(0x15f)])||{};try{let _0x58ddd2=new _0x44e35d[(_0x1d514e(0x144))](_0x22e93b,{'headers':{..._0x10418d}}),_0x18a3de=new _0x25ab72[(_0x1d514e(0x175))]();return{'URL':_0x22e93b,'close':(_0x9c5418,_0x1f7624)=>{_0x58ddd2['close'](_0x9c5418,_0x1f7624),_0x18a3de['dispose']();},'send':_0x1f2259=>{const _0x1495c9=_0x1d514e;_0x58ddd2[_0x1495c9(0x18f)](_0x1f2259);},'open$':new _0x5e5747[(_0x1d514e(0x17a))](_0x57d7a2=>{const _0x4ff483=_0x1d514e;let _0x386200=_0x28232f=>_0x57d7a2[_0x4ff483(0x16f)](_0x28232f);_0x58ddd2[_0x4ff483(0x187)](_0x4ff483(0x178),_0x386200),_0x18a3de[_0x4ff483(0x163)]((0x0,_0x25ab72[_0x4ff483(0x13d)])(()=>_0x58ddd2[_0x4ff483(0x16c)]('open',_0x386200)));})[_0x1d514e(0x170)]((0x0,_0x5e5747[_0x1d514e(0x179)])()),'close$':new _0x5e5747['Observable'](_0x5be5c5=>{const _0x33dd52=_0x1d514e;let _0x5f1775=_0x22f081=>_0x5be5c5[_0x33dd52(0x16f)](_0x22f081);_0x58ddd2[_0x33dd52(0x187)](_0x33dd52(0x13e),_0x5f1775),_0x18a3de[_0x33dd52(0x163)]((0x0,_0x25ab72[_0x33dd52(0x13d)])(()=>_0x58ddd2[_0x33dd52(0x16c)](_0x33dd52(0x13e),_0x5f1775)));})['pipe']((0x0,_0x5e5747['share'])()),'error$':new _0x5e5747[(_0x1d514e(0x17a))](_0x1db46c=>{const _0xca2018=_0x1d514e;let _0x55d15e=_0x5673fa=>_0x1db46c['next'](_0x5673fa);_0x58ddd2[_0xca2018(0x187)]('error',_0x55d15e),_0x18a3de[_0xca2018(0x163)]((0x0,_0x25ab72[_0xca2018(0x13d)])(()=>_0x58ddd2[_0xca2018(0x16c)](_0xca2018(0x184),_0x55d15e)));})['pipe']((0x0,_0x5e5747['share'])()),'message$':new _0x5e5747[(_0x1d514e(0x17a))](_0x1752bc=>{const _0x47a9dd=_0x1d514e;let _0x146c34=_0x1a3256=>_0x1752bc[_0x47a9dd(0x16f)](_0x1a3256);_0x58ddd2[_0x47a9dd(0x187)](_0x47a9dd(0x167),_0x146c34),_0x18a3de[_0x47a9dd(0x163)]((0x0,_0x25ab72[_0x47a9dd(0x13d)])(()=>_0x58ddd2['removeEventListener'](_0x47a9dd(0x167),_0x146c34)));})[_0x1d514e(0x170)]((0x0,_0x5e5747['share'])())};}catch(_0x16405d){return console['error'](_0x16405d),null;}}};_0x3833d0=_0x1b6218([_0x30738e(0x0,_0x25ab72[_0x490e04(0x16e)])],_0x3833d0);function _0x251c91(_0x1652b2){'@babel/helpers - typeof';const _0x150583=_0x490e04;return _0x251c91=typeof Symbol==_0x150583(0x17b)&&typeof Symbol[_0x150583(0x145)]==_0x150583(0x173)?function(_0x32f735){return typeof _0x32f735;}:function(_0x573279){const _0x2a5cc9=_0x150583;return _0x573279&&typeof Symbol==_0x2a5cc9(0x17b)&&_0x573279[_0x2a5cc9(0x152)]===Symbol&&_0x573279!==Symbol[_0x2a5cc9(0x162)]?'symbol':typeof _0x573279;},_0x251c91(_0x1652b2);}function _0x5d42ea(_0xfaa4cf,_0x3b1df8){const _0xfa313f=_0x490e04;if(_0x251c91(_0xfaa4cf)!='object'||!_0xfaa4cf)return _0xfaa4cf;var _0x123660=_0xfaa4cf[Symbol['toPrimitive']];if(_0x123660!==void 0x0){var _0x5c1d2b=_0x123660[_0xfa313f(0x13f)](_0xfaa4cf,_0x3b1df8||_0xfa313f(0x159));if(_0x251c91(_0x5c1d2b)!=_0xfa313f(0x165))return _0x5c1d2b;throw TypeError(_0xfa313f(0x148));}return(_0x3b1df8===_0xfa313f(0x154)?String:Number)(_0xfaa4cf);}function _0x5a1bff(_0xf75370){const _0x134cae=_0x490e04;var _0x13d796=_0x5d42ea(_0xf75370,_0x134cae(0x154));return _0x251c91(_0x13d796)==_0x134cae(0x173)?_0x13d796:_0x13d796+'';}function _0x4cc3f2(_0x3661fd,_0x57837e,_0x14f83e){const _0x7985dc=_0x490e04;return(_0x57837e=_0x5a1bff(_0x57837e))in _0x3661fd?Object[_0x7985dc(0x174)](_0x3661fd,_0x57837e,{'value':_0x14f83e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3661fd[_0x57837e]=_0x14f83e,_0x3661fd;}let _0x3dd56b=class extends _0x25ab72[_0x490e04(0x14a)]{constructor(_0x97c411=_0xbb9016,_0x4624c5,_0x2b62aa){const _0x101372=_0x490e04;super(),this[_0x101372(0x143)]=_0x4624c5,this[_0x101372(0x16b)]=_0x2b62aa,this[_0x101372(0x143)][_0x101372(0x168)](_0x15958f,_0x97c411);}[_0x490e04(0x14e)](){const _0x17d502=_0x490e04;this[_0x17d502(0x183)]();}[_0x490e04(0x183)](){const _0x43aa54=_0x490e04;(0x0,_0x25ab72[_0x43aa54(0x18e)])(this[_0x43aa54(0x16b)],[[_0x41dcff[_0x43aa54(0x142)],{'useClass':_0x3833d0}]]);}};_0x4cc3f2(_0x3dd56b,_0x490e04(0x140),_0x490e04(0x15e)),_0x4cc3f2(_0x3dd56b,_0x490e04(0x18c),_0x946850),_0x4cc3f2(_0x3dd56b,_0x490e04(0x157),_0x1c1c2a),_0x3dd56b=_0x1b6218([(0x0,_0x25ab72[_0x490e04(0x15b)])(_0x551afe[_0x490e04(0x18a)]),_0x30738e(0x1,_0x25ab72['IConfigService']),_0x30738e(0x2,(0x0,_0x25ab72[_0x490e04(0x17d)])(_0x25ab72[_0x490e04(0x188)]))],_0x3dd56b);let _0x421366=class extends _0x551afe['CollaborationSocketService']{constructor(_0x31da9c,_0x3ed3fe,_0x30dab3,_0x590927,_0x58ffa0){const _0x37dc7e=_0x490e04;super(_0x31da9c,_0x3ed3fe,_0x30dab3,_0x590927,_0x58ffa0);let _0x1c4f27=this['_configService']['getConfig'](_0x551afe['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x37dc7e(0x15c)][_0x37dc7e(0x180)]({'interceptor':(_0x24dc71,_0x137025)=>{const _0x4fc501=_0x37dc7e;let _0x1610be=_0x24dc71[_0x4fc501(0x14c)];if(_0x1c4f27!=null&&_0x1c4f27[_0x4fc501(0x15f)]){for(let _0x2486a3 in _0x1c4f27[_0x4fc501(0x15f)])_0x1610be[_0x4fc501(0x14f)](_0x2486a3,_0x1c4f27[_0x4fc501(0x15f)][_0x2486a3]);}return _0x137025(_0x24dc71);}});}async[_0x490e04(0x189)](_0x5d9657){const _0xa83f7d=_0x490e04;return this[_0xa83f7d(0x156)](_0x5d9657);}};_0x421366=_0x1b6218([_0x30738e(0x0,(0x0,_0x25ab72['Inject'])(_0x25ab72[_0x490e04(0x188)])),_0x30738e(0x1,(0x0,_0x25ab72['Inject'])(_0x41dcff[_0x490e04(0x15a)])),_0x30738e(0x2,_0x25ab72[_0x490e04(0x16e)]),_0x30738e(0x3,_0x25ab72[_0x490e04(0x166)]),_0x30738e(0x4,_0x16a79e[_0x490e04(0x17e)])],_0x421366),_0x3a2596[_0x490e04(0x14b)]=_0x15958f,Object[_0x490e04(0x174)](_0x3a2596,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x421366;}}),Object[_0x490e04(0x174)](_0x3a2596,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x3dd56b;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.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>",
@@ -52,17 +52,17 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.20.1",
55
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.0",
56
- "@univerjs-pro/collaboration": "1.0.0-alpha.0",
57
- "@univerjs/core": "1.0.0-alpha.0",
58
- "@univerjs/network": "1.0.0-alpha.0"
55
+ "@univerjs-pro/collaboration": "1.0.0-alpha.1",
56
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.1",
57
+ "@univerjs/core": "1.0.0-alpha.1",
58
+ "@univerjs/network": "1.0.0-alpha.1"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/ws": "8.18.1",
62
62
  "rxjs": "7.8.2",
63
63
  "typescript": "^6.0.3",
64
64
  "vitest": "^4.1.9",
65
- "@univerjs-infra/shared": "1.0.0-alpha.0"
65
+ "@univerjs-infra/shared": "1.0.0-alpha.1"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",