@univerjs-pro/live-share 0.8.2-nightly.202506241607 → 0.8.2-nightly.202506251607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x2d992a=_0x5030;(function(_0x4accc2,_0x250c7e){var _0x52430e=_0x5030,_0x29abb3=_0x4accc2();while(!![]){try{var _0x18e9a6=parseInt(_0x52430e(0xbf))/0x1*(-parseInt(_0x52430e(0x13e))/0x2)+parseInt(_0x52430e(0xde))/0x3+parseInt(_0x52430e(0x133))/0x4*(-parseInt(_0x52430e(0xc6))/0x5)+parseInt(_0x52430e(0x169))/0x6+-parseInt(_0x52430e(0x99))/0x7*(-parseInt(_0x52430e(0x16a))/0x8)+parseInt(_0x52430e(0x118))/0x9+-parseInt(_0x52430e(0x9f))/0xa;if(_0x18e9a6===_0x250c7e)break;else _0x29abb3['push'](_0x29abb3['shift']());}catch(_0x3f8928){_0x29abb3['push'](_0x29abb3['shift']());}}}(_0x438c,0x90f58));var U=Object[_0x2d992a(0x10f)],F=(_0x2245a0,_0x230221,_0x4695df)=>_0x230221 in _0x2245a0?U(_0x2245a0,_0x230221,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4695df}):_0x2245a0[_0x230221]=_0x4695df,v=(_0x4de6e8,_0x5ba191,_0x4f2d1b)=>F(_0x4de6e8,typeof _0x5ba191!=_0x2d992a(0x159)?_0x5ba191+'':_0x5ba191,_0x4f2d1b);Object[_0x2d992a(0x10f)](exports,Symbol['toStringTag'],{'value':_0x2d992a(0x157)});const m=require(_0x2d992a(0x98)),o=require(_0x2d992a(0xa5)),C=require(_0x2d992a(0xb8)),w=require(_0x2d992a(0x145)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require(_0x2d992a(0x9c)),f=require(_0x2d992a(0xeb)),_=require(_0x2d992a(0x163)),D=require(_0x2d992a(0x15e)),b=require('rxjs/operators'),$=_0x2d992a(0x160),x={};function _0x5030(_0xbb0255,_0x5ab847){var _0x438ccb=_0x438c();return _0x5030=function(_0x5030b8,_0x512fd5){_0x5030b8=_0x5030b8-0x87;var _0x32e7ed=_0x438ccb[_0x5030b8];return _0x32e7ed;},_0x5030(_0xbb0255,_0x5ab847);}class O extends o[_0x2d992a(0xcf)]{constructor(){var _0x37d2f1=_0x2d992a;super(...arguments),v(this,_0x37d2f1(0x8c),new Set()),v(this,_0x37d2f1(0x14e),new Set());}['registerSharedOperation'](_0x4893fd){var _0x3877ae=_0x2d992a;return this['_sharedOperations'][_0x3877ae(0x11f)](_0x4893fd),o[_0x3877ae(0x92)](()=>this[_0x3877ae(0x8c)]['delete'](_0x4893fd));}['registerInitialStateReporter'](_0x4369c9){var _0x2c9d77=_0x2d992a;return this['_reporters'][_0x2c9d77(0x11f)](_0x4369c9),o[_0x2c9d77(0x92)](()=>this[_0x2c9d77(0x14e)]['delete'](_0x4369c9));}[_0x2d992a(0xd9)](_0x15ad80){var _0x140d62=_0x2d992a;return this[_0x140d62(0x8c)][_0x140d62(0xb3)](_0x15ad80);}[_0x2d992a(0x121)](_0x3fc7cd){var _0x5e19d8=_0x2d992a;return Array['from'](this['_reporters'])[_0x5e19d8(0xfe)](_0x340c62=>_0x340c62(_0x3fc7cd));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x514b99,_0xfc31aa,_0x360ffa,_0x1def74)=>{var _0x4d763d=_0x2d992a;for(var _0x4c52ef=_0x1def74>0x1?void 0x0:_0x1def74?H(_0xfc31aa,_0x360ffa):_0xfc31aa,_0x29b4a1=_0x514b99[_0x4d763d(0xf5)]-0x1,_0x513fc0;_0x29b4a1>=0x0;_0x29b4a1--)(_0x513fc0=_0x514b99[_0x29b4a1])&&(_0x4c52ef=_0x513fc0(_0x4c52ef)||_0x4c52ef);return _0x4c52ef;},k=(_0x398d47,_0x4cd52c)=>(_0x505a37,_0x2eceac)=>_0x4cd52c(_0x505a37,_0x2eceac,_0x398d47);let E=class extends o['Disposable']{constructor(_0x594d43){var _0x5d781d=_0x2d992a;super(),this[_0x5d781d(0x13d)]=_0x594d43,this['_init']();}[_0x2d992a(0x14d)](){var _0x2988bc=_0x2d992a;[w[_0x2988bc(0x119)]['id'],w[_0x2988bc(0xc0)]['id'],C[_0x2988bc(0x8a)]['id']]['forEach'](_0x1a6cbe=>{var _0x468cf1=_0x2988bc;this['disposeWithMe'](this[_0x468cf1(0x13d)][_0x468cf1(0x139)](_0x1a6cbe));});}};E=V([k(0x0,o[_0x2d992a(0xac)](O))],E);var u=function(){var _0x253768=_0x2d992a;return u=Object[_0x253768(0xc1)]||function(_0x5a32b8){var _0x5124e9=_0x253768;for(var _0x4d4df5,_0x336dfd=0x1,_0x3d8b45=arguments['length'];_0x336dfd<_0x3d8b45;_0x336dfd++){_0x4d4df5=arguments[_0x336dfd];for(var _0x567874 in _0x4d4df5)Object[_0x5124e9(0x95)]['hasOwnProperty'][_0x5124e9(0xd2)](_0x4d4df5,_0x567874)&&(_0x5a32b8[_0x567874]=_0x4d4df5[_0x567874]);}return _0x5a32b8;},u['apply'](this,arguments);},M=function(_0x5650d9,_0x1cb580){var _0x261051=_0x2d992a,_0x34439c={};for(var _0x5d19b9 in _0x5650d9)Object[_0x261051(0x95)]['hasOwnProperty'][_0x261051(0xd2)](_0x5650d9,_0x5d19b9)&&_0x1cb580[_0x261051(0x146)](_0x5d19b9)<0x0&&(_0x34439c[_0x5d19b9]=_0x5650d9[_0x5d19b9]);if(_0x5650d9!=null&&typeof Object[_0x261051(0x108)]==_0x261051(0xe1)){for(var _0x53a8db=0x0,_0x5d19b9=Object[_0x261051(0x108)](_0x5650d9);_0x53a8db<_0x5d19b9[_0x261051(0xf5)];_0x53a8db++)_0x1cb580[_0x261051(0x146)](_0x5d19b9[_0x53a8db])<0x0&&Object[_0x261051(0x95)][_0x261051(0x14a)][_0x261051(0xd2)](_0x5650d9,_0x5d19b9[_0x53a8db])&&(_0x34439c[_0x5d19b9[_0x53a8db]]=_0x5650d9[_0x5d19b9[_0x53a8db]]);}return _0x34439c;},j=f[_0x2d992a(0xc2)](function(_0x2f0175,_0x24cc5b){var _0x53b972=_0x2d992a,_0x5f2ae2=_0x2f0175[_0x53b972(0x111)],_0x2c7995=_0x2f0175['id'],_0x1f42b1=_0x2f0175[_0x53b972(0x156)],_0x554a16=_0x2f0175[_0x53b972(0x131)],_0x43e80e=M(_0x2f0175,[_0x53b972(0x111),'id',_0x53b972(0x156),_0x53b972(0x131)]),_0xe563ff=_0x53b972(0xe9)[_0x53b972(0xe8)](_0x2c7995,'\x20')[_0x53b972(0xe8)](_0x1f42b1||'')[_0x53b972(0x8e)](),_0x41276f=f[_0x53b972(0x97)]('_'['concat'](G()));return y(_0x5f2ae2,''[_0x53b972(0xe8)](_0x2c7995),{'defIds':_0x5f2ae2['defIds'],'idSuffix':_0x41276f['current']},u({'ref':_0x24cc5b,'className':_0xe563ff},_0x43e80e),_0x554a16);});function y(_0x1f09ed,_0x251d75,_0x1e9dfa,_0x4d573c,_0x1f9f26){var _0x2ce678=_0x2d992a;return f[_0x2ce678(0x152)](_0x1f09ed[_0x2ce678(0xb9)],u(u({'key':_0x251d75},q(_0x1f09ed,_0x1e9dfa,_0x1f9f26)),_0x4d573c),(W(_0x1f09ed,_0x1e9dfa)[_0x2ce678(0xc7)]||[])['map'](function(_0x374e31,_0xba1197){var _0x425c55=_0x2ce678;return y(_0x374e31,''['concat'](_0x251d75,'-')[_0x425c55(0xe8)](_0x1f09ed[_0x425c55(0xb9)],'-')[_0x425c55(0xe8)](_0xba1197),_0x1e9dfa,void 0x0,_0x1f9f26);}));}function q(_0x5eac99,_0x39d570,_0x52d6a4){var _0x28cc9d=_0x2d992a,_0xdb4127=u({},_0x5eac99[_0x28cc9d(0x9e)]);_0x52d6a4!=null&&_0x52d6a4[_0x28cc9d(0xb4)]&&_0xdb4127['fill']===_0x28cc9d(0xb4)&&(_0xdb4127['fill']=_0x52d6a4[_0x28cc9d(0xb4)]),_0x5eac99['tag']==='mask'&&_0xdb4127['id']&&(_0xdb4127['id']=_0xdb4127['id']+_0x39d570[_0x28cc9d(0x14f)]),Object[_0x28cc9d(0x134)](_0xdb4127)[_0x28cc9d(0x122)](function(_0x51a3e9){var _0x345828=_0x28cc9d,_0x38c28b=_0x51a3e9[0x0],_0x327b5c=_0x51a3e9[0x1];_0x38c28b===_0x345828(0x125)&&typeof _0x327b5c==_0x345828(0x16b)&&(_0xdb4127[_0x38c28b]=_0x327b5c[_0x345828(0xe6)](/url\(#(.*)\)/,_0x345828(0xe4)[_0x345828(0xe8)](_0x39d570[_0x345828(0x14f)],')')));});var _0x11082a=_0x39d570[_0x28cc9d(0xe0)];return!_0x11082a||_0x11082a[_0x28cc9d(0xf5)]===0x0||(_0x5eac99[_0x28cc9d(0xb9)]==='use'&&_0xdb4127[_0x28cc9d(0x155)]&&(_0xdb4127[_0x28cc9d(0x155)]=_0xdb4127[_0x28cc9d(0x155)]+_0x39d570[_0x28cc9d(0x14f)]),Object['entries'](_0xdb4127)[_0x28cc9d(0x122)](function(_0x1e8dc6){var _0x280d65=_0x28cc9d,_0x4147fb=_0x1e8dc6[0x0],_0x5dbb53=_0x1e8dc6[0x1];typeof _0x5dbb53==_0x280d65(0x16b)&&(_0xdb4127[_0x4147fb]=_0x5dbb53['replace'](/url\(#(.*)\)/,_0x280d65(0xe4)[_0x280d65(0xe8)](_0x39d570[_0x280d65(0x14f)],')')));})),_0xdb4127;}function W(_0x29dd52,_0x3ee0f3){var _0x93f93d=_0x2d992a,_0x5df557,_0x45fab4=_0x3ee0f3[_0x93f93d(0xe0)];return!_0x45fab4||_0x45fab4[_0x93f93d(0xf5)]===0x0?_0x29dd52:_0x29dd52[_0x93f93d(0xb9)]==='defs'&&(!((_0x5df557=_0x29dd52[_0x93f93d(0xc7)])===null||_0x5df557===void 0x0)&&_0x5df557[_0x93f93d(0xf5)])?u(u({},_0x29dd52),{'children':_0x29dd52['children'][_0x93f93d(0xfe)](function(_0x22fe17){var _0x3c9a07=_0x93f93d;return typeof _0x22fe17[_0x3c9a07(0x9e)]['id']=='string'&&_0x45fab4&&_0x45fab4[_0x3c9a07(0xe7)](_0x22fe17[_0x3c9a07(0x9e)]['id'])?u(u({},_0x22fe17),{'attrs':u(u({},_0x22fe17[_0x3c9a07(0x9e)]),{'id':_0x22fe17[_0x3c9a07(0x9e)]['id']+_0x3ee0f3[_0x3c9a07(0x14f)]})}):_0x22fe17;})}):_0x29dd52;}function G(){var _0x29e739=_0x2d992a;return Math[_0x29e739(0xd6)]()['toString'](0x24)[_0x29e739(0xd4)](0x2,0x8);}j['displayName']=_0x2d992a(0x91);var B={'tag':_0x2d992a(0xd1),'attrs':{'xmlns':_0x2d992a(0x15f),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2d992a(0xa6),'height':_0x2d992a(0xa6)},'children':[{'tag':_0x2d992a(0x13a),'attrs':{'fill':'currentColor','d':_0x2d992a(0xb2)}},{'tag':_0x2d992a(0x13a),'attrs':{'fill':'currentColor','d':_0x2d992a(0x89),'fillRule':_0x2d992a(0x12a),'clipRule':'evenodd'}}]},P=f[_0x2d992a(0xc2)](function(_0x527ef1,_0x1583eb){var _0x4cbd57=_0x2d992a;return f[_0x4cbd57(0x152)](j,Object['assign']({},_0x527ef1,{'id':'live-share-icon','ref':_0x1583eb,'icon':B}));});P[_0x2d992a(0x120)]=_0x2d992a(0x153);var Y=Object[_0x2d992a(0x87)],R=(_0x3fa39a,_0x4c555c,_0x296c38,_0x29b59e)=>{for(var _0x4cff45=_0x29b59e>0x1?void 0x0:_0x29b59e?Y(_0x4c555c,_0x296c38):_0x4c555c,_0x647c25=_0x3fa39a['length']-0x1,_0x2eb779;_0x647c25>=0x0;_0x647c25--)(_0x2eb779=_0x3fa39a[_0x647c25])&&(_0x4cff45=_0x2eb779(_0x4cff45)||_0x4cff45);return _0x4cff45;},S=(_0x78f776,_0x443d2c)=>(_0x5256b7,_0x1f1f71)=>_0x443d2c(_0x5256b7,_0x1f1f71,_0x78f776);exports[_0x2d992a(0x15a)]=class extends o[_0x2d992a(0x109)]{constructor(_0x592905,_0x33ddfc,_0x47e44c){var _0x103444=_0x2d992a;super(),v(this,'_entities',new Map()),(this[_0x103444(0xbd)]=_0x592905,this['_injector']=_0x33ddfc,this['_collabSessionService']=_0x47e44c,this[_0x103444(0x14d)]());}async['getLiveShareCoordinator'](_0x1649f9){var _0x89368e=_0x2d992a;return this[_0x89368e(0x14b)][_0x89368e(0xb3)](_0x1649f9)||await this[_0x89368e(0x100)](_0x1649f9),this['_entities'][_0x89368e(0x158)](_0x1649f9);}['_init'](){var _0x3b957b=_0x2d992a;this[_0x3b957b(0xbd)]['getTypeOfUnitAdded$'](o[_0x3b957b(0x151)]['UNIVER_SHEET'])[_0x3b957b(0x114)](b[_0x3b957b(0xab)](this[_0x3b957b(0x167)]))[_0x3b957b(0x140)](async _0x4f2181=>{var _0x4b9ce6=_0x3b957b;const _0x994008=_0x4f2181['getUnitId']();this[_0x4b9ce6(0x14b)][_0x4b9ce6(0xb3)](_0x994008)||this[_0x4b9ce6(0x100)](_0x994008);}),this[_0x3b957b(0xbd)][_0x3b957b(0x12c)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x3b957b(0x114)](b[_0x3b957b(0xab)](this[_0x3b957b(0x167)]))[_0x3b957b(0x140)](_0x3876f5=>{var _0xd7fcc8=_0x3b957b;const _0x35a26a=_0x3876f5[_0xd7fcc8(0xcd)](),_0x1ed5e0=this[_0xd7fcc8(0x14b)][_0xd7fcc8(0x158)](_0x35a26a);_0x1ed5e0==null||_0x1ed5e0[_0xd7fcc8(0xb0)]();});}async[_0x2d992a(0x100)](_0x52a539){var _0x127788=_0x2d992a;const _0x5cc3ac=await this['_collabSessionService'][_0x127788(0xb7)](_0x52a539),_0x34dddc=this[_0x127788(0xee)][_0x127788(0x128)](exports[_0x127788(0x15d)],_0x52a539,_0x5cc3ac);return _0x34dddc['init'](),this['_entities'][_0x127788(0x9b)](_0x52a539,_0x34dddc),_0x34dddc;}},exports[_0x2d992a(0x15a)]=R([S(0x0,o[_0x2d992a(0x126)]),S(0x1,o['Inject'](o[_0x2d992a(0x130)])),S(0x2,o[_0x2d992a(0xac)](m[_0x2d992a(0x11d)]))],exports['LiveShareController']);var h=(_0x108397=>(_0x108397[_0x2d992a(0xad)]=_0x2d992a(0xea),_0x108397[_0x2d992a(0xaa)]='idle',_0x108397[_0x2d992a(0x15b)]=_0x2d992a(0xda),_0x108397[_0x2d992a(0x10d)]=_0x2d992a(0xb6),_0x108397['PRESENTING']=_0x2d992a(0x13b),_0x108397))(h||{});const Z=_0x2d992a(0xd0),J=0xc8;exports[_0x2d992a(0x15d)]=class extends o[_0x2d992a(0x109)]{constructor(_0x3e6b4c,_0x4939fa,_0x38f055,_0x1f337b,_0x5ac17d){var _0x5c63b9=_0x2d992a;super(),v(this,_0x5c63b9(0x8b),new D[(_0x5c63b9(0x103))]('idle')),v(this,_0x5c63b9(0x11b),this[_0x5c63b9(0x8b)][_0x5c63b9(0x136)]()),v(this,_0x5c63b9(0x14d),!0x1),v(this,_0x5c63b9(0x168),null),v(this,_0x5c63b9(0x16c),null),(this['_unitID']=_0x3e6b4c,this['_collabSession']=_0x4939fa,this[_0x5c63b9(0x93)]=_0x38f055,this['_liveShareService']=_0x1f337b,this['_commandService']=_0x5ac17d);}get[_0x2d992a(0xf8)](){var _0x411c26=_0x2d992a;return this[_0x411c26(0x8b)][_0x411c26(0xf9)]();}['dispose'](){var _0xfa7c21=_0x2d992a,_0x4b7e50;(_0x4b7e50=this[_0xfa7c21(0x168)])==null||_0x4b7e50['dispose'](),this['_status$'][_0xfa7c21(0xc5)]('idle'),this[_0xfa7c21(0x8b)][_0xfa7c21(0x129)]();}[_0x2d992a(0x90)](){var _0x597939=_0x2d992a;this[_0x597939(0x14d)]||(this['_init']=!0x0,this[_0x597939(0xbe)][_0x597939(0xd3)]['pipe'](b[_0x597939(0xab)](this['dispose$']))[_0x597939(0x140)](_0x17c360=>{var _0xf0c1b5=_0x597939;switch(_0x17c360){case m[_0xf0c1b5(0x8f)]['OFFLINE']:this[_0xf0c1b5(0x142)]();break;case m[_0xf0c1b5(0x8f)][_0xf0c1b5(0xb1)]:this[_0xf0c1b5(0xbc)]();break;}}),this[_0x597939(0xbe)][_0x597939(0xcb)][_0x597939(0x114)](b[_0x597939(0xab)](this[_0x597939(0x167)]))[_0x597939(0x140)](_0x34a199=>{var _0xf17539=_0x597939;const {eventID:_0xe6c103}=_0x34a199;switch(_0xe6c103){case _['CollaborationEvent'][_0xf17539(0x132)]:this['_handleNewHost'](_0x34a199);break;case _[_0xf17539(0x14c)][_0xf17539(0xff)]:this['_handleOperation'](_0x34a199);break;case _[_0xf17539(0x14c)][_0xf17539(0x166)]:this[_0xf17539(0xed)]();break;case _[_0xf17539(0x14c)][_0xf17539(0x117)]:this['_handleNewChangeSets'](_0x34a199);break;}}));}[_0x2d992a(0xd8)](){var _0x20aeac=_0x2d992a;this[_0x20aeac(0xbe)][_0x20aeac(0xd5)]({'eventID':_[_0x20aeac(0x14c)][_0x20aeac(0xfc)],'data':{'unitID':this['_unitID'],'userID':this[_0x20aeac(0xbe)][_0x20aeac(0x9a)]()}},this[_0x20aeac(0x150)]);}[_0x2d992a(0xc3)](){var _0x15a1ec=_0x2d992a;this[_0x15a1ec(0xf8)]==='presenting'&&(this[_0x15a1ec(0x8b)]['next']('idle'),this[_0x15a1ec(0xbe)][_0x15a1ec(0xd5)]({'eventID':_[_0x15a1ec(0x14c)][_0x15a1ec(0x166)],'data':{'unitID':this[_0x15a1ec(0x150)]}},this['_unitID']));}['startFollowing'](){var _0x33edb2=_0x2d992a;this[_0x33edb2(0xf8)]==='not-following'&&(this[_0x33edb2(0x8b)]['next']('following'),this[_0x33edb2(0x105)]());}['stopFollowing'](){var _0x297391=_0x2d992a;this[_0x297391(0xf8)]===_0x297391(0xda)&&this[_0x297391(0xb5)]();}['_handleNewHost'](_0x347d87){var _0x94a549=_0x2d992a;const {presenter:_0x30ff99}=_0x347d87[_0x94a549(0x12e)],_0x1b8a56=this[_0x94a549(0xbe)][_0x94a549(0x9a)]();this[_0x94a549(0x16c)]=_0x30ff99,_0x30ff99===_0x1b8a56?(this[_0x94a549(0xb5)](),this[_0x94a549(0xdd)]()):this[_0x94a549(0xf8)]!==_0x94a549(0xb6)&&(this[_0x94a549(0xba)](),this[_0x94a549(0x105)]());}[_0x2d992a(0x161)](){var _0x2df6d5=_0x2d992a;const _0x2369ed={'eventID':_[_0x2df6d5(0x14c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2df6d5(0xbe)]['send'](_0x2369ed,this[_0x2df6d5(0x150)]);}['_handleTerminate'](){var _0x3cd896=_0x2d992a;this['_presenter']=null,this[_0x3cd896(0xf8)]!==_0x3cd896(0x13b)&&this[_0x3cd896(0x148)]();}[_0x2d992a(0xf0)](_0x44161f){var _0x18bdc0=_0x2d992a;if(this['_status']===_0x18bdc0(0xda)&&this['_presenter']===_0x44161f[_0x18bdc0(0x12e)][_0x18bdc0(0x138)]){const _0x15ae15=_[_0x18bdc0(0xe3)](_0x44161f[_0x18bdc0(0x12e)])[_0x18bdc0(0x16d)]['reverse']()[_0x18bdc0(0xdc)](_0x3f5a72=>_0x3f5a72['id']===C[_0x18bdc0(0x102)]['id']);if(_0x15ae15){const _0x147016=_0x15ae15[_0x18bdc0(0x11a)][_0x18bdc0(0x165)],_0x1314fb=_0x15ae15[_0x18bdc0(0x11a)]['sheet']['id'];setTimeout(()=>{var _0x344094=_0x18bdc0;this[_0x344094(0x143)][_0x344094(0xa0)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x147016,'subUnitId':_0x1314fb},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1517ca=_0x2d992a;this['_status$'][_0x1517ca(0xc5)](_0x1517ca(0x13b));const _0x544daf=new Map(),_0x432bfc=this[_0x1517ca(0x168)]=new o['DisposableCollection']();_0x432bfc['add'](o['toDisposable'](()=>{var _0x2330ff=_0x1517ca;_0x544daf[_0x2330ff(0x122)](_0x15fad6=>_0x15fad6[_0x2330ff(0x129)]()),_0x544daf[_0x2330ff(0xa8)]();})),_0x432bfc[_0x1517ca(0x11f)](this[_0x1517ca(0x143)]['onCommandExecuted'](_0xd6c072=>{var _0x4cd477=_0x1517ca,_0x4f56ff;if(_0xd6c072[_0x4cd477(0xcc)]!==o['CommandType'][_0x4cd477(0xa4)]||!this[_0x4cd477(0x13d)]['shouldShareOperation'](_0xd6c072['id']))return;const {id:_0x29b07b}=_0xd6c072;let _0x5eb08c;_0x544daf[_0x4cd477(0xb3)](_0x29b07b)?_0x5eb08c=_0x544daf[_0x4cd477(0x158)](_0x29b07b):(_0x5eb08c=new D[(_0x4cd477(0xa9))](),_0x544daf[_0x4cd477(0x9b)](_0x29b07b,_0x5eb08c),_0x5eb08c[_0x4cd477(0x114)](b[_0x4cd477(0xbb)]((_0x4f56ff=this[_0x4cd477(0x93)][_0x4cd477(0xdb)](Z))!=null?_0x4f56ff:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4cd477(0x140)](_0x13523e=>{var _0x3de28c=_0x4cd477;this['_collabSession'][_0x3de28c(0xd5)]({'eventID':_[_0x3de28c(0x14c)][_0x3de28c(0xff)],'data':{'unitID':this[_0x3de28c(0x150)],'operations':{[_0x13523e['id']]:{'id':_0x13523e['id'],'params':JSON[_0x3de28c(0xf2)](_0x13523e['params'])}}}},this[_0x3de28c(0x150)]);})),_0x5eb08c[_0x4cd477(0xc5)](_0xd6c072);})),this[_0x1517ca(0x13d)][_0x1517ca(0x121)](this[_0x1517ca(0x150)])[_0x1517ca(0x122)](_0x46903a=>this[_0x1517ca(0xbe)][_0x1517ca(0xd5)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1517ca(0x150)],'operations':{[_0x46903a['id']]:{'id':_0x46903a['id'],'params':JSON[_0x1517ca(0xf2)](_0x46903a[_0x1517ca(0x11a)])}}}},this['_unitID']));}[_0x2d992a(0xba)](){var _0x33945e=_0x2d992a,_0x21260f;this[_0x33945e(0x8b)][_0x33945e(0xc5)]('idle'),(_0x21260f=this[_0x33945e(0x168)])==null||_0x21260f[_0x33945e(0xb0)](),this[_0x33945e(0x168)]=null;}[_0x2d992a(0x105)](){var _0x283e84=_0x2d992a,_0x560008;(_0x560008=this[_0x283e84(0x168)])==null||_0x560008[_0x283e84(0xb0)](),this['_status$'][_0x283e84(0xc5)](_0x283e84(0xda));}[_0x2d992a(0x148)](){var _0x1b5835=_0x2d992a,_0x4332c1;this['_status$'][_0x1b5835(0xc5)]('idle'),(_0x4332c1=this[_0x1b5835(0x168)])==null||_0x4332c1[_0x1b5835(0xb0)](),this[_0x1b5835(0x168)]=null;}[_0x2d992a(0xb5)](){var _0xb62de1=_0x2d992a,_0x366d13;this['_status$']['next'](_0xb62de1(0xb6)),(_0x366d13=this[_0xb62de1(0x168)])==null||_0x366d13[_0xb62de1(0xb0)]();}[_0x2d992a(0x11e)](_0x296e00){var _0x3740da=_0x2d992a;if([_0x3740da(0x13b),_0x3740da(0xb6),'offline'][_0x3740da(0xe7)](this['_status'])||!_0x296e00['data'][_0x3740da(0x113)]||_0x296e00[_0x3740da(0x12e)][_0x3740da(0x113)]===this[_0x3740da(0xbe)]['getMemberID']())return;this['_status']==='idle'&&this[_0x3740da(0x105)]();const _0x55f67c=_0x296e00[_0x3740da(0x12e)][_0x3740da(0x94)];Object[_0x3740da(0x96)](_0x55f67c)['forEach'](_0x33b2a5=>{var _0x4faf6d=_0x3740da;this[_0x4faf6d(0x143)][_0x4faf6d(0xa0)](_0x33b2a5['id'],_0x33b2a5['params']?JSON[_0x4faf6d(0x104)](_0x33b2a5[_0x4faf6d(0x11a)]):null,{'fromCollab':!0x0});});}[_0x2d992a(0x142)](){var _0x5eaf4c=_0x2d992a,_0x4994f7;this['_status$'][_0x5eaf4c(0xc5)](_0x5eaf4c(0xea)),(_0x4994f7=this['_commandDisposable'])==null||_0x4994f7['dispose']();}[_0x2d992a(0xbc)](){var _0x2f306c=_0x2d992a;this[_0x2f306c(0x8b)][_0x2f306c(0xc5)](_0x2f306c(0x162)),this[_0x2f306c(0x161)]();}},exports[_0x2d992a(0x15d)]=R([S(0x2,o[_0x2d992a(0x154)]),S(0x3,o[_0x2d992a(0xac)](O)),S(0x4,o[_0x2d992a(0xca)])],exports[_0x2d992a(0x15d)]);function A(){var _0x4050c4=_0x2d992a;const _0x4c5e00=p['useDependency'](exports['LiveShareController']),_0x123f63=p['useDependency'](o[_0x4050c4(0x126)]),_0x4f9c20=p[_0x4050c4(0xe2)](()=>_0x123f63['getCurrentTypeOfUnit$'](o[_0x4050c4(0x151)][_0x4050c4(0x112)]),void 0x0,!0x1,[]),[_0x49430c,_0x4445fd]=f[_0x4050c4(0x10c)](null),[_0x5e362e,_0x4cb3a4]=f[_0x4050c4(0x10c)](h[_0x4050c4(0xaa)]),_0x29aafd=f[_0x4050c4(0x97)](null);return f[_0x4050c4(0xf3)](()=>(_0x4f9c20&&_0x4c5e00[_0x4050c4(0x147)](_0x4f9c20[_0x4050c4(0xcd)]())[_0x4050c4(0x115)](_0x5234dd=>{var _0x491cf8=_0x4050c4;_0x4445fd(_0x5234dd),_0x29aafd[_0x491cf8(0xf1)]=_0x5234dd[_0x491cf8(0x11b)][_0x491cf8(0x140)](_0x2d93f6=>{_0x4cb3a4(_0x2d93f6);});}),()=>{var _0x40aa9e=_0x4050c4,_0x1d8acf;(_0x1d8acf=_0x29aafd[_0x40aa9e(0xf1)])==null||_0x1d8acf[_0x40aa9e(0x124)](),_0x29aafd[_0x40aa9e(0xf1)]=null;}),[_0x4f9c20,_0x4c5e00]),_0x49430c?l[_0x4050c4(0xce)](g[_0x4050c4(0xfa)],{'align':_0x4050c4(0x110),'disabled':_0x5e362e===h[_0x4050c4(0xad)],'className':_0x4050c4(0xec),'overlay':l['jsx'](K,{'status':_0x5e362e,'coordinator':_0x49430c}),'children':l[_0x4050c4(0xce)](_0x4050c4(0xf4),{'className':g[_0x4050c4(0xa2)](_0x4050c4(0xa1),{'univer-cursor-not-allowed':_0x5e362e===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5e362e!==h[_0x4050c4(0xad)]}),'type':'button','children':l[_0x4050c4(0xce)](P,{'className':_0x4050c4(0xa7)})})}):null;}function K(_0x18de75){var _0x1a4983=_0x2d992a;const {status:_0x437128,coordinator:_0x66b4d3}=_0x18de75;switch(_0x437128){case h[_0x1a4983(0xaa)]:return l[_0x1a4983(0xce)](z,{'coordinator':_0x66b4d3});case h[_0x1a4983(0x15b)]:return l[_0x1a4983(0xce)](Q,{'coordinator':_0x66b4d3});case h['NOT_FOLLOWING']:return l[_0x1a4983(0xce)](X,{'coordinator':_0x66b4d3});case h['OFFLINE']:return l[_0x1a4983(0xce)](te,{});case h[_0x1a4983(0x10e)]:return l[_0x1a4983(0xce)](ee,{'coordinator':_0x66b4d3});default:return null;}}function z(_0x243e41){var _0x5aa0dd=_0x2d992a;const {coordinator:_0x5a4585}=_0x243e41;return l[_0x5aa0dd(0xae)](l[_0x5aa0dd(0x13f)],{'children':[l[_0x5aa0dd(0xce)](_0x5aa0dd(0x123),{'className':_0x5aa0dd(0x12d),'children':_0x5aa0dd(0x106)}),l[_0x5aa0dd(0xce)](g[_0x5aa0dd(0xf7)],{'onClick':()=>_0x5a4585[_0x5aa0dd(0xd8)](),'children':'Start'})]});}function Q(_0x15aed9){var _0x1c3cec=_0x2d992a;const {coordinator:_0x5b1f04}=_0x15aed9;return l['jsxs'](l[_0x1c3cec(0x13f)],{'children':[l[_0x1c3cec(0xce)]('div',{'className':_0x1c3cec(0x12d),'children':_0x1c3cec(0x101)}),l[_0x1c3cec(0xce)](g[_0x1c3cec(0xf7)],{'onClick':()=>_0x5b1f04[_0x1c3cec(0xdf)](),'children':'Stop\x20following'})]});}function X(_0x14bd0f){var _0x23b35e=_0x2d992a;const {coordinator:_0x3dc80e}=_0x14bd0f;return l[_0x23b35e(0xae)](l[_0x23b35e(0x13f)],{'children':[l[_0x23b35e(0xce)]('div',{'className':_0x23b35e(0x12d),'children':_0x23b35e(0xc4)}),l[_0x23b35e(0xce)](g[_0x23b35e(0xf7)],{'variant':_0x23b35e(0xef),'onClick':()=>_0x3dc80e[_0x23b35e(0xc9)](),'children':_0x23b35e(0xfb)})]});}function _0x438c(){var _0x1ebf01=['useEffect','button','length','mergeOverrideWithDependencies','Button','_status','getValue','Dropdown','Start\x20following','LIVESHARE_REQUEST_HOST','touchDependencies','map','LIVESHARE_OPERATION','_startLiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','InsertSheetMutation','BehaviorSubject','parse','_startFollowing','Present\x20this\x20document','onRendered','getOwnPropertySymbols','RxDisposable','Plugin','_config','useState','NOT_FOLLOWING','PRESENTING','defineProperty','end','icon','UNIVER_SHEET','presenter','pipe','then','merge','NEW_CHANGESETS','10030491JHpTIM','SetZoomRatioOperation','params','status$','UNIVER_LIVE_SHARE_PLUGIN','CollaborationSessionService','_handleOperation','add','displayName','getInitialStates','forEach','div','unsubscribe','mask','IUniverInstanceService','connectInjector','createInstance','complete','evenodd','DesktopLiveShareController','getTypeOfUnitDisposed$','univer-mb-3\x20univer-w-full\x20univer-text-sm','data','LiveShare','Injector','extend','LIVESHARE_NEW_HOST','6012vYDrOC','entries','LiveShareStatus','asObservable','HEADER_MENU','memberID','registerSharedOperation','path','presenting','BuiltInUIPart','_liveShareService','66yUbLIO','Fragment','subscribe','UniverLiveSharePlugin','_handleOffline','_commandService','DependentOn','@univerjs/sheets-ui','indexOf','getLiveShareCoordinator','_beIdle','You\x27are\x20offline.','propertyIsEnumerable','_entities','CollaborationEvent','_init','_reporters','idSuffix','_unitID','UniverInstanceType','createElement','LiveShareIcon','IConfigService','xlink:href','className','Module','get','symbol','LiveShareController','FOLLOWING','UniverCollaborationClientPlugin','LiveShareCoordinator','rxjs','http://www.w3.org/2000/svg','live-share.config','_fetchOperations','idle','@univerjs-pro/collaboration','UNIVER_UNKNOWN','unitId','LIVESHARE_TERMINATE','dispose$','_commandDisposable','2808306xjkTBV','1304yxcgaU','string','_presenter','mutations','getOwnPropertyDescriptor','_uiPartsService','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','SetWorksheetActiveOperation','_status$','_sharedOperations','Stop\x20presenting','trim','SessionStatus','init','UniverIcon','toDisposable','_configService','operations','prototype','values','useRef','@univerjs-pro/collaboration-client','39529kvDQjn','getMemberID','set','@univerjs/design','override','attrs','13165470VtNUEO','executeCommand','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','clsx','LiveShareService','OPERATION','@univerjs/core','1em','univer-size-4','clear','Subject','IDLE','takeUntil','Inject','OFFLINE','jsxs','setConfig','dispose','ONLINE','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','has','colorChannel1','_stopFollowing','not-following','requireSession','@univerjs/sheets','tag','_stopPresenting','throttleTime','_handleOnline','_univerInstanceService','_collabSession','17747ClzsIw','SetScrollOperation','assign','forwardRef','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','next','1505IeKReT','children','disposeWithMe','startFollowing','ICommandService','event$','type','getUnitId','jsx','Disposable','SAME_OPERATION_SHARE_INTERVAL','svg','call','sessionStatus$','substring','send','random','default','tryStartPresenting','shouldShareOperation','following','getConfig','find','_startPresenting','1336026Dedetc','stopFollowing','defIds','function','useObservable','parseProtocolChangeset','url(#$1','_mountLiveShare','replace','includes','concat','univerjs-icon\x20univerjs-icon-','offline','react','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','_handleTerminate','_injector','text','_handleNewChangeSets','current','stringify'];_0x438c=function(){return _0x1ebf01;};return _0x438c();}function ee(_0x5275dd){var _0x2e4cff=_0x2d992a;const {coordinator:_0x26a681}=_0x5275dd;return l[_0x2e4cff(0xae)](l['Fragment'],{'children':[l['jsx'](_0x2e4cff(0x123),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2e4cff(0xce)](g['Button'],{'variant':_0x2e4cff(0xd7),'onClick':()=>_0x26a681[_0x2e4cff(0xc3)](),'children':_0x2e4cff(0x8d)})]});}function te(){var _0x405813=_0x2d992a;return l['jsx'](l[_0x405813(0x13f)],{'children':_0x405813(0x149)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x5873b0,_0x53678b,_0x11cc8d,_0x127922)=>{var _0x1b16a5=_0x2d992a;for(var _0x3e9803=_0x127922>0x1?void 0x0:_0x127922?ie(_0x53678b,_0x11cc8d):_0x53678b,_0x430d4c=_0x5873b0[_0x1b16a5(0xf5)]-0x1,_0x56e28b;_0x430d4c>=0x0;_0x430d4c--)(_0x56e28b=_0x5873b0[_0x430d4c])&&(_0x3e9803=_0x56e28b(_0x3e9803)||_0x3e9803);return _0x3e9803;},L=(_0x1d31d8,_0x594886)=>(_0x1fe429,_0x2b8d96)=>_0x594886(_0x1fe429,_0x2b8d96,_0x1d31d8);exports['DesktopLiveShareController']=class extends o[_0x2d992a(0xcf)]{constructor(_0x1744b6,_0x5dc962){var _0x3cc71f=_0x2d992a;super(),this['_injector']=_0x1744b6,this[_0x3cc71f(0x88)]=_0x5dc962,this[_0x3cc71f(0xe5)]();}[_0x2d992a(0xe5)](){var _0x38dffd=_0x2d992a;this[_0x38dffd(0xc8)](this['_uiPartsService']['registerComponent'](p[_0x38dffd(0x13c)][_0x38dffd(0x137)],()=>p[_0x38dffd(0x127)](A,this['_injector'])));}},exports[_0x2d992a(0x12b)]=ne([L(0x0,o[_0x2d992a(0xac)](o[_0x2d992a(0x130)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);var re=Object[_0x2d992a(0x10f)],se=Object[_0x2d992a(0x87)],oe=(_0x4450ea,_0x334e42,_0x16041b)=>_0x334e42 in _0x4450ea?re(_0x4450ea,_0x334e42,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16041b}):_0x4450ea[_0x334e42]=_0x16041b,ae=(_0xfffcfc,_0x3f472a,_0x2f7a19,_0x55b60f)=>{var _0x43ba8a=_0x2d992a;for(var _0x44effa=_0x55b60f>0x1?void 0x0:_0x55b60f?se(_0x3f472a,_0x2f7a19):_0x3f472a,_0xb0506e=_0xfffcfc[_0x43ba8a(0xf5)]-0x1,_0x596d65;_0xb0506e>=0x0;_0xb0506e--)(_0x596d65=_0xfffcfc[_0xb0506e])&&(_0x44effa=_0x596d65(_0x44effa)||_0x44effa);return _0x44effa;},N=(_0x2c166c,_0x57a925)=>(_0x3b951c,_0x235bed)=>_0x57a925(_0x3b951c,_0x235bed,_0x2c166c),T=(_0x3b06cc,_0x577388,_0x4fcb15)=>oe(_0x3b06cc,typeof _0x577388!='symbol'?_0x577388+'':_0x577388,_0x4fcb15);const le=_0x2d992a(0x11c);exports[_0x2d992a(0x141)]=class extends o[_0x2d992a(0x10a)]{constructor(_0x4c143a=x,_0x288c31,_0x72996){var _0x41ec60=_0x2d992a;super(),this[_0x41ec60(0x10b)]=_0x4c143a,this[_0x41ec60(0xee)]=_0x288c31,this[_0x41ec60(0x93)]=_0x72996;const {..._0x2b2c62}=o[_0x41ec60(0x116)]({},x,this[_0x41ec60(0x10b)]);this[_0x41ec60(0x93)][_0x41ec60(0xaf)]($,_0x2b2c62);}['onStarting'](){var _0x2c3f0c=_0x2d992a;o['registerDependencies'](this['_injector'],o[_0x2c3f0c(0xf6)]([[O],[exports[_0x2c3f0c(0x15a)]],[E],[exports[_0x2c3f0c(0x12b)]]],this[_0x2c3f0c(0x10b)][_0x2c3f0c(0x9d)])),o[_0x2c3f0c(0xfd)](this['_injector'],[[E]]);}[_0x2d992a(0x107)](){var _0x496835=_0x2d992a;o[_0x496835(0xfd)](this[_0x496835(0xee)],[[exports[_0x496835(0x12b)]]]);}},T(exports[_0x2d992a(0x141)],_0x2d992a(0xcc),o['UniverInstanceType'][_0x2d992a(0x164)]),T(exports[_0x2d992a(0x141)],'pluginName',le),exports[_0x2d992a(0x141)]=ae([o[_0x2d992a(0x144)](m[_0x2d992a(0x15c)]),N(0x1,o[_0x2d992a(0xac)](o[_0x2d992a(0x130)])),N(0x2,o[_0x2d992a(0x154)])],exports[_0x2d992a(0x141)]),exports[_0x2d992a(0x12f)]=A,exports[_0x2d992a(0xa3)]=O,exports[_0x2d992a(0x135)]=h;
|
|
1
|
+
'use strict';function _0x3797(_0x4d43d9,_0x40a960){var _0x17e190=_0x17e1();return _0x3797=function(_0x3797c8,_0x18df8d){_0x3797c8=_0x3797c8-0xa9;var _0x3e4f4b=_0x17e190[_0x3797c8];return _0x3e4f4b;},_0x3797(_0x4d43d9,_0x40a960);}var _0x4b9391=_0x3797;(function(_0x1d7123,_0xabad7f){var _0xdad188=_0x3797,_0x2ec6dd=_0x1d7123();while(!![]){try{var _0x5d10da=parseInt(_0xdad188(0xef))/0x1*(-parseInt(_0xdad188(0x18f))/0x2)+-parseInt(_0xdad188(0xe7))/0x3+parseInt(_0xdad188(0xba))/0x4*(parseInt(_0xdad188(0x149))/0x5)+parseInt(_0xdad188(0x16c))/0x6*(parseInt(_0xdad188(0x106))/0x7)+-parseInt(_0xdad188(0xf3))/0x8+-parseInt(_0xdad188(0xda))/0x9+-parseInt(_0xdad188(0x14a))/0xa*(-parseInt(_0xdad188(0xd6))/0xb);if(_0x5d10da===_0xabad7f)break;else _0x2ec6dd['push'](_0x2ec6dd['shift']());}catch(_0x3135a5){_0x2ec6dd['push'](_0x2ec6dd['shift']());}}}(_0x17e1,0xc1076));var U=Object['defineProperty'],F=(_0x5a5d56,_0x2097d1,_0x1779a2)=>_0x2097d1 in _0x5a5d56?U(_0x5a5d56,_0x2097d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1779a2}):_0x5a5d56[_0x2097d1]=_0x1779a2,v=(_0x786c7b,_0x3d9654,_0x280f2c)=>F(_0x786c7b,typeof _0x3d9654!=_0x4b9391(0xf9)?_0x3d9654+'':_0x3d9654,_0x280f2c);Object['defineProperty'](exports,Symbol[_0x4b9391(0xe0)],{'value':_0x4b9391(0x11d)});const m=require('@univerjs-pro/collaboration-client'),o=require(_0x4b9391(0x141)),C=require('@univerjs/sheets'),w=require(_0x4b9391(0x181)),p=require(_0x4b9391(0x165)),l=require(_0x4b9391(0x173)),g=require(_0x4b9391(0xad)),f=require(_0x4b9391(0xd4)),_=require('@univerjs-pro/collaboration'),D=require(_0x4b9391(0x17f)),b=require(_0x4b9391(0xbf)),$=_0x4b9391(0xec),x={};class O extends o['Disposable']{constructor(){var _0xaeed21=_0x4b9391;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0xaeed21(0x17a),new Set());}[_0x4b9391(0x125)](_0x232947){var _0x186480=_0x4b9391;return this[_0x186480(0x166)]['add'](_0x232947),o['toDisposable'](()=>this['_sharedOperations'][_0x186480(0x16a)](_0x232947));}[_0x4b9391(0x13f)](_0x166562){var _0x363306=_0x4b9391;return this['_reporters']['add'](_0x166562),o[_0x363306(0xf4)](()=>this[_0x363306(0x17a)][_0x363306(0x16a)](_0x166562));}[_0x4b9391(0x132)](_0x4af167){var _0x415ae6=_0x4b9391;return this[_0x415ae6(0x166)]['has'](_0x4af167);}[_0x4b9391(0xc4)](_0x45c91d){var _0x481e65=_0x4b9391;return Array['from'](this['_reporters'])[_0x481e65(0x112)](_0x5d88d6=>_0x5d88d6(_0x45c91d));}}var H=Object[_0x4b9391(0xfa)],V=(_0x790871,_0x501ea1,_0x7169ba,_0x13ab5e)=>{var _0xe53eb=_0x4b9391;for(var _0x4fa71f=_0x13ab5e>0x1?void 0x0:_0x13ab5e?H(_0x501ea1,_0x7169ba):_0x501ea1,_0x1f763a=_0x790871[_0xe53eb(0xc6)]-0x1,_0x2770cb;_0x1f763a>=0x0;_0x1f763a--)(_0x2770cb=_0x790871[_0x1f763a])&&(_0x4fa71f=_0x2770cb(_0x4fa71f)||_0x4fa71f);return _0x4fa71f;},k=(_0x586fac,_0x5a5f77)=>(_0x1ad790,_0x1d3bb4)=>_0x5a5f77(_0x1ad790,_0x1d3bb4,_0x586fac);let E=class extends o[_0x4b9391(0xca)]{constructor(_0x22ac2b){var _0xaabd95=_0x4b9391;super(),this[_0xaabd95(0xf5)]=_0x22ac2b,this[_0xaabd95(0x13d)]();}['_init'](){var _0x194d77=_0x4b9391;[w[_0x194d77(0xaf)]['id'],w[_0x194d77(0x153)]['id'],C[_0x194d77(0xa9)]['id']][_0x194d77(0xbc)](_0x4f71a5=>{var _0x2949bb=_0x194d77;this['disposeWithMe'](this[_0x2949bb(0xf5)][_0x2949bb(0x125)](_0x4f71a5));});}};E=V([k(0x0,o[_0x4b9391(0x151)](O))],E);var u=function(){var _0x4f8ad8=_0x4b9391;return u=Object[_0x4f8ad8(0x175)]||function(_0xc04668){var _0x267b5f=_0x4f8ad8;for(var _0x1d4f14,_0x1f98bc=0x1,_0x5e8d81=arguments['length'];_0x1f98bc<_0x5e8d81;_0x1f98bc++){_0x1d4f14=arguments[_0x1f98bc];for(var _0x3ebd17 in _0x1d4f14)Object[_0x267b5f(0xb2)][_0x267b5f(0x16b)][_0x267b5f(0xb4)](_0x1d4f14,_0x3ebd17)&&(_0xc04668[_0x3ebd17]=_0x1d4f14[_0x3ebd17]);}return _0xc04668;},u[_0x4f8ad8(0xab)](this,arguments);},M=function(_0x44be7f,_0x4f6f73){var _0x47462a=_0x4b9391,_0x4cec8c={};for(var _0x3a6de3 in _0x44be7f)Object[_0x47462a(0xb2)][_0x47462a(0x16b)][_0x47462a(0xb4)](_0x44be7f,_0x3a6de3)&&_0x4f6f73[_0x47462a(0x113)](_0x3a6de3)<0x0&&(_0x4cec8c[_0x3a6de3]=_0x44be7f[_0x3a6de3]);if(_0x44be7f!=null&&typeof Object[_0x47462a(0xac)]==_0x47462a(0xb6)){for(var _0x437365=0x0,_0x3a6de3=Object[_0x47462a(0xac)](_0x44be7f);_0x437365<_0x3a6de3[_0x47462a(0xc6)];_0x437365++)_0x4f6f73[_0x47462a(0x113)](_0x3a6de3[_0x437365])<0x0&&Object['prototype'][_0x47462a(0x120)][_0x47462a(0xb4)](_0x44be7f,_0x3a6de3[_0x437365])&&(_0x4cec8c[_0x3a6de3[_0x437365]]=_0x44be7f[_0x3a6de3[_0x437365]]);}return _0x4cec8c;},j=f['forwardRef'](function(_0x13c492,_0x32dc41){var _0x163d0b=_0x4b9391,_0xe64e95=_0x13c492['icon'],_0x5b76e3=_0x13c492['id'],_0x83594a=_0x13c492[_0x163d0b(0x144)],_0x28396a=_0x13c492['extend'],_0x48cf25=M(_0x13c492,['icon','id','className',_0x163d0b(0xd2)]),_0x3e37ca=_0x163d0b(0xb3)[_0x163d0b(0xd5)](_0x5b76e3,'\x20')['concat'](_0x83594a||'')[_0x163d0b(0x117)](),_0x3fc55f=f['useRef']('_'['concat'](G()));return y(_0xe64e95,''[_0x163d0b(0xd5)](_0x5b76e3),{'defIds':_0xe64e95['defIds'],'idSuffix':_0x3fc55f[_0x163d0b(0x152)]},u({'ref':_0x32dc41,'className':_0x3e37ca},_0x48cf25),_0x28396a);});function y(_0x3dd907,_0x2e6f9e,_0x35450e,_0x214791,_0x493899){var _0x4a82e5=_0x4b9391;return f[_0x4a82e5(0x107)](_0x3dd907[_0x4a82e5(0xea)],u(u({'key':_0x2e6f9e},q(_0x3dd907,_0x35450e,_0x493899)),_0x214791),(W(_0x3dd907,_0x35450e)[_0x4a82e5(0x171)]||[])[_0x4a82e5(0x112)](function(_0x1138b9,_0x15acb5){var _0xc39a68=_0x4a82e5;return y(_0x1138b9,''[_0xc39a68(0xd5)](_0x2e6f9e,'-')['concat'](_0x3dd907[_0xc39a68(0xea)],'-')[_0xc39a68(0xd5)](_0x15acb5),_0x35450e,void 0x0,_0x493899);}));}function q(_0xb283b7,_0x57553a,_0x4c93e1){var _0x154935=_0x4b9391,_0x465ab0=u({},_0xb283b7[_0x154935(0x157)]);_0x4c93e1!=null&&_0x4c93e1[_0x154935(0xe2)]&&_0x465ab0['fill']===_0x154935(0xe2)&&(_0x465ab0[_0x154935(0x160)]=_0x4c93e1[_0x154935(0xe2)]),_0xb283b7[_0x154935(0xea)]===_0x154935(0xcf)&&_0x465ab0['id']&&(_0x465ab0['id']=_0x465ab0['id']+_0x57553a['idSuffix']),Object['entries'](_0x465ab0)[_0x154935(0xbc)](function(_0xab94c){var _0x382cdc=_0x154935,_0xe0490a=_0xab94c[0x0],_0x5560eb=_0xab94c[0x1];_0xe0490a===_0x382cdc(0xcf)&&typeof _0x5560eb==_0x382cdc(0x147)&&(_0x465ab0[_0xe0490a]=_0x5560eb['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x57553a['idSuffix'],')')));});var _0x1e7dfa=_0x57553a['defIds'];return!_0x1e7dfa||_0x1e7dfa[_0x154935(0xc6)]===0x0||(_0xb283b7['tag']===_0x154935(0x15a)&&_0x465ab0[_0x154935(0x15d)]&&(_0x465ab0[_0x154935(0x15d)]=_0x465ab0[_0x154935(0x15d)]+_0x57553a['idSuffix']),Object['entries'](_0x465ab0)[_0x154935(0xbc)](function(_0x22a6c4){var _0x580439=_0x154935,_0x52f4c7=_0x22a6c4[0x0],_0x112489=_0x22a6c4[0x1];typeof _0x112489==_0x580439(0x147)&&(_0x465ab0[_0x52f4c7]=_0x112489['replace'](/url\(#(.*)\)/,_0x580439(0x13c)['concat'](_0x57553a['idSuffix'],')')));})),_0x465ab0;}function W(_0x18d788,_0x25053e){var _0x1e7870=_0x4b9391,_0x2d36b2,_0x35166b=_0x25053e['defIds'];return!_0x35166b||_0x35166b[_0x1e7870(0xc6)]===0x0?_0x18d788:_0x18d788[_0x1e7870(0xea)]===_0x1e7870(0xdb)&&(!((_0x2d36b2=_0x18d788[_0x1e7870(0x171)])===null||_0x2d36b2===void 0x0)&&_0x2d36b2['length'])?u(u({},_0x18d788),{'children':_0x18d788[_0x1e7870(0x171)][_0x1e7870(0x112)](function(_0x5b50dc){var _0x2a3510=_0x1e7870;return typeof _0x5b50dc[_0x2a3510(0x157)]['id']=='string'&&_0x35166b&&_0x35166b[_0x2a3510(0x18d)](_0x5b50dc['attrs']['id'])?u(u({},_0x5b50dc),{'attrs':u(u({},_0x5b50dc[_0x2a3510(0x157)]),{'id':_0x5b50dc[_0x2a3510(0x157)]['id']+_0x25053e[_0x2a3510(0x159)]})}):_0x5b50dc;})}):_0x18d788;}function G(){var _0x49f2f2=_0x4b9391;return Math[_0x49f2f2(0x13a)]()[_0x49f2f2(0x18c)](0x24)[_0x49f2f2(0x12a)](0x2,0x8);}j[_0x4b9391(0x154)]=_0x4b9391(0xfb);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x4b9391(0x192)},'children':[{'tag':_0x4b9391(0xdd),'attrs':{'fill':_0x4b9391(0x15f),'d':_0x4b9391(0xae)}},{'tag':_0x4b9391(0xdd),'attrs':{'fill':_0x4b9391(0x15f),'d':_0x4b9391(0x161),'fillRule':_0x4b9391(0x15e),'clipRule':_0x4b9391(0x15e)}}]},P=f[_0x4b9391(0xe5)](function(_0x176e78,_0x31536e){var _0x2d1d4d=_0x4b9391;return f[_0x2d1d4d(0x107)](j,Object[_0x2d1d4d(0x175)]({},_0x176e78,{'id':'live-share-icon','ref':_0x31536e,'icon':B}));});P[_0x4b9391(0x154)]=_0x4b9391(0x158);var Y=Object['getOwnPropertyDescriptor'],R=(_0x35d067,_0x48d44b,_0x58845a,_0x1c9c25)=>{var _0x93ecdc=_0x4b9391;for(var _0x1ad545=_0x1c9c25>0x1?void 0x0:_0x1c9c25?Y(_0x48d44b,_0x58845a):_0x48d44b,_0x40b3e2=_0x35d067[_0x93ecdc(0xc6)]-0x1,_0x294bf8;_0x40b3e2>=0x0;_0x40b3e2--)(_0x294bf8=_0x35d067[_0x40b3e2])&&(_0x1ad545=_0x294bf8(_0x1ad545)||_0x1ad545);return _0x1ad545;},S=(_0x226668,_0x1ade8c)=>(_0x471f5d,_0x473ada)=>_0x1ade8c(_0x471f5d,_0x473ada,_0x226668);exports['LiveShareController']=class extends o[_0x4b9391(0xc3)]{constructor(_0xafb121,_0x28be18,_0x213c05){var _0xfdd759=_0x4b9391;super(),v(this,_0xfdd759(0x13e),new Map()),(this[_0xfdd759(0x13b)]=_0xafb121,this[_0xfdd759(0x115)]=_0x28be18,this[_0xfdd759(0x135)]=_0x213c05,this[_0xfdd759(0x13d)]());}async[_0x4b9391(0x101)](_0x15bbcb){var _0x4c5d6b=_0x4b9391;return this[_0x4c5d6b(0x13e)][_0x4c5d6b(0x14d)](_0x15bbcb)||await this[_0x4c5d6b(0xdf)](_0x15bbcb),this['_entities'][_0x4c5d6b(0x164)](_0x15bbcb);}[_0x4b9391(0x13d)](){var _0x26339f=_0x4b9391;this[_0x26339f(0x13b)][_0x26339f(0x123)](o[_0x26339f(0x162)]['UNIVER_SHEET'])['pipe'](b['takeUntil'](this['dispose$']))[_0x26339f(0xc1)](async _0x2d6d26=>{var _0x27c3dd=_0x26339f;const _0x4eb9de=_0x2d6d26[_0x27c3dd(0x121)]();this[_0x27c3dd(0x13e)][_0x27c3dd(0x14d)](_0x4eb9de)||this[_0x27c3dd(0xdf)](_0x4eb9de);}),this[_0x26339f(0x13b)]['getTypeOfUnitDisposed$'](o[_0x26339f(0x162)][_0x26339f(0x12b)])['pipe'](b[_0x26339f(0xdc)](this[_0x26339f(0xfe)]))[_0x26339f(0xc1)](_0x2cbab5=>{var _0xc20c7=_0x26339f;const _0x42dc77=_0x2cbab5['getUnitId'](),_0x35e8ce=this[_0xc20c7(0x13e)][_0xc20c7(0x164)](_0x42dc77);_0x35e8ce==null||_0x35e8ce['dispose']();});}async['_startLiveShareCoordinator'](_0x1d1b23){var _0x2c0d54=_0x4b9391;const _0x384377=await this[_0x2c0d54(0x135)][_0x2c0d54(0x184)](_0x1d1b23),_0x5d397f=this[_0x2c0d54(0x115)]['createInstance'](exports['LiveShareCoordinator'],_0x1d1b23,_0x384377);return _0x5d397f[_0x2c0d54(0x15b)](),this[_0x2c0d54(0x13e)]['set'](_0x1d1b23,_0x5d397f),_0x5d397f;}},exports['LiveShareController']=R([S(0x0,o[_0x4b9391(0xe3)]),S(0x1,o[_0x4b9391(0x151)](o['Injector'])),S(0x2,o['Inject'](m[_0x4b9391(0x10b)]))],exports[_0x4b9391(0x111)]);var h=(_0x3cb492=>(_0x3cb492[_0x4b9391(0xc5)]=_0x4b9391(0x138),_0x3cb492[_0x4b9391(0xb9)]=_0x4b9391(0x122),_0x3cb492[_0x4b9391(0x180)]=_0x4b9391(0x127),_0x3cb492[_0x4b9391(0x119)]=_0x4b9391(0x14b),_0x3cb492[_0x4b9391(0xbe)]=_0x4b9391(0xf6),_0x3cb492))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x4b9391(0xc3)]{constructor(_0x4be9eb,_0x39cec7,_0xc23acb,_0x1f4a70,_0x499acb){var _0x46da17=_0x4b9391;super(),v(this,_0x46da17(0xf8),new D[(_0x46da17(0x137))](_0x46da17(0x122))),v(this,'status$',this[_0x46da17(0xf8)]['asObservable']()),v(this,_0x46da17(0x13d),!0x1),v(this,'_commandDisposable',null),v(this,_0x46da17(0x108),null),(this[_0x46da17(0x116)]=_0x4be9eb,this['_collabSession']=_0x39cec7,this[_0x46da17(0x178)]=_0xc23acb,this['_liveShareService']=_0x1f4a70,this['_commandService']=_0x499acb);}get['_status'](){var _0x5e54ef=_0x4b9391;return this[_0x5e54ef(0xf8)][_0x5e54ef(0xce)]();}[_0x4b9391(0x131)](){var _0x54b50d=_0x4b9391,_0x1af12d;(_0x1af12d=this['_commandDisposable'])==null||_0x1af12d[_0x54b50d(0x131)](),this[_0x54b50d(0xf8)][_0x54b50d(0x182)](_0x54b50d(0x122)),this[_0x54b50d(0xf8)][_0x54b50d(0x16f)]();}[_0x4b9391(0x15b)](){var _0x3e96b1=_0x4b9391;this['_init']||(this[_0x3e96b1(0x13d)]=!0x0,this[_0x3e96b1(0x16d)][_0x3e96b1(0x17c)][_0x3e96b1(0xed)](b[_0x3e96b1(0xdc)](this[_0x3e96b1(0xfe)]))[_0x3e96b1(0xc1)](_0x202f87=>{var _0x3e6edf=_0x3e96b1;switch(_0x202f87){case m[_0x3e6edf(0x187)][_0x3e6edf(0xc5)]:this[_0x3e6edf(0x103)]();break;case m['SessionStatus']['ONLINE']:this[_0x3e6edf(0x142)]();break;}}),this['_collabSession'][_0x3e96b1(0xe4)][_0x3e96b1(0xed)](b[_0x3e96b1(0xdc)](this['dispose$']))['subscribe'](_0x585711=>{var _0x1653f3=_0x3e96b1;const {eventID:_0x420064}=_0x585711;switch(_0x420064){case _[_0x1653f3(0x172)]['LIVESHARE_NEW_HOST']:this[_0x1653f3(0x100)](_0x585711);break;case _[_0x1653f3(0x172)][_0x1653f3(0x133)]:this[_0x1653f3(0x15c)](_0x585711);break;case _[_0x1653f3(0x172)][_0x1653f3(0x110)]:this[_0x1653f3(0xf7)]();break;case _[_0x1653f3(0x172)][_0x1653f3(0x10d)]:this[_0x1653f3(0x169)](_0x585711);break;}}));}[_0x4b9391(0x17e)](){var _0x90198a=_0x4b9391;this[_0x90198a(0x16d)][_0x90198a(0x179)]({'eventID':_[_0x90198a(0x172)][_0x90198a(0xe6)],'data':{'unitID':this[_0x90198a(0x116)],'userID':this[_0x90198a(0x16d)][_0x90198a(0xc9)]()}},this[_0x90198a(0x116)]);}[_0x4b9391(0x10f)](){var _0x54aeaf=_0x4b9391;this[_0x54aeaf(0x109)]===_0x54aeaf(0xf6)&&(this['_status$'][_0x54aeaf(0x182)](_0x54aeaf(0x122)),this[_0x54aeaf(0x16d)][_0x54aeaf(0x179)]({'eventID':_[_0x54aeaf(0x172)][_0x54aeaf(0x110)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x4b9391(0x14c)](){var _0x4fb8b3=_0x4b9391;this[_0x4fb8b3(0x109)]===_0x4fb8b3(0x14b)&&(this['_status$'][_0x4fb8b3(0x182)](_0x4fb8b3(0x127)),this['_startFollowing']());}['stopFollowing'](){var _0x56738d=_0x4b9391;this[_0x56738d(0x109)]==='following'&&this[_0x56738d(0xf2)]();}[_0x4b9391(0x100)](_0x1498f3){var _0x2cb752=_0x4b9391;const {presenter:_0x23e325}=_0x1498f3['data'],_0x266f4e=this['_collabSession'][_0x2cb752(0xc9)]();this['_presenter']=_0x23e325,_0x23e325===_0x266f4e?(this[_0x2cb752(0xf2)](),this['_startPresenting']()):this[_0x2cb752(0x109)]!==_0x2cb752(0x14b)&&(this[_0x2cb752(0xd7)](),this[_0x2cb752(0xbd)]());}[_0x4b9391(0x118)](){var _0x566210=_0x4b9391;const _0x231176={'eventID':_[_0x566210(0x172)][_0x566210(0x12d)]};this[_0x566210(0x16d)][_0x566210(0x179)](_0x231176,this[_0x566210(0x116)]);}[_0x4b9391(0xf7)](){var _0x4b71fe=_0x4b9391;this[_0x4b71fe(0x108)]=null,this[_0x4b71fe(0x109)]!==_0x4b71fe(0xf6)&&this['_beIdle']();}[_0x4b9391(0x169)](_0x1ebf34){var _0xf7ac3f=_0x4b9391;if(this[_0xf7ac3f(0x109)]===_0xf7ac3f(0x127)&&this['_presenter']===_0x1ebf34['data']['memberID']){const _0x2fed88=_[_0xf7ac3f(0x128)](_0x1ebf34[_0xf7ac3f(0xb5)])[_0xf7ac3f(0x10c)][_0xf7ac3f(0x18a)]()[_0xf7ac3f(0xbb)](_0x295c84=>_0x295c84['id']===C['InsertSheetMutation']['id']);if(_0x2fed88){const _0x4375db=_0x2fed88[_0xf7ac3f(0x11c)][_0xf7ac3f(0xd9)],_0x48a122=_0x2fed88[_0xf7ac3f(0x11c)][_0xf7ac3f(0x129)]['id'];setTimeout(()=>{var _0x54b1b5=_0xf7ac3f;this[_0x54b1b5(0xc0)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x4375db,'subUnitId':_0x48a122},{'fromCollab':!0x0});});}}}[_0x4b9391(0x186)](){var _0x331bc8=_0x4b9391;this[_0x331bc8(0xf8)][_0x331bc8(0x182)](_0x331bc8(0xf6));const _0x358a99=new Map(),_0x325eaf=this[_0x331bc8(0xd1)]=new o[(_0x331bc8(0xe8))]();_0x325eaf[_0x331bc8(0x18b)](o[_0x331bc8(0xf4)](()=>{var _0x6ff285=_0x331bc8;_0x358a99[_0x6ff285(0xbc)](_0x1cb187=>_0x1cb187[_0x6ff285(0x16f)]()),_0x358a99['clear']();})),_0x325eaf[_0x331bc8(0x18b)](this[_0x331bc8(0xc0)]['onCommandExecuted'](_0x3f42f7=>{var _0x49c7b1=_0x331bc8,_0x543c5f;if(_0x3f42f7[_0x49c7b1(0x12e)]!==o['CommandType'][_0x49c7b1(0x17d)]||!this['_liveShareService'][_0x49c7b1(0x132)](_0x3f42f7['id']))return;const {id:_0x4a9562}=_0x3f42f7;let _0x56899d;_0x358a99[_0x49c7b1(0x14d)](_0x4a9562)?_0x56899d=_0x358a99[_0x49c7b1(0x164)](_0x4a9562):(_0x56899d=new D[(_0x49c7b1(0x143))](),_0x358a99[_0x49c7b1(0xb8)](_0x4a9562,_0x56899d),_0x56899d[_0x49c7b1(0xed)](b[_0x49c7b1(0x114)]((_0x543c5f=this[_0x49c7b1(0x178)][_0x49c7b1(0xaa)](Z))!=null?_0x543c5f:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x49c7b1(0xc1)](_0x16433a=>{var _0x376408=_0x49c7b1;this[_0x376408(0x16d)][_0x376408(0x179)]({'eventID':_[_0x376408(0x172)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x376408(0x116)],'operations':{[_0x16433a['id']]:{'id':_0x16433a['id'],'params':JSON[_0x376408(0x174)](_0x16433a[_0x376408(0x11c)])}}}},this[_0x376408(0x116)]);})),_0x56899d[_0x49c7b1(0x182)](_0x3f42f7);})),this[_0x331bc8(0xf5)][_0x331bc8(0xc4)](this['_unitID'])[_0x331bc8(0xbc)](_0x2f8740=>this[_0x331bc8(0x16d)]['send']({'eventID':_[_0x331bc8(0x172)][_0x331bc8(0x133)],'data':{'unitID':this[_0x331bc8(0x116)],'operations':{[_0x2f8740['id']]:{'id':_0x2f8740['id'],'params':JSON[_0x331bc8(0x174)](_0x2f8740[_0x331bc8(0x11c)])}}}},this[_0x331bc8(0x116)]));}[_0x4b9391(0xd7)](){var _0x338a33=_0x4b9391,_0x5cb45d;this[_0x338a33(0xf8)][_0x338a33(0x182)]('idle'),(_0x5cb45d=this[_0x338a33(0xd1)])==null||_0x5cb45d[_0x338a33(0x131)](),this[_0x338a33(0xd1)]=null;}[_0x4b9391(0xbd)](){var _0x16ee1f=_0x4b9391,_0x4ee6ee;(_0x4ee6ee=this[_0x16ee1f(0xd1)])==null||_0x4ee6ee['dispose'](),this[_0x16ee1f(0xf8)]['next'](_0x16ee1f(0x127));}[_0x4b9391(0xb1)](){var _0x5a79d=_0x4b9391,_0x47e446;this['_status$']['next']('idle'),(_0x47e446=this[_0x5a79d(0xd1)])==null||_0x47e446[_0x5a79d(0x131)](),this[_0x5a79d(0xd1)]=null;}[_0x4b9391(0xf2)](){var _0x4be413=_0x4b9391,_0x174b22;this[_0x4be413(0xf8)][_0x4be413(0x182)]('not-following'),(_0x174b22=this[_0x4be413(0xd1)])==null||_0x174b22[_0x4be413(0x131)]();}[_0x4b9391(0x15c)](_0x1998f7){var _0x31c71e=_0x4b9391;if(['presenting',_0x31c71e(0x14b),_0x31c71e(0x138)][_0x31c71e(0x18d)](this[_0x31c71e(0x109)])||!_0x1998f7['data'][_0x31c71e(0xb7)]||_0x1998f7[_0x31c71e(0xb5)]['presenter']===this[_0x31c71e(0x16d)][_0x31c71e(0xc9)]())return;this[_0x31c71e(0x109)]===_0x31c71e(0x122)&&this[_0x31c71e(0xbd)]();const _0x172598=_0x1998f7['data']['operations'];Object[_0x31c71e(0x155)](_0x172598)[_0x31c71e(0xbc)](_0x4abffd=>{var _0x3773e4=_0x31c71e;this[_0x3773e4(0xc0)][_0x3773e4(0x104)](_0x4abffd['id'],_0x4abffd[_0x3773e4(0x11c)]?JSON['parse'](_0x4abffd[_0x3773e4(0x11c)]):null,{'fromCollab':!0x0});});}[_0x4b9391(0x103)](){var _0x5681c2=_0x4b9391,_0x2b1f51;this[_0x5681c2(0xf8)][_0x5681c2(0x182)](_0x5681c2(0x138)),(_0x2b1f51=this[_0x5681c2(0xd1)])==null||_0x2b1f51[_0x5681c2(0x131)]();}[_0x4b9391(0x142)](){var _0x4deab7=_0x4b9391;this[_0x4deab7(0xf8)]['next'](_0x4deab7(0x122)),this[_0x4deab7(0x118)]();}},exports[_0x4b9391(0x139)]=R([S(0x2,o[_0x4b9391(0x156)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x4b9391(0x17b)])],exports['LiveShareCoordinator']);function A(){var _0x9958d8=_0x4b9391;const _0x21e40a=p[_0x9958d8(0xc8)](exports[_0x9958d8(0x111)]),_0x39d46f=p['useDependency'](o[_0x9958d8(0xe3)]),_0x1ede5b=p[_0x9958d8(0xfd)](()=>_0x39d46f[_0x9958d8(0x146)](o['UniverInstanceType'][_0x9958d8(0x12b)]),void 0x0,!0x1,[]),[_0x3554db,_0x2f5a64]=f[_0x9958d8(0xee)](null),[_0x26e194,_0xafc2ad]=f[_0x9958d8(0xee)](h[_0x9958d8(0xb9)]),_0x1caf3d=f[_0x9958d8(0x134)](null);return f[_0x9958d8(0xb0)](()=>(_0x1ede5b&&_0x21e40a['getLiveShareCoordinator'](_0x1ede5b[_0x9958d8(0x121)]())[_0x9958d8(0x136)](_0x56daf7=>{var _0xa32036=_0x9958d8;_0x2f5a64(_0x56daf7),_0x1caf3d[_0xa32036(0x152)]=_0x56daf7['status$'][_0xa32036(0xc1)](_0x5ebcd5=>{_0xafc2ad(_0x5ebcd5);});}),()=>{var _0x3dd89d=_0x9958d8,_0x3d471a;(_0x3d471a=_0x1caf3d[_0x3dd89d(0x152)])==null||_0x3d471a[_0x3dd89d(0xe9)](),_0x1caf3d[_0x3dd89d(0x152)]=null;}),[_0x1ede5b,_0x21e40a]),_0x3554db?l[_0x9958d8(0x150)](g['Dropdown'],{'align':_0x9958d8(0xde),'disabled':_0x26e194===h[_0x9958d8(0xc5)],'className':_0x9958d8(0xff),'overlay':l[_0x9958d8(0x150)](K,{'status':_0x26e194,'coordinator':_0x3554db}),'children':l[_0x9958d8(0x150)]('button',{'className':g['clsx'](_0x9958d8(0xd8),{'univer-cursor-not-allowed':_0x26e194===h[_0x9958d8(0xc5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x26e194!==h['OFFLINE']}),'type':_0x9958d8(0x105),'children':l['jsx'](P,{'className':_0x9958d8(0x16e)})})}):null;}function K(_0x4221fb){var _0x27a514=_0x4b9391;const {status:_0x54abea,coordinator:_0x190132}=_0x4221fb;switch(_0x54abea){case h[_0x27a514(0xb9)]:return l[_0x27a514(0x150)](z,{'coordinator':_0x190132});case h['FOLLOWING']:return l[_0x27a514(0x150)](Q,{'coordinator':_0x190132});case h[_0x27a514(0x119)]:return l['jsx'](X,{'coordinator':_0x190132});case h[_0x27a514(0xc5)]:return l[_0x27a514(0x150)](te,{});case h[_0x27a514(0xbe)]:return l[_0x27a514(0x150)](ee,{'coordinator':_0x190132});default:return null;}}function z(_0x2e2699){var _0x28820d=_0x4b9391;const {coordinator:_0x936a35}=_0x2e2699;return l[_0x28820d(0x190)](l[_0x28820d(0xfc)],{'children':[l[_0x28820d(0x150)](_0x28820d(0xd0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28820d(0xc2)}),l['jsx'](g[_0x28820d(0x11a)],{'onClick':()=>_0x936a35['tryStartPresenting'](),'children':_0x28820d(0x130)})]});}function Q(_0x2f3239){var _0x28dd32=_0x4b9391;const {coordinator:_0x5f41c6}=_0x2f3239;return l['jsxs'](l['Fragment'],{'children':[l[_0x28dd32(0x150)](_0x28dd32(0xd0),{'className':_0x28dd32(0x126),'children':_0x28dd32(0x191)}),l[_0x28dd32(0x150)](g['Button'],{'onClick':()=>_0x5f41c6[_0x28dd32(0x188)](),'children':_0x28dd32(0x10a)})]});}function X(_0xe75817){var _0x5e42ba=_0x4b9391;const {coordinator:_0x1e7719}=_0xe75817;return l[_0x5e42ba(0x190)](l[_0x5e42ba(0xfc)],{'children':[l[_0x5e42ba(0x150)](_0x5e42ba(0xd0),{'className':_0x5e42ba(0x126),'children':_0x5e42ba(0x11b)}),l[_0x5e42ba(0x150)](g[_0x5e42ba(0x11a)],{'variant':_0x5e42ba(0xcd),'onClick':()=>_0x1e7719['startFollowing'](),'children':_0x5e42ba(0xd3)})]});}function _0x17e1(){var _0x328d85=['colorChannel1','IUniverInstanceService','event$','forwardRef','LIVESHARE_REQUEST_HOST','1675473xIvAkM','DisposableCollection','unsubscribe','tag','touchDependencies','live-share.config','pipe','useState','9MBkPOi','IUIPartsService','HEADER_MENU','_stopFollowing','12606384FQEpyq','toDisposable','_liveShareService','presenting','_handleTerminate','_status$','symbol','getOwnPropertyDescriptor','UniverIcon','Fragment','useObservable','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','_handleNewHost','getLiveShareCoordinator','UniverLiveSharePlugin','_handleOffline','executeCommand','button','7tdQpeQ','createElement','_presenter','_status','Stop\x20following','CollaborationSessionService','mutations','NEW_CHANGESETS','pluginName','stopPresenting','LIVESHARE_TERMINATE','LiveShareController','map','indexOf','throttleTime','_injector','_unitID','trim','_fetchOperations','NOT_FOLLOWING','Button','You\x27re\x20not\x20following\x20the\x20presenter','params','Module','Plugin','LiveShare','propertyIsEnumerable','getUnitId','idle','getTypeOfUnitAdded$','registerDependencies','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','following','parseProtocolChangeset','sheet','substring','UNIVER_SHEET','registerComponent','LIVESHARE_FETCH_OPERATIONS','type','DesktopLiveShareController','Start','dispose','shouldShareOperation','LIVESHARE_OPERATION','useRef','_collabSessionService','then','BehaviorSubject','offline','LiveShareCoordinator','random','_univerInstanceService','url(#$1','_init','_entities','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/core','_handleOnline','Subject','className','_mountLiveShare','getCurrentTypeOfUnit$','string','UniverCollaborationClientPlugin','42770ydvneA','144570gmRIWq','not-following','startFollowing','has','_uiPartsService','disposeWithMe','jsx','Inject','current','SetScrollOperation','displayName','values','IConfigService','attrs','LiveShareIcon','idSuffix','use','init','_handleOperation','xlink:href','evenodd','currentColor','fill','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','UniverInstanceType','BuiltInUIPart','get','@univerjs/ui','_sharedOperations','merge','connectInjector','_handleNewChangeSets','delete','hasOwnProperty','8295726VqMXIT','_collabSession','univer-size-4','complete','LiveShareStatus','children','CollaborationEvent','react/jsx-runtime','stringify','assign','default','You\x27re\x20presenting\x20the\x20document','_configService','send','_reporters','ICommandService','sessionStatus$','OPERATION','tryStartPresenting','rxjs','FOLLOWING','@univerjs/sheets-ui','next','Injector','requireSession','Stop\x20presenting','_startPresenting','SessionStatus','stopFollowing','LiveShareService','reverse','add','toString','includes','mergeOverrideWithDependencies','5292NDcMFR','jsxs','You\x27re\x20following\x20the\x20presenter','1em','SetWorksheetActiveOperation','getConfig','apply','getOwnPropertySymbols','@univerjs/design','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','SetZoomRatioOperation','useEffect','_beIdle','prototype','univerjs-icon\x20univerjs-icon-','call','data','function','presenter','set','IDLE','44cXGKLZ','find','forEach','_startFollowing','PRESENTING','rxjs/operators','_commandService','subscribe','Present\x20this\x20document','RxDisposable','getInitialStates','OFFLINE','length','onStarting','useDependency','getMemberID','Disposable','_config','override','text','getValue','mask','div','_commandDisposable','extend','Start\x20following','react','concat','1628eBUnOX','_stopPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','unitId','6008418WoEqoV','defs','takeUntil','path','end','_startLiveShareCoordinator','toStringTag','onRendered'];_0x17e1=function(){return _0x328d85;};return _0x17e1();}function ee(_0x5990be){var _0x19d708=_0x4b9391;const {coordinator:_0xf2da95}=_0x5990be;return l['jsxs'](l[_0x19d708(0xfc)],{'children':[l[_0x19d708(0x150)](_0x19d708(0xd0),{'className':_0x19d708(0x126),'children':_0x19d708(0x177)}),l[_0x19d708(0x150)](g[_0x19d708(0x11a)],{'variant':_0x19d708(0x176),'onClick':()=>_0xf2da95[_0x19d708(0x10f)](),'children':_0x19d708(0x185)})]});}function te(){var _0x3924d8=_0x4b9391;return l[_0x3924d8(0x150)](l[_0x3924d8(0xfc)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x4b9391(0xfa)],ne=(_0x157746,_0x5064d5,_0x38bd8c,_0x1bcdb0)=>{var _0x243c92=_0x4b9391;for(var _0x5c2475=_0x1bcdb0>0x1?void 0x0:_0x1bcdb0?ie(_0x5064d5,_0x38bd8c):_0x5064d5,_0x5d49f7=_0x157746[_0x243c92(0xc6)]-0x1,_0x5bf8c6;_0x5d49f7>=0x0;_0x5d49f7--)(_0x5bf8c6=_0x157746[_0x5d49f7])&&(_0x5c2475=_0x5bf8c6(_0x5c2475)||_0x5c2475);return _0x5c2475;},L=(_0xc3f961,_0x21bf3d)=>(_0x5f50c1,_0x4d2bf8)=>_0x21bf3d(_0x5f50c1,_0x4d2bf8,_0xc3f961);exports[_0x4b9391(0x12f)]=class extends o[_0x4b9391(0xca)]{constructor(_0x2e0bec,_0x338168){var _0x38619a=_0x4b9391;super(),this[_0x38619a(0x115)]=_0x2e0bec,this['_uiPartsService']=_0x338168,this[_0x38619a(0x145)]();}['_mountLiveShare'](){var _0x191de8=_0x4b9391;this[_0x191de8(0x14f)](this[_0x191de8(0x14e)][_0x191de8(0x12c)](p[_0x191de8(0x163)][_0x191de8(0xf1)],()=>p[_0x191de8(0x168)](A,this[_0x191de8(0x115)])));}},exports[_0x4b9391(0x12f)]=ne([L(0x0,o[_0x4b9391(0x151)](o[_0x4b9391(0x183)])),L(0x1,p[_0x4b9391(0xf0)])],exports[_0x4b9391(0x12f)]);var re=Object['defineProperty'],se=Object[_0x4b9391(0xfa)],oe=(_0x1673ac,_0x19a34b,_0x5275cf)=>_0x19a34b in _0x1673ac?re(_0x1673ac,_0x19a34b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5275cf}):_0x1673ac[_0x19a34b]=_0x5275cf,ae=(_0x14947d,_0x8c5b93,_0x5f0ee2,_0x179f66)=>{var _0x1149ea=_0x4b9391;for(var _0x16bac3=_0x179f66>0x1?void 0x0:_0x179f66?se(_0x8c5b93,_0x5f0ee2):_0x8c5b93,_0x1b9b8f=_0x14947d[_0x1149ea(0xc6)]-0x1,_0x49e8c2;_0x1b9b8f>=0x0;_0x1b9b8f--)(_0x49e8c2=_0x14947d[_0x1b9b8f])&&(_0x16bac3=_0x49e8c2(_0x16bac3)||_0x16bac3);return _0x16bac3;},N=(_0x4e3de2,_0x2e61fe)=>(_0x637a39,_0x5910e6)=>_0x2e61fe(_0x637a39,_0x5910e6,_0x4e3de2),T=(_0x12a563,_0x23a540,_0x19e120)=>oe(_0x12a563,typeof _0x23a540!=_0x4b9391(0xf9)?_0x23a540+'':_0x23a540,_0x19e120);const le=_0x4b9391(0x140);exports[_0x4b9391(0x102)]=class extends o[_0x4b9391(0x11e)]{constructor(_0x430069=x,_0x3ac7a8,_0x58e0e6){var _0x4591b1=_0x4b9391;super(),this[_0x4591b1(0xcb)]=_0x430069,this[_0x4591b1(0x115)]=_0x3ac7a8,this[_0x4591b1(0x178)]=_0x58e0e6;const {..._0x55c354}=o[_0x4591b1(0x167)]({},x,this['_config']);this[_0x4591b1(0x178)]['setConfig']($,_0x55c354);}[_0x4b9391(0xc7)](){var _0x442166=_0x4b9391;o[_0x442166(0x124)](this['_injector'],o[_0x442166(0x18e)]([[O],[exports['LiveShareController']],[E],[exports[_0x442166(0x12f)]]],this[_0x442166(0xcb)][_0x442166(0xcc)])),o[_0x442166(0xeb)](this[_0x442166(0x115)],[[E]]);}[_0x4b9391(0xe1)](){var _0x5af5ff=_0x4b9391;o[_0x5af5ff(0xeb)](this['_injector'],[[exports[_0x5af5ff(0x12f)]]]);}},T(exports[_0x4b9391(0x102)],_0x4b9391(0x12e),o[_0x4b9391(0x162)]['UNIVER_UNKNOWN']),T(exports[_0x4b9391(0x102)],_0x4b9391(0x10e),le),exports[_0x4b9391(0x102)]=ae([o['DependentOn'](m[_0x4b9391(0x148)]),N(0x1,o['Inject'](o[_0x4b9391(0x183)])),N(0x2,o[_0x4b9391(0x156)])],exports[_0x4b9391(0x102)]),exports[_0x4b9391(0x11f)]=A,exports[_0x4b9391(0x189)]=O,exports[_0x4b9391(0x170)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2a25(){var _0x46b7f3=['stopPresenting','LIVESHARE_TERMINATE','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','_uiPartsService','Start','registerComponent','requireSession','_handleOffline','_presenter','SAME_OPERATION_SHARE_INTERVAL','div','startFollowing','FOLLOWING','getUnitId','override','url(#$1','idle','presenting','none','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','add','current','ONLINE','values','init','69yQYksb','_fetchOperations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','next','You\x27re\x20presenting\x20the\x20document','length','_init','default','icon','2088066OauqEM','sheet','fill','Stop\x20presenting','pipe','_entities','_stopFollowing','_reporters','NOT_FOLLOWING','defs','You\x27are\x20offline.','onCommandExecuted','http://www.w3.org/2000/svg','_unitID','offline','registerSharedOperation','getOwnPropertySymbols','_injector','map','defineProperty','type','PRESENTING','symbol','call','_handleNewChangeSets','getValue','1881eaUBjm','_commandDisposable','_univerInstanceService','stringify','_handleOnline','tryStartPresenting','substring','onStarting','HEADER_MENU','live-share.config','UNIVER_SHEET','status$','send','1336796DKtIoI','displayName','apply','_collabSessionService','LiveShareIcon','_status$','UniverIcon','11870tywXKE','_commandService','_stopPresenting','propertyIsEnumerable','getOwnPropertyDescriptor','evenodd','get','_collabSession','_configService','children','pluginName','univerjs-icon\x20univerjs-icon-','7bMEqaZ','string','function','data','path','_startPresenting','attrs','random','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','_liveShareService','clear','end','getInitialStates','_startLiveShareCoordinator','unsubscribe','entries','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','button','following','0\x200\x2017\x2017','className','OFFLINE','has','27872eTocXn','forEach','34412484SHkXKw','executeCommand','mutations','mask','getMemberID','operations','toString','concat','defIds','currentColor','indexOf','NEW_CHANGESETS','then','params','complete','xlink:href','_status','univer-size-4','disposeWithMe','getLiveShareCoordinator','tag','3348XEsxHr','asObservable','set','dispose','from','unitId','svg','stopFollowing','IDLE','setConfig','_startFollowing','live-share-icon','createInstance','onRendered','shouldShareOperation','extend','OPERATION','LIVESHARE_NEW_HOST','registerInitialStateReporter','_mountLiveShare','1059963fxqAjU','_sharedOperations','_config','hasOwnProperty','subscribe','replace','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','event$','not-following','130588fXkwde','_handleNewHost','_handleTerminate','prototype','parse','assign','colorChannel1','Stop\x20following','1em','_handleOperation','Present\x20this\x20document','20OPaEhV','idSuffix'];_0x2a25=function(){return _0x46b7f3;};return _0x2a25();}var _0xa90c6d=_0x2bf6;(function(_0x4196d4,_0x314d1d){var _0xf2b70=_0x2bf6,_0x22b254=_0x4196d4();while(!![]){try{var _0x4a22ae=-parseInt(_0xf2b70(0x198))/0x1+-parseInt(_0xf2b70(0x1a1))/0x2*(-parseInt(_0xf2b70(0x1c9))/0x3)+parseInt(_0xf2b70(0x142))/0x4*(parseInt(_0xf2b70(0x1ac))/0x5)+parseInt(_0xf2b70(0x1d3))/0x6*(parseInt(_0xf2b70(0x155))/0x7)+parseInt(_0xf2b70(0x16d))/0x8*(parseInt(_0xf2b70(0x184))/0x9)+-parseInt(_0xf2b70(0x149))/0xa*(-parseInt(_0xf2b70(0x1ed))/0xb)+-parseInt(_0xf2b70(0x16f))/0xc;if(_0x4a22ae===_0x314d1d)break;else _0x22b254['push'](_0x22b254['shift']());}catch(_0x18f367){_0x22b254['push'](_0x22b254['shift']());}}}(_0x2a25,0xb90a4));var q=Object[_0xa90c6d(0x1e6)],z=(_0x563555,_0x4c198,_0x1be1ba)=>_0x4c198 in _0x563555?q(_0x563555,_0x4c198,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1be1ba}):_0x563555[_0x4c198]=_0x1be1ba,d=(_0x4cf0e3,_0x5d40eb,_0x5142b8)=>z(_0x4cf0e3,typeof _0x5d40eb!=_0xa90c6d(0x1e9)?_0x5d40eb+'':_0x5d40eb,_0x5142b8);import{CollaborationSessionService as _0x53a076,SessionStatus as _0x398ba3,UniverCollaborationClientPlugin as _0x1942db}from'@univerjs-pro/collaboration-client';import{Disposable as _0x32b72d,toDisposable as _0x10e967,Inject as _0x4fee81,IUniverInstanceService as _0x2077bd,Injector as _0x36d884,IConfigService as _0x2c3bd8,ICommandService as _0x3f70ed,RxDisposable as _0x440f57,UniverInstanceType as _0xb60534,DisposableCollection as _0x4a8d27,CommandType as _0xb22e4,DependentOn as _0x3448f0,Plugin as _0x4cc6bc,merge as _0xec7fba,registerDependencies as _0x2e0b50,mergeOverrideWithDependencies as _0x48d5c6,touchDependencies as _0x3df283}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x31c97b,InsertSheetMutation as _0x240813}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2837c7,SetScrollOperation as _0x5850d0}from'@univerjs/sheets-ui';import{useDependency as _0xb5df3,useObservable as _0x1b95c7,IUIPartsService as _0x5d78b2,BuiltInUIPart as _0x34eb2b,connectInjector as _0x529405}from'@univerjs/ui';import{jsx as _0x16d1ae,jsxs as _0x293b98,Fragment as _0x261c50}from'react/jsx-runtime';import{Dropdown as _0x15ccc4,clsx as _0x434840,Button as _0xeeec48}from'@univerjs/design';import{forwardRef as _0x27cf43,useRef as _0x15de42,createElement as _0x59e572,useState as _0x14a6b0,useEffect as _0x5d18ba}from'react';import{CollaborationEvent as _0x16cbd6,parseProtocolChangeset as _0x212d51}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2e884a,Subject as _0x2d918b}from'rxjs';import{takeUntil as _0x3417f9,throttleTime as _0x4e02d5}from'rxjs/operators';const Oe=_0xa90c6d(0x13e),T={};class L extends _0x32b72d{constructor(){var _0x49f784=_0xa90c6d;super(...arguments),d(this,_0x49f784(0x199),new Set()),d(this,_0x49f784(0x1da),new Set());}[_0xa90c6d(0x1e2)](_0x4dcba4){var _0x1a5ec3=_0xa90c6d;return this['_sharedOperations'][_0x1a5ec3(0x1c4)](_0x4dcba4),_0x10e967(()=>this['_sharedOperations']['delete'](_0x4dcba4));}[_0xa90c6d(0x196)](_0x3bfb83){var _0x3b6397=_0xa90c6d;return this[_0x3b6397(0x1da)]['add'](_0x3bfb83),_0x10e967(()=>this['_reporters']['delete'](_0x3bfb83));}['shouldShareOperation'](_0x455f96){var _0x254e22=_0xa90c6d;return this[_0x254e22(0x199)][_0x254e22(0x16c)](_0x455f96);}[_0xa90c6d(0x162)](_0xb42ee2){var _0x5b6064=_0xa90c6d;return Array[_0x5b6064(0x188)](this[_0x5b6064(0x1da)])[_0x5b6064(0x1e5)](_0x5f0269=>_0x5f0269(_0xb42ee2));}}var Ee=Object[_0xa90c6d(0x14d)],we=(_0x33d9cd,_0xfccdfd,_0x35c97b,_0x5ad284)=>{var _0x663e35=_0xa90c6d;for(var _0x2efa47=_0x5ad284>0x1?void 0x0:_0x5ad284?Ee(_0xfccdfd,_0x35c97b):_0xfccdfd,_0x17f069=_0x33d9cd[_0x663e35(0x1cf)]-0x1,_0x6a9233;_0x17f069>=0x0;_0x17f069--)(_0x6a9233=_0x33d9cd[_0x17f069])&&(_0x2efa47=_0x6a9233(_0x2efa47)||_0x2efa47);return _0x2efa47;},Ne=(_0x544d84,_0x29f382)=>(_0xc09004,_0x152b6)=>_0x29f382(_0xc09004,_0x152b6,_0x544d84);let m=class extends _0x32b72d{constructor(_0x5e587b){var _0x2c91b3=_0xa90c6d;super(),this[_0x2c91b3(0x15f)]=_0x5e587b,this['_init']();}['_init'](){var _0x5a0902=_0xa90c6d;[_0x2837c7['id'],_0x5850d0['id'],_0x31c97b['id']][_0x5a0902(0x16e)](_0x1d0596=>{var _0x49f7df=_0x5a0902;this['disposeWithMe'](this[_0x49f7df(0x15f)][_0x49f7df(0x1e2)](_0x1d0596));});}};m=we([Ne(0x0,_0x4fee81(L))],m);var c=function(){var _0x376b11=_0xa90c6d;return c=Object[_0x376b11(0x1a6)]||function(_0x3dc585){var _0x3228d5=_0x376b11;for(var _0x486c60,_0x5a7304=0x1,_0x26bfe1=arguments['length'];_0x5a7304<_0x26bfe1;_0x5a7304++){_0x486c60=arguments[_0x5a7304];for(var _0x8d1401 in _0x486c60)Object[_0x3228d5(0x1a4)][_0x3228d5(0x19b)][_0x3228d5(0x1ea)](_0x486c60,_0x8d1401)&&(_0x3dc585[_0x8d1401]=_0x486c60[_0x8d1401]);}return _0x3dc585;},c[_0x376b11(0x144)](this,arguments);},Ce=function(_0x380d0a,_0x224a03){var _0x135b7f=_0xa90c6d,_0x3e7095={};for(var _0x5658d8 in _0x380d0a)Object[_0x135b7f(0x1a4)][_0x135b7f(0x19b)][_0x135b7f(0x1ea)](_0x380d0a,_0x5658d8)&&_0x224a03[_0x135b7f(0x179)](_0x5658d8)<0x0&&(_0x3e7095[_0x5658d8]=_0x380d0a[_0x5658d8]);if(_0x380d0a!=null&&typeof Object[_0x135b7f(0x1e3)]==_0x135b7f(0x157)){for(var _0x508855=0x0,_0x5658d8=Object[_0x135b7f(0x1e3)](_0x380d0a);_0x508855<_0x5658d8['length'];_0x508855++)_0x224a03[_0x135b7f(0x179)](_0x5658d8[_0x508855])<0x0&&Object[_0x135b7f(0x1a4)][_0x135b7f(0x14c)][_0x135b7f(0x1ea)](_0x380d0a,_0x5658d8[_0x508855])&&(_0x3e7095[_0x5658d8[_0x508855]]=_0x380d0a[_0x5658d8[_0x508855]]);}return _0x3e7095;},W=_0x27cf43(function(_0x427392,_0x641edd){var _0x54e547=_0xa90c6d,_0x16368a=_0x427392[_0x54e547(0x1d2)],_0xda3c42=_0x427392['id'],_0x151ef4=_0x427392['className'],_0x4833b9=_0x427392[_0x54e547(0x193)],_0x5b60b1=Ce(_0x427392,[_0x54e547(0x1d2),'id',_0x54e547(0x16a),'extend']),_0x37861a=_0x54e547(0x154)['concat'](_0xda3c42,'\x20')[_0x54e547(0x176)](_0x151ef4||'')['trim'](),_0x3ccee0=_0x15de42('_'[_0x54e547(0x176)](Le()));return Y(_0x16368a,''['concat'](_0xda3c42),{'defIds':_0x16368a[_0x54e547(0x177)],'idSuffix':_0x3ccee0[_0x54e547(0x1c5)]},c({'ref':_0x641edd,'className':_0x37861a},_0x5b60b1),_0x4833b9);});function Y(_0x256313,_0x768a62,_0xd44fc7,_0x4759e4,_0x3e41d3){var _0x3306a2=_0xa90c6d;return _0x59e572(_0x256313[_0x3306a2(0x183)],c(c({'key':_0x768a62},De(_0x256313,_0xd44fc7,_0x3e41d3)),_0x4759e4),(xe(_0x256313,_0xd44fc7)[_0x3306a2(0x152)]||[])[_0x3306a2(0x1e5)](function(_0x13bd70,_0x2ae32a){var _0x180b51=_0x3306a2;return Y(_0x13bd70,''[_0x180b51(0x176)](_0x768a62,'-')[_0x180b51(0x176)](_0x256313[_0x180b51(0x183)],'-')[_0x180b51(0x176)](_0x2ae32a),_0xd44fc7,void 0x0,_0x3e41d3);}));}function De(_0x4eddf8,_0x3fb2f8,_0x219529){var _0x48b751=_0xa90c6d,_0x11dde8=c({},_0x4eddf8[_0x48b751(0x15b)]);_0x219529!=null&&_0x219529[_0x48b751(0x1a7)]&&_0x11dde8[_0x48b751(0x1d5)]==='colorChannel1'&&(_0x11dde8[_0x48b751(0x1d5)]=_0x219529[_0x48b751(0x1a7)]),_0x4eddf8[_0x48b751(0x183)]===_0x48b751(0x172)&&_0x11dde8['id']&&(_0x11dde8['id']=_0x11dde8['id']+_0x3fb2f8[_0x48b751(0x1ad)]),Object[_0x48b751(0x165)](_0x11dde8)[_0x48b751(0x16e)](function(_0x25f878){var _0x2ad39c=_0x48b751,_0x379771=_0x25f878[0x0],_0x2d98a0=_0x25f878[0x1];_0x379771===_0x2ad39c(0x172)&&typeof _0x2d98a0==_0x2ad39c(0x156)&&(_0x11dde8[_0x379771]=_0x2d98a0[_0x2ad39c(0x19d)](/url\(#(.*)\)/,_0x2ad39c(0x1bf)[_0x2ad39c(0x176)](_0x3fb2f8[_0x2ad39c(0x1ad)],')')));});var _0x47dbe5=_0x3fb2f8[_0x48b751(0x177)];return!_0x47dbe5||_0x47dbe5[_0x48b751(0x1cf)]===0x0||(_0x4eddf8[_0x48b751(0x183)]==='use'&&_0x11dde8[_0x48b751(0x17e)]&&(_0x11dde8[_0x48b751(0x17e)]=_0x11dde8[_0x48b751(0x17e)]+_0x3fb2f8[_0x48b751(0x1ad)]),Object[_0x48b751(0x165)](_0x11dde8)[_0x48b751(0x16e)](function(_0x397519){var _0x225fca=_0x48b751,_0x43df4e=_0x397519[0x0],_0x571446=_0x397519[0x1];typeof _0x571446==_0x225fca(0x156)&&(_0x11dde8[_0x43df4e]=_0x571446[_0x225fca(0x19d)](/url\(#(.*)\)/,_0x225fca(0x1bf)[_0x225fca(0x176)](_0x3fb2f8[_0x225fca(0x1ad)],')')));})),_0x11dde8;}function xe(_0x146f04,_0x397df6){var _0x98c736=_0xa90c6d,_0x2c7875,_0x4282d3=_0x397df6['defIds'];return!_0x4282d3||_0x4282d3[_0x98c736(0x1cf)]===0x0?_0x146f04:_0x146f04[_0x98c736(0x183)]===_0x98c736(0x1dc)&&(!((_0x2c7875=_0x146f04['children'])===null||_0x2c7875===void 0x0)&&_0x2c7875[_0x98c736(0x1cf)])?c(c({},_0x146f04),{'children':_0x146f04[_0x98c736(0x152)][_0x98c736(0x1e5)](function(_0x286392){var _0x1c7a7f=_0x98c736;return typeof _0x286392['attrs']['id']=='string'&&_0x4282d3&&_0x4282d3['includes'](_0x286392[_0x1c7a7f(0x15b)]['id'])?c(c({},_0x286392),{'attrs':c(c({},_0x286392[_0x1c7a7f(0x15b)]),{'id':_0x286392[_0x1c7a7f(0x15b)]['id']+_0x397df6[_0x1c7a7f(0x1ad)]})}):_0x286392;})}):_0x146f04;}function _0x2bf6(_0x20984c,_0x35c9ac){var _0x2a254a=_0x2a25();return _0x2bf6=function(_0x2bf684,_0x505d61){_0x2bf684=_0x2bf684-0x13b;var _0x35777a=_0x2a254a[_0x2bf684];return _0x35777a;},_0x2bf6(_0x20984c,_0x35c9ac);}function Le(){var _0x127eea=_0xa90c6d;return Math[_0x127eea(0x15c)]()[_0x127eea(0x175)](0x24)[_0x127eea(0x13b)](0x2,0x8);}W[_0xa90c6d(0x143)]=_0xa90c6d(0x148);var ye={'tag':_0xa90c6d(0x18a),'attrs':{'xmlns':_0xa90c6d(0x1df),'fill':_0xa90c6d(0x1c2),'viewBox':_0xa90c6d(0x169),'width':_0xa90c6d(0x1a9),'height':_0xa90c6d(0x1a9)},'children':[{'tag':'path','attrs':{'fill':_0xa90c6d(0x178),'d':_0xa90c6d(0x166)}},{'tag':_0xa90c6d(0x159),'attrs':{'fill':_0xa90c6d(0x178),'d':_0xa90c6d(0x19e),'fillRule':_0xa90c6d(0x14e),'clipRule':_0xa90c6d(0x14e)}}]},B=_0x27cf43(function(_0x19af44,_0x5d7ba6){var _0x3d66f2=_0xa90c6d;return _0x59e572(W,Object[_0x3d66f2(0x1a6)]({},_0x19af44,{'id':_0x3d66f2(0x18f),'ref':_0x5d7ba6,'icon':ye}));});B[_0xa90c6d(0x143)]=_0xa90c6d(0x146);var Re=Object[_0xa90c6d(0x14d)],Z=(_0x54b4df,_0xce7bf9,_0x357dd3,_0x1c0a9a)=>{var _0x2d684f=_0xa90c6d;for(var _0x32b1b9=_0x1c0a9a>0x1?void 0x0:_0x1c0a9a?Re(_0xce7bf9,_0x357dd3):_0xce7bf9,_0xcd7d69=_0x54b4df[_0x2d684f(0x1cf)]-0x1,_0x1b2a2e;_0xcd7d69>=0x0;_0xcd7d69--)(_0x1b2a2e=_0x54b4df[_0xcd7d69])&&(_0x32b1b9=_0x1b2a2e(_0x32b1b9)||_0x32b1b9);return _0x32b1b9;},f=(_0x5c24ab,_0x1f3f61)=>(_0x333684,_0x3bd924)=>_0x1f3f61(_0x333684,_0x3bd924,_0x5c24ab);let I=class extends _0x440f57{constructor(_0x1d1a44,_0x4b5f35,_0x448669){var _0x424c9b=_0xa90c6d;super(),d(this,_0x424c9b(0x1d8),new Map()),(this[_0x424c9b(0x1ef)]=_0x1d1a44,this['_injector']=_0x4b5f35,this[_0x424c9b(0x145)]=_0x448669,this[_0x424c9b(0x1d0)]());}async['getLiveShareCoordinator'](_0x2fec68){var _0xb76540=_0xa90c6d;return this['_entities'][_0xb76540(0x16c)](_0x2fec68)||await this['_startLiveShareCoordinator'](_0x2fec68),this[_0xb76540(0x1d8)][_0xb76540(0x14f)](_0x2fec68);}[_0xa90c6d(0x1d0)](){var _0x4f0282=_0xa90c6d;this[_0x4f0282(0x1ef)][_0x4f0282(0x1b2)](_0xb60534[_0x4f0282(0x13f)])[_0x4f0282(0x1d7)](_0x3417f9(this[_0x4f0282(0x1cc)]))[_0x4f0282(0x19c)](async _0x527964=>{var _0x372263=_0x4f0282;const _0xe3b85e=_0x527964[_0x372263(0x1bd)]();this[_0x372263(0x1d8)][_0x372263(0x16c)](_0xe3b85e)||this[_0x372263(0x163)](_0xe3b85e);}),this[_0x4f0282(0x1ef)][_0x4f0282(0x15e)](_0xb60534[_0x4f0282(0x13f)])['pipe'](_0x3417f9(this['dispose$']))['subscribe'](_0x3de9c8=>{var _0x291ecb=_0x4f0282;const _0x5f0d19=_0x3de9c8['getUnitId'](),_0x3bd099=this[_0x291ecb(0x1d8)][_0x291ecb(0x14f)](_0x5f0d19);_0x3bd099==null||_0x3bd099[_0x291ecb(0x187)]();});}async[_0xa90c6d(0x163)](_0x5e9968){var _0x26a113=_0xa90c6d;const _0x20442c=await this[_0x26a113(0x145)][_0x26a113(0x1b6)](_0x5e9968),_0x149a38=this[_0x26a113(0x1e4)][_0x26a113(0x190)](C,_0x5e9968,_0x20442c);return _0x149a38[_0x26a113(0x1c8)](),this[_0x26a113(0x1d8)][_0x26a113(0x186)](_0x5e9968,_0x149a38),_0x149a38;}};I=Z([f(0x0,_0x2077bd),f(0x1,_0x4fee81(_0x36d884)),f(0x2,_0x4fee81(_0x53a076))],I);var h=(_0x36c09f=>(_0x36c09f[_0xa90c6d(0x16b)]=_0xa90c6d(0x1e1),_0x36c09f['IDLE']=_0xa90c6d(0x1c0),_0x36c09f['FOLLOWING']=_0xa90c6d(0x168),_0x36c09f[_0xa90c6d(0x1db)]=_0xa90c6d(0x1a0),_0x36c09f[_0xa90c6d(0x1e8)]=_0xa90c6d(0x1c1),_0x36c09f))(h||{});const Pe=_0xa90c6d(0x1b9),Ae=0xc8;let C=class extends _0x440f57{constructor(_0x4fa180,_0x1d40f4,_0x5f99d7,_0x170949,_0x3811c2){var _0x2bb825=_0xa90c6d;super(),d(this,_0x2bb825(0x147),new _0x2e884a('idle')),d(this,'status$',this[_0x2bb825(0x147)][_0x2bb825(0x185)]()),d(this,_0x2bb825(0x1d0),!0x1),d(this,_0x2bb825(0x1ee),null),d(this,_0x2bb825(0x1b8),null),(this[_0x2bb825(0x1e0)]=_0x4fa180,this[_0x2bb825(0x150)]=_0x1d40f4,this[_0x2bb825(0x151)]=_0x5f99d7,this[_0x2bb825(0x15f)]=_0x170949,this[_0x2bb825(0x14a)]=_0x3811c2);}get[_0xa90c6d(0x17f)](){var _0x16e468=_0xa90c6d;return this['_status$'][_0x16e468(0x1ec)]();}[_0xa90c6d(0x187)](){var _0x4502f2=_0xa90c6d,_0x412380;(_0x412380=this['_commandDisposable'])==null||_0x412380[_0x4502f2(0x187)](),this[_0x4502f2(0x147)][_0x4502f2(0x1cd)](_0x4502f2(0x1c0)),this[_0x4502f2(0x147)][_0x4502f2(0x17d)]();}[_0xa90c6d(0x1c8)](){var _0x36a34f=_0xa90c6d;this[_0x36a34f(0x1d0)]||(this[_0x36a34f(0x1d0)]=!0x0,this[_0x36a34f(0x150)]['sessionStatus$'][_0x36a34f(0x1d7)](_0x3417f9(this[_0x36a34f(0x1cc)]))[_0x36a34f(0x19c)](_0x4d2045=>{var _0x22fe12=_0x36a34f;switch(_0x4d2045){case _0x398ba3['OFFLINE']:this['_handleOffline']();break;case _0x398ba3[_0x22fe12(0x1c6)]:this['_handleOnline']();break;}}),this[_0x36a34f(0x150)][_0x36a34f(0x19f)][_0x36a34f(0x1d7)](_0x3417f9(this[_0x36a34f(0x1cc)]))[_0x36a34f(0x19c)](_0x51cb17=>{var _0x3b78fe=_0x36a34f;const {eventID:_0xfecf42}=_0x51cb17;switch(_0xfecf42){case _0x16cbd6[_0x3b78fe(0x195)]:this[_0x3b78fe(0x1a2)](_0x51cb17);break;case _0x16cbd6['LIVESHARE_OPERATION']:this['_handleOperation'](_0x51cb17);break;case _0x16cbd6[_0x3b78fe(0x1af)]:this['_handleTerminate']();break;case _0x16cbd6[_0x3b78fe(0x17a)]:this[_0x3b78fe(0x1eb)](_0x51cb17);break;}}));}[_0xa90c6d(0x1f2)](){var _0x55a4bf=_0xa90c6d;this[_0x55a4bf(0x150)][_0x55a4bf(0x141)]({'eventID':_0x16cbd6['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x55a4bf(0x1e0)],'userID':this['_collabSession'][_0x55a4bf(0x173)]()}},this['_unitID']);}[_0xa90c6d(0x1ae)](){var _0x314ef0=_0xa90c6d;this['_status']===_0x314ef0(0x1c1)&&(this[_0x314ef0(0x147)][_0x314ef0(0x1cd)](_0x314ef0(0x1c0)),this[_0x314ef0(0x150)][_0x314ef0(0x141)]({'eventID':_0x16cbd6[_0x314ef0(0x1af)],'data':{'unitID':this[_0x314ef0(0x1e0)]}},this[_0x314ef0(0x1e0)]));}[_0xa90c6d(0x1bb)](){var _0x1e4916=_0xa90c6d;this['_status']===_0x1e4916(0x1a0)&&(this[_0x1e4916(0x147)][_0x1e4916(0x1cd)](_0x1e4916(0x168)),this[_0x1e4916(0x18e)]());}['stopFollowing'](){var _0x303970=_0xa90c6d;this[_0x303970(0x17f)]===_0x303970(0x168)&&this[_0x303970(0x1d9)]();}[_0xa90c6d(0x1a2)](_0x31ea0a){var _0x5098fc=_0xa90c6d;const {presenter:_0x16f92f}=_0x31ea0a['data'],_0x3e2034=this['_collabSession'][_0x5098fc(0x173)]();this[_0x5098fc(0x1b8)]=_0x16f92f,_0x16f92f===_0x3e2034?(this[_0x5098fc(0x1d9)](),this[_0x5098fc(0x15a)]()):this[_0x5098fc(0x17f)]!=='not-following'&&(this[_0x5098fc(0x14b)](),this[_0x5098fc(0x18e)]());}[_0xa90c6d(0x1ca)](){var _0x79d2dd=_0xa90c6d;const _0x50a05e={'eventID':_0x16cbd6['LIVESHARE_FETCH_OPERATIONS']};this[_0x79d2dd(0x150)][_0x79d2dd(0x141)](_0x50a05e,this[_0x79d2dd(0x1e0)]);}[_0xa90c6d(0x1a3)](){var _0x3f023a=_0xa90c6d;this[_0x3f023a(0x1b8)]=null,this[_0x3f023a(0x17f)]!=='presenting'&&this[_0x3f023a(0x1b0)]();}['_handleNewChangeSets'](_0x167b34){var _0x45de4a=_0xa90c6d;if(this[_0x45de4a(0x17f)]===_0x45de4a(0x168)&&this['_presenter']===_0x167b34[_0x45de4a(0x158)]['memberID']){const _0x1748d8=_0x212d51(_0x167b34[_0x45de4a(0x158)])[_0x45de4a(0x171)]['reverse']()['find'](_0x18959a=>_0x18959a['id']===_0x240813['id']);if(_0x1748d8){const _0x204ce8=_0x1748d8[_0x45de4a(0x17c)][_0x45de4a(0x189)],_0x270675=_0x1748d8[_0x45de4a(0x17c)][_0x45de4a(0x1d4)]['id'];setTimeout(()=>{var _0x5c2d81=_0x45de4a;this['_commandService'][_0x5c2d81(0x170)](_0x31c97b['id'],{'unitId':_0x204ce8,'subUnitId':_0x270675},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x543f46=_0xa90c6d;this[_0x543f46(0x147)][_0x543f46(0x1cd)](_0x543f46(0x1c1));const _0x5d0751=new Map(),_0x53abef=this[_0x543f46(0x1ee)]=new _0x4a8d27();_0x53abef['add'](_0x10e967(()=>{var _0x2af4cf=_0x543f46;_0x5d0751[_0x2af4cf(0x16e)](_0x19519a=>_0x19519a[_0x2af4cf(0x17d)]()),_0x5d0751[_0x2af4cf(0x160)]();})),_0x53abef[_0x543f46(0x1c4)](this[_0x543f46(0x14a)][_0x543f46(0x1de)](_0x877e05=>{var _0x151268=_0x543f46,_0x5b93f5;if(_0x877e05[_0x151268(0x1e7)]!==_0xb22e4[_0x151268(0x194)]||!this[_0x151268(0x15f)][_0x151268(0x192)](_0x877e05['id']))return;const {id:_0x1b2102}=_0x877e05;let _0xb9ff30;_0x5d0751['has'](_0x1b2102)?_0xb9ff30=_0x5d0751[_0x151268(0x14f)](_0x1b2102):(_0xb9ff30=new _0x2d918b(),_0x5d0751[_0x151268(0x186)](_0x1b2102,_0xb9ff30),_0xb9ff30[_0x151268(0x1d7)](_0x4e02d5((_0x5b93f5=this[_0x151268(0x151)]['getConfig'](Pe))!=null?_0x5b93f5:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x151268(0x19c)](_0x277ad3=>{var _0x40df56=_0x151268;this[_0x40df56(0x150)]['send']({'eventID':_0x16cbd6['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x277ad3['id']]:{'id':_0x277ad3['id'],'params':JSON[_0x40df56(0x1f0)](_0x277ad3[_0x40df56(0x17c)])}}}},this[_0x40df56(0x1e0)]);})),_0xb9ff30[_0x151268(0x1cd)](_0x877e05);})),this['_liveShareService'][_0x543f46(0x162)](this[_0x543f46(0x1e0)])[_0x543f46(0x16e)](_0xd1f34d=>this[_0x543f46(0x150)]['send']({'eventID':_0x16cbd6['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x543f46(0x1e0)],'operations':{[_0xd1f34d['id']]:{'id':_0xd1f34d['id'],'params':JSON[_0x543f46(0x1f0)](_0xd1f34d[_0x543f46(0x17c)])}}}},this[_0x543f46(0x1e0)]));}[_0xa90c6d(0x14b)](){var _0x4ff27f=_0xa90c6d,_0x4b6e7a;this[_0x4ff27f(0x147)][_0x4ff27f(0x1cd)](_0x4ff27f(0x1c0)),(_0x4b6e7a=this[_0x4ff27f(0x1ee)])==null||_0x4b6e7a[_0x4ff27f(0x187)](),this[_0x4ff27f(0x1ee)]=null;}[_0xa90c6d(0x18e)](){var _0x3b472f=_0xa90c6d,_0x1670be;(_0x1670be=this['_commandDisposable'])==null||_0x1670be[_0x3b472f(0x187)](),this[_0x3b472f(0x147)][_0x3b472f(0x1cd)]('following');}[_0xa90c6d(0x1b0)](){var _0x1632bd=_0xa90c6d,_0x18ba1e;this[_0x1632bd(0x147)][_0x1632bd(0x1cd)](_0x1632bd(0x1c0)),(_0x18ba1e=this[_0x1632bd(0x1ee)])==null||_0x18ba1e[_0x1632bd(0x187)](),this[_0x1632bd(0x1ee)]=null;}['_stopFollowing'](){var _0xc0425b=_0xa90c6d,_0x2aef6f;this[_0xc0425b(0x147)][_0xc0425b(0x1cd)](_0xc0425b(0x1a0)),(_0x2aef6f=this['_commandDisposable'])==null||_0x2aef6f[_0xc0425b(0x187)]();}[_0xa90c6d(0x1aa)](_0x5dc96d){var _0x15167e=_0xa90c6d;if([_0x15167e(0x1c1),'not-following',_0x15167e(0x1e1)]['includes'](this['_status'])||!_0x5dc96d[_0x15167e(0x158)]['presenter']||_0x5dc96d[_0x15167e(0x158)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x15167e(0x1c0)&&this[_0x15167e(0x18e)]();const _0x27a29d=_0x5dc96d[_0x15167e(0x158)][_0x15167e(0x174)];Object[_0x15167e(0x1c7)](_0x27a29d)['forEach'](_0x2fde24=>{var _0x5a1b15=_0x15167e;this[_0x5a1b15(0x14a)][_0x5a1b15(0x170)](_0x2fde24['id'],_0x2fde24[_0x5a1b15(0x17c)]?JSON[_0x5a1b15(0x1a5)](_0x2fde24[_0x5a1b15(0x17c)]):null,{'fromCollab':!0x0});});}[_0xa90c6d(0x1b7)](){var _0x197c25=_0xa90c6d,_0x43f30a;this['_status$']['next'](_0x197c25(0x1e1)),(_0x43f30a=this[_0x197c25(0x1ee)])==null||_0x43f30a[_0x197c25(0x187)]();}[_0xa90c6d(0x1f1)](){var _0x2ddd23=_0xa90c6d;this['_status$'][_0x2ddd23(0x1cd)](_0x2ddd23(0x1c0)),this['_fetchOperations']();}};C=Z([f(0x2,_0x2c3bd8),f(0x3,_0x4fee81(L)),f(0x4,_0x3f70ed)],C);function Te(){var _0x460122=_0xa90c6d;const _0x2211b3=_0xb5df3(I),_0x3f6e7a=_0xb5df3(_0x2077bd),_0xadecf6=_0x1b95c7(()=>_0x3f6e7a['getCurrentTypeOfUnit$'](_0xb60534[_0x460122(0x13f)]),void 0x0,!0x1,[]),[_0x46437f,_0x45b518]=_0x14a6b0(null),[_0x120fe7,_0x440ad0]=_0x14a6b0(h[_0x460122(0x18c)]),_0x3882ef=_0x15de42(null);return _0x5d18ba(()=>(_0xadecf6&&_0x2211b3[_0x460122(0x182)](_0xadecf6[_0x460122(0x1bd)]())[_0x460122(0x17b)](_0x16c816=>{var _0xcc83d8=_0x460122;_0x45b518(_0x16c816),_0x3882ef[_0xcc83d8(0x1c5)]=_0x16c816[_0xcc83d8(0x140)]['subscribe'](_0x227c35=>{_0x440ad0(_0x227c35);});}),()=>{var _0x43c985=_0x460122,_0x5d00df;(_0x5d00df=_0x3882ef[_0x43c985(0x1c5)])==null||_0x5d00df[_0x43c985(0x164)](),_0x3882ef[_0x43c985(0x1c5)]=null;}),[_0xadecf6,_0x2211b3]),_0x46437f?_0x16d1ae(_0x15ccc4,{'align':_0x460122(0x161),'disabled':_0x120fe7===h['OFFLINE'],'className':_0x460122(0x1c3),'overlay':_0x16d1ae($e,{'status':_0x120fe7,'coordinator':_0x46437f}),'children':_0x16d1ae(_0x460122(0x167),{'className':_0x434840(_0x460122(0x1cb),{'univer-cursor-not-allowed':_0x120fe7===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x120fe7!==h[_0x460122(0x16b)]}),'type':_0x460122(0x167),'children':_0x16d1ae(B,{'className':_0x460122(0x180)})})}):null;}function $e(_0x90333f){var _0x4d0d41=_0xa90c6d;const {status:_0x40341e,coordinator:_0xc07cda}=_0x90333f;switch(_0x40341e){case h[_0x4d0d41(0x18c)]:return _0x16d1ae(Fe,{'coordinator':_0xc07cda});case h[_0x4d0d41(0x1bc)]:return _0x16d1ae(He,{'coordinator':_0xc07cda});case h[_0x4d0d41(0x1db)]:return _0x16d1ae(je,{'coordinator':_0xc07cda});case h[_0x4d0d41(0x16b)]:return _0x16d1ae(Ve,{});case h[_0x4d0d41(0x1e8)]:return _0x16d1ae(Ue,{'coordinator':_0xc07cda});default:return null;}}function Fe(_0xb5171e){var _0x585f54=_0xa90c6d;const {coordinator:_0x39aa6f}=_0xb5171e;return _0x293b98(_0x261c50,{'children':[_0x16d1ae(_0x585f54(0x1ba),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x585f54(0x1ab)}),_0x16d1ae(_0xeeec48,{'onClick':()=>_0x39aa6f[_0x585f54(0x1f2)](),'children':_0x585f54(0x1b4)})]});}function He(_0x140fe6){var _0x28a767=_0xa90c6d;const {coordinator:_0x3aea35}=_0x140fe6;return _0x293b98(_0x261c50,{'children':[_0x16d1ae(_0x28a767(0x1ba),{'className':_0x28a767(0x1b1),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x16d1ae(_0xeeec48,{'onClick':()=>_0x3aea35[_0x28a767(0x18b)](),'children':_0x28a767(0x1a8)})]});}function je(_0x4106a5){var _0x28f949=_0xa90c6d;const {coordinator:_0x5d59d6}=_0x4106a5;return _0x293b98(_0x261c50,{'children':[_0x16d1ae(_0x28f949(0x1ba),{'className':_0x28f949(0x1b1),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x16d1ae(_0xeeec48,{'variant':'text','onClick':()=>_0x5d59d6[_0x28f949(0x1bb)](),'children':'Start\x20following'})]});}function Ue(_0x8771fe){var _0x3d61ba=_0xa90c6d;const {coordinator:_0x52754f}=_0x8771fe;return _0x293b98(_0x261c50,{'children':[_0x16d1ae(_0x3d61ba(0x1ba),{'className':_0x3d61ba(0x1b1),'children':_0x3d61ba(0x1ce)}),_0x16d1ae(_0xeeec48,{'variant':_0x3d61ba(0x1d1),'onClick':()=>_0x52754f[_0x3d61ba(0x1ae)](),'children':_0x3d61ba(0x1d6)})]});}function Ve(){var _0x3ddf2a=_0xa90c6d;return _0x16d1ae(_0x261c50,{'children':_0x3ddf2a(0x1dd)});}var Me=Object[_0xa90c6d(0x14d)],ke=(_0x18608d,_0x49a464,_0x38af96,_0x3b205e)=>{var _0x47a5cc=_0xa90c6d;for(var _0x1319d0=_0x3b205e>0x1?void 0x0:_0x3b205e?Me(_0x49a464,_0x38af96):_0x49a464,_0x42e199=_0x18608d[_0x47a5cc(0x1cf)]-0x1,_0x306e1c;_0x42e199>=0x0;_0x42e199--)(_0x306e1c=_0x18608d[_0x42e199])&&(_0x1319d0=_0x306e1c(_0x1319d0)||_0x1319d0);return _0x1319d0;},$=(_0x37b8de,_0x46050a)=>(_0x1d5f6e,_0x46e523)=>_0x46050a(_0x1d5f6e,_0x46e523,_0x37b8de);let b=class extends _0x32b72d{constructor(_0x658425,_0x4eb523){var _0x26e9ed=_0xa90c6d;super(),this[_0x26e9ed(0x1e4)]=_0x658425,this[_0x26e9ed(0x1b3)]=_0x4eb523,this[_0x26e9ed(0x197)]();}[_0xa90c6d(0x197)](){var _0xf96cc2=_0xa90c6d;this[_0xf96cc2(0x181)](this[_0xf96cc2(0x1b3)][_0xf96cc2(0x1b5)](_0x34eb2b[_0xf96cc2(0x13d)],()=>_0x529405(Te,this[_0xf96cc2(0x1e4)])));}};b=ke([$(0x0,_0x4fee81(_0x36d884)),$(0x1,_0x5d78b2)],b);var Ge=Object[_0xa90c6d(0x1e6)],We=Object[_0xa90c6d(0x14d)],Ye=(_0x301ded,_0x53767c,_0x58a0b2)=>_0x53767c in _0x301ded?Ge(_0x301ded,_0x53767c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58a0b2}):_0x301ded[_0x53767c]=_0x58a0b2,Be=(_0xcdb8e2,_0x563332,_0x4ab887,_0x18e689)=>{var _0x40cec0=_0xa90c6d;for(var _0x28370f=_0x18e689>0x1?void 0x0:_0x18e689?We(_0x563332,_0x4ab887):_0x563332,_0x2f15e5=_0xcdb8e2[_0x40cec0(0x1cf)]-0x1,_0x532042;_0x2f15e5>=0x0;_0x2f15e5--)(_0x532042=_0xcdb8e2[_0x2f15e5])&&(_0x28370f=_0x532042(_0x28370f)||_0x28370f);return _0x28370f;},F=(_0x25e0e1,_0x2bb074)=>(_0x49c48e,_0xe1b51a)=>_0x2bb074(_0x49c48e,_0xe1b51a,_0x25e0e1),J=(_0xbbc46f,_0x13a050,_0x3fb974)=>Ye(_0xbbc46f,typeof _0x13a050!='symbol'?_0x13a050+'':_0x13a050,_0x3fb974);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x4cc6bc{constructor(_0x94f348=T,_0x3a1fb4,_0x64a1e7){var _0x338e5a=_0xa90c6d;super(),this[_0x338e5a(0x19a)]=_0x94f348,this[_0x338e5a(0x1e4)]=_0x3a1fb4,this[_0x338e5a(0x151)]=_0x64a1e7;const {..._0x4d33a6}=_0xec7fba({},T,this['_config']);this[_0x338e5a(0x151)][_0x338e5a(0x18d)](Oe,_0x4d33a6);}[_0xa90c6d(0x13c)](){var _0x393df7=_0xa90c6d;_0x2e0b50(this[_0x393df7(0x1e4)],_0x48d5c6([[L],[I],[m],[b]],this[_0x393df7(0x19a)][_0x393df7(0x1be)])),_0x3df283(this['_injector'],[[m]]);}[_0xa90c6d(0x191)](){var _0x499dc9=_0xa90c6d;_0x3df283(this[_0x499dc9(0x1e4)],[[b]]);}};J(O,_0xa90c6d(0x1e7),_0xb60534[_0xa90c6d(0x15d)]),J(O,_0xa90c6d(0x153),Ze),O=Be([_0x3448f0(_0x1942db),F(0x1,_0x4fee81(_0x36d884)),F(0x2,_0x2c3bd8)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x39ab13=_0x5b4e;(function(_0x4e18fe,_0x3276f1){var _0x473d31=_0x5b4e,_0x119e21=_0x4e18fe();while(!![]){try{var _0x2fd889=-parseInt(_0x473d31(0x1d5))/0x1*(-parseInt(_0x473d31(0x1d1))/0x2)+-parseInt(_0x473d31(0x210))/0x3+parseInt(_0x473d31(0x22b))/0x4*(-parseInt(_0x473d31(0x205))/0x5)+-parseInt(_0x473d31(0x1a7))/0x6+parseInt(_0x473d31(0x1f1))/0x7+-parseInt(_0x473d31(0x1d8))/0x8+-parseInt(_0x473d31(0x20d))/0x9*(-parseInt(_0x473d31(0x221))/0xa);if(_0x2fd889===_0x3276f1)break;else _0x119e21['push'](_0x119e21['shift']());}catch(_0x2661a4){_0x119e21['push'](_0x119e21['shift']());}}}(_0x4f5d,0x33119));var q=Object[_0x39ab13(0x24b)],z=(_0x445de6,_0x2df7e1,_0x3b046f)=>_0x2df7e1 in _0x445de6?q(_0x445de6,_0x2df7e1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b046f}):_0x445de6[_0x2df7e1]=_0x3b046f,d=(_0x3f6b24,_0x5b6c87,_0x49fe9a)=>z(_0x3f6b24,typeof _0x5b6c87!='symbol'?_0x5b6c87+'':_0x5b6c87,_0x49fe9a);import{CollaborationSessionService as _0x5ad299,SessionStatus as _0x2b95f4,UniverCollaborationClientPlugin as _0x4f1c65}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3e5697,toDisposable as _0x5013eb,Inject as _0x1c9dfb,IUniverInstanceService as _0x29d1ed,Injector as _0x464e72,IConfigService as _0x4d4248,ICommandService as _0x2a3247,RxDisposable as _0x22e39e,UniverInstanceType as _0x5c0cf1,DisposableCollection as _0x132033,CommandType as _0x16403c,DependentOn as _0x37ba34,Plugin as _0xd3dbe,merge as _0x42fa7a,registerDependencies as _0x2a0e63,mergeOverrideWithDependencies as _0x4d573,touchDependencies as _0x23c0a8}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x89ee5d,InsertSheetMutation as _0x1e530f}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x16daff,SetScrollOperation as _0x5dc59e}from'@univerjs/sheets-ui';import{useDependency as _0x222417,useObservable as _0x4c99ef,IUIPartsService as _0x253bf3,BuiltInUIPart as _0x2dcb19,connectInjector as _0x1dfa84}from'@univerjs/ui';import{jsx as _0x254265,jsxs as _0x4b2b03,Fragment as _0xf3a8cd}from'react/jsx-runtime';import{Dropdown as _0x313750,clsx as _0x3011bc,Button as _0x25a302}from'@univerjs/design';import{forwardRef as _0x5ed3cd,useRef as _0x2b93c5,createElement as _0x315ed0,useState as _0x5b9a8e,useEffect as _0x3c6202}from'react';import{CollaborationEvent as _0x48bb46,parseProtocolChangeset as _0x452197}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xe254f1,Subject as _0x14561}from'rxjs';import{takeUntil as _0x54001b,throttleTime as _0x11bdb2}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3e5697{constructor(){var _0x55c512=_0x39ab13;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x55c512(0x216),new Set());}[_0x39ab13(0x1b2)](_0x477b90){var _0x156745=_0x39ab13;return this[_0x156745(0x1ce)][_0x156745(0x200)](_0x477b90),_0x5013eb(()=>this[_0x156745(0x1ce)]['delete'](_0x477b90));}[_0x39ab13(0x229)](_0x53c423){var _0xff77b1=_0x39ab13;return this[_0xff77b1(0x216)][_0xff77b1(0x200)](_0x53c423),_0x5013eb(()=>this[_0xff77b1(0x216)][_0xff77b1(0x20b)](_0x53c423));}[_0x39ab13(0x224)](_0x1d1893){var _0x44ca5b=_0x39ab13;return this[_0x44ca5b(0x1ce)]['has'](_0x1d1893);}[_0x39ab13(0x22d)](_0x3f3396){var _0x3647c0=_0x39ab13;return Array[_0x3647c0(0x21d)](this[_0x3647c0(0x216)])['map'](_0x3044cb=>_0x3044cb(_0x3f3396));}}function _0x5b4e(_0x441251,_0x575071){var _0x4f5dea=_0x4f5d();return _0x5b4e=function(_0x5b4e2e,_0x201403){_0x5b4e2e=_0x5b4e2e-0x19d;var _0x3fa836=_0x4f5dea[_0x5b4e2e];return _0x3fa836;},_0x5b4e(_0x441251,_0x575071);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x54da9f,_0x515bf4,_0x517656,_0x49cbb8)=>{var _0x296b03=_0x39ab13;for(var _0x1e21db=_0x49cbb8>0x1?void 0x0:_0x49cbb8?Ee(_0x515bf4,_0x517656):_0x515bf4,_0x4db5e5=_0x54da9f[_0x296b03(0x1de)]-0x1,_0x3908ee;_0x4db5e5>=0x0;_0x4db5e5--)(_0x3908ee=_0x54da9f[_0x4db5e5])&&(_0x1e21db=_0x3908ee(_0x1e21db)||_0x1e21db);return _0x1e21db;},Ne=(_0xca5fed,_0x33e108)=>(_0x3f45a8,_0x3b09b2)=>_0x33e108(_0x3f45a8,_0x3b09b2,_0xca5fed);let m=class extends _0x3e5697{constructor(_0x2bd166){var _0x42c47f=_0x39ab13;super(),this[_0x42c47f(0x1ee)]=_0x2bd166,this[_0x42c47f(0x1f0)]();}['_init'](){var _0x3219d0=_0x39ab13;[_0x16daff['id'],_0x5dc59e['id'],_0x89ee5d['id']][_0x3219d0(0x1a2)](_0xd947e2=>{var _0x46d956=_0x3219d0;this[_0x46d956(0x1c0)](this[_0x46d956(0x1ee)][_0x46d956(0x1b2)](_0xd947e2));});}};m=we([Ne(0x0,_0x1c9dfb(L))],m);var c=function(){var _0x43aca1=_0x39ab13;return c=Object[_0x43aca1(0x1ef)]||function(_0x135b00){var _0x768c0=_0x43aca1;for(var _0x17d153,_0x2b33d0=0x1,_0x3ba329=arguments[_0x768c0(0x1de)];_0x2b33d0<_0x3ba329;_0x2b33d0++){_0x17d153=arguments[_0x2b33d0];for(var _0x3f9ab3 in _0x17d153)Object[_0x768c0(0x223)]['hasOwnProperty'][_0x768c0(0x1b9)](_0x17d153,_0x3f9ab3)&&(_0x135b00[_0x3f9ab3]=_0x17d153[_0x3f9ab3]);}return _0x135b00;},c['apply'](this,arguments);},Ce=function(_0x4b6d7f,_0x52ffce){var _0x29a860=_0x39ab13,_0x1e58bd={};for(var _0x2d3dfc in _0x4b6d7f)Object[_0x29a860(0x223)][_0x29a860(0x24f)][_0x29a860(0x1b9)](_0x4b6d7f,_0x2d3dfc)&&_0x52ffce[_0x29a860(0x1ad)](_0x2d3dfc)<0x0&&(_0x1e58bd[_0x2d3dfc]=_0x4b6d7f[_0x2d3dfc]);if(_0x4b6d7f!=null&&typeof Object[_0x29a860(0x21a)]==_0x29a860(0x1af)){for(var _0x54b65e=0x0,_0x2d3dfc=Object['getOwnPropertySymbols'](_0x4b6d7f);_0x54b65e<_0x2d3dfc['length'];_0x54b65e++)_0x52ffce[_0x29a860(0x1ad)](_0x2d3dfc[_0x54b65e])<0x0&&Object[_0x29a860(0x223)][_0x29a860(0x222)][_0x29a860(0x1b9)](_0x4b6d7f,_0x2d3dfc[_0x54b65e])&&(_0x1e58bd[_0x2d3dfc[_0x54b65e]]=_0x4b6d7f[_0x2d3dfc[_0x54b65e]]);}return _0x1e58bd;},W=_0x5ed3cd(function(_0x3f4609,_0x44ef17){var _0x5a3137=_0x39ab13,_0x31b750=_0x3f4609[_0x5a3137(0x1f8)],_0x2ca497=_0x3f4609['id'],_0x24a17b=_0x3f4609[_0x5a3137(0x1e1)],_0x565adb=_0x3f4609[_0x5a3137(0x1c2)],_0x425766=Ce(_0x3f4609,['icon','id',_0x5a3137(0x1e1),_0x5a3137(0x1c2)]),_0x2a44bc=_0x5a3137(0x1be)[_0x5a3137(0x208)](_0x2ca497,'\x20')[_0x5a3137(0x208)](_0x24a17b||'')[_0x5a3137(0x21c)](),_0x5f19d8=_0x2b93c5('_'[_0x5a3137(0x208)](Le()));return Y(_0x31b750,''['concat'](_0x2ca497),{'defIds':_0x31b750[_0x5a3137(0x23c)],'idSuffix':_0x5f19d8[_0x5a3137(0x1f6)]},c({'ref':_0x44ef17,'className':_0x2a44bc},_0x425766),_0x565adb);});function Y(_0x4cb8e8,_0x860e36,_0x776e4f,_0x22f651,_0x1c9d27){var _0x407a7c=_0x39ab13;return _0x315ed0(_0x4cb8e8[_0x407a7c(0x1a1)],c(c({'key':_0x860e36},De(_0x4cb8e8,_0x776e4f,_0x1c9d27)),_0x22f651),(xe(_0x4cb8e8,_0x776e4f)[_0x407a7c(0x1db)]||[])[_0x407a7c(0x19d)](function(_0x467962,_0x3c57d9){var _0x263110=_0x407a7c;return Y(_0x467962,''[_0x263110(0x208)](_0x860e36,'-')[_0x263110(0x208)](_0x4cb8e8['tag'],'-')[_0x263110(0x208)](_0x3c57d9),_0x776e4f,void 0x0,_0x1c9d27);}));}function De(_0x2a17da,_0x5caf67,_0x56933e){var _0x10f92d=_0x39ab13,_0x4dbd73=c({},_0x2a17da['attrs']);_0x56933e!=null&&_0x56933e[_0x10f92d(0x1d3)]&&_0x4dbd73[_0x10f92d(0x23d)]===_0x10f92d(0x1d3)&&(_0x4dbd73[_0x10f92d(0x23d)]=_0x56933e['colorChannel1']),_0x2a17da[_0x10f92d(0x1a1)]==='mask'&&_0x4dbd73['id']&&(_0x4dbd73['id']=_0x4dbd73['id']+_0x5caf67[_0x10f92d(0x1fa)]),Object[_0x10f92d(0x1fc)](_0x4dbd73)[_0x10f92d(0x1a2)](function(_0x3d66f2){var _0x23776f=_0x10f92d,_0x165b35=_0x3d66f2[0x0],_0x32e8db=_0x3d66f2[0x1];_0x165b35==='mask'&&typeof _0x32e8db==_0x23776f(0x201)&&(_0x4dbd73[_0x165b35]=_0x32e8db[_0x23776f(0x241)](/url\(#(.*)\)/,_0x23776f(0x1d4)[_0x23776f(0x208)](_0x5caf67['idSuffix'],')')));});var _0x441ead=_0x5caf67[_0x10f92d(0x23c)];return!_0x441ead||_0x441ead[_0x10f92d(0x1de)]===0x0||(_0x2a17da[_0x10f92d(0x1a1)]===_0x10f92d(0x240)&&_0x4dbd73[_0x10f92d(0x235)]&&(_0x4dbd73[_0x10f92d(0x235)]=_0x4dbd73['xlink:href']+_0x5caf67[_0x10f92d(0x1fa)]),Object[_0x10f92d(0x1fc)](_0x4dbd73)[_0x10f92d(0x1a2)](function(_0x2b2092){var _0x51912c=_0x10f92d,_0x645ba1=_0x2b2092[0x0],_0x2a9989=_0x2b2092[0x1];typeof _0x2a9989==_0x51912c(0x201)&&(_0x4dbd73[_0x645ba1]=_0x2a9989[_0x51912c(0x241)](/url\(#(.*)\)/,'url(#$1'[_0x51912c(0x208)](_0x5caf67[_0x51912c(0x1fa)],')')));})),_0x4dbd73;}function xe(_0x32bb4f,_0x3b1d29){var _0x510e2e=_0x39ab13,_0x57ebf6,_0x4a0980=_0x3b1d29['defIds'];return!_0x4a0980||_0x4a0980[_0x510e2e(0x1de)]===0x0?_0x32bb4f:_0x32bb4f[_0x510e2e(0x1a1)]==='defs'&&(!((_0x57ebf6=_0x32bb4f['children'])===null||_0x57ebf6===void 0x0)&&_0x57ebf6[_0x510e2e(0x1de)])?c(c({},_0x32bb4f),{'children':_0x32bb4f[_0x510e2e(0x1db)]['map'](function(_0x567bf1){var _0x16883b=_0x510e2e;return typeof _0x567bf1[_0x16883b(0x1c5)]['id']==_0x16883b(0x201)&&_0x4a0980&&_0x4a0980[_0x16883b(0x21f)](_0x567bf1['attrs']['id'])?c(c({},_0x567bf1),{'attrs':c(c({},_0x567bf1[_0x16883b(0x1c5)]),{'id':_0x567bf1[_0x16883b(0x1c5)]['id']+_0x3b1d29[_0x16883b(0x1fa)]})}):_0x567bf1;})}):_0x32bb4f;}function Le(){var _0x588479=_0x39ab13;return Math[_0x588479(0x1dc)]()[_0x588479(0x211)](0x24)[_0x588479(0x214)](0x2,0x8);}W[_0x39ab13(0x1fd)]=_0x39ab13(0x1d9);var ye={'tag':_0x39ab13(0x238),'attrs':{'xmlns':_0x39ab13(0x22c),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x39ab13(0x22e),'attrs':{'fill':_0x39ab13(0x1ac),'d':_0x39ab13(0x228)}},{'tag':_0x39ab13(0x22e),'attrs':{'fill':_0x39ab13(0x1ac),'d':_0x39ab13(0x1c7),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x5ed3cd(function(_0x32b528,_0x221a72){var _0x5885e1=_0x39ab13;return _0x315ed0(W,Object['assign']({},_0x32b528,{'id':_0x5885e1(0x1bf),'ref':_0x221a72,'icon':ye}));});B[_0x39ab13(0x1fd)]=_0x39ab13(0x1c1);var Re=Object[_0x39ab13(0x243)],Z=(_0x2858fb,_0x26827f,_0xdd19b8,_0x567ba4)=>{var _0x18d793=_0x39ab13;for(var _0x15ec61=_0x567ba4>0x1?void 0x0:_0x567ba4?Re(_0x26827f,_0xdd19b8):_0x26827f,_0x2a4c25=_0x2858fb[_0x18d793(0x1de)]-0x1,_0x213093;_0x2a4c25>=0x0;_0x2a4c25--)(_0x213093=_0x2858fb[_0x2a4c25])&&(_0x15ec61=_0x213093(_0x15ec61)||_0x15ec61);return _0x15ec61;},f=(_0x460c6f,_0x472ddb)=>(_0x4d57e4,_0x1bbe8c)=>_0x472ddb(_0x4d57e4,_0x1bbe8c,_0x460c6f);let I=class extends _0x22e39e{constructor(_0x4ee4b0,_0xaf01ea,_0x32de97){var _0x5dd880=_0x39ab13;super(),d(this,_0x5dd880(0x1c8),new Map()),(this[_0x5dd880(0x1b3)]=_0x4ee4b0,this[_0x5dd880(0x1a4)]=_0xaf01ea,this[_0x5dd880(0x247)]=_0x32de97,this[_0x5dd880(0x1f0)]());}async[_0x39ab13(0x1c9)](_0x4a8ddf){var _0x32c7a6=_0x39ab13;return this[_0x32c7a6(0x1c8)][_0x32c7a6(0x1d7)](_0x4a8ddf)||await this['_startLiveShareCoordinator'](_0x4a8ddf),this[_0x32c7a6(0x1c8)][_0x32c7a6(0x21b)](_0x4a8ddf);}['_init'](){var _0x21bc90=_0x39ab13;this[_0x21bc90(0x1b3)]['getTypeOfUnitAdded$'](_0x5c0cf1[_0x21bc90(0x219)])[_0x21bc90(0x1b7)](_0x54001b(this[_0x21bc90(0x1f2)]))[_0x21bc90(0x1f3)](async _0x5c2cc6=>{var _0x3e4434=_0x21bc90;const _0x2fe247=_0x5c2cc6[_0x3e4434(0x206)]();this[_0x3e4434(0x1c8)][_0x3e4434(0x1d7)](_0x2fe247)||this[_0x3e4434(0x1ca)](_0x2fe247);}),this[_0x21bc90(0x1b3)]['getTypeOfUnitDisposed$'](_0x5c0cf1[_0x21bc90(0x219)])[_0x21bc90(0x1b7)](_0x54001b(this[_0x21bc90(0x1f2)]))[_0x21bc90(0x1f3)](_0xf0c791=>{var _0x49478a=_0x21bc90;const _0x10c048=_0xf0c791[_0x49478a(0x206)](),_0x14c3c3=this[_0x49478a(0x1c8)][_0x49478a(0x21b)](_0x10c048);_0x14c3c3==null||_0x14c3c3[_0x49478a(0x1bd)]();});}async[_0x39ab13(0x1ca)](_0x11547e){var _0x4f0a69=_0x39ab13;const _0xcaa47b=await this[_0x4f0a69(0x247)][_0x4f0a69(0x24d)](_0x11547e),_0x576e89=this[_0x4f0a69(0x1a4)][_0x4f0a69(0x1d6)](C,_0x11547e,_0xcaa47b);return _0x576e89[_0x4f0a69(0x1e6)](),this[_0x4f0a69(0x1c8)]['set'](_0x11547e,_0x576e89),_0x576e89;}};I=Z([f(0x0,_0x29d1ed),f(0x1,_0x1c9dfb(_0x464e72)),f(0x2,_0x1c9dfb(_0x5ad299))],I);var h=(_0x127e0d=>(_0x127e0d[_0x39ab13(0x1c4)]=_0x39ab13(0x1dd),_0x127e0d[_0x39ab13(0x1f4)]=_0x39ab13(0x1cf),_0x127e0d[_0x39ab13(0x1ec)]=_0x39ab13(0x234),_0x127e0d['NOT_FOLLOWING']=_0x39ab13(0x24c),_0x127e0d[_0x39ab13(0x232)]='presenting',_0x127e0d))(h||{});const Pe=_0x39ab13(0x209),Ae=0xc8;let C=class extends _0x22e39e{constructor(_0x5dad62,_0x584743,_0x1cce1b,_0x243ee3,_0x347ba7){var _0x2ee09d=_0x39ab13;super(),d(this,_0x2ee09d(0x1b6),new _0xe254f1(_0x2ee09d(0x1cf))),d(this,_0x2ee09d(0x1a9),this[_0x2ee09d(0x1b6)][_0x2ee09d(0x1ae)]()),d(this,'_init',!0x1),d(this,_0x2ee09d(0x1b8),null),d(this,_0x2ee09d(0x1ea),null),(this[_0x2ee09d(0x202)]=_0x5dad62,this[_0x2ee09d(0x1bb)]=_0x584743,this[_0x2ee09d(0x1d2)]=_0x1cce1b,this[_0x2ee09d(0x1ee)]=_0x243ee3,this[_0x2ee09d(0x1ff)]=_0x347ba7);}get[_0x39ab13(0x1cb)](){var _0x228b18=_0x39ab13;return this[_0x228b18(0x1b6)][_0x228b18(0x20a)]();}[_0x39ab13(0x1bd)](){var _0x2ed2bf=_0x39ab13,_0x114227;(_0x114227=this[_0x2ed2bf(0x1b8)])==null||_0x114227[_0x2ed2bf(0x1bd)](),this['_status$'][_0x2ed2bf(0x1cc)](_0x2ed2bf(0x1cf)),this[_0x2ed2bf(0x1b6)][_0x2ed2bf(0x1fe)]();}[_0x39ab13(0x1e6)](){var _0x447967=_0x39ab13;this['_init']||(this[_0x447967(0x1f0)]=!0x0,this[_0x447967(0x1bb)][_0x447967(0x1a0)][_0x447967(0x1b7)](_0x54001b(this[_0x447967(0x1f2)]))['subscribe'](_0x4ecde6=>{switch(_0x4ecde6){case _0x2b95f4['OFFLINE']:this['_handleOffline']();break;case _0x2b95f4['ONLINE']:this['_handleOnline']();break;}}),this[_0x447967(0x1bb)][_0x447967(0x1a6)][_0x447967(0x1b7)](_0x54001b(this[_0x447967(0x1f2)]))[_0x447967(0x1f3)](_0x5d8123=>{var _0x576ab3=_0x447967;const {eventID:_0x2dc0a4}=_0x5d8123;switch(_0x2dc0a4){case _0x48bb46[_0x576ab3(0x1f7)]:this[_0x576ab3(0x226)](_0x5d8123);break;case _0x48bb46[_0x576ab3(0x1ab)]:this['_handleOperation'](_0x5d8123);break;case _0x48bb46[_0x576ab3(0x1bc)]:this[_0x576ab3(0x203)]();break;case _0x48bb46[_0x576ab3(0x1f9)]:this['_handleNewChangeSets'](_0x5d8123);break;}}));}[_0x39ab13(0x1c6)](){var _0x324e8d=_0x39ab13;this[_0x324e8d(0x1bb)]['send']({'eventID':_0x48bb46[_0x324e8d(0x24a)],'data':{'unitID':this[_0x324e8d(0x202)],'userID':this[_0x324e8d(0x1bb)][_0x324e8d(0x237)]()}},this['_unitID']);}['stopPresenting'](){var _0x189040=_0x39ab13;this['_status']===_0x189040(0x23e)&&(this[_0x189040(0x1b6)]['next'](_0x189040(0x1cf)),this[_0x189040(0x1bb)][_0x189040(0x1b5)]({'eventID':_0x48bb46[_0x189040(0x1bc)],'data':{'unitID':this[_0x189040(0x202)]}},this[_0x189040(0x202)]));}['startFollowing'](){var _0x33cc47=_0x39ab13;this[_0x33cc47(0x1cb)]===_0x33cc47(0x24c)&&(this[_0x33cc47(0x1b6)][_0x33cc47(0x1cc)](_0x33cc47(0x234)),this[_0x33cc47(0x249)]());}[_0x39ab13(0x1da)](){var _0x14df83=_0x39ab13;this[_0x14df83(0x1cb)]===_0x14df83(0x234)&&this[_0x14df83(0x1b4)]();}[_0x39ab13(0x226)](_0x3d5364){var _0x2d1187=_0x39ab13;const {presenter:_0x159323}=_0x3d5364[_0x2d1187(0x248)],_0x2e3c65=this[_0x2d1187(0x1bb)][_0x2d1187(0x237)]();this[_0x2d1187(0x1ea)]=_0x159323,_0x159323===_0x2e3c65?(this[_0x2d1187(0x1b4)](),this['_startPresenting']()):this[_0x2d1187(0x1cb)]!==_0x2d1187(0x24c)&&(this[_0x2d1187(0x1e5)](),this[_0x2d1187(0x249)]());}['_fetchOperations'](){var _0x153cc0=_0x39ab13;const _0x9b7e16={'eventID':_0x48bb46[_0x153cc0(0x1aa)]};this[_0x153cc0(0x1bb)][_0x153cc0(0x1b5)](_0x9b7e16,this[_0x153cc0(0x202)]);}['_handleTerminate'](){var _0x5e1c03=_0x39ab13;this[_0x5e1c03(0x1ea)]=null,this[_0x5e1c03(0x1cb)]!==_0x5e1c03(0x23e)&&this['_beIdle']();}[_0x39ab13(0x204)](_0xeb9bae){var _0x30f9ef=_0x39ab13;if(this['_status']===_0x30f9ef(0x234)&&this[_0x30f9ef(0x1ea)]===_0xeb9bae['data'][_0x30f9ef(0x239)]){const _0x485e06=_0x452197(_0xeb9bae[_0x30f9ef(0x248)])[_0x30f9ef(0x1b1)][_0x30f9ef(0x1a3)]()[_0x30f9ef(0x213)](_0x327d43=>_0x327d43['id']===_0x1e530f['id']);if(_0x485e06){const _0x17ec92=_0x485e06[_0x30f9ef(0x23b)][_0x30f9ef(0x242)],_0xfd9ce0=_0x485e06[_0x30f9ef(0x23b)][_0x30f9ef(0x217)]['id'];setTimeout(()=>{var _0x3bf54e=_0x30f9ef;this['_commandService'][_0x3bf54e(0x24e)](_0x89ee5d['id'],{'unitId':_0x17ec92,'subUnitId':_0xfd9ce0},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4f8fb3=_0x39ab13;this[_0x4f8fb3(0x1b6)][_0x4f8fb3(0x1cc)](_0x4f8fb3(0x23e));const _0x2a0a9a=new Map(),_0x37f4ae=this[_0x4f8fb3(0x1b8)]=new _0x132033();_0x37f4ae[_0x4f8fb3(0x200)](_0x5013eb(()=>{var _0x5623f1=_0x4f8fb3;_0x2a0a9a[_0x5623f1(0x1a2)](_0x583e00=>_0x583e00[_0x5623f1(0x1fe)]()),_0x2a0a9a[_0x5623f1(0x1ed)]();})),_0x37f4ae['add'](this[_0x4f8fb3(0x1ff)][_0x4f8fb3(0x1f5)](_0x46e4b3=>{var _0x32efe3=_0x4f8fb3,_0x1220d3;if(_0x46e4b3['type']!==_0x16403c[_0x32efe3(0x22a)]||!this[_0x32efe3(0x1ee)][_0x32efe3(0x224)](_0x46e4b3['id']))return;const {id:_0xa9123d}=_0x46e4b3;let _0x34f024;_0x2a0a9a['has'](_0xa9123d)?_0x34f024=_0x2a0a9a['get'](_0xa9123d):(_0x34f024=new _0x14561(),_0x2a0a9a[_0x32efe3(0x22f)](_0xa9123d,_0x34f024),_0x34f024[_0x32efe3(0x1b7)](_0x11bdb2((_0x1220d3=this['_configService'][_0x32efe3(0x244)](Pe))!=null?_0x1220d3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32efe3(0x1f3)](_0x1fd228=>{var _0x25230e=_0x32efe3;this[_0x25230e(0x1bb)][_0x25230e(0x1b5)]({'eventID':_0x48bb46[_0x25230e(0x1ab)],'data':{'unitID':this['_unitID'],'operations':{[_0x1fd228['id']]:{'id':_0x1fd228['id'],'params':JSON[_0x25230e(0x20f)](_0x1fd228['params'])}}}},this[_0x25230e(0x202)]);})),_0x34f024[_0x32efe3(0x1cc)](_0x46e4b3);})),this[_0x4f8fb3(0x1ee)]['getInitialStates'](this[_0x4f8fb3(0x202)])[_0x4f8fb3(0x1a2)](_0x3ab932=>this[_0x4f8fb3(0x1bb)][_0x4f8fb3(0x1b5)]({'eventID':_0x48bb46['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f8fb3(0x202)],'operations':{[_0x3ab932['id']]:{'id':_0x3ab932['id'],'params':JSON[_0x4f8fb3(0x20f)](_0x3ab932[_0x4f8fb3(0x23b)])}}}},this[_0x4f8fb3(0x202)]));}['_stopPresenting'](){var _0x3200d1=_0x39ab13,_0x1febda;this[_0x3200d1(0x1b6)]['next']('idle'),(_0x1febda=this[_0x3200d1(0x1b8)])==null||_0x1febda['dispose'](),this['_commandDisposable']=null;}[_0x39ab13(0x249)](){var _0x5920ef=_0x39ab13,_0x11f105;(_0x11f105=this[_0x5920ef(0x1b8)])==null||_0x11f105[_0x5920ef(0x1bd)](),this[_0x5920ef(0x1b6)]['next']('following');}[_0x39ab13(0x1ba)](){var _0x53d91a=_0x39ab13,_0x5cfd6d;this[_0x53d91a(0x1b6)][_0x53d91a(0x1cc)]('idle'),(_0x5cfd6d=this[_0x53d91a(0x1b8)])==null||_0x5cfd6d[_0x53d91a(0x1bd)](),this['_commandDisposable']=null;}[_0x39ab13(0x1b4)](){var _0x93ac13=_0x39ab13,_0x51967e;this[_0x93ac13(0x1b6)][_0x93ac13(0x1cc)](_0x93ac13(0x24c)),(_0x51967e=this[_0x93ac13(0x1b8)])==null||_0x51967e[_0x93ac13(0x1bd)]();}[_0x39ab13(0x21e)](_0xde4013){var _0x1c54f6=_0x39ab13;if(['presenting',_0x1c54f6(0x24c),'offline'][_0x1c54f6(0x21f)](this[_0x1c54f6(0x1cb)])||!_0xde4013[_0x1c54f6(0x248)][_0x1c54f6(0x23a)]||_0xde4013[_0x1c54f6(0x248)][_0x1c54f6(0x23a)]===this[_0x1c54f6(0x1bb)]['getMemberID']())return;this[_0x1c54f6(0x1cb)]==='idle'&&this[_0x1c54f6(0x249)]();const _0x587b04=_0xde4013[_0x1c54f6(0x248)]['operations'];Object[_0x1c54f6(0x1e2)](_0x587b04)[_0x1c54f6(0x1a2)](_0x121121=>{var _0x2526b4=_0x1c54f6;this[_0x2526b4(0x1ff)][_0x2526b4(0x24e)](_0x121121['id'],_0x121121[_0x2526b4(0x23b)]?JSON[_0x2526b4(0x225)](_0x121121['params']):null,{'fromCollab':!0x0});});}[_0x39ab13(0x23f)](){var _0x47179d=_0x39ab13,_0x35e674;this[_0x47179d(0x1b6)][_0x47179d(0x1cc)](_0x47179d(0x1dd)),(_0x35e674=this[_0x47179d(0x1b8)])==null||_0x35e674[_0x47179d(0x1bd)]();}['_handleOnline'](){var _0x99d950=_0x39ab13;this[_0x99d950(0x1b6)][_0x99d950(0x1cc)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x4d4248),f(0x3,_0x1c9dfb(L)),f(0x4,_0x2a3247)],C);function Te(){var _0x2ee89d=_0x39ab13;const _0x47efca=_0x222417(I),_0x509158=_0x222417(_0x29d1ed),_0x42fdad=_0x4c99ef(()=>_0x509158[_0x2ee89d(0x1e3)](_0x5c0cf1[_0x2ee89d(0x219)]),void 0x0,!0x1,[]),[_0x3469fe,_0x23efe8]=_0x5b9a8e(null),[_0xf75bf3,_0x170647]=_0x5b9a8e(h[_0x2ee89d(0x1f4)]),_0x44dfe4=_0x2b93c5(null);return _0x3c6202(()=>(_0x42fdad&&_0x47efca[_0x2ee89d(0x1c9)](_0x42fdad[_0x2ee89d(0x206)]())[_0x2ee89d(0x220)](_0x1f1c41=>{var _0x36f943=_0x2ee89d;_0x23efe8(_0x1f1c41),_0x44dfe4[_0x36f943(0x1f6)]=_0x1f1c41[_0x36f943(0x1a9)][_0x36f943(0x1f3)](_0x4043f2=>{_0x170647(_0x4043f2);});}),()=>{var _0x173d52=_0x2ee89d,_0x555445;(_0x555445=_0x44dfe4[_0x173d52(0x1f6)])==null||_0x555445[_0x173d52(0x19e)](),_0x44dfe4[_0x173d52(0x1f6)]=null;}),[_0x42fdad,_0x47efca]),_0x3469fe?_0x254265(_0x313750,{'align':'end','disabled':_0xf75bf3===h['OFFLINE'],'className':_0x2ee89d(0x1a5),'overlay':_0x254265($e,{'status':_0xf75bf3,'coordinator':_0x3469fe}),'children':_0x254265(_0x2ee89d(0x227),{'className':_0x3011bc(_0x2ee89d(0x233),{'univer-cursor-not-allowed':_0xf75bf3===h[_0x2ee89d(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xf75bf3!==h[_0x2ee89d(0x1c4)]}),'type':'button','children':_0x254265(B,{'className':_0x2ee89d(0x1fb)})})}):null;}function $e(_0x36206a){var _0x334c59=_0x39ab13;const {status:_0x4bacbe,coordinator:_0x5c0e03}=_0x36206a;switch(_0x4bacbe){case h[_0x334c59(0x1f4)]:return _0x254265(Fe,{'coordinator':_0x5c0e03});case h[_0x334c59(0x1ec)]:return _0x254265(He,{'coordinator':_0x5c0e03});case h[_0x334c59(0x231)]:return _0x254265(je,{'coordinator':_0x5c0e03});case h[_0x334c59(0x1c4)]:return _0x254265(Ve,{});case h[_0x334c59(0x232)]:return _0x254265(Ue,{'coordinator':_0x5c0e03});default:return null;}}function Fe(_0x50599f){var _0xbd76e7=_0x39ab13;const {coordinator:_0x405c0f}=_0x50599f;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265('div',{'className':_0xbd76e7(0x1e9),'children':_0xbd76e7(0x1df)}),_0x254265(_0x25a302,{'onClick':()=>_0x405c0f[_0xbd76e7(0x1c6)](),'children':_0xbd76e7(0x246)})]});}function He(_0xfa74a0){var _0x4eadf0=_0x39ab13;const {coordinator:_0x16177e}=_0xfa74a0;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x4eadf0(0x245),{'className':_0x4eadf0(0x1e9),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x254265(_0x25a302,{'onClick':()=>_0x16177e[_0x4eadf0(0x1da)](),'children':_0x4eadf0(0x1e8)})]});}function je(_0x53483e){var _0x2bbd17=_0x39ab13;const {coordinator:_0x3e560d}=_0x53483e;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x2bbd17(0x245),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2bbd17(0x1e0)}),_0x254265(_0x25a302,{'variant':_0x2bbd17(0x1e4),'onClick':()=>_0x3e560d[_0x2bbd17(0x1cd)](),'children':_0x2bbd17(0x1d0)})]});}function Ue(_0x46740c){var _0x51e54a=_0x39ab13;const {coordinator:_0x592d0a}=_0x46740c;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x51e54a(0x245),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x254265(_0x25a302,{'variant':_0x51e54a(0x1e7),'onClick':()=>_0x592d0a[_0x51e54a(0x1eb)](),'children':_0x51e54a(0x215)})]});}function Ve(){var _0x54696b=_0x39ab13;return _0x254265(_0xf3a8cd,{'children':_0x54696b(0x212)});}function _0x4f5d(){var _0x52ef5e=['defineProperty','not-following','requireSession','executeCommand','hasOwnProperty','map','unsubscribe','pluginName','sessionStatus$','tag','forEach','reverse','_injector','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','event$','1550298JIvGlb','symbol','status$','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_OPERATION','currentColor','indexOf','asObservable','function','registerComponent','mutations','registerSharedOperation','_univerInstanceService','_stopFollowing','send','_status$','pipe','_commandDisposable','call','_beIdle','_collabSession','LIVESHARE_TERMINATE','dispose','univerjs-icon\x20univerjs-icon-','live-share-icon','disposeWithMe','LiveShareIcon','extend','_config','OFFLINE','attrs','tryStartPresenting','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','_entities','getLiveShareCoordinator','_startLiveShareCoordinator','_status','next','startFollowing','_sharedOperations','idle','Start\x20following','475916pmBOag','_configService','colorChannel1','url(#$1','1pPiDnc','createInstance','has','568336lgjosb','UniverIcon','stopFollowing','children','random','offline','length','Present\x20this\x20document','You\x27re\x20not\x20following\x20the\x20presenter','className','values','getCurrentTypeOfUnit$','text','_stopPresenting','init','default','Stop\x20following','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','stopPresenting','FOLLOWING','clear','_liveShareService','assign','_init','1558452zpufdW','dispose$','subscribe','IDLE','onCommandExecuted','current','LIVESHARE_NEW_HOST','icon','NEW_CHANGESETS','idSuffix','univer-size-4','entries','displayName','complete','_commandService','add','string','_unitID','_handleTerminate','_handleNewChangeSets','1466935ojqjKd','getUnitId','_mountLiveShare','concat','SAME_OPERATION_SHARE_INTERVAL','getValue','delete','_uiPartsService','12807RsOHvJ','UNIVER_LIVE_SHARE_PLUGIN','stringify','683064gFhwpx','toString','You\x27are\x20offline.','find','substring','Stop\x20presenting','_reporters','sheet','onStarting','UNIVER_SHEET','getOwnPropertySymbols','get','trim','from','_handleOperation','includes','then','4210XDpahj','propertyIsEnumerable','prototype','shouldShareOperation','parse','_handleNewHost','button','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','registerInitialStateReporter','OPERATION','4tvRwtt','http://www.w3.org/2000/svg','getInitialStates','path','set','override','NOT_FOLLOWING','PRESENTING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','xlink:href','setConfig','getMemberID','svg','memberID','presenter','params','defIds','fill','presenting','_handleOffline','use','replace','unitId','getOwnPropertyDescriptor','getConfig','div','Start','_collabSessionService','data','_startFollowing','LIVESHARE_REQUEST_HOST'];_0x4f5d=function(){return _0x52ef5e;};return _0x4f5d();}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xfba11e,_0x4bd9f2,_0x431492,_0xa543ae)=>{for(var _0x51ea2c=_0xa543ae>0x1?void 0x0:_0xa543ae?Me(_0x4bd9f2,_0x431492):_0x4bd9f2,_0x29c71a=_0xfba11e['length']-0x1,_0x43b22a;_0x29c71a>=0x0;_0x29c71a--)(_0x43b22a=_0xfba11e[_0x29c71a])&&(_0x51ea2c=_0x43b22a(_0x51ea2c)||_0x51ea2c);return _0x51ea2c;},$=(_0x470529,_0x2a04b1)=>(_0x4208d8,_0x477cb7)=>_0x2a04b1(_0x4208d8,_0x477cb7,_0x470529);let b=class extends _0x3e5697{constructor(_0x53edff,_0x45a169){var _0x795cc4=_0x39ab13;super(),this[_0x795cc4(0x1a4)]=_0x53edff,this[_0x795cc4(0x20c)]=_0x45a169,this[_0x795cc4(0x207)]();}['_mountLiveShare'](){var _0x2abaff=_0x39ab13;this[_0x2abaff(0x1c0)](this['_uiPartsService'][_0x2abaff(0x1b0)](_0x2dcb19['HEADER_MENU'],()=>_0x1dfa84(Te,this[_0x2abaff(0x1a4)])));}};b=ke([$(0x0,_0x1c9dfb(_0x464e72)),$(0x1,_0x253bf3)],b);var Ge=Object[_0x39ab13(0x24b)],We=Object[_0x39ab13(0x243)],Ye=(_0x3b3ceb,_0x470f0a,_0x37827e)=>_0x470f0a in _0x3b3ceb?Ge(_0x3b3ceb,_0x470f0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37827e}):_0x3b3ceb[_0x470f0a]=_0x37827e,Be=(_0x1e092a,_0x1b2385,_0x2eb2ba,_0x65327d)=>{var _0x154b35=_0x39ab13;for(var _0x294265=_0x65327d>0x1?void 0x0:_0x65327d?We(_0x1b2385,_0x2eb2ba):_0x1b2385,_0x5aaa48=_0x1e092a[_0x154b35(0x1de)]-0x1,_0x1db196;_0x5aaa48>=0x0;_0x5aaa48--)(_0x1db196=_0x1e092a[_0x5aaa48])&&(_0x294265=_0x1db196(_0x294265)||_0x294265);return _0x294265;},F=(_0x2eed5b,_0x5ed84d)=>(_0xd65250,_0x52d0b2)=>_0x5ed84d(_0xd65250,_0x52d0b2,_0x2eed5b),J=(_0x41b937,_0x5ae394,_0x7cb0e8)=>Ye(_0x41b937,typeof _0x5ae394!=_0x39ab13(0x1a8)?_0x5ae394+'':_0x5ae394,_0x7cb0e8);const Ze=_0x39ab13(0x20e);let O=class extends _0xd3dbe{constructor(_0x473f5f=T,_0x5cd59d,_0x1c5835){var _0x195c9a=_0x39ab13;super(),this[_0x195c9a(0x1c3)]=_0x473f5f,this['_injector']=_0x5cd59d,this[_0x195c9a(0x1d2)]=_0x1c5835;const {..._0x2e27bd}=_0x42fa7a({},T,this['_config']);this[_0x195c9a(0x1d2)][_0x195c9a(0x236)](Oe,_0x2e27bd);}[_0x39ab13(0x218)](){var _0x4a004b=_0x39ab13;_0x2a0e63(this[_0x4a004b(0x1a4)],_0x4d573([[L],[I],[m],[b]],this[_0x4a004b(0x1c3)][_0x4a004b(0x230)])),_0x23c0a8(this[_0x4a004b(0x1a4)],[[m]]);}['onRendered'](){var _0x3085db=_0x39ab13;_0x23c0a8(this[_0x3085db(0x1a4)],[[b]]);}};J(O,'type',_0x5c0cf1['UNIVER_UNKNOWN']),J(O,_0x39ab13(0x19f),Ze),O=Be([_0x37ba34(_0x4f1c65),F(0x1,_0x1c9dfb(_0x464e72)),F(0x2,_0x4d4248)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2a25(){var _0x46b7f3=['stopPresenting','LIVESHARE_TERMINATE','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','_uiPartsService','Start','registerComponent','requireSession','_handleOffline','_presenter','SAME_OPERATION_SHARE_INTERVAL','div','startFollowing','FOLLOWING','getUnitId','override','url(#$1','idle','presenting','none','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','add','current','ONLINE','values','init','69yQYksb','_fetchOperations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','next','You\x27re\x20presenting\x20the\x20document','length','_init','default','icon','2088066OauqEM','sheet','fill','Stop\x20presenting','pipe','_entities','_stopFollowing','_reporters','NOT_FOLLOWING','defs','You\x27are\x20offline.','onCommandExecuted','http://www.w3.org/2000/svg','_unitID','offline','registerSharedOperation','getOwnPropertySymbols','_injector','map','defineProperty','type','PRESENTING','symbol','call','_handleNewChangeSets','getValue','1881eaUBjm','_commandDisposable','_univerInstanceService','stringify','_handleOnline','tryStartPresenting','substring','onStarting','HEADER_MENU','live-share.config','UNIVER_SHEET','status$','send','1336796DKtIoI','displayName','apply','_collabSessionService','LiveShareIcon','_status$','UniverIcon','11870tywXKE','_commandService','_stopPresenting','propertyIsEnumerable','getOwnPropertyDescriptor','evenodd','get','_collabSession','_configService','children','pluginName','univerjs-icon\x20univerjs-icon-','7bMEqaZ','string','function','data','path','_startPresenting','attrs','random','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','_liveShareService','clear','end','getInitialStates','_startLiveShareCoordinator','unsubscribe','entries','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','button','following','0\x200\x2017\x2017','className','OFFLINE','has','27872eTocXn','forEach','34412484SHkXKw','executeCommand','mutations','mask','getMemberID','operations','toString','concat','defIds','currentColor','indexOf','NEW_CHANGESETS','then','params','complete','xlink:href','_status','univer-size-4','disposeWithMe','getLiveShareCoordinator','tag','3348XEsxHr','asObservable','set','dispose','from','unitId','svg','stopFollowing','IDLE','setConfig','_startFollowing','live-share-icon','createInstance','onRendered','shouldShareOperation','extend','OPERATION','LIVESHARE_NEW_HOST','registerInitialStateReporter','_mountLiveShare','1059963fxqAjU','_sharedOperations','_config','hasOwnProperty','subscribe','replace','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','event$','not-following','130588fXkwde','_handleNewHost','_handleTerminate','prototype','parse','assign','colorChannel1','Stop\x20following','1em','_handleOperation','Present\x20this\x20document','20OPaEhV','idSuffix'];_0x2a25=function(){return _0x46b7f3;};return _0x2a25();}var _0xa90c6d=_0x2bf6;(function(_0x4196d4,_0x314d1d){var _0xf2b70=_0x2bf6,_0x22b254=_0x4196d4();while(!![]){try{var _0x4a22ae=-parseInt(_0xf2b70(0x198))/0x1+-parseInt(_0xf2b70(0x1a1))/0x2*(-parseInt(_0xf2b70(0x1c9))/0x3)+parseInt(_0xf2b70(0x142))/0x4*(parseInt(_0xf2b70(0x1ac))/0x5)+parseInt(_0xf2b70(0x1d3))/0x6*(parseInt(_0xf2b70(0x155))/0x7)+parseInt(_0xf2b70(0x16d))/0x8*(parseInt(_0xf2b70(0x184))/0x9)+-parseInt(_0xf2b70(0x149))/0xa*(-parseInt(_0xf2b70(0x1ed))/0xb)+-parseInt(_0xf2b70(0x16f))/0xc;if(_0x4a22ae===_0x314d1d)break;else _0x22b254['push'](_0x22b254['shift']());}catch(_0x18f367){_0x22b254['push'](_0x22b254['shift']());}}}(_0x2a25,0xb90a4));var q=Object[_0xa90c6d(0x1e6)],z=(_0x563555,_0x4c198,_0x1be1ba)=>_0x4c198 in _0x563555?q(_0x563555,_0x4c198,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1be1ba}):_0x563555[_0x4c198]=_0x1be1ba,d=(_0x4cf0e3,_0x5d40eb,_0x5142b8)=>z(_0x4cf0e3,typeof _0x5d40eb!=_0xa90c6d(0x1e9)?_0x5d40eb+'':_0x5d40eb,_0x5142b8);import{CollaborationSessionService as _0x53a076,SessionStatus as _0x398ba3,UniverCollaborationClientPlugin as _0x1942db}from'@univerjs-pro/collaboration-client';import{Disposable as _0x32b72d,toDisposable as _0x10e967,Inject as _0x4fee81,IUniverInstanceService as _0x2077bd,Injector as _0x36d884,IConfigService as _0x2c3bd8,ICommandService as _0x3f70ed,RxDisposable as _0x440f57,UniverInstanceType as _0xb60534,DisposableCollection as _0x4a8d27,CommandType as _0xb22e4,DependentOn as _0x3448f0,Plugin as _0x4cc6bc,merge as _0xec7fba,registerDependencies as _0x2e0b50,mergeOverrideWithDependencies as _0x48d5c6,touchDependencies as _0x3df283}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x31c97b,InsertSheetMutation as _0x240813}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2837c7,SetScrollOperation as _0x5850d0}from'@univerjs/sheets-ui';import{useDependency as _0xb5df3,useObservable as _0x1b95c7,IUIPartsService as _0x5d78b2,BuiltInUIPart as _0x34eb2b,connectInjector as _0x529405}from'@univerjs/ui';import{jsx as _0x16d1ae,jsxs as _0x293b98,Fragment as _0x261c50}from'react/jsx-runtime';import{Dropdown as _0x15ccc4,clsx as _0x434840,Button as _0xeeec48}from'@univerjs/design';import{forwardRef as _0x27cf43,useRef as _0x15de42,createElement as _0x59e572,useState as _0x14a6b0,useEffect as _0x5d18ba}from'react';import{CollaborationEvent as _0x16cbd6,parseProtocolChangeset as _0x212d51}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2e884a,Subject as _0x2d918b}from'rxjs';import{takeUntil as _0x3417f9,throttleTime as _0x4e02d5}from'rxjs/operators';const Oe=_0xa90c6d(0x13e),T={};class L extends _0x32b72d{constructor(){var _0x49f784=_0xa90c6d;super(...arguments),d(this,_0x49f784(0x199),new Set()),d(this,_0x49f784(0x1da),new Set());}[_0xa90c6d(0x1e2)](_0x4dcba4){var _0x1a5ec3=_0xa90c6d;return this['_sharedOperations'][_0x1a5ec3(0x1c4)](_0x4dcba4),_0x10e967(()=>this['_sharedOperations']['delete'](_0x4dcba4));}[_0xa90c6d(0x196)](_0x3bfb83){var _0x3b6397=_0xa90c6d;return this[_0x3b6397(0x1da)]['add'](_0x3bfb83),_0x10e967(()=>this['_reporters']['delete'](_0x3bfb83));}['shouldShareOperation'](_0x455f96){var _0x254e22=_0xa90c6d;return this[_0x254e22(0x199)][_0x254e22(0x16c)](_0x455f96);}[_0xa90c6d(0x162)](_0xb42ee2){var _0x5b6064=_0xa90c6d;return Array[_0x5b6064(0x188)](this[_0x5b6064(0x1da)])[_0x5b6064(0x1e5)](_0x5f0269=>_0x5f0269(_0xb42ee2));}}var Ee=Object[_0xa90c6d(0x14d)],we=(_0x33d9cd,_0xfccdfd,_0x35c97b,_0x5ad284)=>{var _0x663e35=_0xa90c6d;for(var _0x2efa47=_0x5ad284>0x1?void 0x0:_0x5ad284?Ee(_0xfccdfd,_0x35c97b):_0xfccdfd,_0x17f069=_0x33d9cd[_0x663e35(0x1cf)]-0x1,_0x6a9233;_0x17f069>=0x0;_0x17f069--)(_0x6a9233=_0x33d9cd[_0x17f069])&&(_0x2efa47=_0x6a9233(_0x2efa47)||_0x2efa47);return _0x2efa47;},Ne=(_0x544d84,_0x29f382)=>(_0xc09004,_0x152b6)=>_0x29f382(_0xc09004,_0x152b6,_0x544d84);let m=class extends _0x32b72d{constructor(_0x5e587b){var _0x2c91b3=_0xa90c6d;super(),this[_0x2c91b3(0x15f)]=_0x5e587b,this['_init']();}['_init'](){var _0x5a0902=_0xa90c6d;[_0x2837c7['id'],_0x5850d0['id'],_0x31c97b['id']][_0x5a0902(0x16e)](_0x1d0596=>{var _0x49f7df=_0x5a0902;this['disposeWithMe'](this[_0x49f7df(0x15f)][_0x49f7df(0x1e2)](_0x1d0596));});}};m=we([Ne(0x0,_0x4fee81(L))],m);var c=function(){var _0x376b11=_0xa90c6d;return c=Object[_0x376b11(0x1a6)]||function(_0x3dc585){var _0x3228d5=_0x376b11;for(var _0x486c60,_0x5a7304=0x1,_0x26bfe1=arguments['length'];_0x5a7304<_0x26bfe1;_0x5a7304++){_0x486c60=arguments[_0x5a7304];for(var _0x8d1401 in _0x486c60)Object[_0x3228d5(0x1a4)][_0x3228d5(0x19b)][_0x3228d5(0x1ea)](_0x486c60,_0x8d1401)&&(_0x3dc585[_0x8d1401]=_0x486c60[_0x8d1401]);}return _0x3dc585;},c[_0x376b11(0x144)](this,arguments);},Ce=function(_0x380d0a,_0x224a03){var _0x135b7f=_0xa90c6d,_0x3e7095={};for(var _0x5658d8 in _0x380d0a)Object[_0x135b7f(0x1a4)][_0x135b7f(0x19b)][_0x135b7f(0x1ea)](_0x380d0a,_0x5658d8)&&_0x224a03[_0x135b7f(0x179)](_0x5658d8)<0x0&&(_0x3e7095[_0x5658d8]=_0x380d0a[_0x5658d8]);if(_0x380d0a!=null&&typeof Object[_0x135b7f(0x1e3)]==_0x135b7f(0x157)){for(var _0x508855=0x0,_0x5658d8=Object[_0x135b7f(0x1e3)](_0x380d0a);_0x508855<_0x5658d8['length'];_0x508855++)_0x224a03[_0x135b7f(0x179)](_0x5658d8[_0x508855])<0x0&&Object[_0x135b7f(0x1a4)][_0x135b7f(0x14c)][_0x135b7f(0x1ea)](_0x380d0a,_0x5658d8[_0x508855])&&(_0x3e7095[_0x5658d8[_0x508855]]=_0x380d0a[_0x5658d8[_0x508855]]);}return _0x3e7095;},W=_0x27cf43(function(_0x427392,_0x641edd){var _0x54e547=_0xa90c6d,_0x16368a=_0x427392[_0x54e547(0x1d2)],_0xda3c42=_0x427392['id'],_0x151ef4=_0x427392['className'],_0x4833b9=_0x427392[_0x54e547(0x193)],_0x5b60b1=Ce(_0x427392,[_0x54e547(0x1d2),'id',_0x54e547(0x16a),'extend']),_0x37861a=_0x54e547(0x154)['concat'](_0xda3c42,'\x20')[_0x54e547(0x176)](_0x151ef4||'')['trim'](),_0x3ccee0=_0x15de42('_'[_0x54e547(0x176)](Le()));return Y(_0x16368a,''['concat'](_0xda3c42),{'defIds':_0x16368a[_0x54e547(0x177)],'idSuffix':_0x3ccee0[_0x54e547(0x1c5)]},c({'ref':_0x641edd,'className':_0x37861a},_0x5b60b1),_0x4833b9);});function Y(_0x256313,_0x768a62,_0xd44fc7,_0x4759e4,_0x3e41d3){var _0x3306a2=_0xa90c6d;return _0x59e572(_0x256313[_0x3306a2(0x183)],c(c({'key':_0x768a62},De(_0x256313,_0xd44fc7,_0x3e41d3)),_0x4759e4),(xe(_0x256313,_0xd44fc7)[_0x3306a2(0x152)]||[])[_0x3306a2(0x1e5)](function(_0x13bd70,_0x2ae32a){var _0x180b51=_0x3306a2;return Y(_0x13bd70,''[_0x180b51(0x176)](_0x768a62,'-')[_0x180b51(0x176)](_0x256313[_0x180b51(0x183)],'-')[_0x180b51(0x176)](_0x2ae32a),_0xd44fc7,void 0x0,_0x3e41d3);}));}function De(_0x4eddf8,_0x3fb2f8,_0x219529){var _0x48b751=_0xa90c6d,_0x11dde8=c({},_0x4eddf8[_0x48b751(0x15b)]);_0x219529!=null&&_0x219529[_0x48b751(0x1a7)]&&_0x11dde8[_0x48b751(0x1d5)]==='colorChannel1'&&(_0x11dde8[_0x48b751(0x1d5)]=_0x219529[_0x48b751(0x1a7)]),_0x4eddf8[_0x48b751(0x183)]===_0x48b751(0x172)&&_0x11dde8['id']&&(_0x11dde8['id']=_0x11dde8['id']+_0x3fb2f8[_0x48b751(0x1ad)]),Object[_0x48b751(0x165)](_0x11dde8)[_0x48b751(0x16e)](function(_0x25f878){var _0x2ad39c=_0x48b751,_0x379771=_0x25f878[0x0],_0x2d98a0=_0x25f878[0x1];_0x379771===_0x2ad39c(0x172)&&typeof _0x2d98a0==_0x2ad39c(0x156)&&(_0x11dde8[_0x379771]=_0x2d98a0[_0x2ad39c(0x19d)](/url\(#(.*)\)/,_0x2ad39c(0x1bf)[_0x2ad39c(0x176)](_0x3fb2f8[_0x2ad39c(0x1ad)],')')));});var _0x47dbe5=_0x3fb2f8[_0x48b751(0x177)];return!_0x47dbe5||_0x47dbe5[_0x48b751(0x1cf)]===0x0||(_0x4eddf8[_0x48b751(0x183)]==='use'&&_0x11dde8[_0x48b751(0x17e)]&&(_0x11dde8[_0x48b751(0x17e)]=_0x11dde8[_0x48b751(0x17e)]+_0x3fb2f8[_0x48b751(0x1ad)]),Object[_0x48b751(0x165)](_0x11dde8)[_0x48b751(0x16e)](function(_0x397519){var _0x225fca=_0x48b751,_0x43df4e=_0x397519[0x0],_0x571446=_0x397519[0x1];typeof _0x571446==_0x225fca(0x156)&&(_0x11dde8[_0x43df4e]=_0x571446[_0x225fca(0x19d)](/url\(#(.*)\)/,_0x225fca(0x1bf)[_0x225fca(0x176)](_0x3fb2f8[_0x225fca(0x1ad)],')')));})),_0x11dde8;}function xe(_0x146f04,_0x397df6){var _0x98c736=_0xa90c6d,_0x2c7875,_0x4282d3=_0x397df6['defIds'];return!_0x4282d3||_0x4282d3[_0x98c736(0x1cf)]===0x0?_0x146f04:_0x146f04[_0x98c736(0x183)]===_0x98c736(0x1dc)&&(!((_0x2c7875=_0x146f04['children'])===null||_0x2c7875===void 0x0)&&_0x2c7875[_0x98c736(0x1cf)])?c(c({},_0x146f04),{'children':_0x146f04[_0x98c736(0x152)][_0x98c736(0x1e5)](function(_0x286392){var _0x1c7a7f=_0x98c736;return typeof _0x286392['attrs']['id']=='string'&&_0x4282d3&&_0x4282d3['includes'](_0x286392[_0x1c7a7f(0x15b)]['id'])?c(c({},_0x286392),{'attrs':c(c({},_0x286392[_0x1c7a7f(0x15b)]),{'id':_0x286392[_0x1c7a7f(0x15b)]['id']+_0x397df6[_0x1c7a7f(0x1ad)]})}):_0x286392;})}):_0x146f04;}function _0x2bf6(_0x20984c,_0x35c9ac){var _0x2a254a=_0x2a25();return _0x2bf6=function(_0x2bf684,_0x505d61){_0x2bf684=_0x2bf684-0x13b;var _0x35777a=_0x2a254a[_0x2bf684];return _0x35777a;},_0x2bf6(_0x20984c,_0x35c9ac);}function Le(){var _0x127eea=_0xa90c6d;return Math[_0x127eea(0x15c)]()[_0x127eea(0x175)](0x24)[_0x127eea(0x13b)](0x2,0x8);}W[_0xa90c6d(0x143)]=_0xa90c6d(0x148);var ye={'tag':_0xa90c6d(0x18a),'attrs':{'xmlns':_0xa90c6d(0x1df),'fill':_0xa90c6d(0x1c2),'viewBox':_0xa90c6d(0x169),'width':_0xa90c6d(0x1a9),'height':_0xa90c6d(0x1a9)},'children':[{'tag':'path','attrs':{'fill':_0xa90c6d(0x178),'d':_0xa90c6d(0x166)}},{'tag':_0xa90c6d(0x159),'attrs':{'fill':_0xa90c6d(0x178),'d':_0xa90c6d(0x19e),'fillRule':_0xa90c6d(0x14e),'clipRule':_0xa90c6d(0x14e)}}]},B=_0x27cf43(function(_0x19af44,_0x5d7ba6){var _0x3d66f2=_0xa90c6d;return _0x59e572(W,Object[_0x3d66f2(0x1a6)]({},_0x19af44,{'id':_0x3d66f2(0x18f),'ref':_0x5d7ba6,'icon':ye}));});B[_0xa90c6d(0x143)]=_0xa90c6d(0x146);var Re=Object[_0xa90c6d(0x14d)],Z=(_0x54b4df,_0xce7bf9,_0x357dd3,_0x1c0a9a)=>{var _0x2d684f=_0xa90c6d;for(var _0x32b1b9=_0x1c0a9a>0x1?void 0x0:_0x1c0a9a?Re(_0xce7bf9,_0x357dd3):_0xce7bf9,_0xcd7d69=_0x54b4df[_0x2d684f(0x1cf)]-0x1,_0x1b2a2e;_0xcd7d69>=0x0;_0xcd7d69--)(_0x1b2a2e=_0x54b4df[_0xcd7d69])&&(_0x32b1b9=_0x1b2a2e(_0x32b1b9)||_0x32b1b9);return _0x32b1b9;},f=(_0x5c24ab,_0x1f3f61)=>(_0x333684,_0x3bd924)=>_0x1f3f61(_0x333684,_0x3bd924,_0x5c24ab);let I=class extends _0x440f57{constructor(_0x1d1a44,_0x4b5f35,_0x448669){var _0x424c9b=_0xa90c6d;super(),d(this,_0x424c9b(0x1d8),new Map()),(this[_0x424c9b(0x1ef)]=_0x1d1a44,this['_injector']=_0x4b5f35,this[_0x424c9b(0x145)]=_0x448669,this[_0x424c9b(0x1d0)]());}async['getLiveShareCoordinator'](_0x2fec68){var _0xb76540=_0xa90c6d;return this['_entities'][_0xb76540(0x16c)](_0x2fec68)||await this['_startLiveShareCoordinator'](_0x2fec68),this[_0xb76540(0x1d8)][_0xb76540(0x14f)](_0x2fec68);}[_0xa90c6d(0x1d0)](){var _0x4f0282=_0xa90c6d;this[_0x4f0282(0x1ef)][_0x4f0282(0x1b2)](_0xb60534[_0x4f0282(0x13f)])[_0x4f0282(0x1d7)](_0x3417f9(this[_0x4f0282(0x1cc)]))[_0x4f0282(0x19c)](async _0x527964=>{var _0x372263=_0x4f0282;const _0xe3b85e=_0x527964[_0x372263(0x1bd)]();this[_0x372263(0x1d8)][_0x372263(0x16c)](_0xe3b85e)||this[_0x372263(0x163)](_0xe3b85e);}),this[_0x4f0282(0x1ef)][_0x4f0282(0x15e)](_0xb60534[_0x4f0282(0x13f)])['pipe'](_0x3417f9(this['dispose$']))['subscribe'](_0x3de9c8=>{var _0x291ecb=_0x4f0282;const _0x5f0d19=_0x3de9c8['getUnitId'](),_0x3bd099=this[_0x291ecb(0x1d8)][_0x291ecb(0x14f)](_0x5f0d19);_0x3bd099==null||_0x3bd099[_0x291ecb(0x187)]();});}async[_0xa90c6d(0x163)](_0x5e9968){var _0x26a113=_0xa90c6d;const _0x20442c=await this[_0x26a113(0x145)][_0x26a113(0x1b6)](_0x5e9968),_0x149a38=this[_0x26a113(0x1e4)][_0x26a113(0x190)](C,_0x5e9968,_0x20442c);return _0x149a38[_0x26a113(0x1c8)](),this[_0x26a113(0x1d8)][_0x26a113(0x186)](_0x5e9968,_0x149a38),_0x149a38;}};I=Z([f(0x0,_0x2077bd),f(0x1,_0x4fee81(_0x36d884)),f(0x2,_0x4fee81(_0x53a076))],I);var h=(_0x36c09f=>(_0x36c09f[_0xa90c6d(0x16b)]=_0xa90c6d(0x1e1),_0x36c09f['IDLE']=_0xa90c6d(0x1c0),_0x36c09f['FOLLOWING']=_0xa90c6d(0x168),_0x36c09f[_0xa90c6d(0x1db)]=_0xa90c6d(0x1a0),_0x36c09f[_0xa90c6d(0x1e8)]=_0xa90c6d(0x1c1),_0x36c09f))(h||{});const Pe=_0xa90c6d(0x1b9),Ae=0xc8;let C=class extends _0x440f57{constructor(_0x4fa180,_0x1d40f4,_0x5f99d7,_0x170949,_0x3811c2){var _0x2bb825=_0xa90c6d;super(),d(this,_0x2bb825(0x147),new _0x2e884a('idle')),d(this,'status$',this[_0x2bb825(0x147)][_0x2bb825(0x185)]()),d(this,_0x2bb825(0x1d0),!0x1),d(this,_0x2bb825(0x1ee),null),d(this,_0x2bb825(0x1b8),null),(this[_0x2bb825(0x1e0)]=_0x4fa180,this[_0x2bb825(0x150)]=_0x1d40f4,this[_0x2bb825(0x151)]=_0x5f99d7,this[_0x2bb825(0x15f)]=_0x170949,this[_0x2bb825(0x14a)]=_0x3811c2);}get[_0xa90c6d(0x17f)](){var _0x16e468=_0xa90c6d;return this['_status$'][_0x16e468(0x1ec)]();}[_0xa90c6d(0x187)](){var _0x4502f2=_0xa90c6d,_0x412380;(_0x412380=this['_commandDisposable'])==null||_0x412380[_0x4502f2(0x187)](),this[_0x4502f2(0x147)][_0x4502f2(0x1cd)](_0x4502f2(0x1c0)),this[_0x4502f2(0x147)][_0x4502f2(0x17d)]();}[_0xa90c6d(0x1c8)](){var _0x36a34f=_0xa90c6d;this[_0x36a34f(0x1d0)]||(this[_0x36a34f(0x1d0)]=!0x0,this[_0x36a34f(0x150)]['sessionStatus$'][_0x36a34f(0x1d7)](_0x3417f9(this[_0x36a34f(0x1cc)]))[_0x36a34f(0x19c)](_0x4d2045=>{var _0x22fe12=_0x36a34f;switch(_0x4d2045){case _0x398ba3['OFFLINE']:this['_handleOffline']();break;case _0x398ba3[_0x22fe12(0x1c6)]:this['_handleOnline']();break;}}),this[_0x36a34f(0x150)][_0x36a34f(0x19f)][_0x36a34f(0x1d7)](_0x3417f9(this[_0x36a34f(0x1cc)]))[_0x36a34f(0x19c)](_0x51cb17=>{var _0x3b78fe=_0x36a34f;const {eventID:_0xfecf42}=_0x51cb17;switch(_0xfecf42){case _0x16cbd6[_0x3b78fe(0x195)]:this[_0x3b78fe(0x1a2)](_0x51cb17);break;case _0x16cbd6['LIVESHARE_OPERATION']:this['_handleOperation'](_0x51cb17);break;case _0x16cbd6[_0x3b78fe(0x1af)]:this['_handleTerminate']();break;case _0x16cbd6[_0x3b78fe(0x17a)]:this[_0x3b78fe(0x1eb)](_0x51cb17);break;}}));}[_0xa90c6d(0x1f2)](){var _0x55a4bf=_0xa90c6d;this[_0x55a4bf(0x150)][_0x55a4bf(0x141)]({'eventID':_0x16cbd6['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x55a4bf(0x1e0)],'userID':this['_collabSession'][_0x55a4bf(0x173)]()}},this['_unitID']);}[_0xa90c6d(0x1ae)](){var _0x314ef0=_0xa90c6d;this['_status']===_0x314ef0(0x1c1)&&(this[_0x314ef0(0x147)][_0x314ef0(0x1cd)](_0x314ef0(0x1c0)),this[_0x314ef0(0x150)][_0x314ef0(0x141)]({'eventID':_0x16cbd6[_0x314ef0(0x1af)],'data':{'unitID':this[_0x314ef0(0x1e0)]}},this[_0x314ef0(0x1e0)]));}[_0xa90c6d(0x1bb)](){var _0x1e4916=_0xa90c6d;this['_status']===_0x1e4916(0x1a0)&&(this[_0x1e4916(0x147)][_0x1e4916(0x1cd)](_0x1e4916(0x168)),this[_0x1e4916(0x18e)]());}['stopFollowing'](){var _0x303970=_0xa90c6d;this[_0x303970(0x17f)]===_0x303970(0x168)&&this[_0x303970(0x1d9)]();}[_0xa90c6d(0x1a2)](_0x31ea0a){var _0x5098fc=_0xa90c6d;const {presenter:_0x16f92f}=_0x31ea0a['data'],_0x3e2034=this['_collabSession'][_0x5098fc(0x173)]();this[_0x5098fc(0x1b8)]=_0x16f92f,_0x16f92f===_0x3e2034?(this[_0x5098fc(0x1d9)](),this[_0x5098fc(0x15a)]()):this[_0x5098fc(0x17f)]!=='not-following'&&(this[_0x5098fc(0x14b)](),this[_0x5098fc(0x18e)]());}[_0xa90c6d(0x1ca)](){var _0x79d2dd=_0xa90c6d;const _0x50a05e={'eventID':_0x16cbd6['LIVESHARE_FETCH_OPERATIONS']};this[_0x79d2dd(0x150)][_0x79d2dd(0x141)](_0x50a05e,this[_0x79d2dd(0x1e0)]);}[_0xa90c6d(0x1a3)](){var _0x3f023a=_0xa90c6d;this[_0x3f023a(0x1b8)]=null,this[_0x3f023a(0x17f)]!=='presenting'&&this[_0x3f023a(0x1b0)]();}['_handleNewChangeSets'](_0x167b34){var _0x45de4a=_0xa90c6d;if(this[_0x45de4a(0x17f)]===_0x45de4a(0x168)&&this['_presenter']===_0x167b34[_0x45de4a(0x158)]['memberID']){const _0x1748d8=_0x212d51(_0x167b34[_0x45de4a(0x158)])[_0x45de4a(0x171)]['reverse']()['find'](_0x18959a=>_0x18959a['id']===_0x240813['id']);if(_0x1748d8){const _0x204ce8=_0x1748d8[_0x45de4a(0x17c)][_0x45de4a(0x189)],_0x270675=_0x1748d8[_0x45de4a(0x17c)][_0x45de4a(0x1d4)]['id'];setTimeout(()=>{var _0x5c2d81=_0x45de4a;this['_commandService'][_0x5c2d81(0x170)](_0x31c97b['id'],{'unitId':_0x204ce8,'subUnitId':_0x270675},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x543f46=_0xa90c6d;this[_0x543f46(0x147)][_0x543f46(0x1cd)](_0x543f46(0x1c1));const _0x5d0751=new Map(),_0x53abef=this[_0x543f46(0x1ee)]=new _0x4a8d27();_0x53abef['add'](_0x10e967(()=>{var _0x2af4cf=_0x543f46;_0x5d0751[_0x2af4cf(0x16e)](_0x19519a=>_0x19519a[_0x2af4cf(0x17d)]()),_0x5d0751[_0x2af4cf(0x160)]();})),_0x53abef[_0x543f46(0x1c4)](this[_0x543f46(0x14a)][_0x543f46(0x1de)](_0x877e05=>{var _0x151268=_0x543f46,_0x5b93f5;if(_0x877e05[_0x151268(0x1e7)]!==_0xb22e4[_0x151268(0x194)]||!this[_0x151268(0x15f)][_0x151268(0x192)](_0x877e05['id']))return;const {id:_0x1b2102}=_0x877e05;let _0xb9ff30;_0x5d0751['has'](_0x1b2102)?_0xb9ff30=_0x5d0751[_0x151268(0x14f)](_0x1b2102):(_0xb9ff30=new _0x2d918b(),_0x5d0751[_0x151268(0x186)](_0x1b2102,_0xb9ff30),_0xb9ff30[_0x151268(0x1d7)](_0x4e02d5((_0x5b93f5=this[_0x151268(0x151)]['getConfig'](Pe))!=null?_0x5b93f5:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x151268(0x19c)](_0x277ad3=>{var _0x40df56=_0x151268;this[_0x40df56(0x150)]['send']({'eventID':_0x16cbd6['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x277ad3['id']]:{'id':_0x277ad3['id'],'params':JSON[_0x40df56(0x1f0)](_0x277ad3[_0x40df56(0x17c)])}}}},this[_0x40df56(0x1e0)]);})),_0xb9ff30[_0x151268(0x1cd)](_0x877e05);})),this['_liveShareService'][_0x543f46(0x162)](this[_0x543f46(0x1e0)])[_0x543f46(0x16e)](_0xd1f34d=>this[_0x543f46(0x150)]['send']({'eventID':_0x16cbd6['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x543f46(0x1e0)],'operations':{[_0xd1f34d['id']]:{'id':_0xd1f34d['id'],'params':JSON[_0x543f46(0x1f0)](_0xd1f34d[_0x543f46(0x17c)])}}}},this[_0x543f46(0x1e0)]));}[_0xa90c6d(0x14b)](){var _0x4ff27f=_0xa90c6d,_0x4b6e7a;this[_0x4ff27f(0x147)][_0x4ff27f(0x1cd)](_0x4ff27f(0x1c0)),(_0x4b6e7a=this[_0x4ff27f(0x1ee)])==null||_0x4b6e7a[_0x4ff27f(0x187)](),this[_0x4ff27f(0x1ee)]=null;}[_0xa90c6d(0x18e)](){var _0x3b472f=_0xa90c6d,_0x1670be;(_0x1670be=this['_commandDisposable'])==null||_0x1670be[_0x3b472f(0x187)](),this[_0x3b472f(0x147)][_0x3b472f(0x1cd)]('following');}[_0xa90c6d(0x1b0)](){var _0x1632bd=_0xa90c6d,_0x18ba1e;this[_0x1632bd(0x147)][_0x1632bd(0x1cd)](_0x1632bd(0x1c0)),(_0x18ba1e=this[_0x1632bd(0x1ee)])==null||_0x18ba1e[_0x1632bd(0x187)](),this[_0x1632bd(0x1ee)]=null;}['_stopFollowing'](){var _0xc0425b=_0xa90c6d,_0x2aef6f;this[_0xc0425b(0x147)][_0xc0425b(0x1cd)](_0xc0425b(0x1a0)),(_0x2aef6f=this['_commandDisposable'])==null||_0x2aef6f[_0xc0425b(0x187)]();}[_0xa90c6d(0x1aa)](_0x5dc96d){var _0x15167e=_0xa90c6d;if([_0x15167e(0x1c1),'not-following',_0x15167e(0x1e1)]['includes'](this['_status'])||!_0x5dc96d[_0x15167e(0x158)]['presenter']||_0x5dc96d[_0x15167e(0x158)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x15167e(0x1c0)&&this[_0x15167e(0x18e)]();const _0x27a29d=_0x5dc96d[_0x15167e(0x158)][_0x15167e(0x174)];Object[_0x15167e(0x1c7)](_0x27a29d)['forEach'](_0x2fde24=>{var _0x5a1b15=_0x15167e;this[_0x5a1b15(0x14a)][_0x5a1b15(0x170)](_0x2fde24['id'],_0x2fde24[_0x5a1b15(0x17c)]?JSON[_0x5a1b15(0x1a5)](_0x2fde24[_0x5a1b15(0x17c)]):null,{'fromCollab':!0x0});});}[_0xa90c6d(0x1b7)](){var _0x197c25=_0xa90c6d,_0x43f30a;this['_status$']['next'](_0x197c25(0x1e1)),(_0x43f30a=this[_0x197c25(0x1ee)])==null||_0x43f30a[_0x197c25(0x187)]();}[_0xa90c6d(0x1f1)](){var _0x2ddd23=_0xa90c6d;this['_status$'][_0x2ddd23(0x1cd)](_0x2ddd23(0x1c0)),this['_fetchOperations']();}};C=Z([f(0x2,_0x2c3bd8),f(0x3,_0x4fee81(L)),f(0x4,_0x3f70ed)],C);function Te(){var _0x460122=_0xa90c6d;const _0x2211b3=_0xb5df3(I),_0x3f6e7a=_0xb5df3(_0x2077bd),_0xadecf6=_0x1b95c7(()=>_0x3f6e7a['getCurrentTypeOfUnit$'](_0xb60534[_0x460122(0x13f)]),void 0x0,!0x1,[]),[_0x46437f,_0x45b518]=_0x14a6b0(null),[_0x120fe7,_0x440ad0]=_0x14a6b0(h[_0x460122(0x18c)]),_0x3882ef=_0x15de42(null);return _0x5d18ba(()=>(_0xadecf6&&_0x2211b3[_0x460122(0x182)](_0xadecf6[_0x460122(0x1bd)]())[_0x460122(0x17b)](_0x16c816=>{var _0xcc83d8=_0x460122;_0x45b518(_0x16c816),_0x3882ef[_0xcc83d8(0x1c5)]=_0x16c816[_0xcc83d8(0x140)]['subscribe'](_0x227c35=>{_0x440ad0(_0x227c35);});}),()=>{var _0x43c985=_0x460122,_0x5d00df;(_0x5d00df=_0x3882ef[_0x43c985(0x1c5)])==null||_0x5d00df[_0x43c985(0x164)](),_0x3882ef[_0x43c985(0x1c5)]=null;}),[_0xadecf6,_0x2211b3]),_0x46437f?_0x16d1ae(_0x15ccc4,{'align':_0x460122(0x161),'disabled':_0x120fe7===h['OFFLINE'],'className':_0x460122(0x1c3),'overlay':_0x16d1ae($e,{'status':_0x120fe7,'coordinator':_0x46437f}),'children':_0x16d1ae(_0x460122(0x167),{'className':_0x434840(_0x460122(0x1cb),{'univer-cursor-not-allowed':_0x120fe7===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x120fe7!==h[_0x460122(0x16b)]}),'type':_0x460122(0x167),'children':_0x16d1ae(B,{'className':_0x460122(0x180)})})}):null;}function $e(_0x90333f){var _0x4d0d41=_0xa90c6d;const {status:_0x40341e,coordinator:_0xc07cda}=_0x90333f;switch(_0x40341e){case h[_0x4d0d41(0x18c)]:return _0x16d1ae(Fe,{'coordinator':_0xc07cda});case h[_0x4d0d41(0x1bc)]:return _0x16d1ae(He,{'coordinator':_0xc07cda});case h[_0x4d0d41(0x1db)]:return _0x16d1ae(je,{'coordinator':_0xc07cda});case h[_0x4d0d41(0x16b)]:return _0x16d1ae(Ve,{});case h[_0x4d0d41(0x1e8)]:return _0x16d1ae(Ue,{'coordinator':_0xc07cda});default:return null;}}function Fe(_0xb5171e){var _0x585f54=_0xa90c6d;const {coordinator:_0x39aa6f}=_0xb5171e;return _0x293b98(_0x261c50,{'children':[_0x16d1ae(_0x585f54(0x1ba),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x585f54(0x1ab)}),_0x16d1ae(_0xeeec48,{'onClick':()=>_0x39aa6f[_0x585f54(0x1f2)](),'children':_0x585f54(0x1b4)})]});}function He(_0x140fe6){var _0x28a767=_0xa90c6d;const {coordinator:_0x3aea35}=_0x140fe6;return _0x293b98(_0x261c50,{'children':[_0x16d1ae(_0x28a767(0x1ba),{'className':_0x28a767(0x1b1),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x16d1ae(_0xeeec48,{'onClick':()=>_0x3aea35[_0x28a767(0x18b)](),'children':_0x28a767(0x1a8)})]});}function je(_0x4106a5){var _0x28f949=_0xa90c6d;const {coordinator:_0x5d59d6}=_0x4106a5;return _0x293b98(_0x261c50,{'children':[_0x16d1ae(_0x28f949(0x1ba),{'className':_0x28f949(0x1b1),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x16d1ae(_0xeeec48,{'variant':'text','onClick':()=>_0x5d59d6[_0x28f949(0x1bb)](),'children':'Start\x20following'})]});}function Ue(_0x8771fe){var _0x3d61ba=_0xa90c6d;const {coordinator:_0x52754f}=_0x8771fe;return _0x293b98(_0x261c50,{'children':[_0x16d1ae(_0x3d61ba(0x1ba),{'className':_0x3d61ba(0x1b1),'children':_0x3d61ba(0x1ce)}),_0x16d1ae(_0xeeec48,{'variant':_0x3d61ba(0x1d1),'onClick':()=>_0x52754f[_0x3d61ba(0x1ae)](),'children':_0x3d61ba(0x1d6)})]});}function Ve(){var _0x3ddf2a=_0xa90c6d;return _0x16d1ae(_0x261c50,{'children':_0x3ddf2a(0x1dd)});}var Me=Object[_0xa90c6d(0x14d)],ke=(_0x18608d,_0x49a464,_0x38af96,_0x3b205e)=>{var _0x47a5cc=_0xa90c6d;for(var _0x1319d0=_0x3b205e>0x1?void 0x0:_0x3b205e?Me(_0x49a464,_0x38af96):_0x49a464,_0x42e199=_0x18608d[_0x47a5cc(0x1cf)]-0x1,_0x306e1c;_0x42e199>=0x0;_0x42e199--)(_0x306e1c=_0x18608d[_0x42e199])&&(_0x1319d0=_0x306e1c(_0x1319d0)||_0x1319d0);return _0x1319d0;},$=(_0x37b8de,_0x46050a)=>(_0x1d5f6e,_0x46e523)=>_0x46050a(_0x1d5f6e,_0x46e523,_0x37b8de);let b=class extends _0x32b72d{constructor(_0x658425,_0x4eb523){var _0x26e9ed=_0xa90c6d;super(),this[_0x26e9ed(0x1e4)]=_0x658425,this[_0x26e9ed(0x1b3)]=_0x4eb523,this[_0x26e9ed(0x197)]();}[_0xa90c6d(0x197)](){var _0xf96cc2=_0xa90c6d;this[_0xf96cc2(0x181)](this[_0xf96cc2(0x1b3)][_0xf96cc2(0x1b5)](_0x34eb2b[_0xf96cc2(0x13d)],()=>_0x529405(Te,this[_0xf96cc2(0x1e4)])));}};b=ke([$(0x0,_0x4fee81(_0x36d884)),$(0x1,_0x5d78b2)],b);var Ge=Object[_0xa90c6d(0x1e6)],We=Object[_0xa90c6d(0x14d)],Ye=(_0x301ded,_0x53767c,_0x58a0b2)=>_0x53767c in _0x301ded?Ge(_0x301ded,_0x53767c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58a0b2}):_0x301ded[_0x53767c]=_0x58a0b2,Be=(_0xcdb8e2,_0x563332,_0x4ab887,_0x18e689)=>{var _0x40cec0=_0xa90c6d;for(var _0x28370f=_0x18e689>0x1?void 0x0:_0x18e689?We(_0x563332,_0x4ab887):_0x563332,_0x2f15e5=_0xcdb8e2[_0x40cec0(0x1cf)]-0x1,_0x532042;_0x2f15e5>=0x0;_0x2f15e5--)(_0x532042=_0xcdb8e2[_0x2f15e5])&&(_0x28370f=_0x532042(_0x28370f)||_0x28370f);return _0x28370f;},F=(_0x25e0e1,_0x2bb074)=>(_0x49c48e,_0xe1b51a)=>_0x2bb074(_0x49c48e,_0xe1b51a,_0x25e0e1),J=(_0xbbc46f,_0x13a050,_0x3fb974)=>Ye(_0xbbc46f,typeof _0x13a050!='symbol'?_0x13a050+'':_0x13a050,_0x3fb974);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x4cc6bc{constructor(_0x94f348=T,_0x3a1fb4,_0x64a1e7){var _0x338e5a=_0xa90c6d;super(),this[_0x338e5a(0x19a)]=_0x94f348,this[_0x338e5a(0x1e4)]=_0x3a1fb4,this[_0x338e5a(0x151)]=_0x64a1e7;const {..._0x4d33a6}=_0xec7fba({},T,this['_config']);this[_0x338e5a(0x151)][_0x338e5a(0x18d)](Oe,_0x4d33a6);}[_0xa90c6d(0x13c)](){var _0x393df7=_0xa90c6d;_0x2e0b50(this[_0x393df7(0x1e4)],_0x48d5c6([[L],[I],[m],[b]],this[_0x393df7(0x19a)][_0x393df7(0x1be)])),_0x3df283(this['_injector'],[[m]]);}[_0xa90c6d(0x191)](){var _0x499dc9=_0xa90c6d;_0x3df283(this[_0x499dc9(0x1e4)],[[b]]);}};J(O,_0xa90c6d(0x1e7),_0xb60534[_0xa90c6d(0x15d)]),J(O,_0xa90c6d(0x153),Ze),O=Be([_0x3448f0(_0x1942db),F(0x1,_0x4fee81(_0x36d884)),F(0x2,_0x2c3bd8)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x39ab13=_0x5b4e;(function(_0x4e18fe,_0x3276f1){var _0x473d31=_0x5b4e,_0x119e21=_0x4e18fe();while(!![]){try{var _0x2fd889=-parseInt(_0x473d31(0x1d5))/0x1*(-parseInt(_0x473d31(0x1d1))/0x2)+-parseInt(_0x473d31(0x210))/0x3+parseInt(_0x473d31(0x22b))/0x4*(-parseInt(_0x473d31(0x205))/0x5)+-parseInt(_0x473d31(0x1a7))/0x6+parseInt(_0x473d31(0x1f1))/0x7+-parseInt(_0x473d31(0x1d8))/0x8+-parseInt(_0x473d31(0x20d))/0x9*(-parseInt(_0x473d31(0x221))/0xa);if(_0x2fd889===_0x3276f1)break;else _0x119e21['push'](_0x119e21['shift']());}catch(_0x2661a4){_0x119e21['push'](_0x119e21['shift']());}}}(_0x4f5d,0x33119));var q=Object[_0x39ab13(0x24b)],z=(_0x445de6,_0x2df7e1,_0x3b046f)=>_0x2df7e1 in _0x445de6?q(_0x445de6,_0x2df7e1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b046f}):_0x445de6[_0x2df7e1]=_0x3b046f,d=(_0x3f6b24,_0x5b6c87,_0x49fe9a)=>z(_0x3f6b24,typeof _0x5b6c87!='symbol'?_0x5b6c87+'':_0x5b6c87,_0x49fe9a);import{CollaborationSessionService as _0x5ad299,SessionStatus as _0x2b95f4,UniverCollaborationClientPlugin as _0x4f1c65}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3e5697,toDisposable as _0x5013eb,Inject as _0x1c9dfb,IUniverInstanceService as _0x29d1ed,Injector as _0x464e72,IConfigService as _0x4d4248,ICommandService as _0x2a3247,RxDisposable as _0x22e39e,UniverInstanceType as _0x5c0cf1,DisposableCollection as _0x132033,CommandType as _0x16403c,DependentOn as _0x37ba34,Plugin as _0xd3dbe,merge as _0x42fa7a,registerDependencies as _0x2a0e63,mergeOverrideWithDependencies as _0x4d573,touchDependencies as _0x23c0a8}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x89ee5d,InsertSheetMutation as _0x1e530f}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x16daff,SetScrollOperation as _0x5dc59e}from'@univerjs/sheets-ui';import{useDependency as _0x222417,useObservable as _0x4c99ef,IUIPartsService as _0x253bf3,BuiltInUIPart as _0x2dcb19,connectInjector as _0x1dfa84}from'@univerjs/ui';import{jsx as _0x254265,jsxs as _0x4b2b03,Fragment as _0xf3a8cd}from'react/jsx-runtime';import{Dropdown as _0x313750,clsx as _0x3011bc,Button as _0x25a302}from'@univerjs/design';import{forwardRef as _0x5ed3cd,useRef as _0x2b93c5,createElement as _0x315ed0,useState as _0x5b9a8e,useEffect as _0x3c6202}from'react';import{CollaborationEvent as _0x48bb46,parseProtocolChangeset as _0x452197}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xe254f1,Subject as _0x14561}from'rxjs';import{takeUntil as _0x54001b,throttleTime as _0x11bdb2}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3e5697{constructor(){var _0x55c512=_0x39ab13;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x55c512(0x216),new Set());}[_0x39ab13(0x1b2)](_0x477b90){var _0x156745=_0x39ab13;return this[_0x156745(0x1ce)][_0x156745(0x200)](_0x477b90),_0x5013eb(()=>this[_0x156745(0x1ce)]['delete'](_0x477b90));}[_0x39ab13(0x229)](_0x53c423){var _0xff77b1=_0x39ab13;return this[_0xff77b1(0x216)][_0xff77b1(0x200)](_0x53c423),_0x5013eb(()=>this[_0xff77b1(0x216)][_0xff77b1(0x20b)](_0x53c423));}[_0x39ab13(0x224)](_0x1d1893){var _0x44ca5b=_0x39ab13;return this[_0x44ca5b(0x1ce)]['has'](_0x1d1893);}[_0x39ab13(0x22d)](_0x3f3396){var _0x3647c0=_0x39ab13;return Array[_0x3647c0(0x21d)](this[_0x3647c0(0x216)])['map'](_0x3044cb=>_0x3044cb(_0x3f3396));}}function _0x5b4e(_0x441251,_0x575071){var _0x4f5dea=_0x4f5d();return _0x5b4e=function(_0x5b4e2e,_0x201403){_0x5b4e2e=_0x5b4e2e-0x19d;var _0x3fa836=_0x4f5dea[_0x5b4e2e];return _0x3fa836;},_0x5b4e(_0x441251,_0x575071);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x54da9f,_0x515bf4,_0x517656,_0x49cbb8)=>{var _0x296b03=_0x39ab13;for(var _0x1e21db=_0x49cbb8>0x1?void 0x0:_0x49cbb8?Ee(_0x515bf4,_0x517656):_0x515bf4,_0x4db5e5=_0x54da9f[_0x296b03(0x1de)]-0x1,_0x3908ee;_0x4db5e5>=0x0;_0x4db5e5--)(_0x3908ee=_0x54da9f[_0x4db5e5])&&(_0x1e21db=_0x3908ee(_0x1e21db)||_0x1e21db);return _0x1e21db;},Ne=(_0xca5fed,_0x33e108)=>(_0x3f45a8,_0x3b09b2)=>_0x33e108(_0x3f45a8,_0x3b09b2,_0xca5fed);let m=class extends _0x3e5697{constructor(_0x2bd166){var _0x42c47f=_0x39ab13;super(),this[_0x42c47f(0x1ee)]=_0x2bd166,this[_0x42c47f(0x1f0)]();}['_init'](){var _0x3219d0=_0x39ab13;[_0x16daff['id'],_0x5dc59e['id'],_0x89ee5d['id']][_0x3219d0(0x1a2)](_0xd947e2=>{var _0x46d956=_0x3219d0;this[_0x46d956(0x1c0)](this[_0x46d956(0x1ee)][_0x46d956(0x1b2)](_0xd947e2));});}};m=we([Ne(0x0,_0x1c9dfb(L))],m);var c=function(){var _0x43aca1=_0x39ab13;return c=Object[_0x43aca1(0x1ef)]||function(_0x135b00){var _0x768c0=_0x43aca1;for(var _0x17d153,_0x2b33d0=0x1,_0x3ba329=arguments[_0x768c0(0x1de)];_0x2b33d0<_0x3ba329;_0x2b33d0++){_0x17d153=arguments[_0x2b33d0];for(var _0x3f9ab3 in _0x17d153)Object[_0x768c0(0x223)]['hasOwnProperty'][_0x768c0(0x1b9)](_0x17d153,_0x3f9ab3)&&(_0x135b00[_0x3f9ab3]=_0x17d153[_0x3f9ab3]);}return _0x135b00;},c['apply'](this,arguments);},Ce=function(_0x4b6d7f,_0x52ffce){var _0x29a860=_0x39ab13,_0x1e58bd={};for(var _0x2d3dfc in _0x4b6d7f)Object[_0x29a860(0x223)][_0x29a860(0x24f)][_0x29a860(0x1b9)](_0x4b6d7f,_0x2d3dfc)&&_0x52ffce[_0x29a860(0x1ad)](_0x2d3dfc)<0x0&&(_0x1e58bd[_0x2d3dfc]=_0x4b6d7f[_0x2d3dfc]);if(_0x4b6d7f!=null&&typeof Object[_0x29a860(0x21a)]==_0x29a860(0x1af)){for(var _0x54b65e=0x0,_0x2d3dfc=Object['getOwnPropertySymbols'](_0x4b6d7f);_0x54b65e<_0x2d3dfc['length'];_0x54b65e++)_0x52ffce[_0x29a860(0x1ad)](_0x2d3dfc[_0x54b65e])<0x0&&Object[_0x29a860(0x223)][_0x29a860(0x222)][_0x29a860(0x1b9)](_0x4b6d7f,_0x2d3dfc[_0x54b65e])&&(_0x1e58bd[_0x2d3dfc[_0x54b65e]]=_0x4b6d7f[_0x2d3dfc[_0x54b65e]]);}return _0x1e58bd;},W=_0x5ed3cd(function(_0x3f4609,_0x44ef17){var _0x5a3137=_0x39ab13,_0x31b750=_0x3f4609[_0x5a3137(0x1f8)],_0x2ca497=_0x3f4609['id'],_0x24a17b=_0x3f4609[_0x5a3137(0x1e1)],_0x565adb=_0x3f4609[_0x5a3137(0x1c2)],_0x425766=Ce(_0x3f4609,['icon','id',_0x5a3137(0x1e1),_0x5a3137(0x1c2)]),_0x2a44bc=_0x5a3137(0x1be)[_0x5a3137(0x208)](_0x2ca497,'\x20')[_0x5a3137(0x208)](_0x24a17b||'')[_0x5a3137(0x21c)](),_0x5f19d8=_0x2b93c5('_'[_0x5a3137(0x208)](Le()));return Y(_0x31b750,''['concat'](_0x2ca497),{'defIds':_0x31b750[_0x5a3137(0x23c)],'idSuffix':_0x5f19d8[_0x5a3137(0x1f6)]},c({'ref':_0x44ef17,'className':_0x2a44bc},_0x425766),_0x565adb);});function Y(_0x4cb8e8,_0x860e36,_0x776e4f,_0x22f651,_0x1c9d27){var _0x407a7c=_0x39ab13;return _0x315ed0(_0x4cb8e8[_0x407a7c(0x1a1)],c(c({'key':_0x860e36},De(_0x4cb8e8,_0x776e4f,_0x1c9d27)),_0x22f651),(xe(_0x4cb8e8,_0x776e4f)[_0x407a7c(0x1db)]||[])[_0x407a7c(0x19d)](function(_0x467962,_0x3c57d9){var _0x263110=_0x407a7c;return Y(_0x467962,''[_0x263110(0x208)](_0x860e36,'-')[_0x263110(0x208)](_0x4cb8e8['tag'],'-')[_0x263110(0x208)](_0x3c57d9),_0x776e4f,void 0x0,_0x1c9d27);}));}function De(_0x2a17da,_0x5caf67,_0x56933e){var _0x10f92d=_0x39ab13,_0x4dbd73=c({},_0x2a17da['attrs']);_0x56933e!=null&&_0x56933e[_0x10f92d(0x1d3)]&&_0x4dbd73[_0x10f92d(0x23d)]===_0x10f92d(0x1d3)&&(_0x4dbd73[_0x10f92d(0x23d)]=_0x56933e['colorChannel1']),_0x2a17da[_0x10f92d(0x1a1)]==='mask'&&_0x4dbd73['id']&&(_0x4dbd73['id']=_0x4dbd73['id']+_0x5caf67[_0x10f92d(0x1fa)]),Object[_0x10f92d(0x1fc)](_0x4dbd73)[_0x10f92d(0x1a2)](function(_0x3d66f2){var _0x23776f=_0x10f92d,_0x165b35=_0x3d66f2[0x0],_0x32e8db=_0x3d66f2[0x1];_0x165b35==='mask'&&typeof _0x32e8db==_0x23776f(0x201)&&(_0x4dbd73[_0x165b35]=_0x32e8db[_0x23776f(0x241)](/url\(#(.*)\)/,_0x23776f(0x1d4)[_0x23776f(0x208)](_0x5caf67['idSuffix'],')')));});var _0x441ead=_0x5caf67[_0x10f92d(0x23c)];return!_0x441ead||_0x441ead[_0x10f92d(0x1de)]===0x0||(_0x2a17da[_0x10f92d(0x1a1)]===_0x10f92d(0x240)&&_0x4dbd73[_0x10f92d(0x235)]&&(_0x4dbd73[_0x10f92d(0x235)]=_0x4dbd73['xlink:href']+_0x5caf67[_0x10f92d(0x1fa)]),Object[_0x10f92d(0x1fc)](_0x4dbd73)[_0x10f92d(0x1a2)](function(_0x2b2092){var _0x51912c=_0x10f92d,_0x645ba1=_0x2b2092[0x0],_0x2a9989=_0x2b2092[0x1];typeof _0x2a9989==_0x51912c(0x201)&&(_0x4dbd73[_0x645ba1]=_0x2a9989[_0x51912c(0x241)](/url\(#(.*)\)/,'url(#$1'[_0x51912c(0x208)](_0x5caf67[_0x51912c(0x1fa)],')')));})),_0x4dbd73;}function xe(_0x32bb4f,_0x3b1d29){var _0x510e2e=_0x39ab13,_0x57ebf6,_0x4a0980=_0x3b1d29['defIds'];return!_0x4a0980||_0x4a0980[_0x510e2e(0x1de)]===0x0?_0x32bb4f:_0x32bb4f[_0x510e2e(0x1a1)]==='defs'&&(!((_0x57ebf6=_0x32bb4f['children'])===null||_0x57ebf6===void 0x0)&&_0x57ebf6[_0x510e2e(0x1de)])?c(c({},_0x32bb4f),{'children':_0x32bb4f[_0x510e2e(0x1db)]['map'](function(_0x567bf1){var _0x16883b=_0x510e2e;return typeof _0x567bf1[_0x16883b(0x1c5)]['id']==_0x16883b(0x201)&&_0x4a0980&&_0x4a0980[_0x16883b(0x21f)](_0x567bf1['attrs']['id'])?c(c({},_0x567bf1),{'attrs':c(c({},_0x567bf1[_0x16883b(0x1c5)]),{'id':_0x567bf1[_0x16883b(0x1c5)]['id']+_0x3b1d29[_0x16883b(0x1fa)]})}):_0x567bf1;})}):_0x32bb4f;}function Le(){var _0x588479=_0x39ab13;return Math[_0x588479(0x1dc)]()[_0x588479(0x211)](0x24)[_0x588479(0x214)](0x2,0x8);}W[_0x39ab13(0x1fd)]=_0x39ab13(0x1d9);var ye={'tag':_0x39ab13(0x238),'attrs':{'xmlns':_0x39ab13(0x22c),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x39ab13(0x22e),'attrs':{'fill':_0x39ab13(0x1ac),'d':_0x39ab13(0x228)}},{'tag':_0x39ab13(0x22e),'attrs':{'fill':_0x39ab13(0x1ac),'d':_0x39ab13(0x1c7),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x5ed3cd(function(_0x32b528,_0x221a72){var _0x5885e1=_0x39ab13;return _0x315ed0(W,Object['assign']({},_0x32b528,{'id':_0x5885e1(0x1bf),'ref':_0x221a72,'icon':ye}));});B[_0x39ab13(0x1fd)]=_0x39ab13(0x1c1);var Re=Object[_0x39ab13(0x243)],Z=(_0x2858fb,_0x26827f,_0xdd19b8,_0x567ba4)=>{var _0x18d793=_0x39ab13;for(var _0x15ec61=_0x567ba4>0x1?void 0x0:_0x567ba4?Re(_0x26827f,_0xdd19b8):_0x26827f,_0x2a4c25=_0x2858fb[_0x18d793(0x1de)]-0x1,_0x213093;_0x2a4c25>=0x0;_0x2a4c25--)(_0x213093=_0x2858fb[_0x2a4c25])&&(_0x15ec61=_0x213093(_0x15ec61)||_0x15ec61);return _0x15ec61;},f=(_0x460c6f,_0x472ddb)=>(_0x4d57e4,_0x1bbe8c)=>_0x472ddb(_0x4d57e4,_0x1bbe8c,_0x460c6f);let I=class extends _0x22e39e{constructor(_0x4ee4b0,_0xaf01ea,_0x32de97){var _0x5dd880=_0x39ab13;super(),d(this,_0x5dd880(0x1c8),new Map()),(this[_0x5dd880(0x1b3)]=_0x4ee4b0,this[_0x5dd880(0x1a4)]=_0xaf01ea,this[_0x5dd880(0x247)]=_0x32de97,this[_0x5dd880(0x1f0)]());}async[_0x39ab13(0x1c9)](_0x4a8ddf){var _0x32c7a6=_0x39ab13;return this[_0x32c7a6(0x1c8)][_0x32c7a6(0x1d7)](_0x4a8ddf)||await this['_startLiveShareCoordinator'](_0x4a8ddf),this[_0x32c7a6(0x1c8)][_0x32c7a6(0x21b)](_0x4a8ddf);}['_init'](){var _0x21bc90=_0x39ab13;this[_0x21bc90(0x1b3)]['getTypeOfUnitAdded$'](_0x5c0cf1[_0x21bc90(0x219)])[_0x21bc90(0x1b7)](_0x54001b(this[_0x21bc90(0x1f2)]))[_0x21bc90(0x1f3)](async _0x5c2cc6=>{var _0x3e4434=_0x21bc90;const _0x2fe247=_0x5c2cc6[_0x3e4434(0x206)]();this[_0x3e4434(0x1c8)][_0x3e4434(0x1d7)](_0x2fe247)||this[_0x3e4434(0x1ca)](_0x2fe247);}),this[_0x21bc90(0x1b3)]['getTypeOfUnitDisposed$'](_0x5c0cf1[_0x21bc90(0x219)])[_0x21bc90(0x1b7)](_0x54001b(this[_0x21bc90(0x1f2)]))[_0x21bc90(0x1f3)](_0xf0c791=>{var _0x49478a=_0x21bc90;const _0x10c048=_0xf0c791[_0x49478a(0x206)](),_0x14c3c3=this[_0x49478a(0x1c8)][_0x49478a(0x21b)](_0x10c048);_0x14c3c3==null||_0x14c3c3[_0x49478a(0x1bd)]();});}async[_0x39ab13(0x1ca)](_0x11547e){var _0x4f0a69=_0x39ab13;const _0xcaa47b=await this[_0x4f0a69(0x247)][_0x4f0a69(0x24d)](_0x11547e),_0x576e89=this[_0x4f0a69(0x1a4)][_0x4f0a69(0x1d6)](C,_0x11547e,_0xcaa47b);return _0x576e89[_0x4f0a69(0x1e6)](),this[_0x4f0a69(0x1c8)]['set'](_0x11547e,_0x576e89),_0x576e89;}};I=Z([f(0x0,_0x29d1ed),f(0x1,_0x1c9dfb(_0x464e72)),f(0x2,_0x1c9dfb(_0x5ad299))],I);var h=(_0x127e0d=>(_0x127e0d[_0x39ab13(0x1c4)]=_0x39ab13(0x1dd),_0x127e0d[_0x39ab13(0x1f4)]=_0x39ab13(0x1cf),_0x127e0d[_0x39ab13(0x1ec)]=_0x39ab13(0x234),_0x127e0d['NOT_FOLLOWING']=_0x39ab13(0x24c),_0x127e0d[_0x39ab13(0x232)]='presenting',_0x127e0d))(h||{});const Pe=_0x39ab13(0x209),Ae=0xc8;let C=class extends _0x22e39e{constructor(_0x5dad62,_0x584743,_0x1cce1b,_0x243ee3,_0x347ba7){var _0x2ee09d=_0x39ab13;super(),d(this,_0x2ee09d(0x1b6),new _0xe254f1(_0x2ee09d(0x1cf))),d(this,_0x2ee09d(0x1a9),this[_0x2ee09d(0x1b6)][_0x2ee09d(0x1ae)]()),d(this,'_init',!0x1),d(this,_0x2ee09d(0x1b8),null),d(this,_0x2ee09d(0x1ea),null),(this[_0x2ee09d(0x202)]=_0x5dad62,this[_0x2ee09d(0x1bb)]=_0x584743,this[_0x2ee09d(0x1d2)]=_0x1cce1b,this[_0x2ee09d(0x1ee)]=_0x243ee3,this[_0x2ee09d(0x1ff)]=_0x347ba7);}get[_0x39ab13(0x1cb)](){var _0x228b18=_0x39ab13;return this[_0x228b18(0x1b6)][_0x228b18(0x20a)]();}[_0x39ab13(0x1bd)](){var _0x2ed2bf=_0x39ab13,_0x114227;(_0x114227=this[_0x2ed2bf(0x1b8)])==null||_0x114227[_0x2ed2bf(0x1bd)](),this['_status$'][_0x2ed2bf(0x1cc)](_0x2ed2bf(0x1cf)),this[_0x2ed2bf(0x1b6)][_0x2ed2bf(0x1fe)]();}[_0x39ab13(0x1e6)](){var _0x447967=_0x39ab13;this['_init']||(this[_0x447967(0x1f0)]=!0x0,this[_0x447967(0x1bb)][_0x447967(0x1a0)][_0x447967(0x1b7)](_0x54001b(this[_0x447967(0x1f2)]))['subscribe'](_0x4ecde6=>{switch(_0x4ecde6){case _0x2b95f4['OFFLINE']:this['_handleOffline']();break;case _0x2b95f4['ONLINE']:this['_handleOnline']();break;}}),this[_0x447967(0x1bb)][_0x447967(0x1a6)][_0x447967(0x1b7)](_0x54001b(this[_0x447967(0x1f2)]))[_0x447967(0x1f3)](_0x5d8123=>{var _0x576ab3=_0x447967;const {eventID:_0x2dc0a4}=_0x5d8123;switch(_0x2dc0a4){case _0x48bb46[_0x576ab3(0x1f7)]:this[_0x576ab3(0x226)](_0x5d8123);break;case _0x48bb46[_0x576ab3(0x1ab)]:this['_handleOperation'](_0x5d8123);break;case _0x48bb46[_0x576ab3(0x1bc)]:this[_0x576ab3(0x203)]();break;case _0x48bb46[_0x576ab3(0x1f9)]:this['_handleNewChangeSets'](_0x5d8123);break;}}));}[_0x39ab13(0x1c6)](){var _0x324e8d=_0x39ab13;this[_0x324e8d(0x1bb)]['send']({'eventID':_0x48bb46[_0x324e8d(0x24a)],'data':{'unitID':this[_0x324e8d(0x202)],'userID':this[_0x324e8d(0x1bb)][_0x324e8d(0x237)]()}},this['_unitID']);}['stopPresenting'](){var _0x189040=_0x39ab13;this['_status']===_0x189040(0x23e)&&(this[_0x189040(0x1b6)]['next'](_0x189040(0x1cf)),this[_0x189040(0x1bb)][_0x189040(0x1b5)]({'eventID':_0x48bb46[_0x189040(0x1bc)],'data':{'unitID':this[_0x189040(0x202)]}},this[_0x189040(0x202)]));}['startFollowing'](){var _0x33cc47=_0x39ab13;this[_0x33cc47(0x1cb)]===_0x33cc47(0x24c)&&(this[_0x33cc47(0x1b6)][_0x33cc47(0x1cc)](_0x33cc47(0x234)),this[_0x33cc47(0x249)]());}[_0x39ab13(0x1da)](){var _0x14df83=_0x39ab13;this[_0x14df83(0x1cb)]===_0x14df83(0x234)&&this[_0x14df83(0x1b4)]();}[_0x39ab13(0x226)](_0x3d5364){var _0x2d1187=_0x39ab13;const {presenter:_0x159323}=_0x3d5364[_0x2d1187(0x248)],_0x2e3c65=this[_0x2d1187(0x1bb)][_0x2d1187(0x237)]();this[_0x2d1187(0x1ea)]=_0x159323,_0x159323===_0x2e3c65?(this[_0x2d1187(0x1b4)](),this['_startPresenting']()):this[_0x2d1187(0x1cb)]!==_0x2d1187(0x24c)&&(this[_0x2d1187(0x1e5)](),this[_0x2d1187(0x249)]());}['_fetchOperations'](){var _0x153cc0=_0x39ab13;const _0x9b7e16={'eventID':_0x48bb46[_0x153cc0(0x1aa)]};this[_0x153cc0(0x1bb)][_0x153cc0(0x1b5)](_0x9b7e16,this[_0x153cc0(0x202)]);}['_handleTerminate'](){var _0x5e1c03=_0x39ab13;this[_0x5e1c03(0x1ea)]=null,this[_0x5e1c03(0x1cb)]!==_0x5e1c03(0x23e)&&this['_beIdle']();}[_0x39ab13(0x204)](_0xeb9bae){var _0x30f9ef=_0x39ab13;if(this['_status']===_0x30f9ef(0x234)&&this[_0x30f9ef(0x1ea)]===_0xeb9bae['data'][_0x30f9ef(0x239)]){const _0x485e06=_0x452197(_0xeb9bae[_0x30f9ef(0x248)])[_0x30f9ef(0x1b1)][_0x30f9ef(0x1a3)]()[_0x30f9ef(0x213)](_0x327d43=>_0x327d43['id']===_0x1e530f['id']);if(_0x485e06){const _0x17ec92=_0x485e06[_0x30f9ef(0x23b)][_0x30f9ef(0x242)],_0xfd9ce0=_0x485e06[_0x30f9ef(0x23b)][_0x30f9ef(0x217)]['id'];setTimeout(()=>{var _0x3bf54e=_0x30f9ef;this['_commandService'][_0x3bf54e(0x24e)](_0x89ee5d['id'],{'unitId':_0x17ec92,'subUnitId':_0xfd9ce0},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4f8fb3=_0x39ab13;this[_0x4f8fb3(0x1b6)][_0x4f8fb3(0x1cc)](_0x4f8fb3(0x23e));const _0x2a0a9a=new Map(),_0x37f4ae=this[_0x4f8fb3(0x1b8)]=new _0x132033();_0x37f4ae[_0x4f8fb3(0x200)](_0x5013eb(()=>{var _0x5623f1=_0x4f8fb3;_0x2a0a9a[_0x5623f1(0x1a2)](_0x583e00=>_0x583e00[_0x5623f1(0x1fe)]()),_0x2a0a9a[_0x5623f1(0x1ed)]();})),_0x37f4ae['add'](this[_0x4f8fb3(0x1ff)][_0x4f8fb3(0x1f5)](_0x46e4b3=>{var _0x32efe3=_0x4f8fb3,_0x1220d3;if(_0x46e4b3['type']!==_0x16403c[_0x32efe3(0x22a)]||!this[_0x32efe3(0x1ee)][_0x32efe3(0x224)](_0x46e4b3['id']))return;const {id:_0xa9123d}=_0x46e4b3;let _0x34f024;_0x2a0a9a['has'](_0xa9123d)?_0x34f024=_0x2a0a9a['get'](_0xa9123d):(_0x34f024=new _0x14561(),_0x2a0a9a[_0x32efe3(0x22f)](_0xa9123d,_0x34f024),_0x34f024[_0x32efe3(0x1b7)](_0x11bdb2((_0x1220d3=this['_configService'][_0x32efe3(0x244)](Pe))!=null?_0x1220d3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32efe3(0x1f3)](_0x1fd228=>{var _0x25230e=_0x32efe3;this[_0x25230e(0x1bb)][_0x25230e(0x1b5)]({'eventID':_0x48bb46[_0x25230e(0x1ab)],'data':{'unitID':this['_unitID'],'operations':{[_0x1fd228['id']]:{'id':_0x1fd228['id'],'params':JSON[_0x25230e(0x20f)](_0x1fd228['params'])}}}},this[_0x25230e(0x202)]);})),_0x34f024[_0x32efe3(0x1cc)](_0x46e4b3);})),this[_0x4f8fb3(0x1ee)]['getInitialStates'](this[_0x4f8fb3(0x202)])[_0x4f8fb3(0x1a2)](_0x3ab932=>this[_0x4f8fb3(0x1bb)][_0x4f8fb3(0x1b5)]({'eventID':_0x48bb46['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f8fb3(0x202)],'operations':{[_0x3ab932['id']]:{'id':_0x3ab932['id'],'params':JSON[_0x4f8fb3(0x20f)](_0x3ab932[_0x4f8fb3(0x23b)])}}}},this[_0x4f8fb3(0x202)]));}['_stopPresenting'](){var _0x3200d1=_0x39ab13,_0x1febda;this[_0x3200d1(0x1b6)]['next']('idle'),(_0x1febda=this[_0x3200d1(0x1b8)])==null||_0x1febda['dispose'](),this['_commandDisposable']=null;}[_0x39ab13(0x249)](){var _0x5920ef=_0x39ab13,_0x11f105;(_0x11f105=this[_0x5920ef(0x1b8)])==null||_0x11f105[_0x5920ef(0x1bd)](),this[_0x5920ef(0x1b6)]['next']('following');}[_0x39ab13(0x1ba)](){var _0x53d91a=_0x39ab13,_0x5cfd6d;this[_0x53d91a(0x1b6)][_0x53d91a(0x1cc)]('idle'),(_0x5cfd6d=this[_0x53d91a(0x1b8)])==null||_0x5cfd6d[_0x53d91a(0x1bd)](),this['_commandDisposable']=null;}[_0x39ab13(0x1b4)](){var _0x93ac13=_0x39ab13,_0x51967e;this[_0x93ac13(0x1b6)][_0x93ac13(0x1cc)](_0x93ac13(0x24c)),(_0x51967e=this[_0x93ac13(0x1b8)])==null||_0x51967e[_0x93ac13(0x1bd)]();}[_0x39ab13(0x21e)](_0xde4013){var _0x1c54f6=_0x39ab13;if(['presenting',_0x1c54f6(0x24c),'offline'][_0x1c54f6(0x21f)](this[_0x1c54f6(0x1cb)])||!_0xde4013[_0x1c54f6(0x248)][_0x1c54f6(0x23a)]||_0xde4013[_0x1c54f6(0x248)][_0x1c54f6(0x23a)]===this[_0x1c54f6(0x1bb)]['getMemberID']())return;this[_0x1c54f6(0x1cb)]==='idle'&&this[_0x1c54f6(0x249)]();const _0x587b04=_0xde4013[_0x1c54f6(0x248)]['operations'];Object[_0x1c54f6(0x1e2)](_0x587b04)[_0x1c54f6(0x1a2)](_0x121121=>{var _0x2526b4=_0x1c54f6;this[_0x2526b4(0x1ff)][_0x2526b4(0x24e)](_0x121121['id'],_0x121121[_0x2526b4(0x23b)]?JSON[_0x2526b4(0x225)](_0x121121['params']):null,{'fromCollab':!0x0});});}[_0x39ab13(0x23f)](){var _0x47179d=_0x39ab13,_0x35e674;this[_0x47179d(0x1b6)][_0x47179d(0x1cc)](_0x47179d(0x1dd)),(_0x35e674=this[_0x47179d(0x1b8)])==null||_0x35e674[_0x47179d(0x1bd)]();}['_handleOnline'](){var _0x99d950=_0x39ab13;this[_0x99d950(0x1b6)][_0x99d950(0x1cc)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x4d4248),f(0x3,_0x1c9dfb(L)),f(0x4,_0x2a3247)],C);function Te(){var _0x2ee89d=_0x39ab13;const _0x47efca=_0x222417(I),_0x509158=_0x222417(_0x29d1ed),_0x42fdad=_0x4c99ef(()=>_0x509158[_0x2ee89d(0x1e3)](_0x5c0cf1[_0x2ee89d(0x219)]),void 0x0,!0x1,[]),[_0x3469fe,_0x23efe8]=_0x5b9a8e(null),[_0xf75bf3,_0x170647]=_0x5b9a8e(h[_0x2ee89d(0x1f4)]),_0x44dfe4=_0x2b93c5(null);return _0x3c6202(()=>(_0x42fdad&&_0x47efca[_0x2ee89d(0x1c9)](_0x42fdad[_0x2ee89d(0x206)]())[_0x2ee89d(0x220)](_0x1f1c41=>{var _0x36f943=_0x2ee89d;_0x23efe8(_0x1f1c41),_0x44dfe4[_0x36f943(0x1f6)]=_0x1f1c41[_0x36f943(0x1a9)][_0x36f943(0x1f3)](_0x4043f2=>{_0x170647(_0x4043f2);});}),()=>{var _0x173d52=_0x2ee89d,_0x555445;(_0x555445=_0x44dfe4[_0x173d52(0x1f6)])==null||_0x555445[_0x173d52(0x19e)](),_0x44dfe4[_0x173d52(0x1f6)]=null;}),[_0x42fdad,_0x47efca]),_0x3469fe?_0x254265(_0x313750,{'align':'end','disabled':_0xf75bf3===h['OFFLINE'],'className':_0x2ee89d(0x1a5),'overlay':_0x254265($e,{'status':_0xf75bf3,'coordinator':_0x3469fe}),'children':_0x254265(_0x2ee89d(0x227),{'className':_0x3011bc(_0x2ee89d(0x233),{'univer-cursor-not-allowed':_0xf75bf3===h[_0x2ee89d(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xf75bf3!==h[_0x2ee89d(0x1c4)]}),'type':'button','children':_0x254265(B,{'className':_0x2ee89d(0x1fb)})})}):null;}function $e(_0x36206a){var _0x334c59=_0x39ab13;const {status:_0x4bacbe,coordinator:_0x5c0e03}=_0x36206a;switch(_0x4bacbe){case h[_0x334c59(0x1f4)]:return _0x254265(Fe,{'coordinator':_0x5c0e03});case h[_0x334c59(0x1ec)]:return _0x254265(He,{'coordinator':_0x5c0e03});case h[_0x334c59(0x231)]:return _0x254265(je,{'coordinator':_0x5c0e03});case h[_0x334c59(0x1c4)]:return _0x254265(Ve,{});case h[_0x334c59(0x232)]:return _0x254265(Ue,{'coordinator':_0x5c0e03});default:return null;}}function Fe(_0x50599f){var _0xbd76e7=_0x39ab13;const {coordinator:_0x405c0f}=_0x50599f;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265('div',{'className':_0xbd76e7(0x1e9),'children':_0xbd76e7(0x1df)}),_0x254265(_0x25a302,{'onClick':()=>_0x405c0f[_0xbd76e7(0x1c6)](),'children':_0xbd76e7(0x246)})]});}function He(_0xfa74a0){var _0x4eadf0=_0x39ab13;const {coordinator:_0x16177e}=_0xfa74a0;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x4eadf0(0x245),{'className':_0x4eadf0(0x1e9),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x254265(_0x25a302,{'onClick':()=>_0x16177e[_0x4eadf0(0x1da)](),'children':_0x4eadf0(0x1e8)})]});}function je(_0x53483e){var _0x2bbd17=_0x39ab13;const {coordinator:_0x3e560d}=_0x53483e;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x2bbd17(0x245),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2bbd17(0x1e0)}),_0x254265(_0x25a302,{'variant':_0x2bbd17(0x1e4),'onClick':()=>_0x3e560d[_0x2bbd17(0x1cd)](),'children':_0x2bbd17(0x1d0)})]});}function Ue(_0x46740c){var _0x51e54a=_0x39ab13;const {coordinator:_0x592d0a}=_0x46740c;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x51e54a(0x245),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x254265(_0x25a302,{'variant':_0x51e54a(0x1e7),'onClick':()=>_0x592d0a[_0x51e54a(0x1eb)](),'children':_0x51e54a(0x215)})]});}function Ve(){var _0x54696b=_0x39ab13;return _0x254265(_0xf3a8cd,{'children':_0x54696b(0x212)});}function _0x4f5d(){var _0x52ef5e=['defineProperty','not-following','requireSession','executeCommand','hasOwnProperty','map','unsubscribe','pluginName','sessionStatus$','tag','forEach','reverse','_injector','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','event$','1550298JIvGlb','symbol','status$','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_OPERATION','currentColor','indexOf','asObservable','function','registerComponent','mutations','registerSharedOperation','_univerInstanceService','_stopFollowing','send','_status$','pipe','_commandDisposable','call','_beIdle','_collabSession','LIVESHARE_TERMINATE','dispose','univerjs-icon\x20univerjs-icon-','live-share-icon','disposeWithMe','LiveShareIcon','extend','_config','OFFLINE','attrs','tryStartPresenting','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','_entities','getLiveShareCoordinator','_startLiveShareCoordinator','_status','next','startFollowing','_sharedOperations','idle','Start\x20following','475916pmBOag','_configService','colorChannel1','url(#$1','1pPiDnc','createInstance','has','568336lgjosb','UniverIcon','stopFollowing','children','random','offline','length','Present\x20this\x20document','You\x27re\x20not\x20following\x20the\x20presenter','className','values','getCurrentTypeOfUnit$','text','_stopPresenting','init','default','Stop\x20following','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','stopPresenting','FOLLOWING','clear','_liveShareService','assign','_init','1558452zpufdW','dispose$','subscribe','IDLE','onCommandExecuted','current','LIVESHARE_NEW_HOST','icon','NEW_CHANGESETS','idSuffix','univer-size-4','entries','displayName','complete','_commandService','add','string','_unitID','_handleTerminate','_handleNewChangeSets','1466935ojqjKd','getUnitId','_mountLiveShare','concat','SAME_OPERATION_SHARE_INTERVAL','getValue','delete','_uiPartsService','12807RsOHvJ','UNIVER_LIVE_SHARE_PLUGIN','stringify','683064gFhwpx','toString','You\x27are\x20offline.','find','substring','Stop\x20presenting','_reporters','sheet','onStarting','UNIVER_SHEET','getOwnPropertySymbols','get','trim','from','_handleOperation','includes','then','4210XDpahj','propertyIsEnumerable','prototype','shouldShareOperation','parse','_handleNewHost','button','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','registerInitialStateReporter','OPERATION','4tvRwtt','http://www.w3.org/2000/svg','getInitialStates','path','set','override','NOT_FOLLOWING','PRESENTING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','xlink:href','setConfig','getMemberID','svg','memberID','presenter','params','defIds','fill','presenting','_handleOffline','use','replace','unitId','getOwnPropertyDescriptor','getConfig','div','Start','_collabSessionService','data','_startFollowing','LIVESHARE_REQUEST_HOST'];_0x4f5d=function(){return _0x52ef5e;};return _0x4f5d();}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xfba11e,_0x4bd9f2,_0x431492,_0xa543ae)=>{for(var _0x51ea2c=_0xa543ae>0x1?void 0x0:_0xa543ae?Me(_0x4bd9f2,_0x431492):_0x4bd9f2,_0x29c71a=_0xfba11e['length']-0x1,_0x43b22a;_0x29c71a>=0x0;_0x29c71a--)(_0x43b22a=_0xfba11e[_0x29c71a])&&(_0x51ea2c=_0x43b22a(_0x51ea2c)||_0x51ea2c);return _0x51ea2c;},$=(_0x470529,_0x2a04b1)=>(_0x4208d8,_0x477cb7)=>_0x2a04b1(_0x4208d8,_0x477cb7,_0x470529);let b=class extends _0x3e5697{constructor(_0x53edff,_0x45a169){var _0x795cc4=_0x39ab13;super(),this[_0x795cc4(0x1a4)]=_0x53edff,this[_0x795cc4(0x20c)]=_0x45a169,this[_0x795cc4(0x207)]();}['_mountLiveShare'](){var _0x2abaff=_0x39ab13;this[_0x2abaff(0x1c0)](this['_uiPartsService'][_0x2abaff(0x1b0)](_0x2dcb19['HEADER_MENU'],()=>_0x1dfa84(Te,this[_0x2abaff(0x1a4)])));}};b=ke([$(0x0,_0x1c9dfb(_0x464e72)),$(0x1,_0x253bf3)],b);var Ge=Object[_0x39ab13(0x24b)],We=Object[_0x39ab13(0x243)],Ye=(_0x3b3ceb,_0x470f0a,_0x37827e)=>_0x470f0a in _0x3b3ceb?Ge(_0x3b3ceb,_0x470f0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37827e}):_0x3b3ceb[_0x470f0a]=_0x37827e,Be=(_0x1e092a,_0x1b2385,_0x2eb2ba,_0x65327d)=>{var _0x154b35=_0x39ab13;for(var _0x294265=_0x65327d>0x1?void 0x0:_0x65327d?We(_0x1b2385,_0x2eb2ba):_0x1b2385,_0x5aaa48=_0x1e092a[_0x154b35(0x1de)]-0x1,_0x1db196;_0x5aaa48>=0x0;_0x5aaa48--)(_0x1db196=_0x1e092a[_0x5aaa48])&&(_0x294265=_0x1db196(_0x294265)||_0x294265);return _0x294265;},F=(_0x2eed5b,_0x5ed84d)=>(_0xd65250,_0x52d0b2)=>_0x5ed84d(_0xd65250,_0x52d0b2,_0x2eed5b),J=(_0x41b937,_0x5ae394,_0x7cb0e8)=>Ye(_0x41b937,typeof _0x5ae394!=_0x39ab13(0x1a8)?_0x5ae394+'':_0x5ae394,_0x7cb0e8);const Ze=_0x39ab13(0x20e);let O=class extends _0xd3dbe{constructor(_0x473f5f=T,_0x5cd59d,_0x1c5835){var _0x195c9a=_0x39ab13;super(),this[_0x195c9a(0x1c3)]=_0x473f5f,this['_injector']=_0x5cd59d,this[_0x195c9a(0x1d2)]=_0x1c5835;const {..._0x2e27bd}=_0x42fa7a({},T,this['_config']);this[_0x195c9a(0x1d2)][_0x195c9a(0x236)](Oe,_0x2e27bd);}[_0x39ab13(0x218)](){var _0x4a004b=_0x39ab13;_0x2a0e63(this[_0x4a004b(0x1a4)],_0x4d573([[L],[I],[m],[b]],this[_0x4a004b(0x1c3)][_0x4a004b(0x230)])),_0x23c0a8(this[_0x4a004b(0x1a4)],[[m]]);}['onRendered'](){var _0x3085db=_0x39ab13;_0x23c0a8(this[_0x3085db(0x1a4)],[[b]]);}};J(O,'type',_0x5c0cf1['UNIVER_UNKNOWN']),J(O,_0x39ab13(0x19f),Ze),O=Be([_0x37ba34(_0x4f1c65),F(0x1,_0x1c9dfb(_0x464e72)),F(0x2,_0x4d4248)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x6b4e(_0x3e1cc9,_0x449737){var _0x1808cc=_0x1808();return _0x6b4e=function(_0x6b4e75,_0x31f851){_0x6b4e75=_0x6b4e75-0x168;var _0x1c26da=_0x1808cc[_0x6b4e75];return _0x1c26da;},_0x6b4e(_0x3e1cc9,_0x449737);}function _0x1808(){var _0x5d44d0=['907859aedxbM','DisposableCollection','memberID','getInitialStates','LIVESHARE_REQUEST_HOST','disposeWithMe','live-share.config','toStringTag','_liveShareService','div','_collabSession','NEW_CHANGESETS','UniverIcon','RxDisposable','Disposable','useObservable','exports','LIVESHARE_FETCH_OPERATIONS','6CblMQN','Dropdown','Inject','useEffect','getValue','_commandDisposable','live-share-icon','offline','CollaborationEvent','params','registerSharedOperation','getConfig','registerInitialStateReporter','jsx','rxjs/operators','_collabSessionService','UNIVER_UNKNOWN','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','989705SelGto','stringify','LiveShareIcon','getTypeOfUnitAdded$','none','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','Module','Fragment','useRef','6321516oSyHgo','_startFollowing','LiveShareCoordinator','extend','PRESENTING','LIVESHARE_TERMINATE','defs','indexOf','touchDependencies','registerDependencies','UniverLiveSharePlugin','stopFollowing','_handleTerminate','BehaviorSubject','merge','children','send','startFollowing','_unitID','dispose$','0\x200\x2017\x2017','createElement','init','map','LiveShareService','svg','_startLiveShareCoordinator','default','current','next','get','IDLE','className','shouldShareOperation','useDependency','_presenter','UniverInstanceType','_univerInstanceService','executeCommand','includes','@univerjs/sheets-ui','UniverProCollaborationClient','entries','idle','_reporters','trim','_status$','Start\x20following','status$','UniverProLiveShare','string','8065869CTUbIC','getTypeOfUnitDisposed$','LIVESHARE_NEW_HOST','colorChannel1','operators','@univerjs/sheets','assign','end','event$','currentColor','HEADER_MENU','UniverSheets','hasOwnProperty','clsx','getMemberID','asObservable','requireSession','prototype','pluginName','from','Subject','UNIVER_SHEET','button','IConfigService','http://www.w3.org/2000/svg','add','parseProtocolChangeset','InsertSheetMutation','fill','unsubscribe','You\x27re\x20following\x20the\x20presenter','4219275jkRmDm','Button','OPERATION','_stopFollowing','url(#$1','UNIVER_LIVE_SHARE_PLUGIN','_init','tryStartPresenting','text','then','takeUntil','UniverCore','dispose','mergeOverrideWithDependencies','substring','idSuffix','@univerjs/ui','35370fTfnGZ','_status','clear','_configService','displayName','Stop\x20following','_sharedOperations','getOwnPropertySymbols','following','propertyIsEnumerable','concat','rxjs','_fetchOperations','createInstance','8594456xHXzPo','find','onStarting','toDisposable','presenter','jsxs','_handleOperation','1em','UniverUi','evenodd','length','subscribe','pipe','stopPresenting','univerjs-icon\x20univerjs-icon-','throttleTime','react/jsx-runtime','sheet','set','apply','LIVESHARE_OPERATION','_commandService','call','defineProperty','getLiveShareCoordinator','_startPresenting','registerComponent','4DhnpGb','has','_uiPartsService','univer-size-4','Start','CommandType','React','SessionStatus','mask','You\x27re\x20presenting\x20the\x20document','SetScrollOperation','not-following','replace','operations','icon','_handleNewHost','ONLINE','LiveShareStatus','forEach','mutations','defIds','Plugin','react','presenting','function','OFFLINE','FOLLOWING','CollaborationSessionService','connectInjector','data','univer-mb-3\x20univer-w-full\x20univer-text-sm','tag','values','attrs','setConfig','override','type','You\x27re\x20not\x20following\x20the\x20presenter','You\x27are\x20offline.','getUnitId','@univerjs-pro/collaboration','DesktopLiveShareController','UniverDesign','onRendered','_handleOffline','_entities','@univerjs/design','@univerjs/core','BuiltInUIPart','_handleOnline','SetWorksheetActiveOperation','Injector','@univerjs-pro/collaboration-client','UniverProCollaboration','sessionStatus$','useState','_beIdle','SetZoomRatioOperation','_config','IUniverInstanceService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','xlink:href','_handleNewChangeSets','LiveShareController','unitId','UniverSheetsUi','2420usjwKT','_stopPresenting','_injector','NOT_FOLLOWING'];_0x1808=function(){return _0x5d44d0;};return _0x1808();}(function(_0x47615f,_0x37e0a7){var _0x4b27b4=_0x6b4e,_0x523d22=_0x47615f();while(!![]){try{var _0x4edc6f=-parseInt(_0x4b27b4(0x256))/0x1*(-parseInt(_0x4b27b4(0x210))/0x2)+parseInt(_0x4b27b4(0x1d6))/0x3+-parseInt(_0x4b27b4(0x184))/0x4+parseInt(_0x4b27b4(0x17a))/0x5+-parseInt(_0x4b27b4(0x168))/0x6*(-parseInt(_0x4b27b4(0x1b7))/0x7)+-parseInt(_0x4b27b4(0x1f5))/0x8+parseInt(_0x4b27b4(0x1e7))/0x9*(-parseInt(_0x4b27b4(0x252))/0xa);if(_0x4edc6f===_0x37e0a7)break;else _0x523d22['push'](_0x523d22['shift']());}catch(_0x253eb7){_0x523d22['push'](_0x523d22['shift']());}}}(_0x1808,0xebfcd),function(_0x1c86df,_0x10ee2e){var _0x1931d7=_0x6b4e;typeof exports=='object'&&typeof module<'u'?_0x10ee2e(exports,require(_0x1931d7(0x244)),require(_0x1931d7(0x23f)),require(_0x1931d7(0x1bc)),require(_0x1931d7(0x1ac)),require(_0x1931d7(0x1e6)),require(_0x1931d7(0x205)),require(_0x1931d7(0x23e)),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require(_0x1931d7(0x176))):typeof define==_0x1931d7(0x228)&&define['amd']?define([_0x1931d7(0x266),_0x1931d7(0x244),_0x1931d7(0x23f),_0x1931d7(0x1bc),_0x1931d7(0x1ac),_0x1931d7(0x1e6),_0x1931d7(0x205),_0x1931d7(0x23e),_0x1931d7(0x226),_0x1931d7(0x238),'rxjs',_0x1931d7(0x176)],_0x10ee2e):(_0x1c86df=typeof globalThis<'u'?globalThis:_0x1c86df||self,_0x10ee2e(_0x1c86df[_0x1931d7(0x1b5)]={},_0x1c86df[_0x1931d7(0x1ad)],_0x1c86df[_0x1931d7(0x1e1)],_0x1c86df[_0x1931d7(0x1c2)],_0x1c86df[_0x1931d7(0x251)],_0x1c86df[_0x1931d7(0x1fd)],_0x1c86df[_0x1931d7(0x216)],_0x1c86df[_0x1931d7(0x23a)],_0x1c86df[_0x1931d7(0x216)],_0x1c86df[_0x1931d7(0x245)],_0x1c86df[_0x1931d7(0x1f2)],_0x1c86df['rxjs'][_0x1931d7(0x1bb)]));}(this,function(_0x3ad8f7,_0x15e2a2,_0x5b774f,_0x392e98,_0x4badaf,_0x521b3e,_0x34392a,_0x4808f7,_0x5038e4,_0x319ba4,_0x208351,_0x4d83b4){'use strict';var _0x243e24=_0x6b4e;var _0x4d80f2=Object[_0x243e24(0x20c)],_0x223f4b=(_0x17dd18,_0x52b3cc,_0x385ed9)=>_0x52b3cc in _0x17dd18?_0x4d80f2(_0x17dd18,_0x52b3cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x385ed9}):_0x17dd18[_0x52b3cc]=_0x385ed9,_0x351725=(_0x4c780e,_0x12f387,_0x586393)=>_0x223f4b(_0x4c780e,typeof _0x12f387!='symbol'?_0x12f387+'':_0x12f387,_0x586393);const _0x24f26c=_0x243e24(0x25c),_0x121e35={};class _0x47ec1f extends _0x5b774f[_0x243e24(0x264)]{constructor(){var _0x3a9ab5=_0x243e24;super(...arguments),_0x351725(this,_0x3a9ab5(0x1ed),new Set()),_0x351725(this,'_reporters',new Set());}['registerSharedOperation'](_0xcdbc72){var _0x1925eb=_0x243e24;return this['_sharedOperations'][_0x1925eb(0x1d0)](_0xcdbc72),_0x5b774f[_0x1925eb(0x1f8)](()=>this[_0x1925eb(0x1ed)]['delete'](_0xcdbc72));}[_0x243e24(0x174)](_0x5af9c5){var _0x5d8734=_0x243e24;return this[_0x5d8734(0x1b0)][_0x5d8734(0x1d0)](_0x5af9c5),_0x5b774f[_0x5d8734(0x1f8)](()=>this['_reporters']['delete'](_0x5af9c5));}[_0x243e24(0x1a5)](_0x4c8a75){var _0x3ea1a3=_0x243e24;return this[_0x3ea1a3(0x1ed)][_0x3ea1a3(0x211)](_0x4c8a75);}[_0x243e24(0x259)](_0x2f9a2b){var _0xe1cb8f=_0x243e24;return Array[_0xe1cb8f(0x1ca)](this[_0xe1cb8f(0x1b0)])['map'](_0xe21536=>_0xe21536(_0x2f9a2b));}}var _0x477c2e=Object[_0x243e24(0x180)],_0x13b134=(_0x5eacfe,_0x1e67eb,_0x1518db,_0xbe9d1d)=>{var _0x2ded6e=_0x243e24;for(var _0x2c4fa=_0xbe9d1d>0x1?void 0x0:_0xbe9d1d?_0x477c2e(_0x1e67eb,_0x1518db):_0x1e67eb,_0x409290=_0x5eacfe[_0x2ded6e(0x1ff)]-0x1,_0x34bba5;_0x409290>=0x0;_0x409290--)(_0x34bba5=_0x5eacfe[_0x409290])&&(_0x2c4fa=_0x34bba5(_0x2c4fa)||_0x2c4fa);return _0x2c4fa;},_0x5f01d4=(_0xcd526a,_0x305cf7)=>(_0x1ddff3,_0x4516d7)=>_0x305cf7(_0x1ddff3,_0x4516d7,_0xcd526a);let _0x2b2601=class extends _0x5b774f[_0x243e24(0x264)]{constructor(_0x4702b7){var _0xbb955f=_0x243e24;super(),this['_liveShareService']=_0x4702b7,this[_0xbb955f(0x1dc)]();}[_0x243e24(0x1dc)](){var _0x1e72bc=_0x243e24;[_0x4badaf[_0x1e72bc(0x249)]['id'],_0x4badaf[_0x1e72bc(0x21a)]['id'],_0x392e98[_0x1e72bc(0x242)]['id']][_0x1e72bc(0x222)](_0x378221=>{var _0x552c10=_0x1e72bc;this['disposeWithMe'](this[_0x552c10(0x25e)][_0x552c10(0x172)](_0x378221));});}};_0x2b2601=_0x13b134([_0x5f01d4(0x0,_0x5b774f[_0x243e24(0x16a)](_0x47ec1f))],_0x2b2601);var _0x66607d=function(){var _0x131fed=_0x243e24;return _0x66607d=Object[_0x131fed(0x1bd)]||function(_0x24123f){var _0x9315d4=_0x131fed;for(var _0x4d25ad,_0x1a296f=0x1,_0x37ccf5=arguments[_0x9315d4(0x1ff)];_0x1a296f<_0x37ccf5;_0x1a296f++){_0x4d25ad=arguments[_0x1a296f];for(var _0x3aff2c in _0x4d25ad)Object[_0x9315d4(0x1c8)][_0x9315d4(0x1c3)][_0x9315d4(0x20b)](_0x4d25ad,_0x3aff2c)&&(_0x24123f[_0x3aff2c]=_0x4d25ad[_0x3aff2c]);}return _0x24123f;},_0x66607d[_0x131fed(0x208)](this,arguments);},_0x28c889=function(_0x287ba8,_0x45f91f){var _0x1b1a76=_0x243e24,_0x877f0e={};for(var _0x5a1c54 in _0x287ba8)Object[_0x1b1a76(0x1c8)]['hasOwnProperty'][_0x1b1a76(0x20b)](_0x287ba8,_0x5a1c54)&&_0x45f91f[_0x1b1a76(0x18b)](_0x5a1c54)<0x0&&(_0x877f0e[_0x5a1c54]=_0x287ba8[_0x5a1c54]);if(_0x287ba8!=null&&typeof Object[_0x1b1a76(0x1ee)]==_0x1b1a76(0x228)){for(var _0x208caa=0x0,_0x5a1c54=Object[_0x1b1a76(0x1ee)](_0x287ba8);_0x208caa<_0x5a1c54[_0x1b1a76(0x1ff)];_0x208caa++)_0x45f91f['indexOf'](_0x5a1c54[_0x208caa])<0x0&&Object[_0x1b1a76(0x1c8)][_0x1b1a76(0x1f0)]['call'](_0x287ba8,_0x5a1c54[_0x208caa])&&(_0x877f0e[_0x5a1c54[_0x208caa]]=_0x287ba8[_0x5a1c54[_0x208caa]]);}return _0x877f0e;},_0x1efb9a=_0x5038e4['forwardRef'](function(_0x32df72,_0xabeff9){var _0x2494c7=_0x243e24,_0x3da6d3=_0x32df72['icon'],_0x242a37=_0x32df72['id'],_0xc9b226=_0x32df72[_0x2494c7(0x1a4)],_0x3b5716=_0x32df72[_0x2494c7(0x187)],_0x3662ad=_0x28c889(_0x32df72,[_0x2494c7(0x21e),'id',_0x2494c7(0x1a4),_0x2494c7(0x187)]),_0x171208=_0x2494c7(0x203)[_0x2494c7(0x1f1)](_0x242a37,'\x20')[_0x2494c7(0x1f1)](_0xc9b226||'')[_0x2494c7(0x1b1)](),_0x14a60d=_0x5038e4[_0x2494c7(0x183)]('_'[_0x2494c7(0x1f1)](_0x25d744()));return _0x438986(_0x3da6d3,''[_0x2494c7(0x1f1)](_0x242a37),{'defIds':_0x3da6d3['defIds'],'idSuffix':_0x14a60d['current']},_0x66607d({'ref':_0xabeff9,'className':_0x171208},_0x3662ad),_0x3b5716);});function _0x438986(_0x41ca01,_0x1d330a,_0x539478,_0x5226f1,_0x4bf277){var _0x1af62b=_0x243e24;return _0x5038e4[_0x1af62b(0x199)](_0x41ca01['tag'],_0x66607d(_0x66607d({'key':_0x1d330a},_0x39dcf2(_0x41ca01,_0x539478,_0x4bf277)),_0x5226f1),(_0x20825f(_0x41ca01,_0x539478)[_0x1af62b(0x193)]||[])[_0x1af62b(0x19b)](function(_0x457dac,_0x57bf20){var _0x5277e5=_0x1af62b;return _0x438986(_0x457dac,''[_0x5277e5(0x1f1)](_0x1d330a,'-')['concat'](_0x41ca01[_0x5277e5(0x22f)],'-')[_0x5277e5(0x1f1)](_0x57bf20),_0x539478,void 0x0,_0x4bf277);}));}function _0x39dcf2(_0xebc5c3,_0x356c37,_0x1a6bbb){var _0x3efbfd=_0x243e24,_0x3a31f6=_0x66607d({},_0xebc5c3[_0x3efbfd(0x231)]);_0x1a6bbb!=null&&_0x1a6bbb[_0x3efbfd(0x1ba)]&&_0x3a31f6[_0x3efbfd(0x1d3)]===_0x3efbfd(0x1ba)&&(_0x3a31f6[_0x3efbfd(0x1d3)]=_0x1a6bbb[_0x3efbfd(0x1ba)]),_0xebc5c3[_0x3efbfd(0x22f)]===_0x3efbfd(0x218)&&_0x3a31f6['id']&&(_0x3a31f6['id']=_0x3a31f6['id']+_0x356c37[_0x3efbfd(0x1e5)]),Object['entries'](_0x3a31f6)['forEach'](function(_0x2aaa3e){var _0x2d3492=_0x3efbfd,_0xd974a=_0x2aaa3e[0x0],_0x3fb990=_0x2aaa3e[0x1];_0xd974a===_0x2d3492(0x218)&&typeof _0x3fb990==_0x2d3492(0x1b6)&&(_0x3a31f6[_0xd974a]=_0x3fb990[_0x2d3492(0x21c)](/url\(#(.*)\)/,_0x2d3492(0x1da)[_0x2d3492(0x1f1)](_0x356c37[_0x2d3492(0x1e5)],')')));});var _0x15a7fa=_0x356c37[_0x3efbfd(0x224)];return!_0x15a7fa||_0x15a7fa[_0x3efbfd(0x1ff)]===0x0||(_0xebc5c3[_0x3efbfd(0x22f)]==='use'&&_0x3a31f6['xlink:href']&&(_0x3a31f6[_0x3efbfd(0x24d)]=_0x3a31f6[_0x3efbfd(0x24d)]+_0x356c37[_0x3efbfd(0x1e5)]),Object[_0x3efbfd(0x1ae)](_0x3a31f6)[_0x3efbfd(0x222)](function(_0x4b1b1e){var _0xb02203=_0x3efbfd,_0x2419b3=_0x4b1b1e[0x0],_0xe5f0ae=_0x4b1b1e[0x1];typeof _0xe5f0ae==_0xb02203(0x1b6)&&(_0x3a31f6[_0x2419b3]=_0xe5f0ae[_0xb02203(0x21c)](/url\(#(.*)\)/,_0xb02203(0x1da)[_0xb02203(0x1f1)](_0x356c37[_0xb02203(0x1e5)],')')));})),_0x3a31f6;}function _0x20825f(_0x1eccf2,_0x304fd2){var _0x3bb238=_0x243e24,_0x453f74,_0x367db8=_0x304fd2[_0x3bb238(0x224)];return!_0x367db8||_0x367db8[_0x3bb238(0x1ff)]===0x0?_0x1eccf2:_0x1eccf2[_0x3bb238(0x22f)]===_0x3bb238(0x18a)&&(!((_0x453f74=_0x1eccf2[_0x3bb238(0x193)])===null||_0x453f74===void 0x0)&&_0x453f74[_0x3bb238(0x1ff)])?_0x66607d(_0x66607d({},_0x1eccf2),{'children':_0x1eccf2['children'][_0x3bb238(0x19b)](function(_0x3457c9){var _0x194a64=_0x3bb238;return typeof _0x3457c9['attrs']['id']==_0x194a64(0x1b6)&&_0x367db8&&_0x367db8[_0x194a64(0x1ab)](_0x3457c9[_0x194a64(0x231)]['id'])?_0x66607d(_0x66607d({},_0x3457c9),{'attrs':_0x66607d(_0x66607d({},_0x3457c9['attrs']),{'id':_0x3457c9[_0x194a64(0x231)]['id']+_0x304fd2[_0x194a64(0x1e5)]})}):_0x3457c9;})}):_0x1eccf2;}function _0x25d744(){var _0x47e518=_0x243e24;return Math['random']()['toString'](0x24)[_0x47e518(0x1e4)](0x2,0x8);}_0x1efb9a[_0x243e24(0x1eb)]=_0x243e24(0x262);var _0x2865a1={'tag':_0x243e24(0x19d),'attrs':{'xmlns':_0x243e24(0x1cf),'fill':_0x243e24(0x17e),'viewBox':_0x243e24(0x198),'width':_0x243e24(0x1fc),'height':_0x243e24(0x1fc)},'children':[{'tag':'path','attrs':{'fill':_0x243e24(0x1c0),'d':_0x243e24(0x179)}},{'tag':'path','attrs':{'fill':'currentColor','d':'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','fillRule':_0x243e24(0x1fe),'clipRule':_0x243e24(0x1fe)}}]},_0x19540b=_0x5038e4['forwardRef'](function(_0x32416a,_0x1256db){var _0x52c026=_0x243e24;return _0x5038e4[_0x52c026(0x199)](_0x1efb9a,Object[_0x52c026(0x1bd)]({},_0x32416a,{'id':_0x52c026(0x16e),'ref':_0x1256db,'icon':_0x2865a1}));});_0x19540b[_0x243e24(0x1eb)]=_0x243e24(0x17c);var _0x50fa10=Object['getOwnPropertyDescriptor'],_0x436451=(_0x32956f,_0x499084,_0x4a6b4b,_0x4c53de)=>{var _0x4e9186=_0x243e24;for(var _0x5ca747=_0x4c53de>0x1?void 0x0:_0x4c53de?_0x50fa10(_0x499084,_0x4a6b4b):_0x499084,_0x4ffa8a=_0x32956f[_0x4e9186(0x1ff)]-0x1,_0x6b988a;_0x4ffa8a>=0x0;_0x4ffa8a--)(_0x6b988a=_0x32956f[_0x4ffa8a])&&(_0x5ca747=_0x6b988a(_0x5ca747)||_0x5ca747);return _0x5ca747;},_0x1e8265=(_0x217473,_0x3a2de6)=>(_0x8abf1,_0x2d179b)=>_0x3a2de6(_0x8abf1,_0x2d179b,_0x217473);_0x3ad8f7['LiveShareController']=class extends _0x5b774f[_0x243e24(0x263)]{constructor(_0x17b2e7,_0xdbd3af,_0x1fb739){var _0x359785=_0x243e24;super(),_0x351725(this,_0x359785(0x23d),new Map()),(this['_univerInstanceService']=_0x17b2e7,this[_0x359785(0x254)]=_0xdbd3af,this['_collabSessionService']=_0x1fb739,this['_init']());}async['getLiveShareCoordinator'](_0x18b8b4){var _0x5a055e=_0x243e24;return this[_0x5a055e(0x23d)][_0x5a055e(0x211)](_0x18b8b4)||await this[_0x5a055e(0x19e)](_0x18b8b4),this[_0x5a055e(0x23d)][_0x5a055e(0x1a2)](_0x18b8b4);}['_init'](){var _0x382576=_0x243e24;this[_0x382576(0x1a9)][_0x382576(0x17d)](_0x5b774f['UniverInstanceType'][_0x382576(0x1cc)])[_0x382576(0x201)](_0x4d83b4['takeUntil'](this[_0x382576(0x197)]))[_0x382576(0x200)](async _0x2d5a52=>{var _0xa2d293=_0x382576;const _0x23e67d=_0x2d5a52['getUnitId']();this[_0xa2d293(0x23d)][_0xa2d293(0x211)](_0x23e67d)||this[_0xa2d293(0x19e)](_0x23e67d);}),this[_0x382576(0x1a9)][_0x382576(0x1b8)](_0x5b774f[_0x382576(0x1a8)][_0x382576(0x1cc)])['pipe'](_0x4d83b4[_0x382576(0x1e0)](this[_0x382576(0x197)]))[_0x382576(0x200)](_0xe64994=>{var _0x509afb=_0x382576;const _0x373d6f=_0xe64994['getUnitId'](),_0x33d7ae=this[_0x509afb(0x23d)][_0x509afb(0x1a2)](_0x373d6f);_0x33d7ae==null||_0x33d7ae['dispose']();});}async[_0x243e24(0x19e)](_0x2d159c){var _0x23374c=_0x243e24;const _0x20eb80=await this[_0x23374c(0x177)][_0x23374c(0x1c7)](_0x2d159c),_0xe08549=this[_0x23374c(0x254)][_0x23374c(0x1f4)](_0x3ad8f7[_0x23374c(0x186)],_0x2d159c,_0x20eb80);return _0xe08549[_0x23374c(0x19a)](),this['_entities'][_0x23374c(0x207)](_0x2d159c,_0xe08549),_0xe08549;}},_0x3ad8f7[_0x243e24(0x24f)]=_0x436451([_0x1e8265(0x0,_0x5b774f[_0x243e24(0x24b)]),_0x1e8265(0x1,_0x5b774f[_0x243e24(0x16a)](_0x5b774f['Injector'])),_0x1e8265(0x2,_0x5b774f[_0x243e24(0x16a)](_0x15e2a2[_0x243e24(0x22b)]))],_0x3ad8f7[_0x243e24(0x24f)]);var _0x187b5d=(_0x14f56e=>(_0x14f56e[_0x243e24(0x229)]=_0x243e24(0x16f),_0x14f56e['IDLE']=_0x243e24(0x1af),_0x14f56e[_0x243e24(0x22a)]=_0x243e24(0x1ef),_0x14f56e['NOT_FOLLOWING']=_0x243e24(0x21b),_0x14f56e['PRESENTING']=_0x243e24(0x227),_0x14f56e))(_0x187b5d||{});const _0x1ed86d='SAME_OPERATION_SHARE_INTERVAL',_0x253923=0xc8;_0x3ad8f7[_0x243e24(0x186)]=class extends _0x5b774f[_0x243e24(0x263)]{constructor(_0x37632f,_0x4fb569,_0xca753b,_0x32aeea,_0x380c31){var _0x352f2c=_0x243e24;super(),_0x351725(this,'_status$',new _0x208351[(_0x352f2c(0x191))](_0x352f2c(0x1af))),_0x351725(this,_0x352f2c(0x1b4),this[_0x352f2c(0x1b2)][_0x352f2c(0x1c6)]()),_0x351725(this,_0x352f2c(0x1dc),!0x1),_0x351725(this,_0x352f2c(0x16d),null),_0x351725(this,_0x352f2c(0x1a7),null),(this[_0x352f2c(0x196)]=_0x37632f,this['_collabSession']=_0x4fb569,this[_0x352f2c(0x1ea)]=_0xca753b,this[_0x352f2c(0x25e)]=_0x32aeea,this['_commandService']=_0x380c31);}get[_0x243e24(0x1e8)](){var _0xef97e=_0x243e24;return this[_0xef97e(0x1b2)][_0xef97e(0x16c)]();}[_0x243e24(0x1e2)](){var _0x158d27=_0x243e24,_0x13ed1a;(_0x13ed1a=this[_0x158d27(0x16d)])==null||_0x13ed1a['dispose'](),this[_0x158d27(0x1b2)][_0x158d27(0x1a1)]('idle'),this[_0x158d27(0x1b2)]['complete']();}[_0x243e24(0x19a)](){var _0x137380=_0x243e24;this[_0x137380(0x1dc)]||(this[_0x137380(0x1dc)]=!0x0,this[_0x137380(0x260)][_0x137380(0x246)][_0x137380(0x201)](_0x4d83b4[_0x137380(0x1e0)](this[_0x137380(0x197)]))[_0x137380(0x200)](_0x5e3a66=>{var _0x1815f7=_0x137380;switch(_0x5e3a66){case _0x15e2a2[_0x1815f7(0x217)]['OFFLINE']:this['_handleOffline']();break;case _0x15e2a2[_0x1815f7(0x217)][_0x1815f7(0x220)]:this[_0x1815f7(0x241)]();break;}}),this[_0x137380(0x260)][_0x137380(0x1bf)]['pipe'](_0x4d83b4[_0x137380(0x1e0)](this[_0x137380(0x197)]))[_0x137380(0x200)](_0x461724=>{var _0x46fbf1=_0x137380;const {eventID:_0x1b46fc}=_0x461724;switch(_0x1b46fc){case _0x319ba4[_0x46fbf1(0x170)][_0x46fbf1(0x1b9)]:this[_0x46fbf1(0x21f)](_0x461724);break;case _0x319ba4['CollaborationEvent'][_0x46fbf1(0x209)]:this[_0x46fbf1(0x1fb)](_0x461724);break;case _0x319ba4[_0x46fbf1(0x170)][_0x46fbf1(0x189)]:this[_0x46fbf1(0x190)]();break;case _0x319ba4[_0x46fbf1(0x170)][_0x46fbf1(0x261)]:this[_0x46fbf1(0x24e)](_0x461724);break;}}));}[_0x243e24(0x1dd)](){var _0x3e527f=_0x243e24;this[_0x3e527f(0x260)]['send']({'eventID':_0x319ba4['CollaborationEvent'][_0x3e527f(0x25a)],'data':{'unitID':this[_0x3e527f(0x196)],'userID':this[_0x3e527f(0x260)][_0x3e527f(0x1c5)]()}},this[_0x3e527f(0x196)]);}[_0x243e24(0x202)](){var _0x1fc6ef=_0x243e24;this[_0x1fc6ef(0x1e8)]===_0x1fc6ef(0x227)&&(this[_0x1fc6ef(0x1b2)][_0x1fc6ef(0x1a1)](_0x1fc6ef(0x1af)),this[_0x1fc6ef(0x260)][_0x1fc6ef(0x194)]({'eventID':_0x319ba4[_0x1fc6ef(0x170)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1fc6ef(0x196)]}},this[_0x1fc6ef(0x196)]));}[_0x243e24(0x195)](){var _0x4d40c5=_0x243e24;this['_status']===_0x4d40c5(0x21b)&&(this[_0x4d40c5(0x1b2)][_0x4d40c5(0x1a1)](_0x4d40c5(0x1ef)),this[_0x4d40c5(0x185)]());}[_0x243e24(0x18f)](){var _0x2bde54=_0x243e24;this[_0x2bde54(0x1e8)]==='following'&&this[_0x2bde54(0x1d9)]();}[_0x243e24(0x21f)](_0x505a8e){var _0x32bc9c=_0x243e24;const {presenter:_0x40e10b}=_0x505a8e[_0x32bc9c(0x22d)],_0x2c9f88=this[_0x32bc9c(0x260)][_0x32bc9c(0x1c5)]();this[_0x32bc9c(0x1a7)]=_0x40e10b,_0x40e10b===_0x2c9f88?(this[_0x32bc9c(0x1d9)](),this['_startPresenting']()):this[_0x32bc9c(0x1e8)]!==_0x32bc9c(0x21b)&&(this['_stopPresenting'](),this[_0x32bc9c(0x185)]());}['_fetchOperations'](){var _0x2aa38e=_0x243e24;const _0xd1691a={'eventID':_0x319ba4[_0x2aa38e(0x170)][_0x2aa38e(0x267)]};this[_0x2aa38e(0x260)][_0x2aa38e(0x194)](_0xd1691a,this[_0x2aa38e(0x196)]);}['_handleTerminate'](){var _0x3e66bd=_0x243e24;this[_0x3e66bd(0x1a7)]=null,this[_0x3e66bd(0x1e8)]!==_0x3e66bd(0x227)&&this[_0x3e66bd(0x248)]();}[_0x243e24(0x24e)](_0x51f00e){var _0x142805=_0x243e24;if(this[_0x142805(0x1e8)]==='following'&&this['_presenter']===_0x51f00e['data'][_0x142805(0x258)]){const _0x438f13=_0x319ba4[_0x142805(0x1d1)](_0x51f00e[_0x142805(0x22d)])[_0x142805(0x223)]['reverse']()[_0x142805(0x1f6)](_0x5463e2=>_0x5463e2['id']===_0x392e98[_0x142805(0x1d2)]['id']);if(_0x438f13){const _0x5f2a4e=_0x438f13[_0x142805(0x171)][_0x142805(0x250)],_0x5dd9f7=_0x438f13['params'][_0x142805(0x206)]['id'];setTimeout(()=>{var _0x3c1cd1=_0x142805;this['_commandService'][_0x3c1cd1(0x1aa)](_0x392e98['SetWorksheetActiveOperation']['id'],{'unitId':_0x5f2a4e,'subUnitId':_0x5dd9f7},{'fromCollab':!0x0});});}}}[_0x243e24(0x20e)](){var _0x3b18e8=_0x243e24;this['_status$'][_0x3b18e8(0x1a1)](_0x3b18e8(0x227));const _0x3fcecb=new Map(),_0x464494=this[_0x3b18e8(0x16d)]=new _0x5b774f[(_0x3b18e8(0x257))]();_0x464494['add'](_0x5b774f[_0x3b18e8(0x1f8)](()=>{var _0x40a45d=_0x3b18e8;_0x3fcecb[_0x40a45d(0x222)](_0x57afba=>_0x57afba['complete']()),_0x3fcecb[_0x40a45d(0x1e9)]();})),_0x464494[_0x3b18e8(0x1d0)](this['_commandService']['onCommandExecuted'](_0x32ecab=>{var _0x499d3a=_0x3b18e8,_0x13375a;if(_0x32ecab[_0x499d3a(0x234)]!==_0x5b774f[_0x499d3a(0x215)][_0x499d3a(0x1d8)]||!this[_0x499d3a(0x25e)][_0x499d3a(0x1a5)](_0x32ecab['id']))return;const {id:_0x422f2c}=_0x32ecab;let _0x3396e1;_0x3fcecb[_0x499d3a(0x211)](_0x422f2c)?_0x3396e1=_0x3fcecb['get'](_0x422f2c):(_0x3396e1=new _0x208351[(_0x499d3a(0x1cb))](),_0x3fcecb['set'](_0x422f2c,_0x3396e1),_0x3396e1[_0x499d3a(0x201)](_0x4d83b4[_0x499d3a(0x204)]((_0x13375a=this[_0x499d3a(0x1ea)][_0x499d3a(0x173)](_0x1ed86d))!=null?_0x13375a:_0x253923,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4d8852=>{var _0x5abfc9=_0x499d3a;this[_0x5abfc9(0x260)][_0x5abfc9(0x194)]({'eventID':_0x319ba4[_0x5abfc9(0x170)][_0x5abfc9(0x209)],'data':{'unitID':this[_0x5abfc9(0x196)],'operations':{[_0x4d8852['id']]:{'id':_0x4d8852['id'],'params':JSON[_0x5abfc9(0x17b)](_0x4d8852[_0x5abfc9(0x171)])}}}},this['_unitID']);})),_0x3396e1[_0x499d3a(0x1a1)](_0x32ecab);})),this[_0x3b18e8(0x25e)][_0x3b18e8(0x259)](this[_0x3b18e8(0x196)])['forEach'](_0x37c564=>this[_0x3b18e8(0x260)][_0x3b18e8(0x194)]({'eventID':_0x319ba4[_0x3b18e8(0x170)][_0x3b18e8(0x209)],'data':{'unitID':this['_unitID'],'operations':{[_0x37c564['id']]:{'id':_0x37c564['id'],'params':JSON[_0x3b18e8(0x17b)](_0x37c564[_0x3b18e8(0x171)])}}}},this[_0x3b18e8(0x196)]));}[_0x243e24(0x253)](){var _0x3f2301=_0x243e24,_0x538607;this[_0x3f2301(0x1b2)][_0x3f2301(0x1a1)](_0x3f2301(0x1af)),(_0x538607=this[_0x3f2301(0x16d)])==null||_0x538607[_0x3f2301(0x1e2)](),this[_0x3f2301(0x16d)]=null;}[_0x243e24(0x185)](){var _0x512e4e=_0x243e24,_0x19dbe3;(_0x19dbe3=this['_commandDisposable'])==null||_0x19dbe3['dispose'](),this[_0x512e4e(0x1b2)][_0x512e4e(0x1a1)](_0x512e4e(0x1ef));}[_0x243e24(0x248)](){var _0x42117c=_0x243e24,_0x468a4a;this[_0x42117c(0x1b2)][_0x42117c(0x1a1)](_0x42117c(0x1af)),(_0x468a4a=this[_0x42117c(0x16d)])==null||_0x468a4a[_0x42117c(0x1e2)](),this[_0x42117c(0x16d)]=null;}[_0x243e24(0x1d9)](){var _0x33f472=_0x243e24,_0x2edff3;this[_0x33f472(0x1b2)][_0x33f472(0x1a1)](_0x33f472(0x21b)),(_0x2edff3=this[_0x33f472(0x16d)])==null||_0x2edff3[_0x33f472(0x1e2)]();}['_handleOperation'](_0x50e1ce){var _0x10c16d=_0x243e24;if([_0x10c16d(0x227),_0x10c16d(0x21b),_0x10c16d(0x16f)]['includes'](this[_0x10c16d(0x1e8)])||!_0x50e1ce['data'][_0x10c16d(0x1f9)]||_0x50e1ce[_0x10c16d(0x22d)][_0x10c16d(0x1f9)]===this[_0x10c16d(0x260)][_0x10c16d(0x1c5)]())return;this[_0x10c16d(0x1e8)]===_0x10c16d(0x1af)&&this[_0x10c16d(0x185)]();const _0x507a6d=_0x50e1ce['data'][_0x10c16d(0x21d)];Object[_0x10c16d(0x230)](_0x507a6d)[_0x10c16d(0x222)](_0x244fc5=>{var _0x527fd1=_0x10c16d;this[_0x527fd1(0x20a)][_0x527fd1(0x1aa)](_0x244fc5['id'],_0x244fc5[_0x527fd1(0x171)]?JSON['parse'](_0x244fc5[_0x527fd1(0x171)]):null,{'fromCollab':!0x0});});}[_0x243e24(0x23c)](){var _0x60dbf0=_0x243e24,_0x19bfaa;this[_0x60dbf0(0x1b2)][_0x60dbf0(0x1a1)]('offline'),(_0x19bfaa=this[_0x60dbf0(0x16d)])==null||_0x19bfaa['dispose']();}[_0x243e24(0x241)](){var _0x51477c=_0x243e24;this[_0x51477c(0x1b2)]['next'](_0x51477c(0x1af)),this[_0x51477c(0x1f3)]();}},_0x3ad8f7[_0x243e24(0x186)]=_0x436451([_0x1e8265(0x2,_0x5b774f[_0x243e24(0x1ce)]),_0x1e8265(0x3,_0x5b774f['Inject'](_0x47ec1f)),_0x1e8265(0x4,_0x5b774f['ICommandService'])],_0x3ad8f7[_0x243e24(0x186)]);function _0x5a63e2(){var _0x10559b=_0x243e24;const _0x1893ae=_0x521b3e[_0x10559b(0x1a6)](_0x3ad8f7['LiveShareController']),_0x5c3b40=_0x521b3e['useDependency'](_0x5b774f[_0x10559b(0x24b)]),_0x34b869=_0x521b3e[_0x10559b(0x265)](()=>_0x5c3b40['getCurrentTypeOfUnit$'](_0x5b774f[_0x10559b(0x1a8)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1d5055,_0x3267ca]=_0x5038e4['useState'](null),[_0x14daec,_0x1834eb]=_0x5038e4[_0x10559b(0x247)](_0x187b5d[_0x10559b(0x1a3)]),_0x51d6b5=_0x5038e4[_0x10559b(0x183)](null);return _0x5038e4[_0x10559b(0x16b)](()=>(_0x34b869&&_0x1893ae[_0x10559b(0x20d)](_0x34b869[_0x10559b(0x237)]())[_0x10559b(0x1df)](_0x2aa0d7=>{var _0x8d3da3=_0x10559b;_0x3267ca(_0x2aa0d7),_0x51d6b5[_0x8d3da3(0x1a0)]=_0x2aa0d7[_0x8d3da3(0x1b4)][_0x8d3da3(0x200)](_0x2bf66f=>{_0x1834eb(_0x2bf66f);});}),()=>{var _0x36f20f=_0x10559b,_0x1f7780;(_0x1f7780=_0x51d6b5[_0x36f20f(0x1a0)])==null||_0x1f7780[_0x36f20f(0x1d4)](),_0x51d6b5[_0x36f20f(0x1a0)]=null;}),[_0x34b869,_0x1893ae]),_0x1d5055?_0x34392a[_0x10559b(0x175)](_0x4808f7[_0x10559b(0x169)],{'align':_0x10559b(0x1be),'disabled':_0x14daec===_0x187b5d[_0x10559b(0x229)],'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':_0x34392a[_0x10559b(0x175)](_0x494a72,{'status':_0x14daec,'coordinator':_0x1d5055}),'children':_0x34392a[_0x10559b(0x175)]('button',{'className':_0x4808f7[_0x10559b(0x1c4)](_0x10559b(0x24c),{'univer-cursor-not-allowed':_0x14daec===_0x187b5d[_0x10559b(0x229)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x14daec!==_0x187b5d['OFFLINE']}),'type':_0x10559b(0x1cd),'children':_0x34392a[_0x10559b(0x175)](_0x19540b,{'className':_0x10559b(0x213)})})}):null;}function _0x494a72(_0x4eefdd){var _0x10744c=_0x243e24;const {status:_0x8bde8f,coordinator:_0x1761a7}=_0x4eefdd;switch(_0x8bde8f){case _0x187b5d[_0x10744c(0x1a3)]:return _0x34392a[_0x10744c(0x175)](_0x2917f6,{'coordinator':_0x1761a7});case _0x187b5d[_0x10744c(0x22a)]:return _0x34392a[_0x10744c(0x175)](_0x46c9d8,{'coordinator':_0x1761a7});case _0x187b5d[_0x10744c(0x255)]:return _0x34392a['jsx'](_0x49a3fd,{'coordinator':_0x1761a7});case _0x187b5d[_0x10744c(0x229)]:return _0x34392a[_0x10744c(0x175)](_0x86b3eb,{});case _0x187b5d[_0x10744c(0x188)]:return _0x34392a[_0x10744c(0x175)](_0x439fa0,{'coordinator':_0x1761a7});default:return null;}}function _0x2917f6(_0x528fe6){var _0x526360=_0x243e24;const {coordinator:_0x5ba58a}=_0x528fe6;return _0x34392a[_0x526360(0x1fa)](_0x34392a['Fragment'],{'children':[_0x34392a[_0x526360(0x175)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x34392a['jsx'](_0x4808f7[_0x526360(0x1d7)],{'onClick':()=>_0x5ba58a[_0x526360(0x1dd)](),'children':_0x526360(0x214)})]});}function _0x46c9d8(_0x57faa7){var _0x317acd=_0x243e24;const {coordinator:_0x1c3a2a}=_0x57faa7;return _0x34392a['jsxs'](_0x34392a[_0x317acd(0x182)],{'children':[_0x34392a[_0x317acd(0x175)]('div',{'className':_0x317acd(0x22e),'children':_0x317acd(0x1d5)}),_0x34392a[_0x317acd(0x175)](_0x4808f7[_0x317acd(0x1d7)],{'onClick':()=>_0x1c3a2a[_0x317acd(0x18f)](),'children':_0x317acd(0x1ec)})]});}function _0x49a3fd(_0x2e4641){var _0xf6877=_0x243e24;const {coordinator:_0x3a64bc}=_0x2e4641;return _0x34392a[_0xf6877(0x1fa)](_0x34392a[_0xf6877(0x182)],{'children':[_0x34392a[_0xf6877(0x175)](_0xf6877(0x25f),{'className':_0xf6877(0x22e),'children':_0xf6877(0x235)}),_0x34392a['jsx'](_0x4808f7['Button'],{'variant':_0xf6877(0x1de),'onClick':()=>_0x3a64bc['startFollowing'](),'children':_0xf6877(0x1b3)})]});}function _0x439fa0(_0x56d780){var _0xd934=_0x243e24;const {coordinator:_0x5688c7}=_0x56d780;return _0x34392a[_0xd934(0x1fa)](_0x34392a[_0xd934(0x182)],{'children':[_0x34392a[_0xd934(0x175)](_0xd934(0x25f),{'className':_0xd934(0x22e),'children':_0xd934(0x219)}),_0x34392a['jsx'](_0x4808f7[_0xd934(0x1d7)],{'variant':_0xd934(0x19f),'onClick':()=>_0x5688c7[_0xd934(0x202)](),'children':'Stop\x20presenting'})]});}function _0x86b3eb(){var _0x3202ee=_0x243e24;return _0x34392a[_0x3202ee(0x175)](_0x34392a['Fragment'],{'children':_0x3202ee(0x236)});}var _0x384c3a=Object[_0x243e24(0x180)],_0x5423a0=(_0x231115,_0x40cb6f,_0x9946df,_0x39e059)=>{var _0x31d947=_0x243e24;for(var _0x2cd9ac=_0x39e059>0x1?void 0x0:_0x39e059?_0x384c3a(_0x40cb6f,_0x9946df):_0x40cb6f,_0x559329=_0x231115[_0x31d947(0x1ff)]-0x1,_0x165c7d;_0x559329>=0x0;_0x559329--)(_0x165c7d=_0x231115[_0x559329])&&(_0x2cd9ac=_0x165c7d(_0x2cd9ac)||_0x2cd9ac);return _0x2cd9ac;},_0xa16a19=(_0x39f3c9,_0x12e580)=>(_0x4bf0a7,_0x1fd80d)=>_0x12e580(_0x4bf0a7,_0x1fd80d,_0x39f3c9);_0x3ad8f7['DesktopLiveShareController']=class extends _0x5b774f[_0x243e24(0x264)]{constructor(_0x6d57f,_0x202f38){super(),this['_injector']=_0x6d57f,this['_uiPartsService']=_0x202f38,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x57a213=_0x243e24;this[_0x57a213(0x25b)](this[_0x57a213(0x212)][_0x57a213(0x20f)](_0x521b3e[_0x57a213(0x240)][_0x57a213(0x1c1)],()=>_0x521b3e[_0x57a213(0x22c)](_0x5a63e2,this[_0x57a213(0x254)])));}},_0x3ad8f7[_0x243e24(0x239)]=_0x5423a0([_0xa16a19(0x0,_0x5b774f[_0x243e24(0x16a)](_0x5b774f[_0x243e24(0x243)])),_0xa16a19(0x1,_0x521b3e['IUIPartsService'])],_0x3ad8f7[_0x243e24(0x239)]);var _0x2dfe53=Object['defineProperty'],_0x405600=Object[_0x243e24(0x180)],_0x1e711f=(_0x1875fa,_0x544bf5,_0x47a3e2)=>_0x544bf5 in _0x1875fa?_0x2dfe53(_0x1875fa,_0x544bf5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47a3e2}):_0x1875fa[_0x544bf5]=_0x47a3e2,_0x3de1c3=(_0x545256,_0x2362c5,_0xff80fd,_0x557155)=>{var _0x10a8f8=_0x243e24;for(var _0xba0f44=_0x557155>0x1?void 0x0:_0x557155?_0x405600(_0x2362c5,_0xff80fd):_0x2362c5,_0x5a059=_0x545256[_0x10a8f8(0x1ff)]-0x1,_0x29f104;_0x5a059>=0x0;_0x5a059--)(_0x29f104=_0x545256[_0x5a059])&&(_0xba0f44=_0x29f104(_0xba0f44)||_0xba0f44);return _0xba0f44;},_0x35f6d2=(_0x42acac,_0x334fa8)=>(_0x5208cd,_0x4ac522)=>_0x334fa8(_0x5208cd,_0x4ac522,_0x42acac),_0x2c270d=(_0x3ebe26,_0x19d72d,_0x356b42)=>_0x1e711f(_0x3ebe26,typeof _0x19d72d!='symbol'?_0x19d72d+'':_0x19d72d,_0x356b42);const _0x2d19ad=_0x243e24(0x1db);_0x3ad8f7[_0x243e24(0x18e)]=class extends _0x5b774f[_0x243e24(0x225)]{constructor(_0x575faa=_0x121e35,_0x19d4f3,_0x18c7fe){var _0x4153e3=_0x243e24;super(),this[_0x4153e3(0x24a)]=_0x575faa,this[_0x4153e3(0x254)]=_0x19d4f3,this[_0x4153e3(0x1ea)]=_0x18c7fe;const {..._0x49c4d8}=_0x5b774f[_0x4153e3(0x192)]({},_0x121e35,this[_0x4153e3(0x24a)]);this[_0x4153e3(0x1ea)][_0x4153e3(0x232)](_0x24f26c,_0x49c4d8);}[_0x243e24(0x1f7)](){var _0x5d5fa1=_0x243e24;_0x5b774f[_0x5d5fa1(0x18d)](this[_0x5d5fa1(0x254)],_0x5b774f[_0x5d5fa1(0x1e3)]([[_0x47ec1f],[_0x3ad8f7[_0x5d5fa1(0x24f)]],[_0x2b2601],[_0x3ad8f7[_0x5d5fa1(0x239)]]],this[_0x5d5fa1(0x24a)][_0x5d5fa1(0x233)])),_0x5b774f[_0x5d5fa1(0x18c)](this[_0x5d5fa1(0x254)],[[_0x2b2601]]);}[_0x243e24(0x23b)](){var _0x51b1ff=_0x243e24;_0x5b774f[_0x51b1ff(0x18c)](this['_injector'],[[_0x3ad8f7[_0x51b1ff(0x239)]]]);}},_0x2c270d(_0x3ad8f7[_0x243e24(0x18e)],_0x243e24(0x234),_0x5b774f[_0x243e24(0x1a8)][_0x243e24(0x178)]),_0x2c270d(_0x3ad8f7[_0x243e24(0x18e)],_0x243e24(0x1c9),_0x2d19ad),_0x3ad8f7[_0x243e24(0x18e)]=_0x3de1c3([_0x5b774f['DependentOn'](_0x15e2a2[_0x243e24(0x17f)]),_0x35f6d2(0x1,_0x5b774f['Inject'](_0x5b774f[_0x243e24(0x243)])),_0x35f6d2(0x2,_0x5b774f[_0x243e24(0x1ce)])],_0x3ad8f7[_0x243e24(0x18e)]),_0x3ad8f7['LiveShare']=_0x5a63e2,_0x3ad8f7[_0x243e24(0x19c)]=_0x47ec1f,_0x3ad8f7[_0x243e24(0x221)]=_0x187b5d,Object[_0x243e24(0x20c)](_0x3ad8f7,Symbol[_0x243e24(0x25d)],{'value':_0x243e24(0x181)});}));
|
|
1
|
+
function _0x458f(){var _0x49e459=['996Bxtjmb','LIVESHARE_FETCH_OPERATIONS','defIds','Subject','useEffect','stopFollowing','BuiltInUIPart','_fetchOperations','event$','get','data','init','colorChannel1','toDisposable','jsxs','defineProperty','current','clsx','div','You\x27re\x20following\x20the\x20presenter','takeUntil','SetWorksheetActiveOperation','PRESENTING','mutations','getOwnPropertyDescriptor','send','_sharedOperations','children','12NCsDkh','live-share-icon','_uiPartsService','_mountLiveShare','from','entries','hasOwnProperty','SetZoomRatioOperation','concat','Present\x20this\x20document','presenting','univer-size-4','unitId','useObservable','values','ONLINE','_collabSessionService','rxjs/operators','_entities','amd','mergeOverrideWithDependencies','ICommandService','_collabSession','_startLiveShareCoordinator','UniverCollaborationClientPlugin','currentColor','1867434dSfIFW','Disposable','getTypeOfUnitAdded$','idle','add','onRendered','OFFLINE','LIVESHARE_NEW_HOST','NOT_FOLLOWING','React','rxjs','LIVESHARE_OPERATION','_status','assign','UniverProLiveShare','UniverSheets','dispose$','displayName','startFollowing','_startFollowing','_handleOnline','_univerInstanceService','default','CollaborationSessionService','sessionStatus$','_handleOffline','status$','createInstance','InsertSheetMutation','length','univer-mb-3\x20univer-w-full\x20univer-text-sm','complete','call','_unitID','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','_handleOperation','presenter','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','@univerjs-pro/collaboration','getMemberID','executeCommand','operations','_handleNewChangeSets','forEach','reverse','not-following','jsx','UniverCore','touchDependencies','Dropdown','string','asObservable','unsubscribe','forwardRef','useState','attrs','1em','replace','DisposableCollection','0\x200\x2017\x2017','getInitialStates','CollaborationEvent','shouldShareOperation','Inject','5695417sNtEFs','map','set','_configService','You\x27re\x20presenting\x20the\x20document','_injector','pluginName','2164406ETiBWR','has','getValue','pipe','stopPresenting','NEW_CHANGESETS','IUniverInstanceService','getUnitId','LiveShareController','UniverProCollaborationClient','symbol','_commandDisposable','_startPresenting','type','parseProtocolChangeset','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','className','toStringTag','UniverUi','getCurrentTypeOfUnit$','xlink:href','LiveShareIcon','Plugin','registerComponent','_config','setConfig','tryStartPresenting','propertyIsEnumerable','UNIVER_SHEET','mask','button','_init','react','getOwnPropertySymbols','UNIVER_LIVE_SHARE_PLUGIN','http://www.w3.org/2000/svg','useRef','function','getLiveShareCoordinator','onCommandExecuted','following','SetScrollOperation','memberID','extend','random','UniverLiveSharePlugin','_presenter','DesktopLiveShareController','Fragment','useDependency','4528752PAimYX','You\x27re\x20not\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','stringify','@univerjs/sheets-ui','exports','IDLE','evenodd','onStarting','disposeWithMe','LIVESHARE_REQUEST_HOST','@univerjs/sheets','params','_stopFollowing','tag','prototype','registerInitialStateReporter','_reporters','dispose','univerjs-icon\x20univerjs-icon-','_handleTerminate','_commandService','find','_handleNewHost','includes','Button','HEADER_MENU','LiveShareCoordinator','end','react/jsx-runtime','registerSharedOperation','8225yofQcK','UniverInstanceType','LiveShareService','@univerjs/design','IUIPartsService','fill','LiveShareStatus','idSuffix','SessionStatus','12194872bMYHhM','_liveShareService','createElement','FOLLOWING','_beIdle','Injector','next','toString','parse','35882766lEJGro','object','_stopPresenting','delete','OPERATION','@univerjs/ui','subscribe','Stop\x20presenting','IConfigService','Start\x20following','offline','_status$','LIVESHARE_TERMINATE'];_0x458f=function(){return _0x49e459;};return _0x458f();}function _0x1530(_0x283978,_0xc51340){var _0x458fb3=_0x458f();return _0x1530=function(_0x1530aa,_0x17d3e8){_0x1530aa=_0x1530aa-0x124;var _0x5621d5=_0x458fb3[_0x1530aa];return _0x5621d5;},_0x1530(_0x283978,_0xc51340);}(function(_0x2719b1,_0x3c6b8c){var _0xf84191=_0x1530,_0x6f8d06=_0x2719b1();while(!![]){try{var _0x4e2567=parseInt(_0xf84191(0x1db))/0x1+parseInt(_0xf84191(0x134))/0x2+parseInt(_0xf84191(0x167))/0x3+-parseInt(_0xf84191(0x1a5))/0x4*(-parseInt(_0xf84191(0x186))/0x5)+-parseInt(_0xf84191(0x1c1))/0x6*(-parseInt(_0xf84191(0x12d))/0x7)+-parseInt(_0xf84191(0x18f))/0x8+-parseInt(_0xf84191(0x198))/0x9;if(_0x4e2567===_0x3c6b8c)break;else _0x6f8d06['push'](_0x6f8d06['shift']());}catch(_0x7ae802){_0x6f8d06['push'](_0x6f8d06['shift']());}}}(_0x458f,0xf06b3),function(_0x32868f,_0x4b4b69){var _0x567cb5=_0x1530;typeof exports==_0x567cb5(0x199)&&typeof module<'u'?_0x4b4b69(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require(_0x567cb5(0x172)),require(_0x567cb5(0x16b)),require(_0x567cb5(0x19d)),require(_0x567cb5(0x184)),require(_0x567cb5(0x189)),require(_0x567cb5(0x155)),require(_0x567cb5(0x201)),require(_0x567cb5(0x1e5)),require(_0x567cb5(0x1d2))):typeof define==_0x567cb5(0x15a)&&define[_0x567cb5(0x1d4)]?define([_0x567cb5(0x16c),'@univerjs-pro/collaboration-client','@univerjs/core',_0x567cb5(0x172),_0x567cb5(0x16b),_0x567cb5(0x19d),_0x567cb5(0x184),_0x567cb5(0x189),_0x567cb5(0x155),_0x567cb5(0x201),_0x567cb5(0x1e5),_0x567cb5(0x1d2)],_0x4b4b69):(_0x32868f=typeof globalThis<'u'?globalThis:_0x32868f||self,_0x4b4b69(_0x32868f[_0x567cb5(0x1e9)]={},_0x32868f[_0x567cb5(0x13d)],_0x32868f[_0x567cb5(0x20a)],_0x32868f[_0x567cb5(0x1ea)],_0x32868f['UniverSheetsUi'],_0x32868f[_0x567cb5(0x147)],_0x32868f[_0x567cb5(0x1e4)],_0x32868f['UniverDesign'],_0x32868f[_0x567cb5(0x1e4)],_0x32868f['UniverProCollaboration'],_0x32868f[_0x567cb5(0x1e5)],_0x32868f[_0x567cb5(0x1e5)]['operators']));}(this,function(_0x111dae,_0x2693c2,_0x249eb0,_0x306ad3,_0x1ad0a7,_0x19c0e6,_0x1fe136,_0x1989c2,_0x5ea529,_0x22ea66,_0x55ecd5,_0x171a18){'use strict';var _0xa01d18=_0x1530;var _0x4111d2=Object[_0xa01d18(0x1b4)],_0x45adb1=(_0x13a5d3,_0x4d4147,_0x32842a)=>_0x4d4147 in _0x13a5d3?_0x4111d2(_0x13a5d3,_0x4d4147,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32842a}):_0x13a5d3[_0x4d4147]=_0x32842a,_0xb418c5=(_0x1c5374,_0x420fc9,_0x5d7d86)=>_0x45adb1(_0x1c5374,typeof _0x420fc9!=_0xa01d18(0x13e)?_0x420fc9+'':_0x420fc9,_0x5d7d86);const _0x4d1965='live-share.config',_0x382ed5={};class _0x12539d extends _0x249eb0[_0xa01d18(0x1dc)]{constructor(){var _0x14a050=_0xa01d18;super(...arguments),_0xb418c5(this,_0x14a050(0x1bf),new Set()),_0xb418c5(this,_0x14a050(0x178),new Set());}[_0xa01d18(0x185)](_0x4d520f){var _0x2a4998=_0xa01d18;return this[_0x2a4998(0x1bf)][_0x2a4998(0x1df)](_0x4d520f),_0x249eb0[_0x2a4998(0x1b2)](()=>this[_0x2a4998(0x1bf)][_0x2a4998(0x19b)](_0x4d520f));}[_0xa01d18(0x177)](_0x5e9211){var _0x5aa5df=_0xa01d18;return this[_0x5aa5df(0x178)][_0x5aa5df(0x1df)](_0x5e9211),_0x249eb0[_0x5aa5df(0x1b2)](()=>this['_reporters'][_0x5aa5df(0x19b)](_0x5e9211));}[_0xa01d18(0x12b)](_0x5cedcd){var _0xb5b317=_0xa01d18;return this[_0xb5b317(0x1bf)][_0xb5b317(0x135)](_0x5cedcd);}[_0xa01d18(0x129)](_0x2b78f4){var _0x204947=_0xa01d18;return Array[_0x204947(0x1c5)](this[_0x204947(0x178)])[_0x204947(0x12e)](_0x133827=>_0x133827(_0x2b78f4));}}var _0x3abd3e=Object['getOwnPropertyDescriptor'],_0x385ed5=(_0x524ebb,_0x5e2bf7,_0x5765a1,_0x8cd503)=>{for(var _0x285ef3=_0x8cd503>0x1?void 0x0:_0x8cd503?_0x3abd3e(_0x5e2bf7,_0x5765a1):_0x5e2bf7,_0x56ab6a=_0x524ebb['length']-0x1,_0x261276;_0x56ab6a>=0x0;_0x56ab6a--)(_0x261276=_0x524ebb[_0x56ab6a])&&(_0x285ef3=_0x261276(_0x285ef3)||_0x285ef3);return _0x285ef3;},_0x5d4ebc=(_0x3688a1,_0x521d15)=>(_0x3f069c,_0x488a4c)=>_0x521d15(_0x3f069c,_0x488a4c,_0x3688a1);let _0x3472bf=class extends _0x249eb0['Disposable']{constructor(_0x11138d){var _0x2a3178=_0xa01d18;super(),this[_0x2a3178(0x190)]=_0x11138d,this[_0x2a3178(0x154)]();}['_init'](){var _0x227e3f=_0xa01d18;[_0x1ad0a7[_0x227e3f(0x1c8)]['id'],_0x1ad0a7[_0x227e3f(0x15e)]['id'],_0x306ad3[_0x227e3f(0x1ba)]['id']][_0x227e3f(0x206)](_0x31b11f=>{var _0x9936f6=_0x227e3f;this['disposeWithMe'](this[_0x9936f6(0x190)]['registerSharedOperation'](_0x31b11f));});}};_0x3472bf=_0x385ed5([_0x5d4ebc(0x0,_0x249eb0['Inject'](_0x12539d))],_0x3472bf);var _0x2fc022=function(){var _0x5e5366=_0xa01d18;return _0x2fc022=Object[_0x5e5366(0x1e8)]||function(_0x4c93d3){var _0xf9f765=_0x5e5366;for(var _0xdce9e,_0x1bed94=0x1,_0x56188d=arguments[_0xf9f765(0x1f8)];_0x1bed94<_0x56188d;_0x1bed94++){_0xdce9e=arguments[_0x1bed94];for(var _0x7205d1 in _0xdce9e)Object[_0xf9f765(0x176)][_0xf9f765(0x1c7)][_0xf9f765(0x1fb)](_0xdce9e,_0x7205d1)&&(_0x4c93d3[_0x7205d1]=_0xdce9e[_0x7205d1]);}return _0x4c93d3;},_0x2fc022['apply'](this,arguments);},_0x27cd57=function(_0x335e69,_0x55cfd7){var _0x37b4d5=_0xa01d18,_0x602e5c={};for(var _0xb22875 in _0x335e69)Object[_0x37b4d5(0x176)][_0x37b4d5(0x1c7)][_0x37b4d5(0x1fb)](_0x335e69,_0xb22875)&&_0x55cfd7['indexOf'](_0xb22875)<0x0&&(_0x602e5c[_0xb22875]=_0x335e69[_0xb22875]);if(_0x335e69!=null&&typeof Object[_0x37b4d5(0x156)]==_0x37b4d5(0x15a)){for(var _0x311fa9=0x0,_0xb22875=Object[_0x37b4d5(0x156)](_0x335e69);_0x311fa9<_0xb22875[_0x37b4d5(0x1f8)];_0x311fa9++)_0x55cfd7['indexOf'](_0xb22875[_0x311fa9])<0x0&&Object[_0x37b4d5(0x176)][_0x37b4d5(0x150)][_0x37b4d5(0x1fb)](_0x335e69,_0xb22875[_0x311fa9])&&(_0x602e5c[_0xb22875[_0x311fa9]]=_0x335e69[_0xb22875[_0x311fa9]]);}return _0x602e5c;},_0x330028=_0x5ea529[_0xa01d18(0x210)](function(_0x2cf101,_0x211d27){var _0x1602e5=_0xa01d18,_0x259096=_0x2cf101['icon'],_0x261a41=_0x2cf101['id'],_0x17aa8a=_0x2cf101[_0x1602e5(0x145)],_0x274475=_0x2cf101[_0x1602e5(0x160)],_0x41c680=_0x27cd57(_0x2cf101,['icon','id',_0x1602e5(0x145),_0x1602e5(0x160)]),_0x37c522=_0x1602e5(0x17a)[_0x1602e5(0x1c9)](_0x261a41,'\x20')[_0x1602e5(0x1c9)](_0x17aa8a||'')[_0x1602e5(0x143)](),_0x187bc3=_0x5ea529[_0x1602e5(0x159)]('_'[_0x1602e5(0x1c9)](_0x539db2()));return _0x2f72ee(_0x259096,''[_0x1602e5(0x1c9)](_0x261a41),{'defIds':_0x259096['defIds'],'idSuffix':_0x187bc3['current']},_0x2fc022({'ref':_0x211d27,'className':_0x37c522},_0x41c680),_0x274475);});function _0x2f72ee(_0x5a654e,_0x109cf2,_0xb09c69,_0xd63d3a,_0x41ac8c){var _0x39b49b=_0xa01d18;return _0x5ea529[_0x39b49b(0x191)](_0x5a654e[_0x39b49b(0x175)],_0x2fc022(_0x2fc022({'key':_0x109cf2},_0xf226a9(_0x5a654e,_0xb09c69,_0x41ac8c)),_0xd63d3a),(_0x1d2c82(_0x5a654e,_0xb09c69)[_0x39b49b(0x1c0)]||[])['map'](function(_0x2b7e32,_0x2f1242){var _0x59ac07=_0x39b49b;return _0x2f72ee(_0x2b7e32,''['concat'](_0x109cf2,'-')[_0x59ac07(0x1c9)](_0x5a654e[_0x59ac07(0x175)],'-')[_0x59ac07(0x1c9)](_0x2f1242),_0xb09c69,void 0x0,_0x41ac8c);}));}function _0xf226a9(_0x23a609,_0x24ed9d,_0x120acb){var _0x5b9c8e=_0xa01d18,_0x23a8d3=_0x2fc022({},_0x23a609[_0x5b9c8e(0x124)]);_0x120acb!=null&&_0x120acb[_0x5b9c8e(0x1b1)]&&_0x23a8d3['fill']===_0x5b9c8e(0x1b1)&&(_0x23a8d3[_0x5b9c8e(0x18b)]=_0x120acb[_0x5b9c8e(0x1b1)]),_0x23a609[_0x5b9c8e(0x175)]===_0x5b9c8e(0x152)&&_0x23a8d3['id']&&(_0x23a8d3['id']=_0x23a8d3['id']+_0x24ed9d[_0x5b9c8e(0x18d)]),Object[_0x5b9c8e(0x1c6)](_0x23a8d3)['forEach'](function(_0x5b0ecd){var _0x1bfd95=_0x5b9c8e,_0x2cd205=_0x5b0ecd[0x0],_0x48a0d0=_0x5b0ecd[0x1];_0x2cd205===_0x1bfd95(0x152)&&typeof _0x48a0d0==_0x1bfd95(0x20d)&&(_0x23a8d3[_0x2cd205]=_0x48a0d0[_0x1bfd95(0x126)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x24ed9d[_0x1bfd95(0x18d)],')')));});var _0x4ee12a=_0x24ed9d['defIds'];return!_0x4ee12a||_0x4ee12a['length']===0x0||(_0x23a609[_0x5b9c8e(0x175)]==='use'&&_0x23a8d3[_0x5b9c8e(0x149)]&&(_0x23a8d3[_0x5b9c8e(0x149)]=_0x23a8d3['xlink:href']+_0x24ed9d[_0x5b9c8e(0x18d)]),Object[_0x5b9c8e(0x1c6)](_0x23a8d3)['forEach'](function(_0x5dfaa3){var _0x4c8b31=_0x5b9c8e,_0x2de7da=_0x5dfaa3[0x0],_0x4b3134=_0x5dfaa3[0x1];typeof _0x4b3134==_0x4c8b31(0x20d)&&(_0x23a8d3[_0x2de7da]=_0x4b3134[_0x4c8b31(0x126)](/url\(#(.*)\)/,'url(#$1'[_0x4c8b31(0x1c9)](_0x24ed9d['idSuffix'],')')));})),_0x23a8d3;}function _0x1d2c82(_0x285193,_0x6b10c1){var _0x2ca5ee=_0xa01d18,_0x5f54ed,_0xe06643=_0x6b10c1[_0x2ca5ee(0x1a7)];return!_0xe06643||_0xe06643[_0x2ca5ee(0x1f8)]===0x0?_0x285193:_0x285193[_0x2ca5ee(0x175)]==='defs'&&(!((_0x5f54ed=_0x285193['children'])===null||_0x5f54ed===void 0x0)&&_0x5f54ed[_0x2ca5ee(0x1f8)])?_0x2fc022(_0x2fc022({},_0x285193),{'children':_0x285193[_0x2ca5ee(0x1c0)][_0x2ca5ee(0x12e)](function(_0x5ad54f){var _0x145397=_0x2ca5ee;return typeof _0x5ad54f['attrs']['id']==_0x145397(0x20d)&&_0xe06643&&_0xe06643[_0x145397(0x17f)](_0x5ad54f[_0x145397(0x124)]['id'])?_0x2fc022(_0x2fc022({},_0x5ad54f),{'attrs':_0x2fc022(_0x2fc022({},_0x5ad54f[_0x145397(0x124)]),{'id':_0x5ad54f[_0x145397(0x124)]['id']+_0x6b10c1[_0x145397(0x18d)]})}):_0x5ad54f;})}):_0x285193;}function _0x539db2(){var _0x3c53c0=_0xa01d18;return Math[_0x3c53c0(0x161)]()[_0x3c53c0(0x196)](0x24)['substring'](0x2,0x8);}_0x330028[_0xa01d18(0x1ec)]='UniverIcon';var _0x397cce={'tag':'svg','attrs':{'xmlns':_0xa01d18(0x158),'fill':'none','viewBox':_0xa01d18(0x128),'width':_0xa01d18(0x125),'height':_0xa01d18(0x125)},'children':[{'tag':'path','attrs':{'fill':_0xa01d18(0x1da),'d':_0xa01d18(0x1fd)}},{'tag':'path','attrs':{'fill':_0xa01d18(0x1da),'d':'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','fillRule':_0xa01d18(0x16e),'clipRule':'evenodd'}}]},_0x372d63=_0x5ea529['forwardRef'](function(_0x568dd7,_0x31ae60){var _0xc08c4f=_0xa01d18;return _0x5ea529[_0xc08c4f(0x191)](_0x330028,Object[_0xc08c4f(0x1e8)]({},_0x568dd7,{'id':_0xc08c4f(0x1c2),'ref':_0x31ae60,'icon':_0x397cce}));});_0x372d63[_0xa01d18(0x1ec)]=_0xa01d18(0x14a);var _0x517d3b=Object[_0xa01d18(0x1bd)],_0x2d44a6=(_0x54ebc8,_0x4e5a42,_0x238e51,_0x19d784)=>{var _0x466323=_0xa01d18;for(var _0x56f7d5=_0x19d784>0x1?void 0x0:_0x19d784?_0x517d3b(_0x4e5a42,_0x238e51):_0x4e5a42,_0xc4875e=_0x54ebc8[_0x466323(0x1f8)]-0x1,_0x265d72;_0xc4875e>=0x0;_0xc4875e--)(_0x265d72=_0x54ebc8[_0xc4875e])&&(_0x56f7d5=_0x265d72(_0x56f7d5)||_0x56f7d5);return _0x56f7d5;},_0x1d6d2b=(_0x2a2266,_0x48546a)=>(_0xb53db,_0x1be5b4)=>_0x48546a(_0xb53db,_0x1be5b4,_0x2a2266);_0x111dae[_0xa01d18(0x13c)]=class extends _0x249eb0['RxDisposable']{constructor(_0x125a2d,_0x354e51,_0x1c9741){var _0x2f2def=_0xa01d18;super(),_0xb418c5(this,_0x2f2def(0x1d3),new Map()),(this[_0x2f2def(0x1f0)]=_0x125a2d,this[_0x2f2def(0x132)]=_0x354e51,this[_0x2f2def(0x1d1)]=_0x1c9741,this[_0x2f2def(0x154)]());}async['getLiveShareCoordinator'](_0x799005){var _0x2b1cd1=_0xa01d18;return this[_0x2b1cd1(0x1d3)][_0x2b1cd1(0x135)](_0x799005)||await this['_startLiveShareCoordinator'](_0x799005),this[_0x2b1cd1(0x1d3)][_0x2b1cd1(0x1ae)](_0x799005);}[_0xa01d18(0x154)](){var _0x3a31bf=_0xa01d18;this[_0x3a31bf(0x1f0)][_0x3a31bf(0x1dd)](_0x249eb0['UniverInstanceType'][_0x3a31bf(0x151)])[_0x3a31bf(0x137)](_0x171a18['takeUntil'](this['dispose$']))['subscribe'](async _0xb8d2c7=>{var _0x29c2a0=_0x3a31bf;const _0xf5797e=_0xb8d2c7[_0x29c2a0(0x13b)]();this[_0x29c2a0(0x1d3)]['has'](_0xf5797e)||this[_0x29c2a0(0x1d8)](_0xf5797e);}),this[_0x3a31bf(0x1f0)][_0x3a31bf(0x169)](_0x249eb0['UniverInstanceType']['UNIVER_SHEET'])[_0x3a31bf(0x137)](_0x171a18[_0x3a31bf(0x1b9)](this[_0x3a31bf(0x1eb)]))[_0x3a31bf(0x19e)](_0x3a8221=>{var _0x588000=_0x3a31bf;const _0x5c48ee=_0x3a8221[_0x588000(0x13b)](),_0x17d2a1=this[_0x588000(0x1d3)][_0x588000(0x1ae)](_0x5c48ee);_0x17d2a1==null||_0x17d2a1[_0x588000(0x179)]();});}async['_startLiveShareCoordinator'](_0x47031f){var _0x64452a=_0xa01d18;const _0x56badd=await this[_0x64452a(0x1d1)]['requireSession'](_0x47031f),_0x599fb9=this[_0x64452a(0x132)][_0x64452a(0x1f6)](_0x111dae['LiveShareCoordinator'],_0x47031f,_0x56badd);return _0x599fb9[_0x64452a(0x1b0)](),this['_entities']['set'](_0x47031f,_0x599fb9),_0x599fb9;}},_0x111dae[_0xa01d18(0x13c)]=_0x2d44a6([_0x1d6d2b(0x0,_0x249eb0['IUniverInstanceService']),_0x1d6d2b(0x1,_0x249eb0[_0xa01d18(0x12c)](_0x249eb0[_0xa01d18(0x194)])),_0x1d6d2b(0x2,_0x249eb0[_0xa01d18(0x12c)](_0x2693c2[_0xa01d18(0x1f2)]))],_0x111dae[_0xa01d18(0x13c)]);var _0x640ade=(_0x1265ba=>(_0x1265ba['OFFLINE']='offline',_0x1265ba[_0xa01d18(0x16d)]=_0xa01d18(0x1de),_0x1265ba[_0xa01d18(0x192)]=_0xa01d18(0x15d),_0x1265ba['NOT_FOLLOWING']=_0xa01d18(0x208),_0x1265ba[_0xa01d18(0x1bb)]='presenting',_0x1265ba))(_0x640ade||{});const _0x3a695f='SAME_OPERATION_SHARE_INTERVAL',_0x410292=0xc8;_0x111dae[_0xa01d18(0x182)]=class extends _0x249eb0['RxDisposable']{constructor(_0x3202bd,_0x3923e6,_0x4b3a3c,_0x394693,_0xc6d3e4){var _0x55a504=_0xa01d18;super(),_0xb418c5(this,_0x55a504(0x1a3),new _0x55ecd5['BehaviorSubject'](_0x55a504(0x1de))),_0xb418c5(this,_0x55a504(0x1f5),this['_status$'][_0x55a504(0x20e)]()),_0xb418c5(this,_0x55a504(0x154),!0x1),_0xb418c5(this,_0x55a504(0x13f),null),_0xb418c5(this,_0x55a504(0x163),null),(this[_0x55a504(0x1fc)]=_0x3202bd,this[_0x55a504(0x1d7)]=_0x3923e6,this[_0x55a504(0x130)]=_0x4b3a3c,this[_0x55a504(0x190)]=_0x394693,this[_0x55a504(0x17c)]=_0xc6d3e4);}get['_status'](){var _0x21dee2=_0xa01d18;return this[_0x21dee2(0x1a3)][_0x21dee2(0x136)]();}[_0xa01d18(0x179)](){var _0x1d4cf6=_0xa01d18,_0x5522d1;(_0x5522d1=this[_0x1d4cf6(0x13f)])==null||_0x5522d1[_0x1d4cf6(0x179)](),this[_0x1d4cf6(0x1a3)][_0x1d4cf6(0x195)](_0x1d4cf6(0x1de)),this[_0x1d4cf6(0x1a3)][_0x1d4cf6(0x1fa)]();}[_0xa01d18(0x1b0)](){var _0x3964da=_0xa01d18;this['_init']||(this[_0x3964da(0x154)]=!0x0,this[_0x3964da(0x1d7)][_0x3964da(0x1f3)]['pipe'](_0x171a18[_0x3964da(0x1b9)](this[_0x3964da(0x1eb)]))[_0x3964da(0x19e)](_0x4b523a=>{var _0x56c95a=_0x3964da;switch(_0x4b523a){case _0x2693c2['SessionStatus'][_0x56c95a(0x1e1)]:this[_0x56c95a(0x1f4)]();break;case _0x2693c2[_0x56c95a(0x18e)][_0x56c95a(0x1d0)]:this[_0x56c95a(0x1ef)]();break;}}),this[_0x3964da(0x1d7)][_0x3964da(0x1ad)][_0x3964da(0x137)](_0x171a18[_0x3964da(0x1b9)](this[_0x3964da(0x1eb)]))['subscribe'](_0xc297a9=>{var _0x271819=_0x3964da;const {eventID:_0x490211}=_0xc297a9;switch(_0x490211){case _0x22ea66[_0x271819(0x12a)][_0x271819(0x1e2)]:this[_0x271819(0x17e)](_0xc297a9);break;case _0x22ea66[_0x271819(0x12a)]['LIVESHARE_OPERATION']:this[_0x271819(0x1fe)](_0xc297a9);break;case _0x22ea66[_0x271819(0x12a)][_0x271819(0x1a4)]:this[_0x271819(0x17b)]();break;case _0x22ea66[_0x271819(0x12a)][_0x271819(0x139)]:this[_0x271819(0x205)](_0xc297a9);break;}}));}[_0xa01d18(0x14f)](){var _0x1f45f4=_0xa01d18;this[_0x1f45f4(0x1d7)]['send']({'eventID':_0x22ea66[_0x1f45f4(0x12a)][_0x1f45f4(0x171)],'data':{'unitID':this[_0x1f45f4(0x1fc)],'userID':this['_collabSession'][_0x1f45f4(0x202)]()}},this[_0x1f45f4(0x1fc)]);}[_0xa01d18(0x138)](){var _0x47cd5d=_0xa01d18;this[_0x47cd5d(0x1e7)]==='presenting'&&(this[_0x47cd5d(0x1a3)][_0x47cd5d(0x195)](_0x47cd5d(0x1de)),this['_collabSession'][_0x47cd5d(0x1be)]({'eventID':_0x22ea66[_0x47cd5d(0x12a)][_0x47cd5d(0x1a4)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0xa01d18(0x1ed)](){var _0x54bbd7=_0xa01d18;this[_0x54bbd7(0x1e7)]==='not-following'&&(this['_status$'][_0x54bbd7(0x195)]('following'),this['_startFollowing']());}[_0xa01d18(0x1aa)](){var _0x2ad2ab=_0xa01d18;this[_0x2ad2ab(0x1e7)]===_0x2ad2ab(0x15d)&&this['_stopFollowing']();}[_0xa01d18(0x17e)](_0x464f2b){var _0xee7720=_0xa01d18;const {presenter:_0x29b0ea}=_0x464f2b[_0xee7720(0x1af)],_0x4cbca0=this[_0xee7720(0x1d7)][_0xee7720(0x202)]();this[_0xee7720(0x163)]=_0x29b0ea,_0x29b0ea===_0x4cbca0?(this[_0xee7720(0x174)](),this[_0xee7720(0x140)]()):this['_status']!==_0xee7720(0x208)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa01d18(0x1ac)](){var _0x4df302=_0xa01d18;const _0x315963={'eventID':_0x22ea66[_0x4df302(0x12a)][_0x4df302(0x1a6)]};this[_0x4df302(0x1d7)][_0x4df302(0x1be)](_0x315963,this[_0x4df302(0x1fc)]);}['_handleTerminate'](){var _0x503a38=_0xa01d18;this[_0x503a38(0x163)]=null,this['_status']!=='presenting'&&this[_0x503a38(0x193)]();}[_0xa01d18(0x205)](_0x16abf7){var _0x45625a=_0xa01d18;if(this[_0x45625a(0x1e7)]==='following'&&this[_0x45625a(0x163)]===_0x16abf7[_0x45625a(0x1af)][_0x45625a(0x15f)]){const _0x2587dd=_0x22ea66[_0x45625a(0x142)](_0x16abf7[_0x45625a(0x1af)])[_0x45625a(0x1bc)][_0x45625a(0x207)]()[_0x45625a(0x17d)](_0x27201b=>_0x27201b['id']===_0x306ad3[_0x45625a(0x1f7)]['id']);if(_0x2587dd){const _0x199ba9=_0x2587dd['params'][_0x45625a(0x1cd)],_0x21e57c=_0x2587dd[_0x45625a(0x173)]['sheet']['id'];setTimeout(()=>{var _0x44061d=_0x45625a;this[_0x44061d(0x17c)][_0x44061d(0x203)](_0x306ad3['SetWorksheetActiveOperation']['id'],{'unitId':_0x199ba9,'subUnitId':_0x21e57c},{'fromCollab':!0x0});});}}}[_0xa01d18(0x140)](){var _0xe95f44=_0xa01d18;this[_0xe95f44(0x1a3)][_0xe95f44(0x195)]('presenting');const _0x46392a=new Map(),_0x383c88=this[_0xe95f44(0x13f)]=new _0x249eb0[(_0xe95f44(0x127))]();_0x383c88[_0xe95f44(0x1df)](_0x249eb0['toDisposable'](()=>{var _0x2f2002=_0xe95f44;_0x46392a['forEach'](_0x40f7bd=>_0x40f7bd[_0x2f2002(0x1fa)]()),_0x46392a['clear']();})),_0x383c88[_0xe95f44(0x1df)](this[_0xe95f44(0x17c)][_0xe95f44(0x15c)](_0x192648=>{var _0x70d8a6=_0xe95f44,_0x365dcc;if(_0x192648[_0x70d8a6(0x141)]!==_0x249eb0['CommandType'][_0x70d8a6(0x19c)]||!this[_0x70d8a6(0x190)][_0x70d8a6(0x12b)](_0x192648['id']))return;const {id:_0x82eed9}=_0x192648;let _0x4586b5;_0x46392a[_0x70d8a6(0x135)](_0x82eed9)?_0x4586b5=_0x46392a[_0x70d8a6(0x1ae)](_0x82eed9):(_0x4586b5=new _0x55ecd5[(_0x70d8a6(0x1a8))](),_0x46392a[_0x70d8a6(0x12f)](_0x82eed9,_0x4586b5),_0x4586b5['pipe'](_0x171a18['throttleTime']((_0x365dcc=this[_0x70d8a6(0x130)]['getConfig'](_0x3a695f))!=null?_0x365dcc:_0x410292,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x70d8a6(0x19e)](_0x43deb4=>{var _0x1eebf8=_0x70d8a6;this[_0x1eebf8(0x1d7)]['send']({'eventID':_0x22ea66[_0x1eebf8(0x12a)][_0x1eebf8(0x1e6)],'data':{'unitID':this['_unitID'],'operations':{[_0x43deb4['id']]:{'id':_0x43deb4['id'],'params':JSON[_0x1eebf8(0x16a)](_0x43deb4[_0x1eebf8(0x173)])}}}},this['_unitID']);})),_0x4586b5[_0x70d8a6(0x195)](_0x192648);})),this[_0xe95f44(0x190)][_0xe95f44(0x129)](this[_0xe95f44(0x1fc)])[_0xe95f44(0x206)](_0x2f5a7b=>this[_0xe95f44(0x1d7)][_0xe95f44(0x1be)]({'eventID':_0x22ea66[_0xe95f44(0x12a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xe95f44(0x1fc)],'operations':{[_0x2f5a7b['id']]:{'id':_0x2f5a7b['id'],'params':JSON[_0xe95f44(0x16a)](_0x2f5a7b['params'])}}}},this['_unitID']));}[_0xa01d18(0x19a)](){var _0x26fc16=_0xa01d18,_0x18bcc0;this[_0x26fc16(0x1a3)][_0x26fc16(0x195)]('idle'),(_0x18bcc0=this[_0x26fc16(0x13f)])==null||_0x18bcc0['dispose'](),this[_0x26fc16(0x13f)]=null;}[_0xa01d18(0x1ee)](){var _0x388458=_0xa01d18,_0x10ef2d;(_0x10ef2d=this[_0x388458(0x13f)])==null||_0x10ef2d[_0x388458(0x179)](),this['_status$'][_0x388458(0x195)]('following');}[_0xa01d18(0x193)](){var _0x4a5fd1=_0xa01d18,_0x1c5cab;this['_status$'][_0x4a5fd1(0x195)](_0x4a5fd1(0x1de)),(_0x1c5cab=this[_0x4a5fd1(0x13f)])==null||_0x1c5cab[_0x4a5fd1(0x179)](),this[_0x4a5fd1(0x13f)]=null;}[_0xa01d18(0x174)](){var _0x94e228=_0xa01d18,_0x3e8dee;this[_0x94e228(0x1a3)][_0x94e228(0x195)]('not-following'),(_0x3e8dee=this[_0x94e228(0x13f)])==null||_0x3e8dee[_0x94e228(0x179)]();}[_0xa01d18(0x1fe)](_0x5a2d91){var _0xc4400f=_0xa01d18;if([_0xc4400f(0x1cb),_0xc4400f(0x208),_0xc4400f(0x1a2)][_0xc4400f(0x17f)](this[_0xc4400f(0x1e7)])||!_0x5a2d91[_0xc4400f(0x1af)][_0xc4400f(0x1ff)]||_0x5a2d91[_0xc4400f(0x1af)][_0xc4400f(0x1ff)]===this[_0xc4400f(0x1d7)][_0xc4400f(0x202)]())return;this[_0xc4400f(0x1e7)]===_0xc4400f(0x1de)&&this[_0xc4400f(0x1ee)]();const _0x35ddfe=_0x5a2d91[_0xc4400f(0x1af)][_0xc4400f(0x204)];Object[_0xc4400f(0x1cf)](_0x35ddfe)[_0xc4400f(0x206)](_0x4f5897=>{var _0xb17ee3=_0xc4400f;this[_0xb17ee3(0x17c)][_0xb17ee3(0x203)](_0x4f5897['id'],_0x4f5897[_0xb17ee3(0x173)]?JSON[_0xb17ee3(0x197)](_0x4f5897[_0xb17ee3(0x173)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xed9337=_0xa01d18,_0x2c9f2a;this['_status$'][_0xed9337(0x195)](_0xed9337(0x1a2)),(_0x2c9f2a=this[_0xed9337(0x13f)])==null||_0x2c9f2a[_0xed9337(0x179)]();}['_handleOnline'](){var _0x533b13=_0xa01d18;this['_status$'][_0x533b13(0x195)](_0x533b13(0x1de)),this[_0x533b13(0x1ac)]();}},_0x111dae[_0xa01d18(0x182)]=_0x2d44a6([_0x1d6d2b(0x2,_0x249eb0[_0xa01d18(0x1a0)]),_0x1d6d2b(0x3,_0x249eb0[_0xa01d18(0x12c)](_0x12539d)),_0x1d6d2b(0x4,_0x249eb0[_0xa01d18(0x1d6)])],_0x111dae[_0xa01d18(0x182)]);function _0x3c380e(){var _0x2714a1=_0xa01d18;const _0x262dc0=_0x19c0e6[_0x2714a1(0x166)](_0x111dae['LiveShareController']),_0x10e062=_0x19c0e6['useDependency'](_0x249eb0[_0x2714a1(0x13a)]),_0x540e59=_0x19c0e6[_0x2714a1(0x1ce)](()=>_0x10e062[_0x2714a1(0x148)](_0x249eb0[_0x2714a1(0x187)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x30d9bb,_0x28e662]=_0x5ea529[_0x2714a1(0x211)](null),[_0x5ca2bc,_0x519835]=_0x5ea529[_0x2714a1(0x211)](_0x640ade['IDLE']),_0x18bb20=_0x5ea529[_0x2714a1(0x159)](null);return _0x5ea529[_0x2714a1(0x1a9)](()=>(_0x540e59&&_0x262dc0[_0x2714a1(0x15b)](_0x540e59[_0x2714a1(0x13b)]())['then'](_0xf4b317=>{var _0x3d0ebb=_0x2714a1;_0x28e662(_0xf4b317),_0x18bb20[_0x3d0ebb(0x1b5)]=_0xf4b317[_0x3d0ebb(0x1f5)][_0x3d0ebb(0x19e)](_0x5746fc=>{_0x519835(_0x5746fc);});}),()=>{var _0x3da522=_0x2714a1,_0x4c2ecf;(_0x4c2ecf=_0x18bb20[_0x3da522(0x1b5)])==null||_0x4c2ecf[_0x3da522(0x20f)](),_0x18bb20[_0x3da522(0x1b5)]=null;}),[_0x540e59,_0x262dc0]),_0x30d9bb?_0x1fe136[_0x2714a1(0x209)](_0x1989c2[_0x2714a1(0x20c)],{'align':_0x2714a1(0x183),'disabled':_0x5ca2bc===_0x640ade[_0x2714a1(0x1e1)],'className':_0x2714a1(0x200),'overlay':_0x1fe136[_0x2714a1(0x209)](_0x48a3d3,{'status':_0x5ca2bc,'coordinator':_0x30d9bb}),'children':_0x1fe136[_0x2714a1(0x209)](_0x2714a1(0x153),{'className':_0x1989c2[_0x2714a1(0x1b6)](_0x2714a1(0x144),{'univer-cursor-not-allowed':_0x5ca2bc===_0x640ade[_0x2714a1(0x1e1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5ca2bc!==_0x640ade[_0x2714a1(0x1e1)]}),'type':_0x2714a1(0x153),'children':_0x1fe136['jsx'](_0x372d63,{'className':_0x2714a1(0x1cc)})})}):null;}function _0x48a3d3(_0x5ddfa4){var _0x94d4ba=_0xa01d18;const {status:_0x493a31,coordinator:_0xd874b7}=_0x5ddfa4;switch(_0x493a31){case _0x640ade[_0x94d4ba(0x16d)]:return _0x1fe136[_0x94d4ba(0x209)](_0x406974,{'coordinator':_0xd874b7});case _0x640ade[_0x94d4ba(0x192)]:return _0x1fe136[_0x94d4ba(0x209)](_0x12ff7d,{'coordinator':_0xd874b7});case _0x640ade[_0x94d4ba(0x1e3)]:return _0x1fe136[_0x94d4ba(0x209)](_0x246ebf,{'coordinator':_0xd874b7});case _0x640ade['OFFLINE']:return _0x1fe136[_0x94d4ba(0x209)](_0x342c5d,{});case _0x640ade[_0x94d4ba(0x1bb)]:return _0x1fe136[_0x94d4ba(0x209)](_0x2107dd,{'coordinator':_0xd874b7});default:return null;}}function _0x406974(_0x1660aa){var _0x5906f1=_0xa01d18;const {coordinator:_0xa1c916}=_0x1660aa;return _0x1fe136[_0x5906f1(0x1b3)](_0x1fe136[_0x5906f1(0x165)],{'children':[_0x1fe136[_0x5906f1(0x209)](_0x5906f1(0x1b7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5906f1(0x1ca)}),_0x1fe136[_0x5906f1(0x209)](_0x1989c2[_0x5906f1(0x180)],{'onClick':()=>_0xa1c916['tryStartPresenting'](),'children':'Start'})]});}function _0x12ff7d(_0x327085){var _0x19123a=_0xa01d18;const {coordinator:_0x2f06d7}=_0x327085;return _0x1fe136[_0x19123a(0x1b3)](_0x1fe136[_0x19123a(0x165)],{'children':[_0x1fe136[_0x19123a(0x209)](_0x19123a(0x1b7),{'className':_0x19123a(0x1f9),'children':_0x19123a(0x1b8)}),_0x1fe136[_0x19123a(0x209)](_0x1989c2[_0x19123a(0x180)],{'onClick':()=>_0x2f06d7[_0x19123a(0x1aa)](),'children':'Stop\x20following'})]});}function _0x246ebf(_0xc806da){var _0x36edd1=_0xa01d18;const {coordinator:_0x301a76}=_0xc806da;return _0x1fe136[_0x36edd1(0x1b3)](_0x1fe136['Fragment'],{'children':[_0x1fe136['jsx']('div',{'className':_0x36edd1(0x1f9),'children':_0x36edd1(0x168)}),_0x1fe136['jsx'](_0x1989c2[_0x36edd1(0x180)],{'variant':'text','onClick':()=>_0x301a76[_0x36edd1(0x1ed)](),'children':_0x36edd1(0x1a1)})]});}function _0x2107dd(_0x3cd1c3){var _0x2b3b4c=_0xa01d18;const {coordinator:_0x420768}=_0x3cd1c3;return _0x1fe136[_0x2b3b4c(0x1b3)](_0x1fe136['Fragment'],{'children':[_0x1fe136['jsx'](_0x2b3b4c(0x1b7),{'className':_0x2b3b4c(0x1f9),'children':_0x2b3b4c(0x131)}),_0x1fe136[_0x2b3b4c(0x209)](_0x1989c2[_0x2b3b4c(0x180)],{'variant':_0x2b3b4c(0x1f1),'onClick':()=>_0x420768[_0x2b3b4c(0x138)](),'children':_0x2b3b4c(0x19f)})]});}function _0x342c5d(){var _0x38f306=_0xa01d18;return _0x1fe136[_0x38f306(0x209)](_0x1fe136[_0x38f306(0x165)],{'children':'You\x27are\x20offline.'});}var _0x13f1f3=Object[_0xa01d18(0x1bd)],_0x3176e4=(_0x5b484f,_0x1b6a83,_0x3970b4,_0x5137e3)=>{var _0xfb6e5e=_0xa01d18;for(var _0xa1bae1=_0x5137e3>0x1?void 0x0:_0x5137e3?_0x13f1f3(_0x1b6a83,_0x3970b4):_0x1b6a83,_0x398268=_0x5b484f[_0xfb6e5e(0x1f8)]-0x1,_0x475ee3;_0x398268>=0x0;_0x398268--)(_0x475ee3=_0x5b484f[_0x398268])&&(_0xa1bae1=_0x475ee3(_0xa1bae1)||_0xa1bae1);return _0xa1bae1;},_0x33152b=(_0x258e0e,_0x16aa53)=>(_0x1e2015,_0x4435c9)=>_0x16aa53(_0x1e2015,_0x4435c9,_0x258e0e);_0x111dae[_0xa01d18(0x164)]=class extends _0x249eb0['Disposable']{constructor(_0x4b5c15,_0x19d8f6){var _0x143fce=_0xa01d18;super(),this[_0x143fce(0x132)]=_0x4b5c15,this[_0x143fce(0x1c3)]=_0x19d8f6,this['_mountLiveShare']();}[_0xa01d18(0x1c4)](){var _0x2356af=_0xa01d18;this[_0x2356af(0x170)](this[_0x2356af(0x1c3)][_0x2356af(0x14c)](_0x19c0e6[_0x2356af(0x1ab)][_0x2356af(0x181)],()=>_0x19c0e6['connectInjector'](_0x3c380e,this[_0x2356af(0x132)])));}},_0x111dae[_0xa01d18(0x164)]=_0x3176e4([_0x33152b(0x0,_0x249eb0[_0xa01d18(0x12c)](_0x249eb0[_0xa01d18(0x194)])),_0x33152b(0x1,_0x19c0e6[_0xa01d18(0x18a)])],_0x111dae[_0xa01d18(0x164)]);var _0x22cf3b=Object['defineProperty'],_0x434f6b=Object[_0xa01d18(0x1bd)],_0x54aa3c=(_0x55c129,_0x4ffaa7,_0x1e13d8)=>_0x4ffaa7 in _0x55c129?_0x22cf3b(_0x55c129,_0x4ffaa7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e13d8}):_0x55c129[_0x4ffaa7]=_0x1e13d8,_0x121e74=(_0x9dce95,_0x2f1f3e,_0x190416,_0x105b27)=>{var _0x900801=_0xa01d18;for(var _0x3fd562=_0x105b27>0x1?void 0x0:_0x105b27?_0x434f6b(_0x2f1f3e,_0x190416):_0x2f1f3e,_0x49906b=_0x9dce95[_0x900801(0x1f8)]-0x1,_0x413ef9;_0x49906b>=0x0;_0x49906b--)(_0x413ef9=_0x9dce95[_0x49906b])&&(_0x3fd562=_0x413ef9(_0x3fd562)||_0x3fd562);return _0x3fd562;},_0x2f4980=(_0x19c8f2,_0x3cc4be)=>(_0x320b0d,_0x4d7c66)=>_0x3cc4be(_0x320b0d,_0x4d7c66,_0x19c8f2),_0x48c188=(_0x2ec1de,_0x153551,_0x3a1d39)=>_0x54aa3c(_0x2ec1de,typeof _0x153551!=_0xa01d18(0x13e)?_0x153551+'':_0x153551,_0x3a1d39);const _0x25ec5b=_0xa01d18(0x157);_0x111dae[_0xa01d18(0x162)]=class extends _0x249eb0[_0xa01d18(0x14b)]{constructor(_0x203984=_0x382ed5,_0x21fbfa,_0x3bdb57){var _0x203678=_0xa01d18;super(),this[_0x203678(0x14d)]=_0x203984,this[_0x203678(0x132)]=_0x21fbfa,this['_configService']=_0x3bdb57;const {..._0x449e6f}=_0x249eb0['merge']({},_0x382ed5,this[_0x203678(0x14d)]);this['_configService'][_0x203678(0x14e)](_0x4d1965,_0x449e6f);}[_0xa01d18(0x16f)](){var _0x4e8fc6=_0xa01d18;_0x249eb0['registerDependencies'](this[_0x4e8fc6(0x132)],_0x249eb0[_0x4e8fc6(0x1d5)]([[_0x12539d],[_0x111dae[_0x4e8fc6(0x13c)]],[_0x3472bf],[_0x111dae[_0x4e8fc6(0x164)]]],this[_0x4e8fc6(0x14d)]['override'])),_0x249eb0[_0x4e8fc6(0x20b)](this[_0x4e8fc6(0x132)],[[_0x3472bf]]);}[_0xa01d18(0x1e0)](){var _0x3a9322=_0xa01d18;_0x249eb0['touchDependencies'](this[_0x3a9322(0x132)],[[_0x111dae[_0x3a9322(0x164)]]]);}},_0x48c188(_0x111dae[_0xa01d18(0x162)],'type',_0x249eb0['UniverInstanceType']['UNIVER_UNKNOWN']),_0x48c188(_0x111dae[_0xa01d18(0x162)],_0xa01d18(0x133),_0x25ec5b),_0x111dae[_0xa01d18(0x162)]=_0x121e74([_0x249eb0['DependentOn'](_0x2693c2[_0xa01d18(0x1d9)]),_0x2f4980(0x1,_0x249eb0['Inject'](_0x249eb0['Injector'])),_0x2f4980(0x2,_0x249eb0[_0xa01d18(0x1a0)])],_0x111dae[_0xa01d18(0x162)]),_0x111dae['LiveShare']=_0x3c380e,_0x111dae[_0xa01d18(0x188)]=_0x12539d,_0x111dae[_0xa01d18(0x18c)]=_0x640ade,Object[_0xa01d18(0x1b4)](_0x111dae,Symbol[_0xa01d18(0x146)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.2-nightly.
|
|
3
|
+
"version": "0.8.2-nightly.202506251607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.2-nightly.
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs/sheets": "0.8.2-nightly.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/design": "0.8.2-nightly.
|
|
55
|
-
"@univerjs/ui": "0.8.2-nightly.
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.2-nightly.202506251607",
|
|
51
|
+
"@univerjs/core": "0.8.2-nightly.202506251607",
|
|
52
|
+
"@univerjs/sheets": "0.8.2-nightly.202506251607",
|
|
53
|
+
"@univerjs-pro/collaboration-client": "0.8.2-nightly.202506251607",
|
|
54
|
+
"@univerjs/design": "0.8.2-nightly.202506251607",
|
|
55
|
+
"@univerjs/sheets-ui": "0.8.2-nightly.202506251607",
|
|
56
|
+
"@univerjs/ui": "0.8.2-nightly.202506251607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.8.2",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|