@univerjs-pro/collaboration-client-node 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  ## Package Overview
10
10
 
11
- | Package | UMD global | CSS | Locales | Facade entry |
12
- | --- | --- | :---: | :---: | :---: |
13
- | `@univerjs-pro/collaboration-client-node` | `UniverProCollaborationClientNode` | No | No | No |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs-pro/collaboration-client-node` | `UniverProCollaborationClientNode` | No | No | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,21 +20,18 @@ pnpm add @univerjs-pro/collaboration-client-node
20
20
  npm install @univerjs-pro/collaboration-client-node
21
21
  ```
22
22
 
23
- Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
24
-
25
23
  ## Usage
26
24
 
25
+ Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
26
+
27
27
  ```ts
28
28
  import { UniverCollaborationClientNodePlugin } from '@univerjs-pro/collaboration-client-node';
29
29
 
30
30
  univer.registerPlugin(UniverCollaborationClientNodePlugin);
31
31
  ```
32
32
 
33
- ## Integration Notes
34
-
35
- - Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
36
-
37
33
  ## Resources
38
34
 
39
- - [Documentation](https://docs.univer.ai/guides/pro)
35
+ - [Documentation](https://docs.univer.ai)
40
36
  - [NPM package](https://npmjs.com/package/@univerjs-pro/collaboration-client-node)
37
+ - [GitHub repository](https://github.com/dream-num/univer-pro)
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2c56eb=_0x50ee;(function(_0x523a0e,_0x2d9b2e){const _0x52df78=_0x50ee,_0x5cee35=_0x523a0e();while(!![]){try{const _0x526c4b=parseInt(_0x52df78(0x83))/0x1*(parseInt(_0x52df78(0x81))/0x2)+parseInt(_0x52df78(0xb1))/0x3+parseInt(_0x52df78(0xbf))/0x4+-parseInt(_0x52df78(0x97))/0x5+-parseInt(_0x52df78(0xca))/0x6+parseInt(_0x52df78(0xb9))/0x7*(-parseInt(_0x52df78(0xba))/0x8)+-parseInt(_0x52df78(0xc0))/0x9*(-parseInt(_0x52df78(0x8a))/0xa);if(_0x526c4b===_0x2d9b2e)break;else _0x5cee35['push'](_0x5cee35['shift']());}catch(_0x2a24ee){_0x5cee35['push'](_0x5cee35['shift']());}}}(_0x4b74,0x20482),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x2c56eb(0x9f)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s=_0x2c56eb(0xbb),c=_0x2c56eb(0xcd);const l={};function u(_0x1208b2,_0x572d89){return function(_0x36ffaf,_0x1bb688){_0x572d89(_0x36ffaf,_0x1bb688,_0x1208b2);};}function d(_0x3a5846,_0x190a87,_0x4f357d,_0x101130){const _0x22a54d=_0x2c56eb;var _0x250d62=arguments[_0x22a54d(0xaa)],_0x1d086f=_0x250d62<0x3?_0x190a87:_0x101130===null?_0x101130=Object[_0x22a54d(0xc8)](_0x190a87,_0x4f357d):_0x101130,_0x420336;if(typeof Reflect==_0x22a54d(0x8c)&&typeof Reflect[_0x22a54d(0xbc)]=='function')_0x1d086f=Reflect[_0x22a54d(0xbc)](_0x3a5846,_0x190a87,_0x4f357d,_0x101130);else{for(var _0xeb165e=_0x3a5846['length']-0x1;_0xeb165e>=0x0;_0xeb165e--)(_0x420336=_0x3a5846[_0xeb165e])&&(_0x1d086f=(_0x250d62<0x3?_0x420336(_0x1d086f):_0x250d62>0x3?_0x420336(_0x190a87,_0x4f357d,_0x1d086f):_0x420336(_0x190a87,_0x4f357d))||_0x1d086f);}return _0x250d62>0x3&&_0x1d086f&&Object['defineProperty'](_0x190a87,_0x4f357d,_0x1d086f),_0x1d086f;}let f=class extends r[_0x2c56eb(0x9a)]{constructor(_0x5a61e6){const _0xf847fb=_0x2c56eb;super(),this[_0xf847fb(0x98)]=_0x5a61e6;}[_0x2c56eb(0x95)](_0x37f8eb){const _0x45d655=_0x2c56eb;var _0x29656a;let _0x229fb2=((_0x29656a=this[_0x45d655(0x98)]['getConfig'](t[_0x45d655(0x93)]))==null?void 0x0:_0x29656a[_0x45d655(0xb7)])||{};try{let _0x35a702=new o[(_0x45d655(0xc6))](_0x37f8eb,{'headers':{..._0x229fb2}}),_0x485ab0=new r[(_0x45d655(0xc7))]();return{'URL':_0x37f8eb,'close':(_0x588b37,_0x24b3c7)=>{const _0x4ad094=_0x45d655;_0x35a702[_0x4ad094(0x82)](_0x588b37,_0x24b3c7),_0x485ab0[_0x4ad094(0x99)]();},'send':_0x3b835c=>{const _0x3f3d42=_0x45d655;_0x35a702[_0x3f3d42(0xa5)](_0x3b835c);},'open$':new a[(_0x45d655(0x9b))](_0x51157e=>{const _0x25cef2=_0x45d655;let _0x2081f1=_0x3add6c=>_0x51157e[_0x25cef2(0x9d)](_0x3add6c);_0x35a702[_0x25cef2(0x88)](_0x25cef2(0x94),_0x2081f1),_0x485ab0[_0x25cef2(0xa1)]((0x0,r[_0x25cef2(0xbe)])(()=>_0x35a702[_0x25cef2(0xb6)]('open',_0x2081f1)));})[_0x45d655(0x9c)]((0x0,a[_0x45d655(0xc4)])()),'close$':new a[(_0x45d655(0x9b))](_0x9f481e=>{const _0x54a16c=_0x45d655;let _0x29f5f5=_0x1a54b3=>_0x9f481e[_0x54a16c(0x9d)](_0x1a54b3);_0x35a702[_0x54a16c(0x88)](_0x54a16c(0x82),_0x29f5f5),_0x485ab0[_0x54a16c(0xa1)]((0x0,r[_0x54a16c(0xbe)])(()=>_0x35a702[_0x54a16c(0xb6)](_0x54a16c(0x82),_0x29f5f5)));})[_0x45d655(0x9c)]((0x0,a[_0x45d655(0xc4)])()),'error$':new a[(_0x45d655(0x9b))](_0x15be86=>{const _0x1fb298=_0x45d655;let _0x242694=_0x2628e3=>_0x15be86[_0x1fb298(0x9d)](_0x2628e3);_0x35a702[_0x1fb298(0x88)](_0x1fb298(0xc1),_0x242694),_0x485ab0['add']((0x0,r[_0x1fb298(0xbe)])(()=>_0x35a702[_0x1fb298(0xb6)](_0x1fb298(0xc1),_0x242694)));})[_0x45d655(0x9c)]((0x0,a[_0x45d655(0xc4)])()),'message$':new a[(_0x45d655(0x9b))](_0x42fc11=>{const _0x5ecb68=_0x45d655;let _0x495218=_0x7a920a=>_0x42fc11['next'](_0x7a920a);_0x35a702[_0x5ecb68(0x88)](_0x5ecb68(0xa8),_0x495218),_0x485ab0[_0x5ecb68(0xa1)]((0x0,r['toDisposable'])(()=>_0x35a702[_0x5ecb68(0xb6)](_0x5ecb68(0xa8),_0x495218)));})[_0x45d655(0x9c)]((0x0,a[_0x45d655(0xc4)])())};}catch(_0x228c55){return console[_0x45d655(0xc1)](_0x228c55),null;}}};f=d([u(0x0,r[_0x2c56eb(0xc2)])],f);function p(_0x5e3e94){'@babel/helpers - typeof';const _0x2d7fc5=_0x2c56eb;return p=typeof Symbol==_0x2d7fc5(0xb3)&&typeof Symbol[_0x2d7fc5(0x84)]==_0x2d7fc5(0xcc)?function(_0x4b6e18){return typeof _0x4b6e18;}:function(_0x317e69){const _0x568614=_0x2d7fc5;return _0x317e69&&typeof Symbol==_0x568614(0xb3)&&_0x317e69['constructor']===Symbol&&_0x317e69!==Symbol['prototype']?'symbol':typeof _0x317e69;},p(_0x5e3e94);}function _0x4b74(){const _0x2c8731=['_registerDependencies','_doCreateSocket','defineProperty','call','_config','348321KNzAco','_injector','function','ISocketService','version','removeEventListener','customHeaders','ISnapshotServerService','304521TaoIWw','24dLsKah','@univerjs-pro/collaboration-client-node','decorate','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','toDisposable','439736cMDOCp','3690zrtsiC','error','IConfigService','UniverCollaborationClientPlugin','share','Inject','WebSocket','DisposableCollection','getOwnPropertyDescriptor','Plugin','72120CMEeFO','UniverLicensePlugin','symbol','1.4.0','311086NAFneq','close','1wYYuwV','iterator','UniverCollaborationClientNodePlugin','setConfig','Injector','addEventListener','onStarting','520JnZpKr','UniverNetworkPlugin','object','set','pluginName','UniverCollaborationPlugin','_httpService','DependentOn','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','open','createSocket','NodeCollaborationSocketService','640745xdzIBl','_configService','dispose','Disposable','Observable','pipe','next','HTTPService','Module','packageName','add','toPrimitive','collaboration-client-node.config','merge','send','registerHTTPInterceptor','getConfig','message','headers','length','ILogService'];_0x4b74=function(){return _0x2c8731;};return _0x4b74();}function m(_0x417782,_0x31c3fc){const _0x2e2987=_0x2c56eb;if(p(_0x417782)!=_0x2e2987(0x8c)||!_0x417782)return _0x417782;var _0x3812b7=_0x417782[Symbol[_0x2e2987(0xa2)]];if(_0x3812b7!==void 0x0){var _0x1cbbf8=_0x3812b7[_0x2e2987(0xaf)](_0x417782,_0x31c3fc||'default');if(p(_0x1cbbf8)!=_0x2e2987(0x8c))return _0x1cbbf8;throw TypeError(_0x2e2987(0x92));}return(_0x31c3fc==='string'?String:Number)(_0x417782);}function h(_0x21e2e7){const _0x471eb2=_0x2c56eb;var _0x6446de=m(_0x21e2e7,'string');return p(_0x6446de)==_0x471eb2(0xcc)?_0x6446de:_0x6446de+'';}function g(_0x54aaa2,_0x2c4be1,_0x38ac27){const _0x1caf4d=_0x2c56eb;return(_0x2c4be1=h(_0x2c4be1))in _0x54aaa2?Object[_0x1caf4d(0xae)](_0x54aaa2,_0x2c4be1,{'value':_0x38ac27,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54aaa2[_0x2c4be1]=_0x38ac27,_0x54aaa2;}let _=class extends r[_0x2c56eb(0xc9)]{constructor(_0x3167a9=l,_0x1ed551,_0x514211){const _0x4c7f49=_0x2c56eb;super(),this['_config']=_0x3167a9,this['_configService']=_0x1ed551,this[_0x4c7f49(0xb2)]=_0x514211;let {..._0x229f0b}=(0x0,r[_0x4c7f49(0xa4)])({},l,this[_0x4c7f49(0xb0)]);this[_0x4c7f49(0x98)][_0x4c7f49(0x86)](_0x4c7f49(0xa3),_0x229f0b);}[_0x2c56eb(0x89)](){const _0x225370=_0x2c56eb;this[_0x225370(0xac)]();}[_0x2c56eb(0xac)](){const _0x20cf41=_0x2c56eb;(0x0,r['registerDependencies'])(this[_0x20cf41(0xb2)],[[i[_0x20cf41(0xb4)],{'useClass':f}]]);}};g(_,_0x2c56eb(0x8e),_0x2c56eb(0xbd)),g(_,_0x2c56eb(0xa0),s),g(_,_0x2c56eb(0xb5),c),_=d([(0x0,r[_0x2c56eb(0x91)])(n[_0x2c56eb(0xcb)],i[_0x2c56eb(0x8b)],e[_0x2c56eb(0x8f)],t[_0x2c56eb(0xc3)]),u(0x1,r[_0x2c56eb(0xc2)]),u(0x2,(0x0,r[_0x2c56eb(0xc5)])(r[_0x2c56eb(0x87)]))],_);let v=class extends t['CollaborationSocketService']{constructor(_0xc1d0e5,_0x55ae5d,_0x1f1ad4,_0x377855,_0x556c0c){const _0xb16259=_0x2c56eb;super(_0xc1d0e5,_0x55ae5d,_0x1f1ad4,_0x377855,_0x556c0c);let _0x16c8c4=this[_0xb16259(0x98)][_0xb16259(0xa7)](t[_0xb16259(0x93)]);this[_0xb16259(0x90)][_0xb16259(0xa6)]({'interceptor':(_0x1bb0b0,_0x4ac8ca)=>{const _0x1a9a0b=_0xb16259;let _0x3f30c3=_0x1bb0b0[_0x1a9a0b(0xa9)];if(_0x16c8c4!=null&&_0x16c8c4['customHeaders']){for(let _0xac4ee0 in _0x16c8c4[_0x1a9a0b(0xb7)])_0x3f30c3[_0x1a9a0b(0x8d)](_0xac4ee0,_0x16c8c4[_0x1a9a0b(0xb7)][_0xac4ee0]);}return _0x4ac8ca(_0x1bb0b0);}});}async[_0x2c56eb(0x95)](_0x357574){const _0xbfada3=_0x2c56eb;return this[_0xbfada3(0xad)](_0x357574);}};function _0x50ee(_0x24a756,_0x46aaa4){_0x24a756=_0x24a756-0x81;const _0x4b74b4=_0x4b74();let _0x50ee69=_0x4b74b4[_0x24a756];return _0x50ee69;}v=d([u(0x0,(0x0,r['Inject'])(r[_0x2c56eb(0x87)])),u(0x1,(0x0,r['Inject'])(i[_0x2c56eb(0x9e)])),u(0x2,r['IConfigService']),u(0x3,r[_0x2c56eb(0xab)]),u(0x4,e[_0x2c56eb(0xb8)])],v),Object[_0x2c56eb(0xae)](exports,_0x2c56eb(0x96),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,_0x2c56eb(0x85),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x4e4459=_0x3cb2;(function(_0x78395d,_0x44d0c7){const _0x1b9386=_0x3cb2,_0x5b5890=_0x78395d();while(!![]){try{const _0x471d07=parseInt(_0x1b9386(0x1d5))/0x1*(-parseInt(_0x1b9386(0x1b7))/0x2)+-parseInt(_0x1b9386(0x1e1))/0x3+parseInt(_0x1b9386(0x1b0))/0x4*(-parseInt(_0x1b9386(0x1b4))/0x5)+parseInt(_0x1b9386(0x1ac))/0x6*(-parseInt(_0x1b9386(0x1ca))/0x7)+-parseInt(_0x1b9386(0x1e6))/0x8+parseInt(_0x1b9386(0x1d3))/0x9+parseInt(_0x1b9386(0x1c7))/0xa;if(_0x471d07===_0x44d0c7)break;else _0x5b5890['push'](_0x5b5890['shift']());}catch(_0x1f6865){_0x5b5890['push'](_0x5b5890['shift']());}}}(_0x4695,0xbab49),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4e4459(0x1ba)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s='@univerjs-pro/collaboration-client-node',c=_0x4e4459(0x1b1);const l={};function _0x3cb2(_0x323964,_0x5923ae){_0x323964=_0x323964-0x1a8;const _0x4695df=_0x4695();let _0x3cb2f8=_0x4695df[_0x323964];return _0x3cb2f8;}function u(_0x2b6df9,_0x19a1b5){return function(_0x2492a6,_0x4b9e04){_0x19a1b5(_0x2492a6,_0x4b9e04,_0x2b6df9);};}function d(_0x4c574d,_0x597558,_0x328da5,_0x5a3662){const _0x31e836=_0x4e4459;var _0x2692d4=arguments[_0x31e836(0x1c1)],_0x60842c=_0x2692d4<0x3?_0x597558:_0x5a3662===null?_0x5a3662=Object['getOwnPropertyDescriptor'](_0x597558,_0x328da5):_0x5a3662,_0x12060e;if(typeof Reflect=='object'&&typeof Reflect[_0x31e836(0x1d0)]==_0x31e836(0x1cf))_0x60842c=Reflect[_0x31e836(0x1d0)](_0x4c574d,_0x597558,_0x328da5,_0x5a3662);else{for(var _0x3e0323=_0x4c574d[_0x31e836(0x1c1)]-0x1;_0x3e0323>=0x0;_0x3e0323--)(_0x12060e=_0x4c574d[_0x3e0323])&&(_0x60842c=(_0x2692d4<0x3?_0x12060e(_0x60842c):_0x2692d4>0x3?_0x12060e(_0x597558,_0x328da5,_0x60842c):_0x12060e(_0x597558,_0x328da5))||_0x60842c);}return _0x2692d4>0x3&&_0x60842c&&Object['defineProperty'](_0x597558,_0x328da5,_0x60842c),_0x60842c;}let f=class extends r['Disposable']{constructor(_0x46c02b){const _0x1cb42c=_0x4e4459;super(),this[_0x1cb42c(0x1e7)]=_0x46c02b;}['createSocket'](_0x51970e){const _0x1aa162=_0x4e4459;var _0x51f9a9;let _0x177cce=((_0x51f9a9=this['_configService'][_0x1aa162(0x1de)](t[_0x1aa162(0x1d4)]))==null?void 0x0:_0x51f9a9[_0x1aa162(0x1aa)])||{};try{let _0x32ed4d=new o[(_0x1aa162(0x1c6))](_0x51970e,{'headers':{..._0x177cce}}),_0xc46a2=new r[(_0x1aa162(0x1be))]();return{'URL':_0x51970e,'close':(_0x20c2eb,_0x17071e)=>{const _0x53e536=_0x1aa162;_0x32ed4d[_0x53e536(0x1d2)](_0x20c2eb,_0x17071e),_0xc46a2[_0x53e536(0x1b6)]();},'send':_0x432866=>{const _0x30bca6=_0x1aa162;_0x32ed4d[_0x30bca6(0x1ab)](_0x432866);},'open$':new a[(_0x1aa162(0x1da))](_0x5d264e=>{const _0x1b4b36=_0x1aa162;let _0x19c79c=_0x38a1f0=>_0x5d264e[_0x1b4b36(0x1d7)](_0x38a1f0);_0x32ed4d[_0x1b4b36(0x1e2)](_0x1b4b36(0x1d6),_0x19c79c),_0xc46a2[_0x1b4b36(0x1ae)]((0x0,r[_0x1b4b36(0x1b2)])(()=>_0x32ed4d[_0x1b4b36(0x1bd)](_0x1b4b36(0x1d6),_0x19c79c)));})['pipe']((0x0,a[_0x1aa162(0x1df)])()),'close$':new a['Observable'](_0x25990d=>{const _0x2e1de0=_0x1aa162;let _0x5be937=_0x1a0c8e=>_0x25990d['next'](_0x1a0c8e);_0x32ed4d[_0x2e1de0(0x1e2)](_0x2e1de0(0x1d2),_0x5be937),_0xc46a2[_0x2e1de0(0x1ae)]((0x0,r[_0x2e1de0(0x1b2)])(()=>_0x32ed4d[_0x2e1de0(0x1bd)](_0x2e1de0(0x1d2),_0x5be937)));})[_0x1aa162(0x1c4)]((0x0,a[_0x1aa162(0x1df)])()),'error$':new a[(_0x1aa162(0x1da))](_0x27836a=>{const _0x2e7fc8=_0x1aa162;let _0x738343=_0x35b857=>_0x27836a['next'](_0x35b857);_0x32ed4d[_0x2e7fc8(0x1e2)]('error',_0x738343),_0xc46a2[_0x2e7fc8(0x1ae)]((0x0,r['toDisposable'])(()=>_0x32ed4d[_0x2e7fc8(0x1bd)](_0x2e7fc8(0x1cb),_0x738343)));})['pipe']((0x0,a['share'])()),'message$':new a['Observable'](_0x4d8cf6=>{const _0x3281ac=_0x1aa162;let _0x5c3aee=_0x5df98e=>_0x4d8cf6[_0x3281ac(0x1d7)](_0x5df98e);_0x32ed4d[_0x3281ac(0x1e2)]('message',_0x5c3aee),_0xc46a2[_0x3281ac(0x1ae)]((0x0,r[_0x3281ac(0x1b2)])(()=>_0x32ed4d[_0x3281ac(0x1bd)]('message',_0x5c3aee)));})['pipe']((0x0,a[_0x1aa162(0x1df)])())};}catch(_0x3809f0){return console[_0x1aa162(0x1cb)](_0x3809f0),null;}}};f=d([u(0x0,r[_0x4e4459(0x1ad)])],f);function p(_0x3f39c3){'@babel/helpers - typeof';const _0x1fb654=_0x4e4459;return p=typeof Symbol==_0x1fb654(0x1cf)&&typeof Symbol['iterator']==_0x1fb654(0x1af)?function(_0x5c7b53){return typeof _0x5c7b53;}:function(_0x2696b8){const _0x1e4c39=_0x1fb654;return _0x2696b8&&typeof Symbol==_0x1e4c39(0x1cf)&&_0x2696b8[_0x1e4c39(0x1d9)]===Symbol&&_0x2696b8!==Symbol[_0x1e4c39(0x1cc)]?_0x1e4c39(0x1af):typeof _0x2696b8;},p(_0x3f39c3);}function m(_0xf67bdf,_0x1221df){const _0x567529=_0x4e4459;if(p(_0xf67bdf)!=_0x567529(0x1c8)||!_0xf67bdf)return _0xf67bdf;var _0x22ce8b;if(typeof Symbol<'u'&&(_0x22ce8b=_0xf67bdf[Symbol['toPrimitive']])!==void 0x0){var _0x55d17f=_0x22ce8b[_0x567529(0x1dc)](_0xf67bdf,_0x1221df||_0x567529(0x1c5));if(p(_0x55d17f)!=_0x567529(0x1c8))return _0x55d17f;throw TypeError(_0x567529(0x1ce));}return(_0x1221df===_0x567529(0x1db)?String:Number)(_0xf67bdf);}function h(_0x22b4b0){const _0x52def9=_0x4e4459;var _0x5e8ff5=m(_0x22b4b0,_0x52def9(0x1db));return p(_0x5e8ff5)==_0x52def9(0x1af)?_0x5e8ff5:_0x5e8ff5+'';}function g(_0x425d85,_0x9b0216,_0x574c02){return(_0x9b0216=h(_0x9b0216))in _0x425d85?Object['defineProperty'](_0x425d85,_0x9b0216,{'value':_0x574c02,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x425d85[_0x9b0216]=_0x574c02,_0x425d85;}let _=class extends r[_0x4e4459(0x1d8)]{constructor(_0x345deb=l,_0x2d29e4,_0x50502b){const _0x8c2e2e=_0x4e4459;super(),this[_0x8c2e2e(0x1e8)]=_0x345deb,this[_0x8c2e2e(0x1e7)]=_0x2d29e4,this[_0x8c2e2e(0x1c0)]=_0x50502b;let {..._0x3aebb8}=(0x0,r[_0x8c2e2e(0x1b5)])({},l,this['_config']);this[_0x8c2e2e(0x1e7)][_0x8c2e2e(0x1bb)](_0x8c2e2e(0x1dd),_0x3aebb8);}[_0x4e4459(0x1a8)](){const _0x22cf5d=_0x4e4459;this[_0x22cf5d(0x1ea)]();}[_0x4e4459(0x1ea)](){const _0x25f1d5=_0x4e4459;(0x0,r[_0x25f1d5(0x1bf)])(this['_injector'],[[i[_0x25f1d5(0x1cd)],{'useClass':f}]]);}};g(_,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,'packageName',s),g(_,_0x4e4459(0x1b3),c),_=d([(0x0,r[_0x4e4459(0x1b9)])(n['UniverLicensePlugin'],i[_0x4e4459(0x1bc)],e[_0x4e4459(0x1c3)],t['UniverCollaborationClientPlugin']),u(0x1,r[_0x4e4459(0x1ad)]),u(0x2,(0x0,r[_0x4e4459(0x1e3)])(r[_0x4e4459(0x1c2)]))],_);let v=class extends t[_0x4e4459(0x1e5)]{constructor(_0x1bd428,_0x23e31a,_0x5f43b0,_0x22b5e9,_0x215136){const _0x735e02=_0x4e4459;super(_0x1bd428,_0x23e31a,_0x5f43b0,_0x22b5e9,_0x215136);let _0x443ec9=this[_0x735e02(0x1e7)][_0x735e02(0x1de)](t[_0x735e02(0x1d4)]);this[_0x735e02(0x1e0)][_0x735e02(0x1ec)]({'interceptor':(_0x2567d4,_0x1adcfa)=>{const _0x327e59=_0x735e02;let _0x398fac=_0x2567d4[_0x327e59(0x1e9)];if(_0x443ec9!=null&&_0x443ec9[_0x327e59(0x1aa)]){for(let _0x3fb525 in _0x443ec9[_0x327e59(0x1aa)])_0x398fac[_0x327e59(0x1a9)](_0x3fb525,_0x443ec9['customHeaders'][_0x3fb525]);}return _0x1adcfa(_0x2567d4);}});}async[_0x4e4459(0x1d1)](_0x4772ce){const _0x311b7e=_0x4e4459;return this[_0x311b7e(0x1b8)](_0x4772ce);}};v=d([u(0x0,(0x0,r[_0x4e4459(0x1e3)])(r[_0x4e4459(0x1c2)])),u(0x1,(0x0,r[_0x4e4459(0x1e3)])(i['HTTPService'])),u(0x2,r[_0x4e4459(0x1ad)]),u(0x3,r[_0x4e4459(0x1e4)]),u(0x4,e[_0x4e4459(0x1eb)])],v),Object[_0x4e4459(0x1ed)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x4e4459(0x1ed)](exports,_0x4e4459(0x1c9),{'enumerable':!0x0,'get':function(){return _;}});function _0x4695(){const _0x24d809=['customHeaders','send','29994PAVzXM','IConfigService','add','symbol','248otuyah','1.5.0','toDisposable','version','114460tZpeQN','merge','dispose','2dEWQqm','_doCreateSocket','DependentOn','Module','setConfig','UniverNetworkPlugin','removeEventListener','DisposableCollection','registerDependencies','_injector','length','Injector','UniverCollaborationPlugin','pipe','default','WebSocket','48191660vmkoki','object','UniverCollaborationClientNodePlugin','1190KsOzIB','error','prototype','ISocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','decorate','createSocket','close','1604169CjuLfA','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','777446EAYHsa','open','next','Plugin','constructor','Observable','string','call','collaboration-client-node.config','getConfig','share','_httpService','1932996dBvhMK','addEventListener','Inject','ILogService','CollaborationSocketService','4334000DMtXzd','_configService','_config','headers','_registerDependencies','ISnapshotServerService','registerHTTPInterceptor','defineProperty','onStarting','set'];_0x4695=function(){return _0x24d809;};return _0x4695();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x59090d=_0x4192;(function(_0x59a35d,_0x5da3b6){const _0x192905=_0x4192,_0x427638=_0x59a35d();while(!![]){try{const _0x370a22=parseInt(_0x192905(0x142))/0x1*(parseInt(_0x192905(0x16b))/0x2)+-parseInt(_0x192905(0x13c))/0x3+parseInt(_0x192905(0x157))/0x4+parseInt(_0x192905(0x13d))/0x5*(parseInt(_0x192905(0x13b))/0x6)+parseInt(_0x192905(0x152))/0x7+-parseInt(_0x192905(0x161))/0x8*(-parseInt(_0x192905(0x146))/0x9)+-parseInt(_0x192905(0x15d))/0xa;if(_0x370a22===_0x5da3b6)break;else _0x427638['push'](_0x427638['shift']());}catch(_0xad5e1d){_0x427638['push'](_0x427638['shift']());}}}(_0x4fae,0x537e1));import{ISnapshotServerService as _0x5b3b8f,UniverCollaborationPlugin as _0x51d679}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d236b,CollaborationSocketService as _0x35eb1a,UniverCollaborationClientPlugin as _0x25a16c}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x546296}from'@univerjs-pro/license';function _0x4192(_0x536d3d,_0x153578){_0x536d3d=_0x536d3d-0x13b;const _0x4fae16=_0x4fae();let _0x4192b4=_0x4fae16[_0x536d3d];return _0x4192b4;}import{DependentOn as _0x252588,Disposable as _0x470969,DisposableCollection as _0xc209c3,IConfigService as _0x889711,ILogService as _0x47a811,Inject as _0x5e1919,Injector as _0x4683da,Plugin as _0x219adf,merge as _0x51f70e,registerDependencies as _0x3e275f,toDisposable as _0x2d154c}from'@univerjs/core';import{HTTPService as _0x152225,ISocketService as _0x2268e0,UniverNetworkPlugin as _0x1abc4b}from'@univerjs/network';import{Observable as _0x38e503,share as _0x2ebbe7}from'rxjs';import{WebSocket as _0x33e35c}from'ws';var C='@univerjs-pro/collaboration-client-node',w=_0x59090d(0x140);const T={};function E(_0x1e2506,_0xde04a6){return function(_0x2268bd,_0x40b7a0){_0xde04a6(_0x2268bd,_0x40b7a0,_0x1e2506);};}function D(_0x5cd6a3,_0x5d8df3,_0x3745d4,_0x46c249){const _0xc1d2ff=_0x59090d;var _0x968e82=arguments['length'],_0x2b4017=_0x968e82<0x3?_0x5d8df3:_0x46c249===null?_0x46c249=Object[_0xc1d2ff(0x16e)](_0x5d8df3,_0x3745d4):_0x46c249,_0xe99d38;if(typeof Reflect==_0xc1d2ff(0x159)&&typeof Reflect[_0xc1d2ff(0x162)]=='function')_0x2b4017=Reflect['decorate'](_0x5cd6a3,_0x5d8df3,_0x3745d4,_0x46c249);else{for(var _0x143ded=_0x5cd6a3[_0xc1d2ff(0x151)]-0x1;_0x143ded>=0x0;_0x143ded--)(_0xe99d38=_0x5cd6a3[_0x143ded])&&(_0x2b4017=(_0x968e82<0x3?_0xe99d38(_0x2b4017):_0x968e82>0x3?_0xe99d38(_0x5d8df3,_0x3745d4,_0x2b4017):_0xe99d38(_0x5d8df3,_0x3745d4))||_0x2b4017);}return _0x968e82>0x3&&_0x2b4017&&Object[_0xc1d2ff(0x163)](_0x5d8df3,_0x3745d4,_0x2b4017),_0x2b4017;}let O=class extends _0x470969{constructor(_0x209d6d){const _0x2f0025=_0x59090d;super(),this[_0x2f0025(0x166)]=_0x209d6d;}[_0x59090d(0x149)](_0x3ca285){const _0x26586d=_0x59090d;var _0x4cc789;let _0x362f01=((_0x4cc789=this['_configService'][_0x26586d(0x145)](_0x1d236b))==null?void 0x0:_0x4cc789[_0x26586d(0x16c)])||{};try{let _0x2282bc=new _0x33e35c(_0x3ca285,{'headers':{..._0x362f01}}),_0x5d18a6=new _0xc209c3();return{'URL':_0x3ca285,'close':(_0x3ab16b,_0x44af28)=>{const _0x369f37=_0x26586d;_0x2282bc[_0x369f37(0x14b)](_0x3ab16b,_0x44af28),_0x5d18a6[_0x369f37(0x160)]();},'send':_0x343514=>{const _0x15982b=_0x26586d;_0x2282bc[_0x15982b(0x16a)](_0x343514);},'open$':new _0x38e503(_0x564413=>{const _0x91517c=_0x26586d;let _0x12e7cb=_0x25b89a=>_0x564413[_0x91517c(0x168)](_0x25b89a);_0x2282bc[_0x91517c(0x148)](_0x91517c(0x14e),_0x12e7cb),_0x5d18a6[_0x91517c(0x14a)](_0x2d154c(()=>_0x2282bc[_0x91517c(0x15e)](_0x91517c(0x14e),_0x12e7cb)));})[_0x26586d(0x143)](_0x2ebbe7()),'close$':new _0x38e503(_0x17d93d=>{const _0x5e7572=_0x26586d;let _0x3365e6=_0x566951=>_0x17d93d[_0x5e7572(0x168)](_0x566951);_0x2282bc['addEventListener'](_0x5e7572(0x14b),_0x3365e6),_0x5d18a6[_0x5e7572(0x14a)](_0x2d154c(()=>_0x2282bc['removeEventListener'](_0x5e7572(0x14b),_0x3365e6)));})['pipe'](_0x2ebbe7()),'error$':new _0x38e503(_0x5be6d9=>{const _0x589293=_0x26586d;let _0x13b339=_0x59574b=>_0x5be6d9[_0x589293(0x168)](_0x59574b);_0x2282bc[_0x589293(0x148)](_0x589293(0x15f),_0x13b339),_0x5d18a6['add'](_0x2d154c(()=>_0x2282bc[_0x589293(0x15e)]('error',_0x13b339)));})[_0x26586d(0x143)](_0x2ebbe7()),'message$':new _0x38e503(_0x4eba48=>{const _0x5ecc4c=_0x26586d;let _0x4ef866=_0x333fa1=>_0x4eba48['next'](_0x333fa1);_0x2282bc[_0x5ecc4c(0x148)](_0x5ecc4c(0x15b),_0x4ef866),_0x5d18a6[_0x5ecc4c(0x14a)](_0x2d154c(()=>_0x2282bc[_0x5ecc4c(0x15e)](_0x5ecc4c(0x15b),_0x4ef866)));})['pipe'](_0x2ebbe7())};}catch(_0x7845e7){return console[_0x26586d(0x15f)](_0x7845e7),null;}}};O=D([E(0x0,_0x889711)],O);function _0x4fae(){const _0x183665=['_doCreateSocket','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2019644IPUZtc','set','object','headers','message','_registerDependencies','11748550aBSEgo','removeEventListener','error','dispose','8utEmgk','decorate','defineProperty','default','toPrimitive','_configService','iterator','next','_injector','send','2XguGUg','customHeaders','setConfig','getOwnPropertyDescriptor','prototype','version','27954bVSdbZ','576042OvOlci','200eKPzUQ','_config','constructor','1.4.0','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','334486cMzdiq','pipe','registerHTTPInterceptor','getConfig','2735406ERCwSj','_httpService','addEventListener','createSocket','add','close','packageName','string','open','function','onStarting','length','2654141KHMPgF','symbol'];_0x4fae=function(){return _0x183665;};return _0x4fae();}function k(_0x2eaa54){'@babel/helpers - typeof';const _0x246b1f=_0x59090d;return k=typeof Symbol==_0x246b1f(0x14f)&&typeof Symbol[_0x246b1f(0x167)]=='symbol'?function(_0x44fbc1){return typeof _0x44fbc1;}:function(_0x3a46c4){const _0x26e5eb=_0x246b1f;return _0x3a46c4&&typeof Symbol=='function'&&_0x3a46c4[_0x26e5eb(0x13f)]===Symbol&&_0x3a46c4!==Symbol[_0x26e5eb(0x16f)]?'symbol':typeof _0x3a46c4;},k(_0x2eaa54);}function A(_0x224eb0,_0x2d420c){const _0x20cdb2=_0x59090d;if(k(_0x224eb0)!=_0x20cdb2(0x159)||!_0x224eb0)return _0x224eb0;var _0x2c66c5=_0x224eb0[Symbol[_0x20cdb2(0x165)]];if(_0x2c66c5!==void 0x0){var _0xbf4772=_0x2c66c5['call'](_0x224eb0,_0x2d420c||_0x20cdb2(0x164));if(k(_0xbf4772)!=_0x20cdb2(0x159))return _0xbf4772;throw TypeError(_0x20cdb2(0x156));}return(_0x2d420c===_0x20cdb2(0x14d)?String:Number)(_0x224eb0);}function j(_0x4c64a2){const _0x18096f=_0x59090d;var _0x132018=A(_0x4c64a2,_0x18096f(0x14d));return k(_0x132018)==_0x18096f(0x153)?_0x132018:_0x132018+'';}function M(_0x2b1eb1,_0x25371d,_0xef8cad){return(_0x25371d=j(_0x25371d))in _0x2b1eb1?Object['defineProperty'](_0x2b1eb1,_0x25371d,{'value':_0xef8cad,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b1eb1[_0x25371d]=_0xef8cad,_0x2b1eb1;}let N=class extends _0x219adf{constructor(_0x435659=T,_0xc66520,_0x59c580){const _0x99b1d5=_0x59090d;super(),this[_0x99b1d5(0x13e)]=_0x435659,this[_0x99b1d5(0x166)]=_0xc66520,this[_0x99b1d5(0x169)]=_0x59c580;let {..._0x2a0fe8}=_0x51f70e({},T,this[_0x99b1d5(0x13e)]);this['_configService'][_0x99b1d5(0x16d)]('collaboration-client-node.config',_0x2a0fe8);}[_0x59090d(0x150)](){const _0x1a46c6=_0x59090d;this[_0x1a46c6(0x15c)]();}[_0x59090d(0x15c)](){const _0x12d8ec=_0x59090d;_0x3e275f(this[_0x12d8ec(0x169)],[[_0x2268e0,{'useClass':O}]]);}};M(N,_0x59090d(0x155),_0x59090d(0x141)),M(N,_0x59090d(0x14c),C),M(N,_0x59090d(0x170),w),N=D([_0x252588(_0x546296,_0x1abc4b,_0x51d679,_0x25a16c),E(0x1,_0x889711),E(0x2,_0x5e1919(_0x4683da))],N);let P=class extends _0x35eb1a{constructor(_0x419926,_0x116e90,_0x2c9ddf,_0x8b2a15,_0x34a060){const _0x22b31f=_0x59090d;super(_0x419926,_0x116e90,_0x2c9ddf,_0x8b2a15,_0x34a060);let _0x188f61=this[_0x22b31f(0x166)][_0x22b31f(0x145)](_0x1d236b);this[_0x22b31f(0x147)][_0x22b31f(0x144)]({'interceptor':(_0x30d5bd,_0xce93e6)=>{const _0x207a8d=_0x22b31f;let _0x528bba=_0x30d5bd[_0x207a8d(0x15a)];if(_0x188f61!=null&&_0x188f61['customHeaders']){for(let _0x485110 in _0x188f61[_0x207a8d(0x16c)])_0x528bba[_0x207a8d(0x158)](_0x485110,_0x188f61[_0x207a8d(0x16c)][_0x485110]);}return _0xce93e6(_0x30d5bd);}});}async[_0x59090d(0x149)](_0x4304b6){const _0x38b949=_0x59090d;return this[_0x38b949(0x154)](_0x4304b6);}};P=D([E(0x0,_0x5e1919(_0x4683da)),E(0x1,_0x5e1919(_0x152225)),E(0x2,_0x889711),E(0x3,_0x47a811),E(0x4,_0x5b3b8f)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x5c5736=_0x1a65;(function(_0x50d104,_0x191f12){const _0x3ad77b=_0x1a65,_0x1acffb=_0x50d104();while(!![]){try{const _0x41a5ce=-parseInt(_0x3ad77b(0xb1))/0x1*(parseInt(_0x3ad77b(0xd0))/0x2)+-parseInt(_0x3ad77b(0xb4))/0x3+parseInt(_0x3ad77b(0xde))/0x4+parseInt(_0x3ad77b(0xd8))/0x5*(parseInt(_0x3ad77b(0xc9))/0x6)+parseInt(_0x3ad77b(0xb7))/0x7+-parseInt(_0x3ad77b(0xcc))/0x8*(parseInt(_0x3ad77b(0xb9))/0x9)+-parseInt(_0x3ad77b(0xc8))/0xa*(-parseInt(_0x3ad77b(0xbb))/0xb);if(_0x41a5ce===_0x191f12)break;else _0x1acffb['push'](_0x1acffb['shift']());}catch(_0xd41a51){_0x1acffb['push'](_0x1acffb['shift']());}}}(_0x21dc,0xe3f96));function _0x21dc(){const _0x3f62fe=['customHeaders','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','8KbBaNa','_configService','_httpService','pluginName','556806HwKvNd','object','length','symbol','error','default','pipe','setConfig','8970305MyZWRh','_registerDependencies','constructor','_injector','createSocket','message','5012676OiQorB','decorate','addEventListener','prototype','_doCreateSocket','6whoWfZ','toPrimitive','_config','3773538vKzDwX','send','next','126091nhmSWf','1.5.0','4240449XVaGhU','collaboration-client-node.config','44LxENzM','add','defineProperty','getOwnPropertyDescriptor','function','close','@univerjs-pro/collaboration-client-node','open','getConfig','removeEventListener','registerHTTPInterceptor','packageName','iterator','3169910GslBoV','6mtzHfA'];_0x21dc=function(){return _0x3f62fe;};return _0x21dc();}import{ISnapshotServerService as _0x315d99,UniverCollaborationPlugin as _0x3c9b38}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1871fa,CollaborationSocketService as _0x126b73,UniverCollaborationClientPlugin as _0x2d1a44}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x21378c}from'@univerjs-pro/license';import{DependentOn as _0x4679d4,Disposable as _0x4b2a42,DisposableCollection as _0x2f75fb,IConfigService as _0x566325,ILogService as _0xc16fad,Inject as _0x5322bc,Injector as _0x669579,Plugin as _0x2ca854,merge as _0x586a27,registerDependencies as _0x37ca6a,toDisposable as _0x159ab8}from'@univerjs/core';import{HTTPService as _0x9c7f3e,ISocketService as _0x2dc373,UniverNetworkPlugin as _0x2f0628}from'@univerjs/network';import{Observable as _0x399bb6,share as _0xeaf8f3}from'rxjs';import{WebSocket as _0x367cb6}from'ws';var C=_0x5c5736(0xc1),w=_0x5c5736(0xb8);const T={};function E(_0x4e8232,_0x4a74c2){return function(_0x2280ca,_0xdb882b){_0x4a74c2(_0x2280ca,_0xdb882b,_0x4e8232);};}function D(_0x4aae77,_0x5bf02c,_0x42674d,_0x3b57cd){const _0x4d4153=_0x5c5736;var _0xfc0c20=arguments[_0x4d4153(0xd2)],_0x3b799a=_0xfc0c20<0x3?_0x5bf02c:_0x3b57cd===null?_0x3b57cd=Object[_0x4d4153(0xbe)](_0x5bf02c,_0x42674d):_0x3b57cd,_0x401442;if(typeof Reflect==_0x4d4153(0xd1)&&typeof Reflect[_0x4d4153(0xdf)]==_0x4d4153(0xbf))_0x3b799a=Reflect[_0x4d4153(0xdf)](_0x4aae77,_0x5bf02c,_0x42674d,_0x3b57cd);else{for(var _0x1f159d=_0x4aae77[_0x4d4153(0xd2)]-0x1;_0x1f159d>=0x0;_0x1f159d--)(_0x401442=_0x4aae77[_0x1f159d])&&(_0x3b799a=(_0xfc0c20<0x3?_0x401442(_0x3b799a):_0xfc0c20>0x3?_0x401442(_0x5bf02c,_0x42674d,_0x3b799a):_0x401442(_0x5bf02c,_0x42674d))||_0x3b799a);}return _0xfc0c20>0x3&&_0x3b799a&&Object['defineProperty'](_0x5bf02c,_0x42674d,_0x3b799a),_0x3b799a;}let O=class extends _0x4b2a42{constructor(_0x2325f9){super(),this['_configService']=_0x2325f9;}[_0x5c5736(0xdc)](_0x3aa334){const _0x564ef6=_0x5c5736;var _0x57969c;let _0x5455d7=((_0x57969c=this[_0x564ef6(0xcd)]['getConfig'](_0x1871fa))==null?void 0x0:_0x57969c['customHeaders'])||{};try{let _0xb819eb=new _0x367cb6(_0x3aa334,{'headers':{..._0x5455d7}}),_0x4ab92f=new _0x2f75fb();return{'URL':_0x3aa334,'close':(_0xcfa829,_0x5e4640)=>{_0xb819eb['close'](_0xcfa829,_0x5e4640),_0x4ab92f['dispose']();},'send':_0x4d3180=>{const _0x4c8a9d=_0x564ef6;_0xb819eb[_0x4c8a9d(0xb5)](_0x4d3180);},'open$':new _0x399bb6(_0x327a4b=>{const _0x244b76=_0x564ef6;let _0x16efeb=_0x69244c=>_0x327a4b['next'](_0x69244c);_0xb819eb['addEventListener']('open',_0x16efeb),_0x4ab92f[_0x244b76(0xbc)](_0x159ab8(()=>_0xb819eb[_0x244b76(0xc4)](_0x244b76(0xc2),_0x16efeb)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'close$':new _0x399bb6(_0x5602cf=>{const _0x441f82=_0x564ef6;let _0x3e79d1=_0x5da07f=>_0x5602cf[_0x441f82(0xb6)](_0x5da07f);_0xb819eb['addEventListener']('close',_0x3e79d1),_0x4ab92f[_0x441f82(0xbc)](_0x159ab8(()=>_0xb819eb[_0x441f82(0xc4)](_0x441f82(0xc0),_0x3e79d1)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'error$':new _0x399bb6(_0x48545c=>{const _0x49cffd=_0x564ef6;let _0x1050a5=_0x50a749=>_0x48545c['next'](_0x50a749);_0xb819eb[_0x49cffd(0xe0)](_0x49cffd(0xd4),_0x1050a5),_0x4ab92f[_0x49cffd(0xbc)](_0x159ab8(()=>_0xb819eb[_0x49cffd(0xc4)](_0x49cffd(0xd4),_0x1050a5)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'message$':new _0x399bb6(_0x2d0736=>{const _0x4fea7a=_0x564ef6;let _0x2e53bd=_0x4ffbed=>_0x2d0736[_0x4fea7a(0xb6)](_0x4ffbed);_0xb819eb['addEventListener'](_0x4fea7a(0xdd),_0x2e53bd),_0x4ab92f[_0x4fea7a(0xbc)](_0x159ab8(()=>_0xb819eb[_0x4fea7a(0xc4)](_0x4fea7a(0xdd),_0x2e53bd)));})[_0x564ef6(0xd6)](_0xeaf8f3())};}catch(_0x198e19){return console[_0x564ef6(0xd4)](_0x198e19),null;}}};O=D([E(0x0,_0x566325)],O);function k(_0x46b9f2){'@babel/helpers - typeof';const _0xbf82b5=_0x5c5736;return k=typeof Symbol==_0xbf82b5(0xbf)&&typeof Symbol[_0xbf82b5(0xc7)]==_0xbf82b5(0xd3)?function(_0x1832b2){return typeof _0x1832b2;}:function(_0x4bc765){const _0x4545f5=_0xbf82b5;return _0x4bc765&&typeof Symbol==_0x4545f5(0xbf)&&_0x4bc765[_0x4545f5(0xda)]===Symbol&&_0x4bc765!==Symbol[_0x4545f5(0xaf)]?_0x4545f5(0xd3):typeof _0x4bc765;},k(_0x46b9f2);}function A(_0x2d6fed,_0x3b8dc0){const _0x55f8a4=_0x5c5736;if(k(_0x2d6fed)!=_0x55f8a4(0xd1)||!_0x2d6fed)return _0x2d6fed;var _0x1e4586;if(typeof Symbol<'u'&&(_0x1e4586=_0x2d6fed[Symbol[_0x55f8a4(0xb2)]])!==void 0x0){var _0x10348c=_0x1e4586['call'](_0x2d6fed,_0x3b8dc0||_0x55f8a4(0xd5));if(k(_0x10348c)!='object')return _0x10348c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3b8dc0==='string'?String:Number)(_0x2d6fed);}function j(_0x11c940){const _0x59981d=_0x5c5736;var _0x560e3f=A(_0x11c940,'string');return k(_0x560e3f)==_0x59981d(0xd3)?_0x560e3f:_0x560e3f+'';}function M(_0x41b5f6,_0x50a09c,_0x83cc3b){const _0xc3b925=_0x5c5736;return(_0x50a09c=j(_0x50a09c))in _0x41b5f6?Object[_0xc3b925(0xbd)](_0x41b5f6,_0x50a09c,{'value':_0x83cc3b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41b5f6[_0x50a09c]=_0x83cc3b,_0x41b5f6;}let N=class extends _0x2ca854{constructor(_0xa08031=T,_0x53e7ee,_0x25364b){const _0x4db3a9=_0x5c5736;super(),this[_0x4db3a9(0xb3)]=_0xa08031,this['_configService']=_0x53e7ee,this[_0x4db3a9(0xdb)]=_0x25364b;let {..._0x2eece6}=_0x586a27({},T,this[_0x4db3a9(0xb3)]);this['_configService'][_0x4db3a9(0xd7)](_0x4db3a9(0xba),_0x2eece6);}['onStarting'](){const _0x1512d4=_0x5c5736;this[_0x1512d4(0xd9)]();}[_0x5c5736(0xd9)](){const _0x350e47=_0x5c5736;_0x37ca6a(this[_0x350e47(0xdb)],[[_0x2dc373,{'useClass':O}]]);}};M(N,_0x5c5736(0xcf),_0x5c5736(0xcb)),M(N,_0x5c5736(0xc6),C),M(N,'version',w),N=D([_0x4679d4(_0x21378c,_0x2f0628,_0x3c9b38,_0x2d1a44),E(0x1,_0x566325),E(0x2,_0x5322bc(_0x669579))],N);let P=class extends _0x126b73{constructor(_0x336b27,_0x59a342,_0x8edd57,_0x544973,_0x2cbefb){const _0x4b2de4=_0x5c5736;super(_0x336b27,_0x59a342,_0x8edd57,_0x544973,_0x2cbefb);let _0x213953=this[_0x4b2de4(0xcd)][_0x4b2de4(0xc3)](_0x1871fa);this[_0x4b2de4(0xce)][_0x4b2de4(0xc5)]({'interceptor':(_0x420339,_0x3c2b9d)=>{const _0x32c7f8=_0x4b2de4;let _0x2719b5=_0x420339['headers'];if(_0x213953!=null&&_0x213953[_0x32c7f8(0xca)]){for(let _0x311b55 in _0x213953[_0x32c7f8(0xca)])_0x2719b5['set'](_0x311b55,_0x213953[_0x32c7f8(0xca)][_0x311b55]);}return _0x3c2b9d(_0x420339);}});}async[_0x5c5736(0xdc)](_0xd77edb){const _0x5aca64=_0x5c5736;return this[_0x5aca64(0xb0)](_0xd77edb);}};P=D([E(0x0,_0x5322bc(_0x669579)),E(0x1,_0x5322bc(_0x9c7f3e)),E(0x2,_0x566325),E(0x3,_0xc16fad),E(0x4,_0x315d99)],P);function _0x1a65(_0x4f9f6b,_0x14760f){_0x4f9f6b=_0x4f9f6b-0xaf;const _0x21dc56=_0x21dc();let _0x1a65e0=_0x21dc56[_0x4f9f6b];return _0x1a65e0;}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x59090d=_0x4192;(function(_0x59a35d,_0x5da3b6){const _0x192905=_0x4192,_0x427638=_0x59a35d();while(!![]){try{const _0x370a22=parseInt(_0x192905(0x142))/0x1*(parseInt(_0x192905(0x16b))/0x2)+-parseInt(_0x192905(0x13c))/0x3+parseInt(_0x192905(0x157))/0x4+parseInt(_0x192905(0x13d))/0x5*(parseInt(_0x192905(0x13b))/0x6)+parseInt(_0x192905(0x152))/0x7+-parseInt(_0x192905(0x161))/0x8*(-parseInt(_0x192905(0x146))/0x9)+-parseInt(_0x192905(0x15d))/0xa;if(_0x370a22===_0x5da3b6)break;else _0x427638['push'](_0x427638['shift']());}catch(_0xad5e1d){_0x427638['push'](_0x427638['shift']());}}}(_0x4fae,0x537e1));import{ISnapshotServerService as _0x5b3b8f,UniverCollaborationPlugin as _0x51d679}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d236b,CollaborationSocketService as _0x35eb1a,UniverCollaborationClientPlugin as _0x25a16c}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x546296}from'@univerjs-pro/license';function _0x4192(_0x536d3d,_0x153578){_0x536d3d=_0x536d3d-0x13b;const _0x4fae16=_0x4fae();let _0x4192b4=_0x4fae16[_0x536d3d];return _0x4192b4;}import{DependentOn as _0x252588,Disposable as _0x470969,DisposableCollection as _0xc209c3,IConfigService as _0x889711,ILogService as _0x47a811,Inject as _0x5e1919,Injector as _0x4683da,Plugin as _0x219adf,merge as _0x51f70e,registerDependencies as _0x3e275f,toDisposable as _0x2d154c}from'@univerjs/core';import{HTTPService as _0x152225,ISocketService as _0x2268e0,UniverNetworkPlugin as _0x1abc4b}from'@univerjs/network';import{Observable as _0x38e503,share as _0x2ebbe7}from'rxjs';import{WebSocket as _0x33e35c}from'ws';var C='@univerjs-pro/collaboration-client-node',w=_0x59090d(0x140);const T={};function E(_0x1e2506,_0xde04a6){return function(_0x2268bd,_0x40b7a0){_0xde04a6(_0x2268bd,_0x40b7a0,_0x1e2506);};}function D(_0x5cd6a3,_0x5d8df3,_0x3745d4,_0x46c249){const _0xc1d2ff=_0x59090d;var _0x968e82=arguments['length'],_0x2b4017=_0x968e82<0x3?_0x5d8df3:_0x46c249===null?_0x46c249=Object[_0xc1d2ff(0x16e)](_0x5d8df3,_0x3745d4):_0x46c249,_0xe99d38;if(typeof Reflect==_0xc1d2ff(0x159)&&typeof Reflect[_0xc1d2ff(0x162)]=='function')_0x2b4017=Reflect['decorate'](_0x5cd6a3,_0x5d8df3,_0x3745d4,_0x46c249);else{for(var _0x143ded=_0x5cd6a3[_0xc1d2ff(0x151)]-0x1;_0x143ded>=0x0;_0x143ded--)(_0xe99d38=_0x5cd6a3[_0x143ded])&&(_0x2b4017=(_0x968e82<0x3?_0xe99d38(_0x2b4017):_0x968e82>0x3?_0xe99d38(_0x5d8df3,_0x3745d4,_0x2b4017):_0xe99d38(_0x5d8df3,_0x3745d4))||_0x2b4017);}return _0x968e82>0x3&&_0x2b4017&&Object[_0xc1d2ff(0x163)](_0x5d8df3,_0x3745d4,_0x2b4017),_0x2b4017;}let O=class extends _0x470969{constructor(_0x209d6d){const _0x2f0025=_0x59090d;super(),this[_0x2f0025(0x166)]=_0x209d6d;}[_0x59090d(0x149)](_0x3ca285){const _0x26586d=_0x59090d;var _0x4cc789;let _0x362f01=((_0x4cc789=this['_configService'][_0x26586d(0x145)](_0x1d236b))==null?void 0x0:_0x4cc789[_0x26586d(0x16c)])||{};try{let _0x2282bc=new _0x33e35c(_0x3ca285,{'headers':{..._0x362f01}}),_0x5d18a6=new _0xc209c3();return{'URL':_0x3ca285,'close':(_0x3ab16b,_0x44af28)=>{const _0x369f37=_0x26586d;_0x2282bc[_0x369f37(0x14b)](_0x3ab16b,_0x44af28),_0x5d18a6[_0x369f37(0x160)]();},'send':_0x343514=>{const _0x15982b=_0x26586d;_0x2282bc[_0x15982b(0x16a)](_0x343514);},'open$':new _0x38e503(_0x564413=>{const _0x91517c=_0x26586d;let _0x12e7cb=_0x25b89a=>_0x564413[_0x91517c(0x168)](_0x25b89a);_0x2282bc[_0x91517c(0x148)](_0x91517c(0x14e),_0x12e7cb),_0x5d18a6[_0x91517c(0x14a)](_0x2d154c(()=>_0x2282bc[_0x91517c(0x15e)](_0x91517c(0x14e),_0x12e7cb)));})[_0x26586d(0x143)](_0x2ebbe7()),'close$':new _0x38e503(_0x17d93d=>{const _0x5e7572=_0x26586d;let _0x3365e6=_0x566951=>_0x17d93d[_0x5e7572(0x168)](_0x566951);_0x2282bc['addEventListener'](_0x5e7572(0x14b),_0x3365e6),_0x5d18a6[_0x5e7572(0x14a)](_0x2d154c(()=>_0x2282bc['removeEventListener'](_0x5e7572(0x14b),_0x3365e6)));})['pipe'](_0x2ebbe7()),'error$':new _0x38e503(_0x5be6d9=>{const _0x589293=_0x26586d;let _0x13b339=_0x59574b=>_0x5be6d9[_0x589293(0x168)](_0x59574b);_0x2282bc[_0x589293(0x148)](_0x589293(0x15f),_0x13b339),_0x5d18a6['add'](_0x2d154c(()=>_0x2282bc[_0x589293(0x15e)]('error',_0x13b339)));})[_0x26586d(0x143)](_0x2ebbe7()),'message$':new _0x38e503(_0x4eba48=>{const _0x5ecc4c=_0x26586d;let _0x4ef866=_0x333fa1=>_0x4eba48['next'](_0x333fa1);_0x2282bc[_0x5ecc4c(0x148)](_0x5ecc4c(0x15b),_0x4ef866),_0x5d18a6[_0x5ecc4c(0x14a)](_0x2d154c(()=>_0x2282bc[_0x5ecc4c(0x15e)](_0x5ecc4c(0x15b),_0x4ef866)));})['pipe'](_0x2ebbe7())};}catch(_0x7845e7){return console[_0x26586d(0x15f)](_0x7845e7),null;}}};O=D([E(0x0,_0x889711)],O);function _0x4fae(){const _0x183665=['_doCreateSocket','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2019644IPUZtc','set','object','headers','message','_registerDependencies','11748550aBSEgo','removeEventListener','error','dispose','8utEmgk','decorate','defineProperty','default','toPrimitive','_configService','iterator','next','_injector','send','2XguGUg','customHeaders','setConfig','getOwnPropertyDescriptor','prototype','version','27954bVSdbZ','576042OvOlci','200eKPzUQ','_config','constructor','1.4.0','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','334486cMzdiq','pipe','registerHTTPInterceptor','getConfig','2735406ERCwSj','_httpService','addEventListener','createSocket','add','close','packageName','string','open','function','onStarting','length','2654141KHMPgF','symbol'];_0x4fae=function(){return _0x183665;};return _0x4fae();}function k(_0x2eaa54){'@babel/helpers - typeof';const _0x246b1f=_0x59090d;return k=typeof Symbol==_0x246b1f(0x14f)&&typeof Symbol[_0x246b1f(0x167)]=='symbol'?function(_0x44fbc1){return typeof _0x44fbc1;}:function(_0x3a46c4){const _0x26e5eb=_0x246b1f;return _0x3a46c4&&typeof Symbol=='function'&&_0x3a46c4[_0x26e5eb(0x13f)]===Symbol&&_0x3a46c4!==Symbol[_0x26e5eb(0x16f)]?'symbol':typeof _0x3a46c4;},k(_0x2eaa54);}function A(_0x224eb0,_0x2d420c){const _0x20cdb2=_0x59090d;if(k(_0x224eb0)!=_0x20cdb2(0x159)||!_0x224eb0)return _0x224eb0;var _0x2c66c5=_0x224eb0[Symbol[_0x20cdb2(0x165)]];if(_0x2c66c5!==void 0x0){var _0xbf4772=_0x2c66c5['call'](_0x224eb0,_0x2d420c||_0x20cdb2(0x164));if(k(_0xbf4772)!=_0x20cdb2(0x159))return _0xbf4772;throw TypeError(_0x20cdb2(0x156));}return(_0x2d420c===_0x20cdb2(0x14d)?String:Number)(_0x224eb0);}function j(_0x4c64a2){const _0x18096f=_0x59090d;var _0x132018=A(_0x4c64a2,_0x18096f(0x14d));return k(_0x132018)==_0x18096f(0x153)?_0x132018:_0x132018+'';}function M(_0x2b1eb1,_0x25371d,_0xef8cad){return(_0x25371d=j(_0x25371d))in _0x2b1eb1?Object['defineProperty'](_0x2b1eb1,_0x25371d,{'value':_0xef8cad,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b1eb1[_0x25371d]=_0xef8cad,_0x2b1eb1;}let N=class extends _0x219adf{constructor(_0x435659=T,_0xc66520,_0x59c580){const _0x99b1d5=_0x59090d;super(),this[_0x99b1d5(0x13e)]=_0x435659,this[_0x99b1d5(0x166)]=_0xc66520,this[_0x99b1d5(0x169)]=_0x59c580;let {..._0x2a0fe8}=_0x51f70e({},T,this[_0x99b1d5(0x13e)]);this['_configService'][_0x99b1d5(0x16d)]('collaboration-client-node.config',_0x2a0fe8);}[_0x59090d(0x150)](){const _0x1a46c6=_0x59090d;this[_0x1a46c6(0x15c)]();}[_0x59090d(0x15c)](){const _0x12d8ec=_0x59090d;_0x3e275f(this[_0x12d8ec(0x169)],[[_0x2268e0,{'useClass':O}]]);}};M(N,_0x59090d(0x155),_0x59090d(0x141)),M(N,_0x59090d(0x14c),C),M(N,_0x59090d(0x170),w),N=D([_0x252588(_0x546296,_0x1abc4b,_0x51d679,_0x25a16c),E(0x1,_0x889711),E(0x2,_0x5e1919(_0x4683da))],N);let P=class extends _0x35eb1a{constructor(_0x419926,_0x116e90,_0x2c9ddf,_0x8b2a15,_0x34a060){const _0x22b31f=_0x59090d;super(_0x419926,_0x116e90,_0x2c9ddf,_0x8b2a15,_0x34a060);let _0x188f61=this[_0x22b31f(0x166)][_0x22b31f(0x145)](_0x1d236b);this[_0x22b31f(0x147)][_0x22b31f(0x144)]({'interceptor':(_0x30d5bd,_0xce93e6)=>{const _0x207a8d=_0x22b31f;let _0x528bba=_0x30d5bd[_0x207a8d(0x15a)];if(_0x188f61!=null&&_0x188f61['customHeaders']){for(let _0x485110 in _0x188f61[_0x207a8d(0x16c)])_0x528bba[_0x207a8d(0x158)](_0x485110,_0x188f61[_0x207a8d(0x16c)][_0x485110]);}return _0xce93e6(_0x30d5bd);}});}async[_0x59090d(0x149)](_0x4304b6){const _0x38b949=_0x59090d;return this[_0x38b949(0x154)](_0x4304b6);}};P=D([E(0x0,_0x5e1919(_0x4683da)),E(0x1,_0x5e1919(_0x152225)),E(0x2,_0x889711),E(0x3,_0x47a811),E(0x4,_0x5b3b8f)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x5c5736=_0x1a65;(function(_0x50d104,_0x191f12){const _0x3ad77b=_0x1a65,_0x1acffb=_0x50d104();while(!![]){try{const _0x41a5ce=-parseInt(_0x3ad77b(0xb1))/0x1*(parseInt(_0x3ad77b(0xd0))/0x2)+-parseInt(_0x3ad77b(0xb4))/0x3+parseInt(_0x3ad77b(0xde))/0x4+parseInt(_0x3ad77b(0xd8))/0x5*(parseInt(_0x3ad77b(0xc9))/0x6)+parseInt(_0x3ad77b(0xb7))/0x7+-parseInt(_0x3ad77b(0xcc))/0x8*(parseInt(_0x3ad77b(0xb9))/0x9)+-parseInt(_0x3ad77b(0xc8))/0xa*(-parseInt(_0x3ad77b(0xbb))/0xb);if(_0x41a5ce===_0x191f12)break;else _0x1acffb['push'](_0x1acffb['shift']());}catch(_0xd41a51){_0x1acffb['push'](_0x1acffb['shift']());}}}(_0x21dc,0xe3f96));function _0x21dc(){const _0x3f62fe=['customHeaders','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','8KbBaNa','_configService','_httpService','pluginName','556806HwKvNd','object','length','symbol','error','default','pipe','setConfig','8970305MyZWRh','_registerDependencies','constructor','_injector','createSocket','message','5012676OiQorB','decorate','addEventListener','prototype','_doCreateSocket','6whoWfZ','toPrimitive','_config','3773538vKzDwX','send','next','126091nhmSWf','1.5.0','4240449XVaGhU','collaboration-client-node.config','44LxENzM','add','defineProperty','getOwnPropertyDescriptor','function','close','@univerjs-pro/collaboration-client-node','open','getConfig','removeEventListener','registerHTTPInterceptor','packageName','iterator','3169910GslBoV','6mtzHfA'];_0x21dc=function(){return _0x3f62fe;};return _0x21dc();}import{ISnapshotServerService as _0x315d99,UniverCollaborationPlugin as _0x3c9b38}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1871fa,CollaborationSocketService as _0x126b73,UniverCollaborationClientPlugin as _0x2d1a44}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x21378c}from'@univerjs-pro/license';import{DependentOn as _0x4679d4,Disposable as _0x4b2a42,DisposableCollection as _0x2f75fb,IConfigService as _0x566325,ILogService as _0xc16fad,Inject as _0x5322bc,Injector as _0x669579,Plugin as _0x2ca854,merge as _0x586a27,registerDependencies as _0x37ca6a,toDisposable as _0x159ab8}from'@univerjs/core';import{HTTPService as _0x9c7f3e,ISocketService as _0x2dc373,UniverNetworkPlugin as _0x2f0628}from'@univerjs/network';import{Observable as _0x399bb6,share as _0xeaf8f3}from'rxjs';import{WebSocket as _0x367cb6}from'ws';var C=_0x5c5736(0xc1),w=_0x5c5736(0xb8);const T={};function E(_0x4e8232,_0x4a74c2){return function(_0x2280ca,_0xdb882b){_0x4a74c2(_0x2280ca,_0xdb882b,_0x4e8232);};}function D(_0x4aae77,_0x5bf02c,_0x42674d,_0x3b57cd){const _0x4d4153=_0x5c5736;var _0xfc0c20=arguments[_0x4d4153(0xd2)],_0x3b799a=_0xfc0c20<0x3?_0x5bf02c:_0x3b57cd===null?_0x3b57cd=Object[_0x4d4153(0xbe)](_0x5bf02c,_0x42674d):_0x3b57cd,_0x401442;if(typeof Reflect==_0x4d4153(0xd1)&&typeof Reflect[_0x4d4153(0xdf)]==_0x4d4153(0xbf))_0x3b799a=Reflect[_0x4d4153(0xdf)](_0x4aae77,_0x5bf02c,_0x42674d,_0x3b57cd);else{for(var _0x1f159d=_0x4aae77[_0x4d4153(0xd2)]-0x1;_0x1f159d>=0x0;_0x1f159d--)(_0x401442=_0x4aae77[_0x1f159d])&&(_0x3b799a=(_0xfc0c20<0x3?_0x401442(_0x3b799a):_0xfc0c20>0x3?_0x401442(_0x5bf02c,_0x42674d,_0x3b799a):_0x401442(_0x5bf02c,_0x42674d))||_0x3b799a);}return _0xfc0c20>0x3&&_0x3b799a&&Object['defineProperty'](_0x5bf02c,_0x42674d,_0x3b799a),_0x3b799a;}let O=class extends _0x4b2a42{constructor(_0x2325f9){super(),this['_configService']=_0x2325f9;}[_0x5c5736(0xdc)](_0x3aa334){const _0x564ef6=_0x5c5736;var _0x57969c;let _0x5455d7=((_0x57969c=this[_0x564ef6(0xcd)]['getConfig'](_0x1871fa))==null?void 0x0:_0x57969c['customHeaders'])||{};try{let _0xb819eb=new _0x367cb6(_0x3aa334,{'headers':{..._0x5455d7}}),_0x4ab92f=new _0x2f75fb();return{'URL':_0x3aa334,'close':(_0xcfa829,_0x5e4640)=>{_0xb819eb['close'](_0xcfa829,_0x5e4640),_0x4ab92f['dispose']();},'send':_0x4d3180=>{const _0x4c8a9d=_0x564ef6;_0xb819eb[_0x4c8a9d(0xb5)](_0x4d3180);},'open$':new _0x399bb6(_0x327a4b=>{const _0x244b76=_0x564ef6;let _0x16efeb=_0x69244c=>_0x327a4b['next'](_0x69244c);_0xb819eb['addEventListener']('open',_0x16efeb),_0x4ab92f[_0x244b76(0xbc)](_0x159ab8(()=>_0xb819eb[_0x244b76(0xc4)](_0x244b76(0xc2),_0x16efeb)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'close$':new _0x399bb6(_0x5602cf=>{const _0x441f82=_0x564ef6;let _0x3e79d1=_0x5da07f=>_0x5602cf[_0x441f82(0xb6)](_0x5da07f);_0xb819eb['addEventListener']('close',_0x3e79d1),_0x4ab92f[_0x441f82(0xbc)](_0x159ab8(()=>_0xb819eb[_0x441f82(0xc4)](_0x441f82(0xc0),_0x3e79d1)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'error$':new _0x399bb6(_0x48545c=>{const _0x49cffd=_0x564ef6;let _0x1050a5=_0x50a749=>_0x48545c['next'](_0x50a749);_0xb819eb[_0x49cffd(0xe0)](_0x49cffd(0xd4),_0x1050a5),_0x4ab92f[_0x49cffd(0xbc)](_0x159ab8(()=>_0xb819eb[_0x49cffd(0xc4)](_0x49cffd(0xd4),_0x1050a5)));})[_0x564ef6(0xd6)](_0xeaf8f3()),'message$':new _0x399bb6(_0x2d0736=>{const _0x4fea7a=_0x564ef6;let _0x2e53bd=_0x4ffbed=>_0x2d0736[_0x4fea7a(0xb6)](_0x4ffbed);_0xb819eb['addEventListener'](_0x4fea7a(0xdd),_0x2e53bd),_0x4ab92f[_0x4fea7a(0xbc)](_0x159ab8(()=>_0xb819eb[_0x4fea7a(0xc4)](_0x4fea7a(0xdd),_0x2e53bd)));})[_0x564ef6(0xd6)](_0xeaf8f3())};}catch(_0x198e19){return console[_0x564ef6(0xd4)](_0x198e19),null;}}};O=D([E(0x0,_0x566325)],O);function k(_0x46b9f2){'@babel/helpers - typeof';const _0xbf82b5=_0x5c5736;return k=typeof Symbol==_0xbf82b5(0xbf)&&typeof Symbol[_0xbf82b5(0xc7)]==_0xbf82b5(0xd3)?function(_0x1832b2){return typeof _0x1832b2;}:function(_0x4bc765){const _0x4545f5=_0xbf82b5;return _0x4bc765&&typeof Symbol==_0x4545f5(0xbf)&&_0x4bc765[_0x4545f5(0xda)]===Symbol&&_0x4bc765!==Symbol[_0x4545f5(0xaf)]?_0x4545f5(0xd3):typeof _0x4bc765;},k(_0x46b9f2);}function A(_0x2d6fed,_0x3b8dc0){const _0x55f8a4=_0x5c5736;if(k(_0x2d6fed)!=_0x55f8a4(0xd1)||!_0x2d6fed)return _0x2d6fed;var _0x1e4586;if(typeof Symbol<'u'&&(_0x1e4586=_0x2d6fed[Symbol[_0x55f8a4(0xb2)]])!==void 0x0){var _0x10348c=_0x1e4586['call'](_0x2d6fed,_0x3b8dc0||_0x55f8a4(0xd5));if(k(_0x10348c)!='object')return _0x10348c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3b8dc0==='string'?String:Number)(_0x2d6fed);}function j(_0x11c940){const _0x59981d=_0x5c5736;var _0x560e3f=A(_0x11c940,'string');return k(_0x560e3f)==_0x59981d(0xd3)?_0x560e3f:_0x560e3f+'';}function M(_0x41b5f6,_0x50a09c,_0x83cc3b){const _0xc3b925=_0x5c5736;return(_0x50a09c=j(_0x50a09c))in _0x41b5f6?Object[_0xc3b925(0xbd)](_0x41b5f6,_0x50a09c,{'value':_0x83cc3b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41b5f6[_0x50a09c]=_0x83cc3b,_0x41b5f6;}let N=class extends _0x2ca854{constructor(_0xa08031=T,_0x53e7ee,_0x25364b){const _0x4db3a9=_0x5c5736;super(),this[_0x4db3a9(0xb3)]=_0xa08031,this['_configService']=_0x53e7ee,this[_0x4db3a9(0xdb)]=_0x25364b;let {..._0x2eece6}=_0x586a27({},T,this[_0x4db3a9(0xb3)]);this['_configService'][_0x4db3a9(0xd7)](_0x4db3a9(0xba),_0x2eece6);}['onStarting'](){const _0x1512d4=_0x5c5736;this[_0x1512d4(0xd9)]();}[_0x5c5736(0xd9)](){const _0x350e47=_0x5c5736;_0x37ca6a(this[_0x350e47(0xdb)],[[_0x2dc373,{'useClass':O}]]);}};M(N,_0x5c5736(0xcf),_0x5c5736(0xcb)),M(N,_0x5c5736(0xc6),C),M(N,'version',w),N=D([_0x4679d4(_0x21378c,_0x2f0628,_0x3c9b38,_0x2d1a44),E(0x1,_0x566325),E(0x2,_0x5322bc(_0x669579))],N);let P=class extends _0x126b73{constructor(_0x336b27,_0x59a342,_0x8edd57,_0x544973,_0x2cbefb){const _0x4b2de4=_0x5c5736;super(_0x336b27,_0x59a342,_0x8edd57,_0x544973,_0x2cbefb);let _0x213953=this[_0x4b2de4(0xcd)][_0x4b2de4(0xc3)](_0x1871fa);this[_0x4b2de4(0xce)][_0x4b2de4(0xc5)]({'interceptor':(_0x420339,_0x3c2b9d)=>{const _0x32c7f8=_0x4b2de4;let _0x2719b5=_0x420339['headers'];if(_0x213953!=null&&_0x213953[_0x32c7f8(0xca)]){for(let _0x311b55 in _0x213953[_0x32c7f8(0xca)])_0x2719b5['set'](_0x311b55,_0x213953[_0x32c7f8(0xca)][_0x311b55]);}return _0x3c2b9d(_0x420339);}});}async[_0x5c5736(0xdc)](_0xd77edb){const _0x5aca64=_0x5c5736;return this[_0x5aca64(0xb0)](_0xd77edb);}};P=D([E(0x0,_0x5322bc(_0x669579)),E(0x1,_0x5322bc(_0x9c7f3e)),E(0x2,_0x566325),E(0x3,_0xc16fad),E(0x4,_0x315d99)],P);function _0x1a65(_0x4f9f6b,_0x14760f){_0x4f9f6b=_0x4f9f6b-0xaf;const _0x21dc56=_0x21dc();let _0x1a65e0=_0x21dc56[_0x4f9f6b];return _0x1a65e0;}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x986c76,_0x3986e4){const _0x346b38=_0x38fa,_0x2c50b1=_0x986c76();while(!![]){try{const _0x4d734d=parseInt(_0x346b38(0x18c))/0x1*(parseInt(_0x346b38(0x159))/0x2)+-parseInt(_0x346b38(0x149))/0x3+parseInt(_0x346b38(0x16c))/0x4+parseInt(_0x346b38(0x13d))/0x5+parseInt(_0x346b38(0x14a))/0x6+parseInt(_0x346b38(0x15e))/0x7*(parseInt(_0x346b38(0x15c))/0x8)+-parseInt(_0x346b38(0x18f))/0x9;if(_0x4d734d===_0x3986e4)break;else _0x2c50b1['push'](_0x2c50b1['shift']());}catch(_0x126e8f){_0x2c50b1['push'](_0x2c50b1['shift']());}}}(_0xc473,0x35af7),function(_0x442a13,_0x30334f){const _0x330f0c=_0x38fa;typeof exports==_0x330f0c(0x164)&&typeof module<'u'?_0x30334f(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x330f0c(0x178)&&define[_0x330f0c(0x150)]?define(['exports',_0x330f0c(0x16d),_0x330f0c(0x145),'@univerjs-pro/license',_0x330f0c(0x17f),_0x330f0c(0x16e),_0x330f0c(0x17a)],_0x30334f):(_0x442a13=typeof globalThis<'u'?globalThis:_0x442a13||self,_0x30334f(_0x442a13[_0x330f0c(0x175)]={},_0x442a13[_0x330f0c(0x141)],_0x442a13[_0x330f0c(0x17c)],_0x442a13[_0x330f0c(0x154)],_0x442a13['UniverCore'],_0x442a13[_0x330f0c(0x176)],_0x442a13[_0x330f0c(0x17a)]));}(this,function(_0xb1a2cc,_0x476004,_0x1cc665,_0x252b7a,_0x321c9a,_0x14a989,_0xe5f44b){const _0xaabc27=_0x38fa;Object[_0xaabc27(0x18a)](_0xb1a2cc,Symbol['toStringTag'],{'value':'Module'});var _0x2af3d3=(_0x28982f,_0x1baad1)=>()=>(_0x1baad1||(_0x28982f((_0x1baad1={'exports':{}})['exports'],_0x1baad1,_0x1baad1[_0xaabc27(0x155)]),_0x28982f=null),_0x1baad1['exports']),_0x40b601='@univerjs-pro/collaboration-client-node',_0x5bfe21=_0xaabc27(0x181);let _0x349717={};var _0x36e9ed=_0x2af3d3((_0x7ea15,_0x4f076a)=>{const _0x2aa323=_0xaabc27;_0x4f076a[_0x2aa323(0x155)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x325b11(_0x4b2f6c,_0x30a294){return function(_0x24051b,_0x5e40bf){_0x30a294(_0x24051b,_0x5e40bf,_0x4b2f6c);};}function _0x2f708b(_0x407502,_0x18fa64,_0x9412d7,_0x14d30f){const _0x1ef451=_0xaabc27;var _0x2b725f=arguments[_0x1ef451(0x13e)],_0x1f79c8=_0x2b725f<0x3?_0x18fa64:_0x14d30f===null?_0x14d30f=Object[_0x1ef451(0x142)](_0x18fa64,_0x9412d7):_0x14d30f,_0x46d913;if(typeof Reflect==_0x1ef451(0x164)&&typeof Reflect[_0x1ef451(0x15f)]==_0x1ef451(0x178))_0x1f79c8=Reflect[_0x1ef451(0x15f)](_0x407502,_0x18fa64,_0x9412d7,_0x14d30f);else{for(var _0x1eb7e4=_0x407502[_0x1ef451(0x13e)]-0x1;_0x1eb7e4>=0x0;_0x1eb7e4--)(_0x46d913=_0x407502[_0x1eb7e4])&&(_0x1f79c8=(_0x2b725f<0x3?_0x46d913(_0x1f79c8):_0x2b725f>0x3?_0x46d913(_0x18fa64,_0x9412d7,_0x1f79c8):_0x46d913(_0x18fa64,_0x9412d7))||_0x1f79c8);}return _0x2b725f>0x3&&_0x1f79c8&&Object[_0x1ef451(0x18a)](_0x18fa64,_0x9412d7,_0x1f79c8),_0x1f79c8;}let _0x452dea=class extends _0x321c9a[_0xaabc27(0x186)]{constructor(_0x5b1697){super(),this['_configService']=_0x5b1697;}[_0xaabc27(0x182)](_0x3ed940){const _0x4644d2=_0xaabc27;var _0x5a83b9;let _0x33924f=((_0x5a83b9=this['_configService'][_0x4644d2(0x172)](_0x1cc665[_0x4644d2(0x166)]))==null?void 0x0:_0x5a83b9[_0x4644d2(0x14f)])||{};try{let _0x1c5a7d=new _0x36e9ed[(_0x4644d2(0x14e))](_0x3ed940,{'headers':{..._0x33924f}}),_0x34530c=new _0x321c9a['DisposableCollection']();return{'URL':_0x3ed940,'close':(_0x27396a,_0xcbbd59)=>{_0x1c5a7d['close'](_0x27396a,_0xcbbd59),_0x34530c['dispose']();},'send':_0xf0a94b=>{const _0x53fed6=_0x4644d2;_0x1c5a7d[_0x53fed6(0x156)](_0xf0a94b);},'open$':new _0xe5f44b['Observable'](_0x4fb692=>{const _0x505774=_0x4644d2;let _0x2bfaf8=_0x29cf2e=>_0x4fb692['next'](_0x29cf2e);_0x1c5a7d['addEventListener']('open',_0x2bfaf8),_0x34530c[_0x505774(0x15b)]((0x0,_0x321c9a[_0x505774(0x162)])(()=>_0x1c5a7d[_0x505774(0x171)](_0x505774(0x16b),_0x2bfaf8)));})[_0x4644d2(0x179)]((0x0,_0xe5f44b[_0x4644d2(0x184)])()),'close$':new _0xe5f44b[(_0x4644d2(0x174))](_0x2fa58a=>{const _0x2fc63c=_0x4644d2;let _0x1d6186=_0x58ca66=>_0x2fa58a[_0x2fc63c(0x190)](_0x58ca66);_0x1c5a7d[_0x2fc63c(0x14c)](_0x2fc63c(0x18b),_0x1d6186),_0x34530c[_0x2fc63c(0x15b)]((0x0,_0x321c9a[_0x2fc63c(0x162)])(()=>_0x1c5a7d[_0x2fc63c(0x171)](_0x2fc63c(0x18b),_0x1d6186)));})[_0x4644d2(0x179)]((0x0,_0xe5f44b[_0x4644d2(0x184)])()),'error$':new _0xe5f44b[(_0x4644d2(0x174))](_0x2ccec0=>{const _0x112e36=_0x4644d2;let _0x51c17d=_0xbf6c6b=>_0x2ccec0[_0x112e36(0x190)](_0xbf6c6b);_0x1c5a7d[_0x112e36(0x14c)](_0x112e36(0x173),_0x51c17d),_0x34530c['add']((0x0,_0x321c9a[_0x112e36(0x162)])(()=>_0x1c5a7d[_0x112e36(0x171)](_0x112e36(0x173),_0x51c17d)));})['pipe']((0x0,_0xe5f44b[_0x4644d2(0x184)])()),'message$':new _0xe5f44b[(_0x4644d2(0x174))](_0x5c14fb=>{const _0x4541df=_0x4644d2;let _0x93d2c9=_0x4b20e8=>_0x5c14fb[_0x4541df(0x190)](_0x4b20e8);_0x1c5a7d[_0x4541df(0x14c)](_0x4541df(0x168),_0x93d2c9),_0x34530c[_0x4541df(0x15b)]((0x0,_0x321c9a[_0x4541df(0x162)])(()=>_0x1c5a7d[_0x4541df(0x171)](_0x4541df(0x168),_0x93d2c9)));})[_0x4644d2(0x179)]((0x0,_0xe5f44b[_0x4644d2(0x184)])())};}catch(_0x55d18c){return console['error'](_0x55d18c),null;}}};_0x452dea=_0x2f708b([_0x325b11(0x0,_0x321c9a[_0xaabc27(0x15d)])],_0x452dea);function _0x5ab28e(_0x1b0c75){'@babel/helpers - typeof';const _0x11adb1=_0xaabc27;return _0x5ab28e=typeof Symbol==_0x11adb1(0x178)&&typeof Symbol[_0x11adb1(0x158)]==_0x11adb1(0x169)?function(_0x326109){return typeof _0x326109;}:function(_0x15474e){const _0x49d2ee=_0x11adb1;return _0x15474e&&typeof Symbol=='function'&&_0x15474e[_0x49d2ee(0x148)]===Symbol&&_0x15474e!==Symbol[_0x49d2ee(0x14d)]?_0x49d2ee(0x169):typeof _0x15474e;},_0x5ab28e(_0x1b0c75);}function _0x463c35(_0x105a7c,_0x4f63bc){const _0x22b6ae=_0xaabc27;if(_0x5ab28e(_0x105a7c)!=_0x22b6ae(0x164)||!_0x105a7c)return _0x105a7c;var _0x142101=_0x105a7c[Symbol[_0x22b6ae(0x143)]];if(_0x142101!==void 0x0){var _0x4cc8af=_0x142101[_0x22b6ae(0x160)](_0x105a7c,_0x4f63bc||_0x22b6ae(0x18e));if(_0x5ab28e(_0x4cc8af)!=_0x22b6ae(0x164))return _0x4cc8af;throw TypeError(_0x22b6ae(0x17b));}return(_0x4f63bc===_0x22b6ae(0x161)?String:Number)(_0x105a7c);}function _0x353f85(_0x4a2f7d){const _0x296ec9=_0xaabc27;var _0x148f12=_0x463c35(_0x4a2f7d,_0x296ec9(0x161));return _0x5ab28e(_0x148f12)==_0x296ec9(0x169)?_0x148f12:_0x148f12+'';}function _0x4357ec(_0x40c193,_0x5a825e,_0x39fd7d){const _0x20a206=_0xaabc27;return(_0x5a825e=_0x353f85(_0x5a825e))in _0x40c193?Object[_0x20a206(0x18a)](_0x40c193,_0x5a825e,{'value':_0x39fd7d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40c193[_0x5a825e]=_0x39fd7d,_0x40c193;}let _0x4f8a1f=class extends _0x321c9a['Plugin']{constructor(_0x3f428e=_0x349717,_0x57fdbf,_0x44da79){const _0x159fa9=_0xaabc27;super(),this[_0x159fa9(0x17d)]=_0x3f428e,this[_0x159fa9(0x153)]=_0x57fdbf,this[_0x159fa9(0x16f)]=_0x44da79;let {..._0x23e06b}=(0x0,_0x321c9a[_0x159fa9(0x180)])({},_0x349717,this[_0x159fa9(0x17d)]);this['_configService'][_0x159fa9(0x165)](_0x159fa9(0x15a),_0x23e06b);}['onStarting'](){const _0xd8eaa7=_0xaabc27;this[_0xd8eaa7(0x167)]();}[_0xaabc27(0x167)](){const _0x59c1f1=_0xaabc27;(0x0,_0x321c9a[_0x59c1f1(0x187)])(this[_0x59c1f1(0x16f)],[[_0x14a989[_0x59c1f1(0x183)],{'useClass':_0x452dea}]]);}};_0x4357ec(_0x4f8a1f,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x4357ec(_0x4f8a1f,_0xaabc27(0x152),_0x40b601),_0x4357ec(_0x4f8a1f,_0xaabc27(0x17e),_0x5bfe21),_0x4f8a1f=_0x2f708b([(0x0,_0x321c9a[_0xaabc27(0x14b)])(_0x252b7a[_0xaabc27(0x177)],_0x14a989[_0xaabc27(0x144)],_0x476004[_0xaabc27(0x157)],_0x1cc665['UniverCollaborationClientPlugin']),_0x325b11(0x1,_0x321c9a[_0xaabc27(0x15d)]),_0x325b11(0x2,(0x0,_0x321c9a[_0xaabc27(0x188)])(_0x321c9a[_0xaabc27(0x170)]))],_0x4f8a1f);let _0x2c1f50=class extends _0x1cc665[_0xaabc27(0x189)]{constructor(_0x277d76,_0x422bc3,_0x27c5d7,_0x2ed71f,_0x1bf08e){const _0x4a121a=_0xaabc27;super(_0x277d76,_0x422bc3,_0x27c5d7,_0x2ed71f,_0x1bf08e);let _0x270c07=this[_0x4a121a(0x153)]['getConfig'](_0x1cc665[_0x4a121a(0x166)]);this['_httpService'][_0x4a121a(0x146)]({'interceptor':(_0x4322e4,_0x9a8448)=>{const _0x45d5b6=_0x4a121a;let _0x1ba830=_0x4322e4[_0x45d5b6(0x185)];if(_0x270c07!=null&&_0x270c07['customHeaders']){for(let _0x33a0b5 in _0x270c07[_0x45d5b6(0x14f)])_0x1ba830[_0x45d5b6(0x151)](_0x33a0b5,_0x270c07[_0x45d5b6(0x14f)][_0x33a0b5]);}return _0x9a8448(_0x4322e4);}});}async['createSocket'](_0x1d46c8){const _0x492db4=_0xaabc27;return this[_0x492db4(0x18d)](_0x1d46c8);}};_0x2c1f50=_0x2f708b([_0x325b11(0x0,(0x0,_0x321c9a[_0xaabc27(0x188)])(_0x321c9a[_0xaabc27(0x170)])),_0x325b11(0x1,(0x0,_0x321c9a['Inject'])(_0x14a989[_0xaabc27(0x163)])),_0x325b11(0x2,_0x321c9a[_0xaabc27(0x15d)]),_0x325b11(0x3,_0x321c9a[_0xaabc27(0x13f)]),_0x325b11(0x4,_0x476004[_0xaabc27(0x147)])],_0x2c1f50),Object[_0xaabc27(0x18a)](_0xb1a2cc,_0xaabc27(0x140),{'enumerable':!0x0,'get':function(){return _0x2c1f50;}}),Object[_0xaabc27(0x18a)](_0xb1a2cc,_0xaabc27(0x16a),{'enumerable':!0x0,'get':function(){return _0x4f8a1f;}});}));function _0x38fa(_0xc55ff0,_0x744c7){_0xc55ff0=_0xc55ff0-0x13d;const _0xc47335=_0xc473();let _0x38fa7f=_0xc47335[_0xc55ff0];return _0x38fa7f;}function _0xc473(){const _0x403db0=['Inject','CollaborationSocketService','defineProperty','close','156830ujbtJT','_doCreateSocket','default','7914564DCfnvm','next','1251580NQSrGf','length','ILogService','NodeCollaborationSocketService','UniverProCollaboration','getOwnPropertyDescriptor','toPrimitive','UniverNetworkPlugin','@univerjs-pro/collaboration-client','registerHTTPInterceptor','ISnapshotServerService','constructor','1080237TJNCiQ','2396958YSXUtw','DependentOn','addEventListener','prototype','WebSocket','customHeaders','amd','set','packageName','_configService','UniverProLicense','exports','send','UniverCollaborationPlugin','iterator','2Dusozh','collaboration-client-node.config','add','128904QtOcny','IConfigService','133CxwIty','decorate','call','string','toDisposable','HTTPService','object','setConfig','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_registerDependencies','message','symbol','UniverCollaborationClientNodePlugin','open','1386336RTfDNn','@univerjs-pro/collaboration','@univerjs/network','_injector','Injector','removeEventListener','getConfig','error','Observable','UniverProCollaborationClientNode','UniverNetwork','UniverLicensePlugin','function','pipe','rxjs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverProCollaborationClient','_config','version','@univerjs/core','merge','1.4.0','createSocket','ISocketService','share','headers','Disposable','registerDependencies'];_0xc473=function(){return _0x403db0;};return _0xc473();}
1
+ function _0x4fae(_0x2b77fb,_0x43b407){_0x2b77fb=_0x2b77fb-0xf7;const _0x4db131=_0x4db1();let _0x4fae48=_0x4db131[_0x2b77fb];return _0x4fae48;}(function(_0x30279f,_0x4a2e9d){const _0x3f7b87=_0x4fae,_0x32e481=_0x30279f();while(!![]){try{const _0x2b82f2=-parseInt(_0x3f7b87(0x150))/0x1*(parseInt(_0x3f7b87(0x11d))/0x2)+-parseInt(_0x3f7b87(0x10a))/0x3*(-parseInt(_0x3f7b87(0x11a))/0x4)+parseInt(_0x3f7b87(0x142))/0x5*(-parseInt(_0x3f7b87(0x104))/0x6)+parseInt(_0x3f7b87(0x14d))/0x7+parseInt(_0x3f7b87(0x13b))/0x8*(-parseInt(_0x3f7b87(0x141))/0x9)+-parseInt(_0x3f7b87(0x126))/0xa*(parseInt(_0x3f7b87(0x123))/0xb)+-parseInt(_0x3f7b87(0x106))/0xc*(-parseInt(_0x3f7b87(0x122))/0xd);if(_0x2b82f2===_0x4a2e9d)break;else _0x32e481['push'](_0x32e481['shift']());}catch(_0x2688d2){_0x32e481['push'](_0x32e481['shift']());}}}(_0x4db1,0xe69b3),function(_0x996545,_0x14e226){const _0x37d037=_0x4fae;typeof exports==_0x37d037(0x110)&&typeof module<'u'?_0x14e226(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x37d037(0xfc)&&define[_0x37d037(0xfd)]?define([_0x37d037(0x140),_0x37d037(0x14c),_0x37d037(0x108),_0x37d037(0xf9),_0x37d037(0x115),_0x37d037(0x107),_0x37d037(0x14a)],_0x14e226):(_0x996545=typeof globalThis<'u'?globalThis:_0x996545||self,_0x14e226(_0x996545[_0x37d037(0x111)]={},_0x996545[_0x37d037(0x118)],_0x996545[_0x37d037(0x147)],_0x996545[_0x37d037(0x131)],_0x996545[_0x37d037(0x12b)],_0x996545['UniverNetwork'],_0x996545[_0x37d037(0x14a)]));}(this,function(_0x57ef3c,_0x58149b,_0x45eaca,_0x7c75e,_0x2b6870,_0x364c73,_0x4701c4){const _0x2afafa=_0x4fae;Object[_0x2afafa(0x121)](_0x57ef3c,Symbol[_0x2afafa(0x119)],{'value':_0x2afafa(0x11c)});var _0x44d7fb=(_0x237d42,_0x1e977c)=>()=>(_0x1e977c||(_0x237d42((_0x1e977c={'exports':{}})['exports'],_0x1e977c,_0x1e977c[_0x2afafa(0x140)]),_0x237d42=null),_0x1e977c[_0x2afafa(0x140)]),_0x54b9d8=_0x2afafa(0x116),_0x23ebe1='1.5.0';let _0x6f3327={};var _0x8e9d62=_0x44d7fb((_0x5d3511,_0x1e54c6)=>{_0x1e54c6['exports']=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x4e7ec9(_0x5131d4,_0x434d87){return function(_0x1cfb0c,_0xd2791f){_0x434d87(_0x1cfb0c,_0xd2791f,_0x5131d4);};}function _0x45bc58(_0x36caa5,_0xe6c7de,_0x3fb0c4,_0x4321dc){const _0x419eb7=_0x2afafa;var _0x29c2c7=arguments[_0x419eb7(0x134)],_0x4c23a2=_0x29c2c7<0x3?_0xe6c7de:_0x4321dc===null?_0x4321dc=Object[_0x419eb7(0x132)](_0xe6c7de,_0x3fb0c4):_0x4321dc,_0x195fac;if(typeof Reflect==_0x419eb7(0x110)&&typeof Reflect[_0x419eb7(0xfb)]==_0x419eb7(0xfc))_0x4c23a2=Reflect['decorate'](_0x36caa5,_0xe6c7de,_0x3fb0c4,_0x4321dc);else{for(var _0x5c2f95=_0x36caa5[_0x419eb7(0x134)]-0x1;_0x5c2f95>=0x0;_0x5c2f95--)(_0x195fac=_0x36caa5[_0x5c2f95])&&(_0x4c23a2=(_0x29c2c7<0x3?_0x195fac(_0x4c23a2):_0x29c2c7>0x3?_0x195fac(_0xe6c7de,_0x3fb0c4,_0x4c23a2):_0x195fac(_0xe6c7de,_0x3fb0c4))||_0x4c23a2);}return _0x29c2c7>0x3&&_0x4c23a2&&Object[_0x419eb7(0x121)](_0xe6c7de,_0x3fb0c4,_0x4c23a2),_0x4c23a2;}let _0x36cdd8=class extends _0x2b6870[_0x2afafa(0x128)]{constructor(_0x99fb05){const _0x5b96bd=_0x2afafa;super(),this[_0x5b96bd(0x12c)]=_0x99fb05;}[_0x2afafa(0x11e)](_0x54bebc){const _0x585f88=_0x2afafa;var _0x525584;let _0x220a46=((_0x525584=this[_0x585f88(0x12c)][_0x585f88(0x112)](_0x45eaca[_0x585f88(0x10c)]))==null?void 0x0:_0x525584[_0x585f88(0x10d)])||{};try{let _0x116ce0=new _0x8e9d62[(_0x585f88(0x135))](_0x54bebc,{'headers':{..._0x220a46}}),_0x3096a9=new _0x2b6870[(_0x585f88(0x12e))]();return{'URL':_0x54bebc,'close':(_0x5f22ab,_0x4d95b8)=>{const _0x28e53d=_0x585f88;_0x116ce0['close'](_0x5f22ab,_0x4d95b8),_0x3096a9[_0x28e53d(0x13f)]();},'send':_0x5dbab8=>{const _0x3ebdf6=_0x585f88;_0x116ce0[_0x3ebdf6(0x12f)](_0x5dbab8);},'open$':new _0x4701c4[(_0x585f88(0x149))](_0x35d699=>{const _0x272a58=_0x585f88;let _0x4cf03c=_0x47ef36=>_0x35d699[_0x272a58(0x13c)](_0x47ef36);_0x116ce0['addEventListener'](_0x272a58(0x101),_0x4cf03c),_0x3096a9[_0x272a58(0x14b)]((0x0,_0x2b6870[_0x272a58(0x151)])(()=>_0x116ce0[_0x272a58(0x105)]('open',_0x4cf03c)));})[_0x585f88(0x137)]((0x0,_0x4701c4['share'])()),'close$':new _0x4701c4[(_0x585f88(0x149))](_0x1ae7d1=>{const _0x286824=_0x585f88;let _0x110365=_0x411fc8=>_0x1ae7d1[_0x286824(0x13c)](_0x411fc8);_0x116ce0[_0x286824(0xfa)](_0x286824(0x13e),_0x110365),_0x3096a9[_0x286824(0x14b)]((0x0,_0x2b6870[_0x286824(0x151)])(()=>_0x116ce0[_0x286824(0x105)](_0x286824(0x13e),_0x110365)));})[_0x585f88(0x137)]((0x0,_0x4701c4[_0x585f88(0x148)])()),'error$':new _0x4701c4[(_0x585f88(0x149))](_0x37fa04=>{const _0x1a38ff=_0x585f88;let _0x1dd25d=_0x5c3285=>_0x37fa04[_0x1a38ff(0x13c)](_0x5c3285);_0x116ce0[_0x1a38ff(0xfa)](_0x1a38ff(0x10f),_0x1dd25d),_0x3096a9[_0x1a38ff(0x14b)]((0x0,_0x2b6870[_0x1a38ff(0x151)])(()=>_0x116ce0[_0x1a38ff(0x105)](_0x1a38ff(0x10f),_0x1dd25d)));})[_0x585f88(0x137)]((0x0,_0x4701c4[_0x585f88(0x148)])()),'message$':new _0x4701c4['Observable'](_0x1775ec=>{const _0x43e83d=_0x585f88;let _0x120a9f=_0x13b5f1=>_0x1775ec['next'](_0x13b5f1);_0x116ce0[_0x43e83d(0xfa)](_0x43e83d(0x14e),_0x120a9f),_0x3096a9[_0x43e83d(0x14b)]((0x0,_0x2b6870[_0x43e83d(0x151)])(()=>_0x116ce0[_0x43e83d(0x105)]('message',_0x120a9f)));})[_0x585f88(0x137)]((0x0,_0x4701c4['share'])())};}catch(_0x12f0ea){return console[_0x585f88(0x10f)](_0x12f0ea),null;}}};_0x36cdd8=_0x45bc58([_0x4e7ec9(0x0,_0x2b6870[_0x2afafa(0x129)])],_0x36cdd8);function _0x130e9c(_0x55044f){'@babel/helpers - typeof';const _0x551133=_0x2afafa;return _0x130e9c=typeof Symbol==_0x551133(0xfc)&&typeof Symbol[_0x551133(0x125)]==_0x551133(0x143)?function(_0x24907c){return typeof _0x24907c;}:function(_0x23864b){const _0x1fdb41=_0x551133;return _0x23864b&&typeof Symbol=='function'&&_0x23864b[_0x1fdb41(0x124)]===Symbol&&_0x23864b!==Symbol[_0x1fdb41(0x10e)]?_0x1fdb41(0x143):typeof _0x23864b;},_0x130e9c(_0x55044f);}function _0x3e5d9d(_0x556e29,_0xcb6d28){const _0x3b4fe8=_0x2afafa;if(_0x130e9c(_0x556e29)!=_0x3b4fe8(0x110)||!_0x556e29)return _0x556e29;var _0x161544;if(typeof Symbol<'u'&&(_0x161544=_0x556e29[Symbol['toPrimitive']])!==void 0x0){var _0x5bffaf=_0x161544[_0x3b4fe8(0x127)](_0x556e29,_0xcb6d28||_0x3b4fe8(0x146));if(_0x130e9c(_0x5bffaf)!='object')return _0x5bffaf;throw TypeError(_0x3b4fe8(0x109));}return(_0xcb6d28===_0x3b4fe8(0x103)?String:Number)(_0x556e29);}function _0x38c905(_0x5de944){const _0x977f91=_0x2afafa;var _0x5bb55f=_0x3e5d9d(_0x5de944,_0x977f91(0x103));return _0x130e9c(_0x5bb55f)==_0x977f91(0x143)?_0x5bb55f:_0x5bb55f+'';}function _0x327e80(_0x1ae843,_0xaa032f,_0x5e68af){const _0x3dbac5=_0x2afafa;return(_0xaa032f=_0x38c905(_0xaa032f))in _0x1ae843?Object[_0x3dbac5(0x121)](_0x1ae843,_0xaa032f,{'value':_0x5e68af,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ae843[_0xaa032f]=_0x5e68af,_0x1ae843;}let _0x2b2e2c=class extends _0x2b6870[_0x2afafa(0x117)]{constructor(_0x5db03c=_0x6f3327,_0x6fc766,_0x11fa5e){const _0x4f052d=_0x2afafa;super(),this[_0x4f052d(0x14f)]=_0x5db03c,this['_configService']=_0x6fc766,this[_0x4f052d(0x12d)]=_0x11fa5e;let {..._0x31fe93}=(0x0,_0x2b6870[_0x4f052d(0x120)])({},_0x6f3327,this[_0x4f052d(0x14f)]);this[_0x4f052d(0x12c)]['setConfig']('collaboration-client-node.config',_0x31fe93);}[_0x2afafa(0x130)](){const _0x36e7d4=_0x2afafa;this[_0x36e7d4(0x139)]();}[_0x2afafa(0x139)](){const _0x1041cd=_0x2afafa;(0x0,_0x2b6870['registerDependencies'])(this[_0x1041cd(0x12d)],[[_0x364c73[_0x1041cd(0xfe)],{'useClass':_0x36cdd8}]]);}};_0x327e80(_0x2b2e2c,_0x2afafa(0x11f),_0x2afafa(0xf7)),_0x327e80(_0x2b2e2c,'packageName',_0x54b9d8),_0x327e80(_0x2b2e2c,_0x2afafa(0xff),_0x23ebe1),_0x2b2e2c=_0x45bc58([(0x0,_0x2b6870[_0x2afafa(0x13d)])(_0x7c75e[_0x2afafa(0x10b)],_0x364c73[_0x2afafa(0x144)],_0x58149b[_0x2afafa(0x11b)],_0x45eaca['UniverCollaborationClientPlugin']),_0x4e7ec9(0x1,_0x2b6870[_0x2afafa(0x129)]),_0x4e7ec9(0x2,(0x0,_0x2b6870[_0x2afafa(0x113)])(_0x2b6870['Injector']))],_0x2b2e2c);let _0x791d9c=class extends _0x45eaca[_0x2afafa(0x145)]{constructor(_0x5b61ef,_0x468c9d,_0x2f5c09,_0x211cc4,_0x3794bf){const _0x5bda47=_0x2afafa;super(_0x5b61ef,_0x468c9d,_0x2f5c09,_0x211cc4,_0x3794bf);let _0x3b375d=this['_configService'][_0x5bda47(0x112)](_0x45eaca[_0x5bda47(0x10c)]);this[_0x5bda47(0x138)]['registerHTTPInterceptor']({'interceptor':(_0x58e03f,_0x3739e3)=>{const _0x2b5960=_0x5bda47;let _0x5b88ed=_0x58e03f[_0x2b5960(0xf8)];if(_0x3b375d!=null&&_0x3b375d[_0x2b5960(0x10d)]){for(let _0xfca1ca in _0x3b375d['customHeaders'])_0x5b88ed[_0x2b5960(0x133)](_0xfca1ca,_0x3b375d[_0x2b5960(0x10d)][_0xfca1ca]);}return _0x3739e3(_0x58e03f);}});}async[_0x2afafa(0x11e)](_0x48e7d8){const _0xb79001=_0x2afafa;return this[_0xb79001(0x114)](_0x48e7d8);}};_0x791d9c=_0x45bc58([_0x4e7ec9(0x0,(0x0,_0x2b6870[_0x2afafa(0x113)])(_0x2b6870[_0x2afafa(0x100)])),_0x4e7ec9(0x1,(0x0,_0x2b6870[_0x2afafa(0x113)])(_0x364c73['HTTPService'])),_0x4e7ec9(0x2,_0x2b6870[_0x2afafa(0x129)]),_0x4e7ec9(0x3,_0x2b6870[_0x2afafa(0x12a)]),_0x4e7ec9(0x4,_0x58149b[_0x2afafa(0x13a)])],_0x791d9c),Object[_0x2afafa(0x121)](_0x57ef3c,_0x2afafa(0x136),{'enumerable':!0x0,'get':function(){return _0x791d9c;}}),Object[_0x2afafa(0x121)](_0x57ef3c,_0x2afafa(0x102),{'enumerable':!0x0,'get':function(){return _0x2b2e2c;}});}));function _0x4db1(){const _0x135c86=['getConfig','Inject','_doCreateSocket','@univerjs/core','@univerjs-pro/collaboration-client-node','Plugin','UniverProCollaboration','toStringTag','668UqDWOX','UniverCollaborationPlugin','Module','9114eWMVfR','createSocket','pluginName','merge','defineProperty','117TTnGJe','341OjMhVs','constructor','iterator','553510ETOgjJ','call','Disposable','IConfigService','ILogService','UniverCore','_configService','_injector','DisposableCollection','send','onStarting','UniverProLicense','getOwnPropertyDescriptor','set','length','WebSocket','NodeCollaborationSocketService','pipe','_httpService','_registerDependencies','ISnapshotServerService','4120naitGs','next','DependentOn','close','dispose','exports','10287xJsOGS','16225AzxNBk','symbol','UniverNetworkPlugin','CollaborationSocketService','default','UniverProCollaborationClient','share','Observable','rxjs','add','@univerjs-pro/collaboration','12175030mvlDyG','message','_config','405KRbliL','toDisposable','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','headers','@univerjs-pro/license','addEventListener','decorate','function','amd','ISocketService','version','Injector','open','UniverCollaborationClientNodePlugin','string','2778vrptMv','removeEventListener','6400272uECkhL','@univerjs/network','@univerjs-pro/collaboration-client','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1035AdcXJn','UniverLicensePlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','customHeaders','prototype','error','object','UniverProCollaborationClientNode'];_0x4db1=function(){return _0x135c86;};return _0x4db1();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -51,19 +51,19 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs-pro/collaboration": "1.4.0",
55
- "@univerjs-pro/collaboration-client": "1.4.0",
56
- "@univerjs-pro/license": "1.4.0",
57
- "@univerjs/core": "1.4.0",
58
- "@univerjs/network": "1.4.0",
54
+ "@univerjs-pro/collaboration": "1.5.0",
55
+ "@univerjs-pro/collaboration-client": "1.5.0",
56
+ "@univerjs-pro/license": "1.5.0",
57
+ "@univerjs/core": "1.5.0",
58
+ "@univerjs/network": "1.5.0",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.4.0",
63
+ "@univerjs-infra/shared": "1.5.0",
64
64
  "rxjs": "7.8.2",
65
- "tsrs": "0.20.1-ts7.1.0-beta",
66
- "vitest": "^5.0.5"
65
+ "tsrs": "0.23.0-ts7.1.0-beta",
66
+ "vitest": "^5.1.0"
67
67
  },
68
68
  "scripts": {
69
69
  "test": "vitest run",