@univerjs-pro/collaboration-client-node 1.0.0-insiders.20260717-1e84621 → 1.0.0-insiders.20260720-e1e8f51

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
- function _0x4425(_0x2c1b75,_0x497a3e){_0x2c1b75=_0x2c1b75-0x14b;const _0x283545=_0x2835();let _0x44253c=_0x283545[_0x2c1b75];return _0x44253c;}const _0x5cc419=_0x4425;(function(_0x521f4a,_0x23493c){const _0x1ef09b=_0x4425,_0x3c3b42=_0x521f4a();while(!![]){try{const _0x412fbb=parseInt(_0x1ef09b(0x159))/0x1*(-parseInt(_0x1ef09b(0x178))/0x2)+-parseInt(_0x1ef09b(0x180))/0x3*(parseInt(_0x1ef09b(0x152))/0x4)+parseInt(_0x1ef09b(0x157))/0x5*(-parseInt(_0x1ef09b(0x162))/0x6)+parseInt(_0x1ef09b(0x175))/0x7+parseInt(_0x1ef09b(0x16e))/0x8*(-parseInt(_0x1ef09b(0x177))/0x9)+parseInt(_0x1ef09b(0x170))/0xa*(parseInt(_0x1ef09b(0x190))/0xb)+parseInt(_0x1ef09b(0x16a))/0xc*(parseInt(_0x1ef09b(0x179))/0xd);if(_0x412fbb===_0x23493c)break;else _0x3c3b42['push'](_0x3c3b42['shift']());}catch(_0x3d3a7a){_0x3c3b42['push'](_0x3c3b42['shift']());}}}(_0x2835,0x9d17e),Object[_0x5cc419(0x181)](exports,Symbol[_0x5cc419(0x18d)],{'value':'Module'}));function _0x2835(){const _0x18cc64=['collaboration-client-node.config','_config','close','6lHzhEG','ILogService','customHeaders','send','object','next','constructor','function','156olBRLd','_registerDependencies','add','IConfigService','864tUxbOg','ISocketService','10opHunT','UniverCollaborationClientNodePlugin','ISnapshotServerService','_injector','error','2341738upqJMH','Observable','711CHHqbT','2070tqdFeV','2051907FWzLJm','DependentOn','Injector','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','string','message','HTTPService','309UqnHEI','defineProperty','Plugin','NodeCollaborationSocketService','@univerjs-pro/collaboration-client-node','default','_doCreateSocket','iterator','set','Disposable','CollaborationSocketService','symbol','toDisposable','toStringTag','length','createSocket','2226422peZKBO','pluginName','addEventListener','UniverCollaborationClientPlugin','version','toPrimitive','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','onStarting','merge','45188EyJjLk','_configService','pipe','registerHTTPInterceptor','getConfig','600905NiDPdb','share','631DIJwVq','decorate','removeEventListener','Inject','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1.0.0-insiders.20260717-1e84621'];_0x2835=function(){return _0x18cc64;};return _0x2835();}let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');var o=_0x5cc419(0x184),s=_0x5cc419(0x15e);const c={};function l(_0x26fbbf,_0x5c0c2a){return function(_0x2b479b,_0x55de16){_0x5c0c2a(_0x2b479b,_0x55de16,_0x26fbbf);};}function u(_0x1762ed,_0x32c606,_0xae55cf,_0x33d483){const _0x7859b1=_0x5cc419;var _0x171d90=arguments['length'],_0x19c7ed=_0x171d90<0x3?_0x32c606:_0x33d483===null?_0x33d483=Object['getOwnPropertyDescriptor'](_0x32c606,_0xae55cf):_0x33d483,_0x95094e;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x19c7ed=Reflect[_0x7859b1(0x15a)](_0x1762ed,_0x32c606,_0xae55cf,_0x33d483);else{for(var _0x5b0526=_0x1762ed[_0x7859b1(0x18e)]-0x1;_0x5b0526>=0x0;_0x5b0526--)(_0x95094e=_0x1762ed[_0x5b0526])&&(_0x19c7ed=(_0x171d90<0x3?_0x95094e(_0x19c7ed):_0x171d90>0x3?_0x95094e(_0x32c606,_0xae55cf,_0x19c7ed):_0x95094e(_0x32c606,_0xae55cf))||_0x19c7ed);}return _0x171d90>0x3&&_0x19c7ed&&Object[_0x7859b1(0x181)](_0x32c606,_0xae55cf,_0x19c7ed),_0x19c7ed;}let d=class extends t[_0x5cc419(0x189)]{constructor(_0x22fefa){const _0x2295cf=_0x5cc419;super(),this[_0x2295cf(0x153)]=_0x22fefa;}[_0x5cc419(0x18f)](_0x25f3fe){const _0x5394ba=_0x5cc419;var _0x200da1;let _0x56c70=((_0x200da1=this[_0x5394ba(0x153)][_0x5394ba(0x156)](e[_0x5394ba(0x17c)]))==null?void 0x0:_0x200da1[_0x5394ba(0x164)])||{};try{let _0x399e37=new i['WebSocket'](_0x25f3fe,{'headers':{..._0x56c70}}),_0x2bf549=new t['DisposableCollection']();return{'URL':_0x25f3fe,'close':(_0x44f6af,_0x39da87)=>{const _0x3ce204=_0x5394ba;_0x399e37[_0x3ce204(0x161)](_0x44f6af,_0x39da87),_0x2bf549['dispose']();},'send':_0x184329=>{const _0x3c248c=_0x5394ba;_0x399e37[_0x3c248c(0x165)](_0x184329);},'open$':new r[(_0x5394ba(0x176))](_0xdc80e1=>{const _0x168580=_0x5394ba;let _0x145d6a=_0x18ebde=>_0xdc80e1[_0x168580(0x167)](_0x18ebde);_0x399e37['addEventListener']('open',_0x145d6a),_0x2bf549['add']((0x0,t[_0x168580(0x18c)])(()=>_0x399e37[_0x168580(0x15b)]('open',_0x145d6a)));})['pipe']((0x0,r[_0x5394ba(0x158)])()),'close$':new r['Observable'](_0x64ca1c=>{const _0xdbaf4=_0x5394ba;let _0x574624=_0x469144=>_0x64ca1c['next'](_0x469144);_0x399e37[_0xdbaf4(0x14b)](_0xdbaf4(0x161),_0x574624),_0x2bf549[_0xdbaf4(0x16c)]((0x0,t['toDisposable'])(()=>_0x399e37['removeEventListener'](_0xdbaf4(0x161),_0x574624)));})['pipe']((0x0,r[_0x5394ba(0x158)])()),'error$':new r[(_0x5394ba(0x176))](_0x496945=>{const _0x4e5f60=_0x5394ba;let _0x1bf95a=_0x2801fd=>_0x496945[_0x4e5f60(0x167)](_0x2801fd);_0x399e37[_0x4e5f60(0x14b)]('error',_0x1bf95a),_0x2bf549[_0x4e5f60(0x16c)]((0x0,t[_0x4e5f60(0x18c)])(()=>_0x399e37[_0x4e5f60(0x15b)](_0x4e5f60(0x174),_0x1bf95a)));})['pipe']((0x0,r[_0x5394ba(0x158)])()),'message$':new r[(_0x5394ba(0x176))](_0x32c6ab=>{const _0x292cff=_0x5394ba;let _0x18f467=_0x3f1fad=>_0x32c6ab[_0x292cff(0x167)](_0x3f1fad);_0x399e37[_0x292cff(0x14b)](_0x292cff(0x17e),_0x18f467),_0x2bf549[_0x292cff(0x16c)]((0x0,t[_0x292cff(0x18c)])(()=>_0x399e37[_0x292cff(0x15b)](_0x292cff(0x17e),_0x18f467)));})[_0x5394ba(0x154)]((0x0,r['share'])())};}catch(_0x4dae38){return console[_0x5394ba(0x174)](_0x4dae38),null;}}};d=u([l(0x0,t['IConfigService'])],d);function f(_0x45b87d){'@babel/helpers - typeof';const _0x41ce03=_0x5cc419;return f=typeof Symbol==_0x41ce03(0x169)&&typeof Symbol[_0x41ce03(0x187)]==_0x41ce03(0x18b)?function(_0x5b2b08){return typeof _0x5b2b08;}:function(_0x129155){const _0x269df4=_0x41ce03;return _0x129155&&typeof Symbol==_0x269df4(0x169)&&_0x129155[_0x269df4(0x168)]===Symbol&&_0x129155!==Symbol['prototype']?'symbol':typeof _0x129155;},f(_0x45b87d);}function p(_0x159a12,_0x494296){const _0x1a528c=_0x5cc419;if(f(_0x159a12)!=_0x1a528c(0x166)||!_0x159a12)return _0x159a12;var _0x1b9557=_0x159a12[Symbol[_0x1a528c(0x14e)]];if(_0x1b9557!==void 0x0){var _0x31e27d=_0x1b9557['call'](_0x159a12,_0x494296||_0x1a528c(0x185));if(f(_0x31e27d)!=_0x1a528c(0x166))return _0x31e27d;throw TypeError(_0x1a528c(0x15d));}return(_0x494296===_0x1a528c(0x17d)?String:Number)(_0x159a12);}function m(_0x2110b3){const _0x22dd6f=_0x5cc419;var _0x2ba30f=p(_0x2110b3,'string');return f(_0x2ba30f)==_0x22dd6f(0x18b)?_0x2ba30f:_0x2ba30f+'';}function h(_0x43b0ab,_0x39a72f,_0x41ca82){const _0x20b000=_0x5cc419;return(_0x39a72f=m(_0x39a72f))in _0x43b0ab?Object[_0x20b000(0x181)](_0x43b0ab,_0x39a72f,{'value':_0x41ca82,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43b0ab[_0x39a72f]=_0x41ca82,_0x43b0ab;}let g=class extends t[_0x5cc419(0x182)]{constructor(_0x56bc1e=c,_0xe9f974,_0x819857){const _0x29c01=_0x5cc419;super(),this[_0x29c01(0x160)]=_0x56bc1e,this[_0x29c01(0x153)]=_0xe9f974,this[_0x29c01(0x173)]=_0x819857;let {..._0x1af77b}=(0x0,t[_0x29c01(0x151)])({},c,this[_0x29c01(0x160)]);this[_0x29c01(0x153)]['setConfig'](_0x29c01(0x15f),_0x1af77b);}[_0x5cc419(0x150)](){const _0x4f7c3f=_0x5cc419;this[_0x4f7c3f(0x16b)]();}[_0x5cc419(0x16b)](){const _0x5c0882=_0x5cc419;(0x0,t['registerDependencies'])(this[_0x5c0882(0x173)],[[n[_0x5c0882(0x16f)],{'useClass':d}]]);}};h(g,_0x5cc419(0x191),_0x5cc419(0x14f)),h(g,'packageName',o),h(g,_0x5cc419(0x14d),s),g=u([(0x0,t[_0x5cc419(0x17a)])(e[_0x5cc419(0x14c)]),l(0x1,t['IConfigService']),l(0x2,(0x0,t[_0x5cc419(0x15c)])(t[_0x5cc419(0x17b)]))],g);let _=class extends e[_0x5cc419(0x18a)]{constructor(_0x4a326e,_0x4d42e8,_0x663bc7,_0x291f7d,_0x6f116f){const _0x306280=_0x5cc419;super(_0x4a326e,_0x4d42e8,_0x663bc7,_0x291f7d,_0x6f116f);let _0x1fbce1=this[_0x306280(0x153)][_0x306280(0x156)](e[_0x306280(0x17c)]);this['_httpService'][_0x306280(0x155)]({'interceptor':(_0x3cf574,_0x796b12)=>{const _0x4e9903=_0x306280;let _0x222be4=_0x3cf574['headers'];if(_0x1fbce1!=null&&_0x1fbce1[_0x4e9903(0x164)]){for(let _0x2fc69f in _0x1fbce1[_0x4e9903(0x164)])_0x222be4[_0x4e9903(0x188)](_0x2fc69f,_0x1fbce1[_0x4e9903(0x164)][_0x2fc69f]);}return _0x796b12(_0x3cf574);}});}async[_0x5cc419(0x18f)](_0x3ef1b0){const _0x42884c=_0x5cc419;return this[_0x42884c(0x186)](_0x3ef1b0);}};_=u([l(0x0,(0x0,t[_0x5cc419(0x15c)])(t['Injector'])),l(0x1,(0x0,t[_0x5cc419(0x15c)])(n[_0x5cc419(0x17f)])),l(0x2,t[_0x5cc419(0x16d)]),l(0x3,t[_0x5cc419(0x163)]),l(0x4,a[_0x5cc419(0x172)])],_),Object[_0x5cc419(0x181)](exports,_0x5cc419(0x183),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x5cc419(0x181)](exports,_0x5cc419(0x171),{'enumerable':!0x0,'get':function(){return g;}});
1
+ const _0x4f24cc=_0x4b38;(function(_0x2d72c5,_0x4eeaff){const _0x3018e8=_0x4b38,_0x50e5c2=_0x2d72c5();while(!![]){try{const _0x4ce104=parseInt(_0x3018e8(0x146))/0x1+-parseInt(_0x3018e8(0x169))/0x2*(-parseInt(_0x3018e8(0x147))/0x3)+parseInt(_0x3018e8(0x162))/0x4+-parseInt(_0x3018e8(0x166))/0x5+parseInt(_0x3018e8(0x173))/0x6+-parseInt(_0x3018e8(0x143))/0x7*(parseInt(_0x3018e8(0x142))/0x8)+-parseInt(_0x3018e8(0x14e))/0x9;if(_0x4ce104===_0x4eeaff)break;else _0x50e5c2['push'](_0x50e5c2['shift']());}catch(_0x187719){_0x50e5c2['push'](_0x50e5c2['shift']());}}}(_0x3823,0x5fb52),Object[_0x4f24cc(0x16a)](exports,Symbol[_0x4f24cc(0x167)],{'value':_0x4f24cc(0x164)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');var o='@univerjs-pro/collaboration-client-node',s=_0x4f24cc(0x172);const c={};function l(_0x3688f7,_0x343815){return function(_0x52ba75,_0x5b1bda){_0x343815(_0x52ba75,_0x5b1bda,_0x3688f7);};}function _0x4b38(_0x14309b,_0x49dc18){_0x14309b=_0x14309b-0x137;const _0x3823b6=_0x3823();let _0x4b3807=_0x3823b6[_0x14309b];return _0x4b3807;}function u(_0x5bfd56,_0x3bcce8,_0x5c64cd,_0xb8cc81){const _0x2e43d7=_0x4f24cc;var _0x50a8dc=arguments['length'],_0x33dffd=_0x50a8dc<0x3?_0x3bcce8:_0xb8cc81===null?_0xb8cc81=Object[_0x2e43d7(0x14a)](_0x3bcce8,_0x5c64cd):_0xb8cc81,_0x4e5801;if(typeof Reflect==_0x2e43d7(0x13b)&&typeof Reflect['decorate']==_0x2e43d7(0x170))_0x33dffd=Reflect['decorate'](_0x5bfd56,_0x3bcce8,_0x5c64cd,_0xb8cc81);else{for(var _0x17370d=_0x5bfd56[_0x2e43d7(0x16e)]-0x1;_0x17370d>=0x0;_0x17370d--)(_0x4e5801=_0x5bfd56[_0x17370d])&&(_0x33dffd=(_0x50a8dc<0x3?_0x4e5801(_0x33dffd):_0x50a8dc>0x3?_0x4e5801(_0x3bcce8,_0x5c64cd,_0x33dffd):_0x4e5801(_0x3bcce8,_0x5c64cd))||_0x33dffd);}return _0x50a8dc>0x3&&_0x33dffd&&Object[_0x2e43d7(0x16a)](_0x3bcce8,_0x5c64cd,_0x33dffd),_0x33dffd;}let d=class extends t['Disposable']{constructor(_0x59adc5){const _0x2d22dd=_0x4f24cc;super(),this[_0x2d22dd(0x149)]=_0x59adc5;}[_0x4f24cc(0x17b)](_0x52b4a1){const _0x544fad=_0x4f24cc;var _0x40d66d;let _0x38bbb4=((_0x40d66d=this[_0x544fad(0x149)][_0x544fad(0x150)](e[_0x544fad(0x153)]))==null?void 0x0:_0x40d66d[_0x544fad(0x15b)])||{};try{let _0x1fddc0=new i[(_0x544fad(0x179))](_0x52b4a1,{'headers':{..._0x38bbb4}}),_0x4b8bc0=new t[(_0x544fad(0x137))]();return{'URL':_0x52b4a1,'close':(_0x1dcb44,_0x5bbbc8)=>{const _0x19f128=_0x544fad;_0x1fddc0[_0x19f128(0x152)](_0x1dcb44,_0x5bbbc8),_0x4b8bc0[_0x19f128(0x144)]();},'send':_0x3f73dd=>{_0x1fddc0['send'](_0x3f73dd);},'open$':new r[(_0x544fad(0x156))](_0x25de35=>{const _0xbb119b=_0x544fad;let _0x518bbe=_0xee8487=>_0x25de35['next'](_0xee8487);_0x1fddc0['addEventListener']('open',_0x518bbe),_0x4b8bc0[_0xbb119b(0x160)]((0x0,t[_0xbb119b(0x141)])(()=>_0x1fddc0['removeEventListener']('open',_0x518bbe)));})['pipe']((0x0,r['share'])()),'close$':new r[(_0x544fad(0x156))](_0x1d18f9=>{const _0x192b88=_0x544fad;let _0xd0a992=_0x3cdb85=>_0x1d18f9[_0x192b88(0x14b)](_0x3cdb85);_0x1fddc0['addEventListener'](_0x192b88(0x152),_0xd0a992),_0x4b8bc0[_0x192b88(0x160)]((0x0,t[_0x192b88(0x141)])(()=>_0x1fddc0[_0x192b88(0x139)](_0x192b88(0x152),_0xd0a992)));})[_0x544fad(0x168)]((0x0,r[_0x544fad(0x161)])()),'error$':new r[(_0x544fad(0x156))](_0x2e0135=>{const _0x38fa1f=_0x544fad;let _0x338e0f=_0x5de6ec=>_0x2e0135['next'](_0x5de6ec);_0x1fddc0['addEventListener'](_0x38fa1f(0x14d),_0x338e0f),_0x4b8bc0[_0x38fa1f(0x160)]((0x0,t[_0x38fa1f(0x141)])(()=>_0x1fddc0[_0x38fa1f(0x139)](_0x38fa1f(0x14d),_0x338e0f)));})[_0x544fad(0x168)]((0x0,r[_0x544fad(0x161)])()),'message$':new r[(_0x544fad(0x156))](_0xfb572d=>{const _0x459342=_0x544fad;let _0x30a464=_0x240bfa=>_0xfb572d['next'](_0x240bfa);_0x1fddc0[_0x459342(0x13d)](_0x459342(0x13e),_0x30a464),_0x4b8bc0[_0x459342(0x160)]((0x0,t[_0x459342(0x141)])(()=>_0x1fddc0[_0x459342(0x139)](_0x459342(0x13e),_0x30a464)));})[_0x544fad(0x168)]((0x0,r[_0x544fad(0x161)])())};}catch(_0xcdd760){return console[_0x544fad(0x14d)](_0xcdd760),null;}}};d=u([l(0x0,t[_0x4f24cc(0x178)])],d);function _0x3823(){const _0x38835c=['Module','_config','2005925fXAerY','toStringTag','pipe','20CHnAhL','defineProperty','ISocketService','constructor','NodeCollaborationSocketService','length','ILogService','function','registerHTTPInterceptor','1.0.0-insiders.20260720-e1e8f51','783150kOXqNq','registerDependencies','DependentOn','string','merge','IConfigService','WebSocket','Plugin','createSocket','_registerDependencies','DisposableCollection','pluginName','removeEventListener','setConfig','object','ISnapshotServerService','addEventListener','message','CollaborationSocketService','UniverCollaborationClientNodePlugin','toDisposable','8mqtZBW','1265117dKsAVX','dispose','collaboration-client-node.config','782713sOfYJG','786jfqopQ','symbol','_configService','getOwnPropertyDescriptor','next','UniverCollaborationClientPlugin','error','1537074yLlWtL','Injector','getConfig','prototype','close','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','iterator','Observable','_injector','default','version','headers','customHeaders','toPrimitive','_doCreateSocket','HTTPService','Inject','add','share','915448LmpZIT','set'];_0x3823=function(){return _0x38835c;};return _0x3823();}function f(_0x5977b4){'@babel/helpers - typeof';const _0x306d2b=_0x4f24cc;return f=typeof Symbol==_0x306d2b(0x170)&&typeof Symbol[_0x306d2b(0x155)]=='symbol'?function(_0x3e4faa){return typeof _0x3e4faa;}:function(_0x32ee7e){const _0x422283=_0x306d2b;return _0x32ee7e&&typeof Symbol==_0x422283(0x170)&&_0x32ee7e[_0x422283(0x16c)]===Symbol&&_0x32ee7e!==Symbol[_0x422283(0x151)]?_0x422283(0x148):typeof _0x32ee7e;},f(_0x5977b4);}function p(_0xa2bd65,_0x525113){const _0x39624a=_0x4f24cc;if(f(_0xa2bd65)!=_0x39624a(0x13b)||!_0xa2bd65)return _0xa2bd65;var _0x488d94=_0xa2bd65[Symbol[_0x39624a(0x15c)]];if(_0x488d94!==void 0x0){var _0x5cb1f3=_0x488d94['call'](_0xa2bd65,_0x525113||_0x39624a(0x158));if(f(_0x5cb1f3)!=_0x39624a(0x13b))return _0x5cb1f3;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x525113===_0x39624a(0x176)?String:Number)(_0xa2bd65);}function m(_0x35515d){const _0x5ee8b3=_0x4f24cc;var _0x5bc28f=p(_0x35515d,_0x5ee8b3(0x176));return f(_0x5bc28f)=='symbol'?_0x5bc28f:_0x5bc28f+'';}function h(_0x1d262b,_0x98df6f,_0x15f4f0){const _0x473b77=_0x4f24cc;return(_0x98df6f=m(_0x98df6f))in _0x1d262b?Object[_0x473b77(0x16a)](_0x1d262b,_0x98df6f,{'value':_0x15f4f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d262b[_0x98df6f]=_0x15f4f0,_0x1d262b;}let g=class extends t[_0x4f24cc(0x17a)]{constructor(_0x3cde72=c,_0x1f4b7a,_0xcc8c0f){const _0x25f429=_0x4f24cc;super(),this[_0x25f429(0x165)]=_0x3cde72,this[_0x25f429(0x149)]=_0x1f4b7a,this[_0x25f429(0x157)]=_0xcc8c0f;let {..._0x546771}=(0x0,t[_0x25f429(0x177)])({},c,this[_0x25f429(0x165)]);this['_configService'][_0x25f429(0x13a)](_0x25f429(0x145),_0x546771);}['onStarting'](){const _0x506a79=_0x4f24cc;this[_0x506a79(0x17c)]();}[_0x4f24cc(0x17c)](){const _0x3acf92=_0x4f24cc;(0x0,t[_0x3acf92(0x174)])(this[_0x3acf92(0x157)],[[n[_0x3acf92(0x16b)],{'useClass':d}]]);}};h(g,_0x4f24cc(0x138),_0x4f24cc(0x154)),h(g,'packageName',o),h(g,_0x4f24cc(0x159),s),g=u([(0x0,t[_0x4f24cc(0x175)])(e[_0x4f24cc(0x14c)]),l(0x1,t[_0x4f24cc(0x178)]),l(0x2,(0x0,t['Inject'])(t[_0x4f24cc(0x14f)]))],g);let _=class extends e[_0x4f24cc(0x13f)]{constructor(_0x23a176,_0x4870dc,_0x37a5a6,_0x866a23,_0x534167){const _0x5e8b34=_0x4f24cc;super(_0x23a176,_0x4870dc,_0x37a5a6,_0x866a23,_0x534167);let _0x36d5a2=this[_0x5e8b34(0x149)][_0x5e8b34(0x150)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService'][_0x5e8b34(0x171)]({'interceptor':(_0x94ed88,_0x25726b)=>{const _0x44cf70=_0x5e8b34;let _0x2f40ad=_0x94ed88[_0x44cf70(0x15a)];if(_0x36d5a2!=null&&_0x36d5a2[_0x44cf70(0x15b)]){for(let _0x309e60 in _0x36d5a2[_0x44cf70(0x15b)])_0x2f40ad[_0x44cf70(0x163)](_0x309e60,_0x36d5a2[_0x44cf70(0x15b)][_0x309e60]);}return _0x25726b(_0x94ed88);}});}async[_0x4f24cc(0x17b)](_0x4df17c){const _0x5f0290=_0x4f24cc;return this[_0x5f0290(0x15d)](_0x4df17c);}};_=u([l(0x0,(0x0,t[_0x4f24cc(0x15f)])(t[_0x4f24cc(0x14f)])),l(0x1,(0x0,t['Inject'])(n[_0x4f24cc(0x15e)])),l(0x2,t[_0x4f24cc(0x178)]),l(0x3,t[_0x4f24cc(0x16f)]),l(0x4,a[_0x4f24cc(0x13c)])],_),Object[_0x4f24cc(0x16a)](exports,_0x4f24cc(0x16d),{'enumerable':!0x0,'get':function(){return _;}}),Object['defineProperty'](exports,_0x4f24cc(0x140),{'enumerable':!0x0,'get':function(){return g;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x25ea5a=_0x32f0;function _0x3e4d(){const _0x191eb4=['4315LDmzTc','24LeKLYJ','string','registerHTTPInterceptor','length','error','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','6198yTvNUb','3457279bmzpMC','_configService','removeEventListener','prototype','customHeaders','_registerDependencies','@univerjs-pro/collaboration-client-node','1536UxqgWM','decorate','pipe','function','version','40zaNZxe','7152510atGafi','add','next','collaboration-client-node.config','open','getConfig','onStarting','152872ozqLJS','_injector','1.0.0-insiders.20260717-1e84621','close','4180617qQGAXa','_doCreateSocket','constructor','toPrimitive','send','object','_config','call','createSocket','defineProperty','addEventListener','_httpService','symbol','iterator','headers','957920guIdig'];_0x3e4d=function(){return _0x191eb4;};return _0x3e4d();}(function(_0x126b62,_0x4cf74f){const _0x14f109=_0x32f0,_0x38d414=_0x126b62();while(!![]){try{const _0x53cc71=-parseInt(_0x14f109(0x12b))/0x1*(-parseInt(_0x14f109(0x138))/0x2)+-parseInt(_0x14f109(0x124))/0x3*(-parseInt(_0x14f109(0x10f))/0x4)+-parseInt(_0x14f109(0x123))/0x5*(-parseInt(_0x14f109(0x133))/0x6)+-parseInt(_0x14f109(0x12c))/0x7+-parseInt(_0x14f109(0x122))/0x8+-parseInt(_0x14f109(0x113))/0x9+parseInt(_0x14f109(0x139))/0xa;if(_0x53cc71===_0x4cf74f)break;else _0x38d414['push'](_0x38d414['shift']());}catch(_0x36c3ec){_0x38d414['push'](_0x38d414['shift']());}}}(_0x3e4d,0x463f5));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e66bb,CollaborationSocketService as _0x8f14f3,UniverCollaborationClientPlugin as _0x4e204f}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x4538ed,Disposable as _0x1b1727,DisposableCollection as _0x327979,IConfigService as _0x2ef7a3,ILogService as _0x2ca3ed,Inject as _0xd0d75f,Injector as _0x587f94,Plugin as _0x4bc7c9,merge as _0x72a541,registerDependencies as _0x487f56,toDisposable as _0x5dd1db}from'@univerjs/core';import{HTTPService as _0x124097,ISocketService as _0xa67c1e}from'@univerjs/network';import{Observable as _0x19d86a,share as _0x5d3d3e}from'rxjs';import{WebSocket as _0x583517}from'ws';import{ISnapshotServerService as _0x5427f9}from'@univerjs-pro/collaboration';var b=_0x25ea5a(0x132),x=_0x25ea5a(0x111);const S={};function C(_0x2e5829,_0x3dbee5){return function(_0x1acaac,_0x249a61){_0x3dbee5(_0x1acaac,_0x249a61,_0x2e5829);};}function w(_0x4b0aa4,_0x1f5e16,_0x2e6443,_0x58a668){const _0x59e7b8=_0x25ea5a;var _0x366f8c=arguments[_0x59e7b8(0x127)],_0x3d86da=_0x366f8c<0x3?_0x1f5e16:_0x58a668===null?_0x58a668=Object['getOwnPropertyDescriptor'](_0x1f5e16,_0x2e6443):_0x58a668,_0x752ffb;if(typeof Reflect==_0x59e7b8(0x118)&&typeof Reflect[_0x59e7b8(0x134)]=='function')_0x3d86da=Reflect[_0x59e7b8(0x134)](_0x4b0aa4,_0x1f5e16,_0x2e6443,_0x58a668);else{for(var _0x22a28b=_0x4b0aa4[_0x59e7b8(0x127)]-0x1;_0x22a28b>=0x0;_0x22a28b--)(_0x752ffb=_0x4b0aa4[_0x22a28b])&&(_0x3d86da=(_0x366f8c<0x3?_0x752ffb(_0x3d86da):_0x366f8c>0x3?_0x752ffb(_0x1f5e16,_0x2e6443,_0x3d86da):_0x752ffb(_0x1f5e16,_0x2e6443))||_0x3d86da);}return _0x366f8c>0x3&&_0x3d86da&&Object[_0x59e7b8(0x11c)](_0x1f5e16,_0x2e6443,_0x3d86da),_0x3d86da;}let T=class extends _0x1b1727{constructor(_0x5ef32d){super(),this['_configService']=_0x5ef32d;}[_0x25ea5a(0x11b)](_0x27a867){const _0x2746c4=_0x25ea5a;var _0x225000;let _0x32efa0=((_0x225000=this[_0x2746c4(0x12d)][_0x2746c4(0x10d)](_0x5e66bb))==null?void 0x0:_0x225000[_0x2746c4(0x130)])||{};try{let _0x45c2e1=new _0x583517(_0x27a867,{'headers':{..._0x32efa0}}),_0x1a4452=new _0x327979();return{'URL':_0x27a867,'close':(_0x357648,_0x2212a8)=>{const _0x445aac=_0x2746c4;_0x45c2e1[_0x445aac(0x112)](_0x357648,_0x2212a8),_0x1a4452['dispose']();},'send':_0x3c5bcc=>{const _0xa58f9a=_0x2746c4;_0x45c2e1[_0xa58f9a(0x117)](_0x3c5bcc);},'open$':new _0x19d86a(_0x112206=>{const _0x3e3e05=_0x2746c4;let _0xa9b6fb=_0x2b904f=>_0x112206[_0x3e3e05(0x13b)](_0x2b904f);_0x45c2e1['addEventListener']('open',_0xa9b6fb),_0x1a4452[_0x3e3e05(0x13a)](_0x5dd1db(()=>_0x45c2e1[_0x3e3e05(0x12e)](_0x3e3e05(0x13d),_0xa9b6fb)));})[_0x2746c4(0x135)](_0x5d3d3e()),'close$':new _0x19d86a(_0x1de494=>{const _0x4ddc17=_0x2746c4;let _0x617481=_0x3e31d8=>_0x1de494[_0x4ddc17(0x13b)](_0x3e31d8);_0x45c2e1[_0x4ddc17(0x11d)](_0x4ddc17(0x112),_0x617481),_0x1a4452[_0x4ddc17(0x13a)](_0x5dd1db(()=>_0x45c2e1[_0x4ddc17(0x12e)](_0x4ddc17(0x112),_0x617481)));})['pipe'](_0x5d3d3e()),'error$':new _0x19d86a(_0x3e627f=>{const _0x6e4793=_0x2746c4;let _0x286bea=_0x474fae=>_0x3e627f['next'](_0x474fae);_0x45c2e1['addEventListener'](_0x6e4793(0x128),_0x286bea),_0x1a4452['add'](_0x5dd1db(()=>_0x45c2e1[_0x6e4793(0x12e)]('error',_0x286bea)));})[_0x2746c4(0x135)](_0x5d3d3e()),'message$':new _0x19d86a(_0x3e027b=>{const _0x56d9e0=_0x2746c4;let _0x4a9fad=_0x37e248=>_0x3e027b['next'](_0x37e248);_0x45c2e1[_0x56d9e0(0x11d)]('message',_0x4a9fad),_0x1a4452[_0x56d9e0(0x13a)](_0x5dd1db(()=>_0x45c2e1[_0x56d9e0(0x12e)]('message',_0x4a9fad)));})['pipe'](_0x5d3d3e())};}catch(_0x5a09fe){return console[_0x2746c4(0x128)](_0x5a09fe),null;}}};T=w([C(0x0,_0x2ef7a3)],T);function E(_0x442bbb){'@babel/helpers - typeof';const _0x3e8f81=_0x25ea5a;return E=typeof Symbol==_0x3e8f81(0x136)&&typeof Symbol[_0x3e8f81(0x120)]==_0x3e8f81(0x11f)?function(_0x4efa37){return typeof _0x4efa37;}:function(_0x2df936){const _0xdb71bd=_0x3e8f81;return _0x2df936&&typeof Symbol==_0xdb71bd(0x136)&&_0x2df936[_0xdb71bd(0x115)]===Symbol&&_0x2df936!==Symbol[_0xdb71bd(0x12f)]?'symbol':typeof _0x2df936;},E(_0x442bbb);}function D(_0x28a49f,_0x3a69a4){const _0x1999d4=_0x25ea5a;if(E(_0x28a49f)!=_0x1999d4(0x118)||!_0x28a49f)return _0x28a49f;var _0x37b9b3=_0x28a49f[Symbol[_0x1999d4(0x116)]];if(_0x37b9b3!==void 0x0){var _0x260f40=_0x37b9b3[_0x1999d4(0x11a)](_0x28a49f,_0x3a69a4||'default');if(E(_0x260f40)!=_0x1999d4(0x118))return _0x260f40;throw TypeError(_0x1999d4(0x12a));}return(_0x3a69a4==='string'?String:Number)(_0x28a49f);}function O(_0x22a9a3){const _0x1cd145=_0x25ea5a;var _0x4d91e4=D(_0x22a9a3,_0x1cd145(0x125));return E(_0x4d91e4)=='symbol'?_0x4d91e4:_0x4d91e4+'';}function k(_0x4a99ec,_0x4df861,_0x2dd89c){return(_0x4df861=O(_0x4df861))in _0x4a99ec?Object['defineProperty'](_0x4a99ec,_0x4df861,{'value':_0x2dd89c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a99ec[_0x4df861]=_0x2dd89c,_0x4a99ec;}let A=class extends _0x4bc7c9{constructor(_0x54777f=S,_0x147251,_0x5f6dd6){const _0x245b15=_0x25ea5a;super(),this[_0x245b15(0x119)]=_0x54777f,this[_0x245b15(0x12d)]=_0x147251,this[_0x245b15(0x110)]=_0x5f6dd6;let {..._0x36f12a}=_0x72a541({},S,this[_0x245b15(0x119)]);this[_0x245b15(0x12d)]['setConfig'](_0x245b15(0x13c),_0x36f12a);}[_0x25ea5a(0x10e)](){const _0x1547ae=_0x25ea5a;this[_0x1547ae(0x131)]();}[_0x25ea5a(0x131)](){const _0x224ae0=_0x25ea5a;_0x487f56(this[_0x224ae0(0x110)],[[_0xa67c1e,{'useClass':T}]]);}};k(A,_0x25ea5a(0x129),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,'packageName',b),k(A,_0x25ea5a(0x137),x),A=w([_0x4538ed(_0x4e204f),C(0x1,_0x2ef7a3),C(0x2,_0xd0d75f(_0x587f94))],A);function _0x32f0(_0x33bdb7,_0x2c3f3c){_0x33bdb7=_0x33bdb7-0x10d;const _0x3e4d88=_0x3e4d();let _0x32f03c=_0x3e4d88[_0x33bdb7];return _0x32f03c;}let j=class extends _0x8f14f3{constructor(_0x82581a,_0x313bd2,_0x10209c,_0x43eea6,_0x1830fd){const _0x124730=_0x25ea5a;super(_0x82581a,_0x313bd2,_0x10209c,_0x43eea6,_0x1830fd);let _0x5c2fcd=this[_0x124730(0x12d)][_0x124730(0x10d)](_0x5e66bb);this[_0x124730(0x11e)][_0x124730(0x126)]({'interceptor':(_0x976a31,_0x37c97c)=>{const _0x1bb39a=_0x124730;let _0x1ff144=_0x976a31[_0x1bb39a(0x121)];if(_0x5c2fcd!=null&&_0x5c2fcd[_0x1bb39a(0x130)]){for(let _0x6126b3 in _0x5c2fcd['customHeaders'])_0x1ff144['set'](_0x6126b3,_0x5c2fcd[_0x1bb39a(0x130)][_0x6126b3]);}return _0x37c97c(_0x976a31);}});}async[_0x25ea5a(0x11b)](_0x28772e){const _0x55d728=_0x25ea5a;return this[_0x55d728(0x114)](_0x28772e);}};j=w([C(0x0,_0xd0d75f(_0x587f94)),C(0x1,_0xd0d75f(_0x124097)),C(0x2,_0x2ef7a3),C(0x3,_0x2ca3ed),C(0x4,_0x5427f9)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x43710e=_0x540f;(function(_0x3fcfb6,_0x1d9533){const _0x3b6e9f=_0x540f,_0x5679ad=_0x3fcfb6();while(!![]){try{const _0xc5b06e=-parseInt(_0x3b6e9f(0x1b9))/0x1*(parseInt(_0x3b6e9f(0x19a))/0x2)+parseInt(_0x3b6e9f(0x1a4))/0x3+parseInt(_0x3b6e9f(0x1c1))/0x4+-parseInt(_0x3b6e9f(0x1a9))/0x5*(-parseInt(_0x3b6e9f(0x1b8))/0x6)+parseInt(_0x3b6e9f(0x1a6))/0x7*(parseInt(_0x3b6e9f(0x1bd))/0x8)+parseInt(_0x3b6e9f(0x1a7))/0x9*(-parseInt(_0x3b6e9f(0x1c4))/0xa)+parseInt(_0x3b6e9f(0x1a5))/0xb*(parseInt(_0x3b6e9f(0x19f))/0xc);if(_0xc5b06e===_0x1d9533)break;else _0x5679ad['push'](_0x5679ad['shift']());}catch(_0x4ba871){_0x5679ad['push'](_0x5679ad['shift']());}}}(_0x11db,0xccd20));function _0x540f(_0x1e64aa,_0x25865c){_0x1e64aa=_0x1e64aa-0x195;const _0x11db33=_0x11db();let _0x540f2f=_0x11db33[_0x1e64aa];return _0x540f2f;}import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5c7025,CollaborationSocketService as _0x4a7373,UniverCollaborationClientPlugin as _0x5d0ebe}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x458dfb,Disposable as _0x49999f,DisposableCollection as _0x35cf93,IConfigService as _0xceabb9,ILogService as _0x196b70,Inject as _0xe058f3,Injector as _0x3276b8,Plugin as _0x517d7e,merge as _0x22078c,registerDependencies as _0x553b79,toDisposable as _0x22a583}from'@univerjs/core';import{HTTPService as _0x226980,ISocketService as _0x1e0ff8}from'@univerjs/network';import{Observable as _0x40ec1f,share as _0x241b29}from'rxjs';import{WebSocket as _0x597c39}from'ws';import{ISnapshotServerService as _0x47bc2d}from'@univerjs-pro/collaboration';var b=_0x43710e(0x1b0),x=_0x43710e(0x19b);const S={};function C(_0x46746b,_0x54f219){return function(_0x27fe98,_0x2fada7){_0x54f219(_0x27fe98,_0x2fada7,_0x46746b);};}function w(_0x116c03,_0x184957,_0x5225b3,_0x235585){const _0x31034b=_0x43710e;var _0x2419d4=arguments['length'],_0x5c04b5=_0x2419d4<0x3?_0x184957:_0x235585===null?_0x235585=Object[_0x31034b(0x1b3)](_0x184957,_0x5225b3):_0x235585,_0x3bb06e;if(typeof Reflect==_0x31034b(0x19d)&&typeof Reflect['decorate']==_0x31034b(0x1a8))_0x5c04b5=Reflect[_0x31034b(0x1c0)](_0x116c03,_0x184957,_0x5225b3,_0x235585);else{for(var _0x1dcb5a=_0x116c03[_0x31034b(0x1bb)]-0x1;_0x1dcb5a>=0x0;_0x1dcb5a--)(_0x3bb06e=_0x116c03[_0x1dcb5a])&&(_0x5c04b5=(_0x2419d4<0x3?_0x3bb06e(_0x5c04b5):_0x2419d4>0x3?_0x3bb06e(_0x184957,_0x5225b3,_0x5c04b5):_0x3bb06e(_0x184957,_0x5225b3))||_0x5c04b5);}return _0x2419d4>0x3&&_0x5c04b5&&Object['defineProperty'](_0x184957,_0x5225b3,_0x5c04b5),_0x5c04b5;}let T=class extends _0x49999f{constructor(_0x258563){const _0x3d2000=_0x43710e;super(),this[_0x3d2000(0x1b2)]=_0x258563;}[_0x43710e(0x1ab)](_0x5dfe69){const _0x582b69=_0x43710e;var _0xf753a7;let _0x1c5591=((_0xf753a7=this[_0x582b69(0x1b2)][_0x582b69(0x1b5)](_0x5c7025))==null?void 0x0:_0xf753a7[_0x582b69(0x1af)])||{};try{let _0x452578=new _0x597c39(_0x5dfe69,{'headers':{..._0x1c5591}}),_0xeab40b=new _0x35cf93();return{'URL':_0x5dfe69,'close':(_0x3e7510,_0x3cb68d)=>{const _0x5325af=_0x582b69;_0x452578['close'](_0x3e7510,_0x3cb68d),_0xeab40b[_0x5325af(0x1c7)]();},'send':_0x3f91bf=>{const _0x5d658b=_0x582b69;_0x452578[_0x5d658b(0x195)](_0x3f91bf);},'open$':new _0x40ec1f(_0x36e188=>{const _0x4f7101=_0x582b69;let _0x29e5f0=_0x5d927c=>_0x36e188[_0x4f7101(0x197)](_0x5d927c);_0x452578['addEventListener'](_0x4f7101(0x1c3),_0x29e5f0),_0xeab40b[_0x4f7101(0x196)](_0x22a583(()=>_0x452578[_0x4f7101(0x1b4)]('open',_0x29e5f0)));})['pipe'](_0x241b29()),'close$':new _0x40ec1f(_0x580a9f=>{const _0x2f7ae3=_0x582b69;let _0x8135f1=_0x3d48e6=>_0x580a9f[_0x2f7ae3(0x197)](_0x3d48e6);_0x452578[_0x2f7ae3(0x198)](_0x2f7ae3(0x1b6),_0x8135f1),_0xeab40b[_0x2f7ae3(0x196)](_0x22a583(()=>_0x452578[_0x2f7ae3(0x1b4)](_0x2f7ae3(0x1b6),_0x8135f1)));})['pipe'](_0x241b29()),'error$':new _0x40ec1f(_0x12dbe5=>{const _0x7066=_0x582b69;let _0x39a685=_0x16d3e2=>_0x12dbe5[_0x7066(0x197)](_0x16d3e2);_0x452578[_0x7066(0x198)](_0x7066(0x1c9),_0x39a685),_0xeab40b[_0x7066(0x196)](_0x22a583(()=>_0x452578[_0x7066(0x1b4)](_0x7066(0x1c9),_0x39a685)));})[_0x582b69(0x1ca)](_0x241b29()),'message$':new _0x40ec1f(_0x5aeb18=>{const _0x1e4342=_0x582b69;let _0x56b73a=_0x46ca69=>_0x5aeb18['next'](_0x46ca69);_0x452578[_0x1e4342(0x198)](_0x1e4342(0x1b1),_0x56b73a),_0xeab40b[_0x1e4342(0x196)](_0x22a583(()=>_0x452578[_0x1e4342(0x1b4)](_0x1e4342(0x1b1),_0x56b73a)));})[_0x582b69(0x1ca)](_0x241b29())};}catch(_0x1fe53c){return console[_0x582b69(0x1c9)](_0x1fe53c),null;}}};T=w([C(0x0,_0xceabb9)],T);function E(_0x341787){'@babel/helpers - typeof';return E=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x264941){return typeof _0x264941;}:function(_0x430c35){const _0x3d4418=_0x540f;return _0x430c35&&typeof Symbol==_0x3d4418(0x1a8)&&_0x430c35[_0x3d4418(0x1c2)]===Symbol&&_0x430c35!==Symbol['prototype']?_0x3d4418(0x1a0):typeof _0x430c35;},E(_0x341787);}function D(_0x1d6429,_0x42d38f){const _0x15d226=_0x43710e;if(E(_0x1d6429)!='object'||!_0x1d6429)return _0x1d6429;var _0xe67055=_0x1d6429[Symbol[_0x15d226(0x199)]];if(_0xe67055!==void 0x0){var _0x3d22fc=_0xe67055[_0x15d226(0x1c6)](_0x1d6429,_0x42d38f||_0x15d226(0x1aa));if(E(_0x3d22fc)!=_0x15d226(0x19d))return _0x3d22fc;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x42d38f===_0x15d226(0x1bc)?String:Number)(_0x1d6429);}function O(_0x5f0829){const _0x3a6c05=_0x43710e;var _0x3fa820=D(_0x5f0829,_0x3a6c05(0x1bc));return E(_0x3fa820)==_0x3a6c05(0x1a0)?_0x3fa820:_0x3fa820+'';}function k(_0x57e6f8,_0x510cea,_0x3d3b26){const _0x23e4f5=_0x43710e;return(_0x510cea=O(_0x510cea))in _0x57e6f8?Object[_0x23e4f5(0x1ba)](_0x57e6f8,_0x510cea,{'value':_0x3d3b26,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57e6f8[_0x510cea]=_0x3d3b26,_0x57e6f8;}function _0x11db(){const _0x282423=['call','dispose','_config','error','pipe','send','add','next','addEventListener','toPrimitive','1449438RQfjGO','1.0.0-insiders.20260720-e1e8f51','_injector','object','registerHTTPInterceptor','3859764OZMFzL','symbol','setConfig','_doCreateSocket','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','1942317jCDHwd','11WldaRf','72947VpdsJz','3465lzllOJ','function','510WPfCSD','default','createSocket','onStarting','set','pluginName','customHeaders','@univerjs-pro/collaboration-client-node','message','_configService','getOwnPropertyDescriptor','removeEventListener','getConfig','close','_httpService','27018VwfPjW','1ueLcwr','defineProperty','length','string','304WZAmuD','packageName','_registerDependencies','decorate','1468832GrDnNK','constructor','open','16310BfwFfQ','headers'];_0x11db=function(){return _0x282423;};return _0x11db();}let A=class extends _0x517d7e{constructor(_0x5e9691=S,_0x5539da,_0x5e6c55){const _0x3a268c=_0x43710e;super(),this[_0x3a268c(0x1c8)]=_0x5e9691,this[_0x3a268c(0x1b2)]=_0x5539da,this['_injector']=_0x5e6c55;let {..._0x54ee1c}=_0x22078c({},S,this[_0x3a268c(0x1c8)]);this[_0x3a268c(0x1b2)][_0x3a268c(0x1a1)]('collaboration-client-node.config',_0x54ee1c);}[_0x43710e(0x1ac)](){const _0x4e49fb=_0x43710e;this[_0x4e49fb(0x1bf)]();}[_0x43710e(0x1bf)](){const _0x58ef59=_0x43710e;_0x553b79(this[_0x58ef59(0x19c)],[[_0x1e0ff8,{'useClass':T}]]);}};k(A,_0x43710e(0x1ae),_0x43710e(0x1a3)),k(A,_0x43710e(0x1be),b),k(A,'version',x),A=w([_0x458dfb(_0x5d0ebe),C(0x1,_0xceabb9),C(0x2,_0xe058f3(_0x3276b8))],A);let j=class extends _0x4a7373{constructor(_0x322424,_0x3e3f52,_0x1454a4,_0x3ed5ad,_0x20db4f){const _0x3ad241=_0x43710e;super(_0x322424,_0x3e3f52,_0x1454a4,_0x3ed5ad,_0x20db4f);let _0x411130=this['_configService']['getConfig'](_0x5c7025);this[_0x3ad241(0x1b7)][_0x3ad241(0x19e)]({'interceptor':(_0x1b8d17,_0x5ae473)=>{const _0x1b26a9=_0x3ad241;let _0x298027=_0x1b8d17[_0x1b26a9(0x1c5)];if(_0x411130!=null&&_0x411130[_0x1b26a9(0x1af)]){for(let _0x38857f in _0x411130[_0x1b26a9(0x1af)])_0x298027[_0x1b26a9(0x1ad)](_0x38857f,_0x411130['customHeaders'][_0x38857f]);}return _0x5ae473(_0x1b8d17);}});}async[_0x43710e(0x1ab)](_0x5150fb){const _0x2deb1a=_0x43710e;return this[_0x2deb1a(0x1a2)](_0x5150fb);}};j=w([C(0x0,_0xe058f3(_0x3276b8)),C(0x1,_0xe058f3(_0x226980)),C(0x2,_0xceabb9),C(0x3,_0x196b70),C(0x4,_0x47bc2d)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x25ea5a=_0x32f0;function _0x3e4d(){const _0x191eb4=['4315LDmzTc','24LeKLYJ','string','registerHTTPInterceptor','length','error','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','6198yTvNUb','3457279bmzpMC','_configService','removeEventListener','prototype','customHeaders','_registerDependencies','@univerjs-pro/collaboration-client-node','1536UxqgWM','decorate','pipe','function','version','40zaNZxe','7152510atGafi','add','next','collaboration-client-node.config','open','getConfig','onStarting','152872ozqLJS','_injector','1.0.0-insiders.20260717-1e84621','close','4180617qQGAXa','_doCreateSocket','constructor','toPrimitive','send','object','_config','call','createSocket','defineProperty','addEventListener','_httpService','symbol','iterator','headers','957920guIdig'];_0x3e4d=function(){return _0x191eb4;};return _0x3e4d();}(function(_0x126b62,_0x4cf74f){const _0x14f109=_0x32f0,_0x38d414=_0x126b62();while(!![]){try{const _0x53cc71=-parseInt(_0x14f109(0x12b))/0x1*(-parseInt(_0x14f109(0x138))/0x2)+-parseInt(_0x14f109(0x124))/0x3*(-parseInt(_0x14f109(0x10f))/0x4)+-parseInt(_0x14f109(0x123))/0x5*(-parseInt(_0x14f109(0x133))/0x6)+-parseInt(_0x14f109(0x12c))/0x7+-parseInt(_0x14f109(0x122))/0x8+-parseInt(_0x14f109(0x113))/0x9+parseInt(_0x14f109(0x139))/0xa;if(_0x53cc71===_0x4cf74f)break;else _0x38d414['push'](_0x38d414['shift']());}catch(_0x36c3ec){_0x38d414['push'](_0x38d414['shift']());}}}(_0x3e4d,0x463f5));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e66bb,CollaborationSocketService as _0x8f14f3,UniverCollaborationClientPlugin as _0x4e204f}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x4538ed,Disposable as _0x1b1727,DisposableCollection as _0x327979,IConfigService as _0x2ef7a3,ILogService as _0x2ca3ed,Inject as _0xd0d75f,Injector as _0x587f94,Plugin as _0x4bc7c9,merge as _0x72a541,registerDependencies as _0x487f56,toDisposable as _0x5dd1db}from'@univerjs/core';import{HTTPService as _0x124097,ISocketService as _0xa67c1e}from'@univerjs/network';import{Observable as _0x19d86a,share as _0x5d3d3e}from'rxjs';import{WebSocket as _0x583517}from'ws';import{ISnapshotServerService as _0x5427f9}from'@univerjs-pro/collaboration';var b=_0x25ea5a(0x132),x=_0x25ea5a(0x111);const S={};function C(_0x2e5829,_0x3dbee5){return function(_0x1acaac,_0x249a61){_0x3dbee5(_0x1acaac,_0x249a61,_0x2e5829);};}function w(_0x4b0aa4,_0x1f5e16,_0x2e6443,_0x58a668){const _0x59e7b8=_0x25ea5a;var _0x366f8c=arguments[_0x59e7b8(0x127)],_0x3d86da=_0x366f8c<0x3?_0x1f5e16:_0x58a668===null?_0x58a668=Object['getOwnPropertyDescriptor'](_0x1f5e16,_0x2e6443):_0x58a668,_0x752ffb;if(typeof Reflect==_0x59e7b8(0x118)&&typeof Reflect[_0x59e7b8(0x134)]=='function')_0x3d86da=Reflect[_0x59e7b8(0x134)](_0x4b0aa4,_0x1f5e16,_0x2e6443,_0x58a668);else{for(var _0x22a28b=_0x4b0aa4[_0x59e7b8(0x127)]-0x1;_0x22a28b>=0x0;_0x22a28b--)(_0x752ffb=_0x4b0aa4[_0x22a28b])&&(_0x3d86da=(_0x366f8c<0x3?_0x752ffb(_0x3d86da):_0x366f8c>0x3?_0x752ffb(_0x1f5e16,_0x2e6443,_0x3d86da):_0x752ffb(_0x1f5e16,_0x2e6443))||_0x3d86da);}return _0x366f8c>0x3&&_0x3d86da&&Object[_0x59e7b8(0x11c)](_0x1f5e16,_0x2e6443,_0x3d86da),_0x3d86da;}let T=class extends _0x1b1727{constructor(_0x5ef32d){super(),this['_configService']=_0x5ef32d;}[_0x25ea5a(0x11b)](_0x27a867){const _0x2746c4=_0x25ea5a;var _0x225000;let _0x32efa0=((_0x225000=this[_0x2746c4(0x12d)][_0x2746c4(0x10d)](_0x5e66bb))==null?void 0x0:_0x225000[_0x2746c4(0x130)])||{};try{let _0x45c2e1=new _0x583517(_0x27a867,{'headers':{..._0x32efa0}}),_0x1a4452=new _0x327979();return{'URL':_0x27a867,'close':(_0x357648,_0x2212a8)=>{const _0x445aac=_0x2746c4;_0x45c2e1[_0x445aac(0x112)](_0x357648,_0x2212a8),_0x1a4452['dispose']();},'send':_0x3c5bcc=>{const _0xa58f9a=_0x2746c4;_0x45c2e1[_0xa58f9a(0x117)](_0x3c5bcc);},'open$':new _0x19d86a(_0x112206=>{const _0x3e3e05=_0x2746c4;let _0xa9b6fb=_0x2b904f=>_0x112206[_0x3e3e05(0x13b)](_0x2b904f);_0x45c2e1['addEventListener']('open',_0xa9b6fb),_0x1a4452[_0x3e3e05(0x13a)](_0x5dd1db(()=>_0x45c2e1[_0x3e3e05(0x12e)](_0x3e3e05(0x13d),_0xa9b6fb)));})[_0x2746c4(0x135)](_0x5d3d3e()),'close$':new _0x19d86a(_0x1de494=>{const _0x4ddc17=_0x2746c4;let _0x617481=_0x3e31d8=>_0x1de494[_0x4ddc17(0x13b)](_0x3e31d8);_0x45c2e1[_0x4ddc17(0x11d)](_0x4ddc17(0x112),_0x617481),_0x1a4452[_0x4ddc17(0x13a)](_0x5dd1db(()=>_0x45c2e1[_0x4ddc17(0x12e)](_0x4ddc17(0x112),_0x617481)));})['pipe'](_0x5d3d3e()),'error$':new _0x19d86a(_0x3e627f=>{const _0x6e4793=_0x2746c4;let _0x286bea=_0x474fae=>_0x3e627f['next'](_0x474fae);_0x45c2e1['addEventListener'](_0x6e4793(0x128),_0x286bea),_0x1a4452['add'](_0x5dd1db(()=>_0x45c2e1[_0x6e4793(0x12e)]('error',_0x286bea)));})[_0x2746c4(0x135)](_0x5d3d3e()),'message$':new _0x19d86a(_0x3e027b=>{const _0x56d9e0=_0x2746c4;let _0x4a9fad=_0x37e248=>_0x3e027b['next'](_0x37e248);_0x45c2e1[_0x56d9e0(0x11d)]('message',_0x4a9fad),_0x1a4452[_0x56d9e0(0x13a)](_0x5dd1db(()=>_0x45c2e1[_0x56d9e0(0x12e)]('message',_0x4a9fad)));})['pipe'](_0x5d3d3e())};}catch(_0x5a09fe){return console[_0x2746c4(0x128)](_0x5a09fe),null;}}};T=w([C(0x0,_0x2ef7a3)],T);function E(_0x442bbb){'@babel/helpers - typeof';const _0x3e8f81=_0x25ea5a;return E=typeof Symbol==_0x3e8f81(0x136)&&typeof Symbol[_0x3e8f81(0x120)]==_0x3e8f81(0x11f)?function(_0x4efa37){return typeof _0x4efa37;}:function(_0x2df936){const _0xdb71bd=_0x3e8f81;return _0x2df936&&typeof Symbol==_0xdb71bd(0x136)&&_0x2df936[_0xdb71bd(0x115)]===Symbol&&_0x2df936!==Symbol[_0xdb71bd(0x12f)]?'symbol':typeof _0x2df936;},E(_0x442bbb);}function D(_0x28a49f,_0x3a69a4){const _0x1999d4=_0x25ea5a;if(E(_0x28a49f)!=_0x1999d4(0x118)||!_0x28a49f)return _0x28a49f;var _0x37b9b3=_0x28a49f[Symbol[_0x1999d4(0x116)]];if(_0x37b9b3!==void 0x0){var _0x260f40=_0x37b9b3[_0x1999d4(0x11a)](_0x28a49f,_0x3a69a4||'default');if(E(_0x260f40)!=_0x1999d4(0x118))return _0x260f40;throw TypeError(_0x1999d4(0x12a));}return(_0x3a69a4==='string'?String:Number)(_0x28a49f);}function O(_0x22a9a3){const _0x1cd145=_0x25ea5a;var _0x4d91e4=D(_0x22a9a3,_0x1cd145(0x125));return E(_0x4d91e4)=='symbol'?_0x4d91e4:_0x4d91e4+'';}function k(_0x4a99ec,_0x4df861,_0x2dd89c){return(_0x4df861=O(_0x4df861))in _0x4a99ec?Object['defineProperty'](_0x4a99ec,_0x4df861,{'value':_0x2dd89c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a99ec[_0x4df861]=_0x2dd89c,_0x4a99ec;}let A=class extends _0x4bc7c9{constructor(_0x54777f=S,_0x147251,_0x5f6dd6){const _0x245b15=_0x25ea5a;super(),this[_0x245b15(0x119)]=_0x54777f,this[_0x245b15(0x12d)]=_0x147251,this[_0x245b15(0x110)]=_0x5f6dd6;let {..._0x36f12a}=_0x72a541({},S,this[_0x245b15(0x119)]);this[_0x245b15(0x12d)]['setConfig'](_0x245b15(0x13c),_0x36f12a);}[_0x25ea5a(0x10e)](){const _0x1547ae=_0x25ea5a;this[_0x1547ae(0x131)]();}[_0x25ea5a(0x131)](){const _0x224ae0=_0x25ea5a;_0x487f56(this[_0x224ae0(0x110)],[[_0xa67c1e,{'useClass':T}]]);}};k(A,_0x25ea5a(0x129),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,'packageName',b),k(A,_0x25ea5a(0x137),x),A=w([_0x4538ed(_0x4e204f),C(0x1,_0x2ef7a3),C(0x2,_0xd0d75f(_0x587f94))],A);function _0x32f0(_0x33bdb7,_0x2c3f3c){_0x33bdb7=_0x33bdb7-0x10d;const _0x3e4d88=_0x3e4d();let _0x32f03c=_0x3e4d88[_0x33bdb7];return _0x32f03c;}let j=class extends _0x8f14f3{constructor(_0x82581a,_0x313bd2,_0x10209c,_0x43eea6,_0x1830fd){const _0x124730=_0x25ea5a;super(_0x82581a,_0x313bd2,_0x10209c,_0x43eea6,_0x1830fd);let _0x5c2fcd=this[_0x124730(0x12d)][_0x124730(0x10d)](_0x5e66bb);this[_0x124730(0x11e)][_0x124730(0x126)]({'interceptor':(_0x976a31,_0x37c97c)=>{const _0x1bb39a=_0x124730;let _0x1ff144=_0x976a31[_0x1bb39a(0x121)];if(_0x5c2fcd!=null&&_0x5c2fcd[_0x1bb39a(0x130)]){for(let _0x6126b3 in _0x5c2fcd['customHeaders'])_0x1ff144['set'](_0x6126b3,_0x5c2fcd[_0x1bb39a(0x130)][_0x6126b3]);}return _0x37c97c(_0x976a31);}});}async[_0x25ea5a(0x11b)](_0x28772e){const _0x55d728=_0x25ea5a;return this[_0x55d728(0x114)](_0x28772e);}};j=w([C(0x0,_0xd0d75f(_0x587f94)),C(0x1,_0xd0d75f(_0x124097)),C(0x2,_0x2ef7a3),C(0x3,_0x2ca3ed),C(0x4,_0x5427f9)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x43710e=_0x540f;(function(_0x3fcfb6,_0x1d9533){const _0x3b6e9f=_0x540f,_0x5679ad=_0x3fcfb6();while(!![]){try{const _0xc5b06e=-parseInt(_0x3b6e9f(0x1b9))/0x1*(parseInt(_0x3b6e9f(0x19a))/0x2)+parseInt(_0x3b6e9f(0x1a4))/0x3+parseInt(_0x3b6e9f(0x1c1))/0x4+-parseInt(_0x3b6e9f(0x1a9))/0x5*(-parseInt(_0x3b6e9f(0x1b8))/0x6)+parseInt(_0x3b6e9f(0x1a6))/0x7*(parseInt(_0x3b6e9f(0x1bd))/0x8)+parseInt(_0x3b6e9f(0x1a7))/0x9*(-parseInt(_0x3b6e9f(0x1c4))/0xa)+parseInt(_0x3b6e9f(0x1a5))/0xb*(parseInt(_0x3b6e9f(0x19f))/0xc);if(_0xc5b06e===_0x1d9533)break;else _0x5679ad['push'](_0x5679ad['shift']());}catch(_0x4ba871){_0x5679ad['push'](_0x5679ad['shift']());}}}(_0x11db,0xccd20));function _0x540f(_0x1e64aa,_0x25865c){_0x1e64aa=_0x1e64aa-0x195;const _0x11db33=_0x11db();let _0x540f2f=_0x11db33[_0x1e64aa];return _0x540f2f;}import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5c7025,CollaborationSocketService as _0x4a7373,UniverCollaborationClientPlugin as _0x5d0ebe}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x458dfb,Disposable as _0x49999f,DisposableCollection as _0x35cf93,IConfigService as _0xceabb9,ILogService as _0x196b70,Inject as _0xe058f3,Injector as _0x3276b8,Plugin as _0x517d7e,merge as _0x22078c,registerDependencies as _0x553b79,toDisposable as _0x22a583}from'@univerjs/core';import{HTTPService as _0x226980,ISocketService as _0x1e0ff8}from'@univerjs/network';import{Observable as _0x40ec1f,share as _0x241b29}from'rxjs';import{WebSocket as _0x597c39}from'ws';import{ISnapshotServerService as _0x47bc2d}from'@univerjs-pro/collaboration';var b=_0x43710e(0x1b0),x=_0x43710e(0x19b);const S={};function C(_0x46746b,_0x54f219){return function(_0x27fe98,_0x2fada7){_0x54f219(_0x27fe98,_0x2fada7,_0x46746b);};}function w(_0x116c03,_0x184957,_0x5225b3,_0x235585){const _0x31034b=_0x43710e;var _0x2419d4=arguments['length'],_0x5c04b5=_0x2419d4<0x3?_0x184957:_0x235585===null?_0x235585=Object[_0x31034b(0x1b3)](_0x184957,_0x5225b3):_0x235585,_0x3bb06e;if(typeof Reflect==_0x31034b(0x19d)&&typeof Reflect['decorate']==_0x31034b(0x1a8))_0x5c04b5=Reflect[_0x31034b(0x1c0)](_0x116c03,_0x184957,_0x5225b3,_0x235585);else{for(var _0x1dcb5a=_0x116c03[_0x31034b(0x1bb)]-0x1;_0x1dcb5a>=0x0;_0x1dcb5a--)(_0x3bb06e=_0x116c03[_0x1dcb5a])&&(_0x5c04b5=(_0x2419d4<0x3?_0x3bb06e(_0x5c04b5):_0x2419d4>0x3?_0x3bb06e(_0x184957,_0x5225b3,_0x5c04b5):_0x3bb06e(_0x184957,_0x5225b3))||_0x5c04b5);}return _0x2419d4>0x3&&_0x5c04b5&&Object['defineProperty'](_0x184957,_0x5225b3,_0x5c04b5),_0x5c04b5;}let T=class extends _0x49999f{constructor(_0x258563){const _0x3d2000=_0x43710e;super(),this[_0x3d2000(0x1b2)]=_0x258563;}[_0x43710e(0x1ab)](_0x5dfe69){const _0x582b69=_0x43710e;var _0xf753a7;let _0x1c5591=((_0xf753a7=this[_0x582b69(0x1b2)][_0x582b69(0x1b5)](_0x5c7025))==null?void 0x0:_0xf753a7[_0x582b69(0x1af)])||{};try{let _0x452578=new _0x597c39(_0x5dfe69,{'headers':{..._0x1c5591}}),_0xeab40b=new _0x35cf93();return{'URL':_0x5dfe69,'close':(_0x3e7510,_0x3cb68d)=>{const _0x5325af=_0x582b69;_0x452578['close'](_0x3e7510,_0x3cb68d),_0xeab40b[_0x5325af(0x1c7)]();},'send':_0x3f91bf=>{const _0x5d658b=_0x582b69;_0x452578[_0x5d658b(0x195)](_0x3f91bf);},'open$':new _0x40ec1f(_0x36e188=>{const _0x4f7101=_0x582b69;let _0x29e5f0=_0x5d927c=>_0x36e188[_0x4f7101(0x197)](_0x5d927c);_0x452578['addEventListener'](_0x4f7101(0x1c3),_0x29e5f0),_0xeab40b[_0x4f7101(0x196)](_0x22a583(()=>_0x452578[_0x4f7101(0x1b4)]('open',_0x29e5f0)));})['pipe'](_0x241b29()),'close$':new _0x40ec1f(_0x580a9f=>{const _0x2f7ae3=_0x582b69;let _0x8135f1=_0x3d48e6=>_0x580a9f[_0x2f7ae3(0x197)](_0x3d48e6);_0x452578[_0x2f7ae3(0x198)](_0x2f7ae3(0x1b6),_0x8135f1),_0xeab40b[_0x2f7ae3(0x196)](_0x22a583(()=>_0x452578[_0x2f7ae3(0x1b4)](_0x2f7ae3(0x1b6),_0x8135f1)));})['pipe'](_0x241b29()),'error$':new _0x40ec1f(_0x12dbe5=>{const _0x7066=_0x582b69;let _0x39a685=_0x16d3e2=>_0x12dbe5[_0x7066(0x197)](_0x16d3e2);_0x452578[_0x7066(0x198)](_0x7066(0x1c9),_0x39a685),_0xeab40b[_0x7066(0x196)](_0x22a583(()=>_0x452578[_0x7066(0x1b4)](_0x7066(0x1c9),_0x39a685)));})[_0x582b69(0x1ca)](_0x241b29()),'message$':new _0x40ec1f(_0x5aeb18=>{const _0x1e4342=_0x582b69;let _0x56b73a=_0x46ca69=>_0x5aeb18['next'](_0x46ca69);_0x452578[_0x1e4342(0x198)](_0x1e4342(0x1b1),_0x56b73a),_0xeab40b[_0x1e4342(0x196)](_0x22a583(()=>_0x452578[_0x1e4342(0x1b4)](_0x1e4342(0x1b1),_0x56b73a)));})[_0x582b69(0x1ca)](_0x241b29())};}catch(_0x1fe53c){return console[_0x582b69(0x1c9)](_0x1fe53c),null;}}};T=w([C(0x0,_0xceabb9)],T);function E(_0x341787){'@babel/helpers - typeof';return E=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x264941){return typeof _0x264941;}:function(_0x430c35){const _0x3d4418=_0x540f;return _0x430c35&&typeof Symbol==_0x3d4418(0x1a8)&&_0x430c35[_0x3d4418(0x1c2)]===Symbol&&_0x430c35!==Symbol['prototype']?_0x3d4418(0x1a0):typeof _0x430c35;},E(_0x341787);}function D(_0x1d6429,_0x42d38f){const _0x15d226=_0x43710e;if(E(_0x1d6429)!='object'||!_0x1d6429)return _0x1d6429;var _0xe67055=_0x1d6429[Symbol[_0x15d226(0x199)]];if(_0xe67055!==void 0x0){var _0x3d22fc=_0xe67055[_0x15d226(0x1c6)](_0x1d6429,_0x42d38f||_0x15d226(0x1aa));if(E(_0x3d22fc)!=_0x15d226(0x19d))return _0x3d22fc;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x42d38f===_0x15d226(0x1bc)?String:Number)(_0x1d6429);}function O(_0x5f0829){const _0x3a6c05=_0x43710e;var _0x3fa820=D(_0x5f0829,_0x3a6c05(0x1bc));return E(_0x3fa820)==_0x3a6c05(0x1a0)?_0x3fa820:_0x3fa820+'';}function k(_0x57e6f8,_0x510cea,_0x3d3b26){const _0x23e4f5=_0x43710e;return(_0x510cea=O(_0x510cea))in _0x57e6f8?Object[_0x23e4f5(0x1ba)](_0x57e6f8,_0x510cea,{'value':_0x3d3b26,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57e6f8[_0x510cea]=_0x3d3b26,_0x57e6f8;}function _0x11db(){const _0x282423=['call','dispose','_config','error','pipe','send','add','next','addEventListener','toPrimitive','1449438RQfjGO','1.0.0-insiders.20260720-e1e8f51','_injector','object','registerHTTPInterceptor','3859764OZMFzL','symbol','setConfig','_doCreateSocket','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','1942317jCDHwd','11WldaRf','72947VpdsJz','3465lzllOJ','function','510WPfCSD','default','createSocket','onStarting','set','pluginName','customHeaders','@univerjs-pro/collaboration-client-node','message','_configService','getOwnPropertyDescriptor','removeEventListener','getConfig','close','_httpService','27018VwfPjW','1ueLcwr','defineProperty','length','string','304WZAmuD','packageName','_registerDependencies','decorate','1468832GrDnNK','constructor','open','16310BfwFfQ','headers'];_0x11db=function(){return _0x282423;};return _0x11db();}let A=class extends _0x517d7e{constructor(_0x5e9691=S,_0x5539da,_0x5e6c55){const _0x3a268c=_0x43710e;super(),this[_0x3a268c(0x1c8)]=_0x5e9691,this[_0x3a268c(0x1b2)]=_0x5539da,this['_injector']=_0x5e6c55;let {..._0x54ee1c}=_0x22078c({},S,this[_0x3a268c(0x1c8)]);this[_0x3a268c(0x1b2)][_0x3a268c(0x1a1)]('collaboration-client-node.config',_0x54ee1c);}[_0x43710e(0x1ac)](){const _0x4e49fb=_0x43710e;this[_0x4e49fb(0x1bf)]();}[_0x43710e(0x1bf)](){const _0x58ef59=_0x43710e;_0x553b79(this[_0x58ef59(0x19c)],[[_0x1e0ff8,{'useClass':T}]]);}};k(A,_0x43710e(0x1ae),_0x43710e(0x1a3)),k(A,_0x43710e(0x1be),b),k(A,'version',x),A=w([_0x458dfb(_0x5d0ebe),C(0x1,_0xceabb9),C(0x2,_0xe058f3(_0x3276b8))],A);let j=class extends _0x4a7373{constructor(_0x322424,_0x3e3f52,_0x1454a4,_0x3ed5ad,_0x20db4f){const _0x3ad241=_0x43710e;super(_0x322424,_0x3e3f52,_0x1454a4,_0x3ed5ad,_0x20db4f);let _0x411130=this['_configService']['getConfig'](_0x5c7025);this[_0x3ad241(0x1b7)][_0x3ad241(0x19e)]({'interceptor':(_0x1b8d17,_0x5ae473)=>{const _0x1b26a9=_0x3ad241;let _0x298027=_0x1b8d17[_0x1b26a9(0x1c5)];if(_0x411130!=null&&_0x411130[_0x1b26a9(0x1af)]){for(let _0x38857f in _0x411130[_0x1b26a9(0x1af)])_0x298027[_0x1b26a9(0x1ad)](_0x38857f,_0x411130['customHeaders'][_0x38857f]);}return _0x5ae473(_0x1b8d17);}});}async[_0x43710e(0x1ab)](_0x5150fb){const _0x2deb1a=_0x43710e;return this[_0x2deb1a(0x1a2)](_0x5150fb);}};j=w([C(0x0,_0xe058f3(_0x3276b8)),C(0x1,_0xe058f3(_0x226980)),C(0x2,_0xceabb9),C(0x3,_0x196b70),C(0x4,_0x47bc2d)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x587371,_0x46792){const _0x42ebda=_0x4c52,_0x565d6b=_0x587371();while(!![]){try{const _0x247d78=parseInt(_0x42ebda(0x161))/0x1*(parseInt(_0x42ebda(0x169))/0x2)+parseInt(_0x42ebda(0x159))/0x3*(-parseInt(_0x42ebda(0x11a))/0x4)+-parseInt(_0x42ebda(0x136))/0x5*(parseInt(_0x42ebda(0x167))/0x6)+-parseInt(_0x42ebda(0x140))/0x7*(parseInt(_0x42ebda(0x12e))/0x8)+parseInt(_0x42ebda(0x11d))/0x9*(parseInt(_0x42ebda(0x151))/0xa)+parseInt(_0x42ebda(0x11f))/0xb+parseInt(_0x42ebda(0x143))/0xc*(parseInt(_0x42ebda(0x137))/0xd);if(_0x247d78===_0x46792)break;else _0x565d6b['push'](_0x565d6b['shift']());}catch(_0x35e615){_0x565d6b['push'](_0x565d6b['shift']());}}}(_0x34b8,0x1e740),function(_0x5ef055,_0x5bcef7){const _0x216e5d=_0x4c52;typeof exports==_0x216e5d(0x147)&&typeof module<'u'?_0x5bcef7(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x216e5d(0x124)&&define[_0x216e5d(0x129)]?define([_0x216e5d(0x134),_0x216e5d(0x131),_0x216e5d(0x123),_0x216e5d(0x122),_0x216e5d(0x15a),_0x216e5d(0x12b)],_0x5bcef7):(_0x5ef055=typeof globalThis<'u'?globalThis:_0x5ef055||self,_0x5bcef7(_0x5ef055[_0x216e5d(0x14c)]={},_0x5ef055[_0x216e5d(0x14f)],_0x5ef055['UniverCore'],_0x5ef055['UniverNetwork'],_0x5ef055['rxjs'],_0x5ef055['UniverProCollaboration']));}(this,function(_0x717bc5,_0x18c4bf,_0x29ed51,_0x2ecde5,_0xa40f8b,_0x57d849){const _0x515391=_0x4c52;Object['defineProperty'](_0x717bc5,Symbol[_0x515391(0x153)],{'value':_0x515391(0x13b)});var _0x3dbf3d=(_0x42a26,_0x128af0)=>()=>(_0x128af0||(_0x42a26((_0x128af0={'exports':{}})[_0x515391(0x134)],_0x128af0),_0x42a26=null),_0x128af0[_0x515391(0x134)]),_0x1aa3da=_0x515391(0x142),_0x549552='1.0.0-insiders.20260717-1e84621';let _0x3e972e={};var _0x3c366c=_0x3dbf3d((_0x40274e,_0x25e09a)=>{const _0x92531b=_0x515391;_0x25e09a[_0x92531b(0x134)]=function(){const _0x50db57=_0x92531b;throw Error(_0x50db57(0x168));};})();function _0x1501ad(_0x174bf0,_0xa9f894){return function(_0x25a2aa,_0x23c45d){_0xa9f894(_0x25a2aa,_0x23c45d,_0x174bf0);};}function _0x1d1569(_0x48a4ec,_0x531d23,_0x301fbd,_0x128b18){const _0x2774af=_0x515391;var _0x26186a=arguments[_0x2774af(0x15e)],_0x4baeda=_0x26186a<0x3?_0x531d23:_0x128b18===null?_0x128b18=Object[_0x2774af(0x13c)](_0x531d23,_0x301fbd):_0x128b18,_0x39e727;if(typeof Reflect==_0x2774af(0x147)&&typeof Reflect[_0x2774af(0x127)]=='function')_0x4baeda=Reflect['decorate'](_0x48a4ec,_0x531d23,_0x301fbd,_0x128b18);else{for(var _0x10bc71=_0x48a4ec[_0x2774af(0x15e)]-0x1;_0x10bc71>=0x0;_0x10bc71--)(_0x39e727=_0x48a4ec[_0x10bc71])&&(_0x4baeda=(_0x26186a<0x3?_0x39e727(_0x4baeda):_0x26186a>0x3?_0x39e727(_0x531d23,_0x301fbd,_0x4baeda):_0x39e727(_0x531d23,_0x301fbd))||_0x4baeda);}return _0x26186a>0x3&&_0x4baeda&&Object['defineProperty'](_0x531d23,_0x301fbd,_0x4baeda),_0x4baeda;}let _0x5e006e=class extends _0x29ed51[_0x515391(0x166)]{constructor(_0x1b958c){super(),this['_configService']=_0x1b958c;}[_0x515391(0x146)](_0x96547e){const _0x396727=_0x515391;var _0x46d3b0;let _0x11ad0e=((_0x46d3b0=this[_0x396727(0x163)][_0x396727(0x119)](_0x18c4bf[_0x396727(0x154)]))==null?void 0x0:_0x46d3b0[_0x396727(0x13f)])||{};try{let _0x4afdb0=new _0x3c366c['WebSocket'](_0x96547e,{'headers':{..._0x11ad0e}}),_0x91c878=new _0x29ed51[(_0x396727(0x135))]();return{'URL':_0x96547e,'close':(_0x648575,_0xeaef3a)=>{const _0x1949f2=_0x396727;_0x4afdb0[_0x1949f2(0x13e)](_0x648575,_0xeaef3a),_0x91c878[_0x1949f2(0x120)]();},'send':_0x27bd0f=>{_0x4afdb0['send'](_0x27bd0f);},'open$':new _0xa40f8b[(_0x396727(0x145))](_0x2c6e90=>{const _0x95ac88=_0x396727;let _0x58a089=_0x36f599=>_0x2c6e90[_0x95ac88(0x130)](_0x36f599);_0x4afdb0[_0x95ac88(0x141)](_0x95ac88(0x13d),_0x58a089),_0x91c878[_0x95ac88(0x12c)]((0x0,_0x29ed51[_0x95ac88(0x125)])(()=>_0x4afdb0[_0x95ac88(0x138)]('open',_0x58a089)));})[_0x396727(0x128)]((0x0,_0xa40f8b[_0x396727(0x15f)])()),'close$':new _0xa40f8b[(_0x396727(0x145))](_0x59c5ab=>{const _0x984cb=_0x396727;let _0xf90daf=_0x174c72=>_0x59c5ab[_0x984cb(0x130)](_0x174c72);_0x4afdb0['addEventListener'](_0x984cb(0x13e),_0xf90daf),_0x91c878[_0x984cb(0x12c)]((0x0,_0x29ed51[_0x984cb(0x125)])(()=>_0x4afdb0[_0x984cb(0x138)](_0x984cb(0x13e),_0xf90daf)));})[_0x396727(0x128)]((0x0,_0xa40f8b[_0x396727(0x15f)])()),'error$':new _0xa40f8b[(_0x396727(0x145))](_0x57af6f=>{const _0x5820ac=_0x396727;let _0x23e7bb=_0xd9754b=>_0x57af6f['next'](_0xd9754b);_0x4afdb0['addEventListener']('error',_0x23e7bb),_0x91c878['add']((0x0,_0x29ed51[_0x5820ac(0x125)])(()=>_0x4afdb0[_0x5820ac(0x138)](_0x5820ac(0x16c),_0x23e7bb)));})[_0x396727(0x128)]((0x0,_0xa40f8b['share'])()),'message$':new _0xa40f8b['Observable'](_0x497049=>{const _0x182083=_0x396727;let _0xeed8f2=_0x38f844=>_0x497049[_0x182083(0x130)](_0x38f844);_0x4afdb0[_0x182083(0x141)](_0x182083(0x162),_0xeed8f2),_0x91c878['add']((0x0,_0x29ed51[_0x182083(0x125)])(()=>_0x4afdb0['removeEventListener'](_0x182083(0x162),_0xeed8f2)));})[_0x396727(0x128)]((0x0,_0xa40f8b['share'])())};}catch(_0x439156){return console[_0x396727(0x16c)](_0x439156),null;}}};_0x5e006e=_0x1d1569([_0x1501ad(0x0,_0x29ed51['IConfigService'])],_0x5e006e);function _0x3603fd(_0x2f21a3){'@babel/helpers - typeof';const _0x920778=_0x515391;return _0x3603fd=typeof Symbol==_0x920778(0x124)&&typeof Symbol[_0x920778(0x160)]==_0x920778(0x152)?function(_0x194ce5){return typeof _0x194ce5;}:function(_0x32ec92){const _0xe112ad=_0x920778;return _0x32ec92&&typeof Symbol==_0xe112ad(0x124)&&_0x32ec92[_0xe112ad(0x150)]===Symbol&&_0x32ec92!==Symbol[_0xe112ad(0x14b)]?_0xe112ad(0x152):typeof _0x32ec92;},_0x3603fd(_0x2f21a3);}function _0x18ecc6(_0x2e71a1,_0x42a7fe){const _0x358a48=_0x515391;if(_0x3603fd(_0x2e71a1)!=_0x358a48(0x147)||!_0x2e71a1)return _0x2e71a1;var _0x431ae2=_0x2e71a1[Symbol['toPrimitive']];if(_0x431ae2!==void 0x0){var _0xf774c9=_0x431ae2[_0x358a48(0x15c)](_0x2e71a1,_0x42a7fe||_0x358a48(0x12f));if(_0x3603fd(_0xf774c9)!=_0x358a48(0x147))return _0xf774c9;throw TypeError(_0x358a48(0x121));}return(_0x42a7fe===_0x358a48(0x15b)?String:Number)(_0x2e71a1);}function _0x4d7ded(_0x57f079){const _0x4c48c8=_0x515391;var _0x1face2=_0x18ecc6(_0x57f079,_0x4c48c8(0x15b));return _0x3603fd(_0x1face2)==_0x4c48c8(0x152)?_0x1face2:_0x1face2+'';}function _0x4f988a(_0x28e426,_0x7ba0a3,_0x4b2d62){const _0x355656=_0x515391;return(_0x7ba0a3=_0x4d7ded(_0x7ba0a3))in _0x28e426?Object[_0x355656(0x165)](_0x28e426,_0x7ba0a3,{'value':_0x4b2d62,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x28e426[_0x7ba0a3]=_0x4b2d62,_0x28e426;}let _0x12979c=class extends _0x29ed51[_0x515391(0x132)]{constructor(_0x50eee2=_0x3e972e,_0x2c45f8,_0x1000ef){const _0x3f5f37=_0x515391;super(),this[_0x3f5f37(0x11c)]=_0x50eee2,this['_configService']=_0x2c45f8,this[_0x3f5f37(0x158)]=_0x1000ef;let {..._0x321e5a}=(0x0,_0x29ed51['merge'])({},_0x3e972e,this[_0x3f5f37(0x11c)]);this[_0x3f5f37(0x163)][_0x3f5f37(0x144)]('collaboration-client-node.config',_0x321e5a);}[_0x515391(0x164)](){this['_registerDependencies']();}[_0x515391(0x11b)](){const _0xf5cf1a=_0x515391;(0x0,_0x29ed51[_0xf5cf1a(0x14e)])(this[_0xf5cf1a(0x158)],[[_0x2ecde5[_0xf5cf1a(0x16d)],{'useClass':_0x5e006e}]]);}};_0x4f988a(_0x12979c,_0x515391(0x12d),_0x515391(0x14d)),_0x4f988a(_0x12979c,_0x515391(0x15d),_0x1aa3da),_0x4f988a(_0x12979c,_0x515391(0x139),_0x549552),_0x12979c=_0x1d1569([(0x0,_0x29ed51[_0x515391(0x11e)])(_0x18c4bf['UniverCollaborationClientPlugin']),_0x1501ad(0x1,_0x29ed51[_0x515391(0x156)]),_0x1501ad(0x2,(0x0,_0x29ed51['Inject'])(_0x29ed51['Injector']))],_0x12979c);let _0x81702b=class extends _0x18c4bf[_0x515391(0x149)]{constructor(_0x4c54fe,_0x4548c6,_0x41e9f5,_0x5572a4,_0x2b7ca5){const _0x18f657=_0x515391;super(_0x4c54fe,_0x4548c6,_0x41e9f5,_0x5572a4,_0x2b7ca5);let _0x1e0a21=this['_configService'][_0x18f657(0x119)](_0x18c4bf[_0x18f657(0x154)]);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x2f8870,_0x2c57e2)=>{const _0xc44d89=_0x18f657;let _0x4205e4=_0x2f8870[_0xc44d89(0x14a)];if(_0x1e0a21!=null&&_0x1e0a21[_0xc44d89(0x13f)]){for(let _0x405e3e in _0x1e0a21[_0xc44d89(0x13f)])_0x4205e4[_0xc44d89(0x157)](_0x405e3e,_0x1e0a21[_0xc44d89(0x13f)][_0x405e3e]);}return _0x2c57e2(_0x2f8870);}});}async['createSocket'](_0x4dad05){const _0x4dcbac=_0x515391;return this[_0x4dcbac(0x133)](_0x4dad05);}};_0x81702b=_0x1d1569([_0x1501ad(0x0,(0x0,_0x29ed51[_0x515391(0x16b)])(_0x29ed51[_0x515391(0x16a)])),_0x1501ad(0x1,(0x0,_0x29ed51[_0x515391(0x16b)])(_0x2ecde5[_0x515391(0x12a)])),_0x1501ad(0x2,_0x29ed51[_0x515391(0x156)]),_0x1501ad(0x3,_0x29ed51[_0x515391(0x13a)]),_0x1501ad(0x4,_0x57d849[_0x515391(0x155)])],_0x81702b),Object[_0x515391(0x165)](_0x717bc5,_0x515391(0x126),{'enumerable':!0x0,'get':function(){return _0x81702b;}}),Object[_0x515391(0x165)](_0x717bc5,_0x515391(0x148),{'enumerable':!0x0,'get':function(){return _0x12979c;}});}));function _0x4c52(_0x24b1f3,_0x2a0f8e){_0x24b1f3=_0x24b1f3-0x119;const _0x34b8ac=_0x34b8();let _0x4c52d0=_0x34b8ac[_0x24b1f3];return _0x4c52d0;}function _0x34b8(){const _0x16d1df=['33IMtwqL','message','_configService','onStarting','defineProperty','Disposable','475518HybEYS','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','2630eMZLst','Injector','Inject','error','ISocketService','getConfig','80380krGeCX','_registerDependencies','_config','1084518XVnEUd','DependentOn','604153KSwTCD','dispose','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs/network','@univerjs/core','function','toDisposable','NodeCollaborationSocketService','decorate','pipe','amd','HTTPService','@univerjs-pro/collaboration','add','pluginName','8sQhrEw','default','next','@univerjs-pro/collaboration-client','Plugin','_doCreateSocket','exports','DisposableCollection','10rHqZnx','994344oefMQm','removeEventListener','version','ILogService','Module','getOwnPropertyDescriptor','open','close','customHeaders','451969JwEonv','addEventListener','@univerjs-pro/collaboration-client-node','36LzcldY','setConfig','Observable','createSocket','object','UniverCollaborationClientNodePlugin','CollaborationSocketService','headers','prototype','UniverProCollaborationClientNode','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','registerDependencies','UniverProCollaborationClient','constructor','10XCBWbB','symbol','toStringTag','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ISnapshotServerService','IConfigService','set','_injector','15SwmjyN','rxjs','string','call','packageName','length','share','iterator'];_0x34b8=function(){return _0x16d1df;};return _0x34b8();}
1
+ function _0x3c84(_0x4d213e,_0x57b82b){_0x4d213e=_0x4d213e-0xf4;const _0xa908c7=_0xa908();let _0x3c8423=_0xa908c7[_0x4d213e];return _0x3c8423;}function _0xa908(){const _0x3a8d92=['UniverProCollaboration','@univerjs/core','1902573mqOZuC','send','1703640OFmfhQ','981290EgWLwY','removeEventListener','getConfig','length','onStarting','constructor','_config','1205Ypiwth','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','amd','object','1laLsgE','default','decorate','4qiYJSa','packageName','function','open','string','collaboration-client-node.config','ILogService','UniverCollaborationClientNodePlugin','message','getOwnPropertyDescriptor','Module','3888arQeyo','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','2062456IkzMaM','iterator','toStringTag','pipe','next','exports','defineProperty','NodeCollaborationSocketService','Inject','IConfigService','_configService','7Jazwvf','call','add','rxjs','UniverCollaborationClientPlugin','Observable','merge','1939629tpmJkf','registerDependencies','setConfig','registerHTTPInterceptor','_injector','symbol','pluginName','_doCreateSocket','headers','DependentOn','error','UniverCore','createSocket','2217930sTxjrP','CollaborationSocketService','@univerjs-pro/collaboration-client-node','DisposableCollection','@univerjs-pro/collaboration','ISnapshotServerService','toDisposable','version','addEventListener','UniverProCollaborationClient','HTTPService','share','customHeaders','_registerDependencies','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','toPrimitive','Injector','close'];_0xa908=function(){return _0x3a8d92;};return _0xa908();}(function(_0x1208f7,_0x3f66d9){const _0x5e81f1=_0x3c84,_0x1513e3=_0x1208f7();while(!![]){try{const _0x112a0f=-parseInt(_0x5e81f1(0x103))/0x1*(parseInt(_0x5e81f1(0xf8))/0x2)+-parseInt(_0x5e81f1(0x125))/0x3*(-parseInt(_0x5e81f1(0x106))/0x4)+-parseInt(_0x5e81f1(0xff))/0x5*(parseInt(_0x5e81f1(0x111))/0x6)+parseInt(_0x5e81f1(0x11e))/0x7*(parseInt(_0x5e81f1(0x113))/0x8)+-parseInt(_0x5e81f1(0xf5))/0x9+parseInt(_0x5e81f1(0xf7))/0xa+parseInt(_0x5e81f1(0x132))/0xb;if(_0x112a0f===_0x3f66d9)break;else _0x1513e3['push'](_0x1513e3['shift']());}catch(_0xf93eb5){_0x1513e3['push'](_0x1513e3['shift']());}}}(_0xa908,0x66156),function(_0x2a0c01,_0x36f79c){const _0x592167=_0x3c84;typeof exports==_0x592167(0x102)&&typeof module<'u'?_0x36f79c(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x592167(0x108)&&define[_0x592167(0x101)]?define([_0x592167(0x118),'@univerjs-pro/collaboration-client',_0x592167(0xf4),'@univerjs/network','rxjs',_0x592167(0x136)],_0x36f79c):(_0x2a0c01=typeof globalThis<'u'?globalThis:_0x2a0c01||self,_0x36f79c(_0x2a0c01['UniverProCollaborationClientNode']={},_0x2a0c01[_0x592167(0x13b)],_0x2a0c01[_0x592167(0x130)],_0x2a0c01['UniverNetwork'],_0x2a0c01[_0x592167(0x121)],_0x2a0c01[_0x592167(0x144)]));}(this,function(_0x2e5d89,_0x17e346,_0xfcc43a,_0x3d66d2,_0xa8aeb9,_0x309236){const _0xe2c0e6=_0x3c84;Object['defineProperty'](_0x2e5d89,Symbol[_0xe2c0e6(0x115)],{'value':_0xe2c0e6(0x110)});var _0x4a4283=(_0x23a86f,_0x2b6bd0)=>()=>(_0x2b6bd0||(_0x23a86f((_0x2b6bd0={'exports':{}})['exports'],_0x2b6bd0),_0x23a86f=null),_0x2b6bd0[_0xe2c0e6(0x118)]),_0x3c0c64=_0xe2c0e6(0x134),_0x4a5a0b='1.0.0-insiders.20260720-e1e8f51';let _0x419128={};var _0x117255=_0x4a4283((_0x13d342,_0x2110a7)=>{const _0x30a504=_0xe2c0e6;_0x2110a7[_0x30a504(0x118)]=function(){const _0x30d928=_0x30a504;throw Error(_0x30d928(0x112));};})();function _0x13ecc6(_0x102c8f,_0x2cd573){return function(_0x446af8,_0x1aae45){_0x2cd573(_0x446af8,_0x1aae45,_0x102c8f);};}function _0x2b0b4e(_0x29e2af,_0x2acfae,_0x510a9b,_0x4e50a7){const _0x46b989=_0xe2c0e6;var _0x3eacc5=arguments[_0x46b989(0xfb)],_0xc93634=_0x3eacc5<0x3?_0x2acfae:_0x4e50a7===null?_0x4e50a7=Object[_0x46b989(0x10f)](_0x2acfae,_0x510a9b):_0x4e50a7,_0x9f69e8;if(typeof Reflect==_0x46b989(0x102)&&typeof Reflect[_0x46b989(0x105)]==_0x46b989(0x108))_0xc93634=Reflect[_0x46b989(0x105)](_0x29e2af,_0x2acfae,_0x510a9b,_0x4e50a7);else{for(var _0x18424a=_0x29e2af[_0x46b989(0xfb)]-0x1;_0x18424a>=0x0;_0x18424a--)(_0x9f69e8=_0x29e2af[_0x18424a])&&(_0xc93634=(_0x3eacc5<0x3?_0x9f69e8(_0xc93634):_0x3eacc5>0x3?_0x9f69e8(_0x2acfae,_0x510a9b,_0xc93634):_0x9f69e8(_0x2acfae,_0x510a9b))||_0xc93634);}return _0x3eacc5>0x3&&_0xc93634&&Object[_0x46b989(0x119)](_0x2acfae,_0x510a9b,_0xc93634),_0xc93634;}let _0x1bd3d2=class extends _0xfcc43a['Disposable']{constructor(_0x572ac8){super(),this['_configService']=_0x572ac8;}['createSocket'](_0x17e377){const _0x2c92b5=_0xe2c0e6;var _0x1c8ec5;let _0x4dc473=((_0x1c8ec5=this[_0x2c92b5(0x11d)][_0x2c92b5(0xfa)](_0x17e346['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x1c8ec5['customHeaders'])||{};try{let _0x411244=new _0x117255['WebSocket'](_0x17e377,{'headers':{..._0x4dc473}}),_0x472244=new _0xfcc43a[(_0x2c92b5(0x135))]();return{'URL':_0x17e377,'close':(_0x238d4b,_0x4f7907)=>{const _0x40bed7=_0x2c92b5;_0x411244[_0x40bed7(0x143)](_0x238d4b,_0x4f7907),_0x472244['dispose']();},'send':_0x236438=>{const _0x4e38ad=_0x2c92b5;_0x411244[_0x4e38ad(0xf6)](_0x236438);},'open$':new _0xa8aeb9[(_0x2c92b5(0x123))](_0x5db3a9=>{const _0x48203f=_0x2c92b5;let _0x100bc4=_0x839c8f=>_0x5db3a9[_0x48203f(0x117)](_0x839c8f);_0x411244['addEventListener'](_0x48203f(0x109),_0x100bc4),_0x472244[_0x48203f(0x120)]((0x0,_0xfcc43a[_0x48203f(0x138)])(()=>_0x411244[_0x48203f(0xf9)](_0x48203f(0x109),_0x100bc4)));})['pipe']((0x0,_0xa8aeb9[_0x2c92b5(0x13d)])()),'close$':new _0xa8aeb9[(_0x2c92b5(0x123))](_0xc7ffe1=>{const _0x3697f0=_0x2c92b5;let _0x846e55=_0x33bfdf=>_0xc7ffe1[_0x3697f0(0x117)](_0x33bfdf);_0x411244[_0x3697f0(0x13a)](_0x3697f0(0x143),_0x846e55),_0x472244['add']((0x0,_0xfcc43a[_0x3697f0(0x138)])(()=>_0x411244[_0x3697f0(0xf9)](_0x3697f0(0x143),_0x846e55)));})['pipe']((0x0,_0xa8aeb9[_0x2c92b5(0x13d)])()),'error$':new _0xa8aeb9[(_0x2c92b5(0x123))](_0x5168e3=>{const _0x3376af=_0x2c92b5;let _0x28b590=_0x5c78e2=>_0x5168e3[_0x3376af(0x117)](_0x5c78e2);_0x411244[_0x3376af(0x13a)]('error',_0x28b590),_0x472244[_0x3376af(0x120)]((0x0,_0xfcc43a[_0x3376af(0x138)])(()=>_0x411244[_0x3376af(0xf9)](_0x3376af(0x12f),_0x28b590)));})[_0x2c92b5(0x116)]((0x0,_0xa8aeb9['share'])()),'message$':new _0xa8aeb9[(_0x2c92b5(0x123))](_0x1ad8aa=>{const _0xfaea59=_0x2c92b5;let _0x2ebad6=_0x5be8d3=>_0x1ad8aa[_0xfaea59(0x117)](_0x5be8d3);_0x411244[_0xfaea59(0x13a)](_0xfaea59(0x10e),_0x2ebad6),_0x472244[_0xfaea59(0x120)]((0x0,_0xfcc43a['toDisposable'])(()=>_0x411244[_0xfaea59(0xf9)](_0xfaea59(0x10e),_0x2ebad6)));})[_0x2c92b5(0x116)]((0x0,_0xa8aeb9[_0x2c92b5(0x13d)])())};}catch(_0x2960a8){return console[_0x2c92b5(0x12f)](_0x2960a8),null;}}};_0x1bd3d2=_0x2b0b4e([_0x13ecc6(0x0,_0xfcc43a[_0xe2c0e6(0x11c)])],_0x1bd3d2);function _0x9630e4(_0xf0c433){'@babel/helpers - typeof';const _0x45f02f=_0xe2c0e6;return _0x9630e4=typeof Symbol==_0x45f02f(0x108)&&typeof Symbol[_0x45f02f(0x114)]==_0x45f02f(0x12a)?function(_0x1c3e97){return typeof _0x1c3e97;}:function(_0x4649c4){const _0xe0e88a=_0x45f02f;return _0x4649c4&&typeof Symbol==_0xe0e88a(0x108)&&_0x4649c4[_0xe0e88a(0xfd)]===Symbol&&_0x4649c4!==Symbol['prototype']?_0xe0e88a(0x12a):typeof _0x4649c4;},_0x9630e4(_0xf0c433);}function _0x38a7a4(_0x26a9e3,_0x57e83c){const _0x34a814=_0xe2c0e6;if(_0x9630e4(_0x26a9e3)!=_0x34a814(0x102)||!_0x26a9e3)return _0x26a9e3;var _0x4dd256=_0x26a9e3[Symbol[_0x34a814(0x141)]];if(_0x4dd256!==void 0x0){var _0x4d1879=_0x4dd256[_0x34a814(0x11f)](_0x26a9e3,_0x57e83c||_0x34a814(0x104));if(_0x9630e4(_0x4d1879)!=_0x34a814(0x102))return _0x4d1879;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x57e83c==='string'?String:Number)(_0x26a9e3);}function _0x4c54da(_0x33685c){const _0x5aee49=_0xe2c0e6;var _0x23631b=_0x38a7a4(_0x33685c,_0x5aee49(0x10a));return _0x9630e4(_0x23631b)==_0x5aee49(0x12a)?_0x23631b:_0x23631b+'';}function _0x26dd91(_0x43e339,_0x32d705,_0x10179c){const _0x43e16c=_0xe2c0e6;return(_0x32d705=_0x4c54da(_0x32d705))in _0x43e339?Object[_0x43e16c(0x119)](_0x43e339,_0x32d705,{'value':_0x10179c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43e339[_0x32d705]=_0x10179c,_0x43e339;}let _0x4769d3=class extends _0xfcc43a['Plugin']{constructor(_0x45ca0e=_0x419128,_0x5caf42,_0x47d5f0){const _0x573fc4=_0xe2c0e6;super(),this[_0x573fc4(0xfe)]=_0x45ca0e,this[_0x573fc4(0x11d)]=_0x5caf42,this['_injector']=_0x47d5f0;let {..._0x5bf273}=(0x0,_0xfcc43a[_0x573fc4(0x124)])({},_0x419128,this[_0x573fc4(0xfe)]);this[_0x573fc4(0x11d)][_0x573fc4(0x127)](_0x573fc4(0x10b),_0x5bf273);}[_0xe2c0e6(0xfc)](){const _0x30c4c1=_0xe2c0e6;this[_0x30c4c1(0x13f)]();}[_0xe2c0e6(0x13f)](){const _0x375236=_0xe2c0e6;(0x0,_0xfcc43a[_0x375236(0x126)])(this[_0x375236(0x129)],[[_0x3d66d2['ISocketService'],{'useClass':_0x1bd3d2}]]);}};_0x26dd91(_0x4769d3,_0xe2c0e6(0x12b),_0xe2c0e6(0x140)),_0x26dd91(_0x4769d3,_0xe2c0e6(0x107),_0x3c0c64),_0x26dd91(_0x4769d3,_0xe2c0e6(0x139),_0x4a5a0b),_0x4769d3=_0x2b0b4e([(0x0,_0xfcc43a[_0xe2c0e6(0x12e)])(_0x17e346[_0xe2c0e6(0x122)]),_0x13ecc6(0x1,_0xfcc43a[_0xe2c0e6(0x11c)]),_0x13ecc6(0x2,(0x0,_0xfcc43a[_0xe2c0e6(0x11b)])(_0xfcc43a[_0xe2c0e6(0x142)]))],_0x4769d3);let _0x1528f5=class extends _0x17e346[_0xe2c0e6(0x133)]{constructor(_0x2b4d0e,_0x424f68,_0x5caf81,_0x13a49b,_0xecb5b8){const _0x5a1029=_0xe2c0e6;super(_0x2b4d0e,_0x424f68,_0x5caf81,_0x13a49b,_0xecb5b8);let _0x3d3caa=this[_0x5a1029(0x11d)][_0x5a1029(0xfa)](_0x17e346[_0x5a1029(0x100)]);this['_httpService'][_0x5a1029(0x128)]({'interceptor':(_0xf6c0dd,_0x1a930b)=>{const _0x2e3513=_0x5a1029;let _0x3cb84e=_0xf6c0dd[_0x2e3513(0x12d)];if(_0x3d3caa!=null&&_0x3d3caa[_0x2e3513(0x13e)]){for(let _0x214ed5 in _0x3d3caa[_0x2e3513(0x13e)])_0x3cb84e['set'](_0x214ed5,_0x3d3caa[_0x2e3513(0x13e)][_0x214ed5]);}return _0x1a930b(_0xf6c0dd);}});}async[_0xe2c0e6(0x131)](_0x496230){const _0x198752=_0xe2c0e6;return this[_0x198752(0x12c)](_0x496230);}};_0x1528f5=_0x2b0b4e([_0x13ecc6(0x0,(0x0,_0xfcc43a['Inject'])(_0xfcc43a['Injector'])),_0x13ecc6(0x1,(0x0,_0xfcc43a[_0xe2c0e6(0x11b)])(_0x3d66d2[_0xe2c0e6(0x13c)])),_0x13ecc6(0x2,_0xfcc43a[_0xe2c0e6(0x11c)]),_0x13ecc6(0x3,_0xfcc43a[_0xe2c0e6(0x10c)]),_0x13ecc6(0x4,_0x309236[_0xe2c0e6(0x137)])],_0x1528f5),Object['defineProperty'](_0x2e5d89,_0xe2c0e6(0x11a),{'enumerable':!0x0,'get':function(){return _0x1528f5;}}),Object[_0xe2c0e6(0x119)](_0x2e5d89,_0xe2c0e6(0x10d),{'enumerable':!0x0,'get':function(){return _0x4769d3;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.0-insiders.20260717-1e84621",
3
+ "version": "1.0.0-insiders.20260720-e1e8f51",
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,10 +52,10 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.21.0",
55
- "@univerjs-pro/collaboration": "1.0.0-insiders.20260717-1e84621",
56
- "@univerjs-pro/collaboration-client": "1.0.0-insiders.20260717-1e84621",
57
- "@univerjs/core": "1.0.0-insiders.20260717-1e84621",
58
- "@univerjs/network": "1.0.0-insiders.20260717-1e84621"
55
+ "@univerjs-pro/collaboration": "1.0.0-insiders.20260720-e1e8f51",
56
+ "@univerjs-pro/collaboration-client": "1.0.0-insiders.20260720-e1e8f51",
57
+ "@univerjs/core": "1.0.0-insiders.20260720-e1e8f51",
58
+ "@univerjs/network": "1.0.0-insiders.20260720-e1e8f51"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/ws": "8.18.1",