@univerjs-pro/live-share 0.7.0 → 0.8.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x17f0eb=_0x8a82;(function(_0x4d16ed,_0x3e4dea){var _0xc3e2b6=_0x8a82,_0x241b07=_0x4d16ed();while(!![]){try{var _0x3fdff8=-parseInt(_0xc3e2b6(0x1ee))/0x1+parseInt(_0xc3e2b6(0x2ac))/0x2+parseInt(_0xc3e2b6(0x230))/0x3+parseInt(_0xc3e2b6(0x1fb))/0x4*(-parseInt(_0xc3e2b6(0x272))/0x5)+-parseInt(_0xc3e2b6(0x20f))/0x6*(-parseInt(_0xc3e2b6(0x27b))/0x7)+-parseInt(_0xc3e2b6(0x298))/0x8*(parseInt(_0xc3e2b6(0x1d7))/0x9)+-parseInt(_0xc3e2b6(0x241))/0xa;if(_0x3fdff8===_0x3e4dea)break;else _0x241b07['push'](_0x241b07['shift']());}catch(_0x47fb5c){_0x241b07['push'](_0x241b07['shift']());}}}(_0x44b5,0xace37));var U=Object[_0x17f0eb(0x28a)],F=(_0x3e8134,_0xf89532,_0x241005)=>_0xf89532 in _0x3e8134?U(_0x3e8134,_0xf89532,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x241005}):_0x3e8134[_0xf89532]=_0x241005,v=(_0x3bfabc,_0x3d8b11,_0x348b3b)=>F(_0x3bfabc,typeof _0x3d8b11!=_0x17f0eb(0x2aa)?_0x3d8b11+'':_0x3d8b11,_0x348b3b);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x17f0eb(0x25e)});const m=require(_0x17f0eb(0x239)),o=require(_0x17f0eb(0x235)),C=require(_0x17f0eb(0x228)),D=require(_0x17f0eb(0x214)),p=require(_0x17f0eb(0x1f4)),l=require('react/jsx-runtime'),g=require(_0x17f0eb(0x22f)),f=require(_0x17f0eb(0x24e)),_=require(_0x17f0eb(0x259)),x=require(_0x17f0eb(0x1f0)),b=require(_0x17f0eb(0x223)),$='live-share.config',L={};class E extends o[_0x17f0eb(0x233)]{constructor(){var _0x4c3e9b=_0x17f0eb;super(...arguments),v(this,_0x4c3e9b(0x221),new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x4f239e){var _0x282586=_0x17f0eb;return this[_0x282586(0x221)][_0x282586(0x276)](_0x4f239e),o[_0x282586(0x23f)](()=>this[_0x282586(0x221)][_0x282586(0x1e3)](_0x4f239e));}['registerInitialStateReporter'](_0x19fb43){var _0x5118ac=_0x17f0eb;return this[_0x5118ac(0x281)][_0x5118ac(0x276)](_0x19fb43),o[_0x5118ac(0x23f)](()=>this[_0x5118ac(0x281)][_0x5118ac(0x1e3)](_0x19fb43));}[_0x17f0eb(0x285)](_0x4e7fe3){var _0x11c455=_0x17f0eb;return this[_0x11c455(0x221)][_0x11c455(0x25c)](_0x4e7fe3);}[_0x17f0eb(0x240)](_0x568024){var _0x48c950=_0x17f0eb;return Array['from'](this[_0x48c950(0x281)])['map'](_0xfe2fa1=>_0xfe2fa1(_0x568024));}}var H=Object[_0x17f0eb(0x26c)],V=(_0x3fcd21,_0x28fa56,_0x1a894f,_0x1a53c6)=>{for(var _0x128155=_0x1a53c6>0x1?void 0x0:_0x1a53c6?H(_0x28fa56,_0x1a894f):_0x28fa56,_0x232afc=_0x3fcd21['length']-0x1,_0xe09c6b;_0x232afc>=0x0;_0x232afc--)(_0xe09c6b=_0x3fcd21[_0x232afc])&&(_0x128155=_0xe09c6b(_0x128155)||_0x128155);return _0x128155;},k=(_0x12c23e,_0x435702)=>(_0x52cc10,_0xdf87)=>_0x435702(_0x52cc10,_0xdf87,_0x12c23e);let O=class extends o[_0x17f0eb(0x233)]{constructor(_0x2e89c9){super(),this['_liveShareService']=_0x2e89c9,this['_init']();}['_init'](){var _0x233a00=_0x17f0eb;[D[_0x233a00(0x1e8)]['id'],D[_0x233a00(0x279)]['id'],C[_0x233a00(0x20d)]['id']][_0x233a00(0x1fe)](_0x220976=>{var _0x3f3f77=_0x233a00;this['disposeWithMe'](this[_0x3f3f77(0x28e)][_0x3f3f77(0x1ea)](_0x220976));});}};O=V([k(0x0,o[_0x17f0eb(0x290)](E))],O);var u=function(){var _0x2cf972=_0x17f0eb;return u=Object[_0x2cf972(0x242)]||function(_0x1f6e28){var _0x591b00=_0x2cf972;for(var _0x392e9b,_0x530b28=0x1,_0x3e7ace=arguments[_0x591b00(0x27c)];_0x530b28<_0x3e7ace;_0x530b28++){_0x392e9b=arguments[_0x530b28];for(var _0x3de4d4 in _0x392e9b)Object[_0x591b00(0x1de)]['hasOwnProperty'][_0x591b00(0x2ae)](_0x392e9b,_0x3de4d4)&&(_0x1f6e28[_0x3de4d4]=_0x392e9b[_0x3de4d4]);}return _0x1f6e28;},u['apply'](this,arguments);},M=function(_0x5e6d22,_0x378110){var _0x378dc8=_0x17f0eb,_0x33da7d={};for(var _0x11a378 in _0x5e6d22)Object[_0x378dc8(0x1de)][_0x378dc8(0x278)][_0x378dc8(0x2ae)](_0x5e6d22,_0x11a378)&&_0x378110[_0x378dc8(0x21a)](_0x11a378)<0x0&&(_0x33da7d[_0x11a378]=_0x5e6d22[_0x11a378]);if(_0x5e6d22!=null&&typeof Object['getOwnPropertySymbols']==_0x378dc8(0x21c)){for(var _0x592b75=0x0,_0x11a378=Object[_0x378dc8(0x207)](_0x5e6d22);_0x592b75<_0x11a378['length'];_0x592b75++)_0x378110[_0x378dc8(0x21a)](_0x11a378[_0x592b75])<0x0&&Object[_0x378dc8(0x1de)][_0x378dc8(0x29f)][_0x378dc8(0x2ae)](_0x5e6d22,_0x11a378[_0x592b75])&&(_0x33da7d[_0x11a378[_0x592b75]]=_0x5e6d22[_0x11a378[_0x592b75]]);}return _0x33da7d;},j=f[_0x17f0eb(0x2a7)](function(_0x4d085c,_0x391270){var _0x526cd8=_0x17f0eb,_0x524461=_0x4d085c['icon'],_0x243491=_0x4d085c['id'],_0x4238a9=_0x4d085c[_0x526cd8(0x299)],_0x3f6006=_0x4d085c[_0x526cd8(0x25d)],_0x49cfae=M(_0x4d085c,[_0x526cd8(0x1f1),'id','className',_0x526cd8(0x25d)]),_0x872dd8=_0x526cd8(0x1df)[_0x526cd8(0x2a6)](_0x243491,'\x20')[_0x526cd8(0x2a6)](_0x4238a9||'')['trim'](),_0x4e60b8=f[_0x526cd8(0x1d6)]('_'['concat'](G()));return y(_0x524461,''['concat'](_0x243491),{'defIds':_0x524461[_0x526cd8(0x2ab)],'idSuffix':_0x4e60b8[_0x526cd8(0x238)]},u({'ref':_0x391270,'className':_0x872dd8},_0x49cfae),_0x3f6006);});function y(_0xda3dbc,_0x81674e,_0xd3ad95,_0x9ab1ff,_0x523af7){var _0x4219ce=_0x17f0eb;return f['createElement'](_0xda3dbc[_0x4219ce(0x211)],u(u({'key':_0x81674e},q(_0xda3dbc,_0xd3ad95,_0x523af7)),_0x9ab1ff),(W(_0xda3dbc,_0xd3ad95)[_0x4219ce(0x204)]||[])[_0x4219ce(0x201)](function(_0x12bde8,_0x4f6708){var _0x19a93d=_0x4219ce;return y(_0x12bde8,''['concat'](_0x81674e,'-')[_0x19a93d(0x2a6)](_0xda3dbc[_0x19a93d(0x211)],'-')[_0x19a93d(0x2a6)](_0x4f6708),_0xd3ad95,void 0x0,_0x523af7);}));}function q(_0x5544a4,_0x38a9a4,_0x2cb2c0){var _0x2ca9d5=_0x17f0eb,_0x5855f9=u({},_0x5544a4['attrs']);_0x2cb2c0!=null&&_0x2cb2c0[_0x2ca9d5(0x252)]&&_0x5855f9['fill']===_0x2ca9d5(0x252)&&(_0x5855f9[_0x2ca9d5(0x236)]=_0x2cb2c0[_0x2ca9d5(0x252)]),_0x5544a4['tag']===_0x2ca9d5(0x26f)&&_0x5855f9['id']&&(_0x5855f9['id']=_0x5855f9['id']+_0x38a9a4[_0x2ca9d5(0x21b)]),Object[_0x2ca9d5(0x28b)](_0x5855f9)['forEach'](function(_0x18f4b3){var _0x85188c=_0x2ca9d5,_0x2a5c3c=_0x18f4b3[0x0],_0x2b4179=_0x18f4b3[0x1];_0x2a5c3c==='mask'&&typeof _0x2b4179==_0x85188c(0x2a8)&&(_0x5855f9[_0x2a5c3c]=_0x2b4179[_0x85188c(0x202)](/url\(#(.*)\)/,_0x85188c(0x1e1)['concat'](_0x38a9a4[_0x85188c(0x21b)],')')));});var _0x557f30=_0x38a9a4[_0x2ca9d5(0x2ab)];return!_0x557f30||_0x557f30[_0x2ca9d5(0x27c)]===0x0||(_0x5544a4['tag']===_0x2ca9d5(0x234)&&_0x5855f9['xlink:href']&&(_0x5855f9[_0x2ca9d5(0x27d)]=_0x5855f9[_0x2ca9d5(0x27d)]+_0x38a9a4['idSuffix']),Object[_0x2ca9d5(0x28b)](_0x5855f9)[_0x2ca9d5(0x1fe)](function(_0x1e005c){var _0x571418=_0x2ca9d5,_0x1438e6=_0x1e005c[0x0],_0x24182e=_0x1e005c[0x1];typeof _0x24182e==_0x571418(0x2a8)&&(_0x5855f9[_0x1438e6]=_0x24182e[_0x571418(0x202)](/url\(#(.*)\)/,_0x571418(0x1e1)[_0x571418(0x2a6)](_0x38a9a4[_0x571418(0x21b)],')')));})),_0x5855f9;}function W(_0x40d5bf,_0x171048){var _0x3474da=_0x17f0eb,_0x2c9d4d,_0x130a2a=_0x171048['defIds'];return!_0x130a2a||_0x130a2a[_0x3474da(0x27c)]===0x0?_0x40d5bf:_0x40d5bf[_0x3474da(0x211)]===_0x3474da(0x27f)&&(!((_0x2c9d4d=_0x40d5bf[_0x3474da(0x204)])===null||_0x2c9d4d===void 0x0)&&_0x2c9d4d[_0x3474da(0x27c)])?u(u({},_0x40d5bf),{'children':_0x40d5bf[_0x3474da(0x204)][_0x3474da(0x201)](function(_0x2bd013){var _0x8a8490=_0x3474da;return typeof _0x2bd013['attrs']['id']=='string'&&_0x130a2a&&_0x130a2a['indexOf'](_0x2bd013[_0x8a8490(0x261)]['id'])>-0x1?u(u({},_0x2bd013),{'attrs':u(u({},_0x2bd013['attrs']),{'id':_0x2bd013[_0x8a8490(0x261)]['id']+_0x171048['idSuffix']})}):_0x2bd013;})}):_0x40d5bf;}function G(){var _0x5522d0=_0x17f0eb;return Math['random']()[_0x5522d0(0x269)](0x24)['substring'](0x2,0x8);}j[_0x17f0eb(0x220)]=_0x17f0eb(0x284);var B={'tag':'svg','attrs':{'fill':_0x17f0eb(0x1f5),'viewBox':_0x17f0eb(0x2af),'width':_0x17f0eb(0x222),'height':_0x17f0eb(0x222)},'children':[{'tag':_0x17f0eb(0x257),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x17f0eb(0x257),'attrs':{'fill':_0x17f0eb(0x243),'d':_0x17f0eb(0x1eb),'fillRule':_0x17f0eb(0x258),'clipRule':_0x17f0eb(0x258)}}]},P=f[_0x17f0eb(0x2a7)](function(_0x5ccec3,_0x528dab){var _0x4019f9=_0x17f0eb;return f[_0x4019f9(0x28c)](j,Object[_0x4019f9(0x242)]({},_0x5ccec3,{'id':_0x4019f9(0x1da),'ref':_0x528dab,'icon':B}));});P[_0x17f0eb(0x220)]=_0x17f0eb(0x1dc);var Y=Object[_0x17f0eb(0x26c)],R=(_0x3e3756,_0x3b5d26,_0xab8b26,_0x33b44b)=>{var _0x5bcd3a=_0x17f0eb;for(var _0x14380c=_0x33b44b>0x1?void 0x0:_0x33b44b?Y(_0x3b5d26,_0xab8b26):_0x3b5d26,_0x27561b=_0x3e3756[_0x5bcd3a(0x27c)]-0x1,_0x61e52e;_0x27561b>=0x0;_0x27561b--)(_0x61e52e=_0x3e3756[_0x27561b])&&(_0x14380c=_0x61e52e(_0x14380c)||_0x14380c);return _0x14380c;},S=(_0xef02b,_0x1983de)=>(_0x1ca350,_0x5c275f)=>_0x1983de(_0x1ca350,_0x5c275f,_0xef02b);exports[_0x17f0eb(0x20e)]=class extends o[_0x17f0eb(0x295)]{constructor(_0x1490ab,_0x196798,_0x20fc4f){var _0x3cea52=_0x17f0eb;super(),v(this,'_entities',new Map()),(this[_0x3cea52(0x25b)]=_0x1490ab,this['_injector']=_0x196798,this['_collabSessionService']=_0x20fc4f,this[_0x3cea52(0x206)]());}async[_0x17f0eb(0x22b)](_0x4f26e2){var _0x21cb32=_0x17f0eb;return this[_0x21cb32(0x208)]['has'](_0x4f26e2)||await this[_0x21cb32(0x291)](_0x4f26e2),this[_0x21cb32(0x208)][_0x21cb32(0x26a)](_0x4f26e2);}[_0x17f0eb(0x206)](){var _0x11db21=_0x17f0eb;this[_0x11db21(0x25b)]['getTypeOfUnitAdded$'](o[_0x11db21(0x203)][_0x11db21(0x22e)])[_0x11db21(0x250)](b[_0x11db21(0x1f8)](this[_0x11db21(0x2a9)]))[_0x11db21(0x24a)](async _0x55c043=>{var _0x543628=_0x11db21;const _0x160f6a=_0x55c043[_0x543628(0x1f7)]();this[_0x543628(0x208)][_0x543628(0x25c)](_0x160f6a)||this[_0x543628(0x291)](_0x160f6a);}),this[_0x11db21(0x25b)][_0x11db21(0x1d5)](o[_0x11db21(0x203)][_0x11db21(0x22e)])['pipe'](b[_0x11db21(0x1f8)](this[_0x11db21(0x2a9)]))['subscribe'](_0xd86381=>{var _0x1b4d8=_0x11db21;const _0x8f4cfd=_0xd86381['getUnitId'](),_0x4a0f99=this[_0x1b4d8(0x208)][_0x1b4d8(0x26a)](_0x8f4cfd);_0x4a0f99==null||_0x4a0f99[_0x1b4d8(0x22d)]();});}async[_0x17f0eb(0x291)](_0x236b26){var _0x765102=_0x17f0eb;const _0xc5b45c=await this['_collabSessionService']['requireSession'](_0x236b26),_0x2031ab=this[_0x765102(0x293)][_0x765102(0x271)](exports['LiveShareCoordinator'],_0x236b26,_0xc5b45c);return _0x2031ab[_0x765102(0x267)](),this['_entities']['set'](_0x236b26,_0x2031ab),_0x2031ab;}},exports[_0x17f0eb(0x20e)]=R([S(0x0,o[_0x17f0eb(0x1d1)]),S(0x1,o[_0x17f0eb(0x290)](o[_0x17f0eb(0x21f)])),S(0x2,o[_0x17f0eb(0x290)](m[_0x17f0eb(0x1ed)]))],exports[_0x17f0eb(0x20e)]);var h=(_0xe6594f=>(_0xe6594f[_0x17f0eb(0x24c)]=_0x17f0eb(0x255),_0xe6594f[_0x17f0eb(0x273)]=_0x17f0eb(0x2a3),_0xe6594f[_0x17f0eb(0x200)]=_0x17f0eb(0x2a0),_0xe6594f[_0x17f0eb(0x20b)]=_0x17f0eb(0x294),_0xe6594f[_0x17f0eb(0x265)]=_0x17f0eb(0x289),_0xe6594f))(h||{});const Z=_0x17f0eb(0x29a),J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x3be83c,_0x55104d,_0x7b479a,_0x388c78,_0xef825a){var _0x29b26c=_0x17f0eb;super(),v(this,_0x29b26c(0x231),new x[(_0x29b26c(0x1e6))](_0x29b26c(0x2a3))),v(this,'status$',this[_0x29b26c(0x231)][_0x29b26c(0x1fc)]()),v(this,_0x29b26c(0x206),!0x1),v(this,'_commandDisposable',null),v(this,_0x29b26c(0x275),null),(this[_0x29b26c(0x24b)]=_0x3be83c,this['_collabSession']=_0x55104d,this[_0x29b26c(0x22a)]=_0x7b479a,this[_0x29b26c(0x28e)]=_0x388c78,this[_0x29b26c(0x224)]=_0xef825a);}get[_0x17f0eb(0x26b)](){return this['_status$']['getValue']();}[_0x17f0eb(0x22d)](){var _0x1fd945=_0x17f0eb,_0x41a2fa;(_0x41a2fa=this[_0x1fd945(0x277)])==null||_0x41a2fa[_0x1fd945(0x22d)](),this[_0x1fd945(0x231)]['next']('idle'),this[_0x1fd945(0x231)][_0x1fd945(0x29e)]();}[_0x17f0eb(0x267)](){var _0x2aca2e=_0x17f0eb;this[_0x2aca2e(0x206)]||(this['_init']=!0x0,this[_0x2aca2e(0x1f2)][_0x2aca2e(0x1dd)][_0x2aca2e(0x250)](b['takeUntil'](this[_0x2aca2e(0x2a9)]))[_0x2aca2e(0x24a)](_0x5ddde5=>{var _0xdb7abf=_0x2aca2e;switch(_0x5ddde5){case m[_0xdb7abf(0x249)][_0xdb7abf(0x24c)]:this[_0xdb7abf(0x210)]();break;case m[_0xdb7abf(0x249)]['ONLINE']:this[_0xdb7abf(0x28d)]();break;}}),this[_0x2aca2e(0x1f2)][_0x2aca2e(0x21d)][_0x2aca2e(0x250)](b[_0x2aca2e(0x1f8)](this[_0x2aca2e(0x2a9)]))[_0x2aca2e(0x24a)](_0x3a6b28=>{var _0x44f497=_0x2aca2e;const {eventID:_0x4cc724}=_0x3a6b28;switch(_0x4cc724){case _['CollaborationEvent'][_0x44f497(0x219)]:this[_0x44f497(0x1f6)](_0x3a6b28);break;case _['CollaborationEvent'][_0x44f497(0x264)]:this[_0x44f497(0x23a)](_0x3a6b28);break;case _['CollaborationEvent'][_0x44f497(0x209)]:this[_0x44f497(0x1ef)]();break;case _[_0x44f497(0x287)]['NEW_CHANGESETS']:this[_0x44f497(0x24f)](_0x3a6b28);break;}}));}[_0x17f0eb(0x274)](){var _0x546920=_0x17f0eb;this['_collabSession'][_0x546920(0x297)]({'eventID':_[_0x546920(0x287)][_0x546920(0x218)],'data':{'unitID':this[_0x546920(0x24b)],'userID':this[_0x546920(0x1f2)][_0x546920(0x227)]()}},this['_unitID']);}['stopPresenting'](){var _0x1c9780=_0x17f0eb;this[_0x1c9780(0x26b)]===_0x1c9780(0x289)&&(this['_status$'][_0x1c9780(0x280)](_0x1c9780(0x2a3)),this[_0x1c9780(0x1f2)][_0x1c9780(0x297)]({'eventID':_[_0x1c9780(0x287)][_0x1c9780(0x209)],'data':{'unitID':this[_0x1c9780(0x24b)]}},this['_unitID']));}[_0x17f0eb(0x1d0)](){var _0x3e4546=_0x17f0eb;this[_0x3e4546(0x26b)]==='not-following'&&(this[_0x3e4546(0x231)][_0x3e4546(0x280)](_0x3e4546(0x2a0)),this['_startFollowing']());}['stopFollowing'](){var _0x33bae5=_0x17f0eb;this[_0x33bae5(0x26b)]==='following'&&this[_0x33bae5(0x1e5)]();}['_handleNewHost'](_0x3a1ae3){var _0x29a93a=_0x17f0eb;const {presenter:_0x172d8c}=_0x3a1ae3[_0x29a93a(0x254)],_0xcd35be=this[_0x29a93a(0x1f2)][_0x29a93a(0x227)]();this[_0x29a93a(0x275)]=_0x172d8c,_0x172d8c===_0xcd35be?(this[_0x29a93a(0x1e5)](),this['_startPresenting']()):this['_status']!==_0x29a93a(0x294)&&(this[_0x29a93a(0x232)](),this[_0x29a93a(0x1e9)]());}[_0x17f0eb(0x25f)](){var _0x178dd6=_0x17f0eb;const _0x12a001={'eventID':_[_0x178dd6(0x287)][_0x178dd6(0x270)]};this[_0x178dd6(0x1f2)][_0x178dd6(0x297)](_0x12a001,this[_0x178dd6(0x24b)]);}[_0x17f0eb(0x1ef)](){var _0x57abf3=_0x17f0eb;this[_0x57abf3(0x275)]=null,this[_0x57abf3(0x26b)]!=='presenting'&&this[_0x57abf3(0x225)]();}[_0x17f0eb(0x24f)](_0x4f853b){var _0x1413ca=_0x17f0eb;if(this[_0x1413ca(0x26b)]===_0x1413ca(0x2a0)&&this[_0x1413ca(0x275)]===_0x4f853b[_0x1413ca(0x254)][_0x1413ca(0x1d9)]){const _0x2d21de=_['parseProtocolChangeset'](_0x4f853b[_0x1413ca(0x254)])[_0x1413ca(0x237)][_0x1413ca(0x268)]()[_0x1413ca(0x27a)](_0x44fcf9=>_0x44fcf9['id']===C['InsertSheetMutation']['id']);if(_0x2d21de){const _0x37e96c=_0x2d21de[_0x1413ca(0x256)]['unitId'],_0x352582=_0x2d21de['params']['sheet']['id'];setTimeout(()=>{var _0x1323a7=_0x1413ca;this[_0x1323a7(0x224)]['executeCommand'](C[_0x1323a7(0x20d)]['id'],{'unitId':_0x37e96c,'subUnitId':_0x352582},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x585c81=_0x17f0eb;this[_0x585c81(0x231)][_0x585c81(0x280)](_0x585c81(0x289));const _0x2d4fdf=new Map(),_0x157deb=this[_0x585c81(0x277)]=new o['DisposableCollection']();_0x157deb[_0x585c81(0x276)](o[_0x585c81(0x23f)](()=>{var _0x26b690=_0x585c81;_0x2d4fdf[_0x26b690(0x1fe)](_0x36466b=>_0x36466b['complete']()),_0x2d4fdf[_0x26b690(0x253)]();})),_0x157deb[_0x585c81(0x276)](this['_commandService'][_0x585c81(0x2b0)](_0x10c077=>{var _0xadd3c7=_0x585c81,_0x58fb1f;if(_0x10c077['type']!==o['CommandType'][_0xadd3c7(0x1e4)]||!this[_0xadd3c7(0x28e)][_0xadd3c7(0x285)](_0x10c077['id']))return;const {id:_0x591406}=_0x10c077;let _0x52e693;_0x2d4fdf[_0xadd3c7(0x25c)](_0x591406)?_0x52e693=_0x2d4fdf[_0xadd3c7(0x26a)](_0x591406):(_0x52e693=new x[(_0xadd3c7(0x292))](),_0x2d4fdf[_0xadd3c7(0x251)](_0x591406,_0x52e693),_0x52e693[_0xadd3c7(0x250)](b[_0xadd3c7(0x212)]((_0x58fb1f=this[_0xadd3c7(0x22a)]['getConfig'](Z))!=null?_0x58fb1f:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xadd3c7(0x24a)](_0x1e784d=>{var _0x16d0a5=_0xadd3c7;this[_0x16d0a5(0x1f2)][_0x16d0a5(0x297)]({'eventID':_[_0x16d0a5(0x287)][_0x16d0a5(0x264)],'data':{'unitID':this[_0x16d0a5(0x24b)],'operations':{[_0x1e784d['id']]:{'id':_0x1e784d['id'],'params':JSON[_0x16d0a5(0x26e)](_0x1e784d[_0x16d0a5(0x256)])}}}},this[_0x16d0a5(0x24b)]);})),_0x52e693[_0xadd3c7(0x280)](_0x10c077);})),this[_0x585c81(0x28e)][_0x585c81(0x240)](this[_0x585c81(0x24b)])['forEach'](_0x18c3a7=>this[_0x585c81(0x1f2)]['send']({'eventID':_[_0x585c81(0x287)][_0x585c81(0x264)],'data':{'unitID':this[_0x585c81(0x24b)],'operations':{[_0x18c3a7['id']]:{'id':_0x18c3a7['id'],'params':JSON[_0x585c81(0x26e)](_0x18c3a7[_0x585c81(0x256)])}}}},this['_unitID']));}[_0x17f0eb(0x232)](){var _0x51c543=_0x17f0eb,_0x23b800;this[_0x51c543(0x231)][_0x51c543(0x280)](_0x51c543(0x2a3)),(_0x23b800=this[_0x51c543(0x277)])==null||_0x23b800['dispose'](),this[_0x51c543(0x277)]=null;}['_startFollowing'](){var _0x3fe17c=_0x17f0eb,_0xa1d117;(_0xa1d117=this[_0x3fe17c(0x277)])==null||_0xa1d117[_0x3fe17c(0x22d)](),this[_0x3fe17c(0x231)][_0x3fe17c(0x280)](_0x3fe17c(0x2a0));}['_beIdle'](){var _0x3a83cf=_0x17f0eb,_0x35e81d;this[_0x3a83cf(0x231)][_0x3a83cf(0x280)](_0x3a83cf(0x2a3)),(_0x35e81d=this[_0x3a83cf(0x277)])==null||_0x35e81d[_0x3a83cf(0x22d)](),this['_commandDisposable']=null;}[_0x17f0eb(0x1e5)](){var _0x1c8616=_0x17f0eb,_0xf7fa73;this[_0x1c8616(0x231)][_0x1c8616(0x280)](_0x1c8616(0x294)),(_0xf7fa73=this['_commandDisposable'])==null||_0xf7fa73[_0x1c8616(0x22d)]();}['_handleOperation'](_0x46cf9d){var _0x4cb919=_0x17f0eb;if([_0x4cb919(0x289),'not-following',_0x4cb919(0x255)][_0x4cb919(0x286)](this[_0x4cb919(0x26b)])||!_0x46cf9d['data'][_0x4cb919(0x20c)]||_0x46cf9d[_0x4cb919(0x254)][_0x4cb919(0x20c)]===this['_collabSession'][_0x4cb919(0x227)]())return;this[_0x4cb919(0x26b)]===_0x4cb919(0x2a3)&&this[_0x4cb919(0x1e9)]();const _0x32f4e4=_0x46cf9d[_0x4cb919(0x254)]['operations'];Object[_0x4cb919(0x29d)](_0x32f4e4)[_0x4cb919(0x1fe)](_0x4a345a=>{var _0x137045=_0x4cb919;this[_0x137045(0x224)][_0x137045(0x24d)](_0x4a345a['id'],_0x4a345a[_0x137045(0x256)]?JSON[_0x137045(0x205)](_0x4a345a['params']):null,{'fromCollab':!0x0});});}[_0x17f0eb(0x210)](){var _0x5830a5=_0x17f0eb,_0x31d343;this[_0x5830a5(0x231)][_0x5830a5(0x280)](_0x5830a5(0x255)),(_0x31d343=this[_0x5830a5(0x277)])==null||_0x31d343[_0x5830a5(0x22d)]();}[_0x17f0eb(0x28d)](){var _0x2ed498=_0x17f0eb;this[_0x2ed498(0x231)][_0x2ed498(0x280)]('idle'),this['_fetchOperations']();}},exports[_0x17f0eb(0x215)]=R([S(0x2,o[_0x17f0eb(0x2a2)]),S(0x3,o[_0x17f0eb(0x290)](E)),S(0x4,o[_0x17f0eb(0x229)])],exports[_0x17f0eb(0x215)]);function A(){var _0xe9cb00=_0x17f0eb;const _0x543bd9=p[_0xe9cb00(0x1d3)](exports[_0xe9cb00(0x20e)]),_0x10fa45=p[_0xe9cb00(0x1d3)](o[_0xe9cb00(0x1d1)]),_0x460385=p[_0xe9cb00(0x27e)](()=>_0x10fa45[_0xe9cb00(0x21e)](o[_0xe9cb00(0x203)][_0xe9cb00(0x22e)]),void 0x0,!0x1,[]),[_0x4768b7,_0x504428]=f['useState'](null),[_0x3bb031,_0x715974]=f['useState'](h[_0xe9cb00(0x273)]),_0x22afe1=f['useRef'](null);return f['useEffect'](()=>(_0x460385&&_0x543bd9[_0xe9cb00(0x22b)](_0x460385[_0xe9cb00(0x1f7)]())['then'](_0x18394f=>{var _0x35962d=_0xe9cb00;_0x504428(_0x18394f),_0x22afe1[_0x35962d(0x238)]=_0x18394f[_0x35962d(0x283)][_0x35962d(0x24a)](_0xd38d12=>{_0x715974(_0xd38d12);});}),()=>{var _0x5cfbb5=_0xe9cb00,_0x5a3075;(_0x5a3075=_0x22afe1[_0x5cfbb5(0x238)])==null||_0x5a3075['unsubscribe'](),_0x22afe1[_0x5cfbb5(0x238)]=null;}),[_0x460385,_0x543bd9]),_0x4768b7?l['jsx'](g[_0xe9cb00(0x288)],{'align':'end','disabled':_0x3bb031===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-white\x20dark:univer-bg-white\x20dark:univer-text-gray-900','overlay':l[_0xe9cb00(0x296)](K,{'status':_0x3bb031,'coordinator':_0x4768b7}),'children':l['jsx'](_0xe9cb00(0x1f3),{'className':g[_0xe9cb00(0x246)](_0xe9cb00(0x23e),{'univer-cursor-not-allowed':_0x3bb031===h[_0xe9cb00(0x24c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3bb031!==h[_0xe9cb00(0x24c)]}),'type':'button','children':l['jsx'](P,{'className':_0xe9cb00(0x1f9)})})}):null;}function _0x44b5(){var _0x5540f6=['event$','getCurrentTypeOfUnit$','Injector','displayName','_sharedOperations','1em','rxjs/operators','_commandService','_beIdle','registerComponent','getMemberID','@univerjs/sheets','ICommandService','_configService','getLiveShareCoordinator','HEADER_MENU','dispose','UNIVER_SHEET','@univerjs/design','1125837TZJOuN','_status$','_stopPresenting','Disposable','use','@univerjs/core','fill','mutations','current','@univerjs-pro/collaboration-client','_handleOperation','pluginName','override','disposeWithMe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','toDisposable','getInitialStates','3812200kDfQNV','assign','currentColor','Present\x20this\x20document','UniverLiveSharePlugin','clsx','DesktopLiveShareController','You\x27are\x20offline.','SessionStatus','subscribe','_unitID','OFFLINE','executeCommand','react','_handleNewChangeSets','pipe','set','colorChannel1','clear','data','offline','params','path','evenodd','@univerjs-pro/collaboration','stopFollowing','_univerInstanceService','has','extend','Module','_fetchOperations','UNIVER_LIVE_SHARE_PLUGIN','attrs','text','jsxs','LIVESHARE_OPERATION','PRESENTING','_mountLiveShare','init','reverse','toString','get','_status','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','stringify','mask','LIVESHARE_FETCH_OPERATIONS','createInstance','65KJQjrv','IDLE','tryStartPresenting','_presenter','add','_commandDisposable','hasOwnProperty','SetScrollOperation','find','259roGPDc','length','xlink:href','useObservable','defs','next','_reporters','Stop\x20presenting','status$','UniverIcon','shouldShareOperation','includes','CollaborationEvent','Dropdown','presenting','defineProperty','entries','createElement','_handleOnline','_liveShareService','LiveShareStatus','Inject','_startLiveShareCoordinator','Subject','_injector','not-following','RxDisposable','jsx','send','127064ECPqRC','className','SAME_OPERATION_SHARE_INTERVAL','registerDependencies','LiveShareService','values','complete','propertyIsEnumerable','following','univer-w-full\x20univer-mb-3\x20univer-text-sm','IConfigService','idle','onRendered','Start\x20following','concat','forwardRef','string','dispose$','symbol','defIds','669182gmesEG','stopPresenting','call','0\x200\x2016\x2016','onCommandExecuted','startFollowing','IUniverInstanceService','mergeOverrideWithDependencies','useDependency','default','getTypeOfUnitDisposed$','useRef','144ZFUIGJ','type','memberID','live-share-single','You\x27re\x20presenting\x20the\x20document','LiveShareSingle','sessionStatus$','prototype','univerjs-icon\x20univerjs-icon-','_config','url(#$1','LiveShare','delete','OPERATION','_stopFollowing','BehaviorSubject','Fragment','SetZoomRatioOperation','_startFollowing','registerSharedOperation','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','DependentOn','CollaborationSessionService','286580djiJGz','_handleTerminate','rxjs','icon','_collabSession','button','@univerjs/ui','none','_handleNewHost','getUnitId','takeUntil','univer-size-4','onStarting','23640DgNcfo','asObservable','_uiPartsService','forEach','UNIVER_UNKNOWN','FOLLOWING','map','replace','UniverInstanceType','children','parse','_init','getOwnPropertySymbols','_entities','LIVESHARE_TERMINATE','touchDependencies','NOT_FOLLOWING','presenter','SetWorksheetActiveOperation','LiveShareController','161682FuscbN','_handleOffline','tag','throttleTime','Button','@univerjs/sheets-ui','LiveShareCoordinator','Plugin','div','LIVESHARE_REQUEST_HOST','LIVESHARE_NEW_HOST','indexOf','idSuffix','function'];_0x44b5=function(){return _0x5540f6;};return _0x44b5();}function K(_0x3c0c49){var _0x27441d=_0x17f0eb;const {status:_0x5ea22a,coordinator:_0x6616e5}=_0x3c0c49;switch(_0x5ea22a){case h[_0x27441d(0x273)]:return l[_0x27441d(0x296)](z,{'coordinator':_0x6616e5});case h[_0x27441d(0x200)]:return l[_0x27441d(0x296)](Q,{'coordinator':_0x6616e5});case h[_0x27441d(0x20b)]:return l['jsx'](X,{'coordinator':_0x6616e5});case h[_0x27441d(0x24c)]:return l['jsx'](te,{});case h[_0x27441d(0x265)]:return l[_0x27441d(0x296)](ee,{'coordinator':_0x6616e5});default:return null;}}function z(_0x17b475){var _0x30727e=_0x17f0eb;const {coordinator:_0x2ecda0}=_0x17b475;return l[_0x30727e(0x263)](l['Fragment'],{'children':[l[_0x30727e(0x296)](_0x30727e(0x217),{'className':_0x30727e(0x2a1),'children':_0x30727e(0x244)}),l[_0x30727e(0x296)](g[_0x30727e(0x213)],{'onClick':()=>_0x2ecda0[_0x30727e(0x274)](),'children':'Start'})]});}function Q(_0x4c9531){var _0x432563=_0x17f0eb;const {coordinator:_0x5aa21f}=_0x4c9531;return l['jsxs'](l[_0x432563(0x1e7)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x432563(0x296)](g[_0x432563(0x213)],{'onClick':()=>_0x5aa21f[_0x432563(0x25a)](),'children':'Stop\x20following'})]});}function _0x8a82(_0x36e385,_0x4b8fd9){var _0x44b591=_0x44b5();return _0x8a82=function(_0x8a82e0,_0x33acb0){_0x8a82e0=_0x8a82e0-0x1d0;var _0x51a82a=_0x44b591[_0x8a82e0];return _0x51a82a;},_0x8a82(_0x36e385,_0x4b8fd9);}function X(_0x162947){var _0x296077=_0x17f0eb;const {coordinator:_0x596fbb}=_0x162947;return l[_0x296077(0x263)](l['Fragment'],{'children':[l[_0x296077(0x296)](_0x296077(0x217),{'className':_0x296077(0x2a1),'children':_0x296077(0x26d)}),l[_0x296077(0x296)](g[_0x296077(0x213)],{'variant':_0x296077(0x262),'onClick':()=>_0x596fbb[_0x296077(0x1d0)](),'children':_0x296077(0x2a5)})]});}function ee(_0x19b6b8){var _0x5f474c=_0x17f0eb;const {coordinator:_0x4d18b0}=_0x19b6b8;return l[_0x5f474c(0x263)](l[_0x5f474c(0x1e7)],{'children':[l['jsx'](_0x5f474c(0x217),{'className':_0x5f474c(0x2a1),'children':_0x5f474c(0x1db)}),l[_0x5f474c(0x296)](g['Button'],{'variant':_0x5f474c(0x1d4),'onClick':()=>_0x4d18b0[_0x5f474c(0x2ad)](),'children':_0x5f474c(0x282)})]});}function te(){var _0x49cf7c=_0x17f0eb;return l[_0x49cf7c(0x296)](l['Fragment'],{'children':_0x49cf7c(0x248)});}var ie=Object[_0x17f0eb(0x26c)],ne=(_0x5ba0dc,_0x5f1158,_0x270e92,_0x4a115a)=>{var _0x362c12=_0x17f0eb;for(var _0x4f3a0b=_0x4a115a>0x1?void 0x0:_0x4a115a?ie(_0x5f1158,_0x270e92):_0x5f1158,_0x3d5b5d=_0x5ba0dc[_0x362c12(0x27c)]-0x1,_0x1684ff;_0x3d5b5d>=0x0;_0x3d5b5d--)(_0x1684ff=_0x5ba0dc[_0x3d5b5d])&&(_0x4f3a0b=_0x1684ff(_0x4f3a0b)||_0x4f3a0b);return _0x4f3a0b;},N=(_0xd3d17d,_0xa94eff)=>(_0x5bf036,_0x314bd8)=>_0xa94eff(_0x5bf036,_0x314bd8,_0xd3d17d);exports[_0x17f0eb(0x247)]=class extends o[_0x17f0eb(0x233)]{constructor(_0x3b13fd,_0x1fa620){var _0x52178e=_0x17f0eb;super(),this[_0x52178e(0x293)]=_0x3b13fd,this['_uiPartsService']=_0x1fa620,this[_0x52178e(0x266)]();}[_0x17f0eb(0x266)](){var _0x4594ce=_0x17f0eb;this[_0x4594ce(0x23d)](this[_0x4594ce(0x1fd)][_0x4594ce(0x226)](p['BuiltInUIPart'][_0x4594ce(0x22c)],()=>p['connectInjector'](A,this[_0x4594ce(0x293)])));}},exports[_0x17f0eb(0x247)]=ne([N(0x0,o[_0x17f0eb(0x290)](o[_0x17f0eb(0x21f)])),N(0x1,p['IUIPartsService'])],exports[_0x17f0eb(0x247)]);var re=Object[_0x17f0eb(0x28a)],se=Object[_0x17f0eb(0x26c)],oe=(_0x3516c6,_0xf72334,_0x45c1a2)=>_0xf72334 in _0x3516c6?re(_0x3516c6,_0xf72334,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45c1a2}):_0x3516c6[_0xf72334]=_0x45c1a2,ae=(_0x35c4a1,_0x377ef4,_0x5f0842,_0x5ca7fd)=>{var _0x7396ea=_0x17f0eb;for(var _0x1f5dcb=_0x5ca7fd>0x1?void 0x0:_0x5ca7fd?se(_0x377ef4,_0x5f0842):_0x377ef4,_0x142263=_0x35c4a1[_0x7396ea(0x27c)]-0x1,_0x2cc718;_0x142263>=0x0;_0x142263--)(_0x2cc718=_0x35c4a1[_0x142263])&&(_0x1f5dcb=_0x2cc718(_0x1f5dcb)||_0x1f5dcb);return _0x1f5dcb;},w=(_0x2c0e75,_0x19f291)=>(_0x591d0e,_0x4601de)=>_0x19f291(_0x591d0e,_0x4601de,_0x2c0e75),T=(_0x382b4a,_0x973a50,_0x19cdf9)=>oe(_0x382b4a,typeof _0x973a50!=_0x17f0eb(0x2aa)?_0x973a50+'':_0x973a50,_0x19cdf9);const le=_0x17f0eb(0x260);exports['UniverLiveSharePlugin']=class extends o[_0x17f0eb(0x216)]{constructor(_0x2d5daa=L,_0x52ac72,_0x17dea8){var _0x4adf49=_0x17f0eb;super(),this[_0x4adf49(0x1e0)]=_0x2d5daa,this['_injector']=_0x52ac72,this[_0x4adf49(0x22a)]=_0x17dea8;const {..._0x31332f}=o['merge']({},L,this['_config']);this['_configService']['setConfig']($,_0x31332f);}[_0x17f0eb(0x1fa)](){var _0x2a6a98=_0x17f0eb;o[_0x2a6a98(0x29b)](this[_0x2a6a98(0x293)],o[_0x2a6a98(0x1d2)]([[E],[exports[_0x2a6a98(0x20e)]],[O],[exports[_0x2a6a98(0x247)]]],this['_config'][_0x2a6a98(0x23c)])),o['touchDependencies'](this[_0x2a6a98(0x293)],[[O]]);}[_0x17f0eb(0x2a4)](){var _0x501021=_0x17f0eb;o[_0x501021(0x20a)](this[_0x501021(0x293)],[[exports[_0x501021(0x247)]]]);}},T(exports[_0x17f0eb(0x245)],_0x17f0eb(0x1d8),o[_0x17f0eb(0x203)][_0x17f0eb(0x1ff)]),T(exports[_0x17f0eb(0x245)],_0x17f0eb(0x23b),le),exports[_0x17f0eb(0x245)]=ae([o[_0x17f0eb(0x1ec)](m['UniverCollaborationClientPlugin']),w(0x1,o['Inject'](o[_0x17f0eb(0x21f)])),w(0x2,o[_0x17f0eb(0x2a2)])],exports[_0x17f0eb(0x245)]),exports[_0x17f0eb(0x1e2)]=A,exports[_0x17f0eb(0x29c)]=E,exports[_0x17f0eb(0x28f)]=h;
1
+ 'use strict';var _0x27ce7f=_0xc178;(function(_0x2743b8,_0x4d5280){var _0x4de444=_0xc178,_0x32c297=_0x2743b8();while(!![]){try{var _0x320262=parseInt(_0x4de444(0x185))/0x1*(-parseInt(_0x4de444(0x203))/0x2)+-parseInt(_0x4de444(0x1cd))/0x3*(-parseInt(_0x4de444(0x14b))/0x4)+-parseInt(_0x4de444(0x163))/0x5*(parseInt(_0x4de444(0x218))/0x6)+-parseInt(_0x4de444(0x178))/0x7+parseInt(_0x4de444(0x1cf))/0x8+parseInt(_0x4de444(0x187))/0x9*(parseInt(_0x4de444(0x200))/0xa)+-parseInt(_0x4de444(0x193))/0xb;if(_0x320262===_0x4d5280)break;else _0x32c297['push'](_0x32c297['shift']());}catch(_0x41f4e7){_0x32c297['push'](_0x32c297['shift']());}}}(_0x2ee7,0x230ab));var U=Object[_0x27ce7f(0x1b8)],F=(_0x421ba1,_0x30c009,_0x208aa9)=>_0x30c009 in _0x421ba1?U(_0x421ba1,_0x30c009,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208aa9}):_0x421ba1[_0x30c009]=_0x208aa9,v=(_0x7d4e9f,_0x5f3f22,_0x12e998)=>F(_0x7d4e9f,typeof _0x5f3f22!=_0x27ce7f(0x1c8)?_0x5f3f22+'':_0x5f3f22,_0x12e998);Object[_0x27ce7f(0x1b8)](exports,Symbol[_0x27ce7f(0x1b9)],{'value':_0x27ce7f(0x167)});const m=require(_0x27ce7f(0x190)),o=require(_0x27ce7f(0x1c1)),C=require('@univerjs/sheets'),D=require('@univerjs/sheets-ui'),p=require(_0x27ce7f(0x183)),l=require(_0x27ce7f(0x151)),g=require('@univerjs/design'),f=require(_0x27ce7f(0x15c)),_=require(_0x27ce7f(0x159)),x=require(_0x27ce7f(0x1fa)),b=require('rxjs/operators'),$=_0x27ce7f(0x158),L={};class E extends o[_0x27ce7f(0x166)]{constructor(){var _0x1f7f80=_0x27ce7f;super(...arguments),v(this,_0x1f7f80(0x188),new Set()),v(this,'_reporters',new Set());}[_0x27ce7f(0x214)](_0x499e49){var _0x4442e2=_0x27ce7f;return this[_0x4442e2(0x188)]['add'](_0x499e49),o[_0x4442e2(0x21b)](()=>this[_0x4442e2(0x188)][_0x4442e2(0x15a)](_0x499e49));}['registerInitialStateReporter'](_0x4c84e2){var _0x3fb929=_0x27ce7f;return this[_0x3fb929(0x1b4)][_0x3fb929(0x1a7)](_0x4c84e2),o[_0x3fb929(0x21b)](()=>this['_reporters'][_0x3fb929(0x15a)](_0x4c84e2));}[_0x27ce7f(0x162)](_0x19cb4d){var _0x1977c7=_0x27ce7f;return this[_0x1977c7(0x188)][_0x1977c7(0x170)](_0x19cb4d);}['getInitialStates'](_0x41f725){var _0x3fb6e9=_0x27ce7f;return Array[_0x3fb6e9(0x220)](this['_reporters'])['map'](_0x2d7222=>_0x2d7222(_0x41f725));}}var H=Object[_0x27ce7f(0x19f)],V=(_0x459878,_0x2dd8ff,_0x43a241,_0x23a5bd)=>{var _0x1dee52=_0x27ce7f;for(var _0x5cb595=_0x23a5bd>0x1?void 0x0:_0x23a5bd?H(_0x2dd8ff,_0x43a241):_0x2dd8ff,_0x14e90c=_0x459878[_0x1dee52(0x1d1)]-0x1,_0x2dd631;_0x14e90c>=0x0;_0x14e90c--)(_0x2dd631=_0x459878[_0x14e90c])&&(_0x5cb595=_0x2dd631(_0x5cb595)||_0x5cb595);return _0x5cb595;},k=(_0x2e3544,_0x18b3b1)=>(_0x4acf86,_0x478c4e)=>_0x18b3b1(_0x4acf86,_0x478c4e,_0x2e3544);let O=class extends o[_0x27ce7f(0x166)]{constructor(_0x2c7108){var _0x3630f7=_0x27ce7f;super(),this[_0x3630f7(0x1b2)]=_0x2c7108,this['_init']();}[_0x27ce7f(0x21c)](){[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x5413b2=>{var _0x35d017=_0xc178;this[_0x35d017(0x210)](this['_liveShareService'][_0x35d017(0x214)](_0x5413b2));});}};O=V([k(0x0,o[_0x27ce7f(0x1bc)](E))],O);var u=function(){var _0x1f86fe=_0x27ce7f;return u=Object['assign']||function(_0x471713){var _0x504510=_0xc178;for(var _0x4dc54a,_0x1acda6=0x1,_0x203b28=arguments[_0x504510(0x1d1)];_0x1acda6<_0x203b28;_0x1acda6++){_0x4dc54a=arguments[_0x1acda6];for(var _0x4d7024 in _0x4dc54a)Object['prototype'][_0x504510(0x17e)][_0x504510(0x16b)](_0x4dc54a,_0x4d7024)&&(_0x471713[_0x4d7024]=_0x4dc54a[_0x4d7024]);}return _0x471713;},u[_0x1f86fe(0x155)](this,arguments);},M=function(_0x1b87b3,_0x16d406){var _0x388df6=_0x27ce7f,_0x342bf3={};for(var _0x4e8096 in _0x1b87b3)Object[_0x388df6(0x165)][_0x388df6(0x17e)][_0x388df6(0x16b)](_0x1b87b3,_0x4e8096)&&_0x16d406[_0x388df6(0x153)](_0x4e8096)<0x0&&(_0x342bf3[_0x4e8096]=_0x1b87b3[_0x4e8096]);if(_0x1b87b3!=null&&typeof Object[_0x388df6(0x1f0)]=='function'){for(var _0x731780=0x0,_0x4e8096=Object[_0x388df6(0x1f0)](_0x1b87b3);_0x731780<_0x4e8096[_0x388df6(0x1d1)];_0x731780++)_0x16d406[_0x388df6(0x153)](_0x4e8096[_0x731780])<0x0&&Object[_0x388df6(0x165)][_0x388df6(0x1e4)][_0x388df6(0x16b)](_0x1b87b3,_0x4e8096[_0x731780])&&(_0x342bf3[_0x4e8096[_0x731780]]=_0x1b87b3[_0x4e8096[_0x731780]]);}return _0x342bf3;},j=f[_0x27ce7f(0x164)](function(_0x4f9380,_0x303932){var _0x51736d=_0x27ce7f,_0x3356b2=_0x4f9380[_0x51736d(0x141)],_0x155c5c=_0x4f9380['id'],_0x2fb127=_0x4f9380[_0x51736d(0x208)],_0x36a040=_0x4f9380[_0x51736d(0x179)],_0x43167e=M(_0x4f9380,[_0x51736d(0x141),'id',_0x51736d(0x208),'extend']),_0x7fb1f2=_0x51736d(0x1fc)['concat'](_0x155c5c,'\x20')[_0x51736d(0x1ff)](_0x2fb127||'')['trim'](),_0x1eb044=f[_0x51736d(0x16f)]('_'[_0x51736d(0x1ff)](G()));return y(_0x3356b2,''['concat'](_0x155c5c),{'defIds':_0x3356b2[_0x51736d(0x1f2)],'idSuffix':_0x1eb044[_0x51736d(0x21a)]},u({'ref':_0x303932,'className':_0x7fb1f2},_0x43167e),_0x36a040);});function y(_0x36e87b,_0x3eb267,_0x5753d4,_0x23a6a8,_0x5946a0){var _0xa28bb3=_0x27ce7f;return f['createElement'](_0x36e87b['tag'],u(u({'key':_0x3eb267},q(_0x36e87b,_0x5753d4,_0x5946a0)),_0x23a6a8),(W(_0x36e87b,_0x5753d4)[_0xa28bb3(0x177)]||[])['map'](function(_0x53a7e9,_0x226082){var _0x46efad=_0xa28bb3;return y(_0x53a7e9,''[_0x46efad(0x1ff)](_0x3eb267,'-')[_0x46efad(0x1ff)](_0x36e87b[_0x46efad(0x1d8)],'-')[_0x46efad(0x1ff)](_0x226082),_0x5753d4,void 0x0,_0x5946a0);}));}function q(_0x3438a6,_0x4c6d5f,_0x3b2a06){var _0x2821e0=_0x27ce7f,_0x1b8d8f=u({},_0x3438a6[_0x2821e0(0x1ac)]);_0x3b2a06!=null&&_0x3b2a06[_0x2821e0(0x1ed)]&&_0x1b8d8f['fill']==='colorChannel1'&&(_0x1b8d8f[_0x2821e0(0x197)]=_0x3b2a06[_0x2821e0(0x1ed)]),_0x3438a6[_0x2821e0(0x1d8)]==='mask'&&_0x1b8d8f['id']&&(_0x1b8d8f['id']=_0x1b8d8f['id']+_0x4c6d5f[_0x2821e0(0x204)]),Object[_0x2821e0(0x16d)](_0x1b8d8f)[_0x2821e0(0x1e8)](function(_0x317b5a){var _0x3e3d55=_0x2821e0,_0x288d14=_0x317b5a[0x0],_0x3515b7=_0x317b5a[0x1];_0x288d14==='mask'&&typeof _0x3515b7==_0x3e3d55(0x18d)&&(_0x1b8d8f[_0x288d14]=_0x3515b7[_0x3e3d55(0x156)](/url\(#(.*)\)/,_0x3e3d55(0x18f)[_0x3e3d55(0x1ff)](_0x4c6d5f['idSuffix'],')')));});var _0x3127b8=_0x4c6d5f[_0x2821e0(0x1f2)];return!_0x3127b8||_0x3127b8[_0x2821e0(0x1d1)]===0x0||(_0x3438a6[_0x2821e0(0x1d8)]==='use'&&_0x1b8d8f['xlink:href']&&(_0x1b8d8f['xlink:href']=_0x1b8d8f[_0x2821e0(0x176)]+_0x4c6d5f[_0x2821e0(0x204)]),Object[_0x2821e0(0x16d)](_0x1b8d8f)[_0x2821e0(0x1e8)](function(_0x588c3){var _0x9ba8b1=_0x2821e0,_0x151ceb=_0x588c3[0x0],_0x165a2e=_0x588c3[0x1];typeof _0x165a2e==_0x9ba8b1(0x18d)&&(_0x1b8d8f[_0x151ceb]=_0x165a2e[_0x9ba8b1(0x156)](/url\(#(.*)\)/,_0x9ba8b1(0x18f)[_0x9ba8b1(0x1ff)](_0x4c6d5f[_0x9ba8b1(0x204)],')')));})),_0x1b8d8f;}function W(_0xa841e9,_0x2a5f2a){var _0x2d2613=_0x27ce7f,_0x1bdba2,_0x2c5228=_0x2a5f2a[_0x2d2613(0x1f2)];return!_0x2c5228||_0x2c5228['length']===0x0?_0xa841e9:_0xa841e9[_0x2d2613(0x1d8)]===_0x2d2613(0x20c)&&(!((_0x1bdba2=_0xa841e9['children'])===null||_0x1bdba2===void 0x0)&&_0x1bdba2[_0x2d2613(0x1d1)])?u(u({},_0xa841e9),{'children':_0xa841e9[_0x2d2613(0x177)][_0x2d2613(0x1ef)](function(_0xd0c764){var _0x27b6a3=_0x2d2613;return typeof _0xd0c764['attrs']['id']==_0x27b6a3(0x18d)&&_0x2c5228&&_0x2c5228[_0x27b6a3(0x153)](_0xd0c764['attrs']['id'])>-0x1?u(u({},_0xd0c764),{'attrs':u(u({},_0xd0c764['attrs']),{'id':_0xd0c764[_0x27b6a3(0x1ac)]['id']+_0x2a5f2a[_0x27b6a3(0x204)]})}):_0xd0c764;})}):_0xa841e9;}function G(){var _0x2a8f5f=_0x27ce7f;return Math['random']()[_0x2a8f5f(0x1d7)](0x24)['substring'](0x2,0x8);}j[_0x27ce7f(0x1b5)]='UniverIcon';var B={'tag':_0x27ce7f(0x192),'attrs':{'fill':_0x27ce7f(0x212),'viewBox':_0x27ce7f(0x1a2),'width':_0x27ce7f(0x175),'height':_0x27ce7f(0x175)},'children':[{'tag':_0x27ce7f(0x16e),'attrs':{'fill':_0x27ce7f(0x1a8),'d':_0x27ce7f(0x1ee)}},{'tag':'path','attrs':{'fill':_0x27ce7f(0x1a8),'d':_0x27ce7f(0x1e0),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x27ce7f(0x164)](function(_0x4fc576,_0x286179){var _0x31aec6=_0x27ce7f;return f[_0x31aec6(0x14c)](j,Object[_0x31aec6(0x171)]({},_0x4fc576,{'id':_0x31aec6(0x1fe),'ref':_0x286179,'icon':B}));});P[_0x27ce7f(0x1b5)]=_0x27ce7f(0x1bb);var Y=Object[_0x27ce7f(0x19f)],R=(_0x1bf4cc,_0x30f5c9,_0x4f1deb,_0x2ba10b)=>{var _0x5aae0c=_0x27ce7f;for(var _0x5db999=_0x2ba10b>0x1?void 0x0:_0x2ba10b?Y(_0x30f5c9,_0x4f1deb):_0x30f5c9,_0x4c7b6f=_0x1bf4cc[_0x5aae0c(0x1d1)]-0x1,_0x230bb2;_0x4c7b6f>=0x0;_0x4c7b6f--)(_0x230bb2=_0x1bf4cc[_0x4c7b6f])&&(_0x5db999=_0x230bb2(_0x5db999)||_0x5db999);return _0x5db999;},S=(_0x485541,_0x4a8067)=>(_0x41893c,_0x2b54f6)=>_0x4a8067(_0x41893c,_0x2b54f6,_0x485541);exports[_0x27ce7f(0x1cc)]=class extends o[_0x27ce7f(0x15d)]{constructor(_0x11f941,_0x2a3a04,_0x18be56){var _0x57807f=_0x27ce7f;super(),v(this,_0x57807f(0x207),new Map()),(this[_0x57807f(0x1da)]=_0x11f941,this[_0x57807f(0x194)]=_0x2a3a04,this['_collabSessionService']=_0x18be56,this['_init']());}async[_0x27ce7f(0x189)](_0x8c382){var _0x3948c8=_0x27ce7f;return this[_0x3948c8(0x207)][_0x3948c8(0x170)](_0x8c382)||await this[_0x3948c8(0x21e)](_0x8c382),this['_entities'][_0x3948c8(0x1fb)](_0x8c382);}[_0x27ce7f(0x21c)](){var _0x39f8f6=_0x27ce7f;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x39f8f6(0x14f)][_0x39f8f6(0x1a4)])[_0x39f8f6(0x149)](b['takeUntil'](this[_0x39f8f6(0x1ec)]))[_0x39f8f6(0x1d4)](async _0x1abdf4=>{var _0x100eed=_0x39f8f6;const _0x2c7f84=_0x1abdf4[_0x100eed(0x191)]();this[_0x100eed(0x207)]['has'](_0x2c7f84)||this[_0x100eed(0x21e)](_0x2c7f84);}),this[_0x39f8f6(0x1da)]['getTypeOfUnitDisposed$'](o[_0x39f8f6(0x14f)][_0x39f8f6(0x1a4)])['pipe'](b[_0x39f8f6(0x143)](this[_0x39f8f6(0x1ec)]))[_0x39f8f6(0x1d4)](_0x26100d=>{var _0x2e96d6=_0x39f8f6;const _0x340da6=_0x26100d[_0x2e96d6(0x191)](),_0x18bc03=this['_entities'][_0x2e96d6(0x1fb)](_0x340da6);_0x18bc03==null||_0x18bc03[_0x2e96d6(0x1a9)]();});}async[_0x27ce7f(0x21e)](_0xdda24){var _0x17dfa6=_0x27ce7f;const _0x47f0ff=await this['_collabSessionService']['requireSession'](_0xdda24),_0x2a2131=this[_0x17dfa6(0x194)][_0x17dfa6(0x182)](exports[_0x17dfa6(0x1b7)],_0xdda24,_0x47f0ff);return _0x2a2131[_0x17dfa6(0x1a6)](),this['_entities'][_0x17dfa6(0x1df)](_0xdda24,_0x2a2131),_0x2a2131;}},exports[_0x27ce7f(0x1cc)]=R([S(0x0,o[_0x27ce7f(0x1fd)]),S(0x1,o[_0x27ce7f(0x1bc)](o[_0x27ce7f(0x215)])),S(0x2,o[_0x27ce7f(0x1bc)](m[_0x27ce7f(0x1af)]))],exports['LiveShareController']);var h=(_0x3a6c45=>(_0x3a6c45[_0x27ce7f(0x1d6)]=_0x27ce7f(0x1d5),_0x3a6c45[_0x27ce7f(0x13f)]=_0x27ce7f(0x1f3),_0x3a6c45[_0x27ce7f(0x1e7)]=_0x27ce7f(0x14a),_0x3a6c45[_0x27ce7f(0x14e)]=_0x27ce7f(0x217),_0x3a6c45[_0x27ce7f(0x1c7)]=_0x27ce7f(0x20d),_0x3a6c45))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x177619,_0x4d7736,_0x3a5e20,_0x55bcee,_0x11c502){var _0x2604ad=_0x27ce7f;super(),v(this,_0x2604ad(0x221),new x['BehaviorSubject'](_0x2604ad(0x1f3))),v(this,_0x2604ad(0x202),this['_status$'][_0x2604ad(0x20b)]()),v(this,'_init',!0x1),v(this,_0x2604ad(0x213),null),v(this,'_presenter',null),(this[_0x2604ad(0x19b)]=_0x177619,this['_collabSession']=_0x4d7736,this[_0x2604ad(0x195)]=_0x3a5e20,this[_0x2604ad(0x1b2)]=_0x55bcee,this[_0x2604ad(0x17b)]=_0x11c502);}get[_0x27ce7f(0x186)](){var _0x35309f=_0x27ce7f;return this['_status$'][_0x35309f(0x1bd)]();}[_0x27ce7f(0x1a9)](){var _0x411fae=_0x27ce7f,_0x4689db;(_0x4689db=this[_0x411fae(0x213)])==null||_0x4689db['dispose'](),this[_0x411fae(0x221)]['next'](_0x411fae(0x1f3)),this['_status$'][_0x411fae(0x1ab)]();}['init'](){var _0x3631c3=_0x27ce7f;this[_0x3631c3(0x21c)]||(this[_0x3631c3(0x21c)]=!0x0,this[_0x3631c3(0x1d0)][_0x3631c3(0x1b6)][_0x3631c3(0x149)](b[_0x3631c3(0x143)](this[_0x3631c3(0x1ec)]))['subscribe'](_0x3baa12=>{var _0x54febc=_0x3631c3;switch(_0x3baa12){case m[_0x54febc(0x1ad)][_0x54febc(0x1d6)]:this['_handleOffline']();break;case m['SessionStatus'][_0x54febc(0x1ba)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x3631c3(0x180)]['pipe'](b[_0x3631c3(0x143)](this[_0x3631c3(0x1ec)]))[_0x3631c3(0x1d4)](_0x575cce=>{var _0x5205bb=_0x3631c3;const {eventID:_0x5dd02b}=_0x575cce;switch(_0x5dd02b){case _[_0x5205bb(0x20a)]['LIVESHARE_NEW_HOST']:this[_0x5205bb(0x17a)](_0x575cce);break;case _['CollaborationEvent'][_0x5205bb(0x1c4)]:this[_0x5205bb(0x1dc)](_0x575cce);break;case _['CollaborationEvent'][_0x5205bb(0x201)]:this[_0x5205bb(0x18b)]();break;case _['CollaborationEvent'][_0x5205bb(0x219)]:this['_handleNewChangeSets'](_0x575cce);break;}}));}[_0x27ce7f(0x1f9)](){var _0x16e792=_0x27ce7f;this[_0x16e792(0x1d0)]['send']({'eventID':_[_0x16e792(0x20a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x16e792(0x19b)],'userID':this[_0x16e792(0x1d0)]['getMemberID']()}},this['_unitID']);}[_0x27ce7f(0x1c6)](){var _0x4b32ca=_0x27ce7f;this[_0x4b32ca(0x186)]==='presenting'&&(this['_status$'][_0x4b32ca(0x1f8)]('idle'),this['_collabSession'][_0x4b32ca(0x1f5)]({'eventID':_[_0x4b32ca(0x20a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4b32ca(0x19b)]}},this[_0x4b32ca(0x19b)]));}[_0x27ce7f(0x1c0)](){var _0x4587fc=_0x27ce7f;this[_0x4587fc(0x186)]===_0x4587fc(0x217)&&(this['_status$']['next'](_0x4587fc(0x14a)),this['_startFollowing']());}[_0x27ce7f(0x148)](){var _0x39cd16=_0x27ce7f;this[_0x39cd16(0x186)]===_0x39cd16(0x14a)&&this['_stopFollowing']();}[_0x27ce7f(0x17a)](_0x1169e1){var _0x2420cb=_0x27ce7f;const {presenter:_0x4f2c20}=_0x1169e1[_0x2420cb(0x1bf)],_0x10f297=this[_0x2420cb(0x1d0)][_0x2420cb(0x181)]();this[_0x2420cb(0x160)]=_0x4f2c20,_0x4f2c20===_0x10f297?(this[_0x2420cb(0x1d3)](),this[_0x2420cb(0x15e)]()):this[_0x2420cb(0x186)]!==_0x2420cb(0x217)&&(this[_0x2420cb(0x18c)](),this[_0x2420cb(0x14d)]());}[_0x27ce7f(0x17f)](){var _0x292bf6=_0x27ce7f;const _0x2d0b01={'eventID':_[_0x292bf6(0x20a)][_0x292bf6(0x1c5)]};this[_0x292bf6(0x1d0)][_0x292bf6(0x1f5)](_0x2d0b01,this[_0x292bf6(0x19b)]);}[_0x27ce7f(0x18b)](){var _0x41e797=_0x27ce7f;this[_0x41e797(0x160)]=null,this[_0x41e797(0x186)]!==_0x41e797(0x20d)&&this[_0x41e797(0x174)]();}[_0x27ce7f(0x1c3)](_0x522b0e){var _0x43afe6=_0x27ce7f;if(this[_0x43afe6(0x186)]===_0x43afe6(0x14a)&&this[_0x43afe6(0x160)]===_0x522b0e[_0x43afe6(0x1bf)][_0x43afe6(0x173)]){const _0x156389=_['parseProtocolChangeset'](_0x522b0e[_0x43afe6(0x1bf)])[_0x43afe6(0x1eb)][_0x43afe6(0x20f)]()[_0x43afe6(0x150)](_0x4ada07=>_0x4ada07['id']===C[_0x43afe6(0x1b1)]['id']);if(_0x156389){const _0x2cdc29=_0x156389['params'][_0x43afe6(0x20e)],_0x3dc30c=_0x156389[_0x43afe6(0x1e3)]['sheet']['id'];setTimeout(()=>{var _0x58b8fd=_0x43afe6;this[_0x58b8fd(0x17b)][_0x58b8fd(0x1d2)](C[_0x58b8fd(0x1d9)]['id'],{'unitId':_0x2cdc29,'subUnitId':_0x3dc30c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4b0f61=_0x27ce7f;this[_0x4b0f61(0x221)][_0x4b0f61(0x1f8)](_0x4b0f61(0x20d));const _0x1a0847=new Map(),_0x13148e=this[_0x4b0f61(0x213)]=new o['DisposableCollection']();_0x13148e['add'](o[_0x4b0f61(0x21b)](()=>{var _0x1a4a67=_0x4b0f61;_0x1a0847[_0x1a4a67(0x1e8)](_0x35ff52=>_0x35ff52[_0x1a4a67(0x1ab)]()),_0x1a0847[_0x1a4a67(0x140)]();})),_0x13148e['add'](this[_0x4b0f61(0x17b)][_0x4b0f61(0x222)](_0x45fc22=>{var _0x49498a=_0x4b0f61,_0x2f6136;if(_0x45fc22[_0x49498a(0x1cb)]!==o[_0x49498a(0x1f1)]['OPERATION']||!this[_0x49498a(0x1b2)][_0x49498a(0x162)](_0x45fc22['id']))return;const {id:_0x28d1f5}=_0x45fc22;let _0x22a221;_0x1a0847[_0x49498a(0x170)](_0x28d1f5)?_0x22a221=_0x1a0847[_0x49498a(0x1fb)](_0x28d1f5):(_0x22a221=new x[(_0x49498a(0x147))](),_0x1a0847[_0x49498a(0x1df)](_0x28d1f5,_0x22a221),_0x22a221[_0x49498a(0x149)](b['throttleTime']((_0x2f6136=this['_configService']['getConfig'](Z))!=null?_0x2f6136:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x49498a(0x1d4)](_0x29aeaa=>{var _0x220185=_0x49498a;this[_0x220185(0x1d0)][_0x220185(0x1f5)]({'eventID':_[_0x220185(0x20a)][_0x220185(0x1c4)],'data':{'unitID':this[_0x220185(0x19b)],'operations':{[_0x29aeaa['id']]:{'id':_0x29aeaa['id'],'params':JSON[_0x220185(0x196)](_0x29aeaa['params'])}}}},this['_unitID']);})),_0x22a221[_0x49498a(0x1f8)](_0x45fc22);})),this[_0x4b0f61(0x1b2)][_0x4b0f61(0x21f)](this['_unitID'])[_0x4b0f61(0x1e8)](_0x3d0c00=>this['_collabSession'][_0x4b0f61(0x1f5)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4b0f61(0x19b)],'operations':{[_0x3d0c00['id']]:{'id':_0x3d0c00['id'],'params':JSON['stringify'](_0x3d0c00['params'])}}}},this[_0x4b0f61(0x19b)]));}[_0x27ce7f(0x18c)](){var _0x2d4a53=_0x27ce7f,_0x3a95b4;this['_status$'][_0x2d4a53(0x1f8)](_0x2d4a53(0x1f3)),(_0x3a95b4=this['_commandDisposable'])==null||_0x3a95b4['dispose'](),this[_0x2d4a53(0x213)]=null;}[_0x27ce7f(0x14d)](){var _0x3febf0=_0x27ce7f,_0x3b0ee8;(_0x3b0ee8=this['_commandDisposable'])==null||_0x3b0ee8['dispose'](),this[_0x3febf0(0x221)][_0x3febf0(0x1f8)](_0x3febf0(0x14a));}[_0x27ce7f(0x174)](){var _0x20210b=_0x27ce7f,_0x35899a;this['_status$'][_0x20210b(0x1f8)](_0x20210b(0x1f3)),(_0x35899a=this[_0x20210b(0x213)])==null||_0x35899a['dispose'](),this[_0x20210b(0x213)]=null;}[_0x27ce7f(0x1d3)](){var _0x22bb56=_0x27ce7f,_0xdfd744;this[_0x22bb56(0x221)][_0x22bb56(0x1f8)](_0x22bb56(0x217)),(_0xdfd744=this[_0x22bb56(0x213)])==null||_0xdfd744[_0x22bb56(0x1a9)]();}[_0x27ce7f(0x1dc)](_0x5ef43f){var _0x512bd1=_0x27ce7f;if([_0x512bd1(0x20d),_0x512bd1(0x217),_0x512bd1(0x1d5)]['includes'](this[_0x512bd1(0x186)])||!_0x5ef43f[_0x512bd1(0x1bf)][_0x512bd1(0x1c2)]||_0x5ef43f[_0x512bd1(0x1bf)][_0x512bd1(0x1c2)]===this['_collabSession']['getMemberID']())return;this['_status']===_0x512bd1(0x1f3)&&this['_startFollowing']();const _0x4b2bc5=_0x5ef43f['data'][_0x512bd1(0x1ce)];Object[_0x512bd1(0x205)](_0x4b2bc5)[_0x512bd1(0x1e8)](_0x1d286d=>{var _0x493d41=_0x512bd1;this['_commandService'][_0x493d41(0x1d2)](_0x1d286d['id'],_0x1d286d['params']?JSON[_0x493d41(0x145)](_0x1d286d[_0x493d41(0x1e3)]):null,{'fromCollab':!0x0});});}[_0x27ce7f(0x206)](){var _0x241ae2=_0x27ce7f,_0x347852;this[_0x241ae2(0x221)][_0x241ae2(0x1f8)](_0x241ae2(0x1d5)),(_0x347852=this['_commandDisposable'])==null||_0x347852[_0x241ae2(0x1a9)]();}[_0x27ce7f(0x209)](){var _0x25b0b0=_0x27ce7f;this[_0x25b0b0(0x221)][_0x25b0b0(0x1f8)](_0x25b0b0(0x1f3)),this['_fetchOperations']();}},exports[_0x27ce7f(0x1b7)]=R([S(0x2,o[_0x27ce7f(0x1f4)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x9f1b47=_0x27ce7f;const _0x4e7093=p['useDependency'](exports[_0x9f1b47(0x1cc)]),_0x27ea5e=p[_0x9f1b47(0x1c9)](o[_0x9f1b47(0x1fd)]),_0x268e1d=p[_0x9f1b47(0x152)](()=>_0x27ea5e[_0x9f1b47(0x161)](o['UniverInstanceType'][_0x9f1b47(0x1a4)]),void 0x0,!0x1,[]),[_0x1ca268,_0x5e08b2]=f[_0x9f1b47(0x21d)](null),[_0x4c3270,_0x1c352e]=f['useState'](h[_0x9f1b47(0x13f)]),_0x451fe1=f[_0x9f1b47(0x16f)](null);return f[_0x9f1b47(0x199)](()=>(_0x268e1d&&_0x4e7093['getLiveShareCoordinator'](_0x268e1d[_0x9f1b47(0x191)]())[_0x9f1b47(0x19d)](_0x5a5c83=>{var _0x19870f=_0x9f1b47;_0x5e08b2(_0x5a5c83),_0x451fe1[_0x19870f(0x21a)]=_0x5a5c83[_0x19870f(0x202)][_0x19870f(0x1d4)](_0x2b05a5=>{_0x1c352e(_0x2b05a5);});}),()=>{var _0xca9af9=_0x9f1b47,_0x5b5e1f;(_0x5b5e1f=_0x451fe1[_0xca9af9(0x21a)])==null||_0x5b5e1f[_0xca9af9(0x1b3)](),_0x451fe1[_0xca9af9(0x21a)]=null;}),[_0x268e1d,_0x4e7093]),_0x1ca268?l[_0x9f1b47(0x16a)](g[_0x9f1b47(0x16c)],{'align':_0x9f1b47(0x1a0),'disabled':_0x4c3270===h[_0x9f1b47(0x1d6)],'className':_0x9f1b47(0x17d),'overlay':l[_0x9f1b47(0x16a)](K,{'status':_0x4c3270,'coordinator':_0x1ca268}),'children':l[_0x9f1b47(0x16a)](_0x9f1b47(0x142),{'className':g[_0x9f1b47(0x18a)](_0x9f1b47(0x1e6),{'univer-cursor-not-allowed':_0x4c3270===h[_0x9f1b47(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c3270!==h[_0x9f1b47(0x1d6)]}),'type':_0x9f1b47(0x142),'children':l[_0x9f1b47(0x16a)](P,{'className':_0x9f1b47(0x1aa)})})}):null;}function K(_0x96190c){var _0x432105=_0x27ce7f;const {status:_0x1e476e,coordinator:_0x204902}=_0x96190c;switch(_0x1e476e){case h['IDLE']:return l[_0x432105(0x16a)](z,{'coordinator':_0x204902});case h['FOLLOWING']:return l[_0x432105(0x16a)](Q,{'coordinator':_0x204902});case h['NOT_FOLLOWING']:return l[_0x432105(0x16a)](X,{'coordinator':_0x204902});case h[_0x432105(0x1d6)]:return l[_0x432105(0x16a)](te,{});case h[_0x432105(0x1c7)]:return l[_0x432105(0x16a)](ee,{'coordinator':_0x204902});default:return null;}}function z(_0x383eee){var _0x4c0bdb=_0x27ce7f;const {coordinator:_0xb080b3}=_0x383eee;return l[_0x4c0bdb(0x1e2)](l['Fragment'],{'children':[l[_0x4c0bdb(0x16a)](_0x4c0bdb(0x169),{'className':_0x4c0bdb(0x1e5),'children':_0x4c0bdb(0x168)}),l['jsx'](g[_0x4c0bdb(0x1dd)],{'onClick':()=>_0xb080b3['tryStartPresenting'](),'children':_0x4c0bdb(0x144)})]});}function Q(_0x3624a8){var _0x3b713d=_0x27ce7f;const {coordinator:_0x1d0fc6}=_0x3624a8;return l[_0x3b713d(0x1e2)](l[_0x3b713d(0x184)],{'children':[l['jsx'](_0x3b713d(0x169),{'className':_0x3b713d(0x1e5),'children':_0x3b713d(0x1de)}),l[_0x3b713d(0x16a)](g[_0x3b713d(0x1dd)],{'onClick':()=>_0x1d0fc6[_0x3b713d(0x148)](),'children':_0x3b713d(0x13e)})]});}function X(_0x1bfd23){var _0x35ef94=_0x27ce7f;const {coordinator:_0xb0ed8e}=_0x1bfd23;return l['jsxs'](l[_0x35ef94(0x184)],{'children':[l[_0x35ef94(0x16a)](_0x35ef94(0x169),{'className':_0x35ef94(0x1e5),'children':_0x35ef94(0x1be)}),l[_0x35ef94(0x16a)](g[_0x35ef94(0x1dd)],{'variant':_0x35ef94(0x15b),'onClick':()=>_0xb0ed8e[_0x35ef94(0x1c0)](),'children':_0x35ef94(0x1e1)})]});}function ee(_0x5205be){var _0x20269f=_0x27ce7f;const {coordinator:_0x4230e3}=_0x5205be;return l[_0x20269f(0x1e2)](l[_0x20269f(0x184)],{'children':[l[_0x20269f(0x16a)](_0x20269f(0x169),{'className':_0x20269f(0x1e5),'children':_0x20269f(0x172)}),l[_0x20269f(0x16a)](g[_0x20269f(0x1dd)],{'variant':'default','onClick':()=>_0x4230e3[_0x20269f(0x1c6)](),'children':'Stop\x20presenting'})]});}function te(){var _0x20c59d=_0x27ce7f;return l[_0x20c59d(0x16a)](l[_0x20c59d(0x184)],{'children':_0x20c59d(0x19a)});}var ie=Object[_0x27ce7f(0x19f)],ne=(_0xd90009,_0x57d71d,_0x579ce4,_0x4be8c6)=>{for(var _0x17f739=_0x4be8c6>0x1?void 0x0:_0x4be8c6?ie(_0x57d71d,_0x579ce4):_0x57d71d,_0x24c21a=_0xd90009['length']-0x1,_0x3291e6;_0x24c21a>=0x0;_0x24c21a--)(_0x3291e6=_0xd90009[_0x24c21a])&&(_0x17f739=_0x3291e6(_0x17f739)||_0x17f739);return _0x17f739;},N=(_0x29f3f8,_0x3cc93c)=>(_0x54852a,_0x246af3)=>_0x3cc93c(_0x54852a,_0x246af3,_0x29f3f8);function _0x2ee7(){var _0x4db418=['LIVESHARE_OPERATION','LIVESHARE_FETCH_OPERATIONS','stopPresenting','PRESENTING','symbol','useDependency','onRendered','type','LiveShareController','837339AvNSTd','operations','1915016qCWoet','_collabSession','length','executeCommand','_stopFollowing','subscribe','offline','OFFLINE','toString','tag','SetWorksheetActiveOperation','_univerInstanceService','connectInjector','_handleOperation','Button','You\x27re\x20following\x20the\x20presenter','set','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','Start\x20following','jsxs','params','propertyIsEnumerable','univer-w-full\x20univer-mb-3\x20univer-text-sm','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','FOLLOWING','forEach','mergeOverrideWithDependencies','LiveShareStatus','mutations','dispose$','colorChannel1','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','map','getOwnPropertySymbols','CommandType','defIds','idle','IConfigService','send','override','DesktopLiveShareController','next','tryStartPresenting','rxjs','get','univerjs-icon\x20univerjs-icon-','IUniverInstanceService','live-share-single','concat','290540vxkHKM','LIVESHARE_TERMINATE','status$','56TPAvkE','idSuffix','values','_handleOffline','_entities','className','_handleOnline','CollaborationEvent','asObservable','defs','presenting','unitId','reverse','disposeWithMe','UniverCollaborationClientPlugin','none','_commandDisposable','registerSharedOperation','Injector','merge','not-following','1086kohTKz','NEW_CHANGESETS','current','toDisposable','_init','useState','_startLiveShareCoordinator','getInitialStates','from','_status$','onCommandExecuted','DependentOn','pluginName','Stop\x20following','IDLE','clear','icon','button','takeUntil','Start','parse','registerDependencies','Subject','stopFollowing','pipe','following','4maPyCG','createElement','_startFollowing','NOT_FOLLOWING','UniverInstanceType','find','react/jsx-runtime','useObservable','indexOf','UNIVER_UNKNOWN','apply','replace','_mountLiveShare','live-share.config','@univerjs-pro/collaboration','delete','text','react','RxDisposable','_startPresenting','onStarting','_presenter','getCurrentTypeOfUnit$','shouldShareOperation','2065EQjqGO','forwardRef','prototype','Disposable','Module','Present\x20this\x20document','div','jsx','call','Dropdown','entries','path','useRef','has','assign','You\x27re\x20presenting\x20the\x20document','memberID','_beIdle','1em','xlink:href','children','8358zDfoWm','extend','_handleNewHost','_commandService','UNIVER_LIVE_SHARE_PLUGIN','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','hasOwnProperty','_fetchOperations','event$','getMemberID','createInstance','@univerjs/ui','Fragment','106hxjGbr','_status','27lJaZRb','_sharedOperations','getLiveShareCoordinator','clsx','_handleTerminate','_stopPresenting','string','_uiPartsService','url(#$1','@univerjs-pro/collaboration-client','getUnitId','svg','4215266ZKskRF','_injector','_configService','stringify','fill','touchDependencies','useEffect','You\x27are\x20offline.','_unitID','setConfig','then','_config','getOwnPropertyDescriptor','end','LiveShare','0\x200\x2016\x2016','BuiltInUIPart','UNIVER_SHEET','HEADER_MENU','init','add','currentColor','dispose','univer-size-4','complete','attrs','SessionStatus','UniverLiveSharePlugin','CollaborationSessionService','IUIPartsService','InsertSheetMutation','_liveShareService','unsubscribe','_reporters','displayName','sessionStatus$','LiveShareCoordinator','defineProperty','toStringTag','ONLINE','LiveShareSingle','Inject','getValue','You\x27re\x20not\x20following\x20the\x20presenter','data','startFollowing','@univerjs/core','presenter','_handleNewChangeSets'];_0x2ee7=function(){return _0x4db418;};return _0x2ee7();}exports['DesktopLiveShareController']=class extends o[_0x27ce7f(0x166)]{constructor(_0x3dae27,_0x147e11){var _0x475c44=_0x27ce7f;super(),this[_0x475c44(0x194)]=_0x3dae27,this['_uiPartsService']=_0x147e11,this['_mountLiveShare']();}[_0x27ce7f(0x157)](){var _0x1259cd=_0x27ce7f;this[_0x1259cd(0x210)](this[_0x1259cd(0x18e)]['registerComponent'](p[_0x1259cd(0x1a3)][_0x1259cd(0x1a5)],()=>p[_0x1259cd(0x1db)](A,this['_injector'])));}},exports[_0x27ce7f(0x1f7)]=ne([N(0x0,o['Inject'](o[_0x27ce7f(0x215)])),N(0x1,p[_0x27ce7f(0x1b0)])],exports['DesktopLiveShareController']);var re=Object['defineProperty'],se=Object[_0x27ce7f(0x19f)],oe=(_0x2d3187,_0x33a0ba,_0x1b7ec4)=>_0x33a0ba in _0x2d3187?re(_0x2d3187,_0x33a0ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b7ec4}):_0x2d3187[_0x33a0ba]=_0x1b7ec4,ae=(_0x3285c3,_0x16c0ad,_0x3ef5d9,_0x4eec7f)=>{for(var _0x5fc715=_0x4eec7f>0x1?void 0x0:_0x4eec7f?se(_0x16c0ad,_0x3ef5d9):_0x16c0ad,_0x233a60=_0x3285c3['length']-0x1,_0x29e4a2;_0x233a60>=0x0;_0x233a60--)(_0x29e4a2=_0x3285c3[_0x233a60])&&(_0x5fc715=_0x29e4a2(_0x5fc715)||_0x5fc715);return _0x5fc715;},w=(_0x4d7643,_0x464c42)=>(_0x2cecf1,_0x214330)=>_0x464c42(_0x2cecf1,_0x214330,_0x4d7643),T=(_0xd2de8a,_0x24fd33,_0x1c0a1c)=>oe(_0xd2de8a,typeof _0x24fd33!=_0x27ce7f(0x1c8)?_0x24fd33+'':_0x24fd33,_0x1c0a1c);function _0xc178(_0x141cac,_0x57b52c){var _0x2ee758=_0x2ee7();return _0xc178=function(_0xc1789b,_0x3c7bb8){_0xc1789b=_0xc1789b-0x13e;var _0x22cb69=_0x2ee758[_0xc1789b];return _0x22cb69;},_0xc178(_0x141cac,_0x57b52c);}const le=_0x27ce7f(0x17c);exports[_0x27ce7f(0x1ae)]=class extends o['Plugin']{constructor(_0x5b06ee=L,_0x5bfe6d,_0x151674){var _0x418522=_0x27ce7f;super(),this[_0x418522(0x19e)]=_0x5b06ee,this['_injector']=_0x5bfe6d,this[_0x418522(0x195)]=_0x151674;const {..._0x1af75a}=o[_0x418522(0x216)]({},L,this[_0x418522(0x19e)]);this[_0x418522(0x195)][_0x418522(0x19c)]($,_0x1af75a);}[_0x27ce7f(0x15f)](){var _0x387aef=_0x27ce7f;o[_0x387aef(0x146)](this[_0x387aef(0x194)],o[_0x387aef(0x1e9)]([[E],[exports['LiveShareController']],[O],[exports[_0x387aef(0x1f7)]]],this['_config'][_0x387aef(0x1f6)])),o[_0x387aef(0x198)](this[_0x387aef(0x194)],[[O]]);}[_0x27ce7f(0x1ca)](){var _0x10a7d8=_0x27ce7f;o[_0x10a7d8(0x198)](this[_0x10a7d8(0x194)],[[exports[_0x10a7d8(0x1f7)]]]);}},T(exports[_0x27ce7f(0x1ae)],_0x27ce7f(0x1cb),o['UniverInstanceType'][_0x27ce7f(0x154)]),T(exports['UniverLiveSharePlugin'],_0x27ce7f(0x224),le),exports['UniverLiveSharePlugin']=ae([o[_0x27ce7f(0x223)](m[_0x27ce7f(0x211)]),w(0x1,o[_0x27ce7f(0x1bc)](o[_0x27ce7f(0x215)])),w(0x2,o[_0x27ce7f(0x1f4)])],exports[_0x27ce7f(0x1ae)]),exports[_0x27ce7f(0x1a1)]=A,exports['LiveShareService']=E,exports[_0x27ce7f(0x1ea)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5c9d4e=_0x2d81;(function(_0x20f4fe,_0x2b9ee8){var _0x34a1b5=_0x2d81,_0x17ce2c=_0x20f4fe();while(!![]){try{var _0x5ebb24=parseInt(_0x34a1b5(0x225))/0x1+parseInt(_0x34a1b5(0x22c))/0x2*(parseInt(_0x34a1b5(0x1d7))/0x3)+parseInt(_0x34a1b5(0x1dc))/0x4*(parseInt(_0x34a1b5(0x235))/0x5)+parseInt(_0x34a1b5(0x214))/0x6*(-parseInt(_0x34a1b5(0x1f9))/0x7)+parseInt(_0x34a1b5(0x215))/0x8+parseInt(_0x34a1b5(0x1d1))/0x9*(parseInt(_0x34a1b5(0x209))/0xa)+-parseInt(_0x34a1b5(0x241))/0xb;if(_0x5ebb24===_0x2b9ee8)break;else _0x17ce2c['push'](_0x17ce2c['shift']());}catch(_0x55d3cd){_0x17ce2c['push'](_0x17ce2c['shift']());}}}(_0x2f30,0xb98e8));var q=Object[_0x5c9d4e(0x1c5)],z=(_0x97b809,_0x18e0fe,_0x5f7b95)=>_0x18e0fe in _0x97b809?q(_0x97b809,_0x18e0fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f7b95}):_0x97b809[_0x18e0fe]=_0x5f7b95,d=(_0x1c450f,_0x2ee8a1,_0x12b4fe)=>z(_0x1c450f,typeof _0x2ee8a1!=_0x5c9d4e(0x246)?_0x2ee8a1+'':_0x2ee8a1,_0x12b4fe);import{CollaborationSessionService as _0x29d9d6,SessionStatus as _0x2f4dc0,UniverCollaborationClientPlugin as _0x13c932}from'@univerjs-pro/collaboration-client';import{Disposable as _0x16dba9,toDisposable as _0x354c09,Inject as _0x494708,IUniverInstanceService as _0x585a22,Injector as _0x1db792,IConfigService as _0x5c2377,ICommandService as _0x1cbc81,RxDisposable as _0x2a5b83,UniverInstanceType as _0x4d6457,DisposableCollection as _0x56255c,CommandType as _0xffc9ac,DependentOn as _0x1b11fd,Plugin as _0x101948,merge as _0x3eebca,registerDependencies as _0x2e62e9,mergeOverrideWithDependencies as _0x30b06f,touchDependencies as _0x299c56}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xb3f4ec,InsertSheetMutation as _0x15b0d4}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2e9c3f,SetScrollOperation as _0xdc23e3}from'@univerjs/sheets-ui';import{useDependency as _0x1ed3d7,useObservable as _0x2ee3f6,IUIPartsService as _0x4070e2,BuiltInUIPart as _0x55ffc7,connectInjector as _0x15cdcb}from'@univerjs/ui';import{jsx as _0xe1c63f,jsxs as _0x19b1de,Fragment as _0x18822c}from'react/jsx-runtime';import{Dropdown as _0x446cfa,clsx as _0x29b739,Button as _0x37d2e3}from'@univerjs/design';import{forwardRef as _0x53188e,useRef as _0x5dcc67,createElement as _0x2003bf,useState as _0x1b38a2,useEffect as _0x4b7d5c}from'react';import{CollaborationEvent as _0x17cd11,parseProtocolChangeset as _0x35f4d4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x201fdb,Subject as _0x1be71f}from'rxjs';import{takeUntil as _0xc1d624,throttleTime as _0x53be6c}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x16dba9{constructor(){var _0x574cb9=_0x5c9d4e;super(...arguments),d(this,_0x574cb9(0x1f8),new Set()),d(this,_0x574cb9(0x22a),new Set());}[_0x5c9d4e(0x1cf)](_0x1444de){var _0x1f58ed=_0x5c9d4e;return this[_0x1f58ed(0x1f8)][_0x1f58ed(0x20c)](_0x1444de),_0x354c09(()=>this[_0x1f58ed(0x1f8)]['delete'](_0x1444de));}[_0x5c9d4e(0x200)](_0xfb6aa2){var _0x286bc5=_0x5c9d4e;return this[_0x286bc5(0x22a)][_0x286bc5(0x20c)](_0xfb6aa2),_0x354c09(()=>this['_reporters']['delete'](_0xfb6aa2));}['shouldShareOperation'](_0x395ed0){var _0xb5ea9f=_0x5c9d4e;return this['_sharedOperations'][_0xb5ea9f(0x24e)](_0x395ed0);}[_0x5c9d4e(0x1c0)](_0x253dcb){var _0x33b035=_0x5c9d4e;return Array[_0x33b035(0x1d8)](this['_reporters'])['map'](_0x59439d=>_0x59439d(_0x253dcb));}}var Ee=Object[_0x5c9d4e(0x231)],Ce=(_0x231aed,_0x2ed3a2,_0x296937,_0x301042)=>{for(var _0x5e42fe=_0x301042>0x1?void 0x0:_0x301042?Ee(_0x2ed3a2,_0x296937):_0x2ed3a2,_0x1ff707=_0x231aed['length']-0x1,_0x4cc2f9;_0x1ff707>=0x0;_0x1ff707--)(_0x4cc2f9=_0x231aed[_0x1ff707])&&(_0x5e42fe=_0x4cc2f9(_0x5e42fe)||_0x5e42fe);return _0x5e42fe;},Ne=(_0x5b812e,_0x1c3e0f)=>(_0x55f624,_0x19725d)=>_0x1c3e0f(_0x55f624,_0x19725d,_0x5b812e);let m=class extends _0x16dba9{constructor(_0x140c27){var _0x3d5c39=_0x5c9d4e;super(),this['_liveShareService']=_0x140c27,this[_0x3d5c39(0x1d2)]();}[_0x5c9d4e(0x1d2)](){var _0x57e818=_0x5c9d4e;[_0x2e9c3f['id'],_0xdc23e3['id'],_0xb3f4ec['id']][_0x57e818(0x1c4)](_0xdee3d8=>{var _0x512c45=_0x57e818;this[_0x512c45(0x1c1)](this[_0x512c45(0x20f)][_0x512c45(0x1cf)](_0xdee3d8));});}};m=Ce([Ne(0x0,_0x494708(L))],m);var c=function(){var _0x2fa289=_0x5c9d4e;return c=Object['assign']||function(_0x36539a){var _0x4234e3=_0x2d81;for(var _0x3e0d45,_0x379245=0x1,_0x613bfe=arguments[_0x4234e3(0x261)];_0x379245<_0x613bfe;_0x379245++){_0x3e0d45=arguments[_0x379245];for(var _0x408b75 in _0x3e0d45)Object[_0x4234e3(0x1db)][_0x4234e3(0x212)][_0x4234e3(0x255)](_0x3e0d45,_0x408b75)&&(_0x36539a[_0x408b75]=_0x3e0d45[_0x408b75]);}return _0x36539a;},c[_0x2fa289(0x1f5)](this,arguments);},we=function(_0x113643,_0x15089d){var _0x4df7f5=_0x5c9d4e,_0x49788b={};for(var _0x49d513 in _0x113643)Object[_0x4df7f5(0x1db)][_0x4df7f5(0x212)][_0x4df7f5(0x255)](_0x113643,_0x49d513)&&_0x15089d[_0x4df7f5(0x204)](_0x49d513)<0x0&&(_0x49788b[_0x49d513]=_0x113643[_0x49d513]);if(_0x113643!=null&&typeof Object['getOwnPropertySymbols']==_0x4df7f5(0x223)){for(var _0x182742=0x0,_0x49d513=Object[_0x4df7f5(0x245)](_0x113643);_0x182742<_0x49d513[_0x4df7f5(0x261)];_0x182742++)_0x15089d[_0x4df7f5(0x204)](_0x49d513[_0x182742])<0x0&&Object[_0x4df7f5(0x1db)]['propertyIsEnumerable'][_0x4df7f5(0x255)](_0x113643,_0x49d513[_0x182742])&&(_0x49788b[_0x49d513[_0x182742]]=_0x113643[_0x49d513[_0x182742]]);}return _0x49788b;},W=_0x53188e(function(_0x8fe4aa,_0x25183b){var _0xe7da43=_0x5c9d4e,_0xa76d7e=_0x8fe4aa['icon'],_0x55db8d=_0x8fe4aa['id'],_0xc0c1ab=_0x8fe4aa['className'],_0x3c5721=_0x8fe4aa[_0xe7da43(0x1c8)],_0x30e522=we(_0x8fe4aa,[_0xe7da43(0x22f),'id','className',_0xe7da43(0x1c8)]),_0x55799d=_0xe7da43(0x1c3)[_0xe7da43(0x22e)](_0x55db8d,'\x20')['concat'](_0xc0c1ab||'')[_0xe7da43(0x1cb)](),_0x28ff68=_0x5dcc67('_'[_0xe7da43(0x22e)](Le()));return Y(_0xa76d7e,''['concat'](_0x55db8d),{'defIds':_0xa76d7e[_0xe7da43(0x221)],'idSuffix':_0x28ff68[_0xe7da43(0x1e1)]},c({'ref':_0x25183b,'className':_0x55799d},_0x30e522),_0x3c5721);});function Y(_0x5b9d8b,_0x4958b0,_0x2e4a9c,_0x203cf2,_0x14beab){var _0x526e0a=_0x5c9d4e;return _0x2003bf(_0x5b9d8b['tag'],c(c({'key':_0x4958b0},De(_0x5b9d8b,_0x2e4a9c,_0x14beab)),_0x203cf2),(xe(_0x5b9d8b,_0x2e4a9c)['children']||[])[_0x526e0a(0x22b)](function(_0x2bc1fe,_0x5ce4ff){var _0x295321=_0x526e0a;return Y(_0x2bc1fe,''['concat'](_0x4958b0,'-')[_0x295321(0x22e)](_0x5b9d8b[_0x295321(0x208)],'-')[_0x295321(0x22e)](_0x5ce4ff),_0x2e4a9c,void 0x0,_0x14beab);}));}function De(_0x35e0c6,_0x2e6dd9,_0x2b07a6){var _0x4f7756=_0x5c9d4e,_0x497707=c({},_0x35e0c6[_0x4f7756(0x1f3)]);_0x2b07a6!=null&&_0x2b07a6[_0x4f7756(0x22d)]&&_0x497707[_0x4f7756(0x1d9)]===_0x4f7756(0x22d)&&(_0x497707[_0x4f7756(0x1d9)]=_0x2b07a6[_0x4f7756(0x22d)]),_0x35e0c6[_0x4f7756(0x208)]===_0x4f7756(0x230)&&_0x497707['id']&&(_0x497707['id']=_0x497707['id']+_0x2e6dd9['idSuffix']),Object[_0x4f7756(0x24a)](_0x497707)[_0x4f7756(0x1c4)](function(_0x38b68c){var _0x28c02a=_0x4f7756,_0xb78715=_0x38b68c[0x0],_0x57d15d=_0x38b68c[0x1];_0xb78715===_0x28c02a(0x230)&&typeof _0x57d15d==_0x28c02a(0x1f2)&&(_0x497707[_0xb78715]=_0x57d15d[_0x28c02a(0x25e)](/url\(#(.*)\)/,_0x28c02a(0x1da)[_0x28c02a(0x22e)](_0x2e6dd9['idSuffix'],')')));});var _0x51b072=_0x2e6dd9['defIds'];return!_0x51b072||_0x51b072['length']===0x0||(_0x35e0c6[_0x4f7756(0x208)]==='use'&&_0x497707[_0x4f7756(0x24c)]&&(_0x497707[_0x4f7756(0x24c)]=_0x497707[_0x4f7756(0x24c)]+_0x2e6dd9['idSuffix']),Object['entries'](_0x497707)[_0x4f7756(0x1c4)](function(_0x291341){var _0x45b9af=_0x4f7756,_0x9781dd=_0x291341[0x0],_0x1c98cf=_0x291341[0x1];typeof _0x1c98cf==_0x45b9af(0x1f2)&&(_0x497707[_0x9781dd]=_0x1c98cf['replace'](/url\(#(.*)\)/,_0x45b9af(0x1da)[_0x45b9af(0x22e)](_0x2e6dd9[_0x45b9af(0x262)],')')));})),_0x497707;}function xe(_0x99b531,_0x43ea89){var _0x3f31fe=_0x5c9d4e,_0x5a6fdf,_0x17529c=_0x43ea89[_0x3f31fe(0x221)];return!_0x17529c||_0x17529c['length']===0x0?_0x99b531:_0x99b531['tag']==='defs'&&(!((_0x5a6fdf=_0x99b531[_0x3f31fe(0x1cc)])===null||_0x5a6fdf===void 0x0)&&_0x5a6fdf[_0x3f31fe(0x261)])?c(c({},_0x99b531),{'children':_0x99b531[_0x3f31fe(0x1cc)][_0x3f31fe(0x22b)](function(_0x45c608){var _0x28c1f3=_0x3f31fe;return typeof _0x45c608[_0x28c1f3(0x1f3)]['id']==_0x28c1f3(0x1f2)&&_0x17529c&&_0x17529c['indexOf'](_0x45c608['attrs']['id'])>-0x1?c(c({},_0x45c608),{'attrs':c(c({},_0x45c608['attrs']),{'id':_0x45c608[_0x28c1f3(0x1f3)]['id']+_0x43ea89[_0x28c1f3(0x262)]})}):_0x45c608;})}):_0x99b531;}function Le(){var _0x525d82=_0x5c9d4e;return Math[_0x525d82(0x236)]()[_0x525d82(0x268)](0x24)['substring'](0x2,0x8);}W['displayName']=_0x5c9d4e(0x24d);var ye={'tag':_0x5c9d4e(0x251),'attrs':{'fill':_0x5c9d4e(0x248),'viewBox':_0x5c9d4e(0x1f1),'width':'1em','height':_0x5c9d4e(0x1c7)},'children':[{'tag':'path','attrs':{'fill':_0x5c9d4e(0x1f4),'d':_0x5c9d4e(0x24f)}},{'tag':'path','attrs':{'fill':_0x5c9d4e(0x1f4),'d':_0x5c9d4e(0x1ce),'fillRule':_0x5c9d4e(0x1fd),'clipRule':_0x5c9d4e(0x1fd)}}]},B=_0x53188e(function(_0x280899,_0x5b3df2){var _0x442d58=_0x5c9d4e;return _0x2003bf(W,Object[_0x442d58(0x253)]({},_0x280899,{'id':'live-share-single','ref':_0x5b3df2,'icon':ye}));});B[_0x5c9d4e(0x228)]='LiveShareSingle';var Re=Object[_0x5c9d4e(0x231)],Z=(_0x518957,_0x464d99,_0x37b489,_0x42e327)=>{var _0x2608f1=_0x5c9d4e;for(var _0x5b8928=_0x42e327>0x1?void 0x0:_0x42e327?Re(_0x464d99,_0x37b489):_0x464d99,_0x44a54d=_0x518957[_0x2608f1(0x261)]-0x1,_0x1d0ba4;_0x44a54d>=0x0;_0x44a54d--)(_0x1d0ba4=_0x518957[_0x44a54d])&&(_0x5b8928=_0x1d0ba4(_0x5b8928)||_0x5b8928);return _0x5b8928;},f=(_0x199f08,_0x4df96e)=>(_0x206d5c,_0x396032)=>_0x4df96e(_0x206d5c,_0x396032,_0x199f08);let I=class extends _0x2a5b83{constructor(_0x1e416d,_0x115db0,_0x1c79f5){var _0x107669=_0x5c9d4e;super(),d(this,_0x107669(0x203),new Map()),(this[_0x107669(0x24b)]=_0x1e416d,this[_0x107669(0x21f)]=_0x115db0,this[_0x107669(0x20b)]=_0x1c79f5,this[_0x107669(0x1d2)]());}async[_0x5c9d4e(0x1e6)](_0x702ae2){var _0x2d3c1d=_0x5c9d4e;return this[_0x2d3c1d(0x203)]['has'](_0x702ae2)||await this['_startLiveShareCoordinator'](_0x702ae2),this[_0x2d3c1d(0x203)][_0x2d3c1d(0x1ee)](_0x702ae2);}[_0x5c9d4e(0x1d2)](){var _0x37c400=_0x5c9d4e;this['_univerInstanceService'][_0x37c400(0x1ed)](_0x4d6457[_0x37c400(0x265)])[_0x37c400(0x26a)](_0xc1d624(this['dispose$']))[_0x37c400(0x21d)](async _0x27a3d2=>{var _0x114945=_0x37c400;const _0x399b03=_0x27a3d2[_0x114945(0x213)]();this[_0x114945(0x203)]['has'](_0x399b03)||this['_startLiveShareCoordinator'](_0x399b03);}),this[_0x37c400(0x24b)][_0x37c400(0x1e2)](_0x4d6457[_0x37c400(0x265)])['pipe'](_0xc1d624(this['dispose$']))[_0x37c400(0x21d)](_0x321243=>{var _0x5d433a=_0x37c400;const _0x16dad1=_0x321243['getUnitId'](),_0x2cab58=this[_0x5d433a(0x203)][_0x5d433a(0x1ee)](_0x16dad1);_0x2cab58==null||_0x2cab58[_0x5d433a(0x1d0)]();});}async[_0x5c9d4e(0x1e4)](_0x3e5e7f){var _0x4c1246=_0x5c9d4e;const _0x132643=await this[_0x4c1246(0x20b)][_0x4c1246(0x1ef)](_0x3e5e7f),_0xff9b58=this['_injector']['createInstance'](w,_0x3e5e7f,_0x132643);return _0xff9b58[_0x4c1246(0x258)](),this[_0x4c1246(0x203)]['set'](_0x3e5e7f,_0xff9b58),_0xff9b58;}};I=Z([f(0x0,_0x585a22),f(0x1,_0x494708(_0x1db792)),f(0x2,_0x494708(_0x29d9d6))],I);function _0x2f30(){var _0x3f15b4=['7146EjkQVu','_init','values','PRESENTING','status$','operations','639qrLXxF','from','fill','url(#$1','prototype','210572yOzRDE','_beIdle','_collabSession','_startPresenting','button','current','getTypeOfUnitDisposed$','Start\x20following','_startLiveShareCoordinator','LIVESHARE_REQUEST_HOST','getLiveShareCoordinator','_mountLiveShare','LIVESHARE_OPERATION','You\x27re\x20following\x20the\x20presenter','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','getTypeOfUnitAdded$','get','requireSession','offline','0\x200\x2016\x2016','string','attrs','currentColor','apply','default','You\x27are\x20offline.','_sharedOperations','162253gEawHb','_handleNewHost','_stopPresenting','SAME_OPERATION_SHARE_INTERVAL','evenodd','shouldShareOperation','type','registerInitialStateReporter','following','getMemberID','_entities','indexOf','next','parse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','tag','16180wGonKL','_startFollowing','_collabSessionService','add','onStarting','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-white\x20dark:univer-bg-white\x20dark:univer-text-gray-900','_liveShareService','stopFollowing','unsubscribe','hasOwnProperty','getUnitId','18frYLQJ','2941224ZvppWC','_presenter','reverse','startFollowing','not-following','univer-w-full\x20univer-mb-3\x20univer-text-sm','_unitID','stopPresenting','subscribe','includes','_injector','end','defIds','send','function','_config','645841gjLxkJ','OFFLINE','then','displayName','unitId','_reporters','map','12664lucMsn','colorChannel1','concat','icon','mask','getOwnPropertyDescriptor','NOT_FOLLOWING','sheet','ONLINE','10AYchnW','random','_handleNewChangeSets','_fetchOperations','tryStartPresenting','_handleOffline','_handleOnline','univer-size-4','div','_stopFollowing','_status','registerComponent','32148721DuoGYX','HEADER_MENU','presenting','params','getOwnPropertySymbols','symbol','_configService','none','_status$','entries','_univerInstanceService','xlink:href','UniverIcon','has','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','data','svg','executeCommand','assign','_commandService','call','Stop\x20following','dispose$','init','onRendered','_uiPartsService','Start','asObservable','onCommandExecuted','replace','You\x27re\x20not\x20following\x20the\x20presenter','presenter','length','idSuffix','complete','idle','UNIVER_SHEET','IDLE','NEW_CHANGESETS','toString','sessionStatus$','pipe','_handleOperation','getInitialStates','disposeWithMe','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','forEach','defineProperty','FOLLOWING','1em','extend','Present\x20this\x20document','_commandDisposable','trim','children','getValue','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','registerSharedOperation','dispose'];_0x2f30=function(){return _0x3f15b4;};return _0x2f30();}var h=(_0x65d569=>(_0x65d569[_0x5c9d4e(0x226)]=_0x5c9d4e(0x1f0),_0x65d569[_0x5c9d4e(0x266)]='idle',_0x65d569[_0x5c9d4e(0x1c6)]=_0x5c9d4e(0x201),_0x65d569[_0x5c9d4e(0x232)]=_0x5c9d4e(0x219),_0x65d569[_0x5c9d4e(0x1d4)]=_0x5c9d4e(0x243),_0x65d569))(h||{});const Pe=_0x5c9d4e(0x1fc),Ae=0xc8;let w=class extends _0x2a5b83{constructor(_0x5c88e3,_0xeda41c,_0x1099ac,_0xea670f,_0xcf2025){var _0x4a4177=_0x5c9d4e;super(),d(this,_0x4a4177(0x249),new _0x201fdb('idle')),d(this,_0x4a4177(0x1d5),this[_0x4a4177(0x249)][_0x4a4177(0x25c)]()),d(this,_0x4a4177(0x1d2),!0x1),d(this,_0x4a4177(0x1ca),null),d(this,_0x4a4177(0x216),null),(this[_0x4a4177(0x21b)]=_0x5c88e3,this[_0x4a4177(0x1de)]=_0xeda41c,this[_0x4a4177(0x247)]=_0x1099ac,this[_0x4a4177(0x20f)]=_0xea670f,this['_commandService']=_0xcf2025);}get['_status'](){var _0x5dce80=_0x5c9d4e;return this[_0x5dce80(0x249)][_0x5dce80(0x1cd)]();}['dispose'](){var _0x33cd6d=_0x5c9d4e,_0x5b60d9;(_0x5b60d9=this[_0x33cd6d(0x1ca)])==null||_0x5b60d9[_0x33cd6d(0x1d0)](),this[_0x33cd6d(0x249)][_0x33cd6d(0x205)](_0x33cd6d(0x264)),this[_0x33cd6d(0x249)][_0x33cd6d(0x263)]();}[_0x5c9d4e(0x258)](){var _0x1b688d=_0x5c9d4e;this['_init']||(this['_init']=!0x0,this[_0x1b688d(0x1de)][_0x1b688d(0x269)][_0x1b688d(0x26a)](_0xc1d624(this[_0x1b688d(0x257)]))[_0x1b688d(0x21d)](_0x101635=>{var _0x1e3156=_0x1b688d;switch(_0x101635){case _0x2f4dc0['OFFLINE']:this[_0x1e3156(0x23a)]();break;case _0x2f4dc0[_0x1e3156(0x234)]:this[_0x1e3156(0x23b)]();break;}}),this[_0x1b688d(0x1de)]['event$'][_0x1b688d(0x26a)](_0xc1d624(this[_0x1b688d(0x257)]))['subscribe'](_0x5ab73e=>{var _0xfd1454=_0x1b688d;const {eventID:_0x5c025b}=_0x5ab73e;switch(_0x5c025b){case _0x17cd11[_0xfd1454(0x1eb)]:this[_0xfd1454(0x1fa)](_0x5ab73e);break;case _0x17cd11[_0xfd1454(0x1e8)]:this[_0xfd1454(0x26b)](_0x5ab73e);break;case _0x17cd11[_0xfd1454(0x1ea)]:this['_handleTerminate']();break;case _0x17cd11[_0xfd1454(0x267)]:this['_handleNewChangeSets'](_0x5ab73e);break;}}));}[_0x5c9d4e(0x239)](){var _0x548ffd=_0x5c9d4e;this[_0x548ffd(0x1de)]['send']({'eventID':_0x17cd11[_0x548ffd(0x1e5)],'data':{'unitID':this[_0x548ffd(0x21b)],'userID':this[_0x548ffd(0x1de)][_0x548ffd(0x202)]()}},this['_unitID']);}[_0x5c9d4e(0x21c)](){var _0xddc3d5=_0x5c9d4e;this[_0xddc3d5(0x23f)]===_0xddc3d5(0x243)&&(this['_status$'][_0xddc3d5(0x205)](_0xddc3d5(0x264)),this[_0xddc3d5(0x1de)][_0xddc3d5(0x222)]({'eventID':_0x17cd11[_0xddc3d5(0x1ea)],'data':{'unitID':this['_unitID']}},this[_0xddc3d5(0x21b)]));}[_0x5c9d4e(0x218)](){var _0x100022=_0x5c9d4e;this[_0x100022(0x23f)]===_0x100022(0x219)&&(this[_0x100022(0x249)][_0x100022(0x205)](_0x100022(0x201)),this[_0x100022(0x20a)]());}[_0x5c9d4e(0x210)](){var _0x526877=_0x5c9d4e;this['_status']===_0x526877(0x201)&&this[_0x526877(0x23e)]();}[_0x5c9d4e(0x1fa)](_0x57893b){var _0xbbf977=_0x5c9d4e;const {presenter:_0x50ad1e}=_0x57893b[_0xbbf977(0x250)],_0x598ff1=this[_0xbbf977(0x1de)][_0xbbf977(0x202)]();this[_0xbbf977(0x216)]=_0x50ad1e,_0x50ad1e===_0x598ff1?(this[_0xbbf977(0x23e)](),this[_0xbbf977(0x1df)]()):this[_0xbbf977(0x23f)]!=='not-following'&&(this['_stopPresenting'](),this[_0xbbf977(0x20a)]());}['_fetchOperations'](){var _0x12ca69=_0x5c9d4e;const _0x313f7e={'eventID':_0x17cd11[_0x12ca69(0x1c2)]};this['_collabSession']['send'](_0x313f7e,this[_0x12ca69(0x21b)]);}['_handleTerminate'](){var _0x2898d7=_0x5c9d4e;this[_0x2898d7(0x216)]=null,this['_status']!==_0x2898d7(0x243)&&this[_0x2898d7(0x1dd)]();}[_0x5c9d4e(0x237)](_0x1accfb){var _0x39fb20=_0x5c9d4e;if(this[_0x39fb20(0x23f)]===_0x39fb20(0x201)&&this[_0x39fb20(0x216)]===_0x1accfb[_0x39fb20(0x250)]['memberID']){const _0x1df56d=_0x35f4d4(_0x1accfb['data'])['mutations'][_0x39fb20(0x217)]()['find'](_0x4d6586=>_0x4d6586['id']===_0x15b0d4['id']);if(_0x1df56d){const _0x2dcf85=_0x1df56d[_0x39fb20(0x244)][_0x39fb20(0x229)],_0x5e56f4=_0x1df56d['params'][_0x39fb20(0x233)]['id'];setTimeout(()=>{var _0x477cd9=_0x39fb20;this[_0x477cd9(0x254)][_0x477cd9(0x252)](_0xb3f4ec['id'],{'unitId':_0x2dcf85,'subUnitId':_0x5e56f4},{'fromCollab':!0x0});});}}}[_0x5c9d4e(0x1df)](){var _0x21165b=_0x5c9d4e;this[_0x21165b(0x249)]['next']('presenting');const _0x381fc2=new Map(),_0x4a90f8=this[_0x21165b(0x1ca)]=new _0x56255c();_0x4a90f8[_0x21165b(0x20c)](_0x354c09(()=>{var _0x1d3e4e=_0x21165b;_0x381fc2[_0x1d3e4e(0x1c4)](_0x386e63=>_0x386e63[_0x1d3e4e(0x263)]()),_0x381fc2['clear']();})),_0x4a90f8[_0x21165b(0x20c)](this['_commandService'][_0x21165b(0x25d)](_0xb13ad7=>{var _0x1f61a3=_0x21165b,_0x394c38;if(_0xb13ad7[_0x1f61a3(0x1ff)]!==_0xffc9ac['OPERATION']||!this[_0x1f61a3(0x20f)][_0x1f61a3(0x1fe)](_0xb13ad7['id']))return;const {id:_0x3cd428}=_0xb13ad7;let _0x1b57f9;_0x381fc2['has'](_0x3cd428)?_0x1b57f9=_0x381fc2[_0x1f61a3(0x1ee)](_0x3cd428):(_0x1b57f9=new _0x1be71f(),_0x381fc2['set'](_0x3cd428,_0x1b57f9),_0x1b57f9[_0x1f61a3(0x26a)](_0x53be6c((_0x394c38=this[_0x1f61a3(0x247)]['getConfig'](Pe))!=null?_0x394c38:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1f61a3(0x21d)](_0x4f3ed1=>{var _0x337532=_0x1f61a3;this[_0x337532(0x1de)][_0x337532(0x222)]({'eventID':_0x17cd11[_0x337532(0x1e8)],'data':{'unitID':this['_unitID'],'operations':{[_0x4f3ed1['id']]:{'id':_0x4f3ed1['id'],'params':JSON['stringify'](_0x4f3ed1[_0x337532(0x244)])}}}},this['_unitID']);})),_0x1b57f9[_0x1f61a3(0x205)](_0xb13ad7);})),this[_0x21165b(0x20f)][_0x21165b(0x1c0)](this[_0x21165b(0x21b)])[_0x21165b(0x1c4)](_0x3c3efe=>this['_collabSession']['send']({'eventID':_0x17cd11[_0x21165b(0x1e8)],'data':{'unitID':this[_0x21165b(0x21b)],'operations':{[_0x3c3efe['id']]:{'id':_0x3c3efe['id'],'params':JSON['stringify'](_0x3c3efe[_0x21165b(0x244)])}}}},this[_0x21165b(0x21b)]));}[_0x5c9d4e(0x1fb)](){var _0x5b56fe=_0x5c9d4e,_0x140120;this['_status$']['next'](_0x5b56fe(0x264)),(_0x140120=this[_0x5b56fe(0x1ca)])==null||_0x140120['dispose'](),this['_commandDisposable']=null;}[_0x5c9d4e(0x20a)](){var _0x406cd8=_0x5c9d4e,_0x2e0327;(_0x2e0327=this[_0x406cd8(0x1ca)])==null||_0x2e0327['dispose'](),this[_0x406cd8(0x249)][_0x406cd8(0x205)](_0x406cd8(0x201));}[_0x5c9d4e(0x1dd)](){var _0x365493=_0x5c9d4e,_0x5497b9;this['_status$']['next'](_0x365493(0x264)),(_0x5497b9=this[_0x365493(0x1ca)])==null||_0x5497b9['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x1f2936=_0x5c9d4e,_0x14b7fa;this[_0x1f2936(0x249)][_0x1f2936(0x205)](_0x1f2936(0x219)),(_0x14b7fa=this[_0x1f2936(0x1ca)])==null||_0x14b7fa[_0x1f2936(0x1d0)]();}[_0x5c9d4e(0x26b)](_0x3a1618){var _0x20ef34=_0x5c9d4e;if([_0x20ef34(0x243),'not-following',_0x20ef34(0x1f0)][_0x20ef34(0x21e)](this[_0x20ef34(0x23f)])||!_0x3a1618[_0x20ef34(0x250)][_0x20ef34(0x260)]||_0x3a1618[_0x20ef34(0x250)][_0x20ef34(0x260)]===this['_collabSession'][_0x20ef34(0x202)]())return;this['_status']==='idle'&&this[_0x20ef34(0x20a)]();const _0x277a2d=_0x3a1618[_0x20ef34(0x250)][_0x20ef34(0x1d6)];Object[_0x20ef34(0x1d3)](_0x277a2d)[_0x20ef34(0x1c4)](_0x50658f=>{var _0x4f5472=_0x20ef34;this[_0x4f5472(0x254)][_0x4f5472(0x252)](_0x50658f['id'],_0x50658f[_0x4f5472(0x244)]?JSON[_0x4f5472(0x206)](_0x50658f[_0x4f5472(0x244)]):null,{'fromCollab':!0x0});});}[_0x5c9d4e(0x23a)](){var _0x5b81ff=_0x5c9d4e,_0x42c9a9;this[_0x5b81ff(0x249)][_0x5b81ff(0x205)](_0x5b81ff(0x1f0)),(_0x42c9a9=this[_0x5b81ff(0x1ca)])==null||_0x42c9a9[_0x5b81ff(0x1d0)]();}[_0x5c9d4e(0x23b)](){var _0x83a75f=_0x5c9d4e;this[_0x83a75f(0x249)][_0x83a75f(0x205)](_0x83a75f(0x264)),this[_0x83a75f(0x238)]();}};w=Z([f(0x2,_0x5c2377),f(0x3,_0x494708(L)),f(0x4,_0x1cbc81)],w);function Te(){var _0x352b00=_0x5c9d4e;const _0x502d2d=_0x1ed3d7(I),_0x3014b3=_0x1ed3d7(_0x585a22),_0x23b044=_0x2ee3f6(()=>_0x3014b3['getCurrentTypeOfUnit$'](_0x4d6457[_0x352b00(0x265)]),void 0x0,!0x1,[]),[_0x61f83b,_0x30f6a0]=_0x1b38a2(null),[_0x4d1322,_0x54e755]=_0x1b38a2(h['IDLE']),_0x3bc6c3=_0x5dcc67(null);return _0x4b7d5c(()=>(_0x23b044&&_0x502d2d[_0x352b00(0x1e6)](_0x23b044[_0x352b00(0x213)]())[_0x352b00(0x227)](_0xe7ff02=>{var _0x530b46=_0x352b00;_0x30f6a0(_0xe7ff02),_0x3bc6c3['current']=_0xe7ff02[_0x530b46(0x1d5)][_0x530b46(0x21d)](_0x473d31=>{_0x54e755(_0x473d31);});}),()=>{var _0x4057e4=_0x352b00,_0x571b64;(_0x571b64=_0x3bc6c3[_0x4057e4(0x1e1)])==null||_0x571b64[_0x4057e4(0x211)](),_0x3bc6c3[_0x4057e4(0x1e1)]=null;}),[_0x23b044,_0x502d2d]),_0x61f83b?_0xe1c63f(_0x446cfa,{'align':_0x352b00(0x220),'disabled':_0x4d1322===h[_0x352b00(0x226)],'className':_0x352b00(0x20e),'overlay':_0xe1c63f($e,{'status':_0x4d1322,'coordinator':_0x61f83b}),'children':_0xe1c63f(_0x352b00(0x1e0),{'className':_0x29b739(_0x352b00(0x207),{'univer-cursor-not-allowed':_0x4d1322===h[_0x352b00(0x226)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d1322!==h[_0x352b00(0x226)]}),'type':'button','children':_0xe1c63f(B,{'className':_0x352b00(0x23c)})})}):null;}function $e(_0xdb1120){var _0x56c442=_0x5c9d4e;const {status:_0x46c024,coordinator:_0x4fb558}=_0xdb1120;switch(_0x46c024){case h[_0x56c442(0x266)]:return _0xe1c63f(Fe,{'coordinator':_0x4fb558});case h[_0x56c442(0x1c6)]:return _0xe1c63f(He,{'coordinator':_0x4fb558});case h['NOT_FOLLOWING']:return _0xe1c63f(je,{'coordinator':_0x4fb558});case h[_0x56c442(0x226)]:return _0xe1c63f(Ve,{});case h['PRESENTING']:return _0xe1c63f(Ue,{'coordinator':_0x4fb558});default:return null;}}function Fe(_0x1e9e64){var _0x4a2e9e=_0x5c9d4e;const {coordinator:_0x159024}=_0x1e9e64;return _0x19b1de(_0x18822c,{'children':[_0xe1c63f(_0x4a2e9e(0x23d),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4a2e9e(0x1c9)}),_0xe1c63f(_0x37d2e3,{'onClick':()=>_0x159024[_0x4a2e9e(0x239)](),'children':_0x4a2e9e(0x25b)})]});}function _0x2d81(_0x246a21,_0x486d02){var _0x2f309d=_0x2f30();return _0x2d81=function(_0x2d81f6,_0x4ec1d3){_0x2d81f6=_0x2d81f6-0x1c0;var _0x5bc171=_0x2f309d[_0x2d81f6];return _0x5bc171;},_0x2d81(_0x246a21,_0x486d02);}function He(_0x27d339){var _0x46f8ff=_0x5c9d4e;const {coordinator:_0x1e7221}=_0x27d339;return _0x19b1de(_0x18822c,{'children':[_0xe1c63f(_0x46f8ff(0x23d),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x46f8ff(0x1e9)}),_0xe1c63f(_0x37d2e3,{'onClick':()=>_0x1e7221['stopFollowing'](),'children':_0x46f8ff(0x256)})]});}function je(_0x2e0f02){var _0x5c4fc9=_0x5c9d4e;const {coordinator:_0x4c382a}=_0x2e0f02;return _0x19b1de(_0x18822c,{'children':[_0xe1c63f('div',{'className':_0x5c4fc9(0x21a),'children':_0x5c4fc9(0x25f)}),_0xe1c63f(_0x37d2e3,{'variant':'text','onClick':()=>_0x4c382a['startFollowing'](),'children':_0x5c4fc9(0x1e3)})]});}function Ue(_0x230d6f){var _0x244b76=_0x5c9d4e;const {coordinator:_0x2eb22f}=_0x230d6f;return _0x19b1de(_0x18822c,{'children':[_0xe1c63f(_0x244b76(0x23d),{'className':_0x244b76(0x21a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xe1c63f(_0x37d2e3,{'variant':_0x244b76(0x1f6),'onClick':()=>_0x2eb22f[_0x244b76(0x21c)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2d1c8b=_0x5c9d4e;return _0xe1c63f(_0x18822c,{'children':_0x2d1c8b(0x1f7)});}var Me=Object[_0x5c9d4e(0x231)],ke=(_0x3b96f6,_0x3a2d07,_0x56db6b,_0x40de6f)=>{var _0x25046d=_0x5c9d4e;for(var _0xfc8ecc=_0x40de6f>0x1?void 0x0:_0x40de6f?Me(_0x3a2d07,_0x56db6b):_0x3a2d07,_0x3db199=_0x3b96f6[_0x25046d(0x261)]-0x1,_0x47c10b;_0x3db199>=0x0;_0x3db199--)(_0x47c10b=_0x3b96f6[_0x3db199])&&(_0xfc8ecc=_0x47c10b(_0xfc8ecc)||_0xfc8ecc);return _0xfc8ecc;},$=(_0x343f6b,_0x4dd1fa)=>(_0x1825f4,_0x3a31fe)=>_0x4dd1fa(_0x1825f4,_0x3a31fe,_0x343f6b);let b=class extends _0x16dba9{constructor(_0x36fc14,_0x56923e){var _0x35ab3f=_0x5c9d4e;super(),this[_0x35ab3f(0x21f)]=_0x36fc14,this[_0x35ab3f(0x25a)]=_0x56923e,this[_0x35ab3f(0x1e7)]();}['_mountLiveShare'](){var _0x30dbd8=_0x5c9d4e;this[_0x30dbd8(0x1c1)](this[_0x30dbd8(0x25a)][_0x30dbd8(0x240)](_0x55ffc7[_0x30dbd8(0x242)],()=>_0x15cdcb(Te,this[_0x30dbd8(0x21f)])));}};b=ke([$(0x0,_0x494708(_0x1db792)),$(0x1,_0x4070e2)],b);var Ge=Object[_0x5c9d4e(0x1c5)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x346422,_0x108a71,_0x55069f)=>_0x108a71 in _0x346422?Ge(_0x346422,_0x108a71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55069f}):_0x346422[_0x108a71]=_0x55069f,Be=(_0x662b54,_0x5ef523,_0x11ccdf,_0x4b333f)=>{var _0x880204=_0x5c9d4e;for(var _0xb1beae=_0x4b333f>0x1?void 0x0:_0x4b333f?We(_0x5ef523,_0x11ccdf):_0x5ef523,_0x385621=_0x662b54[_0x880204(0x261)]-0x1,_0x592a25;_0x385621>=0x0;_0x385621--)(_0x592a25=_0x662b54[_0x385621])&&(_0xb1beae=_0x592a25(_0xb1beae)||_0xb1beae);return _0xb1beae;},F=(_0x3887da,_0x5a7f41)=>(_0x4d25c0,_0x2aff8f)=>_0x5a7f41(_0x4d25c0,_0x2aff8f,_0x3887da),J=(_0x18c5e1,_0x5a992e,_0x55374e)=>Ye(_0x18c5e1,typeof _0x5a992e!=_0x5c9d4e(0x246)?_0x5a992e+'':_0x5a992e,_0x55374e);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x101948{constructor(_0x2c6692=T,_0xba899e,_0x2b01d5){var _0x4d66d3=_0x5c9d4e;super(),this[_0x4d66d3(0x224)]=_0x2c6692,this[_0x4d66d3(0x21f)]=_0xba899e,this[_0x4d66d3(0x247)]=_0x2b01d5;const {..._0x35863d}=_0x3eebca({},T,this[_0x4d66d3(0x224)]);this[_0x4d66d3(0x247)]['setConfig'](Oe,_0x35863d);}[_0x5c9d4e(0x20d)](){var _0x183a14=_0x5c9d4e;_0x2e62e9(this[_0x183a14(0x21f)],_0x30b06f([[L],[I],[m],[b]],this[_0x183a14(0x224)]['override'])),_0x299c56(this[_0x183a14(0x21f)],[[m]]);}[_0x5c9d4e(0x259)](){var _0x5eae80=_0x5c9d4e;_0x299c56(this[_0x5eae80(0x21f)],[[b]]);}};J(O,_0x5c9d4e(0x1ff),_0x4d6457[_0x5c9d4e(0x1ec)]),J(O,'pluginName',Ze),O=Be([_0x1b11fd(_0x13c932),F(0x1,_0x494708(_0x1db792)),F(0x2,_0x5c2377)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x52f618=_0x56cb;(function(_0x422162,_0x323e1f){var _0x23554a=_0x56cb,_0xb98258=_0x422162();while(!![]){try{var _0x32d96a=-parseInt(_0x23554a(0x21d))/0x1*(parseInt(_0x23554a(0x1b6))/0x2)+-parseInt(_0x23554a(0x1e3))/0x3+-parseInt(_0x23554a(0x194))/0x4+parseInt(_0x23554a(0x229))/0x5+parseInt(_0x23554a(0x19e))/0x6*(-parseInt(_0x23554a(0x207))/0x7)+parseInt(_0x23554a(0x1e0))/0x8*(-parseInt(_0x23554a(0x206))/0x9)+parseInt(_0x23554a(0x1d0))/0xa*(parseInt(_0x23554a(0x1c1))/0xb);if(_0x32d96a===_0x323e1f)break;else _0xb98258['push'](_0xb98258['shift']());}catch(_0x2d08a5){_0xb98258['push'](_0xb98258['shift']());}}}(_0x3701,0x19dd5));var q=Object[_0x52f618(0x233)],z=(_0x4fa2a4,_0x2c8eae,_0x168a6a)=>_0x2c8eae in _0x4fa2a4?q(_0x4fa2a4,_0x2c8eae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x168a6a}):_0x4fa2a4[_0x2c8eae]=_0x168a6a,d=(_0x5e53bb,_0x1d8150,_0x2fbc33)=>z(_0x5e53bb,typeof _0x1d8150!=_0x52f618(0x1a1)?_0x1d8150+'':_0x1d8150,_0x2fbc33);import{CollaborationSessionService as _0x373ed2,SessionStatus as _0x39c4da,UniverCollaborationClientPlugin as _0x4f23e0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4d2b6f,toDisposable as _0x2deabb,Inject as _0x5b76c2,IUniverInstanceService as _0x32b736,Injector as _0x5d2218,IConfigService as _0x44d386,ICommandService as _0x3c47e4,RxDisposable as _0x563b3c,UniverInstanceType as _0x174153,DisposableCollection as _0x3438d0,CommandType as _0x8ecae0,DependentOn as _0x3ab6ef,Plugin as _0x26e656,merge as _0x2cad00,registerDependencies as _0x153635,mergeOverrideWithDependencies as _0x2088e7,touchDependencies as _0xd0dab7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x495e50,InsertSheetMutation as _0x571bd5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x138ac7,SetScrollOperation as _0x46af97}from'@univerjs/sheets-ui';import{useDependency as _0x131bc5,useObservable as _0x3077c8,IUIPartsService as _0x259a30,BuiltInUIPart as _0x50ace2,connectInjector as _0x4ee5c0}from'@univerjs/ui';import{jsx as _0x40000b,jsxs as _0x54f880,Fragment as _0x4aa632}from'react/jsx-runtime';import{Dropdown as _0x2f5451,clsx as _0x42fd34,Button as _0xe015b0}from'@univerjs/design';import{forwardRef as _0x19d58d,useRef as _0x956383,createElement as _0x2c72b7,useState as _0x201ef0,useEffect as _0x5abcd3}from'react';import{CollaborationEvent as _0x2f804e,parseProtocolChangeset as _0xd42f05}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x570d03,Subject as _0x5cadb4}from'rxjs';import{takeUntil as _0x57168c,throttleTime as _0x4e001a}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4d2b6f{constructor(){var _0x43621f=_0x52f618;super(...arguments),d(this,_0x43621f(0x1b2),new Set()),d(this,_0x43621f(0x1fa),new Set());}[_0x52f618(0x1e5)](_0x12ce23){var _0x2095a8=_0x52f618;return this[_0x2095a8(0x1b2)][_0x2095a8(0x1aa)](_0x12ce23),_0x2deabb(()=>this[_0x2095a8(0x1b2)][_0x2095a8(0x1e9)](_0x12ce23));}[_0x52f618(0x21b)](_0x68b76){var _0x46eb76=_0x52f618;return this[_0x46eb76(0x1fa)][_0x46eb76(0x1aa)](_0x68b76),_0x2deabb(()=>this[_0x46eb76(0x1fa)][_0x46eb76(0x1e9)](_0x68b76));}['shouldShareOperation'](_0x1f9fa4){var _0x2f13aa=_0x52f618;return this[_0x2f13aa(0x1b2)][_0x2f13aa(0x182)](_0x1f9fa4);}[_0x52f618(0x208)](_0x8e583a){var _0xd6812f=_0x52f618;return Array[_0xd6812f(0x1a7)](this[_0xd6812f(0x1fa)])[_0xd6812f(0x1bf)](_0x25b4cb=>_0x25b4cb(_0x8e583a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x27dcde,_0x523bcb,_0x13fd72,_0x1490f5)=>{var _0x1540d3=_0x52f618;for(var _0x442ca5=_0x1490f5>0x1?void 0x0:_0x1490f5?Ee(_0x523bcb,_0x13fd72):_0x523bcb,_0x3a4f1e=_0x27dcde[_0x1540d3(0x1ab)]-0x1,_0x5c143;_0x3a4f1e>=0x0;_0x3a4f1e--)(_0x5c143=_0x27dcde[_0x3a4f1e])&&(_0x442ca5=_0x5c143(_0x442ca5)||_0x442ca5);return _0x442ca5;},Ne=(_0x3dde8e,_0x45943f)=>(_0x5434ff,_0x18c777)=>_0x45943f(_0x5434ff,_0x18c777,_0x3dde8e);let m=class extends _0x4d2b6f{constructor(_0x4c58d7){var _0x263dcb=_0x52f618;super(),this[_0x263dcb(0x19b)]=_0x4c58d7,this[_0x263dcb(0x1ca)]();}[_0x52f618(0x1ca)](){var _0x129913=_0x52f618;[_0x138ac7['id'],_0x46af97['id'],_0x495e50['id']][_0x129913(0x1c7)](_0x425bef=>{var _0x107827=_0x129913;this[_0x107827(0x201)](this[_0x107827(0x19b)][_0x107827(0x1e5)](_0x425bef));});}};m=Ce([Ne(0x0,_0x5b76c2(L))],m);var c=function(){var _0x4d21ad=_0x52f618;return c=Object['assign']||function(_0xff0b48){var _0x315c5d=_0x56cb;for(var _0x534322,_0x18fe22=0x1,_0x329789=arguments[_0x315c5d(0x1ab)];_0x18fe22<_0x329789;_0x18fe22++){_0x534322=arguments[_0x18fe22];for(var _0x2108b5 in _0x534322)Object[_0x315c5d(0x1e8)]['hasOwnProperty'][_0x315c5d(0x230)](_0x534322,_0x2108b5)&&(_0xff0b48[_0x2108b5]=_0x534322[_0x2108b5]);}return _0xff0b48;},c[_0x4d21ad(0x218)](this,arguments);},we=function(_0x54969e,_0x3a0e93){var _0x17413c=_0x52f618,_0x28e942={};for(var _0x340005 in _0x54969e)Object[_0x17413c(0x1e8)][_0x17413c(0x22d)]['call'](_0x54969e,_0x340005)&&_0x3a0e93[_0x17413c(0x1bb)](_0x340005)<0x0&&(_0x28e942[_0x340005]=_0x54969e[_0x340005]);if(_0x54969e!=null&&typeof Object[_0x17413c(0x1ce)]=='function'){for(var _0x23e4f3=0x0,_0x340005=Object['getOwnPropertySymbols'](_0x54969e);_0x23e4f3<_0x340005[_0x17413c(0x1ab)];_0x23e4f3++)_0x3a0e93['indexOf'](_0x340005[_0x23e4f3])<0x0&&Object['prototype'][_0x17413c(0x202)]['call'](_0x54969e,_0x340005[_0x23e4f3])&&(_0x28e942[_0x340005[_0x23e4f3]]=_0x54969e[_0x340005[_0x23e4f3]]);}return _0x28e942;},W=_0x19d58d(function(_0x3b30a2,_0x1b1b74){var _0x488e69=_0x52f618,_0x33aa0c=_0x3b30a2['icon'],_0x4bf32e=_0x3b30a2['id'],_0x31e853=_0x3b30a2['className'],_0xc553f4=_0x3b30a2[_0x488e69(0x1ba)],_0x2ca60d=we(_0x3b30a2,[_0x488e69(0x1ff),'id',_0x488e69(0x18c),'extend']),_0x30f1b3='univerjs-icon\x20univerjs-icon-'[_0x488e69(0x219)](_0x4bf32e,'\x20')[_0x488e69(0x219)](_0x31e853||'')[_0x488e69(0x1ed)](),_0x46e156=_0x956383('_'[_0x488e69(0x219)](Le()));return Y(_0x33aa0c,''[_0x488e69(0x219)](_0x4bf32e),{'defIds':_0x33aa0c[_0x488e69(0x197)],'idSuffix':_0x46e156[_0x488e69(0x211)]},c({'ref':_0x1b1b74,'className':_0x30f1b3},_0x2ca60d),_0xc553f4);});function Y(_0x17709a,_0x57800e,_0x482665,_0x3d243d,_0x3e74c4){var _0x39e62e=_0x52f618;return _0x2c72b7(_0x17709a['tag'],c(c({'key':_0x57800e},De(_0x17709a,_0x482665,_0x3e74c4)),_0x3d243d),(xe(_0x17709a,_0x482665)['children']||[])[_0x39e62e(0x1bf)](function(_0x1e7d47,_0x52cfb3){var _0x30ac5a=_0x39e62e;return Y(_0x1e7d47,''[_0x30ac5a(0x219)](_0x57800e,'-')[_0x30ac5a(0x219)](_0x17709a[_0x30ac5a(0x191)],'-')[_0x30ac5a(0x219)](_0x52cfb3),_0x482665,void 0x0,_0x3e74c4);}));}function De(_0xbc463c,_0x29798d,_0x3353c5){var _0xc5a79c=_0x52f618,_0x1ea5a4=c({},_0xbc463c[_0xc5a79c(0x222)]);_0x3353c5!=null&&_0x3353c5['colorChannel1']&&_0x1ea5a4[_0xc5a79c(0x20f)]===_0xc5a79c(0x193)&&(_0x1ea5a4[_0xc5a79c(0x20f)]=_0x3353c5[_0xc5a79c(0x193)]),_0xbc463c[_0xc5a79c(0x191)]===_0xc5a79c(0x1ae)&&_0x1ea5a4['id']&&(_0x1ea5a4['id']=_0x1ea5a4['id']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x4ef76e){var _0x3f8b48=_0xc5a79c,_0x5a875c=_0x4ef76e[0x0],_0x22f474=_0x4ef76e[0x1];_0x5a875c==='mask'&&typeof _0x22f474==_0x3f8b48(0x204)&&(_0x1ea5a4[_0x5a875c]=_0x22f474[_0x3f8b48(0x1a8)](/url\(#(.*)\)/,_0x3f8b48(0x213)['concat'](_0x29798d[_0x3f8b48(0x224)],')')));});var _0x1cd6a9=_0x29798d[_0xc5a79c(0x197)];return!_0x1cd6a9||_0x1cd6a9['length']===0x0||(_0xbc463c['tag']==='use'&&_0x1ea5a4['xlink:href']&&(_0x1ea5a4[_0xc5a79c(0x221)]=_0x1ea5a4['xlink:href']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x481535){var _0x562295=_0xc5a79c,_0x1f64c9=_0x481535[0x0],_0x4c3f36=_0x481535[0x1];typeof _0x4c3f36==_0x562295(0x204)&&(_0x1ea5a4[_0x1f64c9]=_0x4c3f36[_0x562295(0x1a8)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29798d[_0x562295(0x224)],')')));})),_0x1ea5a4;}function xe(_0x4a52af,_0xb65ffd){var _0x3ddec4=_0x52f618,_0x16424f,_0x38a081=_0xb65ffd[_0x3ddec4(0x197)];return!_0x38a081||_0x38a081['length']===0x0?_0x4a52af:_0x4a52af[_0x3ddec4(0x191)]===_0x3ddec4(0x216)&&(!((_0x16424f=_0x4a52af[_0x3ddec4(0x232)])===null||_0x16424f===void 0x0)&&_0x16424f[_0x3ddec4(0x1ab)])?c(c({},_0x4a52af),{'children':_0x4a52af[_0x3ddec4(0x232)]['map'](function(_0x228ecc){var _0x1a87f6=_0x3ddec4;return typeof _0x228ecc[_0x1a87f6(0x222)]['id']=='string'&&_0x38a081&&_0x38a081[_0x1a87f6(0x1bb)](_0x228ecc[_0x1a87f6(0x222)]['id'])>-0x1?c(c({},_0x228ecc),{'attrs':c(c({},_0x228ecc['attrs']),{'id':_0x228ecc[_0x1a87f6(0x222)]['id']+_0xb65ffd[_0x1a87f6(0x224)]})}):_0x228ecc;})}):_0x4a52af;}function _0x3701(){var _0x187c5f=['get','override','_handleNewHost','from','replace','NOT_FOLLOWING','add','length','subscribe','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','mask','You\x27are\x20offline.','_uiPartsService','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','presenting','8672JdHHhu','evenodd','asObservable','OFFLINE','extend','indexOf','data','presenter','set','map','_stopFollowing','11LhrUOj','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','getCurrentTypeOfUnit$','_status','0\x200\x2016\x2016','forEach','getMemberID','IDLE','_init','unsubscribe','LIVESHARE_OPERATION','stringify','getOwnPropertySymbols','_collabSessionService','4660520fNiOiY','displayName','NEW_CHANGESETS','getOwnPropertyDescriptor','_status$','executeCommand','includes','1em','OPERATION','unitId','getConfig','clear','stopPresenting','status$','onStarting','path','8bCtgil','_injector','_handleOffline','455097jqWnrm','ONLINE','registerSharedOperation','text','getTypeOfUnitDisposed$','prototype','delete','tryStartPresenting','toString','You\x27re\x20following\x20the\x20presenter','trim','setConfig','onRendered','live-share-single','_unitID','div','LIVESHARE_FETCH_OPERATIONS','params','_commandDisposable','offline','registerComponent','substring','end','_reporters','univer-size-4','_startLiveShareCoordinator','_configService','dispose','icon','_stopPresenting','disposeWithMe','propertyIsEnumerable','pipe','string','_presenter','1442961RpyKpl','303394ZzYSZM','getInitialStates','send','_handleTerminate','LIVESHARE_NEW_HOST','memberID','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','fill','default','current','init','url(#$1','assign','_handleNewChangeSets','defs','button','apply','concat','idle','registerInitialStateReporter','Stop\x20following','2laKTrs','currentColor','find','_mountLiveShare','xlink:href','attrs','Start','idSuffix','Present\x20this\x20document','getUnitId','event$','complete','980905gipnrO','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','svg','hasOwnProperty','_handleOnline','_config','call','values','children','defineProperty','has','mutations','pluginName','_univerInstanceService','sheet','following','_entities','Stop\x20presenting','UNIVER_SHEET','entries','className','startFollowing','_startPresenting','reverse','stopFollowing','tag','Start\x20following','colorChannel1','248896ALpych','_collabSession','_handleOperation','defIds','not-following','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_commandService','_liveShareService','PRESENTING','_startFollowing','24jGvmlG','none','getValue','symbol','createInstance','dispose$'];_0x3701=function(){return _0x187c5f;};return _0x3701();}function Le(){var _0x5d6af8=_0x52f618;return Math['random']()[_0x5d6af8(0x1eb)](0x24)[_0x5d6af8(0x1f8)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x52f618(0x22c),'attrs':{'fill':_0x52f618(0x19f),'viewBox':_0x52f618(0x1c6),'width':'1em','height':_0x52f618(0x1d7)},'children':[{'tag':_0x52f618(0x1df),'attrs':{'fill':'currentColor','d':_0x52f618(0x199)}},{'tag':_0x52f618(0x1df),'attrs':{'fill':_0x52f618(0x21e),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x52f618(0x1b7),'clipRule':_0x52f618(0x1b7)}}]},B=_0x19d58d(function(_0x29e6ec,_0x18a511){var _0x4a4450=_0x52f618;return _0x2c72b7(W,Object[_0x4a4450(0x214)]({},_0x29e6ec,{'id':_0x4a4450(0x1f0),'ref':_0x18a511,'icon':ye}));});B[_0x52f618(0x1d1)]='LiveShareSingle';var Re=Object[_0x52f618(0x1d3)],Z=(_0xcffd6,_0x1f26e2,_0x1c9544,_0x13e73f)=>{var _0x1e98ae=_0x52f618;for(var _0x3de79c=_0x13e73f>0x1?void 0x0:_0x13e73f?Re(_0x1f26e2,_0x1c9544):_0x1f26e2,_0x102be3=_0xcffd6[_0x1e98ae(0x1ab)]-0x1,_0x4711b1;_0x102be3>=0x0;_0x102be3--)(_0x4711b1=_0xcffd6[_0x102be3])&&(_0x3de79c=_0x4711b1(_0x3de79c)||_0x3de79c);return _0x3de79c;},f=(_0x11142b,_0x4477bf)=>(_0x3f409f,_0x170d81)=>_0x4477bf(_0x3f409f,_0x170d81,_0x11142b);let I=class extends _0x563b3c{constructor(_0x501add,_0x5936bb,_0x332a09){var _0x303f82=_0x52f618;super(),d(this,_0x303f82(0x188),new Map()),(this['_univerInstanceService']=_0x501add,this[_0x303f82(0x1e1)]=_0x5936bb,this['_collabSessionService']=_0x332a09,this[_0x303f82(0x1ca)]());}async['getLiveShareCoordinator'](_0x2b85ed){var _0xb8da01=_0x52f618;return this[_0xb8da01(0x188)]['has'](_0x2b85ed)||await this[_0xb8da01(0x1fc)](_0x2b85ed),this[_0xb8da01(0x188)][_0xb8da01(0x1a4)](_0x2b85ed);}[_0x52f618(0x1ca)](){var _0x119faa=_0x52f618;this[_0x119faa(0x185)]['getTypeOfUnitAdded$'](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](async _0x1e655d=>{var _0x585573=_0x119faa;const _0x31560b=_0x1e655d['getUnitId']();this[_0x585573(0x188)][_0x585573(0x182)](_0x31560b)||this[_0x585573(0x1fc)](_0x31560b);}),this[_0x119faa(0x185)][_0x119faa(0x1e7)](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](_0x185772=>{var _0x333e9c=_0x119faa;const _0x56d1ca=_0x185772[_0x333e9c(0x226)](),_0x383a4e=this['_entities'][_0x333e9c(0x1a4)](_0x56d1ca);_0x383a4e==null||_0x383a4e[_0x333e9c(0x1fe)]();});}async[_0x52f618(0x1fc)](_0x4336db){var _0xd4ee67=_0x52f618;const _0x4bd5b1=await this[_0xd4ee67(0x1cf)]['requireSession'](_0x4336db),_0x3819fd=this['_injector'][_0xd4ee67(0x1a2)](w,_0x4336db,_0x4bd5b1);return _0x3819fd[_0xd4ee67(0x212)](),this[_0xd4ee67(0x188)]['set'](_0x4336db,_0x3819fd),_0x3819fd;}};I=Z([f(0x0,_0x32b736),f(0x1,_0x5b76c2(_0x5d2218)),f(0x2,_0x5b76c2(_0x373ed2))],I);var h=(_0x809e5b=>(_0x809e5b['OFFLINE']='offline',_0x809e5b[_0x52f618(0x1c9)]=_0x52f618(0x21a),_0x809e5b['FOLLOWING']='following',_0x809e5b[_0x52f618(0x1a9)]=_0x52f618(0x198),_0x809e5b[_0x52f618(0x19c)]=_0x52f618(0x1b5),_0x809e5b))(h||{});const Pe=_0x52f618(0x1c2),Ae=0xc8;let w=class extends _0x563b3c{constructor(_0x3c4eff,_0x12799a,_0x3e242b,_0x4ac1d2,_0x38d0dc){var _0x50712d=_0x52f618;super(),d(this,_0x50712d(0x1d4),new _0x570d03(_0x50712d(0x21a))),d(this,'status$',this[_0x50712d(0x1d4)][_0x50712d(0x1b8)]()),d(this,_0x50712d(0x1ca),!0x1),d(this,_0x50712d(0x1f5),null),d(this,_0x50712d(0x205),null),(this['_unitID']=_0x3c4eff,this[_0x50712d(0x195)]=_0x12799a,this[_0x50712d(0x1fd)]=_0x3e242b,this[_0x50712d(0x19b)]=_0x4ac1d2,this[_0x50712d(0x19a)]=_0x38d0dc);}get['_status'](){var _0xdcfdf0=_0x52f618;return this['_status$'][_0xdcfdf0(0x1a0)]();}['dispose'](){var _0x2dbae3=_0x52f618,_0x2ef87b;(_0x2ef87b=this[_0x2dbae3(0x1f5)])==null||_0x2ef87b[_0x2dbae3(0x1fe)](),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x1b1)](_0x2dbae3(0x21a)),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x228)]();}[_0x52f618(0x212)](){var _0xeca2a4=_0x52f618;this[_0xeca2a4(0x1ca)]||(this[_0xeca2a4(0x1ca)]=!0x0,this['_collabSession']['sessionStatus$'][_0xeca2a4(0x203)](_0x57168c(this['dispose$']))[_0xeca2a4(0x1ac)](_0x41c872=>{var _0x49d3e8=_0xeca2a4;switch(_0x41c872){case _0x39c4da['OFFLINE']:this[_0x49d3e8(0x1e2)]();break;case _0x39c4da[_0x49d3e8(0x1e4)]:this['_handleOnline']();break;}}),this[_0xeca2a4(0x195)][_0xeca2a4(0x227)]['pipe'](_0x57168c(this[_0xeca2a4(0x1a3)]))[_0xeca2a4(0x1ac)](_0xa3e384=>{var _0x94cc9e=_0xeca2a4;const {eventID:_0x53d21a}=_0xa3e384;switch(_0x53d21a){case _0x2f804e[_0x94cc9e(0x20b)]:this['_handleNewHost'](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x1cc)]:this[_0x94cc9e(0x196)](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x22b)]:this[_0x94cc9e(0x20a)]();break;case _0x2f804e[_0x94cc9e(0x1d2)]:this[_0x94cc9e(0x215)](_0xa3e384);break;}}));}[_0x52f618(0x1ea)](){var _0x2343b8=_0x52f618;this[_0x2343b8(0x195)][_0x2343b8(0x209)]({'eventID':_0x2f804e[_0x2343b8(0x1b3)],'data':{'unitID':this[_0x2343b8(0x1f1)],'userID':this[_0x2343b8(0x195)]['getMemberID']()}},this[_0x2343b8(0x1f1)]);}[_0x52f618(0x1dc)](){var _0x547485=_0x52f618;this[_0x547485(0x1c5)]===_0x547485(0x1b5)&&(this[_0x547485(0x1d4)][_0x547485(0x1b1)](_0x547485(0x21a)),this['_collabSession'][_0x547485(0x209)]({'eventID':_0x2f804e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x547485(0x1f1)]}},this[_0x547485(0x1f1)]));}[_0x52f618(0x18d)](){var _0x23137e=_0x52f618;this[_0x23137e(0x1c5)]===_0x23137e(0x198)&&(this[_0x23137e(0x1d4)][_0x23137e(0x1b1)]('following'),this[_0x23137e(0x19d)]());}[_0x52f618(0x190)](){var _0x1091fc=_0x52f618;this[_0x1091fc(0x1c5)]==='following'&&this[_0x1091fc(0x1c0)]();}[_0x52f618(0x1a6)](_0x195d73){var _0x116a1e=_0x52f618;const {presenter:_0x36867d}=_0x195d73[_0x116a1e(0x1bc)],_0x5629b8=this[_0x116a1e(0x195)][_0x116a1e(0x1c8)]();this[_0x116a1e(0x205)]=_0x36867d,_0x36867d===_0x5629b8?(this[_0x116a1e(0x1c0)](),this[_0x116a1e(0x18e)]()):this[_0x116a1e(0x1c5)]!==_0x116a1e(0x198)&&(this[_0x116a1e(0x200)](),this['_startFollowing']());}[_0x52f618(0x1c3)](){var _0x573659=_0x52f618;const _0x251f90={'eventID':_0x2f804e[_0x573659(0x1f3)]};this[_0x573659(0x195)][_0x573659(0x209)](_0x251f90,this['_unitID']);}[_0x52f618(0x20a)](){var _0x1adaa8=_0x52f618;this[_0x1adaa8(0x205)]=null,this[_0x1adaa8(0x1c5)]!==_0x1adaa8(0x1b5)&&this['_beIdle']();}[_0x52f618(0x215)](_0x155204){var _0x1f767d=_0x52f618;if(this[_0x1f767d(0x1c5)]===_0x1f767d(0x187)&&this['_presenter']===_0x155204['data'][_0x1f767d(0x20c)]){const _0x5bf302=_0xd42f05(_0x155204[_0x1f767d(0x1bc)])[_0x1f767d(0x183)][_0x1f767d(0x18f)]()[_0x1f767d(0x21f)](_0x4a3177=>_0x4a3177['id']===_0x571bd5['id']);if(_0x5bf302){const _0x1fc4e0=_0x5bf302[_0x1f767d(0x1f4)][_0x1f767d(0x1d9)],_0xfe32a7=_0x5bf302['params'][_0x1f767d(0x186)]['id'];setTimeout(()=>{var _0x5aa3f0=_0x1f767d;this[_0x5aa3f0(0x19a)]['executeCommand'](_0x495e50['id'],{'unitId':_0x1fc4e0,'subUnitId':_0xfe32a7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1853df=_0x52f618;this['_status$'][_0x1853df(0x1b1)](_0x1853df(0x1b5));const _0x32fec1=new Map(),_0x887678=this[_0x1853df(0x1f5)]=new _0x3438d0();_0x887678[_0x1853df(0x1aa)](_0x2deabb(()=>{var _0x2a4246=_0x1853df;_0x32fec1[_0x2a4246(0x1c7)](_0xef52eb=>_0xef52eb['complete']()),_0x32fec1[_0x2a4246(0x1db)]();})),_0x887678[_0x1853df(0x1aa)](this[_0x1853df(0x19a)]['onCommandExecuted'](_0x364fb1=>{var _0x518921=_0x1853df,_0x2df387;if(_0x364fb1[_0x518921(0x20d)]!==_0x8ecae0[_0x518921(0x1d8)]||!this['_liveShareService']['shouldShareOperation'](_0x364fb1['id']))return;const {id:_0x499f91}=_0x364fb1;let _0x13833c;_0x32fec1['has'](_0x499f91)?_0x13833c=_0x32fec1[_0x518921(0x1a4)](_0x499f91):(_0x13833c=new _0x5cadb4(),_0x32fec1[_0x518921(0x1be)](_0x499f91,_0x13833c),_0x13833c[_0x518921(0x203)](_0x4e001a((_0x2df387=this[_0x518921(0x1fd)][_0x518921(0x1da)](Pe))!=null?_0x2df387:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2afce1=>{var _0xeb0325=_0x518921;this[_0xeb0325(0x195)][_0xeb0325(0x209)]({'eventID':_0x2f804e[_0xeb0325(0x1cc)],'data':{'unitID':this[_0xeb0325(0x1f1)],'operations':{[_0x2afce1['id']]:{'id':_0x2afce1['id'],'params':JSON[_0xeb0325(0x1cd)](_0x2afce1['params'])}}}},this[_0xeb0325(0x1f1)]);})),_0x13833c[_0x518921(0x1b1)](_0x364fb1);})),this[_0x1853df(0x19b)][_0x1853df(0x208)](this[_0x1853df(0x1f1)])[_0x1853df(0x1c7)](_0x53df0f=>this[_0x1853df(0x195)]['send']({'eventID':_0x2f804e[_0x1853df(0x1cc)],'data':{'unitID':this[_0x1853df(0x1f1)],'operations':{[_0x53df0f['id']]:{'id':_0x53df0f['id'],'params':JSON[_0x1853df(0x1cd)](_0x53df0f['params'])}}}},this[_0x1853df(0x1f1)]));}[_0x52f618(0x200)](){var _0x3e5f3a=_0x52f618,_0x32570f;this['_status$'][_0x3e5f3a(0x1b1)]('idle'),(_0x32570f=this[_0x3e5f3a(0x1f5)])==null||_0x32570f['dispose'](),this[_0x3e5f3a(0x1f5)]=null;}[_0x52f618(0x19d)](){var _0x5b2f61=_0x52f618,_0x133792;(_0x133792=this[_0x5b2f61(0x1f5)])==null||_0x133792[_0x5b2f61(0x1fe)](),this['_status$']['next'](_0x5b2f61(0x187));}[_0x52f618(0x1b4)](){var _0x3e420f=_0x52f618,_0x5af827;this[_0x3e420f(0x1d4)][_0x3e420f(0x1b1)]('idle'),(_0x5af827=this[_0x3e420f(0x1f5)])==null||_0x5af827[_0x3e420f(0x1fe)](),this[_0x3e420f(0x1f5)]=null;}[_0x52f618(0x1c0)](){var _0x427fde=_0x52f618,_0x238922;this[_0x427fde(0x1d4)][_0x427fde(0x1b1)](_0x427fde(0x198)),(_0x238922=this[_0x427fde(0x1f5)])==null||_0x238922[_0x427fde(0x1fe)]();}[_0x52f618(0x196)](_0x348d60){var _0x2fface=_0x52f618;if([_0x2fface(0x1b5),_0x2fface(0x198),_0x2fface(0x1f6)][_0x2fface(0x1d6)](this[_0x2fface(0x1c5)])||!_0x348d60[_0x2fface(0x1bc)][_0x2fface(0x1bd)]||_0x348d60['data']['presenter']===this['_collabSession'][_0x2fface(0x1c8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xff0dbd=_0x348d60[_0x2fface(0x1bc)]['operations'];Object[_0x2fface(0x231)](_0xff0dbd)['forEach'](_0x1d2857=>{var _0x5634d5=_0x2fface;this[_0x5634d5(0x19a)][_0x5634d5(0x1d5)](_0x1d2857['id'],_0x1d2857['params']?JSON['parse'](_0x1d2857['params']):null,{'fromCollab':!0x0});});}[_0x52f618(0x1e2)](){var _0x357282=_0x52f618,_0x469d19;this[_0x357282(0x1d4)][_0x357282(0x1b1)](_0x357282(0x1f6)),(_0x469d19=this[_0x357282(0x1f5)])==null||_0x469d19[_0x357282(0x1fe)]();}[_0x52f618(0x22e)](){var _0x7a8111=_0x52f618;this[_0x7a8111(0x1d4)][_0x7a8111(0x1b1)](_0x7a8111(0x21a)),this['_fetchOperations']();}};w=Z([f(0x2,_0x44d386),f(0x3,_0x5b76c2(L)),f(0x4,_0x3c47e4)],w);function Te(){var _0x2cd437=_0x52f618;const _0x25f2a1=_0x131bc5(I),_0x16c1fa=_0x131bc5(_0x32b736),_0x191a1d=_0x3077c8(()=>_0x16c1fa[_0x2cd437(0x1c4)](_0x174153[_0x2cd437(0x18a)]),void 0x0,!0x1,[]),[_0x36638b,_0x4f4991]=_0x201ef0(null),[_0x4eec30,_0x439708]=_0x201ef0(h[_0x2cd437(0x1c9)]),_0x13833f=_0x956383(null);return _0x5abcd3(()=>(_0x191a1d&&_0x25f2a1['getLiveShareCoordinator'](_0x191a1d[_0x2cd437(0x226)]())['then'](_0x58baeb=>{var _0x5ebf4f=_0x2cd437;_0x4f4991(_0x58baeb),_0x13833f[_0x5ebf4f(0x211)]=_0x58baeb[_0x5ebf4f(0x1dd)]['subscribe'](_0x27f5fb=>{_0x439708(_0x27f5fb);});}),()=>{var _0x18bd0a=_0x2cd437,_0x459a10;(_0x459a10=_0x13833f[_0x18bd0a(0x211)])==null||_0x459a10[_0x18bd0a(0x1cb)](),_0x13833f[_0x18bd0a(0x211)]=null;}),[_0x191a1d,_0x25f2a1]),_0x36638b?_0x40000b(_0x2f5451,{'align':_0x2cd437(0x1f9),'disabled':_0x4eec30===h[_0x2cd437(0x1b9)],'className':_0x2cd437(0x1ad),'overlay':_0x40000b($e,{'status':_0x4eec30,'coordinator':_0x36638b}),'children':_0x40000b(_0x2cd437(0x217),{'className':_0x42fd34('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x4eec30===h[_0x2cd437(0x1b9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4eec30!==h[_0x2cd437(0x1b9)]}),'type':_0x2cd437(0x217),'children':_0x40000b(B,{'className':_0x2cd437(0x1fb)})})}):null;}function $e(_0x42422e){var _0x385cf3=_0x52f618;const {status:_0x2af355,coordinator:_0x191f59}=_0x42422e;switch(_0x2af355){case h[_0x385cf3(0x1c9)]:return _0x40000b(Fe,{'coordinator':_0x191f59});case h['FOLLOWING']:return _0x40000b(He,{'coordinator':_0x191f59});case h['NOT_FOLLOWING']:return _0x40000b(je,{'coordinator':_0x191f59});case h[_0x385cf3(0x1b9)]:return _0x40000b(Ve,{});case h[_0x385cf3(0x19c)]:return _0x40000b(Ue,{'coordinator':_0x191f59});default:return null;}}function Fe(_0x588448){var _0x50b975=_0x52f618;const {coordinator:_0x47920c}=_0x588448;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x50b975(0x1f2),{'className':_0x50b975(0x20e),'children':_0x50b975(0x225)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x47920c[_0x50b975(0x1ea)](),'children':_0x50b975(0x223)})]});}function He(_0xc284b4){var _0x201cfb=_0x52f618;const {coordinator:_0x34b28f}=_0xc284b4;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x201cfb(0x1f2),{'className':_0x201cfb(0x20e),'children':_0x201cfb(0x1ec)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x34b28f[_0x201cfb(0x190)](),'children':_0x201cfb(0x21c)})]});}function je(_0x7130a7){var _0x47af74=_0x52f618;const {coordinator:_0x936c88}=_0x7130a7;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x47af74(0x1f2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x40000b(_0xe015b0,{'variant':_0x47af74(0x1e6),'onClick':()=>_0x936c88[_0x47af74(0x18d)](),'children':_0x47af74(0x192)})]});}function Ue(_0x4382e9){var _0x428739=_0x52f618;const {coordinator:_0x4d9875}=_0x4382e9;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x428739(0x1f2),{'className':_0x428739(0x20e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x40000b(_0xe015b0,{'variant':_0x428739(0x210),'onClick':()=>_0x4d9875[_0x428739(0x1dc)](),'children':_0x428739(0x189)})]});}function Ve(){var _0x2b7de5=_0x52f618;return _0x40000b(_0x4aa632,{'children':_0x2b7de5(0x1af)});}var Me=Object[_0x52f618(0x1d3)],ke=(_0xdc6e37,_0x19091d,_0x378a27,_0x4ddcaa)=>{var _0x197557=_0x52f618;for(var _0x3f28ce=_0x4ddcaa>0x1?void 0x0:_0x4ddcaa?Me(_0x19091d,_0x378a27):_0x19091d,_0x3db41f=_0xdc6e37[_0x197557(0x1ab)]-0x1,_0x5ebf42;_0x3db41f>=0x0;_0x3db41f--)(_0x5ebf42=_0xdc6e37[_0x3db41f])&&(_0x3f28ce=_0x5ebf42(_0x3f28ce)||_0x3f28ce);return _0x3f28ce;},$=(_0x465107,_0x2c75d0)=>(_0x22ec3f,_0x43cc29)=>_0x2c75d0(_0x22ec3f,_0x43cc29,_0x465107);let b=class extends _0x4d2b6f{constructor(_0x49f4e1,_0x51766d){var _0x167e68=_0x52f618;super(),this[_0x167e68(0x1e1)]=_0x49f4e1,this['_uiPartsService']=_0x51766d,this['_mountLiveShare']();}[_0x52f618(0x220)](){var _0x2f4c44=_0x52f618;this[_0x2f4c44(0x201)](this[_0x2f4c44(0x1b0)][_0x2f4c44(0x1f7)](_0x50ace2['HEADER_MENU'],()=>_0x4ee5c0(Te,this[_0x2f4c44(0x1e1)])));}};b=ke([$(0x0,_0x5b76c2(_0x5d2218)),$(0x1,_0x259a30)],b);var Ge=Object[_0x52f618(0x233)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x24304f,_0x12494d,_0x20c505)=>_0x12494d in _0x24304f?Ge(_0x24304f,_0x12494d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20c505}):_0x24304f[_0x12494d]=_0x20c505,Be=(_0x5db938,_0xc91b41,_0x5ef0f5,_0x33e17b)=>{for(var _0x50c8b8=_0x33e17b>0x1?void 0x0:_0x33e17b?We(_0xc91b41,_0x5ef0f5):_0xc91b41,_0x1824cd=_0x5db938['length']-0x1,_0x21ea9f;_0x1824cd>=0x0;_0x1824cd--)(_0x21ea9f=_0x5db938[_0x1824cd])&&(_0x50c8b8=_0x21ea9f(_0x50c8b8)||_0x50c8b8);return _0x50c8b8;},F=(_0x24ae69,_0x40c7f9)=>(_0x185378,_0x32e376)=>_0x40c7f9(_0x185378,_0x32e376,_0x24ae69),J=(_0x33f2c4,_0x33e91c,_0x46488c)=>Ye(_0x33f2c4,typeof _0x33e91c!=_0x52f618(0x1a1)?_0x33e91c+'':_0x33e91c,_0x46488c);const Ze=_0x52f618(0x22a);let O=class extends _0x26e656{constructor(_0x894bf4=T,_0x10e4ae,_0x2d519e){var _0xfc994e=_0x52f618;super(),this[_0xfc994e(0x22f)]=_0x894bf4,this['_injector']=_0x10e4ae,this[_0xfc994e(0x1fd)]=_0x2d519e;const {..._0x2a10b5}=_0x2cad00({},T,this[_0xfc994e(0x22f)]);this['_configService'][_0xfc994e(0x1ee)](Oe,_0x2a10b5);}[_0x52f618(0x1de)](){var _0x2d6abc=_0x52f618;_0x153635(this['_injector'],_0x2088e7([[L],[I],[m],[b]],this[_0x2d6abc(0x22f)][_0x2d6abc(0x1a5)])),_0xd0dab7(this['_injector'],[[m]]);}[_0x52f618(0x1ef)](){var _0x596771=_0x52f618;_0xd0dab7(this[_0x596771(0x1e1)],[[b]]);}};function _0x56cb(_0x4279c1,_0x9bf0aa){var _0x3701d8=_0x3701();return _0x56cb=function(_0x56cb7d,_0xcc5148){_0x56cb7d=_0x56cb7d-0x182;var _0x5ed63d=_0x3701d8[_0x56cb7d];return _0x5ed63d;},_0x56cb(_0x4279c1,_0x9bf0aa);}J(O,_0x52f618(0x20d),_0x174153['UNIVER_UNKNOWN']),J(O,_0x52f618(0x184),Ze),O=Be([_0x3ab6ef(_0x4f23e0),F(0x1,_0x5b76c2(_0x5d2218)),F(0x2,_0x44d386)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-mb-3{margin-bottom:12px}.univer-box-border{box-sizing:border-box}.univer-size-4{width:16px;height:16px}.univer-w-full{width:100%}.univer-min-w-60{min-width:240px}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-border-none{border-style:none}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-gray-900{background-color:var(--univer-gray-900)}.univer-px-4{padding-left:16px;padding-right:16px}.univer-py-3{padding-top:12px;padding-bottom:12px}.univer-text-sm{font-size:14px;line-height:20px}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-white{color:var(--univer-white)}.univer-outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:univer-bg-gray-400:hover{background-color:var(--univer-gray-400)}.dark\:univer-bg-white:where(.univer-dark,.univer-dark *){background-color:var(--univer-white)}.dark\:univer-text-gray-900:where(.univer-dark,.univer-dark *){color:var(--univer-gray-900)}
1
+ .univer-mb-3{margin-bottom:12px}.univer-box-border{box-sizing:border-box}.univer-size-4{width:16px;height:16px}.univer-w-full{width:100%}.univer-min-w-60{min-width:240px}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-border-none{border-style:none}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-gray-900{background-color:var(--univer-gray-900)}.univer-px-4{padding-left:16px;padding-right:16px}.univer-py-3{padding-top:12px;padding-bottom:12px}.univer-text-sm{font-size:14px;line-height:20px}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:univer-bg-gray-400:hover{background-color:var(--univer-gray-400)}.dark\:\!univer-bg-white:where(.univer-dark,.univer-dark *){background-color:var(--univer-white)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5c9d4e=_0x2d81;(function(_0x20f4fe,_0x2b9ee8){var _0x34a1b5=_0x2d81,_0x17ce2c=_0x20f4fe();while(!![]){try{var _0x5ebb24=parseInt(_0x34a1b5(0x225))/0x1+parseInt(_0x34a1b5(0x22c))/0x2*(parseInt(_0x34a1b5(0x1d7))/0x3)+parseInt(_0x34a1b5(0x1dc))/0x4*(parseInt(_0x34a1b5(0x235))/0x5)+parseInt(_0x34a1b5(0x214))/0x6*(-parseInt(_0x34a1b5(0x1f9))/0x7)+parseInt(_0x34a1b5(0x215))/0x8+parseInt(_0x34a1b5(0x1d1))/0x9*(parseInt(_0x34a1b5(0x209))/0xa)+-parseInt(_0x34a1b5(0x241))/0xb;if(_0x5ebb24===_0x2b9ee8)break;else _0x17ce2c['push'](_0x17ce2c['shift']());}catch(_0x55d3cd){_0x17ce2c['push'](_0x17ce2c['shift']());}}}(_0x2f30,0xb98e8));var q=Object[_0x5c9d4e(0x1c5)],z=(_0x97b809,_0x18e0fe,_0x5f7b95)=>_0x18e0fe in _0x97b809?q(_0x97b809,_0x18e0fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f7b95}):_0x97b809[_0x18e0fe]=_0x5f7b95,d=(_0x1c450f,_0x2ee8a1,_0x12b4fe)=>z(_0x1c450f,typeof _0x2ee8a1!=_0x5c9d4e(0x246)?_0x2ee8a1+'':_0x2ee8a1,_0x12b4fe);import{CollaborationSessionService as _0x29d9d6,SessionStatus as _0x2f4dc0,UniverCollaborationClientPlugin as _0x13c932}from'@univerjs-pro/collaboration-client';import{Disposable as _0x16dba9,toDisposable as _0x354c09,Inject as _0x494708,IUniverInstanceService as _0x585a22,Injector as _0x1db792,IConfigService as _0x5c2377,ICommandService as _0x1cbc81,RxDisposable as _0x2a5b83,UniverInstanceType as _0x4d6457,DisposableCollection as _0x56255c,CommandType as _0xffc9ac,DependentOn as _0x1b11fd,Plugin as _0x101948,merge as _0x3eebca,registerDependencies as _0x2e62e9,mergeOverrideWithDependencies as _0x30b06f,touchDependencies as _0x299c56}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xb3f4ec,InsertSheetMutation as _0x15b0d4}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2e9c3f,SetScrollOperation as _0xdc23e3}from'@univerjs/sheets-ui';import{useDependency as _0x1ed3d7,useObservable as _0x2ee3f6,IUIPartsService as _0x4070e2,BuiltInUIPart as _0x55ffc7,connectInjector as _0x15cdcb}from'@univerjs/ui';import{jsx as _0xe1c63f,jsxs as _0x19b1de,Fragment as _0x18822c}from'react/jsx-runtime';import{Dropdown as _0x446cfa,clsx as _0x29b739,Button as _0x37d2e3}from'@univerjs/design';import{forwardRef as _0x53188e,useRef as _0x5dcc67,createElement as _0x2003bf,useState as _0x1b38a2,useEffect as _0x4b7d5c}from'react';import{CollaborationEvent as _0x17cd11,parseProtocolChangeset as _0x35f4d4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x201fdb,Subject as _0x1be71f}from'rxjs';import{takeUntil as _0xc1d624,throttleTime as _0x53be6c}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x16dba9{constructor(){var _0x574cb9=_0x5c9d4e;super(...arguments),d(this,_0x574cb9(0x1f8),new Set()),d(this,_0x574cb9(0x22a),new Set());}[_0x5c9d4e(0x1cf)](_0x1444de){var _0x1f58ed=_0x5c9d4e;return this[_0x1f58ed(0x1f8)][_0x1f58ed(0x20c)](_0x1444de),_0x354c09(()=>this[_0x1f58ed(0x1f8)]['delete'](_0x1444de));}[_0x5c9d4e(0x200)](_0xfb6aa2){var _0x286bc5=_0x5c9d4e;return this[_0x286bc5(0x22a)][_0x286bc5(0x20c)](_0xfb6aa2),_0x354c09(()=>this['_reporters']['delete'](_0xfb6aa2));}['shouldShareOperation'](_0x395ed0){var _0xb5ea9f=_0x5c9d4e;return this['_sharedOperations'][_0xb5ea9f(0x24e)](_0x395ed0);}[_0x5c9d4e(0x1c0)](_0x253dcb){var _0x33b035=_0x5c9d4e;return Array[_0x33b035(0x1d8)](this['_reporters'])['map'](_0x59439d=>_0x59439d(_0x253dcb));}}var Ee=Object[_0x5c9d4e(0x231)],Ce=(_0x231aed,_0x2ed3a2,_0x296937,_0x301042)=>{for(var _0x5e42fe=_0x301042>0x1?void 0x0:_0x301042?Ee(_0x2ed3a2,_0x296937):_0x2ed3a2,_0x1ff707=_0x231aed['length']-0x1,_0x4cc2f9;_0x1ff707>=0x0;_0x1ff707--)(_0x4cc2f9=_0x231aed[_0x1ff707])&&(_0x5e42fe=_0x4cc2f9(_0x5e42fe)||_0x5e42fe);return _0x5e42fe;},Ne=(_0x5b812e,_0x1c3e0f)=>(_0x55f624,_0x19725d)=>_0x1c3e0f(_0x55f624,_0x19725d,_0x5b812e);let m=class extends _0x16dba9{constructor(_0x140c27){var _0x3d5c39=_0x5c9d4e;super(),this['_liveShareService']=_0x140c27,this[_0x3d5c39(0x1d2)]();}[_0x5c9d4e(0x1d2)](){var _0x57e818=_0x5c9d4e;[_0x2e9c3f['id'],_0xdc23e3['id'],_0xb3f4ec['id']][_0x57e818(0x1c4)](_0xdee3d8=>{var _0x512c45=_0x57e818;this[_0x512c45(0x1c1)](this[_0x512c45(0x20f)][_0x512c45(0x1cf)](_0xdee3d8));});}};m=Ce([Ne(0x0,_0x494708(L))],m);var c=function(){var _0x2fa289=_0x5c9d4e;return c=Object['assign']||function(_0x36539a){var _0x4234e3=_0x2d81;for(var _0x3e0d45,_0x379245=0x1,_0x613bfe=arguments[_0x4234e3(0x261)];_0x379245<_0x613bfe;_0x379245++){_0x3e0d45=arguments[_0x379245];for(var _0x408b75 in _0x3e0d45)Object[_0x4234e3(0x1db)][_0x4234e3(0x212)][_0x4234e3(0x255)](_0x3e0d45,_0x408b75)&&(_0x36539a[_0x408b75]=_0x3e0d45[_0x408b75]);}return _0x36539a;},c[_0x2fa289(0x1f5)](this,arguments);},we=function(_0x113643,_0x15089d){var _0x4df7f5=_0x5c9d4e,_0x49788b={};for(var _0x49d513 in _0x113643)Object[_0x4df7f5(0x1db)][_0x4df7f5(0x212)][_0x4df7f5(0x255)](_0x113643,_0x49d513)&&_0x15089d[_0x4df7f5(0x204)](_0x49d513)<0x0&&(_0x49788b[_0x49d513]=_0x113643[_0x49d513]);if(_0x113643!=null&&typeof Object['getOwnPropertySymbols']==_0x4df7f5(0x223)){for(var _0x182742=0x0,_0x49d513=Object[_0x4df7f5(0x245)](_0x113643);_0x182742<_0x49d513[_0x4df7f5(0x261)];_0x182742++)_0x15089d[_0x4df7f5(0x204)](_0x49d513[_0x182742])<0x0&&Object[_0x4df7f5(0x1db)]['propertyIsEnumerable'][_0x4df7f5(0x255)](_0x113643,_0x49d513[_0x182742])&&(_0x49788b[_0x49d513[_0x182742]]=_0x113643[_0x49d513[_0x182742]]);}return _0x49788b;},W=_0x53188e(function(_0x8fe4aa,_0x25183b){var _0xe7da43=_0x5c9d4e,_0xa76d7e=_0x8fe4aa['icon'],_0x55db8d=_0x8fe4aa['id'],_0xc0c1ab=_0x8fe4aa['className'],_0x3c5721=_0x8fe4aa[_0xe7da43(0x1c8)],_0x30e522=we(_0x8fe4aa,[_0xe7da43(0x22f),'id','className',_0xe7da43(0x1c8)]),_0x55799d=_0xe7da43(0x1c3)[_0xe7da43(0x22e)](_0x55db8d,'\x20')['concat'](_0xc0c1ab||'')[_0xe7da43(0x1cb)](),_0x28ff68=_0x5dcc67('_'[_0xe7da43(0x22e)](Le()));return Y(_0xa76d7e,''['concat'](_0x55db8d),{'defIds':_0xa76d7e[_0xe7da43(0x221)],'idSuffix':_0x28ff68[_0xe7da43(0x1e1)]},c({'ref':_0x25183b,'className':_0x55799d},_0x30e522),_0x3c5721);});function Y(_0x5b9d8b,_0x4958b0,_0x2e4a9c,_0x203cf2,_0x14beab){var _0x526e0a=_0x5c9d4e;return _0x2003bf(_0x5b9d8b['tag'],c(c({'key':_0x4958b0},De(_0x5b9d8b,_0x2e4a9c,_0x14beab)),_0x203cf2),(xe(_0x5b9d8b,_0x2e4a9c)['children']||[])[_0x526e0a(0x22b)](function(_0x2bc1fe,_0x5ce4ff){var _0x295321=_0x526e0a;return Y(_0x2bc1fe,''['concat'](_0x4958b0,'-')[_0x295321(0x22e)](_0x5b9d8b[_0x295321(0x208)],'-')[_0x295321(0x22e)](_0x5ce4ff),_0x2e4a9c,void 0x0,_0x14beab);}));}function De(_0x35e0c6,_0x2e6dd9,_0x2b07a6){var _0x4f7756=_0x5c9d4e,_0x497707=c({},_0x35e0c6[_0x4f7756(0x1f3)]);_0x2b07a6!=null&&_0x2b07a6[_0x4f7756(0x22d)]&&_0x497707[_0x4f7756(0x1d9)]===_0x4f7756(0x22d)&&(_0x497707[_0x4f7756(0x1d9)]=_0x2b07a6[_0x4f7756(0x22d)]),_0x35e0c6[_0x4f7756(0x208)]===_0x4f7756(0x230)&&_0x497707['id']&&(_0x497707['id']=_0x497707['id']+_0x2e6dd9['idSuffix']),Object[_0x4f7756(0x24a)](_0x497707)[_0x4f7756(0x1c4)](function(_0x38b68c){var _0x28c02a=_0x4f7756,_0xb78715=_0x38b68c[0x0],_0x57d15d=_0x38b68c[0x1];_0xb78715===_0x28c02a(0x230)&&typeof _0x57d15d==_0x28c02a(0x1f2)&&(_0x497707[_0xb78715]=_0x57d15d[_0x28c02a(0x25e)](/url\(#(.*)\)/,_0x28c02a(0x1da)[_0x28c02a(0x22e)](_0x2e6dd9['idSuffix'],')')));});var _0x51b072=_0x2e6dd9['defIds'];return!_0x51b072||_0x51b072['length']===0x0||(_0x35e0c6[_0x4f7756(0x208)]==='use'&&_0x497707[_0x4f7756(0x24c)]&&(_0x497707[_0x4f7756(0x24c)]=_0x497707[_0x4f7756(0x24c)]+_0x2e6dd9['idSuffix']),Object['entries'](_0x497707)[_0x4f7756(0x1c4)](function(_0x291341){var _0x45b9af=_0x4f7756,_0x9781dd=_0x291341[0x0],_0x1c98cf=_0x291341[0x1];typeof _0x1c98cf==_0x45b9af(0x1f2)&&(_0x497707[_0x9781dd]=_0x1c98cf['replace'](/url\(#(.*)\)/,_0x45b9af(0x1da)[_0x45b9af(0x22e)](_0x2e6dd9[_0x45b9af(0x262)],')')));})),_0x497707;}function xe(_0x99b531,_0x43ea89){var _0x3f31fe=_0x5c9d4e,_0x5a6fdf,_0x17529c=_0x43ea89[_0x3f31fe(0x221)];return!_0x17529c||_0x17529c['length']===0x0?_0x99b531:_0x99b531['tag']==='defs'&&(!((_0x5a6fdf=_0x99b531[_0x3f31fe(0x1cc)])===null||_0x5a6fdf===void 0x0)&&_0x5a6fdf[_0x3f31fe(0x261)])?c(c({},_0x99b531),{'children':_0x99b531[_0x3f31fe(0x1cc)][_0x3f31fe(0x22b)](function(_0x45c608){var _0x28c1f3=_0x3f31fe;return typeof _0x45c608[_0x28c1f3(0x1f3)]['id']==_0x28c1f3(0x1f2)&&_0x17529c&&_0x17529c['indexOf'](_0x45c608['attrs']['id'])>-0x1?c(c({},_0x45c608),{'attrs':c(c({},_0x45c608['attrs']),{'id':_0x45c608[_0x28c1f3(0x1f3)]['id']+_0x43ea89[_0x28c1f3(0x262)]})}):_0x45c608;})}):_0x99b531;}function Le(){var _0x525d82=_0x5c9d4e;return Math[_0x525d82(0x236)]()[_0x525d82(0x268)](0x24)['substring'](0x2,0x8);}W['displayName']=_0x5c9d4e(0x24d);var ye={'tag':_0x5c9d4e(0x251),'attrs':{'fill':_0x5c9d4e(0x248),'viewBox':_0x5c9d4e(0x1f1),'width':'1em','height':_0x5c9d4e(0x1c7)},'children':[{'tag':'path','attrs':{'fill':_0x5c9d4e(0x1f4),'d':_0x5c9d4e(0x24f)}},{'tag':'path','attrs':{'fill':_0x5c9d4e(0x1f4),'d':_0x5c9d4e(0x1ce),'fillRule':_0x5c9d4e(0x1fd),'clipRule':_0x5c9d4e(0x1fd)}}]},B=_0x53188e(function(_0x280899,_0x5b3df2){var _0x442d58=_0x5c9d4e;return _0x2003bf(W,Object[_0x442d58(0x253)]({},_0x280899,{'id':'live-share-single','ref':_0x5b3df2,'icon':ye}));});B[_0x5c9d4e(0x228)]='LiveShareSingle';var Re=Object[_0x5c9d4e(0x231)],Z=(_0x518957,_0x464d99,_0x37b489,_0x42e327)=>{var _0x2608f1=_0x5c9d4e;for(var _0x5b8928=_0x42e327>0x1?void 0x0:_0x42e327?Re(_0x464d99,_0x37b489):_0x464d99,_0x44a54d=_0x518957[_0x2608f1(0x261)]-0x1,_0x1d0ba4;_0x44a54d>=0x0;_0x44a54d--)(_0x1d0ba4=_0x518957[_0x44a54d])&&(_0x5b8928=_0x1d0ba4(_0x5b8928)||_0x5b8928);return _0x5b8928;},f=(_0x199f08,_0x4df96e)=>(_0x206d5c,_0x396032)=>_0x4df96e(_0x206d5c,_0x396032,_0x199f08);let I=class extends _0x2a5b83{constructor(_0x1e416d,_0x115db0,_0x1c79f5){var _0x107669=_0x5c9d4e;super(),d(this,_0x107669(0x203),new Map()),(this[_0x107669(0x24b)]=_0x1e416d,this[_0x107669(0x21f)]=_0x115db0,this[_0x107669(0x20b)]=_0x1c79f5,this[_0x107669(0x1d2)]());}async[_0x5c9d4e(0x1e6)](_0x702ae2){var _0x2d3c1d=_0x5c9d4e;return this[_0x2d3c1d(0x203)]['has'](_0x702ae2)||await this['_startLiveShareCoordinator'](_0x702ae2),this[_0x2d3c1d(0x203)][_0x2d3c1d(0x1ee)](_0x702ae2);}[_0x5c9d4e(0x1d2)](){var _0x37c400=_0x5c9d4e;this['_univerInstanceService'][_0x37c400(0x1ed)](_0x4d6457[_0x37c400(0x265)])[_0x37c400(0x26a)](_0xc1d624(this['dispose$']))[_0x37c400(0x21d)](async _0x27a3d2=>{var _0x114945=_0x37c400;const _0x399b03=_0x27a3d2[_0x114945(0x213)]();this[_0x114945(0x203)]['has'](_0x399b03)||this['_startLiveShareCoordinator'](_0x399b03);}),this[_0x37c400(0x24b)][_0x37c400(0x1e2)](_0x4d6457[_0x37c400(0x265)])['pipe'](_0xc1d624(this['dispose$']))[_0x37c400(0x21d)](_0x321243=>{var _0x5d433a=_0x37c400;const _0x16dad1=_0x321243['getUnitId'](),_0x2cab58=this[_0x5d433a(0x203)][_0x5d433a(0x1ee)](_0x16dad1);_0x2cab58==null||_0x2cab58[_0x5d433a(0x1d0)]();});}async[_0x5c9d4e(0x1e4)](_0x3e5e7f){var _0x4c1246=_0x5c9d4e;const _0x132643=await this[_0x4c1246(0x20b)][_0x4c1246(0x1ef)](_0x3e5e7f),_0xff9b58=this['_injector']['createInstance'](w,_0x3e5e7f,_0x132643);return _0xff9b58[_0x4c1246(0x258)](),this[_0x4c1246(0x203)]['set'](_0x3e5e7f,_0xff9b58),_0xff9b58;}};I=Z([f(0x0,_0x585a22),f(0x1,_0x494708(_0x1db792)),f(0x2,_0x494708(_0x29d9d6))],I);function _0x2f30(){var _0x3f15b4=['7146EjkQVu','_init','values','PRESENTING','status$','operations','639qrLXxF','from','fill','url(#$1','prototype','210572yOzRDE','_beIdle','_collabSession','_startPresenting','button','current','getTypeOfUnitDisposed$','Start\x20following','_startLiveShareCoordinator','LIVESHARE_REQUEST_HOST','getLiveShareCoordinator','_mountLiveShare','LIVESHARE_OPERATION','You\x27re\x20following\x20the\x20presenter','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','getTypeOfUnitAdded$','get','requireSession','offline','0\x200\x2016\x2016','string','attrs','currentColor','apply','default','You\x27are\x20offline.','_sharedOperations','162253gEawHb','_handleNewHost','_stopPresenting','SAME_OPERATION_SHARE_INTERVAL','evenodd','shouldShareOperation','type','registerInitialStateReporter','following','getMemberID','_entities','indexOf','next','parse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','tag','16180wGonKL','_startFollowing','_collabSessionService','add','onStarting','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-white\x20dark:univer-bg-white\x20dark:univer-text-gray-900','_liveShareService','stopFollowing','unsubscribe','hasOwnProperty','getUnitId','18frYLQJ','2941224ZvppWC','_presenter','reverse','startFollowing','not-following','univer-w-full\x20univer-mb-3\x20univer-text-sm','_unitID','stopPresenting','subscribe','includes','_injector','end','defIds','send','function','_config','645841gjLxkJ','OFFLINE','then','displayName','unitId','_reporters','map','12664lucMsn','colorChannel1','concat','icon','mask','getOwnPropertyDescriptor','NOT_FOLLOWING','sheet','ONLINE','10AYchnW','random','_handleNewChangeSets','_fetchOperations','tryStartPresenting','_handleOffline','_handleOnline','univer-size-4','div','_stopFollowing','_status','registerComponent','32148721DuoGYX','HEADER_MENU','presenting','params','getOwnPropertySymbols','symbol','_configService','none','_status$','entries','_univerInstanceService','xlink:href','UniverIcon','has','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','data','svg','executeCommand','assign','_commandService','call','Stop\x20following','dispose$','init','onRendered','_uiPartsService','Start','asObservable','onCommandExecuted','replace','You\x27re\x20not\x20following\x20the\x20presenter','presenter','length','idSuffix','complete','idle','UNIVER_SHEET','IDLE','NEW_CHANGESETS','toString','sessionStatus$','pipe','_handleOperation','getInitialStates','disposeWithMe','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','forEach','defineProperty','FOLLOWING','1em','extend','Present\x20this\x20document','_commandDisposable','trim','children','getValue','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','registerSharedOperation','dispose'];_0x2f30=function(){return _0x3f15b4;};return _0x2f30();}var h=(_0x65d569=>(_0x65d569[_0x5c9d4e(0x226)]=_0x5c9d4e(0x1f0),_0x65d569[_0x5c9d4e(0x266)]='idle',_0x65d569[_0x5c9d4e(0x1c6)]=_0x5c9d4e(0x201),_0x65d569[_0x5c9d4e(0x232)]=_0x5c9d4e(0x219),_0x65d569[_0x5c9d4e(0x1d4)]=_0x5c9d4e(0x243),_0x65d569))(h||{});const Pe=_0x5c9d4e(0x1fc),Ae=0xc8;let w=class extends _0x2a5b83{constructor(_0x5c88e3,_0xeda41c,_0x1099ac,_0xea670f,_0xcf2025){var _0x4a4177=_0x5c9d4e;super(),d(this,_0x4a4177(0x249),new _0x201fdb('idle')),d(this,_0x4a4177(0x1d5),this[_0x4a4177(0x249)][_0x4a4177(0x25c)]()),d(this,_0x4a4177(0x1d2),!0x1),d(this,_0x4a4177(0x1ca),null),d(this,_0x4a4177(0x216),null),(this[_0x4a4177(0x21b)]=_0x5c88e3,this[_0x4a4177(0x1de)]=_0xeda41c,this[_0x4a4177(0x247)]=_0x1099ac,this[_0x4a4177(0x20f)]=_0xea670f,this['_commandService']=_0xcf2025);}get['_status'](){var _0x5dce80=_0x5c9d4e;return this[_0x5dce80(0x249)][_0x5dce80(0x1cd)]();}['dispose'](){var _0x33cd6d=_0x5c9d4e,_0x5b60d9;(_0x5b60d9=this[_0x33cd6d(0x1ca)])==null||_0x5b60d9[_0x33cd6d(0x1d0)](),this[_0x33cd6d(0x249)][_0x33cd6d(0x205)](_0x33cd6d(0x264)),this[_0x33cd6d(0x249)][_0x33cd6d(0x263)]();}[_0x5c9d4e(0x258)](){var _0x1b688d=_0x5c9d4e;this['_init']||(this['_init']=!0x0,this[_0x1b688d(0x1de)][_0x1b688d(0x269)][_0x1b688d(0x26a)](_0xc1d624(this[_0x1b688d(0x257)]))[_0x1b688d(0x21d)](_0x101635=>{var _0x1e3156=_0x1b688d;switch(_0x101635){case _0x2f4dc0['OFFLINE']:this[_0x1e3156(0x23a)]();break;case _0x2f4dc0[_0x1e3156(0x234)]:this[_0x1e3156(0x23b)]();break;}}),this[_0x1b688d(0x1de)]['event$'][_0x1b688d(0x26a)](_0xc1d624(this[_0x1b688d(0x257)]))['subscribe'](_0x5ab73e=>{var _0xfd1454=_0x1b688d;const {eventID:_0x5c025b}=_0x5ab73e;switch(_0x5c025b){case _0x17cd11[_0xfd1454(0x1eb)]:this[_0xfd1454(0x1fa)](_0x5ab73e);break;case _0x17cd11[_0xfd1454(0x1e8)]:this[_0xfd1454(0x26b)](_0x5ab73e);break;case _0x17cd11[_0xfd1454(0x1ea)]:this['_handleTerminate']();break;case _0x17cd11[_0xfd1454(0x267)]:this['_handleNewChangeSets'](_0x5ab73e);break;}}));}[_0x5c9d4e(0x239)](){var _0x548ffd=_0x5c9d4e;this[_0x548ffd(0x1de)]['send']({'eventID':_0x17cd11[_0x548ffd(0x1e5)],'data':{'unitID':this[_0x548ffd(0x21b)],'userID':this[_0x548ffd(0x1de)][_0x548ffd(0x202)]()}},this['_unitID']);}[_0x5c9d4e(0x21c)](){var _0xddc3d5=_0x5c9d4e;this[_0xddc3d5(0x23f)]===_0xddc3d5(0x243)&&(this['_status$'][_0xddc3d5(0x205)](_0xddc3d5(0x264)),this[_0xddc3d5(0x1de)][_0xddc3d5(0x222)]({'eventID':_0x17cd11[_0xddc3d5(0x1ea)],'data':{'unitID':this['_unitID']}},this[_0xddc3d5(0x21b)]));}[_0x5c9d4e(0x218)](){var _0x100022=_0x5c9d4e;this[_0x100022(0x23f)]===_0x100022(0x219)&&(this[_0x100022(0x249)][_0x100022(0x205)](_0x100022(0x201)),this[_0x100022(0x20a)]());}[_0x5c9d4e(0x210)](){var _0x526877=_0x5c9d4e;this['_status']===_0x526877(0x201)&&this[_0x526877(0x23e)]();}[_0x5c9d4e(0x1fa)](_0x57893b){var _0xbbf977=_0x5c9d4e;const {presenter:_0x50ad1e}=_0x57893b[_0xbbf977(0x250)],_0x598ff1=this[_0xbbf977(0x1de)][_0xbbf977(0x202)]();this[_0xbbf977(0x216)]=_0x50ad1e,_0x50ad1e===_0x598ff1?(this[_0xbbf977(0x23e)](),this[_0xbbf977(0x1df)]()):this[_0xbbf977(0x23f)]!=='not-following'&&(this['_stopPresenting'](),this[_0xbbf977(0x20a)]());}['_fetchOperations'](){var _0x12ca69=_0x5c9d4e;const _0x313f7e={'eventID':_0x17cd11[_0x12ca69(0x1c2)]};this['_collabSession']['send'](_0x313f7e,this[_0x12ca69(0x21b)]);}['_handleTerminate'](){var _0x2898d7=_0x5c9d4e;this[_0x2898d7(0x216)]=null,this['_status']!==_0x2898d7(0x243)&&this[_0x2898d7(0x1dd)]();}[_0x5c9d4e(0x237)](_0x1accfb){var _0x39fb20=_0x5c9d4e;if(this[_0x39fb20(0x23f)]===_0x39fb20(0x201)&&this[_0x39fb20(0x216)]===_0x1accfb[_0x39fb20(0x250)]['memberID']){const _0x1df56d=_0x35f4d4(_0x1accfb['data'])['mutations'][_0x39fb20(0x217)]()['find'](_0x4d6586=>_0x4d6586['id']===_0x15b0d4['id']);if(_0x1df56d){const _0x2dcf85=_0x1df56d[_0x39fb20(0x244)][_0x39fb20(0x229)],_0x5e56f4=_0x1df56d['params'][_0x39fb20(0x233)]['id'];setTimeout(()=>{var _0x477cd9=_0x39fb20;this[_0x477cd9(0x254)][_0x477cd9(0x252)](_0xb3f4ec['id'],{'unitId':_0x2dcf85,'subUnitId':_0x5e56f4},{'fromCollab':!0x0});});}}}[_0x5c9d4e(0x1df)](){var _0x21165b=_0x5c9d4e;this[_0x21165b(0x249)]['next']('presenting');const _0x381fc2=new Map(),_0x4a90f8=this[_0x21165b(0x1ca)]=new _0x56255c();_0x4a90f8[_0x21165b(0x20c)](_0x354c09(()=>{var _0x1d3e4e=_0x21165b;_0x381fc2[_0x1d3e4e(0x1c4)](_0x386e63=>_0x386e63[_0x1d3e4e(0x263)]()),_0x381fc2['clear']();})),_0x4a90f8[_0x21165b(0x20c)](this['_commandService'][_0x21165b(0x25d)](_0xb13ad7=>{var _0x1f61a3=_0x21165b,_0x394c38;if(_0xb13ad7[_0x1f61a3(0x1ff)]!==_0xffc9ac['OPERATION']||!this[_0x1f61a3(0x20f)][_0x1f61a3(0x1fe)](_0xb13ad7['id']))return;const {id:_0x3cd428}=_0xb13ad7;let _0x1b57f9;_0x381fc2['has'](_0x3cd428)?_0x1b57f9=_0x381fc2[_0x1f61a3(0x1ee)](_0x3cd428):(_0x1b57f9=new _0x1be71f(),_0x381fc2['set'](_0x3cd428,_0x1b57f9),_0x1b57f9[_0x1f61a3(0x26a)](_0x53be6c((_0x394c38=this[_0x1f61a3(0x247)]['getConfig'](Pe))!=null?_0x394c38:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1f61a3(0x21d)](_0x4f3ed1=>{var _0x337532=_0x1f61a3;this[_0x337532(0x1de)][_0x337532(0x222)]({'eventID':_0x17cd11[_0x337532(0x1e8)],'data':{'unitID':this['_unitID'],'operations':{[_0x4f3ed1['id']]:{'id':_0x4f3ed1['id'],'params':JSON['stringify'](_0x4f3ed1[_0x337532(0x244)])}}}},this['_unitID']);})),_0x1b57f9[_0x1f61a3(0x205)](_0xb13ad7);})),this[_0x21165b(0x20f)][_0x21165b(0x1c0)](this[_0x21165b(0x21b)])[_0x21165b(0x1c4)](_0x3c3efe=>this['_collabSession']['send']({'eventID':_0x17cd11[_0x21165b(0x1e8)],'data':{'unitID':this[_0x21165b(0x21b)],'operations':{[_0x3c3efe['id']]:{'id':_0x3c3efe['id'],'params':JSON['stringify'](_0x3c3efe[_0x21165b(0x244)])}}}},this[_0x21165b(0x21b)]));}[_0x5c9d4e(0x1fb)](){var _0x5b56fe=_0x5c9d4e,_0x140120;this['_status$']['next'](_0x5b56fe(0x264)),(_0x140120=this[_0x5b56fe(0x1ca)])==null||_0x140120['dispose'](),this['_commandDisposable']=null;}[_0x5c9d4e(0x20a)](){var _0x406cd8=_0x5c9d4e,_0x2e0327;(_0x2e0327=this[_0x406cd8(0x1ca)])==null||_0x2e0327['dispose'](),this[_0x406cd8(0x249)][_0x406cd8(0x205)](_0x406cd8(0x201));}[_0x5c9d4e(0x1dd)](){var _0x365493=_0x5c9d4e,_0x5497b9;this['_status$']['next'](_0x365493(0x264)),(_0x5497b9=this[_0x365493(0x1ca)])==null||_0x5497b9['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x1f2936=_0x5c9d4e,_0x14b7fa;this[_0x1f2936(0x249)][_0x1f2936(0x205)](_0x1f2936(0x219)),(_0x14b7fa=this[_0x1f2936(0x1ca)])==null||_0x14b7fa[_0x1f2936(0x1d0)]();}[_0x5c9d4e(0x26b)](_0x3a1618){var _0x20ef34=_0x5c9d4e;if([_0x20ef34(0x243),'not-following',_0x20ef34(0x1f0)][_0x20ef34(0x21e)](this[_0x20ef34(0x23f)])||!_0x3a1618[_0x20ef34(0x250)][_0x20ef34(0x260)]||_0x3a1618[_0x20ef34(0x250)][_0x20ef34(0x260)]===this['_collabSession'][_0x20ef34(0x202)]())return;this['_status']==='idle'&&this[_0x20ef34(0x20a)]();const _0x277a2d=_0x3a1618[_0x20ef34(0x250)][_0x20ef34(0x1d6)];Object[_0x20ef34(0x1d3)](_0x277a2d)[_0x20ef34(0x1c4)](_0x50658f=>{var _0x4f5472=_0x20ef34;this[_0x4f5472(0x254)][_0x4f5472(0x252)](_0x50658f['id'],_0x50658f[_0x4f5472(0x244)]?JSON[_0x4f5472(0x206)](_0x50658f[_0x4f5472(0x244)]):null,{'fromCollab':!0x0});});}[_0x5c9d4e(0x23a)](){var _0x5b81ff=_0x5c9d4e,_0x42c9a9;this[_0x5b81ff(0x249)][_0x5b81ff(0x205)](_0x5b81ff(0x1f0)),(_0x42c9a9=this[_0x5b81ff(0x1ca)])==null||_0x42c9a9[_0x5b81ff(0x1d0)]();}[_0x5c9d4e(0x23b)](){var _0x83a75f=_0x5c9d4e;this[_0x83a75f(0x249)][_0x83a75f(0x205)](_0x83a75f(0x264)),this[_0x83a75f(0x238)]();}};w=Z([f(0x2,_0x5c2377),f(0x3,_0x494708(L)),f(0x4,_0x1cbc81)],w);function Te(){var _0x352b00=_0x5c9d4e;const _0x502d2d=_0x1ed3d7(I),_0x3014b3=_0x1ed3d7(_0x585a22),_0x23b044=_0x2ee3f6(()=>_0x3014b3['getCurrentTypeOfUnit$'](_0x4d6457[_0x352b00(0x265)]),void 0x0,!0x1,[]),[_0x61f83b,_0x30f6a0]=_0x1b38a2(null),[_0x4d1322,_0x54e755]=_0x1b38a2(h['IDLE']),_0x3bc6c3=_0x5dcc67(null);return _0x4b7d5c(()=>(_0x23b044&&_0x502d2d[_0x352b00(0x1e6)](_0x23b044[_0x352b00(0x213)]())[_0x352b00(0x227)](_0xe7ff02=>{var _0x530b46=_0x352b00;_0x30f6a0(_0xe7ff02),_0x3bc6c3['current']=_0xe7ff02[_0x530b46(0x1d5)][_0x530b46(0x21d)](_0x473d31=>{_0x54e755(_0x473d31);});}),()=>{var _0x4057e4=_0x352b00,_0x571b64;(_0x571b64=_0x3bc6c3[_0x4057e4(0x1e1)])==null||_0x571b64[_0x4057e4(0x211)](),_0x3bc6c3[_0x4057e4(0x1e1)]=null;}),[_0x23b044,_0x502d2d]),_0x61f83b?_0xe1c63f(_0x446cfa,{'align':_0x352b00(0x220),'disabled':_0x4d1322===h[_0x352b00(0x226)],'className':_0x352b00(0x20e),'overlay':_0xe1c63f($e,{'status':_0x4d1322,'coordinator':_0x61f83b}),'children':_0xe1c63f(_0x352b00(0x1e0),{'className':_0x29b739(_0x352b00(0x207),{'univer-cursor-not-allowed':_0x4d1322===h[_0x352b00(0x226)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d1322!==h[_0x352b00(0x226)]}),'type':'button','children':_0xe1c63f(B,{'className':_0x352b00(0x23c)})})}):null;}function $e(_0xdb1120){var _0x56c442=_0x5c9d4e;const {status:_0x46c024,coordinator:_0x4fb558}=_0xdb1120;switch(_0x46c024){case h[_0x56c442(0x266)]:return _0xe1c63f(Fe,{'coordinator':_0x4fb558});case h[_0x56c442(0x1c6)]:return _0xe1c63f(He,{'coordinator':_0x4fb558});case h['NOT_FOLLOWING']:return _0xe1c63f(je,{'coordinator':_0x4fb558});case h[_0x56c442(0x226)]:return _0xe1c63f(Ve,{});case h['PRESENTING']:return _0xe1c63f(Ue,{'coordinator':_0x4fb558});default:return null;}}function Fe(_0x1e9e64){var _0x4a2e9e=_0x5c9d4e;const {coordinator:_0x159024}=_0x1e9e64;return _0x19b1de(_0x18822c,{'children':[_0xe1c63f(_0x4a2e9e(0x23d),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4a2e9e(0x1c9)}),_0xe1c63f(_0x37d2e3,{'onClick':()=>_0x159024[_0x4a2e9e(0x239)](),'children':_0x4a2e9e(0x25b)})]});}function _0x2d81(_0x246a21,_0x486d02){var _0x2f309d=_0x2f30();return _0x2d81=function(_0x2d81f6,_0x4ec1d3){_0x2d81f6=_0x2d81f6-0x1c0;var _0x5bc171=_0x2f309d[_0x2d81f6];return _0x5bc171;},_0x2d81(_0x246a21,_0x486d02);}function He(_0x27d339){var _0x46f8ff=_0x5c9d4e;const {coordinator:_0x1e7221}=_0x27d339;return _0x19b1de(_0x18822c,{'children':[_0xe1c63f(_0x46f8ff(0x23d),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x46f8ff(0x1e9)}),_0xe1c63f(_0x37d2e3,{'onClick':()=>_0x1e7221['stopFollowing'](),'children':_0x46f8ff(0x256)})]});}function je(_0x2e0f02){var _0x5c4fc9=_0x5c9d4e;const {coordinator:_0x4c382a}=_0x2e0f02;return _0x19b1de(_0x18822c,{'children':[_0xe1c63f('div',{'className':_0x5c4fc9(0x21a),'children':_0x5c4fc9(0x25f)}),_0xe1c63f(_0x37d2e3,{'variant':'text','onClick':()=>_0x4c382a['startFollowing'](),'children':_0x5c4fc9(0x1e3)})]});}function Ue(_0x230d6f){var _0x244b76=_0x5c9d4e;const {coordinator:_0x2eb22f}=_0x230d6f;return _0x19b1de(_0x18822c,{'children':[_0xe1c63f(_0x244b76(0x23d),{'className':_0x244b76(0x21a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xe1c63f(_0x37d2e3,{'variant':_0x244b76(0x1f6),'onClick':()=>_0x2eb22f[_0x244b76(0x21c)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2d1c8b=_0x5c9d4e;return _0xe1c63f(_0x18822c,{'children':_0x2d1c8b(0x1f7)});}var Me=Object[_0x5c9d4e(0x231)],ke=(_0x3b96f6,_0x3a2d07,_0x56db6b,_0x40de6f)=>{var _0x25046d=_0x5c9d4e;for(var _0xfc8ecc=_0x40de6f>0x1?void 0x0:_0x40de6f?Me(_0x3a2d07,_0x56db6b):_0x3a2d07,_0x3db199=_0x3b96f6[_0x25046d(0x261)]-0x1,_0x47c10b;_0x3db199>=0x0;_0x3db199--)(_0x47c10b=_0x3b96f6[_0x3db199])&&(_0xfc8ecc=_0x47c10b(_0xfc8ecc)||_0xfc8ecc);return _0xfc8ecc;},$=(_0x343f6b,_0x4dd1fa)=>(_0x1825f4,_0x3a31fe)=>_0x4dd1fa(_0x1825f4,_0x3a31fe,_0x343f6b);let b=class extends _0x16dba9{constructor(_0x36fc14,_0x56923e){var _0x35ab3f=_0x5c9d4e;super(),this[_0x35ab3f(0x21f)]=_0x36fc14,this[_0x35ab3f(0x25a)]=_0x56923e,this[_0x35ab3f(0x1e7)]();}['_mountLiveShare'](){var _0x30dbd8=_0x5c9d4e;this[_0x30dbd8(0x1c1)](this[_0x30dbd8(0x25a)][_0x30dbd8(0x240)](_0x55ffc7[_0x30dbd8(0x242)],()=>_0x15cdcb(Te,this[_0x30dbd8(0x21f)])));}};b=ke([$(0x0,_0x494708(_0x1db792)),$(0x1,_0x4070e2)],b);var Ge=Object[_0x5c9d4e(0x1c5)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x346422,_0x108a71,_0x55069f)=>_0x108a71 in _0x346422?Ge(_0x346422,_0x108a71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55069f}):_0x346422[_0x108a71]=_0x55069f,Be=(_0x662b54,_0x5ef523,_0x11ccdf,_0x4b333f)=>{var _0x880204=_0x5c9d4e;for(var _0xb1beae=_0x4b333f>0x1?void 0x0:_0x4b333f?We(_0x5ef523,_0x11ccdf):_0x5ef523,_0x385621=_0x662b54[_0x880204(0x261)]-0x1,_0x592a25;_0x385621>=0x0;_0x385621--)(_0x592a25=_0x662b54[_0x385621])&&(_0xb1beae=_0x592a25(_0xb1beae)||_0xb1beae);return _0xb1beae;},F=(_0x3887da,_0x5a7f41)=>(_0x4d25c0,_0x2aff8f)=>_0x5a7f41(_0x4d25c0,_0x2aff8f,_0x3887da),J=(_0x18c5e1,_0x5a992e,_0x55374e)=>Ye(_0x18c5e1,typeof _0x5a992e!=_0x5c9d4e(0x246)?_0x5a992e+'':_0x5a992e,_0x55374e);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x101948{constructor(_0x2c6692=T,_0xba899e,_0x2b01d5){var _0x4d66d3=_0x5c9d4e;super(),this[_0x4d66d3(0x224)]=_0x2c6692,this[_0x4d66d3(0x21f)]=_0xba899e,this[_0x4d66d3(0x247)]=_0x2b01d5;const {..._0x35863d}=_0x3eebca({},T,this[_0x4d66d3(0x224)]);this[_0x4d66d3(0x247)]['setConfig'](Oe,_0x35863d);}[_0x5c9d4e(0x20d)](){var _0x183a14=_0x5c9d4e;_0x2e62e9(this[_0x183a14(0x21f)],_0x30b06f([[L],[I],[m],[b]],this[_0x183a14(0x224)]['override'])),_0x299c56(this[_0x183a14(0x21f)],[[m]]);}[_0x5c9d4e(0x259)](){var _0x5eae80=_0x5c9d4e;_0x299c56(this[_0x5eae80(0x21f)],[[b]]);}};J(O,_0x5c9d4e(0x1ff),_0x4d6457[_0x5c9d4e(0x1ec)]),J(O,'pluginName',Ze),O=Be([_0x1b11fd(_0x13c932),F(0x1,_0x494708(_0x1db792)),F(0x2,_0x5c2377)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x52f618=_0x56cb;(function(_0x422162,_0x323e1f){var _0x23554a=_0x56cb,_0xb98258=_0x422162();while(!![]){try{var _0x32d96a=-parseInt(_0x23554a(0x21d))/0x1*(parseInt(_0x23554a(0x1b6))/0x2)+-parseInt(_0x23554a(0x1e3))/0x3+-parseInt(_0x23554a(0x194))/0x4+parseInt(_0x23554a(0x229))/0x5+parseInt(_0x23554a(0x19e))/0x6*(-parseInt(_0x23554a(0x207))/0x7)+parseInt(_0x23554a(0x1e0))/0x8*(-parseInt(_0x23554a(0x206))/0x9)+parseInt(_0x23554a(0x1d0))/0xa*(parseInt(_0x23554a(0x1c1))/0xb);if(_0x32d96a===_0x323e1f)break;else _0xb98258['push'](_0xb98258['shift']());}catch(_0x2d08a5){_0xb98258['push'](_0xb98258['shift']());}}}(_0x3701,0x19dd5));var q=Object[_0x52f618(0x233)],z=(_0x4fa2a4,_0x2c8eae,_0x168a6a)=>_0x2c8eae in _0x4fa2a4?q(_0x4fa2a4,_0x2c8eae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x168a6a}):_0x4fa2a4[_0x2c8eae]=_0x168a6a,d=(_0x5e53bb,_0x1d8150,_0x2fbc33)=>z(_0x5e53bb,typeof _0x1d8150!=_0x52f618(0x1a1)?_0x1d8150+'':_0x1d8150,_0x2fbc33);import{CollaborationSessionService as _0x373ed2,SessionStatus as _0x39c4da,UniverCollaborationClientPlugin as _0x4f23e0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4d2b6f,toDisposable as _0x2deabb,Inject as _0x5b76c2,IUniverInstanceService as _0x32b736,Injector as _0x5d2218,IConfigService as _0x44d386,ICommandService as _0x3c47e4,RxDisposable as _0x563b3c,UniverInstanceType as _0x174153,DisposableCollection as _0x3438d0,CommandType as _0x8ecae0,DependentOn as _0x3ab6ef,Plugin as _0x26e656,merge as _0x2cad00,registerDependencies as _0x153635,mergeOverrideWithDependencies as _0x2088e7,touchDependencies as _0xd0dab7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x495e50,InsertSheetMutation as _0x571bd5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x138ac7,SetScrollOperation as _0x46af97}from'@univerjs/sheets-ui';import{useDependency as _0x131bc5,useObservable as _0x3077c8,IUIPartsService as _0x259a30,BuiltInUIPart as _0x50ace2,connectInjector as _0x4ee5c0}from'@univerjs/ui';import{jsx as _0x40000b,jsxs as _0x54f880,Fragment as _0x4aa632}from'react/jsx-runtime';import{Dropdown as _0x2f5451,clsx as _0x42fd34,Button as _0xe015b0}from'@univerjs/design';import{forwardRef as _0x19d58d,useRef as _0x956383,createElement as _0x2c72b7,useState as _0x201ef0,useEffect as _0x5abcd3}from'react';import{CollaborationEvent as _0x2f804e,parseProtocolChangeset as _0xd42f05}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x570d03,Subject as _0x5cadb4}from'rxjs';import{takeUntil as _0x57168c,throttleTime as _0x4e001a}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4d2b6f{constructor(){var _0x43621f=_0x52f618;super(...arguments),d(this,_0x43621f(0x1b2),new Set()),d(this,_0x43621f(0x1fa),new Set());}[_0x52f618(0x1e5)](_0x12ce23){var _0x2095a8=_0x52f618;return this[_0x2095a8(0x1b2)][_0x2095a8(0x1aa)](_0x12ce23),_0x2deabb(()=>this[_0x2095a8(0x1b2)][_0x2095a8(0x1e9)](_0x12ce23));}[_0x52f618(0x21b)](_0x68b76){var _0x46eb76=_0x52f618;return this[_0x46eb76(0x1fa)][_0x46eb76(0x1aa)](_0x68b76),_0x2deabb(()=>this[_0x46eb76(0x1fa)][_0x46eb76(0x1e9)](_0x68b76));}['shouldShareOperation'](_0x1f9fa4){var _0x2f13aa=_0x52f618;return this[_0x2f13aa(0x1b2)][_0x2f13aa(0x182)](_0x1f9fa4);}[_0x52f618(0x208)](_0x8e583a){var _0xd6812f=_0x52f618;return Array[_0xd6812f(0x1a7)](this[_0xd6812f(0x1fa)])[_0xd6812f(0x1bf)](_0x25b4cb=>_0x25b4cb(_0x8e583a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x27dcde,_0x523bcb,_0x13fd72,_0x1490f5)=>{var _0x1540d3=_0x52f618;for(var _0x442ca5=_0x1490f5>0x1?void 0x0:_0x1490f5?Ee(_0x523bcb,_0x13fd72):_0x523bcb,_0x3a4f1e=_0x27dcde[_0x1540d3(0x1ab)]-0x1,_0x5c143;_0x3a4f1e>=0x0;_0x3a4f1e--)(_0x5c143=_0x27dcde[_0x3a4f1e])&&(_0x442ca5=_0x5c143(_0x442ca5)||_0x442ca5);return _0x442ca5;},Ne=(_0x3dde8e,_0x45943f)=>(_0x5434ff,_0x18c777)=>_0x45943f(_0x5434ff,_0x18c777,_0x3dde8e);let m=class extends _0x4d2b6f{constructor(_0x4c58d7){var _0x263dcb=_0x52f618;super(),this[_0x263dcb(0x19b)]=_0x4c58d7,this[_0x263dcb(0x1ca)]();}[_0x52f618(0x1ca)](){var _0x129913=_0x52f618;[_0x138ac7['id'],_0x46af97['id'],_0x495e50['id']][_0x129913(0x1c7)](_0x425bef=>{var _0x107827=_0x129913;this[_0x107827(0x201)](this[_0x107827(0x19b)][_0x107827(0x1e5)](_0x425bef));});}};m=Ce([Ne(0x0,_0x5b76c2(L))],m);var c=function(){var _0x4d21ad=_0x52f618;return c=Object['assign']||function(_0xff0b48){var _0x315c5d=_0x56cb;for(var _0x534322,_0x18fe22=0x1,_0x329789=arguments[_0x315c5d(0x1ab)];_0x18fe22<_0x329789;_0x18fe22++){_0x534322=arguments[_0x18fe22];for(var _0x2108b5 in _0x534322)Object[_0x315c5d(0x1e8)]['hasOwnProperty'][_0x315c5d(0x230)](_0x534322,_0x2108b5)&&(_0xff0b48[_0x2108b5]=_0x534322[_0x2108b5]);}return _0xff0b48;},c[_0x4d21ad(0x218)](this,arguments);},we=function(_0x54969e,_0x3a0e93){var _0x17413c=_0x52f618,_0x28e942={};for(var _0x340005 in _0x54969e)Object[_0x17413c(0x1e8)][_0x17413c(0x22d)]['call'](_0x54969e,_0x340005)&&_0x3a0e93[_0x17413c(0x1bb)](_0x340005)<0x0&&(_0x28e942[_0x340005]=_0x54969e[_0x340005]);if(_0x54969e!=null&&typeof Object[_0x17413c(0x1ce)]=='function'){for(var _0x23e4f3=0x0,_0x340005=Object['getOwnPropertySymbols'](_0x54969e);_0x23e4f3<_0x340005[_0x17413c(0x1ab)];_0x23e4f3++)_0x3a0e93['indexOf'](_0x340005[_0x23e4f3])<0x0&&Object['prototype'][_0x17413c(0x202)]['call'](_0x54969e,_0x340005[_0x23e4f3])&&(_0x28e942[_0x340005[_0x23e4f3]]=_0x54969e[_0x340005[_0x23e4f3]]);}return _0x28e942;},W=_0x19d58d(function(_0x3b30a2,_0x1b1b74){var _0x488e69=_0x52f618,_0x33aa0c=_0x3b30a2['icon'],_0x4bf32e=_0x3b30a2['id'],_0x31e853=_0x3b30a2['className'],_0xc553f4=_0x3b30a2[_0x488e69(0x1ba)],_0x2ca60d=we(_0x3b30a2,[_0x488e69(0x1ff),'id',_0x488e69(0x18c),'extend']),_0x30f1b3='univerjs-icon\x20univerjs-icon-'[_0x488e69(0x219)](_0x4bf32e,'\x20')[_0x488e69(0x219)](_0x31e853||'')[_0x488e69(0x1ed)](),_0x46e156=_0x956383('_'[_0x488e69(0x219)](Le()));return Y(_0x33aa0c,''[_0x488e69(0x219)](_0x4bf32e),{'defIds':_0x33aa0c[_0x488e69(0x197)],'idSuffix':_0x46e156[_0x488e69(0x211)]},c({'ref':_0x1b1b74,'className':_0x30f1b3},_0x2ca60d),_0xc553f4);});function Y(_0x17709a,_0x57800e,_0x482665,_0x3d243d,_0x3e74c4){var _0x39e62e=_0x52f618;return _0x2c72b7(_0x17709a['tag'],c(c({'key':_0x57800e},De(_0x17709a,_0x482665,_0x3e74c4)),_0x3d243d),(xe(_0x17709a,_0x482665)['children']||[])[_0x39e62e(0x1bf)](function(_0x1e7d47,_0x52cfb3){var _0x30ac5a=_0x39e62e;return Y(_0x1e7d47,''[_0x30ac5a(0x219)](_0x57800e,'-')[_0x30ac5a(0x219)](_0x17709a[_0x30ac5a(0x191)],'-')[_0x30ac5a(0x219)](_0x52cfb3),_0x482665,void 0x0,_0x3e74c4);}));}function De(_0xbc463c,_0x29798d,_0x3353c5){var _0xc5a79c=_0x52f618,_0x1ea5a4=c({},_0xbc463c[_0xc5a79c(0x222)]);_0x3353c5!=null&&_0x3353c5['colorChannel1']&&_0x1ea5a4[_0xc5a79c(0x20f)]===_0xc5a79c(0x193)&&(_0x1ea5a4[_0xc5a79c(0x20f)]=_0x3353c5[_0xc5a79c(0x193)]),_0xbc463c[_0xc5a79c(0x191)]===_0xc5a79c(0x1ae)&&_0x1ea5a4['id']&&(_0x1ea5a4['id']=_0x1ea5a4['id']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x4ef76e){var _0x3f8b48=_0xc5a79c,_0x5a875c=_0x4ef76e[0x0],_0x22f474=_0x4ef76e[0x1];_0x5a875c==='mask'&&typeof _0x22f474==_0x3f8b48(0x204)&&(_0x1ea5a4[_0x5a875c]=_0x22f474[_0x3f8b48(0x1a8)](/url\(#(.*)\)/,_0x3f8b48(0x213)['concat'](_0x29798d[_0x3f8b48(0x224)],')')));});var _0x1cd6a9=_0x29798d[_0xc5a79c(0x197)];return!_0x1cd6a9||_0x1cd6a9['length']===0x0||(_0xbc463c['tag']==='use'&&_0x1ea5a4['xlink:href']&&(_0x1ea5a4[_0xc5a79c(0x221)]=_0x1ea5a4['xlink:href']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x481535){var _0x562295=_0xc5a79c,_0x1f64c9=_0x481535[0x0],_0x4c3f36=_0x481535[0x1];typeof _0x4c3f36==_0x562295(0x204)&&(_0x1ea5a4[_0x1f64c9]=_0x4c3f36[_0x562295(0x1a8)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29798d[_0x562295(0x224)],')')));})),_0x1ea5a4;}function xe(_0x4a52af,_0xb65ffd){var _0x3ddec4=_0x52f618,_0x16424f,_0x38a081=_0xb65ffd[_0x3ddec4(0x197)];return!_0x38a081||_0x38a081['length']===0x0?_0x4a52af:_0x4a52af[_0x3ddec4(0x191)]===_0x3ddec4(0x216)&&(!((_0x16424f=_0x4a52af[_0x3ddec4(0x232)])===null||_0x16424f===void 0x0)&&_0x16424f[_0x3ddec4(0x1ab)])?c(c({},_0x4a52af),{'children':_0x4a52af[_0x3ddec4(0x232)]['map'](function(_0x228ecc){var _0x1a87f6=_0x3ddec4;return typeof _0x228ecc[_0x1a87f6(0x222)]['id']=='string'&&_0x38a081&&_0x38a081[_0x1a87f6(0x1bb)](_0x228ecc[_0x1a87f6(0x222)]['id'])>-0x1?c(c({},_0x228ecc),{'attrs':c(c({},_0x228ecc['attrs']),{'id':_0x228ecc[_0x1a87f6(0x222)]['id']+_0xb65ffd[_0x1a87f6(0x224)]})}):_0x228ecc;})}):_0x4a52af;}function _0x3701(){var _0x187c5f=['get','override','_handleNewHost','from','replace','NOT_FOLLOWING','add','length','subscribe','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','mask','You\x27are\x20offline.','_uiPartsService','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','presenting','8672JdHHhu','evenodd','asObservable','OFFLINE','extend','indexOf','data','presenter','set','map','_stopFollowing','11LhrUOj','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','getCurrentTypeOfUnit$','_status','0\x200\x2016\x2016','forEach','getMemberID','IDLE','_init','unsubscribe','LIVESHARE_OPERATION','stringify','getOwnPropertySymbols','_collabSessionService','4660520fNiOiY','displayName','NEW_CHANGESETS','getOwnPropertyDescriptor','_status$','executeCommand','includes','1em','OPERATION','unitId','getConfig','clear','stopPresenting','status$','onStarting','path','8bCtgil','_injector','_handleOffline','455097jqWnrm','ONLINE','registerSharedOperation','text','getTypeOfUnitDisposed$','prototype','delete','tryStartPresenting','toString','You\x27re\x20following\x20the\x20presenter','trim','setConfig','onRendered','live-share-single','_unitID','div','LIVESHARE_FETCH_OPERATIONS','params','_commandDisposable','offline','registerComponent','substring','end','_reporters','univer-size-4','_startLiveShareCoordinator','_configService','dispose','icon','_stopPresenting','disposeWithMe','propertyIsEnumerable','pipe','string','_presenter','1442961RpyKpl','303394ZzYSZM','getInitialStates','send','_handleTerminate','LIVESHARE_NEW_HOST','memberID','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','fill','default','current','init','url(#$1','assign','_handleNewChangeSets','defs','button','apply','concat','idle','registerInitialStateReporter','Stop\x20following','2laKTrs','currentColor','find','_mountLiveShare','xlink:href','attrs','Start','idSuffix','Present\x20this\x20document','getUnitId','event$','complete','980905gipnrO','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','svg','hasOwnProperty','_handleOnline','_config','call','values','children','defineProperty','has','mutations','pluginName','_univerInstanceService','sheet','following','_entities','Stop\x20presenting','UNIVER_SHEET','entries','className','startFollowing','_startPresenting','reverse','stopFollowing','tag','Start\x20following','colorChannel1','248896ALpych','_collabSession','_handleOperation','defIds','not-following','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_commandService','_liveShareService','PRESENTING','_startFollowing','24jGvmlG','none','getValue','symbol','createInstance','dispose$'];_0x3701=function(){return _0x187c5f;};return _0x3701();}function Le(){var _0x5d6af8=_0x52f618;return Math['random']()[_0x5d6af8(0x1eb)](0x24)[_0x5d6af8(0x1f8)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x52f618(0x22c),'attrs':{'fill':_0x52f618(0x19f),'viewBox':_0x52f618(0x1c6),'width':'1em','height':_0x52f618(0x1d7)},'children':[{'tag':_0x52f618(0x1df),'attrs':{'fill':'currentColor','d':_0x52f618(0x199)}},{'tag':_0x52f618(0x1df),'attrs':{'fill':_0x52f618(0x21e),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x52f618(0x1b7),'clipRule':_0x52f618(0x1b7)}}]},B=_0x19d58d(function(_0x29e6ec,_0x18a511){var _0x4a4450=_0x52f618;return _0x2c72b7(W,Object[_0x4a4450(0x214)]({},_0x29e6ec,{'id':_0x4a4450(0x1f0),'ref':_0x18a511,'icon':ye}));});B[_0x52f618(0x1d1)]='LiveShareSingle';var Re=Object[_0x52f618(0x1d3)],Z=(_0xcffd6,_0x1f26e2,_0x1c9544,_0x13e73f)=>{var _0x1e98ae=_0x52f618;for(var _0x3de79c=_0x13e73f>0x1?void 0x0:_0x13e73f?Re(_0x1f26e2,_0x1c9544):_0x1f26e2,_0x102be3=_0xcffd6[_0x1e98ae(0x1ab)]-0x1,_0x4711b1;_0x102be3>=0x0;_0x102be3--)(_0x4711b1=_0xcffd6[_0x102be3])&&(_0x3de79c=_0x4711b1(_0x3de79c)||_0x3de79c);return _0x3de79c;},f=(_0x11142b,_0x4477bf)=>(_0x3f409f,_0x170d81)=>_0x4477bf(_0x3f409f,_0x170d81,_0x11142b);let I=class extends _0x563b3c{constructor(_0x501add,_0x5936bb,_0x332a09){var _0x303f82=_0x52f618;super(),d(this,_0x303f82(0x188),new Map()),(this['_univerInstanceService']=_0x501add,this[_0x303f82(0x1e1)]=_0x5936bb,this['_collabSessionService']=_0x332a09,this[_0x303f82(0x1ca)]());}async['getLiveShareCoordinator'](_0x2b85ed){var _0xb8da01=_0x52f618;return this[_0xb8da01(0x188)]['has'](_0x2b85ed)||await this[_0xb8da01(0x1fc)](_0x2b85ed),this[_0xb8da01(0x188)][_0xb8da01(0x1a4)](_0x2b85ed);}[_0x52f618(0x1ca)](){var _0x119faa=_0x52f618;this[_0x119faa(0x185)]['getTypeOfUnitAdded$'](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](async _0x1e655d=>{var _0x585573=_0x119faa;const _0x31560b=_0x1e655d['getUnitId']();this[_0x585573(0x188)][_0x585573(0x182)](_0x31560b)||this[_0x585573(0x1fc)](_0x31560b);}),this[_0x119faa(0x185)][_0x119faa(0x1e7)](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](_0x185772=>{var _0x333e9c=_0x119faa;const _0x56d1ca=_0x185772[_0x333e9c(0x226)](),_0x383a4e=this['_entities'][_0x333e9c(0x1a4)](_0x56d1ca);_0x383a4e==null||_0x383a4e[_0x333e9c(0x1fe)]();});}async[_0x52f618(0x1fc)](_0x4336db){var _0xd4ee67=_0x52f618;const _0x4bd5b1=await this[_0xd4ee67(0x1cf)]['requireSession'](_0x4336db),_0x3819fd=this['_injector'][_0xd4ee67(0x1a2)](w,_0x4336db,_0x4bd5b1);return _0x3819fd[_0xd4ee67(0x212)](),this[_0xd4ee67(0x188)]['set'](_0x4336db,_0x3819fd),_0x3819fd;}};I=Z([f(0x0,_0x32b736),f(0x1,_0x5b76c2(_0x5d2218)),f(0x2,_0x5b76c2(_0x373ed2))],I);var h=(_0x809e5b=>(_0x809e5b['OFFLINE']='offline',_0x809e5b[_0x52f618(0x1c9)]=_0x52f618(0x21a),_0x809e5b['FOLLOWING']='following',_0x809e5b[_0x52f618(0x1a9)]=_0x52f618(0x198),_0x809e5b[_0x52f618(0x19c)]=_0x52f618(0x1b5),_0x809e5b))(h||{});const Pe=_0x52f618(0x1c2),Ae=0xc8;let w=class extends _0x563b3c{constructor(_0x3c4eff,_0x12799a,_0x3e242b,_0x4ac1d2,_0x38d0dc){var _0x50712d=_0x52f618;super(),d(this,_0x50712d(0x1d4),new _0x570d03(_0x50712d(0x21a))),d(this,'status$',this[_0x50712d(0x1d4)][_0x50712d(0x1b8)]()),d(this,_0x50712d(0x1ca),!0x1),d(this,_0x50712d(0x1f5),null),d(this,_0x50712d(0x205),null),(this['_unitID']=_0x3c4eff,this[_0x50712d(0x195)]=_0x12799a,this[_0x50712d(0x1fd)]=_0x3e242b,this[_0x50712d(0x19b)]=_0x4ac1d2,this[_0x50712d(0x19a)]=_0x38d0dc);}get['_status'](){var _0xdcfdf0=_0x52f618;return this['_status$'][_0xdcfdf0(0x1a0)]();}['dispose'](){var _0x2dbae3=_0x52f618,_0x2ef87b;(_0x2ef87b=this[_0x2dbae3(0x1f5)])==null||_0x2ef87b[_0x2dbae3(0x1fe)](),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x1b1)](_0x2dbae3(0x21a)),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x228)]();}[_0x52f618(0x212)](){var _0xeca2a4=_0x52f618;this[_0xeca2a4(0x1ca)]||(this[_0xeca2a4(0x1ca)]=!0x0,this['_collabSession']['sessionStatus$'][_0xeca2a4(0x203)](_0x57168c(this['dispose$']))[_0xeca2a4(0x1ac)](_0x41c872=>{var _0x49d3e8=_0xeca2a4;switch(_0x41c872){case _0x39c4da['OFFLINE']:this[_0x49d3e8(0x1e2)]();break;case _0x39c4da[_0x49d3e8(0x1e4)]:this['_handleOnline']();break;}}),this[_0xeca2a4(0x195)][_0xeca2a4(0x227)]['pipe'](_0x57168c(this[_0xeca2a4(0x1a3)]))[_0xeca2a4(0x1ac)](_0xa3e384=>{var _0x94cc9e=_0xeca2a4;const {eventID:_0x53d21a}=_0xa3e384;switch(_0x53d21a){case _0x2f804e[_0x94cc9e(0x20b)]:this['_handleNewHost'](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x1cc)]:this[_0x94cc9e(0x196)](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x22b)]:this[_0x94cc9e(0x20a)]();break;case _0x2f804e[_0x94cc9e(0x1d2)]:this[_0x94cc9e(0x215)](_0xa3e384);break;}}));}[_0x52f618(0x1ea)](){var _0x2343b8=_0x52f618;this[_0x2343b8(0x195)][_0x2343b8(0x209)]({'eventID':_0x2f804e[_0x2343b8(0x1b3)],'data':{'unitID':this[_0x2343b8(0x1f1)],'userID':this[_0x2343b8(0x195)]['getMemberID']()}},this[_0x2343b8(0x1f1)]);}[_0x52f618(0x1dc)](){var _0x547485=_0x52f618;this[_0x547485(0x1c5)]===_0x547485(0x1b5)&&(this[_0x547485(0x1d4)][_0x547485(0x1b1)](_0x547485(0x21a)),this['_collabSession'][_0x547485(0x209)]({'eventID':_0x2f804e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x547485(0x1f1)]}},this[_0x547485(0x1f1)]));}[_0x52f618(0x18d)](){var _0x23137e=_0x52f618;this[_0x23137e(0x1c5)]===_0x23137e(0x198)&&(this[_0x23137e(0x1d4)][_0x23137e(0x1b1)]('following'),this[_0x23137e(0x19d)]());}[_0x52f618(0x190)](){var _0x1091fc=_0x52f618;this[_0x1091fc(0x1c5)]==='following'&&this[_0x1091fc(0x1c0)]();}[_0x52f618(0x1a6)](_0x195d73){var _0x116a1e=_0x52f618;const {presenter:_0x36867d}=_0x195d73[_0x116a1e(0x1bc)],_0x5629b8=this[_0x116a1e(0x195)][_0x116a1e(0x1c8)]();this[_0x116a1e(0x205)]=_0x36867d,_0x36867d===_0x5629b8?(this[_0x116a1e(0x1c0)](),this[_0x116a1e(0x18e)]()):this[_0x116a1e(0x1c5)]!==_0x116a1e(0x198)&&(this[_0x116a1e(0x200)](),this['_startFollowing']());}[_0x52f618(0x1c3)](){var _0x573659=_0x52f618;const _0x251f90={'eventID':_0x2f804e[_0x573659(0x1f3)]};this[_0x573659(0x195)][_0x573659(0x209)](_0x251f90,this['_unitID']);}[_0x52f618(0x20a)](){var _0x1adaa8=_0x52f618;this[_0x1adaa8(0x205)]=null,this[_0x1adaa8(0x1c5)]!==_0x1adaa8(0x1b5)&&this['_beIdle']();}[_0x52f618(0x215)](_0x155204){var _0x1f767d=_0x52f618;if(this[_0x1f767d(0x1c5)]===_0x1f767d(0x187)&&this['_presenter']===_0x155204['data'][_0x1f767d(0x20c)]){const _0x5bf302=_0xd42f05(_0x155204[_0x1f767d(0x1bc)])[_0x1f767d(0x183)][_0x1f767d(0x18f)]()[_0x1f767d(0x21f)](_0x4a3177=>_0x4a3177['id']===_0x571bd5['id']);if(_0x5bf302){const _0x1fc4e0=_0x5bf302[_0x1f767d(0x1f4)][_0x1f767d(0x1d9)],_0xfe32a7=_0x5bf302['params'][_0x1f767d(0x186)]['id'];setTimeout(()=>{var _0x5aa3f0=_0x1f767d;this[_0x5aa3f0(0x19a)]['executeCommand'](_0x495e50['id'],{'unitId':_0x1fc4e0,'subUnitId':_0xfe32a7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1853df=_0x52f618;this['_status$'][_0x1853df(0x1b1)](_0x1853df(0x1b5));const _0x32fec1=new Map(),_0x887678=this[_0x1853df(0x1f5)]=new _0x3438d0();_0x887678[_0x1853df(0x1aa)](_0x2deabb(()=>{var _0x2a4246=_0x1853df;_0x32fec1[_0x2a4246(0x1c7)](_0xef52eb=>_0xef52eb['complete']()),_0x32fec1[_0x2a4246(0x1db)]();})),_0x887678[_0x1853df(0x1aa)](this[_0x1853df(0x19a)]['onCommandExecuted'](_0x364fb1=>{var _0x518921=_0x1853df,_0x2df387;if(_0x364fb1[_0x518921(0x20d)]!==_0x8ecae0[_0x518921(0x1d8)]||!this['_liveShareService']['shouldShareOperation'](_0x364fb1['id']))return;const {id:_0x499f91}=_0x364fb1;let _0x13833c;_0x32fec1['has'](_0x499f91)?_0x13833c=_0x32fec1[_0x518921(0x1a4)](_0x499f91):(_0x13833c=new _0x5cadb4(),_0x32fec1[_0x518921(0x1be)](_0x499f91,_0x13833c),_0x13833c[_0x518921(0x203)](_0x4e001a((_0x2df387=this[_0x518921(0x1fd)][_0x518921(0x1da)](Pe))!=null?_0x2df387:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2afce1=>{var _0xeb0325=_0x518921;this[_0xeb0325(0x195)][_0xeb0325(0x209)]({'eventID':_0x2f804e[_0xeb0325(0x1cc)],'data':{'unitID':this[_0xeb0325(0x1f1)],'operations':{[_0x2afce1['id']]:{'id':_0x2afce1['id'],'params':JSON[_0xeb0325(0x1cd)](_0x2afce1['params'])}}}},this[_0xeb0325(0x1f1)]);})),_0x13833c[_0x518921(0x1b1)](_0x364fb1);})),this[_0x1853df(0x19b)][_0x1853df(0x208)](this[_0x1853df(0x1f1)])[_0x1853df(0x1c7)](_0x53df0f=>this[_0x1853df(0x195)]['send']({'eventID':_0x2f804e[_0x1853df(0x1cc)],'data':{'unitID':this[_0x1853df(0x1f1)],'operations':{[_0x53df0f['id']]:{'id':_0x53df0f['id'],'params':JSON[_0x1853df(0x1cd)](_0x53df0f['params'])}}}},this[_0x1853df(0x1f1)]));}[_0x52f618(0x200)](){var _0x3e5f3a=_0x52f618,_0x32570f;this['_status$'][_0x3e5f3a(0x1b1)]('idle'),(_0x32570f=this[_0x3e5f3a(0x1f5)])==null||_0x32570f['dispose'](),this[_0x3e5f3a(0x1f5)]=null;}[_0x52f618(0x19d)](){var _0x5b2f61=_0x52f618,_0x133792;(_0x133792=this[_0x5b2f61(0x1f5)])==null||_0x133792[_0x5b2f61(0x1fe)](),this['_status$']['next'](_0x5b2f61(0x187));}[_0x52f618(0x1b4)](){var _0x3e420f=_0x52f618,_0x5af827;this[_0x3e420f(0x1d4)][_0x3e420f(0x1b1)]('idle'),(_0x5af827=this[_0x3e420f(0x1f5)])==null||_0x5af827[_0x3e420f(0x1fe)](),this[_0x3e420f(0x1f5)]=null;}[_0x52f618(0x1c0)](){var _0x427fde=_0x52f618,_0x238922;this[_0x427fde(0x1d4)][_0x427fde(0x1b1)](_0x427fde(0x198)),(_0x238922=this[_0x427fde(0x1f5)])==null||_0x238922[_0x427fde(0x1fe)]();}[_0x52f618(0x196)](_0x348d60){var _0x2fface=_0x52f618;if([_0x2fface(0x1b5),_0x2fface(0x198),_0x2fface(0x1f6)][_0x2fface(0x1d6)](this[_0x2fface(0x1c5)])||!_0x348d60[_0x2fface(0x1bc)][_0x2fface(0x1bd)]||_0x348d60['data']['presenter']===this['_collabSession'][_0x2fface(0x1c8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xff0dbd=_0x348d60[_0x2fface(0x1bc)]['operations'];Object[_0x2fface(0x231)](_0xff0dbd)['forEach'](_0x1d2857=>{var _0x5634d5=_0x2fface;this[_0x5634d5(0x19a)][_0x5634d5(0x1d5)](_0x1d2857['id'],_0x1d2857['params']?JSON['parse'](_0x1d2857['params']):null,{'fromCollab':!0x0});});}[_0x52f618(0x1e2)](){var _0x357282=_0x52f618,_0x469d19;this[_0x357282(0x1d4)][_0x357282(0x1b1)](_0x357282(0x1f6)),(_0x469d19=this[_0x357282(0x1f5)])==null||_0x469d19[_0x357282(0x1fe)]();}[_0x52f618(0x22e)](){var _0x7a8111=_0x52f618;this[_0x7a8111(0x1d4)][_0x7a8111(0x1b1)](_0x7a8111(0x21a)),this['_fetchOperations']();}};w=Z([f(0x2,_0x44d386),f(0x3,_0x5b76c2(L)),f(0x4,_0x3c47e4)],w);function Te(){var _0x2cd437=_0x52f618;const _0x25f2a1=_0x131bc5(I),_0x16c1fa=_0x131bc5(_0x32b736),_0x191a1d=_0x3077c8(()=>_0x16c1fa[_0x2cd437(0x1c4)](_0x174153[_0x2cd437(0x18a)]),void 0x0,!0x1,[]),[_0x36638b,_0x4f4991]=_0x201ef0(null),[_0x4eec30,_0x439708]=_0x201ef0(h[_0x2cd437(0x1c9)]),_0x13833f=_0x956383(null);return _0x5abcd3(()=>(_0x191a1d&&_0x25f2a1['getLiveShareCoordinator'](_0x191a1d[_0x2cd437(0x226)]())['then'](_0x58baeb=>{var _0x5ebf4f=_0x2cd437;_0x4f4991(_0x58baeb),_0x13833f[_0x5ebf4f(0x211)]=_0x58baeb[_0x5ebf4f(0x1dd)]['subscribe'](_0x27f5fb=>{_0x439708(_0x27f5fb);});}),()=>{var _0x18bd0a=_0x2cd437,_0x459a10;(_0x459a10=_0x13833f[_0x18bd0a(0x211)])==null||_0x459a10[_0x18bd0a(0x1cb)](),_0x13833f[_0x18bd0a(0x211)]=null;}),[_0x191a1d,_0x25f2a1]),_0x36638b?_0x40000b(_0x2f5451,{'align':_0x2cd437(0x1f9),'disabled':_0x4eec30===h[_0x2cd437(0x1b9)],'className':_0x2cd437(0x1ad),'overlay':_0x40000b($e,{'status':_0x4eec30,'coordinator':_0x36638b}),'children':_0x40000b(_0x2cd437(0x217),{'className':_0x42fd34('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x4eec30===h[_0x2cd437(0x1b9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4eec30!==h[_0x2cd437(0x1b9)]}),'type':_0x2cd437(0x217),'children':_0x40000b(B,{'className':_0x2cd437(0x1fb)})})}):null;}function $e(_0x42422e){var _0x385cf3=_0x52f618;const {status:_0x2af355,coordinator:_0x191f59}=_0x42422e;switch(_0x2af355){case h[_0x385cf3(0x1c9)]:return _0x40000b(Fe,{'coordinator':_0x191f59});case h['FOLLOWING']:return _0x40000b(He,{'coordinator':_0x191f59});case h['NOT_FOLLOWING']:return _0x40000b(je,{'coordinator':_0x191f59});case h[_0x385cf3(0x1b9)]:return _0x40000b(Ve,{});case h[_0x385cf3(0x19c)]:return _0x40000b(Ue,{'coordinator':_0x191f59});default:return null;}}function Fe(_0x588448){var _0x50b975=_0x52f618;const {coordinator:_0x47920c}=_0x588448;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x50b975(0x1f2),{'className':_0x50b975(0x20e),'children':_0x50b975(0x225)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x47920c[_0x50b975(0x1ea)](),'children':_0x50b975(0x223)})]});}function He(_0xc284b4){var _0x201cfb=_0x52f618;const {coordinator:_0x34b28f}=_0xc284b4;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x201cfb(0x1f2),{'className':_0x201cfb(0x20e),'children':_0x201cfb(0x1ec)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x34b28f[_0x201cfb(0x190)](),'children':_0x201cfb(0x21c)})]});}function je(_0x7130a7){var _0x47af74=_0x52f618;const {coordinator:_0x936c88}=_0x7130a7;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x47af74(0x1f2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x40000b(_0xe015b0,{'variant':_0x47af74(0x1e6),'onClick':()=>_0x936c88[_0x47af74(0x18d)](),'children':_0x47af74(0x192)})]});}function Ue(_0x4382e9){var _0x428739=_0x52f618;const {coordinator:_0x4d9875}=_0x4382e9;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x428739(0x1f2),{'className':_0x428739(0x20e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x40000b(_0xe015b0,{'variant':_0x428739(0x210),'onClick':()=>_0x4d9875[_0x428739(0x1dc)](),'children':_0x428739(0x189)})]});}function Ve(){var _0x2b7de5=_0x52f618;return _0x40000b(_0x4aa632,{'children':_0x2b7de5(0x1af)});}var Me=Object[_0x52f618(0x1d3)],ke=(_0xdc6e37,_0x19091d,_0x378a27,_0x4ddcaa)=>{var _0x197557=_0x52f618;for(var _0x3f28ce=_0x4ddcaa>0x1?void 0x0:_0x4ddcaa?Me(_0x19091d,_0x378a27):_0x19091d,_0x3db41f=_0xdc6e37[_0x197557(0x1ab)]-0x1,_0x5ebf42;_0x3db41f>=0x0;_0x3db41f--)(_0x5ebf42=_0xdc6e37[_0x3db41f])&&(_0x3f28ce=_0x5ebf42(_0x3f28ce)||_0x3f28ce);return _0x3f28ce;},$=(_0x465107,_0x2c75d0)=>(_0x22ec3f,_0x43cc29)=>_0x2c75d0(_0x22ec3f,_0x43cc29,_0x465107);let b=class extends _0x4d2b6f{constructor(_0x49f4e1,_0x51766d){var _0x167e68=_0x52f618;super(),this[_0x167e68(0x1e1)]=_0x49f4e1,this['_uiPartsService']=_0x51766d,this['_mountLiveShare']();}[_0x52f618(0x220)](){var _0x2f4c44=_0x52f618;this[_0x2f4c44(0x201)](this[_0x2f4c44(0x1b0)][_0x2f4c44(0x1f7)](_0x50ace2['HEADER_MENU'],()=>_0x4ee5c0(Te,this[_0x2f4c44(0x1e1)])));}};b=ke([$(0x0,_0x5b76c2(_0x5d2218)),$(0x1,_0x259a30)],b);var Ge=Object[_0x52f618(0x233)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x24304f,_0x12494d,_0x20c505)=>_0x12494d in _0x24304f?Ge(_0x24304f,_0x12494d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20c505}):_0x24304f[_0x12494d]=_0x20c505,Be=(_0x5db938,_0xc91b41,_0x5ef0f5,_0x33e17b)=>{for(var _0x50c8b8=_0x33e17b>0x1?void 0x0:_0x33e17b?We(_0xc91b41,_0x5ef0f5):_0xc91b41,_0x1824cd=_0x5db938['length']-0x1,_0x21ea9f;_0x1824cd>=0x0;_0x1824cd--)(_0x21ea9f=_0x5db938[_0x1824cd])&&(_0x50c8b8=_0x21ea9f(_0x50c8b8)||_0x50c8b8);return _0x50c8b8;},F=(_0x24ae69,_0x40c7f9)=>(_0x185378,_0x32e376)=>_0x40c7f9(_0x185378,_0x32e376,_0x24ae69),J=(_0x33f2c4,_0x33e91c,_0x46488c)=>Ye(_0x33f2c4,typeof _0x33e91c!=_0x52f618(0x1a1)?_0x33e91c+'':_0x33e91c,_0x46488c);const Ze=_0x52f618(0x22a);let O=class extends _0x26e656{constructor(_0x894bf4=T,_0x10e4ae,_0x2d519e){var _0xfc994e=_0x52f618;super(),this[_0xfc994e(0x22f)]=_0x894bf4,this['_injector']=_0x10e4ae,this[_0xfc994e(0x1fd)]=_0x2d519e;const {..._0x2a10b5}=_0x2cad00({},T,this[_0xfc994e(0x22f)]);this['_configService'][_0xfc994e(0x1ee)](Oe,_0x2a10b5);}[_0x52f618(0x1de)](){var _0x2d6abc=_0x52f618;_0x153635(this['_injector'],_0x2088e7([[L],[I],[m],[b]],this[_0x2d6abc(0x22f)][_0x2d6abc(0x1a5)])),_0xd0dab7(this['_injector'],[[m]]);}[_0x52f618(0x1ef)](){var _0x596771=_0x52f618;_0xd0dab7(this[_0x596771(0x1e1)],[[b]]);}};function _0x56cb(_0x4279c1,_0x9bf0aa){var _0x3701d8=_0x3701();return _0x56cb=function(_0x56cb7d,_0xcc5148){_0x56cb7d=_0x56cb7d-0x182;var _0x5ed63d=_0x3701d8[_0x56cb7d];return _0x5ed63d;},_0x56cb(_0x4279c1,_0x9bf0aa);}J(O,_0x52f618(0x20d),_0x174153['UNIVER_UNKNOWN']),J(O,_0x52f618(0x184),Ze),O=Be([_0x3ab6ef(_0x4f23e0),F(0x1,_0x5b76c2(_0x5d2218)),F(0x2,_0x44d386)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x280f(_0x2ffeef,_0x559e32){var _0x448d9f=_0x448d();return _0x280f=function(_0x280f47,_0x5d7a89){_0x280f47=_0x280f47-0xfa;var _0x2964d7=_0x448d9f[_0x280f47];return _0x2964d7;},_0x280f(_0x2ffeef,_0x559e32);}(function(_0x555b3e,_0x5545a2){var _0x1221b6=_0x280f,_0x239fcc=_0x555b3e();while(!![]){try{var _0xfb3c92=-parseInt(_0x1221b6(0x15e))/0x1*(-parseInt(_0x1221b6(0x15d))/0x2)+parseInt(_0x1221b6(0x149))/0x3*(parseInt(_0x1221b6(0x111))/0x4)+parseInt(_0x1221b6(0x189))/0x5*(-parseInt(_0x1221b6(0x1c0))/0x6)+-parseInt(_0x1221b6(0x10e))/0x7*(parseInt(_0x1221b6(0x137))/0x8)+-parseInt(_0x1221b6(0x12f))/0x9+-parseInt(_0x1221b6(0x1ae))/0xa+-parseInt(_0x1221b6(0x172))/0xb*(-parseInt(_0x1221b6(0x1e5))/0xc);if(_0xfb3c92===_0x5545a2)break;else _0x239fcc['push'](_0x239fcc['shift']());}catch(_0x3c3422){_0x239fcc['push'](_0x239fcc['shift']());}}}(_0x448d,0x8092e),function(_0x4f66ee,_0x2cf510){var _0x2fed19=_0x280f;typeof exports==_0x2fed19(0x1bb)&&typeof module<'u'?_0x2cf510(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require(_0x2fed19(0x1b3)),require(_0x2fed19(0x1d8)),require(_0x2fed19(0xfd)),require(_0x2fed19(0x184)),require(_0x2fed19(0x1cb)),require('react'),require('@univerjs-pro/collaboration'),require(_0x2fed19(0x146)),require(_0x2fed19(0x1af))):typeof define=='function'&&define[_0x2fed19(0x134)]?define([_0x2fed19(0x104),'@univerjs-pro/collaboration-client',_0x2fed19(0x1ac),_0x2fed19(0x1b3),_0x2fed19(0x1d8),_0x2fed19(0xfd),_0x2fed19(0x184),_0x2fed19(0x1cb),_0x2fed19(0x195),_0x2fed19(0x1a2),_0x2fed19(0x146),_0x2fed19(0x1af)],_0x2cf510):(_0x4f66ee=typeof globalThis<'u'?globalThis:_0x4f66ee||self,_0x2cf510(_0x4f66ee['UniverProLiveShare']={},_0x4f66ee[_0x2fed19(0x117)],_0x4f66ee[_0x2fed19(0x163)],_0x4f66ee[_0x2fed19(0x154)],_0x4f66ee[_0x2fed19(0x1df)],_0x4f66ee[_0x2fed19(0x1b1)],_0x4f66ee[_0x2fed19(0x1c7)],_0x4f66ee[_0x2fed19(0x16c)],_0x4f66ee[_0x2fed19(0x1c7)],_0x4f66ee['UniverProCollaboration'],_0x4f66ee[_0x2fed19(0x146)],_0x4f66ee[_0x2fed19(0x146)][_0x2fed19(0x161)]));}(this,function(_0x392826,_0x449898,_0x12b034,_0x4bec1e,_0x4ec94f,_0x53ef66,_0x416ad3,_0x4fa16c,_0x3881d9,_0x264fb4,_0x554bb3,_0x32029e){'use strict';var _0x58a348=_0x280f;var _0x8e81aa=Object[_0x58a348(0x160)],_0x23b3c3=(_0x156b86,_0x532dab,_0x3de639)=>_0x532dab in _0x156b86?_0x8e81aa(_0x156b86,_0x532dab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3de639}):_0x156b86[_0x532dab]=_0x3de639,_0x376aaa=(_0x2d6ba9,_0x4be2f6,_0x891284)=>_0x23b3c3(_0x2d6ba9,typeof _0x4be2f6!=_0x58a348(0x16e)?_0x4be2f6+'':_0x4be2f6,_0x891284);const _0x1e9bf6='live-share.config',_0xbeab9f={};class _0x2038c0 extends _0x12b034[_0x58a348(0x188)]{constructor(){super(...arguments),_0x376aaa(this,'_sharedOperations',new Set()),_0x376aaa(this,'_reporters',new Set());}['registerSharedOperation'](_0x4591ee){var _0x392e72=_0x58a348;return this[_0x392e72(0x181)][_0x392e72(0x14c)](_0x4591ee),_0x12b034[_0x392e72(0x1d5)](()=>this[_0x392e72(0x181)]['delete'](_0x4591ee));}[_0x58a348(0x150)](_0x250e1d){var _0x57e51e=_0x58a348;return this[_0x57e51e(0x102)][_0x57e51e(0x14c)](_0x250e1d),_0x12b034[_0x57e51e(0x1d5)](()=>this[_0x57e51e(0x102)]['delete'](_0x250e1d));}[_0x58a348(0x1d2)](_0x4c2ea7){var _0x18aba5=_0x58a348;return this['_sharedOperations'][_0x18aba5(0x15b)](_0x4c2ea7);}[_0x58a348(0x1a3)](_0x164080){var _0x511fbf=_0x58a348;return Array[_0x511fbf(0x155)](this[_0x511fbf(0x102)])[_0x511fbf(0x13e)](_0x4d18e8=>_0x4d18e8(_0x164080));}}var _0x515a6c=Object[_0x58a348(0x1d1)],_0x2464eb=(_0x490d30,_0xb95323,_0x9e2425,_0x3085d0)=>{for(var _0x5e3cab=_0x3085d0>0x1?void 0x0:_0x3085d0?_0x515a6c(_0xb95323,_0x9e2425):_0xb95323,_0x3494f3=_0x490d30['length']-0x1,_0x337341;_0x3494f3>=0x0;_0x3494f3--)(_0x337341=_0x490d30[_0x3494f3])&&(_0x5e3cab=_0x337341(_0x5e3cab)||_0x5e3cab);return _0x5e3cab;},_0xe1e34f=(_0x4d141a,_0x52809e)=>(_0x48167e,_0x508a5a)=>_0x52809e(_0x48167e,_0x508a5a,_0x4d141a);let _0x4d5074=class extends _0x12b034['Disposable']{constructor(_0x1cf8d2){var _0x426a9e=_0x58a348;super(),this[_0x426a9e(0x17d)]=_0x1cf8d2,this[_0x426a9e(0x168)]();}['_init'](){var _0x295234=_0x58a348;[_0x4ec94f[_0x295234(0x122)]['id'],_0x4ec94f[_0x295234(0x13b)]['id'],_0x4bec1e[_0x295234(0x1c9)]['id']][_0x295234(0x18b)](_0xe0788b=>{var _0x2ab65d=_0x295234;this['disposeWithMe'](this[_0x2ab65d(0x17d)]['registerSharedOperation'](_0xe0788b));});}};_0x4d5074=_0x2464eb([_0xe1e34f(0x0,_0x12b034['Inject'](_0x2038c0))],_0x4d5074);var _0x481846=function(){var _0x140855=_0x58a348;return _0x481846=Object[_0x140855(0x11c)]||function(_0x2fd9b){var _0x49f87d=_0x140855;for(var _0x2ff870,_0x497b81=0x1,_0x354d4c=arguments[_0x49f87d(0x1ab)];_0x497b81<_0x354d4c;_0x497b81++){_0x2ff870=arguments[_0x497b81];for(var _0x19c63a in _0x2ff870)Object['prototype'][_0x49f87d(0x176)][_0x49f87d(0x10b)](_0x2ff870,_0x19c63a)&&(_0x2fd9b[_0x19c63a]=_0x2ff870[_0x19c63a]);}return _0x2fd9b;},_0x481846[_0x140855(0x114)](this,arguments);},_0x15d33a=function(_0x363f8d,_0x1b39b6){var _0x67c4e4=_0x58a348,_0x175a67={};for(var _0x2da97c in _0x363f8d)Object['prototype'][_0x67c4e4(0x176)][_0x67c4e4(0x10b)](_0x363f8d,_0x2da97c)&&_0x1b39b6[_0x67c4e4(0x12b)](_0x2da97c)<0x0&&(_0x175a67[_0x2da97c]=_0x363f8d[_0x2da97c]);if(_0x363f8d!=null&&typeof Object['getOwnPropertySymbols']==_0x67c4e4(0x180)){for(var _0x4c1e73=0x0,_0x2da97c=Object['getOwnPropertySymbols'](_0x363f8d);_0x4c1e73<_0x2da97c[_0x67c4e4(0x1ab)];_0x4c1e73++)_0x1b39b6[_0x67c4e4(0x12b)](_0x2da97c[_0x4c1e73])<0x0&&Object[_0x67c4e4(0x167)][_0x67c4e4(0x1c2)][_0x67c4e4(0x10b)](_0x363f8d,_0x2da97c[_0x4c1e73])&&(_0x175a67[_0x2da97c[_0x4c1e73]]=_0x363f8d[_0x2da97c[_0x4c1e73]]);}return _0x175a67;},_0xa6bdc2=_0x3881d9[_0x58a348(0x1ad)](function(_0x506103,_0x50328f){var _0x57724c=_0x58a348,_0x756fd6=_0x506103[_0x57724c(0x1db)],_0x379ea9=_0x506103['id'],_0xa3175e=_0x506103[_0x57724c(0x13d)],_0x4b1ce3=_0x506103['extend'],_0x2336fe=_0x15d33a(_0x506103,[_0x57724c(0x1db),'id',_0x57724c(0x13d),_0x57724c(0x105)]),_0x1af0e9=_0x57724c(0x158)[_0x57724c(0x17a)](_0x379ea9,'\x20')[_0x57724c(0x17a)](_0xa3175e||'')[_0x57724c(0x1ca)](),_0x197bab=_0x3881d9['useRef']('_'[_0x57724c(0x17a)](_0x4a3878()));return _0x51a749(_0x756fd6,''[_0x57724c(0x17a)](_0x379ea9),{'defIds':_0x756fd6[_0x57724c(0x173)],'idSuffix':_0x197bab[_0x57724c(0x1a4)]},_0x481846({'ref':_0x50328f,'className':_0x1af0e9},_0x2336fe),_0x4b1ce3);});function _0x51a749(_0x2831e2,_0xea6fb6,_0x40b08b,_0x311eef,_0x4b2f7a){var _0x51b43e=_0x58a348;return _0x3881d9['createElement'](_0x2831e2[_0x51b43e(0x131)],_0x481846(_0x481846({'key':_0xea6fb6},_0x580afe(_0x2831e2,_0x40b08b,_0x4b2f7a)),_0x311eef),(_0xa37bb0(_0x2831e2,_0x40b08b)['children']||[])[_0x51b43e(0x13e)](function(_0x296742,_0x2e0c11){var _0x406f07=_0x51b43e;return _0x51a749(_0x296742,''[_0x406f07(0x17a)](_0xea6fb6,'-')[_0x406f07(0x17a)](_0x2831e2[_0x406f07(0x131)],'-')[_0x406f07(0x17a)](_0x2e0c11),_0x40b08b,void 0x0,_0x4b2f7a);}));}function _0x580afe(_0x3dc51e,_0x5ed2cc,_0x42c33f){var _0x2d4c01=_0x58a348,_0x4ddc65=_0x481846({},_0x3dc51e['attrs']);_0x42c33f!=null&&_0x42c33f[_0x2d4c01(0x11b)]&&_0x4ddc65[_0x2d4c01(0x142)]===_0x2d4c01(0x11b)&&(_0x4ddc65['fill']=_0x42c33f[_0x2d4c01(0x11b)]),_0x3dc51e[_0x2d4c01(0x131)]===_0x2d4c01(0x1b5)&&_0x4ddc65['id']&&(_0x4ddc65['id']=_0x4ddc65['id']+_0x5ed2cc['idSuffix']),Object[_0x2d4c01(0x19b)](_0x4ddc65)[_0x2d4c01(0x18b)](function(_0x5d51fe){var _0x24faf1=_0x2d4c01,_0x27ed5e=_0x5d51fe[0x0],_0x2922d5=_0x5d51fe[0x1];_0x27ed5e===_0x24faf1(0x1b5)&&typeof _0x2922d5=='string'&&(_0x4ddc65[_0x27ed5e]=_0x2922d5[_0x24faf1(0x16b)](/url\(#(.*)\)/,_0x24faf1(0x183)[_0x24faf1(0x17a)](_0x5ed2cc['idSuffix'],')')));});var _0x5c5f9e=_0x5ed2cc[_0x2d4c01(0x173)];return!_0x5c5f9e||_0x5c5f9e[_0x2d4c01(0x1ab)]===0x0||(_0x3dc51e['tag']===_0x2d4c01(0x194)&&_0x4ddc65[_0x2d4c01(0x185)]&&(_0x4ddc65[_0x2d4c01(0x185)]=_0x4ddc65[_0x2d4c01(0x185)]+_0x5ed2cc[_0x2d4c01(0x1ea)]),Object[_0x2d4c01(0x19b)](_0x4ddc65)[_0x2d4c01(0x18b)](function(_0x2a55e7){var _0x5e2aa1=_0x2d4c01,_0x273ff7=_0x2a55e7[0x0],_0x26ca9b=_0x2a55e7[0x1];typeof _0x26ca9b==_0x5e2aa1(0x147)&&(_0x4ddc65[_0x273ff7]=_0x26ca9b[_0x5e2aa1(0x16b)](/url\(#(.*)\)/,_0x5e2aa1(0x183)[_0x5e2aa1(0x17a)](_0x5ed2cc['idSuffix'],')')));})),_0x4ddc65;}function _0xa37bb0(_0x2e9a67,_0x41d2cc){var _0x4b6ced=_0x58a348,_0x3614fa,_0x4c9154=_0x41d2cc[_0x4b6ced(0x173)];return!_0x4c9154||_0x4c9154[_0x4b6ced(0x1ab)]===0x0?_0x2e9a67:_0x2e9a67[_0x4b6ced(0x131)]===_0x4b6ced(0x144)&&(!((_0x3614fa=_0x2e9a67[_0x4b6ced(0x1e2)])===null||_0x3614fa===void 0x0)&&_0x3614fa[_0x4b6ced(0x1ab)])?_0x481846(_0x481846({},_0x2e9a67),{'children':_0x2e9a67[_0x4b6ced(0x1e2)][_0x4b6ced(0x13e)](function(_0x17b2a4){var _0x257729=_0x4b6ced;return typeof _0x17b2a4['attrs']['id']==_0x257729(0x147)&&_0x4c9154&&_0x4c9154[_0x257729(0x12b)](_0x17b2a4['attrs']['id'])>-0x1?_0x481846(_0x481846({},_0x17b2a4),{'attrs':_0x481846(_0x481846({},_0x17b2a4[_0x257729(0x1b9)]),{'id':_0x17b2a4[_0x257729(0x1b9)]['id']+_0x41d2cc[_0x257729(0x1ea)]})}):_0x17b2a4;})}):_0x2e9a67;}function _0x4a3878(){var _0x9ec41a=_0x58a348;return Math[_0x9ec41a(0x1de)]()[_0x9ec41a(0x1d0)](0x24)['substring'](0x2,0x8);}_0xa6bdc2['displayName']='UniverIcon';var _0x16e2d2={'tag':'svg','attrs':{'fill':_0x58a348(0x153),'viewBox':_0x58a348(0x148),'width':'1em','height':'1em'},'children':[{'tag':_0x58a348(0x1be),'attrs':{'fill':_0x58a348(0x14e),'d':_0x58a348(0x1a1)}},{'tag':_0x58a348(0x1be),'attrs':{'fill':_0x58a348(0x14e),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x58a348(0x175),'clipRule':_0x58a348(0x175)}}]},_0x32af58=_0x3881d9[_0x58a348(0x1ad)](function(_0x387277,_0x35b4d0){var _0xe5b452=_0x58a348;return _0x3881d9[_0xe5b452(0x19e)](_0xa6bdc2,Object[_0xe5b452(0x11c)]({},_0x387277,{'id':_0xe5b452(0x1e3),'ref':_0x35b4d0,'icon':_0x16e2d2}));});_0x32af58['displayName']='LiveShareSingle';var _0x27a64a=Object['getOwnPropertyDescriptor'],_0x31bec4=(_0x477cad,_0xade56e,_0x3626c4,_0x3d0b23)=>{var _0x3ca8d2=_0x58a348;for(var _0x18e446=_0x3d0b23>0x1?void 0x0:_0x3d0b23?_0x27a64a(_0xade56e,_0x3626c4):_0xade56e,_0x39c9de=_0x477cad[_0x3ca8d2(0x1ab)]-0x1,_0x4ba2ac;_0x39c9de>=0x0;_0x39c9de--)(_0x4ba2ac=_0x477cad[_0x39c9de])&&(_0x18e446=_0x4ba2ac(_0x18e446)||_0x18e446);return _0x18e446;},_0x26664d=(_0x1289c0,_0xdb9d9d)=>(_0x22b8e1,_0x2a5323)=>_0xdb9d9d(_0x22b8e1,_0x2a5323,_0x1289c0);_0x392826[_0x58a348(0x18f)]=class extends _0x12b034['RxDisposable']{constructor(_0x49c0e2,_0x3a3c95,_0x43481e){var _0xb20670=_0x58a348;super(),_0x376aaa(this,'_entities',new Map()),(this[_0xb20670(0x12a)]=_0x49c0e2,this[_0xb20670(0x177)]=_0x3a3c95,this[_0xb20670(0x130)]=_0x43481e,this[_0xb20670(0x168)]());}async[_0x58a348(0x1cc)](_0x460993){var _0x3652ef=_0x58a348;return this['_entities'][_0x3652ef(0x15b)](_0x460993)||await this[_0x3652ef(0x1c3)](_0x460993),this[_0x3652ef(0x197)]['get'](_0x460993);}[_0x58a348(0x168)](){var _0x3598be=_0x58a348;this['_univerInstanceService'][_0x3598be(0x13c)](_0x12b034['UniverInstanceType'][_0x3598be(0x151)])[_0x3598be(0x110)](_0x32029e[_0x3598be(0x106)](this[_0x3598be(0x112)]))[_0x3598be(0x1cf)](async _0x4024a3=>{var _0x1aab31=_0x3598be;const _0x5a1e8c=_0x4024a3['getUnitId']();this['_entities']['has'](_0x5a1e8c)||this[_0x1aab31(0x1c3)](_0x5a1e8c);}),this['_univerInstanceService'][_0x3598be(0x132)](_0x12b034[_0x3598be(0xfa)][_0x3598be(0x151)])[_0x3598be(0x110)](_0x32029e[_0x3598be(0x106)](this[_0x3598be(0x112)]))[_0x3598be(0x1cf)](_0x1f9cd1=>{var _0x47fdf6=_0x3598be;const _0x43e15d=_0x1f9cd1['getUnitId'](),_0xe2f2f0=this[_0x47fdf6(0x197)][_0x47fdf6(0x107)](_0x43e15d);_0xe2f2f0==null||_0xe2f2f0[_0x47fdf6(0xfc)]();});}async['_startLiveShareCoordinator'](_0x17409a){var _0x901cc2=_0x58a348;const _0xfbde5f=await this['_collabSessionService'][_0x901cc2(0x10f)](_0x17409a),_0x12ecc8=this[_0x901cc2(0x177)][_0x901cc2(0x13a)](_0x392826[_0x901cc2(0x169)],_0x17409a,_0xfbde5f);return _0x12ecc8[_0x901cc2(0x145)](),this[_0x901cc2(0x197)]['set'](_0x17409a,_0x12ecc8),_0x12ecc8;}},_0x392826[_0x58a348(0x18f)]=_0x31bec4([_0x26664d(0x0,_0x12b034['IUniverInstanceService']),_0x26664d(0x1,_0x12b034[_0x58a348(0x129)](_0x12b034[_0x58a348(0x1b7)])),_0x26664d(0x2,_0x12b034[_0x58a348(0x129)](_0x449898[_0x58a348(0x19a)]))],_0x392826[_0x58a348(0x18f)]);var _0x262d7f=(_0x4afe0b=>(_0x4afe0b[_0x58a348(0x135)]=_0x58a348(0xfe),_0x4afe0b[_0x58a348(0x10a)]=_0x58a348(0x14f),_0x4afe0b[_0x58a348(0x1b6)]=_0x58a348(0x178),_0x4afe0b[_0x58a348(0x128)]=_0x58a348(0x11a),_0x4afe0b[_0x58a348(0x109)]=_0x58a348(0x1e7),_0x4afe0b))(_0x262d7f||{});const _0x54a23d=_0x58a348(0x162),_0x527e7d=0xc8;_0x392826['LiveShareCoordinator']=class extends _0x12b034['RxDisposable']{constructor(_0x4a4d5e,_0x24140a,_0x17fffd,_0x4e7a21,_0x36c0ce){var _0x208763=_0x58a348;super(),_0x376aaa(this,'_status$',new _0x554bb3[(_0x208763(0x18d))](_0x208763(0x14f))),_0x376aaa(this,'status$',this[_0x208763(0x141)][_0x208763(0xfb)]()),_0x376aaa(this,_0x208763(0x168),!0x1),_0x376aaa(this,_0x208763(0x1e9),null),_0x376aaa(this,_0x208763(0x187),null),(this[_0x208763(0x16f)]=_0x4a4d5e,this[_0x208763(0x10d)]=_0x24140a,this[_0x208763(0x1aa)]=_0x17fffd,this[_0x208763(0x17d)]=_0x4e7a21,this['_commandService']=_0x36c0ce);}get[_0x58a348(0x11f)](){var _0x40d2e3=_0x58a348;return this[_0x40d2e3(0x141)][_0x40d2e3(0x1dd)]();}[_0x58a348(0xfc)](){var _0x1beb4c=_0x58a348,_0x3b1876;(_0x3b1876=this[_0x1beb4c(0x1e9)])==null||_0x3b1876[_0x1beb4c(0xfc)](),this['_status$']['next'](_0x1beb4c(0x14f)),this['_status$'][_0x1beb4c(0x186)]();}[_0x58a348(0x145)](){var _0x433345=_0x58a348;this['_init']||(this[_0x433345(0x168)]=!0x0,this[_0x433345(0x10d)]['sessionStatus$'][_0x433345(0x110)](_0x32029e[_0x433345(0x106)](this[_0x433345(0x112)]))[_0x433345(0x1cf)](_0x3ed84f=>{var _0x4260c2=_0x433345;switch(_0x3ed84f){case _0x449898[_0x4260c2(0x126)]['OFFLINE']:this[_0x4260c2(0x152)]();break;case _0x449898[_0x4260c2(0x126)][_0x4260c2(0x1e8)]:this[_0x4260c2(0x1d7)]();break;}}),this[_0x433345(0x10d)][_0x433345(0x14b)][_0x433345(0x110)](_0x32029e[_0x433345(0x106)](this[_0x433345(0x112)]))[_0x433345(0x1cf)](_0x197492=>{var _0x1c313d=_0x433345;const {eventID:_0x372119}=_0x197492;switch(_0x372119){case _0x264fb4[_0x1c313d(0x18a)][_0x1c313d(0x1d3)]:this[_0x1c313d(0x1b8)](_0x197492);break;case _0x264fb4[_0x1c313d(0x18a)][_0x1c313d(0x1d4)]:this['_handleOperation'](_0x197492);break;case _0x264fb4['CollaborationEvent'][_0x1c313d(0x1e6)]:this[_0x1c313d(0x170)]();break;case _0x264fb4[_0x1c313d(0x18a)][_0x1c313d(0x17b)]:this['_handleNewChangeSets'](_0x197492);break;}}));}[_0x58a348(0xff)](){var _0xcce3b2=_0x58a348;this[_0xcce3b2(0x10d)][_0xcce3b2(0x138)]({'eventID':_0x264fb4[_0xcce3b2(0x18a)][_0xcce3b2(0x1c8)],'data':{'unitID':this[_0xcce3b2(0x16f)],'userID':this[_0xcce3b2(0x10d)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){var _0x23f20e=_0x58a348;this['_status']===_0x23f20e(0x1e7)&&(this[_0x23f20e(0x141)]['next'](_0x23f20e(0x14f)),this[_0x23f20e(0x10d)][_0x23f20e(0x138)]({'eventID':_0x264fb4[_0x23f20e(0x18a)][_0x23f20e(0x1e6)],'data':{'unitID':this[_0x23f20e(0x16f)]}},this[_0x23f20e(0x16f)]));}[_0x58a348(0x123)](){var _0x297511=_0x58a348;this[_0x297511(0x11f)]===_0x297511(0x11a)&&(this[_0x297511(0x141)][_0x297511(0x1a0)](_0x297511(0x178)),this['_startFollowing']());}[_0x58a348(0x10c)](){var _0x428a18=_0x58a348;this[_0x428a18(0x11f)]===_0x428a18(0x178)&&this[_0x428a18(0x179)]();}['_handleNewHost'](_0x45b8e4){var _0x59b65e=_0x58a348;const {presenter:_0xf8ff59}=_0x45b8e4[_0x59b65e(0x1b0)],_0x246db1=this[_0x59b65e(0x10d)][_0x59b65e(0x191)]();this[_0x59b65e(0x187)]=_0xf8ff59,_0xf8ff59===_0x246db1?(this[_0x59b65e(0x179)](),this[_0x59b65e(0x14d)]()):this[_0x59b65e(0x11f)]!==_0x59b65e(0x11a)&&(this['_stopPresenting'](),this[_0x59b65e(0x1cd)]());}['_fetchOperations'](){var _0x4cad2d=_0x58a348;const _0x23743a={'eventID':_0x264fb4[_0x4cad2d(0x18a)][_0x4cad2d(0x1bf)]};this['_collabSession'][_0x4cad2d(0x138)](_0x23743a,this['_unitID']);}[_0x58a348(0x170)](){var _0x2fc9a9=_0x58a348;this[_0x2fc9a9(0x187)]=null,this[_0x2fc9a9(0x11f)]!=='presenting'&&this[_0x2fc9a9(0x1dc)]();}[_0x58a348(0x156)](_0x54f73d){var _0x1276e5=_0x58a348;if(this[_0x1276e5(0x11f)]===_0x1276e5(0x178)&&this['_presenter']===_0x54f73d['data'][_0x1276e5(0x133)]){const _0x4c923f=_0x264fb4[_0x1276e5(0x19f)](_0x54f73d['data'])['mutations'][_0x1276e5(0x103)]()['find'](_0x4a2f25=>_0x4a2f25['id']===_0x4bec1e[_0x1276e5(0x13f)]['id']);if(_0x4c923f){const _0x478e09=_0x4c923f['params'][_0x1276e5(0x11d)],_0x5aa364=_0x4c923f[_0x1276e5(0x193)][_0x1276e5(0x1d6)]['id'];setTimeout(()=>{var _0x4ad8e4=_0x1276e5;this[_0x4ad8e4(0x15f)]['executeCommand'](_0x4bec1e[_0x4ad8e4(0x1c9)]['id'],{'unitId':_0x478e09,'subUnitId':_0x5aa364},{'fromCollab':!0x0});});}}}[_0x58a348(0x14d)](){var _0x3c663c=_0x58a348;this[_0x3c663c(0x141)][_0x3c663c(0x1a0)](_0x3c663c(0x1e7));const _0x43dd36=new Map(),_0x160415=this[_0x3c663c(0x1e9)]=new _0x12b034[(_0x3c663c(0x1a7))]();_0x160415['add'](_0x12b034[_0x3c663c(0x1d5)](()=>{var _0x2e529c=_0x3c663c;_0x43dd36['forEach'](_0x268428=>_0x268428['complete']()),_0x43dd36[_0x2e529c(0x1bd)]();})),_0x160415['add'](this[_0x3c663c(0x15f)][_0x3c663c(0x1a9)](_0x4c5b14=>{var _0xc6d9e2=_0x3c663c,_0x2920da;if(_0x4c5b14[_0xc6d9e2(0x1a6)]!==_0x12b034[_0xc6d9e2(0x143)]['OPERATION']||!this['_liveShareService'][_0xc6d9e2(0x1d2)](_0x4c5b14['id']))return;const {id:_0x3041c1}=_0x4c5b14;let _0x4aabba;_0x43dd36[_0xc6d9e2(0x15b)](_0x3041c1)?_0x4aabba=_0x43dd36[_0xc6d9e2(0x107)](_0x3041c1):(_0x4aabba=new _0x554bb3[(_0xc6d9e2(0x1d9))](),_0x43dd36[_0xc6d9e2(0x1e4)](_0x3041c1,_0x4aabba),_0x4aabba[_0xc6d9e2(0x110)](_0x32029e['throttleTime']((_0x2920da=this['_configService'][_0xc6d9e2(0x17f)](_0x54a23d))!=null?_0x2920da:_0x527e7d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xc6d9e2(0x1cf)](_0x5d38ff=>{var _0x5c5dbd=_0xc6d9e2;this[_0x5c5dbd(0x10d)][_0x5c5dbd(0x138)]({'eventID':_0x264fb4[_0x5c5dbd(0x18a)][_0x5c5dbd(0x1d4)],'data':{'unitID':this['_unitID'],'operations':{[_0x5d38ff['id']]:{'id':_0x5d38ff['id'],'params':JSON[_0x5c5dbd(0x18e)](_0x5d38ff[_0x5c5dbd(0x193)])}}}},this[_0x5c5dbd(0x16f)]);})),_0x4aabba[_0xc6d9e2(0x1a0)](_0x4c5b14);})),this['_liveShareService'][_0x3c663c(0x1a3)](this['_unitID'])[_0x3c663c(0x18b)](_0x20b778=>this[_0x3c663c(0x10d)][_0x3c663c(0x138)]({'eventID':_0x264fb4[_0x3c663c(0x18a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3c663c(0x16f)],'operations':{[_0x20b778['id']]:{'id':_0x20b778['id'],'params':JSON[_0x3c663c(0x18e)](_0x20b778[_0x3c663c(0x193)])}}}},this[_0x3c663c(0x16f)]));}[_0x58a348(0x100)](){var _0x5c4607=_0x58a348,_0x216cf3;this[_0x5c4607(0x141)][_0x5c4607(0x1a0)]('idle'),(_0x216cf3=this[_0x5c4607(0x1e9)])==null||_0x216cf3['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x2867c6=_0x58a348,_0x42f527;(_0x42f527=this[_0x2867c6(0x1e9)])==null||_0x42f527[_0x2867c6(0xfc)](),this[_0x2867c6(0x141)][_0x2867c6(0x1a0)](_0x2867c6(0x178));}[_0x58a348(0x1dc)](){var _0x10b4d9=_0x58a348,_0x2a3f4f;this[_0x10b4d9(0x141)]['next']('idle'),(_0x2a3f4f=this[_0x10b4d9(0x1e9)])==null||_0x2a3f4f[_0x10b4d9(0xfc)](),this[_0x10b4d9(0x1e9)]=null;}[_0x58a348(0x179)](){var _0x4bb9fb=_0x58a348,_0xfcd9ec;this[_0x4bb9fb(0x141)]['next']('not-following'),(_0xfcd9ec=this['_commandDisposable'])==null||_0xfcd9ec[_0x4bb9fb(0xfc)]();}['_handleOperation'](_0x30d68b){var _0xc7f2d=_0x58a348;if(['presenting',_0xc7f2d(0x11a),'offline'][_0xc7f2d(0x1eb)](this[_0xc7f2d(0x11f)])||!_0x30d68b[_0xc7f2d(0x1b0)][_0xc7f2d(0x12c)]||_0x30d68b[_0xc7f2d(0x1b0)][_0xc7f2d(0x12c)]===this[_0xc7f2d(0x10d)][_0xc7f2d(0x191)]())return;this[_0xc7f2d(0x11f)]===_0xc7f2d(0x14f)&&this[_0xc7f2d(0x1cd)]();const _0x2e5f90=_0x30d68b[_0xc7f2d(0x1b0)]['operations'];Object[_0xc7f2d(0x1b4)](_0x2e5f90)[_0xc7f2d(0x18b)](_0x465fde=>{var _0x3bb4df=_0xc7f2d;this[_0x3bb4df(0x15f)]['executeCommand'](_0x465fde['id'],_0x465fde[_0x3bb4df(0x193)]?JSON[_0x3bb4df(0x16d)](_0x465fde[_0x3bb4df(0x193)]):null,{'fromCollab':!0x0});});}[_0x58a348(0x152)](){var _0x49dbf2=_0x58a348,_0x6fcf6f;this[_0x49dbf2(0x141)][_0x49dbf2(0x1a0)](_0x49dbf2(0xfe)),(_0x6fcf6f=this[_0x49dbf2(0x1e9)])==null||_0x6fcf6f[_0x49dbf2(0xfc)]();}[_0x58a348(0x1d7)](){var _0x60b7be=_0x58a348;this[_0x60b7be(0x141)][_0x60b7be(0x1a0)](_0x60b7be(0x14f)),this[_0x60b7be(0x127)]();}},_0x392826[_0x58a348(0x169)]=_0x31bec4([_0x26664d(0x2,_0x12b034[_0x58a348(0x19c)]),_0x26664d(0x3,_0x12b034[_0x58a348(0x129)](_0x2038c0)),_0x26664d(0x4,_0x12b034[_0x58a348(0x198)])],_0x392826[_0x58a348(0x169)]);function _0x5bbd24(){var _0x22f04b=_0x58a348;const _0x43ca19=_0x53ef66[_0x22f04b(0x171)](_0x392826[_0x22f04b(0x18f)]),_0x40c2e1=_0x53ef66[_0x22f04b(0x171)](_0x12b034[_0x22f04b(0x139)]),_0x2e3e46=_0x53ef66[_0x22f04b(0x1e1)](()=>_0x40c2e1[_0x22f04b(0x159)](_0x12b034[_0x22f04b(0xfa)][_0x22f04b(0x151)]),void 0x0,!0x1,[]),[_0x5cc7ee,_0x4da95c]=_0x3881d9[_0x22f04b(0x199)](null),[_0x208d98,_0x5ca9f8]=_0x3881d9[_0x22f04b(0x199)](_0x262d7f[_0x22f04b(0x10a)]),_0x5b0886=_0x3881d9[_0x22f04b(0x1c4)](null);return _0x3881d9[_0x22f04b(0x118)](()=>(_0x2e3e46&&_0x43ca19['getLiveShareCoordinator'](_0x2e3e46[_0x22f04b(0x1bc)]())['then'](_0x1cae83=>{var _0x2ffc5a=_0x22f04b;_0x4da95c(_0x1cae83),_0x5b0886[_0x2ffc5a(0x1a4)]=_0x1cae83[_0x2ffc5a(0x116)][_0x2ffc5a(0x1cf)](_0x2984c5=>{_0x5ca9f8(_0x2984c5);});}),()=>{var _0x11587c=_0x22f04b,_0x47388c;(_0x47388c=_0x5b0886[_0x11587c(0x1a4)])==null||_0x47388c[_0x11587c(0x101)](),_0x5b0886[_0x11587c(0x1a4)]=null;}),[_0x2e3e46,_0x43ca19]),_0x5cc7ee?_0x416ad3[_0x22f04b(0x19d)](_0x4fa16c[_0x22f04b(0x1c6)],{'align':_0x22f04b(0x196),'disabled':_0x208d98===_0x262d7f[_0x22f04b(0x135)],'className':_0x22f04b(0x12d),'overlay':_0x416ad3['jsx'](_0x3314f7,{'status':_0x208d98,'coordinator':_0x5cc7ee}),'children':_0x416ad3[_0x22f04b(0x19d)]('button',{'className':_0x4fa16c[_0x22f04b(0x182)](_0x22f04b(0x136),{'univer-cursor-not-allowed':_0x208d98===_0x262d7f[_0x22f04b(0x135)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x208d98!==_0x262d7f[_0x22f04b(0x135)]}),'type':'button','children':_0x416ad3[_0x22f04b(0x19d)](_0x32af58,{'className':_0x22f04b(0x11e)})})}):null;}function _0x3314f7(_0x35e76e){var _0x35883e=_0x58a348;const {status:_0x5b7c46,coordinator:_0x433a97}=_0x35e76e;switch(_0x5b7c46){case _0x262d7f[_0x35883e(0x10a)]:return _0x416ad3[_0x35883e(0x19d)](_0x1cf8b2,{'coordinator':_0x433a97});case _0x262d7f[_0x35883e(0x1b6)]:return _0x416ad3[_0x35883e(0x19d)](_0x3c8b44,{'coordinator':_0x433a97});case _0x262d7f[_0x35883e(0x128)]:return _0x416ad3[_0x35883e(0x19d)](_0x209a42,{'coordinator':_0x433a97});case _0x262d7f[_0x35883e(0x135)]:return _0x416ad3[_0x35883e(0x19d)](_0x4c58d3,{});case _0x262d7f[_0x35883e(0x109)]:return _0x416ad3[_0x35883e(0x19d)](_0x43cce9,{'coordinator':_0x433a97});default:return null;}}function _0x1cf8b2(_0xfc4ee){var _0xd45bbc=_0x58a348;const {coordinator:_0x3df69c}=_0xfc4ee;return _0x416ad3[_0xd45bbc(0x1e0)](_0x416ad3[_0xd45bbc(0x113)],{'children':[_0x416ad3[_0xd45bbc(0x19d)](_0xd45bbc(0x164),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xd45bbc(0x1a5)}),_0x416ad3[_0xd45bbc(0x19d)](_0x4fa16c['Button'],{'onClick':()=>_0x3df69c[_0xd45bbc(0xff)](),'children':_0xd45bbc(0x1a8)})]});}function _0x3c8b44(_0xe60127){var _0x1810e0=_0x58a348;const {coordinator:_0x4ed00e}=_0xe60127;return _0x416ad3['jsxs'](_0x416ad3['Fragment'],{'children':[_0x416ad3[_0x1810e0(0x19d)](_0x1810e0(0x164),{'className':_0x1810e0(0x108),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x416ad3[_0x1810e0(0x19d)](_0x4fa16c['Button'],{'onClick':()=>_0x4ed00e[_0x1810e0(0x10c)](),'children':'Stop\x20following'})]});}function _0x209a42(_0x9f0b97){var _0x3ad89b=_0x58a348;const {coordinator:_0x480bec}=_0x9f0b97;return _0x416ad3[_0x3ad89b(0x1e0)](_0x416ad3['Fragment'],{'children':[_0x416ad3[_0x3ad89b(0x19d)](_0x3ad89b(0x164),{'className':_0x3ad89b(0x108),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x416ad3[_0x3ad89b(0x19d)](_0x4fa16c['Button'],{'variant':_0x3ad89b(0x120),'onClick':()=>_0x480bec['startFollowing'](),'children':_0x3ad89b(0x115)})]});}function _0x43cce9(_0x41b552){var _0x11d88b=_0x58a348;const {coordinator:_0x5dc182}=_0x41b552;return _0x416ad3[_0x11d88b(0x1e0)](_0x416ad3[_0x11d88b(0x113)],{'children':[_0x416ad3['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x11d88b(0x17c)}),_0x416ad3[_0x11d88b(0x19d)](_0x4fa16c[_0x11d88b(0x12e)],{'variant':_0x11d88b(0x140),'onClick':()=>_0x5dc182[_0x11d88b(0x15c)](),'children':_0x11d88b(0x1da)})]});}function _0x4c58d3(){var _0xa00d3d=_0x58a348;return _0x416ad3[_0xa00d3d(0x19d)](_0x416ad3['Fragment'],{'children':_0xa00d3d(0x166)});}var _0x40e3d2=Object[_0x58a348(0x1d1)],_0x40fb39=(_0x19f30c,_0x4de4fc,_0x16e655,_0x1c9554)=>{var _0x33bd9a=_0x58a348;for(var _0x15b47c=_0x1c9554>0x1?void 0x0:_0x1c9554?_0x40e3d2(_0x4de4fc,_0x16e655):_0x4de4fc,_0x38eef6=_0x19f30c[_0x33bd9a(0x1ab)]-0x1,_0x1fb857;_0x38eef6>=0x0;_0x38eef6--)(_0x1fb857=_0x19f30c[_0x38eef6])&&(_0x15b47c=_0x1fb857(_0x15b47c)||_0x15b47c);return _0x15b47c;},_0x205f80=(_0x4ae1ca,_0x6e8d9e)=>(_0x581f70,_0x1d68a4)=>_0x6e8d9e(_0x581f70,_0x1d68a4,_0x4ae1ca);_0x392826['DesktopLiveShareController']=class extends _0x12b034[_0x58a348(0x188)]{constructor(_0x3e1ae1,_0x48bb07){var _0xa6c4fa=_0x58a348;super(),this[_0xa6c4fa(0x177)]=_0x3e1ae1,this[_0xa6c4fa(0x15a)]=_0x48bb07,this[_0xa6c4fa(0x14a)]();}[_0x58a348(0x14a)](){var _0x59a6c1=_0x58a348;this[_0x59a6c1(0x1ce)](this[_0x59a6c1(0x15a)][_0x59a6c1(0x17e)](_0x53ef66['BuiltInUIPart'][_0x59a6c1(0x157)],()=>_0x53ef66[_0x59a6c1(0x190)](_0x5bbd24,this[_0x59a6c1(0x177)])));}},_0x392826['DesktopLiveShareController']=_0x40fb39([_0x205f80(0x0,_0x12b034[_0x58a348(0x129)](_0x12b034['Injector'])),_0x205f80(0x1,_0x53ef66['IUIPartsService'])],_0x392826[_0x58a348(0x119)]);var _0x4c5a23=Object[_0x58a348(0x160)],_0x4b51be=Object[_0x58a348(0x1d1)],_0x3bfe92=(_0x440a66,_0x3b8c1c,_0x18c7f7)=>_0x3b8c1c in _0x440a66?_0x4c5a23(_0x440a66,_0x3b8c1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c7f7}):_0x440a66[_0x3b8c1c]=_0x18c7f7,_0x3134be=(_0x2d1f6d,_0x5f1448,_0x2706db,_0x2c0af0)=>{var _0xba4419=_0x58a348;for(var _0xcd5f51=_0x2c0af0>0x1?void 0x0:_0x2c0af0?_0x4b51be(_0x5f1448,_0x2706db):_0x5f1448,_0xf1dd7c=_0x2d1f6d[_0xba4419(0x1ab)]-0x1,_0x3f5d45;_0xf1dd7c>=0x0;_0xf1dd7c--)(_0x3f5d45=_0x2d1f6d[_0xf1dd7c])&&(_0xcd5f51=_0x3f5d45(_0xcd5f51)||_0xcd5f51);return _0xcd5f51;},_0x592761=(_0x445a08,_0x2bc387)=>(_0x57fa97,_0x340958)=>_0x2bc387(_0x57fa97,_0x340958,_0x445a08),_0x198b4b=(_0x3b4fa3,_0x2a83ea,_0x37460e)=>_0x3bfe92(_0x3b4fa3,typeof _0x2a83ea!=_0x58a348(0x16e)?_0x2a83ea+'':_0x2a83ea,_0x37460e);const _0x226fe5='UNIVER_LIVE_SHARE_PLUGIN';_0x392826[_0x58a348(0x1b2)]=class extends _0x12b034['Plugin']{constructor(_0xaccb85=_0xbeab9f,_0x15308c,_0x1c19ad){var _0x1d9918=_0x58a348;super(),this['_config']=_0xaccb85,this['_injector']=_0x15308c,this['_configService']=_0x1c19ad;const {..._0x2edaa2}=_0x12b034[_0x1d9918(0x1c1)]({},_0xbeab9f,this[_0x1d9918(0x174)]);this['_configService'][_0x1d9918(0x121)](_0x1e9bf6,_0x2edaa2);}[_0x58a348(0x165)](){var _0x3e5ebf=_0x58a348;_0x12b034['registerDependencies'](this[_0x3e5ebf(0x177)],_0x12b034['mergeOverrideWithDependencies']([[_0x2038c0],[_0x392826['LiveShareController']],[_0x4d5074],[_0x392826[_0x3e5ebf(0x119)]]],this[_0x3e5ebf(0x174)]['override'])),_0x12b034[_0x3e5ebf(0x124)](this['_injector'],[[_0x4d5074]]);}['onRendered'](){var _0x438fb0=_0x58a348;_0x12b034[_0x438fb0(0x124)](this[_0x438fb0(0x177)],[[_0x392826[_0x438fb0(0x119)]]]);}},_0x198b4b(_0x392826[_0x58a348(0x1b2)],_0x58a348(0x1a6),_0x12b034['UniverInstanceType'][_0x58a348(0x1c5)]),_0x198b4b(_0x392826[_0x58a348(0x1b2)],_0x58a348(0x1ba),_0x226fe5),_0x392826[_0x58a348(0x1b2)]=_0x3134be([_0x12b034['DependentOn'](_0x449898[_0x58a348(0x125)]),_0x592761(0x1,_0x12b034[_0x58a348(0x129)](_0x12b034[_0x58a348(0x1b7)])),_0x592761(0x2,_0x12b034['IConfigService'])],_0x392826[_0x58a348(0x1b2)]),_0x392826['LiveShare']=_0x5bbd24,_0x392826[_0x58a348(0x18c)]=_0x2038c0,_0x392826[_0x58a348(0x192)]=_0x262d7f,Object['defineProperty'](_0x392826,Symbol['toStringTag'],{'value':_0x58a348(0x16a)});}));function _0x448d(){var _0x4749a5=['_commandDisposable','idSuffix','includes','UniverInstanceType','asObservable','dispose','@univerjs/ui','offline','tryStartPresenting','_stopPresenting','unsubscribe','_reporters','reverse','exports','extend','takeUntil','get','univer-w-full\x20univer-mb-3\x20univer-text-sm','PRESENTING','IDLE','call','stopFollowing','_collabSession','7JVhGUu','requireSession','pipe','32RykiOR','dispose$','Fragment','apply','Start\x20following','status$','UniverProCollaborationClient','useEffect','DesktopLiveShareController','not-following','colorChannel1','assign','unitId','univer-size-4','_status','text','setConfig','SetZoomRatioOperation','startFollowing','touchDependencies','UniverCollaborationClientPlugin','SessionStatus','_fetchOperations','NOT_FOLLOWING','Inject','_univerInstanceService','indexOf','presenter','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-white\x20dark:univer-bg-white\x20dark:univer-text-gray-900','Button','2055195NfbjHN','_collabSessionService','tag','getTypeOfUnitDisposed$','memberID','amd','OFFLINE','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','1895456gKPyqE','send','IUniverInstanceService','createInstance','SetScrollOperation','getTypeOfUnitAdded$','className','map','InsertSheetMutation','default','_status$','fill','CommandType','defs','init','rxjs','string','0\x200\x2016\x2016','227811EGWGAP','_mountLiveShare','event$','add','_startPresenting','currentColor','idle','registerInitialStateReporter','UNIVER_SHEET','_handleOffline','none','UniverSheets','from','_handleNewChangeSets','HEADER_MENU','univerjs-icon\x20univerjs-icon-','getCurrentTypeOfUnit$','_uiPartsService','has','stopPresenting','2FfPNvK','819662XXtGZy','_commandService','defineProperty','operators','SAME_OPERATION_SHARE_INTERVAL','UniverCore','div','onStarting','You\x27are\x20offline.','prototype','_init','LiveShareCoordinator','Module','replace','UniverDesign','parse','symbol','_unitID','_handleTerminate','useDependency','11IDcSvy','defIds','_config','evenodd','hasOwnProperty','_injector','following','_stopFollowing','concat','NEW_CHANGESETS','You\x27re\x20presenting\x20the\x20document','_liveShareService','registerComponent','getConfig','function','_sharedOperations','clsx','url(#$1','react/jsx-runtime','xlink:href','complete','_presenter','Disposable','5ICyWRF','CollaborationEvent','forEach','LiveShareService','BehaviorSubject','stringify','LiveShareController','connectInjector','getMemberID','LiveShareStatus','params','use','react','end','_entities','ICommandService','useState','CollaborationSessionService','entries','IConfigService','jsx','createElement','parseProtocolChangeset','next','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','@univerjs-pro/collaboration','getInitialStates','current','Present\x20this\x20document','type','DisposableCollection','Start','onCommandExecuted','_configService','length','@univerjs/core','forwardRef','8609120KlXbOA','rxjs/operators','data','UniverUi','UniverLiveSharePlugin','@univerjs/sheets','values','mask','FOLLOWING','Injector','_handleNewHost','attrs','pluginName','object','getUnitId','clear','path','LIVESHARE_FETCH_OPERATIONS','5366058LswuRr','merge','propertyIsEnumerable','_startLiveShareCoordinator','useRef','UNIVER_UNKNOWN','Dropdown','React','LIVESHARE_REQUEST_HOST','SetWorksheetActiveOperation','trim','@univerjs/design','getLiveShareCoordinator','_startFollowing','disposeWithMe','subscribe','toString','getOwnPropertyDescriptor','shouldShareOperation','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','toDisposable','sheet','_handleOnline','@univerjs/sheets-ui','Subject','Stop\x20presenting','icon','_beIdle','getValue','random','UniverSheetsUi','jsxs','useObservable','children','live-share-single','set','15840264WCAjKX','LIVESHARE_TERMINATE','presenting','ONLINE'];_0x448d=function(){return _0x4749a5;};return _0x448d();}
1
+ function _0x32c2(_0x1c0c52,_0x1594e5){var _0x3dc3d9=_0x3dc3();return _0x32c2=function(_0x32c28e,_0x2311d3){_0x32c28e=_0x32c28e-0x140;var _0x5c3e2b=_0x3dc3d9[_0x32c28e];return _0x5c3e2b;},_0x32c2(_0x1c0c52,_0x1594e5);}(function(_0x521693,_0x43c2b0){var _0xa3bbbe=_0x32c2,_0x4685db=_0x521693();while(!![]){try{var _0x1c6603=parseInt(_0xa3bbbe(0x21d))/0x1*(parseInt(_0xa3bbbe(0x21a))/0x2)+parseInt(_0xa3bbbe(0x1f1))/0x3+-parseInt(_0xa3bbbe(0x1aa))/0x4+parseInt(_0xa3bbbe(0x1ef))/0x5*(parseInt(_0xa3bbbe(0x20b))/0x6)+-parseInt(_0xa3bbbe(0x22d))/0x7*(parseInt(_0xa3bbbe(0x228))/0x8)+-parseInt(_0xa3bbbe(0x146))/0x9*(-parseInt(_0xa3bbbe(0x1c6))/0xa)+-parseInt(_0xa3bbbe(0x1b5))/0xb*(-parseInt(_0xa3bbbe(0x1d9))/0xc);if(_0x1c6603===_0x43c2b0)break;else _0x4685db['push'](_0x4685db['shift']());}catch(_0x3fa684){_0x4685db['push'](_0x4685db['shift']());}}}(_0x3dc3,0x68aa0),function(_0x34f955,_0x2cc6a3){var _0x58a7ec=_0x32c2;typeof exports==_0x58a7ec(0x206)&&typeof module<'u'?_0x2cc6a3(exports,require('@univerjs-pro/collaboration-client'),require(_0x58a7ec(0x1c7)),require(_0x58a7ec(0x164)),require('@univerjs/sheets-ui'),require(_0x58a7ec(0x1bb)),require(_0x58a7ec(0x1d1)),require(_0x58a7ec(0x15a)),require(_0x58a7ec(0x168)),require(_0x58a7ec(0x1cc)),require(_0x58a7ec(0x223)),require('rxjs/operators')):typeof define==_0x58a7ec(0x172)&&define[_0x58a7ec(0x1e5)]?define(['exports',_0x58a7ec(0x14f),'@univerjs/core',_0x58a7ec(0x164),_0x58a7ec(0x1a0),'@univerjs/ui','react/jsx-runtime',_0x58a7ec(0x15a),_0x58a7ec(0x168),_0x58a7ec(0x1cc),_0x58a7ec(0x223),_0x58a7ec(0x175)],_0x2cc6a3):(_0x34f955=typeof globalThis<'u'?globalThis:_0x34f955||self,_0x2cc6a3(_0x34f955[_0x58a7ec(0x18e)]={},_0x34f955[_0x58a7ec(0x1f0)],_0x34f955[_0x58a7ec(0x185)],_0x34f955[_0x58a7ec(0x1f5)],_0x34f955[_0x58a7ec(0x1fb)],_0x34f955['UniverUi'],_0x34f955[_0x58a7ec(0x140)],_0x34f955[_0x58a7ec(0x144)],_0x34f955[_0x58a7ec(0x140)],_0x34f955[_0x58a7ec(0x207)],_0x34f955[_0x58a7ec(0x223)],_0x34f955[_0x58a7ec(0x223)][_0x58a7ec(0x1ee)]));}(this,function(_0x564430,_0x48eb55,_0x14dd01,_0x13ba10,_0x54dcfa,_0x4f2411,_0x251b21,_0xf99188,_0x5309d1,_0x3e3d8e,_0x1beed9,_0x5f3902){'use strict';var _0x4e1f37=_0x32c2;var _0x2b48d3=Object[_0x4e1f37(0x21e)],_0x5dcfa8=(_0x2238a9,_0x42486b,_0x3c8e7e)=>_0x42486b in _0x2238a9?_0x2b48d3(_0x2238a9,_0x42486b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c8e7e}):_0x2238a9[_0x42486b]=_0x3c8e7e,_0x14886c=(_0x374e0e,_0x1df51c,_0xb6b913)=>_0x5dcfa8(_0x374e0e,typeof _0x1df51c!='symbol'?_0x1df51c+'':_0x1df51c,_0xb6b913);const _0x569104='live-share.config',_0x187a32={};class _0x4c5666 extends _0x14dd01['Disposable']{constructor(){var _0xc3b080=_0x4e1f37;super(...arguments),_0x14886c(this,_0xc3b080(0x20f),new Set()),_0x14886c(this,_0xc3b080(0x15e),new Set());}['registerSharedOperation'](_0x57396d){var _0x29e9fb=_0x4e1f37;return this[_0x29e9fb(0x20f)][_0x29e9fb(0x1b2)](_0x57396d),_0x14dd01[_0x29e9fb(0x15d)](()=>this[_0x29e9fb(0x20f)][_0x29e9fb(0x156)](_0x57396d));}[_0x4e1f37(0x22f)](_0x21c6e1){var _0x3860ce=_0x4e1f37;return this['_reporters']['add'](_0x21c6e1),_0x14dd01[_0x3860ce(0x15d)](()=>this[_0x3860ce(0x15e)]['delete'](_0x21c6e1));}[_0x4e1f37(0x20c)](_0x3a8ce3){var _0x28eea9=_0x4e1f37;return this[_0x28eea9(0x20f)]['has'](_0x3a8ce3);}['getInitialStates'](_0x349bba){var _0x55728e=_0x4e1f37;return Array[_0x55728e(0x147)](this[_0x55728e(0x15e)])[_0x55728e(0x177)](_0x274282=>_0x274282(_0x349bba));}}var _0x226517=Object['getOwnPropertyDescriptor'],_0x21eda6=(_0x53ee9,_0x530724,_0x37fbec,_0x4c9628)=>{var _0x10f40c=_0x4e1f37;for(var _0xa73bec=_0x4c9628>0x1?void 0x0:_0x4c9628?_0x226517(_0x530724,_0x37fbec):_0x530724,_0x118969=_0x53ee9[_0x10f40c(0x1bd)]-0x1,_0x56bd42;_0x118969>=0x0;_0x118969--)(_0x56bd42=_0x53ee9[_0x118969])&&(_0xa73bec=_0x56bd42(_0xa73bec)||_0xa73bec);return _0xa73bec;},_0x2873f5=(_0x442c14,_0x45e180)=>(_0xe79cbe,_0x436d17)=>_0x45e180(_0xe79cbe,_0x436d17,_0x442c14);let _0x5d75bf=class extends _0x14dd01[_0x4e1f37(0x20d)]{constructor(_0x434cba){var _0x29ad10=_0x4e1f37;super(),this[_0x29ad10(0x226)]=_0x434cba,this[_0x29ad10(0x148)]();}['_init'](){var _0x1718c2=_0x4e1f37;[_0x54dcfa[_0x1718c2(0x17c)]['id'],_0x54dcfa['SetScrollOperation']['id'],_0x13ba10[_0x1718c2(0x18a)]['id']][_0x1718c2(0x142)](_0x365239=>{var _0x4c6e1c=_0x1718c2;this[_0x4c6e1c(0x189)](this[_0x4c6e1c(0x226)]['registerSharedOperation'](_0x365239));});}};_0x5d75bf=_0x21eda6([_0x2873f5(0x0,_0x14dd01['Inject'](_0x4c5666))],_0x5d75bf);var _0x1c2aa2=function(){var _0x12f728=_0x4e1f37;return _0x1c2aa2=Object[_0x12f728(0x167)]||function(_0x33aae2){var _0x2d8a43=_0x12f728;for(var _0x279de2,_0x20c648=0x1,_0x5d0554=arguments['length'];_0x20c648<_0x5d0554;_0x20c648++){_0x279de2=arguments[_0x20c648];for(var _0x54fe8a in _0x279de2)Object[_0x2d8a43(0x180)][_0x2d8a43(0x19a)][_0x2d8a43(0x143)](_0x279de2,_0x54fe8a)&&(_0x33aae2[_0x54fe8a]=_0x279de2[_0x54fe8a]);}return _0x33aae2;},_0x1c2aa2[_0x12f728(0x201)](this,arguments);},_0x42471d=function(_0x5476f2,_0xd4c003){var _0x1c62fc=_0x4e1f37,_0x5695d9={};for(var _0x5b475c in _0x5476f2)Object['prototype'][_0x1c62fc(0x19a)][_0x1c62fc(0x143)](_0x5476f2,_0x5b475c)&&_0xd4c003[_0x1c62fc(0x1a1)](_0x5b475c)<0x0&&(_0x5695d9[_0x5b475c]=_0x5476f2[_0x5b475c]);if(_0x5476f2!=null&&typeof Object[_0x1c62fc(0x154)]==_0x1c62fc(0x172)){for(var _0x4c311e=0x0,_0x5b475c=Object[_0x1c62fc(0x154)](_0x5476f2);_0x4c311e<_0x5b475c[_0x1c62fc(0x1bd)];_0x4c311e++)_0xd4c003['indexOf'](_0x5b475c[_0x4c311e])<0x0&&Object[_0x1c62fc(0x180)]['propertyIsEnumerable'][_0x1c62fc(0x143)](_0x5476f2,_0x5b475c[_0x4c311e])&&(_0x5695d9[_0x5b475c[_0x4c311e]]=_0x5476f2[_0x5b475c[_0x4c311e]]);}return _0x5695d9;},_0x9df238=_0x5309d1[_0x4e1f37(0x1b4)](function(_0x4dc286,_0x331a69){var _0x38bd71=_0x4e1f37,_0x192fcd=_0x4dc286['icon'],_0x14c72d=_0x4dc286['id'],_0x321da9=_0x4dc286['className'],_0x24867e=_0x4dc286[_0x38bd71(0x1dc)],_0x535b49=_0x42471d(_0x4dc286,[_0x38bd71(0x1b7),'id',_0x38bd71(0x1c4),_0x38bd71(0x1dc)]),_0x3e491a=_0x38bd71(0x1e3)[_0x38bd71(0x149)](_0x14c72d,'\x20')[_0x38bd71(0x149)](_0x321da9||'')[_0x38bd71(0x22e)](),_0x51c9f8=_0x5309d1['useRef']('_'[_0x38bd71(0x149)](_0x10a0f8()));return _0x5e97aa(_0x192fcd,''['concat'](_0x14c72d),{'defIds':_0x192fcd[_0x38bd71(0x1de)],'idSuffix':_0x51c9f8[_0x38bd71(0x187)]},_0x1c2aa2({'ref':_0x331a69,'className':_0x3e491a},_0x535b49),_0x24867e);});function _0x5e97aa(_0x1f393a,_0x243203,_0xbf2547,_0x85d4d2,_0x412505){var _0x4eb103=_0x4e1f37;return _0x5309d1[_0x4eb103(0x211)](_0x1f393a['tag'],_0x1c2aa2(_0x1c2aa2({'key':_0x243203},_0x130bfa(_0x1f393a,_0xbf2547,_0x412505)),_0x85d4d2),(_0x2a1752(_0x1f393a,_0xbf2547)[_0x4eb103(0x188)]||[])[_0x4eb103(0x177)](function(_0xbba0d7,_0x22817a){var _0x4a92d3=_0x4eb103;return _0x5e97aa(_0xbba0d7,''[_0x4a92d3(0x149)](_0x243203,'-')['concat'](_0x1f393a[_0x4a92d3(0x1e7)],'-')[_0x4a92d3(0x149)](_0x22817a),_0xbf2547,void 0x0,_0x412505);}));}function _0x130bfa(_0x4ba32a,_0x1aa5fc,_0x3e172a){var _0x11ae01=_0x4e1f37,_0x4461ac=_0x1c2aa2({},_0x4ba32a['attrs']);_0x3e172a!=null&&_0x3e172a['colorChannel1']&&_0x4461ac[_0x11ae01(0x165)]===_0x11ae01(0x16e)&&(_0x4461ac[_0x11ae01(0x165)]=_0x3e172a[_0x11ae01(0x16e)]),_0x4ba32a['tag']===_0x11ae01(0x19d)&&_0x4461ac['id']&&(_0x4461ac['id']=_0x4461ac['id']+_0x1aa5fc[_0x11ae01(0x1df)]),Object[_0x11ae01(0x162)](_0x4461ac)[_0x11ae01(0x142)](function(_0x11d658){var _0x299bda=_0x11ae01,_0x4d1726=_0x11d658[0x0],_0xe4365c=_0x11d658[0x1];_0x4d1726===_0x299bda(0x19d)&&typeof _0xe4365c==_0x299bda(0x1b6)&&(_0x4461ac[_0x4d1726]=_0xe4365c[_0x299bda(0x212)](/url\(#(.*)\)/,_0x299bda(0x1e8)[_0x299bda(0x149)](_0x1aa5fc[_0x299bda(0x1df)],')')));});var _0x44e3a9=_0x1aa5fc['defIds'];return!_0x44e3a9||_0x44e3a9[_0x11ae01(0x1bd)]===0x0||(_0x4ba32a[_0x11ae01(0x1e7)]===_0x11ae01(0x1c0)&&_0x4461ac['xlink:href']&&(_0x4461ac[_0x11ae01(0x1d5)]=_0x4461ac[_0x11ae01(0x1d5)]+_0x1aa5fc[_0x11ae01(0x1df)]),Object['entries'](_0x4461ac)['forEach'](function(_0x11f9ed){var _0x194de7=_0x11ae01,_0x38472d=_0x11f9ed[0x0],_0x502e1a=_0x11f9ed[0x1];typeof _0x502e1a=='string'&&(_0x4461ac[_0x38472d]=_0x502e1a[_0x194de7(0x212)](/url\(#(.*)\)/,_0x194de7(0x1e8)['concat'](_0x1aa5fc[_0x194de7(0x1df)],')')));})),_0x4461ac;}function _0x2a1752(_0x2e8e58,_0x12e57c){var _0x180079=_0x4e1f37,_0x377c9d,_0x20b565=_0x12e57c['defIds'];return!_0x20b565||_0x20b565[_0x180079(0x1bd)]===0x0?_0x2e8e58:_0x2e8e58[_0x180079(0x1e7)]===_0x180079(0x1b3)&&(!((_0x377c9d=_0x2e8e58[_0x180079(0x188)])===null||_0x377c9d===void 0x0)&&_0x377c9d[_0x180079(0x1bd)])?_0x1c2aa2(_0x1c2aa2({},_0x2e8e58),{'children':_0x2e8e58[_0x180079(0x188)][_0x180079(0x177)](function(_0x28e5ed){var _0x5e6aa8=_0x180079;return typeof _0x28e5ed[_0x5e6aa8(0x199)]['id']==_0x5e6aa8(0x1b6)&&_0x20b565&&_0x20b565['indexOf'](_0x28e5ed[_0x5e6aa8(0x199)]['id'])>-0x1?_0x1c2aa2(_0x1c2aa2({},_0x28e5ed),{'attrs':_0x1c2aa2(_0x1c2aa2({},_0x28e5ed[_0x5e6aa8(0x199)]),{'id':_0x28e5ed[_0x5e6aa8(0x199)]['id']+_0x12e57c['idSuffix']})}):_0x28e5ed;})}):_0x2e8e58;}function _0x10a0f8(){var _0x107402=_0x4e1f37;return Math['random']()['toString'](0x24)[_0x107402(0x1a9)](0x2,0x8);}_0x9df238[_0x4e1f37(0x182)]=_0x4e1f37(0x1f2);var _0x1599fc={'tag':_0x4e1f37(0x14d),'attrs':{'fill':_0x4e1f37(0x1db),'viewBox':_0x4e1f37(0x158),'width':_0x4e1f37(0x14a),'height':_0x4e1f37(0x14a)},'children':[{'tag':_0x4e1f37(0x141),'attrs':{'fill':_0x4e1f37(0x1c9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x4e1f37(0x141),'attrs':{'fill':_0x4e1f37(0x1c9),'d':_0x4e1f37(0x20a),'fillRule':_0x4e1f37(0x1d3),'clipRule':_0x4e1f37(0x1d3)}}]},_0x29b0cb=_0x5309d1[_0x4e1f37(0x1b4)](function(_0x44d064,_0x1d3a36){var _0x395216=_0x4e1f37;return _0x5309d1[_0x395216(0x211)](_0x9df238,Object['assign']({},_0x44d064,{'id':_0x395216(0x1c1),'ref':_0x1d3a36,'icon':_0x1599fc}));});_0x29b0cb[_0x4e1f37(0x182)]=_0x4e1f37(0x17d);var _0x190cc1=Object[_0x4e1f37(0x1bc)],_0x3eba70=(_0xc5059f,_0x6a92ed,_0xc33f9c,_0x4f5027)=>{var _0xcd1bde=_0x4e1f37;for(var _0xa04b94=_0x4f5027>0x1?void 0x0:_0x4f5027?_0x190cc1(_0x6a92ed,_0xc33f9c):_0x6a92ed,_0x510f3c=_0xc5059f[_0xcd1bde(0x1bd)]-0x1,_0x821c5e;_0x510f3c>=0x0;_0x510f3c--)(_0x821c5e=_0xc5059f[_0x510f3c])&&(_0xa04b94=_0x821c5e(_0xa04b94)||_0xa04b94);return _0xa04b94;},_0x2d9c83=(_0x1fbc6d,_0x3a0204)=>(_0x53e359,_0x1497f1)=>_0x3a0204(_0x53e359,_0x1497f1,_0x1fbc6d);_0x564430[_0x4e1f37(0x1e6)]=class extends _0x14dd01[_0x4e1f37(0x157)]{constructor(_0x9e1c5a,_0x70570a,_0x1626ea){var _0x3a43b0=_0x4e1f37;super(),_0x14886c(this,_0x3a43b0(0x17b),new Map()),(this[_0x3a43b0(0x1da)]=_0x9e1c5a,this[_0x3a43b0(0x234)]=_0x70570a,this[_0x3a43b0(0x159)]=_0x1626ea,this[_0x3a43b0(0x148)]());}async[_0x4e1f37(0x195)](_0x20c66c){var _0x14938b=_0x4e1f37;return this[_0x14938b(0x17b)][_0x14938b(0x225)](_0x20c66c)||await this[_0x14938b(0x14b)](_0x20c66c),this[_0x14938b(0x17b)][_0x14938b(0x194)](_0x20c66c);}['_init'](){var _0x3e0524=_0x4e1f37;this[_0x3e0524(0x1da)][_0x3e0524(0x15c)](_0x14dd01[_0x3e0524(0x19c)]['UNIVER_SHEET'])[_0x3e0524(0x196)](_0x5f3902['takeUntil'](this[_0x3e0524(0x14e)]))['subscribe'](async _0x1b452e=>{var _0x5d08ca=_0x3e0524;const _0x4247c3=_0x1b452e[_0x5d08ca(0x17f)]();this['_entities']['has'](_0x4247c3)||this[_0x5d08ca(0x14b)](_0x4247c3);}),this['_univerInstanceService'][_0x3e0524(0x233)](_0x14dd01[_0x3e0524(0x19c)][_0x3e0524(0x1ae)])[_0x3e0524(0x196)](_0x5f3902[_0x3e0524(0x155)](this['dispose$']))[_0x3e0524(0x14c)](_0x3097e0=>{var _0x1b5123=_0x3e0524;const _0x30bf1d=_0x3097e0['getUnitId'](),_0x12a075=this[_0x1b5123(0x17b)]['get'](_0x30bf1d);_0x12a075==null||_0x12a075[_0x1b5123(0x204)]();});}async[_0x4e1f37(0x14b)](_0x77f5de){var _0x4bab72=_0x4e1f37;const _0x412e2d=await this[_0x4bab72(0x159)][_0x4bab72(0x1f8)](_0x77f5de),_0x4b9ff8=this['_injector'][_0x4bab72(0x152)](_0x564430[_0x4bab72(0x151)],_0x77f5de,_0x412e2d);return _0x4b9ff8[_0x4bab72(0x176)](),this['_entities']['set'](_0x77f5de,_0x4b9ff8),_0x4b9ff8;}},_0x564430[_0x4e1f37(0x1e6)]=_0x3eba70([_0x2d9c83(0x0,_0x14dd01[_0x4e1f37(0x198)]),_0x2d9c83(0x1,_0x14dd01['Inject'](_0x14dd01[_0x4e1f37(0x1b8)])),_0x2d9c83(0x2,_0x14dd01[_0x4e1f37(0x22a)](_0x48eb55['CollaborationSessionService']))],_0x564430['LiveShareController']);var _0x464d16=(_0x2a6ce1=>(_0x2a6ce1['OFFLINE']=_0x4e1f37(0x179),_0x2a6ce1[_0x4e1f37(0x18c)]=_0x4e1f37(0x1d6),_0x2a6ce1[_0x4e1f37(0x1c5)]=_0x4e1f37(0x191),_0x2a6ce1[_0x4e1f37(0x221)]=_0x4e1f37(0x1c8),_0x2a6ce1[_0x4e1f37(0x16b)]='presenting',_0x2a6ce1))(_0x464d16||{});const _0x358cfe=_0x4e1f37(0x1e4),_0x2c3428=0xc8;_0x564430['LiveShareCoordinator']=class extends _0x14dd01['RxDisposable']{constructor(_0x59e18d,_0x4e23f1,_0x49784d,_0x1b28be,_0x33d63b){var _0x3855cd=_0x4e1f37;super(),_0x14886c(this,'_status$',new _0x1beed9[(_0x3855cd(0x1a2))](_0x3855cd(0x1d6))),_0x14886c(this,_0x3855cd(0x193),this[_0x3855cd(0x216)][_0x3855cd(0x169)]()),_0x14886c(this,_0x3855cd(0x148),!0x1),_0x14886c(this,_0x3855cd(0x215),null),_0x14886c(this,'_presenter',null),(this[_0x3855cd(0x205)]=_0x59e18d,this[_0x3855cd(0x19b)]=_0x4e23f1,this[_0x3855cd(0x1e0)]=_0x49784d,this[_0x3855cd(0x226)]=_0x1b28be,this[_0x3855cd(0x235)]=_0x33d63b);}get['_status'](){var _0x7ac5d7=_0x4e1f37;return this[_0x7ac5d7(0x216)][_0x7ac5d7(0x1ce)]();}[_0x4e1f37(0x204)](){var _0xffcf8=_0x4e1f37,_0x2af58e;(_0x2af58e=this[_0xffcf8(0x215)])==null||_0x2af58e['dispose'](),this[_0xffcf8(0x216)][_0xffcf8(0x18f)](_0xffcf8(0x1d6)),this[_0xffcf8(0x216)][_0xffcf8(0x1ad)]();}[_0x4e1f37(0x176)](){var _0x48e961=_0x4e1f37;this[_0x48e961(0x148)]||(this[_0x48e961(0x148)]=!0x0,this[_0x48e961(0x19b)][_0x48e961(0x1bf)]['pipe'](_0x5f3902[_0x48e961(0x155)](this[_0x48e961(0x14e)]))['subscribe'](_0x585cf7=>{var _0x2b6afe=_0x48e961;switch(_0x585cf7){case _0x48eb55[_0x2b6afe(0x16a)][_0x2b6afe(0x1ea)]:this[_0x2b6afe(0x1f4)]();break;case _0x48eb55[_0x2b6afe(0x16a)]['ONLINE']:this[_0x2b6afe(0x1af)]();break;}}),this[_0x48e961(0x19b)][_0x48e961(0x145)][_0x48e961(0x196)](_0x5f3902[_0x48e961(0x155)](this['dispose$']))[_0x48e961(0x14c)](_0x4df33a=>{var _0x11516b=_0x48e961;const {eventID:_0x30adcb}=_0x4df33a;switch(_0x30adcb){case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x16c)]:this[_0x11516b(0x1f6)](_0x4df33a);break;case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x150)]:this['_handleOperation'](_0x4df33a);break;case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x1ca)]:this[_0x11516b(0x209)]();break;case _0x3e3d8e['CollaborationEvent'][_0x11516b(0x214)]:this['_handleNewChangeSets'](_0x4df33a);break;}}));}[_0x4e1f37(0x15b)](){var _0x5d91f4=_0x4e1f37;this[_0x5d91f4(0x19b)][_0x5d91f4(0x1fc)]({'eventID':_0x3e3d8e[_0x5d91f4(0x171)][_0x5d91f4(0x1d2)],'data':{'unitID':this[_0x5d91f4(0x205)],'userID':this[_0x5d91f4(0x19b)][_0x5d91f4(0x22c)]()}},this['_unitID']);}[_0x4e1f37(0x21f)](){var _0xc3c5e1=_0x4e1f37;this['_status']==='presenting'&&(this['_status$'][_0xc3c5e1(0x18f)](_0xc3c5e1(0x1d6)),this[_0xc3c5e1(0x19b)]['send']({'eventID':_0x3e3d8e[_0xc3c5e1(0x171)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0xc3c5e1(0x205)]));}['startFollowing'](){var _0xfb8a43=_0x4e1f37;this['_status']===_0xfb8a43(0x1c8)&&(this[_0xfb8a43(0x216)][_0xfb8a43(0x18f)](_0xfb8a43(0x191)),this['_startFollowing']());}[_0x4e1f37(0x1f3)](){var _0x4858eb=_0x4e1f37;this['_status']===_0x4858eb(0x191)&&this[_0x4858eb(0x190)]();}[_0x4e1f37(0x1f6)](_0x2bb87f){var _0x20581c=_0x4e1f37;const {presenter:_0x127055}=_0x2bb87f[_0x20581c(0x1dd)],_0x5b766f=this[_0x20581c(0x19b)]['getMemberID']();this[_0x20581c(0x21b)]=_0x127055,_0x127055===_0x5b766f?(this[_0x20581c(0x190)](),this[_0x20581c(0x1b9)]()):this[_0x20581c(0x166)]!=='not-following'&&(this[_0x20581c(0x230)](),this[_0x20581c(0x1e2)]());}['_fetchOperations'](){var _0x502f29=_0x4e1f37;const _0x45c0b0={'eventID':_0x3e3d8e[_0x502f29(0x171)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x502f29(0x19b)]['send'](_0x45c0b0,this[_0x502f29(0x205)]);}[_0x4e1f37(0x209)](){var _0x2b01dc=_0x4e1f37;this[_0x2b01dc(0x21b)]=null,this[_0x2b01dc(0x166)]!==_0x2b01dc(0x200)&&this['_beIdle']();}[_0x4e1f37(0x1ba)](_0x3023cf){var _0x5ba26c=_0x4e1f37;if(this[_0x5ba26c(0x166)]==='following'&&this[_0x5ba26c(0x21b)]===_0x3023cf['data'][_0x5ba26c(0x163)]){const _0x533a53=_0x3e3d8e[_0x5ba26c(0x1d8)](_0x3023cf[_0x5ba26c(0x1dd)])[_0x5ba26c(0x186)][_0x5ba26c(0x16d)]()['find'](_0x2c4075=>_0x2c4075['id']===_0x13ba10['InsertSheetMutation']['id']);if(_0x533a53){const _0x2aedcb=_0x533a53[_0x5ba26c(0x1c3)][_0x5ba26c(0x1eb)],_0x5a0dfd=_0x533a53[_0x5ba26c(0x1c3)][_0x5ba26c(0x1ab)]['id'];setTimeout(()=>{var _0x5c7a3d=_0x5ba26c;this[_0x5c7a3d(0x235)][_0x5c7a3d(0x19e)](_0x13ba10[_0x5c7a3d(0x18a)]['id'],{'unitId':_0x2aedcb,'subUnitId':_0x5a0dfd},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x564b03=_0x4e1f37;this['_status$'][_0x564b03(0x18f)](_0x564b03(0x200));const _0x3c2c6c=new Map(),_0x372cc2=this['_commandDisposable']=new _0x14dd01['DisposableCollection']();_0x372cc2[_0x564b03(0x1b2)](_0x14dd01[_0x564b03(0x15d)](()=>{var _0x5102f7=_0x564b03;_0x3c2c6c[_0x5102f7(0x142)](_0x5ae739=>_0x5ae739[_0x5102f7(0x1ad)]()),_0x3c2c6c[_0x5102f7(0x1ec)]();})),_0x372cc2[_0x564b03(0x1b2)](this[_0x564b03(0x235)][_0x564b03(0x1ed)](_0x165a0f=>{var _0x1449a8=_0x564b03,_0x15800f;if(_0x165a0f['type']!==_0x14dd01[_0x1449a8(0x173)][_0x1449a8(0x1a3)]||!this[_0x1449a8(0x226)][_0x1449a8(0x20c)](_0x165a0f['id']))return;const {id:_0xfd7990}=_0x165a0f;let _0x17acb1;_0x3c2c6c[_0x1449a8(0x225)](_0xfd7990)?_0x17acb1=_0x3c2c6c[_0x1449a8(0x194)](_0xfd7990):(_0x17acb1=new _0x1beed9['Subject'](),_0x3c2c6c[_0x1449a8(0x1be)](_0xfd7990,_0x17acb1),_0x17acb1[_0x1449a8(0x196)](_0x5f3902[_0x1449a8(0x20e)]((_0x15800f=this['_configService']['getConfig'](_0x358cfe))!=null?_0x15800f:_0x2c3428,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1449a8(0x14c)](_0x5a5783=>{var _0x4aba16=_0x1449a8;this[_0x4aba16(0x19b)]['send']({'eventID':_0x3e3d8e[_0x4aba16(0x171)][_0x4aba16(0x150)],'data':{'unitID':this['_unitID'],'operations':{[_0x5a5783['id']]:{'id':_0x5a5783['id'],'params':JSON['stringify'](_0x5a5783[_0x4aba16(0x1c3)])}}}},this[_0x4aba16(0x205)]);})),_0x17acb1[_0x1449a8(0x18f)](_0x165a0f);})),this['_liveShareService'][_0x564b03(0x18b)](this[_0x564b03(0x205)])['forEach'](_0x1197fe=>this['_collabSession'][_0x564b03(0x1fc)]({'eventID':_0x3e3d8e[_0x564b03(0x171)][_0x564b03(0x150)],'data':{'unitID':this['_unitID'],'operations':{[_0x1197fe['id']]:{'id':_0x1197fe['id'],'params':JSON['stringify'](_0x1197fe[_0x564b03(0x1c3)])}}}},this[_0x564b03(0x205)]));}[_0x4e1f37(0x230)](){var _0x36fdbc=_0x4e1f37,_0x2b7e20;this[_0x36fdbc(0x216)]['next'](_0x36fdbc(0x1d6)),(_0x2b7e20=this[_0x36fdbc(0x215)])==null||_0x2b7e20[_0x36fdbc(0x204)](),this[_0x36fdbc(0x215)]=null;}[_0x4e1f37(0x1e2)](){var _0x5f0de2=_0x4e1f37,_0xf0483;(_0xf0483=this['_commandDisposable'])==null||_0xf0483[_0x5f0de2(0x204)](),this[_0x5f0de2(0x216)][_0x5f0de2(0x18f)](_0x5f0de2(0x191));}[_0x4e1f37(0x231)](){var _0x12af61=_0x4e1f37,_0x4222d3;this[_0x12af61(0x216)][_0x12af61(0x18f)](_0x12af61(0x1d6)),(_0x4222d3=this[_0x12af61(0x215)])==null||_0x4222d3['dispose'](),this[_0x12af61(0x215)]=null;}[_0x4e1f37(0x190)](){var _0x5b9ab5=_0x4e1f37,_0x16d0c7;this[_0x5b9ab5(0x216)]['next'](_0x5b9ab5(0x1c8)),(_0x16d0c7=this['_commandDisposable'])==null||_0x16d0c7[_0x5b9ab5(0x204)]();}['_handleOperation'](_0x5d1610){var _0x7a6cb0=_0x4e1f37;if(['presenting','not-following','offline'][_0x7a6cb0(0x1fd)](this[_0x7a6cb0(0x166)])||!_0x5d1610['data'][_0x7a6cb0(0x1c2)]||_0x5d1610['data']['presenter']===this['_collabSession'][_0x7a6cb0(0x22c)]())return;this[_0x7a6cb0(0x166)]==='idle'&&this[_0x7a6cb0(0x1e2)]();const _0x462c87=_0x5d1610[_0x7a6cb0(0x1dd)]['operations'];Object['values'](_0x462c87)[_0x7a6cb0(0x142)](_0x11fcc9=>{var _0x2304ae=_0x7a6cb0;this[_0x2304ae(0x235)]['executeCommand'](_0x11fcc9['id'],_0x11fcc9['params']?JSON['parse'](_0x11fcc9[_0x2304ae(0x1c3)]):null,{'fromCollab':!0x0});});}[_0x4e1f37(0x1f4)](){var _0x2035ef=_0x4e1f37,_0x65be3e;this['_status$']['next'](_0x2035ef(0x179)),(_0x65be3e=this[_0x2035ef(0x215)])==null||_0x65be3e['dispose']();}[_0x4e1f37(0x1af)](){var _0x1dc36a=_0x4e1f37;this[_0x1dc36a(0x216)]['next'](_0x1dc36a(0x1d6)),this[_0x1dc36a(0x197)]();}},_0x564430[_0x4e1f37(0x151)]=_0x3eba70([_0x2d9c83(0x2,_0x14dd01['IConfigService']),_0x2d9c83(0x3,_0x14dd01[_0x4e1f37(0x22a)](_0x4c5666)),_0x2d9c83(0x4,_0x14dd01['ICommandService'])],_0x564430[_0x4e1f37(0x151)]);function _0x2c5356(){var _0xaefccd=_0x4e1f37;const _0x3944b9=_0x4f2411[_0xaefccd(0x222)](_0x564430[_0xaefccd(0x1e6)]),_0xd19c39=_0x4f2411[_0xaefccd(0x222)](_0x14dd01[_0xaefccd(0x198)]),_0x130460=_0x4f2411[_0xaefccd(0x1cf)](()=>_0xd19c39[_0xaefccd(0x1a8)](_0x14dd01['UniverInstanceType'][_0xaefccd(0x1ae)]),void 0x0,!0x1,[]),[_0x23e786,_0x11be7e]=_0x5309d1[_0xaefccd(0x213)](null),[_0x223d73,_0x3e5d20]=_0x5309d1[_0xaefccd(0x213)](_0x464d16[_0xaefccd(0x18c)]),_0x51c0ca=_0x5309d1[_0xaefccd(0x220)](null);return _0x5309d1[_0xaefccd(0x208)](()=>(_0x130460&&_0x3944b9[_0xaefccd(0x195)](_0x130460['getUnitId']())[_0xaefccd(0x1ff)](_0x319ac6=>{var _0xda0fac=_0xaefccd;_0x11be7e(_0x319ac6),_0x51c0ca['current']=_0x319ac6[_0xda0fac(0x193)][_0xda0fac(0x14c)](_0x1986a7=>{_0x3e5d20(_0x1986a7);});}),()=>{var _0x4a6001=_0xaefccd,_0x2a6243;(_0x2a6243=_0x51c0ca[_0x4a6001(0x187)])==null||_0x2a6243[_0x4a6001(0x192)](),_0x51c0ca[_0x4a6001(0x187)]=null;}),[_0x130460,_0x3944b9]),_0x23e786?_0x251b21[_0xaefccd(0x174)](_0xf99188[_0xaefccd(0x1e9)],{'align':_0xaefccd(0x1d0),'disabled':_0x223d73===_0x464d16['OFFLINE'],'className':_0xaefccd(0x1cb),'overlay':_0x251b21[_0xaefccd(0x174)](_0x4a4200,{'status':_0x223d73,'coordinator':_0x23e786}),'children':_0x251b21[_0xaefccd(0x174)](_0xaefccd(0x236),{'className':_0xf99188['clsx'](_0xaefccd(0x227),{'univer-cursor-not-allowed':_0x223d73===_0x464d16[_0xaefccd(0x1ea)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x223d73!==_0x464d16[_0xaefccd(0x1ea)]}),'type':_0xaefccd(0x236),'children':_0x251b21[_0xaefccd(0x174)](_0x29b0cb,{'className':_0xaefccd(0x17a)})})}):null;}function _0x4a4200(_0x426997){var _0x41fc1d=_0x4e1f37;const {status:_0x196c9d,coordinator:_0x1cab77}=_0x426997;switch(_0x196c9d){case _0x464d16[_0x41fc1d(0x18c)]:return _0x251b21[_0x41fc1d(0x174)](_0x339f9c,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x1c5)]:return _0x251b21[_0x41fc1d(0x174)](_0x142d85,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x221)]:return _0x251b21[_0x41fc1d(0x174)](_0x430861,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x1ea)]:return _0x251b21[_0x41fc1d(0x174)](_0x18249f,{});case _0x464d16[_0x41fc1d(0x16b)]:return _0x251b21['jsx'](_0x54880d,{'coordinator':_0x1cab77});default:return null;}}function _0x339f9c(_0xdd5ff){var _0x162e98=_0x4e1f37;const {coordinator:_0x4f80e8}=_0xdd5ff;return _0x251b21[_0x162e98(0x181)](_0x251b21[_0x162e98(0x178)],{'children':[_0x251b21['jsx']('div',{'className':_0x162e98(0x219),'children':'Present\x20this\x20document'}),_0x251b21[_0x162e98(0x174)](_0xf99188[_0x162e98(0x17e)],{'onClick':()=>_0x4f80e8[_0x162e98(0x15b)](),'children':_0x162e98(0x21c)})]});}function _0x142d85(_0x1c6b9f){var _0x590dc1=_0x4e1f37;const {coordinator:_0xf2099f}=_0x1c6b9f;return _0x251b21[_0x590dc1(0x181)](_0x251b21[_0x590dc1(0x178)],{'children':[_0x251b21[_0x590dc1(0x174)](_0x590dc1(0x1cd),{'className':_0x590dc1(0x219),'children':_0x590dc1(0x1d4)}),_0x251b21[_0x590dc1(0x174)](_0xf99188[_0x590dc1(0x17e)],{'onClick':()=>_0xf2099f[_0x590dc1(0x1f3)](),'children':_0x590dc1(0x153)})]});}function _0x430861(_0x56eee2){var _0x5c8347=_0x4e1f37;const {coordinator:_0x8f9273}=_0x56eee2;return _0x251b21[_0x5c8347(0x181)](_0x251b21[_0x5c8347(0x178)],{'children':[_0x251b21[_0x5c8347(0x174)](_0x5c8347(0x1cd),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c8347(0x18d)}),_0x251b21[_0x5c8347(0x174)](_0xf99188[_0x5c8347(0x17e)],{'variant':_0x5c8347(0x16f),'onClick':()=>_0x8f9273[_0x5c8347(0x203)](),'children':'Start\x20following'})]});}function _0x54880d(_0x534137){var _0x18605a=_0x4e1f37;const {coordinator:_0x1ccb75}=_0x534137;return _0x251b21[_0x18605a(0x181)](_0x251b21[_0x18605a(0x178)],{'children':[_0x251b21['jsx'](_0x18605a(0x1cd),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x18605a(0x232)}),_0x251b21['jsx'](_0xf99188[_0x18605a(0x17e)],{'variant':_0x18605a(0x1f9),'onClick':()=>_0x1ccb75['stopPresenting'](),'children':_0x18605a(0x1a7)})]});}function _0x18249f(){var _0x5aaae3=_0x4e1f37;return _0x251b21['jsx'](_0x251b21[_0x5aaae3(0x178)],{'children':'You\x27are\x20offline.'});}var _0x5867f9=Object[_0x4e1f37(0x1bc)],_0x3e2959=(_0x5f4e64,_0x1be24d,_0x152fdf,_0x4bac08)=>{var _0x148319=_0x4e1f37;for(var _0x39c71d=_0x4bac08>0x1?void 0x0:_0x4bac08?_0x5867f9(_0x1be24d,_0x152fdf):_0x1be24d,_0x400cc6=_0x5f4e64[_0x148319(0x1bd)]-0x1,_0x4cd18d;_0x400cc6>=0x0;_0x400cc6--)(_0x4cd18d=_0x5f4e64[_0x400cc6])&&(_0x39c71d=_0x4cd18d(_0x39c71d)||_0x39c71d);return _0x39c71d;},_0x271a33=(_0x544852,_0x5bef7e)=>(_0x44fc6a,_0x3a2524)=>_0x5bef7e(_0x44fc6a,_0x3a2524,_0x544852);_0x564430['DesktopLiveShareController']=class extends _0x14dd01['Disposable']{constructor(_0x20e548,_0x3f5b01){var _0x19729b=_0x4e1f37;super(),this['_injector']=_0x20e548,this[_0x19729b(0x1d7)]=_0x3f5b01,this[_0x19729b(0x170)]();}[_0x4e1f37(0x170)](){var _0x19ed22=_0x4e1f37;this['disposeWithMe'](this[_0x19ed22(0x1d7)]['registerComponent'](_0x4f2411[_0x19ed22(0x22b)][_0x19ed22(0x1a5)],()=>_0x4f2411[_0x19ed22(0x1f7)](_0x2c5356,this[_0x19ed22(0x234)])));}},_0x564430['DesktopLiveShareController']=_0x3e2959([_0x271a33(0x0,_0x14dd01[_0x4e1f37(0x22a)](_0x14dd01['Injector'])),_0x271a33(0x1,_0x4f2411[_0x4e1f37(0x19f)])],_0x564430[_0x4e1f37(0x1b0)]);var _0x347024=Object[_0x4e1f37(0x21e)],_0x4fb404=Object['getOwnPropertyDescriptor'],_0x95fffd=(_0x574433,_0x5ce5ea,_0x312851)=>_0x5ce5ea in _0x574433?_0x347024(_0x574433,_0x5ce5ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x312851}):_0x574433[_0x5ce5ea]=_0x312851,_0x5eea80=(_0x1bb6b9,_0x1a6196,_0x2cbe36,_0x1be744)=>{for(var _0xec5757=_0x1be744>0x1?void 0x0:_0x1be744?_0x4fb404(_0x1a6196,_0x2cbe36):_0x1a6196,_0x322a01=_0x1bb6b9['length']-0x1,_0xe612ef;_0x322a01>=0x0;_0x322a01--)(_0xe612ef=_0x1bb6b9[_0x322a01])&&(_0xec5757=_0xe612ef(_0xec5757)||_0xec5757);return _0xec5757;},_0x3e1f8a=(_0x59c16c,_0x53408d)=>(_0x5c5ece,_0x23c39b)=>_0x53408d(_0x5c5ece,_0x23c39b,_0x59c16c),_0x1f9d4d=(_0x18eeb3,_0x15ef3f,_0x1f2214)=>_0x95fffd(_0x18eeb3,typeof _0x15ef3f!=_0x4e1f37(0x1ac)?_0x15ef3f+'':_0x15ef3f,_0x1f2214);const _0x19f0f5=_0x4e1f37(0x1e1);_0x564430[_0x4e1f37(0x183)]=class extends _0x14dd01[_0x4e1f37(0x160)]{constructor(_0x3a7b2e=_0x187a32,_0x22d176,_0x46aa18){var _0x3c7662=_0x4e1f37;super(),this[_0x3c7662(0x184)]=_0x3a7b2e,this[_0x3c7662(0x234)]=_0x22d176,this[_0x3c7662(0x1e0)]=_0x46aa18;const {..._0x7eba03}=_0x14dd01[_0x3c7662(0x210)]({},_0x187a32,this['_config']);this[_0x3c7662(0x1e0)][_0x3c7662(0x1fe)](_0x569104,_0x7eba03);}[_0x4e1f37(0x161)](){var _0x7bd9b1=_0x4e1f37;_0x14dd01[_0x7bd9b1(0x217)](this[_0x7bd9b1(0x234)],_0x14dd01['mergeOverrideWithDependencies']([[_0x4c5666],[_0x564430['LiveShareController']],[_0x5d75bf],[_0x564430[_0x7bd9b1(0x1b0)]]],this[_0x7bd9b1(0x184)]['override'])),_0x14dd01[_0x7bd9b1(0x15f)](this['_injector'],[[_0x5d75bf]]);}['onRendered'](){var _0x33269b=_0x4e1f37;_0x14dd01['touchDependencies'](this[_0x33269b(0x234)],[[_0x564430['DesktopLiveShareController']]]);}},_0x1f9d4d(_0x564430[_0x4e1f37(0x183)],_0x4e1f37(0x1a4),_0x14dd01[_0x4e1f37(0x19c)][_0x4e1f37(0x202)]),_0x1f9d4d(_0x564430[_0x4e1f37(0x183)],_0x4e1f37(0x1a6),_0x19f0f5),_0x564430[_0x4e1f37(0x183)]=_0x5eea80([_0x14dd01[_0x4e1f37(0x229)](_0x48eb55['UniverCollaborationClientPlugin']),_0x3e1f8a(0x1,_0x14dd01[_0x4e1f37(0x22a)](_0x14dd01[_0x4e1f37(0x1b8)])),_0x3e1f8a(0x2,_0x14dd01['IConfigService'])],_0x564430[_0x4e1f37(0x183)]),_0x564430[_0x4e1f37(0x1fa)]=_0x2c5356,_0x564430[_0x4e1f37(0x218)]=_0x4c5666,_0x564430['LiveShareStatus']=_0x464d16,Object[_0x4e1f37(0x21e)](_0x564430,Symbol[_0x4e1f37(0x1b1)],{'value':_0x4e1f37(0x224)});}));function _0x3dc3(){var _0x43d248=['LIVESHARE_NEW_HOST','reverse','colorChannel1','text','_mountLiveShare','CollaborationEvent','function','CommandType','jsx','rxjs/operators','init','map','Fragment','offline','univer-size-4','_entities','SetZoomRatioOperation','LiveShareSingle','Button','getUnitId','prototype','jsxs','displayName','UniverLiveSharePlugin','_config','UniverCore','mutations','current','children','disposeWithMe','SetWorksheetActiveOperation','getInitialStates','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','UniverProLiveShare','next','_stopFollowing','following','unsubscribe','status$','get','getLiveShareCoordinator','pipe','_fetchOperations','IUniverInstanceService','attrs','hasOwnProperty','_collabSession','UniverInstanceType','mask','executeCommand','IUIPartsService','@univerjs/sheets-ui','indexOf','BehaviorSubject','OPERATION','type','HEADER_MENU','pluginName','Stop\x20presenting','getCurrentTypeOfUnit$','substring','1896156JVErhA','sheet','symbol','complete','UNIVER_SHEET','_handleOnline','DesktopLiveShareController','toStringTag','add','defs','forwardRef','715CpKCDI','string','icon','Injector','_startPresenting','_handleNewChangeSets','@univerjs/ui','getOwnPropertyDescriptor','length','set','sessionStatus$','use','live-share-single','presenter','params','className','FOLLOWING','40gSRocE','@univerjs/core','not-following','currentColor','LIVESHARE_TERMINATE','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','@univerjs-pro/collaboration','div','getValue','useObservable','end','react/jsx-runtime','LIVESHARE_REQUEST_HOST','evenodd','You\x27re\x20following\x20the\x20presenter','xlink:href','idle','_uiPartsService','parseProtocolChangeset','2532wbiHyQ','_univerInstanceService','none','extend','data','defIds','idSuffix','_configService','UNIVER_LIVE_SHARE_PLUGIN','_startFollowing','univerjs-icon\x20univerjs-icon-','SAME_OPERATION_SHARE_INTERVAL','amd','LiveShareController','tag','url(#$1','Dropdown','OFFLINE','unitId','clear','onCommandExecuted','operators','125845NeLlbH','UniverProCollaborationClient','1708749vdlRuX','UniverIcon','stopFollowing','_handleOffline','UniverSheets','_handleNewHost','connectInjector','requireSession','default','LiveShare','UniverSheetsUi','send','includes','setConfig','then','presenting','apply','UNIVER_UNKNOWN','startFollowing','dispose','_unitID','object','UniverProCollaboration','useEffect','_handleTerminate','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','90WiBNfI','shouldShareOperation','Disposable','throttleTime','_sharedOperations','merge','createElement','replace','useState','NEW_CHANGESETS','_commandDisposable','_status$','registerDependencies','LiveShareService','univer-w-full\x20univer-mb-3\x20univer-text-sm','2AUlwTl','_presenter','Start','357911XwnXGZ','defineProperty','stopPresenting','useRef','NOT_FOLLOWING','useDependency','rxjs','Module','has','_liveShareService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','1174184QLgWAE','DependentOn','Inject','BuiltInUIPart','getMemberID','35DtwOzp','trim','registerInitialStateReporter','_stopPresenting','_beIdle','You\x27re\x20presenting\x20the\x20document','getTypeOfUnitDisposed$','_injector','_commandService','button','React','path','forEach','call','UniverDesign','event$','715194KXLauk','from','_init','concat','1em','_startLiveShareCoordinator','subscribe','svg','dispose$','@univerjs-pro/collaboration-client','LIVESHARE_OPERATION','LiveShareCoordinator','createInstance','Stop\x20following','getOwnPropertySymbols','takeUntil','delete','RxDisposable','0\x200\x2016\x2016','_collabSessionService','@univerjs/design','tryStartPresenting','getTypeOfUnitAdded$','toDisposable','_reporters','touchDependencies','Plugin','onStarting','entries','memberID','@univerjs/sheets','fill','_status','assign','react','asObservable','SessionStatus','PRESENTING'];_0x3dc3=function(){return _0x43d248;};return _0x3dc3();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.7.0",
3
+ "version": "0.8.0-beta.0",
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.3.24",
50
- "@univerjs-pro/collaboration": "0.7.0",
51
- "@univerjs-pro/collaboration-client": "0.7.0",
52
- "@univerjs/design": "0.7.0",
53
- "@univerjs/core": "0.7.0",
54
- "@univerjs/sheets-ui": "0.7.0",
55
- "@univerjs/ui": "0.7.0",
56
- "@univerjs/sheets": "0.7.0"
50
+ "@univerjs-pro/collaboration": "0.8.0-beta.0",
51
+ "@univerjs/core": "0.8.0-beta.0",
52
+ "@univerjs-pro/collaboration-client": "0.8.0-beta.0",
53
+ "@univerjs/design": "0.8.0-beta.0",
54
+ "@univerjs/sheets-ui": "0.8.0-beta.0",
55
+ "@univerjs/sheets": "0.8.0-beta.0",
56
+ "@univerjs/ui": "0.8.0-beta.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.3",
@@ -62,9 +62,9 @@
62
62
  "tailwindcss": "^3.4.17",
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
- "vitest": "^3.1.3",
66
- "@univerjs-infra/shared": "0.7.0",
67
- "@univerjs/protocol": "0.1.46-alpha.3"
65
+ "vitest": "^3.1.4",
66
+ "@univerjs-infra/shared": "0.8.0-beta.0",
67
+ "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {
70
70
  "test": "vitest run",