@univerjs-pro/live-share 0.9.4-nightly.202507290757 → 0.10.0-nightly.202507310307
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x4ede74=_0x5890;(function(_0x533d1,_0xaa5f1){var _0x2248cf=_0x5890,_0x17e376=_0x533d1();while(!![]){try{var _0x2ff006=-parseInt(_0x2248cf(0x1ee))/0x1+-parseInt(_0x2248cf(0x241))/0x2+parseInt(_0x2248cf(0x202))/0x3+parseInt(_0x2248cf(0x1d3))/0x4+parseInt(_0x2248cf(0x1db))/0x5*(-parseInt(_0x2248cf(0x243))/0x6)+parseInt(_0x2248cf(0x26c))/0x7+parseInt(_0x2248cf(0x1e5))/0x8*(-parseInt(_0x2248cf(0x24e))/0x9);if(_0x2ff006===_0xaa5f1)break;else _0x17e376['push'](_0x17e376['shift']());}catch(_0x33c8db){_0x17e376['push'](_0x17e376['shift']());}}}(_0x46ef,0x92de5));var U=Object[_0x4ede74(0x1f9)],F=(_0x4cd7a1,_0x4bc64c,_0x55a10d)=>_0x4bc64c in _0x4cd7a1?U(_0x4cd7a1,_0x4bc64c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55a10d}):_0x4cd7a1[_0x4bc64c]=_0x55a10d,v=(_0x2dfc0c,_0x22286d,_0x2a15ec)=>F(_0x2dfc0c,typeof _0x22286d!='symbol'?_0x22286d+'':_0x22286d,_0x2a15ec);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4ede74(0x1d4)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x4ede74(0x278),x={};class O extends o['Disposable']{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x26cc8a){var _0x274150=_0x4ede74;return this[_0x274150(0x1b9)][_0x274150(0x255)](_0x26cc8a),o['toDisposable'](()=>this[_0x274150(0x1b9)][_0x274150(0x1a5)](_0x26cc8a));}[_0x4ede74(0x1bd)](_0x26999d){var _0x38ce0a=_0x4ede74;return this[_0x38ce0a(0x1cf)]['add'](_0x26999d),o['toDisposable'](()=>this[_0x38ce0a(0x1cf)][_0x38ce0a(0x1a5)](_0x26999d));}['shouldShareOperation'](_0x21b2b0){var _0x516db5=_0x4ede74;return this[_0x516db5(0x1b9)][_0x516db5(0x1bf)](_0x21b2b0);}[_0x4ede74(0x231)](_0x5bd9bf){var _0x3545d6=_0x4ede74;return Array['from'](this[_0x3545d6(0x1cf)])[_0x3545d6(0x23e)](_0xed2bf4=>_0xed2bf4(_0x5bd9bf));}}var H=Object[_0x4ede74(0x27a)],V=(_0x3682f1,_0x380a4f,_0x23741c,_0x573fac)=>{var _0x530868=_0x4ede74;for(var _0x13a513=_0x573fac>0x1?void 0x0:_0x573fac?H(_0x380a4f,_0x23741c):_0x380a4f,_0x2b7e9b=_0x3682f1[_0x530868(0x1a2)]-0x1,_0x5f51d9;_0x2b7e9b>=0x0;_0x2b7e9b--)(_0x5f51d9=_0x3682f1[_0x2b7e9b])&&(_0x13a513=_0x5f51d9(_0x13a513)||_0x13a513);return _0x13a513;},k=(_0x4ef7ad,_0x440022)=>(_0x42d678,_0x51c432)=>_0x440022(_0x42d678,_0x51c432,_0x4ef7ad);let E=class extends o[_0x4ede74(0x1af)]{constructor(_0x289602){var _0x386f3b=_0x4ede74;super(),this[_0x386f3b(0x209)]=_0x289602,this[_0x386f3b(0x272)]();}['_init'](){var _0xe4e60b=_0x4ede74;[w[_0xe4e60b(0x1ce)]['id'],w['SetScrollOperation']['id'],C[_0xe4e60b(0x276)]['id']][_0xe4e60b(0x219)](_0x386d95=>{var _0x21074e=_0xe4e60b;this['disposeWithMe'](this[_0x21074e(0x209)][_0x21074e(0x1f5)](_0x386d95));});}};E=V([k(0x0,o[_0x4ede74(0x1e4)](O))],E);var u=function(){var _0x55e0b7=_0x4ede74;return u=Object[_0x55e0b7(0x23f)]||function(_0x50e35f){var _0x478a5c=_0x55e0b7;for(var _0x3836d6,_0x3150e4=0x1,_0x3bcd67=arguments['length'];_0x3150e4<_0x3bcd67;_0x3150e4++){_0x3836d6=arguments[_0x3150e4];for(var _0x58e32e in _0x3836d6)Object['prototype'][_0x478a5c(0x256)]['call'](_0x3836d6,_0x58e32e)&&(_0x50e35f[_0x58e32e]=_0x3836d6[_0x58e32e]);}return _0x50e35f;},u[_0x55e0b7(0x270)](this,arguments);},M=function(_0x38cebd,_0x196b5e){var _0x56058b=_0x4ede74,_0xa8878f={};for(var _0x48dfa2 in _0x38cebd)Object[_0x56058b(0x1d9)][_0x56058b(0x256)][_0x56058b(0x244)](_0x38cebd,_0x48dfa2)&&_0x196b5e[_0x56058b(0x215)](_0x48dfa2)<0x0&&(_0xa8878f[_0x48dfa2]=_0x38cebd[_0x48dfa2]);if(_0x38cebd!=null&&typeof Object[_0x56058b(0x25a)]=='function'){for(var _0x2dc32a=0x0,_0x48dfa2=Object['getOwnPropertySymbols'](_0x38cebd);_0x2dc32a<_0x48dfa2[_0x56058b(0x1a2)];_0x2dc32a++)_0x196b5e[_0x56058b(0x215)](_0x48dfa2[_0x2dc32a])<0x0&&Object[_0x56058b(0x1d9)]['propertyIsEnumerable']['call'](_0x38cebd,_0x48dfa2[_0x2dc32a])&&(_0xa8878f[_0x48dfa2[_0x2dc32a]]=_0x38cebd[_0x48dfa2[_0x2dc32a]]);}return _0xa8878f;},j=f[_0x4ede74(0x1dd)](function(_0x6aaf60,_0x387486){var _0x2d2563=_0x4ede74,_0x1611ba=_0x6aaf60['icon'],_0x21b17a=_0x6aaf60['id'],_0xef0534=_0x6aaf60[_0x2d2563(0x208)],_0xc1eb9d=_0x6aaf60[_0x2d2563(0x23b)],_0xf76a6e=M(_0x6aaf60,[_0x2d2563(0x1c6),'id','className',_0x2d2563(0x23b)]),_0x1ad59f=_0x2d2563(0x203)[_0x2d2563(0x20e)](_0x21b17a,'\x20')['concat'](_0xef0534||'')['trim'](),_0xd64903=f[_0x2d2563(0x200)]('_'['concat'](G()));return y(_0x1611ba,''[_0x2d2563(0x20e)](_0x21b17a),{'defIds':_0x1611ba[_0x2d2563(0x223)],'idSuffix':_0xd64903[_0x2d2563(0x211)]},u({'ref':_0x387486,'className':_0x1ad59f},_0xf76a6e),_0xc1eb9d);});function y(_0x3b2f02,_0x318785,_0x42e3e4,_0x40e1ea,_0x4f07ba){var _0x355237=_0x4ede74;return f[_0x355237(0x254)](_0x3b2f02['tag'],u(u({'key':_0x318785},q(_0x3b2f02,_0x42e3e4,_0x4f07ba)),_0x40e1ea),(W(_0x3b2f02,_0x42e3e4)[_0x355237(0x1bb)]||[])[_0x355237(0x23e)](function(_0x1f9d9e,_0x8b7f20){var _0x22d053=_0x355237;return y(_0x1f9d9e,''['concat'](_0x318785,'-')[_0x22d053(0x20e)](_0x3b2f02[_0x22d053(0x1c2)],'-')['concat'](_0x8b7f20),_0x42e3e4,void 0x0,_0x4f07ba);}));}function q(_0x2f4181,_0xf921e1,_0x234fd7){var _0x5d5a5a=_0x4ede74,_0x3a8d63=u({},_0x2f4181[_0x5d5a5a(0x1fe)]);_0x234fd7!=null&&_0x234fd7[_0x5d5a5a(0x1fa)]&&_0x3a8d63[_0x5d5a5a(0x24f)]===_0x5d5a5a(0x1fa)&&(_0x3a8d63[_0x5d5a5a(0x24f)]=_0x234fd7[_0x5d5a5a(0x1fa)]),_0x2f4181[_0x5d5a5a(0x1c2)]==='mask'&&_0x3a8d63['id']&&(_0x3a8d63['id']=_0x3a8d63['id']+_0xf921e1[_0x5d5a5a(0x1a1)]),Object['entries'](_0x3a8d63)['forEach'](function(_0x564124){var _0x239db8=_0x5d5a5a,_0x36d36b=_0x564124[0x0],_0x3f6c6d=_0x564124[0x1];_0x36d36b===_0x239db8(0x22e)&&typeof _0x3f6c6d==_0x239db8(0x226)&&(_0x3a8d63[_0x36d36b]=_0x3f6c6d['replace'](/url\(#(.*)\)/,_0x239db8(0x1cb)['concat'](_0xf921e1[_0x239db8(0x1a1)],')')));});var _0x1524f3=_0xf921e1['defIds'];return!_0x1524f3||_0x1524f3[_0x5d5a5a(0x1a2)]===0x0||(_0x2f4181[_0x5d5a5a(0x1c2)]==='use'&&_0x3a8d63['xlink:href']&&(_0x3a8d63[_0x5d5a5a(0x1f7)]=_0x3a8d63['xlink:href']+_0xf921e1[_0x5d5a5a(0x1a1)]),Object[_0x5d5a5a(0x1c7)](_0x3a8d63)[_0x5d5a5a(0x219)](function(_0xe48586){var _0x5eb3ef=_0x5d5a5a,_0x477054=_0xe48586[0x0],_0x3beb4c=_0xe48586[0x1];typeof _0x3beb4c==_0x5eb3ef(0x226)&&(_0x3a8d63[_0x477054]=_0x3beb4c['replace'](/url\(#(.*)\)/,_0x5eb3ef(0x1cb)[_0x5eb3ef(0x20e)](_0xf921e1[_0x5eb3ef(0x1a1)],')')));})),_0x3a8d63;}function W(_0x28269f,_0x5f3aa1){var _0x422293=_0x4ede74,_0x278edc,_0x4c4cbf=_0x5f3aa1['defIds'];return!_0x4c4cbf||_0x4c4cbf[_0x422293(0x1a2)]===0x0?_0x28269f:_0x28269f[_0x422293(0x1c2)]===_0x422293(0x1c4)&&(!((_0x278edc=_0x28269f[_0x422293(0x1bb)])===null||_0x278edc===void 0x0)&&_0x278edc[_0x422293(0x1a2)])?u(u({},_0x28269f),{'children':_0x28269f[_0x422293(0x1bb)][_0x422293(0x23e)](function(_0x29b422){var _0x440b2d=_0x422293;return typeof _0x29b422[_0x440b2d(0x1fe)]['id']==_0x440b2d(0x226)&&_0x4c4cbf&&_0x4c4cbf['includes'](_0x29b422[_0x440b2d(0x1fe)]['id'])?u(u({},_0x29b422),{'attrs':u(u({},_0x29b422[_0x440b2d(0x1fe)]),{'id':_0x29b422[_0x440b2d(0x1fe)]['id']+_0x5f3aa1['idSuffix']})}):_0x29b422;})}):_0x28269f;}function G(){var _0xce7d9=_0x4ede74;return Math[_0xce7d9(0x1a8)]()['toString'](0x24)[_0xce7d9(0x1ad)](0x2,0x8);}j[_0x4ede74(0x22d)]=_0x4ede74(0x273);var B={'tag':_0x4ede74(0x221),'attrs':{'xmlns':_0x4ede74(0x265),'fill':'none','viewBox':_0x4ede74(0x1d8),'width':_0x4ede74(0x1ea),'height':_0x4ede74(0x1ea)},'children':[{'tag':'path','attrs':{'fill':_0x4ede74(0x1c3),'d':_0x4ede74(0x23c)}},{'tag':_0x4ede74(0x228),'attrs':{'fill':_0x4ede74(0x1c3),'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':_0x4ede74(0x1bc),'clipRule':_0x4ede74(0x1bc)}}]},P=f['forwardRef'](function(_0x584479,_0x36939b){var _0x2f6a99=_0x4ede74;return f[_0x2f6a99(0x254)](j,Object[_0x2f6a99(0x23f)]({},_0x584479,{'id':_0x2f6a99(0x26e),'ref':_0x36939b,'icon':B}));});P[_0x4ede74(0x22d)]='LiveShareIcon';var Y=Object[_0x4ede74(0x27a)],R=(_0x1750b8,_0x3432df,_0x57105f,_0x5a60c8)=>{var _0x192739=_0x4ede74;for(var _0x4d858a=_0x5a60c8>0x1?void 0x0:_0x5a60c8?Y(_0x3432df,_0x57105f):_0x3432df,_0x2e7db0=_0x1750b8[_0x192739(0x1a2)]-0x1,_0x4c1697;_0x2e7db0>=0x0;_0x2e7db0--)(_0x4c1697=_0x1750b8[_0x2e7db0])&&(_0x4d858a=_0x4c1697(_0x4d858a)||_0x4d858a);return _0x4d858a;},S=(_0x331527,_0x25b4ca)=>(_0x3e7255,_0x1ea7e3)=>_0x25b4ca(_0x3e7255,_0x1ea7e3,_0x331527);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x49621a,_0x1e3bb3,_0x3c7086){var _0x5d3966=_0x4ede74;super(),v(this,_0x5d3966(0x1f3),new Map()),(this[_0x5d3966(0x260)]=_0x49621a,this['_injector']=_0x1e3bb3,this[_0x5d3966(0x1d1)]=_0x3c7086,this[_0x5d3966(0x272)]());}async['getLiveShareCoordinator'](_0x582fca){var _0x20ee72=_0x4ede74;return this[_0x20ee72(0x1f3)][_0x20ee72(0x1bf)](_0x582fca)||await this['_startLiveShareCoordinator'](_0x582fca),this['_entities'][_0x20ee72(0x250)](_0x582fca);}[_0x4ede74(0x272)](){var _0x36a27d=_0x4ede74;this[_0x36a27d(0x260)][_0x36a27d(0x251)](o['UniverInstanceType'][_0x36a27d(0x259)])[_0x36a27d(0x26d)](b['takeUntil'](this[_0x36a27d(0x1b5)]))[_0x36a27d(0x1e6)](async _0xbe34c6=>{var _0x52f1bc=_0x36a27d;const _0x125d97=_0xbe34c6[_0x52f1bc(0x1f6)]();this[_0x52f1bc(0x1f3)][_0x52f1bc(0x1bf)](_0x125d97)||this[_0x52f1bc(0x23a)](_0x125d97);}),this[_0x36a27d(0x260)]['getTypeOfUnitDisposed$'](o[_0x36a27d(0x1dc)][_0x36a27d(0x259)])['pipe'](b[_0x36a27d(0x1e7)](this[_0x36a27d(0x1b5)]))['subscribe'](_0x130927=>{var _0x2da569=_0x36a27d;const _0x30ac16=_0x130927['getUnitId'](),_0x5189ab=this[_0x2da569(0x1f3)]['get'](_0x30ac16);_0x5189ab==null||_0x5189ab[_0x2da569(0x258)]();});}async[_0x4ede74(0x23a)](_0x53b383){var _0x2540df=_0x4ede74;const _0xce7d7c=await this[_0x2540df(0x1d1)][_0x2540df(0x1c1)](_0x53b383),_0x4a3173=this['_injector'][_0x2540df(0x24a)](exports[_0x2540df(0x201)],_0x53b383,_0xce7d7c);return _0x4a3173[_0x2540df(0x1be)](),this[_0x2540df(0x1f3)][_0x2540df(0x21e)](_0x53b383,_0x4a3173),_0x4a3173;}},exports[_0x4ede74(0x22a)]=R([S(0x0,o[_0x4ede74(0x1d6)]),S(0x1,o[_0x4ede74(0x1e4)](o[_0x4ede74(0x248)])),S(0x2,o[_0x4ede74(0x1e4)](m[_0x4ede74(0x207)]))],exports['LiveShareController']);var h=(_0x5db1ba=>(_0x5db1ba[_0x4ede74(0x1a3)]=_0x4ede74(0x274),_0x5db1ba[_0x4ede74(0x1a4)]=_0x4ede74(0x21b),_0x5db1ba['FOLLOWING']=_0x4ede74(0x1ac),_0x5db1ba[_0x4ede74(0x236)]=_0x4ede74(0x1fc),_0x5db1ba[_0x4ede74(0x252)]='presenting',_0x5db1ba))(h||{});const Z=_0x4ede74(0x1e3),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x4ede74(0x20a)]{constructor(_0x490af7,_0x3932a7,_0x17b2bc,_0x5eae9b,_0x2da737){var _0x1926bb=_0x4ede74;super(),v(this,_0x1926bb(0x214),new D[(_0x1926bb(0x23d))](_0x1926bb(0x21b))),v(this,_0x1926bb(0x1b6),this[_0x1926bb(0x214)][_0x1926bb(0x277)]()),v(this,_0x1926bb(0x272),!0x1),v(this,_0x1926bb(0x268),null),v(this,'_presenter',null),(this[_0x1926bb(0x25c)]=_0x490af7,this[_0x1926bb(0x216)]=_0x3932a7,this[_0x1926bb(0x27b)]=_0x17b2bc,this[_0x1926bb(0x209)]=_0x5eae9b,this[_0x1926bb(0x1d2)]=_0x2da737);}get[_0x4ede74(0x20b)](){var _0x298e8b=_0x4ede74;return this[_0x298e8b(0x214)][_0x298e8b(0x245)]();}['dispose'](){var _0x354e3b=_0x4ede74,_0x4ae585;(_0x4ae585=this[_0x354e3b(0x268)])==null||_0x4ae585[_0x354e3b(0x258)](),this[_0x354e3b(0x214)][_0x354e3b(0x275)](_0x354e3b(0x21b)),this[_0x354e3b(0x214)][_0x354e3b(0x1f2)]();}[_0x4ede74(0x1be)](){var _0x16034d=_0x4ede74;this[_0x16034d(0x272)]||(this['_init']=!0x0,this[_0x16034d(0x216)]['sessionStatus$'][_0x16034d(0x26d)](b['takeUntil'](this[_0x16034d(0x1b5)]))['subscribe'](_0x35016d=>{var _0x30b0be=_0x16034d;switch(_0x35016d){case m[_0x30b0be(0x225)][_0x30b0be(0x1a3)]:this[_0x30b0be(0x1ef)]();break;case m[_0x30b0be(0x225)][_0x30b0be(0x1ca)]:this[_0x30b0be(0x1ab)]();break;}}),this['_collabSession'][_0x16034d(0x24c)]['pipe'](b[_0x16034d(0x1e7)](this[_0x16034d(0x1b5)]))['subscribe'](_0x22dd43=>{var _0x18f1d8=_0x16034d;const {eventID:_0x4a1479}=_0x22dd43;switch(_0x4a1479){case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x269)]:this[_0x18f1d8(0x26a)](_0x22dd43);break;case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x1ba)]:this[_0x18f1d8(0x20c)](_0x22dd43);break;case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x235)]:this[_0x18f1d8(0x217)]();break;case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x240)]:this[_0x18f1d8(0x227)](_0x22dd43);break;}}));}[_0x4ede74(0x1f8)](){var _0x5cf273=_0x4ede74;this[_0x5cf273(0x216)]['send']({'eventID':_['CollaborationEvent'][_0x5cf273(0x230)],'data':{'unitID':this['_unitID'],'userID':this[_0x5cf273(0x216)][_0x5cf273(0x20d)]()}},this[_0x5cf273(0x25c)]);}[_0x4ede74(0x21c)](){var _0x1112a5=_0x4ede74;this[_0x1112a5(0x20b)]===_0x1112a5(0x1ed)&&(this[_0x1112a5(0x214)][_0x1112a5(0x275)](_0x1112a5(0x21b)),this[_0x1112a5(0x216)][_0x1112a5(0x1a7)]({'eventID':_[_0x1112a5(0x1e1)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1112a5(0x25c)]}},this[_0x1112a5(0x25c)]));}[_0x4ede74(0x1fd)](){var _0x4f6614=_0x4ede74;this[_0x4f6614(0x20b)]===_0x4f6614(0x1fc)&&(this['_status$'][_0x4f6614(0x275)](_0x4f6614(0x1ac)),this[_0x4f6614(0x1b1)]());}[_0x4ede74(0x1df)](){var _0x19eb3d=_0x4ede74;this[_0x19eb3d(0x20b)]===_0x19eb3d(0x1ac)&&this['_stopFollowing']();}[_0x4ede74(0x26a)](_0x1f4829){var _0x4b8041=_0x4ede74;const {presenter:_0x760213}=_0x1f4829[_0x4b8041(0x233)],_0x41602e=this['_collabSession'][_0x4b8041(0x20d)]();this[_0x4b8041(0x25b)]=_0x760213,_0x760213===_0x41602e?(this[_0x4b8041(0x279)](),this[_0x4b8041(0x246)]()):this[_0x4b8041(0x20b)]!==_0x4b8041(0x1fc)&&(this[_0x4b8041(0x1a6)](),this[_0x4b8041(0x1b1)]());}['_fetchOperations'](){var _0x1700da=_0x4ede74;const _0x40c9a6={'eventID':_['CollaborationEvent'][_0x1700da(0x205)]};this['_collabSession'][_0x1700da(0x1a7)](_0x40c9a6,this[_0x1700da(0x25c)]);}[_0x4ede74(0x217)](){var _0x48f135=_0x4ede74;this[_0x48f135(0x25b)]=null,this[_0x48f135(0x20b)]!==_0x48f135(0x1ed)&&this[_0x48f135(0x212)]();}['_handleNewChangeSets'](_0x8b903b){var _0x31df4a=_0x4ede74;if(this[_0x31df4a(0x20b)]===_0x31df4a(0x1ac)&&this['_presenter']===_0x8b903b[_0x31df4a(0x233)][_0x31df4a(0x1c9)]){const _0x1ecc91=_[_0x31df4a(0x21f)](_0x8b903b[_0x31df4a(0x233)])['mutations']['reverse']()['find'](_0x39619d=>_0x39619d['id']===C[_0x31df4a(0x1aa)]['id']);if(_0x1ecc91){const _0x309296=_0x1ecc91[_0x31df4a(0x271)][_0x31df4a(0x249)],_0x41c20f=_0x1ecc91[_0x31df4a(0x271)]['sheet']['id'];setTimeout(()=>{var _0x5c88d8=_0x31df4a;this[_0x5c88d8(0x1d2)]['executeCommand'](C[_0x5c88d8(0x276)]['id'],{'unitId':_0x309296,'subUnitId':_0x41c20f},{'fromCollab':!0x0});});}}}[_0x4ede74(0x246)](){var _0x29ac05=_0x4ede74;this[_0x29ac05(0x214)][_0x29ac05(0x275)](_0x29ac05(0x1ed));const _0xf7371f=new Map(),_0x3a8732=this['_commandDisposable']=new o[(_0x29ac05(0x218))]();_0x3a8732[_0x29ac05(0x255)](o[_0x29ac05(0x232)](()=>{var _0x5d5e0f=_0x29ac05;_0xf7371f[_0x5d5e0f(0x219)](_0x426bb3=>_0x426bb3[_0x5d5e0f(0x1f2)]()),_0xf7371f[_0x5d5e0f(0x22c)]();})),_0x3a8732[_0x29ac05(0x255)](this['_commandService'][_0x29ac05(0x222)](_0x265a4d=>{var _0x385704=_0x29ac05,_0x558019;if(_0x265a4d[_0x385704(0x1eb)]!==o[_0x385704(0x210)]['OPERATION']||!this['_liveShareService'][_0x385704(0x229)](_0x265a4d['id']))return;const {id:_0x4f0320}=_0x265a4d;let _0x135be9;_0xf7371f[_0x385704(0x1bf)](_0x4f0320)?_0x135be9=_0xf7371f['get'](_0x4f0320):(_0x135be9=new D[(_0x385704(0x1b7))](),_0xf7371f[_0x385704(0x21e)](_0x4f0320,_0x135be9),_0x135be9[_0x385704(0x26d)](b['throttleTime']((_0x558019=this[_0x385704(0x27b)]['getConfig'](Z))!=null?_0x558019:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x385704(0x1e6)](_0x20220a=>{var _0x1a86bf=_0x385704;this[_0x1a86bf(0x216)][_0x1a86bf(0x1a7)]({'eventID':_[_0x1a86bf(0x1e1)][_0x1a86bf(0x1ba)],'data':{'unitID':this[_0x1a86bf(0x25c)],'operations':{[_0x20220a['id']]:{'id':_0x20220a['id'],'params':JSON[_0x1a86bf(0x1e2)](_0x20220a[_0x1a86bf(0x271)])}}}},this[_0x1a86bf(0x25c)]);})),_0x135be9[_0x385704(0x275)](_0x265a4d);})),this[_0x29ac05(0x209)][_0x29ac05(0x231)](this['_unitID'])[_0x29ac05(0x219)](_0x46a408=>this[_0x29ac05(0x216)][_0x29ac05(0x1a7)]({'eventID':_[_0x29ac05(0x1e1)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x29ac05(0x25c)],'operations':{[_0x46a408['id']]:{'id':_0x46a408['id'],'params':JSON[_0x29ac05(0x1e2)](_0x46a408[_0x29ac05(0x271)])}}}},this[_0x29ac05(0x25c)]));}[_0x4ede74(0x1a6)](){var _0x562257=_0x4ede74,_0x565120;this['_status$'][_0x562257(0x275)](_0x562257(0x21b)),(_0x565120=this['_commandDisposable'])==null||_0x565120[_0x562257(0x258)](),this['_commandDisposable']=null;}[_0x4ede74(0x1b1)](){var _0x1b9f41=_0x4ede74,_0x171ec6;(_0x171ec6=this[_0x1b9f41(0x268)])==null||_0x171ec6['dispose'](),this[_0x1b9f41(0x214)][_0x1b9f41(0x275)](_0x1b9f41(0x1ac));}[_0x4ede74(0x212)](){var _0xd8973e=_0x4ede74,_0x2edaa4;this['_status$'][_0xd8973e(0x275)]('idle'),(_0x2edaa4=this['_commandDisposable'])==null||_0x2edaa4[_0xd8973e(0x258)](),this[_0xd8973e(0x268)]=null;}[_0x4ede74(0x279)](){var _0x1271bf=_0x4ede74,_0x47ead9;this[_0x1271bf(0x214)][_0x1271bf(0x275)](_0x1271bf(0x1fc)),(_0x47ead9=this[_0x1271bf(0x268)])==null||_0x47ead9[_0x1271bf(0x258)]();}[_0x4ede74(0x20c)](_0x5f269e){var _0x3e3ee1=_0x4ede74;if(['presenting',_0x3e3ee1(0x1fc),_0x3e3ee1(0x274)][_0x3e3ee1(0x1b4)](this[_0x3e3ee1(0x20b)])||!_0x5f269e[_0x3e3ee1(0x233)][_0x3e3ee1(0x1de)]||_0x5f269e['data']['presenter']===this[_0x3e3ee1(0x216)][_0x3e3ee1(0x20d)]())return;this[_0x3e3ee1(0x20b)]===_0x3e3ee1(0x21b)&&this['_startFollowing']();const _0x2aa515=_0x5f269e[_0x3e3ee1(0x233)]['operations'];Object[_0x3e3ee1(0x220)](_0x2aa515)['forEach'](_0x2e0666=>{var _0x3a1724=_0x3e3ee1;this['_commandService'][_0x3a1724(0x1f4)](_0x2e0666['id'],_0x2e0666[_0x3a1724(0x271)]?JSON[_0x3a1724(0x1b0)](_0x2e0666[_0x3a1724(0x271)]):null,{'fromCollab':!0x0});});}[_0x4ede74(0x1ef)](){var _0x1efac8=_0x4ede74,_0x24108c;this[_0x1efac8(0x214)][_0x1efac8(0x275)]('offline'),(_0x24108c=this[_0x1efac8(0x268)])==null||_0x24108c['dispose']();}[_0x4ede74(0x1ab)](){var _0x4aebb1=_0x4ede74;this[_0x4aebb1(0x214)]['next'](_0x4aebb1(0x21b)),this['_fetchOperations']();}},exports[_0x4ede74(0x201)]=R([S(0x2,o[_0x4ede74(0x1ec)]),S(0x3,o[_0x4ede74(0x1e4)](O)),S(0x4,o['ICommandService'])],exports[_0x4ede74(0x201)]);function _0x46ef(){var _0x167827=['LIVESHARE_OPERATION','children','evenodd','registerInitialStateReporter','init','has','UNIVER_UNKNOWN','requireSession','tag','currentColor','defs','BuiltInUIPart','icon','entries','DesktopLiveShareController','memberID','ONLINE','url(#$1','_config','getLiveShareCoordinator','SetZoomRatioOperation','_reporters','connectInjector','_collabSessionService','_commandService','3693852gXzzeE','Module','registerComponent','IUniverInstanceService','LiveShare','0\x200\x2017\x2017','prototype','touchDependencies','78310JHycrl','UniverInstanceType','forwardRef','presenter','stopFollowing','IUIPartsService','CollaborationEvent','stringify','SAME_OPERATION_SHARE_INTERVAL','Inject','8968mrTxeX','subscribe','takeUntil','HEADER_MENU','jsxs','1em','type','IConfigService','presenting','456721GDgIur','_handleOffline','LiveShareStatus','useState','complete','_entities','executeCommand','registerSharedOperation','getUnitId','xlink:href','tryStartPresenting','defineProperty','colorChannel1','end','not-following','startFollowing','attrs','clsx','useRef','LiveShareCoordinator','2474427nTettY','univerjs-icon\x20univerjs-icon-','pluginName','LIVESHARE_FETCH_OPERATIONS','Present\x20this\x20document','CollaborationSessionService','className','_liveShareService','RxDisposable','_status','_handleOperation','getMemberID','concat','_mountLiveShare','CommandType','current','_beIdle','Fragment','_status$','indexOf','_collabSession','_handleTerminate','DisposableCollection','forEach','default','idle','stopPresenting','setConfig','set','parseProtocolChangeset','values','svg','onCommandExecuted','defIds','text','SessionStatus','string','_handleNewChangeSets','path','shouldShareOperation','LiveShareController','useDependency','clear','displayName','mask','onStarting','LIVESHARE_REQUEST_HOST','getInitialStates','toDisposable','data','mergeOverrideWithDependencies','LIVESHARE_TERMINATE','NOT_FOLLOWING','Dropdown','registerDependencies','useObservable','_startLiveShareCoordinator','extend','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','BehaviorSubject','map','assign','NEW_CHANGESETS','2227062mdRRTs','Stop\x20presenting','54rafABR','call','getValue','_startPresenting','UniverLiveSharePlugin','Injector','unitId','createInstance','DependentOn','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','531EODFUk','fill','get','getTypeOfUnitAdded$','PRESENTING','Plugin','createElement','add','hasOwnProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose','UNIVER_SHEET','getOwnPropertySymbols','_presenter','_unitID','UNIVER_LIVE_SHARE_PLUGIN','unsubscribe','getCurrentTypeOfUnit$','_univerInstanceService','Button','UniverCollaborationClientPlugin','div','You\x27re\x20following\x20the\x20presenter','http://www.w3.org/2000/svg','override','Start','_commandDisposable','LIVESHARE_NEW_HOST','_handleNewHost','button','4414550csfXJu','pipe','live-share-icon','You\x27re\x20presenting\x20the\x20document','apply','params','_init','UniverIcon','offline','next','SetWorksheetActiveOperation','asObservable','live-share.config','_stopFollowing','getOwnPropertyDescriptor','_configService','idSuffix','length','OFFLINE','IDLE','delete','_stopPresenting','send','random','merge','InsertSheetMutation','_handleOnline','following','substring','jsx','Disposable','parse','_startFollowing','useEffect','_uiPartsService','includes','dispose$','status$','Subject','_injector','_sharedOperations'];_0x46ef=function(){return _0x167827;};return _0x46ef();}function _0x5890(_0x791344,_0x4df684){var _0x46efda=_0x46ef();return _0x5890=function(_0x58901b,_0x2d8d52){_0x58901b=_0x58901b-0x1a1;var _0x3b5b2e=_0x46efda[_0x58901b];return _0x3b5b2e;},_0x5890(_0x791344,_0x4df684);}function A(){var _0x2b43ae=_0x4ede74;const _0x1ebf21=p['useDependency'](exports[_0x2b43ae(0x22a)]),_0x4e5bc1=p[_0x2b43ae(0x22b)](o['IUniverInstanceService']),_0x5f2a05=p[_0x2b43ae(0x239)](()=>_0x4e5bc1[_0x2b43ae(0x25f)](o[_0x2b43ae(0x1dc)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x41cbc6,_0x4b061f]=f[_0x2b43ae(0x1f1)](null),[_0x1b7a95,_0x2e67b2]=f[_0x2b43ae(0x1f1)](h['IDLE']),_0x326504=f[_0x2b43ae(0x200)](null);return f[_0x2b43ae(0x1b2)](()=>(_0x5f2a05&&_0x1ebf21[_0x2b43ae(0x1cd)](_0x5f2a05[_0x2b43ae(0x1f6)]())['then'](_0x57b941=>{var _0x514bae=_0x2b43ae;_0x4b061f(_0x57b941),_0x326504[_0x514bae(0x211)]=_0x57b941[_0x514bae(0x1b6)][_0x514bae(0x1e6)](_0x24f230=>{_0x2e67b2(_0x24f230);});}),()=>{var _0x46ad7c=_0x2b43ae,_0x399812;(_0x399812=_0x326504[_0x46ad7c(0x211)])==null||_0x399812[_0x46ad7c(0x25e)](),_0x326504[_0x46ad7c(0x211)]=null;}),[_0x5f2a05,_0x1ebf21]),_0x41cbc6?l[_0x2b43ae(0x1ae)](g[_0x2b43ae(0x237)],{'align':_0x2b43ae(0x1fb),'disabled':_0x1b7a95===h[_0x2b43ae(0x1a3)],'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':l[_0x2b43ae(0x1ae)](K,{'status':_0x1b7a95,'coordinator':_0x41cbc6}),'children':l['jsx'](_0x2b43ae(0x26b),{'className':g[_0x2b43ae(0x1ff)](_0x2b43ae(0x257),{'univer-cursor-not-allowed':_0x1b7a95===h[_0x2b43ae(0x1a3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1b7a95!==h[_0x2b43ae(0x1a3)]}),'type':'button','children':l[_0x2b43ae(0x1ae)](P,{'className':'univer-size-4'})})}):null;}function K(_0x43e0ed){var _0xdba310=_0x4ede74;const {status:_0x481b09,coordinator:_0x4b32b0}=_0x43e0ed;switch(_0x481b09){case h[_0xdba310(0x1a4)]:return l[_0xdba310(0x1ae)](z,{'coordinator':_0x4b32b0});case h['FOLLOWING']:return l[_0xdba310(0x1ae)](Q,{'coordinator':_0x4b32b0});case h[_0xdba310(0x236)]:return l[_0xdba310(0x1ae)](X,{'coordinator':_0x4b32b0});case h[_0xdba310(0x1a3)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0xdba310(0x1ae)](ee,{'coordinator':_0x4b32b0});default:return null;}}function z(_0x40796d){var _0x2c604c=_0x4ede74;const {coordinator:_0x4119a9}=_0x40796d;return l[_0x2c604c(0x1e9)](l[_0x2c604c(0x213)],{'children':[l[_0x2c604c(0x1ae)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2c604c(0x206)}),l[_0x2c604c(0x1ae)](g['Button'],{'onClick':()=>_0x4119a9[_0x2c604c(0x1f8)](),'children':_0x2c604c(0x267)})]});}function Q(_0x2f99b5){var _0x4c529e=_0x4ede74;const {coordinator:_0x512819}=_0x2f99b5;return l['jsxs'](l[_0x4c529e(0x213)],{'children':[l[_0x4c529e(0x1ae)](_0x4c529e(0x263),{'className':_0x4c529e(0x24d),'children':_0x4c529e(0x264)}),l['jsx'](g[_0x4c529e(0x261)],{'onClick':()=>_0x512819['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x177e1e){var _0x108747=_0x4ede74;const {coordinator:_0x3ef2fa}=_0x177e1e;return l[_0x108747(0x1e9)](l[_0x108747(0x213)],{'children':[l['jsx']('div',{'className':_0x108747(0x24d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x108747(0x1ae)](g[_0x108747(0x261)],{'variant':_0x108747(0x224),'onClick':()=>_0x3ef2fa[_0x108747(0x1fd)](),'children':'Start\x20following'})]});}function ee(_0x9a9287){var _0x3c6884=_0x4ede74;const {coordinator:_0x5846fd}=_0x9a9287;return l[_0x3c6884(0x1e9)](l[_0x3c6884(0x213)],{'children':[l['jsx'](_0x3c6884(0x263),{'className':_0x3c6884(0x24d),'children':_0x3c6884(0x26f)}),l[_0x3c6884(0x1ae)](g[_0x3c6884(0x261)],{'variant':_0x3c6884(0x21a),'onClick':()=>_0x5846fd[_0x3c6884(0x21c)](),'children':_0x3c6884(0x242)})]});}function te(){var _0x291a37=_0x4ede74;return l[_0x291a37(0x1ae)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x4ede74(0x27a)],ne=(_0x139bf3,_0x198df9,_0x15d9cc,_0x32b15e)=>{var _0x2ad402=_0x4ede74;for(var _0x2b1436=_0x32b15e>0x1?void 0x0:_0x32b15e?ie(_0x198df9,_0x15d9cc):_0x198df9,_0x477ed3=_0x139bf3[_0x2ad402(0x1a2)]-0x1,_0x3f4ccc;_0x477ed3>=0x0;_0x477ed3--)(_0x3f4ccc=_0x139bf3[_0x477ed3])&&(_0x2b1436=_0x3f4ccc(_0x2b1436)||_0x2b1436);return _0x2b1436;},L=(_0x10c683,_0x39ab4c)=>(_0x5e3fed,_0x1709f7)=>_0x39ab4c(_0x5e3fed,_0x1709f7,_0x10c683);exports['DesktopLiveShareController']=class extends o[_0x4ede74(0x1af)]{constructor(_0x49fc9d,_0x10cd2e){var _0x2dca20=_0x4ede74;super(),this[_0x2dca20(0x1b8)]=_0x49fc9d,this[_0x2dca20(0x1b3)]=_0x10cd2e,this[_0x2dca20(0x20f)]();}[_0x4ede74(0x20f)](){var _0x141536=_0x4ede74;this['disposeWithMe'](this['_uiPartsService'][_0x141536(0x1d5)](p[_0x141536(0x1c5)][_0x141536(0x1e8)],()=>p[_0x141536(0x1d0)](A,this[_0x141536(0x1b8)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o['Inject'](o[_0x4ede74(0x248)])),L(0x1,p[_0x4ede74(0x1e0)])],exports[_0x4ede74(0x1c8)]);var re=Object[_0x4ede74(0x1f9)],se=Object['getOwnPropertyDescriptor'],oe=(_0x1174fa,_0x4a4fb0,_0x1954e9)=>_0x4a4fb0 in _0x1174fa?re(_0x1174fa,_0x4a4fb0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1954e9}):_0x1174fa[_0x4a4fb0]=_0x1954e9,ae=(_0x1593f7,_0x160be4,_0x3ae9c9,_0x168d68)=>{var _0x5eeb94=_0x4ede74;for(var _0x1a4161=_0x168d68>0x1?void 0x0:_0x168d68?se(_0x160be4,_0x3ae9c9):_0x160be4,_0x800e7c=_0x1593f7[_0x5eeb94(0x1a2)]-0x1,_0x4429e8;_0x800e7c>=0x0;_0x800e7c--)(_0x4429e8=_0x1593f7[_0x800e7c])&&(_0x1a4161=_0x4429e8(_0x1a4161)||_0x1a4161);return _0x1a4161;},N=(_0xba365b,_0x1d1c5a)=>(_0x43b536,_0x63bc20)=>_0x1d1c5a(_0x43b536,_0x63bc20,_0xba365b),T=(_0x2314ee,_0x89b69a,_0x2d730f)=>oe(_0x2314ee,typeof _0x89b69a!='symbol'?_0x89b69a+'':_0x89b69a,_0x2d730f);const le=_0x4ede74(0x25d);exports[_0x4ede74(0x247)]=class extends o[_0x4ede74(0x253)]{constructor(_0x5b1476=x,_0x39cf1c,_0xe502db){var _0x1f0dad=_0x4ede74;super(),this['_config']=_0x5b1476,this[_0x1f0dad(0x1b8)]=_0x39cf1c,this[_0x1f0dad(0x27b)]=_0xe502db;const {..._0x6ecb5f}=o[_0x1f0dad(0x1a9)]({},x,this[_0x1f0dad(0x1cc)]);this['_configService'][_0x1f0dad(0x21d)]($,_0x6ecb5f);}[_0x4ede74(0x22f)](){var _0x472f6e=_0x4ede74;o[_0x472f6e(0x238)](this['_injector'],o[_0x472f6e(0x234)]([[O],[exports[_0x472f6e(0x22a)]],[E],[exports[_0x472f6e(0x1c8)]]],this[_0x472f6e(0x1cc)][_0x472f6e(0x266)])),o[_0x472f6e(0x1da)](this[_0x472f6e(0x1b8)],[[E]]);}['onRendered'](){var _0x25925c=_0x4ede74;o[_0x25925c(0x1da)](this[_0x25925c(0x1b8)],[[exports[_0x25925c(0x1c8)]]]);}},T(exports[_0x4ede74(0x247)],'type',o['UniverInstanceType'][_0x4ede74(0x1c0)]),T(exports[_0x4ede74(0x247)],_0x4ede74(0x204),le),exports['UniverLiveSharePlugin']=ae([o[_0x4ede74(0x24b)](m[_0x4ede74(0x262)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x4ede74(0x1ec)])],exports[_0x4ede74(0x247)]),exports[_0x4ede74(0x1d7)]=A,exports['LiveShareService']=O,exports[_0x4ede74(0x1f0)]=h;
|
|
1
|
+
'use strict';var _0x4beac9=_0x348d;(function(_0x223bc6,_0x308307){var _0x32a875=_0x348d,_0x4b20d4=_0x223bc6();while(!![]){try{var _0x29ae71=parseInt(_0x32a875(0x249))/0x1*(-parseInt(_0x32a875(0x271))/0x2)+-parseInt(_0x32a875(0x22e))/0x3+parseInt(_0x32a875(0x234))/0x4+-parseInt(_0x32a875(0x1ba))/0x5+-parseInt(_0x32a875(0x1e6))/0x6*(-parseInt(_0x32a875(0x1f6))/0x7)+parseInt(_0x32a875(0x1d7))/0x8*(parseInt(_0x32a875(0x259))/0x9)+parseInt(_0x32a875(0x229))/0xa*(parseInt(_0x32a875(0x21e))/0xb);if(_0x29ae71===_0x308307)break;else _0x4b20d4['push'](_0x4b20d4['shift']());}catch(_0x2fe864){_0x4b20d4['push'](_0x4b20d4['shift']());}}}(_0x59a8,0x2142b));var U=Object[_0x4beac9(0x213)],F=(_0x47c449,_0x16cc9a,_0x3124c0)=>_0x16cc9a in _0x47c449?U(_0x47c449,_0x16cc9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3124c0}):_0x47c449[_0x16cc9a]=_0x3124c0,v=(_0x11a127,_0x464061,_0x3fc39c)=>F(_0x11a127,typeof _0x464061!=_0x4beac9(0x1f7)?_0x464061+'':_0x464061,_0x3fc39c);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4beac9(0x1c1)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x4beac9(0x244),x={};class O extends o[_0x4beac9(0x239)]{constructor(){var _0x51b265=_0x4beac9;super(...arguments),v(this,_0x51b265(0x1f2),new Set()),v(this,'_reporters',new Set());}[_0x4beac9(0x276)](_0x4c35ad){var _0x352866=_0x4beac9;return this[_0x352866(0x1f2)]['add'](_0x4c35ad),o['toDisposable'](()=>this[_0x352866(0x1f2)][_0x352866(0x24a)](_0x4c35ad));}[_0x4beac9(0x1e4)](_0x3f8442){var _0x2d81a6=_0x4beac9;return this[_0x2d81a6(0x242)][_0x2d81a6(0x1d5)](_0x3f8442),o['toDisposable'](()=>this[_0x2d81a6(0x242)][_0x2d81a6(0x24a)](_0x3f8442));}['shouldShareOperation'](_0x5dbf2d){return this['_sharedOperations']['has'](_0x5dbf2d);}[_0x4beac9(0x1c5)](_0x6175ed){var _0x20c7b1=_0x4beac9;return Array[_0x20c7b1(0x247)](this['_reporters'])[_0x20c7b1(0x21d)](_0x5c98c2=>_0x5c98c2(_0x6175ed));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x491c10,_0x725e8f,_0x28a34d,_0x3b9ec1)=>{var _0x4b6034=_0x4beac9;for(var _0x5ca5ba=_0x3b9ec1>0x1?void 0x0:_0x3b9ec1?H(_0x725e8f,_0x28a34d):_0x725e8f,_0x359cf5=_0x491c10[_0x4b6034(0x288)]-0x1,_0x524f90;_0x359cf5>=0x0;_0x359cf5--)(_0x524f90=_0x491c10[_0x359cf5])&&(_0x5ca5ba=_0x524f90(_0x5ca5ba)||_0x5ca5ba);return _0x5ca5ba;},k=(_0x1d3217,_0xadea19)=>(_0x30833c,_0x5117e3)=>_0xadea19(_0x30833c,_0x5117e3,_0x1d3217);let E=class extends o['Disposable']{constructor(_0x543134){var _0x566eab=_0x4beac9;super(),this[_0x566eab(0x26d)]=_0x543134,this['_init']();}[_0x4beac9(0x240)](){var _0x4b5ea0=_0x4beac9;[w[_0x4b5ea0(0x28a)]['id'],w[_0x4b5ea0(0x24c)]['id'],C[_0x4b5ea0(0x219)]['id']][_0x4b5ea0(0x203)](_0x573d43=>{var _0x4bc755=_0x4b5ea0;this[_0x4bc755(0x293)](this[_0x4bc755(0x26d)][_0x4bc755(0x276)](_0x573d43));});}};E=V([k(0x0,o[_0x4beac9(0x1ee)](O))],E);var u=function(){var _0x179a46=_0x4beac9;return u=Object[_0x179a46(0x237)]||function(_0x550fc4){var _0x223298=_0x179a46;for(var _0xdcafc2,_0x4c4b45=0x1,_0x226a6e=arguments[_0x223298(0x288)];_0x4c4b45<_0x226a6e;_0x4c4b45++){_0xdcafc2=arguments[_0x4c4b45];for(var _0x2ef093 in _0xdcafc2)Object[_0x223298(0x205)][_0x223298(0x24f)][_0x223298(0x235)](_0xdcafc2,_0x2ef093)&&(_0x550fc4[_0x2ef093]=_0xdcafc2[_0x2ef093]);}return _0x550fc4;},u['apply'](this,arguments);},M=function(_0x54f1a5,_0x3c8c41){var _0x5b9f72=_0x4beac9,_0x596875={};for(var _0x5afa49 in _0x54f1a5)Object['prototype'][_0x5b9f72(0x24f)][_0x5b9f72(0x235)](_0x54f1a5,_0x5afa49)&&_0x3c8c41[_0x5b9f72(0x246)](_0x5afa49)<0x0&&(_0x596875[_0x5afa49]=_0x54f1a5[_0x5afa49]);if(_0x54f1a5!=null&&typeof Object['getOwnPropertySymbols']==_0x5b9f72(0x1f0)){for(var _0x5e9d3d=0x0,_0x5afa49=Object[_0x5b9f72(0x1d2)](_0x54f1a5);_0x5e9d3d<_0x5afa49[_0x5b9f72(0x288)];_0x5e9d3d++)_0x3c8c41['indexOf'](_0x5afa49[_0x5e9d3d])<0x0&&Object[_0x5b9f72(0x205)][_0x5b9f72(0x25b)][_0x5b9f72(0x235)](_0x54f1a5,_0x5afa49[_0x5e9d3d])&&(_0x596875[_0x5afa49[_0x5e9d3d]]=_0x54f1a5[_0x5afa49[_0x5e9d3d]]);}return _0x596875;},j=f['forwardRef'](function(_0x100543,_0x1a0c5d){var _0x2d73cc=_0x4beac9,_0x4385df=_0x100543[_0x2d73cc(0x215)],_0x2bd903=_0x100543['id'],_0x1e7890=_0x100543[_0x2d73cc(0x207)],_0x2cc234=_0x100543[_0x2d73cc(0x1ef)],_0x2b7839=M(_0x100543,[_0x2d73cc(0x215),'id','className',_0x2d73cc(0x1ef)]),_0x175aaf='univerjs-icon\x20univerjs-icon-'[_0x2d73cc(0x27b)](_0x2bd903,'\x20')['concat'](_0x1e7890||'')[_0x2d73cc(0x245)](),_0x20180b=f['useRef']('_'[_0x2d73cc(0x27b)](G()));return y(_0x4385df,''['concat'](_0x2bd903),{'defIds':_0x4385df[_0x2d73cc(0x290)],'idSuffix':_0x20180b[_0x2d73cc(0x1e3)]},u({'ref':_0x1a0c5d,'className':_0x175aaf},_0x2b7839),_0x2cc234);});function y(_0x2bb57a,_0x2d293a,_0x1f6c35,_0x4dc49d,_0x328556){var _0x513f7d=_0x4beac9;return f[_0x513f7d(0x1e1)](_0x2bb57a['tag'],u(u({'key':_0x2d293a},q(_0x2bb57a,_0x1f6c35,_0x328556)),_0x4dc49d),(W(_0x2bb57a,_0x1f6c35)[_0x513f7d(0x1ff)]||[])[_0x513f7d(0x21d)](function(_0x354906,_0x5cf377){var _0x3416d5=_0x513f7d;return y(_0x354906,''[_0x3416d5(0x27b)](_0x2d293a,'-')[_0x3416d5(0x27b)](_0x2bb57a['tag'],'-')[_0x3416d5(0x27b)](_0x5cf377),_0x1f6c35,void 0x0,_0x328556);}));}function q(_0x3c1004,_0x1884d5,_0x332f0a){var _0x17f7d5=_0x4beac9,_0x2a8fe7=u({},_0x3c1004[_0x17f7d5(0x20f)]);_0x332f0a!=null&&_0x332f0a[_0x17f7d5(0x1cc)]&&_0x2a8fe7[_0x17f7d5(0x220)]===_0x17f7d5(0x1cc)&&(_0x2a8fe7[_0x17f7d5(0x220)]=_0x332f0a[_0x17f7d5(0x1cc)]),_0x3c1004['tag']===_0x17f7d5(0x25a)&&_0x2a8fe7['id']&&(_0x2a8fe7['id']=_0x2a8fe7['id']+_0x1884d5[_0x17f7d5(0x230)]),Object[_0x17f7d5(0x1f9)](_0x2a8fe7)['forEach'](function(_0x1af306){var _0x587047=_0x17f7d5,_0x51bfac=_0x1af306[0x0],_0x59ae0c=_0x1af306[0x1];_0x51bfac===_0x587047(0x25a)&&typeof _0x59ae0c=='string'&&(_0x2a8fe7[_0x51bfac]=_0x59ae0c[_0x587047(0x1c0)](/url\(#(.*)\)/,_0x587047(0x26f)[_0x587047(0x27b)](_0x1884d5['idSuffix'],')')));});var _0x1066f1=_0x1884d5[_0x17f7d5(0x290)];return!_0x1066f1||_0x1066f1['length']===0x0||(_0x3c1004['tag']===_0x17f7d5(0x22b)&&_0x2a8fe7[_0x17f7d5(0x265)]&&(_0x2a8fe7[_0x17f7d5(0x265)]=_0x2a8fe7[_0x17f7d5(0x265)]+_0x1884d5[_0x17f7d5(0x230)]),Object[_0x17f7d5(0x1f9)](_0x2a8fe7)[_0x17f7d5(0x203)](function(_0x3da9c4){var _0x344944=_0x17f7d5,_0x391cb2=_0x3da9c4[0x0],_0x1e762c=_0x3da9c4[0x1];typeof _0x1e762c=='string'&&(_0x2a8fe7[_0x391cb2]=_0x1e762c[_0x344944(0x1c0)](/url\(#(.*)\)/,'url(#$1'[_0x344944(0x27b)](_0x1884d5[_0x344944(0x230)],')')));})),_0x2a8fe7;}function W(_0x36d016,_0x2f0247){var _0x3a8687=_0x4beac9,_0xaad4d8,_0x217d08=_0x2f0247['defIds'];return!_0x217d08||_0x217d08[_0x3a8687(0x288)]===0x0?_0x36d016:_0x36d016[_0x3a8687(0x212)]===_0x3a8687(0x1bf)&&(!((_0xaad4d8=_0x36d016[_0x3a8687(0x1ff)])===null||_0xaad4d8===void 0x0)&&_0xaad4d8[_0x3a8687(0x288)])?u(u({},_0x36d016),{'children':_0x36d016[_0x3a8687(0x1ff)][_0x3a8687(0x21d)](function(_0x1587d2){var _0x118f10=_0x3a8687;return typeof _0x1587d2[_0x118f10(0x20f)]['id']==_0x118f10(0x260)&&_0x217d08&&_0x217d08['includes'](_0x1587d2[_0x118f10(0x20f)]['id'])?u(u({},_0x1587d2),{'attrs':u(u({},_0x1587d2[_0x118f10(0x20f)]),{'id':_0x1587d2[_0x118f10(0x20f)]['id']+_0x2f0247[_0x118f10(0x230)]})}):_0x1587d2;})}):_0x36d016;}function G(){var _0x2bc5a4=_0x4beac9;return Math[_0x2bc5a4(0x1ca)]()[_0x2bc5a4(0x1dd)](0x24)[_0x2bc5a4(0x222)](0x2,0x8);}j[_0x4beac9(0x264)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':_0x4beac9(0x1dc),'fill':_0x4beac9(0x23c),'viewBox':_0x4beac9(0x241),'width':_0x4beac9(0x258),'height':_0x4beac9(0x258)},'children':[{'tag':_0x4beac9(0x277),'attrs':{'fill':_0x4beac9(0x1d6),'d':_0x4beac9(0x211)}},{'tag':'path','attrs':{'fill':_0x4beac9(0x1d6),'d':_0x4beac9(0x286),'fillRule':_0x4beac9(0x25e),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x7607d8,_0x1f6f06){var _0x5eafec=_0x4beac9;return f[_0x5eafec(0x1e1)](j,Object['assign']({},_0x7607d8,{'id':_0x5eafec(0x20c),'ref':_0x1f6f06,'icon':B}));});P[_0x4beac9(0x264)]='LiveShareIcon';var Y=Object[_0x4beac9(0x210)],R=(_0x24fdac,_0x1ced5e,_0x5ab55b,_0x4dbe39)=>{var _0x41a8e6=_0x4beac9;for(var _0x462d7d=_0x4dbe39>0x1?void 0x0:_0x4dbe39?Y(_0x1ced5e,_0x5ab55b):_0x1ced5e,_0x36bcd7=_0x24fdac[_0x41a8e6(0x288)]-0x1,_0x3abd12;_0x36bcd7>=0x0;_0x36bcd7--)(_0x3abd12=_0x24fdac[_0x36bcd7])&&(_0x462d7d=_0x3abd12(_0x462d7d)||_0x462d7d);return _0x462d7d;},S=(_0x2c7efc,_0x34d718)=>(_0x4d9243,_0x947ae6)=>_0x34d718(_0x4d9243,_0x947ae6,_0x2c7efc);exports[_0x4beac9(0x262)]=class extends o[_0x4beac9(0x27c)]{constructor(_0x4885ec,_0x2adeb5,_0x363847){var _0x1a2bab=_0x4beac9;super(),v(this,_0x1a2bab(0x291),new Map()),(this['_univerInstanceService']=_0x4885ec,this[_0x1a2bab(0x27f)]=_0x2adeb5,this[_0x1a2bab(0x238)]=_0x363847,this[_0x1a2bab(0x240)]());}async[_0x4beac9(0x1b7)](_0x182c94){var _0x39a2a2=_0x4beac9;return this[_0x39a2a2(0x291)][_0x39a2a2(0x25f)](_0x182c94)||await this['_startLiveShareCoordinator'](_0x182c94),this[_0x39a2a2(0x291)]['get'](_0x182c94);}['_init'](){var _0x31c254=_0x4beac9;this[_0x31c254(0x1c8)]['getTypeOfUnitAdded$'](o[_0x31c254(0x1be)][_0x31c254(0x1df)])[_0x31c254(0x1e2)](b[_0x31c254(0x204)](this[_0x31c254(0x25d)]))[_0x31c254(0x1bb)](async _0x1ce1c5=>{var _0x396bdd=_0x31c254;const _0x9ae162=_0x1ce1c5[_0x396bdd(0x248)]();this[_0x396bdd(0x291)]['has'](_0x9ae162)||this[_0x396bdd(0x273)](_0x9ae162);}),this[_0x31c254(0x1c8)][_0x31c254(0x1bc)](o[_0x31c254(0x1be)][_0x31c254(0x1df)])[_0x31c254(0x1e2)](b[_0x31c254(0x204)](this[_0x31c254(0x25d)]))['subscribe'](_0x140dc5=>{var _0x5accd3=_0x31c254;const _0x4aa710=_0x140dc5['getUnitId'](),_0x587861=this['_entities'][_0x5accd3(0x263)](_0x4aa710);_0x587861==null||_0x587861[_0x5accd3(0x251)]();});}async['_startLiveShareCoordinator'](_0x275e3d){var _0x12df1b=_0x4beac9;const _0x245423=await this['_collabSessionService'][_0x12df1b(0x1bd)](_0x275e3d),_0x568d9c=this[_0x12df1b(0x27f)]['createInstance'](exports['LiveShareCoordinator'],_0x275e3d,_0x245423);return _0x568d9c[_0x12df1b(0x208)](),this[_0x12df1b(0x291)]['set'](_0x275e3d,_0x568d9c),_0x568d9c;}},exports[_0x4beac9(0x262)]=R([S(0x0,o[_0x4beac9(0x1e7)]),S(0x1,o[_0x4beac9(0x1ee)](o[_0x4beac9(0x22f)])),S(0x2,o[_0x4beac9(0x1ee)](m[_0x4beac9(0x275)]))],exports[_0x4beac9(0x262)]);var h=(_0x19973d=>(_0x19973d['OFFLINE']=_0x4beac9(0x22a),_0x19973d['IDLE']=_0x4beac9(0x1f3),_0x19973d[_0x4beac9(0x250)]=_0x4beac9(0x24e),_0x19973d[_0x4beac9(0x27a)]=_0x4beac9(0x1b9),_0x19973d[_0x4beac9(0x1c4)]='presenting',_0x19973d))(h||{});function _0x59a8(){var _0x43d0d3=['NOT_FOLLOWING','concat','RxDisposable','LIVESHARE_FETCH_OPERATIONS','sheet','_injector','You\x27re\x20following\x20the\x20presenter','Stop\x20presenting','useRef','SessionStatus','unitId','_stopPresenting','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','_handleNewHost','length','shouldShareOperation','SetZoomRatioOperation','setConfig','_unitID','DesktopLiveShareController','Start\x20following','clear','defIds','_entities','_beIdle','disposeWithMe','_uiPartsService','LiveShareCoordinator','Fragment','values','getLiveShareCoordinator','set','not-following','1250955ynNuSw','subscribe','getTypeOfUnitDisposed$','requireSession','UniverInstanceType','defs','replace','Module','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','send','PRESENTING','getInitialStates','data','LIVESHARE_NEW_HOST','_univerInstanceService','executeCommand','random','_handleTerminate','colorChannel1','includes','merge','BehaviorSubject','_status','_mountLiveShare','getOwnPropertySymbols','_configService','_presenter','add','currentColor','892720cUFHRl','_fetchOperations','jsx','CollaborationEvent','override','http://www.w3.org/2000/svg','toString','stopFollowing','UNIVER_SHEET','_config','createElement','pipe','current','registerInitialStateReporter','Present\x20this\x20document','594eFFjHJ','IUniverInstanceService','button','IDLE','_stopFollowing','getConfig','event$','end','Inject','extend','function','connectInjector','_sharedOperations','idle','useDependency','next','16282nPnOIt','symbol','Stop\x20following','entries','_handleOnline','presenting','LiveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','children','_startPresenting','_collabSession','_handleOffline','forEach','takeUntil','prototype','then','className','init','getValue','useState','params','live-share-icon','OPERATION','operations','attrs','getOwnPropertyDescriptor','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','defineProperty','onRendered','icon','_commandDisposable','asObservable','BuiltInUIPart','SetWorksheetActiveOperation','_startFollowing','You\x27re\x20presenting\x20the\x20document','IConfigService','map','110BffAmU','InsertSheetMutation','fill','_status$','substring','mutations','LiveShareStatus','_commandService','type','sessionStatus$','registerComponent','169620Ocwjod','offline','use','startFollowing','stopPresenting','314406wDDlYy','Injector','idSuffix','stringify','clsx','ICommandService','251388TZTgOS','call','unsubscribe','assign','_collabSessionService','Disposable','memberID','pluginName','none','LIVESHARE_REQUEST_HOST','Button','find','_init','0\x200\x2017\x2017','_reporters','jsxs','live-share.config','trim','indexOf','from','getUnitId','3VjwCWe','delete','throttleTime','SetScrollOperation','IUIPartsService','following','hasOwnProperty','FOLLOWING','dispose','You\x27are\x20offline.','useEffect','status$','DisposableCollection','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_OPERATION','1em','9WztNuK','mask','propertyIsEnumerable','div','dispose$','evenodd','has','string','text','LiveShareController','get','displayName','xlink:href','onStarting','LIVESHARE_TERMINATE','complete','OFFLINE','Subject','UniverCollaborationClientPlugin','touchDependencies','_liveShareService','getMemberID','url(#$1','parse','55402qAYHjN','UniverLiveSharePlugin','_startLiveShareCoordinator','_handleOperation','CollaborationSessionService','registerSharedOperation','path','presenter','parseProtocolChangeset'];_0x59a8=function(){return _0x43d0d3;};return _0x59a8();}const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x4beac9(0x1b4)]=class extends o[_0x4beac9(0x27c)]{constructor(_0x2cddc7,_0x3c71ac,_0x536a3b,_0x20415b,_0x2dfbb5){var _0x193b5b=_0x4beac9;super(),v(this,_0x193b5b(0x221),new D[(_0x193b5b(0x1cf))](_0x193b5b(0x1f3))),v(this,_0x193b5b(0x254),this[_0x193b5b(0x221)][_0x193b5b(0x217)]()),v(this,_0x193b5b(0x240),!0x1),v(this,_0x193b5b(0x216),null),v(this,_0x193b5b(0x1d4),null),(this[_0x193b5b(0x28c)]=_0x2cddc7,this[_0x193b5b(0x201)]=_0x3c71ac,this['_configService']=_0x536a3b,this['_liveShareService']=_0x20415b,this[_0x193b5b(0x225)]=_0x2dfbb5);}get[_0x4beac9(0x1d0)](){var _0x41761f=_0x4beac9;return this[_0x41761f(0x221)][_0x41761f(0x209)]();}[_0x4beac9(0x251)](){var _0x8d928=_0x4beac9,_0x3eb4b8;(_0x3eb4b8=this[_0x8d928(0x216)])==null||_0x3eb4b8[_0x8d928(0x251)](),this[_0x8d928(0x221)][_0x8d928(0x1f5)](_0x8d928(0x1f3)),this['_status$'][_0x8d928(0x268)]();}[_0x4beac9(0x208)](){var _0x34bb0c=_0x4beac9;this['_init']||(this[_0x34bb0c(0x240)]=!0x0,this[_0x34bb0c(0x201)][_0x34bb0c(0x227)][_0x34bb0c(0x1e2)](b['takeUntil'](this[_0x34bb0c(0x25d)]))[_0x34bb0c(0x1bb)](_0x38f4c3=>{var _0x92af2c=_0x34bb0c;switch(_0x38f4c3){case m['SessionStatus'][_0x92af2c(0x269)]:this[_0x92af2c(0x202)]();break;case m[_0x92af2c(0x283)][_0x92af2c(0x1fe)]:this[_0x92af2c(0x1fa)]();break;}}),this[_0x34bb0c(0x201)][_0x34bb0c(0x1ec)][_0x34bb0c(0x1e2)](b[_0x34bb0c(0x204)](this['dispose$']))[_0x34bb0c(0x1bb)](_0x5bf542=>{var _0x878116=_0x34bb0c;const {eventID:_0x476a4d}=_0x5bf542;switch(_0x476a4d){case _[_0x878116(0x1da)][_0x878116(0x1c7)]:this[_0x878116(0x287)](_0x5bf542);break;case _[_0x878116(0x1da)][_0x878116(0x257)]:this[_0x878116(0x274)](_0x5bf542);break;case _[_0x878116(0x1da)][_0x878116(0x267)]:this[_0x878116(0x1cb)]();break;case _['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5bf542);break;}}));}['tryStartPresenting'](){var _0x2a5000=_0x4beac9;this['_collabSession'][_0x2a5000(0x1c3)]({'eventID':_[_0x2a5000(0x1da)][_0x2a5000(0x23d)],'data':{'unitID':this[_0x2a5000(0x28c)],'userID':this[_0x2a5000(0x201)][_0x2a5000(0x26e)]()}},this[_0x2a5000(0x28c)]);}[_0x4beac9(0x22d)](){var _0x12ff04=_0x4beac9;this[_0x12ff04(0x1d0)]===_0x12ff04(0x1fb)&&(this['_status$']['next'](_0x12ff04(0x1f3)),this[_0x12ff04(0x201)]['send']({'eventID':_['CollaborationEvent'][_0x12ff04(0x267)],'data':{'unitID':this[_0x12ff04(0x28c)]}},this[_0x12ff04(0x28c)]));}['startFollowing'](){var _0x297f6b=_0x4beac9;this[_0x297f6b(0x1d0)]===_0x297f6b(0x1b9)&&(this[_0x297f6b(0x221)][_0x297f6b(0x1f5)](_0x297f6b(0x24e)),this['_startFollowing']());}[_0x4beac9(0x1de)](){var _0x14eb8e=_0x4beac9;this['_status']===_0x14eb8e(0x24e)&&this[_0x14eb8e(0x1ea)]();}[_0x4beac9(0x287)](_0x186205){var _0x32808d=_0x4beac9;const {presenter:_0x351433}=_0x186205[_0x32808d(0x1c6)],_0x23fabc=this[_0x32808d(0x201)][_0x32808d(0x26e)]();this[_0x32808d(0x1d4)]=_0x351433,_0x351433===_0x23fabc?(this[_0x32808d(0x1ea)](),this[_0x32808d(0x200)]()):this['_status']!==_0x32808d(0x1b9)&&(this[_0x32808d(0x285)](),this['_startFollowing']());}[_0x4beac9(0x1d8)](){var _0xe06d43=_0x4beac9;const _0x369f00={'eventID':_[_0xe06d43(0x1da)][_0xe06d43(0x27d)]};this[_0xe06d43(0x201)][_0xe06d43(0x1c3)](_0x369f00,this[_0xe06d43(0x28c)]);}[_0x4beac9(0x1cb)](){var _0xef8780=_0x4beac9;this[_0xef8780(0x1d4)]=null,this[_0xef8780(0x1d0)]!==_0xef8780(0x1fb)&&this['_beIdle']();}['_handleNewChangeSets'](_0x30f2f7){var _0x422eaf=_0x4beac9;if(this[_0x422eaf(0x1d0)]===_0x422eaf(0x24e)&&this[_0x422eaf(0x1d4)]===_0x30f2f7[_0x422eaf(0x1c6)][_0x422eaf(0x23a)]){const _0x817587=_[_0x422eaf(0x279)](_0x30f2f7[_0x422eaf(0x1c6)])[_0x422eaf(0x223)]['reverse']()[_0x422eaf(0x23f)](_0x49b3a4=>_0x49b3a4['id']===C[_0x422eaf(0x21f)]['id']);if(_0x817587){const _0x489901=_0x817587[_0x422eaf(0x20b)][_0x422eaf(0x284)],_0x2b7105=_0x817587[_0x422eaf(0x20b)][_0x422eaf(0x27e)]['id'];setTimeout(()=>{var _0x2560e0=_0x422eaf;this[_0x2560e0(0x225)][_0x2560e0(0x1c9)](C[_0x2560e0(0x219)]['id'],{'unitId':_0x489901,'subUnitId':_0x2b7105},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1945ea=_0x4beac9;this[_0x1945ea(0x221)][_0x1945ea(0x1f5)](_0x1945ea(0x1fb));const _0xe82fcd=new Map(),_0xbc9bc5=this['_commandDisposable']=new o[(_0x1945ea(0x255))]();_0xbc9bc5['add'](o['toDisposable'](()=>{var _0xfb0ea2=_0x1945ea;_0xe82fcd[_0xfb0ea2(0x203)](_0xa54fb6=>_0xa54fb6[_0xfb0ea2(0x268)]()),_0xe82fcd[_0xfb0ea2(0x28f)]();})),_0xbc9bc5['add'](this[_0x1945ea(0x225)]['onCommandExecuted'](_0x3505d1=>{var _0x147b0b=_0x1945ea,_0x25261f;if(_0x3505d1['type']!==o['CommandType'][_0x147b0b(0x20d)]||!this[_0x147b0b(0x26d)][_0x147b0b(0x289)](_0x3505d1['id']))return;const {id:_0x3b8572}=_0x3505d1;let _0x358d24;_0xe82fcd[_0x147b0b(0x25f)](_0x3b8572)?_0x358d24=_0xe82fcd[_0x147b0b(0x263)](_0x3b8572):(_0x358d24=new D[(_0x147b0b(0x26a))](),_0xe82fcd[_0x147b0b(0x1b8)](_0x3b8572,_0x358d24),_0x358d24[_0x147b0b(0x1e2)](b[_0x147b0b(0x24b)]((_0x25261f=this['_configService'][_0x147b0b(0x1eb)](Z))!=null?_0x25261f:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x147b0b(0x1bb)](_0x2057a1=>{var _0x25d06d=_0x147b0b;this[_0x25d06d(0x201)][_0x25d06d(0x1c3)]({'eventID':_[_0x25d06d(0x1da)][_0x25d06d(0x257)],'data':{'unitID':this['_unitID'],'operations':{[_0x2057a1['id']]:{'id':_0x2057a1['id'],'params':JSON[_0x25d06d(0x231)](_0x2057a1[_0x25d06d(0x20b)])}}}},this[_0x25d06d(0x28c)]);})),_0x358d24[_0x147b0b(0x1f5)](_0x3505d1);})),this[_0x1945ea(0x26d)][_0x1945ea(0x1c5)](this[_0x1945ea(0x28c)])[_0x1945ea(0x203)](_0x59a695=>this[_0x1945ea(0x201)][_0x1945ea(0x1c3)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1945ea(0x28c)],'operations':{[_0x59a695['id']]:{'id':_0x59a695['id'],'params':JSON[_0x1945ea(0x231)](_0x59a695[_0x1945ea(0x20b)])}}}},this[_0x1945ea(0x28c)]));}[_0x4beac9(0x285)](){var _0x4cb248=_0x4beac9,_0x2c7b8b;this[_0x4cb248(0x221)][_0x4cb248(0x1f5)](_0x4cb248(0x1f3)),(_0x2c7b8b=this[_0x4cb248(0x216)])==null||_0x2c7b8b['dispose'](),this[_0x4cb248(0x216)]=null;}[_0x4beac9(0x21a)](){var _0x113cf1=_0x4beac9,_0x416e1a;(_0x416e1a=this[_0x113cf1(0x216)])==null||_0x416e1a[_0x113cf1(0x251)](),this[_0x113cf1(0x221)]['next'](_0x113cf1(0x24e));}[_0x4beac9(0x292)](){var _0x74e2f=_0x4beac9,_0xfe310c;this['_status$'][_0x74e2f(0x1f5)]('idle'),(_0xfe310c=this[_0x74e2f(0x216)])==null||_0xfe310c[_0x74e2f(0x251)](),this[_0x74e2f(0x216)]=null;}[_0x4beac9(0x1ea)](){var _0x6ecef=_0x4beac9,_0x3f5d6a;this['_status$'][_0x6ecef(0x1f5)](_0x6ecef(0x1b9)),(_0x3f5d6a=this['_commandDisposable'])==null||_0x3f5d6a[_0x6ecef(0x251)]();}[_0x4beac9(0x274)](_0x32ba6a){var _0x5efe86=_0x4beac9;if(['presenting',_0x5efe86(0x1b9),'offline'][_0x5efe86(0x1cd)](this[_0x5efe86(0x1d0)])||!_0x32ba6a[_0x5efe86(0x1c6)][_0x5efe86(0x278)]||_0x32ba6a['data'][_0x5efe86(0x278)]===this[_0x5efe86(0x201)]['getMemberID']())return;this[_0x5efe86(0x1d0)]==='idle'&&this[_0x5efe86(0x21a)]();const _0x3ae4ca=_0x32ba6a[_0x5efe86(0x1c6)][_0x5efe86(0x20e)];Object[_0x5efe86(0x1b6)](_0x3ae4ca)[_0x5efe86(0x203)](_0x596983=>{var _0x274d2f=_0x5efe86;this[_0x274d2f(0x225)][_0x274d2f(0x1c9)](_0x596983['id'],_0x596983[_0x274d2f(0x20b)]?JSON[_0x274d2f(0x270)](_0x596983[_0x274d2f(0x20b)]):null,{'fromCollab':!0x0});});}[_0x4beac9(0x202)](){var _0x57ea6a=_0x4beac9,_0x248446;this['_status$'][_0x57ea6a(0x1f5)](_0x57ea6a(0x22a)),(_0x248446=this[_0x57ea6a(0x216)])==null||_0x248446[_0x57ea6a(0x251)]();}[_0x4beac9(0x1fa)](){var _0x2ec37b=_0x4beac9;this[_0x2ec37b(0x221)][_0x2ec37b(0x1f5)](_0x2ec37b(0x1f3)),this[_0x2ec37b(0x1d8)]();}},exports[_0x4beac9(0x1b4)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x4beac9(0x1ee)](O)),S(0x4,o[_0x4beac9(0x233)])],exports[_0x4beac9(0x1b4)]);function A(){var _0x109b16=_0x4beac9;const _0x464ea6=p[_0x109b16(0x1f4)](exports[_0x109b16(0x262)]),_0x24966e=p[_0x109b16(0x1f4)](o[_0x109b16(0x1e7)]),_0x199273=p['useObservable'](()=>_0x24966e['getCurrentTypeOfUnit$'](o[_0x109b16(0x1be)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x17b2ea,_0x4e3f79]=f['useState'](null),[_0xadc9c0,_0x322f26]=f[_0x109b16(0x20a)](h['IDLE']),_0x5a4930=f[_0x109b16(0x282)](null);return f[_0x109b16(0x253)](()=>(_0x199273&&_0x464ea6['getLiveShareCoordinator'](_0x199273['getUnitId']())[_0x109b16(0x206)](_0x40efee=>{var _0x334e1a=_0x109b16;_0x4e3f79(_0x40efee),_0x5a4930[_0x334e1a(0x1e3)]=_0x40efee['status$']['subscribe'](_0x3786d4=>{_0x322f26(_0x3786d4);});}),()=>{var _0x44f574=_0x109b16,_0x1cf8c5;(_0x1cf8c5=_0x5a4930[_0x44f574(0x1e3)])==null||_0x1cf8c5[_0x44f574(0x236)](),_0x5a4930[_0x44f574(0x1e3)]=null;}),[_0x199273,_0x464ea6]),_0x17b2ea?l[_0x109b16(0x1d9)](g['Dropdown'],{'align':_0x109b16(0x1ed),'disabled':_0xadc9c0===h[_0x109b16(0x269)],'className':_0x109b16(0x1c2),'overlay':l[_0x109b16(0x1d9)](K,{'status':_0xadc9c0,'coordinator':_0x17b2ea}),'children':l[_0x109b16(0x1d9)]('button',{'className':g[_0x109b16(0x232)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xadc9c0===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xadc9c0!==h[_0x109b16(0x269)]}),'type':_0x109b16(0x1e8),'children':l[_0x109b16(0x1d9)](P,{'className':'univer-size-4'})})}):null;}function K(_0x2bf374){var _0x46edbb=_0x4beac9;const {status:_0x2b7856,coordinator:_0x173b48}=_0x2bf374;switch(_0x2b7856){case h[_0x46edbb(0x1e9)]:return l[_0x46edbb(0x1d9)](z,{'coordinator':_0x173b48});case h[_0x46edbb(0x250)]:return l['jsx'](Q,{'coordinator':_0x173b48});case h['NOT_FOLLOWING']:return l[_0x46edbb(0x1d9)](X,{'coordinator':_0x173b48});case h[_0x46edbb(0x269)]:return l[_0x46edbb(0x1d9)](te,{});case h[_0x46edbb(0x1c4)]:return l['jsx'](ee,{'coordinator':_0x173b48});default:return null;}}function z(_0x5be5c8){var _0x7b30c8=_0x4beac9;const {coordinator:_0x5cb462}=_0x5be5c8;return l[_0x7b30c8(0x243)](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x7b30c8(0x1fd),'children':_0x7b30c8(0x1e5)}),l[_0x7b30c8(0x1d9)](g[_0x7b30c8(0x23e)],{'onClick':()=>_0x5cb462['tryStartPresenting'](),'children':'Start'})]});}function _0x348d(_0x22b89c,_0x39bdc7){var _0x59a8c0=_0x59a8();return _0x348d=function(_0x348dba,_0x366faf){_0x348dba=_0x348dba-0x1b3;var _0x545067=_0x59a8c0[_0x348dba];return _0x545067;},_0x348d(_0x22b89c,_0x39bdc7);}function Q(_0x44591d){var _0x2b33db=_0x4beac9;const {coordinator:_0x4c26f7}=_0x44591d;return l['jsxs'](l[_0x2b33db(0x1b5)],{'children':[l['jsx'](_0x2b33db(0x25c),{'className':_0x2b33db(0x1fd),'children':_0x2b33db(0x280)}),l[_0x2b33db(0x1d9)](g[_0x2b33db(0x23e)],{'onClick':()=>_0x4c26f7['stopFollowing'](),'children':_0x2b33db(0x1f8)})]});}function X(_0x530b7a){var _0x556292=_0x4beac9;const {coordinator:_0x1bb384}=_0x530b7a;return l[_0x556292(0x243)](l[_0x556292(0x1b5)],{'children':[l[_0x556292(0x1d9)]('div',{'className':_0x556292(0x1fd),'children':_0x556292(0x256)}),l[_0x556292(0x1d9)](g[_0x556292(0x23e)],{'variant':_0x556292(0x261),'onClick':()=>_0x1bb384[_0x556292(0x22c)](),'children':_0x556292(0x28e)})]});}function ee(_0x34cefc){var _0xb147ba=_0x4beac9;const {coordinator:_0x129c07}=_0x34cefc;return l[_0xb147ba(0x243)](l[_0xb147ba(0x1b5)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xb147ba(0x21b)}),l[_0xb147ba(0x1d9)](g['Button'],{'variant':'default','onClick':()=>_0x129c07[_0xb147ba(0x22d)](),'children':_0xb147ba(0x281)})]});}function te(){var _0x15347f=_0x4beac9;return l['jsx'](l[_0x15347f(0x1b5)],{'children':_0x15347f(0x252)});}var ie=Object[_0x4beac9(0x210)],ne=(_0x3d8578,_0x235090,_0x460a86,_0x4af550)=>{for(var _0x73020c=_0x4af550>0x1?void 0x0:_0x4af550?ie(_0x235090,_0x460a86):_0x235090,_0x48c042=_0x3d8578['length']-0x1,_0x30e680;_0x48c042>=0x0;_0x48c042--)(_0x30e680=_0x3d8578[_0x48c042])&&(_0x73020c=_0x30e680(_0x73020c)||_0x73020c);return _0x73020c;},L=(_0x54f727,_0x1dd36f)=>(_0x3945f2,_0x5c1a88)=>_0x1dd36f(_0x3945f2,_0x5c1a88,_0x54f727);exports['DesktopLiveShareController']=class extends o[_0x4beac9(0x239)]{constructor(_0x694240,_0x303d63){var _0x398904=_0x4beac9;super(),this['_injector']=_0x694240,this['_uiPartsService']=_0x303d63,this[_0x398904(0x1d1)]();}['_mountLiveShare'](){var _0x5f2a2a=_0x4beac9;this[_0x5f2a2a(0x293)](this[_0x5f2a2a(0x1b3)][_0x5f2a2a(0x228)](p[_0x5f2a2a(0x218)]['HEADER_MENU'],()=>p[_0x5f2a2a(0x1f1)](A,this[_0x5f2a2a(0x27f)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x4beac9(0x1ee)](o['Injector'])),L(0x1,p[_0x4beac9(0x24d)])],exports[_0x4beac9(0x28d)]);var re=Object[_0x4beac9(0x213)],se=Object[_0x4beac9(0x210)],oe=(_0x4dde4b,_0x58fac5,_0x336d7b)=>_0x58fac5 in _0x4dde4b?re(_0x4dde4b,_0x58fac5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x336d7b}):_0x4dde4b[_0x58fac5]=_0x336d7b,ae=(_0x3f19eb,_0x20bdba,_0x47495e,_0x17aa7f)=>{for(var _0x55ae11=_0x17aa7f>0x1?void 0x0:_0x17aa7f?se(_0x20bdba,_0x47495e):_0x20bdba,_0x361b37=_0x3f19eb['length']-0x1,_0x5a56d4;_0x361b37>=0x0;_0x361b37--)(_0x5a56d4=_0x3f19eb[_0x361b37])&&(_0x55ae11=_0x5a56d4(_0x55ae11)||_0x55ae11);return _0x55ae11;},N=(_0x404a80,_0x4a381b)=>(_0x3ed1ba,_0x240e34)=>_0x4a381b(_0x3ed1ba,_0x240e34,_0x404a80),T=(_0x576e96,_0x2fb4ee,_0x42938a)=>oe(_0x576e96,typeof _0x2fb4ee!=_0x4beac9(0x1f7)?_0x2fb4ee+'':_0x2fb4ee,_0x42938a);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4beac9(0x272)]=class extends o['Plugin']{constructor(_0x9d127c=x,_0xdd152,_0x2544eb){var _0x1bb82b=_0x4beac9;super(),this['_config']=_0x9d127c,this['_injector']=_0xdd152,this['_configService']=_0x2544eb;const {..._0x32c448}=o[_0x1bb82b(0x1ce)]({},x,this[_0x1bb82b(0x1e0)]);this[_0x1bb82b(0x1d3)][_0x1bb82b(0x28b)]($,_0x32c448);}[_0x4beac9(0x266)](){var _0x1c96b7=_0x4beac9;o['registerDependencies'](this[_0x1c96b7(0x27f)],o['mergeOverrideWithDependencies']([[O],[exports[_0x1c96b7(0x262)]],[E],[exports[_0x1c96b7(0x28d)]]],this[_0x1c96b7(0x1e0)][_0x1c96b7(0x1db)])),o[_0x1c96b7(0x26c)](this[_0x1c96b7(0x27f)],[[E]]);}[_0x4beac9(0x214)](){var _0x29c387=_0x4beac9;o[_0x29c387(0x26c)](this[_0x29c387(0x27f)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x4beac9(0x226),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x4beac9(0x272)],_0x4beac9(0x23b),le),exports[_0x4beac9(0x272)]=ae([o['DependentOn'](m[_0x4beac9(0x26b)]),N(0x1,o[_0x4beac9(0x1ee)](o['Injector'])),N(0x2,o[_0x4beac9(0x21c)])],exports[_0x4beac9(0x272)]),exports['LiveShare']=A,exports[_0x4beac9(0x1fc)]=O,exports[_0x4beac9(0x224)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x451375=_0xa190;(function(_0x1e9cbb,_0x5bffbc){var _0x185ef2=_0xa190,_0x37c213=_0x1e9cbb();while(!![]){try{var _0x57a358=parseInt(_0x185ef2(0xa1))/0x1+parseInt(_0x185ef2(0xe7))/0x2+-parseInt(_0x185ef2(0xe6))/0x3*(-parseInt(_0x185ef2(0xc3))/0x4)+parseInt(_0x185ef2(0xf6))/0x5+parseInt(_0x185ef2(0xc8))/0x6*(parseInt(_0x185ef2(0xdb))/0x7)+-parseInt(_0x185ef2(0x126))/0x8+-parseInt(_0x185ef2(0x96))/0x9*(parseInt(_0x185ef2(0xd4))/0xa);if(_0x57a358===_0x5bffbc)break;else _0x37c213['push'](_0x37c213['shift']());}catch(_0x4db724){_0x37c213['push'](_0x37c213['shift']());}}}(_0x5bdd,0x19817));var q=Object['defineProperty'],z=(_0x575a9e,_0x54851e,_0x3ab20b)=>_0x54851e in _0x575a9e?q(_0x575a9e,_0x54851e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ab20b}):_0x575a9e[_0x54851e]=_0x3ab20b,d=(_0x2fbd89,_0x2ff064,_0x327381)=>z(_0x2fbd89,typeof _0x2ff064!=_0x451375(0xd5)?_0x2ff064+'':_0x2ff064,_0x327381);import{CollaborationSessionService as _0x28a12b,SessionStatus as _0xd06163,UniverCollaborationClientPlugin as _0x1dd0cd}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2313b0,toDisposable as _0x43b1a9,Inject as _0x28c77f,IUniverInstanceService as _0x3e5199,Injector as _0x335107,IConfigService as _0x346109,ICommandService as _0x4a09d4,RxDisposable as _0x36a016,UniverInstanceType as _0x4c20a0,DisposableCollection as _0x1b939f,CommandType as _0x1862c6,DependentOn as _0x32035a,Plugin as _0x1c27e2,merge as _0x3c06a8,registerDependencies as _0x4552ae,mergeOverrideWithDependencies as _0x32a788,touchDependencies as _0x21a21b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x21f0ce,InsertSheetMutation as _0x198dc6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x274716,SetScrollOperation as _0x186685}from'@univerjs/sheets-ui';import{useDependency as _0x2de017,useObservable as _0x25276a,IUIPartsService as _0xb65b9,BuiltInUIPart as _0x51a6c7,connectInjector as _0x2c0420}from'@univerjs/ui';import{jsx as _0x5aa147,jsxs as _0x2b969d,Fragment as _0x5b6ea3}from'react/jsx-runtime';function _0x5bdd(){var _0x59216a=['icon','48gDjMyl','358320JQoUiu','disposeWithMe','includes','trim','1em','operations','onCommandExecuted','_collabSession','FOLLOWING','substring','UNIVER_SHEET','_entities','_handleOffline','asObservable','button','82435yfXSnr','none','unsubscribe','_handleTerminate','_reporters','following','parse','tryStartPresenting','indexOf','getMemberID','values','getConfig','_liveShareService','You\x27re\x20following\x20the\x20presenter','extend','next','data','_configService','set','_handleOnline','registerComponent','onRendered','random','idSuffix','requireSession','_collabSessionService','defIds','univer-size-4','LiveShareIcon','_stopFollowing','setConfig','getOwnPropertySymbols','_fetchOperations','dispose','current','UNIVER_UNKNOWN','hasOwnProperty','call','prototype','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_stopPresenting','presenter','url(#$1','stringify','currentColor','You\x27re\x20presenting\x20the\x20document','mutations','580968svnHWO','find','You\x27are\x20offline.','Stop\x20following','getCurrentTypeOfUnit$','string','propertyIsEnumerable','UniverIcon','executeCommand','_handleOperation','tag','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','xlink:href','status$','pipe','add','colorChannel1','length','LIVESHARE_TERMINATE','className','NEW_CHANGESETS','stopFollowing','_startFollowing','shouldShareOperation','registerSharedOperation','function','evenodd','9dTaiwk','_mountLiveShare','text','override','get','_config','not-following','end','getInitialStates','attrs','map','179962dUejhy','complete','Present\x20this\x20document','assign','apply','default','OPERATION','delete','fill','_univerInstanceService','getUnitId','type','_uiPartsService','defineProperty','LIVESHARE_FETCH_OPERATIONS','IDLE','_commandDisposable','forEach','defs','_presenter','_status$','onStarting','_commandService','dispose$','OFFLINE','_startLiveShareCoordinator','_handleNewChangeSets','offline','live-share.config','_unitID','0\x200\x2017\x2017','idle','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_REQUEST_HOST','27436WdZUYh','startFollowing','mask','_injector','children','1128tfXBPc','_beIdle','init','params','getLiveShareCoordinator','createInstance','registerInitialStateReporter','entries','then','subscribe','_startPresenting','has','3507490XDIwTF','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','displayName','clear','HEADER_MENU','1582biOOVN','getTypeOfUnitAdded$','stopPresenting','send','_init','NOT_FOLLOWING','_status','concat','sessionStatus$','replace'];_0x5bdd=function(){return _0x59216a;};return _0x5bdd();}import{Dropdown as _0x159863,clsx as _0x87598b,Button as _0x352964}from'@univerjs/design';import{forwardRef as _0x11caf0,useRef as _0x48017c,createElement as _0x3ad40e,useState as _0x55d604,useEffect as _0x44053b}from'react';import{CollaborationEvent as _0x248176,parseProtocolChangeset as _0x17584c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2f2b8d,Subject as _0x1044e5}from'rxjs';import{takeUntil as _0x261e2b,throttleTime as _0x28b226}from'rxjs/operators';const Oe=_0x451375(0xbd),T={};class L extends _0x2313b0{constructor(){var _0x14a96d=_0x451375;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x14a96d(0xfa),new Set());}[_0x451375(0x93)](_0xe10ed1){var _0x416a36=_0x451375;return this['_sharedOperations'][_0x416a36(0x8a)](_0xe10ed1),_0x43b1a9(()=>this['_sharedOperations'][_0x416a36(0xa8)](_0xe10ed1));}[_0x451375(0xce)](_0x52fc81){var _0x9e9dd9=_0x451375;return this['_reporters'][_0x9e9dd9(0x8a)](_0x52fc81),_0x43b1a9(()=>this[_0x9e9dd9(0xfa)][_0x9e9dd9(0xa8)](_0x52fc81));}[_0x451375(0x92)](_0x2e83d3){return this['_sharedOperations']['has'](_0x2e83d3);}[_0x451375(0x9e)](_0x3e9bb6){var _0x44eb1a=_0x451375;return Array['from'](this[_0x44eb1a(0xfa)])[_0x44eb1a(0xa0)](_0x5925b2=>_0x5925b2(_0x3e9bb6));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x168b22,_0x5bace9,_0x2c0490,_0x2b85a1)=>{var _0x2bbb8f=_0x451375;for(var _0x2447c2=_0x2b85a1>0x1?void 0x0:_0x2b85a1?Ee(_0x5bace9,_0x2c0490):_0x5bace9,_0x29180e=_0x168b22[_0x2bbb8f(0x8c)]-0x1,_0x355b58;_0x29180e>=0x0;_0x29180e--)(_0x355b58=_0x168b22[_0x29180e])&&(_0x2447c2=_0x355b58(_0x2447c2)||_0x2447c2);return _0x2447c2;},Ne=(_0x4ab97c,_0x26ff09)=>(_0x21d977,_0x31a0da)=>_0x26ff09(_0x21d977,_0x31a0da,_0x4ab97c);let m=class extends _0x2313b0{constructor(_0x1d2686){var _0x220503=_0x451375;super(),this['_liveShareService']=_0x1d2686,this[_0x220503(0xdf)]();}[_0x451375(0xdf)](){var _0x4470bf=_0x451375;[_0x274716['id'],_0x186685['id'],_0x21f0ce['id']][_0x4470bf(0xb2)](_0x59a128=>{var _0x162c91=_0x4470bf;this[_0x162c91(0xe8)](this[_0x162c91(0x102)][_0x162c91(0x93)](_0x59a128));});}};m=we([Ne(0x0,_0x28c77f(L))],m);var c=function(){var _0x7b8dfc=_0x451375;return c=Object[_0x7b8dfc(0xa4)]||function(_0x5cf3c4){var _0x36c87f=_0x7b8dfc;for(var _0x386ab4,_0x2d2e19=0x1,_0x129e0a=arguments[_0x36c87f(0x8c)];_0x2d2e19<_0x129e0a;_0x2d2e19++){_0x386ab4=arguments[_0x2d2e19];for(var _0x40a2ad in _0x386ab4)Object[_0x36c87f(0x11c)]['hasOwnProperty']['call'](_0x386ab4,_0x40a2ad)&&(_0x5cf3c4[_0x40a2ad]=_0x386ab4[_0x40a2ad]);}return _0x5cf3c4;},c[_0x7b8dfc(0xa5)](this,arguments);},Ce=function(_0x58cf11,_0x33e72f){var _0xb697ad=_0x451375,_0x442487={};for(var _0x1601cf in _0x58cf11)Object[_0xb697ad(0x11c)][_0xb697ad(0x11a)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf)&&_0x33e72f['indexOf'](_0x1601cf)<0x0&&(_0x442487[_0x1601cf]=_0x58cf11[_0x1601cf]);if(_0x58cf11!=null&&typeof Object[_0xb697ad(0x115)]==_0xb697ad(0x94)){for(var _0x5cf0c1=0x0,_0x1601cf=Object[_0xb697ad(0x115)](_0x58cf11);_0x5cf0c1<_0x1601cf[_0xb697ad(0x8c)];_0x5cf0c1++)_0x33e72f[_0xb697ad(0xfe)](_0x1601cf[_0x5cf0c1])<0x0&&Object[_0xb697ad(0x11c)][_0xb697ad(0x80)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf[_0x5cf0c1])&&(_0x442487[_0x1601cf[_0x5cf0c1]]=_0x58cf11[_0x1601cf[_0x5cf0c1]]);}return _0x442487;},W=_0x11caf0(function(_0x2c5602,_0x472b23){var _0x508acd=_0x451375,_0x4b87ee=_0x2c5602[_0x508acd(0xe5)],_0x15f482=_0x2c5602['id'],_0x5db530=_0x2c5602[_0x508acd(0x8e)],_0x3c9d14=_0x2c5602[_0x508acd(0x104)],_0x21e4b6=Ce(_0x2c5602,[_0x508acd(0xe5),'id',_0x508acd(0x8e),_0x508acd(0x104)]),_0x29b9cd='univerjs-icon\x20univerjs-icon-'[_0x508acd(0xe2)](_0x15f482,'\x20')[_0x508acd(0xe2)](_0x5db530||'')[_0x508acd(0xea)](),_0x5adb1d=_0x48017c('_'['concat'](Le()));return Y(_0x4b87ee,''[_0x508acd(0xe2)](_0x15f482),{'defIds':_0x4b87ee[_0x508acd(0x110)],'idSuffix':_0x5adb1d[_0x508acd(0x118)]},c({'ref':_0x472b23,'className':_0x29b9cd},_0x21e4b6),_0x3c9d14);});function Y(_0x2e2f8b,_0x1e9555,_0x10736b,_0x58e852,_0x3ee648){var _0x4ce094=_0x451375;return _0x3ad40e(_0x2e2f8b[_0x4ce094(0x84)],c(c({'key':_0x1e9555},De(_0x2e2f8b,_0x10736b,_0x3ee648)),_0x58e852),(xe(_0x2e2f8b,_0x10736b)[_0x4ce094(0xc7)]||[])[_0x4ce094(0xa0)](function(_0x2bf3e5,_0x2ed0e0){var _0x5ebe57=_0x4ce094;return Y(_0x2bf3e5,''['concat'](_0x1e9555,'-')['concat'](_0x2e2f8b[_0x5ebe57(0x84)],'-')[_0x5ebe57(0xe2)](_0x2ed0e0),_0x10736b,void 0x0,_0x3ee648);}));}function De(_0x5caf90,_0x2ad276,_0x5748bc){var _0x271fc3=_0x451375,_0x31bff3=c({},_0x5caf90[_0x271fc3(0x9f)]);_0x5748bc!=null&&_0x5748bc['colorChannel1']&&_0x31bff3[_0x271fc3(0xa9)]===_0x271fc3(0x8b)&&(_0x31bff3['fill']=_0x5748bc[_0x271fc3(0x8b)]),_0x5caf90[_0x271fc3(0x84)]==='mask'&&_0x31bff3['id']&&(_0x31bff3['id']=_0x31bff3['id']+_0x2ad276[_0x271fc3(0x10d)]),Object['entries'](_0x31bff3)[_0x271fc3(0xb2)](function(_0x558cc0){var _0x39f431=_0x271fc3,_0x44a0d3=_0x558cc0[0x0],_0x186ed4=_0x558cc0[0x1];_0x44a0d3===_0x39f431(0xc5)&&typeof _0x186ed4==_0x39f431(0x12b)&&(_0x31bff3[_0x44a0d3]=_0x186ed4['replace'](/url\(#(.*)\)/,_0x39f431(0x121)[_0x39f431(0xe2)](_0x2ad276[_0x39f431(0x10d)],')')));});var _0x4ee8a5=_0x2ad276['defIds'];return!_0x4ee8a5||_0x4ee8a5[_0x271fc3(0x8c)]===0x0||(_0x5caf90[_0x271fc3(0x84)]==='use'&&_0x31bff3[_0x271fc3(0x87)]&&(_0x31bff3[_0x271fc3(0x87)]=_0x31bff3[_0x271fc3(0x87)]+_0x2ad276['idSuffix']),Object[_0x271fc3(0xcf)](_0x31bff3)[_0x271fc3(0xb2)](function(_0x16df4b){var _0x162431=_0x271fc3,_0x558a26=_0x16df4b[0x0],_0x2a2fad=_0x16df4b[0x1];typeof _0x2a2fad==_0x162431(0x12b)&&(_0x31bff3[_0x558a26]=_0x2a2fad[_0x162431(0xe4)](/url\(#(.*)\)/,_0x162431(0x121)[_0x162431(0xe2)](_0x2ad276[_0x162431(0x10d)],')')));})),_0x31bff3;}function xe(_0x3bdc0c,_0x2e8ed3){var _0x3da090=_0x451375,_0x33577a,_0x5a2010=_0x2e8ed3['defIds'];return!_0x5a2010||_0x5a2010[_0x3da090(0x8c)]===0x0?_0x3bdc0c:_0x3bdc0c[_0x3da090(0x84)]===_0x3da090(0xb3)&&(!((_0x33577a=_0x3bdc0c[_0x3da090(0xc7)])===null||_0x33577a===void 0x0)&&_0x33577a[_0x3da090(0x8c)])?c(c({},_0x3bdc0c),{'children':_0x3bdc0c[_0x3da090(0xc7)][_0x3da090(0xa0)](function(_0x36d0bb){var _0x121666=_0x3da090;return typeof _0x36d0bb[_0x121666(0x9f)]['id']==_0x121666(0x12b)&&_0x5a2010&&_0x5a2010[_0x121666(0xe9)](_0x36d0bb[_0x121666(0x9f)]['id'])?c(c({},_0x36d0bb),{'attrs':c(c({},_0x36d0bb[_0x121666(0x9f)]),{'id':_0x36d0bb[_0x121666(0x9f)]['id']+_0x2e8ed3[_0x121666(0x10d)]})}):_0x36d0bb;})}):_0x3bdc0c;}function Le(){var _0x29df3c=_0x451375;return Math[_0x29df3c(0x10c)]()['toString'](0x24)[_0x29df3c(0xf0)](0x2,0x8);}W[_0x451375(0xd8)]=_0x451375(0x81);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x451375(0xf7),'viewBox':_0x451375(0xbf),'width':_0x451375(0xeb),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':_0x451375(0xc1)}},{'tag':'path','attrs':{'fill':_0x451375(0x123),'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':_0x451375(0x95),'clipRule':'evenodd'}}]},B=_0x11caf0(function(_0x43688f,_0x2612ca){return _0x3ad40e(W,Object['assign']({},_0x43688f,{'id':'live-share-icon','ref':_0x2612ca,'icon':ye}));});B[_0x451375(0xd8)]=_0x451375(0x112);var Re=Object[_0x451375(0x11d)],Z=(_0x1e8e3c,_0xac14ff,_0x1d3dfc,_0x5c5eb1)=>{var _0x3b9b1f=_0x451375;for(var _0x199c7c=_0x5c5eb1>0x1?void 0x0:_0x5c5eb1?Re(_0xac14ff,_0x1d3dfc):_0xac14ff,_0x253127=_0x1e8e3c[_0x3b9b1f(0x8c)]-0x1,_0x17b5c3;_0x253127>=0x0;_0x253127--)(_0x17b5c3=_0x1e8e3c[_0x253127])&&(_0x199c7c=_0x17b5c3(_0x199c7c)||_0x199c7c);return _0x199c7c;},f=(_0x52abe5,_0x2362e9)=>(_0x6aec4c,_0xacdf00)=>_0x2362e9(_0x6aec4c,_0xacdf00,_0x52abe5);let I=class extends _0x36a016{constructor(_0x8a0738,_0x21bf37,_0x3c9e24){var _0x533e04=_0x451375;super(),d(this,_0x533e04(0xf2),new Map()),(this[_0x533e04(0xaa)]=_0x8a0738,this[_0x533e04(0xc6)]=_0x21bf37,this[_0x533e04(0x10f)]=_0x3c9e24,this['_init']());}async[_0x451375(0xcc)](_0x1a088b){var _0x58ca37=_0x451375;return this['_entities'][_0x58ca37(0xd3)](_0x1a088b)||await this[_0x58ca37(0xba)](_0x1a088b),this[_0x58ca37(0xf2)][_0x58ca37(0x9a)](_0x1a088b);}[_0x451375(0xdf)](){var _0x5b9904=_0x451375;this[_0x5b9904(0xaa)][_0x5b9904(0xdc)](_0x4c20a0[_0x5b9904(0xf1)])['pipe'](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](async _0xa98328=>{var _0x327ed3=_0x5b9904;const _0x35cc97=_0xa98328['getUnitId']();this[_0x327ed3(0xf2)][_0x327ed3(0xd3)](_0x35cc97)||this[_0x327ed3(0xba)](_0x35cc97);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4c20a0['UNIVER_SHEET'])[_0x5b9904(0x89)](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](_0x1f1528=>{var _0x232484=_0x5b9904;const _0x195bed=_0x1f1528['getUnitId'](),_0x1e1910=this['_entities']['get'](_0x195bed);_0x1e1910==null||_0x1e1910[_0x232484(0x117)]();});}async[_0x451375(0xba)](_0x1e1d04){var _0x5d11b2=_0x451375;const _0x3e8206=await this[_0x5d11b2(0x10f)][_0x5d11b2(0x10e)](_0x1e1d04),_0x1f2fcc=this[_0x5d11b2(0xc6)][_0x5d11b2(0xcd)](C,_0x1e1d04,_0x3e8206);return _0x1f2fcc[_0x5d11b2(0xca)](),this[_0x5d11b2(0xf2)][_0x5d11b2(0x108)](_0x1e1d04,_0x1f2fcc),_0x1f2fcc;}};I=Z([f(0x0,_0x3e5199),f(0x1,_0x28c77f(_0x335107)),f(0x2,_0x28c77f(_0x28a12b))],I);var h=(_0x118872=>(_0x118872[_0x451375(0xb9)]=_0x451375(0xbc),_0x118872[_0x451375(0xb0)]=_0x451375(0xc0),_0x118872['FOLLOWING']=_0x451375(0xfb),_0x118872[_0x451375(0xe0)]='not-following',_0x118872['PRESENTING']='presenting',_0x118872))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x36a016{constructor(_0x563bc5,_0x3bc5db,_0x11d0b5,_0x57d2f0,_0x97ec45){var _0xd76d38=_0x451375;super(),d(this,_0xd76d38(0xb5),new _0x2f2b8d('idle')),d(this,_0xd76d38(0x88),this['_status$'][_0xd76d38(0xf4)]()),d(this,_0xd76d38(0xdf),!0x1),d(this,'_commandDisposable',null),d(this,_0xd76d38(0xb4),null),(this['_unitID']=_0x563bc5,this[_0xd76d38(0xee)]=_0x3bc5db,this[_0xd76d38(0x107)]=_0x11d0b5,this[_0xd76d38(0x102)]=_0x57d2f0,this[_0xd76d38(0xb7)]=_0x97ec45);}get[_0x451375(0xe1)](){var _0x6cc70=_0x451375;return this[_0x6cc70(0xb5)]['getValue']();}[_0x451375(0x117)](){var _0x3bf5fc=_0x451375,_0x31a480;(_0x31a480=this[_0x3bf5fc(0xb1)])==null||_0x31a480['dispose'](),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0x105)](_0x3bf5fc(0xc0)),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0xa2)]();}['init'](){var _0x5e7bdb=_0x451375;this[_0x5e7bdb(0xdf)]||(this['_init']=!0x0,this[_0x5e7bdb(0xee)][_0x5e7bdb(0xe3)][_0x5e7bdb(0x89)](_0x261e2b(this[_0x5e7bdb(0xb8)]))[_0x5e7bdb(0xd1)](_0x44288a=>{var _0x504e32=_0x5e7bdb;switch(_0x44288a){case _0xd06163['OFFLINE']:this[_0x504e32(0xf3)]();break;case _0xd06163['ONLINE']:this[_0x504e32(0x109)]();break;}}),this['_collabSession']['event$']['pipe'](_0x261e2b(this[_0x5e7bdb(0xb8)]))['subscribe'](_0xb03598=>{var _0x344a64=_0x5e7bdb;const {eventID:_0x38f07f}=_0xb03598;switch(_0x38f07f){case _0x248176['LIVESHARE_NEW_HOST']:this[_0x344a64(0x85)](_0xb03598);break;case _0x248176[_0x344a64(0x11e)]:this[_0x344a64(0x83)](_0xb03598);break;case _0x248176[_0x344a64(0x8d)]:this['_handleTerminate']();break;case _0x248176[_0x344a64(0x8f)]:this[_0x344a64(0xbb)](_0xb03598);break;}}));}[_0x451375(0xfd)](){var _0x21abc4=_0x451375;this['_collabSession'][_0x21abc4(0xde)]({'eventID':_0x248176[_0x21abc4(0xc2)],'data':{'unitID':this[_0x21abc4(0xbe)],'userID':this['_collabSession'][_0x21abc4(0xff)]()}},this[_0x21abc4(0xbe)]);}[_0x451375(0xdd)](){var _0x7b7a4a=_0x451375;this[_0x7b7a4a(0xe1)]==='presenting'&&(this[_0x7b7a4a(0xb5)]['next']('idle'),this['_collabSession'][_0x7b7a4a(0xde)]({'eventID':_0x248176[_0x7b7a4a(0x8d)],'data':{'unitID':this[_0x7b7a4a(0xbe)]}},this['_unitID']));}[_0x451375(0xc4)](){var _0x4d6a3d=_0x451375;this[_0x4d6a3d(0xe1)]==='not-following'&&(this['_status$'][_0x4d6a3d(0x105)](_0x4d6a3d(0xfb)),this[_0x4d6a3d(0x91)]());}['stopFollowing'](){var _0x2baaae=_0x451375;this[_0x2baaae(0xe1)]===_0x2baaae(0xfb)&&this[_0x2baaae(0x113)]();}[_0x451375(0x85)](_0x12787f){var _0x319170=_0x451375;const {presenter:_0x44b10a}=_0x12787f['data'],_0xb153c3=this['_collabSession']['getMemberID']();this[_0x319170(0xb4)]=_0x44b10a,_0x44b10a===_0xb153c3?(this[_0x319170(0x113)](),this[_0x319170(0xd2)]()):this[_0x319170(0xe1)]!==_0x319170(0x9c)&&(this[_0x319170(0x11f)](),this['_startFollowing']());}[_0x451375(0x116)](){var _0x451ef0=_0x451375;const _0x4bef16={'eventID':_0x248176[_0x451ef0(0xaf)]};this[_0x451ef0(0xee)][_0x451ef0(0xde)](_0x4bef16,this[_0x451ef0(0xbe)]);}[_0x451375(0xf9)](){var _0x1dff1c=_0x451375;this[_0x1dff1c(0xb4)]=null,this['_status']!=='presenting'&&this[_0x1dff1c(0xc9)]();}[_0x451375(0xbb)](_0x343e27){var _0x4acffb=_0x451375;if(this[_0x4acffb(0xe1)]===_0x4acffb(0xfb)&&this[_0x4acffb(0xb4)]===_0x343e27[_0x4acffb(0x106)]['memberID']){const _0x2bf607=_0x17584c(_0x343e27[_0x4acffb(0x106)])[_0x4acffb(0x125)]['reverse']()[_0x4acffb(0x127)](_0x6e8be5=>_0x6e8be5['id']===_0x198dc6['id']);if(_0x2bf607){const _0x4b17c6=_0x2bf607[_0x4acffb(0xcb)]['unitId'],_0x471c42=_0x2bf607[_0x4acffb(0xcb)]['sheet']['id'];setTimeout(()=>{var _0x16814a=_0x4acffb;this[_0x16814a(0xb7)][_0x16814a(0x82)](_0x21f0ce['id'],{'unitId':_0x4b17c6,'subUnitId':_0x471c42},{'fromCollab':!0x0});});}}}[_0x451375(0xd2)](){var _0xad2cf4=_0x451375;this[_0xad2cf4(0xb5)][_0xad2cf4(0x105)]('presenting');const _0x1b7070=new Map(),_0x1b5804=this[_0xad2cf4(0xb1)]=new _0x1b939f();_0x1b5804[_0xad2cf4(0x8a)](_0x43b1a9(()=>{var _0x494faa=_0xad2cf4;_0x1b7070[_0x494faa(0xb2)](_0x708097=>_0x708097[_0x494faa(0xa2)]()),_0x1b7070[_0x494faa(0xd9)]();})),_0x1b5804[_0xad2cf4(0x8a)](this[_0xad2cf4(0xb7)][_0xad2cf4(0xed)](_0x427efd=>{var _0xabf870=_0xad2cf4,_0x44fb57;if(_0x427efd[_0xabf870(0xac)]!==_0x1862c6[_0xabf870(0xa7)]||!this[_0xabf870(0x102)][_0xabf870(0x92)](_0x427efd['id']))return;const {id:_0x2323f7}=_0x427efd;let _0x5161d5;_0x1b7070[_0xabf870(0xd3)](_0x2323f7)?_0x5161d5=_0x1b7070['get'](_0x2323f7):(_0x5161d5=new _0x1044e5(),_0x1b7070[_0xabf870(0x108)](_0x2323f7,_0x5161d5),_0x5161d5['pipe'](_0x28b226((_0x44fb57=this[_0xabf870(0x107)][_0xabf870(0x101)](Pe))!=null?_0x44fb57:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xabf870(0xd1)](_0x4e1fc3=>{var _0x5127d9=_0xabf870;this[_0x5127d9(0xee)]['send']({'eventID':_0x248176[_0x5127d9(0x11e)],'data':{'unitID':this[_0x5127d9(0xbe)],'operations':{[_0x4e1fc3['id']]:{'id':_0x4e1fc3['id'],'params':JSON[_0x5127d9(0x122)](_0x4e1fc3[_0x5127d9(0xcb)])}}}},this['_unitID']);})),_0x5161d5[_0xabf870(0x105)](_0x427efd);})),this[_0xad2cf4(0x102)][_0xad2cf4(0x9e)](this[_0xad2cf4(0xbe)])[_0xad2cf4(0xb2)](_0x5af010=>this[_0xad2cf4(0xee)][_0xad2cf4(0xde)]({'eventID':_0x248176[_0xad2cf4(0x11e)],'data':{'unitID':this[_0xad2cf4(0xbe)],'operations':{[_0x5af010['id']]:{'id':_0x5af010['id'],'params':JSON[_0xad2cf4(0x122)](_0x5af010[_0xad2cf4(0xcb)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2badc6=_0x451375,_0x1ceb0d;this[_0x2badc6(0xb5)][_0x2badc6(0x105)]('idle'),(_0x1ceb0d=this['_commandDisposable'])==null||_0x1ceb0d[_0x2badc6(0x117)](),this[_0x2badc6(0xb1)]=null;}[_0x451375(0x91)](){var _0xbc2e7=_0x451375,_0x3f009f;(_0x3f009f=this['_commandDisposable'])==null||_0x3f009f[_0xbc2e7(0x117)](),this[_0xbc2e7(0xb5)][_0xbc2e7(0x105)]('following');}[_0x451375(0xc9)](){var _0x7b2231=_0x451375,_0x9b4ecd;this[_0x7b2231(0xb5)]['next'](_0x7b2231(0xc0)),(_0x9b4ecd=this[_0x7b2231(0xb1)])==null||_0x9b4ecd[_0x7b2231(0x117)](),this['_commandDisposable']=null;}[_0x451375(0x113)](){var _0x4c770e=_0x451375,_0x113d7b;this['_status$'][_0x4c770e(0x105)]('not-following'),(_0x113d7b=this[_0x4c770e(0xb1)])==null||_0x113d7b['dispose']();}['_handleOperation'](_0x1a5ccc){var _0x527dfe=_0x451375;if(['presenting',_0x527dfe(0x9c),_0x527dfe(0xbc)][_0x527dfe(0xe9)](this['_status'])||!_0x1a5ccc['data'][_0x527dfe(0x120)]||_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0x120)]===this[_0x527dfe(0xee)][_0x527dfe(0xff)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xb0e559=_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0xec)];Object[_0x527dfe(0x100)](_0xb0e559)['forEach'](_0x49c313=>{var _0x544a45=_0x527dfe;this[_0x544a45(0xb7)][_0x544a45(0x82)](_0x49c313['id'],_0x49c313['params']?JSON[_0x544a45(0xfc)](_0x49c313[_0x544a45(0xcb)]):null,{'fromCollab':!0x0});});}[_0x451375(0xf3)](){var _0x4db867=_0x451375,_0x45686d;this[_0x4db867(0xb5)][_0x4db867(0x105)](_0x4db867(0xbc)),(_0x45686d=this['_commandDisposable'])==null||_0x45686d[_0x4db867(0x117)]();}[_0x451375(0x109)](){var _0x392a0a=_0x451375;this[_0x392a0a(0xb5)][_0x392a0a(0x105)](_0x392a0a(0xc0)),this[_0x392a0a(0x116)]();}};C=Z([f(0x2,_0x346109),f(0x3,_0x28c77f(L)),f(0x4,_0x4a09d4)],C);function Te(){var _0x2327f3=_0x451375;const _0x48ff66=_0x2de017(I),_0x441d35=_0x2de017(_0x3e5199),_0x47257a=_0x25276a(()=>_0x441d35[_0x2327f3(0x12a)](_0x4c20a0[_0x2327f3(0xf1)]),void 0x0,!0x1,[]),[_0x2e6505,_0xae1bc]=_0x55d604(null),[_0x1ac521,_0x33ceca]=_0x55d604(h[_0x2327f3(0xb0)]),_0x45a0db=_0x48017c(null);return _0x44053b(()=>(_0x47257a&&_0x48ff66[_0x2327f3(0xcc)](_0x47257a[_0x2327f3(0xab)]())[_0x2327f3(0xd0)](_0x3c6371=>{var _0x26f634=_0x2327f3;_0xae1bc(_0x3c6371),_0x45a0db['current']=_0x3c6371[_0x26f634(0x88)][_0x26f634(0xd1)](_0x5bd015=>{_0x33ceca(_0x5bd015);});}),()=>{var _0x6dbefd=_0x2327f3,_0x8a6c67;(_0x8a6c67=_0x45a0db[_0x6dbefd(0x118)])==null||_0x8a6c67[_0x6dbefd(0xf8)](),_0x45a0db['current']=null;}),[_0x47257a,_0x48ff66]),_0x2e6505?_0x5aa147(_0x159863,{'align':_0x2327f3(0x9d),'disabled':_0x1ac521===h[_0x2327f3(0xb9)],'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':_0x5aa147($e,{'status':_0x1ac521,'coordinator':_0x2e6505}),'children':_0x5aa147(_0x2327f3(0xf5),{'className':_0x87598b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1ac521===h[_0x2327f3(0xb9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ac521!==h[_0x2327f3(0xb9)]}),'type':_0x2327f3(0xf5),'children':_0x5aa147(B,{'className':_0x2327f3(0x111)})})}):null;}function $e(_0x4731bd){var _0x185e7e=_0x451375;const {status:_0x2e0820,coordinator:_0x437528}=_0x4731bd;switch(_0x2e0820){case h['IDLE']:return _0x5aa147(Fe,{'coordinator':_0x437528});case h[_0x185e7e(0xef)]:return _0x5aa147(He,{'coordinator':_0x437528});case h['NOT_FOLLOWING']:return _0x5aa147(je,{'coordinator':_0x437528});case h[_0x185e7e(0xb9)]:return _0x5aa147(Ve,{});case h['PRESENTING']:return _0x5aa147(Ue,{'coordinator':_0x437528});default:return null;}}function Fe(_0x81a50f){var _0x238dd8=_0x451375;const {coordinator:_0x366f8d}=_0x81a50f;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x238dd8(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x238dd8(0xa3)}),_0x5aa147(_0x352964,{'onClick':()=>_0x366f8d[_0x238dd8(0xfd)](),'children':'Start'})]});}function He(_0x58ecba){var _0x374d5e=_0x451375;const {coordinator:_0x4d3ed5}=_0x58ecba;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x374d5e(0xd7),{'className':_0x374d5e(0xd6),'children':_0x374d5e(0x103)}),_0x5aa147(_0x352964,{'onClick':()=>_0x4d3ed5[_0x374d5e(0x90)](),'children':_0x374d5e(0x129)})]});}function je(_0x510960){var _0x465aa5=_0x451375;const {coordinator:_0x248453}=_0x510960;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x465aa5(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x465aa5(0x86)}),_0x5aa147(_0x352964,{'variant':_0x465aa5(0x98),'onClick':()=>_0x248453['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x23dc1b){var _0x6f889c=_0x451375;const {coordinator:_0x5f4f84}=_0x23dc1b;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x6f889c(0xd7),{'className':_0x6f889c(0xd6),'children':_0x6f889c(0x124)}),_0x5aa147(_0x352964,{'variant':_0x6f889c(0xa6),'onClick':()=>_0x5f4f84[_0x6f889c(0xdd)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2fda1d=_0x451375;return _0x5aa147(_0x5b6ea3,{'children':_0x2fda1d(0x128)});}var Me=Object[_0x451375(0x11d)],ke=(_0x570146,_0x5e55bd,_0x339ca5,_0x3f5675)=>{for(var _0x4bf585=_0x3f5675>0x1?void 0x0:_0x3f5675?Me(_0x5e55bd,_0x339ca5):_0x5e55bd,_0x4ec0c8=_0x570146['length']-0x1,_0x3939e1;_0x4ec0c8>=0x0;_0x4ec0c8--)(_0x3939e1=_0x570146[_0x4ec0c8])&&(_0x4bf585=_0x3939e1(_0x4bf585)||_0x4bf585);return _0x4bf585;},$=(_0xcc8bba,_0x406f94)=>(_0x250d55,_0x24e081)=>_0x406f94(_0x250d55,_0x24e081,_0xcc8bba);let b=class extends _0x2313b0{constructor(_0x16662e,_0x435ddb){var _0x410118=_0x451375;super(),this[_0x410118(0xc6)]=_0x16662e,this[_0x410118(0xad)]=_0x435ddb,this[_0x410118(0x97)]();}[_0x451375(0x97)](){var _0x6b6d42=_0x451375;this[_0x6b6d42(0xe8)](this[_0x6b6d42(0xad)][_0x6b6d42(0x10a)](_0x51a6c7[_0x6b6d42(0xda)],()=>_0x2c0420(Te,this[_0x6b6d42(0xc6)])));}};function _0xa190(_0x32c439,_0x2d498f){var _0x5bdd32=_0x5bdd();return _0xa190=function(_0xa19085,_0xc55785){_0xa19085=_0xa19085-0x80;var _0xeab724=_0x5bdd32[_0xa19085];return _0xeab724;},_0xa190(_0x32c439,_0x2d498f);}b=ke([$(0x0,_0x28c77f(_0x335107)),$(0x1,_0xb65b9)],b);var Ge=Object[_0x451375(0xae)],We=Object[_0x451375(0x11d)],Ye=(_0x18d7aa,_0x445b22,_0x5989cd)=>_0x445b22 in _0x18d7aa?Ge(_0x18d7aa,_0x445b22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5989cd}):_0x18d7aa[_0x445b22]=_0x5989cd,Be=(_0x2c0ed6,_0x8470f6,_0x2a43bf,_0x3e765a)=>{var _0x5b0760=_0x451375;for(var _0x2388d3=_0x3e765a>0x1?void 0x0:_0x3e765a?We(_0x8470f6,_0x2a43bf):_0x8470f6,_0x360398=_0x2c0ed6[_0x5b0760(0x8c)]-0x1,_0x2697e3;_0x360398>=0x0;_0x360398--)(_0x2697e3=_0x2c0ed6[_0x360398])&&(_0x2388d3=_0x2697e3(_0x2388d3)||_0x2388d3);return _0x2388d3;},F=(_0x54775e,_0x28c224)=>(_0x37f304,_0x8fce35)=>_0x28c224(_0x37f304,_0x8fce35,_0x54775e),J=(_0x45a759,_0x51ab50,_0x7823dd)=>Ye(_0x45a759,typeof _0x51ab50!=_0x451375(0xd5)?_0x51ab50+'':_0x51ab50,_0x7823dd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c27e2{constructor(_0x295921=T,_0x148e91,_0x672e2e){var _0x5054f2=_0x451375;super(),this[_0x5054f2(0x9b)]=_0x295921,this[_0x5054f2(0xc6)]=_0x148e91,this[_0x5054f2(0x107)]=_0x672e2e;const {..._0x1ea8db}=_0x3c06a8({},T,this[_0x5054f2(0x9b)]);this[_0x5054f2(0x107)][_0x5054f2(0x114)](Oe,_0x1ea8db);}[_0x451375(0xb6)](){var _0x3ffa5e=_0x451375;_0x4552ae(this[_0x3ffa5e(0xc6)],_0x32a788([[L],[I],[m],[b]],this['_config'][_0x3ffa5e(0x99)])),_0x21a21b(this['_injector'],[[m]]);}[_0x451375(0x10b)](){var _0x1b8371=_0x451375;_0x21a21b(this[_0x1b8371(0xc6)],[[b]]);}};J(O,_0x451375(0xac),_0x4c20a0[_0x451375(0x119)]),J(O,'pluginName',Ze),O=Be([_0x32035a(_0x1dd0cd),F(0x1,_0x28c77f(_0x335107)),F(0x2,_0x346109)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x21acba=_0x24fa;(function(_0x578e56,_0x2e56d8){var _0x342182=_0x24fa,_0x74f752=_0x578e56();while(!![]){try{var _0x39ca79=-parseInt(_0x342182(0x130))/0x1*(-parseInt(_0x342182(0xf5))/0x2)+parseInt(_0x342182(0xbe))/0x3+parseInt(_0x342182(0x126))/0x4*(parseInt(_0x342182(0x156))/0x5)+-parseInt(_0x342182(0xcc))/0x6*(parseInt(_0x342182(0xf9))/0x7)+parseInt(_0x342182(0xde))/0x8*(parseInt(_0x342182(0x13b))/0x9)+-parseInt(_0x342182(0x131))/0xa+-parseInt(_0x342182(0x12e))/0xb;if(_0x39ca79===_0x2e56d8)break;else _0x74f752['push'](_0x74f752['shift']());}catch(_0x5aab02){_0x74f752['push'](_0x74f752['shift']());}}}(_0x56c5,0x6aaa7));var q=Object['defineProperty'],z=(_0x3eca6b,_0x2640c9,_0x3696f1)=>_0x2640c9 in _0x3eca6b?q(_0x3eca6b,_0x2640c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3696f1}):_0x3eca6b[_0x2640c9]=_0x3696f1,d=(_0x1e8983,_0x347574,_0x41f41f)=>z(_0x1e8983,typeof _0x347574!=_0x21acba(0xbd)?_0x347574+'':_0x347574,_0x41f41f);import{CollaborationSessionService as _0x418e8c,SessionStatus as _0x4c8836,UniverCollaborationClientPlugin as _0x2380c4}from'@univerjs-pro/collaboration-client';import{Disposable as _0x49ef90,toDisposable as _0x52738f,Inject as _0x45e3a0,IUniverInstanceService as _0x3bd673,Injector as _0x3944a4,IConfigService as _0x56c18f,ICommandService as _0x40b986,RxDisposable as _0x42375c,UniverInstanceType as _0x2636cb,DisposableCollection as _0x240d80,CommandType as _0x2b26cd,DependentOn as _0x49227d,Plugin as _0xec22e2,merge as _0x47242e,registerDependencies as _0x26645d,mergeOverrideWithDependencies as _0x508f67,touchDependencies as _0x34849a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x394a08,InsertSheetMutation as _0x587516}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x406fa2,SetScrollOperation as _0x3b0e8e}from'@univerjs/sheets-ui';import{useDependency as _0x192779,useObservable as _0x17612b,IUIPartsService as _0x257d82,BuiltInUIPart as _0x5a30be,connectInjector as _0x3350ba}from'@univerjs/ui';import{jsx as _0xc206b,jsxs as _0x10d624,Fragment as _0x58a9cf}from'react/jsx-runtime';import{Dropdown as _0x5b29ed,clsx as _0x1dfccb,Button as _0xff20a5}from'@univerjs/design';import{forwardRef as _0x58e026,useRef as _0x15fff5,createElement as _0x1ce21c,useState as _0x153009,useEffect as _0x1fea22}from'react';import{CollaborationEvent as _0x2a9a59,parseProtocolChangeset as _0x555882}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5c8398,Subject as _0x4b30d1}from'rxjs';import{takeUntil as _0x370249,throttleTime as _0xcd833b}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x49ef90{constructor(){var _0x418b81=_0x21acba;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x418b81(0x15e),new Set());}['registerSharedOperation'](_0x56eb73){var _0x2e68e0=_0x21acba;return this[_0x2e68e0(0xf6)][_0x2e68e0(0x121)](_0x56eb73),_0x52738f(()=>this[_0x2e68e0(0xf6)]['delete'](_0x56eb73));}[_0x21acba(0xcb)](_0x23d462){var _0x1db8c8=_0x21acba;return this['_reporters']['add'](_0x23d462),_0x52738f(()=>this[_0x1db8c8(0x15e)][_0x1db8c8(0xd4)](_0x23d462));}['shouldShareOperation'](_0x367cbb){var _0x552963=_0x21acba;return this[_0x552963(0xf6)][_0x552963(0x101)](_0x367cbb);}['getInitialStates'](_0x5d1a27){var _0x307f14=_0x21acba;return Array[_0x307f14(0x106)](this[_0x307f14(0x15e)])[_0x307f14(0x11b)](_0xe104bc=>_0xe104bc(_0x5d1a27));}}var Ee=Object[_0x21acba(0x111)],we=(_0x4eeed7,_0x49d6d4,_0x21d7f5,_0x2d8035)=>{var _0x142041=_0x21acba;for(var _0x917484=_0x2d8035>0x1?void 0x0:_0x2d8035?Ee(_0x49d6d4,_0x21d7f5):_0x49d6d4,_0x30a42a=_0x4eeed7[_0x142041(0x13e)]-0x1,_0x3c9ddc;_0x30a42a>=0x0;_0x30a42a--)(_0x3c9ddc=_0x4eeed7[_0x30a42a])&&(_0x917484=_0x3c9ddc(_0x917484)||_0x917484);return _0x917484;},Ne=(_0x380c88,_0x1e8e0c)=>(_0x113b80,_0x457b83)=>_0x1e8e0c(_0x113b80,_0x457b83,_0x380c88);let m=class extends _0x49ef90{constructor(_0x3eddf2){var _0xfdd21d=_0x21acba;super(),this[_0xfdd21d(0x128)]=_0x3eddf2,this[_0xfdd21d(0x14b)]();}[_0x21acba(0x14b)](){var _0x46ac6e=_0x21acba;[_0x406fa2['id'],_0x3b0e8e['id'],_0x394a08['id']][_0x46ac6e(0xec)](_0x52dc6c=>{var _0x5d9a7a=_0x46ac6e;this[_0x5d9a7a(0xd3)](this[_0x5d9a7a(0x128)][_0x5d9a7a(0x12d)](_0x52dc6c));});}};m=we([Ne(0x0,_0x45e3a0(L))],m);var c=function(){var _0xc60124=_0x21acba;return c=Object[_0xc60124(0x12f)]||function(_0x4df1fb){var _0x352269=_0xc60124;for(var _0x437f98,_0x3129c4=0x1,_0x1133f8=arguments['length'];_0x3129c4<_0x1133f8;_0x3129c4++){_0x437f98=arguments[_0x3129c4];for(var _0xb08396 in _0x437f98)Object[_0x352269(0xb1)][_0x352269(0x138)][_0x352269(0xe0)](_0x437f98,_0xb08396)&&(_0x4df1fb[_0xb08396]=_0x437f98[_0xb08396]);}return _0x4df1fb;},c[_0xc60124(0xc5)](this,arguments);},Ce=function(_0x24bffb,_0x4890b5){var _0x30244d=_0x21acba,_0x31aa66={};for(var _0xb3dd66 in _0x24bffb)Object['prototype'][_0x30244d(0x138)][_0x30244d(0xe0)](_0x24bffb,_0xb3dd66)&&_0x4890b5[_0x30244d(0x109)](_0xb3dd66)<0x0&&(_0x31aa66[_0xb3dd66]=_0x24bffb[_0xb3dd66]);if(_0x24bffb!=null&&typeof Object[_0x30244d(0xb5)]==_0x30244d(0x123)){for(var _0x354035=0x0,_0xb3dd66=Object[_0x30244d(0xb5)](_0x24bffb);_0x354035<_0xb3dd66['length'];_0x354035++)_0x4890b5['indexOf'](_0xb3dd66[_0x354035])<0x0&&Object[_0x30244d(0xb1)][_0x30244d(0xe4)][_0x30244d(0xe0)](_0x24bffb,_0xb3dd66[_0x354035])&&(_0x31aa66[_0xb3dd66[_0x354035]]=_0x24bffb[_0xb3dd66[_0x354035]]);}return _0x31aa66;},W=_0x58e026(function(_0x4e811,_0xaf7f92){var _0x2913de=_0x21acba,_0x5d36aa=_0x4e811[_0x2913de(0x134)],_0x5c9086=_0x4e811['id'],_0x256015=_0x4e811[_0x2913de(0x124)],_0x189783=_0x4e811[_0x2913de(0x117)],_0x1b5e7e=Ce(_0x4e811,[_0x2913de(0x134),'id',_0x2913de(0x124),'extend']),_0x55a6b5=_0x2913de(0xe8)[_0x2913de(0x15b)](_0x5c9086,'\x20')[_0x2913de(0x15b)](_0x256015||'')[_0x2913de(0x10e)](),_0xf89af3=_0x15fff5('_'[_0x2913de(0x15b)](Le()));return Y(_0x5d36aa,''[_0x2913de(0x15b)](_0x5c9086),{'defIds':_0x5d36aa['defIds'],'idSuffix':_0xf89af3[_0x2913de(0x120)]},c({'ref':_0xaf7f92,'className':_0x55a6b5},_0x1b5e7e),_0x189783);});function Y(_0x5725b1,_0x4c07f8,_0x587561,_0x11f703,_0x46f580){var _0x5466b7=_0x21acba;return _0x1ce21c(_0x5725b1[_0x5466b7(0x104)],c(c({'key':_0x4c07f8},De(_0x5725b1,_0x587561,_0x46f580)),_0x11f703),(xe(_0x5725b1,_0x587561)['children']||[])[_0x5466b7(0x11b)](function(_0x236cea,_0x2296d4){var _0x4de01a=_0x5466b7;return Y(_0x236cea,''['concat'](_0x4c07f8,'-')[_0x4de01a(0x15b)](_0x5725b1[_0x4de01a(0x104)],'-')[_0x4de01a(0x15b)](_0x2296d4),_0x587561,void 0x0,_0x46f580);}));}function De(_0x20645a,_0xaef010,_0x74fda){var _0x326e1b=_0x21acba,_0xca9673=c({},_0x20645a[_0x326e1b(0xed)]);_0x74fda!=null&&_0x74fda['colorChannel1']&&_0xca9673['fill']===_0x326e1b(0xb2)&&(_0xca9673[_0x326e1b(0xca)]=_0x74fda[_0x326e1b(0xb2)]),_0x20645a[_0x326e1b(0x104)]===_0x326e1b(0xd5)&&_0xca9673['id']&&(_0xca9673['id']=_0xca9673['id']+_0xaef010[_0x326e1b(0xe5)]),Object[_0x326e1b(0xee)](_0xca9673)[_0x326e1b(0xec)](function(_0x8b58be){var _0xde5e3b=_0x326e1b,_0xc553fc=_0x8b58be[0x0],_0x2b8dd3=_0x8b58be[0x1];_0xc553fc==='mask'&&typeof _0x2b8dd3=='string'&&(_0xca9673[_0xc553fc]=_0x2b8dd3['replace'](/url\(#(.*)\)/,'url(#$1'[_0xde5e3b(0x15b)](_0xaef010[_0xde5e3b(0xe5)],')')));});var _0x8aa200=_0xaef010['defIds'];return!_0x8aa200||_0x8aa200[_0x326e1b(0x13e)]===0x0||(_0x20645a[_0x326e1b(0x104)]===_0x326e1b(0xf4)&&_0xca9673[_0x326e1b(0xd7)]&&(_0xca9673['xlink:href']=_0xca9673['xlink:href']+_0xaef010[_0x326e1b(0xe5)]),Object[_0x326e1b(0xee)](_0xca9673)[_0x326e1b(0xec)](function(_0x3ee18f){var _0x2fe06b=_0x326e1b,_0x5d7b96=_0x3ee18f[0x0],_0x57cc7f=_0x3ee18f[0x1];typeof _0x57cc7f==_0x2fe06b(0xc0)&&(_0xca9673[_0x5d7b96]=_0x57cc7f[_0x2fe06b(0xc2)](/url\(#(.*)\)/,'url(#$1'['concat'](_0xaef010[_0x2fe06b(0xe5)],')')));})),_0xca9673;}function xe(_0x5ce56c,_0x2a5030){var _0x202836=_0x21acba,_0x206975,_0x36f756=_0x2a5030[_0x202836(0xe2)];return!_0x36f756||_0x36f756[_0x202836(0x13e)]===0x0?_0x5ce56c:_0x5ce56c['tag']===_0x202836(0x122)&&(!((_0x206975=_0x5ce56c[_0x202836(0xd6)])===null||_0x206975===void 0x0)&&_0x206975[_0x202836(0x13e)])?c(c({},_0x5ce56c),{'children':_0x5ce56c[_0x202836(0xd6)][_0x202836(0x11b)](function(_0x42470e){var _0x513362=_0x202836;return typeof _0x42470e[_0x513362(0xed)]['id']==_0x513362(0xc0)&&_0x36f756&&_0x36f756['includes'](_0x42470e[_0x513362(0xed)]['id'])?c(c({},_0x42470e),{'attrs':c(c({},_0x42470e['attrs']),{'id':_0x42470e[_0x513362(0xed)]['id']+_0x2a5030[_0x513362(0xe5)]})}):_0x42470e;})}):_0x5ce56c;}function Le(){var _0x365759=_0x21acba;return Math[_0x365759(0xd9)]()[_0x365759(0x12c)](0x24)[_0x365759(0xae)](0x2,0x8);}W['displayName']=_0x21acba(0xdb);var ye={'tag':_0x21acba(0xcf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x21acba(0x15a),'viewBox':_0x21acba(0x135),'width':'1em','height':_0x21acba(0xfd)},'children':[{'tag':_0x21acba(0xb6),'attrs':{'fill':_0x21acba(0x140),'d':_0x21acba(0x144)}},{'tag':_0x21acba(0xb6),'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':_0x21acba(0x10a),'clipRule':_0x21acba(0x10a)}}]},B=_0x58e026(function(_0x386693,_0x5a0fe5){var _0x282107=_0x21acba;return _0x1ce21c(W,Object['assign']({},_0x386693,{'id':_0x282107(0xac),'ref':_0x5a0fe5,'icon':ye}));});B[_0x21acba(0xf3)]=_0x21acba(0xf1);var Re=Object[_0x21acba(0x111)],Z=(_0x3f4a7f,_0x54afd3,_0x34f612,_0x45a95a)=>{for(var _0x2a935e=_0x45a95a>0x1?void 0x0:_0x45a95a?Re(_0x54afd3,_0x34f612):_0x54afd3,_0x50c49b=_0x3f4a7f['length']-0x1,_0x298675;_0x50c49b>=0x0;_0x50c49b--)(_0x298675=_0x3f4a7f[_0x50c49b])&&(_0x2a935e=_0x298675(_0x2a935e)||_0x2a935e);return _0x2a935e;},f=(_0x2e2ac9,_0x3bc973)=>(_0x47eae1,_0x2dedc3)=>_0x3bc973(_0x47eae1,_0x2dedc3,_0x2e2ac9);let I=class extends _0x42375c{constructor(_0x42c7b1,_0x257f66,_0x12c234){var _0x572291=_0x21acba;super(),d(this,'_entities',new Map()),(this[_0x572291(0xfa)]=_0x42c7b1,this[_0x572291(0x142)]=_0x257f66,this[_0x572291(0x11e)]=_0x12c234,this[_0x572291(0x14b)]());}async[_0x21acba(0x151)](_0x5564f1){var _0x565b63=_0x21acba;return this[_0x565b63(0xeb)]['has'](_0x5564f1)||await this[_0x565b63(0x114)](_0x5564f1),this[_0x565b63(0xeb)]['get'](_0x5564f1);}['_init'](){var _0x593a29=_0x21acba;this[_0x593a29(0xfa)][_0x593a29(0x100)](_0x2636cb[_0x593a29(0x11d)])[_0x593a29(0xb4)](_0x370249(this[_0x593a29(0xad)]))['subscribe'](async _0x3f3127=>{var _0x3720ff=_0x593a29;const _0x4992e9=_0x3f3127['getUnitId']();this['_entities'][_0x3720ff(0x101)](_0x4992e9)||this[_0x3720ff(0x114)](_0x4992e9);}),this[_0x593a29(0xfa)]['getTypeOfUnitDisposed$'](_0x2636cb[_0x593a29(0x11d)])[_0x593a29(0xb4)](_0x370249(this['dispose$']))[_0x593a29(0x141)](_0x315b46=>{var _0x23da2b=_0x593a29;const _0x5aa029=_0x315b46[_0x23da2b(0x143)](),_0x168efb=this[_0x23da2b(0xeb)][_0x23da2b(0x158)](_0x5aa029);_0x168efb==null||_0x168efb[_0x23da2b(0x112)]();});}async[_0x21acba(0x114)](_0x51c9c8){var _0x83fc28=_0x21acba;const _0x361280=await this[_0x83fc28(0x11e)][_0x83fc28(0xbf)](_0x51c9c8),_0x5310cb=this['_injector']['createInstance'](C,_0x51c9c8,_0x361280);return _0x5310cb[_0x83fc28(0xaf)](),this[_0x83fc28(0xeb)][_0x83fc28(0xc9)](_0x51c9c8,_0x5310cb),_0x5310cb;}};I=Z([f(0x0,_0x3bd673),f(0x1,_0x45e3a0(_0x3944a4)),f(0x2,_0x45e3a0(_0x418e8c))],I);var h=(_0x2b3c22=>(_0x2b3c22['OFFLINE']=_0x21acba(0x107),_0x2b3c22[_0x21acba(0xb9)]=_0x21acba(0x14c),_0x2b3c22[_0x21acba(0xc8)]='following',_0x2b3c22['NOT_FOLLOWING']=_0x21acba(0x110),_0x2b3c22[_0x21acba(0x147)]='presenting',_0x2b3c22))(h||{});const Pe=_0x21acba(0x150),Ae=0xc8;let C=class extends _0x42375c{constructor(_0x4f3673,_0x4a6691,_0x27dbca,_0x10e86c,_0x1927c0){var _0x590299=_0x21acba;super(),d(this,_0x590299(0x154),new _0x5c8398(_0x590299(0x14c))),d(this,_0x590299(0xc6),this[_0x590299(0x154)][_0x590299(0x14e)]()),d(this,_0x590299(0x14b),!0x1),d(this,_0x590299(0x15f),null),d(this,'_presenter',null),(this[_0x590299(0xb7)]=_0x4f3673,this[_0x590299(0xdc)]=_0x4a6691,this[_0x590299(0x102)]=_0x27dbca,this['_liveShareService']=_0x10e86c,this[_0x590299(0x119)]=_0x1927c0);}get[_0x21acba(0x103)](){var _0x5cdaa4=_0x21acba;return this[_0x5cdaa4(0x154)][_0x5cdaa4(0x132)]();}[_0x21acba(0x112)](){var _0x1b4cd3=_0x21acba,_0x1cff20;(_0x1cff20=this['_commandDisposable'])==null||_0x1cff20['dispose'](),this['_status$'][_0x1b4cd3(0xe3)]('idle'),this['_status$'][_0x1b4cd3(0x15d)]();}['init'](){var _0x4378d2=_0x21acba;this[_0x4378d2(0x14b)]||(this[_0x4378d2(0x14b)]=!0x0,this['_collabSession'][_0x4378d2(0x15c)][_0x4378d2(0xb4)](_0x370249(this[_0x4378d2(0xad)]))[_0x4378d2(0x141)](_0xec6771=>{var _0x5652b6=_0x4378d2;switch(_0xec6771){case _0x4c8836['OFFLINE']:this[_0x5652b6(0x14d)]();break;case _0x4c8836[_0x5652b6(0x13d)]:this['_handleOnline']();break;}}),this[_0x4378d2(0xdc)][_0x4378d2(0x153)]['pipe'](_0x370249(this['dispose$']))[_0x4378d2(0x141)](_0x16196f=>{var _0x2dd5ea=_0x4378d2;const {eventID:_0x39aecc}=_0x16196f;switch(_0x39aecc){case _0x2a9a59[_0x2dd5ea(0xbb)]:this[_0x2dd5ea(0xb3)](_0x16196f);break;case _0x2a9a59[_0x2dd5ea(0x139)]:this[_0x2dd5ea(0x10f)](_0x16196f);break;case _0x2a9a59['LIVESHARE_TERMINATE']:this[_0x2dd5ea(0x127)]();break;case _0x2a9a59['NEW_CHANGESETS']:this[_0x2dd5ea(0x148)](_0x16196f);break;}}));}[_0x21acba(0x155)](){var _0x42e76b=_0x21acba;this['_collabSession'][_0x42e76b(0xda)]({'eventID':_0x2a9a59['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x42e76b(0xb7)],'userID':this[_0x42e76b(0xdc)][_0x42e76b(0xea)]()}},this[_0x42e76b(0xb7)]);}['stopPresenting'](){var _0xb9def3=_0x21acba;this[_0xb9def3(0x103)]===_0xb9def3(0xf2)&&(this[_0xb9def3(0x154)]['next'](_0xb9def3(0x14c)),this['_collabSession']['send']({'eventID':_0x2a9a59[_0xb9def3(0xc7)],'data':{'unitID':this[_0xb9def3(0xb7)]}},this[_0xb9def3(0xb7)]));}[_0x21acba(0xcd)](){var _0x56f90a=_0x21acba;this['_status']===_0x56f90a(0x110)&&(this[_0x56f90a(0x154)][_0x56f90a(0xe3)](_0x56f90a(0xe9)),this[_0x56f90a(0x108)]());}[_0x21acba(0xbc)](){var _0x126fdc=_0x21acba;this[_0x126fdc(0x103)]===_0x126fdc(0xe9)&&this['_stopFollowing']();}[_0x21acba(0xb3)](_0x2f363f){var _0x218a2d=_0x21acba;const {presenter:_0x36769f}=_0x2f363f[_0x218a2d(0x146)],_0x359182=this[_0x218a2d(0xdc)][_0x218a2d(0xea)]();this[_0x218a2d(0x10c)]=_0x36769f,_0x36769f===_0x359182?(this[_0x218a2d(0x11f)](),this[_0x218a2d(0x118)]()):this[_0x218a2d(0x103)]!==_0x218a2d(0x110)&&(this['_stopPresenting'](),this[_0x218a2d(0x108)]());}[_0x21acba(0xc1)](){var _0x120dc6=_0x21acba;const _0x4b7bbc={'eventID':_0x2a9a59['LIVESHARE_FETCH_OPERATIONS']};this[_0x120dc6(0xdc)][_0x120dc6(0xda)](_0x4b7bbc,this['_unitID']);}[_0x21acba(0x127)](){var _0x399c1a=_0x21acba;this[_0x399c1a(0x10c)]=null,this['_status']!==_0x399c1a(0xf2)&&this['_beIdle']();}[_0x21acba(0x148)](_0x10fa4c){var _0x6239e0=_0x21acba;if(this[_0x6239e0(0x103)]===_0x6239e0(0xe9)&&this['_presenter']===_0x10fa4c[_0x6239e0(0x146)][_0x6239e0(0xd1)]){const _0x16524b=_0x555882(_0x10fa4c[_0x6239e0(0x146)])[_0x6239e0(0xef)]['reverse']()[_0x6239e0(0xc3)](_0x549779=>_0x549779['id']===_0x587516['id']);if(_0x16524b){const _0x1a89fa=_0x16524b[_0x6239e0(0xd8)]['unitId'],_0x48c0ae=_0x16524b[_0x6239e0(0xd8)][_0x6239e0(0xb8)]['id'];setTimeout(()=>{var _0x4584fe=_0x6239e0;this[_0x4584fe(0x119)][_0x4584fe(0x115)](_0x394a08['id'],{'unitId':_0x1a89fa,'subUnitId':_0x48c0ae},{'fromCollab':!0x0});});}}}[_0x21acba(0x118)](){var _0xc608f5=_0x21acba;this['_status$']['next']('presenting');const _0x476633=new Map(),_0xfe239=this[_0xc608f5(0x15f)]=new _0x240d80();_0xfe239['add'](_0x52738f(()=>{var _0x176286=_0xc608f5;_0x476633[_0x176286(0xec)](_0x3a77aa=>_0x3a77aa[_0x176286(0x15d)]()),_0x476633[_0x176286(0x11c)]();})),_0xfe239[_0xc608f5(0x121)](this['_commandService'][_0xc608f5(0xd2)](_0x10ad48=>{var _0x4394ab=_0xc608f5,_0x49f695;if(_0x10ad48[_0x4394ab(0x10b)]!==_0x2b26cd[_0x4394ab(0xfc)]||!this[_0x4394ab(0x128)][_0x4394ab(0xff)](_0x10ad48['id']))return;const {id:_0x27b991}=_0x10ad48;let _0x792d99;_0x476633[_0x4394ab(0x101)](_0x27b991)?_0x792d99=_0x476633['get'](_0x27b991):(_0x792d99=new _0x4b30d1(),_0x476633[_0x4394ab(0xc9)](_0x27b991,_0x792d99),_0x792d99['pipe'](_0xcd833b((_0x49f695=this[_0x4394ab(0x102)][_0x4394ab(0x113)](Pe))!=null?_0x49f695:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4394ab(0x141)](_0x5ea63f=>{var _0x3c7593=_0x4394ab;this[_0x3c7593(0xdc)][_0x3c7593(0xda)]({'eventID':_0x2a9a59[_0x3c7593(0x139)],'data':{'unitID':this[_0x3c7593(0xb7)],'operations':{[_0x5ea63f['id']]:{'id':_0x5ea63f['id'],'params':JSON[_0x3c7593(0x136)](_0x5ea63f[_0x3c7593(0xd8)])}}}},this[_0x3c7593(0xb7)]);})),_0x792d99[_0x4394ab(0xe3)](_0x10ad48);})),this[_0xc608f5(0x128)][_0xc608f5(0x129)](this[_0xc608f5(0xb7)])[_0xc608f5(0xec)](_0x325b0f=>this[_0xc608f5(0xdc)][_0xc608f5(0xda)]({'eventID':_0x2a9a59[_0xc608f5(0x139)],'data':{'unitID':this['_unitID'],'operations':{[_0x325b0f['id']]:{'id':_0x325b0f['id'],'params':JSON['stringify'](_0x325b0f['params'])}}}},this['_unitID']));}[_0x21acba(0x125)](){var _0x4574e9=_0x21acba,_0x1fe9c1;this['_status$']['next'](_0x4574e9(0x14c)),(_0x1fe9c1=this[_0x4574e9(0x15f)])==null||_0x1fe9c1[_0x4574e9(0x112)](),this[_0x4574e9(0x15f)]=null;}[_0x21acba(0x108)](){var _0x197bb2=_0x21acba,_0x5d2a0c;(_0x5d2a0c=this[_0x197bb2(0x15f)])==null||_0x5d2a0c[_0x197bb2(0x112)](),this[_0x197bb2(0x154)][_0x197bb2(0xe3)](_0x197bb2(0xe9));}['_beIdle'](){var _0x529434=_0x21acba,_0x3be2fd;this[_0x529434(0x154)][_0x529434(0xe3)](_0x529434(0x14c)),(_0x3be2fd=this[_0x529434(0x15f)])==null||_0x3be2fd[_0x529434(0x112)](),this[_0x529434(0x15f)]=null;}[_0x21acba(0x11f)](){var _0x262717=_0x21acba,_0x323b87;this[_0x262717(0x154)][_0x262717(0xe3)](_0x262717(0x110)),(_0x323b87=this[_0x262717(0x15f)])==null||_0x323b87[_0x262717(0x112)]();}[_0x21acba(0x10f)](_0x1ab44d){var _0x32ee77=_0x21acba;if([_0x32ee77(0xf2),_0x32ee77(0x110),_0x32ee77(0x107)][_0x32ee77(0x157)](this[_0x32ee77(0x103)])||!_0x1ab44d[_0x32ee77(0x146)][_0x32ee77(0xf8)]||_0x1ab44d['data'][_0x32ee77(0xf8)]===this[_0x32ee77(0xdc)]['getMemberID']())return;this[_0x32ee77(0x103)]===_0x32ee77(0x14c)&&this[_0x32ee77(0x108)]();const _0x4ceed3=_0x1ab44d[_0x32ee77(0x146)][_0x32ee77(0xe1)];Object['values'](_0x4ceed3)[_0x32ee77(0xec)](_0x46f543=>{var _0x5db352=_0x32ee77;this[_0x5db352(0x119)][_0x5db352(0x115)](_0x46f543['id'],_0x46f543[_0x5db352(0xd8)]?JSON[_0x5db352(0x116)](_0x46f543[_0x5db352(0xd8)]):null,{'fromCollab':!0x0});});}[_0x21acba(0x14d)](){var _0x4b9222=_0x21acba,_0x2e002c;this['_status$']['next']('offline'),(_0x2e002c=this[_0x4b9222(0x15f)])==null||_0x2e002c[_0x4b9222(0x112)]();}[_0x21acba(0x137)](){var _0x573ecd=_0x21acba;this[_0x573ecd(0x154)][_0x573ecd(0xe3)](_0x573ecd(0x14c)),this[_0x573ecd(0xc1)]();}};C=Z([f(0x2,_0x56c18f),f(0x3,_0x45e3a0(L)),f(0x4,_0x40b986)],C);function Te(){var _0x6c1069=_0x21acba;const _0x448ab1=_0x192779(I),_0x5eb56c=_0x192779(_0x3bd673),_0x1afc80=_0x17612b(()=>_0x5eb56c[_0x6c1069(0xe6)](_0x2636cb[_0x6c1069(0x11d)]),void 0x0,!0x1,[]),[_0x55a08d,_0xf14ce9]=_0x153009(null),[_0x314a70,_0xf14ed9]=_0x153009(h[_0x6c1069(0xb9)]),_0x11456b=_0x15fff5(null);return _0x1fea22(()=>(_0x1afc80&&_0x448ab1['getLiveShareCoordinator'](_0x1afc80['getUnitId']())[_0x6c1069(0xd0)](_0x171cf7=>{var _0x4a77df=_0x6c1069;_0xf14ce9(_0x171cf7),_0x11456b[_0x4a77df(0x120)]=_0x171cf7[_0x4a77df(0xc6)]['subscribe'](_0x152223=>{_0xf14ed9(_0x152223);});}),()=>{var _0x26b8da=_0x6c1069,_0x223902;(_0x223902=_0x11456b[_0x26b8da(0x120)])==null||_0x223902[_0x26b8da(0x14a)](),_0x11456b[_0x26b8da(0x120)]=null;}),[_0x1afc80,_0x448ab1]),_0x55a08d?_0xc206b(_0x5b29ed,{'align':'end','disabled':_0x314a70===h[_0x6c1069(0x152)],'className':_0x6c1069(0x13a),'overlay':_0xc206b($e,{'status':_0x314a70,'coordinator':_0x55a08d}),'children':_0xc206b(_0x6c1069(0xdf),{'className':_0x1dfccb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x314a70===h[_0x6c1069(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x314a70!==h[_0x6c1069(0x152)]}),'type':_0x6c1069(0xdf),'children':_0xc206b(B,{'className':'univer-size-4'})})}):null;}function $e(_0x2426dd){var _0x506e88=_0x21acba;const {status:_0x3da7c0,coordinator:_0x4bbeb9}=_0x2426dd;switch(_0x3da7c0){case h[_0x506e88(0xb9)]:return _0xc206b(Fe,{'coordinator':_0x4bbeb9});case h[_0x506e88(0xc8)]:return _0xc206b(He,{'coordinator':_0x4bbeb9});case h[_0x506e88(0xdd)]:return _0xc206b(je,{'coordinator':_0x4bbeb9});case h[_0x506e88(0x152)]:return _0xc206b(Ve,{});case h[_0x506e88(0x147)]:return _0xc206b(Ue,{'coordinator':_0x4bbeb9});default:return null;}}function Fe(_0x251122){var _0x45a757=_0x21acba;const {coordinator:_0x2ef4ac}=_0x251122;return _0x10d624(_0x58a9cf,{'children':[_0xc206b('div',{'className':_0x45a757(0x145),'children':_0x45a757(0x11a)}),_0xc206b(_0xff20a5,{'onClick':()=>_0x2ef4ac[_0x45a757(0x155)](),'children':_0x45a757(0xc4)})]});}function He(_0x11b326){var _0x446dca=_0x21acba;const {coordinator:_0x2e86c8}=_0x11b326;return _0x10d624(_0x58a9cf,{'children':[_0xc206b(_0x446dca(0xce),{'className':_0x446dca(0x145),'children':_0x446dca(0xba)}),_0xc206b(_0xff20a5,{'onClick':()=>_0x2e86c8[_0x446dca(0xbc)](),'children':'Stop\x20following'})]});}function je(_0x57388a){var _0x75961=_0x21acba;const {coordinator:_0xdb234b}=_0x57388a;return _0x10d624(_0x58a9cf,{'children':[_0xc206b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x75961(0x12b)}),_0xc206b(_0xff20a5,{'variant':'text','onClick':()=>_0xdb234b[_0x75961(0xcd)](),'children':'Start\x20following'})]});}function Ue(_0x99db5d){var _0xca61f5=_0x21acba;const {coordinator:_0x342ac3}=_0x99db5d;return _0x10d624(_0x58a9cf,{'children':[_0xc206b(_0xca61f5(0xce),{'className':_0xca61f5(0x145),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xc206b(_0xff20a5,{'variant':_0xca61f5(0x14f),'onClick':()=>_0x342ac3[_0xca61f5(0x133)](),'children':_0xca61f5(0x13f)})]});}function Ve(){var _0x1c32c4=_0x21acba;return _0xc206b(_0x58a9cf,{'children':_0x1c32c4(0x10d)});}var Me=Object[_0x21acba(0x111)],ke=(_0x5b3b96,_0x3b742a,_0x2a5025,_0x26d7fa)=>{var _0x1961b0=_0x21acba;for(var _0x59c165=_0x26d7fa>0x1?void 0x0:_0x26d7fa?Me(_0x3b742a,_0x2a5025):_0x3b742a,_0x3c777c=_0x5b3b96[_0x1961b0(0x13e)]-0x1,_0x20e0a4;_0x3c777c>=0x0;_0x3c777c--)(_0x20e0a4=_0x5b3b96[_0x3c777c])&&(_0x59c165=_0x20e0a4(_0x59c165)||_0x59c165);return _0x59c165;},$=(_0x3412ad,_0x18a6bd)=>(_0x1bae55,_0x34c4e4)=>_0x18a6bd(_0x1bae55,_0x34c4e4,_0x3412ad);function _0x56c5(){var _0xec1c0c=['UniverIcon','_collabSession','NOT_FOLLOWING','42984wAwFpu','button','call','operations','defIds','next','propertyIsEnumerable','idSuffix','getCurrentTypeOfUnit$','defineProperty','univerjs-icon\x20univerjs-icon-','following','getMemberID','_entities','forEach','attrs','entries','mutations','UNIVER_UNKNOWN','LiveShareIcon','presenting','displayName','use','4jXvUOq','_sharedOperations','_uiPartsService','presenter','4589669XwEufQ','_univerInstanceService','pluginName','OPERATION','1em','HEADER_MENU','shouldShareOperation','getTypeOfUnitAdded$','has','_configService','_status','tag','UNIVER_LIVE_SHARE_PLUGIN','from','offline','_startFollowing','indexOf','evenodd','type','_presenter','You\x27are\x20offline.','trim','_handleOperation','not-following','getOwnPropertyDescriptor','dispose','getConfig','_startLiveShareCoordinator','executeCommand','parse','extend','_startPresenting','_commandService','Present\x20this\x20document','map','clear','UNIVER_SHEET','_collabSessionService','_stopFollowing','current','add','defs','function','className','_stopPresenting','31448ntJEPF','_handleTerminate','_liveShareService','getInitialStates','override','You\x27re\x20not\x20following\x20the\x20presenter','toString','registerSharedOperation','11658482xxfXfp','assign','40099XSIBJV','254640yppFSA','getValue','stopPresenting','icon','0\x200\x2017\x2017','stringify','_handleOnline','hasOwnProperty','LIVESHARE_OPERATION','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','1251muXnoh','onStarting','ONLINE','length','Stop\x20presenting','currentColor','subscribe','_injector','getUnitId','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','univer-mb-3\x20univer-w-full\x20univer-text-sm','data','PRESENTING','_handleNewChangeSets','_mountLiveShare','unsubscribe','_init','idle','_handleOffline','asObservable','default','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','OFFLINE','event$','_status$','tryStartPresenting','490KRXAju','includes','get','_config','none','concat','sessionStatus$','complete','_reporters','_commandDisposable','registerComponent','live-share-icon','dispose$','substring','init','setConfig','prototype','colorChannel1','_handleNewHost','pipe','getOwnPropertySymbols','path','_unitID','sheet','IDLE','You\x27re\x20following\x20the\x20presenter','LIVESHARE_NEW_HOST','stopFollowing','symbol','1741125DfZNhF','requireSession','string','_fetchOperations','replace','find','Start','apply','status$','LIVESHARE_TERMINATE','FOLLOWING','set','fill','registerInitialStateReporter','6vjduyA','startFollowing','div','svg','then','memberID','onCommandExecuted','disposeWithMe','delete','mask','children','xlink:href','params','random','send'];_0x56c5=function(){return _0xec1c0c;};return _0x56c5();}let b=class extends _0x49ef90{constructor(_0x5b01dd,_0x5277f7){var _0x2b40bf=_0x21acba;super(),this[_0x2b40bf(0x142)]=_0x5b01dd,this[_0x2b40bf(0xf7)]=_0x5277f7,this['_mountLiveShare']();}[_0x21acba(0x149)](){var _0xc49821=_0x21acba;this[_0xc49821(0xd3)](this[_0xc49821(0xf7)][_0xc49821(0xab)](_0x5a30be[_0xc49821(0xfe)],()=>_0x3350ba(Te,this[_0xc49821(0x142)])));}};b=ke([$(0x0,_0x45e3a0(_0x3944a4)),$(0x1,_0x257d82)],b);function _0x24fa(_0x511d67,_0x46f72a){var _0x56c5d9=_0x56c5();return _0x24fa=function(_0x24fa02,_0x1a195f){_0x24fa02=_0x24fa02-0xab;var _0x4d06e2=_0x56c5d9[_0x24fa02];return _0x4d06e2;},_0x24fa(_0x511d67,_0x46f72a);}var Ge=Object[_0x21acba(0xe7)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3ac2a8,_0x1638b7,_0x3bb6d0)=>_0x1638b7 in _0x3ac2a8?Ge(_0x3ac2a8,_0x1638b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bb6d0}):_0x3ac2a8[_0x1638b7]=_0x3bb6d0,Be=(_0x3e9a98,_0x66ab4b,_0x45fd0f,_0x49227f)=>{var _0x4f5cb7=_0x21acba;for(var _0x5c245d=_0x49227f>0x1?void 0x0:_0x49227f?We(_0x66ab4b,_0x45fd0f):_0x66ab4b,_0x83347e=_0x3e9a98[_0x4f5cb7(0x13e)]-0x1,_0x3cc55b;_0x83347e>=0x0;_0x83347e--)(_0x3cc55b=_0x3e9a98[_0x83347e])&&(_0x5c245d=_0x3cc55b(_0x5c245d)||_0x5c245d);return _0x5c245d;},F=(_0xe1f009,_0x372eb8)=>(_0x25a7d9,_0x124ad9)=>_0x372eb8(_0x25a7d9,_0x124ad9,_0xe1f009),J=(_0x353b7d,_0x3f8e87,_0x51edcc)=>Ye(_0x353b7d,typeof _0x3f8e87!='symbol'?_0x3f8e87+'':_0x3f8e87,_0x51edcc);const Ze=_0x21acba(0x105);let O=class extends _0xec22e2{constructor(_0x3e7a0e=T,_0x58105f,_0x1d797c){var _0xda3894=_0x21acba;super(),this[_0xda3894(0x159)]=_0x3e7a0e,this[_0xda3894(0x142)]=_0x58105f,this[_0xda3894(0x102)]=_0x1d797c;const {..._0x124445}=_0x47242e({},T,this[_0xda3894(0x159)]);this[_0xda3894(0x102)][_0xda3894(0xb0)](Oe,_0x124445);}[_0x21acba(0x13c)](){var _0xf59e67=_0x21acba;_0x26645d(this[_0xf59e67(0x142)],_0x508f67([[L],[I],[m],[b]],this['_config'][_0xf59e67(0x12a)])),_0x34849a(this[_0xf59e67(0x142)],[[m]]);}['onRendered'](){var _0x57a76c=_0x21acba;_0x34849a(this[_0x57a76c(0x142)],[[b]]);}};J(O,_0x21acba(0x10b),_0x2636cb[_0x21acba(0xf0)]),J(O,_0x21acba(0xfb),Ze),O=Be([_0x49227d(_0x2380c4),F(0x1,_0x45e3a0(_0x3944a4)),F(0x2,_0x56c18f)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x451375=_0xa190;(function(_0x1e9cbb,_0x5bffbc){var _0x185ef2=_0xa190,_0x37c213=_0x1e9cbb();while(!![]){try{var _0x57a358=parseInt(_0x185ef2(0xa1))/0x1+parseInt(_0x185ef2(0xe7))/0x2+-parseInt(_0x185ef2(0xe6))/0x3*(-parseInt(_0x185ef2(0xc3))/0x4)+parseInt(_0x185ef2(0xf6))/0x5+parseInt(_0x185ef2(0xc8))/0x6*(parseInt(_0x185ef2(0xdb))/0x7)+-parseInt(_0x185ef2(0x126))/0x8+-parseInt(_0x185ef2(0x96))/0x9*(parseInt(_0x185ef2(0xd4))/0xa);if(_0x57a358===_0x5bffbc)break;else _0x37c213['push'](_0x37c213['shift']());}catch(_0x4db724){_0x37c213['push'](_0x37c213['shift']());}}}(_0x5bdd,0x19817));var q=Object['defineProperty'],z=(_0x575a9e,_0x54851e,_0x3ab20b)=>_0x54851e in _0x575a9e?q(_0x575a9e,_0x54851e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ab20b}):_0x575a9e[_0x54851e]=_0x3ab20b,d=(_0x2fbd89,_0x2ff064,_0x327381)=>z(_0x2fbd89,typeof _0x2ff064!=_0x451375(0xd5)?_0x2ff064+'':_0x2ff064,_0x327381);import{CollaborationSessionService as _0x28a12b,SessionStatus as _0xd06163,UniverCollaborationClientPlugin as _0x1dd0cd}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2313b0,toDisposable as _0x43b1a9,Inject as _0x28c77f,IUniverInstanceService as _0x3e5199,Injector as _0x335107,IConfigService as _0x346109,ICommandService as _0x4a09d4,RxDisposable as _0x36a016,UniverInstanceType as _0x4c20a0,DisposableCollection as _0x1b939f,CommandType as _0x1862c6,DependentOn as _0x32035a,Plugin as _0x1c27e2,merge as _0x3c06a8,registerDependencies as _0x4552ae,mergeOverrideWithDependencies as _0x32a788,touchDependencies as _0x21a21b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x21f0ce,InsertSheetMutation as _0x198dc6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x274716,SetScrollOperation as _0x186685}from'@univerjs/sheets-ui';import{useDependency as _0x2de017,useObservable as _0x25276a,IUIPartsService as _0xb65b9,BuiltInUIPart as _0x51a6c7,connectInjector as _0x2c0420}from'@univerjs/ui';import{jsx as _0x5aa147,jsxs as _0x2b969d,Fragment as _0x5b6ea3}from'react/jsx-runtime';function _0x5bdd(){var _0x59216a=['icon','48gDjMyl','358320JQoUiu','disposeWithMe','includes','trim','1em','operations','onCommandExecuted','_collabSession','FOLLOWING','substring','UNIVER_SHEET','_entities','_handleOffline','asObservable','button','82435yfXSnr','none','unsubscribe','_handleTerminate','_reporters','following','parse','tryStartPresenting','indexOf','getMemberID','values','getConfig','_liveShareService','You\x27re\x20following\x20the\x20presenter','extend','next','data','_configService','set','_handleOnline','registerComponent','onRendered','random','idSuffix','requireSession','_collabSessionService','defIds','univer-size-4','LiveShareIcon','_stopFollowing','setConfig','getOwnPropertySymbols','_fetchOperations','dispose','current','UNIVER_UNKNOWN','hasOwnProperty','call','prototype','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_stopPresenting','presenter','url(#$1','stringify','currentColor','You\x27re\x20presenting\x20the\x20document','mutations','580968svnHWO','find','You\x27are\x20offline.','Stop\x20following','getCurrentTypeOfUnit$','string','propertyIsEnumerable','UniverIcon','executeCommand','_handleOperation','tag','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','xlink:href','status$','pipe','add','colorChannel1','length','LIVESHARE_TERMINATE','className','NEW_CHANGESETS','stopFollowing','_startFollowing','shouldShareOperation','registerSharedOperation','function','evenodd','9dTaiwk','_mountLiveShare','text','override','get','_config','not-following','end','getInitialStates','attrs','map','179962dUejhy','complete','Present\x20this\x20document','assign','apply','default','OPERATION','delete','fill','_univerInstanceService','getUnitId','type','_uiPartsService','defineProperty','LIVESHARE_FETCH_OPERATIONS','IDLE','_commandDisposable','forEach','defs','_presenter','_status$','onStarting','_commandService','dispose$','OFFLINE','_startLiveShareCoordinator','_handleNewChangeSets','offline','live-share.config','_unitID','0\x200\x2017\x2017','idle','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_REQUEST_HOST','27436WdZUYh','startFollowing','mask','_injector','children','1128tfXBPc','_beIdle','init','params','getLiveShareCoordinator','createInstance','registerInitialStateReporter','entries','then','subscribe','_startPresenting','has','3507490XDIwTF','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','displayName','clear','HEADER_MENU','1582biOOVN','getTypeOfUnitAdded$','stopPresenting','send','_init','NOT_FOLLOWING','_status','concat','sessionStatus$','replace'];_0x5bdd=function(){return _0x59216a;};return _0x5bdd();}import{Dropdown as _0x159863,clsx as _0x87598b,Button as _0x352964}from'@univerjs/design';import{forwardRef as _0x11caf0,useRef as _0x48017c,createElement as _0x3ad40e,useState as _0x55d604,useEffect as _0x44053b}from'react';import{CollaborationEvent as _0x248176,parseProtocolChangeset as _0x17584c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2f2b8d,Subject as _0x1044e5}from'rxjs';import{takeUntil as _0x261e2b,throttleTime as _0x28b226}from'rxjs/operators';const Oe=_0x451375(0xbd),T={};class L extends _0x2313b0{constructor(){var _0x14a96d=_0x451375;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x14a96d(0xfa),new Set());}[_0x451375(0x93)](_0xe10ed1){var _0x416a36=_0x451375;return this['_sharedOperations'][_0x416a36(0x8a)](_0xe10ed1),_0x43b1a9(()=>this['_sharedOperations'][_0x416a36(0xa8)](_0xe10ed1));}[_0x451375(0xce)](_0x52fc81){var _0x9e9dd9=_0x451375;return this['_reporters'][_0x9e9dd9(0x8a)](_0x52fc81),_0x43b1a9(()=>this[_0x9e9dd9(0xfa)][_0x9e9dd9(0xa8)](_0x52fc81));}[_0x451375(0x92)](_0x2e83d3){return this['_sharedOperations']['has'](_0x2e83d3);}[_0x451375(0x9e)](_0x3e9bb6){var _0x44eb1a=_0x451375;return Array['from'](this[_0x44eb1a(0xfa)])[_0x44eb1a(0xa0)](_0x5925b2=>_0x5925b2(_0x3e9bb6));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x168b22,_0x5bace9,_0x2c0490,_0x2b85a1)=>{var _0x2bbb8f=_0x451375;for(var _0x2447c2=_0x2b85a1>0x1?void 0x0:_0x2b85a1?Ee(_0x5bace9,_0x2c0490):_0x5bace9,_0x29180e=_0x168b22[_0x2bbb8f(0x8c)]-0x1,_0x355b58;_0x29180e>=0x0;_0x29180e--)(_0x355b58=_0x168b22[_0x29180e])&&(_0x2447c2=_0x355b58(_0x2447c2)||_0x2447c2);return _0x2447c2;},Ne=(_0x4ab97c,_0x26ff09)=>(_0x21d977,_0x31a0da)=>_0x26ff09(_0x21d977,_0x31a0da,_0x4ab97c);let m=class extends _0x2313b0{constructor(_0x1d2686){var _0x220503=_0x451375;super(),this['_liveShareService']=_0x1d2686,this[_0x220503(0xdf)]();}[_0x451375(0xdf)](){var _0x4470bf=_0x451375;[_0x274716['id'],_0x186685['id'],_0x21f0ce['id']][_0x4470bf(0xb2)](_0x59a128=>{var _0x162c91=_0x4470bf;this[_0x162c91(0xe8)](this[_0x162c91(0x102)][_0x162c91(0x93)](_0x59a128));});}};m=we([Ne(0x0,_0x28c77f(L))],m);var c=function(){var _0x7b8dfc=_0x451375;return c=Object[_0x7b8dfc(0xa4)]||function(_0x5cf3c4){var _0x36c87f=_0x7b8dfc;for(var _0x386ab4,_0x2d2e19=0x1,_0x129e0a=arguments[_0x36c87f(0x8c)];_0x2d2e19<_0x129e0a;_0x2d2e19++){_0x386ab4=arguments[_0x2d2e19];for(var _0x40a2ad in _0x386ab4)Object[_0x36c87f(0x11c)]['hasOwnProperty']['call'](_0x386ab4,_0x40a2ad)&&(_0x5cf3c4[_0x40a2ad]=_0x386ab4[_0x40a2ad]);}return _0x5cf3c4;},c[_0x7b8dfc(0xa5)](this,arguments);},Ce=function(_0x58cf11,_0x33e72f){var _0xb697ad=_0x451375,_0x442487={};for(var _0x1601cf in _0x58cf11)Object[_0xb697ad(0x11c)][_0xb697ad(0x11a)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf)&&_0x33e72f['indexOf'](_0x1601cf)<0x0&&(_0x442487[_0x1601cf]=_0x58cf11[_0x1601cf]);if(_0x58cf11!=null&&typeof Object[_0xb697ad(0x115)]==_0xb697ad(0x94)){for(var _0x5cf0c1=0x0,_0x1601cf=Object[_0xb697ad(0x115)](_0x58cf11);_0x5cf0c1<_0x1601cf[_0xb697ad(0x8c)];_0x5cf0c1++)_0x33e72f[_0xb697ad(0xfe)](_0x1601cf[_0x5cf0c1])<0x0&&Object[_0xb697ad(0x11c)][_0xb697ad(0x80)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf[_0x5cf0c1])&&(_0x442487[_0x1601cf[_0x5cf0c1]]=_0x58cf11[_0x1601cf[_0x5cf0c1]]);}return _0x442487;},W=_0x11caf0(function(_0x2c5602,_0x472b23){var _0x508acd=_0x451375,_0x4b87ee=_0x2c5602[_0x508acd(0xe5)],_0x15f482=_0x2c5602['id'],_0x5db530=_0x2c5602[_0x508acd(0x8e)],_0x3c9d14=_0x2c5602[_0x508acd(0x104)],_0x21e4b6=Ce(_0x2c5602,[_0x508acd(0xe5),'id',_0x508acd(0x8e),_0x508acd(0x104)]),_0x29b9cd='univerjs-icon\x20univerjs-icon-'[_0x508acd(0xe2)](_0x15f482,'\x20')[_0x508acd(0xe2)](_0x5db530||'')[_0x508acd(0xea)](),_0x5adb1d=_0x48017c('_'['concat'](Le()));return Y(_0x4b87ee,''[_0x508acd(0xe2)](_0x15f482),{'defIds':_0x4b87ee[_0x508acd(0x110)],'idSuffix':_0x5adb1d[_0x508acd(0x118)]},c({'ref':_0x472b23,'className':_0x29b9cd},_0x21e4b6),_0x3c9d14);});function Y(_0x2e2f8b,_0x1e9555,_0x10736b,_0x58e852,_0x3ee648){var _0x4ce094=_0x451375;return _0x3ad40e(_0x2e2f8b[_0x4ce094(0x84)],c(c({'key':_0x1e9555},De(_0x2e2f8b,_0x10736b,_0x3ee648)),_0x58e852),(xe(_0x2e2f8b,_0x10736b)[_0x4ce094(0xc7)]||[])[_0x4ce094(0xa0)](function(_0x2bf3e5,_0x2ed0e0){var _0x5ebe57=_0x4ce094;return Y(_0x2bf3e5,''['concat'](_0x1e9555,'-')['concat'](_0x2e2f8b[_0x5ebe57(0x84)],'-')[_0x5ebe57(0xe2)](_0x2ed0e0),_0x10736b,void 0x0,_0x3ee648);}));}function De(_0x5caf90,_0x2ad276,_0x5748bc){var _0x271fc3=_0x451375,_0x31bff3=c({},_0x5caf90[_0x271fc3(0x9f)]);_0x5748bc!=null&&_0x5748bc['colorChannel1']&&_0x31bff3[_0x271fc3(0xa9)]===_0x271fc3(0x8b)&&(_0x31bff3['fill']=_0x5748bc[_0x271fc3(0x8b)]),_0x5caf90[_0x271fc3(0x84)]==='mask'&&_0x31bff3['id']&&(_0x31bff3['id']=_0x31bff3['id']+_0x2ad276[_0x271fc3(0x10d)]),Object['entries'](_0x31bff3)[_0x271fc3(0xb2)](function(_0x558cc0){var _0x39f431=_0x271fc3,_0x44a0d3=_0x558cc0[0x0],_0x186ed4=_0x558cc0[0x1];_0x44a0d3===_0x39f431(0xc5)&&typeof _0x186ed4==_0x39f431(0x12b)&&(_0x31bff3[_0x44a0d3]=_0x186ed4['replace'](/url\(#(.*)\)/,_0x39f431(0x121)[_0x39f431(0xe2)](_0x2ad276[_0x39f431(0x10d)],')')));});var _0x4ee8a5=_0x2ad276['defIds'];return!_0x4ee8a5||_0x4ee8a5[_0x271fc3(0x8c)]===0x0||(_0x5caf90[_0x271fc3(0x84)]==='use'&&_0x31bff3[_0x271fc3(0x87)]&&(_0x31bff3[_0x271fc3(0x87)]=_0x31bff3[_0x271fc3(0x87)]+_0x2ad276['idSuffix']),Object[_0x271fc3(0xcf)](_0x31bff3)[_0x271fc3(0xb2)](function(_0x16df4b){var _0x162431=_0x271fc3,_0x558a26=_0x16df4b[0x0],_0x2a2fad=_0x16df4b[0x1];typeof _0x2a2fad==_0x162431(0x12b)&&(_0x31bff3[_0x558a26]=_0x2a2fad[_0x162431(0xe4)](/url\(#(.*)\)/,_0x162431(0x121)[_0x162431(0xe2)](_0x2ad276[_0x162431(0x10d)],')')));})),_0x31bff3;}function xe(_0x3bdc0c,_0x2e8ed3){var _0x3da090=_0x451375,_0x33577a,_0x5a2010=_0x2e8ed3['defIds'];return!_0x5a2010||_0x5a2010[_0x3da090(0x8c)]===0x0?_0x3bdc0c:_0x3bdc0c[_0x3da090(0x84)]===_0x3da090(0xb3)&&(!((_0x33577a=_0x3bdc0c[_0x3da090(0xc7)])===null||_0x33577a===void 0x0)&&_0x33577a[_0x3da090(0x8c)])?c(c({},_0x3bdc0c),{'children':_0x3bdc0c[_0x3da090(0xc7)][_0x3da090(0xa0)](function(_0x36d0bb){var _0x121666=_0x3da090;return typeof _0x36d0bb[_0x121666(0x9f)]['id']==_0x121666(0x12b)&&_0x5a2010&&_0x5a2010[_0x121666(0xe9)](_0x36d0bb[_0x121666(0x9f)]['id'])?c(c({},_0x36d0bb),{'attrs':c(c({},_0x36d0bb[_0x121666(0x9f)]),{'id':_0x36d0bb[_0x121666(0x9f)]['id']+_0x2e8ed3[_0x121666(0x10d)]})}):_0x36d0bb;})}):_0x3bdc0c;}function Le(){var _0x29df3c=_0x451375;return Math[_0x29df3c(0x10c)]()['toString'](0x24)[_0x29df3c(0xf0)](0x2,0x8);}W[_0x451375(0xd8)]=_0x451375(0x81);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x451375(0xf7),'viewBox':_0x451375(0xbf),'width':_0x451375(0xeb),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':_0x451375(0xc1)}},{'tag':'path','attrs':{'fill':_0x451375(0x123),'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':_0x451375(0x95),'clipRule':'evenodd'}}]},B=_0x11caf0(function(_0x43688f,_0x2612ca){return _0x3ad40e(W,Object['assign']({},_0x43688f,{'id':'live-share-icon','ref':_0x2612ca,'icon':ye}));});B[_0x451375(0xd8)]=_0x451375(0x112);var Re=Object[_0x451375(0x11d)],Z=(_0x1e8e3c,_0xac14ff,_0x1d3dfc,_0x5c5eb1)=>{var _0x3b9b1f=_0x451375;for(var _0x199c7c=_0x5c5eb1>0x1?void 0x0:_0x5c5eb1?Re(_0xac14ff,_0x1d3dfc):_0xac14ff,_0x253127=_0x1e8e3c[_0x3b9b1f(0x8c)]-0x1,_0x17b5c3;_0x253127>=0x0;_0x253127--)(_0x17b5c3=_0x1e8e3c[_0x253127])&&(_0x199c7c=_0x17b5c3(_0x199c7c)||_0x199c7c);return _0x199c7c;},f=(_0x52abe5,_0x2362e9)=>(_0x6aec4c,_0xacdf00)=>_0x2362e9(_0x6aec4c,_0xacdf00,_0x52abe5);let I=class extends _0x36a016{constructor(_0x8a0738,_0x21bf37,_0x3c9e24){var _0x533e04=_0x451375;super(),d(this,_0x533e04(0xf2),new Map()),(this[_0x533e04(0xaa)]=_0x8a0738,this[_0x533e04(0xc6)]=_0x21bf37,this[_0x533e04(0x10f)]=_0x3c9e24,this['_init']());}async[_0x451375(0xcc)](_0x1a088b){var _0x58ca37=_0x451375;return this['_entities'][_0x58ca37(0xd3)](_0x1a088b)||await this[_0x58ca37(0xba)](_0x1a088b),this[_0x58ca37(0xf2)][_0x58ca37(0x9a)](_0x1a088b);}[_0x451375(0xdf)](){var _0x5b9904=_0x451375;this[_0x5b9904(0xaa)][_0x5b9904(0xdc)](_0x4c20a0[_0x5b9904(0xf1)])['pipe'](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](async _0xa98328=>{var _0x327ed3=_0x5b9904;const _0x35cc97=_0xa98328['getUnitId']();this[_0x327ed3(0xf2)][_0x327ed3(0xd3)](_0x35cc97)||this[_0x327ed3(0xba)](_0x35cc97);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4c20a0['UNIVER_SHEET'])[_0x5b9904(0x89)](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](_0x1f1528=>{var _0x232484=_0x5b9904;const _0x195bed=_0x1f1528['getUnitId'](),_0x1e1910=this['_entities']['get'](_0x195bed);_0x1e1910==null||_0x1e1910[_0x232484(0x117)]();});}async[_0x451375(0xba)](_0x1e1d04){var _0x5d11b2=_0x451375;const _0x3e8206=await this[_0x5d11b2(0x10f)][_0x5d11b2(0x10e)](_0x1e1d04),_0x1f2fcc=this[_0x5d11b2(0xc6)][_0x5d11b2(0xcd)](C,_0x1e1d04,_0x3e8206);return _0x1f2fcc[_0x5d11b2(0xca)](),this[_0x5d11b2(0xf2)][_0x5d11b2(0x108)](_0x1e1d04,_0x1f2fcc),_0x1f2fcc;}};I=Z([f(0x0,_0x3e5199),f(0x1,_0x28c77f(_0x335107)),f(0x2,_0x28c77f(_0x28a12b))],I);var h=(_0x118872=>(_0x118872[_0x451375(0xb9)]=_0x451375(0xbc),_0x118872[_0x451375(0xb0)]=_0x451375(0xc0),_0x118872['FOLLOWING']=_0x451375(0xfb),_0x118872[_0x451375(0xe0)]='not-following',_0x118872['PRESENTING']='presenting',_0x118872))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x36a016{constructor(_0x563bc5,_0x3bc5db,_0x11d0b5,_0x57d2f0,_0x97ec45){var _0xd76d38=_0x451375;super(),d(this,_0xd76d38(0xb5),new _0x2f2b8d('idle')),d(this,_0xd76d38(0x88),this['_status$'][_0xd76d38(0xf4)]()),d(this,_0xd76d38(0xdf),!0x1),d(this,'_commandDisposable',null),d(this,_0xd76d38(0xb4),null),(this['_unitID']=_0x563bc5,this[_0xd76d38(0xee)]=_0x3bc5db,this[_0xd76d38(0x107)]=_0x11d0b5,this[_0xd76d38(0x102)]=_0x57d2f0,this[_0xd76d38(0xb7)]=_0x97ec45);}get[_0x451375(0xe1)](){var _0x6cc70=_0x451375;return this[_0x6cc70(0xb5)]['getValue']();}[_0x451375(0x117)](){var _0x3bf5fc=_0x451375,_0x31a480;(_0x31a480=this[_0x3bf5fc(0xb1)])==null||_0x31a480['dispose'](),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0x105)](_0x3bf5fc(0xc0)),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0xa2)]();}['init'](){var _0x5e7bdb=_0x451375;this[_0x5e7bdb(0xdf)]||(this['_init']=!0x0,this[_0x5e7bdb(0xee)][_0x5e7bdb(0xe3)][_0x5e7bdb(0x89)](_0x261e2b(this[_0x5e7bdb(0xb8)]))[_0x5e7bdb(0xd1)](_0x44288a=>{var _0x504e32=_0x5e7bdb;switch(_0x44288a){case _0xd06163['OFFLINE']:this[_0x504e32(0xf3)]();break;case _0xd06163['ONLINE']:this[_0x504e32(0x109)]();break;}}),this['_collabSession']['event$']['pipe'](_0x261e2b(this[_0x5e7bdb(0xb8)]))['subscribe'](_0xb03598=>{var _0x344a64=_0x5e7bdb;const {eventID:_0x38f07f}=_0xb03598;switch(_0x38f07f){case _0x248176['LIVESHARE_NEW_HOST']:this[_0x344a64(0x85)](_0xb03598);break;case _0x248176[_0x344a64(0x11e)]:this[_0x344a64(0x83)](_0xb03598);break;case _0x248176[_0x344a64(0x8d)]:this['_handleTerminate']();break;case _0x248176[_0x344a64(0x8f)]:this[_0x344a64(0xbb)](_0xb03598);break;}}));}[_0x451375(0xfd)](){var _0x21abc4=_0x451375;this['_collabSession'][_0x21abc4(0xde)]({'eventID':_0x248176[_0x21abc4(0xc2)],'data':{'unitID':this[_0x21abc4(0xbe)],'userID':this['_collabSession'][_0x21abc4(0xff)]()}},this[_0x21abc4(0xbe)]);}[_0x451375(0xdd)](){var _0x7b7a4a=_0x451375;this[_0x7b7a4a(0xe1)]==='presenting'&&(this[_0x7b7a4a(0xb5)]['next']('idle'),this['_collabSession'][_0x7b7a4a(0xde)]({'eventID':_0x248176[_0x7b7a4a(0x8d)],'data':{'unitID':this[_0x7b7a4a(0xbe)]}},this['_unitID']));}[_0x451375(0xc4)](){var _0x4d6a3d=_0x451375;this[_0x4d6a3d(0xe1)]==='not-following'&&(this['_status$'][_0x4d6a3d(0x105)](_0x4d6a3d(0xfb)),this[_0x4d6a3d(0x91)]());}['stopFollowing'](){var _0x2baaae=_0x451375;this[_0x2baaae(0xe1)]===_0x2baaae(0xfb)&&this[_0x2baaae(0x113)]();}[_0x451375(0x85)](_0x12787f){var _0x319170=_0x451375;const {presenter:_0x44b10a}=_0x12787f['data'],_0xb153c3=this['_collabSession']['getMemberID']();this[_0x319170(0xb4)]=_0x44b10a,_0x44b10a===_0xb153c3?(this[_0x319170(0x113)](),this[_0x319170(0xd2)]()):this[_0x319170(0xe1)]!==_0x319170(0x9c)&&(this[_0x319170(0x11f)](),this['_startFollowing']());}[_0x451375(0x116)](){var _0x451ef0=_0x451375;const _0x4bef16={'eventID':_0x248176[_0x451ef0(0xaf)]};this[_0x451ef0(0xee)][_0x451ef0(0xde)](_0x4bef16,this[_0x451ef0(0xbe)]);}[_0x451375(0xf9)](){var _0x1dff1c=_0x451375;this[_0x1dff1c(0xb4)]=null,this['_status']!=='presenting'&&this[_0x1dff1c(0xc9)]();}[_0x451375(0xbb)](_0x343e27){var _0x4acffb=_0x451375;if(this[_0x4acffb(0xe1)]===_0x4acffb(0xfb)&&this[_0x4acffb(0xb4)]===_0x343e27[_0x4acffb(0x106)]['memberID']){const _0x2bf607=_0x17584c(_0x343e27[_0x4acffb(0x106)])[_0x4acffb(0x125)]['reverse']()[_0x4acffb(0x127)](_0x6e8be5=>_0x6e8be5['id']===_0x198dc6['id']);if(_0x2bf607){const _0x4b17c6=_0x2bf607[_0x4acffb(0xcb)]['unitId'],_0x471c42=_0x2bf607[_0x4acffb(0xcb)]['sheet']['id'];setTimeout(()=>{var _0x16814a=_0x4acffb;this[_0x16814a(0xb7)][_0x16814a(0x82)](_0x21f0ce['id'],{'unitId':_0x4b17c6,'subUnitId':_0x471c42},{'fromCollab':!0x0});});}}}[_0x451375(0xd2)](){var _0xad2cf4=_0x451375;this[_0xad2cf4(0xb5)][_0xad2cf4(0x105)]('presenting');const _0x1b7070=new Map(),_0x1b5804=this[_0xad2cf4(0xb1)]=new _0x1b939f();_0x1b5804[_0xad2cf4(0x8a)](_0x43b1a9(()=>{var _0x494faa=_0xad2cf4;_0x1b7070[_0x494faa(0xb2)](_0x708097=>_0x708097[_0x494faa(0xa2)]()),_0x1b7070[_0x494faa(0xd9)]();})),_0x1b5804[_0xad2cf4(0x8a)](this[_0xad2cf4(0xb7)][_0xad2cf4(0xed)](_0x427efd=>{var _0xabf870=_0xad2cf4,_0x44fb57;if(_0x427efd[_0xabf870(0xac)]!==_0x1862c6[_0xabf870(0xa7)]||!this[_0xabf870(0x102)][_0xabf870(0x92)](_0x427efd['id']))return;const {id:_0x2323f7}=_0x427efd;let _0x5161d5;_0x1b7070[_0xabf870(0xd3)](_0x2323f7)?_0x5161d5=_0x1b7070['get'](_0x2323f7):(_0x5161d5=new _0x1044e5(),_0x1b7070[_0xabf870(0x108)](_0x2323f7,_0x5161d5),_0x5161d5['pipe'](_0x28b226((_0x44fb57=this[_0xabf870(0x107)][_0xabf870(0x101)](Pe))!=null?_0x44fb57:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xabf870(0xd1)](_0x4e1fc3=>{var _0x5127d9=_0xabf870;this[_0x5127d9(0xee)]['send']({'eventID':_0x248176[_0x5127d9(0x11e)],'data':{'unitID':this[_0x5127d9(0xbe)],'operations':{[_0x4e1fc3['id']]:{'id':_0x4e1fc3['id'],'params':JSON[_0x5127d9(0x122)](_0x4e1fc3[_0x5127d9(0xcb)])}}}},this['_unitID']);})),_0x5161d5[_0xabf870(0x105)](_0x427efd);})),this[_0xad2cf4(0x102)][_0xad2cf4(0x9e)](this[_0xad2cf4(0xbe)])[_0xad2cf4(0xb2)](_0x5af010=>this[_0xad2cf4(0xee)][_0xad2cf4(0xde)]({'eventID':_0x248176[_0xad2cf4(0x11e)],'data':{'unitID':this[_0xad2cf4(0xbe)],'operations':{[_0x5af010['id']]:{'id':_0x5af010['id'],'params':JSON[_0xad2cf4(0x122)](_0x5af010[_0xad2cf4(0xcb)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2badc6=_0x451375,_0x1ceb0d;this[_0x2badc6(0xb5)][_0x2badc6(0x105)]('idle'),(_0x1ceb0d=this['_commandDisposable'])==null||_0x1ceb0d[_0x2badc6(0x117)](),this[_0x2badc6(0xb1)]=null;}[_0x451375(0x91)](){var _0xbc2e7=_0x451375,_0x3f009f;(_0x3f009f=this['_commandDisposable'])==null||_0x3f009f[_0xbc2e7(0x117)](),this[_0xbc2e7(0xb5)][_0xbc2e7(0x105)]('following');}[_0x451375(0xc9)](){var _0x7b2231=_0x451375,_0x9b4ecd;this[_0x7b2231(0xb5)]['next'](_0x7b2231(0xc0)),(_0x9b4ecd=this[_0x7b2231(0xb1)])==null||_0x9b4ecd[_0x7b2231(0x117)](),this['_commandDisposable']=null;}[_0x451375(0x113)](){var _0x4c770e=_0x451375,_0x113d7b;this['_status$'][_0x4c770e(0x105)]('not-following'),(_0x113d7b=this[_0x4c770e(0xb1)])==null||_0x113d7b['dispose']();}['_handleOperation'](_0x1a5ccc){var _0x527dfe=_0x451375;if(['presenting',_0x527dfe(0x9c),_0x527dfe(0xbc)][_0x527dfe(0xe9)](this['_status'])||!_0x1a5ccc['data'][_0x527dfe(0x120)]||_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0x120)]===this[_0x527dfe(0xee)][_0x527dfe(0xff)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xb0e559=_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0xec)];Object[_0x527dfe(0x100)](_0xb0e559)['forEach'](_0x49c313=>{var _0x544a45=_0x527dfe;this[_0x544a45(0xb7)][_0x544a45(0x82)](_0x49c313['id'],_0x49c313['params']?JSON[_0x544a45(0xfc)](_0x49c313[_0x544a45(0xcb)]):null,{'fromCollab':!0x0});});}[_0x451375(0xf3)](){var _0x4db867=_0x451375,_0x45686d;this[_0x4db867(0xb5)][_0x4db867(0x105)](_0x4db867(0xbc)),(_0x45686d=this['_commandDisposable'])==null||_0x45686d[_0x4db867(0x117)]();}[_0x451375(0x109)](){var _0x392a0a=_0x451375;this[_0x392a0a(0xb5)][_0x392a0a(0x105)](_0x392a0a(0xc0)),this[_0x392a0a(0x116)]();}};C=Z([f(0x2,_0x346109),f(0x3,_0x28c77f(L)),f(0x4,_0x4a09d4)],C);function Te(){var _0x2327f3=_0x451375;const _0x48ff66=_0x2de017(I),_0x441d35=_0x2de017(_0x3e5199),_0x47257a=_0x25276a(()=>_0x441d35[_0x2327f3(0x12a)](_0x4c20a0[_0x2327f3(0xf1)]),void 0x0,!0x1,[]),[_0x2e6505,_0xae1bc]=_0x55d604(null),[_0x1ac521,_0x33ceca]=_0x55d604(h[_0x2327f3(0xb0)]),_0x45a0db=_0x48017c(null);return _0x44053b(()=>(_0x47257a&&_0x48ff66[_0x2327f3(0xcc)](_0x47257a[_0x2327f3(0xab)]())[_0x2327f3(0xd0)](_0x3c6371=>{var _0x26f634=_0x2327f3;_0xae1bc(_0x3c6371),_0x45a0db['current']=_0x3c6371[_0x26f634(0x88)][_0x26f634(0xd1)](_0x5bd015=>{_0x33ceca(_0x5bd015);});}),()=>{var _0x6dbefd=_0x2327f3,_0x8a6c67;(_0x8a6c67=_0x45a0db[_0x6dbefd(0x118)])==null||_0x8a6c67[_0x6dbefd(0xf8)](),_0x45a0db['current']=null;}),[_0x47257a,_0x48ff66]),_0x2e6505?_0x5aa147(_0x159863,{'align':_0x2327f3(0x9d),'disabled':_0x1ac521===h[_0x2327f3(0xb9)],'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':_0x5aa147($e,{'status':_0x1ac521,'coordinator':_0x2e6505}),'children':_0x5aa147(_0x2327f3(0xf5),{'className':_0x87598b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1ac521===h[_0x2327f3(0xb9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ac521!==h[_0x2327f3(0xb9)]}),'type':_0x2327f3(0xf5),'children':_0x5aa147(B,{'className':_0x2327f3(0x111)})})}):null;}function $e(_0x4731bd){var _0x185e7e=_0x451375;const {status:_0x2e0820,coordinator:_0x437528}=_0x4731bd;switch(_0x2e0820){case h['IDLE']:return _0x5aa147(Fe,{'coordinator':_0x437528});case h[_0x185e7e(0xef)]:return _0x5aa147(He,{'coordinator':_0x437528});case h['NOT_FOLLOWING']:return _0x5aa147(je,{'coordinator':_0x437528});case h[_0x185e7e(0xb9)]:return _0x5aa147(Ve,{});case h['PRESENTING']:return _0x5aa147(Ue,{'coordinator':_0x437528});default:return null;}}function Fe(_0x81a50f){var _0x238dd8=_0x451375;const {coordinator:_0x366f8d}=_0x81a50f;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x238dd8(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x238dd8(0xa3)}),_0x5aa147(_0x352964,{'onClick':()=>_0x366f8d[_0x238dd8(0xfd)](),'children':'Start'})]});}function He(_0x58ecba){var _0x374d5e=_0x451375;const {coordinator:_0x4d3ed5}=_0x58ecba;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x374d5e(0xd7),{'className':_0x374d5e(0xd6),'children':_0x374d5e(0x103)}),_0x5aa147(_0x352964,{'onClick':()=>_0x4d3ed5[_0x374d5e(0x90)](),'children':_0x374d5e(0x129)})]});}function je(_0x510960){var _0x465aa5=_0x451375;const {coordinator:_0x248453}=_0x510960;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x465aa5(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x465aa5(0x86)}),_0x5aa147(_0x352964,{'variant':_0x465aa5(0x98),'onClick':()=>_0x248453['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x23dc1b){var _0x6f889c=_0x451375;const {coordinator:_0x5f4f84}=_0x23dc1b;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x6f889c(0xd7),{'className':_0x6f889c(0xd6),'children':_0x6f889c(0x124)}),_0x5aa147(_0x352964,{'variant':_0x6f889c(0xa6),'onClick':()=>_0x5f4f84[_0x6f889c(0xdd)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2fda1d=_0x451375;return _0x5aa147(_0x5b6ea3,{'children':_0x2fda1d(0x128)});}var Me=Object[_0x451375(0x11d)],ke=(_0x570146,_0x5e55bd,_0x339ca5,_0x3f5675)=>{for(var _0x4bf585=_0x3f5675>0x1?void 0x0:_0x3f5675?Me(_0x5e55bd,_0x339ca5):_0x5e55bd,_0x4ec0c8=_0x570146['length']-0x1,_0x3939e1;_0x4ec0c8>=0x0;_0x4ec0c8--)(_0x3939e1=_0x570146[_0x4ec0c8])&&(_0x4bf585=_0x3939e1(_0x4bf585)||_0x4bf585);return _0x4bf585;},$=(_0xcc8bba,_0x406f94)=>(_0x250d55,_0x24e081)=>_0x406f94(_0x250d55,_0x24e081,_0xcc8bba);let b=class extends _0x2313b0{constructor(_0x16662e,_0x435ddb){var _0x410118=_0x451375;super(),this[_0x410118(0xc6)]=_0x16662e,this[_0x410118(0xad)]=_0x435ddb,this[_0x410118(0x97)]();}[_0x451375(0x97)](){var _0x6b6d42=_0x451375;this[_0x6b6d42(0xe8)](this[_0x6b6d42(0xad)][_0x6b6d42(0x10a)](_0x51a6c7[_0x6b6d42(0xda)],()=>_0x2c0420(Te,this[_0x6b6d42(0xc6)])));}};function _0xa190(_0x32c439,_0x2d498f){var _0x5bdd32=_0x5bdd();return _0xa190=function(_0xa19085,_0xc55785){_0xa19085=_0xa19085-0x80;var _0xeab724=_0x5bdd32[_0xa19085];return _0xeab724;},_0xa190(_0x32c439,_0x2d498f);}b=ke([$(0x0,_0x28c77f(_0x335107)),$(0x1,_0xb65b9)],b);var Ge=Object[_0x451375(0xae)],We=Object[_0x451375(0x11d)],Ye=(_0x18d7aa,_0x445b22,_0x5989cd)=>_0x445b22 in _0x18d7aa?Ge(_0x18d7aa,_0x445b22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5989cd}):_0x18d7aa[_0x445b22]=_0x5989cd,Be=(_0x2c0ed6,_0x8470f6,_0x2a43bf,_0x3e765a)=>{var _0x5b0760=_0x451375;for(var _0x2388d3=_0x3e765a>0x1?void 0x0:_0x3e765a?We(_0x8470f6,_0x2a43bf):_0x8470f6,_0x360398=_0x2c0ed6[_0x5b0760(0x8c)]-0x1,_0x2697e3;_0x360398>=0x0;_0x360398--)(_0x2697e3=_0x2c0ed6[_0x360398])&&(_0x2388d3=_0x2697e3(_0x2388d3)||_0x2388d3);return _0x2388d3;},F=(_0x54775e,_0x28c224)=>(_0x37f304,_0x8fce35)=>_0x28c224(_0x37f304,_0x8fce35,_0x54775e),J=(_0x45a759,_0x51ab50,_0x7823dd)=>Ye(_0x45a759,typeof _0x51ab50!=_0x451375(0xd5)?_0x51ab50+'':_0x51ab50,_0x7823dd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c27e2{constructor(_0x295921=T,_0x148e91,_0x672e2e){var _0x5054f2=_0x451375;super(),this[_0x5054f2(0x9b)]=_0x295921,this[_0x5054f2(0xc6)]=_0x148e91,this[_0x5054f2(0x107)]=_0x672e2e;const {..._0x1ea8db}=_0x3c06a8({},T,this[_0x5054f2(0x9b)]);this[_0x5054f2(0x107)][_0x5054f2(0x114)](Oe,_0x1ea8db);}[_0x451375(0xb6)](){var _0x3ffa5e=_0x451375;_0x4552ae(this[_0x3ffa5e(0xc6)],_0x32a788([[L],[I],[m],[b]],this['_config'][_0x3ffa5e(0x99)])),_0x21a21b(this['_injector'],[[m]]);}[_0x451375(0x10b)](){var _0x1b8371=_0x451375;_0x21a21b(this[_0x1b8371(0xc6)],[[b]]);}};J(O,_0x451375(0xac),_0x4c20a0[_0x451375(0x119)]),J(O,'pluginName',Ze),O=Be([_0x32035a(_0x1dd0cd),F(0x1,_0x28c77f(_0x335107)),F(0x2,_0x346109)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x21acba=_0x24fa;(function(_0x578e56,_0x2e56d8){var _0x342182=_0x24fa,_0x74f752=_0x578e56();while(!![]){try{var _0x39ca79=-parseInt(_0x342182(0x130))/0x1*(-parseInt(_0x342182(0xf5))/0x2)+parseInt(_0x342182(0xbe))/0x3+parseInt(_0x342182(0x126))/0x4*(parseInt(_0x342182(0x156))/0x5)+-parseInt(_0x342182(0xcc))/0x6*(parseInt(_0x342182(0xf9))/0x7)+parseInt(_0x342182(0xde))/0x8*(parseInt(_0x342182(0x13b))/0x9)+-parseInt(_0x342182(0x131))/0xa+-parseInt(_0x342182(0x12e))/0xb;if(_0x39ca79===_0x2e56d8)break;else _0x74f752['push'](_0x74f752['shift']());}catch(_0x5aab02){_0x74f752['push'](_0x74f752['shift']());}}}(_0x56c5,0x6aaa7));var q=Object['defineProperty'],z=(_0x3eca6b,_0x2640c9,_0x3696f1)=>_0x2640c9 in _0x3eca6b?q(_0x3eca6b,_0x2640c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3696f1}):_0x3eca6b[_0x2640c9]=_0x3696f1,d=(_0x1e8983,_0x347574,_0x41f41f)=>z(_0x1e8983,typeof _0x347574!=_0x21acba(0xbd)?_0x347574+'':_0x347574,_0x41f41f);import{CollaborationSessionService as _0x418e8c,SessionStatus as _0x4c8836,UniverCollaborationClientPlugin as _0x2380c4}from'@univerjs-pro/collaboration-client';import{Disposable as _0x49ef90,toDisposable as _0x52738f,Inject as _0x45e3a0,IUniverInstanceService as _0x3bd673,Injector as _0x3944a4,IConfigService as _0x56c18f,ICommandService as _0x40b986,RxDisposable as _0x42375c,UniverInstanceType as _0x2636cb,DisposableCollection as _0x240d80,CommandType as _0x2b26cd,DependentOn as _0x49227d,Plugin as _0xec22e2,merge as _0x47242e,registerDependencies as _0x26645d,mergeOverrideWithDependencies as _0x508f67,touchDependencies as _0x34849a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x394a08,InsertSheetMutation as _0x587516}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x406fa2,SetScrollOperation as _0x3b0e8e}from'@univerjs/sheets-ui';import{useDependency as _0x192779,useObservable as _0x17612b,IUIPartsService as _0x257d82,BuiltInUIPart as _0x5a30be,connectInjector as _0x3350ba}from'@univerjs/ui';import{jsx as _0xc206b,jsxs as _0x10d624,Fragment as _0x58a9cf}from'react/jsx-runtime';import{Dropdown as _0x5b29ed,clsx as _0x1dfccb,Button as _0xff20a5}from'@univerjs/design';import{forwardRef as _0x58e026,useRef as _0x15fff5,createElement as _0x1ce21c,useState as _0x153009,useEffect as _0x1fea22}from'react';import{CollaborationEvent as _0x2a9a59,parseProtocolChangeset as _0x555882}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5c8398,Subject as _0x4b30d1}from'rxjs';import{takeUntil as _0x370249,throttleTime as _0xcd833b}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x49ef90{constructor(){var _0x418b81=_0x21acba;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x418b81(0x15e),new Set());}['registerSharedOperation'](_0x56eb73){var _0x2e68e0=_0x21acba;return this[_0x2e68e0(0xf6)][_0x2e68e0(0x121)](_0x56eb73),_0x52738f(()=>this[_0x2e68e0(0xf6)]['delete'](_0x56eb73));}[_0x21acba(0xcb)](_0x23d462){var _0x1db8c8=_0x21acba;return this['_reporters']['add'](_0x23d462),_0x52738f(()=>this[_0x1db8c8(0x15e)][_0x1db8c8(0xd4)](_0x23d462));}['shouldShareOperation'](_0x367cbb){var _0x552963=_0x21acba;return this[_0x552963(0xf6)][_0x552963(0x101)](_0x367cbb);}['getInitialStates'](_0x5d1a27){var _0x307f14=_0x21acba;return Array[_0x307f14(0x106)](this[_0x307f14(0x15e)])[_0x307f14(0x11b)](_0xe104bc=>_0xe104bc(_0x5d1a27));}}var Ee=Object[_0x21acba(0x111)],we=(_0x4eeed7,_0x49d6d4,_0x21d7f5,_0x2d8035)=>{var _0x142041=_0x21acba;for(var _0x917484=_0x2d8035>0x1?void 0x0:_0x2d8035?Ee(_0x49d6d4,_0x21d7f5):_0x49d6d4,_0x30a42a=_0x4eeed7[_0x142041(0x13e)]-0x1,_0x3c9ddc;_0x30a42a>=0x0;_0x30a42a--)(_0x3c9ddc=_0x4eeed7[_0x30a42a])&&(_0x917484=_0x3c9ddc(_0x917484)||_0x917484);return _0x917484;},Ne=(_0x380c88,_0x1e8e0c)=>(_0x113b80,_0x457b83)=>_0x1e8e0c(_0x113b80,_0x457b83,_0x380c88);let m=class extends _0x49ef90{constructor(_0x3eddf2){var _0xfdd21d=_0x21acba;super(),this[_0xfdd21d(0x128)]=_0x3eddf2,this[_0xfdd21d(0x14b)]();}[_0x21acba(0x14b)](){var _0x46ac6e=_0x21acba;[_0x406fa2['id'],_0x3b0e8e['id'],_0x394a08['id']][_0x46ac6e(0xec)](_0x52dc6c=>{var _0x5d9a7a=_0x46ac6e;this[_0x5d9a7a(0xd3)](this[_0x5d9a7a(0x128)][_0x5d9a7a(0x12d)](_0x52dc6c));});}};m=we([Ne(0x0,_0x45e3a0(L))],m);var c=function(){var _0xc60124=_0x21acba;return c=Object[_0xc60124(0x12f)]||function(_0x4df1fb){var _0x352269=_0xc60124;for(var _0x437f98,_0x3129c4=0x1,_0x1133f8=arguments['length'];_0x3129c4<_0x1133f8;_0x3129c4++){_0x437f98=arguments[_0x3129c4];for(var _0xb08396 in _0x437f98)Object[_0x352269(0xb1)][_0x352269(0x138)][_0x352269(0xe0)](_0x437f98,_0xb08396)&&(_0x4df1fb[_0xb08396]=_0x437f98[_0xb08396]);}return _0x4df1fb;},c[_0xc60124(0xc5)](this,arguments);},Ce=function(_0x24bffb,_0x4890b5){var _0x30244d=_0x21acba,_0x31aa66={};for(var _0xb3dd66 in _0x24bffb)Object['prototype'][_0x30244d(0x138)][_0x30244d(0xe0)](_0x24bffb,_0xb3dd66)&&_0x4890b5[_0x30244d(0x109)](_0xb3dd66)<0x0&&(_0x31aa66[_0xb3dd66]=_0x24bffb[_0xb3dd66]);if(_0x24bffb!=null&&typeof Object[_0x30244d(0xb5)]==_0x30244d(0x123)){for(var _0x354035=0x0,_0xb3dd66=Object[_0x30244d(0xb5)](_0x24bffb);_0x354035<_0xb3dd66['length'];_0x354035++)_0x4890b5['indexOf'](_0xb3dd66[_0x354035])<0x0&&Object[_0x30244d(0xb1)][_0x30244d(0xe4)][_0x30244d(0xe0)](_0x24bffb,_0xb3dd66[_0x354035])&&(_0x31aa66[_0xb3dd66[_0x354035]]=_0x24bffb[_0xb3dd66[_0x354035]]);}return _0x31aa66;},W=_0x58e026(function(_0x4e811,_0xaf7f92){var _0x2913de=_0x21acba,_0x5d36aa=_0x4e811[_0x2913de(0x134)],_0x5c9086=_0x4e811['id'],_0x256015=_0x4e811[_0x2913de(0x124)],_0x189783=_0x4e811[_0x2913de(0x117)],_0x1b5e7e=Ce(_0x4e811,[_0x2913de(0x134),'id',_0x2913de(0x124),'extend']),_0x55a6b5=_0x2913de(0xe8)[_0x2913de(0x15b)](_0x5c9086,'\x20')[_0x2913de(0x15b)](_0x256015||'')[_0x2913de(0x10e)](),_0xf89af3=_0x15fff5('_'[_0x2913de(0x15b)](Le()));return Y(_0x5d36aa,''[_0x2913de(0x15b)](_0x5c9086),{'defIds':_0x5d36aa['defIds'],'idSuffix':_0xf89af3[_0x2913de(0x120)]},c({'ref':_0xaf7f92,'className':_0x55a6b5},_0x1b5e7e),_0x189783);});function Y(_0x5725b1,_0x4c07f8,_0x587561,_0x11f703,_0x46f580){var _0x5466b7=_0x21acba;return _0x1ce21c(_0x5725b1[_0x5466b7(0x104)],c(c({'key':_0x4c07f8},De(_0x5725b1,_0x587561,_0x46f580)),_0x11f703),(xe(_0x5725b1,_0x587561)['children']||[])[_0x5466b7(0x11b)](function(_0x236cea,_0x2296d4){var _0x4de01a=_0x5466b7;return Y(_0x236cea,''['concat'](_0x4c07f8,'-')[_0x4de01a(0x15b)](_0x5725b1[_0x4de01a(0x104)],'-')[_0x4de01a(0x15b)](_0x2296d4),_0x587561,void 0x0,_0x46f580);}));}function De(_0x20645a,_0xaef010,_0x74fda){var _0x326e1b=_0x21acba,_0xca9673=c({},_0x20645a[_0x326e1b(0xed)]);_0x74fda!=null&&_0x74fda['colorChannel1']&&_0xca9673['fill']===_0x326e1b(0xb2)&&(_0xca9673[_0x326e1b(0xca)]=_0x74fda[_0x326e1b(0xb2)]),_0x20645a[_0x326e1b(0x104)]===_0x326e1b(0xd5)&&_0xca9673['id']&&(_0xca9673['id']=_0xca9673['id']+_0xaef010[_0x326e1b(0xe5)]),Object[_0x326e1b(0xee)](_0xca9673)[_0x326e1b(0xec)](function(_0x8b58be){var _0xde5e3b=_0x326e1b,_0xc553fc=_0x8b58be[0x0],_0x2b8dd3=_0x8b58be[0x1];_0xc553fc==='mask'&&typeof _0x2b8dd3=='string'&&(_0xca9673[_0xc553fc]=_0x2b8dd3['replace'](/url\(#(.*)\)/,'url(#$1'[_0xde5e3b(0x15b)](_0xaef010[_0xde5e3b(0xe5)],')')));});var _0x8aa200=_0xaef010['defIds'];return!_0x8aa200||_0x8aa200[_0x326e1b(0x13e)]===0x0||(_0x20645a[_0x326e1b(0x104)]===_0x326e1b(0xf4)&&_0xca9673[_0x326e1b(0xd7)]&&(_0xca9673['xlink:href']=_0xca9673['xlink:href']+_0xaef010[_0x326e1b(0xe5)]),Object[_0x326e1b(0xee)](_0xca9673)[_0x326e1b(0xec)](function(_0x3ee18f){var _0x2fe06b=_0x326e1b,_0x5d7b96=_0x3ee18f[0x0],_0x57cc7f=_0x3ee18f[0x1];typeof _0x57cc7f==_0x2fe06b(0xc0)&&(_0xca9673[_0x5d7b96]=_0x57cc7f[_0x2fe06b(0xc2)](/url\(#(.*)\)/,'url(#$1'['concat'](_0xaef010[_0x2fe06b(0xe5)],')')));})),_0xca9673;}function xe(_0x5ce56c,_0x2a5030){var _0x202836=_0x21acba,_0x206975,_0x36f756=_0x2a5030[_0x202836(0xe2)];return!_0x36f756||_0x36f756[_0x202836(0x13e)]===0x0?_0x5ce56c:_0x5ce56c['tag']===_0x202836(0x122)&&(!((_0x206975=_0x5ce56c[_0x202836(0xd6)])===null||_0x206975===void 0x0)&&_0x206975[_0x202836(0x13e)])?c(c({},_0x5ce56c),{'children':_0x5ce56c[_0x202836(0xd6)][_0x202836(0x11b)](function(_0x42470e){var _0x513362=_0x202836;return typeof _0x42470e[_0x513362(0xed)]['id']==_0x513362(0xc0)&&_0x36f756&&_0x36f756['includes'](_0x42470e[_0x513362(0xed)]['id'])?c(c({},_0x42470e),{'attrs':c(c({},_0x42470e['attrs']),{'id':_0x42470e[_0x513362(0xed)]['id']+_0x2a5030[_0x513362(0xe5)]})}):_0x42470e;})}):_0x5ce56c;}function Le(){var _0x365759=_0x21acba;return Math[_0x365759(0xd9)]()[_0x365759(0x12c)](0x24)[_0x365759(0xae)](0x2,0x8);}W['displayName']=_0x21acba(0xdb);var ye={'tag':_0x21acba(0xcf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x21acba(0x15a),'viewBox':_0x21acba(0x135),'width':'1em','height':_0x21acba(0xfd)},'children':[{'tag':_0x21acba(0xb6),'attrs':{'fill':_0x21acba(0x140),'d':_0x21acba(0x144)}},{'tag':_0x21acba(0xb6),'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':_0x21acba(0x10a),'clipRule':_0x21acba(0x10a)}}]},B=_0x58e026(function(_0x386693,_0x5a0fe5){var _0x282107=_0x21acba;return _0x1ce21c(W,Object['assign']({},_0x386693,{'id':_0x282107(0xac),'ref':_0x5a0fe5,'icon':ye}));});B[_0x21acba(0xf3)]=_0x21acba(0xf1);var Re=Object[_0x21acba(0x111)],Z=(_0x3f4a7f,_0x54afd3,_0x34f612,_0x45a95a)=>{for(var _0x2a935e=_0x45a95a>0x1?void 0x0:_0x45a95a?Re(_0x54afd3,_0x34f612):_0x54afd3,_0x50c49b=_0x3f4a7f['length']-0x1,_0x298675;_0x50c49b>=0x0;_0x50c49b--)(_0x298675=_0x3f4a7f[_0x50c49b])&&(_0x2a935e=_0x298675(_0x2a935e)||_0x2a935e);return _0x2a935e;},f=(_0x2e2ac9,_0x3bc973)=>(_0x47eae1,_0x2dedc3)=>_0x3bc973(_0x47eae1,_0x2dedc3,_0x2e2ac9);let I=class extends _0x42375c{constructor(_0x42c7b1,_0x257f66,_0x12c234){var _0x572291=_0x21acba;super(),d(this,'_entities',new Map()),(this[_0x572291(0xfa)]=_0x42c7b1,this[_0x572291(0x142)]=_0x257f66,this[_0x572291(0x11e)]=_0x12c234,this[_0x572291(0x14b)]());}async[_0x21acba(0x151)](_0x5564f1){var _0x565b63=_0x21acba;return this[_0x565b63(0xeb)]['has'](_0x5564f1)||await this[_0x565b63(0x114)](_0x5564f1),this[_0x565b63(0xeb)]['get'](_0x5564f1);}['_init'](){var _0x593a29=_0x21acba;this[_0x593a29(0xfa)][_0x593a29(0x100)](_0x2636cb[_0x593a29(0x11d)])[_0x593a29(0xb4)](_0x370249(this[_0x593a29(0xad)]))['subscribe'](async _0x3f3127=>{var _0x3720ff=_0x593a29;const _0x4992e9=_0x3f3127['getUnitId']();this['_entities'][_0x3720ff(0x101)](_0x4992e9)||this[_0x3720ff(0x114)](_0x4992e9);}),this[_0x593a29(0xfa)]['getTypeOfUnitDisposed$'](_0x2636cb[_0x593a29(0x11d)])[_0x593a29(0xb4)](_0x370249(this['dispose$']))[_0x593a29(0x141)](_0x315b46=>{var _0x23da2b=_0x593a29;const _0x5aa029=_0x315b46[_0x23da2b(0x143)](),_0x168efb=this[_0x23da2b(0xeb)][_0x23da2b(0x158)](_0x5aa029);_0x168efb==null||_0x168efb[_0x23da2b(0x112)]();});}async[_0x21acba(0x114)](_0x51c9c8){var _0x83fc28=_0x21acba;const _0x361280=await this[_0x83fc28(0x11e)][_0x83fc28(0xbf)](_0x51c9c8),_0x5310cb=this['_injector']['createInstance'](C,_0x51c9c8,_0x361280);return _0x5310cb[_0x83fc28(0xaf)](),this[_0x83fc28(0xeb)][_0x83fc28(0xc9)](_0x51c9c8,_0x5310cb),_0x5310cb;}};I=Z([f(0x0,_0x3bd673),f(0x1,_0x45e3a0(_0x3944a4)),f(0x2,_0x45e3a0(_0x418e8c))],I);var h=(_0x2b3c22=>(_0x2b3c22['OFFLINE']=_0x21acba(0x107),_0x2b3c22[_0x21acba(0xb9)]=_0x21acba(0x14c),_0x2b3c22[_0x21acba(0xc8)]='following',_0x2b3c22['NOT_FOLLOWING']=_0x21acba(0x110),_0x2b3c22[_0x21acba(0x147)]='presenting',_0x2b3c22))(h||{});const Pe=_0x21acba(0x150),Ae=0xc8;let C=class extends _0x42375c{constructor(_0x4f3673,_0x4a6691,_0x27dbca,_0x10e86c,_0x1927c0){var _0x590299=_0x21acba;super(),d(this,_0x590299(0x154),new _0x5c8398(_0x590299(0x14c))),d(this,_0x590299(0xc6),this[_0x590299(0x154)][_0x590299(0x14e)]()),d(this,_0x590299(0x14b),!0x1),d(this,_0x590299(0x15f),null),d(this,'_presenter',null),(this[_0x590299(0xb7)]=_0x4f3673,this[_0x590299(0xdc)]=_0x4a6691,this[_0x590299(0x102)]=_0x27dbca,this['_liveShareService']=_0x10e86c,this[_0x590299(0x119)]=_0x1927c0);}get[_0x21acba(0x103)](){var _0x5cdaa4=_0x21acba;return this[_0x5cdaa4(0x154)][_0x5cdaa4(0x132)]();}[_0x21acba(0x112)](){var _0x1b4cd3=_0x21acba,_0x1cff20;(_0x1cff20=this['_commandDisposable'])==null||_0x1cff20['dispose'](),this['_status$'][_0x1b4cd3(0xe3)]('idle'),this['_status$'][_0x1b4cd3(0x15d)]();}['init'](){var _0x4378d2=_0x21acba;this[_0x4378d2(0x14b)]||(this[_0x4378d2(0x14b)]=!0x0,this['_collabSession'][_0x4378d2(0x15c)][_0x4378d2(0xb4)](_0x370249(this[_0x4378d2(0xad)]))[_0x4378d2(0x141)](_0xec6771=>{var _0x5652b6=_0x4378d2;switch(_0xec6771){case _0x4c8836['OFFLINE']:this[_0x5652b6(0x14d)]();break;case _0x4c8836[_0x5652b6(0x13d)]:this['_handleOnline']();break;}}),this[_0x4378d2(0xdc)][_0x4378d2(0x153)]['pipe'](_0x370249(this['dispose$']))[_0x4378d2(0x141)](_0x16196f=>{var _0x2dd5ea=_0x4378d2;const {eventID:_0x39aecc}=_0x16196f;switch(_0x39aecc){case _0x2a9a59[_0x2dd5ea(0xbb)]:this[_0x2dd5ea(0xb3)](_0x16196f);break;case _0x2a9a59[_0x2dd5ea(0x139)]:this[_0x2dd5ea(0x10f)](_0x16196f);break;case _0x2a9a59['LIVESHARE_TERMINATE']:this[_0x2dd5ea(0x127)]();break;case _0x2a9a59['NEW_CHANGESETS']:this[_0x2dd5ea(0x148)](_0x16196f);break;}}));}[_0x21acba(0x155)](){var _0x42e76b=_0x21acba;this['_collabSession'][_0x42e76b(0xda)]({'eventID':_0x2a9a59['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x42e76b(0xb7)],'userID':this[_0x42e76b(0xdc)][_0x42e76b(0xea)]()}},this[_0x42e76b(0xb7)]);}['stopPresenting'](){var _0xb9def3=_0x21acba;this[_0xb9def3(0x103)]===_0xb9def3(0xf2)&&(this[_0xb9def3(0x154)]['next'](_0xb9def3(0x14c)),this['_collabSession']['send']({'eventID':_0x2a9a59[_0xb9def3(0xc7)],'data':{'unitID':this[_0xb9def3(0xb7)]}},this[_0xb9def3(0xb7)]));}[_0x21acba(0xcd)](){var _0x56f90a=_0x21acba;this['_status']===_0x56f90a(0x110)&&(this[_0x56f90a(0x154)][_0x56f90a(0xe3)](_0x56f90a(0xe9)),this[_0x56f90a(0x108)]());}[_0x21acba(0xbc)](){var _0x126fdc=_0x21acba;this[_0x126fdc(0x103)]===_0x126fdc(0xe9)&&this['_stopFollowing']();}[_0x21acba(0xb3)](_0x2f363f){var _0x218a2d=_0x21acba;const {presenter:_0x36769f}=_0x2f363f[_0x218a2d(0x146)],_0x359182=this[_0x218a2d(0xdc)][_0x218a2d(0xea)]();this[_0x218a2d(0x10c)]=_0x36769f,_0x36769f===_0x359182?(this[_0x218a2d(0x11f)](),this[_0x218a2d(0x118)]()):this[_0x218a2d(0x103)]!==_0x218a2d(0x110)&&(this['_stopPresenting'](),this[_0x218a2d(0x108)]());}[_0x21acba(0xc1)](){var _0x120dc6=_0x21acba;const _0x4b7bbc={'eventID':_0x2a9a59['LIVESHARE_FETCH_OPERATIONS']};this[_0x120dc6(0xdc)][_0x120dc6(0xda)](_0x4b7bbc,this['_unitID']);}[_0x21acba(0x127)](){var _0x399c1a=_0x21acba;this[_0x399c1a(0x10c)]=null,this['_status']!==_0x399c1a(0xf2)&&this['_beIdle']();}[_0x21acba(0x148)](_0x10fa4c){var _0x6239e0=_0x21acba;if(this[_0x6239e0(0x103)]===_0x6239e0(0xe9)&&this['_presenter']===_0x10fa4c[_0x6239e0(0x146)][_0x6239e0(0xd1)]){const _0x16524b=_0x555882(_0x10fa4c[_0x6239e0(0x146)])[_0x6239e0(0xef)]['reverse']()[_0x6239e0(0xc3)](_0x549779=>_0x549779['id']===_0x587516['id']);if(_0x16524b){const _0x1a89fa=_0x16524b[_0x6239e0(0xd8)]['unitId'],_0x48c0ae=_0x16524b[_0x6239e0(0xd8)][_0x6239e0(0xb8)]['id'];setTimeout(()=>{var _0x4584fe=_0x6239e0;this[_0x4584fe(0x119)][_0x4584fe(0x115)](_0x394a08['id'],{'unitId':_0x1a89fa,'subUnitId':_0x48c0ae},{'fromCollab':!0x0});});}}}[_0x21acba(0x118)](){var _0xc608f5=_0x21acba;this['_status$']['next']('presenting');const _0x476633=new Map(),_0xfe239=this[_0xc608f5(0x15f)]=new _0x240d80();_0xfe239['add'](_0x52738f(()=>{var _0x176286=_0xc608f5;_0x476633[_0x176286(0xec)](_0x3a77aa=>_0x3a77aa[_0x176286(0x15d)]()),_0x476633[_0x176286(0x11c)]();})),_0xfe239[_0xc608f5(0x121)](this['_commandService'][_0xc608f5(0xd2)](_0x10ad48=>{var _0x4394ab=_0xc608f5,_0x49f695;if(_0x10ad48[_0x4394ab(0x10b)]!==_0x2b26cd[_0x4394ab(0xfc)]||!this[_0x4394ab(0x128)][_0x4394ab(0xff)](_0x10ad48['id']))return;const {id:_0x27b991}=_0x10ad48;let _0x792d99;_0x476633[_0x4394ab(0x101)](_0x27b991)?_0x792d99=_0x476633['get'](_0x27b991):(_0x792d99=new _0x4b30d1(),_0x476633[_0x4394ab(0xc9)](_0x27b991,_0x792d99),_0x792d99['pipe'](_0xcd833b((_0x49f695=this[_0x4394ab(0x102)][_0x4394ab(0x113)](Pe))!=null?_0x49f695:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4394ab(0x141)](_0x5ea63f=>{var _0x3c7593=_0x4394ab;this[_0x3c7593(0xdc)][_0x3c7593(0xda)]({'eventID':_0x2a9a59[_0x3c7593(0x139)],'data':{'unitID':this[_0x3c7593(0xb7)],'operations':{[_0x5ea63f['id']]:{'id':_0x5ea63f['id'],'params':JSON[_0x3c7593(0x136)](_0x5ea63f[_0x3c7593(0xd8)])}}}},this[_0x3c7593(0xb7)]);})),_0x792d99[_0x4394ab(0xe3)](_0x10ad48);})),this[_0xc608f5(0x128)][_0xc608f5(0x129)](this[_0xc608f5(0xb7)])[_0xc608f5(0xec)](_0x325b0f=>this[_0xc608f5(0xdc)][_0xc608f5(0xda)]({'eventID':_0x2a9a59[_0xc608f5(0x139)],'data':{'unitID':this['_unitID'],'operations':{[_0x325b0f['id']]:{'id':_0x325b0f['id'],'params':JSON['stringify'](_0x325b0f['params'])}}}},this['_unitID']));}[_0x21acba(0x125)](){var _0x4574e9=_0x21acba,_0x1fe9c1;this['_status$']['next'](_0x4574e9(0x14c)),(_0x1fe9c1=this[_0x4574e9(0x15f)])==null||_0x1fe9c1[_0x4574e9(0x112)](),this[_0x4574e9(0x15f)]=null;}[_0x21acba(0x108)](){var _0x197bb2=_0x21acba,_0x5d2a0c;(_0x5d2a0c=this[_0x197bb2(0x15f)])==null||_0x5d2a0c[_0x197bb2(0x112)](),this[_0x197bb2(0x154)][_0x197bb2(0xe3)](_0x197bb2(0xe9));}['_beIdle'](){var _0x529434=_0x21acba,_0x3be2fd;this[_0x529434(0x154)][_0x529434(0xe3)](_0x529434(0x14c)),(_0x3be2fd=this[_0x529434(0x15f)])==null||_0x3be2fd[_0x529434(0x112)](),this[_0x529434(0x15f)]=null;}[_0x21acba(0x11f)](){var _0x262717=_0x21acba,_0x323b87;this[_0x262717(0x154)][_0x262717(0xe3)](_0x262717(0x110)),(_0x323b87=this[_0x262717(0x15f)])==null||_0x323b87[_0x262717(0x112)]();}[_0x21acba(0x10f)](_0x1ab44d){var _0x32ee77=_0x21acba;if([_0x32ee77(0xf2),_0x32ee77(0x110),_0x32ee77(0x107)][_0x32ee77(0x157)](this[_0x32ee77(0x103)])||!_0x1ab44d[_0x32ee77(0x146)][_0x32ee77(0xf8)]||_0x1ab44d['data'][_0x32ee77(0xf8)]===this[_0x32ee77(0xdc)]['getMemberID']())return;this[_0x32ee77(0x103)]===_0x32ee77(0x14c)&&this[_0x32ee77(0x108)]();const _0x4ceed3=_0x1ab44d[_0x32ee77(0x146)][_0x32ee77(0xe1)];Object['values'](_0x4ceed3)[_0x32ee77(0xec)](_0x46f543=>{var _0x5db352=_0x32ee77;this[_0x5db352(0x119)][_0x5db352(0x115)](_0x46f543['id'],_0x46f543[_0x5db352(0xd8)]?JSON[_0x5db352(0x116)](_0x46f543[_0x5db352(0xd8)]):null,{'fromCollab':!0x0});});}[_0x21acba(0x14d)](){var _0x4b9222=_0x21acba,_0x2e002c;this['_status$']['next']('offline'),(_0x2e002c=this[_0x4b9222(0x15f)])==null||_0x2e002c[_0x4b9222(0x112)]();}[_0x21acba(0x137)](){var _0x573ecd=_0x21acba;this[_0x573ecd(0x154)][_0x573ecd(0xe3)](_0x573ecd(0x14c)),this[_0x573ecd(0xc1)]();}};C=Z([f(0x2,_0x56c18f),f(0x3,_0x45e3a0(L)),f(0x4,_0x40b986)],C);function Te(){var _0x6c1069=_0x21acba;const _0x448ab1=_0x192779(I),_0x5eb56c=_0x192779(_0x3bd673),_0x1afc80=_0x17612b(()=>_0x5eb56c[_0x6c1069(0xe6)](_0x2636cb[_0x6c1069(0x11d)]),void 0x0,!0x1,[]),[_0x55a08d,_0xf14ce9]=_0x153009(null),[_0x314a70,_0xf14ed9]=_0x153009(h[_0x6c1069(0xb9)]),_0x11456b=_0x15fff5(null);return _0x1fea22(()=>(_0x1afc80&&_0x448ab1['getLiveShareCoordinator'](_0x1afc80['getUnitId']())[_0x6c1069(0xd0)](_0x171cf7=>{var _0x4a77df=_0x6c1069;_0xf14ce9(_0x171cf7),_0x11456b[_0x4a77df(0x120)]=_0x171cf7[_0x4a77df(0xc6)]['subscribe'](_0x152223=>{_0xf14ed9(_0x152223);});}),()=>{var _0x26b8da=_0x6c1069,_0x223902;(_0x223902=_0x11456b[_0x26b8da(0x120)])==null||_0x223902[_0x26b8da(0x14a)](),_0x11456b[_0x26b8da(0x120)]=null;}),[_0x1afc80,_0x448ab1]),_0x55a08d?_0xc206b(_0x5b29ed,{'align':'end','disabled':_0x314a70===h[_0x6c1069(0x152)],'className':_0x6c1069(0x13a),'overlay':_0xc206b($e,{'status':_0x314a70,'coordinator':_0x55a08d}),'children':_0xc206b(_0x6c1069(0xdf),{'className':_0x1dfccb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x314a70===h[_0x6c1069(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x314a70!==h[_0x6c1069(0x152)]}),'type':_0x6c1069(0xdf),'children':_0xc206b(B,{'className':'univer-size-4'})})}):null;}function $e(_0x2426dd){var _0x506e88=_0x21acba;const {status:_0x3da7c0,coordinator:_0x4bbeb9}=_0x2426dd;switch(_0x3da7c0){case h[_0x506e88(0xb9)]:return _0xc206b(Fe,{'coordinator':_0x4bbeb9});case h[_0x506e88(0xc8)]:return _0xc206b(He,{'coordinator':_0x4bbeb9});case h[_0x506e88(0xdd)]:return _0xc206b(je,{'coordinator':_0x4bbeb9});case h[_0x506e88(0x152)]:return _0xc206b(Ve,{});case h[_0x506e88(0x147)]:return _0xc206b(Ue,{'coordinator':_0x4bbeb9});default:return null;}}function Fe(_0x251122){var _0x45a757=_0x21acba;const {coordinator:_0x2ef4ac}=_0x251122;return _0x10d624(_0x58a9cf,{'children':[_0xc206b('div',{'className':_0x45a757(0x145),'children':_0x45a757(0x11a)}),_0xc206b(_0xff20a5,{'onClick':()=>_0x2ef4ac[_0x45a757(0x155)](),'children':_0x45a757(0xc4)})]});}function He(_0x11b326){var _0x446dca=_0x21acba;const {coordinator:_0x2e86c8}=_0x11b326;return _0x10d624(_0x58a9cf,{'children':[_0xc206b(_0x446dca(0xce),{'className':_0x446dca(0x145),'children':_0x446dca(0xba)}),_0xc206b(_0xff20a5,{'onClick':()=>_0x2e86c8[_0x446dca(0xbc)](),'children':'Stop\x20following'})]});}function je(_0x57388a){var _0x75961=_0x21acba;const {coordinator:_0xdb234b}=_0x57388a;return _0x10d624(_0x58a9cf,{'children':[_0xc206b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x75961(0x12b)}),_0xc206b(_0xff20a5,{'variant':'text','onClick':()=>_0xdb234b[_0x75961(0xcd)](),'children':'Start\x20following'})]});}function Ue(_0x99db5d){var _0xca61f5=_0x21acba;const {coordinator:_0x342ac3}=_0x99db5d;return _0x10d624(_0x58a9cf,{'children':[_0xc206b(_0xca61f5(0xce),{'className':_0xca61f5(0x145),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xc206b(_0xff20a5,{'variant':_0xca61f5(0x14f),'onClick':()=>_0x342ac3[_0xca61f5(0x133)](),'children':_0xca61f5(0x13f)})]});}function Ve(){var _0x1c32c4=_0x21acba;return _0xc206b(_0x58a9cf,{'children':_0x1c32c4(0x10d)});}var Me=Object[_0x21acba(0x111)],ke=(_0x5b3b96,_0x3b742a,_0x2a5025,_0x26d7fa)=>{var _0x1961b0=_0x21acba;for(var _0x59c165=_0x26d7fa>0x1?void 0x0:_0x26d7fa?Me(_0x3b742a,_0x2a5025):_0x3b742a,_0x3c777c=_0x5b3b96[_0x1961b0(0x13e)]-0x1,_0x20e0a4;_0x3c777c>=0x0;_0x3c777c--)(_0x20e0a4=_0x5b3b96[_0x3c777c])&&(_0x59c165=_0x20e0a4(_0x59c165)||_0x59c165);return _0x59c165;},$=(_0x3412ad,_0x18a6bd)=>(_0x1bae55,_0x34c4e4)=>_0x18a6bd(_0x1bae55,_0x34c4e4,_0x3412ad);function _0x56c5(){var _0xec1c0c=['UniverIcon','_collabSession','NOT_FOLLOWING','42984wAwFpu','button','call','operations','defIds','next','propertyIsEnumerable','idSuffix','getCurrentTypeOfUnit$','defineProperty','univerjs-icon\x20univerjs-icon-','following','getMemberID','_entities','forEach','attrs','entries','mutations','UNIVER_UNKNOWN','LiveShareIcon','presenting','displayName','use','4jXvUOq','_sharedOperations','_uiPartsService','presenter','4589669XwEufQ','_univerInstanceService','pluginName','OPERATION','1em','HEADER_MENU','shouldShareOperation','getTypeOfUnitAdded$','has','_configService','_status','tag','UNIVER_LIVE_SHARE_PLUGIN','from','offline','_startFollowing','indexOf','evenodd','type','_presenter','You\x27are\x20offline.','trim','_handleOperation','not-following','getOwnPropertyDescriptor','dispose','getConfig','_startLiveShareCoordinator','executeCommand','parse','extend','_startPresenting','_commandService','Present\x20this\x20document','map','clear','UNIVER_SHEET','_collabSessionService','_stopFollowing','current','add','defs','function','className','_stopPresenting','31448ntJEPF','_handleTerminate','_liveShareService','getInitialStates','override','You\x27re\x20not\x20following\x20the\x20presenter','toString','registerSharedOperation','11658482xxfXfp','assign','40099XSIBJV','254640yppFSA','getValue','stopPresenting','icon','0\x200\x2017\x2017','stringify','_handleOnline','hasOwnProperty','LIVESHARE_OPERATION','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','1251muXnoh','onStarting','ONLINE','length','Stop\x20presenting','currentColor','subscribe','_injector','getUnitId','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','univer-mb-3\x20univer-w-full\x20univer-text-sm','data','PRESENTING','_handleNewChangeSets','_mountLiveShare','unsubscribe','_init','idle','_handleOffline','asObservable','default','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','OFFLINE','event$','_status$','tryStartPresenting','490KRXAju','includes','get','_config','none','concat','sessionStatus$','complete','_reporters','_commandDisposable','registerComponent','live-share-icon','dispose$','substring','init','setConfig','prototype','colorChannel1','_handleNewHost','pipe','getOwnPropertySymbols','path','_unitID','sheet','IDLE','You\x27re\x20following\x20the\x20presenter','LIVESHARE_NEW_HOST','stopFollowing','symbol','1741125DfZNhF','requireSession','string','_fetchOperations','replace','find','Start','apply','status$','LIVESHARE_TERMINATE','FOLLOWING','set','fill','registerInitialStateReporter','6vjduyA','startFollowing','div','svg','then','memberID','onCommandExecuted','disposeWithMe','delete','mask','children','xlink:href','params','random','send'];_0x56c5=function(){return _0xec1c0c;};return _0x56c5();}let b=class extends _0x49ef90{constructor(_0x5b01dd,_0x5277f7){var _0x2b40bf=_0x21acba;super(),this[_0x2b40bf(0x142)]=_0x5b01dd,this[_0x2b40bf(0xf7)]=_0x5277f7,this['_mountLiveShare']();}[_0x21acba(0x149)](){var _0xc49821=_0x21acba;this[_0xc49821(0xd3)](this[_0xc49821(0xf7)][_0xc49821(0xab)](_0x5a30be[_0xc49821(0xfe)],()=>_0x3350ba(Te,this[_0xc49821(0x142)])));}};b=ke([$(0x0,_0x45e3a0(_0x3944a4)),$(0x1,_0x257d82)],b);function _0x24fa(_0x511d67,_0x46f72a){var _0x56c5d9=_0x56c5();return _0x24fa=function(_0x24fa02,_0x1a195f){_0x24fa02=_0x24fa02-0xab;var _0x4d06e2=_0x56c5d9[_0x24fa02];return _0x4d06e2;},_0x24fa(_0x511d67,_0x46f72a);}var Ge=Object[_0x21acba(0xe7)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3ac2a8,_0x1638b7,_0x3bb6d0)=>_0x1638b7 in _0x3ac2a8?Ge(_0x3ac2a8,_0x1638b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bb6d0}):_0x3ac2a8[_0x1638b7]=_0x3bb6d0,Be=(_0x3e9a98,_0x66ab4b,_0x45fd0f,_0x49227f)=>{var _0x4f5cb7=_0x21acba;for(var _0x5c245d=_0x49227f>0x1?void 0x0:_0x49227f?We(_0x66ab4b,_0x45fd0f):_0x66ab4b,_0x83347e=_0x3e9a98[_0x4f5cb7(0x13e)]-0x1,_0x3cc55b;_0x83347e>=0x0;_0x83347e--)(_0x3cc55b=_0x3e9a98[_0x83347e])&&(_0x5c245d=_0x3cc55b(_0x5c245d)||_0x5c245d);return _0x5c245d;},F=(_0xe1f009,_0x372eb8)=>(_0x25a7d9,_0x124ad9)=>_0x372eb8(_0x25a7d9,_0x124ad9,_0xe1f009),J=(_0x353b7d,_0x3f8e87,_0x51edcc)=>Ye(_0x353b7d,typeof _0x3f8e87!='symbol'?_0x3f8e87+'':_0x3f8e87,_0x51edcc);const Ze=_0x21acba(0x105);let O=class extends _0xec22e2{constructor(_0x3e7a0e=T,_0x58105f,_0x1d797c){var _0xda3894=_0x21acba;super(),this[_0xda3894(0x159)]=_0x3e7a0e,this[_0xda3894(0x142)]=_0x58105f,this[_0xda3894(0x102)]=_0x1d797c;const {..._0x124445}=_0x47242e({},T,this[_0xda3894(0x159)]);this[_0xda3894(0x102)][_0xda3894(0xb0)](Oe,_0x124445);}[_0x21acba(0x13c)](){var _0xf59e67=_0x21acba;_0x26645d(this[_0xf59e67(0x142)],_0x508f67([[L],[I],[m],[b]],this['_config'][_0xf59e67(0x12a)])),_0x34849a(this[_0xf59e67(0x142)],[[m]]);}['onRendered'](){var _0x57a76c=_0x21acba;_0x34849a(this[_0x57a76c(0x142)],[[b]]);}};J(O,_0x21acba(0x10b),_0x2636cb[_0x21acba(0xf0)]),J(O,_0x21acba(0xfb),Ze),O=Be([_0x49227d(_0x2380c4),F(0x1,_0x45e3a0(_0x3944a4)),F(0x2,_0x56c18f)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4f1b(){var _0x2f68a6=['random','asObservable','ONLINE','CommandType','getLiveShareCoordinator','UniverCore','use','_collabSession','path','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','sessionStatus$','IDLE','call','_sharedOperations','jsx','DisposableCollection','ICommandService','UniverSheets','LIVESHARE_TERMINATE','React','BuiltInUIPart','_config','useDependency','Present\x20this\x20document','currentColor','useEffect','defIds','none','4955412CRIbcB','registerDependencies','univer-mb-3\x20univer-w-full\x20univer-text-sm','react/jsx-runtime','NOT_FOLLOWING','SetZoomRatioOperation','_mountLiveShare','text','parse','onStarting','LiveShareService','LiveShareStatus','IConfigService','_presenter','_entities','pipe','78724BJLizg','children','substring','LIVESHARE_OPERATION','getOwnPropertySymbols','touchDependencies','univerjs-icon\x20univerjs-icon-','string','indexOf','UNIVER_SHEET','button','_stopPresenting','url(#$1','live-share.config','override','OFFLINE','Inject','trim','takeUntil','rxjs/operators','_beIdle','svg','assign','Dropdown','merge','http://www.w3.org/2000/svg','getInitialStates','tag','_commandService','1152nBtLkc','_startPresenting','jsxs','_handleOffline','UniverLiveSharePlugin','SessionStatus','requireSession','SAME_OPERATION_SHARE_INTERVAL','live-share-icon','useRef','map','amd','data','_handleTerminate','Module','createInstance','@univerjs-pro/collaboration-client','LIVESHARE_REQUEST_HOST','status$','_init','operators','icon','delete','end','registerComponent','createElement','SetWorksheetActiveOperation','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','className','_status','current','replace','useState','@univerjs/design','apply','_handleNewHost','unsubscribe','_startFollowing','type','executeCommand','LiveShareController','_liveShareService','toDisposable','UniverDesign','subscribe','SetScrollOperation','length','registerInitialStateReporter','rxjs','_univerInstanceService','FOLLOWING','not-following','complete','_stopFollowing','registerSharedOperation','throttleTime','LIVESHARE_NEW_HOST','forwardRef','_handleNewChangeSets','@univerjs/core','disposeWithMe','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','function','div','toString','Stop\x20presenting','concat','@univerjs-pro/collaboration','get','forEach','defineProperty','UniverInstanceType','2908520kKqyxT','getUnitId','exports','InsertSheetMutation','shouldShareOperation','stopPresenting','UniverCollaborationClientPlugin','_reporters','1470970azIHjE','PRESENTING','108676QasMWQ','_commandDisposable','getOwnPropertyDescriptor','xlink:href','send','fill','defs','CollaborationSessionService','IUniverInstanceService','has','_handleOperation','params','getConfig','colorChannel1','mutations','onCommandExecuted','from','_status$','You\x27are\x20offline.','displayName','next','_uiPartsService','getCurrentTypeOfUnit$','_collabSessionService','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','values','presenter','9xsGlFX','add','@univerjs/sheets','dispose$','univer-size-4','3580525uLvVhN','Fragment','operations','stringify','mask','Injector','following','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','3KlLgJr','setConfig','Disposable','stopFollowing','react','1em','_configService','event$','Stop\x20following','mergeOverrideWithDependencies','DesktopLiveShareController','idle','clear','idSuffix','2UNFPlN','attrs','dispose','startFollowing','You\x27re\x20presenting\x20the\x20document','OPERATION','_fetchOperations','RxDisposable','_startLiveShareCoordinator','UniverUi','offline','5761VfgEhy','presenting','entries','then','getMemberID','find','extend','unitId','tryStartPresenting','_injector','LiveShare','0\x200\x2017\x2017','Button','evenodd','clsx','UniverSheetsUi','CollaborationEvent','LiveShareCoordinator'];_0x4f1b=function(){return _0x2f68a6;};return _0x4f1b();}function _0x2862(_0x34d913,_0x4e3940){var _0x4f1bea=_0x4f1b();return _0x2862=function(_0x286215,_0x22a9e4){_0x286215=_0x286215-0xf3;var _0xd29009=_0x4f1bea[_0x286215];return _0xd29009;},_0x2862(_0x34d913,_0x4e3940);}(function(_0x5b37ed,_0x3e387a){var _0x424582=_0x2862,_0x2e5999=_0x5b37ed();while(!![]){try{var _0x430984=-parseInt(_0x424582(0x13d))/0x1*(-parseInt(_0x424582(0x187))/0x2)+-parseInt(_0x424582(0x12f))/0x3*(parseInt(_0x424582(0x106))/0x4)+parseInt(_0x424582(0x126))/0x5+-parseInt(_0x424582(0x1a4))/0x6*(parseInt(_0x424582(0x148))/0x7)+parseInt(_0x424582(0xfc))/0x8+-parseInt(_0x424582(0x121))/0x9*(parseInt(_0x424582(0x104))/0xa)+-parseInt(_0x424582(0x177))/0xb;if(_0x430984===_0x3e387a)break;else _0x2e5999['push'](_0x2e5999['shift']());}catch(_0x4a8b0a){_0x2e5999['push'](_0x2e5999['shift']());}}}(_0x4f1b,0x5bb44),function(_0x49ff15,_0x5f16b8){var _0x55ea3f=_0x2862;typeof exports=='object'&&typeof module<'u'?_0x5f16b8(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x55ea3f(0x1af)]?define([_0x55ea3f(0xfe),_0x55ea3f(0x1b4),_0x55ea3f(0x1e0),_0x55ea3f(0x123),'@univerjs/sheets-ui','@univerjs/ui',_0x55ea3f(0x17a),_0x55ea3f(0x1c6),_0x55ea3f(0x133),_0x55ea3f(0xf7),_0x55ea3f(0x1d5),_0x55ea3f(0x19a)],_0x5f16b8):(_0x49ff15=typeof globalThis<'u'?globalThis:_0x49ff15||self,_0x5f16b8(_0x49ff15['UniverProLiveShare']={},_0x49ff15['UniverProCollaborationClient'],_0x49ff15[_0x55ea3f(0x15f)],_0x49ff15[_0x55ea3f(0x16c)],_0x49ff15[_0x55ea3f(0x157)],_0x49ff15[_0x55ea3f(0x146)],_0x49ff15[_0x55ea3f(0x16e)],_0x49ff15[_0x55ea3f(0x1d0)],_0x49ff15[_0x55ea3f(0x16e)],_0x49ff15['UniverProCollaboration'],_0x49ff15[_0x55ea3f(0x1d5)],_0x49ff15[_0x55ea3f(0x1d5)][_0x55ea3f(0x1b8)]));}(this,function(_0x28a585,_0x4c6e9f,_0x8a7da7,_0x208215,_0x1f75e4,_0x494a01,_0x4b2509,_0x3974c2,_0x46dce1,_0x545fd4,_0x4f5c3c,_0xfe3ee9){'use strict';var _0x28c12d=_0x2862;var _0x2a5a97=Object['defineProperty'],_0x200da6=(_0x757948,_0x2a9713,_0x439e1b)=>_0x2a9713 in _0x757948?_0x2a5a97(_0x757948,_0x2a9713,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x439e1b}):_0x757948[_0x2a9713]=_0x439e1b,_0x2a12a4=(_0x134e06,_0x2bf30a,_0x434d03)=>_0x200da6(_0x134e06,typeof _0x2bf30a!=_0x28c12d(0x12e)?_0x2bf30a+'':_0x2bf30a,_0x434d03);const _0x4516d3=_0x28c12d(0x194),_0x18bf0d={};class _0x11870f extends _0x8a7da7['Disposable']{constructor(){var _0x45ebdf=_0x28c12d;super(...arguments),_0x2a12a4(this,_0x45ebdf(0x168),new Set()),_0x2a12a4(this,'_reporters',new Set());}[_0x28c12d(0x1db)](_0x5053ce){var _0x344b5a=_0x28c12d;return this[_0x344b5a(0x168)][_0x344b5a(0x122)](_0x5053ce),_0x8a7da7[_0x344b5a(0x1cf)](()=>this['_sharedOperations'][_0x344b5a(0x1ba)](_0x5053ce));}[_0x28c12d(0x1d4)](_0x2ef505){var _0x2cebc5=_0x28c12d;return this['_reporters'][_0x2cebc5(0x122)](_0x2ef505),_0x8a7da7[_0x2cebc5(0x1cf)](()=>this['_reporters'][_0x2cebc5(0x1ba)](_0x2ef505));}['shouldShareOperation'](_0x30901f){var _0x278684=_0x28c12d;return this[_0x278684(0x168)]['has'](_0x30901f);}[_0x28c12d(0x1a1)](_0x454941){var _0x3c84d8=_0x28c12d;return Array[_0x3c84d8(0x116)](this[_0x3c84d8(0x103)])['map'](_0x182aec=>_0x182aec(_0x454941));}}var _0x59fd18=Object[_0x28c12d(0x108)],_0x4152e6=(_0x1ea979,_0xee8e1e,_0x3f100b,_0x2812b9)=>{var _0x1390b1=_0x28c12d;for(var _0xbbf3e0=_0x2812b9>0x1?void 0x0:_0x2812b9?_0x59fd18(_0xee8e1e,_0x3f100b):_0xee8e1e,_0x553254=_0x1ea979[_0x1390b1(0x1d3)]-0x1,_0x293611;_0x553254>=0x0;_0x553254--)(_0x293611=_0x1ea979[_0x553254])&&(_0xbbf3e0=_0x293611(_0xbbf3e0)||_0xbbf3e0);return _0xbbf3e0;},_0x1cb6c5=(_0x464713,_0x3ab2e0)=>(_0x149d48,_0x3a511a)=>_0x3ab2e0(_0x149d48,_0x3a511a,_0x464713);let _0x9198ea=class extends _0x8a7da7[_0x28c12d(0x131)]{constructor(_0x12706d){var _0x261f52=_0x28c12d;super(),this[_0x261f52(0x1ce)]=_0x12706d,this[_0x261f52(0x1b7)]();}[_0x28c12d(0x1b7)](){var _0x14fa65=_0x28c12d;[_0x1f75e4[_0x14fa65(0x17c)]['id'],_0x1f75e4[_0x14fa65(0x1d2)]['id'],_0x208215[_0x14fa65(0x1be)]['id']][_0x14fa65(0xf9)](_0x3a9123=>{var _0x46afaa=_0x14fa65;this[_0x46afaa(0x1e1)](this['_liveShareService']['registerSharedOperation'](_0x3a9123));});}};_0x9198ea=_0x4152e6([_0x1cb6c5(0x0,_0x8a7da7[_0x28c12d(0x197)](_0x11870f))],_0x9198ea);var _0x127d3d=function(){var _0x5b7c5a=_0x28c12d;return _0x127d3d=Object['assign']||function(_0x575c49){var _0x506a79=_0x2862;for(var _0x1a847e,_0x17d87f=0x1,_0x41f67e=arguments[_0x506a79(0x1d3)];_0x17d87f<_0x41f67e;_0x17d87f++){_0x1a847e=arguments[_0x17d87f];for(var _0x2ad6a1 in _0x1a847e)Object['prototype']['hasOwnProperty'][_0x506a79(0x167)](_0x1a847e,_0x2ad6a1)&&(_0x575c49[_0x2ad6a1]=_0x1a847e[_0x2ad6a1]);}return _0x575c49;},_0x127d3d[_0x5b7c5a(0x1c7)](this,arguments);},_0x318390=function(_0x52cf40,_0xa7573){var _0x13e383=_0x28c12d,_0x3f2798={};for(var _0x32d31e in _0x52cf40)Object['prototype']['hasOwnProperty']['call'](_0x52cf40,_0x32d31e)&&_0xa7573[_0x13e383(0x18f)](_0x32d31e)<0x0&&(_0x3f2798[_0x32d31e]=_0x52cf40[_0x32d31e]);if(_0x52cf40!=null&&typeof Object[_0x13e383(0x18b)]==_0x13e383(0x1e3)){for(var _0xfe2e99=0x0,_0x32d31e=Object[_0x13e383(0x18b)](_0x52cf40);_0xfe2e99<_0x32d31e[_0x13e383(0x1d3)];_0xfe2e99++)_0xa7573[_0x13e383(0x18f)](_0x32d31e[_0xfe2e99])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x13e383(0x167)](_0x52cf40,_0x32d31e[_0xfe2e99])&&(_0x3f2798[_0x32d31e[_0xfe2e99]]=_0x52cf40[_0x32d31e[_0xfe2e99]]);}return _0x3f2798;},_0x13bbb2=_0x46dce1[_0x28c12d(0x1de)](function(_0x5046d1,_0xaca01f){var _0x1ff95f=_0x28c12d,_0x206378=_0x5046d1[_0x1ff95f(0x1b9)],_0x2c55c7=_0x5046d1['id'],_0x260b53=_0x5046d1[_0x1ff95f(0x1c1)],_0x5de0d4=_0x5046d1[_0x1ff95f(0x14e)],_0x503b74=_0x318390(_0x5046d1,['icon','id',_0x1ff95f(0x1c1),_0x1ff95f(0x14e)]),_0x612dbb=_0x1ff95f(0x18d)[_0x1ff95f(0xf6)](_0x2c55c7,'\x20')[_0x1ff95f(0xf6)](_0x260b53||'')[_0x1ff95f(0x198)](),_0x32a909=_0x46dce1[_0x1ff95f(0x1ad)]('_'[_0x1ff95f(0xf6)](_0x315c0a()));return _0x21268e(_0x206378,''[_0x1ff95f(0xf6)](_0x2c55c7),{'defIds':_0x206378[_0x1ff95f(0x175)],'idSuffix':_0x32a909[_0x1ff95f(0x1c3)]},_0x127d3d({'ref':_0xaca01f,'className':_0x612dbb},_0x503b74),_0x5de0d4);});function _0x21268e(_0x282254,_0x562598,_0x253548,_0x3ae83a,_0x1e3918){var _0x580c3d=_0x28c12d;return _0x46dce1[_0x580c3d(0x1bd)](_0x282254[_0x580c3d(0x1a2)],_0x127d3d(_0x127d3d({'key':_0x562598},_0x109dd5(_0x282254,_0x253548,_0x1e3918)),_0x3ae83a),(_0x4446bb(_0x282254,_0x253548)[_0x580c3d(0x188)]||[])[_0x580c3d(0x1ae)](function(_0x4ffd41,_0x5c6d50){var _0x1dce36=_0x580c3d;return _0x21268e(_0x4ffd41,''[_0x1dce36(0xf6)](_0x562598,'-')['concat'](_0x282254[_0x1dce36(0x1a2)],'-')['concat'](_0x5c6d50),_0x253548,void 0x0,_0x1e3918);}));}function _0x109dd5(_0x1789ab,_0x24ed8b,_0x37bd2b){var _0x4e1b08=_0x28c12d,_0x4faa23=_0x127d3d({},_0x1789ab[_0x4e1b08(0x13e)]);_0x37bd2b!=null&&_0x37bd2b['colorChannel1']&&_0x4faa23['fill']==='colorChannel1'&&(_0x4faa23[_0x4e1b08(0x10b)]=_0x37bd2b[_0x4e1b08(0x113)]),_0x1789ab['tag']===_0x4e1b08(0x12a)&&_0x4faa23['id']&&(_0x4faa23['id']=_0x4faa23['id']+_0x24ed8b[_0x4e1b08(0x13c)]),Object[_0x4e1b08(0x14a)](_0x4faa23)[_0x4e1b08(0xf9)](function(_0x7b7b81){var _0x5b5c46=_0x4e1b08,_0x392d17=_0x7b7b81[0x0],_0x5de68c=_0x7b7b81[0x1];_0x392d17===_0x5b5c46(0x12a)&&typeof _0x5de68c==_0x5b5c46(0x18e)&&(_0x4faa23[_0x392d17]=_0x5de68c[_0x5b5c46(0x1c4)](/url\(#(.*)\)/,_0x5b5c46(0x193)[_0x5b5c46(0xf6)](_0x24ed8b[_0x5b5c46(0x13c)],')')));});var _0x15fe6f=_0x24ed8b[_0x4e1b08(0x175)];return!_0x15fe6f||_0x15fe6f[_0x4e1b08(0x1d3)]===0x0||(_0x1789ab['tag']===_0x4e1b08(0x160)&&_0x4faa23[_0x4e1b08(0x109)]&&(_0x4faa23[_0x4e1b08(0x109)]=_0x4faa23[_0x4e1b08(0x109)]+_0x24ed8b[_0x4e1b08(0x13c)]),Object[_0x4e1b08(0x14a)](_0x4faa23)[_0x4e1b08(0xf9)](function(_0x391fe4){var _0x1b58bc=_0x4e1b08,_0x5f2176=_0x391fe4[0x0],_0x3908ec=_0x391fe4[0x1];typeof _0x3908ec=='string'&&(_0x4faa23[_0x5f2176]=_0x3908ec['replace'](/url\(#(.*)\)/,_0x1b58bc(0x193)[_0x1b58bc(0xf6)](_0x24ed8b[_0x1b58bc(0x13c)],')')));})),_0x4faa23;}function _0x4446bb(_0x5d9934,_0x126337){var _0x2798ac=_0x28c12d,_0x7f468,_0x4ef3d2=_0x126337[_0x2798ac(0x175)];return!_0x4ef3d2||_0x4ef3d2['length']===0x0?_0x5d9934:_0x5d9934[_0x2798ac(0x1a2)]===_0x2798ac(0x10c)&&(!((_0x7f468=_0x5d9934[_0x2798ac(0x188)])===null||_0x7f468===void 0x0)&&_0x7f468[_0x2798ac(0x1d3)])?_0x127d3d(_0x127d3d({},_0x5d9934),{'children':_0x5d9934[_0x2798ac(0x188)][_0x2798ac(0x1ae)](function(_0x19e556){var _0x16f5d9=_0x2798ac;return typeof _0x19e556[_0x16f5d9(0x13e)]['id']==_0x16f5d9(0x18e)&&_0x4ef3d2&&_0x4ef3d2['includes'](_0x19e556[_0x16f5d9(0x13e)]['id'])?_0x127d3d(_0x127d3d({},_0x19e556),{'attrs':_0x127d3d(_0x127d3d({},_0x19e556[_0x16f5d9(0x13e)]),{'id':_0x19e556[_0x16f5d9(0x13e)]['id']+_0x126337['idSuffix']})}):_0x19e556;})}):_0x5d9934;}function _0x315c0a(){var _0xd9b992=_0x28c12d;return Math[_0xd9b992(0x15a)]()[_0xd9b992(0xf4)](0x24)[_0xd9b992(0x189)](0x2,0x8);}_0x13bbb2[_0x28c12d(0x119)]='UniverIcon';var _0x366118={'tag':_0x28c12d(0x19c),'attrs':{'xmlns':_0x28c12d(0x1a0),'fill':_0x28c12d(0x176),'viewBox':_0x28c12d(0x153),'width':'1em','height':_0x28c12d(0x134)},'children':[{'tag':_0x28c12d(0x162),'attrs':{'fill':_0x28c12d(0x173),'d':_0x28c12d(0x1e2)}},{'tag':_0x28c12d(0x162),'attrs':{'fill':'currentColor','d':_0x28c12d(0x11e),'fillRule':_0x28c12d(0x155),'clipRule':'evenodd'}}]},_0x481b05=_0x46dce1['forwardRef'](function(_0x3859ee,_0x5baa82){var _0x33e358=_0x28c12d;return _0x46dce1[_0x33e358(0x1bd)](_0x13bbb2,Object[_0x33e358(0x19d)]({},_0x3859ee,{'id':_0x33e358(0x1ac),'ref':_0x5baa82,'icon':_0x366118}));});_0x481b05[_0x28c12d(0x119)]='LiveShareIcon';var _0xaeaf8=Object[_0x28c12d(0x108)],_0x16b56b=(_0x382f33,_0x37d56a,_0x59903b,_0x14c75f)=>{var _0x57bd22=_0x28c12d;for(var _0x14e142=_0x14c75f>0x1?void 0x0:_0x14c75f?_0xaeaf8(_0x37d56a,_0x59903b):_0x37d56a,_0x1ea272=_0x382f33[_0x57bd22(0x1d3)]-0x1,_0x590018;_0x1ea272>=0x0;_0x1ea272--)(_0x590018=_0x382f33[_0x1ea272])&&(_0x14e142=_0x590018(_0x14e142)||_0x14e142);return _0x14e142;},_0x4667a4=(_0x4acd35,_0x310a8)=>(_0x9edbe2,_0x14c6b4)=>_0x310a8(_0x9edbe2,_0x14c6b4,_0x4acd35);_0x28a585[_0x28c12d(0x1cd)]=class extends _0x8a7da7[_0x28c12d(0x144)]{constructor(_0x5d7a05,_0x455644,_0x3e0ad9){var _0x53a946=_0x28c12d;super(),_0x2a12a4(this,'_entities',new Map()),(this[_0x53a946(0x1d6)]=_0x5d7a05,this['_injector']=_0x455644,this[_0x53a946(0x11d)]=_0x3e0ad9,this[_0x53a946(0x1b7)]());}async[_0x28c12d(0x15e)](_0x806a87){var _0x3b19c7=_0x28c12d;return this[_0x3b19c7(0x185)]['has'](_0x806a87)||await this[_0x3b19c7(0x145)](_0x806a87),this[_0x3b19c7(0x185)][_0x3b19c7(0xf8)](_0x806a87);}[_0x28c12d(0x1b7)](){var _0xd40215=_0x28c12d;this[_0xd40215(0x1d6)]['getTypeOfUnitAdded$'](_0x8a7da7[_0xd40215(0xfb)][_0xd40215(0x190)])[_0xd40215(0x186)](_0xfe3ee9[_0xd40215(0x199)](this[_0xd40215(0x124)]))[_0xd40215(0x1d1)](async _0xa09ceb=>{var _0x417ada=_0xd40215;const _0x2c763f=_0xa09ceb['getUnitId']();this['_entities'][_0x417ada(0x10f)](_0x2c763f)||this[_0x417ada(0x145)](_0x2c763f);}),this[_0xd40215(0x1d6)][_0xd40215(0x1bf)](_0x8a7da7[_0xd40215(0xfb)][_0xd40215(0x190)])[_0xd40215(0x186)](_0xfe3ee9[_0xd40215(0x199)](this[_0xd40215(0x124)]))[_0xd40215(0x1d1)](_0x174086=>{var _0x51fd6b=_0xd40215;const _0x542603=_0x174086[_0x51fd6b(0xfd)](),_0x2447f6=this[_0x51fd6b(0x185)][_0x51fd6b(0xf8)](_0x542603);_0x2447f6==null||_0x2447f6[_0x51fd6b(0x13f)]();});}async['_startLiveShareCoordinator'](_0xc09bca){var _0x3bd7ea=_0x28c12d;const _0x43fd2c=await this[_0x3bd7ea(0x11d)][_0x3bd7ea(0x1aa)](_0xc09bca),_0x3f7c45=this[_0x3bd7ea(0x151)][_0x3bd7ea(0x1b3)](_0x28a585[_0x3bd7ea(0x159)],_0xc09bca,_0x43fd2c);return _0x3f7c45['init'](),this['_entities']['set'](_0xc09bca,_0x3f7c45),_0x3f7c45;}},_0x28a585['LiveShareController']=_0x16b56b([_0x4667a4(0x0,_0x8a7da7[_0x28c12d(0x10e)]),_0x4667a4(0x1,_0x8a7da7[_0x28c12d(0x197)](_0x8a7da7[_0x28c12d(0x12b)])),_0x4667a4(0x2,_0x8a7da7[_0x28c12d(0x197)](_0x4c6e9f[_0x28c12d(0x10d)]))],_0x28a585[_0x28c12d(0x1cd)]);var _0x5e8160=(_0x39bc03=>(_0x39bc03[_0x28c12d(0x196)]=_0x28c12d(0x147),_0x39bc03[_0x28c12d(0x166)]='idle',_0x39bc03[_0x28c12d(0x1d7)]=_0x28c12d(0x12c),_0x39bc03[_0x28c12d(0x17b)]=_0x28c12d(0x1d8),_0x39bc03[_0x28c12d(0x105)]='presenting',_0x39bc03))(_0x5e8160||{});const _0x137ca8=_0x28c12d(0x1ab),_0x118781=0xc8;_0x28a585[_0x28c12d(0x159)]=class extends _0x8a7da7['RxDisposable']{constructor(_0x4cdefa,_0x352ce0,_0x5d84c5,_0x4dde3e,_0x34ba71){var _0xda0777=_0x28c12d;super(),_0x2a12a4(this,_0xda0777(0x117),new _0x4f5c3c['BehaviorSubject'](_0xda0777(0x13a))),_0x2a12a4(this,_0xda0777(0x1b6),this[_0xda0777(0x117)][_0xda0777(0x15b)]()),_0x2a12a4(this,_0xda0777(0x1b7),!0x1),_0x2a12a4(this,_0xda0777(0x107),null),_0x2a12a4(this,_0xda0777(0x184),null),(this[_0xda0777(0x164)]=_0x4cdefa,this['_collabSession']=_0x352ce0,this[_0xda0777(0x135)]=_0x5d84c5,this[_0xda0777(0x1ce)]=_0x4dde3e,this[_0xda0777(0x1a3)]=_0x34ba71);}get[_0x28c12d(0x1c2)](){return this['_status$']['getValue']();}[_0x28c12d(0x13f)](){var _0x1533e2=_0x28c12d,_0x426fb7;(_0x426fb7=this[_0x1533e2(0x107)])==null||_0x426fb7[_0x1533e2(0x13f)](),this['_status$'][_0x1533e2(0x11a)](_0x1533e2(0x13a)),this['_status$'][_0x1533e2(0x1d9)]();}['init'](){var _0x33e99e=_0x28c12d;this[_0x33e99e(0x1b7)]||(this[_0x33e99e(0x1b7)]=!0x0,this['_collabSession'][_0x33e99e(0x165)]['pipe'](_0xfe3ee9['takeUntil'](this[_0x33e99e(0x124)]))[_0x33e99e(0x1d1)](_0x46aa1b=>{var _0x533703=_0x33e99e;switch(_0x46aa1b){case _0x4c6e9f[_0x533703(0x1a9)]['OFFLINE']:this[_0x533703(0x1a7)]();break;case _0x4c6e9f[_0x533703(0x1a9)][_0x533703(0x15c)]:this['_handleOnline']();break;}}),this[_0x33e99e(0x161)][_0x33e99e(0x136)][_0x33e99e(0x186)](_0xfe3ee9[_0x33e99e(0x199)](this[_0x33e99e(0x124)]))[_0x33e99e(0x1d1)](_0x4afdbe=>{var _0x42adcc=_0x33e99e;const {eventID:_0x2ab78f}=_0x4afdbe;switch(_0x2ab78f){case _0x545fd4[_0x42adcc(0x158)][_0x42adcc(0x1dd)]:this['_handleNewHost'](_0x4afdbe);break;case _0x545fd4['CollaborationEvent'][_0x42adcc(0x18a)]:this[_0x42adcc(0x110)](_0x4afdbe);break;case _0x545fd4[_0x42adcc(0x158)][_0x42adcc(0x16d)]:this[_0x42adcc(0x1b1)]();break;case _0x545fd4[_0x42adcc(0x158)]['NEW_CHANGESETS']:this[_0x42adcc(0x1df)](_0x4afdbe);break;}}));}[_0x28c12d(0x150)](){var _0x46c020=_0x28c12d;this['_collabSession'][_0x46c020(0x10a)]({'eventID':_0x545fd4[_0x46c020(0x158)][_0x46c020(0x1b5)],'data':{'unitID':this[_0x46c020(0x164)],'userID':this[_0x46c020(0x161)][_0x46c020(0x14c)]()}},this['_unitID']);}[_0x28c12d(0x101)](){var _0x41c922=_0x28c12d;this['_status']===_0x41c922(0x149)&&(this['_status$'][_0x41c922(0x11a)]('idle'),this['_collabSession']['send']({'eventID':_0x545fd4[_0x41c922(0x158)][_0x41c922(0x16d)],'data':{'unitID':this[_0x41c922(0x164)]}},this['_unitID']));}[_0x28c12d(0x140)](){var _0x573e06=_0x28c12d;this['_status']===_0x573e06(0x1d8)&&(this[_0x573e06(0x117)][_0x573e06(0x11a)](_0x573e06(0x12c)),this[_0x573e06(0x1ca)]());}[_0x28c12d(0x132)](){var _0x1d355b=_0x28c12d;this['_status']===_0x1d355b(0x12c)&&this[_0x1d355b(0x1da)]();}[_0x28c12d(0x1c8)](_0x1393b6){var _0x38631d=_0x28c12d;const {presenter:_0x4ddc6d}=_0x1393b6['data'],_0x408c39=this[_0x38631d(0x161)][_0x38631d(0x14c)]();this[_0x38631d(0x184)]=_0x4ddc6d,_0x4ddc6d===_0x408c39?(this[_0x38631d(0x1da)](),this[_0x38631d(0x1a5)]()):this[_0x38631d(0x1c2)]!==_0x38631d(0x1d8)&&(this[_0x38631d(0x192)](),this['_startFollowing']());}[_0x28c12d(0x143)](){var _0x5516a1=_0x28c12d;const _0x1f5112={'eventID':_0x545fd4[_0x5516a1(0x158)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5516a1(0x161)][_0x5516a1(0x10a)](_0x1f5112,this['_unitID']);}[_0x28c12d(0x1b1)](){var _0x15f729=_0x28c12d;this[_0x15f729(0x184)]=null,this[_0x15f729(0x1c2)]!==_0x15f729(0x149)&&this[_0x15f729(0x19b)]();}[_0x28c12d(0x1df)](_0x437c0d){var _0x1c96c0=_0x28c12d;if(this['_status']===_0x1c96c0(0x12c)&&this['_presenter']===_0x437c0d[_0x1c96c0(0x1b0)]['memberID']){const _0x5b590f=_0x545fd4['parseProtocolChangeset'](_0x437c0d['data'])[_0x1c96c0(0x114)]['reverse']()[_0x1c96c0(0x14d)](_0x175fa4=>_0x175fa4['id']===_0x208215[_0x1c96c0(0xff)]['id']);if(_0x5b590f){const _0xe441df=_0x5b590f[_0x1c96c0(0x111)][_0x1c96c0(0x14f)],_0x245c3e=_0x5b590f[_0x1c96c0(0x111)]['sheet']['id'];setTimeout(()=>{var _0x46db1f=_0x1c96c0;this[_0x46db1f(0x1a3)][_0x46db1f(0x1cc)](_0x208215[_0x46db1f(0x1be)]['id'],{'unitId':_0xe441df,'subUnitId':_0x245c3e},{'fromCollab':!0x0});});}}}[_0x28c12d(0x1a5)](){var _0x2e9d5e=_0x28c12d;this[_0x2e9d5e(0x117)][_0x2e9d5e(0x11a)](_0x2e9d5e(0x149));const _0x12cb37=new Map(),_0x4aa5c7=this['_commandDisposable']=new _0x8a7da7[(_0x2e9d5e(0x16a))]();_0x4aa5c7['add'](_0x8a7da7['toDisposable'](()=>{var _0xe54e02=_0x2e9d5e;_0x12cb37[_0xe54e02(0xf9)](_0x48d867=>_0x48d867['complete']()),_0x12cb37[_0xe54e02(0x13b)]();})),_0x4aa5c7[_0x2e9d5e(0x122)](this[_0x2e9d5e(0x1a3)][_0x2e9d5e(0x115)](_0x282ccd=>{var _0x1340ae=_0x2e9d5e,_0x329e89;if(_0x282ccd[_0x1340ae(0x1cb)]!==_0x8a7da7[_0x1340ae(0x15d)][_0x1340ae(0x142)]||!this['_liveShareService'][_0x1340ae(0x100)](_0x282ccd['id']))return;const {id:_0x250a08}=_0x282ccd;let _0x407ccb;_0x12cb37[_0x1340ae(0x10f)](_0x250a08)?_0x407ccb=_0x12cb37['get'](_0x250a08):(_0x407ccb=new _0x4f5c3c['Subject'](),_0x12cb37['set'](_0x250a08,_0x407ccb),_0x407ccb[_0x1340ae(0x186)](_0xfe3ee9[_0x1340ae(0x1dc)]((_0x329e89=this[_0x1340ae(0x135)][_0x1340ae(0x112)](_0x137ca8))!=null?_0x329e89:_0x118781,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1340ae(0x1d1)](_0x21f094=>{var _0x4112c5=_0x1340ae;this[_0x4112c5(0x161)][_0x4112c5(0x10a)]({'eventID':_0x545fd4[_0x4112c5(0x158)][_0x4112c5(0x18a)],'data':{'unitID':this['_unitID'],'operations':{[_0x21f094['id']]:{'id':_0x21f094['id'],'params':JSON[_0x4112c5(0x129)](_0x21f094[_0x4112c5(0x111)])}}}},this['_unitID']);})),_0x407ccb[_0x1340ae(0x11a)](_0x282ccd);})),this[_0x2e9d5e(0x1ce)][_0x2e9d5e(0x1a1)](this[_0x2e9d5e(0x164)])['forEach'](_0xc526=>this['_collabSession'][_0x2e9d5e(0x10a)]({'eventID':_0x545fd4['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2e9d5e(0x164)],'operations':{[_0xc526['id']]:{'id':_0xc526['id'],'params':JSON['stringify'](_0xc526[_0x2e9d5e(0x111)])}}}},this[_0x2e9d5e(0x164)]));}[_0x28c12d(0x192)](){var _0x56dd8c=_0x28c12d,_0x420d0c;this['_status$'][_0x56dd8c(0x11a)](_0x56dd8c(0x13a)),(_0x420d0c=this['_commandDisposable'])==null||_0x420d0c[_0x56dd8c(0x13f)](),this[_0x56dd8c(0x107)]=null;}[_0x28c12d(0x1ca)](){var _0x17fd60=_0x28c12d,_0x231651;(_0x231651=this[_0x17fd60(0x107)])==null||_0x231651[_0x17fd60(0x13f)](),this[_0x17fd60(0x117)][_0x17fd60(0x11a)](_0x17fd60(0x12c));}[_0x28c12d(0x19b)](){var _0x5b5ccb=_0x28c12d,_0x33d312;this[_0x5b5ccb(0x117)]['next']('idle'),(_0x33d312=this[_0x5b5ccb(0x107)])==null||_0x33d312[_0x5b5ccb(0x13f)](),this[_0x5b5ccb(0x107)]=null;}[_0x28c12d(0x1da)](){var _0x337444=_0x28c12d,_0x4893a1;this[_0x337444(0x117)]['next'](_0x337444(0x1d8)),(_0x4893a1=this[_0x337444(0x107)])==null||_0x4893a1['dispose']();}[_0x28c12d(0x110)](_0x1842b8){var _0x41c7de=_0x28c12d;if([_0x41c7de(0x149),_0x41c7de(0x1d8),_0x41c7de(0x147)]['includes'](this[_0x41c7de(0x1c2)])||!_0x1842b8['data']['presenter']||_0x1842b8[_0x41c7de(0x1b0)][_0x41c7de(0x120)]===this[_0x41c7de(0x161)][_0x41c7de(0x14c)]())return;this[_0x41c7de(0x1c2)]===_0x41c7de(0x13a)&&this['_startFollowing']();const _0x4d6f9d=_0x1842b8[_0x41c7de(0x1b0)][_0x41c7de(0x128)];Object[_0x41c7de(0x11f)](_0x4d6f9d)[_0x41c7de(0xf9)](_0x1df75d=>{var _0x534be1=_0x41c7de;this[_0x534be1(0x1a3)][_0x534be1(0x1cc)](_0x1df75d['id'],_0x1df75d['params']?JSON[_0x534be1(0x17f)](_0x1df75d[_0x534be1(0x111)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x12ce75=_0x28c12d,_0x54078f;this[_0x12ce75(0x117)][_0x12ce75(0x11a)](_0x12ce75(0x147)),(_0x54078f=this[_0x12ce75(0x107)])==null||_0x54078f['dispose']();}['_handleOnline'](){var _0x3b8a51=_0x28c12d;this[_0x3b8a51(0x117)]['next'](_0x3b8a51(0x13a)),this[_0x3b8a51(0x143)]();}},_0x28a585['LiveShareCoordinator']=_0x16b56b([_0x4667a4(0x2,_0x8a7da7[_0x28c12d(0x183)]),_0x4667a4(0x3,_0x8a7da7[_0x28c12d(0x197)](_0x11870f)),_0x4667a4(0x4,_0x8a7da7[_0x28c12d(0x16b)])],_0x28a585[_0x28c12d(0x159)]);function _0x2895b0(){var _0x33c6e7=_0x28c12d;const _0x12f444=_0x494a01[_0x33c6e7(0x171)](_0x28a585[_0x33c6e7(0x1cd)]),_0x33095e=_0x494a01[_0x33c6e7(0x171)](_0x8a7da7[_0x33c6e7(0x10e)]),_0x2818f7=_0x494a01['useObservable'](()=>_0x33095e[_0x33c6e7(0x11c)](_0x8a7da7[_0x33c6e7(0xfb)][_0x33c6e7(0x190)]),void 0x0,!0x1,[]),[_0x3fd7bc,_0x4d9423]=_0x46dce1[_0x33c6e7(0x1c5)](null),[_0x550ad0,_0x5f23f0]=_0x46dce1['useState'](_0x5e8160['IDLE']),_0x5d2195=_0x46dce1[_0x33c6e7(0x1ad)](null);return _0x46dce1[_0x33c6e7(0x174)](()=>(_0x2818f7&&_0x12f444[_0x33c6e7(0x15e)](_0x2818f7[_0x33c6e7(0xfd)]())[_0x33c6e7(0x14b)](_0xc0f174=>{var _0x5043b6=_0x33c6e7;_0x4d9423(_0xc0f174),_0x5d2195['current']=_0xc0f174['status$'][_0x5043b6(0x1d1)](_0xb9fa47=>{_0x5f23f0(_0xb9fa47);});}),()=>{var _0x4f6f0b=_0x33c6e7,_0x30758d;(_0x30758d=_0x5d2195[_0x4f6f0b(0x1c3)])==null||_0x30758d[_0x4f6f0b(0x1c9)](),_0x5d2195[_0x4f6f0b(0x1c3)]=null;}),[_0x2818f7,_0x12f444]),_0x3fd7bc?_0x4b2509[_0x33c6e7(0x169)](_0x3974c2[_0x33c6e7(0x19e)],{'align':_0x33c6e7(0x1bb),'disabled':_0x550ad0===_0x5e8160[_0x33c6e7(0x196)],'className':_0x33c6e7(0x12d),'overlay':_0x4b2509[_0x33c6e7(0x169)](_0x2790ab,{'status':_0x550ad0,'coordinator':_0x3fd7bc}),'children':_0x4b2509[_0x33c6e7(0x169)](_0x33c6e7(0x191),{'className':_0x3974c2[_0x33c6e7(0x156)](_0x33c6e7(0x163),{'univer-cursor-not-allowed':_0x550ad0===_0x5e8160['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550ad0!==_0x5e8160[_0x33c6e7(0x196)]}),'type':_0x33c6e7(0x191),'children':_0x4b2509[_0x33c6e7(0x169)](_0x481b05,{'className':_0x33c6e7(0x125)})})}):null;}function _0x2790ab(_0x23bcac){var _0x5c69c6=_0x28c12d;const {status:_0x193b5d,coordinator:_0x35c1b7}=_0x23bcac;switch(_0x193b5d){case _0x5e8160[_0x5c69c6(0x166)]:return _0x4b2509[_0x5c69c6(0x169)](_0x4f9776,{'coordinator':_0x35c1b7});case _0x5e8160['FOLLOWING']:return _0x4b2509['jsx'](_0x43cf95,{'coordinator':_0x35c1b7});case _0x5e8160[_0x5c69c6(0x17b)]:return _0x4b2509[_0x5c69c6(0x169)](_0x2babc7,{'coordinator':_0x35c1b7});case _0x5e8160[_0x5c69c6(0x196)]:return _0x4b2509['jsx'](_0x542196,{});case _0x5e8160[_0x5c69c6(0x105)]:return _0x4b2509[_0x5c69c6(0x169)](_0x4d8a4f,{'coordinator':_0x35c1b7});default:return null;}}function _0x4f9776(_0x4fbdc4){var _0x3ee287=_0x28c12d;const {coordinator:_0x6c3dae}=_0x4fbdc4;return _0x4b2509['jsxs'](_0x4b2509[_0x3ee287(0x127)],{'children':[_0x4b2509[_0x3ee287(0x169)]('div',{'className':_0x3ee287(0x179),'children':_0x3ee287(0x172)}),_0x4b2509[_0x3ee287(0x169)](_0x3974c2['Button'],{'onClick':()=>_0x6c3dae[_0x3ee287(0x150)](),'children':'Start'})]});}function _0x43cf95(_0x210e15){var _0x1b6ab9=_0x28c12d;const {coordinator:_0xd59f0e}=_0x210e15;return _0x4b2509[_0x1b6ab9(0x1a6)](_0x4b2509[_0x1b6ab9(0x127)],{'children':[_0x4b2509[_0x1b6ab9(0x169)](_0x1b6ab9(0xf3),{'className':_0x1b6ab9(0x179),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4b2509[_0x1b6ab9(0x169)](_0x3974c2[_0x1b6ab9(0x154)],{'onClick':()=>_0xd59f0e['stopFollowing'](),'children':_0x1b6ab9(0x137)})]});}function _0x2babc7(_0x3ccafc){var _0x45abee=_0x28c12d;const {coordinator:_0x3ec651}=_0x3ccafc;return _0x4b2509[_0x45abee(0x1a6)](_0x4b2509[_0x45abee(0x127)],{'children':[_0x4b2509[_0x45abee(0x169)](_0x45abee(0xf3),{'className':_0x45abee(0x179),'children':_0x45abee(0x1c0)}),_0x4b2509[_0x45abee(0x169)](_0x3974c2['Button'],{'variant':_0x45abee(0x17e),'onClick':()=>_0x3ec651[_0x45abee(0x140)](),'children':'Start\x20following'})]});}function _0x4d8a4f(_0x595fc5){var _0x430957=_0x28c12d;const {coordinator:_0x2c5dce}=_0x595fc5;return _0x4b2509[_0x430957(0x1a6)](_0x4b2509[_0x430957(0x127)],{'children':[_0x4b2509[_0x430957(0x169)]('div',{'className':_0x430957(0x179),'children':_0x430957(0x141)}),_0x4b2509['jsx'](_0x3974c2[_0x430957(0x154)],{'variant':'default','onClick':()=>_0x2c5dce[_0x430957(0x101)](),'children':_0x430957(0xf5)})]});}function _0x542196(){var _0x2f5b87=_0x28c12d;return _0x4b2509[_0x2f5b87(0x169)](_0x4b2509[_0x2f5b87(0x127)],{'children':_0x2f5b87(0x118)});}var _0x398074=Object[_0x28c12d(0x108)],_0x4ed701=(_0x4fd833,_0x5ca711,_0x13d686,_0x3b7560)=>{var _0x2ec956=_0x28c12d;for(var _0x176b59=_0x3b7560>0x1?void 0x0:_0x3b7560?_0x398074(_0x5ca711,_0x13d686):_0x5ca711,_0x33b511=_0x4fd833[_0x2ec956(0x1d3)]-0x1,_0x5d9b31;_0x33b511>=0x0;_0x33b511--)(_0x5d9b31=_0x4fd833[_0x33b511])&&(_0x176b59=_0x5d9b31(_0x176b59)||_0x176b59);return _0x176b59;},_0x35740b=(_0x1085f4,_0x36526d)=>(_0x36bfaf,_0x25977c)=>_0x36526d(_0x36bfaf,_0x25977c,_0x1085f4);_0x28a585[_0x28c12d(0x139)]=class extends _0x8a7da7[_0x28c12d(0x131)]{constructor(_0x1ef276,_0xcc8b85){var _0x535a91=_0x28c12d;super(),this[_0x535a91(0x151)]=_0x1ef276,this['_uiPartsService']=_0xcc8b85,this[_0x535a91(0x17d)]();}[_0x28c12d(0x17d)](){var _0x266511=_0x28c12d;this[_0x266511(0x1e1)](this[_0x266511(0x11b)][_0x266511(0x1bc)](_0x494a01[_0x266511(0x16f)]['HEADER_MENU'],()=>_0x494a01['connectInjector'](_0x2895b0,this[_0x266511(0x151)])));}},_0x28a585[_0x28c12d(0x139)]=_0x4ed701([_0x35740b(0x0,_0x8a7da7[_0x28c12d(0x197)](_0x8a7da7['Injector'])),_0x35740b(0x1,_0x494a01['IUIPartsService'])],_0x28a585[_0x28c12d(0x139)]);var _0x19fd06=Object[_0x28c12d(0xfa)],_0x5b1fa8=Object[_0x28c12d(0x108)],_0x2e26f3=(_0x329a9b,_0x47cc3c,_0x5ce0ba)=>_0x47cc3c in _0x329a9b?_0x19fd06(_0x329a9b,_0x47cc3c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ce0ba}):_0x329a9b[_0x47cc3c]=_0x5ce0ba,_0x322ac6=(_0x6f7ecd,_0x13f3ed,_0x395967,_0xb2bb83)=>{var _0x58eb2c=_0x28c12d;for(var _0x331855=_0xb2bb83>0x1?void 0x0:_0xb2bb83?_0x5b1fa8(_0x13f3ed,_0x395967):_0x13f3ed,_0x41118b=_0x6f7ecd[_0x58eb2c(0x1d3)]-0x1,_0x252111;_0x41118b>=0x0;_0x41118b--)(_0x252111=_0x6f7ecd[_0x41118b])&&(_0x331855=_0x252111(_0x331855)||_0x331855);return _0x331855;},_0x1d16b1=(_0x4a6c38,_0x7195cf)=>(_0x39cd28,_0x4b12e0)=>_0x7195cf(_0x39cd28,_0x4b12e0,_0x4a6c38),_0x459b10=(_0x5b031e,_0x1f5f2f,_0x2806b2)=>_0x2e26f3(_0x5b031e,typeof _0x1f5f2f!=_0x28c12d(0x12e)?_0x1f5f2f+'':_0x1f5f2f,_0x2806b2);const _0x461d23='UNIVER_LIVE_SHARE_PLUGIN';_0x28a585[_0x28c12d(0x1a8)]=class extends _0x8a7da7['Plugin']{constructor(_0x42d729=_0x18bf0d,_0x322071,_0x8e0885){var _0x4592f1=_0x28c12d;super(),this[_0x4592f1(0x170)]=_0x42d729,this['_injector']=_0x322071,this[_0x4592f1(0x135)]=_0x8e0885;const {..._0x4b69c5}=_0x8a7da7[_0x4592f1(0x19f)]({},_0x18bf0d,this[_0x4592f1(0x170)]);this[_0x4592f1(0x135)][_0x4592f1(0x130)](_0x4516d3,_0x4b69c5);}[_0x28c12d(0x180)](){var _0x156f3c=_0x28c12d;_0x8a7da7[_0x156f3c(0x178)](this[_0x156f3c(0x151)],_0x8a7da7[_0x156f3c(0x138)]([[_0x11870f],[_0x28a585[_0x156f3c(0x1cd)]],[_0x9198ea],[_0x28a585['DesktopLiveShareController']]],this[_0x156f3c(0x170)][_0x156f3c(0x195)])),_0x8a7da7[_0x156f3c(0x18c)](this[_0x156f3c(0x151)],[[_0x9198ea]]);}['onRendered'](){var _0x218bbd=_0x28c12d;_0x8a7da7[_0x218bbd(0x18c)](this[_0x218bbd(0x151)],[[_0x28a585[_0x218bbd(0x139)]]]);}},_0x459b10(_0x28a585['UniverLiveSharePlugin'],'type',_0x8a7da7[_0x28c12d(0xfb)]['UNIVER_UNKNOWN']),_0x459b10(_0x28a585['UniverLiveSharePlugin'],'pluginName',_0x461d23),_0x28a585[_0x28c12d(0x1a8)]=_0x322ac6([_0x8a7da7['DependentOn'](_0x4c6e9f[_0x28c12d(0x102)]),_0x1d16b1(0x1,_0x8a7da7[_0x28c12d(0x197)](_0x8a7da7[_0x28c12d(0x12b)])),_0x1d16b1(0x2,_0x8a7da7[_0x28c12d(0x183)])],_0x28a585['UniverLiveSharePlugin']),_0x28a585[_0x28c12d(0x152)]=_0x2895b0,_0x28a585[_0x28c12d(0x181)]=_0x11870f,_0x28a585[_0x28c12d(0x182)]=_0x5e8160,Object[_0x28c12d(0xfa)](_0x28a585,Symbol['toStringTag'],{'value':_0x28c12d(0x1b2)});}));
|
|
1
|
+
(function(_0xdbb8,_0x4fc37e){var _0x51fc5a=_0x25eb,_0x523592=_0xdbb8();while(!![]){try{var _0x30b82a=-parseInt(_0x51fc5a(0x142))/0x1*(parseInt(_0x51fc5a(0x1f6))/0x2)+parseInt(_0x51fc5a(0x147))/0x3+-parseInt(_0x51fc5a(0x17a))/0x4*(-parseInt(_0x51fc5a(0x1a6))/0x5)+-parseInt(_0x51fc5a(0x16b))/0x6+-parseInt(_0x51fc5a(0x145))/0x7+-parseInt(_0x51fc5a(0x12c))/0x8*(parseInt(_0x51fc5a(0x1c5))/0x9)+parseInt(_0x51fc5a(0x205))/0xa;if(_0x30b82a===_0x4fc37e)break;else _0x523592['push'](_0x523592['shift']());}catch(_0x5a30a3){_0x523592['push'](_0x523592['shift']());}}}(_0x2c33,0x2570a),function(_0x5a8054,_0x1c2e00){var _0x5ef45c=_0x25eb;typeof exports==_0x5ef45c(0x16e)&&typeof module<'u'?_0x1c2e00(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x5ef45c(0x166)&&define[_0x5ef45c(0x152)]?define(['exports','@univerjs-pro/collaboration-client',_0x5ef45c(0x124),'@univerjs/sheets',_0x5ef45c(0x1ee),_0x5ef45c(0x14c),_0x5ef45c(0x185),'@univerjs/design','react',_0x5ef45c(0x180),_0x5ef45c(0x19b),_0x5ef45c(0x187)],_0x1c2e00):(_0x5a8054=typeof globalThis<'u'?globalThis:_0x5a8054||self,_0x1c2e00(_0x5a8054[_0x5ef45c(0x1fe)]={},_0x5a8054[_0x5ef45c(0x1e0)],_0x5a8054['UniverCore'],_0x5a8054[_0x5ef45c(0x170)],_0x5a8054[_0x5ef45c(0x159)],_0x5a8054[_0x5ef45c(0x19c)],_0x5a8054[_0x5ef45c(0x1b6)],_0x5a8054[_0x5ef45c(0x20f)],_0x5a8054[_0x5ef45c(0x1b6)],_0x5a8054['UniverProCollaboration'],_0x5a8054[_0x5ef45c(0x19b)],_0x5a8054[_0x5ef45c(0x19b)][_0x5ef45c(0x1d0)]));}(this,function(_0x4e9fcc,_0x33335f,_0x2d5dbd,_0x46d4c0,_0x27dfac,_0x4aa6f8,_0x44c13e,_0x4e6ae5,_0x3c21ed,_0x3aa9f1,_0xe0a27f,_0x4bbe9d){'use strict';var _0x161a02=_0x25eb;var _0x488d94=Object[_0x161a02(0x16a)],_0x5478ec=(_0xf50988,_0x3c4195,_0x4955f5)=>_0x3c4195 in _0xf50988?_0x488d94(_0xf50988,_0x3c4195,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4955f5}):_0xf50988[_0x3c4195]=_0x4955f5,_0x2addc0=(_0x30484b,_0x5241a5,_0x2b7f0f)=>_0x5478ec(_0x30484b,typeof _0x5241a5!=_0x161a02(0x213)?_0x5241a5+'':_0x5241a5,_0x2b7f0f);const _0x2d46d6=_0x161a02(0x1d6),_0x456786={};class _0x24dd90 extends _0x2d5dbd['Disposable']{constructor(){var _0x470ab9=_0x161a02;super(...arguments),_0x2addc0(this,'_sharedOperations',new Set()),_0x2addc0(this,_0x470ab9(0x1e7),new Set());}[_0x161a02(0x1de)](_0x47e01f){var _0x5a11b3=_0x161a02;return this[_0x5a11b3(0x197)][_0x5a11b3(0x1bc)](_0x47e01f),_0x2d5dbd[_0x5a11b3(0x194)](()=>this[_0x5a11b3(0x197)]['delete'](_0x47e01f));}[_0x161a02(0x1fc)](_0x2bed46){var _0x1f856d=_0x161a02;return this[_0x1f856d(0x1e7)][_0x1f856d(0x1bc)](_0x2bed46),_0x2d5dbd[_0x1f856d(0x194)](()=>this[_0x1f856d(0x1e7)]['delete'](_0x2bed46));}[_0x161a02(0x204)](_0x1e7bfa){var _0xf01734=_0x161a02;return this[_0xf01734(0x197)][_0xf01734(0x176)](_0x1e7bfa);}['getInitialStates'](_0x5c3426){var _0x33d6f5=_0x161a02;return Array['from'](this[_0x33d6f5(0x1e7)])[_0x33d6f5(0x211)](_0xfdd2cd=>_0xfdd2cd(_0x5c3426));}}var _0xb529d8=Object[_0x161a02(0x1bf)],_0x377f43=(_0x3ce068,_0xcfe76d,_0x342e3e,_0x37d64a)=>{for(var _0x31a421=_0x37d64a>0x1?void 0x0:_0x37d64a?_0xb529d8(_0xcfe76d,_0x342e3e):_0xcfe76d,_0x4de3a9=_0x3ce068['length']-0x1,_0x4c5f8d;_0x4de3a9>=0x0;_0x4de3a9--)(_0x4c5f8d=_0x3ce068[_0x4de3a9])&&(_0x31a421=_0x4c5f8d(_0x31a421)||_0x31a421);return _0x31a421;},_0x1729ad=(_0x359f8,_0x4ba0d5)=>(_0x355d90,_0x4cc66c)=>_0x4ba0d5(_0x355d90,_0x4cc66c,_0x359f8);let _0xbab834=class extends _0x2d5dbd['Disposable']{constructor(_0x447e69){var _0x5acee8=_0x161a02;super(),this[_0x5acee8(0x1d4)]=_0x447e69,this[_0x5acee8(0x16c)]();}[_0x161a02(0x16c)](){var _0x1d1aef=_0x161a02;[_0x27dfac['SetZoomRatioOperation']['id'],_0x27dfac[_0x1d1aef(0x1ed)]['id'],_0x46d4c0[_0x1d1aef(0x172)]['id']][_0x1d1aef(0x219)](_0x43a94e=>{var _0x1fc0e0=_0x1d1aef;this['disposeWithMe'](this[_0x1fc0e0(0x1d4)][_0x1fc0e0(0x1de)](_0x43a94e));});}};_0xbab834=_0x377f43([_0x1729ad(0x0,_0x2d5dbd[_0x161a02(0x18d)](_0x24dd90))],_0xbab834);var _0x5454ac=function(){var _0x3da6df=_0x161a02;return _0x5454ac=Object[_0x3da6df(0x12e)]||function(_0x140790){var _0x57273e=_0x3da6df;for(var _0x410f6c,_0x52a1b8=0x1,_0x12e6bb=arguments[_0x57273e(0x1c4)];_0x52a1b8<_0x12e6bb;_0x52a1b8++){_0x410f6c=arguments[_0x52a1b8];for(var _0xb4bd21 in _0x410f6c)Object[_0x57273e(0x12f)]['hasOwnProperty'][_0x57273e(0x169)](_0x410f6c,_0xb4bd21)&&(_0x140790[_0xb4bd21]=_0x410f6c[_0xb4bd21]);}return _0x140790;},_0x5454ac['apply'](this,arguments);},_0x3d6035=function(_0x590313,_0x29fffb){var _0x3d01ba=_0x161a02,_0x1c248b={};for(var _0x5370cd in _0x590313)Object[_0x3d01ba(0x12f)][_0x3d01ba(0x1fb)]['call'](_0x590313,_0x5370cd)&&_0x29fffb['indexOf'](_0x5370cd)<0x0&&(_0x1c248b[_0x5370cd]=_0x590313[_0x5370cd]);if(_0x590313!=null&&typeof Object[_0x3d01ba(0x157)]==_0x3d01ba(0x166)){for(var _0x2ab45f=0x0,_0x5370cd=Object[_0x3d01ba(0x157)](_0x590313);_0x2ab45f<_0x5370cd[_0x3d01ba(0x1c4)];_0x2ab45f++)_0x29fffb[_0x3d01ba(0x14d)](_0x5370cd[_0x2ab45f])<0x0&&Object['prototype'][_0x3d01ba(0x20c)][_0x3d01ba(0x169)](_0x590313,_0x5370cd[_0x2ab45f])&&(_0x1c248b[_0x5370cd[_0x2ab45f]]=_0x590313[_0x5370cd[_0x2ab45f]]);}return _0x1c248b;},_0xb03d65=_0x3c21ed[_0x161a02(0x15d)](function(_0x782313,_0x19e700){var _0x3b4f74=_0x161a02,_0x274bf0=_0x782313[_0x3b4f74(0x131)],_0x880fd0=_0x782313['id'],_0x3017b0=_0x782313[_0x3b4f74(0x1f2)],_0x52ebef=_0x782313['extend'],_0xd5caa7=_0x3d6035(_0x782313,[_0x3b4f74(0x131),'id',_0x3b4f74(0x1f2),_0x3b4f74(0x135)]),_0x3dd80c=_0x3b4f74(0x218)[_0x3b4f74(0x1a4)](_0x880fd0,'\x20')[_0x3b4f74(0x1a4)](_0x3017b0||'')[_0x3b4f74(0x1bd)](),_0x256899=_0x3c21ed['useRef']('_'['concat'](_0x25dcaf()));return _0x5307f4(_0x274bf0,''[_0x3b4f74(0x1a4)](_0x880fd0),{'defIds':_0x274bf0[_0x3b4f74(0x1ac)],'idSuffix':_0x256899['current']},_0x5454ac({'ref':_0x19e700,'className':_0x3dd80c},_0xd5caa7),_0x52ebef);});function _0x5307f4(_0x8d83b0,_0x53b2ea,_0x2989b0,_0x53efb4,_0x22e558){var _0x320001=_0x161a02;return _0x3c21ed['createElement'](_0x8d83b0[_0x320001(0x133)],_0x5454ac(_0x5454ac({'key':_0x53b2ea},_0xc7e1d(_0x8d83b0,_0x2989b0,_0x22e558)),_0x53efb4),(_0x10829f(_0x8d83b0,_0x2989b0)[_0x320001(0x210)]||[])[_0x320001(0x211)](function(_0x45ab5e,_0x1acccc){var _0x49670d=_0x320001;return _0x5307f4(_0x45ab5e,''[_0x49670d(0x1a4)](_0x53b2ea,'-')[_0x49670d(0x1a4)](_0x8d83b0[_0x49670d(0x133)],'-')['concat'](_0x1acccc),_0x2989b0,void 0x0,_0x22e558);}));}function _0xc7e1d(_0x2bb77e,_0x4c11ff,_0x5c40fe){var _0x52e8e1=_0x161a02,_0x4f734b=_0x5454ac({},_0x2bb77e[_0x52e8e1(0x12d)]);_0x5c40fe!=null&&_0x5c40fe['colorChannel1']&&_0x4f734b['fill']===_0x52e8e1(0x1c0)&&(_0x4f734b[_0x52e8e1(0x1af)]=_0x5c40fe[_0x52e8e1(0x1c0)]),_0x2bb77e[_0x52e8e1(0x133)]==='mask'&&_0x4f734b['id']&&(_0x4f734b['id']=_0x4f734b['id']+_0x4c11ff[_0x52e8e1(0x160)]),Object[_0x52e8e1(0x1f0)](_0x4f734b)[_0x52e8e1(0x219)](function(_0x51d137){var _0x4c687e=_0x52e8e1,_0x61c799=_0x51d137[0x0],_0x2eb32c=_0x51d137[0x1];_0x61c799==='mask'&&typeof _0x2eb32c=='string'&&(_0x4f734b[_0x61c799]=_0x2eb32c['replace'](/url\(#(.*)\)/,_0x4c687e(0x18e)['concat'](_0x4c11ff[_0x4c687e(0x160)],')')));});var _0x28878b=_0x4c11ff[_0x52e8e1(0x1ac)];return!_0x28878b||_0x28878b[_0x52e8e1(0x1c4)]===0x0||(_0x2bb77e[_0x52e8e1(0x133)]===_0x52e8e1(0x216)&&_0x4f734b[_0x52e8e1(0x13c)]&&(_0x4f734b[_0x52e8e1(0x13c)]=_0x4f734b['xlink:href']+_0x4c11ff[_0x52e8e1(0x160)]),Object['entries'](_0x4f734b)[_0x52e8e1(0x219)](function(_0x13dd8a){var _0x1e03f3=_0x52e8e1,_0x547be2=_0x13dd8a[0x0],_0x4aee8a=_0x13dd8a[0x1];typeof _0x4aee8a==_0x1e03f3(0x162)&&(_0x4f734b[_0x547be2]=_0x4aee8a['replace'](/url\(#(.*)\)/,_0x1e03f3(0x18e)['concat'](_0x4c11ff['idSuffix'],')')));})),_0x4f734b;}function _0x10829f(_0x32d0a0,_0x188003){var _0x18645a=_0x161a02,_0x290b2e,_0x416550=_0x188003[_0x18645a(0x1ac)];return!_0x416550||_0x416550[_0x18645a(0x1c4)]===0x0?_0x32d0a0:_0x32d0a0[_0x18645a(0x133)]===_0x18645a(0x173)&&(!((_0x290b2e=_0x32d0a0[_0x18645a(0x210)])===null||_0x290b2e===void 0x0)&&_0x290b2e['length'])?_0x5454ac(_0x5454ac({},_0x32d0a0),{'children':_0x32d0a0[_0x18645a(0x210)][_0x18645a(0x211)](function(_0x37cf28){var _0x3268cc=_0x18645a;return typeof _0x37cf28['attrs']['id']=='string'&&_0x416550&&_0x416550[_0x3268cc(0x1b4)](_0x37cf28[_0x3268cc(0x12d)]['id'])?_0x5454ac(_0x5454ac({},_0x37cf28),{'attrs':_0x5454ac(_0x5454ac({},_0x37cf28[_0x3268cc(0x12d)]),{'id':_0x37cf28[_0x3268cc(0x12d)]['id']+_0x188003[_0x3268cc(0x160)]})}):_0x37cf28;})}):_0x32d0a0;}function _0x25dcaf(){var _0x2d96f3=_0x161a02;return Math[_0x2d96f3(0x1e9)]()[_0x2d96f3(0x13f)](0x24)[_0x2d96f3(0x1d3)](0x2,0x8);}_0xb03d65['displayName']='UniverIcon';var _0x428fc5={'tag':_0x161a02(0x1eb),'attrs':{'xmlns':_0x161a02(0x148),'fill':_0x161a02(0x134),'viewBox':_0x161a02(0x177),'width':_0x161a02(0x212),'height':_0x161a02(0x212)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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':_0x161a02(0x16f),'attrs':{'fill':_0x161a02(0x201),'d':_0x161a02(0x20e),'fillRule':_0x161a02(0x1dd),'clipRule':_0x161a02(0x1dd)}}]},_0x2fba10=_0x3c21ed[_0x161a02(0x15d)](function(_0x3a685c,_0x1d17c6){var _0x575f21=_0x161a02;return _0x3c21ed[_0x575f21(0x1ad)](_0xb03d65,Object['assign']({},_0x3a685c,{'id':_0x575f21(0x1e4),'ref':_0x1d17c6,'icon':_0x428fc5}));});_0x2fba10['displayName']=_0x161a02(0x1d1);var _0x46198e=Object['getOwnPropertyDescriptor'],_0x1a34e0=(_0x1a37de,_0x131544,_0x50d496,_0x35781d)=>{for(var _0xe2c37c=_0x35781d>0x1?void 0x0:_0x35781d?_0x46198e(_0x131544,_0x50d496):_0x131544,_0x28e15c=_0x1a37de['length']-0x1,_0xe298d2;_0x28e15c>=0x0;_0x28e15c--)(_0xe298d2=_0x1a37de[_0x28e15c])&&(_0xe2c37c=_0xe298d2(_0xe2c37c)||_0xe2c37c);return _0xe2c37c;},_0x24105f=(_0x15f25d,_0x3de4c0)=>(_0x24dfd6,_0x334f72)=>_0x3de4c0(_0x24dfd6,_0x334f72,_0x15f25d);_0x4e9fcc['LiveShareController']=class extends _0x2d5dbd['RxDisposable']{constructor(_0x516595,_0x96781f,_0x14ba41){var _0x22d61d=_0x161a02;super(),_0x2addc0(this,_0x22d61d(0x13e),new Map()),(this[_0x22d61d(0x1f8)]=_0x516595,this[_0x22d61d(0x1c7)]=_0x96781f,this['_collabSessionService']=_0x14ba41,this['_init']());}async[_0x161a02(0x1d9)](_0x3f6293){var _0x26976c=_0x161a02;return this[_0x26976c(0x13e)][_0x26976c(0x176)](_0x3f6293)||await this[_0x26976c(0x15f)](_0x3f6293),this['_entities'][_0x26976c(0x1c3)](_0x3f6293);}[_0x161a02(0x16c)](){var _0x238bf4=_0x161a02;this['_univerInstanceService'][_0x238bf4(0x1b7)](_0x2d5dbd['UniverInstanceType'][_0x238bf4(0x1fa)])[_0x238bf4(0x181)](_0x4bbe9d[_0x238bf4(0x130)](this[_0x238bf4(0x163)]))[_0x238bf4(0x20d)](async _0x35a383=>{var _0x15771e=_0x238bf4;const _0x287421=_0x35a383[_0x15771e(0x193)]();this[_0x15771e(0x13e)][_0x15771e(0x176)](_0x287421)||this['_startLiveShareCoordinator'](_0x287421);}),this['_univerInstanceService'][_0x238bf4(0x16d)](_0x2d5dbd[_0x238bf4(0x1a9)][_0x238bf4(0x1fa)])[_0x238bf4(0x181)](_0x4bbe9d[_0x238bf4(0x130)](this['dispose$']))[_0x238bf4(0x20d)](_0x477a98=>{var _0x40a3a1=_0x238bf4;const _0x3b9ac7=_0x477a98[_0x40a3a1(0x193)](),_0x4760ab=this[_0x40a3a1(0x13e)][_0x40a3a1(0x1c3)](_0x3b9ac7);_0x4760ab==null||_0x4760ab['dispose']();});}async[_0x161a02(0x15f)](_0x3e1ba9){var _0x3d4e08=_0x161a02;const _0x103da0=await this[_0x3d4e08(0x1ef)]['requireSession'](_0x3e1ba9),_0x243f90=this[_0x3d4e08(0x1c7)][_0x3d4e08(0x158)](_0x4e9fcc[_0x3d4e08(0x15a)],_0x3e1ba9,_0x103da0);return _0x243f90[_0x3d4e08(0x153)](),this[_0x3d4e08(0x13e)][_0x3d4e08(0x18c)](_0x3e1ba9,_0x243f90),_0x243f90;}},_0x4e9fcc[_0x161a02(0x190)]=_0x1a34e0([_0x24105f(0x0,_0x2d5dbd[_0x161a02(0x1a8)]),_0x24105f(0x1,_0x2d5dbd[_0x161a02(0x18d)](_0x2d5dbd[_0x161a02(0x1d7)])),_0x24105f(0x2,_0x2d5dbd['Inject'](_0x33335f[_0x161a02(0x183)]))],_0x4e9fcc['LiveShareController']);var _0x4d37bd=(_0x37569c=>(_0x37569c[_0x161a02(0x1cb)]=_0x161a02(0x136),_0x37569c[_0x161a02(0x149)]='idle',_0x37569c[_0x161a02(0x175)]='following',_0x37569c[_0x161a02(0x1e6)]=_0x161a02(0x1b9),_0x37569c[_0x161a02(0x1e3)]='presenting',_0x37569c))(_0x4d37bd||{});const _0x1c757a='SAME_OPERATION_SHARE_INTERVAL',_0x6dedcb=0xc8;_0x4e9fcc[_0x161a02(0x15a)]=class extends _0x2d5dbd[_0x161a02(0x1b1)]{constructor(_0x58b8a7,_0x47e9c2,_0x3d2215,_0x112ede,_0x1373ca){var _0xaeed4b=_0x161a02;super(),_0x2addc0(this,_0xaeed4b(0x1aa),new _0xe0a27f[(_0xaeed4b(0x1ea))](_0xaeed4b(0x141))),_0x2addc0(this,_0xaeed4b(0x214),this['_status$'][_0xaeed4b(0x151)]()),_0x2addc0(this,'_init',!0x1),_0x2addc0(this,'_commandDisposable',null),_0x2addc0(this,_0xaeed4b(0x1b3),null),(this[_0xaeed4b(0x13a)]=_0x58b8a7,this['_collabSession']=_0x47e9c2,this['_configService']=_0x3d2215,this[_0xaeed4b(0x1d4)]=_0x112ede,this['_commandService']=_0x1373ca);}get[_0x161a02(0x1d2)](){var _0x13d7c0=_0x161a02;return this['_status$'][_0x13d7c0(0x143)]();}['dispose'](){var _0x3510e3=_0x161a02,_0x258386;(_0x258386=this['_commandDisposable'])==null||_0x258386['dispose'](),this[_0x3510e3(0x1aa)]['next'](_0x3510e3(0x141)),this[_0x3510e3(0x1aa)][_0x3510e3(0x1dc)]();}[_0x161a02(0x153)](){var _0x385b07=_0x161a02;this['_init']||(this[_0x385b07(0x16c)]=!0x0,this[_0x385b07(0x1ec)][_0x385b07(0x17d)][_0x385b07(0x181)](_0x4bbe9d[_0x385b07(0x130)](this[_0x385b07(0x163)]))[_0x385b07(0x20d)](_0x361f9e=>{var _0x5b2ecb=_0x385b07;switch(_0x361f9e){case _0x33335f[_0x5b2ecb(0x20a)][_0x5b2ecb(0x1cb)]:this[_0x5b2ecb(0x14f)]();break;case _0x33335f['SessionStatus'][_0x5b2ecb(0x139)]:this['_handleOnline']();break;}}),this[_0x385b07(0x1ec)]['event$']['pipe'](_0x4bbe9d[_0x385b07(0x130)](this['dispose$']))[_0x385b07(0x20d)](_0x5dd250=>{var _0x1a5a6c=_0x385b07;const {eventID:_0x31f324}=_0x5dd250;switch(_0x31f324){case _0x3aa9f1[_0x1a5a6c(0x202)][_0x1a5a6c(0x15b)]:this[_0x1a5a6c(0x217)](_0x5dd250);break;case _0x3aa9f1['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x5dd250);break;case _0x3aa9f1[_0x1a5a6c(0x202)][_0x1a5a6c(0x128)]:this['_handleTerminate']();break;case _0x3aa9f1['CollaborationEvent'][_0x1a5a6c(0x1a0)]:this[_0x1a5a6c(0x1ca)](_0x5dd250);break;}}));}[_0x161a02(0x19a)](){var _0x20887d=_0x161a02;this['_collabSession'][_0x20887d(0x1ce)]({'eventID':_0x3aa9f1[_0x20887d(0x202)][_0x20887d(0x198)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x20887d(0x178)]()}},this['_unitID']);}[_0x161a02(0x1a3)](){var _0x352d66=_0x161a02;this[_0x352d66(0x1d2)]===_0x352d66(0x144)&&(this[_0x352d66(0x1aa)][_0x352d66(0x196)](_0x352d66(0x141)),this[_0x352d66(0x1ec)][_0x352d66(0x1ce)]({'eventID':_0x3aa9f1[_0x352d66(0x202)][_0x352d66(0x128)],'data':{'unitID':this[_0x352d66(0x13a)]}},this[_0x352d66(0x13a)]));}[_0x161a02(0x18a)](){var _0x1d479c=_0x161a02;this[_0x1d479c(0x1d2)]===_0x1d479c(0x1b9)&&(this[_0x1d479c(0x1aa)][_0x1d479c(0x196)](_0x1d479c(0x1d5)),this[_0x1d479c(0x17c)]());}[_0x161a02(0x1cf)](){var _0x39c9da=_0x161a02;this[_0x39c9da(0x1d2)]===_0x39c9da(0x1d5)&&this[_0x39c9da(0x1f9)]();}[_0x161a02(0x217)](_0x2e1724){var _0x17d04a=_0x161a02;const {presenter:_0x24e0ec}=_0x2e1724['data'],_0x101dfa=this[_0x17d04a(0x1ec)][_0x17d04a(0x178)]();this[_0x17d04a(0x1b3)]=_0x24e0ec,_0x24e0ec===_0x101dfa?(this[_0x17d04a(0x1f9)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0x17d04a(0x19f)](),this[_0x17d04a(0x17c)]());}[_0x161a02(0x1c8)](){var _0x423b79=_0x161a02;const _0x38295c={'eventID':_0x3aa9f1[_0x423b79(0x202)][_0x423b79(0x18f)]};this['_collabSession'][_0x423b79(0x1ce)](_0x38295c,this['_unitID']);}[_0x161a02(0x140)](){var _0x45591d=_0x161a02;this[_0x45591d(0x1b3)]=null,this[_0x45591d(0x1d2)]!==_0x45591d(0x144)&&this[_0x45591d(0x199)]();}[_0x161a02(0x1ca)](_0x36ff8e){var _0x2a93f6=_0x161a02;if(this[_0x2a93f6(0x1d2)]===_0x2a93f6(0x1d5)&&this[_0x2a93f6(0x1b3)]===_0x36ff8e[_0x2a93f6(0x17f)]['memberID']){const _0x4fde33=_0x3aa9f1[_0x2a93f6(0x1ba)](_0x36ff8e['data'])[_0x2a93f6(0x206)][_0x2a93f6(0x126)]()[_0x2a93f6(0x1c9)](_0x35c640=>_0x35c640['id']===_0x46d4c0['InsertSheetMutation']['id']);if(_0x4fde33){const _0x34b289=_0x4fde33[_0x2a93f6(0x1c6)][_0x2a93f6(0x155)],_0x369f61=_0x4fde33[_0x2a93f6(0x1c6)]['sheet']['id'];setTimeout(()=>{var _0x437c5d=_0x2a93f6;this['_commandService'][_0x437c5d(0x1cd)](_0x46d4c0['SetWorksheetActiveOperation']['id'],{'unitId':_0x34b289,'subUnitId':_0x369f61},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x142391=_0x161a02;this[_0x142391(0x1aa)][_0x142391(0x196)](_0x142391(0x144));const _0x585037=new Map(),_0xf59b8a=this[_0x142391(0x1fd)]=new _0x2d5dbd[(_0x142391(0x1da))]();_0xf59b8a[_0x142391(0x1bc)](_0x2d5dbd[_0x142391(0x194)](()=>{var _0x4ca06b=_0x142391;_0x585037[_0x4ca06b(0x219)](_0x190c32=>_0x190c32['complete']()),_0x585037[_0x4ca06b(0x161)]();})),_0xf59b8a[_0x142391(0x1bc)](this[_0x142391(0x1d8)][_0x142391(0x1f5)](_0x554ee2=>{var _0x44b516=_0x142391,_0x230e5d;if(_0x554ee2['type']!==_0x2d5dbd[_0x44b516(0x1a2)]['OPERATION']||!this[_0x44b516(0x1d4)][_0x44b516(0x204)](_0x554ee2['id']))return;const {id:_0x5d22f9}=_0x554ee2;let _0xf33a25;_0x585037[_0x44b516(0x176)](_0x5d22f9)?_0xf33a25=_0x585037['get'](_0x5d22f9):(_0xf33a25=new _0xe0a27f[(_0x44b516(0x188))](),_0x585037[_0x44b516(0x18c)](_0x5d22f9,_0xf33a25),_0xf33a25[_0x44b516(0x181)](_0x4bbe9d[_0x44b516(0x1ae)]((_0x230e5d=this[_0x44b516(0x18b)][_0x44b516(0x15e)](_0x1c757a))!=null?_0x230e5d:_0x6dedcb,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x214ee7=>{var _0x3a50be=_0x44b516;this[_0x3a50be(0x1ec)][_0x3a50be(0x1ce)]({'eventID':_0x3aa9f1[_0x3a50be(0x202)][_0x3a50be(0x150)],'data':{'unitID':this[_0x3a50be(0x13a)],'operations':{[_0x214ee7['id']]:{'id':_0x214ee7['id'],'params':JSON[_0x3a50be(0x182)](_0x214ee7[_0x3a50be(0x1c6)])}}}},this[_0x3a50be(0x13a)]);})),_0xf33a25['next'](_0x554ee2);})),this[_0x142391(0x1d4)]['getInitialStates'](this['_unitID'])['forEach'](_0x218120=>this[_0x142391(0x1ec)][_0x142391(0x1ce)]({'eventID':_0x3aa9f1[_0x142391(0x202)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x142391(0x13a)],'operations':{[_0x218120['id']]:{'id':_0x218120['id'],'params':JSON[_0x142391(0x182)](_0x218120[_0x142391(0x1c6)])}}}},this[_0x142391(0x13a)]));}[_0x161a02(0x19f)](){var _0x9c4b52=_0x161a02,_0x3bfde9;this[_0x9c4b52(0x1aa)][_0x9c4b52(0x196)]('idle'),(_0x3bfde9=this[_0x9c4b52(0x1fd)])==null||_0x3bfde9['dispose'](),this[_0x9c4b52(0x1fd)]=null;}['_startFollowing'](){var _0x597dc2=_0x161a02,_0x5a5006;(_0x5a5006=this['_commandDisposable'])==null||_0x5a5006[_0x597dc2(0x1c1)](),this[_0x597dc2(0x1aa)]['next'](_0x597dc2(0x1d5));}['_beIdle'](){var _0x17bc73=_0x161a02,_0x129d11;this[_0x17bc73(0x1aa)][_0x17bc73(0x196)]('idle'),(_0x129d11=this[_0x17bc73(0x1fd)])==null||_0x129d11[_0x17bc73(0x1c1)](),this[_0x17bc73(0x1fd)]=null;}['_stopFollowing'](){var _0x265a59=_0x161a02,_0xe1002a;this[_0x265a59(0x1aa)]['next'](_0x265a59(0x1b9)),(_0xe1002a=this[_0x265a59(0x1fd)])==null||_0xe1002a[_0x265a59(0x1c1)]();}[_0x161a02(0x129)](_0x157a36){var _0x54a6f5=_0x161a02;if([_0x54a6f5(0x144),_0x54a6f5(0x1b9),'offline'][_0x54a6f5(0x1b4)](this[_0x54a6f5(0x1d2)])||!_0x157a36[_0x54a6f5(0x17f)][_0x54a6f5(0x14e)]||_0x157a36['data']['presenter']===this[_0x54a6f5(0x1ec)][_0x54a6f5(0x178)]())return;this[_0x54a6f5(0x1d2)]===_0x54a6f5(0x141)&&this[_0x54a6f5(0x17c)]();const _0x3dde9c=_0x157a36[_0x54a6f5(0x17f)][_0x54a6f5(0x191)];Object[_0x54a6f5(0x186)](_0x3dde9c)[_0x54a6f5(0x219)](_0x3f3d98=>{var _0x1fa304=_0x54a6f5;this[_0x1fa304(0x1d8)][_0x1fa304(0x1cd)](_0x3f3d98['id'],_0x3f3d98[_0x1fa304(0x1c6)]?JSON[_0x1fa304(0x13b)](_0x3f3d98[_0x1fa304(0x1c6)]):null,{'fromCollab':!0x0});});}[_0x161a02(0x14f)](){var _0x582129=_0x161a02,_0x8e385f;this[_0x582129(0x1aa)]['next'](_0x582129(0x136)),(_0x8e385f=this['_commandDisposable'])==null||_0x8e385f['dispose']();}['_handleOnline'](){var _0x530d1f=_0x161a02;this[_0x530d1f(0x1aa)][_0x530d1f(0x196)]('idle'),this[_0x530d1f(0x1c8)]();}},_0x4e9fcc[_0x161a02(0x15a)]=_0x1a34e0([_0x24105f(0x2,_0x2d5dbd[_0x161a02(0x209)]),_0x24105f(0x3,_0x2d5dbd[_0x161a02(0x18d)](_0x24dd90)),_0x24105f(0x4,_0x2d5dbd[_0x161a02(0x184)])],_0x4e9fcc['LiveShareCoordinator']);function _0x2f5ea3(){var _0x14b1c0=_0x161a02;const _0x20714a=_0x4aa6f8[_0x14b1c0(0x1db)](_0x4e9fcc[_0x14b1c0(0x190)]),_0x256ca2=_0x4aa6f8['useDependency'](_0x2d5dbd[_0x14b1c0(0x1a8)]),_0x53702b=_0x4aa6f8[_0x14b1c0(0x137)](()=>_0x256ca2[_0x14b1c0(0x203)](_0x2d5dbd['UniverInstanceType'][_0x14b1c0(0x1fa)]),void 0x0,!0x1,[]),[_0x47d640,_0x20deaa]=_0x3c21ed[_0x14b1c0(0x1a5)](null),[_0xeadb52,_0x597b65]=_0x3c21ed['useState'](_0x4d37bd[_0x14b1c0(0x149)]),_0x5dce5b=_0x3c21ed[_0x14b1c0(0x1e8)](null);return _0x3c21ed[_0x14b1c0(0x1ff)](()=>(_0x53702b&&_0x20714a[_0x14b1c0(0x1d9)](_0x53702b['getUnitId']())[_0x14b1c0(0x1ab)](_0x3f2f3a=>{var _0x267deb=_0x14b1c0;_0x20deaa(_0x3f2f3a),_0x5dce5b[_0x267deb(0x179)]=_0x3f2f3a[_0x267deb(0x214)]['subscribe'](_0x412e49=>{_0x597b65(_0x412e49);});}),()=>{var _0x1b5896=_0x14b1c0,_0x3d4558;(_0x3d4558=_0x5dce5b['current'])==null||_0x3d4558[_0x1b5896(0x1b2)](),_0x5dce5b['current']=null;}),[_0x53702b,_0x20714a]),_0x47d640?_0x44c13e[_0x14b1c0(0x1a1)](_0x4e6ae5[_0x14b1c0(0x192)],{'align':_0x14b1c0(0x1e1),'disabled':_0xeadb52===_0x4d37bd[_0x14b1c0(0x1cb)],'className':_0x14b1c0(0x1cc),'overlay':_0x44c13e[_0x14b1c0(0x1a1)](_0x4e736a,{'status':_0xeadb52,'coordinator':_0x47d640}),'children':_0x44c13e['jsx'](_0x14b1c0(0x125),{'className':_0x4e6ae5[_0x14b1c0(0x174)](_0x14b1c0(0x156),{'univer-cursor-not-allowed':_0xeadb52===_0x4d37bd['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xeadb52!==_0x4d37bd[_0x14b1c0(0x1cb)]}),'type':'button','children':_0x44c13e['jsx'](_0x2fba10,{'className':_0x14b1c0(0x1c2)})})}):null;}function _0x4e736a(_0x5ba821){var _0x354c4d=_0x161a02;const {status:_0x44a26d,coordinator:_0x44090c}=_0x5ba821;switch(_0x44a26d){case _0x4d37bd[_0x354c4d(0x149)]:return _0x44c13e[_0x354c4d(0x1a1)](_0x5b45f8,{'coordinator':_0x44090c});case _0x4d37bd['FOLLOWING']:return _0x44c13e[_0x354c4d(0x1a1)](_0x4038a0,{'coordinator':_0x44090c});case _0x4d37bd[_0x354c4d(0x1e6)]:return _0x44c13e['jsx'](_0x180c50,{'coordinator':_0x44090c});case _0x4d37bd['OFFLINE']:return _0x44c13e[_0x354c4d(0x1a1)](_0x2c828b,{});case _0x4d37bd['PRESENTING']:return _0x44c13e[_0x354c4d(0x1a1)](_0x22cefb,{'coordinator':_0x44090c});default:return null;}}function _0x5b45f8(_0x4e0b4e){var _0x6519f5=_0x161a02;const {coordinator:_0x338035}=_0x4e0b4e;return _0x44c13e['jsxs'](_0x44c13e[_0x6519f5(0x1b8)],{'children':[_0x44c13e['jsx'](_0x6519f5(0x1f7),{'className':_0x6519f5(0x207),'children':_0x6519f5(0x127)}),_0x44c13e['jsx'](_0x4e6ae5['Button'],{'onClick':()=>_0x338035['tryStartPresenting'](),'children':_0x6519f5(0x1b5)})]});}function _0x4038a0(_0x22592f){var _0x53e552=_0x161a02;const {coordinator:_0xd639b2}=_0x22592f;return _0x44c13e[_0x53e552(0x208)](_0x44c13e['Fragment'],{'children':[_0x44c13e[_0x53e552(0x1a1)]('div',{'className':_0x53e552(0x207),'children':_0x53e552(0x14b)}),_0x44c13e[_0x53e552(0x1a1)](_0x4e6ae5['Button'],{'onClick':()=>_0xd639b2['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x180c50(_0x1f7957){var _0x3068a3=_0x161a02;const {coordinator:_0x2d1226}=_0x1f7957;return _0x44c13e['jsxs'](_0x44c13e['Fragment'],{'children':[_0x44c13e['jsx']('div',{'className':_0x3068a3(0x207),'children':_0x3068a3(0x1b0)}),_0x44c13e[_0x3068a3(0x1a1)](_0x4e6ae5[_0x3068a3(0x1e5)],{'variant':_0x3068a3(0x19e),'onClick':()=>_0x2d1226['startFollowing'](),'children':_0x3068a3(0x13d)})]});}function _0x22cefb(_0x2ab44c){var _0x32c93f=_0x161a02;const {coordinator:_0x48922d}=_0x2ab44c;return _0x44c13e[_0x32c93f(0x208)](_0x44c13e['Fragment'],{'children':[_0x44c13e[_0x32c93f(0x1a1)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x44c13e[_0x32c93f(0x1a1)](_0x4e6ae5['Button'],{'variant':_0x32c93f(0x171),'onClick':()=>_0x48922d[_0x32c93f(0x1a3)](),'children':'Stop\x20presenting'})]});}function _0x2c828b(){var _0x163dfe=_0x161a02;return _0x44c13e['jsx'](_0x44c13e[_0x163dfe(0x1b8)],{'children':_0x163dfe(0x138)});}var _0x3554e9=Object[_0x161a02(0x1bf)],_0x4ff6c6=(_0x8d6536,_0x5013b9,_0x731008,_0x4b6c0e)=>{for(var _0x48bb6c=_0x4b6c0e>0x1?void 0x0:_0x4b6c0e?_0x3554e9(_0x5013b9,_0x731008):_0x5013b9,_0xa3f5e5=_0x8d6536['length']-0x1,_0x3f6efa;_0xa3f5e5>=0x0;_0xa3f5e5--)(_0x3f6efa=_0x8d6536[_0xa3f5e5])&&(_0x48bb6c=_0x3f6efa(_0x48bb6c)||_0x48bb6c);return _0x48bb6c;},_0x40d613=(_0x100dbe,_0x4e090f)=>(_0x407585,_0x4193ee)=>_0x4e090f(_0x407585,_0x4193ee,_0x100dbe);_0x4e9fcc[_0x161a02(0x15c)]=class extends _0x2d5dbd[_0x161a02(0x1f1)]{constructor(_0x44947a,_0x469e95){var _0x108f37=_0x161a02;super(),this[_0x108f37(0x1c7)]=_0x44947a,this['_uiPartsService']=_0x469e95,this[_0x108f37(0x20b)]();}['_mountLiveShare'](){var _0x5671aa=_0x161a02;this[_0x5671aa(0x17e)](this[_0x5671aa(0x12a)]['registerComponent'](_0x4aa6f8[_0x5671aa(0x132)][_0x5671aa(0x1f3)],()=>_0x4aa6f8['connectInjector'](_0x2f5ea3,this[_0x5671aa(0x1c7)])));}},_0x4e9fcc[_0x161a02(0x15c)]=_0x4ff6c6([_0x40d613(0x0,_0x2d5dbd[_0x161a02(0x18d)](_0x2d5dbd[_0x161a02(0x1d7)])),_0x40d613(0x1,_0x4aa6f8['IUIPartsService'])],_0x4e9fcc[_0x161a02(0x15c)]);var _0x399e8e=Object[_0x161a02(0x16a)],_0x43e652=Object[_0x161a02(0x1bf)],_0x14e05b=(_0x1db170,_0x5a2dae,_0x49a977)=>_0x5a2dae in _0x1db170?_0x399e8e(_0x1db170,_0x5a2dae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49a977}):_0x1db170[_0x5a2dae]=_0x49a977,_0x3a62a5=(_0x2f1127,_0x5e11ad,_0x54672e,_0x5d6f9d)=>{for(var _0x5c6b99=_0x5d6f9d>0x1?void 0x0:_0x5d6f9d?_0x43e652(_0x5e11ad,_0x54672e):_0x5e11ad,_0x30981d=_0x2f1127['length']-0x1,_0x4b6a21;_0x30981d>=0x0;_0x30981d--)(_0x4b6a21=_0x2f1127[_0x30981d])&&(_0x5c6b99=_0x4b6a21(_0x5c6b99)||_0x5c6b99);return _0x5c6b99;},_0x4e2eee=(_0x52912c,_0x379744)=>(_0x4f36f4,_0x176a0f)=>_0x379744(_0x4f36f4,_0x176a0f,_0x52912c),_0x4573c6=(_0x5d611a,_0x20852f,_0x1a5b57)=>_0x14e05b(_0x5d611a,typeof _0x20852f!='symbol'?_0x20852f+'':_0x20852f,_0x1a5b57);const _0x3231d4=_0x161a02(0x146);_0x4e9fcc[_0x161a02(0x167)]=class extends _0x2d5dbd[_0x161a02(0x1be)]{constructor(_0x3eb888=_0x456786,_0x1995f9,_0x435c4d){var _0x59fda1=_0x161a02;super(),this['_config']=_0x3eb888,this['_injector']=_0x1995f9,this[_0x59fda1(0x18b)]=_0x435c4d;const {..._0xdc25e}=_0x2d5dbd[_0x59fda1(0x195)]({},_0x456786,this[_0x59fda1(0x168)]);this[_0x59fda1(0x18b)][_0x59fda1(0x164)](_0x2d46d6,_0xdc25e);}[_0x161a02(0x200)](){var _0x316882=_0x161a02;_0x2d5dbd[_0x316882(0x17b)](this[_0x316882(0x1c7)],_0x2d5dbd[_0x316882(0x165)]([[_0x24dd90],[_0x4e9fcc[_0x316882(0x190)]],[_0xbab834],[_0x4e9fcc[_0x316882(0x15c)]]],this[_0x316882(0x168)][_0x316882(0x1df)])),_0x2d5dbd['touchDependencies'](this[_0x316882(0x1c7)],[[_0xbab834]]);}['onRendered'](){var _0x13cca8=_0x161a02;_0x2d5dbd[_0x13cca8(0x1a7)](this[_0x13cca8(0x1c7)],[[_0x4e9fcc[_0x13cca8(0x15c)]]]);}},_0x4573c6(_0x4e9fcc[_0x161a02(0x167)],_0x161a02(0x14a),_0x2d5dbd['UniverInstanceType'][_0x161a02(0x12b)]),_0x4573c6(_0x4e9fcc[_0x161a02(0x167)],_0x161a02(0x154),_0x3231d4),_0x4e9fcc[_0x161a02(0x167)]=_0x3a62a5([_0x2d5dbd['DependentOn'](_0x33335f[_0x161a02(0x215)]),_0x4e2eee(0x1,_0x2d5dbd[_0x161a02(0x18d)](_0x2d5dbd[_0x161a02(0x1d7)])),_0x4e2eee(0x2,_0x2d5dbd[_0x161a02(0x209)])],_0x4e9fcc[_0x161a02(0x167)]),_0x4e9fcc[_0x161a02(0x1bb)]=_0x2f5ea3,_0x4e9fcc[_0x161a02(0x1f4)]=_0x24dd90,_0x4e9fcc[_0x161a02(0x19d)]=_0x4d37bd,Object['defineProperty'](_0x4e9fcc,Symbol[_0x161a02(0x1e2)],{'value':_0x161a02(0x189)});}));function _0x25eb(_0x3ef9d6,_0x2ab255){var _0x2c3325=_0x2c33();return _0x25eb=function(_0x25eb3e,_0x31e6d6){_0x25eb3e=_0x25eb3e-0x124;var _0x357a77=_0x2c3325[_0x25eb3e];return _0x357a77;},_0x25eb(_0x3ef9d6,_0x2ab255);}function _0x2c33(){var _0x1018b0=['div','_univerInstanceService','_stopFollowing','UNIVER_SHEET','hasOwnProperty','registerInitialStateReporter','_commandDisposable','UniverProLiveShare','useEffect','onStarting','currentColor','CollaborationEvent','getCurrentTypeOfUnit$','shouldShareOperation','593410sUSvCw','mutations','univer-mb-3\x20univer-w-full\x20univer-text-sm','jsxs','IConfigService','SessionStatus','_mountLiveShare','propertyIsEnumerable','subscribe','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','UniverDesign','children','map','1em','symbol','status$','UniverCollaborationClientPlugin','use','_handleNewHost','univerjs-icon\x20univerjs-icon-','forEach','@univerjs/core','button','reverse','Present\x20this\x20document','LIVESHARE_TERMINATE','_handleOperation','_uiPartsService','UNIVER_UNKNOWN','8ycaUVH','attrs','assign','prototype','takeUntil','icon','BuiltInUIPart','tag','none','extend','offline','useObservable','You\x27are\x20offline.','ONLINE','_unitID','parse','xlink:href','Start\x20following','_entities','toString','_handleTerminate','idle','1YbMZPS','getValue','presenting','618450LfLUET','UNIVER_LIVE_SHARE_PLUGIN','908997TJuFCt','http://www.w3.org/2000/svg','IDLE','type','You\x27re\x20following\x20the\x20presenter','@univerjs/ui','indexOf','presenter','_handleOffline','LIVESHARE_OPERATION','asObservable','amd','init','pluginName','unitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getOwnPropertySymbols','createInstance','UniverSheetsUi','LiveShareCoordinator','LIVESHARE_NEW_HOST','DesktopLiveShareController','forwardRef','getConfig','_startLiveShareCoordinator','idSuffix','clear','string','dispose$','setConfig','mergeOverrideWithDependencies','function','UniverLiveSharePlugin','_config','call','defineProperty','942282OxpWYP','_init','getTypeOfUnitDisposed$','object','path','UniverSheets','default','SetWorksheetActiveOperation','defs','clsx','FOLLOWING','has','0\x200\x2017\x2017','getMemberID','current','832060GVGWzE','registerDependencies','_startFollowing','sessionStatus$','disposeWithMe','data','@univerjs-pro/collaboration','pipe','stringify','CollaborationSessionService','ICommandService','react/jsx-runtime','values','rxjs/operators','Subject','Module','startFollowing','_configService','set','Inject','url(#$1','LIVESHARE_FETCH_OPERATIONS','LiveShareController','operations','Dropdown','getUnitId','toDisposable','merge','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','tryStartPresenting','rxjs','UniverUi','LiveShareStatus','text','_stopPresenting','NEW_CHANGESETS','jsx','CommandType','stopPresenting','concat','useState','5cRUcoy','touchDependencies','IUniverInstanceService','UniverInstanceType','_status$','then','defIds','createElement','throttleTime','fill','You\x27re\x20not\x20following\x20the\x20presenter','RxDisposable','unsubscribe','_presenter','includes','Start','React','getTypeOfUnitAdded$','Fragment','not-following','parseProtocolChangeset','LiveShare','add','trim','Plugin','getOwnPropertyDescriptor','colorChannel1','dispose','univer-size-4','get','length','923499zPxeho','params','_injector','_fetchOperations','find','_handleNewChangeSets','OFFLINE','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','executeCommand','send','stopFollowing','operators','LiveShareIcon','_status','substring','_liveShareService','following','live-share.config','Injector','_commandService','getLiveShareCoordinator','DisposableCollection','useDependency','complete','evenodd','registerSharedOperation','override','UniverProCollaborationClient','end','toStringTag','PRESENTING','live-share-icon','Button','NOT_FOLLOWING','_reporters','useRef','random','BehaviorSubject','svg','_collabSession','SetScrollOperation','@univerjs/sheets-ui','_collabSessionService','entries','Disposable','className','HEADER_MENU','LiveShareService','onCommandExecuted','137986HHoqje'];_0x2c33=function(){return _0x1018b0;};return _0x2c33();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-nightly.202507310307",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.6",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/design": "0.
|
|
54
|
-
"@univerjs/sheets": "0.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.0-nightly.202507310307",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.0-nightly.202507310307",
|
|
52
|
+
"@univerjs/core": "0.10.0-nightly.202507310307",
|
|
53
|
+
"@univerjs/design": "0.10.0-nightly.202507310307",
|
|
54
|
+
"@univerjs/sheets-ui": "0.10.0-nightly.202507310307",
|
|
55
|
+
"@univerjs/ui": "0.10.0-nightly.202507310307",
|
|
56
|
+
"@univerjs/sheets": "0.10.0-nightly.202507310307"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^7.0.6",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.
|
|
66
|
+
"@univerjs-infra/shared": "0.10.0",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|