@univerjs-pro/live-share 0.9.4-nightly.202507290757 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _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 _0x1d2f52=_0x3307;(function(_0x9b78ca,_0x53c2be){var _0x5317e6=_0x3307,_0x598613=_0x9b78ca();while(!![]){try{var _0x248bfd=parseInt(_0x5317e6(0xab))/0x1+-parseInt(_0x5317e6(0xca))/0x2+-parseInt(_0x5317e6(0xb4))/0x3*(-parseInt(_0x5317e6(0x15b))/0x4)+-parseInt(_0x5317e6(0xe0))/0x5+parseInt(_0x5317e6(0x102))/0x6*(parseInt(_0x5317e6(0x148))/0x7)+parseInt(_0x5317e6(0x95))/0x8+-parseInt(_0x5317e6(0xd2))/0x9;if(_0x248bfd===_0x53c2be)break;else _0x598613['push'](_0x598613['shift']());}catch(_0x3f74a2){_0x598613['push'](_0x598613['shift']());}}}(_0x2060,0x5bf7a));var U=Object[_0x1d2f52(0xda)],F=(_0x17d1fd,_0x19ac5d,_0x235229)=>_0x19ac5d in _0x17d1fd?U(_0x17d1fd,_0x19ac5d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x235229}):_0x17d1fd[_0x19ac5d]=_0x235229,v=(_0x15d3b4,_0x2c7795,_0xa1c057)=>F(_0x15d3b4,typeof _0x2c7795!=_0x1d2f52(0xaa)?_0x2c7795+'':_0x2c7795,_0xa1c057);Object['defineProperty'](exports,Symbol[_0x1d2f52(0x124)],{'value':_0x1d2f52(0xe7)});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'),$=_0x1d2f52(0xd3),x={};class O extends o[_0x1d2f52(0xb6)]{constructor(){var _0x1dfc01=_0x1d2f52;super(...arguments),v(this,_0x1dfc01(0x119),new Set()),v(this,_0x1dfc01(0x151),new Set());}[_0x1d2f52(0x101)](_0x49c1a0){var _0x5adc95=_0x1d2f52;return this[_0x5adc95(0x119)]['add'](_0x49c1a0),o[_0x5adc95(0xa0)](()=>this[_0x5adc95(0x119)]['delete'](_0x49c1a0));}[_0x1d2f52(0x110)](_0x3e2c18){var _0x533bac=_0x1d2f52;return this['_reporters'][_0x533bac(0x15e)](_0x3e2c18),o['toDisposable'](()=>this[_0x533bac(0x151)][_0x533bac(0xa6)](_0x3e2c18));}[_0x1d2f52(0x12f)](_0x3efd74){var _0x5838d1=_0x1d2f52;return this['_sharedOperations'][_0x5838d1(0x152)](_0x3efd74);}[_0x1d2f52(0xa1)](_0x3fb9e4){var _0x1831ee=_0x1d2f52;return Array[_0x1831ee(0x157)](this['_reporters'])[_0x1831ee(0xa2)](_0xb82dff=>_0xb82dff(_0x3fb9e4));}}var H=Object[_0x1d2f52(0xc4)],V=(_0x328ecd,_0x542a49,_0x22e12d,_0x5ae7fe)=>{var _0x72e29=_0x1d2f52;for(var _0x49130a=_0x5ae7fe>0x1?void 0x0:_0x5ae7fe?H(_0x542a49,_0x22e12d):_0x542a49,_0x242a86=_0x328ecd[_0x72e29(0x167)]-0x1,_0x32cd49;_0x242a86>=0x0;_0x242a86--)(_0x32cd49=_0x328ecd[_0x242a86])&&(_0x49130a=_0x32cd49(_0x49130a)||_0x49130a);return _0x49130a;},k=(_0xff64a1,_0x1f581f)=>(_0x17260f,_0x177724)=>_0x1f581f(_0x17260f,_0x177724,_0xff64a1);let E=class extends o[_0x1d2f52(0xb6)]{constructor(_0x218cae){var _0x240abe=_0x1d2f52;super(),this[_0x240abe(0xf5)]=_0x218cae,this[_0x240abe(0xf9)]();}[_0x1d2f52(0xf9)](){var _0x1507a3=_0x1d2f52;[w['SetZoomRatioOperation']['id'],w[_0x1507a3(0x106)]['id'],C[_0x1507a3(0x9c)]['id']][_0x1507a3(0xc0)](_0x2ef71b=>{var _0x1476a7=_0x1507a3;this[_0x1476a7(0x12e)](this[_0x1476a7(0xf5)]['registerSharedOperation'](_0x2ef71b));});}};E=V([k(0x0,o[_0x1d2f52(0xc6)](O))],E);var u=function(){var _0x1e9bc5=_0x1d2f52;return u=Object[_0x1e9bc5(0xf8)]||function(_0x40c191){var _0x2e4c79=_0x1e9bc5;for(var _0x55fe54,_0x4cf441=0x1,_0x2808d1=arguments['length'];_0x4cf441<_0x2808d1;_0x4cf441++){_0x55fe54=arguments[_0x4cf441];for(var _0xaf21ae in _0x55fe54)Object['prototype']['hasOwnProperty'][_0x2e4c79(0x12c)](_0x55fe54,_0xaf21ae)&&(_0x40c191[_0xaf21ae]=_0x55fe54[_0xaf21ae]);}return _0x40c191;},u[_0x1e9bc5(0xec)](this,arguments);},M=function(_0x3b056c,_0x122637){var _0x5c9601=_0x1d2f52,_0x27c459={};for(var _0x3612cc in _0x3b056c)Object[_0x5c9601(0xb1)][_0x5c9601(0x13f)][_0x5c9601(0x12c)](_0x3b056c,_0x3612cc)&&_0x122637[_0x5c9601(0x13d)](_0x3612cc)<0x0&&(_0x27c459[_0x3612cc]=_0x3b056c[_0x3612cc]);if(_0x3b056c!=null&&typeof Object[_0x5c9601(0x14b)]==_0x5c9601(0x13b)){for(var _0x520800=0x0,_0x3612cc=Object[_0x5c9601(0x14b)](_0x3b056c);_0x520800<_0x3612cc[_0x5c9601(0x167)];_0x520800++)_0x122637['indexOf'](_0x3612cc[_0x520800])<0x0&&Object['prototype'][_0x5c9601(0xdd)][_0x5c9601(0x12c)](_0x3b056c,_0x3612cc[_0x520800])&&(_0x27c459[_0x3612cc[_0x520800]]=_0x3b056c[_0x3612cc[_0x520800]]);}return _0x27c459;},j=f['forwardRef'](function(_0x4097b8,_0x20db31){var _0x18eb69=_0x1d2f52,_0xa6221b=_0x4097b8[_0x18eb69(0xa5)],_0x19cf0c=_0x4097b8['id'],_0x149e73=_0x4097b8[_0x18eb69(0x10a)],_0x10d53a=_0x4097b8[_0x18eb69(0xe8)],_0x1a32a0=M(_0x4097b8,[_0x18eb69(0xa5),'id',_0x18eb69(0x10a),'extend']),_0x129d5d=_0x18eb69(0x158)[_0x18eb69(0xb5)](_0x19cf0c,'\x20')[_0x18eb69(0xb5)](_0x149e73||'')[_0x18eb69(0x133)](),_0x12bc75=f['useRef']('_'['concat'](G()));return y(_0xa6221b,''['concat'](_0x19cf0c),{'defIds':_0xa6221b[_0x18eb69(0xd6)],'idSuffix':_0x12bc75[_0x18eb69(0x112)]},u({'ref':_0x20db31,'className':_0x129d5d},_0x1a32a0),_0x10d53a);});function y(_0x9f18de,_0x27e74e,_0x1cd395,_0x5f50d7,_0x31201e){var _0x311147=_0x1d2f52;return f[_0x311147(0x134)](_0x9f18de[_0x311147(0x14f)],u(u({'key':_0x27e74e},q(_0x9f18de,_0x1cd395,_0x31201e)),_0x5f50d7),(W(_0x9f18de,_0x1cd395)[_0x311147(0xeb)]||[])[_0x311147(0xa2)](function(_0x177318,_0x3be359){var _0x2e3318=_0x311147;return y(_0x177318,''[_0x2e3318(0xb5)](_0x27e74e,'-')[_0x2e3318(0xb5)](_0x9f18de[_0x2e3318(0x14f)],'-')['concat'](_0x3be359),_0x1cd395,void 0x0,_0x31201e);}));}function q(_0x1ec346,_0x32dd6a,_0x3955aa){var _0x219055=_0x1d2f52,_0x1c455d=u({},_0x1ec346['attrs']);_0x3955aa!=null&&_0x3955aa[_0x219055(0xc5)]&&_0x1c455d['fill']==='colorChannel1'&&(_0x1c455d[_0x219055(0x116)]=_0x3955aa[_0x219055(0xc5)]),_0x1ec346[_0x219055(0x14f)]===_0x219055(0x146)&&_0x1c455d['id']&&(_0x1c455d['id']=_0x1c455d['id']+_0x32dd6a[_0x219055(0x127)]),Object['entries'](_0x1c455d)['forEach'](function(_0xe7d904){var _0x3a1b32=_0x219055,_0x21046a=_0xe7d904[0x0],_0x168d6f=_0xe7d904[0x1];_0x21046a===_0x3a1b32(0x146)&&typeof _0x168d6f==_0x3a1b32(0x130)&&(_0x1c455d[_0x21046a]=_0x168d6f['replace'](/url\(#(.*)\)/,_0x3a1b32(0xdf)[_0x3a1b32(0xb5)](_0x32dd6a[_0x3a1b32(0x127)],')')));});var _0x32612f=_0x32dd6a[_0x219055(0xd6)];return!_0x32612f||_0x32612f[_0x219055(0x167)]===0x0||(_0x1ec346[_0x219055(0x14f)]===_0x219055(0xd9)&&_0x1c455d[_0x219055(0x109)]&&(_0x1c455d['xlink:href']=_0x1c455d[_0x219055(0x109)]+_0x32dd6a[_0x219055(0x127)]),Object[_0x219055(0x165)](_0x1c455d)[_0x219055(0xc0)](function(_0x771640){var _0x4dfcfa=_0x219055,_0x42ddad=_0x771640[0x0],_0x3ec26a=_0x771640[0x1];typeof _0x3ec26a=='string'&&(_0x1c455d[_0x42ddad]=_0x3ec26a[_0x4dfcfa(0xf2)](/url\(#(.*)\)/,_0x4dfcfa(0xdf)[_0x4dfcfa(0xb5)](_0x32dd6a['idSuffix'],')')));})),_0x1c455d;}function W(_0x7a16bd,_0x360601){var _0x78b05a=_0x1d2f52,_0xd18f9c,_0x2e1e5a=_0x360601[_0x78b05a(0xd6)];return!_0x2e1e5a||_0x2e1e5a[_0x78b05a(0x167)]===0x0?_0x7a16bd:_0x7a16bd[_0x78b05a(0x14f)]==='defs'&&(!((_0xd18f9c=_0x7a16bd[_0x78b05a(0xeb)])===null||_0xd18f9c===void 0x0)&&_0xd18f9c['length'])?u(u({},_0x7a16bd),{'children':_0x7a16bd['children'][_0x78b05a(0xa2)](function(_0x257a97){var _0x5ec5d9=_0x78b05a;return typeof _0x257a97['attrs']['id']==_0x5ec5d9(0x130)&&_0x2e1e5a&&_0x2e1e5a[_0x5ec5d9(0x14a)](_0x257a97['attrs']['id'])?u(u({},_0x257a97),{'attrs':u(u({},_0x257a97[_0x5ec5d9(0x126)]),{'id':_0x257a97[_0x5ec5d9(0x126)]['id']+_0x360601[_0x5ec5d9(0x127)]})}):_0x257a97;})}):_0x7a16bd;}function G(){var _0x37367c=_0x1d2f52;return Math[_0x37367c(0x107)]()[_0x37367c(0xf3)](0x24)[_0x37367c(0x93)](0x2,0x8);}j[_0x1d2f52(0x15a)]='UniverIcon';function _0x3307(_0x2f6c87,_0x267135){var _0x206056=_0x2060();return _0x3307=function(_0x330720,_0x13bdab){_0x330720=_0x330720-0x8f;var _0x3a752b=_0x206056[_0x330720];return _0x3a752b;},_0x3307(_0x2f6c87,_0x267135);}var B={'tag':_0x1d2f52(0x100),'attrs':{'xmlns':_0x1d2f52(0xcc),'fill':_0x1d2f52(0xc3),'viewBox':_0x1d2f52(0xbd),'width':'1em','height':_0x1d2f52(0xe6)},'children':[{'tag':_0x1d2f52(0xfc),'attrs':{'fill':_0x1d2f52(0xc8),'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':'path','attrs':{'fill':'currentColor','d':_0x1d2f52(0xe1),'fillRule':'evenodd','clipRule':_0x1d2f52(0xb2)}}]},P=f[_0x1d2f52(0xd5)](function(_0x3bec38,_0x555c61){var _0x9d3bd4=_0x1d2f52;return f[_0x9d3bd4(0x134)](j,Object[_0x9d3bd4(0xf8)]({},_0x3bec38,{'id':'live-share-icon','ref':_0x555c61,'icon':B}));});P[_0x1d2f52(0x15a)]=_0x1d2f52(0x13e);var Y=Object[_0x1d2f52(0xc4)],R=(_0x556baf,_0x1544e9,_0x3da547,_0x222058)=>{for(var _0x2d96af=_0x222058>0x1?void 0x0:_0x222058?Y(_0x1544e9,_0x3da547):_0x1544e9,_0x2f9d1f=_0x556baf['length']-0x1,_0x347b59;_0x2f9d1f>=0x0;_0x2f9d1f--)(_0x347b59=_0x556baf[_0x2f9d1f])&&(_0x2d96af=_0x347b59(_0x2d96af)||_0x2d96af);return _0x2d96af;},S=(_0x470ad2,_0x1adc7f)=>(_0x4df333,_0x4de8d5)=>_0x1adc7f(_0x4df333,_0x4de8d5,_0x470ad2);exports[_0x1d2f52(0x118)]=class extends o['RxDisposable']{constructor(_0x38538e,_0x80a848,_0x13a470){var _0x4a0c47=_0x1d2f52;super(),v(this,_0x4a0c47(0x10e),new Map()),(this[_0x4a0c47(0x9b)]=_0x38538e,this[_0x4a0c47(0x90)]=_0x80a848,this[_0x4a0c47(0x166)]=_0x13a470,this[_0x4a0c47(0xf9)]());}async['getLiveShareCoordinator'](_0x2714f7){var _0x1e8bd0=_0x1d2f52;return this['_entities'][_0x1e8bd0(0x152)](_0x2714f7)||await this[_0x1e8bd0(0xb8)](_0x2714f7),this['_entities']['get'](_0x2714f7);}[_0x1d2f52(0xf9)](){var _0x40ff6e=_0x1d2f52;this[_0x40ff6e(0x9b)][_0x40ff6e(0xbf)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x40ff6e(0x138)](b[_0x40ff6e(0xb0)](this['dispose$']))['subscribe'](async _0x516287=>{var _0x5b89ef=_0x40ff6e;const _0x4fe302=_0x516287[_0x5b89ef(0x137)]();this['_entities']['has'](_0x4fe302)||this[_0x5b89ef(0xb8)](_0x4fe302);}),this[_0x40ff6e(0x9b)]['getTypeOfUnitDisposed$'](o[_0x40ff6e(0x94)]['UNIVER_SHEET'])[_0x40ff6e(0x138)](b['takeUntil'](this[_0x40ff6e(0x108)]))['subscribe'](_0x4f3951=>{var _0x26b01b=_0x40ff6e;const _0xd6b12d=_0x4f3951[_0x26b01b(0x137)](),_0x2e8fd0=this[_0x26b01b(0x10e)][_0x26b01b(0x128)](_0xd6b12d);_0x2e8fd0==null||_0x2e8fd0['dispose']();});}async[_0x1d2f52(0xb8)](_0x9369bb){var _0x35e1f5=_0x1d2f52;const _0xdc1e10=await this['_collabSessionService'][_0x35e1f5(0x147)](_0x9369bb),_0x30afa0=this['_injector']['createInstance'](exports['LiveShareCoordinator'],_0x9369bb,_0xdc1e10);return _0x30afa0[_0x35e1f5(0x154)](),this[_0x35e1f5(0x10e)][_0x35e1f5(0x11f)](_0x9369bb,_0x30afa0),_0x30afa0;}},exports[_0x1d2f52(0x118)]=R([S(0x0,o[_0x1d2f52(0x105)]),S(0x1,o[_0x1d2f52(0xc6)](o[_0x1d2f52(0xc7)])),S(0x2,o[_0x1d2f52(0xc6)](m[_0x1d2f52(0x92)]))],exports[_0x1d2f52(0x118)]);function _0x2060(){var _0x3adfbd=['concat','Disposable','then','_startLiveShareCoordinator','useDependency','_presenter','DesktopLiveShareController','_handleOperation','0\x200\x2017\x2017','pluginName','getTypeOfUnitAdded$','forEach','send','stopFollowing','none','getOwnPropertyDescriptor','colorChannel1','Inject','Injector','currentColor','idle','71172hXpUjP','UniverLiveSharePlugin','http://www.w3.org/2000/svg','NEW_CHANGESETS','IDLE','jsx','onStarting','not-following','76023iBdQRX','live-share.config','clsx','forwardRef','defIds','Present\x20this\x20document','_startFollowing','use','defineProperty','RxDisposable','getValue','propertyIsEnumerable','OFFLINE','url(#$1','2426305gTdIgk','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleOffline','registerComponent','presenter','1em','Module','extend','override','unitId','children','apply','_handleNewHost','throttleTime','_startPresenting','memberID','_mountLiveShare','replace','toString','getMemberID','_liveShareService','_stopFollowing','_commandService','assign','_init','merge','stopPresenting','path','useObservable','div','event$','svg','registerSharedOperation','1182WhRfwo','jsxs','HEADER_MENU','IUniverInstanceService','SetScrollOperation','random','dispose$','xlink:href','className','UniverCollaborationClientPlugin','offline','_unitID','_entities','CommandType','registerInitialStateReporter','Fragment','current','params','Subject','end','fill','_uiPartsService','LiveShareController','_sharedOperations','_configService','useEffect','subscribe','LiveShareService','LiveShare','set','_handleTerminate','data','_handleNewChangeSets','CollaborationEvent','toStringTag','_status$','attrs','idSuffix','get','LIVESHARE_TERMINATE','ICommandService','sessionStatus$','call','LIVESHARE_NEW_HOST','disposeWithMe','shouldShareOperation','string','touchDependencies','univer-mb-3\x20univer-w-full\x20univer-text-sm','trim','createElement','LIVESHARE_FETCH_OPERATIONS','_collabSession','getUnitId','pipe','Start\x20following','presenting','function','dispose','indexOf','LiveShareIcon','hasOwnProperty','Button','onRendered','DependentOn','_beIdle','asObservable','type','mask','requireSession','21hMrHLF','_handleOnline','includes','getOwnPropertySymbols','BehaviorSubject','getLiveShareCoordinator','PRESENTING','tag','DisposableCollection','_reporters','has','LIVESHARE_OPERATION','init','default','Plugin','from','univerjs-icon\x20univerjs-icon-','next','displayName','40rZAiGl','getConfig','_commandDisposable','add','following','stringify','_status','SAME_OPERATION_SHARE_INTERVAL','useRef','LiveShareCoordinator','entries','_collabSessionService','length','SessionStatus','_injector','OPERATION','CollaborationSessionService','substring','UniverInstanceType','1574976tntgDh','_fetchOperations','IUIPartsService','Start','Dropdown','registerDependencies','_univerInstanceService','SetWorksheetActiveOperation','UNIVER_SHEET','mutations','ONLINE','toDisposable','getInitialStates','map','tryStartPresenting','You\x27are\x20offline.','icon','delete','startFollowing','executeCommand','UNIVER_LIVE_SHARE_PLUGIN','symbol','536759MBwVzW','IConfigService','find','text','FOLLOWING','takeUntil','prototype','evenodd','values','51531zTnzyj'];_0x2060=function(){return _0x3adfbd;};return _0x2060();}var h=(_0x4953c2=>(_0x4953c2[_0x1d2f52(0xde)]=_0x1d2f52(0x10c),_0x4953c2[_0x1d2f52(0xce)]=_0x1d2f52(0xc9),_0x4953c2[_0x1d2f52(0xaf)]=_0x1d2f52(0x15f),_0x4953c2['NOT_FOLLOWING']=_0x1d2f52(0xd1),_0x4953c2['PRESENTING']=_0x1d2f52(0x13a),_0x4953c2))(h||{});const Z=_0x1d2f52(0x162),J=0xc8;exports[_0x1d2f52(0x164)]=class extends o[_0x1d2f52(0xdb)]{constructor(_0x27d5cb,_0xcd3c03,_0x18dbce,_0x3ac68c,_0x4b8706){var _0x485e2f=_0x1d2f52;super(),v(this,_0x485e2f(0x125),new D[(_0x485e2f(0x14c))]('idle')),v(this,'status$',this[_0x485e2f(0x125)][_0x485e2f(0x144)]()),v(this,_0x485e2f(0xf9),!0x1),v(this,'_commandDisposable',null),v(this,_0x485e2f(0xba),null),(this[_0x485e2f(0x10d)]=_0x27d5cb,this[_0x485e2f(0x136)]=_0xcd3c03,this[_0x485e2f(0x11a)]=_0x18dbce,this[_0x485e2f(0xf5)]=_0x3ac68c,this[_0x485e2f(0xf7)]=_0x4b8706);}get['_status'](){var _0xa32dd4=_0x1d2f52;return this[_0xa32dd4(0x125)][_0xa32dd4(0xdc)]();}[_0x1d2f52(0x13c)](){var _0x1c7eb6=_0x1d2f52,_0x504837;(_0x504837=this[_0x1c7eb6(0x15d)])==null||_0x504837[_0x1c7eb6(0x13c)](),this[_0x1c7eb6(0x125)]['next']('idle'),this[_0x1c7eb6(0x125)]['complete']();}[_0x1d2f52(0x154)](){var _0x1d9fe8=_0x1d2f52;this[_0x1d9fe8(0xf9)]||(this[_0x1d9fe8(0xf9)]=!0x0,this[_0x1d9fe8(0x136)][_0x1d9fe8(0x12b)][_0x1d9fe8(0x138)](b[_0x1d9fe8(0xb0)](this[_0x1d9fe8(0x108)]))[_0x1d9fe8(0x11c)](_0x4fd36c=>{var _0x1e4e5a=_0x1d9fe8;switch(_0x4fd36c){case m[_0x1e4e5a(0x8f)][_0x1e4e5a(0xde)]:this['_handleOffline']();break;case m['SessionStatus'][_0x1e4e5a(0x9f)]:this[_0x1e4e5a(0x149)]();break;}}),this['_collabSession'][_0x1d9fe8(0xff)][_0x1d9fe8(0x138)](b[_0x1d9fe8(0xb0)](this['dispose$']))[_0x1d9fe8(0x11c)](_0x316e1e=>{var _0x23e7f5=_0x1d9fe8;const {eventID:_0x5efbd6}=_0x316e1e;switch(_0x5efbd6){case _['CollaborationEvent'][_0x23e7f5(0x12d)]:this[_0x23e7f5(0xed)](_0x316e1e);break;case _[_0x23e7f5(0x123)][_0x23e7f5(0x153)]:this[_0x23e7f5(0xbc)](_0x316e1e);break;case _[_0x23e7f5(0x123)][_0x23e7f5(0x129)]:this[_0x23e7f5(0x120)]();break;case _[_0x23e7f5(0x123)][_0x23e7f5(0xcd)]:this[_0x23e7f5(0x122)](_0x316e1e);break;}}));}[_0x1d2f52(0xa3)](){var _0xba8239=_0x1d2f52;this['_collabSession'][_0xba8239(0xc1)]({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xba8239(0x10d)],'userID':this[_0xba8239(0x136)][_0xba8239(0xf4)]()}},this[_0xba8239(0x10d)]);}[_0x1d2f52(0xfb)](){var _0x3c26b1=_0x1d2f52;this['_status']===_0x3c26b1(0x13a)&&(this['_status$'][_0x3c26b1(0x159)](_0x3c26b1(0xc9)),this[_0x3c26b1(0x136)][_0x3c26b1(0xc1)]({'eventID':_['CollaborationEvent'][_0x3c26b1(0x129)],'data':{'unitID':this[_0x3c26b1(0x10d)]}},this[_0x3c26b1(0x10d)]));}[_0x1d2f52(0xa7)](){var _0x121fc7=_0x1d2f52;this[_0x121fc7(0x161)]===_0x121fc7(0xd1)&&(this[_0x121fc7(0x125)][_0x121fc7(0x159)](_0x121fc7(0x15f)),this['_startFollowing']());}[_0x1d2f52(0xc2)](){var _0x4a59c=_0x1d2f52;this[_0x4a59c(0x161)]===_0x4a59c(0x15f)&&this['_stopFollowing']();}[_0x1d2f52(0xed)](_0x49408e){var _0x45b9b6=_0x1d2f52;const {presenter:_0x527e03}=_0x49408e[_0x45b9b6(0x121)],_0x4927a1=this[_0x45b9b6(0x136)][_0x45b9b6(0xf4)]();this['_presenter']=_0x527e03,_0x527e03===_0x4927a1?(this[_0x45b9b6(0xf6)](),this[_0x45b9b6(0xef)]()):this[_0x45b9b6(0x161)]!==_0x45b9b6(0xd1)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x1d2f52(0x96)](){var _0x212c9e=_0x1d2f52;const _0x421079={'eventID':_['CollaborationEvent'][_0x212c9e(0x135)]};this[_0x212c9e(0x136)][_0x212c9e(0xc1)](_0x421079,this['_unitID']);}[_0x1d2f52(0x120)](){var _0x5f1923=_0x1d2f52;this['_presenter']=null,this['_status']!==_0x5f1923(0x13a)&&this['_beIdle']();}[_0x1d2f52(0x122)](_0x20ade6){var _0x8fa06a=_0x1d2f52;if(this[_0x8fa06a(0x161)]===_0x8fa06a(0x15f)&&this[_0x8fa06a(0xba)]===_0x20ade6['data'][_0x8fa06a(0xf0)]){const _0x51137e=_['parseProtocolChangeset'](_0x20ade6[_0x8fa06a(0x121)])[_0x8fa06a(0x9e)]['reverse']()[_0x8fa06a(0xad)](_0x2faec6=>_0x2faec6['id']===C['InsertSheetMutation']['id']);if(_0x51137e){const _0x500fab=_0x51137e[_0x8fa06a(0x113)][_0x8fa06a(0xea)],_0x4ed11b=_0x51137e[_0x8fa06a(0x113)]['sheet']['id'];setTimeout(()=>{var _0xfb4941=_0x8fa06a;this['_commandService'][_0xfb4941(0xa8)](C[_0xfb4941(0x9c)]['id'],{'unitId':_0x500fab,'subUnitId':_0x4ed11b},{'fromCollab':!0x0});});}}}[_0x1d2f52(0xef)](){var _0x30df8c=_0x1d2f52;this[_0x30df8c(0x125)]['next'](_0x30df8c(0x13a));const _0x24c205=new Map(),_0x43d0cb=this['_commandDisposable']=new o[(_0x30df8c(0x150))]();_0x43d0cb[_0x30df8c(0x15e)](o[_0x30df8c(0xa0)](()=>{var _0x28c07c=_0x30df8c;_0x24c205[_0x28c07c(0xc0)](_0x3ff00f=>_0x3ff00f['complete']()),_0x24c205['clear']();})),_0x43d0cb[_0x30df8c(0x15e)](this['_commandService']['onCommandExecuted'](_0x3aca54=>{var _0x2fd247=_0x30df8c,_0x5d23a5;if(_0x3aca54[_0x2fd247(0x145)]!==o[_0x2fd247(0x10f)][_0x2fd247(0x91)]||!this['_liveShareService'][_0x2fd247(0x12f)](_0x3aca54['id']))return;const {id:_0x54b96e}=_0x3aca54;let _0x7974ba;_0x24c205[_0x2fd247(0x152)](_0x54b96e)?_0x7974ba=_0x24c205[_0x2fd247(0x128)](_0x54b96e):(_0x7974ba=new D[(_0x2fd247(0x114))](),_0x24c205[_0x2fd247(0x11f)](_0x54b96e,_0x7974ba),_0x7974ba[_0x2fd247(0x138)](b[_0x2fd247(0xee)]((_0x5d23a5=this[_0x2fd247(0x11a)][_0x2fd247(0x15c)](Z))!=null?_0x5d23a5:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2fd247(0x11c)](_0x3c16a5=>{var _0x16eb37=_0x2fd247;this[_0x16eb37(0x136)][_0x16eb37(0xc1)]({'eventID':_['CollaborationEvent'][_0x16eb37(0x153)],'data':{'unitID':this['_unitID'],'operations':{[_0x3c16a5['id']]:{'id':_0x3c16a5['id'],'params':JSON['stringify'](_0x3c16a5[_0x16eb37(0x113)])}}}},this[_0x16eb37(0x10d)]);})),_0x7974ba[_0x2fd247(0x159)](_0x3aca54);})),this[_0x30df8c(0xf5)][_0x30df8c(0xa1)](this[_0x30df8c(0x10d)])[_0x30df8c(0xc0)](_0x1d7c4f=>this['_collabSession'][_0x30df8c(0xc1)]({'eventID':_[_0x30df8c(0x123)][_0x30df8c(0x153)],'data':{'unitID':this[_0x30df8c(0x10d)],'operations':{[_0x1d7c4f['id']]:{'id':_0x1d7c4f['id'],'params':JSON[_0x30df8c(0x160)](_0x1d7c4f['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x242caa=_0x1d2f52,_0x114d6a;this[_0x242caa(0x125)][_0x242caa(0x159)]('idle'),(_0x114d6a=this[_0x242caa(0x15d)])==null||_0x114d6a[_0x242caa(0x13c)](),this[_0x242caa(0x15d)]=null;}['_startFollowing'](){var _0x140e83=_0x1d2f52,_0xf24aec;(_0xf24aec=this['_commandDisposable'])==null||_0xf24aec[_0x140e83(0x13c)](),this[_0x140e83(0x125)]['next'](_0x140e83(0x15f));}[_0x1d2f52(0x143)](){var _0x11aef3=_0x1d2f52,_0x1652b7;this[_0x11aef3(0x125)][_0x11aef3(0x159)](_0x11aef3(0xc9)),(_0x1652b7=this['_commandDisposable'])==null||_0x1652b7['dispose'](),this[_0x11aef3(0x15d)]=null;}[_0x1d2f52(0xf6)](){var _0x329d85=_0x1d2f52,_0x51cff7;this[_0x329d85(0x125)][_0x329d85(0x159)]('not-following'),(_0x51cff7=this['_commandDisposable'])==null||_0x51cff7[_0x329d85(0x13c)]();}['_handleOperation'](_0x411c82){var _0x3f12e6=_0x1d2f52;if([_0x3f12e6(0x13a),'not-following',_0x3f12e6(0x10c)][_0x3f12e6(0x14a)](this['_status'])||!_0x411c82[_0x3f12e6(0x121)][_0x3f12e6(0xe5)]||_0x411c82[_0x3f12e6(0x121)][_0x3f12e6(0xe5)]===this[_0x3f12e6(0x136)][_0x3f12e6(0xf4)]())return;this[_0x3f12e6(0x161)]==='idle'&&this[_0x3f12e6(0xd8)]();const _0x38db75=_0x411c82[_0x3f12e6(0x121)]['operations'];Object[_0x3f12e6(0xb3)](_0x38db75)[_0x3f12e6(0xc0)](_0x520fe1=>{var _0xb285e=_0x3f12e6;this['_commandService'][_0xb285e(0xa8)](_0x520fe1['id'],_0x520fe1[_0xb285e(0x113)]?JSON['parse'](_0x520fe1[_0xb285e(0x113)]):null,{'fromCollab':!0x0});});}[_0x1d2f52(0xe3)](){var _0x2e596b=_0x1d2f52,_0x233d00;this[_0x2e596b(0x125)][_0x2e596b(0x159)](_0x2e596b(0x10c)),(_0x233d00=this[_0x2e596b(0x15d)])==null||_0x233d00['dispose']();}[_0x1d2f52(0x149)](){var _0x3000fd=_0x1d2f52;this['_status$'][_0x3000fd(0x159)]('idle'),this['_fetchOperations']();}},exports[_0x1d2f52(0x164)]=R([S(0x2,o[_0x1d2f52(0xac)]),S(0x3,o[_0x1d2f52(0xc6)](O)),S(0x4,o[_0x1d2f52(0x12a)])],exports[_0x1d2f52(0x164)]);function A(){var _0x50db7b=_0x1d2f52;const _0x466845=p[_0x50db7b(0xb9)](exports[_0x50db7b(0x118)]),_0x125845=p['useDependency'](o[_0x50db7b(0x105)]),_0x13e6a5=p[_0x50db7b(0xfd)](()=>_0x125845['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x50db7b(0x9d)]),void 0x0,!0x1,[]),[_0x42646c,_0x4e8590]=f['useState'](null),[_0x1c5e39,_0x183641]=f['useState'](h['IDLE']),_0x4ca55c=f[_0x50db7b(0x163)](null);return f[_0x50db7b(0x11b)](()=>(_0x13e6a5&&_0x466845[_0x50db7b(0x14d)](_0x13e6a5[_0x50db7b(0x137)]())[_0x50db7b(0xb7)](_0x513d2f=>{var _0x11db84=_0x50db7b;_0x4e8590(_0x513d2f),_0x4ca55c[_0x11db84(0x112)]=_0x513d2f['status$'][_0x11db84(0x11c)](_0x235bcb=>{_0x183641(_0x235bcb);});}),()=>{var _0x15f5b9=_0x50db7b,_0x35a7c7;(_0x35a7c7=_0x4ca55c[_0x15f5b9(0x112)])==null||_0x35a7c7['unsubscribe'](),_0x4ca55c[_0x15f5b9(0x112)]=null;}),[_0x13e6a5,_0x466845]),_0x42646c?l[_0x50db7b(0xcf)](g[_0x50db7b(0x99)],{'align':_0x50db7b(0x115),'disabled':_0x1c5e39===h[_0x50db7b(0xde)],'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[_0x50db7b(0xcf)](K,{'status':_0x1c5e39,'coordinator':_0x42646c}),'children':l[_0x50db7b(0xcf)]('button',{'className':g[_0x50db7b(0xd4)](_0x50db7b(0xe2),{'univer-cursor-not-allowed':_0x1c5e39===h[_0x50db7b(0xde)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1c5e39!==h[_0x50db7b(0xde)]}),'type':'button','children':l[_0x50db7b(0xcf)](P,{'className':'univer-size-4'})})}):null;}function K(_0x5644bd){var _0x4e3977=_0x1d2f52;const {status:_0x2c06a3,coordinator:_0x42f23e}=_0x5644bd;switch(_0x2c06a3){case h[_0x4e3977(0xce)]:return l[_0x4e3977(0xcf)](z,{'coordinator':_0x42f23e});case h[_0x4e3977(0xaf)]:return l[_0x4e3977(0xcf)](Q,{'coordinator':_0x42f23e});case h['NOT_FOLLOWING']:return l[_0x4e3977(0xcf)](X,{'coordinator':_0x42f23e});case h[_0x4e3977(0xde)]:return l[_0x4e3977(0xcf)](te,{});case h[_0x4e3977(0x14e)]:return l['jsx'](ee,{'coordinator':_0x42f23e});default:return null;}}function z(_0x40a074){var _0x2ea0b6=_0x1d2f52;const {coordinator:_0x31ffe3}=_0x40a074;return l[_0x2ea0b6(0x103)](l[_0x2ea0b6(0x111)],{'children':[l[_0x2ea0b6(0xcf)](_0x2ea0b6(0xfe),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2ea0b6(0xd7)}),l['jsx'](g[_0x2ea0b6(0x140)],{'onClick':()=>_0x31ffe3[_0x2ea0b6(0xa3)](),'children':_0x2ea0b6(0x98)})]});}function Q(_0x23aafc){var _0x1a04cc=_0x1d2f52;const {coordinator:_0x3202b8}=_0x23aafc;return l[_0x1a04cc(0x103)](l['Fragment'],{'children':[l[_0x1a04cc(0xcf)](_0x1a04cc(0xfe),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x1a04cc(0xcf)](g[_0x1a04cc(0x140)],{'onClick':()=>_0x3202b8['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x56d55a){var _0x31b98b=_0x1d2f52;const {coordinator:_0x4b5a81}=_0x56d55a;return l[_0x31b98b(0x103)](l['Fragment'],{'children':[l['jsx'](_0x31b98b(0xfe),{'className':_0x31b98b(0x132),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x31b98b(0xcf)](g[_0x31b98b(0x140)],{'variant':_0x31b98b(0xae),'onClick':()=>_0x4b5a81['startFollowing'](),'children':_0x31b98b(0x139)})]});}function ee(_0x1ccae1){var _0x13197d=_0x1d2f52;const {coordinator:_0x3f96f0}=_0x1ccae1;return l[_0x13197d(0x103)](l[_0x13197d(0x111)],{'children':[l[_0x13197d(0xcf)]('div',{'className':_0x13197d(0x132),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x13197d(0xcf)](g[_0x13197d(0x140)],{'variant':_0x13197d(0x155),'onClick':()=>_0x3f96f0[_0x13197d(0xfb)](),'children':'Stop\x20presenting'})]});}function te(){var _0x21aec2=_0x1d2f52;return l[_0x21aec2(0xcf)](l[_0x21aec2(0x111)],{'children':_0x21aec2(0xa4)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x55b440,_0xaf7d49,_0x892c2b,_0x51996f)=>{var _0x3d0dcb=_0x1d2f52;for(var _0x43efd1=_0x51996f>0x1?void 0x0:_0x51996f?ie(_0xaf7d49,_0x892c2b):_0xaf7d49,_0x35fbbe=_0x55b440[_0x3d0dcb(0x167)]-0x1,_0x2e138c;_0x35fbbe>=0x0;_0x35fbbe--)(_0x2e138c=_0x55b440[_0x35fbbe])&&(_0x43efd1=_0x2e138c(_0x43efd1)||_0x43efd1);return _0x43efd1;},L=(_0x39a298,_0x1433f1)=>(_0x2dec35,_0x267ba7)=>_0x1433f1(_0x2dec35,_0x267ba7,_0x39a298);exports[_0x1d2f52(0xbb)]=class extends o[_0x1d2f52(0xb6)]{constructor(_0x1405a3,_0x3c2948){var _0x3444db=_0x1d2f52;super(),this[_0x3444db(0x90)]=_0x1405a3,this[_0x3444db(0x117)]=_0x3c2948,this['_mountLiveShare']();}[_0x1d2f52(0xf1)](){var _0x1a19fd=_0x1d2f52;this[_0x1a19fd(0x12e)](this[_0x1a19fd(0x117)][_0x1a19fd(0xe4)](p['BuiltInUIPart'][_0x1a19fd(0x104)],()=>p['connectInjector'](A,this['_injector'])));}},exports['DesktopLiveShareController']=ne([L(0x0,o['Inject'](o[_0x1d2f52(0xc7)])),L(0x1,p[_0x1d2f52(0x97)])],exports[_0x1d2f52(0xbb)]);var re=Object[_0x1d2f52(0xda)],se=Object[_0x1d2f52(0xc4)],oe=(_0x1101bc,_0x4c6168,_0xcc783b)=>_0x4c6168 in _0x1101bc?re(_0x1101bc,_0x4c6168,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcc783b}):_0x1101bc[_0x4c6168]=_0xcc783b,ae=(_0x2dc810,_0x1877df,_0x5e598c,_0x5d5c1a)=>{var _0x1bd4aa=_0x1d2f52;for(var _0x5dfaf0=_0x5d5c1a>0x1?void 0x0:_0x5d5c1a?se(_0x1877df,_0x5e598c):_0x1877df,_0x2a5084=_0x2dc810[_0x1bd4aa(0x167)]-0x1,_0x109436;_0x2a5084>=0x0;_0x2a5084--)(_0x109436=_0x2dc810[_0x2a5084])&&(_0x5dfaf0=_0x109436(_0x5dfaf0)||_0x5dfaf0);return _0x5dfaf0;},N=(_0x43bcea,_0x16080d)=>(_0x574fc8,_0x12bda9)=>_0x16080d(_0x574fc8,_0x12bda9,_0x43bcea),T=(_0xddf50e,_0xac7e28,_0x247045)=>oe(_0xddf50e,typeof _0xac7e28!=_0x1d2f52(0xaa)?_0xac7e28+'':_0xac7e28,_0x247045);const le=_0x1d2f52(0xa9);exports[_0x1d2f52(0xcb)]=class extends o[_0x1d2f52(0x156)]{constructor(_0x63db39=x,_0x7f6965,_0x4f5028){var _0x267ab0=_0x1d2f52;super(),this['_config']=_0x63db39,this[_0x267ab0(0x90)]=_0x7f6965,this[_0x267ab0(0x11a)]=_0x4f5028;const {..._0x225539}=o[_0x267ab0(0xfa)]({},x,this['_config']);this['_configService']['setConfig']($,_0x225539);}[_0x1d2f52(0xd0)](){var _0x2c2778=_0x1d2f52;o[_0x2c2778(0x9a)](this['_injector'],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x2c2778(0xe9)])),o[_0x2c2778(0x131)](this[_0x2c2778(0x90)],[[E]]);}[_0x1d2f52(0x141)](){var _0x54ec02=_0x1d2f52;o[_0x54ec02(0x131)](this['_injector'],[[exports[_0x54ec02(0xbb)]]]);}},T(exports[_0x1d2f52(0xcb)],'type',o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x1d2f52(0xcb)],_0x1d2f52(0xbe),le),exports[_0x1d2f52(0xcb)]=ae([o[_0x1d2f52(0x142)](m[_0x1d2f52(0x10b)]),N(0x1,o[_0x1d2f52(0xc6)](o[_0x1d2f52(0xc7)])),N(0x2,o[_0x1d2f52(0xac)])],exports['UniverLiveSharePlugin']),exports[_0x1d2f52(0x11e)]=A,exports[_0x1d2f52(0x11d)]=O,exports['LiveShareStatus']=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 _0x3e752e=_0x2e3f;(function(_0x50d32d,_0x1b94c3){var _0x583119=_0x2e3f,_0x23d0f8=_0x50d32d();while(!![]){try{var _0x1209f2=-parseInt(_0x583119(0x20c))/0x1*(parseInt(_0x583119(0x217))/0x2)+-parseInt(_0x583119(0x20b))/0x3*(-parseInt(_0x583119(0x21b))/0x4)+parseInt(_0x583119(0x20f))/0x5*(-parseInt(_0x583119(0x1ed))/0x6)+-parseInt(_0x583119(0x1cc))/0x7*(parseInt(_0x583119(0x1a1))/0x8)+parseInt(_0x583119(0x1fe))/0x9+parseInt(_0x583119(0x1f2))/0xa+-parseInt(_0x583119(0x232))/0xb*(parseInt(_0x583119(0x214))/0xc);if(_0x1209f2===_0x1b94c3)break;else _0x23d0f8['push'](_0x23d0f8['shift']());}catch(_0xecc715){_0x23d0f8['push'](_0x23d0f8['shift']());}}}(_0xe47c,0x3ce6f));var q=Object[_0x3e752e(0x1ce)],z=(_0x4fa555,_0x5404e5,_0x15ba82)=>_0x5404e5 in _0x4fa555?q(_0x4fa555,_0x5404e5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15ba82}):_0x4fa555[_0x5404e5]=_0x15ba82,d=(_0xc3dbf3,_0x1aa9f9,_0xecaf57)=>z(_0xc3dbf3,typeof _0x1aa9f9!='symbol'?_0x1aa9f9+'':_0x1aa9f9,_0xecaf57);import{CollaborationSessionService as _0x338c89,SessionStatus as _0x5057e5,UniverCollaborationClientPlugin as _0x5eaf93}from'@univerjs-pro/collaboration-client';import{Disposable as _0x299780,toDisposable as _0x5ee1c6,Inject as _0x5aaba4,IUniverInstanceService as _0x3a7cf0,Injector as _0x2b5b66,IConfigService as _0x3f00a0,ICommandService as _0x5566b5,RxDisposable as _0x2c561e,UniverInstanceType as _0x5ebb13,DisposableCollection as _0x2c1d59,CommandType as _0x2d7329,DependentOn as _0x4f9c72,Plugin as _0x232e08,merge as _0x5d9c96,registerDependencies as _0x344947,mergeOverrideWithDependencies as _0x3d33ef,touchDependencies as _0x207667}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1e944e,InsertSheetMutation as _0x54fe69}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xe935a,SetScrollOperation as _0x2776be}from'@univerjs/sheets-ui';import{useDependency as _0x5b0c84,useObservable as _0x4398c6,IUIPartsService as _0x57d7af,BuiltInUIPart as _0x2a8f8c,connectInjector as _0x5bd64b}from'@univerjs/ui';import{jsx as _0x2dc537,jsxs as _0x391b92,Fragment as _0x51009b}from'react/jsx-runtime';import{Dropdown as _0x5431f6,clsx as _0x4676bf,Button as _0x472f5f}from'@univerjs/design';import{forwardRef as _0x4bb84f,useRef as _0x5d5663,createElement as _0x35f4bd,useState as _0x26e333,useEffect as _0x158cd3}from'react';import{CollaborationEvent as _0x5b7819,parseProtocolChangeset as _0x19bde9}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5609fb,Subject as _0x3b4350}from'rxjs';import{takeUntil as _0x1678e7,throttleTime as _0x29540b}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x299780{constructor(){var _0x1787cc=_0x3e752e;super(...arguments),d(this,_0x1787cc(0x1df),new Set()),d(this,'_reporters',new Set());}[_0x3e752e(0x1bf)](_0x3da4cf){var _0x5c178c=_0x3e752e;return this[_0x5c178c(0x1df)][_0x5c178c(0x1b1)](_0x3da4cf),_0x5ee1c6(()=>this[_0x5c178c(0x1df)][_0x5c178c(0x1ba)](_0x3da4cf));}[_0x3e752e(0x229)](_0x3ddccb){var _0xb85231=_0x3e752e;return this[_0xb85231(0x199)]['add'](_0x3ddccb),_0x5ee1c6(()=>this[_0xb85231(0x199)][_0xb85231(0x1ba)](_0x3ddccb));}['shouldShareOperation'](_0x18fa83){var _0x522914=_0x3e752e;return this[_0x522914(0x1df)]['has'](_0x18fa83);}[_0x3e752e(0x191)](_0x1314a5){var _0x3f01e9=_0x3e752e;return Array['from'](this['_reporters'])[_0x3f01e9(0x22c)](_0x382fd7=>_0x382fd7(_0x1314a5));}}function _0xe47c(){var _0x249ff3=['className','getMemberID','mask','none','HEADER_MENU','sheet','tryStartPresenting','pluginName','stringify','IDLE','UniverIcon','698631paOjju','27815YNffdR','dispose','has','7235cIVjag','div','_uiPartsService','entries','extend','5297052JljRpk','evenodd','OFFLINE','6NermwF','LiveShareIcon','getValue','parse','4Zmeybl','_entities','_handleNewChangeSets','You\x27re\x20presenting\x20the\x20document','UNIVER_LIVE_SHARE_PLUGIN','url(#$1','_status','getConfig','getTypeOfUnitAdded$','tag','getOwnPropertyDescriptor','_injector','colorChannel1','propertyIsEnumerable','registerInitialStateReporter','_startFollowing','live-share-icon','map','LIVESHARE_REQUEST_HOST','_stopPresenting','_handleTerminate','You\x27are\x20offline.','default','11kxbVUb','executeCommand','button','idle','_mountLiveShare','forEach','call','random','_init','prototype','symbol','Present\x20this\x20document','attrs','xlink:href','getInitialStates','subscribe','asObservable','_univerInstanceService','svg','hasOwnProperty','function','getUnitId','_reporters','set','Stop\x20following','pipe','offline','OPERATION','disposeWithMe','data','16ZbQSRp','Start','getTypeOfUnitDisposed$','defIds','operations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','get','_status$','not-following','univerjs-icon\x20univerjs-icon-','_collabSession','complete','getOwnPropertySymbols','shouldShareOperation','_presenter','replace','add','_configService','onStarting','concat','unsubscribe','end','then','UNIVER_UNKNOWN','find','delete','following','unitId','_handleOnline','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','NEW_CHANGESETS','text','_unitID','path','LIVESHARE_NEW_HOST','assign','Stop\x20presenting','stopFollowing','NOT_FOLLOWING','_fetchOperations','next','init','3269HrunuS','_beIdle','defineProperty','startFollowing','LIVESHARE_FETCH_OPERATIONS','setConfig','_commandDisposable','send','univer-size-4','_liveShareService','_startLiveShareCoordinator','includes','sessionStatus$','children','_stopFollowing','You\x27re\x20following\x20the\x20presenter','length','_startPresenting','onCommandExecuted','_sharedOperations','apply','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','string','idSuffix','_collabSessionService','_handleNewHost','createInstance','presenting','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_OPERATION','displayName','FOLLOWING','300BkaRtJ','currentColor','getLiveShareCoordinator','_commandService','trim','3182900zODVTQ','current','use','reverse','presenter','params','dispose$','_config','onRendered','fill','LIVESHARE_TERMINATE','status$','2667942EIZYEH','icon'];_0xe47c=function(){return _0x249ff3;};return _0xe47c();}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x24e56e,_0x38d3c2,_0x30753e,_0x531d57)=>{var _0x5dc400=_0x3e752e;for(var _0x5425ae=_0x531d57>0x1?void 0x0:_0x531d57?Ee(_0x38d3c2,_0x30753e):_0x38d3c2,_0x286649=_0x24e56e[_0x5dc400(0x1dc)]-0x1,_0x2e515c;_0x286649>=0x0;_0x286649--)(_0x2e515c=_0x24e56e[_0x286649])&&(_0x5425ae=_0x2e515c(_0x5425ae)||_0x5425ae);return _0x5425ae;},Ne=(_0x487562,_0x3344a7)=>(_0x5c9edf,_0x4694d0)=>_0x3344a7(_0x5c9edf,_0x4694d0,_0x487562);let m=class extends _0x299780{constructor(_0x22a074){var _0x606900=_0x3e752e;super(),this[_0x606900(0x1d5)]=_0x22a074,this['_init']();}[_0x3e752e(0x18b)](){var _0x1afc8b=_0x3e752e;[_0xe935a['id'],_0x2776be['id'],_0x1e944e['id']][_0x1afc8b(0x237)](_0x588ada=>{var _0xe3725a=_0x1afc8b;this['disposeWithMe'](this[_0xe3725a(0x1d5)][_0xe3725a(0x1bf)](_0x588ada));});}};m=we([Ne(0x0,_0x5aaba4(L))],m);var c=function(){var _0x30e425=_0x3e752e;return c=Object[_0x30e425(0x1c5)]||function(_0x89ba3e){var _0xb6086a=_0x30e425;for(var _0x24ca4b,_0x137bbf=0x1,_0x4ac616=arguments[_0xb6086a(0x1dc)];_0x137bbf<_0x4ac616;_0x137bbf++){_0x24ca4b=arguments[_0x137bbf];for(var _0x594605 in _0x24ca4b)Object[_0xb6086a(0x18c)][_0xb6086a(0x196)][_0xb6086a(0x189)](_0x24ca4b,_0x594605)&&(_0x89ba3e[_0x594605]=_0x24ca4b[_0x594605]);}return _0x89ba3e;},c[_0x30e425(0x1e0)](this,arguments);},Ce=function(_0xedc5d2,_0x50ad8c){var _0x3d85e3=_0x3e752e,_0x5256c2={};for(var _0x59e653 in _0xedc5d2)Object[_0x3d85e3(0x18c)]['hasOwnProperty'][_0x3d85e3(0x189)](_0xedc5d2,_0x59e653)&&_0x50ad8c['indexOf'](_0x59e653)<0x0&&(_0x5256c2[_0x59e653]=_0xedc5d2[_0x59e653]);if(_0xedc5d2!=null&&typeof Object['getOwnPropertySymbols']==_0x3d85e3(0x197)){for(var _0x7eefc2=0x0,_0x59e653=Object[_0x3d85e3(0x1ad)](_0xedc5d2);_0x7eefc2<_0x59e653[_0x3d85e3(0x1dc)];_0x7eefc2++)_0x50ad8c['indexOf'](_0x59e653[_0x7eefc2])<0x0&&Object[_0x3d85e3(0x18c)][_0x3d85e3(0x228)][_0x3d85e3(0x189)](_0xedc5d2,_0x59e653[_0x7eefc2])&&(_0x5256c2[_0x59e653[_0x7eefc2]]=_0xedc5d2[_0x59e653[_0x7eefc2]]);}return _0x5256c2;},W=_0x4bb84f(function(_0x3b725c,_0x4960b7){var _0x9e7a47=_0x3e752e,_0x210d73=_0x3b725c[_0x9e7a47(0x1ff)],_0x53fc8f=_0x3b725c['id'],_0x3cc1e6=_0x3b725c[_0x9e7a47(0x200)],_0x5ea49f=_0x3b725c[_0x9e7a47(0x213)],_0x3a55d4=Ce(_0x3b725c,[_0x9e7a47(0x1ff),'id','className',_0x9e7a47(0x213)]),_0x409f8b=_0x9e7a47(0x1aa)[_0x9e7a47(0x1b4)](_0x53fc8f,'\x20')['concat'](_0x3cc1e6||'')[_0x9e7a47(0x1f1)](),_0x55563c=_0x5d5663('_'[_0x9e7a47(0x1b4)](Le()));return Y(_0x210d73,''[_0x9e7a47(0x1b4)](_0x53fc8f),{'defIds':_0x210d73[_0x9e7a47(0x1a4)],'idSuffix':_0x55563c[_0x9e7a47(0x1f3)]},c({'ref':_0x4960b7,'className':_0x409f8b},_0x3a55d4),_0x5ea49f);});function Y(_0x1ee0e5,_0x6c8a1b,_0x3de701,_0x46c3b3,_0x3c191c){var _0x28227a=_0x3e752e;return _0x35f4bd(_0x1ee0e5['tag'],c(c({'key':_0x6c8a1b},De(_0x1ee0e5,_0x3de701,_0x3c191c)),_0x46c3b3),(xe(_0x1ee0e5,_0x3de701)[_0x28227a(0x1d9)]||[])['map'](function(_0x23c481,_0x5cd6e1){var _0x2e2752=_0x28227a;return Y(_0x23c481,''[_0x2e2752(0x1b4)](_0x6c8a1b,'-')[_0x2e2752(0x1b4)](_0x1ee0e5[_0x2e2752(0x224)],'-')[_0x2e2752(0x1b4)](_0x5cd6e1),_0x3de701,void 0x0,_0x3c191c);}));}function De(_0x5a21bb,_0x3d27d8,_0xc1851c){var _0xa8ae95=_0x3e752e,_0x6fbdc6=c({},_0x5a21bb[_0xa8ae95(0x18f)]);_0xc1851c!=null&&_0xc1851c['colorChannel1']&&_0x6fbdc6[_0xa8ae95(0x1fb)]===_0xa8ae95(0x227)&&(_0x6fbdc6[_0xa8ae95(0x1fb)]=_0xc1851c[_0xa8ae95(0x227)]),_0x5a21bb['tag']===_0xa8ae95(0x202)&&_0x6fbdc6['id']&&(_0x6fbdc6['id']=_0x6fbdc6['id']+_0x3d27d8['idSuffix']),Object['entries'](_0x6fbdc6)[_0xa8ae95(0x237)](function(_0x37693c){var _0x20cdca=_0xa8ae95,_0x5c603b=_0x37693c[0x0],_0x52a824=_0x37693c[0x1];_0x5c603b===_0x20cdca(0x202)&&typeof _0x52a824==_0x20cdca(0x1e2)&&(_0x6fbdc6[_0x5c603b]=_0x52a824[_0x20cdca(0x1b0)](/url\(#(.*)\)/,_0x20cdca(0x220)[_0x20cdca(0x1b4)](_0x3d27d8['idSuffix'],')')));});var _0x1c0094=_0x3d27d8[_0xa8ae95(0x1a4)];return!_0x1c0094||_0x1c0094[_0xa8ae95(0x1dc)]===0x0||(_0x5a21bb[_0xa8ae95(0x224)]===_0xa8ae95(0x1f4)&&_0x6fbdc6[_0xa8ae95(0x190)]&&(_0x6fbdc6[_0xa8ae95(0x190)]=_0x6fbdc6[_0xa8ae95(0x190)]+_0x3d27d8[_0xa8ae95(0x1e3)]),Object[_0xa8ae95(0x212)](_0x6fbdc6)[_0xa8ae95(0x237)](function(_0x1b4ee9){var _0x516762=_0xa8ae95,_0x4c1cf9=_0x1b4ee9[0x0],_0x2db3f6=_0x1b4ee9[0x1];typeof _0x2db3f6==_0x516762(0x1e2)&&(_0x6fbdc6[_0x4c1cf9]=_0x2db3f6[_0x516762(0x1b0)](/url\(#(.*)\)/,_0x516762(0x220)['concat'](_0x3d27d8[_0x516762(0x1e3)],')')));})),_0x6fbdc6;}function xe(_0x3c767a,_0x4594e8){var _0x4e0cfc=_0x3e752e,_0x8bd158,_0x545ed3=_0x4594e8[_0x4e0cfc(0x1a4)];return!_0x545ed3||_0x545ed3[_0x4e0cfc(0x1dc)]===0x0?_0x3c767a:_0x3c767a[_0x4e0cfc(0x224)]==='defs'&&(!((_0x8bd158=_0x3c767a[_0x4e0cfc(0x1d9)])===null||_0x8bd158===void 0x0)&&_0x8bd158[_0x4e0cfc(0x1dc)])?c(c({},_0x3c767a),{'children':_0x3c767a[_0x4e0cfc(0x1d9)][_0x4e0cfc(0x22c)](function(_0x260387){var _0x429e03=_0x4e0cfc;return typeof _0x260387[_0x429e03(0x18f)]['id']=='string'&&_0x545ed3&&_0x545ed3[_0x429e03(0x1d7)](_0x260387[_0x429e03(0x18f)]['id'])?c(c({},_0x260387),{'attrs':c(c({},_0x260387['attrs']),{'id':_0x260387[_0x429e03(0x18f)]['id']+_0x4594e8[_0x429e03(0x1e3)]})}):_0x260387;})}):_0x3c767a;}function Le(){var _0x432eac=_0x3e752e;return Math[_0x432eac(0x18a)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x3e752e(0x1eb)]=_0x3e752e(0x20a);var ye={'tag':_0x3e752e(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3e752e(0x203),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x3e752e(0x1c3),'attrs':{'fill':_0x3e752e(0x1ee),'d':_0x3e752e(0x1e1)}},{'tag':_0x3e752e(0x1c3),'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':_0x3e752e(0x215),'clipRule':_0x3e752e(0x215)}}]},B=_0x4bb84f(function(_0x457a4c,_0x389d02){var _0x3b41b4=_0x3e752e;return _0x35f4bd(W,Object[_0x3b41b4(0x1c5)]({},_0x457a4c,{'id':_0x3b41b4(0x22b),'ref':_0x389d02,'icon':ye}));});B['displayName']=_0x3e752e(0x218);function _0x2e3f(_0x2c4c27,_0x1bfbdf){var _0xe47c19=_0xe47c();return _0x2e3f=function(_0x2e3feb,_0x27cf76){_0x2e3feb=_0x2e3feb-0x189;var _0x188ae1=_0xe47c19[_0x2e3feb];return _0x188ae1;},_0x2e3f(_0x2c4c27,_0x1bfbdf);}var Re=Object[_0x3e752e(0x225)],Z=(_0x60e983,_0x189748,_0x10aaf7,_0x336c91)=>{var _0x308c5a=_0x3e752e;for(var _0x2662ac=_0x336c91>0x1?void 0x0:_0x336c91?Re(_0x189748,_0x10aaf7):_0x189748,_0x5d5904=_0x60e983[_0x308c5a(0x1dc)]-0x1,_0x3797db;_0x5d5904>=0x0;_0x5d5904--)(_0x3797db=_0x60e983[_0x5d5904])&&(_0x2662ac=_0x3797db(_0x2662ac)||_0x2662ac);return _0x2662ac;},f=(_0x4c71ad,_0x3d5375)=>(_0x911e33,_0x3c032c)=>_0x3d5375(_0x911e33,_0x3c032c,_0x4c71ad);let I=class extends _0x2c561e{constructor(_0x2ae42a,_0x516bc9,_0x21e45e){var _0x28c22a=_0x3e752e;super(),d(this,'_entities',new Map()),(this[_0x28c22a(0x194)]=_0x2ae42a,this[_0x28c22a(0x226)]=_0x516bc9,this[_0x28c22a(0x1e4)]=_0x21e45e,this[_0x28c22a(0x18b)]());}async['getLiveShareCoordinator'](_0xf13422){var _0x25ccc3=_0x3e752e;return this[_0x25ccc3(0x21c)][_0x25ccc3(0x20e)](_0xf13422)||await this[_0x25ccc3(0x1d6)](_0xf13422),this[_0x25ccc3(0x21c)]['get'](_0xf13422);}['_init'](){var _0x5b716a=_0x3e752e;this[_0x5b716a(0x194)][_0x5b716a(0x223)](_0x5ebb13['UNIVER_SHEET'])[_0x5b716a(0x19c)](_0x1678e7(this[_0x5b716a(0x1f8)]))[_0x5b716a(0x192)](async _0x39209e=>{var _0x409767=_0x5b716a;const _0x449a19=_0x39209e[_0x409767(0x198)]();this[_0x409767(0x21c)][_0x409767(0x20e)](_0x449a19)||this[_0x409767(0x1d6)](_0x449a19);}),this[_0x5b716a(0x194)][_0x5b716a(0x1a3)](_0x5ebb13['UNIVER_SHEET'])[_0x5b716a(0x19c)](_0x1678e7(this[_0x5b716a(0x1f8)]))[_0x5b716a(0x192)](_0x4b9cba=>{var _0x44d75d=_0x5b716a;const _0x451c5e=_0x4b9cba[_0x44d75d(0x198)](),_0x1057f0=this[_0x44d75d(0x21c)][_0x44d75d(0x1a7)](_0x451c5e);_0x1057f0==null||_0x1057f0[_0x44d75d(0x20d)]();});}async[_0x3e752e(0x1d6)](_0x51dd45){var _0x23484c=_0x3e752e;const _0x36b477=await this[_0x23484c(0x1e4)]['requireSession'](_0x51dd45),_0x17b6b8=this['_injector'][_0x23484c(0x1e6)](C,_0x51dd45,_0x36b477);return _0x17b6b8[_0x23484c(0x1cb)](),this[_0x23484c(0x21c)][_0x23484c(0x19a)](_0x51dd45,_0x17b6b8),_0x17b6b8;}};I=Z([f(0x0,_0x3a7cf0),f(0x1,_0x5aaba4(_0x2b5b66)),f(0x2,_0x5aaba4(_0x338c89))],I);var h=(_0x20fb0e=>(_0x20fb0e[_0x3e752e(0x216)]=_0x3e752e(0x19d),_0x20fb0e[_0x3e752e(0x209)]=_0x3e752e(0x235),_0x20fb0e[_0x3e752e(0x1ec)]='following',_0x20fb0e[_0x3e752e(0x1c8)]=_0x3e752e(0x1a9),_0x20fb0e[_0x3e752e(0x1e8)]='presenting',_0x20fb0e))(h||{});const Pe=_0x3e752e(0x1be),Ae=0xc8;let C=class extends _0x2c561e{constructor(_0x514373,_0xf24a4,_0x385d9e,_0x589022,_0x2a0bd0){var _0x5a1c93=_0x3e752e;super(),d(this,_0x5a1c93(0x1a8),new _0x5609fb(_0x5a1c93(0x235))),d(this,_0x5a1c93(0x1fd),this[_0x5a1c93(0x1a8)][_0x5a1c93(0x193)]()),d(this,_0x5a1c93(0x18b),!0x1),d(this,_0x5a1c93(0x1d2),null),d(this,_0x5a1c93(0x1af),null),(this[_0x5a1c93(0x1c2)]=_0x514373,this[_0x5a1c93(0x1ab)]=_0xf24a4,this[_0x5a1c93(0x1b2)]=_0x385d9e,this[_0x5a1c93(0x1d5)]=_0x589022,this[_0x5a1c93(0x1f0)]=_0x2a0bd0);}get[_0x3e752e(0x221)](){var _0x5505b9=_0x3e752e;return this[_0x5505b9(0x1a8)][_0x5505b9(0x219)]();}['dispose'](){var _0xaa3161=_0x3e752e,_0x2e5cec;(_0x2e5cec=this[_0xaa3161(0x1d2)])==null||_0x2e5cec[_0xaa3161(0x20d)](),this[_0xaa3161(0x1a8)]['next'](_0xaa3161(0x235)),this['_status$'][_0xaa3161(0x1ac)]();}[_0x3e752e(0x1cb)](){var _0x13c8d8=_0x3e752e;this[_0x13c8d8(0x18b)]||(this['_init']=!0x0,this[_0x13c8d8(0x1ab)][_0x13c8d8(0x1d8)]['pipe'](_0x1678e7(this[_0x13c8d8(0x1f8)]))[_0x13c8d8(0x192)](_0x11db81=>{var _0x3650cd=_0x13c8d8;switch(_0x11db81){case _0x5057e5[_0x3650cd(0x216)]:this['_handleOffline']();break;case _0x5057e5['ONLINE']:this[_0x3650cd(0x1bd)]();break;}}),this[_0x13c8d8(0x1ab)]['event$']['pipe'](_0x1678e7(this['dispose$']))['subscribe'](_0xb80547=>{var _0x1499fe=_0x13c8d8;const {eventID:_0x4c7465}=_0xb80547;switch(_0x4c7465){case _0x5b7819[_0x1499fe(0x1c4)]:this[_0x1499fe(0x1e5)](_0xb80547);break;case _0x5b7819[_0x1499fe(0x1ea)]:this['_handleOperation'](_0xb80547);break;case _0x5b7819[_0x1499fe(0x1fc)]:this['_handleTerminate']();break;case _0x5b7819[_0x1499fe(0x1c0)]:this[_0x1499fe(0x21d)](_0xb80547);break;}}));}[_0x3e752e(0x206)](){var _0xe0243e=_0x3e752e;this[_0xe0243e(0x1ab)][_0xe0243e(0x1d3)]({'eventID':_0x5b7819[_0xe0243e(0x22d)],'data':{'unitID':this['_unitID'],'userID':this[_0xe0243e(0x1ab)][_0xe0243e(0x201)]()}},this[_0xe0243e(0x1c2)]);}['stopPresenting'](){var _0x700ec=_0x3e752e;this[_0x700ec(0x221)]===_0x700ec(0x1e7)&&(this['_status$'][_0x700ec(0x1ca)](_0x700ec(0x235)),this[_0x700ec(0x1ab)][_0x700ec(0x1d3)]({'eventID':_0x5b7819[_0x700ec(0x1fc)],'data':{'unitID':this['_unitID']}},this[_0x700ec(0x1c2)]));}[_0x3e752e(0x1cf)](){var _0x335b18=_0x3e752e;this[_0x335b18(0x221)]===_0x335b18(0x1a9)&&(this['_status$'][_0x335b18(0x1ca)](_0x335b18(0x1bb)),this[_0x335b18(0x22a)]());}[_0x3e752e(0x1c7)](){var _0x400e10=_0x3e752e;this[_0x400e10(0x221)]==='following'&&this['_stopFollowing']();}[_0x3e752e(0x1e5)](_0x1ff7ae){var _0x2df2ad=_0x3e752e;const {presenter:_0x4912c0}=_0x1ff7ae[_0x2df2ad(0x1a0)],_0x21c6f9=this[_0x2df2ad(0x1ab)][_0x2df2ad(0x201)]();this['_presenter']=_0x4912c0,_0x4912c0===_0x21c6f9?(this[_0x2df2ad(0x1da)](),this[_0x2df2ad(0x1dd)]()):this[_0x2df2ad(0x221)]!==_0x2df2ad(0x1a9)&&(this[_0x2df2ad(0x22e)](),this[_0x2df2ad(0x22a)]());}[_0x3e752e(0x1c9)](){var _0x2cbc18=_0x3e752e;const _0x5be8da={'eventID':_0x5b7819[_0x2cbc18(0x1d0)]};this[_0x2cbc18(0x1ab)][_0x2cbc18(0x1d3)](_0x5be8da,this[_0x2cbc18(0x1c2)]);}[_0x3e752e(0x22f)](){var _0x27b559=_0x3e752e;this['_presenter']=null,this[_0x27b559(0x221)]!==_0x27b559(0x1e7)&&this[_0x27b559(0x1cd)]();}[_0x3e752e(0x21d)](_0x5ab676){var _0x1151f7=_0x3e752e;if(this[_0x1151f7(0x221)]===_0x1151f7(0x1bb)&&this[_0x1151f7(0x1af)]===_0x5ab676[_0x1151f7(0x1a0)]['memberID']){const _0x3779af=_0x19bde9(_0x5ab676[_0x1151f7(0x1a0)])['mutations'][_0x1151f7(0x1f5)]()[_0x1151f7(0x1b9)](_0xd5897f=>_0xd5897f['id']===_0x54fe69['id']);if(_0x3779af){const _0xb794c2=_0x3779af[_0x1151f7(0x1f7)][_0x1151f7(0x1bc)],_0x21cb7c=_0x3779af['params'][_0x1151f7(0x205)]['id'];setTimeout(()=>{var _0x30c364=_0x1151f7;this['_commandService'][_0x30c364(0x233)](_0x1e944e['id'],{'unitId':_0xb794c2,'subUnitId':_0x21cb7c},{'fromCollab':!0x0});});}}}[_0x3e752e(0x1dd)](){var _0x2b9c64=_0x3e752e;this[_0x2b9c64(0x1a8)][_0x2b9c64(0x1ca)](_0x2b9c64(0x1e7));const _0x48c25d=new Map(),_0x5d9b24=this[_0x2b9c64(0x1d2)]=new _0x2c1d59();_0x5d9b24[_0x2b9c64(0x1b1)](_0x5ee1c6(()=>{var _0x411c83=_0x2b9c64;_0x48c25d['forEach'](_0x191025=>_0x191025[_0x411c83(0x1ac)]()),_0x48c25d['clear']();})),_0x5d9b24[_0x2b9c64(0x1b1)](this[_0x2b9c64(0x1f0)][_0x2b9c64(0x1de)](_0x43c7fc=>{var _0x18d3bd=_0x2b9c64,_0x401ef6;if(_0x43c7fc['type']!==_0x2d7329[_0x18d3bd(0x19e)]||!this[_0x18d3bd(0x1d5)][_0x18d3bd(0x1ae)](_0x43c7fc['id']))return;const {id:_0xb0ed1f}=_0x43c7fc;let _0x54b6dc;_0x48c25d[_0x18d3bd(0x20e)](_0xb0ed1f)?_0x54b6dc=_0x48c25d[_0x18d3bd(0x1a7)](_0xb0ed1f):(_0x54b6dc=new _0x3b4350(),_0x48c25d[_0x18d3bd(0x19a)](_0xb0ed1f,_0x54b6dc),_0x54b6dc[_0x18d3bd(0x19c)](_0x29540b((_0x401ef6=this[_0x18d3bd(0x1b2)][_0x18d3bd(0x222)](Pe))!=null?_0x401ef6:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18d3bd(0x192)](_0x3a2760=>{var _0x2ea7bf=_0x18d3bd;this['_collabSession'][_0x2ea7bf(0x1d3)]({'eventID':_0x5b7819[_0x2ea7bf(0x1ea)],'data':{'unitID':this[_0x2ea7bf(0x1c2)],'operations':{[_0x3a2760['id']]:{'id':_0x3a2760['id'],'params':JSON[_0x2ea7bf(0x208)](_0x3a2760[_0x2ea7bf(0x1f7)])}}}},this[_0x2ea7bf(0x1c2)]);})),_0x54b6dc[_0x18d3bd(0x1ca)](_0x43c7fc);})),this['_liveShareService'][_0x2b9c64(0x191)](this[_0x2b9c64(0x1c2)])['forEach'](_0x525c16=>this[_0x2b9c64(0x1ab)][_0x2b9c64(0x1d3)]({'eventID':_0x5b7819[_0x2b9c64(0x1ea)],'data':{'unitID':this[_0x2b9c64(0x1c2)],'operations':{[_0x525c16['id']]:{'id':_0x525c16['id'],'params':JSON[_0x2b9c64(0x208)](_0x525c16[_0x2b9c64(0x1f7)])}}}},this[_0x2b9c64(0x1c2)]));}[_0x3e752e(0x22e)](){var _0x2d5883=_0x3e752e,_0x23e192;this[_0x2d5883(0x1a8)][_0x2d5883(0x1ca)](_0x2d5883(0x235)),(_0x23e192=this[_0x2d5883(0x1d2)])==null||_0x23e192[_0x2d5883(0x20d)](),this[_0x2d5883(0x1d2)]=null;}[_0x3e752e(0x22a)](){var _0x2c2c20=_0x3e752e,_0x20bf5d;(_0x20bf5d=this[_0x2c2c20(0x1d2)])==null||_0x20bf5d['dispose'](),this[_0x2c2c20(0x1a8)][_0x2c2c20(0x1ca)]('following');}['_beIdle'](){var _0x1c8dda=_0x3e752e,_0x347e25;this['_status$']['next'](_0x1c8dda(0x235)),(_0x347e25=this[_0x1c8dda(0x1d2)])==null||_0x347e25['dispose'](),this[_0x1c8dda(0x1d2)]=null;}[_0x3e752e(0x1da)](){var _0x54cdbb=_0x3e752e,_0x401693;this['_status$'][_0x54cdbb(0x1ca)](_0x54cdbb(0x1a9)),(_0x401693=this[_0x54cdbb(0x1d2)])==null||_0x401693[_0x54cdbb(0x20d)]();}['_handleOperation'](_0x53016f){var _0x4ba0d6=_0x3e752e;if([_0x4ba0d6(0x1e7),_0x4ba0d6(0x1a9),'offline'][_0x4ba0d6(0x1d7)](this[_0x4ba0d6(0x221)])||!_0x53016f[_0x4ba0d6(0x1a0)][_0x4ba0d6(0x1f6)]||_0x53016f[_0x4ba0d6(0x1a0)]['presenter']===this[_0x4ba0d6(0x1ab)][_0x4ba0d6(0x201)]())return;this[_0x4ba0d6(0x221)]===_0x4ba0d6(0x235)&&this['_startFollowing']();const _0x163baa=_0x53016f[_0x4ba0d6(0x1a0)][_0x4ba0d6(0x1a5)];Object['values'](_0x163baa)['forEach'](_0x3b1f8d=>{var _0x11555f=_0x4ba0d6;this[_0x11555f(0x1f0)][_0x11555f(0x233)](_0x3b1f8d['id'],_0x3b1f8d['params']?JSON[_0x11555f(0x21a)](_0x3b1f8d[_0x11555f(0x1f7)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x41c49d=_0x3e752e,_0x4ac43a;this[_0x41c49d(0x1a8)][_0x41c49d(0x1ca)](_0x41c49d(0x19d)),(_0x4ac43a=this[_0x41c49d(0x1d2)])==null||_0x4ac43a[_0x41c49d(0x20d)]();}['_handleOnline'](){var _0x1fe3f1=_0x3e752e;this[_0x1fe3f1(0x1a8)]['next'](_0x1fe3f1(0x235)),this['_fetchOperations']();}};C=Z([f(0x2,_0x3f00a0),f(0x3,_0x5aaba4(L)),f(0x4,_0x5566b5)],C);function Te(){var _0x297ae5=_0x3e752e;const _0x37d094=_0x5b0c84(I),_0x5ebc64=_0x5b0c84(_0x3a7cf0),_0x3d7032=_0x4398c6(()=>_0x5ebc64['getCurrentTypeOfUnit$'](_0x5ebb13['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5f3ca6,_0x4376ee]=_0x26e333(null),[_0x23f897,_0x229feb]=_0x26e333(h[_0x297ae5(0x209)]),_0x58314d=_0x5d5663(null);return _0x158cd3(()=>(_0x3d7032&&_0x37d094[_0x297ae5(0x1ef)](_0x3d7032[_0x297ae5(0x198)]())[_0x297ae5(0x1b7)](_0x4565c3=>{var _0xee01bd=_0x297ae5;_0x4376ee(_0x4565c3),_0x58314d[_0xee01bd(0x1f3)]=_0x4565c3[_0xee01bd(0x1fd)]['subscribe'](_0x32f67b=>{_0x229feb(_0x32f67b);});}),()=>{var _0x45b229=_0x297ae5,_0x5e6a58;(_0x5e6a58=_0x58314d['current'])==null||_0x5e6a58[_0x45b229(0x1b5)](),_0x58314d[_0x45b229(0x1f3)]=null;}),[_0x3d7032,_0x37d094]),_0x5f3ca6?_0x2dc537(_0x5431f6,{'align':_0x297ae5(0x1b6),'disabled':_0x23f897===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2dc537($e,{'status':_0x23f897,'coordinator':_0x5f3ca6}),'children':_0x2dc537(_0x297ae5(0x234),{'className':_0x4676bf(_0x297ae5(0x1a6),{'univer-cursor-not-allowed':_0x23f897===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23f897!==h[_0x297ae5(0x216)]}),'type':_0x297ae5(0x234),'children':_0x2dc537(B,{'className':_0x297ae5(0x1d4)})})}):null;}function $e(_0x90cbdc){var _0x345cb6=_0x3e752e;const {status:_0x4e3ed7,coordinator:_0x18e2ef}=_0x90cbdc;switch(_0x4e3ed7){case h[_0x345cb6(0x209)]:return _0x2dc537(Fe,{'coordinator':_0x18e2ef});case h[_0x345cb6(0x1ec)]:return _0x2dc537(He,{'coordinator':_0x18e2ef});case h[_0x345cb6(0x1c8)]:return _0x2dc537(je,{'coordinator':_0x18e2ef});case h[_0x345cb6(0x216)]:return _0x2dc537(Ve,{});case h[_0x345cb6(0x1e8)]:return _0x2dc537(Ue,{'coordinator':_0x18e2ef});default:return null;}}function Fe(_0x1d1fb0){var _0x35adc9=_0x3e752e;const {coordinator:_0x736e9b}=_0x1d1fb0;return _0x391b92(_0x51009b,{'children':[_0x2dc537(_0x35adc9(0x210),{'className':_0x35adc9(0x1e9),'children':_0x35adc9(0x18e)}),_0x2dc537(_0x472f5f,{'onClick':()=>_0x736e9b[_0x35adc9(0x206)](),'children':_0x35adc9(0x1a2)})]});}function He(_0x315137){var _0x1d0b7c=_0x3e752e;const {coordinator:_0x289bce}=_0x315137;return _0x391b92(_0x51009b,{'children':[_0x2dc537('div',{'className':_0x1d0b7c(0x1e9),'children':_0x1d0b7c(0x1db)}),_0x2dc537(_0x472f5f,{'onClick':()=>_0x289bce[_0x1d0b7c(0x1c7)](),'children':_0x1d0b7c(0x19b)})]});}function je(_0x3ec18e){var _0x1b92cc=_0x3e752e;const {coordinator:_0x2f244e}=_0x3ec18e;return _0x391b92(_0x51009b,{'children':[_0x2dc537('div',{'className':_0x1b92cc(0x1e9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2dc537(_0x472f5f,{'variant':_0x1b92cc(0x1c1),'onClick':()=>_0x2f244e['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x9b7dd6){var _0x35bf21=_0x3e752e;const {coordinator:_0x375656}=_0x9b7dd6;return _0x391b92(_0x51009b,{'children':[_0x2dc537(_0x35bf21(0x210),{'className':_0x35bf21(0x1e9),'children':_0x35bf21(0x21e)}),_0x2dc537(_0x472f5f,{'variant':_0x35bf21(0x231),'onClick':()=>_0x375656['stopPresenting'](),'children':_0x35bf21(0x1c6)})]});}function Ve(){var _0x21cab9=_0x3e752e;return _0x2dc537(_0x51009b,{'children':_0x21cab9(0x230)});}var Me=Object[_0x3e752e(0x225)],ke=(_0x52de79,_0xe345a7,_0x46b51b,_0x59060a)=>{var _0x27e6db=_0x3e752e;for(var _0x1b7941=_0x59060a>0x1?void 0x0:_0x59060a?Me(_0xe345a7,_0x46b51b):_0xe345a7,_0x5051fa=_0x52de79[_0x27e6db(0x1dc)]-0x1,_0x836680;_0x5051fa>=0x0;_0x5051fa--)(_0x836680=_0x52de79[_0x5051fa])&&(_0x1b7941=_0x836680(_0x1b7941)||_0x1b7941);return _0x1b7941;},$=(_0x560bba,_0xc6d70b)=>(_0x20f636,_0x4b34bf)=>_0xc6d70b(_0x20f636,_0x4b34bf,_0x560bba);let b=class extends _0x299780{constructor(_0x2b60d2,_0x3bb266){var _0x4d70b1=_0x3e752e;super(),this['_injector']=_0x2b60d2,this[_0x4d70b1(0x211)]=_0x3bb266,this['_mountLiveShare']();}[_0x3e752e(0x236)](){var _0x3426f8=_0x3e752e;this[_0x3426f8(0x19f)](this[_0x3426f8(0x211)]['registerComponent'](_0x2a8f8c[_0x3426f8(0x204)],()=>_0x5bd64b(Te,this[_0x3426f8(0x226)])));}};b=ke([$(0x0,_0x5aaba4(_0x2b5b66)),$(0x1,_0x57d7af)],b);var Ge=Object[_0x3e752e(0x1ce)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3b916a,_0x57b3f1,_0x25cd59)=>_0x57b3f1 in _0x3b916a?Ge(_0x3b916a,_0x57b3f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25cd59}):_0x3b916a[_0x57b3f1]=_0x25cd59,Be=(_0xc7d011,_0x1d89ad,_0x1f2822,_0x267fa3)=>{var _0x1a0802=_0x3e752e;for(var _0x4585f4=_0x267fa3>0x1?void 0x0:_0x267fa3?We(_0x1d89ad,_0x1f2822):_0x1d89ad,_0x110111=_0xc7d011[_0x1a0802(0x1dc)]-0x1,_0x3ccc4c;_0x110111>=0x0;_0x110111--)(_0x3ccc4c=_0xc7d011[_0x110111])&&(_0x4585f4=_0x3ccc4c(_0x4585f4)||_0x4585f4);return _0x4585f4;},F=(_0x213868,_0x1af56e)=>(_0x3098cc,_0x26f5d2)=>_0x1af56e(_0x3098cc,_0x26f5d2,_0x213868),J=(_0x3ccce8,_0x39e1b6,_0x4e3d63)=>Ye(_0x3ccce8,typeof _0x39e1b6!=_0x3e752e(0x18d)?_0x39e1b6+'':_0x39e1b6,_0x4e3d63);const Ze=_0x3e752e(0x21f);let O=class extends _0x232e08{constructor(_0x135d7a=T,_0x29ee57,_0x1cf850){var _0x58fa7e=_0x3e752e;super(),this[_0x58fa7e(0x1f9)]=_0x135d7a,this[_0x58fa7e(0x226)]=_0x29ee57,this[_0x58fa7e(0x1b2)]=_0x1cf850;const {..._0x4825ee}=_0x5d9c96({},T,this[_0x58fa7e(0x1f9)]);this[_0x58fa7e(0x1b2)][_0x58fa7e(0x1d1)](Oe,_0x4825ee);}[_0x3e752e(0x1b3)](){var _0x412710=_0x3e752e;_0x344947(this[_0x412710(0x226)],_0x3d33ef([[L],[I],[m],[b]],this['_config']['override'])),_0x207667(this[_0x412710(0x226)],[[m]]);}[_0x3e752e(0x1fa)](){var _0x40b003=_0x3e752e;_0x207667(this[_0x40b003(0x226)],[[b]]);}};J(O,'type',_0x5ebb13[_0x3e752e(0x1b8)]),J(O,_0x3e752e(0x207),Ze),O=Be([_0x4f9c72(_0x5eaf93),F(0x1,_0x5aaba4(_0x2b5b66)),F(0x2,_0x3f00a0)],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 _0x3e752e=_0x2e3f;(function(_0x50d32d,_0x1b94c3){var _0x583119=_0x2e3f,_0x23d0f8=_0x50d32d();while(!![]){try{var _0x1209f2=-parseInt(_0x583119(0x20c))/0x1*(parseInt(_0x583119(0x217))/0x2)+-parseInt(_0x583119(0x20b))/0x3*(-parseInt(_0x583119(0x21b))/0x4)+parseInt(_0x583119(0x20f))/0x5*(-parseInt(_0x583119(0x1ed))/0x6)+-parseInt(_0x583119(0x1cc))/0x7*(parseInt(_0x583119(0x1a1))/0x8)+parseInt(_0x583119(0x1fe))/0x9+parseInt(_0x583119(0x1f2))/0xa+-parseInt(_0x583119(0x232))/0xb*(parseInt(_0x583119(0x214))/0xc);if(_0x1209f2===_0x1b94c3)break;else _0x23d0f8['push'](_0x23d0f8['shift']());}catch(_0xecc715){_0x23d0f8['push'](_0x23d0f8['shift']());}}}(_0xe47c,0x3ce6f));var q=Object[_0x3e752e(0x1ce)],z=(_0x4fa555,_0x5404e5,_0x15ba82)=>_0x5404e5 in _0x4fa555?q(_0x4fa555,_0x5404e5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15ba82}):_0x4fa555[_0x5404e5]=_0x15ba82,d=(_0xc3dbf3,_0x1aa9f9,_0xecaf57)=>z(_0xc3dbf3,typeof _0x1aa9f9!='symbol'?_0x1aa9f9+'':_0x1aa9f9,_0xecaf57);import{CollaborationSessionService as _0x338c89,SessionStatus as _0x5057e5,UniverCollaborationClientPlugin as _0x5eaf93}from'@univerjs-pro/collaboration-client';import{Disposable as _0x299780,toDisposable as _0x5ee1c6,Inject as _0x5aaba4,IUniverInstanceService as _0x3a7cf0,Injector as _0x2b5b66,IConfigService as _0x3f00a0,ICommandService as _0x5566b5,RxDisposable as _0x2c561e,UniverInstanceType as _0x5ebb13,DisposableCollection as _0x2c1d59,CommandType as _0x2d7329,DependentOn as _0x4f9c72,Plugin as _0x232e08,merge as _0x5d9c96,registerDependencies as _0x344947,mergeOverrideWithDependencies as _0x3d33ef,touchDependencies as _0x207667}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1e944e,InsertSheetMutation as _0x54fe69}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xe935a,SetScrollOperation as _0x2776be}from'@univerjs/sheets-ui';import{useDependency as _0x5b0c84,useObservable as _0x4398c6,IUIPartsService as _0x57d7af,BuiltInUIPart as _0x2a8f8c,connectInjector as _0x5bd64b}from'@univerjs/ui';import{jsx as _0x2dc537,jsxs as _0x391b92,Fragment as _0x51009b}from'react/jsx-runtime';import{Dropdown as _0x5431f6,clsx as _0x4676bf,Button as _0x472f5f}from'@univerjs/design';import{forwardRef as _0x4bb84f,useRef as _0x5d5663,createElement as _0x35f4bd,useState as _0x26e333,useEffect as _0x158cd3}from'react';import{CollaborationEvent as _0x5b7819,parseProtocolChangeset as _0x19bde9}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5609fb,Subject as _0x3b4350}from'rxjs';import{takeUntil as _0x1678e7,throttleTime as _0x29540b}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x299780{constructor(){var _0x1787cc=_0x3e752e;super(...arguments),d(this,_0x1787cc(0x1df),new Set()),d(this,'_reporters',new Set());}[_0x3e752e(0x1bf)](_0x3da4cf){var _0x5c178c=_0x3e752e;return this[_0x5c178c(0x1df)][_0x5c178c(0x1b1)](_0x3da4cf),_0x5ee1c6(()=>this[_0x5c178c(0x1df)][_0x5c178c(0x1ba)](_0x3da4cf));}[_0x3e752e(0x229)](_0x3ddccb){var _0xb85231=_0x3e752e;return this[_0xb85231(0x199)]['add'](_0x3ddccb),_0x5ee1c6(()=>this[_0xb85231(0x199)][_0xb85231(0x1ba)](_0x3ddccb));}['shouldShareOperation'](_0x18fa83){var _0x522914=_0x3e752e;return this[_0x522914(0x1df)]['has'](_0x18fa83);}[_0x3e752e(0x191)](_0x1314a5){var _0x3f01e9=_0x3e752e;return Array['from'](this['_reporters'])[_0x3f01e9(0x22c)](_0x382fd7=>_0x382fd7(_0x1314a5));}}function _0xe47c(){var _0x249ff3=['className','getMemberID','mask','none','HEADER_MENU','sheet','tryStartPresenting','pluginName','stringify','IDLE','UniverIcon','698631paOjju','27815YNffdR','dispose','has','7235cIVjag','div','_uiPartsService','entries','extend','5297052JljRpk','evenodd','OFFLINE','6NermwF','LiveShareIcon','getValue','parse','4Zmeybl','_entities','_handleNewChangeSets','You\x27re\x20presenting\x20the\x20document','UNIVER_LIVE_SHARE_PLUGIN','url(#$1','_status','getConfig','getTypeOfUnitAdded$','tag','getOwnPropertyDescriptor','_injector','colorChannel1','propertyIsEnumerable','registerInitialStateReporter','_startFollowing','live-share-icon','map','LIVESHARE_REQUEST_HOST','_stopPresenting','_handleTerminate','You\x27are\x20offline.','default','11kxbVUb','executeCommand','button','idle','_mountLiveShare','forEach','call','random','_init','prototype','symbol','Present\x20this\x20document','attrs','xlink:href','getInitialStates','subscribe','asObservable','_univerInstanceService','svg','hasOwnProperty','function','getUnitId','_reporters','set','Stop\x20following','pipe','offline','OPERATION','disposeWithMe','data','16ZbQSRp','Start','getTypeOfUnitDisposed$','defIds','operations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','get','_status$','not-following','univerjs-icon\x20univerjs-icon-','_collabSession','complete','getOwnPropertySymbols','shouldShareOperation','_presenter','replace','add','_configService','onStarting','concat','unsubscribe','end','then','UNIVER_UNKNOWN','find','delete','following','unitId','_handleOnline','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','NEW_CHANGESETS','text','_unitID','path','LIVESHARE_NEW_HOST','assign','Stop\x20presenting','stopFollowing','NOT_FOLLOWING','_fetchOperations','next','init','3269HrunuS','_beIdle','defineProperty','startFollowing','LIVESHARE_FETCH_OPERATIONS','setConfig','_commandDisposable','send','univer-size-4','_liveShareService','_startLiveShareCoordinator','includes','sessionStatus$','children','_stopFollowing','You\x27re\x20following\x20the\x20presenter','length','_startPresenting','onCommandExecuted','_sharedOperations','apply','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','string','idSuffix','_collabSessionService','_handleNewHost','createInstance','presenting','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_OPERATION','displayName','FOLLOWING','300BkaRtJ','currentColor','getLiveShareCoordinator','_commandService','trim','3182900zODVTQ','current','use','reverse','presenter','params','dispose$','_config','onRendered','fill','LIVESHARE_TERMINATE','status$','2667942EIZYEH','icon'];_0xe47c=function(){return _0x249ff3;};return _0xe47c();}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x24e56e,_0x38d3c2,_0x30753e,_0x531d57)=>{var _0x5dc400=_0x3e752e;for(var _0x5425ae=_0x531d57>0x1?void 0x0:_0x531d57?Ee(_0x38d3c2,_0x30753e):_0x38d3c2,_0x286649=_0x24e56e[_0x5dc400(0x1dc)]-0x1,_0x2e515c;_0x286649>=0x0;_0x286649--)(_0x2e515c=_0x24e56e[_0x286649])&&(_0x5425ae=_0x2e515c(_0x5425ae)||_0x5425ae);return _0x5425ae;},Ne=(_0x487562,_0x3344a7)=>(_0x5c9edf,_0x4694d0)=>_0x3344a7(_0x5c9edf,_0x4694d0,_0x487562);let m=class extends _0x299780{constructor(_0x22a074){var _0x606900=_0x3e752e;super(),this[_0x606900(0x1d5)]=_0x22a074,this['_init']();}[_0x3e752e(0x18b)](){var _0x1afc8b=_0x3e752e;[_0xe935a['id'],_0x2776be['id'],_0x1e944e['id']][_0x1afc8b(0x237)](_0x588ada=>{var _0xe3725a=_0x1afc8b;this['disposeWithMe'](this[_0xe3725a(0x1d5)][_0xe3725a(0x1bf)](_0x588ada));});}};m=we([Ne(0x0,_0x5aaba4(L))],m);var c=function(){var _0x30e425=_0x3e752e;return c=Object[_0x30e425(0x1c5)]||function(_0x89ba3e){var _0xb6086a=_0x30e425;for(var _0x24ca4b,_0x137bbf=0x1,_0x4ac616=arguments[_0xb6086a(0x1dc)];_0x137bbf<_0x4ac616;_0x137bbf++){_0x24ca4b=arguments[_0x137bbf];for(var _0x594605 in _0x24ca4b)Object[_0xb6086a(0x18c)][_0xb6086a(0x196)][_0xb6086a(0x189)](_0x24ca4b,_0x594605)&&(_0x89ba3e[_0x594605]=_0x24ca4b[_0x594605]);}return _0x89ba3e;},c[_0x30e425(0x1e0)](this,arguments);},Ce=function(_0xedc5d2,_0x50ad8c){var _0x3d85e3=_0x3e752e,_0x5256c2={};for(var _0x59e653 in _0xedc5d2)Object[_0x3d85e3(0x18c)]['hasOwnProperty'][_0x3d85e3(0x189)](_0xedc5d2,_0x59e653)&&_0x50ad8c['indexOf'](_0x59e653)<0x0&&(_0x5256c2[_0x59e653]=_0xedc5d2[_0x59e653]);if(_0xedc5d2!=null&&typeof Object['getOwnPropertySymbols']==_0x3d85e3(0x197)){for(var _0x7eefc2=0x0,_0x59e653=Object[_0x3d85e3(0x1ad)](_0xedc5d2);_0x7eefc2<_0x59e653[_0x3d85e3(0x1dc)];_0x7eefc2++)_0x50ad8c['indexOf'](_0x59e653[_0x7eefc2])<0x0&&Object[_0x3d85e3(0x18c)][_0x3d85e3(0x228)][_0x3d85e3(0x189)](_0xedc5d2,_0x59e653[_0x7eefc2])&&(_0x5256c2[_0x59e653[_0x7eefc2]]=_0xedc5d2[_0x59e653[_0x7eefc2]]);}return _0x5256c2;},W=_0x4bb84f(function(_0x3b725c,_0x4960b7){var _0x9e7a47=_0x3e752e,_0x210d73=_0x3b725c[_0x9e7a47(0x1ff)],_0x53fc8f=_0x3b725c['id'],_0x3cc1e6=_0x3b725c[_0x9e7a47(0x200)],_0x5ea49f=_0x3b725c[_0x9e7a47(0x213)],_0x3a55d4=Ce(_0x3b725c,[_0x9e7a47(0x1ff),'id','className',_0x9e7a47(0x213)]),_0x409f8b=_0x9e7a47(0x1aa)[_0x9e7a47(0x1b4)](_0x53fc8f,'\x20')['concat'](_0x3cc1e6||'')[_0x9e7a47(0x1f1)](),_0x55563c=_0x5d5663('_'[_0x9e7a47(0x1b4)](Le()));return Y(_0x210d73,''[_0x9e7a47(0x1b4)](_0x53fc8f),{'defIds':_0x210d73[_0x9e7a47(0x1a4)],'idSuffix':_0x55563c[_0x9e7a47(0x1f3)]},c({'ref':_0x4960b7,'className':_0x409f8b},_0x3a55d4),_0x5ea49f);});function Y(_0x1ee0e5,_0x6c8a1b,_0x3de701,_0x46c3b3,_0x3c191c){var _0x28227a=_0x3e752e;return _0x35f4bd(_0x1ee0e5['tag'],c(c({'key':_0x6c8a1b},De(_0x1ee0e5,_0x3de701,_0x3c191c)),_0x46c3b3),(xe(_0x1ee0e5,_0x3de701)[_0x28227a(0x1d9)]||[])['map'](function(_0x23c481,_0x5cd6e1){var _0x2e2752=_0x28227a;return Y(_0x23c481,''[_0x2e2752(0x1b4)](_0x6c8a1b,'-')[_0x2e2752(0x1b4)](_0x1ee0e5[_0x2e2752(0x224)],'-')[_0x2e2752(0x1b4)](_0x5cd6e1),_0x3de701,void 0x0,_0x3c191c);}));}function De(_0x5a21bb,_0x3d27d8,_0xc1851c){var _0xa8ae95=_0x3e752e,_0x6fbdc6=c({},_0x5a21bb[_0xa8ae95(0x18f)]);_0xc1851c!=null&&_0xc1851c['colorChannel1']&&_0x6fbdc6[_0xa8ae95(0x1fb)]===_0xa8ae95(0x227)&&(_0x6fbdc6[_0xa8ae95(0x1fb)]=_0xc1851c[_0xa8ae95(0x227)]),_0x5a21bb['tag']===_0xa8ae95(0x202)&&_0x6fbdc6['id']&&(_0x6fbdc6['id']=_0x6fbdc6['id']+_0x3d27d8['idSuffix']),Object['entries'](_0x6fbdc6)[_0xa8ae95(0x237)](function(_0x37693c){var _0x20cdca=_0xa8ae95,_0x5c603b=_0x37693c[0x0],_0x52a824=_0x37693c[0x1];_0x5c603b===_0x20cdca(0x202)&&typeof _0x52a824==_0x20cdca(0x1e2)&&(_0x6fbdc6[_0x5c603b]=_0x52a824[_0x20cdca(0x1b0)](/url\(#(.*)\)/,_0x20cdca(0x220)[_0x20cdca(0x1b4)](_0x3d27d8['idSuffix'],')')));});var _0x1c0094=_0x3d27d8[_0xa8ae95(0x1a4)];return!_0x1c0094||_0x1c0094[_0xa8ae95(0x1dc)]===0x0||(_0x5a21bb[_0xa8ae95(0x224)]===_0xa8ae95(0x1f4)&&_0x6fbdc6[_0xa8ae95(0x190)]&&(_0x6fbdc6[_0xa8ae95(0x190)]=_0x6fbdc6[_0xa8ae95(0x190)]+_0x3d27d8[_0xa8ae95(0x1e3)]),Object[_0xa8ae95(0x212)](_0x6fbdc6)[_0xa8ae95(0x237)](function(_0x1b4ee9){var _0x516762=_0xa8ae95,_0x4c1cf9=_0x1b4ee9[0x0],_0x2db3f6=_0x1b4ee9[0x1];typeof _0x2db3f6==_0x516762(0x1e2)&&(_0x6fbdc6[_0x4c1cf9]=_0x2db3f6[_0x516762(0x1b0)](/url\(#(.*)\)/,_0x516762(0x220)['concat'](_0x3d27d8[_0x516762(0x1e3)],')')));})),_0x6fbdc6;}function xe(_0x3c767a,_0x4594e8){var _0x4e0cfc=_0x3e752e,_0x8bd158,_0x545ed3=_0x4594e8[_0x4e0cfc(0x1a4)];return!_0x545ed3||_0x545ed3[_0x4e0cfc(0x1dc)]===0x0?_0x3c767a:_0x3c767a[_0x4e0cfc(0x224)]==='defs'&&(!((_0x8bd158=_0x3c767a[_0x4e0cfc(0x1d9)])===null||_0x8bd158===void 0x0)&&_0x8bd158[_0x4e0cfc(0x1dc)])?c(c({},_0x3c767a),{'children':_0x3c767a[_0x4e0cfc(0x1d9)][_0x4e0cfc(0x22c)](function(_0x260387){var _0x429e03=_0x4e0cfc;return typeof _0x260387[_0x429e03(0x18f)]['id']=='string'&&_0x545ed3&&_0x545ed3[_0x429e03(0x1d7)](_0x260387[_0x429e03(0x18f)]['id'])?c(c({},_0x260387),{'attrs':c(c({},_0x260387['attrs']),{'id':_0x260387[_0x429e03(0x18f)]['id']+_0x4594e8[_0x429e03(0x1e3)]})}):_0x260387;})}):_0x3c767a;}function Le(){var _0x432eac=_0x3e752e;return Math[_0x432eac(0x18a)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x3e752e(0x1eb)]=_0x3e752e(0x20a);var ye={'tag':_0x3e752e(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3e752e(0x203),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x3e752e(0x1c3),'attrs':{'fill':_0x3e752e(0x1ee),'d':_0x3e752e(0x1e1)}},{'tag':_0x3e752e(0x1c3),'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':_0x3e752e(0x215),'clipRule':_0x3e752e(0x215)}}]},B=_0x4bb84f(function(_0x457a4c,_0x389d02){var _0x3b41b4=_0x3e752e;return _0x35f4bd(W,Object[_0x3b41b4(0x1c5)]({},_0x457a4c,{'id':_0x3b41b4(0x22b),'ref':_0x389d02,'icon':ye}));});B['displayName']=_0x3e752e(0x218);function _0x2e3f(_0x2c4c27,_0x1bfbdf){var _0xe47c19=_0xe47c();return _0x2e3f=function(_0x2e3feb,_0x27cf76){_0x2e3feb=_0x2e3feb-0x189;var _0x188ae1=_0xe47c19[_0x2e3feb];return _0x188ae1;},_0x2e3f(_0x2c4c27,_0x1bfbdf);}var Re=Object[_0x3e752e(0x225)],Z=(_0x60e983,_0x189748,_0x10aaf7,_0x336c91)=>{var _0x308c5a=_0x3e752e;for(var _0x2662ac=_0x336c91>0x1?void 0x0:_0x336c91?Re(_0x189748,_0x10aaf7):_0x189748,_0x5d5904=_0x60e983[_0x308c5a(0x1dc)]-0x1,_0x3797db;_0x5d5904>=0x0;_0x5d5904--)(_0x3797db=_0x60e983[_0x5d5904])&&(_0x2662ac=_0x3797db(_0x2662ac)||_0x2662ac);return _0x2662ac;},f=(_0x4c71ad,_0x3d5375)=>(_0x911e33,_0x3c032c)=>_0x3d5375(_0x911e33,_0x3c032c,_0x4c71ad);let I=class extends _0x2c561e{constructor(_0x2ae42a,_0x516bc9,_0x21e45e){var _0x28c22a=_0x3e752e;super(),d(this,'_entities',new Map()),(this[_0x28c22a(0x194)]=_0x2ae42a,this[_0x28c22a(0x226)]=_0x516bc9,this[_0x28c22a(0x1e4)]=_0x21e45e,this[_0x28c22a(0x18b)]());}async['getLiveShareCoordinator'](_0xf13422){var _0x25ccc3=_0x3e752e;return this[_0x25ccc3(0x21c)][_0x25ccc3(0x20e)](_0xf13422)||await this[_0x25ccc3(0x1d6)](_0xf13422),this[_0x25ccc3(0x21c)]['get'](_0xf13422);}['_init'](){var _0x5b716a=_0x3e752e;this[_0x5b716a(0x194)][_0x5b716a(0x223)](_0x5ebb13['UNIVER_SHEET'])[_0x5b716a(0x19c)](_0x1678e7(this[_0x5b716a(0x1f8)]))[_0x5b716a(0x192)](async _0x39209e=>{var _0x409767=_0x5b716a;const _0x449a19=_0x39209e[_0x409767(0x198)]();this[_0x409767(0x21c)][_0x409767(0x20e)](_0x449a19)||this[_0x409767(0x1d6)](_0x449a19);}),this[_0x5b716a(0x194)][_0x5b716a(0x1a3)](_0x5ebb13['UNIVER_SHEET'])[_0x5b716a(0x19c)](_0x1678e7(this[_0x5b716a(0x1f8)]))[_0x5b716a(0x192)](_0x4b9cba=>{var _0x44d75d=_0x5b716a;const _0x451c5e=_0x4b9cba[_0x44d75d(0x198)](),_0x1057f0=this[_0x44d75d(0x21c)][_0x44d75d(0x1a7)](_0x451c5e);_0x1057f0==null||_0x1057f0[_0x44d75d(0x20d)]();});}async[_0x3e752e(0x1d6)](_0x51dd45){var _0x23484c=_0x3e752e;const _0x36b477=await this[_0x23484c(0x1e4)]['requireSession'](_0x51dd45),_0x17b6b8=this['_injector'][_0x23484c(0x1e6)](C,_0x51dd45,_0x36b477);return _0x17b6b8[_0x23484c(0x1cb)](),this[_0x23484c(0x21c)][_0x23484c(0x19a)](_0x51dd45,_0x17b6b8),_0x17b6b8;}};I=Z([f(0x0,_0x3a7cf0),f(0x1,_0x5aaba4(_0x2b5b66)),f(0x2,_0x5aaba4(_0x338c89))],I);var h=(_0x20fb0e=>(_0x20fb0e[_0x3e752e(0x216)]=_0x3e752e(0x19d),_0x20fb0e[_0x3e752e(0x209)]=_0x3e752e(0x235),_0x20fb0e[_0x3e752e(0x1ec)]='following',_0x20fb0e[_0x3e752e(0x1c8)]=_0x3e752e(0x1a9),_0x20fb0e[_0x3e752e(0x1e8)]='presenting',_0x20fb0e))(h||{});const Pe=_0x3e752e(0x1be),Ae=0xc8;let C=class extends _0x2c561e{constructor(_0x514373,_0xf24a4,_0x385d9e,_0x589022,_0x2a0bd0){var _0x5a1c93=_0x3e752e;super(),d(this,_0x5a1c93(0x1a8),new _0x5609fb(_0x5a1c93(0x235))),d(this,_0x5a1c93(0x1fd),this[_0x5a1c93(0x1a8)][_0x5a1c93(0x193)]()),d(this,_0x5a1c93(0x18b),!0x1),d(this,_0x5a1c93(0x1d2),null),d(this,_0x5a1c93(0x1af),null),(this[_0x5a1c93(0x1c2)]=_0x514373,this[_0x5a1c93(0x1ab)]=_0xf24a4,this[_0x5a1c93(0x1b2)]=_0x385d9e,this[_0x5a1c93(0x1d5)]=_0x589022,this[_0x5a1c93(0x1f0)]=_0x2a0bd0);}get[_0x3e752e(0x221)](){var _0x5505b9=_0x3e752e;return this[_0x5505b9(0x1a8)][_0x5505b9(0x219)]();}['dispose'](){var _0xaa3161=_0x3e752e,_0x2e5cec;(_0x2e5cec=this[_0xaa3161(0x1d2)])==null||_0x2e5cec[_0xaa3161(0x20d)](),this[_0xaa3161(0x1a8)]['next'](_0xaa3161(0x235)),this['_status$'][_0xaa3161(0x1ac)]();}[_0x3e752e(0x1cb)](){var _0x13c8d8=_0x3e752e;this[_0x13c8d8(0x18b)]||(this['_init']=!0x0,this[_0x13c8d8(0x1ab)][_0x13c8d8(0x1d8)]['pipe'](_0x1678e7(this[_0x13c8d8(0x1f8)]))[_0x13c8d8(0x192)](_0x11db81=>{var _0x3650cd=_0x13c8d8;switch(_0x11db81){case _0x5057e5[_0x3650cd(0x216)]:this['_handleOffline']();break;case _0x5057e5['ONLINE']:this[_0x3650cd(0x1bd)]();break;}}),this[_0x13c8d8(0x1ab)]['event$']['pipe'](_0x1678e7(this['dispose$']))['subscribe'](_0xb80547=>{var _0x1499fe=_0x13c8d8;const {eventID:_0x4c7465}=_0xb80547;switch(_0x4c7465){case _0x5b7819[_0x1499fe(0x1c4)]:this[_0x1499fe(0x1e5)](_0xb80547);break;case _0x5b7819[_0x1499fe(0x1ea)]:this['_handleOperation'](_0xb80547);break;case _0x5b7819[_0x1499fe(0x1fc)]:this['_handleTerminate']();break;case _0x5b7819[_0x1499fe(0x1c0)]:this[_0x1499fe(0x21d)](_0xb80547);break;}}));}[_0x3e752e(0x206)](){var _0xe0243e=_0x3e752e;this[_0xe0243e(0x1ab)][_0xe0243e(0x1d3)]({'eventID':_0x5b7819[_0xe0243e(0x22d)],'data':{'unitID':this['_unitID'],'userID':this[_0xe0243e(0x1ab)][_0xe0243e(0x201)]()}},this[_0xe0243e(0x1c2)]);}['stopPresenting'](){var _0x700ec=_0x3e752e;this[_0x700ec(0x221)]===_0x700ec(0x1e7)&&(this['_status$'][_0x700ec(0x1ca)](_0x700ec(0x235)),this[_0x700ec(0x1ab)][_0x700ec(0x1d3)]({'eventID':_0x5b7819[_0x700ec(0x1fc)],'data':{'unitID':this['_unitID']}},this[_0x700ec(0x1c2)]));}[_0x3e752e(0x1cf)](){var _0x335b18=_0x3e752e;this[_0x335b18(0x221)]===_0x335b18(0x1a9)&&(this['_status$'][_0x335b18(0x1ca)](_0x335b18(0x1bb)),this[_0x335b18(0x22a)]());}[_0x3e752e(0x1c7)](){var _0x400e10=_0x3e752e;this[_0x400e10(0x221)]==='following'&&this['_stopFollowing']();}[_0x3e752e(0x1e5)](_0x1ff7ae){var _0x2df2ad=_0x3e752e;const {presenter:_0x4912c0}=_0x1ff7ae[_0x2df2ad(0x1a0)],_0x21c6f9=this[_0x2df2ad(0x1ab)][_0x2df2ad(0x201)]();this['_presenter']=_0x4912c0,_0x4912c0===_0x21c6f9?(this[_0x2df2ad(0x1da)](),this[_0x2df2ad(0x1dd)]()):this[_0x2df2ad(0x221)]!==_0x2df2ad(0x1a9)&&(this[_0x2df2ad(0x22e)](),this[_0x2df2ad(0x22a)]());}[_0x3e752e(0x1c9)](){var _0x2cbc18=_0x3e752e;const _0x5be8da={'eventID':_0x5b7819[_0x2cbc18(0x1d0)]};this[_0x2cbc18(0x1ab)][_0x2cbc18(0x1d3)](_0x5be8da,this[_0x2cbc18(0x1c2)]);}[_0x3e752e(0x22f)](){var _0x27b559=_0x3e752e;this['_presenter']=null,this[_0x27b559(0x221)]!==_0x27b559(0x1e7)&&this[_0x27b559(0x1cd)]();}[_0x3e752e(0x21d)](_0x5ab676){var _0x1151f7=_0x3e752e;if(this[_0x1151f7(0x221)]===_0x1151f7(0x1bb)&&this[_0x1151f7(0x1af)]===_0x5ab676[_0x1151f7(0x1a0)]['memberID']){const _0x3779af=_0x19bde9(_0x5ab676[_0x1151f7(0x1a0)])['mutations'][_0x1151f7(0x1f5)]()[_0x1151f7(0x1b9)](_0xd5897f=>_0xd5897f['id']===_0x54fe69['id']);if(_0x3779af){const _0xb794c2=_0x3779af[_0x1151f7(0x1f7)][_0x1151f7(0x1bc)],_0x21cb7c=_0x3779af['params'][_0x1151f7(0x205)]['id'];setTimeout(()=>{var _0x30c364=_0x1151f7;this['_commandService'][_0x30c364(0x233)](_0x1e944e['id'],{'unitId':_0xb794c2,'subUnitId':_0x21cb7c},{'fromCollab':!0x0});});}}}[_0x3e752e(0x1dd)](){var _0x2b9c64=_0x3e752e;this[_0x2b9c64(0x1a8)][_0x2b9c64(0x1ca)](_0x2b9c64(0x1e7));const _0x48c25d=new Map(),_0x5d9b24=this[_0x2b9c64(0x1d2)]=new _0x2c1d59();_0x5d9b24[_0x2b9c64(0x1b1)](_0x5ee1c6(()=>{var _0x411c83=_0x2b9c64;_0x48c25d['forEach'](_0x191025=>_0x191025[_0x411c83(0x1ac)]()),_0x48c25d['clear']();})),_0x5d9b24[_0x2b9c64(0x1b1)](this[_0x2b9c64(0x1f0)][_0x2b9c64(0x1de)](_0x43c7fc=>{var _0x18d3bd=_0x2b9c64,_0x401ef6;if(_0x43c7fc['type']!==_0x2d7329[_0x18d3bd(0x19e)]||!this[_0x18d3bd(0x1d5)][_0x18d3bd(0x1ae)](_0x43c7fc['id']))return;const {id:_0xb0ed1f}=_0x43c7fc;let _0x54b6dc;_0x48c25d[_0x18d3bd(0x20e)](_0xb0ed1f)?_0x54b6dc=_0x48c25d[_0x18d3bd(0x1a7)](_0xb0ed1f):(_0x54b6dc=new _0x3b4350(),_0x48c25d[_0x18d3bd(0x19a)](_0xb0ed1f,_0x54b6dc),_0x54b6dc[_0x18d3bd(0x19c)](_0x29540b((_0x401ef6=this[_0x18d3bd(0x1b2)][_0x18d3bd(0x222)](Pe))!=null?_0x401ef6:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18d3bd(0x192)](_0x3a2760=>{var _0x2ea7bf=_0x18d3bd;this['_collabSession'][_0x2ea7bf(0x1d3)]({'eventID':_0x5b7819[_0x2ea7bf(0x1ea)],'data':{'unitID':this[_0x2ea7bf(0x1c2)],'operations':{[_0x3a2760['id']]:{'id':_0x3a2760['id'],'params':JSON[_0x2ea7bf(0x208)](_0x3a2760[_0x2ea7bf(0x1f7)])}}}},this[_0x2ea7bf(0x1c2)]);})),_0x54b6dc[_0x18d3bd(0x1ca)](_0x43c7fc);})),this['_liveShareService'][_0x2b9c64(0x191)](this[_0x2b9c64(0x1c2)])['forEach'](_0x525c16=>this[_0x2b9c64(0x1ab)][_0x2b9c64(0x1d3)]({'eventID':_0x5b7819[_0x2b9c64(0x1ea)],'data':{'unitID':this[_0x2b9c64(0x1c2)],'operations':{[_0x525c16['id']]:{'id':_0x525c16['id'],'params':JSON[_0x2b9c64(0x208)](_0x525c16[_0x2b9c64(0x1f7)])}}}},this[_0x2b9c64(0x1c2)]));}[_0x3e752e(0x22e)](){var _0x2d5883=_0x3e752e,_0x23e192;this[_0x2d5883(0x1a8)][_0x2d5883(0x1ca)](_0x2d5883(0x235)),(_0x23e192=this[_0x2d5883(0x1d2)])==null||_0x23e192[_0x2d5883(0x20d)](),this[_0x2d5883(0x1d2)]=null;}[_0x3e752e(0x22a)](){var _0x2c2c20=_0x3e752e,_0x20bf5d;(_0x20bf5d=this[_0x2c2c20(0x1d2)])==null||_0x20bf5d['dispose'](),this[_0x2c2c20(0x1a8)][_0x2c2c20(0x1ca)]('following');}['_beIdle'](){var _0x1c8dda=_0x3e752e,_0x347e25;this['_status$']['next'](_0x1c8dda(0x235)),(_0x347e25=this[_0x1c8dda(0x1d2)])==null||_0x347e25['dispose'](),this[_0x1c8dda(0x1d2)]=null;}[_0x3e752e(0x1da)](){var _0x54cdbb=_0x3e752e,_0x401693;this['_status$'][_0x54cdbb(0x1ca)](_0x54cdbb(0x1a9)),(_0x401693=this[_0x54cdbb(0x1d2)])==null||_0x401693[_0x54cdbb(0x20d)]();}['_handleOperation'](_0x53016f){var _0x4ba0d6=_0x3e752e;if([_0x4ba0d6(0x1e7),_0x4ba0d6(0x1a9),'offline'][_0x4ba0d6(0x1d7)](this[_0x4ba0d6(0x221)])||!_0x53016f[_0x4ba0d6(0x1a0)][_0x4ba0d6(0x1f6)]||_0x53016f[_0x4ba0d6(0x1a0)]['presenter']===this[_0x4ba0d6(0x1ab)][_0x4ba0d6(0x201)]())return;this[_0x4ba0d6(0x221)]===_0x4ba0d6(0x235)&&this['_startFollowing']();const _0x163baa=_0x53016f[_0x4ba0d6(0x1a0)][_0x4ba0d6(0x1a5)];Object['values'](_0x163baa)['forEach'](_0x3b1f8d=>{var _0x11555f=_0x4ba0d6;this[_0x11555f(0x1f0)][_0x11555f(0x233)](_0x3b1f8d['id'],_0x3b1f8d['params']?JSON[_0x11555f(0x21a)](_0x3b1f8d[_0x11555f(0x1f7)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x41c49d=_0x3e752e,_0x4ac43a;this[_0x41c49d(0x1a8)][_0x41c49d(0x1ca)](_0x41c49d(0x19d)),(_0x4ac43a=this[_0x41c49d(0x1d2)])==null||_0x4ac43a[_0x41c49d(0x20d)]();}['_handleOnline'](){var _0x1fe3f1=_0x3e752e;this[_0x1fe3f1(0x1a8)]['next'](_0x1fe3f1(0x235)),this['_fetchOperations']();}};C=Z([f(0x2,_0x3f00a0),f(0x3,_0x5aaba4(L)),f(0x4,_0x5566b5)],C);function Te(){var _0x297ae5=_0x3e752e;const _0x37d094=_0x5b0c84(I),_0x5ebc64=_0x5b0c84(_0x3a7cf0),_0x3d7032=_0x4398c6(()=>_0x5ebc64['getCurrentTypeOfUnit$'](_0x5ebb13['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5f3ca6,_0x4376ee]=_0x26e333(null),[_0x23f897,_0x229feb]=_0x26e333(h[_0x297ae5(0x209)]),_0x58314d=_0x5d5663(null);return _0x158cd3(()=>(_0x3d7032&&_0x37d094[_0x297ae5(0x1ef)](_0x3d7032[_0x297ae5(0x198)]())[_0x297ae5(0x1b7)](_0x4565c3=>{var _0xee01bd=_0x297ae5;_0x4376ee(_0x4565c3),_0x58314d[_0xee01bd(0x1f3)]=_0x4565c3[_0xee01bd(0x1fd)]['subscribe'](_0x32f67b=>{_0x229feb(_0x32f67b);});}),()=>{var _0x45b229=_0x297ae5,_0x5e6a58;(_0x5e6a58=_0x58314d['current'])==null||_0x5e6a58[_0x45b229(0x1b5)](),_0x58314d[_0x45b229(0x1f3)]=null;}),[_0x3d7032,_0x37d094]),_0x5f3ca6?_0x2dc537(_0x5431f6,{'align':_0x297ae5(0x1b6),'disabled':_0x23f897===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2dc537($e,{'status':_0x23f897,'coordinator':_0x5f3ca6}),'children':_0x2dc537(_0x297ae5(0x234),{'className':_0x4676bf(_0x297ae5(0x1a6),{'univer-cursor-not-allowed':_0x23f897===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23f897!==h[_0x297ae5(0x216)]}),'type':_0x297ae5(0x234),'children':_0x2dc537(B,{'className':_0x297ae5(0x1d4)})})}):null;}function $e(_0x90cbdc){var _0x345cb6=_0x3e752e;const {status:_0x4e3ed7,coordinator:_0x18e2ef}=_0x90cbdc;switch(_0x4e3ed7){case h[_0x345cb6(0x209)]:return _0x2dc537(Fe,{'coordinator':_0x18e2ef});case h[_0x345cb6(0x1ec)]:return _0x2dc537(He,{'coordinator':_0x18e2ef});case h[_0x345cb6(0x1c8)]:return _0x2dc537(je,{'coordinator':_0x18e2ef});case h[_0x345cb6(0x216)]:return _0x2dc537(Ve,{});case h[_0x345cb6(0x1e8)]:return _0x2dc537(Ue,{'coordinator':_0x18e2ef});default:return null;}}function Fe(_0x1d1fb0){var _0x35adc9=_0x3e752e;const {coordinator:_0x736e9b}=_0x1d1fb0;return _0x391b92(_0x51009b,{'children':[_0x2dc537(_0x35adc9(0x210),{'className':_0x35adc9(0x1e9),'children':_0x35adc9(0x18e)}),_0x2dc537(_0x472f5f,{'onClick':()=>_0x736e9b[_0x35adc9(0x206)](),'children':_0x35adc9(0x1a2)})]});}function He(_0x315137){var _0x1d0b7c=_0x3e752e;const {coordinator:_0x289bce}=_0x315137;return _0x391b92(_0x51009b,{'children':[_0x2dc537('div',{'className':_0x1d0b7c(0x1e9),'children':_0x1d0b7c(0x1db)}),_0x2dc537(_0x472f5f,{'onClick':()=>_0x289bce[_0x1d0b7c(0x1c7)](),'children':_0x1d0b7c(0x19b)})]});}function je(_0x3ec18e){var _0x1b92cc=_0x3e752e;const {coordinator:_0x2f244e}=_0x3ec18e;return _0x391b92(_0x51009b,{'children':[_0x2dc537('div',{'className':_0x1b92cc(0x1e9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2dc537(_0x472f5f,{'variant':_0x1b92cc(0x1c1),'onClick':()=>_0x2f244e['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x9b7dd6){var _0x35bf21=_0x3e752e;const {coordinator:_0x375656}=_0x9b7dd6;return _0x391b92(_0x51009b,{'children':[_0x2dc537(_0x35bf21(0x210),{'className':_0x35bf21(0x1e9),'children':_0x35bf21(0x21e)}),_0x2dc537(_0x472f5f,{'variant':_0x35bf21(0x231),'onClick':()=>_0x375656['stopPresenting'](),'children':_0x35bf21(0x1c6)})]});}function Ve(){var _0x21cab9=_0x3e752e;return _0x2dc537(_0x51009b,{'children':_0x21cab9(0x230)});}var Me=Object[_0x3e752e(0x225)],ke=(_0x52de79,_0xe345a7,_0x46b51b,_0x59060a)=>{var _0x27e6db=_0x3e752e;for(var _0x1b7941=_0x59060a>0x1?void 0x0:_0x59060a?Me(_0xe345a7,_0x46b51b):_0xe345a7,_0x5051fa=_0x52de79[_0x27e6db(0x1dc)]-0x1,_0x836680;_0x5051fa>=0x0;_0x5051fa--)(_0x836680=_0x52de79[_0x5051fa])&&(_0x1b7941=_0x836680(_0x1b7941)||_0x1b7941);return _0x1b7941;},$=(_0x560bba,_0xc6d70b)=>(_0x20f636,_0x4b34bf)=>_0xc6d70b(_0x20f636,_0x4b34bf,_0x560bba);let b=class extends _0x299780{constructor(_0x2b60d2,_0x3bb266){var _0x4d70b1=_0x3e752e;super(),this['_injector']=_0x2b60d2,this[_0x4d70b1(0x211)]=_0x3bb266,this['_mountLiveShare']();}[_0x3e752e(0x236)](){var _0x3426f8=_0x3e752e;this[_0x3426f8(0x19f)](this[_0x3426f8(0x211)]['registerComponent'](_0x2a8f8c[_0x3426f8(0x204)],()=>_0x5bd64b(Te,this[_0x3426f8(0x226)])));}};b=ke([$(0x0,_0x5aaba4(_0x2b5b66)),$(0x1,_0x57d7af)],b);var Ge=Object[_0x3e752e(0x1ce)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3b916a,_0x57b3f1,_0x25cd59)=>_0x57b3f1 in _0x3b916a?Ge(_0x3b916a,_0x57b3f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25cd59}):_0x3b916a[_0x57b3f1]=_0x25cd59,Be=(_0xc7d011,_0x1d89ad,_0x1f2822,_0x267fa3)=>{var _0x1a0802=_0x3e752e;for(var _0x4585f4=_0x267fa3>0x1?void 0x0:_0x267fa3?We(_0x1d89ad,_0x1f2822):_0x1d89ad,_0x110111=_0xc7d011[_0x1a0802(0x1dc)]-0x1,_0x3ccc4c;_0x110111>=0x0;_0x110111--)(_0x3ccc4c=_0xc7d011[_0x110111])&&(_0x4585f4=_0x3ccc4c(_0x4585f4)||_0x4585f4);return _0x4585f4;},F=(_0x213868,_0x1af56e)=>(_0x3098cc,_0x26f5d2)=>_0x1af56e(_0x3098cc,_0x26f5d2,_0x213868),J=(_0x3ccce8,_0x39e1b6,_0x4e3d63)=>Ye(_0x3ccce8,typeof _0x39e1b6!=_0x3e752e(0x18d)?_0x39e1b6+'':_0x39e1b6,_0x4e3d63);const Ze=_0x3e752e(0x21f);let O=class extends _0x232e08{constructor(_0x135d7a=T,_0x29ee57,_0x1cf850){var _0x58fa7e=_0x3e752e;super(),this[_0x58fa7e(0x1f9)]=_0x135d7a,this[_0x58fa7e(0x226)]=_0x29ee57,this[_0x58fa7e(0x1b2)]=_0x1cf850;const {..._0x4825ee}=_0x5d9c96({},T,this[_0x58fa7e(0x1f9)]);this[_0x58fa7e(0x1b2)][_0x58fa7e(0x1d1)](Oe,_0x4825ee);}[_0x3e752e(0x1b3)](){var _0x412710=_0x3e752e;_0x344947(this[_0x412710(0x226)],_0x3d33ef([[L],[I],[m],[b]],this['_config']['override'])),_0x207667(this[_0x412710(0x226)],[[m]]);}[_0x3e752e(0x1fa)](){var _0x40b003=_0x3e752e;_0x207667(this[_0x40b003(0x226)],[[b]]);}};J(O,'type',_0x5ebb13[_0x3e752e(0x1b8)]),J(O,_0x3e752e(0x207),Ze),O=Be([_0x4f9c72(_0x5eaf93),F(0x1,_0x5aaba4(_0x2b5b66)),F(0x2,_0x3f00a0)],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(_0x1765b8,_0xfab24d){var _0x29875b=_0x2303,_0x41bb1a=_0x1765b8();while(!![]){try{var _0x4bcd5a=parseInt(_0x29875b(0xe5))/0x1+-parseInt(_0x29875b(0x1ab))/0x2+-parseInt(_0x29875b(0xcf))/0x3*(parseInt(_0x29875b(0x110))/0x4)+parseInt(_0x29875b(0xed))/0x5*(-parseInt(_0x29875b(0x14d))/0x6)+-parseInt(_0x29875b(0x145))/0x7*(parseInt(_0x29875b(0x1a9))/0x8)+-parseInt(_0x29875b(0xe1))/0x9*(-parseInt(_0x29875b(0x173))/0xa)+-parseInt(_0x29875b(0x189))/0xb*(-parseInt(_0x29875b(0xf6))/0xc);if(_0x4bcd5a===_0xfab24d)break;else _0x41bb1a['push'](_0x41bb1a['shift']());}catch(_0x31790b){_0x41bb1a['push'](_0x41bb1a['shift']());}}}(_0x5d0e,0xdc83b),function(_0x5b3ffd,_0xfc3b0d){var _0x1df1e8=_0x2303;typeof exports==_0x1df1e8(0xd4)&&typeof module<'u'?_0xfc3b0d(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[_0x1df1e8(0x112)]?define([_0x1df1e8(0xc7),'@univerjs-pro/collaboration-client',_0x1df1e8(0x14c),_0x1df1e8(0x19c),_0x1df1e8(0x108),_0x1df1e8(0xd9),_0x1df1e8(0x179),_0x1df1e8(0x118),_0x1df1e8(0x181),'@univerjs-pro/collaboration',_0x1df1e8(0xcc),_0x1df1e8(0x16f)],_0xfc3b0d):(_0x5b3ffd=typeof globalThis<'u'?globalThis:_0x5b3ffd||self,_0xfc3b0d(_0x5b3ffd[_0x1df1e8(0x14a)]={},_0x5b3ffd[_0x1df1e8(0xbe)],_0x5b3ffd[_0x1df1e8(0x16d)],_0x5b3ffd['UniverSheets'],_0x5b3ffd[_0x1df1e8(0xfc)],_0x5b3ffd[_0x1df1e8(0xde)],_0x5b3ffd[_0x1df1e8(0xb9)],_0x5b3ffd['UniverDesign'],_0x5b3ffd[_0x1df1e8(0xb9)],_0x5b3ffd[_0x1df1e8(0xc3)],_0x5b3ffd[_0x1df1e8(0xcc)],_0x5b3ffd[_0x1df1e8(0xcc)][_0x1df1e8(0x15e)]));}(this,function(_0x2218b7,_0x43b4b9,_0x5b5bf8,_0x3e7f05,_0x2f9597,_0xe30548,_0x599832,_0x5f0290,_0x1293c7,_0x33efac,_0x3eff19,_0x50284a){'use strict';var _0x46a98a=_0x2303;var _0x5306c8=Object['defineProperty'],_0x3d2525=(_0x22e88f,_0x454a3f,_0x20f13c)=>_0x454a3f in _0x22e88f?_0x5306c8(_0x22e88f,_0x454a3f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20f13c}):_0x22e88f[_0x454a3f]=_0x20f13c,_0x1a556a=(_0x12bbe7,_0x3107e0,_0x4592c7)=>_0x3d2525(_0x12bbe7,typeof _0x3107e0!=_0x46a98a(0x186)?_0x3107e0+'':_0x3107e0,_0x4592c7);const _0x9a3251=_0x46a98a(0xd5),_0x2b9a67={};class _0x2f9b87 extends _0x5b5bf8[_0x46a98a(0x191)]{constructor(){var _0x2fbc87=_0x46a98a;super(...arguments),_0x1a556a(this,_0x2fbc87(0x13e),new Set()),_0x1a556a(this,_0x2fbc87(0x114),new Set());}['registerSharedOperation'](_0x4051e0){var _0x3e6768=_0x46a98a;return this[_0x3e6768(0x13e)][_0x3e6768(0x172)](_0x4051e0),_0x5b5bf8[_0x3e6768(0x157)](()=>this['_sharedOperations'][_0x3e6768(0xc4)](_0x4051e0));}[_0x46a98a(0xd7)](_0x370b4b){var _0x301580=_0x46a98a;return this[_0x301580(0x114)][_0x301580(0x172)](_0x370b4b),_0x5b5bf8[_0x301580(0x157)](()=>this[_0x301580(0x114)][_0x301580(0xc4)](_0x370b4b));}[_0x46a98a(0xc9)](_0x358f2f){var _0x2f1de1=_0x46a98a;return this['_sharedOperations'][_0x2f1de1(0x168)](_0x358f2f);}[_0x46a98a(0x10d)](_0xc4ba1d){var _0x1cd414=_0x46a98a;return Array[_0x1cd414(0x12e)](this[_0x1cd414(0x114)])['map'](_0x33dcb2=>_0x33dcb2(_0xc4ba1d));}}var _0x4b665b=Object[_0x46a98a(0x13a)],_0x1e2dee=(_0x1f41cb,_0x3e0d47,_0x2579f1,_0x3a9257)=>{for(var _0x2c4262=_0x3a9257>0x1?void 0x0:_0x3a9257?_0x4b665b(_0x3e0d47,_0x2579f1):_0x3e0d47,_0x4b24f7=_0x1f41cb['length']-0x1,_0x2ee374;_0x4b24f7>=0x0;_0x4b24f7--)(_0x2ee374=_0x1f41cb[_0x4b24f7])&&(_0x2c4262=_0x2ee374(_0x2c4262)||_0x2c4262);return _0x2c4262;},_0x623985=(_0x1ccb0e,_0x17f2bc)=>(_0x3ab85b,_0xd0df7e)=>_0x17f2bc(_0x3ab85b,_0xd0df7e,_0x1ccb0e);let _0x456c85=class extends _0x5b5bf8[_0x46a98a(0x191)]{constructor(_0x28f05a){var _0xc1ab9e=_0x46a98a;super(),this[_0xc1ab9e(0x14b)]=_0x28f05a,this[_0xc1ab9e(0x142)]();}[_0x46a98a(0x142)](){var _0x536f8d=_0x46a98a;[_0x2f9597[_0x536f8d(0x10b)]['id'],_0x2f9597[_0x536f8d(0x104)]['id'],_0x3e7f05[_0x536f8d(0x138)]['id']][_0x536f8d(0x124)](_0x465718=>{var _0x2b9e87=_0x536f8d;this['disposeWithMe'](this['_liveShareService'][_0x2b9e87(0x15a)](_0x465718));});}};_0x456c85=_0x1e2dee([_0x623985(0x0,_0x5b5bf8[_0x46a98a(0xee)](_0x2f9b87))],_0x456c85);var _0x17d120=function(){return _0x17d120=Object['assign']||function(_0x2d9f5d){var _0x49f67f=_0x2303;for(var _0x21c455,_0x34a797=0x1,_0x210f79=arguments[_0x49f67f(0x19d)];_0x34a797<_0x210f79;_0x34a797++){_0x21c455=arguments[_0x34a797];for(var _0x14ca35 in _0x21c455)Object['prototype'][_0x49f67f(0x100)]['call'](_0x21c455,_0x14ca35)&&(_0x2d9f5d[_0x14ca35]=_0x21c455[_0x14ca35]);}return _0x2d9f5d;},_0x17d120['apply'](this,arguments);},_0x5521eb=function(_0x2978d4,_0x46071d){var _0x3f9f5a=_0x46a98a,_0x40f56b={};for(var _0x3711c5 in _0x2978d4)Object[_0x3f9f5a(0x193)]['hasOwnProperty'][_0x3f9f5a(0x16a)](_0x2978d4,_0x3711c5)&&_0x46071d[_0x3f9f5a(0x167)](_0x3711c5)<0x0&&(_0x40f56b[_0x3711c5]=_0x2978d4[_0x3711c5]);if(_0x2978d4!=null&&typeof Object[_0x3f9f5a(0x166)]==_0x3f9f5a(0xd6)){for(var _0x58b577=0x0,_0x3711c5=Object[_0x3f9f5a(0x166)](_0x2978d4);_0x58b577<_0x3711c5[_0x3f9f5a(0x19d)];_0x58b577++)_0x46071d['indexOf'](_0x3711c5[_0x58b577])<0x0&&Object[_0x3f9f5a(0x193)][_0x3f9f5a(0xd8)]['call'](_0x2978d4,_0x3711c5[_0x58b577])&&(_0x40f56b[_0x3711c5[_0x58b577]]=_0x2978d4[_0x3711c5[_0x58b577]]);}return _0x40f56b;},_0x4dea88=_0x1293c7[_0x46a98a(0x103)](function(_0x584c6c,_0x18fa46){var _0x1a7342=_0x46a98a,_0x48a7e1=_0x584c6c['icon'],_0x1d33ed=_0x584c6c['id'],_0x3a3ede=_0x584c6c[_0x1a7342(0x17d)],_0x1bf79d=_0x584c6c[_0x1a7342(0xe2)],_0x1394e7=_0x5521eb(_0x584c6c,[_0x1a7342(0x156),'id',_0x1a7342(0x17d),'extend']),_0x574afa='univerjs-icon\x20univerjs-icon-'['concat'](_0x1d33ed,'\x20')[_0x1a7342(0x11f)](_0x3a3ede||'')['trim'](),_0x18eb20=_0x1293c7[_0x1a7342(0x17f)]('_'[_0x1a7342(0x11f)](_0x1f0803()));return _0x38367b(_0x48a7e1,''[_0x1a7342(0x11f)](_0x1d33ed),{'defIds':_0x48a7e1[_0x1a7342(0x197)],'idSuffix':_0x18eb20[_0x1a7342(0x13f)]},_0x17d120({'ref':_0x18fa46,'className':_0x574afa},_0x1394e7),_0x1bf79d);});function _0x38367b(_0x4d21e6,_0x2f95e9,_0x2098a5,_0x3601dc,_0x186f2e){var _0xc5eea0=_0x46a98a;return _0x1293c7[_0xc5eea0(0x139)](_0x4d21e6['tag'],_0x17d120(_0x17d120({'key':_0x2f95e9},_0x3fb054(_0x4d21e6,_0x2098a5,_0x186f2e)),_0x3601dc),(_0x415208(_0x4d21e6,_0x2098a5)[_0xc5eea0(0x11b)]||[])[_0xc5eea0(0x12c)](function(_0x3343e5,_0x36dc14){var _0x5415b7=_0xc5eea0;return _0x38367b(_0x3343e5,''['concat'](_0x2f95e9,'-')[_0x5415b7(0x11f)](_0x4d21e6[_0x5415b7(0x144)],'-')[_0x5415b7(0x11f)](_0x36dc14),_0x2098a5,void 0x0,_0x186f2e);}));}function _0x3fb054(_0x2a2ac0,_0x4fc751,_0xbf2067){var _0x45a260=_0x46a98a,_0x270a3c=_0x17d120({},_0x2a2ac0[_0x45a260(0x12b)]);_0xbf2067!=null&&_0xbf2067['colorChannel1']&&_0x270a3c['fill']===_0x45a260(0xca)&&(_0x270a3c[_0x45a260(0x178)]=_0xbf2067['colorChannel1']),_0x2a2ac0[_0x45a260(0x144)]==='mask'&&_0x270a3c['id']&&(_0x270a3c['id']=_0x270a3c['id']+_0x4fc751[_0x45a260(0x12f)]),Object[_0x45a260(0x154)](_0x270a3c)['forEach'](function(_0x567901){var _0x49344e=_0x45a260,_0x96606d=_0x567901[0x0],_0x5eb473=_0x567901[0x1];_0x96606d===_0x49344e(0x165)&&typeof _0x5eb473==_0x49344e(0xcb)&&(_0x270a3c[_0x96606d]=_0x5eb473['replace'](/url\(#(.*)\)/,_0x49344e(0x18e)[_0x49344e(0x11f)](_0x4fc751[_0x49344e(0x12f)],')')));});var _0x3c8f83=_0x4fc751[_0x45a260(0x197)];return!_0x3c8f83||_0x3c8f83[_0x45a260(0x19d)]===0x0||(_0x2a2ac0[_0x45a260(0x144)]===_0x45a260(0x155)&&_0x270a3c[_0x45a260(0x11e)]&&(_0x270a3c[_0x45a260(0x11e)]=_0x270a3c[_0x45a260(0x11e)]+_0x4fc751[_0x45a260(0x12f)]),Object[_0x45a260(0x154)](_0x270a3c)['forEach'](function(_0x4524d5){var _0x5cea8d=_0x45a260,_0x3fa94b=_0x4524d5[0x0],_0x5700df=_0x4524d5[0x1];typeof _0x5700df==_0x5cea8d(0xcb)&&(_0x270a3c[_0x3fa94b]=_0x5700df[_0x5cea8d(0xe8)](/url\(#(.*)\)/,_0x5cea8d(0x18e)[_0x5cea8d(0x11f)](_0x4fc751[_0x5cea8d(0x12f)],')')));})),_0x270a3c;}function _0x415208(_0x54d16d,_0xfe3598){var _0x56d5bf=_0x46a98a,_0xe6994a,_0x1cff3b=_0xfe3598[_0x56d5bf(0x197)];return!_0x1cff3b||_0x1cff3b[_0x56d5bf(0x19d)]===0x0?_0x54d16d:_0x54d16d[_0x56d5bf(0x144)]===_0x56d5bf(0x133)&&(!((_0xe6994a=_0x54d16d['children'])===null||_0xe6994a===void 0x0)&&_0xe6994a[_0x56d5bf(0x19d)])?_0x17d120(_0x17d120({},_0x54d16d),{'children':_0x54d16d[_0x56d5bf(0x11b)][_0x56d5bf(0x12c)](function(_0xe8bb88){var _0x50233c=_0x56d5bf;return typeof _0xe8bb88[_0x50233c(0x12b)]['id']==_0x50233c(0xcb)&&_0x1cff3b&&_0x1cff3b[_0x50233c(0xf8)](_0xe8bb88[_0x50233c(0x12b)]['id'])?_0x17d120(_0x17d120({},_0xe8bb88),{'attrs':_0x17d120(_0x17d120({},_0xe8bb88[_0x50233c(0x12b)]),{'id':_0xe8bb88[_0x50233c(0x12b)]['id']+_0xfe3598['idSuffix']})}):_0xe8bb88;})}):_0x54d16d;}function _0x1f0803(){var _0x2efb10=_0x46a98a;return Math[_0x2efb10(0x185)]()[_0x2efb10(0x11a)](0x24)[_0x2efb10(0x10e)](0x2,0x8);}_0x4dea88['displayName']=_0x46a98a(0x17a);var _0x30e744={'tag':_0x46a98a(0x152),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x46a98a(0x143),'viewBox':_0x46a98a(0x105),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x46a98a(0xb8),'d':_0x46a98a(0xeb)}},{'tag':_0x46a98a(0xfa),'attrs':{'fill':'currentColor','d':_0x46a98a(0xdc),'fillRule':_0x46a98a(0x160),'clipRule':_0x46a98a(0x160)}}]},_0x12f278=_0x1293c7['forwardRef'](function(_0xa26eeb,_0x3ce9f1){var _0x340516=_0x46a98a;return _0x1293c7[_0x340516(0x139)](_0x4dea88,Object[_0x340516(0xf0)]({},_0xa26eeb,{'id':_0x340516(0xc0),'ref':_0x3ce9f1,'icon':_0x30e744}));});_0x12f278[_0x46a98a(0x195)]=_0x46a98a(0xdf);var _0x5c7d5a=Object[_0x46a98a(0x13a)],_0x2b3099=(_0x2b0d19,_0x4de8be,_0x2b2899,_0x12f86b)=>{var _0x1d4fc0=_0x46a98a;for(var _0x118922=_0x12f86b>0x1?void 0x0:_0x12f86b?_0x5c7d5a(_0x4de8be,_0x2b2899):_0x4de8be,_0x59300e=_0x2b0d19[_0x1d4fc0(0x19d)]-0x1,_0x330d13;_0x59300e>=0x0;_0x59300e--)(_0x330d13=_0x2b0d19[_0x59300e])&&(_0x118922=_0x330d13(_0x118922)||_0x118922);return _0x118922;},_0x536df9=(_0x378956,_0xd7ca38)=>(_0x2473d2,_0xee50ac)=>_0xd7ca38(_0x2473d2,_0xee50ac,_0x378956);_0x2218b7[_0x46a98a(0x162)]=class extends _0x5b5bf8[_0x46a98a(0x18c)]{constructor(_0x4b3858,_0x3b4eb5,_0xdb956f){var _0x369a9f=_0x46a98a;super(),_0x1a556a(this,_0x369a9f(0xb7),new Map()),(this[_0x369a9f(0xe4)]=_0x4b3858,this[_0x369a9f(0x16b)]=_0x3b4eb5,this['_collabSessionService']=_0xdb956f,this['_init']());}async[_0x46a98a(0xbb)](_0x511a06){var _0x2be0c6=_0x46a98a;return this[_0x2be0c6(0xb7)][_0x2be0c6(0x168)](_0x511a06)||await this[_0x2be0c6(0x131)](_0x511a06),this[_0x2be0c6(0xb7)][_0x2be0c6(0xdd)](_0x511a06);}['_init'](){var _0x208a76=_0x46a98a;this[_0x208a76(0xe4)][_0x208a76(0x184)](_0x5b5bf8[_0x208a76(0x177)][_0x208a76(0x176)])[_0x208a76(0x148)](_0x50284a[_0x208a76(0xbc)](this[_0x208a76(0x15d)]))['subscribe'](async _0x348ee8=>{var _0xc5619c=_0x208a76;const _0x55e625=_0x348ee8[_0xc5619c(0x19f)]();this[_0xc5619c(0xb7)][_0xc5619c(0x168)](_0x55e625)||this['_startLiveShareCoordinator'](_0x55e625);}),this['_univerInstanceService'][_0x208a76(0x10c)](_0x5b5bf8['UniverInstanceType'][_0x208a76(0x176)])[_0x208a76(0x148)](_0x50284a[_0x208a76(0xbc)](this[_0x208a76(0x15d)]))[_0x208a76(0x12a)](_0x47ec4a=>{var _0x3db50b=_0x208a76;const _0xc69747=_0x47ec4a[_0x3db50b(0x19f)](),_0x42c1f8=this['_entities'][_0x3db50b(0xdd)](_0xc69747);_0x42c1f8==null||_0x42c1f8['dispose']();});}async[_0x46a98a(0x131)](_0x11b761){var _0x1c6836=_0x46a98a;const _0x2367d2=await this[_0x1c6836(0x107)][_0x1c6836(0xc8)](_0x11b761),_0x147902=this[_0x1c6836(0x16b)]['createInstance'](_0x2218b7['LiveShareCoordinator'],_0x11b761,_0x2367d2);return _0x147902['init'](),this['_entities'][_0x1c6836(0x13b)](_0x11b761,_0x147902),_0x147902;}},_0x2218b7['LiveShareController']=_0x2b3099([_0x536df9(0x0,_0x5b5bf8[_0x46a98a(0x19e)]),_0x536df9(0x1,_0x5b5bf8[_0x46a98a(0xee)](_0x5b5bf8[_0x46a98a(0x194)])),_0x536df9(0x2,_0x5b5bf8[_0x46a98a(0xee)](_0x43b4b9[_0x46a98a(0xd1)]))],_0x2218b7[_0x46a98a(0x162)]);var _0x487aed=(_0x51a52a=>(_0x51a52a['OFFLINE']='offline',_0x51a52a[_0x46a98a(0xc2)]=_0x46a98a(0x14f),_0x51a52a['FOLLOWING']=_0x46a98a(0x1a5),_0x51a52a['NOT_FOLLOWING']=_0x46a98a(0x15b),_0x51a52a[_0x46a98a(0x121)]=_0x46a98a(0x11d),_0x51a52a))(_0x487aed||{});const _0x3b44a0=_0x46a98a(0x122),_0x1af8e2=0xc8;_0x2218b7['LiveShareCoordinator']=class extends _0x5b5bf8[_0x46a98a(0x18c)]{constructor(_0x39efe2,_0x549f9c,_0x38cbc2,_0x54ee10,_0x5455db){var _0x6a90=_0x46a98a;super(),_0x1a556a(this,_0x6a90(0x18b),new _0x3eff19[(_0x6a90(0xe9))](_0x6a90(0x14f))),_0x1a556a(this,_0x6a90(0x102),this[_0x6a90(0x18b)][_0x6a90(0xf5)]()),_0x1a556a(this,_0x6a90(0x142),!0x1),_0x1a556a(this,_0x6a90(0xf4),null),_0x1a556a(this,'_presenter',null),(this['_unitID']=_0x39efe2,this[_0x6a90(0xef)]=_0x549f9c,this['_configService']=_0x38cbc2,this[_0x6a90(0x14b)]=_0x54ee10,this[_0x6a90(0x159)]=_0x5455db);}get['_status'](){var _0x2441d8=_0x46a98a;return this['_status$'][_0x2441d8(0x1a0)]();}[_0x46a98a(0x128)](){var _0x21be57=_0x46a98a,_0x44b20d;(_0x44b20d=this[_0x21be57(0xf4)])==null||_0x44b20d[_0x21be57(0x128)](),this[_0x21be57(0x18b)]['next'](_0x21be57(0x14f)),this['_status$'][_0x21be57(0xba)]();}['init'](){var _0x1847f0=_0x46a98a;this['_init']||(this[_0x1847f0(0x142)]=!0x0,this[_0x1847f0(0xef)][_0x1847f0(0x13d)][_0x1847f0(0x148)](_0x50284a['takeUntil'](this[_0x1847f0(0x15d)]))['subscribe'](_0x53f35c=>{var _0x94fede=_0x1847f0;switch(_0x53f35c){case _0x43b4b9[_0x94fede(0x158)][_0x94fede(0x1a8)]:this[_0x94fede(0x1ad)]();break;case _0x43b4b9['SessionStatus'][_0x94fede(0x174)]:this[_0x94fede(0x163)]();break;}}),this[_0x1847f0(0xef)][_0x1847f0(0xf7)][_0x1847f0(0x148)](_0x50284a[_0x1847f0(0xbc)](this[_0x1847f0(0x15d)]))[_0x1847f0(0x12a)](_0x16d11a=>{var _0x3afb1d=_0x1847f0;const {eventID:_0x501829}=_0x16d11a;switch(_0x501829){case _0x33efac[_0x3afb1d(0x15c)][_0x3afb1d(0x135)]:this[_0x3afb1d(0x17c)](_0x16d11a);break;case _0x33efac['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x3afb1d(0xe0)](_0x16d11a);break;case _0x33efac['CollaborationEvent'][_0x3afb1d(0x132)]:this[_0x3afb1d(0x137)]();break;case _0x33efac[_0x3afb1d(0x15c)]['NEW_CHANGESETS']:this[_0x3afb1d(0xda)](_0x16d11a);break;}}));}[_0x46a98a(0x1ac)](){var _0x553dbf=_0x46a98a;this[_0x553dbf(0xef)]['send']({'eventID':_0x33efac[_0x553dbf(0x15c)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x553dbf(0x12d)],'userID':this[_0x553dbf(0xef)][_0x553dbf(0x119)]()}},this['_unitID']);}[_0x46a98a(0xe7)](){var _0x66103b=_0x46a98a;this[_0x66103b(0x19a)]===_0x66103b(0x11d)&&(this['_status$'][_0x66103b(0x1a7)]('idle'),this[_0x66103b(0xef)][_0x66103b(0x10a)]({'eventID':_0x33efac[_0x66103b(0x15c)][_0x66103b(0x132)],'data':{'unitID':this[_0x66103b(0x12d)]}},this[_0x66103b(0x12d)]));}[_0x46a98a(0x182)](){var _0xb23cc8=_0x46a98a;this[_0xb23cc8(0x19a)]===_0xb23cc8(0x15b)&&(this[_0xb23cc8(0x18b)][_0xb23cc8(0x1a7)]('following'),this[_0xb23cc8(0xbd)]());}['stopFollowing'](){var _0x3369ef=_0x46a98a;this[_0x3369ef(0x19a)]===_0x3369ef(0x1a5)&&this[_0x3369ef(0xec)]();}[_0x46a98a(0x17c)](_0x267e36){var _0x49bb8b=_0x46a98a;const {presenter:_0x5f0a18}=_0x267e36[_0x49bb8b(0x19b)],_0x408364=this[_0x49bb8b(0xef)]['getMemberID']();this[_0x49bb8b(0xea)]=_0x5f0a18,_0x5f0a18===_0x408364?(this['_stopFollowing'](),this[_0x49bb8b(0x14e)]()):this[_0x49bb8b(0x19a)]!==_0x49bb8b(0x15b)&&(this['_stopPresenting'](),this[_0x49bb8b(0xbd)]());}[_0x46a98a(0xbf)](){var _0x5e379b=_0x46a98a;const _0x20cc72={'eventID':_0x33efac['CollaborationEvent'][_0x5e379b(0x141)]};this[_0x5e379b(0xef)]['send'](_0x20cc72,this['_unitID']);}[_0x46a98a(0x137)](){var _0x96ea64=_0x46a98a;this[_0x96ea64(0xea)]=null,this[_0x96ea64(0x19a)]!==_0x96ea64(0x11d)&&this['_beIdle']();}[_0x46a98a(0xda)](_0xb9f24){var _0x4d2736=_0x46a98a;if(this[_0x4d2736(0x19a)]===_0x4d2736(0x1a5)&&this['_presenter']===_0xb9f24[_0x4d2736(0x19b)]['memberID']){const _0x3f6036=_0x33efac[_0x4d2736(0xfd)](_0xb9f24[_0x4d2736(0x19b)])[_0x4d2736(0x180)][_0x4d2736(0x1ae)]()[_0x4d2736(0x125)](_0x2648c7=>_0x2648c7['id']===_0x3e7f05['InsertSheetMutation']['id']);if(_0x3f6036){const _0x376df5=_0x3f6036[_0x4d2736(0x1aa)]['unitId'],_0x3632f3=_0x3f6036[_0x4d2736(0x1aa)]['sheet']['id'];setTimeout(()=>{var _0x3a1d59=_0x4d2736;this[_0x3a1d59(0x159)][_0x3a1d59(0x1a1)](_0x3e7f05[_0x3a1d59(0x138)]['id'],{'unitId':_0x376df5,'subUnitId':_0x3632f3},{'fromCollab':!0x0});});}}}[_0x46a98a(0x14e)](){var _0x115603=_0x46a98a;this[_0x115603(0x18b)][_0x115603(0x1a7)](_0x115603(0x11d));const _0x2986b9=new Map(),_0x1d362b=this[_0x115603(0xf4)]=new _0x5b5bf8[(_0x115603(0xf3))]();_0x1d362b['add'](_0x5b5bf8[_0x115603(0x157)](()=>{var _0x317c30=_0x115603;_0x2986b9['forEach'](_0x5ac6e9=>_0x5ac6e9[_0x317c30(0xba)]()),_0x2986b9[_0x317c30(0x134)]();})),_0x1d362b['add'](this[_0x115603(0x159)][_0x115603(0x146)](_0x3e9b87=>{var _0x27356d=_0x115603,_0x37c962;if(_0x3e9b87[_0x27356d(0x17b)]!==_0x5b5bf8[_0x27356d(0x188)][_0x27356d(0x1a4)]||!this[_0x27356d(0x14b)]['shouldShareOperation'](_0x3e9b87['id']))return;const {id:_0x4201d1}=_0x3e9b87;let _0x3c9cf6;_0x2986b9[_0x27356d(0x168)](_0x4201d1)?_0x3c9cf6=_0x2986b9[_0x27356d(0xdd)](_0x4201d1):(_0x3c9cf6=new _0x3eff19['Subject'](),_0x2986b9[_0x27356d(0x13b)](_0x4201d1,_0x3c9cf6),_0x3c9cf6['pipe'](_0x50284a[_0x27356d(0xfe)]((_0x37c962=this[_0x27356d(0x101)][_0x27356d(0xfb)](_0x3b44a0))!=null?_0x37c962:_0x1af8e2,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x27356d(0x12a)](_0x4ffa37=>{var _0x47bd7b=_0x27356d;this[_0x47bd7b(0xef)]['send']({'eventID':_0x33efac[_0x47bd7b(0x15c)][_0x47bd7b(0x109)],'data':{'unitID':this[_0x47bd7b(0x12d)],'operations':{[_0x4ffa37['id']]:{'id':_0x4ffa37['id'],'params':JSON[_0x47bd7b(0x115)](_0x4ffa37[_0x47bd7b(0x1aa)])}}}},this[_0x47bd7b(0x12d)]);})),_0x3c9cf6[_0x27356d(0x1a7)](_0x3e9b87);})),this[_0x115603(0x14b)][_0x115603(0x10d)](this[_0x115603(0x12d)])['forEach'](_0x570fbf=>this[_0x115603(0xef)][_0x115603(0x10a)]({'eventID':_0x33efac[_0x115603(0x15c)][_0x115603(0x109)],'data':{'unitID':this['_unitID'],'operations':{[_0x570fbf['id']]:{'id':_0x570fbf['id'],'params':JSON[_0x115603(0x115)](_0x570fbf[_0x115603(0x1aa)])}}}},this[_0x115603(0x12d)]));}[_0x46a98a(0xc6)](){var _0x48864a=_0x46a98a,_0x416dc5;this['_status$'][_0x48864a(0x1a7)](_0x48864a(0x14f)),(_0x416dc5=this[_0x48864a(0xf4)])==null||_0x416dc5['dispose'](),this[_0x48864a(0xf4)]=null;}[_0x46a98a(0xbd)](){var _0x330d5b=_0x46a98a,_0x672556;(_0x672556=this['_commandDisposable'])==null||_0x672556[_0x330d5b(0x128)](),this['_status$'][_0x330d5b(0x1a7)](_0x330d5b(0x1a5));}[_0x46a98a(0xc1)](){var _0x44771a=_0x46a98a,_0x3857a3;this[_0x44771a(0x18b)][_0x44771a(0x1a7)](_0x44771a(0x14f)),(_0x3857a3=this[_0x44771a(0xf4)])==null||_0x3857a3[_0x44771a(0x128)](),this[_0x44771a(0xf4)]=null;}['_stopFollowing'](){var _0x14e617=_0x46a98a,_0x46622e;this['_status$']['next'](_0x14e617(0x15b)),(_0x46622e=this['_commandDisposable'])==null||_0x46622e[_0x14e617(0x128)]();}[_0x46a98a(0xe0)](_0x4a23c8){var _0x8d148f=_0x46a98a;if([_0x8d148f(0x11d),'not-following',_0x8d148f(0x183)]['includes'](this[_0x8d148f(0x19a)])||!_0x4a23c8[_0x8d148f(0x19b)]['presenter']||_0x4a23c8[_0x8d148f(0x19b)][_0x8d148f(0xd3)]===this[_0x8d148f(0xef)][_0x8d148f(0x119)]())return;this[_0x8d148f(0x19a)]===_0x8d148f(0x14f)&&this[_0x8d148f(0xbd)]();const _0x256ccc=_0x4a23c8[_0x8d148f(0x19b)][_0x8d148f(0x117)];Object[_0x8d148f(0xf1)](_0x256ccc)[_0x8d148f(0x124)](_0x11b85d=>{var _0x44b7c2=_0x8d148f;this[_0x44b7c2(0x159)][_0x44b7c2(0x1a1)](_0x11b85d['id'],_0x11b85d[_0x44b7c2(0x1aa)]?JSON['parse'](_0x11b85d[_0x44b7c2(0x1aa)]):null,{'fromCollab':!0x0});});}[_0x46a98a(0x1ad)](){var _0x56380f=_0x46a98a,_0x3508d2;this['_status$'][_0x56380f(0x1a7)](_0x56380f(0x183)),(_0x3508d2=this[_0x56380f(0xf4)])==null||_0x3508d2[_0x56380f(0x128)]();}[_0x46a98a(0x163)](){var _0x10bafc=_0x46a98a;this[_0x10bafc(0x18b)][_0x10bafc(0x1a7)](_0x10bafc(0x14f)),this[_0x10bafc(0xbf)]();}},_0x2218b7['LiveShareCoordinator']=_0x2b3099([_0x536df9(0x2,_0x5b5bf8[_0x46a98a(0x196)]),_0x536df9(0x3,_0x5b5bf8['Inject'](_0x2f9b87)),_0x536df9(0x4,_0x5b5bf8[_0x46a98a(0x17e)])],_0x2218b7['LiveShareCoordinator']);function _0x33f6bf(){var _0x21d1e7=_0x46a98a;const _0x75e84f=_0xe30548['useDependency'](_0x2218b7[_0x21d1e7(0x162)]),_0xa3daff=_0xe30548[_0x21d1e7(0x10f)](_0x5b5bf8['IUniverInstanceService']),_0x42ab71=_0xe30548[_0x21d1e7(0xff)](()=>_0xa3daff['getCurrentTypeOfUnit$'](_0x5b5bf8[_0x21d1e7(0x177)][_0x21d1e7(0x176)]),void 0x0,!0x1,[]),[_0x1e0570,_0x433525]=_0x1293c7[_0x21d1e7(0x126)](null),[_0x44ab41,_0x13636e]=_0x1293c7[_0x21d1e7(0x126)](_0x487aed[_0x21d1e7(0xc2)]),_0x2f7cd5=_0x1293c7[_0x21d1e7(0x17f)](null);return _0x1293c7[_0x21d1e7(0x171)](()=>(_0x42ab71&&_0x75e84f[_0x21d1e7(0xbb)](_0x42ab71[_0x21d1e7(0x19f)]())[_0x21d1e7(0x16c)](_0x40a65e=>{var _0x414d35=_0x21d1e7;_0x433525(_0x40a65e),_0x2f7cd5['current']=_0x40a65e[_0x414d35(0x102)]['subscribe'](_0x90d854=>{_0x13636e(_0x90d854);});}),()=>{var _0x1048b4=_0x21d1e7,_0x307fd8;(_0x307fd8=_0x2f7cd5['current'])==null||_0x307fd8['unsubscribe'](),_0x2f7cd5[_0x1048b4(0x13f)]=null;}),[_0x42ab71,_0x75e84f]),_0x1e0570?_0x599832[_0x21d1e7(0x18f)](_0x5f0290[_0x21d1e7(0xe6)],{'align':'end','disabled':_0x44ab41===_0x487aed[_0x21d1e7(0x1a8)],'className':_0x21d1e7(0x1a3),'overlay':_0x599832[_0x21d1e7(0x18f)](_0x1368f3,{'status':_0x44ab41,'coordinator':_0x1e0570}),'children':_0x599832[_0x21d1e7(0x18f)](_0x21d1e7(0x170),{'className':_0x5f0290['clsx'](_0x21d1e7(0x11c),{'univer-cursor-not-allowed':_0x44ab41===_0x487aed[_0x21d1e7(0x1a8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x44ab41!==_0x487aed[_0x21d1e7(0x1a8)]}),'type':'button','children':_0x599832['jsx'](_0x12f278,{'className':'univer-size-4'})})}):null;}function _0x1368f3(_0x287437){var _0x4dbe4d=_0x46a98a;const {status:_0x5b8006,coordinator:_0xb68352}=_0x287437;switch(_0x5b8006){case _0x487aed['IDLE']:return _0x599832[_0x4dbe4d(0x18f)](_0x6e562b,{'coordinator':_0xb68352});case _0x487aed[_0x4dbe4d(0x190)]:return _0x599832[_0x4dbe4d(0x18f)](_0x93851a,{'coordinator':_0xb68352});case _0x487aed['NOT_FOLLOWING']:return _0x599832[_0x4dbe4d(0x18f)](_0x198ecf,{'coordinator':_0xb68352});case _0x487aed[_0x4dbe4d(0x1a8)]:return _0x599832[_0x4dbe4d(0x18f)](_0x5b8170,{});case _0x487aed[_0x4dbe4d(0x121)]:return _0x599832[_0x4dbe4d(0x18f)](_0x450952,{'coordinator':_0xb68352});default:return null;}}function _0x6e562b(_0x26f554){var _0x5e36b4=_0x46a98a;const {coordinator:_0x26b8b7}=_0x26f554;return _0x599832[_0x5e36b4(0x153)](_0x599832[_0x5e36b4(0x111)],{'children':[_0x599832[_0x5e36b4(0x18f)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5e36b4(0xb6)}),_0x599832[_0x5e36b4(0x18f)](_0x5f0290[_0x5e36b4(0x129)],{'onClick':()=>_0x26b8b7[_0x5e36b4(0x1ac)](),'children':_0x5e36b4(0x150)})]});}function _0x93851a(_0x2cd740){var _0x5b746a=_0x46a98a;const {coordinator:_0x47e2c2}=_0x2cd740;return _0x599832['jsxs'](_0x599832[_0x5b746a(0x111)],{'children':[_0x599832[_0x5b746a(0x18f)](_0x5b746a(0xd2),{'className':_0x5b746a(0x147),'children':_0x5b746a(0x175)}),_0x599832[_0x5b746a(0x18f)](_0x5f0290['Button'],{'onClick':()=>_0x47e2c2['stopFollowing'](),'children':_0x5b746a(0x18a)})]});}function _0x198ecf(_0x45ba21){var _0x2f5daf=_0x46a98a;const {coordinator:_0x5ef4c0}=_0x45ba21;return _0x599832['jsxs'](_0x599832[_0x2f5daf(0x111)],{'children':[_0x599832[_0x2f5daf(0x18f)](_0x2f5daf(0xd2),{'className':_0x2f5daf(0x147),'children':_0x2f5daf(0xf2)}),_0x599832[_0x2f5daf(0x18f)](_0x5f0290[_0x2f5daf(0x129)],{'variant':_0x2f5daf(0xce),'onClick':()=>_0x5ef4c0[_0x2f5daf(0x182)](),'children':_0x2f5daf(0x106)})]});}function _0x450952(_0x2fc33a){var _0x34a2fa=_0x46a98a;const {coordinator:_0xc9d2f2}=_0x2fc33a;return _0x599832[_0x34a2fa(0x153)](_0x599832[_0x34a2fa(0x111)],{'children':[_0x599832[_0x34a2fa(0x18f)](_0x34a2fa(0xd2),{'className':_0x34a2fa(0x147),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x599832[_0x34a2fa(0x18f)](_0x5f0290[_0x34a2fa(0x129)],{'variant':_0x34a2fa(0xd0),'onClick':()=>_0xc9d2f2[_0x34a2fa(0xe7)](),'children':'Stop\x20presenting'})]});}function _0x5b8170(){var _0x31b232=_0x46a98a;return _0x599832[_0x31b232(0x18f)](_0x599832[_0x31b232(0x111)],{'children':_0x31b232(0xf9)});}var _0x52e7b8=Object[_0x46a98a(0x13a)],_0x2362ce=(_0x1e5b70,_0x50e536,_0x57e054,_0x4310fd)=>{for(var _0x2bef8f=_0x4310fd>0x1?void 0x0:_0x4310fd?_0x52e7b8(_0x50e536,_0x57e054):_0x50e536,_0x21bd85=_0x1e5b70['length']-0x1,_0x4bb832;_0x21bd85>=0x0;_0x21bd85--)(_0x4bb832=_0x1e5b70[_0x21bd85])&&(_0x2bef8f=_0x4bb832(_0x2bef8f)||_0x2bef8f);return _0x2bef8f;},_0x3d2571=(_0x209088,_0xd2b5aa)=>(_0x28fea4,_0x5ea3c3)=>_0xd2b5aa(_0x28fea4,_0x5ea3c3,_0x209088);_0x2218b7[_0x46a98a(0x169)]=class extends _0x5b5bf8[_0x46a98a(0x191)]{constructor(_0x1d85a7,_0x165d0d){var _0x4ca064=_0x46a98a;super(),this[_0x4ca064(0x16b)]=_0x1d85a7,this[_0x4ca064(0x113)]=_0x165d0d,this['_mountLiveShare']();}[_0x46a98a(0x18d)](){var _0xa2c6ff=_0x46a98a;this[_0xa2c6ff(0x15f)](this[_0xa2c6ff(0x113)][_0xa2c6ff(0x199)](_0xe30548[_0xa2c6ff(0x161)][_0xa2c6ff(0x164)],()=>_0xe30548['connectInjector'](_0x33f6bf,this[_0xa2c6ff(0x16b)])));}},_0x2218b7[_0x46a98a(0x169)]=_0x2362ce([_0x3d2571(0x0,_0x5b5bf8[_0x46a98a(0xee)](_0x5b5bf8['Injector'])),_0x3d2571(0x1,_0xe30548['IUIPartsService'])],_0x2218b7[_0x46a98a(0x169)]);var _0x3f32f8=Object[_0x46a98a(0x130)],_0x41f524=Object[_0x46a98a(0x13a)],_0x4ecf32=(_0x21e1d9,_0x227407,_0x132431)=>_0x227407 in _0x21e1d9?_0x3f32f8(_0x21e1d9,_0x227407,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x132431}):_0x21e1d9[_0x227407]=_0x132431,_0x3cd59f=(_0x202ebb,_0x3f8361,_0x1e2e41,_0x357d29)=>{var _0x471315=_0x46a98a;for(var _0x5102e3=_0x357d29>0x1?void 0x0:_0x357d29?_0x41f524(_0x3f8361,_0x1e2e41):_0x3f8361,_0x2782b4=_0x202ebb[_0x471315(0x19d)]-0x1,_0x395b53;_0x2782b4>=0x0;_0x2782b4--)(_0x395b53=_0x202ebb[_0x2782b4])&&(_0x5102e3=_0x395b53(_0x5102e3)||_0x5102e3);return _0x5102e3;},_0x1b7c91=(_0x34ebae,_0x27e55f)=>(_0x3ef52f,_0x4021dd)=>_0x27e55f(_0x3ef52f,_0x4021dd,_0x34ebae),_0x1476f8=(_0x32e0ff,_0x312ec5,_0x1f1127)=>_0x4ecf32(_0x32e0ff,typeof _0x312ec5!='symbol'?_0x312ec5+'':_0x312ec5,_0x1f1127);const _0xd3ff3d=_0x46a98a(0x127);_0x2218b7['UniverLiveSharePlugin']=class extends _0x5b5bf8[_0x46a98a(0x123)]{constructor(_0x23abbb=_0x2b9a67,_0x120c94,_0x35d22e){var _0x54142c=_0x46a98a;super(),this['_config']=_0x23abbb,this[_0x54142c(0x16b)]=_0x120c94,this[_0x54142c(0x101)]=_0x35d22e;const {..._0x289864}=_0x5b5bf8[_0x54142c(0x140)]({},_0x2b9a67,this[_0x54142c(0xcd)]);this[_0x54142c(0x101)][_0x54142c(0xdb)](_0x9a3251,_0x289864);}[_0x46a98a(0xc5)](){var _0x1db64d=_0x46a98a;_0x5b5bf8[_0x1db64d(0x120)](this[_0x1db64d(0x16b)],_0x5b5bf8[_0x1db64d(0x16e)]([[_0x2f9b87],[_0x2218b7[_0x1db64d(0x162)]],[_0x456c85],[_0x2218b7[_0x1db64d(0x169)]]],this[_0x1db64d(0xcd)][_0x1db64d(0x149)])),_0x5b5bf8['touchDependencies'](this[_0x1db64d(0x16b)],[[_0x456c85]]);}[_0x46a98a(0x151)](){var _0x205193=_0x46a98a;_0x5b5bf8[_0x205193(0x192)](this[_0x205193(0x16b)],[[_0x2218b7[_0x205193(0x169)]]]);}},_0x1476f8(_0x2218b7[_0x46a98a(0x1a6)],_0x46a98a(0x17b),_0x5b5bf8[_0x46a98a(0x177)][_0x46a98a(0x116)]),_0x1476f8(_0x2218b7[_0x46a98a(0x1a6)],'pluginName',_0xd3ff3d),_0x2218b7[_0x46a98a(0x1a6)]=_0x3cd59f([_0x5b5bf8[_0x46a98a(0x13c)](_0x43b4b9['UniverCollaborationClientPlugin']),_0x1b7c91(0x1,_0x5b5bf8['Inject'](_0x5b5bf8[_0x46a98a(0x194)])),_0x1b7c91(0x2,_0x5b5bf8[_0x46a98a(0x196)])],_0x2218b7[_0x46a98a(0x1a6)]),_0x2218b7[_0x46a98a(0x187)]=_0x33f6bf,_0x2218b7[_0x46a98a(0x1a2)]=_0x2f9b87,_0x2218b7[_0x46a98a(0x136)]=_0x487aed,Object[_0x46a98a(0x130)](_0x2218b7,Symbol[_0x46a98a(0x198)],{'value':_0x46a98a(0xe3)});}));function _0x2303(_0x414f9e,_0x2ff546){var _0x5d0e84=_0x5d0e();return _0x2303=function(_0x2303a2,_0x161ec7){_0x2303a2=_0x2303a2-0xb6;var _0x1127c8=_0x5d0e84[_0x2303a2];return _0x1127c8;},_0x2303(_0x414f9e,_0x2ff546);}function _0x5d0e(){var _0x1cba5b=['default','CollaborationSessionService','div','presenter','object','live-share.config','function','registerInitialStateReporter','propertyIsEnumerable','@univerjs/ui','_handleNewChangeSets','setConfig','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','get','UniverUi','LiveShareIcon','_handleOperation','9izHSMz','extend','Module','_univerInstanceService','1191017vYAsaL','Dropdown','stopPresenting','replace','BehaviorSubject','_presenter','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_stopFollowing','8085YxBKCs','Inject','_collabSession','assign','values','You\x27re\x20not\x20following\x20the\x20presenter','DisposableCollection','_commandDisposable','asObservable','11076HEAkIB','event$','includes','You\x27are\x20offline.','path','getConfig','UniverSheetsUi','parseProtocolChangeset','throttleTime','useObservable','hasOwnProperty','_configService','status$','forwardRef','SetScrollOperation','0\x200\x2017\x2017','Start\x20following','_collabSessionService','@univerjs/sheets-ui','LIVESHARE_OPERATION','send','SetZoomRatioOperation','getTypeOfUnitDisposed$','getInitialStates','substring','useDependency','884DxZAQM','Fragment','amd','_uiPartsService','_reporters','stringify','UNIVER_UNKNOWN','operations','@univerjs/design','getMemberID','toString','children','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenting','xlink:href','concat','registerDependencies','PRESENTING','SAME_OPERATION_SHARE_INTERVAL','Plugin','forEach','find','useState','UNIVER_LIVE_SHARE_PLUGIN','dispose','Button','subscribe','attrs','map','_unitID','from','idSuffix','defineProperty','_startLiveShareCoordinator','LIVESHARE_TERMINATE','defs','clear','LIVESHARE_NEW_HOST','LiveShareStatus','_handleTerminate','SetWorksheetActiveOperation','createElement','getOwnPropertyDescriptor','set','DependentOn','sessionStatus$','_sharedOperations','current','merge','LIVESHARE_FETCH_OPERATIONS','_init','none','tag','378ynCXxh','onCommandExecuted','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','override','UniverProLiveShare','_liveShareService','@univerjs/core','18ySkNDt','_startPresenting','idle','Start','onRendered','svg','jsxs','entries','use','icon','toDisposable','SessionStatus','_commandService','registerSharedOperation','not-following','CollaborationEvent','dispose$','operators','disposeWithMe','evenodd','BuiltInUIPart','LiveShareController','_handleOnline','HEADER_MENU','mask','getOwnPropertySymbols','indexOf','has','DesktopLiveShareController','call','_injector','then','UniverCore','mergeOverrideWithDependencies','rxjs/operators','button','useEffect','add','11813020CEvSye','ONLINE','You\x27re\x20following\x20the\x20presenter','UNIVER_SHEET','UniverInstanceType','fill','react/jsx-runtime','UniverIcon','type','_handleNewHost','className','ICommandService','useRef','mutations','react','startFollowing','offline','getTypeOfUnitAdded$','random','symbol','LiveShare','CommandType','17897oVbQlB','Stop\x20following','_status$','RxDisposable','_mountLiveShare','url(#$1','jsx','FOLLOWING','Disposable','touchDependencies','prototype','Injector','displayName','IConfigService','defIds','toStringTag','registerComponent','_status','data','@univerjs/sheets','length','IUniverInstanceService','getUnitId','getValue','executeCommand','LiveShareService','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','OPERATION','following','UniverLiveSharePlugin','next','OFFLINE','150288gXOAwt','params','1086170MHdHUw','tryStartPresenting','_handleOffline','reverse','Present\x20this\x20document','_entities','currentColor','React','complete','getLiveShareCoordinator','takeUntil','_startFollowing','UniverProCollaborationClient','_fetchOperations','live-share-icon','_beIdle','IDLE','UniverProCollaboration','delete','onStarting','_stopPresenting','exports','requireSession','shouldShareOperation','colorChannel1','string','rxjs','_config','text','19119REEIJx'];_0x5d0e=function(){return _0x1cba5b;};return _0x5d0e();}
|
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",
|
|
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/
|
|
54
|
-
"@univerjs/sheets": "0.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.0",
|
|
52
|
+
"@univerjs/core": "0.10.0",
|
|
53
|
+
"@univerjs/sheets": "0.10.0",
|
|
54
|
+
"@univerjs/sheets-ui": "0.10.0",
|
|
55
|
+
"@univerjs/ui": "0.10.0",
|
|
56
|
+
"@univerjs/design": "0.10.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^7.0.6",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs
|
|
67
|
-
"@univerjs/
|
|
66
|
+
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
67
|
+
"@univerjs-infra/shared": "0.10.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|