@univerjs-pro/live-share 0.8.1-nightly.202506161607 → 0.8.1-nightly.202506181607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0xa5e750=_0x1427;(function(_0x3a2099,_0x2c6489){var _0x294478=_0x1427,_0x39c2e0=_0x3a2099();while(!![]){try{var _0x35d392=parseInt(_0x294478(0x26f))/0x1*(-parseInt(_0x294478(0x27b))/0x2)+parseInt(_0x294478(0x25e))/0x3+parseInt(_0x294478(0x283))/0x4+parseInt(_0x294478(0x1c6))/0x5+parseInt(_0x294478(0x211))/0x6+parseInt(_0x294478(0x1e7))/0x7+parseInt(_0x294478(0x1ef))/0x8*(-parseInt(_0x294478(0x20b))/0x9);if(_0x35d392===_0x2c6489)break;else _0x39c2e0['push'](_0x39c2e0['shift']());}catch(_0x4c63bc){_0x39c2e0['push'](_0x39c2e0['shift']());}}}(_0x579a,0xa4928));var U=Object[_0xa5e750(0x207)],F=(_0x27f860,_0x3546ac,_0x4932d9)=>_0x3546ac in _0x27f860?U(_0x27f860,_0x3546ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4932d9}):_0x27f860[_0x3546ac]=_0x4932d9,v=(_0x2ff16e,_0x467970,_0x171c56)=>F(_0x2ff16e,typeof _0x467970!=_0xa5e750(0x268)?_0x467970+'':_0x467970,_0x171c56);Object[_0xa5e750(0x207)](exports,Symbol[_0xa5e750(0x286)],{'value':_0xa5e750(0x28c)});const m=require('@univerjs-pro/collaboration-client'),o=require(_0xa5e750(0x20e)),C=require(_0xa5e750(0x236)),w=require(_0xa5e750(0x225)),p=require(_0xa5e750(0x288)),l=require('react/jsx-runtime'),g=require(_0xa5e750(0x1bd)),f=require('react'),_=require(_0xa5e750(0x25b)),D=require(_0xa5e750(0x22b)),b=require(_0xa5e750(0x209)),$=_0xa5e750(0x1fe),x={};class O extends o[_0xa5e750(0x210)]{constructor(){var _0x305b91=_0xa5e750;super(...arguments),v(this,_0x305b91(0x296),new Set()),v(this,_0x305b91(0x1be),new Set());}[_0xa5e750(0x22f)](_0x38c510){var _0x9fa6c1=_0xa5e750;return this[_0x9fa6c1(0x296)]['add'](_0x38c510),o[_0x9fa6c1(0x1d9)](()=>this[_0x9fa6c1(0x296)][_0x9fa6c1(0x237)](_0x38c510));}[_0xa5e750(0x291)](_0x29db58){var _0x4164d6=_0xa5e750;return this[_0x4164d6(0x1be)][_0x4164d6(0x1c4)](_0x29db58),o[_0x4164d6(0x1d9)](()=>this[_0x4164d6(0x1be)]['delete'](_0x29db58));}[_0xa5e750(0x257)](_0x198211){var _0x18d8be=_0xa5e750;return this[_0x18d8be(0x296)][_0x18d8be(0x1bc)](_0x198211);}[_0xa5e750(0x1e2)](_0x44de0b){var _0x1077e0=_0xa5e750;return Array['from'](this[_0x1077e0(0x1be)])[_0x1077e0(0x1ee)](_0x3eaf52=>_0x3eaf52(_0x44de0b));}}var H=Object[_0xa5e750(0x1d4)],V=(_0x3df9f9,_0x10e0a1,_0xeec80,_0x4ca410)=>{var _0x7b5a1a=_0xa5e750;for(var _0x264fc3=_0x4ca410>0x1?void 0x0:_0x4ca410?H(_0x10e0a1,_0xeec80):_0x10e0a1,_0x57df8c=_0x3df9f9[_0x7b5a1a(0x25a)]-0x1,_0x352e94;_0x57df8c>=0x0;_0x57df8c--)(_0x352e94=_0x3df9f9[_0x57df8c])&&(_0x264fc3=_0x352e94(_0x264fc3)||_0x264fc3);return _0x264fc3;},k=(_0x4de807,_0x1c6048)=>(_0x5ce981,_0x5240be)=>_0x1c6048(_0x5ce981,_0x5240be,_0x4de807);let E=class extends o[_0xa5e750(0x210)]{constructor(_0x114034){var _0x5ecb7b=_0xa5e750;super(),this[_0x5ecb7b(0x28b)]=_0x114034,this[_0x5ecb7b(0x1d2)]();}[_0xa5e750(0x1d2)](){var _0x2841c8=_0xa5e750;[w['SetZoomRatioOperation']['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x2841c8(0x220)](_0xe92224=>{var _0x3e37c0=_0x2841c8;this[_0x3e37c0(0x27a)](this[_0x3e37c0(0x28b)][_0x3e37c0(0x22f)](_0xe92224));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x392da8=_0xa5e750;return u=Object[_0x392da8(0x27c)]||function(_0x463b93){var _0x5050d2=_0x392da8;for(var _0x250626,_0x42c21f=0x1,_0x40f65a=arguments['length'];_0x42c21f<_0x40f65a;_0x42c21f++){_0x250626=arguments[_0x42c21f];for(var _0x16fcc3 in _0x250626)Object[_0x5050d2(0x1c0)]['hasOwnProperty'][_0x5050d2(0x267)](_0x250626,_0x16fcc3)&&(_0x463b93[_0x16fcc3]=_0x250626[_0x16fcc3]);}return _0x463b93;},u[_0x392da8(0x269)](this,arguments);},M=function(_0x326e60,_0x796c96){var _0x5283e5=_0xa5e750,_0x30bae3={};for(var _0x4e1416 in _0x326e60)Object[_0x5283e5(0x1c0)][_0x5283e5(0x277)][_0x5283e5(0x267)](_0x326e60,_0x4e1416)&&_0x796c96[_0x5283e5(0x20a)](_0x4e1416)<0x0&&(_0x30bae3[_0x4e1416]=_0x326e60[_0x4e1416]);if(_0x326e60!=null&&typeof Object[_0x5283e5(0x270)]=='function'){for(var _0x261e39=0x0,_0x4e1416=Object[_0x5283e5(0x270)](_0x326e60);_0x261e39<_0x4e1416[_0x5283e5(0x25a)];_0x261e39++)_0x796c96[_0x5283e5(0x20a)](_0x4e1416[_0x261e39])<0x0&&Object[_0x5283e5(0x1c0)][_0x5283e5(0x216)][_0x5283e5(0x267)](_0x326e60,_0x4e1416[_0x261e39])&&(_0x30bae3[_0x4e1416[_0x261e39]]=_0x326e60[_0x4e1416[_0x261e39]]);}return _0x30bae3;},j=f['forwardRef'](function(_0x1dae0e,_0x2e0ca8){var _0x2ebfa6=_0xa5e750,_0x193ade=_0x1dae0e['icon'],_0x5d24ff=_0x1dae0e['id'],_0x5494dc=_0x1dae0e[_0x2ebfa6(0x1c2)],_0x5643de=_0x1dae0e[_0x2ebfa6(0x1c9)],_0x471693=M(_0x1dae0e,[_0x2ebfa6(0x217),'id',_0x2ebfa6(0x1c2),_0x2ebfa6(0x1c9)]),_0x49df46=_0x2ebfa6(0x202)[_0x2ebfa6(0x272)](_0x5d24ff,'\x20')[_0x2ebfa6(0x272)](_0x5494dc||'')['trim'](),_0xd8bbc9=f[_0x2ebfa6(0x1ca)]('_'[_0x2ebfa6(0x272)](G()));return y(_0x193ade,''['concat'](_0x5d24ff),{'defIds':_0x193ade[_0x2ebfa6(0x1ba)],'idSuffix':_0xd8bbc9[_0x2ebfa6(0x1c8)]},u({'ref':_0x2e0ca8,'className':_0x49df46},_0x471693),_0x5643de);});function _0x1427(_0x59f758,_0x4c83bd){var _0x579afb=_0x579a();return _0x1427=function(_0x142746,_0x584457){_0x142746=_0x142746-0x1b3;var _0x5c5c8c=_0x579afb[_0x142746];return _0x5c5c8c;},_0x1427(_0x59f758,_0x4c83bd);}function y(_0x13e881,_0x3f5035,_0x3d4ae3,_0x24f533,_0x43dd40){var _0xaf73a2=_0xa5e750;return f[_0xaf73a2(0x27e)](_0x13e881[_0xaf73a2(0x21f)],u(u({'key':_0x3f5035},q(_0x13e881,_0x3d4ae3,_0x43dd40)),_0x24f533),(W(_0x13e881,_0x3d4ae3)[_0xaf73a2(0x242)]||[])[_0xaf73a2(0x1ee)](function(_0x961280,_0x39c234){var _0x4ac999=_0xaf73a2;return y(_0x961280,''['concat'](_0x3f5035,'-')[_0x4ac999(0x272)](_0x13e881[_0x4ac999(0x21f)],'-')[_0x4ac999(0x272)](_0x39c234),_0x3d4ae3,void 0x0,_0x43dd40);}));}function q(_0x4ed046,_0x395c8b,_0x10bcd6){var _0x3e4715=_0xa5e750,_0x57ae5f=u({},_0x4ed046['attrs']);_0x10bcd6!=null&&_0x10bcd6[_0x3e4715(0x1cb)]&&_0x57ae5f[_0x3e4715(0x230)]===_0x3e4715(0x1cb)&&(_0x57ae5f['fill']=_0x10bcd6[_0x3e4715(0x1cb)]),_0x4ed046['tag']===_0x3e4715(0x1df)&&_0x57ae5f['id']&&(_0x57ae5f['id']=_0x57ae5f['id']+_0x395c8b[_0x3e4715(0x243)]),Object[_0x3e4715(0x1ed)](_0x57ae5f)['forEach'](function(_0x1f2ed7){var _0x3f9f89=_0x3e4715,_0x841cd9=_0x1f2ed7[0x0],_0x4da890=_0x1f2ed7[0x1];_0x841cd9===_0x3f9f89(0x1df)&&typeof _0x4da890=='string'&&(_0x57ae5f[_0x841cd9]=_0x4da890[_0x3f9f89(0x219)](/url\(#(.*)\)/,_0x3f9f89(0x256)[_0x3f9f89(0x272)](_0x395c8b[_0x3f9f89(0x243)],')')));});var _0x4732ee=_0x395c8b[_0x3e4715(0x1ba)];return!_0x4732ee||_0x4732ee[_0x3e4715(0x25a)]===0x0||(_0x4ed046[_0x3e4715(0x21f)]===_0x3e4715(0x214)&&_0x57ae5f[_0x3e4715(0x23c)]&&(_0x57ae5f[_0x3e4715(0x23c)]=_0x57ae5f[_0x3e4715(0x23c)]+_0x395c8b[_0x3e4715(0x243)]),Object['entries'](_0x57ae5f)['forEach'](function(_0x50b6c8){var _0x583ccc=_0x3e4715,_0x5beea8=_0x50b6c8[0x0],_0x5b2706=_0x50b6c8[0x1];typeof _0x5b2706=='string'&&(_0x57ae5f[_0x5beea8]=_0x5b2706[_0x583ccc(0x219)](/url\(#(.*)\)/,_0x583ccc(0x256)[_0x583ccc(0x272)](_0x395c8b['idSuffix'],')')));})),_0x57ae5f;}function W(_0x4da65f,_0x11207e){var _0x294823=_0xa5e750,_0x2c6192,_0x597e78=_0x11207e[_0x294823(0x1ba)];return!_0x597e78||_0x597e78[_0x294823(0x25a)]===0x0?_0x4da65f:_0x4da65f[_0x294823(0x21f)]===_0x294823(0x21b)&&(!((_0x2c6192=_0x4da65f['children'])===null||_0x2c6192===void 0x0)&&_0x2c6192[_0x294823(0x25a)])?u(u({},_0x4da65f),{'children':_0x4da65f[_0x294823(0x242)][_0x294823(0x1ee)](function(_0x508270){var _0x13a789=_0x294823;return typeof _0x508270[_0x13a789(0x1c1)]['id']==_0x13a789(0x1dd)&&_0x597e78&&_0x597e78[_0x13a789(0x28e)](_0x508270[_0x13a789(0x1c1)]['id'])?u(u({},_0x508270),{'attrs':u(u({},_0x508270['attrs']),{'id':_0x508270[_0x13a789(0x1c1)]['id']+_0x11207e[_0x13a789(0x243)]})}):_0x508270;})}):_0x4da65f;}function G(){var _0x2faa19=_0xa5e750;return Math[_0x2faa19(0x294)]()[_0x2faa19(0x1e5)](0x24)['substring'](0x2,0x8);}j[_0xa5e750(0x224)]=_0xa5e750(0x24f);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xa5e750(0x1e8),'viewBox':_0xa5e750(0x208),'width':_0xa5e750(0x201),'height':_0xa5e750(0x201)},'children':[{'tag':_0xa5e750(0x1cc),'attrs':{'fill':_0xa5e750(0x246),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0xa5e750(0x1cc),'attrs':{'fill':_0xa5e750(0x246),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0xa5e750(0x22a),'clipRule':_0xa5e750(0x22a)}}]},P=f[_0xa5e750(0x23d)](function(_0x3b2684,_0x242a01){var _0x59e391=_0xa5e750;return f['createElement'](j,Object[_0x59e391(0x27c)]({},_0x3b2684,{'id':_0x59e391(0x1ea),'ref':_0x242a01,'icon':B}));});P[_0xa5e750(0x224)]='LiveShareIcon';var Y=Object['getOwnPropertyDescriptor'],R=(_0x4f0f08,_0xb9017a,_0x165826,_0x45149a)=>{var _0x2cb5e7=_0xa5e750;for(var _0x24c8e9=_0x45149a>0x1?void 0x0:_0x45149a?Y(_0xb9017a,_0x165826):_0xb9017a,_0xe4ed03=_0x4f0f08[_0x2cb5e7(0x25a)]-0x1,_0x32271f;_0xe4ed03>=0x0;_0xe4ed03--)(_0x32271f=_0x4f0f08[_0xe4ed03])&&(_0x24c8e9=_0x32271f(_0x24c8e9)||_0x24c8e9);return _0x24c8e9;},S=(_0x4b2726,_0x361251)=>(_0x50c3d8,_0x2e8ea9)=>_0x361251(_0x50c3d8,_0x2e8ea9,_0x4b2726);exports[_0xa5e750(0x1de)]=class extends o['RxDisposable']{constructor(_0x52a189,_0x1f148f,_0x1ab9eb){var _0x54e3a1=_0xa5e750;super(),v(this,_0x54e3a1(0x278),new Map()),(this[_0x54e3a1(0x27d)]=_0x52a189,this[_0x54e3a1(0x222)]=_0x1f148f,this[_0x54e3a1(0x22e)]=_0x1ab9eb,this[_0x54e3a1(0x1d2)]());}async[_0xa5e750(0x1c3)](_0x3611ce){var _0xfab578=_0xa5e750;return this[_0xfab578(0x278)][_0xfab578(0x1bc)](_0x3611ce)||await this[_0xfab578(0x20d)](_0x3611ce),this[_0xfab578(0x278)]['get'](_0x3611ce);}[_0xa5e750(0x1d2)](){var _0x5c46f4=_0xa5e750;this[_0x5c46f4(0x27d)][_0x5c46f4(0x1da)](o[_0x5c46f4(0x1dc)][_0x5c46f4(0x1f2)])[_0x5c46f4(0x1f0)](b[_0x5c46f4(0x23f)](this[_0x5c46f4(0x265)]))[_0x5c46f4(0x258)](async _0x1b9000=>{var _0x609f40=_0x5c46f4;const _0x3a8d6d=_0x1b9000[_0x609f40(0x280)]();this[_0x609f40(0x278)][_0x609f40(0x1bc)](_0x3a8d6d)||this[_0x609f40(0x20d)](_0x3a8d6d);}),this['_univerInstanceService'][_0x5c46f4(0x295)](o['UniverInstanceType'][_0x5c46f4(0x1f2)])[_0x5c46f4(0x1f0)](b[_0x5c46f4(0x23f)](this[_0x5c46f4(0x265)]))[_0x5c46f4(0x258)](_0x2d8077=>{var _0x3c3c63=_0x5c46f4;const _0x438436=_0x2d8077['getUnitId'](),_0x48c5c2=this[_0x3c3c63(0x278)]['get'](_0x438436);_0x48c5c2==null||_0x48c5c2[_0x3c3c63(0x249)]();});}async[_0xa5e750(0x20d)](_0x75a2b3){var _0x3c3e52=_0xa5e750;const _0x5c2ba4=await this['_collabSessionService'][_0x3c3e52(0x1fa)](_0x75a2b3),_0x21a67b=this['_injector'][_0x3c3e52(0x1b3)](exports['LiveShareCoordinator'],_0x75a2b3,_0x5c2ba4);return _0x21a67b[_0x3c3e52(0x232)](),this[_0x3c3e52(0x278)][_0x3c3e52(0x21d)](_0x75a2b3,_0x21a67b),_0x21a67b;}},exports[_0xa5e750(0x1de)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0xa5e750(0x287)](o['Injector'])),S(0x2,o['Inject'](m[_0xa5e750(0x290)]))],exports[_0xa5e750(0x1de)]);var h=(_0x4911f0=>(_0x4911f0[_0xa5e750(0x285)]=_0xa5e750(0x234),_0x4911f0[_0xa5e750(0x25c)]='idle',_0x4911f0[_0xa5e750(0x241)]=_0xa5e750(0x1e0),_0x4911f0[_0xa5e750(0x1e9)]=_0xa5e750(0x26a),_0x4911f0[_0xa5e750(0x292)]=_0xa5e750(0x248),_0x4911f0))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o[_0xa5e750(0x21e)]{constructor(_0x309313,_0x1ab477,_0x4d8b56,_0x1186fe,_0x96045){var _0x499508=_0xa5e750;super(),v(this,_0x499508(0x1b7),new D[(_0x499508(0x20c))](_0x499508(0x23a))),v(this,'status$',this[_0x499508(0x1b7)]['asObservable']()),v(this,_0x499508(0x1d2),!0x1),v(this,_0x499508(0x1f3),null),v(this,_0x499508(0x1b9),null),(this['_unitID']=_0x309313,this['_collabSession']=_0x1ab477,this[_0x499508(0x279)]=_0x4d8b56,this[_0x499508(0x28b)]=_0x1186fe,this[_0x499508(0x215)]=_0x96045);}get['_status'](){var _0x3dd341=_0xa5e750;return this[_0x3dd341(0x1b7)][_0x3dd341(0x261)]();}[_0xa5e750(0x249)](){var _0x50acf3=_0xa5e750,_0x46bca0;(_0x46bca0=this[_0x50acf3(0x1f3)])==null||_0x46bca0[_0x50acf3(0x249)](),this[_0x50acf3(0x1b7)][_0x50acf3(0x204)](_0x50acf3(0x23a)),this[_0x50acf3(0x1b7)]['complete']();}[_0xa5e750(0x232)](){var _0x51c548=_0xa5e750;this['_init']||(this[_0x51c548(0x1d2)]=!0x0,this[_0x51c548(0x221)][_0x51c548(0x24d)][_0x51c548(0x1f0)](b[_0x51c548(0x23f)](this['dispose$']))[_0x51c548(0x258)](_0x412b58=>{var _0x2a55b4=_0x51c548;switch(_0x412b58){case m['SessionStatus'][_0x2a55b4(0x285)]:this['_handleOffline']();break;case m[_0x2a55b4(0x1cd)][_0x2a55b4(0x1f4)]:this[_0x2a55b4(0x1ff)]();break;}}),this[_0x51c548(0x221)][_0x51c548(0x22d)][_0x51c548(0x1f0)](b[_0x51c548(0x23f)](this[_0x51c548(0x265)]))[_0x51c548(0x258)](_0x14d02a=>{var _0x48b152=_0x51c548;const {eventID:_0x20187f}=_0x14d02a;switch(_0x20187f){case _[_0x48b152(0x1f6)]['LIVESHARE_NEW_HOST']:this[_0x48b152(0x1d8)](_0x14d02a);break;case _[_0x48b152(0x1f6)][_0x48b152(0x1fb)]:this[_0x48b152(0x250)](_0x14d02a);break;case _[_0x48b152(0x1f6)]['LIVESHARE_TERMINATE']:this[_0x48b152(0x205)]();break;case _['CollaborationEvent'][_0x48b152(0x284)]:this[_0x48b152(0x223)](_0x14d02a);break;}}));}[_0xa5e750(0x238)](){var _0x6b93fa=_0xa5e750;this[_0x6b93fa(0x221)]['send']({'eventID':_[_0x6b93fa(0x1f6)][_0x6b93fa(0x263)],'data':{'unitID':this[_0x6b93fa(0x27f)],'userID':this[_0x6b93fa(0x221)][_0x6b93fa(0x273)]()}},this[_0x6b93fa(0x27f)]);}[_0xa5e750(0x1eb)](){var _0x5d0938=_0xa5e750;this[_0x5d0938(0x1d5)]===_0x5d0938(0x248)&&(this[_0x5d0938(0x1b7)][_0x5d0938(0x204)](_0x5d0938(0x23a)),this[_0x5d0938(0x221)][_0x5d0938(0x1e6)]({'eventID':_[_0x5d0938(0x1f6)][_0x5d0938(0x260)],'data':{'unitID':this[_0x5d0938(0x27f)]}},this[_0x5d0938(0x27f)]));}['startFollowing'](){var _0xc77e24=_0xa5e750;this[_0xc77e24(0x1d5)]===_0xc77e24(0x26a)&&(this[_0xc77e24(0x1b7)]['next']('following'),this[_0xc77e24(0x226)]());}[_0xa5e750(0x28f)](){var _0x3434cd=_0xa5e750;this[_0x3434cd(0x1d5)]===_0x3434cd(0x1e0)&&this[_0x3434cd(0x275)]();}[_0xa5e750(0x1d8)](_0x1bb734){var _0x858164=_0xa5e750;const {presenter:_0x3ab232}=_0x1bb734[_0x858164(0x1d1)],_0x594941=this[_0x858164(0x221)][_0x858164(0x273)]();this['_presenter']=_0x3ab232,_0x3ab232===_0x594941?(this[_0x858164(0x275)](),this[_0x858164(0x23b)]()):this[_0x858164(0x1d5)]!==_0x858164(0x26a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa5e750(0x1f9)](){var _0x3c5fab=_0xa5e750;const _0x3eddbb={'eventID':_[_0x3c5fab(0x1f6)][_0x3c5fab(0x1ce)]};this['_collabSession'][_0x3c5fab(0x1e6)](_0x3eddbb,this[_0x3c5fab(0x27f)]);}[_0xa5e750(0x205)](){var _0x2da9b2=_0xa5e750;this[_0x2da9b2(0x1b9)]=null,this[_0x2da9b2(0x1d5)]!==_0x2da9b2(0x248)&&this['_beIdle']();}[_0xa5e750(0x223)](_0x5b1b8e){var _0x1a2223=_0xa5e750;if(this[_0x1a2223(0x1d5)]===_0x1a2223(0x1e0)&&this[_0x1a2223(0x1b9)]===_0x5b1b8e[_0x1a2223(0x1d1)][_0x1a2223(0x228)]){const _0x8621=_[_0x1a2223(0x1f8)](_0x5b1b8e[_0x1a2223(0x1d1)])['mutations'][_0x1a2223(0x200)]()[_0x1a2223(0x1e3)](_0x5a731a=>_0x5a731a['id']===C['InsertSheetMutation']['id']);if(_0x8621){const _0x56bafc=_0x8621[_0x1a2223(0x266)][_0x1a2223(0x26d)],_0x24b29f=_0x8621[_0x1a2223(0x266)][_0x1a2223(0x1f1)]['id'];setTimeout(()=>{var _0xf67a06=_0x1a2223;this[_0xf67a06(0x215)]['executeCommand'](C[_0xf67a06(0x1c5)]['id'],{'unitId':_0x56bafc,'subUnitId':_0x24b29f},{'fromCollab':!0x0});});}}}[_0xa5e750(0x23b)](){var _0x783db8=_0xa5e750;this[_0x783db8(0x1b7)]['next'](_0x783db8(0x248));const _0x31f12c=new Map(),_0x5b09b5=this[_0x783db8(0x1f3)]=new o[(_0x783db8(0x21c))]();_0x5b09b5['add'](o[_0x783db8(0x1d9)](()=>{var _0x3744e2=_0x783db8;_0x31f12c[_0x3744e2(0x220)](_0x4183ad=>_0x4183ad['complete']()),_0x31f12c[_0x3744e2(0x24b)]();})),_0x5b09b5[_0x783db8(0x1c4)](this['_commandService'][_0x783db8(0x1bf)](_0x42550a=>{var _0x476038=_0x783db8,_0x40a94b;if(_0x42550a[_0x476038(0x1d6)]!==o[_0x476038(0x239)][_0x476038(0x276)]||!this[_0x476038(0x28b)][_0x476038(0x257)](_0x42550a['id']))return;const {id:_0x5c3c91}=_0x42550a;let _0x570e6a;_0x31f12c[_0x476038(0x1bc)](_0x5c3c91)?_0x570e6a=_0x31f12c[_0x476038(0x252)](_0x5c3c91):(_0x570e6a=new D[(_0x476038(0x1c7))](),_0x31f12c['set'](_0x5c3c91,_0x570e6a),_0x570e6a[_0x476038(0x1f0)](b[_0x476038(0x1d7)]((_0x40a94b=this[_0x476038(0x279)][_0x476038(0x1fd)](Z))!=null?_0x40a94b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x476038(0x258)](_0xa49e6e=>{var _0x43bb5f=_0x476038;this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x43bb5f(0x1fb)],'data':{'unitID':this[_0x43bb5f(0x27f)],'operations':{[_0xa49e6e['id']]:{'id':_0xa49e6e['id'],'params':JSON['stringify'](_0xa49e6e[_0x43bb5f(0x266)])}}}},this[_0x43bb5f(0x27f)]);})),_0x570e6a[_0x476038(0x204)](_0x42550a);})),this['_liveShareService'][_0x783db8(0x1e2)](this[_0x783db8(0x27f)])[_0x783db8(0x220)](_0xbc8ab4=>this[_0x783db8(0x221)][_0x783db8(0x1e6)]({'eventID':_[_0x783db8(0x1f6)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x783db8(0x27f)],'operations':{[_0xbc8ab4['id']]:{'id':_0xbc8ab4['id'],'params':JSON[_0x783db8(0x218)](_0xbc8ab4[_0x783db8(0x266)])}}}},this[_0x783db8(0x27f)]));}['_stopPresenting'](){var _0x157f73=_0xa5e750,_0x253ad2;this[_0x157f73(0x1b7)][_0x157f73(0x204)](_0x157f73(0x23a)),(_0x253ad2=this[_0x157f73(0x1f3)])==null||_0x253ad2[_0x157f73(0x249)](),this[_0x157f73(0x1f3)]=null;}[_0xa5e750(0x226)](){var _0x530f57=_0xa5e750,_0x1e723b;(_0x1e723b=this[_0x530f57(0x1f3)])==null||_0x1e723b[_0x530f57(0x249)](),this['_status$'][_0x530f57(0x204)](_0x530f57(0x1e0));}['_beIdle'](){var _0xab2e57=_0xa5e750,_0x2a4539;this[_0xab2e57(0x1b7)][_0xab2e57(0x204)](_0xab2e57(0x23a)),(_0x2a4539=this[_0xab2e57(0x1f3)])==null||_0x2a4539[_0xab2e57(0x249)](),this[_0xab2e57(0x1f3)]=null;}[_0xa5e750(0x275)](){var _0x623924=_0xa5e750,_0x5003a5;this['_status$'][_0x623924(0x204)](_0x623924(0x26a)),(_0x5003a5=this[_0x623924(0x1f3)])==null||_0x5003a5[_0x623924(0x249)]();}['_handleOperation'](_0x3dcd52){var _0x474f2b=_0xa5e750;if(['presenting',_0x474f2b(0x26a),_0x474f2b(0x234)]['includes'](this['_status'])||!_0x3dcd52['data'][_0x474f2b(0x274)]||_0x3dcd52[_0x474f2b(0x1d1)]['presenter']===this[_0x474f2b(0x221)]['getMemberID']())return;this[_0x474f2b(0x1d5)]===_0x474f2b(0x23a)&&this[_0x474f2b(0x226)]();const _0x51d4d0=_0x3dcd52[_0x474f2b(0x1d1)][_0x474f2b(0x1d0)];Object[_0x474f2b(0x20f)](_0x51d4d0)['forEach'](_0x428f26=>{var _0x449ef6=_0x474f2b;this['_commandService'][_0x449ef6(0x244)](_0x428f26['id'],_0x428f26['params']?JSON[_0x449ef6(0x25d)](_0x428f26[_0x449ef6(0x266)]):null,{'fromCollab':!0x0});});}[_0xa5e750(0x21a)](){var _0x53e5ff=_0xa5e750,_0x1704bc;this['_status$'][_0x53e5ff(0x204)](_0x53e5ff(0x234)),(_0x1704bc=this[_0x53e5ff(0x1f3)])==null||_0x1704bc['dispose']();}[_0xa5e750(0x1ff)](){var _0xec006f=_0xa5e750;this[_0xec006f(0x1b7)][_0xec006f(0x204)](_0xec006f(0x23a)),this[_0xec006f(0x1f9)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0xa5e750(0x28a)]),S(0x3,o[_0xa5e750(0x287)](O)),S(0x4,o['ICommandService'])],exports[_0xa5e750(0x231)]);function A(){var _0x359688=_0xa5e750;const _0x2c96c8=p['useDependency'](exports[_0x359688(0x1de)]),_0x9a7d8b=p[_0x359688(0x281)](o['IUniverInstanceService']),_0x11f600=p['useObservable'](()=>_0x9a7d8b[_0x359688(0x264)](o[_0x359688(0x1dc)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x85b397,_0x858f62]=f[_0x359688(0x1e4)](null),[_0x17d22d,_0x3ebaba]=f[_0x359688(0x1e4)](h['IDLE']),_0x16fc6b=f['useRef'](null);return f['useEffect'](()=>(_0x11f600&&_0x2c96c8[_0x359688(0x1c3)](_0x11f600[_0x359688(0x280)]())['then'](_0x56f002=>{var _0x77d99b=_0x359688;_0x858f62(_0x56f002),_0x16fc6b['current']=_0x56f002[_0x77d99b(0x24a)][_0x77d99b(0x258)](_0x397ba1=>{_0x3ebaba(_0x397ba1);});}),()=>{var _0x4f1807=_0x359688,_0x32c1ff;(_0x32c1ff=_0x16fc6b[_0x4f1807(0x1c8)])==null||_0x32c1ff[_0x4f1807(0x229)](),_0x16fc6b[_0x4f1807(0x1c8)]=null;}),[_0x11f600,_0x2c96c8]),_0x85b397?l[_0x359688(0x1bb)](g[_0x359688(0x1b6)],{'align':'end','disabled':_0x17d22d===h[_0x359688(0x285)],'className':_0x359688(0x227),'overlay':l[_0x359688(0x1bb)](K,{'status':_0x17d22d,'coordinator':_0x85b397}),'children':l[_0x359688(0x1bb)](_0x359688(0x26e),{'className':g['clsx'](_0x359688(0x1b8),{'univer-cursor-not-allowed':_0x17d22d===h[_0x359688(0x285)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17d22d!==h['OFFLINE']}),'type':_0x359688(0x26e),'children':l['jsx'](P,{'className':'univer-size-4'})})}):null;}function K(_0x1d2a49){var _0x38d00=_0xa5e750;const {status:_0x59c6ce,coordinator:_0x11fd8d}=_0x1d2a49;switch(_0x59c6ce){case h[_0x38d00(0x25c)]:return l['jsx'](z,{'coordinator':_0x11fd8d});case h[_0x38d00(0x241)]:return l[_0x38d00(0x1bb)](Q,{'coordinator':_0x11fd8d});case h[_0x38d00(0x1e9)]:return l[_0x38d00(0x1bb)](X,{'coordinator':_0x11fd8d});case h[_0x38d00(0x285)]:return l[_0x38d00(0x1bb)](te,{});case h[_0x38d00(0x292)]:return l[_0x38d00(0x1bb)](ee,{'coordinator':_0x11fd8d});default:return null;}}function z(_0x3273e6){var _0x25b1a1=_0xa5e750;const {coordinator:_0x1d6b4c}=_0x3273e6;return l['jsxs'](l[_0x25b1a1(0x1b5)],{'children':[l[_0x25b1a1(0x1bb)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x25b1a1(0x1bb)](g[_0x25b1a1(0x28d)],{'onClick':()=>_0x1d6b4c[_0x25b1a1(0x238)](),'children':_0x25b1a1(0x206)})]});}function Q(_0x489e7b){var _0x70c163=_0xa5e750;const {coordinator:_0x52471e}=_0x489e7b;return l[_0x70c163(0x1f5)](l[_0x70c163(0x1b5)],{'children':[l[_0x70c163(0x1bb)](_0x70c163(0x26c),{'className':_0x70c163(0x1db),'children':_0x70c163(0x254)}),l[_0x70c163(0x1bb)](g['Button'],{'onClick':()=>_0x52471e[_0x70c163(0x28f)](),'children':_0x70c163(0x203)})]});}function X(_0x3b9d27){var _0x29e2f6=_0xa5e750;const {coordinator:_0x3ac489}=_0x3b9d27;return l[_0x29e2f6(0x1f5)](l[_0x29e2f6(0x1b5)],{'children':[l[_0x29e2f6(0x1bb)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29e2f6(0x271)}),l['jsx'](g[_0x29e2f6(0x28d)],{'variant':_0x29e2f6(0x1b4),'onClick':()=>_0x3ac489['startFollowing'](),'children':_0x29e2f6(0x1cf)})]});}function ee(_0x2999aa){var _0x817c6a=_0xa5e750;const {coordinator:_0x50a5a5}=_0x2999aa;return l[_0x817c6a(0x1f5)](l[_0x817c6a(0x1b5)],{'children':[l[_0x817c6a(0x1bb)](_0x817c6a(0x26c),{'className':_0x817c6a(0x1db),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x817c6a(0x1bb)](g['Button'],{'variant':'default','onClick':()=>_0x50a5a5[_0x817c6a(0x1eb)](),'children':_0x817c6a(0x213)})]});}function te(){var _0x2b1bc3=_0xa5e750;return l[_0x2b1bc3(0x1bb)](l[_0x2b1bc3(0x1b5)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0xa5e750(0x1d4)],ne=(_0x411536,_0x436db9,_0x4b9b80,_0x2dc80c)=>{for(var _0x59b0cb=_0x2dc80c>0x1?void 0x0:_0x2dc80c?ie(_0x436db9,_0x4b9b80):_0x436db9,_0x59784f=_0x411536['length']-0x1,_0x15621b;_0x59784f>=0x0;_0x59784f--)(_0x15621b=_0x411536[_0x59784f])&&(_0x59b0cb=_0x15621b(_0x59b0cb)||_0x59b0cb);return _0x59b0cb;},L=(_0x2145b5,_0x356d3d)=>(_0x41518c,_0x1e2e13)=>_0x356d3d(_0x41518c,_0x1e2e13,_0x2145b5);function _0x579a(){var _0x281783=['Disposable','1275894ZiYlvE','DesktopLiveShareController','Stop\x20presenting','use','_commandService','propertyIsEnumerable','icon','stringify','replace','_handleOffline','defs','DisposableCollection','set','RxDisposable','tag','forEach','_collabSession','_injector','_handleNewChangeSets','displayName','@univerjs/sheets-ui','_startFollowing','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','memberID','unsubscribe','evenodd','rxjs','connectInjector','event$','_collabSessionService','registerSharedOperation','fill','LiveShareCoordinator','init','UNIVER_UNKNOWN','offline','LiveShareService','@univerjs/sheets','delete','tryStartPresenting','CommandType','idle','_startPresenting','xlink:href','forwardRef','override','takeUntil','setConfig','FOLLOWING','children','idSuffix','executeCommand','IUIPartsService','currentColor','_config','presenting','dispose','status$','clear','mergeOverrideWithDependencies','sessionStatus$','LiveShare','UniverIcon','_handleOperation','LiveShareStatus','get','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','Injector','url(#$1','shouldShareOperation','subscribe','pluginName','length','@univerjs-pro/collaboration','IDLE','parse','3660447YLPVJN','BuiltInUIPart','LIVESHARE_TERMINATE','getValue','registerComponent','LIVESHARE_REQUEST_HOST','getCurrentTypeOfUnit$','dispose$','params','call','symbol','apply','not-following','_mountLiveShare','div','unitId','button','42byGqMV','getOwnPropertySymbols','You\x27re\x20not\x20following\x20the\x20presenter','concat','getMemberID','presenter','_stopFollowing','OPERATION','hasOwnProperty','_entities','_configService','disposeWithMe','45602APwBak','assign','_univerInstanceService','createElement','_unitID','getUnitId','useDependency','_uiPartsService','4629488vwBWcH','NEW_CHANGESETS','OFFLINE','toStringTag','Inject','@univerjs/ui','onRendered','IConfigService','_liveShareService','Module','Button','includes','stopFollowing','CollaborationSessionService','registerInitialStateReporter','PRESENTING','UniverCollaborationClientPlugin','random','getTypeOfUnitDisposed$','_sharedOperations','createInstance','text','Fragment','Dropdown','_status$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_presenter','defIds','jsx','has','@univerjs/design','_reporters','onCommandExecuted','prototype','attrs','className','getLiveShareCoordinator','add','SetWorksheetActiveOperation','20080DkoWLM','Subject','current','extend','useRef','colorChannel1','path','SessionStatus','LIVESHARE_FETCH_OPERATIONS','Start\x20following','operations','data','_init','Plugin','getOwnPropertyDescriptor','_status','type','throttleTime','_handleNewHost','toDisposable','getTypeOfUnitAdded$','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverInstanceType','string','LiveShareController','mask','following','merge','getInitialStates','find','useState','toString','send','9217320EKQQZz','none','NOT_FOLLOWING','live-share-icon','stopPresenting','UniverLiveSharePlugin','entries','map','109184VxtFeR','pipe','sheet','UNIVER_SHEET','_commandDisposable','ONLINE','jsxs','CollaborationEvent','registerDependencies','parseProtocolChangeset','_fetchOperations','requireSession','LIVESHARE_OPERATION','HEADER_MENU','getConfig','live-share.config','_handleOnline','reverse','1em','univerjs-icon\x20univerjs-icon-','Stop\x20following','next','_handleTerminate','Start','defineProperty','0\x200\x2017\x2017','rxjs/operators','indexOf','1503AuyLZE','BehaviorSubject','_startLiveShareCoordinator','@univerjs/core','values'];_0x579a=function(){return _0x281783;};return _0x579a();}exports[_0xa5e750(0x212)]=class extends o[_0xa5e750(0x210)]{constructor(_0x44beab,_0x4d19a6){var _0x4cfc4e=_0xa5e750;super(),this['_injector']=_0x44beab,this[_0x4cfc4e(0x282)]=_0x4d19a6,this[_0x4cfc4e(0x26b)]();}[_0xa5e750(0x26b)](){var _0x41c1ed=_0xa5e750;this[_0x41c1ed(0x27a)](this['_uiPartsService'][_0x41c1ed(0x262)](p[_0x41c1ed(0x25f)][_0x41c1ed(0x1fc)],()=>p[_0x41c1ed(0x22c)](A,this['_injector'])));}},exports[_0xa5e750(0x212)]=ne([L(0x0,o[_0xa5e750(0x287)](o[_0xa5e750(0x255)])),L(0x1,p[_0xa5e750(0x245)])],exports['DesktopLiveShareController']);var re=Object['defineProperty'],se=Object[_0xa5e750(0x1d4)],oe=(_0x43f647,_0x36b018,_0x3ed08c)=>_0x36b018 in _0x43f647?re(_0x43f647,_0x36b018,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ed08c}):_0x43f647[_0x36b018]=_0x3ed08c,ae=(_0x3b5c0a,_0x3d745e,_0x19eb48,_0x3286a6)=>{var _0x39dd14=_0xa5e750;for(var _0x513657=_0x3286a6>0x1?void 0x0:_0x3286a6?se(_0x3d745e,_0x19eb48):_0x3d745e,_0x58a445=_0x3b5c0a[_0x39dd14(0x25a)]-0x1,_0x4b5a48;_0x58a445>=0x0;_0x58a445--)(_0x4b5a48=_0x3b5c0a[_0x58a445])&&(_0x513657=_0x4b5a48(_0x513657)||_0x513657);return _0x513657;},N=(_0x4d69e4,_0x2c05f3)=>(_0x35b23a,_0x313e03)=>_0x2c05f3(_0x35b23a,_0x313e03,_0x4d69e4),T=(_0x1fc5c5,_0x4221bc,_0x550400)=>oe(_0x1fc5c5,typeof _0x4221bc!=_0xa5e750(0x268)?_0x4221bc+'':_0x4221bc,_0x550400);const le=_0xa5e750(0x253);exports[_0xa5e750(0x1ec)]=class extends o[_0xa5e750(0x1d3)]{constructor(_0x47d776=x,_0x2400e4,_0xd785c8){var _0x2e8254=_0xa5e750;super(),this[_0x2e8254(0x247)]=_0x47d776,this[_0x2e8254(0x222)]=_0x2400e4,this[_0x2e8254(0x279)]=_0xd785c8;const {..._0x3e4488}=o[_0x2e8254(0x1e1)]({},x,this[_0x2e8254(0x247)]);this[_0x2e8254(0x279)][_0x2e8254(0x240)]($,_0x3e4488);}['onStarting'](){var _0x36e217=_0xa5e750;o[_0x36e217(0x1f7)](this[_0x36e217(0x222)],o[_0x36e217(0x24c)]([[O],[exports[_0x36e217(0x1de)]],[E],[exports[_0x36e217(0x212)]]],this['_config'][_0x36e217(0x23e)])),o['touchDependencies'](this[_0x36e217(0x222)],[[E]]);}[_0xa5e750(0x289)](){var _0x79e508=_0xa5e750;o['touchDependencies'](this[_0x79e508(0x222)],[[exports[_0x79e508(0x212)]]]);}},T(exports[_0xa5e750(0x1ec)],_0xa5e750(0x1d6),o[_0xa5e750(0x1dc)][_0xa5e750(0x233)]),T(exports[_0xa5e750(0x1ec)],_0xa5e750(0x259),le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m[_0xa5e750(0x293)]),N(0x1,o[_0xa5e750(0x287)](o[_0xa5e750(0x255)])),N(0x2,o['IConfigService'])],exports[_0xa5e750(0x1ec)]),exports[_0xa5e750(0x24e)]=A,exports[_0xa5e750(0x235)]=O,exports[_0xa5e750(0x251)]=h;
|
|
1
|
+
'use strict';var _0x9d6b91=_0x43ed;(function(_0x33c04a,_0x31e847){var _0x127065=_0x43ed,_0x5e1777=_0x33c04a();while(!![]){try{var _0x28f702=-parseInt(_0x127065(0x218))/0x1+-parseInt(_0x127065(0x26a))/0x2*(-parseInt(_0x127065(0x272))/0x3)+parseInt(_0x127065(0x258))/0x4+parseInt(_0x127065(0x1c9))/0x5+-parseInt(_0x127065(0x26d))/0x6+-parseInt(_0x127065(0x27a))/0x7+parseInt(_0x127065(0x210))/0x8*(parseInt(_0x127065(0x1fe))/0x9);if(_0x28f702===_0x31e847)break;else _0x5e1777['push'](_0x5e1777['shift']());}catch(_0x22b219){_0x5e1777['push'](_0x5e1777['shift']());}}}(_0x52df,0x9b55b));var U=Object[_0x9d6b91(0x21e)],F=(_0x224d3f,_0x985bad,_0x1f88c6)=>_0x985bad in _0x224d3f?U(_0x224d3f,_0x985bad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f88c6}):_0x224d3f[_0x985bad]=_0x1f88c6,v=(_0x547ef9,_0x51edef,_0x3e5466)=>F(_0x547ef9,typeof _0x51edef!=_0x9d6b91(0x1cc)?_0x51edef+'':_0x51edef,_0x3e5466);Object[_0x9d6b91(0x21e)](exports,Symbol['toStringTag'],{'value':_0x9d6b91(0x24c)});const m=require('@univerjs-pro/collaboration-client'),o=require(_0x9d6b91(0x290)),C=require(_0x9d6b91(0x23d)),w=require('@univerjs/sheets-ui'),p=require(_0x9d6b91(0x22c)),l=require(_0x9d6b91(0x23c)),g=require(_0x9d6b91(0x217)),f=require(_0x9d6b91(0x207)),_=require(_0x9d6b91(0x26f)),D=require(_0x9d6b91(0x2a0)),b=require(_0x9d6b91(0x1bf)),$='live-share.config',x={};class O extends o[_0x9d6b91(0x29f)]{constructor(){var _0x5b7fad=_0x9d6b91;super(...arguments),v(this,_0x5b7fad(0x1d3),new Set()),v(this,_0x5b7fad(0x23b),new Set());}[_0x9d6b91(0x1cb)](_0x18b207){var _0x2cf747=_0x9d6b91;return this[_0x2cf747(0x1d3)][_0x2cf747(0x1d6)](_0x18b207),o[_0x2cf747(0x28d)](()=>this[_0x2cf747(0x1d3)][_0x2cf747(0x21f)](_0x18b207));}[_0x9d6b91(0x23f)](_0xa0feb8){var _0x4e5dfd=_0x9d6b91;return this[_0x4e5dfd(0x23b)]['add'](_0xa0feb8),o[_0x4e5dfd(0x28d)](()=>this[_0x4e5dfd(0x23b)]['delete'](_0xa0feb8));}[_0x9d6b91(0x273)](_0x25d87e){var _0x2c897b=_0x9d6b91;return this['_sharedOperations'][_0x2c897b(0x225)](_0x25d87e);}['getInitialStates'](_0xc5dd88){var _0x5d4335=_0x9d6b91;return Array[_0x5d4335(0x228)](this['_reporters'])[_0x5d4335(0x250)](_0x55963c=>_0x55963c(_0xc5dd88));}}var H=Object[_0x9d6b91(0x216)],V=(_0x539585,_0x79e2f7,_0x2f47aa,_0xd661fd)=>{var _0x20e6b9=_0x9d6b91;for(var _0x5d1f22=_0xd661fd>0x1?void 0x0:_0xd661fd?H(_0x79e2f7,_0x2f47aa):_0x79e2f7,_0x120347=_0x539585[_0x20e6b9(0x292)]-0x1,_0x47c9d6;_0x120347>=0x0;_0x120347--)(_0x47c9d6=_0x539585[_0x120347])&&(_0x5d1f22=_0x47c9d6(_0x5d1f22)||_0x5d1f22);return _0x5d1f22;},k=(_0x2e3cf1,_0x3f5432)=>(_0x16837c,_0x2b4bf8)=>_0x3f5432(_0x16837c,_0x2b4bf8,_0x2e3cf1);let E=class extends o[_0x9d6b91(0x29f)]{constructor(_0x6cc9e1){var _0x137a81=_0x9d6b91;super(),this['_liveShareService']=_0x6cc9e1,this[_0x137a81(0x248)]();}[_0x9d6b91(0x248)](){var _0x5b52bb=_0x9d6b91;[w[_0x5b52bb(0x1c8)]['id'],w[_0x5b52bb(0x28e)]['id'],C[_0x5b52bb(0x208)]['id']][_0x5b52bb(0x1c0)](_0x231010=>{var _0x203b55=_0x5b52bb;this[_0x203b55(0x206)](this[_0x203b55(0x1f5)][_0x203b55(0x1cb)](_0x231010));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x3d6661=_0x9d6b91;return u=Object[_0x3d6661(0x1bd)]||function(_0xbb4403){var _0x4c9022=_0x3d6661;for(var _0x1afa3a,_0x470bed=0x1,_0x43e5c2=arguments[_0x4c9022(0x292)];_0x470bed<_0x43e5c2;_0x470bed++){_0x1afa3a=arguments[_0x470bed];for(var _0x9b2491 in _0x1afa3a)Object['prototype'][_0x4c9022(0x291)]['call'](_0x1afa3a,_0x9b2491)&&(_0xbb4403[_0x9b2491]=_0x1afa3a[_0x9b2491]);}return _0xbb4403;},u[_0x3d6661(0x220)](this,arguments);},M=function(_0x38c2bb,_0x44876b){var _0x4cecb=_0x9d6b91,_0x5cfbe3={};for(var _0x2ac651 in _0x38c2bb)Object[_0x4cecb(0x277)]['hasOwnProperty'][_0x4cecb(0x29b)](_0x38c2bb,_0x2ac651)&&_0x44876b[_0x4cecb(0x1e2)](_0x2ac651)<0x0&&(_0x5cfbe3[_0x2ac651]=_0x38c2bb[_0x2ac651]);if(_0x38c2bb!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5f7d18=0x0,_0x2ac651=Object[_0x4cecb(0x1dd)](_0x38c2bb);_0x5f7d18<_0x2ac651[_0x4cecb(0x292)];_0x5f7d18++)_0x44876b[_0x4cecb(0x1e2)](_0x2ac651[_0x5f7d18])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x4cecb(0x29b)](_0x38c2bb,_0x2ac651[_0x5f7d18])&&(_0x5cfbe3[_0x2ac651[_0x5f7d18]]=_0x38c2bb[_0x2ac651[_0x5f7d18]]);}return _0x5cfbe3;},j=f[_0x9d6b91(0x1c3)](function(_0x40bb69,_0x9febcc){var _0x5777f8=_0x9d6b91,_0xf11072=_0x40bb69[_0x5777f8(0x28a)],_0x36bb76=_0x40bb69['id'],_0x1a6877=_0x40bb69[_0x5777f8(0x242)],_0x3689f6=_0x40bb69[_0x5777f8(0x294)],_0x26e167=M(_0x40bb69,[_0x5777f8(0x28a),'id',_0x5777f8(0x242),'extend']),_0x330dff='univerjs-icon\x20univerjs-icon-'[_0x5777f8(0x261)](_0x36bb76,'\x20')[_0x5777f8(0x261)](_0x1a6877||'')[_0x5777f8(0x253)](),_0x22411b=f[_0x5777f8(0x247)]('_'[_0x5777f8(0x261)](G()));return y(_0xf11072,''[_0x5777f8(0x261)](_0x36bb76),{'defIds':_0xf11072['defIds'],'idSuffix':_0x22411b[_0x5777f8(0x255)]},u({'ref':_0x9febcc,'className':_0x330dff},_0x26e167),_0x3689f6);});function y(_0x2e5f5e,_0x26dbb6,_0x37dc2d,_0x1cb665,_0x59dd1b){var _0x1cadb2=_0x9d6b91;return f[_0x1cadb2(0x1df)](_0x2e5f5e[_0x1cadb2(0x230)],u(u({'key':_0x26dbb6},q(_0x2e5f5e,_0x37dc2d,_0x59dd1b)),_0x1cb665),(W(_0x2e5f5e,_0x37dc2d)['children']||[])[_0x1cadb2(0x250)](function(_0x4cf8cd,_0x41f1a){var _0x19424c=_0x1cadb2;return y(_0x4cf8cd,''[_0x19424c(0x261)](_0x26dbb6,'-')[_0x19424c(0x261)](_0x2e5f5e[_0x19424c(0x230)],'-')[_0x19424c(0x261)](_0x41f1a),_0x37dc2d,void 0x0,_0x59dd1b);}));}function q(_0x407eca,_0x291161,_0x173f68){var _0x3e344b=_0x9d6b91,_0x44add5=u({},_0x407eca[_0x3e344b(0x270)]);_0x173f68!=null&&_0x173f68[_0x3e344b(0x28b)]&&_0x44add5[_0x3e344b(0x1f2)]===_0x3e344b(0x28b)&&(_0x44add5[_0x3e344b(0x1f2)]=_0x173f68[_0x3e344b(0x28b)]),_0x407eca['tag']===_0x3e344b(0x1f4)&&_0x44add5['id']&&(_0x44add5['id']=_0x44add5['id']+_0x291161[_0x3e344b(0x1e6)]),Object[_0x3e344b(0x1d5)](_0x44add5)[_0x3e344b(0x1c0)](function(_0x401d0d){var _0x55f135=_0x3e344b,_0x1a85f2=_0x401d0d[0x0],_0x5d996a=_0x401d0d[0x1];_0x1a85f2===_0x55f135(0x1f4)&&typeof _0x5d996a=='string'&&(_0x44add5[_0x1a85f2]=_0x5d996a[_0x55f135(0x264)](/url\(#(.*)\)/,'url(#$1'[_0x55f135(0x261)](_0x291161[_0x55f135(0x1e6)],')')));});var _0x1abb9e=_0x291161[_0x3e344b(0x25d)];return!_0x1abb9e||_0x1abb9e[_0x3e344b(0x292)]===0x0||(_0x407eca[_0x3e344b(0x230)]===_0x3e344b(0x2a1)&&_0x44add5[_0x3e344b(0x1f7)]&&(_0x44add5['xlink:href']=_0x44add5[_0x3e344b(0x1f7)]+_0x291161[_0x3e344b(0x1e6)]),Object[_0x3e344b(0x1d5)](_0x44add5)[_0x3e344b(0x1c0)](function(_0xa2ab1f){var _0x28cfbb=_0x3e344b,_0x5b3da2=_0xa2ab1f[0x0],_0x7e16d1=_0xa2ab1f[0x1];typeof _0x7e16d1==_0x28cfbb(0x1b3)&&(_0x44add5[_0x5b3da2]=_0x7e16d1[_0x28cfbb(0x264)](/url\(#(.*)\)/,_0x28cfbb(0x26c)[_0x28cfbb(0x261)](_0x291161[_0x28cfbb(0x1e6)],')')));})),_0x44add5;}function W(_0x1f7484,_0x5bc195){var _0x533529=_0x9d6b91,_0x22cf89,_0x24572f=_0x5bc195[_0x533529(0x25d)];return!_0x24572f||_0x24572f[_0x533529(0x292)]===0x0?_0x1f7484:_0x1f7484[_0x533529(0x230)]===_0x533529(0x1d4)&&(!((_0x22cf89=_0x1f7484[_0x533529(0x298)])===null||_0x22cf89===void 0x0)&&_0x22cf89[_0x533529(0x292)])?u(u({},_0x1f7484),{'children':_0x1f7484['children']['map'](function(_0x444d0b){var _0x1a81ae=_0x533529;return typeof _0x444d0b[_0x1a81ae(0x270)]['id']==_0x1a81ae(0x1b3)&&_0x24572f&&_0x24572f[_0x1a81ae(0x271)](_0x444d0b['attrs']['id'])?u(u({},_0x444d0b),{'attrs':u(u({},_0x444d0b[_0x1a81ae(0x270)]),{'id':_0x444d0b[_0x1a81ae(0x270)]['id']+_0x5bc195[_0x1a81ae(0x1e6)]})}):_0x444d0b;})}):_0x1f7484;}function G(){var _0x3900cc=_0x9d6b91;return Math[_0x3900cc(0x278)]()[_0x3900cc(0x281)](0x24)[_0x3900cc(0x1b6)](0x2,0x8);}j[_0x9d6b91(0x265)]=_0x9d6b91(0x21c);var B={'tag':'svg','attrs':{'xmlns':_0x9d6b91(0x20e),'fill':_0x9d6b91(0x1c1),'viewBox':_0x9d6b91(0x214),'width':_0x9d6b91(0x1ff),'height':_0x9d6b91(0x1ff)},'children':[{'tag':_0x9d6b91(0x285),'attrs':{'fill':_0x9d6b91(0x1f9),'d':_0x9d6b91(0x254)}},{'tag':_0x9d6b91(0x285),'attrs':{'fill':_0x9d6b91(0x1f9),'d':_0x9d6b91(0x222),'fillRule':_0x9d6b91(0x274),'clipRule':_0x9d6b91(0x274)}}]},P=f[_0x9d6b91(0x1c3)](function(_0x5957d1,_0x1f8def){var _0x4dee45=_0x9d6b91;return f['createElement'](j,Object[_0x4dee45(0x1bd)]({},_0x5957d1,{'id':_0x4dee45(0x256),'ref':_0x1f8def,'icon':B}));});P[_0x9d6b91(0x265)]=_0x9d6b91(0x234);var Y=Object[_0x9d6b91(0x216)],R=(_0x56c3cf,_0x395c5c,_0x427a6f,_0x80e23a)=>{var _0x306bc8=_0x9d6b91;for(var _0x5f75e0=_0x80e23a>0x1?void 0x0:_0x80e23a?Y(_0x395c5c,_0x427a6f):_0x395c5c,_0x479fec=_0x56c3cf[_0x306bc8(0x292)]-0x1,_0x5218ca;_0x479fec>=0x0;_0x479fec--)(_0x5218ca=_0x56c3cf[_0x479fec])&&(_0x5f75e0=_0x5218ca(_0x5f75e0)||_0x5f75e0);return _0x5f75e0;},S=(_0x541dda,_0x2c9c3b)=>(_0x4e98e1,_0x3384cd)=>_0x2c9c3b(_0x4e98e1,_0x3384cd,_0x541dda);function _0x52df(){var _0x2f1b02=['tag','not-following','LIVESHARE_TERMINATE','OFFLINE','LiveShareIcon','_status$','_config','type','startFollowing','_unitID','merge','_reporters','react/jsx-runtime','@univerjs/sheets','mutations','registerInitialStateReporter','following','getMemberID','className','_injector','stopFollowing','status$','presenting','useRef','_init','_handleOffline','_fetchOperations','Injector','Module','idle','Present\x20this\x20document','_startLiveShareCoordinator','map','touchDependencies','_collabSession','trim','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','current','live-share-icon','IUniverInstanceService','2363388WskCbi','_entities','get','useState','text','defIds','asObservable','getCurrentTypeOfUnit$','_configService','concat','LiveShareService','_presenter','replace','displayName','registerDependencies','getTypeOfUnitDisposed$','onRendered','event$','863538GxIrey','DisposableCollection','url(#$1','6802164ZaeOrZ','_stopPresenting','@univerjs-pro/collaboration','attrs','includes','3MdXqgU','shouldShareOperation','evenodd','NOT_FOLLOWING','DependentOn','prototype','random','UNIVER_UNKNOWN','8040312qsEiEn','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_status','useEffect','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','executeCommand','toString','params','_handleNewHost','_uiPartsService','path','PRESENTING','CommandType','Inject','throttleTime','icon','colorChannel1','pipe','toDisposable','SetScrollOperation','dispose','@univerjs/core','hasOwnProperty','length','connectInjector','extend','clear','_handleOnline','Button','children','sessionStatus$','Dropdown','call','takeUntil','_collabSessionService','find','Disposable','rxjs','use','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','CollaborationEvent','string','HEADER_MENU','Stop\x20presenting','substring','DesktopLiveShareController','LIVESHARE_OPERATION','button','LiveShareCoordinator','useObservable','offline','assign','set','rxjs/operators','forEach','none','data','forwardRef','OPERATION','_startFollowing','LiveShare','You\x27are\x20offline.','SetZoomRatioOperation','2956915HpXPRX','then','registerSharedOperation','symbol','_handleOperation','default','IConfigService','onCommandExecuted','presenter','memberID','_sharedOperations','defs','entries','add','_beIdle','reverse','unitId','setConfig','getLiveShareCoordinator','useDependency','getOwnPropertySymbols','You\x27re\x20presenting\x20the\x20document','createElement','send','createInstance','indexOf','jsx','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','idSuffix','Fragment','_mountLiveShare','tryStartPresenting','_handleTerminate','_commandService','parseProtocolChangeset','Start\x20following','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','UNIVER_SHEET','clsx','fill','subscribe','mask','_liveShareService','FOLLOWING','xlink:href','_handleNewChangeSets','currentColor','getInitialStates','LiveShareStatus','stopPresenting','LiveShareController','48933ptQpQB','1em','LIVESHARE_REQUEST_HOST','UniverLiveSharePlugin','BehaviorSubject','unsubscribe','Stop\x20following','parse','disposeWithMe','react','SetWorksheetActiveOperation','Plugin','pluginName','jsxs','complete','init','http://www.w3.org/2000/svg','getValue','3504ycmuWY','LIVESHARE_NEW_HOST','getConfig','InsertSheetMutation','0\x200\x2017\x2017','Start','getOwnPropertyDescriptor','@univerjs/design','1076844XISdBt','onStarting','div','_commandDisposable','UniverIcon','_startPresenting','defineProperty','delete','apply','dispose$','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','NEW_CHANGESETS','next','has','stringify','SessionStatus','from','UniverInstanceType','IDLE','requireSession','@univerjs/ui','_stopFollowing','ICommandService','registerComponent'];_0x52df=function(){return _0x2f1b02;};return _0x52df();}exports[_0x9d6b91(0x1fd)]=class extends o['RxDisposable']{constructor(_0x1345d9,_0x57ed8a,_0x59fc46){var _0x3f6f82=_0x9d6b91;super(),v(this,_0x3f6f82(0x259),new Map()),(this[_0x3f6f82(0x1ef)]=_0x1345d9,this[_0x3f6f82(0x243)]=_0x57ed8a,this['_collabSessionService']=_0x59fc46,this[_0x3f6f82(0x248)]());}async[_0x9d6b91(0x1db)](_0x1ab2ff){var _0x263fed=_0x9d6b91;return this['_entities'][_0x263fed(0x225)](_0x1ab2ff)||await this[_0x263fed(0x24f)](_0x1ab2ff),this['_entities'][_0x263fed(0x25a)](_0x1ab2ff);}[_0x9d6b91(0x248)](){var _0x470ab1=_0x9d6b91;this[_0x470ab1(0x1ef)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x470ab1(0x1f0)])['pipe'](b[_0x470ab1(0x29c)](this[_0x470ab1(0x221)]))[_0x470ab1(0x1f3)](async _0x2f8d16=>{var _0x44d3fe=_0x470ab1;const _0x446de5=_0x2f8d16['getUnitId']();this['_entities']['has'](_0x446de5)||this[_0x44d3fe(0x24f)](_0x446de5);}),this[_0x470ab1(0x1ef)][_0x470ab1(0x267)](o[_0x470ab1(0x229)][_0x470ab1(0x1f0)])[_0x470ab1(0x28c)](b[_0x470ab1(0x29c)](this[_0x470ab1(0x221)]))[_0x470ab1(0x1f3)](_0x3b964b=>{var _0x4aa62f=_0x470ab1;const _0x246068=_0x3b964b[_0x4aa62f(0x1e5)](),_0x36f471=this[_0x4aa62f(0x259)]['get'](_0x246068);_0x36f471==null||_0x36f471['dispose']();});}async[_0x9d6b91(0x24f)](_0x28f0c7){var _0x4b174e=_0x9d6b91;const _0x41f12d=await this[_0x4b174e(0x29d)][_0x4b174e(0x22b)](_0x28f0c7),_0x15b3e6=this[_0x4b174e(0x243)][_0x4b174e(0x1e1)](exports[_0x4b174e(0x1ba)],_0x28f0c7,_0x41f12d);return _0x15b3e6[_0x4b174e(0x20d)](),this['_entities']['set'](_0x28f0c7,_0x15b3e6),_0x15b3e6;}},exports[_0x9d6b91(0x1fd)]=R([S(0x0,o[_0x9d6b91(0x257)]),S(0x1,o[_0x9d6b91(0x288)](o['Injector'])),S(0x2,o[_0x9d6b91(0x288)](m['CollaborationSessionService']))],exports[_0x9d6b91(0x1fd)]);var h=(_0x566847=>(_0x566847[_0x9d6b91(0x233)]=_0x9d6b91(0x1bc),_0x566847[_0x9d6b91(0x22a)]=_0x9d6b91(0x24d),_0x566847[_0x9d6b91(0x1f6)]=_0x9d6b91(0x240),_0x566847[_0x9d6b91(0x275)]=_0x9d6b91(0x231),_0x566847[_0x9d6b91(0x286)]=_0x9d6b91(0x246),_0x566847))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x19d53b,_0x1328ad,_0x150b68,_0x3f1db7,_0x772e87){var _0x460a30=_0x9d6b91;super(),v(this,_0x460a30(0x235),new D[(_0x460a30(0x202))](_0x460a30(0x24d))),v(this,'status$',this[_0x460a30(0x235)][_0x460a30(0x25e)]()),v(this,_0x460a30(0x248),!0x1),v(this,'_commandDisposable',null),v(this,_0x460a30(0x263),null),(this[_0x460a30(0x239)]=_0x19d53b,this[_0x460a30(0x252)]=_0x1328ad,this[_0x460a30(0x260)]=_0x150b68,this[_0x460a30(0x1f5)]=_0x3f1db7,this[_0x460a30(0x1eb)]=_0x772e87);}get[_0x9d6b91(0x27c)](){var _0x2e640b=_0x9d6b91;return this[_0x2e640b(0x235)][_0x2e640b(0x20f)]();}[_0x9d6b91(0x28f)](){var _0x3c149a=_0x9d6b91,_0x576b80;(_0x576b80=this[_0x3c149a(0x21b)])==null||_0x576b80[_0x3c149a(0x28f)](),this[_0x3c149a(0x235)][_0x3c149a(0x224)](_0x3c149a(0x24d)),this[_0x3c149a(0x235)][_0x3c149a(0x20c)]();}[_0x9d6b91(0x20d)](){var _0x5bbf99=_0x9d6b91;this['_init']||(this['_init']=!0x0,this[_0x5bbf99(0x252)][_0x5bbf99(0x299)][_0x5bbf99(0x28c)](b[_0x5bbf99(0x29c)](this[_0x5bbf99(0x221)]))[_0x5bbf99(0x1f3)](_0x31494b=>{var _0x2d7d80=_0x5bbf99;switch(_0x31494b){case m['SessionStatus']['OFFLINE']:this[_0x2d7d80(0x249)]();break;case m[_0x2d7d80(0x227)][_0x2d7d80(0x27f)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x5bbf99(0x269)][_0x5bbf99(0x28c)](b[_0x5bbf99(0x29c)](this['dispose$']))[_0x5bbf99(0x1f3)](_0x5a2842=>{var _0x30ef93=_0x5bbf99;const {eventID:_0xe1f1b8}=_0x5a2842;switch(_0xe1f1b8){case _[_0x30ef93(0x1b2)][_0x30ef93(0x211)]:this[_0x30ef93(0x283)](_0x5a2842);break;case _[_0x30ef93(0x1b2)][_0x30ef93(0x1b8)]:this[_0x30ef93(0x1cd)](_0x5a2842);break;case _[_0x30ef93(0x1b2)][_0x30ef93(0x232)]:this[_0x30ef93(0x1ea)]();break;case _[_0x30ef93(0x1b2)][_0x30ef93(0x223)]:this[_0x30ef93(0x1f8)](_0x5a2842);break;}}));}[_0x9d6b91(0x1e9)](){var _0x221523=_0x9d6b91;this['_collabSession']['send']({'eventID':_[_0x221523(0x1b2)][_0x221523(0x200)],'data':{'unitID':this[_0x221523(0x239)],'userID':this[_0x221523(0x252)]['getMemberID']()}},this[_0x221523(0x239)]);}[_0x9d6b91(0x1fc)](){var _0xa9847a=_0x9d6b91;this[_0xa9847a(0x27c)]==='presenting'&&(this[_0xa9847a(0x235)][_0xa9847a(0x224)](_0xa9847a(0x24d)),this[_0xa9847a(0x252)]['send']({'eventID':_[_0xa9847a(0x1b2)][_0xa9847a(0x232)],'data':{'unitID':this[_0xa9847a(0x239)]}},this[_0xa9847a(0x239)]));}[_0x9d6b91(0x238)](){var _0x2492fd=_0x9d6b91;this[_0x2492fd(0x27c)]===_0x2492fd(0x231)&&(this[_0x2492fd(0x235)][_0x2492fd(0x224)](_0x2492fd(0x240)),this[_0x2492fd(0x1c5)]());}[_0x9d6b91(0x244)](){var _0x309302=_0x9d6b91;this['_status']===_0x309302(0x240)&&this[_0x309302(0x22d)]();}[_0x9d6b91(0x283)](_0x26c01b){var _0x20472b=_0x9d6b91;const {presenter:_0x1ad43d}=_0x26c01b[_0x20472b(0x1c2)],_0x22d60e=this[_0x20472b(0x252)]['getMemberID']();this[_0x20472b(0x263)]=_0x1ad43d,_0x1ad43d===_0x22d60e?(this[_0x20472b(0x22d)](),this[_0x20472b(0x21d)]()):this['_status']!==_0x20472b(0x231)&&(this['_stopPresenting'](),this[_0x20472b(0x1c5)]());}[_0x9d6b91(0x24a)](){var _0x5a2ceb=_0x9d6b91;const _0x2d373f={'eventID':_[_0x5a2ceb(0x1b2)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5a2ceb(0x252)][_0x5a2ceb(0x1e0)](_0x2d373f,this[_0x5a2ceb(0x239)]);}[_0x9d6b91(0x1ea)](){var _0x45608b=_0x9d6b91;this[_0x45608b(0x263)]=null,this[_0x45608b(0x27c)]!==_0x45608b(0x246)&&this[_0x45608b(0x1d7)]();}[_0x9d6b91(0x1f8)](_0x3b9abc){var _0x410945=_0x9d6b91;if(this[_0x410945(0x27c)]===_0x410945(0x240)&&this[_0x410945(0x263)]===_0x3b9abc[_0x410945(0x1c2)][_0x410945(0x1d2)]){const _0x20b942=_[_0x410945(0x1ec)](_0x3b9abc[_0x410945(0x1c2)])[_0x410945(0x23e)][_0x410945(0x1d8)]()[_0x410945(0x29e)](_0xdab5ce=>_0xdab5ce['id']===C[_0x410945(0x213)]['id']);if(_0x20b942){const _0x1b8066=_0x20b942[_0x410945(0x282)][_0x410945(0x1d9)],_0x367b45=_0x20b942['params']['sheet']['id'];setTimeout(()=>{var _0x6de9e3=_0x410945;this[_0x6de9e3(0x1eb)]['executeCommand'](C[_0x6de9e3(0x208)]['id'],{'unitId':_0x1b8066,'subUnitId':_0x367b45},{'fromCollab':!0x0});});}}}[_0x9d6b91(0x21d)](){var _0x3e4afc=_0x9d6b91;this['_status$'][_0x3e4afc(0x224)](_0x3e4afc(0x246));const _0xd612b2=new Map(),_0x2c6704=this[_0x3e4afc(0x21b)]=new o[(_0x3e4afc(0x26b))]();_0x2c6704['add'](o['toDisposable'](()=>{var _0x3fa14e=_0x3e4afc;_0xd612b2[_0x3fa14e(0x1c0)](_0x5818a6=>_0x5818a6['complete']()),_0xd612b2[_0x3fa14e(0x295)]();})),_0x2c6704['add'](this[_0x3e4afc(0x1eb)][_0x3e4afc(0x1d0)](_0x36ee7d=>{var _0x534ca5=_0x3e4afc,_0x4b69f7;if(_0x36ee7d[_0x534ca5(0x237)]!==o[_0x534ca5(0x287)][_0x534ca5(0x1c4)]||!this[_0x534ca5(0x1f5)]['shouldShareOperation'](_0x36ee7d['id']))return;const {id:_0xbfe175}=_0x36ee7d;let _0x52a565;_0xd612b2[_0x534ca5(0x225)](_0xbfe175)?_0x52a565=_0xd612b2[_0x534ca5(0x25a)](_0xbfe175):(_0x52a565=new D['Subject'](),_0xd612b2[_0x534ca5(0x1be)](_0xbfe175,_0x52a565),_0x52a565[_0x534ca5(0x28c)](b[_0x534ca5(0x289)]((_0x4b69f7=this['_configService'][_0x534ca5(0x212)](Z))!=null?_0x4b69f7:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x534ca5(0x1f3)](_0x2e3661=>{var _0x1e393=_0x534ca5;this['_collabSession'][_0x1e393(0x1e0)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2e3661['id']]:{'id':_0x2e3661['id'],'params':JSON[_0x1e393(0x226)](_0x2e3661[_0x1e393(0x282)])}}}},this[_0x1e393(0x239)]);})),_0x52a565[_0x534ca5(0x224)](_0x36ee7d);})),this[_0x3e4afc(0x1f5)][_0x3e4afc(0x1fa)](this[_0x3e4afc(0x239)])[_0x3e4afc(0x1c0)](_0xa5599a=>this['_collabSession'][_0x3e4afc(0x1e0)]({'eventID':_[_0x3e4afc(0x1b2)][_0x3e4afc(0x1b8)],'data':{'unitID':this[_0x3e4afc(0x239)],'operations':{[_0xa5599a['id']]:{'id':_0xa5599a['id'],'params':JSON['stringify'](_0xa5599a['params'])}}}},this[_0x3e4afc(0x239)]));}[_0x9d6b91(0x26e)](){var _0x311d05=_0x9d6b91,_0x1252d8;this[_0x311d05(0x235)]['next'](_0x311d05(0x24d)),(_0x1252d8=this[_0x311d05(0x21b)])==null||_0x1252d8[_0x311d05(0x28f)](),this['_commandDisposable']=null;}[_0x9d6b91(0x1c5)](){var _0x3eab51=_0x9d6b91,_0x29e1b0;(_0x29e1b0=this['_commandDisposable'])==null||_0x29e1b0[_0x3eab51(0x28f)](),this[_0x3eab51(0x235)]['next'](_0x3eab51(0x240));}[_0x9d6b91(0x1d7)](){var _0x4f303e=_0x9d6b91,_0x165c6e;this[_0x4f303e(0x235)][_0x4f303e(0x224)](_0x4f303e(0x24d)),(_0x165c6e=this['_commandDisposable'])==null||_0x165c6e[_0x4f303e(0x28f)](),this[_0x4f303e(0x21b)]=null;}[_0x9d6b91(0x22d)](){var _0x2d0f3b=_0x9d6b91,_0x13d905;this[_0x2d0f3b(0x235)]['next'](_0x2d0f3b(0x231)),(_0x13d905=this[_0x2d0f3b(0x21b)])==null||_0x13d905[_0x2d0f3b(0x28f)]();}[_0x9d6b91(0x1cd)](_0x551d90){var _0x38a214=_0x9d6b91;if(['presenting',_0x38a214(0x231),_0x38a214(0x1bc)][_0x38a214(0x271)](this[_0x38a214(0x27c)])||!_0x551d90[_0x38a214(0x1c2)][_0x38a214(0x1d1)]||_0x551d90[_0x38a214(0x1c2)][_0x38a214(0x1d1)]===this[_0x38a214(0x252)][_0x38a214(0x241)]())return;this[_0x38a214(0x27c)]===_0x38a214(0x24d)&&this['_startFollowing']();const _0x49fed5=_0x551d90[_0x38a214(0x1c2)]['operations'];Object['values'](_0x49fed5)[_0x38a214(0x1c0)](_0x49b2ac=>{var _0x5c78f2=_0x38a214;this[_0x5c78f2(0x1eb)][_0x5c78f2(0x280)](_0x49b2ac['id'],_0x49b2ac['params']?JSON[_0x5c78f2(0x205)](_0x49b2ac[_0x5c78f2(0x282)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x5ef81a=_0x9d6b91,_0x44f661;this[_0x5ef81a(0x235)][_0x5ef81a(0x224)](_0x5ef81a(0x1bc)),(_0x44f661=this[_0x5ef81a(0x21b)])==null||_0x44f661['dispose']();}[_0x9d6b91(0x296)](){var _0x425949=_0x9d6b91;this[_0x425949(0x235)]['next'](_0x425949(0x24d)),this[_0x425949(0x24a)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x9d6b91(0x1cf)]),S(0x3,o[_0x9d6b91(0x288)](O)),S(0x4,o[_0x9d6b91(0x22e)])],exports[_0x9d6b91(0x1ba)]);function A(){var _0x1ea1f2=_0x9d6b91;const _0x19a191=p[_0x1ea1f2(0x1dc)](exports[_0x1ea1f2(0x1fd)]),_0x1b89d3=p[_0x1ea1f2(0x1dc)](o[_0x1ea1f2(0x257)]),_0x2e261c=p[_0x1ea1f2(0x1bb)](()=>_0x1b89d3[_0x1ea1f2(0x25f)](o[_0x1ea1f2(0x229)][_0x1ea1f2(0x1f0)]),void 0x0,!0x1,[]),[_0x5c6089,_0x31aa72]=f['useState'](null),[_0xaf9f70,_0x3371c8]=f[_0x1ea1f2(0x25b)](h[_0x1ea1f2(0x22a)]),_0x4f7301=f[_0x1ea1f2(0x247)](null);return f[_0x1ea1f2(0x27d)](()=>(_0x2e261c&&_0x19a191[_0x1ea1f2(0x1db)](_0x2e261c['getUnitId']())[_0x1ea1f2(0x1ca)](_0xe6e4ac=>{var _0x7d2f2b=_0x1ea1f2;_0x31aa72(_0xe6e4ac),_0x4f7301[_0x7d2f2b(0x255)]=_0xe6e4ac[_0x7d2f2b(0x245)]['subscribe'](_0x1ecce4=>{_0x3371c8(_0x1ecce4);});}),()=>{var _0x1a41bb=_0x1ea1f2,_0x121386;(_0x121386=_0x4f7301[_0x1a41bb(0x255)])==null||_0x121386[_0x1a41bb(0x203)](),_0x4f7301[_0x1a41bb(0x255)]=null;}),[_0x2e261c,_0x19a191]),_0x5c6089?l[_0x1ea1f2(0x1e3)](g[_0x1ea1f2(0x29a)],{'align':'end','disabled':_0xaf9f70===h[_0x1ea1f2(0x233)],'className':_0x1ea1f2(0x27b),'overlay':l['jsx'](K,{'status':_0xaf9f70,'coordinator':_0x5c6089}),'children':l[_0x1ea1f2(0x1e3)](_0x1ea1f2(0x1b9),{'className':g[_0x1ea1f2(0x1f1)](_0x1ea1f2(0x2a2),{'univer-cursor-not-allowed':_0xaf9f70===h[_0x1ea1f2(0x233)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xaf9f70!==h[_0x1ea1f2(0x233)]}),'type':'button','children':l[_0x1ea1f2(0x1e3)](P,{'className':'univer-size-4'})})}):null;}function K(_0x595e04){var _0x1bb7c4=_0x9d6b91;const {status:_0x7c4737,coordinator:_0x5d861d}=_0x595e04;switch(_0x7c4737){case h[_0x1bb7c4(0x22a)]:return l[_0x1bb7c4(0x1e3)](z,{'coordinator':_0x5d861d});case h[_0x1bb7c4(0x1f6)]:return l[_0x1bb7c4(0x1e3)](Q,{'coordinator':_0x5d861d});case h['NOT_FOLLOWING']:return l['jsx'](X,{'coordinator':_0x5d861d});case h[_0x1bb7c4(0x233)]:return l[_0x1bb7c4(0x1e3)](te,{});case h[_0x1bb7c4(0x286)]:return l['jsx'](ee,{'coordinator':_0x5d861d});default:return null;}}function z(_0x2e4072){var _0x2ff082=_0x9d6b91;const {coordinator:_0x4dbc00}=_0x2e4072;return l[_0x2ff082(0x20b)](l[_0x2ff082(0x1e7)],{'children':[l['jsx'](_0x2ff082(0x21a),{'className':_0x2ff082(0x27e),'children':_0x2ff082(0x24e)}),l[_0x2ff082(0x1e3)](g[_0x2ff082(0x297)],{'onClick':()=>_0x4dbc00[_0x2ff082(0x1e9)](),'children':_0x2ff082(0x215)})]});}function Q(_0x5b0342){var _0x4ea19a=_0x9d6b91;const {coordinator:_0x1898ec}=_0x5b0342;return l['jsxs'](l[_0x4ea19a(0x1e7)],{'children':[l[_0x4ea19a(0x1e3)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4ea19a(0x1ee)}),l[_0x4ea19a(0x1e3)](g['Button'],{'onClick':()=>_0x1898ec[_0x4ea19a(0x244)](),'children':_0x4ea19a(0x204)})]});}function _0x43ed(_0x7d133a,_0x162fd1){var _0x52df25=_0x52df();return _0x43ed=function(_0x43ed75,_0x58ac2a){_0x43ed75=_0x43ed75-0x1b2;var _0x17daf2=_0x52df25[_0x43ed75];return _0x17daf2;},_0x43ed(_0x7d133a,_0x162fd1);}function X(_0x3df449){var _0x330ea3=_0x9d6b91;const {coordinator:_0x325369}=_0x3df449;return l['jsxs'](l[_0x330ea3(0x1e7)],{'children':[l[_0x330ea3(0x1e3)](_0x330ea3(0x21a),{'className':_0x330ea3(0x27e),'children':_0x330ea3(0x1e4)}),l['jsx'](g[_0x330ea3(0x297)],{'variant':_0x330ea3(0x25c),'onClick':()=>_0x325369[_0x330ea3(0x238)](),'children':_0x330ea3(0x1ed)})]});}function ee(_0x1f69db){var _0x422d6a=_0x9d6b91;const {coordinator:_0x460c4e}=_0x1f69db;return l[_0x422d6a(0x20b)](l[_0x422d6a(0x1e7)],{'children':[l['jsx'](_0x422d6a(0x21a),{'className':_0x422d6a(0x27e),'children':_0x422d6a(0x1de)}),l[_0x422d6a(0x1e3)](g[_0x422d6a(0x297)],{'variant':_0x422d6a(0x1ce),'onClick':()=>_0x460c4e['stopPresenting'](),'children':_0x422d6a(0x1b5)})]});}function te(){var _0xe7d7c6=_0x9d6b91;return l[_0xe7d7c6(0x1e3)](l['Fragment'],{'children':_0xe7d7c6(0x1c7)});}var ie=Object[_0x9d6b91(0x216)],ne=(_0x3bd859,_0x2402d1,_0x2a7224,_0x3a9b37)=>{var _0x82525b=_0x9d6b91;for(var _0x542950=_0x3a9b37>0x1?void 0x0:_0x3a9b37?ie(_0x2402d1,_0x2a7224):_0x2402d1,_0x352a45=_0x3bd859[_0x82525b(0x292)]-0x1,_0x569af0;_0x352a45>=0x0;_0x352a45--)(_0x569af0=_0x3bd859[_0x352a45])&&(_0x542950=_0x569af0(_0x542950)||_0x542950);return _0x542950;},L=(_0x5159bd,_0x26c40c)=>(_0x2e4507,_0x90e087)=>_0x26c40c(_0x2e4507,_0x90e087,_0x5159bd);exports[_0x9d6b91(0x1b7)]=class extends o['Disposable']{constructor(_0x361953,_0x3acd10){var _0x41e601=_0x9d6b91;super(),this[_0x41e601(0x243)]=_0x361953,this[_0x41e601(0x284)]=_0x3acd10,this[_0x41e601(0x1e8)]();}[_0x9d6b91(0x1e8)](){var _0x1f0987=_0x9d6b91;this[_0x1f0987(0x206)](this['_uiPartsService'][_0x1f0987(0x22f)](p['BuiltInUIPart'][_0x1f0987(0x1b4)],()=>p[_0x1f0987(0x293)](A,this[_0x1f0987(0x243)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x9d6b91(0x288)](o[_0x9d6b91(0x24b)])),L(0x1,p['IUIPartsService'])],exports[_0x9d6b91(0x1b7)]);var re=Object[_0x9d6b91(0x21e)],se=Object[_0x9d6b91(0x216)],oe=(_0x551198,_0x351752,_0x3e55ee)=>_0x351752 in _0x551198?re(_0x551198,_0x351752,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e55ee}):_0x551198[_0x351752]=_0x3e55ee,ae=(_0x4c0173,_0x4b88cd,_0x2cd5dc,_0x1f7358)=>{var _0x4d19d2=_0x9d6b91;for(var _0x5503e4=_0x1f7358>0x1?void 0x0:_0x1f7358?se(_0x4b88cd,_0x2cd5dc):_0x4b88cd,_0xa21e9e=_0x4c0173[_0x4d19d2(0x292)]-0x1,_0x3c7b67;_0xa21e9e>=0x0;_0xa21e9e--)(_0x3c7b67=_0x4c0173[_0xa21e9e])&&(_0x5503e4=_0x3c7b67(_0x5503e4)||_0x5503e4);return _0x5503e4;},N=(_0x250a62,_0x19f7f1)=>(_0xd40993,_0x5e3d59)=>_0x19f7f1(_0xd40993,_0x5e3d59,_0x250a62),T=(_0x139a34,_0xdb0633,_0x41f2c1)=>oe(_0x139a34,typeof _0xdb0633!='symbol'?_0xdb0633+'':_0xdb0633,_0x41f2c1);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x9d6b91(0x201)]=class extends o[_0x9d6b91(0x209)]{constructor(_0x42c11d=x,_0x2d1437,_0x4ff154){var _0x434146=_0x9d6b91;super(),this[_0x434146(0x236)]=_0x42c11d,this[_0x434146(0x243)]=_0x2d1437,this[_0x434146(0x260)]=_0x4ff154;const {..._0x5e58f7}=o[_0x434146(0x23a)]({},x,this['_config']);this[_0x434146(0x260)][_0x434146(0x1da)]($,_0x5e58f7);}[_0x9d6b91(0x219)](){var _0x629478=_0x9d6b91;o[_0x629478(0x266)](this[_0x629478(0x243)],o['mergeOverrideWithDependencies']([[O],[exports[_0x629478(0x1fd)]],[E],[exports[_0x629478(0x1b7)]]],this[_0x629478(0x236)]['override'])),o['touchDependencies'](this[_0x629478(0x243)],[[E]]);}[_0x9d6b91(0x268)](){var _0x29d399=_0x9d6b91;o[_0x29d399(0x251)](this['_injector'],[[exports[_0x29d399(0x1b7)]]]);}},T(exports[_0x9d6b91(0x201)],'type',o[_0x9d6b91(0x229)][_0x9d6b91(0x279)]),T(exports[_0x9d6b91(0x201)],_0x9d6b91(0x20a),le),exports[_0x9d6b91(0x201)]=ae([o[_0x9d6b91(0x276)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x9d6b91(0x288)](o['Injector'])),N(0x2,o[_0x9d6b91(0x1cf)])],exports[_0x9d6b91(0x201)]),exports[_0x9d6b91(0x1c6)]=A,exports[_0x9d6b91(0x262)]=O,exports[_0x9d6b91(0x1fb)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x29ea9a=_0x51d1;(function(_0x2e539b,_0x30b79d){var _0x442bc2=_0x51d1,_0x2006dd=_0x2e539b();while(!![]){try{var _0x21830c=-parseInt(_0x442bc2(0x107))/0x1+parseInt(_0x442bc2(0x18d))/0x2*(parseInt(_0x442bc2(0x125))/0x3)+parseInt(_0x442bc2(0x121))/0x4*(-parseInt(_0x442bc2(0x16b))/0x5)+parseInt(_0x442bc2(0x184))/0x6+-parseInt(_0x442bc2(0x10d))/0x7+parseInt(_0x442bc2(0x15f))/0x8*(parseInt(_0x442bc2(0x15d))/0x9)+parseInt(_0x442bc2(0x18a))/0xa*(parseInt(_0x442bc2(0x16a))/0xb);if(_0x21830c===_0x30b79d)break;else _0x2006dd['push'](_0x2006dd['shift']());}catch(_0x35012c){_0x2006dd['push'](_0x2006dd['shift']());}}}(_0x1c84,0xc04ca));var q=Object[_0x29ea9a(0xe3)],z=(_0x1e27de,_0x3e9bd2,_0x102936)=>_0x3e9bd2 in _0x1e27de?q(_0x1e27de,_0x3e9bd2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102936}):_0x1e27de[_0x3e9bd2]=_0x102936,d=(_0x30636d,_0x190c7f,_0x1a56e2)=>z(_0x30636d,typeof _0x190c7f!=_0x29ea9a(0x15c)?_0x190c7f+'':_0x190c7f,_0x1a56e2);import{CollaborationSessionService as _0x94a5e1,SessionStatus as _0x2862a6,UniverCollaborationClientPlugin as _0x1a961f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x31e7a4,toDisposable as _0x5bc629,Inject as _0xf646c1,IUniverInstanceService as _0x3459c1,Injector as _0x4498f3,IConfigService as _0x548d47,ICommandService as _0x1b0ea8,RxDisposable as _0x4e23fa,UniverInstanceType as _0x2e7d47,DisposableCollection as _0x20d871,CommandType as _0x110f27,DependentOn as _0x484a52,Plugin as _0xe5ff50,merge as _0x1fc8bd,registerDependencies as _0x2df774,mergeOverrideWithDependencies as _0x1e76da,touchDependencies as _0x21061e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4a98a2,InsertSheetMutation as _0x438976}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x9bc1a6,SetScrollOperation as _0x35abd8}from'@univerjs/sheets-ui';import{useDependency as _0x1c7154,useObservable as _0x47ceac,IUIPartsService as _0x410032,BuiltInUIPart as _0x591b35,connectInjector as _0x2ac8da}from'@univerjs/ui';import{jsx as _0x4a136f,jsxs as _0x6bb112,Fragment as _0x1f470d}from'react/jsx-runtime';import{Dropdown as _0x1f3e5a,clsx as _0x42ee3f,Button as _0x1b521d}from'@univerjs/design';import{forwardRef as _0x583fa1,useRef as _0x5b9881,createElement as _0x4ad7a6,useState as _0x445d54,useEffect as _0x212ac3}from'react';import{CollaborationEvent as _0x4ba672,parseProtocolChangeset as _0x3bfe1e}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2ba6f1,Subject as _0x2ae17d}from'rxjs';import{takeUntil as _0xe8d355,throttleTime as _0x66b6b3}from'rxjs/operators';function _0x51d1(_0x329407,_0x58d95c){var _0x1c846c=_0x1c84();return _0x51d1=function(_0x51d167,_0x5f2db0){_0x51d167=_0x51d167-0xe2;var _0x1d1a4e=_0x1c846c[_0x51d167];return _0x1d1a4e;},_0x51d1(_0x329407,_0x58d95c);}const Oe=_0x29ea9a(0x17e),T={};class L extends _0x31e7a4{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x49f752){var _0x230441=_0x29ea9a;return this['_sharedOperations'][_0x230441(0x154)](_0x49f752),_0x5bc629(()=>this[_0x230441(0x174)][_0x230441(0x118)](_0x49f752));}[_0x29ea9a(0x190)](_0x22e292){var _0x4a4c06=_0x29ea9a;return this['_reporters'][_0x4a4c06(0x154)](_0x22e292),_0x5bc629(()=>this[_0x4a4c06(0x164)]['delete'](_0x22e292));}[_0x29ea9a(0x12b)](_0x2e6cb2){var _0x4ece42=_0x29ea9a;return this['_sharedOperations'][_0x4ece42(0x169)](_0x2e6cb2);}['getInitialStates'](_0x51579d){var _0x22cbd6=_0x29ea9a;return Array[_0x22cbd6(0xec)](this['_reporters'])[_0x22cbd6(0x152)](_0x534788=>_0x534788(_0x51579d));}}var Ee=Object[_0x29ea9a(0x144)],we=(_0x4729e6,_0x25efc6,_0x4428ce,_0x5dd2d0)=>{var _0x523514=_0x29ea9a;for(var _0xc78f72=_0x5dd2d0>0x1?void 0x0:_0x5dd2d0?Ee(_0x25efc6,_0x4428ce):_0x25efc6,_0x355086=_0x4729e6[_0x523514(0xfd)]-0x1,_0x219f89;_0x355086>=0x0;_0x355086--)(_0x219f89=_0x4729e6[_0x355086])&&(_0xc78f72=_0x219f89(_0xc78f72)||_0xc78f72);return _0xc78f72;},Ne=(_0x17cca6,_0xa35939)=>(_0x5730c2,_0x314f4a)=>_0xa35939(_0x5730c2,_0x314f4a,_0x17cca6);let m=class extends _0x31e7a4{constructor(_0x456393){var _0x32c753=_0x29ea9a;super(),this[_0x32c753(0xe7)]=_0x456393,this[_0x32c753(0x191)]();}['_init'](){var _0x16f081=_0x29ea9a;[_0x9bc1a6['id'],_0x35abd8['id'],_0x4a98a2['id']][_0x16f081(0xfe)](_0x2dd668=>{var _0x50365d=_0x16f081;this[_0x50365d(0x11f)](this['_liveShareService']['registerSharedOperation'](_0x2dd668));});}};m=we([Ne(0x0,_0xf646c1(L))],m);var c=function(){var _0x4f80ae=_0x29ea9a;return c=Object[_0x4f80ae(0x129)]||function(_0x546113){var _0x1a2a1a=_0x4f80ae;for(var _0x2504bc,_0x5b7c09=0x1,_0x319fa3=arguments[_0x1a2a1a(0xfd)];_0x5b7c09<_0x319fa3;_0x5b7c09++){_0x2504bc=arguments[_0x5b7c09];for(var _0x37eb23 in _0x2504bc)Object[_0x1a2a1a(0xf8)][_0x1a2a1a(0x156)]['call'](_0x2504bc,_0x37eb23)&&(_0x546113[_0x37eb23]=_0x2504bc[_0x37eb23]);}return _0x546113;},c[_0x4f80ae(0x10f)](this,arguments);},Ce=function(_0x16c132,_0x13cf8f){var _0x3e8ae1=_0x29ea9a,_0x31237b={};for(var _0x19e3ca in _0x16c132)Object[_0x3e8ae1(0xf8)][_0x3e8ae1(0x156)][_0x3e8ae1(0x115)](_0x16c132,_0x19e3ca)&&_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca)<0x0&&(_0x31237b[_0x19e3ca]=_0x16c132[_0x19e3ca]);if(_0x16c132!=null&&typeof Object['getOwnPropertySymbols']==_0x3e8ae1(0x12a)){for(var _0x5ab7cc=0x0,_0x19e3ca=Object[_0x3e8ae1(0xed)](_0x16c132);_0x5ab7cc<_0x19e3ca[_0x3e8ae1(0xfd)];_0x5ab7cc++)_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca[_0x5ab7cc])<0x0&&Object[_0x3e8ae1(0xf8)]['propertyIsEnumerable']['call'](_0x16c132,_0x19e3ca[_0x5ab7cc])&&(_0x31237b[_0x19e3ca[_0x5ab7cc]]=_0x16c132[_0x19e3ca[_0x5ab7cc]]);}return _0x31237b;},W=_0x583fa1(function(_0x59348e,_0x575072){var _0x22ea0f=_0x29ea9a,_0x1a3048=_0x59348e[_0x22ea0f(0x110)],_0x501b1e=_0x59348e['id'],_0x428719=_0x59348e['className'],_0x4a1f29=_0x59348e[_0x22ea0f(0x185)],_0x5daae5=Ce(_0x59348e,[_0x22ea0f(0x110),'id',_0x22ea0f(0x162),_0x22ea0f(0x185)]),_0xdfe4ba=_0x22ea0f(0xe2)[_0x22ea0f(0x15a)](_0x501b1e,'\x20')[_0x22ea0f(0x15a)](_0x428719||'')[_0x22ea0f(0x14e)](),_0x8c5030=_0x5b9881('_'[_0x22ea0f(0x15a)](Le()));return Y(_0x1a3048,''['concat'](_0x501b1e),{'defIds':_0x1a3048[_0x22ea0f(0x16d)],'idSuffix':_0x8c5030[_0x22ea0f(0x150)]},c({'ref':_0x575072,'className':_0xdfe4ba},_0x5daae5),_0x4a1f29);});function Y(_0x351519,_0x7b0a64,_0x40ce57,_0x167839,_0x617ee6){var _0x123fb6=_0x29ea9a;return _0x4ad7a6(_0x351519[_0x123fb6(0x153)],c(c({'key':_0x7b0a64},De(_0x351519,_0x40ce57,_0x617ee6)),_0x167839),(xe(_0x351519,_0x40ce57)['children']||[])[_0x123fb6(0x152)](function(_0x573246,_0xd28742){var _0x4c1d74=_0x123fb6;return Y(_0x573246,''[_0x4c1d74(0x15a)](_0x7b0a64,'-')[_0x4c1d74(0x15a)](_0x351519['tag'],'-')[_0x4c1d74(0x15a)](_0xd28742),_0x40ce57,void 0x0,_0x617ee6);}));}function De(_0x178ca2,_0x127977,_0x199db4){var _0x1ece7c=_0x29ea9a,_0x3faf2d=c({},_0x178ca2['attrs']);_0x199db4!=null&&_0x199db4[_0x1ece7c(0x13b)]&&_0x3faf2d[_0x1ece7c(0x116)]==='colorChannel1'&&(_0x3faf2d[_0x1ece7c(0x116)]=_0x199db4[_0x1ece7c(0x13b)]),_0x178ca2[_0x1ece7c(0x153)]===_0x1ece7c(0xfb)&&_0x3faf2d['id']&&(_0x3faf2d['id']=_0x3faf2d['id']+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x45616f){var _0xb5b206=_0x1ece7c,_0x4ab0d9=_0x45616f[0x0],_0x4fa357=_0x45616f[0x1];_0x4ab0d9===_0xb5b206(0xfb)&&typeof _0x4fa357==_0xb5b206(0x143)&&(_0x3faf2d[_0x4ab0d9]=_0x4fa357['replace'](/url\(#(.*)\)/,_0xb5b206(0xee)[_0xb5b206(0x15a)](_0x127977['idSuffix'],')')));});var _0x3ec402=_0x127977['defIds'];return!_0x3ec402||_0x3ec402[_0x1ece7c(0xfd)]===0x0||(_0x178ca2[_0x1ece7c(0x153)]==='use'&&_0x3faf2d[_0x1ece7c(0x142)]&&(_0x3faf2d[_0x1ece7c(0x142)]=_0x3faf2d[_0x1ece7c(0x142)]+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x5a4901){var _0x2af601=_0x1ece7c,_0x27507f=_0x5a4901[0x0],_0x378233=_0x5a4901[0x1];typeof _0x378233=='string'&&(_0x3faf2d[_0x27507f]=_0x378233[_0x2af601(0x108)](/url\(#(.*)\)/,_0x2af601(0xee)[_0x2af601(0x15a)](_0x127977[_0x2af601(0xf1)],')')));})),_0x3faf2d;}function xe(_0x2d6f75,_0x2db820){var _0x4a7e05=_0x29ea9a,_0x30f5c6,_0x47d695=_0x2db820[_0x4a7e05(0x16d)];return!_0x47d695||_0x47d695[_0x4a7e05(0xfd)]===0x0?_0x2d6f75:_0x2d6f75['tag']===_0x4a7e05(0x117)&&(!((_0x30f5c6=_0x2d6f75['children'])===null||_0x30f5c6===void 0x0)&&_0x30f5c6[_0x4a7e05(0xfd)])?c(c({},_0x2d6f75),{'children':_0x2d6f75[_0x4a7e05(0xe5)][_0x4a7e05(0x152)](function(_0xf66d93){var _0x5d9e9d=_0x4a7e05;return typeof _0xf66d93[_0x5d9e9d(0x163)]['id']==_0x5d9e9d(0x143)&&_0x47d695&&_0x47d695[_0x5d9e9d(0x14a)](_0xf66d93['attrs']['id'])?c(c({},_0xf66d93),{'attrs':c(c({},_0xf66d93[_0x5d9e9d(0x163)]),{'id':_0xf66d93['attrs']['id']+_0x2db820[_0x5d9e9d(0xf1)]})}):_0xf66d93;})}):_0x2d6f75;}function Le(){var _0x31daf6=_0x29ea9a;return Math[_0x31daf6(0x155)]()[_0x31daf6(0xf9)](0x24)[_0x31daf6(0x135)](0x2,0x8);}W[_0x29ea9a(0x12c)]=_0x29ea9a(0xf3);var ye={'tag':_0x29ea9a(0x160),'attrs':{'xmlns':_0x29ea9a(0x159),'fill':_0x29ea9a(0x13f),'viewBox':_0x29ea9a(0x11c),'width':'1em','height':_0x29ea9a(0xeb)},'children':[{'tag':'path','attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x133)}},{'tag':_0x29ea9a(0x13d),'attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x10c),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x583fa1(function(_0x5eb44d,_0x1d0b83){var _0x36dd0c=_0x29ea9a;return _0x4ad7a6(W,Object[_0x36dd0c(0x129)]({},_0x5eb44d,{'id':_0x36dd0c(0x175),'ref':_0x1d0b83,'icon':ye}));});B[_0x29ea9a(0x12c)]=_0x29ea9a(0xe4);var Re=Object[_0x29ea9a(0x144)],Z=(_0x4a1d99,_0x639301,_0x3ca504,_0x1ee71b)=>{var _0x2c75d5=_0x29ea9a;for(var _0xdeff43=_0x1ee71b>0x1?void 0x0:_0x1ee71b?Re(_0x639301,_0x3ca504):_0x639301,_0xb45533=_0x4a1d99[_0x2c75d5(0xfd)]-0x1,_0x50dfce;_0xb45533>=0x0;_0xb45533--)(_0x50dfce=_0x4a1d99[_0xb45533])&&(_0xdeff43=_0x50dfce(_0xdeff43)||_0xdeff43);return _0xdeff43;},f=(_0x54ad62,_0x4708ba)=>(_0x3dfb05,_0xc7ff4f)=>_0x4708ba(_0x3dfb05,_0xc7ff4f,_0x54ad62);let I=class extends _0x4e23fa{constructor(_0x1cce31,_0x50b9af,_0x17cfc2){var _0x53d623=_0x29ea9a;super(),d(this,_0x53d623(0x149),new Map()),(this[_0x53d623(0x17d)]=_0x1cce31,this[_0x53d623(0x176)]=_0x50b9af,this[_0x53d623(0x183)]=_0x17cfc2,this[_0x53d623(0x191)]());}async[_0x29ea9a(0x134)](_0x5b2e16){var _0x3ef8dd=_0x29ea9a;return this[_0x3ef8dd(0x149)][_0x3ef8dd(0x169)](_0x5b2e16)||await this['_startLiveShareCoordinator'](_0x5b2e16),this[_0x3ef8dd(0x149)][_0x3ef8dd(0x103)](_0x5b2e16);}[_0x29ea9a(0x191)](){var _0x41d61e=_0x29ea9a;this[_0x41d61e(0x17d)][_0x41d61e(0xf5)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this[_0x41d61e(0x16e)]))['subscribe'](async _0x182770=>{var _0x3f6f23=_0x41d61e;const _0x235b5c=_0x182770[_0x3f6f23(0x11b)]();this[_0x3f6f23(0x149)][_0x3f6f23(0x169)](_0x235b5c)||this['_startLiveShareCoordinator'](_0x235b5c);}),this[_0x41d61e(0x17d)][_0x41d61e(0x186)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this['dispose$']))[_0x41d61e(0x127)](_0x3cdcd7=>{var _0xf57f0d=_0x41d61e;const _0x34c9e6=_0x3cdcd7['getUnitId'](),_0x2c7fb8=this[_0xf57f0d(0x149)]['get'](_0x34c9e6);_0x2c7fb8==null||_0x2c7fb8[_0xf57f0d(0x14d)]();});}async['_startLiveShareCoordinator'](_0x162ec6){var _0x2c22e6=_0x29ea9a;const _0x45ac00=await this['_collabSessionService'][_0x2c22e6(0x11d)](_0x162ec6),_0x4f6b13=this[_0x2c22e6(0x176)][_0x2c22e6(0x161)](C,_0x162ec6,_0x45ac00);return _0x4f6b13[_0x2c22e6(0x111)](),this[_0x2c22e6(0x149)]['set'](_0x162ec6,_0x4f6b13),_0x4f6b13;}};I=Z([f(0x0,_0x3459c1),f(0x1,_0xf646c1(_0x4498f3)),f(0x2,_0xf646c1(_0x94a5e1))],I);var h=(_0xc86bd0=>(_0xc86bd0[_0x29ea9a(0x114)]='offline',_0xc86bd0[_0x29ea9a(0x109)]='idle',_0xc86bd0[_0x29ea9a(0x14b)]=_0x29ea9a(0x13e),_0xc86bd0[_0x29ea9a(0x188)]=_0x29ea9a(0xfa),_0xc86bd0['PRESENTING']='presenting',_0xc86bd0))(h||{});const Pe=_0x29ea9a(0x187),Ae=0xc8;let C=class extends _0x4e23fa{constructor(_0x52c8ee,_0x215b8b,_0xd5ef52,_0x3e8131,_0x30510b){var _0x275bac=_0x29ea9a;super(),d(this,_0x275bac(0x147),new _0x2ba6f1(_0x275bac(0x14c))),d(this,'status$',this[_0x275bac(0x147)][_0x275bac(0xe9)]()),d(this,_0x275bac(0x191),!0x1),d(this,_0x275bac(0x182),null),d(this,_0x275bac(0x13c),null),(this[_0x275bac(0x189)]=_0x52c8ee,this[_0x275bac(0xf7)]=_0x215b8b,this['_configService']=_0xd5ef52,this['_liveShareService']=_0x3e8131,this['_commandService']=_0x30510b);}get[_0x29ea9a(0x171)](){var _0x1c0415=_0x29ea9a;return this[_0x1c0415(0x147)]['getValue']();}[_0x29ea9a(0x14d)](){var _0x46e4a8=_0x29ea9a,_0x1e2fd3;(_0x1e2fd3=this['_commandDisposable'])==null||_0x1e2fd3['dispose'](),this[_0x46e4a8(0x147)][_0x46e4a8(0x140)](_0x46e4a8(0x14c)),this['_status$'][_0x46e4a8(0x14f)]();}[_0x29ea9a(0x111)](){var _0x3e1a6c=_0x29ea9a;this[_0x3e1a6c(0x191)]||(this['_init']=!0x0,this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x168)][_0x3e1a6c(0x10b)](_0xe8d355(this['dispose$']))[_0x3e1a6c(0x127)](_0x33a298=>{var _0x433edb=_0x3e1a6c;switch(_0x33a298){case _0x2862a6[_0x433edb(0x114)]:this[_0x433edb(0xe6)]();break;case _0x2862a6[_0x433edb(0x119)]:this[_0x433edb(0xea)]();break;}}),this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x130)][_0x3e1a6c(0x10b)](_0xe8d355(this[_0x3e1a6c(0x16e)]))['subscribe'](_0xcdd238=>{var _0x176846=_0x3e1a6c;const {eventID:_0x222dc3}=_0xcdd238;switch(_0x222dc3){case _0x4ba672[_0x176846(0x141)]:this[_0x176846(0x100)](_0xcdd238);break;case _0x4ba672['LIVESHARE_OPERATION']:this[_0x176846(0x17b)](_0xcdd238);break;case _0x4ba672[_0x176846(0x113)]:this[_0x176846(0x179)]();break;case _0x4ba672['NEW_CHANGESETS']:this[_0x176846(0x11e)](_0xcdd238);break;}}));}['tryStartPresenting'](){var _0x5a07cc=_0x29ea9a;this[_0x5a07cc(0xf7)][_0x5a07cc(0xef)]({'eventID':_0x4ba672['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x5a07cc(0x18e)]()}},this[_0x5a07cc(0x189)]);}['stopPresenting'](){var _0x42b4d6=_0x29ea9a;this['_status']===_0x42b4d6(0x105)&&(this[_0x42b4d6(0x147)][_0x42b4d6(0x140)]('idle'),this[_0x42b4d6(0xf7)][_0x42b4d6(0xef)]({'eventID':_0x4ba672[_0x42b4d6(0x113)],'data':{'unitID':this['_unitID']}},this[_0x42b4d6(0x189)]));}['startFollowing'](){var _0x319e7d=_0x29ea9a;this[_0x319e7d(0x171)]===_0x319e7d(0xfa)&&(this['_status$'][_0x319e7d(0x140)](_0x319e7d(0x13e)),this[_0x319e7d(0x192)]());}[_0x29ea9a(0x178)](){var _0x2355c5=_0x29ea9a;this[_0x2355c5(0x171)]===_0x2355c5(0x13e)&&this[_0x2355c5(0x139)]();}[_0x29ea9a(0x100)](_0x9946a1){var _0x5e3cb2=_0x29ea9a;const {presenter:_0x8feeef}=_0x9946a1['data'],_0x484067=this[_0x5e3cb2(0xf7)][_0x5e3cb2(0x18e)]();this['_presenter']=_0x8feeef,_0x8feeef===_0x484067?(this[_0x5e3cb2(0x139)](),this['_startPresenting']()):this[_0x5e3cb2(0x171)]!==_0x5e3cb2(0xfa)&&(this[_0x5e3cb2(0x165)](),this['_startFollowing']());}[_0x29ea9a(0x145)](){var _0x517ee2=_0x29ea9a;const _0x139f05={'eventID':_0x4ba672[_0x517ee2(0x193)]};this[_0x517ee2(0xf7)][_0x517ee2(0xef)](_0x139f05,this[_0x517ee2(0x189)]);}[_0x29ea9a(0x179)](){var _0x4a90a8=_0x29ea9a;this[_0x4a90a8(0x13c)]=null,this['_status']!==_0x4a90a8(0x105)&&this['_beIdle']();}[_0x29ea9a(0x11e)](_0x59f989){var _0x50d831=_0x29ea9a;if(this[_0x50d831(0x171)]===_0x50d831(0x13e)&&this[_0x50d831(0x13c)]===_0x59f989[_0x50d831(0x120)][_0x50d831(0x18c)]){const _0x2eb3eb=_0x3bfe1e(_0x59f989[_0x50d831(0x120)])[_0x50d831(0x11a)]['reverse']()[_0x50d831(0xfc)](_0x170a2c=>_0x170a2c['id']===_0x438976['id']);if(_0x2eb3eb){const _0xe99f74=_0x2eb3eb['params'][_0x50d831(0x166)],_0x4181ae=_0x2eb3eb[_0x50d831(0x131)]['sheet']['id'];setTimeout(()=>{var _0xcfc9a7=_0x50d831;this[_0xcfc9a7(0x137)]['executeCommand'](_0x4a98a2['id'],{'unitId':_0xe99f74,'subUnitId':_0x4181ae},{'fromCollab':!0x0});});}}}[_0x29ea9a(0xf0)](){var _0x292509=_0x29ea9a;this[_0x292509(0x147)]['next']('presenting');const _0xaf012f=new Map(),_0x156205=this['_commandDisposable']=new _0x20d871();_0x156205[_0x292509(0x154)](_0x5bc629(()=>{var _0x524e09=_0x292509;_0xaf012f[_0x524e09(0xfe)](_0x40801e=>_0x40801e[_0x524e09(0x14f)]()),_0xaf012f[_0x524e09(0x177)]();})),_0x156205['add'](this[_0x292509(0x137)][_0x292509(0x181)](_0x100f14=>{var _0x1fea4f=_0x292509,_0x27232b;if(_0x100f14['type']!==_0x110f27[_0x1fea4f(0x126)]||!this['_liveShareService']['shouldShareOperation'](_0x100f14['id']))return;const {id:_0x18db32}=_0x100f14;let _0x24fe15;_0xaf012f[_0x1fea4f(0x169)](_0x18db32)?_0x24fe15=_0xaf012f[_0x1fea4f(0x103)](_0x18db32):(_0x24fe15=new _0x2ae17d(),_0xaf012f[_0x1fea4f(0x13a)](_0x18db32,_0x24fe15),_0x24fe15['pipe'](_0x66b6b3((_0x27232b=this[_0x1fea4f(0x136)][_0x1fea4f(0x138)](Pe))!=null?_0x27232b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1fea4f(0x127)](_0x31ba6=>{var _0x187f78=_0x1fea4f;this['_collabSession']['send']({'eventID':_0x4ba672[_0x187f78(0x10a)],'data':{'unitID':this[_0x187f78(0x189)],'operations':{[_0x31ba6['id']]:{'id':_0x31ba6['id'],'params':JSON[_0x187f78(0x167)](_0x31ba6['params'])}}}},this[_0x187f78(0x189)]);})),_0x24fe15[_0x1fea4f(0x140)](_0x100f14);})),this['_liveShareService'][_0x292509(0x10e)](this['_unitID'])[_0x292509(0xfe)](_0x430b5d=>this[_0x292509(0xf7)]['send']({'eventID':_0x4ba672['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x292509(0x189)],'operations':{[_0x430b5d['id']]:{'id':_0x430b5d['id'],'params':JSON[_0x292509(0x167)](_0x430b5d[_0x292509(0x131)])}}}},this[_0x292509(0x189)]));}[_0x29ea9a(0x165)](){var _0x481fa1=_0x29ea9a,_0x52f8a2;this[_0x481fa1(0x147)]['next']('idle'),(_0x52f8a2=this[_0x481fa1(0x182)])==null||_0x52f8a2[_0x481fa1(0x14d)](),this[_0x481fa1(0x182)]=null;}[_0x29ea9a(0x192)](){var _0x24bd24=_0x29ea9a,_0x19333c;(_0x19333c=this[_0x24bd24(0x182)])==null||_0x19333c[_0x24bd24(0x14d)](),this[_0x24bd24(0x147)][_0x24bd24(0x140)](_0x24bd24(0x13e));}[_0x29ea9a(0x18f)](){var _0x201217=_0x29ea9a,_0x5e5564;this['_status$'][_0x201217(0x140)](_0x201217(0x14c)),(_0x5e5564=this[_0x201217(0x182)])==null||_0x5e5564[_0x201217(0x14d)](),this[_0x201217(0x182)]=null;}[_0x29ea9a(0x139)](){var _0x260e9d=_0x29ea9a,_0x939aef;this[_0x260e9d(0x147)]['next'](_0x260e9d(0xfa)),(_0x939aef=this[_0x260e9d(0x182)])==null||_0x939aef[_0x260e9d(0x14d)]();}[_0x29ea9a(0x17b)](_0x283abf){var _0x5517e9=_0x29ea9a;if([_0x5517e9(0x105),_0x5517e9(0xfa),'offline'][_0x5517e9(0x14a)](this['_status'])||!_0x283abf[_0x5517e9(0x120)]['presenter']||_0x283abf[_0x5517e9(0x120)]['presenter']===this[_0x5517e9(0xf7)][_0x5517e9(0x18e)]())return;this['_status']===_0x5517e9(0x14c)&&this[_0x5517e9(0x192)]();const _0x2eab83=_0x283abf[_0x5517e9(0x120)][_0x5517e9(0x15b)];Object[_0x5517e9(0x122)](_0x2eab83)[_0x5517e9(0xfe)](_0x3bee2d=>{var _0x45bd06=_0x5517e9;this[_0x45bd06(0x137)][_0x45bd06(0x170)](_0x3bee2d['id'],_0x3bee2d[_0x45bd06(0x131)]?JSON['parse'](_0x3bee2d[_0x45bd06(0x131)]):null,{'fromCollab':!0x0});});}[_0x29ea9a(0xe6)](){var _0x92359d=_0x29ea9a,_0x642c3c;this[_0x92359d(0x147)][_0x92359d(0x140)]('offline'),(_0x642c3c=this['_commandDisposable'])==null||_0x642c3c[_0x92359d(0x14d)]();}[_0x29ea9a(0xea)](){var _0x45fb61=_0x29ea9a;this[_0x45fb61(0x147)][_0x45fb61(0x140)]('idle'),this[_0x45fb61(0x145)]();}};C=Z([f(0x2,_0x548d47),f(0x3,_0xf646c1(L)),f(0x4,_0x1b0ea8)],C);function Te(){var _0xf9ddca=_0x29ea9a;const _0x45a09a=_0x1c7154(I),_0x5e7ead=_0x1c7154(_0x3459c1),_0xd3caca=_0x47ceac(()=>_0x5e7ead[_0xf9ddca(0x132)](_0x2e7d47[_0xf9ddca(0x17a)]),void 0x0,!0x1,[]),[_0x3b8e9c,_0xd0e9f3]=_0x445d54(null),[_0x224d15,_0x32f3b5]=_0x445d54(h['IDLE']),_0xa80675=_0x5b9881(null);return _0x212ac3(()=>(_0xd3caca&&_0x45a09a[_0xf9ddca(0x134)](_0xd3caca[_0xf9ddca(0x11b)]())[_0xf9ddca(0x151)](_0x206eb9=>{var _0x5bbaba=_0xf9ddca;_0xd0e9f3(_0x206eb9),_0xa80675[_0x5bbaba(0x150)]=_0x206eb9['status$']['subscribe'](_0x5070a4=>{_0x32f3b5(_0x5070a4);});}),()=>{var _0x43059c=_0xf9ddca,_0x182b58;(_0x182b58=_0xa80675[_0x43059c(0x150)])==null||_0x182b58[_0x43059c(0x180)](),_0xa80675[_0x43059c(0x150)]=null;}),[_0xd3caca,_0x45a09a]),_0x3b8e9c?_0x4a136f(_0x1f3e5a,{'align':_0xf9ddca(0x17f),'disabled':_0x224d15===h['OFFLINE'],'className':_0xf9ddca(0x17c),'overlay':_0x4a136f($e,{'status':_0x224d15,'coordinator':_0x3b8e9c}),'children':_0x4a136f('button',{'className':_0x42ee3f(_0xf9ddca(0x16f),{'univer-cursor-not-allowed':_0x224d15===h[_0xf9ddca(0x114)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x224d15!==h['OFFLINE']}),'type':'button','children':_0x4a136f(B,{'className':_0xf9ddca(0xff)})})}):null;}function $e(_0x9a85bb){var _0x33288a=_0x29ea9a;const {status:_0x5817e0,coordinator:_0x333446}=_0x9a85bb;switch(_0x5817e0){case h[_0x33288a(0x109)]:return _0x4a136f(Fe,{'coordinator':_0x333446});case h[_0x33288a(0x14b)]:return _0x4a136f(He,{'coordinator':_0x333446});case h[_0x33288a(0x188)]:return _0x4a136f(je,{'coordinator':_0x333446});case h[_0x33288a(0x114)]:return _0x4a136f(Ve,{});case h[_0x33288a(0x172)]:return _0x4a136f(Ue,{'coordinator':_0x333446});default:return null;}}function Fe(_0xa7ebdc){var _0x1afe45=_0x29ea9a;const {coordinator:_0x2a99e0}=_0xa7ebdc;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x1afe45(0x112),{'className':_0x1afe45(0x18b),'children':'Present\x20this\x20document'}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x2a99e0[_0x1afe45(0xf6)](),'children':'Start'})]});}function He(_0x203364){var _0x2826aa=_0x29ea9a;const {coordinator:_0x4f5e11}=_0x203364;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x2826aa(0x112),{'className':_0x2826aa(0x18b),'children':_0x2826aa(0x124)}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x4f5e11[_0x2826aa(0x178)](),'children':_0x2826aa(0xe8)})]});}function je(_0x3c4956){var _0x3fd904=_0x29ea9a;const {coordinator:_0x36814f}=_0x3c4956;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x3fd904(0x112),{'className':_0x3fd904(0x18b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a136f(_0x1b521d,{'variant':_0x3fd904(0x157),'onClick':()=>_0x36814f[_0x3fd904(0x16c)](),'children':_0x3fd904(0x102)})]});}function Ue(_0xf5f8c5){var _0x4d988e=_0x29ea9a;const {coordinator:_0x148e48}=_0xf5f8c5;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x4d988e(0x112),{'className':_0x4d988e(0x18b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4a136f(_0x1b521d,{'variant':_0x4d988e(0x12f),'onClick':()=>_0x148e48['stopPresenting'](),'children':_0x4d988e(0x101)})]});}function Ve(){var _0x500d47=_0x29ea9a;return _0x4a136f(_0x1f470d,{'children':_0x500d47(0x12e)});}var Me=Object[_0x29ea9a(0x144)],ke=(_0xafba00,_0x26e348,_0x1b621e,_0x448c0e)=>{var _0x288742=_0x29ea9a;for(var _0x565988=_0x448c0e>0x1?void 0x0:_0x448c0e?Me(_0x26e348,_0x1b621e):_0x26e348,_0xca3a23=_0xafba00[_0x288742(0xfd)]-0x1,_0x1d090b;_0xca3a23>=0x0;_0xca3a23--)(_0x1d090b=_0xafba00[_0xca3a23])&&(_0x565988=_0x1d090b(_0x565988)||_0x565988);return _0x565988;},$=(_0x41c942,_0x2be0b4)=>(_0x4004b3,_0x43d979)=>_0x2be0b4(_0x4004b3,_0x43d979,_0x41c942);let b=class extends _0x31e7a4{constructor(_0x58032c,_0x7039b4){var _0x287563=_0x29ea9a;super(),this[_0x287563(0x176)]=_0x58032c,this['_uiPartsService']=_0x7039b4,this[_0x287563(0x106)]();}[_0x29ea9a(0x106)](){var _0x1f40fb=_0x29ea9a;this[_0x1f40fb(0x11f)](this['_uiPartsService'][_0x1f40fb(0xf4)](_0x591b35[_0x1f40fb(0x12d)],()=>_0x2ac8da(Te,this[_0x1f40fb(0x176)])));}};b=ke([$(0x0,_0xf646c1(_0x4498f3)),$(0x1,_0x410032)],b);var Ge=Object['defineProperty'],We=Object[_0x29ea9a(0x144)],Ye=(_0x3e98b5,_0x5c2556,_0x21b3d4)=>_0x5c2556 in _0x3e98b5?Ge(_0x3e98b5,_0x5c2556,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21b3d4}):_0x3e98b5[_0x5c2556]=_0x21b3d4,Be=(_0x2e2445,_0x33b4e8,_0x325c9c,_0x5e81cd)=>{var _0x7738a5=_0x29ea9a;for(var _0xc12076=_0x5e81cd>0x1?void 0x0:_0x5e81cd?We(_0x33b4e8,_0x325c9c):_0x33b4e8,_0x3a3cfb=_0x2e2445[_0x7738a5(0xfd)]-0x1,_0xb942d8;_0x3a3cfb>=0x0;_0x3a3cfb--)(_0xb942d8=_0x2e2445[_0x3a3cfb])&&(_0xc12076=_0xb942d8(_0xc12076)||_0xc12076);return _0xc12076;},F=(_0x2c32ba,_0x531112)=>(_0x575a22,_0x10a097)=>_0x531112(_0x575a22,_0x10a097,_0x2c32ba),J=(_0x189e2c,_0x38a65c,_0x560644)=>Ye(_0x189e2c,typeof _0x38a65c!='symbol'?_0x38a65c+'':_0x38a65c,_0x560644);function _0x1c84(){var _0xb87989=['displayName','HEADER_MENU','You\x27are\x20offline.','default','event$','params','getCurrentTypeOfUnit$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getLiveShareCoordinator','substring','_configService','_commandService','getConfig','_stopFollowing','set','colorChannel1','_presenter','path','following','none','next','LIVESHARE_NEW_HOST','xlink:href','string','getOwnPropertyDescriptor','_fetchOperations','UNIVER_UNKNOWN','_status$','entries','_entities','includes','FOLLOWING','idle','dispose','trim','complete','current','then','map','tag','add','random','hasOwnProperty','text','_config','http://www.w3.org/2000/svg','concat','operations','symbol','9piTwWA','currentColor','7618824eCinFs','svg','createInstance','className','attrs','_reporters','_stopPresenting','unitId','stringify','sessionStatus$','has','1444223VFnhuk','4701655KSNqAh','startFollowing','defIds','dispose$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','_status','PRESENTING','override','_sharedOperations','live-share-icon','_injector','clear','stopFollowing','_handleTerminate','UNIVER_SHEET','_handleOperation','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_univerInstanceService','live-share.config','end','unsubscribe','onCommandExecuted','_commandDisposable','_collabSessionService','7728972HJLjtG','extend','getTypeOfUnitDisposed$','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','_unitID','10QvhuZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','memberID','4MrDisJ','getMemberID','_beIdle','registerInitialStateReporter','_init','_startFollowing','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','defineProperty','LiveShareIcon','children','_handleOffline','_liveShareService','Stop\x20following','asObservable','_handleOnline','1em','from','getOwnPropertySymbols','url(#$1','send','_startPresenting','idSuffix','indexOf','UniverIcon','registerComponent','getTypeOfUnitAdded$','tryStartPresenting','_collabSession','prototype','toString','not-following','mask','find','length','forEach','univer-size-4','_handleNewHost','Stop\x20presenting','Start\x20following','get','pluginName','presenting','_mountLiveShare','735406bnpZXG','replace','IDLE','LIVESHARE_OPERATION','pipe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','8515199DXvfLa','getInitialStates','apply','icon','init','div','LIVESHARE_TERMINATE','OFFLINE','call','fill','defs','delete','ONLINE','mutations','getUnitId','0\x200\x2017\x2017','requireSession','_handleNewChangeSets','disposeWithMe','data','4dXQVXl','values','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','1962066RNeIFH','OPERATION','subscribe','onStarting','assign','function','shouldShareOperation'];_0x1c84=function(){return _0xb87989;};return _0x1c84();}const Ze=_0x29ea9a(0x123);let O=class extends _0xe5ff50{constructor(_0x270f78=T,_0x1ef3a4,_0x197e8a){var _0x683045=_0x29ea9a;super(),this[_0x683045(0x158)]=_0x270f78,this[_0x683045(0x176)]=_0x1ef3a4,this[_0x683045(0x136)]=_0x197e8a;const {..._0x5c320c}=_0x1fc8bd({},T,this['_config']);this[_0x683045(0x136)]['setConfig'](Oe,_0x5c320c);}[_0x29ea9a(0x128)](){var _0x2a2072=_0x29ea9a;_0x2df774(this[_0x2a2072(0x176)],_0x1e76da([[L],[I],[m],[b]],this['_config'][_0x2a2072(0x173)])),_0x21061e(this[_0x2a2072(0x176)],[[m]]);}['onRendered'](){_0x21061e(this['_injector'],[[b]]);}};J(O,'type',_0x2e7d47[_0x29ea9a(0x146)]),J(O,_0x29ea9a(0x104),Ze),O=Be([_0x484a52(_0x1a961f),F(0x1,_0xf646c1(_0x4498f3)),F(0x2,_0x548d47)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x413fd2=_0x2cc9;(function(_0x5b4813,_0xdc679c){var _0xc3d28f=_0x2cc9,_0x1c49be=_0x5b4813();while(!![]){try{var _0xc6cafd=parseInt(_0xc3d28f(0x241))/0x1*(parseInt(_0xc3d28f(0x1fb))/0x2)+parseInt(_0xc3d28f(0x201))/0x3*(parseInt(_0xc3d28f(0x1f2))/0x4)+-parseInt(_0xc3d28f(0x238))/0x5+parseInt(_0xc3d28f(0x25f))/0x6+-parseInt(_0xc3d28f(0x221))/0x7*(parseInt(_0xc3d28f(0x1e3))/0x8)+-parseInt(_0xc3d28f(0x1ed))/0x9+parseInt(_0xc3d28f(0x24c))/0xa;if(_0xc6cafd===_0xdc679c)break;else _0x1c49be['push'](_0x1c49be['shift']());}catch(_0x433505){_0x1c49be['push'](_0x1c49be['shift']());}}}(_0x26a2,0x6caa2));var q=Object[_0x413fd2(0x214)],z=(_0x52bfb2,_0x2d694d,_0x2df6f9)=>_0x2d694d in _0x52bfb2?q(_0x52bfb2,_0x2d694d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2df6f9}):_0x52bfb2[_0x2d694d]=_0x2df6f9,d=(_0x79e68c,_0x16f429,_0x257822)=>z(_0x79e68c,typeof _0x16f429!=_0x413fd2(0x20c)?_0x16f429+'':_0x16f429,_0x257822);import{CollaborationSessionService as _0x4bea65,SessionStatus as _0x28cf64,UniverCollaborationClientPlugin as _0x40879e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2d602a,toDisposable as _0x235983,Inject as _0x287324,IUniverInstanceService as _0x563054,Injector as _0x189459,IConfigService as _0x4addda,ICommandService as _0x4a5bf9,RxDisposable as _0x1b7a96,UniverInstanceType as _0x2369f2,DisposableCollection as _0x52dca9,CommandType as _0x1caa0b,DependentOn as _0x39d809,Plugin as _0x54894e,merge as _0x563c15,registerDependencies as _0x4b1d24,mergeOverrideWithDependencies as _0x38959d,touchDependencies as _0x4a7c72}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x587c83,InsertSheetMutation as _0x5d7e73}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x944e99,SetScrollOperation as _0x460232}from'@univerjs/sheets-ui';import{useDependency as _0x8c2502,useObservable as _0x54b49a,IUIPartsService as _0x2136ab,BuiltInUIPart as _0x120083,connectInjector as _0x38f68b}from'@univerjs/ui';import{jsx as _0x5b6f43,jsxs as _0x33eaea,Fragment as _0x5e9b05}from'react/jsx-runtime';import{Dropdown as _0x5da7d2,clsx as _0x4a52f6,Button as _0x4ec768}from'@univerjs/design';import{forwardRef as _0x5117a0,useRef as _0x56788e,createElement as _0x4101b7,useState as _0x393f14,useEffect as _0x569005}from'react';import{CollaborationEvent as _0x15f78f,parseProtocolChangeset as _0x525527}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x51ed42,Subject as _0x391242}from'rxjs';import{takeUntil as _0x960196,throttleTime as _0x3ef22c}from'rxjs/operators';const Oe=_0x413fd2(0x211),T={};class L extends _0x2d602a{constructor(){var _0x1631f5=_0x413fd2;super(...arguments),d(this,_0x1631f5(0x215),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x5be7aa){var _0x1e5040=_0x413fd2;return this['_sharedOperations'][_0x1e5040(0x1e6)](_0x5be7aa),_0x235983(()=>this[_0x1e5040(0x215)]['delete'](_0x5be7aa));}[_0x413fd2(0x244)](_0x1fd8f2){var _0x6b6945=_0x413fd2;return this[_0x6b6945(0x22e)]['add'](_0x1fd8f2),_0x235983(()=>this[_0x6b6945(0x22e)][_0x6b6945(0x21e)](_0x1fd8f2));}[_0x413fd2(0x23f)](_0x3e7832){var _0x1b79c7=_0x413fd2;return this['_sharedOperations'][_0x1b79c7(0x1d8)](_0x3e7832);}[_0x413fd2(0x245)](_0x439230){var _0x305883=_0x413fd2;return Array[_0x305883(0x212)](this[_0x305883(0x22e)])[_0x305883(0x263)](_0x1098aa=>_0x1098aa(_0x439230));}}var Ee=Object[_0x413fd2(0x252)],we=(_0x385e09,_0x2421dc,_0x5a0143,_0xd1c918)=>{var _0x37f6e3=_0x413fd2;for(var _0x139546=_0xd1c918>0x1?void 0x0:_0xd1c918?Ee(_0x2421dc,_0x5a0143):_0x2421dc,_0x568031=_0x385e09[_0x37f6e3(0x276)]-0x1,_0x56131f;_0x568031>=0x0;_0x568031--)(_0x56131f=_0x385e09[_0x568031])&&(_0x139546=_0x56131f(_0x139546)||_0x139546);return _0x139546;},Ne=(_0x57fa0e,_0xecd224)=>(_0x36ec41,_0x2a11c1)=>_0xecd224(_0x36ec41,_0x2a11c1,_0x57fa0e);function _0x26a2(){var _0x3514ee=['getValue','_stopPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','set','shouldShareOperation','getOwnPropertySymbols','241myPXcp','onStarting','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerInitialStateReporter','getInitialStates','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','startFollowing','forEach','current','substring','8695750RNtGJL','status$','NOT_FOLLOWING','icon','presenting','div','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','override','1em','FOLLOWING','apply','find','stopFollowing','end','_handleOperation','get','default','getLiveShareCoordinator','207966mruTWl','NEW_CHANGESETS','propertyIsEnumerable','_commandService','map','onRendered','sessionStatus$','fill','_status','children','setConfig','stringify','dispose','_stopFollowing','PRESENTING','string','dispose$','operations','displayName','random','svg','getMemberID','executeCommand','length','hasOwnProperty','xlink:href','asObservable','You\x27re\x20following\x20the\x20presenter','prototype','_status$','pipe','parse','Start','_handleTerminate','OFFLINE','evenodd','_handleNewHost','tryStartPresenting','replace','_handleNewChangeSets','presenter','_univerInstanceService','UNIVER_LIVE_SHARE_PLUGIN','getConfig','has','_liveShareService','live-share-icon','registerSharedOperation','getTypeOfUnitAdded$','entries','attrs','LiveShareIcon','clear','init','currentColor','8prJpmI','following','0\x200\x2017\x2017','add','type','_entities','subscribe','not-following','reverse','univer-size-4','3094704DSgROK','OPERATION','send','LIVESHARE_OPERATION','includes','8WlpMlr','unsubscribe','UniverIcon','idSuffix','_injector','indexOf','assign','_fetchOperations','toString','1116LzzebI','You\x27re\x20presenting\x20the\x20document','memberID','_beIdle','colorChannel1','_init','6057bMMERj','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','defs','extend','next','params','_collabSession','LIVESHARE_REQUEST_HOST','_collabSessionService','_handleOnline','concat','symbol','mask','_startFollowing','disposeWithMe','Stop\x20following','live-share.config','from','button','defineProperty','_sharedOperations','path','Stop\x20presenting','defIds','LIVESHARE_NEW_HOST','pluginName','IDLE','_config','_configService','delete','getTypeOfUnitDisposed$','getUnitId','1029854tYwjsI','data','UNIVER_SHEET','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_presenter','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_TERMINATE','onCommandExecuted','_unitID','requireSession','complete','You\x27are\x20offline.','UNIVER_UNKNOWN','_reporters','LIVESHARE_FETCH_OPERATIONS','tag','call','_commandDisposable','_uiPartsService','_startPresenting','trim','offline','_mountLiveShare','533420nBqltQ','registerComponent','idle'];_0x26a2=function(){return _0x3514ee;};return _0x26a2();}let m=class extends _0x2d602a{constructor(_0x5dbebf){var _0x3d9b84=_0x413fd2;super(),this[_0x3d9b84(0x1d9)]=_0x5dbebf,this[_0x3d9b84(0x200)]();}[_0x413fd2(0x200)](){var _0x1871a6=_0x413fd2;[_0x944e99['id'],_0x460232['id'],_0x587c83['id']][_0x1871a6(0x249)](_0x319583=>{var _0x254fda=_0x1871a6;this[_0x254fda(0x20f)](this[_0x254fda(0x1d9)][_0x254fda(0x1db)](_0x319583));});}};m=we([Ne(0x0,_0x287324(L))],m);var c=function(){var _0x19a2e2=_0x413fd2;return c=Object['assign']||function(_0x307f8f){var _0x2e33c9=_0x2cc9;for(var _0x465f70,_0x4cf198=0x1,_0x101135=arguments[_0x2e33c9(0x276)];_0x4cf198<_0x101135;_0x4cf198++){_0x465f70=arguments[_0x4cf198];for(var _0x271c49 in _0x465f70)Object[_0x2e33c9(0x27b)][_0x2e33c9(0x277)][_0x2e33c9(0x231)](_0x465f70,_0x271c49)&&(_0x307f8f[_0x271c49]=_0x465f70[_0x271c49]);}return _0x307f8f;},c[_0x19a2e2(0x257)](this,arguments);},Ce=function(_0x30934e,_0x314508){var _0x5466ff=_0x413fd2,_0x5b2ab6={};for(var _0x1711c5 in _0x30934e)Object[_0x5466ff(0x27b)]['hasOwnProperty']['call'](_0x30934e,_0x1711c5)&&_0x314508[_0x5466ff(0x1f7)](_0x1711c5)<0x0&&(_0x5b2ab6[_0x1711c5]=_0x30934e[_0x1711c5]);if(_0x30934e!=null&&typeof Object[_0x5466ff(0x240)]=='function'){for(var _0x5e1eac=0x0,_0x1711c5=Object[_0x5466ff(0x240)](_0x30934e);_0x5e1eac<_0x1711c5[_0x5466ff(0x276)];_0x5e1eac++)_0x314508[_0x5466ff(0x1f7)](_0x1711c5[_0x5e1eac])<0x0&&Object['prototype'][_0x5466ff(0x261)][_0x5466ff(0x231)](_0x30934e,_0x1711c5[_0x5e1eac])&&(_0x5b2ab6[_0x1711c5[_0x5e1eac]]=_0x30934e[_0x1711c5[_0x5e1eac]]);}return _0x5b2ab6;},W=_0x5117a0(function(_0x25da1b,_0x596937){var _0x47e06b=_0x413fd2,_0x620019=_0x25da1b[_0x47e06b(0x24f)],_0x922d47=_0x25da1b['id'],_0x57a0c8=_0x25da1b['className'],_0x5be5fa=_0x25da1b[_0x47e06b(0x204)],_0x273387=Ce(_0x25da1b,[_0x47e06b(0x24f),'id','className','extend']),_0x1ef570='univerjs-icon\x20univerjs-icon-'['concat'](_0x922d47,'\x20')[_0x47e06b(0x20b)](_0x57a0c8||'')[_0x47e06b(0x235)](),_0x483c6b=_0x56788e('_'[_0x47e06b(0x20b)](Le()));return Y(_0x620019,''[_0x47e06b(0x20b)](_0x922d47),{'defIds':_0x620019[_0x47e06b(0x218)],'idSuffix':_0x483c6b[_0x47e06b(0x24a)]},c({'ref':_0x596937,'className':_0x1ef570},_0x273387),_0x5be5fa);});function Y(_0x4719ee,_0x1bf035,_0x579a86,_0x3835ed,_0x537304){var _0x433031=_0x413fd2;return _0x4101b7(_0x4719ee[_0x433031(0x230)],c(c({'key':_0x1bf035},De(_0x4719ee,_0x579a86,_0x537304)),_0x3835ed),(xe(_0x4719ee,_0x579a86)[_0x433031(0x268)]||[])[_0x433031(0x263)](function(_0x1fbf8d,_0x3ed443){var _0x4bcaa9=_0x433031;return Y(_0x1fbf8d,''['concat'](_0x1bf035,'-')[_0x4bcaa9(0x20b)](_0x4719ee[_0x4bcaa9(0x230)],'-')[_0x4bcaa9(0x20b)](_0x3ed443),_0x579a86,void 0x0,_0x537304);}));}function De(_0x2416b4,_0x13ab0a,_0x174f65){var _0x474a79=_0x413fd2,_0x23c633=c({},_0x2416b4[_0x474a79(0x1de)]);_0x174f65!=null&&_0x174f65[_0x474a79(0x1ff)]&&_0x23c633[_0x474a79(0x266)]==='colorChannel1'&&(_0x23c633[_0x474a79(0x266)]=_0x174f65[_0x474a79(0x1ff)]),_0x2416b4[_0x474a79(0x230)]==='mask'&&_0x23c633['id']&&(_0x23c633['id']=_0x23c633['id']+_0x13ab0a['idSuffix']),Object[_0x474a79(0x1dd)](_0x23c633)[_0x474a79(0x249)](function(_0x4785bc){var _0x432e6b=_0x474a79,_0x8e51e1=_0x4785bc[0x0],_0x1bc298=_0x4785bc[0x1];_0x8e51e1===_0x432e6b(0x20d)&&typeof _0x1bc298=='string'&&(_0x23c633[_0x8e51e1]=_0x1bc298['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x13ab0a['idSuffix'],')')));});var _0x5a3eb7=_0x13ab0a[_0x474a79(0x218)];return!_0x5a3eb7||_0x5a3eb7['length']===0x0||(_0x2416b4[_0x474a79(0x230)]==='use'&&_0x23c633[_0x474a79(0x278)]&&(_0x23c633[_0x474a79(0x278)]=_0x23c633['xlink:href']+_0x13ab0a[_0x474a79(0x1f5)]),Object[_0x474a79(0x1dd)](_0x23c633)[_0x474a79(0x249)](function(_0x501088){var _0x252752=_0x474a79,_0x43e30f=_0x501088[0x0],_0x2e36cb=_0x501088[0x1];typeof _0x2e36cb==_0x252752(0x26e)&&(_0x23c633[_0x43e30f]=_0x2e36cb[_0x252752(0x1d2)](/url\(#(.*)\)/,'url(#$1'[_0x252752(0x20b)](_0x13ab0a[_0x252752(0x1f5)],')')));})),_0x23c633;}function xe(_0x26583f,_0x59a209){var _0x389b5d=_0x413fd2,_0xba1686,_0x23586f=_0x59a209[_0x389b5d(0x218)];return!_0x23586f||_0x23586f[_0x389b5d(0x276)]===0x0?_0x26583f:_0x26583f[_0x389b5d(0x230)]===_0x389b5d(0x203)&&(!((_0xba1686=_0x26583f['children'])===null||_0xba1686===void 0x0)&&_0xba1686['length'])?c(c({},_0x26583f),{'children':_0x26583f[_0x389b5d(0x268)][_0x389b5d(0x263)](function(_0x56e8fe){var _0x1c4889=_0x389b5d;return typeof _0x56e8fe['attrs']['id']=='string'&&_0x23586f&&_0x23586f['includes'](_0x56e8fe[_0x1c4889(0x1de)]['id'])?c(c({},_0x56e8fe),{'attrs':c(c({},_0x56e8fe[_0x1c4889(0x1de)]),{'id':_0x56e8fe[_0x1c4889(0x1de)]['id']+_0x59a209['idSuffix']})}):_0x56e8fe;})}):_0x26583f;}function Le(){var _0x1227eb=_0x413fd2;return Math[_0x1227eb(0x272)]()[_0x1227eb(0x1fa)](0x24)[_0x1227eb(0x24b)](0x2,0x8);}W[_0x413fd2(0x271)]=_0x413fd2(0x1f4);function _0x2cc9(_0x539e60,_0x1a7bfb){var _0x26a2ed=_0x26a2();return _0x2cc9=function(_0x2cc9af,_0x1e39ff){_0x2cc9af=_0x2cc9af-0x1c9;var _0x530312=_0x26a2ed[_0x2cc9af];return _0x530312;},_0x2cc9(_0x539e60,_0x1a7bfb);}var ye={'tag':_0x413fd2(0x273),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x413fd2(0x1e5),'width':_0x413fd2(0x255),'height':_0x413fd2(0x255)},'children':[{'tag':_0x413fd2(0x216),'attrs':{'fill':_0x413fd2(0x1e2),'d':_0x413fd2(0x226)}},{'tag':_0x413fd2(0x216),'attrs':{'fill':'currentColor','d':_0x413fd2(0x224),'fillRule':_0x413fd2(0x1cf),'clipRule':'evenodd'}}]},B=_0x5117a0(function(_0x21daca,_0x21a51c){var _0x29ad47=_0x413fd2;return _0x4101b7(W,Object[_0x29ad47(0x1f8)]({},_0x21daca,{'id':_0x29ad47(0x1da),'ref':_0x21a51c,'icon':ye}));});B[_0x413fd2(0x271)]=_0x413fd2(0x1df);var Re=Object[_0x413fd2(0x252)],Z=(_0x5406ef,_0x2457f6,_0x5244c7,_0x3a9a87)=>{for(var _0x427baa=_0x3a9a87>0x1?void 0x0:_0x3a9a87?Re(_0x2457f6,_0x5244c7):_0x2457f6,_0x151c4d=_0x5406ef['length']-0x1,_0x5095d9;_0x151c4d>=0x0;_0x151c4d--)(_0x5095d9=_0x5406ef[_0x151c4d])&&(_0x427baa=_0x5095d9(_0x427baa)||_0x427baa);return _0x427baa;},f=(_0x5a2ada,_0x21e124)=>(_0x208add,_0x198533)=>_0x21e124(_0x208add,_0x198533,_0x5a2ada);let I=class extends _0x1b7a96{constructor(_0x2d9388,_0xdfa898,_0x5305eb){var _0x304786=_0x413fd2;super(),d(this,_0x304786(0x1e8),new Map()),(this['_univerInstanceService']=_0x2d9388,this[_0x304786(0x1f6)]=_0xdfa898,this[_0x304786(0x209)]=_0x5305eb,this[_0x304786(0x200)]());}async[_0x413fd2(0x25e)](_0x4e18d1){var _0x514382=_0x413fd2;return this[_0x514382(0x1e8)][_0x514382(0x1d8)](_0x4e18d1)||await this[_0x514382(0x246)](_0x4e18d1),this[_0x514382(0x1e8)][_0x514382(0x25c)](_0x4e18d1);}[_0x413fd2(0x200)](){var _0x4d8e6a=_0x413fd2;this['_univerInstanceService'][_0x4d8e6a(0x1dc)](_0x2369f2[_0x4d8e6a(0x223)])[_0x4d8e6a(0x1ca)](_0x960196(this[_0x4d8e6a(0x26f)]))[_0x4d8e6a(0x1e9)](async _0x5e2f8c=>{var _0xcff37e=_0x4d8e6a;const _0x109c6a=_0x5e2f8c['getUnitId']();this[_0xcff37e(0x1e8)][_0xcff37e(0x1d8)](_0x109c6a)||this[_0xcff37e(0x246)](_0x109c6a);}),this[_0x4d8e6a(0x1d5)][_0x4d8e6a(0x21f)](_0x2369f2[_0x4d8e6a(0x223)])[_0x4d8e6a(0x1ca)](_0x960196(this[_0x4d8e6a(0x26f)]))['subscribe'](_0x455143=>{var _0x10998d=_0x4d8e6a;const _0x1d7c4c=_0x455143[_0x10998d(0x220)](),_0x1201f2=this['_entities'][_0x10998d(0x25c)](_0x1d7c4c);_0x1201f2==null||_0x1201f2[_0x10998d(0x26b)]();});}async[_0x413fd2(0x246)](_0x4de9f1){var _0x102c77=_0x413fd2;const _0x5ae7bb=await this['_collabSessionService'][_0x102c77(0x22a)](_0x4de9f1),_0x58677d=this[_0x102c77(0x1f6)]['createInstance'](C,_0x4de9f1,_0x5ae7bb);return _0x58677d['init'](),this[_0x102c77(0x1e8)][_0x102c77(0x23e)](_0x4de9f1,_0x58677d),_0x58677d;}};I=Z([f(0x0,_0x563054),f(0x1,_0x287324(_0x189459)),f(0x2,_0x287324(_0x4bea65))],I);var h=(_0xec50d8=>(_0xec50d8[_0x413fd2(0x1ce)]='offline',_0xec50d8[_0x413fd2(0x21b)]=_0x413fd2(0x23a),_0xec50d8[_0x413fd2(0x256)]=_0x413fd2(0x1e4),_0xec50d8[_0x413fd2(0x24e)]=_0x413fd2(0x1ea),_0xec50d8['PRESENTING']=_0x413fd2(0x250),_0xec50d8))(h||{});const Pe=_0x413fd2(0x247),Ae=0xc8;let C=class extends _0x1b7a96{constructor(_0x1ed95b,_0x3d77fa,_0x2194ad,_0x68664b,_0x166285){var _0x56b9a9=_0x413fd2;super(),d(this,_0x56b9a9(0x1c9),new _0x51ed42('idle')),d(this,'status$',this['_status$'][_0x56b9a9(0x279)]()),d(this,'_init',!0x1),d(this,_0x56b9a9(0x232),null),d(this,_0x56b9a9(0x225),null),(this[_0x56b9a9(0x229)]=_0x1ed95b,this[_0x56b9a9(0x207)]=_0x3d77fa,this['_configService']=_0x2194ad,this[_0x56b9a9(0x1d9)]=_0x68664b,this['_commandService']=_0x166285);}get[_0x413fd2(0x267)](){var _0x12840a=_0x413fd2;return this['_status$'][_0x12840a(0x23b)]();}[_0x413fd2(0x26b)](){var _0x426688=_0x413fd2,_0x3f6066;(_0x3f6066=this[_0x426688(0x232)])==null||_0x3f6066[_0x426688(0x26b)](),this['_status$']['next'](_0x426688(0x23a)),this['_status$']['complete']();}[_0x413fd2(0x1e1)](){var _0x39df04=_0x413fd2;this[_0x39df04(0x200)]||(this['_init']=!0x0,this[_0x39df04(0x207)][_0x39df04(0x265)][_0x39df04(0x1ca)](_0x960196(this[_0x39df04(0x26f)]))['subscribe'](_0x4618a4=>{var _0x58b285=_0x39df04;switch(_0x4618a4){case _0x28cf64[_0x58b285(0x1ce)]:this['_handleOffline']();break;case _0x28cf64['ONLINE']:this[_0x58b285(0x20a)]();break;}}),this['_collabSession']['event$'][_0x39df04(0x1ca)](_0x960196(this[_0x39df04(0x26f)]))[_0x39df04(0x1e9)](_0x23358d=>{var _0x418dff=_0x39df04;const {eventID:_0x451d84}=_0x23358d;switch(_0x451d84){case _0x15f78f[_0x418dff(0x219)]:this[_0x418dff(0x1d0)](_0x23358d);break;case _0x15f78f[_0x418dff(0x1f0)]:this[_0x418dff(0x25b)](_0x23358d);break;case _0x15f78f[_0x418dff(0x227)]:this[_0x418dff(0x1cd)]();break;case _0x15f78f[_0x418dff(0x260)]:this[_0x418dff(0x1d3)](_0x23358d);break;}}));}[_0x413fd2(0x1d1)](){var _0x536a1b=_0x413fd2;this[_0x536a1b(0x207)][_0x536a1b(0x1ef)]({'eventID':_0x15f78f[_0x536a1b(0x208)],'data':{'unitID':this['_unitID'],'userID':this[_0x536a1b(0x207)][_0x536a1b(0x274)]()}},this[_0x536a1b(0x229)]);}['stopPresenting'](){var _0x40502a=_0x413fd2;this['_status']==='presenting'&&(this['_status$'][_0x40502a(0x205)](_0x40502a(0x23a)),this[_0x40502a(0x207)]['send']({'eventID':_0x15f78f[_0x40502a(0x227)],'data':{'unitID':this[_0x40502a(0x229)]}},this[_0x40502a(0x229)]));}[_0x413fd2(0x248)](){var _0x3306ab=_0x413fd2;this[_0x3306ab(0x267)]===_0x3306ab(0x1ea)&&(this['_status$'][_0x3306ab(0x205)]('following'),this[_0x3306ab(0x20e)]());}[_0x413fd2(0x259)](){var _0x30f5f8=_0x413fd2;this[_0x30f5f8(0x267)]==='following'&&this[_0x30f5f8(0x26c)]();}[_0x413fd2(0x1d0)](_0x1ca1c6){var _0x15d0c8=_0x413fd2;const {presenter:_0x32cad7}=_0x1ca1c6[_0x15d0c8(0x222)],_0x1d1a84=this['_collabSession'][_0x15d0c8(0x274)]();this[_0x15d0c8(0x225)]=_0x32cad7,_0x32cad7===_0x1d1a84?(this[_0x15d0c8(0x26c)](),this[_0x15d0c8(0x234)]()):this[_0x15d0c8(0x267)]!=='not-following'&&(this[_0x15d0c8(0x23c)](),this[_0x15d0c8(0x20e)]());}[_0x413fd2(0x1f9)](){var _0x4767df=_0x413fd2;const _0x3485d8={'eventID':_0x15f78f[_0x4767df(0x22f)]};this[_0x4767df(0x207)][_0x4767df(0x1ef)](_0x3485d8,this[_0x4767df(0x229)]);}[_0x413fd2(0x1cd)](){var _0x51675c=_0x413fd2;this[_0x51675c(0x225)]=null,this[_0x51675c(0x267)]!==_0x51675c(0x250)&&this[_0x51675c(0x1fe)]();}[_0x413fd2(0x1d3)](_0x5b1372){var _0x7cd90=_0x413fd2;if(this[_0x7cd90(0x267)]===_0x7cd90(0x1e4)&&this[_0x7cd90(0x225)]===_0x5b1372[_0x7cd90(0x222)][_0x7cd90(0x1fd)]){const _0x7d9516=_0x525527(_0x5b1372['data'])['mutations'][_0x7cd90(0x1eb)]()[_0x7cd90(0x258)](_0x5d0c1b=>_0x5d0c1b['id']===_0x5d7e73['id']);if(_0x7d9516){const _0x560694=_0x7d9516[_0x7cd90(0x206)]['unitId'],_0x266d75=_0x7d9516[_0x7cd90(0x206)]['sheet']['id'];setTimeout(()=>{var _0x5b498f=_0x7cd90;this['_commandService'][_0x5b498f(0x275)](_0x587c83['id'],{'unitId':_0x560694,'subUnitId':_0x266d75},{'fromCollab':!0x0});});}}}[_0x413fd2(0x234)](){var _0x3d6e3d=_0x413fd2;this[_0x3d6e3d(0x1c9)][_0x3d6e3d(0x205)]('presenting');const _0x26afef=new Map(),_0x3ed48d=this[_0x3d6e3d(0x232)]=new _0x52dca9();_0x3ed48d[_0x3d6e3d(0x1e6)](_0x235983(()=>{var _0x36f5f7=_0x3d6e3d;_0x26afef[_0x36f5f7(0x249)](_0x188d59=>_0x188d59[_0x36f5f7(0x22b)]()),_0x26afef[_0x36f5f7(0x1e0)]();})),_0x3ed48d[_0x3d6e3d(0x1e6)](this[_0x3d6e3d(0x262)][_0x3d6e3d(0x228)](_0x26326e=>{var _0x2b26e1=_0x3d6e3d,_0xab8531;if(_0x26326e['type']!==_0x1caa0b[_0x2b26e1(0x1ee)]||!this[_0x2b26e1(0x1d9)]['shouldShareOperation'](_0x26326e['id']))return;const {id:_0x1a72ec}=_0x26326e;let _0x3044a2;_0x26afef['has'](_0x1a72ec)?_0x3044a2=_0x26afef[_0x2b26e1(0x25c)](_0x1a72ec):(_0x3044a2=new _0x391242(),_0x26afef[_0x2b26e1(0x23e)](_0x1a72ec,_0x3044a2),_0x3044a2[_0x2b26e1(0x1ca)](_0x3ef22c((_0xab8531=this['_configService'][_0x2b26e1(0x1d7)](Pe))!=null?_0xab8531:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2b26e1(0x1e9)](_0x1c6459=>{var _0x51da18=_0x2b26e1;this[_0x51da18(0x207)][_0x51da18(0x1ef)]({'eventID':_0x15f78f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x51da18(0x229)],'operations':{[_0x1c6459['id']]:{'id':_0x1c6459['id'],'params':JSON[_0x51da18(0x26a)](_0x1c6459[_0x51da18(0x206)])}}}},this[_0x51da18(0x229)]);})),_0x3044a2[_0x2b26e1(0x205)](_0x26326e);})),this[_0x3d6e3d(0x1d9)][_0x3d6e3d(0x245)](this['_unitID'])[_0x3d6e3d(0x249)](_0x178ced=>this[_0x3d6e3d(0x207)]['send']({'eventID':_0x15f78f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3d6e3d(0x229)],'operations':{[_0x178ced['id']]:{'id':_0x178ced['id'],'params':JSON[_0x3d6e3d(0x26a)](_0x178ced[_0x3d6e3d(0x206)])}}}},this[_0x3d6e3d(0x229)]));}[_0x413fd2(0x23c)](){var _0x51651c=_0x413fd2,_0x2368c2;this['_status$'][_0x51651c(0x205)]('idle'),(_0x2368c2=this['_commandDisposable'])==null||_0x2368c2[_0x51651c(0x26b)](),this[_0x51651c(0x232)]=null;}[_0x413fd2(0x20e)](){var _0x219555=_0x413fd2,_0x2ae663;(_0x2ae663=this[_0x219555(0x232)])==null||_0x2ae663[_0x219555(0x26b)](),this['_status$'][_0x219555(0x205)](_0x219555(0x1e4));}['_beIdle'](){var _0x2904e7=_0x413fd2,_0x3e819b;this['_status$']['next'](_0x2904e7(0x23a)),(_0x3e819b=this[_0x2904e7(0x232)])==null||_0x3e819b[_0x2904e7(0x26b)](),this[_0x2904e7(0x232)]=null;}[_0x413fd2(0x26c)](){var _0x24abab=_0x413fd2,_0x12b6d9;this[_0x24abab(0x1c9)][_0x24abab(0x205)]('not-following'),(_0x12b6d9=this[_0x24abab(0x232)])==null||_0x12b6d9['dispose']();}['_handleOperation'](_0x3c6e84){var _0x1ccadf=_0x413fd2;if([_0x1ccadf(0x250),_0x1ccadf(0x1ea),_0x1ccadf(0x236)][_0x1ccadf(0x1f1)](this['_status'])||!_0x3c6e84['data'][_0x1ccadf(0x1d4)]||_0x3c6e84[_0x1ccadf(0x222)]['presenter']===this['_collabSession'][_0x1ccadf(0x274)]())return;this[_0x1ccadf(0x267)]===_0x1ccadf(0x23a)&&this['_startFollowing']();const _0x1a832d=_0x3c6e84[_0x1ccadf(0x222)][_0x1ccadf(0x270)];Object['values'](_0x1a832d)[_0x1ccadf(0x249)](_0x1e4672=>{var _0x3c2d18=_0x1ccadf;this[_0x3c2d18(0x262)][_0x3c2d18(0x275)](_0x1e4672['id'],_0x1e4672['params']?JSON[_0x3c2d18(0x1cb)](_0x1e4672[_0x3c2d18(0x206)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x48c54e=_0x413fd2,_0x32d5e4;this[_0x48c54e(0x1c9)][_0x48c54e(0x205)](_0x48c54e(0x236)),(_0x32d5e4=this[_0x48c54e(0x232)])==null||_0x32d5e4[_0x48c54e(0x26b)]();}[_0x413fd2(0x20a)](){var _0x2225e7=_0x413fd2;this[_0x2225e7(0x1c9)][_0x2225e7(0x205)](_0x2225e7(0x23a)),this[_0x2225e7(0x1f9)]();}};C=Z([f(0x2,_0x4addda),f(0x3,_0x287324(L)),f(0x4,_0x4a5bf9)],C);function Te(){var _0x3031c9=_0x413fd2;const _0x1cd765=_0x8c2502(I),_0x471c37=_0x8c2502(_0x563054),_0x4dbe8e=_0x54b49a(()=>_0x471c37['getCurrentTypeOfUnit$'](_0x2369f2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3bf703,_0x16f0fe]=_0x393f14(null),[_0x578e20,_0x3e89c3]=_0x393f14(h['IDLE']),_0x1dac74=_0x56788e(null);return _0x569005(()=>(_0x4dbe8e&&_0x1cd765['getLiveShareCoordinator'](_0x4dbe8e[_0x3031c9(0x220)]())['then'](_0x3f717d=>{var _0xcd2ad=_0x3031c9;_0x16f0fe(_0x3f717d),_0x1dac74[_0xcd2ad(0x24a)]=_0x3f717d[_0xcd2ad(0x24d)][_0xcd2ad(0x1e9)](_0x1859eb=>{_0x3e89c3(_0x1859eb);});}),()=>{var _0x1fae40=_0x3031c9,_0x5c5752;(_0x5c5752=_0x1dac74[_0x1fae40(0x24a)])==null||_0x5c5752[_0x1fae40(0x1f3)](),_0x1dac74[_0x1fae40(0x24a)]=null;}),[_0x4dbe8e,_0x1cd765]),_0x3bf703?_0x5b6f43(_0x5da7d2,{'align':_0x3031c9(0x25a),'disabled':_0x578e20===h[_0x3031c9(0x1ce)],'className':_0x3031c9(0x202),'overlay':_0x5b6f43($e,{'status':_0x578e20,'coordinator':_0x3bf703}),'children':_0x5b6f43(_0x3031c9(0x213),{'className':_0x4a52f6(_0x3031c9(0x23d),{'univer-cursor-not-allowed':_0x578e20===h[_0x3031c9(0x1ce)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x578e20!==h[_0x3031c9(0x1ce)]}),'type':_0x3031c9(0x213),'children':_0x5b6f43(B,{'className':_0x3031c9(0x1ec)})})}):null;}function $e(_0x3d1b35){var _0x35243e=_0x413fd2;const {status:_0x2b8910,coordinator:_0x1420f9}=_0x3d1b35;switch(_0x2b8910){case h['IDLE']:return _0x5b6f43(Fe,{'coordinator':_0x1420f9});case h[_0x35243e(0x256)]:return _0x5b6f43(He,{'coordinator':_0x1420f9});case h[_0x35243e(0x24e)]:return _0x5b6f43(je,{'coordinator':_0x1420f9});case h['OFFLINE']:return _0x5b6f43(Ve,{});case h[_0x35243e(0x26d)]:return _0x5b6f43(Ue,{'coordinator':_0x1420f9});default:return null;}}function Fe(_0x3be60c){var _0x58c388=_0x413fd2;const {coordinator:_0x3be33}=_0x3be60c;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x58c388(0x251),{'className':_0x58c388(0x243),'children':'Present\x20this\x20document'}),_0x5b6f43(_0x4ec768,{'onClick':()=>_0x3be33['tryStartPresenting'](),'children':_0x58c388(0x1cc)})]});}function He(_0x1faf9c){var _0x489da9=_0x413fd2;const {coordinator:_0x3bb2a6}=_0x1faf9c;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x489da9(0x251),{'className':_0x489da9(0x243),'children':_0x489da9(0x27a)}),_0x5b6f43(_0x4ec768,{'onClick':()=>_0x3bb2a6[_0x489da9(0x259)](),'children':_0x489da9(0x210)})]});}function je(_0x33c34f){var _0x55921f=_0x413fd2;const {coordinator:_0x46d324}=_0x33c34f;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x55921f(0x251),{'className':_0x55921f(0x243),'children':_0x55921f(0x253)}),_0x5b6f43(_0x4ec768,{'variant':'text','onClick':()=>_0x46d324[_0x55921f(0x248)](),'children':'Start\x20following'})]});}function Ue(_0x43327e){var _0x11c407=_0x413fd2;const {coordinator:_0x500267}=_0x43327e;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x11c407(0x251),{'className':_0x11c407(0x243),'children':_0x11c407(0x1fc)}),_0x5b6f43(_0x4ec768,{'variant':_0x11c407(0x25d),'onClick':()=>_0x500267['stopPresenting'](),'children':_0x11c407(0x217)})]});}function Ve(){var _0x47c3ce=_0x413fd2;return _0x5b6f43(_0x5e9b05,{'children':_0x47c3ce(0x22c)});}var Me=Object[_0x413fd2(0x252)],ke=(_0x20f3ee,_0x397115,_0x130fb8,_0x552d8a)=>{var _0x4dc284=_0x413fd2;for(var _0x426d7a=_0x552d8a>0x1?void 0x0:_0x552d8a?Me(_0x397115,_0x130fb8):_0x397115,_0x4b9728=_0x20f3ee[_0x4dc284(0x276)]-0x1,_0x233e6f;_0x4b9728>=0x0;_0x4b9728--)(_0x233e6f=_0x20f3ee[_0x4b9728])&&(_0x426d7a=_0x233e6f(_0x426d7a)||_0x426d7a);return _0x426d7a;},$=(_0x5aefe4,_0x34a6aa)=>(_0x2df8c8,_0x42c30d)=>_0x34a6aa(_0x2df8c8,_0x42c30d,_0x5aefe4);let b=class extends _0x2d602a{constructor(_0x21c864,_0x5b5487){var _0x294089=_0x413fd2;super(),this[_0x294089(0x1f6)]=_0x21c864,this[_0x294089(0x233)]=_0x5b5487,this[_0x294089(0x237)]();}[_0x413fd2(0x237)](){var _0x420a07=_0x413fd2;this[_0x420a07(0x20f)](this['_uiPartsService'][_0x420a07(0x239)](_0x120083['HEADER_MENU'],()=>_0x38f68b(Te,this[_0x420a07(0x1f6)])));}};b=ke([$(0x0,_0x287324(_0x189459)),$(0x1,_0x2136ab)],b);var Ge=Object[_0x413fd2(0x214)],We=Object[_0x413fd2(0x252)],Ye=(_0x30650f,_0x33f616,_0x2b5b40)=>_0x33f616 in _0x30650f?Ge(_0x30650f,_0x33f616,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b5b40}):_0x30650f[_0x33f616]=_0x2b5b40,Be=(_0x327f20,_0x43257d,_0x5cf717,_0x28b7f9)=>{var _0x5b499c=_0x413fd2;for(var _0x4173e7=_0x28b7f9>0x1?void 0x0:_0x28b7f9?We(_0x43257d,_0x5cf717):_0x43257d,_0x20c6de=_0x327f20[_0x5b499c(0x276)]-0x1,_0xae56c7;_0x20c6de>=0x0;_0x20c6de--)(_0xae56c7=_0x327f20[_0x20c6de])&&(_0x4173e7=_0xae56c7(_0x4173e7)||_0x4173e7);return _0x4173e7;},F=(_0x4cc83f,_0x293ca6)=>(_0x12728d,_0x234acb)=>_0x293ca6(_0x12728d,_0x234acb,_0x4cc83f),J=(_0x5bda39,_0x16912c,_0x2214a1)=>Ye(_0x5bda39,typeof _0x16912c!=_0x413fd2(0x20c)?_0x16912c+'':_0x16912c,_0x2214a1);const Ze=_0x413fd2(0x1d6);let O=class extends _0x54894e{constructor(_0x475c46=T,_0x5d25fe,_0x2c2f7f){var _0x302cf8=_0x413fd2;super(),this['_config']=_0x475c46,this[_0x302cf8(0x1f6)]=_0x5d25fe,this[_0x302cf8(0x21d)]=_0x2c2f7f;const {..._0x5590e7}=_0x563c15({},T,this[_0x302cf8(0x21c)]);this['_configService'][_0x302cf8(0x269)](Oe,_0x5590e7);}[_0x413fd2(0x242)](){var _0x3b0e2e=_0x413fd2;_0x4b1d24(this[_0x3b0e2e(0x1f6)],_0x38959d([[L],[I],[m],[b]],this['_config'][_0x3b0e2e(0x254)])),_0x4a7c72(this[_0x3b0e2e(0x1f6)],[[m]]);}[_0x413fd2(0x264)](){var _0x206d69=_0x413fd2;_0x4a7c72(this[_0x206d69(0x1f6)],[[b]]);}};J(O,_0x413fd2(0x1e7),_0x2369f2[_0x413fd2(0x22d)]),J(O,_0x413fd2(0x21a),Ze),O=Be([_0x39d809(_0x40879e),F(0x1,_0x287324(_0x189459)),F(0x2,_0x4addda)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x29ea9a=_0x51d1;(function(_0x2e539b,_0x30b79d){var _0x442bc2=_0x51d1,_0x2006dd=_0x2e539b();while(!![]){try{var _0x21830c=-parseInt(_0x442bc2(0x107))/0x1+parseInt(_0x442bc2(0x18d))/0x2*(parseInt(_0x442bc2(0x125))/0x3)+parseInt(_0x442bc2(0x121))/0x4*(-parseInt(_0x442bc2(0x16b))/0x5)+parseInt(_0x442bc2(0x184))/0x6+-parseInt(_0x442bc2(0x10d))/0x7+parseInt(_0x442bc2(0x15f))/0x8*(parseInt(_0x442bc2(0x15d))/0x9)+parseInt(_0x442bc2(0x18a))/0xa*(parseInt(_0x442bc2(0x16a))/0xb);if(_0x21830c===_0x30b79d)break;else _0x2006dd['push'](_0x2006dd['shift']());}catch(_0x35012c){_0x2006dd['push'](_0x2006dd['shift']());}}}(_0x1c84,0xc04ca));var q=Object[_0x29ea9a(0xe3)],z=(_0x1e27de,_0x3e9bd2,_0x102936)=>_0x3e9bd2 in _0x1e27de?q(_0x1e27de,_0x3e9bd2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102936}):_0x1e27de[_0x3e9bd2]=_0x102936,d=(_0x30636d,_0x190c7f,_0x1a56e2)=>z(_0x30636d,typeof _0x190c7f!=_0x29ea9a(0x15c)?_0x190c7f+'':_0x190c7f,_0x1a56e2);import{CollaborationSessionService as _0x94a5e1,SessionStatus as _0x2862a6,UniverCollaborationClientPlugin as _0x1a961f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x31e7a4,toDisposable as _0x5bc629,Inject as _0xf646c1,IUniverInstanceService as _0x3459c1,Injector as _0x4498f3,IConfigService as _0x548d47,ICommandService as _0x1b0ea8,RxDisposable as _0x4e23fa,UniverInstanceType as _0x2e7d47,DisposableCollection as _0x20d871,CommandType as _0x110f27,DependentOn as _0x484a52,Plugin as _0xe5ff50,merge as _0x1fc8bd,registerDependencies as _0x2df774,mergeOverrideWithDependencies as _0x1e76da,touchDependencies as _0x21061e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4a98a2,InsertSheetMutation as _0x438976}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x9bc1a6,SetScrollOperation as _0x35abd8}from'@univerjs/sheets-ui';import{useDependency as _0x1c7154,useObservable as _0x47ceac,IUIPartsService as _0x410032,BuiltInUIPart as _0x591b35,connectInjector as _0x2ac8da}from'@univerjs/ui';import{jsx as _0x4a136f,jsxs as _0x6bb112,Fragment as _0x1f470d}from'react/jsx-runtime';import{Dropdown as _0x1f3e5a,clsx as _0x42ee3f,Button as _0x1b521d}from'@univerjs/design';import{forwardRef as _0x583fa1,useRef as _0x5b9881,createElement as _0x4ad7a6,useState as _0x445d54,useEffect as _0x212ac3}from'react';import{CollaborationEvent as _0x4ba672,parseProtocolChangeset as _0x3bfe1e}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2ba6f1,Subject as _0x2ae17d}from'rxjs';import{takeUntil as _0xe8d355,throttleTime as _0x66b6b3}from'rxjs/operators';function _0x51d1(_0x329407,_0x58d95c){var _0x1c846c=_0x1c84();return _0x51d1=function(_0x51d167,_0x5f2db0){_0x51d167=_0x51d167-0xe2;var _0x1d1a4e=_0x1c846c[_0x51d167];return _0x1d1a4e;},_0x51d1(_0x329407,_0x58d95c);}const Oe=_0x29ea9a(0x17e),T={};class L extends _0x31e7a4{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x49f752){var _0x230441=_0x29ea9a;return this['_sharedOperations'][_0x230441(0x154)](_0x49f752),_0x5bc629(()=>this[_0x230441(0x174)][_0x230441(0x118)](_0x49f752));}[_0x29ea9a(0x190)](_0x22e292){var _0x4a4c06=_0x29ea9a;return this['_reporters'][_0x4a4c06(0x154)](_0x22e292),_0x5bc629(()=>this[_0x4a4c06(0x164)]['delete'](_0x22e292));}[_0x29ea9a(0x12b)](_0x2e6cb2){var _0x4ece42=_0x29ea9a;return this['_sharedOperations'][_0x4ece42(0x169)](_0x2e6cb2);}['getInitialStates'](_0x51579d){var _0x22cbd6=_0x29ea9a;return Array[_0x22cbd6(0xec)](this['_reporters'])[_0x22cbd6(0x152)](_0x534788=>_0x534788(_0x51579d));}}var Ee=Object[_0x29ea9a(0x144)],we=(_0x4729e6,_0x25efc6,_0x4428ce,_0x5dd2d0)=>{var _0x523514=_0x29ea9a;for(var _0xc78f72=_0x5dd2d0>0x1?void 0x0:_0x5dd2d0?Ee(_0x25efc6,_0x4428ce):_0x25efc6,_0x355086=_0x4729e6[_0x523514(0xfd)]-0x1,_0x219f89;_0x355086>=0x0;_0x355086--)(_0x219f89=_0x4729e6[_0x355086])&&(_0xc78f72=_0x219f89(_0xc78f72)||_0xc78f72);return _0xc78f72;},Ne=(_0x17cca6,_0xa35939)=>(_0x5730c2,_0x314f4a)=>_0xa35939(_0x5730c2,_0x314f4a,_0x17cca6);let m=class extends _0x31e7a4{constructor(_0x456393){var _0x32c753=_0x29ea9a;super(),this[_0x32c753(0xe7)]=_0x456393,this[_0x32c753(0x191)]();}['_init'](){var _0x16f081=_0x29ea9a;[_0x9bc1a6['id'],_0x35abd8['id'],_0x4a98a2['id']][_0x16f081(0xfe)](_0x2dd668=>{var _0x50365d=_0x16f081;this[_0x50365d(0x11f)](this['_liveShareService']['registerSharedOperation'](_0x2dd668));});}};m=we([Ne(0x0,_0xf646c1(L))],m);var c=function(){var _0x4f80ae=_0x29ea9a;return c=Object[_0x4f80ae(0x129)]||function(_0x546113){var _0x1a2a1a=_0x4f80ae;for(var _0x2504bc,_0x5b7c09=0x1,_0x319fa3=arguments[_0x1a2a1a(0xfd)];_0x5b7c09<_0x319fa3;_0x5b7c09++){_0x2504bc=arguments[_0x5b7c09];for(var _0x37eb23 in _0x2504bc)Object[_0x1a2a1a(0xf8)][_0x1a2a1a(0x156)]['call'](_0x2504bc,_0x37eb23)&&(_0x546113[_0x37eb23]=_0x2504bc[_0x37eb23]);}return _0x546113;},c[_0x4f80ae(0x10f)](this,arguments);},Ce=function(_0x16c132,_0x13cf8f){var _0x3e8ae1=_0x29ea9a,_0x31237b={};for(var _0x19e3ca in _0x16c132)Object[_0x3e8ae1(0xf8)][_0x3e8ae1(0x156)][_0x3e8ae1(0x115)](_0x16c132,_0x19e3ca)&&_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca)<0x0&&(_0x31237b[_0x19e3ca]=_0x16c132[_0x19e3ca]);if(_0x16c132!=null&&typeof Object['getOwnPropertySymbols']==_0x3e8ae1(0x12a)){for(var _0x5ab7cc=0x0,_0x19e3ca=Object[_0x3e8ae1(0xed)](_0x16c132);_0x5ab7cc<_0x19e3ca[_0x3e8ae1(0xfd)];_0x5ab7cc++)_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca[_0x5ab7cc])<0x0&&Object[_0x3e8ae1(0xf8)]['propertyIsEnumerable']['call'](_0x16c132,_0x19e3ca[_0x5ab7cc])&&(_0x31237b[_0x19e3ca[_0x5ab7cc]]=_0x16c132[_0x19e3ca[_0x5ab7cc]]);}return _0x31237b;},W=_0x583fa1(function(_0x59348e,_0x575072){var _0x22ea0f=_0x29ea9a,_0x1a3048=_0x59348e[_0x22ea0f(0x110)],_0x501b1e=_0x59348e['id'],_0x428719=_0x59348e['className'],_0x4a1f29=_0x59348e[_0x22ea0f(0x185)],_0x5daae5=Ce(_0x59348e,[_0x22ea0f(0x110),'id',_0x22ea0f(0x162),_0x22ea0f(0x185)]),_0xdfe4ba=_0x22ea0f(0xe2)[_0x22ea0f(0x15a)](_0x501b1e,'\x20')[_0x22ea0f(0x15a)](_0x428719||'')[_0x22ea0f(0x14e)](),_0x8c5030=_0x5b9881('_'[_0x22ea0f(0x15a)](Le()));return Y(_0x1a3048,''['concat'](_0x501b1e),{'defIds':_0x1a3048[_0x22ea0f(0x16d)],'idSuffix':_0x8c5030[_0x22ea0f(0x150)]},c({'ref':_0x575072,'className':_0xdfe4ba},_0x5daae5),_0x4a1f29);});function Y(_0x351519,_0x7b0a64,_0x40ce57,_0x167839,_0x617ee6){var _0x123fb6=_0x29ea9a;return _0x4ad7a6(_0x351519[_0x123fb6(0x153)],c(c({'key':_0x7b0a64},De(_0x351519,_0x40ce57,_0x617ee6)),_0x167839),(xe(_0x351519,_0x40ce57)['children']||[])[_0x123fb6(0x152)](function(_0x573246,_0xd28742){var _0x4c1d74=_0x123fb6;return Y(_0x573246,''[_0x4c1d74(0x15a)](_0x7b0a64,'-')[_0x4c1d74(0x15a)](_0x351519['tag'],'-')[_0x4c1d74(0x15a)](_0xd28742),_0x40ce57,void 0x0,_0x617ee6);}));}function De(_0x178ca2,_0x127977,_0x199db4){var _0x1ece7c=_0x29ea9a,_0x3faf2d=c({},_0x178ca2['attrs']);_0x199db4!=null&&_0x199db4[_0x1ece7c(0x13b)]&&_0x3faf2d[_0x1ece7c(0x116)]==='colorChannel1'&&(_0x3faf2d[_0x1ece7c(0x116)]=_0x199db4[_0x1ece7c(0x13b)]),_0x178ca2[_0x1ece7c(0x153)]===_0x1ece7c(0xfb)&&_0x3faf2d['id']&&(_0x3faf2d['id']=_0x3faf2d['id']+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x45616f){var _0xb5b206=_0x1ece7c,_0x4ab0d9=_0x45616f[0x0],_0x4fa357=_0x45616f[0x1];_0x4ab0d9===_0xb5b206(0xfb)&&typeof _0x4fa357==_0xb5b206(0x143)&&(_0x3faf2d[_0x4ab0d9]=_0x4fa357['replace'](/url\(#(.*)\)/,_0xb5b206(0xee)[_0xb5b206(0x15a)](_0x127977['idSuffix'],')')));});var _0x3ec402=_0x127977['defIds'];return!_0x3ec402||_0x3ec402[_0x1ece7c(0xfd)]===0x0||(_0x178ca2[_0x1ece7c(0x153)]==='use'&&_0x3faf2d[_0x1ece7c(0x142)]&&(_0x3faf2d[_0x1ece7c(0x142)]=_0x3faf2d[_0x1ece7c(0x142)]+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x5a4901){var _0x2af601=_0x1ece7c,_0x27507f=_0x5a4901[0x0],_0x378233=_0x5a4901[0x1];typeof _0x378233=='string'&&(_0x3faf2d[_0x27507f]=_0x378233[_0x2af601(0x108)](/url\(#(.*)\)/,_0x2af601(0xee)[_0x2af601(0x15a)](_0x127977[_0x2af601(0xf1)],')')));})),_0x3faf2d;}function xe(_0x2d6f75,_0x2db820){var _0x4a7e05=_0x29ea9a,_0x30f5c6,_0x47d695=_0x2db820[_0x4a7e05(0x16d)];return!_0x47d695||_0x47d695[_0x4a7e05(0xfd)]===0x0?_0x2d6f75:_0x2d6f75['tag']===_0x4a7e05(0x117)&&(!((_0x30f5c6=_0x2d6f75['children'])===null||_0x30f5c6===void 0x0)&&_0x30f5c6[_0x4a7e05(0xfd)])?c(c({},_0x2d6f75),{'children':_0x2d6f75[_0x4a7e05(0xe5)][_0x4a7e05(0x152)](function(_0xf66d93){var _0x5d9e9d=_0x4a7e05;return typeof _0xf66d93[_0x5d9e9d(0x163)]['id']==_0x5d9e9d(0x143)&&_0x47d695&&_0x47d695[_0x5d9e9d(0x14a)](_0xf66d93['attrs']['id'])?c(c({},_0xf66d93),{'attrs':c(c({},_0xf66d93[_0x5d9e9d(0x163)]),{'id':_0xf66d93['attrs']['id']+_0x2db820[_0x5d9e9d(0xf1)]})}):_0xf66d93;})}):_0x2d6f75;}function Le(){var _0x31daf6=_0x29ea9a;return Math[_0x31daf6(0x155)]()[_0x31daf6(0xf9)](0x24)[_0x31daf6(0x135)](0x2,0x8);}W[_0x29ea9a(0x12c)]=_0x29ea9a(0xf3);var ye={'tag':_0x29ea9a(0x160),'attrs':{'xmlns':_0x29ea9a(0x159),'fill':_0x29ea9a(0x13f),'viewBox':_0x29ea9a(0x11c),'width':'1em','height':_0x29ea9a(0xeb)},'children':[{'tag':'path','attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x133)}},{'tag':_0x29ea9a(0x13d),'attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x10c),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x583fa1(function(_0x5eb44d,_0x1d0b83){var _0x36dd0c=_0x29ea9a;return _0x4ad7a6(W,Object[_0x36dd0c(0x129)]({},_0x5eb44d,{'id':_0x36dd0c(0x175),'ref':_0x1d0b83,'icon':ye}));});B[_0x29ea9a(0x12c)]=_0x29ea9a(0xe4);var Re=Object[_0x29ea9a(0x144)],Z=(_0x4a1d99,_0x639301,_0x3ca504,_0x1ee71b)=>{var _0x2c75d5=_0x29ea9a;for(var _0xdeff43=_0x1ee71b>0x1?void 0x0:_0x1ee71b?Re(_0x639301,_0x3ca504):_0x639301,_0xb45533=_0x4a1d99[_0x2c75d5(0xfd)]-0x1,_0x50dfce;_0xb45533>=0x0;_0xb45533--)(_0x50dfce=_0x4a1d99[_0xb45533])&&(_0xdeff43=_0x50dfce(_0xdeff43)||_0xdeff43);return _0xdeff43;},f=(_0x54ad62,_0x4708ba)=>(_0x3dfb05,_0xc7ff4f)=>_0x4708ba(_0x3dfb05,_0xc7ff4f,_0x54ad62);let I=class extends _0x4e23fa{constructor(_0x1cce31,_0x50b9af,_0x17cfc2){var _0x53d623=_0x29ea9a;super(),d(this,_0x53d623(0x149),new Map()),(this[_0x53d623(0x17d)]=_0x1cce31,this[_0x53d623(0x176)]=_0x50b9af,this[_0x53d623(0x183)]=_0x17cfc2,this[_0x53d623(0x191)]());}async[_0x29ea9a(0x134)](_0x5b2e16){var _0x3ef8dd=_0x29ea9a;return this[_0x3ef8dd(0x149)][_0x3ef8dd(0x169)](_0x5b2e16)||await this['_startLiveShareCoordinator'](_0x5b2e16),this[_0x3ef8dd(0x149)][_0x3ef8dd(0x103)](_0x5b2e16);}[_0x29ea9a(0x191)](){var _0x41d61e=_0x29ea9a;this[_0x41d61e(0x17d)][_0x41d61e(0xf5)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this[_0x41d61e(0x16e)]))['subscribe'](async _0x182770=>{var _0x3f6f23=_0x41d61e;const _0x235b5c=_0x182770[_0x3f6f23(0x11b)]();this[_0x3f6f23(0x149)][_0x3f6f23(0x169)](_0x235b5c)||this['_startLiveShareCoordinator'](_0x235b5c);}),this[_0x41d61e(0x17d)][_0x41d61e(0x186)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this['dispose$']))[_0x41d61e(0x127)](_0x3cdcd7=>{var _0xf57f0d=_0x41d61e;const _0x34c9e6=_0x3cdcd7['getUnitId'](),_0x2c7fb8=this[_0xf57f0d(0x149)]['get'](_0x34c9e6);_0x2c7fb8==null||_0x2c7fb8[_0xf57f0d(0x14d)]();});}async['_startLiveShareCoordinator'](_0x162ec6){var _0x2c22e6=_0x29ea9a;const _0x45ac00=await this['_collabSessionService'][_0x2c22e6(0x11d)](_0x162ec6),_0x4f6b13=this[_0x2c22e6(0x176)][_0x2c22e6(0x161)](C,_0x162ec6,_0x45ac00);return _0x4f6b13[_0x2c22e6(0x111)](),this[_0x2c22e6(0x149)]['set'](_0x162ec6,_0x4f6b13),_0x4f6b13;}};I=Z([f(0x0,_0x3459c1),f(0x1,_0xf646c1(_0x4498f3)),f(0x2,_0xf646c1(_0x94a5e1))],I);var h=(_0xc86bd0=>(_0xc86bd0[_0x29ea9a(0x114)]='offline',_0xc86bd0[_0x29ea9a(0x109)]='idle',_0xc86bd0[_0x29ea9a(0x14b)]=_0x29ea9a(0x13e),_0xc86bd0[_0x29ea9a(0x188)]=_0x29ea9a(0xfa),_0xc86bd0['PRESENTING']='presenting',_0xc86bd0))(h||{});const Pe=_0x29ea9a(0x187),Ae=0xc8;let C=class extends _0x4e23fa{constructor(_0x52c8ee,_0x215b8b,_0xd5ef52,_0x3e8131,_0x30510b){var _0x275bac=_0x29ea9a;super(),d(this,_0x275bac(0x147),new _0x2ba6f1(_0x275bac(0x14c))),d(this,'status$',this[_0x275bac(0x147)][_0x275bac(0xe9)]()),d(this,_0x275bac(0x191),!0x1),d(this,_0x275bac(0x182),null),d(this,_0x275bac(0x13c),null),(this[_0x275bac(0x189)]=_0x52c8ee,this[_0x275bac(0xf7)]=_0x215b8b,this['_configService']=_0xd5ef52,this['_liveShareService']=_0x3e8131,this['_commandService']=_0x30510b);}get[_0x29ea9a(0x171)](){var _0x1c0415=_0x29ea9a;return this[_0x1c0415(0x147)]['getValue']();}[_0x29ea9a(0x14d)](){var _0x46e4a8=_0x29ea9a,_0x1e2fd3;(_0x1e2fd3=this['_commandDisposable'])==null||_0x1e2fd3['dispose'](),this[_0x46e4a8(0x147)][_0x46e4a8(0x140)](_0x46e4a8(0x14c)),this['_status$'][_0x46e4a8(0x14f)]();}[_0x29ea9a(0x111)](){var _0x3e1a6c=_0x29ea9a;this[_0x3e1a6c(0x191)]||(this['_init']=!0x0,this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x168)][_0x3e1a6c(0x10b)](_0xe8d355(this['dispose$']))[_0x3e1a6c(0x127)](_0x33a298=>{var _0x433edb=_0x3e1a6c;switch(_0x33a298){case _0x2862a6[_0x433edb(0x114)]:this[_0x433edb(0xe6)]();break;case _0x2862a6[_0x433edb(0x119)]:this[_0x433edb(0xea)]();break;}}),this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x130)][_0x3e1a6c(0x10b)](_0xe8d355(this[_0x3e1a6c(0x16e)]))['subscribe'](_0xcdd238=>{var _0x176846=_0x3e1a6c;const {eventID:_0x222dc3}=_0xcdd238;switch(_0x222dc3){case _0x4ba672[_0x176846(0x141)]:this[_0x176846(0x100)](_0xcdd238);break;case _0x4ba672['LIVESHARE_OPERATION']:this[_0x176846(0x17b)](_0xcdd238);break;case _0x4ba672[_0x176846(0x113)]:this[_0x176846(0x179)]();break;case _0x4ba672['NEW_CHANGESETS']:this[_0x176846(0x11e)](_0xcdd238);break;}}));}['tryStartPresenting'](){var _0x5a07cc=_0x29ea9a;this[_0x5a07cc(0xf7)][_0x5a07cc(0xef)]({'eventID':_0x4ba672['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x5a07cc(0x18e)]()}},this[_0x5a07cc(0x189)]);}['stopPresenting'](){var _0x42b4d6=_0x29ea9a;this['_status']===_0x42b4d6(0x105)&&(this[_0x42b4d6(0x147)][_0x42b4d6(0x140)]('idle'),this[_0x42b4d6(0xf7)][_0x42b4d6(0xef)]({'eventID':_0x4ba672[_0x42b4d6(0x113)],'data':{'unitID':this['_unitID']}},this[_0x42b4d6(0x189)]));}['startFollowing'](){var _0x319e7d=_0x29ea9a;this[_0x319e7d(0x171)]===_0x319e7d(0xfa)&&(this['_status$'][_0x319e7d(0x140)](_0x319e7d(0x13e)),this[_0x319e7d(0x192)]());}[_0x29ea9a(0x178)](){var _0x2355c5=_0x29ea9a;this[_0x2355c5(0x171)]===_0x2355c5(0x13e)&&this[_0x2355c5(0x139)]();}[_0x29ea9a(0x100)](_0x9946a1){var _0x5e3cb2=_0x29ea9a;const {presenter:_0x8feeef}=_0x9946a1['data'],_0x484067=this[_0x5e3cb2(0xf7)][_0x5e3cb2(0x18e)]();this['_presenter']=_0x8feeef,_0x8feeef===_0x484067?(this[_0x5e3cb2(0x139)](),this['_startPresenting']()):this[_0x5e3cb2(0x171)]!==_0x5e3cb2(0xfa)&&(this[_0x5e3cb2(0x165)](),this['_startFollowing']());}[_0x29ea9a(0x145)](){var _0x517ee2=_0x29ea9a;const _0x139f05={'eventID':_0x4ba672[_0x517ee2(0x193)]};this[_0x517ee2(0xf7)][_0x517ee2(0xef)](_0x139f05,this[_0x517ee2(0x189)]);}[_0x29ea9a(0x179)](){var _0x4a90a8=_0x29ea9a;this[_0x4a90a8(0x13c)]=null,this['_status']!==_0x4a90a8(0x105)&&this['_beIdle']();}[_0x29ea9a(0x11e)](_0x59f989){var _0x50d831=_0x29ea9a;if(this[_0x50d831(0x171)]===_0x50d831(0x13e)&&this[_0x50d831(0x13c)]===_0x59f989[_0x50d831(0x120)][_0x50d831(0x18c)]){const _0x2eb3eb=_0x3bfe1e(_0x59f989[_0x50d831(0x120)])[_0x50d831(0x11a)]['reverse']()[_0x50d831(0xfc)](_0x170a2c=>_0x170a2c['id']===_0x438976['id']);if(_0x2eb3eb){const _0xe99f74=_0x2eb3eb['params'][_0x50d831(0x166)],_0x4181ae=_0x2eb3eb[_0x50d831(0x131)]['sheet']['id'];setTimeout(()=>{var _0xcfc9a7=_0x50d831;this[_0xcfc9a7(0x137)]['executeCommand'](_0x4a98a2['id'],{'unitId':_0xe99f74,'subUnitId':_0x4181ae},{'fromCollab':!0x0});});}}}[_0x29ea9a(0xf0)](){var _0x292509=_0x29ea9a;this[_0x292509(0x147)]['next']('presenting');const _0xaf012f=new Map(),_0x156205=this['_commandDisposable']=new _0x20d871();_0x156205[_0x292509(0x154)](_0x5bc629(()=>{var _0x524e09=_0x292509;_0xaf012f[_0x524e09(0xfe)](_0x40801e=>_0x40801e[_0x524e09(0x14f)]()),_0xaf012f[_0x524e09(0x177)]();})),_0x156205['add'](this[_0x292509(0x137)][_0x292509(0x181)](_0x100f14=>{var _0x1fea4f=_0x292509,_0x27232b;if(_0x100f14['type']!==_0x110f27[_0x1fea4f(0x126)]||!this['_liveShareService']['shouldShareOperation'](_0x100f14['id']))return;const {id:_0x18db32}=_0x100f14;let _0x24fe15;_0xaf012f[_0x1fea4f(0x169)](_0x18db32)?_0x24fe15=_0xaf012f[_0x1fea4f(0x103)](_0x18db32):(_0x24fe15=new _0x2ae17d(),_0xaf012f[_0x1fea4f(0x13a)](_0x18db32,_0x24fe15),_0x24fe15['pipe'](_0x66b6b3((_0x27232b=this[_0x1fea4f(0x136)][_0x1fea4f(0x138)](Pe))!=null?_0x27232b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1fea4f(0x127)](_0x31ba6=>{var _0x187f78=_0x1fea4f;this['_collabSession']['send']({'eventID':_0x4ba672[_0x187f78(0x10a)],'data':{'unitID':this[_0x187f78(0x189)],'operations':{[_0x31ba6['id']]:{'id':_0x31ba6['id'],'params':JSON[_0x187f78(0x167)](_0x31ba6['params'])}}}},this[_0x187f78(0x189)]);})),_0x24fe15[_0x1fea4f(0x140)](_0x100f14);})),this['_liveShareService'][_0x292509(0x10e)](this['_unitID'])[_0x292509(0xfe)](_0x430b5d=>this[_0x292509(0xf7)]['send']({'eventID':_0x4ba672['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x292509(0x189)],'operations':{[_0x430b5d['id']]:{'id':_0x430b5d['id'],'params':JSON[_0x292509(0x167)](_0x430b5d[_0x292509(0x131)])}}}},this[_0x292509(0x189)]));}[_0x29ea9a(0x165)](){var _0x481fa1=_0x29ea9a,_0x52f8a2;this[_0x481fa1(0x147)]['next']('idle'),(_0x52f8a2=this[_0x481fa1(0x182)])==null||_0x52f8a2[_0x481fa1(0x14d)](),this[_0x481fa1(0x182)]=null;}[_0x29ea9a(0x192)](){var _0x24bd24=_0x29ea9a,_0x19333c;(_0x19333c=this[_0x24bd24(0x182)])==null||_0x19333c[_0x24bd24(0x14d)](),this[_0x24bd24(0x147)][_0x24bd24(0x140)](_0x24bd24(0x13e));}[_0x29ea9a(0x18f)](){var _0x201217=_0x29ea9a,_0x5e5564;this['_status$'][_0x201217(0x140)](_0x201217(0x14c)),(_0x5e5564=this[_0x201217(0x182)])==null||_0x5e5564[_0x201217(0x14d)](),this[_0x201217(0x182)]=null;}[_0x29ea9a(0x139)](){var _0x260e9d=_0x29ea9a,_0x939aef;this[_0x260e9d(0x147)]['next'](_0x260e9d(0xfa)),(_0x939aef=this[_0x260e9d(0x182)])==null||_0x939aef[_0x260e9d(0x14d)]();}[_0x29ea9a(0x17b)](_0x283abf){var _0x5517e9=_0x29ea9a;if([_0x5517e9(0x105),_0x5517e9(0xfa),'offline'][_0x5517e9(0x14a)](this['_status'])||!_0x283abf[_0x5517e9(0x120)]['presenter']||_0x283abf[_0x5517e9(0x120)]['presenter']===this[_0x5517e9(0xf7)][_0x5517e9(0x18e)]())return;this['_status']===_0x5517e9(0x14c)&&this[_0x5517e9(0x192)]();const _0x2eab83=_0x283abf[_0x5517e9(0x120)][_0x5517e9(0x15b)];Object[_0x5517e9(0x122)](_0x2eab83)[_0x5517e9(0xfe)](_0x3bee2d=>{var _0x45bd06=_0x5517e9;this[_0x45bd06(0x137)][_0x45bd06(0x170)](_0x3bee2d['id'],_0x3bee2d[_0x45bd06(0x131)]?JSON['parse'](_0x3bee2d[_0x45bd06(0x131)]):null,{'fromCollab':!0x0});});}[_0x29ea9a(0xe6)](){var _0x92359d=_0x29ea9a,_0x642c3c;this[_0x92359d(0x147)][_0x92359d(0x140)]('offline'),(_0x642c3c=this['_commandDisposable'])==null||_0x642c3c[_0x92359d(0x14d)]();}[_0x29ea9a(0xea)](){var _0x45fb61=_0x29ea9a;this[_0x45fb61(0x147)][_0x45fb61(0x140)]('idle'),this[_0x45fb61(0x145)]();}};C=Z([f(0x2,_0x548d47),f(0x3,_0xf646c1(L)),f(0x4,_0x1b0ea8)],C);function Te(){var _0xf9ddca=_0x29ea9a;const _0x45a09a=_0x1c7154(I),_0x5e7ead=_0x1c7154(_0x3459c1),_0xd3caca=_0x47ceac(()=>_0x5e7ead[_0xf9ddca(0x132)](_0x2e7d47[_0xf9ddca(0x17a)]),void 0x0,!0x1,[]),[_0x3b8e9c,_0xd0e9f3]=_0x445d54(null),[_0x224d15,_0x32f3b5]=_0x445d54(h['IDLE']),_0xa80675=_0x5b9881(null);return _0x212ac3(()=>(_0xd3caca&&_0x45a09a[_0xf9ddca(0x134)](_0xd3caca[_0xf9ddca(0x11b)]())[_0xf9ddca(0x151)](_0x206eb9=>{var _0x5bbaba=_0xf9ddca;_0xd0e9f3(_0x206eb9),_0xa80675[_0x5bbaba(0x150)]=_0x206eb9['status$']['subscribe'](_0x5070a4=>{_0x32f3b5(_0x5070a4);});}),()=>{var _0x43059c=_0xf9ddca,_0x182b58;(_0x182b58=_0xa80675[_0x43059c(0x150)])==null||_0x182b58[_0x43059c(0x180)](),_0xa80675[_0x43059c(0x150)]=null;}),[_0xd3caca,_0x45a09a]),_0x3b8e9c?_0x4a136f(_0x1f3e5a,{'align':_0xf9ddca(0x17f),'disabled':_0x224d15===h['OFFLINE'],'className':_0xf9ddca(0x17c),'overlay':_0x4a136f($e,{'status':_0x224d15,'coordinator':_0x3b8e9c}),'children':_0x4a136f('button',{'className':_0x42ee3f(_0xf9ddca(0x16f),{'univer-cursor-not-allowed':_0x224d15===h[_0xf9ddca(0x114)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x224d15!==h['OFFLINE']}),'type':'button','children':_0x4a136f(B,{'className':_0xf9ddca(0xff)})})}):null;}function $e(_0x9a85bb){var _0x33288a=_0x29ea9a;const {status:_0x5817e0,coordinator:_0x333446}=_0x9a85bb;switch(_0x5817e0){case h[_0x33288a(0x109)]:return _0x4a136f(Fe,{'coordinator':_0x333446});case h[_0x33288a(0x14b)]:return _0x4a136f(He,{'coordinator':_0x333446});case h[_0x33288a(0x188)]:return _0x4a136f(je,{'coordinator':_0x333446});case h[_0x33288a(0x114)]:return _0x4a136f(Ve,{});case h[_0x33288a(0x172)]:return _0x4a136f(Ue,{'coordinator':_0x333446});default:return null;}}function Fe(_0xa7ebdc){var _0x1afe45=_0x29ea9a;const {coordinator:_0x2a99e0}=_0xa7ebdc;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x1afe45(0x112),{'className':_0x1afe45(0x18b),'children':'Present\x20this\x20document'}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x2a99e0[_0x1afe45(0xf6)](),'children':'Start'})]});}function He(_0x203364){var _0x2826aa=_0x29ea9a;const {coordinator:_0x4f5e11}=_0x203364;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x2826aa(0x112),{'className':_0x2826aa(0x18b),'children':_0x2826aa(0x124)}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x4f5e11[_0x2826aa(0x178)](),'children':_0x2826aa(0xe8)})]});}function je(_0x3c4956){var _0x3fd904=_0x29ea9a;const {coordinator:_0x36814f}=_0x3c4956;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x3fd904(0x112),{'className':_0x3fd904(0x18b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a136f(_0x1b521d,{'variant':_0x3fd904(0x157),'onClick':()=>_0x36814f[_0x3fd904(0x16c)](),'children':_0x3fd904(0x102)})]});}function Ue(_0xf5f8c5){var _0x4d988e=_0x29ea9a;const {coordinator:_0x148e48}=_0xf5f8c5;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x4d988e(0x112),{'className':_0x4d988e(0x18b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4a136f(_0x1b521d,{'variant':_0x4d988e(0x12f),'onClick':()=>_0x148e48['stopPresenting'](),'children':_0x4d988e(0x101)})]});}function Ve(){var _0x500d47=_0x29ea9a;return _0x4a136f(_0x1f470d,{'children':_0x500d47(0x12e)});}var Me=Object[_0x29ea9a(0x144)],ke=(_0xafba00,_0x26e348,_0x1b621e,_0x448c0e)=>{var _0x288742=_0x29ea9a;for(var _0x565988=_0x448c0e>0x1?void 0x0:_0x448c0e?Me(_0x26e348,_0x1b621e):_0x26e348,_0xca3a23=_0xafba00[_0x288742(0xfd)]-0x1,_0x1d090b;_0xca3a23>=0x0;_0xca3a23--)(_0x1d090b=_0xafba00[_0xca3a23])&&(_0x565988=_0x1d090b(_0x565988)||_0x565988);return _0x565988;},$=(_0x41c942,_0x2be0b4)=>(_0x4004b3,_0x43d979)=>_0x2be0b4(_0x4004b3,_0x43d979,_0x41c942);let b=class extends _0x31e7a4{constructor(_0x58032c,_0x7039b4){var _0x287563=_0x29ea9a;super(),this[_0x287563(0x176)]=_0x58032c,this['_uiPartsService']=_0x7039b4,this[_0x287563(0x106)]();}[_0x29ea9a(0x106)](){var _0x1f40fb=_0x29ea9a;this[_0x1f40fb(0x11f)](this['_uiPartsService'][_0x1f40fb(0xf4)](_0x591b35[_0x1f40fb(0x12d)],()=>_0x2ac8da(Te,this[_0x1f40fb(0x176)])));}};b=ke([$(0x0,_0xf646c1(_0x4498f3)),$(0x1,_0x410032)],b);var Ge=Object['defineProperty'],We=Object[_0x29ea9a(0x144)],Ye=(_0x3e98b5,_0x5c2556,_0x21b3d4)=>_0x5c2556 in _0x3e98b5?Ge(_0x3e98b5,_0x5c2556,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21b3d4}):_0x3e98b5[_0x5c2556]=_0x21b3d4,Be=(_0x2e2445,_0x33b4e8,_0x325c9c,_0x5e81cd)=>{var _0x7738a5=_0x29ea9a;for(var _0xc12076=_0x5e81cd>0x1?void 0x0:_0x5e81cd?We(_0x33b4e8,_0x325c9c):_0x33b4e8,_0x3a3cfb=_0x2e2445[_0x7738a5(0xfd)]-0x1,_0xb942d8;_0x3a3cfb>=0x0;_0x3a3cfb--)(_0xb942d8=_0x2e2445[_0x3a3cfb])&&(_0xc12076=_0xb942d8(_0xc12076)||_0xc12076);return _0xc12076;},F=(_0x2c32ba,_0x531112)=>(_0x575a22,_0x10a097)=>_0x531112(_0x575a22,_0x10a097,_0x2c32ba),J=(_0x189e2c,_0x38a65c,_0x560644)=>Ye(_0x189e2c,typeof _0x38a65c!='symbol'?_0x38a65c+'':_0x38a65c,_0x560644);function _0x1c84(){var _0xb87989=['displayName','HEADER_MENU','You\x27are\x20offline.','default','event$','params','getCurrentTypeOfUnit$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getLiveShareCoordinator','substring','_configService','_commandService','getConfig','_stopFollowing','set','colorChannel1','_presenter','path','following','none','next','LIVESHARE_NEW_HOST','xlink:href','string','getOwnPropertyDescriptor','_fetchOperations','UNIVER_UNKNOWN','_status$','entries','_entities','includes','FOLLOWING','idle','dispose','trim','complete','current','then','map','tag','add','random','hasOwnProperty','text','_config','http://www.w3.org/2000/svg','concat','operations','symbol','9piTwWA','currentColor','7618824eCinFs','svg','createInstance','className','attrs','_reporters','_stopPresenting','unitId','stringify','sessionStatus$','has','1444223VFnhuk','4701655KSNqAh','startFollowing','defIds','dispose$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','_status','PRESENTING','override','_sharedOperations','live-share-icon','_injector','clear','stopFollowing','_handleTerminate','UNIVER_SHEET','_handleOperation','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_univerInstanceService','live-share.config','end','unsubscribe','onCommandExecuted','_commandDisposable','_collabSessionService','7728972HJLjtG','extend','getTypeOfUnitDisposed$','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','_unitID','10QvhuZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','memberID','4MrDisJ','getMemberID','_beIdle','registerInitialStateReporter','_init','_startFollowing','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','defineProperty','LiveShareIcon','children','_handleOffline','_liveShareService','Stop\x20following','asObservable','_handleOnline','1em','from','getOwnPropertySymbols','url(#$1','send','_startPresenting','idSuffix','indexOf','UniverIcon','registerComponent','getTypeOfUnitAdded$','tryStartPresenting','_collabSession','prototype','toString','not-following','mask','find','length','forEach','univer-size-4','_handleNewHost','Stop\x20presenting','Start\x20following','get','pluginName','presenting','_mountLiveShare','735406bnpZXG','replace','IDLE','LIVESHARE_OPERATION','pipe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','8515199DXvfLa','getInitialStates','apply','icon','init','div','LIVESHARE_TERMINATE','OFFLINE','call','fill','defs','delete','ONLINE','mutations','getUnitId','0\x200\x2017\x2017','requireSession','_handleNewChangeSets','disposeWithMe','data','4dXQVXl','values','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','1962066RNeIFH','OPERATION','subscribe','onStarting','assign','function','shouldShareOperation'];_0x1c84=function(){return _0xb87989;};return _0x1c84();}const Ze=_0x29ea9a(0x123);let O=class extends _0xe5ff50{constructor(_0x270f78=T,_0x1ef3a4,_0x197e8a){var _0x683045=_0x29ea9a;super(),this[_0x683045(0x158)]=_0x270f78,this[_0x683045(0x176)]=_0x1ef3a4,this[_0x683045(0x136)]=_0x197e8a;const {..._0x5c320c}=_0x1fc8bd({},T,this['_config']);this[_0x683045(0x136)]['setConfig'](Oe,_0x5c320c);}[_0x29ea9a(0x128)](){var _0x2a2072=_0x29ea9a;_0x2df774(this[_0x2a2072(0x176)],_0x1e76da([[L],[I],[m],[b]],this['_config'][_0x2a2072(0x173)])),_0x21061e(this[_0x2a2072(0x176)],[[m]]);}['onRendered'](){_0x21061e(this['_injector'],[[b]]);}};J(O,'type',_0x2e7d47[_0x29ea9a(0x146)]),J(O,_0x29ea9a(0x104),Ze),O=Be([_0x484a52(_0x1a961f),F(0x1,_0xf646c1(_0x4498f3)),F(0x2,_0x548d47)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x413fd2=_0x2cc9;(function(_0x5b4813,_0xdc679c){var _0xc3d28f=_0x2cc9,_0x1c49be=_0x5b4813();while(!![]){try{var _0xc6cafd=parseInt(_0xc3d28f(0x241))/0x1*(parseInt(_0xc3d28f(0x1fb))/0x2)+parseInt(_0xc3d28f(0x201))/0x3*(parseInt(_0xc3d28f(0x1f2))/0x4)+-parseInt(_0xc3d28f(0x238))/0x5+parseInt(_0xc3d28f(0x25f))/0x6+-parseInt(_0xc3d28f(0x221))/0x7*(parseInt(_0xc3d28f(0x1e3))/0x8)+-parseInt(_0xc3d28f(0x1ed))/0x9+parseInt(_0xc3d28f(0x24c))/0xa;if(_0xc6cafd===_0xdc679c)break;else _0x1c49be['push'](_0x1c49be['shift']());}catch(_0x433505){_0x1c49be['push'](_0x1c49be['shift']());}}}(_0x26a2,0x6caa2));var q=Object[_0x413fd2(0x214)],z=(_0x52bfb2,_0x2d694d,_0x2df6f9)=>_0x2d694d in _0x52bfb2?q(_0x52bfb2,_0x2d694d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2df6f9}):_0x52bfb2[_0x2d694d]=_0x2df6f9,d=(_0x79e68c,_0x16f429,_0x257822)=>z(_0x79e68c,typeof _0x16f429!=_0x413fd2(0x20c)?_0x16f429+'':_0x16f429,_0x257822);import{CollaborationSessionService as _0x4bea65,SessionStatus as _0x28cf64,UniverCollaborationClientPlugin as _0x40879e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2d602a,toDisposable as _0x235983,Inject as _0x287324,IUniverInstanceService as _0x563054,Injector as _0x189459,IConfigService as _0x4addda,ICommandService as _0x4a5bf9,RxDisposable as _0x1b7a96,UniverInstanceType as _0x2369f2,DisposableCollection as _0x52dca9,CommandType as _0x1caa0b,DependentOn as _0x39d809,Plugin as _0x54894e,merge as _0x563c15,registerDependencies as _0x4b1d24,mergeOverrideWithDependencies as _0x38959d,touchDependencies as _0x4a7c72}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x587c83,InsertSheetMutation as _0x5d7e73}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x944e99,SetScrollOperation as _0x460232}from'@univerjs/sheets-ui';import{useDependency as _0x8c2502,useObservable as _0x54b49a,IUIPartsService as _0x2136ab,BuiltInUIPart as _0x120083,connectInjector as _0x38f68b}from'@univerjs/ui';import{jsx as _0x5b6f43,jsxs as _0x33eaea,Fragment as _0x5e9b05}from'react/jsx-runtime';import{Dropdown as _0x5da7d2,clsx as _0x4a52f6,Button as _0x4ec768}from'@univerjs/design';import{forwardRef as _0x5117a0,useRef as _0x56788e,createElement as _0x4101b7,useState as _0x393f14,useEffect as _0x569005}from'react';import{CollaborationEvent as _0x15f78f,parseProtocolChangeset as _0x525527}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x51ed42,Subject as _0x391242}from'rxjs';import{takeUntil as _0x960196,throttleTime as _0x3ef22c}from'rxjs/operators';const Oe=_0x413fd2(0x211),T={};class L extends _0x2d602a{constructor(){var _0x1631f5=_0x413fd2;super(...arguments),d(this,_0x1631f5(0x215),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x5be7aa){var _0x1e5040=_0x413fd2;return this['_sharedOperations'][_0x1e5040(0x1e6)](_0x5be7aa),_0x235983(()=>this[_0x1e5040(0x215)]['delete'](_0x5be7aa));}[_0x413fd2(0x244)](_0x1fd8f2){var _0x6b6945=_0x413fd2;return this[_0x6b6945(0x22e)]['add'](_0x1fd8f2),_0x235983(()=>this[_0x6b6945(0x22e)][_0x6b6945(0x21e)](_0x1fd8f2));}[_0x413fd2(0x23f)](_0x3e7832){var _0x1b79c7=_0x413fd2;return this['_sharedOperations'][_0x1b79c7(0x1d8)](_0x3e7832);}[_0x413fd2(0x245)](_0x439230){var _0x305883=_0x413fd2;return Array[_0x305883(0x212)](this[_0x305883(0x22e)])[_0x305883(0x263)](_0x1098aa=>_0x1098aa(_0x439230));}}var Ee=Object[_0x413fd2(0x252)],we=(_0x385e09,_0x2421dc,_0x5a0143,_0xd1c918)=>{var _0x37f6e3=_0x413fd2;for(var _0x139546=_0xd1c918>0x1?void 0x0:_0xd1c918?Ee(_0x2421dc,_0x5a0143):_0x2421dc,_0x568031=_0x385e09[_0x37f6e3(0x276)]-0x1,_0x56131f;_0x568031>=0x0;_0x568031--)(_0x56131f=_0x385e09[_0x568031])&&(_0x139546=_0x56131f(_0x139546)||_0x139546);return _0x139546;},Ne=(_0x57fa0e,_0xecd224)=>(_0x36ec41,_0x2a11c1)=>_0xecd224(_0x36ec41,_0x2a11c1,_0x57fa0e);function _0x26a2(){var _0x3514ee=['getValue','_stopPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','set','shouldShareOperation','getOwnPropertySymbols','241myPXcp','onStarting','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerInitialStateReporter','getInitialStates','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','startFollowing','forEach','current','substring','8695750RNtGJL','status$','NOT_FOLLOWING','icon','presenting','div','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','override','1em','FOLLOWING','apply','find','stopFollowing','end','_handleOperation','get','default','getLiveShareCoordinator','207966mruTWl','NEW_CHANGESETS','propertyIsEnumerable','_commandService','map','onRendered','sessionStatus$','fill','_status','children','setConfig','stringify','dispose','_stopFollowing','PRESENTING','string','dispose$','operations','displayName','random','svg','getMemberID','executeCommand','length','hasOwnProperty','xlink:href','asObservable','You\x27re\x20following\x20the\x20presenter','prototype','_status$','pipe','parse','Start','_handleTerminate','OFFLINE','evenodd','_handleNewHost','tryStartPresenting','replace','_handleNewChangeSets','presenter','_univerInstanceService','UNIVER_LIVE_SHARE_PLUGIN','getConfig','has','_liveShareService','live-share-icon','registerSharedOperation','getTypeOfUnitAdded$','entries','attrs','LiveShareIcon','clear','init','currentColor','8prJpmI','following','0\x200\x2017\x2017','add','type','_entities','subscribe','not-following','reverse','univer-size-4','3094704DSgROK','OPERATION','send','LIVESHARE_OPERATION','includes','8WlpMlr','unsubscribe','UniverIcon','idSuffix','_injector','indexOf','assign','_fetchOperations','toString','1116LzzebI','You\x27re\x20presenting\x20the\x20document','memberID','_beIdle','colorChannel1','_init','6057bMMERj','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','defs','extend','next','params','_collabSession','LIVESHARE_REQUEST_HOST','_collabSessionService','_handleOnline','concat','symbol','mask','_startFollowing','disposeWithMe','Stop\x20following','live-share.config','from','button','defineProperty','_sharedOperations','path','Stop\x20presenting','defIds','LIVESHARE_NEW_HOST','pluginName','IDLE','_config','_configService','delete','getTypeOfUnitDisposed$','getUnitId','1029854tYwjsI','data','UNIVER_SHEET','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_presenter','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_TERMINATE','onCommandExecuted','_unitID','requireSession','complete','You\x27are\x20offline.','UNIVER_UNKNOWN','_reporters','LIVESHARE_FETCH_OPERATIONS','tag','call','_commandDisposable','_uiPartsService','_startPresenting','trim','offline','_mountLiveShare','533420nBqltQ','registerComponent','idle'];_0x26a2=function(){return _0x3514ee;};return _0x26a2();}let m=class extends _0x2d602a{constructor(_0x5dbebf){var _0x3d9b84=_0x413fd2;super(),this[_0x3d9b84(0x1d9)]=_0x5dbebf,this[_0x3d9b84(0x200)]();}[_0x413fd2(0x200)](){var _0x1871a6=_0x413fd2;[_0x944e99['id'],_0x460232['id'],_0x587c83['id']][_0x1871a6(0x249)](_0x319583=>{var _0x254fda=_0x1871a6;this[_0x254fda(0x20f)](this[_0x254fda(0x1d9)][_0x254fda(0x1db)](_0x319583));});}};m=we([Ne(0x0,_0x287324(L))],m);var c=function(){var _0x19a2e2=_0x413fd2;return c=Object['assign']||function(_0x307f8f){var _0x2e33c9=_0x2cc9;for(var _0x465f70,_0x4cf198=0x1,_0x101135=arguments[_0x2e33c9(0x276)];_0x4cf198<_0x101135;_0x4cf198++){_0x465f70=arguments[_0x4cf198];for(var _0x271c49 in _0x465f70)Object[_0x2e33c9(0x27b)][_0x2e33c9(0x277)][_0x2e33c9(0x231)](_0x465f70,_0x271c49)&&(_0x307f8f[_0x271c49]=_0x465f70[_0x271c49]);}return _0x307f8f;},c[_0x19a2e2(0x257)](this,arguments);},Ce=function(_0x30934e,_0x314508){var _0x5466ff=_0x413fd2,_0x5b2ab6={};for(var _0x1711c5 in _0x30934e)Object[_0x5466ff(0x27b)]['hasOwnProperty']['call'](_0x30934e,_0x1711c5)&&_0x314508[_0x5466ff(0x1f7)](_0x1711c5)<0x0&&(_0x5b2ab6[_0x1711c5]=_0x30934e[_0x1711c5]);if(_0x30934e!=null&&typeof Object[_0x5466ff(0x240)]=='function'){for(var _0x5e1eac=0x0,_0x1711c5=Object[_0x5466ff(0x240)](_0x30934e);_0x5e1eac<_0x1711c5[_0x5466ff(0x276)];_0x5e1eac++)_0x314508[_0x5466ff(0x1f7)](_0x1711c5[_0x5e1eac])<0x0&&Object['prototype'][_0x5466ff(0x261)][_0x5466ff(0x231)](_0x30934e,_0x1711c5[_0x5e1eac])&&(_0x5b2ab6[_0x1711c5[_0x5e1eac]]=_0x30934e[_0x1711c5[_0x5e1eac]]);}return _0x5b2ab6;},W=_0x5117a0(function(_0x25da1b,_0x596937){var _0x47e06b=_0x413fd2,_0x620019=_0x25da1b[_0x47e06b(0x24f)],_0x922d47=_0x25da1b['id'],_0x57a0c8=_0x25da1b['className'],_0x5be5fa=_0x25da1b[_0x47e06b(0x204)],_0x273387=Ce(_0x25da1b,[_0x47e06b(0x24f),'id','className','extend']),_0x1ef570='univerjs-icon\x20univerjs-icon-'['concat'](_0x922d47,'\x20')[_0x47e06b(0x20b)](_0x57a0c8||'')[_0x47e06b(0x235)](),_0x483c6b=_0x56788e('_'[_0x47e06b(0x20b)](Le()));return Y(_0x620019,''[_0x47e06b(0x20b)](_0x922d47),{'defIds':_0x620019[_0x47e06b(0x218)],'idSuffix':_0x483c6b[_0x47e06b(0x24a)]},c({'ref':_0x596937,'className':_0x1ef570},_0x273387),_0x5be5fa);});function Y(_0x4719ee,_0x1bf035,_0x579a86,_0x3835ed,_0x537304){var _0x433031=_0x413fd2;return _0x4101b7(_0x4719ee[_0x433031(0x230)],c(c({'key':_0x1bf035},De(_0x4719ee,_0x579a86,_0x537304)),_0x3835ed),(xe(_0x4719ee,_0x579a86)[_0x433031(0x268)]||[])[_0x433031(0x263)](function(_0x1fbf8d,_0x3ed443){var _0x4bcaa9=_0x433031;return Y(_0x1fbf8d,''['concat'](_0x1bf035,'-')[_0x4bcaa9(0x20b)](_0x4719ee[_0x4bcaa9(0x230)],'-')[_0x4bcaa9(0x20b)](_0x3ed443),_0x579a86,void 0x0,_0x537304);}));}function De(_0x2416b4,_0x13ab0a,_0x174f65){var _0x474a79=_0x413fd2,_0x23c633=c({},_0x2416b4[_0x474a79(0x1de)]);_0x174f65!=null&&_0x174f65[_0x474a79(0x1ff)]&&_0x23c633[_0x474a79(0x266)]==='colorChannel1'&&(_0x23c633[_0x474a79(0x266)]=_0x174f65[_0x474a79(0x1ff)]),_0x2416b4[_0x474a79(0x230)]==='mask'&&_0x23c633['id']&&(_0x23c633['id']=_0x23c633['id']+_0x13ab0a['idSuffix']),Object[_0x474a79(0x1dd)](_0x23c633)[_0x474a79(0x249)](function(_0x4785bc){var _0x432e6b=_0x474a79,_0x8e51e1=_0x4785bc[0x0],_0x1bc298=_0x4785bc[0x1];_0x8e51e1===_0x432e6b(0x20d)&&typeof _0x1bc298=='string'&&(_0x23c633[_0x8e51e1]=_0x1bc298['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x13ab0a['idSuffix'],')')));});var _0x5a3eb7=_0x13ab0a[_0x474a79(0x218)];return!_0x5a3eb7||_0x5a3eb7['length']===0x0||(_0x2416b4[_0x474a79(0x230)]==='use'&&_0x23c633[_0x474a79(0x278)]&&(_0x23c633[_0x474a79(0x278)]=_0x23c633['xlink:href']+_0x13ab0a[_0x474a79(0x1f5)]),Object[_0x474a79(0x1dd)](_0x23c633)[_0x474a79(0x249)](function(_0x501088){var _0x252752=_0x474a79,_0x43e30f=_0x501088[0x0],_0x2e36cb=_0x501088[0x1];typeof _0x2e36cb==_0x252752(0x26e)&&(_0x23c633[_0x43e30f]=_0x2e36cb[_0x252752(0x1d2)](/url\(#(.*)\)/,'url(#$1'[_0x252752(0x20b)](_0x13ab0a[_0x252752(0x1f5)],')')));})),_0x23c633;}function xe(_0x26583f,_0x59a209){var _0x389b5d=_0x413fd2,_0xba1686,_0x23586f=_0x59a209[_0x389b5d(0x218)];return!_0x23586f||_0x23586f[_0x389b5d(0x276)]===0x0?_0x26583f:_0x26583f[_0x389b5d(0x230)]===_0x389b5d(0x203)&&(!((_0xba1686=_0x26583f['children'])===null||_0xba1686===void 0x0)&&_0xba1686['length'])?c(c({},_0x26583f),{'children':_0x26583f[_0x389b5d(0x268)][_0x389b5d(0x263)](function(_0x56e8fe){var _0x1c4889=_0x389b5d;return typeof _0x56e8fe['attrs']['id']=='string'&&_0x23586f&&_0x23586f['includes'](_0x56e8fe[_0x1c4889(0x1de)]['id'])?c(c({},_0x56e8fe),{'attrs':c(c({},_0x56e8fe[_0x1c4889(0x1de)]),{'id':_0x56e8fe[_0x1c4889(0x1de)]['id']+_0x59a209['idSuffix']})}):_0x56e8fe;})}):_0x26583f;}function Le(){var _0x1227eb=_0x413fd2;return Math[_0x1227eb(0x272)]()[_0x1227eb(0x1fa)](0x24)[_0x1227eb(0x24b)](0x2,0x8);}W[_0x413fd2(0x271)]=_0x413fd2(0x1f4);function _0x2cc9(_0x539e60,_0x1a7bfb){var _0x26a2ed=_0x26a2();return _0x2cc9=function(_0x2cc9af,_0x1e39ff){_0x2cc9af=_0x2cc9af-0x1c9;var _0x530312=_0x26a2ed[_0x2cc9af];return _0x530312;},_0x2cc9(_0x539e60,_0x1a7bfb);}var ye={'tag':_0x413fd2(0x273),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x413fd2(0x1e5),'width':_0x413fd2(0x255),'height':_0x413fd2(0x255)},'children':[{'tag':_0x413fd2(0x216),'attrs':{'fill':_0x413fd2(0x1e2),'d':_0x413fd2(0x226)}},{'tag':_0x413fd2(0x216),'attrs':{'fill':'currentColor','d':_0x413fd2(0x224),'fillRule':_0x413fd2(0x1cf),'clipRule':'evenodd'}}]},B=_0x5117a0(function(_0x21daca,_0x21a51c){var _0x29ad47=_0x413fd2;return _0x4101b7(W,Object[_0x29ad47(0x1f8)]({},_0x21daca,{'id':_0x29ad47(0x1da),'ref':_0x21a51c,'icon':ye}));});B[_0x413fd2(0x271)]=_0x413fd2(0x1df);var Re=Object[_0x413fd2(0x252)],Z=(_0x5406ef,_0x2457f6,_0x5244c7,_0x3a9a87)=>{for(var _0x427baa=_0x3a9a87>0x1?void 0x0:_0x3a9a87?Re(_0x2457f6,_0x5244c7):_0x2457f6,_0x151c4d=_0x5406ef['length']-0x1,_0x5095d9;_0x151c4d>=0x0;_0x151c4d--)(_0x5095d9=_0x5406ef[_0x151c4d])&&(_0x427baa=_0x5095d9(_0x427baa)||_0x427baa);return _0x427baa;},f=(_0x5a2ada,_0x21e124)=>(_0x208add,_0x198533)=>_0x21e124(_0x208add,_0x198533,_0x5a2ada);let I=class extends _0x1b7a96{constructor(_0x2d9388,_0xdfa898,_0x5305eb){var _0x304786=_0x413fd2;super(),d(this,_0x304786(0x1e8),new Map()),(this['_univerInstanceService']=_0x2d9388,this[_0x304786(0x1f6)]=_0xdfa898,this[_0x304786(0x209)]=_0x5305eb,this[_0x304786(0x200)]());}async[_0x413fd2(0x25e)](_0x4e18d1){var _0x514382=_0x413fd2;return this[_0x514382(0x1e8)][_0x514382(0x1d8)](_0x4e18d1)||await this[_0x514382(0x246)](_0x4e18d1),this[_0x514382(0x1e8)][_0x514382(0x25c)](_0x4e18d1);}[_0x413fd2(0x200)](){var _0x4d8e6a=_0x413fd2;this['_univerInstanceService'][_0x4d8e6a(0x1dc)](_0x2369f2[_0x4d8e6a(0x223)])[_0x4d8e6a(0x1ca)](_0x960196(this[_0x4d8e6a(0x26f)]))[_0x4d8e6a(0x1e9)](async _0x5e2f8c=>{var _0xcff37e=_0x4d8e6a;const _0x109c6a=_0x5e2f8c['getUnitId']();this[_0xcff37e(0x1e8)][_0xcff37e(0x1d8)](_0x109c6a)||this[_0xcff37e(0x246)](_0x109c6a);}),this[_0x4d8e6a(0x1d5)][_0x4d8e6a(0x21f)](_0x2369f2[_0x4d8e6a(0x223)])[_0x4d8e6a(0x1ca)](_0x960196(this[_0x4d8e6a(0x26f)]))['subscribe'](_0x455143=>{var _0x10998d=_0x4d8e6a;const _0x1d7c4c=_0x455143[_0x10998d(0x220)](),_0x1201f2=this['_entities'][_0x10998d(0x25c)](_0x1d7c4c);_0x1201f2==null||_0x1201f2[_0x10998d(0x26b)]();});}async[_0x413fd2(0x246)](_0x4de9f1){var _0x102c77=_0x413fd2;const _0x5ae7bb=await this['_collabSessionService'][_0x102c77(0x22a)](_0x4de9f1),_0x58677d=this[_0x102c77(0x1f6)]['createInstance'](C,_0x4de9f1,_0x5ae7bb);return _0x58677d['init'](),this[_0x102c77(0x1e8)][_0x102c77(0x23e)](_0x4de9f1,_0x58677d),_0x58677d;}};I=Z([f(0x0,_0x563054),f(0x1,_0x287324(_0x189459)),f(0x2,_0x287324(_0x4bea65))],I);var h=(_0xec50d8=>(_0xec50d8[_0x413fd2(0x1ce)]='offline',_0xec50d8[_0x413fd2(0x21b)]=_0x413fd2(0x23a),_0xec50d8[_0x413fd2(0x256)]=_0x413fd2(0x1e4),_0xec50d8[_0x413fd2(0x24e)]=_0x413fd2(0x1ea),_0xec50d8['PRESENTING']=_0x413fd2(0x250),_0xec50d8))(h||{});const Pe=_0x413fd2(0x247),Ae=0xc8;let C=class extends _0x1b7a96{constructor(_0x1ed95b,_0x3d77fa,_0x2194ad,_0x68664b,_0x166285){var _0x56b9a9=_0x413fd2;super(),d(this,_0x56b9a9(0x1c9),new _0x51ed42('idle')),d(this,'status$',this['_status$'][_0x56b9a9(0x279)]()),d(this,'_init',!0x1),d(this,_0x56b9a9(0x232),null),d(this,_0x56b9a9(0x225),null),(this[_0x56b9a9(0x229)]=_0x1ed95b,this[_0x56b9a9(0x207)]=_0x3d77fa,this['_configService']=_0x2194ad,this[_0x56b9a9(0x1d9)]=_0x68664b,this['_commandService']=_0x166285);}get[_0x413fd2(0x267)](){var _0x12840a=_0x413fd2;return this['_status$'][_0x12840a(0x23b)]();}[_0x413fd2(0x26b)](){var _0x426688=_0x413fd2,_0x3f6066;(_0x3f6066=this[_0x426688(0x232)])==null||_0x3f6066[_0x426688(0x26b)](),this['_status$']['next'](_0x426688(0x23a)),this['_status$']['complete']();}[_0x413fd2(0x1e1)](){var _0x39df04=_0x413fd2;this[_0x39df04(0x200)]||(this['_init']=!0x0,this[_0x39df04(0x207)][_0x39df04(0x265)][_0x39df04(0x1ca)](_0x960196(this[_0x39df04(0x26f)]))['subscribe'](_0x4618a4=>{var _0x58b285=_0x39df04;switch(_0x4618a4){case _0x28cf64[_0x58b285(0x1ce)]:this['_handleOffline']();break;case _0x28cf64['ONLINE']:this[_0x58b285(0x20a)]();break;}}),this['_collabSession']['event$'][_0x39df04(0x1ca)](_0x960196(this[_0x39df04(0x26f)]))[_0x39df04(0x1e9)](_0x23358d=>{var _0x418dff=_0x39df04;const {eventID:_0x451d84}=_0x23358d;switch(_0x451d84){case _0x15f78f[_0x418dff(0x219)]:this[_0x418dff(0x1d0)](_0x23358d);break;case _0x15f78f[_0x418dff(0x1f0)]:this[_0x418dff(0x25b)](_0x23358d);break;case _0x15f78f[_0x418dff(0x227)]:this[_0x418dff(0x1cd)]();break;case _0x15f78f[_0x418dff(0x260)]:this[_0x418dff(0x1d3)](_0x23358d);break;}}));}[_0x413fd2(0x1d1)](){var _0x536a1b=_0x413fd2;this[_0x536a1b(0x207)][_0x536a1b(0x1ef)]({'eventID':_0x15f78f[_0x536a1b(0x208)],'data':{'unitID':this['_unitID'],'userID':this[_0x536a1b(0x207)][_0x536a1b(0x274)]()}},this[_0x536a1b(0x229)]);}['stopPresenting'](){var _0x40502a=_0x413fd2;this['_status']==='presenting'&&(this['_status$'][_0x40502a(0x205)](_0x40502a(0x23a)),this[_0x40502a(0x207)]['send']({'eventID':_0x15f78f[_0x40502a(0x227)],'data':{'unitID':this[_0x40502a(0x229)]}},this[_0x40502a(0x229)]));}[_0x413fd2(0x248)](){var _0x3306ab=_0x413fd2;this[_0x3306ab(0x267)]===_0x3306ab(0x1ea)&&(this['_status$'][_0x3306ab(0x205)]('following'),this[_0x3306ab(0x20e)]());}[_0x413fd2(0x259)](){var _0x30f5f8=_0x413fd2;this[_0x30f5f8(0x267)]==='following'&&this[_0x30f5f8(0x26c)]();}[_0x413fd2(0x1d0)](_0x1ca1c6){var _0x15d0c8=_0x413fd2;const {presenter:_0x32cad7}=_0x1ca1c6[_0x15d0c8(0x222)],_0x1d1a84=this['_collabSession'][_0x15d0c8(0x274)]();this[_0x15d0c8(0x225)]=_0x32cad7,_0x32cad7===_0x1d1a84?(this[_0x15d0c8(0x26c)](),this[_0x15d0c8(0x234)]()):this[_0x15d0c8(0x267)]!=='not-following'&&(this[_0x15d0c8(0x23c)](),this[_0x15d0c8(0x20e)]());}[_0x413fd2(0x1f9)](){var _0x4767df=_0x413fd2;const _0x3485d8={'eventID':_0x15f78f[_0x4767df(0x22f)]};this[_0x4767df(0x207)][_0x4767df(0x1ef)](_0x3485d8,this[_0x4767df(0x229)]);}[_0x413fd2(0x1cd)](){var _0x51675c=_0x413fd2;this[_0x51675c(0x225)]=null,this[_0x51675c(0x267)]!==_0x51675c(0x250)&&this[_0x51675c(0x1fe)]();}[_0x413fd2(0x1d3)](_0x5b1372){var _0x7cd90=_0x413fd2;if(this[_0x7cd90(0x267)]===_0x7cd90(0x1e4)&&this[_0x7cd90(0x225)]===_0x5b1372[_0x7cd90(0x222)][_0x7cd90(0x1fd)]){const _0x7d9516=_0x525527(_0x5b1372['data'])['mutations'][_0x7cd90(0x1eb)]()[_0x7cd90(0x258)](_0x5d0c1b=>_0x5d0c1b['id']===_0x5d7e73['id']);if(_0x7d9516){const _0x560694=_0x7d9516[_0x7cd90(0x206)]['unitId'],_0x266d75=_0x7d9516[_0x7cd90(0x206)]['sheet']['id'];setTimeout(()=>{var _0x5b498f=_0x7cd90;this['_commandService'][_0x5b498f(0x275)](_0x587c83['id'],{'unitId':_0x560694,'subUnitId':_0x266d75},{'fromCollab':!0x0});});}}}[_0x413fd2(0x234)](){var _0x3d6e3d=_0x413fd2;this[_0x3d6e3d(0x1c9)][_0x3d6e3d(0x205)]('presenting');const _0x26afef=new Map(),_0x3ed48d=this[_0x3d6e3d(0x232)]=new _0x52dca9();_0x3ed48d[_0x3d6e3d(0x1e6)](_0x235983(()=>{var _0x36f5f7=_0x3d6e3d;_0x26afef[_0x36f5f7(0x249)](_0x188d59=>_0x188d59[_0x36f5f7(0x22b)]()),_0x26afef[_0x36f5f7(0x1e0)]();})),_0x3ed48d[_0x3d6e3d(0x1e6)](this[_0x3d6e3d(0x262)][_0x3d6e3d(0x228)](_0x26326e=>{var _0x2b26e1=_0x3d6e3d,_0xab8531;if(_0x26326e['type']!==_0x1caa0b[_0x2b26e1(0x1ee)]||!this[_0x2b26e1(0x1d9)]['shouldShareOperation'](_0x26326e['id']))return;const {id:_0x1a72ec}=_0x26326e;let _0x3044a2;_0x26afef['has'](_0x1a72ec)?_0x3044a2=_0x26afef[_0x2b26e1(0x25c)](_0x1a72ec):(_0x3044a2=new _0x391242(),_0x26afef[_0x2b26e1(0x23e)](_0x1a72ec,_0x3044a2),_0x3044a2[_0x2b26e1(0x1ca)](_0x3ef22c((_0xab8531=this['_configService'][_0x2b26e1(0x1d7)](Pe))!=null?_0xab8531:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2b26e1(0x1e9)](_0x1c6459=>{var _0x51da18=_0x2b26e1;this[_0x51da18(0x207)][_0x51da18(0x1ef)]({'eventID':_0x15f78f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x51da18(0x229)],'operations':{[_0x1c6459['id']]:{'id':_0x1c6459['id'],'params':JSON[_0x51da18(0x26a)](_0x1c6459[_0x51da18(0x206)])}}}},this[_0x51da18(0x229)]);})),_0x3044a2[_0x2b26e1(0x205)](_0x26326e);})),this[_0x3d6e3d(0x1d9)][_0x3d6e3d(0x245)](this['_unitID'])[_0x3d6e3d(0x249)](_0x178ced=>this[_0x3d6e3d(0x207)]['send']({'eventID':_0x15f78f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3d6e3d(0x229)],'operations':{[_0x178ced['id']]:{'id':_0x178ced['id'],'params':JSON[_0x3d6e3d(0x26a)](_0x178ced[_0x3d6e3d(0x206)])}}}},this[_0x3d6e3d(0x229)]));}[_0x413fd2(0x23c)](){var _0x51651c=_0x413fd2,_0x2368c2;this['_status$'][_0x51651c(0x205)]('idle'),(_0x2368c2=this['_commandDisposable'])==null||_0x2368c2[_0x51651c(0x26b)](),this[_0x51651c(0x232)]=null;}[_0x413fd2(0x20e)](){var _0x219555=_0x413fd2,_0x2ae663;(_0x2ae663=this[_0x219555(0x232)])==null||_0x2ae663[_0x219555(0x26b)](),this['_status$'][_0x219555(0x205)](_0x219555(0x1e4));}['_beIdle'](){var _0x2904e7=_0x413fd2,_0x3e819b;this['_status$']['next'](_0x2904e7(0x23a)),(_0x3e819b=this[_0x2904e7(0x232)])==null||_0x3e819b[_0x2904e7(0x26b)](),this[_0x2904e7(0x232)]=null;}[_0x413fd2(0x26c)](){var _0x24abab=_0x413fd2,_0x12b6d9;this[_0x24abab(0x1c9)][_0x24abab(0x205)]('not-following'),(_0x12b6d9=this[_0x24abab(0x232)])==null||_0x12b6d9['dispose']();}['_handleOperation'](_0x3c6e84){var _0x1ccadf=_0x413fd2;if([_0x1ccadf(0x250),_0x1ccadf(0x1ea),_0x1ccadf(0x236)][_0x1ccadf(0x1f1)](this['_status'])||!_0x3c6e84['data'][_0x1ccadf(0x1d4)]||_0x3c6e84[_0x1ccadf(0x222)]['presenter']===this['_collabSession'][_0x1ccadf(0x274)]())return;this[_0x1ccadf(0x267)]===_0x1ccadf(0x23a)&&this['_startFollowing']();const _0x1a832d=_0x3c6e84[_0x1ccadf(0x222)][_0x1ccadf(0x270)];Object['values'](_0x1a832d)[_0x1ccadf(0x249)](_0x1e4672=>{var _0x3c2d18=_0x1ccadf;this[_0x3c2d18(0x262)][_0x3c2d18(0x275)](_0x1e4672['id'],_0x1e4672['params']?JSON[_0x3c2d18(0x1cb)](_0x1e4672[_0x3c2d18(0x206)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x48c54e=_0x413fd2,_0x32d5e4;this[_0x48c54e(0x1c9)][_0x48c54e(0x205)](_0x48c54e(0x236)),(_0x32d5e4=this[_0x48c54e(0x232)])==null||_0x32d5e4[_0x48c54e(0x26b)]();}[_0x413fd2(0x20a)](){var _0x2225e7=_0x413fd2;this[_0x2225e7(0x1c9)][_0x2225e7(0x205)](_0x2225e7(0x23a)),this[_0x2225e7(0x1f9)]();}};C=Z([f(0x2,_0x4addda),f(0x3,_0x287324(L)),f(0x4,_0x4a5bf9)],C);function Te(){var _0x3031c9=_0x413fd2;const _0x1cd765=_0x8c2502(I),_0x471c37=_0x8c2502(_0x563054),_0x4dbe8e=_0x54b49a(()=>_0x471c37['getCurrentTypeOfUnit$'](_0x2369f2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3bf703,_0x16f0fe]=_0x393f14(null),[_0x578e20,_0x3e89c3]=_0x393f14(h['IDLE']),_0x1dac74=_0x56788e(null);return _0x569005(()=>(_0x4dbe8e&&_0x1cd765['getLiveShareCoordinator'](_0x4dbe8e[_0x3031c9(0x220)]())['then'](_0x3f717d=>{var _0xcd2ad=_0x3031c9;_0x16f0fe(_0x3f717d),_0x1dac74[_0xcd2ad(0x24a)]=_0x3f717d[_0xcd2ad(0x24d)][_0xcd2ad(0x1e9)](_0x1859eb=>{_0x3e89c3(_0x1859eb);});}),()=>{var _0x1fae40=_0x3031c9,_0x5c5752;(_0x5c5752=_0x1dac74[_0x1fae40(0x24a)])==null||_0x5c5752[_0x1fae40(0x1f3)](),_0x1dac74[_0x1fae40(0x24a)]=null;}),[_0x4dbe8e,_0x1cd765]),_0x3bf703?_0x5b6f43(_0x5da7d2,{'align':_0x3031c9(0x25a),'disabled':_0x578e20===h[_0x3031c9(0x1ce)],'className':_0x3031c9(0x202),'overlay':_0x5b6f43($e,{'status':_0x578e20,'coordinator':_0x3bf703}),'children':_0x5b6f43(_0x3031c9(0x213),{'className':_0x4a52f6(_0x3031c9(0x23d),{'univer-cursor-not-allowed':_0x578e20===h[_0x3031c9(0x1ce)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x578e20!==h[_0x3031c9(0x1ce)]}),'type':_0x3031c9(0x213),'children':_0x5b6f43(B,{'className':_0x3031c9(0x1ec)})})}):null;}function $e(_0x3d1b35){var _0x35243e=_0x413fd2;const {status:_0x2b8910,coordinator:_0x1420f9}=_0x3d1b35;switch(_0x2b8910){case h['IDLE']:return _0x5b6f43(Fe,{'coordinator':_0x1420f9});case h[_0x35243e(0x256)]:return _0x5b6f43(He,{'coordinator':_0x1420f9});case h[_0x35243e(0x24e)]:return _0x5b6f43(je,{'coordinator':_0x1420f9});case h['OFFLINE']:return _0x5b6f43(Ve,{});case h[_0x35243e(0x26d)]:return _0x5b6f43(Ue,{'coordinator':_0x1420f9});default:return null;}}function Fe(_0x3be60c){var _0x58c388=_0x413fd2;const {coordinator:_0x3be33}=_0x3be60c;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x58c388(0x251),{'className':_0x58c388(0x243),'children':'Present\x20this\x20document'}),_0x5b6f43(_0x4ec768,{'onClick':()=>_0x3be33['tryStartPresenting'](),'children':_0x58c388(0x1cc)})]});}function He(_0x1faf9c){var _0x489da9=_0x413fd2;const {coordinator:_0x3bb2a6}=_0x1faf9c;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x489da9(0x251),{'className':_0x489da9(0x243),'children':_0x489da9(0x27a)}),_0x5b6f43(_0x4ec768,{'onClick':()=>_0x3bb2a6[_0x489da9(0x259)](),'children':_0x489da9(0x210)})]});}function je(_0x33c34f){var _0x55921f=_0x413fd2;const {coordinator:_0x46d324}=_0x33c34f;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x55921f(0x251),{'className':_0x55921f(0x243),'children':_0x55921f(0x253)}),_0x5b6f43(_0x4ec768,{'variant':'text','onClick':()=>_0x46d324[_0x55921f(0x248)](),'children':'Start\x20following'})]});}function Ue(_0x43327e){var _0x11c407=_0x413fd2;const {coordinator:_0x500267}=_0x43327e;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x11c407(0x251),{'className':_0x11c407(0x243),'children':_0x11c407(0x1fc)}),_0x5b6f43(_0x4ec768,{'variant':_0x11c407(0x25d),'onClick':()=>_0x500267['stopPresenting'](),'children':_0x11c407(0x217)})]});}function Ve(){var _0x47c3ce=_0x413fd2;return _0x5b6f43(_0x5e9b05,{'children':_0x47c3ce(0x22c)});}var Me=Object[_0x413fd2(0x252)],ke=(_0x20f3ee,_0x397115,_0x130fb8,_0x552d8a)=>{var _0x4dc284=_0x413fd2;for(var _0x426d7a=_0x552d8a>0x1?void 0x0:_0x552d8a?Me(_0x397115,_0x130fb8):_0x397115,_0x4b9728=_0x20f3ee[_0x4dc284(0x276)]-0x1,_0x233e6f;_0x4b9728>=0x0;_0x4b9728--)(_0x233e6f=_0x20f3ee[_0x4b9728])&&(_0x426d7a=_0x233e6f(_0x426d7a)||_0x426d7a);return _0x426d7a;},$=(_0x5aefe4,_0x34a6aa)=>(_0x2df8c8,_0x42c30d)=>_0x34a6aa(_0x2df8c8,_0x42c30d,_0x5aefe4);let b=class extends _0x2d602a{constructor(_0x21c864,_0x5b5487){var _0x294089=_0x413fd2;super(),this[_0x294089(0x1f6)]=_0x21c864,this[_0x294089(0x233)]=_0x5b5487,this[_0x294089(0x237)]();}[_0x413fd2(0x237)](){var _0x420a07=_0x413fd2;this[_0x420a07(0x20f)](this['_uiPartsService'][_0x420a07(0x239)](_0x120083['HEADER_MENU'],()=>_0x38f68b(Te,this[_0x420a07(0x1f6)])));}};b=ke([$(0x0,_0x287324(_0x189459)),$(0x1,_0x2136ab)],b);var Ge=Object[_0x413fd2(0x214)],We=Object[_0x413fd2(0x252)],Ye=(_0x30650f,_0x33f616,_0x2b5b40)=>_0x33f616 in _0x30650f?Ge(_0x30650f,_0x33f616,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b5b40}):_0x30650f[_0x33f616]=_0x2b5b40,Be=(_0x327f20,_0x43257d,_0x5cf717,_0x28b7f9)=>{var _0x5b499c=_0x413fd2;for(var _0x4173e7=_0x28b7f9>0x1?void 0x0:_0x28b7f9?We(_0x43257d,_0x5cf717):_0x43257d,_0x20c6de=_0x327f20[_0x5b499c(0x276)]-0x1,_0xae56c7;_0x20c6de>=0x0;_0x20c6de--)(_0xae56c7=_0x327f20[_0x20c6de])&&(_0x4173e7=_0xae56c7(_0x4173e7)||_0x4173e7);return _0x4173e7;},F=(_0x4cc83f,_0x293ca6)=>(_0x12728d,_0x234acb)=>_0x293ca6(_0x12728d,_0x234acb,_0x4cc83f),J=(_0x5bda39,_0x16912c,_0x2214a1)=>Ye(_0x5bda39,typeof _0x16912c!=_0x413fd2(0x20c)?_0x16912c+'':_0x16912c,_0x2214a1);const Ze=_0x413fd2(0x1d6);let O=class extends _0x54894e{constructor(_0x475c46=T,_0x5d25fe,_0x2c2f7f){var _0x302cf8=_0x413fd2;super(),this['_config']=_0x475c46,this[_0x302cf8(0x1f6)]=_0x5d25fe,this[_0x302cf8(0x21d)]=_0x2c2f7f;const {..._0x5590e7}=_0x563c15({},T,this[_0x302cf8(0x21c)]);this['_configService'][_0x302cf8(0x269)](Oe,_0x5590e7);}[_0x413fd2(0x242)](){var _0x3b0e2e=_0x413fd2;_0x4b1d24(this[_0x3b0e2e(0x1f6)],_0x38959d([[L],[I],[m],[b]],this['_config'][_0x3b0e2e(0x254)])),_0x4a7c72(this[_0x3b0e2e(0x1f6)],[[m]]);}[_0x413fd2(0x264)](){var _0x206d69=_0x413fd2;_0x4a7c72(this[_0x206d69(0x1f6)],[[b]]);}};J(O,_0x413fd2(0x1e7),_0x2369f2[_0x413fd2(0x22d)]),J(O,_0x413fd2(0x21a),Ze),O=Be([_0x39d809(_0x40879e),F(0x1,_0x287324(_0x189459)),F(0x2,_0x4addda)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x115c(_0x2c432e,_0x3c1003){var _0x1c35cb=_0x1c35();return _0x115c=function(_0x115ca6,_0x3e0330){_0x115ca6=_0x115ca6-0x89;var _0x3f6de6=_0x1c35cb[_0x115ca6];return _0x3f6de6;},_0x115c(_0x2c432e,_0x3c1003);}(function(_0x38a848,_0x25cb1a){var _0x3ad520=_0x115c,_0x360f24=_0x38a848();while(!![]){try{var _0x5a5c66=-parseInt(_0x3ad520(0xf2))/0x1+parseInt(_0x3ad520(0xfd))/0x2*(parseInt(_0x3ad520(0x15f))/0x3)+-parseInt(_0x3ad520(0xa0))/0x4*(-parseInt(_0x3ad520(0x141))/0x5)+-parseInt(_0x3ad520(0x137))/0x6+parseInt(_0x3ad520(0xf6))/0x7*(-parseInt(_0x3ad520(0xba))/0x8)+-parseInt(_0x3ad520(0x109))/0x9*(-parseInt(_0x3ad520(0x8d))/0xa)+-parseInt(_0x3ad520(0x181))/0xb*(parseInt(_0x3ad520(0xea))/0xc);if(_0x5a5c66===_0x25cb1a)break;else _0x360f24['push'](_0x360f24['shift']());}catch(_0x218677){_0x360f24['push'](_0x360f24['shift']());}}}(_0x1c35,0x2cb9e),function(_0x56c7e8,_0x43dc6c){var _0x496d60=_0x115c;typeof exports==_0x496d60(0xa4)&&typeof module<'u'?_0x43dc6c(exports,require('@univerjs-pro/collaboration-client'),require(_0x496d60(0x10e)),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0x496d60(0x10d)),require(_0x496d60(0x103)),require(_0x496d60(0x9b)),require('@univerjs-pro/collaboration'),require(_0x496d60(0x104)),require('rxjs/operators')):typeof define==_0x496d60(0x118)&&define[_0x496d60(0x16e)]?define(['exports',_0x496d60(0xa2),_0x496d60(0x10e),_0x496d60(0x17a),'@univerjs/sheets-ui',_0x496d60(0xe4),_0x496d60(0x10d),_0x496d60(0x103),'react',_0x496d60(0x99),_0x496d60(0x104),_0x496d60(0x15d)],_0x43dc6c):(_0x56c7e8=typeof globalThis<'u'?globalThis:_0x56c7e8||self,_0x43dc6c(_0x56c7e8[_0x496d60(0xd4)]={},_0x56c7e8['UniverProCollaborationClient'],_0x56c7e8[_0x496d60(0x136)],_0x56c7e8[_0x496d60(0xce)],_0x56c7e8[_0x496d60(0xe2)],_0x56c7e8[_0x496d60(0x14e)],_0x56c7e8[_0x496d60(0xcf)],_0x56c7e8[_0x496d60(0x184)],_0x56c7e8[_0x496d60(0xcf)],_0x56c7e8['UniverProCollaboration'],_0x56c7e8['rxjs'],_0x56c7e8[_0x496d60(0x104)][_0x496d60(0xf1)]));}(this,function(_0x1ce817,_0x1d09ee,_0x3de664,_0xfb8100,_0x5d896e,_0x5b02c5,_0x183b5d,_0x318939,_0x200ed7,_0x2ffff0,_0x268533,_0x11e3ef){'use strict';var _0x1536fe=_0x115c;var _0x3b037f=Object[_0x1536fe(0x173)],_0x463b46=(_0x41b07d,_0x4e9baa,_0xa4327d)=>_0x4e9baa in _0x41b07d?_0x3b037f(_0x41b07d,_0x4e9baa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa4327d}):_0x41b07d[_0x4e9baa]=_0xa4327d,_0x2b7a21=(_0x522911,_0x376002,_0x1d0e1a)=>_0x463b46(_0x522911,typeof _0x376002!=_0x1536fe(0xbe)?_0x376002+'':_0x376002,_0x1d0e1a);const _0x4f9b65=_0x1536fe(0x171),_0x2b0129={};class _0x1d2d40 extends _0x3de664[_0x1536fe(0x8c)]{constructor(){var _0x13a7f8=_0x1536fe;super(...arguments),_0x2b7a21(this,_0x13a7f8(0xaa),new Set()),_0x2b7a21(this,_0x13a7f8(0x9d),new Set());}[_0x1536fe(0x15c)](_0x27730a){var _0x484b7e=_0x1536fe;return this[_0x484b7e(0xaa)][_0x484b7e(0x169)](_0x27730a),_0x3de664[_0x484b7e(0x168)](()=>this[_0x484b7e(0xaa)]['delete'](_0x27730a));}[_0x1536fe(0x159)](_0x9884c2){var _0x141c9e=_0x1536fe;return this[_0x141c9e(0x9d)][_0x141c9e(0x169)](_0x9884c2),_0x3de664[_0x141c9e(0x168)](()=>this[_0x141c9e(0x9d)][_0x141c9e(0xf3)](_0x9884c2));}[_0x1536fe(0xac)](_0x40d068){var _0x1ea36b=_0x1536fe;return this[_0x1ea36b(0xaa)][_0x1ea36b(0x129)](_0x40d068);}[_0x1536fe(0xca)](_0x26d43b){var _0x226727=_0x1536fe;return Array[_0x226727(0xe7)](this['_reporters'])[_0x226727(0x11f)](_0x33778d=>_0x33778d(_0x26d43b));}}var _0x163b45=Object[_0x1536fe(0x16c)],_0x401832=(_0x4de95f,_0xa30696,_0x27eb01,_0xbd55cd)=>{var _0x1cb570=_0x1536fe;for(var _0x56d6a9=_0xbd55cd>0x1?void 0x0:_0xbd55cd?_0x163b45(_0xa30696,_0x27eb01):_0xa30696,_0xe498a6=_0x4de95f[_0x1cb570(0x153)]-0x1,_0x12466c;_0xe498a6>=0x0;_0xe498a6--)(_0x12466c=_0x4de95f[_0xe498a6])&&(_0x56d6a9=_0x12466c(_0x56d6a9)||_0x56d6a9);return _0x56d6a9;},_0x4f9fcb=(_0x253cb0,_0x4b4a28)=>(_0x3e801e,_0xd0da96)=>_0x4b4a28(_0x3e801e,_0xd0da96,_0x253cb0);let _0x20c99b=class extends _0x3de664[_0x1536fe(0x8c)]{constructor(_0x24633e){var _0xdb877b=_0x1536fe;super(),this['_liveShareService']=_0x24633e,this[_0xdb877b(0x128)]();}[_0x1536fe(0x128)](){var _0x3c4b1d=_0x1536fe;[_0x5d896e['SetZoomRatioOperation']['id'],_0x5d896e['SetScrollOperation']['id'],_0xfb8100['SetWorksheetActiveOperation']['id']][_0x3c4b1d(0x16d)](_0x202da4=>{var _0x4805d0=_0x3c4b1d;this[_0x4805d0(0x13a)](this['_liveShareService']['registerSharedOperation'](_0x202da4));});}};_0x20c99b=_0x401832([_0x4f9fcb(0x0,_0x3de664[_0x1536fe(0xcd)](_0x1d2d40))],_0x20c99b);var _0x32d03b=function(){var _0x376b35=_0x1536fe;return _0x32d03b=Object[_0x376b35(0x125)]||function(_0x47e012){var _0x3bfe82=_0x376b35;for(var _0x50d097,_0x265948=0x1,_0x448d04=arguments[_0x3bfe82(0x153)];_0x265948<_0x448d04;_0x265948++){_0x50d097=arguments[_0x265948];for(var _0xe42007 in _0x50d097)Object[_0x3bfe82(0x16f)]['hasOwnProperty'][_0x3bfe82(0x93)](_0x50d097,_0xe42007)&&(_0x47e012[_0xe42007]=_0x50d097[_0xe42007]);}return _0x47e012;},_0x32d03b[_0x376b35(0xb5)](this,arguments);},_0x26fab7=function(_0x41a098,_0x36a043){var _0x19c6e6=_0x1536fe,_0x1673ed={};for(var _0x61397d in _0x41a098)Object[_0x19c6e6(0x16f)][_0x19c6e6(0x152)][_0x19c6e6(0x93)](_0x41a098,_0x61397d)&&_0x36a043[_0x19c6e6(0x11d)](_0x61397d)<0x0&&(_0x1673ed[_0x61397d]=_0x41a098[_0x61397d]);if(_0x41a098!=null&&typeof Object[_0x19c6e6(0x132)]==_0x19c6e6(0x118)){for(var _0x32a41d=0x0,_0x61397d=Object[_0x19c6e6(0x132)](_0x41a098);_0x32a41d<_0x61397d[_0x19c6e6(0x153)];_0x32a41d++)_0x36a043[_0x19c6e6(0x11d)](_0x61397d[_0x32a41d])<0x0&&Object[_0x19c6e6(0x16f)]['propertyIsEnumerable'][_0x19c6e6(0x93)](_0x41a098,_0x61397d[_0x32a41d])&&(_0x1673ed[_0x61397d[_0x32a41d]]=_0x41a098[_0x61397d[_0x32a41d]]);}return _0x1673ed;},_0x5f1372=_0x200ed7['forwardRef'](function(_0x5f532d,_0xee10dd){var _0x263c5a=_0x1536fe,_0x552122=_0x5f532d[_0x263c5a(0xfa)],_0x1984fc=_0x5f532d['id'],_0x372989=_0x5f532d[_0x263c5a(0x95)],_0x5ac199=_0x5f532d[_0x263c5a(0xb3)],_0x2077d6=_0x26fab7(_0x5f532d,[_0x263c5a(0xfa),'id','className',_0x263c5a(0xb3)]),_0x4d71cc=_0x263c5a(0x91)[_0x263c5a(0xd3)](_0x1984fc,'\x20')[_0x263c5a(0xd3)](_0x372989||'')['trim'](),_0x37da63=_0x200ed7[_0x263c5a(0xf4)]('_'[_0x263c5a(0xd3)](_0x455533()));return _0x32f3d6(_0x552122,''[_0x263c5a(0xd3)](_0x1984fc),{'defIds':_0x552122[_0x263c5a(0xfc)],'idSuffix':_0x37da63[_0x263c5a(0x17c)]},_0x32d03b({'ref':_0xee10dd,'className':_0x4d71cc},_0x2077d6),_0x5ac199);});function _0x32f3d6(_0x1af3ff,_0x8a180d,_0x1541dc,_0x8f869e,_0x283a8d){var _0x57e831=_0x1536fe;return _0x200ed7['createElement'](_0x1af3ff['tag'],_0x32d03b(_0x32d03b({'key':_0x8a180d},_0x42d16a(_0x1af3ff,_0x1541dc,_0x283a8d)),_0x8f869e),(_0x874880(_0x1af3ff,_0x1541dc)[_0x57e831(0xc1)]||[])[_0x57e831(0x11f)](function(_0x359836,_0x1fe223){var _0xf08413=_0x57e831;return _0x32f3d6(_0x359836,''[_0xf08413(0xd3)](_0x8a180d,'-')[_0xf08413(0xd3)](_0x1af3ff[_0xf08413(0x9f)],'-')['concat'](_0x1fe223),_0x1541dc,void 0x0,_0x283a8d);}));}function _0x42d16a(_0x5c4f22,_0x171084,_0xbfc8a9){var _0x460d5e=_0x1536fe,_0x5722fd=_0x32d03b({},_0x5c4f22[_0x460d5e(0xc0)]);_0xbfc8a9!=null&&_0xbfc8a9[_0x460d5e(0x183)]&&_0x5722fd[_0x460d5e(0xf5)]===_0x460d5e(0x183)&&(_0x5722fd['fill']=_0xbfc8a9['colorChannel1']),_0x5c4f22[_0x460d5e(0x9f)]===_0x460d5e(0x149)&&_0x5722fd['id']&&(_0x5722fd['id']=_0x5722fd['id']+_0x171084[_0x460d5e(0xef)]),Object[_0x460d5e(0x13e)](_0x5722fd)['forEach'](function(_0x3b007f){var _0x1aecbb=_0x460d5e,_0x4f2583=_0x3b007f[0x0],_0x38bbdf=_0x3b007f[0x1];_0x4f2583==='mask'&&typeof _0x38bbdf==_0x1aecbb(0xa9)&&(_0x5722fd[_0x4f2583]=_0x38bbdf[_0x1aecbb(0xb6)](/url\(#(.*)\)/,_0x1aecbb(0x92)[_0x1aecbb(0xd3)](_0x171084[_0x1aecbb(0xef)],')')));});var _0xf118d=_0x171084['defIds'];return!_0xf118d||_0xf118d[_0x460d5e(0x153)]===0x0||(_0x5c4f22[_0x460d5e(0x9f)]==='use'&&_0x5722fd[_0x460d5e(0x131)]&&(_0x5722fd['xlink:href']=_0x5722fd[_0x460d5e(0x131)]+_0x171084[_0x460d5e(0xef)]),Object[_0x460d5e(0x13e)](_0x5722fd)[_0x460d5e(0x16d)](function(_0x375da8){var _0x4a6828=_0x460d5e,_0x289919=_0x375da8[0x0],_0x2d0ae6=_0x375da8[0x1];typeof _0x2d0ae6==_0x4a6828(0xa9)&&(_0x5722fd[_0x289919]=_0x2d0ae6['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4a6828(0xd3)](_0x171084['idSuffix'],')')));})),_0x5722fd;}function _0x874880(_0x1ee1d2,_0x32e54a){var _0x16e27b=_0x1536fe,_0xf3702a,_0x255966=_0x32e54a['defIds'];return!_0x255966||_0x255966['length']===0x0?_0x1ee1d2:_0x1ee1d2[_0x16e27b(0x9f)]==='defs'&&(!((_0xf3702a=_0x1ee1d2[_0x16e27b(0xc1)])===null||_0xf3702a===void 0x0)&&_0xf3702a[_0x16e27b(0x153)])?_0x32d03b(_0x32d03b({},_0x1ee1d2),{'children':_0x1ee1d2[_0x16e27b(0xc1)]['map'](function(_0x164195){var _0x40b5e8=_0x16e27b;return typeof _0x164195['attrs']['id']=='string'&&_0x255966&&_0x255966[_0x40b5e8(0xee)](_0x164195[_0x40b5e8(0xc0)]['id'])?_0x32d03b(_0x32d03b({},_0x164195),{'attrs':_0x32d03b(_0x32d03b({},_0x164195[_0x40b5e8(0xc0)]),{'id':_0x164195[_0x40b5e8(0xc0)]['id']+_0x32e54a['idSuffix']})}):_0x164195;})}):_0x1ee1d2;}function _0x455533(){var _0x1b4602=_0x1536fe;return Math['random']()[_0x1b4602(0xcb)](0x24)['substring'](0x2,0x8);}_0x5f1372[_0x1536fe(0x119)]=_0x1536fe(0xe0);var _0xcb4864={'tag':_0x1536fe(0xff),'attrs':{'xmlns':_0x1536fe(0xab),'fill':_0x1536fe(0x166),'viewBox':_0x1536fe(0xbc),'width':_0x1536fe(0x175),'height':_0x1536fe(0x175)},'children':[{'tag':_0x1536fe(0x10c),'attrs':{'fill':_0x1536fe(0xd0),'d':_0x1536fe(0x120)}},{'tag':_0x1536fe(0x10c),'attrs':{'fill':_0x1536fe(0xd0),'d':_0x1536fe(0x98),'fillRule':_0x1536fe(0xe5),'clipRule':_0x1536fe(0xe5)}}]},_0x145c04=_0x200ed7[_0x1536fe(0xfe)](function(_0x164e8b,_0x4ff0c0){var _0x3282fa=_0x1536fe;return _0x200ed7[_0x3282fa(0x15e)](_0x5f1372,Object[_0x3282fa(0x125)]({},_0x164e8b,{'id':_0x3282fa(0x160),'ref':_0x4ff0c0,'icon':_0xcb4864}));});_0x145c04[_0x1536fe(0x119)]='LiveShareIcon';var _0x57df12=Object['getOwnPropertyDescriptor'],_0xc444b9=(_0x2c9900,_0x475495,_0x14f53a,_0x358e8f)=>{var _0x4a6f93=_0x1536fe;for(var _0x27bedd=_0x358e8f>0x1?void 0x0:_0x358e8f?_0x57df12(_0x475495,_0x14f53a):_0x475495,_0x471114=_0x2c9900[_0x4a6f93(0x153)]-0x1,_0xe33edc;_0x471114>=0x0;_0x471114--)(_0xe33edc=_0x2c9900[_0x471114])&&(_0x27bedd=_0xe33edc(_0x27bedd)||_0x27bedd);return _0x27bedd;},_0xc68594=(_0x491ff1,_0x435319)=>(_0x15899f,_0x2ab757)=>_0x435319(_0x15899f,_0x2ab757,_0x491ff1);_0x1ce817[_0x1536fe(0xdd)]=class extends _0x3de664[_0x1536fe(0xad)]{constructor(_0x3a6f0c,_0x566bce,_0x1f7db8){var _0x37c5ab=_0x1536fe;super(),_0x2b7a21(this,_0x37c5ab(0x139),new Map()),(this[_0x37c5ab(0x163)]=_0x3a6f0c,this[_0x37c5ab(0x8b)]=_0x566bce,this[_0x37c5ab(0x123)]=_0x1f7db8,this[_0x37c5ab(0x128)]());}async['getLiveShareCoordinator'](_0x28bbca){var _0x2cbc2f=_0x1536fe;return this[_0x2cbc2f(0x139)][_0x2cbc2f(0x129)](_0x28bbca)||await this[_0x2cbc2f(0x144)](_0x28bbca),this[_0x2cbc2f(0x139)][_0x2cbc2f(0xd5)](_0x28bbca);}[_0x1536fe(0x128)](){var _0x50599f=_0x1536fe;this[_0x50599f(0x163)][_0x50599f(0xd1)](_0x3de664['UniverInstanceType'][_0x50599f(0xd9)])[_0x50599f(0x178)](_0x11e3ef[_0x50599f(0x13c)](this[_0x50599f(0x138)]))[_0x50599f(0x12b)](async _0x5b991a=>{var _0x15a966=_0x50599f;const _0x1a3fbf=_0x5b991a[_0x15a966(0xb2)]();this[_0x15a966(0x139)]['has'](_0x1a3fbf)||this[_0x15a966(0x144)](_0x1a3fbf);}),this[_0x50599f(0x163)][_0x50599f(0xc4)](_0x3de664[_0x50599f(0xe8)][_0x50599f(0xd9)])[_0x50599f(0x178)](_0x11e3ef['takeUntil'](this[_0x50599f(0x138)]))[_0x50599f(0x12b)](_0x12ef56=>{var _0x39ac3a=_0x50599f;const _0xda4a2e=_0x12ef56[_0x39ac3a(0xb2)](),_0x200505=this[_0x39ac3a(0x139)]['get'](_0xda4a2e);_0x200505==null||_0x200505[_0x39ac3a(0x174)]();});}async[_0x1536fe(0x144)](_0x19c3f0){var _0x2c0f9f=_0x1536fe;const _0x5b96ca=await this['_collabSessionService'][_0x2c0f9f(0xc3)](_0x19c3f0),_0x30a5e6=this[_0x2c0f9f(0x8b)][_0x2c0f9f(0xa7)](_0x1ce817['LiveShareCoordinator'],_0x19c3f0,_0x5b96ca);return _0x30a5e6[_0x2c0f9f(0x15b)](),this['_entities'][_0x2c0f9f(0xc9)](_0x19c3f0,_0x30a5e6),_0x30a5e6;}},_0x1ce817[_0x1536fe(0xdd)]=_0xc444b9([_0xc68594(0x0,_0x3de664[_0x1536fe(0x167)]),_0xc68594(0x1,_0x3de664[_0x1536fe(0xcd)](_0x3de664[_0x1536fe(0x177)])),_0xc68594(0x2,_0x3de664[_0x1536fe(0xcd)](_0x1d09ee[_0x1536fe(0x114)]))],_0x1ce817['LiveShareController']);var _0x1d52f0=(_0x247289=>(_0x247289['OFFLINE']=_0x1536fe(0x13d),_0x247289[_0x1536fe(0x142)]='idle',_0x247289[_0x1536fe(0x180)]=_0x1536fe(0x113),_0x247289[_0x1536fe(0x100)]='not-following',_0x247289[_0x1536fe(0x16b)]=_0x1536fe(0xc8),_0x247289))(_0x1d52f0||{});const _0x44ab8d='SAME_OPERATION_SHARE_INTERVAL',_0x52fe74=0xc8;_0x1ce817[_0x1536fe(0xf9)]=class extends _0x3de664['RxDisposable']{constructor(_0x34f633,_0x140f3d,_0xb76eb3,_0x21e35b,_0x24b212){var _0x150eb6=_0x1536fe;super(),_0x2b7a21(this,_0x150eb6(0xb0),new _0x268533[(_0x150eb6(0x185))](_0x150eb6(0x97))),_0x2b7a21(this,_0x150eb6(0xeb),this['_status$'][_0x150eb6(0xdf)]()),_0x2b7a21(this,_0x150eb6(0x128),!0x1),_0x2b7a21(this,_0x150eb6(0x90),null),_0x2b7a21(this,_0x150eb6(0x17d),null),(this[_0x150eb6(0x94)]=_0x34f633,this[_0x150eb6(0x11a)]=_0x140f3d,this[_0x150eb6(0x9e)]=_0xb76eb3,this[_0x150eb6(0x15a)]=_0x21e35b,this[_0x150eb6(0x17e)]=_0x24b212);}get[_0x1536fe(0x13b)](){var _0x3c7283=_0x1536fe;return this[_0x3c7283(0xb0)][_0x3c7283(0x14c)]();}[_0x1536fe(0x174)](){var _0x25bbf7=_0x1536fe,_0x3ff610;(_0x3ff610=this[_0x25bbf7(0x90)])==null||_0x3ff610[_0x25bbf7(0x174)](),this[_0x25bbf7(0xb0)]['next'](_0x25bbf7(0x97)),this[_0x25bbf7(0xb0)][_0x25bbf7(0x12a)]();}[_0x1536fe(0x15b)](){var _0x1f1ec5=_0x1536fe;this[_0x1f1ec5(0x128)]||(this['_init']=!0x0,this[_0x1f1ec5(0x11a)][_0x1f1ec5(0xb1)][_0x1f1ec5(0x178)](_0x11e3ef['takeUntil'](this['dispose$']))[_0x1f1ec5(0x12b)](_0x386ffa=>{var _0x3b316b=_0x1f1ec5;switch(_0x386ffa){case _0x1d09ee[_0x3b316b(0x154)][_0x3b316b(0x127)]:this[_0x3b316b(0x158)]();break;case _0x1d09ee[_0x3b316b(0x154)][_0x3b316b(0x12e)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x1f1ec5(0x12d)][_0x1f1ec5(0x178)](_0x11e3ef[_0x1f1ec5(0x13c)](this['dispose$']))[_0x1f1ec5(0x12b)](_0x3a3bf3=>{var _0xccbee4=_0x1f1ec5;const {eventID:_0x1e5e81}=_0x3a3bf3;switch(_0x1e5e81){case _0x2ffff0[_0xccbee4(0xd2)]['LIVESHARE_NEW_HOST']:this[_0xccbee4(0xb8)](_0x3a3bf3);break;case _0x2ffff0[_0xccbee4(0xd2)]['LIVESHARE_OPERATION']:this[_0xccbee4(0x135)](_0x3a3bf3);break;case _0x2ffff0['CollaborationEvent'][_0xccbee4(0x172)]:this[_0xccbee4(0x176)]();break;case _0x2ffff0[_0xccbee4(0xd2)][_0xccbee4(0x102)]:this[_0xccbee4(0x143)](_0x3a3bf3);break;}}));}['tryStartPresenting'](){var _0x277ba8=_0x1536fe;this[_0x277ba8(0x11a)][_0x277ba8(0x133)]({'eventID':_0x2ffff0[_0x277ba8(0xd2)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x277ba8(0x94)],'userID':this[_0x277ba8(0x11a)]['getMemberID']()}},this[_0x277ba8(0x94)]);}[_0x1536fe(0xbd)](){var _0x596bea=_0x1536fe;this[_0x596bea(0x13b)]===_0x596bea(0xc8)&&(this['_status$']['next'](_0x596bea(0x97)),this[_0x596bea(0x11a)][_0x596bea(0x133)]({'eventID':_0x2ffff0[_0x596bea(0xd2)][_0x596bea(0x172)],'data':{'unitID':this[_0x596bea(0x94)]}},this[_0x596bea(0x94)]));}[_0x1536fe(0x12f)](){var _0xe7f46a=_0x1536fe;this[_0xe7f46a(0x13b)]===_0xe7f46a(0xae)&&(this['_status$'][_0xe7f46a(0x11e)](_0xe7f46a(0x113)),this[_0xe7f46a(0x107)]());}[_0x1536fe(0x16a)](){var _0x226bbd=_0x1536fe;this[_0x226bbd(0x13b)]===_0x226bbd(0x113)&&this[_0x226bbd(0xa8)]();}['_handleNewHost'](_0x3feeb1){var _0x315792=_0x1536fe;const {presenter:_0x327b61}=_0x3feeb1['data'],_0x3cd4a3=this[_0x315792(0x11a)]['getMemberID']();this[_0x315792(0x17d)]=_0x327b61,_0x327b61===_0x3cd4a3?(this[_0x315792(0xa8)](),this[_0x315792(0x124)]()):this[_0x315792(0x13b)]!==_0x315792(0xae)&&(this[_0x315792(0x108)](),this[_0x315792(0x107)]());}[_0x1536fe(0xb9)](){var _0x2e5814=_0x1536fe;const _0x5c167f={'eventID':_0x2ffff0[_0x2e5814(0xd2)][_0x2e5814(0xf0)]};this[_0x2e5814(0x11a)][_0x2e5814(0x133)](_0x5c167f,this[_0x2e5814(0x94)]);}[_0x1536fe(0x176)](){var _0x330277=_0x1536fe;this[_0x330277(0x17d)]=null,this[_0x330277(0x13b)]!==_0x330277(0xc8)&&this[_0x330277(0xc2)]();}[_0x1536fe(0x143)](_0x3c45da){var _0x383fc1=_0x1536fe;if(this[_0x383fc1(0x13b)]===_0x383fc1(0x113)&&this[_0x383fc1(0x17d)]===_0x3c45da[_0x383fc1(0x148)][_0x383fc1(0x155)]){const _0xf82052=_0x2ffff0[_0x383fc1(0xaf)](_0x3c45da[_0x383fc1(0x148)])[_0x383fc1(0x179)][_0x383fc1(0x14f)]()[_0x383fc1(0x17b)](_0x1f290c=>_0x1f290c['id']===_0xfb8100[_0x383fc1(0x9a)]['id']);if(_0xf82052){const _0x4b1fcc=_0xf82052[_0x383fc1(0xbf)][_0x383fc1(0xf8)],_0x21923b=_0xf82052[_0x383fc1(0xbf)][_0x383fc1(0x9c)]['id'];setTimeout(()=>{var _0x4d6458=_0x383fc1;this[_0x4d6458(0x17e)][_0x4d6458(0x170)](_0xfb8100[_0x4d6458(0x140)]['id'],{'unitId':_0x4b1fcc,'subUnitId':_0x21923b},{'fromCollab':!0x0});});}}}[_0x1536fe(0x124)](){var _0x5ee726=_0x1536fe;this[_0x5ee726(0xb0)][_0x5ee726(0x11e)](_0x5ee726(0xc8));const _0x261ef4=new Map(),_0x46003b=this[_0x5ee726(0x90)]=new _0x3de664['DisposableCollection']();_0x46003b[_0x5ee726(0x169)](_0x3de664['toDisposable'](()=>{var _0x5a952f=_0x5ee726;_0x261ef4[_0x5a952f(0x16d)](_0x5bd93e=>_0x5bd93e[_0x5a952f(0x12a)]()),_0x261ef4[_0x5a952f(0x116)]();})),_0x46003b[_0x5ee726(0x169)](this[_0x5ee726(0x17e)][_0x5ee726(0xe3)](_0x442d17=>{var _0x1ffad2=_0x5ee726,_0x22e445;if(_0x442d17['type']!==_0x3de664[_0x1ffad2(0x156)]['OPERATION']||!this[_0x1ffad2(0x15a)][_0x1ffad2(0xac)](_0x442d17['id']))return;const {id:_0x187f25}=_0x442d17;let _0x47f79a;_0x261ef4[_0x1ffad2(0x129)](_0x187f25)?_0x47f79a=_0x261ef4[_0x1ffad2(0xd5)](_0x187f25):(_0x47f79a=new _0x268533[(_0x1ffad2(0x12c))](),_0x261ef4[_0x1ffad2(0xc9)](_0x187f25,_0x47f79a),_0x47f79a[_0x1ffad2(0x178)](_0x11e3ef[_0x1ffad2(0x111)]((_0x22e445=this['_configService'][_0x1ffad2(0x105)](_0x44ab8d))!=null?_0x22e445:_0x52fe74,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1ffad2(0x12b)](_0x4818e6=>{var _0x1de500=_0x1ffad2;this['_collabSession'][_0x1de500(0x133)]({'eventID':_0x2ffff0[_0x1de500(0xd2)][_0x1de500(0xdc)],'data':{'unitID':this[_0x1de500(0x94)],'operations':{[_0x4818e6['id']]:{'id':_0x4818e6['id'],'params':JSON[_0x1de500(0x150)](_0x4818e6[_0x1de500(0xbf)])}}}},this[_0x1de500(0x94)]);})),_0x47f79a['next'](_0x442d17);})),this[_0x5ee726(0x15a)][_0x5ee726(0xca)](this['_unitID'])[_0x5ee726(0x16d)](_0x25b1b5=>this[_0x5ee726(0x11a)][_0x5ee726(0x133)]({'eventID':_0x2ffff0[_0x5ee726(0xd2)][_0x5ee726(0xdc)],'data':{'unitID':this['_unitID'],'operations':{[_0x25b1b5['id']]:{'id':_0x25b1b5['id'],'params':JSON[_0x5ee726(0x150)](_0x25b1b5['params'])}}}},this[_0x5ee726(0x94)]));}[_0x1536fe(0x108)](){var _0x22b5a3=_0x1536fe,_0x36a24c;this[_0x22b5a3(0xb0)]['next']('idle'),(_0x36a24c=this[_0x22b5a3(0x90)])==null||_0x36a24c[_0x22b5a3(0x174)](),this[_0x22b5a3(0x90)]=null;}[_0x1536fe(0x107)](){var _0x1f3428=_0x1536fe,_0xbe9c1;(_0xbe9c1=this['_commandDisposable'])==null||_0xbe9c1['dispose'](),this['_status$'][_0x1f3428(0x11e)]('following');}[_0x1536fe(0xc2)](){var _0x51a941=_0x1536fe,_0x13eaa6;this[_0x51a941(0xb0)]['next']('idle'),(_0x13eaa6=this[_0x51a941(0x90)])==null||_0x13eaa6[_0x51a941(0x174)](),this['_commandDisposable']=null;}[_0x1536fe(0xa8)](){var _0x51054c=_0x1536fe,_0x363e9a;this[_0x51054c(0xb0)][_0x51054c(0x11e)](_0x51054c(0xae)),(_0x363e9a=this[_0x51054c(0x90)])==null||_0x363e9a['dispose']();}[_0x1536fe(0x135)](_0x1e3fc5){var _0x880075=_0x1536fe;if([_0x880075(0xc8),'not-following',_0x880075(0x13d)][_0x880075(0xee)](this[_0x880075(0x13b)])||!_0x1e3fc5[_0x880075(0x148)][_0x880075(0xc7)]||_0x1e3fc5[_0x880075(0x148)][_0x880075(0xc7)]===this[_0x880075(0x11a)][_0x880075(0x157)]())return;this[_0x880075(0x13b)]===_0x880075(0x97)&&this[_0x880075(0x107)]();const _0x405a59=_0x1e3fc5[_0x880075(0x148)][_0x880075(0x106)];Object['values'](_0x405a59)[_0x880075(0x16d)](_0x8306f4=>{var _0x2c445e=_0x880075;this['_commandService'][_0x2c445e(0x170)](_0x8306f4['id'],_0x8306f4[_0x2c445e(0xbf)]?JSON[_0x2c445e(0xf7)](_0x8306f4[_0x2c445e(0xbf)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x59e34d=_0x1536fe,_0x5bd621;this[_0x59e34d(0xb0)][_0x59e34d(0x11e)](_0x59e34d(0x13d)),(_0x5bd621=this[_0x59e34d(0x90)])==null||_0x5bd621[_0x59e34d(0x174)]();}[_0x1536fe(0xdb)](){var _0x4d76ae=_0x1536fe;this[_0x4d76ae(0xb0)][_0x4d76ae(0x11e)](_0x4d76ae(0x97)),this[_0x4d76ae(0xb9)]();}},_0x1ce817['LiveShareCoordinator']=_0xc444b9([_0xc68594(0x2,_0x3de664[_0x1536fe(0xa5)]),_0xc68594(0x3,_0x3de664[_0x1536fe(0xcd)](_0x1d2d40)),_0xc68594(0x4,_0x3de664['ICommandService'])],_0x1ce817['LiveShareCoordinator']);function _0xa7a2ad(){var _0x20c00e=_0x1536fe;const _0x2792df=_0x5b02c5[_0x20c00e(0xe1)](_0x1ce817['LiveShareController']),_0x2f9f54=_0x5b02c5[_0x20c00e(0xe1)](_0x3de664['IUniverInstanceService']),_0x4f929c=_0x5b02c5[_0x20c00e(0x17f)](()=>_0x2f9f54[_0x20c00e(0x164)](_0x3de664['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x27d404,_0x370d09]=_0x200ed7[_0x20c00e(0x8f)](null),[_0x466c11,_0x1b219d]=_0x200ed7[_0x20c00e(0x8f)](_0x1d52f0['IDLE']),_0x1634af=_0x200ed7['useRef'](null);return _0x200ed7[_0x20c00e(0x11c)](()=>(_0x4f929c&&_0x2792df[_0x20c00e(0x121)](_0x4f929c['getUnitId']())['then'](_0x43e98b=>{var _0x4aaa38=_0x20c00e;_0x370d09(_0x43e98b),_0x1634af['current']=_0x43e98b[_0x4aaa38(0xeb)][_0x4aaa38(0x12b)](_0xf0a847=>{_0x1b219d(_0xf0a847);});}),()=>{var _0x22c86c=_0x20c00e,_0x1dc745;(_0x1dc745=_0x1634af[_0x22c86c(0x17c)])==null||_0x1dc745[_0x22c86c(0x8e)](),_0x1634af[_0x22c86c(0x17c)]=null;}),[_0x4f929c,_0x2792df]),_0x27d404?_0x183b5d[_0x20c00e(0xe9)](_0x318939[_0x20c00e(0xe6)],{'align':'end','disabled':_0x466c11===_0x1d52f0[_0x20c00e(0x127)],'className':_0x20c00e(0x147),'overlay':_0x183b5d[_0x20c00e(0xe9)](_0x4fbfb7,{'status':_0x466c11,'coordinator':_0x27d404}),'children':_0x183b5d['jsx'](_0x20c00e(0x162),{'className':_0x318939[_0x20c00e(0x115)](_0x20c00e(0xd8),{'univer-cursor-not-allowed':_0x466c11===_0x1d52f0[_0x20c00e(0x127)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x466c11!==_0x1d52f0['OFFLINE']}),'type':'button','children':_0x183b5d[_0x20c00e(0xe9)](_0x145c04,{'className':_0x20c00e(0x10b)})})}):null;}function _0x4fbfb7(_0x8c2d1b){var _0x513a46=_0x1536fe;const {status:_0x52d696,coordinator:_0x7bd990}=_0x8c2d1b;switch(_0x52d696){case _0x1d52f0[_0x513a46(0x142)]:return _0x183b5d[_0x513a46(0xe9)](_0x159c32,{'coordinator':_0x7bd990});case _0x1d52f0[_0x513a46(0x180)]:return _0x183b5d[_0x513a46(0xe9)](_0x8be13,{'coordinator':_0x7bd990});case _0x1d52f0['NOT_FOLLOWING']:return _0x183b5d[_0x513a46(0xe9)](_0x2f4cf4,{'coordinator':_0x7bd990});case _0x1d52f0['OFFLINE']:return _0x183b5d[_0x513a46(0xe9)](_0x26392b,{});case _0x1d52f0[_0x513a46(0x16b)]:return _0x183b5d[_0x513a46(0xe9)](_0x363dd9,{'coordinator':_0x7bd990});default:return null;}}function _0x159c32(_0x471441){var _0x55e8b3=_0x1536fe;const {coordinator:_0x237d66}=_0x471441;return _0x183b5d['jsxs'](_0x183b5d[_0x55e8b3(0x14d)],{'children':[_0x183b5d[_0x55e8b3(0xe9)](_0x55e8b3(0xfb),{'className':_0x55e8b3(0x112),'children':'Present\x20this\x20document'}),_0x183b5d[_0x55e8b3(0xe9)](_0x318939['Button'],{'onClick':()=>_0x237d66['tryStartPresenting'](),'children':'Start'})]});}function _0x8be13(_0x24e647){var _0x391a59=_0x1536fe;const {coordinator:_0x23e179}=_0x24e647;return _0x183b5d[_0x391a59(0x182)](_0x183b5d['Fragment'],{'children':[_0x183b5d[_0x391a59(0xe9)](_0x391a59(0xfb),{'className':_0x391a59(0x112),'children':_0x391a59(0x146)}),_0x183b5d[_0x391a59(0xe9)](_0x318939[_0x391a59(0x8a)],{'onClick':()=>_0x23e179[_0x391a59(0x16a)](),'children':_0x391a59(0xb7)})]});}function _0x2f4cf4(_0x545da4){var _0x31348e=_0x1536fe;const {coordinator:_0x4b8e84}=_0x545da4;return _0x183b5d[_0x31348e(0x182)](_0x183b5d[_0x31348e(0x14d)],{'children':[_0x183b5d[_0x31348e(0xe9)]('div',{'className':_0x31348e(0x112),'children':_0x31348e(0x10f)}),_0x183b5d[_0x31348e(0xe9)](_0x318939[_0x31348e(0x8a)],{'variant':_0x31348e(0xb4),'onClick':()=>_0x4b8e84[_0x31348e(0x12f)](),'children':_0x31348e(0x117)})]});}function _0x363dd9(_0x9b7a8c){var _0x59a8c6=_0x1536fe;const {coordinator:_0x8c0efc}=_0x9b7a8c;return _0x183b5d['jsxs'](_0x183b5d[_0x59a8c6(0x14d)],{'children':[_0x183b5d['jsx']('div',{'className':_0x59a8c6(0x112),'children':_0x59a8c6(0x96)}),_0x183b5d[_0x59a8c6(0xe9)](_0x318939['Button'],{'variant':_0x59a8c6(0x11b),'onClick':()=>_0x8c0efc[_0x59a8c6(0xbd)](),'children':_0x59a8c6(0x126)})]});}function _0x26392b(){var _0x2e274e=_0x1536fe;return _0x183b5d[_0x2e274e(0xe9)](_0x183b5d['Fragment'],{'children':_0x2e274e(0x145)});}var _0x487c1c=Object[_0x1536fe(0x16c)],_0x4d48d0=(_0x771b4f,_0x35ffd0,_0x464bf7,_0x47a9d0)=>{for(var _0x377c27=_0x47a9d0>0x1?void 0x0:_0x47a9d0?_0x487c1c(_0x35ffd0,_0x464bf7):_0x35ffd0,_0x40ed16=_0x771b4f['length']-0x1,_0x1cc74a;_0x40ed16>=0x0;_0x40ed16--)(_0x1cc74a=_0x771b4f[_0x40ed16])&&(_0x377c27=_0x1cc74a(_0x377c27)||_0x377c27);return _0x377c27;},_0x46e2c6=(_0x461cda,_0x1fd057)=>(_0xace34c,_0x73faab)=>_0x1fd057(_0xace34c,_0x73faab,_0x461cda);_0x1ce817[_0x1536fe(0x165)]=class extends _0x3de664[_0x1536fe(0x8c)]{constructor(_0x5e9480,_0x4ca6a1){var _0x43ffb5=_0x1536fe;super(),this[_0x43ffb5(0x8b)]=_0x5e9480,this['_uiPartsService']=_0x4ca6a1,this[_0x43ffb5(0xcc)]();}[_0x1536fe(0xcc)](){var _0xff4596=_0x1536fe;this[_0xff4596(0x13a)](this['_uiPartsService'][_0xff4596(0xa3)](_0x5b02c5[_0xff4596(0x134)][_0xff4596(0x10a)],()=>_0x5b02c5[_0xff4596(0xd6)](_0xa7a2ad,this[_0xff4596(0x8b)])));}},_0x1ce817[_0x1536fe(0x165)]=_0x4d48d0([_0x46e2c6(0x0,_0x3de664[_0x1536fe(0xcd)](_0x3de664[_0x1536fe(0x177)])),_0x46e2c6(0x1,_0x5b02c5[_0x1536fe(0xc5)])],_0x1ce817['DesktopLiveShareController']);var _0x1b7793=Object[_0x1536fe(0x173)],_0x36a389=Object[_0x1536fe(0x16c)],_0x57c0f5=(_0x467b57,_0xfb8007,_0x123043)=>_0xfb8007 in _0x467b57?_0x1b7793(_0x467b57,_0xfb8007,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x123043}):_0x467b57[_0xfb8007]=_0x123043,_0xba84b3=(_0x3273ae,_0x284722,_0x1c9ddd,_0x2a641c)=>{for(var _0x14f012=_0x2a641c>0x1?void 0x0:_0x2a641c?_0x36a389(_0x284722,_0x1c9ddd):_0x284722,_0x1eed0a=_0x3273ae['length']-0x1,_0x47ef55;_0x1eed0a>=0x0;_0x1eed0a--)(_0x47ef55=_0x3273ae[_0x1eed0a])&&(_0x14f012=_0x47ef55(_0x14f012)||_0x14f012);return _0x14f012;},_0x1acb2d=(_0x47f200,_0x4c8050)=>(_0x189c77,_0x9318b8)=>_0x4c8050(_0x189c77,_0x9318b8,_0x47f200),_0x2f1b9e=(_0x3734db,_0x456f87,_0x55025d)=>_0x57c0f5(_0x3734db,typeof _0x456f87!=_0x1536fe(0xbe)?_0x456f87+'':_0x456f87,_0x55025d);const _0x247b73=_0x1536fe(0x130);_0x1ce817['UniverLiveSharePlugin']=class extends _0x3de664[_0x1536fe(0xde)]{constructor(_0x456916=_0x2b0129,_0x47139b,_0x26170e){var _0x1bf4b7=_0x1536fe;super(),this[_0x1bf4b7(0xa1)]=_0x456916,this[_0x1bf4b7(0x8b)]=_0x47139b,this[_0x1bf4b7(0x9e)]=_0x26170e;const {..._0x2dbfb5}=_0x3de664[_0x1bf4b7(0xed)]({},_0x2b0129,this[_0x1bf4b7(0xa1)]);this[_0x1bf4b7(0x9e)][_0x1bf4b7(0xa6)](_0x4f9b65,_0x2dbfb5);}[_0x1536fe(0x14a)](){var _0x1fdbee=_0x1536fe;_0x3de664[_0x1fdbee(0x161)](this[_0x1fdbee(0x8b)],_0x3de664[_0x1fdbee(0x14b)]([[_0x1d2d40],[_0x1ce817[_0x1fdbee(0xdd)]],[_0x20c99b],[_0x1ce817[_0x1fdbee(0x165)]]],this[_0x1fdbee(0xa1)]['override'])),_0x3de664[_0x1fdbee(0x122)](this['_injector'],[[_0x20c99b]]);}['onRendered'](){var _0x506bdc=_0x1536fe;_0x3de664[_0x506bdc(0x122)](this[_0x506bdc(0x8b)],[[_0x1ce817[_0x506bdc(0x165)]]]);}},_0x2f1b9e(_0x1ce817['UniverLiveSharePlugin'],_0x1536fe(0x89),_0x3de664['UniverInstanceType'][_0x1536fe(0xbb)]),_0x2f1b9e(_0x1ce817[_0x1536fe(0xc6)],_0x1536fe(0x110),_0x247b73),_0x1ce817['UniverLiveSharePlugin']=_0xba84b3([_0x3de664[_0x1536fe(0x13f)](_0x1d09ee['UniverCollaborationClientPlugin']),_0x1acb2d(0x1,_0x3de664['Inject'](_0x3de664['Injector'])),_0x1acb2d(0x2,_0x3de664[_0x1536fe(0xa5)])],_0x1ce817[_0x1536fe(0xc6)]),_0x1ce817[_0x1536fe(0xda)]=_0xa7a2ad,_0x1ce817[_0x1536fe(0x151)]=_0x1d2d40,_0x1ce817[_0x1536fe(0x101)]=_0x1d52f0,Object['defineProperty'](_0x1ce817,Symbol[_0x1536fe(0xd7)],{'value':_0x1536fe(0xec)});}));function _0x1c35(){var _0x8b39b3=['_commandService','useObservable','FOLLOWING','3113286AWFJQN','jsxs','colorChannel1','UniverDesign','BehaviorSubject','type','Button','_injector','Disposable','24130MSTLHE','unsubscribe','useState','_commandDisposable','univerjs-icon\x20univerjs-icon-','url(#$1','call','_unitID','className','You\x27re\x20presenting\x20the\x20document','idle','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','@univerjs-pro/collaboration','InsertSheetMutation','react','sheet','_reporters','_configService','tag','4LWhowy','_config','@univerjs-pro/collaboration-client','registerComponent','object','IConfigService','setConfig','createInstance','_stopFollowing','string','_sharedOperations','http://www.w3.org/2000/svg','shouldShareOperation','RxDisposable','not-following','parseProtocolChangeset','_status$','sessionStatus$','getUnitId','extend','text','apply','replace','Stop\x20following','_handleNewHost','_fetchOperations','71432UrrNwG','UNIVER_UNKNOWN','0\x200\x2017\x2017','stopPresenting','symbol','params','attrs','children','_beIdle','requireSession','getTypeOfUnitDisposed$','IUIPartsService','UniverLiveSharePlugin','presenter','presenting','set','getInitialStates','toString','_mountLiveShare','Inject','UniverSheets','React','currentColor','getTypeOfUnitAdded$','CollaborationEvent','concat','UniverProLiveShare','get','connectInjector','toStringTag','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UNIVER_SHEET','LiveShare','_handleOnline','LIVESHARE_OPERATION','LiveShareController','Plugin','asObservable','UniverIcon','useDependency','UniverSheetsUi','onCommandExecuted','@univerjs/ui','evenodd','Dropdown','from','UniverInstanceType','jsx','12pvcovH','status$','Module','merge','includes','idSuffix','LIVESHARE_FETCH_OPERATIONS','operators','238757EDWiGK','delete','useRef','fill','7YTvMHH','parse','unitId','LiveShareCoordinator','icon','div','defIds','40zUUtYN','forwardRef','svg','NOT_FOLLOWING','LiveShareStatus','NEW_CHANGESETS','@univerjs/design','rxjs','getConfig','operations','_startFollowing','_stopPresenting','837zwTrug','HEADER_MENU','univer-size-4','path','react/jsx-runtime','@univerjs/core','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','throttleTime','univer-mb-3\x20univer-w-full\x20univer-text-sm','following','CollaborationSessionService','clsx','clear','Start\x20following','function','displayName','_collabSession','default','useEffect','indexOf','next','map','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getLiveShareCoordinator','touchDependencies','_collabSessionService','_startPresenting','assign','Stop\x20presenting','OFFLINE','_init','has','complete','subscribe','Subject','event$','ONLINE','startFollowing','UNIVER_LIVE_SHARE_PLUGIN','xlink:href','getOwnPropertySymbols','send','BuiltInUIPart','_handleOperation','UniverCore','451800IEGAht','dispose$','_entities','disposeWithMe','_status','takeUntil','offline','entries','DependentOn','SetWorksheetActiveOperation','1330305yOEFkC','IDLE','_handleNewChangeSets','_startLiveShareCoordinator','You\x27are\x20offline.','You\x27re\x20following\x20the\x20presenter','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','data','mask','onStarting','mergeOverrideWithDependencies','getValue','Fragment','UniverUi','reverse','stringify','LiveShareService','hasOwnProperty','length','SessionStatus','memberID','CommandType','getMemberID','_handleOffline','registerInitialStateReporter','_liveShareService','init','registerSharedOperation','rxjs/operators','createElement','44811UMhNyn','live-share-icon','registerDependencies','button','_univerInstanceService','getCurrentTypeOfUnit$','DesktopLiveShareController','none','IUniverInstanceService','toDisposable','add','stopFollowing','PRESENTING','getOwnPropertyDescriptor','forEach','amd','prototype','executeCommand','live-share.config','LIVESHARE_TERMINATE','defineProperty','dispose','1em','_handleTerminate','Injector','pipe','mutations','@univerjs/sheets','find','current','_presenter'];_0x1c35=function(){return _0x8b39b3;};return _0x1c35();}
|
|
1
|
+
function _0xceca(){var _0x53cdaa=['includes','operators','send','univer-size-4','current','div','Stop\x20following','complete','asObservable','1em','LIVESHARE_OPERATION','You\x27re\x20presenting\x20the\x20document','random','_status$','onStarting','onRendered','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','Inject','0\x200\x2017\x2017','@univerjs/ui','xlink:href','LiveShareIcon','defineProperty','696kYefOO','UniverUi','_handleOnline','getOwnPropertySymbols','UniverSheets','Button','Stop\x20presenting','SetZoomRatioOperation','22LKFygy','icon','function','rxjs/operators','_startFollowing','LiveShare','InsertSheetMutation','defIds','displayName','You\x27re\x20not\x20following\x20the\x20presenter','_presenter','forEach','_fetchOperations','_liveShareService','_startLiveShareCoordinator','BuiltInUIPart','get','_uiPartsService','You\x27are\x20offline.','DisposableCollection','exports','merge','_handleOperation','Subject','@univerjs/sheets-ui','94RjHUQP','UniverCollaborationClientPlugin','@univerjs/core','from','jsx','indexOf','subscribe','_sharedOperations','unitId','DesktopLiveShareController','getMemberID','set','LIVESHARE_REQUEST_HOST','onCommandExecuted','currentColor','RxDisposable','Plugin','connectInjector','Dropdown','IDLE','forwardRef','path','_commandService','univerjs-icon\x20univerjs-icon-','UNIVER_SHEET','shouldShareOperation','_configService','assign','presenter','React','following','dispose','getConfig','react/jsx-runtime','colorChannel1','throttleTime','string','mutations','tag','has','jsxs','SessionStatus','registerInitialStateReporter','parseProtocolChangeset','http://www.w3.org/2000/svg','prototype','dispose$','5305752eLXxgy','Start','setConfig','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getTypeOfUnitDisposed$','IConfigService','_mountLiveShare','UNIVER_UNKNOWN','button','LiveShareService','useDependency','@univerjs/design','registerSharedOperation','500970NiAsya','toDisposable','end','idSuffix','stopPresenting','pipe','_reporters','getUnitId','clear','entries','FOLLOWING','SetWorksheetActiveOperation','UniverProCollaborationClient','Fragment','trim','UniverCore','_injector','Injector','LiveShareCoordinator','getOwnPropertyDescriptor','delete','CollaborationEvent','symbol','stringify','svg','CommandType','then','getLiveShareCoordinator','reverse','6TuzOZr','add','sessionStatus$','Disposable','live-share.config','clsx','substring','takeUntil','useRef','@univerjs-pro/collaboration','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','default','idle','_commandDisposable','717890EgrOvf','_handleOffline','map','148454qCqYMB','startFollowing','offline','rxjs','LiveShareController','getInitialStates','createElement','UniverInstanceType','not-following','_unitID','executeCommand','replace','_startPresenting','fill','_handleNewHost','type','16710aJpnfc','UNIVER_LIVE_SHARE_PLUGIN','className','Present\x20this\x20document','tryStartPresenting','_init','pluginName','url(#$1','toString','OPERATION','UniverLiveSharePlugin','@univerjs-pro/collaboration-client','length','next','call','_entities','CollaborationSessionService','_collabSessionService','requireSession','_stopPresenting','1162516cJFVFQ','propertyIsEnumerable','status$','_handleNewChangeSets','children','params','LIVESHARE_TERMINATE','ICommandService','presenting','attrs','_config','sheet','_collabSession','hasOwnProperty','HEADER_MENU','_stopFollowing','8631uAXkIX','_status','mask','NOT_FOLLOWING','NEW_CHANGESETS','mergeOverrideWithDependencies','_beIdle','concat','IUniverInstanceService','react','UniverProCollaboration','extend','text','useState','UniverIcon','useObservable','getValue','_handleTerminate','_univerInstanceService','@univerjs/sheets','PRESENTING','live-share-icon','SetScrollOperation','UniverProLiveShare','touchDependencies','data','getCurrentTypeOfUnit$','OFFLINE','evenodd','amd'];_0xceca=function(){return _0x53cdaa;};return _0xceca();}function _0x12f7(_0x33c3b6,_0x148918){var _0xceca96=_0xceca();return _0x12f7=function(_0x12f731,_0x96bb2c){_0x12f731=_0x12f731-0xb9;var _0xe650fa=_0xceca96[_0x12f731];return _0xe650fa;},_0x12f7(_0x33c3b6,_0x148918);}(function(_0x26fed7,_0x57be41){var _0x5bf8f7=_0x12f7,_0x59c957=_0x26fed7();while(!![]){try{var _0xbc50c9=-parseInt(_0x5bf8f7(0xd3))/0x1+-parseInt(_0x5bf8f7(0x15e))/0x2*(parseInt(_0x5bf8f7(0xe3))/0x3)+parseInt(_0x5bf8f7(0xf7))/0x4+parseInt(_0x5bf8f7(0x19a))/0x5*(parseInt(_0x5bf8f7(0xc2))/0x6)+-parseInt(_0x5bf8f7(0x107))/0x7*(parseInt(_0x5bf8f7(0x13d))/0x8)+parseInt(_0x5bf8f7(0x18d))/0x9+-parseInt(_0x5bf8f7(0xd0))/0xa*(parseInt(_0x5bf8f7(0x145))/0xb);if(_0xbc50c9===_0x57be41)break;else _0x59c957['push'](_0x59c957['shift']());}catch(_0x258f8a){_0x59c957['push'](_0x59c957['shift']());}}}(_0xceca,0x4df1a),function(_0x51e5b1,_0x817353){var _0x16f2f6=_0x12f7;typeof exports=='object'&&typeof module<'u'?_0x817353(exports,require(_0x16f2f6(0xee)),require(_0x16f2f6(0x160)),require(_0x16f2f6(0x11a)),require(_0x16f2f6(0x15d)),require(_0x16f2f6(0x139)),require(_0x16f2f6(0x17f)),require(_0x16f2f6(0x198)),require(_0x16f2f6(0x110)),require(_0x16f2f6(0xcb)),require(_0x16f2f6(0xd6)),require(_0x16f2f6(0x148))):typeof define==_0x16f2f6(0x147)&&define[_0x16f2f6(0x124)]?define([_0x16f2f6(0x159),_0x16f2f6(0xee),_0x16f2f6(0x160),_0x16f2f6(0x11a),_0x16f2f6(0x15d),_0x16f2f6(0x139),_0x16f2f6(0x17f),_0x16f2f6(0x198),_0x16f2f6(0x110),_0x16f2f6(0xcb),_0x16f2f6(0xd6),'rxjs/operators'],_0x817353):(_0x51e5b1=typeof globalThis<'u'?globalThis:_0x51e5b1||self,_0x817353(_0x51e5b1[_0x16f2f6(0x11e)]={},_0x51e5b1[_0x16f2f6(0x1a6)],_0x51e5b1[_0x16f2f6(0x1a9)],_0x51e5b1[_0x16f2f6(0x141)],_0x51e5b1['UniverSheetsUi'],_0x51e5b1[_0x16f2f6(0x13e)],_0x51e5b1['React'],_0x51e5b1['UniverDesign'],_0x51e5b1[_0x16f2f6(0x17b)],_0x51e5b1[_0x16f2f6(0x111)],_0x51e5b1[_0x16f2f6(0xd6)],_0x51e5b1[_0x16f2f6(0xd6)][_0x16f2f6(0x126)]));}(this,function(_0x1abd0f,_0x4a416d,_0x5766ef,_0x11b35b,_0x4ec4a0,_0x40d51e,_0x134631,_0x3b938d,_0x42fe5d,_0x5d049f,_0x251619,_0x9db1d9){'use strict';var _0x2b9481=_0x12f7;var _0x15eecc=Object['defineProperty'],_0x1f1937=(_0x1077a2,_0x10154f,_0x357ddc)=>_0x10154f in _0x1077a2?_0x15eecc(_0x1077a2,_0x10154f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x357ddc}):_0x1077a2[_0x10154f]=_0x357ddc,_0x2e6a77=(_0x42400c,_0x3d58d3,_0x1969ca)=>_0x1f1937(_0x42400c,typeof _0x3d58d3!='symbol'?_0x3d58d3+'':_0x3d58d3,_0x1969ca);const _0x14cb19=_0x2b9481(0xc6),_0x5cd80b={};class _0x526444 extends _0x5766ef[_0x2b9481(0xc5)]{constructor(){super(...arguments),_0x2e6a77(this,'_sharedOperations',new Set()),_0x2e6a77(this,'_reporters',new Set());}[_0x2b9481(0x199)](_0x3970e3){var _0x4534bb=_0x2b9481;return this['_sharedOperations'][_0x4534bb(0xc3)](_0x3970e3),_0x5766ef[_0x4534bb(0x19b)](()=>this[_0x4534bb(0x165)]['delete'](_0x3970e3));}[_0x2b9481(0x188)](_0x427e03){var _0x1e565e=_0x2b9481;return this[_0x1e565e(0x1a0)][_0x1e565e(0xc3)](_0x427e03),_0x5766ef[_0x1e565e(0x19b)](()=>this['_reporters'][_0x1e565e(0xb9)](_0x427e03));}[_0x2b9481(0x177)](_0x370414){var _0x5c341d=_0x2b9481;return this[_0x5c341d(0x165)][_0x5c341d(0x185)](_0x370414);}[_0x2b9481(0xd8)](_0x2f1c75){var _0x39b3eb=_0x2b9481;return Array[_0x39b3eb(0x161)](this[_0x39b3eb(0x1a0)])[_0x39b3eb(0xd2)](_0x2f95c6=>_0x2f95c6(_0x2f1c75));}}var _0x48ab02=Object[_0x2b9481(0x1ad)],_0x1b496b=(_0x515999,_0xaaa631,_0x490f2c,_0x493655)=>{var _0x64041=_0x2b9481;for(var _0x484681=_0x493655>0x1?void 0x0:_0x493655?_0x48ab02(_0xaaa631,_0x490f2c):_0xaaa631,_0x75bae0=_0x515999[_0x64041(0xef)]-0x1,_0x56c70b;_0x75bae0>=0x0;_0x75bae0--)(_0x56c70b=_0x515999[_0x75bae0])&&(_0x484681=_0x56c70b(_0x484681)||_0x484681);return _0x484681;},_0x4a27d0=(_0x54aef6,_0x1de54d)=>(_0xa9b215,_0x28452b)=>_0x1de54d(_0xa9b215,_0x28452b,_0x54aef6);let _0x54c2ee=class extends _0x5766ef['Disposable']{constructor(_0x2f95fa){var _0x26ca2a=_0x2b9481;super(),this[_0x26ca2a(0x152)]=_0x2f95fa,this[_0x26ca2a(0xe8)]();}[_0x2b9481(0xe8)](){var _0x37f3db=_0x2b9481;[_0x4ec4a0[_0x37f3db(0x144)]['id'],_0x4ec4a0[_0x37f3db(0x11d)]['id'],_0x11b35b['SetWorksheetActiveOperation']['id']][_0x37f3db(0x150)](_0x1c9628=>{var _0x56ba68=_0x37f3db;this[_0x56ba68(0x136)](this[_0x56ba68(0x152)][_0x56ba68(0x199)](_0x1c9628));});}};_0x54c2ee=_0x1b496b([_0x4a27d0(0x0,_0x5766ef[_0x2b9481(0x137)](_0x526444))],_0x54c2ee);var _0x1e6282=function(){var _0x20a667=_0x2b9481;return _0x1e6282=Object[_0x20a667(0x179)]||function(_0x4a17f9){var _0x284170=_0x20a667;for(var _0x507199,_0x18d53f=0x1,_0x415d1a=arguments[_0x284170(0xef)];_0x18d53f<_0x415d1a;_0x18d53f++){_0x507199=arguments[_0x18d53f];for(var _0x567280 in _0x507199)Object[_0x284170(0x18b)][_0x284170(0x104)]['call'](_0x507199,_0x567280)&&(_0x4a17f9[_0x567280]=_0x507199[_0x567280]);}return _0x4a17f9;},_0x1e6282['apply'](this,arguments);},_0x58a0bb=function(_0x479cc9,_0x29a6d9){var _0x25d38c=_0x2b9481,_0x1d24a9={};for(var _0x408e77 in _0x479cc9)Object['prototype'][_0x25d38c(0x104)]['call'](_0x479cc9,_0x408e77)&&_0x29a6d9[_0x25d38c(0x163)](_0x408e77)<0x0&&(_0x1d24a9[_0x408e77]=_0x479cc9[_0x408e77]);if(_0x479cc9!=null&&typeof Object[_0x25d38c(0x140)]==_0x25d38c(0x147)){for(var _0x100aa2=0x0,_0x408e77=Object[_0x25d38c(0x140)](_0x479cc9);_0x100aa2<_0x408e77[_0x25d38c(0xef)];_0x100aa2++)_0x29a6d9[_0x25d38c(0x163)](_0x408e77[_0x100aa2])<0x0&&Object['prototype'][_0x25d38c(0xf8)][_0x25d38c(0xf1)](_0x479cc9,_0x408e77[_0x100aa2])&&(_0x1d24a9[_0x408e77[_0x100aa2]]=_0x479cc9[_0x408e77[_0x100aa2]]);}return _0x1d24a9;},_0x7eecb5=_0x42fe5d[_0x2b9481(0x172)](function(_0x5990d5,_0x10afdd){var _0x4c041d=_0x2b9481,_0x39d9a2=_0x5990d5['icon'],_0x36211b=_0x5990d5['id'],_0x5ea7a8=_0x5990d5['className'],_0xa1653c=_0x5990d5[_0x4c041d(0x112)],_0x1741ce=_0x58a0bb(_0x5990d5,[_0x4c041d(0x146),'id',_0x4c041d(0xe5),'extend']),_0xce4969=_0x4c041d(0x175)[_0x4c041d(0x10e)](_0x36211b,'\x20')[_0x4c041d(0x10e)](_0x5ea7a8||'')[_0x4c041d(0x1a8)](),_0xe36e48=_0x42fe5d[_0x4c041d(0xca)]('_'[_0x4c041d(0x10e)](_0x2aa9fe()));return _0x3c46d4(_0x39d9a2,''[_0x4c041d(0x10e)](_0x36211b),{'defIds':_0x39d9a2['defIds'],'idSuffix':_0xe36e48[_0x4c041d(0x129)]},_0x1e6282({'ref':_0x10afdd,'className':_0xce4969},_0x1741ce),_0xa1653c);});function _0x3c46d4(_0x1f5fd6,_0x2a5ce3,_0x2ffea8,_0x8eb1f2,_0x541621){var _0x55f918=_0x2b9481;return _0x42fe5d[_0x55f918(0xd9)](_0x1f5fd6[_0x55f918(0x184)],_0x1e6282(_0x1e6282({'key':_0x2a5ce3},_0x449aef(_0x1f5fd6,_0x2ffea8,_0x541621)),_0x8eb1f2),(_0x3a95aa(_0x1f5fd6,_0x2ffea8)[_0x55f918(0xfb)]||[])[_0x55f918(0xd2)](function(_0x4b5f47,_0x26c291){var _0x12b4cb=_0x55f918;return _0x3c46d4(_0x4b5f47,''[_0x12b4cb(0x10e)](_0x2a5ce3,'-')['concat'](_0x1f5fd6[_0x12b4cb(0x184)],'-')['concat'](_0x26c291),_0x2ffea8,void 0x0,_0x541621);}));}function _0x449aef(_0x4185cc,_0x48d9e9,_0x46d253){var _0x3c1c73=_0x2b9481,_0x394cbf=_0x1e6282({},_0x4185cc['attrs']);_0x46d253!=null&&_0x46d253[_0x3c1c73(0x180)]&&_0x394cbf['fill']===_0x3c1c73(0x180)&&(_0x394cbf[_0x3c1c73(0xe0)]=_0x46d253[_0x3c1c73(0x180)]),_0x4185cc[_0x3c1c73(0x184)]==='mask'&&_0x394cbf['id']&&(_0x394cbf['id']=_0x394cbf['id']+_0x48d9e9['idSuffix']),Object[_0x3c1c73(0x1a3)](_0x394cbf)[_0x3c1c73(0x150)](function(_0x2d7efc){var _0x31f327=_0x3c1c73,_0xd276df=_0x2d7efc[0x0],_0x439237=_0x2d7efc[0x1];_0xd276df===_0x31f327(0x109)&&typeof _0x439237==_0x31f327(0x182)&&(_0x394cbf[_0xd276df]=_0x439237[_0x31f327(0xde)](/url\(#(.*)\)/,'url(#$1'[_0x31f327(0x10e)](_0x48d9e9[_0x31f327(0x19d)],')')));});var _0x436710=_0x48d9e9[_0x3c1c73(0x14c)];return!_0x436710||_0x436710[_0x3c1c73(0xef)]===0x0||(_0x4185cc[_0x3c1c73(0x184)]==='use'&&_0x394cbf[_0x3c1c73(0x13a)]&&(_0x394cbf['xlink:href']=_0x394cbf[_0x3c1c73(0x13a)]+_0x48d9e9[_0x3c1c73(0x19d)]),Object[_0x3c1c73(0x1a3)](_0x394cbf)[_0x3c1c73(0x150)](function(_0x5b7ac4){var _0x5a0315=_0x3c1c73,_0x527f97=_0x5b7ac4[0x0],_0x1dc76d=_0x5b7ac4[0x1];typeof _0x1dc76d==_0x5a0315(0x182)&&(_0x394cbf[_0x527f97]=_0x1dc76d[_0x5a0315(0xde)](/url\(#(.*)\)/,_0x5a0315(0xea)['concat'](_0x48d9e9[_0x5a0315(0x19d)],')')));})),_0x394cbf;}function _0x3a95aa(_0x6c8ca,_0x19fea8){var _0x2e089a=_0x2b9481,_0x33ca85,_0x4f9255=_0x19fea8[_0x2e089a(0x14c)];return!_0x4f9255||_0x4f9255['length']===0x0?_0x6c8ca:_0x6c8ca[_0x2e089a(0x184)]==='defs'&&(!((_0x33ca85=_0x6c8ca['children'])===null||_0x33ca85===void 0x0)&&_0x33ca85[_0x2e089a(0xef)])?_0x1e6282(_0x1e6282({},_0x6c8ca),{'children':_0x6c8ca['children'][_0x2e089a(0xd2)](function(_0x3d5f14){var _0x108b2c=_0x2e089a;return typeof _0x3d5f14[_0x108b2c(0x100)]['id']==_0x108b2c(0x182)&&_0x4f9255&&_0x4f9255['includes'](_0x3d5f14[_0x108b2c(0x100)]['id'])?_0x1e6282(_0x1e6282({},_0x3d5f14),{'attrs':_0x1e6282(_0x1e6282({},_0x3d5f14[_0x108b2c(0x100)]),{'id':_0x3d5f14[_0x108b2c(0x100)]['id']+_0x19fea8['idSuffix']})}):_0x3d5f14;})}):_0x6c8ca;}function _0x2aa9fe(){var _0x49b4e1=_0x2b9481;return Math[_0x49b4e1(0x131)]()[_0x49b4e1(0xeb)](0x24)[_0x49b4e1(0xc8)](0x2,0x8);}_0x7eecb5['displayName']=_0x2b9481(0x115);var _0x57ca67={'tag':_0x2b9481(0xbd),'attrs':{'xmlns':_0x2b9481(0x18a),'fill':'none','viewBox':_0x2b9481(0x138),'width':_0x2b9481(0x12e),'height':'1em'},'children':[{'tag':_0x2b9481(0x173),'attrs':{'fill':_0x2b9481(0x16c),'d':_0x2b9481(0xcc)}},{'tag':_0x2b9481(0x173),'attrs':{'fill':_0x2b9481(0x16c),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x2b9481(0x123),'clipRule':_0x2b9481(0x123)}}]},_0x3c8585=_0x42fe5d['forwardRef'](function(_0x44c566,_0x219e08){var _0xca610a=_0x2b9481;return _0x42fe5d[_0xca610a(0xd9)](_0x7eecb5,Object[_0xca610a(0x179)]({},_0x44c566,{'id':_0xca610a(0x11c),'ref':_0x219e08,'icon':_0x57ca67}));});_0x3c8585[_0x2b9481(0x14d)]=_0x2b9481(0x13b);var _0x175efe=Object[_0x2b9481(0x1ad)],_0x2a54b9=(_0x5ac032,_0x212392,_0x6f03a,_0x24f315)=>{for(var _0x339cea=_0x24f315>0x1?void 0x0:_0x24f315?_0x175efe(_0x212392,_0x6f03a):_0x212392,_0x1531c7=_0x5ac032['length']-0x1,_0x4d6ea5;_0x1531c7>=0x0;_0x1531c7--)(_0x4d6ea5=_0x5ac032[_0x1531c7])&&(_0x339cea=_0x4d6ea5(_0x339cea)||_0x339cea);return _0x339cea;},_0x1ba595=(_0x2d6c00,_0x2aa6b5)=>(_0x1c1ae6,_0x3e8150)=>_0x2aa6b5(_0x1c1ae6,_0x3e8150,_0x2d6c00);_0x1abd0f['LiveShareController']=class extends _0x5766ef['RxDisposable']{constructor(_0x2e5a9e,_0x473a11,_0x1c304b){var _0x9c5deb=_0x2b9481;super(),_0x2e6a77(this,_0x9c5deb(0xf2),new Map()),(this['_univerInstanceService']=_0x2e5a9e,this['_injector']=_0x473a11,this[_0x9c5deb(0xf4)]=_0x1c304b,this[_0x9c5deb(0xe8)]());}async[_0x2b9481(0xc0)](_0x344fb8){var _0x1f4e4b=_0x2b9481;return this[_0x1f4e4b(0xf2)][_0x1f4e4b(0x185)](_0x344fb8)||await this[_0x1f4e4b(0x153)](_0x344fb8),this['_entities'][_0x1f4e4b(0x155)](_0x344fb8);}[_0x2b9481(0xe8)](){var _0x570700=_0x2b9481;this[_0x570700(0x119)]['getTypeOfUnitAdded$'](_0x5766ef[_0x570700(0xda)][_0x570700(0x176)])[_0x570700(0x19f)](_0x9db1d9[_0x570700(0xc9)](this[_0x570700(0x18c)]))[_0x570700(0x164)](async _0x3ddc15=>{var _0xe70503=_0x570700;const _0x51874b=_0x3ddc15[_0xe70503(0x1a1)]();this[_0xe70503(0xf2)][_0xe70503(0x185)](_0x51874b)||this[_0xe70503(0x153)](_0x51874b);}),this[_0x570700(0x119)][_0x570700(0x191)](_0x5766ef['UniverInstanceType'][_0x570700(0x176)])[_0x570700(0x19f)](_0x9db1d9['takeUntil'](this[_0x570700(0x18c)]))[_0x570700(0x164)](_0xe66a0d=>{var _0x3c67d5=_0x570700;const _0x1e6906=_0xe66a0d['getUnitId'](),_0xa80995=this['_entities'][_0x3c67d5(0x155)](_0x1e6906);_0xa80995==null||_0xa80995[_0x3c67d5(0x17d)]();});}async[_0x2b9481(0x153)](_0x173b17){var _0x484ad8=_0x2b9481;const _0x18f54f=await this[_0x484ad8(0xf4)][_0x484ad8(0xf5)](_0x173b17),_0x2e15fe=this[_0x484ad8(0x1aa)]['createInstance'](_0x1abd0f['LiveShareCoordinator'],_0x173b17,_0x18f54f);return _0x2e15fe['init'](),this['_entities']['set'](_0x173b17,_0x2e15fe),_0x2e15fe;}},_0x1abd0f[_0x2b9481(0xd7)]=_0x2a54b9([_0x1ba595(0x0,_0x5766ef[_0x2b9481(0x10f)]),_0x1ba595(0x1,_0x5766ef['Inject'](_0x5766ef['Injector'])),_0x1ba595(0x2,_0x5766ef[_0x2b9481(0x137)](_0x4a416d[_0x2b9481(0xf3)]))],_0x1abd0f[_0x2b9481(0xd7)]);var _0x1ab3d7=(_0x2528b2=>(_0x2528b2[_0x2b9481(0x122)]=_0x2b9481(0xd5),_0x2528b2[_0x2b9481(0x171)]=_0x2b9481(0xce),_0x2528b2['FOLLOWING']='following',_0x2528b2['NOT_FOLLOWING']='not-following',_0x2528b2[_0x2b9481(0x11b)]=_0x2b9481(0xff),_0x2528b2))(_0x1ab3d7||{});const _0x11196f='SAME_OPERATION_SHARE_INTERVAL',_0x2fec53=0xc8;_0x1abd0f[_0x2b9481(0x1ac)]=class extends _0x5766ef[_0x2b9481(0x16d)]{constructor(_0x123d7e,_0x4208bb,_0x2dbac1,_0x30e481,_0x69da64){var _0x1f3b06=_0x2b9481;super(),_0x2e6a77(this,_0x1f3b06(0x132),new _0x251619['BehaviorSubject'](_0x1f3b06(0xce))),_0x2e6a77(this,_0x1f3b06(0xf9),this['_status$'][_0x1f3b06(0x12d)]()),_0x2e6a77(this,_0x1f3b06(0xe8),!0x1),_0x2e6a77(this,_0x1f3b06(0xcf),null),_0x2e6a77(this,_0x1f3b06(0x14f),null),(this[_0x1f3b06(0xdc)]=_0x123d7e,this[_0x1f3b06(0x103)]=_0x4208bb,this[_0x1f3b06(0x178)]=_0x2dbac1,this['_liveShareService']=_0x30e481,this[_0x1f3b06(0x174)]=_0x69da64);}get[_0x2b9481(0x108)](){var _0x4b3e4b=_0x2b9481;return this[_0x4b3e4b(0x132)][_0x4b3e4b(0x117)]();}[_0x2b9481(0x17d)](){var _0x346d95=_0x2b9481,_0x5c650e;(_0x5c650e=this[_0x346d95(0xcf)])==null||_0x5c650e[_0x346d95(0x17d)](),this['_status$']['next'](_0x346d95(0xce)),this[_0x346d95(0x132)][_0x346d95(0x12c)]();}['init'](){var _0x5ae4cc=_0x2b9481;this[_0x5ae4cc(0xe8)]||(this[_0x5ae4cc(0xe8)]=!0x0,this[_0x5ae4cc(0x103)][_0x5ae4cc(0xc4)][_0x5ae4cc(0x19f)](_0x9db1d9[_0x5ae4cc(0xc9)](this[_0x5ae4cc(0x18c)]))[_0x5ae4cc(0x164)](_0x11f314=>{var _0x259c02=_0x5ae4cc;switch(_0x11f314){case _0x4a416d[_0x259c02(0x187)][_0x259c02(0x122)]:this[_0x259c02(0xd1)]();break;case _0x4a416d[_0x259c02(0x187)]['ONLINE']:this[_0x259c02(0x13f)]();break;}}),this['_collabSession']['event$'][_0x5ae4cc(0x19f)](_0x9db1d9[_0x5ae4cc(0xc9)](this['dispose$']))['subscribe'](_0x28d9c6=>{var _0x2a27b9=_0x5ae4cc;const {eventID:_0x435879}=_0x28d9c6;switch(_0x435879){case _0x5d049f[_0x2a27b9(0xba)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x28d9c6);break;case _0x5d049f[_0x2a27b9(0xba)][_0x2a27b9(0x12f)]:this[_0x2a27b9(0x15b)](_0x28d9c6);break;case _0x5d049f[_0x2a27b9(0xba)][_0x2a27b9(0xfd)]:this[_0x2a27b9(0x118)]();break;case _0x5d049f[_0x2a27b9(0xba)][_0x2a27b9(0x10b)]:this[_0x2a27b9(0xfa)](_0x28d9c6);break;}}));}['tryStartPresenting'](){var _0x3d734e=_0x2b9481;this[_0x3d734e(0x103)]['send']({'eventID':_0x5d049f['CollaborationEvent'][_0x3d734e(0x16a)],'data':{'unitID':this[_0x3d734e(0xdc)],'userID':this['_collabSession'][_0x3d734e(0x168)]()}},this['_unitID']);}[_0x2b9481(0x19e)](){var _0x40ad50=_0x2b9481;this[_0x40ad50(0x108)]==='presenting'&&(this[_0x40ad50(0x132)][_0x40ad50(0xf0)](_0x40ad50(0xce)),this['_collabSession'][_0x40ad50(0x127)]({'eventID':_0x5d049f[_0x40ad50(0xba)][_0x40ad50(0xfd)],'data':{'unitID':this[_0x40ad50(0xdc)]}},this[_0x40ad50(0xdc)]));}['startFollowing'](){var _0x13ca55=_0x2b9481;this[_0x13ca55(0x108)]===_0x13ca55(0xdb)&&(this[_0x13ca55(0x132)][_0x13ca55(0xf0)](_0x13ca55(0x17c)),this['_startFollowing']());}['stopFollowing'](){var _0x1526f0=_0x2b9481;this[_0x1526f0(0x108)]===_0x1526f0(0x17c)&&this[_0x1526f0(0x106)]();}[_0x2b9481(0xe1)](_0x2b44ca){var _0x666079=_0x2b9481;const {presenter:_0x938be4}=_0x2b44ca[_0x666079(0x120)],_0x3b5bfb=this['_collabSession'][_0x666079(0x168)]();this[_0x666079(0x14f)]=_0x938be4,_0x938be4===_0x3b5bfb?(this['_stopFollowing'](),this[_0x666079(0xdf)]()):this[_0x666079(0x108)]!=='not-following'&&(this['_stopPresenting'](),this[_0x666079(0x149)]());}[_0x2b9481(0x151)](){var _0xdc2f71=_0x2b9481;const _0x3531d9={'eventID':_0x5d049f[_0xdc2f71(0xba)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0xdc2f71(0x127)](_0x3531d9,this[_0xdc2f71(0xdc)]);}[_0x2b9481(0x118)](){var _0x6ef98d=_0x2b9481;this[_0x6ef98d(0x14f)]=null,this[_0x6ef98d(0x108)]!=='presenting'&&this['_beIdle']();}[_0x2b9481(0xfa)](_0x1b9cda){var _0x3bc97a=_0x2b9481;if(this['_status']==='following'&&this[_0x3bc97a(0x14f)]===_0x1b9cda[_0x3bc97a(0x120)]['memberID']){const _0x98ed26=_0x5d049f[_0x3bc97a(0x189)](_0x1b9cda[_0x3bc97a(0x120)])[_0x3bc97a(0x183)][_0x3bc97a(0xc1)]()['find'](_0x2993b2=>_0x2993b2['id']===_0x11b35b[_0x3bc97a(0x14b)]['id']);if(_0x98ed26){const _0x594209=_0x98ed26[_0x3bc97a(0xfc)][_0x3bc97a(0x166)],_0x1942f7=_0x98ed26[_0x3bc97a(0xfc)][_0x3bc97a(0x102)]['id'];setTimeout(()=>{var _0x43b6dc=_0x3bc97a;this[_0x43b6dc(0x174)][_0x43b6dc(0xdd)](_0x11b35b[_0x43b6dc(0x1a5)]['id'],{'unitId':_0x594209,'subUnitId':_0x1942f7},{'fromCollab':!0x0});});}}}[_0x2b9481(0xdf)](){var _0x28b226=_0x2b9481;this[_0x28b226(0x132)][_0x28b226(0xf0)](_0x28b226(0xff));const _0x1c8bf2=new Map(),_0x501975=this[_0x28b226(0xcf)]=new _0x5766ef[(_0x28b226(0x158))]();_0x501975[_0x28b226(0xc3)](_0x5766ef[_0x28b226(0x19b)](()=>{var _0x214548=_0x28b226;_0x1c8bf2[_0x214548(0x150)](_0x1e4aa0=>_0x1e4aa0[_0x214548(0x12c)]()),_0x1c8bf2[_0x214548(0x1a2)]();})),_0x501975['add'](this[_0x28b226(0x174)][_0x28b226(0x16b)](_0x11027e=>{var _0x593758=_0x28b226,_0x1056ac;if(_0x11027e[_0x593758(0xe2)]!==_0x5766ef[_0x593758(0xbe)][_0x593758(0xec)]||!this[_0x593758(0x152)]['shouldShareOperation'](_0x11027e['id']))return;const {id:_0x3d3c83}=_0x11027e;let _0x57a7bf;_0x1c8bf2[_0x593758(0x185)](_0x3d3c83)?_0x57a7bf=_0x1c8bf2['get'](_0x3d3c83):(_0x57a7bf=new _0x251619[(_0x593758(0x15c))](),_0x1c8bf2[_0x593758(0x169)](_0x3d3c83,_0x57a7bf),_0x57a7bf[_0x593758(0x19f)](_0x9db1d9[_0x593758(0x181)]((_0x1056ac=this['_configService'][_0x593758(0x17e)](_0x11196f))!=null?_0x1056ac:_0x2fec53,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x593758(0x164)](_0x22a642=>{var _0x415e8d=_0x593758;this[_0x415e8d(0x103)][_0x415e8d(0x127)]({'eventID':_0x5d049f[_0x415e8d(0xba)][_0x415e8d(0x12f)],'data':{'unitID':this[_0x415e8d(0xdc)],'operations':{[_0x22a642['id']]:{'id':_0x22a642['id'],'params':JSON[_0x415e8d(0xbc)](_0x22a642[_0x415e8d(0xfc)])}}}},this[_0x415e8d(0xdc)]);})),_0x57a7bf['next'](_0x11027e);})),this[_0x28b226(0x152)]['getInitialStates'](this[_0x28b226(0xdc)])[_0x28b226(0x150)](_0x23e24c=>this[_0x28b226(0x103)]['send']({'eventID':_0x5d049f['CollaborationEvent'][_0x28b226(0x12f)],'data':{'unitID':this[_0x28b226(0xdc)],'operations':{[_0x23e24c['id']]:{'id':_0x23e24c['id'],'params':JSON[_0x28b226(0xbc)](_0x23e24c[_0x28b226(0xfc)])}}}},this['_unitID']));}[_0x2b9481(0xf6)](){var _0x142e74=_0x2b9481,_0x253186;this[_0x142e74(0x132)][_0x142e74(0xf0)](_0x142e74(0xce)),(_0x253186=this[_0x142e74(0xcf)])==null||_0x253186[_0x142e74(0x17d)](),this['_commandDisposable']=null;}[_0x2b9481(0x149)](){var _0x4264b0=_0x2b9481,_0x542239;(_0x542239=this[_0x4264b0(0xcf)])==null||_0x542239['dispose'](),this[_0x4264b0(0x132)]['next'](_0x4264b0(0x17c));}[_0x2b9481(0x10d)](){var _0x27e7e6=_0x2b9481,_0x1027a5;this[_0x27e7e6(0x132)][_0x27e7e6(0xf0)]('idle'),(_0x1027a5=this[_0x27e7e6(0xcf)])==null||_0x1027a5[_0x27e7e6(0x17d)](),this[_0x27e7e6(0xcf)]=null;}['_stopFollowing'](){var _0x40df74=_0x2b9481,_0x3393a3;this[_0x40df74(0x132)][_0x40df74(0xf0)](_0x40df74(0xdb)),(_0x3393a3=this[_0x40df74(0xcf)])==null||_0x3393a3[_0x40df74(0x17d)]();}[_0x2b9481(0x15b)](_0x383f9f){var _0x193506=_0x2b9481;if(['presenting',_0x193506(0xdb),_0x193506(0xd5)][_0x193506(0x125)](this[_0x193506(0x108)])||!_0x383f9f[_0x193506(0x120)][_0x193506(0x17a)]||_0x383f9f[_0x193506(0x120)]['presenter']===this[_0x193506(0x103)][_0x193506(0x168)]())return;this[_0x193506(0x108)]===_0x193506(0xce)&&this[_0x193506(0x149)]();const _0x43077e=_0x383f9f[_0x193506(0x120)]['operations'];Object['values'](_0x43077e)[_0x193506(0x150)](_0x331a87=>{var _0x2eaf17=_0x193506;this['_commandService'][_0x2eaf17(0xdd)](_0x331a87['id'],_0x331a87[_0x2eaf17(0xfc)]?JSON['parse'](_0x331a87[_0x2eaf17(0xfc)]):null,{'fromCollab':!0x0});});}[_0x2b9481(0xd1)](){var _0x4792c3=_0x2b9481,_0x210fa8;this[_0x4792c3(0x132)][_0x4792c3(0xf0)](_0x4792c3(0xd5)),(_0x210fa8=this['_commandDisposable'])==null||_0x210fa8[_0x4792c3(0x17d)]();}[_0x2b9481(0x13f)](){var _0x3e9b14=_0x2b9481;this['_status$'][_0x3e9b14(0xf0)]('idle'),this[_0x3e9b14(0x151)]();}},_0x1abd0f[_0x2b9481(0x1ac)]=_0x2a54b9([_0x1ba595(0x2,_0x5766ef[_0x2b9481(0x192)]),_0x1ba595(0x3,_0x5766ef['Inject'](_0x526444)),_0x1ba595(0x4,_0x5766ef[_0x2b9481(0xfe)])],_0x1abd0f['LiveShareCoordinator']);function _0x72c79d(){var _0x33ecdf=_0x2b9481;const _0x239b8c=_0x40d51e[_0x33ecdf(0x197)](_0x1abd0f[_0x33ecdf(0xd7)]),_0x4b89c6=_0x40d51e[_0x33ecdf(0x197)](_0x5766ef[_0x33ecdf(0x10f)]),_0x422df1=_0x40d51e[_0x33ecdf(0x116)](()=>_0x4b89c6[_0x33ecdf(0x121)](_0x5766ef[_0x33ecdf(0xda)][_0x33ecdf(0x176)]),void 0x0,!0x1,[]),[_0x135fe1,_0x27aa43]=_0x42fe5d[_0x33ecdf(0x114)](null),[_0x36455e,_0x1425a4]=_0x42fe5d['useState'](_0x1ab3d7['IDLE']),_0x264d65=_0x42fe5d[_0x33ecdf(0xca)](null);return _0x42fe5d['useEffect'](()=>(_0x422df1&&_0x239b8c['getLiveShareCoordinator'](_0x422df1[_0x33ecdf(0x1a1)]())[_0x33ecdf(0xbf)](_0x5b65fb=>{_0x27aa43(_0x5b65fb),_0x264d65['current']=_0x5b65fb['status$']['subscribe'](_0x234139=>{_0x1425a4(_0x234139);});}),()=>{var _0x320ee2;(_0x320ee2=_0x264d65['current'])==null||_0x320ee2['unsubscribe'](),_0x264d65['current']=null;}),[_0x422df1,_0x239b8c]),_0x135fe1?_0x134631[_0x33ecdf(0x162)](_0x3b938d[_0x33ecdf(0x170)],{'align':_0x33ecdf(0x19c),'disabled':_0x36455e===_0x1ab3d7[_0x33ecdf(0x122)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x134631[_0x33ecdf(0x162)](_0x5d2d73,{'status':_0x36455e,'coordinator':_0x135fe1}),'children':_0x134631['jsx'](_0x33ecdf(0x195),{'className':_0x3b938d[_0x33ecdf(0xc7)](_0x33ecdf(0x190),{'univer-cursor-not-allowed':_0x36455e===_0x1ab3d7['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x36455e!==_0x1ab3d7['OFFLINE']}),'type':_0x33ecdf(0x195),'children':_0x134631[_0x33ecdf(0x162)](_0x3c8585,{'className':_0x33ecdf(0x128)})})}):null;}function _0x5d2d73(_0x285a85){var _0x98f20c=_0x2b9481;const {status:_0x30bd77,coordinator:_0x2e4ad8}=_0x285a85;switch(_0x30bd77){case _0x1ab3d7[_0x98f20c(0x171)]:return _0x134631[_0x98f20c(0x162)](_0x3fa052,{'coordinator':_0x2e4ad8});case _0x1ab3d7[_0x98f20c(0x1a4)]:return _0x134631[_0x98f20c(0x162)](_0x1b9002,{'coordinator':_0x2e4ad8});case _0x1ab3d7[_0x98f20c(0x10a)]:return _0x134631[_0x98f20c(0x162)](_0x58a760,{'coordinator':_0x2e4ad8});case _0x1ab3d7['OFFLINE']:return _0x134631[_0x98f20c(0x162)](_0xbf3229,{});case _0x1ab3d7[_0x98f20c(0x11b)]:return _0x134631[_0x98f20c(0x162)](_0x7e42e8,{'coordinator':_0x2e4ad8});default:return null;}}function _0x3fa052(_0x5d7b93){var _0x5de3e4=_0x2b9481;const {coordinator:_0x314686}=_0x5d7b93;return _0x134631['jsxs'](_0x134631['Fragment'],{'children':[_0x134631[_0x5de3e4(0x162)](_0x5de3e4(0x12a),{'className':_0x5de3e4(0x135),'children':_0x5de3e4(0xe6)}),_0x134631[_0x5de3e4(0x162)](_0x3b938d[_0x5de3e4(0x142)],{'onClick':()=>_0x314686[_0x5de3e4(0xe7)](),'children':_0x5de3e4(0x18e)})]});}function _0x1b9002(_0x232eec){var _0x13821e=_0x2b9481;const {coordinator:_0x433014}=_0x232eec;return _0x134631[_0x13821e(0x186)](_0x134631['Fragment'],{'children':[_0x134631[_0x13821e(0x162)](_0x13821e(0x12a),{'className':_0x13821e(0x135),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x134631['jsx'](_0x3b938d[_0x13821e(0x142)],{'onClick':()=>_0x433014['stopFollowing'](),'children':_0x13821e(0x12b)})]});}function _0x58a760(_0x2cbf75){var _0x3d6e1e=_0x2b9481;const {coordinator:_0x233434}=_0x2cbf75;return _0x134631[_0x3d6e1e(0x186)](_0x134631[_0x3d6e1e(0x1a7)],{'children':[_0x134631[_0x3d6e1e(0x162)](_0x3d6e1e(0x12a),{'className':_0x3d6e1e(0x135),'children':_0x3d6e1e(0x14e)}),_0x134631[_0x3d6e1e(0x162)](_0x3b938d[_0x3d6e1e(0x142)],{'variant':_0x3d6e1e(0x113),'onClick':()=>_0x233434[_0x3d6e1e(0xd4)](),'children':'Start\x20following'})]});}function _0x7e42e8(_0xb1e76){var _0x436bb1=_0x2b9481;const {coordinator:_0xd6baaf}=_0xb1e76;return _0x134631[_0x436bb1(0x186)](_0x134631['Fragment'],{'children':[_0x134631['jsx'](_0x436bb1(0x12a),{'className':_0x436bb1(0x135),'children':_0x436bb1(0x130)}),_0x134631[_0x436bb1(0x162)](_0x3b938d[_0x436bb1(0x142)],{'variant':_0x436bb1(0xcd),'onClick':()=>_0xd6baaf[_0x436bb1(0x19e)](),'children':_0x436bb1(0x143)})]});}function _0xbf3229(){var _0x4240b7=_0x2b9481;return _0x134631[_0x4240b7(0x162)](_0x134631[_0x4240b7(0x1a7)],{'children':_0x4240b7(0x157)});}var _0x1143a0=Object[_0x2b9481(0x1ad)],_0x2bf8a4=(_0x4bcac1,_0x48bc0c,_0xd094fb,_0x1005aa)=>{var _0x599a42=_0x2b9481;for(var _0x1e3454=_0x1005aa>0x1?void 0x0:_0x1005aa?_0x1143a0(_0x48bc0c,_0xd094fb):_0x48bc0c,_0x3b7887=_0x4bcac1[_0x599a42(0xef)]-0x1,_0x1fcaf3;_0x3b7887>=0x0;_0x3b7887--)(_0x1fcaf3=_0x4bcac1[_0x3b7887])&&(_0x1e3454=_0x1fcaf3(_0x1e3454)||_0x1e3454);return _0x1e3454;},_0x51632d=(_0x6c4a8e,_0x1dbb9b)=>(_0x2f9022,_0x370f5b)=>_0x1dbb9b(_0x2f9022,_0x370f5b,_0x6c4a8e);_0x1abd0f[_0x2b9481(0x167)]=class extends _0x5766ef[_0x2b9481(0xc5)]{constructor(_0x1aaf69,_0x34f5c6){var _0x43027a=_0x2b9481;super(),this['_injector']=_0x1aaf69,this[_0x43027a(0x156)]=_0x34f5c6,this['_mountLiveShare']();}[_0x2b9481(0x193)](){var _0x5e08de=_0x2b9481;this[_0x5e08de(0x136)](this[_0x5e08de(0x156)]['registerComponent'](_0x40d51e[_0x5e08de(0x154)][_0x5e08de(0x105)],()=>_0x40d51e[_0x5e08de(0x16f)](_0x72c79d,this['_injector'])));}},_0x1abd0f[_0x2b9481(0x167)]=_0x2bf8a4([_0x51632d(0x0,_0x5766ef[_0x2b9481(0x137)](_0x5766ef[_0x2b9481(0x1ab)])),_0x51632d(0x1,_0x40d51e['IUIPartsService'])],_0x1abd0f[_0x2b9481(0x167)]);var _0x459af6=Object[_0x2b9481(0x13c)],_0x4ad8cd=Object[_0x2b9481(0x1ad)],_0xed0ab1=(_0x3c0b43,_0x4e497a,_0x162ca4)=>_0x4e497a in _0x3c0b43?_0x459af6(_0x3c0b43,_0x4e497a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x162ca4}):_0x3c0b43[_0x4e497a]=_0x162ca4,_0x214d42=(_0x2544bf,_0x3b7b71,_0x2cd518,_0x4787de)=>{var _0xeefdf8=_0x2b9481;for(var _0xb589b=_0x4787de>0x1?void 0x0:_0x4787de?_0x4ad8cd(_0x3b7b71,_0x2cd518):_0x3b7b71,_0x95e41f=_0x2544bf[_0xeefdf8(0xef)]-0x1,_0x2bf06d;_0x95e41f>=0x0;_0x95e41f--)(_0x2bf06d=_0x2544bf[_0x95e41f])&&(_0xb589b=_0x2bf06d(_0xb589b)||_0xb589b);return _0xb589b;},_0x711649=(_0x194074,_0xc0e6d2)=>(_0x1852ff,_0x1dcb6b)=>_0xc0e6d2(_0x1852ff,_0x1dcb6b,_0x194074),_0x42146e=(_0x200829,_0x3bccb4,_0x585cdd)=>_0xed0ab1(_0x200829,typeof _0x3bccb4!=_0x2b9481(0xbb)?_0x3bccb4+'':_0x3bccb4,_0x585cdd);const _0x4c8b53=_0x2b9481(0xe4);_0x1abd0f[_0x2b9481(0xed)]=class extends _0x5766ef[_0x2b9481(0x16e)]{constructor(_0x3a59cd=_0x5cd80b,_0x5ae4c8,_0x1355de){var _0x567656=_0x2b9481;super(),this[_0x567656(0x101)]=_0x3a59cd,this[_0x567656(0x1aa)]=_0x5ae4c8,this['_configService']=_0x1355de;const {..._0x29c58e}=_0x5766ef[_0x567656(0x15a)]({},_0x5cd80b,this['_config']);this['_configService'][_0x567656(0x18f)](_0x14cb19,_0x29c58e);}[_0x2b9481(0x133)](){var _0x3896b3=_0x2b9481;_0x5766ef['registerDependencies'](this[_0x3896b3(0x1aa)],_0x5766ef[_0x3896b3(0x10c)]([[_0x526444],[_0x1abd0f[_0x3896b3(0xd7)]],[_0x54c2ee],[_0x1abd0f['DesktopLiveShareController']]],this[_0x3896b3(0x101)]['override'])),_0x5766ef['touchDependencies'](this[_0x3896b3(0x1aa)],[[_0x54c2ee]]);}[_0x2b9481(0x134)](){var _0x1fc37d=_0x2b9481;_0x5766ef[_0x1fc37d(0x11f)](this['_injector'],[[_0x1abd0f['DesktopLiveShareController']]]);}},_0x42146e(_0x1abd0f[_0x2b9481(0xed)],_0x2b9481(0xe2),_0x5766ef['UniverInstanceType'][_0x2b9481(0x194)]),_0x42146e(_0x1abd0f[_0x2b9481(0xed)],_0x2b9481(0xe9),_0x4c8b53),_0x1abd0f['UniverLiveSharePlugin']=_0x214d42([_0x5766ef['DependentOn'](_0x4a416d[_0x2b9481(0x15f)]),_0x711649(0x1,_0x5766ef['Inject'](_0x5766ef[_0x2b9481(0x1ab)])),_0x711649(0x2,_0x5766ef[_0x2b9481(0x192)])],_0x1abd0f[_0x2b9481(0xed)]),_0x1abd0f[_0x2b9481(0x14a)]=_0x72c79d,_0x1abd0f[_0x2b9481(0x196)]=_0x526444,_0x1abd0f['LiveShareStatus']=_0x1ab3d7,Object[_0x2b9481(0x13c)](_0x1abd0f,Symbol['toStringTag'],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.1-nightly.
|
|
3
|
+
"version": "0.8.1-nightly.202506181607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.1-nightly.
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets": "0.8.1-nightly.
|
|
54
|
-
"@univerjs/sheets
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.8.1-nightly.202506181607",
|
|
51
|
+
"@univerjs/core": "0.8.1-nightly.202506181607",
|
|
52
|
+
"@univerjs/design": "0.8.1-nightly.202506181607",
|
|
53
|
+
"@univerjs/sheets-ui": "0.8.1-nightly.202506181607",
|
|
54
|
+
"@univerjs/sheets": "0.8.1-nightly.202506181607",
|
|
55
|
+
"@univerjs/ui": "0.8.1-nightly.202506181607",
|
|
56
|
+
"@univerjs-pro/collaboration": "0.8.1-nightly.202506181607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.5",
|