@univerjs-pro/live-share 0.19.0 → 0.20.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/types/facade/f-enum.d.ts +2 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3853c0=_0x5ae8;(function(_0x49bd2c,_0x42f7d0){const _0x86520e=_0x5ae8,_0x5504a8=_0x49bd2c();while(!![]){try{const _0x471e08=-parseInt(_0x86520e(0x1ed))/0x1*(parseInt(_0x86520e(0x1f0))/0x2)+-parseInt(_0x86520e(0x1dc))/0x3*(-parseInt(_0x86520e(0x200))/0x4)+parseInt(_0x86520e(0x1e2))/0x5*(-parseInt(_0x86520e(0x1f1))/0x6)+-parseInt(_0x86520e(0x1e7))/0x7+-parseInt(_0x86520e(0x1ea))/0x8+parseInt(_0x86520e(0x1f3))/0x9+parseInt(_0x86520e(0x1f7))/0xa*(parseInt(_0x86520e(0x1fd))/0xb);if(_0x471e08===_0x42f7d0)break;else _0x5504a8['push'](_0x5504a8['shift']());}catch(_0x3ee451){_0x5504a8['push'](_0x5504a8['shift']());}}}(_0x4725,0xc3289));let e=require(`@univerjs-pro/live-share`),t=require(`@univerjs/core`),n=require(`@univerjs/core/facade`);function r(_0x124c71){'@babel/helpers - typeof';const _0x197365=_0x5ae8;return r=typeof Symbol==_0x197365(0x1f8)&&typeof Symbol[_0x197365(0x1e3)]==_0x197365(0x205)?function(_0x27c362){return typeof _0x27c362;}:function(_0x15d419){const _0x1e0fec=_0x197365;return _0x15d419&&typeof Symbol=='function'&&_0x15d419[_0x1e0fec(0x1df)]===Symbol&&_0x15d419!==Symbol['prototype']?_0x1e0fec(0x205):typeof _0x15d419;},r(_0x124c71);}function i(_0xfa4471,_0x34491e){const _0x589f99=_0x5ae8;if(r(_0xfa4471)!=_0x589f99(0x1f4)||!_0xfa4471)return _0xfa4471;var _0x511cd6=_0xfa4471[Symbol[_0x589f99(0x202)]];if(_0x511cd6!==void 0x0){var _0x5ab995=_0x511cd6['call'](_0xfa4471,_0x34491e||_0x589f99(0x1e4));if(r(_0x5ab995)!=_0x589f99(0x1f4))return _0x5ab995;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x34491e===_0x589f99(0x1eb)?String:Number)(_0xfa4471);}function a(_0x427fcf){const _0x5e899a=_0x5ae8;var _0x4b875a=i(_0x427fcf,_0x5e899a(0x1eb));return r(_0x4b875a)==_0x5e899a(0x205)?_0x4b875a:_0x4b875a+'';}function o(_0x15505c,_0x72ed0f,_0xc993c7){const _0x2c3aac=_0x5ae8;return(_0x72ed0f=a(_0x72ed0f))in _0x15505c?Object[_0x2c3aac(0x1ff)](_0x15505c,_0x72ed0f,{'value':_0xc993c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15505c[_0x72ed0f]=_0xc993c7,_0x15505c;}function _0x5ae8(_0x448338,_0x5bee25){_0x448338=_0x448338-0x1dc;const _0x4725ba=_0x4725();let _0x5ae8b4=_0x4725ba[_0x448338];return _0x5ae8b4;}var s=class extends n[_0x3853c0(0x1f2)]{constructor(..._0xe8f205){const _0x18be25=_0x3853c0;super(..._0xe8f205),o(this,_0x18be25(0x1f6),void 0x0);}['_initialize'](_0x447290){const _0x163788=_0x3853c0;this[_0x163788(0x1f6)]=_0x447290['get'](e[_0x163788(0x1ef)]);}['getLiveShareStatus'](){const _0x249dd4=_0x3853c0;var _0x15e8a9;let _0x217b49=this[_0x249dd4(0x204)][_0x249dd4(0x201)](t[_0x249dd4(0x1ec)])['getCurrentUnitOfType'](t[_0x249dd4(0x1f5)]['UNIVER_SHEET']);if(!_0x217b49)throw Error(_0x249dd4(0x1e0));let _0x284065=_0x217b49[_0x249dd4(0x1e9)](),_0x24e7ec=this[_0x249dd4(0x1f6)][_0x249dd4(0x1fc)](_0x284065);return(_0x15e8a9=_0x24e7ec==null?void 0x0:_0x24e7ec[_0x249dd4(0x1f9)]())==null?e[_0x249dd4(0x203)][_0x249dd4(0x1e5)]:_0x15e8a9;}[_0x3853c0(0x1ee)](){const _0x129be0=_0x3853c0;let _0x58f57f=this[_0x129be0(0x204)]['get'](t[_0x129be0(0x1ec)])[_0x129be0(0x1fb)](t[_0x129be0(0x1f5)]['UNIVER_SHEET']);if(!_0x58f57f)throw Error(_0x129be0(0x1e0));let _0xe72571=_0x58f57f['getUnitId'](),_0x2eb24d=this[_0x129be0(0x1f6)][_0x129be0(0x1fc)](_0xe72571);if(!_0x2eb24d)throw Error(_0x129be0(0x1e6));_0x2eb24d[_0x129be0(0x1ee)]();}[_0x3853c0(0x1e8)](){const _0x40405f=_0x3853c0;let _0x2319d2=this['_injector'][_0x40405f(0x201)](t[_0x40405f(0x1ec)])[_0x40405f(0x1fb)](t[_0x40405f(0x1f5)][_0x40405f(0x1fe)]);if(!_0x2319d2)throw Error('No\x20active\x20workbook\x20found.');let _0x5b6e7e=_0x2319d2['getUnitId'](),_0x42b92f=this[_0x40405f(0x1f6)][_0x40405f(0x1fc)](_0x5b6e7e);if(!_0x42b92f)throw Error(_0x40405f(0x1e6));_0x42b92f[_0x40405f(0x1e8)]();}[_0x3853c0(0x1dd)](){const _0x3dd9c6=_0x3853c0;let _0x1adda9=this[_0x3dd9c6(0x204)]['get'](t[_0x3dd9c6(0x1ec)])[_0x3dd9c6(0x1fb)](t['UniverInstanceType'][_0x3dd9c6(0x1fe)]);if(!_0x1adda9)throw Error(_0x3dd9c6(0x1e0));let _0x29cbea=_0x1adda9[_0x3dd9c6(0x1e9)](),_0x1281cf=this[_0x3dd9c6(0x1f6)][_0x3dd9c6(0x1fc)](_0x29cbea);if(!_0x1281cf)throw Error(_0x3dd9c6(0x1e6));_0x1281cf['tryStartPresenting']();}[_0x3853c0(0x1e1)](){const _0x584a9=_0x3853c0;let _0x4023ec=this[_0x584a9(0x204)][_0x584a9(0x201)](t[_0x584a9(0x1ec)])[_0x584a9(0x1fb)](t[_0x584a9(0x1f5)][_0x584a9(0x1fe)]);if(!_0x4023ec)throw Error(_0x584a9(0x1e0));let _0x2c6550=_0x4023ec[_0x584a9(0x1e9)](),_0xc8af8d=this[_0x584a9(0x1f6)]['getLiveShareCoordinatorSync'](_0x2c6550);if(!_0xc8af8d)throw Error(_0x584a9(0x1e6));_0xc8af8d[_0x584a9(0x1e1)]();}};n[_0x3853c0(0x1f2)][_0x3853c0(0x1de)](s);var c=class extends n[_0x3853c0(0x1fa)]{get['LiveShareStatusEnum'](){return e['LiveShareStatus'];}};function _0x4725(){const _0x416700=['getStatus','FEnum','getCurrentUnitOfType','getLiveShareCoordinatorSync','10622414DEQQuF','UNIVER_SHEET','defineProperty','2084DWkUOo','get','toPrimitive','LiveShareStatus','_injector','symbol','5007LEXSxb','startPresenting','extend','constructor','No\x20active\x20workbook\x20found.','stopPresenting','105HyOspL','iterator','default','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','3727626Agxkuf','stopFollowing','getUnitId','6315120BLZJQN','string','IUniverInstanceService','1pygGtZ','startFollowing','LiveShareController','989218hnEIqE','138522NjxIpX','FUniver','11389410roPLND','object','UniverInstanceType','_liveShareController','10KOKLZX','function'];_0x4725=function(){return _0x416700;};return _0x4725();}n[_0x3853c0(0x1fa)][_0x3853c0(0x1de)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x72cc93=_0x40b3;(function(_0x5bd521,_0x108990){const _0x23b7e2=_0x40b3,_0x20ea82=_0x5bd521();while(!![]){try{const _0x1b3cf7=parseInt(_0x23b7e2(0x26d))/0x1+-parseInt(_0x23b7e2(0x273))/0x2*(parseInt(_0x23b7e2(0x29e))/0x3)+parseInt(_0x23b7e2(0x2a0))/0x4+-parseInt(_0x23b7e2(0x259))/0x5+parseInt(_0x23b7e2(0x22f))/0x6+parseInt(_0x23b7e2(0x218))/0x7*(parseInt(_0x23b7e2(0x260))/0x8)+-parseInt(_0x23b7e2(0x1f5))/0x9;if(_0x1b3cf7===_0x108990)break;else _0x20ea82['push'](_0x20ea82['shift']());}catch(_0x4e5ed1){_0x20ea82['push'](_0x20ea82['shift']());}}}(_0x2f39,0xbb02b),Object[_0x72cc93(0x201)](exports,Symbol[_0x72cc93(0x2ac)],{'value':'Module'}));let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`@univerjs/design`),r=require(`@univerjs/icons`),i=require(`react`),a=require(`@univerjs-pro/collaboration`),o=require(`@univerjs-pro/collaboration-client`),s=require(`@univerjs/sheets`),c=require(`rxjs`),l=require(`rxjs/operators`),u=require(`react/jsx-runtime`),d=require(`@univerjs/sheets-ui`);function f(_0x5ea520){'@babel/helpers - typeof';const _0x2ffbdd=_0x72cc93;return f=typeof Symbol==_0x2ffbdd(0x237)&&typeof Symbol[_0x2ffbdd(0x24e)]==_0x2ffbdd(0x27a)?function(_0x5dc4af){return typeof _0x5dc4af;}:function(_0x274304){const _0x590076=_0x2ffbdd;return _0x274304&&typeof Symbol==_0x590076(0x237)&&_0x274304[_0x590076(0x26b)]===Symbol&&_0x274304!==Symbol['prototype']?'symbol':typeof _0x274304;},f(_0x5ea520);}function p(_0x57c799,_0x51904d){const _0x57c2a=_0x72cc93;if(f(_0x57c799)!=_0x57c2a(0x235)||!_0x57c799)return _0x57c799;var _0x472b50=_0x57c799[Symbol[_0x57c2a(0x1f3)]];if(_0x472b50!==void 0x0){var _0x28d4a8=_0x472b50[_0x57c2a(0x20a)](_0x57c799,_0x51904d||_0x57c2a(0x298));if(f(_0x28d4a8)!='object')return _0x28d4a8;throw TypeError(_0x57c2a(0x1f6));}return(_0x51904d===_0x57c2a(0x264)?String:Number)(_0x57c799);}function m(_0x47a678){const _0x427268=_0x72cc93;var _0x548b6d=p(_0x47a678,_0x427268(0x264));return f(_0x548b6d)==_0x427268(0x27a)?_0x548b6d:_0x548b6d+'';}function h(_0x47e4ea,_0x5bb86a,_0x48a223){return(_0x5bb86a=m(_0x5bb86a))in _0x47e4ea?Object['defineProperty'](_0x47e4ea,_0x5bb86a,{'value':_0x48a223,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x47e4ea[_0x5bb86a]=_0x48a223,_0x47e4ea;}function _0x40b3(_0x5b6c3b,_0x228533){_0x5b6c3b=_0x5b6c3b-0x1f1;const _0x2f39eb=_0x2f39();let _0x40b3f9=_0x2f39eb[_0x5b6c3b];return _0x40b3f9;}var g=class extends e['Disposable']{constructor(..._0x1311cf){const _0x5e4123=_0x72cc93;super(..._0x1311cf),h(this,_0x5e4123(0x283),new Set()),h(this,_0x5e4123(0x24f),new Set());}[_0x72cc93(0x236)](_0x17d92f){const _0xfbb7ab=_0x72cc93;return this[_0xfbb7ab(0x283)][_0xfbb7ab(0x21c)](_0x17d92f),(0x0,e['toDisposable'])(()=>this[_0xfbb7ab(0x283)][_0xfbb7ab(0x272)](_0x17d92f));}[_0x72cc93(0x231)](_0x5f159a){const _0x23fa86=_0x72cc93;return this['_reporters']['add'](_0x5f159a),(0x0,e['toDisposable'])(()=>this[_0x23fa86(0x24f)][_0x23fa86(0x272)](_0x5f159a));}['shouldShareOperation'](_0x11751d){return this['_sharedOperations']['has'](_0x11751d);}['getInitialStates'](_0x4c52c3){const _0x3f0b30=_0x72cc93;return Array['from'](this['_reporters'])[_0x3f0b30(0x200)](_0x28d7a5=>_0x28d7a5(_0x4c52c3));}};function _(_0x3781f5,_0x4c70b7){return function(_0x2cfeef,_0x4e46df){_0x4c70b7(_0x2cfeef,_0x4e46df,_0x3781f5);};}function v(_0x3464d0,_0xa9a613,_0x435492,_0x10cf33){const _0x5caa8f=_0x72cc93;var _0x319229=arguments[_0x5caa8f(0x22b)],_0x6a180a=_0x319229<0x3?_0xa9a613:_0x10cf33===null?_0x10cf33=Object[_0x5caa8f(0x292)](_0xa9a613,_0x435492):_0x10cf33,_0xa10f4;if(typeof Reflect==_0x5caa8f(0x235)&&typeof Reflect[_0x5caa8f(0x2a8)]==_0x5caa8f(0x237))_0x6a180a=Reflect[_0x5caa8f(0x2a8)](_0x3464d0,_0xa9a613,_0x435492,_0x10cf33);else{for(var _0x2db007=_0x3464d0[_0x5caa8f(0x22b)]-0x1;_0x2db007>=0x0;_0x2db007--)(_0xa10f4=_0x3464d0[_0x2db007])&&(_0x6a180a=(_0x319229<0x3?_0xa10f4(_0x6a180a):_0x319229>0x3?_0xa10f4(_0xa9a613,_0x435492,_0x6a180a):_0xa10f4(_0xa9a613,_0x435492))||_0x6a180a);}return _0x319229>0x3&&_0x6a180a&&Object['defineProperty'](_0xa9a613,_0x435492,_0x6a180a),_0x6a180a;}let y=class extends e['RxDisposable']{constructor(_0x83946e,_0x1e2030,_0x22d509){const _0x5b2d0a=_0x72cc93;super(),this[_0x5b2d0a(0x2af)]=_0x83946e,this[_0x5b2d0a(0x28a)]=_0x1e2030,this['_collabSessionService']=_0x22d509,h(this,_0x5b2d0a(0x270),new Map()),this[_0x5b2d0a(0x265)]();}async['getLiveShareCoordinator'](_0x56f35c){const _0x339931=_0x72cc93;return this[_0x339931(0x270)]['has'](_0x56f35c)||await this[_0x339931(0x2ab)](_0x56f35c),this[_0x339931(0x270)][_0x339931(0x269)](_0x56f35c);}[_0x72cc93(0x228)](_0x31614c){const _0x5476d4=_0x72cc93;var _0x252d66;return(_0x252d66=this[_0x5476d4(0x270)][_0x5476d4(0x269)](_0x31614c))==null?null:_0x252d66;}[_0x72cc93(0x265)](){const _0x3e3a3e=_0x72cc93;this[_0x3e3a3e(0x2af)][_0x3e3a3e(0x2aa)](e['UniverInstanceType']['UNIVER_SHEET'])[_0x3e3a3e(0x2ad)]((0x0,l['takeUntil'])(this[_0x3e3a3e(0x24d)]))['subscribe'](async _0x14a9a5=>{const _0x5b620d=_0x3e3a3e;let _0x1cd817=_0x14a9a5[_0x5b620d(0x1f2)]();this[_0x5b620d(0x270)]['has'](_0x1cd817)||this['_startLiveShareCoordinator'](_0x1cd817);}),this[_0x3e3a3e(0x2af)][_0x3e3a3e(0x27e)](e[_0x3e3a3e(0x221)][_0x3e3a3e(0x234)])[_0x3e3a3e(0x2ad)]((0x0,l[_0x3e3a3e(0x239)])(this[_0x3e3a3e(0x24d)]))[_0x3e3a3e(0x27b)](_0xf46bfe=>{const _0xb4ee5a=_0x3e3a3e;let _0x3f8cea=_0xf46bfe['getUnitId'](),_0x3142c0=this[_0xb4ee5a(0x270)][_0xb4ee5a(0x269)](_0x3f8cea);_0x3142c0==null||_0x3142c0[_0xb4ee5a(0x293)]();});}async[_0x72cc93(0x2ab)](_0x569b47){const _0x1cf469=_0x72cc93;let _0x1c1845=await this[_0x1cf469(0x22e)]['requireSession'](_0x569b47),_0x35e4bc=this[_0x1cf469(0x28a)]['createInstance'](x,_0x569b47,_0x1c1845);return _0x35e4bc[_0x1cf469(0x232)](),this[_0x1cf469(0x270)][_0x1cf469(0x271)](_0x569b47,_0x35e4bc),_0x35e4bc;}};y=v([_(0x0,e['IUniverInstanceService']),_(0x1,(0x0,e[_0x72cc93(0x1f4)])(e['Injector'])),_(0x2,(0x0,e[_0x72cc93(0x1f4)])(o[_0x72cc93(0x27f)]))],y);let b=function(_0x2f36b5){const _0x58fa34=_0x72cc93;return _0x2f36b5['OFFLINE']=_0x58fa34(0x2a5),_0x2f36b5[_0x58fa34(0x261)]=_0x58fa34(0x28d),_0x2f36b5[_0x58fa34(0x26e)]=_0x58fa34(0x1f1),_0x2f36b5[_0x58fa34(0x214)]=_0x58fa34(0x243),_0x2f36b5[_0x58fa34(0x25c)]=_0x58fa34(0x248),_0x2f36b5;}({}),x=class extends e[_0x72cc93(0x246)]{get[_0x72cc93(0x279)](){const _0x48d80f=_0x72cc93;return this[_0x48d80f(0x240)][_0x48d80f(0x28e)]();}constructor(_0x33e16a,_0x2c8042,_0x4040ba,_0x46bcfe,_0x49dce5){const _0x3105c5=_0x72cc93;super(),this[_0x3105c5(0x225)]=_0x33e16a,this[_0x3105c5(0x2a1)]=_0x2c8042,this[_0x3105c5(0x2a7)]=_0x4040ba,this[_0x3105c5(0x210)]=_0x46bcfe,this[_0x3105c5(0x262)]=_0x49dce5,h(this,_0x3105c5(0x240),new c[(_0x3105c5(0x226))](b[_0x3105c5(0x261)])),h(this,_0x3105c5(0x1f8),this[_0x3105c5(0x240)][_0x3105c5(0x25a)]()),h(this,'_init',!0x1),h(this,'_commandDisposable',null),h(this,_0x3105c5(0x26c),null);}[_0x72cc93(0x293)](){const _0x21e628=_0x72cc93;var _0x2db859;(_0x2db859=this[_0x21e628(0x20b)])==null||_0x2db859[_0x21e628(0x293)](),this[_0x21e628(0x240)]['next'](b[_0x21e628(0x261)]),this[_0x21e628(0x240)]['complete']();}[_0x72cc93(0x1fe)](){const _0x3f72e0=_0x72cc93;return this[_0x3f72e0(0x279)];}[_0x72cc93(0x232)](){const _0xe30b7=_0x72cc93;this[_0xe30b7(0x265)]||(this[_0xe30b7(0x265)]=!0x0,this[_0xe30b7(0x2a1)][_0xe30b7(0x204)][_0xe30b7(0x2ad)]((0x0,l[_0xe30b7(0x239)])(this[_0xe30b7(0x24d)]))[_0xe30b7(0x27b)](_0x450aaf=>{const _0x59afe0=_0xe30b7;switch(_0x450aaf){case o[_0x59afe0(0x278)]['OFFLINE']:this[_0x59afe0(0x20f)]();break;case o[_0x59afe0(0x278)][_0x59afe0(0x267)]:this[_0x59afe0(0x206)]();break;default:}}),this['_collabSession'][_0xe30b7(0x1fd)][_0xe30b7(0x2ad)]((0x0,l[_0xe30b7(0x239)])(this['dispose$']))[_0xe30b7(0x27b)](_0x50d35e=>{const _0xda968f=_0xe30b7;let {eventID:_0x4f3089}=_0x50d35e;switch(_0x4f3089){case a[_0xda968f(0x222)][_0xda968f(0x23a)]:this['_handleNewHost'](_0x50d35e);break;case a[_0xda968f(0x222)][_0xda968f(0x284)]:this['_handleOperation'](_0x50d35e);break;case a[_0xda968f(0x222)][_0xda968f(0x244)]:this[_0xda968f(0x217)]();break;case a[_0xda968f(0x222)][_0xda968f(0x219)]:this['_handleNewChangeSets'](_0x50d35e);break;default:}}));}['tryStartPresenting'](){const _0x2c8cb7=_0x72cc93;this[_0x2c8cb7(0x2a1)]['send']({'eventID':a[_0x2c8cb7(0x222)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2c8cb7(0x208)]()}},this['_unitID']);}['stopPresenting'](){const _0x5740ab=_0x72cc93;this[_0x5740ab(0x279)]===b[_0x5740ab(0x25c)]&&(this[_0x5740ab(0x240)][_0x5740ab(0x277)](b[_0x5740ab(0x261)]),this['_collabSession'][_0x5740ab(0x28f)]({'eventID':a[_0x5740ab(0x222)][_0x5740ab(0x244)],'data':{'unitID':this[_0x5740ab(0x225)]}},this[_0x5740ab(0x225)]));}['startFollowing'](){const _0xf473a3=_0x72cc93;this[_0xf473a3(0x279)]===b[_0xf473a3(0x214)]&&(this['_status$'][_0xf473a3(0x277)](b[_0xf473a3(0x26e)]),this[_0xf473a3(0x276)]());}['stopFollowing'](){const _0x311c67=_0x72cc93;this[_0x311c67(0x279)]===b['FOLLOWING']&&this[_0x311c67(0x256)]();}[_0x72cc93(0x1fb)](_0x48e5d4){const _0x17c94c=_0x72cc93;let {presenter:_0x46383f}=_0x48e5d4[_0x17c94c(0x211)],_0x496db5=this['_collabSession'][_0x17c94c(0x208)]();this[_0x17c94c(0x26c)]=_0x46383f,_0x46383f===_0x496db5?(this['_stopFollowing'](),this[_0x17c94c(0x2a9)]()):this[_0x17c94c(0x279)]!==b[_0x17c94c(0x214)]&&(this[_0x17c94c(0x22c)](),this[_0x17c94c(0x276)]());}[_0x72cc93(0x297)](){const _0x89f71=_0x72cc93;let _0x44f024={'eventID':a[_0x89f71(0x222)][_0x89f71(0x281)]};this[_0x89f71(0x2a1)][_0x89f71(0x28f)](_0x44f024,this[_0x89f71(0x225)]);}['_handleTerminate'](){const _0x1443fa=_0x72cc93;this[_0x1443fa(0x26c)]=null,this[_0x1443fa(0x279)]!==b['PRESENTING']&&this[_0x1443fa(0x25e)]();}[_0x72cc93(0x23e)](_0x1ba8af){const _0x4d221a=_0x72cc93;if(this[_0x4d221a(0x279)]===b['FOLLOWING']&&this[_0x4d221a(0x26c)]===_0x1ba8af[_0x4d221a(0x211)][_0x4d221a(0x25f)]){let _0xd8534e=(0x0,a[_0x4d221a(0x230)])(_0x1ba8af[_0x4d221a(0x211)])[_0x4d221a(0x1ff)][_0x4d221a(0x24c)]()[_0x4d221a(0x288)](_0x27d1af=>_0x27d1af['id']===s[_0x4d221a(0x223)]['id']);if(_0xd8534e){let _0x4c567d=_0xd8534e[_0x4d221a(0x249)][_0x4d221a(0x27d)],_0x36ea33=_0xd8534e[_0x4d221a(0x249)]['sheet']['id'];setTimeout(()=>{const _0x3f616b=_0x4d221a;this[_0x3f616b(0x262)][_0x3f616b(0x295)](s[_0x3f616b(0x229)]['id'],{'unitId':_0x4c567d,'subUnitId':_0x36ea33},{'fromCollab':!0x0});});}}}[_0x72cc93(0x2a9)](){const _0x2b5f1b=_0x72cc93;this['_status$'][_0x2b5f1b(0x277)](b['PRESENTING']);let _0x348137=new Map(),_0x38ec74=this['_commandDisposable']=new e[(_0x2b5f1b(0x23c))]();_0x38ec74[_0x2b5f1b(0x21c)]((0x0,e['toDisposable'])(()=>{const _0xfa5abe=_0x2b5f1b;_0x348137[_0xfa5abe(0x20c)](_0x19b451=>_0x19b451[_0xfa5abe(0x21f)]()),_0x348137[_0xfa5abe(0x1fa)]();})),_0x38ec74[_0x2b5f1b(0x21c)](this[_0x2b5f1b(0x262)]['onCommandExecuted'](_0x321c39=>{const _0x453b25=_0x2b5f1b;if(_0x321c39[_0x453b25(0x266)]!==e[_0x453b25(0x29d)][_0x453b25(0x25b)]||!this[_0x453b25(0x210)][_0x453b25(0x290)](_0x321c39['id']))return;let {id:_0x3ad993}=_0x321c39,_0x560671;if(_0x348137['has'](_0x3ad993))_0x560671=_0x348137[_0x453b25(0x269)](_0x3ad993);else{var _0x3ec95a;_0x560671=new c['Subject'](),_0x348137[_0x453b25(0x271)](_0x3ad993,_0x560671),_0x560671[_0x453b25(0x2ad)]((0x0,l[_0x453b25(0x29a)])((_0x3ec95a=this[_0x453b25(0x2a7)][_0x453b25(0x21e)](_0x453b25(0x21b)))==null?0xc8:_0x3ec95a,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x453b25(0x27b)](_0x15990d=>{const _0x10afe2=_0x453b25;this[_0x10afe2(0x2a1)]['send']({'eventID':a['CollaborationEvent'][_0x10afe2(0x284)],'data':{'unitID':this[_0x10afe2(0x225)],'operations':{[_0x15990d['id']]:{'id':_0x15990d['id'],'params':JSON[_0x10afe2(0x24a)](_0x15990d['params'])}}}},this[_0x10afe2(0x225)]);});}_0x560671[_0x453b25(0x277)](_0x321c39);})),this['_liveShareService'][_0x2b5f1b(0x23f)](this[_0x2b5f1b(0x225)])[_0x2b5f1b(0x20c)](_0x3c5e65=>this['_collabSession']['send']({'eventID':a['CollaborationEvent'][_0x2b5f1b(0x284)],'data':{'unitID':this[_0x2b5f1b(0x225)],'operations':{[_0x3c5e65['id']]:{'id':_0x3c5e65['id'],'params':JSON[_0x2b5f1b(0x24a)](_0x3c5e65[_0x2b5f1b(0x249)])}}}},this[_0x2b5f1b(0x225)]));}[_0x72cc93(0x22c)](){const _0xfeb222=_0x72cc93;var _0x3b521a;this['_status$'][_0xfeb222(0x277)](b[_0xfeb222(0x261)]),(_0x3b521a=this['_commandDisposable'])==null||_0x3b521a[_0xfeb222(0x293)](),this[_0xfeb222(0x20b)]=null;}[_0x72cc93(0x276)](){const _0x57a1df=_0x72cc93;var _0x33e3a0;(_0x33e3a0=this['_commandDisposable'])==null||_0x33e3a0[_0x57a1df(0x293)](),this[_0x57a1df(0x240)][_0x57a1df(0x277)](b[_0x57a1df(0x26e)]);}['_beIdle'](){const _0x28e1cf=_0x72cc93;var _0x6351d1;this[_0x28e1cf(0x240)][_0x28e1cf(0x277)](b[_0x28e1cf(0x261)]),(_0x6351d1=this['_commandDisposable'])==null||_0x6351d1[_0x28e1cf(0x293)](),this[_0x28e1cf(0x20b)]=null;}[_0x72cc93(0x256)](){const _0x53956b=_0x72cc93;var _0xd0e9f;this[_0x53956b(0x240)]['next'](b[_0x53956b(0x214)]),(_0xd0e9f=this[_0x53956b(0x20b)])==null||_0xd0e9f[_0x53956b(0x293)]();}[_0x72cc93(0x296)](_0x1a8ac7){const _0xd94239=_0x72cc93;if([b['PRESENTING'],b[_0xd94239(0x214)],b[_0xd94239(0x2ae)]][_0xd94239(0x26f)](this[_0xd94239(0x279)])||!_0x1a8ac7['data'][_0xd94239(0x216)]||_0x1a8ac7[_0xd94239(0x211)][_0xd94239(0x216)]===this[_0xd94239(0x2a1)][_0xd94239(0x208)]())return;this[_0xd94239(0x279)]===b[_0xd94239(0x261)]&&this[_0xd94239(0x276)]();let _0x32963a=_0x1a8ac7[_0xd94239(0x211)][_0xd94239(0x20d)];Object[_0xd94239(0x238)](_0x32963a)['forEach'](_0x43d93f=>{const _0x5aed99=_0xd94239;this[_0x5aed99(0x262)][_0x5aed99(0x295)](_0x43d93f['id'],_0x43d93f[_0x5aed99(0x249)]?JSON[_0x5aed99(0x254)](_0x43d93f[_0x5aed99(0x249)]):null,{'fromCollab':!0x0});});}[_0x72cc93(0x20f)](){const _0x54f1a0=_0x72cc93;var _0xdcf166;this[_0x54f1a0(0x240)][_0x54f1a0(0x277)](b[_0x54f1a0(0x2ae)]),(_0xdcf166=this[_0x54f1a0(0x20b)])==null||_0xdcf166[_0x54f1a0(0x293)]();}[_0x72cc93(0x206)](){const _0x5d645d=_0x72cc93;this[_0x5d645d(0x240)][_0x5d645d(0x277)](b[_0x5d645d(0x261)]),this[_0x5d645d(0x297)]();}};x=v([_(0x2,e[_0x72cc93(0x258)]),_(0x3,(0x0,e[_0x72cc93(0x1f4)])(g)),_(0x4,e[_0x72cc93(0x268)])],x);function S(){const _0x22d232=_0x72cc93;let _0x397ed6=(0x0,t['useDependency'])(y),_0xfca0de=(0x0,t[_0x22d232(0x247)])(e[_0x22d232(0x207)]),_0x3d9461=(0x0,t['useObservable'])(()=>_0xfca0de[_0x22d232(0x29f)](e['UniverInstanceType'][_0x22d232(0x234)]),void 0x0,!0x1,[]),[_0x2e3fbb,_0x57ccd0]=(0x0,i[_0x22d232(0x213)])(null),[_0x428b77,_0x2b21f2]=(0x0,i['useState'])(b[_0x22d232(0x261)]),_0x1b88c5=(0x0,i['useRef'])(null);return(0x0,i['useEffect'])(()=>(_0x3d9461&&_0x397ed6[_0x22d232(0x1fc)](_0x3d9461['getUnitId']())['then'](_0x8ac904=>{const _0x2767ef=_0x22d232;_0x57ccd0(_0x8ac904),_0x1b88c5['current']=_0x8ac904[_0x2767ef(0x1f8)][_0x2767ef(0x27b)](_0x59b795=>{_0x2b21f2(_0x59b795);});}),()=>{const _0x26bd83=_0x22d232;var _0x26c8c4;(_0x26c8c4=_0x1b88c5[_0x26bd83(0x220)])==null||_0x26c8c4[_0x26bd83(0x1f9)](),_0x1b88c5['current']=null;}),[_0x3d9461,_0x397ed6]),_0x2e3fbb?(0x0,u[_0x22d232(0x2a4)])(n[_0x22d232(0x287)],{'align':_0x22d232(0x203),'disabled':_0x428b77===b[_0x22d232(0x2ae)],'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':(0x0,u[_0x22d232(0x2a4)])(C,{'status':_0x428b77,'coordinator':_0x2e3fbb}),'children':(0x0,u[_0x22d232(0x2a4)])(_0x22d232(0x289),{'className':(0x0,n['clsx'])(_0x22d232(0x294),{'univer-cursor-not-allowed':_0x428b77===b[_0x22d232(0x2ae)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x428b77!==b[_0x22d232(0x2ae)]}),'type':_0x22d232(0x289),'children':(0x0,u['jsx'])(r[_0x22d232(0x251)],{'className':'univer-size-4'})})}):null;}function C(_0x36da99){const _0x414798=_0x72cc93;let {status:_0x388a2b,coordinator:_0x2340ea}=_0x36da99;switch(_0x388a2b){case b[_0x414798(0x261)]:return(0x0,u[_0x414798(0x2a4)])(w,{'coordinator':_0x2340ea});case b[_0x414798(0x26e)]:return(0x0,u[_0x414798(0x2a4)])(T,{'coordinator':_0x2340ea});case b[_0x414798(0x214)]:return(0x0,u['jsx'])(E,{'coordinator':_0x2340ea});case b[_0x414798(0x2ae)]:return(0x0,u['jsx'])(O,{});case b['PRESENTING']:return(0x0,u['jsx'])(D,{'coordinator':_0x2340ea});default:return null;}}function w(_0x34e5ca){const _0x10ede2=_0x72cc93;let {coordinator:_0x43116a}=_0x34e5ca;return(0x0,u[_0x10ede2(0x21a)])(u['Fragment'],{'children':[(0x0,u[_0x10ede2(0x2a4)])(_0x10ede2(0x27c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x10ede2(0x253)}),(0x0,u[_0x10ede2(0x2a4)])(n[_0x10ede2(0x250)],{'onClick':()=>_0x43116a[_0x10ede2(0x25d)](),'children':'Start'})]});}function T(_0x4a8c85){const _0x3fee4b=_0x72cc93;let {coordinator:_0x5ca3e6}=_0x4a8c85;return(0x0,u[_0x3fee4b(0x21a)])(u[_0x3fee4b(0x227)],{'children':[(0x0,u[_0x3fee4b(0x2a4)])(_0x3fee4b(0x27c),{'className':_0x3fee4b(0x280),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u[_0x3fee4b(0x2a4)])(n[_0x3fee4b(0x250)],{'onClick':()=>_0x5ca3e6[_0x3fee4b(0x24b)](),'children':'Stop\x20following'})]});}function E(_0x31fc5b){const _0x106d8b=_0x72cc93;let {coordinator:_0x4bef57}=_0x31fc5b;return(0x0,u[_0x106d8b(0x21a)])(u['Fragment'],{'children':[(0x0,u[_0x106d8b(0x2a4)])(_0x106d8b(0x27c),{'className':_0x106d8b(0x280),'children':_0x106d8b(0x29b)}),(0x0,u[_0x106d8b(0x2a4)])(n[_0x106d8b(0x250)],{'variant':_0x106d8b(0x23d),'onClick':()=>_0x4bef57[_0x106d8b(0x28c)](),'children':_0x106d8b(0x22d)})]});}function D(_0xc070d0){const _0x1bec47=_0x72cc93;let {coordinator:_0x294c12}=_0xc070d0;return(0x0,u['jsxs'])(u[_0x1bec47(0x227)],{'children':[(0x0,u['jsx'])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1bec47(0x291)}),(0x0,u['jsx'])(n[_0x1bec47(0x250)],{'variant':'default','onClick':()=>_0x294c12['stopPresenting'](),'children':_0x1bec47(0x20e)})]});}function O(){const _0x15d4da=_0x72cc93;return(0x0,u[_0x15d4da(0x2a4)])(u['Fragment'],{'children':'You\x27are\x20offline.'});}let k=class extends e[_0x72cc93(0x212)]{constructor(_0x4acbd0,_0x210a3d){const _0x44fbf3=_0x72cc93;super(),this[_0x44fbf3(0x28a)]=_0x4acbd0,this[_0x44fbf3(0x245)]=_0x210a3d,this[_0x44fbf3(0x252)]();}['_mountLiveShare'](){const _0x419b14=_0x72cc93;this['disposeWithMe'](this[_0x419b14(0x245)][_0x419b14(0x202)](t[_0x419b14(0x299)]['HEADER_MENU'],()=>(0x0,t['connectInjector'])(S,this[_0x419b14(0x28a)])));}};k=v([_(0x0,(0x0,e[_0x72cc93(0x1f4)])(e['Injector'])),_(0x1,t[_0x72cc93(0x26a)])],k);var A=_0x72cc93(0x28b),j='0.19.0';const M=_0x72cc93(0x215);Symbol(M);const N={};let P=class extends e[_0x72cc93(0x212)]{constructor(_0x5d8939){const _0x12a070=_0x72cc93;super(),this[_0x12a070(0x210)]=_0x5d8939,this['_init']();}[_0x72cc93(0x265)](){const _0x3e66cf=_0x72cc93;[d[_0x3e66cf(0x257)]['id'],d['SetScrollOperation']['id'],s[_0x3e66cf(0x229)]['id']][_0x3e66cf(0x20c)](_0x319880=>{const _0x4b6287=_0x3e66cf;this[_0x4b6287(0x286)](this[_0x4b6287(0x210)][_0x4b6287(0x236)](_0x319880));});}};P=v([_(0x0,(0x0,e['Inject'])(g))],P);let F=class extends e[_0x72cc93(0x285)]{constructor(_0x2ee3e3=N,_0x5f2b64,_0x4357df){const _0x4d851b=_0x72cc93;super(),this[_0x4d851b(0x282)]=_0x2ee3e3,this[_0x4d851b(0x28a)]=_0x5f2b64,this[_0x4d851b(0x2a7)]=_0x4357df;let {..._0x182430}=(0x0,e[_0x4d851b(0x242)])({},N,this['_config']);this[_0x4d851b(0x2a7)][_0x4d851b(0x29c)](M,_0x182430);}[_0x72cc93(0x274)](){const _0x1f62df=_0x72cc93;(0x0,e[_0x1f62df(0x2a6)])(this[_0x1f62df(0x28a)],(0x0,e['mergeOverrideWithDependencies'])([[g],[y],[P],[k]],this[_0x1f62df(0x282)][_0x1f62df(0x205)])),(0x0,e['touchDependencies'])(this[_0x1f62df(0x28a)],[[P]]);}[_0x72cc93(0x233)](){const _0x5bb10d=_0x72cc93;(0x0,e['touchDependencies'])(this[_0x5bb10d(0x28a)],[[k]]);}};function _0x2f39(){const _0x31eeb0=['tryStartPresenting','_beIdle','memberID','4256qNZbdw','IDLE','_commandService','DesktopLiveShareController','string','_init','type','ONLINE','ICommandService','get','IUIPartsService','constructor','_presenter','1154396ICeOAI','FOLLOWING','includes','_entities','set','delete','12htIQrg','onStarting','LiveShareCoordinator','_startFollowing','next','SessionStatus','_status','symbol','subscribe','div','unitId','getTypeOfUnitDisposed$','CollaborationSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','_config','_sharedOperations','LIVESHARE_OPERATION','Plugin','disposeWithMe','Dropdown','find','button','_injector','@univerjs-pro/live-share','startFollowing','idle','getValue','send','shouldShareOperation','You\x27re\x20presenting\x20the\x20document','getOwnPropertyDescriptor','dispose','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','_handleOperation','_fetchOperations','default','BuiltInUIPart','throttleTime','You\x27re\x20not\x20following\x20the\x20presenter','setConfig','CommandType','339870HhbMyL','getCurrentTypeOfUnit$','4596216kTSTuF','_collabSession','version','LiveShareStatus','jsx','offline','registerDependencies','_configService','decorate','_startPresenting','getTypeOfUnitAdded$','_startLiveShareCoordinator','toStringTag','pipe','OFFLINE','_univerInstanceService','following','getUnitId','toPrimitive','Inject','11046618hnVXbI','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_LIVE_SHARE_PLUGIN','status$','unsubscribe','clear','_handleNewHost','getLiveShareCoordinator','event$','getStatus','mutations','map','defineProperty','registerComponent','end','sessionStatus$','override','_handleOnline','IUniverInstanceService','getMemberID','UNIVER_UNKNOWN','call','_commandDisposable','forEach','operations','Stop\x20presenting','_handleOffline','_liveShareService','data','Disposable','useState','NOT_FOLLOWING','live-share.config','presenter','_handleTerminate','10577mhNBUZ','NEW_CHANGESETS','jsxs','SAME_OPERATION_SHARE_INTERVAL','add','UniverCollaborationClientPlugin','getConfig','complete','current','UniverInstanceType','CollaborationEvent','InsertSheetMutation','LiveShareService','_unitID','BehaviorSubject','Fragment','getLiveShareCoordinatorSync','SetWorksheetActiveOperation','DependentOn','length','_stopPresenting','Start\x20following','_collabSessionService','1821768xbrbZJ','parseProtocolChangeset','registerInitialStateReporter','init','onRendered','UNIVER_SHEET','object','registerSharedOperation','function','values','takeUntil','LIVESHARE_NEW_HOST','Injector','DisposableCollection','text','_handleNewChangeSets','getInitialStates','_status$','pluginName','merge','not-following','LIVESHARE_TERMINATE','_uiPartsService','RxDisposable','useDependency','presenting','params','stringify','stopFollowing','reverse','dispose$','iterator','_reporters','Button','LiveShareIcon','_mountLiveShare','Present\x20this\x20document','parse','packageName','_stopFollowing','SetZoomRatioOperation','IConfigService','3688965OrOfBp','asObservable','OPERATION','PRESENTING'];_0x2f39=function(){return _0x31eeb0;};return _0x2f39();}h(F,_0x72cc93(0x266),e[_0x72cc93(0x221)][_0x72cc93(0x209)]),h(F,_0x72cc93(0x241),_0x72cc93(0x1f7)),h(F,_0x72cc93(0x255),A),h(F,_0x72cc93(0x2a2),j),F=v([(0x0,e[_0x72cc93(0x22a)])(o[_0x72cc93(0x21d)]),_(0x1,(0x0,e[_0x72cc93(0x1f4)])(e[_0x72cc93(0x23b)])),_(0x2,e[_0x72cc93(0x258)])],F),Object['defineProperty'](exports,_0x72cc93(0x263),{'enumerable':!0x0,'get':function(){return k;}}),exports['LiveShare']=S,Object[_0x72cc93(0x201)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x72cc93(0x201)](exports,_0x72cc93(0x275),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x72cc93(0x224)]=g,exports[_0x72cc93(0x2a3)]=b,Object['defineProperty'](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return F;}});
|
|
1
|
+
const _0xd9c5f4=_0x2074;(function(_0x4416dc,_0x2e729d){const _0x2e251e=_0x2074,_0x30bee5=_0x4416dc();while(!![]){try{const _0x5008e4=-parseInt(_0x2e251e(0xc5))/0x1*(parseInt(_0x2e251e(0xf3))/0x2)+parseInt(_0x2e251e(0xe0))/0x3+parseInt(_0x2e251e(0xbf))/0x4+parseInt(_0x2e251e(0xf4))/0x5*(-parseInt(_0x2e251e(0xbe))/0x6)+-parseInt(_0x2e251e(0x101))/0x7*(parseInt(_0x2e251e(0xcb))/0x8)+-parseInt(_0x2e251e(0x135))/0x9+-parseInt(_0x2e251e(0xed))/0xa*(-parseInt(_0x2e251e(0xd1))/0xb);if(_0x5008e4===_0x2e729d)break;else _0x30bee5['push'](_0x30bee5['shift']());}catch(_0x1b3bbd){_0x30bee5['push'](_0x30bee5['shift']());}}}(_0x4752,0x7a469),Object['defineProperty'](exports,Symbol[_0xd9c5f4(0x159)],{'value':_0xd9c5f4(0xcf)}));let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`@univerjs/design`),r=require(`@univerjs/icons`),i=require(`react`),a=require(`@univerjs-pro/collaboration`),o=require(`@univerjs-pro/collaboration-client`),s=require(`@univerjs/sheets`),c=require(`rxjs`),l=require(`rxjs/operators`),u=require(`react/jsx-runtime`),d=require(`@univerjs/sheets-ui`);function f(_0x4bcfd0){'@babel/helpers - typeof';const _0x438251=_0xd9c5f4;return f=typeof Symbol==_0x438251(0x10b)&&typeof Symbol[_0x438251(0x12c)]=='symbol'?function(_0x6a4a9f){return typeof _0x6a4a9f;}:function(_0x320f46){const _0xc4c6e2=_0x438251;return _0x320f46&&typeof Symbol=='function'&&_0x320f46[_0xc4c6e2(0x110)]===Symbol&&_0x320f46!==Symbol[_0xc4c6e2(0x13e)]?'symbol':typeof _0x320f46;},f(_0x4bcfd0);}function p(_0x14fab8,_0x55713d){const _0xd6f059=_0xd9c5f4;if(f(_0x14fab8)!=_0xd6f059(0x11d)||!_0x14fab8)return _0x14fab8;var _0x5e8653=_0x14fab8[Symbol[_0xd6f059(0xe1)]];if(_0x5e8653!==void 0x0){var _0x569c59=_0x5e8653[_0xd6f059(0xdb)](_0x14fab8,_0x55713d||_0xd6f059(0xff));if(f(_0x569c59)!='object')return _0x569c59;throw TypeError(_0xd6f059(0x13b));}return(_0x55713d==='string'?String:Number)(_0x14fab8);}function m(_0x225141){const _0x419c57=_0xd9c5f4;var _0x10b6e5=p(_0x225141,_0x419c57(0xfd));return f(_0x10b6e5)=='symbol'?_0x10b6e5:_0x10b6e5+'';}function h(_0x1362b8,_0x2a91a9,_0x2409aa){const _0x19f95a=_0xd9c5f4;return(_0x2a91a9=m(_0x2a91a9))in _0x1362b8?Object[_0x19f95a(0xd5)](_0x1362b8,_0x2a91a9,{'value':_0x2409aa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1362b8[_0x2a91a9]=_0x2409aa,_0x1362b8;}function _0x2074(_0x543002,_0xa66a4){_0x543002=_0x543002-0xb3;const _0x475254=_0x4752();let _0x207436=_0x475254[_0x543002];return _0x207436;}var g=class extends e[_0xd9c5f4(0x14d)]{constructor(..._0x5d02f5){const _0x2160bd=_0xd9c5f4;super(..._0x5d02f5),h(this,_0x2160bd(0x12d),new Set()),h(this,_0x2160bd(0xd6),new Set());}[_0xd9c5f4(0xdc)](_0xf32999){const _0xe03d39=_0xd9c5f4;return this[_0xe03d39(0x12d)]['add'](_0xf32999),(0x0,e[_0xe03d39(0xe3)])(()=>this[_0xe03d39(0x12d)][_0xe03d39(0xf2)](_0xf32999));}[_0xd9c5f4(0x160)](_0x34599e){const _0x1e2594=_0xd9c5f4;return this[_0x1e2594(0xd6)][_0x1e2594(0x111)](_0x34599e),(0x0,e[_0x1e2594(0xe3)])(()=>this['_reporters']['delete'](_0x34599e));}['shouldShareOperation'](_0x38096b){const _0x3877b5=_0xd9c5f4;return this[_0x3877b5(0x12d)][_0x3877b5(0xe6)](_0x38096b);}[_0xd9c5f4(0x112)](_0x1fdf1c){const _0x499e78=_0xd9c5f4;return Array['from'](this['_reporters'])[_0x499e78(0xeb)](_0x2847e5=>_0x2847e5(_0x1fdf1c));}};function _(_0x7a9fbd,_0x52d4a4){return function(_0x3b2c07,_0x46875d){_0x52d4a4(_0x3b2c07,_0x46875d,_0x7a9fbd);};}function v(_0x5c8998,_0x3a00f0,_0x55da57,_0x331af0){const _0x2ffa2d=_0xd9c5f4;var _0x475cdc=arguments[_0x2ffa2d(0x113)],_0x42361f=_0x475cdc<0x3?_0x3a00f0:_0x331af0===null?_0x331af0=Object[_0x2ffa2d(0xca)](_0x3a00f0,_0x55da57):_0x331af0,_0x594a17;if(typeof Reflect==_0x2ffa2d(0x11d)&&typeof Reflect[_0x2ffa2d(0x123)]==_0x2ffa2d(0x10b))_0x42361f=Reflect[_0x2ffa2d(0x123)](_0x5c8998,_0x3a00f0,_0x55da57,_0x331af0);else{for(var _0x35db2f=_0x5c8998[_0x2ffa2d(0x113)]-0x1;_0x35db2f>=0x0;_0x35db2f--)(_0x594a17=_0x5c8998[_0x35db2f])&&(_0x42361f=(_0x475cdc<0x3?_0x594a17(_0x42361f):_0x475cdc>0x3?_0x594a17(_0x3a00f0,_0x55da57,_0x42361f):_0x594a17(_0x3a00f0,_0x55da57))||_0x42361f);}return _0x475cdc>0x3&&_0x42361f&&Object[_0x2ffa2d(0xd5)](_0x3a00f0,_0x55da57,_0x42361f),_0x42361f;}let y=class extends e['RxDisposable']{constructor(_0x52adf1,_0x38ed3d,_0x20bac1){const _0x80482c=_0xd9c5f4;super(),this[_0x80482c(0xc9)]=_0x52adf1,this['_injector']=_0x38ed3d,this[_0x80482c(0x174)]=_0x20bac1,h(this,_0x80482c(0xbd),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0x2a3ea6){const _0x4185b2=_0xd9c5f4;return this[_0x4185b2(0xbd)][_0x4185b2(0xe6)](_0x2a3ea6)||await this[_0x4185b2(0xf9)](_0x2a3ea6),this[_0x4185b2(0xbd)][_0x4185b2(0xb5)](_0x2a3ea6);}[_0xd9c5f4(0x157)](_0x454ddd){const _0x1f50ef=_0xd9c5f4;var _0x40cdd1;return(_0x40cdd1=this[_0x1f50ef(0xbd)][_0x1f50ef(0xb5)](_0x454ddd))==null?null:_0x40cdd1;}['_init'](){const _0x2f4422=_0xd9c5f4;this['_univerInstanceService']['getTypeOfUnitAdded$'](e[_0x2f4422(0xf6)][_0x2f4422(0xc0)])[_0x2f4422(0x12a)]((0x0,l[_0x2f4422(0xc1)])(this[_0x2f4422(0xf5)]))[_0x2f4422(0x107)](async _0x26d142=>{const _0x5b0f6a=_0x2f4422;let _0xf3bf6f=_0x26d142['getUnitId']();this['_entities'][_0x5b0f6a(0xe6)](_0xf3bf6f)||this[_0x5b0f6a(0xf9)](_0xf3bf6f);}),this[_0x2f4422(0xc9)][_0x2f4422(0xe9)](e[_0x2f4422(0xf6)]['UNIVER_SHEET'])[_0x2f4422(0x12a)]((0x0,l[_0x2f4422(0xc1)])(this[_0x2f4422(0xf5)]))[_0x2f4422(0x107)](_0x81886e=>{const _0x394d93=_0x2f4422;let _0x2fbc63=_0x81886e[_0x394d93(0x147)](),_0x296165=this[_0x394d93(0xbd)][_0x394d93(0xb5)](_0x2fbc63);_0x296165==null||_0x296165[_0x394d93(0xc4)]();});}async[_0xd9c5f4(0xf9)](_0x541977){const _0x34c63=_0xd9c5f4;let _0x782a49=await this[_0x34c63(0x174)]['requireSession'](_0x541977),_0x112c70=this['_injector']['createInstance'](x,_0x541977,_0x782a49);return _0x112c70[_0x34c63(0x165)](),this[_0x34c63(0xbd)][_0x34c63(0x129)](_0x541977,_0x112c70),_0x112c70;}};y=v([_(0x0,e[_0xd9c5f4(0x12f)]),_(0x1,(0x0,e[_0xd9c5f4(0x156)])(e[_0xd9c5f4(0x10e)])),_(0x2,(0x0,e['Inject'])(o[_0xd9c5f4(0x114)]))],y);let b=function(_0x1418c1){const _0x8fbbaa=_0xd9c5f4;return _0x1418c1['OFFLINE']=_0x8fbbaa(0x119),_0x1418c1[_0x8fbbaa(0x16e)]=_0x8fbbaa(0xc2),_0x1418c1[_0x8fbbaa(0x13d)]=_0x8fbbaa(0x12b),_0x1418c1[_0x8fbbaa(0xba)]=_0x8fbbaa(0x130),_0x1418c1[_0x8fbbaa(0x169)]=_0x8fbbaa(0x144),_0x1418c1;}({}),x=class extends e[_0xd9c5f4(0x142)]{get['_status'](){return this['_status$']['getValue']();}constructor(_0xe1bc60,_0x5e3363,_0xfa5554,_0x75c61b,_0x23015d){const _0x1ac1c8=_0xd9c5f4;super(),this[_0x1ac1c8(0x15c)]=_0xe1bc60,this[_0x1ac1c8(0x118)]=_0x5e3363,this['_configService']=_0xfa5554,this[_0x1ac1c8(0x12e)]=_0x75c61b,this[_0x1ac1c8(0x15a)]=_0x23015d,h(this,_0x1ac1c8(0xc8),new c['BehaviorSubject'](b[_0x1ac1c8(0x16e)])),h(this,_0x1ac1c8(0xb4),this[_0x1ac1c8(0xc8)][_0x1ac1c8(0xda)]()),h(this,_0x1ac1c8(0x106),!0x1),h(this,_0x1ac1c8(0xdd),null),h(this,_0x1ac1c8(0x14a),null);}[_0xd9c5f4(0xc4)](){const _0x2ecaee=_0xd9c5f4;var _0x104ca7;(_0x104ca7=this['_commandDisposable'])==null||_0x104ca7[_0x2ecaee(0xc4)](),this[_0x2ecaee(0xc8)][_0x2ecaee(0xb6)](b[_0x2ecaee(0x16e)]),this[_0x2ecaee(0xc8)][_0x2ecaee(0x163)]();}[_0xd9c5f4(0x153)](){return this['_status'];}[_0xd9c5f4(0x165)](){const _0x1979d5=_0xd9c5f4;this[_0x1979d5(0x106)]||(this[_0x1979d5(0x106)]=!0x0,this[_0x1979d5(0x118)]['sessionStatus$'][_0x1979d5(0x12a)]((0x0,l['takeUntil'])(this[_0x1979d5(0xf5)]))[_0x1979d5(0x107)](_0x27cd59=>{const _0x1681c1=_0x1979d5;switch(_0x27cd59){case o[_0x1681c1(0x145)][_0x1681c1(0x120)]:this['_handleOffline']();break;case o[_0x1681c1(0x145)][_0x1681c1(0x128)]:this[_0x1681c1(0x16d)]();break;default:}}),this[_0x1979d5(0x118)][_0x1979d5(0x148)][_0x1979d5(0x12a)]((0x0,l[_0x1979d5(0xc1)])(this['dispose$']))['subscribe'](_0x4da8bf=>{const _0x57fb3c=_0x1979d5;let {eventID:_0x444d02}=_0x4da8bf;switch(_0x444d02){case a[_0x57fb3c(0x132)]['LIVESHARE_NEW_HOST']:this[_0x57fb3c(0x117)](_0x4da8bf);break;case a['CollaborationEvent'][_0x57fb3c(0x134)]:this[_0x57fb3c(0x176)](_0x4da8bf);break;case a[_0x57fb3c(0x132)][_0x57fb3c(0x172)]:this[_0x57fb3c(0x15b)]();break;case a[_0x57fb3c(0x132)][_0x57fb3c(0x16a)]:this[_0x57fb3c(0x155)](_0x4da8bf);break;default:}}));}[_0xd9c5f4(0xfc)](){const _0x189ee8=_0xd9c5f4;this[_0x189ee8(0x118)]['send']({'eventID':a[_0x189ee8(0x132)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x189ee8(0x118)][_0x189ee8(0x166)]()}},this[_0x189ee8(0x15c)]);}[_0xd9c5f4(0x15f)](){const _0x3678ba=_0xd9c5f4;this[_0x3678ba(0xe4)]===b[_0x3678ba(0x169)]&&(this['_status$'][_0x3678ba(0xb6)](b[_0x3678ba(0x16e)]),this[_0x3678ba(0x118)][_0x3678ba(0x125)]({'eventID':a[_0x3678ba(0x132)][_0x3678ba(0x172)],'data':{'unitID':this[_0x3678ba(0x15c)]}},this[_0x3678ba(0x15c)]));}[_0xd9c5f4(0x137)](){const _0x59be64=_0xd9c5f4;this[_0x59be64(0xe4)]===b[_0x59be64(0xba)]&&(this['_status$'][_0x59be64(0xb6)](b[_0x59be64(0x13d)]),this[_0x59be64(0x167)]());}[_0xd9c5f4(0x170)](){const _0x133abb=_0xd9c5f4;this[_0x133abb(0xe4)]===b[_0x133abb(0x13d)]&&this[_0x133abb(0x151)]();}[_0xd9c5f4(0x117)](_0x2619d9){const _0x39807d=_0xd9c5f4;let {presenter:_0x3764c8}=_0x2619d9[_0x39807d(0x154)],_0x311069=this[_0x39807d(0x118)][_0x39807d(0x166)]();this[_0x39807d(0x14a)]=_0x3764c8,_0x3764c8===_0x311069?(this['_stopFollowing'](),this[_0x39807d(0xdf)]()):this[_0x39807d(0xe4)]!==b[_0x39807d(0xba)]&&(this[_0x39807d(0x13a)](),this[_0x39807d(0x167)]());}[_0xd9c5f4(0xf8)](){const _0x2b612d=_0xd9c5f4;let _0x29bc48={'eventID':a[_0x2b612d(0x132)][_0x2b612d(0x11e)]};this['_collabSession'][_0x2b612d(0x125)](_0x29bc48,this[_0x2b612d(0x15c)]);}[_0xd9c5f4(0x15b)](){const _0x2c0234=_0xd9c5f4;this[_0x2c0234(0x14a)]=null,this[_0x2c0234(0xe4)]!==b[_0x2c0234(0x169)]&&this['_beIdle']();}[_0xd9c5f4(0x155)](_0x120708){const _0x586f87=_0xd9c5f4;if(this[_0x586f87(0xe4)]===b[_0x586f87(0x13d)]&&this[_0x586f87(0x14a)]===_0x120708[_0x586f87(0x154)][_0x586f87(0x11f)]){let _0x7baf88=(0x0,a[_0x586f87(0xcc)])(_0x120708['data'])[_0x586f87(0x173)][_0x586f87(0x177)]()['find'](_0x32bdc2=>_0x32bdc2['id']===s[_0x586f87(0xee)]['id']);if(_0x7baf88){let _0x315f0f=_0x7baf88['params'][_0x586f87(0x171)],_0x371795=_0x7baf88[_0x586f87(0x139)][_0x586f87(0x162)]['id'];setTimeout(()=>{const _0x5cfda8=_0x586f87;this['_commandService']['executeCommand'](s[_0x5cfda8(0x140)]['id'],{'unitId':_0x315f0f,'subUnitId':_0x371795},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x43b409=_0xd9c5f4;this[_0x43b409(0xc8)][_0x43b409(0xb6)](b[_0x43b409(0x169)]);let _0x35c87c=new Map(),_0x38e79c=this[_0x43b409(0xdd)]=new e[(_0x43b409(0x115))]();_0x38e79c[_0x43b409(0x111)]((0x0,e['toDisposable'])(()=>{_0x35c87c['forEach'](_0xd80112=>_0xd80112['complete']()),_0x35c87c['clear']();})),_0x38e79c[_0x43b409(0x111)](this[_0x43b409(0x15a)][_0x43b409(0x15d)](_0x32d425=>{const _0x1950ef=_0x43b409;if(_0x32d425['type']!==e[_0x1950ef(0x126)]['OPERATION']||!this['_liveShareService'][_0x1950ef(0x104)](_0x32d425['id']))return;let {id:_0x4c39e1}=_0x32d425,_0x4bfd5d;if(_0x35c87c['has'](_0x4c39e1))_0x4bfd5d=_0x35c87c[_0x1950ef(0xb5)](_0x4c39e1);else{var _0xa04056;_0x4bfd5d=new c[(_0x1950ef(0x150))](),_0x35c87c[_0x1950ef(0x129)](_0x4c39e1,_0x4bfd5d),_0x4bfd5d[_0x1950ef(0x12a)]((0x0,l[_0x1950ef(0x108)])((_0xa04056=this[_0x1950ef(0xcd)][_0x1950ef(0x11b)](_0x1950ef(0xd9)))==null?0xc8:_0xa04056,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1950ef(0x107)](_0x3aa499=>{const _0x9c5fd2=_0x1950ef;this[_0x9c5fd2(0x118)][_0x9c5fd2(0x125)]({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x9c5fd2(0x15c)],'operations':{[_0x3aa499['id']]:{'id':_0x3aa499['id'],'params':JSON['stringify'](_0x3aa499[_0x9c5fd2(0x139)])}}}},this['_unitID']);});}_0x4bfd5d[_0x1950ef(0xb6)](_0x32d425);})),this[_0x43b409(0x12e)][_0x43b409(0x112)](this[_0x43b409(0x15c)])['forEach'](_0x28e127=>this[_0x43b409(0x118)]['send']({'eventID':a[_0x43b409(0x132)][_0x43b409(0x134)],'data':{'unitID':this[_0x43b409(0x15c)],'operations':{[_0x28e127['id']]:{'id':_0x28e127['id'],'params':JSON[_0x43b409(0xfa)](_0x28e127[_0x43b409(0x139)])}}}},this[_0x43b409(0x15c)]));}[_0xd9c5f4(0x13a)](){const _0x1630f5=_0xd9c5f4;var _0x16e097;this['_status$'][_0x1630f5(0xb6)](b['IDLE']),(_0x16e097=this['_commandDisposable'])==null||_0x16e097[_0x1630f5(0xc4)](),this[_0x1630f5(0xdd)]=null;}[_0xd9c5f4(0x167)](){const _0x38e3d2=_0xd9c5f4;var _0xd4e148;(_0xd4e148=this[_0x38e3d2(0xdd)])==null||_0xd4e148['dispose'](),this[_0x38e3d2(0xc8)][_0x38e3d2(0xb6)](b[_0x38e3d2(0x13d)]);}[_0xd9c5f4(0xf7)](){const _0x2114bd=_0xd9c5f4;var _0x204fe4;this[_0x2114bd(0xc8)][_0x2114bd(0xb6)](b[_0x2114bd(0x16e)]),(_0x204fe4=this[_0x2114bd(0xdd)])==null||_0x204fe4[_0x2114bd(0xc4)](),this[_0x2114bd(0xdd)]=null;}[_0xd9c5f4(0x151)](){const _0x1f43df=_0xd9c5f4;var _0x33fb8c;this['_status$'][_0x1f43df(0xb6)](b[_0x1f43df(0xba)]),(_0x33fb8c=this['_commandDisposable'])==null||_0x33fb8c[_0x1f43df(0xc4)]();}['_handleOperation'](_0x38d794){const _0x2d11ca=_0xd9c5f4;if([b[_0x2d11ca(0x169)],b[_0x2d11ca(0xba)],b['OFFLINE']][_0x2d11ca(0x10f)](this['_status'])||!_0x38d794[_0x2d11ca(0x154)]['presenter']||_0x38d794[_0x2d11ca(0x154)]['presenter']===this['_collabSession'][_0x2d11ca(0x166)]())return;this[_0x2d11ca(0xe4)]===b[_0x2d11ca(0x16e)]&&this['_startFollowing']();let _0x6387b6=_0x38d794[_0x2d11ca(0x154)][_0x2d11ca(0xe8)];Object[_0x2d11ca(0xef)](_0x6387b6)[_0x2d11ca(0x10a)](_0x30af64=>{const _0x57674d=_0x2d11ca;this['_commandService']['executeCommand'](_0x30af64['id'],_0x30af64['params']?JSON['parse'](_0x30af64[_0x57674d(0x139)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x6e4ed2=_0xd9c5f4;var _0x214be5;this[_0x6e4ed2(0xc8)][_0x6e4ed2(0xb6)](b[_0x6e4ed2(0x120)]),(_0x214be5=this['_commandDisposable'])==null||_0x214be5[_0x6e4ed2(0xc4)]();}[_0xd9c5f4(0x16d)](){const _0x405a34=_0xd9c5f4;this[_0x405a34(0xc8)]['next'](b[_0x405a34(0x16e)]),this[_0x405a34(0xf8)]();}};x=v([_(0x2,e[_0xd9c5f4(0xd4)]),_(0x3,(0x0,e['Inject'])(g)),_(0x4,e['ICommandService'])],x);function S(){const _0x2e0f6d=_0xd9c5f4;let _0xa17342=(0x0,t[_0x2e0f6d(0xd8)])(y),_0x69a1f5=(0x0,t[_0x2e0f6d(0xd8)])(e['IUniverInstanceService']),_0x3a0f3f=(0x0,t[_0x2e0f6d(0xf0)])(()=>_0x69a1f5[_0x2e0f6d(0x15e)](e[_0x2e0f6d(0xf6)][_0x2e0f6d(0xc0)]),void 0x0,!0x1,[]),[_0x4346a4,_0x76f48e]=(0x0,i[_0x2e0f6d(0xf1)])(null),[_0x23b3f3,_0x5d5718]=(0x0,i['useState'])(b[_0x2e0f6d(0x16e)]),_0x530b37=(0x0,i[_0x2e0f6d(0x122)])(null);return(0x0,i[_0x2e0f6d(0x105)])(()=>(_0x3a0f3f&&_0xa17342[_0x2e0f6d(0xd3)](_0x3a0f3f[_0x2e0f6d(0x147)]())[_0x2e0f6d(0x16b)](_0x1ede72=>{const _0x2548d5=_0x2e0f6d;_0x76f48e(_0x1ede72),_0x530b37['current']=_0x1ede72[_0x2548d5(0xb4)][_0x2548d5(0x107)](_0x285c4f=>{_0x5d5718(_0x285c4f);});}),()=>{const _0x686788=_0x2e0f6d;var _0x472e29;(_0x472e29=_0x530b37[_0x686788(0x102)])==null||_0x472e29[_0x686788(0xea)](),_0x530b37['current']=null;}),[_0x3a0f3f,_0xa17342]),_0x4346a4?(0x0,u[_0x2e0f6d(0x10c)])(n[_0x2e0f6d(0x168)],{'align':_0x2e0f6d(0xb7),'disabled':_0x23b3f3===b[_0x2e0f6d(0x120)],'className':_0x2e0f6d(0x152),'overlay':(0x0,u[_0x2e0f6d(0x10c)])(C,{'status':_0x23b3f3,'coordinator':_0x4346a4}),'children':(0x0,u[_0x2e0f6d(0x10c)])(_0x2e0f6d(0x136),{'className':(0x0,n[_0x2e0f6d(0xc3)])(_0x2e0f6d(0x100),{'univer-cursor-not-allowed':_0x23b3f3===b[_0x2e0f6d(0x120)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23b3f3!==b['OFFLINE']}),'type':_0x2e0f6d(0x136),'children':(0x0,u[_0x2e0f6d(0x10c)])(r[_0x2e0f6d(0x143)],{'className':_0x2e0f6d(0x158)})})}):null;}function C(_0x1b12e3){const _0x2cec21=_0xd9c5f4;let {status:_0x22ba8e,coordinator:_0x406f9f}=_0x1b12e3;switch(_0x22ba8e){case b['IDLE']:return(0x0,u[_0x2cec21(0x10c)])(w,{'coordinator':_0x406f9f});case b[_0x2cec21(0x13d)]:return(0x0,u[_0x2cec21(0x10c)])(T,{'coordinator':_0x406f9f});case b[_0x2cec21(0xba)]:return(0x0,u[_0x2cec21(0x10c)])(E,{'coordinator':_0x406f9f});case b[_0x2cec21(0x120)]:return(0x0,u[_0x2cec21(0x10c)])(O,{});case b[_0x2cec21(0x169)]:return(0x0,u[_0x2cec21(0x10c)])(D,{'coordinator':_0x406f9f});default:return null;}}function w(_0x7cfd91){const _0x23bd85=_0xd9c5f4;let {coordinator:_0x9ec82c}=_0x7cfd91;return(0x0,u[_0x23bd85(0xd2)])(u[_0x23bd85(0x124)],{'children':[(0x0,u['jsx'])('div',{'className':_0x23bd85(0x127),'children':_0x23bd85(0xb3)}),(0x0,u[_0x23bd85(0x10c)])(n[_0x23bd85(0xb9)],{'onClick':()=>_0x9ec82c[_0x23bd85(0xfc)](),'children':_0x23bd85(0x14b)})]});}function T(_0x3f9bd9){const _0x2a5963=_0xd9c5f4;let {coordinator:_0x44c717}=_0x3f9bd9;return(0x0,u[_0x2a5963(0xd2)])(u['Fragment'],{'children':[(0x0,u[_0x2a5963(0x10c)])(_0x2a5963(0x11c),{'className':_0x2a5963(0x127),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u[_0x2a5963(0x10c)])(n[_0x2a5963(0xb9)],{'onClick':()=>_0x44c717[_0x2a5963(0x170)](),'children':'Stop\x20following'})]});}function E(_0x30aba6){const _0x26555b=_0xd9c5f4;let {coordinator:_0x45f48b}=_0x30aba6;return(0x0,u[_0x26555b(0xd2)])(u['Fragment'],{'children':[(0x0,u[_0x26555b(0x10c)])('div',{'className':_0x26555b(0x127),'children':_0x26555b(0xce)}),(0x0,u[_0x26555b(0x10c)])(n[_0x26555b(0xb9)],{'variant':_0x26555b(0xfb),'onClick':()=>_0x45f48b[_0x26555b(0x137)](),'children':_0x26555b(0x103)})]});}function D(_0x5953fc){const _0x23cce8=_0xd9c5f4;let {coordinator:_0x603366}=_0x5953fc;return(0x0,u[_0x23cce8(0xd2)])(u[_0x23cce8(0x124)],{'children':[(0x0,u[_0x23cce8(0x10c)])(_0x23cce8(0x11c),{'className':_0x23cce8(0x127),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,u[_0x23cce8(0x10c)])(n[_0x23cce8(0xb9)],{'variant':_0x23cce8(0xff),'onClick':()=>_0x603366[_0x23cce8(0x15f)](),'children':_0x23cce8(0x175)})]});}function O(){const _0x6a309d=_0xd9c5f4;return(0x0,u[_0x6a309d(0x10c)])(u[_0x6a309d(0x124)],{'children':_0x6a309d(0x109)});}let k=class extends e[_0xd9c5f4(0x14d)]{constructor(_0x4b3ddf,_0x36360f){const _0x5bc60d=_0xd9c5f4;super(),this[_0x5bc60d(0xe2)]=_0x4b3ddf,this[_0x5bc60d(0x14c)]=_0x36360f,this['_mountLiveShare']();}[_0xd9c5f4(0x149)](){const _0x4da1d6=_0xd9c5f4;this[_0x4da1d6(0xc6)](this[_0x4da1d6(0x14c)][_0x4da1d6(0xde)](t[_0x4da1d6(0x13f)][_0x4da1d6(0xe5)],()=>(0x0,t[_0x4da1d6(0x14e)])(S,this[_0x4da1d6(0xe2)])));}};k=v([_(0x0,(0x0,e[_0xd9c5f4(0x156)])(e[_0xd9c5f4(0x10e)])),_(0x1,t['IUIPartsService'])],k);var A=_0xd9c5f4(0x11a),j=_0xd9c5f4(0xbc);function _0x4752(){const _0x16da0e=['status$','get','next','end','UniverCollaborationClientPlugin','Button','NOT_FOLLOWING','type','0.20.0','_entities','30amdlJs','3379240nLVVJx','UNIVER_SHEET','takeUntil','idle','clsx','dispose','6JPhbDC','disposeWithMe','pluginName','_status$','_univerInstanceService','getOwnPropertyDescriptor','533216qTyReQ','parseProtocolChangeset','_configService','You\x27re\x20not\x20following\x20the\x20presenter','Module','LiveShareService','407fgoGwT','jsxs','getLiveShareCoordinator','IConfigService','defineProperty','_reporters','onRendered','useDependency','SAME_OPERATION_SHARE_INTERVAL','asObservable','call','registerSharedOperation','_commandDisposable','registerComponent','_startPresenting','1393089WjnUie','toPrimitive','_injector','toDisposable','_status','HEADER_MENU','has','touchDependencies','operations','getTypeOfUnitDisposed$','unsubscribe','map','live-share.config','409980zmelap','InsertSheetMutation','values','useObservable','useState','delete','293996dnrnId','443285WUPBBc','dispose$','UniverInstanceType','_beIdle','_fetchOperations','_startLiveShareCoordinator','stringify','text','tryStartPresenting','string','DependentOn','default','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','28HWgOiz','current','Start\x20following','shouldShareOperation','useEffect','_init','subscribe','throttleTime','You\x27are\x20offline.','forEach','function','jsx','packageName','Injector','includes','constructor','add','getInitialStates','length','CollaborationSessionService','DisposableCollection','_config','_handleNewHost','_collabSession','offline','@univerjs-pro/live-share','getConfig','div','object','LIVESHARE_FETCH_OPERATIONS','memberID','OFFLINE','merge','useRef','decorate','Fragment','send','CommandType','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','set','pipe','following','iterator','_sharedOperations','_liveShareService','IUniverInstanceService','not-following','LiveShareController','CollaborationEvent','Plugin','LIVESHARE_OPERATION','6600393yXDILL','button','startFollowing','UNIVER_UNKNOWN','params','_stopPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','FOLLOWING','prototype','BuiltInUIPart','SetWorksheetActiveOperation','version','RxDisposable','LiveShareIcon','presenting','SessionStatus','LiveShare','getUnitId','event$','_mountLiveShare','_presenter','Start','_uiPartsService','Disposable','connectInjector','UNIVER_LIVE_SHARE_PLUGIN','Subject','_stopFollowing','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','getStatus','data','_handleNewChangeSets','Inject','getLiveShareCoordinatorSync','univer-size-4','toStringTag','_commandService','_handleTerminate','_unitID','onCommandExecuted','getCurrentTypeOfUnit$','stopPresenting','registerInitialStateReporter','override','sheet','complete','SetZoomRatioOperation','init','getMemberID','_startFollowing','Dropdown','PRESENTING','NEW_CHANGESETS','then','registerDependencies','_handleOnline','IDLE','UniverLiveSharePlugin','stopFollowing','unitId','LIVESHARE_TERMINATE','mutations','_collabSessionService','Stop\x20presenting','_handleOperation','reverse','DesktopLiveShareController','Present\x20this\x20document'];_0x4752=function(){return _0x16da0e;};return _0x4752();}const M=_0xd9c5f4(0xec);Symbol(M);const N={};let P=class extends e['Disposable']{constructor(_0x74a6e2){const _0x21c730=_0xd9c5f4;super(),this[_0x21c730(0x12e)]=_0x74a6e2,this[_0x21c730(0x106)]();}[_0xd9c5f4(0x106)](){const _0x47ddeb=_0xd9c5f4;[d[_0x47ddeb(0x164)]['id'],d['SetScrollOperation']['id'],s['SetWorksheetActiveOperation']['id']][_0x47ddeb(0x10a)](_0x33e38b=>{const _0x3f899f=_0x47ddeb;this[_0x3f899f(0xc6)](this[_0x3f899f(0x12e)][_0x3f899f(0xdc)](_0x33e38b));});}};P=v([_(0x0,(0x0,e[_0xd9c5f4(0x156)])(g))],P);let F=class extends e[_0xd9c5f4(0x133)]{constructor(_0x58d9f7=N,_0x24ee93,_0x15b5b8){const _0x132e8a=_0xd9c5f4;super(),this[_0x132e8a(0x116)]=_0x58d9f7,this['_injector']=_0x24ee93,this[_0x132e8a(0xcd)]=_0x15b5b8;let {..._0x1b1450}=(0x0,e[_0x132e8a(0x121)])({},N,this['_config']);this[_0x132e8a(0xcd)]['setConfig'](M,_0x1b1450);}[_0xd9c5f4(0x13c)](){const _0x4f8412=_0xd9c5f4;(0x0,e[_0x4f8412(0x16c)])(this[_0x4f8412(0xe2)],(0x0,e['mergeOverrideWithDependencies'])([[g],[y],[P],[k]],this['_config'][_0x4f8412(0x161)])),(0x0,e[_0x4f8412(0xe7)])(this[_0x4f8412(0xe2)],[[P]]);}[_0xd9c5f4(0xd7)](){const _0x183ff5=_0xd9c5f4;(0x0,e[_0x183ff5(0xe7)])(this[_0x183ff5(0xe2)],[[k]]);}};h(F,_0xd9c5f4(0xbb),e[_0xd9c5f4(0xf6)][_0xd9c5f4(0x138)]),h(F,_0xd9c5f4(0xc7),_0xd9c5f4(0x14f)),h(F,_0xd9c5f4(0x10d),A),h(F,_0xd9c5f4(0x141),j),F=v([(0x0,e[_0xd9c5f4(0xfe)])(o[_0xd9c5f4(0xb8)]),_(0x1,(0x0,e[_0xd9c5f4(0x156)])(e[_0xd9c5f4(0x10e)])),_(0x2,e[_0xd9c5f4(0xd4)])],F),Object[_0xd9c5f4(0xd5)](exports,_0xd9c5f4(0x178),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0xd9c5f4(0x146)]=S,Object[_0xd9c5f4(0xd5)](exports,_0xd9c5f4(0x131),{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return x;}}),exports[_0xd9c5f4(0xd0)]=g,exports['LiveShareStatus']=b,Object[_0xd9c5f4(0xd5)](exports,_0xd9c5f4(0x16f),{'enumerable':!0x0,'get':function(){return F;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2e01(_0x26cb5a,_0x57a94c){_0x26cb5a=_0x26cb5a-0x95;const _0x375515=_0x3755();let _0x2e0101=_0x375515[_0x26cb5a];return _0x2e0101;}const _0x1ac819=_0x2e01;(function(_0x44a360,_0x2dfa61){const _0x147b8d=_0x2e01,_0x15e420=_0x44a360();while(!![]){try{const _0x4852d7=-parseInt(_0x147b8d(0x99))/0x1+parseInt(_0x147b8d(0xb9))/0x2+-parseInt(_0x147b8d(0x9d))/0x3*(parseInt(_0x147b8d(0xb6))/0x4)+-parseInt(_0x147b8d(0xa0))/0x5*(parseInt(_0x147b8d(0xa8))/0x6)+-parseInt(_0x147b8d(0xb7))/0x7*(-parseInt(_0x147b8d(0x97))/0x8)+parseInt(_0x147b8d(0xa1))/0x9+-parseInt(_0x147b8d(0x98))/0xa*(-parseInt(_0x147b8d(0x9c))/0xb);if(_0x4852d7===_0x2dfa61)break;else _0x15e420['push'](_0x15e420['shift']());}catch(_0x1d27ed){_0x15e420['push'](_0x15e420['shift']());}}}(_0x3755,0xf0ba5));import{LiveShareController as _0x5c53d4,LiveShareStatus as _0x828f1e}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x1f1bd3,UniverInstanceType as _0x3b877f}from'@univerjs/core';import{FEnum as _0x542a30,FUniver as _0x55fbe7}from'@univerjs/core/facade';function o(_0x43ee50){'@babel/helpers - typeof';const _0x311072=_0x2e01;return o=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x311072(0x95)?function(_0x5c13d4){return typeof _0x5c13d4;}:function(_0xf31312){const _0x4061c8=_0x311072;return _0xf31312&&typeof Symbol==_0x4061c8(0xac)&&_0xf31312[_0x4061c8(0xaf)]===Symbol&&_0xf31312!==Symbol[_0x4061c8(0xae)]?_0x4061c8(0x95):typeof _0xf31312;},o(_0x43ee50);}function s(_0x3cf264,_0x39d09d){const _0x41de3b=_0x2e01;if(o(_0x3cf264)!=_0x41de3b(0xa2)||!_0x3cf264)return _0x3cf264;var _0x5d2ef5=_0x3cf264[Symbol[_0x41de3b(0xb2)]];if(_0x5d2ef5!==void 0x0){var _0x20b937=_0x5d2ef5[_0x41de3b(0xa5)](_0x3cf264,_0x39d09d||_0x41de3b(0xb5));if(o(_0x20b937)!=_0x41de3b(0xa2))return _0x20b937;throw TypeError(_0x41de3b(0xba));}return(_0x39d09d===_0x41de3b(0xa4)?String:Number)(_0x3cf264);}function c(_0x59f9c0){const _0x4018a7=_0x2e01;var _0x53c545=s(_0x59f9c0,_0x4018a7(0xa4));return o(_0x53c545)=='symbol'?_0x53c545:_0x53c545+'';}function l(_0x5bad48,_0x48111a,_0xa574e8){const _0x5745fc=_0x2e01;return(_0x48111a=c(_0x48111a))in _0x5bad48?Object[_0x5745fc(0x9b)](_0x5bad48,_0x48111a,{'value':_0xa574e8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5bad48[_0x48111a]=_0xa574e8,_0x5bad48;}var u=class extends _0x55fbe7{constructor(..._0x5685cb){const _0x3ac38f=_0x2e01;super(..._0x5685cb),l(this,_0x3ac38f(0xb1),void 0x0);}['_initialize'](_0x5d8959){const _0x3ee53=_0x2e01;this[_0x3ee53(0xb1)]=_0x5d8959[_0x3ee53(0x96)](_0x5c53d4);}[_0x1ac819(0xab)](){const _0x525cc9=_0x1ac819;var _0x31bf9f;let _0xba21d9=this['_injector']['get'](_0x1f1bd3)[_0x525cc9(0xa7)](_0x3b877f[_0x525cc9(0x9a)]);if(!_0xba21d9)throw Error(_0x525cc9(0xb4));let _0x490c6d=_0xba21d9[_0x525cc9(0xa3)](),_0x372922=this[_0x525cc9(0xb1)]['getLiveShareCoordinatorSync'](_0x490c6d);return(_0x31bf9f=_0x372922==null?void 0x0:_0x372922[_0x525cc9(0xb8)]())==null?_0x828f1e[_0x525cc9(0x9f)]:_0x31bf9f;}[_0x1ac819(0xa9)](){const _0x596cd6=_0x1ac819;let _0x5d5a39=this[_0x596cd6(0xb3)][_0x596cd6(0x96)](_0x1f1bd3)[_0x596cd6(0xa7)](_0x3b877f[_0x596cd6(0x9a)]);if(!_0x5d5a39)throw Error(_0x596cd6(0xb4));let _0x565636=_0x5d5a39[_0x596cd6(0xa3)](),_0x4a370b=this[_0x596cd6(0xb1)][_0x596cd6(0xb0)](_0x565636);if(!_0x4a370b)throw Error(_0x596cd6(0xaa));_0x4a370b[_0x596cd6(0xa9)]();}[_0x1ac819(0x9e)](){const _0x33f1fd=_0x1ac819;let _0x30df6f=this[_0x33f1fd(0xb3)][_0x33f1fd(0x96)](_0x1f1bd3)[_0x33f1fd(0xa7)](_0x3b877f[_0x33f1fd(0x9a)]);if(!_0x30df6f)throw Error(_0x33f1fd(0xb4));let _0x50cf72=_0x30df6f[_0x33f1fd(0xa3)](),_0x34f8c4=this['_liveShareController'][_0x33f1fd(0xb0)](_0x50cf72);if(!_0x34f8c4)throw Error(_0x33f1fd(0xaa));_0x34f8c4[_0x33f1fd(0x9e)]();}[_0x1ac819(0xa6)](){const _0x14d12f=_0x1ac819;let _0x509b9f=this[_0x14d12f(0xb3)][_0x14d12f(0x96)](_0x1f1bd3)[_0x14d12f(0xa7)](_0x3b877f[_0x14d12f(0x9a)]);if(!_0x509b9f)throw Error('No\x20active\x20workbook\x20found.');let _0x4bdb77=_0x509b9f['getUnitId'](),_0x2f5130=this[_0x14d12f(0xb1)][_0x14d12f(0xb0)](_0x4bdb77);if(!_0x2f5130)throw Error(_0x14d12f(0xaa));_0x2f5130['tryStartPresenting']();}['stopPresenting'](){const _0x269908=_0x1ac819;let _0x22542c=this['_injector'][_0x269908(0x96)](_0x1f1bd3)['getCurrentUnitOfType'](_0x3b877f[_0x269908(0x9a)]);if(!_0x22542c)throw Error(_0x269908(0xb4));let _0x14c10f=_0x22542c['getUnitId'](),_0x2a657b=this['_liveShareController'][_0x269908(0xb0)](_0x14c10f);if(!_0x2a657b)throw Error(_0x269908(0xaa));_0x2a657b['stopPresenting']();}};_0x55fbe7['extend'](u);var d=class extends _0x542a30{get['LiveShareStatusEnum'](){return _0x828f1e;}};_0x542a30[_0x1ac819(0xad)](d);export{};function _0x3755(){const _0x3e94e0=['No\x20active\x20workbook\x20found.','default','124mJshxr','7LLaOHt','getStatus','3651284GsYrwK','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','get','5996152uGipXW','15246310QIfeya','1671764VLjlhE','UNIVER_SHEET','defineProperty','11iTMxwJ','146268fVHUDk','stopFollowing','IDLE','18085fCCFQC','4726539JFShhe','object','getUnitId','string','call','startPresenting','getCurrentUnitOfType','756VydJpe','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','function','extend','prototype','constructor','getLiveShareCoordinatorSync','_liveShareController','toPrimitive','_injector'];_0x3755=function(){return _0x3e94e0;};return _0x3755();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2513a0=_0x5d5b;(function(_0x189315,_0x20ae68){const _0x5d336c=_0x5d5b,_0x2afe1b=_0x189315();while(!![]){try{const _0x2698fb=-parseInt(_0x5d336c(0xf5))/0x1+parseInt(_0x5d336c(0x80))/0x2*(-parseInt(_0x5d336c(0x99))/0x3)+parseInt(_0x5d336c(0xb4))/0x4*(parseInt(_0x5d336c(0xe4))/0x5)+parseInt(_0x5d336c(0xff))/0x6*(parseInt(_0x5d336c(0x7b))/0x7)+parseInt(_0x5d336c(0x87))/0x8*(-parseInt(_0x5d336c(0xe1))/0x9)+parseInt(_0x5d336c(0x8e))/0xa+-parseInt(_0x5d336c(0xea))/0xb*(-parseInt(_0x5d336c(0x92))/0xc);if(_0x2698fb===_0x20ae68)break;else _0x2afe1b['push'](_0x2afe1b['shift']());}catch(_0x564337){_0x2afe1b['push'](_0x2afe1b['shift']());}}}(_0x4f75,0x3583c));import{CommandType as _0x2350d3,DependentOn as _0x12cd2b,Disposable as _0x7e3118,DisposableCollection as _0x2d19bf,ICommandService as _0x5c22fb,IConfigService as _0x212af8,IUniverInstanceService as _0x19fa44,Inject as _0x1b8e3f,Injector as _0x44d9df,Plugin as _0x5aad12,RxDisposable as _0xa78c25,UniverInstanceType as _0x59028d,merge as _0x1d4a14,mergeOverrideWithDependencies as _0x580aae,registerDependencies as _0x30e8a5,toDisposable as _0x5ab2d9,touchDependencies as _0x357def}from'@univerjs/core';import{BuiltInUIPart as _0x27c8b7,IUIPartsService as _0x1fea8b,connectInjector as _0x579567,useDependency as _0x63768,useObservable as _0x3d864d}from'@univerjs/ui';import{Button as _0x39a743,Dropdown as _0x58c459,clsx as _0x10de51}from'@univerjs/design';import{LiveShareIcon as _0x569935}from'@univerjs/icons';import{useEffect as _0x23f7f4,useRef as _0x17b498,useState as _0x4b88a6}from'react';import{CollaborationEvent as _0x410fbb,parseProtocolChangeset as _0x33853e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x19e44a,SessionStatus as _0x52fdbf,UniverCollaborationClientPlugin as _0x1d07dd}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4f6c05,SetWorksheetActiveOperation as _0x4e08ea}from'@univerjs/sheets';import{BehaviorSubject as _0x3b9fa0,Subject as _0x56499e}from'rxjs';function _0x4f75(){const _0xba0521=['override','status$','You\x27are\x20offline.','memberID','384670vjwymn','registerInitialStateReporter','LIVESHARE_OPERATION','object','startFollowing','_sharedOperations','Stop\x20presenting','_uiPartsService','sheet','getValue','2694OpCEfd','_injector','set','presenter','call','complete','shouldShareOperation','You\x27re\x20presenting\x20the\x20document','setConfig','IDLE','_startFollowing','defineProperty','data','getLiveShareCoordinator','next','UNIVER_UNKNOWN','_commandService','getTypeOfUnitAdded$','OPERATION','553zWqjpw','UNIVER_SHEET','stopPresenting','sessionStatus$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','33094WPTpVB','mutations','add','packageName','createInstance','reverse','offline','24bMHAZV','presenting','_presenter','unitId','decorate','live-share.config','_handleNewHost','3113310nLCiLv','SAME_OPERATION_SHARE_INTERVAL','_collabSessionService','_stopPresenting','4188WLeQsV','registerSharedOperation','stopFollowing','div','_liveShareService','registerComponent','version','69StxOMl','stringify','subscribe','@univerjs-pro/live-share','getMemberID','getCurrentTypeOfUnit$','_beIdle','onCommandExecuted','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','OFFLINE','delete','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_init','function','parse','pipe','type','getInitialStates','asObservable','_stopFollowing','onStarting','params','getLiveShareCoordinatorSync','_fetchOperations','has','256jwecuw','getUnitId','constructor','_status','ONLINE','idle','init','_configService','unsubscribe','LIVESHARE_TERMINATE','current','find','end','values','_startPresenting','length','PRESENTING','button','LIVESHARE_NEW_HOST','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','_config','Present\x20this\x20document','HEADER_MENU','dispose','requireSession','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','executeCommand','_handleTerminate','_handleOnline','tryStartPresenting','get','symbol','send','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','getTypeOfUnitDisposed$','default','_reporters','univer-mb-3\x20univer-w-full\x20univer-text-sm','following','_entities','0.19.0','event$','onRendered','1179918AHKtEC','_unitID','includes','25930ryaFvv','disposeWithMe','_handleOffline','FOLLOWING','_status$','getStatus','22033cwlRNP','map','prototype','forEach','then','dispose$','_handleOperation'];_0x4f75=function(){return _0xba0521;};return _0x4f75();}import{takeUntil as _0x4d26a8,throttleTime as _0x3fdd56}from'rxjs/operators';import{Fragment as _0x82c5a5,jsx as _0xd9a983,jsxs as _0x2c4e75}from'react/jsx-runtime';import{SetScrollOperation as _0x42ce5d,SetZoomRatioOperation as _0x4ad841}from'@univerjs/sheets-ui';function L(_0x984845){'@babel/helpers - typeof';const _0xc16c8c=_0x5d5b;return L=typeof Symbol==_0xc16c8c(0xa8)&&typeof Symbol['iterator']=='symbol'?function(_0x406d0d){return typeof _0x406d0d;}:function(_0x460b5b){const _0x4fb43e=_0xc16c8c;return _0x460b5b&&typeof Symbol==_0x4fb43e(0xa8)&&_0x460b5b[_0x4fb43e(0xb6)]===Symbol&&_0x460b5b!==Symbol[_0x4fb43e(0xec)]?_0x4fb43e(0xd4):typeof _0x460b5b;},L(_0x984845);}function _0x5d5b(_0x1a53bc,_0x46a1ee){_0x1a53bc=_0x1a53bc-0x6e;const _0x4f7521=_0x4f75();let _0x5d5bc4=_0x4f7521[_0x1a53bc];return _0x5d5bc4;}function R(_0xef0de5,_0x2c174a){const _0x4a3ec5=_0x5d5b;if(L(_0xef0de5)!=_0x4a3ec5(0xf8)||!_0xef0de5)return _0xef0de5;var _0x647f00=_0xef0de5[Symbol['toPrimitive']];if(_0x647f00!==void 0x0){var _0x4bba30=_0x647f00[_0x4a3ec5(0x103)](_0xef0de5,_0x2c174a||'default');if(L(_0x4bba30)!=_0x4a3ec5(0xf8))return _0x4bba30;throw TypeError(_0x4a3ec5(0xa6));}return(_0x2c174a==='string'?String:Number)(_0xef0de5);}function z(_0x238108){var _0x47eb17=R(_0x238108,'string');return L(_0x47eb17)=='symbol'?_0x47eb17:_0x47eb17+'';}function B(_0x208471,_0x511d28,_0x3d1074){const _0x9d4b2d=_0x5d5b;return(_0x511d28=z(_0x511d28))in _0x208471?Object[_0x9d4b2d(0x73)](_0x208471,_0x511d28,{'value':_0x3d1074,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x208471[_0x511d28]=_0x3d1074,_0x208471;}var V=class extends _0x7e3118{constructor(..._0x21ce42){const _0x10a3ee=_0x5d5b;super(..._0x21ce42),B(this,_0x10a3ee(0xfa),new Set()),B(this,'_reporters',new Set());}[_0x2513a0(0x93)](_0x9757b3){const _0x40cf10=_0x2513a0;return this['_sharedOperations']['add'](_0x9757b3),_0x5ab2d9(()=>this[_0x40cf10(0xfa)]['delete'](_0x9757b3));}[_0x2513a0(0xf6)](_0x4f4ef3){const _0x3b023e=_0x2513a0;return this[_0x3b023e(0xda)]['add'](_0x4f4ef3),_0x5ab2d9(()=>this[_0x3b023e(0xda)][_0x3b023e(0xa5)](_0x4f4ef3));}[_0x2513a0(0x6e)](_0xacab35){const _0x1a6ae7=_0x2513a0;return this[_0x1a6ae7(0xfa)]['has'](_0xacab35);}['getInitialStates'](_0x480131){const _0x3c7f2f=_0x2513a0;return Array['from'](this['_reporters'])[_0x3c7f2f(0xeb)](_0x3f83a8=>_0x3f83a8(_0x480131));}};function H(_0x434a55,_0x53ccaf){return function(_0x1ef524,_0x28d6ef){_0x53ccaf(_0x1ef524,_0x28d6ef,_0x434a55);};}function U(_0x4a3843,_0x56d1dc,_0x15225d,_0x38a271){const _0xae5f76=_0x2513a0;var _0x38686e=arguments['length'],_0x2284b9=_0x38686e<0x3?_0x56d1dc:_0x38a271===null?_0x38a271=Object['getOwnPropertyDescriptor'](_0x56d1dc,_0x15225d):_0x38a271,_0x2d0e5b;if(typeof Reflect==_0xae5f76(0xf8)&&typeof Reflect[_0xae5f76(0x8b)]=='function')_0x2284b9=Reflect[_0xae5f76(0x8b)](_0x4a3843,_0x56d1dc,_0x15225d,_0x38a271);else{for(var _0x4314ac=_0x4a3843[_0xae5f76(0xc3)]-0x1;_0x4314ac>=0x0;_0x4314ac--)(_0x2d0e5b=_0x4a3843[_0x4314ac])&&(_0x2284b9=(_0x38686e<0x3?_0x2d0e5b(_0x2284b9):_0x38686e>0x3?_0x2d0e5b(_0x56d1dc,_0x15225d,_0x2284b9):_0x2d0e5b(_0x56d1dc,_0x15225d))||_0x2284b9);}return _0x38686e>0x3&&_0x2284b9&&Object[_0xae5f76(0x73)](_0x56d1dc,_0x15225d,_0x2284b9),_0x2284b9;}let W=class extends _0xa78c25{constructor(_0x410298,_0x5be1d7,_0x639acd){const _0x23be2e=_0x2513a0;super(),this['_univerInstanceService']=_0x410298,this[_0x23be2e(0x100)]=_0x5be1d7,this[_0x23be2e(0x90)]=_0x639acd,B(this,_0x23be2e(0xdd),new Map()),this[_0x23be2e(0xa7)]();}async[_0x2513a0(0x75)](_0x4bb11b){const _0xb98a61=_0x2513a0;return this[_0xb98a61(0xdd)][_0xb98a61(0xb3)](_0x4bb11b)||await this[_0xb98a61(0xa3)](_0x4bb11b),this['_entities']['get'](_0x4bb11b);}[_0x2513a0(0xb1)](_0x9e99e7){const _0x5d5181=_0x2513a0;var _0xdd63a3;return(_0xdd63a3=this[_0x5d5181(0xdd)]['get'](_0x9e99e7))==null?null:_0xdd63a3;}['_init'](){const _0xeabfd8=_0x2513a0;this['_univerInstanceService'][_0xeabfd8(0x79)](_0x59028d[_0xeabfd8(0x7c)])[_0xeabfd8(0xaa)](_0x4d26a8(this[_0xeabfd8(0xef)]))[_0xeabfd8(0x9b)](async _0x1dde30=>{const _0xd7e86d=_0xeabfd8;let _0x14dce9=_0x1dde30[_0xd7e86d(0xb5)]();this[_0xd7e86d(0xdd)]['has'](_0x14dce9)||this[_0xd7e86d(0xa3)](_0x14dce9);}),this['_univerInstanceService'][_0xeabfd8(0xd8)](_0x59028d[_0xeabfd8(0x7c)])['pipe'](_0x4d26a8(this[_0xeabfd8(0xef)]))['subscribe'](_0x1f6c27=>{const _0x49b8d=_0xeabfd8;let _0xdab455=_0x1f6c27[_0x49b8d(0xb5)](),_0x16c6ed=this[_0x49b8d(0xdd)][_0x49b8d(0xd3)](_0xdab455);_0x16c6ed==null||_0x16c6ed[_0x49b8d(0xcb)]();});}async[_0x2513a0(0xa3)](_0x428d56){const _0x17e061=_0x2513a0;let _0x487a79=await this[_0x17e061(0x90)][_0x17e061(0xcc)](_0x428d56),_0x430135=this[_0x17e061(0x100)][_0x17e061(0x84)](K,_0x428d56,_0x487a79);return _0x430135[_0x17e061(0xba)](),this[_0x17e061(0xdd)][_0x17e061(0x101)](_0x428d56,_0x430135),_0x430135;}};W=U([H(0x0,_0x19fa44),H(0x1,_0x1b8e3f(_0x44d9df)),H(0x2,_0x1b8e3f(_0x19e44a))],W);let G=function(_0x2148cd){const _0x71b943=_0x2513a0;return _0x2148cd[_0x71b943(0xa4)]=_0x71b943(0x86),_0x2148cd['IDLE']=_0x71b943(0xb9),_0x2148cd['FOLLOWING']=_0x71b943(0xdc),_0x2148cd['NOT_FOLLOWING']='not-following',_0x2148cd[_0x71b943(0xc4)]=_0x71b943(0x88),_0x2148cd;}({}),K=class extends _0xa78c25{get[_0x2513a0(0xb7)](){const _0x2ee695=_0x2513a0;return this[_0x2ee695(0xe8)][_0x2ee695(0xfe)]();}constructor(_0x5ad55a,_0xe33e1d,_0xd77cfa,_0x400411,_0x2bb41b){const _0x2f3e9=_0x2513a0;super(),this[_0x2f3e9(0xe2)]=_0x5ad55a,this[_0x2f3e9(0xd6)]=_0xe33e1d,this[_0x2f3e9(0xbb)]=_0xd77cfa,this['_liveShareService']=_0x400411,this[_0x2f3e9(0x78)]=_0x2bb41b,B(this,_0x2f3e9(0xe8),new _0x3b9fa0(G[_0x2f3e9(0x71)])),B(this,_0x2f3e9(0xf2),this['_status$'][_0x2f3e9(0xad)]()),B(this,_0x2f3e9(0xa7),!0x1),B(this,_0x2f3e9(0xa1),null),B(this,_0x2f3e9(0x89),null);}[_0x2513a0(0xcb)](){const _0x3d0d73=_0x2513a0;var _0x54f3d7;(_0x54f3d7=this['_commandDisposable'])==null||_0x54f3d7[_0x3d0d73(0xcb)](),this[_0x3d0d73(0xe8)][_0x3d0d73(0x76)](G[_0x3d0d73(0x71)]),this[_0x3d0d73(0xe8)][_0x3d0d73(0x104)]();}[_0x2513a0(0xe9)](){const _0x4ed75d=_0x2513a0;return this[_0x4ed75d(0xb7)];}[_0x2513a0(0xba)](){const _0x5d252c=_0x2513a0;this[_0x5d252c(0xa7)]||(this[_0x5d252c(0xa7)]=!0x0,this[_0x5d252c(0xd6)][_0x5d252c(0x7e)][_0x5d252c(0xaa)](_0x4d26a8(this[_0x5d252c(0xef)]))['subscribe'](_0x1d4dbd=>{const _0x1e53b7=_0x5d252c;switch(_0x1d4dbd){case _0x52fdbf['OFFLINE']:this[_0x1e53b7(0xe6)]();break;case _0x52fdbf[_0x1e53b7(0xb8)]:this[_0x1e53b7(0xd1)]();break;default:}}),this[_0x5d252c(0xd6)][_0x5d252c(0xdf)]['pipe'](_0x4d26a8(this['dispose$']))[_0x5d252c(0x9b)](_0x115221=>{const _0x1fa27c=_0x5d252c;let {eventID:_0x4e5a35}=_0x115221;switch(_0x4e5a35){case _0x410fbb[_0x1fa27c(0xc6)]:this[_0x1fa27c(0x8d)](_0x115221);break;case _0x410fbb[_0x1fa27c(0xf7)]:this['_handleOperation'](_0x115221);break;case _0x410fbb[_0x1fa27c(0xbd)]:this[_0x1fa27c(0xd0)]();break;case _0x410fbb['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x115221);break;default:}}));}['tryStartPresenting'](){const _0x116ef3=_0x2513a0;this['_collabSession']['send']({'eventID':_0x410fbb[_0x116ef3(0xcd)],'data':{'unitID':this[_0x116ef3(0xe2)],'userID':this[_0x116ef3(0xd6)][_0x116ef3(0x9d)]()}},this['_unitID']);}[_0x2513a0(0x7d)](){const _0xe02768=_0x2513a0;this[_0xe02768(0xb7)]===G['PRESENTING']&&(this['_status$'][_0xe02768(0x76)](G['IDLE']),this[_0xe02768(0xd6)][_0xe02768(0xd5)]({'eventID':_0x410fbb[_0xe02768(0xbd)],'data':{'unitID':this[_0xe02768(0xe2)]}},this[_0xe02768(0xe2)]));}[_0x2513a0(0xf9)](){const _0x495650=_0x2513a0;this[_0x495650(0xb7)]===G[_0x495650(0xce)]&&(this[_0x495650(0xe8)][_0x495650(0x76)](G['FOLLOWING']),this[_0x495650(0x72)]());}[_0x2513a0(0x94)](){const _0x217f10=_0x2513a0;this[_0x217f10(0xb7)]===G[_0x217f10(0xe7)]&&this['_stopFollowing']();}[_0x2513a0(0x8d)](_0x83cd08){const _0x5259a8=_0x2513a0;let {presenter:_0x253c86}=_0x83cd08[_0x5259a8(0x74)],_0x234804=this[_0x5259a8(0xd6)][_0x5259a8(0x9d)]();this[_0x5259a8(0x89)]=_0x253c86,_0x253c86===_0x234804?(this[_0x5259a8(0xae)](),this[_0x5259a8(0xc2)]()):this['_status']!==G[_0x5259a8(0xce)]&&(this[_0x5259a8(0x91)](),this[_0x5259a8(0x72)]());}[_0x2513a0(0xb2)](){const _0x359d83=_0x2513a0;let _0x4ad5e4={'eventID':_0x410fbb['LIVESHARE_FETCH_OPERATIONS']};this[_0x359d83(0xd6)][_0x359d83(0xd5)](_0x4ad5e4,this['_unitID']);}[_0x2513a0(0xd0)](){const _0x2028eb=_0x2513a0;this['_presenter']=null,this[_0x2028eb(0xb7)]!==G[_0x2028eb(0xc4)]&&this[_0x2028eb(0x9f)]();}['_handleNewChangeSets'](_0x506c53){const _0x142b94=_0x2513a0;if(this['_status']===G['FOLLOWING']&&this[_0x142b94(0x89)]===_0x506c53[_0x142b94(0x74)][_0x142b94(0xf4)]){let _0x581e17=_0x33853e(_0x506c53[_0x142b94(0x74)])[_0x142b94(0x81)][_0x142b94(0x85)]()[_0x142b94(0xbf)](_0x4e10fd=>_0x4e10fd['id']===_0x4f6c05['id']);if(_0x581e17){let _0x2e0d94=_0x581e17['params'][_0x142b94(0x8a)],_0x1597a5=_0x581e17[_0x142b94(0xb0)][_0x142b94(0xfd)]['id'];setTimeout(()=>{const _0x2bee90=_0x142b94;this[_0x2bee90(0x78)][_0x2bee90(0xcf)](_0x4e08ea['id'],{'unitId':_0x2e0d94,'subUnitId':_0x1597a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x9e17d6=_0x2513a0;this[_0x9e17d6(0xe8)][_0x9e17d6(0x76)](G[_0x9e17d6(0xc4)]);let _0x713966=new Map(),_0x79972b=this[_0x9e17d6(0xa1)]=new _0x2d19bf();_0x79972b[_0x9e17d6(0x82)](_0x5ab2d9(()=>{const _0x53a95e=_0x9e17d6;_0x713966[_0x53a95e(0xed)](_0x281bd2=>_0x281bd2['complete']()),_0x713966['clear']();})),_0x79972b[_0x9e17d6(0x82)](this['_commandService'][_0x9e17d6(0xa0)](_0x395bba=>{const _0x342434=_0x9e17d6;if(_0x395bba[_0x342434(0xab)]!==_0x2350d3[_0x342434(0x7a)]||!this[_0x342434(0x96)][_0x342434(0x6e)](_0x395bba['id']))return;let {id:_0x47cb55}=_0x395bba,_0x18ecc0;if(_0x713966[_0x342434(0xb3)](_0x47cb55))_0x18ecc0=_0x713966[_0x342434(0xd3)](_0x47cb55);else{var _0x268f91;_0x18ecc0=new _0x56499e(),_0x713966['set'](_0x47cb55,_0x18ecc0),_0x18ecc0[_0x342434(0xaa)](_0x3fdd56((_0x268f91=this[_0x342434(0xbb)]['getConfig'](_0x342434(0x8f)))==null?0xc8:_0x268f91,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x342434(0x9b)](_0x3e2abf=>{const _0x4a0a3d=_0x342434;this[_0x4a0a3d(0xd6)][_0x4a0a3d(0xd5)]({'eventID':_0x410fbb['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3e2abf['id']]:{'id':_0x3e2abf['id'],'params':JSON[_0x4a0a3d(0x9a)](_0x3e2abf[_0x4a0a3d(0xb0)])}}}},this[_0x4a0a3d(0xe2)]);});}_0x18ecc0[_0x342434(0x76)](_0x395bba);})),this['_liveShareService'][_0x9e17d6(0xac)](this[_0x9e17d6(0xe2)])[_0x9e17d6(0xed)](_0x2a13e0=>this[_0x9e17d6(0xd6)][_0x9e17d6(0xd5)]({'eventID':_0x410fbb[_0x9e17d6(0xf7)],'data':{'unitID':this[_0x9e17d6(0xe2)],'operations':{[_0x2a13e0['id']]:{'id':_0x2a13e0['id'],'params':JSON[_0x9e17d6(0x9a)](_0x2a13e0['params'])}}}},this['_unitID']));}[_0x2513a0(0x91)](){const _0x1856f7=_0x2513a0;var _0xaad460;this[_0x1856f7(0xe8)][_0x1856f7(0x76)](G[_0x1856f7(0x71)]),(_0xaad460=this[_0x1856f7(0xa1)])==null||_0xaad460[_0x1856f7(0xcb)](),this[_0x1856f7(0xa1)]=null;}[_0x2513a0(0x72)](){const _0x3dcfc0=_0x2513a0;var _0x1049a0;(_0x1049a0=this['_commandDisposable'])==null||_0x1049a0[_0x3dcfc0(0xcb)](),this['_status$'][_0x3dcfc0(0x76)](G[_0x3dcfc0(0xe7)]);}[_0x2513a0(0x9f)](){const _0xcf214f=_0x2513a0;var _0x4eab00;this[_0xcf214f(0xe8)][_0xcf214f(0x76)](G[_0xcf214f(0x71)]),(_0x4eab00=this[_0xcf214f(0xa1)])==null||_0x4eab00[_0xcf214f(0xcb)](),this['_commandDisposable']=null;}[_0x2513a0(0xae)](){const _0x581c3f=_0x2513a0;var _0x1c129a;this[_0x581c3f(0xe8)][_0x581c3f(0x76)](G[_0x581c3f(0xce)]),(_0x1c129a=this[_0x581c3f(0xa1)])==null||_0x1c129a['dispose']();}[_0x2513a0(0xf0)](_0x124414){const _0x556d36=_0x2513a0;if([G[_0x556d36(0xc4)],G[_0x556d36(0xce)],G[_0x556d36(0xa4)]][_0x556d36(0xe3)](this[_0x556d36(0xb7)])||!_0x124414[_0x556d36(0x74)]['presenter']||_0x124414[_0x556d36(0x74)][_0x556d36(0x102)]===this[_0x556d36(0xd6)][_0x556d36(0x9d)]())return;this[_0x556d36(0xb7)]===G[_0x556d36(0x71)]&&this[_0x556d36(0x72)]();let _0x4b22d8=_0x124414['data']['operations'];Object[_0x556d36(0xc1)](_0x4b22d8)['forEach'](_0x45ca4e=>{const _0x2f6a90=_0x556d36;this[_0x2f6a90(0x78)]['executeCommand'](_0x45ca4e['id'],_0x45ca4e[_0x2f6a90(0xb0)]?JSON[_0x2f6a90(0xa9)](_0x45ca4e['params']):null,{'fromCollab':!0x0});});}[_0x2513a0(0xe6)](){const _0x2a5637=_0x2513a0;var _0x17e3a2;this[_0x2a5637(0xe8)]['next'](G[_0x2a5637(0xa4)]),(_0x17e3a2=this[_0x2a5637(0xa1)])==null||_0x17e3a2[_0x2a5637(0xcb)]();}['_handleOnline'](){const _0x4415a2=_0x2513a0;this[_0x4415a2(0xe8)]['next'](G[_0x4415a2(0x71)]),this[_0x4415a2(0xb2)]();}};K=U([H(0x2,_0x212af8),H(0x3,_0x1b8e3f(V)),H(0x4,_0x5c22fb)],K);function q(){const _0x3dbe3a=_0x2513a0;let _0x38ba86=_0x63768(W),_0x3664dd=_0x63768(_0x19fa44),_0x525048=_0x3d864d(()=>_0x3664dd[_0x3dbe3a(0x9e)](_0x59028d[_0x3dbe3a(0x7c)]),void 0x0,!0x1,[]),[_0x4a844d,_0x3eeaa1]=_0x4b88a6(null),[_0x45c793,_0x5cf3eb]=_0x4b88a6(G[_0x3dbe3a(0x71)]),_0x58a79c=_0x17b498(null);return _0x23f7f4(()=>(_0x525048&&_0x38ba86[_0x3dbe3a(0x75)](_0x525048[_0x3dbe3a(0xb5)]())[_0x3dbe3a(0xee)](_0x392d0b=>{const _0x1afd00=_0x3dbe3a;_0x3eeaa1(_0x392d0b),_0x58a79c[_0x1afd00(0xbe)]=_0x392d0b[_0x1afd00(0xf2)]['subscribe'](_0x34154c=>{_0x5cf3eb(_0x34154c);});}),()=>{const _0x323a80=_0x3dbe3a;var _0x4358de;(_0x4358de=_0x58a79c[_0x323a80(0xbe)])==null||_0x4358de[_0x323a80(0xbc)](),_0x58a79c[_0x323a80(0xbe)]=null;}),[_0x525048,_0x38ba86]),_0x4a844d?_0xd9a983(_0x58c459,{'align':_0x3dbe3a(0xc0),'disabled':_0x45c793===G['OFFLINE'],'className':_0x3dbe3a(0xc7),'overlay':_0xd9a983(ce,{'status':_0x45c793,'coordinator':_0x4a844d}),'children':_0xd9a983(_0x3dbe3a(0xc5),{'className':_0x10de51(_0x3dbe3a(0x7f),{'univer-cursor-not-allowed':_0x45c793===G['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45c793!==G['OFFLINE']}),'type':_0x3dbe3a(0xc5),'children':_0xd9a983(_0x569935,{'className':'univer-size-4'})})}):null;}function ce(_0xc373a3){const _0x2d43dd=_0x2513a0;let {status:_0x5a9b6b,coordinator:_0x15c9c0}=_0xc373a3;switch(_0x5a9b6b){case G[_0x2d43dd(0x71)]:return _0xd9a983(le,{'coordinator':_0x15c9c0});case G['FOLLOWING']:return _0xd9a983(ue,{'coordinator':_0x15c9c0});case G[_0x2d43dd(0xce)]:return _0xd9a983(de,{'coordinator':_0x15c9c0});case G['OFFLINE']:return _0xd9a983(fe,{});case G['PRESENTING']:return _0xd9a983(J,{'coordinator':_0x15c9c0});default:return null;}}function le(_0x2417ef){const _0x4be4d2=_0x2513a0;let {coordinator:_0x319c32}=_0x2417ef;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x4be4d2(0x95),{'className':_0x4be4d2(0xdb),'children':_0x4be4d2(0xc9)}),_0xd9a983(_0x39a743,{'onClick':()=>_0x319c32[_0x4be4d2(0xd2)](),'children':'Start'})]});}function ue(_0x9bdaf8){const _0x6c33f1=_0x2513a0;let {coordinator:_0x3c90e5}=_0x9bdaf8;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x6c33f1(0x95),{'className':_0x6c33f1(0xdb),'children':_0x6c33f1(0xa2)}),_0xd9a983(_0x39a743,{'onClick':()=>_0x3c90e5[_0x6c33f1(0x94)](),'children':'Stop\x20following'})]});}function de(_0x1f90b4){const _0x4cad0d=_0x2513a0;let {coordinator:_0x2b6492}=_0x1f90b4;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x4cad0d(0x95),{'className':_0x4cad0d(0xdb),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xd9a983(_0x39a743,{'variant':'text','onClick':()=>_0x2b6492[_0x4cad0d(0xf9)](),'children':'Start\x20following'})]});}function J(_0x7bcdfd){const _0x3ed32e=_0x2513a0;let {coordinator:_0x47eaba}=_0x7bcdfd;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x3ed32e(0x95),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3ed32e(0x6f)}),_0xd9a983(_0x39a743,{'variant':_0x3ed32e(0xd9),'onClick':()=>_0x47eaba[_0x3ed32e(0x7d)](),'children':_0x3ed32e(0xfb)})]});}function fe(){const _0x35c176=_0x2513a0;return _0xd9a983(_0x82c5a5,{'children':_0x35c176(0xf3)});}let Y=class extends _0x7e3118{constructor(_0x379e14,_0x338635){super(),this['_injector']=_0x379e14,this['_uiPartsService']=_0x338635,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x464a53=_0x2513a0;this[_0x464a53(0xe5)](this[_0x464a53(0xfc)][_0x464a53(0x97)](_0x27c8b7[_0x464a53(0xca)],()=>_0x579567(q,this['_injector'])));}};Y=U([H(0x0,_0x1b8e3f(_0x44d9df)),H(0x1,_0x1fea8b)],Y);var pe=_0x2513a0(0x9c),me=_0x2513a0(0xde);const X=_0x2513a0(0x8c);Symbol(X);const Z={};let Q=class extends _0x7e3118{constructor(_0x5cb95c){const _0x17a58a=_0x2513a0;super(),this[_0x17a58a(0x96)]=_0x5cb95c,this[_0x17a58a(0xa7)]();}[_0x2513a0(0xa7)](){[_0x4ad841['id'],_0x42ce5d['id'],_0x4e08ea['id']]['forEach'](_0x15f90a=>{const _0x573058=_0x5d5b;this[_0x573058(0xe5)](this[_0x573058(0x96)][_0x573058(0x93)](_0x15f90a));});}};Q=U([H(0x0,_0x1b8e3f(V))],Q);let $=class extends _0x5aad12{constructor(_0x3b9461=Z,_0x1a84bc,_0x2bc71c){const _0x5b5419=_0x2513a0;super(),this[_0x5b5419(0xc8)]=_0x3b9461,this['_injector']=_0x1a84bc,this[_0x5b5419(0xbb)]=_0x2bc71c;let {..._0x361737}=_0x1d4a14({},Z,this[_0x5b5419(0xc8)]);this[_0x5b5419(0xbb)][_0x5b5419(0x70)](X,_0x361737);}[_0x2513a0(0xaf)](){const _0xcb0273=_0x2513a0;_0x30e8a5(this[_0xcb0273(0x100)],_0x580aae([[V],[W],[Q],[Y]],this['_config'][_0xcb0273(0xf1)])),_0x357def(this[_0xcb0273(0x100)],[[Q]]);}[_0x2513a0(0xe0)](){const _0x5d0e45=_0x2513a0;_0x357def(this[_0x5d0e45(0x100)],[[Y]]);}};B($,_0x2513a0(0xab),_0x59028d[_0x2513a0(0x77)]),B($,'pluginName',_0x2513a0(0xd7)),B($,_0x2513a0(0x83),pe),B($,_0x2513a0(0x98),me),$=U([_0x12cd2b(_0x1d07dd),H(0x1,_0x1b8e3f(_0x44d9df)),H(0x2,_0x212af8)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x3d0128=_0x3a4a;(function(_0x43a5b5,_0x238f87){const _0xdc1a9b=_0x3a4a,_0x196441=_0x43a5b5();while(!![]){try{const _0x5df09c=parseInt(_0xdc1a9b(0xf6))/0x1*(-parseInt(_0xdc1a9b(0x80))/0x2)+parseInt(_0xdc1a9b(0x79))/0x3+parseInt(_0xdc1a9b(0xb8))/0x4*(parseInt(_0xdc1a9b(0xa5))/0x5)+-parseInt(_0xdc1a9b(0xbb))/0x6*(parseInt(_0xdc1a9b(0x91))/0x7)+-parseInt(_0xdc1a9b(0x82))/0x8+-parseInt(_0xdc1a9b(0xbc))/0x9*(-parseInt(_0xdc1a9b(0xb5))/0xa)+-parseInt(_0xdc1a9b(0xff))/0xb*(-parseInt(_0xdc1a9b(0xf9))/0xc);if(_0x5df09c===_0x238f87)break;else _0x196441['push'](_0x196441['shift']());}catch(_0x647a7c){_0x196441['push'](_0x196441['shift']());}}}(_0x81b0,0xbff7e));import{CommandType as _0x1c1f49,DependentOn as _0x121476,Disposable as _0x54ca8c,DisposableCollection as _0x404ec6,ICommandService as _0x3b2faa,IConfigService as _0x4fe3b2,IUniverInstanceService as _0x36b23d,Inject as _0x93af7e,Injector as _0x17532c,Plugin as _0x577139,RxDisposable as _0x408881,UniverInstanceType as _0x484236,merge as _0x589157,mergeOverrideWithDependencies as _0x53db3c,registerDependencies as _0x311905,toDisposable as _0x3dceee,touchDependencies as _0x79afb0}from'@univerjs/core';import{BuiltInUIPart as _0x3e8e0b,IUIPartsService as _0x1eb6e7,connectInjector as _0x599550,useDependency as _0x292703,useObservable as _0x1e2dff}from'@univerjs/ui';import{Button as _0x4db05c,Dropdown as _0x5e92ce,clsx as _0x47db3d}from'@univerjs/design';import{LiveShareIcon as _0x5ed039}from'@univerjs/icons';import{useEffect as _0x5f059a,useRef as _0x923153,useState as _0x225091}from'react';import{CollaborationEvent as _0x36485c,parseProtocolChangeset as _0x302b6c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4e85bc,SessionStatus as _0x275f26,UniverCollaborationClientPlugin as _0xdc6e53}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x56fac8,SetWorksheetActiveOperation as _0x123026}from'@univerjs/sheets';import{BehaviorSubject as _0x4b568d,Subject as _0x1c4306}from'rxjs';import{takeUntil as _0x28704d,throttleTime as _0x3b0ab9}from'rxjs/operators';import{Fragment as _0x34cc85,jsx as _0x150cba,jsxs as _0x3a8fe6}from'react/jsx-runtime';import{SetScrollOperation as _0x576ee1,SetZoomRatioOperation as _0x52bfd1}from'@univerjs/sheets-ui';function L(_0x2f047e){'@babel/helpers - typeof';const _0x12c7ff=_0x3a4a;return L=typeof Symbol==_0x12c7ff(0xa3)&&typeof Symbol[_0x12c7ff(0xd5)]==_0x12c7ff(0xd8)?function(_0xf0ec1){return typeof _0xf0ec1;}:function(_0x182424){const _0x430bad=_0x12c7ff;return _0x182424&&typeof Symbol==_0x430bad(0xa3)&&_0x182424['constructor']===Symbol&&_0x182424!==Symbol[_0x430bad(0x92)]?_0x430bad(0xd8):typeof _0x182424;},L(_0x2f047e);}function R(_0x112890,_0x1b9a47){const _0x193153=_0x3a4a;if(L(_0x112890)!=_0x193153(0xdf)||!_0x112890)return _0x112890;var _0x370916=_0x112890[Symbol[_0x193153(0xdb)]];if(_0x370916!==void 0x0){var _0x267eea=_0x370916[_0x193153(0x97)](_0x112890,_0x1b9a47||_0x193153(0x98));if(L(_0x267eea)!=_0x193153(0xdf))return _0x267eea;throw TypeError(_0x193153(0x71));}return(_0x1b9a47===_0x193153(0x7d)?String:Number)(_0x112890);}function z(_0x5399ff){const _0x1bbe8a=_0x3a4a;var _0x116650=R(_0x5399ff,_0x1bbe8a(0x7d));return L(_0x116650)==_0x1bbe8a(0xd8)?_0x116650:_0x116650+'';}function B(_0x4a1412,_0x4a6154,_0x467bac){const _0x2e990d=_0x3a4a;return(_0x4a6154=z(_0x4a6154))in _0x4a1412?Object[_0x2e990d(0xb3)](_0x4a1412,_0x4a6154,{'value':_0x467bac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a1412[_0x4a6154]=_0x467bac,_0x4a1412;}var V=class extends _0x54ca8c{constructor(..._0x52fdb3){const _0x1a8e40=_0x3a4a;super(..._0x52fdb3),B(this,_0x1a8e40(0x78),new Set()),B(this,'_reporters',new Set());}[_0x3d0128(0xfa)](_0x3a657f){const _0x159b27=_0x3d0128;return this[_0x159b27(0x78)]['add'](_0x3a657f),_0x3dceee(()=>this[_0x159b27(0x78)][_0x159b27(0xa9)](_0x3a657f));}[_0x3d0128(0xe7)](_0x3aa66d){const _0x372e68=_0x3d0128;return this[_0x372e68(0xf3)][_0x372e68(0xfc)](_0x3aa66d),_0x3dceee(()=>this['_reporters'][_0x372e68(0xa9)](_0x3aa66d));}[_0x3d0128(0x9d)](_0x23358c){const _0x33c152=_0x3d0128;return this[_0x33c152(0x78)][_0x33c152(0xf8)](_0x23358c);}[_0x3d0128(0xd1)](_0x103688){const _0x2859f7=_0x3d0128;return Array[_0x2859f7(0xac)](this['_reporters'])[_0x2859f7(0xd6)](_0x18007d=>_0x18007d(_0x103688));}};function H(_0x14b0a8,_0x2c0dbb){return function(_0x124495,_0x3bdf65){_0x2c0dbb(_0x124495,_0x3bdf65,_0x14b0a8);};}function U(_0x3bcbfb,_0x1af238,_0x2cb87b,_0x1412fa){const _0x2f2adf=_0x3d0128;var _0x16c969=arguments[_0x2f2adf(0x8e)],_0x3a41db=_0x16c969<0x3?_0x1af238:_0x1412fa===null?_0x1412fa=Object[_0x2f2adf(0x101)](_0x1af238,_0x2cb87b):_0x1412fa,_0x447519;if(typeof Reflect==_0x2f2adf(0xdf)&&typeof Reflect[_0x2f2adf(0xc4)]==_0x2f2adf(0xa3))_0x3a41db=Reflect['decorate'](_0x3bcbfb,_0x1af238,_0x2cb87b,_0x1412fa);else{for(var _0x411c36=_0x3bcbfb['length']-0x1;_0x411c36>=0x0;_0x411c36--)(_0x447519=_0x3bcbfb[_0x411c36])&&(_0x3a41db=(_0x16c969<0x3?_0x447519(_0x3a41db):_0x16c969>0x3?_0x447519(_0x1af238,_0x2cb87b,_0x3a41db):_0x447519(_0x1af238,_0x2cb87b))||_0x3a41db);}return _0x16c969>0x3&&_0x3a41db&&Object['defineProperty'](_0x1af238,_0x2cb87b,_0x3a41db),_0x3a41db;}let W=class extends _0x408881{constructor(_0x52c037,_0x45e154,_0x54214d){const _0x4a7d37=_0x3d0128;super(),this[_0x4a7d37(0x8f)]=_0x52c037,this['_injector']=_0x45e154,this[_0x4a7d37(0x99)]=_0x54214d,B(this,_0x4a7d37(0xe8),new Map()),this[_0x4a7d37(0xa0)]();}async[_0x3d0128(0xfb)](_0x363793){const _0x5c80cc=_0x3d0128;return this[_0x5c80cc(0xe8)][_0x5c80cc(0xf8)](_0x363793)||await this['_startLiveShareCoordinator'](_0x363793),this[_0x5c80cc(0xe8)][_0x5c80cc(0xc3)](_0x363793);}[_0x3d0128(0x75)](_0x39e9c3){const _0x548768=_0x3d0128;var _0x2cd567;return(_0x2cd567=this[_0x548768(0xe8)]['get'](_0x39e9c3))==null?null:_0x2cd567;}[_0x3d0128(0xa0)](){const _0x110d41=_0x3d0128;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x484236[_0x110d41(0x100)])['pipe'](_0x28704d(this[_0x110d41(0xca)]))['subscribe'](async _0x207c03=>{const _0x57210f=_0x110d41;let _0x46b0d3=_0x207c03[_0x57210f(0x85)]();this[_0x57210f(0xe8)][_0x57210f(0xf8)](_0x46b0d3)||this['_startLiveShareCoordinator'](_0x46b0d3);}),this[_0x110d41(0x8f)][_0x110d41(0xfd)](_0x484236['UNIVER_SHEET'])[_0x110d41(0xbe)](_0x28704d(this[_0x110d41(0xca)]))[_0x110d41(0x94)](_0x324c12=>{const _0x49669b=_0x110d41;let _0x304b9f=_0x324c12['getUnitId'](),_0x5b2e61=this[_0x49669b(0xe8)][_0x49669b(0xc3)](_0x304b9f);_0x5b2e61==null||_0x5b2e61[_0x49669b(0x74)]();});}async['_startLiveShareCoordinator'](_0x23614f){const _0x109eb9=_0x3d0128;let _0x4a76ec=await this[_0x109eb9(0x99)][_0x109eb9(0xb1)](_0x23614f),_0x2105a5=this[_0x109eb9(0xf0)][_0x109eb9(0x8a)](K,_0x23614f,_0x4a76ec);return _0x2105a5[_0x109eb9(0x95)](),this[_0x109eb9(0xe8)][_0x109eb9(0x96)](_0x23614f,_0x2105a5),_0x2105a5;}};W=U([H(0x0,_0x36b23d),H(0x1,_0x93af7e(_0x17532c)),H(0x2,_0x93af7e(_0x4e85bc))],W);function _0x81b0(){const _0x5be810=['send','_reporters','current','_handleTerminate','1pdEKrH','IDLE','has','5528052TYVqzh','registerSharedOperation','getLiveShareCoordinator','add','getTypeOfUnitDisposed$','_handleNewHost','55LIfkKt','UNIVER_SHEET','getOwnPropertyDescriptor','reverse','LIVESHARE_REQUEST_HOST','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_status','LIVESHARE_NEW_HOST','dispose','getLiveShareCoordinatorSync','FOLLOWING','_configService','_sharedOperations','2360313zakbqk','event$','version','_status$','string','status$','tryStartPresenting','2799436xQCGvw','onRendered','12045232HRpldi','OFFLINE','live-share.config','getUnitId','PRESENTING','UNIVER_UNKNOWN','_stopFollowing','not-following','createInstance','next','LIVESHARE_FETCH_OPERATIONS','_handleOnline','length','_univerInstanceService','Stop\x20following','1189972yYxiKS','prototype','_uiPartsService','subscribe','init','set','call','default','_collabSessionService','includes','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20not\x20following\x20the\x20presenter','shouldShareOperation','then','_config','_init','LIVESHARE_OPERATION','find','function','You\x27re\x20following\x20the\x20presenter','5ClSwHt','presenting','packageName','type','delete','registerComponent','div','from','getValue','HEADER_MENU','pluginName','idle','requireSession','getMemberID','defineProperty','_collabSession','350mkMyBH','stopPresenting','Stop\x20presenting','4259820spcdzA','You\x27are\x20offline.','executeCommand','42yPvXcN','186831HUjXLe','_commandService','pipe','stopFollowing','text','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','asObservable','get','decorate','sessionStatus$','following','params','override','data','dispose$','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','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','parse','_commandDisposable','_handleOperation','getInitialStates','getCurrentTypeOfUnit$','setConfig','startFollowing','iterator','map','UNIVER_LIVE_SHARE_PLUGIN','symbol','stringify','_unitID','toPrimitive','NOT_FOLLOWING','univer-size-4','disposeWithMe','object','sheet','_presenter','memberID','_beIdle','_startPresenting','unsubscribe','_mountLiveShare','registerInitialStateReporter','_entities','forEach','_liveShareService','_handleNewChangeSets','complete','clear','onCommandExecuted','_stopPresenting','_injector','_startFollowing'];_0x81b0=function(){return _0x5be810;};return _0x81b0();}let G=function(_0x13a00e){const _0x7a83c5=_0x3d0128;return _0x13a00e[_0x7a83c5(0x83)]='offline',_0x13a00e[_0x7a83c5(0xf7)]=_0x7a83c5(0xb0),_0x13a00e[_0x7a83c5(0x76)]=_0x7a83c5(0xc6),_0x13a00e[_0x7a83c5(0xdc)]=_0x7a83c5(0x89),_0x13a00e[_0x7a83c5(0x86)]=_0x7a83c5(0xa6),_0x13a00e;}({}),K=class extends _0x408881{get[_0x3d0128(0x72)](){const _0x2ee48d=_0x3d0128;return this[_0x2ee48d(0x7c)][_0x2ee48d(0xad)]();}constructor(_0x142275,_0x15e2b2,_0x2ecf9e,_0xb9df78,_0x20b199){const _0x207624=_0x3d0128;super(),this['_unitID']=_0x142275,this[_0x207624(0xb4)]=_0x15e2b2,this[_0x207624(0x77)]=_0x2ecf9e,this[_0x207624(0xea)]=_0xb9df78,this[_0x207624(0xbd)]=_0x20b199,B(this,_0x207624(0x7c),new _0x4b568d(G['IDLE'])),B(this,_0x207624(0x7e),this[_0x207624(0x7c)][_0x207624(0xc2)]()),B(this,_0x207624(0xa0),!0x1),B(this,_0x207624(0xcf),null),B(this,_0x207624(0xe1),null);}[_0x3d0128(0x74)](){const _0x36e95b=_0x3d0128;var _0x149582;(_0x149582=this[_0x36e95b(0xcf)])==null||_0x149582[_0x36e95b(0x74)](),this[_0x36e95b(0x7c)][_0x36e95b(0x8b)](G[_0x36e95b(0xf7)]),this[_0x36e95b(0x7c)][_0x36e95b(0xec)]();}['getStatus'](){const _0x24aa55=_0x3d0128;return this[_0x24aa55(0x72)];}['init'](){const _0x29ad10=_0x3d0128;this[_0x29ad10(0xa0)]||(this[_0x29ad10(0xa0)]=!0x0,this[_0x29ad10(0xb4)][_0x29ad10(0xc5)]['pipe'](_0x28704d(this[_0x29ad10(0xca)]))[_0x29ad10(0x94)](_0x113580=>{const _0x1279bc=_0x29ad10;switch(_0x113580){case _0x275f26[_0x1279bc(0x83)]:this['_handleOffline']();break;case _0x275f26['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x29ad10(0xb4)][_0x29ad10(0x7a)][_0x29ad10(0xbe)](_0x28704d(this['dispose$']))['subscribe'](_0xa8475b=>{const _0xb4ba09=_0x29ad10;let {eventID:_0x44c13b}=_0xa8475b;switch(_0x44c13b){case _0x36485c[_0xb4ba09(0x73)]:this[_0xb4ba09(0xfe)](_0xa8475b);break;case _0x36485c[_0xb4ba09(0xa1)]:this[_0xb4ba09(0xd0)](_0xa8475b);break;case _0x36485c['LIVESHARE_TERMINATE']:this[_0xb4ba09(0xf5)]();break;case _0x36485c['NEW_CHANGESETS']:this[_0xb4ba09(0xeb)](_0xa8475b);break;default:}}));}['tryStartPresenting'](){const _0x43fbfd=_0x3d0128;this[_0x43fbfd(0xb4)][_0x43fbfd(0xf2)]({'eventID':_0x36485c[_0x43fbfd(0x103)],'data':{'unitID':this['_unitID'],'userID':this[_0x43fbfd(0xb4)]['getMemberID']()}},this[_0x43fbfd(0xda)]);}[_0x3d0128(0xb6)](){const _0x13ef84=_0x3d0128;this['_status']===G[_0x13ef84(0x86)]&&(this[_0x13ef84(0x7c)][_0x13ef84(0x8b)](G[_0x13ef84(0xf7)]),this[_0x13ef84(0xb4)]['send']({'eventID':_0x36485c['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x13ef84(0xda)]}},this['_unitID']));}[_0x3d0128(0xd4)](){const _0x1b3c8b=_0x3d0128;this[_0x1b3c8b(0x72)]===G[_0x1b3c8b(0xdc)]&&(this[_0x1b3c8b(0x7c)]['next'](G[_0x1b3c8b(0x76)]),this[_0x1b3c8b(0xf1)]());}['stopFollowing'](){const _0x5607f2=_0x3d0128;this['_status']===G[_0x5607f2(0x76)]&&this[_0x5607f2(0x88)]();}[_0x3d0128(0xfe)](_0x218c2f){const _0x36bc2f=_0x3d0128;let {presenter:_0xb31db8}=_0x218c2f[_0x36bc2f(0xc9)],_0x280f22=this['_collabSession'][_0x36bc2f(0xb2)]();this[_0x36bc2f(0xe1)]=_0xb31db8,_0xb31db8===_0x280f22?(this[_0x36bc2f(0x88)](),this[_0x36bc2f(0xe4)]()):this['_status']!==G[_0x36bc2f(0xdc)]&&(this[_0x36bc2f(0xef)](),this[_0x36bc2f(0xf1)]());}['_fetchOperations'](){const _0x40b24b=_0x3d0128;let _0x2a82c6={'eventID':_0x36485c[_0x40b24b(0x8c)]};this[_0x40b24b(0xb4)]['send'](_0x2a82c6,this[_0x40b24b(0xda)]);}[_0x3d0128(0xf5)](){const _0x2683ff=_0x3d0128;this['_presenter']=null,this[_0x2683ff(0x72)]!==G[_0x2683ff(0x86)]&&this[_0x2683ff(0xe3)]();}[_0x3d0128(0xeb)](_0x49c559){const _0x40f4a6=_0x3d0128;if(this[_0x40f4a6(0x72)]===G[_0x40f4a6(0x76)]&&this[_0x40f4a6(0xe1)]===_0x49c559[_0x40f4a6(0xc9)][_0x40f4a6(0xe2)]){let _0x489a8f=_0x302b6c(_0x49c559[_0x40f4a6(0xc9)])['mutations'][_0x40f4a6(0x102)]()[_0x40f4a6(0xa2)](_0x12c736=>_0x12c736['id']===_0x56fac8['id']);if(_0x489a8f){let _0x4663d2=_0x489a8f[_0x40f4a6(0xc7)]['unitId'],_0x4df101=_0x489a8f['params'][_0x40f4a6(0xe0)]['id'];setTimeout(()=>{const _0x3242a1=_0x40f4a6;this[_0x3242a1(0xbd)]['executeCommand'](_0x123026['id'],{'unitId':_0x4663d2,'subUnitId':_0x4df101},{'fromCollab':!0x0});});}}}[_0x3d0128(0xe4)](){const _0xe70f26=_0x3d0128;this[_0xe70f26(0x7c)]['next'](G[_0xe70f26(0x86)]);let _0x2abefb=new Map(),_0x409cdf=this[_0xe70f26(0xcf)]=new _0x404ec6();_0x409cdf[_0xe70f26(0xfc)](_0x3dceee(()=>{const _0x462c94=_0xe70f26;_0x2abefb['forEach'](_0x57e5a9=>_0x57e5a9[_0x462c94(0xec)]()),_0x2abefb[_0x462c94(0xed)]();})),_0x409cdf[_0xe70f26(0xfc)](this['_commandService'][_0xe70f26(0xee)](_0x16f1f2=>{const _0x146a3c=_0xe70f26;if(_0x16f1f2[_0x146a3c(0xa8)]!==_0x1c1f49['OPERATION']||!this[_0x146a3c(0xea)][_0x146a3c(0x9d)](_0x16f1f2['id']))return;let {id:_0x40f0cc}=_0x16f1f2,_0x3d32b6;if(_0x2abefb[_0x146a3c(0xf8)](_0x40f0cc))_0x3d32b6=_0x2abefb[_0x146a3c(0xc3)](_0x40f0cc);else{var _0x4b9047;_0x3d32b6=new _0x1c4306(),_0x2abefb['set'](_0x40f0cc,_0x3d32b6),_0x3d32b6[_0x146a3c(0xbe)](_0x3b0ab9((_0x4b9047=this[_0x146a3c(0x77)]['getConfig'](_0x146a3c(0xcc)))==null?0xc8:_0x4b9047,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x146a3c(0x94)](_0x4e8d24=>{const _0x5b5776=_0x146a3c;this['_collabSession'][_0x5b5776(0xf2)]({'eventID':_0x36485c[_0x5b5776(0xa1)],'data':{'unitID':this[_0x5b5776(0xda)],'operations':{[_0x4e8d24['id']]:{'id':_0x4e8d24['id'],'params':JSON['stringify'](_0x4e8d24[_0x5b5776(0xc7)])}}}},this['_unitID']);});}_0x3d32b6['next'](_0x16f1f2);})),this[_0xe70f26(0xea)][_0xe70f26(0xd1)](this['_unitID'])[_0xe70f26(0xe9)](_0x1f7b11=>this[_0xe70f26(0xb4)][_0xe70f26(0xf2)]({'eventID':_0x36485c[_0xe70f26(0xa1)],'data':{'unitID':this[_0xe70f26(0xda)],'operations':{[_0x1f7b11['id']]:{'id':_0x1f7b11['id'],'params':JSON[_0xe70f26(0xd9)](_0x1f7b11[_0xe70f26(0xc7)])}}}},this[_0xe70f26(0xda)]));}['_stopPresenting'](){const _0x5bfa5a=_0x3d0128;var _0x21e98d;this[_0x5bfa5a(0x7c)]['next'](G[_0x5bfa5a(0xf7)]),(_0x21e98d=this[_0x5bfa5a(0xcf)])==null||_0x21e98d[_0x5bfa5a(0x74)](),this['_commandDisposable']=null;}[_0x3d0128(0xf1)](){const _0x412f6a=_0x3d0128;var _0x4cdc70;(_0x4cdc70=this[_0x412f6a(0xcf)])==null||_0x4cdc70['dispose'](),this[_0x412f6a(0x7c)][_0x412f6a(0x8b)](G[_0x412f6a(0x76)]);}[_0x3d0128(0xe3)](){const _0x59e475=_0x3d0128;var _0x26ea35;this[_0x59e475(0x7c)]['next'](G[_0x59e475(0xf7)]),(_0x26ea35=this[_0x59e475(0xcf)])==null||_0x26ea35[_0x59e475(0x74)](),this[_0x59e475(0xcf)]=null;}['_stopFollowing'](){const _0x2421b1=_0x3d0128;var _0x2e73e0;this['_status$']['next'](G[_0x2421b1(0xdc)]),(_0x2e73e0=this[_0x2421b1(0xcf)])==null||_0x2e73e0['dispose']();}[_0x3d0128(0xd0)](_0x19e6ef){const _0x2bc91a=_0x3d0128;if([G[_0x2bc91a(0x86)],G[_0x2bc91a(0xdc)],G[_0x2bc91a(0x83)]][_0x2bc91a(0x9a)](this[_0x2bc91a(0x72)])||!_0x19e6ef[_0x2bc91a(0xc9)]['presenter']||_0x19e6ef[_0x2bc91a(0xc9)]['presenter']===this[_0x2bc91a(0xb4)]['getMemberID']())return;this[_0x2bc91a(0x72)]===G['IDLE']&&this['_startFollowing']();let _0x2705ce=_0x19e6ef[_0x2bc91a(0xc9)]['operations'];Object['values'](_0x2705ce)[_0x2bc91a(0xe9)](_0x3c48b4=>{const _0x24af84=_0x2bc91a;this[_0x24af84(0xbd)][_0x24af84(0xba)](_0x3c48b4['id'],_0x3c48b4['params']?JSON[_0x24af84(0xce)](_0x3c48b4[_0x24af84(0xc7)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1627e1=_0x3d0128;var _0x26d5b8;this[_0x1627e1(0x7c)][_0x1627e1(0x8b)](G[_0x1627e1(0x83)]),(_0x26d5b8=this[_0x1627e1(0xcf)])==null||_0x26d5b8[_0x1627e1(0x74)]();}[_0x3d0128(0x8d)](){const _0x51bac5=_0x3d0128;this[_0x51bac5(0x7c)]['next'](G['IDLE']),this[_0x51bac5(0xcd)]();}};K=U([H(0x2,_0x4fe3b2),H(0x3,_0x93af7e(V)),H(0x4,_0x3b2faa)],K);function q(){const _0x2bb6aa=_0x3d0128;let _0x52359d=_0x292703(W),_0x4f7805=_0x292703(_0x36b23d),_0x305964=_0x1e2dff(()=>_0x4f7805[_0x2bb6aa(0xd2)](_0x484236[_0x2bb6aa(0x100)]),void 0x0,!0x1,[]),[_0x3f91e1,_0x390e0a]=_0x225091(null),[_0x5cad62,_0x23ae23]=_0x225091(G[_0x2bb6aa(0xf7)]),_0x5891b4=_0x923153(null);return _0x5f059a(()=>(_0x305964&&_0x52359d[_0x2bb6aa(0xfb)](_0x305964['getUnitId']())[_0x2bb6aa(0x9e)](_0x3b0e55=>{const _0x2de2b8=_0x2bb6aa;_0x390e0a(_0x3b0e55),_0x5891b4[_0x2de2b8(0xf4)]=_0x3b0e55[_0x2de2b8(0x7e)][_0x2de2b8(0x94)](_0x507292=>{_0x23ae23(_0x507292);});}),()=>{const _0x2268c3=_0x2bb6aa;var _0x2463ff;(_0x2463ff=_0x5891b4[_0x2268c3(0xf4)])==null||_0x2463ff[_0x2268c3(0xe5)](),_0x5891b4[_0x2268c3(0xf4)]=null;}),[_0x305964,_0x52359d]),_0x3f91e1?_0x150cba(_0x5e92ce,{'align':'end','disabled':_0x5cad62===G[_0x2bb6aa(0x83)],'className':_0x2bb6aa(0xcb),'overlay':_0x150cba(ce,{'status':_0x5cad62,'coordinator':_0x3f91e1}),'children':_0x150cba('button',{'className':_0x47db3d(_0x2bb6aa(0xc1),{'univer-cursor-not-allowed':_0x5cad62===G[_0x2bb6aa(0x83)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5cad62!==G[_0x2bb6aa(0x83)]}),'type':'button','children':_0x150cba(_0x5ed039,{'className':_0x2bb6aa(0xdd)})})}):null;}function ce(_0x549910){const _0x422724=_0x3d0128;let {status:_0x215f42,coordinator:_0x47d61d}=_0x549910;switch(_0x215f42){case G[_0x422724(0xf7)]:return _0x150cba(le,{'coordinator':_0x47d61d});case G['FOLLOWING']:return _0x150cba(ue,{'coordinator':_0x47d61d});case G[_0x422724(0xdc)]:return _0x150cba(de,{'coordinator':_0x47d61d});case G[_0x422724(0x83)]:return _0x150cba(fe,{});case G[_0x422724(0x86)]:return _0x150cba(J,{'coordinator':_0x47d61d});default:return null;}}function le(_0x533b25){const _0x42a562=_0x3d0128;let {coordinator:_0x41c01a}=_0x533b25;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x42a562(0xab),{'className':_0x42a562(0x9b),'children':'Present\x20this\x20document'}),_0x150cba(_0x4db05c,{'onClick':()=>_0x41c01a[_0x42a562(0x7f)](),'children':'Start'})]});}function ue(_0x4e8fea){const _0x12554d=_0x3d0128;let {coordinator:_0x1a36c6}=_0x4e8fea;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x12554d(0xab),{'className':_0x12554d(0x9b),'children':_0x12554d(0xa4)}),_0x150cba(_0x4db05c,{'onClick':()=>_0x1a36c6[_0x12554d(0xbf)](),'children':_0x12554d(0x90)})]});}function de(_0x107792){const _0x211c43=_0x3d0128;let {coordinator:_0x2cf9d8}=_0x107792;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba('div',{'className':_0x211c43(0x9b),'children':_0x211c43(0x9c)}),_0x150cba(_0x4db05c,{'variant':_0x211c43(0xc0),'onClick':()=>_0x2cf9d8[_0x211c43(0xd4)](),'children':'Start\x20following'})]});}function J(_0x29e284){const _0x1515a6=_0x3d0128;let {coordinator:_0x34a351}=_0x29e284;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x1515a6(0xab),{'className':_0x1515a6(0x9b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x150cba(_0x4db05c,{'variant':_0x1515a6(0x98),'onClick':()=>_0x34a351[_0x1515a6(0xb6)](),'children':_0x1515a6(0xb7)})]});}function fe(){const _0x3934de=_0x3d0128;return _0x150cba(_0x34cc85,{'children':_0x3934de(0xb9)});}let Y=class extends _0x54ca8c{constructor(_0x29bfed,_0x1bef65){const _0x230a90=_0x3d0128;super(),this[_0x230a90(0xf0)]=_0x29bfed,this[_0x230a90(0x93)]=_0x1bef65,this[_0x230a90(0xe6)]();}['_mountLiveShare'](){const _0x5ce18c=_0x3d0128;this['disposeWithMe'](this[_0x5ce18c(0x93)][_0x5ce18c(0xaa)](_0x3e8e0b[_0x5ce18c(0xae)],()=>_0x599550(q,this[_0x5ce18c(0xf0)])));}};Y=U([H(0x0,_0x93af7e(_0x17532c)),H(0x1,_0x1eb6e7)],Y);var pe='@univerjs-pro/live-share',me='0.20.0';const X=_0x3d0128(0x84);Symbol(X);const Z={};let Q=class extends _0x54ca8c{constructor(_0x47c3c9){const _0xbac056=_0x3d0128;super(),this[_0xbac056(0xea)]=_0x47c3c9,this['_init']();}[_0x3d0128(0xa0)](){const _0x222173=_0x3d0128;[_0x52bfd1['id'],_0x576ee1['id'],_0x123026['id']][_0x222173(0xe9)](_0x5d4bd7=>{const _0x37b975=_0x222173;this[_0x37b975(0xde)](this[_0x37b975(0xea)][_0x37b975(0xfa)](_0x5d4bd7));});}};Q=U([H(0x0,_0x93af7e(V))],Q);let $=class extends _0x577139{constructor(_0x395f72=Z,_0x291db0,_0x2be72b){const _0x3ebf18=_0x3d0128;super(),this['_config']=_0x395f72,this[_0x3ebf18(0xf0)]=_0x291db0,this[_0x3ebf18(0x77)]=_0x2be72b;let {..._0x2796ad}=_0x589157({},Z,this[_0x3ebf18(0x9f)]);this[_0x3ebf18(0x77)][_0x3ebf18(0xd3)](X,_0x2796ad);}['onStarting'](){const _0x339618=_0x3d0128;_0x311905(this[_0x339618(0xf0)],_0x53db3c([[V],[W],[Q],[Y]],this[_0x339618(0x9f)][_0x339618(0xc8)])),_0x79afb0(this[_0x339618(0xf0)],[[Q]]);}[_0x3d0128(0x81)](){const _0x1eac88=_0x3d0128;_0x79afb0(this[_0x1eac88(0xf0)],[[Y]]);}};B($,_0x3d0128(0xa8),_0x484236[_0x3d0128(0x87)]),B($,_0x3d0128(0xaf),_0x3d0128(0xd7)),B($,_0x3d0128(0xa7),pe),B($,_0x3d0128(0x7b),me),$=U([_0x121476(_0xdc6e53),H(0x1,_0x93af7e(_0x17532c)),H(0x2,_0x4fe3b2)],$);function _0x3a4a(_0xa72e4e,_0x11fe7e){_0xa72e4e=_0xa72e4e-0x71;const _0x81b0ff=_0x81b0();let _0x3a4a70=_0x81b0ff[_0xa72e4e];return _0x3a4a70;}export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2e01(_0x26cb5a,_0x57a94c){_0x26cb5a=_0x26cb5a-0x95;const _0x375515=_0x3755();let _0x2e0101=_0x375515[_0x26cb5a];return _0x2e0101;}const _0x1ac819=_0x2e01;(function(_0x44a360,_0x2dfa61){const _0x147b8d=_0x2e01,_0x15e420=_0x44a360();while(!![]){try{const _0x4852d7=-parseInt(_0x147b8d(0x99))/0x1+parseInt(_0x147b8d(0xb9))/0x2+-parseInt(_0x147b8d(0x9d))/0x3*(parseInt(_0x147b8d(0xb6))/0x4)+-parseInt(_0x147b8d(0xa0))/0x5*(parseInt(_0x147b8d(0xa8))/0x6)+-parseInt(_0x147b8d(0xb7))/0x7*(-parseInt(_0x147b8d(0x97))/0x8)+parseInt(_0x147b8d(0xa1))/0x9+-parseInt(_0x147b8d(0x98))/0xa*(-parseInt(_0x147b8d(0x9c))/0xb);if(_0x4852d7===_0x2dfa61)break;else _0x15e420['push'](_0x15e420['shift']());}catch(_0x1d27ed){_0x15e420['push'](_0x15e420['shift']());}}}(_0x3755,0xf0ba5));import{LiveShareController as _0x5c53d4,LiveShareStatus as _0x828f1e}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x1f1bd3,UniverInstanceType as _0x3b877f}from'@univerjs/core';import{FEnum as _0x542a30,FUniver as _0x55fbe7}from'@univerjs/core/facade';function o(_0x43ee50){'@babel/helpers - typeof';const _0x311072=_0x2e01;return o=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x311072(0x95)?function(_0x5c13d4){return typeof _0x5c13d4;}:function(_0xf31312){const _0x4061c8=_0x311072;return _0xf31312&&typeof Symbol==_0x4061c8(0xac)&&_0xf31312[_0x4061c8(0xaf)]===Symbol&&_0xf31312!==Symbol[_0x4061c8(0xae)]?_0x4061c8(0x95):typeof _0xf31312;},o(_0x43ee50);}function s(_0x3cf264,_0x39d09d){const _0x41de3b=_0x2e01;if(o(_0x3cf264)!=_0x41de3b(0xa2)||!_0x3cf264)return _0x3cf264;var _0x5d2ef5=_0x3cf264[Symbol[_0x41de3b(0xb2)]];if(_0x5d2ef5!==void 0x0){var _0x20b937=_0x5d2ef5[_0x41de3b(0xa5)](_0x3cf264,_0x39d09d||_0x41de3b(0xb5));if(o(_0x20b937)!=_0x41de3b(0xa2))return _0x20b937;throw TypeError(_0x41de3b(0xba));}return(_0x39d09d===_0x41de3b(0xa4)?String:Number)(_0x3cf264);}function c(_0x59f9c0){const _0x4018a7=_0x2e01;var _0x53c545=s(_0x59f9c0,_0x4018a7(0xa4));return o(_0x53c545)=='symbol'?_0x53c545:_0x53c545+'';}function l(_0x5bad48,_0x48111a,_0xa574e8){const _0x5745fc=_0x2e01;return(_0x48111a=c(_0x48111a))in _0x5bad48?Object[_0x5745fc(0x9b)](_0x5bad48,_0x48111a,{'value':_0xa574e8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5bad48[_0x48111a]=_0xa574e8,_0x5bad48;}var u=class extends _0x55fbe7{constructor(..._0x5685cb){const _0x3ac38f=_0x2e01;super(..._0x5685cb),l(this,_0x3ac38f(0xb1),void 0x0);}['_initialize'](_0x5d8959){const _0x3ee53=_0x2e01;this[_0x3ee53(0xb1)]=_0x5d8959[_0x3ee53(0x96)](_0x5c53d4);}[_0x1ac819(0xab)](){const _0x525cc9=_0x1ac819;var _0x31bf9f;let _0xba21d9=this['_injector']['get'](_0x1f1bd3)[_0x525cc9(0xa7)](_0x3b877f[_0x525cc9(0x9a)]);if(!_0xba21d9)throw Error(_0x525cc9(0xb4));let _0x490c6d=_0xba21d9[_0x525cc9(0xa3)](),_0x372922=this[_0x525cc9(0xb1)]['getLiveShareCoordinatorSync'](_0x490c6d);return(_0x31bf9f=_0x372922==null?void 0x0:_0x372922[_0x525cc9(0xb8)]())==null?_0x828f1e[_0x525cc9(0x9f)]:_0x31bf9f;}[_0x1ac819(0xa9)](){const _0x596cd6=_0x1ac819;let _0x5d5a39=this[_0x596cd6(0xb3)][_0x596cd6(0x96)](_0x1f1bd3)[_0x596cd6(0xa7)](_0x3b877f[_0x596cd6(0x9a)]);if(!_0x5d5a39)throw Error(_0x596cd6(0xb4));let _0x565636=_0x5d5a39[_0x596cd6(0xa3)](),_0x4a370b=this[_0x596cd6(0xb1)][_0x596cd6(0xb0)](_0x565636);if(!_0x4a370b)throw Error(_0x596cd6(0xaa));_0x4a370b[_0x596cd6(0xa9)]();}[_0x1ac819(0x9e)](){const _0x33f1fd=_0x1ac819;let _0x30df6f=this[_0x33f1fd(0xb3)][_0x33f1fd(0x96)](_0x1f1bd3)[_0x33f1fd(0xa7)](_0x3b877f[_0x33f1fd(0x9a)]);if(!_0x30df6f)throw Error(_0x33f1fd(0xb4));let _0x50cf72=_0x30df6f[_0x33f1fd(0xa3)](),_0x34f8c4=this['_liveShareController'][_0x33f1fd(0xb0)](_0x50cf72);if(!_0x34f8c4)throw Error(_0x33f1fd(0xaa));_0x34f8c4[_0x33f1fd(0x9e)]();}[_0x1ac819(0xa6)](){const _0x14d12f=_0x1ac819;let _0x509b9f=this[_0x14d12f(0xb3)][_0x14d12f(0x96)](_0x1f1bd3)[_0x14d12f(0xa7)](_0x3b877f[_0x14d12f(0x9a)]);if(!_0x509b9f)throw Error('No\x20active\x20workbook\x20found.');let _0x4bdb77=_0x509b9f['getUnitId'](),_0x2f5130=this[_0x14d12f(0xb1)][_0x14d12f(0xb0)](_0x4bdb77);if(!_0x2f5130)throw Error(_0x14d12f(0xaa));_0x2f5130['tryStartPresenting']();}['stopPresenting'](){const _0x269908=_0x1ac819;let _0x22542c=this['_injector'][_0x269908(0x96)](_0x1f1bd3)['getCurrentUnitOfType'](_0x3b877f[_0x269908(0x9a)]);if(!_0x22542c)throw Error(_0x269908(0xb4));let _0x14c10f=_0x22542c['getUnitId'](),_0x2a657b=this['_liveShareController'][_0x269908(0xb0)](_0x14c10f);if(!_0x2a657b)throw Error(_0x269908(0xaa));_0x2a657b['stopPresenting']();}};_0x55fbe7['extend'](u);var d=class extends _0x542a30{get['LiveShareStatusEnum'](){return _0x828f1e;}};_0x542a30[_0x1ac819(0xad)](d);export{};function _0x3755(){const _0x3e94e0=['No\x20active\x20workbook\x20found.','default','124mJshxr','7LLaOHt','getStatus','3651284GsYrwK','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','get','5996152uGipXW','15246310QIfeya','1671764VLjlhE','UNIVER_SHEET','defineProperty','11iTMxwJ','146268fVHUDk','stopFollowing','IDLE','18085fCCFQC','4726539JFShhe','object','getUnitId','string','call','startPresenting','getCurrentUnitOfType','756VydJpe','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','function','extend','prototype','constructor','getLiveShareCoordinatorSync','_liveShareController','toPrimitive','_injector'];_0x3755=function(){return _0x3e94e0;};return _0x3755();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2513a0=_0x5d5b;(function(_0x189315,_0x20ae68){const _0x5d336c=_0x5d5b,_0x2afe1b=_0x189315();while(!![]){try{const _0x2698fb=-parseInt(_0x5d336c(0xf5))/0x1+parseInt(_0x5d336c(0x80))/0x2*(-parseInt(_0x5d336c(0x99))/0x3)+parseInt(_0x5d336c(0xb4))/0x4*(parseInt(_0x5d336c(0xe4))/0x5)+parseInt(_0x5d336c(0xff))/0x6*(parseInt(_0x5d336c(0x7b))/0x7)+parseInt(_0x5d336c(0x87))/0x8*(-parseInt(_0x5d336c(0xe1))/0x9)+parseInt(_0x5d336c(0x8e))/0xa+-parseInt(_0x5d336c(0xea))/0xb*(-parseInt(_0x5d336c(0x92))/0xc);if(_0x2698fb===_0x20ae68)break;else _0x2afe1b['push'](_0x2afe1b['shift']());}catch(_0x564337){_0x2afe1b['push'](_0x2afe1b['shift']());}}}(_0x4f75,0x3583c));import{CommandType as _0x2350d3,DependentOn as _0x12cd2b,Disposable as _0x7e3118,DisposableCollection as _0x2d19bf,ICommandService as _0x5c22fb,IConfigService as _0x212af8,IUniverInstanceService as _0x19fa44,Inject as _0x1b8e3f,Injector as _0x44d9df,Plugin as _0x5aad12,RxDisposable as _0xa78c25,UniverInstanceType as _0x59028d,merge as _0x1d4a14,mergeOverrideWithDependencies as _0x580aae,registerDependencies as _0x30e8a5,toDisposable as _0x5ab2d9,touchDependencies as _0x357def}from'@univerjs/core';import{BuiltInUIPart as _0x27c8b7,IUIPartsService as _0x1fea8b,connectInjector as _0x579567,useDependency as _0x63768,useObservable as _0x3d864d}from'@univerjs/ui';import{Button as _0x39a743,Dropdown as _0x58c459,clsx as _0x10de51}from'@univerjs/design';import{LiveShareIcon as _0x569935}from'@univerjs/icons';import{useEffect as _0x23f7f4,useRef as _0x17b498,useState as _0x4b88a6}from'react';import{CollaborationEvent as _0x410fbb,parseProtocolChangeset as _0x33853e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x19e44a,SessionStatus as _0x52fdbf,UniverCollaborationClientPlugin as _0x1d07dd}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4f6c05,SetWorksheetActiveOperation as _0x4e08ea}from'@univerjs/sheets';import{BehaviorSubject as _0x3b9fa0,Subject as _0x56499e}from'rxjs';function _0x4f75(){const _0xba0521=['override','status$','You\x27are\x20offline.','memberID','384670vjwymn','registerInitialStateReporter','LIVESHARE_OPERATION','object','startFollowing','_sharedOperations','Stop\x20presenting','_uiPartsService','sheet','getValue','2694OpCEfd','_injector','set','presenter','call','complete','shouldShareOperation','You\x27re\x20presenting\x20the\x20document','setConfig','IDLE','_startFollowing','defineProperty','data','getLiveShareCoordinator','next','UNIVER_UNKNOWN','_commandService','getTypeOfUnitAdded$','OPERATION','553zWqjpw','UNIVER_SHEET','stopPresenting','sessionStatus$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','33094WPTpVB','mutations','add','packageName','createInstance','reverse','offline','24bMHAZV','presenting','_presenter','unitId','decorate','live-share.config','_handleNewHost','3113310nLCiLv','SAME_OPERATION_SHARE_INTERVAL','_collabSessionService','_stopPresenting','4188WLeQsV','registerSharedOperation','stopFollowing','div','_liveShareService','registerComponent','version','69StxOMl','stringify','subscribe','@univerjs-pro/live-share','getMemberID','getCurrentTypeOfUnit$','_beIdle','onCommandExecuted','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','OFFLINE','delete','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_init','function','parse','pipe','type','getInitialStates','asObservable','_stopFollowing','onStarting','params','getLiveShareCoordinatorSync','_fetchOperations','has','256jwecuw','getUnitId','constructor','_status','ONLINE','idle','init','_configService','unsubscribe','LIVESHARE_TERMINATE','current','find','end','values','_startPresenting','length','PRESENTING','button','LIVESHARE_NEW_HOST','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','_config','Present\x20this\x20document','HEADER_MENU','dispose','requireSession','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','executeCommand','_handleTerminate','_handleOnline','tryStartPresenting','get','symbol','send','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','getTypeOfUnitDisposed$','default','_reporters','univer-mb-3\x20univer-w-full\x20univer-text-sm','following','_entities','0.19.0','event$','onRendered','1179918AHKtEC','_unitID','includes','25930ryaFvv','disposeWithMe','_handleOffline','FOLLOWING','_status$','getStatus','22033cwlRNP','map','prototype','forEach','then','dispose$','_handleOperation'];_0x4f75=function(){return _0xba0521;};return _0x4f75();}import{takeUntil as _0x4d26a8,throttleTime as _0x3fdd56}from'rxjs/operators';import{Fragment as _0x82c5a5,jsx as _0xd9a983,jsxs as _0x2c4e75}from'react/jsx-runtime';import{SetScrollOperation as _0x42ce5d,SetZoomRatioOperation as _0x4ad841}from'@univerjs/sheets-ui';function L(_0x984845){'@babel/helpers - typeof';const _0xc16c8c=_0x5d5b;return L=typeof Symbol==_0xc16c8c(0xa8)&&typeof Symbol['iterator']=='symbol'?function(_0x406d0d){return typeof _0x406d0d;}:function(_0x460b5b){const _0x4fb43e=_0xc16c8c;return _0x460b5b&&typeof Symbol==_0x4fb43e(0xa8)&&_0x460b5b[_0x4fb43e(0xb6)]===Symbol&&_0x460b5b!==Symbol[_0x4fb43e(0xec)]?_0x4fb43e(0xd4):typeof _0x460b5b;},L(_0x984845);}function _0x5d5b(_0x1a53bc,_0x46a1ee){_0x1a53bc=_0x1a53bc-0x6e;const _0x4f7521=_0x4f75();let _0x5d5bc4=_0x4f7521[_0x1a53bc];return _0x5d5bc4;}function R(_0xef0de5,_0x2c174a){const _0x4a3ec5=_0x5d5b;if(L(_0xef0de5)!=_0x4a3ec5(0xf8)||!_0xef0de5)return _0xef0de5;var _0x647f00=_0xef0de5[Symbol['toPrimitive']];if(_0x647f00!==void 0x0){var _0x4bba30=_0x647f00[_0x4a3ec5(0x103)](_0xef0de5,_0x2c174a||'default');if(L(_0x4bba30)!=_0x4a3ec5(0xf8))return _0x4bba30;throw TypeError(_0x4a3ec5(0xa6));}return(_0x2c174a==='string'?String:Number)(_0xef0de5);}function z(_0x238108){var _0x47eb17=R(_0x238108,'string');return L(_0x47eb17)=='symbol'?_0x47eb17:_0x47eb17+'';}function B(_0x208471,_0x511d28,_0x3d1074){const _0x9d4b2d=_0x5d5b;return(_0x511d28=z(_0x511d28))in _0x208471?Object[_0x9d4b2d(0x73)](_0x208471,_0x511d28,{'value':_0x3d1074,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x208471[_0x511d28]=_0x3d1074,_0x208471;}var V=class extends _0x7e3118{constructor(..._0x21ce42){const _0x10a3ee=_0x5d5b;super(..._0x21ce42),B(this,_0x10a3ee(0xfa),new Set()),B(this,'_reporters',new Set());}[_0x2513a0(0x93)](_0x9757b3){const _0x40cf10=_0x2513a0;return this['_sharedOperations']['add'](_0x9757b3),_0x5ab2d9(()=>this[_0x40cf10(0xfa)]['delete'](_0x9757b3));}[_0x2513a0(0xf6)](_0x4f4ef3){const _0x3b023e=_0x2513a0;return this[_0x3b023e(0xda)]['add'](_0x4f4ef3),_0x5ab2d9(()=>this[_0x3b023e(0xda)][_0x3b023e(0xa5)](_0x4f4ef3));}[_0x2513a0(0x6e)](_0xacab35){const _0x1a6ae7=_0x2513a0;return this[_0x1a6ae7(0xfa)]['has'](_0xacab35);}['getInitialStates'](_0x480131){const _0x3c7f2f=_0x2513a0;return Array['from'](this['_reporters'])[_0x3c7f2f(0xeb)](_0x3f83a8=>_0x3f83a8(_0x480131));}};function H(_0x434a55,_0x53ccaf){return function(_0x1ef524,_0x28d6ef){_0x53ccaf(_0x1ef524,_0x28d6ef,_0x434a55);};}function U(_0x4a3843,_0x56d1dc,_0x15225d,_0x38a271){const _0xae5f76=_0x2513a0;var _0x38686e=arguments['length'],_0x2284b9=_0x38686e<0x3?_0x56d1dc:_0x38a271===null?_0x38a271=Object['getOwnPropertyDescriptor'](_0x56d1dc,_0x15225d):_0x38a271,_0x2d0e5b;if(typeof Reflect==_0xae5f76(0xf8)&&typeof Reflect[_0xae5f76(0x8b)]=='function')_0x2284b9=Reflect[_0xae5f76(0x8b)](_0x4a3843,_0x56d1dc,_0x15225d,_0x38a271);else{for(var _0x4314ac=_0x4a3843[_0xae5f76(0xc3)]-0x1;_0x4314ac>=0x0;_0x4314ac--)(_0x2d0e5b=_0x4a3843[_0x4314ac])&&(_0x2284b9=(_0x38686e<0x3?_0x2d0e5b(_0x2284b9):_0x38686e>0x3?_0x2d0e5b(_0x56d1dc,_0x15225d,_0x2284b9):_0x2d0e5b(_0x56d1dc,_0x15225d))||_0x2284b9);}return _0x38686e>0x3&&_0x2284b9&&Object[_0xae5f76(0x73)](_0x56d1dc,_0x15225d,_0x2284b9),_0x2284b9;}let W=class extends _0xa78c25{constructor(_0x410298,_0x5be1d7,_0x639acd){const _0x23be2e=_0x2513a0;super(),this['_univerInstanceService']=_0x410298,this[_0x23be2e(0x100)]=_0x5be1d7,this[_0x23be2e(0x90)]=_0x639acd,B(this,_0x23be2e(0xdd),new Map()),this[_0x23be2e(0xa7)]();}async[_0x2513a0(0x75)](_0x4bb11b){const _0xb98a61=_0x2513a0;return this[_0xb98a61(0xdd)][_0xb98a61(0xb3)](_0x4bb11b)||await this[_0xb98a61(0xa3)](_0x4bb11b),this['_entities']['get'](_0x4bb11b);}[_0x2513a0(0xb1)](_0x9e99e7){const _0x5d5181=_0x2513a0;var _0xdd63a3;return(_0xdd63a3=this[_0x5d5181(0xdd)]['get'](_0x9e99e7))==null?null:_0xdd63a3;}['_init'](){const _0xeabfd8=_0x2513a0;this['_univerInstanceService'][_0xeabfd8(0x79)](_0x59028d[_0xeabfd8(0x7c)])[_0xeabfd8(0xaa)](_0x4d26a8(this[_0xeabfd8(0xef)]))[_0xeabfd8(0x9b)](async _0x1dde30=>{const _0xd7e86d=_0xeabfd8;let _0x14dce9=_0x1dde30[_0xd7e86d(0xb5)]();this[_0xd7e86d(0xdd)]['has'](_0x14dce9)||this[_0xd7e86d(0xa3)](_0x14dce9);}),this['_univerInstanceService'][_0xeabfd8(0xd8)](_0x59028d[_0xeabfd8(0x7c)])['pipe'](_0x4d26a8(this[_0xeabfd8(0xef)]))['subscribe'](_0x1f6c27=>{const _0x49b8d=_0xeabfd8;let _0xdab455=_0x1f6c27[_0x49b8d(0xb5)](),_0x16c6ed=this[_0x49b8d(0xdd)][_0x49b8d(0xd3)](_0xdab455);_0x16c6ed==null||_0x16c6ed[_0x49b8d(0xcb)]();});}async[_0x2513a0(0xa3)](_0x428d56){const _0x17e061=_0x2513a0;let _0x487a79=await this[_0x17e061(0x90)][_0x17e061(0xcc)](_0x428d56),_0x430135=this[_0x17e061(0x100)][_0x17e061(0x84)](K,_0x428d56,_0x487a79);return _0x430135[_0x17e061(0xba)](),this[_0x17e061(0xdd)][_0x17e061(0x101)](_0x428d56,_0x430135),_0x430135;}};W=U([H(0x0,_0x19fa44),H(0x1,_0x1b8e3f(_0x44d9df)),H(0x2,_0x1b8e3f(_0x19e44a))],W);let G=function(_0x2148cd){const _0x71b943=_0x2513a0;return _0x2148cd[_0x71b943(0xa4)]=_0x71b943(0x86),_0x2148cd['IDLE']=_0x71b943(0xb9),_0x2148cd['FOLLOWING']=_0x71b943(0xdc),_0x2148cd['NOT_FOLLOWING']='not-following',_0x2148cd[_0x71b943(0xc4)]=_0x71b943(0x88),_0x2148cd;}({}),K=class extends _0xa78c25{get[_0x2513a0(0xb7)](){const _0x2ee695=_0x2513a0;return this[_0x2ee695(0xe8)][_0x2ee695(0xfe)]();}constructor(_0x5ad55a,_0xe33e1d,_0xd77cfa,_0x400411,_0x2bb41b){const _0x2f3e9=_0x2513a0;super(),this[_0x2f3e9(0xe2)]=_0x5ad55a,this[_0x2f3e9(0xd6)]=_0xe33e1d,this[_0x2f3e9(0xbb)]=_0xd77cfa,this['_liveShareService']=_0x400411,this[_0x2f3e9(0x78)]=_0x2bb41b,B(this,_0x2f3e9(0xe8),new _0x3b9fa0(G[_0x2f3e9(0x71)])),B(this,_0x2f3e9(0xf2),this['_status$'][_0x2f3e9(0xad)]()),B(this,_0x2f3e9(0xa7),!0x1),B(this,_0x2f3e9(0xa1),null),B(this,_0x2f3e9(0x89),null);}[_0x2513a0(0xcb)](){const _0x3d0d73=_0x2513a0;var _0x54f3d7;(_0x54f3d7=this['_commandDisposable'])==null||_0x54f3d7[_0x3d0d73(0xcb)](),this[_0x3d0d73(0xe8)][_0x3d0d73(0x76)](G[_0x3d0d73(0x71)]),this[_0x3d0d73(0xe8)][_0x3d0d73(0x104)]();}[_0x2513a0(0xe9)](){const _0x4ed75d=_0x2513a0;return this[_0x4ed75d(0xb7)];}[_0x2513a0(0xba)](){const _0x5d252c=_0x2513a0;this[_0x5d252c(0xa7)]||(this[_0x5d252c(0xa7)]=!0x0,this[_0x5d252c(0xd6)][_0x5d252c(0x7e)][_0x5d252c(0xaa)](_0x4d26a8(this[_0x5d252c(0xef)]))['subscribe'](_0x1d4dbd=>{const _0x1e53b7=_0x5d252c;switch(_0x1d4dbd){case _0x52fdbf['OFFLINE']:this[_0x1e53b7(0xe6)]();break;case _0x52fdbf[_0x1e53b7(0xb8)]:this[_0x1e53b7(0xd1)]();break;default:}}),this[_0x5d252c(0xd6)][_0x5d252c(0xdf)]['pipe'](_0x4d26a8(this['dispose$']))[_0x5d252c(0x9b)](_0x115221=>{const _0x1fa27c=_0x5d252c;let {eventID:_0x4e5a35}=_0x115221;switch(_0x4e5a35){case _0x410fbb[_0x1fa27c(0xc6)]:this[_0x1fa27c(0x8d)](_0x115221);break;case _0x410fbb[_0x1fa27c(0xf7)]:this['_handleOperation'](_0x115221);break;case _0x410fbb[_0x1fa27c(0xbd)]:this[_0x1fa27c(0xd0)]();break;case _0x410fbb['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x115221);break;default:}}));}['tryStartPresenting'](){const _0x116ef3=_0x2513a0;this['_collabSession']['send']({'eventID':_0x410fbb[_0x116ef3(0xcd)],'data':{'unitID':this[_0x116ef3(0xe2)],'userID':this[_0x116ef3(0xd6)][_0x116ef3(0x9d)]()}},this['_unitID']);}[_0x2513a0(0x7d)](){const _0xe02768=_0x2513a0;this[_0xe02768(0xb7)]===G['PRESENTING']&&(this['_status$'][_0xe02768(0x76)](G['IDLE']),this[_0xe02768(0xd6)][_0xe02768(0xd5)]({'eventID':_0x410fbb[_0xe02768(0xbd)],'data':{'unitID':this[_0xe02768(0xe2)]}},this[_0xe02768(0xe2)]));}[_0x2513a0(0xf9)](){const _0x495650=_0x2513a0;this[_0x495650(0xb7)]===G[_0x495650(0xce)]&&(this[_0x495650(0xe8)][_0x495650(0x76)](G['FOLLOWING']),this[_0x495650(0x72)]());}[_0x2513a0(0x94)](){const _0x217f10=_0x2513a0;this[_0x217f10(0xb7)]===G[_0x217f10(0xe7)]&&this['_stopFollowing']();}[_0x2513a0(0x8d)](_0x83cd08){const _0x5259a8=_0x2513a0;let {presenter:_0x253c86}=_0x83cd08[_0x5259a8(0x74)],_0x234804=this[_0x5259a8(0xd6)][_0x5259a8(0x9d)]();this[_0x5259a8(0x89)]=_0x253c86,_0x253c86===_0x234804?(this[_0x5259a8(0xae)](),this[_0x5259a8(0xc2)]()):this['_status']!==G[_0x5259a8(0xce)]&&(this[_0x5259a8(0x91)](),this[_0x5259a8(0x72)]());}[_0x2513a0(0xb2)](){const _0x359d83=_0x2513a0;let _0x4ad5e4={'eventID':_0x410fbb['LIVESHARE_FETCH_OPERATIONS']};this[_0x359d83(0xd6)][_0x359d83(0xd5)](_0x4ad5e4,this['_unitID']);}[_0x2513a0(0xd0)](){const _0x2028eb=_0x2513a0;this['_presenter']=null,this[_0x2028eb(0xb7)]!==G[_0x2028eb(0xc4)]&&this[_0x2028eb(0x9f)]();}['_handleNewChangeSets'](_0x506c53){const _0x142b94=_0x2513a0;if(this['_status']===G['FOLLOWING']&&this[_0x142b94(0x89)]===_0x506c53[_0x142b94(0x74)][_0x142b94(0xf4)]){let _0x581e17=_0x33853e(_0x506c53[_0x142b94(0x74)])[_0x142b94(0x81)][_0x142b94(0x85)]()[_0x142b94(0xbf)](_0x4e10fd=>_0x4e10fd['id']===_0x4f6c05['id']);if(_0x581e17){let _0x2e0d94=_0x581e17['params'][_0x142b94(0x8a)],_0x1597a5=_0x581e17[_0x142b94(0xb0)][_0x142b94(0xfd)]['id'];setTimeout(()=>{const _0x2bee90=_0x142b94;this[_0x2bee90(0x78)][_0x2bee90(0xcf)](_0x4e08ea['id'],{'unitId':_0x2e0d94,'subUnitId':_0x1597a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x9e17d6=_0x2513a0;this[_0x9e17d6(0xe8)][_0x9e17d6(0x76)](G[_0x9e17d6(0xc4)]);let _0x713966=new Map(),_0x79972b=this[_0x9e17d6(0xa1)]=new _0x2d19bf();_0x79972b[_0x9e17d6(0x82)](_0x5ab2d9(()=>{const _0x53a95e=_0x9e17d6;_0x713966[_0x53a95e(0xed)](_0x281bd2=>_0x281bd2['complete']()),_0x713966['clear']();})),_0x79972b[_0x9e17d6(0x82)](this['_commandService'][_0x9e17d6(0xa0)](_0x395bba=>{const _0x342434=_0x9e17d6;if(_0x395bba[_0x342434(0xab)]!==_0x2350d3[_0x342434(0x7a)]||!this[_0x342434(0x96)][_0x342434(0x6e)](_0x395bba['id']))return;let {id:_0x47cb55}=_0x395bba,_0x18ecc0;if(_0x713966[_0x342434(0xb3)](_0x47cb55))_0x18ecc0=_0x713966[_0x342434(0xd3)](_0x47cb55);else{var _0x268f91;_0x18ecc0=new _0x56499e(),_0x713966['set'](_0x47cb55,_0x18ecc0),_0x18ecc0[_0x342434(0xaa)](_0x3fdd56((_0x268f91=this[_0x342434(0xbb)]['getConfig'](_0x342434(0x8f)))==null?0xc8:_0x268f91,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x342434(0x9b)](_0x3e2abf=>{const _0x4a0a3d=_0x342434;this[_0x4a0a3d(0xd6)][_0x4a0a3d(0xd5)]({'eventID':_0x410fbb['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3e2abf['id']]:{'id':_0x3e2abf['id'],'params':JSON[_0x4a0a3d(0x9a)](_0x3e2abf[_0x4a0a3d(0xb0)])}}}},this[_0x4a0a3d(0xe2)]);});}_0x18ecc0[_0x342434(0x76)](_0x395bba);})),this['_liveShareService'][_0x9e17d6(0xac)](this[_0x9e17d6(0xe2)])[_0x9e17d6(0xed)](_0x2a13e0=>this[_0x9e17d6(0xd6)][_0x9e17d6(0xd5)]({'eventID':_0x410fbb[_0x9e17d6(0xf7)],'data':{'unitID':this[_0x9e17d6(0xe2)],'operations':{[_0x2a13e0['id']]:{'id':_0x2a13e0['id'],'params':JSON[_0x9e17d6(0x9a)](_0x2a13e0['params'])}}}},this['_unitID']));}[_0x2513a0(0x91)](){const _0x1856f7=_0x2513a0;var _0xaad460;this[_0x1856f7(0xe8)][_0x1856f7(0x76)](G[_0x1856f7(0x71)]),(_0xaad460=this[_0x1856f7(0xa1)])==null||_0xaad460[_0x1856f7(0xcb)](),this[_0x1856f7(0xa1)]=null;}[_0x2513a0(0x72)](){const _0x3dcfc0=_0x2513a0;var _0x1049a0;(_0x1049a0=this['_commandDisposable'])==null||_0x1049a0[_0x3dcfc0(0xcb)](),this['_status$'][_0x3dcfc0(0x76)](G[_0x3dcfc0(0xe7)]);}[_0x2513a0(0x9f)](){const _0xcf214f=_0x2513a0;var _0x4eab00;this[_0xcf214f(0xe8)][_0xcf214f(0x76)](G[_0xcf214f(0x71)]),(_0x4eab00=this[_0xcf214f(0xa1)])==null||_0x4eab00[_0xcf214f(0xcb)](),this['_commandDisposable']=null;}[_0x2513a0(0xae)](){const _0x581c3f=_0x2513a0;var _0x1c129a;this[_0x581c3f(0xe8)][_0x581c3f(0x76)](G[_0x581c3f(0xce)]),(_0x1c129a=this[_0x581c3f(0xa1)])==null||_0x1c129a['dispose']();}[_0x2513a0(0xf0)](_0x124414){const _0x556d36=_0x2513a0;if([G[_0x556d36(0xc4)],G[_0x556d36(0xce)],G[_0x556d36(0xa4)]][_0x556d36(0xe3)](this[_0x556d36(0xb7)])||!_0x124414[_0x556d36(0x74)]['presenter']||_0x124414[_0x556d36(0x74)][_0x556d36(0x102)]===this[_0x556d36(0xd6)][_0x556d36(0x9d)]())return;this[_0x556d36(0xb7)]===G[_0x556d36(0x71)]&&this[_0x556d36(0x72)]();let _0x4b22d8=_0x124414['data']['operations'];Object[_0x556d36(0xc1)](_0x4b22d8)['forEach'](_0x45ca4e=>{const _0x2f6a90=_0x556d36;this[_0x2f6a90(0x78)]['executeCommand'](_0x45ca4e['id'],_0x45ca4e[_0x2f6a90(0xb0)]?JSON[_0x2f6a90(0xa9)](_0x45ca4e['params']):null,{'fromCollab':!0x0});});}[_0x2513a0(0xe6)](){const _0x2a5637=_0x2513a0;var _0x17e3a2;this[_0x2a5637(0xe8)]['next'](G[_0x2a5637(0xa4)]),(_0x17e3a2=this[_0x2a5637(0xa1)])==null||_0x17e3a2[_0x2a5637(0xcb)]();}['_handleOnline'](){const _0x4415a2=_0x2513a0;this[_0x4415a2(0xe8)]['next'](G[_0x4415a2(0x71)]),this[_0x4415a2(0xb2)]();}};K=U([H(0x2,_0x212af8),H(0x3,_0x1b8e3f(V)),H(0x4,_0x5c22fb)],K);function q(){const _0x3dbe3a=_0x2513a0;let _0x38ba86=_0x63768(W),_0x3664dd=_0x63768(_0x19fa44),_0x525048=_0x3d864d(()=>_0x3664dd[_0x3dbe3a(0x9e)](_0x59028d[_0x3dbe3a(0x7c)]),void 0x0,!0x1,[]),[_0x4a844d,_0x3eeaa1]=_0x4b88a6(null),[_0x45c793,_0x5cf3eb]=_0x4b88a6(G[_0x3dbe3a(0x71)]),_0x58a79c=_0x17b498(null);return _0x23f7f4(()=>(_0x525048&&_0x38ba86[_0x3dbe3a(0x75)](_0x525048[_0x3dbe3a(0xb5)]())[_0x3dbe3a(0xee)](_0x392d0b=>{const _0x1afd00=_0x3dbe3a;_0x3eeaa1(_0x392d0b),_0x58a79c[_0x1afd00(0xbe)]=_0x392d0b[_0x1afd00(0xf2)]['subscribe'](_0x34154c=>{_0x5cf3eb(_0x34154c);});}),()=>{const _0x323a80=_0x3dbe3a;var _0x4358de;(_0x4358de=_0x58a79c[_0x323a80(0xbe)])==null||_0x4358de[_0x323a80(0xbc)](),_0x58a79c[_0x323a80(0xbe)]=null;}),[_0x525048,_0x38ba86]),_0x4a844d?_0xd9a983(_0x58c459,{'align':_0x3dbe3a(0xc0),'disabled':_0x45c793===G['OFFLINE'],'className':_0x3dbe3a(0xc7),'overlay':_0xd9a983(ce,{'status':_0x45c793,'coordinator':_0x4a844d}),'children':_0xd9a983(_0x3dbe3a(0xc5),{'className':_0x10de51(_0x3dbe3a(0x7f),{'univer-cursor-not-allowed':_0x45c793===G['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45c793!==G['OFFLINE']}),'type':_0x3dbe3a(0xc5),'children':_0xd9a983(_0x569935,{'className':'univer-size-4'})})}):null;}function ce(_0xc373a3){const _0x2d43dd=_0x2513a0;let {status:_0x5a9b6b,coordinator:_0x15c9c0}=_0xc373a3;switch(_0x5a9b6b){case G[_0x2d43dd(0x71)]:return _0xd9a983(le,{'coordinator':_0x15c9c0});case G['FOLLOWING']:return _0xd9a983(ue,{'coordinator':_0x15c9c0});case G[_0x2d43dd(0xce)]:return _0xd9a983(de,{'coordinator':_0x15c9c0});case G['OFFLINE']:return _0xd9a983(fe,{});case G['PRESENTING']:return _0xd9a983(J,{'coordinator':_0x15c9c0});default:return null;}}function le(_0x2417ef){const _0x4be4d2=_0x2513a0;let {coordinator:_0x319c32}=_0x2417ef;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x4be4d2(0x95),{'className':_0x4be4d2(0xdb),'children':_0x4be4d2(0xc9)}),_0xd9a983(_0x39a743,{'onClick':()=>_0x319c32[_0x4be4d2(0xd2)](),'children':'Start'})]});}function ue(_0x9bdaf8){const _0x6c33f1=_0x2513a0;let {coordinator:_0x3c90e5}=_0x9bdaf8;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x6c33f1(0x95),{'className':_0x6c33f1(0xdb),'children':_0x6c33f1(0xa2)}),_0xd9a983(_0x39a743,{'onClick':()=>_0x3c90e5[_0x6c33f1(0x94)](),'children':'Stop\x20following'})]});}function de(_0x1f90b4){const _0x4cad0d=_0x2513a0;let {coordinator:_0x2b6492}=_0x1f90b4;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x4cad0d(0x95),{'className':_0x4cad0d(0xdb),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xd9a983(_0x39a743,{'variant':'text','onClick':()=>_0x2b6492[_0x4cad0d(0xf9)](),'children':'Start\x20following'})]});}function J(_0x7bcdfd){const _0x3ed32e=_0x2513a0;let {coordinator:_0x47eaba}=_0x7bcdfd;return _0x2c4e75(_0x82c5a5,{'children':[_0xd9a983(_0x3ed32e(0x95),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3ed32e(0x6f)}),_0xd9a983(_0x39a743,{'variant':_0x3ed32e(0xd9),'onClick':()=>_0x47eaba[_0x3ed32e(0x7d)](),'children':_0x3ed32e(0xfb)})]});}function fe(){const _0x35c176=_0x2513a0;return _0xd9a983(_0x82c5a5,{'children':_0x35c176(0xf3)});}let Y=class extends _0x7e3118{constructor(_0x379e14,_0x338635){super(),this['_injector']=_0x379e14,this['_uiPartsService']=_0x338635,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x464a53=_0x2513a0;this[_0x464a53(0xe5)](this[_0x464a53(0xfc)][_0x464a53(0x97)](_0x27c8b7[_0x464a53(0xca)],()=>_0x579567(q,this['_injector'])));}};Y=U([H(0x0,_0x1b8e3f(_0x44d9df)),H(0x1,_0x1fea8b)],Y);var pe=_0x2513a0(0x9c),me=_0x2513a0(0xde);const X=_0x2513a0(0x8c);Symbol(X);const Z={};let Q=class extends _0x7e3118{constructor(_0x5cb95c){const _0x17a58a=_0x2513a0;super(),this[_0x17a58a(0x96)]=_0x5cb95c,this[_0x17a58a(0xa7)]();}[_0x2513a0(0xa7)](){[_0x4ad841['id'],_0x42ce5d['id'],_0x4e08ea['id']]['forEach'](_0x15f90a=>{const _0x573058=_0x5d5b;this[_0x573058(0xe5)](this[_0x573058(0x96)][_0x573058(0x93)](_0x15f90a));});}};Q=U([H(0x0,_0x1b8e3f(V))],Q);let $=class extends _0x5aad12{constructor(_0x3b9461=Z,_0x1a84bc,_0x2bc71c){const _0x5b5419=_0x2513a0;super(),this[_0x5b5419(0xc8)]=_0x3b9461,this['_injector']=_0x1a84bc,this[_0x5b5419(0xbb)]=_0x2bc71c;let {..._0x361737}=_0x1d4a14({},Z,this[_0x5b5419(0xc8)]);this[_0x5b5419(0xbb)][_0x5b5419(0x70)](X,_0x361737);}[_0x2513a0(0xaf)](){const _0xcb0273=_0x2513a0;_0x30e8a5(this[_0xcb0273(0x100)],_0x580aae([[V],[W],[Q],[Y]],this['_config'][_0xcb0273(0xf1)])),_0x357def(this[_0xcb0273(0x100)],[[Q]]);}[_0x2513a0(0xe0)](){const _0x5d0e45=_0x2513a0;_0x357def(this[_0x5d0e45(0x100)],[[Y]]);}};B($,_0x2513a0(0xab),_0x59028d[_0x2513a0(0x77)]),B($,'pluginName',_0x2513a0(0xd7)),B($,_0x2513a0(0x83),pe),B($,_0x2513a0(0x98),me),$=U([_0x12cd2b(_0x1d07dd),H(0x1,_0x1b8e3f(_0x44d9df)),H(0x2,_0x212af8)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x3d0128=_0x3a4a;(function(_0x43a5b5,_0x238f87){const _0xdc1a9b=_0x3a4a,_0x196441=_0x43a5b5();while(!![]){try{const _0x5df09c=parseInt(_0xdc1a9b(0xf6))/0x1*(-parseInt(_0xdc1a9b(0x80))/0x2)+parseInt(_0xdc1a9b(0x79))/0x3+parseInt(_0xdc1a9b(0xb8))/0x4*(parseInt(_0xdc1a9b(0xa5))/0x5)+-parseInt(_0xdc1a9b(0xbb))/0x6*(parseInt(_0xdc1a9b(0x91))/0x7)+-parseInt(_0xdc1a9b(0x82))/0x8+-parseInt(_0xdc1a9b(0xbc))/0x9*(-parseInt(_0xdc1a9b(0xb5))/0xa)+-parseInt(_0xdc1a9b(0xff))/0xb*(-parseInt(_0xdc1a9b(0xf9))/0xc);if(_0x5df09c===_0x238f87)break;else _0x196441['push'](_0x196441['shift']());}catch(_0x647a7c){_0x196441['push'](_0x196441['shift']());}}}(_0x81b0,0xbff7e));import{CommandType as _0x1c1f49,DependentOn as _0x121476,Disposable as _0x54ca8c,DisposableCollection as _0x404ec6,ICommandService as _0x3b2faa,IConfigService as _0x4fe3b2,IUniverInstanceService as _0x36b23d,Inject as _0x93af7e,Injector as _0x17532c,Plugin as _0x577139,RxDisposable as _0x408881,UniverInstanceType as _0x484236,merge as _0x589157,mergeOverrideWithDependencies as _0x53db3c,registerDependencies as _0x311905,toDisposable as _0x3dceee,touchDependencies as _0x79afb0}from'@univerjs/core';import{BuiltInUIPart as _0x3e8e0b,IUIPartsService as _0x1eb6e7,connectInjector as _0x599550,useDependency as _0x292703,useObservable as _0x1e2dff}from'@univerjs/ui';import{Button as _0x4db05c,Dropdown as _0x5e92ce,clsx as _0x47db3d}from'@univerjs/design';import{LiveShareIcon as _0x5ed039}from'@univerjs/icons';import{useEffect as _0x5f059a,useRef as _0x923153,useState as _0x225091}from'react';import{CollaborationEvent as _0x36485c,parseProtocolChangeset as _0x302b6c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4e85bc,SessionStatus as _0x275f26,UniverCollaborationClientPlugin as _0xdc6e53}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x56fac8,SetWorksheetActiveOperation as _0x123026}from'@univerjs/sheets';import{BehaviorSubject as _0x4b568d,Subject as _0x1c4306}from'rxjs';import{takeUntil as _0x28704d,throttleTime as _0x3b0ab9}from'rxjs/operators';import{Fragment as _0x34cc85,jsx as _0x150cba,jsxs as _0x3a8fe6}from'react/jsx-runtime';import{SetScrollOperation as _0x576ee1,SetZoomRatioOperation as _0x52bfd1}from'@univerjs/sheets-ui';function L(_0x2f047e){'@babel/helpers - typeof';const _0x12c7ff=_0x3a4a;return L=typeof Symbol==_0x12c7ff(0xa3)&&typeof Symbol[_0x12c7ff(0xd5)]==_0x12c7ff(0xd8)?function(_0xf0ec1){return typeof _0xf0ec1;}:function(_0x182424){const _0x430bad=_0x12c7ff;return _0x182424&&typeof Symbol==_0x430bad(0xa3)&&_0x182424['constructor']===Symbol&&_0x182424!==Symbol[_0x430bad(0x92)]?_0x430bad(0xd8):typeof _0x182424;},L(_0x2f047e);}function R(_0x112890,_0x1b9a47){const _0x193153=_0x3a4a;if(L(_0x112890)!=_0x193153(0xdf)||!_0x112890)return _0x112890;var _0x370916=_0x112890[Symbol[_0x193153(0xdb)]];if(_0x370916!==void 0x0){var _0x267eea=_0x370916[_0x193153(0x97)](_0x112890,_0x1b9a47||_0x193153(0x98));if(L(_0x267eea)!=_0x193153(0xdf))return _0x267eea;throw TypeError(_0x193153(0x71));}return(_0x1b9a47===_0x193153(0x7d)?String:Number)(_0x112890);}function z(_0x5399ff){const _0x1bbe8a=_0x3a4a;var _0x116650=R(_0x5399ff,_0x1bbe8a(0x7d));return L(_0x116650)==_0x1bbe8a(0xd8)?_0x116650:_0x116650+'';}function B(_0x4a1412,_0x4a6154,_0x467bac){const _0x2e990d=_0x3a4a;return(_0x4a6154=z(_0x4a6154))in _0x4a1412?Object[_0x2e990d(0xb3)](_0x4a1412,_0x4a6154,{'value':_0x467bac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a1412[_0x4a6154]=_0x467bac,_0x4a1412;}var V=class extends _0x54ca8c{constructor(..._0x52fdb3){const _0x1a8e40=_0x3a4a;super(..._0x52fdb3),B(this,_0x1a8e40(0x78),new Set()),B(this,'_reporters',new Set());}[_0x3d0128(0xfa)](_0x3a657f){const _0x159b27=_0x3d0128;return this[_0x159b27(0x78)]['add'](_0x3a657f),_0x3dceee(()=>this[_0x159b27(0x78)][_0x159b27(0xa9)](_0x3a657f));}[_0x3d0128(0xe7)](_0x3aa66d){const _0x372e68=_0x3d0128;return this[_0x372e68(0xf3)][_0x372e68(0xfc)](_0x3aa66d),_0x3dceee(()=>this['_reporters'][_0x372e68(0xa9)](_0x3aa66d));}[_0x3d0128(0x9d)](_0x23358c){const _0x33c152=_0x3d0128;return this[_0x33c152(0x78)][_0x33c152(0xf8)](_0x23358c);}[_0x3d0128(0xd1)](_0x103688){const _0x2859f7=_0x3d0128;return Array[_0x2859f7(0xac)](this['_reporters'])[_0x2859f7(0xd6)](_0x18007d=>_0x18007d(_0x103688));}};function H(_0x14b0a8,_0x2c0dbb){return function(_0x124495,_0x3bdf65){_0x2c0dbb(_0x124495,_0x3bdf65,_0x14b0a8);};}function U(_0x3bcbfb,_0x1af238,_0x2cb87b,_0x1412fa){const _0x2f2adf=_0x3d0128;var _0x16c969=arguments[_0x2f2adf(0x8e)],_0x3a41db=_0x16c969<0x3?_0x1af238:_0x1412fa===null?_0x1412fa=Object[_0x2f2adf(0x101)](_0x1af238,_0x2cb87b):_0x1412fa,_0x447519;if(typeof Reflect==_0x2f2adf(0xdf)&&typeof Reflect[_0x2f2adf(0xc4)]==_0x2f2adf(0xa3))_0x3a41db=Reflect['decorate'](_0x3bcbfb,_0x1af238,_0x2cb87b,_0x1412fa);else{for(var _0x411c36=_0x3bcbfb['length']-0x1;_0x411c36>=0x0;_0x411c36--)(_0x447519=_0x3bcbfb[_0x411c36])&&(_0x3a41db=(_0x16c969<0x3?_0x447519(_0x3a41db):_0x16c969>0x3?_0x447519(_0x1af238,_0x2cb87b,_0x3a41db):_0x447519(_0x1af238,_0x2cb87b))||_0x3a41db);}return _0x16c969>0x3&&_0x3a41db&&Object['defineProperty'](_0x1af238,_0x2cb87b,_0x3a41db),_0x3a41db;}let W=class extends _0x408881{constructor(_0x52c037,_0x45e154,_0x54214d){const _0x4a7d37=_0x3d0128;super(),this[_0x4a7d37(0x8f)]=_0x52c037,this['_injector']=_0x45e154,this[_0x4a7d37(0x99)]=_0x54214d,B(this,_0x4a7d37(0xe8),new Map()),this[_0x4a7d37(0xa0)]();}async[_0x3d0128(0xfb)](_0x363793){const _0x5c80cc=_0x3d0128;return this[_0x5c80cc(0xe8)][_0x5c80cc(0xf8)](_0x363793)||await this['_startLiveShareCoordinator'](_0x363793),this[_0x5c80cc(0xe8)][_0x5c80cc(0xc3)](_0x363793);}[_0x3d0128(0x75)](_0x39e9c3){const _0x548768=_0x3d0128;var _0x2cd567;return(_0x2cd567=this[_0x548768(0xe8)]['get'](_0x39e9c3))==null?null:_0x2cd567;}[_0x3d0128(0xa0)](){const _0x110d41=_0x3d0128;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x484236[_0x110d41(0x100)])['pipe'](_0x28704d(this[_0x110d41(0xca)]))['subscribe'](async _0x207c03=>{const _0x57210f=_0x110d41;let _0x46b0d3=_0x207c03[_0x57210f(0x85)]();this[_0x57210f(0xe8)][_0x57210f(0xf8)](_0x46b0d3)||this['_startLiveShareCoordinator'](_0x46b0d3);}),this[_0x110d41(0x8f)][_0x110d41(0xfd)](_0x484236['UNIVER_SHEET'])[_0x110d41(0xbe)](_0x28704d(this[_0x110d41(0xca)]))[_0x110d41(0x94)](_0x324c12=>{const _0x49669b=_0x110d41;let _0x304b9f=_0x324c12['getUnitId'](),_0x5b2e61=this[_0x49669b(0xe8)][_0x49669b(0xc3)](_0x304b9f);_0x5b2e61==null||_0x5b2e61[_0x49669b(0x74)]();});}async['_startLiveShareCoordinator'](_0x23614f){const _0x109eb9=_0x3d0128;let _0x4a76ec=await this[_0x109eb9(0x99)][_0x109eb9(0xb1)](_0x23614f),_0x2105a5=this[_0x109eb9(0xf0)][_0x109eb9(0x8a)](K,_0x23614f,_0x4a76ec);return _0x2105a5[_0x109eb9(0x95)](),this[_0x109eb9(0xe8)][_0x109eb9(0x96)](_0x23614f,_0x2105a5),_0x2105a5;}};W=U([H(0x0,_0x36b23d),H(0x1,_0x93af7e(_0x17532c)),H(0x2,_0x93af7e(_0x4e85bc))],W);function _0x81b0(){const _0x5be810=['send','_reporters','current','_handleTerminate','1pdEKrH','IDLE','has','5528052TYVqzh','registerSharedOperation','getLiveShareCoordinator','add','getTypeOfUnitDisposed$','_handleNewHost','55LIfkKt','UNIVER_SHEET','getOwnPropertyDescriptor','reverse','LIVESHARE_REQUEST_HOST','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_status','LIVESHARE_NEW_HOST','dispose','getLiveShareCoordinatorSync','FOLLOWING','_configService','_sharedOperations','2360313zakbqk','event$','version','_status$','string','status$','tryStartPresenting','2799436xQCGvw','onRendered','12045232HRpldi','OFFLINE','live-share.config','getUnitId','PRESENTING','UNIVER_UNKNOWN','_stopFollowing','not-following','createInstance','next','LIVESHARE_FETCH_OPERATIONS','_handleOnline','length','_univerInstanceService','Stop\x20following','1189972yYxiKS','prototype','_uiPartsService','subscribe','init','set','call','default','_collabSessionService','includes','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20not\x20following\x20the\x20presenter','shouldShareOperation','then','_config','_init','LIVESHARE_OPERATION','find','function','You\x27re\x20following\x20the\x20presenter','5ClSwHt','presenting','packageName','type','delete','registerComponent','div','from','getValue','HEADER_MENU','pluginName','idle','requireSession','getMemberID','defineProperty','_collabSession','350mkMyBH','stopPresenting','Stop\x20presenting','4259820spcdzA','You\x27are\x20offline.','executeCommand','42yPvXcN','186831HUjXLe','_commandService','pipe','stopFollowing','text','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','asObservable','get','decorate','sessionStatus$','following','params','override','data','dispose$','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','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','parse','_commandDisposable','_handleOperation','getInitialStates','getCurrentTypeOfUnit$','setConfig','startFollowing','iterator','map','UNIVER_LIVE_SHARE_PLUGIN','symbol','stringify','_unitID','toPrimitive','NOT_FOLLOWING','univer-size-4','disposeWithMe','object','sheet','_presenter','memberID','_beIdle','_startPresenting','unsubscribe','_mountLiveShare','registerInitialStateReporter','_entities','forEach','_liveShareService','_handleNewChangeSets','complete','clear','onCommandExecuted','_stopPresenting','_injector','_startFollowing'];_0x81b0=function(){return _0x5be810;};return _0x81b0();}let G=function(_0x13a00e){const _0x7a83c5=_0x3d0128;return _0x13a00e[_0x7a83c5(0x83)]='offline',_0x13a00e[_0x7a83c5(0xf7)]=_0x7a83c5(0xb0),_0x13a00e[_0x7a83c5(0x76)]=_0x7a83c5(0xc6),_0x13a00e[_0x7a83c5(0xdc)]=_0x7a83c5(0x89),_0x13a00e[_0x7a83c5(0x86)]=_0x7a83c5(0xa6),_0x13a00e;}({}),K=class extends _0x408881{get[_0x3d0128(0x72)](){const _0x2ee48d=_0x3d0128;return this[_0x2ee48d(0x7c)][_0x2ee48d(0xad)]();}constructor(_0x142275,_0x15e2b2,_0x2ecf9e,_0xb9df78,_0x20b199){const _0x207624=_0x3d0128;super(),this['_unitID']=_0x142275,this[_0x207624(0xb4)]=_0x15e2b2,this[_0x207624(0x77)]=_0x2ecf9e,this[_0x207624(0xea)]=_0xb9df78,this[_0x207624(0xbd)]=_0x20b199,B(this,_0x207624(0x7c),new _0x4b568d(G['IDLE'])),B(this,_0x207624(0x7e),this[_0x207624(0x7c)][_0x207624(0xc2)]()),B(this,_0x207624(0xa0),!0x1),B(this,_0x207624(0xcf),null),B(this,_0x207624(0xe1),null);}[_0x3d0128(0x74)](){const _0x36e95b=_0x3d0128;var _0x149582;(_0x149582=this[_0x36e95b(0xcf)])==null||_0x149582[_0x36e95b(0x74)](),this[_0x36e95b(0x7c)][_0x36e95b(0x8b)](G[_0x36e95b(0xf7)]),this[_0x36e95b(0x7c)][_0x36e95b(0xec)]();}['getStatus'](){const _0x24aa55=_0x3d0128;return this[_0x24aa55(0x72)];}['init'](){const _0x29ad10=_0x3d0128;this[_0x29ad10(0xa0)]||(this[_0x29ad10(0xa0)]=!0x0,this[_0x29ad10(0xb4)][_0x29ad10(0xc5)]['pipe'](_0x28704d(this[_0x29ad10(0xca)]))[_0x29ad10(0x94)](_0x113580=>{const _0x1279bc=_0x29ad10;switch(_0x113580){case _0x275f26[_0x1279bc(0x83)]:this['_handleOffline']();break;case _0x275f26['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x29ad10(0xb4)][_0x29ad10(0x7a)][_0x29ad10(0xbe)](_0x28704d(this['dispose$']))['subscribe'](_0xa8475b=>{const _0xb4ba09=_0x29ad10;let {eventID:_0x44c13b}=_0xa8475b;switch(_0x44c13b){case _0x36485c[_0xb4ba09(0x73)]:this[_0xb4ba09(0xfe)](_0xa8475b);break;case _0x36485c[_0xb4ba09(0xa1)]:this[_0xb4ba09(0xd0)](_0xa8475b);break;case _0x36485c['LIVESHARE_TERMINATE']:this[_0xb4ba09(0xf5)]();break;case _0x36485c['NEW_CHANGESETS']:this[_0xb4ba09(0xeb)](_0xa8475b);break;default:}}));}['tryStartPresenting'](){const _0x43fbfd=_0x3d0128;this[_0x43fbfd(0xb4)][_0x43fbfd(0xf2)]({'eventID':_0x36485c[_0x43fbfd(0x103)],'data':{'unitID':this['_unitID'],'userID':this[_0x43fbfd(0xb4)]['getMemberID']()}},this[_0x43fbfd(0xda)]);}[_0x3d0128(0xb6)](){const _0x13ef84=_0x3d0128;this['_status']===G[_0x13ef84(0x86)]&&(this[_0x13ef84(0x7c)][_0x13ef84(0x8b)](G[_0x13ef84(0xf7)]),this[_0x13ef84(0xb4)]['send']({'eventID':_0x36485c['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x13ef84(0xda)]}},this['_unitID']));}[_0x3d0128(0xd4)](){const _0x1b3c8b=_0x3d0128;this[_0x1b3c8b(0x72)]===G[_0x1b3c8b(0xdc)]&&(this[_0x1b3c8b(0x7c)]['next'](G[_0x1b3c8b(0x76)]),this[_0x1b3c8b(0xf1)]());}['stopFollowing'](){const _0x5607f2=_0x3d0128;this['_status']===G[_0x5607f2(0x76)]&&this[_0x5607f2(0x88)]();}[_0x3d0128(0xfe)](_0x218c2f){const _0x36bc2f=_0x3d0128;let {presenter:_0xb31db8}=_0x218c2f[_0x36bc2f(0xc9)],_0x280f22=this['_collabSession'][_0x36bc2f(0xb2)]();this[_0x36bc2f(0xe1)]=_0xb31db8,_0xb31db8===_0x280f22?(this[_0x36bc2f(0x88)](),this[_0x36bc2f(0xe4)]()):this['_status']!==G[_0x36bc2f(0xdc)]&&(this[_0x36bc2f(0xef)](),this[_0x36bc2f(0xf1)]());}['_fetchOperations'](){const _0x40b24b=_0x3d0128;let _0x2a82c6={'eventID':_0x36485c[_0x40b24b(0x8c)]};this[_0x40b24b(0xb4)]['send'](_0x2a82c6,this[_0x40b24b(0xda)]);}[_0x3d0128(0xf5)](){const _0x2683ff=_0x3d0128;this['_presenter']=null,this[_0x2683ff(0x72)]!==G[_0x2683ff(0x86)]&&this[_0x2683ff(0xe3)]();}[_0x3d0128(0xeb)](_0x49c559){const _0x40f4a6=_0x3d0128;if(this[_0x40f4a6(0x72)]===G[_0x40f4a6(0x76)]&&this[_0x40f4a6(0xe1)]===_0x49c559[_0x40f4a6(0xc9)][_0x40f4a6(0xe2)]){let _0x489a8f=_0x302b6c(_0x49c559[_0x40f4a6(0xc9)])['mutations'][_0x40f4a6(0x102)]()[_0x40f4a6(0xa2)](_0x12c736=>_0x12c736['id']===_0x56fac8['id']);if(_0x489a8f){let _0x4663d2=_0x489a8f[_0x40f4a6(0xc7)]['unitId'],_0x4df101=_0x489a8f['params'][_0x40f4a6(0xe0)]['id'];setTimeout(()=>{const _0x3242a1=_0x40f4a6;this[_0x3242a1(0xbd)]['executeCommand'](_0x123026['id'],{'unitId':_0x4663d2,'subUnitId':_0x4df101},{'fromCollab':!0x0});});}}}[_0x3d0128(0xe4)](){const _0xe70f26=_0x3d0128;this[_0xe70f26(0x7c)]['next'](G[_0xe70f26(0x86)]);let _0x2abefb=new Map(),_0x409cdf=this[_0xe70f26(0xcf)]=new _0x404ec6();_0x409cdf[_0xe70f26(0xfc)](_0x3dceee(()=>{const _0x462c94=_0xe70f26;_0x2abefb['forEach'](_0x57e5a9=>_0x57e5a9[_0x462c94(0xec)]()),_0x2abefb[_0x462c94(0xed)]();})),_0x409cdf[_0xe70f26(0xfc)](this['_commandService'][_0xe70f26(0xee)](_0x16f1f2=>{const _0x146a3c=_0xe70f26;if(_0x16f1f2[_0x146a3c(0xa8)]!==_0x1c1f49['OPERATION']||!this[_0x146a3c(0xea)][_0x146a3c(0x9d)](_0x16f1f2['id']))return;let {id:_0x40f0cc}=_0x16f1f2,_0x3d32b6;if(_0x2abefb[_0x146a3c(0xf8)](_0x40f0cc))_0x3d32b6=_0x2abefb[_0x146a3c(0xc3)](_0x40f0cc);else{var _0x4b9047;_0x3d32b6=new _0x1c4306(),_0x2abefb['set'](_0x40f0cc,_0x3d32b6),_0x3d32b6[_0x146a3c(0xbe)](_0x3b0ab9((_0x4b9047=this[_0x146a3c(0x77)]['getConfig'](_0x146a3c(0xcc)))==null?0xc8:_0x4b9047,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x146a3c(0x94)](_0x4e8d24=>{const _0x5b5776=_0x146a3c;this['_collabSession'][_0x5b5776(0xf2)]({'eventID':_0x36485c[_0x5b5776(0xa1)],'data':{'unitID':this[_0x5b5776(0xda)],'operations':{[_0x4e8d24['id']]:{'id':_0x4e8d24['id'],'params':JSON['stringify'](_0x4e8d24[_0x5b5776(0xc7)])}}}},this['_unitID']);});}_0x3d32b6['next'](_0x16f1f2);})),this[_0xe70f26(0xea)][_0xe70f26(0xd1)](this['_unitID'])[_0xe70f26(0xe9)](_0x1f7b11=>this[_0xe70f26(0xb4)][_0xe70f26(0xf2)]({'eventID':_0x36485c[_0xe70f26(0xa1)],'data':{'unitID':this[_0xe70f26(0xda)],'operations':{[_0x1f7b11['id']]:{'id':_0x1f7b11['id'],'params':JSON[_0xe70f26(0xd9)](_0x1f7b11[_0xe70f26(0xc7)])}}}},this[_0xe70f26(0xda)]));}['_stopPresenting'](){const _0x5bfa5a=_0x3d0128;var _0x21e98d;this[_0x5bfa5a(0x7c)]['next'](G[_0x5bfa5a(0xf7)]),(_0x21e98d=this[_0x5bfa5a(0xcf)])==null||_0x21e98d[_0x5bfa5a(0x74)](),this['_commandDisposable']=null;}[_0x3d0128(0xf1)](){const _0x412f6a=_0x3d0128;var _0x4cdc70;(_0x4cdc70=this[_0x412f6a(0xcf)])==null||_0x4cdc70['dispose'](),this[_0x412f6a(0x7c)][_0x412f6a(0x8b)](G[_0x412f6a(0x76)]);}[_0x3d0128(0xe3)](){const _0x59e475=_0x3d0128;var _0x26ea35;this[_0x59e475(0x7c)]['next'](G[_0x59e475(0xf7)]),(_0x26ea35=this[_0x59e475(0xcf)])==null||_0x26ea35[_0x59e475(0x74)](),this[_0x59e475(0xcf)]=null;}['_stopFollowing'](){const _0x2421b1=_0x3d0128;var _0x2e73e0;this['_status$']['next'](G[_0x2421b1(0xdc)]),(_0x2e73e0=this[_0x2421b1(0xcf)])==null||_0x2e73e0['dispose']();}[_0x3d0128(0xd0)](_0x19e6ef){const _0x2bc91a=_0x3d0128;if([G[_0x2bc91a(0x86)],G[_0x2bc91a(0xdc)],G[_0x2bc91a(0x83)]][_0x2bc91a(0x9a)](this[_0x2bc91a(0x72)])||!_0x19e6ef[_0x2bc91a(0xc9)]['presenter']||_0x19e6ef[_0x2bc91a(0xc9)]['presenter']===this[_0x2bc91a(0xb4)]['getMemberID']())return;this[_0x2bc91a(0x72)]===G['IDLE']&&this['_startFollowing']();let _0x2705ce=_0x19e6ef[_0x2bc91a(0xc9)]['operations'];Object['values'](_0x2705ce)[_0x2bc91a(0xe9)](_0x3c48b4=>{const _0x24af84=_0x2bc91a;this[_0x24af84(0xbd)][_0x24af84(0xba)](_0x3c48b4['id'],_0x3c48b4['params']?JSON[_0x24af84(0xce)](_0x3c48b4[_0x24af84(0xc7)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1627e1=_0x3d0128;var _0x26d5b8;this[_0x1627e1(0x7c)][_0x1627e1(0x8b)](G[_0x1627e1(0x83)]),(_0x26d5b8=this[_0x1627e1(0xcf)])==null||_0x26d5b8[_0x1627e1(0x74)]();}[_0x3d0128(0x8d)](){const _0x51bac5=_0x3d0128;this[_0x51bac5(0x7c)]['next'](G['IDLE']),this[_0x51bac5(0xcd)]();}};K=U([H(0x2,_0x4fe3b2),H(0x3,_0x93af7e(V)),H(0x4,_0x3b2faa)],K);function q(){const _0x2bb6aa=_0x3d0128;let _0x52359d=_0x292703(W),_0x4f7805=_0x292703(_0x36b23d),_0x305964=_0x1e2dff(()=>_0x4f7805[_0x2bb6aa(0xd2)](_0x484236[_0x2bb6aa(0x100)]),void 0x0,!0x1,[]),[_0x3f91e1,_0x390e0a]=_0x225091(null),[_0x5cad62,_0x23ae23]=_0x225091(G[_0x2bb6aa(0xf7)]),_0x5891b4=_0x923153(null);return _0x5f059a(()=>(_0x305964&&_0x52359d[_0x2bb6aa(0xfb)](_0x305964['getUnitId']())[_0x2bb6aa(0x9e)](_0x3b0e55=>{const _0x2de2b8=_0x2bb6aa;_0x390e0a(_0x3b0e55),_0x5891b4[_0x2de2b8(0xf4)]=_0x3b0e55[_0x2de2b8(0x7e)][_0x2de2b8(0x94)](_0x507292=>{_0x23ae23(_0x507292);});}),()=>{const _0x2268c3=_0x2bb6aa;var _0x2463ff;(_0x2463ff=_0x5891b4[_0x2268c3(0xf4)])==null||_0x2463ff[_0x2268c3(0xe5)](),_0x5891b4[_0x2268c3(0xf4)]=null;}),[_0x305964,_0x52359d]),_0x3f91e1?_0x150cba(_0x5e92ce,{'align':'end','disabled':_0x5cad62===G[_0x2bb6aa(0x83)],'className':_0x2bb6aa(0xcb),'overlay':_0x150cba(ce,{'status':_0x5cad62,'coordinator':_0x3f91e1}),'children':_0x150cba('button',{'className':_0x47db3d(_0x2bb6aa(0xc1),{'univer-cursor-not-allowed':_0x5cad62===G[_0x2bb6aa(0x83)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5cad62!==G[_0x2bb6aa(0x83)]}),'type':'button','children':_0x150cba(_0x5ed039,{'className':_0x2bb6aa(0xdd)})})}):null;}function ce(_0x549910){const _0x422724=_0x3d0128;let {status:_0x215f42,coordinator:_0x47d61d}=_0x549910;switch(_0x215f42){case G[_0x422724(0xf7)]:return _0x150cba(le,{'coordinator':_0x47d61d});case G['FOLLOWING']:return _0x150cba(ue,{'coordinator':_0x47d61d});case G[_0x422724(0xdc)]:return _0x150cba(de,{'coordinator':_0x47d61d});case G[_0x422724(0x83)]:return _0x150cba(fe,{});case G[_0x422724(0x86)]:return _0x150cba(J,{'coordinator':_0x47d61d});default:return null;}}function le(_0x533b25){const _0x42a562=_0x3d0128;let {coordinator:_0x41c01a}=_0x533b25;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x42a562(0xab),{'className':_0x42a562(0x9b),'children':'Present\x20this\x20document'}),_0x150cba(_0x4db05c,{'onClick':()=>_0x41c01a[_0x42a562(0x7f)](),'children':'Start'})]});}function ue(_0x4e8fea){const _0x12554d=_0x3d0128;let {coordinator:_0x1a36c6}=_0x4e8fea;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x12554d(0xab),{'className':_0x12554d(0x9b),'children':_0x12554d(0xa4)}),_0x150cba(_0x4db05c,{'onClick':()=>_0x1a36c6[_0x12554d(0xbf)](),'children':_0x12554d(0x90)})]});}function de(_0x107792){const _0x211c43=_0x3d0128;let {coordinator:_0x2cf9d8}=_0x107792;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba('div',{'className':_0x211c43(0x9b),'children':_0x211c43(0x9c)}),_0x150cba(_0x4db05c,{'variant':_0x211c43(0xc0),'onClick':()=>_0x2cf9d8[_0x211c43(0xd4)](),'children':'Start\x20following'})]});}function J(_0x29e284){const _0x1515a6=_0x3d0128;let {coordinator:_0x34a351}=_0x29e284;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x1515a6(0xab),{'className':_0x1515a6(0x9b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x150cba(_0x4db05c,{'variant':_0x1515a6(0x98),'onClick':()=>_0x34a351[_0x1515a6(0xb6)](),'children':_0x1515a6(0xb7)})]});}function fe(){const _0x3934de=_0x3d0128;return _0x150cba(_0x34cc85,{'children':_0x3934de(0xb9)});}let Y=class extends _0x54ca8c{constructor(_0x29bfed,_0x1bef65){const _0x230a90=_0x3d0128;super(),this[_0x230a90(0xf0)]=_0x29bfed,this[_0x230a90(0x93)]=_0x1bef65,this[_0x230a90(0xe6)]();}['_mountLiveShare'](){const _0x5ce18c=_0x3d0128;this['disposeWithMe'](this[_0x5ce18c(0x93)][_0x5ce18c(0xaa)](_0x3e8e0b[_0x5ce18c(0xae)],()=>_0x599550(q,this[_0x5ce18c(0xf0)])));}};Y=U([H(0x0,_0x93af7e(_0x17532c)),H(0x1,_0x1eb6e7)],Y);var pe='@univerjs-pro/live-share',me='0.20.0';const X=_0x3d0128(0x84);Symbol(X);const Z={};let Q=class extends _0x54ca8c{constructor(_0x47c3c9){const _0xbac056=_0x3d0128;super(),this[_0xbac056(0xea)]=_0x47c3c9,this['_init']();}[_0x3d0128(0xa0)](){const _0x222173=_0x3d0128;[_0x52bfd1['id'],_0x576ee1['id'],_0x123026['id']][_0x222173(0xe9)](_0x5d4bd7=>{const _0x37b975=_0x222173;this[_0x37b975(0xde)](this[_0x37b975(0xea)][_0x37b975(0xfa)](_0x5d4bd7));});}};Q=U([H(0x0,_0x93af7e(V))],Q);let $=class extends _0x577139{constructor(_0x395f72=Z,_0x291db0,_0x2be72b){const _0x3ebf18=_0x3d0128;super(),this['_config']=_0x395f72,this[_0x3ebf18(0xf0)]=_0x291db0,this[_0x3ebf18(0x77)]=_0x2be72b;let {..._0x2796ad}=_0x589157({},Z,this[_0x3ebf18(0x9f)]);this[_0x3ebf18(0x77)][_0x3ebf18(0xd3)](X,_0x2796ad);}['onStarting'](){const _0x339618=_0x3d0128;_0x311905(this[_0x339618(0xf0)],_0x53db3c([[V],[W],[Q],[Y]],this[_0x339618(0x9f)][_0x339618(0xc8)])),_0x79afb0(this[_0x339618(0xf0)],[[Q]]);}[_0x3d0128(0x81)](){const _0x1eac88=_0x3d0128;_0x79afb0(this[_0x1eac88(0xf0)],[[Y]]);}};B($,_0x3d0128(0xa8),_0x484236[_0x3d0128(0x87)]),B($,_0x3d0128(0xaf),_0x3d0128(0xd7)),B($,_0x3d0128(0xa7),pe),B($,_0x3d0128(0x7b),me),$=U([_0x121476(_0xdc6e53),H(0x1,_0x93af7e(_0x17532c)),H(0x2,_0x4fe3b2)],$);function _0x3a4a(_0xa72e4e,_0x11fe7e){_0xa72e4e=_0xa72e4e-0x71;const _0x81b0ff=_0x81b0();let _0x3a4a70=_0x81b0ff[_0xa72e4e];return _0x3a4a70;}export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
@@ -2,7 +2,7 @@ import { LiveShareStatus } from '@univerjs-pro/live-share';
|
|
|
2
2
|
/**
|
|
3
3
|
* @ignore
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface IFLiveShareEnumMixin {
|
|
6
6
|
/**
|
|
7
7
|
* Get LiveShareStatus enum. {@link LiveShareStatus}
|
|
8
8
|
*/
|
|
@@ -12,6 +12,6 @@ export interface ILiveShareEnumMixin {
|
|
|
12
12
|
* @ignore
|
|
13
13
|
*/
|
|
14
14
|
declare module '@univerjs/core/facade' {
|
|
15
|
-
interface FEnum extends
|
|
15
|
+
interface FEnum extends IFLiveShareEnumMixin {
|
|
16
16
|
}
|
|
17
17
|
}
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3483(_0x32f966,_0x20cda9){_0x32f966=_0x32f966-0xc0;const _0x2cbf9f=_0x2cbf();let _0x34837a=_0x2cbf9f[_0x32f966];return _0x34837a;}(function(_0x1ee4d9,_0x5a0e6c){const _0x4dd720=_0x3483,_0x4fe0ba=_0x1ee4d9();while(!![]){try{const _0x429534=-parseInt(_0x4dd720(0xdd))/0x1*(-parseInt(_0x4dd720(0xcb))/0x2)+parseInt(_0x4dd720(0xd8))/0x3*(parseInt(_0x4dd720(0xca))/0x4)+parseInt(_0x4dd720(0xc7))/0x5*(parseInt(_0x4dd720(0xe5))/0x6)+-parseInt(_0x4dd720(0xf0))/0x7*(-parseInt(_0x4dd720(0xd7))/0x8)+parseInt(_0x4dd720(0xd6))/0x9*(-parseInt(_0x4dd720(0xea))/0xa)+-parseInt(_0x4dd720(0xd0))/0xb*(-parseInt(_0x4dd720(0xda))/0xc)+parseInt(_0x4dd720(0xd3))/0xd*(-parseInt(_0x4dd720(0xd2))/0xe);if(_0x429534===_0x5a0e6c)break;else _0x4fe0ba['push'](_0x4fe0ba['shift']());}catch(_0x335d66){_0x4fe0ba['push'](_0x4fe0ba['shift']());}}}(_0x2cbf,0x6fe7b),function(_0x369d24,_0x373406){const _0xef06d0=_0x3483;typeof exports=='object'&&typeof module<'u'?_0x373406(require(`@univerjs-pro/live-share`),require(`@univerjs/core`),require(`@univerjs/core/facade`)):typeof define==_0xef06d0(0xe9)&&define[_0xef06d0(0xcf)]?define(['@univerjs-pro/live-share','@univerjs/core','@univerjs/core/facade'],_0x373406):(_0x369d24=typeof globalThis<'u'?globalThis:_0x369d24||self,_0x373406(_0x369d24[_0xef06d0(0xc5)],_0x369d24[_0xef06d0(0xc4)],_0x369d24[_0xef06d0(0xd9)]));}(this,function(_0x145c5f,_0x2e3f04,_0x10b20b){const _0x4419a5=_0x3483;function _0x424d4f(_0x3beabb){'@babel/helpers - typeof';const _0x2165c5=_0x3483;return _0x424d4f=typeof Symbol==_0x2165c5(0xe9)&&typeof Symbol['iterator']=='symbol'?function(_0x1abb89){return typeof _0x1abb89;}:function(_0x20101c){const _0x5a7db3=_0x2165c5;return _0x20101c&&typeof Symbol==_0x5a7db3(0xe9)&&_0x20101c[_0x5a7db3(0xeb)]===Symbol&&_0x20101c!==Symbol[_0x5a7db3(0xd1)]?_0x5a7db3(0xc2):typeof _0x20101c;},_0x424d4f(_0x3beabb);}function _0x225f58(_0x348bf2,_0x456bc8){const _0x78e51=_0x3483;if(_0x424d4f(_0x348bf2)!=_0x78e51(0xd5)||!_0x348bf2)return _0x348bf2;var _0x5f10ca=_0x348bf2[Symbol['toPrimitive']];if(_0x5f10ca!==void 0x0){var _0x228518=_0x5f10ca[_0x78e51(0xf3)](_0x348bf2,_0x456bc8||_0x78e51(0xcc));if(_0x424d4f(_0x228518)!='object')return _0x228518;throw TypeError(_0x78e51(0xcd));}return(_0x456bc8==='string'?String:Number)(_0x348bf2);}function _0x34592a(_0x33351e){const _0x4b1310=_0x3483;var _0x22ff49=_0x225f58(_0x33351e,_0x4b1310(0xe8));return _0x424d4f(_0x22ff49)==_0x4b1310(0xc2)?_0x22ff49:_0x22ff49+'';}function _0x49ca63(_0x1a808f,_0x8312b4,_0xaba026){const _0x823d8f=_0x3483;return(_0x8312b4=_0x34592a(_0x8312b4))in _0x1a808f?Object[_0x823d8f(0xc0)](_0x1a808f,_0x8312b4,{'value':_0xaba026,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1a808f[_0x8312b4]=_0xaba026,_0x1a808f;}var _0x4c9b9c=class extends _0x10b20b[_0x4419a5(0xd4)]{constructor(..._0x60f053){super(..._0x60f053),_0x49ca63(this,'_liveShareController',void 0x0);}[_0x4419a5(0xc1)](_0x5e4c7d){const _0x2192c4=_0x4419a5;this[_0x2192c4(0xc6)]=_0x5e4c7d[_0x2192c4(0xe7)](_0x145c5f['LiveShareController']);}[_0x4419a5(0xde)](){const _0x581d39=_0x4419a5;var _0x222d81;let _0x3e7727=this[_0x581d39(0xc3)][_0x581d39(0xe7)](_0x2e3f04[_0x581d39(0xee)])[_0x581d39(0xef)](_0x2e3f04[_0x581d39(0xe4)][_0x581d39(0xec)]);if(!_0x3e7727)throw Error(_0x581d39(0xdf));let _0x4bc4e7=_0x3e7727[_0x581d39(0xe6)](),_0x1f78c1=this['_liveShareController'][_0x581d39(0xed)](_0x4bc4e7);return(_0x222d81=_0x1f78c1==null?void 0x0:_0x1f78c1['getStatus']())==null?_0x145c5f[_0x581d39(0xce)][_0x581d39(0xe1)]:_0x222d81;}[_0x4419a5(0xe2)](){const _0x220847=_0x4419a5;let _0x46fa18=this[_0x220847(0xc3)]['get'](_0x2e3f04['IUniverInstanceService'])['getCurrentUnitOfType'](_0x2e3f04['UniverInstanceType']['UNIVER_SHEET']);if(!_0x46fa18)throw Error(_0x220847(0xdf));let _0x37782a=_0x46fa18[_0x220847(0xe6)](),_0x1876b9=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x37782a);if(!_0x1876b9)throw Error(_0x220847(0xe3));_0x1876b9[_0x220847(0xe2)]();}['stopFollowing'](){const _0x4a58e7=_0x4419a5;let _0x376128=this[_0x4a58e7(0xc3)][_0x4a58e7(0xe7)](_0x2e3f04['IUniverInstanceService'])[_0x4a58e7(0xef)](_0x2e3f04['UniverInstanceType'][_0x4a58e7(0xec)]);if(!_0x376128)throw Error(_0x4a58e7(0xdf));let _0x525d9c=_0x376128[_0x4a58e7(0xe6)](),_0xddc39c=this[_0x4a58e7(0xc6)][_0x4a58e7(0xed)](_0x525d9c);if(!_0xddc39c)throw Error(_0x4a58e7(0xe3));_0xddc39c[_0x4a58e7(0xf2)]();}[_0x4419a5(0xdb)](){const _0x599b2d=_0x4419a5;let _0x36f2ff=this[_0x599b2d(0xc3)][_0x599b2d(0xe7)](_0x2e3f04[_0x599b2d(0xee)])[_0x599b2d(0xef)](_0x2e3f04[_0x599b2d(0xe4)][_0x599b2d(0xec)]);if(!_0x36f2ff)throw Error(_0x599b2d(0xdf));let _0x4adc20=_0x36f2ff[_0x599b2d(0xe6)](),_0xda95fe=this[_0x599b2d(0xc6)][_0x599b2d(0xed)](_0x4adc20);if(!_0xda95fe)throw Error(_0x599b2d(0xe3));_0xda95fe[_0x599b2d(0xf1)]();}['stopPresenting'](){const _0x2a6f4d=_0x4419a5;let _0x3ebe46=this[_0x2a6f4d(0xc3)]['get'](_0x2e3f04['IUniverInstanceService'])[_0x2a6f4d(0xef)](_0x2e3f04[_0x2a6f4d(0xe4)][_0x2a6f4d(0xec)]);if(!_0x3ebe46)throw Error('No\x20active\x20workbook\x20found.');let _0x5c3f15=_0x3ebe46['getUnitId'](),_0x27adc3=this['_liveShareController'][_0x2a6f4d(0xed)](_0x5c3f15);if(!_0x27adc3)throw Error(_0x2a6f4d(0xe3));_0x27adc3[_0x2a6f4d(0xc8)]();}};_0x10b20b['FUniver'][_0x4419a5(0xe0)](_0x4c9b9c);var _0x298885=class extends _0x10b20b[_0x4419a5(0xdc)]{get[_0x4419a5(0xc9)](){const _0x41da80=_0x4419a5;return _0x145c5f[_0x41da80(0xce)];}};_0x10b20b['FEnum'][_0x4419a5(0xe0)](_0x298885);}));function _0x2cbf(){const _0x12ba51=['260616RSsYTv','UniverCoreFacade','701100VGWEoP','startPresenting','FEnum','38uCPqiC','getLiveShareStatus','No\x20active\x20workbook\x20found.','extend','IDLE','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverInstanceType','1117266askgUr','getUnitId','get','string','function','10JrtXdx','constructor','UNIVER_SHEET','getLiveShareCoordinatorSync','IUniverInstanceService','getCurrentUnitOfType','7HERMEI','tryStartPresenting','stopFollowing','call','defineProperty','_initialize','symbol','_injector','UniverCore','UniverProLiveShare','_liveShareController','10BJJGBb','stopPresenting','LiveShareStatusEnum','16fjiHzj','28258GxYZFs','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatus','amd','121JMqWfl','prototype','1162vEGhTn','259220zTfJDR','FUniver','object','5020884lLElxG','6174176YNIANF'];_0x2cbf=function(){return _0x12ba51;};return _0x2cbf();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x526c(){const _0x257bb3=['tryStartPresenting','OFFLINE','presenting','clear','createElement','react/jsx-runtime','Injector','Fragment','LIVESHARE_FETCH_OPERATIONS','Start\x20following','live-share.config','reverse','990995MbkcmH','idSuffix','rxjs','path','toPrimitive','_startPresenting','UniverProLiveShare','requireSession','React','includes','fill','stopFollowing','memberID','LiveShareService','CollaborationEvent','_stopFollowing','LIVESHARE_NEW_HOST','parseProtocolChangeset','CollaborationSessionService','ICommandService','_collabSessionService','getLiveShareCoordinator','operators','_reporters','getInitialStates','9184010varPtd','IUniverInstanceService','find','decorate','CommandType','onCommandExecuted','getUnitId','unitId','1em','div','1816695XqcLsO','string','children','function','@univerjs/design','currentColor','displayName','getTypeOfUnitAdded$','getConfig','univerjs-icon\x20univerjs-icon-','button','56uzdCKW','dispose$','rxjs/operators','Subject','subscribe','Disposable','2adVweU','Stop\x20following','BuiltInUIPart','_mountLiveShare','Button','toDisposable','exports','UniverDesign','live-share-icon','getOwnPropertyDescriptor','parse','SetScrollOperation','registerDependencies','_handleOnline','UNIVER_UNKNOWN','NEW_CHANGESETS','onStarting','touchDependencies','has','length','unsubscribe','from','getMemberID','_handleOffline','forEach','You\x27are\x20offline.','jsx','_status$','@univerjs-pro/collaboration-client','type','Present\x20this\x20document','add','@univerjs/ui','UniverUi','3427237fsMNWk','prototype','sheet','UniverProCollaboration','LiveShareStatus','SetWorksheetActiveOperation','Stop\x20presenting','tag','You\x27re\x20presenting\x20the\x20document','IDLE','_startLiveShareCoordinator','forwardRef','takeUntil','attrs','current','Plugin','override','PRESENTING','Inject','_beIdle','_liveShareService','url(#$1','You\x27re\x20following\x20the\x20presenter','values','12Biqtqw','dispose','defs','data','offline','74864KjuubB','useObservable','UniverIcon','sessionStatus$','merge','LIVESHARE_TERMINATE','executeCommand','_handleOperation','createInstance','_handleNewHost','none','_commandService','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','end','@univerjs-pro/live-share','startFollowing','object','_uiPartsService','NOT_FOLLOWING','registerSharedOperation','map','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','trim','getValue','RxDisposable','UniverInstanceType','_sharedOperations','DisposableCollection','amd','react','constructor','LiveShareController','toStringTag','@univerjs/sheets-ui','_injector','UniverLiveSharePlugin','following','useDependency','_status','get','clsx','disposeWithMe','symbol','_univerInstanceService','56cnEAdl','replace','evenodd','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','call','text','getLiveShareCoordinatorSync','_stopPresenting','operations','random','_entities','colorChannel1','http://www.w3.org/2000/svg','_startFollowing','_init','pipe','_configService','3785536hYBVym','@univerjs-pro/collaboration','Module','LIVESHARE_REQUEST_HOST','init','version','UniverSheets','_commandDisposable','iterator','xlink:href','UniverSheetsUi','_handleNewChangeSets','3nLhTmc','useState','DependentOn','UNIVER_SHEET','stringify','_handleTerminate','default','send','@univerjs/core','0\x200\x2017\x2017','_presenter','defineProperty','1283232LBQgQC','presenter','defIds','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','packageName','UniverProCollaborationClient','HEADER_MENU','LiveShareCoordinator','useEffect','UniverCore','_unitID','next','delete','shouldShareOperation','params','jsxs','assign','use','_collabSession','LiveShare','getStatus','complete','IConfigService','stopPresenting','useRef','FOLLOWING'];_0x526c=function(){return _0x257bb3;};return _0x526c();}function _0x342b(_0x3aa3f6,_0x104687){_0x3aa3f6=_0x3aa3f6-0xb2;const _0x526c57=_0x526c();let _0x342b2f=_0x526c57[_0x3aa3f6];return _0x342b2f;}(function(_0x1bb50f,_0x530f83){const _0x4c9976=_0x342b,_0x1a4683=_0x1bb50f();while(!![]){try{const _0x4ab269=-parseInt(_0x4c9976(0x14a))/0x1*(parseInt(_0x4c9976(0x189))/0x2)+parseInt(_0x4c9976(0xe3))/0x3*(parseInt(_0x4c9976(0xd7))/0x4)+-parseInt(_0x4c9976(0x116))/0x5+parseInt(_0x4c9976(0xef))/0x6*(-parseInt(_0x4c9976(0x144))/0x7)+parseInt(_0x4c9976(0xc5))/0x8*(parseInt(_0x4c9976(0x139))/0x9)+parseInt(_0x4c9976(0x12f))/0xa+parseInt(_0x4c9976(0x16c))/0xb*(-parseInt(_0x4c9976(0x184))/0xc);if(_0x4ab269===_0x530f83)break;else _0x1a4683['push'](_0x1a4683['shift']());}catch(_0x3d48d3){_0x1a4683['push'](_0x1a4683['shift']());}}}(_0x526c,0xefc94),function(_0xb327fa,_0x1cdf45){const _0x53d35b=_0x342b;typeof exports==_0x53d35b(0x199)&&typeof module<'u'?_0x1cdf45(exports,require(`@univerjs/core`),require(`@univerjs/ui`),require(`@univerjs/design`),require(`react`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs/sheets`),require(`rxjs`),require(`rxjs/operators`),require(`react/jsx-runtime`),require(`@univerjs/sheets-ui`)):typeof define=='function'&&define[_0x53d35b(0xb5)]?define([_0x53d35b(0x150),_0x53d35b(0xeb),_0x53d35b(0x16a),_0x53d35b(0x13d),_0x53d35b(0xb6),_0x53d35b(0xd8),_0x53d35b(0x166),'@univerjs/sheets',_0x53d35b(0x118),_0x53d35b(0x146),_0x53d35b(0x10f),_0x53d35b(0xba)],_0x1cdf45):(_0xb327fa=typeof globalThis<'u'?globalThis:_0xb327fa||self,_0x1cdf45(_0xb327fa[_0x53d35b(0x11c)]={},_0xb327fa[_0x53d35b(0xf9)],_0xb327fa[_0x53d35b(0x16b)],_0xb327fa[_0x53d35b(0x151)],_0xb327fa[_0x53d35b(0x11e)],_0xb327fa[_0x53d35b(0x16f)],_0xb327fa[_0x53d35b(0xf5)],_0xb327fa[_0x53d35b(0xdd)],_0xb327fa['rxjs'],_0xb327fa[_0x53d35b(0x118)][_0x53d35b(0x12c)],_0xb327fa['React'],_0xb327fa[_0x53d35b(0xe1)]));}(this,function(_0x2f7e08,_0x35c157,_0x48ec07,_0x133c3f,_0x593f18,_0x1cb6ce,_0x5742c5,_0x576f29,_0x4c7a85,_0x4992c9,_0x48268c,_0x41f8d2){const _0x2c7789=_0x342b;Object['defineProperty'](_0x2f7e08,Symbol[_0x2c7789(0xb9)],{'value':_0x2c7789(0xd9)});function _0x20059d({ref:_0x2869b2,..._0x3f7a49}){const _0x5e2e5b=_0x2c7789;let {icon:_0x8ce032,id:_0x74fe6a,className:_0x5a007b,extend:_0x297937,..._0x55290a}=_0x3f7a49,_0x5c06c8=(_0x5e2e5b(0x142)+_0x74fe6a+'\x20'+(_0x5a007b||''))[_0x5e2e5b(0x19f)](),_0x3ffb10=(0x0,_0x593f18[_0x5e2e5b(0x108)])('_'+_0x21abf2());return _0x11f113(_0x8ce032,''+_0x74fe6a,{'defIds':_0x8ce032[_0x5e2e5b(0xf1)],'idSuffix':_0x3ffb10[_0x5e2e5b(0x17a)]},{'ref':_0x2869b2,'className':_0x5c06c8,..._0x55290a},_0x297937);}function _0x11f113(_0xf8befb,_0x1339a0,_0x3ed0df,_0x38ed4a,_0x1bf427){const _0x8f8a57=_0x2c7789;return(0x0,_0x593f18[_0x8f8a57(0x10e)])(_0xf8befb[_0x8f8a57(0x173)],{'key':_0x1339a0,..._0x294699(_0xf8befb,_0x3ed0df,_0x1bf427),..._0x38ed4a},(_0x1e2142(_0xf8befb,_0x3ed0df)[_0x8f8a57(0x13b)]||[])[_0x8f8a57(0x19d)]((_0x548fda,_0xc5c681)=>_0x11f113(_0x548fda,_0x1339a0+'-'+_0xf8befb['tag']+'-'+_0xc5c681,_0x3ed0df,void 0x0,_0x1bf427)));}function _0x294699(_0x5a7171,_0x185188,_0x2bb4bb){const _0x9d1da5=_0x2c7789;let _0x1bd6f2={..._0x5a7171['attrs']};_0x2bb4bb!=null&&_0x2bb4bb[_0x9d1da5(0xd1)]&&_0x1bd6f2[_0x9d1da5(0x120)]===_0x9d1da5(0xd1)&&(_0x1bd6f2[_0x9d1da5(0x120)]=_0x2bb4bb[_0x9d1da5(0xd1)]),_0x5a7171[_0x9d1da5(0x173)]==='mask'&&_0x1bd6f2['id']&&(_0x1bd6f2['id']+=_0x185188['idSuffix']),Object['entries'](_0x1bd6f2)[_0x9d1da5(0x162)](([_0x135adb,_0x57fa55])=>{const _0x2445e5=_0x9d1da5;_0x135adb==='mask'&&typeof _0x57fa55==_0x2445e5(0x13a)&&(_0x1bd6f2[_0x135adb]=_0x57fa55['replace'](/url\(#(.*)\)/,_0x2445e5(0x181)+_0x185188[_0x2445e5(0x117)]+')'));});let {defIds:_0x46c9a4}=_0x185188;return!_0x46c9a4||_0x46c9a4[_0x9d1da5(0x15d)]===0x0?_0x1bd6f2:(_0x5a7171['tag']===_0x9d1da5(0x101)&&_0x1bd6f2[_0x9d1da5(0xe0)]&&(_0x1bd6f2[_0x9d1da5(0xe0)]+=_0x185188[_0x9d1da5(0x117)]),Object['entries'](_0x1bd6f2)['forEach'](([_0x45dda2,_0x5df297])=>{const _0x31900b=_0x9d1da5;typeof _0x5df297==_0x31900b(0x13a)&&(_0x1bd6f2[_0x45dda2]=_0x5df297[_0x31900b(0xc6)](/url\(#(.*)\)/,_0x31900b(0x181)+_0x185188[_0x31900b(0x117)]+')'));}),_0x1bd6f2);}function _0x1e2142(_0x355a72,_0x3e8c7e){const _0x403e7f=_0x2c7789;var _0x449408;let {defIds:_0x52a64f}=_0x3e8c7e;return!_0x52a64f||_0x52a64f[_0x403e7f(0x15d)]===0x0?_0x355a72:_0x355a72[_0x403e7f(0x173)]===_0x403e7f(0x186)&&(_0x449408=_0x355a72[_0x403e7f(0x13b)])!=null&&_0x449408[_0x403e7f(0x15d)]?{..._0x355a72,'children':_0x355a72[_0x403e7f(0x13b)][_0x403e7f(0x19d)](_0x435e92=>typeof _0x435e92[_0x403e7f(0x179)]['id']=='string'&&_0x52a64f&&_0x52a64f[_0x403e7f(0x11f)](_0x435e92[_0x403e7f(0x179)]['id'])?{..._0x435e92,'attrs':{..._0x435e92[_0x403e7f(0x179)],'id':_0x435e92[_0x403e7f(0x179)]['id']+_0x3e8c7e[_0x403e7f(0x117)]}}:_0x435e92)}:_0x355a72;}function _0x21abf2(){const _0x40438e=_0x2c7789;return Math[_0x40438e(0xcf)]()['toString'](0x24)['substring'](0x2,0x8);}_0x20059d[_0x2c7789(0x13f)]=_0x2c7789(0x18b);let _0x5820e7={'tag':'svg','attrs':{'xmlns':_0x2c7789(0xd2),'fill':_0x2c7789(0x193),'viewBox':_0x2c7789(0xec),'width':_0x2c7789(0x137),'height':_0x2c7789(0x137)},'children':[{'tag':_0x2c7789(0x119),'attrs':{'fill':_0x2c7789(0x13e),'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':_0x2c7789(0x119),'attrs':{'fill':_0x2c7789(0x13e),'d':_0x2c7789(0x195),'fillRule':_0x2c7789(0xc7),'clipRule':'evenodd'}}]},_0x53670f=(0x0,_0x593f18[_0x2c7789(0x177)])(function(_0x6bd159,_0x56c943){const _0x4c15d9=_0x2c7789;return(0x0,_0x593f18['createElement'])(_0x20059d,Object[_0x4c15d9(0x100)]({},_0x6bd159,{'id':_0x4c15d9(0x152),'ref':_0x56c943,'icon':_0x5820e7}));});_0x53670f[_0x2c7789(0x13f)]='LiveShareIcon';function _0x345678(_0x4d1d50){'@babel/helpers - typeof';const _0xbcd8e2=_0x2c7789;return _0x345678=typeof Symbol==_0xbcd8e2(0x13c)&&typeof Symbol[_0xbcd8e2(0xdf)]==_0xbcd8e2(0xc3)?function(_0x180fe6){return typeof _0x180fe6;}:function(_0xd0cddd){const _0xfada8b=_0xbcd8e2;return _0xd0cddd&&typeof Symbol==_0xfada8b(0x13c)&&_0xd0cddd[_0xfada8b(0xb7)]===Symbol&&_0xd0cddd!==Symbol[_0xfada8b(0x16d)]?'symbol':typeof _0xd0cddd;},_0x345678(_0x4d1d50);}function _0x2f567e(_0x51d434,_0x25b323){const _0x492cf7=_0x2c7789;if(_0x345678(_0x51d434)!='object'||!_0x51d434)return _0x51d434;var _0x16b369=_0x51d434[Symbol[_0x492cf7(0x11a)]];if(_0x16b369!==void 0x0){var _0x38c5c9=_0x16b369[_0x492cf7(0xca)](_0x51d434,_0x25b323||_0x492cf7(0xe9));if(_0x345678(_0x38c5c9)!=_0x492cf7(0x199))return _0x38c5c9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x25b323===_0x492cf7(0x13a)?String:Number)(_0x51d434);}function _0x28ec2a(_0x4131ad){var _0x1f1463=_0x2f567e(_0x4131ad,'string');return _0x345678(_0x1f1463)=='symbol'?_0x1f1463:_0x1f1463+'';}function _0x8568ce(_0x1bb26b,_0x5b4d9d,_0x1f04dc){const _0xc41b97=_0x2c7789;return(_0x5b4d9d=_0x28ec2a(_0x5b4d9d))in _0x1bb26b?Object[_0xc41b97(0xee)](_0x1bb26b,_0x5b4d9d,{'value':_0x1f04dc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bb26b[_0x5b4d9d]=_0x1f04dc,_0x1bb26b;}var _0x132840=class extends _0x35c157[_0x2c7789(0x149)]{constructor(..._0x4b4138){const _0x5caa39=_0x2c7789;super(..._0x4b4138),_0x8568ce(this,_0x5caa39(0xb3),new Set()),_0x8568ce(this,'_reporters',new Set());}['registerSharedOperation'](_0x498f72){const _0x5e39d2=_0x2c7789;return this[_0x5e39d2(0xb3)][_0x5e39d2(0x169)](_0x498f72),(0x0,_0x35c157['toDisposable'])(()=>this[_0x5e39d2(0xb3)][_0x5e39d2(0xfc)](_0x498f72));}['registerInitialStateReporter'](_0x37d344){const _0x5c6aad=_0x2c7789;return this['_reporters']['add'](_0x37d344),(0x0,_0x35c157[_0x5c6aad(0x14f)])(()=>this[_0x5c6aad(0x12d)][_0x5c6aad(0xfc)](_0x37d344));}[_0x2c7789(0xfd)](_0x2ffb43){const _0x4d9a26=_0x2c7789;return this[_0x4d9a26(0xb3)][_0x4d9a26(0x15c)](_0x2ffb43);}['getInitialStates'](_0x5b81ae){const _0x107a14=_0x2c7789;return Array[_0x107a14(0x15f)](this[_0x107a14(0x12d)])[_0x107a14(0x19d)](_0x10c590=>_0x10c590(_0x5b81ae));}};function _0x765e84(_0x33e50,_0x2d6ba1){return function(_0x534548,_0x21b554){_0x2d6ba1(_0x534548,_0x21b554,_0x33e50);};}function _0x2594f4(_0x38f320,_0x44dc6a,_0x51ed59,_0x3b7190){const _0x5addeb=_0x2c7789;var _0x1774db=arguments[_0x5addeb(0x15d)],_0x5688fe=_0x1774db<0x3?_0x44dc6a:_0x3b7190===null?_0x3b7190=Object[_0x5addeb(0x153)](_0x44dc6a,_0x51ed59):_0x3b7190,_0x58279e;if(typeof Reflect=='object'&&typeof Reflect[_0x5addeb(0x132)]==_0x5addeb(0x13c))_0x5688fe=Reflect['decorate'](_0x38f320,_0x44dc6a,_0x51ed59,_0x3b7190);else{for(var _0x3dbcb7=_0x38f320[_0x5addeb(0x15d)]-0x1;_0x3dbcb7>=0x0;_0x3dbcb7--)(_0x58279e=_0x38f320[_0x3dbcb7])&&(_0x5688fe=(_0x1774db<0x3?_0x58279e(_0x5688fe):_0x1774db>0x3?_0x58279e(_0x44dc6a,_0x51ed59,_0x5688fe):_0x58279e(_0x44dc6a,_0x51ed59))||_0x5688fe);}return _0x1774db>0x3&&_0x5688fe&&Object[_0x5addeb(0xee)](_0x44dc6a,_0x51ed59,_0x5688fe),_0x5688fe;}let _0x52d854=class extends _0x35c157['RxDisposable']{constructor(_0x414eda,_0x304150,_0x559321){const _0x4bfbe2=_0x2c7789;super(),this['_univerInstanceService']=_0x414eda,this[_0x4bfbe2(0xbb)]=_0x304150,this[_0x4bfbe2(0x12a)]=_0x559321,_0x8568ce(this,_0x4bfbe2(0xd0),new Map()),this[_0x4bfbe2(0xd4)]();}async[_0x2c7789(0x12b)](_0x277ee1){const _0x155134=_0x2c7789;return this[_0x155134(0xd0)][_0x155134(0x15c)](_0x277ee1)||await this[_0x155134(0x176)](_0x277ee1),this[_0x155134(0xd0)][_0x155134(0xc0)](_0x277ee1);}[_0x2c7789(0xcc)](_0x359483){const _0xe02993=_0x2c7789;var _0x4c3eee;return(_0x4c3eee=this[_0xe02993(0xd0)]['get'](_0x359483))==null?null:_0x4c3eee;}[_0x2c7789(0xd4)](){const _0x3d9ed5=_0x2c7789;this[_0x3d9ed5(0xc4)][_0x3d9ed5(0x140)](_0x35c157[_0x3d9ed5(0xb2)]['UNIVER_SHEET'])[_0x3d9ed5(0xd5)]((0x0,_0x4992c9[_0x3d9ed5(0x178)])(this[_0x3d9ed5(0x145)]))[_0x3d9ed5(0x148)](async _0xfee281=>{const _0x484c5c=_0x3d9ed5;let _0x4b9358=_0xfee281[_0x484c5c(0x135)]();this['_entities'][_0x484c5c(0x15c)](_0x4b9358)||this[_0x484c5c(0x176)](_0x4b9358);}),this[_0x3d9ed5(0xc4)]['getTypeOfUnitDisposed$'](_0x35c157['UniverInstanceType'][_0x3d9ed5(0xe6)])['pipe']((0x0,_0x4992c9[_0x3d9ed5(0x178)])(this[_0x3d9ed5(0x145)]))['subscribe'](_0x4d2451=>{const _0x3af2d9=_0x3d9ed5;let _0x56cc1d=_0x4d2451[_0x3af2d9(0x135)](),_0x4812dd=this[_0x3af2d9(0xd0)][_0x3af2d9(0xc0)](_0x56cc1d);_0x4812dd==null||_0x4812dd[_0x3af2d9(0x185)]();});}async[_0x2c7789(0x176)](_0x3db9fe){const _0x21f040=_0x2c7789;let _0x1742fe=await this[_0x21f040(0x12a)][_0x21f040(0x11d)](_0x3db9fe),_0x137116=this[_0x21f040(0xbb)][_0x21f040(0x191)](_0xc6cade,_0x3db9fe,_0x1742fe);return _0x137116[_0x21f040(0xdb)](),this[_0x21f040(0xd0)]['set'](_0x3db9fe,_0x137116),_0x137116;}};_0x52d854=_0x2594f4([_0x765e84(0x0,_0x35c157[_0x2c7789(0x130)]),_0x765e84(0x1,(0x0,_0x35c157[_0x2c7789(0x17e)])(_0x35c157[_0x2c7789(0x110)])),_0x765e84(0x2,(0x0,_0x35c157['Inject'])(_0x5742c5[_0x2c7789(0x128)]))],_0x52d854);let _0x5917eb=function(_0x9db625){const _0x3d7cce=_0x2c7789;return _0x9db625[_0x3d7cce(0x10b)]=_0x3d7cce(0x188),_0x9db625[_0x3d7cce(0x175)]='idle',_0x9db625[_0x3d7cce(0x109)]=_0x3d7cce(0xbd),_0x9db625[_0x3d7cce(0x19b)]='not-following',_0x9db625[_0x3d7cce(0x17d)]=_0x3d7cce(0x10c),_0x9db625;}({}),_0xc6cade=class extends _0x35c157[_0x2c7789(0x1a1)]{get[_0x2c7789(0xbf)](){const _0x3645b8=_0x2c7789;return this[_0x3645b8(0x165)][_0x3645b8(0x1a0)]();}constructor(_0x4bd42a,_0x5a67dc,_0x1d5f35,_0x16a26c,_0x4da0cc){const _0x78e445=_0x2c7789;super(),this[_0x78e445(0xfa)]=_0x4bd42a,this[_0x78e445(0x102)]=_0x5a67dc,this[_0x78e445(0xd6)]=_0x1d5f35,this[_0x78e445(0x180)]=_0x16a26c,this[_0x78e445(0x194)]=_0x4da0cc,_0x8568ce(this,'_status$',new _0x4c7a85['BehaviorSubject'](_0x5917eb[_0x78e445(0x175)])),_0x8568ce(this,'status$',this['_status$']['asObservable']()),_0x8568ce(this,_0x78e445(0xd4),!0x1),_0x8568ce(this,'_commandDisposable',null),_0x8568ce(this,_0x78e445(0xed),null);}[_0x2c7789(0x185)](){const _0x4f29d3=_0x2c7789;var _0x448300;(_0x448300=this[_0x4f29d3(0xde)])==null||_0x448300[_0x4f29d3(0x185)](),this[_0x4f29d3(0x165)][_0x4f29d3(0xfb)](_0x5917eb[_0x4f29d3(0x175)]),this[_0x4f29d3(0x165)][_0x4f29d3(0x105)]();}[_0x2c7789(0x104)](){const _0x5b5462=_0x2c7789;return this[_0x5b5462(0xbf)];}['init'](){const _0x9ddacf=_0x2c7789;this['_init']||(this[_0x9ddacf(0xd4)]=!0x0,this[_0x9ddacf(0x102)][_0x9ddacf(0x18c)][_0x9ddacf(0xd5)]((0x0,_0x4992c9[_0x9ddacf(0x178)])(this[_0x9ddacf(0x145)]))[_0x9ddacf(0x148)](_0x377563=>{const _0x4dd009=_0x9ddacf;switch(_0x377563){case _0x5742c5['SessionStatus']['OFFLINE']:this[_0x4dd009(0x161)]();break;case _0x5742c5['SessionStatus']['ONLINE']:this[_0x4dd009(0x157)]();break;default:}}),this['_collabSession']['event$'][_0x9ddacf(0xd5)]((0x0,_0x4992c9[_0x9ddacf(0x178)])(this[_0x9ddacf(0x145)]))[_0x9ddacf(0x148)](_0xbb7b01=>{const _0x1e5019=_0x9ddacf;let {eventID:_0x43c815}=_0xbb7b01;switch(_0x43c815){case _0x1cb6ce[_0x1e5019(0x124)][_0x1e5019(0x126)]:this[_0x1e5019(0x192)](_0xbb7b01);break;case _0x1cb6ce[_0x1e5019(0x124)][_0x1e5019(0xc9)]:this[_0x1e5019(0x190)](_0xbb7b01);break;case _0x1cb6ce[_0x1e5019(0x124)][_0x1e5019(0x18e)]:this[_0x1e5019(0xe8)]();break;case _0x1cb6ce['CollaborationEvent'][_0x1e5019(0x159)]:this[_0x1e5019(0xe2)](_0xbb7b01);break;default:}}));}[_0x2c7789(0x10a)](){const _0x11ea9e=_0x2c7789;this[_0x11ea9e(0x102)][_0x11ea9e(0xea)]({'eventID':_0x1cb6ce[_0x11ea9e(0x124)][_0x11ea9e(0xda)],'data':{'unitID':this[_0x11ea9e(0xfa)],'userID':this[_0x11ea9e(0x102)][_0x11ea9e(0x160)]()}},this[_0x11ea9e(0xfa)]);}[_0x2c7789(0x107)](){const _0x42ba93=_0x2c7789;this[_0x42ba93(0xbf)]===_0x5917eb['PRESENTING']&&(this['_status$'][_0x42ba93(0xfb)](_0x5917eb[_0x42ba93(0x175)]),this[_0x42ba93(0x102)]['send']({'eventID':_0x1cb6ce[_0x42ba93(0x124)][_0x42ba93(0x18e)],'data':{'unitID':this[_0x42ba93(0xfa)]}},this[_0x42ba93(0xfa)]));}[_0x2c7789(0x198)](){const _0x3a1711=_0x2c7789;this[_0x3a1711(0xbf)]===_0x5917eb[_0x3a1711(0x19b)]&&(this[_0x3a1711(0x165)][_0x3a1711(0xfb)](_0x5917eb['FOLLOWING']),this['_startFollowing']());}[_0x2c7789(0x121)](){const _0x1d5ca5=_0x2c7789;this['_status']===_0x5917eb[_0x1d5ca5(0x109)]&&this[_0x1d5ca5(0x125)]();}[_0x2c7789(0x192)](_0x59cedf){const _0x1d6bd0=_0x2c7789;let {presenter:_0xabcd7a}=_0x59cedf[_0x1d6bd0(0x187)],_0x341003=this[_0x1d6bd0(0x102)][_0x1d6bd0(0x160)]();this[_0x1d6bd0(0xed)]=_0xabcd7a,_0xabcd7a===_0x341003?(this['_stopFollowing'](),this[_0x1d6bd0(0x11b)]()):this[_0x1d6bd0(0xbf)]!==_0x5917eb[_0x1d6bd0(0x19b)]&&(this['_stopPresenting'](),this[_0x1d6bd0(0xd3)]());}['_fetchOperations'](){const _0x22606b=_0x2c7789;let _0x25c9e3={'eventID':_0x1cb6ce[_0x22606b(0x124)][_0x22606b(0x112)]};this[_0x22606b(0x102)][_0x22606b(0xea)](_0x25c9e3,this[_0x22606b(0xfa)]);}[_0x2c7789(0xe8)](){const _0x22d31e=_0x2c7789;this[_0x22d31e(0xed)]=null,this[_0x22d31e(0xbf)]!==_0x5917eb[_0x22d31e(0x17d)]&&this[_0x22d31e(0x17f)]();}[_0x2c7789(0xe2)](_0x56021b){const _0x10b7b4=_0x2c7789;if(this[_0x10b7b4(0xbf)]===_0x5917eb[_0x10b7b4(0x109)]&&this[_0x10b7b4(0xed)]===_0x56021b[_0x10b7b4(0x187)][_0x10b7b4(0x122)]){let _0x493a22=(0x0,_0x1cb6ce[_0x10b7b4(0x127)])(_0x56021b[_0x10b7b4(0x187)])['mutations'][_0x10b7b4(0x115)]()[_0x10b7b4(0x131)](_0x2827ac=>_0x2827ac['id']===_0x576f29['InsertSheetMutation']['id']);if(_0x493a22){let _0x5e4afa=_0x493a22[_0x10b7b4(0xfe)][_0x10b7b4(0x136)],_0x57802a=_0x493a22['params'][_0x10b7b4(0x16e)]['id'];setTimeout(()=>{const _0x483e82=_0x10b7b4;this['_commandService'][_0x483e82(0x18f)](_0x576f29[_0x483e82(0x171)]['id'],{'unitId':_0x5e4afa,'subUnitId':_0x57802a},{'fromCollab':!0x0});});}}}[_0x2c7789(0x11b)](){const _0x2bc606=_0x2c7789;this[_0x2bc606(0x165)][_0x2bc606(0xfb)](_0x5917eb[_0x2bc606(0x17d)]);let _0x318c00=new Map(),_0x2415dc=this[_0x2bc606(0xde)]=new _0x35c157[(_0x2bc606(0xb4))]();_0x2415dc['add']((0x0,_0x35c157[_0x2bc606(0x14f)])(()=>{const _0x1da394=_0x2bc606;_0x318c00[_0x1da394(0x162)](_0x31d474=>_0x31d474['complete']()),_0x318c00[_0x1da394(0x10d)]();})),_0x2415dc['add'](this['_commandService'][_0x2bc606(0x134)](_0x5ba0b9=>{const _0x1be77=_0x2bc606;if(_0x5ba0b9[_0x1be77(0x167)]!==_0x35c157[_0x1be77(0x133)]['OPERATION']||!this[_0x1be77(0x180)][_0x1be77(0xfd)](_0x5ba0b9['id']))return;let {id:_0xb17f18}=_0x5ba0b9,_0x20172d;if(_0x318c00[_0x1be77(0x15c)](_0xb17f18))_0x20172d=_0x318c00[_0x1be77(0xc0)](_0xb17f18);else{var _0x20cade;_0x20172d=new _0x4c7a85[(_0x1be77(0x147))](),_0x318c00['set'](_0xb17f18,_0x20172d),_0x20172d[_0x1be77(0xd5)]((0x0,_0x4992c9['throttleTime'])((_0x20cade=this[_0x1be77(0xd6)][_0x1be77(0x141)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x20cade,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1be77(0x148)](_0x11c68b=>{const _0x4567ac=_0x1be77;this[_0x4567ac(0x102)][_0x4567ac(0xea)]({'eventID':_0x1cb6ce[_0x4567ac(0x124)][_0x4567ac(0xc9)],'data':{'unitID':this[_0x4567ac(0xfa)],'operations':{[_0x11c68b['id']]:{'id':_0x11c68b['id'],'params':JSON[_0x4567ac(0xe7)](_0x11c68b[_0x4567ac(0xfe)])}}}},this['_unitID']);});}_0x20172d[_0x1be77(0xfb)](_0x5ba0b9);})),this[_0x2bc606(0x180)][_0x2bc606(0x12e)](this['_unitID'])[_0x2bc606(0x162)](_0x2ec3a0=>this['_collabSession']['send']({'eventID':_0x1cb6ce[_0x2bc606(0x124)][_0x2bc606(0xc9)],'data':{'unitID':this['_unitID'],'operations':{[_0x2ec3a0['id']]:{'id':_0x2ec3a0['id'],'params':JSON['stringify'](_0x2ec3a0[_0x2bc606(0xfe)])}}}},this[_0x2bc606(0xfa)]));}[_0x2c7789(0xcd)](){const _0x4d496a=_0x2c7789;var _0x4d4e84;this['_status$'][_0x4d496a(0xfb)](_0x5917eb['IDLE']),(_0x4d4e84=this[_0x4d496a(0xde)])==null||_0x4d4e84[_0x4d496a(0x185)](),this[_0x4d496a(0xde)]=null;}[_0x2c7789(0xd3)](){const _0x572f4a=_0x2c7789;var _0x417683;(_0x417683=this['_commandDisposable'])==null||_0x417683[_0x572f4a(0x185)](),this[_0x572f4a(0x165)][_0x572f4a(0xfb)](_0x5917eb[_0x572f4a(0x109)]);}[_0x2c7789(0x17f)](){const _0x50e9bb=_0x2c7789;var _0x5d91ca;this['_status$'][_0x50e9bb(0xfb)](_0x5917eb[_0x50e9bb(0x175)]),(_0x5d91ca=this['_commandDisposable'])==null||_0x5d91ca[_0x50e9bb(0x185)](),this[_0x50e9bb(0xde)]=null;}['_stopFollowing'](){const _0x124e44=_0x2c7789;var _0x5eb7d5;this[_0x124e44(0x165)][_0x124e44(0xfb)](_0x5917eb['NOT_FOLLOWING']),(_0x5eb7d5=this[_0x124e44(0xde)])==null||_0x5eb7d5[_0x124e44(0x185)]();}[_0x2c7789(0x190)](_0x4d81e1){const _0x38c13e=_0x2c7789;if([_0x5917eb[_0x38c13e(0x17d)],_0x5917eb[_0x38c13e(0x19b)],_0x5917eb['OFFLINE']]['includes'](this['_status'])||!_0x4d81e1['data'][_0x38c13e(0xf0)]||_0x4d81e1[_0x38c13e(0x187)]['presenter']===this[_0x38c13e(0x102)][_0x38c13e(0x160)]())return;this[_0x38c13e(0xbf)]===_0x5917eb[_0x38c13e(0x175)]&&this[_0x38c13e(0xd3)]();let _0x4d8bd5=_0x4d81e1[_0x38c13e(0x187)][_0x38c13e(0xce)];Object[_0x38c13e(0x183)](_0x4d8bd5)[_0x38c13e(0x162)](_0x4bb87a=>{const _0xa7e043=_0x38c13e;this[_0xa7e043(0x194)]['executeCommand'](_0x4bb87a['id'],_0x4bb87a['params']?JSON[_0xa7e043(0x154)](_0x4bb87a[_0xa7e043(0xfe)]):null,{'fromCollab':!0x0});});}[_0x2c7789(0x161)](){const _0x359a46=_0x2c7789;var _0x2f089d;this['_status$']['next'](_0x5917eb[_0x359a46(0x10b)]),(_0x2f089d=this['_commandDisposable'])==null||_0x2f089d['dispose']();}['_handleOnline'](){const _0x408d33=_0x2c7789;this['_status$'][_0x408d33(0xfb)](_0x5917eb[_0x408d33(0x175)]),this['_fetchOperations']();}};_0xc6cade=_0x2594f4([_0x765e84(0x2,_0x35c157[_0x2c7789(0x106)]),_0x765e84(0x3,(0x0,_0x35c157[_0x2c7789(0x17e)])(_0x132840)),_0x765e84(0x4,_0x35c157[_0x2c7789(0x129)])],_0xc6cade);function _0x3255fd(){const _0x35aa8f=_0x2c7789;let _0x4e5b8b=(0x0,_0x48ec07['useDependency'])(_0x52d854),_0x507702=(0x0,_0x48ec07[_0x35aa8f(0xbe)])(_0x35c157[_0x35aa8f(0x130)]),_0x1f3670=(0x0,_0x48ec07[_0x35aa8f(0x18a)])(()=>_0x507702['getCurrentTypeOfUnit$'](_0x35c157[_0x35aa8f(0xb2)][_0x35aa8f(0xe6)]),void 0x0,!0x1,[]),[_0x147775,_0x62dceb]=(0x0,_0x593f18[_0x35aa8f(0xe4)])(null),[_0x855afc,_0x2da85e]=(0x0,_0x593f18[_0x35aa8f(0xe4)])(_0x5917eb['IDLE']),_0x1d84ad=(0x0,_0x593f18[_0x35aa8f(0x108)])(null);return(0x0,_0x593f18[_0x35aa8f(0xf8)])(()=>(_0x1f3670&&_0x4e5b8b[_0x35aa8f(0x12b)](_0x1f3670[_0x35aa8f(0x135)]())['then'](_0x3e62fc=>{const _0x43bf72=_0x35aa8f;_0x62dceb(_0x3e62fc),_0x1d84ad[_0x43bf72(0x17a)]=_0x3e62fc['status$']['subscribe'](_0x4e08ba=>{_0x2da85e(_0x4e08ba);});}),()=>{const _0x2990c5=_0x35aa8f;var _0x43bbae;(_0x43bbae=_0x1d84ad[_0x2990c5(0x17a)])==null||_0x43bbae[_0x2990c5(0x15e)](),_0x1d84ad[_0x2990c5(0x17a)]=null;}),[_0x1f3670,_0x4e5b8b]),_0x147775?(0x0,_0x48268c[_0x35aa8f(0x164)])(_0x133c3f['Dropdown'],{'align':_0x35aa8f(0x196),'disabled':_0x855afc===_0x5917eb[_0x35aa8f(0x10b)],'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':(0x0,_0x48268c[_0x35aa8f(0x164)])(_0x5e47d8,{'status':_0x855afc,'coordinator':_0x147775}),'children':(0x0,_0x48268c[_0x35aa8f(0x164)])(_0x35aa8f(0x143),{'className':(0x0,_0x133c3f[_0x35aa8f(0xc1)])(_0x35aa8f(0x19e),{'univer-cursor-not-allowed':_0x855afc===_0x5917eb[_0x35aa8f(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x855afc!==_0x5917eb[_0x35aa8f(0x10b)]}),'type':_0x35aa8f(0x143),'children':(0x0,_0x48268c['jsx'])(_0x53670f,{'className':'univer-size-4'})})}):null;}function _0x5e47d8(_0x3f7c73){const _0x587776=_0x2c7789;let {status:_0xbaee2b,coordinator:_0x972d72}=_0x3f7c73;switch(_0xbaee2b){case _0x5917eb['IDLE']:return(0x0,_0x48268c[_0x587776(0x164)])(_0x487ceb,{'coordinator':_0x972d72});case _0x5917eb[_0x587776(0x109)]:return(0x0,_0x48268c[_0x587776(0x164)])(_0x46a6f2,{'coordinator':_0x972d72});case _0x5917eb[_0x587776(0x19b)]:return(0x0,_0x48268c[_0x587776(0x164)])(_0x50f88b,{'coordinator':_0x972d72});case _0x5917eb[_0x587776(0x10b)]:return(0x0,_0x48268c['jsx'])(_0x115edf,{});case _0x5917eb['PRESENTING']:return(0x0,_0x48268c[_0x587776(0x164)])(_0xde1c7d,{'coordinator':_0x972d72});default:return null;}}function _0x487ceb(_0x2798b3){const _0x13410b=_0x2c7789;let {coordinator:_0x32bf9f}=_0x2798b3;return(0x0,_0x48268c[_0x13410b(0xff)])(_0x48268c[_0x13410b(0x111)],{'children':[(0x0,_0x48268c[_0x13410b(0x164)])('div',{'className':_0x13410b(0xf2),'children':_0x13410b(0x168)}),(0x0,_0x48268c[_0x13410b(0x164)])(_0x133c3f[_0x13410b(0x14e)],{'onClick':()=>_0x32bf9f[_0x13410b(0x10a)](),'children':'Start'})]});}function _0x46a6f2(_0x3c02fe){const _0x580e45=_0x2c7789;let {coordinator:_0x1d0f92}=_0x3c02fe;return(0x0,_0x48268c[_0x580e45(0xff)])(_0x48268c[_0x580e45(0x111)],{'children':[(0x0,_0x48268c[_0x580e45(0x164)])(_0x580e45(0x138),{'className':_0x580e45(0xf2),'children':_0x580e45(0x182)}),(0x0,_0x48268c[_0x580e45(0x164)])(_0x133c3f[_0x580e45(0x14e)],{'onClick':()=>_0x1d0f92[_0x580e45(0x121)](),'children':_0x580e45(0x14b)})]});}function _0x50f88b(_0x23de5d){const _0x551d94=_0x2c7789;let {coordinator:_0x5c8355}=_0x23de5d;return(0x0,_0x48268c['jsxs'])(_0x48268c[_0x551d94(0x111)],{'children':[(0x0,_0x48268c[_0x551d94(0x164)])(_0x551d94(0x138),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,_0x48268c[_0x551d94(0x164)])(_0x133c3f[_0x551d94(0x14e)],{'variant':_0x551d94(0xcb),'onClick':()=>_0x5c8355[_0x551d94(0x198)](),'children':_0x551d94(0x113)})]});}function _0xde1c7d(_0x3ec386){const _0x40da76=_0x2c7789;let {coordinator:_0x3c28bb}=_0x3ec386;return(0x0,_0x48268c[_0x40da76(0xff)])(_0x48268c[_0x40da76(0x111)],{'children':[(0x0,_0x48268c[_0x40da76(0x164)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40da76(0x174)}),(0x0,_0x48268c[_0x40da76(0x164)])(_0x133c3f['Button'],{'variant':'default','onClick':()=>_0x3c28bb[_0x40da76(0x107)](),'children':_0x40da76(0x172)})]});}function _0x115edf(){const _0x1205d4=_0x2c7789;return(0x0,_0x48268c[_0x1205d4(0x164)])(_0x48268c[_0x1205d4(0x111)],{'children':_0x1205d4(0x163)});}let _0x5778fd=class extends _0x35c157[_0x2c7789(0x149)]{constructor(_0x17b380,_0x5d1baa){const _0x544fe2=_0x2c7789;super(),this[_0x544fe2(0xbb)]=_0x17b380,this[_0x544fe2(0x19a)]=_0x5d1baa,this[_0x544fe2(0x14d)]();}[_0x2c7789(0x14d)](){const _0x481d99=_0x2c7789;this[_0x481d99(0xc2)](this[_0x481d99(0x19a)][_0x481d99(0xf3)](_0x48ec07[_0x481d99(0x14c)][_0x481d99(0xf6)],()=>(0x0,_0x48ec07['connectInjector'])(_0x3255fd,this['_injector'])));}};_0x5778fd=_0x2594f4([_0x765e84(0x0,(0x0,_0x35c157[_0x2c7789(0x17e)])(_0x35c157[_0x2c7789(0x110)])),_0x765e84(0x1,_0x48ec07['IUIPartsService'])],_0x5778fd);var _0x43dd2b=_0x2c7789(0x197),_0x128d2d='0.19.0';let _0x45c1c6=_0x2c7789(0x114);Symbol(_0x45c1c6);let _0x59fdd5={},_0xa21941=class extends _0x35c157[_0x2c7789(0x149)]{constructor(_0x24ef1e){const _0x2b6e27=_0x2c7789;super(),this['_liveShareService']=_0x24ef1e,this[_0x2b6e27(0xd4)]();}[_0x2c7789(0xd4)](){const _0xc30788=_0x2c7789;[_0x41f8d2['SetZoomRatioOperation']['id'],_0x41f8d2[_0xc30788(0x155)]['id'],_0x576f29[_0xc30788(0x171)]['id']][_0xc30788(0x162)](_0x225cfa=>{const _0x12e2f1=_0xc30788;this['disposeWithMe'](this['_liveShareService'][_0x12e2f1(0x19c)](_0x225cfa));});}};_0xa21941=_0x2594f4([_0x765e84(0x0,(0x0,_0x35c157['Inject'])(_0x132840))],_0xa21941);let _0x48de36=class extends _0x35c157[_0x2c7789(0x17b)]{constructor(_0x249922=_0x59fdd5,_0x2c355e,_0x37a1f8){const _0x452034=_0x2c7789;super(),this['_config']=_0x249922,this['_injector']=_0x2c355e,this[_0x452034(0xd6)]=_0x37a1f8;let {..._0x27d5f3}=(0x0,_0x35c157[_0x452034(0x18d)])({},_0x59fdd5,this['_config']);this[_0x452034(0xd6)]['setConfig'](_0x45c1c6,_0x27d5f3);}[_0x2c7789(0x15a)](){const _0x119bcd=_0x2c7789;(0x0,_0x35c157[_0x119bcd(0x156)])(this[_0x119bcd(0xbb)],(0x0,_0x35c157['mergeOverrideWithDependencies'])([[_0x132840],[_0x52d854],[_0xa21941],[_0x5778fd]],this['_config'][_0x119bcd(0x17c)])),(0x0,_0x35c157[_0x119bcd(0x15b)])(this[_0x119bcd(0xbb)],[[_0xa21941]]);}['onRendered'](){const _0x481137=_0x2c7789;(0x0,_0x35c157[_0x481137(0x15b)])(this[_0x481137(0xbb)],[[_0x5778fd]]);}};_0x8568ce(_0x48de36,_0x2c7789(0x167),_0x35c157[_0x2c7789(0xb2)][_0x2c7789(0x158)]),_0x8568ce(_0x48de36,'pluginName','UNIVER_LIVE_SHARE_PLUGIN'),_0x8568ce(_0x48de36,_0x2c7789(0xf4),_0x43dd2b),_0x8568ce(_0x48de36,_0x2c7789(0xdc),_0x128d2d),_0x48de36=_0x2594f4([(0x0,_0x35c157[_0x2c7789(0xe5)])(_0x5742c5[_0x2c7789(0xc8)]),_0x765e84(0x1,(0x0,_0x35c157['Inject'])(_0x35c157[_0x2c7789(0x110)])),_0x765e84(0x2,_0x35c157[_0x2c7789(0x106)])],_0x48de36),Object[_0x2c7789(0xee)](_0x2f7e08,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return _0x5778fd;}}),_0x2f7e08[_0x2c7789(0x103)]=_0x3255fd,Object[_0x2c7789(0xee)](_0x2f7e08,_0x2c7789(0xb8),{'enumerable':!0x0,'get':function(){return _0x52d854;}}),Object[_0x2c7789(0xee)](_0x2f7e08,_0x2c7789(0xf7),{'enumerable':!0x0,'get':function(){return _0xc6cade;}}),_0x2f7e08[_0x2c7789(0x123)]=_0x132840,_0x2f7e08[_0x2c7789(0x170)]=_0x5917eb,Object['defineProperty'](_0x2f7e08,_0x2c7789(0xbc),{'enumerable':!0x0,'get':function(){return _0x48de36;}});}));
|
|
1
|
+
(function(_0x411095,_0x410fe4){const _0x246be4=_0x5c50,_0x36ec6b=_0x411095();while(!![]){try{const _0xbf394d=parseInt(_0x246be4(0xfc))/0x1+parseInt(_0x246be4(0xac))/0x2*(parseInt(_0x246be4(0x161))/0x3)+-parseInt(_0x246be4(0x16c))/0x4+-parseInt(_0x246be4(0x113))/0x5*(-parseInt(_0x246be4(0x147))/0x6)+-parseInt(_0x246be4(0x100))/0x7+parseInt(_0x246be4(0xb8))/0x8*(-parseInt(_0x246be4(0x16e))/0x9)+parseInt(_0x246be4(0x162))/0xa*(-parseInt(_0x246be4(0xf0))/0xb);if(_0xbf394d===_0x410fe4)break;else _0x36ec6b['push'](_0x36ec6b['shift']());}catch(_0x38e8ba){_0x36ec6b['push'](_0x36ec6b['shift']());}}}(_0x5db7,0x65dcf),function(_0x3e96d1,_0x1e7084){const _0x44e2cd=_0x5c50;typeof exports==_0x44e2cd(0xe3)&&typeof module<'u'?_0x1e7084(exports,require(`@univerjs/core`),require(`@univerjs/ui`),require(`@univerjs/design`),require(`react`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs/sheets`),require(`rxjs`),require(`rxjs/operators`),require(`react/jsx-runtime`),require(`@univerjs/sheets-ui`)):typeof define==_0x44e2cd(0x119)&&define[_0x44e2cd(0x9f)]?define([_0x44e2cd(0x10d),_0x44e2cd(0xcc),_0x44e2cd(0xa0),'@univerjs/design','react','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','@univerjs/sheets','rxjs','rxjs/operators',_0x44e2cd(0x101),_0x44e2cd(0x12d)],_0x1e7084):(_0x3e96d1=typeof globalThis<'u'?globalThis:_0x3e96d1||self,_0x1e7084(_0x3e96d1['UniverProLiveShare']={},_0x3e96d1[_0x44e2cd(0x114)],_0x3e96d1[_0x44e2cd(0x117)],_0x3e96d1[_0x44e2cd(0xd8)],_0x3e96d1[_0x44e2cd(0x109)],_0x3e96d1[_0x44e2cd(0x140)],_0x3e96d1[_0x44e2cd(0x11c)],_0x3e96d1['UniverSheets'],_0x3e96d1[_0x44e2cd(0x130)],_0x3e96d1[_0x44e2cd(0x130)][_0x44e2cd(0xfe)],_0x3e96d1['React'],_0x3e96d1[_0x44e2cd(0x138)]));}(this,function(_0x5c60ac,_0x25403c,_0x40091d,_0x1db43b,_0x698833,_0x3d846a,_0x37a0b8,_0x3a94ab,_0x253f4d,_0x14ddb0,_0x51c009,_0x58031e){const _0xea95ed=_0x5c50;Object[_0xea95ed(0x16b)](_0x5c60ac,Symbol[_0xea95ed(0x115)],{'value':_0xea95ed(0x11d)});function _0x100277({ref:_0x3ab3b1,..._0x2d9138}){const _0x4c7499=_0xea95ed;let {icon:_0x6c4e74,id:_0x3fe2d8,className:_0x3e6910,extend:_0x4f76da,..._0x1b2ee6}=_0x2d9138,_0x1e1958=(_0x4c7499(0x154)+_0x3fe2d8+'\x20'+(_0x3e6910||''))[_0x4c7499(0x133)](),_0x4ea5f3=(0x0,_0x698833[_0x4c7499(0xeb)])('_'+_0x50f022());return _0xb776ae(_0x6c4e74,''+_0x3fe2d8,{'defIds':_0x6c4e74['defIds'],'idSuffix':_0x4ea5f3['current']},{'ref':_0x3ab3b1,'className':_0x1e1958,..._0x1b2ee6},_0x4f76da);}function _0xb776ae(_0x259b8b,_0x302f4f,_0x1ef752,_0xe6ace5,_0x460b3c){const _0x3d99ac=_0xea95ed;return(0x0,_0x698833[_0x3d99ac(0xea)])(_0x259b8b['tag'],{'key':_0x302f4f,..._0x2524ef(_0x259b8b,_0x1ef752,_0x460b3c),..._0xe6ace5},(_0xe7889a(_0x259b8b,_0x1ef752)[_0x3d99ac(0x93)]||[])[_0x3d99ac(0xfb)]((_0x2eb10c,_0x55716f)=>_0xb776ae(_0x2eb10c,_0x302f4f+'-'+_0x259b8b[_0x3d99ac(0xe8)]+'-'+_0x55716f,_0x1ef752,void 0x0,_0x460b3c)));}function _0x2524ef(_0x599f13,_0x2a9af8,_0xf6363b){const _0x23ec3e=_0xea95ed;let _0x3ff619={..._0x599f13[_0x23ec3e(0x95)]};_0xf6363b!=null&&_0xf6363b[_0x23ec3e(0xa1)]&&_0x3ff619['fill']==='colorChannel1'&&(_0x3ff619['fill']=_0xf6363b[_0x23ec3e(0xa1)]),_0x599f13[_0x23ec3e(0xe8)]==='mask'&&_0x3ff619['id']&&(_0x3ff619['id']+=_0x2a9af8[_0x23ec3e(0x148)]),Object[_0x23ec3e(0xed)](_0x3ff619)[_0x23ec3e(0xa9)](([_0x38936e,_0x49b4e5])=>{const _0x25f834=_0x23ec3e;_0x38936e===_0x25f834(0x11b)&&typeof _0x49b4e5=='string'&&(_0x3ff619[_0x38936e]=_0x49b4e5[_0x25f834(0x9c)](/url\(#(.*)\)/,_0x25f834(0x92)+_0x2a9af8[_0x25f834(0x148)]+')'));});let {defIds:_0x72884c}=_0x2a9af8;return!_0x72884c||_0x72884c[_0x23ec3e(0x9d)]===0x0?_0x3ff619:(_0x599f13[_0x23ec3e(0xe8)]==='use'&&_0x3ff619[_0x23ec3e(0x123)]&&(_0x3ff619[_0x23ec3e(0x123)]+=_0x2a9af8[_0x23ec3e(0x148)]),Object[_0x23ec3e(0xed)](_0x3ff619)[_0x23ec3e(0xa9)](([_0x5cc131,_0xc10209])=>{typeof _0xc10209=='string'&&(_0x3ff619[_0x5cc131]=_0xc10209['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2a9af8['idSuffix']+')'));}),_0x3ff619);}function _0xe7889a(_0x2b0d86,_0x3d7eba){const _0x4de316=_0xea95ed;var _0x7ea0ae;let {defIds:_0x182700}=_0x3d7eba;return!_0x182700||_0x182700[_0x4de316(0x9d)]===0x0?_0x2b0d86:_0x2b0d86[_0x4de316(0xe8)]==='defs'&&(_0x7ea0ae=_0x2b0d86['children'])!=null&&_0x7ea0ae['length']?{..._0x2b0d86,'children':_0x2b0d86['children'][_0x4de316(0xfb)](_0x5ead32=>typeof _0x5ead32[_0x4de316(0x95)]['id']==_0x4de316(0x153)&&_0x182700&&_0x182700['includes'](_0x5ead32[_0x4de316(0x95)]['id'])?{..._0x5ead32,'attrs':{..._0x5ead32[_0x4de316(0x95)],'id':_0x5ead32[_0x4de316(0x95)]['id']+_0x3d7eba[_0x4de316(0x148)]}}:_0x5ead32)}:_0x2b0d86;}function _0x50f022(){const _0x4895a3=_0xea95ed;return Math[_0x4895a3(0x127)]()[_0x4895a3(0x166)](0x24)[_0x4895a3(0x11a)](0x2,0x8);}_0x100277[_0xea95ed(0xd6)]=_0xea95ed(0x14b);let _0x3979a4={'tag':'svg','attrs':{'xmlns':_0xea95ed(0x144),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0xea95ed(0x139),'height':_0xea95ed(0x139)},'children':[{'tag':_0xea95ed(0x163),'attrs':{'fill':_0xea95ed(0x110),'d':_0xea95ed(0xd7)}},{'tag':_0xea95ed(0x163),'attrs':{'fill':_0xea95ed(0x110),'d':_0xea95ed(0x91),'fillRule':_0xea95ed(0xc1),'clipRule':_0xea95ed(0xc1)}}]},_0x14d026=(0x0,_0x698833['forwardRef'])(function(_0x48eca4,_0x3dfdc6){const _0x133df9=_0xea95ed;return(0x0,_0x698833[_0x133df9(0xea)])(_0x100277,Object[_0x133df9(0xee)]({},_0x48eca4,{'id':_0x133df9(0x159),'ref':_0x3dfdc6,'icon':_0x3979a4}));});_0x14d026[_0xea95ed(0xd6)]='LiveShareIcon';function _0x30efa3(_0x191aef){'@babel/helpers - typeof';const _0x275186=_0xea95ed;return _0x30efa3=typeof Symbol==_0x275186(0x119)&&typeof Symbol['iterator']==_0x275186(0xae)?function(_0x17671b){return typeof _0x17671b;}:function(_0x143246){const _0x243892=_0x275186;return _0x143246&&typeof Symbol=='function'&&_0x143246[_0x243892(0x15c)]===Symbol&&_0x143246!==Symbol['prototype']?_0x243892(0xae):typeof _0x143246;},_0x30efa3(_0x191aef);}function _0x32deb4(_0x3f6011,_0x491501){const _0x20605b=_0xea95ed;if(_0x30efa3(_0x3f6011)!=_0x20605b(0xe3)||!_0x3f6011)return _0x3f6011;var _0x1f27cb=_0x3f6011[Symbol[_0x20605b(0xa5)]];if(_0x1f27cb!==void 0x0){var _0x12384f=_0x1f27cb['call'](_0x3f6011,_0x491501||_0x20605b(0xca));if(_0x30efa3(_0x12384f)!=_0x20605b(0xe3))return _0x12384f;throw TypeError(_0x20605b(0xd3));}return(_0x491501===_0x20605b(0x153)?String:Number)(_0x3f6011);}function _0x181fbc(_0x4f799a){const _0x1b41a8=_0xea95ed;var _0x5bbfe9=_0x32deb4(_0x4f799a,_0x1b41a8(0x153));return _0x30efa3(_0x5bbfe9)=='symbol'?_0x5bbfe9:_0x5bbfe9+'';}function _0x35673e(_0x2f5b0d,_0x5c2e83,_0x24ca33){const _0xbc4235=_0xea95ed;return(_0x5c2e83=_0x181fbc(_0x5c2e83))in _0x2f5b0d?Object[_0xbc4235(0x16b)](_0x2f5b0d,_0x5c2e83,{'value':_0x24ca33,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f5b0d[_0x5c2e83]=_0x24ca33,_0x2f5b0d;}var _0x14fd7f=class extends _0x25403c[_0xea95ed(0x12a)]{constructor(..._0x438163){super(..._0x438163),_0x35673e(this,'_sharedOperations',new Set()),_0x35673e(this,'_reporters',new Set());}['registerSharedOperation'](_0x79c46f){const _0x267ea9=_0xea95ed;return this[_0x267ea9(0xf1)]['add'](_0x79c46f),(0x0,_0x25403c['toDisposable'])(()=>this['_sharedOperations']['delete'](_0x79c46f));}[_0xea95ed(0x111)](_0x46a813){const _0x5a0fcd=_0xea95ed;return this[_0x5a0fcd(0x94)]['add'](_0x46a813),(0x0,_0x25403c['toDisposable'])(()=>this[_0x5a0fcd(0x94)]['delete'](_0x46a813));}['shouldShareOperation'](_0x47e4cf){const _0x36c383=_0xea95ed;return this[_0x36c383(0xf1)][_0x36c383(0x96)](_0x47e4cf);}[_0xea95ed(0x15e)](_0x371115){const _0x4c33af=_0xea95ed;return Array[_0x4c33af(0x16d)](this['_reporters'])[_0x4c33af(0xfb)](_0x9b853=>_0x9b853(_0x371115));}};function _0x122da5(_0xb8a662,_0x1c124e){return function(_0x387840,_0x45cfe9){_0x1c124e(_0x387840,_0x45cfe9,_0xb8a662);};}function _0x4cea80(_0x31a2aa,_0x3625b0,_0x3d93d8,_0x550f74){const _0x133add=_0xea95ed;var _0x4dece4=arguments[_0x133add(0x9d)],_0xff6b71=_0x4dece4<0x3?_0x3625b0:_0x550f74===null?_0x550f74=Object[_0x133add(0x10e)](_0x3625b0,_0x3d93d8):_0x550f74,_0x598377;if(typeof Reflect==_0x133add(0xe3)&&typeof Reflect[_0x133add(0x15d)]==_0x133add(0x119))_0xff6b71=Reflect['decorate'](_0x31a2aa,_0x3625b0,_0x3d93d8,_0x550f74);else{for(var _0x496244=_0x31a2aa['length']-0x1;_0x496244>=0x0;_0x496244--)(_0x598377=_0x31a2aa[_0x496244])&&(_0xff6b71=(_0x4dece4<0x3?_0x598377(_0xff6b71):_0x4dece4>0x3?_0x598377(_0x3625b0,_0x3d93d8,_0xff6b71):_0x598377(_0x3625b0,_0x3d93d8))||_0xff6b71);}return _0x4dece4>0x3&&_0xff6b71&&Object[_0x133add(0x16b)](_0x3625b0,_0x3d93d8,_0xff6b71),_0xff6b71;}let _0x1be1c9=class extends _0x25403c[_0xea95ed(0xe2)]{constructor(_0x24bac8,_0x9b4616,_0x564566){const _0x56e5b4=_0xea95ed;super(),this[_0x56e5b4(0xdc)]=_0x24bac8,this[_0x56e5b4(0x134)]=_0x9b4616,this[_0x56e5b4(0xdb)]=_0x564566,_0x35673e(this,_0x56e5b4(0xe9),new Map()),this['_init']();}async[_0xea95ed(0xd0)](_0x473a21){const _0x385e8d=_0xea95ed;return this['_entities'][_0x385e8d(0x96)](_0x473a21)||await this[_0x385e8d(0x165)](_0x473a21),this['_entities'][_0x385e8d(0xef)](_0x473a21);}['getLiveShareCoordinatorSync'](_0x205c39){const _0xfaa9b6=_0xea95ed;var _0x1f777b;return(_0x1f777b=this[_0xfaa9b6(0xe9)]['get'](_0x205c39))==null?null:_0x1f777b;}[_0xea95ed(0xa2)](){const _0x1f9456=_0xea95ed;this[_0x1f9456(0xdc)][_0x1f9456(0x16f)](_0x25403c['UniverInstanceType']['UNIVER_SHEET'])[_0x1f9456(0xab)]((0x0,_0x14ddb0[_0x1f9456(0x9b)])(this[_0x1f9456(0x112)]))['subscribe'](async _0x517abc=>{const _0x58d1a7=_0x1f9456;let _0x4ed42a=_0x517abc[_0x58d1a7(0x160)]();this[_0x58d1a7(0xe9)][_0x58d1a7(0x96)](_0x4ed42a)||this[_0x58d1a7(0x165)](_0x4ed42a);}),this[_0x1f9456(0xdc)]['getTypeOfUnitDisposed$'](_0x25403c[_0x1f9456(0xa3)][_0x1f9456(0x149)])['pipe']((0x0,_0x14ddb0[_0x1f9456(0x9b)])(this['dispose$']))['subscribe'](_0x2dc9af=>{const _0x3ec802=_0x1f9456;let _0x2f0670=_0x2dc9af['getUnitId'](),_0x6f839b=this[_0x3ec802(0xe9)][_0x3ec802(0xef)](_0x2f0670);_0x6f839b==null||_0x6f839b['dispose']();});}async[_0xea95ed(0x165)](_0x25b2c6){const _0x1b3516=_0xea95ed;let _0x271c7b=await this[_0x1b3516(0xdb)][_0x1b3516(0x124)](_0x25b2c6),_0x274fc4=this['_injector']['createInstance'](_0x376b37,_0x25b2c6,_0x271c7b);return _0x274fc4['init'](),this[_0x1b3516(0xe9)][_0x1b3516(0x142)](_0x25b2c6,_0x274fc4),_0x274fc4;}};_0x1be1c9=_0x4cea80([_0x122da5(0x0,_0x25403c['IUniverInstanceService']),_0x122da5(0x1,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x25403c['Injector'])),_0x122da5(0x2,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x37a0b8[_0xea95ed(0xa4)]))],_0x1be1c9);let _0x2a84fe=function(_0x4fc361){const _0x24c136=_0xea95ed;return _0x4fc361[_0x24c136(0xe6)]=_0x24c136(0xe7),_0x4fc361[_0x24c136(0x13e)]=_0x24c136(0xdf),_0x4fc361[_0x24c136(0xcf)]=_0x24c136(0x167),_0x4fc361[_0x24c136(0x146)]=_0x24c136(0x14d),_0x4fc361['PRESENTING']='presenting',_0x4fc361;}({}),_0x376b37=class extends _0x25403c[_0xea95ed(0xe2)]{get['_status'](){const _0x29c1ba=_0xea95ed;return this[_0x29c1ba(0xd2)][_0x29c1ba(0xd5)]();}constructor(_0x275a67,_0x1a2fb7,_0x1d24a5,_0x45ef3c,_0x3b6659){const _0x2c8e1a=_0xea95ed;super(),this[_0x2c8e1a(0xb1)]=_0x275a67,this[_0x2c8e1a(0xf4)]=_0x1a2fb7,this[_0x2c8e1a(0xa6)]=_0x1d24a5,this['_liveShareService']=_0x45ef3c,this[_0x2c8e1a(0x132)]=_0x3b6659,_0x35673e(this,_0x2c8e1a(0xd2),new _0x253f4d[(_0x2c8e1a(0x143))](_0x2a84fe['IDLE'])),_0x35673e(this,_0x2c8e1a(0x14f),this[_0x2c8e1a(0xd2)][_0x2c8e1a(0xc9)]()),_0x35673e(this,'_init',!0x1),_0x35673e(this,_0x2c8e1a(0x169),null),_0x35673e(this,_0x2c8e1a(0x155),null);}[_0xea95ed(0x107)](){const _0x483047=_0xea95ed;var _0x4ae9fc;(_0x4ae9fc=this[_0x483047(0x169)])==null||_0x4ae9fc[_0x483047(0x107)](),this[_0x483047(0xd2)][_0x483047(0x152)](_0x2a84fe[_0x483047(0x13e)]),this[_0x483047(0xd2)][_0x483047(0x136)]();}['getStatus'](){const _0x7ea0b1=_0xea95ed;return this[_0x7ea0b1(0xd1)];}[_0xea95ed(0x15f)](){const _0x421c36=_0xea95ed;this[_0x421c36(0xa2)]||(this[_0x421c36(0xa2)]=!0x0,this[_0x421c36(0xf4)]['sessionStatus$'][_0x421c36(0xab)]((0x0,_0x14ddb0[_0x421c36(0x9b)])(this[_0x421c36(0x112)]))['subscribe'](_0xbf0178=>{const _0x3d8ee3=_0x421c36;switch(_0xbf0178){case _0x37a0b8[_0x3d8ee3(0x145)][_0x3d8ee3(0xe6)]:this[_0x3d8ee3(0x10c)]();break;case _0x37a0b8[_0x3d8ee3(0x145)]['ONLINE']:this[_0x3d8ee3(0x12f)]();break;default:}}),this[_0x421c36(0xf4)][_0x421c36(0xe4)][_0x421c36(0xab)]((0x0,_0x14ddb0[_0x421c36(0x9b)])(this[_0x421c36(0x112)]))['subscribe'](_0x41c957=>{const _0x3938e2=_0x421c36;let {eventID:_0x543e81}=_0x41c957;switch(_0x543e81){case _0x3d846a[_0x3938e2(0x104)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x41c957);break;case _0x3d846a[_0x3938e2(0x104)][_0x3938e2(0xb5)]:this[_0x3938e2(0x168)](_0x41c957);break;case _0x3d846a[_0x3938e2(0x104)]['LIVESHARE_TERMINATE']:this[_0x3938e2(0xf8)]();break;case _0x3d846a['CollaborationEvent'][_0x3938e2(0xc5)]:this[_0x3938e2(0x129)](_0x41c957);break;default:}}));}[_0xea95ed(0xb2)](){const _0x106704=_0xea95ed;this[_0x106704(0xf4)][_0x106704(0xde)]({'eventID':_0x3d846a['CollaborationEvent'][_0x106704(0x8f)],'data':{'unitID':this['_unitID'],'userID':this[_0x106704(0xf4)][_0x106704(0x9a)]()}},this[_0x106704(0xb1)]);}[_0xea95ed(0x10a)](){const _0xeb072a=_0xea95ed;this[_0xeb072a(0xd1)]===_0x2a84fe['PRESENTING']&&(this[_0xeb072a(0xd2)]['next'](_0x2a84fe[_0xeb072a(0x13e)]),this[_0xeb072a(0xf4)][_0xeb072a(0xde)]({'eventID':_0x3d846a[_0xeb072a(0x104)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xeb072a(0xb1)]}},this[_0xeb072a(0xb1)]));}[_0xea95ed(0x156)](){const _0x309a5e=_0xea95ed;this[_0x309a5e(0xd1)]===_0x2a84fe[_0x309a5e(0x146)]&&(this[_0x309a5e(0xd2)][_0x309a5e(0x152)](_0x2a84fe[_0x309a5e(0xcf)]),this[_0x309a5e(0x10f)]());}[_0xea95ed(0xb0)](){const _0x5c01f3=_0xea95ed;this[_0x5c01f3(0xd1)]===_0x2a84fe['FOLLOWING']&&this[_0x5c01f3(0xad)]();}[_0xea95ed(0xaa)](_0x3dd601){const _0x15aa2b=_0xea95ed;let {presenter:_0x56d81b}=_0x3dd601['data'],_0x2e103e=this[_0x15aa2b(0xf4)][_0x15aa2b(0x9a)]();this[_0x15aa2b(0x155)]=_0x56d81b,_0x56d81b===_0x2e103e?(this[_0x15aa2b(0xad)](),this[_0x15aa2b(0xbd)]()):this['_status']!==_0x2a84fe[_0x15aa2b(0x146)]&&(this[_0x15aa2b(0xbe)](),this[_0x15aa2b(0x10f)]());}['_fetchOperations'](){const _0x3a6bd4=_0xea95ed;let _0x9ed0d={'eventID':_0x3d846a['CollaborationEvent'][_0x3a6bd4(0x131)]};this['_collabSession'][_0x3a6bd4(0xde)](_0x9ed0d,this[_0x3a6bd4(0xb1)]);}[_0xea95ed(0xf8)](){const _0x48ced8=_0xea95ed;this[_0x48ced8(0x155)]=null,this[_0x48ced8(0xd1)]!==_0x2a84fe[_0x48ced8(0xf2)]&&this[_0x48ced8(0xbf)]();}[_0xea95ed(0x129)](_0x3d4a3f){const _0x487e87=_0xea95ed;if(this[_0x487e87(0xd1)]===_0x2a84fe[_0x487e87(0xcf)]&&this['_presenter']===_0x3d4a3f['data']['memberID']){let _0x45b0d2=(0x0,_0x3d846a[_0x487e87(0xc2)])(_0x3d4a3f[_0x487e87(0x106)])['mutations'][_0x487e87(0x105)]()[_0x487e87(0xcb)](_0x4e8f8f=>_0x4e8f8f['id']===_0x3a94ab[_0x487e87(0xff)]['id']);if(_0x45b0d2){let _0x43aaf5=_0x45b0d2['params']['unitId'],_0x1520f8=_0x45b0d2[_0x487e87(0xc8)][_0x487e87(0x90)]['id'];setTimeout(()=>{const _0x19144c=_0x487e87;this[_0x19144c(0x132)]['executeCommand'](_0x3a94ab[_0x19144c(0x141)]['id'],{'unitId':_0x43aaf5,'subUnitId':_0x1520f8},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x26a9ac=_0xea95ed;this['_status$'][_0x26a9ac(0x152)](_0x2a84fe[_0x26a9ac(0xf2)]);let _0x47d50e=new Map(),_0xb18f3=this[_0x26a9ac(0x169)]=new _0x25403c[(_0x26a9ac(0x98))]();_0xb18f3[_0x26a9ac(0x8d)]((0x0,_0x25403c['toDisposable'])(()=>{const _0x32d968=_0x26a9ac;_0x47d50e['forEach'](_0x4b216d=>_0x4b216d[_0x32d968(0x136)]()),_0x47d50e[_0x32d968(0xdd)]();})),_0xb18f3['add'](this['_commandService']['onCommandExecuted'](_0x187914=>{const _0x54b960=_0x26a9ac;if(_0x187914[_0x54b960(0x12c)]!==_0x25403c[_0x54b960(0x14e)][_0x54b960(0xf5)]||!this[_0x54b960(0x14c)]['shouldShareOperation'](_0x187914['id']))return;let {id:_0x1f3920}=_0x187914,_0x10195e;if(_0x47d50e[_0x54b960(0x96)](_0x1f3920))_0x10195e=_0x47d50e['get'](_0x1f3920);else{var _0x3e940a;_0x10195e=new _0x253f4d[(_0x54b960(0xe1))](),_0x47d50e[_0x54b960(0x142)](_0x1f3920,_0x10195e),_0x10195e['pipe']((0x0,_0x14ddb0[_0x54b960(0xb9)])((_0x3e940a=this['_configService']['getConfig'](_0x54b960(0x171)))==null?0xc8:_0x3e940a,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54b960(0x164)](_0x73f550=>{const _0x30896d=_0x54b960;this[_0x30896d(0xf4)][_0x30896d(0xde)]({'eventID':_0x3d846a['CollaborationEvent'][_0x30896d(0xb5)],'data':{'unitID':this[_0x30896d(0xb1)],'operations':{[_0x73f550['id']]:{'id':_0x73f550['id'],'params':JSON[_0x30896d(0x103)](_0x73f550['params'])}}}},this[_0x30896d(0xb1)]);});}_0x10195e[_0x54b960(0x152)](_0x187914);})),this['_liveShareService'][_0x26a9ac(0x15e)](this[_0x26a9ac(0xb1)])[_0x26a9ac(0xa9)](_0x155a4a=>this[_0x26a9ac(0xf4)][_0x26a9ac(0xde)]({'eventID':_0x3d846a[_0x26a9ac(0x104)][_0x26a9ac(0xb5)],'data':{'unitID':this['_unitID'],'operations':{[_0x155a4a['id']]:{'id':_0x155a4a['id'],'params':JSON[_0x26a9ac(0x103)](_0x155a4a['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x12c8d1=_0xea95ed;var _0x3f25a4;this[_0x12c8d1(0xd2)][_0x12c8d1(0x152)](_0x2a84fe[_0x12c8d1(0x13e)]),(_0x3f25a4=this['_commandDisposable'])==null||_0x3f25a4[_0x12c8d1(0x107)](),this[_0x12c8d1(0x169)]=null;}['_startFollowing'](){const _0x221586=_0xea95ed;var _0x561fda;(_0x561fda=this['_commandDisposable'])==null||_0x561fda[_0x221586(0x107)](),this[_0x221586(0xd2)][_0x221586(0x152)](_0x2a84fe[_0x221586(0xcf)]);}[_0xea95ed(0xbf)](){const _0x2f8ffa=_0xea95ed;var _0x506967;this[_0x2f8ffa(0xd2)][_0x2f8ffa(0x152)](_0x2a84fe[_0x2f8ffa(0x13e)]),(_0x506967=this[_0x2f8ffa(0x169)])==null||_0x506967['dispose'](),this[_0x2f8ffa(0x169)]=null;}['_stopFollowing'](){const _0x4634ab=_0xea95ed;var _0xd0605a;this[_0x4634ab(0xd2)][_0x4634ab(0x152)](_0x2a84fe[_0x4634ab(0x146)]),(_0xd0605a=this[_0x4634ab(0x169)])==null||_0xd0605a[_0x4634ab(0x107)]();}[_0xea95ed(0x168)](_0x40e980){const _0x52e2e0=_0xea95ed;if([_0x2a84fe[_0x52e2e0(0xf2)],_0x2a84fe[_0x52e2e0(0x146)],_0x2a84fe[_0x52e2e0(0xe6)]]['includes'](this[_0x52e2e0(0xd1)])||!_0x40e980['data']['presenter']||_0x40e980[_0x52e2e0(0x106)][_0x52e2e0(0xc4)]===this[_0x52e2e0(0xf4)][_0x52e2e0(0x9a)]())return;this[_0x52e2e0(0xd1)]===_0x2a84fe[_0x52e2e0(0x13e)]&&this['_startFollowing']();let _0x26d455=_0x40e980[_0x52e2e0(0x106)][_0x52e2e0(0xa8)];Object[_0x52e2e0(0xc3)](_0x26d455)['forEach'](_0x59a567=>{const _0x3b839e=_0x52e2e0;this[_0x3b839e(0x132)][_0x3b839e(0xe0)](_0x59a567['id'],_0x59a567[_0x3b839e(0xc8)]?JSON['parse'](_0x59a567[_0x3b839e(0xc8)]):null,{'fromCollab':!0x0});});}[_0xea95ed(0x10c)](){const _0x1820e9=_0xea95ed;var _0x50c2c2;this[_0x1820e9(0xd2)][_0x1820e9(0x152)](_0x2a84fe[_0x1820e9(0xe6)]),(_0x50c2c2=this[_0x1820e9(0x169)])==null||_0x50c2c2['dispose']();}[_0xea95ed(0x12f)](){const _0x3afd2c=_0xea95ed;this[_0x3afd2c(0xd2)]['next'](_0x2a84fe[_0x3afd2c(0x13e)]),this[_0x3afd2c(0xfd)]();}};_0x376b37=_0x4cea80([_0x122da5(0x2,_0x25403c[_0xea95ed(0x126)]),_0x122da5(0x3,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x14fd7f)),_0x122da5(0x4,_0x25403c[_0xea95ed(0xda)])],_0x376b37);function _0xa5b6ce(){const _0x4c7e55=_0xea95ed;let _0x4db326=(0x0,_0x40091d[_0x4c7e55(0x15b)])(_0x1be1c9),_0x10b994=(0x0,_0x40091d[_0x4c7e55(0x15b)])(_0x25403c[_0x4c7e55(0x14a)]),_0x22c557=(0x0,_0x40091d[_0x4c7e55(0x150)])(()=>_0x10b994[_0x4c7e55(0xb7)](_0x25403c['UniverInstanceType'][_0x4c7e55(0x149)]),void 0x0,!0x1,[]),[_0xf92fca,_0x497e01]=(0x0,_0x698833[_0x4c7e55(0x12b)])(null),[_0x37027f,_0x77afea]=(0x0,_0x698833[_0x4c7e55(0x12b)])(_0x2a84fe[_0x4c7e55(0x13e)]),_0x46cbc3=(0x0,_0x698833['useRef'])(null);return(0x0,_0x698833[_0x4c7e55(0xce)])(()=>(_0x22c557&&_0x4db326[_0x4c7e55(0xd0)](_0x22c557[_0x4c7e55(0x160)]())['then'](_0x16b62=>{const _0x594f6c=_0x4c7e55;_0x497e01(_0x16b62),_0x46cbc3[_0x594f6c(0xe5)]=_0x16b62[_0x594f6c(0x14f)][_0x594f6c(0x164)](_0x223d65=>{_0x77afea(_0x223d65);});}),()=>{const _0x53f687=_0x4c7e55;var _0x1844f1;(_0x1844f1=_0x46cbc3[_0x53f687(0xe5)])==null||_0x1844f1['unsubscribe'](),_0x46cbc3[_0x53f687(0xe5)]=null;}),[_0x22c557,_0x4db326]),_0xf92fca?(0x0,_0x51c009[_0x4c7e55(0x13a)])(_0x1db43b[_0x4c7e55(0xaf)],{'align':_0x4c7e55(0x120),'disabled':_0x37027f===_0x2a84fe[_0x4c7e55(0xe6)],'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':(0x0,_0x51c009['jsx'])(_0x4cbc04,{'status':_0x37027f,'coordinator':_0xf92fca}),'children':(0x0,_0x51c009[_0x4c7e55(0x13a)])(_0x4c7e55(0xbc),{'className':(0x0,_0x1db43b[_0x4c7e55(0x12e)])(_0x4c7e55(0xa7),{'univer-cursor-not-allowed':_0x37027f===_0x2a84fe[_0x4c7e55(0xe6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37027f!==_0x2a84fe[_0x4c7e55(0xe6)]}),'type':_0x4c7e55(0xbc),'children':(0x0,_0x51c009[_0x4c7e55(0x13a)])(_0x14d026,{'className':'univer-size-4'})})}):null;}function _0x4cbc04(_0xffba83){const _0x5bf868=_0xea95ed;let {status:_0x529e46,coordinator:_0x298364}=_0xffba83;switch(_0x529e46){case _0x2a84fe[_0x5bf868(0x13e)]:return(0x0,_0x51c009[_0x5bf868(0x13a)])(_0x196f26,{'coordinator':_0x298364});case _0x2a84fe[_0x5bf868(0xcf)]:return(0x0,_0x51c009['jsx'])(_0x5ad625,{'coordinator':_0x298364});case _0x2a84fe['NOT_FOLLOWING']:return(0x0,_0x51c009[_0x5bf868(0x13a)])(_0x53bf64,{'coordinator':_0x298364});case _0x2a84fe['OFFLINE']:return(0x0,_0x51c009[_0x5bf868(0x13a)])(_0x50469b,{});case _0x2a84fe['PRESENTING']:return(0x0,_0x51c009['jsx'])(_0x287f33,{'coordinator':_0x298364});default:return null;}}function _0x196f26(_0x12d480){const _0x25db99=_0xea95ed;let {coordinator:_0x249268}=_0x12d480;return(0x0,_0x51c009['jsxs'])(_0x51c009[_0x25db99(0xcd)],{'children':[(0x0,_0x51c009[_0x25db99(0x13a)])('div',{'className':_0x25db99(0xd9),'children':'Present\x20this\x20document'}),(0x0,_0x51c009[_0x25db99(0x13a)])(_0x1db43b['Button'],{'onClick':()=>_0x249268[_0x25db99(0xb2)](),'children':_0x25db99(0x8e)})]});}function _0x5ad625(_0x3cb7ca){const _0x47bafe=_0xea95ed;let {coordinator:_0x2265ed}=_0x3cb7ca;return(0x0,_0x51c009[_0x47bafe(0x157)])(_0x51c009['Fragment'],{'children':[(0x0,_0x51c009[_0x47bafe(0x13a)])(_0x47bafe(0x170),{'className':_0x47bafe(0xd9),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,_0x51c009['jsx'])(_0x1db43b[_0x47bafe(0xfa)],{'onClick':()=>_0x2265ed[_0x47bafe(0xb0)](),'children':'Stop\x20following'})]});}function _0x53bf64(_0x3d9707){const _0x2a65bf=_0xea95ed;let {coordinator:_0x4293d3}=_0x3d9707;return(0x0,_0x51c009['jsxs'])(_0x51c009[_0x2a65bf(0xcd)],{'children':[(0x0,_0x51c009[_0x2a65bf(0x13a)])(_0x2a65bf(0x170),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2a65bf(0x128)}),(0x0,_0x51c009[_0x2a65bf(0x13a)])(_0x1db43b[_0x2a65bf(0xfa)],{'variant':_0x2a65bf(0x99),'onClick':()=>_0x4293d3['startFollowing'](),'children':_0x2a65bf(0xc7)})]});}function _0x287f33(_0xf884a7){const _0x230e5f=_0xea95ed;let {coordinator:_0x440586}=_0xf884a7;return(0x0,_0x51c009['jsxs'])(_0x51c009['Fragment'],{'children':[(0x0,_0x51c009['jsx'])(_0x230e5f(0x170),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x230e5f(0x122)}),(0x0,_0x51c009['jsx'])(_0x1db43b[_0x230e5f(0xfa)],{'variant':_0x230e5f(0xca),'onClick':()=>_0x440586[_0x230e5f(0x10a)](),'children':_0x230e5f(0x137)})]});}function _0x50469b(){const _0x4eb797=_0xea95ed;return(0x0,_0x51c009[_0x4eb797(0x13a)])(_0x51c009['Fragment'],{'children':_0x4eb797(0x108)});}let _0x126655=class extends _0x25403c['Disposable']{constructor(_0x51c95d,_0x5f1ee6){const _0x337e22=_0xea95ed;super(),this['_injector']=_0x51c95d,this[_0x337e22(0x125)]=_0x5f1ee6,this['_mountLiveShare']();}[_0xea95ed(0x9e)](){const _0x378e14=_0xea95ed;this[_0x378e14(0xc0)](this[_0x378e14(0x125)][_0x378e14(0x135)](_0x40091d[_0x378e14(0xbb)][_0x378e14(0x158)],()=>(0x0,_0x40091d[_0x378e14(0xc6)])(_0xa5b6ce,this['_injector'])));}};_0x126655=_0x4cea80([_0x122da5(0x0,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x25403c['Injector'])),_0x122da5(0x1,_0x40091d['IUIPartsService'])],_0x126655);var _0x53d12f='@univerjs-pro/live-share',_0x18ad90='0.20.0';let _0x36699e=_0xea95ed(0x13f);Symbol(_0x36699e);let _0x54fb9a={},_0xddbd5f=class extends _0x25403c[_0xea95ed(0x12a)]{constructor(_0x4391f8){const _0x2c94c5=_0xea95ed;super(),this[_0x2c94c5(0x14c)]=_0x4391f8,this[_0x2c94c5(0xa2)]();}[_0xea95ed(0xa2)](){const _0x4c9a43=_0xea95ed;[_0x58031e[_0x4c9a43(0x102)]['id'],_0x58031e[_0x4c9a43(0xf9)]['id'],_0x3a94ab[_0x4c9a43(0x141)]['id']][_0x4c9a43(0xa9)](_0x4fe8d5=>{const _0x1f19a7=_0x4c9a43;this[_0x1f19a7(0xc0)](this[_0x1f19a7(0x14c)][_0x1f19a7(0x13d)](_0x4fe8d5));});}};_0xddbd5f=_0x4cea80([_0x122da5(0x0,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x14fd7f))],_0xddbd5f);let _0xb9b4c=class extends _0x25403c[_0xea95ed(0xba)]{constructor(_0x367b03=_0x54fb9a,_0x5e0eda,_0x3e2fc8){const _0x2088ec=_0xea95ed;super(),this[_0x2088ec(0x16a)]=_0x367b03,this[_0x2088ec(0x134)]=_0x5e0eda,this[_0x2088ec(0xa6)]=_0x3e2fc8;let {..._0x8b024d}=(0x0,_0x25403c[_0x2088ec(0x15a)])({},_0x54fb9a,this['_config']);this[_0x2088ec(0xa6)]['setConfig'](_0x36699e,_0x8b024d);}[_0xea95ed(0x121)](){const _0x37cd3e=_0xea95ed;(0x0,_0x25403c[_0x37cd3e(0xec)])(this[_0x37cd3e(0x134)],(0x0,_0x25403c[_0x37cd3e(0xb6)])([[_0x14fd7f],[_0x1be1c9],[_0xddbd5f],[_0x126655]],this[_0x37cd3e(0x16a)]['override'])),(0x0,_0x25403c['touchDependencies'])(this[_0x37cd3e(0x134)],[[_0xddbd5f]]);}[_0xea95ed(0xb4)](){const _0xff7497=_0xea95ed;(0x0,_0x25403c[_0xff7497(0x97)])(this['_injector'],[[_0x126655]]);}};_0x35673e(_0xb9b4c,_0xea95ed(0x12c),_0x25403c['UniverInstanceType']['UNIVER_UNKNOWN']),_0x35673e(_0xb9b4c,_0xea95ed(0xd4),'UNIVER_LIVE_SHARE_PLUGIN'),_0x35673e(_0xb9b4c,_0xea95ed(0x151),_0x53d12f),_0x35673e(_0xb9b4c,_0xea95ed(0x118),_0x18ad90),_0xb9b4c=_0x4cea80([(0x0,_0x25403c[_0xea95ed(0x116)])(_0x37a0b8[_0xea95ed(0x11f)]),_0x122da5(0x1,(0x0,_0x25403c['Inject'])(_0x25403c[_0xea95ed(0xf6)])),_0x122da5(0x2,_0x25403c['IConfigService'])],_0xb9b4c),Object['defineProperty'](_0x5c60ac,_0xea95ed(0xf3),{'enumerable':!0x0,'get':function(){return _0x126655;}}),_0x5c60ac[_0xea95ed(0xb3)]=_0xa5b6ce,Object[_0xea95ed(0x16b)](_0x5c60ac,_0xea95ed(0xf7),{'enumerable':!0x0,'get':function(){return _0x1be1c9;}}),Object[_0xea95ed(0x16b)](_0x5c60ac,_0xea95ed(0x11e),{'enumerable':!0x0,'get':function(){return _0x376b37;}}),_0x5c60ac[_0xea95ed(0x13b)]=_0x14fd7f,_0x5c60ac[_0xea95ed(0x10b)]=_0x2a84fe,Object['defineProperty'](_0x5c60ac,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return _0xb9b4c;}});}));function _0x5c50(_0x30d0ae,_0x256edd){_0x30d0ae=_0x30d0ae-0x8d;const _0x5db78e=_0x5db7();let _0x5c5058=_0x5db78e[_0x30d0ae];return _0x5c5058;}function _0x5db7(){const _0x4b80af=['_handleTerminate','SetScrollOperation','Button','map','320494TbhdHr','_fetchOperations','operators','InsertSheetMutation','391650zYbYJP','react/jsx-runtime','SetZoomRatioOperation','stringify','CollaborationEvent','reverse','data','dispose','You\x27are\x20offline.','React','stopPresenting','LiveShareStatus','_handleOffline','exports','getOwnPropertyDescriptor','_startFollowing','currentColor','registerInitialStateReporter','dispose$','3290LfnFht','UniverCore','toStringTag','DependentOn','UniverUi','version','function','substring','mask','UniverProCollaborationClient','Module','LiveShareCoordinator','UniverCollaborationClientPlugin','end','onStarting','You\x27re\x20presenting\x20the\x20document','xlink:href','requireSession','_uiPartsService','IConfigService','random','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewChangeSets','Disposable','useState','type','@univerjs/sheets-ui','clsx','_handleOnline','rxjs','LIVESHARE_FETCH_OPERATIONS','_commandService','trim','_injector','registerComponent','complete','Stop\x20presenting','UniverSheetsUi','1em','jsx','LiveShareService','Inject','registerSharedOperation','IDLE','live-share.config','UniverProCollaboration','SetWorksheetActiveOperation','set','BehaviorSubject','http://www.w3.org/2000/svg','SessionStatus','NOT_FOLLOWING','4668pZUjnm','idSuffix','UNIVER_SHEET','IUniverInstanceService','UniverIcon','_liveShareService','not-following','CommandType','status$','useObservable','packageName','next','string','univerjs-icon\x20univerjs-icon-','_presenter','startFollowing','jsxs','HEADER_MENU','live-share-icon','merge','useDependency','constructor','decorate','getInitialStates','init','getUnitId','1755114XCtPfY','10VnXiIp','path','subscribe','_startLiveShareCoordinator','toString','following','_handleOperation','_commandDisposable','_config','defineProperty','158972VgRToj','from','9rYOjaw','getTypeOfUnitAdded$','div','SAME_OPERATION_SHARE_INTERVAL','add','Start','LIVESHARE_REQUEST_HOST','sheet','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','url(#$1','children','_reporters','attrs','has','touchDependencies','DisposableCollection','text','getMemberID','takeUntil','replace','length','_mountLiveShare','amd','@univerjs/ui','colorChannel1','_init','UniverInstanceType','CollaborationSessionService','toPrimitive','_configService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','operations','forEach','_handleNewHost','pipe','2zbOmyV','_stopFollowing','symbol','Dropdown','stopFollowing','_unitID','tryStartPresenting','LiveShare','onRendered','LIVESHARE_OPERATION','mergeOverrideWithDependencies','getCurrentTypeOfUnit$','2120208buHxrp','throttleTime','Plugin','BuiltInUIPart','button','_startPresenting','_stopPresenting','_beIdle','disposeWithMe','evenodd','parseProtocolChangeset','values','presenter','NEW_CHANGESETS','connectInjector','Start\x20following','params','asObservable','default','find','@univerjs/core','Fragment','useEffect','FOLLOWING','getLiveShareCoordinator','_status','_status$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','getValue','displayName','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','UniverDesign','univer-mb-3\x20univer-w-full\x20univer-text-sm','ICommandService','_collabSessionService','_univerInstanceService','clear','send','idle','executeCommand','Subject','RxDisposable','object','event$','current','OFFLINE','offline','tag','_entities','createElement','useRef','registerDependencies','entries','assign','get','7034566vQlznz','_sharedOperations','PRESENTING','DesktopLiveShareController','_collabSession','OPERATION','Injector','LiveShareController'];_0x5db7=function(){return _0x4b80af;};return _0x5db7();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.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/
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs
|
|
64
|
-
"@univerjs
|
|
65
|
-
"@univerjs/ui": "0.
|
|
66
|
-
"@univerjs/sheets
|
|
60
|
+
"@univerjs-pro/collaboration": "0.20.0",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.20.0",
|
|
62
|
+
"@univerjs/core": "0.20.0",
|
|
63
|
+
"@univerjs/design": "0.20.0",
|
|
64
|
+
"@univerjs/sheets-ui": "0.20.0",
|
|
65
|
+
"@univerjs/ui": "0.20.0",
|
|
66
|
+
"@univerjs/sheets": "0.20.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"postcss": "^8.5.8",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"tailwindcss": "^3.4.17",
|
|
73
73
|
"typescript": "^6.0.2",
|
|
74
74
|
"vitest": "^4.1.1",
|
|
75
|
-
"@univerjs-infra/shared": "0.
|
|
75
|
+
"@univerjs-infra/shared": "0.20.0",
|
|
76
76
|
"@univerjs/protocol": "0.1.48"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|