@univerjs-pro/live-share 0.15.5 → 0.16.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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xa713d9=_0x7869;(function(_0x3b8230,_0x47da68){const _0x50dc7a=_0x7869,_0x351c2d=_0x3b8230();while(!![]){try{const _0x592769=-parseInt(_0x50dc7a(0x1ca))/0x1*(-parseInt(_0x50dc7a(0x1d4))/0x2)+parseInt(_0x50dc7a(0x1d0))/0x3*(parseInt(_0x50dc7a(0x1da))/0x4)+parseInt(_0x50dc7a(0x1c4))/0x5+parseInt(_0x50dc7a(0x1d2))/0x6*(-parseInt(_0x50dc7a(0x1c2))/0x7)+parseInt(_0x50dc7a(0x1ce))/0x8+-parseInt(_0x50dc7a(0x1c6))/0x9+-parseInt(_0x50dc7a(0x1d3))/0xa*(parseInt(_0x50dc7a(0x1df))/0xb);if(_0x592769===_0x47da68)break;else _0x351c2d['push'](_0x351c2d['shift']());}catch(_0x866479){_0x351c2d['push'](_0x351c2d['shift']());}}}(_0x5242,0x89e3b));function _0x7869(_0x1621a3,_0x1e57ce){_0x1621a3=_0x1621a3-0x1c0;const _0x52420e=_0x5242();let _0x78694e=_0x52420e[_0x1621a3];return _0x78694e;}var h=Object[_0xa713d9(0x1c8)],u=(_0xa3b9f1,_0x49b33d,_0x44280f)=>_0x49b33d in _0xa3b9f1?h(_0xa3b9f1,_0x49b33d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44280f}):_0xa3b9f1[_0x49b33d]=_0x44280f,S=(_0xd4c759,_0x38910c,_0x40c952)=>u(_0xd4c759,typeof _0x38910c!=_0xa713d9(0x1d6)?_0x38910c+'':_0x38910c,_0x40c952);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');function _0x5242(){const _0x1fefe4=['IUniverInstanceService','946iJrHXD','No\x20active\x20workbook\x20found.','stopPresenting','_injector','IDLE','139181myiHak','FUniver','2588140EYUXNB','getLiveShareCoordinatorSync','685278tbOtbW','UniverInstanceType','defineProperty','startPresenting','111806gSftiN','getUnitId','LiveShareController','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','7003656uyjvLB','startFollowing','21504AlTFAZ','stopFollowing','324UxcPWC','94630IRHimC','8COSZgM','LiveShareStatus','symbol','getStatus','get','extend','384GsPzdc','getCurrentUnitOfType','_liveShareController','UNIVER_SHEET'];_0x5242=function(){return _0x1fefe4;};return _0x5242();}class I extends c['FUniver']{constructor(){super(...arguments),S(this,'_liveShareController');}['_initialize'](_0x1a5a44){const _0x1d389a=_0xa713d9;this[_0x1d389a(0x1dc)]=_0x1a5a44[_0x1d389a(0x1d8)](s[_0x1d389a(0x1cc)]);}['getLiveShareStatus'](){const _0x41937e=_0xa713d9;var _0x1dc919;const _0x312d38=this[_0x41937e(0x1c0)][_0x41937e(0x1d8)](n[_0x41937e(0x1de)])[_0x41937e(0x1db)](n[_0x41937e(0x1c7)]['UNIVER_SHEET']);if(!_0x312d38)throw new Error(_0x41937e(0x1e0));const _0x56310b=_0x312d38[_0x41937e(0x1cb)](),_0x5e77e5=this['_liveShareController'][_0x41937e(0x1c5)](_0x56310b);return(_0x1dc919=_0x5e77e5==null?void 0x0:_0x5e77e5[_0x41937e(0x1d7)]())!=null?_0x1dc919:s[_0x41937e(0x1d5)][_0x41937e(0x1c1)];}[_0xa713d9(0x1cf)](){const _0x3c91f3=_0xa713d9,_0x3a86ae=this[_0x3c91f3(0x1c0)]['get'](n[_0x3c91f3(0x1de)])['getCurrentUnitOfType'](n['UniverInstanceType'][_0x3c91f3(0x1dd)]);if(!_0x3a86ae)throw new Error('No\x20active\x20workbook\x20found.');const _0x32f5ac=_0x3a86ae['getUnitId'](),_0x51005a=this[_0x3c91f3(0x1dc)][_0x3c91f3(0x1c5)](_0x32f5ac);if(!_0x51005a)throw new Error(_0x3c91f3(0x1cd));_0x51005a[_0x3c91f3(0x1cf)]();}[_0xa713d9(0x1d1)](){const _0x3a15e8=_0xa713d9,_0x15d72d=this['_injector'][_0x3a15e8(0x1d8)](n[_0x3a15e8(0x1de)])['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x15d72d)throw new Error(_0x3a15e8(0x1e0));const _0x2ed55f=_0x15d72d[_0x3a15e8(0x1cb)](),_0x44cced=this[_0x3a15e8(0x1dc)][_0x3a15e8(0x1c5)](_0x2ed55f);if(!_0x44cced)throw new Error(_0x3a15e8(0x1cd));_0x44cced[_0x3a15e8(0x1d1)]();}[_0xa713d9(0x1c9)](){const _0x3e4288=_0xa713d9,_0x5d2d0b=this['_injector']['get'](n[_0x3e4288(0x1de)])['getCurrentUnitOfType'](n[_0x3e4288(0x1c7)][_0x3e4288(0x1dd)]);if(!_0x5d2d0b)throw new Error(_0x3e4288(0x1e0));const _0x56d29b=_0x5d2d0b[_0x3e4288(0x1cb)](),_0x3fad47=this['_liveShareController'][_0x3e4288(0x1c5)](_0x56d29b);if(!_0x3fad47)throw new Error(_0x3e4288(0x1cd));_0x3fad47['tryStartPresenting']();}[_0xa713d9(0x1e1)](){const _0x651aff=_0xa713d9,_0x4e1c25=this[_0x651aff(0x1c0)]['get'](n[_0x651aff(0x1de)])[_0x651aff(0x1db)](n[_0x651aff(0x1c7)][_0x651aff(0x1dd)]);if(!_0x4e1c25)throw new Error(_0x651aff(0x1e0));const _0x45e2ba=_0x4e1c25[_0x651aff(0x1cb)](),_0x56f1b1=this['_liveShareController'][_0x651aff(0x1c5)](_0x45e2ba);if(!_0x56f1b1)throw new Error(_0x651aff(0x1cd));_0x56f1b1[_0x651aff(0x1e1)]();}}c[_0xa713d9(0x1c3)][_0xa713d9(0x1d9)](I);class l extends c['FEnum']{get['LiveShareStatusEnum'](){const _0x2c8ecc=_0xa713d9;return s[_0x2c8ecc(0x1d5)];}}c['FEnum'][_0xa713d9(0x1d9)](l);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x13e218=_0xfffd;(function(_0x2da8cf,_0x3d54bb){const _0x5a64d6=_0xfffd,_0x5d0257=_0x2da8cf();while(!![]){try{const _0x2de367=-parseInt(_0x5a64d6(0x1ba))/0x1*(-parseInt(_0x5a64d6(0x1d3))/0x2)+parseInt(_0x5a64d6(0x1b7))/0x3*(-parseInt(_0x5a64d6(0x1f5))/0x4)+parseInt(_0x5a64d6(0x218))/0x5+parseInt(_0x5a64d6(0x1fd))/0x6+-parseInt(_0x5a64d6(0x1d4))/0x7+-parseInt(_0x5a64d6(0x20a))/0x8+parseInt(_0x5a64d6(0x19c))/0x9;if(_0x2de367===_0x3d54bb)break;else _0x5d0257['push'](_0x5d0257['shift']());}catch(_0x4e3a17){_0x5d0257['push'](_0x5d0257['shift']());}}}(_0x173d,0x9282e));var T=Object[_0x13e218(0x188)],U=(_0x34184f,_0x19b7fd,_0x2f6898)=>_0x19b7fd in _0x34184f?T(_0x34184f,_0x19b7fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f6898}):_0x34184f[_0x19b7fd]=_0x2f6898,_=(_0x5752a3,_0x858cef,_0x3bf031)=>U(_0x5752a3,typeof _0x858cef!=_0x13e218(0x200)?_0x858cef+'':_0x858cef,_0x3bf031);Object['defineProperty'](exports,Symbol[_0x13e218(0x1a3)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x36527b,..._0x5d68ad}){const _0x581007=_0x13e218,{icon:_0x5c3aa6,id:_0x5d3617,className:_0x585e34,extend:_0x51bd27,..._0x28d0f4}=_0x5d68ad,_0x2af78=(_0x581007(0x194)+_0x5d3617+'\x20'+(_0x585e34||''))['trim'](),_0x5c3455=v[_0x581007(0x1b0)]('_'+H());return j(_0x5c3aa6,''+_0x5d3617,{'defIds':_0x5c3aa6[_0x581007(0x1ea)],'idSuffix':_0x5c3455[_0x581007(0x224)]},{'ref':_0x36527b,'className':_0x2af78,..._0x28d0f4},_0x51bd27);}function j(_0x8619aa,_0x290038,_0xd07a09,_0x3c371f,_0x11b670){const _0x5bb9a5=_0x13e218;return v[_0x5bb9a5(0x214)](_0x8619aa[_0x5bb9a5(0x1d7)],{'key':_0x290038,...y(_0x8619aa,_0xd07a09,_0x11b670),..._0x3c371f},(F(_0x8619aa,_0xd07a09)[_0x5bb9a5(0x1cd)]||[])[_0x5bb9a5(0x1d9)]((_0x57d84a,_0x5a7be0)=>j(_0x57d84a,_0x290038+'-'+_0x8619aa['tag']+'-'+_0x5a7be0,_0xd07a09,void 0x0,_0x11b670)));}function y(_0x2029eb,_0x516dd2,_0x5c6c9c){const _0x4fe09b=_0x13e218,_0x7e197d={..._0x2029eb[_0x4fe09b(0x193)]};_0x5c6c9c!=null&&_0x5c6c9c[_0x4fe09b(0x1ef)]&&_0x7e197d[_0x4fe09b(0x250)]===_0x4fe09b(0x1ef)&&(_0x7e197d[_0x4fe09b(0x250)]=_0x5c6c9c[_0x4fe09b(0x1ef)]),_0x2029eb[_0x4fe09b(0x1d7)]===_0x4fe09b(0x199)&&_0x7e197d['id']&&(_0x7e197d['id']=_0x7e197d['id']+_0x516dd2['idSuffix']),Object[_0x4fe09b(0x1d2)](_0x7e197d)[_0x4fe09b(0x195)](([_0xd631f3,_0xba2d86])=>{const _0x1d608b=_0x4fe09b;_0xd631f3==='mask'&&typeof _0xba2d86==_0x1d608b(0x1d0)&&(_0x7e197d[_0xd631f3]=_0xba2d86[_0x1d608b(0x237)](/url\(#(.*)\)/,_0x1d608b(0x1b3)+_0x516dd2['idSuffix']+')'));});const {defIds:_0x198bb7}=_0x516dd2;return!_0x198bb7||_0x198bb7[_0x4fe09b(0x254)]===0x0||(_0x2029eb['tag']==='use'&&_0x7e197d[_0x4fe09b(0x1c6)]&&(_0x7e197d[_0x4fe09b(0x1c6)]=_0x7e197d[_0x4fe09b(0x1c6)]+_0x516dd2['idSuffix']),Object['entries'](_0x7e197d)[_0x4fe09b(0x195)](([_0x3105eb,_0x463eeb])=>{const _0x1905ec=_0x4fe09b;typeof _0x463eeb=='string'&&(_0x7e197d[_0x3105eb]=_0x463eeb[_0x1905ec(0x237)](/url\(#(.*)\)/,'url(#$1'+_0x516dd2[_0x1905ec(0x1a4)]+')'));})),_0x7e197d;}function F(_0x53ba5b,_0x41e616){const _0x40e76f=_0x13e218;var _0x2e3a46;const {defIds:_0x1772da}=_0x41e616;return!_0x1772da||_0x1772da[_0x40e76f(0x254)]===0x0?_0x53ba5b:_0x53ba5b[_0x40e76f(0x1d7)]===_0x40e76f(0x23b)&&((_0x2e3a46=_0x53ba5b[_0x40e76f(0x1cd)])!=null&&_0x2e3a46[_0x40e76f(0x254)])?{..._0x53ba5b,'children':_0x53ba5b[_0x40e76f(0x1cd)][_0x40e76f(0x1d9)](_0x388fbc=>typeof _0x388fbc[_0x40e76f(0x193)]['id']==_0x40e76f(0x1d0)&&_0x1772da&&_0x1772da[_0x40e76f(0x1ae)](_0x388fbc[_0x40e76f(0x193)]['id'])?{..._0x388fbc,'attrs':{..._0x388fbc[_0x40e76f(0x193)],'id':_0x388fbc[_0x40e76f(0x193)]['id']+_0x41e616[_0x40e76f(0x1a4)]}}:_0x388fbc)}:_0x53ba5b;}function H(){const _0x1e1d03=_0x13e218;return Math[_0x1e1d03(0x1bb)]()[_0x1e1d03(0x1c7)](0x24)[_0x1e1d03(0x19b)](0x2,0x8);}x[_0x13e218(0x1ee)]=_0x13e218(0x242);const V={'tag':_0x13e218(0x21e),'attrs':{'xmlns':_0x13e218(0x1a5),'fill':_0x13e218(0x19f),'viewBox':'0\x200\x2017\x2017','width':_0x13e218(0x1ad),'height':_0x13e218(0x1ad)},'children':[{'tag':'path','attrs':{'fill':_0x13e218(0x19e),'d':_0x13e218(0x246)}},{'tag':_0x13e218(0x204),'attrs':{'fill':_0x13e218(0x19e),'d':_0x13e218(0x21b),'fillRule':_0x13e218(0x1d6),'clipRule':_0x13e218(0x1d6)}}]},R=v[_0x13e218(0x1db)](function(_0x24c027,_0x82e228){const _0x9d5b86=_0x13e218;return v[_0x9d5b86(0x214)](x,Object[_0x9d5b86(0x1f1)]({},_0x24c027,{'id':_0x9d5b86(0x191),'ref':_0x82e228,'icon':V}));});R[_0x13e218(0x1ee)]=_0x13e218(0x1ed);class E extends o['Disposable']{constructor(){const _0x5ba58e=_0x13e218;super(...arguments),_(this,_0x5ba58e(0x22f),new Set()),_(this,'_reporters',new Set());}[_0x13e218(0x222)](_0x403fa6){const _0x303137=_0x13e218;return this['_sharedOperations']['add'](_0x403fa6),o[_0x303137(0x185)](()=>this[_0x303137(0x22f)][_0x303137(0x1ff)](_0x403fa6));}[_0x13e218(0x1d1)](_0x5cf299){const _0x30add5=_0x13e218;return this[_0x30add5(0x217)][_0x30add5(0x1ca)](_0x5cf299),o[_0x30add5(0x185)](()=>this[_0x30add5(0x217)][_0x30add5(0x1ff)](_0x5cf299));}[_0x13e218(0x192)](_0x2d0200){const _0x3cac4a=_0x13e218;return this[_0x3cac4a(0x22f)]['has'](_0x2d0200);}[_0x13e218(0x223)](_0x50a7d3){const _0x190e70=_0x13e218;return Array['from'](this['_reporters'])[_0x190e70(0x1d9)](_0x26fa38=>_0x26fa38(_0x50a7d3));}}var M=Object[_0x13e218(0x1e9)],P=(_0x48cec1,_0x3b98b2,_0xff5998,_0x233478)=>{const _0x1d6da0=_0x13e218;for(var _0x2a860d=_0x233478>0x1?void 0x0:_0x233478?M(_0x3b98b2,_0xff5998):_0x3b98b2,_0x3922f6=_0x48cec1[_0x1d6da0(0x254)]-0x1,_0x376ba6;_0x3922f6>=0x0;_0x3922f6--)(_0x376ba6=_0x48cec1[_0x3922f6])&&(_0x2a860d=_0x376ba6(_0x2a860d)||_0x2a860d);return _0x2a860d;},S=(_0x33e3c4,_0xcbdf6)=>(_0x465bda,_0x517489)=>_0xcbdf6(_0x465bda,_0x517489,_0x33e3c4);exports['LiveShareController']=class extends o[_0x13e218(0x1ce)]{constructor(_0x27583b,_0x5ce359,_0x1069a6){const _0x4cafab=_0x13e218;super(),_(this,_0x4cafab(0x231),new Map()),(this[_0x4cafab(0x1a0)]=_0x27583b,this[_0x4cafab(0x220)]=_0x5ce359,this[_0x4cafab(0x1c1)]=_0x1069a6,this[_0x4cafab(0x23e)]());}async[_0x13e218(0x190)](_0x48ac51){const _0x556d13=_0x13e218;return this[_0x556d13(0x231)][_0x556d13(0x1e0)](_0x48ac51)||await this['_startLiveShareCoordinator'](_0x48ac51),this['_entities'][_0x556d13(0x1e6)](_0x48ac51);}[_0x13e218(0x23c)](_0x26d2d1){const _0x555585=_0x13e218;var _0x9536e5;return(_0x9536e5=this['_entities'][_0x555585(0x1e6)](_0x26d2d1))!=null?_0x9536e5:null;}['_init'](){const _0x2ceec1=_0x13e218;this[_0x2ceec1(0x1a0)][_0x2ceec1(0x23d)](o['UniverInstanceType'][_0x2ceec1(0x1eb)])[_0x2ceec1(0x1e4)](I[_0x2ceec1(0x1a8)](this['dispose$']))[_0x2ceec1(0x208)](async _0x31fa85=>{const _0x4d7e44=_0x2ceec1,_0x19b430=_0x31fa85['getUnitId']();this['_entities'][_0x4d7e44(0x1e0)](_0x19b430)||this[_0x4d7e44(0x1e5)](_0x19b430);}),this[_0x2ceec1(0x1a0)][_0x2ceec1(0x1d5)](o[_0x2ceec1(0x240)][_0x2ceec1(0x1eb)])[_0x2ceec1(0x1e4)](I[_0x2ceec1(0x1a8)](this['dispose$']))['subscribe'](_0x1b6734=>{const _0x879aee=_0x2ceec1,_0x4d11d0=_0x1b6734[_0x879aee(0x1a9)](),_0x4973b1=this[_0x879aee(0x231)][_0x879aee(0x1e6)](_0x4d11d0);_0x4973b1==null||_0x4973b1['dispose']();});}async[_0x13e218(0x1e5)](_0x2bb41d){const _0x4d1b33=_0x13e218,_0x293fbc=await this['_collabSessionService'][_0x4d1b33(0x18f)](_0x2bb41d),_0xe44f1a=this[_0x4d1b33(0x220)][_0x4d1b33(0x1e8)](exports['LiveShareCoordinator'],_0x2bb41d,_0x293fbc);return _0xe44f1a['init'](),this[_0x4d1b33(0x231)][_0x4d1b33(0x1de)](_0x2bb41d,_0xe44f1a),_0xe44f1a;}},exports[_0x13e218(0x22e)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x13e218(0x197)](o[_0x13e218(0x24f)])),S(0x2,o['Inject'](b[_0x13e218(0x18a)]))],exports[_0x13e218(0x22e)]);function _0xfffd(_0xf74505,_0x37df18){_0xf74505=_0xf74505-0x182;const _0x173dc6=_0x173d();let _0xfffd4a=_0x173dc6[_0xf74505];return _0xfffd4a;}var u=(_0x4bc861=>(_0x4bc861[_0x13e218(0x187)]=_0x13e218(0x256),_0x4bc861[_0x13e218(0x210)]=_0x13e218(0x1c9),_0x4bc861[_0x13e218(0x1f3)]=_0x13e218(0x23a),_0x4bc861['NOT_FOLLOWING']=_0x13e218(0x1b2),_0x4bc861['PRESENTING']='presenting',_0x4bc861))(u||{});const k=_0x13e218(0x1ec),q=0xc8;exports[_0x13e218(0x1bf)]=class extends o['RxDisposable']{constructor(_0x4d7720,_0x57ccbb,_0x14e275,_0x310038,_0x6886fb){const _0x263e48=_0x13e218;super(),_(this,_0x263e48(0x1dd),new O[(_0x263e48(0x1fb))](_0x263e48(0x1c9))),_(this,_0x263e48(0x19d),this['_status$'][_0x263e48(0x24d)]()),_(this,'_init',!0x1),_(this,_0x263e48(0x1cf),null),_(this,_0x263e48(0x18e),null),(this[_0x263e48(0x189)]=_0x4d7720,this[_0x263e48(0x1e1)]=_0x57ccbb,this[_0x263e48(0x196)]=_0x14e275,this[_0x263e48(0x1f7)]=_0x310038,this['_commandService']=_0x6886fb);}get['_status'](){const _0x596331=_0x13e218;return this[_0x596331(0x1dd)]['getValue']();}['dispose'](){const _0x422308=_0x13e218;var _0x399799;(_0x399799=this[_0x422308(0x1cf)])==null||_0x399799[_0x422308(0x1b8)](),this[_0x422308(0x1dd)]['next'](_0x422308(0x1c9)),this[_0x422308(0x1dd)][_0x422308(0x207)]();}[_0x13e218(0x206)](){const _0x38db39=_0x13e218;return this[_0x38db39(0x248)];}[_0x13e218(0x201)](){const _0x558961=_0x13e218;this['_init']||(this[_0x558961(0x23e)]=!0x0,this[_0x558961(0x1e1)][_0x558961(0x18b)]['pipe'](I[_0x558961(0x1a8)](this[_0x558961(0x226)]))[_0x558961(0x208)](_0x18d992=>{const _0x19bbdc=_0x558961;switch(_0x18d992){case b[_0x19bbdc(0x238)][_0x19bbdc(0x187)]:this['_handleOffline']();break;case b[_0x19bbdc(0x238)][_0x19bbdc(0x1a2)]:this[_0x19bbdc(0x1c5)]();break;}}),this[_0x558961(0x1e1)][_0x558961(0x213)][_0x558961(0x1e4)](I['takeUntil'](this[_0x558961(0x226)]))[_0x558961(0x208)](_0x416b83=>{const _0x31d3c0=_0x558961,{eventID:_0x4a92ff}=_0x416b83;switch(_0x4a92ff){case d[_0x31d3c0(0x1bc)][_0x31d3c0(0x24e)]:this[_0x31d3c0(0x1b5)](_0x416b83);break;case d['CollaborationEvent'][_0x31d3c0(0x20c)]:this[_0x31d3c0(0x19a)](_0x416b83);break;case d[_0x31d3c0(0x1bc)][_0x31d3c0(0x186)]:this[_0x31d3c0(0x1b4)]();break;case d[_0x31d3c0(0x1bc)][_0x31d3c0(0x198)]:this[_0x31d3c0(0x21d)](_0x416b83);break;}}));}['tryStartPresenting'](){const _0x11f365=_0x13e218;this[_0x11f365(0x1e1)]['send']({'eventID':d[_0x11f365(0x1bc)][_0x11f365(0x21a)],'data':{'unitID':this[_0x11f365(0x189)],'userID':this[_0x11f365(0x1e1)][_0x11f365(0x253)]()}},this[_0x11f365(0x189)]);}[_0x13e218(0x1ac)](){const _0x5c8add=_0x13e218;this[_0x5c8add(0x248)]==='presenting'&&(this['_status$'][_0x5c8add(0x20d)](_0x5c8add(0x1c9)),this[_0x5c8add(0x1e1)][_0x5c8add(0x1f6)]({'eventID':d[_0x5c8add(0x1bc)][_0x5c8add(0x186)],'data':{'unitID':this['_unitID']}},this[_0x5c8add(0x189)]));}[_0x13e218(0x241)](){const _0x5a49de=_0x13e218;this[_0x5a49de(0x248)]===_0x5a49de(0x1b2)&&(this['_status$'][_0x5a49de(0x20d)]('following'),this[_0x5a49de(0x1a1)]());}[_0x13e218(0x247)](){const _0x436933=_0x13e218;this[_0x436933(0x248)]===_0x436933(0x23a)&&this[_0x436933(0x1a6)]();}['_handleNewHost'](_0x17a171){const _0x4032e8=_0x13e218,{presenter:_0x5a007c}=_0x17a171[_0x4032e8(0x243)],_0x466589=this[_0x4032e8(0x1e1)][_0x4032e8(0x253)]();this[_0x4032e8(0x18e)]=_0x5a007c,_0x5a007c===_0x466589?(this['_stopFollowing'](),this[_0x4032e8(0x212)]()):this[_0x4032e8(0x248)]!==_0x4032e8(0x1b2)&&(this[_0x4032e8(0x1df)](),this[_0x4032e8(0x1a1)]());}[_0x13e218(0x245)](){const _0x4a3514=_0x13e218,_0x1faf75={'eventID':d[_0x4a3514(0x1bc)][_0x4a3514(0x203)]};this['_collabSession'][_0x4a3514(0x1f6)](_0x1faf75,this[_0x4a3514(0x189)]);}['_handleTerminate'](){const _0x10de2f=_0x13e218;this['_presenter']=null,this[_0x10de2f(0x248)]!==_0x10de2f(0x1a7)&&this['_beIdle']();}[_0x13e218(0x21d)](_0xb7cc97){const _0x5856d1=_0x13e218;if(this['_status']===_0x5856d1(0x23a)&&this['_presenter']===_0xb7cc97['data']['memberID']){const _0x146ed9=d[_0x5856d1(0x1fe)](_0xb7cc97[_0x5856d1(0x243)])['mutations'][_0x5856d1(0x229)]()[_0x5856d1(0x24a)](_0x1681fb=>_0x1681fb['id']===C[_0x5856d1(0x232)]['id']);if(_0x146ed9){const _0x6c731a=_0x146ed9[_0x5856d1(0x1aa)][_0x5856d1(0x230)],_0x5ac0c5=_0x146ed9[_0x5856d1(0x1aa)][_0x5856d1(0x225)]['id'];setTimeout(()=>{const _0x205c7b=_0x5856d1;this[_0x205c7b(0x1da)][_0x205c7b(0x239)](C[_0x205c7b(0x1dc)]['id'],{'unitId':_0x6c731a,'subUnitId':_0x5ac0c5},{'fromCollab':!0x0});});}}}[_0x13e218(0x212)](){const _0x3407d7=_0x13e218;this[_0x3407d7(0x1dd)][_0x3407d7(0x20d)]('presenting');const _0x2658bf=new Map(),_0x40d695=this[_0x3407d7(0x1cf)]=new o[(_0x3407d7(0x1f2))]();_0x40d695[_0x3407d7(0x1ca)](o['toDisposable'](()=>{const _0x4d2a5b=_0x3407d7;_0x2658bf[_0x4d2a5b(0x195)](_0x4d0415=>_0x4d0415[_0x4d2a5b(0x207)]()),_0x2658bf[_0x4d2a5b(0x182)]();})),_0x40d695[_0x3407d7(0x1ca)](this['_commandService'][_0x3407d7(0x244)](_0x29f20f=>{const _0x4e86e9=_0x3407d7;var _0x4b6136;if(_0x29f20f[_0x4e86e9(0x22b)]!==o[_0x4e86e9(0x1e2)][_0x4e86e9(0x1c4)]||!this[_0x4e86e9(0x1f7)][_0x4e86e9(0x192)](_0x29f20f['id']))return;const {id:_0x5b4d88}=_0x29f20f;let _0x13d1bb;_0x2658bf[_0x4e86e9(0x1e0)](_0x5b4d88)?_0x13d1bb=_0x2658bf[_0x4e86e9(0x1e6)](_0x5b4d88):(_0x13d1bb=new O[(_0x4e86e9(0x215))](),_0x2658bf['set'](_0x5b4d88,_0x13d1bb),_0x13d1bb[_0x4e86e9(0x1e4)](I[_0x4e86e9(0x1cb)]((_0x4b6136=this[_0x4e86e9(0x196)][_0x4e86e9(0x1b1)](k))!=null?_0x4b6136:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x178e56=>{const _0x34b9c5=_0x4e86e9;this['_collabSession'][_0x34b9c5(0x1f6)]({'eventID':d[_0x34b9c5(0x1bc)][_0x34b9c5(0x20c)],'data':{'unitID':this[_0x34b9c5(0x189)],'operations':{[_0x178e56['id']]:{'id':_0x178e56['id'],'params':JSON[_0x34b9c5(0x233)](_0x178e56[_0x34b9c5(0x1aa)])}}}},this[_0x34b9c5(0x189)]);})),_0x13d1bb[_0x4e86e9(0x20d)](_0x29f20f);})),this['_liveShareService'][_0x3407d7(0x223)](this['_unitID'])[_0x3407d7(0x195)](_0x4b99a3=>this[_0x3407d7(0x1e1)][_0x3407d7(0x1f6)]({'eventID':d[_0x3407d7(0x1bc)][_0x3407d7(0x20c)],'data':{'unitID':this['_unitID'],'operations':{[_0x4b99a3['id']]:{'id':_0x4b99a3['id'],'params':JSON['stringify'](_0x4b99a3[_0x3407d7(0x1aa)])}}}},this['_unitID']));}[_0x13e218(0x1df)](){const _0x32b449=_0x13e218;var _0x4e213c;this[_0x32b449(0x1dd)][_0x32b449(0x20d)](_0x32b449(0x1c9)),(_0x4e213c=this[_0x32b449(0x1cf)])==null||_0x4e213c['dispose'](),this[_0x32b449(0x1cf)]=null;}[_0x13e218(0x1a1)](){const _0x12f7ce=_0x13e218;var _0x2b6166;(_0x2b6166=this[_0x12f7ce(0x1cf)])==null||_0x2b6166['dispose'](),this[_0x12f7ce(0x1dd)]['next'](_0x12f7ce(0x23a));}[_0x13e218(0x20e)](){const _0x38c02f=_0x13e218;var _0x311abb;this[_0x38c02f(0x1dd)]['next'](_0x38c02f(0x1c9)),(_0x311abb=this[_0x38c02f(0x1cf)])==null||_0x311abb[_0x38c02f(0x1b8)](),this['_commandDisposable']=null;}[_0x13e218(0x1a6)](){const _0x3a2077=_0x13e218;var _0x4c797f;this['_status$']['next']('not-following'),(_0x4c797f=this[_0x3a2077(0x1cf)])==null||_0x4c797f['dispose']();}[_0x13e218(0x19a)](_0x2ff981){const _0x30e60a=_0x13e218;if([_0x30e60a(0x1a7),'not-following',_0x30e60a(0x256)][_0x30e60a(0x1ae)](this[_0x30e60a(0x248)])||!_0x2ff981[_0x30e60a(0x243)][_0x30e60a(0x211)]||_0x2ff981[_0x30e60a(0x243)][_0x30e60a(0x211)]===this[_0x30e60a(0x1e1)]['getMemberID']())return;this[_0x30e60a(0x248)]===_0x30e60a(0x1c9)&&this['_startFollowing']();const _0xd25721=_0x2ff981[_0x30e60a(0x243)][_0x30e60a(0x1c0)];Object['values'](_0xd25721)['forEach'](_0x195a62=>{const _0x30f89b=_0x30e60a;this[_0x30f89b(0x1da)]['executeCommand'](_0x195a62['id'],_0x195a62[_0x30f89b(0x1aa)]?JSON['parse'](_0x195a62[_0x30f89b(0x1aa)]):null,{'fromCollab':!0x0});});}[_0x13e218(0x1f8)](){const _0x2a1723=_0x13e218;var _0x2ecec1;this[_0x2a1723(0x1dd)][_0x2a1723(0x20d)](_0x2a1723(0x256)),(_0x2ecec1=this[_0x2a1723(0x1cf)])==null||_0x2ecec1[_0x2a1723(0x1b8)]();}[_0x13e218(0x1c5)](){const _0x1e5867=_0x13e218;this[_0x1e5867(0x1dd)][_0x1e5867(0x20d)](_0x1e5867(0x1c9)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x13e218(0x1bf)]);function $(){const _0x424576=_0x13e218,_0x452e49=p[_0x424576(0x1c8)](exports[_0x424576(0x22e)]),_0x8d27bb=p[_0x424576(0x1c8)](o[_0x424576(0x24b)]),_0x171f10=p['useObservable'](()=>_0x8d27bb[_0x424576(0x22c)](o[_0x424576(0x240)][_0x424576(0x1eb)]),void 0x0,!0x1,[]),[_0x13a99d,_0x3aa5a7]=v[_0x424576(0x236)](null),[_0x43aeb8,_0x156c75]=v[_0x424576(0x236)](u[_0x424576(0x210)]),_0x4210d4=v[_0x424576(0x1b0)](null);return v['useEffect'](()=>(_0x171f10&&_0x452e49[_0x424576(0x190)](_0x171f10[_0x424576(0x1a9)]())[_0x424576(0x1c2)](_0x26172f=>{const _0x5b4fa5=_0x424576;_0x3aa5a7(_0x26172f),_0x4210d4[_0x5b4fa5(0x224)]=_0x26172f['status$'][_0x5b4fa5(0x208)](_0x51c451=>{_0x156c75(_0x51c451);});}),()=>{const _0x4fbe0e=_0x424576;var _0x250a97;(_0x250a97=_0x4210d4[_0x4fbe0e(0x224)])==null||_0x250a97[_0x4fbe0e(0x1c3)](),_0x4210d4[_0x4fbe0e(0x224)]=null;}),[_0x171f10,_0x452e49]),_0x13a99d?l['jsx'](f[_0x424576(0x1fa)],{'align':_0x424576(0x1bd),'disabled':_0x43aeb8===u[_0x424576(0x187)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x424576(0x1fc)](W,{'status':_0x43aeb8,'coordinator':_0x13a99d}),'children':l[_0x424576(0x1fc)](_0x424576(0x1e7),{'className':f['clsx'](_0x424576(0x1be),{'univer-cursor-not-allowed':_0x43aeb8===u[_0x424576(0x187)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x43aeb8!==u[_0x424576(0x187)]}),'type':_0x424576(0x1e7),'children':l[_0x424576(0x1fc)](R,{'className':'univer-size-4'})})}):null;}function W(_0x52237d){const _0x3c2987=_0x13e218,{status:_0x4c4247,coordinator:_0x403487}=_0x52237d;switch(_0x4c4247){case u[_0x3c2987(0x210)]:return l[_0x3c2987(0x1fc)](G,{'coordinator':_0x403487});case u['FOLLOWING']:return l[_0x3c2987(0x1fc)](B,{'coordinator':_0x403487});case u[_0x3c2987(0x235)]:return l[_0x3c2987(0x1fc)](Y,{'coordinator':_0x403487});case u[_0x3c2987(0x187)]:return l[_0x3c2987(0x1fc)](J,{});case u[_0x3c2987(0x255)]:return l['jsx'](Z,{'coordinator':_0x403487});default:return null;}}function G(_0x240f28){const _0x56bd2e=_0x13e218,{coordinator:_0x5c4880}=_0x240f28;return l[_0x56bd2e(0x1d8)](l[_0x56bd2e(0x1b9)],{'children':[l[_0x56bd2e(0x1fc)](_0x56bd2e(0x221),{'className':_0x56bd2e(0x1f4),'children':'Present\x20this\x20document'}),l[_0x56bd2e(0x1fc)](f[_0x56bd2e(0x1ab)],{'onClick':()=>_0x5c4880['tryStartPresenting'](),'children':_0x56bd2e(0x202)})]});}function B(_0x4a4d1a){const _0x15db85=_0x13e218,{coordinator:_0x1c52c5}=_0x4a4d1a;return l[_0x15db85(0x1d8)](l['Fragment'],{'children':[l[_0x15db85(0x1fc)](_0x15db85(0x221),{'className':_0x15db85(0x1f4),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x15db85(0x1fc)](f['Button'],{'onClick':()=>_0x1c52c5[_0x15db85(0x247)](),'children':'Stop\x20following'})]});}function Y(_0x3f4ef3){const _0x10ccd9=_0x13e218,{coordinator:_0x5b7be3}=_0x3f4ef3;return l[_0x10ccd9(0x1d8)](l['Fragment'],{'children':[l[_0x10ccd9(0x1fc)](_0x10ccd9(0x221),{'className':_0x10ccd9(0x1f4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x10ccd9(0x1fc)](f[_0x10ccd9(0x1ab)],{'variant':_0x10ccd9(0x205),'onClick':()=>_0x5b7be3['startFollowing'](),'children':_0x10ccd9(0x22a)})]});}function Z(_0x271aa9){const _0x5f39a1=_0x13e218,{coordinator:_0x4f2518}=_0x271aa9;return l[_0x5f39a1(0x1d8)](l[_0x5f39a1(0x1b9)],{'children':[l[_0x5f39a1(0x1fc)](_0x5f39a1(0x221),{'className':_0x5f39a1(0x1f4),'children':_0x5f39a1(0x209)}),l[_0x5f39a1(0x1fc)](f[_0x5f39a1(0x1ab)],{'variant':'default','onClick':()=>_0x4f2518[_0x5f39a1(0x1ac)](),'children':_0x5f39a1(0x1f9)})]});}function J(){const _0x420893=_0x13e218;return l[_0x420893(0x1fc)](l[_0x420893(0x1b9)],{'children':_0x420893(0x24c)});}var K=Object[_0x13e218(0x1e9)],z=(_0x1fcb00,_0x59bce4,_0x1be625,_0x5712db)=>{for(var _0xa0a3e7=_0x5712db>0x1?void 0x0:_0x5712db?K(_0x59bce4,_0x1be625):_0x59bce4,_0x2e35ac=_0x1fcb00['length']-0x1,_0x5c1ac2;_0x2e35ac>=0x0;_0x2e35ac--)(_0x5c1ac2=_0x1fcb00[_0x2e35ac])&&(_0xa0a3e7=_0x5c1ac2(_0xa0a3e7)||_0xa0a3e7);return _0xa0a3e7;},L=(_0x231e6f,_0xddec6e)=>(_0x3ded38,_0x47c025)=>_0xddec6e(_0x3ded38,_0x47c025,_0x231e6f);exports[_0x13e218(0x20f)]=class extends o[_0x13e218(0x216)]{constructor(_0x1cfc88,_0x2616fa){const _0x184b95=_0x13e218;super(),this[_0x184b95(0x220)]=_0x1cfc88,this[_0x184b95(0x228)]=_0x2616fa,this[_0x184b95(0x1af)]();}['_mountLiveShare'](){const _0x2c04c5=_0x13e218;this[_0x2c04c5(0x1cc)](this[_0x2c04c5(0x228)]['registerComponent'](p['BuiltInUIPart'][_0x2c04c5(0x1b6)],()=>p[_0x2c04c5(0x252)]($,this[_0x2c04c5(0x220)])));}},exports[_0x13e218(0x20f)]=z([L(0x0,o[_0x13e218(0x197)](o[_0x13e218(0x24f)])),L(0x1,p[_0x13e218(0x22d)])],exports[_0x13e218(0x20f)]);const Q='live-share.config',w={};function _0x173d(){const _0xc91168=['6294974xjsJFR','getTypeOfUnitDisposed$','evenodd','tag','jsxs','map','_commandService','forwardRef','SetWorksheetActiveOperation','_status$','set','_stopPresenting','has','_collabSession','CommandType','onRendered','pipe','_startLiveShareCoordinator','get','button','createInstance','getOwnPropertyDescriptor','defIds','UNIVER_SHEET','SAME_OPERATION_SHARE_INTERVAL','LiveShareIcon','displayName','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','assign','DisposableCollection','FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','1665128FuuFsN','send','_liveShareService','_handleOffline','Stop\x20presenting','Dropdown','BehaviorSubject','jsx','1594506bjjNTQ','parseProtocolChangeset','delete','symbol','init','Start','LIVESHARE_FETCH_OPERATIONS','path','text','getStatus','complete','subscribe','You\x27re\x20presenting\x20the\x20document','7492544blceui','LiveShare','LIVESHARE_OPERATION','next','_beIdle','DesktopLiveShareController','IDLE','presenter','_startPresenting','event$','createElement','Subject','Disposable','_reporters','4662485ouFFgo','IConfigService','LIVESHARE_REQUEST_HOST','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','touchDependencies','_handleNewChangeSets','svg','pluginName','_injector','div','registerSharedOperation','getInitialStates','current','sheet','dispose$','_config','_uiPartsService','reverse','Start\x20following','type','getCurrentTypeOfUnit$','IUIPartsService','LiveShareController','_sharedOperations','unitId','_entities','InsertSheetMutation','stringify','override','NOT_FOLLOWING','useState','replace','SessionStatus','executeCommand','following','defs','getLiveShareCoordinatorSync','getTypeOfUnitAdded$','_init','setConfig','UniverInstanceType','startFollowing','UniverIcon','data','onCommandExecuted','_fetchOperations','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','stopFollowing','_status','LiveShareStatus','find','IUniverInstanceService','You\x27are\x20offline.','asObservable','LIVESHARE_NEW_HOST','Injector','fill','SetScrollOperation','connectInjector','getMemberID','length','PRESENTING','offline','clear','DependentOn','UniverLiveSharePlugin','toDisposable','LIVESHARE_TERMINATE','OFFLINE','defineProperty','_unitID','CollaborationSessionService','sessionStatus$','onStarting','UNIVER_UNKNOWN','_presenter','requireSession','getLiveShareCoordinator','live-share-icon','shouldShareOperation','attrs','univerjs-icon\x20univerjs-icon-','forEach','_configService','Inject','NEW_CHANGESETS','mask','_handleOperation','substring','11261826gvoPsY','status$','currentColor','none','_univerInstanceService','_startFollowing','ONLINE','toStringTag','idSuffix','http://www.w3.org/2000/svg','_stopFollowing','presenting','takeUntil','getUnitId','params','Button','stopPresenting','1em','includes','_mountLiveShare','useRef','getConfig','not-following','url(#$1','_handleTerminate','_handleNewHost','HEADER_MENU','6JsxlKs','dispose','Fragment','2QpKtMU','random','CollaborationEvent','end','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShareCoordinator','operations','_collabSessionService','then','unsubscribe','OPERATION','_handleOnline','xlink:href','toString','useDependency','idle','add','throttleTime','disposeWithMe','children','RxDisposable','_commandDisposable','string','registerInitialStateReporter','entries','818962PjeZUt'];_0x173d=function(){return _0xc91168;};return _0x173d();}var X=Object[_0x13e218(0x1e9)],ee=(_0x1068f3,_0xac6c24,_0x5128b6,_0x1bc46b)=>{const _0x50816c=_0x13e218;for(var _0x252b2f=_0x1bc46b>0x1?void 0x0:_0x1bc46b?X(_0xac6c24,_0x5128b6):_0xac6c24,_0x21497c=_0x1068f3[_0x50816c(0x254)]-0x1,_0x35627a;_0x21497c>=0x0;_0x21497c--)(_0x35627a=_0x1068f3[_0x21497c])&&(_0x252b2f=_0x35627a(_0x252b2f)||_0x252b2f);return _0x252b2f;},te=(_0x4b1411,_0x4b5b8c)=>(_0x308fe8,_0x4e82a8)=>_0x4b5b8c(_0x308fe8,_0x4e82a8,_0x4b1411);let m=class extends o[_0x13e218(0x216)]{constructor(_0x34b571){const _0x55740a=_0x13e218;super(),this['_liveShareService']=_0x34b571,this[_0x55740a(0x23e)]();}['_init'](){const _0x4260a4=_0x13e218;[D['SetZoomRatioOperation']['id'],D[_0x4260a4(0x251)]['id'],C[_0x4260a4(0x1dc)]['id']][_0x4260a4(0x195)](_0x25db9f=>{const _0x25ad7f=_0x4260a4;this[_0x25ad7f(0x1cc)](this['_liveShareService'][_0x25ad7f(0x222)](_0x25db9f));});}};m=ee([te(0x0,o[_0x13e218(0x197)](E))],m);var ie=Object[_0x13e218(0x188)],se=Object[_0x13e218(0x1e9)],ne=(_0x3797a8,_0x41894c,_0x22dbe8)=>_0x41894c in _0x3797a8?ie(_0x3797a8,_0x41894c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22dbe8}):_0x3797a8[_0x41894c]=_0x22dbe8,re=(_0x1fe3e7,_0x55edfa,_0x1f8625,_0xd90d94)=>{const _0x45b3d4=_0x13e218;for(var _0x594aa2=_0xd90d94>0x1?void 0x0:_0xd90d94?se(_0x55edfa,_0x1f8625):_0x55edfa,_0x35c11a=_0x1fe3e7[_0x45b3d4(0x254)]-0x1,_0x2c5e19;_0x35c11a>=0x0;_0x35c11a--)(_0x2c5e19=_0x1fe3e7[_0x35c11a])&&(_0x594aa2=_0x2c5e19(_0x594aa2)||_0x594aa2);return _0x594aa2;},N=(_0x43d197,_0x3a751c)=>(_0x5acd55,_0x76c020)=>_0x3a751c(_0x5acd55,_0x76c020,_0x43d197),A=(_0x255dee,_0x1620e3,_0x34af97)=>ne(_0x255dee,typeof _0x1620e3!=_0x13e218(0x200)?_0x1620e3+'':_0x1620e3,_0x34af97);const oe=_0x13e218(0x1f0);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x3ec8ca=w,_0x32cb57,_0x4beb93){const _0x40f5f6=_0x13e218;super(),this[_0x40f5f6(0x227)]=_0x3ec8ca,this[_0x40f5f6(0x220)]=_0x32cb57,this[_0x40f5f6(0x196)]=_0x4beb93;const {..._0x55f2c2}=o['merge']({},w,this[_0x40f5f6(0x227)]);this['_configService'][_0x40f5f6(0x23f)](Q,_0x55f2c2);}[_0x13e218(0x18c)](){const _0x122c06=_0x13e218;o['registerDependencies'](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x122c06(0x22e)]],[m],[exports[_0x122c06(0x20f)]]],this[_0x122c06(0x227)][_0x122c06(0x234)])),o['touchDependencies'](this['_injector'],[[m]]);}[_0x13e218(0x1e3)](){const _0x408125=_0x13e218;o[_0x408125(0x21c)](this[_0x408125(0x220)],[[exports[_0x408125(0x20f)]]]);}},A(exports[_0x13e218(0x184)],_0x13e218(0x22b),o[_0x13e218(0x240)][_0x13e218(0x18d)]),A(exports[_0x13e218(0x184)],_0x13e218(0x21f),oe),exports[_0x13e218(0x184)]=re([o[_0x13e218(0x183)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x13e218(0x197)](o['Injector'])),N(0x2,o[_0x13e218(0x219)])],exports[_0x13e218(0x184)]),exports[_0x13e218(0x20b)]=$,exports['LiveShareService']=E,exports[_0x13e218(0x249)]=u;
|
|
1
|
+
'use strict';const _0x490488=_0x3b91;(function(_0xf5f4,_0x52bda8){const _0x499941=_0x3b91,_0x24a186=_0xf5f4();while(!![]){try{const _0x560e24=parseInt(_0x499941(0x13f))/0x1*(-parseInt(_0x499941(0xd4))/0x2)+-parseInt(_0x499941(0x6e))/0x3*(-parseInt(_0x499941(0xaf))/0x4)+-parseInt(_0x499941(0xe5))/0x5+parseInt(_0x499941(0xcd))/0x6+-parseInt(_0x499941(0x92))/0x7+-parseInt(_0x499941(0x12c))/0x8+-parseInt(_0x499941(0xa7))/0x9*(-parseInt(_0x499941(0xec))/0xa);if(_0x560e24===_0x52bda8)break;else _0x24a186['push'](_0x24a186['shift']());}catch(_0x3e1198){_0x24a186['push'](_0x24a186['shift']());}}}(_0x51bc,0xf3b75));var T=Object[_0x490488(0xc2)],U=(_0x148702,_0x5c9d3d,_0x1e5e40)=>_0x5c9d3d in _0x148702?T(_0x148702,_0x5c9d3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e5e40}):_0x148702[_0x5c9d3d]=_0x1e5e40,_=(_0x184d22,_0x59c41c,_0x1de69c)=>U(_0x184d22,typeof _0x59c41c!='symbol'?_0x59c41c+'':_0x59c41c,_0x1de69c);Object[_0x490488(0xc2)](exports,Symbol[_0x490488(0x124)],{'value':_0x490488(0x143)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x195ae9,..._0xf516aa}){const _0x5056ba=_0x490488,{icon:_0x29d347,id:_0x2c6eee,className:_0x3d7d3f,extend:_0x2a9f2d,..._0xfe84f0}=_0xf516aa,_0x21179e=(_0x5056ba(0xfc)+_0x2c6eee+'\x20'+(_0x3d7d3f||''))['trim'](),_0x4c513b=v[_0x5056ba(0xce)]('_'+H());return j(_0x29d347,''+_0x2c6eee,{'defIds':_0x29d347[_0x5056ba(0xbd)],'idSuffix':_0x4c513b['current']},{'ref':_0x195ae9,'className':_0x21179e,..._0xfe84f0},_0x2a9f2d);}function j(_0x335eb4,_0x1699e6,_0x55f700,_0x192332,_0x146781){const _0x116304=_0x490488;return v[_0x116304(0x98)](_0x335eb4[_0x116304(0xc6)],{'key':_0x1699e6,...y(_0x335eb4,_0x55f700,_0x146781),..._0x192332},(F(_0x335eb4,_0x55f700)[_0x116304(0xaa)]||[])[_0x116304(0x85)]((_0x15478b,_0x4dbcac)=>j(_0x15478b,_0x1699e6+'-'+_0x335eb4[_0x116304(0xc6)]+'-'+_0x4dbcac,_0x55f700,void 0x0,_0x146781)));}function y(_0xcadb42,_0x25c07a,_0x2affc1){const _0x1d2cc9=_0x490488,_0x2c3490={..._0xcadb42[_0x1d2cc9(0xdf)]};_0x2affc1!=null&&_0x2affc1[_0x1d2cc9(0x93)]&&_0x2c3490[_0x1d2cc9(0x97)]===_0x1d2cc9(0x93)&&(_0x2c3490['fill']=_0x2affc1[_0x1d2cc9(0x93)]),_0xcadb42[_0x1d2cc9(0xc6)]===_0x1d2cc9(0xf7)&&_0x2c3490['id']&&(_0x2c3490['id']=_0x2c3490['id']+_0x25c07a[_0x1d2cc9(0x11a)]),Object[_0x1d2cc9(0xb7)](_0x2c3490)[_0x1d2cc9(0x9c)](([_0x1925a4,_0x54313e])=>{const _0x5f53de=_0x1d2cc9;_0x1925a4==='mask'&&typeof _0x54313e=='string'&&(_0x2c3490[_0x1925a4]=_0x54313e[_0x5f53de(0xf3)](/url\(#(.*)\)/,_0x5f53de(0xc0)+_0x25c07a[_0x5f53de(0x11a)]+')'));});const {defIds:_0x1ee689}=_0x25c07a;return!_0x1ee689||_0x1ee689[_0x1d2cc9(0x79)]===0x0||(_0xcadb42[_0x1d2cc9(0xc6)]===_0x1d2cc9(0xd0)&&_0x2c3490[_0x1d2cc9(0x134)]&&(_0x2c3490['xlink:href']=_0x2c3490['xlink:href']+_0x25c07a['idSuffix']),Object[_0x1d2cc9(0xb7)](_0x2c3490)['forEach'](([_0x45aaf6,_0x5df890])=>{const _0x39cf8f=_0x1d2cc9;typeof _0x5df890==_0x39cf8f(0xa1)&&(_0x2c3490[_0x45aaf6]=_0x5df890[_0x39cf8f(0xf3)](/url\(#(.*)\)/,'url(#$1'+_0x25c07a[_0x39cf8f(0x11a)]+')'));})),_0x2c3490;}function F(_0xdf1b7c,_0x254008){const _0x24d422=_0x490488;var _0x88790d;const {defIds:_0x4da16a}=_0x254008;return!_0x4da16a||_0x4da16a['length']===0x0?_0xdf1b7c:_0xdf1b7c['tag']===_0x24d422(0x75)&&((_0x88790d=_0xdf1b7c[_0x24d422(0xaa)])!=null&&_0x88790d['length'])?{..._0xdf1b7c,'children':_0xdf1b7c[_0x24d422(0xaa)][_0x24d422(0x85)](_0x1db5cc=>typeof _0x1db5cc[_0x24d422(0xdf)]['id']=='string'&&_0x4da16a&&_0x4da16a['includes'](_0x1db5cc[_0x24d422(0xdf)]['id'])?{..._0x1db5cc,'attrs':{..._0x1db5cc[_0x24d422(0xdf)],'id':_0x1db5cc[_0x24d422(0xdf)]['id']+_0x254008[_0x24d422(0x11a)]}}:_0x1db5cc)}:_0xdf1b7c;}function H(){const _0x113310=_0x490488;return Math['random']()[_0x113310(0x8e)](0x24)[_0x113310(0x8b)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x490488(0x7d),'attrs':{'xmlns':_0x490488(0xf9),'fill':_0x490488(0xe6),'viewBox':_0x490488(0x9e),'width':'1em','height':_0x490488(0x74)},'children':[{'tag':_0x490488(0xe2),'attrs':{'fill':_0x490488(0x110),'d':_0x490488(0xcf)}},{'tag':_0x490488(0xe2),'attrs':{'fill':'currentColor','d':_0x490488(0xc8),'fillRule':'evenodd','clipRule':_0x490488(0x109)}}]},R=v[_0x490488(0x116)](function(_0x4a9ff9,_0xe464b9){const _0xf70c76=_0x490488;return v[_0xf70c76(0x98)](x,Object[_0xf70c76(0x71)]({},_0x4a9ff9,{'id':_0xf70c76(0x11f),'ref':_0xe464b9,'icon':V}));});R['displayName']=_0x490488(0x10e);class E extends o[_0x490488(0xa0)]{constructor(){const _0xfd84f6=_0x490488;super(...arguments),_(this,_0xfd84f6(0x6d),new Set()),_(this,_0xfd84f6(0x76),new Set());}['registerSharedOperation'](_0x345d28){const _0x53ec1e=_0x490488;return this[_0x53ec1e(0x6d)][_0x53ec1e(0xe3)](_0x345d28),o[_0x53ec1e(0xd6)](()=>this['_sharedOperations'][_0x53ec1e(0xf6)](_0x345d28));}[_0x490488(0xd1)](_0x258995){const _0x4f1935=_0x490488;return this[_0x4f1935(0x76)][_0x4f1935(0xe3)](_0x258995),o['toDisposable'](()=>this[_0x4f1935(0x76)][_0x4f1935(0xf6)](_0x258995));}['shouldShareOperation'](_0x42f1f0){const _0x298a00=_0x490488;return this[_0x298a00(0x6d)][_0x298a00(0xfd)](_0x42f1f0);}[_0x490488(0x9b)](_0x5677c1){const _0x1e4a74=_0x490488;return Array['from'](this[_0x1e4a74(0x76)])[_0x1e4a74(0x85)](_0x5119d3=>_0x5119d3(_0x5677c1));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x5c1cde,_0x1d4411,_0x1c755b,_0x40e8c4)=>{const _0x267809=_0x490488;for(var _0x2c0188=_0x40e8c4>0x1?void 0x0:_0x40e8c4?M(_0x1d4411,_0x1c755b):_0x1d4411,_0x582e5d=_0x5c1cde[_0x267809(0x79)]-0x1,_0x5f428b;_0x582e5d>=0x0;_0x582e5d--)(_0x5f428b=_0x5c1cde[_0x582e5d])&&(_0x2c0188=_0x5f428b(_0x2c0188)||_0x2c0188);return _0x2c0188;},S=(_0x638bae,_0x4648b6)=>(_0x585dd8,_0x540ee3)=>_0x4648b6(_0x585dd8,_0x540ee3,_0x638bae);exports[_0x490488(0x7c)]=class extends o[_0x490488(0x13a)]{constructor(_0x263ae8,_0x59e386,_0x5059b2){const _0x4b79e6=_0x490488;super(),_(this,_0x4b79e6(0x112),new Map()),(this[_0x4b79e6(0x10b)]=_0x263ae8,this[_0x4b79e6(0x119)]=_0x59e386,this[_0x4b79e6(0x7b)]=_0x5059b2,this[_0x4b79e6(0xe9)]());}async[_0x490488(0x12f)](_0x4323d2){const _0x3106ea=_0x490488;return this['_entities']['has'](_0x4323d2)||await this[_0x3106ea(0x118)](_0x4323d2),this['_entities'][_0x3106ea(0x9f)](_0x4323d2);}[_0x490488(0x140)](_0x25e708){const _0x3abae5=_0x490488;var _0x384a3c;return(_0x384a3c=this[_0x3abae5(0x112)]['get'](_0x25e708))!=null?_0x384a3c:null;}[_0x490488(0xe9)](){const _0x149c69=_0x490488;this[_0x149c69(0x10b)]['getTypeOfUnitAdded$'](o[_0x149c69(0x6f)][_0x149c69(0xd8)])[_0x149c69(0xf5)](I[_0x149c69(0xb1)](this[_0x149c69(0xdb)]))[_0x149c69(0x113)](async _0x45197b=>{const _0xabb79f=_0x149c69,_0x44c8dc=_0x45197b[_0xabb79f(0xe4)]();this[_0xabb79f(0x112)][_0xabb79f(0xfd)](_0x44c8dc)||this[_0xabb79f(0x118)](_0x44c8dc);}),this[_0x149c69(0x10b)][_0x149c69(0x107)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x149c69(0xf5)](I['takeUntil'](this[_0x149c69(0xdb)]))[_0x149c69(0x113)](_0x340696=>{const _0x4b2e35=_0x149c69,_0x1cd521=_0x340696[_0x4b2e35(0xe4)](),_0x2ec39f=this['_entities'][_0x4b2e35(0x9f)](_0x1cd521);_0x2ec39f==null||_0x2ec39f[_0x4b2e35(0xfa)]();});}async['_startLiveShareCoordinator'](_0x5cdb13){const _0x5a29db=_0x490488,_0x2dced4=await this[_0x5a29db(0x7b)]['requireSession'](_0x5cdb13),_0xb5127c=this[_0x5a29db(0x119)][_0x5a29db(0x82)](exports['LiveShareCoordinator'],_0x5cdb13,_0x2dced4);return _0xb5127c[_0x5a29db(0xf4)](),this['_entities'][_0x5a29db(0x106)](_0x5cdb13,_0xb5127c),_0xb5127c;}},exports[_0x490488(0x7c)]=P([S(0x0,o[_0x490488(0xbf)]),S(0x1,o[_0x490488(0x115)](o[_0x490488(0xa8)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports[_0x490488(0x7c)]);var u=(_0x581a8b=>(_0x581a8b[_0x490488(0xa2)]=_0x490488(0xbe),_0x581a8b[_0x490488(0xe1)]=_0x490488(0x8f),_0x581a8b[_0x490488(0x8d)]=_0x490488(0xcb),_0x581a8b[_0x490488(0x91)]=_0x490488(0xc7),_0x581a8b['PRESENTING']=_0x490488(0xa3),_0x581a8b))(u||{});const k=_0x490488(0x130),q=0xc8;exports[_0x490488(0x7f)]=class extends o['RxDisposable']{constructor(_0x321647,_0x493ed6,_0x2a3de0,_0x219234,_0x28907f){const _0x4142cb=_0x490488;super(),_(this,_0x4142cb(0xad),new O[(_0x4142cb(0x99))]('idle')),_(this,_0x4142cb(0x138),this['_status$'][_0x4142cb(0x70)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x4142cb(0x128),null),(this['_unitID']=_0x321647,this['_collabSession']=_0x493ed6,this[_0x4142cb(0xa5)]=_0x2a3de0,this[_0x4142cb(0x13e)]=_0x219234,this[_0x4142cb(0x103)]=_0x28907f);}get[_0x490488(0xb9)](){const _0x9dd68f=_0x490488;return this[_0x9dd68f(0xad)][_0x9dd68f(0x10c)]();}[_0x490488(0xfa)](){const _0x466651=_0x490488;var _0x5165de;(_0x5165de=this[_0x466651(0x9a)])==null||_0x5165de[_0x466651(0xfa)](),this[_0x466651(0xad)]['next'](_0x466651(0x8f)),this[_0x466651(0xad)][_0x466651(0x100)]();}[_0x490488(0xe8)](){const _0x5ac4ea=_0x490488;return this[_0x5ac4ea(0xb9)];}[_0x490488(0xf4)](){const _0xfc2b72=_0x490488;this[_0xfc2b72(0xe9)]||(this[_0xfc2b72(0xe9)]=!0x0,this[_0xfc2b72(0xc4)][_0xfc2b72(0xe0)][_0xfc2b72(0xf5)](I[_0xfc2b72(0xb1)](this[_0xfc2b72(0xdb)]))['subscribe'](_0x3d5dfa=>{const _0x2a479d=_0xfc2b72;switch(_0x3d5dfa){case b[_0x2a479d(0xf2)]['OFFLINE']:this[_0x2a479d(0x78)]();break;case b[_0x2a479d(0xf2)][_0x2a479d(0x95)]:this['_handleOnline']();break;}}),this[_0xfc2b72(0xc4)][_0xfc2b72(0x131)][_0xfc2b72(0xf5)](I['takeUntil'](this[_0xfc2b72(0xdb)]))['subscribe'](_0x5881c8=>{const _0x3a1009=_0xfc2b72,{eventID:_0x5ba381}=_0x5881c8;switch(_0x5ba381){case d[_0x3a1009(0x10f)][_0x3a1009(0xac)]:this[_0x3a1009(0x73)](_0x5881c8);break;case d[_0x3a1009(0x10f)][_0x3a1009(0xc5)]:this[_0x3a1009(0x132)](_0x5881c8);break;case d[_0x3a1009(0x10f)][_0x3a1009(0xa6)]:this[_0x3a1009(0x8c)]();break;case d['CollaborationEvent'][_0x3a1009(0xb6)]:this[_0x3a1009(0x86)](_0x5881c8);break;}}));}[_0x490488(0x11e)](){const _0x27ed96=_0x490488;this[_0x27ed96(0xc4)][_0x27ed96(0xdd)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x27ed96(0xf1)],'userID':this[_0x27ed96(0xc4)][_0x27ed96(0x87)]()}},this['_unitID']);}['stopPresenting'](){const _0x5ecb56=_0x490488;this[_0x5ecb56(0xb9)]==='presenting'&&(this[_0x5ecb56(0xad)]['next']('idle'),this[_0x5ecb56(0xc4)]['send']({'eventID':d[_0x5ecb56(0x10f)][_0x5ecb56(0xa6)],'data':{'unitID':this[_0x5ecb56(0xf1)]}},this[_0x5ecb56(0xf1)]));}[_0x490488(0xdc)](){const _0x4da4a9=_0x490488;this[_0x4da4a9(0xb9)]==='not-following'&&(this['_status$'][_0x4da4a9(0xd7)](_0x4da4a9(0xcb)),this[_0x4da4a9(0x122)]());}[_0x490488(0x125)](){const _0x16c1f3=_0x490488;this[_0x16c1f3(0xb9)]==='following'&&this['_stopFollowing']();}[_0x490488(0x73)](_0x4635d1){const _0x4dca69=_0x490488,{presenter:_0x5275f1}=_0x4635d1[_0x4dca69(0xb5)],_0x36e218=this[_0x4dca69(0xc4)]['getMemberID']();this['_presenter']=_0x5275f1,_0x5275f1===_0x36e218?(this['_stopFollowing'](),this[_0x4dca69(0x7e)]()):this[_0x4dca69(0xb9)]!=='not-following'&&(this[_0x4dca69(0x117)](),this[_0x4dca69(0x122)]());}[_0x490488(0x126)](){const _0x125aeb=_0x490488,_0x4e3fce={'eventID':d[_0x125aeb(0x10f)][_0x125aeb(0x111)]};this[_0x125aeb(0xc4)]['send'](_0x4e3fce,this[_0x125aeb(0xf1)]);}[_0x490488(0x8c)](){const _0x2de1bc=_0x490488;this[_0x2de1bc(0x128)]=null,this[_0x2de1bc(0xb9)]!==_0x2de1bc(0xa3)&&this['_beIdle']();}[_0x490488(0x86)](_0x398bf9){const _0x3a03bd=_0x490488;if(this[_0x3a03bd(0xb9)]==='following'&&this[_0x3a03bd(0x128)]===_0x398bf9[_0x3a03bd(0xb5)]['memberID']){const _0x4c908f=d['parseProtocolChangeset'](_0x398bf9[_0x3a03bd(0xb5)])[_0x3a03bd(0xfb)][_0x3a03bd(0xde)]()[_0x3a03bd(0x10a)](_0xf3c649=>_0xf3c649['id']===C[_0x3a03bd(0xed)]['id']);if(_0x4c908f){const _0x284644=_0x4c908f[_0x3a03bd(0x101)][_0x3a03bd(0xd9)],_0x3b7ec5=_0x4c908f['params'][_0x3a03bd(0x136)]['id'];setTimeout(()=>{const _0x38ad99=_0x3a03bd;this[_0x38ad99(0x103)][_0x38ad99(0xbb)](C[_0x38ad99(0x8a)]['id'],{'unitId':_0x284644,'subUnitId':_0x3b7ec5},{'fromCollab':!0x0});});}}}[_0x490488(0x7e)](){const _0x1a20fe=_0x490488;this[_0x1a20fe(0xad)][_0x1a20fe(0xd7)](_0x1a20fe(0xa3));const _0x1fb764=new Map(),_0x14504d=this['_commandDisposable']=new o['DisposableCollection']();_0x14504d[_0x1a20fe(0xe3)](o[_0x1a20fe(0xd6)](()=>{const _0x425834=_0x1a20fe;_0x1fb764[_0x425834(0x9c)](_0x117af8=>_0x117af8[_0x425834(0x100)]()),_0x1fb764[_0x425834(0x88)]();})),_0x14504d['add'](this[_0x1a20fe(0x103)][_0x1a20fe(0xba)](_0xb415b7=>{const _0x53571c=_0x1a20fe;var _0x1d59eb;if(_0xb415b7[_0x53571c(0xef)]!==o[_0x53571c(0xe7)][_0x53571c(0xcc)]||!this[_0x53571c(0x13e)][_0x53571c(0x84)](_0xb415b7['id']))return;const {id:_0x59850e}=_0xb415b7;let _0x3565f0;_0x1fb764['has'](_0x59850e)?_0x3565f0=_0x1fb764[_0x53571c(0x9f)](_0x59850e):(_0x3565f0=new O[(_0x53571c(0x114))](),_0x1fb764[_0x53571c(0x106)](_0x59850e,_0x3565f0),_0x3565f0[_0x53571c(0xf5)](I[_0x53571c(0x80)]((_0x1d59eb=this['_configService'][_0x53571c(0x81)](k))!=null?_0x1d59eb:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x53571c(0x113)](_0x25f3ed=>{const _0xefa1cb=_0x53571c;this[_0xefa1cb(0xc4)]['send']({'eventID':d[_0xefa1cb(0x10f)][_0xefa1cb(0xc5)],'data':{'unitID':this[_0xefa1cb(0xf1)],'operations':{[_0x25f3ed['id']]:{'id':_0x25f3ed['id'],'params':JSON[_0xefa1cb(0xfe)](_0x25f3ed[_0xefa1cb(0x101)])}}}},this[_0xefa1cb(0xf1)]);})),_0x3565f0[_0x53571c(0xd7)](_0xb415b7);})),this[_0x1a20fe(0x13e)]['getInitialStates'](this['_unitID'])[_0x1a20fe(0x9c)](_0x34a5e6=>this[_0x1a20fe(0xc4)][_0x1a20fe(0xdd)]({'eventID':d[_0x1a20fe(0x10f)][_0x1a20fe(0xc5)],'data':{'unitID':this[_0x1a20fe(0xf1)],'operations':{[_0x34a5e6['id']]:{'id':_0x34a5e6['id'],'params':JSON[_0x1a20fe(0xfe)](_0x34a5e6[_0x1a20fe(0x101)])}}}},this[_0x1a20fe(0xf1)]));}[_0x490488(0x117)](){const _0x43fbb7=_0x490488;var _0x12e411;this[_0x43fbb7(0xad)]['next'](_0x43fbb7(0x8f)),(_0x12e411=this[_0x43fbb7(0x9a)])==null||_0x12e411['dispose'](),this[_0x43fbb7(0x9a)]=null;}[_0x490488(0x122)](){const _0x329061=_0x490488;var _0x3dc55b;(_0x3dc55b=this['_commandDisposable'])==null||_0x3dc55b['dispose'](),this[_0x329061(0xad)][_0x329061(0xd7)]('following');}[_0x490488(0xb2)](){const _0x19f8bf=_0x490488;var _0x418496;this[_0x19f8bf(0xad)][_0x19f8bf(0xd7)](_0x19f8bf(0x8f)),(_0x418496=this[_0x19f8bf(0x9a)])==null||_0x418496[_0x19f8bf(0xfa)](),this[_0x19f8bf(0x9a)]=null;}['_stopFollowing'](){const _0x33e8b4=_0x490488;var _0x5b56a3;this[_0x33e8b4(0xad)][_0x33e8b4(0xd7)]('not-following'),(_0x5b56a3=this[_0x33e8b4(0x9a)])==null||_0x5b56a3[_0x33e8b4(0xfa)]();}[_0x490488(0x132)](_0x303c5c){const _0x591647=_0x490488;if([_0x591647(0xa3),_0x591647(0xc7),'offline'][_0x591647(0xd5)](this[_0x591647(0xb9)])||!_0x303c5c[_0x591647(0xb5)]['presenter']||_0x303c5c['data']['presenter']===this[_0x591647(0xc4)]['getMemberID']())return;this[_0x591647(0xb9)]===_0x591647(0x8f)&&this[_0x591647(0x122)]();const _0x353e5b=_0x303c5c[_0x591647(0xb5)][_0x591647(0x10d)];Object[_0x591647(0x77)](_0x353e5b)['forEach'](_0x5cc486=>{const _0x370c70=_0x591647;this[_0x370c70(0x103)][_0x370c70(0xbb)](_0x5cc486['id'],_0x5cc486['params']?JSON['parse'](_0x5cc486[_0x370c70(0x101)]):null,{'fromCollab':!0x0});});}[_0x490488(0x78)](){const _0x4a2ac3=_0x490488;var _0x329814;this['_status$'][_0x4a2ac3(0xd7)]('offline'),(_0x329814=this[_0x4a2ac3(0x9a)])==null||_0x329814[_0x4a2ac3(0xfa)]();}[_0x490488(0x12e)](){const _0x287a05=_0x490488;this[_0x287a05(0xad)][_0x287a05(0xd7)]('idle'),this[_0x287a05(0x126)]();}},exports[_0x490488(0x7f)]=P([S(0x2,o[_0x490488(0xd3)]),S(0x3,o[_0x490488(0x115)](E)),S(0x4,o[_0x490488(0xee)])],exports[_0x490488(0x7f)]);function $(){const _0x47abe7=_0x490488,_0x1c00f6=p[_0x47abe7(0x13c)](exports[_0x47abe7(0x7c)]),_0x3649f0=p['useDependency'](o['IUniverInstanceService']),_0x5eeb9f=p[_0x47abe7(0x102)](()=>_0x3649f0[_0x47abe7(0x123)](o[_0x47abe7(0x6f)][_0x47abe7(0xd8)]),void 0x0,!0x1,[]),[_0x5e8409,_0x50f769]=v[_0x47abe7(0xff)](null),[_0x21af1e,_0x5a72c8]=v['useState'](u[_0x47abe7(0xe1)]),_0x425f67=v['useRef'](null);return v['useEffect'](()=>(_0x5eeb9f&&_0x1c00f6['getLiveShareCoordinator'](_0x5eeb9f[_0x47abe7(0xe4)]())['then'](_0x580ad0=>{const _0x53738e=_0x47abe7;_0x50f769(_0x580ad0),_0x425f67['current']=_0x580ad0[_0x53738e(0x138)][_0x53738e(0x113)](_0x4cb02d=>{_0x5a72c8(_0x4cb02d);});}),()=>{var _0x2b634c;(_0x2b634c=_0x425f67['current'])==null||_0x2b634c['unsubscribe'](),_0x425f67['current']=null;}),[_0x5eeb9f,_0x1c00f6]),_0x5e8409?l[_0x47abe7(0x94)](f[_0x47abe7(0x72)],{'align':'end','disabled':_0x21af1e===u[_0x47abe7(0xa2)],'className':_0x47abe7(0x105),'overlay':l[_0x47abe7(0x94)](W,{'status':_0x21af1e,'coordinator':_0x5e8409}),'children':l[_0x47abe7(0x94)](_0x47abe7(0x11d),{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x21af1e===u[_0x47abe7(0xa2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21af1e!==u['OFFLINE']}),'type':'button','children':l[_0x47abe7(0x94)](R,{'className':_0x47abe7(0xb0)})})}):null;}function W(_0x5a3735){const _0x352020=_0x490488,{status:_0x3ecab3,coordinator:_0x5d7812}=_0x5a3735;switch(_0x3ecab3){case u['IDLE']:return l[_0x352020(0x94)](G,{'coordinator':_0x5d7812});case u[_0x352020(0x8d)]:return l[_0x352020(0x94)](B,{'coordinator':_0x5d7812});case u['NOT_FOLLOWING']:return l[_0x352020(0x94)](Y,{'coordinator':_0x5d7812});case u['OFFLINE']:return l[_0x352020(0x94)](J,{});case u[_0x352020(0xb3)]:return l[_0x352020(0x94)](Z,{'coordinator':_0x5d7812});default:return null;}}function G(_0x296f96){const _0x549857=_0x490488,{coordinator:_0x1ad7d2}=_0x296f96;return l[_0x549857(0x9d)](l[_0x549857(0x7a)],{'children':[l[_0x549857(0x94)](_0x549857(0xc1),{'className':_0x549857(0xeb),'children':_0x549857(0x96)}),l[_0x549857(0x94)](f[_0x549857(0x127)],{'onClick':()=>_0x1ad7d2['tryStartPresenting'](),'children':_0x549857(0xd2)})]});}function B(_0x16444c){const _0x3bd942=_0x490488,{coordinator:_0x467473}=_0x16444c;return l[_0x3bd942(0x9d)](l['Fragment'],{'children':[l[_0x3bd942(0x94)](_0x3bd942(0xc1),{'className':_0x3bd942(0xeb),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x3bd942(0x94)](f[_0x3bd942(0x127)],{'onClick':()=>_0x467473['stopFollowing'](),'children':_0x3bd942(0xf0)})]});}function Y(_0x5627f4){const _0x4dc2c4=_0x490488,{coordinator:_0x33749b}=_0x5627f4;return l[_0x4dc2c4(0x9d)](l[_0x4dc2c4(0x7a)],{'children':[l['jsx'](_0x4dc2c4(0xc1),{'className':_0x4dc2c4(0xeb),'children':_0x4dc2c4(0x12d)}),l[_0x4dc2c4(0x94)](f['Button'],{'variant':_0x4dc2c4(0xc9),'onClick':()=>_0x33749b[_0x4dc2c4(0xdc)](),'children':_0x4dc2c4(0x83)})]});}function Z(_0xa80fd1){const _0x14625a=_0x490488,{coordinator:_0x8a236d}=_0xa80fd1;return l[_0x14625a(0x9d)](l[_0x14625a(0x7a)],{'children':[l['jsx'](_0x14625a(0xc1),{'className':_0x14625a(0xeb),'children':_0x14625a(0xab)}),l[_0x14625a(0x94)](f[_0x14625a(0x127)],{'variant':_0x14625a(0xc3),'onClick':()=>_0x8a236d[_0x14625a(0xbc)](),'children':'Stop\x20presenting'})]});}function J(){const _0x63ccd0=_0x490488;return l['jsx'](l[_0x63ccd0(0x7a)],{'children':_0x63ccd0(0x133)});}var K=Object[_0x490488(0xca)],z=(_0x1c3ffb,_0x85d5ac,_0x4987bd,_0x4e871f)=>{const _0x267233=_0x490488;for(var _0x2e6421=_0x4e871f>0x1?void 0x0:_0x4e871f?K(_0x85d5ac,_0x4987bd):_0x85d5ac,_0x1efa4d=_0x1c3ffb[_0x267233(0x79)]-0x1,_0x5d355e;_0x1efa4d>=0x0;_0x1efa4d--)(_0x5d355e=_0x1c3ffb[_0x1efa4d])&&(_0x2e6421=_0x5d355e(_0x2e6421)||_0x2e6421);return _0x2e6421;},L=(_0x27f441,_0x3ef214)=>(_0x517850,_0xeede5c)=>_0x3ef214(_0x517850,_0xeede5c,_0x27f441);exports['DesktopLiveShareController']=class extends o[_0x490488(0xa0)]{constructor(_0x1c5875,_0x4b19e1){const _0x241552=_0x490488;super(),this[_0x241552(0x119)]=_0x1c5875,this[_0x241552(0x139)]=_0x4b19e1,this[_0x241552(0xb4)]();}[_0x490488(0xb4)](){const _0x398e44=_0x490488;this[_0x398e44(0xa4)](this[_0x398e44(0x139)][_0x398e44(0x13b)](p[_0x398e44(0x13d)][_0x398e44(0x90)],()=>p[_0x398e44(0xae)]($,this[_0x398e44(0x119)])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x490488(0x108)])],exports[_0x490488(0x89)]);const Q=_0x490488(0xda),w={};var X=Object[_0x490488(0xca)],ee=(_0x92d16a,_0xa161fc,_0x5314b6,_0xbabeba)=>{const _0x10abe3=_0x490488;for(var _0x3c2c04=_0xbabeba>0x1?void 0x0:_0xbabeba?X(_0xa161fc,_0x5314b6):_0xa161fc,_0x95406c=_0x92d16a[_0x10abe3(0x79)]-0x1,_0x43672d;_0x95406c>=0x0;_0x95406c--)(_0x43672d=_0x92d16a[_0x95406c])&&(_0x3c2c04=_0x43672d(_0x3c2c04)||_0x3c2c04);return _0x3c2c04;},te=(_0x1a7971,_0x506cd0)=>(_0xf981d8,_0x4e3b00)=>_0x506cd0(_0xf981d8,_0x4e3b00,_0x1a7971);let m=class extends o[_0x490488(0xa0)]{constructor(_0x439453){const _0x5e79db=_0x490488;super(),this[_0x5e79db(0x13e)]=_0x439453,this[_0x5e79db(0xe9)]();}[_0x490488(0xe9)](){const _0x68b2d2=_0x490488;[D[_0x68b2d2(0xf8)]['id'],D[_0x68b2d2(0x142)]['id'],C[_0x68b2d2(0x8a)]['id']][_0x68b2d2(0x9c)](_0x4df513=>{const _0x1a54e7=_0x68b2d2;this['disposeWithMe'](this[_0x1a54e7(0x13e)][_0x1a54e7(0x135)](_0x4df513));});}};m=ee([te(0x0,o[_0x490488(0x115)](E))],m);function _0x51bc(){const _0x1f8665=['NEW_CHANGESETS','entries','UniverCollaborationClientPlugin','_status','onCommandExecuted','executeCommand','stopPresenting','defIds','offline','IUniverInstanceService','url(#$1','div','defineProperty','default','_collabSession','LIVESHARE_OPERATION','tag','not-following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','text','getOwnPropertyDescriptor','following','OPERATION','10986912VTQmQp','useRef','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','use','registerInitialStateReporter','Start','IConfigService','1250YZQctU','includes','toDisposable','next','UNIVER_SHEET','unitId','live-share.config','dispose$','startFollowing','send','reverse','attrs','sessionStatus$','IDLE','path','add','getUnitId','3064670rqqfzW','none','CommandType','getStatus','_init','Plugin','univer-mb-3\x20univer-w-full\x20univer-text-sm','980LoYKFi','InsertSheetMutation','ICommandService','type','Stop\x20following','_unitID','SessionStatus','replace','init','pipe','delete','mask','SetZoomRatioOperation','http://www.w3.org/2000/svg','dispose','mutations','univerjs-icon\x20univerjs-icon-','has','stringify','useState','complete','params','useObservable','_commandService','onRendered','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','set','getTypeOfUnitDisposed$','IUIPartsService','evenodd','find','_univerInstanceService','getValue','operations','LiveShareIcon','CollaborationEvent','currentColor','LIVESHARE_FETCH_OPERATIONS','_entities','subscribe','Subject','Inject','forwardRef','_stopPresenting','_startLiveShareCoordinator','_injector','idSuffix','onStarting','LiveShareStatus','button','tryStartPresenting','live-share-icon','registerDependencies','merge','_startFollowing','getCurrentTypeOfUnit$','toStringTag','stopFollowing','_fetchOperations','Button','_presenter','_config','pluginName','LiveShare','11021928WTXnMw','You\x27re\x20not\x20following\x20the\x20presenter','_handleOnline','getLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','event$','_handleOperation','You\x27are\x20offline.','xlink:href','registerSharedOperation','sheet','mergeOverrideWithDependencies','status$','_uiPartsService','RxDisposable','registerComponent','useDependency','BuiltInUIPart','_liveShareService','1014avPmUg','getLiveShareCoordinatorSync','UniverLiveSharePlugin','SetScrollOperation','Module','_sharedOperations','2198307UXVFkw','UniverInstanceType','asObservable','assign','Dropdown','_handleNewHost','1em','defs','_reporters','values','_handleOffline','length','Fragment','_collabSessionService','LiveShareController','svg','_startPresenting','LiveShareCoordinator','throttleTime','getConfig','createInstance','Start\x20following','shouldShareOperation','map','_handleNewChangeSets','getMemberID','clear','DesktopLiveShareController','SetWorksheetActiveOperation','substring','_handleTerminate','FOLLOWING','toString','idle','HEADER_MENU','NOT_FOLLOWING','1001063XYXiqu','colorChannel1','jsx','ONLINE','Present\x20this\x20document','fill','createElement','BehaviorSubject','_commandDisposable','getInitialStates','forEach','jsxs','0\x200\x2017\x2017','get','Disposable','string','OFFLINE','presenting','disposeWithMe','_configService','LIVESHARE_TERMINATE','110367KFBXgY','Injector','UNIVER_LIVE_SHARE_PLUGIN','children','You\x27re\x20presenting\x20the\x20document','LIVESHARE_NEW_HOST','_status$','connectInjector','4TRMuZR','univer-size-4','takeUntil','_beIdle','PRESENTING','_mountLiveShare','data'];_0x51bc=function(){return _0x1f8665;};return _0x51bc();}var ie=Object[_0x490488(0xc2)],se=Object['getOwnPropertyDescriptor'],ne=(_0x17d319,_0x99f6a8,_0x28e27f)=>_0x99f6a8 in _0x17d319?ie(_0x17d319,_0x99f6a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28e27f}):_0x17d319[_0x99f6a8]=_0x28e27f,re=(_0x59c681,_0x16ff57,_0x380e4c,_0x3f8be8)=>{for(var _0x528206=_0x3f8be8>0x1?void 0x0:_0x3f8be8?se(_0x16ff57,_0x380e4c):_0x16ff57,_0x107496=_0x59c681['length']-0x1,_0x534ba0;_0x107496>=0x0;_0x107496--)(_0x534ba0=_0x59c681[_0x107496])&&(_0x528206=_0x534ba0(_0x528206)||_0x528206);return _0x528206;},N=(_0x3800cc,_0x3d19e2)=>(_0x18f940,_0x3c2bda)=>_0x3d19e2(_0x18f940,_0x3c2bda,_0x3800cc),A=(_0x5e702d,_0x2461bf,_0x57d0a6)=>ne(_0x5e702d,typeof _0x2461bf!='symbol'?_0x2461bf+'':_0x2461bf,_0x57d0a6);function _0x3b91(_0x14e157,_0x3f80a7){_0x14e157=_0x14e157-0x6d;const _0x51bc61=_0x51bc();let _0x3b914e=_0x51bc61[_0x14e157];return _0x3b914e;}const oe=_0x490488(0xa9);exports[_0x490488(0x141)]=class extends o[_0x490488(0xea)]{constructor(_0x4c86e3=w,_0x258e4f,_0x4784a3){const _0x2bd7cc=_0x490488;super(),this[_0x2bd7cc(0x129)]=_0x4c86e3,this['_injector']=_0x258e4f,this['_configService']=_0x4784a3;const {..._0x12590d}=o[_0x2bd7cc(0x121)]({},w,this['_config']);this[_0x2bd7cc(0xa5)]['setConfig'](Q,_0x12590d);}[_0x490488(0x11b)](){const _0x462bee=_0x490488;o[_0x462bee(0x120)](this[_0x462bee(0x119)],o[_0x462bee(0x137)]([[E],[exports[_0x462bee(0x7c)]],[m],[exports[_0x462bee(0x89)]]],this[_0x462bee(0x129)]['override'])),o['touchDependencies'](this[_0x462bee(0x119)],[[m]]);}[_0x490488(0x104)](){const _0x173c84=_0x490488;o['touchDependencies'](this['_injector'],[[exports[_0x173c84(0x89)]]]);}},A(exports[_0x490488(0x141)],_0x490488(0xef),o['UniverInstanceType']['UNIVER_UNKNOWN']),A(exports['UniverLiveSharePlugin'],_0x490488(0x12a),oe),exports['UniverLiveSharePlugin']=re([o['DependentOn'](b[_0x490488(0xb8)]),N(0x1,o['Inject'](o[_0x490488(0xa8)])),N(0x2,o[_0x490488(0xd3)])],exports['UniverLiveSharePlugin']),exports[_0x490488(0x12b)]=$,exports['LiveShareService']=E,exports[_0x490488(0x11c)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5e9a76=_0x40bb;(function(_0x4acd0e,_0x50cef3){const _0x407a14=_0x40bb,_0x40047e=_0x4acd0e();while(!![]){try{const _0x27d1ec=-parseInt(_0x407a14(0x1e0))/0x1+parseInt(_0x407a14(0x1cd))/0x2+parseInt(_0x407a14(0x1cc))/0x3+parseInt(_0x407a14(0x1da))/0x4*(parseInt(_0x407a14(0x1ce))/0x5)+-parseInt(_0x407a14(0x1d9))/0x6+-parseInt(_0x407a14(0x1d5))/0x7+parseInt(_0x407a14(0x1e3))/0x8;if(_0x27d1ec===_0x50cef3)break;else _0x40047e['push'](_0x40047e['shift']());}catch(_0x54b68d){_0x40047e['push'](_0x40047e['shift']());}}}(_0x3fd7,0x45716));var l=Object['defineProperty'],w=(_0x462f7b,_0x41fe11,_0x55dce8)=>_0x41fe11 in _0x462f7b?l(_0x462f7b,_0x41fe11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55dce8}):_0x462f7b[_0x41fe11]=_0x55dce8,v=(_0x1a6c30,_0x3461e0,_0x495e7e)=>w(_0x1a6c30,typeof _0x3461e0!=_0x5e9a76(0x1cb)?_0x3461e0+'':_0x3461e0,_0x495e7e);import{LiveShareController as _0x1dbf9d,LiveShareStatus as _0x4380dc}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x51564f,UniverInstanceType as _0x183327}from'@univerjs/core';import{FUniver as _0x479d17,FEnum as _0x33e008}from'@univerjs/core/facade';class g extends _0x479d17{constructor(){const _0x43b238=_0x5e9a76;super(...arguments),v(this,_0x43b238(0x1d2));}[_0x5e9a76(0x1d6)](_0x389d08){const _0x12a6e2=_0x5e9a76;this[_0x12a6e2(0x1d2)]=_0x389d08[_0x12a6e2(0x1de)](_0x1dbf9d);}[_0x5e9a76(0x1dc)](){const _0x2f4793=_0x5e9a76;var _0x44bcee;const _0x149dd5=this[_0x2f4793(0x1df)][_0x2f4793(0x1de)](_0x51564f)[_0x2f4793(0x1e1)](_0x183327[_0x2f4793(0x1cf)]);if(!_0x149dd5)throw new Error(_0x2f4793(0x1dd));const _0x8e99d6=_0x149dd5[_0x2f4793(0x1d3)](),_0xc79d3d=this[_0x2f4793(0x1d2)][_0x2f4793(0x1e4)](_0x8e99d6);return(_0x44bcee=_0xc79d3d==null?void 0x0:_0xc79d3d['getStatus']())!=null?_0x44bcee:_0x4380dc[_0x2f4793(0x1d8)];}[_0x5e9a76(0x1e6)](){const _0xc5e20f=_0x5e9a76,_0x3c4d7c=this[_0xc5e20f(0x1df)][_0xc5e20f(0x1de)](_0x51564f)['getCurrentUnitOfType'](_0x183327['UNIVER_SHEET']);if(!_0x3c4d7c)throw new Error(_0xc5e20f(0x1dd));const _0x4396f6=_0x3c4d7c[_0xc5e20f(0x1d3)](),_0x4e667b=this[_0xc5e20f(0x1d2)][_0xc5e20f(0x1e4)](_0x4396f6);if(!_0x4e667b)throw new Error(_0xc5e20f(0x1d7));_0x4e667b[_0xc5e20f(0x1e6)]();}['stopFollowing'](){const _0x2d21f6=_0x5e9a76,_0x3c5f32=this['_injector'][_0x2d21f6(0x1de)](_0x51564f)[_0x2d21f6(0x1e1)](_0x183327[_0x2d21f6(0x1cf)]);if(!_0x3c5f32)throw new Error('No\x20active\x20workbook\x20found.');const _0x435019=_0x3c5f32['getUnitId'](),_0x57af1a=this['_liveShareController'][_0x2d21f6(0x1e4)](_0x435019);if(!_0x57af1a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x57af1a[_0x2d21f6(0x1d4)]();}[_0x5e9a76(0x1e2)](){const _0x50259c=_0x5e9a76,_0x3902bf=this[_0x50259c(0x1df)][_0x50259c(0x1de)](_0x51564f)[_0x50259c(0x1e1)](_0x183327[_0x50259c(0x1cf)]);if(!_0x3902bf)throw new Error('No\x20active\x20workbook\x20found.');const _0x2025bd=_0x3902bf[_0x50259c(0x1d3)](),_0x257cdd=this[_0x50259c(0x1d2)]['getLiveShareCoordinatorSync'](_0x2025bd);if(!_0x257cdd)throw new Error(_0x50259c(0x1d7));_0x257cdd[_0x50259c(0x1db)]();}[_0x5e9a76(0x1e5)](){const _0x1cb10d=_0x5e9a76,_0x4f7b23=this['_injector']['get'](_0x51564f)[_0x1cb10d(0x1e1)](_0x183327[_0x1cb10d(0x1cf)]);if(!_0x4f7b23)throw new Error(_0x1cb10d(0x1dd));const _0x5e98cc=_0x4f7b23[_0x1cb10d(0x1d3)](),_0x42547c=this[_0x1cb10d(0x1d2)][_0x1cb10d(0x1e4)](_0x5e98cc);if(!_0x42547c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x42547c[_0x1cb10d(0x1e5)]();}}function _0x40bb(_0x15b909,_0x6fb504){_0x15b909=_0x15b909-0x1cb;const _0x3fd737=_0x3fd7();let _0x40bbe8=_0x3fd737[_0x15b909];return _0x40bbe8;}function _0x3fd7(){const _0x594eff=['150750TNnpEX','19764HblXsh','tryStartPresenting','getLiveShareStatus','No\x20active\x20workbook\x20found.','get','_injector','415568jPVBpT','getCurrentUnitOfType','startPresenting','3812456vGwnTV','getLiveShareCoordinatorSync','stopPresenting','startFollowing','symbol','571164tZQaMC','99950fVJnUV','245MzDmgX','UNIVER_SHEET','LiveShareStatusEnum','extend','_liveShareController','getUnitId','stopFollowing','1637286AByRKd','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IDLE'];_0x3fd7=function(){return _0x594eff;};return _0x3fd7();}_0x479d17[_0x5e9a76(0x1d1)](g);class f extends _0x33e008{get[_0x5e9a76(0x1d0)](){return _0x4380dc;}}_0x33e008[_0x5e9a76(0x1d1)](f);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3c4d26=_0x39a9;(function(_0x50d06,_0x3e5376){const _0x384216=_0x39a9,_0x506440=_0x50d06();while(!![]){try{const _0x66b29f=parseInt(_0x384216(0x11b))/0x1*(-parseInt(_0x384216(0x137))/0x2)+-parseInt(_0x384216(0xa8))/0x3+parseInt(_0x384216(0xfd))/0x4*(-parseInt(_0x384216(0xbe))/0x5)+-parseInt(_0x384216(0xb6))/0x6*(-parseInt(_0x384216(0xce))/0x7)+-parseInt(_0x384216(0x139))/0x8+-parseInt(_0x384216(0xb9))/0x9+-parseInt(_0x384216(0xcb))/0xa*(-parseInt(_0x384216(0x13d))/0xb);if(_0x66b29f===_0x3e5376)break;else _0x506440['push'](_0x506440['shift']());}catch(_0x2e1e74){_0x506440['push'](_0x506440['shift']());}}}(_0x167e,0x229b3));var J=Object[_0x3c4d26(0xf4)],K=(_0xb11596,_0x3f3fe8,_0x4cded9)=>_0x3f3fe8 in _0xb11596?J(_0xb11596,_0x3f3fe8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cded9}):_0xb11596[_0x3f3fe8]=_0x4cded9,u=(_0x20bdf6,_0x120919,_0x1ee5d9)=>K(_0x20bdf6,typeof _0x120919!=_0x3c4d26(0xdd)?_0x120919+'':_0x120919,_0x1ee5d9);import{Disposable as _0x167de9,toDisposable as _0x4d1cb7,Inject as _0x1668bc,Injector as _0x465048,RxDisposable as _0x32eff8,UniverInstanceType as _0x152fad,DisposableCollection as _0x2cef5d,CommandType as _0x480eb2,IUniverInstanceService as _0x4761e9,IConfigService as _0x470b5c,ICommandService as _0x154d48,DependentOn as _0x3124b9,Plugin as _0x8999f6,merge as _0x5cf637,registerDependencies as _0x385419,mergeOverrideWithDependencies as _0xc75ac0,touchDependencies as _0xaa1b3f}from'@univerjs/core';function _0x167e(){const _0x59331a=['operations','_sharedOperations','map','LiveShareIcon','length','has','_startPresenting','_commandService','_configService','6lIfKnB','get','executeCommand','978057IpPvjw','next','pipe','path','_handleNewChangeSets','5guaAXR','offline','data','OFFLINE','default','defIds','_reporters','_handleOnline','live-share.config','delete','memberID','not-following','xlink:href','60DxOMas','subscribe','init','786219cvkglD','shouldShareOperation','_uiPartsService','You\x27are\x20offline.','requireSession','_status$','unitId','div','1em','displayName','LIVESHARE_NEW_HOST','_collabSession','_stopFollowing','UNIVER_UNKNOWN','entries','symbol','attrs','_entities','reverse','trim','replace','_stopPresenting','_status','end','Stop\x20following','registerSharedOperation','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','LIVESHARE_REQUEST_HOST','stopFollowing','_univerInstanceService','_handleOperation','then','includes','sessionStatus$','You\x27re\x20not\x20following\x20the\x20presenter','assign','following','evenodd','defineProperty','You\x27re\x20following\x20the\x20presenter','_handleTerminate','string','IDLE','stringify','getMemberID','getTypeOfUnitDisposed$','_injector','19244YZhIwf','FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','You\x27re\x20presenting\x20the\x20document','url(#$1','_fetchOperations','mask','NOT_FOLLOWING','params','_startFollowing','_handleOffline','Stop\x20presenting','forEach','Start\x20following','getConfig','_collabSessionService','LIVESHARE_TERMINATE','button','NEW_CHANGESETS','_handleNewHost','getOwnPropertyDescriptor','svg','Present\x20this\x20document','type','idle','HEADER_MENU','dispose$','set','add','PRESENTING','1ADKIwl','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_beIdle','Start','override','complete','from','registerComponent','colorChannel1','onRendered','dispose','event$','mutations','getValue','getUnitId','getTypeOfUnitAdded$','none','parse','univer-size-4','registerInitialStateReporter','random','stopPresenting','LIVESHARE_OPERATION','children','_config','currentColor','UNIVER_SHEET','asObservable','231866keYgnr','UniverIcon','326992qTZtPp','getCurrentTypeOfUnit$','tryStartPresenting','sheet','847154QANemw','presenting','find','startFollowing','_liveShareService','_startLiveShareCoordinator','_presenter','presenter','_commandDisposable','unsubscribe','status$','SAME_OPERATION_SHARE_INTERVAL','_unitID','clear','ONLINE','LIVESHARE_FETCH_OPERATIONS','idSuffix','tag','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','disposeWithMe','_mountLiveShare','_init','487089dshBzs','getLiveShareCoordinator','substring','fill','send'];_0x167e=function(){return _0x59331a;};return _0x167e();}function _0x39a9(_0x352344,_0x5e578c){_0x352344=_0x352344-0xa4;const _0x167e07=_0x167e();let _0x39a976=_0x167e07[_0x352344];return _0x39a976;}import{useDependency as _0x1a8a0d,useObservable as _0x59b5ab,BuiltInUIPart as _0x13b76f,connectInjector as _0x412f64,IUIPartsService as _0x172fbc}from'@univerjs/ui';import{jsx as _0x297ed2,jsxs as _0x35ad9f,Fragment as _0x20d81a}from'react/jsx-runtime';import{Dropdown as _0x2571f0,clsx as _0x43444c,Button as _0x262bb5}from'@univerjs/design';import{useRef as _0x1b9081,createElement as _0x4de5ed,forwardRef as _0x323c53,useState as _0x45446d,useEffect as _0x15928b}from'react';import{CollaborationEvent as _0x27f01f,parseProtocolChangeset as _0x5e01ee}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xad0194,SessionStatus as _0x33d898,UniverCollaborationClientPlugin as _0x57a458}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4dfec7,SetWorksheetActiveOperation as _0x229740}from'@univerjs/sheets';import{BehaviorSubject as _0x43bb1a,Subject as _0x5d2aa3}from'rxjs';import{takeUntil as _0xb6c43e,throttleTime as _0x3e47f7}from'rxjs/operators';import{SetZoomRatioOperation as _0x477fa1,SetScrollOperation as _0x1426bd}from'@univerjs/sheets-ui';function k({ref:_0x36f515,..._0x2274af}){const _0x14af90=_0x3c4d26,{icon:_0x126807,id:_0x3d4da7,className:_0x975c13,extend:_0x4cf5d7,..._0x3b484}=_0x2274af,_0x2d67a3=('univerjs-icon\x20univerjs-icon-'+_0x3d4da7+'\x20'+(_0x975c13||''))[_0x14af90(0xe1)](),_0x5859b8=_0x1b9081('_'+Oe());return G(_0x126807,''+_0x3d4da7,{'defIds':_0x126807[_0x14af90(0xc3)],'idSuffix':_0x5859b8['current']},{'ref':_0x36f515,'className':_0x2d67a3,..._0x3b484},_0x4cf5d7);}function G(_0x2f3215,_0x515465,_0x425278,_0xe1a232,_0x416272){const _0x52465c=_0x3c4d26;return _0x4de5ed(_0x2f3215[_0x52465c(0x14e)],{'key':_0x515465,...be(_0x2f3215,_0x425278,_0x416272),..._0xe1a232},(Ee(_0x2f3215,_0x425278)[_0x52465c(0x132)]||[])[_0x52465c(0xaf)]((_0x527592,_0x397146)=>G(_0x527592,_0x515465+'-'+_0x2f3215['tag']+'-'+_0x397146,_0x425278,void 0x0,_0x416272)));}function be(_0x2554e4,_0x1e7844,_0x2ccb3e){const _0x568c6d=_0x3c4d26,_0x1b8d67={..._0x2554e4[_0x568c6d(0xde)]};_0x2ccb3e!=null&&_0x2ccb3e[_0x568c6d(0x123)]&&_0x1b8d67[_0x568c6d(0xab)]===_0x568c6d(0x123)&&(_0x1b8d67[_0x568c6d(0xab)]=_0x2ccb3e[_0x568c6d(0x123)]),_0x2554e4[_0x568c6d(0x14e)]==='mask'&&_0x1b8d67['id']&&(_0x1b8d67['id']=_0x1b8d67['id']+_0x1e7844[_0x568c6d(0x14d)]),Object[_0x568c6d(0xdc)](_0x1b8d67)[_0x568c6d(0x109)](([_0x12f573,_0x580fc3])=>{const _0x194f77=_0x568c6d;_0x12f573===_0x194f77(0x103)&&typeof _0x580fc3==_0x194f77(0xf7)&&(_0x1b8d67[_0x12f573]=_0x580fc3[_0x194f77(0xe2)](/url\(#(.*)\)/,_0x194f77(0x101)+_0x1e7844[_0x194f77(0x14d)]+')'));});const {defIds:_0x5cf4a2}=_0x1e7844;return!_0x5cf4a2||_0x5cf4a2[_0x568c6d(0xb1)]===0x0||(_0x2554e4[_0x568c6d(0x14e)]==='use'&&_0x1b8d67[_0x568c6d(0xca)]&&(_0x1b8d67[_0x568c6d(0xca)]=_0x1b8d67[_0x568c6d(0xca)]+_0x1e7844[_0x568c6d(0x14d)]),Object['entries'](_0x1b8d67)['forEach'](([_0x397a0c,_0x7cf213])=>{const _0x340b67=_0x568c6d;typeof _0x7cf213=='string'&&(_0x1b8d67[_0x397a0c]=_0x7cf213['replace'](/url\(#(.*)\)/,_0x340b67(0x101)+_0x1e7844['idSuffix']+')'));})),_0x1b8d67;}function Ee(_0xe6d18f,_0x46996b){const _0x31e87a=_0x3c4d26;var _0x21996e;const {defIds:_0x2e3d1c}=_0x46996b;return!_0x2e3d1c||_0x2e3d1c[_0x31e87a(0xb1)]===0x0?_0xe6d18f:_0xe6d18f[_0x31e87a(0x14e)]==='defs'&&((_0x21996e=_0xe6d18f[_0x31e87a(0x132)])!=null&&_0x21996e[_0x31e87a(0xb1)])?{..._0xe6d18f,'children':_0xe6d18f[_0x31e87a(0x132)][_0x31e87a(0xaf)](_0x1739de=>typeof _0x1739de[_0x31e87a(0xde)]['id']==_0x31e87a(0xf7)&&_0x2e3d1c&&_0x2e3d1c['includes'](_0x1739de['attrs']['id'])?{..._0x1739de,'attrs':{..._0x1739de[_0x31e87a(0xde)],'id':_0x1739de[_0x31e87a(0xde)]['id']+_0x46996b[_0x31e87a(0x14d)]}}:_0x1739de)}:_0xe6d18f;}function Oe(){const _0x57aa80=_0x3c4d26;return Math[_0x57aa80(0x12f)]()['toString'](0x24)[_0x57aa80(0xaa)](0x2,0x8);}k[_0x3c4d26(0xd7)]=_0x3c4d26(0x138);const we={'tag':_0x3c4d26(0x112),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3c4d26(0x12b),'viewBox':'0\x200\x2017\x2017','width':_0x3c4d26(0xd6),'height':_0x3c4d26(0xd6)},'children':[{'tag':_0x3c4d26(0xbc),'attrs':{'fill':_0x3c4d26(0x134),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3c4d26(0xbc),'attrs':{'fill':_0x3c4d26(0x134),'d':_0x3c4d26(0xe8),'fillRule':_0x3c4d26(0xf3),'clipRule':_0x3c4d26(0xf3)}}]},W=_0x323c53(function(_0x5323ff,_0x46a411){const _0x2ecd72=_0x3c4d26;return _0x4de5ed(k,Object[_0x2ecd72(0xf1)]({},_0x5323ff,{'id':'live-share-icon','ref':_0x46a411,'icon':we}));});W['displayName']=_0x3c4d26(0xb0);class L extends _0x167de9{constructor(){const _0x7a878d=_0x3c4d26;super(...arguments),u(this,_0x7a878d(0xae),new Set()),u(this,_0x7a878d(0xc4),new Set());}[_0x3c4d26(0xe7)](_0x4d74e8){const _0x301ea6=_0x3c4d26;return this[_0x301ea6(0xae)][_0x301ea6(0x119)](_0x4d74e8),_0x4d1cb7(()=>this[_0x301ea6(0xae)][_0x301ea6(0xc7)](_0x4d74e8));}[_0x3c4d26(0x12e)](_0x2f9417){const _0x446af2=_0x3c4d26;return this[_0x446af2(0xc4)][_0x446af2(0x119)](_0x2f9417),_0x4d1cb7(()=>this[_0x446af2(0xc4)]['delete'](_0x2f9417));}['shouldShareOperation'](_0x4d891f){const _0x186e7f=_0x3c4d26;return this[_0x186e7f(0xae)][_0x186e7f(0xb2)](_0x4d891f);}['getInitialStates'](_0x5309bd){const _0x30bdfc=_0x3c4d26;return Array[_0x30bdfc(0x121)](this['_reporters'])[_0x30bdfc(0xaf)](_0x5b987a=>_0x5b987a(_0x5309bd));}}var Ne=Object[_0x3c4d26(0x111)],Y=(_0x1dffc0,_0x5d1308,_0x6d22f7,_0x50fc08)=>{const _0x294c01=_0x3c4d26;for(var _0x1c7e1c=_0x50fc08>0x1?void 0x0:_0x50fc08?Ne(_0x5d1308,_0x6d22f7):_0x5d1308,_0x4e78b5=_0x1dffc0[_0x294c01(0xb1)]-0x1,_0x1c31b2;_0x4e78b5>=0x0;_0x4e78b5--)(_0x1c31b2=_0x1dffc0[_0x4e78b5])&&(_0x1c7e1c=_0x1c31b2(_0x1c7e1c)||_0x1c7e1c);return _0x1c7e1c;},_=(_0x51ae71,_0xe5df8a)=>(_0x128844,_0x4c4655)=>_0xe5df8a(_0x128844,_0x4c4655,_0x51ae71);let S=class extends _0x32eff8{constructor(_0x1130e7,_0x381ddb,_0x8134fa){const _0x3297f4=_0x3c4d26;super(),u(this,_0x3297f4(0xdf),new Map()),(this[_0x3297f4(0xeb)]=_0x1130e7,this[_0x3297f4(0xfc)]=_0x381ddb,this[_0x3297f4(0x10c)]=_0x8134fa,this['_init']());}async[_0x3c4d26(0xa9)](_0x4f68f7){const _0x319794=_0x3c4d26;return this['_entities'][_0x319794(0xb2)](_0x4f68f7)||await this[_0x319794(0x142)](_0x4f68f7),this['_entities']['get'](_0x4f68f7);}['getLiveShareCoordinatorSync'](_0x261442){const _0x2cac2c=_0x3c4d26;var _0x5a7770;return(_0x5a7770=this[_0x2cac2c(0xdf)][_0x2cac2c(0xb7)](_0x261442))!=null?_0x5a7770:null;}[_0x3c4d26(0xa7)](){const _0x28d80b=_0x3c4d26;this[_0x28d80b(0xeb)][_0x28d80b(0x12a)](_0x152fad[_0x28d80b(0x135)])[_0x28d80b(0xbb)](_0xb6c43e(this[_0x28d80b(0x117)]))[_0x28d80b(0xcc)](async _0x17f6ad=>{const _0x52315b=_0x28d80b,_0x1ddc06=_0x17f6ad['getUnitId']();this['_entities']['has'](_0x1ddc06)||this[_0x52315b(0x142)](_0x1ddc06);}),this[_0x28d80b(0xeb)][_0x28d80b(0xfb)](_0x152fad[_0x28d80b(0x135)])[_0x28d80b(0xbb)](_0xb6c43e(this['dispose$']))[_0x28d80b(0xcc)](_0x41d0d4=>{const _0x2918c1=_0x28d80b,_0xafe8b7=_0x41d0d4[_0x2918c1(0x129)](),_0x67f92b=this['_entities']['get'](_0xafe8b7);_0x67f92b==null||_0x67f92b[_0x2918c1(0x125)]();});}async['_startLiveShareCoordinator'](_0x59b2a2){const _0x4c2719=_0x3c4d26,_0x57853c=await this[_0x4c2719(0x10c)][_0x4c2719(0xd2)](_0x59b2a2),_0x35c996=this[_0x4c2719(0xfc)]['createInstance'](N,_0x59b2a2,_0x57853c);return _0x35c996[_0x4c2719(0xcd)](),this['_entities'][_0x4c2719(0x118)](_0x59b2a2,_0x35c996),_0x35c996;}};S=Y([_(0x0,_0x4761e9),_(0x1,_0x1668bc(_0x465048)),_(0x2,_0x1668bc(_0xad0194))],S);var c=(_0x324eee=>(_0x324eee[_0x3c4d26(0xc1)]='offline',_0x324eee[_0x3c4d26(0xf8)]=_0x3c4d26(0x115),_0x324eee[_0x3c4d26(0xfe)]=_0x3c4d26(0xf2),_0x324eee['NOT_FOLLOWING']=_0x3c4d26(0xc9),_0x324eee['PRESENTING']='presenting',_0x324eee))(c||{});const Ce=_0x3c4d26(0x148),De=0xc8;let N=class extends _0x32eff8{constructor(_0x55baff,_0x1611db,_0x108f5a,_0x1fe790,_0x1d08ce){const _0x5e2d5a=_0x3c4d26;super(),u(this,_0x5e2d5a(0xd3),new _0x43bb1a(_0x5e2d5a(0x115))),u(this,_0x5e2d5a(0x147),this[_0x5e2d5a(0xd3)][_0x5e2d5a(0x136)]()),u(this,_0x5e2d5a(0xa7),!0x1),u(this,_0x5e2d5a(0x145),null),u(this,_0x5e2d5a(0x143),null),(this[_0x5e2d5a(0x149)]=_0x55baff,this[_0x5e2d5a(0xd9)]=_0x1611db,this['_configService']=_0x108f5a,this[_0x5e2d5a(0x141)]=_0x1fe790,this['_commandService']=_0x1d08ce);}get[_0x3c4d26(0xe4)](){const _0x414847=_0x3c4d26;return this[_0x414847(0xd3)][_0x414847(0x128)]();}[_0x3c4d26(0x125)](){const _0x2e2a16=_0x3c4d26;var _0x490f93;(_0x490f93=this['_commandDisposable'])==null||_0x490f93[_0x2e2a16(0x125)](),this[_0x2e2a16(0xd3)][_0x2e2a16(0xba)]('idle'),this[_0x2e2a16(0xd3)][_0x2e2a16(0x120)]();}['getStatus'](){const _0x33dd97=_0x3c4d26;return this[_0x33dd97(0xe4)];}['init'](){const _0x347d6e=_0x3c4d26;this[_0x347d6e(0xa7)]||(this[_0x347d6e(0xa7)]=!0x0,this[_0x347d6e(0xd9)][_0x347d6e(0xef)][_0x347d6e(0xbb)](_0xb6c43e(this[_0x347d6e(0x117)]))[_0x347d6e(0xcc)](_0x510c85=>{const _0xc2cb89=_0x347d6e;switch(_0x510c85){case _0x33d898[_0xc2cb89(0xc1)]:this[_0xc2cb89(0x107)]();break;case _0x33d898[_0xc2cb89(0x14b)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x347d6e(0x126)][_0x347d6e(0xbb)](_0xb6c43e(this[_0x347d6e(0x117)]))[_0x347d6e(0xcc)](_0x14957e=>{const _0x32624b=_0x347d6e,{eventID:_0x465ac7}=_0x14957e;switch(_0x465ac7){case _0x27f01f[_0x32624b(0xd8)]:this[_0x32624b(0x110)](_0x14957e);break;case _0x27f01f['LIVESHARE_OPERATION']:this[_0x32624b(0xec)](_0x14957e);break;case _0x27f01f[_0x32624b(0x10d)]:this[_0x32624b(0xf6)]();break;case _0x27f01f[_0x32624b(0x10f)]:this[_0x32624b(0xbd)](_0x14957e);break;}}));}[_0x3c4d26(0x13b)](){const _0x5c06d7=_0x3c4d26;this[_0x5c06d7(0xd9)][_0x5c06d7(0xac)]({'eventID':_0x27f01f[_0x5c06d7(0xe9)],'data':{'unitID':this[_0x5c06d7(0x149)],'userID':this['_collabSession'][_0x5c06d7(0xfa)]()}},this[_0x5c06d7(0x149)]);}[_0x3c4d26(0x130)](){const _0x3e5788=_0x3c4d26;this['_status']===_0x3e5788(0x13e)&&(this[_0x3e5788(0xd3)][_0x3e5788(0xba)](_0x3e5788(0x115)),this['_collabSession'][_0x3e5788(0xac)]({'eventID':_0x27f01f['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e5788(0x149)]));}[_0x3c4d26(0x140)](){const _0x21b915=_0x3c4d26;this[_0x21b915(0xe4)]===_0x21b915(0xc9)&&(this[_0x21b915(0xd3)][_0x21b915(0xba)](_0x21b915(0xf2)),this[_0x21b915(0x106)]());}[_0x3c4d26(0xea)](){const _0x9e7676=_0x3c4d26;this[_0x9e7676(0xe4)]==='following'&&this[_0x9e7676(0xda)]();}[_0x3c4d26(0x110)](_0x2a2ea6){const _0x366d1e=_0x3c4d26,{presenter:_0x442af7}=_0x2a2ea6[_0x366d1e(0xc0)],_0x4d956e=this[_0x366d1e(0xd9)]['getMemberID']();this[_0x366d1e(0x143)]=_0x442af7,_0x442af7===_0x4d956e?(this[_0x366d1e(0xda)](),this[_0x366d1e(0xb3)]()):this['_status']!==_0x366d1e(0xc9)&&(this[_0x366d1e(0xe3)](),this[_0x366d1e(0x106)]());}[_0x3c4d26(0x102)](){const _0x4bda21=_0x3c4d26,_0x49ba97={'eventID':_0x27f01f[_0x4bda21(0x14c)]};this[_0x4bda21(0xd9)]['send'](_0x49ba97,this['_unitID']);}[_0x3c4d26(0xf6)](){const _0x4dc501=_0x3c4d26;this[_0x4dc501(0x143)]=null,this[_0x4dc501(0xe4)]!=='presenting'&&this[_0x4dc501(0x11d)]();}['_handleNewChangeSets'](_0x5bf6ea){const _0x555bc3=_0x3c4d26;if(this[_0x555bc3(0xe4)]===_0x555bc3(0xf2)&&this['_presenter']===_0x5bf6ea['data'][_0x555bc3(0xc8)]){const _0x238534=_0x5e01ee(_0x5bf6ea[_0x555bc3(0xc0)])[_0x555bc3(0x127)][_0x555bc3(0xe0)]()[_0x555bc3(0x13f)](_0x1076b8=>_0x1076b8['id']===_0x4dfec7['id']);if(_0x238534){const _0xf64127=_0x238534['params'][_0x555bc3(0xd4)],_0x3f9390=_0x238534['params'][_0x555bc3(0x13c)]['id'];setTimeout(()=>{const _0x543a0c=_0x555bc3;this['_commandService'][_0x543a0c(0xb8)](_0x229740['id'],{'unitId':_0xf64127,'subUnitId':_0x3f9390},{'fromCollab':!0x0});});}}}[_0x3c4d26(0xb3)](){const _0x3e71e4=_0x3c4d26;this[_0x3e71e4(0xd3)][_0x3e71e4(0xba)](_0x3e71e4(0x13e));const _0x2a88ac=new Map(),_0x4e1955=this[_0x3e71e4(0x145)]=new _0x2cef5d();_0x4e1955[_0x3e71e4(0x119)](_0x4d1cb7(()=>{const _0x5d5b78=_0x3e71e4;_0x2a88ac['forEach'](_0x1a6fbf=>_0x1a6fbf['complete']()),_0x2a88ac[_0x5d5b78(0x14a)]();})),_0x4e1955[_0x3e71e4(0x119)](this[_0x3e71e4(0xb4)]['onCommandExecuted'](_0x4f67a9=>{const _0x425d30=_0x3e71e4;var _0x3436a6;if(_0x4f67a9[_0x425d30(0x114)]!==_0x480eb2['OPERATION']||!this[_0x425d30(0x141)][_0x425d30(0xcf)](_0x4f67a9['id']))return;const {id:_0x2400b4}=_0x4f67a9;let _0x2dd10a;_0x2a88ac[_0x425d30(0xb2)](_0x2400b4)?_0x2dd10a=_0x2a88ac['get'](_0x2400b4):(_0x2dd10a=new _0x5d2aa3(),_0x2a88ac['set'](_0x2400b4,_0x2dd10a),_0x2dd10a[_0x425d30(0xbb)](_0x3e47f7((_0x3436a6=this[_0x425d30(0xb5)][_0x425d30(0x10b)](Ce))!=null?_0x3436a6:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x425d30(0xcc)](_0x230643=>{const _0x33f4b9=_0x425d30;this[_0x33f4b9(0xd9)][_0x33f4b9(0xac)]({'eventID':_0x27f01f[_0x33f4b9(0x131)],'data':{'unitID':this[_0x33f4b9(0x149)],'operations':{[_0x230643['id']]:{'id':_0x230643['id'],'params':JSON[_0x33f4b9(0xf9)](_0x230643['params'])}}}},this['_unitID']);})),_0x2dd10a['next'](_0x4f67a9);})),this['_liveShareService']['getInitialStates'](this[_0x3e71e4(0x149)])[_0x3e71e4(0x109)](_0x428b9c=>this[_0x3e71e4(0xd9)][_0x3e71e4(0xac)]({'eventID':_0x27f01f[_0x3e71e4(0x131)],'data':{'unitID':this[_0x3e71e4(0x149)],'operations':{[_0x428b9c['id']]:{'id':_0x428b9c['id'],'params':JSON[_0x3e71e4(0xf9)](_0x428b9c[_0x3e71e4(0x105)])}}}},this[_0x3e71e4(0x149)]));}[_0x3c4d26(0xe3)](){const _0x202bc7=_0x3c4d26;var _0x1f4d4f;this[_0x202bc7(0xd3)][_0x202bc7(0xba)]('idle'),(_0x1f4d4f=this['_commandDisposable'])==null||_0x1f4d4f[_0x202bc7(0x125)](),this[_0x202bc7(0x145)]=null;}[_0x3c4d26(0x106)](){const _0x9a383b=_0x3c4d26;var _0x49474d;(_0x49474d=this['_commandDisposable'])==null||_0x49474d[_0x9a383b(0x125)](),this['_status$'][_0x9a383b(0xba)]('following');}[_0x3c4d26(0x11d)](){const _0x3815ed=_0x3c4d26;var _0x50b522;this[_0x3815ed(0xd3)][_0x3815ed(0xba)](_0x3815ed(0x115)),(_0x50b522=this[_0x3815ed(0x145)])==null||_0x50b522[_0x3815ed(0x125)](),this[_0x3815ed(0x145)]=null;}[_0x3c4d26(0xda)](){const _0x272418=_0x3c4d26;var _0x33e63a;this['_status$'][_0x272418(0xba)]('not-following'),(_0x33e63a=this[_0x272418(0x145)])==null||_0x33e63a[_0x272418(0x125)]();}['_handleOperation'](_0x40a3f3){const _0xc53a88=_0x3c4d26;if(['presenting',_0xc53a88(0xc9),_0xc53a88(0xbf)][_0xc53a88(0xee)](this['_status'])||!_0x40a3f3[_0xc53a88(0xc0)][_0xc53a88(0x144)]||_0x40a3f3[_0xc53a88(0xc0)]['presenter']===this['_collabSession'][_0xc53a88(0xfa)]())return;this[_0xc53a88(0xe4)]==='idle'&&this[_0xc53a88(0x106)]();const _0x5acf65=_0x40a3f3[_0xc53a88(0xc0)][_0xc53a88(0xad)];Object['values'](_0x5acf65)[_0xc53a88(0x109)](_0x27fc08=>{const _0x2de8aa=_0xc53a88;this[_0x2de8aa(0xb4)][_0x2de8aa(0xb8)](_0x27fc08['id'],_0x27fc08[_0x2de8aa(0x105)]?JSON[_0x2de8aa(0x12c)](_0x27fc08[_0x2de8aa(0x105)]):null,{'fromCollab':!0x0});});}[_0x3c4d26(0x107)](){const _0x29ada2=_0x3c4d26;var _0x560c99;this[_0x29ada2(0xd3)][_0x29ada2(0xba)](_0x29ada2(0xbf)),(_0x560c99=this['_commandDisposable'])==null||_0x560c99[_0x29ada2(0x125)]();}[_0x3c4d26(0xc5)](){const _0xd9f80e=_0x3c4d26;this[_0xd9f80e(0xd3)][_0xd9f80e(0xba)](_0xd9f80e(0x115)),this[_0xd9f80e(0x102)]();}};N=Y([_(0x2,_0x470b5c),_(0x3,_0x1668bc(L)),_(0x4,_0x154d48)],N);function Le(){const _0x18b53d=_0x3c4d26,_0x48e45d=_0x1a8a0d(S),_0x1a1d3a=_0x1a8a0d(_0x4761e9),_0x515ad1=_0x59b5ab(()=>_0x1a1d3a[_0x18b53d(0x13a)](_0x152fad[_0x18b53d(0x135)]),void 0x0,!0x1,[]),[_0x34dc5e,_0x270499]=_0x45446d(null),[_0x137c28,_0x318fb4]=_0x45446d(c['IDLE']),_0x85a5e4=_0x1b9081(null);return _0x15928b(()=>(_0x515ad1&&_0x48e45d[_0x18b53d(0xa9)](_0x515ad1[_0x18b53d(0x129)]())[_0x18b53d(0xed)](_0x1295e4=>{const _0xbccb9c=_0x18b53d;_0x270499(_0x1295e4),_0x85a5e4[_0xbccb9c(0xa4)]=_0x1295e4[_0xbccb9c(0x147)][_0xbccb9c(0xcc)](_0x338496=>{_0x318fb4(_0x338496);});}),()=>{const _0x382495=_0x18b53d;var _0x3655a8;(_0x3655a8=_0x85a5e4[_0x382495(0xa4)])==null||_0x3655a8[_0x382495(0x146)](),_0x85a5e4['current']=null;}),[_0x515ad1,_0x48e45d]),_0x34dc5e?_0x297ed2(_0x2571f0,{'align':_0x18b53d(0xe5),'disabled':_0x137c28===c['OFFLINE'],'className':_0x18b53d(0x11c),'overlay':_0x297ed2(Re,{'status':_0x137c28,'coordinator':_0x34dc5e}),'children':_0x297ed2(_0x18b53d(0x10e),{'className':_0x43444c(_0x18b53d(0xff),{'univer-cursor-not-allowed':_0x137c28===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x137c28!==c['OFFLINE']}),'type':_0x18b53d(0x10e),'children':_0x297ed2(W,{'className':_0x18b53d(0x12d)})})}):null;}function Re(_0x3a612a){const _0x2078d4=_0x3c4d26,{status:_0x4a74cf,coordinator:_0xd31a3c}=_0x3a612a;switch(_0x4a74cf){case c[_0x2078d4(0xf8)]:return _0x297ed2($e,{'coordinator':_0xd31a3c});case c[_0x2078d4(0xfe)]:return _0x297ed2(xe,{'coordinator':_0xd31a3c});case c[_0x2078d4(0x104)]:return _0x297ed2(Pe,{'coordinator':_0xd31a3c});case c[_0x2078d4(0xc1)]:return _0x297ed2(Te,{});case c[_0x2078d4(0x11a)]:return _0x297ed2(Ae,{'coordinator':_0xd31a3c});default:return null;}}function $e(_0x542678){const _0x39a2f8=_0x3c4d26,{coordinator:_0x1a5542}=_0x542678;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x39a2f8(0xd5),{'className':_0x39a2f8(0x150),'children':_0x39a2f8(0x113)}),_0x297ed2(_0x262bb5,{'onClick':()=>_0x1a5542[_0x39a2f8(0x13b)](),'children':_0x39a2f8(0x11e)})]});}function xe(_0x5b52c6){const _0x2dfd0a=_0x3c4d26,{coordinator:_0x8ed1ea}=_0x5b52c6;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x2dfd0a(0xd5),{'className':_0x2dfd0a(0x150),'children':_0x2dfd0a(0xf5)}),_0x297ed2(_0x262bb5,{'onClick':()=>_0x8ed1ea['stopFollowing'](),'children':_0x2dfd0a(0xe6)})]});}function Pe(_0x43531d){const _0xe1135b=_0x3c4d26,{coordinator:_0x46a62b}=_0x43531d;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0xe1135b(0xd5),{'className':_0xe1135b(0x150),'children':_0xe1135b(0xf0)}),_0x297ed2(_0x262bb5,{'variant':_0xe1135b(0x14f),'onClick':()=>_0x46a62b[_0xe1135b(0x140)](),'children':_0xe1135b(0x10a)})]});}function Ae(_0x5b88bc){const _0x3b6018=_0x3c4d26,{coordinator:_0x5a4c6d}=_0x5b88bc;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x3b6018(0xd5),{'className':_0x3b6018(0x150),'children':_0x3b6018(0x100)}),_0x297ed2(_0x262bb5,{'variant':_0x3b6018(0xc2),'onClick':()=>_0x5a4c6d[_0x3b6018(0x130)](),'children':_0x3b6018(0x108)})]});}function Te(){const _0x4ad64f=_0x3c4d26;return _0x297ed2(_0x20d81a,{'children':_0x4ad64f(0xd1)});}var Fe=Object[_0x3c4d26(0x111)],He=(_0x53d57b,_0x497c25,_0x3c8ba5,_0x3476e1)=>{for(var _0x1fe884=_0x3476e1>0x1?void 0x0:_0x3476e1?Fe(_0x497c25,_0x3c8ba5):_0x497c25,_0xa70e93=_0x53d57b['length']-0x1,_0x251851;_0xa70e93>=0x0;_0xa70e93--)(_0x251851=_0x53d57b[_0xa70e93])&&(_0x1fe884=_0x251851(_0x1fe884)||_0x1fe884);return _0x1fe884;},A=(_0x1755e1,_0x4191fa)=>(_0x1f5d4b,_0x460ddf)=>_0x4191fa(_0x1f5d4b,_0x460ddf,_0x1755e1);let m=class extends _0x167de9{constructor(_0x4eda34,_0x2340ce){const _0x4ff14c=_0x3c4d26;super(),this[_0x4ff14c(0xfc)]=_0x4eda34,this[_0x4ff14c(0xd0)]=_0x2340ce,this['_mountLiveShare']();}[_0x3c4d26(0xa6)](){const _0x3e2761=_0x3c4d26;this[_0x3e2761(0xa5)](this[_0x3e2761(0xd0)][_0x3e2761(0x122)](_0x13b76f[_0x3e2761(0x116)],()=>_0x412f64(Le,this[_0x3e2761(0xfc)])));}};m=He([A(0x0,_0x1668bc(_0x465048)),A(0x1,_0x172fbc)],m);const ye=_0x3c4d26(0xc6),T={};var Ue=Object[_0x3c4d26(0x111)],Ve=(_0x38c75d,_0x2f2f86,_0x4db672,_0xdfa37)=>{const _0x2a9401=_0x3c4d26;for(var _0x230c07=_0xdfa37>0x1?void 0x0:_0xdfa37?Ue(_0x2f2f86,_0x4db672):_0x2f2f86,_0x4d6b0e=_0x38c75d[_0x2a9401(0xb1)]-0x1,_0x2954d2;_0x4d6b0e>=0x0;_0x4d6b0e--)(_0x2954d2=_0x38c75d[_0x4d6b0e])&&(_0x230c07=_0x2954d2(_0x230c07)||_0x230c07);return _0x230c07;},je=(_0x2761f8,_0x4220cd)=>(_0x461ee3,_0x58036a)=>_0x4220cd(_0x461ee3,_0x58036a,_0x2761f8);let I=class extends _0x167de9{constructor(_0x2a65d0){const _0x49ca69=_0x3c4d26;super(),this[_0x49ca69(0x141)]=_0x2a65d0,this[_0x49ca69(0xa7)]();}[_0x3c4d26(0xa7)](){const _0x52b65d=_0x3c4d26;[_0x477fa1['id'],_0x1426bd['id'],_0x229740['id']][_0x52b65d(0x109)](_0x44551a=>{const _0x3829a1=_0x52b65d;this['disposeWithMe'](this['_liveShareService'][_0x3829a1(0xe7)](_0x44551a));});}};I=Ve([je(0x0,_0x1668bc(L))],I);var Me=Object['defineProperty'],ke=Object[_0x3c4d26(0x111)],Ge=(_0x552387,_0x4a1693,_0xc41582)=>_0x4a1693 in _0x552387?Me(_0x552387,_0x4a1693,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc41582}):_0x552387[_0x4a1693]=_0xc41582,We=(_0x1c7235,_0x53ca88,_0x23f1e4,_0x337006)=>{const _0x55521c=_0x3c4d26;for(var _0x4bca3f=_0x337006>0x1?void 0x0:_0x337006?ke(_0x53ca88,_0x23f1e4):_0x53ca88,_0x318f02=_0x1c7235[_0x55521c(0xb1)]-0x1,_0x576d87;_0x318f02>=0x0;_0x318f02--)(_0x576d87=_0x1c7235[_0x318f02])&&(_0x4bca3f=_0x576d87(_0x4bca3f)||_0x4bca3f);return _0x4bca3f;},F=(_0x818b45,_0x2a99a3)=>(_0x13d330,_0x3c945f)=>_0x2a99a3(_0x13d330,_0x3c945f,_0x818b45),B=(_0x19c8c9,_0x1b64ec,_0x14ffa9)=>Ge(_0x19c8c9,typeof _0x1b64ec!='symbol'?_0x1b64ec+'':_0x1b64ec,_0x14ffa9);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x8999f6{constructor(_0x8fc644=T,_0x5c3784,_0x375c8a){const _0x310cb4=_0x3c4d26;super(),this[_0x310cb4(0x133)]=_0x8fc644,this[_0x310cb4(0xfc)]=_0x5c3784,this[_0x310cb4(0xb5)]=_0x375c8a;const {..._0x233474}=_0x5cf637({},T,this[_0x310cb4(0x133)]);this['_configService']['setConfig'](ye,_0x233474);}['onStarting'](){const _0x12a848=_0x3c4d26;_0x385419(this[_0x12a848(0xfc)],_0xc75ac0([[L],[S],[I],[m]],this[_0x12a848(0x133)][_0x12a848(0x11f)])),_0xaa1b3f(this['_injector'],[[I]]);}[_0x3c4d26(0x124)](){_0xaa1b3f(this['_injector'],[[m]]);}};B(b,_0x3c4d26(0x114),_0x152fad[_0x3c4d26(0xdb)]),B(b,'pluginName',Ye),b=We([_0x3124b9(_0x57a458),F(0x1,_0x1668bc(_0x465048)),F(0x2,_0x470b5c)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x29b382=_0x263b;(function(_0x1ce8e6,_0x292858){const _0x2fd5f1=_0x263b,_0x1c6ba2=_0x1ce8e6();while(!![]){try{const _0x398829=parseInt(_0x2fd5f1(0x10b))/0x1+-parseInt(_0x2fd5f1(0xe5))/0x2*(parseInt(_0x2fd5f1(0x137))/0x3)+parseInt(_0x2fd5f1(0x12d))/0x4+parseInt(_0x2fd5f1(0x123))/0x5*(parseInt(_0x2fd5f1(0xd3))/0x6)+-parseInt(_0x2fd5f1(0x14b))/0x7*(parseInt(_0x2fd5f1(0xaf))/0x8)+parseInt(_0x2fd5f1(0xeb))/0x9+-parseInt(_0x2fd5f1(0x12e))/0xa*(parseInt(_0x2fd5f1(0x129))/0xb);if(_0x398829===_0x292858)break;else _0x1c6ba2['push'](_0x1c6ba2['shift']());}catch(_0x59b1d4){_0x1c6ba2['push'](_0x1c6ba2['shift']());}}}(_0x40b0,0x9d948));var J=Object['defineProperty'],K=(_0x4e65f1,_0xe9b685,_0x46b73a)=>_0xe9b685 in _0x4e65f1?J(_0x4e65f1,_0xe9b685,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46b73a}):_0x4e65f1[_0xe9b685]=_0x46b73a,u=(_0xc5cc48,_0x556804,_0xf06fcf)=>K(_0xc5cc48,typeof _0x556804!=_0x29b382(0x13d)?_0x556804+'':_0x556804,_0xf06fcf);import{Disposable as _0x54703,toDisposable as _0x73bcdc,Inject as _0x4473be,Injector as _0x567548,RxDisposable as _0x1fd51a,UniverInstanceType as _0x146358,DisposableCollection as _0x1960ad,CommandType as _0x4d19c4,IUniverInstanceService as _0x4c2f77,IConfigService as _0x28d418,ICommandService as _0x344f5e,DependentOn as _0x18815f,Plugin as _0x51513e,merge as _0x3675e2,registerDependencies as _0x563134,mergeOverrideWithDependencies as _0x2e4cdf,touchDependencies as _0x5d1821}from'@univerjs/core';import{useDependency as _0x3a5ae3,useObservable as _0x5d50ae,BuiltInUIPart as _0x5162da,connectInjector as _0x28a5b4,IUIPartsService as _0x689301}from'@univerjs/ui';import{jsx as _0x380609,jsxs as _0x290402,Fragment as _0x382570}from'react/jsx-runtime';import{Dropdown as _0x4d6704,clsx as _0x9d875,Button as _0xfebf7c}from'@univerjs/design';import{useRef as _0x3cec89,createElement as _0x39a169,forwardRef as _0x2c0538,useState as _0x885ddc,useEffect as _0x1d338e}from'react';import{CollaborationEvent as _0x42ea0b,parseProtocolChangeset as _0x5c427d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1989c5,SessionStatus as _0x32c3ff,UniverCollaborationClientPlugin as _0x43b951}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1e8650,SetWorksheetActiveOperation as _0x173dc8}from'@univerjs/sheets';import{BehaviorSubject as _0x588d75,Subject as _0x159389}from'rxjs';import{takeUntil as _0x41ca2b,throttleTime as _0xf172dd}from'rxjs/operators';import{SetZoomRatioOperation as _0x410861,SetScrollOperation as _0x46540b}from'@univerjs/sheets-ui';function k({ref:_0x39ecd6,..._0x18f897}){const _0x469718=_0x29b382,{icon:_0x578422,id:_0x3c8fd3,className:_0x12c834,extend:_0x589e45,..._0x32067d}=_0x18f897,_0x2b007e=(_0x469718(0xf9)+_0x3c8fd3+'\x20'+(_0x12c834||''))['trim'](),_0x160c12=_0x3cec89('_'+Oe());return G(_0x578422,''+_0x3c8fd3,{'defIds':_0x578422['defIds'],'idSuffix':_0x160c12[_0x469718(0x14c)]},{'ref':_0x39ecd6,'className':_0x2b007e,..._0x32067d},_0x589e45);}function G(_0x2c72d9,_0xd9c0a6,_0x52bc0f,_0x2f5f1f,_0x24ee5f){const _0x4c6621=_0x29b382;return _0x39a169(_0x2c72d9[_0x4c6621(0x135)],{'key':_0xd9c0a6,...be(_0x2c72d9,_0x52bc0f,_0x24ee5f),..._0x2f5f1f},(Ee(_0x2c72d9,_0x52bc0f)[_0x4c6621(0xfd)]||[])[_0x4c6621(0x141)]((_0x2679f2,_0x240771)=>G(_0x2679f2,_0xd9c0a6+'-'+_0x2c72d9[_0x4c6621(0x135)]+'-'+_0x240771,_0x52bc0f,void 0x0,_0x24ee5f)));}function be(_0x1d96a6,_0xf7f7dc,_0x2ae165){const _0x24cb72=_0x29b382,_0x28c261={..._0x1d96a6[_0x24cb72(0xdd)]};_0x2ae165!=null&&_0x2ae165[_0x24cb72(0xdf)]&&_0x28c261[_0x24cb72(0x119)]==='colorChannel1'&&(_0x28c261['fill']=_0x2ae165[_0x24cb72(0xdf)]),_0x1d96a6[_0x24cb72(0x135)]===_0x24cb72(0x11e)&&_0x28c261['id']&&(_0x28c261['id']=_0x28c261['id']+_0xf7f7dc[_0x24cb72(0xcb)]),Object[_0x24cb72(0x109)](_0x28c261)[_0x24cb72(0xc8)](([_0x51324d,_0x46e47c])=>{const _0x1a4117=_0x24cb72;_0x51324d==='mask'&&typeof _0x46e47c==_0x1a4117(0xda)&&(_0x28c261[_0x51324d]=_0x46e47c[_0x1a4117(0x147)](/url\(#(.*)\)/,'url(#$1'+_0xf7f7dc[_0x1a4117(0xcb)]+')'));});const {defIds:_0x1dc3a7}=_0xf7f7dc;return!_0x1dc3a7||_0x1dc3a7[_0x24cb72(0x140)]===0x0||(_0x1d96a6[_0x24cb72(0x135)]===_0x24cb72(0x149)&&_0x28c261[_0x24cb72(0x112)]&&(_0x28c261[_0x24cb72(0x112)]=_0x28c261[_0x24cb72(0x112)]+_0xf7f7dc[_0x24cb72(0xcb)]),Object['entries'](_0x28c261)[_0x24cb72(0xc8)](([_0x306597,_0x11d680])=>{const _0x50a44b=_0x24cb72;typeof _0x11d680==_0x50a44b(0xda)&&(_0x28c261[_0x306597]=_0x11d680[_0x50a44b(0x147)](/url\(#(.*)\)/,_0x50a44b(0xd5)+_0xf7f7dc[_0x50a44b(0xcb)]+')'));})),_0x28c261;}function Ee(_0x3bce5b,_0x5be26b){const _0x134cbc=_0x29b382;var _0x421156;const {defIds:_0x248bdd}=_0x5be26b;return!_0x248bdd||_0x248bdd['length']===0x0?_0x3bce5b:_0x3bce5b[_0x134cbc(0x135)]===_0x134cbc(0x148)&&((_0x421156=_0x3bce5b[_0x134cbc(0xfd)])!=null&&_0x421156[_0x134cbc(0x140)])?{..._0x3bce5b,'children':_0x3bce5b[_0x134cbc(0xfd)][_0x134cbc(0x141)](_0x1ed1b5=>typeof _0x1ed1b5[_0x134cbc(0xdd)]['id']==_0x134cbc(0xda)&&_0x248bdd&&_0x248bdd['includes'](_0x1ed1b5[_0x134cbc(0xdd)]['id'])?{..._0x1ed1b5,'attrs':{..._0x1ed1b5['attrs'],'id':_0x1ed1b5[_0x134cbc(0xdd)]['id']+_0x5be26b['idSuffix']}}:_0x1ed1b5)}:_0x3bce5b;}function Oe(){const _0x5902a2=_0x29b382;return Math[_0x5902a2(0xd1)]()[_0x5902a2(0xd6)](0x24)[_0x5902a2(0xb9)](0x2,0x8);}k[_0x29b382(0xe7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x29b382(0xc4),'fill':_0x29b382(0xf1),'viewBox':_0x29b382(0x13b),'width':_0x29b382(0xde),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x29b382(0xd0),'d':_0x29b382(0xf0)}},{'tag':_0x29b382(0xce),'attrs':{'fill':_0x29b382(0xd0),'d':_0x29b382(0x10f),'fillRule':_0x29b382(0x12c),'clipRule':_0x29b382(0x12c)}}]},W=_0x2c0538(function(_0x4d6226,_0x503cfc){const _0x3074c8=_0x29b382;return _0x39a169(k,Object[_0x3074c8(0x127)]({},_0x4d6226,{'id':_0x3074c8(0x146),'ref':_0x503cfc,'icon':we}));});W[_0x29b382(0xe7)]=_0x29b382(0xe8);class L extends _0x54703{constructor(){const _0x2e8c52=_0x29b382;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2e8c52(0x126),new Set());}['registerSharedOperation'](_0xc73c3b){const _0x88d94b=_0x29b382;return this[_0x88d94b(0xe4)][_0x88d94b(0xcd)](_0xc73c3b),_0x73bcdc(()=>this[_0x88d94b(0xe4)][_0x88d94b(0xa6)](_0xc73c3b));}[_0x29b382(0x100)](_0x51074d){const _0x339e68=_0x29b382;return this['_reporters'][_0x339e68(0xcd)](_0x51074d),_0x73bcdc(()=>this[_0x339e68(0x126)][_0x339e68(0xa6)](_0x51074d));}[_0x29b382(0x115)](_0x1b0409){const _0x1eb0a4=_0x29b382;return this[_0x1eb0a4(0xe4)]['has'](_0x1b0409);}[_0x29b382(0x108)](_0x54f214){return Array['from'](this['_reporters'])['map'](_0x3797c2=>_0x3797c2(_0x54f214));}}function _0x263b(_0x217ea8,_0x93f07e){_0x217ea8=_0x217ea8-0xa6;const _0x40b001=_0x40b0();let _0x263b9e=_0x40b001[_0x217ea8];return _0x263b9e;}var Ne=Object[_0x29b382(0x105)],Y=(_0x3bdf39,_0x2ce51a,_0x48feb3,_0x477b32)=>{const _0x2bcb83=_0x29b382;for(var _0x5d320b=_0x477b32>0x1?void 0x0:_0x477b32?Ne(_0x2ce51a,_0x48feb3):_0x2ce51a,_0x4da31e=_0x3bdf39[_0x2bcb83(0x140)]-0x1,_0x3a31f4;_0x4da31e>=0x0;_0x4da31e--)(_0x3a31f4=_0x3bdf39[_0x4da31e])&&(_0x5d320b=_0x3a31f4(_0x5d320b)||_0x5d320b);return _0x5d320b;},_=(_0x41aa5c,_0x3e390b)=>(_0x175c9f,_0x4fc452)=>_0x3e390b(_0x175c9f,_0x4fc452,_0x41aa5c);let S=class extends _0x1fd51a{constructor(_0x24c49b,_0x1a4f58,_0x4b8a47){const _0x1b78b1=_0x29b382;super(),u(this,_0x1b78b1(0xe3),new Map()),(this[_0x1b78b1(0x13e)]=_0x24c49b,this[_0x1b78b1(0xcf)]=_0x1a4f58,this[_0x1b78b1(0x12f)]=_0x4b8a47,this[_0x1b78b1(0xc2)]());}async[_0x29b382(0x14a)](_0x37dabe){const _0x5888c0=_0x29b382;return this[_0x5888c0(0xe3)][_0x5888c0(0x132)](_0x37dabe)||await this['_startLiveShareCoordinator'](_0x37dabe),this[_0x5888c0(0xe3)]['get'](_0x37dabe);}[_0x29b382(0xcc)](_0x48086c){const _0x8aca06=_0x29b382;var _0x5af918;return(_0x5af918=this[_0x8aca06(0xe3)][_0x8aca06(0xb1)](_0x48086c))!=null?_0x5af918:null;}[_0x29b382(0xc2)](){const _0x36e23=_0x29b382;this[_0x36e23(0x13e)][_0x36e23(0x113)](_0x146358['UNIVER_SHEET'])[_0x36e23(0x12a)](_0x41ca2b(this[_0x36e23(0xf3)]))['subscribe'](async _0x55c54f=>{const _0x45146a=_0x36e23,_0x578a58=_0x55c54f['getUnitId']();this[_0x45146a(0xe3)][_0x45146a(0x132)](_0x578a58)||this[_0x45146a(0xae)](_0x578a58);}),this['_univerInstanceService'][_0x36e23(0xab)](_0x146358['UNIVER_SHEET'])[_0x36e23(0x12a)](_0x41ca2b(this['dispose$']))['subscribe'](_0x4a5626=>{const _0x234bbc=_0x36e23,_0x55f85a=_0x4a5626[_0x234bbc(0x120)](),_0x254b3d=this[_0x234bbc(0xe3)]['get'](_0x55f85a);_0x254b3d==null||_0x254b3d['dispose']();});}async[_0x29b382(0xae)](_0x443bf3){const _0x599137=_0x29b382,_0x3a7e49=await this['_collabSessionService'][_0x599137(0xf4)](_0x443bf3),_0x40dd42=this['_injector'][_0x599137(0x125)](N,_0x443bf3,_0x3a7e49);return _0x40dd42['init'](),this[_0x599137(0xe3)][_0x599137(0x102)](_0x443bf3,_0x40dd42),_0x40dd42;}};S=Y([_(0x0,_0x4c2f77),_(0x1,_0x4473be(_0x567548)),_(0x2,_0x4473be(_0x1989c5))],S);var c=(_0x20b90f=>(_0x20b90f[_0x29b382(0xf2)]='offline',_0x20b90f[_0x29b382(0x11b)]=_0x29b382(0x14f),_0x20b90f[_0x29b382(0xea)]=_0x29b382(0xb5),_0x20b90f[_0x29b382(0xf6)]='not-following',_0x20b90f[_0x29b382(0xf7)]='presenting',_0x20b90f))(c||{});const Ce=_0x29b382(0x11a),De=0xc8;let N=class extends _0x1fd51a{constructor(_0x597052,_0x373bc7,_0x39b7c3,_0xe6295,_0x48b918){const _0x44884a=_0x29b382;super(),u(this,_0x44884a(0xee),new _0x588d75(_0x44884a(0x14f))),u(this,'status$',this[_0x44884a(0xee)][_0x44884a(0xca)]()),u(this,_0x44884a(0xc2),!0x1),u(this,_0x44884a(0x122),null),u(this,_0x44884a(0x13a),null),(this['_unitID']=_0x597052,this[_0x44884a(0xf8)]=_0x373bc7,this['_configService']=_0x39b7c3,this['_liveShareService']=_0xe6295,this[_0x44884a(0xad)]=_0x48b918);}get['_status'](){const _0x2c695b=_0x29b382;return this[_0x2c695b(0xee)][_0x2c695b(0x116)]();}[_0x29b382(0x131)](){const _0x33243c=_0x29b382;var _0x2fd904;(_0x2fd904=this['_commandDisposable'])==null||_0x2fd904[_0x33243c(0x131)](),this[_0x33243c(0xee)][_0x33243c(0xa8)](_0x33243c(0x14f)),this[_0x33243c(0xee)][_0x33243c(0x14e)]();}[_0x29b382(0xba)](){return this['_status'];}[_0x29b382(0x101)](){const _0x12e442=_0x29b382;this[_0x12e442(0xc2)]||(this[_0x12e442(0xc2)]=!0x0,this[_0x12e442(0xf8)]['sessionStatus$'][_0x12e442(0x12a)](_0x41ca2b(this['dispose$']))[_0x12e442(0xe0)](_0x575b93=>{const _0x47c24f=_0x12e442;switch(_0x575b93){case _0x32c3ff[_0x47c24f(0xf2)]:this['_handleOffline']();break;case _0x32c3ff[_0x47c24f(0xe2)]:this[_0x47c24f(0x121)]();break;}}),this[_0x12e442(0xf8)][_0x12e442(0x136)][_0x12e442(0x12a)](_0x41ca2b(this['dispose$']))['subscribe'](_0x47bf58=>{const _0x24933a=_0x12e442,{eventID:_0xe5d565}=_0x47bf58;switch(_0xe5d565){case _0x42ea0b[_0x24933a(0x107)]:this[_0x24933a(0x10d)](_0x47bf58);break;case _0x42ea0b['LIVESHARE_OPERATION']:this[_0x24933a(0xe6)](_0x47bf58);break;case _0x42ea0b[_0x24933a(0xbb)]:this['_handleTerminate']();break;case _0x42ea0b[_0x24933a(0xc6)]:this['_handleNewChangeSets'](_0x47bf58);break;}}));}[_0x29b382(0x150)](){const _0x586645=_0x29b382;this['_collabSession'][_0x586645(0xb4)]({'eventID':_0x42ea0b['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x586645(0xe9)]()}},this[_0x586645(0xd2)]);}['stopPresenting'](){const _0x19950f=_0x29b382;this[_0x19950f(0xfc)]==='presenting'&&(this[_0x19950f(0xee)][_0x19950f(0xa8)]('idle'),this['_collabSession']['send']({'eventID':_0x42ea0b[_0x19950f(0xbb)],'data':{'unitID':this[_0x19950f(0xd2)]}},this[_0x19950f(0xd2)]));}[_0x29b382(0xdb)](){const _0x1fd060=_0x29b382;this[_0x1fd060(0xfc)]==='not-following'&&(this[_0x1fd060(0xee)][_0x1fd060(0xa8)]('following'),this['_startFollowing']());}[_0x29b382(0x10a)](){const _0x1c5abb=_0x29b382;this[_0x1c5abb(0xfc)]===_0x1c5abb(0xb5)&&this[_0x1c5abb(0x11c)]();}['_handleNewHost'](_0x383a11){const _0x153dae=_0x29b382,{presenter:_0x2d195c}=_0x383a11['data'],_0x197ebf=this[_0x153dae(0xf8)][_0x153dae(0xe9)]();this['_presenter']=_0x2d195c,_0x2d195c===_0x197ebf?(this[_0x153dae(0x11c)](),this[_0x153dae(0x10c)]()):this[_0x153dae(0xfc)]!==_0x153dae(0xac)&&(this[_0x153dae(0xd4)](),this[_0x153dae(0x133)]());}[_0x29b382(0xb6)](){const _0x34568b=_0x29b382,_0x1fe1f5={'eventID':_0x42ea0b[_0x34568b(0x139)]};this['_collabSession'][_0x34568b(0xb4)](_0x1fe1f5,this[_0x34568b(0xd2)]);}[_0x29b382(0xc9)](){const _0x387883=_0x29b382;this[_0x387883(0x13a)]=null,this['_status']!==_0x387883(0x144)&&this[_0x387883(0x11f)]();}[_0x29b382(0x134)](_0x37dcd6){const _0x1cb319=_0x29b382;if(this['_status']===_0x1cb319(0xb5)&&this['_presenter']===_0x37dcd6['data']['memberID']){const _0x3ee52c=_0x5c427d(_0x37dcd6[_0x1cb319(0xb2)])[_0x1cb319(0xaa)][_0x1cb319(0xd9)]()[_0x1cb319(0x104)](_0x57a900=>_0x57a900['id']===_0x1e8650['id']);if(_0x3ee52c){const _0x10f065=_0x3ee52c['params'][_0x1cb319(0x114)],_0x11d92d=_0x3ee52c[_0x1cb319(0xbc)][_0x1cb319(0xfa)]['id'];setTimeout(()=>{const _0x3bdfb5=_0x1cb319;this[_0x3bdfb5(0xad)]['executeCommand'](_0x173dc8['id'],{'unitId':_0x10f065,'subUnitId':_0x11d92d},{'fromCollab':!0x0});});}}}[_0x29b382(0x10c)](){const _0x5039cb=_0x29b382;this[_0x5039cb(0xee)][_0x5039cb(0xa8)](_0x5039cb(0x144));const _0x5e59a9=new Map(),_0x1404c1=this[_0x5039cb(0x122)]=new _0x1960ad();_0x1404c1[_0x5039cb(0xcd)](_0x73bcdc(()=>{const _0x1c0de9=_0x5039cb;_0x5e59a9[_0x1c0de9(0xc8)](_0x282a9d=>_0x282a9d[_0x1c0de9(0x14e)]()),_0x5e59a9['clear']();})),_0x1404c1['add'](this[_0x5039cb(0xad)][_0x5039cb(0xbf)](_0x51fa24=>{const _0x484a=_0x5039cb;var _0x36b3e8;if(_0x51fa24[_0x484a(0x124)]!==_0x4d19c4[_0x484a(0xc3)]||!this['_liveShareService'][_0x484a(0x115)](_0x51fa24['id']))return;const {id:_0x4666fd}=_0x51fa24;let _0x3a22c9;_0x5e59a9[_0x484a(0x132)](_0x4666fd)?_0x3a22c9=_0x5e59a9[_0x484a(0xb1)](_0x4666fd):(_0x3a22c9=new _0x159389(),_0x5e59a9[_0x484a(0x102)](_0x4666fd,_0x3a22c9),_0x3a22c9[_0x484a(0x12a)](_0xf172dd((_0x36b3e8=this[_0x484a(0x145)][_0x484a(0x13f)](Ce))!=null?_0x36b3e8:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x484a(0xe0)](_0x369ed4=>{const _0x378d1b=_0x484a;this[_0x378d1b(0xf8)][_0x378d1b(0xb4)]({'eventID':_0x42ea0b[_0x378d1b(0x13c)],'data':{'unitID':this[_0x378d1b(0xd2)],'operations':{[_0x369ed4['id']]:{'id':_0x369ed4['id'],'params':JSON['stringify'](_0x369ed4[_0x378d1b(0xbc)])}}}},this[_0x378d1b(0xd2)]);})),_0x3a22c9['next'](_0x51fa24);})),this[_0x5039cb(0xc5)]['getInitialStates'](this[_0x5039cb(0xd2)])[_0x5039cb(0xc8)](_0x184e0d=>this[_0x5039cb(0xf8)][_0x5039cb(0xb4)]({'eventID':_0x42ea0b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5039cb(0xd2)],'operations':{[_0x184e0d['id']]:{'id':_0x184e0d['id'],'params':JSON[_0x5039cb(0xc0)](_0x184e0d[_0x5039cb(0xbc)])}}}},this[_0x5039cb(0xd2)]));}[_0x29b382(0xd4)](){const _0x4804e5=_0x29b382;var _0x37b52d;this[_0x4804e5(0xee)][_0x4804e5(0xa8)](_0x4804e5(0x14f)),(_0x37b52d=this[_0x4804e5(0x122)])==null||_0x37b52d['dispose'](),this[_0x4804e5(0x122)]=null;}[_0x29b382(0x133)](){const _0x1019a0=_0x29b382;var _0xae0f05;(_0xae0f05=this[_0x1019a0(0x122)])==null||_0xae0f05[_0x1019a0(0x131)](),this['_status$'][_0x1019a0(0xa8)](_0x1019a0(0xb5));}[_0x29b382(0x11f)](){const _0x59bcc0=_0x29b382;var _0x59b04c;this[_0x59bcc0(0xee)][_0x59bcc0(0xa8)](_0x59bcc0(0x14f)),(_0x59b04c=this[_0x59bcc0(0x122)])==null||_0x59b04c[_0x59bcc0(0x131)](),this[_0x59bcc0(0x122)]=null;}[_0x29b382(0x11c)](){const _0x1fdcb4=_0x29b382;var _0x30c30a;this[_0x1fdcb4(0xee)][_0x1fdcb4(0xa8)](_0x1fdcb4(0xac)),(_0x30c30a=this[_0x1fdcb4(0x122)])==null||_0x30c30a['dispose']();}[_0x29b382(0xe6)](_0x1208b5){const _0x2d05b0=_0x29b382;if([_0x2d05b0(0x144),_0x2d05b0(0xac),'offline'][_0x2d05b0(0xdc)](this['_status'])||!_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xb0)]||_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xb0)]===this[_0x2d05b0(0xf8)][_0x2d05b0(0xe9)]())return;this[_0x2d05b0(0xfc)]===_0x2d05b0(0x14f)&&this[_0x2d05b0(0x133)]();const _0x41070c=_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xc7)];Object['values'](_0x41070c)[_0x2d05b0(0xc8)](_0x37aa98=>{const _0x2f45c1=_0x2d05b0;this[_0x2f45c1(0xad)]['executeCommand'](_0x37aa98['id'],_0x37aa98[_0x2f45c1(0xbc)]?JSON['parse'](_0x37aa98[_0x2f45c1(0xbc)]):null,{'fromCollab':!0x0});});}[_0x29b382(0xc1)](){const _0x203d21=_0x29b382;var _0x177381;this['_status$'][_0x203d21(0xa8)](_0x203d21(0xb7)),(_0x177381=this['_commandDisposable'])==null||_0x177381['dispose']();}['_handleOnline'](){const _0x48a199=_0x29b382;this[_0x48a199(0xee)][_0x48a199(0xa8)](_0x48a199(0x14f)),this[_0x48a199(0xb6)]();}};N=Y([_(0x2,_0x28d418),_(0x3,_0x4473be(L)),_(0x4,_0x344f5e)],N);function _0x40b0(){const _0x25c4b1=['next','disposeWithMe','mutations','getTypeOfUnitDisposed$','not-following','_commandService','_startLiveShareCoordinator','47704HrXqZW','presenter','get','data','You\x27re\x20following\x20the\x20presenter','send','following','_fetchOperations','offline','status$','substring','getStatus','LIVESHARE_TERMINATE','params','unsubscribe','text','onCommandExecuted','stringify','_handleOffline','_init','OPERATION','http://www.w3.org/2000/svg','_liveShareService','NEW_CHANGESETS','operations','forEach','_handleTerminate','asObservable','idSuffix','getLiveShareCoordinatorSync','add','path','_injector','currentColor','random','_unitID','90XJRjHP','_stopPresenting','url(#$1','toString','_config','Start','reverse','string','startFollowing','includes','attrs','1em','colorChannel1','subscribe','end','ONLINE','_entities','_sharedOperations','84YrRMJC','_handleOperation','displayName','LiveShareIcon','getMemberID','FOLLOWING','3303450xAwLKe','_uiPartsService','HEADER_MENU','_status$','onStarting','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','none','OFFLINE','dispose$','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','NOT_FOLLOWING','PRESENTING','_collabSession','univerjs-icon\x20univerjs-icon-','sheet','Stop\x20following','_status','children','setConfig','You\x27re\x20presenting\x20the\x20document','registerInitialStateReporter','init','set','getCurrentTypeOfUnit$','find','getOwnPropertyDescriptor','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_NEW_HOST','getInitialStates','entries','stopFollowing','401146zaeKNQ','_startPresenting','_handleNewHost','button','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','Start\x20following','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','xlink:href','getTypeOfUnitAdded$','unitId','shouldShareOperation','getValue','registerSharedOperation','then','fill','SAME_OPERATION_SHARE_INTERVAL','IDLE','_stopFollowing','UNIVER_UNKNOWN','mask','_beIdle','getUnitId','_handleOnline','_commandDisposable','140730wOyQeL','type','createInstance','_reporters','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','132DhiMcT','pipe','div','evenodd','1741212oQNgGf','521960SpumcA','_collabSessionService','stopPresenting','dispose','has','_startFollowing','_handleNewChangeSets','tag','event$','24000nwRvKx','_mountLiveShare','LIVESHARE_FETCH_OPERATIONS','_presenter','0\x200\x2017\x2017','LIVESHARE_OPERATION','symbol','_univerInstanceService','getConfig','length','map','You\x27re\x20not\x20following\x20the\x20presenter','univer-size-4','presenting','_configService','live-share-icon','replace','defs','use','getLiveShareCoordinator','21KtMYyZ','current','override','complete','idle','tryStartPresenting','delete','You\x27are\x20offline.'];_0x40b0=function(){return _0x25c4b1;};return _0x40b0();}function Le(){const _0x38b7c3=_0x29b382,_0x58b041=_0x3a5ae3(S),_0x1cc606=_0x3a5ae3(_0x4c2f77),_0x284194=_0x5d50ae(()=>_0x1cc606[_0x38b7c3(0x103)](_0x146358['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xa3212f,_0x3500d6]=_0x885ddc(null),[_0x23d18d,_0x17ae61]=_0x885ddc(c[_0x38b7c3(0x11b)]),_0x4e5c8a=_0x3cec89(null);return _0x1d338e(()=>(_0x284194&&_0x58b041[_0x38b7c3(0x14a)](_0x284194[_0x38b7c3(0x120)]())[_0x38b7c3(0x118)](_0xda110f=>{const _0x77c91b=_0x38b7c3;_0x3500d6(_0xda110f),_0x4e5c8a['current']=_0xda110f[_0x77c91b(0xb8)][_0x77c91b(0xe0)](_0x1064ec=>{_0x17ae61(_0x1064ec);});}),()=>{const _0x393ba9=_0x38b7c3;var _0x4e7f6f;(_0x4e7f6f=_0x4e5c8a[_0x393ba9(0x14c)])==null||_0x4e7f6f[_0x393ba9(0xbd)](),_0x4e5c8a[_0x393ba9(0x14c)]=null;}),[_0x284194,_0x58b041]),_0xa3212f?_0x380609(_0x4d6704,{'align':_0x38b7c3(0xe1),'disabled':_0x23d18d===c[_0x38b7c3(0xf2)],'className':_0x38b7c3(0x111),'overlay':_0x380609(Re,{'status':_0x23d18d,'coordinator':_0xa3212f}),'children':_0x380609(_0x38b7c3(0x10e),{'className':_0x9d875(_0x38b7c3(0x128),{'univer-cursor-not-allowed':_0x23d18d===c[_0x38b7c3(0xf2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23d18d!==c['OFFLINE']}),'type':'button','children':_0x380609(W,{'className':_0x38b7c3(0x143)})})}):null;}function Re(_0x19e596){const _0x1c4ea4=_0x29b382,{status:_0x2847db,coordinator:_0x1f69de}=_0x19e596;switch(_0x2847db){case c[_0x1c4ea4(0x11b)]:return _0x380609($e,{'coordinator':_0x1f69de});case c[_0x1c4ea4(0xea)]:return _0x380609(xe,{'coordinator':_0x1f69de});case c['NOT_FOLLOWING']:return _0x380609(Pe,{'coordinator':_0x1f69de});case c[_0x1c4ea4(0xf2)]:return _0x380609(Te,{});case c[_0x1c4ea4(0xf7)]:return _0x380609(Ae,{'coordinator':_0x1f69de});default:return null;}}function $e(_0x30f591){const _0x51431e=_0x29b382,{coordinator:_0x4bb996}=_0x30f591;return _0x290402(_0x382570,{'children':[_0x380609(_0x51431e(0x12b),{'className':_0x51431e(0xf5),'children':'Present\x20this\x20document'}),_0x380609(_0xfebf7c,{'onClick':()=>_0x4bb996[_0x51431e(0x150)](),'children':_0x51431e(0xd8)})]});}function xe(_0x116905){const _0x134561=_0x29b382,{coordinator:_0x109b8a}=_0x116905;return _0x290402(_0x382570,{'children':[_0x380609(_0x134561(0x12b),{'className':_0x134561(0xf5),'children':_0x134561(0xb3)}),_0x380609(_0xfebf7c,{'onClick':()=>_0x109b8a[_0x134561(0x10a)](),'children':_0x134561(0xfb)})]});}function Pe(_0xda8120){const _0x1cb289=_0x29b382,{coordinator:_0x5cb90d}=_0xda8120;return _0x290402(_0x382570,{'children':[_0x380609(_0x1cb289(0x12b),{'className':_0x1cb289(0xf5),'children':_0x1cb289(0x142)}),_0x380609(_0xfebf7c,{'variant':_0x1cb289(0xbe),'onClick':()=>_0x5cb90d['startFollowing'](),'children':_0x1cb289(0x110)})]});}function Ae(_0x5510ef){const _0x1d9f02=_0x29b382,{coordinator:_0x427663}=_0x5510ef;return _0x290402(_0x382570,{'children':[_0x380609(_0x1d9f02(0x12b),{'className':_0x1d9f02(0xf5),'children':_0x1d9f02(0xff)}),_0x380609(_0xfebf7c,{'variant':'default','onClick':()=>_0x427663[_0x1d9f02(0x130)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x17d2d3=_0x29b382;return _0x380609(_0x382570,{'children':_0x17d2d3(0xa7)});}var Fe=Object[_0x29b382(0x105)],He=(_0x1df3b9,_0x33e242,_0x2cf850,_0xf89be6)=>{for(var _0x176077=_0xf89be6>0x1?void 0x0:_0xf89be6?Fe(_0x33e242,_0x2cf850):_0x33e242,_0x8399ca=_0x1df3b9['length']-0x1,_0x56ba6f;_0x8399ca>=0x0;_0x8399ca--)(_0x56ba6f=_0x1df3b9[_0x8399ca])&&(_0x176077=_0x56ba6f(_0x176077)||_0x176077);return _0x176077;},A=(_0x3d38e0,_0x11846c)=>(_0xaa142a,_0x394496)=>_0x11846c(_0xaa142a,_0x394496,_0x3d38e0);let m=class extends _0x54703{constructor(_0x3309a3,_0x188fd4){const _0x5bc62b=_0x29b382;super(),this[_0x5bc62b(0xcf)]=_0x3309a3,this[_0x5bc62b(0xec)]=_0x188fd4,this['_mountLiveShare']();}[_0x29b382(0x138)](){const _0x4dfb9c=_0x29b382;this[_0x4dfb9c(0xa9)](this['_uiPartsService']['registerComponent'](_0x5162da[_0x4dfb9c(0xed)],()=>_0x28a5b4(Le,this[_0x4dfb9c(0xcf)])));}};m=He([A(0x0,_0x4473be(_0x567548)),A(0x1,_0x689301)],m);const ye='live-share.config',T={};var Ue=Object[_0x29b382(0x105)],Ve=(_0x18e990,_0x3ec5af,_0xda84cc,_0x35e64e)=>{const _0x2da150=_0x29b382;for(var _0x47c7be=_0x35e64e>0x1?void 0x0:_0x35e64e?Ue(_0x3ec5af,_0xda84cc):_0x3ec5af,_0x5e0618=_0x18e990[_0x2da150(0x140)]-0x1,_0x11f2d4;_0x5e0618>=0x0;_0x5e0618--)(_0x11f2d4=_0x18e990[_0x5e0618])&&(_0x47c7be=_0x11f2d4(_0x47c7be)||_0x47c7be);return _0x47c7be;},je=(_0x20def7,_0x48bd48)=>(_0x5a2439,_0x179e7f)=>_0x48bd48(_0x5a2439,_0x179e7f,_0x20def7);let I=class extends _0x54703{constructor(_0x4cf2cc){const _0x1a3e4c=_0x29b382;super(),this[_0x1a3e4c(0xc5)]=_0x4cf2cc,this[_0x1a3e4c(0xc2)]();}[_0x29b382(0xc2)](){const _0x1088da=_0x29b382;[_0x410861['id'],_0x46540b['id'],_0x173dc8['id']][_0x1088da(0xc8)](_0x6f173a=>{const _0x2f5b0a=_0x1088da;this[_0x2f5b0a(0xa9)](this[_0x2f5b0a(0xc5)][_0x2f5b0a(0x117)](_0x6f173a));});}};I=Ve([je(0x0,_0x4473be(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x5797f2,_0x16506c,_0x46067a)=>_0x16506c in _0x5797f2?Me(_0x5797f2,_0x16506c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46067a}):_0x5797f2[_0x16506c]=_0x46067a,We=(_0x5cef4b,_0x4bba7d,_0x4e6667,_0x2870da)=>{const _0x5153d7=_0x29b382;for(var _0x3fa6ec=_0x2870da>0x1?void 0x0:_0x2870da?ke(_0x4bba7d,_0x4e6667):_0x4bba7d,_0x49f1a2=_0x5cef4b[_0x5153d7(0x140)]-0x1,_0x1953a1;_0x49f1a2>=0x0;_0x49f1a2--)(_0x1953a1=_0x5cef4b[_0x49f1a2])&&(_0x3fa6ec=_0x1953a1(_0x3fa6ec)||_0x3fa6ec);return _0x3fa6ec;},F=(_0xb922c9,_0x300a09)=>(_0x254366,_0xb060b0)=>_0x300a09(_0x254366,_0xb060b0,_0xb922c9),B=(_0x396164,_0x1b0651,_0x56953a)=>Ge(_0x396164,typeof _0x1b0651!='symbol'?_0x1b0651+'':_0x1b0651,_0x56953a);const Ye=_0x29b382(0x106);let b=class extends _0x51513e{constructor(_0x31741f=T,_0x12d955,_0x3724a7){const _0x423e64=_0x29b382;super(),this['_config']=_0x31741f,this[_0x423e64(0xcf)]=_0x12d955,this[_0x423e64(0x145)]=_0x3724a7;const {..._0x1e90a3}=_0x3675e2({},T,this['_config']);this['_configService'][_0x423e64(0xfe)](ye,_0x1e90a3);}[_0x29b382(0xef)](){const _0x20bad6=_0x29b382;_0x563134(this['_injector'],_0x2e4cdf([[L],[S],[I],[m]],this[_0x20bad6(0xd7)][_0x20bad6(0x14d)])),_0x5d1821(this[_0x20bad6(0xcf)],[[I]]);}['onRendered'](){const _0x255054=_0x29b382;_0x5d1821(this[_0x255054(0xcf)],[[m]]);}};B(b,_0x29b382(0x124),_0x146358[_0x29b382(0x11d)]),B(b,'pluginName',Ye),b=We([_0x18815f(_0x43b951),F(0x1,_0x4473be(_0x567548)),F(0x2,_0x28d418)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5e9a76=_0x40bb;(function(_0x4acd0e,_0x50cef3){const _0x407a14=_0x40bb,_0x40047e=_0x4acd0e();while(!![]){try{const _0x27d1ec=-parseInt(_0x407a14(0x1e0))/0x1+parseInt(_0x407a14(0x1cd))/0x2+parseInt(_0x407a14(0x1cc))/0x3+parseInt(_0x407a14(0x1da))/0x4*(parseInt(_0x407a14(0x1ce))/0x5)+-parseInt(_0x407a14(0x1d9))/0x6+-parseInt(_0x407a14(0x1d5))/0x7+parseInt(_0x407a14(0x1e3))/0x8;if(_0x27d1ec===_0x50cef3)break;else _0x40047e['push'](_0x40047e['shift']());}catch(_0x54b68d){_0x40047e['push'](_0x40047e['shift']());}}}(_0x3fd7,0x45716));var l=Object['defineProperty'],w=(_0x462f7b,_0x41fe11,_0x55dce8)=>_0x41fe11 in _0x462f7b?l(_0x462f7b,_0x41fe11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55dce8}):_0x462f7b[_0x41fe11]=_0x55dce8,v=(_0x1a6c30,_0x3461e0,_0x495e7e)=>w(_0x1a6c30,typeof _0x3461e0!=_0x5e9a76(0x1cb)?_0x3461e0+'':_0x3461e0,_0x495e7e);import{LiveShareController as _0x1dbf9d,LiveShareStatus as _0x4380dc}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x51564f,UniverInstanceType as _0x183327}from'@univerjs/core';import{FUniver as _0x479d17,FEnum as _0x33e008}from'@univerjs/core/facade';class g extends _0x479d17{constructor(){const _0x43b238=_0x5e9a76;super(...arguments),v(this,_0x43b238(0x1d2));}[_0x5e9a76(0x1d6)](_0x389d08){const _0x12a6e2=_0x5e9a76;this[_0x12a6e2(0x1d2)]=_0x389d08[_0x12a6e2(0x1de)](_0x1dbf9d);}[_0x5e9a76(0x1dc)](){const _0x2f4793=_0x5e9a76;var _0x44bcee;const _0x149dd5=this[_0x2f4793(0x1df)][_0x2f4793(0x1de)](_0x51564f)[_0x2f4793(0x1e1)](_0x183327[_0x2f4793(0x1cf)]);if(!_0x149dd5)throw new Error(_0x2f4793(0x1dd));const _0x8e99d6=_0x149dd5[_0x2f4793(0x1d3)](),_0xc79d3d=this[_0x2f4793(0x1d2)][_0x2f4793(0x1e4)](_0x8e99d6);return(_0x44bcee=_0xc79d3d==null?void 0x0:_0xc79d3d['getStatus']())!=null?_0x44bcee:_0x4380dc[_0x2f4793(0x1d8)];}[_0x5e9a76(0x1e6)](){const _0xc5e20f=_0x5e9a76,_0x3c4d7c=this[_0xc5e20f(0x1df)][_0xc5e20f(0x1de)](_0x51564f)['getCurrentUnitOfType'](_0x183327['UNIVER_SHEET']);if(!_0x3c4d7c)throw new Error(_0xc5e20f(0x1dd));const _0x4396f6=_0x3c4d7c[_0xc5e20f(0x1d3)](),_0x4e667b=this[_0xc5e20f(0x1d2)][_0xc5e20f(0x1e4)](_0x4396f6);if(!_0x4e667b)throw new Error(_0xc5e20f(0x1d7));_0x4e667b[_0xc5e20f(0x1e6)]();}['stopFollowing'](){const _0x2d21f6=_0x5e9a76,_0x3c5f32=this['_injector'][_0x2d21f6(0x1de)](_0x51564f)[_0x2d21f6(0x1e1)](_0x183327[_0x2d21f6(0x1cf)]);if(!_0x3c5f32)throw new Error('No\x20active\x20workbook\x20found.');const _0x435019=_0x3c5f32['getUnitId'](),_0x57af1a=this['_liveShareController'][_0x2d21f6(0x1e4)](_0x435019);if(!_0x57af1a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x57af1a[_0x2d21f6(0x1d4)]();}[_0x5e9a76(0x1e2)](){const _0x50259c=_0x5e9a76,_0x3902bf=this[_0x50259c(0x1df)][_0x50259c(0x1de)](_0x51564f)[_0x50259c(0x1e1)](_0x183327[_0x50259c(0x1cf)]);if(!_0x3902bf)throw new Error('No\x20active\x20workbook\x20found.');const _0x2025bd=_0x3902bf[_0x50259c(0x1d3)](),_0x257cdd=this[_0x50259c(0x1d2)]['getLiveShareCoordinatorSync'](_0x2025bd);if(!_0x257cdd)throw new Error(_0x50259c(0x1d7));_0x257cdd[_0x50259c(0x1db)]();}[_0x5e9a76(0x1e5)](){const _0x1cb10d=_0x5e9a76,_0x4f7b23=this['_injector']['get'](_0x51564f)[_0x1cb10d(0x1e1)](_0x183327[_0x1cb10d(0x1cf)]);if(!_0x4f7b23)throw new Error(_0x1cb10d(0x1dd));const _0x5e98cc=_0x4f7b23[_0x1cb10d(0x1d3)](),_0x42547c=this[_0x1cb10d(0x1d2)][_0x1cb10d(0x1e4)](_0x5e98cc);if(!_0x42547c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x42547c[_0x1cb10d(0x1e5)]();}}function _0x40bb(_0x15b909,_0x6fb504){_0x15b909=_0x15b909-0x1cb;const _0x3fd737=_0x3fd7();let _0x40bbe8=_0x3fd737[_0x15b909];return _0x40bbe8;}function _0x3fd7(){const _0x594eff=['150750TNnpEX','19764HblXsh','tryStartPresenting','getLiveShareStatus','No\x20active\x20workbook\x20found.','get','_injector','415568jPVBpT','getCurrentUnitOfType','startPresenting','3812456vGwnTV','getLiveShareCoordinatorSync','stopPresenting','startFollowing','symbol','571164tZQaMC','99950fVJnUV','245MzDmgX','UNIVER_SHEET','LiveShareStatusEnum','extend','_liveShareController','getUnitId','stopFollowing','1637286AByRKd','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IDLE'];_0x3fd7=function(){return _0x594eff;};return _0x3fd7();}_0x479d17[_0x5e9a76(0x1d1)](g);class f extends _0x33e008{get[_0x5e9a76(0x1d0)](){return _0x4380dc;}}_0x33e008[_0x5e9a76(0x1d1)](f);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3c4d26=_0x39a9;(function(_0x50d06,_0x3e5376){const _0x384216=_0x39a9,_0x506440=_0x50d06();while(!![]){try{const _0x66b29f=parseInt(_0x384216(0x11b))/0x1*(-parseInt(_0x384216(0x137))/0x2)+-parseInt(_0x384216(0xa8))/0x3+parseInt(_0x384216(0xfd))/0x4*(-parseInt(_0x384216(0xbe))/0x5)+-parseInt(_0x384216(0xb6))/0x6*(-parseInt(_0x384216(0xce))/0x7)+-parseInt(_0x384216(0x139))/0x8+-parseInt(_0x384216(0xb9))/0x9+-parseInt(_0x384216(0xcb))/0xa*(-parseInt(_0x384216(0x13d))/0xb);if(_0x66b29f===_0x3e5376)break;else _0x506440['push'](_0x506440['shift']());}catch(_0x2e1e74){_0x506440['push'](_0x506440['shift']());}}}(_0x167e,0x229b3));var J=Object[_0x3c4d26(0xf4)],K=(_0xb11596,_0x3f3fe8,_0x4cded9)=>_0x3f3fe8 in _0xb11596?J(_0xb11596,_0x3f3fe8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cded9}):_0xb11596[_0x3f3fe8]=_0x4cded9,u=(_0x20bdf6,_0x120919,_0x1ee5d9)=>K(_0x20bdf6,typeof _0x120919!=_0x3c4d26(0xdd)?_0x120919+'':_0x120919,_0x1ee5d9);import{Disposable as _0x167de9,toDisposable as _0x4d1cb7,Inject as _0x1668bc,Injector as _0x465048,RxDisposable as _0x32eff8,UniverInstanceType as _0x152fad,DisposableCollection as _0x2cef5d,CommandType as _0x480eb2,IUniverInstanceService as _0x4761e9,IConfigService as _0x470b5c,ICommandService as _0x154d48,DependentOn as _0x3124b9,Plugin as _0x8999f6,merge as _0x5cf637,registerDependencies as _0x385419,mergeOverrideWithDependencies as _0xc75ac0,touchDependencies as _0xaa1b3f}from'@univerjs/core';function _0x167e(){const _0x59331a=['operations','_sharedOperations','map','LiveShareIcon','length','has','_startPresenting','_commandService','_configService','6lIfKnB','get','executeCommand','978057IpPvjw','next','pipe','path','_handleNewChangeSets','5guaAXR','offline','data','OFFLINE','default','defIds','_reporters','_handleOnline','live-share.config','delete','memberID','not-following','xlink:href','60DxOMas','subscribe','init','786219cvkglD','shouldShareOperation','_uiPartsService','You\x27are\x20offline.','requireSession','_status$','unitId','div','1em','displayName','LIVESHARE_NEW_HOST','_collabSession','_stopFollowing','UNIVER_UNKNOWN','entries','symbol','attrs','_entities','reverse','trim','replace','_stopPresenting','_status','end','Stop\x20following','registerSharedOperation','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','LIVESHARE_REQUEST_HOST','stopFollowing','_univerInstanceService','_handleOperation','then','includes','sessionStatus$','You\x27re\x20not\x20following\x20the\x20presenter','assign','following','evenodd','defineProperty','You\x27re\x20following\x20the\x20presenter','_handleTerminate','string','IDLE','stringify','getMemberID','getTypeOfUnitDisposed$','_injector','19244YZhIwf','FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','You\x27re\x20presenting\x20the\x20document','url(#$1','_fetchOperations','mask','NOT_FOLLOWING','params','_startFollowing','_handleOffline','Stop\x20presenting','forEach','Start\x20following','getConfig','_collabSessionService','LIVESHARE_TERMINATE','button','NEW_CHANGESETS','_handleNewHost','getOwnPropertyDescriptor','svg','Present\x20this\x20document','type','idle','HEADER_MENU','dispose$','set','add','PRESENTING','1ADKIwl','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_beIdle','Start','override','complete','from','registerComponent','colorChannel1','onRendered','dispose','event$','mutations','getValue','getUnitId','getTypeOfUnitAdded$','none','parse','univer-size-4','registerInitialStateReporter','random','stopPresenting','LIVESHARE_OPERATION','children','_config','currentColor','UNIVER_SHEET','asObservable','231866keYgnr','UniverIcon','326992qTZtPp','getCurrentTypeOfUnit$','tryStartPresenting','sheet','847154QANemw','presenting','find','startFollowing','_liveShareService','_startLiveShareCoordinator','_presenter','presenter','_commandDisposable','unsubscribe','status$','SAME_OPERATION_SHARE_INTERVAL','_unitID','clear','ONLINE','LIVESHARE_FETCH_OPERATIONS','idSuffix','tag','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','disposeWithMe','_mountLiveShare','_init','487089dshBzs','getLiveShareCoordinator','substring','fill','send'];_0x167e=function(){return _0x59331a;};return _0x167e();}function _0x39a9(_0x352344,_0x5e578c){_0x352344=_0x352344-0xa4;const _0x167e07=_0x167e();let _0x39a976=_0x167e07[_0x352344];return _0x39a976;}import{useDependency as _0x1a8a0d,useObservable as _0x59b5ab,BuiltInUIPart as _0x13b76f,connectInjector as _0x412f64,IUIPartsService as _0x172fbc}from'@univerjs/ui';import{jsx as _0x297ed2,jsxs as _0x35ad9f,Fragment as _0x20d81a}from'react/jsx-runtime';import{Dropdown as _0x2571f0,clsx as _0x43444c,Button as _0x262bb5}from'@univerjs/design';import{useRef as _0x1b9081,createElement as _0x4de5ed,forwardRef as _0x323c53,useState as _0x45446d,useEffect as _0x15928b}from'react';import{CollaborationEvent as _0x27f01f,parseProtocolChangeset as _0x5e01ee}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xad0194,SessionStatus as _0x33d898,UniverCollaborationClientPlugin as _0x57a458}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4dfec7,SetWorksheetActiveOperation as _0x229740}from'@univerjs/sheets';import{BehaviorSubject as _0x43bb1a,Subject as _0x5d2aa3}from'rxjs';import{takeUntil as _0xb6c43e,throttleTime as _0x3e47f7}from'rxjs/operators';import{SetZoomRatioOperation as _0x477fa1,SetScrollOperation as _0x1426bd}from'@univerjs/sheets-ui';function k({ref:_0x36f515,..._0x2274af}){const _0x14af90=_0x3c4d26,{icon:_0x126807,id:_0x3d4da7,className:_0x975c13,extend:_0x4cf5d7,..._0x3b484}=_0x2274af,_0x2d67a3=('univerjs-icon\x20univerjs-icon-'+_0x3d4da7+'\x20'+(_0x975c13||''))[_0x14af90(0xe1)](),_0x5859b8=_0x1b9081('_'+Oe());return G(_0x126807,''+_0x3d4da7,{'defIds':_0x126807[_0x14af90(0xc3)],'idSuffix':_0x5859b8['current']},{'ref':_0x36f515,'className':_0x2d67a3,..._0x3b484},_0x4cf5d7);}function G(_0x2f3215,_0x515465,_0x425278,_0xe1a232,_0x416272){const _0x52465c=_0x3c4d26;return _0x4de5ed(_0x2f3215[_0x52465c(0x14e)],{'key':_0x515465,...be(_0x2f3215,_0x425278,_0x416272),..._0xe1a232},(Ee(_0x2f3215,_0x425278)[_0x52465c(0x132)]||[])[_0x52465c(0xaf)]((_0x527592,_0x397146)=>G(_0x527592,_0x515465+'-'+_0x2f3215['tag']+'-'+_0x397146,_0x425278,void 0x0,_0x416272)));}function be(_0x2554e4,_0x1e7844,_0x2ccb3e){const _0x568c6d=_0x3c4d26,_0x1b8d67={..._0x2554e4[_0x568c6d(0xde)]};_0x2ccb3e!=null&&_0x2ccb3e[_0x568c6d(0x123)]&&_0x1b8d67[_0x568c6d(0xab)]===_0x568c6d(0x123)&&(_0x1b8d67[_0x568c6d(0xab)]=_0x2ccb3e[_0x568c6d(0x123)]),_0x2554e4[_0x568c6d(0x14e)]==='mask'&&_0x1b8d67['id']&&(_0x1b8d67['id']=_0x1b8d67['id']+_0x1e7844[_0x568c6d(0x14d)]),Object[_0x568c6d(0xdc)](_0x1b8d67)[_0x568c6d(0x109)](([_0x12f573,_0x580fc3])=>{const _0x194f77=_0x568c6d;_0x12f573===_0x194f77(0x103)&&typeof _0x580fc3==_0x194f77(0xf7)&&(_0x1b8d67[_0x12f573]=_0x580fc3[_0x194f77(0xe2)](/url\(#(.*)\)/,_0x194f77(0x101)+_0x1e7844[_0x194f77(0x14d)]+')'));});const {defIds:_0x5cf4a2}=_0x1e7844;return!_0x5cf4a2||_0x5cf4a2[_0x568c6d(0xb1)]===0x0||(_0x2554e4[_0x568c6d(0x14e)]==='use'&&_0x1b8d67[_0x568c6d(0xca)]&&(_0x1b8d67[_0x568c6d(0xca)]=_0x1b8d67[_0x568c6d(0xca)]+_0x1e7844[_0x568c6d(0x14d)]),Object['entries'](_0x1b8d67)['forEach'](([_0x397a0c,_0x7cf213])=>{const _0x340b67=_0x568c6d;typeof _0x7cf213=='string'&&(_0x1b8d67[_0x397a0c]=_0x7cf213['replace'](/url\(#(.*)\)/,_0x340b67(0x101)+_0x1e7844['idSuffix']+')'));})),_0x1b8d67;}function Ee(_0xe6d18f,_0x46996b){const _0x31e87a=_0x3c4d26;var _0x21996e;const {defIds:_0x2e3d1c}=_0x46996b;return!_0x2e3d1c||_0x2e3d1c[_0x31e87a(0xb1)]===0x0?_0xe6d18f:_0xe6d18f[_0x31e87a(0x14e)]==='defs'&&((_0x21996e=_0xe6d18f[_0x31e87a(0x132)])!=null&&_0x21996e[_0x31e87a(0xb1)])?{..._0xe6d18f,'children':_0xe6d18f[_0x31e87a(0x132)][_0x31e87a(0xaf)](_0x1739de=>typeof _0x1739de[_0x31e87a(0xde)]['id']==_0x31e87a(0xf7)&&_0x2e3d1c&&_0x2e3d1c['includes'](_0x1739de['attrs']['id'])?{..._0x1739de,'attrs':{..._0x1739de[_0x31e87a(0xde)],'id':_0x1739de[_0x31e87a(0xde)]['id']+_0x46996b[_0x31e87a(0x14d)]}}:_0x1739de)}:_0xe6d18f;}function Oe(){const _0x57aa80=_0x3c4d26;return Math[_0x57aa80(0x12f)]()['toString'](0x24)[_0x57aa80(0xaa)](0x2,0x8);}k[_0x3c4d26(0xd7)]=_0x3c4d26(0x138);const we={'tag':_0x3c4d26(0x112),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3c4d26(0x12b),'viewBox':'0\x200\x2017\x2017','width':_0x3c4d26(0xd6),'height':_0x3c4d26(0xd6)},'children':[{'tag':_0x3c4d26(0xbc),'attrs':{'fill':_0x3c4d26(0x134),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3c4d26(0xbc),'attrs':{'fill':_0x3c4d26(0x134),'d':_0x3c4d26(0xe8),'fillRule':_0x3c4d26(0xf3),'clipRule':_0x3c4d26(0xf3)}}]},W=_0x323c53(function(_0x5323ff,_0x46a411){const _0x2ecd72=_0x3c4d26;return _0x4de5ed(k,Object[_0x2ecd72(0xf1)]({},_0x5323ff,{'id':'live-share-icon','ref':_0x46a411,'icon':we}));});W['displayName']=_0x3c4d26(0xb0);class L extends _0x167de9{constructor(){const _0x7a878d=_0x3c4d26;super(...arguments),u(this,_0x7a878d(0xae),new Set()),u(this,_0x7a878d(0xc4),new Set());}[_0x3c4d26(0xe7)](_0x4d74e8){const _0x301ea6=_0x3c4d26;return this[_0x301ea6(0xae)][_0x301ea6(0x119)](_0x4d74e8),_0x4d1cb7(()=>this[_0x301ea6(0xae)][_0x301ea6(0xc7)](_0x4d74e8));}[_0x3c4d26(0x12e)](_0x2f9417){const _0x446af2=_0x3c4d26;return this[_0x446af2(0xc4)][_0x446af2(0x119)](_0x2f9417),_0x4d1cb7(()=>this[_0x446af2(0xc4)]['delete'](_0x2f9417));}['shouldShareOperation'](_0x4d891f){const _0x186e7f=_0x3c4d26;return this[_0x186e7f(0xae)][_0x186e7f(0xb2)](_0x4d891f);}['getInitialStates'](_0x5309bd){const _0x30bdfc=_0x3c4d26;return Array[_0x30bdfc(0x121)](this['_reporters'])[_0x30bdfc(0xaf)](_0x5b987a=>_0x5b987a(_0x5309bd));}}var Ne=Object[_0x3c4d26(0x111)],Y=(_0x1dffc0,_0x5d1308,_0x6d22f7,_0x50fc08)=>{const _0x294c01=_0x3c4d26;for(var _0x1c7e1c=_0x50fc08>0x1?void 0x0:_0x50fc08?Ne(_0x5d1308,_0x6d22f7):_0x5d1308,_0x4e78b5=_0x1dffc0[_0x294c01(0xb1)]-0x1,_0x1c31b2;_0x4e78b5>=0x0;_0x4e78b5--)(_0x1c31b2=_0x1dffc0[_0x4e78b5])&&(_0x1c7e1c=_0x1c31b2(_0x1c7e1c)||_0x1c7e1c);return _0x1c7e1c;},_=(_0x51ae71,_0xe5df8a)=>(_0x128844,_0x4c4655)=>_0xe5df8a(_0x128844,_0x4c4655,_0x51ae71);let S=class extends _0x32eff8{constructor(_0x1130e7,_0x381ddb,_0x8134fa){const _0x3297f4=_0x3c4d26;super(),u(this,_0x3297f4(0xdf),new Map()),(this[_0x3297f4(0xeb)]=_0x1130e7,this[_0x3297f4(0xfc)]=_0x381ddb,this[_0x3297f4(0x10c)]=_0x8134fa,this['_init']());}async[_0x3c4d26(0xa9)](_0x4f68f7){const _0x319794=_0x3c4d26;return this['_entities'][_0x319794(0xb2)](_0x4f68f7)||await this[_0x319794(0x142)](_0x4f68f7),this['_entities']['get'](_0x4f68f7);}['getLiveShareCoordinatorSync'](_0x261442){const _0x2cac2c=_0x3c4d26;var _0x5a7770;return(_0x5a7770=this[_0x2cac2c(0xdf)][_0x2cac2c(0xb7)](_0x261442))!=null?_0x5a7770:null;}[_0x3c4d26(0xa7)](){const _0x28d80b=_0x3c4d26;this[_0x28d80b(0xeb)][_0x28d80b(0x12a)](_0x152fad[_0x28d80b(0x135)])[_0x28d80b(0xbb)](_0xb6c43e(this[_0x28d80b(0x117)]))[_0x28d80b(0xcc)](async _0x17f6ad=>{const _0x52315b=_0x28d80b,_0x1ddc06=_0x17f6ad['getUnitId']();this['_entities']['has'](_0x1ddc06)||this[_0x52315b(0x142)](_0x1ddc06);}),this[_0x28d80b(0xeb)][_0x28d80b(0xfb)](_0x152fad[_0x28d80b(0x135)])[_0x28d80b(0xbb)](_0xb6c43e(this['dispose$']))[_0x28d80b(0xcc)](_0x41d0d4=>{const _0x2918c1=_0x28d80b,_0xafe8b7=_0x41d0d4[_0x2918c1(0x129)](),_0x67f92b=this['_entities']['get'](_0xafe8b7);_0x67f92b==null||_0x67f92b[_0x2918c1(0x125)]();});}async['_startLiveShareCoordinator'](_0x59b2a2){const _0x4c2719=_0x3c4d26,_0x57853c=await this[_0x4c2719(0x10c)][_0x4c2719(0xd2)](_0x59b2a2),_0x35c996=this[_0x4c2719(0xfc)]['createInstance'](N,_0x59b2a2,_0x57853c);return _0x35c996[_0x4c2719(0xcd)](),this['_entities'][_0x4c2719(0x118)](_0x59b2a2,_0x35c996),_0x35c996;}};S=Y([_(0x0,_0x4761e9),_(0x1,_0x1668bc(_0x465048)),_(0x2,_0x1668bc(_0xad0194))],S);var c=(_0x324eee=>(_0x324eee[_0x3c4d26(0xc1)]='offline',_0x324eee[_0x3c4d26(0xf8)]=_0x3c4d26(0x115),_0x324eee[_0x3c4d26(0xfe)]=_0x3c4d26(0xf2),_0x324eee['NOT_FOLLOWING']=_0x3c4d26(0xc9),_0x324eee['PRESENTING']='presenting',_0x324eee))(c||{});const Ce=_0x3c4d26(0x148),De=0xc8;let N=class extends _0x32eff8{constructor(_0x55baff,_0x1611db,_0x108f5a,_0x1fe790,_0x1d08ce){const _0x5e2d5a=_0x3c4d26;super(),u(this,_0x5e2d5a(0xd3),new _0x43bb1a(_0x5e2d5a(0x115))),u(this,_0x5e2d5a(0x147),this[_0x5e2d5a(0xd3)][_0x5e2d5a(0x136)]()),u(this,_0x5e2d5a(0xa7),!0x1),u(this,_0x5e2d5a(0x145),null),u(this,_0x5e2d5a(0x143),null),(this[_0x5e2d5a(0x149)]=_0x55baff,this[_0x5e2d5a(0xd9)]=_0x1611db,this['_configService']=_0x108f5a,this[_0x5e2d5a(0x141)]=_0x1fe790,this['_commandService']=_0x1d08ce);}get[_0x3c4d26(0xe4)](){const _0x414847=_0x3c4d26;return this[_0x414847(0xd3)][_0x414847(0x128)]();}[_0x3c4d26(0x125)](){const _0x2e2a16=_0x3c4d26;var _0x490f93;(_0x490f93=this['_commandDisposable'])==null||_0x490f93[_0x2e2a16(0x125)](),this[_0x2e2a16(0xd3)][_0x2e2a16(0xba)]('idle'),this[_0x2e2a16(0xd3)][_0x2e2a16(0x120)]();}['getStatus'](){const _0x33dd97=_0x3c4d26;return this[_0x33dd97(0xe4)];}['init'](){const _0x347d6e=_0x3c4d26;this[_0x347d6e(0xa7)]||(this[_0x347d6e(0xa7)]=!0x0,this[_0x347d6e(0xd9)][_0x347d6e(0xef)][_0x347d6e(0xbb)](_0xb6c43e(this[_0x347d6e(0x117)]))[_0x347d6e(0xcc)](_0x510c85=>{const _0xc2cb89=_0x347d6e;switch(_0x510c85){case _0x33d898[_0xc2cb89(0xc1)]:this[_0xc2cb89(0x107)]();break;case _0x33d898[_0xc2cb89(0x14b)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x347d6e(0x126)][_0x347d6e(0xbb)](_0xb6c43e(this[_0x347d6e(0x117)]))[_0x347d6e(0xcc)](_0x14957e=>{const _0x32624b=_0x347d6e,{eventID:_0x465ac7}=_0x14957e;switch(_0x465ac7){case _0x27f01f[_0x32624b(0xd8)]:this[_0x32624b(0x110)](_0x14957e);break;case _0x27f01f['LIVESHARE_OPERATION']:this[_0x32624b(0xec)](_0x14957e);break;case _0x27f01f[_0x32624b(0x10d)]:this[_0x32624b(0xf6)]();break;case _0x27f01f[_0x32624b(0x10f)]:this[_0x32624b(0xbd)](_0x14957e);break;}}));}[_0x3c4d26(0x13b)](){const _0x5c06d7=_0x3c4d26;this[_0x5c06d7(0xd9)][_0x5c06d7(0xac)]({'eventID':_0x27f01f[_0x5c06d7(0xe9)],'data':{'unitID':this[_0x5c06d7(0x149)],'userID':this['_collabSession'][_0x5c06d7(0xfa)]()}},this[_0x5c06d7(0x149)]);}[_0x3c4d26(0x130)](){const _0x3e5788=_0x3c4d26;this['_status']===_0x3e5788(0x13e)&&(this[_0x3e5788(0xd3)][_0x3e5788(0xba)](_0x3e5788(0x115)),this['_collabSession'][_0x3e5788(0xac)]({'eventID':_0x27f01f['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e5788(0x149)]));}[_0x3c4d26(0x140)](){const _0x21b915=_0x3c4d26;this[_0x21b915(0xe4)]===_0x21b915(0xc9)&&(this[_0x21b915(0xd3)][_0x21b915(0xba)](_0x21b915(0xf2)),this[_0x21b915(0x106)]());}[_0x3c4d26(0xea)](){const _0x9e7676=_0x3c4d26;this[_0x9e7676(0xe4)]==='following'&&this[_0x9e7676(0xda)]();}[_0x3c4d26(0x110)](_0x2a2ea6){const _0x366d1e=_0x3c4d26,{presenter:_0x442af7}=_0x2a2ea6[_0x366d1e(0xc0)],_0x4d956e=this[_0x366d1e(0xd9)]['getMemberID']();this[_0x366d1e(0x143)]=_0x442af7,_0x442af7===_0x4d956e?(this[_0x366d1e(0xda)](),this[_0x366d1e(0xb3)]()):this['_status']!==_0x366d1e(0xc9)&&(this[_0x366d1e(0xe3)](),this[_0x366d1e(0x106)]());}[_0x3c4d26(0x102)](){const _0x4bda21=_0x3c4d26,_0x49ba97={'eventID':_0x27f01f[_0x4bda21(0x14c)]};this[_0x4bda21(0xd9)]['send'](_0x49ba97,this['_unitID']);}[_0x3c4d26(0xf6)](){const _0x4dc501=_0x3c4d26;this[_0x4dc501(0x143)]=null,this[_0x4dc501(0xe4)]!=='presenting'&&this[_0x4dc501(0x11d)]();}['_handleNewChangeSets'](_0x5bf6ea){const _0x555bc3=_0x3c4d26;if(this[_0x555bc3(0xe4)]===_0x555bc3(0xf2)&&this['_presenter']===_0x5bf6ea['data'][_0x555bc3(0xc8)]){const _0x238534=_0x5e01ee(_0x5bf6ea[_0x555bc3(0xc0)])[_0x555bc3(0x127)][_0x555bc3(0xe0)]()[_0x555bc3(0x13f)](_0x1076b8=>_0x1076b8['id']===_0x4dfec7['id']);if(_0x238534){const _0xf64127=_0x238534['params'][_0x555bc3(0xd4)],_0x3f9390=_0x238534['params'][_0x555bc3(0x13c)]['id'];setTimeout(()=>{const _0x543a0c=_0x555bc3;this['_commandService'][_0x543a0c(0xb8)](_0x229740['id'],{'unitId':_0xf64127,'subUnitId':_0x3f9390},{'fromCollab':!0x0});});}}}[_0x3c4d26(0xb3)](){const _0x3e71e4=_0x3c4d26;this[_0x3e71e4(0xd3)][_0x3e71e4(0xba)](_0x3e71e4(0x13e));const _0x2a88ac=new Map(),_0x4e1955=this[_0x3e71e4(0x145)]=new _0x2cef5d();_0x4e1955[_0x3e71e4(0x119)](_0x4d1cb7(()=>{const _0x5d5b78=_0x3e71e4;_0x2a88ac['forEach'](_0x1a6fbf=>_0x1a6fbf['complete']()),_0x2a88ac[_0x5d5b78(0x14a)]();})),_0x4e1955[_0x3e71e4(0x119)](this[_0x3e71e4(0xb4)]['onCommandExecuted'](_0x4f67a9=>{const _0x425d30=_0x3e71e4;var _0x3436a6;if(_0x4f67a9[_0x425d30(0x114)]!==_0x480eb2['OPERATION']||!this[_0x425d30(0x141)][_0x425d30(0xcf)](_0x4f67a9['id']))return;const {id:_0x2400b4}=_0x4f67a9;let _0x2dd10a;_0x2a88ac[_0x425d30(0xb2)](_0x2400b4)?_0x2dd10a=_0x2a88ac['get'](_0x2400b4):(_0x2dd10a=new _0x5d2aa3(),_0x2a88ac['set'](_0x2400b4,_0x2dd10a),_0x2dd10a[_0x425d30(0xbb)](_0x3e47f7((_0x3436a6=this[_0x425d30(0xb5)][_0x425d30(0x10b)](Ce))!=null?_0x3436a6:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x425d30(0xcc)](_0x230643=>{const _0x33f4b9=_0x425d30;this[_0x33f4b9(0xd9)][_0x33f4b9(0xac)]({'eventID':_0x27f01f[_0x33f4b9(0x131)],'data':{'unitID':this[_0x33f4b9(0x149)],'operations':{[_0x230643['id']]:{'id':_0x230643['id'],'params':JSON[_0x33f4b9(0xf9)](_0x230643['params'])}}}},this['_unitID']);})),_0x2dd10a['next'](_0x4f67a9);})),this['_liveShareService']['getInitialStates'](this[_0x3e71e4(0x149)])[_0x3e71e4(0x109)](_0x428b9c=>this[_0x3e71e4(0xd9)][_0x3e71e4(0xac)]({'eventID':_0x27f01f[_0x3e71e4(0x131)],'data':{'unitID':this[_0x3e71e4(0x149)],'operations':{[_0x428b9c['id']]:{'id':_0x428b9c['id'],'params':JSON[_0x3e71e4(0xf9)](_0x428b9c[_0x3e71e4(0x105)])}}}},this[_0x3e71e4(0x149)]));}[_0x3c4d26(0xe3)](){const _0x202bc7=_0x3c4d26;var _0x1f4d4f;this[_0x202bc7(0xd3)][_0x202bc7(0xba)]('idle'),(_0x1f4d4f=this['_commandDisposable'])==null||_0x1f4d4f[_0x202bc7(0x125)](),this[_0x202bc7(0x145)]=null;}[_0x3c4d26(0x106)](){const _0x9a383b=_0x3c4d26;var _0x49474d;(_0x49474d=this['_commandDisposable'])==null||_0x49474d[_0x9a383b(0x125)](),this['_status$'][_0x9a383b(0xba)]('following');}[_0x3c4d26(0x11d)](){const _0x3815ed=_0x3c4d26;var _0x50b522;this[_0x3815ed(0xd3)][_0x3815ed(0xba)](_0x3815ed(0x115)),(_0x50b522=this[_0x3815ed(0x145)])==null||_0x50b522[_0x3815ed(0x125)](),this[_0x3815ed(0x145)]=null;}[_0x3c4d26(0xda)](){const _0x272418=_0x3c4d26;var _0x33e63a;this['_status$'][_0x272418(0xba)]('not-following'),(_0x33e63a=this[_0x272418(0x145)])==null||_0x33e63a[_0x272418(0x125)]();}['_handleOperation'](_0x40a3f3){const _0xc53a88=_0x3c4d26;if(['presenting',_0xc53a88(0xc9),_0xc53a88(0xbf)][_0xc53a88(0xee)](this['_status'])||!_0x40a3f3[_0xc53a88(0xc0)][_0xc53a88(0x144)]||_0x40a3f3[_0xc53a88(0xc0)]['presenter']===this['_collabSession'][_0xc53a88(0xfa)]())return;this[_0xc53a88(0xe4)]==='idle'&&this[_0xc53a88(0x106)]();const _0x5acf65=_0x40a3f3[_0xc53a88(0xc0)][_0xc53a88(0xad)];Object['values'](_0x5acf65)[_0xc53a88(0x109)](_0x27fc08=>{const _0x2de8aa=_0xc53a88;this[_0x2de8aa(0xb4)][_0x2de8aa(0xb8)](_0x27fc08['id'],_0x27fc08[_0x2de8aa(0x105)]?JSON[_0x2de8aa(0x12c)](_0x27fc08[_0x2de8aa(0x105)]):null,{'fromCollab':!0x0});});}[_0x3c4d26(0x107)](){const _0x29ada2=_0x3c4d26;var _0x560c99;this[_0x29ada2(0xd3)][_0x29ada2(0xba)](_0x29ada2(0xbf)),(_0x560c99=this['_commandDisposable'])==null||_0x560c99[_0x29ada2(0x125)]();}[_0x3c4d26(0xc5)](){const _0xd9f80e=_0x3c4d26;this[_0xd9f80e(0xd3)][_0xd9f80e(0xba)](_0xd9f80e(0x115)),this[_0xd9f80e(0x102)]();}};N=Y([_(0x2,_0x470b5c),_(0x3,_0x1668bc(L)),_(0x4,_0x154d48)],N);function Le(){const _0x18b53d=_0x3c4d26,_0x48e45d=_0x1a8a0d(S),_0x1a1d3a=_0x1a8a0d(_0x4761e9),_0x515ad1=_0x59b5ab(()=>_0x1a1d3a[_0x18b53d(0x13a)](_0x152fad[_0x18b53d(0x135)]),void 0x0,!0x1,[]),[_0x34dc5e,_0x270499]=_0x45446d(null),[_0x137c28,_0x318fb4]=_0x45446d(c['IDLE']),_0x85a5e4=_0x1b9081(null);return _0x15928b(()=>(_0x515ad1&&_0x48e45d[_0x18b53d(0xa9)](_0x515ad1[_0x18b53d(0x129)]())[_0x18b53d(0xed)](_0x1295e4=>{const _0xbccb9c=_0x18b53d;_0x270499(_0x1295e4),_0x85a5e4[_0xbccb9c(0xa4)]=_0x1295e4[_0xbccb9c(0x147)][_0xbccb9c(0xcc)](_0x338496=>{_0x318fb4(_0x338496);});}),()=>{const _0x382495=_0x18b53d;var _0x3655a8;(_0x3655a8=_0x85a5e4[_0x382495(0xa4)])==null||_0x3655a8[_0x382495(0x146)](),_0x85a5e4['current']=null;}),[_0x515ad1,_0x48e45d]),_0x34dc5e?_0x297ed2(_0x2571f0,{'align':_0x18b53d(0xe5),'disabled':_0x137c28===c['OFFLINE'],'className':_0x18b53d(0x11c),'overlay':_0x297ed2(Re,{'status':_0x137c28,'coordinator':_0x34dc5e}),'children':_0x297ed2(_0x18b53d(0x10e),{'className':_0x43444c(_0x18b53d(0xff),{'univer-cursor-not-allowed':_0x137c28===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x137c28!==c['OFFLINE']}),'type':_0x18b53d(0x10e),'children':_0x297ed2(W,{'className':_0x18b53d(0x12d)})})}):null;}function Re(_0x3a612a){const _0x2078d4=_0x3c4d26,{status:_0x4a74cf,coordinator:_0xd31a3c}=_0x3a612a;switch(_0x4a74cf){case c[_0x2078d4(0xf8)]:return _0x297ed2($e,{'coordinator':_0xd31a3c});case c[_0x2078d4(0xfe)]:return _0x297ed2(xe,{'coordinator':_0xd31a3c});case c[_0x2078d4(0x104)]:return _0x297ed2(Pe,{'coordinator':_0xd31a3c});case c[_0x2078d4(0xc1)]:return _0x297ed2(Te,{});case c[_0x2078d4(0x11a)]:return _0x297ed2(Ae,{'coordinator':_0xd31a3c});default:return null;}}function $e(_0x542678){const _0x39a2f8=_0x3c4d26,{coordinator:_0x1a5542}=_0x542678;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x39a2f8(0xd5),{'className':_0x39a2f8(0x150),'children':_0x39a2f8(0x113)}),_0x297ed2(_0x262bb5,{'onClick':()=>_0x1a5542[_0x39a2f8(0x13b)](),'children':_0x39a2f8(0x11e)})]});}function xe(_0x5b52c6){const _0x2dfd0a=_0x3c4d26,{coordinator:_0x8ed1ea}=_0x5b52c6;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x2dfd0a(0xd5),{'className':_0x2dfd0a(0x150),'children':_0x2dfd0a(0xf5)}),_0x297ed2(_0x262bb5,{'onClick':()=>_0x8ed1ea['stopFollowing'](),'children':_0x2dfd0a(0xe6)})]});}function Pe(_0x43531d){const _0xe1135b=_0x3c4d26,{coordinator:_0x46a62b}=_0x43531d;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0xe1135b(0xd5),{'className':_0xe1135b(0x150),'children':_0xe1135b(0xf0)}),_0x297ed2(_0x262bb5,{'variant':_0xe1135b(0x14f),'onClick':()=>_0x46a62b[_0xe1135b(0x140)](),'children':_0xe1135b(0x10a)})]});}function Ae(_0x5b88bc){const _0x3b6018=_0x3c4d26,{coordinator:_0x5a4c6d}=_0x5b88bc;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x3b6018(0xd5),{'className':_0x3b6018(0x150),'children':_0x3b6018(0x100)}),_0x297ed2(_0x262bb5,{'variant':_0x3b6018(0xc2),'onClick':()=>_0x5a4c6d[_0x3b6018(0x130)](),'children':_0x3b6018(0x108)})]});}function Te(){const _0x4ad64f=_0x3c4d26;return _0x297ed2(_0x20d81a,{'children':_0x4ad64f(0xd1)});}var Fe=Object[_0x3c4d26(0x111)],He=(_0x53d57b,_0x497c25,_0x3c8ba5,_0x3476e1)=>{for(var _0x1fe884=_0x3476e1>0x1?void 0x0:_0x3476e1?Fe(_0x497c25,_0x3c8ba5):_0x497c25,_0xa70e93=_0x53d57b['length']-0x1,_0x251851;_0xa70e93>=0x0;_0xa70e93--)(_0x251851=_0x53d57b[_0xa70e93])&&(_0x1fe884=_0x251851(_0x1fe884)||_0x1fe884);return _0x1fe884;},A=(_0x1755e1,_0x4191fa)=>(_0x1f5d4b,_0x460ddf)=>_0x4191fa(_0x1f5d4b,_0x460ddf,_0x1755e1);let m=class extends _0x167de9{constructor(_0x4eda34,_0x2340ce){const _0x4ff14c=_0x3c4d26;super(),this[_0x4ff14c(0xfc)]=_0x4eda34,this[_0x4ff14c(0xd0)]=_0x2340ce,this['_mountLiveShare']();}[_0x3c4d26(0xa6)](){const _0x3e2761=_0x3c4d26;this[_0x3e2761(0xa5)](this[_0x3e2761(0xd0)][_0x3e2761(0x122)](_0x13b76f[_0x3e2761(0x116)],()=>_0x412f64(Le,this[_0x3e2761(0xfc)])));}};m=He([A(0x0,_0x1668bc(_0x465048)),A(0x1,_0x172fbc)],m);const ye=_0x3c4d26(0xc6),T={};var Ue=Object[_0x3c4d26(0x111)],Ve=(_0x38c75d,_0x2f2f86,_0x4db672,_0xdfa37)=>{const _0x2a9401=_0x3c4d26;for(var _0x230c07=_0xdfa37>0x1?void 0x0:_0xdfa37?Ue(_0x2f2f86,_0x4db672):_0x2f2f86,_0x4d6b0e=_0x38c75d[_0x2a9401(0xb1)]-0x1,_0x2954d2;_0x4d6b0e>=0x0;_0x4d6b0e--)(_0x2954d2=_0x38c75d[_0x4d6b0e])&&(_0x230c07=_0x2954d2(_0x230c07)||_0x230c07);return _0x230c07;},je=(_0x2761f8,_0x4220cd)=>(_0x461ee3,_0x58036a)=>_0x4220cd(_0x461ee3,_0x58036a,_0x2761f8);let I=class extends _0x167de9{constructor(_0x2a65d0){const _0x49ca69=_0x3c4d26;super(),this[_0x49ca69(0x141)]=_0x2a65d0,this[_0x49ca69(0xa7)]();}[_0x3c4d26(0xa7)](){const _0x52b65d=_0x3c4d26;[_0x477fa1['id'],_0x1426bd['id'],_0x229740['id']][_0x52b65d(0x109)](_0x44551a=>{const _0x3829a1=_0x52b65d;this['disposeWithMe'](this['_liveShareService'][_0x3829a1(0xe7)](_0x44551a));});}};I=Ve([je(0x0,_0x1668bc(L))],I);var Me=Object['defineProperty'],ke=Object[_0x3c4d26(0x111)],Ge=(_0x552387,_0x4a1693,_0xc41582)=>_0x4a1693 in _0x552387?Me(_0x552387,_0x4a1693,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc41582}):_0x552387[_0x4a1693]=_0xc41582,We=(_0x1c7235,_0x53ca88,_0x23f1e4,_0x337006)=>{const _0x55521c=_0x3c4d26;for(var _0x4bca3f=_0x337006>0x1?void 0x0:_0x337006?ke(_0x53ca88,_0x23f1e4):_0x53ca88,_0x318f02=_0x1c7235[_0x55521c(0xb1)]-0x1,_0x576d87;_0x318f02>=0x0;_0x318f02--)(_0x576d87=_0x1c7235[_0x318f02])&&(_0x4bca3f=_0x576d87(_0x4bca3f)||_0x4bca3f);return _0x4bca3f;},F=(_0x818b45,_0x2a99a3)=>(_0x13d330,_0x3c945f)=>_0x2a99a3(_0x13d330,_0x3c945f,_0x818b45),B=(_0x19c8c9,_0x1b64ec,_0x14ffa9)=>Ge(_0x19c8c9,typeof _0x1b64ec!='symbol'?_0x1b64ec+'':_0x1b64ec,_0x14ffa9);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x8999f6{constructor(_0x8fc644=T,_0x5c3784,_0x375c8a){const _0x310cb4=_0x3c4d26;super(),this[_0x310cb4(0x133)]=_0x8fc644,this[_0x310cb4(0xfc)]=_0x5c3784,this[_0x310cb4(0xb5)]=_0x375c8a;const {..._0x233474}=_0x5cf637({},T,this[_0x310cb4(0x133)]);this['_configService']['setConfig'](ye,_0x233474);}['onStarting'](){const _0x12a848=_0x3c4d26;_0x385419(this[_0x12a848(0xfc)],_0xc75ac0([[L],[S],[I],[m]],this[_0x12a848(0x133)][_0x12a848(0x11f)])),_0xaa1b3f(this['_injector'],[[I]]);}[_0x3c4d26(0x124)](){_0xaa1b3f(this['_injector'],[[m]]);}};B(b,_0x3c4d26(0x114),_0x152fad[_0x3c4d26(0xdb)]),B(b,'pluginName',Ye),b=We([_0x3124b9(_0x57a458),F(0x1,_0x1668bc(_0x465048)),F(0x2,_0x470b5c)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x29b382=_0x263b;(function(_0x1ce8e6,_0x292858){const _0x2fd5f1=_0x263b,_0x1c6ba2=_0x1ce8e6();while(!![]){try{const _0x398829=parseInt(_0x2fd5f1(0x10b))/0x1+-parseInt(_0x2fd5f1(0xe5))/0x2*(parseInt(_0x2fd5f1(0x137))/0x3)+parseInt(_0x2fd5f1(0x12d))/0x4+parseInt(_0x2fd5f1(0x123))/0x5*(parseInt(_0x2fd5f1(0xd3))/0x6)+-parseInt(_0x2fd5f1(0x14b))/0x7*(parseInt(_0x2fd5f1(0xaf))/0x8)+parseInt(_0x2fd5f1(0xeb))/0x9+-parseInt(_0x2fd5f1(0x12e))/0xa*(parseInt(_0x2fd5f1(0x129))/0xb);if(_0x398829===_0x292858)break;else _0x1c6ba2['push'](_0x1c6ba2['shift']());}catch(_0x59b1d4){_0x1c6ba2['push'](_0x1c6ba2['shift']());}}}(_0x40b0,0x9d948));var J=Object['defineProperty'],K=(_0x4e65f1,_0xe9b685,_0x46b73a)=>_0xe9b685 in _0x4e65f1?J(_0x4e65f1,_0xe9b685,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46b73a}):_0x4e65f1[_0xe9b685]=_0x46b73a,u=(_0xc5cc48,_0x556804,_0xf06fcf)=>K(_0xc5cc48,typeof _0x556804!=_0x29b382(0x13d)?_0x556804+'':_0x556804,_0xf06fcf);import{Disposable as _0x54703,toDisposable as _0x73bcdc,Inject as _0x4473be,Injector as _0x567548,RxDisposable as _0x1fd51a,UniverInstanceType as _0x146358,DisposableCollection as _0x1960ad,CommandType as _0x4d19c4,IUniverInstanceService as _0x4c2f77,IConfigService as _0x28d418,ICommandService as _0x344f5e,DependentOn as _0x18815f,Plugin as _0x51513e,merge as _0x3675e2,registerDependencies as _0x563134,mergeOverrideWithDependencies as _0x2e4cdf,touchDependencies as _0x5d1821}from'@univerjs/core';import{useDependency as _0x3a5ae3,useObservable as _0x5d50ae,BuiltInUIPart as _0x5162da,connectInjector as _0x28a5b4,IUIPartsService as _0x689301}from'@univerjs/ui';import{jsx as _0x380609,jsxs as _0x290402,Fragment as _0x382570}from'react/jsx-runtime';import{Dropdown as _0x4d6704,clsx as _0x9d875,Button as _0xfebf7c}from'@univerjs/design';import{useRef as _0x3cec89,createElement as _0x39a169,forwardRef as _0x2c0538,useState as _0x885ddc,useEffect as _0x1d338e}from'react';import{CollaborationEvent as _0x42ea0b,parseProtocolChangeset as _0x5c427d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1989c5,SessionStatus as _0x32c3ff,UniverCollaborationClientPlugin as _0x43b951}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1e8650,SetWorksheetActiveOperation as _0x173dc8}from'@univerjs/sheets';import{BehaviorSubject as _0x588d75,Subject as _0x159389}from'rxjs';import{takeUntil as _0x41ca2b,throttleTime as _0xf172dd}from'rxjs/operators';import{SetZoomRatioOperation as _0x410861,SetScrollOperation as _0x46540b}from'@univerjs/sheets-ui';function k({ref:_0x39ecd6,..._0x18f897}){const _0x469718=_0x29b382,{icon:_0x578422,id:_0x3c8fd3,className:_0x12c834,extend:_0x589e45,..._0x32067d}=_0x18f897,_0x2b007e=(_0x469718(0xf9)+_0x3c8fd3+'\x20'+(_0x12c834||''))['trim'](),_0x160c12=_0x3cec89('_'+Oe());return G(_0x578422,''+_0x3c8fd3,{'defIds':_0x578422['defIds'],'idSuffix':_0x160c12[_0x469718(0x14c)]},{'ref':_0x39ecd6,'className':_0x2b007e,..._0x32067d},_0x589e45);}function G(_0x2c72d9,_0xd9c0a6,_0x52bc0f,_0x2f5f1f,_0x24ee5f){const _0x4c6621=_0x29b382;return _0x39a169(_0x2c72d9[_0x4c6621(0x135)],{'key':_0xd9c0a6,...be(_0x2c72d9,_0x52bc0f,_0x24ee5f),..._0x2f5f1f},(Ee(_0x2c72d9,_0x52bc0f)[_0x4c6621(0xfd)]||[])[_0x4c6621(0x141)]((_0x2679f2,_0x240771)=>G(_0x2679f2,_0xd9c0a6+'-'+_0x2c72d9[_0x4c6621(0x135)]+'-'+_0x240771,_0x52bc0f,void 0x0,_0x24ee5f)));}function be(_0x1d96a6,_0xf7f7dc,_0x2ae165){const _0x24cb72=_0x29b382,_0x28c261={..._0x1d96a6[_0x24cb72(0xdd)]};_0x2ae165!=null&&_0x2ae165[_0x24cb72(0xdf)]&&_0x28c261[_0x24cb72(0x119)]==='colorChannel1'&&(_0x28c261['fill']=_0x2ae165[_0x24cb72(0xdf)]),_0x1d96a6[_0x24cb72(0x135)]===_0x24cb72(0x11e)&&_0x28c261['id']&&(_0x28c261['id']=_0x28c261['id']+_0xf7f7dc[_0x24cb72(0xcb)]),Object[_0x24cb72(0x109)](_0x28c261)[_0x24cb72(0xc8)](([_0x51324d,_0x46e47c])=>{const _0x1a4117=_0x24cb72;_0x51324d==='mask'&&typeof _0x46e47c==_0x1a4117(0xda)&&(_0x28c261[_0x51324d]=_0x46e47c[_0x1a4117(0x147)](/url\(#(.*)\)/,'url(#$1'+_0xf7f7dc[_0x1a4117(0xcb)]+')'));});const {defIds:_0x1dc3a7}=_0xf7f7dc;return!_0x1dc3a7||_0x1dc3a7[_0x24cb72(0x140)]===0x0||(_0x1d96a6[_0x24cb72(0x135)]===_0x24cb72(0x149)&&_0x28c261[_0x24cb72(0x112)]&&(_0x28c261[_0x24cb72(0x112)]=_0x28c261[_0x24cb72(0x112)]+_0xf7f7dc[_0x24cb72(0xcb)]),Object['entries'](_0x28c261)[_0x24cb72(0xc8)](([_0x306597,_0x11d680])=>{const _0x50a44b=_0x24cb72;typeof _0x11d680==_0x50a44b(0xda)&&(_0x28c261[_0x306597]=_0x11d680[_0x50a44b(0x147)](/url\(#(.*)\)/,_0x50a44b(0xd5)+_0xf7f7dc[_0x50a44b(0xcb)]+')'));})),_0x28c261;}function Ee(_0x3bce5b,_0x5be26b){const _0x134cbc=_0x29b382;var _0x421156;const {defIds:_0x248bdd}=_0x5be26b;return!_0x248bdd||_0x248bdd['length']===0x0?_0x3bce5b:_0x3bce5b[_0x134cbc(0x135)]===_0x134cbc(0x148)&&((_0x421156=_0x3bce5b[_0x134cbc(0xfd)])!=null&&_0x421156[_0x134cbc(0x140)])?{..._0x3bce5b,'children':_0x3bce5b[_0x134cbc(0xfd)][_0x134cbc(0x141)](_0x1ed1b5=>typeof _0x1ed1b5[_0x134cbc(0xdd)]['id']==_0x134cbc(0xda)&&_0x248bdd&&_0x248bdd['includes'](_0x1ed1b5[_0x134cbc(0xdd)]['id'])?{..._0x1ed1b5,'attrs':{..._0x1ed1b5['attrs'],'id':_0x1ed1b5[_0x134cbc(0xdd)]['id']+_0x5be26b['idSuffix']}}:_0x1ed1b5)}:_0x3bce5b;}function Oe(){const _0x5902a2=_0x29b382;return Math[_0x5902a2(0xd1)]()[_0x5902a2(0xd6)](0x24)[_0x5902a2(0xb9)](0x2,0x8);}k[_0x29b382(0xe7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x29b382(0xc4),'fill':_0x29b382(0xf1),'viewBox':_0x29b382(0x13b),'width':_0x29b382(0xde),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x29b382(0xd0),'d':_0x29b382(0xf0)}},{'tag':_0x29b382(0xce),'attrs':{'fill':_0x29b382(0xd0),'d':_0x29b382(0x10f),'fillRule':_0x29b382(0x12c),'clipRule':_0x29b382(0x12c)}}]},W=_0x2c0538(function(_0x4d6226,_0x503cfc){const _0x3074c8=_0x29b382;return _0x39a169(k,Object[_0x3074c8(0x127)]({},_0x4d6226,{'id':_0x3074c8(0x146),'ref':_0x503cfc,'icon':we}));});W[_0x29b382(0xe7)]=_0x29b382(0xe8);class L extends _0x54703{constructor(){const _0x2e8c52=_0x29b382;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2e8c52(0x126),new Set());}['registerSharedOperation'](_0xc73c3b){const _0x88d94b=_0x29b382;return this[_0x88d94b(0xe4)][_0x88d94b(0xcd)](_0xc73c3b),_0x73bcdc(()=>this[_0x88d94b(0xe4)][_0x88d94b(0xa6)](_0xc73c3b));}[_0x29b382(0x100)](_0x51074d){const _0x339e68=_0x29b382;return this['_reporters'][_0x339e68(0xcd)](_0x51074d),_0x73bcdc(()=>this[_0x339e68(0x126)][_0x339e68(0xa6)](_0x51074d));}[_0x29b382(0x115)](_0x1b0409){const _0x1eb0a4=_0x29b382;return this[_0x1eb0a4(0xe4)]['has'](_0x1b0409);}[_0x29b382(0x108)](_0x54f214){return Array['from'](this['_reporters'])['map'](_0x3797c2=>_0x3797c2(_0x54f214));}}function _0x263b(_0x217ea8,_0x93f07e){_0x217ea8=_0x217ea8-0xa6;const _0x40b001=_0x40b0();let _0x263b9e=_0x40b001[_0x217ea8];return _0x263b9e;}var Ne=Object[_0x29b382(0x105)],Y=(_0x3bdf39,_0x2ce51a,_0x48feb3,_0x477b32)=>{const _0x2bcb83=_0x29b382;for(var _0x5d320b=_0x477b32>0x1?void 0x0:_0x477b32?Ne(_0x2ce51a,_0x48feb3):_0x2ce51a,_0x4da31e=_0x3bdf39[_0x2bcb83(0x140)]-0x1,_0x3a31f4;_0x4da31e>=0x0;_0x4da31e--)(_0x3a31f4=_0x3bdf39[_0x4da31e])&&(_0x5d320b=_0x3a31f4(_0x5d320b)||_0x5d320b);return _0x5d320b;},_=(_0x41aa5c,_0x3e390b)=>(_0x175c9f,_0x4fc452)=>_0x3e390b(_0x175c9f,_0x4fc452,_0x41aa5c);let S=class extends _0x1fd51a{constructor(_0x24c49b,_0x1a4f58,_0x4b8a47){const _0x1b78b1=_0x29b382;super(),u(this,_0x1b78b1(0xe3),new Map()),(this[_0x1b78b1(0x13e)]=_0x24c49b,this[_0x1b78b1(0xcf)]=_0x1a4f58,this[_0x1b78b1(0x12f)]=_0x4b8a47,this[_0x1b78b1(0xc2)]());}async[_0x29b382(0x14a)](_0x37dabe){const _0x5888c0=_0x29b382;return this[_0x5888c0(0xe3)][_0x5888c0(0x132)](_0x37dabe)||await this['_startLiveShareCoordinator'](_0x37dabe),this[_0x5888c0(0xe3)]['get'](_0x37dabe);}[_0x29b382(0xcc)](_0x48086c){const _0x8aca06=_0x29b382;var _0x5af918;return(_0x5af918=this[_0x8aca06(0xe3)][_0x8aca06(0xb1)](_0x48086c))!=null?_0x5af918:null;}[_0x29b382(0xc2)](){const _0x36e23=_0x29b382;this[_0x36e23(0x13e)][_0x36e23(0x113)](_0x146358['UNIVER_SHEET'])[_0x36e23(0x12a)](_0x41ca2b(this[_0x36e23(0xf3)]))['subscribe'](async _0x55c54f=>{const _0x45146a=_0x36e23,_0x578a58=_0x55c54f['getUnitId']();this[_0x45146a(0xe3)][_0x45146a(0x132)](_0x578a58)||this[_0x45146a(0xae)](_0x578a58);}),this['_univerInstanceService'][_0x36e23(0xab)](_0x146358['UNIVER_SHEET'])[_0x36e23(0x12a)](_0x41ca2b(this['dispose$']))['subscribe'](_0x4a5626=>{const _0x234bbc=_0x36e23,_0x55f85a=_0x4a5626[_0x234bbc(0x120)](),_0x254b3d=this[_0x234bbc(0xe3)]['get'](_0x55f85a);_0x254b3d==null||_0x254b3d['dispose']();});}async[_0x29b382(0xae)](_0x443bf3){const _0x599137=_0x29b382,_0x3a7e49=await this['_collabSessionService'][_0x599137(0xf4)](_0x443bf3),_0x40dd42=this['_injector'][_0x599137(0x125)](N,_0x443bf3,_0x3a7e49);return _0x40dd42['init'](),this[_0x599137(0xe3)][_0x599137(0x102)](_0x443bf3,_0x40dd42),_0x40dd42;}};S=Y([_(0x0,_0x4c2f77),_(0x1,_0x4473be(_0x567548)),_(0x2,_0x4473be(_0x1989c5))],S);var c=(_0x20b90f=>(_0x20b90f[_0x29b382(0xf2)]='offline',_0x20b90f[_0x29b382(0x11b)]=_0x29b382(0x14f),_0x20b90f[_0x29b382(0xea)]=_0x29b382(0xb5),_0x20b90f[_0x29b382(0xf6)]='not-following',_0x20b90f[_0x29b382(0xf7)]='presenting',_0x20b90f))(c||{});const Ce=_0x29b382(0x11a),De=0xc8;let N=class extends _0x1fd51a{constructor(_0x597052,_0x373bc7,_0x39b7c3,_0xe6295,_0x48b918){const _0x44884a=_0x29b382;super(),u(this,_0x44884a(0xee),new _0x588d75(_0x44884a(0x14f))),u(this,'status$',this[_0x44884a(0xee)][_0x44884a(0xca)]()),u(this,_0x44884a(0xc2),!0x1),u(this,_0x44884a(0x122),null),u(this,_0x44884a(0x13a),null),(this['_unitID']=_0x597052,this[_0x44884a(0xf8)]=_0x373bc7,this['_configService']=_0x39b7c3,this['_liveShareService']=_0xe6295,this[_0x44884a(0xad)]=_0x48b918);}get['_status'](){const _0x2c695b=_0x29b382;return this[_0x2c695b(0xee)][_0x2c695b(0x116)]();}[_0x29b382(0x131)](){const _0x33243c=_0x29b382;var _0x2fd904;(_0x2fd904=this['_commandDisposable'])==null||_0x2fd904[_0x33243c(0x131)](),this[_0x33243c(0xee)][_0x33243c(0xa8)](_0x33243c(0x14f)),this[_0x33243c(0xee)][_0x33243c(0x14e)]();}[_0x29b382(0xba)](){return this['_status'];}[_0x29b382(0x101)](){const _0x12e442=_0x29b382;this[_0x12e442(0xc2)]||(this[_0x12e442(0xc2)]=!0x0,this[_0x12e442(0xf8)]['sessionStatus$'][_0x12e442(0x12a)](_0x41ca2b(this['dispose$']))[_0x12e442(0xe0)](_0x575b93=>{const _0x47c24f=_0x12e442;switch(_0x575b93){case _0x32c3ff[_0x47c24f(0xf2)]:this['_handleOffline']();break;case _0x32c3ff[_0x47c24f(0xe2)]:this[_0x47c24f(0x121)]();break;}}),this[_0x12e442(0xf8)][_0x12e442(0x136)][_0x12e442(0x12a)](_0x41ca2b(this['dispose$']))['subscribe'](_0x47bf58=>{const _0x24933a=_0x12e442,{eventID:_0xe5d565}=_0x47bf58;switch(_0xe5d565){case _0x42ea0b[_0x24933a(0x107)]:this[_0x24933a(0x10d)](_0x47bf58);break;case _0x42ea0b['LIVESHARE_OPERATION']:this[_0x24933a(0xe6)](_0x47bf58);break;case _0x42ea0b[_0x24933a(0xbb)]:this['_handleTerminate']();break;case _0x42ea0b[_0x24933a(0xc6)]:this['_handleNewChangeSets'](_0x47bf58);break;}}));}[_0x29b382(0x150)](){const _0x586645=_0x29b382;this['_collabSession'][_0x586645(0xb4)]({'eventID':_0x42ea0b['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x586645(0xe9)]()}},this[_0x586645(0xd2)]);}['stopPresenting'](){const _0x19950f=_0x29b382;this[_0x19950f(0xfc)]==='presenting'&&(this[_0x19950f(0xee)][_0x19950f(0xa8)]('idle'),this['_collabSession']['send']({'eventID':_0x42ea0b[_0x19950f(0xbb)],'data':{'unitID':this[_0x19950f(0xd2)]}},this[_0x19950f(0xd2)]));}[_0x29b382(0xdb)](){const _0x1fd060=_0x29b382;this[_0x1fd060(0xfc)]==='not-following'&&(this[_0x1fd060(0xee)][_0x1fd060(0xa8)]('following'),this['_startFollowing']());}[_0x29b382(0x10a)](){const _0x1c5abb=_0x29b382;this[_0x1c5abb(0xfc)]===_0x1c5abb(0xb5)&&this[_0x1c5abb(0x11c)]();}['_handleNewHost'](_0x383a11){const _0x153dae=_0x29b382,{presenter:_0x2d195c}=_0x383a11['data'],_0x197ebf=this[_0x153dae(0xf8)][_0x153dae(0xe9)]();this['_presenter']=_0x2d195c,_0x2d195c===_0x197ebf?(this[_0x153dae(0x11c)](),this[_0x153dae(0x10c)]()):this[_0x153dae(0xfc)]!==_0x153dae(0xac)&&(this[_0x153dae(0xd4)](),this[_0x153dae(0x133)]());}[_0x29b382(0xb6)](){const _0x34568b=_0x29b382,_0x1fe1f5={'eventID':_0x42ea0b[_0x34568b(0x139)]};this['_collabSession'][_0x34568b(0xb4)](_0x1fe1f5,this[_0x34568b(0xd2)]);}[_0x29b382(0xc9)](){const _0x387883=_0x29b382;this[_0x387883(0x13a)]=null,this['_status']!==_0x387883(0x144)&&this[_0x387883(0x11f)]();}[_0x29b382(0x134)](_0x37dcd6){const _0x1cb319=_0x29b382;if(this['_status']===_0x1cb319(0xb5)&&this['_presenter']===_0x37dcd6['data']['memberID']){const _0x3ee52c=_0x5c427d(_0x37dcd6[_0x1cb319(0xb2)])[_0x1cb319(0xaa)][_0x1cb319(0xd9)]()[_0x1cb319(0x104)](_0x57a900=>_0x57a900['id']===_0x1e8650['id']);if(_0x3ee52c){const _0x10f065=_0x3ee52c['params'][_0x1cb319(0x114)],_0x11d92d=_0x3ee52c[_0x1cb319(0xbc)][_0x1cb319(0xfa)]['id'];setTimeout(()=>{const _0x3bdfb5=_0x1cb319;this[_0x3bdfb5(0xad)]['executeCommand'](_0x173dc8['id'],{'unitId':_0x10f065,'subUnitId':_0x11d92d},{'fromCollab':!0x0});});}}}[_0x29b382(0x10c)](){const _0x5039cb=_0x29b382;this[_0x5039cb(0xee)][_0x5039cb(0xa8)](_0x5039cb(0x144));const _0x5e59a9=new Map(),_0x1404c1=this[_0x5039cb(0x122)]=new _0x1960ad();_0x1404c1[_0x5039cb(0xcd)](_0x73bcdc(()=>{const _0x1c0de9=_0x5039cb;_0x5e59a9[_0x1c0de9(0xc8)](_0x282a9d=>_0x282a9d[_0x1c0de9(0x14e)]()),_0x5e59a9['clear']();})),_0x1404c1['add'](this[_0x5039cb(0xad)][_0x5039cb(0xbf)](_0x51fa24=>{const _0x484a=_0x5039cb;var _0x36b3e8;if(_0x51fa24[_0x484a(0x124)]!==_0x4d19c4[_0x484a(0xc3)]||!this['_liveShareService'][_0x484a(0x115)](_0x51fa24['id']))return;const {id:_0x4666fd}=_0x51fa24;let _0x3a22c9;_0x5e59a9[_0x484a(0x132)](_0x4666fd)?_0x3a22c9=_0x5e59a9[_0x484a(0xb1)](_0x4666fd):(_0x3a22c9=new _0x159389(),_0x5e59a9[_0x484a(0x102)](_0x4666fd,_0x3a22c9),_0x3a22c9[_0x484a(0x12a)](_0xf172dd((_0x36b3e8=this[_0x484a(0x145)][_0x484a(0x13f)](Ce))!=null?_0x36b3e8:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x484a(0xe0)](_0x369ed4=>{const _0x378d1b=_0x484a;this[_0x378d1b(0xf8)][_0x378d1b(0xb4)]({'eventID':_0x42ea0b[_0x378d1b(0x13c)],'data':{'unitID':this[_0x378d1b(0xd2)],'operations':{[_0x369ed4['id']]:{'id':_0x369ed4['id'],'params':JSON['stringify'](_0x369ed4[_0x378d1b(0xbc)])}}}},this[_0x378d1b(0xd2)]);})),_0x3a22c9['next'](_0x51fa24);})),this[_0x5039cb(0xc5)]['getInitialStates'](this[_0x5039cb(0xd2)])[_0x5039cb(0xc8)](_0x184e0d=>this[_0x5039cb(0xf8)][_0x5039cb(0xb4)]({'eventID':_0x42ea0b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5039cb(0xd2)],'operations':{[_0x184e0d['id']]:{'id':_0x184e0d['id'],'params':JSON[_0x5039cb(0xc0)](_0x184e0d[_0x5039cb(0xbc)])}}}},this[_0x5039cb(0xd2)]));}[_0x29b382(0xd4)](){const _0x4804e5=_0x29b382;var _0x37b52d;this[_0x4804e5(0xee)][_0x4804e5(0xa8)](_0x4804e5(0x14f)),(_0x37b52d=this[_0x4804e5(0x122)])==null||_0x37b52d['dispose'](),this[_0x4804e5(0x122)]=null;}[_0x29b382(0x133)](){const _0x1019a0=_0x29b382;var _0xae0f05;(_0xae0f05=this[_0x1019a0(0x122)])==null||_0xae0f05[_0x1019a0(0x131)](),this['_status$'][_0x1019a0(0xa8)](_0x1019a0(0xb5));}[_0x29b382(0x11f)](){const _0x59bcc0=_0x29b382;var _0x59b04c;this[_0x59bcc0(0xee)][_0x59bcc0(0xa8)](_0x59bcc0(0x14f)),(_0x59b04c=this[_0x59bcc0(0x122)])==null||_0x59b04c[_0x59bcc0(0x131)](),this[_0x59bcc0(0x122)]=null;}[_0x29b382(0x11c)](){const _0x1fdcb4=_0x29b382;var _0x30c30a;this[_0x1fdcb4(0xee)][_0x1fdcb4(0xa8)](_0x1fdcb4(0xac)),(_0x30c30a=this[_0x1fdcb4(0x122)])==null||_0x30c30a['dispose']();}[_0x29b382(0xe6)](_0x1208b5){const _0x2d05b0=_0x29b382;if([_0x2d05b0(0x144),_0x2d05b0(0xac),'offline'][_0x2d05b0(0xdc)](this['_status'])||!_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xb0)]||_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xb0)]===this[_0x2d05b0(0xf8)][_0x2d05b0(0xe9)]())return;this[_0x2d05b0(0xfc)]===_0x2d05b0(0x14f)&&this[_0x2d05b0(0x133)]();const _0x41070c=_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xc7)];Object['values'](_0x41070c)[_0x2d05b0(0xc8)](_0x37aa98=>{const _0x2f45c1=_0x2d05b0;this[_0x2f45c1(0xad)]['executeCommand'](_0x37aa98['id'],_0x37aa98[_0x2f45c1(0xbc)]?JSON['parse'](_0x37aa98[_0x2f45c1(0xbc)]):null,{'fromCollab':!0x0});});}[_0x29b382(0xc1)](){const _0x203d21=_0x29b382;var _0x177381;this['_status$'][_0x203d21(0xa8)](_0x203d21(0xb7)),(_0x177381=this['_commandDisposable'])==null||_0x177381['dispose']();}['_handleOnline'](){const _0x48a199=_0x29b382;this[_0x48a199(0xee)][_0x48a199(0xa8)](_0x48a199(0x14f)),this[_0x48a199(0xb6)]();}};N=Y([_(0x2,_0x28d418),_(0x3,_0x4473be(L)),_(0x4,_0x344f5e)],N);function _0x40b0(){const _0x25c4b1=['next','disposeWithMe','mutations','getTypeOfUnitDisposed$','not-following','_commandService','_startLiveShareCoordinator','47704HrXqZW','presenter','get','data','You\x27re\x20following\x20the\x20presenter','send','following','_fetchOperations','offline','status$','substring','getStatus','LIVESHARE_TERMINATE','params','unsubscribe','text','onCommandExecuted','stringify','_handleOffline','_init','OPERATION','http://www.w3.org/2000/svg','_liveShareService','NEW_CHANGESETS','operations','forEach','_handleTerminate','asObservable','idSuffix','getLiveShareCoordinatorSync','add','path','_injector','currentColor','random','_unitID','90XJRjHP','_stopPresenting','url(#$1','toString','_config','Start','reverse','string','startFollowing','includes','attrs','1em','colorChannel1','subscribe','end','ONLINE','_entities','_sharedOperations','84YrRMJC','_handleOperation','displayName','LiveShareIcon','getMemberID','FOLLOWING','3303450xAwLKe','_uiPartsService','HEADER_MENU','_status$','onStarting','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','none','OFFLINE','dispose$','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','NOT_FOLLOWING','PRESENTING','_collabSession','univerjs-icon\x20univerjs-icon-','sheet','Stop\x20following','_status','children','setConfig','You\x27re\x20presenting\x20the\x20document','registerInitialStateReporter','init','set','getCurrentTypeOfUnit$','find','getOwnPropertyDescriptor','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_NEW_HOST','getInitialStates','entries','stopFollowing','401146zaeKNQ','_startPresenting','_handleNewHost','button','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','Start\x20following','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','xlink:href','getTypeOfUnitAdded$','unitId','shouldShareOperation','getValue','registerSharedOperation','then','fill','SAME_OPERATION_SHARE_INTERVAL','IDLE','_stopFollowing','UNIVER_UNKNOWN','mask','_beIdle','getUnitId','_handleOnline','_commandDisposable','140730wOyQeL','type','createInstance','_reporters','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','132DhiMcT','pipe','div','evenodd','1741212oQNgGf','521960SpumcA','_collabSessionService','stopPresenting','dispose','has','_startFollowing','_handleNewChangeSets','tag','event$','24000nwRvKx','_mountLiveShare','LIVESHARE_FETCH_OPERATIONS','_presenter','0\x200\x2017\x2017','LIVESHARE_OPERATION','symbol','_univerInstanceService','getConfig','length','map','You\x27re\x20not\x20following\x20the\x20presenter','univer-size-4','presenting','_configService','live-share-icon','replace','defs','use','getLiveShareCoordinator','21KtMYyZ','current','override','complete','idle','tryStartPresenting','delete','You\x27are\x20offline.'];_0x40b0=function(){return _0x25c4b1;};return _0x40b0();}function Le(){const _0x38b7c3=_0x29b382,_0x58b041=_0x3a5ae3(S),_0x1cc606=_0x3a5ae3(_0x4c2f77),_0x284194=_0x5d50ae(()=>_0x1cc606[_0x38b7c3(0x103)](_0x146358['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xa3212f,_0x3500d6]=_0x885ddc(null),[_0x23d18d,_0x17ae61]=_0x885ddc(c[_0x38b7c3(0x11b)]),_0x4e5c8a=_0x3cec89(null);return _0x1d338e(()=>(_0x284194&&_0x58b041[_0x38b7c3(0x14a)](_0x284194[_0x38b7c3(0x120)]())[_0x38b7c3(0x118)](_0xda110f=>{const _0x77c91b=_0x38b7c3;_0x3500d6(_0xda110f),_0x4e5c8a['current']=_0xda110f[_0x77c91b(0xb8)][_0x77c91b(0xe0)](_0x1064ec=>{_0x17ae61(_0x1064ec);});}),()=>{const _0x393ba9=_0x38b7c3;var _0x4e7f6f;(_0x4e7f6f=_0x4e5c8a[_0x393ba9(0x14c)])==null||_0x4e7f6f[_0x393ba9(0xbd)](),_0x4e5c8a[_0x393ba9(0x14c)]=null;}),[_0x284194,_0x58b041]),_0xa3212f?_0x380609(_0x4d6704,{'align':_0x38b7c3(0xe1),'disabled':_0x23d18d===c[_0x38b7c3(0xf2)],'className':_0x38b7c3(0x111),'overlay':_0x380609(Re,{'status':_0x23d18d,'coordinator':_0xa3212f}),'children':_0x380609(_0x38b7c3(0x10e),{'className':_0x9d875(_0x38b7c3(0x128),{'univer-cursor-not-allowed':_0x23d18d===c[_0x38b7c3(0xf2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23d18d!==c['OFFLINE']}),'type':'button','children':_0x380609(W,{'className':_0x38b7c3(0x143)})})}):null;}function Re(_0x19e596){const _0x1c4ea4=_0x29b382,{status:_0x2847db,coordinator:_0x1f69de}=_0x19e596;switch(_0x2847db){case c[_0x1c4ea4(0x11b)]:return _0x380609($e,{'coordinator':_0x1f69de});case c[_0x1c4ea4(0xea)]:return _0x380609(xe,{'coordinator':_0x1f69de});case c['NOT_FOLLOWING']:return _0x380609(Pe,{'coordinator':_0x1f69de});case c[_0x1c4ea4(0xf2)]:return _0x380609(Te,{});case c[_0x1c4ea4(0xf7)]:return _0x380609(Ae,{'coordinator':_0x1f69de});default:return null;}}function $e(_0x30f591){const _0x51431e=_0x29b382,{coordinator:_0x4bb996}=_0x30f591;return _0x290402(_0x382570,{'children':[_0x380609(_0x51431e(0x12b),{'className':_0x51431e(0xf5),'children':'Present\x20this\x20document'}),_0x380609(_0xfebf7c,{'onClick':()=>_0x4bb996[_0x51431e(0x150)](),'children':_0x51431e(0xd8)})]});}function xe(_0x116905){const _0x134561=_0x29b382,{coordinator:_0x109b8a}=_0x116905;return _0x290402(_0x382570,{'children':[_0x380609(_0x134561(0x12b),{'className':_0x134561(0xf5),'children':_0x134561(0xb3)}),_0x380609(_0xfebf7c,{'onClick':()=>_0x109b8a[_0x134561(0x10a)](),'children':_0x134561(0xfb)})]});}function Pe(_0xda8120){const _0x1cb289=_0x29b382,{coordinator:_0x5cb90d}=_0xda8120;return _0x290402(_0x382570,{'children':[_0x380609(_0x1cb289(0x12b),{'className':_0x1cb289(0xf5),'children':_0x1cb289(0x142)}),_0x380609(_0xfebf7c,{'variant':_0x1cb289(0xbe),'onClick':()=>_0x5cb90d['startFollowing'](),'children':_0x1cb289(0x110)})]});}function Ae(_0x5510ef){const _0x1d9f02=_0x29b382,{coordinator:_0x427663}=_0x5510ef;return _0x290402(_0x382570,{'children':[_0x380609(_0x1d9f02(0x12b),{'className':_0x1d9f02(0xf5),'children':_0x1d9f02(0xff)}),_0x380609(_0xfebf7c,{'variant':'default','onClick':()=>_0x427663[_0x1d9f02(0x130)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x17d2d3=_0x29b382;return _0x380609(_0x382570,{'children':_0x17d2d3(0xa7)});}var Fe=Object[_0x29b382(0x105)],He=(_0x1df3b9,_0x33e242,_0x2cf850,_0xf89be6)=>{for(var _0x176077=_0xf89be6>0x1?void 0x0:_0xf89be6?Fe(_0x33e242,_0x2cf850):_0x33e242,_0x8399ca=_0x1df3b9['length']-0x1,_0x56ba6f;_0x8399ca>=0x0;_0x8399ca--)(_0x56ba6f=_0x1df3b9[_0x8399ca])&&(_0x176077=_0x56ba6f(_0x176077)||_0x176077);return _0x176077;},A=(_0x3d38e0,_0x11846c)=>(_0xaa142a,_0x394496)=>_0x11846c(_0xaa142a,_0x394496,_0x3d38e0);let m=class extends _0x54703{constructor(_0x3309a3,_0x188fd4){const _0x5bc62b=_0x29b382;super(),this[_0x5bc62b(0xcf)]=_0x3309a3,this[_0x5bc62b(0xec)]=_0x188fd4,this['_mountLiveShare']();}[_0x29b382(0x138)](){const _0x4dfb9c=_0x29b382;this[_0x4dfb9c(0xa9)](this['_uiPartsService']['registerComponent'](_0x5162da[_0x4dfb9c(0xed)],()=>_0x28a5b4(Le,this[_0x4dfb9c(0xcf)])));}};m=He([A(0x0,_0x4473be(_0x567548)),A(0x1,_0x689301)],m);const ye='live-share.config',T={};var Ue=Object[_0x29b382(0x105)],Ve=(_0x18e990,_0x3ec5af,_0xda84cc,_0x35e64e)=>{const _0x2da150=_0x29b382;for(var _0x47c7be=_0x35e64e>0x1?void 0x0:_0x35e64e?Ue(_0x3ec5af,_0xda84cc):_0x3ec5af,_0x5e0618=_0x18e990[_0x2da150(0x140)]-0x1,_0x11f2d4;_0x5e0618>=0x0;_0x5e0618--)(_0x11f2d4=_0x18e990[_0x5e0618])&&(_0x47c7be=_0x11f2d4(_0x47c7be)||_0x47c7be);return _0x47c7be;},je=(_0x20def7,_0x48bd48)=>(_0x5a2439,_0x179e7f)=>_0x48bd48(_0x5a2439,_0x179e7f,_0x20def7);let I=class extends _0x54703{constructor(_0x4cf2cc){const _0x1a3e4c=_0x29b382;super(),this[_0x1a3e4c(0xc5)]=_0x4cf2cc,this[_0x1a3e4c(0xc2)]();}[_0x29b382(0xc2)](){const _0x1088da=_0x29b382;[_0x410861['id'],_0x46540b['id'],_0x173dc8['id']][_0x1088da(0xc8)](_0x6f173a=>{const _0x2f5b0a=_0x1088da;this[_0x2f5b0a(0xa9)](this[_0x2f5b0a(0xc5)][_0x2f5b0a(0x117)](_0x6f173a));});}};I=Ve([je(0x0,_0x4473be(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x5797f2,_0x16506c,_0x46067a)=>_0x16506c in _0x5797f2?Me(_0x5797f2,_0x16506c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46067a}):_0x5797f2[_0x16506c]=_0x46067a,We=(_0x5cef4b,_0x4bba7d,_0x4e6667,_0x2870da)=>{const _0x5153d7=_0x29b382;for(var _0x3fa6ec=_0x2870da>0x1?void 0x0:_0x2870da?ke(_0x4bba7d,_0x4e6667):_0x4bba7d,_0x49f1a2=_0x5cef4b[_0x5153d7(0x140)]-0x1,_0x1953a1;_0x49f1a2>=0x0;_0x49f1a2--)(_0x1953a1=_0x5cef4b[_0x49f1a2])&&(_0x3fa6ec=_0x1953a1(_0x3fa6ec)||_0x3fa6ec);return _0x3fa6ec;},F=(_0xb922c9,_0x300a09)=>(_0x254366,_0xb060b0)=>_0x300a09(_0x254366,_0xb060b0,_0xb922c9),B=(_0x396164,_0x1b0651,_0x56953a)=>Ge(_0x396164,typeof _0x1b0651!='symbol'?_0x1b0651+'':_0x1b0651,_0x56953a);const Ye=_0x29b382(0x106);let b=class extends _0x51513e{constructor(_0x31741f=T,_0x12d955,_0x3724a7){const _0x423e64=_0x29b382;super(),this['_config']=_0x31741f,this[_0x423e64(0xcf)]=_0x12d955,this[_0x423e64(0x145)]=_0x3724a7;const {..._0x1e90a3}=_0x3675e2({},T,this['_config']);this['_configService'][_0x423e64(0xfe)](ye,_0x1e90a3);}[_0x29b382(0xef)](){const _0x20bad6=_0x29b382;_0x563134(this['_injector'],_0x2e4cdf([[L],[S],[I],[m]],this[_0x20bad6(0xd7)][_0x20bad6(0x14d)])),_0x5d1821(this[_0x20bad6(0xcf)],[[I]]);}['onRendered'](){const _0x255054=_0x29b382;_0x5d1821(this[_0x255054(0xcf)],[[m]]);}};B(b,_0x29b382(0x124),_0x146358[_0x29b382(0x11d)]),B(b,'pluginName',Ye),b=We([_0x18815f(_0x43b951),F(0x1,_0x4473be(_0x567548)),F(0x2,_0x28d418)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1954(){const _0x260c7a=['UniverInstanceType','LiveShareController','object','23286100bKufII','IUniverInstanceService','12TyrwfG','UNIVER_SHEET','UniverProLiveShare','@univerjs/core/facade','stopFollowing','FEnum','get','startFollowing','225ZSNgvu','245020BRvwAg','getCurrentUnitOfType','function','_injector','No\x20active\x20workbook\x20found.','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','symbol','stopPresenting','startPresenting','extend','1140318QBdZMW','11TpJwlw','getLiveShareCoordinatorSync','79328YyiAIK','96BGvnlp','LiveShareStatus','482496IoZhOX','defineProperty','_liveShareController','getUnitId','FUniver','2185652KIhJlz','1527OTSANz','UniverCoreFacade'];_0x1954=function(){return _0x260c7a;};return _0x1954();}function _0x1ebe(_0x441587,_0x42f03f){_0x441587=_0x441587-0xff;const _0x19540a=_0x1954();let _0x1ebee0=_0x19540a[_0x441587];return _0x1ebee0;}(function(_0x23d3ea,_0x56f932){const _0x497589=_0x1ebe,_0x53f08b=_0x23d3ea();while(!![]){try{const _0x15666d=parseInt(_0x497589(0x11d))/0x1+-parseInt(_0x497589(0x11a))/0x2+parseInt(_0x497589(0xff))/0x3*(-parseInt(_0x497589(0x106))/0x4)+-parseInt(_0x497589(0x10f))/0x5*(-parseInt(_0x497589(0x11e))/0x6)+-parseInt(_0x497589(0x125))/0x7+parseInt(_0x497589(0x120))/0x8*(-parseInt(_0x497589(0x10e))/0x9)+-parseInt(_0x497589(0x104))/0xa*(-parseInt(_0x497589(0x11b))/0xb);if(_0x15666d===_0x56f932)break;else _0x53f08b['push'](_0x53f08b['shift']());}catch(_0x17cddf){_0x53f08b['push'](_0x53f08b['shift']());}}}(_0x1954,0xc3618),function(_0x50f922,_0x33353e){const _0x5b8464=_0x1ebe;typeof exports==_0x5b8464(0x103)&&typeof module<'u'?_0x33353e(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5b8464(0x111)&&define['amd']?define(['@univerjs-pro/live-share','@univerjs/core',_0x5b8464(0x109)],_0x33353e):(_0x50f922=typeof globalThis<'u'?globalThis:_0x50f922||self,_0x33353e(_0x50f922[_0x5b8464(0x108)],_0x50f922['UniverCore'],_0x50f922[_0x5b8464(0x100)]));}(this,function(_0x2bc2cb,_0x13cc92,_0x4d2baf){'use strict';const _0x15df72=_0x1ebe;var _0x332ad3=Object[_0x15df72(0x121)],_0x24300c=(_0x2c7ea6,_0x3488e1,_0x416507)=>_0x3488e1 in _0x2c7ea6?_0x332ad3(_0x2c7ea6,_0x3488e1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x416507}):_0x2c7ea6[_0x3488e1]=_0x416507,_0x5ee615=(_0x1f96af,_0x46026f,_0x3ff172)=>_0x24300c(_0x1f96af,typeof _0x46026f!=_0x15df72(0x116)?_0x46026f+'':_0x46026f,_0x3ff172);class _0x5695c1 extends _0x4d2baf[_0x15df72(0x124)]{constructor(){const _0x30a4f8=_0x15df72;super(...arguments),_0x5ee615(this,_0x30a4f8(0x122));}['_initialize'](_0x468ba4){const _0x2c60be=_0x15df72;this[_0x2c60be(0x122)]=_0x468ba4[_0x2c60be(0x10c)](_0x2bc2cb[_0x2c60be(0x102)]);}['getLiveShareStatus'](){const _0x4abc77=_0x15df72;var _0x3c1e20;const _0x18bfc8=this[_0x4abc77(0x112)]['get'](_0x13cc92['IUniverInstanceService'])[_0x4abc77(0x110)](_0x13cc92['UniverInstanceType'][_0x4abc77(0x107)]);if(!_0x18bfc8)throw new Error(_0x4abc77(0x113));const _0x57eb35=_0x18bfc8[_0x4abc77(0x123)](),_0x2b8507=this[_0x4abc77(0x122)]['getLiveShareCoordinatorSync'](_0x57eb35);return(_0x3c1e20=_0x2b8507==null?void 0x0:_0x2b8507['getStatus']())!=null?_0x3c1e20:_0x2bc2cb[_0x4abc77(0x11f)][_0x4abc77(0x114)];}[_0x15df72(0x10d)](){const _0x1bb03b=_0x15df72,_0x51f1c5=this[_0x1bb03b(0x112)][_0x1bb03b(0x10c)](_0x13cc92[_0x1bb03b(0x105)])[_0x1bb03b(0x110)](_0x13cc92[_0x1bb03b(0x101)][_0x1bb03b(0x107)]);if(!_0x51f1c5)throw new Error(_0x1bb03b(0x113));const _0x489be2=_0x51f1c5['getUnitId'](),_0x17b114=this[_0x1bb03b(0x122)]['getLiveShareCoordinatorSync'](_0x489be2);if(!_0x17b114)throw new Error(_0x1bb03b(0x115));_0x17b114[_0x1bb03b(0x10d)]();}[_0x15df72(0x10a)](){const _0x27ce00=_0x15df72,_0x58a2d3=this['_injector'][_0x27ce00(0x10c)](_0x13cc92[_0x27ce00(0x105)])[_0x27ce00(0x110)](_0x13cc92[_0x27ce00(0x101)][_0x27ce00(0x107)]);if(!_0x58a2d3)throw new Error(_0x27ce00(0x113));const _0x2b4409=_0x58a2d3[_0x27ce00(0x123)](),_0x36ea43=this[_0x27ce00(0x122)]['getLiveShareCoordinatorSync'](_0x2b4409);if(!_0x36ea43)throw new Error(_0x27ce00(0x115));_0x36ea43[_0x27ce00(0x10a)]();}[_0x15df72(0x118)](){const _0xe3e83b=_0x15df72,_0x598d06=this[_0xe3e83b(0x112)][_0xe3e83b(0x10c)](_0x13cc92[_0xe3e83b(0x105)])[_0xe3e83b(0x110)](_0x13cc92[_0xe3e83b(0x101)][_0xe3e83b(0x107)]);if(!_0x598d06)throw new Error(_0xe3e83b(0x113));const _0xd63754=_0x598d06[_0xe3e83b(0x123)](),_0x4eb096=this[_0xe3e83b(0x122)]['getLiveShareCoordinatorSync'](_0xd63754);if(!_0x4eb096)throw new Error(_0xe3e83b(0x115));_0x4eb096['tryStartPresenting']();}[_0x15df72(0x117)](){const _0x5965ee=_0x15df72,_0x5bd65b=this[_0x5965ee(0x112)]['get'](_0x13cc92[_0x5965ee(0x105)])['getCurrentUnitOfType'](_0x13cc92['UniverInstanceType'][_0x5965ee(0x107)]);if(!_0x5bd65b)throw new Error(_0x5965ee(0x113));const _0x2f8430=_0x5bd65b[_0x5965ee(0x123)](),_0x199089=this['_liveShareController'][_0x5965ee(0x11c)](_0x2f8430);if(!_0x199089)throw new Error(_0x5965ee(0x115));_0x199089[_0x5965ee(0x117)]();}}_0x4d2baf[_0x15df72(0x124)][_0x15df72(0x119)](_0x5695c1);class _0x3376b7 extends _0x4d2baf['FEnum']{get['LiveShareStatusEnum'](){const _0x223016=_0x15df72;return _0x2bc2cb[_0x223016(0x11f)];}}_0x4d2baf[_0x15df72(0x10b)][_0x15df72(0x119)](_0x3376b7);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4046(){const _0x4ae159=['executeCommand','@univerjs/design','_entities','IConfigService','18blkFBV','Dropdown','merge','_status$','toDisposable','7PsLJch','_mountLiveShare','Injector','init','_unitID','requireSession','UNIVER_UNKNOWN','evenodd','complete','Subject','none','_univerInstanceService','map','UniverProCollaboration','@univerjs/core','_presenter','_stopFollowing','useState','div','registerSharedOperation','CollaborationSessionService','tag','IUniverInstanceService','5890072jlZfKl','get','_startFollowing','_sharedOperations','dispose','path','current','LIVESHARE_NEW_HOST','add','LiveShareIcon','startFollowing','svg','string','following','16008UBmyyH','subscribe','BuiltInUIPart','@univerjs/ui','Plugin','toStringTag','defineProperty','next','stringify','data','You\x27re\x20presenting\x20the\x20document','LiveShare','getMemberID','_config','Stop\x20following','xlink:href','_startLiveShareCoordinator','SetZoomRatioOperation','FOLLOWING','You\x27re\x20following\x20the\x20presenter','_stopPresenting','rxjs/operators','getValue','@univerjs/sheets','HEADER_MENU','1295wtCgcx','Module','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','createElement','UniverSheets','operations','_status','581322ooupWK','BehaviorSubject','function','registerComponent','presenter','set','UniverInstanceType','_fetchOperations','30rlHLDm','jsxs','SessionStatus','SetWorksheetActiveOperation','defIds','mutations','Start\x20following','getCurrentTypeOfUnit$','parseProtocolChangeset','IDLE','_handleNewChangeSets','mask','ONLINE','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','NOT_FOLLOWING','fill','getInitialStates','forEach','@univerjs/sheets-ui','unitId','asObservable','onCommandExecuted','_configService','reverse','IUIPartsService','univerjs-icon\x20univerjs-icon-','getLiveShareCoordinator','then','getTypeOfUnitDisposed$','touchDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','jsx','UniverSheetsUi','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','entries','NEW_CHANGESETS','ICommandService','throttleTime','exports','dispose$','random','univer-mb-3\x20univer-w-full\x20univer-text-sm','Fragment','_handleNewHost','Disposable','493264XQMyBA','getUnitId','http://www.w3.org/2000/svg','default','assign','_injector','_startPresenting','InsertSheetMutation','currentColor','UniverProCollaborationClient','UniverDesign','send','delete','Start','registerDependencies','end','use','SetScrollOperation','presenting','attrs','react/jsx-runtime','DependentOn','_commandService','You\x27re\x20not\x20following\x20the\x20presenter','event$','getTypeOfUnitAdded$','idle','unsubscribe','length','stopPresenting','params','_reporters','replace','LiveShareCoordinator','registerInitialStateReporter','onStarting','react','getStatus','has','10399741hrcxBd','useRef','_liveShareService','_collabSession','memberID','onRendered','not-following','children','UNIVER_SHEET','toString','OPERATION','sessionStatus$','takeUntil','useObservable','getOwnPropertyDescriptor','univer-size-4','trim','5151780zcZXsf','url(#$1','clsx','live-share.config','useEffect','LIVESHARE_REQUEST_HOST','DesktopLiveShareController','stopFollowing','Button','LIVESHARE_TERMINATE','includes','_commandDisposable','Inject','1em','React','button','6898zqWMRP','offline','_collabSessionService','LiveShareController','@univerjs-pro/collaboration-client','idSuffix','symbol','UniverLiveSharePlugin','PRESENTING','_uiPartsService','override','displayName','Present\x20this\x20document','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20presenting','_init','connectInjector','rxjs','_handleOffline','CollaborationEvent','shouldShareOperation','_handleOperation','amd','colorChannel1','LIVESHARE_OPERATION','parse','substring','forwardRef','type','pipe','live-share-icon','UniverCore','CommandType','OFFLINE','defs','_handleOnline','disposeWithMe'];_0x4046=function(){return _0x4ae159;};return _0x4046();}function _0xaf4b(_0x3a655c,_0x396046){_0x3a655c=_0x3a655c-0x92;const _0x4046bb=_0x4046();let _0xaf4b09=_0x4046bb[_0x3a655c];return _0xaf4b09;}(function(_0x57d1de,_0x1b3437){const _0x54761c=_0xaf4b,_0x1b6f0b=_0x57d1de();while(!![]){try{const _0x2c2a7b=-parseInt(_0x54761c(0x10e))/0x1+-parseInt(_0x54761c(0x9b))/0x2*(-parseInt(_0x54761c(0xc4))/0x3)+parseInt(_0x54761c(0x143))/0x4+-parseInt(_0x54761c(0x107))/0x5*(parseInt(_0x54761c(0xee))/0x6)+parseInt(_0x54761c(0xc9))/0x7*(-parseInt(_0x54761c(0xe0))/0x8)+-parseInt(_0x54761c(0x17b))/0x9+-parseInt(_0x54761c(0x116))/0xa*(-parseInt(_0x54761c(0x16a))/0xb);if(_0x2c2a7b===_0x1b3437)break;else _0x1b6f0b['push'](_0x1b6f0b['shift']());}catch(_0x478def){_0x1b6f0b['push'](_0x1b6f0b['shift']());}}}(_0x4046,0x617ba),function(_0x110550,_0x355d13){const _0x15f20f=_0xaf4b;typeof exports=='object'&&typeof module<'u'?_0x355d13(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x15f20f(0x110)&&define[_0x15f20f(0xb1)]?define([_0x15f20f(0x13c),_0x15f20f(0xd7),_0x15f20f(0xf1),_0x15f20f(0x157),_0x15f20f(0xc1),_0x15f20f(0x167),'@univerjs-pro/collaboration',_0x15f20f(0x9f),_0x15f20f(0x105),_0x15f20f(0xac),_0x15f20f(0x103),_0x15f20f(0x128)],_0x355d13):(_0x110550=typeof globalThis<'u'?globalThis:_0x110550||self,_0x355d13(_0x110550['UniverProLiveShare']={},_0x110550[_0x15f20f(0xba)],_0x110550['UniverUi'],_0x110550[_0x15f20f(0x99)],_0x110550[_0x15f20f(0x14d)],_0x110550[_0x15f20f(0x99)],_0x110550[_0x15f20f(0xd6)],_0x110550[_0x15f20f(0x14c)],_0x110550[_0x15f20f(0x10b)],_0x110550[_0x15f20f(0xac)],_0x110550[_0x15f20f(0xac)]['operators'],_0x110550[_0x15f20f(0x136)]));}(this,function(_0x1aec62,_0x24482f,_0x3950cd,_0x5e2915,_0x219eb5,_0x353b41,_0x15647b,_0x48be26,_0x1dbb33,_0x28678f,_0x48039d,_0x399ddd){'use strict';const _0x564d5=_0xaf4b;var _0x2fc289=Object[_0x564d5(0xf4)],_0x3e7cf0=(_0x3bfeae,_0x3f8457,_0x2976fd)=>_0x3f8457 in _0x3bfeae?_0x2fc289(_0x3bfeae,_0x3f8457,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2976fd}):_0x3bfeae[_0x3f8457]=_0x2976fd,_0xbc5222=(_0x2bb89e,_0x5fa250,_0x3becbb)=>_0x3e7cf0(_0x2bb89e,typeof _0x5fa250!='symbol'?_0x5fa250+'':_0x5fa250,_0x3becbb);function _0xbe1459({ref:_0x379ed8,..._0x452669}){const _0x126b84=_0x564d5,{icon:_0x4a85ce,id:_0x1f3f3b,className:_0x40474f,extend:_0x343117,..._0x6cc2ff}=_0x452669,_0x2a85a3=(_0x126b84(0x12f)+_0x1f3f3b+'\x20'+(_0x40474f||''))[_0x126b84(0x17a)](),_0x5487f5=_0x353b41[_0x126b84(0x16b)]('_'+_0x38487e());return _0x1c9151(_0x4a85ce,''+_0x1f3f3b,{'defIds':_0x4a85ce[_0x126b84(0x11a)],'idSuffix':_0x5487f5[_0x126b84(0xe6)]},{'ref':_0x379ed8,'className':_0x2a85a3,..._0x6cc2ff},_0x343117);}function _0x1c9151(_0x50ef4f,_0x30c18f,_0x5a40f4,_0x51449e,_0xc97881){const _0xe2a692=_0x564d5;return _0x353b41[_0xe2a692(0x10a)](_0x50ef4f[_0xe2a692(0xde)],{'key':_0x30c18f,..._0x371ea4(_0x50ef4f,_0x5a40f4,_0xc97881),..._0x51449e},(_0x1ddcbc(_0x50ef4f,_0x5a40f4)[_0xe2a692(0x171)]||[])[_0xe2a692(0xd5)]((_0x2632b6,_0x528a42)=>_0x1c9151(_0x2632b6,_0x30c18f+'-'+_0x50ef4f['tag']+'-'+_0x528a42,_0x5a40f4,void 0x0,_0xc97881)));}function _0x371ea4(_0x11166c,_0x5a5c37,_0x384993){const _0xa6b715=_0x564d5,_0x2c7d47={..._0x11166c[_0xa6b715(0x156)]};_0x384993!=null&&_0x384993[_0xa6b715(0xb2)]&&_0x2c7d47['fill']==='colorChannel1'&&(_0x2c7d47[_0xa6b715(0x125)]=_0x384993[_0xa6b715(0xb2)]),_0x11166c['tag']===_0xa6b715(0x121)&&_0x2c7d47['id']&&(_0x2c7d47['id']=_0x2c7d47['id']+_0x5a5c37[_0xa6b715(0xa0)]),Object['entries'](_0x2c7d47)[_0xa6b715(0x127)](([_0x35ef24,_0x302d08])=>{const _0x2697f1=_0xa6b715;_0x35ef24===_0x2697f1(0x121)&&typeof _0x302d08==_0x2697f1(0xec)&&(_0x2c7d47[_0x35ef24]=_0x302d08[_0x2697f1(0x163)](/url\(#(.*)\)/,'url(#$1'+_0x5a5c37['idSuffix']+')'));});const {defIds:_0x3ec5cb}=_0x5a5c37;return!_0x3ec5cb||_0x3ec5cb[_0xa6b715(0x15f)]===0x0||(_0x11166c['tag']===_0xa6b715(0x153)&&_0x2c7d47[_0xa6b715(0xfd)]&&(_0x2c7d47[_0xa6b715(0xfd)]=_0x2c7d47['xlink:href']+_0x5a5c37[_0xa6b715(0xa0)]),Object[_0xa6b715(0x138)](_0x2c7d47)[_0xa6b715(0x127)](([_0x265770,_0x5067b8])=>{const _0x34dee2=_0xa6b715;typeof _0x5067b8==_0x34dee2(0xec)&&(_0x2c7d47[_0x265770]=_0x5067b8[_0x34dee2(0x163)](/url\(#(.*)\)/,_0x34dee2(0x17c)+_0x5a5c37[_0x34dee2(0xa0)]+')'));})),_0x2c7d47;}function _0x1ddcbc(_0x20e761,_0x3ba9f0){const _0x4d951d=_0x564d5;var _0x4afac3;const {defIds:_0x564195}=_0x3ba9f0;return!_0x564195||_0x564195[_0x4d951d(0x15f)]===0x0?_0x20e761:_0x20e761['tag']===_0x4d951d(0xbd)&&((_0x4afac3=_0x20e761['children'])!=null&&_0x4afac3[_0x4d951d(0x15f)])?{..._0x20e761,'children':_0x20e761['children'][_0x4d951d(0xd5)](_0x20bae9=>typeof _0x20bae9[_0x4d951d(0x156)]['id']==_0x4d951d(0xec)&&_0x564195&&_0x564195[_0x4d951d(0x95)](_0x20bae9['attrs']['id'])?{..._0x20bae9,'attrs':{..._0x20bae9['attrs'],'id':_0x20bae9[_0x4d951d(0x156)]['id']+_0x3ba9f0[_0x4d951d(0xa0)]}}:_0x20bae9)}:_0x20e761;}function _0x38487e(){const _0x7c73ff=_0x564d5;return Math[_0x7c73ff(0x13e)]()[_0x7c73ff(0x173)](0x24)[_0x7c73ff(0xb5)](0x2,0x8);}_0xbe1459[_0x564d5(0xa6)]='UniverIcon';const _0x4f9321={'tag':_0x564d5(0xeb),'attrs':{'xmlns':_0x564d5(0x145),'fill':_0x564d5(0xd3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x564d5(0x98)},'children':[{'tag':_0x564d5(0xe5),'attrs':{'fill':_0x564d5(0x14b),'d':_0x564d5(0x137)}},{'tag':_0x564d5(0xe5),'attrs':{'fill':'currentColor','d':_0x564d5(0x109),'fillRule':'evenodd','clipRule':_0x564d5(0xd0)}}]},_0x19f9d4=_0x353b41[_0x564d5(0xb6)](function(_0x1c3842,_0x3b0ff5){const _0x33165c=_0x564d5;return _0x353b41[_0x33165c(0x10a)](_0xbe1459,Object[_0x33165c(0x147)]({},_0x1c3842,{'id':_0x33165c(0xb9),'ref':_0x3b0ff5,'icon':_0x4f9321}));});_0x19f9d4[_0x564d5(0xa6)]=_0x564d5(0xe9);class _0x3420d5 extends _0x24482f[_0x564d5(0x142)]{constructor(){const _0x10becd=_0x564d5;super(...arguments),_0xbc5222(this,_0x10becd(0xe3),new Set()),_0xbc5222(this,_0x10becd(0x162),new Set());}[_0x564d5(0xdc)](_0x3364cb){const _0x1e8f18=_0x564d5;return this[_0x1e8f18(0xe3)][_0x1e8f18(0xe8)](_0x3364cb),_0x24482f[_0x1e8f18(0xc8)](()=>this[_0x1e8f18(0xe3)]['delete'](_0x3364cb));}[_0x564d5(0x165)](_0xf871d5){const _0x28a886=_0x564d5;return this['_reporters'][_0x28a886(0xe8)](_0xf871d5),_0x24482f[_0x28a886(0xc8)](()=>this['_reporters'][_0x28a886(0x14f)](_0xf871d5));}[_0x564d5(0xaf)](_0x547716){const _0x396aad=_0x564d5;return this[_0x396aad(0xe3)][_0x396aad(0x169)](_0x547716);}[_0x564d5(0x126)](_0x42a3b2){const _0x17361b=_0x564d5;return Array['from'](this[_0x17361b(0x162)])['map'](_0x255d65=>_0x255d65(_0x42a3b2));}}var _0x1569e4=Object['getOwnPropertyDescriptor'],_0x534561=(_0x3129b7,_0x175ace,_0x568cf8,_0x5c8b53)=>{const _0x477caa=_0x564d5;for(var _0x341c62=_0x5c8b53>0x1?void 0x0:_0x5c8b53?_0x1569e4(_0x175ace,_0x568cf8):_0x175ace,_0x5c2a19=_0x3129b7[_0x477caa(0x15f)]-0x1,_0x12201b;_0x5c2a19>=0x0;_0x5c2a19--)(_0x12201b=_0x3129b7[_0x5c2a19])&&(_0x341c62=_0x12201b(_0x341c62)||_0x341c62);return _0x341c62;},_0x358615=(_0x178341,_0xccfbc1)=>(_0x28fd6,_0x3177b2)=>_0xccfbc1(_0x28fd6,_0x3177b2,_0x178341);_0x1aec62[_0x564d5(0x9e)]=class extends _0x24482f['RxDisposable']{constructor(_0x247e0d,_0x4996fc,_0x20bf1d){const _0x2a916d=_0x564d5;super(),_0xbc5222(this,_0x2a916d(0xc2),new Map()),(this[_0x2a916d(0xd4)]=_0x247e0d,this[_0x2a916d(0x148)]=_0x4996fc,this[_0x2a916d(0x9d)]=_0x20bf1d,this[_0x2a916d(0xaa)]());}async[_0x564d5(0x130)](_0x1a5b1a){const _0x4b0d4d=_0x564d5;return this[_0x4b0d4d(0xc2)][_0x4b0d4d(0x169)](_0x1a5b1a)||await this['_startLiveShareCoordinator'](_0x1a5b1a),this[_0x4b0d4d(0xc2)][_0x4b0d4d(0xe1)](_0x1a5b1a);}['getLiveShareCoordinatorSync'](_0x13400c){const _0x27e7a5=_0x564d5;var _0x1d7a98;return(_0x1d7a98=this[_0x27e7a5(0xc2)]['get'](_0x13400c))!=null?_0x1d7a98:null;}[_0x564d5(0xaa)](){const _0x13c493=_0x564d5;this[_0x13c493(0xd4)][_0x13c493(0x15c)](_0x24482f[_0x13c493(0x114)][_0x13c493(0x172)])['pipe'](_0x48039d[_0x13c493(0x176)](this[_0x13c493(0x13d)]))['subscribe'](async _0x4f0300=>{const _0x796aed=_0x13c493,_0x899253=_0x4f0300[_0x796aed(0x144)]();this[_0x796aed(0xc2)]['has'](_0x899253)||this['_startLiveShareCoordinator'](_0x899253);}),this[_0x13c493(0xd4)][_0x13c493(0x132)](_0x24482f['UniverInstanceType'][_0x13c493(0x172)])[_0x13c493(0xb8)](_0x48039d[_0x13c493(0x176)](this['dispose$']))[_0x13c493(0xef)](_0x2b9446=>{const _0x483ff7=_0x13c493,_0x175174=_0x2b9446[_0x483ff7(0x144)](),_0x4cacc7=this[_0x483ff7(0xc2)][_0x483ff7(0xe1)](_0x175174);_0x4cacc7==null||_0x4cacc7[_0x483ff7(0xe4)]();});}async[_0x564d5(0xfe)](_0x17b1f0){const _0x62f9c1=_0x564d5,_0x5b3d48=await this[_0x62f9c1(0x9d)][_0x62f9c1(0xce)](_0x17b1f0),_0x16f3ea=this[_0x62f9c1(0x148)]['createInstance'](_0x1aec62['LiveShareCoordinator'],_0x17b1f0,_0x5b3d48);return _0x16f3ea[_0x62f9c1(0xcc)](),this[_0x62f9c1(0xc2)][_0x62f9c1(0x113)](_0x17b1f0,_0x16f3ea),_0x16f3ea;}},_0x1aec62[_0x564d5(0x9e)]=_0x534561([_0x358615(0x0,_0x24482f[_0x564d5(0xdf)]),_0x358615(0x1,_0x24482f['Inject'](_0x24482f['Injector'])),_0x358615(0x2,_0x24482f['Inject'](_0x48be26[_0x564d5(0xdd)]))],_0x1aec62[_0x564d5(0x9e)]);var _0x49eaf9=(_0x44dc6b=>(_0x44dc6b[_0x564d5(0xbc)]=_0x564d5(0x9c),_0x44dc6b[_0x564d5(0x11f)]=_0x564d5(0x15d),_0x44dc6b[_0x564d5(0x100)]=_0x564d5(0xed),_0x44dc6b[_0x564d5(0x124)]=_0x564d5(0x170),_0x44dc6b[_0x564d5(0xa3)]=_0x564d5(0x155),_0x44dc6b))(_0x49eaf9||{});const _0x1bccf2='SAME_OPERATION_SHARE_INTERVAL',_0x296c6a=0xc8;_0x1aec62[_0x564d5(0x164)]=class extends _0x24482f['RxDisposable']{constructor(_0x46b11e,_0x257b91,_0x29f4d3,_0x54c8d3,_0x227f13){const _0x5b9712=_0x564d5;super(),_0xbc5222(this,'_status$',new _0x28678f[(_0x5b9712(0x10f))]('idle')),_0xbc5222(this,'status$',this[_0x5b9712(0xc7)][_0x5b9712(0x12a)]()),_0xbc5222(this,_0x5b9712(0xaa),!0x1),_0xbc5222(this,_0x5b9712(0x96),null),_0xbc5222(this,_0x5b9712(0xd8),null),(this['_unitID']=_0x46b11e,this[_0x5b9712(0x16d)]=_0x257b91,this[_0x5b9712(0x12c)]=_0x29f4d3,this['_liveShareService']=_0x54c8d3,this[_0x5b9712(0x159)]=_0x227f13);}get[_0x564d5(0x10d)](){const _0x145ad7=_0x564d5;return this[_0x145ad7(0xc7)][_0x145ad7(0x104)]();}[_0x564d5(0xe4)](){const _0xf46d5e=_0x564d5;var _0x5a53e1;(_0x5a53e1=this[_0xf46d5e(0x96)])==null||_0x5a53e1['dispose'](),this[_0xf46d5e(0xc7)]['next'](_0xf46d5e(0x15d)),this[_0xf46d5e(0xc7)][_0xf46d5e(0xd1)]();}[_0x564d5(0x168)](){return this['_status'];}[_0x564d5(0xcc)](){const _0x2a191a=_0x564d5;this[_0x2a191a(0xaa)]||(this['_init']=!0x0,this['_collabSession'][_0x2a191a(0x175)][_0x2a191a(0xb8)](_0x48039d[_0x2a191a(0x176)](this[_0x2a191a(0x13d)]))[_0x2a191a(0xef)](_0x590cd5=>{const _0x13a388=_0x2a191a;switch(_0x590cd5){case _0x48be26[_0x13a388(0x118)][_0x13a388(0xbc)]:this[_0x13a388(0xad)]();break;case _0x48be26[_0x13a388(0x118)][_0x13a388(0x122)]:this[_0x13a388(0xbe)]();break;}}),this[_0x2a191a(0x16d)][_0x2a191a(0x15b)][_0x2a191a(0xb8)](_0x48039d[_0x2a191a(0x176)](this['dispose$']))[_0x2a191a(0xef)](_0x2392e9=>{const _0x58932f=_0x2a191a,{eventID:_0x412ad5}=_0x2392e9;switch(_0x412ad5){case _0x15647b[_0x58932f(0xae)][_0x58932f(0xe7)]:this[_0x58932f(0x141)](_0x2392e9);break;case _0x15647b[_0x58932f(0xae)][_0x58932f(0xb3)]:this[_0x58932f(0xb0)](_0x2392e9);break;case _0x15647b[_0x58932f(0xae)][_0x58932f(0x94)]:this['_handleTerminate']();break;case _0x15647b[_0x58932f(0xae)][_0x58932f(0x139)]:this[_0x58932f(0x120)](_0x2392e9);break;}}));}['tryStartPresenting'](){const _0x1d3b29=_0x564d5;this[_0x1d3b29(0x16d)][_0x1d3b29(0x14e)]({'eventID':_0x15647b[_0x1d3b29(0xae)][_0x1d3b29(0x180)],'data':{'unitID':this[_0x1d3b29(0xcd)],'userID':this[_0x1d3b29(0x16d)][_0x1d3b29(0xfa)]()}},this[_0x1d3b29(0xcd)]);}['stopPresenting'](){const _0x528d79=_0x564d5;this[_0x528d79(0x10d)]===_0x528d79(0x155)&&(this[_0x528d79(0xc7)]['next']('idle'),this[_0x528d79(0x16d)][_0x528d79(0x14e)]({'eventID':_0x15647b['CollaborationEvent'][_0x528d79(0x94)],'data':{'unitID':this[_0x528d79(0xcd)]}},this[_0x528d79(0xcd)]));}['startFollowing'](){const _0x542662=_0x564d5;this['_status']===_0x542662(0x170)&&(this[_0x542662(0xc7)][_0x542662(0xf5)](_0x542662(0xed)),this[_0x542662(0xe2)]());}[_0x564d5(0x92)](){const _0x409b7d=_0x564d5;this[_0x409b7d(0x10d)]===_0x409b7d(0xed)&&this[_0x409b7d(0xd9)]();}[_0x564d5(0x141)](_0x3e618b){const _0x86c7a8=_0x564d5,{presenter:_0x9457bd}=_0x3e618b[_0x86c7a8(0xf7)],_0x3fccbf=this['_collabSession'][_0x86c7a8(0xfa)]();this[_0x86c7a8(0xd8)]=_0x9457bd,_0x9457bd===_0x3fccbf?(this[_0x86c7a8(0xd9)](),this[_0x86c7a8(0x149)]()):this[_0x86c7a8(0x10d)]!==_0x86c7a8(0x170)&&(this[_0x86c7a8(0x102)](),this[_0x86c7a8(0xe2)]());}[_0x564d5(0x115)](){const _0x2f7023=_0x564d5,_0x3c208a={'eventID':_0x15647b[_0x2f7023(0xae)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2f7023(0x16d)][_0x2f7023(0x14e)](_0x3c208a,this[_0x2f7023(0xcd)]);}['_handleTerminate'](){const _0x393ea8=_0x564d5;this['_presenter']=null,this[_0x393ea8(0x10d)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x45eefa){const _0x53c116=_0x564d5;if(this[_0x53c116(0x10d)]===_0x53c116(0xed)&&this[_0x53c116(0xd8)]===_0x45eefa[_0x53c116(0xf7)][_0x53c116(0x16e)]){const _0x38dc41=_0x15647b[_0x53c116(0x11e)](_0x45eefa['data'])[_0x53c116(0x11b)][_0x53c116(0x12d)]()['find'](_0x2e0417=>_0x2e0417['id']===_0x1dbb33[_0x53c116(0x14a)]['id']);if(_0x38dc41){const _0x3f5d0a=_0x38dc41[_0x53c116(0x161)][_0x53c116(0x129)],_0xe7eacf=_0x38dc41[_0x53c116(0x161)]['sheet']['id'];setTimeout(()=>{const _0x491c9e=_0x53c116;this[_0x491c9e(0x159)][_0x491c9e(0xc0)](_0x1dbb33[_0x491c9e(0x119)]['id'],{'unitId':_0x3f5d0a,'subUnitId':_0xe7eacf},{'fromCollab':!0x0});});}}}[_0x564d5(0x149)](){const _0x4949a1=_0x564d5;this['_status$'][_0x4949a1(0xf5)](_0x4949a1(0x155));const _0x430a97=new Map(),_0x4ddce2=this[_0x4949a1(0x96)]=new _0x24482f['DisposableCollection']();_0x4ddce2[_0x4949a1(0xe8)](_0x24482f[_0x4949a1(0xc8)](()=>{const _0x51cd76=_0x4949a1;_0x430a97[_0x51cd76(0x127)](_0x5d380a=>_0x5d380a['complete']()),_0x430a97['clear']();})),_0x4ddce2[_0x4949a1(0xe8)](this[_0x4949a1(0x159)][_0x4949a1(0x12b)](_0x4fba60=>{const _0x5556d0=_0x4949a1;var _0x314eb9;if(_0x4fba60[_0x5556d0(0xb7)]!==_0x24482f[_0x5556d0(0xbb)][_0x5556d0(0x174)]||!this[_0x5556d0(0x16c)]['shouldShareOperation'](_0x4fba60['id']))return;const {id:_0x14414a}=_0x4fba60;let _0x1b2ea4;_0x430a97[_0x5556d0(0x169)](_0x14414a)?_0x1b2ea4=_0x430a97[_0x5556d0(0xe1)](_0x14414a):(_0x1b2ea4=new _0x28678f[(_0x5556d0(0xd2))](),_0x430a97['set'](_0x14414a,_0x1b2ea4),_0x1b2ea4[_0x5556d0(0xb8)](_0x48039d[_0x5556d0(0x13b)]((_0x314eb9=this['_configService']['getConfig'](_0x1bccf2))!=null?_0x314eb9:_0x296c6a,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5556d0(0xef)](_0x33a654=>{const _0x57bc6b=_0x5556d0;this['_collabSession'][_0x57bc6b(0x14e)]({'eventID':_0x15647b['CollaborationEvent'][_0x57bc6b(0xb3)],'data':{'unitID':this['_unitID'],'operations':{[_0x33a654['id']]:{'id':_0x33a654['id'],'params':JSON[_0x57bc6b(0xf6)](_0x33a654['params'])}}}},this[_0x57bc6b(0xcd)]);})),_0x1b2ea4[_0x5556d0(0xf5)](_0x4fba60);})),this[_0x4949a1(0x16c)][_0x4949a1(0x126)](this[_0x4949a1(0xcd)])[_0x4949a1(0x127)](_0x475b1a=>this[_0x4949a1(0x16d)][_0x4949a1(0x14e)]({'eventID':_0x15647b[_0x4949a1(0xae)][_0x4949a1(0xb3)],'data':{'unitID':this['_unitID'],'operations':{[_0x475b1a['id']]:{'id':_0x475b1a['id'],'params':JSON[_0x4949a1(0xf6)](_0x475b1a[_0x4949a1(0x161)])}}}},this[_0x4949a1(0xcd)]));}[_0x564d5(0x102)](){const _0x4868bb=_0x564d5;var _0x42ad3f;this[_0x4868bb(0xc7)][_0x4868bb(0xf5)](_0x4868bb(0x15d)),(_0x42ad3f=this[_0x4868bb(0x96)])==null||_0x42ad3f[_0x4868bb(0xe4)](),this[_0x4868bb(0x96)]=null;}['_startFollowing'](){const _0x11d1f5=_0x564d5;var _0x20a0a3;(_0x20a0a3=this[_0x11d1f5(0x96)])==null||_0x20a0a3[_0x11d1f5(0xe4)](),this['_status$'][_0x11d1f5(0xf5)](_0x11d1f5(0xed));}['_beIdle'](){const _0x4d13b8=_0x564d5;var _0x2d51b2;this[_0x4d13b8(0xc7)][_0x4d13b8(0xf5)](_0x4d13b8(0x15d)),(_0x2d51b2=this[_0x4d13b8(0x96)])==null||_0x2d51b2[_0x4d13b8(0xe4)](),this['_commandDisposable']=null;}[_0x564d5(0xd9)](){const _0x124b96=_0x564d5;var _0x46f73c;this[_0x124b96(0xc7)][_0x124b96(0xf5)](_0x124b96(0x170)),(_0x46f73c=this[_0x124b96(0x96)])==null||_0x46f73c[_0x124b96(0xe4)]();}['_handleOperation'](_0x44bb23){const _0xd29895=_0x564d5;if([_0xd29895(0x155),_0xd29895(0x170),_0xd29895(0x9c)][_0xd29895(0x95)](this[_0xd29895(0x10d)])||!_0x44bb23[_0xd29895(0xf7)]['presenter']||_0x44bb23['data'][_0xd29895(0x112)]===this[_0xd29895(0x16d)][_0xd29895(0xfa)]())return;this['_status']==='idle'&&this[_0xd29895(0xe2)]();const _0x139b1e=_0x44bb23['data'][_0xd29895(0x10c)];Object['values'](_0x139b1e)[_0xd29895(0x127)](_0x3731f7=>{const _0x1cc032=_0xd29895;this[_0x1cc032(0x159)][_0x1cc032(0xc0)](_0x3731f7['id'],_0x3731f7[_0x1cc032(0x161)]?JSON[_0x1cc032(0xb4)](_0x3731f7[_0x1cc032(0x161)]):null,{'fromCollab':!0x0});});}[_0x564d5(0xad)](){const _0x16e7a3=_0x564d5;var _0x38b276;this[_0x16e7a3(0xc7)]['next']('offline'),(_0x38b276=this[_0x16e7a3(0x96)])==null||_0x38b276['dispose']();}[_0x564d5(0xbe)](){const _0x20b29e=_0x564d5;this[_0x20b29e(0xc7)][_0x20b29e(0xf5)](_0x20b29e(0x15d)),this[_0x20b29e(0x115)]();}},_0x1aec62[_0x564d5(0x164)]=_0x534561([_0x358615(0x2,_0x24482f[_0x564d5(0xc3)]),_0x358615(0x3,_0x24482f['Inject'](_0x3420d5)),_0x358615(0x4,_0x24482f[_0x564d5(0x13a)])],_0x1aec62[_0x564d5(0x164)]);function _0x2456be(){const _0xed0743=_0x564d5,_0x2a7e2b=_0x3950cd['useDependency'](_0x1aec62[_0xed0743(0x9e)]),_0x1c2101=_0x3950cd['useDependency'](_0x24482f['IUniverInstanceService']),_0x418f0a=_0x3950cd[_0xed0743(0x177)](()=>_0x1c2101[_0xed0743(0x11d)](_0x24482f['UniverInstanceType'][_0xed0743(0x172)]),void 0x0,!0x1,[]),[_0x139ecf,_0xe18b40]=_0x353b41[_0xed0743(0xda)](null),[_0x226269,_0x4b580f]=_0x353b41[_0xed0743(0xda)](_0x49eaf9[_0xed0743(0x11f)]),_0x217470=_0x353b41['useRef'](null);return _0x353b41[_0xed0743(0x17f)](()=>(_0x418f0a&&_0x2a7e2b['getLiveShareCoordinator'](_0x418f0a[_0xed0743(0x144)]())[_0xed0743(0x131)](_0x4d0fc1=>{const _0x16789c=_0xed0743;_0xe18b40(_0x4d0fc1),_0x217470['current']=_0x4d0fc1['status$'][_0x16789c(0xef)](_0x525801=>{_0x4b580f(_0x525801);});}),()=>{const _0x399183=_0xed0743;var _0x1a10dc;(_0x1a10dc=_0x217470['current'])==null||_0x1a10dc[_0x399183(0x15e)](),_0x217470['current']=null;}),[_0x418f0a,_0x2a7e2b]),_0x139ecf?_0x5e2915[_0xed0743(0x135)](_0x219eb5[_0xed0743(0xc5)],{'align':_0xed0743(0x152),'disabled':_0x226269===_0x49eaf9[_0xed0743(0xbc)],'className':_0xed0743(0x123),'overlay':_0x5e2915[_0xed0743(0x135)](_0x3172d8,{'status':_0x226269,'coordinator':_0x139ecf}),'children':_0x5e2915[_0xed0743(0x135)](_0xed0743(0x9a),{'className':_0x219eb5[_0xed0743(0x17d)](_0xed0743(0x134),{'univer-cursor-not-allowed':_0x226269===_0x49eaf9['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x226269!==_0x49eaf9['OFFLINE']}),'type':'button','children':_0x5e2915[_0xed0743(0x135)](_0x19f9d4,{'className':_0xed0743(0x179)})})}):null;}function _0x3172d8(_0x53a6dd){const _0x27df22=_0x564d5,{status:_0x46e885,coordinator:_0x3483a5}=_0x53a6dd;switch(_0x46e885){case _0x49eaf9[_0x27df22(0x11f)]:return _0x5e2915[_0x27df22(0x135)](_0x114291,{'coordinator':_0x3483a5});case _0x49eaf9[_0x27df22(0x100)]:return _0x5e2915[_0x27df22(0x135)](_0x17bc70,{'coordinator':_0x3483a5});case _0x49eaf9[_0x27df22(0x124)]:return _0x5e2915[_0x27df22(0x135)](_0xab2ef2,{'coordinator':_0x3483a5});case _0x49eaf9[_0x27df22(0xbc)]:return _0x5e2915[_0x27df22(0x135)](_0x5b81bd,{});case _0x49eaf9['PRESENTING']:return _0x5e2915[_0x27df22(0x135)](_0x19c23f,{'coordinator':_0x3483a5});default:return null;}}function _0x114291(_0xd188ea){const _0x298ddc=_0x564d5,{coordinator:_0x578c8c}=_0xd188ea;return _0x5e2915[_0x298ddc(0x117)](_0x5e2915['Fragment'],{'children':[_0x5e2915[_0x298ddc(0x135)](_0x298ddc(0xdb),{'className':_0x298ddc(0x13f),'children':_0x298ddc(0xa7)}),_0x5e2915[_0x298ddc(0x135)](_0x219eb5[_0x298ddc(0x93)],{'onClick':()=>_0x578c8c['tryStartPresenting'](),'children':_0x298ddc(0x150)})]});}function _0x17bc70(_0x485a86){const _0xb9fdbb=_0x564d5,{coordinator:_0x226b13}=_0x485a86;return _0x5e2915['jsxs'](_0x5e2915[_0xb9fdbb(0x140)],{'children':[_0x5e2915[_0xb9fdbb(0x135)](_0xb9fdbb(0xdb),{'className':_0xb9fdbb(0x13f),'children':_0xb9fdbb(0x101)}),_0x5e2915['jsx'](_0x219eb5[_0xb9fdbb(0x93)],{'onClick':()=>_0x226b13[_0xb9fdbb(0x92)](),'children':_0xb9fdbb(0xfc)})]});}function _0xab2ef2(_0x53945d){const _0x105d6f=_0x564d5,{coordinator:_0x47d115}=_0x53945d;return _0x5e2915['jsxs'](_0x5e2915['Fragment'],{'children':[_0x5e2915[_0x105d6f(0x135)](_0x105d6f(0xdb),{'className':_0x105d6f(0x13f),'children':_0x105d6f(0x15a)}),_0x5e2915[_0x105d6f(0x135)](_0x219eb5[_0x105d6f(0x93)],{'variant':'text','onClick':()=>_0x47d115[_0x105d6f(0xea)](),'children':_0x105d6f(0x11c)})]});}function _0x19c23f(_0x3afbb9){const _0x1abc68=_0x564d5,{coordinator:_0x3273b2}=_0x3afbb9;return _0x5e2915[_0x1abc68(0x117)](_0x5e2915[_0x1abc68(0x140)],{'children':[_0x5e2915[_0x1abc68(0x135)](_0x1abc68(0xdb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1abc68(0xf8)}),_0x5e2915['jsx'](_0x219eb5[_0x1abc68(0x93)],{'variant':_0x1abc68(0x146),'onClick':()=>_0x3273b2[_0x1abc68(0x160)](),'children':_0x1abc68(0xa9)})]});}function _0x5b81bd(){const _0x3f1a9e=_0x564d5;return _0x5e2915[_0x3f1a9e(0x135)](_0x5e2915[_0x3f1a9e(0x140)],{'children':'You\x27are\x20offline.'});}var _0xae8db=Object[_0x564d5(0x178)],_0x55095a=(_0xbb3d00,_0x34fdf4,_0x1e1463,_0x3a4d3b)=>{for(var _0x1ae77d=_0x3a4d3b>0x1?void 0x0:_0x3a4d3b?_0xae8db(_0x34fdf4,_0x1e1463):_0x34fdf4,_0x3145b7=_0xbb3d00['length']-0x1,_0x2c34f6;_0x3145b7>=0x0;_0x3145b7--)(_0x2c34f6=_0xbb3d00[_0x3145b7])&&(_0x1ae77d=_0x2c34f6(_0x1ae77d)||_0x1ae77d);return _0x1ae77d;},_0x12a955=(_0x522bde,_0x1cad63)=>(_0x3cfc8c,_0x5c861b)=>_0x1cad63(_0x3cfc8c,_0x5c861b,_0x522bde);_0x1aec62[_0x564d5(0x181)]=class extends _0x24482f['Disposable']{constructor(_0x585584,_0x7b73e8){const _0x4fabba=_0x564d5;super(),this['_injector']=_0x585584,this[_0x4fabba(0xa4)]=_0x7b73e8,this[_0x4fabba(0xca)]();}[_0x564d5(0xca)](){const _0x2bc1b0=_0x564d5;this['disposeWithMe'](this[_0x2bc1b0(0xa4)][_0x2bc1b0(0x111)](_0x3950cd[_0x2bc1b0(0xf0)][_0x2bc1b0(0x106)],()=>_0x3950cd[_0x2bc1b0(0xab)](_0x2456be,this[_0x2bc1b0(0x148)])));}},_0x1aec62['DesktopLiveShareController']=_0x55095a([_0x12a955(0x0,_0x24482f[_0x564d5(0x97)](_0x24482f['Injector'])),_0x12a955(0x1,_0x3950cd[_0x564d5(0x12e)])],_0x1aec62[_0x564d5(0x181)]);const _0x371340=_0x564d5(0x17e),_0x2cdbea={};var _0x25a0e6=Object[_0x564d5(0x178)],_0x2c7b1e=(_0x2b8052,_0xc73ce1,_0x43caa6,_0x834f31)=>{for(var _0xe28a4c=_0x834f31>0x1?void 0x0:_0x834f31?_0x25a0e6(_0xc73ce1,_0x43caa6):_0xc73ce1,_0x3d7338=_0x2b8052['length']-0x1,_0x2b80dd;_0x3d7338>=0x0;_0x3d7338--)(_0x2b80dd=_0x2b8052[_0x3d7338])&&(_0xe28a4c=_0x2b80dd(_0xe28a4c)||_0xe28a4c);return _0xe28a4c;},_0x1304f6=(_0x4f03d6,_0x556e56)=>(_0x41f8a2,_0x1a2fe7)=>_0x556e56(_0x41f8a2,_0x1a2fe7,_0x4f03d6);let _0x19c03a=class extends _0x24482f['Disposable']{constructor(_0x33a898){const _0x2df521=_0x564d5;super(),this['_liveShareService']=_0x33a898,this[_0x2df521(0xaa)]();}[_0x564d5(0xaa)](){const _0x18cc16=_0x564d5;[_0x399ddd[_0x18cc16(0xff)]['id'],_0x399ddd[_0x18cc16(0x154)]['id'],_0x1dbb33[_0x18cc16(0x119)]['id']][_0x18cc16(0x127)](_0x5845d1=>{const _0x32df34=_0x18cc16;this[_0x32df34(0xbf)](this['_liveShareService'][_0x32df34(0xdc)](_0x5845d1));});}};_0x19c03a=_0x2c7b1e([_0x1304f6(0x0,_0x24482f['Inject'](_0x3420d5))],_0x19c03a);var _0x2f5ef5=Object[_0x564d5(0xf4)],_0x231a47=Object['getOwnPropertyDescriptor'],_0x124673=(_0x5351c2,_0x357436,_0x3f7f3a)=>_0x357436 in _0x5351c2?_0x2f5ef5(_0x5351c2,_0x357436,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f7f3a}):_0x5351c2[_0x357436]=_0x3f7f3a,_0x31856f=(_0x166c98,_0x92395f,_0x10ec4c,_0x30407a)=>{const _0x3b3275=_0x564d5;for(var _0x599c4b=_0x30407a>0x1?void 0x0:_0x30407a?_0x231a47(_0x92395f,_0x10ec4c):_0x92395f,_0x3422b0=_0x166c98[_0x3b3275(0x15f)]-0x1,_0x23b0f7;_0x3422b0>=0x0;_0x3422b0--)(_0x23b0f7=_0x166c98[_0x3422b0])&&(_0x599c4b=_0x23b0f7(_0x599c4b)||_0x599c4b);return _0x599c4b;},_0x404fd5=(_0x2dc082,_0x230b2c)=>(_0xdcf2aa,_0x3f2317)=>_0x230b2c(_0xdcf2aa,_0x3f2317,_0x2dc082),_0x4bac0a=(_0x2a1f30,_0x2f6e67,_0x50485c)=>_0x124673(_0x2a1f30,typeof _0x2f6e67!=_0x564d5(0xa1)?_0x2f6e67+'':_0x2f6e67,_0x50485c);const _0x2c861c=_0x564d5(0xa8);_0x1aec62[_0x564d5(0xa2)]=class extends _0x24482f[_0x564d5(0xf2)]{constructor(_0x458e6b=_0x2cdbea,_0x23d0e1,_0x5b04f0){const _0x146536=_0x564d5;super(),this['_config']=_0x458e6b,this[_0x146536(0x148)]=_0x23d0e1,this['_configService']=_0x5b04f0;const {..._0x519499}=_0x24482f[_0x146536(0xc6)]({},_0x2cdbea,this[_0x146536(0xfb)]);this['_configService']['setConfig'](_0x371340,_0x519499);}[_0x564d5(0x166)](){const _0x17d0a0=_0x564d5;_0x24482f[_0x17d0a0(0x151)](this['_injector'],_0x24482f['mergeOverrideWithDependencies']([[_0x3420d5],[_0x1aec62['LiveShareController']],[_0x19c03a],[_0x1aec62[_0x17d0a0(0x181)]]],this[_0x17d0a0(0xfb)][_0x17d0a0(0xa5)])),_0x24482f[_0x17d0a0(0x133)](this[_0x17d0a0(0x148)],[[_0x19c03a]]);}[_0x564d5(0x16f)](){const _0x55cd3c=_0x564d5;_0x24482f[_0x55cd3c(0x133)](this['_injector'],[[_0x1aec62['DesktopLiveShareController']]]);}},_0x4bac0a(_0x1aec62['UniverLiveSharePlugin'],_0x564d5(0xb7),_0x24482f['UniverInstanceType'][_0x564d5(0xcf)]),_0x4bac0a(_0x1aec62[_0x564d5(0xa2)],'pluginName',_0x2c861c),_0x1aec62[_0x564d5(0xa2)]=_0x31856f([_0x24482f[_0x564d5(0x158)](_0x48be26['UniverCollaborationClientPlugin']),_0x404fd5(0x1,_0x24482f['Inject'](_0x24482f[_0x564d5(0xcb)])),_0x404fd5(0x2,_0x24482f[_0x564d5(0xc3)])],_0x1aec62[_0x564d5(0xa2)]),_0x1aec62[_0x564d5(0xf9)]=_0x2456be,_0x1aec62['LiveShareService']=_0x3420d5,_0x1aec62['LiveShareStatus']=_0x49eaf9,Object[_0x564d5(0xf4)](_0x1aec62,Symbol[_0x564d5(0xf3)],{'value':_0x564d5(0x108)});}));
|
|
1
|
+
function _0x29b4(_0xa54781,_0x20fe08){_0xa54781=_0xa54781-0x158;const _0x311c3f=_0x311c();let _0x29b41c=_0x311c3f[_0xa54781];return _0x29b41c;}function _0x311c(){const _0x59d37f=['LiveShareStatus','defineProperty','_configService','subscribe','live-share.config','button','Injector','registerInitialStateReporter','tag','185044IcLWRl','next','Fragment','set','LiveShareService','DisposableCollection','_commandService','SetWorksheetActiveOperation','path','UNIVER_SHEET','_sharedOperations','init','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_REQUEST_HOST','LiveShareController','svg','_beIdle','_status','length','startFollowing','registerSharedOperation','useEffect','complete','trim','You\x27re\x20not\x20following\x20the\x20presenter','tryStartPresenting','getTypeOfUnitDisposed$','CommandType','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','colorChannel1','event$','http://www.w3.org/2000/svg','RxDisposable','_reporters','idle','_liveShareService','includes','SessionStatus','IDLE','UniverProLiveShare','ONLINE','FOLLOWING','569688RyqYLk','setConfig','194925qRRPQJ','_presenter','jsx','Stop\x20presenting','has','_handleOffline','getOwnPropertyDescriptor','UniverUi','30CtxWJy','_startLiveShareCoordinator','DesktopLiveShareController','NOT_FOLLOWING','merge','createElement','clear','rxjs/operators','presenter','_handleNewChangeSets','xlink:href','mergeOverrideWithDependencies','evenodd','not-following','33DTNKeq','HEADER_MENU','Plugin','Dropdown','89248YFpvFP','dispose$','type','UniverCore','string','BuiltInUIPart','_univerInstanceService','div','Present\x20this\x20document','override','useRef','_config','exports','takeUntil','UniverSheets','text','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getValue','react','IUIPartsService','presenting','UniverDesign','forwardRef','@univerjs/design','defs','url(#$1','values','reverse','following','getInitialStates','OPERATION','attrs','OFFLINE','542313odnEiG','onCommandExecuted','object','Disposable','Start','sheet','ICommandService','createInstance','_stopPresenting','amd','touchDependencies','Start\x20following','pluginName','registerDependencies','_uiPartsService','onStarting','connectInjector','_stopFollowing','shouldShareOperation','toStringTag','asObservable','LIVESHARE_OPERATION','_collabSessionService','LiveShareCoordinator','Inject','_entities','_handleTerminate','status$','_mountLiveShare','pipe','none','useObservable','getUnitId','displayName','memberID','getLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','toDisposable','BehaviorSubject','24fnjtFA','add','disposeWithMe','getStatus','random','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','symbol','delete','UniverInstanceType','@univerjs/ui','getMemberID','dispose','send','_handleOnline','clsx','20hnvQXx','_commandDisposable','UniverProCollaboration','_fetchOperations','_handleOperation','UniverLiveSharePlugin','operators','React','3059940FtJEfJ','Stop\x20following','UNIVER_LIVE_SHARE_PLUGIN','children','data','_startPresenting','_collabSession','params','current','Button','stringify','getTypeOfUnitAdded$','Subject','UNIVER_UNKNOWN','replace','2619764JAscYr','from','stopFollowing','getConfig','_status$','IConfigService','stopPresenting','offline','_injector','fill','getCurrentTypeOfUnit$','You\x27are\x20offline.','@univerjs-pro/collaboration-client','1em','entries','onRendered','_startFollowing','executeCommand','currentColor','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','@univerjs/sheets-ui','useState','CollaborationEvent','_handleNewHost','SetZoomRatioOperation','Module','UniverSheetsUi','rxjs','PRESENTING','idSuffix','useDependency','use','assign','forEach','get','jsxs','find','_init','sessionStatus$'];_0x311c=function(){return _0x59d37f;};return _0x311c();}(function(_0x5a2232,_0x29588d){const _0x44004e=_0x29b4,_0x233eb4=_0x5a2232();while(!![]){try{const _0x1af87f=-parseInt(_0x44004e(0x1b2))/0x1+-parseInt(_0x44004e(0x185))/0x2+-parseInt(_0x44004e(0x1ba))/0x3*(parseInt(_0x44004e(0x1cc))/0x4)+-parseInt(_0x44004e(0x224))/0x5*(-parseInt(_0x44004e(0x1b0))/0x6)+-parseInt(_0x44004e(0x23b))/0x7+parseInt(_0x44004e(0x214))/0x8*(-parseInt(_0x44004e(0x1ed))/0x9)+parseInt(_0x44004e(0x22c))/0xa*(parseInt(_0x44004e(0x1c8))/0xb);if(_0x1af87f===_0x29588d)break;else _0x233eb4['push'](_0x233eb4['shift']());}catch(_0x3316bc){_0x233eb4['push'](_0x233eb4['shift']());}}}(_0x311c,0x38af8),function(_0x423b51,_0x468074){const _0x18f01c=_0x29b4;typeof exports==_0x18f01c(0x1ef)&&typeof module<'u'?_0x468074(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x18f01c(0x1f6)]?define([_0x18f01c(0x1d8),'@univerjs/core',_0x18f01c(0x21e),'react/jsx-runtime',_0x18f01c(0x1e3),_0x18f01c(0x1de),'@univerjs-pro/collaboration',_0x18f01c(0x161),'@univerjs/sheets',_0x18f01c(0x170),_0x18f01c(0x1c1),_0x18f01c(0x169)],_0x468074):(_0x423b51=typeof globalThis<'u'?globalThis:_0x423b51||self,_0x468074(_0x423b51[_0x18f01c(0x1ad)]={},_0x423b51[_0x18f01c(0x1cf)],_0x423b51[_0x18f01c(0x1b9)],_0x423b51['React'],_0x423b51[_0x18f01c(0x1e1)],_0x423b51[_0x18f01c(0x22b)],_0x423b51[_0x18f01c(0x226)],_0x423b51['UniverProCollaborationClient'],_0x423b51[_0x18f01c(0x1da)],_0x423b51['rxjs'],_0x423b51[_0x18f01c(0x170)][_0x18f01c(0x22a)],_0x423b51[_0x18f01c(0x16f)]));}(this,function(_0x58e433,_0x367506,_0x4d3b49,_0x330319,_0x565884,_0x228ca9,_0x445828,_0x41d7d3,_0x413e8c,_0x417a0a,_0x44af1a,_0x2d6db0){'use strict';const _0x5ee196=_0x29b4;var _0x1f4fec=Object['defineProperty'],_0x882113=(_0x5763c4,_0x48a86,_0x322a8b)=>_0x48a86 in _0x5763c4?_0x1f4fec(_0x5763c4,_0x48a86,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x322a8b}):_0x5763c4[_0x48a86]=_0x322a8b,_0x5b076a=(_0xbeb296,_0x943f34,_0x4d53dd)=>_0x882113(_0xbeb296,typeof _0x943f34!=_0x5ee196(0x21b)?_0x943f34+'':_0x943f34,_0x4d53dd);function _0x27b3d8({ref:_0x582cc1,..._0x5ee6e8}){const _0x59f9bc=_0x5ee196,{icon:_0x417be9,id:_0xcdac54,className:_0x38f23b,extend:_0x2b96f4,..._0x369ddd}=_0x5ee6e8,_0x3d59d6=('univerjs-icon\x20univerjs-icon-'+_0xcdac54+'\x20'+(_0x38f23b||''))[_0x59f9bc(0x19d)](),_0x1a9507=_0x228ca9[_0x59f9bc(0x1d6)]('_'+_0x48f63e());return _0x25b8a6(_0x417be9,''+_0xcdac54,{'defIds':_0x417be9['defIds'],'idSuffix':_0x1a9507['current']},{'ref':_0x582cc1,'className':_0x3d59d6,..._0x369ddd},_0x2b96f4);}function _0x25b8a6(_0xb70ede,_0x1fafc4,_0x1614c9,_0x349ae2,_0xd4e14d){const _0x5da222=_0x5ee196;return _0x228ca9[_0x5da222(0x1bf)](_0xb70ede[_0x5da222(0x184)],{'key':_0x1fafc4,..._0x1abe9f(_0xb70ede,_0x1614c9,_0xd4e14d),..._0x349ae2},(_0x280d4c(_0xb70ede,_0x1614c9)[_0x5da222(0x22f)]||[])['map']((_0x2762ea,_0x421947)=>_0x25b8a6(_0x2762ea,_0x1fafc4+'-'+_0xb70ede['tag']+'-'+_0x421947,_0x1614c9,void 0x0,_0xd4e14d)));}function _0x1abe9f(_0x4bd72b,_0x17dd4e,_0x34bf8a){const _0x44d6e9=_0x5ee196,_0x4bca32={..._0x4bd72b[_0x44d6e9(0x1eb)]};_0x34bf8a!=null&&_0x34bf8a[_0x44d6e9(0x1a3)]&&_0x4bca32[_0x44d6e9(0x15e)]===_0x44d6e9(0x1a3)&&(_0x4bca32[_0x44d6e9(0x15e)]=_0x34bf8a[_0x44d6e9(0x1a3)]),_0x4bd72b[_0x44d6e9(0x184)]==='mask'&&_0x4bca32['id']&&(_0x4bca32['id']=_0x4bca32['id']+_0x17dd4e[_0x44d6e9(0x172)]),Object[_0x44d6e9(0x163)](_0x4bca32)[_0x44d6e9(0x176)](([_0x4474c7,_0x20665d])=>{const _0x1e45b9=_0x44d6e9;_0x4474c7==='mask'&&typeof _0x20665d==_0x1e45b9(0x1d0)&&(_0x4bca32[_0x4474c7]=_0x20665d[_0x1e45b9(0x23a)](/url\(#(.*)\)/,_0x1e45b9(0x1e5)+_0x17dd4e[_0x1e45b9(0x172)]+')'));});const {defIds:_0xfb570a}=_0x17dd4e;return!_0xfb570a||_0xfb570a[_0x44d6e9(0x198)]===0x0||(_0x4bd72b['tag']===_0x44d6e9(0x174)&&_0x4bca32[_0x44d6e9(0x1c4)]&&(_0x4bca32['xlink:href']=_0x4bca32['xlink:href']+_0x17dd4e[_0x44d6e9(0x172)]),Object[_0x44d6e9(0x163)](_0x4bca32)[_0x44d6e9(0x176)](([_0x18b576,_0x2c49aa])=>{const _0x217b9a=_0x44d6e9;typeof _0x2c49aa=='string'&&(_0x4bca32[_0x18b576]=_0x2c49aa[_0x217b9a(0x23a)](/url\(#(.*)\)/,'url(#$1'+_0x17dd4e[_0x217b9a(0x172)]+')'));})),_0x4bca32;}function _0x280d4c(_0x1e1a7f,_0x50fca1){const _0x8c59e1=_0x5ee196;var _0x42b534;const {defIds:_0x256d27}=_0x50fca1;return!_0x256d27||_0x256d27[_0x8c59e1(0x198)]===0x0?_0x1e1a7f:_0x1e1a7f[_0x8c59e1(0x184)]===_0x8c59e1(0x1e4)&&((_0x42b534=_0x1e1a7f['children'])!=null&&_0x42b534[_0x8c59e1(0x198)])?{..._0x1e1a7f,'children':_0x1e1a7f[_0x8c59e1(0x22f)]['map'](_0x2e29bd=>typeof _0x2e29bd[_0x8c59e1(0x1eb)]['id']==_0x8c59e1(0x1d0)&&_0x256d27&&_0x256d27[_0x8c59e1(0x1aa)](_0x2e29bd['attrs']['id'])?{..._0x2e29bd,'attrs':{..._0x2e29bd['attrs'],'id':_0x2e29bd[_0x8c59e1(0x1eb)]['id']+_0x50fca1[_0x8c59e1(0x172)]}}:_0x2e29bd)}:_0x1e1a7f;}function _0x48f63e(){const _0x564a4d=_0x5ee196;return Math[_0x564a4d(0x218)]()['toString'](0x24)['substring'](0x2,0x8);}_0x27b3d8[_0x5ee196(0x20e)]='UniverIcon';const _0x8c7530={'tag':_0x5ee196(0x195),'attrs':{'xmlns':_0x5ee196(0x1a5),'fill':_0x5ee196(0x20b),'viewBox':'0\x200\x2017\x2017','width':_0x5ee196(0x162),'height':'1em'},'children':[{'tag':_0x5ee196(0x18d),'attrs':{'fill':_0x5ee196(0x167),'d':_0x5ee196(0x1dc)}},{'tag':_0x5ee196(0x18d),'attrs':{'fill':_0x5ee196(0x167),'d':_0x5ee196(0x168),'fillRule':_0x5ee196(0x1c6),'clipRule':'evenodd'}}]},_0x2832a0=_0x228ca9[_0x5ee196(0x1e2)](function(_0x4fd8af,_0x72dd2f){const _0x5da65c=_0x5ee196;return _0x228ca9[_0x5da65c(0x1bf)](_0x27b3d8,Object[_0x5da65c(0x175)]({},_0x4fd8af,{'id':'live-share-icon','ref':_0x72dd2f,'icon':_0x8c7530}));});_0x2832a0['displayName']='LiveShareIcon';class _0x5f5b0c extends _0x367506[_0x5ee196(0x1f0)]{constructor(){const _0x2f33ae=_0x5ee196;super(...arguments),_0x5b076a(this,_0x2f33ae(0x18f),new Set()),_0x5b076a(this,_0x2f33ae(0x1a7),new Set());}[_0x5ee196(0x19a)](_0x3ba75e){const _0x127477=_0x5ee196;return this[_0x127477(0x18f)][_0x127477(0x215)](_0x3ba75e),_0x367506['toDisposable'](()=>this['_sharedOperations'][_0x127477(0x21c)](_0x3ba75e));}[_0x5ee196(0x183)](_0x563374){const _0x29e30b=_0x5ee196;return this['_reporters'][_0x29e30b(0x215)](_0x563374),_0x367506[_0x29e30b(0x212)](()=>this[_0x29e30b(0x1a7)][_0x29e30b(0x21c)](_0x563374));}[_0x5ee196(0x1ff)](_0x285e2f){const _0x2fb560=_0x5ee196;return this[_0x2fb560(0x18f)][_0x2fb560(0x1b6)](_0x285e2f);}[_0x5ee196(0x1e9)](_0x8bc88c){const _0x3887ac=_0x5ee196;return Array[_0x3887ac(0x23c)](this[_0x3887ac(0x1a7)])['map'](_0x4f10bf=>_0x4f10bf(_0x8bc88c));}}var _0x59e39a=Object[_0x5ee196(0x1b8)],_0x806730=(_0x292801,_0x57885d,_0x5475f7,_0x3cb6e8)=>{for(var _0x4f6e1d=_0x3cb6e8>0x1?void 0x0:_0x3cb6e8?_0x59e39a(_0x57885d,_0x5475f7):_0x57885d,_0x5627b2=_0x292801['length']-0x1,_0x34b54d;_0x5627b2>=0x0;_0x5627b2--)(_0x34b54d=_0x292801[_0x5627b2])&&(_0x4f6e1d=_0x34b54d(_0x4f6e1d)||_0x4f6e1d);return _0x4f6e1d;},_0x567390=(_0x2fe58f,_0x4355fb)=>(_0x4a77c9,_0xd4232a)=>_0x4355fb(_0x4a77c9,_0xd4232a,_0x2fe58f);_0x58e433[_0x5ee196(0x194)]=class extends _0x367506[_0x5ee196(0x1a6)]{constructor(_0x44fb21,_0x5d69d7,_0x50162d){const _0xfd6318=_0x5ee196;super(),_0x5b076a(this,_0xfd6318(0x206),new Map()),(this[_0xfd6318(0x1d2)]=_0x44fb21,this[_0xfd6318(0x15d)]=_0x5d69d7,this[_0xfd6318(0x203)]=_0x50162d,this[_0xfd6318(0x17a)]());}async[_0x5ee196(0x210)](_0x188e27){const _0x19f534=_0x5ee196;return this['_entities'][_0x19f534(0x1b6)](_0x188e27)||await this[_0x19f534(0x1bb)](_0x188e27),this[_0x19f534(0x206)][_0x19f534(0x177)](_0x188e27);}['getLiveShareCoordinatorSync'](_0x4cd45b){const _0x3b2cc7=_0x5ee196;var _0x24a987;return(_0x24a987=this[_0x3b2cc7(0x206)][_0x3b2cc7(0x177)](_0x4cd45b))!=null?_0x24a987:null;}['_init'](){const _0x38cb68=_0x5ee196;this[_0x38cb68(0x1d2)][_0x38cb68(0x237)](_0x367506['UniverInstanceType'][_0x38cb68(0x18e)])[_0x38cb68(0x20a)](_0x44af1a[_0x38cb68(0x1d9)](this[_0x38cb68(0x1cd)]))[_0x38cb68(0x17f)](async _0x34743c=>{const _0x1c43fb=_0x38cb68,_0x2ae98a=_0x34743c[_0x1c43fb(0x20d)]();this['_entities']['has'](_0x2ae98a)||this[_0x1c43fb(0x1bb)](_0x2ae98a);}),this[_0x38cb68(0x1d2)][_0x38cb68(0x1a0)](_0x367506[_0x38cb68(0x21d)][_0x38cb68(0x18e)])['pipe'](_0x44af1a[_0x38cb68(0x1d9)](this['dispose$']))['subscribe'](_0x28b15f=>{const _0xbb9017=_0x38cb68,_0xfc5b96=_0x28b15f[_0xbb9017(0x20d)](),_0x24cb99=this[_0xbb9017(0x206)][_0xbb9017(0x177)](_0xfc5b96);_0x24cb99==null||_0x24cb99['dispose']();});}async[_0x5ee196(0x1bb)](_0x456736){const _0x12e376=_0x5ee196,_0x5d0c5f=await this[_0x12e376(0x203)]['requireSession'](_0x456736),_0x4a1ec8=this[_0x12e376(0x15d)][_0x12e376(0x1f4)](_0x58e433[_0x12e376(0x204)],_0x456736,_0x5d0c5f);return _0x4a1ec8[_0x12e376(0x190)](),this[_0x12e376(0x206)][_0x12e376(0x188)](_0x456736,_0x4a1ec8),_0x4a1ec8;}},_0x58e433['LiveShareController']=_0x806730([_0x567390(0x0,_0x367506[_0x5ee196(0x21a)]),_0x567390(0x1,_0x367506['Inject'](_0x367506[_0x5ee196(0x182)])),_0x567390(0x2,_0x367506[_0x5ee196(0x205)](_0x41d7d3['CollaborationSessionService']))],_0x58e433[_0x5ee196(0x194)]);var _0x38cfeb=(_0xa2183f=>(_0xa2183f[_0x5ee196(0x1ec)]='offline',_0xa2183f['IDLE']=_0x5ee196(0x1a8),_0xa2183f[_0x5ee196(0x1af)]=_0x5ee196(0x1e8),_0xa2183f[_0x5ee196(0x1bd)]=_0x5ee196(0x1c7),_0xa2183f[_0x5ee196(0x171)]=_0x5ee196(0x1e0),_0xa2183f))(_0x38cfeb||{});const _0x1eef87=_0x5ee196(0x211),_0xd73e38=0xc8;_0x58e433['LiveShareCoordinator']=class extends _0x367506[_0x5ee196(0x1a6)]{constructor(_0x43cadb,_0x690919,_0x1c4947,_0x24abd9,_0x24e78e){const _0x558f2a=_0x5ee196;super(),_0x5b076a(this,'_status$',new _0x417a0a[(_0x558f2a(0x213))](_0x558f2a(0x1a8))),_0x5b076a(this,_0x558f2a(0x208),this[_0x558f2a(0x159)][_0x558f2a(0x201)]()),_0x5b076a(this,_0x558f2a(0x17a),!0x1),_0x5b076a(this,_0x558f2a(0x225),null),_0x5b076a(this,_0x558f2a(0x1b3),null),(this[_0x558f2a(0x191)]=_0x43cadb,this[_0x558f2a(0x232)]=_0x690919,this[_0x558f2a(0x17e)]=_0x1c4947,this['_liveShareService']=_0x24abd9,this['_commandService']=_0x24e78e);}get['_status'](){const _0x4ba4f0=_0x5ee196;return this[_0x4ba4f0(0x159)][_0x4ba4f0(0x1dd)]();}['dispose'](){const _0x593e8a=_0x5ee196;var _0x571b83;(_0x571b83=this[_0x593e8a(0x225)])==null||_0x571b83['dispose'](),this[_0x593e8a(0x159)]['next'](_0x593e8a(0x1a8)),this[_0x593e8a(0x159)][_0x593e8a(0x19c)]();}[_0x5ee196(0x217)](){return this['_status'];}[_0x5ee196(0x190)](){const _0x28e24c=_0x5ee196;this[_0x28e24c(0x17a)]||(this[_0x28e24c(0x17a)]=!0x0,this['_collabSession'][_0x28e24c(0x17b)][_0x28e24c(0x20a)](_0x44af1a['takeUntil'](this[_0x28e24c(0x1cd)]))[_0x28e24c(0x17f)](_0x1c0cf5=>{const _0x48cbd3=_0x28e24c;switch(_0x1c0cf5){case _0x41d7d3[_0x48cbd3(0x1ab)][_0x48cbd3(0x1ec)]:this[_0x48cbd3(0x1b7)]();break;case _0x41d7d3[_0x48cbd3(0x1ab)][_0x48cbd3(0x1ae)]:this[_0x48cbd3(0x222)]();break;}}),this[_0x28e24c(0x232)][_0x28e24c(0x1a4)][_0x28e24c(0x20a)](_0x44af1a[_0x28e24c(0x1d9)](this[_0x28e24c(0x1cd)]))[_0x28e24c(0x17f)](_0x1a0767=>{const _0x24c567=_0x28e24c,{eventID:_0x55e710}=_0x1a0767;switch(_0x55e710){case _0x445828['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x24c567(0x16c)](_0x1a0767);break;case _0x445828[_0x24c567(0x16b)][_0x24c567(0x202)]:this['_handleOperation'](_0x1a0767);break;case _0x445828['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x24c567(0x207)]();break;case _0x445828['CollaborationEvent']['NEW_CHANGESETS']:this[_0x24c567(0x1c3)](_0x1a0767);break;}}));}[_0x5ee196(0x19f)](){const _0x5135bd=_0x5ee196;this[_0x5135bd(0x232)]['send']({'eventID':_0x445828['CollaborationEvent'][_0x5135bd(0x193)],'data':{'unitID':this['_unitID'],'userID':this[_0x5135bd(0x232)][_0x5135bd(0x21f)]()}},this['_unitID']);}['stopPresenting'](){const _0x4780a7=_0x5ee196;this[_0x4780a7(0x197)]===_0x4780a7(0x1e0)&&(this[_0x4780a7(0x159)][_0x4780a7(0x186)](_0x4780a7(0x1a8)),this[_0x4780a7(0x232)][_0x4780a7(0x221)]({'eventID':_0x445828[_0x4780a7(0x16b)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4780a7(0x191)]}},this[_0x4780a7(0x191)]));}[_0x5ee196(0x199)](){const _0xfea06b=_0x5ee196;this[_0xfea06b(0x197)]==='not-following'&&(this[_0xfea06b(0x159)][_0xfea06b(0x186)](_0xfea06b(0x1e8)),this['_startFollowing']());}[_0x5ee196(0x23d)](){const _0x1fea4e=_0x5ee196;this['_status']==='following'&&this[_0x1fea4e(0x1fe)]();}[_0x5ee196(0x16c)](_0x2e6ea1){const _0x11474a=_0x5ee196,{presenter:_0x232d67}=_0x2e6ea1[_0x11474a(0x230)],_0x29ec14=this[_0x11474a(0x232)]['getMemberID']();this[_0x11474a(0x1b3)]=_0x232d67,_0x232d67===_0x29ec14?(this[_0x11474a(0x1fe)](),this['_startPresenting']()):this[_0x11474a(0x197)]!==_0x11474a(0x1c7)&&(this['_stopPresenting'](),this[_0x11474a(0x165)]());}['_fetchOperations'](){const _0x5dca28=_0x5ee196,_0x4c8324={'eventID':_0x445828['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x5dca28(0x232)][_0x5dca28(0x221)](_0x4c8324,this[_0x5dca28(0x191)]);}[_0x5ee196(0x207)](){const _0x67fc1e=_0x5ee196;this[_0x67fc1e(0x1b3)]=null,this[_0x67fc1e(0x197)]!==_0x67fc1e(0x1e0)&&this[_0x67fc1e(0x196)]();}['_handleNewChangeSets'](_0x31531a){const _0x32285c=_0x5ee196;if(this['_status']===_0x32285c(0x1e8)&&this[_0x32285c(0x1b3)]===_0x31531a['data'][_0x32285c(0x20f)]){const _0x37a7e3=_0x445828['parseProtocolChangeset'](_0x31531a['data'])['mutations'][_0x32285c(0x1e7)]()[_0x32285c(0x179)](_0x425dc4=>_0x425dc4['id']===_0x413e8c['InsertSheetMutation']['id']);if(_0x37a7e3){const _0x381f82=_0x37a7e3[_0x32285c(0x233)]['unitId'],_0x2a78e7=_0x37a7e3[_0x32285c(0x233)][_0x32285c(0x1f2)]['id'];setTimeout(()=>{const _0xc3ea4e=_0x32285c;this['_commandService'][_0xc3ea4e(0x166)](_0x413e8c[_0xc3ea4e(0x18c)]['id'],{'unitId':_0x381f82,'subUnitId':_0x2a78e7},{'fromCollab':!0x0});});}}}[_0x5ee196(0x231)](){const _0x2014c3=_0x5ee196;this[_0x2014c3(0x159)][_0x2014c3(0x186)](_0x2014c3(0x1e0));const _0x4f1d66=new Map(),_0xf0f655=this[_0x2014c3(0x225)]=new _0x367506[(_0x2014c3(0x18a))]();_0xf0f655[_0x2014c3(0x215)](_0x367506[_0x2014c3(0x212)](()=>{const _0x5957cb=_0x2014c3;_0x4f1d66[_0x5957cb(0x176)](_0x1944eb=>_0x1944eb[_0x5957cb(0x19c)]()),_0x4f1d66[_0x5957cb(0x1c0)]();})),_0xf0f655['add'](this[_0x2014c3(0x18b)][_0x2014c3(0x1ee)](_0x1ebb3c=>{const _0xb7216f=_0x2014c3;var _0x4002da;if(_0x1ebb3c['type']!==_0x367506[_0xb7216f(0x1a1)][_0xb7216f(0x1ea)]||!this[_0xb7216f(0x1a9)][_0xb7216f(0x1ff)](_0x1ebb3c['id']))return;const {id:_0x22dbfb}=_0x1ebb3c;let _0x5a5c75;_0x4f1d66[_0xb7216f(0x1b6)](_0x22dbfb)?_0x5a5c75=_0x4f1d66[_0xb7216f(0x177)](_0x22dbfb):(_0x5a5c75=new _0x417a0a[(_0xb7216f(0x238))](),_0x4f1d66[_0xb7216f(0x188)](_0x22dbfb,_0x5a5c75),_0x5a5c75[_0xb7216f(0x20a)](_0x44af1a['throttleTime']((_0x4002da=this['_configService'][_0xb7216f(0x158)](_0x1eef87))!=null?_0x4002da:_0xd73e38,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xb7216f(0x17f)](_0x1e4fb1=>{const _0xb77d33=_0xb7216f;this[_0xb77d33(0x232)][_0xb77d33(0x221)]({'eventID':_0x445828['CollaborationEvent'][_0xb77d33(0x202)],'data':{'unitID':this[_0xb77d33(0x191)],'operations':{[_0x1e4fb1['id']]:{'id':_0x1e4fb1['id'],'params':JSON['stringify'](_0x1e4fb1[_0xb77d33(0x233)])}}}},this['_unitID']);})),_0x5a5c75[_0xb7216f(0x186)](_0x1ebb3c);})),this['_liveShareService']['getInitialStates'](this[_0x2014c3(0x191)])[_0x2014c3(0x176)](_0x5e21c2=>this[_0x2014c3(0x232)]['send']({'eventID':_0x445828[_0x2014c3(0x16b)][_0x2014c3(0x202)],'data':{'unitID':this['_unitID'],'operations':{[_0x5e21c2['id']]:{'id':_0x5e21c2['id'],'params':JSON[_0x2014c3(0x236)](_0x5e21c2[_0x2014c3(0x233)])}}}},this[_0x2014c3(0x191)]));}[_0x5ee196(0x1f5)](){const _0xb6f6ff=_0x5ee196;var _0x9bf6d9;this['_status$'][_0xb6f6ff(0x186)](_0xb6f6ff(0x1a8)),(_0x9bf6d9=this[_0xb6f6ff(0x225)])==null||_0x9bf6d9[_0xb6f6ff(0x220)](),this[_0xb6f6ff(0x225)]=null;}[_0x5ee196(0x165)](){const _0x16aaf9=_0x5ee196;var _0x57dbfd;(_0x57dbfd=this[_0x16aaf9(0x225)])==null||_0x57dbfd[_0x16aaf9(0x220)](),this[_0x16aaf9(0x159)][_0x16aaf9(0x186)](_0x16aaf9(0x1e8));}[_0x5ee196(0x196)](){const _0x4dd8aa=_0x5ee196;var _0x73c20b;this[_0x4dd8aa(0x159)]['next'](_0x4dd8aa(0x1a8)),(_0x73c20b=this[_0x4dd8aa(0x225)])==null||_0x73c20b[_0x4dd8aa(0x220)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x53792a=_0x5ee196;var _0x3a2c69;this[_0x53792a(0x159)][_0x53792a(0x186)]('not-following'),(_0x3a2c69=this[_0x53792a(0x225)])==null||_0x3a2c69[_0x53792a(0x220)]();}[_0x5ee196(0x228)](_0x3e00c9){const _0x4bed1f=_0x5ee196;if([_0x4bed1f(0x1e0),_0x4bed1f(0x1c7),_0x4bed1f(0x15c)]['includes'](this['_status'])||!_0x3e00c9[_0x4bed1f(0x230)]['presenter']||_0x3e00c9[_0x4bed1f(0x230)][_0x4bed1f(0x1c2)]===this[_0x4bed1f(0x232)][_0x4bed1f(0x21f)]())return;this[_0x4bed1f(0x197)]===_0x4bed1f(0x1a8)&&this[_0x4bed1f(0x165)]();const _0x3fce23=_0x3e00c9[_0x4bed1f(0x230)]['operations'];Object[_0x4bed1f(0x1e6)](_0x3fce23)[_0x4bed1f(0x176)](_0x1a3c9a=>{const _0x4586bf=_0x4bed1f;this['_commandService']['executeCommand'](_0x1a3c9a['id'],_0x1a3c9a[_0x4586bf(0x233)]?JSON['parse'](_0x1a3c9a['params']):null,{'fromCollab':!0x0});});}[_0x5ee196(0x1b7)](){const _0x24ed2a=_0x5ee196;var _0x36d4bb;this['_status$'][_0x24ed2a(0x186)]('offline'),(_0x36d4bb=this[_0x24ed2a(0x225)])==null||_0x36d4bb[_0x24ed2a(0x220)]();}[_0x5ee196(0x222)](){const _0x1bbc7d=_0x5ee196;this[_0x1bbc7d(0x159)][_0x1bbc7d(0x186)](_0x1bbc7d(0x1a8)),this[_0x1bbc7d(0x227)]();}},_0x58e433[_0x5ee196(0x204)]=_0x806730([_0x567390(0x2,_0x367506[_0x5ee196(0x15a)]),_0x567390(0x3,_0x367506['Inject'](_0x5f5b0c)),_0x567390(0x4,_0x367506[_0x5ee196(0x1f3)])],_0x58e433['LiveShareCoordinator']);function _0x46904a(){const _0x2ab99f=_0x5ee196,_0x2e8b06=_0x4d3b49[_0x2ab99f(0x173)](_0x58e433[_0x2ab99f(0x194)]),_0x1346c9=_0x4d3b49[_0x2ab99f(0x173)](_0x367506[_0x2ab99f(0x21a)]),_0x3f534d=_0x4d3b49[_0x2ab99f(0x20c)](()=>_0x1346c9[_0x2ab99f(0x15f)](_0x367506[_0x2ab99f(0x21d)][_0x2ab99f(0x18e)]),void 0x0,!0x1,[]),[_0xe87f02,_0x3545e9]=_0x228ca9[_0x2ab99f(0x16a)](null),[_0x255f99,_0x46c504]=_0x228ca9[_0x2ab99f(0x16a)](_0x38cfeb[_0x2ab99f(0x1ac)]),_0x41e962=_0x228ca9['useRef'](null);return _0x228ca9[_0x2ab99f(0x19b)](()=>(_0x3f534d&&_0x2e8b06[_0x2ab99f(0x210)](_0x3f534d[_0x2ab99f(0x20d)]())['then'](_0x442264=>{const _0x5581f0=_0x2ab99f;_0x3545e9(_0x442264),_0x41e962[_0x5581f0(0x234)]=_0x442264['status$'][_0x5581f0(0x17f)](_0x32d7db=>{_0x46c504(_0x32d7db);});}),()=>{const _0x314709=_0x2ab99f;var _0x1b0068;(_0x1b0068=_0x41e962[_0x314709(0x234)])==null||_0x1b0068['unsubscribe'](),_0x41e962[_0x314709(0x234)]=null;}),[_0x3f534d,_0x2e8b06]),_0xe87f02?_0x330319[_0x2ab99f(0x1b4)](_0x565884[_0x2ab99f(0x1cb)],{'align':'end','disabled':_0x255f99===_0x38cfeb[_0x2ab99f(0x1ec)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x330319[_0x2ab99f(0x1b4)](_0x41b56d,{'status':_0x255f99,'coordinator':_0xe87f02}),'children':_0x330319[_0x2ab99f(0x1b4)](_0x2ab99f(0x181),{'className':_0x565884[_0x2ab99f(0x223)](_0x2ab99f(0x1a2),{'univer-cursor-not-allowed':_0x255f99===_0x38cfeb['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x255f99!==_0x38cfeb[_0x2ab99f(0x1ec)]}),'type':_0x2ab99f(0x181),'children':_0x330319[_0x2ab99f(0x1b4)](_0x2832a0,{'className':'univer-size-4'})})}):null;}function _0x41b56d(_0x26cae6){const _0x5c1046=_0x5ee196,{status:_0x55edf6,coordinator:_0x42d01a}=_0x26cae6;switch(_0x55edf6){case _0x38cfeb['IDLE']:return _0x330319[_0x5c1046(0x1b4)](_0x36899d,{'coordinator':_0x42d01a});case _0x38cfeb['FOLLOWING']:return _0x330319[_0x5c1046(0x1b4)](_0xe95186,{'coordinator':_0x42d01a});case _0x38cfeb[_0x5c1046(0x1bd)]:return _0x330319[_0x5c1046(0x1b4)](_0x17420b,{'coordinator':_0x42d01a});case _0x38cfeb[_0x5c1046(0x1ec)]:return _0x330319[_0x5c1046(0x1b4)](_0x1b9f8b,{});case _0x38cfeb[_0x5c1046(0x171)]:return _0x330319[_0x5c1046(0x1b4)](_0x15440f,{'coordinator':_0x42d01a});default:return null;}}function _0x36899d(_0x362f03){const _0x2c479d=_0x5ee196,{coordinator:_0x57b5f6}=_0x362f03;return _0x330319[_0x2c479d(0x178)](_0x330319[_0x2c479d(0x187)],{'children':[_0x330319[_0x2c479d(0x1b4)](_0x2c479d(0x1d3),{'className':_0x2c479d(0x192),'children':_0x2c479d(0x1d4)}),_0x330319[_0x2c479d(0x1b4)](_0x565884[_0x2c479d(0x235)],{'onClick':()=>_0x57b5f6[_0x2c479d(0x19f)](),'children':_0x2c479d(0x1f1)})]});}function _0xe95186(_0x38d2c9){const _0x5e5867=_0x5ee196,{coordinator:_0x5e784f}=_0x38d2c9;return _0x330319['jsxs'](_0x330319[_0x5e5867(0x187)],{'children':[_0x330319[_0x5e5867(0x1b4)](_0x5e5867(0x1d3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x330319[_0x5e5867(0x1b4)](_0x565884[_0x5e5867(0x235)],{'onClick':()=>_0x5e784f[_0x5e5867(0x23d)](),'children':_0x5e5867(0x22d)})]});}function _0x17420b(_0x319aa0){const _0x38b2de=_0x5ee196,{coordinator:_0x5d9dbd}=_0x319aa0;return _0x330319[_0x38b2de(0x178)](_0x330319['Fragment'],{'children':[_0x330319[_0x38b2de(0x1b4)](_0x38b2de(0x1d3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38b2de(0x19e)}),_0x330319[_0x38b2de(0x1b4)](_0x565884[_0x38b2de(0x235)],{'variant':_0x38b2de(0x1db),'onClick':()=>_0x5d9dbd[_0x38b2de(0x199)](),'children':_0x38b2de(0x1f8)})]});}function _0x15440f(_0x545c68){const _0x3f411f=_0x5ee196,{coordinator:_0x5764bd}=_0x545c68;return _0x330319[_0x3f411f(0x178)](_0x330319[_0x3f411f(0x187)],{'children':[_0x330319['jsx']('div',{'className':_0x3f411f(0x192),'children':_0x3f411f(0x219)}),_0x330319[_0x3f411f(0x1b4)](_0x565884[_0x3f411f(0x235)],{'variant':'default','onClick':()=>_0x5764bd[_0x3f411f(0x15b)](),'children':_0x3f411f(0x1b5)})]});}function _0x1b9f8b(){const _0x26551a=_0x5ee196;return _0x330319[_0x26551a(0x1b4)](_0x330319['Fragment'],{'children':_0x26551a(0x160)});}var _0x434359=Object[_0x5ee196(0x1b8)],_0x1d51cf=(_0x4174b3,_0x30ee60,_0x592692,_0x587dd3)=>{const _0x3cc10d=_0x5ee196;for(var _0x25958e=_0x587dd3>0x1?void 0x0:_0x587dd3?_0x434359(_0x30ee60,_0x592692):_0x30ee60,_0x4df04d=_0x4174b3[_0x3cc10d(0x198)]-0x1,_0x4761ac;_0x4df04d>=0x0;_0x4df04d--)(_0x4761ac=_0x4174b3[_0x4df04d])&&(_0x25958e=_0x4761ac(_0x25958e)||_0x25958e);return _0x25958e;},_0x2fa334=(_0x5eceb6,_0x5a4db5)=>(_0x6c59e3,_0x242f15)=>_0x5a4db5(_0x6c59e3,_0x242f15,_0x5eceb6);_0x58e433['DesktopLiveShareController']=class extends _0x367506[_0x5ee196(0x1f0)]{constructor(_0x524208,_0x335fb3){const _0x101287=_0x5ee196;super(),this['_injector']=_0x524208,this[_0x101287(0x1fb)]=_0x335fb3,this[_0x101287(0x209)]();}[_0x5ee196(0x209)](){const _0x57723e=_0x5ee196;this[_0x57723e(0x216)](this[_0x57723e(0x1fb)]['registerComponent'](_0x4d3b49[_0x57723e(0x1d1)][_0x57723e(0x1c9)],()=>_0x4d3b49[_0x57723e(0x1fd)](_0x46904a,this[_0x57723e(0x15d)])));}},_0x58e433[_0x5ee196(0x1bc)]=_0x1d51cf([_0x2fa334(0x0,_0x367506[_0x5ee196(0x205)](_0x367506['Injector'])),_0x2fa334(0x1,_0x4d3b49[_0x5ee196(0x1df)])],_0x58e433[_0x5ee196(0x1bc)]);const _0x4fbf9f=_0x5ee196(0x180),_0x323061={};var _0x5bf946=Object[_0x5ee196(0x1b8)],_0x4b954e=(_0x474916,_0x4ccd4e,_0x3d36cd,_0x5ca9b9)=>{const _0x5d6511=_0x5ee196;for(var _0x5d69fd=_0x5ca9b9>0x1?void 0x0:_0x5ca9b9?_0x5bf946(_0x4ccd4e,_0x3d36cd):_0x4ccd4e,_0x133a83=_0x474916[_0x5d6511(0x198)]-0x1,_0x53a415;_0x133a83>=0x0;_0x133a83--)(_0x53a415=_0x474916[_0x133a83])&&(_0x5d69fd=_0x53a415(_0x5d69fd)||_0x5d69fd);return _0x5d69fd;},_0x2bf3ef=(_0x5961a9,_0x13b625)=>(_0x177b2d,_0x45a526)=>_0x13b625(_0x177b2d,_0x45a526,_0x5961a9);let _0xca94c1=class extends _0x367506['Disposable']{constructor(_0x254032){const _0x45aea9=_0x5ee196;super(),this['_liveShareService']=_0x254032,this[_0x45aea9(0x17a)]();}['_init'](){const _0x5b0410=_0x5ee196;[_0x2d6db0[_0x5b0410(0x16d)]['id'],_0x2d6db0['SetScrollOperation']['id'],_0x413e8c[_0x5b0410(0x18c)]['id']][_0x5b0410(0x176)](_0x25148f=>{const _0x146ce9=_0x5b0410;this[_0x146ce9(0x216)](this[_0x146ce9(0x1a9)]['registerSharedOperation'](_0x25148f));});}};_0xca94c1=_0x4b954e([_0x2bf3ef(0x0,_0x367506[_0x5ee196(0x205)](_0x5f5b0c))],_0xca94c1);var _0x53671f=Object['defineProperty'],_0x33a891=Object[_0x5ee196(0x1b8)],_0x4f899b=(_0x2b3e56,_0x3bc008,_0x237052)=>_0x3bc008 in _0x2b3e56?_0x53671f(_0x2b3e56,_0x3bc008,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x237052}):_0x2b3e56[_0x3bc008]=_0x237052,_0x314900=(_0x1fefa9,_0x130591,_0x3786c5,_0x168c98)=>{for(var _0x29a9d0=_0x168c98>0x1?void 0x0:_0x168c98?_0x33a891(_0x130591,_0x3786c5):_0x130591,_0x129de2=_0x1fefa9['length']-0x1,_0x2f3006;_0x129de2>=0x0;_0x129de2--)(_0x2f3006=_0x1fefa9[_0x129de2])&&(_0x29a9d0=_0x2f3006(_0x29a9d0)||_0x29a9d0);return _0x29a9d0;},_0x91a780=(_0x5c3ac6,_0x361de0)=>(_0x347340,_0x31d981)=>_0x361de0(_0x347340,_0x31d981,_0x5c3ac6),_0x45eec5=(_0x754153,_0x1111d4,_0x1e2580)=>_0x4f899b(_0x754153,typeof _0x1111d4!=_0x5ee196(0x21b)?_0x1111d4+'':_0x1111d4,_0x1e2580);const _0x3a480c=_0x5ee196(0x22e);_0x58e433[_0x5ee196(0x229)]=class extends _0x367506[_0x5ee196(0x1ca)]{constructor(_0x51a816=_0x323061,_0x51c120,_0x5d0fd3){const _0x52ed02=_0x5ee196;super(),this[_0x52ed02(0x1d7)]=_0x51a816,this[_0x52ed02(0x15d)]=_0x51c120,this[_0x52ed02(0x17e)]=_0x5d0fd3;const {..._0x494341}=_0x367506[_0x52ed02(0x1be)]({},_0x323061,this[_0x52ed02(0x1d7)]);this['_configService'][_0x52ed02(0x1b1)](_0x4fbf9f,_0x494341);}[_0x5ee196(0x1fc)](){const _0x4eaec7=_0x5ee196;_0x367506[_0x4eaec7(0x1fa)](this[_0x4eaec7(0x15d)],_0x367506[_0x4eaec7(0x1c5)]([[_0x5f5b0c],[_0x58e433['LiveShareController']],[_0xca94c1],[_0x58e433[_0x4eaec7(0x1bc)]]],this[_0x4eaec7(0x1d7)][_0x4eaec7(0x1d5)])),_0x367506[_0x4eaec7(0x1f7)](this['_injector'],[[_0xca94c1]]);}[_0x5ee196(0x164)](){const _0x3cb91=_0x5ee196;_0x367506[_0x3cb91(0x1f7)](this['_injector'],[[_0x58e433[_0x3cb91(0x1bc)]]]);}},_0x45eec5(_0x58e433['UniverLiveSharePlugin'],_0x5ee196(0x1ce),_0x367506[_0x5ee196(0x21d)][_0x5ee196(0x239)]),_0x45eec5(_0x58e433['UniverLiveSharePlugin'],_0x5ee196(0x1f9),_0x3a480c),_0x58e433[_0x5ee196(0x229)]=_0x314900([_0x367506['DependentOn'](_0x41d7d3['UniverCollaborationClientPlugin']),_0x91a780(0x1,_0x367506[_0x5ee196(0x205)](_0x367506['Injector'])),_0x91a780(0x2,_0x367506[_0x5ee196(0x15a)])],_0x58e433[_0x5ee196(0x229)]),_0x58e433['LiveShare']=_0x46904a,_0x58e433[_0x5ee196(0x189)]=_0x5f5b0c,_0x58e433[_0x5ee196(0x17c)]=_0x38cfeb,Object[_0x5ee196(0x17d)](_0x58e433,Symbol[_0x5ee196(0x200)],{'value':_0x5ee196(0x16e)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.1.1",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/sheets": "0.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.16.0",
|
|
61
|
+
"@univerjs/core": "0.16.0",
|
|
62
|
+
"@univerjs/sheets": "0.16.0",
|
|
63
|
+
"@univerjs/ui": "0.16.0",
|
|
64
|
+
"@univerjs/sheets-ui": "0.16.0",
|
|
65
|
+
"@univerjs/design": "0.16.0",
|
|
66
|
+
"@univerjs-pro/collaboration-client": "0.16.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"postcss": "^8.5.6",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"typescript": "^5.9.3",
|
|
74
74
|
"vite": "^7.3.1",
|
|
75
75
|
"vitest": "^4.0.18",
|
|
76
|
-
"@univerjs
|
|
77
|
-
"@univerjs/
|
|
76
|
+
"@univerjs/protocol": "0.1.48",
|
|
77
|
+
"@univerjs-infra/shared": "0.16.0"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"test": "vitest run",
|