@univerjs-pro/live-share 0.10.7 → 0.10.8-nightly.202509200616

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x6f8def=_0x2d99;(function(_0x4cab8f,_0x3b24e0){var _0xcd93ea=_0x2d99,_0x374c37=_0x4cab8f();while(!![]){try{var _0x523820=-parseInt(_0xcd93ea(0xa1))/0x1+-parseInt(_0xcd93ea(0x136))/0x2+parseInt(_0xcd93ea(0x126))/0x3+-parseInt(_0xcd93ea(0xf7))/0x4*(-parseInt(_0xcd93ea(0x124))/0x5)+parseInt(_0xcd93ea(0xa9))/0x6+parseInt(_0xcd93ea(0xdf))/0x7+parseInt(_0xcd93ea(0x14b))/0x8;if(_0x523820===_0x3b24e0)break;else _0x374c37['push'](_0x374c37['shift']());}catch(_0x4157e2){_0x374c37['push'](_0x374c37['shift']());}}}(_0x2397,0x3b6f6));var U=Object[_0x6f8def(0xe7)],F=(_0x2c68f5,_0x1c3011,_0x5dbc2c)=>_0x1c3011 in _0x2c68f5?U(_0x2c68f5,_0x1c3011,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dbc2c}):_0x2c68f5[_0x1c3011]=_0x5dbc2c,v=(_0x327d49,_0x38c518,_0x2a3f9a)=>F(_0x327d49,typeof _0x38c518!=_0x6f8def(0x10c)?_0x38c518+'':_0x38c518,_0x2a3f9a);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x6f8def(0x155)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x5f1902=_0x6f8def;return u=Object[_0x5f1902(0xe0)]||function(_0x2e681f){var _0x5db684=_0x5f1902;for(var _0xc3b82c,_0x112164=0x1,_0x454fff=arguments[_0x5db684(0x14a)];_0x112164<_0x454fff;_0x112164++){_0xc3b82c=arguments[_0x112164];for(var _0x23c51b in _0xc3b82c)Object['prototype'][_0x5db684(0xb6)]['call'](_0xc3b82c,_0x23c51b)&&(_0x2e681f[_0x23c51b]=_0xc3b82c[_0x23c51b]);}return _0x2e681f;},u['apply'](this,arguments);},$=function(_0x4ee4e1,_0x1d9e9f){var _0x477b6c=_0x6f8def,_0x224695={};for(var _0x263e92 in _0x4ee4e1)Object[_0x477b6c(0x121)][_0x477b6c(0xb6)][_0x477b6c(0xd0)](_0x4ee4e1,_0x263e92)&&_0x1d9e9f['indexOf'](_0x263e92)<0x0&&(_0x224695[_0x263e92]=_0x4ee4e1[_0x263e92]);if(_0x4ee4e1!=null&&typeof Object[_0x477b6c(0x11a)]==_0x477b6c(0xcf)){for(var _0x503955=0x0,_0x263e92=Object[_0x477b6c(0x11a)](_0x4ee4e1);_0x503955<_0x263e92['length'];_0x503955++)_0x1d9e9f[_0x477b6c(0x154)](_0x263e92[_0x503955])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x4ee4e1,_0x263e92[_0x503955])&&(_0x224695[_0x263e92[_0x503955]]=_0x4ee4e1[_0x263e92[_0x503955]]);}return _0x224695;},j=f['forwardRef'](function(_0x18c267,_0x5cbaa2){var _0xf1b515=_0x6f8def,_0xf51955=_0x18c267['icon'],_0x3819b2=_0x18c267['id'],_0x27d744=_0x18c267['className'],_0x506aa5=_0x18c267[_0xf1b515(0x119)],_0x8624c0=$(_0x18c267,['icon','id',_0xf1b515(0xbe),_0xf1b515(0x119)]),_0x18023f=_0xf1b515(0xd8)[_0xf1b515(0xa7)](_0x3819b2,'\x20')['concat'](_0x27d744||'')[_0xf1b515(0xcc)](),_0x42956e=f[_0xf1b515(0x135)]('_'[_0xf1b515(0xa7)](k()));return y(_0xf51955,''['concat'](_0x3819b2),{'defIds':_0xf51955[_0xf1b515(0xed)],'idSuffix':_0x42956e[_0xf1b515(0x13a)]},u({'ref':_0x5cbaa2,'className':_0x18023f},_0x8624c0),_0x506aa5);});function y(_0x1f4285,_0x48125c,_0x47f4f4,_0x37dac8,_0xa3d5be){var _0x164a68=_0x6f8def;return f[_0x164a68(0x93)](_0x1f4285['tag'],u(u({'key':_0x48125c},H(_0x1f4285,_0x47f4f4,_0xa3d5be)),_0x37dac8),(V(_0x1f4285,_0x47f4f4)['children']||[])['map'](function(_0xc277c0,_0x4d4f9c){var _0x4d7ec7=_0x164a68;return y(_0xc277c0,''['concat'](_0x48125c,'-')['concat'](_0x1f4285[_0x4d7ec7(0xf6)],'-')['concat'](_0x4d4f9c),_0x47f4f4,void 0x0,_0xa3d5be);}));}function H(_0x18f689,_0x232e92,_0x2ab98c){var _0x5f0012=_0x6f8def,_0x22a209=u({},_0x18f689[_0x5f0012(0x145)]);_0x2ab98c!=null&&_0x2ab98c['colorChannel1']&&_0x22a209[_0x5f0012(0x133)]==='colorChannel1'&&(_0x22a209[_0x5f0012(0x133)]=_0x2ab98c[_0x5f0012(0xf0)]),_0x18f689[_0x5f0012(0xf6)]==='mask'&&_0x22a209['id']&&(_0x22a209['id']=_0x22a209['id']+_0x232e92['idSuffix']),Object[_0x5f0012(0xb9)](_0x22a209)[_0x5f0012(0xb3)](function(_0x4a8d4f){var _0x1cb32d=_0x5f0012,_0x4f0d43=_0x4a8d4f[0x0],_0x3821c7=_0x4a8d4f[0x1];_0x4f0d43===_0x1cb32d(0xeb)&&typeof _0x3821c7==_0x1cb32d(0xd1)&&(_0x22a209[_0x4f0d43]=_0x3821c7[_0x1cb32d(0x12a)](/url\(#(.*)\)/,_0x1cb32d(0xba)[_0x1cb32d(0xa7)](_0x232e92[_0x1cb32d(0xdd)],')')));});var _0x118de8=_0x232e92[_0x5f0012(0xed)];return!_0x118de8||_0x118de8[_0x5f0012(0x14a)]===0x0||(_0x18f689['tag']==='use'&&_0x22a209[_0x5f0012(0x110)]&&(_0x22a209['xlink:href']=_0x22a209['xlink:href']+_0x232e92[_0x5f0012(0xdd)]),Object['entries'](_0x22a209)['forEach'](function(_0x3d1b59){var _0x236108=_0x5f0012,_0x51debe=_0x3d1b59[0x0],_0x53c05d=_0x3d1b59[0x1];typeof _0x53c05d==_0x236108(0xd1)&&(_0x22a209[_0x51debe]=_0x53c05d[_0x236108(0x12a)](/url\(#(.*)\)/,_0x236108(0xba)['concat'](_0x232e92[_0x236108(0xdd)],')')));})),_0x22a209;}function V(_0x3b39b0,_0x30ea24){var _0xd16240=_0x6f8def,_0x39b0ea,_0x10e535=_0x30ea24[_0xd16240(0xed)];return!_0x10e535||_0x10e535['length']===0x0?_0x3b39b0:_0x3b39b0[_0xd16240(0xf6)]===_0xd16240(0x11e)&&(!((_0x39b0ea=_0x3b39b0[_0xd16240(0xcb)])===null||_0x39b0ea===void 0x0)&&_0x39b0ea['length'])?u(u({},_0x3b39b0),{'children':_0x3b39b0[_0xd16240(0xcb)]['map'](function(_0x2a1881){var _0x2fdebf=_0xd16240;return typeof _0x2a1881['attrs']['id']==_0x2fdebf(0xd1)&&_0x10e535&&_0x10e535['includes'](_0x2a1881[_0x2fdebf(0x145)]['id'])?u(u({},_0x2a1881),{'attrs':u(u({},_0x2a1881[_0x2fdebf(0x145)]),{'id':_0x2a1881['attrs']['id']+_0x30ea24[_0x2fdebf(0xdd)]})}):_0x2a1881;})}):_0x3b39b0;}function k(){var _0x384d6d=_0x6f8def;return Math[_0x384d6d(0x131)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x6f8def(0x10b)]=_0x6f8def(0x8e);var M={'tag':_0x6f8def(0x120),'attrs':{'xmlns':_0x6f8def(0x150),'fill':_0x6f8def(0x11c),'viewBox':_0x6f8def(0xbb),'width':'1em','height':_0x6f8def(0xf3)},'children':[{'tag':_0x6f8def(0xa5),'attrs':{'fill':_0x6f8def(0xbd),'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':_0x6f8def(0xa5),'attrs':{'fill':_0x6f8def(0xbd),'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':'evenodd','clipRule':_0x6f8def(0xea)}}]},P=f[_0x6f8def(0x7f)](function(_0x12b884,_0x3042d9){var _0x48e46f=_0x6f8def;return f['createElement'](j,Object[_0x48e46f(0xe0)]({},_0x12b884,{'id':_0x48e46f(0x134),'ref':_0x3042d9,'icon':M}));});P['displayName']=_0x6f8def(0x90);function _0x2d99(_0x2603c,_0x3946e2){var _0x239782=_0x2397();return _0x2d99=function(_0x2d99ad,_0x4bf672){_0x2d99ad=_0x2d99ad-0x7f;var _0x2a9f8e=_0x239782[_0x2d99ad];return _0x2a9f8e;},_0x2d99(_0x2603c,_0x3946e2);}class O extends o['Disposable']{constructor(){var _0x3d7a0c=_0x6f8def;super(...arguments),v(this,_0x3d7a0c(0xfd),new Set()),v(this,_0x3d7a0c(0x125),new Set());}['registerSharedOperation'](_0xde64fc){var _0x4dbae5=_0x6f8def;return this[_0x4dbae5(0xfd)][_0x4dbae5(0xc9)](_0xde64fc),o['toDisposable'](()=>this[_0x4dbae5(0xfd)][_0x4dbae5(0x14c)](_0xde64fc));}[_0x6f8def(0xb0)](_0x7acb3e){var _0x2ba05e=_0x6f8def;return this['_reporters']['add'](_0x7acb3e),o['toDisposable'](()=>this[_0x2ba05e(0x125)][_0x2ba05e(0x14c)](_0x7acb3e));}[_0x6f8def(0x13e)](_0x2f5254){var _0x45042e=_0x6f8def;return this[_0x45042e(0xfd)][_0x45042e(0xb8)](_0x2f5254);}[_0x6f8def(0xe4)](_0x3d7432){var _0x35ac07=_0x6f8def;return Array[_0x35ac07(0x111)](this['_reporters'])[_0x35ac07(0x9d)](_0x56928d=>_0x56928d(_0x3d7432));}}var q=Object[_0x6f8def(0x10a)],R=(_0x58f6a8,_0x4a0c06,_0x4d0d89,_0x281afd)=>{var _0x4de7b9=_0x6f8def;for(var _0x47a87b=_0x281afd>0x1?void 0x0:_0x281afd?q(_0x4a0c06,_0x4d0d89):_0x4a0c06,_0x41ee42=_0x58f6a8[_0x4de7b9(0x14a)]-0x1,_0x35d874;_0x41ee42>=0x0;_0x41ee42--)(_0x35d874=_0x58f6a8[_0x41ee42])&&(_0x47a87b=_0x35d874(_0x47a87b)||_0x47a87b);return _0x47a87b;},S=(_0x5f2f08,_0x56d4ee)=>(_0x593932,_0x30ff4b)=>_0x56d4ee(_0x593932,_0x30ff4b,_0x5f2f08);exports[_0x6f8def(0x14f)]=class extends o[_0x6f8def(0x9b)]{constructor(_0x58af6c,_0x668276,_0x18a448){var _0x5899ac=_0x6f8def;super(),v(this,_0x5899ac(0xc8),new Map()),(this[_0x5899ac(0xb2)]=_0x58af6c,this[_0x5899ac(0xe6)]=_0x668276,this[_0x5899ac(0xc7)]=_0x18a448,this['_init']());}async[_0x6f8def(0xb5)](_0x15ab4a){var _0x571a5f=_0x6f8def;return this['_entities'][_0x571a5f(0xb8)](_0x15ab4a)||await this[_0x571a5f(0x151)](_0x15ab4a),this['_entities'][_0x571a5f(0x14e)](_0x15ab4a);}[_0x6f8def(0x148)](){var _0x247676=_0x6f8def;this['_univerInstanceService'][_0x247676(0x138)](o[_0x247676(0xab)][_0x247676(0x149)])[_0x247676(0x129)](b[_0x247676(0x140)](this[_0x247676(0x130)]))[_0x247676(0xc6)](async _0xffad19=>{var _0x49525c=_0x247676;const _0x4ddf90=_0xffad19[_0x49525c(0xfb)]();this['_entities'][_0x49525c(0xb8)](_0x4ddf90)||this[_0x49525c(0x151)](_0x4ddf90);}),this[_0x247676(0xb2)][_0x247676(0x103)](o[_0x247676(0xab)][_0x247676(0x149)])[_0x247676(0x129)](b['takeUntil'](this[_0x247676(0x130)]))[_0x247676(0xc6)](_0x4333c4=>{var _0x13a035=_0x247676;const _0x248907=_0x4333c4['getUnitId'](),_0x1e81e6=this[_0x13a035(0xc8)][_0x13a035(0x14e)](_0x248907);_0x1e81e6==null||_0x1e81e6['dispose']();});}async[_0x6f8def(0x151)](_0x25d7b2){var _0x1e8d64=_0x6f8def;const _0x3660a9=await this[_0x1e8d64(0xc7)]['requireSession'](_0x25d7b2),_0x38b3f8=this[_0x1e8d64(0xe6)][_0x1e8d64(0xac)](exports['LiveShareCoordinator'],_0x25d7b2,_0x3660a9);return _0x38b3f8[_0x1e8d64(0xd5)](),this[_0x1e8d64(0xc8)][_0x1e8d64(0x143)](_0x25d7b2,_0x38b3f8),_0x38b3f8;}},exports[_0x6f8def(0x14f)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x6f8def(0xce)](o['Injector'])),S(0x2,o[_0x6f8def(0xce)](m[_0x6f8def(0x109)]))],exports[_0x6f8def(0x14f)]);var h=(_0x399b4f=>(_0x399b4f[_0x6f8def(0xa8)]='offline',_0x399b4f[_0x6f8def(0xd4)]=_0x6f8def(0xd9),_0x399b4f[_0x6f8def(0xe9)]=_0x6f8def(0xfc),_0x399b4f[_0x6f8def(0x84)]=_0x6f8def(0x11d),_0x399b4f[_0x6f8def(0x146)]=_0x6f8def(0x132),_0x399b4f))(h||{});const W=_0x6f8def(0xf5),G=0xc8;exports['LiveShareCoordinator']=class extends o[_0x6f8def(0x9b)]{constructor(_0x1e290d,_0x419268,_0x23960d,_0x1755f0,_0x5cde15){var _0x2b49a5=_0x6f8def;super(),v(this,_0x2b49a5(0xfa),new w[(_0x2b49a5(0x100))](_0x2b49a5(0xd9))),v(this,_0x2b49a5(0xc2),this[_0x2b49a5(0xfa)][_0x2b49a5(0xb1)]()),v(this,_0x2b49a5(0x148),!0x1),v(this,_0x2b49a5(0x147),null),v(this,_0x2b49a5(0xf1),null),(this[_0x2b49a5(0x10e)]=_0x1e290d,this[_0x2b49a5(0x8a)]=_0x419268,this['_configService']=_0x23960d,this[_0x2b49a5(0x12f)]=_0x1755f0,this[_0x2b49a5(0x139)]=_0x5cde15);}get[_0x6f8def(0x127)](){var _0x23f93f=_0x6f8def;return this[_0x23f93f(0xfa)][_0x23f93f(0xa6)]();}[_0x6f8def(0x14d)](){var _0x45183e=_0x6f8def,_0xf1e07b;(_0xf1e07b=this[_0x45183e(0x147)])==null||_0xf1e07b[_0x45183e(0x14d)](),this[_0x45183e(0xfa)]['next']('idle'),this[_0x45183e(0xfa)]['complete']();}['init'](){var _0x5d7da4=_0x6f8def;this[_0x5d7da4(0x148)]||(this[_0x5d7da4(0x148)]=!0x0,this['_collabSession'][_0x5d7da4(0xa4)][_0x5d7da4(0x129)](b[_0x5d7da4(0x140)](this[_0x5d7da4(0x130)]))[_0x5d7da4(0xc6)](_0x16776e=>{var _0x285b27=_0x5d7da4;switch(_0x16776e){case m['SessionStatus'][_0x285b27(0xa8)]:this[_0x285b27(0xd3)]();break;case m['SessionStatus'][_0x285b27(0xa3)]:this[_0x285b27(0xaa)]();break;}}),this['_collabSession'][_0x5d7da4(0xda)][_0x5d7da4(0x129)](b['takeUntil'](this[_0x5d7da4(0x130)]))['subscribe'](_0x127aa5=>{var _0x69a692=_0x5d7da4;const {eventID:_0x22be7b}=_0x127aa5;switch(_0x22be7b){case _[_0x69a692(0xc0)][_0x69a692(0x12d)]:this[_0x69a692(0xbc)](_0x127aa5);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x127aa5);break;case _['CollaborationEvent'][_0x69a692(0x11f)]:this['_handleTerminate']();break;case _[_0x69a692(0xc0)][_0x69a692(0x101)]:this[_0x69a692(0x88)](_0x127aa5);break;}}));}[_0x6f8def(0x122)](){var _0x25c976=_0x6f8def;this['_collabSession'][_0x25c976(0xae)]({'eventID':_[_0x25c976(0xc0)][_0x25c976(0xde)],'data':{'unitID':this[_0x25c976(0x10e)],'userID':this['_collabSession'][_0x25c976(0x141)]()}},this[_0x25c976(0x10e)]);}[_0x6f8def(0x108)](){var _0x45e7a0=_0x6f8def;this[_0x45e7a0(0x127)]==='presenting'&&(this[_0x45e7a0(0xfa)][_0x45e7a0(0x118)]('idle'),this['_collabSession'][_0x45e7a0(0xae)]({'eventID':_[_0x45e7a0(0xc0)][_0x45e7a0(0x11f)],'data':{'unitID':this[_0x45e7a0(0x10e)]}},this['_unitID']));}[_0x6f8def(0xd2)](){var _0x16e689=_0x6f8def;this[_0x16e689(0x127)]===_0x16e689(0x11d)&&(this[_0x16e689(0xfa)]['next'](_0x16e689(0xfc)),this[_0x16e689(0x114)]());}[_0x6f8def(0x13d)](){var _0x17a06a=_0x6f8def;this[_0x17a06a(0x127)]==='following'&&this[_0x17a06a(0x13b)]();}['_handleNewHost'](_0x3123b5){var _0x5b8470=_0x6f8def;const {presenter:_0x148f8c}=_0x3123b5[_0x5b8470(0x99)],_0xeef51=this[_0x5b8470(0x8a)]['getMemberID']();this[_0x5b8470(0xf1)]=_0x148f8c,_0x148f8c===_0xeef51?(this[_0x5b8470(0x13b)](),this[_0x5b8470(0xbf)]()):this[_0x5b8470(0x127)]!=='not-following'&&(this[_0x5b8470(0x12e)](),this[_0x5b8470(0x114)]());}[_0x6f8def(0xdb)](){var _0x4dee20=_0x6f8def;const _0x5b0677={'eventID':_[_0x4dee20(0xc0)][_0x4dee20(0xb7)]};this[_0x4dee20(0x8a)]['send'](_0x5b0677,this[_0x4dee20(0x10e)]);}[_0x6f8def(0x83)](){var _0x288b73=_0x6f8def;this[_0x288b73(0xf1)]=null,this[_0x288b73(0x127)]!==_0x288b73(0x132)&&this[_0x288b73(0xf2)]();}[_0x6f8def(0x88)](_0x49a554){var _0x34c93b=_0x6f8def;if(this['_status']===_0x34c93b(0xfc)&&this[_0x34c93b(0xf1)]===_0x49a554[_0x34c93b(0x99)]['memberID']){const _0x41ef89=_['parseProtocolChangeset'](_0x49a554['data'])[_0x34c93b(0xcd)][_0x34c93b(0x95)]()[_0x34c93b(0xf4)](_0x3cf817=>_0x3cf817['id']===C['InsertSheetMutation']['id']);if(_0x41ef89){const _0x3fb584=_0x41ef89['params'][_0x34c93b(0x128)],_0x595a26=_0x41ef89[_0x34c93b(0x102)][_0x34c93b(0x112)]['id'];setTimeout(()=>{var _0x59b6a2=_0x34c93b;this['_commandService']['executeCommand'](C[_0x59b6a2(0x137)]['id'],{'unitId':_0x3fb584,'subUnitId':_0x595a26},{'fromCollab':!0x0});});}}}[_0x6f8def(0xbf)](){var _0x42895e=_0x6f8def;this['_status$'][_0x42895e(0x118)]('presenting');const _0x172c58=new Map(),_0x3ca7dd=this[_0x42895e(0x147)]=new o['DisposableCollection']();_0x3ca7dd[_0x42895e(0xc9)](o[_0x42895e(0x142)](()=>{var _0xb19cb9=_0x42895e;_0x172c58[_0xb19cb9(0xb3)](_0x929852=>_0x929852[_0xb19cb9(0xd6)]()),_0x172c58[_0xb19cb9(0x82)]();})),_0x3ca7dd[_0x42895e(0xc9)](this[_0x42895e(0x139)][_0x42895e(0xef)](_0x25adca=>{var _0x35f3f0=_0x42895e,_0x153b2d;if(_0x25adca[_0x35f3f0(0x13c)]!==o[_0x35f3f0(0x80)][_0x35f3f0(0x92)]||!this[_0x35f3f0(0x12f)][_0x35f3f0(0x13e)](_0x25adca['id']))return;const {id:_0xcd20ae}=_0x25adca;let _0x38863e;_0x172c58[_0x35f3f0(0xb8)](_0xcd20ae)?_0x38863e=_0x172c58[_0x35f3f0(0x14e)](_0xcd20ae):(_0x38863e=new w['Subject'](),_0x172c58[_0x35f3f0(0x143)](_0xcd20ae,_0x38863e),_0x38863e['pipe'](b[_0x35f3f0(0x85)]((_0x153b2d=this[_0x35f3f0(0x115)][_0x35f3f0(0xc3)](W))!=null?_0x153b2d:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x35f3f0(0xc6)](_0x1891e1=>{var _0x226ab0=_0x35f3f0;this[_0x226ab0(0x8a)][_0x226ab0(0xae)]({'eventID':_[_0x226ab0(0xc0)][_0x226ab0(0x81)],'data':{'unitID':this[_0x226ab0(0x10e)],'operations':{[_0x1891e1['id']]:{'id':_0x1891e1['id'],'params':JSON[_0x226ab0(0xf9)](_0x1891e1[_0x226ab0(0x102)])}}}},this[_0x226ab0(0x10e)]);})),_0x38863e[_0x35f3f0(0x118)](_0x25adca);})),this[_0x42895e(0x12f)]['getInitialStates'](this['_unitID'])[_0x42895e(0xb3)](_0x30a003=>this['_collabSession'][_0x42895e(0xae)]({'eventID':_[_0x42895e(0xc0)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x42895e(0x10e)],'operations':{[_0x30a003['id']]:{'id':_0x30a003['id'],'params':JSON[_0x42895e(0xf9)](_0x30a003[_0x42895e(0x102)])}}}},this[_0x42895e(0x10e)]));}[_0x6f8def(0x12e)](){var _0x1c863d=_0x6f8def,_0x43e220;this[_0x1c863d(0xfa)][_0x1c863d(0x118)](_0x1c863d(0xd9)),(_0x43e220=this[_0x1c863d(0x147)])==null||_0x43e220[_0x1c863d(0x14d)](),this[_0x1c863d(0x147)]=null;}[_0x6f8def(0x114)](){var _0x3078bd=_0x6f8def,_0x53316e;(_0x53316e=this[_0x3078bd(0x147)])==null||_0x53316e[_0x3078bd(0x14d)](),this['_status$'][_0x3078bd(0x118)](_0x3078bd(0xfc));}[_0x6f8def(0xf2)](){var _0x340fef=_0x6f8def,_0x133b5d;this[_0x340fef(0xfa)]['next'](_0x340fef(0xd9)),(_0x133b5d=this[_0x340fef(0x147)])==null||_0x133b5d[_0x340fef(0x14d)](),this[_0x340fef(0x147)]=null;}['_stopFollowing'](){var _0x5aaed6=_0x6f8def,_0x527da5;this[_0x5aaed6(0xfa)]['next']('not-following'),(_0x527da5=this[_0x5aaed6(0x147)])==null||_0x527da5[_0x5aaed6(0x14d)]();}[_0x6f8def(0xad)](_0x5f0201){var _0x3fe001=_0x6f8def;if([_0x3fe001(0x132),_0x3fe001(0x11d),_0x3fe001(0x13f)][_0x3fe001(0x10d)](this[_0x3fe001(0x127)])||!_0x5f0201['data'][_0x3fe001(0x117)]||_0x5f0201['data'][_0x3fe001(0x117)]===this['_collabSession'][_0x3fe001(0x141)]())return;this['_status']==='idle'&&this[_0x3fe001(0x114)]();const _0xb1d6de=_0x5f0201[_0x3fe001(0x99)][_0x3fe001(0x9f)];Object[_0x3fe001(0xe3)](_0xb1d6de)[_0x3fe001(0xb3)](_0x5e062a=>{var _0x1dd890=_0x3fe001;this[_0x1dd890(0x139)][_0x1dd890(0x9c)](_0x5e062a['id'],_0x5e062a[_0x1dd890(0x102)]?JSON['parse'](_0x5e062a[_0x1dd890(0x102)]):null,{'fromCollab':!0x0});});}[_0x6f8def(0xd3)](){var _0x4cd088=_0x6f8def,_0x60a3b7;this['_status$'][_0x4cd088(0x118)](_0x4cd088(0x13f)),(_0x60a3b7=this[_0x4cd088(0x147)])==null||_0x60a3b7['dispose']();}[_0x6f8def(0xaa)](){var _0x33f642=_0x6f8def;this[_0x33f642(0xfa)][_0x33f642(0x118)]('idle'),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x6f8def(0xa2)]),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x1d8e22=_0x6f8def;const _0x2a3858=p[_0x1d8e22(0xe5)](exports[_0x1d8e22(0x14f)]),_0x1e1fb1=p[_0x1d8e22(0xe5)](o['IUniverInstanceService']),_0x352b51=p['useObservable'](()=>_0x1e1fb1['getCurrentTypeOfUnit$'](o[_0x1d8e22(0xab)][_0x1d8e22(0x149)]),void 0x0,!0x1,[]),[_0x580ac0,_0x26a470]=f[_0x1d8e22(0x113)](null),[_0x1f58fc,_0x32a694]=f[_0x1d8e22(0x113)](h[_0x1d8e22(0xd4)]),_0x32d3bc=f[_0x1d8e22(0x135)](null);return f['useEffect'](()=>(_0x352b51&&_0x2a3858['getLiveShareCoordinator'](_0x352b51['getUnitId']())[_0x1d8e22(0xc4)](_0x134d92=>{var _0x5e228b=_0x1d8e22;_0x26a470(_0x134d92),_0x32d3bc['current']=_0x134d92[_0x5e228b(0xc2)][_0x5e228b(0xc6)](_0x3b1259=>{_0x32a694(_0x3b1259);});}),()=>{var _0x797a62=_0x1d8e22,_0x5d800d;(_0x5d800d=_0x32d3bc[_0x797a62(0x13a)])==null||_0x5d800d['unsubscribe'](),_0x32d3bc[_0x797a62(0x13a)]=null;}),[_0x352b51,_0x2a3858]),_0x580ac0?l['jsx'](g[_0x1d8e22(0xdc)],{'align':'end','disabled':_0x1f58fc===h[_0x1d8e22(0xa8)],'className':_0x1d8e22(0x12c),'overlay':l[_0x1d8e22(0xe1)](B,{'status':_0x1f58fc,'coordinator':_0x580ac0}),'children':l['jsx'](_0x1d8e22(0x91),{'className':g[_0x1d8e22(0x8b)](_0x1d8e22(0x97),{'univer-cursor-not-allowed':_0x1f58fc===h[_0x1d8e22(0xa8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f58fc!==h['OFFLINE']}),'type':_0x1d8e22(0x91),'children':l['jsx'](P,{'className':_0x1d8e22(0x104)})})}):null;}function B(_0xf1b0f0){var _0x1e09f5=_0x6f8def;const {status:_0x497e46,coordinator:_0x43daeb}=_0xf1b0f0;switch(_0x497e46){case h['IDLE']:return l[_0x1e09f5(0xe1)](Y,{'coordinator':_0x43daeb});case h[_0x1e09f5(0xe9)]:return l['jsx'](Z,{'coordinator':_0x43daeb});case h[_0x1e09f5(0x84)]:return l[_0x1e09f5(0xe1)](J,{'coordinator':_0x43daeb});case h[_0x1e09f5(0xa8)]:return l[_0x1e09f5(0xe1)](z,{});case h[_0x1e09f5(0x146)]:return l['jsx'](K,{'coordinator':_0x43daeb});default:return null;}}function _0x2397(){var _0x26a896=['http://www.w3.org/2000/svg','_startLiveShareCoordinator','connectInjector','registerSharedOperation','indexOf','Module','forwardRef','CommandType','LIVESHARE_OPERATION','clear','_handleTerminate','NOT_FOLLOWING','throttleTime','You\x27re\x20not\x20following\x20the\x20presenter','Disposable','_handleNewChangeSets','IUIPartsService','_collabSession','clsx','merge','live-share.config','UniverIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','button','OPERATION','createElement','setConfig','reverse','disposeWithMe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','DesktopLiveShareController','data','UniverLiveSharePlugin','RxDisposable','executeCommand','map','LiveShareStatus','operations','_mountLiveShare','450767VcnyGf','IConfigService','ONLINE','sessionStatus$','path','getValue','concat','OFFLINE','2890536EScVlU','_handleOnline','UniverInstanceType','createInstance','_handleOperation','send','UniverCollaborationClientPlugin','registerInitialStateReporter','asObservable','_univerInstanceService','forEach','touchDependencies','getLiveShareCoordinator','hasOwnProperty','LIVESHARE_FETCH_OPERATIONS','has','entries','url(#$1','0\x200\x2017\x2017','_handleNewHost','currentColor','className','_startPresenting','CollaborationEvent','LiveShareService','status$','getConfig','then','default','subscribe','_collabSessionService','_entities','add','SetZoomRatioOperation','children','trim','mutations','Inject','function','call','string','startFollowing','_handleOffline','IDLE','init','complete','You\x27re\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','idle','event$','_fetchOperations','Dropdown','idSuffix','LIVESHARE_REQUEST_HOST','970200oCWfxw','assign','jsx','jsxs','values','getInitialStates','useDependency','_injector','defineProperty','UNIVER_UNKNOWN','FOLLOWING','evenodd','mask','_uiPartsService','defIds','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','colorChannel1','_presenter','_beIdle','1em','find','SAME_OPERATION_SHARE_INTERVAL','tag','44iyhEaG','registerDependencies','stringify','_status$','getUnitId','following','_sharedOperations','LiveShare','div','BehaviorSubject','NEW_CHANGESETS','params','getTypeOfUnitDisposed$','univer-size-4','_config','Button','registerComponent','stopPresenting','CollaborationSessionService','getOwnPropertyDescriptor','displayName','symbol','includes','_unitID','Fragment','xlink:href','from','sheet','useState','_startFollowing','_configService','BuiltInUIPart','presenter','next','extend','getOwnPropertySymbols','You\x27are\x20offline.','none','not-following','defs','LIVESHARE_TERMINATE','svg','prototype','tryStartPresenting','HEADER_MENU','42915ASuIbI','_reporters','233328MrGwCQ','_status','unitId','pipe','replace','text','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','LIVESHARE_NEW_HOST','_stopPresenting','_liveShareService','dispose$','random','presenting','fill','live-share-icon','useRef','872684XIapYx','SetWorksheetActiveOperation','getTypeOfUnitAdded$','_commandService','current','_stopFollowing','type','stopFollowing','shouldShareOperation','offline','takeUntil','getMemberID','toDisposable','set','SetScrollOperation','attrs','PRESENTING','_commandDisposable','_init','UNIVER_SHEET','length','2704080TFvyxv','delete','dispose','get','LiveShareController'];_0x2397=function(){return _0x26a896;};return _0x2397();}function Y(_0x1cb1ae){var _0x612558=_0x6f8def;const {coordinator:_0x1760e4}=_0x1cb1ae;return l[_0x612558(0xe2)](l[_0x612558(0x10f)],{'children':[l[_0x612558(0xe1)](_0x612558(0xff),{'className':_0x612558(0x8f),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x612558(0x106)],{'onClick':()=>_0x1760e4['tryStartPresenting'](),'children':'Start'})]});}function Z(_0x2157ac){var _0x47f1a9=_0x6f8def;const {coordinator:_0x578ee3}=_0x2157ac;return l[_0x47f1a9(0xe2)](l[_0x47f1a9(0x10f)],{'children':[l['jsx'](_0x47f1a9(0xff),{'className':_0x47f1a9(0x8f),'children':_0x47f1a9(0xd7)}),l['jsx'](g[_0x47f1a9(0x106)],{'onClick':()=>_0x578ee3[_0x47f1a9(0x13d)](),'children':'Stop\x20following'})]});}function J(_0x4168fe){var _0x36c185=_0x6f8def;const {coordinator:_0x449042}=_0x4168fe;return l[_0x36c185(0xe2)](l[_0x36c185(0x10f)],{'children':[l[_0x36c185(0xe1)](_0x36c185(0xff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x36c185(0x86)}),l[_0x36c185(0xe1)](g['Button'],{'variant':_0x36c185(0x12b),'onClick':()=>_0x449042[_0x36c185(0xd2)](),'children':'Start\x20following'})]});}function K(_0x2a6400){var _0x25a495=_0x6f8def;const {coordinator:_0x1fbb44}=_0x2a6400;return l[_0x25a495(0xe2)](l[_0x25a495(0x10f)],{'children':[l[_0x25a495(0xe1)]('div',{'className':_0x25a495(0x8f),'children':_0x25a495(0xee)}),l[_0x25a495(0xe1)](g[_0x25a495(0x106)],{'variant':_0x25a495(0xc5),'onClick':()=>_0x1fbb44['stopPresenting'](),'children':'Stop\x20presenting'})]});}function z(){var _0x1ea6c2=_0x6f8def;return l[_0x1ea6c2(0xe1)](l[_0x1ea6c2(0x10f)],{'children':_0x1ea6c2(0x11b)});}var Q=Object[_0x6f8def(0x10a)],X=(_0x2ec1b4,_0x44aaaa,_0x3d25b8,_0x11278c)=>{var _0x1851dc=_0x6f8def;for(var _0x4930bf=_0x11278c>0x1?void 0x0:_0x11278c?Q(_0x44aaaa,_0x3d25b8):_0x44aaaa,_0x3d51fa=_0x2ec1b4[_0x1851dc(0x14a)]-0x1,_0x28fc85;_0x3d51fa>=0x0;_0x3d51fa--)(_0x28fc85=_0x2ec1b4[_0x3d51fa])&&(_0x4930bf=_0x28fc85(_0x4930bf)||_0x4930bf);return _0x4930bf;},x=(_0x5b6be,_0x2132fb)=>(_0x1c6ee8,_0x5032d8)=>_0x2132fb(_0x1c6ee8,_0x5032d8,_0x5b6be);exports[_0x6f8def(0x98)]=class extends o['Disposable']{constructor(_0x4543a8,_0x230418){var _0x1d811f=_0x6f8def;super(),this[_0x1d811f(0xe6)]=_0x4543a8,this[_0x1d811f(0xec)]=_0x230418,this[_0x1d811f(0xa0)]();}['_mountLiveShare'](){var _0x2c7afd=_0x6f8def;this[_0x2c7afd(0x96)](this[_0x2c7afd(0xec)][_0x2c7afd(0x107)](p[_0x2c7afd(0x116)][_0x2c7afd(0x123)],()=>p[_0x2c7afd(0x152)](A,this['_injector'])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x6f8def(0xce)](o['Injector'])),x(0x1,p[_0x6f8def(0x89)])],exports['DesktopLiveShareController']);const ee=_0x6f8def(0x8d),L={};var te=Object[_0x6f8def(0x10a)],ie=(_0x1751fc,_0x36e68d,_0x33b170,_0x439cd7)=>{for(var _0x306ff5=_0x439cd7>0x1?void 0x0:_0x439cd7?te(_0x36e68d,_0x33b170):_0x36e68d,_0x5dafda=_0x1751fc['length']-0x1,_0x23e1fb;_0x5dafda>=0x0;_0x5dafda--)(_0x23e1fb=_0x1751fc[_0x5dafda])&&(_0x306ff5=_0x23e1fb(_0x306ff5)||_0x306ff5);return _0x306ff5;},ne=(_0x2482f7,_0x977a61)=>(_0xfeb012,_0x2c0fa4)=>_0x977a61(_0xfeb012,_0x2c0fa4,_0x2482f7);let E=class extends o[_0x6f8def(0x87)]{constructor(_0x4476c4){var _0x420ce0=_0x6f8def;super(),this[_0x420ce0(0x12f)]=_0x4476c4,this[_0x420ce0(0x148)]();}['_init'](){var _0x19ec63=_0x6f8def;[D[_0x19ec63(0xca)]['id'],D[_0x19ec63(0x144)]['id'],C[_0x19ec63(0x137)]['id']]['forEach'](_0x4138e5=>{var _0x3a4b90=_0x19ec63;this[_0x3a4b90(0x96)](this[_0x3a4b90(0x12f)][_0x3a4b90(0x153)](_0x4138e5));});}};E=ie([ne(0x0,o[_0x6f8def(0xce)](O))],E);var re=Object[_0x6f8def(0xe7)],se=Object[_0x6f8def(0x10a)],oe=(_0x203237,_0x3249dc,_0x5e83a2)=>_0x3249dc in _0x203237?re(_0x203237,_0x3249dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e83a2}):_0x203237[_0x3249dc]=_0x5e83a2,ae=(_0x571c5e,_0x39359f,_0x171253,_0xc46087)=>{var _0x112168=_0x6f8def;for(var _0x9dbbf3=_0xc46087>0x1?void 0x0:_0xc46087?se(_0x39359f,_0x171253):_0x39359f,_0x3f1af7=_0x571c5e[_0x112168(0x14a)]-0x1,_0x2daae5;_0x3f1af7>=0x0;_0x3f1af7--)(_0x2daae5=_0x571c5e[_0x3f1af7])&&(_0x9dbbf3=_0x2daae5(_0x9dbbf3)||_0x9dbbf3);return _0x9dbbf3;},N=(_0x37e193,_0x42de0c)=>(_0x49e376,_0x54c251)=>_0x42de0c(_0x49e376,_0x54c251,_0x37e193),T=(_0x5c42a0,_0x2b2079,_0x8eff1)=>oe(_0x5c42a0,typeof _0x2b2079!=_0x6f8def(0x10c)?_0x2b2079+'':_0x2b2079,_0x8eff1);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x6f8def(0x9a)]=class extends o['Plugin']{constructor(_0x226951=L,_0x466283,_0x5bea2d){var _0x2e0edc=_0x6f8def;super(),this[_0x2e0edc(0x105)]=_0x226951,this[_0x2e0edc(0xe6)]=_0x466283,this[_0x2e0edc(0x115)]=_0x5bea2d;const {..._0x55027d}=o[_0x2e0edc(0x8c)]({},L,this[_0x2e0edc(0x105)]);this[_0x2e0edc(0x115)][_0x2e0edc(0x94)](ee,_0x55027d);}['onStarting'](){var _0x58ee4d=_0x6f8def;o[_0x58ee4d(0xf8)](this['_injector'],o['mergeOverrideWithDependencies']([[O],[exports[_0x58ee4d(0x14f)]],[E],[exports[_0x58ee4d(0x98)]]],this[_0x58ee4d(0x105)]['override'])),o[_0x58ee4d(0xb4)](this[_0x58ee4d(0xe6)],[[E]]);}['onRendered'](){var _0xdedb0e=_0x6f8def;o[_0xdedb0e(0xb4)](this[_0xdedb0e(0xe6)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x6f8def(0x13c),o[_0x6f8def(0xab)][_0x6f8def(0xe8)]),T(exports[_0x6f8def(0x9a)],'pluginName',le),exports[_0x6f8def(0x9a)]=ae([o['DependentOn'](m[_0x6f8def(0xaf)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x6f8def(0xa2)])],exports[_0x6f8def(0x9a)]),exports[_0x6f8def(0xfe)]=A,exports[_0x6f8def(0xc1)]=O,exports[_0x6f8def(0x9e)]=h;
1
+ 'use strict';var _0x40f3b6=_0x103f;(function(_0x203430,_0x5e10b9){var _0xd855b8=_0x103f,_0x20fa24=_0x203430();while(!![]){try{var _0x41468c=parseInt(_0xd855b8(0x22c))/0x1*(parseInt(_0xd855b8(0x245))/0x2)+-parseInt(_0xd855b8(0x28a))/0x3*(-parseInt(_0xd855b8(0x1db))/0x4)+-parseInt(_0xd855b8(0x226))/0x5*(-parseInt(_0xd855b8(0x1d6))/0x6)+parseInt(_0xd855b8(0x1b4))/0x7*(-parseInt(_0xd855b8(0x27b))/0x8)+parseInt(_0xd855b8(0x26c))/0x9*(parseInt(_0xd855b8(0x24a))/0xa)+-parseInt(_0xd855b8(0x280))/0xb+parseInt(_0xd855b8(0x291))/0xc*(-parseInt(_0xd855b8(0x234))/0xd);if(_0x41468c===_0x5e10b9)break;else _0x20fa24['push'](_0x20fa24['shift']());}catch(_0x4207da){_0x20fa24['push'](_0x20fa24['shift']());}}}(_0x1146,0x4118a));var U=Object[_0x40f3b6(0x286)],F=(_0x379ccd,_0x3dfde7,_0x1d8243)=>_0x3dfde7 in _0x379ccd?U(_0x379ccd,_0x3dfde7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d8243}):_0x379ccd[_0x3dfde7]=_0x1d8243,v=(_0x22b7ae,_0x296d73,_0x46ded1)=>F(_0x22b7ae,typeof _0x296d73!='symbol'?_0x296d73+'':_0x296d73,_0x46ded1);Object[_0x40f3b6(0x286)](exports,Symbol[_0x40f3b6(0x258)],{'value':_0x40f3b6(0x1de)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x2e489c=_0x40f3b6;return u=Object[_0x2e489c(0x1ef)]||function(_0xf19496){var _0x57956b=_0x2e489c;for(var _0x17f992,_0x5251d4=0x1,_0x4c90c2=arguments[_0x57956b(0x277)];_0x5251d4<_0x4c90c2;_0x5251d4++){_0x17f992=arguments[_0x5251d4];for(var _0x3ce420 in _0x17f992)Object[_0x57956b(0x1cd)][_0x57956b(0x220)][_0x57956b(0x1c4)](_0x17f992,_0x3ce420)&&(_0xf19496[_0x3ce420]=_0x17f992[_0x3ce420]);}return _0xf19496;},u[_0x2e489c(0x1f8)](this,arguments);},$=function(_0xc94e8e,_0x2a85c6){var _0x3cc6a3=_0x40f3b6,_0x5877c2={};for(var _0xc2a7c2 in _0xc94e8e)Object['prototype'][_0x3cc6a3(0x220)]['call'](_0xc94e8e,_0xc2a7c2)&&_0x2a85c6[_0x3cc6a3(0x1d4)](_0xc2a7c2)<0x0&&(_0x5877c2[_0xc2a7c2]=_0xc94e8e[_0xc2a7c2]);if(_0xc94e8e!=null&&typeof Object[_0x3cc6a3(0x224)]==_0x3cc6a3(0x1c0)){for(var _0x5ce6a5=0x0,_0xc2a7c2=Object[_0x3cc6a3(0x224)](_0xc94e8e);_0x5ce6a5<_0xc2a7c2[_0x3cc6a3(0x277)];_0x5ce6a5++)_0x2a85c6[_0x3cc6a3(0x1d4)](_0xc2a7c2[_0x5ce6a5])<0x0&&Object[_0x3cc6a3(0x1cd)][_0x3cc6a3(0x21f)][_0x3cc6a3(0x1c4)](_0xc94e8e,_0xc2a7c2[_0x5ce6a5])&&(_0x5877c2[_0xc2a7c2[_0x5ce6a5]]=_0xc94e8e[_0xc2a7c2[_0x5ce6a5]]);}return _0x5877c2;},j=f[_0x40f3b6(0x279)](function(_0x141f24,_0xe70842){var _0x5a2a43=_0x40f3b6,_0xdd924=_0x141f24[_0x5a2a43(0x1e1)],_0x2be540=_0x141f24['id'],_0x2924a3=_0x141f24['className'],_0x1565e0=_0x141f24['extend'],_0x10515e=$(_0x141f24,['icon','id',_0x5a2a43(0x21c),'extend']),_0x46289f=_0x5a2a43(0x28c)[_0x5a2a43(0x27f)](_0x2be540,'\x20')[_0x5a2a43(0x27f)](_0x2924a3||'')[_0x5a2a43(0x272)](),_0x530d17=f['useRef']('_'[_0x5a2a43(0x27f)](k()));return y(_0xdd924,''['concat'](_0x2be540),{'defIds':_0xdd924[_0x5a2a43(0x20d)],'idSuffix':_0x530d17['current']},u({'ref':_0xe70842,'className':_0x46289f},_0x10515e),_0x1565e0);});function y(_0x2ba2d1,_0x5244a5,_0x215af6,_0x55c95e,_0x531104){var _0x310f29=_0x40f3b6;return f[_0x310f29(0x276)](_0x2ba2d1[_0x310f29(0x288)],u(u({'key':_0x5244a5},H(_0x2ba2d1,_0x215af6,_0x531104)),_0x55c95e),(V(_0x2ba2d1,_0x215af6)[_0x310f29(0x215)]||[])[_0x310f29(0x274)](function(_0x310f7e,_0x352b77){var _0x245f6c=_0x310f29;return y(_0x310f7e,''[_0x245f6c(0x27f)](_0x5244a5,'-')[_0x245f6c(0x27f)](_0x2ba2d1[_0x245f6c(0x288)],'-')[_0x245f6c(0x27f)](_0x352b77),_0x215af6,void 0x0,_0x531104);}));}function H(_0x2efcd7,_0x366ded,_0xf8ecee){var _0x3ac29c=_0x40f3b6,_0x2b6784=u({},_0x2efcd7[_0x3ac29c(0x1e5)]);_0xf8ecee!=null&&_0xf8ecee[_0x3ac29c(0x212)]&&_0x2b6784[_0x3ac29c(0x252)]==='colorChannel1'&&(_0x2b6784[_0x3ac29c(0x252)]=_0xf8ecee[_0x3ac29c(0x212)]),_0x2efcd7[_0x3ac29c(0x288)]==='mask'&&_0x2b6784['id']&&(_0x2b6784['id']=_0x2b6784['id']+_0x366ded['idSuffix']),Object[_0x3ac29c(0x275)](_0x2b6784)[_0x3ac29c(0x1ff)](function(_0x42fbd7){var _0x283441=_0x3ac29c,_0x3d8d55=_0x42fbd7[0x0],_0x29aefd=_0x42fbd7[0x1];_0x3d8d55==='mask'&&typeof _0x29aefd==_0x283441(0x247)&&(_0x2b6784[_0x3d8d55]=_0x29aefd['replace'](/url\(#(.*)\)/,_0x283441(0x269)[_0x283441(0x27f)](_0x366ded[_0x283441(0x1d0)],')')));});var _0x324c80=_0x366ded[_0x3ac29c(0x20d)];return!_0x324c80||_0x324c80[_0x3ac29c(0x277)]===0x0||(_0x2efcd7['tag']===_0x3ac29c(0x26e)&&_0x2b6784[_0x3ac29c(0x22a)]&&(_0x2b6784[_0x3ac29c(0x22a)]=_0x2b6784[_0x3ac29c(0x22a)]+_0x366ded[_0x3ac29c(0x1d0)]),Object['entries'](_0x2b6784)[_0x3ac29c(0x1ff)](function(_0x35b5d0){var _0x13cec8=_0x3ac29c,_0x43a788=_0x35b5d0[0x0],_0x22b923=_0x35b5d0[0x1];typeof _0x22b923==_0x13cec8(0x247)&&(_0x2b6784[_0x43a788]=_0x22b923[_0x13cec8(0x1bf)](/url\(#(.*)\)/,_0x13cec8(0x269)['concat'](_0x366ded['idSuffix'],')')));})),_0x2b6784;}function V(_0x1e44e4,_0x2bd13f){var _0x269f68=_0x40f3b6,_0x14b156,_0x20aa1d=_0x2bd13f[_0x269f68(0x20d)];return!_0x20aa1d||_0x20aa1d[_0x269f68(0x277)]===0x0?_0x1e44e4:_0x1e44e4[_0x269f68(0x288)]===_0x269f68(0x1fb)&&(!((_0x14b156=_0x1e44e4[_0x269f68(0x215)])===null||_0x14b156===void 0x0)&&_0x14b156[_0x269f68(0x277)])?u(u({},_0x1e44e4),{'children':_0x1e44e4[_0x269f68(0x215)][_0x269f68(0x274)](function(_0x46f90){var _0x4f069d=_0x269f68;return typeof _0x46f90[_0x4f069d(0x1e5)]['id']==_0x4f069d(0x247)&&_0x20aa1d&&_0x20aa1d['includes'](_0x46f90[_0x4f069d(0x1e5)]['id'])?u(u({},_0x46f90),{'attrs':u(u({},_0x46f90['attrs']),{'id':_0x46f90['attrs']['id']+_0x2bd13f[_0x4f069d(0x1d0)]})}):_0x46f90;})}):_0x1e44e4;}function k(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}j[_0x40f3b6(0x24f)]=_0x40f3b6(0x227);var M={'tag':_0x40f3b6(0x219),'attrs':{'xmlns':_0x40f3b6(0x1f9),'fill':'none','viewBox':_0x40f3b6(0x1dd),'width':_0x40f3b6(0x229),'height':_0x40f3b6(0x229)},'children':[{'tag':_0x40f3b6(0x235),'attrs':{'fill':_0x40f3b6(0x200),'d':_0x40f3b6(0x25d)}},{'tag':'path','attrs':{'fill':_0x40f3b6(0x200),'d':_0x40f3b6(0x243),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x40f3b6(0x279)](function(_0x395264,_0x412c91){var _0x4c78e4=_0x40f3b6;return f['createElement'](j,Object[_0x4c78e4(0x1ef)]({},_0x395264,{'id':_0x4c78e4(0x1b7),'ref':_0x412c91,'icon':M}));});P['displayName']=_0x40f3b6(0x27c);class O extends o[_0x40f3b6(0x1d3)]{constructor(){var _0x4ea7f9=_0x40f3b6;super(...arguments),v(this,_0x4ea7f9(0x1ed),new Set()),v(this,'_reporters',new Set());}[_0x40f3b6(0x246)](_0x343932){var _0x3b606f=_0x40f3b6;return this[_0x3b606f(0x1ed)][_0x3b606f(0x1ba)](_0x343932),o[_0x3b606f(0x1fd)](()=>this[_0x3b606f(0x1ed)]['delete'](_0x343932));}[_0x40f3b6(0x267)](_0x245cb3){var _0x127f2f=_0x40f3b6;return this['_reporters'][_0x127f2f(0x1ba)](_0x245cb3),o[_0x127f2f(0x1fd)](()=>this['_reporters'][_0x127f2f(0x1e2)](_0x245cb3));}[_0x40f3b6(0x1ce)](_0x30b619){var _0x37b35a=_0x40f3b6;return this[_0x37b35a(0x1ed)][_0x37b35a(0x23e)](_0x30b619);}[_0x40f3b6(0x1fa)](_0x38f490){var _0x113970=_0x40f3b6;return Array[_0x113970(0x28b)](this[_0x113970(0x23b)])[_0x113970(0x274)](_0x1c445b=>_0x1c445b(_0x38f490));}}var q=Object[_0x40f3b6(0x1bd)],R=(_0x43af1d,_0x4ac851,_0x594491,_0x15c0e5)=>{var _0x5b29c0=_0x40f3b6;for(var _0x5c8b0a=_0x15c0e5>0x1?void 0x0:_0x15c0e5?q(_0x4ac851,_0x594491):_0x4ac851,_0x412ecb=_0x43af1d[_0x5b29c0(0x277)]-0x1,_0x213f9d;_0x412ecb>=0x0;_0x412ecb--)(_0x213f9d=_0x43af1d[_0x412ecb])&&(_0x5c8b0a=_0x213f9d(_0x5c8b0a)||_0x5c8b0a);return _0x5c8b0a;},S=(_0x32c7c2,_0x469888)=>(_0x311d2d,_0x4efbc4)=>_0x469888(_0x311d2d,_0x4efbc4,_0x32c7c2);exports[_0x40f3b6(0x1c1)]=class extends o[_0x40f3b6(0x237)]{constructor(_0x1c3f71,_0x54a532,_0x2fa03a){var _0x3c60dc=_0x40f3b6;super(),v(this,_0x3c60dc(0x236),new Map()),(this[_0x3c60dc(0x292)]=_0x1c3f71,this[_0x3c60dc(0x1d9)]=_0x54a532,this[_0x3c60dc(0x289)]=_0x2fa03a,this[_0x3c60dc(0x253)]());}async[_0x40f3b6(0x24c)](_0x5acf1d){var _0x51b4a6=_0x40f3b6;return this['_entities']['has'](_0x5acf1d)||await this[_0x51b4a6(0x1fe)](_0x5acf1d),this[_0x51b4a6(0x236)][_0x51b4a6(0x22e)](_0x5acf1d);}[_0x40f3b6(0x253)](){var _0x1c46d8=_0x40f3b6;this[_0x1c46d8(0x292)][_0x1c46d8(0x240)](o[_0x1c46d8(0x283)][_0x1c46d8(0x25f)])[_0x1c46d8(0x26a)](b[_0x1c46d8(0x211)](this['dispose$']))[_0x1c46d8(0x1f6)](async _0x1b8742=>{var _0x5883e3=_0x1c46d8;const _0x34cf64=_0x1b8742[_0x5883e3(0x261)]();this[_0x5883e3(0x236)]['has'](_0x34cf64)||this[_0x5883e3(0x1fe)](_0x34cf64);}),this[_0x1c46d8(0x292)][_0x1c46d8(0x1e6)](o[_0x1c46d8(0x283)]['UNIVER_SHEET'])[_0x1c46d8(0x26a)](b['takeUntil'](this[_0x1c46d8(0x208)]))[_0x1c46d8(0x1f6)](_0x2b4918=>{var _0x2c5b3d=_0x1c46d8;const _0x4fccd6=_0x2b4918[_0x2c5b3d(0x261)](),_0x14c5e6=this['_entities'][_0x2c5b3d(0x22e)](_0x4fccd6);_0x14c5e6==null||_0x14c5e6[_0x2c5b3d(0x273)]();});}async['_startLiveShareCoordinator'](_0xcdfae4){var _0x46c97c=_0x40f3b6;const _0x5b63a9=await this[_0x46c97c(0x289)][_0x46c97c(0x262)](_0xcdfae4),_0x4aadba=this[_0x46c97c(0x1d9)][_0x46c97c(0x232)](exports['LiveShareCoordinator'],_0xcdfae4,_0x5b63a9);return _0x4aadba[_0x46c97c(0x205)](),this[_0x46c97c(0x236)]['set'](_0xcdfae4,_0x4aadba),_0x4aadba;}},exports[_0x40f3b6(0x1c1)]=R([S(0x0,o[_0x40f3b6(0x233)]),S(0x1,o['Inject'](o[_0x40f3b6(0x201)])),S(0x2,o[_0x40f3b6(0x225)](m[_0x40f3b6(0x20e)]))],exports[_0x40f3b6(0x1c1)]);var h=(_0x81c823=>(_0x81c823[_0x40f3b6(0x26f)]='offline',_0x81c823[_0x40f3b6(0x1be)]=_0x40f3b6(0x28f),_0x81c823[_0x40f3b6(0x278)]=_0x40f3b6(0x1c6),_0x81c823['NOT_FOLLOWING']=_0x40f3b6(0x284),_0x81c823[_0x40f3b6(0x281)]=_0x40f3b6(0x27d),_0x81c823))(h||{});function _0x1146(){var _0x544baf=['createElement','length','FOLLOWING','forwardRef','pluginName','551224bUNTAi','LiveShareIcon','presenting','sessionStatus$','concat','3047671gGixSF','PRESENTING','next','UniverInstanceType','not-following','registerComponent','defineProperty','_commandDisposable','tag','_collabSessionService','154005WNOTSM','from','univerjs-icon\x20univerjs-icon-','Dropdown','InsertSheetMutation','idle','startFollowing','48ddqkAR','_univerInstanceService','mergeOverrideWithDependencies','_handleNewHost','35KVNvDZ','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','_commandService','live-share-icon','_handleOperation','default','add','stopFollowing','_collabSession','getOwnPropertyDescriptor','IDLE','replace','function','LiveShareController','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_OPERATION','call','Button','following','getMemberID','_unitID','unsubscribe','LiveShareStatus','Fragment','mutations','prototype','shouldShareOperation','NEW_CHANGESETS','idSuffix','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20presenting\x20the\x20document','Disposable','indexOf','_beIdle','2776296kogynk','params','_status$','_injector','useState','28LOIFTb','type','0\x200\x2017\x2017','Module','status$','BehaviorSubject','icon','delete','UNIVER_LIVE_SHARE_PLUGIN','presenter','attrs','getTypeOfUnitDisposed$','CollaborationEvent','symbol','_handleOffline','onCommandExecuted','onRendered','onStarting','_sharedOperations','parse','assign','jsxs','univer-size-4','SetZoomRatioOperation','_config','then','useDependency','subscribe','LIVESHARE_FETCH_OPERATIONS','apply','http://www.w3.org/2000/svg','getInitialStates','defs','stringify','toDisposable','_startLiveShareCoordinator','forEach','currentColor','Injector','_mountLiveShare','ICommandService','CommandType','init','_startFollowing','set','dispose$','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_UNKNOWN','unitId','_presenter','defIds','CollaborationSessionService','_liveShareService','sheet','takeUntil','colorChannel1','find','operations','children','_stopPresenting','memberID','LiveShareService','svg','connectInjector','button','className','LIVESHARE_REQUEST_HOST','UniverCollaborationClientPlugin','propertyIsEnumerable','hasOwnProperty','_handleOnline','Start','You\x27are\x20offline.','getOwnPropertySymbols','Inject','5ldXrhu','UniverIcon','complete','1em','xlink:href','registerDependencies','269410aglzqd','throttleTime','get','DesktopLiveShareController','SetScrollOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','createInstance','IUniverInstanceService','1548677pOpVcZ','path','_entities','RxDisposable','touchDependencies','SessionStatus','_handleTerminate','_reporters','data','clsx','has','SetWorksheetActiveOperation','getTypeOfUnitAdded$','jsx','current','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','event$','2aOzazo','registerSharedOperation','string','IUIPartsService','_uiPartsService','10eNBoGZ','reverse','getLiveShareCoordinator','disposeWithMe','includes','displayName','_startPresenting','LIVESHARE_NEW_HOST','fill','_init','_handleNewChangeSets','_status','Plugin','HEADER_MENU','toStringTag','send','OPERATION','end','Start\x20following','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','UniverLiveSharePlugin','UNIVER_SHEET','_configService','getUnitId','requireSession','getValue','Subject','_fetchOperations','_stopFollowing','registerInitialStateReporter','override','url(#$1','pipe','LiveShareCoordinator','2459295zIBjyN','div','use','OFFLINE','LIVESHARE_TERMINATE','executeCommand','trim','dispose','map','entries'];_0x1146=function(){return _0x544baf;};return _0x1146();}const W=_0x40f3b6(0x1d1),G=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x20fd1e,_0x345495,_0xacd67b,_0x1f65b9,_0x18b3a5){var _0x15ae79=_0x40f3b6;super(),v(this,'_status$',new w[(_0x15ae79(0x1e0))](_0x15ae79(0x28f))),v(this,_0x15ae79(0x1df),this[_0x15ae79(0x1d8)]['asObservable']()),v(this,_0x15ae79(0x253),!0x1),v(this,_0x15ae79(0x287),null),v(this,_0x15ae79(0x20c),null),(this[_0x15ae79(0x1c8)]=_0x20fd1e,this['_collabSession']=_0x345495,this[_0x15ae79(0x260)]=_0xacd67b,this[_0x15ae79(0x20f)]=_0x1f65b9,this[_0x15ae79(0x1b6)]=_0x18b3a5);}get['_status'](){var _0x2f056f=_0x40f3b6;return this[_0x2f056f(0x1d8)][_0x2f056f(0x263)]();}[_0x40f3b6(0x273)](){var _0x2a78f8=_0x40f3b6,_0x2c9771;(_0x2c9771=this[_0x2a78f8(0x287)])==null||_0x2c9771[_0x2a78f8(0x273)](),this[_0x2a78f8(0x1d8)][_0x2a78f8(0x282)](_0x2a78f8(0x28f)),this[_0x2a78f8(0x1d8)][_0x2a78f8(0x228)]();}[_0x40f3b6(0x205)](){var _0x2ce1a4=_0x40f3b6;this[_0x2ce1a4(0x253)]||(this[_0x2ce1a4(0x253)]=!0x0,this['_collabSession'][_0x2ce1a4(0x27e)]['pipe'](b[_0x2ce1a4(0x211)](this[_0x2ce1a4(0x208)]))['subscribe'](_0x3baf02=>{var _0x492877=_0x2ce1a4;switch(_0x3baf02){case m['SessionStatus'][_0x492877(0x26f)]:this['_handleOffline']();break;case m[_0x492877(0x239)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x2ce1a4(0x1bc)][_0x2ce1a4(0x244)][_0x2ce1a4(0x26a)](b[_0x2ce1a4(0x211)](this[_0x2ce1a4(0x208)]))[_0x2ce1a4(0x1f6)](_0x26323d=>{var _0x5c6371=_0x2ce1a4;const {eventID:_0x5a34c1}=_0x26323d;switch(_0x5a34c1){case _[_0x5c6371(0x1e7)][_0x5c6371(0x251)]:this[_0x5c6371(0x294)](_0x26323d);break;case _[_0x5c6371(0x1e7)][_0x5c6371(0x1c3)]:this[_0x5c6371(0x1b8)](_0x26323d);break;case _[_0x5c6371(0x1e7)][_0x5c6371(0x270)]:this[_0x5c6371(0x23a)]();break;case _[_0x5c6371(0x1e7)][_0x5c6371(0x1cf)]:this[_0x5c6371(0x254)](_0x26323d);break;}}));}['tryStartPresenting'](){var _0x32031d=_0x40f3b6;this[_0x32031d(0x1bc)]['send']({'eventID':_['CollaborationEvent'][_0x32031d(0x21d)],'data':{'unitID':this[_0x32031d(0x1c8)],'userID':this[_0x32031d(0x1bc)][_0x32031d(0x1c7)]()}},this[_0x32031d(0x1c8)]);}['stopPresenting'](){var _0x56e521=_0x40f3b6;this['_status']===_0x56e521(0x27d)&&(this[_0x56e521(0x1d8)][_0x56e521(0x282)](_0x56e521(0x28f)),this['_collabSession']['send']({'eventID':_[_0x56e521(0x1e7)][_0x56e521(0x270)],'data':{'unitID':this[_0x56e521(0x1c8)]}},this['_unitID']));}['startFollowing'](){var _0x530f4a=_0x40f3b6;this[_0x530f4a(0x255)]===_0x530f4a(0x284)&&(this['_status$'][_0x530f4a(0x282)](_0x530f4a(0x1c6)),this[_0x530f4a(0x206)]());}['stopFollowing'](){var _0xcf1110=_0x40f3b6;this[_0xcf1110(0x255)]==='following'&&this[_0xcf1110(0x266)]();}[_0x40f3b6(0x294)](_0x207cad){var _0x445fb1=_0x40f3b6;const {presenter:_0x4f240b}=_0x207cad[_0x445fb1(0x23c)],_0x32cd25=this[_0x445fb1(0x1bc)][_0x445fb1(0x1c7)]();this[_0x445fb1(0x20c)]=_0x4f240b,_0x4f240b===_0x32cd25?(this['_stopFollowing'](),this[_0x445fb1(0x250)]()):this['_status']!==_0x445fb1(0x284)&&(this[_0x445fb1(0x216)](),this['_startFollowing']());}[_0x40f3b6(0x265)](){var _0x57a49c=_0x40f3b6;const _0x497ad0={'eventID':_[_0x57a49c(0x1e7)][_0x57a49c(0x1f7)]};this[_0x57a49c(0x1bc)]['send'](_0x497ad0,this['_unitID']);}[_0x40f3b6(0x23a)](){var _0x4f508d=_0x40f3b6;this[_0x4f508d(0x20c)]=null,this[_0x4f508d(0x255)]!=='presenting'&&this[_0x4f508d(0x1d5)]();}['_handleNewChangeSets'](_0xa383ea){var _0x40d024=_0x40f3b6;if(this['_status']===_0x40d024(0x1c6)&&this[_0x40d024(0x20c)]===_0xa383ea[_0x40d024(0x23c)][_0x40d024(0x217)]){const _0x971f79=_['parseProtocolChangeset'](_0xa383ea[_0x40d024(0x23c)])[_0x40d024(0x1cc)][_0x40d024(0x24b)]()[_0x40d024(0x213)](_0x139487=>_0x139487['id']===C[_0x40d024(0x28e)]['id']);if(_0x971f79){const _0x2edb70=_0x971f79[_0x40d024(0x1d7)][_0x40d024(0x20b)],_0x1e925d=_0x971f79[_0x40d024(0x1d7)][_0x40d024(0x210)]['id'];setTimeout(()=>{var _0x334a36=_0x40d024;this['_commandService'][_0x334a36(0x271)](C[_0x334a36(0x23f)]['id'],{'unitId':_0x2edb70,'subUnitId':_0x1e925d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x13dc7a=_0x40f3b6;this[_0x13dc7a(0x1d8)][_0x13dc7a(0x282)](_0x13dc7a(0x27d));const _0x2e1e6e=new Map(),_0x3d3f8d=this['_commandDisposable']=new o['DisposableCollection']();_0x3d3f8d['add'](o[_0x13dc7a(0x1fd)](()=>{var _0x5685cb=_0x13dc7a;_0x2e1e6e[_0x5685cb(0x1ff)](_0x4464b3=>_0x4464b3[_0x5685cb(0x228)]()),_0x2e1e6e['clear']();})),_0x3d3f8d[_0x13dc7a(0x1ba)](this[_0x13dc7a(0x1b6)][_0x13dc7a(0x1ea)](_0x1978e7=>{var _0x4519b8=_0x13dc7a,_0x584ba2;if(_0x1978e7[_0x4519b8(0x1dc)]!==o[_0x4519b8(0x204)][_0x4519b8(0x25a)]||!this[_0x4519b8(0x20f)][_0x4519b8(0x1ce)](_0x1978e7['id']))return;const {id:_0x1b251a}=_0x1978e7;let _0x4c0cca;_0x2e1e6e[_0x4519b8(0x23e)](_0x1b251a)?_0x4c0cca=_0x2e1e6e[_0x4519b8(0x22e)](_0x1b251a):(_0x4c0cca=new w[(_0x4519b8(0x264))](),_0x2e1e6e[_0x4519b8(0x207)](_0x1b251a,_0x4c0cca),_0x4c0cca[_0x4519b8(0x26a)](b[_0x4519b8(0x22d)]((_0x584ba2=this[_0x4519b8(0x260)]['getConfig'](W))!=null?_0x584ba2:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4519b8(0x1f6)](_0x2e7dd4=>{var _0x5d7fc2=_0x4519b8;this[_0x5d7fc2(0x1bc)][_0x5d7fc2(0x259)]({'eventID':_[_0x5d7fc2(0x1e7)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d7fc2(0x1c8)],'operations':{[_0x2e7dd4['id']]:{'id':_0x2e7dd4['id'],'params':JSON[_0x5d7fc2(0x1fc)](_0x2e7dd4['params'])}}}},this[_0x5d7fc2(0x1c8)]);})),_0x4c0cca[_0x4519b8(0x282)](_0x1978e7);})),this[_0x13dc7a(0x20f)][_0x13dc7a(0x1fa)](this[_0x13dc7a(0x1c8)])[_0x13dc7a(0x1ff)](_0x4a2f93=>this['_collabSession'][_0x13dc7a(0x259)]({'eventID':_['CollaborationEvent'][_0x13dc7a(0x1c3)],'data':{'unitID':this[_0x13dc7a(0x1c8)],'operations':{[_0x4a2f93['id']]:{'id':_0x4a2f93['id'],'params':JSON[_0x13dc7a(0x1fc)](_0x4a2f93[_0x13dc7a(0x1d7)])}}}},this[_0x13dc7a(0x1c8)]));}[_0x40f3b6(0x216)](){var _0x4e59e5=_0x40f3b6,_0x383741;this[_0x4e59e5(0x1d8)][_0x4e59e5(0x282)](_0x4e59e5(0x28f)),(_0x383741=this[_0x4e59e5(0x287)])==null||_0x383741[_0x4e59e5(0x273)](),this['_commandDisposable']=null;}[_0x40f3b6(0x206)](){var _0x111397=_0x40f3b6,_0x2fff3a;(_0x2fff3a=this[_0x111397(0x287)])==null||_0x2fff3a[_0x111397(0x273)](),this['_status$'][_0x111397(0x282)](_0x111397(0x1c6));}[_0x40f3b6(0x1d5)](){var _0x5d5253=_0x40f3b6,_0x6ba2ac;this[_0x5d5253(0x1d8)]['next'](_0x5d5253(0x28f)),(_0x6ba2ac=this['_commandDisposable'])==null||_0x6ba2ac[_0x5d5253(0x273)](),this[_0x5d5253(0x287)]=null;}[_0x40f3b6(0x266)](){var _0x1b3356=_0x40f3b6,_0x46633d;this[_0x1b3356(0x1d8)][_0x1b3356(0x282)](_0x1b3356(0x284)),(_0x46633d=this[_0x1b3356(0x287)])==null||_0x46633d[_0x1b3356(0x273)]();}[_0x40f3b6(0x1b8)](_0x20c742){var _0x28ce17=_0x40f3b6;if([_0x28ce17(0x27d),'not-following','offline'][_0x28ce17(0x24e)](this[_0x28ce17(0x255)])||!_0x20c742[_0x28ce17(0x23c)][_0x28ce17(0x1e4)]||_0x20c742[_0x28ce17(0x23c)][_0x28ce17(0x1e4)]===this[_0x28ce17(0x1bc)]['getMemberID']())return;this[_0x28ce17(0x255)]===_0x28ce17(0x28f)&&this[_0x28ce17(0x206)]();const _0x2316e1=_0x20c742[_0x28ce17(0x23c)][_0x28ce17(0x214)];Object['values'](_0x2316e1)['forEach'](_0x2de7eb=>{var _0x3a327f=_0x28ce17;this[_0x3a327f(0x1b6)][_0x3a327f(0x271)](_0x2de7eb['id'],_0x2de7eb[_0x3a327f(0x1d7)]?JSON[_0x3a327f(0x1ee)](_0x2de7eb[_0x3a327f(0x1d7)]):null,{'fromCollab':!0x0});});}[_0x40f3b6(0x1e9)](){var _0x439d2e=_0x40f3b6,_0x191590;this[_0x439d2e(0x1d8)][_0x439d2e(0x282)]('offline'),(_0x191590=this['_commandDisposable'])==null||_0x191590['dispose']();}[_0x40f3b6(0x221)](){var _0x314d37=_0x40f3b6;this[_0x314d37(0x1d8)][_0x314d37(0x282)](_0x314d37(0x28f)),this['_fetchOperations']();}},exports[_0x40f3b6(0x26b)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o[_0x40f3b6(0x203)])],exports[_0x40f3b6(0x26b)]);function A(){var _0x229b51=_0x40f3b6;const _0x17ebfe=p[_0x229b51(0x1f5)](exports[_0x229b51(0x1c1)]),_0x47b2df=p[_0x229b51(0x1f5)](o[_0x229b51(0x233)]),_0x2e3ddc=p['useObservable'](()=>_0x47b2df['getCurrentTypeOfUnit$'](o[_0x229b51(0x283)][_0x229b51(0x25f)]),void 0x0,!0x1,[]),[_0x316b1b,_0x3675e3]=f[_0x229b51(0x1da)](null),[_0x1f5779,_0x55b547]=f[_0x229b51(0x1da)](h[_0x229b51(0x1be)]),_0x39a756=f['useRef'](null);return f['useEffect'](()=>(_0x2e3ddc&&_0x17ebfe['getLiveShareCoordinator'](_0x2e3ddc['getUnitId']())[_0x229b51(0x1f4)](_0x3219a2=>{var _0x2c1ab3=_0x229b51;_0x3675e3(_0x3219a2),_0x39a756[_0x2c1ab3(0x242)]=_0x3219a2[_0x2c1ab3(0x1df)][_0x2c1ab3(0x1f6)](_0x8fee78=>{_0x55b547(_0x8fee78);});}),()=>{var _0x9a0c1f=_0x229b51,_0x5ebc91;(_0x5ebc91=_0x39a756[_0x9a0c1f(0x242)])==null||_0x5ebc91[_0x9a0c1f(0x1c9)](),_0x39a756[_0x9a0c1f(0x242)]=null;}),[_0x2e3ddc,_0x17ebfe]),_0x316b1b?l[_0x229b51(0x241)](g[_0x229b51(0x28d)],{'align':_0x229b51(0x25b),'disabled':_0x1f5779===h[_0x229b51(0x26f)],'className':_0x229b51(0x1b5),'overlay':l[_0x229b51(0x241)](B,{'status':_0x1f5779,'coordinator':_0x316b1b}),'children':l[_0x229b51(0x241)]('button',{'className':g[_0x229b51(0x23d)](_0x229b51(0x231),{'univer-cursor-not-allowed':_0x1f5779===h[_0x229b51(0x26f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f5779!==h[_0x229b51(0x26f)]}),'type':_0x229b51(0x21b),'children':l['jsx'](P,{'className':_0x229b51(0x1f1)})})}):null;}function B(_0x264a32){var _0x4a7b38=_0x40f3b6;const {status:_0x5d471b,coordinator:_0x160a98}=_0x264a32;switch(_0x5d471b){case h[_0x4a7b38(0x1be)]:return l[_0x4a7b38(0x241)](Y,{'coordinator':_0x160a98});case h[_0x4a7b38(0x278)]:return l[_0x4a7b38(0x241)](Z,{'coordinator':_0x160a98});case h['NOT_FOLLOWING']:return l[_0x4a7b38(0x241)](J,{'coordinator':_0x160a98});case h[_0x4a7b38(0x26f)]:return l[_0x4a7b38(0x241)](z,{});case h[_0x4a7b38(0x281)]:return l[_0x4a7b38(0x241)](K,{'coordinator':_0x160a98});default:return null;}}function Y(_0x10a75c){var _0x2ce312=_0x40f3b6;const {coordinator:_0x2678ef}=_0x10a75c;return l[_0x2ce312(0x1f0)](l['Fragment'],{'children':[l[_0x2ce312(0x241)](_0x2ce312(0x26d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x2ce312(0x241)](g[_0x2ce312(0x1c5)],{'onClick':()=>_0x2678ef['tryStartPresenting'](),'children':_0x2ce312(0x222)})]});}function Z(_0x522be0){var _0x9d122c=_0x40f3b6;const {coordinator:_0x553283}=_0x522be0;return l[_0x9d122c(0x1f0)](l['Fragment'],{'children':[l[_0x9d122c(0x241)](_0x9d122c(0x26d),{'className':_0x9d122c(0x1c2),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x9d122c(0x241)](g[_0x9d122c(0x1c5)],{'onClick':()=>_0x553283[_0x9d122c(0x1bb)](),'children':'Stop\x20following'})]});}function J(_0x24dfc2){var _0x553e8e=_0x40f3b6;const {coordinator:_0x286815}=_0x24dfc2;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x553e8e(0x209)}),l['jsx'](g['Button'],{'variant':'text','onClick':()=>_0x286815[_0x553e8e(0x290)](),'children':_0x553e8e(0x25c)})]});}function K(_0x4c747b){var _0x235bee=_0x40f3b6;const {coordinator:_0x32f6af}=_0x4c747b;return l['jsxs'](l[_0x235bee(0x1cb)],{'children':[l[_0x235bee(0x241)](_0x235bee(0x26d),{'className':_0x235bee(0x1c2),'children':_0x235bee(0x1d2)}),l[_0x235bee(0x241)](g[_0x235bee(0x1c5)],{'variant':_0x235bee(0x1b9),'onClick':()=>_0x32f6af['stopPresenting'](),'children':'Stop\x20presenting'})]});}function z(){var _0x1477e1=_0x40f3b6;return l[_0x1477e1(0x241)](l[_0x1477e1(0x1cb)],{'children':_0x1477e1(0x223)});}var Q=Object[_0x40f3b6(0x1bd)],X=(_0x4e0157,_0x3e9895,_0x5ae7b6,_0xf8286e)=>{var _0x1c2c8b=_0x40f3b6;for(var _0x5ba8a0=_0xf8286e>0x1?void 0x0:_0xf8286e?Q(_0x3e9895,_0x5ae7b6):_0x3e9895,_0x21f1ce=_0x4e0157[_0x1c2c8b(0x277)]-0x1,_0x45c11d;_0x21f1ce>=0x0;_0x21f1ce--)(_0x45c11d=_0x4e0157[_0x21f1ce])&&(_0x5ba8a0=_0x45c11d(_0x5ba8a0)||_0x5ba8a0);return _0x5ba8a0;},x=(_0x4e293a,_0x4a3d47)=>(_0x2e0903,_0xbafaa9)=>_0x4a3d47(_0x2e0903,_0xbafaa9,_0x4e293a);exports['DesktopLiveShareController']=class extends o[_0x40f3b6(0x1d3)]{constructor(_0x464e9f,_0x2754b7){var _0x5e264d=_0x40f3b6;super(),this[_0x5e264d(0x1d9)]=_0x464e9f,this[_0x5e264d(0x249)]=_0x2754b7,this[_0x5e264d(0x202)]();}['_mountLiveShare'](){var _0x27f7a0=_0x40f3b6;this['disposeWithMe'](this[_0x27f7a0(0x249)][_0x27f7a0(0x285)](p['BuiltInUIPart'][_0x27f7a0(0x257)],()=>p[_0x27f7a0(0x21a)](A,this[_0x27f7a0(0x1d9)])));}},exports[_0x40f3b6(0x22f)]=X([x(0x0,o[_0x40f3b6(0x225)](o['Injector'])),x(0x1,p[_0x40f3b6(0x248)])],exports['DesktopLiveShareController']);const ee='live-share.config',L={};var te=Object[_0x40f3b6(0x1bd)],ie=(_0x42d993,_0x2f4aa2,_0x6b1154,_0x28b470)=>{var _0x5a31e6=_0x40f3b6;for(var _0x536c7f=_0x28b470>0x1?void 0x0:_0x28b470?te(_0x2f4aa2,_0x6b1154):_0x2f4aa2,_0x5a7f80=_0x42d993[_0x5a31e6(0x277)]-0x1,_0x122910;_0x5a7f80>=0x0;_0x5a7f80--)(_0x122910=_0x42d993[_0x5a7f80])&&(_0x536c7f=_0x122910(_0x536c7f)||_0x536c7f);return _0x536c7f;},ne=(_0x27fc7c,_0x45b0d9)=>(_0x940f76,_0x76c23d)=>_0x45b0d9(_0x940f76,_0x76c23d,_0x27fc7c);let E=class extends o[_0x40f3b6(0x1d3)]{constructor(_0x381346){var _0x27e0f6=_0x40f3b6;super(),this['_liveShareService']=_0x381346,this[_0x27e0f6(0x253)]();}[_0x40f3b6(0x253)](){var _0x428de0=_0x40f3b6;[D[_0x428de0(0x1f2)]['id'],D[_0x428de0(0x230)]['id'],C[_0x428de0(0x23f)]['id']][_0x428de0(0x1ff)](_0x22d8b3=>{var _0x353763=_0x428de0;this[_0x353763(0x24d)](this[_0x353763(0x20f)]['registerSharedOperation'](_0x22d8b3));});}};E=ie([ne(0x0,o[_0x40f3b6(0x225)](O))],E);function _0x103f(_0x2b5b2d,_0x4b89f3){var _0x114633=_0x1146();return _0x103f=function(_0x103fe7,_0x582b37){_0x103fe7=_0x103fe7-0x1b4;var _0x472157=_0x114633[_0x103fe7];return _0x472157;},_0x103f(_0x2b5b2d,_0x4b89f3);}var re=Object[_0x40f3b6(0x286)],se=Object[_0x40f3b6(0x1bd)],oe=(_0xcb4a2f,_0x459fce,_0x438e55)=>_0x459fce in _0xcb4a2f?re(_0xcb4a2f,_0x459fce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x438e55}):_0xcb4a2f[_0x459fce]=_0x438e55,ae=(_0x3b72cb,_0x1e7f45,_0x75be82,_0x5b7bc4)=>{var _0x2b8d8a=_0x40f3b6;for(var _0xdfc942=_0x5b7bc4>0x1?void 0x0:_0x5b7bc4?se(_0x1e7f45,_0x75be82):_0x1e7f45,_0x5dd6a6=_0x3b72cb[_0x2b8d8a(0x277)]-0x1,_0x4fa114;_0x5dd6a6>=0x0;_0x5dd6a6--)(_0x4fa114=_0x3b72cb[_0x5dd6a6])&&(_0xdfc942=_0x4fa114(_0xdfc942)||_0xdfc942);return _0xdfc942;},N=(_0x594c1b,_0x3ef822)=>(_0x56ea4f,_0xca402c)=>_0x3ef822(_0x56ea4f,_0xca402c,_0x594c1b),T=(_0x244164,_0x363385,_0x22ecf3)=>oe(_0x244164,typeof _0x363385!=_0x40f3b6(0x1e8)?_0x363385+'':_0x363385,_0x22ecf3);const le=_0x40f3b6(0x1e3);exports[_0x40f3b6(0x25e)]=class extends o[_0x40f3b6(0x256)]{constructor(_0x25296d=L,_0x282296,_0x1af854){var _0x58d610=_0x40f3b6;super(),this[_0x58d610(0x1f3)]=_0x25296d,this['_injector']=_0x282296,this[_0x58d610(0x260)]=_0x1af854;const {..._0x4517a2}=o['merge']({},L,this['_config']);this['_configService']['setConfig'](ee,_0x4517a2);}[_0x40f3b6(0x1ec)](){var _0x50a90d=_0x40f3b6;o[_0x50a90d(0x22b)](this[_0x50a90d(0x1d9)],o[_0x50a90d(0x293)]([[O],[exports[_0x50a90d(0x1c1)]],[E],[exports[_0x50a90d(0x22f)]]],this[_0x50a90d(0x1f3)][_0x50a90d(0x268)])),o[_0x50a90d(0x238)](this[_0x50a90d(0x1d9)],[[E]]);}[_0x40f3b6(0x1eb)](){var _0x50c725=_0x40f3b6;o[_0x50c725(0x238)](this[_0x50c725(0x1d9)],[[exports[_0x50c725(0x22f)]]]);}},T(exports[_0x40f3b6(0x25e)],_0x40f3b6(0x1dc),o[_0x40f3b6(0x283)][_0x40f3b6(0x20a)]),T(exports[_0x40f3b6(0x25e)],_0x40f3b6(0x27a),le),exports[_0x40f3b6(0x25e)]=ae([o['DependentOn'](m[_0x40f3b6(0x21e)]),N(0x1,o[_0x40f3b6(0x225)](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x40f3b6(0x25e)]),exports['LiveShare']=A,exports[_0x40f3b6(0x218)]=O,exports[_0x40f3b6(0x1ca)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0xa07ab4=_0x178e;(function(_0x480754,_0x3be388){var _0x4a7549=_0x178e,_0x2fc041=_0x480754();while(!![]){try{var _0x156529=parseInt(_0x4a7549(0x109))/0x1*(parseInt(_0x4a7549(0x111))/0x2)+-parseInt(_0x4a7549(0xfc))/0x3*(parseInt(_0x4a7549(0x9c))/0x4)+-parseInt(_0x4a7549(0x90))/0x5+parseInt(_0x4a7549(0xaf))/0x6*(-parseInt(_0x4a7549(0xb0))/0x7)+-parseInt(_0x4a7549(0x112))/0x8*(-parseInt(_0x4a7549(0x123))/0x9)+-parseInt(_0x4a7549(0xe0))/0xa+parseInt(_0x4a7549(0xe1))/0xb;if(_0x156529===_0x3be388)break;else _0x2fc041['push'](_0x2fc041['shift']());}catch(_0x4076fc){_0x2fc041['push'](_0x2fc041['shift']());}}}(_0x185c,0x9922c));var q=Object[_0xa07ab4(0x86)],z=(_0x43f17a,_0xf41fd5,_0x342756)=>_0xf41fd5 in _0x43f17a?q(_0x43f17a,_0xf41fd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x342756}):_0x43f17a[_0xf41fd5]=_0x342756,d=(_0x3e8aab,_0x5f198a,_0x1e8cd6)=>z(_0x3e8aab,typeof _0x5f198a!=_0xa07ab4(0x10e)?_0x5f198a+'':_0x5f198a,_0x1e8cd6);import{Disposable as _0x1e6e0c,toDisposable as _0x5182ea,IUniverInstanceService as _0x1607da,Inject as _0x354fd2,Injector as _0x4a1d22,IConfigService as _0x5b22d7,ICommandService as _0x5e2b20,RxDisposable as _0x25f604,UniverInstanceType as _0x511684,DisposableCollection as _0x5dbdb9,CommandType as _0x3ece4a,DependentOn as _0x26a32a,Plugin as _0x347543,merge as _0x579cd2,registerDependencies as _0x5d09aa,mergeOverrideWithDependencies as _0x378502,touchDependencies as _0x5c5361}from'@univerjs/core';import{useDependency as _0x56de89,useObservable as _0x338148,IUIPartsService as _0x1708ce,BuiltInUIPart as _0x1cc547,connectInjector as _0x53741c}from'@univerjs/ui';import{jsx as _0x1261c7,jsxs as _0x54d46f,Fragment as _0x1d6819}from'react/jsx-runtime';import{Dropdown as _0x247715,clsx as _0x2c649c,Button as _0x1aa6e9}from'@univerjs/design';import{forwardRef as _0x39c36a,useRef as _0x105803,createElement as _0x301253,useState as _0x2b8a00,useEffect as _0x9070dc}from'react';import{CollaborationEvent as _0x4646a8,parseProtocolChangeset as _0x29dff5}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bb6ab,SessionStatus as _0x3f3bf1,UniverCollaborationClientPlugin as _0xc10544}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3659ed,SetWorksheetActiveOperation as _0xa53257}from'@univerjs/sheets';function _0x185c(){var _0x328187=['displayName','next','You\x27are\x20offline.','_entities','440214YMiehn','49qUNlNQ','div','Start','hasOwnProperty','UNIVER_SHEET','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','toString','LiveShareIcon','defIds','map','presenting','stopPresenting','_commandDisposable','_status','_configService','registerComponent','add','not-following','getMemberID','complete','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','subscribe','univer-size-4','trim','_liveShareService','getCurrentTypeOfUnit$','_presenter','type','LIVESHARE_NEW_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','_startPresenting','NEW_CHANGESETS','OFFLINE','shouldShareOperation','following','disposeWithMe','clear','icon','_init','getOwnPropertySymbols','1em','prototype','_handleNewChangeSets','PRESENTING','default','8922870Hggmie','15726359yciAuk','concat','evenodd','_stopFollowing','_startFollowing','_handleOnline','_config','_handleOperation','unitId','stringify','_sharedOperations','setConfig','params','random','status$','colorChannel1','values','univerjs-icon\x20univerjs-icon-','You\x27re\x20presenting\x20the\x20document','requireSession','fill','pipe','memberID','end','unsubscribe','entries','_univerInstanceService','3OyDMyk','0\x200\x2017\x2017','getLiveShareCoordinator','string','extend','apply','live-share-icon','http://www.w3.org/2000/svg','_injector','ONLINE','registerInitialStateReporter','currentColor','current','68388TDanxJ','has','attrs','FOLLOWING','tryStartPresenting','symbol','_status$','indexOf','22XJMXXC','8jRUmtE','from','_collabSessionService','idle','tag','LIVESHARE_TERMINATE','className','_commandService','onRendered','dispose','asObservable','use','offline','executeCommand','stopFollowing','mask','length','6241608QTXNZm','find','dispose$','children','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','getInitialStates','mutations','live-share.config','delete','getConfig','_handleTerminate','_reporters','HEADER_MENU','then','set','_unitID','Start\x20following','defineProperty','onCommandExecuted','registerSharedOperation','getUnitId','includes','forEach','propertyIsEnumerable','path','presenter','operations','274180szcHJS','call','idSuffix','onStarting','_beIdle','get','LIVESHARE_FETCH_OPERATIONS','_fetchOperations','defs','send','_collabSession','You\x27re\x20following\x20the\x20presenter','3149996wcEpKJ','replace','xlink:href','override','LIVESHARE_OPERATION','_mountLiveShare','_uiPartsService','OPERATION','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','_startLiveShareCoordinator','createInstance','sessionStatus$','assign','data'];_0x185c=function(){return _0x328187;};return _0x185c();}import{BehaviorSubject as _0x45b7bf,Subject as _0x14606f}from'rxjs';import{takeUntil as _0x172f19,throttleTime as _0x4451f8}from'rxjs/operators';import{SetZoomRatioOperation as _0x5d01a1,SetScrollOperation as _0x125601}from'@univerjs/sheets-ui';var c=function(){var _0x150579=_0xa07ab4;return c=Object[_0x150579(0xa9)]||function(_0x2bd269){var _0x1eac49=_0x150579;for(var _0x57abd0,_0x22eb1f=0x1,_0x4cd473=arguments[_0x1eac49(0x122)];_0x22eb1f<_0x4cd473;_0x22eb1f++){_0x57abd0=arguments[_0x22eb1f];for(var _0x38c76b in _0x57abd0)Object[_0x1eac49(0xdc)][_0x1eac49(0xb3)]['call'](_0x57abd0,_0x38c76b)&&(_0x2bd269[_0x38c76b]=_0x57abd0[_0x38c76b]);}return _0x2bd269;},c[_0x150579(0x101)](this,arguments);},Oe=function(_0x2695d2,_0x3d40b1){var _0x4d578f=_0xa07ab4,_0x1c987b={};for(var _0x412b47 in _0x2695d2)Object[_0x4d578f(0xdc)][_0x4d578f(0xb3)][_0x4d578f(0x91)](_0x2695d2,_0x412b47)&&_0x3d40b1[_0x4d578f(0x110)](_0x412b47)<0x0&&(_0x1c987b[_0x412b47]=_0x2695d2[_0x412b47]);if(_0x2695d2!=null&&typeof Object[_0x4d578f(0xda)]=='function'){for(var _0x1c00d6=0x0,_0x412b47=Object[_0x4d578f(0xda)](_0x2695d2);_0x1c00d6<_0x412b47[_0x4d578f(0x122)];_0x1c00d6++)_0x3d40b1['indexOf'](_0x412b47[_0x1c00d6])<0x0&&Object[_0x4d578f(0xdc)][_0x4d578f(0x8c)][_0x4d578f(0x91)](_0x2695d2,_0x412b47[_0x1c00d6])&&(_0x1c987b[_0x412b47[_0x1c00d6]]=_0x2695d2[_0x412b47[_0x1c00d6]]);}return _0x1c987b;},W=_0x39c36a(function(_0x7799a,_0x55085b){var _0x22c85b=_0xa07ab4,_0x4e97d1=_0x7799a[_0x22c85b(0xd8)],_0x10df0e=_0x7799a['id'],_0x18ae91=_0x7799a['className'],_0x4025dc=_0x7799a[_0x22c85b(0x100)],_0x5aebe1=Oe(_0x7799a,[_0x22c85b(0xd8),'id',_0x22c85b(0x118),_0x22c85b(0x100)]),_0x56e8f0=_0x22c85b(0xf2)[_0x22c85b(0xe2)](_0x10df0e,'\x20')[_0x22c85b(0xe2)](_0x18ae91||'')[_0x22c85b(0xc9)](),_0x37b1f6=_0x105803('_'['concat'](Ne()));return Y(_0x4e97d1,''['concat'](_0x10df0e),{'defIds':_0x4e97d1[_0x22c85b(0xb9)],'idSuffix':_0x37b1f6[_0x22c85b(0x108)]},c({'ref':_0x55085b,'className':_0x56e8f0},_0x5aebe1),_0x4025dc);});function Y(_0x1405bc,_0x71b8e2,_0x4e8e82,_0x43c2e5,_0x176f8f){var _0x489221=_0xa07ab4;return _0x301253(_0x1405bc[_0x489221(0x116)],c(c({'key':_0x71b8e2},Ee(_0x1405bc,_0x4e8e82,_0x176f8f)),_0x43c2e5),(we(_0x1405bc,_0x4e8e82)[_0x489221(0x126)]||[])[_0x489221(0xba)](function(_0x26be3f,_0x50f368){var _0x4a7bf8=_0x489221;return Y(_0x26be3f,''[_0x4a7bf8(0xe2)](_0x71b8e2,'-')[_0x4a7bf8(0xe2)](_0x1405bc['tag'],'-')[_0x4a7bf8(0xe2)](_0x50f368),_0x4e8e82,void 0x0,_0x176f8f);}));}function Ee(_0x23366f,_0x92b96b,_0x4380b9){var _0x3f63a1=_0xa07ab4,_0x5f0c85=c({},_0x23366f['attrs']);_0x4380b9!=null&&_0x4380b9[_0x3f63a1(0xf0)]&&_0x5f0c85[_0x3f63a1(0xf5)]===_0x3f63a1(0xf0)&&(_0x5f0c85[_0x3f63a1(0xf5)]=_0x4380b9[_0x3f63a1(0xf0)]),_0x23366f['tag']===_0x3f63a1(0x121)&&_0x5f0c85['id']&&(_0x5f0c85['id']=_0x5f0c85['id']+_0x92b96b[_0x3f63a1(0x92)]),Object[_0x3f63a1(0xfa)](_0x5f0c85)['forEach'](function(_0x59063c){var _0x21380c=_0x3f63a1,_0x18c68f=_0x59063c[0x0],_0x121a36=_0x59063c[0x1];_0x18c68f===_0x21380c(0x121)&&typeof _0x121a36=='string'&&(_0x5f0c85[_0x18c68f]=_0x121a36[_0x21380c(0x9d)](/url\(#(.*)\)/,_0x21380c(0x128)[_0x21380c(0xe2)](_0x92b96b[_0x21380c(0x92)],')')));});var _0x4b9124=_0x92b96b[_0x3f63a1(0xb9)];return!_0x4b9124||_0x4b9124['length']===0x0||(_0x23366f[_0x3f63a1(0x116)]===_0x3f63a1(0x11d)&&_0x5f0c85[_0x3f63a1(0x9e)]&&(_0x5f0c85[_0x3f63a1(0x9e)]=_0x5f0c85[_0x3f63a1(0x9e)]+_0x92b96b[_0x3f63a1(0x92)]),Object[_0x3f63a1(0xfa)](_0x5f0c85)[_0x3f63a1(0x8b)](function(_0xfb87aa){var _0x51ac30=_0x3f63a1,_0x5985e7=_0xfb87aa[0x0],_0x1e2b58=_0xfb87aa[0x1];typeof _0x1e2b58=='string'&&(_0x5f0c85[_0x5985e7]=_0x1e2b58['replace'](/url\(#(.*)\)/,'url(#$1'[_0x51ac30(0xe2)](_0x92b96b[_0x51ac30(0x92)],')')));})),_0x5f0c85;}function we(_0x3ccbfb,_0x1eef2c){var _0x4d0b3b=_0xa07ab4,_0x9fdb6a,_0x32a12a=_0x1eef2c[_0x4d0b3b(0xb9)];return!_0x32a12a||_0x32a12a['length']===0x0?_0x3ccbfb:_0x3ccbfb['tag']===_0x4d0b3b(0x98)&&(!((_0x9fdb6a=_0x3ccbfb[_0x4d0b3b(0x126)])===null||_0x9fdb6a===void 0x0)&&_0x9fdb6a[_0x4d0b3b(0x122)])?c(c({},_0x3ccbfb),{'children':_0x3ccbfb['children'][_0x4d0b3b(0xba)](function(_0x2ebaaa){var _0x2e59db=_0x4d0b3b;return typeof _0x2ebaaa[_0x2e59db(0x10b)]['id']==_0x2e59db(0xff)&&_0x32a12a&&_0x32a12a[_0x2e59db(0x8a)](_0x2ebaaa[_0x2e59db(0x10b)]['id'])?c(c({},_0x2ebaaa),{'attrs':c(c({},_0x2ebaaa['attrs']),{'id':_0x2ebaaa[_0x2e59db(0x10b)]['id']+_0x1eef2c['idSuffix']})}):_0x2ebaaa;})}):_0x3ccbfb;}function Ne(){var _0x2c7211=_0xa07ab4;return Math[_0x2c7211(0xee)]()[_0x2c7211(0xb7)](0x24)['substring'](0x2,0x8);}W[_0xa07ab4(0xab)]='UniverIcon';var Ce={'tag':_0xa07ab4(0xd0),'attrs':{'xmlns':_0xa07ab4(0x103),'fill':'none','viewBox':_0xa07ab4(0xfd),'width':_0xa07ab4(0xdb),'height':_0xa07ab4(0xdb)},'children':[{'tag':_0xa07ab4(0x8d),'attrs':{'fill':_0xa07ab4(0x107),'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':_0xa07ab4(0x8d),'attrs':{'fill':_0xa07ab4(0x107),'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':_0xa07ab4(0xe3),'clipRule':'evenodd'}}]},B=_0x39c36a(function(_0xe0d440,_0x206471){var _0x5d88f4=_0xa07ab4;return _0x301253(W,Object[_0x5d88f4(0xa9)]({},_0xe0d440,{'id':_0x5d88f4(0x102),'ref':_0x206471,'icon':Ce}));});B['displayName']=_0xa07ab4(0xb8);class L extends _0x1e6e0c{constructor(){var _0x1cdf2e=_0xa07ab4;super(...arguments),d(this,_0x1cdf2e(0xeb),new Set()),d(this,_0x1cdf2e(0x80),new Set());}[_0xa07ab4(0x88)](_0x3dd6fe){var _0xd2220=_0xa07ab4;return this[_0xd2220(0xeb)][_0xd2220(0xc1)](_0x3dd6fe),_0x5182ea(()=>this[_0xd2220(0xeb)]['delete'](_0x3dd6fe));}[_0xa07ab4(0x106)](_0x5ead55){var _0x1e73a0=_0xa07ab4;return this[_0x1e73a0(0x80)]['add'](_0x5ead55),_0x5182ea(()=>this[_0x1e73a0(0x80)][_0x1e73a0(0x7d)](_0x5ead55));}[_0xa07ab4(0xd4)](_0x47a6b2){var _0xb4dda1=_0xa07ab4;return this[_0xb4dda1(0xeb)][_0xb4dda1(0x10a)](_0x47a6b2);}[_0xa07ab4(0x129)](_0x33279a){var _0x2fe9c9=_0xa07ab4;return Array[_0x2fe9c9(0x113)](this[_0x2fe9c9(0x80)])[_0x2fe9c9(0xba)](_0x2da1ca=>_0x2da1ca(_0x33279a));}}var De=Object[_0xa07ab4(0xb5)],Z=(_0x45573c,_0x31e072,_0x2bdd12,_0x1be060)=>{for(var _0x251bbc=_0x1be060>0x1?void 0x0:_0x1be060?De(_0x31e072,_0x2bdd12):_0x31e072,_0x2e1bc0=_0x45573c['length']-0x1,_0x213241;_0x2e1bc0>=0x0;_0x2e1bc0--)(_0x213241=_0x45573c[_0x2e1bc0])&&(_0x251bbc=_0x213241(_0x251bbc)||_0x251bbc);return _0x251bbc;},f=(_0x1cb94e,_0x5daaa0)=>(_0x4f76c9,_0x895511)=>_0x5daaa0(_0x4f76c9,_0x895511,_0x1cb94e);let m=class extends _0x25f604{constructor(_0x28678a,_0x5bdf3c,_0x1d2c01){var _0x42849b=_0xa07ab4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x28678a,this[_0x42849b(0x104)]=_0x5bdf3c,this[_0x42849b(0x114)]=_0x1d2c01,this[_0x42849b(0xd9)]());}async[_0xa07ab4(0xfe)](_0x41aea6){var _0x18ba81=_0xa07ab4;return this[_0x18ba81(0xae)]['has'](_0x41aea6)||await this[_0x18ba81(0xa6)](_0x41aea6),this[_0x18ba81(0xae)][_0x18ba81(0x95)](_0x41aea6);}[_0xa07ab4(0xd9)](){var _0x1b88bb=_0xa07ab4;this[_0x1b88bb(0xfb)][_0x1b88bb(0xc5)](_0x511684['UNIVER_SHEET'])[_0x1b88bb(0xf6)](_0x172f19(this[_0x1b88bb(0x125)]))[_0x1b88bb(0xc7)](async _0x19f8e2=>{var _0xb3b5ea=_0x1b88bb;const _0x6f1295=_0x19f8e2['getUnitId']();this[_0xb3b5ea(0xae)]['has'](_0x6f1295)||this['_startLiveShareCoordinator'](_0x6f1295);}),this[_0x1b88bb(0xfb)]['getTypeOfUnitDisposed$'](_0x511684[_0x1b88bb(0xb4)])[_0x1b88bb(0xf6)](_0x172f19(this[_0x1b88bb(0x125)]))[_0x1b88bb(0xc7)](_0x18f75f=>{var _0x1cae7=_0x1b88bb;const _0x156d91=_0x18f75f[_0x1cae7(0x89)](),_0x2b30ee=this[_0x1cae7(0xae)][_0x1cae7(0x95)](_0x156d91);_0x2b30ee==null||_0x2b30ee['dispose']();});}async[_0xa07ab4(0xa6)](_0xf7a04e){var _0x1d65a8=_0xa07ab4;const _0x43cfdb=await this[_0x1d65a8(0x114)][_0x1d65a8(0xf4)](_0xf7a04e),_0x102fca=this[_0x1d65a8(0x104)][_0x1d65a8(0xa7)](C,_0xf7a04e,_0x43cfdb);return _0x102fca['init'](),this['_entities'][_0x1d65a8(0x83)](_0xf7a04e,_0x102fca),_0x102fca;}};m=Z([f(0x0,_0x1607da),f(0x1,_0x354fd2(_0x4a1d22)),f(0x2,_0x354fd2(_0x3bb6ab))],m);var h=(_0x467b57=>(_0x467b57[_0xa07ab4(0xd3)]='offline',_0x467b57['IDLE']=_0xa07ab4(0x115),_0x467b57['FOLLOWING']=_0xa07ab4(0xd5),_0x467b57['NOT_FOLLOWING']=_0xa07ab4(0xc2),_0x467b57[_0xa07ab4(0xde)]=_0xa07ab4(0xbb),_0x467b57))(h||{});const xe=_0xa07ab4(0xa4),Le=0xc8;let C=class extends _0x25f604{constructor(_0x318000,_0x4062bd,_0x5cb229,_0x35e5ad,_0x34c708){var _0x4cca25=_0xa07ab4;super(),d(this,_0x4cca25(0x10f),new _0x45b7bf(_0x4cca25(0x115))),d(this,'status$',this[_0x4cca25(0x10f)][_0x4cca25(0x11c)]()),d(this,_0x4cca25(0xd9),!0x1),d(this,_0x4cca25(0xbd),null),d(this,_0x4cca25(0xcc),null),(this[_0x4cca25(0x84)]=_0x318000,this[_0x4cca25(0x9a)]=_0x4062bd,this[_0x4cca25(0xbf)]=_0x5cb229,this['_liveShareService']=_0x35e5ad,this['_commandService']=_0x34c708);}get[_0xa07ab4(0xbe)](){return this['_status$']['getValue']();}[_0xa07ab4(0x11b)](){var _0x3b59a7=_0xa07ab4,_0x3400a7;(_0x3400a7=this['_commandDisposable'])==null||_0x3400a7['dispose'](),this[_0x3b59a7(0x10f)][_0x3b59a7(0xac)]('idle'),this['_status$'][_0x3b59a7(0xc4)]();}['init'](){var _0x165e43=_0xa07ab4;this[_0x165e43(0xd9)]||(this[_0x165e43(0xd9)]=!0x0,this['_collabSession'][_0x165e43(0xa8)][_0x165e43(0xf6)](_0x172f19(this['dispose$']))[_0x165e43(0xc7)](_0xdff43=>{var _0x536c3c=_0x165e43;switch(_0xdff43){case _0x3f3bf1[_0x536c3c(0xd3)]:this['_handleOffline']();break;case _0x3f3bf1[_0x536c3c(0x105)]:this[_0x536c3c(0xe6)]();break;}}),this[_0x165e43(0x9a)]['event$'][_0x165e43(0xf6)](_0x172f19(this[_0x165e43(0x125)]))[_0x165e43(0xc7)](_0x365957=>{var _0x48dfc8=_0x165e43;const {eventID:_0x5342b0}=_0x365957;switch(_0x5342b0){case _0x4646a8[_0x48dfc8(0xce)]:this['_handleNewHost'](_0x365957);break;case _0x4646a8[_0x48dfc8(0xa0)]:this[_0x48dfc8(0xe8)](_0x365957);break;case _0x4646a8[_0x48dfc8(0x117)]:this[_0x48dfc8(0x7f)]();break;case _0x4646a8[_0x48dfc8(0xd2)]:this[_0x48dfc8(0xdd)](_0x365957);break;}}));}[_0xa07ab4(0x10d)](){var _0x2274e7=_0xa07ab4;this[_0x2274e7(0x9a)][_0x2274e7(0x99)]({'eventID':_0x4646a8[_0x2274e7(0xb6)],'data':{'unitID':this[_0x2274e7(0x84)],'userID':this[_0x2274e7(0x9a)][_0x2274e7(0xc3)]()}},this['_unitID']);}[_0xa07ab4(0xbc)](){var _0x5bfb15=_0xa07ab4;this[_0x5bfb15(0xbe)]===_0x5bfb15(0xbb)&&(this[_0x5bfb15(0x10f)][_0x5bfb15(0xac)](_0x5bfb15(0x115)),this['_collabSession'][_0x5bfb15(0x99)]({'eventID':_0x4646a8[_0x5bfb15(0x117)],'data':{'unitID':this[_0x5bfb15(0x84)]}},this[_0x5bfb15(0x84)]));}['startFollowing'](){var _0x3b9604=_0xa07ab4;this['_status']==='not-following'&&(this[_0x3b9604(0x10f)]['next']('following'),this[_0x3b9604(0xe5)]());}[_0xa07ab4(0x120)](){var _0x1e7c40=_0xa07ab4;this[_0x1e7c40(0xbe)]===_0x1e7c40(0xd5)&&this['_stopFollowing']();}['_handleNewHost'](_0x4cf4c3){var _0x45573f=_0xa07ab4;const {presenter:_0x2e9ebf}=_0x4cf4c3[_0x45573f(0xaa)],_0x1d1319=this[_0x45573f(0x9a)][_0x45573f(0xc3)]();this[_0x45573f(0xcc)]=_0x2e9ebf,_0x2e9ebf===_0x1d1319?(this['_stopFollowing'](),this[_0x45573f(0xd1)]()):this[_0x45573f(0xbe)]!==_0x45573f(0xc2)&&(this[_0x45573f(0xa5)](),this['_startFollowing']());}[_0xa07ab4(0x97)](){var _0x33bd98=_0xa07ab4;const _0x24f319={'eventID':_0x4646a8[_0x33bd98(0x96)]};this[_0x33bd98(0x9a)][_0x33bd98(0x99)](_0x24f319,this[_0x33bd98(0x84)]);}[_0xa07ab4(0x7f)](){var _0x3973bb=_0xa07ab4;this[_0x3973bb(0xcc)]=null,this[_0x3973bb(0xbe)]!==_0x3973bb(0xbb)&&this[_0x3973bb(0x94)]();}[_0xa07ab4(0xdd)](_0x281780){var _0xa4fc=_0xa07ab4;if(this['_status']===_0xa4fc(0xd5)&&this[_0xa4fc(0xcc)]===_0x281780['data'][_0xa4fc(0xf7)]){const _0x2942d8=_0x29dff5(_0x281780['data'])[_0xa4fc(0x12a)]['reverse']()[_0xa4fc(0x124)](_0x4e86c5=>_0x4e86c5['id']===_0x3659ed['id']);if(_0x2942d8){const _0x2d9ed6=_0x2942d8[_0xa4fc(0xed)][_0xa4fc(0xe9)],_0x512640=_0x2942d8[_0xa4fc(0xed)]['sheet']['id'];setTimeout(()=>{var _0x2018c2=_0xa4fc;this[_0x2018c2(0x119)][_0x2018c2(0x11f)](_0xa53257['id'],{'unitId':_0x2d9ed6,'subUnitId':_0x512640},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xf844b=_0xa07ab4;this[_0xf844b(0x10f)][_0xf844b(0xac)]('presenting');const _0x4bc36b=new Map(),_0x44e209=this['_commandDisposable']=new _0x5dbdb9();_0x44e209['add'](_0x5182ea(()=>{var _0xaaf85c=_0xf844b;_0x4bc36b[_0xaaf85c(0x8b)](_0x3334b4=>_0x3334b4[_0xaaf85c(0xc4)]()),_0x4bc36b[_0xaaf85c(0xd7)]();})),_0x44e209['add'](this['_commandService'][_0xf844b(0x87)](_0x1518a2=>{var _0x594594=_0xf844b,_0x450fcc;if(_0x1518a2[_0x594594(0xcd)]!==_0x3ece4a[_0x594594(0xa3)]||!this[_0x594594(0xca)][_0x594594(0xd4)](_0x1518a2['id']))return;const {id:_0x417f60}=_0x1518a2;let _0x52a748;_0x4bc36b[_0x594594(0x10a)](_0x417f60)?_0x52a748=_0x4bc36b['get'](_0x417f60):(_0x52a748=new _0x14606f(),_0x4bc36b[_0x594594(0x83)](_0x417f60,_0x52a748),_0x52a748[_0x594594(0xf6)](_0x4451f8((_0x450fcc=this[_0x594594(0xbf)][_0x594594(0x7e)](xe))!=null?_0x450fcc:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x594594(0xc7)](_0x4325a9=>{var _0x422250=_0x594594;this[_0x422250(0x9a)][_0x422250(0x99)]({'eventID':_0x4646a8[_0x422250(0xa0)],'data':{'unitID':this[_0x422250(0x84)],'operations':{[_0x4325a9['id']]:{'id':_0x4325a9['id'],'params':JSON[_0x422250(0xea)](_0x4325a9[_0x422250(0xed)])}}}},this[_0x422250(0x84)]);})),_0x52a748[_0x594594(0xac)](_0x1518a2);})),this[_0xf844b(0xca)][_0xf844b(0x129)](this[_0xf844b(0x84)])[_0xf844b(0x8b)](_0x5b788f=>this[_0xf844b(0x9a)][_0xf844b(0x99)]({'eventID':_0x4646a8[_0xf844b(0xa0)],'data':{'unitID':this['_unitID'],'operations':{[_0x5b788f['id']]:{'id':_0x5b788f['id'],'params':JSON[_0xf844b(0xea)](_0x5b788f[_0xf844b(0xed)])}}}},this[_0xf844b(0x84)]));}[_0xa07ab4(0xa5)](){var _0x5b800=_0xa07ab4,_0x120f0a;this[_0x5b800(0x10f)][_0x5b800(0xac)]('idle'),(_0x120f0a=this[_0x5b800(0xbd)])==null||_0x120f0a['dispose'](),this[_0x5b800(0xbd)]=null;}[_0xa07ab4(0xe5)](){var _0x41cf93=_0xa07ab4,_0x47769c;(_0x47769c=this[_0x41cf93(0xbd)])==null||_0x47769c[_0x41cf93(0x11b)](),this[_0x41cf93(0x10f)][_0x41cf93(0xac)](_0x41cf93(0xd5));}[_0xa07ab4(0x94)](){var _0x8fe525=_0xa07ab4,_0x33e42e;this['_status$']['next']('idle'),(_0x33e42e=this[_0x8fe525(0xbd)])==null||_0x33e42e[_0x8fe525(0x11b)](),this[_0x8fe525(0xbd)]=null;}[_0xa07ab4(0xe4)](){var _0x318c5b=_0xa07ab4,_0x2c6242;this[_0x318c5b(0x10f)][_0x318c5b(0xac)](_0x318c5b(0xc2)),(_0x2c6242=this[_0x318c5b(0xbd)])==null||_0x2c6242['dispose']();}[_0xa07ab4(0xe8)](_0x19978b){var _0x3d834e=_0xa07ab4;if([_0x3d834e(0xbb),_0x3d834e(0xc2),_0x3d834e(0x11e)][_0x3d834e(0x8a)](this[_0x3d834e(0xbe)])||!_0x19978b['data'][_0x3d834e(0x8e)]||_0x19978b[_0x3d834e(0xaa)][_0x3d834e(0x8e)]===this[_0x3d834e(0x9a)][_0x3d834e(0xc3)]())return;this[_0x3d834e(0xbe)]===_0x3d834e(0x115)&&this[_0x3d834e(0xe5)]();const _0x19ef71=_0x19978b[_0x3d834e(0xaa)][_0x3d834e(0x8f)];Object[_0x3d834e(0xf1)](_0x19ef71)[_0x3d834e(0x8b)](_0x110c98=>{var _0x5b1e1d=_0x3d834e;this[_0x5b1e1d(0x119)][_0x5b1e1d(0x11f)](_0x110c98['id'],_0x110c98[_0x5b1e1d(0xed)]?JSON['parse'](_0x110c98[_0x5b1e1d(0xed)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3e0014=_0xa07ab4,_0x289b76;this[_0x3e0014(0x10f)][_0x3e0014(0xac)](_0x3e0014(0x11e)),(_0x289b76=this[_0x3e0014(0xbd)])==null||_0x289b76['dispose']();}['_handleOnline'](){var _0x30a49c=_0xa07ab4;this[_0x30a49c(0x10f)][_0x30a49c(0xac)](_0x30a49c(0x115)),this[_0x30a49c(0x97)]();}};function _0x178e(_0x298759,_0x6dc9e2){var _0x185cf4=_0x185c();return _0x178e=function(_0x178e3d,_0x51b00f){_0x178e3d=_0x178e3d-0x7c;var _0x4e23a9=_0x185cf4[_0x178e3d];return _0x4e23a9;},_0x178e(_0x298759,_0x6dc9e2);}C=Z([f(0x2,_0x5b22d7),f(0x3,_0x354fd2(L)),f(0x4,_0x5e2b20)],C);function ye(){var _0x39fdd3=_0xa07ab4;const _0x274c48=_0x56de89(m),_0x472348=_0x56de89(_0x1607da),_0x19d5aa=_0x338148(()=>_0x472348[_0x39fdd3(0xcb)](_0x511684[_0x39fdd3(0xb4)]),void 0x0,!0x1,[]),[_0x57168d,_0x50a3b5]=_0x2b8a00(null),[_0x4215d9,_0x2328a8]=_0x2b8a00(h['IDLE']),_0x1bce20=_0x105803(null);return _0x9070dc(()=>(_0x19d5aa&&_0x274c48[_0x39fdd3(0xfe)](_0x19d5aa[_0x39fdd3(0x89)]())[_0x39fdd3(0x82)](_0x287e5f=>{var _0x279349=_0x39fdd3;_0x50a3b5(_0x287e5f),_0x1bce20[_0x279349(0x108)]=_0x287e5f[_0x279349(0xef)][_0x279349(0xc7)](_0x312799=>{_0x2328a8(_0x312799);});}),()=>{var _0x33ace2=_0x39fdd3,_0x3541a2;(_0x3541a2=_0x1bce20['current'])==null||_0x3541a2[_0x33ace2(0xf9)](),_0x1bce20[_0x33ace2(0x108)]=null;}),[_0x19d5aa,_0x274c48]),_0x57168d?_0x1261c7(_0x247715,{'align':_0x39fdd3(0xf8),'disabled':_0x4215d9===h[_0x39fdd3(0xd3)],'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':_0x1261c7(Re,{'status':_0x4215d9,'coordinator':_0x57168d}),'children':_0x1261c7('button',{'className':_0x2c649c(_0x39fdd3(0xc6),{'univer-cursor-not-allowed':_0x4215d9===h[_0x39fdd3(0xd3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4215d9!==h[_0x39fdd3(0xd3)]}),'type':'button','children':_0x1261c7(B,{'className':_0x39fdd3(0xc8)})})}):null;}function Re(_0x2ef4df){var _0x15b51b=_0xa07ab4;const {status:_0x5d9824,coordinator:_0x8b4e2}=_0x2ef4df;switch(_0x5d9824){case h['IDLE']:return _0x1261c7(Pe,{'coordinator':_0x8b4e2});case h[_0x15b51b(0x10c)]:return _0x1261c7(Ae,{'coordinator':_0x8b4e2});case h['NOT_FOLLOWING']:return _0x1261c7(Te,{'coordinator':_0x8b4e2});case h[_0x15b51b(0xd3)]:return _0x1261c7(Fe,{});case h[_0x15b51b(0xde)]:return _0x1261c7($e,{'coordinator':_0x8b4e2});default:return null;}}function Pe(_0x10f656){var _0x1b9d31=_0xa07ab4;const {coordinator:_0x203683}=_0x10f656;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7('div',{'className':_0x1b9d31(0xcf),'children':'Present\x20this\x20document'}),_0x1261c7(_0x1aa6e9,{'onClick':()=>_0x203683['tryStartPresenting'](),'children':_0x1b9d31(0xb2)})]});}function Ae(_0xafae98){var _0x31c86d=_0xa07ab4;const {coordinator:_0x2db713}=_0xafae98;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0x31c86d(0xb1),{'className':_0x31c86d(0xcf),'children':_0x31c86d(0x9b)}),_0x1261c7(_0x1aa6e9,{'onClick':()=>_0x2db713['stopFollowing'](),'children':'Stop\x20following'})]});}function Te(_0x5787d7){var _0x422377=_0xa07ab4;const {coordinator:_0x3e4254}=_0x5787d7;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0x422377(0xb1),{'className':_0x422377(0xcf),'children':_0x422377(0x127)}),_0x1261c7(_0x1aa6e9,{'variant':'text','onClick':()=>_0x3e4254['startFollowing'](),'children':_0x422377(0x85)})]});}function $e(_0xf4d894){var _0xb0606d=_0xa07ab4;const {coordinator:_0x1b1240}=_0xf4d894;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0xb0606d(0xb1),{'className':_0xb0606d(0xcf),'children':_0xb0606d(0xf3)}),_0x1261c7(_0x1aa6e9,{'variant':_0xb0606d(0xdf),'onClick':()=>_0x1b1240[_0xb0606d(0xbc)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x41a040=_0xa07ab4;return _0x1261c7(_0x1d6819,{'children':_0x41a040(0xad)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4d9063,_0x38f8f0,_0x5c86e1,_0x418055)=>{var _0x1213f2=_0xa07ab4;for(var _0x42041c=_0x418055>0x1?void 0x0:_0x418055?He(_0x38f8f0,_0x5c86e1):_0x38f8f0,_0x3ca7e0=_0x4d9063[_0x1213f2(0x122)]-0x1,_0xb0720b;_0x3ca7e0>=0x0;_0x3ca7e0--)(_0xb0720b=_0x4d9063[_0x3ca7e0])&&(_0x42041c=_0xb0720b(_0x42041c)||_0x42041c);return _0x42041c;},T=(_0x205f3b,_0x2a5079)=>(_0x3356bd,_0x3136dd)=>_0x2a5079(_0x3356bd,_0x3136dd,_0x205f3b);let I=class extends _0x1e6e0c{constructor(_0x789904,_0x5acc14){var _0x3c8a33=_0xa07ab4;super(),this['_injector']=_0x789904,this[_0x3c8a33(0xa2)]=_0x5acc14,this[_0x3c8a33(0xa1)]();}[_0xa07ab4(0xa1)](){var _0x1e4653=_0xa07ab4;this[_0x1e4653(0xd6)](this[_0x1e4653(0xa2)][_0x1e4653(0xc0)](_0x1cc547[_0x1e4653(0x81)],()=>_0x53741c(ye,this[_0x1e4653(0x104)])));}};I=je([T(0x0,_0x354fd2(_0x4a1d22)),T(0x1,_0x1708ce)],I);const Ue=_0xa07ab4(0x7c),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x211de8,_0x2e7dc5,_0x2e394e,_0x5d87dc)=>{var _0x4d3201=_0xa07ab4;for(var _0x4d0d87=_0x5d87dc>0x1?void 0x0:_0x5d87dc?Ve(_0x2e7dc5,_0x2e394e):_0x2e7dc5,_0x5ccf96=_0x211de8[_0x4d3201(0x122)]-0x1,_0x3fd658;_0x5ccf96>=0x0;_0x5ccf96--)(_0x3fd658=_0x211de8[_0x5ccf96])&&(_0x4d0d87=_0x3fd658(_0x4d0d87)||_0x4d0d87);return _0x4d0d87;},ke=(_0x2fae15,_0x36c2fc)=>(_0x48073b,_0x16ad73)=>_0x36c2fc(_0x48073b,_0x16ad73,_0x2fae15);let b=class extends _0x1e6e0c{constructor(_0x51383c){var _0x55ea64=_0xa07ab4;super(),this[_0x55ea64(0xca)]=_0x51383c,this['_init']();}['_init'](){var _0x47f9f3=_0xa07ab4;[_0x5d01a1['id'],_0x125601['id'],_0xa53257['id']][_0x47f9f3(0x8b)](_0x39a2be=>{var _0x466e1f=_0x47f9f3;this['disposeWithMe'](this[_0x466e1f(0xca)][_0x466e1f(0x88)](_0x39a2be));});}};b=Me([ke(0x0,_0x354fd2(L))],b);var Ge=Object['defineProperty'],We=Object[_0xa07ab4(0xb5)],Ye=(_0x4248a2,_0x3eb4a0,_0x365260)=>_0x3eb4a0 in _0x4248a2?Ge(_0x4248a2,_0x3eb4a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x365260}):_0x4248a2[_0x3eb4a0]=_0x365260,Be=(_0x3ec746,_0x1d4613,_0x1d9cec,_0x902c04)=>{var _0x29b92c=_0xa07ab4;for(var _0x1b3ff2=_0x902c04>0x1?void 0x0:_0x902c04?We(_0x1d4613,_0x1d9cec):_0x1d4613,_0x2abc79=_0x3ec746[_0x29b92c(0x122)]-0x1,_0xe3a45a;_0x2abc79>=0x0;_0x2abc79--)(_0xe3a45a=_0x3ec746[_0x2abc79])&&(_0x1b3ff2=_0xe3a45a(_0x1b3ff2)||_0x1b3ff2);return _0x1b3ff2;},F=(_0x42a9b3,_0x5e752f)=>(_0x5a4f15,_0x11df23)=>_0x5e752f(_0x5a4f15,_0x11df23,_0x42a9b3),J=(_0x17e7ef,_0x370436,_0x3e7278)=>Ye(_0x17e7ef,typeof _0x370436!=_0xa07ab4(0x10e)?_0x370436+'':_0x370436,_0x3e7278);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x347543{constructor(_0x4f220b=$,_0x1aeab9,_0x273722){var _0x5a0d2d=_0xa07ab4;super(),this['_config']=_0x4f220b,this[_0x5a0d2d(0x104)]=_0x1aeab9,this[_0x5a0d2d(0xbf)]=_0x273722;const {..._0x2af60c}=_0x579cd2({},$,this['_config']);this[_0x5a0d2d(0xbf)][_0x5a0d2d(0xec)](Ue,_0x2af60c);}[_0xa07ab4(0x93)](){var _0x21a1a5=_0xa07ab4;_0x5d09aa(this[_0x21a1a5(0x104)],_0x378502([[L],[m],[b],[I]],this[_0x21a1a5(0xe7)][_0x21a1a5(0x9f)])),_0x5c5361(this['_injector'],[[b]]);}[_0xa07ab4(0x11a)](){_0x5c5361(this['_injector'],[[I]]);}};J(O,_0xa07ab4(0xcd),_0x511684['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x26a32a(_0xc10544),F(0x1,_0x354fd2(_0x4a1d22)),F(0x2,_0x5b22d7)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x181387=_0x5244;(function(_0xc27ffd,_0x12ab18){var _0xbefd0a=_0x5244,_0xa037be=_0xc27ffd();while(!![]){try{var _0x511bc0=parseInt(_0xbefd0a(0x1b1))/0x1+-parseInt(_0xbefd0a(0x1c8))/0x2+parseInt(_0xbefd0a(0x19a))/0x3+parseInt(_0xbefd0a(0x199))/0x4*(parseInt(_0xbefd0a(0x1bb))/0x5)+parseInt(_0xbefd0a(0x1da))/0x6*(-parseInt(_0xbefd0a(0x1b8))/0x7)+-parseInt(_0xbefd0a(0x13c))/0x8*(-parseInt(_0xbefd0a(0x15f))/0x9)+-parseInt(_0xbefd0a(0x198))/0xa*(parseInt(_0xbefd0a(0x1b3))/0xb);if(_0x511bc0===_0x12ab18)break;else _0xa037be['push'](_0xa037be['shift']());}catch(_0x323d22){_0xa037be['push'](_0xa037be['shift']());}}}(_0x4d26,0x5611e));var q=Object[_0x181387(0x1c5)],z=(_0x42c765,_0x34fc17,_0x59a000)=>_0x34fc17 in _0x42c765?q(_0x42c765,_0x34fc17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59a000}):_0x42c765[_0x34fc17]=_0x59a000,d=(_0x544352,_0x16d2da,_0x3c54f1)=>z(_0x544352,typeof _0x16d2da!=_0x181387(0x169)?_0x16d2da+'':_0x16d2da,_0x3c54f1);import{Disposable as _0xb4423d,toDisposable as _0x5e0149,IUniverInstanceService as _0x1d3c87,Inject as _0x19b8a0,Injector as _0x340b01,IConfigService as _0x5f525b,ICommandService as _0x4b3389,RxDisposable as _0x379150,UniverInstanceType as _0x3d14a2,DisposableCollection as _0x14b7d5,CommandType as _0x586723,DependentOn as _0x498526,Plugin as _0x51df73,merge as _0xd6b33,registerDependencies as _0x1050b5,mergeOverrideWithDependencies as _0x4379af,touchDependencies as _0x422eb9}from'@univerjs/core';import{useDependency as _0x279fce,useObservable as _0xd9f531,IUIPartsService as _0x59ff15,BuiltInUIPart as _0x8a0539,connectInjector as _0x401def}from'@univerjs/ui';import{jsx as _0x291591,jsxs as _0x312e4c,Fragment as _0x1bf877}from'react/jsx-runtime';import{Dropdown as _0x40e762,clsx as _0x508fea,Button as _0x19249c}from'@univerjs/design';import{forwardRef as _0x190d04,useRef as _0x15d217,createElement as _0x4c53b7,useState as _0x701ff9,useEffect as _0x5f411f}from'react';import{CollaborationEvent as _0x18f536,parseProtocolChangeset as _0x2d9b95}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x106a09,SessionStatus as _0x35e16e,UniverCollaborationClientPlugin as _0x204b9a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x598f74,SetWorksheetActiveOperation as _0x4dceb2}from'@univerjs/sheets';import{BehaviorSubject as _0x108541,Subject as _0x8ae165}from'rxjs';import{takeUntil as _0x203c69,throttleTime as _0x573e8c}from'rxjs/operators';import{SetZoomRatioOperation as _0x4d70b8,SetScrollOperation as _0x2991d1}from'@univerjs/sheets-ui';var c=function(){var _0x104d6c=_0x181387;return c=Object['assign']||function(_0x169026){var _0x4ce8db=_0x5244;for(var _0x362adc,_0x2d286e=0x1,_0x4be252=arguments[_0x4ce8db(0x178)];_0x2d286e<_0x4be252;_0x2d286e++){_0x362adc=arguments[_0x2d286e];for(var _0x4d80bd in _0x362adc)Object['prototype'][_0x4ce8db(0x179)]['call'](_0x362adc,_0x4d80bd)&&(_0x169026[_0x4d80bd]=_0x362adc[_0x4d80bd]);}return _0x169026;},c[_0x104d6c(0x170)](this,arguments);},Oe=function(_0x1ef6cb,_0x1ba05b){var _0x8d10f3=_0x181387,_0x77a537={};for(var _0x170fa5 in _0x1ef6cb)Object[_0x8d10f3(0x149)][_0x8d10f3(0x179)][_0x8d10f3(0x1ce)](_0x1ef6cb,_0x170fa5)&&_0x1ba05b['indexOf'](_0x170fa5)<0x0&&(_0x77a537[_0x170fa5]=_0x1ef6cb[_0x170fa5]);if(_0x1ef6cb!=null&&typeof Object['getOwnPropertySymbols']==_0x8d10f3(0x1d8)){for(var _0x4c8699=0x0,_0x170fa5=Object[_0x8d10f3(0x1e3)](_0x1ef6cb);_0x4c8699<_0x170fa5[_0x8d10f3(0x178)];_0x4c8699++)_0x1ba05b['indexOf'](_0x170fa5[_0x4c8699])<0x0&&Object[_0x8d10f3(0x149)][_0x8d10f3(0x1aa)][_0x8d10f3(0x1ce)](_0x1ef6cb,_0x170fa5[_0x4c8699])&&(_0x77a537[_0x170fa5[_0x4c8699]]=_0x1ef6cb[_0x170fa5[_0x4c8699]]);}return _0x77a537;},W=_0x190d04(function(_0x2c0fb1,_0x41a4c3){var _0x529883=_0x181387,_0x46fa0d=_0x2c0fb1[_0x529883(0x18d)],_0x2e2eac=_0x2c0fb1['id'],_0x5c1230=_0x2c0fb1[_0x529883(0x1d2)],_0x2bebd8=_0x2c0fb1['extend'],_0x2561d7=Oe(_0x2c0fb1,[_0x529883(0x18d),'id','className','extend']),_0x4ad339='univerjs-icon\x20univerjs-icon-'[_0x529883(0x177)](_0x2e2eac,'\x20')['concat'](_0x5c1230||'')[_0x529883(0x1d7)](),_0x406328=_0x15d217('_'[_0x529883(0x177)](Ne()));return Y(_0x46fa0d,''[_0x529883(0x177)](_0x2e2eac),{'defIds':_0x46fa0d[_0x529883(0x1b0)],'idSuffix':_0x406328[_0x529883(0x1a0)]},c({'ref':_0x41a4c3,'className':_0x4ad339},_0x2561d7),_0x2bebd8);});function Y(_0x25cb32,_0x37d599,_0x415d74,_0x23ecc6,_0x43cabd){var _0x3f33ff=_0x181387;return _0x4c53b7(_0x25cb32[_0x3f33ff(0x147)],c(c({'key':_0x37d599},Ee(_0x25cb32,_0x415d74,_0x43cabd)),_0x23ecc6),(we(_0x25cb32,_0x415d74)[_0x3f33ff(0x1db)]||[])['map'](function(_0x3dd05c,_0x25c447){var _0x1af87f=_0x3f33ff;return Y(_0x3dd05c,''[_0x1af87f(0x177)](_0x37d599,'-')['concat'](_0x25cb32[_0x1af87f(0x147)],'-')[_0x1af87f(0x177)](_0x25c447),_0x415d74,void 0x0,_0x43cabd);}));}function Ee(_0x2df4b2,_0x773496,_0x4352e7){var _0x1c8d61=_0x181387,_0x3ad030=c({},_0x2df4b2[_0x1c8d61(0x191)]);_0x4352e7!=null&&_0x4352e7[_0x1c8d61(0x1ab)]&&_0x3ad030[_0x1c8d61(0x156)]==='colorChannel1'&&(_0x3ad030[_0x1c8d61(0x156)]=_0x4352e7['colorChannel1']),_0x2df4b2['tag']===_0x1c8d61(0x15e)&&_0x3ad030['id']&&(_0x3ad030['id']=_0x3ad030['id']+_0x773496[_0x1c8d61(0x164)]),Object['entries'](_0x3ad030)[_0x1c8d61(0x186)](function(_0x1ee3a3){var _0x3f1db8=_0x1c8d61,_0xd0eb11=_0x1ee3a3[0x0],_0x597a0c=_0x1ee3a3[0x1];_0xd0eb11===_0x3f1db8(0x15e)&&typeof _0x597a0c==_0x3f1db8(0x190)&&(_0x3ad030[_0xd0eb11]=_0x597a0c[_0x3f1db8(0x152)](/url\(#(.*)\)/,_0x3f1db8(0x13b)[_0x3f1db8(0x177)](_0x773496[_0x3f1db8(0x164)],')')));});var _0x392b44=_0x773496[_0x1c8d61(0x1b0)];return!_0x392b44||_0x392b44['length']===0x0||(_0x2df4b2[_0x1c8d61(0x147)]===_0x1c8d61(0x14c)&&_0x3ad030[_0x1c8d61(0x1d5)]&&(_0x3ad030[_0x1c8d61(0x1d5)]=_0x3ad030[_0x1c8d61(0x1d5)]+_0x773496[_0x1c8d61(0x164)]),Object[_0x1c8d61(0x142)](_0x3ad030)[_0x1c8d61(0x186)](function(_0x8e3ffe){var _0x2b7bee=_0x1c8d61,_0x155910=_0x8e3ffe[0x0],_0x7e5772=_0x8e3ffe[0x1];typeof _0x7e5772==_0x2b7bee(0x190)&&(_0x3ad030[_0x155910]=_0x7e5772[_0x2b7bee(0x152)](/url\(#(.*)\)/,_0x2b7bee(0x13b)[_0x2b7bee(0x177)](_0x773496[_0x2b7bee(0x164)],')')));})),_0x3ad030;}function we(_0x4bb924,_0x2b3619){var _0x10c281=_0x181387,_0x76e881,_0x4a5851=_0x2b3619['defIds'];return!_0x4a5851||_0x4a5851['length']===0x0?_0x4bb924:_0x4bb924[_0x10c281(0x147)]==='defs'&&(!((_0x76e881=_0x4bb924[_0x10c281(0x1db)])===null||_0x76e881===void 0x0)&&_0x76e881[_0x10c281(0x178)])?c(c({},_0x4bb924),{'children':_0x4bb924['children'][_0x10c281(0x1d9)](function(_0x5047da){var _0x42c6b3=_0x10c281;return typeof _0x5047da[_0x42c6b3(0x191)]['id']==_0x42c6b3(0x190)&&_0x4a5851&&_0x4a5851[_0x42c6b3(0x138)](_0x5047da[_0x42c6b3(0x191)]['id'])?c(c({},_0x5047da),{'attrs':c(c({},_0x5047da[_0x42c6b3(0x191)]),{'id':_0x5047da[_0x42c6b3(0x191)]['id']+_0x2b3619['idSuffix']})}):_0x5047da;})}):_0x4bb924;}function Ne(){var _0x201e5b=_0x181387;return Math[_0x201e5b(0x1be)]()['toString'](0x24)[_0x201e5b(0x19b)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x181387(0x1cd),'attrs':{'xmlns':_0x181387(0x181),'fill':'none','viewBox':_0x181387(0x187),'width':_0x181387(0x148),'height':_0x181387(0x148)},'children':[{'tag':'path','attrs':{'fill':_0x181387(0x18a),'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':_0x181387(0x150),'attrs':{'fill':_0x181387(0x18a),'d':_0x181387(0x188),'fillRule':'evenodd','clipRule':_0x181387(0x182)}}]},B=_0x190d04(function(_0x1a46b0,_0x15294d){var _0x388a9d=_0x181387;return _0x4c53b7(W,Object['assign']({},_0x1a46b0,{'id':_0x388a9d(0x13e),'ref':_0x15294d,'icon':Ce}));});B[_0x181387(0x1d6)]=_0x181387(0x173);class L extends _0xb4423d{constructor(){var _0x53cfcb=_0x181387;super(...arguments),d(this,_0x53cfcb(0x167),new Set()),d(this,_0x53cfcb(0x1dc),new Set());}[_0x181387(0x175)](_0x58fc0a){var _0x5e37a3=_0x181387;return this[_0x5e37a3(0x167)]['add'](_0x58fc0a),_0x5e0149(()=>this[_0x5e37a3(0x167)][_0x5e37a3(0x1d0)](_0x58fc0a));}[_0x181387(0x15c)](_0x2270b6){var _0x4b5d0e=_0x181387;return this[_0x4b5d0e(0x1dc)][_0x4b5d0e(0x1b6)](_0x2270b6),_0x5e0149(()=>this[_0x4b5d0e(0x1dc)][_0x4b5d0e(0x1d0)](_0x2270b6));}['shouldShareOperation'](_0x42ac0d){var _0x1cd4b8=_0x181387;return this[_0x1cd4b8(0x167)][_0x1cd4b8(0x189)](_0x42ac0d);}[_0x181387(0x17a)](_0x5f2719){var _0xdf5c24=_0x181387;return Array[_0xdf5c24(0x1e1)](this['_reporters'])[_0xdf5c24(0x1d9)](_0xfdac59=>_0xfdac59(_0x5f2719));}}var De=Object[_0x181387(0x193)],Z=(_0x4ae96c,_0x12bfce,_0x33ed9b,_0x4c37d5)=>{var _0x51e47b=_0x181387;for(var _0x219f81=_0x4c37d5>0x1?void 0x0:_0x4c37d5?De(_0x12bfce,_0x33ed9b):_0x12bfce,_0x35e5d1=_0x4ae96c[_0x51e47b(0x178)]-0x1,_0x1c0fa3;_0x35e5d1>=0x0;_0x35e5d1--)(_0x1c0fa3=_0x4ae96c[_0x35e5d1])&&(_0x219f81=_0x1c0fa3(_0x219f81)||_0x219f81);return _0x219f81;},f=(_0x51ffa0,_0x1e8c4d)=>(_0x363ac5,_0x387fb1)=>_0x1e8c4d(_0x363ac5,_0x387fb1,_0x51ffa0);let m=class extends _0x379150{constructor(_0x456523,_0x28ae25,_0x203c1f){var _0xcb4437=_0x181387;super(),d(this,_0xcb4437(0x1c7),new Map()),(this[_0xcb4437(0x1e5)]=_0x456523,this['_injector']=_0x28ae25,this[_0xcb4437(0x17e)]=_0x203c1f,this[_0xcb4437(0x197)]());}async[_0x181387(0x19d)](_0x5dd37c){var _0x25549e=_0x181387;return this[_0x25549e(0x1c7)][_0x25549e(0x189)](_0x5dd37c)||await this[_0x25549e(0x163)](_0x5dd37c),this[_0x25549e(0x1c7)][_0x25549e(0x13a)](_0x5dd37c);}['_init'](){var _0x2cfca8=_0x181387;this[_0x2cfca8(0x1e5)]['getTypeOfUnitAdded$'](_0x3d14a2[_0x2cfca8(0x1bf)])[_0x2cfca8(0x1a4)](_0x203c69(this[_0x2cfca8(0x1bd)]))[_0x2cfca8(0x18f)](async _0x462de0=>{var _0x3264ad=_0x2cfca8;const _0x539761=_0x462de0[_0x3264ad(0x1a6)]();this[_0x3264ad(0x1c7)]['has'](_0x539761)||this[_0x3264ad(0x163)](_0x539761);}),this['_univerInstanceService'][_0x2cfca8(0x166)](_0x3d14a2[_0x2cfca8(0x1bf)])[_0x2cfca8(0x1a4)](_0x203c69(this[_0x2cfca8(0x1bd)]))[_0x2cfca8(0x18f)](_0x4d1c2e=>{var _0x592499=_0x2cfca8;const _0x581b86=_0x4d1c2e['getUnitId'](),_0x1eafb2=this[_0x592499(0x1c7)][_0x592499(0x13a)](_0x581b86);_0x1eafb2==null||_0x1eafb2[_0x592499(0x183)]();});}async[_0x181387(0x163)](_0x714915){var _0x17471b=_0x181387;const _0x4ed7ba=await this['_collabSessionService'][_0x17471b(0x137)](_0x714915),_0x59dba9=this[_0x17471b(0x146)][_0x17471b(0x1ac)](C,_0x714915,_0x4ed7ba);return _0x59dba9[_0x17471b(0x141)](),this['_entities']['set'](_0x714915,_0x59dba9),_0x59dba9;}};m=Z([f(0x0,_0x1d3c87),f(0x1,_0x19b8a0(_0x340b01)),f(0x2,_0x19b8a0(_0x106a09))],m);var h=(_0x5b607d=>(_0x5b607d[_0x181387(0x19f)]='offline',_0x5b607d[_0x181387(0x1d4)]='idle',_0x5b607d['FOLLOWING']=_0x181387(0x145),_0x5b607d[_0x181387(0x14b)]=_0x181387(0x185),_0x5b607d['PRESENTING']=_0x181387(0x14d),_0x5b607d))(h||{});const xe=_0x181387(0x159),Le=0xc8;let C=class extends _0x379150{constructor(_0x847543,_0x9aef47,_0xa1063e,_0x23de10,_0x4066d8){var _0x2ada3e=_0x181387;super(),d(this,_0x2ada3e(0x1ca),new _0x108541(_0x2ada3e(0x1c2))),d(this,_0x2ada3e(0x192),this['_status$'][_0x2ada3e(0x151)]()),d(this,_0x2ada3e(0x197),!0x1),d(this,_0x2ada3e(0x143),null),d(this,_0x2ada3e(0x1d3),null),(this['_unitID']=_0x847543,this[_0x2ada3e(0x184)]=_0x9aef47,this[_0x2ada3e(0x140)]=_0xa1063e,this['_liveShareService']=_0x23de10,this['_commandService']=_0x4066d8);}get[_0x181387(0x155)](){var _0x5555ad=_0x181387;return this[_0x5555ad(0x1ca)]['getValue']();}[_0x181387(0x183)](){var _0x35ad49=_0x181387,_0x1d0444;(_0x1d0444=this[_0x35ad49(0x143)])==null||_0x1d0444[_0x35ad49(0x183)](),this[_0x35ad49(0x1ca)]['next']('idle'),this['_status$'][_0x35ad49(0x1dd)]();}[_0x181387(0x141)](){var _0x5bb9d7=_0x181387;this['_init']||(this[_0x5bb9d7(0x197)]=!0x0,this[_0x5bb9d7(0x184)][_0x5bb9d7(0x1a8)]['pipe'](_0x203c69(this['dispose$']))['subscribe'](_0x17f5a2=>{var _0x3ab379=_0x5bb9d7;switch(_0x17f5a2){case _0x35e16e[_0x3ab379(0x19f)]:this['_handleOffline']();break;case _0x35e16e[_0x3ab379(0x1a9)]:this[_0x3ab379(0x17d)]();break;}}),this[_0x5bb9d7(0x184)][_0x5bb9d7(0x16a)]['pipe'](_0x203c69(this[_0x5bb9d7(0x1bd)]))[_0x5bb9d7(0x18f)](_0x3f6543=>{var _0x53682e=_0x5bb9d7;const {eventID:_0x382dc9}=_0x3f6543;switch(_0x382dc9){case _0x18f536[_0x53682e(0x14a)]:this[_0x53682e(0x1ba)](_0x3f6543);break;case _0x18f536[_0x53682e(0x18e)]:this[_0x53682e(0x1b2)](_0x3f6543);break;case _0x18f536[_0x53682e(0x1c4)]:this[_0x53682e(0x136)]();break;case _0x18f536[_0x53682e(0x1c1)]:this['_handleNewChangeSets'](_0x3f6543);break;}}));}[_0x181387(0x1a2)](){var _0x535a27=_0x181387;this[_0x535a27(0x184)][_0x535a27(0x17c)]({'eventID':_0x18f536[_0x535a27(0x144)],'data':{'unitID':this[_0x535a27(0x1cf)],'userID':this[_0x535a27(0x184)][_0x535a27(0x18c)]()}},this[_0x535a27(0x1cf)]);}[_0x181387(0x174)](){var _0x59ff97=_0x181387;this[_0x59ff97(0x155)]===_0x59ff97(0x14d)&&(this[_0x59ff97(0x1ca)]['next'](_0x59ff97(0x1c2)),this[_0x59ff97(0x184)][_0x59ff97(0x17c)]({'eventID':_0x18f536[_0x59ff97(0x1c4)],'data':{'unitID':this[_0x59ff97(0x1cf)]}},this['_unitID']));}[_0x181387(0x180)](){var _0x262e5e=_0x181387;this['_status']===_0x262e5e(0x185)&&(this['_status$'][_0x262e5e(0x16f)]('following'),this[_0x262e5e(0x17b)]());}[_0x181387(0x15a)](){var _0x43e6a8=_0x181387;this['_status']===_0x43e6a8(0x145)&&this[_0x43e6a8(0x1bc)]();}[_0x181387(0x1ba)](_0x1cbdab){var _0x96e490=_0x181387;const {presenter:_0x40a471}=_0x1cbdab['data'],_0x487d8e=this['_collabSession'][_0x96e490(0x18c)]();this[_0x96e490(0x1d3)]=_0x40a471,_0x40a471===_0x487d8e?(this[_0x96e490(0x1bc)](),this[_0x96e490(0x13d)]()):this[_0x96e490(0x155)]!==_0x96e490(0x185)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x181387(0x157)](){var _0x32d263=_0x181387;const _0x363b32={'eventID':_0x18f536[_0x32d263(0x15b)]};this[_0x32d263(0x184)][_0x32d263(0x17c)](_0x363b32,this['_unitID']);}['_handleTerminate'](){var _0x1f55d0=_0x181387;this['_presenter']=null,this['_status']!==_0x1f55d0(0x14d)&&this['_beIdle']();}[_0x181387(0x1c0)](_0x2e90a5){var _0x3d22fd=_0x181387;if(this[_0x3d22fd(0x155)]===_0x3d22fd(0x145)&&this[_0x3d22fd(0x1d3)]===_0x2e90a5[_0x3d22fd(0x16b)][_0x3d22fd(0x139)]){const _0x441832=_0x2d9b95(_0x2e90a5[_0x3d22fd(0x16b)])[_0x3d22fd(0x161)]['reverse']()[_0x3d22fd(0x194)](_0x5130e3=>_0x5130e3['id']===_0x598f74['id']);if(_0x441832){const _0x564608=_0x441832[_0x3d22fd(0x158)]['unitId'],_0x574823=_0x441832['params'][_0x3d22fd(0x16e)]['id'];setTimeout(()=>{var _0x139f8b=_0x3d22fd;this[_0x139f8b(0x1e0)]['executeCommand'](_0x4dceb2['id'],{'unitId':_0x564608,'subUnitId':_0x574823},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4fec86=_0x181387;this[_0x4fec86(0x1ca)][_0x4fec86(0x16f)](_0x4fec86(0x14d));const _0x58973d=new Map(),_0x1ecbc7=this[_0x4fec86(0x143)]=new _0x14b7d5();_0x1ecbc7[_0x4fec86(0x1b6)](_0x5e0149(()=>{var _0x5d2394=_0x4fec86;_0x58973d[_0x5d2394(0x186)](_0x31ed57=>_0x31ed57[_0x5d2394(0x1dd)]()),_0x58973d[_0x5d2394(0x1e2)]();})),_0x1ecbc7[_0x4fec86(0x1b6)](this['_commandService'][_0x4fec86(0x19c)](_0x120996=>{var _0x4f1840=_0x4fec86,_0x1883b3;if(_0x120996[_0x4f1840(0x1b9)]!==_0x586723[_0x4f1840(0x154)]||!this['_liveShareService'][_0x4f1840(0x176)](_0x120996['id']))return;const {id:_0x3a6513}=_0x120996;let _0x3bf11f;_0x58973d[_0x4f1840(0x189)](_0x3a6513)?_0x3bf11f=_0x58973d[_0x4f1840(0x13a)](_0x3a6513):(_0x3bf11f=new _0x8ae165(),_0x58973d['set'](_0x3a6513,_0x3bf11f),_0x3bf11f[_0x4f1840(0x1a4)](_0x573e8c((_0x1883b3=this[_0x4f1840(0x140)][_0x4f1840(0x1b4)](xe))!=null?_0x1883b3:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x49cb64=>{var _0x5ec7ae=_0x4f1840;this[_0x5ec7ae(0x184)]['send']({'eventID':_0x18f536['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x49cb64['id']]:{'id':_0x49cb64['id'],'params':JSON['stringify'](_0x49cb64[_0x5ec7ae(0x158)])}}}},this[_0x5ec7ae(0x1cf)]);})),_0x3bf11f[_0x4f1840(0x16f)](_0x120996);})),this[_0x4fec86(0x19e)]['getInitialStates'](this[_0x4fec86(0x1cf)])[_0x4fec86(0x186)](_0xf94d8=>this[_0x4fec86(0x184)][_0x4fec86(0x17c)]({'eventID':_0x18f536['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4fec86(0x1cf)],'operations':{[_0xf94d8['id']]:{'id':_0xf94d8['id'],'params':JSON[_0x4fec86(0x195)](_0xf94d8['params'])}}}},this[_0x4fec86(0x1cf)]));}[_0x181387(0x1d1)](){var _0x170f11=_0x181387,_0xe17cd3;this['_status$'][_0x170f11(0x16f)]('idle'),(_0xe17cd3=this['_commandDisposable'])==null||_0xe17cd3[_0x170f11(0x183)](),this[_0x170f11(0x143)]=null;}[_0x181387(0x17b)](){var _0x3417ad=_0x181387,_0x4124df;(_0x4124df=this[_0x3417ad(0x143)])==null||_0x4124df[_0x3417ad(0x183)](),this[_0x3417ad(0x1ca)][_0x3417ad(0x16f)](_0x3417ad(0x145));}['_beIdle'](){var _0x5ca409=_0x181387,_0x419194;this[_0x5ca409(0x1ca)][_0x5ca409(0x16f)](_0x5ca409(0x1c2)),(_0x419194=this['_commandDisposable'])==null||_0x419194['dispose'](),this[_0x5ca409(0x143)]=null;}[_0x181387(0x1bc)](){var _0x385822=_0x181387,_0x15d342;this[_0x385822(0x1ca)]['next'](_0x385822(0x185)),(_0x15d342=this[_0x385822(0x143)])==null||_0x15d342[_0x385822(0x183)]();}[_0x181387(0x1b2)](_0x1734d9){var _0x23b6f5=_0x181387;if([_0x23b6f5(0x14d),_0x23b6f5(0x185),_0x23b6f5(0x1a3)][_0x23b6f5(0x138)](this[_0x23b6f5(0x155)])||!_0x1734d9[_0x23b6f5(0x16b)][_0x23b6f5(0x165)]||_0x1734d9[_0x23b6f5(0x16b)][_0x23b6f5(0x165)]===this[_0x23b6f5(0x184)]['getMemberID']())return;this[_0x23b6f5(0x155)]===_0x23b6f5(0x1c2)&&this[_0x23b6f5(0x17b)]();const _0x1b0271=_0x1734d9[_0x23b6f5(0x16b)]['operations'];Object[_0x23b6f5(0x1b7)](_0x1b0271)[_0x23b6f5(0x186)](_0x3c047a=>{var _0x3ec457=_0x23b6f5;this[_0x3ec457(0x1e0)]['executeCommand'](_0x3c047a['id'],_0x3c047a['params']?JSON[_0x3ec457(0x1de)](_0x3c047a[_0x3ec457(0x158)]):null,{'fromCollab':!0x0});});}[_0x181387(0x1c9)](){var _0x50da63=_0x181387,_0x53750c;this[_0x50da63(0x1ca)]['next']('offline'),(_0x53750c=this['_commandDisposable'])==null||_0x53750c[_0x50da63(0x183)]();}[_0x181387(0x17d)](){var _0x347458=_0x181387;this['_status$']['next'](_0x347458(0x1c2)),this[_0x347458(0x157)]();}};C=Z([f(0x2,_0x5f525b),f(0x3,_0x19b8a0(L)),f(0x4,_0x4b3389)],C);function ye(){var _0x16c89f=_0x181387;const _0xe9d7a9=_0x279fce(m),_0x157dd0=_0x279fce(_0x1d3c87),_0x256a06=_0xd9f531(()=>_0x157dd0[_0x16c89f(0x1a5)](_0x3d14a2[_0x16c89f(0x1bf)]),void 0x0,!0x1,[]),[_0x5ede85,_0x3b689c]=_0x701ff9(null),[_0x58aca6,_0x1792db]=_0x701ff9(h['IDLE']),_0x24673f=_0x15d217(null);return _0x5f411f(()=>(_0x256a06&&_0xe9d7a9[_0x16c89f(0x19d)](_0x256a06[_0x16c89f(0x1a6)]())[_0x16c89f(0x1c3)](_0x18d7cf=>{var _0x5100b3=_0x16c89f;_0x3b689c(_0x18d7cf),_0x24673f[_0x5100b3(0x1a0)]=_0x18d7cf['status$'][_0x5100b3(0x18f)](_0x1ea568=>{_0x1792db(_0x1ea568);});}),()=>{var _0x1c9b06=_0x16c89f,_0x484f6f;(_0x484f6f=_0x24673f['current'])==null||_0x484f6f[_0x1c9b06(0x160)](),_0x24673f[_0x1c9b06(0x1a0)]=null;}),[_0x256a06,_0xe9d7a9]),_0x5ede85?_0x291591(_0x40e762,{'align':'end','disabled':_0x58aca6===h['OFFLINE'],'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':_0x291591(Re,{'status':_0x58aca6,'coordinator':_0x5ede85}),'children':_0x291591(_0x16c89f(0x16c),{'className':_0x508fea(_0x16c89f(0x13f),{'univer-cursor-not-allowed':_0x58aca6===h[_0x16c89f(0x19f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x58aca6!==h[_0x16c89f(0x19f)]}),'type':_0x16c89f(0x16c),'children':_0x291591(B,{'className':_0x16c89f(0x1b5)})})}):null;}function Re(_0x27b483){var _0x1c123f=_0x181387;const {status:_0x5ba908,coordinator:_0x453a17}=_0x27b483;switch(_0x5ba908){case h[_0x1c123f(0x1d4)]:return _0x291591(Pe,{'coordinator':_0x453a17});case h['FOLLOWING']:return _0x291591(Ae,{'coordinator':_0x453a17});case h[_0x1c123f(0x14b)]:return _0x291591(Te,{'coordinator':_0x453a17});case h['OFFLINE']:return _0x291591(Fe,{});case h[_0x1c123f(0x1cb)]:return _0x291591($e,{'coordinator':_0x453a17});default:return null;}}function Pe(_0x49c9da){var _0x48dde3=_0x181387;const {coordinator:_0x47efc1}=_0x49c9da;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x48dde3(0x196),{'className':_0x48dde3(0x1e4),'children':_0x48dde3(0x17f)}),_0x291591(_0x19249c,{'onClick':()=>_0x47efc1[_0x48dde3(0x1a2)](),'children':'Start'})]});}function Ae(_0x55f0a8){var _0x7f3747=_0x181387;const {coordinator:_0x47a0d3}=_0x55f0a8;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x7f3747(0x196),{'className':_0x7f3747(0x1e4),'children':_0x7f3747(0x172)}),_0x291591(_0x19249c,{'onClick':()=>_0x47a0d3[_0x7f3747(0x15a)](),'children':'Stop\x20following'})]});}function Te(_0x1dda3f){var _0x28bf64=_0x181387;const {coordinator:_0x192419}=_0x1dda3f;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x28bf64(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28bf64(0x162)}),_0x291591(_0x19249c,{'variant':'text','onClick':()=>_0x192419[_0x28bf64(0x180)](),'children':'Start\x20following'})]});}function $e(_0x22a67f){var _0x1b3b35=_0x181387;const {coordinator:_0x374b6e}=_0x22a67f;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x1b3b35(0x196),{'className':_0x1b3b35(0x1e4),'children':_0x1b3b35(0x18b)}),_0x291591(_0x19249c,{'variant':'default','onClick':()=>_0x374b6e[_0x1b3b35(0x174)](),'children':_0x1b3b35(0x153)})]});}function Fe(){var _0x4ea957=_0x181387;return _0x291591(_0x1bf877,{'children':_0x4ea957(0x1ad)});}var He=Object[_0x181387(0x193)],je=(_0x27901f,_0x24f529,_0x4d9197,_0x214d70)=>{var _0xe4e56=_0x181387;for(var _0x225179=_0x214d70>0x1?void 0x0:_0x214d70?He(_0x24f529,_0x4d9197):_0x24f529,_0x32e8bb=_0x27901f[_0xe4e56(0x178)]-0x1,_0x3a3db2;_0x32e8bb>=0x0;_0x32e8bb--)(_0x3a3db2=_0x27901f[_0x32e8bb])&&(_0x225179=_0x3a3db2(_0x225179)||_0x225179);return _0x225179;},T=(_0x2ee10e,_0x2a8a06)=>(_0xdef2d0,_0x356d1d)=>_0x2a8a06(_0xdef2d0,_0x356d1d,_0x2ee10e);function _0x5244(_0xd6eec1,_0x4b74c4){var _0x4d2656=_0x4d26();return _0x5244=function(_0x524493,_0x42f8ee){_0x524493=_0x524493-0x136;var _0x366dd9=_0x4d2656[_0x524493];return _0x366dd9;},_0x5244(_0xd6eec1,_0x4b74c4);}let I=class extends _0xb4423d{constructor(_0x57c5d9,_0x4b5082){var _0x358af7=_0x181387;super(),this['_injector']=_0x57c5d9,this[_0x358af7(0x1af)]=_0x4b5082,this[_0x358af7(0x1df)]();}[_0x181387(0x1df)](){var _0x4cfb0b=_0x181387;this[_0x4cfb0b(0x14e)](this[_0x4cfb0b(0x1af)][_0x4cfb0b(0x1ae)](_0x8a0539[_0x4cfb0b(0x1c6)],()=>_0x401def(ye,this['_injector'])));}};I=je([T(0x0,_0x19b8a0(_0x340b01)),T(0x1,_0x59ff15)],I);const Ue=_0x181387(0x1a1),$={};var Ve=Object[_0x181387(0x193)],Me=(_0x45115a,_0x3e31a6,_0x1f4776,_0x2e2be0)=>{for(var _0x4647ca=_0x2e2be0>0x1?void 0x0:_0x2e2be0?Ve(_0x3e31a6,_0x1f4776):_0x3e31a6,_0x1f2a29=_0x45115a['length']-0x1,_0x3d2f15;_0x1f2a29>=0x0;_0x1f2a29--)(_0x3d2f15=_0x45115a[_0x1f2a29])&&(_0x4647ca=_0x3d2f15(_0x4647ca)||_0x4647ca);return _0x4647ca;},ke=(_0x5891fc,_0x19805a)=>(_0x534bf2,_0x237c0a)=>_0x19805a(_0x534bf2,_0x237c0a,_0x5891fc);let b=class extends _0xb4423d{constructor(_0x279f9d){var _0x454ade=_0x181387;super(),this[_0x454ade(0x19e)]=_0x279f9d,this[_0x454ade(0x197)]();}[_0x181387(0x197)](){var _0x184932=_0x181387;[_0x4d70b8['id'],_0x2991d1['id'],_0x4dceb2['id']][_0x184932(0x186)](_0x32a7aa=>{var _0x1674dd=_0x184932;this[_0x1674dd(0x14e)](this[_0x1674dd(0x19e)]['registerSharedOperation'](_0x32a7aa));});}};b=Me([ke(0x0,_0x19b8a0(L))],b);function _0x4d26(){var _0xd8d1f2=['1853230OqrWoE','_stopFollowing','dispose$','random','UNIVER_SHEET','_handleNewChangeSets','NEW_CHANGESETS','idle','then','LIVESHARE_TERMINATE','defineProperty','HEADER_MENU','_entities','877644KfPbPq','_handleOffline','_status$','PRESENTING','_config','svg','call','_unitID','delete','_stopPresenting','className','_presenter','IDLE','xlink:href','displayName','trim','function','map','1018446vfrBAI','children','_reporters','complete','parse','_mountLiveShare','_commandService','from','clear','getOwnPropertySymbols','univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','_handleTerminate','requireSession','includes','memberID','get','url(#$1','552aqAEFO','_startPresenting','live-share-icon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_configService','init','entries','_commandDisposable','LIVESHARE_REQUEST_HOST','following','_injector','tag','1em','prototype','LIVESHARE_NEW_HOST','NOT_FOLLOWING','use','presenting','disposeWithMe','UNIVER_UNKNOWN','path','asObservable','replace','Stop\x20presenting','OPERATION','_status','fill','_fetchOperations','params','SAME_OPERATION_SHARE_INTERVAL','stopFollowing','LIVESHARE_FETCH_OPERATIONS','registerInitialStateReporter','setConfig','mask','88398tQmaaj','unsubscribe','mutations','You\x27re\x20not\x20following\x20the\x20presenter','_startLiveShareCoordinator','idSuffix','presenter','getTypeOfUnitDisposed$','_sharedOperations','onRendered','symbol','event$','data','button','onStarting','sheet','next','apply','pluginName','You\x27re\x20following\x20the\x20presenter','LiveShareIcon','stopPresenting','registerSharedOperation','shouldShareOperation','concat','length','hasOwnProperty','getInitialStates','_startFollowing','send','_handleOnline','_collabSessionService','Present\x20this\x20document','startFollowing','http://www.w3.org/2000/svg','evenodd','dispose','_collabSession','not-following','forEach','0\x200\x2017\x2017','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','has','currentColor','You\x27re\x20presenting\x20the\x20document','getMemberID','icon','LIVESHARE_OPERATION','subscribe','string','attrs','status$','getOwnPropertyDescriptor','find','stringify','div','_init','270gAjacs','4fZBAEA','328242fJdTxd','substring','onCommandExecuted','getLiveShareCoordinator','_liveShareService','OFFLINE','current','live-share.config','tryStartPresenting','offline','pipe','getCurrentTypeOfUnit$','getUnitId','UNIVER_LIVE_SHARE_PLUGIN','sessionStatus$','ONLINE','propertyIsEnumerable','colorChannel1','createInstance','You\x27are\x20offline.','registerComponent','_uiPartsService','defIds','581524HZefhr','_handleOperation','109582UXiXrg','getConfig','univer-size-4','add','values','28IjcRVG','type','_handleNewHost'];_0x4d26=function(){return _0xd8d1f2;};return _0x4d26();}var Ge=Object[_0x181387(0x1c5)],We=Object[_0x181387(0x193)],Ye=(_0x96e68a,_0x59a02a,_0x1fc2f2)=>_0x59a02a in _0x96e68a?Ge(_0x96e68a,_0x59a02a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fc2f2}):_0x96e68a[_0x59a02a]=_0x1fc2f2,Be=(_0x1a2ba2,_0x3f1212,_0x5f245e,_0x1f3629)=>{var _0x405386=_0x181387;for(var _0xac1a4f=_0x1f3629>0x1?void 0x0:_0x1f3629?We(_0x3f1212,_0x5f245e):_0x3f1212,_0x2ae03c=_0x1a2ba2[_0x405386(0x178)]-0x1,_0x57c803;_0x2ae03c>=0x0;_0x2ae03c--)(_0x57c803=_0x1a2ba2[_0x2ae03c])&&(_0xac1a4f=_0x57c803(_0xac1a4f)||_0xac1a4f);return _0xac1a4f;},F=(_0x21bb44,_0x3eff0f)=>(_0x455f6e,_0x2b12ab)=>_0x3eff0f(_0x455f6e,_0x2b12ab,_0x21bb44),J=(_0x5ea947,_0x5e9f79,_0x51fc96)=>Ye(_0x5ea947,typeof _0x5e9f79!=_0x181387(0x169)?_0x5e9f79+'':_0x5e9f79,_0x51fc96);const Ze=_0x181387(0x1a7);let O=class extends _0x51df73{constructor(_0x4aefd8=$,_0x29618b,_0x4368d6){var _0x28fcdf=_0x181387;super(),this[_0x28fcdf(0x1cc)]=_0x4aefd8,this['_injector']=_0x29618b,this['_configService']=_0x4368d6;const {..._0x127ce3}=_0xd6b33({},$,this[_0x28fcdf(0x1cc)]);this[_0x28fcdf(0x140)][_0x28fcdf(0x15d)](Ue,_0x127ce3);}[_0x181387(0x16d)](){var _0x3fd118=_0x181387;_0x1050b5(this[_0x3fd118(0x146)],_0x4379af([[L],[m],[b],[I]],this[_0x3fd118(0x1cc)]['override'])),_0x422eb9(this['_injector'],[[b]]);}[_0x181387(0x168)](){var _0x5f4fbc=_0x181387;_0x422eb9(this[_0x5f4fbc(0x146)],[[I]]);}};J(O,_0x181387(0x1b9),_0x3d14a2[_0x181387(0x14f)]),J(O,_0x181387(0x171),Ze),O=Be([_0x498526(_0x204b9a),F(0x1,_0x19b8a0(_0x340b01)),F(0x2,_0x5f525b)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0xa07ab4=_0x178e;(function(_0x480754,_0x3be388){var _0x4a7549=_0x178e,_0x2fc041=_0x480754();while(!![]){try{var _0x156529=parseInt(_0x4a7549(0x109))/0x1*(parseInt(_0x4a7549(0x111))/0x2)+-parseInt(_0x4a7549(0xfc))/0x3*(parseInt(_0x4a7549(0x9c))/0x4)+-parseInt(_0x4a7549(0x90))/0x5+parseInt(_0x4a7549(0xaf))/0x6*(-parseInt(_0x4a7549(0xb0))/0x7)+-parseInt(_0x4a7549(0x112))/0x8*(-parseInt(_0x4a7549(0x123))/0x9)+-parseInt(_0x4a7549(0xe0))/0xa+parseInt(_0x4a7549(0xe1))/0xb;if(_0x156529===_0x3be388)break;else _0x2fc041['push'](_0x2fc041['shift']());}catch(_0x4076fc){_0x2fc041['push'](_0x2fc041['shift']());}}}(_0x185c,0x9922c));var q=Object[_0xa07ab4(0x86)],z=(_0x43f17a,_0xf41fd5,_0x342756)=>_0xf41fd5 in _0x43f17a?q(_0x43f17a,_0xf41fd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x342756}):_0x43f17a[_0xf41fd5]=_0x342756,d=(_0x3e8aab,_0x5f198a,_0x1e8cd6)=>z(_0x3e8aab,typeof _0x5f198a!=_0xa07ab4(0x10e)?_0x5f198a+'':_0x5f198a,_0x1e8cd6);import{Disposable as _0x1e6e0c,toDisposable as _0x5182ea,IUniverInstanceService as _0x1607da,Inject as _0x354fd2,Injector as _0x4a1d22,IConfigService as _0x5b22d7,ICommandService as _0x5e2b20,RxDisposable as _0x25f604,UniverInstanceType as _0x511684,DisposableCollection as _0x5dbdb9,CommandType as _0x3ece4a,DependentOn as _0x26a32a,Plugin as _0x347543,merge as _0x579cd2,registerDependencies as _0x5d09aa,mergeOverrideWithDependencies as _0x378502,touchDependencies as _0x5c5361}from'@univerjs/core';import{useDependency as _0x56de89,useObservable as _0x338148,IUIPartsService as _0x1708ce,BuiltInUIPart as _0x1cc547,connectInjector as _0x53741c}from'@univerjs/ui';import{jsx as _0x1261c7,jsxs as _0x54d46f,Fragment as _0x1d6819}from'react/jsx-runtime';import{Dropdown as _0x247715,clsx as _0x2c649c,Button as _0x1aa6e9}from'@univerjs/design';import{forwardRef as _0x39c36a,useRef as _0x105803,createElement as _0x301253,useState as _0x2b8a00,useEffect as _0x9070dc}from'react';import{CollaborationEvent as _0x4646a8,parseProtocolChangeset as _0x29dff5}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bb6ab,SessionStatus as _0x3f3bf1,UniverCollaborationClientPlugin as _0xc10544}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3659ed,SetWorksheetActiveOperation as _0xa53257}from'@univerjs/sheets';function _0x185c(){var _0x328187=['displayName','next','You\x27are\x20offline.','_entities','440214YMiehn','49qUNlNQ','div','Start','hasOwnProperty','UNIVER_SHEET','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','toString','LiveShareIcon','defIds','map','presenting','stopPresenting','_commandDisposable','_status','_configService','registerComponent','add','not-following','getMemberID','complete','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','subscribe','univer-size-4','trim','_liveShareService','getCurrentTypeOfUnit$','_presenter','type','LIVESHARE_NEW_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','_startPresenting','NEW_CHANGESETS','OFFLINE','shouldShareOperation','following','disposeWithMe','clear','icon','_init','getOwnPropertySymbols','1em','prototype','_handleNewChangeSets','PRESENTING','default','8922870Hggmie','15726359yciAuk','concat','evenodd','_stopFollowing','_startFollowing','_handleOnline','_config','_handleOperation','unitId','stringify','_sharedOperations','setConfig','params','random','status$','colorChannel1','values','univerjs-icon\x20univerjs-icon-','You\x27re\x20presenting\x20the\x20document','requireSession','fill','pipe','memberID','end','unsubscribe','entries','_univerInstanceService','3OyDMyk','0\x200\x2017\x2017','getLiveShareCoordinator','string','extend','apply','live-share-icon','http://www.w3.org/2000/svg','_injector','ONLINE','registerInitialStateReporter','currentColor','current','68388TDanxJ','has','attrs','FOLLOWING','tryStartPresenting','symbol','_status$','indexOf','22XJMXXC','8jRUmtE','from','_collabSessionService','idle','tag','LIVESHARE_TERMINATE','className','_commandService','onRendered','dispose','asObservable','use','offline','executeCommand','stopFollowing','mask','length','6241608QTXNZm','find','dispose$','children','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','getInitialStates','mutations','live-share.config','delete','getConfig','_handleTerminate','_reporters','HEADER_MENU','then','set','_unitID','Start\x20following','defineProperty','onCommandExecuted','registerSharedOperation','getUnitId','includes','forEach','propertyIsEnumerable','path','presenter','operations','274180szcHJS','call','idSuffix','onStarting','_beIdle','get','LIVESHARE_FETCH_OPERATIONS','_fetchOperations','defs','send','_collabSession','You\x27re\x20following\x20the\x20presenter','3149996wcEpKJ','replace','xlink:href','override','LIVESHARE_OPERATION','_mountLiveShare','_uiPartsService','OPERATION','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','_startLiveShareCoordinator','createInstance','sessionStatus$','assign','data'];_0x185c=function(){return _0x328187;};return _0x185c();}import{BehaviorSubject as _0x45b7bf,Subject as _0x14606f}from'rxjs';import{takeUntil as _0x172f19,throttleTime as _0x4451f8}from'rxjs/operators';import{SetZoomRatioOperation as _0x5d01a1,SetScrollOperation as _0x125601}from'@univerjs/sheets-ui';var c=function(){var _0x150579=_0xa07ab4;return c=Object[_0x150579(0xa9)]||function(_0x2bd269){var _0x1eac49=_0x150579;for(var _0x57abd0,_0x22eb1f=0x1,_0x4cd473=arguments[_0x1eac49(0x122)];_0x22eb1f<_0x4cd473;_0x22eb1f++){_0x57abd0=arguments[_0x22eb1f];for(var _0x38c76b in _0x57abd0)Object[_0x1eac49(0xdc)][_0x1eac49(0xb3)]['call'](_0x57abd0,_0x38c76b)&&(_0x2bd269[_0x38c76b]=_0x57abd0[_0x38c76b]);}return _0x2bd269;},c[_0x150579(0x101)](this,arguments);},Oe=function(_0x2695d2,_0x3d40b1){var _0x4d578f=_0xa07ab4,_0x1c987b={};for(var _0x412b47 in _0x2695d2)Object[_0x4d578f(0xdc)][_0x4d578f(0xb3)][_0x4d578f(0x91)](_0x2695d2,_0x412b47)&&_0x3d40b1[_0x4d578f(0x110)](_0x412b47)<0x0&&(_0x1c987b[_0x412b47]=_0x2695d2[_0x412b47]);if(_0x2695d2!=null&&typeof Object[_0x4d578f(0xda)]=='function'){for(var _0x1c00d6=0x0,_0x412b47=Object[_0x4d578f(0xda)](_0x2695d2);_0x1c00d6<_0x412b47[_0x4d578f(0x122)];_0x1c00d6++)_0x3d40b1['indexOf'](_0x412b47[_0x1c00d6])<0x0&&Object[_0x4d578f(0xdc)][_0x4d578f(0x8c)][_0x4d578f(0x91)](_0x2695d2,_0x412b47[_0x1c00d6])&&(_0x1c987b[_0x412b47[_0x1c00d6]]=_0x2695d2[_0x412b47[_0x1c00d6]]);}return _0x1c987b;},W=_0x39c36a(function(_0x7799a,_0x55085b){var _0x22c85b=_0xa07ab4,_0x4e97d1=_0x7799a[_0x22c85b(0xd8)],_0x10df0e=_0x7799a['id'],_0x18ae91=_0x7799a['className'],_0x4025dc=_0x7799a[_0x22c85b(0x100)],_0x5aebe1=Oe(_0x7799a,[_0x22c85b(0xd8),'id',_0x22c85b(0x118),_0x22c85b(0x100)]),_0x56e8f0=_0x22c85b(0xf2)[_0x22c85b(0xe2)](_0x10df0e,'\x20')[_0x22c85b(0xe2)](_0x18ae91||'')[_0x22c85b(0xc9)](),_0x37b1f6=_0x105803('_'['concat'](Ne()));return Y(_0x4e97d1,''['concat'](_0x10df0e),{'defIds':_0x4e97d1[_0x22c85b(0xb9)],'idSuffix':_0x37b1f6[_0x22c85b(0x108)]},c({'ref':_0x55085b,'className':_0x56e8f0},_0x5aebe1),_0x4025dc);});function Y(_0x1405bc,_0x71b8e2,_0x4e8e82,_0x43c2e5,_0x176f8f){var _0x489221=_0xa07ab4;return _0x301253(_0x1405bc[_0x489221(0x116)],c(c({'key':_0x71b8e2},Ee(_0x1405bc,_0x4e8e82,_0x176f8f)),_0x43c2e5),(we(_0x1405bc,_0x4e8e82)[_0x489221(0x126)]||[])[_0x489221(0xba)](function(_0x26be3f,_0x50f368){var _0x4a7bf8=_0x489221;return Y(_0x26be3f,''[_0x4a7bf8(0xe2)](_0x71b8e2,'-')[_0x4a7bf8(0xe2)](_0x1405bc['tag'],'-')[_0x4a7bf8(0xe2)](_0x50f368),_0x4e8e82,void 0x0,_0x176f8f);}));}function Ee(_0x23366f,_0x92b96b,_0x4380b9){var _0x3f63a1=_0xa07ab4,_0x5f0c85=c({},_0x23366f['attrs']);_0x4380b9!=null&&_0x4380b9[_0x3f63a1(0xf0)]&&_0x5f0c85[_0x3f63a1(0xf5)]===_0x3f63a1(0xf0)&&(_0x5f0c85[_0x3f63a1(0xf5)]=_0x4380b9[_0x3f63a1(0xf0)]),_0x23366f['tag']===_0x3f63a1(0x121)&&_0x5f0c85['id']&&(_0x5f0c85['id']=_0x5f0c85['id']+_0x92b96b[_0x3f63a1(0x92)]),Object[_0x3f63a1(0xfa)](_0x5f0c85)['forEach'](function(_0x59063c){var _0x21380c=_0x3f63a1,_0x18c68f=_0x59063c[0x0],_0x121a36=_0x59063c[0x1];_0x18c68f===_0x21380c(0x121)&&typeof _0x121a36=='string'&&(_0x5f0c85[_0x18c68f]=_0x121a36[_0x21380c(0x9d)](/url\(#(.*)\)/,_0x21380c(0x128)[_0x21380c(0xe2)](_0x92b96b[_0x21380c(0x92)],')')));});var _0x4b9124=_0x92b96b[_0x3f63a1(0xb9)];return!_0x4b9124||_0x4b9124['length']===0x0||(_0x23366f[_0x3f63a1(0x116)]===_0x3f63a1(0x11d)&&_0x5f0c85[_0x3f63a1(0x9e)]&&(_0x5f0c85[_0x3f63a1(0x9e)]=_0x5f0c85[_0x3f63a1(0x9e)]+_0x92b96b[_0x3f63a1(0x92)]),Object[_0x3f63a1(0xfa)](_0x5f0c85)[_0x3f63a1(0x8b)](function(_0xfb87aa){var _0x51ac30=_0x3f63a1,_0x5985e7=_0xfb87aa[0x0],_0x1e2b58=_0xfb87aa[0x1];typeof _0x1e2b58=='string'&&(_0x5f0c85[_0x5985e7]=_0x1e2b58['replace'](/url\(#(.*)\)/,'url(#$1'[_0x51ac30(0xe2)](_0x92b96b[_0x51ac30(0x92)],')')));})),_0x5f0c85;}function we(_0x3ccbfb,_0x1eef2c){var _0x4d0b3b=_0xa07ab4,_0x9fdb6a,_0x32a12a=_0x1eef2c[_0x4d0b3b(0xb9)];return!_0x32a12a||_0x32a12a['length']===0x0?_0x3ccbfb:_0x3ccbfb['tag']===_0x4d0b3b(0x98)&&(!((_0x9fdb6a=_0x3ccbfb[_0x4d0b3b(0x126)])===null||_0x9fdb6a===void 0x0)&&_0x9fdb6a[_0x4d0b3b(0x122)])?c(c({},_0x3ccbfb),{'children':_0x3ccbfb['children'][_0x4d0b3b(0xba)](function(_0x2ebaaa){var _0x2e59db=_0x4d0b3b;return typeof _0x2ebaaa[_0x2e59db(0x10b)]['id']==_0x2e59db(0xff)&&_0x32a12a&&_0x32a12a[_0x2e59db(0x8a)](_0x2ebaaa[_0x2e59db(0x10b)]['id'])?c(c({},_0x2ebaaa),{'attrs':c(c({},_0x2ebaaa['attrs']),{'id':_0x2ebaaa[_0x2e59db(0x10b)]['id']+_0x1eef2c['idSuffix']})}):_0x2ebaaa;})}):_0x3ccbfb;}function Ne(){var _0x2c7211=_0xa07ab4;return Math[_0x2c7211(0xee)]()[_0x2c7211(0xb7)](0x24)['substring'](0x2,0x8);}W[_0xa07ab4(0xab)]='UniverIcon';var Ce={'tag':_0xa07ab4(0xd0),'attrs':{'xmlns':_0xa07ab4(0x103),'fill':'none','viewBox':_0xa07ab4(0xfd),'width':_0xa07ab4(0xdb),'height':_0xa07ab4(0xdb)},'children':[{'tag':_0xa07ab4(0x8d),'attrs':{'fill':_0xa07ab4(0x107),'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':_0xa07ab4(0x8d),'attrs':{'fill':_0xa07ab4(0x107),'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':_0xa07ab4(0xe3),'clipRule':'evenodd'}}]},B=_0x39c36a(function(_0xe0d440,_0x206471){var _0x5d88f4=_0xa07ab4;return _0x301253(W,Object[_0x5d88f4(0xa9)]({},_0xe0d440,{'id':_0x5d88f4(0x102),'ref':_0x206471,'icon':Ce}));});B['displayName']=_0xa07ab4(0xb8);class L extends _0x1e6e0c{constructor(){var _0x1cdf2e=_0xa07ab4;super(...arguments),d(this,_0x1cdf2e(0xeb),new Set()),d(this,_0x1cdf2e(0x80),new Set());}[_0xa07ab4(0x88)](_0x3dd6fe){var _0xd2220=_0xa07ab4;return this[_0xd2220(0xeb)][_0xd2220(0xc1)](_0x3dd6fe),_0x5182ea(()=>this[_0xd2220(0xeb)]['delete'](_0x3dd6fe));}[_0xa07ab4(0x106)](_0x5ead55){var _0x1e73a0=_0xa07ab4;return this[_0x1e73a0(0x80)]['add'](_0x5ead55),_0x5182ea(()=>this[_0x1e73a0(0x80)][_0x1e73a0(0x7d)](_0x5ead55));}[_0xa07ab4(0xd4)](_0x47a6b2){var _0xb4dda1=_0xa07ab4;return this[_0xb4dda1(0xeb)][_0xb4dda1(0x10a)](_0x47a6b2);}[_0xa07ab4(0x129)](_0x33279a){var _0x2fe9c9=_0xa07ab4;return Array[_0x2fe9c9(0x113)](this[_0x2fe9c9(0x80)])[_0x2fe9c9(0xba)](_0x2da1ca=>_0x2da1ca(_0x33279a));}}var De=Object[_0xa07ab4(0xb5)],Z=(_0x45573c,_0x31e072,_0x2bdd12,_0x1be060)=>{for(var _0x251bbc=_0x1be060>0x1?void 0x0:_0x1be060?De(_0x31e072,_0x2bdd12):_0x31e072,_0x2e1bc0=_0x45573c['length']-0x1,_0x213241;_0x2e1bc0>=0x0;_0x2e1bc0--)(_0x213241=_0x45573c[_0x2e1bc0])&&(_0x251bbc=_0x213241(_0x251bbc)||_0x251bbc);return _0x251bbc;},f=(_0x1cb94e,_0x5daaa0)=>(_0x4f76c9,_0x895511)=>_0x5daaa0(_0x4f76c9,_0x895511,_0x1cb94e);let m=class extends _0x25f604{constructor(_0x28678a,_0x5bdf3c,_0x1d2c01){var _0x42849b=_0xa07ab4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x28678a,this[_0x42849b(0x104)]=_0x5bdf3c,this[_0x42849b(0x114)]=_0x1d2c01,this[_0x42849b(0xd9)]());}async[_0xa07ab4(0xfe)](_0x41aea6){var _0x18ba81=_0xa07ab4;return this[_0x18ba81(0xae)]['has'](_0x41aea6)||await this[_0x18ba81(0xa6)](_0x41aea6),this[_0x18ba81(0xae)][_0x18ba81(0x95)](_0x41aea6);}[_0xa07ab4(0xd9)](){var _0x1b88bb=_0xa07ab4;this[_0x1b88bb(0xfb)][_0x1b88bb(0xc5)](_0x511684['UNIVER_SHEET'])[_0x1b88bb(0xf6)](_0x172f19(this[_0x1b88bb(0x125)]))[_0x1b88bb(0xc7)](async _0x19f8e2=>{var _0xb3b5ea=_0x1b88bb;const _0x6f1295=_0x19f8e2['getUnitId']();this[_0xb3b5ea(0xae)]['has'](_0x6f1295)||this['_startLiveShareCoordinator'](_0x6f1295);}),this[_0x1b88bb(0xfb)]['getTypeOfUnitDisposed$'](_0x511684[_0x1b88bb(0xb4)])[_0x1b88bb(0xf6)](_0x172f19(this[_0x1b88bb(0x125)]))[_0x1b88bb(0xc7)](_0x18f75f=>{var _0x1cae7=_0x1b88bb;const _0x156d91=_0x18f75f[_0x1cae7(0x89)](),_0x2b30ee=this[_0x1cae7(0xae)][_0x1cae7(0x95)](_0x156d91);_0x2b30ee==null||_0x2b30ee['dispose']();});}async[_0xa07ab4(0xa6)](_0xf7a04e){var _0x1d65a8=_0xa07ab4;const _0x43cfdb=await this[_0x1d65a8(0x114)][_0x1d65a8(0xf4)](_0xf7a04e),_0x102fca=this[_0x1d65a8(0x104)][_0x1d65a8(0xa7)](C,_0xf7a04e,_0x43cfdb);return _0x102fca['init'](),this['_entities'][_0x1d65a8(0x83)](_0xf7a04e,_0x102fca),_0x102fca;}};m=Z([f(0x0,_0x1607da),f(0x1,_0x354fd2(_0x4a1d22)),f(0x2,_0x354fd2(_0x3bb6ab))],m);var h=(_0x467b57=>(_0x467b57[_0xa07ab4(0xd3)]='offline',_0x467b57['IDLE']=_0xa07ab4(0x115),_0x467b57['FOLLOWING']=_0xa07ab4(0xd5),_0x467b57['NOT_FOLLOWING']=_0xa07ab4(0xc2),_0x467b57[_0xa07ab4(0xde)]=_0xa07ab4(0xbb),_0x467b57))(h||{});const xe=_0xa07ab4(0xa4),Le=0xc8;let C=class extends _0x25f604{constructor(_0x318000,_0x4062bd,_0x5cb229,_0x35e5ad,_0x34c708){var _0x4cca25=_0xa07ab4;super(),d(this,_0x4cca25(0x10f),new _0x45b7bf(_0x4cca25(0x115))),d(this,'status$',this[_0x4cca25(0x10f)][_0x4cca25(0x11c)]()),d(this,_0x4cca25(0xd9),!0x1),d(this,_0x4cca25(0xbd),null),d(this,_0x4cca25(0xcc),null),(this[_0x4cca25(0x84)]=_0x318000,this[_0x4cca25(0x9a)]=_0x4062bd,this[_0x4cca25(0xbf)]=_0x5cb229,this['_liveShareService']=_0x35e5ad,this['_commandService']=_0x34c708);}get[_0xa07ab4(0xbe)](){return this['_status$']['getValue']();}[_0xa07ab4(0x11b)](){var _0x3b59a7=_0xa07ab4,_0x3400a7;(_0x3400a7=this['_commandDisposable'])==null||_0x3400a7['dispose'](),this[_0x3b59a7(0x10f)][_0x3b59a7(0xac)]('idle'),this['_status$'][_0x3b59a7(0xc4)]();}['init'](){var _0x165e43=_0xa07ab4;this[_0x165e43(0xd9)]||(this[_0x165e43(0xd9)]=!0x0,this['_collabSession'][_0x165e43(0xa8)][_0x165e43(0xf6)](_0x172f19(this['dispose$']))[_0x165e43(0xc7)](_0xdff43=>{var _0x536c3c=_0x165e43;switch(_0xdff43){case _0x3f3bf1[_0x536c3c(0xd3)]:this['_handleOffline']();break;case _0x3f3bf1[_0x536c3c(0x105)]:this[_0x536c3c(0xe6)]();break;}}),this[_0x165e43(0x9a)]['event$'][_0x165e43(0xf6)](_0x172f19(this[_0x165e43(0x125)]))[_0x165e43(0xc7)](_0x365957=>{var _0x48dfc8=_0x165e43;const {eventID:_0x5342b0}=_0x365957;switch(_0x5342b0){case _0x4646a8[_0x48dfc8(0xce)]:this['_handleNewHost'](_0x365957);break;case _0x4646a8[_0x48dfc8(0xa0)]:this[_0x48dfc8(0xe8)](_0x365957);break;case _0x4646a8[_0x48dfc8(0x117)]:this[_0x48dfc8(0x7f)]();break;case _0x4646a8[_0x48dfc8(0xd2)]:this[_0x48dfc8(0xdd)](_0x365957);break;}}));}[_0xa07ab4(0x10d)](){var _0x2274e7=_0xa07ab4;this[_0x2274e7(0x9a)][_0x2274e7(0x99)]({'eventID':_0x4646a8[_0x2274e7(0xb6)],'data':{'unitID':this[_0x2274e7(0x84)],'userID':this[_0x2274e7(0x9a)][_0x2274e7(0xc3)]()}},this['_unitID']);}[_0xa07ab4(0xbc)](){var _0x5bfb15=_0xa07ab4;this[_0x5bfb15(0xbe)]===_0x5bfb15(0xbb)&&(this[_0x5bfb15(0x10f)][_0x5bfb15(0xac)](_0x5bfb15(0x115)),this['_collabSession'][_0x5bfb15(0x99)]({'eventID':_0x4646a8[_0x5bfb15(0x117)],'data':{'unitID':this[_0x5bfb15(0x84)]}},this[_0x5bfb15(0x84)]));}['startFollowing'](){var _0x3b9604=_0xa07ab4;this['_status']==='not-following'&&(this[_0x3b9604(0x10f)]['next']('following'),this[_0x3b9604(0xe5)]());}[_0xa07ab4(0x120)](){var _0x1e7c40=_0xa07ab4;this[_0x1e7c40(0xbe)]===_0x1e7c40(0xd5)&&this['_stopFollowing']();}['_handleNewHost'](_0x4cf4c3){var _0x45573f=_0xa07ab4;const {presenter:_0x2e9ebf}=_0x4cf4c3[_0x45573f(0xaa)],_0x1d1319=this[_0x45573f(0x9a)][_0x45573f(0xc3)]();this[_0x45573f(0xcc)]=_0x2e9ebf,_0x2e9ebf===_0x1d1319?(this['_stopFollowing'](),this[_0x45573f(0xd1)]()):this[_0x45573f(0xbe)]!==_0x45573f(0xc2)&&(this[_0x45573f(0xa5)](),this['_startFollowing']());}[_0xa07ab4(0x97)](){var _0x33bd98=_0xa07ab4;const _0x24f319={'eventID':_0x4646a8[_0x33bd98(0x96)]};this[_0x33bd98(0x9a)][_0x33bd98(0x99)](_0x24f319,this[_0x33bd98(0x84)]);}[_0xa07ab4(0x7f)](){var _0x3973bb=_0xa07ab4;this[_0x3973bb(0xcc)]=null,this[_0x3973bb(0xbe)]!==_0x3973bb(0xbb)&&this[_0x3973bb(0x94)]();}[_0xa07ab4(0xdd)](_0x281780){var _0xa4fc=_0xa07ab4;if(this['_status']===_0xa4fc(0xd5)&&this[_0xa4fc(0xcc)]===_0x281780['data'][_0xa4fc(0xf7)]){const _0x2942d8=_0x29dff5(_0x281780['data'])[_0xa4fc(0x12a)]['reverse']()[_0xa4fc(0x124)](_0x4e86c5=>_0x4e86c5['id']===_0x3659ed['id']);if(_0x2942d8){const _0x2d9ed6=_0x2942d8[_0xa4fc(0xed)][_0xa4fc(0xe9)],_0x512640=_0x2942d8[_0xa4fc(0xed)]['sheet']['id'];setTimeout(()=>{var _0x2018c2=_0xa4fc;this[_0x2018c2(0x119)][_0x2018c2(0x11f)](_0xa53257['id'],{'unitId':_0x2d9ed6,'subUnitId':_0x512640},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xf844b=_0xa07ab4;this[_0xf844b(0x10f)][_0xf844b(0xac)]('presenting');const _0x4bc36b=new Map(),_0x44e209=this['_commandDisposable']=new _0x5dbdb9();_0x44e209['add'](_0x5182ea(()=>{var _0xaaf85c=_0xf844b;_0x4bc36b[_0xaaf85c(0x8b)](_0x3334b4=>_0x3334b4[_0xaaf85c(0xc4)]()),_0x4bc36b[_0xaaf85c(0xd7)]();})),_0x44e209['add'](this['_commandService'][_0xf844b(0x87)](_0x1518a2=>{var _0x594594=_0xf844b,_0x450fcc;if(_0x1518a2[_0x594594(0xcd)]!==_0x3ece4a[_0x594594(0xa3)]||!this[_0x594594(0xca)][_0x594594(0xd4)](_0x1518a2['id']))return;const {id:_0x417f60}=_0x1518a2;let _0x52a748;_0x4bc36b[_0x594594(0x10a)](_0x417f60)?_0x52a748=_0x4bc36b['get'](_0x417f60):(_0x52a748=new _0x14606f(),_0x4bc36b[_0x594594(0x83)](_0x417f60,_0x52a748),_0x52a748[_0x594594(0xf6)](_0x4451f8((_0x450fcc=this[_0x594594(0xbf)][_0x594594(0x7e)](xe))!=null?_0x450fcc:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x594594(0xc7)](_0x4325a9=>{var _0x422250=_0x594594;this[_0x422250(0x9a)][_0x422250(0x99)]({'eventID':_0x4646a8[_0x422250(0xa0)],'data':{'unitID':this[_0x422250(0x84)],'operations':{[_0x4325a9['id']]:{'id':_0x4325a9['id'],'params':JSON[_0x422250(0xea)](_0x4325a9[_0x422250(0xed)])}}}},this[_0x422250(0x84)]);})),_0x52a748[_0x594594(0xac)](_0x1518a2);})),this[_0xf844b(0xca)][_0xf844b(0x129)](this[_0xf844b(0x84)])[_0xf844b(0x8b)](_0x5b788f=>this[_0xf844b(0x9a)][_0xf844b(0x99)]({'eventID':_0x4646a8[_0xf844b(0xa0)],'data':{'unitID':this['_unitID'],'operations':{[_0x5b788f['id']]:{'id':_0x5b788f['id'],'params':JSON[_0xf844b(0xea)](_0x5b788f[_0xf844b(0xed)])}}}},this[_0xf844b(0x84)]));}[_0xa07ab4(0xa5)](){var _0x5b800=_0xa07ab4,_0x120f0a;this[_0x5b800(0x10f)][_0x5b800(0xac)]('idle'),(_0x120f0a=this[_0x5b800(0xbd)])==null||_0x120f0a['dispose'](),this[_0x5b800(0xbd)]=null;}[_0xa07ab4(0xe5)](){var _0x41cf93=_0xa07ab4,_0x47769c;(_0x47769c=this[_0x41cf93(0xbd)])==null||_0x47769c[_0x41cf93(0x11b)](),this[_0x41cf93(0x10f)][_0x41cf93(0xac)](_0x41cf93(0xd5));}[_0xa07ab4(0x94)](){var _0x8fe525=_0xa07ab4,_0x33e42e;this['_status$']['next']('idle'),(_0x33e42e=this[_0x8fe525(0xbd)])==null||_0x33e42e[_0x8fe525(0x11b)](),this[_0x8fe525(0xbd)]=null;}[_0xa07ab4(0xe4)](){var _0x318c5b=_0xa07ab4,_0x2c6242;this[_0x318c5b(0x10f)][_0x318c5b(0xac)](_0x318c5b(0xc2)),(_0x2c6242=this[_0x318c5b(0xbd)])==null||_0x2c6242['dispose']();}[_0xa07ab4(0xe8)](_0x19978b){var _0x3d834e=_0xa07ab4;if([_0x3d834e(0xbb),_0x3d834e(0xc2),_0x3d834e(0x11e)][_0x3d834e(0x8a)](this[_0x3d834e(0xbe)])||!_0x19978b['data'][_0x3d834e(0x8e)]||_0x19978b[_0x3d834e(0xaa)][_0x3d834e(0x8e)]===this[_0x3d834e(0x9a)][_0x3d834e(0xc3)]())return;this[_0x3d834e(0xbe)]===_0x3d834e(0x115)&&this[_0x3d834e(0xe5)]();const _0x19ef71=_0x19978b[_0x3d834e(0xaa)][_0x3d834e(0x8f)];Object[_0x3d834e(0xf1)](_0x19ef71)[_0x3d834e(0x8b)](_0x110c98=>{var _0x5b1e1d=_0x3d834e;this[_0x5b1e1d(0x119)][_0x5b1e1d(0x11f)](_0x110c98['id'],_0x110c98[_0x5b1e1d(0xed)]?JSON['parse'](_0x110c98[_0x5b1e1d(0xed)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3e0014=_0xa07ab4,_0x289b76;this[_0x3e0014(0x10f)][_0x3e0014(0xac)](_0x3e0014(0x11e)),(_0x289b76=this[_0x3e0014(0xbd)])==null||_0x289b76['dispose']();}['_handleOnline'](){var _0x30a49c=_0xa07ab4;this[_0x30a49c(0x10f)][_0x30a49c(0xac)](_0x30a49c(0x115)),this[_0x30a49c(0x97)]();}};function _0x178e(_0x298759,_0x6dc9e2){var _0x185cf4=_0x185c();return _0x178e=function(_0x178e3d,_0x51b00f){_0x178e3d=_0x178e3d-0x7c;var _0x4e23a9=_0x185cf4[_0x178e3d];return _0x4e23a9;},_0x178e(_0x298759,_0x6dc9e2);}C=Z([f(0x2,_0x5b22d7),f(0x3,_0x354fd2(L)),f(0x4,_0x5e2b20)],C);function ye(){var _0x39fdd3=_0xa07ab4;const _0x274c48=_0x56de89(m),_0x472348=_0x56de89(_0x1607da),_0x19d5aa=_0x338148(()=>_0x472348[_0x39fdd3(0xcb)](_0x511684[_0x39fdd3(0xb4)]),void 0x0,!0x1,[]),[_0x57168d,_0x50a3b5]=_0x2b8a00(null),[_0x4215d9,_0x2328a8]=_0x2b8a00(h['IDLE']),_0x1bce20=_0x105803(null);return _0x9070dc(()=>(_0x19d5aa&&_0x274c48[_0x39fdd3(0xfe)](_0x19d5aa[_0x39fdd3(0x89)]())[_0x39fdd3(0x82)](_0x287e5f=>{var _0x279349=_0x39fdd3;_0x50a3b5(_0x287e5f),_0x1bce20[_0x279349(0x108)]=_0x287e5f[_0x279349(0xef)][_0x279349(0xc7)](_0x312799=>{_0x2328a8(_0x312799);});}),()=>{var _0x33ace2=_0x39fdd3,_0x3541a2;(_0x3541a2=_0x1bce20['current'])==null||_0x3541a2[_0x33ace2(0xf9)](),_0x1bce20[_0x33ace2(0x108)]=null;}),[_0x19d5aa,_0x274c48]),_0x57168d?_0x1261c7(_0x247715,{'align':_0x39fdd3(0xf8),'disabled':_0x4215d9===h[_0x39fdd3(0xd3)],'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':_0x1261c7(Re,{'status':_0x4215d9,'coordinator':_0x57168d}),'children':_0x1261c7('button',{'className':_0x2c649c(_0x39fdd3(0xc6),{'univer-cursor-not-allowed':_0x4215d9===h[_0x39fdd3(0xd3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4215d9!==h[_0x39fdd3(0xd3)]}),'type':'button','children':_0x1261c7(B,{'className':_0x39fdd3(0xc8)})})}):null;}function Re(_0x2ef4df){var _0x15b51b=_0xa07ab4;const {status:_0x5d9824,coordinator:_0x8b4e2}=_0x2ef4df;switch(_0x5d9824){case h['IDLE']:return _0x1261c7(Pe,{'coordinator':_0x8b4e2});case h[_0x15b51b(0x10c)]:return _0x1261c7(Ae,{'coordinator':_0x8b4e2});case h['NOT_FOLLOWING']:return _0x1261c7(Te,{'coordinator':_0x8b4e2});case h[_0x15b51b(0xd3)]:return _0x1261c7(Fe,{});case h[_0x15b51b(0xde)]:return _0x1261c7($e,{'coordinator':_0x8b4e2});default:return null;}}function Pe(_0x10f656){var _0x1b9d31=_0xa07ab4;const {coordinator:_0x203683}=_0x10f656;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7('div',{'className':_0x1b9d31(0xcf),'children':'Present\x20this\x20document'}),_0x1261c7(_0x1aa6e9,{'onClick':()=>_0x203683['tryStartPresenting'](),'children':_0x1b9d31(0xb2)})]});}function Ae(_0xafae98){var _0x31c86d=_0xa07ab4;const {coordinator:_0x2db713}=_0xafae98;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0x31c86d(0xb1),{'className':_0x31c86d(0xcf),'children':_0x31c86d(0x9b)}),_0x1261c7(_0x1aa6e9,{'onClick':()=>_0x2db713['stopFollowing'](),'children':'Stop\x20following'})]});}function Te(_0x5787d7){var _0x422377=_0xa07ab4;const {coordinator:_0x3e4254}=_0x5787d7;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0x422377(0xb1),{'className':_0x422377(0xcf),'children':_0x422377(0x127)}),_0x1261c7(_0x1aa6e9,{'variant':'text','onClick':()=>_0x3e4254['startFollowing'](),'children':_0x422377(0x85)})]});}function $e(_0xf4d894){var _0xb0606d=_0xa07ab4;const {coordinator:_0x1b1240}=_0xf4d894;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0xb0606d(0xb1),{'className':_0xb0606d(0xcf),'children':_0xb0606d(0xf3)}),_0x1261c7(_0x1aa6e9,{'variant':_0xb0606d(0xdf),'onClick':()=>_0x1b1240[_0xb0606d(0xbc)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x41a040=_0xa07ab4;return _0x1261c7(_0x1d6819,{'children':_0x41a040(0xad)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4d9063,_0x38f8f0,_0x5c86e1,_0x418055)=>{var _0x1213f2=_0xa07ab4;for(var _0x42041c=_0x418055>0x1?void 0x0:_0x418055?He(_0x38f8f0,_0x5c86e1):_0x38f8f0,_0x3ca7e0=_0x4d9063[_0x1213f2(0x122)]-0x1,_0xb0720b;_0x3ca7e0>=0x0;_0x3ca7e0--)(_0xb0720b=_0x4d9063[_0x3ca7e0])&&(_0x42041c=_0xb0720b(_0x42041c)||_0x42041c);return _0x42041c;},T=(_0x205f3b,_0x2a5079)=>(_0x3356bd,_0x3136dd)=>_0x2a5079(_0x3356bd,_0x3136dd,_0x205f3b);let I=class extends _0x1e6e0c{constructor(_0x789904,_0x5acc14){var _0x3c8a33=_0xa07ab4;super(),this['_injector']=_0x789904,this[_0x3c8a33(0xa2)]=_0x5acc14,this[_0x3c8a33(0xa1)]();}[_0xa07ab4(0xa1)](){var _0x1e4653=_0xa07ab4;this[_0x1e4653(0xd6)](this[_0x1e4653(0xa2)][_0x1e4653(0xc0)](_0x1cc547[_0x1e4653(0x81)],()=>_0x53741c(ye,this[_0x1e4653(0x104)])));}};I=je([T(0x0,_0x354fd2(_0x4a1d22)),T(0x1,_0x1708ce)],I);const Ue=_0xa07ab4(0x7c),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x211de8,_0x2e7dc5,_0x2e394e,_0x5d87dc)=>{var _0x4d3201=_0xa07ab4;for(var _0x4d0d87=_0x5d87dc>0x1?void 0x0:_0x5d87dc?Ve(_0x2e7dc5,_0x2e394e):_0x2e7dc5,_0x5ccf96=_0x211de8[_0x4d3201(0x122)]-0x1,_0x3fd658;_0x5ccf96>=0x0;_0x5ccf96--)(_0x3fd658=_0x211de8[_0x5ccf96])&&(_0x4d0d87=_0x3fd658(_0x4d0d87)||_0x4d0d87);return _0x4d0d87;},ke=(_0x2fae15,_0x36c2fc)=>(_0x48073b,_0x16ad73)=>_0x36c2fc(_0x48073b,_0x16ad73,_0x2fae15);let b=class extends _0x1e6e0c{constructor(_0x51383c){var _0x55ea64=_0xa07ab4;super(),this[_0x55ea64(0xca)]=_0x51383c,this['_init']();}['_init'](){var _0x47f9f3=_0xa07ab4;[_0x5d01a1['id'],_0x125601['id'],_0xa53257['id']][_0x47f9f3(0x8b)](_0x39a2be=>{var _0x466e1f=_0x47f9f3;this['disposeWithMe'](this[_0x466e1f(0xca)][_0x466e1f(0x88)](_0x39a2be));});}};b=Me([ke(0x0,_0x354fd2(L))],b);var Ge=Object['defineProperty'],We=Object[_0xa07ab4(0xb5)],Ye=(_0x4248a2,_0x3eb4a0,_0x365260)=>_0x3eb4a0 in _0x4248a2?Ge(_0x4248a2,_0x3eb4a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x365260}):_0x4248a2[_0x3eb4a0]=_0x365260,Be=(_0x3ec746,_0x1d4613,_0x1d9cec,_0x902c04)=>{var _0x29b92c=_0xa07ab4;for(var _0x1b3ff2=_0x902c04>0x1?void 0x0:_0x902c04?We(_0x1d4613,_0x1d9cec):_0x1d4613,_0x2abc79=_0x3ec746[_0x29b92c(0x122)]-0x1,_0xe3a45a;_0x2abc79>=0x0;_0x2abc79--)(_0xe3a45a=_0x3ec746[_0x2abc79])&&(_0x1b3ff2=_0xe3a45a(_0x1b3ff2)||_0x1b3ff2);return _0x1b3ff2;},F=(_0x42a9b3,_0x5e752f)=>(_0x5a4f15,_0x11df23)=>_0x5e752f(_0x5a4f15,_0x11df23,_0x42a9b3),J=(_0x17e7ef,_0x370436,_0x3e7278)=>Ye(_0x17e7ef,typeof _0x370436!=_0xa07ab4(0x10e)?_0x370436+'':_0x370436,_0x3e7278);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x347543{constructor(_0x4f220b=$,_0x1aeab9,_0x273722){var _0x5a0d2d=_0xa07ab4;super(),this['_config']=_0x4f220b,this[_0x5a0d2d(0x104)]=_0x1aeab9,this[_0x5a0d2d(0xbf)]=_0x273722;const {..._0x2af60c}=_0x579cd2({},$,this['_config']);this[_0x5a0d2d(0xbf)][_0x5a0d2d(0xec)](Ue,_0x2af60c);}[_0xa07ab4(0x93)](){var _0x21a1a5=_0xa07ab4;_0x5d09aa(this[_0x21a1a5(0x104)],_0x378502([[L],[m],[b],[I]],this[_0x21a1a5(0xe7)][_0x21a1a5(0x9f)])),_0x5c5361(this['_injector'],[[b]]);}[_0xa07ab4(0x11a)](){_0x5c5361(this['_injector'],[[I]]);}};J(O,_0xa07ab4(0xcd),_0x511684['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x26a32a(_0xc10544),F(0x1,_0x354fd2(_0x4a1d22)),F(0x2,_0x5b22d7)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x181387=_0x5244;(function(_0xc27ffd,_0x12ab18){var _0xbefd0a=_0x5244,_0xa037be=_0xc27ffd();while(!![]){try{var _0x511bc0=parseInt(_0xbefd0a(0x1b1))/0x1+-parseInt(_0xbefd0a(0x1c8))/0x2+parseInt(_0xbefd0a(0x19a))/0x3+parseInt(_0xbefd0a(0x199))/0x4*(parseInt(_0xbefd0a(0x1bb))/0x5)+parseInt(_0xbefd0a(0x1da))/0x6*(-parseInt(_0xbefd0a(0x1b8))/0x7)+-parseInt(_0xbefd0a(0x13c))/0x8*(-parseInt(_0xbefd0a(0x15f))/0x9)+-parseInt(_0xbefd0a(0x198))/0xa*(parseInt(_0xbefd0a(0x1b3))/0xb);if(_0x511bc0===_0x12ab18)break;else _0xa037be['push'](_0xa037be['shift']());}catch(_0x323d22){_0xa037be['push'](_0xa037be['shift']());}}}(_0x4d26,0x5611e));var q=Object[_0x181387(0x1c5)],z=(_0x42c765,_0x34fc17,_0x59a000)=>_0x34fc17 in _0x42c765?q(_0x42c765,_0x34fc17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59a000}):_0x42c765[_0x34fc17]=_0x59a000,d=(_0x544352,_0x16d2da,_0x3c54f1)=>z(_0x544352,typeof _0x16d2da!=_0x181387(0x169)?_0x16d2da+'':_0x16d2da,_0x3c54f1);import{Disposable as _0xb4423d,toDisposable as _0x5e0149,IUniverInstanceService as _0x1d3c87,Inject as _0x19b8a0,Injector as _0x340b01,IConfigService as _0x5f525b,ICommandService as _0x4b3389,RxDisposable as _0x379150,UniverInstanceType as _0x3d14a2,DisposableCollection as _0x14b7d5,CommandType as _0x586723,DependentOn as _0x498526,Plugin as _0x51df73,merge as _0xd6b33,registerDependencies as _0x1050b5,mergeOverrideWithDependencies as _0x4379af,touchDependencies as _0x422eb9}from'@univerjs/core';import{useDependency as _0x279fce,useObservable as _0xd9f531,IUIPartsService as _0x59ff15,BuiltInUIPart as _0x8a0539,connectInjector as _0x401def}from'@univerjs/ui';import{jsx as _0x291591,jsxs as _0x312e4c,Fragment as _0x1bf877}from'react/jsx-runtime';import{Dropdown as _0x40e762,clsx as _0x508fea,Button as _0x19249c}from'@univerjs/design';import{forwardRef as _0x190d04,useRef as _0x15d217,createElement as _0x4c53b7,useState as _0x701ff9,useEffect as _0x5f411f}from'react';import{CollaborationEvent as _0x18f536,parseProtocolChangeset as _0x2d9b95}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x106a09,SessionStatus as _0x35e16e,UniverCollaborationClientPlugin as _0x204b9a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x598f74,SetWorksheetActiveOperation as _0x4dceb2}from'@univerjs/sheets';import{BehaviorSubject as _0x108541,Subject as _0x8ae165}from'rxjs';import{takeUntil as _0x203c69,throttleTime as _0x573e8c}from'rxjs/operators';import{SetZoomRatioOperation as _0x4d70b8,SetScrollOperation as _0x2991d1}from'@univerjs/sheets-ui';var c=function(){var _0x104d6c=_0x181387;return c=Object['assign']||function(_0x169026){var _0x4ce8db=_0x5244;for(var _0x362adc,_0x2d286e=0x1,_0x4be252=arguments[_0x4ce8db(0x178)];_0x2d286e<_0x4be252;_0x2d286e++){_0x362adc=arguments[_0x2d286e];for(var _0x4d80bd in _0x362adc)Object['prototype'][_0x4ce8db(0x179)]['call'](_0x362adc,_0x4d80bd)&&(_0x169026[_0x4d80bd]=_0x362adc[_0x4d80bd]);}return _0x169026;},c[_0x104d6c(0x170)](this,arguments);},Oe=function(_0x1ef6cb,_0x1ba05b){var _0x8d10f3=_0x181387,_0x77a537={};for(var _0x170fa5 in _0x1ef6cb)Object[_0x8d10f3(0x149)][_0x8d10f3(0x179)][_0x8d10f3(0x1ce)](_0x1ef6cb,_0x170fa5)&&_0x1ba05b['indexOf'](_0x170fa5)<0x0&&(_0x77a537[_0x170fa5]=_0x1ef6cb[_0x170fa5]);if(_0x1ef6cb!=null&&typeof Object['getOwnPropertySymbols']==_0x8d10f3(0x1d8)){for(var _0x4c8699=0x0,_0x170fa5=Object[_0x8d10f3(0x1e3)](_0x1ef6cb);_0x4c8699<_0x170fa5[_0x8d10f3(0x178)];_0x4c8699++)_0x1ba05b['indexOf'](_0x170fa5[_0x4c8699])<0x0&&Object[_0x8d10f3(0x149)][_0x8d10f3(0x1aa)][_0x8d10f3(0x1ce)](_0x1ef6cb,_0x170fa5[_0x4c8699])&&(_0x77a537[_0x170fa5[_0x4c8699]]=_0x1ef6cb[_0x170fa5[_0x4c8699]]);}return _0x77a537;},W=_0x190d04(function(_0x2c0fb1,_0x41a4c3){var _0x529883=_0x181387,_0x46fa0d=_0x2c0fb1[_0x529883(0x18d)],_0x2e2eac=_0x2c0fb1['id'],_0x5c1230=_0x2c0fb1[_0x529883(0x1d2)],_0x2bebd8=_0x2c0fb1['extend'],_0x2561d7=Oe(_0x2c0fb1,[_0x529883(0x18d),'id','className','extend']),_0x4ad339='univerjs-icon\x20univerjs-icon-'[_0x529883(0x177)](_0x2e2eac,'\x20')['concat'](_0x5c1230||'')[_0x529883(0x1d7)](),_0x406328=_0x15d217('_'[_0x529883(0x177)](Ne()));return Y(_0x46fa0d,''[_0x529883(0x177)](_0x2e2eac),{'defIds':_0x46fa0d[_0x529883(0x1b0)],'idSuffix':_0x406328[_0x529883(0x1a0)]},c({'ref':_0x41a4c3,'className':_0x4ad339},_0x2561d7),_0x2bebd8);});function Y(_0x25cb32,_0x37d599,_0x415d74,_0x23ecc6,_0x43cabd){var _0x3f33ff=_0x181387;return _0x4c53b7(_0x25cb32[_0x3f33ff(0x147)],c(c({'key':_0x37d599},Ee(_0x25cb32,_0x415d74,_0x43cabd)),_0x23ecc6),(we(_0x25cb32,_0x415d74)[_0x3f33ff(0x1db)]||[])['map'](function(_0x3dd05c,_0x25c447){var _0x1af87f=_0x3f33ff;return Y(_0x3dd05c,''[_0x1af87f(0x177)](_0x37d599,'-')['concat'](_0x25cb32[_0x1af87f(0x147)],'-')[_0x1af87f(0x177)](_0x25c447),_0x415d74,void 0x0,_0x43cabd);}));}function Ee(_0x2df4b2,_0x773496,_0x4352e7){var _0x1c8d61=_0x181387,_0x3ad030=c({},_0x2df4b2[_0x1c8d61(0x191)]);_0x4352e7!=null&&_0x4352e7[_0x1c8d61(0x1ab)]&&_0x3ad030[_0x1c8d61(0x156)]==='colorChannel1'&&(_0x3ad030[_0x1c8d61(0x156)]=_0x4352e7['colorChannel1']),_0x2df4b2['tag']===_0x1c8d61(0x15e)&&_0x3ad030['id']&&(_0x3ad030['id']=_0x3ad030['id']+_0x773496[_0x1c8d61(0x164)]),Object['entries'](_0x3ad030)[_0x1c8d61(0x186)](function(_0x1ee3a3){var _0x3f1db8=_0x1c8d61,_0xd0eb11=_0x1ee3a3[0x0],_0x597a0c=_0x1ee3a3[0x1];_0xd0eb11===_0x3f1db8(0x15e)&&typeof _0x597a0c==_0x3f1db8(0x190)&&(_0x3ad030[_0xd0eb11]=_0x597a0c[_0x3f1db8(0x152)](/url\(#(.*)\)/,_0x3f1db8(0x13b)[_0x3f1db8(0x177)](_0x773496[_0x3f1db8(0x164)],')')));});var _0x392b44=_0x773496[_0x1c8d61(0x1b0)];return!_0x392b44||_0x392b44['length']===0x0||(_0x2df4b2[_0x1c8d61(0x147)]===_0x1c8d61(0x14c)&&_0x3ad030[_0x1c8d61(0x1d5)]&&(_0x3ad030[_0x1c8d61(0x1d5)]=_0x3ad030[_0x1c8d61(0x1d5)]+_0x773496[_0x1c8d61(0x164)]),Object[_0x1c8d61(0x142)](_0x3ad030)[_0x1c8d61(0x186)](function(_0x8e3ffe){var _0x2b7bee=_0x1c8d61,_0x155910=_0x8e3ffe[0x0],_0x7e5772=_0x8e3ffe[0x1];typeof _0x7e5772==_0x2b7bee(0x190)&&(_0x3ad030[_0x155910]=_0x7e5772[_0x2b7bee(0x152)](/url\(#(.*)\)/,_0x2b7bee(0x13b)[_0x2b7bee(0x177)](_0x773496[_0x2b7bee(0x164)],')')));})),_0x3ad030;}function we(_0x4bb924,_0x2b3619){var _0x10c281=_0x181387,_0x76e881,_0x4a5851=_0x2b3619['defIds'];return!_0x4a5851||_0x4a5851['length']===0x0?_0x4bb924:_0x4bb924[_0x10c281(0x147)]==='defs'&&(!((_0x76e881=_0x4bb924[_0x10c281(0x1db)])===null||_0x76e881===void 0x0)&&_0x76e881[_0x10c281(0x178)])?c(c({},_0x4bb924),{'children':_0x4bb924['children'][_0x10c281(0x1d9)](function(_0x5047da){var _0x42c6b3=_0x10c281;return typeof _0x5047da[_0x42c6b3(0x191)]['id']==_0x42c6b3(0x190)&&_0x4a5851&&_0x4a5851[_0x42c6b3(0x138)](_0x5047da[_0x42c6b3(0x191)]['id'])?c(c({},_0x5047da),{'attrs':c(c({},_0x5047da[_0x42c6b3(0x191)]),{'id':_0x5047da[_0x42c6b3(0x191)]['id']+_0x2b3619['idSuffix']})}):_0x5047da;})}):_0x4bb924;}function Ne(){var _0x201e5b=_0x181387;return Math[_0x201e5b(0x1be)]()['toString'](0x24)[_0x201e5b(0x19b)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x181387(0x1cd),'attrs':{'xmlns':_0x181387(0x181),'fill':'none','viewBox':_0x181387(0x187),'width':_0x181387(0x148),'height':_0x181387(0x148)},'children':[{'tag':'path','attrs':{'fill':_0x181387(0x18a),'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':_0x181387(0x150),'attrs':{'fill':_0x181387(0x18a),'d':_0x181387(0x188),'fillRule':'evenodd','clipRule':_0x181387(0x182)}}]},B=_0x190d04(function(_0x1a46b0,_0x15294d){var _0x388a9d=_0x181387;return _0x4c53b7(W,Object['assign']({},_0x1a46b0,{'id':_0x388a9d(0x13e),'ref':_0x15294d,'icon':Ce}));});B[_0x181387(0x1d6)]=_0x181387(0x173);class L extends _0xb4423d{constructor(){var _0x53cfcb=_0x181387;super(...arguments),d(this,_0x53cfcb(0x167),new Set()),d(this,_0x53cfcb(0x1dc),new Set());}[_0x181387(0x175)](_0x58fc0a){var _0x5e37a3=_0x181387;return this[_0x5e37a3(0x167)]['add'](_0x58fc0a),_0x5e0149(()=>this[_0x5e37a3(0x167)][_0x5e37a3(0x1d0)](_0x58fc0a));}[_0x181387(0x15c)](_0x2270b6){var _0x4b5d0e=_0x181387;return this[_0x4b5d0e(0x1dc)][_0x4b5d0e(0x1b6)](_0x2270b6),_0x5e0149(()=>this[_0x4b5d0e(0x1dc)][_0x4b5d0e(0x1d0)](_0x2270b6));}['shouldShareOperation'](_0x42ac0d){var _0x1cd4b8=_0x181387;return this[_0x1cd4b8(0x167)][_0x1cd4b8(0x189)](_0x42ac0d);}[_0x181387(0x17a)](_0x5f2719){var _0xdf5c24=_0x181387;return Array[_0xdf5c24(0x1e1)](this['_reporters'])[_0xdf5c24(0x1d9)](_0xfdac59=>_0xfdac59(_0x5f2719));}}var De=Object[_0x181387(0x193)],Z=(_0x4ae96c,_0x12bfce,_0x33ed9b,_0x4c37d5)=>{var _0x51e47b=_0x181387;for(var _0x219f81=_0x4c37d5>0x1?void 0x0:_0x4c37d5?De(_0x12bfce,_0x33ed9b):_0x12bfce,_0x35e5d1=_0x4ae96c[_0x51e47b(0x178)]-0x1,_0x1c0fa3;_0x35e5d1>=0x0;_0x35e5d1--)(_0x1c0fa3=_0x4ae96c[_0x35e5d1])&&(_0x219f81=_0x1c0fa3(_0x219f81)||_0x219f81);return _0x219f81;},f=(_0x51ffa0,_0x1e8c4d)=>(_0x363ac5,_0x387fb1)=>_0x1e8c4d(_0x363ac5,_0x387fb1,_0x51ffa0);let m=class extends _0x379150{constructor(_0x456523,_0x28ae25,_0x203c1f){var _0xcb4437=_0x181387;super(),d(this,_0xcb4437(0x1c7),new Map()),(this[_0xcb4437(0x1e5)]=_0x456523,this['_injector']=_0x28ae25,this[_0xcb4437(0x17e)]=_0x203c1f,this[_0xcb4437(0x197)]());}async[_0x181387(0x19d)](_0x5dd37c){var _0x25549e=_0x181387;return this[_0x25549e(0x1c7)][_0x25549e(0x189)](_0x5dd37c)||await this[_0x25549e(0x163)](_0x5dd37c),this[_0x25549e(0x1c7)][_0x25549e(0x13a)](_0x5dd37c);}['_init'](){var _0x2cfca8=_0x181387;this[_0x2cfca8(0x1e5)]['getTypeOfUnitAdded$'](_0x3d14a2[_0x2cfca8(0x1bf)])[_0x2cfca8(0x1a4)](_0x203c69(this[_0x2cfca8(0x1bd)]))[_0x2cfca8(0x18f)](async _0x462de0=>{var _0x3264ad=_0x2cfca8;const _0x539761=_0x462de0[_0x3264ad(0x1a6)]();this[_0x3264ad(0x1c7)]['has'](_0x539761)||this[_0x3264ad(0x163)](_0x539761);}),this['_univerInstanceService'][_0x2cfca8(0x166)](_0x3d14a2[_0x2cfca8(0x1bf)])[_0x2cfca8(0x1a4)](_0x203c69(this[_0x2cfca8(0x1bd)]))[_0x2cfca8(0x18f)](_0x4d1c2e=>{var _0x592499=_0x2cfca8;const _0x581b86=_0x4d1c2e['getUnitId'](),_0x1eafb2=this[_0x592499(0x1c7)][_0x592499(0x13a)](_0x581b86);_0x1eafb2==null||_0x1eafb2[_0x592499(0x183)]();});}async[_0x181387(0x163)](_0x714915){var _0x17471b=_0x181387;const _0x4ed7ba=await this['_collabSessionService'][_0x17471b(0x137)](_0x714915),_0x59dba9=this[_0x17471b(0x146)][_0x17471b(0x1ac)](C,_0x714915,_0x4ed7ba);return _0x59dba9[_0x17471b(0x141)](),this['_entities']['set'](_0x714915,_0x59dba9),_0x59dba9;}};m=Z([f(0x0,_0x1d3c87),f(0x1,_0x19b8a0(_0x340b01)),f(0x2,_0x19b8a0(_0x106a09))],m);var h=(_0x5b607d=>(_0x5b607d[_0x181387(0x19f)]='offline',_0x5b607d[_0x181387(0x1d4)]='idle',_0x5b607d['FOLLOWING']=_0x181387(0x145),_0x5b607d[_0x181387(0x14b)]=_0x181387(0x185),_0x5b607d['PRESENTING']=_0x181387(0x14d),_0x5b607d))(h||{});const xe=_0x181387(0x159),Le=0xc8;let C=class extends _0x379150{constructor(_0x847543,_0x9aef47,_0xa1063e,_0x23de10,_0x4066d8){var _0x2ada3e=_0x181387;super(),d(this,_0x2ada3e(0x1ca),new _0x108541(_0x2ada3e(0x1c2))),d(this,_0x2ada3e(0x192),this['_status$'][_0x2ada3e(0x151)]()),d(this,_0x2ada3e(0x197),!0x1),d(this,_0x2ada3e(0x143),null),d(this,_0x2ada3e(0x1d3),null),(this['_unitID']=_0x847543,this[_0x2ada3e(0x184)]=_0x9aef47,this[_0x2ada3e(0x140)]=_0xa1063e,this['_liveShareService']=_0x23de10,this['_commandService']=_0x4066d8);}get[_0x181387(0x155)](){var _0x5555ad=_0x181387;return this[_0x5555ad(0x1ca)]['getValue']();}[_0x181387(0x183)](){var _0x35ad49=_0x181387,_0x1d0444;(_0x1d0444=this[_0x35ad49(0x143)])==null||_0x1d0444[_0x35ad49(0x183)](),this[_0x35ad49(0x1ca)]['next']('idle'),this['_status$'][_0x35ad49(0x1dd)]();}[_0x181387(0x141)](){var _0x5bb9d7=_0x181387;this['_init']||(this[_0x5bb9d7(0x197)]=!0x0,this[_0x5bb9d7(0x184)][_0x5bb9d7(0x1a8)]['pipe'](_0x203c69(this['dispose$']))['subscribe'](_0x17f5a2=>{var _0x3ab379=_0x5bb9d7;switch(_0x17f5a2){case _0x35e16e[_0x3ab379(0x19f)]:this['_handleOffline']();break;case _0x35e16e[_0x3ab379(0x1a9)]:this[_0x3ab379(0x17d)]();break;}}),this[_0x5bb9d7(0x184)][_0x5bb9d7(0x16a)]['pipe'](_0x203c69(this[_0x5bb9d7(0x1bd)]))[_0x5bb9d7(0x18f)](_0x3f6543=>{var _0x53682e=_0x5bb9d7;const {eventID:_0x382dc9}=_0x3f6543;switch(_0x382dc9){case _0x18f536[_0x53682e(0x14a)]:this[_0x53682e(0x1ba)](_0x3f6543);break;case _0x18f536[_0x53682e(0x18e)]:this[_0x53682e(0x1b2)](_0x3f6543);break;case _0x18f536[_0x53682e(0x1c4)]:this[_0x53682e(0x136)]();break;case _0x18f536[_0x53682e(0x1c1)]:this['_handleNewChangeSets'](_0x3f6543);break;}}));}[_0x181387(0x1a2)](){var _0x535a27=_0x181387;this[_0x535a27(0x184)][_0x535a27(0x17c)]({'eventID':_0x18f536[_0x535a27(0x144)],'data':{'unitID':this[_0x535a27(0x1cf)],'userID':this[_0x535a27(0x184)][_0x535a27(0x18c)]()}},this[_0x535a27(0x1cf)]);}[_0x181387(0x174)](){var _0x59ff97=_0x181387;this[_0x59ff97(0x155)]===_0x59ff97(0x14d)&&(this[_0x59ff97(0x1ca)]['next'](_0x59ff97(0x1c2)),this[_0x59ff97(0x184)][_0x59ff97(0x17c)]({'eventID':_0x18f536[_0x59ff97(0x1c4)],'data':{'unitID':this[_0x59ff97(0x1cf)]}},this['_unitID']));}[_0x181387(0x180)](){var _0x262e5e=_0x181387;this['_status']===_0x262e5e(0x185)&&(this['_status$'][_0x262e5e(0x16f)]('following'),this[_0x262e5e(0x17b)]());}[_0x181387(0x15a)](){var _0x43e6a8=_0x181387;this['_status']===_0x43e6a8(0x145)&&this[_0x43e6a8(0x1bc)]();}[_0x181387(0x1ba)](_0x1cbdab){var _0x96e490=_0x181387;const {presenter:_0x40a471}=_0x1cbdab['data'],_0x487d8e=this['_collabSession'][_0x96e490(0x18c)]();this[_0x96e490(0x1d3)]=_0x40a471,_0x40a471===_0x487d8e?(this[_0x96e490(0x1bc)](),this[_0x96e490(0x13d)]()):this[_0x96e490(0x155)]!==_0x96e490(0x185)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x181387(0x157)](){var _0x32d263=_0x181387;const _0x363b32={'eventID':_0x18f536[_0x32d263(0x15b)]};this[_0x32d263(0x184)][_0x32d263(0x17c)](_0x363b32,this['_unitID']);}['_handleTerminate'](){var _0x1f55d0=_0x181387;this['_presenter']=null,this['_status']!==_0x1f55d0(0x14d)&&this['_beIdle']();}[_0x181387(0x1c0)](_0x2e90a5){var _0x3d22fd=_0x181387;if(this[_0x3d22fd(0x155)]===_0x3d22fd(0x145)&&this[_0x3d22fd(0x1d3)]===_0x2e90a5[_0x3d22fd(0x16b)][_0x3d22fd(0x139)]){const _0x441832=_0x2d9b95(_0x2e90a5[_0x3d22fd(0x16b)])[_0x3d22fd(0x161)]['reverse']()[_0x3d22fd(0x194)](_0x5130e3=>_0x5130e3['id']===_0x598f74['id']);if(_0x441832){const _0x564608=_0x441832[_0x3d22fd(0x158)]['unitId'],_0x574823=_0x441832['params'][_0x3d22fd(0x16e)]['id'];setTimeout(()=>{var _0x139f8b=_0x3d22fd;this[_0x139f8b(0x1e0)]['executeCommand'](_0x4dceb2['id'],{'unitId':_0x564608,'subUnitId':_0x574823},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4fec86=_0x181387;this[_0x4fec86(0x1ca)][_0x4fec86(0x16f)](_0x4fec86(0x14d));const _0x58973d=new Map(),_0x1ecbc7=this[_0x4fec86(0x143)]=new _0x14b7d5();_0x1ecbc7[_0x4fec86(0x1b6)](_0x5e0149(()=>{var _0x5d2394=_0x4fec86;_0x58973d[_0x5d2394(0x186)](_0x31ed57=>_0x31ed57[_0x5d2394(0x1dd)]()),_0x58973d[_0x5d2394(0x1e2)]();})),_0x1ecbc7[_0x4fec86(0x1b6)](this['_commandService'][_0x4fec86(0x19c)](_0x120996=>{var _0x4f1840=_0x4fec86,_0x1883b3;if(_0x120996[_0x4f1840(0x1b9)]!==_0x586723[_0x4f1840(0x154)]||!this['_liveShareService'][_0x4f1840(0x176)](_0x120996['id']))return;const {id:_0x3a6513}=_0x120996;let _0x3bf11f;_0x58973d[_0x4f1840(0x189)](_0x3a6513)?_0x3bf11f=_0x58973d[_0x4f1840(0x13a)](_0x3a6513):(_0x3bf11f=new _0x8ae165(),_0x58973d['set'](_0x3a6513,_0x3bf11f),_0x3bf11f[_0x4f1840(0x1a4)](_0x573e8c((_0x1883b3=this[_0x4f1840(0x140)][_0x4f1840(0x1b4)](xe))!=null?_0x1883b3:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x49cb64=>{var _0x5ec7ae=_0x4f1840;this[_0x5ec7ae(0x184)]['send']({'eventID':_0x18f536['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x49cb64['id']]:{'id':_0x49cb64['id'],'params':JSON['stringify'](_0x49cb64[_0x5ec7ae(0x158)])}}}},this[_0x5ec7ae(0x1cf)]);})),_0x3bf11f[_0x4f1840(0x16f)](_0x120996);})),this[_0x4fec86(0x19e)]['getInitialStates'](this[_0x4fec86(0x1cf)])[_0x4fec86(0x186)](_0xf94d8=>this[_0x4fec86(0x184)][_0x4fec86(0x17c)]({'eventID':_0x18f536['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4fec86(0x1cf)],'operations':{[_0xf94d8['id']]:{'id':_0xf94d8['id'],'params':JSON[_0x4fec86(0x195)](_0xf94d8['params'])}}}},this[_0x4fec86(0x1cf)]));}[_0x181387(0x1d1)](){var _0x170f11=_0x181387,_0xe17cd3;this['_status$'][_0x170f11(0x16f)]('idle'),(_0xe17cd3=this['_commandDisposable'])==null||_0xe17cd3[_0x170f11(0x183)](),this[_0x170f11(0x143)]=null;}[_0x181387(0x17b)](){var _0x3417ad=_0x181387,_0x4124df;(_0x4124df=this[_0x3417ad(0x143)])==null||_0x4124df[_0x3417ad(0x183)](),this[_0x3417ad(0x1ca)][_0x3417ad(0x16f)](_0x3417ad(0x145));}['_beIdle'](){var _0x5ca409=_0x181387,_0x419194;this[_0x5ca409(0x1ca)][_0x5ca409(0x16f)](_0x5ca409(0x1c2)),(_0x419194=this['_commandDisposable'])==null||_0x419194['dispose'](),this[_0x5ca409(0x143)]=null;}[_0x181387(0x1bc)](){var _0x385822=_0x181387,_0x15d342;this[_0x385822(0x1ca)]['next'](_0x385822(0x185)),(_0x15d342=this[_0x385822(0x143)])==null||_0x15d342[_0x385822(0x183)]();}[_0x181387(0x1b2)](_0x1734d9){var _0x23b6f5=_0x181387;if([_0x23b6f5(0x14d),_0x23b6f5(0x185),_0x23b6f5(0x1a3)][_0x23b6f5(0x138)](this[_0x23b6f5(0x155)])||!_0x1734d9[_0x23b6f5(0x16b)][_0x23b6f5(0x165)]||_0x1734d9[_0x23b6f5(0x16b)][_0x23b6f5(0x165)]===this[_0x23b6f5(0x184)]['getMemberID']())return;this[_0x23b6f5(0x155)]===_0x23b6f5(0x1c2)&&this[_0x23b6f5(0x17b)]();const _0x1b0271=_0x1734d9[_0x23b6f5(0x16b)]['operations'];Object[_0x23b6f5(0x1b7)](_0x1b0271)[_0x23b6f5(0x186)](_0x3c047a=>{var _0x3ec457=_0x23b6f5;this[_0x3ec457(0x1e0)]['executeCommand'](_0x3c047a['id'],_0x3c047a['params']?JSON[_0x3ec457(0x1de)](_0x3c047a[_0x3ec457(0x158)]):null,{'fromCollab':!0x0});});}[_0x181387(0x1c9)](){var _0x50da63=_0x181387,_0x53750c;this[_0x50da63(0x1ca)]['next']('offline'),(_0x53750c=this['_commandDisposable'])==null||_0x53750c[_0x50da63(0x183)]();}[_0x181387(0x17d)](){var _0x347458=_0x181387;this['_status$']['next'](_0x347458(0x1c2)),this[_0x347458(0x157)]();}};C=Z([f(0x2,_0x5f525b),f(0x3,_0x19b8a0(L)),f(0x4,_0x4b3389)],C);function ye(){var _0x16c89f=_0x181387;const _0xe9d7a9=_0x279fce(m),_0x157dd0=_0x279fce(_0x1d3c87),_0x256a06=_0xd9f531(()=>_0x157dd0[_0x16c89f(0x1a5)](_0x3d14a2[_0x16c89f(0x1bf)]),void 0x0,!0x1,[]),[_0x5ede85,_0x3b689c]=_0x701ff9(null),[_0x58aca6,_0x1792db]=_0x701ff9(h['IDLE']),_0x24673f=_0x15d217(null);return _0x5f411f(()=>(_0x256a06&&_0xe9d7a9[_0x16c89f(0x19d)](_0x256a06[_0x16c89f(0x1a6)]())[_0x16c89f(0x1c3)](_0x18d7cf=>{var _0x5100b3=_0x16c89f;_0x3b689c(_0x18d7cf),_0x24673f[_0x5100b3(0x1a0)]=_0x18d7cf['status$'][_0x5100b3(0x18f)](_0x1ea568=>{_0x1792db(_0x1ea568);});}),()=>{var _0x1c9b06=_0x16c89f,_0x484f6f;(_0x484f6f=_0x24673f['current'])==null||_0x484f6f[_0x1c9b06(0x160)](),_0x24673f[_0x1c9b06(0x1a0)]=null;}),[_0x256a06,_0xe9d7a9]),_0x5ede85?_0x291591(_0x40e762,{'align':'end','disabled':_0x58aca6===h['OFFLINE'],'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':_0x291591(Re,{'status':_0x58aca6,'coordinator':_0x5ede85}),'children':_0x291591(_0x16c89f(0x16c),{'className':_0x508fea(_0x16c89f(0x13f),{'univer-cursor-not-allowed':_0x58aca6===h[_0x16c89f(0x19f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x58aca6!==h[_0x16c89f(0x19f)]}),'type':_0x16c89f(0x16c),'children':_0x291591(B,{'className':_0x16c89f(0x1b5)})})}):null;}function Re(_0x27b483){var _0x1c123f=_0x181387;const {status:_0x5ba908,coordinator:_0x453a17}=_0x27b483;switch(_0x5ba908){case h[_0x1c123f(0x1d4)]:return _0x291591(Pe,{'coordinator':_0x453a17});case h['FOLLOWING']:return _0x291591(Ae,{'coordinator':_0x453a17});case h[_0x1c123f(0x14b)]:return _0x291591(Te,{'coordinator':_0x453a17});case h['OFFLINE']:return _0x291591(Fe,{});case h[_0x1c123f(0x1cb)]:return _0x291591($e,{'coordinator':_0x453a17});default:return null;}}function Pe(_0x49c9da){var _0x48dde3=_0x181387;const {coordinator:_0x47efc1}=_0x49c9da;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x48dde3(0x196),{'className':_0x48dde3(0x1e4),'children':_0x48dde3(0x17f)}),_0x291591(_0x19249c,{'onClick':()=>_0x47efc1[_0x48dde3(0x1a2)](),'children':'Start'})]});}function Ae(_0x55f0a8){var _0x7f3747=_0x181387;const {coordinator:_0x47a0d3}=_0x55f0a8;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x7f3747(0x196),{'className':_0x7f3747(0x1e4),'children':_0x7f3747(0x172)}),_0x291591(_0x19249c,{'onClick':()=>_0x47a0d3[_0x7f3747(0x15a)](),'children':'Stop\x20following'})]});}function Te(_0x1dda3f){var _0x28bf64=_0x181387;const {coordinator:_0x192419}=_0x1dda3f;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x28bf64(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28bf64(0x162)}),_0x291591(_0x19249c,{'variant':'text','onClick':()=>_0x192419[_0x28bf64(0x180)](),'children':'Start\x20following'})]});}function $e(_0x22a67f){var _0x1b3b35=_0x181387;const {coordinator:_0x374b6e}=_0x22a67f;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x1b3b35(0x196),{'className':_0x1b3b35(0x1e4),'children':_0x1b3b35(0x18b)}),_0x291591(_0x19249c,{'variant':'default','onClick':()=>_0x374b6e[_0x1b3b35(0x174)](),'children':_0x1b3b35(0x153)})]});}function Fe(){var _0x4ea957=_0x181387;return _0x291591(_0x1bf877,{'children':_0x4ea957(0x1ad)});}var He=Object[_0x181387(0x193)],je=(_0x27901f,_0x24f529,_0x4d9197,_0x214d70)=>{var _0xe4e56=_0x181387;for(var _0x225179=_0x214d70>0x1?void 0x0:_0x214d70?He(_0x24f529,_0x4d9197):_0x24f529,_0x32e8bb=_0x27901f[_0xe4e56(0x178)]-0x1,_0x3a3db2;_0x32e8bb>=0x0;_0x32e8bb--)(_0x3a3db2=_0x27901f[_0x32e8bb])&&(_0x225179=_0x3a3db2(_0x225179)||_0x225179);return _0x225179;},T=(_0x2ee10e,_0x2a8a06)=>(_0xdef2d0,_0x356d1d)=>_0x2a8a06(_0xdef2d0,_0x356d1d,_0x2ee10e);function _0x5244(_0xd6eec1,_0x4b74c4){var _0x4d2656=_0x4d26();return _0x5244=function(_0x524493,_0x42f8ee){_0x524493=_0x524493-0x136;var _0x366dd9=_0x4d2656[_0x524493];return _0x366dd9;},_0x5244(_0xd6eec1,_0x4b74c4);}let I=class extends _0xb4423d{constructor(_0x57c5d9,_0x4b5082){var _0x358af7=_0x181387;super(),this['_injector']=_0x57c5d9,this[_0x358af7(0x1af)]=_0x4b5082,this[_0x358af7(0x1df)]();}[_0x181387(0x1df)](){var _0x4cfb0b=_0x181387;this[_0x4cfb0b(0x14e)](this[_0x4cfb0b(0x1af)][_0x4cfb0b(0x1ae)](_0x8a0539[_0x4cfb0b(0x1c6)],()=>_0x401def(ye,this['_injector'])));}};I=je([T(0x0,_0x19b8a0(_0x340b01)),T(0x1,_0x59ff15)],I);const Ue=_0x181387(0x1a1),$={};var Ve=Object[_0x181387(0x193)],Me=(_0x45115a,_0x3e31a6,_0x1f4776,_0x2e2be0)=>{for(var _0x4647ca=_0x2e2be0>0x1?void 0x0:_0x2e2be0?Ve(_0x3e31a6,_0x1f4776):_0x3e31a6,_0x1f2a29=_0x45115a['length']-0x1,_0x3d2f15;_0x1f2a29>=0x0;_0x1f2a29--)(_0x3d2f15=_0x45115a[_0x1f2a29])&&(_0x4647ca=_0x3d2f15(_0x4647ca)||_0x4647ca);return _0x4647ca;},ke=(_0x5891fc,_0x19805a)=>(_0x534bf2,_0x237c0a)=>_0x19805a(_0x534bf2,_0x237c0a,_0x5891fc);let b=class extends _0xb4423d{constructor(_0x279f9d){var _0x454ade=_0x181387;super(),this[_0x454ade(0x19e)]=_0x279f9d,this[_0x454ade(0x197)]();}[_0x181387(0x197)](){var _0x184932=_0x181387;[_0x4d70b8['id'],_0x2991d1['id'],_0x4dceb2['id']][_0x184932(0x186)](_0x32a7aa=>{var _0x1674dd=_0x184932;this[_0x1674dd(0x14e)](this[_0x1674dd(0x19e)]['registerSharedOperation'](_0x32a7aa));});}};b=Me([ke(0x0,_0x19b8a0(L))],b);function _0x4d26(){var _0xd8d1f2=['1853230OqrWoE','_stopFollowing','dispose$','random','UNIVER_SHEET','_handleNewChangeSets','NEW_CHANGESETS','idle','then','LIVESHARE_TERMINATE','defineProperty','HEADER_MENU','_entities','877644KfPbPq','_handleOffline','_status$','PRESENTING','_config','svg','call','_unitID','delete','_stopPresenting','className','_presenter','IDLE','xlink:href','displayName','trim','function','map','1018446vfrBAI','children','_reporters','complete','parse','_mountLiveShare','_commandService','from','clear','getOwnPropertySymbols','univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','_handleTerminate','requireSession','includes','memberID','get','url(#$1','552aqAEFO','_startPresenting','live-share-icon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_configService','init','entries','_commandDisposable','LIVESHARE_REQUEST_HOST','following','_injector','tag','1em','prototype','LIVESHARE_NEW_HOST','NOT_FOLLOWING','use','presenting','disposeWithMe','UNIVER_UNKNOWN','path','asObservable','replace','Stop\x20presenting','OPERATION','_status','fill','_fetchOperations','params','SAME_OPERATION_SHARE_INTERVAL','stopFollowing','LIVESHARE_FETCH_OPERATIONS','registerInitialStateReporter','setConfig','mask','88398tQmaaj','unsubscribe','mutations','You\x27re\x20not\x20following\x20the\x20presenter','_startLiveShareCoordinator','idSuffix','presenter','getTypeOfUnitDisposed$','_sharedOperations','onRendered','symbol','event$','data','button','onStarting','sheet','next','apply','pluginName','You\x27re\x20following\x20the\x20presenter','LiveShareIcon','stopPresenting','registerSharedOperation','shouldShareOperation','concat','length','hasOwnProperty','getInitialStates','_startFollowing','send','_handleOnline','_collabSessionService','Present\x20this\x20document','startFollowing','http://www.w3.org/2000/svg','evenodd','dispose','_collabSession','not-following','forEach','0\x200\x2017\x2017','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','has','currentColor','You\x27re\x20presenting\x20the\x20document','getMemberID','icon','LIVESHARE_OPERATION','subscribe','string','attrs','status$','getOwnPropertyDescriptor','find','stringify','div','_init','270gAjacs','4fZBAEA','328242fJdTxd','substring','onCommandExecuted','getLiveShareCoordinator','_liveShareService','OFFLINE','current','live-share.config','tryStartPresenting','offline','pipe','getCurrentTypeOfUnit$','getUnitId','UNIVER_LIVE_SHARE_PLUGIN','sessionStatus$','ONLINE','propertyIsEnumerable','colorChannel1','createInstance','You\x27are\x20offline.','registerComponent','_uiPartsService','defIds','581524HZefhr','_handleOperation','109582UXiXrg','getConfig','univer-size-4','add','values','28IjcRVG','type','_handleNewHost'];_0x4d26=function(){return _0xd8d1f2;};return _0x4d26();}var Ge=Object[_0x181387(0x1c5)],We=Object[_0x181387(0x193)],Ye=(_0x96e68a,_0x59a02a,_0x1fc2f2)=>_0x59a02a in _0x96e68a?Ge(_0x96e68a,_0x59a02a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fc2f2}):_0x96e68a[_0x59a02a]=_0x1fc2f2,Be=(_0x1a2ba2,_0x3f1212,_0x5f245e,_0x1f3629)=>{var _0x405386=_0x181387;for(var _0xac1a4f=_0x1f3629>0x1?void 0x0:_0x1f3629?We(_0x3f1212,_0x5f245e):_0x3f1212,_0x2ae03c=_0x1a2ba2[_0x405386(0x178)]-0x1,_0x57c803;_0x2ae03c>=0x0;_0x2ae03c--)(_0x57c803=_0x1a2ba2[_0x2ae03c])&&(_0xac1a4f=_0x57c803(_0xac1a4f)||_0xac1a4f);return _0xac1a4f;},F=(_0x21bb44,_0x3eff0f)=>(_0x455f6e,_0x2b12ab)=>_0x3eff0f(_0x455f6e,_0x2b12ab,_0x21bb44),J=(_0x5ea947,_0x5e9f79,_0x51fc96)=>Ye(_0x5ea947,typeof _0x5e9f79!=_0x181387(0x169)?_0x5e9f79+'':_0x5e9f79,_0x51fc96);const Ze=_0x181387(0x1a7);let O=class extends _0x51df73{constructor(_0x4aefd8=$,_0x29618b,_0x4368d6){var _0x28fcdf=_0x181387;super(),this[_0x28fcdf(0x1cc)]=_0x4aefd8,this['_injector']=_0x29618b,this['_configService']=_0x4368d6;const {..._0x127ce3}=_0xd6b33({},$,this[_0x28fcdf(0x1cc)]);this[_0x28fcdf(0x140)][_0x28fcdf(0x15d)](Ue,_0x127ce3);}[_0x181387(0x16d)](){var _0x3fd118=_0x181387;_0x1050b5(this[_0x3fd118(0x146)],_0x4379af([[L],[m],[b],[I]],this[_0x3fd118(0x1cc)]['override'])),_0x422eb9(this['_injector'],[[b]]);}[_0x181387(0x168)](){var _0x5f4fbc=_0x181387;_0x422eb9(this[_0x5f4fbc(0x146)],[[I]]);}};J(O,_0x181387(0x1b9),_0x3d14a2[_0x181387(0x14f)]),J(O,_0x181387(0x171),Ze),O=Be([_0x498526(_0x204b9a),F(0x1,_0x19b8a0(_0x340b01)),F(0x2,_0x5f525b)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4ff5(){var _0x88c4b4=['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','symbol','dispose$','8014686BlZAuO','Plugin','react','getLiveShareCoordinator','concat','end','tryStartPresenting','getOwnPropertyDescriptor','You\x27are\x20offline.','_configService','toString','_stopPresenting','takeUntil','Start','UniverCore','CommandType','has','createInstance','send','disposeWithMe','1em','UNIVER_LIVE_SHARE_PLUGIN','_injector','params','replace','Dropdown','_uiPartsService','@univerjs-pro/collaboration-client','toDisposable','_unitID','CollaborationSessionService','Stop\x20presenting','_commandService','UniverProCollaborationClient','FOLLOWING','LiveShareCoordinator','registerComponent','getCurrentTypeOfUnit$','executeCommand','data','values','onRendered','override','LIVESHARE_OPERATION','2796104vkFGKX','_status','_startLiveShareCoordinator','from','Fragment','operations','delete','_entities','UNIVER_SHEET','current','then','none','12cZiCwH','default','jsx','_fetchOperations','getMemberID','_status$','Module','not-following','IConfigService','DesktopLiveShareController','prototype','includes','children','_handleOnline','SetWorksheetActiveOperation','_handleTerminate','SetScrollOperation','map','ICommandService','react/jsx-runtime','Inject','init','connectInjector','_startFollowing','getUnitId','presenter','_collabSession','parse','IUniverInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','entries','ONLINE','onCommandExecuted','call','onStarting','add','RxDisposable','string','UniverSheetsUi','InsertSheetMutation','_presenter','amd','UniverUi','stringify','SAME_OPERATION_SHARE_INTERVAL','BuiltInUIPart','button','@univerjs/sheets','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','193910aaORvR','IDLE','You\x27re\x20presenting\x20the\x20document','LiveShareController','513fAktli','clear','univer-size-4','extend','offline','displayName','setConfig','LIVESHARE_NEW_HOST','_liveShareService','registerSharedOperation','length','UniverSheets','UniverDesign','_config','http://www.w3.org/2000/svg','UniverProCollaboration','fill','BehaviorSubject','Injector','idSuffix','text','useObservable','substring','forEach','useState','svg','parseProtocolChangeset','url(#$1','startFollowing','getOwnPropertySymbols','LIVESHARE_REQUEST_HOST','assign','_univerInstanceService','stopPresenting','status$','pluginName','sheet','_beIdle','colorChannel1','DisposableCollection','toStringTag','@univerjs-pro/collaboration','LiveShare','React','merge','_reporters','icon','_handleOffline','attrs','_handleNewChangeSets','jsxs','UniverInstanceType','LIVESHARE_TERMINATE','200JcmIqW','getTypeOfUnitDisposed$','41712pjBbPZ','touchDependencies','PRESENTING','OFFLINE','tag','CollaborationEvent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','className','UNIVER_UNKNOWN','IUIPartsService','clsx','mutations','shouldShareOperation','Subject','presenting','Present\x20this\x20document','LiveShareService','throttleTime','set','_init','5971700nzdNQT','dispose','UniverIcon','div','@univerjs/ui','getInitialStates','UniverCollaborationClientPlugin','UniverLiveSharePlugin','indexOf','LiveShareStatus','You\x27re\x20not\x20following\x20the\x20presenter','event$','defIds','LiveShareIcon','Button','exports','1760370TfCpgz','_sharedOperations','stopFollowing','mask','propertyIsEnumerable','_handleOperation','sessionStatus$','asObservable','DependentOn','createElement','Start\x20following','next','useEffect','UniverProLiveShare','Disposable','_commandDisposable','useRef','reverse','pipe','idle','subscribe','rxjs','following','hasOwnProperty','currentColor','evenodd','_mountLiveShare','type','useDependency','random','xlink:href','NOT_FOLLOWING','forwardRef','SessionStatus','_stopFollowing','requireSession','HEADER_MENU','574198bszDlr','@univerjs/sheets-ui','get','function','_startPresenting','live-share-icon','defineProperty'];_0x4ff5=function(){return _0x88c4b4;};return _0x4ff5();}function _0x16b0(_0xd5dd04,_0x814365){var _0x4ff517=_0x4ff5();return _0x16b0=function(_0x16b091,_0x2f7e59){_0x16b091=_0x16b091-0xdb;var _0x1551ce=_0x4ff517[_0x16b091];return _0x1551ce;},_0x16b0(_0xd5dd04,_0x814365);}(function(_0x4936bd,_0x519c64){var _0x893867=_0x16b0,_0x35be00=_0x4936bd();while(!![]){try{var _0x4380b0=-parseInt(_0x893867(0x10c))/0x1+parseInt(_0x893867(0x1b8))/0x2*(parseInt(_0x893867(0x1ba))/0x3)+parseInt(_0x893867(0x14e))/0x4*(-parseInt(_0x893867(0xe7))/0x5)+parseInt(_0x893867(0x116))/0x6+-parseInt(_0x893867(0x1ce))/0x7+-parseInt(_0x893867(0x142))/0x8+parseInt(_0x893867(0x183))/0x9*(parseInt(_0x893867(0x17f))/0xa);if(_0x4380b0===_0x519c64)break;else _0x35be00['push'](_0x35be00['shift']());}catch(_0x2bb81f){_0x35be00['push'](_0x35be00['shift']());}}}(_0x4ff5,0xf3c23),function(_0x25e1bd,_0x33eb05){var _0x3ba8e7=_0x16b0;typeof exports=='object'&&typeof module<'u'?_0x33eb05(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x3ba8e7(0x10f)&&define[_0x3ba8e7(0x177)]?define([_0x3ba8e7(0xe6),'@univerjs/core',_0x3ba8e7(0xdb),_0x3ba8e7(0x161),'@univerjs/design',_0x3ba8e7(0x118),_0x3ba8e7(0x1ac),_0x3ba8e7(0x131),_0x3ba8e7(0x17d),'rxjs','rxjs/operators',_0x3ba8e7(0x10d)],_0x33eb05):(_0x25e1bd=typeof globalThis<'u'?globalThis:_0x25e1bd||self,_0x33eb05(_0x25e1bd[_0x3ba8e7(0xf4)]={},_0x25e1bd[_0x3ba8e7(0x124)],_0x25e1bd[_0x3ba8e7(0x178)],_0x25e1bd[_0x3ba8e7(0x1ae)],_0x25e1bd[_0x3ba8e7(0x18f)],_0x25e1bd[_0x3ba8e7(0x1ae)],_0x25e1bd[_0x3ba8e7(0x192)],_0x25e1bd[_0x3ba8e7(0x137)],_0x25e1bd[_0x3ba8e7(0x18e)],_0x25e1bd[_0x3ba8e7(0xfc)],_0x25e1bd[_0x3ba8e7(0xfc)]['operators'],_0x25e1bd[_0x3ba8e7(0x174)]));}(this,function(_0x522538,_0xf8ec0e,_0x31f6ab,_0x416ab0,_0x49e7d0,_0x29224a,_0xc7154f,_0x45ba65,_0xa2e87a,_0x4da23e,_0x5c1744,_0x12c958){'use strict';var _0x5b55f7=_0x16b0;var _0x4b8764=Object[_0x5b55f7(0x112)],_0x3c2c91=(_0x22b945,_0x3c3d0d,_0x3c331e)=>_0x3c3d0d in _0x22b945?_0x4b8764(_0x22b945,_0x3c3d0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c331e}):_0x22b945[_0x3c3d0d]=_0x3c331e,_0x548323=(_0x1c8bb9,_0x2f6745,_0x629984)=>_0x3c2c91(_0x1c8bb9,typeof _0x2f6745!=_0x5b55f7(0x114)?_0x2f6745+'':_0x2f6745,_0x629984),_0x10ea58=function(){var _0x48ef38=_0x5b55f7;return _0x10ea58=Object[_0x48ef38(0x1a2)]||function(_0xb8b48b){var _0x5d8d8d=_0x48ef38;for(var _0x56ea21,_0x78b5a=0x1,_0x3f5ff4=arguments[_0x5d8d8d(0x18d)];_0x78b5a<_0x3f5ff4;_0x78b5a++){_0x56ea21=arguments[_0x78b5a];for(var _0x4e0d7e in _0x56ea21)Object[_0x5d8d8d(0x158)]['hasOwnProperty'][_0x5d8d8d(0x16f)](_0x56ea21,_0x4e0d7e)&&(_0xb8b48b[_0x4e0d7e]=_0x56ea21[_0x4e0d7e]);}return _0xb8b48b;},_0x10ea58['apply'](this,arguments);},_0x5b1629=function(_0x2f6c7d,_0x1d45fc){var _0x16253a=_0x5b55f7,_0x463957={};for(var _0x48e669 in _0x2f6c7d)Object['prototype'][_0x16253a(0xfe)][_0x16253a(0x16f)](_0x2f6c7d,_0x48e669)&&_0x1d45fc[_0x16253a(0xdf)](_0x48e669)<0x0&&(_0x463957[_0x48e669]=_0x2f6c7d[_0x48e669]);if(_0x2f6c7d!=null&&typeof Object[_0x16253a(0x1a0)]=='function'){for(var _0x12f0a8=0x0,_0x48e669=Object['getOwnPropertySymbols'](_0x2f6c7d);_0x12f0a8<_0x48e669[_0x16253a(0x18d)];_0x12f0a8++)_0x1d45fc[_0x16253a(0xdf)](_0x48e669[_0x12f0a8])<0x0&&Object[_0x16253a(0x158)][_0x16253a(0xeb)][_0x16253a(0x16f)](_0x2f6c7d,_0x48e669[_0x12f0a8])&&(_0x463957[_0x48e669[_0x12f0a8]]=_0x2f6c7d[_0x48e669[_0x12f0a8]]);}return _0x463957;},_0x398f51=_0x29224a[_0x5b55f7(0x107)](function(_0x345349,_0x4a170c){var _0x4d375a=_0x5b55f7,_0x4243d3=_0x345349[_0x4d375a(0x1b1)],_0x10bd51=_0x345349['id'],_0x4040bc=_0x345349[_0x4d375a(0x1c1)],_0x3d1e32=_0x345349[_0x4d375a(0x186)],_0x8bcae1=_0x5b1629(_0x345349,[_0x4d375a(0x1b1),'id',_0x4d375a(0x1c1),'extend']),_0x2e89af='univerjs-icon\x20univerjs-icon-'[_0x4d375a(0x11a)](_0x10bd51,'\x20')['concat'](_0x4040bc||'')['trim'](),_0x76969=_0x29224a['useRef']('_'[_0x4d375a(0x11a)](_0x16963c()));return _0x2b6589(_0x4243d3,''[_0x4d375a(0x11a)](_0x10bd51),{'defIds':_0x4243d3[_0x4d375a(0xe3)],'idSuffix':_0x76969[_0x4d375a(0x14b)]},_0x10ea58({'ref':_0x4a170c,'className':_0x2e89af},_0x8bcae1),_0x3d1e32);});function _0x2b6589(_0x5e92fd,_0x5a4b66,_0x2f0a4d,_0x3a959b,_0x465c2c){var _0x487c36=_0x5b55f7;return _0x29224a[_0x487c36(0xf0)](_0x5e92fd[_0x487c36(0x1be)],_0x10ea58(_0x10ea58({'key':_0x5a4b66},_0x4d377a(_0x5e92fd,_0x2f0a4d,_0x465c2c)),_0x3a959b),(_0x3a3af8(_0x5e92fd,_0x2f0a4d)['children']||[])[_0x487c36(0x15f)](function(_0x1e2798,_0x322494){var _0x52eea3=_0x487c36;return _0x2b6589(_0x1e2798,''[_0x52eea3(0x11a)](_0x5a4b66,'-')[_0x52eea3(0x11a)](_0x5e92fd[_0x52eea3(0x1be)],'-')['concat'](_0x322494),_0x2f0a4d,void 0x0,_0x465c2c);}));}function _0x4d377a(_0x580f22,_0x182b89,_0x19a403){var _0x44e515=_0x5b55f7,_0x4747cc=_0x10ea58({},_0x580f22[_0x44e515(0x1b3)]);_0x19a403!=null&&_0x19a403[_0x44e515(0x1a9)]&&_0x4747cc[_0x44e515(0x193)]==='colorChannel1'&&(_0x4747cc[_0x44e515(0x193)]=_0x19a403[_0x44e515(0x1a9)]),_0x580f22['tag']==='mask'&&_0x4747cc['id']&&(_0x4747cc['id']=_0x4747cc['id']+_0x182b89['idSuffix']),Object[_0x44e515(0x16c)](_0x4747cc)[_0x44e515(0x19a)](function(_0x464da9){var _0x2e33f6=_0x44e515,_0x8d0a59=_0x464da9[0x0],_0x33a84e=_0x464da9[0x1];_0x8d0a59===_0x2e33f6(0xea)&&typeof _0x33a84e==_0x2e33f6(0x173)&&(_0x4747cc[_0x8d0a59]=_0x33a84e[_0x2e33f6(0x12e)](/url\(#(.*)\)/,_0x2e33f6(0x19e)[_0x2e33f6(0x11a)](_0x182b89['idSuffix'],')')));});var _0x4605e9=_0x182b89[_0x44e515(0xe3)];return!_0x4605e9||_0x4605e9['length']===0x0||(_0x580f22[_0x44e515(0x1be)]==='use'&&_0x4747cc[_0x44e515(0x105)]&&(_0x4747cc[_0x44e515(0x105)]=_0x4747cc[_0x44e515(0x105)]+_0x182b89[_0x44e515(0x196)]),Object[_0x44e515(0x16c)](_0x4747cc)[_0x44e515(0x19a)](function(_0x21e6b9){var _0x32a3e5=_0x44e515,_0x4b9930=_0x21e6b9[0x0],_0x24a4ef=_0x21e6b9[0x1];typeof _0x24a4ef==_0x32a3e5(0x173)&&(_0x4747cc[_0x4b9930]=_0x24a4ef[_0x32a3e5(0x12e)](/url\(#(.*)\)/,_0x32a3e5(0x19e)[_0x32a3e5(0x11a)](_0x182b89['idSuffix'],')')));})),_0x4747cc;}function _0x3a3af8(_0x1d8df5,_0x246a05){var _0xc401f9=_0x5b55f7,_0x48045c,_0x28e3b0=_0x246a05[_0xc401f9(0xe3)];return!_0x28e3b0||_0x28e3b0[_0xc401f9(0x18d)]===0x0?_0x1d8df5:_0x1d8df5[_0xc401f9(0x1be)]==='defs'&&(!((_0x48045c=_0x1d8df5[_0xc401f9(0x15a)])===null||_0x48045c===void 0x0)&&_0x48045c['length'])?_0x10ea58(_0x10ea58({},_0x1d8df5),{'children':_0x1d8df5[_0xc401f9(0x15a)][_0xc401f9(0x15f)](function(_0x2332cd){var _0x628c19=_0xc401f9;return typeof _0x2332cd[_0x628c19(0x1b3)]['id']==_0x628c19(0x173)&&_0x28e3b0&&_0x28e3b0[_0x628c19(0x159)](_0x2332cd[_0x628c19(0x1b3)]['id'])?_0x10ea58(_0x10ea58({},_0x2332cd),{'attrs':_0x10ea58(_0x10ea58({},_0x2332cd['attrs']),{'id':_0x2332cd[_0x628c19(0x1b3)]['id']+_0x246a05[_0x628c19(0x196)]})}):_0x2332cd;})}):_0x1d8df5;}function _0x16963c(){var _0x299960=_0x5b55f7;return Math[_0x299960(0x104)]()[_0x299960(0x120)](0x24)[_0x299960(0x199)](0x2,0x8);}_0x398f51[_0x5b55f7(0x188)]=_0x5b55f7(0x1d0);var _0x255373={'tag':_0x5b55f7(0x19c),'attrs':{'xmlns':_0x5b55f7(0x191),'fill':_0x5b55f7(0x14d),'viewBox':'0\x200\x2017\x2017','width':_0x5b55f7(0x12a),'height':_0x5b55f7(0x12a)},'children':[{'tag':'path','attrs':{'fill':_0x5b55f7(0xff),'d':_0x5b55f7(0x17e)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x5b55f7(0x100)}}]},_0x10893e=_0x29224a[_0x5b55f7(0x107)](function(_0x322d80,_0x49bfef){var _0x129116=_0x5b55f7;return _0x29224a[_0x129116(0xf0)](_0x398f51,Object[_0x129116(0x1a2)]({},_0x322d80,{'id':_0x129116(0x111),'ref':_0x49bfef,'icon':_0x255373}));});_0x10893e[_0x5b55f7(0x188)]=_0x5b55f7(0xe4);class _0x8835ce extends _0xf8ec0e[_0x5b55f7(0xf5)]{constructor(){var _0xfa3d6c=_0x5b55f7;super(...arguments),_0x548323(this,_0xfa3d6c(0xe8),new Set()),_0x548323(this,_0xfa3d6c(0x1b0),new Set());}[_0x5b55f7(0x18c)](_0x18194d){var _0x4f7f05=_0x5b55f7;return this['_sharedOperations']['add'](_0x18194d),_0xf8ec0e[_0x4f7f05(0x132)](()=>this[_0x4f7f05(0xe8)][_0x4f7f05(0x148)](_0x18194d));}['registerInitialStateReporter'](_0x3c55c4){var _0x3df834=_0x5b55f7;return this[_0x3df834(0x1b0)]['add'](_0x3c55c4),_0xf8ec0e[_0x3df834(0x132)](()=>this[_0x3df834(0x1b0)][_0x3df834(0x148)](_0x3c55c4));}[_0x5b55f7(0x1c6)](_0x585a4b){var _0x369da5=_0x5b55f7;return this['_sharedOperations'][_0x369da5(0x126)](_0x585a4b);}['getInitialStates'](_0x22a279){var _0x20a341=_0x5b55f7;return Array[_0x20a341(0x145)](this[_0x20a341(0x1b0)])[_0x20a341(0x15f)](_0x1b164d=>_0x1b164d(_0x22a279));}}var _0x511c31=Object[_0x5b55f7(0x11d)],_0x11fc1f=(_0x4fd90d,_0x26af9f,_0x1275dd,_0xd7ff7f)=>{var _0x456a2c=_0x5b55f7;for(var _0x190914=_0xd7ff7f>0x1?void 0x0:_0xd7ff7f?_0x511c31(_0x26af9f,_0x1275dd):_0x26af9f,_0x4fc0c7=_0x4fd90d[_0x456a2c(0x18d)]-0x1,_0x4f7a48;_0x4fc0c7>=0x0;_0x4fc0c7--)(_0x4f7a48=_0x4fd90d[_0x4fc0c7])&&(_0x190914=_0x4f7a48(_0x190914)||_0x190914);return _0x190914;},_0x1a772e=(_0x585e5f,_0x2080af)=>(_0xcd65e1,_0x5ae038)=>_0x2080af(_0xcd65e1,_0x5ae038,_0x585e5f);_0x522538['LiveShareController']=class extends _0xf8ec0e[_0x5b55f7(0x172)]{constructor(_0x561ee,_0x194733,_0xcb1479){var _0x55c06f=_0x5b55f7;super(),_0x548323(this,'_entities',new Map()),(this[_0x55c06f(0x1a3)]=_0x561ee,this[_0x55c06f(0x12c)]=_0x194733,this['_collabSessionService']=_0xcb1479,this[_0x55c06f(0x1cd)]());}async['getLiveShareCoordinator'](_0x1a0fad){var _0x4ce554=_0x5b55f7;return this[_0x4ce554(0x149)][_0x4ce554(0x126)](_0x1a0fad)||await this[_0x4ce554(0x144)](_0x1a0fad),this[_0x4ce554(0x149)]['get'](_0x1a0fad);}[_0x5b55f7(0x1cd)](){var _0x319871=_0x5b55f7;this[_0x319871(0x1a3)]['getTypeOfUnitAdded$'](_0xf8ec0e[_0x319871(0x1b6)][_0x319871(0x14a)])[_0x319871(0xf9)](_0x5c1744[_0x319871(0x122)](this[_0x319871(0x115)]))[_0x319871(0xfb)](async _0x437134=>{var _0x3593b2=_0x319871;const _0x5dae77=_0x437134[_0x3593b2(0x166)]();this[_0x3593b2(0x149)]['has'](_0x5dae77)||this[_0x3593b2(0x144)](_0x5dae77);}),this[_0x319871(0x1a3)][_0x319871(0x1b9)](_0xf8ec0e[_0x319871(0x1b6)][_0x319871(0x14a)])[_0x319871(0xf9)](_0x5c1744['takeUntil'](this['dispose$']))[_0x319871(0xfb)](_0x48001a=>{var _0x5e7117=_0x319871;const _0x5b0c3a=_0x48001a['getUnitId'](),_0x54e2b3=this[_0x5e7117(0x149)][_0x5e7117(0x10e)](_0x5b0c3a);_0x54e2b3==null||_0x54e2b3['dispose']();});}async[_0x5b55f7(0x144)](_0x40258c){var _0x82643b=_0x5b55f7;const _0x3a7d3a=await this['_collabSessionService'][_0x82643b(0x10a)](_0x40258c),_0x3ac7ee=this[_0x82643b(0x12c)][_0x82643b(0x127)](_0x522538[_0x82643b(0x139)],_0x40258c,_0x3a7d3a);return _0x3ac7ee[_0x82643b(0x163)](),this[_0x82643b(0x149)][_0x82643b(0x1cc)](_0x40258c,_0x3ac7ee),_0x3ac7ee;}},_0x522538['LiveShareController']=_0x11fc1f([_0x1a772e(0x0,_0xf8ec0e['IUniverInstanceService']),_0x1a772e(0x1,_0xf8ec0e[_0x5b55f7(0x162)](_0xf8ec0e[_0x5b55f7(0x195)])),_0x1a772e(0x2,_0xf8ec0e[_0x5b55f7(0x162)](_0x45ba65[_0x5b55f7(0x134)]))],_0x522538[_0x5b55f7(0x182)]);var _0x194364=(_0xc73830=>(_0xc73830[_0x5b55f7(0x1bd)]='offline',_0xc73830[_0x5b55f7(0x180)]=_0x5b55f7(0xfa),_0xc73830[_0x5b55f7(0x138)]=_0x5b55f7(0xfd),_0xc73830[_0x5b55f7(0x106)]=_0x5b55f7(0x155),_0xc73830[_0x5b55f7(0x1bc)]='presenting',_0xc73830))(_0x194364||{});const _0x115f1c=_0x5b55f7(0x17a),_0x57f0a9=0xc8;_0x522538[_0x5b55f7(0x139)]=class extends _0xf8ec0e[_0x5b55f7(0x172)]{constructor(_0x1c79f0,_0x26a68f,_0x477f84,_0xeae7a0,_0x21682a){var _0x6dc632=_0x5b55f7;super(),_0x548323(this,_0x6dc632(0x153),new _0x4da23e[(_0x6dc632(0x194))](_0x6dc632(0xfa))),_0x548323(this,_0x6dc632(0x1a5),this[_0x6dc632(0x153)][_0x6dc632(0xee)]()),_0x548323(this,_0x6dc632(0x1cd),!0x1),_0x548323(this,'_commandDisposable',null),_0x548323(this,_0x6dc632(0x176),null),(this['_unitID']=_0x1c79f0,this[_0x6dc632(0x168)]=_0x26a68f,this[_0x6dc632(0x11f)]=_0x477f84,this[_0x6dc632(0x18b)]=_0xeae7a0,this['_commandService']=_0x21682a);}get[_0x5b55f7(0x143)](){return this['_status$']['getValue']();}['dispose'](){var _0x185a86=_0x5b55f7,_0x467938;(_0x467938=this[_0x185a86(0xf6)])==null||_0x467938[_0x185a86(0x1cf)](),this[_0x185a86(0x153)]['next'](_0x185a86(0xfa)),this[_0x185a86(0x153)]['complete']();}[_0x5b55f7(0x163)](){var _0x3c4bea=_0x5b55f7;this[_0x3c4bea(0x1cd)]||(this[_0x3c4bea(0x1cd)]=!0x0,this[_0x3c4bea(0x168)][_0x3c4bea(0xed)][_0x3c4bea(0xf9)](_0x5c1744[_0x3c4bea(0x122)](this[_0x3c4bea(0x115)]))[_0x3c4bea(0xfb)](_0x36717f=>{var _0x4978e5=_0x3c4bea;switch(_0x36717f){case _0x45ba65['SessionStatus'][_0x4978e5(0x1bd)]:this[_0x4978e5(0x1b2)]();break;case _0x45ba65[_0x4978e5(0x108)][_0x4978e5(0x16d)]:this[_0x4978e5(0x15b)]();break;}}),this[_0x3c4bea(0x168)][_0x3c4bea(0xe2)][_0x3c4bea(0xf9)](_0x5c1744[_0x3c4bea(0x122)](this['dispose$']))['subscribe'](_0x5b3fde=>{var _0x3147fa=_0x3c4bea;const {eventID:_0x313a1f}=_0x5b3fde;switch(_0x313a1f){case _0xc7154f[_0x3147fa(0x1bf)][_0x3147fa(0x18a)]:this['_handleNewHost'](_0x5b3fde);break;case _0xc7154f[_0x3147fa(0x1bf)][_0x3147fa(0x141)]:this[_0x3147fa(0xec)](_0x5b3fde);break;case _0xc7154f['CollaborationEvent'][_0x3147fa(0x1b7)]:this[_0x3147fa(0x15d)]();break;case _0xc7154f[_0x3147fa(0x1bf)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5b3fde);break;}}));}[_0x5b55f7(0x11c)](){var _0x51056f=_0x5b55f7;this[_0x51056f(0x168)][_0x51056f(0x128)]({'eventID':_0xc7154f[_0x51056f(0x1bf)][_0x51056f(0x1a1)],'data':{'unitID':this[_0x51056f(0x133)],'userID':this[_0x51056f(0x168)]['getMemberID']()}},this[_0x51056f(0x133)]);}[_0x5b55f7(0x1a4)](){var _0x494e19=_0x5b55f7;this[_0x494e19(0x143)]===_0x494e19(0x1c8)&&(this[_0x494e19(0x153)][_0x494e19(0xf2)](_0x494e19(0xfa)),this[_0x494e19(0x168)][_0x494e19(0x128)]({'eventID':_0xc7154f[_0x494e19(0x1bf)][_0x494e19(0x1b7)],'data':{'unitID':this[_0x494e19(0x133)]}},this[_0x494e19(0x133)]));}[_0x5b55f7(0x19f)](){var _0x56d388=_0x5b55f7;this[_0x56d388(0x143)]===_0x56d388(0x155)&&(this[_0x56d388(0x153)][_0x56d388(0xf2)](_0x56d388(0xfd)),this['_startFollowing']());}[_0x5b55f7(0xe9)](){var _0x3cf936=_0x5b55f7;this[_0x3cf936(0x143)]===_0x3cf936(0xfd)&&this[_0x3cf936(0x109)]();}['_handleNewHost'](_0x284f30){var _0x3c1f0a=_0x5b55f7;const {presenter:_0x40e06d}=_0x284f30[_0x3c1f0a(0x13d)],_0x543f2=this['_collabSession'][_0x3c1f0a(0x152)]();this[_0x3c1f0a(0x176)]=_0x40e06d,_0x40e06d===_0x543f2?(this[_0x3c1f0a(0x109)](),this[_0x3c1f0a(0x110)]()):this[_0x3c1f0a(0x143)]!==_0x3c1f0a(0x155)&&(this[_0x3c1f0a(0x121)](),this[_0x3c1f0a(0x165)]());}[_0x5b55f7(0x151)](){var _0x2c7e47=_0x5b55f7;const _0x4c6b61={'eventID':_0xc7154f['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x2c7e47(0x168)][_0x2c7e47(0x128)](_0x4c6b61,this['_unitID']);}[_0x5b55f7(0x15d)](){var _0x1a9234=_0x5b55f7;this[_0x1a9234(0x176)]=null,this['_status']!==_0x1a9234(0x1c8)&&this[_0x1a9234(0x1a8)]();}[_0x5b55f7(0x1b4)](_0x289a31){var _0x4abd3d=_0x5b55f7;if(this[_0x4abd3d(0x143)]===_0x4abd3d(0xfd)&&this[_0x4abd3d(0x176)]===_0x289a31[_0x4abd3d(0x13d)]['memberID']){const _0x3647f3=_0xc7154f[_0x4abd3d(0x19d)](_0x289a31['data'])[_0x4abd3d(0x1c5)][_0x4abd3d(0xf8)]()['find'](_0x1dbaed=>_0x1dbaed['id']===_0xa2e87a[_0x4abd3d(0x175)]['id']);if(_0x3647f3){const _0x490ffc=_0x3647f3[_0x4abd3d(0x12d)]['unitId'],_0xac0444=_0x3647f3[_0x4abd3d(0x12d)][_0x4abd3d(0x1a7)]['id'];setTimeout(()=>{var _0x408ed2=_0x4abd3d;this['_commandService']['executeCommand'](_0xa2e87a[_0x408ed2(0x15c)]['id'],{'unitId':_0x490ffc,'subUnitId':_0xac0444},{'fromCollab':!0x0});});}}}[_0x5b55f7(0x110)](){var _0x1241a3=_0x5b55f7;this[_0x1241a3(0x153)][_0x1241a3(0xf2)](_0x1241a3(0x1c8));const _0x14a816=new Map(),_0x6553f6=this[_0x1241a3(0xf6)]=new _0xf8ec0e[(_0x1241a3(0x1aa))]();_0x6553f6['add'](_0xf8ec0e[_0x1241a3(0x132)](()=>{var _0x28d78f=_0x1241a3;_0x14a816[_0x28d78f(0x19a)](_0x1aaca3=>_0x1aaca3['complete']()),_0x14a816[_0x28d78f(0x184)]();})),_0x6553f6[_0x1241a3(0x171)](this[_0x1241a3(0x136)][_0x1241a3(0x16e)](_0x5f0aee=>{var _0xfbb0ce=_0x1241a3,_0x909685;if(_0x5f0aee[_0xfbb0ce(0x102)]!==_0xf8ec0e[_0xfbb0ce(0x125)]['OPERATION']||!this[_0xfbb0ce(0x18b)][_0xfbb0ce(0x1c6)](_0x5f0aee['id']))return;const {id:_0x597b19}=_0x5f0aee;let _0x85bf5a;_0x14a816[_0xfbb0ce(0x126)](_0x597b19)?_0x85bf5a=_0x14a816[_0xfbb0ce(0x10e)](_0x597b19):(_0x85bf5a=new _0x4da23e[(_0xfbb0ce(0x1c7))](),_0x14a816[_0xfbb0ce(0x1cc)](_0x597b19,_0x85bf5a),_0x85bf5a[_0xfbb0ce(0xf9)](_0x5c1744[_0xfbb0ce(0x1cb)]((_0x909685=this['_configService']['getConfig'](_0x115f1c))!=null?_0x909685:_0x57f0a9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfbb0ce(0xfb)](_0x5c4f19=>{var _0x528894=_0xfbb0ce;this[_0x528894(0x168)][_0x528894(0x128)]({'eventID':_0xc7154f['CollaborationEvent'][_0x528894(0x141)],'data':{'unitID':this[_0x528894(0x133)],'operations':{[_0x5c4f19['id']]:{'id':_0x5c4f19['id'],'params':JSON[_0x528894(0x179)](_0x5c4f19[_0x528894(0x12d)])}}}},this[_0x528894(0x133)]);})),_0x85bf5a[_0xfbb0ce(0xf2)](_0x5f0aee);})),this[_0x1241a3(0x18b)][_0x1241a3(0xdc)](this[_0x1241a3(0x133)])[_0x1241a3(0x19a)](_0x636fc0=>this[_0x1241a3(0x168)][_0x1241a3(0x128)]({'eventID':_0xc7154f[_0x1241a3(0x1bf)][_0x1241a3(0x141)],'data':{'unitID':this[_0x1241a3(0x133)],'operations':{[_0x636fc0['id']]:{'id':_0x636fc0['id'],'params':JSON[_0x1241a3(0x179)](_0x636fc0[_0x1241a3(0x12d)])}}}},this[_0x1241a3(0x133)]));}[_0x5b55f7(0x121)](){var _0x4bf1ca=_0x5b55f7,_0x2c9538;this[_0x4bf1ca(0x153)]['next'](_0x4bf1ca(0xfa)),(_0x2c9538=this[_0x4bf1ca(0xf6)])==null||_0x2c9538[_0x4bf1ca(0x1cf)](),this[_0x4bf1ca(0xf6)]=null;}[_0x5b55f7(0x165)](){var _0x296745=_0x5b55f7,_0x502f5f;(_0x502f5f=this[_0x296745(0xf6)])==null||_0x502f5f[_0x296745(0x1cf)](),this['_status$']['next'](_0x296745(0xfd));}[_0x5b55f7(0x1a8)](){var _0x33ae85=_0x5b55f7,_0x49be9e;this[_0x33ae85(0x153)][_0x33ae85(0xf2)](_0x33ae85(0xfa)),(_0x49be9e=this['_commandDisposable'])==null||_0x49be9e['dispose'](),this[_0x33ae85(0xf6)]=null;}[_0x5b55f7(0x109)](){var _0x440af4=_0x5b55f7,_0x4e93fa;this[_0x440af4(0x153)]['next'](_0x440af4(0x155)),(_0x4e93fa=this[_0x440af4(0xf6)])==null||_0x4e93fa['dispose']();}[_0x5b55f7(0xec)](_0x3b75c4){var _0x3f4119=_0x5b55f7;if([_0x3f4119(0x1c8),_0x3f4119(0x155),_0x3f4119(0x187)]['includes'](this[_0x3f4119(0x143)])||!_0x3b75c4[_0x3f4119(0x13d)][_0x3f4119(0x167)]||_0x3b75c4[_0x3f4119(0x13d)][_0x3f4119(0x167)]===this[_0x3f4119(0x168)][_0x3f4119(0x152)]())return;this[_0x3f4119(0x143)]==='idle'&&this[_0x3f4119(0x165)]();const _0x268947=_0x3b75c4[_0x3f4119(0x13d)][_0x3f4119(0x147)];Object[_0x3f4119(0x13e)](_0x268947)[_0x3f4119(0x19a)](_0x5b48b5=>{var _0x3402a1=_0x3f4119;this[_0x3402a1(0x136)][_0x3402a1(0x13c)](_0x5b48b5['id'],_0x5b48b5['params']?JSON[_0x3402a1(0x169)](_0x5b48b5[_0x3402a1(0x12d)]):null,{'fromCollab':!0x0});});}[_0x5b55f7(0x1b2)](){var _0x4515f1=_0x5b55f7,_0x211a24;this[_0x4515f1(0x153)][_0x4515f1(0xf2)](_0x4515f1(0x187)),(_0x211a24=this[_0x4515f1(0xf6)])==null||_0x211a24[_0x4515f1(0x1cf)]();}['_handleOnline'](){var _0x14e5d8=_0x5b55f7;this[_0x14e5d8(0x153)][_0x14e5d8(0xf2)](_0x14e5d8(0xfa)),this[_0x14e5d8(0x151)]();}},_0x522538[_0x5b55f7(0x139)]=_0x11fc1f([_0x1a772e(0x2,_0xf8ec0e[_0x5b55f7(0x156)]),_0x1a772e(0x3,_0xf8ec0e[_0x5b55f7(0x162)](_0x8835ce)),_0x1a772e(0x4,_0xf8ec0e[_0x5b55f7(0x160)])],_0x522538[_0x5b55f7(0x139)]);function _0x1d93e9(){var _0x4efe96=_0x5b55f7;const _0x547794=_0x31f6ab[_0x4efe96(0x103)](_0x522538[_0x4efe96(0x182)]),_0x5b4e92=_0x31f6ab[_0x4efe96(0x103)](_0xf8ec0e[_0x4efe96(0x16a)]),_0x3ea376=_0x31f6ab[_0x4efe96(0x198)](()=>_0x5b4e92[_0x4efe96(0x13b)](_0xf8ec0e['UniverInstanceType'][_0x4efe96(0x14a)]),void 0x0,!0x1,[]),[_0x493fe8,_0x5a9f38]=_0x29224a[_0x4efe96(0x19b)](null),[_0x47d342,_0x3d7cfc]=_0x29224a[_0x4efe96(0x19b)](_0x194364[_0x4efe96(0x180)]),_0x1e247a=_0x29224a[_0x4efe96(0xf7)](null);return _0x29224a[_0x4efe96(0xf3)](()=>(_0x3ea376&&_0x547794[_0x4efe96(0x119)](_0x3ea376[_0x4efe96(0x166)]())[_0x4efe96(0x14c)](_0x544516=>{var _0x3fa166=_0x4efe96;_0x5a9f38(_0x544516),_0x1e247a['current']=_0x544516['status$'][_0x3fa166(0xfb)](_0x3c4f10=>{_0x3d7cfc(_0x3c4f10);});}),()=>{var _0x1c70d3=_0x4efe96,_0x12c45d;(_0x12c45d=_0x1e247a['current'])==null||_0x12c45d['unsubscribe'](),_0x1e247a[_0x1c70d3(0x14b)]=null;}),[_0x3ea376,_0x547794]),_0x493fe8?_0x416ab0[_0x4efe96(0x150)](_0x49e7d0[_0x4efe96(0x12f)],{'align':_0x4efe96(0x11b),'disabled':_0x47d342===_0x194364[_0x4efe96(0x1bd)],'className':_0x4efe96(0x113),'overlay':_0x416ab0[_0x4efe96(0x150)](_0xcf476d,{'status':_0x47d342,'coordinator':_0x493fe8}),'children':_0x416ab0[_0x4efe96(0x150)](_0x4efe96(0x17c),{'className':_0x49e7d0[_0x4efe96(0x1c4)](_0x4efe96(0x1c0),{'univer-cursor-not-allowed':_0x47d342===_0x194364[_0x4efe96(0x1bd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47d342!==_0x194364['OFFLINE']}),'type':_0x4efe96(0x17c),'children':_0x416ab0[_0x4efe96(0x150)](_0x10893e,{'className':_0x4efe96(0x185)})})}):null;}function _0xcf476d(_0x52e503){var _0x1a9828=_0x5b55f7;const {status:_0x6cb31,coordinator:_0x47a563}=_0x52e503;switch(_0x6cb31){case _0x194364[_0x1a9828(0x180)]:return _0x416ab0['jsx'](_0x118586,{'coordinator':_0x47a563});case _0x194364[_0x1a9828(0x138)]:return _0x416ab0[_0x1a9828(0x150)](_0x1a43af,{'coordinator':_0x47a563});case _0x194364[_0x1a9828(0x106)]:return _0x416ab0[_0x1a9828(0x150)](_0xed9a99,{'coordinator':_0x47a563});case _0x194364[_0x1a9828(0x1bd)]:return _0x416ab0['jsx'](_0x357e25,{});case _0x194364['PRESENTING']:return _0x416ab0['jsx'](_0x1f4fd1,{'coordinator':_0x47a563});default:return null;}}function _0x118586(_0x589b52){var _0x5a2142=_0x5b55f7;const {coordinator:_0x4018fd}=_0x589b52;return _0x416ab0[_0x5a2142(0x1b5)](_0x416ab0[_0x5a2142(0x146)],{'children':[_0x416ab0[_0x5a2142(0x150)](_0x5a2142(0x1d1),{'className':_0x5a2142(0x16b),'children':_0x5a2142(0x1c9)}),_0x416ab0['jsx'](_0x49e7d0['Button'],{'onClick':()=>_0x4018fd[_0x5a2142(0x11c)](),'children':_0x5a2142(0x123)})]});}function _0x1a43af(_0xa0d1d){var _0x1e855e=_0x5b55f7;const {coordinator:_0x14ce0e}=_0xa0d1d;return _0x416ab0[_0x1e855e(0x1b5)](_0x416ab0[_0x1e855e(0x146)],{'children':[_0x416ab0[_0x1e855e(0x150)](_0x1e855e(0x1d1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x416ab0[_0x1e855e(0x150)](_0x49e7d0[_0x1e855e(0xe5)],{'onClick':()=>_0x14ce0e[_0x1e855e(0xe9)](),'children':'Stop\x20following'})]});}function _0xed9a99(_0x1b351f){var _0x2f9c95=_0x5b55f7;const {coordinator:_0x41d5b5}=_0x1b351f;return _0x416ab0['jsxs'](_0x416ab0[_0x2f9c95(0x146)],{'children':[_0x416ab0[_0x2f9c95(0x150)](_0x2f9c95(0x1d1),{'className':_0x2f9c95(0x16b),'children':_0x2f9c95(0xe1)}),_0x416ab0['jsx'](_0x49e7d0[_0x2f9c95(0xe5)],{'variant':_0x2f9c95(0x197),'onClick':()=>_0x41d5b5[_0x2f9c95(0x19f)](),'children':_0x2f9c95(0xf1)})]});}function _0x1f4fd1(_0x30cfcf){var _0x413830=_0x5b55f7;const {coordinator:_0x11d18f}=_0x30cfcf;return _0x416ab0[_0x413830(0x1b5)](_0x416ab0[_0x413830(0x146)],{'children':[_0x416ab0['jsx'](_0x413830(0x1d1),{'className':_0x413830(0x16b),'children':_0x413830(0x181)}),_0x416ab0[_0x413830(0x150)](_0x49e7d0[_0x413830(0xe5)],{'variant':_0x413830(0x14f),'onClick':()=>_0x11d18f['stopPresenting'](),'children':_0x413830(0x135)})]});}function _0x357e25(){var _0x5a0bd7=_0x5b55f7;return _0x416ab0[_0x5a0bd7(0x150)](_0x416ab0[_0x5a0bd7(0x146)],{'children':_0x5a0bd7(0x11e)});}var _0x1db670=Object[_0x5b55f7(0x11d)],_0x39496a=(_0x5b4297,_0x1e0bf9,_0x3b46fc,_0xc18698)=>{for(var _0x2322c2=_0xc18698>0x1?void 0x0:_0xc18698?_0x1db670(_0x1e0bf9,_0x3b46fc):_0x1e0bf9,_0x4f0d82=_0x5b4297['length']-0x1,_0x38321b;_0x4f0d82>=0x0;_0x4f0d82--)(_0x38321b=_0x5b4297[_0x4f0d82])&&(_0x2322c2=_0x38321b(_0x2322c2)||_0x2322c2);return _0x2322c2;},_0x3af9d6=(_0x3571d0,_0x2244f6)=>(_0x3b3b41,_0x5e07ab)=>_0x2244f6(_0x3b3b41,_0x5e07ab,_0x3571d0);_0x522538[_0x5b55f7(0x157)]=class extends _0xf8ec0e['Disposable']{constructor(_0x5d13c4,_0x39cd7b){var _0x61b858=_0x5b55f7;super(),this[_0x61b858(0x12c)]=_0x5d13c4,this[_0x61b858(0x130)]=_0x39cd7b,this[_0x61b858(0x101)]();}[_0x5b55f7(0x101)](){var _0x757a1c=_0x5b55f7;this[_0x757a1c(0x129)](this[_0x757a1c(0x130)][_0x757a1c(0x13a)](_0x31f6ab[_0x757a1c(0x17b)][_0x757a1c(0x10b)],()=>_0x31f6ab[_0x757a1c(0x164)](_0x1d93e9,this['_injector'])));}},_0x522538[_0x5b55f7(0x157)]=_0x39496a([_0x3af9d6(0x0,_0xf8ec0e[_0x5b55f7(0x162)](_0xf8ec0e['Injector'])),_0x3af9d6(0x1,_0x31f6ab[_0x5b55f7(0x1c3)])],_0x522538[_0x5b55f7(0x157)]);const _0x1df8bb='live-share.config',_0x46336f={};var _0x51c168=Object[_0x5b55f7(0x11d)],_0xf3a7af=(_0x22d9e1,_0x3f7e1c,_0x1edd9b,_0x199cb5)=>{var _0xfeac87=_0x5b55f7;for(var _0x19919b=_0x199cb5>0x1?void 0x0:_0x199cb5?_0x51c168(_0x3f7e1c,_0x1edd9b):_0x3f7e1c,_0x1f5cfb=_0x22d9e1[_0xfeac87(0x18d)]-0x1,_0x594dab;_0x1f5cfb>=0x0;_0x1f5cfb--)(_0x594dab=_0x22d9e1[_0x1f5cfb])&&(_0x19919b=_0x594dab(_0x19919b)||_0x19919b);return _0x19919b;},_0x5a9f80=(_0x212ac4,_0x3432cd)=>(_0x3fac2b,_0x1395b7)=>_0x3432cd(_0x3fac2b,_0x1395b7,_0x212ac4);let _0x266dc2=class extends _0xf8ec0e['Disposable']{constructor(_0xce3e03){var _0x52ee9=_0x5b55f7;super(),this['_liveShareService']=_0xce3e03,this[_0x52ee9(0x1cd)]();}[_0x5b55f7(0x1cd)](){var _0x48215a=_0x5b55f7;[_0x12c958['SetZoomRatioOperation']['id'],_0x12c958[_0x48215a(0x15e)]['id'],_0xa2e87a[_0x48215a(0x15c)]['id']][_0x48215a(0x19a)](_0x19bae2=>{var _0x1f266d=_0x48215a;this[_0x1f266d(0x129)](this[_0x1f266d(0x18b)][_0x1f266d(0x18c)](_0x19bae2));});}};_0x266dc2=_0xf3a7af([_0x5a9f80(0x0,_0xf8ec0e[_0x5b55f7(0x162)](_0x8835ce))],_0x266dc2);var _0x35b15d=Object[_0x5b55f7(0x112)],_0x34846b=Object[_0x5b55f7(0x11d)],_0x65ca97=(_0x10aaec,_0x413cfc,_0x825a54)=>_0x413cfc in _0x10aaec?_0x35b15d(_0x10aaec,_0x413cfc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x825a54}):_0x10aaec[_0x413cfc]=_0x825a54,_0x5b705d=(_0x40fd0b,_0x24d6fc,_0x4bd82d,_0x5c15e1)=>{for(var _0x1414c8=_0x5c15e1>0x1?void 0x0:_0x5c15e1?_0x34846b(_0x24d6fc,_0x4bd82d):_0x24d6fc,_0x2e3bff=_0x40fd0b['length']-0x1,_0x315bb4;_0x2e3bff>=0x0;_0x2e3bff--)(_0x315bb4=_0x40fd0b[_0x2e3bff])&&(_0x1414c8=_0x315bb4(_0x1414c8)||_0x1414c8);return _0x1414c8;},_0x29ddce=(_0x44a59f,_0xce505)=>(_0x1fb770,_0x59250c)=>_0xce505(_0x1fb770,_0x59250c,_0x44a59f),_0x114001=(_0xdcf6db,_0x16967f,_0xbb0d66)=>_0x65ca97(_0xdcf6db,typeof _0x16967f!=_0x5b55f7(0x114)?_0x16967f+'':_0x16967f,_0xbb0d66);const _0x57b05c=_0x5b55f7(0x12b);_0x522538[_0x5b55f7(0xde)]=class extends _0xf8ec0e[_0x5b55f7(0x117)]{constructor(_0x1d286f=_0x46336f,_0x566302,_0x2022ca){var _0xd846ee=_0x5b55f7;super(),this[_0xd846ee(0x190)]=_0x1d286f,this['_injector']=_0x566302,this[_0xd846ee(0x11f)]=_0x2022ca;const {..._0x5828e9}=_0xf8ec0e[_0xd846ee(0x1af)]({},_0x46336f,this['_config']);this[_0xd846ee(0x11f)][_0xd846ee(0x189)](_0x1df8bb,_0x5828e9);}[_0x5b55f7(0x170)](){var _0x226876=_0x5b55f7;_0xf8ec0e['registerDependencies'](this[_0x226876(0x12c)],_0xf8ec0e['mergeOverrideWithDependencies']([[_0x8835ce],[_0x522538[_0x226876(0x182)]],[_0x266dc2],[_0x522538[_0x226876(0x157)]]],this[_0x226876(0x190)][_0x226876(0x140)])),_0xf8ec0e[_0x226876(0x1bb)](this[_0x226876(0x12c)],[[_0x266dc2]]);}[_0x5b55f7(0x13f)](){var _0x4716d2=_0x5b55f7;_0xf8ec0e[_0x4716d2(0x1bb)](this[_0x4716d2(0x12c)],[[_0x522538[_0x4716d2(0x157)]]]);}},_0x114001(_0x522538[_0x5b55f7(0xde)],_0x5b55f7(0x102),_0xf8ec0e[_0x5b55f7(0x1b6)][_0x5b55f7(0x1c2)]),_0x114001(_0x522538[_0x5b55f7(0xde)],_0x5b55f7(0x1a6),_0x57b05c),_0x522538[_0x5b55f7(0xde)]=_0x5b705d([_0xf8ec0e[_0x5b55f7(0xef)](_0x45ba65[_0x5b55f7(0xdd)]),_0x29ddce(0x1,_0xf8ec0e['Inject'](_0xf8ec0e[_0x5b55f7(0x195)])),_0x29ddce(0x2,_0xf8ec0e[_0x5b55f7(0x156)])],_0x522538['UniverLiveSharePlugin']),_0x522538[_0x5b55f7(0x1ad)]=_0x1d93e9,_0x522538[_0x5b55f7(0x1ca)]=_0x8835ce,_0x522538[_0x5b55f7(0xe0)]=_0x194364,Object[_0x5b55f7(0x112)](_0x522538,Symbol[_0x5b55f7(0x1ab)],{'value':_0x5b55f7(0x154)});}));
1
+ function _0x21bd(_0x466977,_0x2e92c3){var _0x2269c4=_0x2269();return _0x21bd=function(_0x21bd9c,_0x2fbbce){_0x21bd9c=_0x21bd9c-0x193;var _0x22861a=_0x2269c4[_0x21bd9c];return _0x22861a;},_0x21bd(_0x466977,_0x2e92c3);}(function(_0x2be1df,_0x4d0118){var _0x1311a4=_0x21bd,_0x4c7ecb=_0x2be1df();while(!![]){try{var _0x25f9da=-parseInt(_0x1311a4(0x22b))/0x1*(-parseInt(_0x1311a4(0x20c))/0x2)+parseInt(_0x1311a4(0x266))/0x3*(-parseInt(_0x1311a4(0x253))/0x4)+-parseInt(_0x1311a4(0x241))/0x5*(parseInt(_0x1311a4(0x1ec))/0x6)+-parseInt(_0x1311a4(0x1cc))/0x7*(parseInt(_0x1311a4(0x1c3))/0x8)+parseInt(_0x1311a4(0x1da))/0x9+parseInt(_0x1311a4(0x1ad))/0xa*(parseInt(_0x1311a4(0x23e))/0xb)+-parseInt(_0x1311a4(0x274))/0xc*(-parseInt(_0x1311a4(0x25d))/0xd);if(_0x25f9da===_0x4d0118)break;else _0x4c7ecb['push'](_0x4c7ecb['shift']());}catch(_0x2ed9d3){_0x4c7ecb['push'](_0x4c7ecb['shift']());}}}(_0x2269,0x57268),function(_0x5bd477,_0x2b7efb){var _0x4da389=_0x21bd;typeof exports=='object'&&typeof module<'u'?_0x2b7efb(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x4da389(0x1d0)&&define[_0x4da389(0x1a1)]?define([_0x4da389(0x1d3),_0x4da389(0x1f5),_0x4da389(0x22c),_0x4da389(0x278),'@univerjs/design',_0x4da389(0x19a),_0x4da389(0x24a),_0x4da389(0x276),_0x4da389(0x271),_0x4da389(0x1e4),_0x4da389(0x217),_0x4da389(0x256)],_0x2b7efb):(_0x5bd477=typeof globalThis<'u'?globalThis:_0x5bd477||self,_0x2b7efb(_0x5bd477['UniverProLiveShare']={},_0x5bd477[_0x4da389(0x1b9)],_0x5bd477[_0x4da389(0x1ee)],_0x5bd477[_0x4da389(0x199)],_0x5bd477['UniverDesign'],_0x5bd477[_0x4da389(0x199)],_0x5bd477[_0x4da389(0x24b)],_0x5bd477[_0x4da389(0x1af)],_0x5bd477[_0x4da389(0x239)],_0x5bd477['rxjs'],_0x5bd477[_0x4da389(0x1e4)][_0x4da389(0x26f)],_0x5bd477[_0x4da389(0x211)]));}(this,function(_0x4a4863,_0x4f0b45,_0x5384f9,_0x3254a5,_0x2ce26d,_0x52eab4,_0x3b4e71,_0x5e47b8,_0x5ac1ba,_0x1952e0,_0x1ff521,_0x5a85b2){'use strict';var _0xd9bf49=_0x21bd;var _0x48422d=Object['defineProperty'],_0x7f93e8=(_0xea5f87,_0xcb90f4,_0x5f0d87)=>_0xcb90f4 in _0xea5f87?_0x48422d(_0xea5f87,_0xcb90f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f0d87}):_0xea5f87[_0xcb90f4]=_0x5f0d87,_0x3842bd=(_0x553b99,_0x7f7294,_0x3fab71)=>_0x7f93e8(_0x553b99,typeof _0x7f7294!=_0xd9bf49(0x1ba)?_0x7f7294+'':_0x7f7294,_0x3fab71),_0x18d925=function(){var _0xe186e2=_0xd9bf49;return _0x18d925=Object[_0xe186e2(0x1ac)]||function(_0x1659a7){var _0x2263cc=_0xe186e2;for(var _0x466e09,_0x3bad7b=0x1,_0x477e8c=arguments['length'];_0x3bad7b<_0x477e8c;_0x3bad7b++){_0x466e09=arguments[_0x3bad7b];for(var _0x901725 in _0x466e09)Object['prototype']['hasOwnProperty'][_0x2263cc(0x225)](_0x466e09,_0x901725)&&(_0x1659a7[_0x901725]=_0x466e09[_0x901725]);}return _0x1659a7;},_0x18d925[_0xe186e2(0x215)](this,arguments);},_0x32424a=function(_0x586f06,_0x2a98a3){var _0x2e130d=_0xd9bf49,_0x296ed2={};for(var _0x1226d5 in _0x586f06)Object[_0x2e130d(0x1a3)][_0x2e130d(0x252)][_0x2e130d(0x225)](_0x586f06,_0x1226d5)&&_0x2a98a3[_0x2e130d(0x1d4)](_0x1226d5)<0x0&&(_0x296ed2[_0x1226d5]=_0x586f06[_0x1226d5]);if(_0x586f06!=null&&typeof Object[_0x2e130d(0x23a)]=='function'){for(var _0x86e40d=0x0,_0x1226d5=Object[_0x2e130d(0x23a)](_0x586f06);_0x86e40d<_0x1226d5[_0x2e130d(0x194)];_0x86e40d++)_0x2a98a3['indexOf'](_0x1226d5[_0x86e40d])<0x0&&Object['prototype'][_0x2e130d(0x273)][_0x2e130d(0x225)](_0x586f06,_0x1226d5[_0x86e40d])&&(_0x296ed2[_0x1226d5[_0x86e40d]]=_0x586f06[_0x1226d5[_0x86e40d]]);}return _0x296ed2;},_0x2cf640=_0x52eab4[_0xd9bf49(0x21b)](function(_0x46b513,_0x4998dd){var _0x2bd51f=_0xd9bf49,_0x4e3921=_0x46b513['icon'],_0x4ed98f=_0x46b513['id'],_0xed7894=_0x46b513[_0x2bd51f(0x279)],_0xcdf171=_0x46b513[_0x2bd51f(0x1db)],_0x4e49a1=_0x32424a(_0x46b513,['icon','id',_0x2bd51f(0x279),'extend']),_0x3ab742=_0x2bd51f(0x213)[_0x2bd51f(0x230)](_0x4ed98f,'\x20')[_0x2bd51f(0x230)](_0xed7894||'')[_0x2bd51f(0x245)](),_0x3d9d25=_0x52eab4[_0x2bd51f(0x237)]('_'[_0x2bd51f(0x230)](_0x5a201d()));return _0x1ce6ca(_0x4e3921,''['concat'](_0x4ed98f),{'defIds':_0x4e3921['defIds'],'idSuffix':_0x3d9d25['current']},_0x18d925({'ref':_0x4998dd,'className':_0x3ab742},_0x4e49a1),_0xcdf171);});function _0x1ce6ca(_0x205ac2,_0x5c5bf8,_0x286a25,_0xf8070,_0x35ad2e){var _0x512c30=_0xd9bf49;return _0x52eab4['createElement'](_0x205ac2[_0x512c30(0x1f3)],_0x18d925(_0x18d925({'key':_0x5c5bf8},_0x303180(_0x205ac2,_0x286a25,_0x35ad2e)),_0xf8070),(_0x4dab48(_0x205ac2,_0x286a25)[_0x512c30(0x223)]||[])[_0x512c30(0x270)](function(_0x3925c1,_0x4407e3){var _0x1f5563=_0x512c30;return _0x1ce6ca(_0x3925c1,''[_0x1f5563(0x230)](_0x5c5bf8,'-')[_0x1f5563(0x230)](_0x205ac2['tag'],'-')[_0x1f5563(0x230)](_0x4407e3),_0x286a25,void 0x0,_0x35ad2e);}));}function _0x303180(_0x593c3d,_0x315ac0,_0xce0856){var _0x40d182=_0xd9bf49,_0x5cec21=_0x18d925({},_0x593c3d[_0x40d182(0x20d)]);_0xce0856!=null&&_0xce0856[_0x40d182(0x1f1)]&&_0x5cec21[_0x40d182(0x26d)]==='colorChannel1'&&(_0x5cec21[_0x40d182(0x26d)]=_0xce0856[_0x40d182(0x1f1)]),_0x593c3d[_0x40d182(0x1f3)]===_0x40d182(0x281)&&_0x5cec21['id']&&(_0x5cec21['id']=_0x5cec21['id']+_0x315ac0[_0x40d182(0x23b)]),Object[_0x40d182(0x255)](_0x5cec21)['forEach'](function(_0xd80bc4){var _0x1652e2=_0x40d182,_0x158f36=_0xd80bc4[0x0],_0x5ba4c3=_0xd80bc4[0x1];_0x158f36===_0x1652e2(0x281)&&typeof _0x5ba4c3==_0x1652e2(0x22d)&&(_0x5cec21[_0x158f36]=_0x5ba4c3[_0x1652e2(0x1fd)](/url\(#(.*)\)/,_0x1652e2(0x1a0)[_0x1652e2(0x230)](_0x315ac0[_0x1652e2(0x23b)],')')));});var _0x2ce401=_0x315ac0[_0x40d182(0x1a8)];return!_0x2ce401||_0x2ce401[_0x40d182(0x194)]===0x0||(_0x593c3d[_0x40d182(0x1f3)]===_0x40d182(0x1c2)&&_0x5cec21[_0x40d182(0x1f2)]&&(_0x5cec21[_0x40d182(0x1f2)]=_0x5cec21['xlink:href']+_0x315ac0[_0x40d182(0x23b)]),Object[_0x40d182(0x255)](_0x5cec21)['forEach'](function(_0x4e7212){var _0x47cf88=_0x40d182,_0x1bed4f=_0x4e7212[0x0],_0xcb56a4=_0x4e7212[0x1];typeof _0xcb56a4=='string'&&(_0x5cec21[_0x1bed4f]=_0xcb56a4[_0x47cf88(0x1fd)](/url\(#(.*)\)/,'url(#$1'[_0x47cf88(0x230)](_0x315ac0[_0x47cf88(0x23b)],')')));})),_0x5cec21;}function _0x4dab48(_0x5614e6,_0x45243c){var _0x1f3ed5=_0xd9bf49,_0x5ea35f,_0x1871ab=_0x45243c[_0x1f3ed5(0x1a8)];return!_0x1871ab||_0x1871ab[_0x1f3ed5(0x194)]===0x0?_0x5614e6:_0x5614e6[_0x1f3ed5(0x1f3)]===_0x1f3ed5(0x1ae)&&(!((_0x5ea35f=_0x5614e6[_0x1f3ed5(0x223)])===null||_0x5ea35f===void 0x0)&&_0x5ea35f['length'])?_0x18d925(_0x18d925({},_0x5614e6),{'children':_0x5614e6[_0x1f3ed5(0x223)]['map'](function(_0x787bf5){var _0x38a0be=_0x1f3ed5;return typeof _0x787bf5[_0x38a0be(0x20d)]['id']==_0x38a0be(0x22d)&&_0x1871ab&&_0x1871ab[_0x38a0be(0x1ca)](_0x787bf5[_0x38a0be(0x20d)]['id'])?_0x18d925(_0x18d925({},_0x787bf5),{'attrs':_0x18d925(_0x18d925({},_0x787bf5[_0x38a0be(0x20d)]),{'id':_0x787bf5[_0x38a0be(0x20d)]['id']+_0x45243c[_0x38a0be(0x23b)]})}):_0x787bf5;})}):_0x5614e6;}function _0x5a201d(){var _0x449f7a=_0xd9bf49;return Math[_0x449f7a(0x204)]()[_0x449f7a(0x214)](0x24)[_0x449f7a(0x229)](0x2,0x8);}_0x2cf640['displayName']=_0xd9bf49(0x20a);var _0x2de6e6={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xd9bf49(0x1d9),'viewBox':_0xd9bf49(0x1a5),'width':_0xd9bf49(0x1b1),'height':'1em'},'children':[{'tag':_0xd9bf49(0x27e),'attrs':{'fill':_0xd9bf49(0x21a),'d':_0xd9bf49(0x20e)}},{'tag':_0xd9bf49(0x27e),'attrs':{'fill':_0xd9bf49(0x21a),'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':_0xd9bf49(0x263),'clipRule':_0xd9bf49(0x263)}}]},_0x4289e=_0x52eab4[_0xd9bf49(0x21b)](function(_0x2410f0,_0x4ace02){var _0x344013=_0xd9bf49;return _0x52eab4['createElement'](_0x2cf640,Object[_0x344013(0x1ac)]({},_0x2410f0,{'id':_0x344013(0x22f),'ref':_0x4ace02,'icon':_0x2de6e6}));});_0x4289e['displayName']='LiveShareIcon';class _0x1c2d2c extends _0x4f0b45[_0xd9bf49(0x210)]{constructor(){var _0x1259f7=_0xd9bf49;super(...arguments),_0x3842bd(this,'_sharedOperations',new Set()),_0x3842bd(this,_0x1259f7(0x1e8),new Set());}[_0xd9bf49(0x216)](_0x4b23e7){var _0x50cefc=_0xd9bf49;return this[_0x50cefc(0x258)]['add'](_0x4b23e7),_0x4f0b45['toDisposable'](()=>this[_0x50cefc(0x258)]['delete'](_0x4b23e7));}[_0xd9bf49(0x233)](_0x4c271a){var _0x401ea3=_0xd9bf49;return this[_0x401ea3(0x1e8)][_0x401ea3(0x1c0)](_0x4c271a),_0x4f0b45[_0x401ea3(0x25a)](()=>this['_reporters'][_0x401ea3(0x247)](_0x4c271a));}['shouldShareOperation'](_0x3b4ed8){var _0x326944=_0xd9bf49;return this[_0x326944(0x258)][_0x326944(0x1bd)](_0x3b4ed8);}['getInitialStates'](_0xf47938){var _0x5176f9=_0xd9bf49;return Array[_0x5176f9(0x1ed)](this['_reporters'])[_0x5176f9(0x270)](_0x4f0051=>_0x4f0051(_0xf47938));}}var _0x306d22=Object['getOwnPropertyDescriptor'],_0x5ad8b8=(_0x9767ab,_0xb747ba,_0x18928b,_0xdc81a6)=>{var _0x79ca39=_0xd9bf49;for(var _0x19fd4b=_0xdc81a6>0x1?void 0x0:_0xdc81a6?_0x306d22(_0xb747ba,_0x18928b):_0xb747ba,_0x29d59a=_0x9767ab[_0x79ca39(0x194)]-0x1,_0x3395c3;_0x29d59a>=0x0;_0x29d59a--)(_0x3395c3=_0x9767ab[_0x29d59a])&&(_0x19fd4b=_0x3395c3(_0x19fd4b)||_0x19fd4b);return _0x19fd4b;},_0x330cdb=(_0x253a45,_0x3d730f)=>(_0x438cc2,_0x4145b7)=>_0x3d730f(_0x438cc2,_0x4145b7,_0x253a45);_0x4a4863[_0xd9bf49(0x235)]=class extends _0x4f0b45[_0xd9bf49(0x1e9)]{constructor(_0x3e1376,_0x49fb7c,_0x228d21){var _0x55045c=_0xd9bf49;super(),_0x3842bd(this,_0x55045c(0x1ce),new Map()),(this[_0x55045c(0x1c5)]=_0x3e1376,this[_0x55045c(0x1bf)]=_0x49fb7c,this[_0x55045c(0x265)]=_0x228d21,this[_0x55045c(0x1e5)]());}async[_0xd9bf49(0x1d6)](_0x2a177a){var _0x5a0d7c=_0xd9bf49;return this[_0x5a0d7c(0x1ce)][_0x5a0d7c(0x1bd)](_0x2a177a)||await this[_0x5a0d7c(0x22a)](_0x2a177a),this['_entities'][_0x5a0d7c(0x20f)](_0x2a177a);}[_0xd9bf49(0x1e5)](){var _0x1d1655=_0xd9bf49;this[_0x1d1655(0x1c5)][_0x1d1655(0x1b3)](_0x4f0b45[_0x1d1655(0x1cb)][_0x1d1655(0x1c1)])['pipe'](_0x1ff521[_0x1d1655(0x226)](this[_0x1d1655(0x259)]))[_0x1d1655(0x19e)](async _0x42722d=>{var _0x3d69fe=_0x1d1655;const _0x5686d2=_0x42722d[_0x3d69fe(0x27b)]();this['_entities'][_0x3d69fe(0x1bd)](_0x5686d2)||this[_0x3d69fe(0x22a)](_0x5686d2);}),this[_0x1d1655(0x1c5)]['getTypeOfUnitDisposed$'](_0x4f0b45[_0x1d1655(0x1cb)][_0x1d1655(0x1c1)])[_0x1d1655(0x25b)](_0x1ff521[_0x1d1655(0x226)](this[_0x1d1655(0x259)]))[_0x1d1655(0x19e)](_0x2a182a=>{var _0x5d7d80=_0x1d1655;const _0x10cebc=_0x2a182a[_0x5d7d80(0x27b)](),_0x4ac0bc=this['_entities']['get'](_0x10cebc);_0x4ac0bc==null||_0x4ac0bc['dispose']();});}async[_0xd9bf49(0x22a)](_0x5bb9e3){var _0x464661=_0xd9bf49;const _0x13bd0e=await this['_collabSessionService'][_0x464661(0x1c7)](_0x5bb9e3),_0x266832=this[_0x464661(0x1bf)][_0x464661(0x1df)](_0x4a4863[_0x464661(0x20b)],_0x5bb9e3,_0x13bd0e);return _0x266832[_0x464661(0x1f8)](),this[_0x464661(0x1ce)]['set'](_0x5bb9e3,_0x266832),_0x266832;}},_0x4a4863[_0xd9bf49(0x235)]=_0x5ad8b8([_0x330cdb(0x0,_0x4f0b45[_0xd9bf49(0x224)]),_0x330cdb(0x1,_0x4f0b45[_0xd9bf49(0x1fa)](_0x4f0b45[_0xd9bf49(0x236)])),_0x330cdb(0x2,_0x4f0b45[_0xd9bf49(0x1fa)](_0x5e47b8[_0xd9bf49(0x1d1)]))],_0x4a4863[_0xd9bf49(0x235)]);var _0x5de92f=(_0x22ac9f=>(_0x22ac9f[_0xd9bf49(0x1d5)]='offline',_0x22ac9f[_0xd9bf49(0x1f0)]=_0xd9bf49(0x1e0),_0x22ac9f[_0xd9bf49(0x26b)]=_0xd9bf49(0x19c),_0x22ac9f[_0xd9bf49(0x24f)]=_0xd9bf49(0x260),_0x22ac9f[_0xd9bf49(0x207)]=_0xd9bf49(0x1ff),_0x22ac9f))(_0x5de92f||{});const _0x49d1a0=_0xd9bf49(0x1a4),_0xf95aad=0xc8;_0x4a4863[_0xd9bf49(0x20b)]=class extends _0x4f0b45[_0xd9bf49(0x1e9)]{constructor(_0x5e6776,_0x32e6af,_0x4ed928,_0x3bb6e7,_0x58b405){var _0x21d38c=_0xd9bf49;super(),_0x3842bd(this,_0x21d38c(0x208),new _0x1952e0['BehaviorSubject'](_0x21d38c(0x1e0))),_0x3842bd(this,'status$',this[_0x21d38c(0x208)][_0x21d38c(0x21f)]()),_0x3842bd(this,_0x21d38c(0x1e5),!0x1),_0x3842bd(this,_0x21d38c(0x193),null),_0x3842bd(this,_0x21d38c(0x203),null),(this[_0x21d38c(0x1f7)]=_0x5e6776,this[_0x21d38c(0x200)]=_0x32e6af,this[_0x21d38c(0x1b7)]=_0x4ed928,this[_0x21d38c(0x26c)]=_0x3bb6e7,this[_0x21d38c(0x25f)]=_0x58b405);}get['_status'](){var _0x25d2bc=_0xd9bf49;return this[_0x25d2bc(0x208)]['getValue']();}[_0xd9bf49(0x212)](){var _0x2d755f=_0xd9bf49,_0x426f6b;(_0x426f6b=this[_0x2d755f(0x193)])==null||_0x426f6b[_0x2d755f(0x212)](),this[_0x2d755f(0x208)][_0x2d755f(0x1b4)](_0x2d755f(0x1e0)),this[_0x2d755f(0x208)]['complete']();}[_0xd9bf49(0x1f8)](){var _0x16bd1f=_0xd9bf49;this['_init']||(this['_init']=!0x0,this[_0x16bd1f(0x200)]['sessionStatus$'][_0x16bd1f(0x25b)](_0x1ff521[_0x16bd1f(0x226)](this[_0x16bd1f(0x259)]))[_0x16bd1f(0x19e)](_0x8140=>{var _0x5cc1b1=_0x16bd1f;switch(_0x8140){case _0x5e47b8[_0x5cc1b1(0x218)]['OFFLINE']:this['_handleOffline']();break;case _0x5e47b8[_0x5cc1b1(0x218)][_0x5cc1b1(0x257)]:this[_0x5cc1b1(0x24e)]();break;}}),this['_collabSession']['event$'][_0x16bd1f(0x25b)](_0x1ff521['takeUntil'](this['dispose$']))[_0x16bd1f(0x19e)](_0x410002=>{var _0x395215=_0x16bd1f;const {eventID:_0x2a27d6}=_0x410002;switch(_0x2a27d6){case _0x3b4e71[_0x395215(0x1c4)]['LIVESHARE_NEW_HOST']:this[_0x395215(0x1d2)](_0x410002);break;case _0x3b4e71[_0x395215(0x1c4)][_0x395215(0x246)]:this[_0x395215(0x1a2)](_0x410002);break;case _0x3b4e71[_0x395215(0x1c4)]['LIVESHARE_TERMINATE']:this[_0x395215(0x195)]();break;case _0x3b4e71['CollaborationEvent'][_0x395215(0x1dc)]:this['_handleNewChangeSets'](_0x410002);break;}}));}[_0xd9bf49(0x1a9)](){var _0x284e1e=_0xd9bf49;this[_0x284e1e(0x200)]['send']({'eventID':_0x3b4e71['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x284e1e(0x1f7)],'userID':this[_0x284e1e(0x200)]['getMemberID']()}},this['_unitID']);}[_0xd9bf49(0x250)](){var _0x417225=_0xd9bf49;this[_0x417225(0x1f6)]===_0x417225(0x1ff)&&(this[_0x417225(0x208)]['next'](_0x417225(0x1e0)),this[_0x417225(0x200)][_0x417225(0x1be)]({'eventID':_0x3b4e71['CollaborationEvent'][_0x417225(0x1d8)],'data':{'unitID':this[_0x417225(0x1f7)]}},this[_0x417225(0x1f7)]));}['startFollowing'](){var _0x1d6fda=_0xd9bf49;this['_status']===_0x1d6fda(0x260)&&(this[_0x1d6fda(0x208)][_0x1d6fda(0x1b4)](_0x1d6fda(0x19c)),this['_startFollowing']());}[_0xd9bf49(0x1eb)](){var _0x49ae19=_0xd9bf49;this[_0x49ae19(0x1f6)]===_0x49ae19(0x19c)&&this[_0x49ae19(0x240)]();}[_0xd9bf49(0x1d2)](_0x1e09d8){var _0x2eb190=_0xd9bf49;const {presenter:_0x73ee95}=_0x1e09d8['data'],_0x7c572a=this['_collabSession'][_0x2eb190(0x243)]();this[_0x2eb190(0x203)]=_0x73ee95,_0x73ee95===_0x7c572a?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x2eb190(0x1f6)]!==_0x2eb190(0x260)&&(this[_0x2eb190(0x198)](),this['_startFollowing']());}['_fetchOperations'](){var _0x38e971=_0xd9bf49;const _0x4d6818={'eventID':_0x3b4e71[_0x38e971(0x1c4)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x38e971(0x200)][_0x38e971(0x1be)](_0x4d6818,this[_0x38e971(0x1f7)]);}[_0xd9bf49(0x195)](){var _0x5810dc=_0xd9bf49;this[_0x5810dc(0x203)]=null,this[_0x5810dc(0x1f6)]!==_0x5810dc(0x1ff)&&this['_beIdle']();}[_0xd9bf49(0x209)](_0x533b91){var _0x490215=_0xd9bf49;if(this[_0x490215(0x1f6)]==='following'&&this[_0x490215(0x203)]===_0x533b91['data'][_0x490215(0x1e7)]){const _0x4d74b6=_0x3b4e71[_0x490215(0x1cd)](_0x533b91[_0x490215(0x1a7)])[_0x490215(0x24c)][_0x490215(0x244)]()[_0x490215(0x23d)](_0x42fd32=>_0x42fd32['id']===_0x5ac1ba[_0x490215(0x232)]['id']);if(_0x4d74b6){const _0x53a73b=_0x4d74b6[_0x490215(0x268)][_0x490215(0x242)],_0x245fb8=_0x4d74b6['params']['sheet']['id'];setTimeout(()=>{var _0x356bfc=_0x490215;this[_0x356bfc(0x25f)][_0x356bfc(0x1fc)](_0x5ac1ba[_0x356bfc(0x1cf)]['id'],{'unitId':_0x53a73b,'subUnitId':_0x245fb8},{'fromCollab':!0x0});});}}}[_0xd9bf49(0x1c9)](){var _0x10f331=_0xd9bf49;this[_0x10f331(0x208)][_0x10f331(0x1b4)](_0x10f331(0x1ff));const _0x367150=new Map(),_0xd6acce=this[_0x10f331(0x193)]=new _0x4f0b45[(_0x10f331(0x1c6))]();_0xd6acce[_0x10f331(0x1c0)](_0x4f0b45['toDisposable'](()=>{var _0x31222c=_0x10f331;_0x367150[_0x31222c(0x21e)](_0x3e8585=>_0x3e8585[_0x31222c(0x1ea)]()),_0x367150[_0x31222c(0x27d)]();})),_0xd6acce[_0x10f331(0x1c0)](this[_0x10f331(0x25f)][_0x10f331(0x197)](_0x29d21c=>{var _0x3a23e1=_0x10f331,_0x586ec4;if(_0x29d21c[_0x3a23e1(0x23c)]!==_0x4f0b45[_0x3a23e1(0x21c)][_0x3a23e1(0x25e)]||!this[_0x3a23e1(0x26c)]['shouldShareOperation'](_0x29d21c['id']))return;const {id:_0x2862b0}=_0x29d21c;let _0x3223a5;_0x367150['has'](_0x2862b0)?_0x3223a5=_0x367150['get'](_0x2862b0):(_0x3223a5=new _0x1952e0['Subject'](),_0x367150['set'](_0x2862b0,_0x3223a5),_0x3223a5['pipe'](_0x1ff521[_0x3a23e1(0x1de)]((_0x586ec4=this['_configService'][_0x3a23e1(0x205)](_0x49d1a0))!=null?_0x586ec4:_0xf95aad,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3a23e1(0x19e)](_0x33f055=>{var _0x15be31=_0x3a23e1;this['_collabSession'][_0x15be31(0x1be)]({'eventID':_0x3b4e71['CollaborationEvent'][_0x15be31(0x246)],'data':{'unitID':this[_0x15be31(0x1f7)],'operations':{[_0x33f055['id']]:{'id':_0x33f055['id'],'params':JSON[_0x15be31(0x1ef)](_0x33f055['params'])}}}},this[_0x15be31(0x1f7)]);})),_0x3223a5[_0x3a23e1(0x1b4)](_0x29d21c);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x10f331(0x21e)](_0x5ce959=>this[_0x10f331(0x200)][_0x10f331(0x1be)]({'eventID':_0x3b4e71[_0x10f331(0x1c4)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10f331(0x1f7)],'operations':{[_0x5ce959['id']]:{'id':_0x5ce959['id'],'params':JSON[_0x10f331(0x1ef)](_0x5ce959[_0x10f331(0x268)])}}}},this[_0x10f331(0x1f7)]));}[_0xd9bf49(0x198)](){var _0x29df15=_0xd9bf49,_0x2a4150;this[_0x29df15(0x208)]['next'](_0x29df15(0x1e0)),(_0x2a4150=this[_0x29df15(0x193)])==null||_0x2a4150[_0x29df15(0x212)](),this[_0x29df15(0x193)]=null;}['_startFollowing'](){var _0x313ebf=_0xd9bf49,_0x46e6ae;(_0x46e6ae=this[_0x313ebf(0x193)])==null||_0x46e6ae[_0x313ebf(0x212)](),this[_0x313ebf(0x208)][_0x313ebf(0x1b4)](_0x313ebf(0x19c));}[_0xd9bf49(0x201)](){var _0x30d6af=_0xd9bf49,_0x4ac6f4;this['_status$'][_0x30d6af(0x1b4)](_0x30d6af(0x1e0)),(_0x4ac6f4=this[_0x30d6af(0x193)])==null||_0x4ac6f4[_0x30d6af(0x212)](),this[_0x30d6af(0x193)]=null;}[_0xd9bf49(0x240)](){var _0x475e00=_0xd9bf49,_0x4f2854;this['_status$'][_0x475e00(0x1b4)](_0x475e00(0x260)),(_0x4f2854=this[_0x475e00(0x193)])==null||_0x4f2854['dispose']();}['_handleOperation'](_0x2e5c38){var _0x3491c5=_0xd9bf49;if(['presenting',_0x3491c5(0x260),_0x3491c5(0x19b)]['includes'](this[_0x3491c5(0x1f6)])||!_0x2e5c38[_0x3491c5(0x1a7)][_0x3491c5(0x222)]||_0x2e5c38[_0x3491c5(0x1a7)][_0x3491c5(0x222)]===this[_0x3491c5(0x200)][_0x3491c5(0x243)]())return;this[_0x3491c5(0x1f6)]===_0x3491c5(0x1e0)&&this[_0x3491c5(0x1a6)]();const _0x4c6ff7=_0x2e5c38[_0x3491c5(0x1a7)][_0x3491c5(0x1e1)];Object[_0x3491c5(0x1b2)](_0x4c6ff7)[_0x3491c5(0x21e)](_0x36cd25=>{var _0x467f4b=_0x3491c5;this['_commandService'][_0x467f4b(0x1fc)](_0x36cd25['id'],_0x36cd25[_0x467f4b(0x268)]?JSON[_0x467f4b(0x261)](_0x36cd25[_0x467f4b(0x268)]):null,{'fromCollab':!0x0});});}[_0xd9bf49(0x22e)](){var _0x465887=_0xd9bf49,_0x28cde1;this[_0x465887(0x208)][_0x465887(0x1b4)](_0x465887(0x19b)),(_0x28cde1=this[_0x465887(0x193)])==null||_0x28cde1[_0x465887(0x212)]();}['_handleOnline'](){var _0x9451ba=_0xd9bf49;this[_0x9451ba(0x208)][_0x9451ba(0x1b4)](_0x9451ba(0x1e0)),this['_fetchOperations']();}},_0x4a4863[_0xd9bf49(0x20b)]=_0x5ad8b8([_0x330cdb(0x2,_0x4f0b45[_0xd9bf49(0x24d)]),_0x330cdb(0x3,_0x4f0b45['Inject'](_0x1c2d2c)),_0x330cdb(0x4,_0x4f0b45[_0xd9bf49(0x262)])],_0x4a4863[_0xd9bf49(0x20b)]);function _0x239727(){var _0x346529=_0xd9bf49;const _0x27e865=_0x5384f9[_0x346529(0x206)](_0x4a4863[_0x346529(0x235)]),_0xea21e1=_0x5384f9[_0x346529(0x206)](_0x4f0b45[_0x346529(0x224)]),_0x4c421b=_0x5384f9['useObservable'](()=>_0xea21e1['getCurrentTypeOfUnit$'](_0x4f0b45[_0x346529(0x1cb)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x41656b,_0x786219]=_0x52eab4[_0x346529(0x1e6)](null),[_0x5affbd,_0x369ba9]=_0x52eab4[_0x346529(0x1e6)](_0x5de92f['IDLE']),_0xdfc610=_0x52eab4[_0x346529(0x237)](null);return _0x52eab4[_0x346529(0x196)](()=>(_0x4c421b&&_0x27e865[_0x346529(0x1d6)](_0x4c421b[_0x346529(0x27b)]())[_0x346529(0x202)](_0x25c2f5=>{var _0x1f4f1d=_0x346529;_0x786219(_0x25c2f5),_0xdfc610[_0x1f4f1d(0x19d)]=_0x25c2f5['status$']['subscribe'](_0x41ad55=>{_0x369ba9(_0x41ad55);});}),()=>{var _0x21f24f=_0x346529,_0x507e50;(_0x507e50=_0xdfc610[_0x21f24f(0x19d)])==null||_0x507e50['unsubscribe'](),_0xdfc610[_0x21f24f(0x19d)]=null;}),[_0x4c421b,_0x27e865]),_0x41656b?_0x3254a5[_0x346529(0x25c)](_0x2ce26d['Dropdown'],{'align':'end','disabled':_0x5affbd===_0x5de92f[_0x346529(0x1d5)],'className':_0x346529(0x231),'overlay':_0x3254a5['jsx'](_0x16f80e,{'status':_0x5affbd,'coordinator':_0x41656b}),'children':_0x3254a5[_0x346529(0x25c)](_0x346529(0x254),{'className':_0x2ce26d['clsx'](_0x346529(0x1dd),{'univer-cursor-not-allowed':_0x5affbd===_0x5de92f[_0x346529(0x1d5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5affbd!==_0x5de92f[_0x346529(0x1d5)]}),'type':_0x346529(0x254),'children':_0x3254a5[_0x346529(0x25c)](_0x4289e,{'className':_0x346529(0x1bb)})})}):null;}function _0x16f80e(_0x3f23b1){var _0x8f5664=_0xd9bf49;const {status:_0x295b79,coordinator:_0x228729}=_0x3f23b1;switch(_0x295b79){case _0x5de92f['IDLE']:return _0x3254a5[_0x8f5664(0x25c)](_0x107789,{'coordinator':_0x228729});case _0x5de92f['FOLLOWING']:return _0x3254a5[_0x8f5664(0x25c)](_0x2a5317,{'coordinator':_0x228729});case _0x5de92f['NOT_FOLLOWING']:return _0x3254a5['jsx'](_0x12eef5,{'coordinator':_0x228729});case _0x5de92f[_0x8f5664(0x1d5)]:return _0x3254a5[_0x8f5664(0x25c)](_0x3e1901,{});case _0x5de92f[_0x8f5664(0x207)]:return _0x3254a5[_0x8f5664(0x25c)](_0x3bce68,{'coordinator':_0x228729});default:return null;}}function _0x107789(_0x20f4f8){var _0x2c6bac=_0xd9bf49;const {coordinator:_0xec3037}=_0x20f4f8;return _0x3254a5['jsxs'](_0x3254a5[_0x2c6bac(0x264)],{'children':[_0x3254a5['jsx'](_0x2c6bac(0x1c8),{'className':_0x2c6bac(0x1b0),'children':_0x2c6bac(0x227)}),_0x3254a5[_0x2c6bac(0x25c)](_0x2ce26d[_0x2c6bac(0x219)],{'onClick':()=>_0xec3037[_0x2c6bac(0x1a9)](),'children':_0x2c6bac(0x220)})]});}function _0x2a5317(_0x396c43){var _0x1245fb=_0xd9bf49;const {coordinator:_0xd95b55}=_0x396c43;return _0x3254a5[_0x1245fb(0x27f)](_0x3254a5[_0x1245fb(0x264)],{'children':[_0x3254a5[_0x1245fb(0x25c)](_0x1245fb(0x1c8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1245fb(0x234)}),_0x3254a5[_0x1245fb(0x25c)](_0x2ce26d[_0x1245fb(0x219)],{'onClick':()=>_0xd95b55['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x12eef5(_0x5440ec){var _0x3a54c7=_0xd9bf49;const {coordinator:_0x51039d}=_0x5440ec;return _0x3254a5['jsxs'](_0x3254a5[_0x3a54c7(0x264)],{'children':[_0x3254a5[_0x3a54c7(0x25c)](_0x3a54c7(0x1c8),{'className':_0x3a54c7(0x1b0),'children':_0x3a54c7(0x1e3)}),_0x3254a5[_0x3a54c7(0x25c)](_0x2ce26d[_0x3a54c7(0x219)],{'variant':_0x3a54c7(0x282),'onClick':()=>_0x51039d[_0x3a54c7(0x1d7)](),'children':'Start\x20following'})]});}function _0x3bce68(_0x55722a){var _0x1e444c=_0xd9bf49;const {coordinator:_0x13c12e}=_0x55722a;return _0x3254a5[_0x1e444c(0x27f)](_0x3254a5[_0x1e444c(0x264)],{'children':[_0x3254a5['jsx'](_0x1e444c(0x1c8),{'className':_0x1e444c(0x1b0),'children':_0x1e444c(0x1b6)}),_0x3254a5['jsx'](_0x2ce26d[_0x1e444c(0x219)],{'variant':_0x1e444c(0x1bc),'onClick':()=>_0x13c12e['stopPresenting'](),'children':_0x1e444c(0x26a)})]});}function _0x3e1901(){var _0x40f26c=_0xd9bf49;return _0x3254a5['jsx'](_0x3254a5[_0x40f26c(0x264)],{'children':'You\x27are\x20offline.'});}var _0x33b478=Object['getOwnPropertyDescriptor'],_0x39aa41=(_0x1cfa9a,_0x4e5ddc,_0x1b1bce,_0x27d91c)=>{var _0x1b83e2=_0xd9bf49;for(var _0x5f45f3=_0x27d91c>0x1?void 0x0:_0x27d91c?_0x33b478(_0x4e5ddc,_0x1b1bce):_0x4e5ddc,_0x3315f9=_0x1cfa9a[_0x1b83e2(0x194)]-0x1,_0x5c9202;_0x3315f9>=0x0;_0x3315f9--)(_0x5c9202=_0x1cfa9a[_0x3315f9])&&(_0x5f45f3=_0x5c9202(_0x5f45f3)||_0x5f45f3);return _0x5f45f3;},_0x11fc3c=(_0x38ea5c,_0x3d5802)=>(_0x32a901,_0x3deccd)=>_0x3d5802(_0x32a901,_0x3deccd,_0x38ea5c);_0x4a4863['DesktopLiveShareController']=class extends _0x4f0b45['Disposable']{constructor(_0x4fb65a,_0x15c2af){var _0x2bd675=_0xd9bf49;super(),this['_injector']=_0x4fb65a,this[_0x2bd675(0x27c)]=_0x15c2af,this[_0x2bd675(0x248)]();}['_mountLiveShare'](){var _0x2e6f85=_0xd9bf49;this[_0x2e6f85(0x228)](this[_0x2e6f85(0x27c)][_0x2e6f85(0x283)](_0x5384f9[_0x2e6f85(0x269)]['HEADER_MENU'],()=>_0x5384f9[_0x2e6f85(0x275)](_0x239727,this[_0x2e6f85(0x1bf)])));}},_0x4a4863['DesktopLiveShareController']=_0x39aa41([_0x11fc3c(0x0,_0x4f0b45['Inject'](_0x4f0b45[_0xd9bf49(0x236)])),_0x11fc3c(0x1,_0x5384f9[_0xd9bf49(0x251)])],_0x4a4863[_0xd9bf49(0x1f9)]);const _0x484dee=_0xd9bf49(0x27a),_0x149dc4={};var _0x10d065=Object[_0xd9bf49(0x26e)],_0x71725=(_0x393d4f,_0x15d8d7,_0x386faa,_0x18148f)=>{var _0x1adb72=_0xd9bf49;for(var _0x36273e=_0x18148f>0x1?void 0x0:_0x18148f?_0x10d065(_0x15d8d7,_0x386faa):_0x15d8d7,_0x21fa1b=_0x393d4f[_0x1adb72(0x194)]-0x1,_0x19cf75;_0x21fa1b>=0x0;_0x21fa1b--)(_0x19cf75=_0x393d4f[_0x21fa1b])&&(_0x36273e=_0x19cf75(_0x36273e)||_0x36273e);return _0x36273e;},_0x17dd1a=(_0x287c49,_0x384cd3)=>(_0x33a2aa,_0x3fae6e)=>_0x384cd3(_0x33a2aa,_0x3fae6e,_0x287c49);let _0x4f6d6d=class extends _0x4f0b45[_0xd9bf49(0x210)]{constructor(_0x1b3af3){var _0x352ffb=_0xd9bf49;super(),this[_0x352ffb(0x26c)]=_0x1b3af3,this[_0x352ffb(0x1e5)]();}['_init'](){var _0x4e69cf=_0xd9bf49;[_0x5a85b2[_0x4e69cf(0x221)]['id'],_0x5a85b2[_0x4e69cf(0x1f4)]['id'],_0x5ac1ba['SetWorksheetActiveOperation']['id']][_0x4e69cf(0x21e)](_0x3c3bcd=>{var _0x8cd833=_0x4e69cf;this[_0x8cd833(0x228)](this[_0x8cd833(0x26c)][_0x8cd833(0x216)](_0x3c3bcd));});}};_0x4f6d6d=_0x71725([_0x17dd1a(0x0,_0x4f0b45[_0xd9bf49(0x1fa)](_0x1c2d2c))],_0x4f6d6d);var _0x3cf021=Object[_0xd9bf49(0x1e2)],_0x5bd59d=Object['getOwnPropertyDescriptor'],_0xa6a429=(_0x1f70a0,_0x12d0fd,_0x155d16)=>_0x12d0fd in _0x1f70a0?_0x3cf021(_0x1f70a0,_0x12d0fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x155d16}):_0x1f70a0[_0x12d0fd]=_0x155d16,_0x2b875c=(_0x47c987,_0x4e1587,_0x6a7c32,_0xdb65b4)=>{for(var _0x3b0b78=_0xdb65b4>0x1?void 0x0:_0xdb65b4?_0x5bd59d(_0x4e1587,_0x6a7c32):_0x4e1587,_0x9b2773=_0x47c987['length']-0x1,_0x4c454d;_0x9b2773>=0x0;_0x9b2773--)(_0x4c454d=_0x47c987[_0x9b2773])&&(_0x3b0b78=_0x4c454d(_0x3b0b78)||_0x3b0b78);return _0x3b0b78;},_0x1543af=(_0xe1807,_0x464c80)=>(_0x55e174,_0x3f2a8c)=>_0x464c80(_0x55e174,_0x3f2a8c,_0xe1807),_0x18695a=(_0x596c77,_0x3288e9,_0x54f090)=>_0xa6a429(_0x596c77,typeof _0x3288e9!=_0xd9bf49(0x1ba)?_0x3288e9+'':_0x3288e9,_0x54f090);const _0x300eaa='UNIVER_LIVE_SHARE_PLUGIN';_0x4a4863[_0xd9bf49(0x1aa)]=class extends _0x4f0b45[_0xd9bf49(0x238)]{constructor(_0x4e5b31=_0x149dc4,_0x54edf2,_0x1898aa){var _0x205ee5=_0xd9bf49;super(),this['_config']=_0x4e5b31,this[_0x205ee5(0x1bf)]=_0x54edf2,this[_0x205ee5(0x1b7)]=_0x1898aa;const {..._0x253fc5}=_0x4f0b45[_0x205ee5(0x277)]({},_0x149dc4,this['_config']);this[_0x205ee5(0x1b7)]['setConfig'](_0x484dee,_0x253fc5);}[_0xd9bf49(0x1fe)](){var _0x43d0a6=_0xd9bf49;_0x4f0b45[_0x43d0a6(0x249)](this['_injector'],_0x4f0b45[_0x43d0a6(0x1b8)]([[_0x1c2d2c],[_0x4a4863[_0x43d0a6(0x235)]],[_0x4f6d6d],[_0x4a4863[_0x43d0a6(0x1f9)]]],this['_config'][_0x43d0a6(0x1fb)])),_0x4f0b45['touchDependencies'](this[_0x43d0a6(0x1bf)],[[_0x4f6d6d]]);}[_0xd9bf49(0x23f)](){var _0x3d84ae=_0xd9bf49;_0x4f0b45[_0x3d84ae(0x19f)](this['_injector'],[[_0x4a4863[_0x3d84ae(0x1f9)]]]);}},_0x18695a(_0x4a4863[_0xd9bf49(0x1aa)],'type',_0x4f0b45['UniverInstanceType'][_0xd9bf49(0x1b5)]),_0x18695a(_0x4a4863[_0xd9bf49(0x1aa)],_0xd9bf49(0x280),_0x300eaa),_0x4a4863[_0xd9bf49(0x1aa)]=_0x2b875c([_0x4f0b45[_0xd9bf49(0x272)](_0x5e47b8['UniverCollaborationClientPlugin']),_0x1543af(0x1,_0x4f0b45[_0xd9bf49(0x1fa)](_0x4f0b45[_0xd9bf49(0x236)])),_0x1543af(0x2,_0x4f0b45[_0xd9bf49(0x24d)])],_0x4a4863[_0xd9bf49(0x1aa)]),_0x4a4863[_0xd9bf49(0x267)]=_0x239727,_0x4a4863['LiveShareService']=_0x1c2d2c,_0x4a4863[_0xd9bf49(0x1ab)]=_0x5de92f,Object['defineProperty'](_0x4a4863,Symbol['toStringTag'],{'value':_0xd9bf49(0x21d)});}));function _0x2269(){var _0x3f3f88=['live-share.config','getUnitId','_uiPartsService','clear','path','jsxs','pluginName','mask','text','registerComponent','_commandDisposable','length','_handleTerminate','useEffect','onCommandExecuted','_stopPresenting','React','react','offline','following','current','subscribe','touchDependencies','url(#$1','amd','_handleOperation','prototype','SAME_OPERATION_SHARE_INTERVAL','0\x200\x2017\x2017','_startFollowing','data','defIds','tryStartPresenting','UniverLiveSharePlugin','LiveShareStatus','assign','570280ReYvDM','defs','UniverProCollaborationClient','univer-mb-3\x20univer-w-full\x20univer-text-sm','1em','values','getTypeOfUnitAdded$','next','UNIVER_UNKNOWN','You\x27re\x20presenting\x20the\x20document','_configService','mergeOverrideWithDependencies','UniverCore','symbol','univer-size-4','default','has','send','_injector','add','UNIVER_SHEET','use','245576vZdeGs','CollaborationEvent','_univerInstanceService','DisposableCollection','requireSession','div','_startPresenting','includes','UniverInstanceType','35ijXKSh','parseProtocolChangeset','_entities','SetWorksheetActiveOperation','function','CollaborationSessionService','_handleNewHost','exports','indexOf','OFFLINE','getLiveShareCoordinator','startFollowing','LIVESHARE_TERMINATE','none','379332zFHgRz','extend','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','throttleTime','createInstance','idle','operations','defineProperty','You\x27re\x20not\x20following\x20the\x20presenter','rxjs','_init','useState','memberID','_reporters','RxDisposable','complete','stopFollowing','127746TTdHIk','from','UniverUi','stringify','IDLE','colorChannel1','xlink:href','tag','SetScrollOperation','@univerjs/core','_status','_unitID','init','DesktopLiveShareController','Inject','override','executeCommand','replace','onStarting','presenting','_collabSession','_beIdle','then','_presenter','random','getConfig','useDependency','PRESENTING','_status$','_handleNewChangeSets','UniverIcon','LiveShareCoordinator','80140QDMzqg','attrs','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','get','Disposable','UniverSheetsUi','dispose','univerjs-icon\x20univerjs-icon-','toString','apply','registerSharedOperation','rxjs/operators','SessionStatus','Button','currentColor','forwardRef','CommandType','Module','forEach','asObservable','Start','SetZoomRatioOperation','presenter','children','IUniverInstanceService','call','takeUntil','Present\x20this\x20document','disposeWithMe','substring','_startLiveShareCoordinator','2yVqrpR','@univerjs/ui','string','_handleOffline','live-share-icon','concat','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','InsertSheetMutation','registerInitialStateReporter','You\x27re\x20following\x20the\x20presenter','LiveShareController','Injector','useRef','Plugin','UniverSheets','getOwnPropertySymbols','idSuffix','type','find','77AZuxvy','onRendered','_stopFollowing','40yxtMtv','unitId','getMemberID','reverse','trim','LIVESHARE_OPERATION','delete','_mountLiveShare','registerDependencies','@univerjs-pro/collaboration','UniverProCollaboration','mutations','IConfigService','_handleOnline','NOT_FOLLOWING','stopPresenting','IUIPartsService','hasOwnProperty','6536GeOZqQ','button','entries','@univerjs/sheets-ui','ONLINE','_sharedOperations','dispose$','toDisposable','pipe','jsx','7147699kAmwVc','OPERATION','_commandService','not-following','parse','ICommandService','evenodd','Fragment','_collabSessionService','717EEboHn','LiveShare','params','BuiltInUIPart','Stop\x20presenting','FOLLOWING','_liveShareService','fill','getOwnPropertyDescriptor','operators','map','@univerjs/sheets','DependentOn','propertyIsEnumerable','12oiXLyS','connectInjector','@univerjs-pro/collaboration-client','merge','react/jsx-runtime','className'];_0x2269=function(){return _0x3f3f88;};return _0x2269();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.7",
3
+ "version": "0.10.8-nightly.202509200616",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,14 +46,14 @@
46
46
  "rxjs": ">=7.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@univerjs/icons": "^0.4.7",
50
- "@univerjs-pro/collaboration": "0.10.7",
51
- "@univerjs-pro/collaboration-client": "0.10.7",
52
- "@univerjs/core": "0.10.7",
53
- "@univerjs/design": "0.10.7",
54
- "@univerjs/sheets": "0.10.7",
55
- "@univerjs/sheets-ui": "0.10.7",
56
- "@univerjs/ui": "0.10.7"
49
+ "@univerjs/icons": "^0.4.8",
50
+ "@univerjs-pro/collaboration": "0.10.8-nightly.202509200616",
51
+ "@univerjs-pro/collaboration-client": "0.10.8-nightly.202509200616",
52
+ "@univerjs/core": "0.10.8-nightly.202509200616",
53
+ "@univerjs/design": "0.10.8-nightly.202509200616",
54
+ "@univerjs/sheets": "0.10.8-nightly.202509200616",
55
+ "@univerjs/sheets-ui": "0.10.8-nightly.202509200616",
56
+ "@univerjs/ui": "0.10.8-nightly.202509200616"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^5.9.2",
64
64
  "vite": "^7.1.3",
65
65
  "vitest": "^3.2.4",
66
- "@univerjs/protocol": "0.1.47-alpha.0",
67
- "@univerjs-infra/shared": "0.10.7"
66
+ "@univerjs-infra/shared": "0.10.8",
67
+ "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {
70
70
  "test": "vitest run",