@univerjs-pro/collaboration-client-node 0.25.0-insiders.20260623-012b5a8 → 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x529030=_0x51cc;(function(_0x1b34dd,_0x6497a0){const _0x55126b=_0x51cc,_0x3637a0=_0x1b34dd();while(!![]){try{const _0x56ad49=-parseInt(_0x55126b(0x103))/0x1*(-parseInt(_0x55126b(0x10d))/0x2)+-parseInt(_0x55126b(0xf7))/0x3*(-parseInt(_0x55126b(0xe7))/0x4)+-parseInt(_0x55126b(0xd2))/0x5*(-parseInt(_0x55126b(0xdd))/0x6)+-parseInt(_0x55126b(0x104))/0x7+parseInt(_0x55126b(0x100))/0x8*(-parseInt(_0x55126b(0xe8))/0x9)+parseInt(_0x55126b(0xe3))/0xa+-parseInt(_0x55126b(0xcc))/0xb;if(_0x56ad49===_0x6497a0)break;else _0x3637a0['push'](_0x3637a0['shift']());}catch(_0x2d2e07){_0x3637a0['push'](_0x3637a0['shift']());}}}(_0xa2f9,0x81128),Object['defineProperty'](exports,Symbol[_0x529030(0xd6)],{'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');const o=_0x529030(0xd8),s={};var c=_0x529030(0xf5),l=_0x529030(0xce);function _0x51cc(_0x125596,_0x5e8d37){_0x125596=_0x125596-0xcb;const _0xa2f955=_0xa2f9();let _0x51ccc1=_0xa2f955[_0x125596];return _0x51ccc1;}function u(_0x3c7c8d,_0x610e44){return function(_0x26d0a3,_0x1b97e){_0x610e44(_0x26d0a3,_0x1b97e,_0x3c7c8d);};}function d(_0xaabf1e,_0x457fdb,_0x3ad4ca,_0x4b89b6){const _0x40eb02=_0x529030;var _0x3fb6b2=arguments[_0x40eb02(0xf0)],_0xa637ed=_0x3fb6b2<0x3?_0x457fdb:_0x4b89b6===null?_0x4b89b6=Object['getOwnPropertyDescriptor'](_0x457fdb,_0x3ad4ca):_0x4b89b6,_0xbc118f;if(typeof Reflect==_0x40eb02(0xe6)&&typeof Reflect[_0x40eb02(0xdc)]==_0x40eb02(0x106))_0xa637ed=Reflect[_0x40eb02(0xdc)](_0xaabf1e,_0x457fdb,_0x3ad4ca,_0x4b89b6);else{for(var _0x46f3f3=_0xaabf1e[_0x40eb02(0xf0)]-0x1;_0x46f3f3>=0x0;_0x46f3f3--)(_0xbc118f=_0xaabf1e[_0x46f3f3])&&(_0xa637ed=(_0x3fb6b2<0x3?_0xbc118f(_0xa637ed):_0x3fb6b2>0x3?_0xbc118f(_0x457fdb,_0x3ad4ca,_0xa637ed):_0xbc118f(_0x457fdb,_0x3ad4ca))||_0xa637ed);}return _0x3fb6b2>0x3&&_0xa637ed&&Object[_0x40eb02(0xfa)](_0x457fdb,_0x3ad4ca,_0xa637ed),_0xa637ed;}let f=class extends t[_0x529030(0x10b)]{constructor(_0x4bb68c){const _0x1e3e2b=_0x529030;super(),this[_0x1e3e2b(0xcb)]=_0x4bb68c;}[_0x529030(0xde)](_0x30053b){const _0x58c58d=_0x529030;var _0x67dcbb;let _0x36e418=((_0x67dcbb=this[_0x58c58d(0xcb)][_0x58c58d(0xdf)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x67dcbb[_0x58c58d(0xf3)])||{};try{let _0x39ac27=new i[(_0x58c58d(0x108))](_0x30053b,{'headers':{..._0x36e418}}),_0x956082=new t[(_0x58c58d(0xcf))]();return{'URL':_0x30053b,'close':(_0x1be32c,_0x3c2b50)=>{const _0x4d0b5e=_0x58c58d;_0x39ac27[_0x4d0b5e(0xf2)](_0x1be32c,_0x3c2b50),_0x956082[_0x4d0b5e(0xf1)]();},'send':_0x535dc4=>{const _0x352cdf=_0x58c58d;_0x39ac27[_0x352cdf(0xd3)](_0x535dc4);},'open$':new r[(_0x58c58d(0x107))](_0x500009=>{const _0x299199=_0x58c58d;let _0x4ff4d3=_0x84658e=>_0x500009[_0x299199(0xda)](_0x84658e);_0x39ac27[_0x299199(0x10c)](_0x299199(0xe9),_0x4ff4d3),_0x956082[_0x299199(0xed)]((0x0,t[_0x299199(0xf4)])(()=>_0x39ac27['removeEventListener'](_0x299199(0xe9),_0x4ff4d3)));})[_0x58c58d(0xfe)]((0x0,r[_0x58c58d(0xfd)])()),'close$':new r[(_0x58c58d(0x107))](_0x769004=>{const _0x2fbcad=_0x58c58d;let _0x140d31=_0x1ebe9d=>_0x769004[_0x2fbcad(0xda)](_0x1ebe9d);_0x39ac27[_0x2fbcad(0x10c)]('close',_0x140d31),_0x956082['add']((0x0,t[_0x2fbcad(0xf4)])(()=>_0x39ac27[_0x2fbcad(0xd5)](_0x2fbcad(0xf2),_0x140d31)));})[_0x58c58d(0xfe)]((0x0,r[_0x58c58d(0xfd)])()),'error$':new r[(_0x58c58d(0x107))](_0x377d43=>{const _0x3d0fec=_0x58c58d;let _0x2e070e=_0x59bceb=>_0x377d43[_0x3d0fec(0xda)](_0x59bceb);_0x39ac27[_0x3d0fec(0x10c)](_0x3d0fec(0xcd),_0x2e070e),_0x956082[_0x3d0fec(0xed)]((0x0,t['toDisposable'])(()=>_0x39ac27[_0x3d0fec(0xd5)](_0x3d0fec(0xcd),_0x2e070e)));})[_0x58c58d(0xfe)]((0x0,r[_0x58c58d(0xfd)])()),'message$':new r['Observable'](_0x56fd3c=>{const _0x499206=_0x58c58d;let _0x24060c=_0x3833ec=>_0x56fd3c[_0x499206(0xda)](_0x3833ec);_0x39ac27['addEventListener'](_0x499206(0xe1),_0x24060c),_0x956082['add']((0x0,t[_0x499206(0xf4)])(()=>_0x39ac27[_0x499206(0xd5)](_0x499206(0xe1),_0x24060c)));})['pipe']((0x0,r[_0x58c58d(0xfd)])())};}catch(_0x2902f0){return console[_0x58c58d(0xcd)](_0x2902f0),null;}}};f=d([u(0x0,t[_0x529030(0x10e)])],f);function p(_0x4f4528){'@babel/helpers - typeof';const _0x4d782c=_0x529030;return p=typeof Symbol==_0x4d782c(0x106)&&typeof Symbol[_0x4d782c(0xd7)]=='symbol'?function(_0x5a05c4){return typeof _0x5a05c4;}:function(_0x58b2d8){const _0x3a599a=_0x4d782c;return _0x58b2d8&&typeof Symbol=='function'&&_0x58b2d8[_0x3a599a(0x105)]===Symbol&&_0x58b2d8!==Symbol['prototype']?_0x3a599a(0xd1):typeof _0x58b2d8;},p(_0x4f4528);}function m(_0x320352,_0x3993d5){const _0x1b55f1=_0x529030;if(p(_0x320352)!=_0x1b55f1(0xe6)||!_0x320352)return _0x320352;var _0x3b3d15=_0x320352[Symbol[_0x1b55f1(0xea)]];if(_0x3b3d15!==void 0x0){var _0x3e4a75=_0x3b3d15[_0x1b55f1(0x101)](_0x320352,_0x3993d5||'default');if(p(_0x3e4a75)!=_0x1b55f1(0xe6))return _0x3e4a75;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3993d5===_0x1b55f1(0xef)?String:Number)(_0x320352);}function h(_0x44c4c0){const _0x5212d3=_0x529030;var _0x46887f=m(_0x44c4c0,'string');return p(_0x46887f)==_0x5212d3(0xd1)?_0x46887f:_0x46887f+'';}function g(_0x19b6f7,_0x2b6669,_0x133c83){return(_0x2b6669=h(_0x2b6669))in _0x19b6f7?Object['defineProperty'](_0x19b6f7,_0x2b6669,{'value':_0x133c83,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x19b6f7[_0x2b6669]=_0x133c83,_0x19b6f7;}let _=class extends t[_0x529030(0xf8)]{constructor(_0x46a140=s,_0x23c8d9,_0x501ebb){const _0x5789be=_0x529030;super(),this['_configService']=_0x23c8d9,this[_0x5789be(0xf6)]=_0x501ebb,this[_0x5789be(0xcb)]['setConfig'](o,_0x46a140);}[_0x529030(0xd0)](){const _0x58f8b2=_0x529030;this[_0x58f8b2(0xe0)]();}[_0x529030(0xe0)](){const _0xa8af29=_0x529030;(0x0,t['registerDependencies'])(this[_0xa8af29(0xf6)],[[n[_0xa8af29(0xf9)],{'useClass':f}]]);}};g(_,_0x529030(0xdb),_0x529030(0xff)),g(_,_0x529030(0xfb),c),g(_,'version',l),_=d([(0x0,t[_0x529030(0xe5)])(e[_0x529030(0x10a)]),u(0x1,t[_0x529030(0x10e)]),u(0x2,(0x0,t[_0x529030(0xfc)])(t[_0x529030(0x109)]))],_);let v=class extends e[_0x529030(0xd9)]{constructor(_0x797621,_0x1b157d,_0xe01064,_0x5f3401,_0xe119bc){const _0xe85f63=_0x529030;super(_0x797621,_0x1b157d,_0xe01064,_0x5f3401,_0xe119bc);let _0x54c049=this[_0xe85f63(0xcb)][_0xe85f63(0xdf)](e[_0xe85f63(0xec)]);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0xb190d9,_0x11dea8)=>{const _0xcd8164=_0xe85f63;let _0x18f251=_0xb190d9['headers'];if(_0x54c049!=null&&_0x54c049[_0xcd8164(0xf3)]){for(let _0x5bb7f7 in _0x54c049[_0xcd8164(0xf3)])_0x18f251[_0xcd8164(0x102)](_0x5bb7f7,_0x54c049['customHeaders'][_0x5bb7f7]);}return _0x11dea8(_0xb190d9);}});}async['createSocket'](_0x45afe2){const _0x226b28=_0x529030;return this[_0x226b28(0xe4)](_0x45afe2);}};v=d([u(0x0,(0x0,t['Inject'])(t[_0x529030(0x109)])),u(0x1,(0x0,t[_0x529030(0xfc)])(n[_0x529030(0xd4)])),u(0x2,t[_0x529030(0x10e)]),u(0x3,t['ILogService']),u(0x4,a[_0x529030(0xe2)])],v),exports['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=o,Object['defineProperty'](exports,_0x529030(0xee),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x529030(0xfa)](exports,_0x529030(0xeb),{'enumerable':!0x0,'get':function(){return _;}});function _0xa2f9(){const _0x49e391=['pluginName','decorate','54486mAyFwe','createSocket','getConfig','_registerDependencies','message','ISnapshotServerService','3610120PcNDjA','_doCreateSocket','DependentOn','object','4BPsbnr','5770746gXtktL','open','toPrimitive','UniverCollaborationClientNodePlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','add','NodeCollaborationSocketService','string','length','dispose','close','customHeaders','toDisposable','@univerjs-pro/collaboration-client-node','_injector','2553270OopSif','Plugin','ISocketService','defineProperty','packageName','Inject','share','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','8zVAsVG','call','set','689503HMUsxh','2353001LKSuPS','constructor','function','Observable','WebSocket','Injector','UniverCollaborationClientPlugin','Disposable','addEventListener','2QRlhDH','IConfigService','_configService','10045255cTPEjS','error','0.25.0-insiders.20260623-012b5a8','DisposableCollection','onStarting','symbol','285xCgJXW','send','HTTPService','removeEventListener','toStringTag','iterator','collaboration-client-node.config','CollaborationSocketService','next'];_0xa2f9=function(){return _0x49e391;};return _0xa2f9();}
1
+ const _0x49dd44=_0x21f7;(function(_0x235a21,_0x793caf){const _0x2c9277=_0x21f7,_0x547665=_0x235a21();while(!![]){try{const _0xd0087e=-parseInt(_0x2c9277(0x102))/0x1+-parseInt(_0x2c9277(0xf4))/0x2+-parseInt(_0x2c9277(0x10d))/0x3*(-parseInt(_0x2c9277(0x105))/0x4)+-parseInt(_0x2c9277(0x118))/0x5+-parseInt(_0x2c9277(0x109))/0x6*(parseInt(_0x2c9277(0x11a))/0x7)+parseInt(_0x2c9277(0xe6))/0x8*(parseInt(_0x2c9277(0x103))/0x9)+parseInt(_0x2c9277(0xec))/0xa;if(_0xd0087e===_0x793caf)break;else _0x547665['push'](_0x547665['shift']());}catch(_0x61973b){_0x547665['push'](_0x547665['shift']());}}}(_0x124e,0xcd3f7),Object['defineProperty'](exports,Symbol[_0x49dd44(0x117)],{'value':_0x49dd44(0x122)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');const o=_0x49dd44(0xf8),s={};var c=_0x49dd44(0x112),l=_0x49dd44(0x10c);function _0x124e(){const _0x4366aa=['ILogService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration-client-node','getConfig','CollaborationSocketService','_injector','getOwnPropertyDescriptor','toStringTag','6966635MkcYtf','setConfig','790951JSwZrp','decorate','pipe','IConfigService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','object','dispose','headers','Module','next','Injector','HTTPService','message','open','send','272GkjWJO','function','registerDependencies','iterator','length','share','19495270FyKVoU','DependentOn','toDisposable','Disposable','DisposableCollection','Observable','_registerDependencies','string','2061624jHzyNG','packageName','error','_httpService','collaboration-client-node.config','removeEventListener','customHeaders','createSocket','NodeCollaborationSocketService','_configService','close','defineProperty','addEventListener','add','159925fnlpsQ','359847MtWWju','onStarting','17528Pnwjpp','registerHTTPInterceptor','Inject','toPrimitive','12LkUdIr','default','constructor','1.0.0-alpha.0','234tJhrhe','COLLABORATION_CLIENT_NODE_CONFIG_KEY','symbol'];_0x124e=function(){return _0x4366aa;};return _0x124e();}function u(_0x29a222,_0x8f9665){return function(_0x3f10d1,_0x2e25e6){_0x8f9665(_0x3f10d1,_0x2e25e6,_0x29a222);};}function d(_0x2ece08,_0x2700aa,_0x20a710,_0x367ebf){const _0x4493cf=_0x49dd44;var _0x210661=arguments['length'],_0x51506d=_0x210661<0x3?_0x2700aa:_0x367ebf===null?_0x367ebf=Object[_0x4493cf(0x116)](_0x2700aa,_0x20a710):_0x367ebf,_0x306e71;if(typeof Reflect==_0x4493cf(0x11f)&&typeof Reflect[_0x4493cf(0x11b)]=='function')_0x51506d=Reflect[_0x4493cf(0x11b)](_0x2ece08,_0x2700aa,_0x20a710,_0x367ebf);else{for(var _0x533dec=_0x2ece08[_0x4493cf(0xea)]-0x1;_0x533dec>=0x0;_0x533dec--)(_0x306e71=_0x2ece08[_0x533dec])&&(_0x51506d=(_0x210661<0x3?_0x306e71(_0x51506d):_0x210661>0x3?_0x306e71(_0x2700aa,_0x20a710,_0x51506d):_0x306e71(_0x2700aa,_0x20a710))||_0x51506d);}return _0x210661>0x3&&_0x51506d&&Object[_0x4493cf(0xff)](_0x2700aa,_0x20a710,_0x51506d),_0x51506d;}let f=class extends t[_0x49dd44(0xef)]{constructor(_0x262088){const _0x55086d=_0x49dd44;super(),this[_0x55086d(0xfd)]=_0x262088;}[_0x49dd44(0xfb)](_0x29d4d1){const _0xbc3115=_0x49dd44;var _0x367c1c;let _0x23e3c2=((_0x367c1c=this[_0xbc3115(0xfd)]['getConfig'](e[_0xbc3115(0x11e)]))==null?void 0x0:_0x367c1c[_0xbc3115(0xfa)])||{};try{let _0x507f8d=new i['WebSocket'](_0x29d4d1,{'headers':{..._0x23e3c2}}),_0x92f282=new t[(_0xbc3115(0xf0))]();return{'URL':_0x29d4d1,'close':(_0x595879,_0x525c63)=>{const _0x578697=_0xbc3115;_0x507f8d['close'](_0x595879,_0x525c63),_0x92f282[_0x578697(0x120)]();},'send':_0x37d6b6=>{const _0x4e18c8=_0xbc3115;_0x507f8d[_0x4e18c8(0xe5)](_0x37d6b6);},'open$':new r[(_0xbc3115(0xf1))](_0x419363=>{const _0x2114be=_0xbc3115;let _0x10e960=_0x3f38b6=>_0x419363[_0x2114be(0xe0)](_0x3f38b6);_0x507f8d[_0x2114be(0x100)](_0x2114be(0xe4),_0x10e960),_0x92f282['add']((0x0,t[_0x2114be(0xee)])(()=>_0x507f8d[_0x2114be(0xf9)](_0x2114be(0xe4),_0x10e960)));})['pipe']((0x0,r[_0xbc3115(0xeb)])()),'close$':new r[(_0xbc3115(0xf1))](_0x58c242=>{const _0x226e50=_0xbc3115;let _0x23fdaf=_0x1bd954=>_0x58c242[_0x226e50(0xe0)](_0x1bd954);_0x507f8d[_0x226e50(0x100)](_0x226e50(0xfe),_0x23fdaf),_0x92f282['add']((0x0,t['toDisposable'])(()=>_0x507f8d['removeEventListener']('close',_0x23fdaf)));})[_0xbc3115(0x11c)]((0x0,r[_0xbc3115(0xeb)])()),'error$':new r[(_0xbc3115(0xf1))](_0x5fe40a=>{const _0x5cadc3=_0xbc3115;let _0x4b1bac=_0x32aa3b=>_0x5fe40a[_0x5cadc3(0xe0)](_0x32aa3b);_0x507f8d['addEventListener'](_0x5cadc3(0xf6),_0x4b1bac),_0x92f282[_0x5cadc3(0x101)]((0x0,t[_0x5cadc3(0xee)])(()=>_0x507f8d[_0x5cadc3(0xf9)]('error',_0x4b1bac)));})[_0xbc3115(0x11c)]((0x0,r[_0xbc3115(0xeb)])()),'message$':new r['Observable'](_0x10459e=>{const _0x3c3704=_0xbc3115;let _0x5ea977=_0x26c672=>_0x10459e[_0x3c3704(0xe0)](_0x26c672);_0x507f8d[_0x3c3704(0x100)](_0x3c3704(0xe3),_0x5ea977),_0x92f282['add']((0x0,t[_0x3c3704(0xee)])(()=>_0x507f8d[_0x3c3704(0xf9)](_0x3c3704(0xe3),_0x5ea977)));})[_0xbc3115(0x11c)]((0x0,r[_0xbc3115(0xeb)])())};}catch(_0x5ac2d8){return console[_0xbc3115(0xf6)](_0x5ac2d8),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0x4500b3){'@babel/helpers - typeof';const _0x18a59b=_0x49dd44;return p=typeof Symbol==_0x18a59b(0xe7)&&typeof Symbol[_0x18a59b(0xe9)]=='symbol'?function(_0x4f516a){return typeof _0x4f516a;}:function(_0x4d2d18){const _0x58f3c2=_0x18a59b;return _0x4d2d18&&typeof Symbol==_0x58f3c2(0xe7)&&_0x4d2d18[_0x58f3c2(0x10b)]===Symbol&&_0x4d2d18!==Symbol['prototype']?_0x58f3c2(0x10f):typeof _0x4d2d18;},p(_0x4500b3);}function m(_0x528717,_0x27df3a){const _0x49bd49=_0x49dd44;if(p(_0x528717)!=_0x49bd49(0x11f)||!_0x528717)return _0x528717;var _0x46852e=_0x528717[Symbol[_0x49bd49(0x108)]];if(_0x46852e!==void 0x0){var _0x5749c0=_0x46852e['call'](_0x528717,_0x27df3a||_0x49bd49(0x10a));if(p(_0x5749c0)!='object')return _0x5749c0;throw TypeError(_0x49bd49(0x111));}return(_0x27df3a===_0x49bd49(0xf3)?String:Number)(_0x528717);}function h(_0x3bafb7){var _0x1203bd=m(_0x3bafb7,'string');return p(_0x1203bd)=='symbol'?_0x1203bd:_0x1203bd+'';}function g(_0x41ceb3,_0x316911,_0x48a68a){const _0x4f550b=_0x49dd44;return(_0x316911=h(_0x316911))in _0x41ceb3?Object[_0x4f550b(0xff)](_0x41ceb3,_0x316911,{'value':_0x48a68a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41ceb3[_0x316911]=_0x48a68a,_0x41ceb3;}function _0x21f7(_0x2c60eb,_0x43cf4b){_0x2c60eb=_0x2c60eb-0xe0;const _0x124e6f=_0x124e();let _0x21f716=_0x124e6f[_0x2c60eb];return _0x21f716;}let _=class extends t['Plugin']{constructor(_0x1ca687=s,_0x247b03,_0x253ee2){const _0x396458=_0x49dd44;super(),this['_configService']=_0x247b03,this[_0x396458(0x115)]=_0x253ee2,this['_configService'][_0x396458(0x119)](o,_0x1ca687);}[_0x49dd44(0x104)](){const _0x40f3df=_0x49dd44;this[_0x40f3df(0xf2)]();}[_0x49dd44(0xf2)](){const _0x34b88f=_0x49dd44;(0x0,t[_0x34b88f(0xe8)])(this[_0x34b88f(0x115)],[[n['ISocketService'],{'useClass':f}]]);}};g(_,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,_0x49dd44(0xf5),c),g(_,'version',l),_=d([(0x0,t[_0x49dd44(0xed)])(e['UniverCollaborationClientPlugin']),u(0x1,t[_0x49dd44(0x11d)]),u(0x2,(0x0,t[_0x49dd44(0x107)])(t[_0x49dd44(0xe1)]))],_);let v=class extends e[_0x49dd44(0x114)]{constructor(_0x3a1212,_0x989eb6,_0x31d69f,_0x56a9f5,_0x52c892){const _0x4787e1=_0x49dd44;super(_0x3a1212,_0x989eb6,_0x31d69f,_0x56a9f5,_0x52c892);let _0x213654=this['_configService'][_0x4787e1(0x113)](e[_0x4787e1(0x11e)]);this[_0x4787e1(0xf7)][_0x4787e1(0x106)]({'interceptor':(_0x1bca8d,_0x350fa8)=>{const _0x4f9e3e=_0x4787e1;let _0x278424=_0x1bca8d[_0x4f9e3e(0x121)];if(_0x213654!=null&&_0x213654[_0x4f9e3e(0xfa)]){for(let _0x261108 in _0x213654['customHeaders'])_0x278424['set'](_0x261108,_0x213654[_0x4f9e3e(0xfa)][_0x261108]);}return _0x350fa8(_0x1bca8d);}});}async[_0x49dd44(0xfb)](_0x47e1e4){return this['_doCreateSocket'](_0x47e1e4);}};v=d([u(0x0,(0x0,t[_0x49dd44(0x107)])(t[_0x49dd44(0xe1)])),u(0x1,(0x0,t[_0x49dd44(0x107)])(n[_0x49dd44(0xe2)])),u(0x2,t['IConfigService']),u(0x3,t[_0x49dd44(0x110)]),u(0x4,a['ISnapshotServerService'])],v),exports[_0x49dd44(0x10e)]=o,Object[_0x49dd44(0xff)](exports,_0x49dd44(0xfc),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3abc7e=_0x16cb;(function(_0x4baae1,_0x5db63c){const _0x56ee7d=_0x16cb,_0x51d21e=_0x4baae1();while(!![]){try{const _0x3c031a=parseInt(_0x56ee7d(0x1b2))/0x1+-parseInt(_0x56ee7d(0x1a1))/0x2*(parseInt(_0x56ee7d(0x1c3))/0x3)+parseInt(_0x56ee7d(0x1b6))/0x4+parseInt(_0x56ee7d(0x1b4))/0x5*(parseInt(_0x56ee7d(0x1c7))/0x6)+-parseInt(_0x56ee7d(0x1ad))/0x7*(parseInt(_0x56ee7d(0x19a))/0x8)+parseInt(_0x56ee7d(0x1b0))/0x9+parseInt(_0x56ee7d(0x1c5))/0xa;if(_0x3c031a===_0x5db63c)break;else _0x51d21e['push'](_0x51d21e['shift']());}catch(_0x5bb3b1){_0x51d21e['push'](_0x51d21e['shift']());}}}(_0x36bf,0x89ada));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xdc0c8a,CollaborationSocketService as _0x24ce48,UniverCollaborationClientPlugin as _0x5a2c12}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x11433c,Disposable as _0x50ebe7,DisposableCollection as _0x1beba5,IConfigService as _0x1df461,ILogService as _0x3297e2,Inject as _0x195147,Injector as _0x5e63e,Plugin as _0x509595,registerDependencies as _0x308d63,toDisposable as _0x2a8200}from'@univerjs/core';import{HTTPService as _0x239f7b,ISocketService as _0x5442eb}from'@univerjs/network';function _0x16cb(_0x3d3557,_0x1c29c9){_0x3d3557=_0x3d3557-0x19a;const _0x36bfa0=_0x36bf();let _0x16cb96=_0x36bfa0[_0x3d3557];return _0x16cb96;}import{Observable as _0x15efeb,share as _0x32ec48}from'rxjs';import{WebSocket as _0x31303f}from'ws';import{ISnapshotServerService as _0x34d9df}from'@univerjs-pro/collaboration';const y=_0x3abc7e(0x1bf),b={};var x=_0x3abc7e(0x1ca),S=_0x3abc7e(0x19e);function _0x36bf(){const _0x5001e5=['getConfig','278872YBbjlF','_doCreateSocket','function','_injector','addEventListener','default','decorate','createSocket','string','collaboration-client-node.config','prototype','setConfig','_httpService','843UmXSoP','registerHTTPInterceptor','670320sKOdFn','add','6JxKOEb','next','dispose','@univerjs-pro/collaboration-client-node','_registerDependencies','call','32XhRupg','customHeaders','symbol','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','0.25.0-insiders.20260623-012b5a8','close','open','5338fYWuOn','getOwnPropertyDescriptor','defineProperty','iterator','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','pluginName','set','message','constructor','error','458941rQEUvU','_configService','object','9931464nyrCKh','onStarting','174219pyUVwy','pipe','808530swUBQu'];_0x36bf=function(){return _0x5001e5;};return _0x36bf();}function C(_0x24af22,_0x14b7fc){return function(_0x50d4b6,_0x583ebf){_0x14b7fc(_0x50d4b6,_0x583ebf,_0x24af22);};}function w(_0x294cce,_0x431f5c,_0x5a10f6,_0x4c6f8e){const _0x211b41=_0x3abc7e;var _0x341dbc=arguments[_0x211b41(0x1a7)],_0x4cccea=_0x341dbc<0x3?_0x431f5c:_0x4c6f8e===null?_0x4c6f8e=Object[_0x211b41(0x1a2)](_0x431f5c,_0x5a10f6):_0x4c6f8e,_0x1db1da;if(typeof Reflect==_0x211b41(0x1af)&&typeof Reflect['decorate']==_0x211b41(0x1b8))_0x4cccea=Reflect[_0x211b41(0x1bc)](_0x294cce,_0x431f5c,_0x5a10f6,_0x4c6f8e);else{for(var _0x4e1b8d=_0x294cce['length']-0x1;_0x4e1b8d>=0x0;_0x4e1b8d--)(_0x1db1da=_0x294cce[_0x4e1b8d])&&(_0x4cccea=(_0x341dbc<0x3?_0x1db1da(_0x4cccea):_0x341dbc>0x3?_0x1db1da(_0x431f5c,_0x5a10f6,_0x4cccea):_0x1db1da(_0x431f5c,_0x5a10f6))||_0x4cccea);}return _0x341dbc>0x3&&_0x4cccea&&Object[_0x211b41(0x1a3)](_0x431f5c,_0x5a10f6,_0x4cccea),_0x4cccea;}let T=class extends _0x50ebe7{constructor(_0x4542dc){const _0x4dfc8c=_0x3abc7e;super(),this[_0x4dfc8c(0x1ae)]=_0x4542dc;}[_0x3abc7e(0x1bd)](_0x37650d){const _0x6752e8=_0x3abc7e;var _0x4608f3;let _0x26f5a5=((_0x4608f3=this[_0x6752e8(0x1ae)][_0x6752e8(0x1b5)](_0xdc0c8a))==null?void 0x0:_0x4608f3[_0x6752e8(0x19b)])||{};try{let _0x522569=new _0x31303f(_0x37650d,{'headers':{..._0x26f5a5}}),_0x128e9f=new _0x1beba5();return{'URL':_0x37650d,'close':(_0x278022,_0xa184af)=>{const _0x39f06c=_0x6752e8;_0x522569[_0x39f06c(0x19f)](_0x278022,_0xa184af),_0x128e9f[_0x39f06c(0x1c9)]();},'send':_0x1e441f=>{_0x522569['send'](_0x1e441f);},'open$':new _0x15efeb(_0x1cc72f=>{const _0x2188b7=_0x6752e8;let _0x1b7c89=_0x9642a5=>_0x1cc72f[_0x2188b7(0x1c8)](_0x9642a5);_0x522569[_0x2188b7(0x1ba)](_0x2188b7(0x1a0),_0x1b7c89),_0x128e9f['add'](_0x2a8200(()=>_0x522569[_0x2188b7(0x1a5)]('open',_0x1b7c89)));})['pipe'](_0x32ec48()),'close$':new _0x15efeb(_0x3025b3=>{const _0x508008=_0x6752e8;let _0x35000e=_0x4aa28d=>_0x3025b3[_0x508008(0x1c8)](_0x4aa28d);_0x522569[_0x508008(0x1ba)](_0x508008(0x19f),_0x35000e),_0x128e9f['add'](_0x2a8200(()=>_0x522569[_0x508008(0x1a5)](_0x508008(0x19f),_0x35000e)));})[_0x6752e8(0x1b3)](_0x32ec48()),'error$':new _0x15efeb(_0x55cb92=>{const _0x26d5bf=_0x6752e8;let _0xc0d000=_0x41e672=>_0x55cb92[_0x26d5bf(0x1c8)](_0x41e672);_0x522569['addEventListener'](_0x26d5bf(0x1ac),_0xc0d000),_0x128e9f[_0x26d5bf(0x1c6)](_0x2a8200(()=>_0x522569['removeEventListener'](_0x26d5bf(0x1ac),_0xc0d000)));})[_0x6752e8(0x1b3)](_0x32ec48()),'message$':new _0x15efeb(_0x35cf9b=>{const _0x5eb8b8=_0x6752e8;let _0x5d77be=_0x31e9c2=>_0x35cf9b[_0x5eb8b8(0x1c8)](_0x31e9c2);_0x522569[_0x5eb8b8(0x1ba)](_0x5eb8b8(0x1aa),_0x5d77be),_0x128e9f[_0x5eb8b8(0x1c6)](_0x2a8200(()=>_0x522569[_0x5eb8b8(0x1a5)](_0x5eb8b8(0x1aa),_0x5d77be)));})[_0x6752e8(0x1b3)](_0x32ec48())};}catch(_0x291e83){return console['error'](_0x291e83),null;}}};T=w([C(0x0,_0x1df461)],T);function E(_0x27702b){'@babel/helpers - typeof';const _0x437fa5=_0x3abc7e;return E=typeof Symbol==_0x437fa5(0x1b8)&&typeof Symbol[_0x437fa5(0x1a4)]==_0x437fa5(0x19c)?function(_0x3595a0){return typeof _0x3595a0;}:function(_0x417677){const _0x816dd9=_0x437fa5;return _0x417677&&typeof Symbol==_0x816dd9(0x1b8)&&_0x417677[_0x816dd9(0x1ab)]===Symbol&&_0x417677!==Symbol[_0x816dd9(0x1c0)]?_0x816dd9(0x19c):typeof _0x417677;},E(_0x27702b);}function D(_0x1106fa,_0x523b63){const _0x4b0185=_0x3abc7e;if(E(_0x1106fa)!='object'||!_0x1106fa)return _0x1106fa;var _0x21c806=_0x1106fa[Symbol['toPrimitive']];if(_0x21c806!==void 0x0){var _0x84831a=_0x21c806[_0x4b0185(0x1cc)](_0x1106fa,_0x523b63||_0x4b0185(0x1bb));if(E(_0x84831a)!=_0x4b0185(0x1af))return _0x84831a;throw TypeError(_0x4b0185(0x1a6));}return(_0x523b63===_0x4b0185(0x1be)?String:Number)(_0x1106fa);}function O(_0x34a786){const _0x3f43c0=_0x3abc7e;var _0x5202ac=D(_0x34a786,_0x3f43c0(0x1be));return E(_0x5202ac)==_0x3f43c0(0x19c)?_0x5202ac:_0x5202ac+'';}function k(_0x4786b3,_0x496537,_0x9a2924){const _0x57056d=_0x3abc7e;return(_0x496537=O(_0x496537))in _0x4786b3?Object[_0x57056d(0x1a3)](_0x4786b3,_0x496537,{'value':_0x9a2924,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4786b3[_0x496537]=_0x9a2924,_0x4786b3;}let A=class extends _0x509595{constructor(_0x1c9096=b,_0x44af24,_0x5c6c82){const _0x28a5a9=_0x3abc7e;super(),this[_0x28a5a9(0x1ae)]=_0x44af24,this['_injector']=_0x5c6c82,this[_0x28a5a9(0x1ae)][_0x28a5a9(0x1c1)](y,_0x1c9096);}[_0x3abc7e(0x1b1)](){const _0xe75c30=_0x3abc7e;this[_0xe75c30(0x1cb)]();}[_0x3abc7e(0x1cb)](){const _0x12494c=_0x3abc7e;_0x308d63(this[_0x12494c(0x1b9)],[[_0x5442eb,{'useClass':T}]]);}};k(A,_0x3abc7e(0x1a8),_0x3abc7e(0x19d)),k(A,'packageName',x),k(A,'version',S),A=w([_0x11433c(_0x5a2c12),C(0x1,_0x1df461),C(0x2,_0x195147(_0x5e63e))],A);let j=class extends _0x24ce48{constructor(_0x1b43eb,_0x1f6a90,_0x513015,_0x3176b8,_0x3d43d0){const _0x751388=_0x3abc7e;super(_0x1b43eb,_0x1f6a90,_0x513015,_0x3176b8,_0x3d43d0);let _0x2067e5=this[_0x751388(0x1ae)][_0x751388(0x1b5)](_0xdc0c8a);this[_0x751388(0x1c2)][_0x751388(0x1c4)]({'interceptor':(_0x98c5fe,_0x253aed)=>{const _0x3041cb=_0x751388;let _0x1fdd0f=_0x98c5fe['headers'];if(_0x2067e5!=null&&_0x2067e5['customHeaders']){for(let _0x1c15e0 in _0x2067e5[_0x3041cb(0x19b)])_0x1fdd0f[_0x3041cb(0x1a9)](_0x1c15e0,_0x2067e5[_0x3041cb(0x19b)][_0x1c15e0]);}return _0x253aed(_0x98c5fe);}});}async[_0x3abc7e(0x1bd)](_0xb6111c){const _0x47927a=_0x3abc7e;return this[_0x47927a(0x1b7)](_0xb6111c);}};j=w([C(0x0,_0x195147(_0x5e63e)),C(0x1,_0x195147(_0x239f7b)),C(0x2,_0x1df461),C(0x3,_0x3297e2),C(0x4,_0x34d9df)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x43ea42=_0x1337;(function(_0x116da9,_0x150dc7){const _0x551007=_0x1337,_0x11fcd2=_0x116da9();while(!![]){try{const _0xb127f3=parseInt(_0x551007(0x1aa))/0x1*(parseInt(_0x551007(0x19f))/0x2)+parseInt(_0x551007(0x19a))/0x3+parseInt(_0x551007(0x192))/0x4*(parseInt(_0x551007(0x196))/0x5)+-parseInt(_0x551007(0x1b9))/0x6+-parseInt(_0x551007(0x1b1))/0x7*(parseInt(_0x551007(0x195))/0x8)+-parseInt(_0x551007(0x1ba))/0x9*(parseInt(_0x551007(0x1af))/0xa)+parseInt(_0x551007(0x1b8))/0xb*(-parseInt(_0x551007(0x1b6))/0xc);if(_0xb127f3===_0x150dc7)break;else _0x11fcd2['push'](_0x11fcd2['shift']());}catch(_0x4c04c6){_0x11fcd2['push'](_0x11fcd2['shift']());}}}(_0x1aee,0xa5166));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x962a65,CollaborationSocketService as _0x10e00f,UniverCollaborationClientPlugin as _0x375d53}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x58f136,Disposable as _0x1ee4f0,DisposableCollection as _0x1433a1,IConfigService as _0x2fb584,ILogService as _0x433198,Inject as _0x1fbf73,Injector as _0x2dd465,Plugin as _0x262031,registerDependencies as _0x1ffa01,toDisposable as _0xc2d03b}from'@univerjs/core';import{HTTPService as _0x523f9b,ISocketService as _0x4ca083}from'@univerjs/network';import{Observable as _0x308b84,share as _0x4386e2}from'rxjs';import{WebSocket as _0x47f1b6}from'ws';import{ISnapshotServerService as _0x12b622}from'@univerjs-pro/collaboration';const y=_0x43ea42(0x18d),b={};var x=_0x43ea42(0x18f),S='1.0.0-alpha.0';function C(_0x521313,_0x2910e3){return function(_0x3f38c1,_0x216397){_0x2910e3(_0x3f38c1,_0x216397,_0x521313);};}function _0x1337(_0x5f0efd,_0x3a6476){_0x5f0efd=_0x5f0efd-0x18d;const _0x1aeec8=_0x1aee();let _0x13372b=_0x1aeec8[_0x5f0efd];return _0x13372b;}function w(_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5){const _0x44b040=_0x43ea42;var _0x2760da=arguments['length'],_0x26f558=_0x2760da<0x3?_0x46ecee:_0x37c7f5===null?_0x37c7f5=Object[_0x44b040(0x1c1)](_0x46ecee,_0x4173c1):_0x37c7f5,_0x386dd3;if(typeof Reflect==_0x44b040(0x1a7)&&typeof Reflect['decorate']==_0x44b040(0x1a0))_0x26f558=Reflect[_0x44b040(0x1ad)](_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5);else{for(var _0x6ed17=_0x371487['length']-0x1;_0x6ed17>=0x0;_0x6ed17--)(_0x386dd3=_0x371487[_0x6ed17])&&(_0x26f558=(_0x2760da<0x3?_0x386dd3(_0x26f558):_0x2760da>0x3?_0x386dd3(_0x46ecee,_0x4173c1,_0x26f558):_0x386dd3(_0x46ecee,_0x4173c1))||_0x26f558);}return _0x2760da>0x3&&_0x26f558&&Object[_0x44b040(0x1c2)](_0x46ecee,_0x4173c1,_0x26f558),_0x26f558;}let T=class extends _0x1ee4f0{constructor(_0x471531){const _0x3325fa=_0x43ea42;super(),this[_0x3325fa(0x1bc)]=_0x471531;}[_0x43ea42(0x1bf)](_0x1b05d0){const _0x165ffa=_0x43ea42;var _0xef08f;let _0x23b483=((_0xef08f=this[_0x165ffa(0x1bc)]['getConfig'](_0x962a65))==null?void 0x0:_0xef08f[_0x165ffa(0x1ae)])||{};try{let _0x3df239=new _0x47f1b6(_0x1b05d0,{'headers':{..._0x23b483}}),_0x4cec74=new _0x1433a1();return{'URL':_0x1b05d0,'close':(_0x8288e3,_0x3d1ebb)=>{const _0x586df7=_0x165ffa;_0x3df239['close'](_0x8288e3,_0x3d1ebb),_0x4cec74[_0x586df7(0x199)]();},'send':_0x55f4b2=>{const _0x3fda62=_0x165ffa;_0x3df239[_0x3fda62(0x1b3)](_0x55f4b2);},'open$':new _0x308b84(_0x31efe8=>{const _0x300086=_0x165ffa;let _0x5b19e9=_0x2eba8d=>_0x31efe8[_0x300086(0x1ac)](_0x2eba8d);_0x3df239[_0x300086(0x1a6)](_0x300086(0x1bd),_0x5b19e9),_0x4cec74[_0x300086(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x300086(0x1bd),_0x5b19e9)));})[_0x165ffa(0x1a3)](_0x4386e2()),'close$':new _0x308b84(_0x18ef0b=>{const _0x5583b8=_0x165ffa;let _0x52791e=_0x4b845f=>_0x18ef0b['next'](_0x4b845f);_0x3df239[_0x5583b8(0x1a6)]('close',_0x52791e),_0x4cec74[_0x5583b8(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x5583b8(0x191),_0x52791e)));})[_0x165ffa(0x1a3)](_0x4386e2()),'error$':new _0x308b84(_0x4f61ce=>{const _0x1505a0=_0x165ffa;let _0x45be18=_0x42c626=>_0x4f61ce[_0x1505a0(0x1ac)](_0x42c626);_0x3df239['addEventListener'](_0x1505a0(0x1a1),_0x45be18),_0x4cec74[_0x1505a0(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x1505a0(0x1a1),_0x45be18)));})[_0x165ffa(0x1a3)](_0x4386e2()),'message$':new _0x308b84(_0x52a0e0=>{const _0x1d7d48=_0x165ffa;let _0x23f3db=_0x4e5caa=>_0x52a0e0[_0x1d7d48(0x1ac)](_0x4e5caa);_0x3df239[_0x1d7d48(0x1a6)](_0x1d7d48(0x1c0),_0x23f3db),_0x4cec74['add'](_0xc2d03b(()=>_0x3df239[_0x1d7d48(0x1ab)](_0x1d7d48(0x1c0),_0x23f3db)));})['pipe'](_0x4386e2())};}catch(_0x324fd8){return console[_0x165ffa(0x1a1)](_0x324fd8),null;}}};T=w([C(0x0,_0x2fb584)],T);function E(_0x4f8adf){'@babel/helpers - typeof';const _0x258a53=_0x43ea42;return E=typeof Symbol=='function'&&typeof Symbol[_0x258a53(0x1b5)]==_0x258a53(0x1a4)?function(_0x290cd5){return typeof _0x290cd5;}:function(_0x152fc0){const _0x5e47dc=_0x258a53;return _0x152fc0&&typeof Symbol==_0x5e47dc(0x1a0)&&_0x152fc0['constructor']===Symbol&&_0x152fc0!==Symbol[_0x5e47dc(0x1b7)]?_0x5e47dc(0x1a4):typeof _0x152fc0;},E(_0x4f8adf);}function D(_0x19eb9a,_0x38c08a){const _0x55605e=_0x43ea42;if(E(_0x19eb9a)!=_0x55605e(0x1a7)||!_0x19eb9a)return _0x19eb9a;var _0x33cd2=_0x19eb9a[Symbol[_0x55605e(0x1b0)]];if(_0x33cd2!==void 0x0){var _0x569602=_0x33cd2[_0x55605e(0x194)](_0x19eb9a,_0x38c08a||_0x55605e(0x19b));if(E(_0x569602)!='object')return _0x569602;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x38c08a===_0x55605e(0x1a2)?String:Number)(_0x19eb9a);}function O(_0x439694){const _0x1661de=_0x43ea42;var _0x1e3301=D(_0x439694,'string');return E(_0x1e3301)==_0x1661de(0x1a4)?_0x1e3301:_0x1e3301+'';}function k(_0x3762bd,_0x46d606,_0x2e03bc){const _0x398f14=_0x43ea42;return(_0x46d606=O(_0x46d606))in _0x3762bd?Object[_0x398f14(0x1c2)](_0x3762bd,_0x46d606,{'value':_0x2e03bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3762bd[_0x46d606]=_0x2e03bc,_0x3762bd;}let A=class extends _0x262031{constructor(_0x513c5a=b,_0x2b0458,_0xcd989e){const _0x536f7c=_0x43ea42;super(),this[_0x536f7c(0x1bc)]=_0x2b0458,this[_0x536f7c(0x19c)]=_0xcd989e,this[_0x536f7c(0x1bc)][_0x536f7c(0x198)](y,_0x513c5a);}[_0x43ea42(0x18e)](){this['_registerDependencies']();}[_0x43ea42(0x1bb)](){const _0x1fe245=_0x43ea42;_0x1ffa01(this[_0x1fe245(0x19c)],[[_0x4ca083,{'useClass':T}]]);}};k(A,_0x43ea42(0x1a9),_0x43ea42(0x1b2)),k(A,_0x43ea42(0x193),x),k(A,_0x43ea42(0x1be),S),A=w([_0x58f136(_0x375d53),C(0x1,_0x2fb584),C(0x2,_0x1fbf73(_0x2dd465))],A);let j=class extends _0x10e00f{constructor(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b){const _0x594f34=_0x43ea42;super(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b);let _0x377f42=this[_0x594f34(0x1bc)][_0x594f34(0x19d)](_0x962a65);this[_0x594f34(0x1b4)][_0x594f34(0x190)]({'interceptor':(_0x1594f7,_0x587c29)=>{const _0x56724d=_0x594f34;let _0x4efb47=_0x1594f7[_0x56724d(0x1a8)];if(_0x377f42!=null&&_0x377f42[_0x56724d(0x1ae)]){for(let _0x413bfa in _0x377f42['customHeaders'])_0x4efb47[_0x56724d(0x19e)](_0x413bfa,_0x377f42['customHeaders'][_0x413bfa]);}return _0x587c29(_0x1594f7);}});}async[_0x43ea42(0x1bf)](_0x3aa511){const _0x1712ee=_0x43ea42;return this[_0x1712ee(0x197)](_0x3aa511);}};j=w([C(0x0,_0x1fbf73(_0x2dd465)),C(0x1,_0x1fbf73(_0x523f9b)),C(0x2,_0x2fb584),C(0x3,_0x433198),C(0x4,_0x12b622)],j);function _0x1aee(){const _0x6e2000=['_configService','open','version','createSocket','message','getOwnPropertyDescriptor','defineProperty','collaboration-client-node.config','onStarting','@univerjs-pro/collaboration-client-node','registerHTTPInterceptor','close','2279368GqbwUD','packageName','call','8zQQdVb','5DKmqQC','_doCreateSocket','setConfig','dispose','3878781OyJolG','default','_injector','getConfig','set','6430vlVTds','function','error','string','pipe','symbol','add','addEventListener','object','headers','pluginName','407PAWFFz','removeEventListener','next','decorate','customHeaders','365110rpeJxx','toPrimitive','4851553TzCtNU','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','_httpService','iterator','10065564ZHPSQg','prototype','11fCgvVE','5341068PSixok','18rnWepB','_registerDependencies'];_0x1aee=function(){return _0x6e2000;};return _0x1aee();}export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3abc7e=_0x16cb;(function(_0x4baae1,_0x5db63c){const _0x56ee7d=_0x16cb,_0x51d21e=_0x4baae1();while(!![]){try{const _0x3c031a=parseInt(_0x56ee7d(0x1b2))/0x1+-parseInt(_0x56ee7d(0x1a1))/0x2*(parseInt(_0x56ee7d(0x1c3))/0x3)+parseInt(_0x56ee7d(0x1b6))/0x4+parseInt(_0x56ee7d(0x1b4))/0x5*(parseInt(_0x56ee7d(0x1c7))/0x6)+-parseInt(_0x56ee7d(0x1ad))/0x7*(parseInt(_0x56ee7d(0x19a))/0x8)+parseInt(_0x56ee7d(0x1b0))/0x9+parseInt(_0x56ee7d(0x1c5))/0xa;if(_0x3c031a===_0x5db63c)break;else _0x51d21e['push'](_0x51d21e['shift']());}catch(_0x5bb3b1){_0x51d21e['push'](_0x51d21e['shift']());}}}(_0x36bf,0x89ada));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xdc0c8a,CollaborationSocketService as _0x24ce48,UniverCollaborationClientPlugin as _0x5a2c12}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x11433c,Disposable as _0x50ebe7,DisposableCollection as _0x1beba5,IConfigService as _0x1df461,ILogService as _0x3297e2,Inject as _0x195147,Injector as _0x5e63e,Plugin as _0x509595,registerDependencies as _0x308d63,toDisposable as _0x2a8200}from'@univerjs/core';import{HTTPService as _0x239f7b,ISocketService as _0x5442eb}from'@univerjs/network';function _0x16cb(_0x3d3557,_0x1c29c9){_0x3d3557=_0x3d3557-0x19a;const _0x36bfa0=_0x36bf();let _0x16cb96=_0x36bfa0[_0x3d3557];return _0x16cb96;}import{Observable as _0x15efeb,share as _0x32ec48}from'rxjs';import{WebSocket as _0x31303f}from'ws';import{ISnapshotServerService as _0x34d9df}from'@univerjs-pro/collaboration';const y=_0x3abc7e(0x1bf),b={};var x=_0x3abc7e(0x1ca),S=_0x3abc7e(0x19e);function _0x36bf(){const _0x5001e5=['getConfig','278872YBbjlF','_doCreateSocket','function','_injector','addEventListener','default','decorate','createSocket','string','collaboration-client-node.config','prototype','setConfig','_httpService','843UmXSoP','registerHTTPInterceptor','670320sKOdFn','add','6JxKOEb','next','dispose','@univerjs-pro/collaboration-client-node','_registerDependencies','call','32XhRupg','customHeaders','symbol','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','0.25.0-insiders.20260623-012b5a8','close','open','5338fYWuOn','getOwnPropertyDescriptor','defineProperty','iterator','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','pluginName','set','message','constructor','error','458941rQEUvU','_configService','object','9931464nyrCKh','onStarting','174219pyUVwy','pipe','808530swUBQu'];_0x36bf=function(){return _0x5001e5;};return _0x36bf();}function C(_0x24af22,_0x14b7fc){return function(_0x50d4b6,_0x583ebf){_0x14b7fc(_0x50d4b6,_0x583ebf,_0x24af22);};}function w(_0x294cce,_0x431f5c,_0x5a10f6,_0x4c6f8e){const _0x211b41=_0x3abc7e;var _0x341dbc=arguments[_0x211b41(0x1a7)],_0x4cccea=_0x341dbc<0x3?_0x431f5c:_0x4c6f8e===null?_0x4c6f8e=Object[_0x211b41(0x1a2)](_0x431f5c,_0x5a10f6):_0x4c6f8e,_0x1db1da;if(typeof Reflect==_0x211b41(0x1af)&&typeof Reflect['decorate']==_0x211b41(0x1b8))_0x4cccea=Reflect[_0x211b41(0x1bc)](_0x294cce,_0x431f5c,_0x5a10f6,_0x4c6f8e);else{for(var _0x4e1b8d=_0x294cce['length']-0x1;_0x4e1b8d>=0x0;_0x4e1b8d--)(_0x1db1da=_0x294cce[_0x4e1b8d])&&(_0x4cccea=(_0x341dbc<0x3?_0x1db1da(_0x4cccea):_0x341dbc>0x3?_0x1db1da(_0x431f5c,_0x5a10f6,_0x4cccea):_0x1db1da(_0x431f5c,_0x5a10f6))||_0x4cccea);}return _0x341dbc>0x3&&_0x4cccea&&Object[_0x211b41(0x1a3)](_0x431f5c,_0x5a10f6,_0x4cccea),_0x4cccea;}let T=class extends _0x50ebe7{constructor(_0x4542dc){const _0x4dfc8c=_0x3abc7e;super(),this[_0x4dfc8c(0x1ae)]=_0x4542dc;}[_0x3abc7e(0x1bd)](_0x37650d){const _0x6752e8=_0x3abc7e;var _0x4608f3;let _0x26f5a5=((_0x4608f3=this[_0x6752e8(0x1ae)][_0x6752e8(0x1b5)](_0xdc0c8a))==null?void 0x0:_0x4608f3[_0x6752e8(0x19b)])||{};try{let _0x522569=new _0x31303f(_0x37650d,{'headers':{..._0x26f5a5}}),_0x128e9f=new _0x1beba5();return{'URL':_0x37650d,'close':(_0x278022,_0xa184af)=>{const _0x39f06c=_0x6752e8;_0x522569[_0x39f06c(0x19f)](_0x278022,_0xa184af),_0x128e9f[_0x39f06c(0x1c9)]();},'send':_0x1e441f=>{_0x522569['send'](_0x1e441f);},'open$':new _0x15efeb(_0x1cc72f=>{const _0x2188b7=_0x6752e8;let _0x1b7c89=_0x9642a5=>_0x1cc72f[_0x2188b7(0x1c8)](_0x9642a5);_0x522569[_0x2188b7(0x1ba)](_0x2188b7(0x1a0),_0x1b7c89),_0x128e9f['add'](_0x2a8200(()=>_0x522569[_0x2188b7(0x1a5)]('open',_0x1b7c89)));})['pipe'](_0x32ec48()),'close$':new _0x15efeb(_0x3025b3=>{const _0x508008=_0x6752e8;let _0x35000e=_0x4aa28d=>_0x3025b3[_0x508008(0x1c8)](_0x4aa28d);_0x522569[_0x508008(0x1ba)](_0x508008(0x19f),_0x35000e),_0x128e9f['add'](_0x2a8200(()=>_0x522569[_0x508008(0x1a5)](_0x508008(0x19f),_0x35000e)));})[_0x6752e8(0x1b3)](_0x32ec48()),'error$':new _0x15efeb(_0x55cb92=>{const _0x26d5bf=_0x6752e8;let _0xc0d000=_0x41e672=>_0x55cb92[_0x26d5bf(0x1c8)](_0x41e672);_0x522569['addEventListener'](_0x26d5bf(0x1ac),_0xc0d000),_0x128e9f[_0x26d5bf(0x1c6)](_0x2a8200(()=>_0x522569['removeEventListener'](_0x26d5bf(0x1ac),_0xc0d000)));})[_0x6752e8(0x1b3)](_0x32ec48()),'message$':new _0x15efeb(_0x35cf9b=>{const _0x5eb8b8=_0x6752e8;let _0x5d77be=_0x31e9c2=>_0x35cf9b[_0x5eb8b8(0x1c8)](_0x31e9c2);_0x522569[_0x5eb8b8(0x1ba)](_0x5eb8b8(0x1aa),_0x5d77be),_0x128e9f[_0x5eb8b8(0x1c6)](_0x2a8200(()=>_0x522569[_0x5eb8b8(0x1a5)](_0x5eb8b8(0x1aa),_0x5d77be)));})[_0x6752e8(0x1b3)](_0x32ec48())};}catch(_0x291e83){return console['error'](_0x291e83),null;}}};T=w([C(0x0,_0x1df461)],T);function E(_0x27702b){'@babel/helpers - typeof';const _0x437fa5=_0x3abc7e;return E=typeof Symbol==_0x437fa5(0x1b8)&&typeof Symbol[_0x437fa5(0x1a4)]==_0x437fa5(0x19c)?function(_0x3595a0){return typeof _0x3595a0;}:function(_0x417677){const _0x816dd9=_0x437fa5;return _0x417677&&typeof Symbol==_0x816dd9(0x1b8)&&_0x417677[_0x816dd9(0x1ab)]===Symbol&&_0x417677!==Symbol[_0x816dd9(0x1c0)]?_0x816dd9(0x19c):typeof _0x417677;},E(_0x27702b);}function D(_0x1106fa,_0x523b63){const _0x4b0185=_0x3abc7e;if(E(_0x1106fa)!='object'||!_0x1106fa)return _0x1106fa;var _0x21c806=_0x1106fa[Symbol['toPrimitive']];if(_0x21c806!==void 0x0){var _0x84831a=_0x21c806[_0x4b0185(0x1cc)](_0x1106fa,_0x523b63||_0x4b0185(0x1bb));if(E(_0x84831a)!=_0x4b0185(0x1af))return _0x84831a;throw TypeError(_0x4b0185(0x1a6));}return(_0x523b63===_0x4b0185(0x1be)?String:Number)(_0x1106fa);}function O(_0x34a786){const _0x3f43c0=_0x3abc7e;var _0x5202ac=D(_0x34a786,_0x3f43c0(0x1be));return E(_0x5202ac)==_0x3f43c0(0x19c)?_0x5202ac:_0x5202ac+'';}function k(_0x4786b3,_0x496537,_0x9a2924){const _0x57056d=_0x3abc7e;return(_0x496537=O(_0x496537))in _0x4786b3?Object[_0x57056d(0x1a3)](_0x4786b3,_0x496537,{'value':_0x9a2924,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4786b3[_0x496537]=_0x9a2924,_0x4786b3;}let A=class extends _0x509595{constructor(_0x1c9096=b,_0x44af24,_0x5c6c82){const _0x28a5a9=_0x3abc7e;super(),this[_0x28a5a9(0x1ae)]=_0x44af24,this['_injector']=_0x5c6c82,this[_0x28a5a9(0x1ae)][_0x28a5a9(0x1c1)](y,_0x1c9096);}[_0x3abc7e(0x1b1)](){const _0xe75c30=_0x3abc7e;this[_0xe75c30(0x1cb)]();}[_0x3abc7e(0x1cb)](){const _0x12494c=_0x3abc7e;_0x308d63(this[_0x12494c(0x1b9)],[[_0x5442eb,{'useClass':T}]]);}};k(A,_0x3abc7e(0x1a8),_0x3abc7e(0x19d)),k(A,'packageName',x),k(A,'version',S),A=w([_0x11433c(_0x5a2c12),C(0x1,_0x1df461),C(0x2,_0x195147(_0x5e63e))],A);let j=class extends _0x24ce48{constructor(_0x1b43eb,_0x1f6a90,_0x513015,_0x3176b8,_0x3d43d0){const _0x751388=_0x3abc7e;super(_0x1b43eb,_0x1f6a90,_0x513015,_0x3176b8,_0x3d43d0);let _0x2067e5=this[_0x751388(0x1ae)][_0x751388(0x1b5)](_0xdc0c8a);this[_0x751388(0x1c2)][_0x751388(0x1c4)]({'interceptor':(_0x98c5fe,_0x253aed)=>{const _0x3041cb=_0x751388;let _0x1fdd0f=_0x98c5fe['headers'];if(_0x2067e5!=null&&_0x2067e5['customHeaders']){for(let _0x1c15e0 in _0x2067e5[_0x3041cb(0x19b)])_0x1fdd0f[_0x3041cb(0x1a9)](_0x1c15e0,_0x2067e5[_0x3041cb(0x19b)][_0x1c15e0]);}return _0x253aed(_0x98c5fe);}});}async[_0x3abc7e(0x1bd)](_0xb6111c){const _0x47927a=_0x3abc7e;return this[_0x47927a(0x1b7)](_0xb6111c);}};j=w([C(0x0,_0x195147(_0x5e63e)),C(0x1,_0x195147(_0x239f7b)),C(0x2,_0x1df461),C(0x3,_0x3297e2),C(0x4,_0x34d9df)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x43ea42=_0x1337;(function(_0x116da9,_0x150dc7){const _0x551007=_0x1337,_0x11fcd2=_0x116da9();while(!![]){try{const _0xb127f3=parseInt(_0x551007(0x1aa))/0x1*(parseInt(_0x551007(0x19f))/0x2)+parseInt(_0x551007(0x19a))/0x3+parseInt(_0x551007(0x192))/0x4*(parseInt(_0x551007(0x196))/0x5)+-parseInt(_0x551007(0x1b9))/0x6+-parseInt(_0x551007(0x1b1))/0x7*(parseInt(_0x551007(0x195))/0x8)+-parseInt(_0x551007(0x1ba))/0x9*(parseInt(_0x551007(0x1af))/0xa)+parseInt(_0x551007(0x1b8))/0xb*(-parseInt(_0x551007(0x1b6))/0xc);if(_0xb127f3===_0x150dc7)break;else _0x11fcd2['push'](_0x11fcd2['shift']());}catch(_0x4c04c6){_0x11fcd2['push'](_0x11fcd2['shift']());}}}(_0x1aee,0xa5166));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x962a65,CollaborationSocketService as _0x10e00f,UniverCollaborationClientPlugin as _0x375d53}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x58f136,Disposable as _0x1ee4f0,DisposableCollection as _0x1433a1,IConfigService as _0x2fb584,ILogService as _0x433198,Inject as _0x1fbf73,Injector as _0x2dd465,Plugin as _0x262031,registerDependencies as _0x1ffa01,toDisposable as _0xc2d03b}from'@univerjs/core';import{HTTPService as _0x523f9b,ISocketService as _0x4ca083}from'@univerjs/network';import{Observable as _0x308b84,share as _0x4386e2}from'rxjs';import{WebSocket as _0x47f1b6}from'ws';import{ISnapshotServerService as _0x12b622}from'@univerjs-pro/collaboration';const y=_0x43ea42(0x18d),b={};var x=_0x43ea42(0x18f),S='1.0.0-alpha.0';function C(_0x521313,_0x2910e3){return function(_0x3f38c1,_0x216397){_0x2910e3(_0x3f38c1,_0x216397,_0x521313);};}function _0x1337(_0x5f0efd,_0x3a6476){_0x5f0efd=_0x5f0efd-0x18d;const _0x1aeec8=_0x1aee();let _0x13372b=_0x1aeec8[_0x5f0efd];return _0x13372b;}function w(_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5){const _0x44b040=_0x43ea42;var _0x2760da=arguments['length'],_0x26f558=_0x2760da<0x3?_0x46ecee:_0x37c7f5===null?_0x37c7f5=Object[_0x44b040(0x1c1)](_0x46ecee,_0x4173c1):_0x37c7f5,_0x386dd3;if(typeof Reflect==_0x44b040(0x1a7)&&typeof Reflect['decorate']==_0x44b040(0x1a0))_0x26f558=Reflect[_0x44b040(0x1ad)](_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5);else{for(var _0x6ed17=_0x371487['length']-0x1;_0x6ed17>=0x0;_0x6ed17--)(_0x386dd3=_0x371487[_0x6ed17])&&(_0x26f558=(_0x2760da<0x3?_0x386dd3(_0x26f558):_0x2760da>0x3?_0x386dd3(_0x46ecee,_0x4173c1,_0x26f558):_0x386dd3(_0x46ecee,_0x4173c1))||_0x26f558);}return _0x2760da>0x3&&_0x26f558&&Object[_0x44b040(0x1c2)](_0x46ecee,_0x4173c1,_0x26f558),_0x26f558;}let T=class extends _0x1ee4f0{constructor(_0x471531){const _0x3325fa=_0x43ea42;super(),this[_0x3325fa(0x1bc)]=_0x471531;}[_0x43ea42(0x1bf)](_0x1b05d0){const _0x165ffa=_0x43ea42;var _0xef08f;let _0x23b483=((_0xef08f=this[_0x165ffa(0x1bc)]['getConfig'](_0x962a65))==null?void 0x0:_0xef08f[_0x165ffa(0x1ae)])||{};try{let _0x3df239=new _0x47f1b6(_0x1b05d0,{'headers':{..._0x23b483}}),_0x4cec74=new _0x1433a1();return{'URL':_0x1b05d0,'close':(_0x8288e3,_0x3d1ebb)=>{const _0x586df7=_0x165ffa;_0x3df239['close'](_0x8288e3,_0x3d1ebb),_0x4cec74[_0x586df7(0x199)]();},'send':_0x55f4b2=>{const _0x3fda62=_0x165ffa;_0x3df239[_0x3fda62(0x1b3)](_0x55f4b2);},'open$':new _0x308b84(_0x31efe8=>{const _0x300086=_0x165ffa;let _0x5b19e9=_0x2eba8d=>_0x31efe8[_0x300086(0x1ac)](_0x2eba8d);_0x3df239[_0x300086(0x1a6)](_0x300086(0x1bd),_0x5b19e9),_0x4cec74[_0x300086(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x300086(0x1bd),_0x5b19e9)));})[_0x165ffa(0x1a3)](_0x4386e2()),'close$':new _0x308b84(_0x18ef0b=>{const _0x5583b8=_0x165ffa;let _0x52791e=_0x4b845f=>_0x18ef0b['next'](_0x4b845f);_0x3df239[_0x5583b8(0x1a6)]('close',_0x52791e),_0x4cec74[_0x5583b8(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x5583b8(0x191),_0x52791e)));})[_0x165ffa(0x1a3)](_0x4386e2()),'error$':new _0x308b84(_0x4f61ce=>{const _0x1505a0=_0x165ffa;let _0x45be18=_0x42c626=>_0x4f61ce[_0x1505a0(0x1ac)](_0x42c626);_0x3df239['addEventListener'](_0x1505a0(0x1a1),_0x45be18),_0x4cec74[_0x1505a0(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x1505a0(0x1a1),_0x45be18)));})[_0x165ffa(0x1a3)](_0x4386e2()),'message$':new _0x308b84(_0x52a0e0=>{const _0x1d7d48=_0x165ffa;let _0x23f3db=_0x4e5caa=>_0x52a0e0[_0x1d7d48(0x1ac)](_0x4e5caa);_0x3df239[_0x1d7d48(0x1a6)](_0x1d7d48(0x1c0),_0x23f3db),_0x4cec74['add'](_0xc2d03b(()=>_0x3df239[_0x1d7d48(0x1ab)](_0x1d7d48(0x1c0),_0x23f3db)));})['pipe'](_0x4386e2())};}catch(_0x324fd8){return console[_0x165ffa(0x1a1)](_0x324fd8),null;}}};T=w([C(0x0,_0x2fb584)],T);function E(_0x4f8adf){'@babel/helpers - typeof';const _0x258a53=_0x43ea42;return E=typeof Symbol=='function'&&typeof Symbol[_0x258a53(0x1b5)]==_0x258a53(0x1a4)?function(_0x290cd5){return typeof _0x290cd5;}:function(_0x152fc0){const _0x5e47dc=_0x258a53;return _0x152fc0&&typeof Symbol==_0x5e47dc(0x1a0)&&_0x152fc0['constructor']===Symbol&&_0x152fc0!==Symbol[_0x5e47dc(0x1b7)]?_0x5e47dc(0x1a4):typeof _0x152fc0;},E(_0x4f8adf);}function D(_0x19eb9a,_0x38c08a){const _0x55605e=_0x43ea42;if(E(_0x19eb9a)!=_0x55605e(0x1a7)||!_0x19eb9a)return _0x19eb9a;var _0x33cd2=_0x19eb9a[Symbol[_0x55605e(0x1b0)]];if(_0x33cd2!==void 0x0){var _0x569602=_0x33cd2[_0x55605e(0x194)](_0x19eb9a,_0x38c08a||_0x55605e(0x19b));if(E(_0x569602)!='object')return _0x569602;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x38c08a===_0x55605e(0x1a2)?String:Number)(_0x19eb9a);}function O(_0x439694){const _0x1661de=_0x43ea42;var _0x1e3301=D(_0x439694,'string');return E(_0x1e3301)==_0x1661de(0x1a4)?_0x1e3301:_0x1e3301+'';}function k(_0x3762bd,_0x46d606,_0x2e03bc){const _0x398f14=_0x43ea42;return(_0x46d606=O(_0x46d606))in _0x3762bd?Object[_0x398f14(0x1c2)](_0x3762bd,_0x46d606,{'value':_0x2e03bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3762bd[_0x46d606]=_0x2e03bc,_0x3762bd;}let A=class extends _0x262031{constructor(_0x513c5a=b,_0x2b0458,_0xcd989e){const _0x536f7c=_0x43ea42;super(),this[_0x536f7c(0x1bc)]=_0x2b0458,this[_0x536f7c(0x19c)]=_0xcd989e,this[_0x536f7c(0x1bc)][_0x536f7c(0x198)](y,_0x513c5a);}[_0x43ea42(0x18e)](){this['_registerDependencies']();}[_0x43ea42(0x1bb)](){const _0x1fe245=_0x43ea42;_0x1ffa01(this[_0x1fe245(0x19c)],[[_0x4ca083,{'useClass':T}]]);}};k(A,_0x43ea42(0x1a9),_0x43ea42(0x1b2)),k(A,_0x43ea42(0x193),x),k(A,_0x43ea42(0x1be),S),A=w([_0x58f136(_0x375d53),C(0x1,_0x2fb584),C(0x2,_0x1fbf73(_0x2dd465))],A);let j=class extends _0x10e00f{constructor(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b){const _0x594f34=_0x43ea42;super(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b);let _0x377f42=this[_0x594f34(0x1bc)][_0x594f34(0x19d)](_0x962a65);this[_0x594f34(0x1b4)][_0x594f34(0x190)]({'interceptor':(_0x1594f7,_0x587c29)=>{const _0x56724d=_0x594f34;let _0x4efb47=_0x1594f7[_0x56724d(0x1a8)];if(_0x377f42!=null&&_0x377f42[_0x56724d(0x1ae)]){for(let _0x413bfa in _0x377f42['customHeaders'])_0x4efb47[_0x56724d(0x19e)](_0x413bfa,_0x377f42['customHeaders'][_0x413bfa]);}return _0x587c29(_0x1594f7);}});}async[_0x43ea42(0x1bf)](_0x3aa511){const _0x1712ee=_0x43ea42;return this[_0x1712ee(0x197)](_0x3aa511);}};j=w([C(0x0,_0x1fbf73(_0x2dd465)),C(0x1,_0x1fbf73(_0x523f9b)),C(0x2,_0x2fb584),C(0x3,_0x433198),C(0x4,_0x12b622)],j);function _0x1aee(){const _0x6e2000=['_configService','open','version','createSocket','message','getOwnPropertyDescriptor','defineProperty','collaboration-client-node.config','onStarting','@univerjs-pro/collaboration-client-node','registerHTTPInterceptor','close','2279368GqbwUD','packageName','call','8zQQdVb','5DKmqQC','_doCreateSocket','setConfig','dispose','3878781OyJolG','default','_injector','getConfig','set','6430vlVTds','function','error','string','pipe','symbol','add','addEventListener','object','headers','pluginName','407PAWFFz','removeEventListener','next','decorate','customHeaders','365110rpeJxx','toPrimitive','4851553TzCtNU','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','_httpService','iterator','10065564ZHPSQg','prototype','11fCgvVE','5341068PSixok','18rnWepB','_registerDependencies'];_0x1aee=function(){return _0x6e2000;};return _0x1aee();}export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5247(){const _0x5766ec=['object','getConfig','addEventListener','UniverProCollaborationClientNode','IConfigService','ISocketService','Observable','6826qfXDlt','Module','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','135cPBUOj','toPrimitive','Disposable','registerHTTPInterceptor','share','2077376woSfqm','prototype','next','rxjs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeEventListener','pluginName','@univerjs/network','Injector','DisposableCollection','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs-pro/collaboration-client-node','WebSocket','add','CollaborationSocketService','HTTPService','101984iLRUks','onStarting','@univerjs/core','message','version','@univerjs-pro/collaboration-client','ILogService','71165bMAiCL','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','UniverProCollaborationClient','COLLABORATION_CLIENT_NODE_CONFIG_KEY','error','793272dsGVfN','_injector','321OegeUR','11dKWvLQ','packageName','DependentOn','send','iterator','ISnapshotServerService','7jvXOwI','headers','2062240TYgTrU','5415770YarINl','_configService','UniverCollaborationClientPlugin','function','open','Plugin','Inject','defineProperty','toDisposable','symbol','0.25.0-insiders.20260623-012b5a8','NodeCollaborationSocketService','set','_httpService','UniverNetwork','decorate','customHeaders','length','call','getOwnPropertyDescriptor','amd','string','pipe','@univerjs-pro/collaboration','collaboration-client-node.config','_doCreateSocket','_registerDependencies','constructor','exports','UniverCore','close'];_0x5247=function(){return _0x5766ec;};return _0x5247();}function _0xc760(_0x1ded47,_0x175295){_0x1ded47=_0x1ded47-0xef;const _0x524775=_0x5247();let _0xc760d9=_0x524775[_0x1ded47];return _0xc760d9;}(function(_0x56eb37,_0x2f3576){const _0x45509d=_0xc760,_0x2e88f5=_0x56eb37();while(!![]){try{const _0x39b37e=parseInt(_0x45509d(0x13d))/0x1+-parseInt(_0x45509d(0x11e))/0x2*(-parseInt(_0x45509d(0x144))/0x3)+parseInt(_0x45509d(0x126))/0x4+-parseInt(_0x45509d(0xf7))/0x5+parseInt(_0x45509d(0x142))/0x6*(parseInt(_0x45509d(0xf5))/0x7)+-parseInt(_0x45509d(0x136))/0x8*(-parseInt(_0x45509d(0x121))/0x9)+-parseInt(_0x45509d(0xf8))/0xa*(parseInt(_0x45509d(0xef))/0xb);if(_0x39b37e===_0x2f3576)break;else _0x2e88f5['push'](_0x2e88f5['shift']());}catch(_0x4eacc9){_0x2e88f5['push'](_0x2e88f5['shift']());}}}(_0x5247,0x4f5f3),function(_0x48995d,_0x510702){const _0x3f8862=_0xc760;typeof exports=='object'&&typeof module<'u'?_0x510702(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define=='function'&&define[_0x3f8862(0x10c)]?define([_0x3f8862(0x114),_0x3f8862(0x13b),_0x3f8862(0x138),_0x3f8862(0x12d),_0x3f8862(0x129),_0x3f8862(0x10f)],_0x510702):(_0x48995d=typeof globalThis<'u'?globalThis:_0x48995d||self,_0x510702(_0x48995d[_0x3f8862(0x11a)]={},_0x48995d[_0x3f8862(0x13f)],_0x48995d[_0x3f8862(0x115)],_0x48995d[_0x3f8862(0x106)],_0x48995d['rxjs'],_0x48995d['UniverProCollaboration']));}(this,function(_0x4d9536,_0x1d8bf6,_0x3efc8d,_0x559997,_0x280601,_0x20c0ca){const _0x3b773d=_0xc760;Object['defineProperty'](_0x4d9536,Symbol['toStringTag'],{'value':_0x3b773d(0x11f)});var _0x2c6d50=(_0x41296b,_0x5b7fbd)=>()=>(_0x5b7fbd||(_0x41296b((_0x5b7fbd={'exports':{}})['exports'],_0x5b7fbd),_0x41296b=null),_0x5b7fbd[_0x3b773d(0x114)]);let _0xe8db0b=_0x3b773d(0x110),_0x2ac4b3={};var _0x121b20=_0x3b773d(0x131),_0xa16f24=_0x3b773d(0x102),_0x83e997=_0x2c6d50((_0x51fd2e,_0x6bb276)=>{const _0x29c406=_0x3b773d;_0x6bb276[_0x29c406(0x114)]=function(){const _0x160af9=_0x29c406;throw Error(_0x160af9(0x120));};})();function _0x39b5a0(_0x1d42fd,_0x594f86){return function(_0x197d82,_0x4a34df){_0x594f86(_0x197d82,_0x4a34df,_0x1d42fd);};}function _0x1bd937(_0xc132f5,_0x4522b3,_0x1a48e9,_0x219409){const _0x37c2a8=_0x3b773d;var _0x1ec335=arguments[_0x37c2a8(0x109)],_0x146e93=_0x1ec335<0x3?_0x4522b3:_0x219409===null?_0x219409=Object[_0x37c2a8(0x10b)](_0x4522b3,_0x1a48e9):_0x219409,_0x415d78;if(typeof Reflect==_0x37c2a8(0x117)&&typeof Reflect[_0x37c2a8(0x107)]==_0x37c2a8(0xfb))_0x146e93=Reflect['decorate'](_0xc132f5,_0x4522b3,_0x1a48e9,_0x219409);else{for(var _0x58aa43=_0xc132f5[_0x37c2a8(0x109)]-0x1;_0x58aa43>=0x0;_0x58aa43--)(_0x415d78=_0xc132f5[_0x58aa43])&&(_0x146e93=(_0x1ec335<0x3?_0x415d78(_0x146e93):_0x1ec335>0x3?_0x415d78(_0x4522b3,_0x1a48e9,_0x146e93):_0x415d78(_0x4522b3,_0x1a48e9))||_0x146e93);}return _0x1ec335>0x3&&_0x146e93&&Object[_0x37c2a8(0xff)](_0x4522b3,_0x1a48e9,_0x146e93),_0x146e93;}let _0x35074b=class extends _0x3efc8d[_0x3b773d(0x123)]{constructor(_0x3b12c0){const _0x5f4688=_0x3b773d;super(),this[_0x5f4688(0xf9)]=_0x3b12c0;}['createSocket'](_0x39dffa){const _0x41adbb=_0x3b773d;var _0x398c24;let _0x44944c=((_0x398c24=this['_configService'][_0x41adbb(0x118)](_0x1d8bf6[_0x41adbb(0x130)]))==null?void 0x0:_0x398c24[_0x41adbb(0x108)])||{};try{let _0x45d45f=new _0x83e997[(_0x41adbb(0x132))](_0x39dffa,{'headers':{..._0x44944c}}),_0x546906=new _0x3efc8d[(_0x41adbb(0x12f))]();return{'URL':_0x39dffa,'close':(_0x31858c,_0x47c18d)=>{const _0x5b66ea=_0x41adbb;_0x45d45f[_0x5b66ea(0x116)](_0x31858c,_0x47c18d),_0x546906['dispose']();},'send':_0x19a02a=>{const _0x1b31a1=_0x41adbb;_0x45d45f[_0x1b31a1(0xf2)](_0x19a02a);},'open$':new _0x280601[(_0x41adbb(0x11d))](_0x1a0483=>{const _0x2484c3=_0x41adbb;let _0x568ce0=_0x4a245d=>_0x1a0483[_0x2484c3(0x128)](_0x4a245d);_0x45d45f[_0x2484c3(0x119)](_0x2484c3(0xfc),_0x568ce0),_0x546906['add']((0x0,_0x3efc8d['toDisposable'])(()=>_0x45d45f[_0x2484c3(0x12b)](_0x2484c3(0xfc),_0x568ce0)));})[_0x41adbb(0x10e)]((0x0,_0x280601[_0x41adbb(0x125)])()),'close$':new _0x280601['Observable'](_0xf7f4d0=>{const _0x502087=_0x41adbb;let _0x2fab0f=_0x7fad6e=>_0xf7f4d0[_0x502087(0x128)](_0x7fad6e);_0x45d45f[_0x502087(0x119)](_0x502087(0x116),_0x2fab0f),_0x546906[_0x502087(0x133)]((0x0,_0x3efc8d[_0x502087(0x100)])(()=>_0x45d45f['removeEventListener']('close',_0x2fab0f)));})[_0x41adbb(0x10e)]((0x0,_0x280601['share'])()),'error$':new _0x280601['Observable'](_0x50a653=>{const _0x10c387=_0x41adbb;let _0x2b130b=_0x60be85=>_0x50a653['next'](_0x60be85);_0x45d45f['addEventListener']('error',_0x2b130b),_0x546906[_0x10c387(0x133)]((0x0,_0x3efc8d[_0x10c387(0x100)])(()=>_0x45d45f[_0x10c387(0x12b)](_0x10c387(0x141),_0x2b130b)));})[_0x41adbb(0x10e)]((0x0,_0x280601[_0x41adbb(0x125)])()),'message$':new _0x280601['Observable'](_0x4ea549=>{const _0x481d02=_0x41adbb;let _0x18c96d=_0x21aeb9=>_0x4ea549[_0x481d02(0x128)](_0x21aeb9);_0x45d45f[_0x481d02(0x119)]('message',_0x18c96d),_0x546906['add']((0x0,_0x3efc8d[_0x481d02(0x100)])(()=>_0x45d45f[_0x481d02(0x12b)](_0x481d02(0x139),_0x18c96d)));})[_0x41adbb(0x10e)]((0x0,_0x280601[_0x41adbb(0x125)])())};}catch(_0x33674f){return console[_0x41adbb(0x141)](_0x33674f),null;}}};_0x35074b=_0x1bd937([_0x39b5a0(0x0,_0x3efc8d[_0x3b773d(0x11b)])],_0x35074b);function _0xfa0fad(_0x2d10ca){'@babel/helpers - typeof';const _0x34699b=_0x3b773d;return _0xfa0fad=typeof Symbol=='function'&&typeof Symbol[_0x34699b(0xf3)]==_0x34699b(0x101)?function(_0x139fee){return typeof _0x139fee;}:function(_0x5934ce){const _0x3e2973=_0x34699b;return _0x5934ce&&typeof Symbol==_0x3e2973(0xfb)&&_0x5934ce[_0x3e2973(0x113)]===Symbol&&_0x5934ce!==Symbol[_0x3e2973(0x127)]?_0x3e2973(0x101):typeof _0x5934ce;},_0xfa0fad(_0x2d10ca);}function _0x2ebfa8(_0x1f4440,_0x3a3ead){const _0x142266=_0x3b773d;if(_0xfa0fad(_0x1f4440)!=_0x142266(0x117)||!_0x1f4440)return _0x1f4440;var _0x607be6=_0x1f4440[Symbol[_0x142266(0x122)]];if(_0x607be6!==void 0x0){var _0x349c87=_0x607be6[_0x142266(0x10a)](_0x1f4440,_0x3a3ead||'default');if(_0xfa0fad(_0x349c87)!='object')return _0x349c87;throw TypeError(_0x142266(0x12a));}return(_0x3a3ead==='string'?String:Number)(_0x1f4440);}function _0x1dbb9d(_0x8568d7){const _0x2382c5=_0x3b773d;var _0x5036f5=_0x2ebfa8(_0x8568d7,_0x2382c5(0x10d));return _0xfa0fad(_0x5036f5)=='symbol'?_0x5036f5:_0x5036f5+'';}function _0x508c57(_0x22c96f,_0x502409,_0xdb3c9c){const _0x4a696e=_0x3b773d;return(_0x502409=_0x1dbb9d(_0x502409))in _0x22c96f?Object[_0x4a696e(0xff)](_0x22c96f,_0x502409,{'value':_0xdb3c9c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22c96f[_0x502409]=_0xdb3c9c,_0x22c96f;}let _0x488e94=class extends _0x3efc8d[_0x3b773d(0xfd)]{constructor(_0x4dc087=_0x2ac4b3,_0xfaccae,_0x29e518){const _0x3bbddb=_0x3b773d;super(),this[_0x3bbddb(0xf9)]=_0xfaccae,this[_0x3bbddb(0x143)]=_0x29e518,this['_configService']['setConfig'](_0xe8db0b,_0x4dc087);}[_0x3b773d(0x137)](){const _0x16968e=_0x3b773d;this[_0x16968e(0x112)]();}[_0x3b773d(0x112)](){const _0x53598f=_0x3b773d;(0x0,_0x3efc8d['registerDependencies'])(this[_0x53598f(0x143)],[[_0x559997[_0x53598f(0x11c)],{'useClass':_0x35074b}]]);}};_0x508c57(_0x488e94,_0x3b773d(0x12c),_0x3b773d(0x13e)),_0x508c57(_0x488e94,_0x3b773d(0xf0),_0x121b20),_0x508c57(_0x488e94,_0x3b773d(0x13a),_0xa16f24),_0x488e94=_0x1bd937([(0x0,_0x3efc8d[_0x3b773d(0xf1)])(_0x1d8bf6[_0x3b773d(0xfa)]),_0x39b5a0(0x1,_0x3efc8d[_0x3b773d(0x11b)]),_0x39b5a0(0x2,(0x0,_0x3efc8d[_0x3b773d(0xfe)])(_0x3efc8d[_0x3b773d(0x12e)]))],_0x488e94);let _0x326105=class extends _0x1d8bf6[_0x3b773d(0x134)]{constructor(_0xf25c6f,_0x4c2c29,_0x5bf274,_0x12160e,_0x1b1027){const _0x2f19ad=_0x3b773d;super(_0xf25c6f,_0x4c2c29,_0x5bf274,_0x12160e,_0x1b1027);let _0x323bcb=this[_0x2f19ad(0xf9)][_0x2f19ad(0x118)](_0x1d8bf6[_0x2f19ad(0x130)]);this[_0x2f19ad(0x105)][_0x2f19ad(0x124)]({'interceptor':(_0x8d2d90,_0xee3b6a)=>{const _0x356da9=_0x2f19ad;let _0xb6e456=_0x8d2d90[_0x356da9(0xf6)];if(_0x323bcb!=null&&_0x323bcb[_0x356da9(0x108)]){for(let _0x1e3e06 in _0x323bcb['customHeaders'])_0xb6e456[_0x356da9(0x104)](_0x1e3e06,_0x323bcb['customHeaders'][_0x1e3e06]);}return _0xee3b6a(_0x8d2d90);}});}async['createSocket'](_0x32b820){const _0x2cc53c=_0x3b773d;return this[_0x2cc53c(0x111)](_0x32b820);}};_0x326105=_0x1bd937([_0x39b5a0(0x0,(0x0,_0x3efc8d['Inject'])(_0x3efc8d['Injector'])),_0x39b5a0(0x1,(0x0,_0x3efc8d[_0x3b773d(0xfe)])(_0x559997[_0x3b773d(0x135)])),_0x39b5a0(0x2,_0x3efc8d[_0x3b773d(0x11b)]),_0x39b5a0(0x3,_0x3efc8d[_0x3b773d(0x13c)]),_0x39b5a0(0x4,_0x20c0ca[_0x3b773d(0xf4)])],_0x326105),_0x4d9536[_0x3b773d(0x140)]=_0xe8db0b,Object['defineProperty'](_0x4d9536,_0x3b773d(0x103),{'enumerable':!0x0,'get':function(){return _0x326105;}}),Object['defineProperty'](_0x4d9536,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x488e94;}});}));
1
+ (function(_0x35dc3c,_0x4104f4){const _0x5a6f86=_0x537b,_0x560887=_0x35dc3c();while(!![]){try{const _0x3f7a1d=-parseInt(_0x5a6f86(0x154))/0x1*(-parseInt(_0x5a6f86(0x156))/0x2)+parseInt(_0x5a6f86(0x18b))/0x3*(-parseInt(_0x5a6f86(0x160))/0x4)+parseInt(_0x5a6f86(0x167))/0x5+-parseInt(_0x5a6f86(0x174))/0x6*(parseInt(_0x5a6f86(0x171))/0x7)+parseInt(_0x5a6f86(0x15f))/0x8+-parseInt(_0x5a6f86(0x145))/0x9+parseInt(_0x5a6f86(0x16c))/0xa;if(_0x3f7a1d===_0x4104f4)break;else _0x560887['push'](_0x560887['shift']());}catch(_0x38e6c7){_0x560887['push'](_0x560887['shift']());}}}(_0x5010,0xf3632),function(_0x42360f,_0x22aabf){const _0x364d35=_0x537b;typeof exports==_0x364d35(0x17c)&&typeof module<'u'?_0x22aabf(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x364d35(0x168)&&define[_0x364d35(0x185)]?define(['exports','@univerjs-pro/collaboration-client',_0x364d35(0x169),_0x364d35(0x186),_0x364d35(0x151),_0x364d35(0x157)],_0x22aabf):(_0x42360f=typeof globalThis<'u'?globalThis:_0x42360f||self,_0x22aabf(_0x42360f[_0x364d35(0x14e)]={},_0x42360f[_0x364d35(0x17e)],_0x42360f[_0x364d35(0x170)],_0x42360f[_0x364d35(0x187)],_0x42360f[_0x364d35(0x151)],_0x42360f[_0x364d35(0x162)]));}(this,function(_0x47313c,_0x16382c,_0x33b92e,_0x5cfb11,_0xa38acc,_0x50ee19){const _0x221703=_0x537b;Object[_0x221703(0x188)](_0x47313c,Symbol[_0x221703(0x146)],{'value':_0x221703(0x15c)});var _0x209874=(_0x8a55de,_0x318e17)=>()=>(_0x318e17||(_0x8a55de((_0x318e17={'exports':{}})[_0x221703(0x147)],_0x318e17),_0x8a55de=null),_0x318e17[_0x221703(0x147)]);let _0x428564=_0x221703(0x173),_0x39dbac={};var _0x27ad88=_0x221703(0x166),_0x22bdd4=_0x221703(0x155),_0x162aa1=_0x209874((_0x542473,_0x5bb6d4)=>{_0x5bb6d4['exports']=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x6332de(_0x371abb,_0x5b9a50){return function(_0x191037,_0x59ba87){_0x5b9a50(_0x191037,_0x59ba87,_0x371abb);};}function _0x50017b(_0x1d5803,_0x4291ac,_0x20cf1b,_0x1f7740){const _0x8f5db8=_0x221703;var _0x52241d=arguments['length'],_0x4ce01a=_0x52241d<0x3?_0x4291ac:_0x1f7740===null?_0x1f7740=Object[_0x8f5db8(0x140)](_0x4291ac,_0x20cf1b):_0x1f7740,_0x5bc8b2;if(typeof Reflect==_0x8f5db8(0x17c)&&typeof Reflect[_0x8f5db8(0x14c)]==_0x8f5db8(0x168))_0x4ce01a=Reflect[_0x8f5db8(0x14c)](_0x1d5803,_0x4291ac,_0x20cf1b,_0x1f7740);else{for(var _0x43842d=_0x1d5803[_0x8f5db8(0x16b)]-0x1;_0x43842d>=0x0;_0x43842d--)(_0x5bc8b2=_0x1d5803[_0x43842d])&&(_0x4ce01a=(_0x52241d<0x3?_0x5bc8b2(_0x4ce01a):_0x52241d>0x3?_0x5bc8b2(_0x4291ac,_0x20cf1b,_0x4ce01a):_0x5bc8b2(_0x4291ac,_0x20cf1b))||_0x4ce01a);}return _0x52241d>0x3&&_0x4ce01a&&Object[_0x8f5db8(0x188)](_0x4291ac,_0x20cf1b,_0x4ce01a),_0x4ce01a;}let _0x54deae=class extends _0x33b92e['Disposable']{constructor(_0x1b1ff0){const _0x1d86b0=_0x221703;super(),this[_0x1d86b0(0x144)]=_0x1b1ff0;}['createSocket'](_0x378ecb){const _0x49eb7b=_0x221703;var _0x4aed2b;let _0x3853d4=((_0x4aed2b=this[_0x49eb7b(0x144)][_0x49eb7b(0x181)](_0x16382c[_0x49eb7b(0x14f)]))==null?void 0x0:_0x4aed2b[_0x49eb7b(0x17f)])||{};try{let _0x355ca5=new _0x162aa1['WebSocket'](_0x378ecb,{'headers':{..._0x3853d4}}),_0x105825=new _0x33b92e['DisposableCollection']();return{'URL':_0x378ecb,'close':(_0x31bdd7,_0x269e58)=>{const _0x182559=_0x49eb7b;_0x355ca5[_0x182559(0x16e)](_0x31bdd7,_0x269e58),_0x105825['dispose']();},'send':_0x199e5a=>{const _0x13d6d4=_0x49eb7b;_0x355ca5[_0x13d6d4(0x141)](_0x199e5a);},'open$':new _0xa38acc['Observable'](_0x5c7d3c=>{const _0x59309d=_0x49eb7b;let _0x1d2ca6=_0x36412=>_0x5c7d3c[_0x59309d(0x152)](_0x36412);_0x355ca5['addEventListener']('open',_0x1d2ca6),_0x105825[_0x59309d(0x15a)]((0x0,_0x33b92e[_0x59309d(0x172)])(()=>_0x355ca5['removeEventListener'](_0x59309d(0x184),_0x1d2ca6)));})[_0x49eb7b(0x16f)]((0x0,_0xa38acc[_0x49eb7b(0x17b)])()),'close$':new _0xa38acc[(_0x49eb7b(0x175))](_0xff9c5f=>{const _0x2dc07c=_0x49eb7b;let _0x511653=_0x38422e=>_0xff9c5f[_0x2dc07c(0x152)](_0x38422e);_0x355ca5['addEventListener'](_0x2dc07c(0x16e),_0x511653),_0x105825[_0x2dc07c(0x15a)]((0x0,_0x33b92e[_0x2dc07c(0x172)])(()=>_0x355ca5[_0x2dc07c(0x16a)](_0x2dc07c(0x16e),_0x511653)));})['pipe']((0x0,_0xa38acc[_0x49eb7b(0x17b)])()),'error$':new _0xa38acc[(_0x49eb7b(0x175))](_0x4a677b=>{const _0x3dac82=_0x49eb7b;let _0x1bafb5=_0x4d9301=>_0x4a677b[_0x3dac82(0x152)](_0x4d9301);_0x355ca5[_0x3dac82(0x13e)](_0x3dac82(0x161),_0x1bafb5),_0x105825['add']((0x0,_0x33b92e['toDisposable'])(()=>_0x355ca5[_0x3dac82(0x16a)](_0x3dac82(0x161),_0x1bafb5)));})[_0x49eb7b(0x16f)]((0x0,_0xa38acc['share'])()),'message$':new _0xa38acc[(_0x49eb7b(0x175))](_0x312df8=>{const _0xcacb74=_0x49eb7b;let _0x46d43f=_0x4bb370=>_0x312df8['next'](_0x4bb370);_0x355ca5[_0xcacb74(0x13e)](_0xcacb74(0x15e),_0x46d43f),_0x105825[_0xcacb74(0x15a)]((0x0,_0x33b92e['toDisposable'])(()=>_0x355ca5[_0xcacb74(0x16a)](_0xcacb74(0x15e),_0x46d43f)));})[_0x49eb7b(0x16f)]((0x0,_0xa38acc[_0x49eb7b(0x17b)])())};}catch(_0x28870c){return console[_0x49eb7b(0x161)](_0x28870c),null;}}};_0x54deae=_0x50017b([_0x6332de(0x0,_0x33b92e[_0x221703(0x159)])],_0x54deae);function _0x29bb28(_0x59b414){'@babel/helpers - typeof';const _0x35e459=_0x221703;return _0x29bb28=typeof Symbol=='function'&&typeof Symbol[_0x35e459(0x183)]=='symbol'?function(_0x2609ef){return typeof _0x2609ef;}:function(_0x1b4328){const _0xa9edea=_0x35e459;return _0x1b4328&&typeof Symbol==_0xa9edea(0x168)&&_0x1b4328[_0xa9edea(0x158)]===Symbol&&_0x1b4328!==Symbol['prototype']?_0xa9edea(0x14a):typeof _0x1b4328;},_0x29bb28(_0x59b414);}function _0xed6a04(_0x272d5b,_0x18cb21){const _0x598975=_0x221703;if(_0x29bb28(_0x272d5b)!=_0x598975(0x17c)||!_0x272d5b)return _0x272d5b;var _0x44c676=_0x272d5b[Symbol[_0x598975(0x143)]];if(_0x44c676!==void 0x0){var _0x71bf25=_0x44c676[_0x598975(0x14d)](_0x272d5b,_0x18cb21||_0x598975(0x178));if(_0x29bb28(_0x71bf25)!=_0x598975(0x17c))return _0x71bf25;throw TypeError(_0x598975(0x150));}return(_0x18cb21===_0x598975(0x165)?String:Number)(_0x272d5b);}function _0x5249c7(_0x2a3890){const _0x5a0d88=_0x221703;var _0x47057f=_0xed6a04(_0x2a3890,_0x5a0d88(0x165));return _0x29bb28(_0x47057f)==_0x5a0d88(0x14a)?_0x47057f:_0x47057f+'';}function _0x37ee4c(_0x545e62,_0x9ff9ea,_0xbf13e9){const _0x22c98f=_0x221703;return(_0x9ff9ea=_0x5249c7(_0x9ff9ea))in _0x545e62?Object[_0x22c98f(0x188)](_0x545e62,_0x9ff9ea,{'value':_0xbf13e9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x545e62[_0x9ff9ea]=_0xbf13e9,_0x545e62;}let _0x574cfb=class extends _0x33b92e[_0x221703(0x16d)]{constructor(_0x54352e=_0x39dbac,_0x5c1b79,_0x46e162){const _0x4244a1=_0x221703;super(),this[_0x4244a1(0x144)]=_0x5c1b79,this[_0x4244a1(0x148)]=_0x46e162,this[_0x4244a1(0x144)][_0x4244a1(0x13f)](_0x428564,_0x54352e);}['onStarting'](){const _0x4f26dc=_0x221703;this[_0x4f26dc(0x15d)]();}[_0x221703(0x15d)](){const _0x229a23=_0x221703;(0x0,_0x33b92e['registerDependencies'])(this[_0x229a23(0x148)],[[_0x5cfb11[_0x229a23(0x149)],{'useClass':_0x54deae}]]);}};_0x37ee4c(_0x574cfb,'pluginName',_0x221703(0x18a)),_0x37ee4c(_0x574cfb,'packageName',_0x27ad88),_0x37ee4c(_0x574cfb,_0x221703(0x177),_0x22bdd4),_0x574cfb=_0x50017b([(0x0,_0x33b92e[_0x221703(0x17d)])(_0x16382c['UniverCollaborationClientPlugin']),_0x6332de(0x1,_0x33b92e[_0x221703(0x159)]),_0x6332de(0x2,(0x0,_0x33b92e['Inject'])(_0x33b92e[_0x221703(0x14b)]))],_0x574cfb);let _0x280db8=class extends _0x16382c[_0x221703(0x15b)]{constructor(_0x199fe3,_0x1737d2,_0x49c6b4,_0x336487,_0x45c004){const _0x4134ce=_0x221703;super(_0x199fe3,_0x1737d2,_0x49c6b4,_0x336487,_0x45c004);let _0x134b93=this[_0x4134ce(0x144)]['getConfig'](_0x16382c[_0x4134ce(0x14f)]);this['_httpService'][_0x4134ce(0x180)]({'interceptor':(_0x57db47,_0x171714)=>{const _0x4beec8=_0x4134ce;let _0x2401e6=_0x57db47[_0x4beec8(0x142)];if(_0x134b93!=null&&_0x134b93[_0x4beec8(0x17f)]){for(let _0x9dc633 in _0x134b93[_0x4beec8(0x17f)])_0x2401e6['set'](_0x9dc633,_0x134b93[_0x4beec8(0x17f)][_0x9dc633]);}return _0x171714(_0x57db47);}});}async[_0x221703(0x164)](_0x29c47d){const _0x49f92a=_0x221703;return this[_0x49f92a(0x176)](_0x29c47d);}};_0x280db8=_0x50017b([_0x6332de(0x0,(0x0,_0x33b92e['Inject'])(_0x33b92e[_0x221703(0x14b)])),_0x6332de(0x1,(0x0,_0x33b92e[_0x221703(0x17a)])(_0x5cfb11[_0x221703(0x179)])),_0x6332de(0x2,_0x33b92e[_0x221703(0x159)]),_0x6332de(0x3,_0x33b92e['ILogService']),_0x6332de(0x4,_0x50ee19[_0x221703(0x189)])],_0x280db8),_0x47313c[_0x221703(0x163)]=_0x428564,Object['defineProperty'](_0x47313c,_0x221703(0x182),{'enumerable':!0x0,'get':function(){return _0x280db8;}}),Object[_0x221703(0x188)](_0x47313c,_0x221703(0x153),{'enumerable':!0x0,'get':function(){return _0x574cfb;}});}));function _0x537b(_0x1d6ec5,_0x27b682){_0x1d6ec5=_0x1d6ec5-0x13e;const _0x5010d2=_0x5010();let _0x537bac=_0x5010d2[_0x1d6ec5];return _0x537bac;}function _0x5010(){const _0x40572b=['Plugin','close','pipe','UniverCore','11655441wuFfnj','toDisposable','collaboration-client-node.config','6cUYkHW','Observable','_doCreateSocket','version','default','HTTPService','Inject','share','object','DependentOn','UniverProCollaborationClient','customHeaders','registerHTTPInterceptor','getConfig','NodeCollaborationSocketService','iterator','open','amd','@univerjs/network','UniverNetwork','defineProperty','ISnapshotServerService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','21PVnhyC','addEventListener','setConfig','getOwnPropertyDescriptor','send','headers','toPrimitive','_configService','12837069iTpTnq','toStringTag','exports','_injector','ISocketService','symbol','Injector','decorate','call','UniverProCollaborationClientNode','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','rxjs','next','UniverCollaborationClientNodePlugin','114emfAMA','1.0.0-alpha.0','33942EAtStx','@univerjs-pro/collaboration','constructor','IConfigService','add','CollaborationSocketService','Module','_registerDependencies','message','6869696KrKBUv','1009728JJlhXz','error','UniverProCollaboration','COLLABORATION_CLIENT_NODE_CONFIG_KEY','createSocket','string','@univerjs-pro/collaboration-client-node','5040205aHjDEr','function','@univerjs/core','removeEventListener','length','20538950BRaRcz'];_0x5010=function(){return _0x40572b;};return _0x5010();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.25.0-insiders.20260623-012b5a8",
3
+ "version": "1.0.0-alpha.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>",
@@ -52,17 +52,17 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.20.1",
55
- "@univerjs-pro/collaboration": "0.25.0-insiders.20260623-012b5a8",
56
- "@univerjs-pro/collaboration-client": "0.25.0-insiders.20260623-012b5a8",
57
- "@univerjs/core": "0.25.0-insiders.20260623-012b5a8",
58
- "@univerjs/network": "0.25.0-insiders.20260623-012b5a8"
55
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.0",
56
+ "@univerjs-pro/collaboration": "1.0.0-alpha.0",
57
+ "@univerjs/core": "1.0.0-alpha.0",
58
+ "@univerjs/network": "1.0.0-alpha.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/ws": "8.18.1",
62
62
  "rxjs": "7.8.2",
63
63
  "typescript": "^6.0.3",
64
64
  "vitest": "^4.1.9",
65
- "@univerjs-infra/shared": "0.25.0"
65
+ "@univerjs-infra/shared": "1.0.0-alpha.0"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",