@univerjs-pro/collaboration-client-node 1.0.0-alpha.6 → 1.0.0-alpha.7

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 _0x3fab54=_0x3001;(function(_0x5e184d,_0x37fbc1){const _0x215444=_0x3001,_0x25012a=_0x5e184d();while(!![]){try{const _0x1142f7=-parseInt(_0x215444(0x101))/0x1+parseInt(_0x215444(0xda))/0x2+-parseInt(_0x215444(0x11b))/0x3*(-parseInt(_0x215444(0xe2))/0x4)+parseInt(_0x215444(0x10e))/0x5*(-parseInt(_0x215444(0x11d))/0x6)+parseInt(_0x215444(0xe9))/0x7+parseInt(_0x215444(0xf9))/0x8+parseInt(_0x215444(0x102))/0x9;if(_0x1142f7===_0x37fbc1)break;else _0x25012a['push'](_0x25012a['shift']());}catch(_0x50814d){_0x25012a['push'](_0x25012a['shift']());}}}(_0x9cbb,0xf1cf1),Object[_0x3fab54(0x107)](exports,Symbol[_0x3fab54(0xe1)],{'value':_0x3fab54(0xea)}));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');function _0x9cbb(){const _0x41673d=['1.0.0-alpha.6','Plugin','defineProperty','call','onStarting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig','string','_configService','2883765ZexYEw','add','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','pluginName','_injector','symbol','IConfigService','prototype','share','registerHTTPInterceptor','iterator','next','addEventListener','1048728snASXy','DependentOn','18TKWEyS','UniverCollaborationClientPlugin','open','default','Observable','createSocket','setConfig','1087902yGbnUm','object','version','pipe','ISocketService','constructor','toDisposable','toStringTag','16ZUUkHI','message','set','length','customHeaders','DisposableCollection','toPrimitive','9719290GUSOlM','Module','close','dispose','packageName','_config','UniverCollaborationClientNodePlugin','NodeCollaborationSocketService','function','ILogService','WebSocket','CollaborationSocketService','Injector','merge','removeEventListener','send','5329896cAJJzL','Inject','error','_doCreateSocket','_registerDependencies','@univerjs-pro/collaboration-client-node','ISnapshotServerService','_httpService','1382052JPAcgt','952182rlSADK','headers','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'];_0x9cbb=function(){return _0x41673d;};return _0x9cbb();}var o=_0x3fab54(0xfe),s=_0x3fab54(0x105);const c={};function l(_0x311e86,_0x2de717){return function(_0x445833,_0x39a34c){_0x2de717(_0x445833,_0x39a34c,_0x311e86);};}function u(_0x51fbcc,_0x5af7d2,_0x3a3750,_0x14f0dd){const _0xdfeb62=_0x3fab54;var _0x3f7bac=arguments[_0xdfeb62(0xe5)],_0x2c936f=_0x3f7bac<0x3?_0x5af7d2:_0x14f0dd===null?_0x14f0dd=Object['getOwnPropertyDescriptor'](_0x5af7d2,_0x3a3750):_0x14f0dd,_0x3a6423;if(typeof Reflect==_0xdfeb62(0xdb)&&typeof Reflect['decorate']==_0xdfeb62(0xf1))_0x2c936f=Reflect['decorate'](_0x51fbcc,_0x5af7d2,_0x3a3750,_0x14f0dd);else{for(var _0x47232c=_0x51fbcc['length']-0x1;_0x47232c>=0x0;_0x47232c--)(_0x3a6423=_0x51fbcc[_0x47232c])&&(_0x2c936f=(_0x3f7bac<0x3?_0x3a6423(_0x2c936f):_0x3f7bac>0x3?_0x3a6423(_0x5af7d2,_0x3a3750,_0x2c936f):_0x3a6423(_0x5af7d2,_0x3a3750))||_0x2c936f);}return _0x3f7bac>0x3&&_0x2c936f&&Object['defineProperty'](_0x5af7d2,_0x3a3750,_0x2c936f),_0x2c936f;}let d=class extends t['Disposable']{constructor(_0x3994b5){const _0xd6e8dd=_0x3fab54;super(),this[_0xd6e8dd(0x10d)]=_0x3994b5;}[_0x3fab54(0xd8)](_0x227f76){const _0x52073a=_0x3fab54;var _0x28c0cc;let _0x23c94d=((_0x28c0cc=this[_0x52073a(0x10d)][_0x52073a(0x10b)](e[_0x52073a(0x110)]))==null?void 0x0:_0x28c0cc[_0x52073a(0xe6)])||{};try{let _0x443fdb=new i[(_0x52073a(0xf3))](_0x227f76,{'headers':{..._0x23c94d}}),_0x2b32d2=new t[(_0x52073a(0xe7))]();return{'URL':_0x227f76,'close':(_0x3ce369,_0x29f7c6)=>{const _0x5a9969=_0x52073a;_0x443fdb[_0x5a9969(0xeb)](_0x3ce369,_0x29f7c6),_0x2b32d2[_0x5a9969(0xec)]();},'send':_0x54cdb6=>{const _0x36a362=_0x52073a;_0x443fdb[_0x36a362(0xf8)](_0x54cdb6);},'open$':new r[(_0x52073a(0x121))](_0x2a7490=>{const _0x18edad=_0x52073a;let _0x2af158=_0x1919dc=>_0x2a7490[_0x18edad(0x119)](_0x1919dc);_0x443fdb[_0x18edad(0x11a)](_0x18edad(0x11f),_0x2af158),_0x2b32d2[_0x18edad(0x10f)]((0x0,t[_0x18edad(0xe0)])(()=>_0x443fdb[_0x18edad(0xf7)](_0x18edad(0x11f),_0x2af158)));})[_0x52073a(0xdd)]((0x0,r[_0x52073a(0x116)])()),'close$':new r[(_0x52073a(0x121))](_0x2c4078=>{const _0x2369de=_0x52073a;let _0x34b152=_0x404fad=>_0x2c4078['next'](_0x404fad);_0x443fdb['addEventListener'](_0x2369de(0xeb),_0x34b152),_0x2b32d2[_0x2369de(0x10f)]((0x0,t[_0x2369de(0xe0)])(()=>_0x443fdb[_0x2369de(0xf7)](_0x2369de(0xeb),_0x34b152)));})[_0x52073a(0xdd)]((0x0,r[_0x52073a(0x116)])()),'error$':new r[(_0x52073a(0x121))](_0x27f835=>{const _0x20348c=_0x52073a;let _0x24c144=_0x1aca97=>_0x27f835[_0x20348c(0x119)](_0x1aca97);_0x443fdb[_0x20348c(0x11a)](_0x20348c(0xfb),_0x24c144),_0x2b32d2[_0x20348c(0x10f)]((0x0,t[_0x20348c(0xe0)])(()=>_0x443fdb[_0x20348c(0xf7)](_0x20348c(0xfb),_0x24c144)));})[_0x52073a(0xdd)]((0x0,r[_0x52073a(0x116)])()),'message$':new r[(_0x52073a(0x121))](_0x4e3da2=>{const _0x4c02ca=_0x52073a;let _0x4e92b7=_0x16012f=>_0x4e3da2[_0x4c02ca(0x119)](_0x16012f);_0x443fdb['addEventListener'](_0x4c02ca(0xe3),_0x4e92b7),_0x2b32d2[_0x4c02ca(0x10f)]((0x0,t[_0x4c02ca(0xe0)])(()=>_0x443fdb[_0x4c02ca(0xf7)](_0x4c02ca(0xe3),_0x4e92b7)));})[_0x52073a(0xdd)]((0x0,r[_0x52073a(0x116)])())};}catch(_0x4eeabc){return console[_0x52073a(0xfb)](_0x4eeabc),null;}}};function _0x3001(_0x30c9f4,_0x1287cc){_0x30c9f4=_0x30c9f4-0xd8;const _0x9cbba5=_0x9cbb();let _0x30012d=_0x9cbba5[_0x30c9f4];return _0x30012d;}d=u([l(0x0,t[_0x3fab54(0x114)])],d);function f(_0x34dd7b){'@babel/helpers - typeof';const _0x35de1b=_0x3fab54;return f=typeof Symbol==_0x35de1b(0xf1)&&typeof Symbol[_0x35de1b(0x118)]==_0x35de1b(0x113)?function(_0x12d4e8){return typeof _0x12d4e8;}:function(_0x2ee036){const _0x5166af=_0x35de1b;return _0x2ee036&&typeof Symbol=='function'&&_0x2ee036[_0x5166af(0xdf)]===Symbol&&_0x2ee036!==Symbol[_0x5166af(0x115)]?_0x5166af(0x113):typeof _0x2ee036;},f(_0x34dd7b);}function p(_0x3defa1,_0x67a226){const _0x42111e=_0x3fab54;if(f(_0x3defa1)!=_0x42111e(0xdb)||!_0x3defa1)return _0x3defa1;var _0x1baa60=_0x3defa1[Symbol[_0x42111e(0xe8)]];if(_0x1baa60!==void 0x0){var _0x18bfab=_0x1baa60[_0x42111e(0x108)](_0x3defa1,_0x67a226||_0x42111e(0x120));if(f(_0x18bfab)!='object')return _0x18bfab;throw TypeError(_0x42111e(0x10a));}return(_0x67a226==='string'?String:Number)(_0x3defa1);}function m(_0x19bc77){const _0x1aa17f=_0x3fab54;var _0x356b02=p(_0x19bc77,_0x1aa17f(0x10c));return f(_0x356b02)=='symbol'?_0x356b02:_0x356b02+'';}function h(_0x39ddd1,_0x17280b,_0x2efa2d){const _0x219ce8=_0x3fab54;return(_0x17280b=m(_0x17280b))in _0x39ddd1?Object[_0x219ce8(0x107)](_0x39ddd1,_0x17280b,{'value':_0x2efa2d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39ddd1[_0x17280b]=_0x2efa2d,_0x39ddd1;}let g=class extends t[_0x3fab54(0x106)]{constructor(_0x1c7ad3=c,_0x129efa,_0x266f9a){const _0x3b4120=_0x3fab54;super(),this[_0x3b4120(0xee)]=_0x1c7ad3,this[_0x3b4120(0x10d)]=_0x129efa,this[_0x3b4120(0x112)]=_0x266f9a;let {..._0x35a744}=(0x0,t[_0x3b4120(0xf6)])({},c,this['_config']);this[_0x3b4120(0x10d)][_0x3b4120(0xd9)]('collaboration-client-node.config',_0x35a744);}[_0x3fab54(0x109)](){const _0x268c86=_0x3fab54;this[_0x268c86(0xfd)]();}['_registerDependencies'](){const _0x8e347b=_0x3fab54;(0x0,t['registerDependencies'])(this[_0x8e347b(0x112)],[[n[_0x8e347b(0xde)],{'useClass':d}]]);}};h(g,_0x3fab54(0x111),_0x3fab54(0x104)),h(g,_0x3fab54(0xed),o),h(g,_0x3fab54(0xdc),s),g=u([(0x0,t[_0x3fab54(0x11c)])(e[_0x3fab54(0x11e)]),l(0x1,t[_0x3fab54(0x114)]),l(0x2,(0x0,t[_0x3fab54(0xfa)])(t[_0x3fab54(0xf5)]))],g);let _=class extends e[_0x3fab54(0xf4)]{constructor(_0x2d243c,_0x238b82,_0x184531,_0x323ebe,_0x1f5b69){const _0x508164=_0x3fab54;super(_0x2d243c,_0x238b82,_0x184531,_0x323ebe,_0x1f5b69);let _0x419cd9=this[_0x508164(0x10d)][_0x508164(0x10b)](e[_0x508164(0x110)]);this[_0x508164(0x100)][_0x508164(0x117)]({'interceptor':(_0x44970b,_0xbfaa24)=>{const _0xeef867=_0x508164;let _0x4ad2f3=_0x44970b[_0xeef867(0x103)];if(_0x419cd9!=null&&_0x419cd9[_0xeef867(0xe6)]){for(let _0x870892 in _0x419cd9[_0xeef867(0xe6)])_0x4ad2f3[_0xeef867(0xe4)](_0x870892,_0x419cd9['customHeaders'][_0x870892]);}return _0xbfaa24(_0x44970b);}});}async[_0x3fab54(0xd8)](_0x2e1a35){const _0x3ae5b6=_0x3fab54;return this[_0x3ae5b6(0xfc)](_0x2e1a35);}};_=u([l(0x0,(0x0,t['Inject'])(t['Injector'])),l(0x1,(0x0,t[_0x3fab54(0xfa)])(n['HTTPService'])),l(0x2,t[_0x3fab54(0x114)]),l(0x3,t[_0x3fab54(0xf2)]),l(0x4,a[_0x3fab54(0xff)])],_),Object[_0x3fab54(0x107)](exports,_0x3fab54(0xf0),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x3fab54(0x107)](exports,_0x3fab54(0xef),{'enumerable':!0x0,'get':function(){return g;}});
1
+ const _0x5669ad=_0x4f6a;function _0x50ff(){const _0x42d45d=['DisposableCollection','_config','11885qSKJHc','merge','31560110xNyOCh','_httpService','version','toDisposable','DependentOn','toStringTag','iterator','311KACCps','ISocketService','symbol','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','string','customHeaders','@univerjs-pro/collaboration-client-node','addEventListener','setConfig','5838108Jnqpjm','prototype','decorate','dispose','WebSocket','1.0.0-alpha.7','HTTPService','_doCreateSocket','7312459IxTJmO','object','constructor','pipe','createSocket','UniverCollaborationClientNodePlugin','close','Observable','_configService','next','send','add','removeEventListener','packageName','getConfig','open','message','654xtgQgr','234auperW','toPrimitive','onStarting','share','default','Inject','Plugin','registerDependencies','6411664ejIWjS','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','error','597960gcGKRC','function','_injector','_registerDependencies','CollaborationSocketService','registerHTTPInterceptor','headers','UniverCollaborationClientPlugin','Disposable','Injector','defineProperty','11290nPHUip','length','NodeCollaborationSocketService','IConfigService'];_0x50ff=function(){return _0x42d45d;};return _0x50ff();}(function(_0x4822fe,_0x386aa7){const _0x5a5eb1=_0x4f6a,_0x2bc05a=_0x4822fe();while(!![]){try{const _0x216a5b=parseInt(_0x5a5eb1(0x11b))/0x1*(parseInt(_0x5a5eb1(0x154))/0x2)+parseInt(_0x5a5eb1(0x124))/0x3+parseInt(_0x5a5eb1(0x146))/0x4+-parseInt(_0x5a5eb1(0x112))/0x5*(parseInt(_0x5a5eb1(0x13d))/0x6)+parseInt(_0x5a5eb1(0x12c))/0x7+parseInt(_0x5a5eb1(0x149))/0x8*(-parseInt(_0x5a5eb1(0x13e))/0x9)+-parseInt(_0x5a5eb1(0x114))/0xa;if(_0x216a5b===_0x386aa7)break;else _0x2bc05a['push'](_0x2bc05a['shift']());}catch(_0x358f77){_0x2bc05a['push'](_0x2bc05a['shift']());}}}(_0x50ff,0xf1df6),Object[_0x5669ad(0x153)](exports,Symbol[_0x5669ad(0x119)],{'value':'Module'}));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');var o=_0x5669ad(0x121),s=_0x5669ad(0x129);const c={};function _0x4f6a(_0x43ae6f,_0x9f07d2){_0x43ae6f=_0x43ae6f-0x10e;const _0x50ffec=_0x50ff();let _0x4f6a1b=_0x50ffec[_0x43ae6f];return _0x4f6a1b;}function l(_0x40e87a,_0x53bef2){return function(_0x1a99ac,_0x40bae4){_0x53bef2(_0x1a99ac,_0x40bae4,_0x40e87a);};}function u(_0x5de84b,_0x5a7cb6,_0x5c1cbb,_0x5528a8){const _0x15899e=_0x5669ad;var _0x52a564=arguments[_0x15899e(0x155)],_0x491c2=_0x52a564<0x3?_0x5a7cb6:_0x5528a8===null?_0x5528a8=Object['getOwnPropertyDescriptor'](_0x5a7cb6,_0x5c1cbb):_0x5528a8,_0x3f758d;if(typeof Reflect==_0x15899e(0x12d)&&typeof Reflect[_0x15899e(0x126)]==_0x15899e(0x14a))_0x491c2=Reflect['decorate'](_0x5de84b,_0x5a7cb6,_0x5c1cbb,_0x5528a8);else{for(var _0x5c62aa=_0x5de84b[_0x15899e(0x155)]-0x1;_0x5c62aa>=0x0;_0x5c62aa--)(_0x3f758d=_0x5de84b[_0x5c62aa])&&(_0x491c2=(_0x52a564<0x3?_0x3f758d(_0x491c2):_0x52a564>0x3?_0x3f758d(_0x5a7cb6,_0x5c1cbb,_0x491c2):_0x3f758d(_0x5a7cb6,_0x5c1cbb))||_0x491c2);}return _0x52a564>0x3&&_0x491c2&&Object[_0x15899e(0x153)](_0x5a7cb6,_0x5c1cbb,_0x491c2),_0x491c2;}let d=class extends t[_0x5669ad(0x151)]{constructor(_0x362de9){const _0x371173=_0x5669ad;super(),this[_0x371173(0x134)]=_0x362de9;}[_0x5669ad(0x130)](_0x53dfaa){const _0x49b8cc=_0x5669ad;var _0x5a6bea;let _0x617213=((_0x5a6bea=this[_0x49b8cc(0x134)][_0x49b8cc(0x13a)](e[_0x49b8cc(0x147)]))==null?void 0x0:_0x5a6bea[_0x49b8cc(0x120)])||{};try{let _0x30dd7e=new i[(_0x49b8cc(0x128))](_0x53dfaa,{'headers':{..._0x617213}}),_0x2e0582=new t[(_0x49b8cc(0x110))]();return{'URL':_0x53dfaa,'close':(_0x1141fd,_0x13d44b)=>{const _0x12197f=_0x49b8cc;_0x30dd7e[_0x12197f(0x132)](_0x1141fd,_0x13d44b),_0x2e0582[_0x12197f(0x127)]();},'send':_0x25dfc0=>{const _0x2b5f00=_0x49b8cc;_0x30dd7e[_0x2b5f00(0x136)](_0x25dfc0);},'open$':new r['Observable'](_0x2e135f=>{const _0x5e259b=_0x49b8cc;let _0x3d38f0=_0x3041c2=>_0x2e135f[_0x5e259b(0x135)](_0x3041c2);_0x30dd7e[_0x5e259b(0x122)](_0x5e259b(0x13b),_0x3d38f0),_0x2e0582[_0x5e259b(0x137)]((0x0,t[_0x5e259b(0x117)])(()=>_0x30dd7e[_0x5e259b(0x138)](_0x5e259b(0x13b),_0x3d38f0)));})[_0x49b8cc(0x12f)]((0x0,r[_0x49b8cc(0x141)])()),'close$':new r[(_0x49b8cc(0x133))](_0x13c7d9=>{const _0x5e31ab=_0x49b8cc;let _0x385a16=_0x264a9b=>_0x13c7d9[_0x5e31ab(0x135)](_0x264a9b);_0x30dd7e[_0x5e31ab(0x122)](_0x5e31ab(0x132),_0x385a16),_0x2e0582['add']((0x0,t['toDisposable'])(()=>_0x30dd7e[_0x5e31ab(0x138)](_0x5e31ab(0x132),_0x385a16)));})[_0x49b8cc(0x12f)]((0x0,r[_0x49b8cc(0x141)])()),'error$':new r[(_0x49b8cc(0x133))](_0x2ceb63=>{const _0x22d944=_0x49b8cc;let _0x2bb77f=_0x5025aa=>_0x2ceb63[_0x22d944(0x135)](_0x5025aa);_0x30dd7e[_0x22d944(0x122)](_0x22d944(0x148),_0x2bb77f),_0x2e0582[_0x22d944(0x137)]((0x0,t[_0x22d944(0x117)])(()=>_0x30dd7e['removeEventListener']('error',_0x2bb77f)));})[_0x49b8cc(0x12f)]((0x0,r['share'])()),'message$':new r['Observable'](_0x519319=>{const _0x36aad4=_0x49b8cc;let _0x2aa196=_0x44688e=>_0x519319['next'](_0x44688e);_0x30dd7e['addEventListener']('message',_0x2aa196),_0x2e0582[_0x36aad4(0x137)]((0x0,t['toDisposable'])(()=>_0x30dd7e[_0x36aad4(0x138)](_0x36aad4(0x13c),_0x2aa196)));})[_0x49b8cc(0x12f)]((0x0,r[_0x49b8cc(0x141)])())};}catch(_0x63ab88){return console[_0x49b8cc(0x148)](_0x63ab88),null;}}};d=u([l(0x0,t[_0x5669ad(0x10f)])],d);function f(_0x1de610){'@babel/helpers - typeof';const _0x5de100=_0x5669ad;return f=typeof Symbol==_0x5de100(0x14a)&&typeof Symbol[_0x5de100(0x11a)]==_0x5de100(0x11d)?function(_0x1e626c){return typeof _0x1e626c;}:function(_0x2f1957){const _0x59d02f=_0x5de100;return _0x2f1957&&typeof Symbol==_0x59d02f(0x14a)&&_0x2f1957[_0x59d02f(0x12e)]===Symbol&&_0x2f1957!==Symbol[_0x59d02f(0x125)]?_0x59d02f(0x11d):typeof _0x2f1957;},f(_0x1de610);}function p(_0xb69ede,_0x505f65){const _0x387c6f=_0x5669ad;if(f(_0xb69ede)!='object'||!_0xb69ede)return _0xb69ede;var _0x47fd4d=_0xb69ede[Symbol[_0x387c6f(0x13f)]];if(_0x47fd4d!==void 0x0){var _0x1c6036=_0x47fd4d['call'](_0xb69ede,_0x505f65||_0x387c6f(0x142));if(f(_0x1c6036)!='object')return _0x1c6036;throw TypeError(_0x387c6f(0x11e));}return(_0x505f65===_0x387c6f(0x11f)?String:Number)(_0xb69ede);}function m(_0x1b9ead){const _0x4d65f2=_0x5669ad;var _0x1c2f32=p(_0x1b9ead,'string');return f(_0x1c2f32)==_0x4d65f2(0x11d)?_0x1c2f32:_0x1c2f32+'';}function h(_0x4cf27d,_0x8f4c1d,_0x175e0b){const _0x42fc7f=_0x5669ad;return(_0x8f4c1d=m(_0x8f4c1d))in _0x4cf27d?Object[_0x42fc7f(0x153)](_0x4cf27d,_0x8f4c1d,{'value':_0x175e0b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4cf27d[_0x8f4c1d]=_0x175e0b,_0x4cf27d;}let g=class extends t[_0x5669ad(0x144)]{constructor(_0x3d933d=c,_0x2c990d,_0x258fa9){const _0x3ea775=_0x5669ad;super(),this[_0x3ea775(0x111)]=_0x3d933d,this[_0x3ea775(0x134)]=_0x2c990d,this[_0x3ea775(0x14b)]=_0x258fa9;let {..._0xc059d9}=(0x0,t[_0x3ea775(0x113)])({},c,this[_0x3ea775(0x111)]);this['_configService'][_0x3ea775(0x123)]('collaboration-client-node.config',_0xc059d9);}[_0x5669ad(0x140)](){this['_registerDependencies']();}[_0x5669ad(0x14c)](){const _0x180ac9=_0x5669ad;(0x0,t[_0x180ac9(0x145)])(this[_0x180ac9(0x14b)],[[n[_0x180ac9(0x11c)],{'useClass':d}]]);}};h(g,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),h(g,_0x5669ad(0x139),o),h(g,_0x5669ad(0x116),s),g=u([(0x0,t[_0x5669ad(0x118)])(e[_0x5669ad(0x150)]),l(0x1,t[_0x5669ad(0x10f)]),l(0x2,(0x0,t[_0x5669ad(0x143)])(t[_0x5669ad(0x152)]))],g);let _=class extends e[_0x5669ad(0x14d)]{constructor(_0x48ed90,_0x45c603,_0x19f736,_0x2a6c38,_0x17c399){const _0x140c40=_0x5669ad;super(_0x48ed90,_0x45c603,_0x19f736,_0x2a6c38,_0x17c399);let _0x4c7855=this[_0x140c40(0x134)][_0x140c40(0x13a)](e[_0x140c40(0x147)]);this[_0x140c40(0x115)][_0x140c40(0x14e)]({'interceptor':(_0x553779,_0x4f7cc7)=>{const _0x13d81=_0x140c40;let _0x38e53f=_0x553779[_0x13d81(0x14f)];if(_0x4c7855!=null&&_0x4c7855[_0x13d81(0x120)]){for(let _0x291bda in _0x4c7855[_0x13d81(0x120)])_0x38e53f['set'](_0x291bda,_0x4c7855[_0x13d81(0x120)][_0x291bda]);}return _0x4f7cc7(_0x553779);}});}async[_0x5669ad(0x130)](_0x3d441c){const _0xd491a=_0x5669ad;return this[_0xd491a(0x12b)](_0x3d441c);}};_=u([l(0x0,(0x0,t['Inject'])(t['Injector'])),l(0x1,(0x0,t['Inject'])(n[_0x5669ad(0x12a)])),l(0x2,t[_0x5669ad(0x10f)]),l(0x3,t['ILogService']),l(0x4,a['ISnapshotServerService'])],_),Object[_0x5669ad(0x153)](exports,_0x5669ad(0x10e),{'enumerable':!0x0,'get':function(){return _;}}),Object['defineProperty'](exports,_0x5669ad(0x131),{'enumerable':!0x0,'get':function(){return g;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x18a193=_0x3a31;(function(_0x54c57a,_0x48f3a0){const _0x21d533=_0x3a31,_0x3fb73c=_0x54c57a();while(!![]){try{const _0x18ed2c=parseInt(_0x21d533(0x17c))/0x1*(-parseInt(_0x21d533(0x196))/0x2)+parseInt(_0x21d533(0x18d))/0x3*(parseInt(_0x21d533(0x191))/0x4)+-parseInt(_0x21d533(0x178))/0x5+parseInt(_0x21d533(0x17f))/0x6+-parseInt(_0x21d533(0x198))/0x7+-parseInt(_0x21d533(0x17d))/0x8*(-parseInt(_0x21d533(0x1a0))/0x9)+-parseInt(_0x21d533(0x182))/0xa;if(_0x18ed2c===_0x48f3a0)break;else _0x3fb73c['push'](_0x3fb73c['shift']());}catch(_0x470b80){_0x3fb73c['push'](_0x3fb73c['shift']());}}}(_0x222d,0xd3dbe));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x11dc4c,CollaborationSocketService as _0x168a08,UniverCollaborationClientPlugin as _0x34e41a}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x1c9592,Disposable as _0x4d6cd1,DisposableCollection as _0x29f7f8,IConfigService as _0x1099f0,ILogService as _0x5ab0a2,Inject as _0x3252d4,Injector as _0x456667,Plugin as _0x56da4f,merge as _0x2d8d9e,registerDependencies as _0x55ac2b,toDisposable as _0x30908e}from'@univerjs/core';import{HTTPService as _0x289f7e,ISocketService as _0x116327}from'@univerjs/network';import{Observable as _0x148b11,share as _0x16a162}from'rxjs';import{WebSocket as _0xb5e5ee}from'ws';import{ISnapshotServerService as _0x59507c}from'@univerjs-pro/collaboration';var b=_0x18a193(0x199),x='1.0.0-alpha.6';const S={};function C(_0x202b89,_0x26caf3){return function(_0xeef547,_0x1cb077){_0x26caf3(_0xeef547,_0x1cb077,_0x202b89);};}function w(_0xaee47,_0x1c1e54,_0xbd16b9,_0x2bd1a8){const _0x6bf55d=_0x18a193;var _0xaa5def=arguments[_0x6bf55d(0x18b)],_0x5774c9=_0xaa5def<0x3?_0x1c1e54:_0x2bd1a8===null?_0x2bd1a8=Object[_0x6bf55d(0x17a)](_0x1c1e54,_0xbd16b9):_0x2bd1a8,_0x402526;if(typeof Reflect=='object'&&typeof Reflect[_0x6bf55d(0x18a)]==_0x6bf55d(0x194))_0x5774c9=Reflect[_0x6bf55d(0x18a)](_0xaee47,_0x1c1e54,_0xbd16b9,_0x2bd1a8);else{for(var _0x1b88d7=_0xaee47[_0x6bf55d(0x18b)]-0x1;_0x1b88d7>=0x0;_0x1b88d7--)(_0x402526=_0xaee47[_0x1b88d7])&&(_0x5774c9=(_0xaa5def<0x3?_0x402526(_0x5774c9):_0xaa5def>0x3?_0x402526(_0x1c1e54,_0xbd16b9,_0x5774c9):_0x402526(_0x1c1e54,_0xbd16b9))||_0x5774c9);}return _0xaa5def>0x3&&_0x5774c9&&Object['defineProperty'](_0x1c1e54,_0xbd16b9,_0x5774c9),_0x5774c9;}let T=class extends _0x4d6cd1{constructor(_0x57b753){const _0x25cf65=_0x18a193;super(),this[_0x25cf65(0x18f)]=_0x57b753;}[_0x18a193(0x184)](_0x331d18){const _0xe71c98=_0x18a193;var _0x3072df;let _0x1c7d1b=((_0x3072df=this['_configService'][_0xe71c98(0x1a4)](_0x11dc4c))==null?void 0x0:_0x3072df[_0xe71c98(0x19a)])||{};try{let _0x180ff7=new _0xb5e5ee(_0x331d18,{'headers':{..._0x1c7d1b}}),_0x1f20d0=new _0x29f7f8();return{'URL':_0x331d18,'close':(_0x2d3120,_0x23db76)=>{const _0x2cd10c=_0xe71c98;_0x180ff7[_0x2cd10c(0x179)](_0x2d3120,_0x23db76),_0x1f20d0[_0x2cd10c(0x189)]();},'send':_0x3d35f2=>{const _0x1c24df=_0xe71c98;_0x180ff7[_0x1c24df(0x17e)](_0x3d35f2);},'open$':new _0x148b11(_0xcb3a12=>{const _0x755b2d=_0xe71c98;let _0x560fba=_0x11c3d=>_0xcb3a12[_0x755b2d(0x185)](_0x11c3d);_0x180ff7[_0x755b2d(0x18c)](_0x755b2d(0x18e),_0x560fba),_0x1f20d0[_0x755b2d(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener']('open',_0x560fba)));})['pipe'](_0x16a162()),'close$':new _0x148b11(_0x41c66d=>{const _0x492426=_0xe71c98;let _0x165797=_0x397d38=>_0x41c66d[_0x492426(0x185)](_0x397d38);_0x180ff7[_0x492426(0x18c)](_0x492426(0x179),_0x165797),_0x1f20d0[_0x492426(0x1a8)](_0x30908e(()=>_0x180ff7[_0x492426(0x180)](_0x492426(0x179),_0x165797)));})[_0xe71c98(0x19b)](_0x16a162()),'error$':new _0x148b11(_0x4c2ab2=>{const _0x3f3531=_0xe71c98;let _0x11df82=_0x122159=>_0x4c2ab2[_0x3f3531(0x185)](_0x122159);_0x180ff7[_0x3f3531(0x18c)](_0x3f3531(0x183),_0x11df82),_0x1f20d0[_0x3f3531(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener'](_0x3f3531(0x183),_0x11df82)));})[_0xe71c98(0x19b)](_0x16a162()),'message$':new _0x148b11(_0x52a76d=>{const _0x33c798=_0xe71c98;let _0x1041d7=_0x28b87a=>_0x52a76d['next'](_0x28b87a);_0x180ff7[_0x33c798(0x18c)]('message',_0x1041d7),_0x1f20d0[_0x33c798(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener'](_0x33c798(0x1a7),_0x1041d7)));})['pipe'](_0x16a162())};}catch(_0x7507d8){return console['error'](_0x7507d8),null;}}};T=w([C(0x0,_0x1099f0)],T);function E(_0x576e85){'@babel/helpers - typeof';const _0x26ff59=_0x18a193;return E=typeof Symbol==_0x26ff59(0x194)&&typeof Symbol[_0x26ff59(0x186)]==_0x26ff59(0x190)?function(_0x1358ef){return typeof _0x1358ef;}:function(_0x677cb8){const _0x5d1007=_0x26ff59;return _0x677cb8&&typeof Symbol==_0x5d1007(0x194)&&_0x677cb8['constructor']===Symbol&&_0x677cb8!==Symbol[_0x5d1007(0x19c)]?_0x5d1007(0x190):typeof _0x677cb8;},E(_0x576e85);}function D(_0x2c1dd6,_0x58d409){const _0x34c0ab=_0x18a193;if(E(_0x2c1dd6)!=_0x34c0ab(0x197)||!_0x2c1dd6)return _0x2c1dd6;var _0x2324b6=_0x2c1dd6[Symbol['toPrimitive']];if(_0x2324b6!==void 0x0){var _0x233f9d=_0x2324b6['call'](_0x2c1dd6,_0x58d409||_0x34c0ab(0x19e));if(E(_0x233f9d)!=_0x34c0ab(0x197))return _0x233f9d;throw TypeError(_0x34c0ab(0x192));}return(_0x58d409===_0x34c0ab(0x1a1)?String:Number)(_0x2c1dd6);}function O(_0xfc300e){const _0x3e14ea=_0x18a193;var _0x116765=D(_0xfc300e,'string');return E(_0x116765)==_0x3e14ea(0x190)?_0x116765:_0x116765+'';}function _0x3a31(_0x20636f,_0xac5937){_0x20636f=_0x20636f-0x178;const _0x222d49=_0x222d();let _0x3a3126=_0x222d49[_0x20636f];return _0x3a3126;}function k(_0x34ed5c,_0x5e33a6,_0x532658){return(_0x5e33a6=O(_0x5e33a6))in _0x34ed5c?Object['defineProperty'](_0x34ed5c,_0x5e33a6,{'value':_0x532658,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34ed5c[_0x5e33a6]=_0x532658,_0x34ed5c;}let A=class extends _0x56da4f{constructor(_0x565540=S,_0x2d3795,_0x5233dd){const _0x591cf2=_0x18a193;super(),this['_config']=_0x565540,this[_0x591cf2(0x18f)]=_0x2d3795,this[_0x591cf2(0x187)]=_0x5233dd;let {..._0x5bba24}=_0x2d8d9e({},S,this[_0x591cf2(0x1a2)]);this[_0x591cf2(0x18f)][_0x591cf2(0x181)](_0x591cf2(0x188),_0x5bba24);}['onStarting'](){this['_registerDependencies']();}[_0x18a193(0x1a6)](){_0x55ac2b(this['_injector'],[[_0x116327,{'useClass':T}]]);}};k(A,_0x18a193(0x19f),_0x18a193(0x193)),k(A,_0x18a193(0x1a3),b),k(A,_0x18a193(0x195),x),A=w([_0x1c9592(_0x34e41a),C(0x1,_0x1099f0),C(0x2,_0x3252d4(_0x456667))],A);let j=class extends _0x168a08{constructor(_0x5ac6f2,_0x56af58,_0x7c5f06,_0x4ef99e,_0x2807ed){const _0x4a6378=_0x18a193;super(_0x5ac6f2,_0x56af58,_0x7c5f06,_0x4ef99e,_0x2807ed);let _0x1de82e=this[_0x4a6378(0x18f)][_0x4a6378(0x1a4)](_0x11dc4c);this[_0x4a6378(0x1a5)][_0x4a6378(0x17b)]({'interceptor':(_0x1d6d45,_0x2aba96)=>{const _0x879b24=_0x4a6378;let _0x24b41d=_0x1d6d45[_0x879b24(0x1a9)];if(_0x1de82e!=null&&_0x1de82e['customHeaders']){for(let _0x39daec in _0x1de82e[_0x879b24(0x19a)])_0x24b41d['set'](_0x39daec,_0x1de82e[_0x879b24(0x19a)][_0x39daec]);}return _0x2aba96(_0x1d6d45);}});}async[_0x18a193(0x184)](_0x1751f0){const _0x44d645=_0x18a193;return this[_0x44d645(0x19d)](_0x1751f0);}};j=w([C(0x0,_0x3252d4(_0x456667)),C(0x1,_0x3252d4(_0x289f7e)),C(0x2,_0x1099f0),C(0x3,_0x5ab0a2),C(0x4,_0x59507c)],j);function _0x222d(){const _0x47b091=['object','6887867ioifRz','@univerjs-pro/collaboration-client-node','customHeaders','pipe','prototype','_doCreateSocket','default','pluginName','14038155hqpexv','string','_config','packageName','getConfig','_httpService','_registerDependencies','message','add','headers','5371885iJMETG','close','getOwnPropertyDescriptor','registerHTTPInterceptor','1799UAyctd','8fvUMnn','send','6367194Jiraie','removeEventListener','setConfig','2917050YtGYcu','error','createSocket','next','iterator','_injector','collaboration-client-node.config','dispose','decorate','length','addEventListener','66uJBRGS','open','_configService','symbol','166412bvTsSx','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','function','version','354RqyFKy'];_0x222d=function(){return _0x47b091;};return _0x222d();}export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x5cda16=_0x20c8;(function(_0x2bbdb5,_0x55cc11){const _0x2d5316=_0x20c8,_0x313545=_0x2bbdb5();while(!![]){try{const _0x3fd490=-parseInt(_0x2d5316(0x189))/0x1*(-parseInt(_0x2d5316(0x1af))/0x2)+-parseInt(_0x2d5316(0x1ae))/0x3*(parseInt(_0x2d5316(0x1a3))/0x4)+parseInt(_0x2d5316(0x1b3))/0x5*(-parseInt(_0x2d5316(0x18b))/0x6)+-parseInt(_0x2d5316(0x1a9))/0x7+-parseInt(_0x2d5316(0x1b4))/0x8+parseInt(_0x2d5316(0x18e))/0x9+parseInt(_0x2d5316(0x1ac))/0xa;if(_0x3fd490===_0x55cc11)break;else _0x313545['push'](_0x313545['shift']());}catch(_0x58f603){_0x313545['push'](_0x313545['shift']());}}}(_0x307f,0xbd590));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e26a3,CollaborationSocketService as _0x34cc33,UniverCollaborationClientPlugin as _0x179376}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x2f70f7,Disposable as _0x274d29,DisposableCollection as _0x4f6dd7,IConfigService as _0x16d363,ILogService as _0x5c3772,Inject as _0x499c14,Injector as _0x207556,Plugin as _0x51ac31,merge as _0x40abab,registerDependencies as _0x1a53a2,toDisposable as _0x274a58}from'@univerjs/core';import{HTTPService as _0x988b6c,ISocketService as _0x5d3214}from'@univerjs/network';import{Observable as _0x706c8a,share as _0x96d6e5}from'rxjs';import{WebSocket as _0x566053}from'ws';function _0x307f(){const _0x50ab35=['defineProperty','createSocket','onStarting','customHeaders','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2580592KAyVic','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','12761690GExUjd','packageName','3JXqYjx','2cgcpYX','getConfig','next','_httpService','65hnUslw','10049136jlmHOh','pluginName','string','_doCreateSocket','call','addEventListener','1067908xGhExS','error','267114ietTgI','function','close','13291911AUcuHb','_config','object','default','symbol','decorate','_registerDependencies','_injector','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client-node','prototype','registerHTTPInterceptor','toPrimitive','_configService','length','send','removeEventListener','1.0.0-alpha.7','headers','constructor','pipe','3367372ctaidv'];_0x307f=function(){return _0x50ab35;};return _0x307f();}import{ISnapshotServerService as _0x1e8a53}from'@univerjs-pro/collaboration';var b=_0x5cda16(0x197),x=_0x5cda16(0x19f);const S={};function _0x20c8(_0x223b98,_0x2f6231){_0x223b98=_0x223b98-0x188;const _0x307f81=_0x307f();let _0x20c8e3=_0x307f81[_0x223b98];return _0x20c8e3;}function C(_0x4733b5,_0x553cb8){return function(_0x54741e,_0x4c92dd){_0x553cb8(_0x54741e,_0x4c92dd,_0x4733b5);};}function w(_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5){const _0x488a07=_0x5cda16;var _0xb11651=arguments[_0x488a07(0x19c)],_0xfc6dae=_0xb11651<0x3?_0x5f6a43:_0x4a96a5===null?_0x4a96a5=Object[_0x488a07(0x196)](_0x5f6a43,_0x516acc):_0x4a96a5,_0x570709;if(typeof Reflect==_0x488a07(0x190)&&typeof Reflect[_0x488a07(0x193)]==_0x488a07(0x18c))_0xfc6dae=Reflect[_0x488a07(0x193)](_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5);else{for(var _0x39cd85=_0x483c9b[_0x488a07(0x19c)]-0x1;_0x39cd85>=0x0;_0x39cd85--)(_0x570709=_0x483c9b[_0x39cd85])&&(_0xfc6dae=(_0xb11651<0x3?_0x570709(_0xfc6dae):_0xb11651>0x3?_0x570709(_0x5f6a43,_0x516acc,_0xfc6dae):_0x570709(_0x5f6a43,_0x516acc))||_0xfc6dae);}return _0xb11651>0x3&&_0xfc6dae&&Object[_0x488a07(0x1a4)](_0x5f6a43,_0x516acc,_0xfc6dae),_0xfc6dae;}let T=class extends _0x274d29{constructor(_0x5bb3b2){const _0x4db1ab=_0x5cda16;super(),this[_0x4db1ab(0x19b)]=_0x5bb3b2;}['createSocket'](_0x247160){const _0x3e6da3=_0x5cda16;var _0x9b4f02;let _0x53b27b=((_0x9b4f02=this['_configService'][_0x3e6da3(0x1b0)](_0x1e26a3))==null?void 0x0:_0x9b4f02[_0x3e6da3(0x1a7)])||{};try{let _0x2516d5=new _0x566053(_0x247160,{'headers':{..._0x53b27b}}),_0x194bdc=new _0x4f6dd7();return{'URL':_0x247160,'close':(_0x3e6ef2,_0x3e4cca)=>{_0x2516d5['close'](_0x3e6ef2,_0x3e4cca),_0x194bdc['dispose']();},'send':_0x33bb57=>{const _0xcf954b=_0x3e6da3;_0x2516d5[_0xcf954b(0x19d)](_0x33bb57);},'open$':new _0x706c8a(_0x4c8d04=>{const _0x1f88a5=_0x3e6da3;let _0x4056e4=_0x1028a6=>_0x4c8d04[_0x1f88a5(0x1b1)](_0x1028a6);_0x2516d5[_0x1f88a5(0x188)]('open',_0x4056e4),_0x194bdc[_0x1f88a5(0x1ab)](_0x274a58(()=>_0x2516d5[_0x1f88a5(0x19e)]('open',_0x4056e4)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'close$':new _0x706c8a(_0x3e8f83=>{const _0x4b0393=_0x3e6da3;let _0x4bbd2a=_0x1a9744=>_0x3e8f83['next'](_0x1a9744);_0x2516d5[_0x4b0393(0x188)](_0x4b0393(0x18d),_0x4bbd2a),_0x194bdc['add'](_0x274a58(()=>_0x2516d5[_0x4b0393(0x19e)](_0x4b0393(0x18d),_0x4bbd2a)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'error$':new _0x706c8a(_0x147046=>{const _0x473d15=_0x3e6da3;let _0x26bd70=_0x505b77=>_0x147046[_0x473d15(0x1b1)](_0x505b77);_0x2516d5[_0x473d15(0x188)](_0x473d15(0x18a),_0x26bd70),_0x194bdc[_0x473d15(0x1ab)](_0x274a58(()=>_0x2516d5[_0x473d15(0x19e)](_0x473d15(0x18a),_0x26bd70)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'message$':new _0x706c8a(_0x1f1bd6=>{const _0x4d9413=_0x3e6da3;let _0x5b9e0d=_0x1379e2=>_0x1f1bd6[_0x4d9413(0x1b1)](_0x1379e2);_0x2516d5['addEventListener']('message',_0x5b9e0d),_0x194bdc['add'](_0x274a58(()=>_0x2516d5['removeEventListener']('message',_0x5b9e0d)));})['pipe'](_0x96d6e5())};}catch(_0x4c1fe9){return console['error'](_0x4c1fe9),null;}}};T=w([C(0x0,_0x16d363)],T);function E(_0x6fb48d){'@babel/helpers - typeof';return E=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x80ce80){return typeof _0x80ce80;}:function(_0x4db599){const _0xf0c7e7=_0x20c8;return _0x4db599&&typeof Symbol==_0xf0c7e7(0x18c)&&_0x4db599[_0xf0c7e7(0x1a1)]===Symbol&&_0x4db599!==Symbol[_0xf0c7e7(0x198)]?_0xf0c7e7(0x192):typeof _0x4db599;},E(_0x6fb48d);}function D(_0x30b10d,_0x9ac783){const _0x8a51b0=_0x5cda16;if(E(_0x30b10d)!='object'||!_0x30b10d)return _0x30b10d;var _0xcc83b1=_0x30b10d[Symbol[_0x8a51b0(0x19a)]];if(_0xcc83b1!==void 0x0){var _0x4a08fd=_0xcc83b1[_0x8a51b0(0x1b8)](_0x30b10d,_0x9ac783||_0x8a51b0(0x191));if(E(_0x4a08fd)!=_0x8a51b0(0x190))return _0x4a08fd;throw TypeError(_0x8a51b0(0x1a8));}return(_0x9ac783===_0x8a51b0(0x1b6)?String:Number)(_0x30b10d);}function O(_0x143c5d){const _0x2a367f=_0x5cda16;var _0x3cec51=D(_0x143c5d,_0x2a367f(0x1b6));return E(_0x3cec51)=='symbol'?_0x3cec51:_0x3cec51+'';}function k(_0x3f8e54,_0x120ad0,_0x1d5a06){return(_0x120ad0=O(_0x120ad0))in _0x3f8e54?Object['defineProperty'](_0x3f8e54,_0x120ad0,{'value':_0x1d5a06,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f8e54[_0x120ad0]=_0x1d5a06,_0x3f8e54;}let A=class extends _0x51ac31{constructor(_0x2430c9=S,_0x145b45,_0x20fb2f){const _0x15638c=_0x5cda16;super(),this['_config']=_0x2430c9,this['_configService']=_0x145b45,this[_0x15638c(0x195)]=_0x20fb2f;let {..._0x394c74}=_0x40abab({},S,this[_0x15638c(0x18f)]);this['_configService']['setConfig']('collaboration-client-node.config',_0x394c74);}[_0x5cda16(0x1a6)](){this['_registerDependencies']();}[_0x5cda16(0x194)](){const _0x71e4c0=_0x5cda16;_0x1a53a2(this[_0x71e4c0(0x195)],[[_0x5d3214,{'useClass':T}]]);}};k(A,_0x5cda16(0x1b5),_0x5cda16(0x1aa)),k(A,_0x5cda16(0x1ad),b),k(A,'version',x),A=w([_0x2f70f7(_0x179376),C(0x1,_0x16d363),C(0x2,_0x499c14(_0x207556))],A);let j=class extends _0x34cc33{constructor(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b){const _0x4e1a4f=_0x5cda16;super(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b);let _0x126b21=this[_0x4e1a4f(0x19b)]['getConfig'](_0x1e26a3);this[_0x4e1a4f(0x1b2)][_0x4e1a4f(0x199)]({'interceptor':(_0xeb0a3,_0x2cdec0)=>{const _0x15eceb=_0x4e1a4f;let _0x5a4da4=_0xeb0a3[_0x15eceb(0x1a0)];if(_0x126b21!=null&&_0x126b21[_0x15eceb(0x1a7)]){for(let _0x5ede87 in _0x126b21[_0x15eceb(0x1a7)])_0x5a4da4['set'](_0x5ede87,_0x126b21[_0x15eceb(0x1a7)][_0x5ede87]);}return _0x2cdec0(_0xeb0a3);}});}async[_0x5cda16(0x1a5)](_0x1781dd){const _0x519268=_0x5cda16;return this[_0x519268(0x1b7)](_0x1781dd);}};j=w([C(0x0,_0x499c14(_0x207556)),C(0x1,_0x499c14(_0x988b6c)),C(0x2,_0x16d363),C(0x3,_0x5c3772),C(0x4,_0x1e8a53)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x18a193=_0x3a31;(function(_0x54c57a,_0x48f3a0){const _0x21d533=_0x3a31,_0x3fb73c=_0x54c57a();while(!![]){try{const _0x18ed2c=parseInt(_0x21d533(0x17c))/0x1*(-parseInt(_0x21d533(0x196))/0x2)+parseInt(_0x21d533(0x18d))/0x3*(parseInt(_0x21d533(0x191))/0x4)+-parseInt(_0x21d533(0x178))/0x5+parseInt(_0x21d533(0x17f))/0x6+-parseInt(_0x21d533(0x198))/0x7+-parseInt(_0x21d533(0x17d))/0x8*(-parseInt(_0x21d533(0x1a0))/0x9)+-parseInt(_0x21d533(0x182))/0xa;if(_0x18ed2c===_0x48f3a0)break;else _0x3fb73c['push'](_0x3fb73c['shift']());}catch(_0x470b80){_0x3fb73c['push'](_0x3fb73c['shift']());}}}(_0x222d,0xd3dbe));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x11dc4c,CollaborationSocketService as _0x168a08,UniverCollaborationClientPlugin as _0x34e41a}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x1c9592,Disposable as _0x4d6cd1,DisposableCollection as _0x29f7f8,IConfigService as _0x1099f0,ILogService as _0x5ab0a2,Inject as _0x3252d4,Injector as _0x456667,Plugin as _0x56da4f,merge as _0x2d8d9e,registerDependencies as _0x55ac2b,toDisposable as _0x30908e}from'@univerjs/core';import{HTTPService as _0x289f7e,ISocketService as _0x116327}from'@univerjs/network';import{Observable as _0x148b11,share as _0x16a162}from'rxjs';import{WebSocket as _0xb5e5ee}from'ws';import{ISnapshotServerService as _0x59507c}from'@univerjs-pro/collaboration';var b=_0x18a193(0x199),x='1.0.0-alpha.6';const S={};function C(_0x202b89,_0x26caf3){return function(_0xeef547,_0x1cb077){_0x26caf3(_0xeef547,_0x1cb077,_0x202b89);};}function w(_0xaee47,_0x1c1e54,_0xbd16b9,_0x2bd1a8){const _0x6bf55d=_0x18a193;var _0xaa5def=arguments[_0x6bf55d(0x18b)],_0x5774c9=_0xaa5def<0x3?_0x1c1e54:_0x2bd1a8===null?_0x2bd1a8=Object[_0x6bf55d(0x17a)](_0x1c1e54,_0xbd16b9):_0x2bd1a8,_0x402526;if(typeof Reflect=='object'&&typeof Reflect[_0x6bf55d(0x18a)]==_0x6bf55d(0x194))_0x5774c9=Reflect[_0x6bf55d(0x18a)](_0xaee47,_0x1c1e54,_0xbd16b9,_0x2bd1a8);else{for(var _0x1b88d7=_0xaee47[_0x6bf55d(0x18b)]-0x1;_0x1b88d7>=0x0;_0x1b88d7--)(_0x402526=_0xaee47[_0x1b88d7])&&(_0x5774c9=(_0xaa5def<0x3?_0x402526(_0x5774c9):_0xaa5def>0x3?_0x402526(_0x1c1e54,_0xbd16b9,_0x5774c9):_0x402526(_0x1c1e54,_0xbd16b9))||_0x5774c9);}return _0xaa5def>0x3&&_0x5774c9&&Object['defineProperty'](_0x1c1e54,_0xbd16b9,_0x5774c9),_0x5774c9;}let T=class extends _0x4d6cd1{constructor(_0x57b753){const _0x25cf65=_0x18a193;super(),this[_0x25cf65(0x18f)]=_0x57b753;}[_0x18a193(0x184)](_0x331d18){const _0xe71c98=_0x18a193;var _0x3072df;let _0x1c7d1b=((_0x3072df=this['_configService'][_0xe71c98(0x1a4)](_0x11dc4c))==null?void 0x0:_0x3072df[_0xe71c98(0x19a)])||{};try{let _0x180ff7=new _0xb5e5ee(_0x331d18,{'headers':{..._0x1c7d1b}}),_0x1f20d0=new _0x29f7f8();return{'URL':_0x331d18,'close':(_0x2d3120,_0x23db76)=>{const _0x2cd10c=_0xe71c98;_0x180ff7[_0x2cd10c(0x179)](_0x2d3120,_0x23db76),_0x1f20d0[_0x2cd10c(0x189)]();},'send':_0x3d35f2=>{const _0x1c24df=_0xe71c98;_0x180ff7[_0x1c24df(0x17e)](_0x3d35f2);},'open$':new _0x148b11(_0xcb3a12=>{const _0x755b2d=_0xe71c98;let _0x560fba=_0x11c3d=>_0xcb3a12[_0x755b2d(0x185)](_0x11c3d);_0x180ff7[_0x755b2d(0x18c)](_0x755b2d(0x18e),_0x560fba),_0x1f20d0[_0x755b2d(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener']('open',_0x560fba)));})['pipe'](_0x16a162()),'close$':new _0x148b11(_0x41c66d=>{const _0x492426=_0xe71c98;let _0x165797=_0x397d38=>_0x41c66d[_0x492426(0x185)](_0x397d38);_0x180ff7[_0x492426(0x18c)](_0x492426(0x179),_0x165797),_0x1f20d0[_0x492426(0x1a8)](_0x30908e(()=>_0x180ff7[_0x492426(0x180)](_0x492426(0x179),_0x165797)));})[_0xe71c98(0x19b)](_0x16a162()),'error$':new _0x148b11(_0x4c2ab2=>{const _0x3f3531=_0xe71c98;let _0x11df82=_0x122159=>_0x4c2ab2[_0x3f3531(0x185)](_0x122159);_0x180ff7[_0x3f3531(0x18c)](_0x3f3531(0x183),_0x11df82),_0x1f20d0[_0x3f3531(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener'](_0x3f3531(0x183),_0x11df82)));})[_0xe71c98(0x19b)](_0x16a162()),'message$':new _0x148b11(_0x52a76d=>{const _0x33c798=_0xe71c98;let _0x1041d7=_0x28b87a=>_0x52a76d['next'](_0x28b87a);_0x180ff7[_0x33c798(0x18c)]('message',_0x1041d7),_0x1f20d0[_0x33c798(0x1a8)](_0x30908e(()=>_0x180ff7['removeEventListener'](_0x33c798(0x1a7),_0x1041d7)));})['pipe'](_0x16a162())};}catch(_0x7507d8){return console['error'](_0x7507d8),null;}}};T=w([C(0x0,_0x1099f0)],T);function E(_0x576e85){'@babel/helpers - typeof';const _0x26ff59=_0x18a193;return E=typeof Symbol==_0x26ff59(0x194)&&typeof Symbol[_0x26ff59(0x186)]==_0x26ff59(0x190)?function(_0x1358ef){return typeof _0x1358ef;}:function(_0x677cb8){const _0x5d1007=_0x26ff59;return _0x677cb8&&typeof Symbol==_0x5d1007(0x194)&&_0x677cb8['constructor']===Symbol&&_0x677cb8!==Symbol[_0x5d1007(0x19c)]?_0x5d1007(0x190):typeof _0x677cb8;},E(_0x576e85);}function D(_0x2c1dd6,_0x58d409){const _0x34c0ab=_0x18a193;if(E(_0x2c1dd6)!=_0x34c0ab(0x197)||!_0x2c1dd6)return _0x2c1dd6;var _0x2324b6=_0x2c1dd6[Symbol['toPrimitive']];if(_0x2324b6!==void 0x0){var _0x233f9d=_0x2324b6['call'](_0x2c1dd6,_0x58d409||_0x34c0ab(0x19e));if(E(_0x233f9d)!=_0x34c0ab(0x197))return _0x233f9d;throw TypeError(_0x34c0ab(0x192));}return(_0x58d409===_0x34c0ab(0x1a1)?String:Number)(_0x2c1dd6);}function O(_0xfc300e){const _0x3e14ea=_0x18a193;var _0x116765=D(_0xfc300e,'string');return E(_0x116765)==_0x3e14ea(0x190)?_0x116765:_0x116765+'';}function _0x3a31(_0x20636f,_0xac5937){_0x20636f=_0x20636f-0x178;const _0x222d49=_0x222d();let _0x3a3126=_0x222d49[_0x20636f];return _0x3a3126;}function k(_0x34ed5c,_0x5e33a6,_0x532658){return(_0x5e33a6=O(_0x5e33a6))in _0x34ed5c?Object['defineProperty'](_0x34ed5c,_0x5e33a6,{'value':_0x532658,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34ed5c[_0x5e33a6]=_0x532658,_0x34ed5c;}let A=class extends _0x56da4f{constructor(_0x565540=S,_0x2d3795,_0x5233dd){const _0x591cf2=_0x18a193;super(),this['_config']=_0x565540,this[_0x591cf2(0x18f)]=_0x2d3795,this[_0x591cf2(0x187)]=_0x5233dd;let {..._0x5bba24}=_0x2d8d9e({},S,this[_0x591cf2(0x1a2)]);this[_0x591cf2(0x18f)][_0x591cf2(0x181)](_0x591cf2(0x188),_0x5bba24);}['onStarting'](){this['_registerDependencies']();}[_0x18a193(0x1a6)](){_0x55ac2b(this['_injector'],[[_0x116327,{'useClass':T}]]);}};k(A,_0x18a193(0x19f),_0x18a193(0x193)),k(A,_0x18a193(0x1a3),b),k(A,_0x18a193(0x195),x),A=w([_0x1c9592(_0x34e41a),C(0x1,_0x1099f0),C(0x2,_0x3252d4(_0x456667))],A);let j=class extends _0x168a08{constructor(_0x5ac6f2,_0x56af58,_0x7c5f06,_0x4ef99e,_0x2807ed){const _0x4a6378=_0x18a193;super(_0x5ac6f2,_0x56af58,_0x7c5f06,_0x4ef99e,_0x2807ed);let _0x1de82e=this[_0x4a6378(0x18f)][_0x4a6378(0x1a4)](_0x11dc4c);this[_0x4a6378(0x1a5)][_0x4a6378(0x17b)]({'interceptor':(_0x1d6d45,_0x2aba96)=>{const _0x879b24=_0x4a6378;let _0x24b41d=_0x1d6d45[_0x879b24(0x1a9)];if(_0x1de82e!=null&&_0x1de82e['customHeaders']){for(let _0x39daec in _0x1de82e[_0x879b24(0x19a)])_0x24b41d['set'](_0x39daec,_0x1de82e[_0x879b24(0x19a)][_0x39daec]);}return _0x2aba96(_0x1d6d45);}});}async[_0x18a193(0x184)](_0x1751f0){const _0x44d645=_0x18a193;return this[_0x44d645(0x19d)](_0x1751f0);}};j=w([C(0x0,_0x3252d4(_0x456667)),C(0x1,_0x3252d4(_0x289f7e)),C(0x2,_0x1099f0),C(0x3,_0x5ab0a2),C(0x4,_0x59507c)],j);function _0x222d(){const _0x47b091=['object','6887867ioifRz','@univerjs-pro/collaboration-client-node','customHeaders','pipe','prototype','_doCreateSocket','default','pluginName','14038155hqpexv','string','_config','packageName','getConfig','_httpService','_registerDependencies','message','add','headers','5371885iJMETG','close','getOwnPropertyDescriptor','registerHTTPInterceptor','1799UAyctd','8fvUMnn','send','6367194Jiraie','removeEventListener','setConfig','2917050YtGYcu','error','createSocket','next','iterator','_injector','collaboration-client-node.config','dispose','decorate','length','addEventListener','66uJBRGS','open','_configService','symbol','166412bvTsSx','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','function','version','354RqyFKy'];_0x222d=function(){return _0x47b091;};return _0x222d();}export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x5cda16=_0x20c8;(function(_0x2bbdb5,_0x55cc11){const _0x2d5316=_0x20c8,_0x313545=_0x2bbdb5();while(!![]){try{const _0x3fd490=-parseInt(_0x2d5316(0x189))/0x1*(-parseInt(_0x2d5316(0x1af))/0x2)+-parseInt(_0x2d5316(0x1ae))/0x3*(parseInt(_0x2d5316(0x1a3))/0x4)+parseInt(_0x2d5316(0x1b3))/0x5*(-parseInt(_0x2d5316(0x18b))/0x6)+-parseInt(_0x2d5316(0x1a9))/0x7+-parseInt(_0x2d5316(0x1b4))/0x8+parseInt(_0x2d5316(0x18e))/0x9+parseInt(_0x2d5316(0x1ac))/0xa;if(_0x3fd490===_0x55cc11)break;else _0x313545['push'](_0x313545['shift']());}catch(_0x58f603){_0x313545['push'](_0x313545['shift']());}}}(_0x307f,0xbd590));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e26a3,CollaborationSocketService as _0x34cc33,UniverCollaborationClientPlugin as _0x179376}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x2f70f7,Disposable as _0x274d29,DisposableCollection as _0x4f6dd7,IConfigService as _0x16d363,ILogService as _0x5c3772,Inject as _0x499c14,Injector as _0x207556,Plugin as _0x51ac31,merge as _0x40abab,registerDependencies as _0x1a53a2,toDisposable as _0x274a58}from'@univerjs/core';import{HTTPService as _0x988b6c,ISocketService as _0x5d3214}from'@univerjs/network';import{Observable as _0x706c8a,share as _0x96d6e5}from'rxjs';import{WebSocket as _0x566053}from'ws';function _0x307f(){const _0x50ab35=['defineProperty','createSocket','onStarting','customHeaders','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2580592KAyVic','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','12761690GExUjd','packageName','3JXqYjx','2cgcpYX','getConfig','next','_httpService','65hnUslw','10049136jlmHOh','pluginName','string','_doCreateSocket','call','addEventListener','1067908xGhExS','error','267114ietTgI','function','close','13291911AUcuHb','_config','object','default','symbol','decorate','_registerDependencies','_injector','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client-node','prototype','registerHTTPInterceptor','toPrimitive','_configService','length','send','removeEventListener','1.0.0-alpha.7','headers','constructor','pipe','3367372ctaidv'];_0x307f=function(){return _0x50ab35;};return _0x307f();}import{ISnapshotServerService as _0x1e8a53}from'@univerjs-pro/collaboration';var b=_0x5cda16(0x197),x=_0x5cda16(0x19f);const S={};function _0x20c8(_0x223b98,_0x2f6231){_0x223b98=_0x223b98-0x188;const _0x307f81=_0x307f();let _0x20c8e3=_0x307f81[_0x223b98];return _0x20c8e3;}function C(_0x4733b5,_0x553cb8){return function(_0x54741e,_0x4c92dd){_0x553cb8(_0x54741e,_0x4c92dd,_0x4733b5);};}function w(_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5){const _0x488a07=_0x5cda16;var _0xb11651=arguments[_0x488a07(0x19c)],_0xfc6dae=_0xb11651<0x3?_0x5f6a43:_0x4a96a5===null?_0x4a96a5=Object[_0x488a07(0x196)](_0x5f6a43,_0x516acc):_0x4a96a5,_0x570709;if(typeof Reflect==_0x488a07(0x190)&&typeof Reflect[_0x488a07(0x193)]==_0x488a07(0x18c))_0xfc6dae=Reflect[_0x488a07(0x193)](_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5);else{for(var _0x39cd85=_0x483c9b[_0x488a07(0x19c)]-0x1;_0x39cd85>=0x0;_0x39cd85--)(_0x570709=_0x483c9b[_0x39cd85])&&(_0xfc6dae=(_0xb11651<0x3?_0x570709(_0xfc6dae):_0xb11651>0x3?_0x570709(_0x5f6a43,_0x516acc,_0xfc6dae):_0x570709(_0x5f6a43,_0x516acc))||_0xfc6dae);}return _0xb11651>0x3&&_0xfc6dae&&Object[_0x488a07(0x1a4)](_0x5f6a43,_0x516acc,_0xfc6dae),_0xfc6dae;}let T=class extends _0x274d29{constructor(_0x5bb3b2){const _0x4db1ab=_0x5cda16;super(),this[_0x4db1ab(0x19b)]=_0x5bb3b2;}['createSocket'](_0x247160){const _0x3e6da3=_0x5cda16;var _0x9b4f02;let _0x53b27b=((_0x9b4f02=this['_configService'][_0x3e6da3(0x1b0)](_0x1e26a3))==null?void 0x0:_0x9b4f02[_0x3e6da3(0x1a7)])||{};try{let _0x2516d5=new _0x566053(_0x247160,{'headers':{..._0x53b27b}}),_0x194bdc=new _0x4f6dd7();return{'URL':_0x247160,'close':(_0x3e6ef2,_0x3e4cca)=>{_0x2516d5['close'](_0x3e6ef2,_0x3e4cca),_0x194bdc['dispose']();},'send':_0x33bb57=>{const _0xcf954b=_0x3e6da3;_0x2516d5[_0xcf954b(0x19d)](_0x33bb57);},'open$':new _0x706c8a(_0x4c8d04=>{const _0x1f88a5=_0x3e6da3;let _0x4056e4=_0x1028a6=>_0x4c8d04[_0x1f88a5(0x1b1)](_0x1028a6);_0x2516d5[_0x1f88a5(0x188)]('open',_0x4056e4),_0x194bdc[_0x1f88a5(0x1ab)](_0x274a58(()=>_0x2516d5[_0x1f88a5(0x19e)]('open',_0x4056e4)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'close$':new _0x706c8a(_0x3e8f83=>{const _0x4b0393=_0x3e6da3;let _0x4bbd2a=_0x1a9744=>_0x3e8f83['next'](_0x1a9744);_0x2516d5[_0x4b0393(0x188)](_0x4b0393(0x18d),_0x4bbd2a),_0x194bdc['add'](_0x274a58(()=>_0x2516d5[_0x4b0393(0x19e)](_0x4b0393(0x18d),_0x4bbd2a)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'error$':new _0x706c8a(_0x147046=>{const _0x473d15=_0x3e6da3;let _0x26bd70=_0x505b77=>_0x147046[_0x473d15(0x1b1)](_0x505b77);_0x2516d5[_0x473d15(0x188)](_0x473d15(0x18a),_0x26bd70),_0x194bdc[_0x473d15(0x1ab)](_0x274a58(()=>_0x2516d5[_0x473d15(0x19e)](_0x473d15(0x18a),_0x26bd70)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'message$':new _0x706c8a(_0x1f1bd6=>{const _0x4d9413=_0x3e6da3;let _0x5b9e0d=_0x1379e2=>_0x1f1bd6[_0x4d9413(0x1b1)](_0x1379e2);_0x2516d5['addEventListener']('message',_0x5b9e0d),_0x194bdc['add'](_0x274a58(()=>_0x2516d5['removeEventListener']('message',_0x5b9e0d)));})['pipe'](_0x96d6e5())};}catch(_0x4c1fe9){return console['error'](_0x4c1fe9),null;}}};T=w([C(0x0,_0x16d363)],T);function E(_0x6fb48d){'@babel/helpers - typeof';return E=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x80ce80){return typeof _0x80ce80;}:function(_0x4db599){const _0xf0c7e7=_0x20c8;return _0x4db599&&typeof Symbol==_0xf0c7e7(0x18c)&&_0x4db599[_0xf0c7e7(0x1a1)]===Symbol&&_0x4db599!==Symbol[_0xf0c7e7(0x198)]?_0xf0c7e7(0x192):typeof _0x4db599;},E(_0x6fb48d);}function D(_0x30b10d,_0x9ac783){const _0x8a51b0=_0x5cda16;if(E(_0x30b10d)!='object'||!_0x30b10d)return _0x30b10d;var _0xcc83b1=_0x30b10d[Symbol[_0x8a51b0(0x19a)]];if(_0xcc83b1!==void 0x0){var _0x4a08fd=_0xcc83b1[_0x8a51b0(0x1b8)](_0x30b10d,_0x9ac783||_0x8a51b0(0x191));if(E(_0x4a08fd)!=_0x8a51b0(0x190))return _0x4a08fd;throw TypeError(_0x8a51b0(0x1a8));}return(_0x9ac783===_0x8a51b0(0x1b6)?String:Number)(_0x30b10d);}function O(_0x143c5d){const _0x2a367f=_0x5cda16;var _0x3cec51=D(_0x143c5d,_0x2a367f(0x1b6));return E(_0x3cec51)=='symbol'?_0x3cec51:_0x3cec51+'';}function k(_0x3f8e54,_0x120ad0,_0x1d5a06){return(_0x120ad0=O(_0x120ad0))in _0x3f8e54?Object['defineProperty'](_0x3f8e54,_0x120ad0,{'value':_0x1d5a06,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f8e54[_0x120ad0]=_0x1d5a06,_0x3f8e54;}let A=class extends _0x51ac31{constructor(_0x2430c9=S,_0x145b45,_0x20fb2f){const _0x15638c=_0x5cda16;super(),this['_config']=_0x2430c9,this['_configService']=_0x145b45,this[_0x15638c(0x195)]=_0x20fb2f;let {..._0x394c74}=_0x40abab({},S,this[_0x15638c(0x18f)]);this['_configService']['setConfig']('collaboration-client-node.config',_0x394c74);}[_0x5cda16(0x1a6)](){this['_registerDependencies']();}[_0x5cda16(0x194)](){const _0x71e4c0=_0x5cda16;_0x1a53a2(this[_0x71e4c0(0x195)],[[_0x5d3214,{'useClass':T}]]);}};k(A,_0x5cda16(0x1b5),_0x5cda16(0x1aa)),k(A,_0x5cda16(0x1ad),b),k(A,'version',x),A=w([_0x2f70f7(_0x179376),C(0x1,_0x16d363),C(0x2,_0x499c14(_0x207556))],A);let j=class extends _0x34cc33{constructor(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b){const _0x4e1a4f=_0x5cda16;super(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b);let _0x126b21=this[_0x4e1a4f(0x19b)]['getConfig'](_0x1e26a3);this[_0x4e1a4f(0x1b2)][_0x4e1a4f(0x199)]({'interceptor':(_0xeb0a3,_0x2cdec0)=>{const _0x15eceb=_0x4e1a4f;let _0x5a4da4=_0xeb0a3[_0x15eceb(0x1a0)];if(_0x126b21!=null&&_0x126b21[_0x15eceb(0x1a7)]){for(let _0x5ede87 in _0x126b21[_0x15eceb(0x1a7)])_0x5a4da4['set'](_0x5ede87,_0x126b21[_0x15eceb(0x1a7)][_0x5ede87]);}return _0x2cdec0(_0xeb0a3);}});}async[_0x5cda16(0x1a5)](_0x1781dd){const _0x519268=_0x5cda16;return this[_0x519268(0x1b7)](_0x1781dd);}};j=w([C(0x0,_0x499c14(_0x207556)),C(0x1,_0x499c14(_0x988b6c)),C(0x2,_0x16d363),C(0x3,_0x5c3772),C(0x4,_0x1e8a53)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x32ca89,_0x271e14){const _0x444fca=_0x459f,_0x2c1b3d=_0x32ca89();while(!![]){try{const _0x523b0a=-parseInt(_0x444fca(0x171))/0x1+parseInt(_0x444fca(0x18d))/0x2*(-parseInt(_0x444fca(0x1a2))/0x3)+-parseInt(_0x444fca(0x16a))/0x4+parseInt(_0x444fca(0x194))/0x5+-parseInt(_0x444fca(0x196))/0x6+-parseInt(_0x444fca(0x189))/0x7+-parseInt(_0x444fca(0x199))/0x8*(-parseInt(_0x444fca(0x185))/0x9);if(_0x523b0a===_0x271e14)break;else _0x2c1b3d['push'](_0x2c1b3d['shift']());}catch(_0x5049ff){_0x2c1b3d['push'](_0x2c1b3d['shift']());}}}(_0x4bfb,0x1bda1),function(_0x17bb52,_0x187879){const _0x30aa87=_0x459f;typeof exports==_0x30aa87(0x1aa)&&typeof module<'u'?_0x187879(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x30aa87(0x177)&&define[_0x30aa87(0x1ac)]?define(['exports',_0x30aa87(0x195),_0x30aa87(0x190),'@univerjs/network',_0x30aa87(0x17f),_0x30aa87(0x173)],_0x187879):(_0x17bb52=typeof globalThis<'u'?globalThis:_0x17bb52||self,_0x187879(_0x17bb52['UniverProCollaborationClientNode']={},_0x17bb52[_0x30aa87(0x163)],_0x17bb52[_0x30aa87(0x188)],_0x17bb52[_0x30aa87(0x184)],_0x17bb52[_0x30aa87(0x17f)],_0x17bb52[_0x30aa87(0x1a1)]));}(this,function(_0x2c4f20,_0x1d9abf,_0x1a4686,_0x4d2c0b,_0x275aef,_0x267b7c){const _0x1b76d2=_0x459f;Object[_0x1b76d2(0x19e)](_0x2c4f20,Symbol[_0x1b76d2(0x179)],{'value':_0x1b76d2(0x1a3)});var _0x2ecbee=(_0x1940bf,_0x1e6afc)=>()=>(_0x1e6afc||(_0x1940bf((_0x1e6afc={'exports':{}})[_0x1b76d2(0x17d)],_0x1e6afc),_0x1940bf=null),_0x1e6afc[_0x1b76d2(0x17d)]),_0x914d2b='@univerjs-pro/collaboration-client-node',_0x169a1b=_0x1b76d2(0x19c);let _0x214ff4={};var _0x4389bb=_0x2ecbee((_0x50768b,_0x5c0d99)=>{const _0x54cb2f=_0x1b76d2;_0x5c0d99[_0x54cb2f(0x17d)]=function(){const _0x104bcb=_0x54cb2f;throw Error(_0x104bcb(0x191));};})();function _0x2ffb05(_0xf82c49,_0x995366){return function(_0x219c8d,_0x11c046){_0x995366(_0x219c8d,_0x11c046,_0xf82c49);};}function _0x1bd92d(_0x1ffbc8,_0x5af49b,_0x576305,_0x29a3ae){const _0x5ce533=_0x1b76d2;var _0x280e16=arguments['length'],_0x3aa3e8=_0x280e16<0x3?_0x5af49b:_0x29a3ae===null?_0x29a3ae=Object[_0x5ce533(0x17c)](_0x5af49b,_0x576305):_0x29a3ae,_0x49c96a;if(typeof Reflect==_0x5ce533(0x1aa)&&typeof Reflect['decorate']==_0x5ce533(0x177))_0x3aa3e8=Reflect[_0x5ce533(0x172)](_0x1ffbc8,_0x5af49b,_0x576305,_0x29a3ae);else{for(var _0x2661bb=_0x1ffbc8['length']-0x1;_0x2661bb>=0x0;_0x2661bb--)(_0x49c96a=_0x1ffbc8[_0x2661bb])&&(_0x3aa3e8=(_0x280e16<0x3?_0x49c96a(_0x3aa3e8):_0x280e16>0x3?_0x49c96a(_0x5af49b,_0x576305,_0x3aa3e8):_0x49c96a(_0x5af49b,_0x576305))||_0x3aa3e8);}return _0x280e16>0x3&&_0x3aa3e8&&Object['defineProperty'](_0x5af49b,_0x576305,_0x3aa3e8),_0x3aa3e8;}let _0x2ca224=class extends _0x1a4686['Disposable']{constructor(_0x3d5068){super(),this['_configService']=_0x3d5068;}['createSocket'](_0x28853e){const _0x863591=_0x1b76d2;var _0x4aae9b;let _0x13a2fa=((_0x4aae9b=this['_configService'][_0x863591(0x182)](_0x1d9abf[_0x863591(0x19f)]))==null?void 0x0:_0x4aae9b[_0x863591(0x18a)])||{};try{let _0x43bd9a=new _0x4389bb['WebSocket'](_0x28853e,{'headers':{..._0x13a2fa}}),_0x551175=new _0x1a4686[(_0x863591(0x16f))]();return{'URL':_0x28853e,'close':(_0x1b810a,_0x28b00f)=>{const _0x2c6c1e=_0x863591;_0x43bd9a[_0x2c6c1e(0x1a0)](_0x1b810a,_0x28b00f),_0x551175[_0x2c6c1e(0x15e)]();},'send':_0x573107=>{const _0x1e98ec=_0x863591;_0x43bd9a[_0x1e98ec(0x160)](_0x573107);},'open$':new _0x275aef['Observable'](_0x367d68=>{const _0x45df5e=_0x863591;let _0x58d0e5=_0x4a716f=>_0x367d68[_0x45df5e(0x187)](_0x4a716f);_0x43bd9a[_0x45df5e(0x164)](_0x45df5e(0x18c),_0x58d0e5),_0x551175[_0x45df5e(0x16c)]((0x0,_0x1a4686[_0x45df5e(0x1a8)])(()=>_0x43bd9a[_0x45df5e(0x178)]('open',_0x58d0e5)));})['pipe']((0x0,_0x275aef[_0x863591(0x16e)])()),'close$':new _0x275aef[(_0x863591(0x18b))](_0x280934=>{const _0x5d33ef=_0x863591;let _0x5e144c=_0x171f7e=>_0x280934[_0x5d33ef(0x187)](_0x171f7e);_0x43bd9a[_0x5d33ef(0x164)](_0x5d33ef(0x1a0),_0x5e144c),_0x551175[_0x5d33ef(0x16c)]((0x0,_0x1a4686[_0x5d33ef(0x1a8)])(()=>_0x43bd9a['removeEventListener']('close',_0x5e144c)));})[_0x863591(0x197)]((0x0,_0x275aef['share'])()),'error$':new _0x275aef[(_0x863591(0x18b))](_0xf9bd36=>{const _0x1e2bdb=_0x863591;let _0x5e5554=_0x65af32=>_0xf9bd36['next'](_0x65af32);_0x43bd9a[_0x1e2bdb(0x164)](_0x1e2bdb(0x17e),_0x5e5554),_0x551175[_0x1e2bdb(0x16c)]((0x0,_0x1a4686['toDisposable'])(()=>_0x43bd9a['removeEventListener'](_0x1e2bdb(0x17e),_0x5e5554)));})[_0x863591(0x197)]((0x0,_0x275aef[_0x863591(0x16e)])()),'message$':new _0x275aef[(_0x863591(0x18b))](_0x32920b=>{const _0x131f47=_0x863591;let _0x3624f1=_0x290705=>_0x32920b[_0x131f47(0x187)](_0x290705);_0x43bd9a['addEventListener'](_0x131f47(0x186),_0x3624f1),_0x551175[_0x131f47(0x16c)]((0x0,_0x1a4686[_0x131f47(0x1a8)])(()=>_0x43bd9a[_0x131f47(0x178)](_0x131f47(0x186),_0x3624f1)));})[_0x863591(0x197)]((0x0,_0x275aef[_0x863591(0x16e)])())};}catch(_0x54d550){return console[_0x863591(0x17e)](_0x54d550),null;}}};_0x2ca224=_0x1bd92d([_0x2ffb05(0x0,_0x1a4686[_0x1b76d2(0x19d)])],_0x2ca224);function _0xd19f69(_0x43c103){'@babel/helpers - typeof';const _0x231165=_0x1b76d2;return _0xd19f69=typeof Symbol=='function'&&typeof Symbol[_0x231165(0x17a)]==_0x231165(0x176)?function(_0x4eeb0b){return typeof _0x4eeb0b;}:function(_0x2202c5){const _0x4fedbf=_0x231165;return _0x2202c5&&typeof Symbol==_0x4fedbf(0x177)&&_0x2202c5[_0x4fedbf(0x1a5)]===Symbol&&_0x2202c5!==Symbol[_0x4fedbf(0x1a9)]?_0x4fedbf(0x176):typeof _0x2202c5;},_0xd19f69(_0x43c103);}function _0x520de7(_0x186295,_0x5e1675){const _0x28b526=_0x1b76d2;if(_0xd19f69(_0x186295)!=_0x28b526(0x1aa)||!_0x186295)return _0x186295;var _0x41efcd=_0x186295[Symbol[_0x28b526(0x181)]];if(_0x41efcd!==void 0x0){var _0x33cb26=_0x41efcd['call'](_0x186295,_0x5e1675||_0x28b526(0x198));if(_0xd19f69(_0x33cb26)!='object')return _0x33cb26;throw TypeError(_0x28b526(0x19b));}return(_0x5e1675===_0x28b526(0x193)?String:Number)(_0x186295);}function _0x1aa885(_0x59d374){const _0x31396f=_0x1b76d2;var _0x49c3f5=_0x520de7(_0x59d374,_0x31396f(0x193));return _0xd19f69(_0x49c3f5)==_0x31396f(0x176)?_0x49c3f5:_0x49c3f5+'';}function _0x34cec7(_0x3a8fe9,_0x8bdb01,_0x1aad33){const _0x485587=_0x1b76d2;return(_0x8bdb01=_0x1aa885(_0x8bdb01))in _0x3a8fe9?Object[_0x485587(0x19e)](_0x3a8fe9,_0x8bdb01,{'value':_0x1aad33,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a8fe9[_0x8bdb01]=_0x1aad33,_0x3a8fe9;}let _0x5880ef=class extends _0x1a4686['Plugin']{constructor(_0x5675f3=_0x214ff4,_0x46bc05,_0x344681){const _0x45a9d9=_0x1b76d2;super(),this[_0x45a9d9(0x18f)]=_0x5675f3,this[_0x45a9d9(0x192)]=_0x46bc05,this[_0x45a9d9(0x16d)]=_0x344681;let {..._0x31bec9}=(0x0,_0x1a4686[_0x45a9d9(0x180)])({},_0x214ff4,this['_config']);this[_0x45a9d9(0x192)][_0x45a9d9(0x18e)](_0x45a9d9(0x16b),_0x31bec9);}[_0x1b76d2(0x183)](){const _0x274305=_0x1b76d2;this[_0x274305(0x166)]();}[_0x1b76d2(0x166)](){const _0x471126=_0x1b76d2;(0x0,_0x1a4686['registerDependencies'])(this['_injector'],[[_0x4d2c0b[_0x471126(0x1ad)],{'useClass':_0x2ca224}]]);}};_0x34cec7(_0x5880ef,_0x1b76d2(0x161),_0x1b76d2(0x1a7)),_0x34cec7(_0x5880ef,_0x1b76d2(0x1a4),_0x914d2b),_0x34cec7(_0x5880ef,'version',_0x169a1b),_0x5880ef=_0x1bd92d([(0x0,_0x1a4686[_0x1b76d2(0x17b)])(_0x1d9abf[_0x1b76d2(0x162)]),_0x2ffb05(0x1,_0x1a4686[_0x1b76d2(0x19d)]),_0x2ffb05(0x2,(0x0,_0x1a4686['Inject'])(_0x1a4686[_0x1b76d2(0x19a)]))],_0x5880ef);let _0x45efb1=class extends _0x1d9abf[_0x1b76d2(0x168)]{constructor(_0x8d9bee,_0x55127b,_0x49ab77,_0x1ab4da,_0x5e546f){const _0x535a4e=_0x1b76d2;super(_0x8d9bee,_0x55127b,_0x49ab77,_0x1ab4da,_0x5e546f);let _0x4ef3c6=this['_configService'][_0x535a4e(0x182)](_0x1d9abf[_0x535a4e(0x19f)]);this['_httpService'][_0x535a4e(0x165)]({'interceptor':(_0x42d87a,_0xd75ac5)=>{const _0x35b94d=_0x535a4e;let _0x44ff14=_0x42d87a[_0x35b94d(0x1ab)];if(_0x4ef3c6!=null&&_0x4ef3c6[_0x35b94d(0x18a)]){for(let _0x2eee27 in _0x4ef3c6[_0x35b94d(0x18a)])_0x44ff14[_0x35b94d(0x169)](_0x2eee27,_0x4ef3c6['customHeaders'][_0x2eee27]);}return _0xd75ac5(_0x42d87a);}});}async[_0x1b76d2(0x170)](_0x28c104){const _0x35ccc4=_0x1b76d2;return this[_0x35ccc4(0x1a6)](_0x28c104);}};_0x45efb1=_0x1bd92d([_0x2ffb05(0x0,(0x0,_0x1a4686['Inject'])(_0x1a4686[_0x1b76d2(0x19a)])),_0x2ffb05(0x1,(0x0,_0x1a4686['Inject'])(_0x4d2c0b['HTTPService'])),_0x2ffb05(0x2,_0x1a4686[_0x1b76d2(0x19d)]),_0x2ffb05(0x3,_0x1a4686[_0x1b76d2(0x175)]),_0x2ffb05(0x4,_0x267b7c[_0x1b76d2(0x174)])],_0x45efb1),Object[_0x1b76d2(0x19e)](_0x2c4f20,_0x1b76d2(0x15f),{'enumerable':!0x0,'get':function(){return _0x45efb1;}}),Object[_0x1b76d2(0x19e)](_0x2c4f20,_0x1b76d2(0x167),{'enumerable':!0x0,'get':function(){return _0x5880ef;}});}));function _0x459f(_0x3a8283,_0x2cf229){_0x3a8283=_0x3a8283-0x15e;const _0x4bfb7a=_0x4bfb();let _0x459fb3=_0x4bfb7a[_0x3a8283];return _0x459fb3;}function _0x4bfb(){const _0x2df6d9=['exports','error','rxjs','merge','toPrimitive','getConfig','onStarting','UniverNetwork','93348Ecnctx','message','next','UniverCore','1370502wJoBah','customHeaders','Observable','open','13418IgCUev','setConfig','_config','@univerjs/core','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','_configService','string','773345ypkEsG','@univerjs-pro/collaboration-client','1351074Ucmdxt','pipe','default','568oJIrpr','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1.0.0-alpha.6','IConfigService','defineProperty','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','close','UniverProCollaboration','39FmmzZt','Module','packageName','constructor','_doCreateSocket','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','toDisposable','prototype','object','headers','amd','ISocketService','dispose','NodeCollaborationSocketService','send','pluginName','UniverCollaborationClientPlugin','UniverProCollaborationClient','addEventListener','registerHTTPInterceptor','_registerDependencies','UniverCollaborationClientNodePlugin','CollaborationSocketService','set','871912PODJTT','collaboration-client-node.config','add','_injector','share','DisposableCollection','createSocket','50840etwteO','decorate','@univerjs-pro/collaboration','ISnapshotServerService','ILogService','symbol','function','removeEventListener','toStringTag','iterator','DependentOn','getOwnPropertyDescriptor'];_0x4bfb=function(){return _0x2df6d9;};return _0x4bfb();}
1
+ function _0x1de9(_0x4b141d,_0x4317f1){_0x4b141d=_0x4b141d-0x18b;const _0xb44255=_0xb442();let _0x1de97d=_0xb44255[_0x4b141d];return _0x1de97d;}function _0xb442(){const _0x3bf200=['4UgAbkE','send','2290320oXwEhZ','call','UniverNetwork','setConfig','CollaborationSocketService','headers','registerHTTPInterceptor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Inject','toStringTag','474574HqEqlC','length','close','_doCreateSocket','merge','version','@univerjs-pro/collaboration','createSocket','Plugin','customHeaders','@univerjs/core','prototype','constructor','WebSocket','_httpService','UniverProCollaboration','iterator','decorate','pipe','_config','Injector','default','54342WEuAKX','removeEventListener','share','getOwnPropertyDescriptor','287gQmVBK','add','open','ISocketService','ILogService','rxjs','NodeCollaborationSocketService','object','packageName','672531RdJHrF','UniverProCollaborationClient','4051704McinRF','pluginName','Observable','symbol','function','1.0.0-alpha.7','_configService','UniverCollaborationClientPlugin','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','collaboration-client-node.config','next','@univerjs-pro/collaboration-client','HTTPService','string','1762844KvAoVv','onStarting','getConfig','registerDependencies','@univerjs/network','exports','_injector','ISnapshotServerService','IConfigService','addEventListener','toDisposable','message','error','@univerjs-pro/collaboration-client-node','defineProperty','21961638FTWlIW'];_0xb442=function(){return _0x3bf200;};return _0xb442();}(function(_0x5f0980,_0xfb72f2){const _0x1131f0=_0x1de9,_0x39dd8a=_0x5f0980();while(!![]){try{const _0x383f4a=parseInt(_0x1131f0(0x1c6))/0x1+parseInt(_0x1131f0(0x1ba))/0x2*(parseInt(_0x1131f0(0x19a))/0x3)+parseInt(_0x1131f0(0x1aa))/0x4+parseInt(_0x1131f0(0x1bc))/0x5+parseInt(_0x1131f0(0x18d))/0x6*(parseInt(_0x1131f0(0x191))/0x7)+parseInt(_0x1131f0(0x19c))/0x8+-parseInt(_0x1131f0(0x1b9))/0x9;if(_0x383f4a===_0xfb72f2)break;else _0x39dd8a['push'](_0x39dd8a['shift']());}catch(_0x3a02e3){_0x39dd8a['push'](_0x39dd8a['shift']());}}}(_0xb442,0x3f4f9),function(_0x57eeaa,_0xf27bc){const _0x5a4556=_0x1de9;typeof exports==_0x5a4556(0x198)&&typeof module<'u'?_0xf27bc(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x5a4556(0x1a0)&&define['amd']?define([_0x5a4556(0x1af),_0x5a4556(0x1a7),_0x5a4556(0x1d0),_0x5a4556(0x1ae),'rxjs',_0x5a4556(0x1cc)],_0xf27bc):(_0x57eeaa=typeof globalThis<'u'?globalThis:_0x57eeaa||self,_0xf27bc(_0x57eeaa['UniverProCollaborationClientNode']={},_0x57eeaa[_0x5a4556(0x19b)],_0x57eeaa['UniverCore'],_0x57eeaa[_0x5a4556(0x1be)],_0x57eeaa[_0x5a4556(0x196)],_0x57eeaa[_0x5a4556(0x1d5)]));}(this,function(_0x2a28c3,_0x21977d,_0x29b1e9,_0x1fc00f,_0x562211,_0x66ca4){const _0xeab5f6=_0x1de9;Object[_0xeab5f6(0x1b8)](_0x2a28c3,Symbol[_0xeab5f6(0x1c5)],{'value':'Module'});var _0x1b90af=(_0x45b1e7,_0x2173e2)=>()=>(_0x2173e2||(_0x45b1e7((_0x2173e2={'exports':{}})[_0xeab5f6(0x1af)],_0x2173e2),_0x45b1e7=null),_0x2173e2[_0xeab5f6(0x1af)]),_0xb524a3=_0xeab5f6(0x1b7),_0x37c92d=_0xeab5f6(0x1a1);let _0x80eb7d={};var _0x2d9872=_0x1b90af((_0x9b8bfb,_0x26d908)=>{_0x26d908['exports']=function(){const _0x39d7ae=_0x1de9;throw Error(_0x39d7ae(0x1a4));};})();function _0x258b5b(_0x888ce5,_0xbd1500){return function(_0x278ba7,_0x296d58){_0xbd1500(_0x278ba7,_0x296d58,_0x888ce5);};}function _0x346b7d(_0x22e3d4,_0x2d173f,_0xfc2793,_0x2b4731){const _0x6a3755=_0xeab5f6;var _0x569980=arguments[_0x6a3755(0x1c7)],_0x2853e4=_0x569980<0x3?_0x2d173f:_0x2b4731===null?_0x2b4731=Object[_0x6a3755(0x190)](_0x2d173f,_0xfc2793):_0x2b4731,_0x598368;if(typeof Reflect==_0x6a3755(0x198)&&typeof Reflect[_0x6a3755(0x1d7)]==_0x6a3755(0x1a0))_0x2853e4=Reflect[_0x6a3755(0x1d7)](_0x22e3d4,_0x2d173f,_0xfc2793,_0x2b4731);else{for(var _0x528b9b=_0x22e3d4[_0x6a3755(0x1c7)]-0x1;_0x528b9b>=0x0;_0x528b9b--)(_0x598368=_0x22e3d4[_0x528b9b])&&(_0x2853e4=(_0x569980<0x3?_0x598368(_0x2853e4):_0x569980>0x3?_0x598368(_0x2d173f,_0xfc2793,_0x2853e4):_0x598368(_0x2d173f,_0xfc2793))||_0x2853e4);}return _0x569980>0x3&&_0x2853e4&&Object[_0x6a3755(0x1b8)](_0x2d173f,_0xfc2793,_0x2853e4),_0x2853e4;}let _0x3e13dd=class extends _0x29b1e9['Disposable']{constructor(_0x491fbb){const _0x2631af=_0xeab5f6;super(),this[_0x2631af(0x1a2)]=_0x491fbb;}[_0xeab5f6(0x1cd)](_0x4bc1ea){const _0x4aa48d=_0xeab5f6;var _0x43d7c7;let _0x50c874=((_0x43d7c7=this[_0x4aa48d(0x1a2)][_0x4aa48d(0x1ac)](_0x21977d[_0x4aa48d(0x1c3)]))==null?void 0x0:_0x43d7c7[_0x4aa48d(0x1cf)])||{};try{let _0x4aaf73=new _0x2d9872[(_0x4aa48d(0x1d3))](_0x4bc1ea,{'headers':{..._0x50c874}}),_0x5c1ac4=new _0x29b1e9['DisposableCollection']();return{'URL':_0x4bc1ea,'close':(_0x13cf24,_0xfb24a3)=>{const _0x1a6636=_0x4aa48d;_0x4aaf73[_0x1a6636(0x1c8)](_0x13cf24,_0xfb24a3),_0x5c1ac4['dispose']();},'send':_0x63ea00=>{const _0xf7df20=_0x4aa48d;_0x4aaf73[_0xf7df20(0x1bb)](_0x63ea00);},'open$':new _0x562211[(_0x4aa48d(0x19e))](_0x16455e=>{const _0x2e13dc=_0x4aa48d;let _0x6bc9e6=_0x4b58de=>_0x16455e[_0x2e13dc(0x1a6)](_0x4b58de);_0x4aaf73['addEventListener'](_0x2e13dc(0x193),_0x6bc9e6),_0x5c1ac4[_0x2e13dc(0x192)]((0x0,_0x29b1e9['toDisposable'])(()=>_0x4aaf73[_0x2e13dc(0x18e)](_0x2e13dc(0x193),_0x6bc9e6)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211['share'])()),'close$':new _0x562211[(_0x4aa48d(0x19e))](_0xdf10e3=>{const _0x4fd38a=_0x4aa48d;let _0x389dac=_0x42076f=>_0xdf10e3[_0x4fd38a(0x1a6)](_0x42076f);_0x4aaf73[_0x4fd38a(0x1b3)]('close',_0x389dac),_0x5c1ac4[_0x4fd38a(0x192)]((0x0,_0x29b1e9[_0x4fd38a(0x1b4)])(()=>_0x4aaf73[_0x4fd38a(0x18e)](_0x4fd38a(0x1c8),_0x389dac)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211['share'])()),'error$':new _0x562211['Observable'](_0x231c5f=>{const _0x213392=_0x4aa48d;let _0x2ab111=_0x536f15=>_0x231c5f[_0x213392(0x1a6)](_0x536f15);_0x4aaf73[_0x213392(0x1b3)](_0x213392(0x1b6),_0x2ab111),_0x5c1ac4[_0x213392(0x192)]((0x0,_0x29b1e9[_0x213392(0x1b4)])(()=>_0x4aaf73[_0x213392(0x18e)]('error',_0x2ab111)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211[_0x4aa48d(0x18f)])()),'message$':new _0x562211[(_0x4aa48d(0x19e))](_0x204fd0=>{const _0x30fd34=_0x4aa48d;let _0x578a99=_0x458a6a=>_0x204fd0[_0x30fd34(0x1a6)](_0x458a6a);_0x4aaf73['addEventListener'](_0x30fd34(0x1b5),_0x578a99),_0x5c1ac4[_0x30fd34(0x192)]((0x0,_0x29b1e9[_0x30fd34(0x1b4)])(()=>_0x4aaf73[_0x30fd34(0x18e)](_0x30fd34(0x1b5),_0x578a99)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211[_0x4aa48d(0x18f)])())};}catch(_0xb82aef){return console[_0x4aa48d(0x1b6)](_0xb82aef),null;}}};_0x3e13dd=_0x346b7d([_0x258b5b(0x0,_0x29b1e9[_0xeab5f6(0x1b2)])],_0x3e13dd);function _0x232c23(_0x5c531a){'@babel/helpers - typeof';const _0x3c14bb=_0xeab5f6;return _0x232c23=typeof Symbol==_0x3c14bb(0x1a0)&&typeof Symbol[_0x3c14bb(0x1d6)]==_0x3c14bb(0x19f)?function(_0x550a1b){return typeof _0x550a1b;}:function(_0x2fd3e1){const _0x37d253=_0x3c14bb;return _0x2fd3e1&&typeof Symbol==_0x37d253(0x1a0)&&_0x2fd3e1[_0x37d253(0x1d2)]===Symbol&&_0x2fd3e1!==Symbol[_0x37d253(0x1d1)]?_0x37d253(0x19f):typeof _0x2fd3e1;},_0x232c23(_0x5c531a);}function _0x2aec87(_0x50c2c0,_0x31749a){const _0x3dd9f8=_0xeab5f6;if(_0x232c23(_0x50c2c0)!=_0x3dd9f8(0x198)||!_0x50c2c0)return _0x50c2c0;var _0x141e96=_0x50c2c0[Symbol['toPrimitive']];if(_0x141e96!==void 0x0){var _0x3315f8=_0x141e96[_0x3dd9f8(0x1bd)](_0x50c2c0,_0x31749a||_0x3dd9f8(0x18c));if(_0x232c23(_0x3315f8)!=_0x3dd9f8(0x198))return _0x3315f8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x31749a==='string'?String:Number)(_0x50c2c0);}function _0x2b67f8(_0x1616ad){const _0x4081bc=_0xeab5f6;var _0x1807ec=_0x2aec87(_0x1616ad,_0x4081bc(0x1a9));return _0x232c23(_0x1807ec)==_0x4081bc(0x19f)?_0x1807ec:_0x1807ec+'';}function _0x5e6462(_0x51634e,_0x413ba5,_0x335d4a){const _0x496261=_0xeab5f6;return(_0x413ba5=_0x2b67f8(_0x413ba5))in _0x51634e?Object[_0x496261(0x1b8)](_0x51634e,_0x413ba5,{'value':_0x335d4a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51634e[_0x413ba5]=_0x335d4a,_0x51634e;}let _0x62f332=class extends _0x29b1e9[_0xeab5f6(0x1ce)]{constructor(_0x38419e=_0x80eb7d,_0x1b4781,_0x14aa4a){const _0x11fa9c=_0xeab5f6;super(),this['_config']=_0x38419e,this[_0x11fa9c(0x1a2)]=_0x1b4781,this[_0x11fa9c(0x1b0)]=_0x14aa4a;let {..._0x3ebbb2}=(0x0,_0x29b1e9[_0x11fa9c(0x1ca)])({},_0x80eb7d,this[_0x11fa9c(0x1d9)]);this['_configService'][_0x11fa9c(0x1bf)](_0x11fa9c(0x1a5),_0x3ebbb2);}[_0xeab5f6(0x1ab)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x260081=_0xeab5f6;(0x0,_0x29b1e9[_0x260081(0x1ad)])(this[_0x260081(0x1b0)],[[_0x1fc00f[_0x260081(0x194)],{'useClass':_0x3e13dd}]]);}};_0x5e6462(_0x62f332,_0xeab5f6(0x19d),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x5e6462(_0x62f332,_0xeab5f6(0x199),_0xb524a3),_0x5e6462(_0x62f332,_0xeab5f6(0x1cb),_0x37c92d),_0x62f332=_0x346b7d([(0x0,_0x29b1e9['DependentOn'])(_0x21977d[_0xeab5f6(0x1a3)]),_0x258b5b(0x1,_0x29b1e9[_0xeab5f6(0x1b2)]),_0x258b5b(0x2,(0x0,_0x29b1e9[_0xeab5f6(0x1c4)])(_0x29b1e9[_0xeab5f6(0x18b)]))],_0x62f332);let _0x994b4a=class extends _0x21977d[_0xeab5f6(0x1c0)]{constructor(_0x19bada,_0x5bb8a9,_0x5db681,_0x43f42e,_0x77572d){const _0x4c38e1=_0xeab5f6;super(_0x19bada,_0x5bb8a9,_0x5db681,_0x43f42e,_0x77572d);let _0x1ca5fa=this[_0x4c38e1(0x1a2)][_0x4c38e1(0x1ac)](_0x21977d['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x4c38e1(0x1d4)][_0x4c38e1(0x1c2)]({'interceptor':(_0x5b5889,_0x47d4c8)=>{const _0x45d11a=_0x4c38e1;let _0x59b9b7=_0x5b5889[_0x45d11a(0x1c1)];if(_0x1ca5fa!=null&&_0x1ca5fa[_0x45d11a(0x1cf)]){for(let _0x5e84af in _0x1ca5fa[_0x45d11a(0x1cf)])_0x59b9b7['set'](_0x5e84af,_0x1ca5fa[_0x45d11a(0x1cf)][_0x5e84af]);}return _0x47d4c8(_0x5b5889);}});}async['createSocket'](_0x887f48){const _0x183b8b=_0xeab5f6;return this[_0x183b8b(0x1c9)](_0x887f48);}};_0x994b4a=_0x346b7d([_0x258b5b(0x0,(0x0,_0x29b1e9['Inject'])(_0x29b1e9[_0xeab5f6(0x18b)])),_0x258b5b(0x1,(0x0,_0x29b1e9['Inject'])(_0x1fc00f[_0xeab5f6(0x1a8)])),_0x258b5b(0x2,_0x29b1e9[_0xeab5f6(0x1b2)]),_0x258b5b(0x3,_0x29b1e9[_0xeab5f6(0x195)]),_0x258b5b(0x4,_0x66ca4[_0xeab5f6(0x1b1)])],_0x994b4a),Object['defineProperty'](_0x2a28c3,_0xeab5f6(0x197),{'enumerable':!0x0,'get':function(){return _0x994b4a;}}),Object['defineProperty'](_0x2a28c3,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x62f332;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "1.0.0-alpha.7",
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.21.0",
55
- "@univerjs-pro/collaboration": "1.0.0-alpha.6",
56
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.6",
57
- "@univerjs/network": "1.0.0-alpha.6",
58
- "@univerjs/core": "1.0.0-alpha.6"
55
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.7",
56
+ "@univerjs/core": "1.0.0-alpha.7",
57
+ "@univerjs/network": "1.0.0-alpha.7",
58
+ "@univerjs-pro/collaboration": "1.0.0-alpha.7"
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.10",
65
- "@univerjs-infra/shared": "1.0.0-alpha.6"
65
+ "@univerjs-infra/shared": "1.0.0-alpha.7"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",