@univerjs-pro/live-share 0.10.10-nightly.202510170942 → 0.10.10-nightly.202510180256
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 _0x471a0d=_0x4657;(function(_0x4cbc26,_0x2a49d7){var _0x2411d4=_0x4657,_0x13d9a3=_0x4cbc26();while(!![]){try{var _0x11df4b=-parseInt(_0x2411d4(0x1a6))/0x1+parseInt(_0x2411d4(0x1c1))/0x2+parseInt(_0x2411d4(0x19d))/0x3*(parseInt(_0x2411d4(0x1e8))/0x4)+-parseInt(_0x2411d4(0x111))/0x5*(parseInt(_0x2411d4(0x16b))/0x6)+-parseInt(_0x2411d4(0x178))/0x7*(-parseInt(_0x2411d4(0x1ab))/0x8)+parseInt(_0x2411d4(0x119))/0x9*(-parseInt(_0x2411d4(0x1e1))/0xa)+parseInt(_0x2411d4(0x1ef))/0xb*(parseInt(_0x2411d4(0x161))/0xc);if(_0x11df4b===_0x2a49d7)break;else _0x13d9a3['push'](_0x13d9a3['shift']());}catch(_0x5be28e){_0x13d9a3['push'](_0x13d9a3['shift']());}}}(_0x5c70,0x2b6a4));var U=Object['defineProperty'],F=(_0x25fe95,_0x5b38c4,_0x104d4d)=>_0x5b38c4 in _0x25fe95?U(_0x25fe95,_0x5b38c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104d4d}):_0x25fe95[_0x5b38c4]=_0x104d4d,v=(_0x54c128,_0x2cdfba,_0x470d6c)=>F(_0x54c128,typeof _0x2cdfba!=_0x471a0d(0x1ea)?_0x2cdfba+'':_0x2cdfba,_0x470d6c);Object[_0x471a0d(0x15d)](exports,Symbol[_0x471a0d(0x1a5)],{'value':_0x471a0d(0x151)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x311f37=_0x471a0d;return u=Object[_0x311f37(0x121)]||function(_0x3d00db){var _0x5ba8da=_0x311f37;for(var _0x2c35ac,_0x1c57f8=0x1,_0x2c345a=arguments[_0x5ba8da(0x1cf)];_0x1c57f8<_0x2c345a;_0x1c57f8++){_0x2c35ac=arguments[_0x1c57f8];for(var _0x109a33 in _0x2c35ac)Object[_0x5ba8da(0x156)]['hasOwnProperty'][_0x5ba8da(0x1c9)](_0x2c35ac,_0x109a33)&&(_0x3d00db[_0x109a33]=_0x2c35ac[_0x109a33]);}return _0x3d00db;},u[_0x311f37(0x1ae)](this,arguments);},$=function(_0x15cc5c,_0x137db8){var _0x3164f3=_0x471a0d,_0x1c228c={};for(var _0x28c775 in _0x15cc5c)Object[_0x3164f3(0x156)]['hasOwnProperty'][_0x3164f3(0x1c9)](_0x15cc5c,_0x28c775)&&_0x137db8[_0x3164f3(0x152)](_0x28c775)<0x0&&(_0x1c228c[_0x28c775]=_0x15cc5c[_0x28c775]);if(_0x15cc5c!=null&&typeof Object[_0x3164f3(0x1c6)]==_0x3164f3(0x1ed)){for(var _0x4e8221=0x0,_0x28c775=Object['getOwnPropertySymbols'](_0x15cc5c);_0x4e8221<_0x28c775['length'];_0x4e8221++)_0x137db8[_0x3164f3(0x152)](_0x28c775[_0x4e8221])<0x0&&Object['prototype'][_0x3164f3(0x13c)][_0x3164f3(0x1c9)](_0x15cc5c,_0x28c775[_0x4e8221])&&(_0x1c228c[_0x28c775[_0x4e8221]]=_0x15cc5c[_0x28c775[_0x4e8221]]);}return _0x1c228c;},j=f[_0x471a0d(0x160)](function(_0xfad191,_0x3fb068){var _0x438a30=_0x471a0d,_0x4e75da=_0xfad191[_0x438a30(0x1df)],_0x1d5212=_0xfad191['id'],_0x4b2990=_0xfad191[_0x438a30(0x117)],_0x34cdc3=_0xfad191[_0x438a30(0x1d4)],_0x2fe601=$(_0xfad191,[_0x438a30(0x1df),'id',_0x438a30(0x117),_0x438a30(0x1d4)]),_0x2399f3=_0x438a30(0x19a)[_0x438a30(0x1b1)](_0x1d5212,'\x20')[_0x438a30(0x1b1)](_0x4b2990||'')[_0x438a30(0x11a)](),_0x2d396c=f['useRef']('_'['concat'](k()));return y(_0x4e75da,''[_0x438a30(0x1b1)](_0x1d5212),{'defIds':_0x4e75da[_0x438a30(0x19b)],'idSuffix':_0x2d396c['current']},u({'ref':_0x3fb068,'className':_0x2399f3},_0x2fe601),_0x34cdc3);});function y(_0x469185,_0xfbfeb0,_0x1ae6ca,_0x159ab2,_0x579be1){var _0x382dc0=_0x471a0d;return f[_0x382dc0(0x1b0)](_0x469185['tag'],u(u({'key':_0xfbfeb0},H(_0x469185,_0x1ae6ca,_0x579be1)),_0x159ab2),(V(_0x469185,_0x1ae6ca)[_0x382dc0(0x1af)]||[])[_0x382dc0(0x1eb)](function(_0x20375d,_0x517ffc){var _0x140b71=_0x382dc0;return y(_0x20375d,''['concat'](_0xfbfeb0,'-')[_0x140b71(0x1b1)](_0x469185[_0x140b71(0x1bc)],'-')[_0x140b71(0x1b1)](_0x517ffc),_0x1ae6ca,void 0x0,_0x579be1);}));}function H(_0x25fb15,_0x3962f4,_0x2441d0){var _0x19119c=_0x471a0d,_0x4aeaa0=u({},_0x25fb15[_0x19119c(0x13e)]);_0x2441d0!=null&&_0x2441d0['colorChannel1']&&_0x4aeaa0['fill']===_0x19119c(0x17b)&&(_0x4aeaa0['fill']=_0x2441d0['colorChannel1']),_0x25fb15[_0x19119c(0x1bc)]===_0x19119c(0x13f)&&_0x4aeaa0['id']&&(_0x4aeaa0['id']=_0x4aeaa0['id']+_0x3962f4[_0x19119c(0x18d)]),Object[_0x19119c(0x12f)](_0x4aeaa0)[_0x19119c(0x184)](function(_0x104ac5){var _0x5c7cbe=_0x19119c,_0x146e3e=_0x104ac5[0x0],_0xa10a7c=_0x104ac5[0x1];_0x146e3e===_0x5c7cbe(0x13f)&&typeof _0xa10a7c==_0x5c7cbe(0x17d)&&(_0x4aeaa0[_0x146e3e]=_0xa10a7c[_0x5c7cbe(0x192)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3962f4[_0x5c7cbe(0x18d)],')')));});var _0x1c2b58=_0x3962f4['defIds'];return!_0x1c2b58||_0x1c2b58[_0x19119c(0x1cf)]===0x0||(_0x25fb15['tag']===_0x19119c(0x170)&&_0x4aeaa0[_0x19119c(0x1c0)]&&(_0x4aeaa0[_0x19119c(0x1c0)]=_0x4aeaa0[_0x19119c(0x1c0)]+_0x3962f4[_0x19119c(0x18d)]),Object[_0x19119c(0x12f)](_0x4aeaa0)[_0x19119c(0x184)](function(_0x133eeb){var _0x4868f4=_0x19119c,_0x32a566=_0x133eeb[0x0],_0x119bf3=_0x133eeb[0x1];typeof _0x119bf3=='string'&&(_0x4aeaa0[_0x32a566]=_0x119bf3[_0x4868f4(0x192)](/url\(#(.*)\)/,'url(#$1'[_0x4868f4(0x1b1)](_0x3962f4[_0x4868f4(0x18d)],')')));})),_0x4aeaa0;}function V(_0x5f2bed,_0x12aa5c){var _0x1208b6=_0x471a0d,_0x54f049,_0x41b759=_0x12aa5c[_0x1208b6(0x19b)];return!_0x41b759||_0x41b759[_0x1208b6(0x1cf)]===0x0?_0x5f2bed:_0x5f2bed['tag']===_0x1208b6(0x177)&&(!((_0x54f049=_0x5f2bed[_0x1208b6(0x1af)])===null||_0x54f049===void 0x0)&&_0x54f049[_0x1208b6(0x1cf)])?u(u({},_0x5f2bed),{'children':_0x5f2bed[_0x1208b6(0x1af)][_0x1208b6(0x1eb)](function(_0x23a720){var _0x15e1ce=_0x1208b6;return typeof _0x23a720['attrs']['id']==_0x15e1ce(0x17d)&&_0x41b759&&_0x41b759['includes'](_0x23a720[_0x15e1ce(0x13e)]['id'])?u(u({},_0x23a720),{'attrs':u(u({},_0x23a720[_0x15e1ce(0x13e)]),{'id':_0x23a720['attrs']['id']+_0x12aa5c[_0x15e1ce(0x18d)]})}):_0x23a720;})}):_0x5f2bed;}function k(){var _0x1354a4=_0x471a0d;return Math[_0x1354a4(0x1b6)]()[_0x1354a4(0x1bb)](0x24)[_0x1354a4(0x1d0)](0x2,0x8);}j[_0x471a0d(0x1d8)]=_0x471a0d(0x115);var M={'tag':'svg','attrs':{'xmlns':_0x471a0d(0x179),'fill':_0x471a0d(0x1d3),'viewBox':_0x471a0d(0x145),'width':'1em','height':_0x471a0d(0x1b4)},'children':[{'tag':'path','attrs':{'fill':_0x471a0d(0x1e0),'d':_0x471a0d(0x15f)}},{'tag':'path','attrs':{'fill':_0x471a0d(0x1e0),'d':_0x471a0d(0x1e4),'fillRule':_0x471a0d(0x1e5),'clipRule':'evenodd'}}]},P=f[_0x471a0d(0x160)](function(_0xe3e355,_0x59d386){var _0x1e58db=_0x471a0d;return f['createElement'](j,Object[_0x1e58db(0x121)]({},_0xe3e355,{'id':_0x1e58db(0x15b),'ref':_0x59d386,'icon':M}));});P['displayName']=_0x471a0d(0x11d);class O extends o['Disposable']{constructor(){var _0x3151b9=_0x471a0d;super(...arguments),v(this,_0x3151b9(0x1da),new Set()),v(this,_0x3151b9(0x12d),new Set());}[_0x471a0d(0x1b2)](_0x426330){var _0x3f82de=_0x471a0d;return this[_0x3f82de(0x1da)]['add'](_0x426330),o[_0x3f82de(0x1b7)](()=>this[_0x3f82de(0x1da)][_0x3f82de(0x129)](_0x426330));}[_0x471a0d(0x13d)](_0x36344d){var _0x59cf26=_0x471a0d;return this[_0x59cf26(0x12d)][_0x59cf26(0x1d9)](_0x36344d),o[_0x59cf26(0x1b7)](()=>this[_0x59cf26(0x12d)][_0x59cf26(0x129)](_0x36344d));}[_0x471a0d(0x174)](_0x1ec9ab){var _0x154349=_0x471a0d;return this['_sharedOperations'][_0x154349(0x12c)](_0x1ec9ab);}['getInitialStates'](_0x35215f){var _0x9e2bbb=_0x471a0d;return Array[_0x9e2bbb(0x1bd)](this['_reporters'])['map'](_0x447285=>_0x447285(_0x35215f));}}var q=Object[_0x471a0d(0x1e6)],R=(_0x437e5a,_0x301583,_0x396d5f,_0x3f0a0d)=>{for(var _0x6c447f=_0x3f0a0d>0x1?void 0x0:_0x3f0a0d?q(_0x301583,_0x396d5f):_0x301583,_0x389e27=_0x437e5a['length']-0x1,_0x529e34;_0x389e27>=0x0;_0x389e27--)(_0x529e34=_0x437e5a[_0x389e27])&&(_0x6c447f=_0x529e34(_0x6c447f)||_0x6c447f);return _0x6c447f;},S=(_0x11e664,_0x3cdbdc)=>(_0x56a6bc,_0x4b6a3d)=>_0x3cdbdc(_0x56a6bc,_0x4b6a3d,_0x11e664);exports[_0x471a0d(0x1be)]=class extends o[_0x471a0d(0x1b9)]{constructor(_0x153d9c,_0x972abb,_0x5a1cdf){var _0x4d9443=_0x471a0d;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x153d9c,this[_0x4d9443(0x17a)]=_0x972abb,this[_0x4d9443(0x168)]=_0x5a1cdf,this[_0x4d9443(0x140)]());}async[_0x471a0d(0x1d6)](_0x2867e6){var _0x46d4aa=_0x471a0d;return this[_0x46d4aa(0x19e)]['has'](_0x2867e6)||await this[_0x46d4aa(0x18a)](_0x2867e6),this[_0x46d4aa(0x19e)][_0x46d4aa(0x173)](_0x2867e6);}[_0x471a0d(0x140)](){var _0x20a649=_0x471a0d;this[_0x20a649(0x1c3)]['getTypeOfUnitAdded$'](o[_0x20a649(0x15c)][_0x20a649(0x137)])['pipe'](b[_0x20a649(0x147)](this['dispose$']))['subscribe'](async _0x17fedd=>{var _0x5d999b=_0x20a649;const _0x206744=_0x17fedd[_0x5d999b(0x149)]();this[_0x5d999b(0x19e)][_0x5d999b(0x12c)](_0x206744)||this['_startLiveShareCoordinator'](_0x206744);}),this[_0x20a649(0x1c3)][_0x20a649(0x11c)](o['UniverInstanceType'][_0x20a649(0x137)])[_0x20a649(0x1d5)](b['takeUntil'](this[_0x20a649(0x199)]))['subscribe'](_0x160932=>{var _0x32ac10=_0x20a649;const _0x222cb5=_0x160932[_0x32ac10(0x149)](),_0x5a6510=this[_0x32ac10(0x19e)][_0x32ac10(0x173)](_0x222cb5);_0x5a6510==null||_0x5a6510['dispose']();});}async['_startLiveShareCoordinator'](_0x530260){var _0x10a8f7=_0x471a0d;const _0x8c417e=await this[_0x10a8f7(0x168)][_0x10a8f7(0x1cc)](_0x530260),_0x276885=this[_0x10a8f7(0x17a)]['createInstance'](exports[_0x10a8f7(0x114)],_0x530260,_0x8c417e);return _0x276885['init'](),this['_entities']['set'](_0x530260,_0x276885),_0x276885;}},exports[_0x471a0d(0x1be)]=R([S(0x0,o[_0x471a0d(0x12e)]),S(0x1,o[_0x471a0d(0x1c8)](o['Injector'])),S(0x2,o['Inject'](m[_0x471a0d(0x171)]))],exports[_0x471a0d(0x1be)]);var h=(_0x42e12e=>(_0x42e12e[_0x471a0d(0x1c4)]=_0x471a0d(0x194),_0x42e12e['IDLE']=_0x471a0d(0x16c),_0x42e12e[_0x471a0d(0x148)]=_0x471a0d(0x11e),_0x42e12e[_0x471a0d(0x1a0)]=_0x471a0d(0x11f),_0x42e12e['PRESENTING']=_0x471a0d(0x143),_0x42e12e))(h||{});const W=_0x471a0d(0x18e),G=0xc8;exports[_0x471a0d(0x114)]=class extends o[_0x471a0d(0x1b9)]{constructor(_0xc190ab,_0x68e809,_0x651a8e,_0x3ea704,_0x39c658){var _0xdcf189=_0x471a0d;super(),v(this,_0xdcf189(0x158),new w[(_0xdcf189(0x122))](_0xdcf189(0x16c))),v(this,_0xdcf189(0x12b),this[_0xdcf189(0x158)][_0xdcf189(0x1b8)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0xdcf189(0x116)]=_0xc190ab,this['_collabSession']=_0x68e809,this[_0xdcf189(0x154)]=_0x651a8e,this[_0xdcf189(0x14a)]=_0x3ea704,this[_0xdcf189(0x187)]=_0x39c658);}get[_0x471a0d(0x1db)](){var _0x201e85=_0x471a0d;return this[_0x201e85(0x158)][_0x201e85(0x197)]();}[_0x471a0d(0x181)](){var _0x19f5e3=_0x471a0d,_0x5d530a;(_0x5d530a=this[_0x19f5e3(0x157)])==null||_0x5d530a[_0x19f5e3(0x181)](),this['_status$']['next'](_0x19f5e3(0x16c)),this[_0x19f5e3(0x158)][_0x19f5e3(0x1ee)]();}[_0x471a0d(0x1f0)](){var _0x20df57=_0x471a0d;this[_0x20df57(0x140)]||(this[_0x20df57(0x140)]=!0x0,this['_collabSession'][_0x20df57(0x1d2)][_0x20df57(0x1d5)](b['takeUntil'](this[_0x20df57(0x199)]))[_0x20df57(0x18f)](_0x2f5439=>{var _0x2a7bba=_0x20df57;switch(_0x2f5439){case m[_0x2a7bba(0x14c)][_0x2a7bba(0x1c4)]:this[_0x2a7bba(0x1ce)]();break;case m[_0x2a7bba(0x14c)][_0x2a7bba(0x16a)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x20df57(0x1d5)](b[_0x20df57(0x147)](this[_0x20df57(0x199)]))[_0x20df57(0x18f)](_0xc67bd2=>{var _0x2a5937=_0x20df57;const {eventID:_0x1bc179}=_0xc67bd2;switch(_0x1bc179){case _['CollaborationEvent'][_0x2a5937(0x1a7)]:this[_0x2a5937(0x1a2)](_0xc67bd2);break;case _[_0x2a5937(0x113)]['LIVESHARE_OPERATION']:this[_0x2a5937(0x1a9)](_0xc67bd2);break;case _[_0x2a5937(0x113)]['LIVESHARE_TERMINATE']:this[_0x2a5937(0x167)]();break;case _[_0x2a5937(0x113)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0xc67bd2);break;}}));}[_0x471a0d(0x176)](){var _0xfe9fa7=_0x471a0d;this['_collabSession'][_0xfe9fa7(0x131)]({'eventID':_[_0xfe9fa7(0x113)][_0xfe9fa7(0x182)],'data':{'unitID':this['_unitID'],'userID':this[_0xfe9fa7(0x1ca)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){var _0xcb32ce=_0x471a0d;this[_0xcb32ce(0x1db)]===_0xcb32ce(0x143)&&(this['_status$'][_0xcb32ce(0x132)]('idle'),this[_0xcb32ce(0x1ca)][_0xcb32ce(0x131)]({'eventID':_[_0xcb32ce(0x113)][_0xcb32ce(0x127)],'data':{'unitID':this[_0xcb32ce(0x116)]}},this[_0xcb32ce(0x116)]));}[_0x471a0d(0x164)](){var _0x15aa98=_0x471a0d;this['_status']===_0x15aa98(0x11f)&&(this[_0x15aa98(0x158)][_0x15aa98(0x132)](_0x15aa98(0x11e)),this[_0x15aa98(0x198)]());}[_0x471a0d(0x19c)](){var _0x53cc37=_0x471a0d;this[_0x53cc37(0x1db)]===_0x53cc37(0x11e)&&this[_0x53cc37(0x14b)]();}['_handleNewHost'](_0x5b7e2b){var _0x49e49c=_0x471a0d;const {presenter:_0x4f125a}=_0x5b7e2b[_0x49e49c(0x189)],_0x5eb56e=this[_0x49e49c(0x1ca)][_0x49e49c(0x1dd)]();this[_0x49e49c(0x1e2)]=_0x4f125a,_0x4f125a===_0x5eb56e?(this['_stopFollowing'](),this[_0x49e49c(0x14f)]()):this[_0x49e49c(0x1db)]!==_0x49e49c(0x11f)&&(this[_0x49e49c(0x169)](),this['_startFollowing']());}[_0x471a0d(0x16d)](){var _0x91ae12=_0x471a0d;const _0x6a8f76={'eventID':_[_0x91ae12(0x113)][_0x91ae12(0x126)]};this[_0x91ae12(0x1ca)][_0x91ae12(0x131)](_0x6a8f76,this[_0x91ae12(0x116)]);}[_0x471a0d(0x167)](){var _0x65fdda=_0x471a0d;this[_0x65fdda(0x1e2)]=null,this[_0x65fdda(0x1db)]!==_0x65fdda(0x143)&&this[_0x65fdda(0x1a4)]();}[_0x471a0d(0x128)](_0x27cb99){var _0x1735fc=_0x471a0d;if(this['_status']==='following'&&this['_presenter']===_0x27cb99[_0x1735fc(0x189)][_0x1735fc(0x17f)]){const _0x5a8667=_[_0x1735fc(0x196)](_0x27cb99[_0x1735fc(0x189)])[_0x1735fc(0x1bf)][_0x1735fc(0x163)]()[_0x1735fc(0x1b5)](_0x5c0d94=>_0x5c0d94['id']===C[_0x1735fc(0x155)]['id']);if(_0x5a8667){const _0x4a0c61=_0x5a8667[_0x1735fc(0x1a8)][_0x1735fc(0x125)],_0xc134a7=_0x5a8667[_0x1735fc(0x1a8)][_0x1735fc(0x166)]['id'];setTimeout(()=>{var _0x368a95=_0x1735fc;this[_0x368a95(0x187)]['executeCommand'](C[_0x368a95(0x146)]['id'],{'unitId':_0x4a0c61,'subUnitId':_0xc134a7},{'fromCollab':!0x0});});}}}[_0x471a0d(0x14f)](){var _0x321738=_0x471a0d;this[_0x321738(0x158)][_0x321738(0x132)]('presenting');const _0xe00a5=new Map(),_0x441f8a=this[_0x321738(0x157)]=new o[(_0x321738(0x14e))]();_0x441f8a[_0x321738(0x1d9)](o[_0x321738(0x1b7)](()=>{var _0x4fe73a=_0x321738;_0xe00a5[_0x4fe73a(0x184)](_0x3035a5=>_0x3035a5['complete']()),_0xe00a5['clear']();})),_0x441f8a[_0x321738(0x1d9)](this[_0x321738(0x187)][_0x321738(0x188)](_0x5c506b=>{var _0x11c079=_0x321738,_0x25bba2;if(_0x5c506b[_0x11c079(0x142)]!==o['CommandType'][_0x11c079(0x14d)]||!this[_0x11c079(0x14a)]['shouldShareOperation'](_0x5c506b['id']))return;const {id:_0x26f631}=_0x5c506b;let _0x45f3e0;_0xe00a5[_0x11c079(0x12c)](_0x26f631)?_0x45f3e0=_0xe00a5[_0x11c079(0x173)](_0x26f631):(_0x45f3e0=new w['Subject'](),_0xe00a5['set'](_0x26f631,_0x45f3e0),_0x45f3e0[_0x11c079(0x1d5)](b['throttleTime']((_0x25bba2=this['_configService'][_0x11c079(0x144)](W))!=null?_0x25bba2:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11c079(0x18f)](_0x111d7f=>{var _0x1e60c7=_0x11c079;this[_0x1e60c7(0x1ca)][_0x1e60c7(0x131)]({'eventID':_[_0x1e60c7(0x113)][_0x1e60c7(0x1cd)],'data':{'unitID':this[_0x1e60c7(0x116)],'operations':{[_0x111d7f['id']]:{'id':_0x111d7f['id'],'params':JSON['stringify'](_0x111d7f[_0x1e60c7(0x1a8)])}}}},this[_0x1e60c7(0x116)]);})),_0x45f3e0[_0x11c079(0x132)](_0x5c506b);})),this[_0x321738(0x14a)][_0x321738(0x193)](this[_0x321738(0x116)])[_0x321738(0x184)](_0x237425=>this['_collabSession'][_0x321738(0x131)]({'eventID':_[_0x321738(0x113)][_0x321738(0x1cd)],'data':{'unitID':this[_0x321738(0x116)],'operations':{[_0x237425['id']]:{'id':_0x237425['id'],'params':JSON[_0x321738(0x135)](_0x237425[_0x321738(0x1a8)])}}}},this['_unitID']));}[_0x471a0d(0x169)](){var _0x5713bc=_0x471a0d,_0x275ed7;this['_status$']['next'](_0x5713bc(0x16c)),(_0x275ed7=this[_0x5713bc(0x157)])==null||_0x275ed7[_0x5713bc(0x181)](),this[_0x5713bc(0x157)]=null;}[_0x471a0d(0x198)](){var _0x1c69aa=_0x471a0d,_0x46f01a;(_0x46f01a=this['_commandDisposable'])==null||_0x46f01a['dispose'](),this[_0x1c69aa(0x158)][_0x1c69aa(0x132)](_0x1c69aa(0x11e));}[_0x471a0d(0x1a4)](){var _0x916e29=_0x471a0d,_0x50e09b;this['_status$'][_0x916e29(0x132)](_0x916e29(0x16c)),(_0x50e09b=this[_0x916e29(0x157)])==null||_0x50e09b[_0x916e29(0x181)](),this[_0x916e29(0x157)]=null;}['_stopFollowing'](){var _0x8f7e35=_0x471a0d,_0x234315;this['_status$'][_0x8f7e35(0x132)](_0x8f7e35(0x11f)),(_0x234315=this['_commandDisposable'])==null||_0x234315[_0x8f7e35(0x181)]();}[_0x471a0d(0x1a9)](_0x774dcb){var _0x172a0f=_0x471a0d;if([_0x172a0f(0x143),_0x172a0f(0x11f),_0x172a0f(0x194)][_0x172a0f(0x11b)](this['_status'])||!_0x774dcb[_0x172a0f(0x189)][_0x172a0f(0x1aa)]||_0x774dcb[_0x172a0f(0x189)]['presenter']===this['_collabSession'][_0x172a0f(0x1dd)]())return;this['_status']===_0x172a0f(0x16c)&&this[_0x172a0f(0x198)]();const _0x20819e=_0x774dcb[_0x172a0f(0x189)][_0x172a0f(0x124)];Object[_0x172a0f(0x191)](_0x20819e)[_0x172a0f(0x184)](_0x416b8d=>{var _0x122803=_0x172a0f;this['_commandService'][_0x122803(0x1ac)](_0x416b8d['id'],_0x416b8d['params']?JSON['parse'](_0x416b8d[_0x122803(0x1a8)]):null,{'fromCollab':!0x0});});}[_0x471a0d(0x1ce)](){var _0x20053f=_0x471a0d,_0x2b4dbc;this['_status$'][_0x20053f(0x132)]('offline'),(_0x2b4dbc=this[_0x20053f(0x157)])==null||_0x2b4dbc['dispose']();}['_handleOnline'](){var _0xdd793=_0x471a0d;this['_status$'][_0xdd793(0x132)](_0xdd793(0x16c)),this[_0xdd793(0x16d)]();}},exports[_0x471a0d(0x114)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x471a0d(0x1c8)](O)),S(0x4,o[_0x471a0d(0x1ba)])],exports[_0x471a0d(0x114)]);function _0x4657(_0x911a3c,_0x2d72d9){var _0x5c7048=_0x5c70();return _0x4657=function(_0x465705,_0x1da96d){_0x465705=_0x465705-0x111;var _0x4742cb=_0x5c7048[_0x465705];return _0x4742cb;},_0x4657(_0x911a3c,_0x2d72d9);}function A(){var _0x1df21f=_0x471a0d;const _0x3ecf71=p[_0x1df21f(0x153)](exports['LiveShareController']),_0x4362d4=p[_0x1df21f(0x153)](o[_0x1df21f(0x12e)]),_0x40b321=p[_0x1df21f(0x13a)](()=>_0x4362d4[_0x1df21f(0x1de)](o[_0x1df21f(0x15c)][_0x1df21f(0x137)]),void 0x0,!0x1,[]),[_0x4bc1a1,_0x57e96b]=f[_0x1df21f(0x1d7)](null),[_0x27a77e,_0x203acf]=f[_0x1df21f(0x1d7)](h[_0x1df21f(0x1c5)]),_0x902344=f[_0x1df21f(0x1ec)](null);return f['useEffect'](()=>(_0x40b321&&_0x3ecf71['getLiveShareCoordinator'](_0x40b321['getUnitId']())[_0x1df21f(0x186)](_0x321b23=>{var _0x46d0d7=_0x1df21f;_0x57e96b(_0x321b23),_0x902344[_0x46d0d7(0x172)]=_0x321b23[_0x46d0d7(0x12b)][_0x46d0d7(0x18f)](_0x238037=>{_0x203acf(_0x238037);});}),()=>{var _0xacce4c=_0x1df21f,_0x229fde;(_0x229fde=_0x902344['current'])==null||_0x229fde[_0xacce4c(0x1a3)](),_0x902344[_0xacce4c(0x172)]=null;}),[_0x40b321,_0x3ecf71]),_0x4bc1a1?l[_0x1df21f(0x1c7)](g[_0x1df21f(0x150)],{'align':_0x1df21f(0x17e),'disabled':_0x27a77e===h[_0x1df21f(0x1c4)],'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['jsx'](B,{'status':_0x27a77e,'coordinator':_0x4bc1a1}),'children':l[_0x1df21f(0x1c7)](_0x1df21f(0x15e),{'className':g[_0x1df21f(0x195)](_0x1df21f(0x183),{'univer-cursor-not-allowed':_0x27a77e===h[_0x1df21f(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27a77e!==h['OFFLINE']}),'type':_0x1df21f(0x15e),'children':l[_0x1df21f(0x1c7)](P,{'className':_0x1df21f(0x112)})})}):null;}function B(_0xc7e566){var _0x55b0a2=_0x471a0d;const {status:_0x7c5c4f,coordinator:_0xde9efb}=_0xc7e566;switch(_0x7c5c4f){case h[_0x55b0a2(0x1c5)]:return l[_0x55b0a2(0x1c7)](Y,{'coordinator':_0xde9efb});case h[_0x55b0a2(0x148)]:return l[_0x55b0a2(0x1c7)](Z,{'coordinator':_0xde9efb});case h['NOT_FOLLOWING']:return l['jsx'](J,{'coordinator':_0xde9efb});case h[_0x55b0a2(0x1c4)]:return l[_0x55b0a2(0x1c7)](z,{});case h[_0x55b0a2(0x18c)]:return l[_0x55b0a2(0x1c7)](K,{'coordinator':_0xde9efb});default:return null;}}function Y(_0x397eec){var _0x6669c1=_0x471a0d;const {coordinator:_0x85131a}=_0x397eec;return l['jsxs'](l[_0x6669c1(0x139)],{'children':[l[_0x6669c1(0x1c7)](_0x6669c1(0x16e),{'className':_0x6669c1(0x13b),'children':'Present\x20this\x20document'}),l[_0x6669c1(0x1c7)](g['Button'],{'onClick':()=>_0x85131a[_0x6669c1(0x176)](),'children':_0x6669c1(0x1c2)})]});}function Z(_0x335584){var _0x38cbed=_0x471a0d;const {coordinator:_0x126187}=_0x335584;return l['jsxs'](l[_0x38cbed(0x139)],{'children':[l[_0x38cbed(0x1c7)](_0x38cbed(0x16e),{'className':_0x38cbed(0x13b),'children':_0x38cbed(0x16f)}),l[_0x38cbed(0x1c7)](g['Button'],{'onClick':()=>_0x126187[_0x38cbed(0x19c)](),'children':'Stop\x20following'})]});}function J(_0x122bf6){var _0x2d1646=_0x471a0d;const {coordinator:_0x49d4f0}=_0x122bf6;return l[_0x2d1646(0x134)](l['Fragment'],{'children':[l[_0x2d1646(0x1c7)](_0x2d1646(0x16e),{'className':_0x2d1646(0x13b),'children':_0x2d1646(0x162)}),l[_0x2d1646(0x1c7)](g[_0x2d1646(0x141)],{'variant':'text','onClick':()=>_0x49d4f0[_0x2d1646(0x164)](),'children':'Start\x20following'})]});}function _0x5c70(){var _0x44ce80=['button','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','forwardRef','159084HMsCOB','You\x27re\x20not\x20following\x20the\x20presenter','reverse','startFollowing','_uiPartsService','sheet','_handleTerminate','_collabSessionService','_stopPresenting','ONLINE','906ujTdHo','idle','_fetchOperations','div','You\x27re\x20following\x20the\x20presenter','use','CollaborationSessionService','current','get','shouldShareOperation','Stop\x20presenting','tryStartPresenting','defs','21616FpHZhe','http://www.w3.org/2000/svg','_injector','colorChannel1','registerDependencies','string','end','memberID','_mountLiveShare','dispose','LIVESHARE_REQUEST_HOST','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','setConfig','then','_commandService','onCommandExecuted','data','_startLiveShareCoordinator','You\x27re\x20presenting\x20the\x20document','PRESENTING','idSuffix','SAME_OPERATION_SHARE_INTERVAL','subscribe','disposeWithMe','values','replace','getInitialStates','offline','clsx','parseProtocolChangeset','getValue','_startFollowing','dispose$','univerjs-icon\x20univerjs-icon-','defIds','stopFollowing','1045761SHIziK','_entities','UniverLiveSharePlugin','NOT_FOLLOWING','mergeOverrideWithDependencies','_handleNewHost','unsubscribe','_beIdle','toStringTag','283858eUArfv','LIVESHARE_NEW_HOST','params','_handleOperation','presenter','8opHqOr','executeCommand','LiveShare','apply','children','createElement','concat','registerSharedOperation','SetZoomRatioOperation','1em','find','random','toDisposable','asObservable','RxDisposable','ICommandService','toString','tag','from','LiveShareController','mutations','xlink:href','243402suPRKs','Start','_univerInstanceService','OFFLINE','IDLE','getOwnPropertySymbols','jsx','Inject','call','_collabSession','Disposable','requireSession','LIVESHARE_OPERATION','_handleOffline','length','substring','_config','sessionStatus$','none','extend','pipe','getLiveShareCoordinator','useState','displayName','add','_sharedOperations','_status','Plugin','getMemberID','getCurrentTypeOfUnit$','icon','currentColor','90eCLrtn','_presenter','live-share.config','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','evenodd','getOwnPropertyDescriptor','IUIPartsService','4soBBlx','LiveShareService','symbol','map','useRef','function','complete','319kIPibF','init','10645QwLXkt','univer-size-4','CollaborationEvent','LiveShareCoordinator','UniverIcon','_unitID','className','You\x27are\x20offline.','74664wShFQD','trim','includes','getTypeOfUnitDisposed$','LiveShareIcon','following','not-following','Injector','assign','BehaviorSubject','LiveShareStatus','operations','unitId','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_TERMINATE','_handleNewChangeSets','delete','IConfigService','status$','has','_reporters','IUniverInstanceService','entries','stopPresenting','send','next','DesktopLiveShareController','jsxs','stringify','onStarting','UNIVER_SHEET','pluginName','Fragment','useObservable','univer-mb-3\x20univer-w-full\x20univer-text-sm','propertyIsEnumerable','registerInitialStateReporter','attrs','mask','_init','Button','type','presenting','getConfig','0\x200\x2017\x2017','SetWorksheetActiveOperation','takeUntil','FOLLOWING','getUnitId','_liveShareService','_stopFollowing','SessionStatus','OPERATION','DisposableCollection','_startPresenting','Dropdown','Module','indexOf','useDependency','_configService','InsertSheetMutation','prototype','_commandDisposable','_status$','registerComponent','touchDependencies','live-share-icon','UniverInstanceType','defineProperty'];_0x5c70=function(){return _0x44ce80;};return _0x5c70();}function K(_0x2b3d93){var _0x5ae480=_0x471a0d;const {coordinator:_0x1e175e}=_0x2b3d93;return l[_0x5ae480(0x134)](l[_0x5ae480(0x139)],{'children':[l['jsx'](_0x5ae480(0x16e),{'className':_0x5ae480(0x13b),'children':_0x5ae480(0x18b)}),l[_0x5ae480(0x1c7)](g[_0x5ae480(0x141)],{'variant':'default','onClick':()=>_0x1e175e[_0x5ae480(0x130)](),'children':_0x5ae480(0x175)})]});}function z(){var _0x45c43d=_0x471a0d;return l[_0x45c43d(0x1c7)](l[_0x45c43d(0x139)],{'children':_0x45c43d(0x118)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x93d8b1,_0x5a7289,_0x4a6488,_0x4c2166)=>{for(var _0x16fec6=_0x4c2166>0x1?void 0x0:_0x4c2166?Q(_0x5a7289,_0x4a6488):_0x5a7289,_0x43c422=_0x93d8b1['length']-0x1,_0x5507e1;_0x43c422>=0x0;_0x43c422--)(_0x5507e1=_0x93d8b1[_0x43c422])&&(_0x16fec6=_0x5507e1(_0x16fec6)||_0x16fec6);return _0x16fec6;},x=(_0x4a5434,_0x62f70e)=>(_0x68f36d,_0x7be2ac)=>_0x62f70e(_0x68f36d,_0x7be2ac,_0x4a5434);exports['DesktopLiveShareController']=class extends o[_0x471a0d(0x1cb)]{constructor(_0x233275,_0x4030ae){var _0x5f1f74=_0x471a0d;super(),this['_injector']=_0x233275,this[_0x5f1f74(0x165)]=_0x4030ae,this[_0x5f1f74(0x180)]();}[_0x471a0d(0x180)](){var _0x44f7bb=_0x471a0d;this[_0x44f7bb(0x190)](this[_0x44f7bb(0x165)][_0x44f7bb(0x159)](p['BuiltInUIPart']['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x44f7bb(0x17a)])));}},exports[_0x471a0d(0x133)]=X([x(0x0,o[_0x471a0d(0x1c8)](o['Injector'])),x(0x1,p[_0x471a0d(0x1e7)])],exports['DesktopLiveShareController']);const ee=_0x471a0d(0x1e3),L={};var te=Object['getOwnPropertyDescriptor'],ie=(_0x1630cf,_0x111e43,_0xfe94d8,_0x2007dc)=>{for(var _0x10dc97=_0x2007dc>0x1?void 0x0:_0x2007dc?te(_0x111e43,_0xfe94d8):_0x111e43,_0x479df0=_0x1630cf['length']-0x1,_0x1ca728;_0x479df0>=0x0;_0x479df0--)(_0x1ca728=_0x1630cf[_0x479df0])&&(_0x10dc97=_0x1ca728(_0x10dc97)||_0x10dc97);return _0x10dc97;},ne=(_0x1c1b46,_0x5d5928)=>(_0x55e26f,_0xdfba4)=>_0x5d5928(_0x55e26f,_0xdfba4,_0x1c1b46);let E=class extends o[_0x471a0d(0x1cb)]{constructor(_0x343cb5){var _0x423d34=_0x471a0d;super(),this['_liveShareService']=_0x343cb5,this[_0x423d34(0x140)]();}[_0x471a0d(0x140)](){var _0x3e2bd9=_0x471a0d;[D[_0x3e2bd9(0x1b3)]['id'],D['SetScrollOperation']['id'],C[_0x3e2bd9(0x146)]['id']]['forEach'](_0x59d5b8=>{var _0x25cc6f=_0x3e2bd9;this[_0x25cc6f(0x190)](this[_0x25cc6f(0x14a)][_0x25cc6f(0x1b2)](_0x59d5b8));});}};E=ie([ne(0x0,o[_0x471a0d(0x1c8)](O))],E);var re=Object[_0x471a0d(0x15d)],se=Object['getOwnPropertyDescriptor'],oe=(_0x3d0197,_0x1df352,_0x24826e)=>_0x1df352 in _0x3d0197?re(_0x3d0197,_0x1df352,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24826e}):_0x3d0197[_0x1df352]=_0x24826e,ae=(_0x36a28d,_0x5860e2,_0x36172f,_0x204a6e)=>{var _0x2a951b=_0x471a0d;for(var _0x17c48a=_0x204a6e>0x1?void 0x0:_0x204a6e?se(_0x5860e2,_0x36172f):_0x5860e2,_0x1d05f4=_0x36a28d[_0x2a951b(0x1cf)]-0x1,_0x2c43b3;_0x1d05f4>=0x0;_0x1d05f4--)(_0x2c43b3=_0x36a28d[_0x1d05f4])&&(_0x17c48a=_0x2c43b3(_0x17c48a)||_0x17c48a);return _0x17c48a;},N=(_0xd8f799,_0x36f8de)=>(_0x5485ec,_0x354248)=>_0x36f8de(_0x5485ec,_0x354248,_0xd8f799),T=(_0xab050d,_0x311dad,_0x58516d)=>oe(_0xab050d,typeof _0x311dad!=_0x471a0d(0x1ea)?_0x311dad+'':_0x311dad,_0x58516d);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x471a0d(0x19f)]=class extends o[_0x471a0d(0x1dc)]{constructor(_0x1db23e=L,_0x136331,_0x27d5d0){var _0xa1a0c6=_0x471a0d;super(),this[_0xa1a0c6(0x1d1)]=_0x1db23e,this['_injector']=_0x136331,this[_0xa1a0c6(0x154)]=_0x27d5d0;const {..._0x552ead}=o['merge']({},L,this[_0xa1a0c6(0x1d1)]);this[_0xa1a0c6(0x154)][_0xa1a0c6(0x185)](ee,_0x552ead);}[_0x471a0d(0x136)](){var _0x210f10=_0x471a0d;o[_0x210f10(0x17c)](this[_0x210f10(0x17a)],o[_0x210f10(0x1a1)]([[O],[exports['LiveShareController']],[E],[exports[_0x210f10(0x133)]]],this[_0x210f10(0x1d1)]['override'])),o[_0x210f10(0x15a)](this[_0x210f10(0x17a)],[[E]]);}['onRendered'](){var _0x5d004d=_0x471a0d;o[_0x5d004d(0x15a)](this[_0x5d004d(0x17a)],[[exports[_0x5d004d(0x133)]]]);}},T(exports[_0x471a0d(0x19f)],_0x471a0d(0x142),o[_0x471a0d(0x15c)]['UNIVER_UNKNOWN']),T(exports[_0x471a0d(0x19f)],_0x471a0d(0x138),le),exports[_0x471a0d(0x19f)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x471a0d(0x1c8)](o[_0x471a0d(0x120)])),N(0x2,o[_0x471a0d(0x12a)])],exports[_0x471a0d(0x19f)]),exports[_0x471a0d(0x1ad)]=A,exports[_0x471a0d(0x1e9)]=O,exports[_0x471a0d(0x123)]=h;
|
|
1
|
+
'use strict';var _0x2d235b=_0x56da;(function(_0x6969f5,_0x13c89a){var _0x3c5a53=_0x56da,_0x54e646=_0x6969f5();while(!![]){try{var _0x19dd67=parseInt(_0x3c5a53(0x255))/0x1+-parseInt(_0x3c5a53(0x1cc))/0x2+-parseInt(_0x3c5a53(0x257))/0x3+-parseInt(_0x3c5a53(0x234))/0x4+parseInt(_0x3c5a53(0x1c1))/0x5+-parseInt(_0x3c5a53(0x1ed))/0x6*(-parseInt(_0x3c5a53(0x245))/0x7)+-parseInt(_0x3c5a53(0x26d))/0x8;if(_0x19dd67===_0x13c89a)break;else _0x54e646['push'](_0x54e646['shift']());}catch(_0x2ebe39){_0x54e646['push'](_0x54e646['shift']());}}}(_0x9f5d,0xa01ef));var U=Object[_0x2d235b(0x18f)],F=(_0x24230d,_0x5ee9d0,_0x1ad04d)=>_0x5ee9d0 in _0x24230d?U(_0x24230d,_0x5ee9d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad04d}):_0x24230d[_0x5ee9d0]=_0x1ad04d,v=(_0x43eafc,_0x2d8c30,_0x2f825b)=>F(_0x43eafc,typeof _0x2d8c30!=_0x2d235b(0x1ff)?_0x2d8c30+'':_0x2d8c30,_0x2f825b);Object[_0x2d235b(0x18f)](exports,Symbol[_0x2d235b(0x235)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x3329d5=_0x2d235b;return u=Object[_0x3329d5(0x1d6)]||function(_0x1556ba){var _0x4383fd=_0x3329d5;for(var _0x230bcf,_0x18028e=0x1,_0x366e74=arguments[_0x4383fd(0x1e0)];_0x18028e<_0x366e74;_0x18028e++){_0x230bcf=arguments[_0x18028e];for(var _0x1e4482 in _0x230bcf)Object[_0x4383fd(0x1bb)]['hasOwnProperty'][_0x4383fd(0x270)](_0x230bcf,_0x1e4482)&&(_0x1556ba[_0x1e4482]=_0x230bcf[_0x1e4482]);}return _0x1556ba;},u[_0x3329d5(0x230)](this,arguments);},$=function(_0x5659bb,_0xcf0740){var _0x1f4476=_0x2d235b,_0x2c3e2f={};for(var _0x212acc in _0x5659bb)Object[_0x1f4476(0x1bb)][_0x1f4476(0x20f)]['call'](_0x5659bb,_0x212acc)&&_0xcf0740[_0x1f4476(0x266)](_0x212acc)<0x0&&(_0x2c3e2f[_0x212acc]=_0x5659bb[_0x212acc]);if(_0x5659bb!=null&&typeof Object['getOwnPropertySymbols']==_0x1f4476(0x1a0)){for(var _0x3512a7=0x0,_0x212acc=Object[_0x1f4476(0x21a)](_0x5659bb);_0x3512a7<_0x212acc[_0x1f4476(0x1e0)];_0x3512a7++)_0xcf0740[_0x1f4476(0x266)](_0x212acc[_0x3512a7])<0x0&&Object[_0x1f4476(0x1bb)][_0x1f4476(0x25d)][_0x1f4476(0x270)](_0x5659bb,_0x212acc[_0x3512a7])&&(_0x2c3e2f[_0x212acc[_0x3512a7]]=_0x5659bb[_0x212acc[_0x3512a7]]);}return _0x2c3e2f;},j=f[_0x2d235b(0x272)](function(_0x379bc5,_0x4ce3a7){var _0x2d2231=_0x2d235b,_0x526cac=_0x379bc5[_0x2d2231(0x1e9)],_0x3b6d08=_0x379bc5['id'],_0x226071=_0x379bc5['className'],_0x506888=_0x379bc5[_0x2d2231(0x1f3)],_0x239cdb=$(_0x379bc5,[_0x2d2231(0x1e9),'id','className','extend']),_0x2a7fac='univerjs-icon\x20univerjs-icon-'[_0x2d2231(0x259)](_0x3b6d08,'\x20')[_0x2d2231(0x259)](_0x226071||'')['trim'](),_0x1c832f=f[_0x2d2231(0x1e3)]('_'[_0x2d2231(0x259)](k()));return y(_0x526cac,''[_0x2d2231(0x259)](_0x3b6d08),{'defIds':_0x526cac[_0x2d2231(0x248)],'idSuffix':_0x1c832f[_0x2d2231(0x1c4)]},u({'ref':_0x4ce3a7,'className':_0x2a7fac},_0x239cdb),_0x506888);});function y(_0x349c7b,_0xcdcfe3,_0xaa6053,_0xc59401,_0xf3d8e8){var _0x294691=_0x2d235b;return f[_0x294691(0x22f)](_0x349c7b[_0x294691(0x24e)],u(u({'key':_0xcdcfe3},H(_0x349c7b,_0xaa6053,_0xf3d8e8)),_0xc59401),(V(_0x349c7b,_0xaa6053)[_0x294691(0x1b9)]||[])[_0x294691(0x20c)](function(_0x17efce,_0x2ba041){var _0x5f0f5c=_0x294691;return y(_0x17efce,''[_0x5f0f5c(0x259)](_0xcdcfe3,'-')['concat'](_0x349c7b[_0x5f0f5c(0x24e)],'-')[_0x5f0f5c(0x259)](_0x2ba041),_0xaa6053,void 0x0,_0xf3d8e8);}));}function H(_0x59b23b,_0x10d531,_0x375f1e){var _0x381f70=_0x2d235b,_0x358704=u({},_0x59b23b[_0x381f70(0x197)]);_0x375f1e!=null&&_0x375f1e[_0x381f70(0x194)]&&_0x358704['fill']===_0x381f70(0x194)&&(_0x358704[_0x381f70(0x1b0)]=_0x375f1e[_0x381f70(0x194)]),_0x59b23b['tag']==='mask'&&_0x358704['id']&&(_0x358704['id']=_0x358704['id']+_0x10d531[_0x381f70(0x239)]),Object['entries'](_0x358704)[_0x381f70(0x199)](function(_0x46d332){var _0x1dd80b=_0x381f70,_0x470112=_0x46d332[0x0],_0x231942=_0x46d332[0x1];_0x470112==='mask'&&typeof _0x231942==_0x1dd80b(0x1d9)&&(_0x358704[_0x470112]=_0x231942[_0x1dd80b(0x1ea)](/url\(#(.*)\)/,_0x1dd80b(0x218)[_0x1dd80b(0x259)](_0x10d531[_0x1dd80b(0x239)],')')));});var _0x3bbe1f=_0x10d531[_0x381f70(0x248)];return!_0x3bbe1f||_0x3bbe1f[_0x381f70(0x1e0)]===0x0||(_0x59b23b[_0x381f70(0x24e)]===_0x381f70(0x1dc)&&_0x358704[_0x381f70(0x1e4)]&&(_0x358704[_0x381f70(0x1e4)]=_0x358704[_0x381f70(0x1e4)]+_0x10d531['idSuffix']),Object[_0x381f70(0x1a7)](_0x358704)[_0x381f70(0x199)](function(_0x201915){var _0xfd46ae=_0x381f70,_0x26d715=_0x201915[0x0],_0x2a3748=_0x201915[0x1];typeof _0x2a3748=='string'&&(_0x358704[_0x26d715]=_0x2a3748[_0xfd46ae(0x1ea)](/url\(#(.*)\)/,'url(#$1'[_0xfd46ae(0x259)](_0x10d531[_0xfd46ae(0x239)],')')));})),_0x358704;}function V(_0x5128f7,_0x3e3fe3){var _0x1e05de=_0x2d235b,_0x3879d0,_0x2c5fc2=_0x3e3fe3[_0x1e05de(0x248)];return!_0x2c5fc2||_0x2c5fc2[_0x1e05de(0x1e0)]===0x0?_0x5128f7:_0x5128f7['tag']===_0x1e05de(0x1e7)&&(!((_0x3879d0=_0x5128f7['children'])===null||_0x3879d0===void 0x0)&&_0x3879d0['length'])?u(u({},_0x5128f7),{'children':_0x5128f7['children'][_0x1e05de(0x20c)](function(_0x2bd29d){var _0x147141=_0x1e05de;return typeof _0x2bd29d['attrs']['id']==_0x147141(0x1d9)&&_0x2c5fc2&&_0x2c5fc2[_0x147141(0x20a)](_0x2bd29d[_0x147141(0x197)]['id'])?u(u({},_0x2bd29d),{'attrs':u(u({},_0x2bd29d[_0x147141(0x197)]),{'id':_0x2bd29d['attrs']['id']+_0x3e3fe3[_0x147141(0x239)]})}):_0x2bd29d;})}):_0x5128f7;}function k(){var _0x54a270=_0x2d235b;return Math['random']()[_0x54a270(0x241)](0x24)[_0x54a270(0x1ae)](0x2,0x8);}function _0x56da(_0x4b0885,_0x20e181){var _0x9f5d5d=_0x9f5d();return _0x56da=function(_0x56dab5,_0x58f436){_0x56dab5=_0x56dab5-0x18f;var _0x2f5744=_0x9f5d5d[_0x56dab5];return _0x2f5744;},_0x56da(_0x4b0885,_0x20e181);}j['displayName']='UniverIcon';var M={'tag':'svg','attrs':{'xmlns':_0x2d235b(0x1de),'fill':_0x2d235b(0x1b8),'viewBox':_0x2d235b(0x1c7),'width':'1em','height':_0x2d235b(0x1bd)},'children':[{'tag':_0x2d235b(0x25e),'attrs':{'fill':_0x2d235b(0x26e),'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':_0x2d235b(0x25e),'attrs':{'fill':_0x2d235b(0x26e),'d':_0x2d235b(0x198),'fillRule':_0x2d235b(0x1d3),'clipRule':_0x2d235b(0x1d3)}}]},P=f['forwardRef'](function(_0x131253,_0x58e72b){var _0x51dbd1=_0x2d235b;return f[_0x51dbd1(0x22f)](j,Object['assign']({},_0x131253,{'id':_0x51dbd1(0x26b),'ref':_0x58e72b,'icon':M}));});P[_0x2d235b(0x1e1)]='LiveShareIcon';class O extends o[_0x2d235b(0x253)]{constructor(){var _0xbc9fdc=_0x2d235b;super(...arguments),v(this,_0xbc9fdc(0x224),new Set()),v(this,_0xbc9fdc(0x25c),new Set());}[_0x2d235b(0x195)](_0x44b048){var _0x4a75f9=_0x2d235b;return this[_0x4a75f9(0x224)]['add'](_0x44b048),o[_0x4a75f9(0x1d5)](()=>this[_0x4a75f9(0x224)]['delete'](_0x44b048));}[_0x2d235b(0x1bf)](_0x197957){var _0x3c9355=_0x2d235b;return this[_0x3c9355(0x25c)]['add'](_0x197957),o['toDisposable'](()=>this[_0x3c9355(0x25c)][_0x3c9355(0x249)](_0x197957));}[_0x2d235b(0x207)](_0x5af386){var _0x29a8bb=_0x2d235b;return this[_0x29a8bb(0x224)][_0x29a8bb(0x1a1)](_0x5af386);}[_0x2d235b(0x26a)](_0x211761){var _0x62160f=_0x2d235b;return Array[_0x62160f(0x23f)](this[_0x62160f(0x25c)])[_0x62160f(0x20c)](_0x351ae2=>_0x351ae2(_0x211761));}}function _0x9f5d(){var _0x133d8f=['_configService','get','getInitialStates','live-share-icon','NEW_CHANGESETS','5672368toiAWB','currentColor','useObservable','call','_entities','forwardRef','_handleOperation','defineProperty','end','idle','createInstance','subscribe','colorChannel1','registerSharedOperation','executeCommand','attrs','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','forEach','SetScrollOperation','tryStartPresenting','memberID','univer-mb-3\x20univer-w-full\x20univer-text-sm','text','Start','function','has','_injector','send','useState','_presenter','LiveShareService','entries','getMemberID','pluginName','touchDependencies','_status$','UniverLiveSharePlugin','stringify','substring','LIVESHARE_REQUEST_HOST','fill','parse','IUIPartsService','SAME_OPERATION_SHARE_INTERVAL','_handleOnline','SessionStatus','getConfig','not-following','none','children','reverse','prototype','UniverCollaborationClientPlugin','1em','stopPresenting','registerInitialStateReporter','getTypeOfUnitDisposed$','4670670paaiuO','pipe','data','current','RxDisposable','add','0\x200\x2017\x2017','_collabSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','operations','throttleTime','395852zdFEjh','_uiPartsService','_handleNewHost','presenting','takeUntil','FOLLOWING','_handleTerminate','evenodd','BehaviorSubject','toDisposable','assign','_liveShareService','_startLiveShareCoordinator','string','getUnitId','onCommandExecuted','use','LIVESHARE_TERMINATE','http://www.w3.org/2000/svg','presenter','length','displayName','_init','useRef','xlink:href','SetWorksheetActiveOperation','_stopPresenting','defs','getCurrentTypeOfUnit$','icon','replace','_startFollowing','dispose$','80334ZeLnys','offline','CollaborationEvent','LiveShare','Fragment','div','extend','mutations','status$','BuiltInUIPart','_startPresenting','startFollowing','Stop\x20following','LIVESHARE_FETCH_OPERATIONS','_beIdle','_commandService','UNIVER_UNKNOWN','mergeOverrideWithDependencies','symbol','find','Dropdown','unsubscribe','You\x27re\x20following\x20the\x20presenter','requireSession','UniverInstanceType','CollaborationSessionService','shouldShareOperation','next','_status','includes','getOwnPropertyDescriptor','map','then','registerComponent','hasOwnProperty','_univerInstanceService','Subject','init','univer-size-4','ONLINE','DesktopLiveShareController','merge','_unitID','url(#$1','LiveShareStatus','getOwnPropertySymbols','useEffect','jsxs','sheet','_stopFollowing','asObservable','_mountLiveShare','IConfigService','_handleNewChangeSets','_collabSessionService','_sharedOperations','disposeWithMe','PRESENTING','registerDependencies','SetZoomRatioOperation','live-share.config','onStarting','onRendered','Button','_config','set','createElement','apply','getLiveShareCoordinator','Present\x20this\x20document','button','1162100GVfuDL','toStringTag','Inject','UNIVER_SHEET','event$','idSuffix','You\x27are\x20offline.','type','getValue','params','DisposableCollection','from','jsx','toString','You\x27re\x20not\x20following\x20the\x20presenter','IUniverInstanceService','clsx','308LGQEYt','You\x27re\x20presenting\x20the\x20document','_fetchOperations','defIds','delete','OFFLINE','_handleOffline','IDLE','default','tag','LIVESHARE_OPERATION','dispose','LIVESHARE_NEW_HOST','LiveShareController','Disposable','ICommandService','1187811UaPaEP','following','2573127DZeVGy','Injector','concat','parseProtocolChangeset','NOT_FOLLOWING','_reporters','propertyIsEnumerable','path','_commandDisposable','LiveShareCoordinator','Stop\x20presenting','complete','Start\x20following','setConfig','stopFollowing','indexOf','sessionStatus$'];_0x9f5d=function(){return _0x133d8f;};return _0x9f5d();}var q=Object[_0x2d235b(0x20b)],R=(_0x1d294f,_0x3e2dd4,_0x1b416d,_0x483ae1)=>{var _0x5b3aa9=_0x2d235b;for(var _0x5b1c85=_0x483ae1>0x1?void 0x0:_0x483ae1?q(_0x3e2dd4,_0x1b416d):_0x3e2dd4,_0x2695f6=_0x1d294f[_0x5b3aa9(0x1e0)]-0x1,_0x117966;_0x2695f6>=0x0;_0x2695f6--)(_0x117966=_0x1d294f[_0x2695f6])&&(_0x5b1c85=_0x117966(_0x5b1c85)||_0x5b1c85);return _0x5b1c85;},S=(_0x253c7f,_0x48fe7c)=>(_0xd2c99f,_0x5cdc47)=>_0x48fe7c(_0xd2c99f,_0x5cdc47,_0x253c7f);exports[_0x2d235b(0x252)]=class extends o[_0x2d235b(0x1c5)]{constructor(_0x456bd0,_0x5134e5,_0x167b23){var _0x2be64c=_0x2d235b;super(),v(this,_0x2be64c(0x271),new Map()),(this[_0x2be64c(0x210)]=_0x456bd0,this[_0x2be64c(0x1a2)]=_0x5134e5,this[_0x2be64c(0x223)]=_0x167b23,this['_init']());}async[_0x2d235b(0x231)](_0x38c3e9){var _0x1dea17=_0x2d235b;return this['_entities'][_0x1dea17(0x1a1)](_0x38c3e9)||await this[_0x1dea17(0x1d8)](_0x38c3e9),this[_0x1dea17(0x271)][_0x1dea17(0x269)](_0x38c3e9);}[_0x2d235b(0x1e2)](){var _0x553578=_0x2d235b;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x553578(0x205)][_0x553578(0x237)])['pipe'](b[_0x553578(0x1d0)](this[_0x553578(0x1ec)]))[_0x553578(0x193)](async _0x4102e6=>{var _0x47cad6=_0x553578;const _0x574018=_0x4102e6[_0x47cad6(0x1da)]();this[_0x47cad6(0x271)]['has'](_0x574018)||this['_startLiveShareCoordinator'](_0x574018);}),this[_0x553578(0x210)][_0x553578(0x1c0)](o[_0x553578(0x205)][_0x553578(0x237)])[_0x553578(0x1c2)](b[_0x553578(0x1d0)](this[_0x553578(0x1ec)]))[_0x553578(0x193)](_0x10d8cf=>{var _0x5e2075=_0x553578;const _0x5d675a=_0x10d8cf[_0x5e2075(0x1da)](),_0x133017=this[_0x5e2075(0x271)][_0x5e2075(0x269)](_0x5d675a);_0x133017==null||_0x133017[_0x5e2075(0x250)]();});}async[_0x2d235b(0x1d8)](_0x54f87a){var _0x5ae7e0=_0x2d235b;const _0x2cece7=await this[_0x5ae7e0(0x223)][_0x5ae7e0(0x204)](_0x54f87a),_0x2cde2c=this[_0x5ae7e0(0x1a2)][_0x5ae7e0(0x192)](exports[_0x5ae7e0(0x260)],_0x54f87a,_0x2cece7);return _0x2cde2c['init'](),this['_entities']['set'](_0x54f87a,_0x2cde2c),_0x2cde2c;}},exports[_0x2d235b(0x252)]=R([S(0x0,o[_0x2d235b(0x243)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x2d235b(0x236)](m[_0x2d235b(0x206)]))],exports['LiveShareController']);var h=(_0xa9abb1=>(_0xa9abb1[_0x2d235b(0x24a)]=_0x2d235b(0x1ee),_0xa9abb1['IDLE']='idle',_0xa9abb1['FOLLOWING']=_0x2d235b(0x256),_0xa9abb1[_0x2d235b(0x25b)]=_0x2d235b(0x1b7),_0xa9abb1[_0x2d235b(0x226)]='presenting',_0xa9abb1))(h||{});const W=_0x2d235b(0x1b3),G=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x392581,_0x2add67,_0x5a6230,_0x7529ac,_0x13203d){var _0x2b5952=_0x2d235b;super(),v(this,'_status$',new w[(_0x2b5952(0x1d4))]('idle')),v(this,_0x2b5952(0x1f5),this[_0x2b5952(0x1ab)][_0x2b5952(0x21f)]()),v(this,_0x2b5952(0x1e2),!0x1),v(this,_0x2b5952(0x25f),null),v(this,_0x2b5952(0x1a5),null),(this['_unitID']=_0x392581,this[_0x2b5952(0x1c8)]=_0x2add67,this[_0x2b5952(0x268)]=_0x5a6230,this['_liveShareService']=_0x7529ac,this[_0x2b5952(0x1fc)]=_0x13203d);}get[_0x2d235b(0x209)](){var _0xf77bbd=_0x2d235b;return this['_status$'][_0xf77bbd(0x23c)]();}[_0x2d235b(0x250)](){var _0x1f849b=_0x2d235b,_0x24b150;(_0x24b150=this[_0x1f849b(0x25f)])==null||_0x24b150[_0x1f849b(0x250)](),this[_0x1f849b(0x1ab)][_0x1f849b(0x208)]('idle'),this['_status$'][_0x1f849b(0x262)]();}[_0x2d235b(0x212)](){var _0x3547fc=_0x2d235b;this['_init']||(this[_0x3547fc(0x1e2)]=!0x0,this['_collabSession'][_0x3547fc(0x267)][_0x3547fc(0x1c2)](b['takeUntil'](this[_0x3547fc(0x1ec)]))['subscribe'](_0x3e3b09=>{var _0x1b26d0=_0x3547fc;switch(_0x3e3b09){case m[_0x1b26d0(0x1b5)]['OFFLINE']:this[_0x1b26d0(0x24b)]();break;case m[_0x1b26d0(0x1b5)][_0x1b26d0(0x214)]:this['_handleOnline']();break;}}),this[_0x3547fc(0x1c8)][_0x3547fc(0x238)]['pipe'](b[_0x3547fc(0x1d0)](this[_0x3547fc(0x1ec)]))[_0x3547fc(0x193)](_0x54d7a1=>{var _0x3214be=_0x3547fc;const {eventID:_0x1a575b}=_0x54d7a1;switch(_0x1a575b){case _[_0x3214be(0x1ef)][_0x3214be(0x251)]:this[_0x3214be(0x1ce)](_0x54d7a1);break;case _[_0x3214be(0x1ef)][_0x3214be(0x24f)]:this[_0x3214be(0x273)](_0x54d7a1);break;case _['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x3214be(0x1d2)]();break;case _[_0x3214be(0x1ef)][_0x3214be(0x26c)]:this[_0x3214be(0x222)](_0x54d7a1);break;}}));}['tryStartPresenting'](){var _0x250c3d=_0x2d235b;this[_0x250c3d(0x1c8)][_0x250c3d(0x1a3)]({'eventID':_[_0x250c3d(0x1ef)][_0x250c3d(0x1af)],'data':{'unitID':this[_0x250c3d(0x217)],'userID':this[_0x250c3d(0x1c8)][_0x250c3d(0x1a8)]()}},this[_0x250c3d(0x217)]);}[_0x2d235b(0x1be)](){var _0x33f7bb=_0x2d235b;this['_status']===_0x33f7bb(0x1cf)&&(this[_0x33f7bb(0x1ab)]['next'](_0x33f7bb(0x191)),this['_collabSession'][_0x33f7bb(0x1a3)]({'eventID':_[_0x33f7bb(0x1ef)][_0x33f7bb(0x1dd)],'data':{'unitID':this[_0x33f7bb(0x217)]}},this[_0x33f7bb(0x217)]));}[_0x2d235b(0x1f8)](){var _0x2ae326=_0x2d235b;this['_status']===_0x2ae326(0x1b7)&&(this[_0x2ae326(0x1ab)][_0x2ae326(0x208)](_0x2ae326(0x256)),this[_0x2ae326(0x1eb)]());}['stopFollowing'](){var _0x1b33ba=_0x2d235b;this[_0x1b33ba(0x209)]===_0x1b33ba(0x256)&&this[_0x1b33ba(0x21e)]();}[_0x2d235b(0x1ce)](_0x3ce790){var _0x4d656d=_0x2d235b;const {presenter:_0xdace3c}=_0x3ce790[_0x4d656d(0x1c3)],_0x9088b0=this['_collabSession']['getMemberID']();this[_0x4d656d(0x1a5)]=_0xdace3c,_0xdace3c===_0x9088b0?(this[_0x4d656d(0x21e)](),this[_0x4d656d(0x1f7)]()):this[_0x4d656d(0x209)]!=='not-following'&&(this['_stopPresenting'](),this[_0x4d656d(0x1eb)]());}[_0x2d235b(0x247)](){var _0x51efff=_0x2d235b;const _0x144aba={'eventID':_[_0x51efff(0x1ef)][_0x51efff(0x1fa)]};this[_0x51efff(0x1c8)][_0x51efff(0x1a3)](_0x144aba,this[_0x51efff(0x217)]);}[_0x2d235b(0x1d2)](){var _0x3894e4=_0x2d235b;this[_0x3894e4(0x1a5)]=null,this['_status']!==_0x3894e4(0x1cf)&&this[_0x3894e4(0x1fb)]();}[_0x2d235b(0x222)](_0x304c3e){var _0x3a29d7=_0x2d235b;if(this['_status']==='following'&&this[_0x3a29d7(0x1a5)]===_0x304c3e[_0x3a29d7(0x1c3)][_0x3a29d7(0x19c)]){const _0x2e21c8=_[_0x3a29d7(0x25a)](_0x304c3e[_0x3a29d7(0x1c3)])[_0x3a29d7(0x1f4)][_0x3a29d7(0x1ba)]()[_0x3a29d7(0x200)](_0x48ba06=>_0x48ba06['id']===C['InsertSheetMutation']['id']);if(_0x2e21c8){const _0x152dd1=_0x2e21c8[_0x3a29d7(0x23d)]['unitId'],_0x4d85d9=_0x2e21c8[_0x3a29d7(0x23d)][_0x3a29d7(0x21d)]['id'];setTimeout(()=>{var _0x8513c5=_0x3a29d7;this[_0x8513c5(0x1fc)][_0x8513c5(0x196)](C[_0x8513c5(0x1e5)]['id'],{'unitId':_0x152dd1,'subUnitId':_0x4d85d9},{'fromCollab':!0x0});});}}}[_0x2d235b(0x1f7)](){var _0x1add79=_0x2d235b;this[_0x1add79(0x1ab)][_0x1add79(0x208)](_0x1add79(0x1cf));const _0x3a25a7=new Map(),_0x1a7b1c=this[_0x1add79(0x25f)]=new o[(_0x1add79(0x23e))]();_0x1a7b1c['add'](o[_0x1add79(0x1d5)](()=>{var _0x5f4499=_0x1add79;_0x3a25a7[_0x5f4499(0x199)](_0x386039=>_0x386039[_0x5f4499(0x262)]()),_0x3a25a7['clear']();})),_0x1a7b1c[_0x1add79(0x1c6)](this[_0x1add79(0x1fc)][_0x1add79(0x1db)](_0x5ec3a4=>{var _0x5cfe73=_0x1add79,_0x25e842;if(_0x5ec3a4['type']!==o['CommandType']['OPERATION']||!this[_0x5cfe73(0x1d7)][_0x5cfe73(0x207)](_0x5ec3a4['id']))return;const {id:_0xba48a3}=_0x5ec3a4;let _0x1bb764;_0x3a25a7['has'](_0xba48a3)?_0x1bb764=_0x3a25a7[_0x5cfe73(0x269)](_0xba48a3):(_0x1bb764=new w[(_0x5cfe73(0x211))](),_0x3a25a7[_0x5cfe73(0x22e)](_0xba48a3,_0x1bb764),_0x1bb764['pipe'](b[_0x5cfe73(0x1cb)]((_0x25e842=this[_0x5cfe73(0x268)][_0x5cfe73(0x1b6)](W))!=null?_0x25e842:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5cfe73(0x193)](_0x14509d=>{var _0x169f95=_0x5cfe73;this[_0x169f95(0x1c8)][_0x169f95(0x1a3)]({'eventID':_[_0x169f95(0x1ef)][_0x169f95(0x24f)],'data':{'unitID':this[_0x169f95(0x217)],'operations':{[_0x14509d['id']]:{'id':_0x14509d['id'],'params':JSON[_0x169f95(0x1ad)](_0x14509d[_0x169f95(0x23d)])}}}},this[_0x169f95(0x217)]);})),_0x1bb764[_0x5cfe73(0x208)](_0x5ec3a4);})),this[_0x1add79(0x1d7)][_0x1add79(0x26a)](this[_0x1add79(0x217)])[_0x1add79(0x199)](_0x1bfadf=>this[_0x1add79(0x1c8)][_0x1add79(0x1a3)]({'eventID':_[_0x1add79(0x1ef)][_0x1add79(0x24f)],'data':{'unitID':this[_0x1add79(0x217)],'operations':{[_0x1bfadf['id']]:{'id':_0x1bfadf['id'],'params':JSON['stringify'](_0x1bfadf['params'])}}}},this[_0x1add79(0x217)]));}[_0x2d235b(0x1e6)](){var _0xbc5474=_0x2d235b,_0xa81e56;this[_0xbc5474(0x1ab)][_0xbc5474(0x208)]('idle'),(_0xa81e56=this[_0xbc5474(0x25f)])==null||_0xa81e56[_0xbc5474(0x250)](),this[_0xbc5474(0x25f)]=null;}[_0x2d235b(0x1eb)](){var _0x550a15=_0x2d235b,_0x3296c3;(_0x3296c3=this[_0x550a15(0x25f)])==null||_0x3296c3[_0x550a15(0x250)](),this[_0x550a15(0x1ab)][_0x550a15(0x208)](_0x550a15(0x256));}[_0x2d235b(0x1fb)](){var _0x2a7e32=_0x2d235b,_0x18d143;this['_status$'][_0x2a7e32(0x208)](_0x2a7e32(0x191)),(_0x18d143=this[_0x2a7e32(0x25f)])==null||_0x18d143[_0x2a7e32(0x250)](),this[_0x2a7e32(0x25f)]=null;}[_0x2d235b(0x21e)](){var _0x5add60=_0x2d235b,_0x36c567;this['_status$'][_0x5add60(0x208)](_0x5add60(0x1b7)),(_0x36c567=this[_0x5add60(0x25f)])==null||_0x36c567[_0x5add60(0x250)]();}[_0x2d235b(0x273)](_0x253cee){var _0x15edfc=_0x2d235b;if(['presenting',_0x15edfc(0x1b7),_0x15edfc(0x1ee)]['includes'](this[_0x15edfc(0x209)])||!_0x253cee[_0x15edfc(0x1c3)][_0x15edfc(0x1df)]||_0x253cee[_0x15edfc(0x1c3)]['presenter']===this[_0x15edfc(0x1c8)][_0x15edfc(0x1a8)]())return;this['_status']===_0x15edfc(0x191)&&this[_0x15edfc(0x1eb)]();const _0x11686a=_0x253cee[_0x15edfc(0x1c3)][_0x15edfc(0x1ca)];Object['values'](_0x11686a)[_0x15edfc(0x199)](_0x1b9aeb=>{var _0x5e4b4f=_0x15edfc;this['_commandService'][_0x5e4b4f(0x196)](_0x1b9aeb['id'],_0x1b9aeb[_0x5e4b4f(0x23d)]?JSON[_0x5e4b4f(0x1b1)](_0x1b9aeb[_0x5e4b4f(0x23d)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x58eeaa=_0x2d235b,_0x3b44d5;this[_0x58eeaa(0x1ab)][_0x58eeaa(0x208)]('offline'),(_0x3b44d5=this[_0x58eeaa(0x25f)])==null||_0x3b44d5['dispose']();}[_0x2d235b(0x1b4)](){var _0x40442f=_0x2d235b;this[_0x40442f(0x1ab)][_0x40442f(0x208)](_0x40442f(0x191)),this[_0x40442f(0x247)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x2d235b(0x221)]),S(0x3,o[_0x2d235b(0x236)](O)),S(0x4,o[_0x2d235b(0x254)])],exports[_0x2d235b(0x260)]);function A(){var _0x19b59a=_0x2d235b;const _0x580b4a=p['useDependency'](exports[_0x19b59a(0x252)]),_0xd450a4=p['useDependency'](o[_0x19b59a(0x243)]),_0x4505e5=p[_0x19b59a(0x26f)](()=>_0xd450a4[_0x19b59a(0x1e8)](o['UniverInstanceType'][_0x19b59a(0x237)]),void 0x0,!0x1,[]),[_0x414180,_0x7f2ff2]=f['useState'](null),[_0x33c75b,_0x6d413c]=f[_0x19b59a(0x1a4)](h[_0x19b59a(0x24c)]),_0x1b5b44=f[_0x19b59a(0x1e3)](null);return f[_0x19b59a(0x21b)](()=>(_0x4505e5&&_0x580b4a[_0x19b59a(0x231)](_0x4505e5[_0x19b59a(0x1da)]())[_0x19b59a(0x20d)](_0x487bc5=>{var _0x50eb95=_0x19b59a;_0x7f2ff2(_0x487bc5),_0x1b5b44[_0x50eb95(0x1c4)]=_0x487bc5[_0x50eb95(0x1f5)][_0x50eb95(0x193)](_0x1dbfac=>{_0x6d413c(_0x1dbfac);});}),()=>{var _0x2e252b=_0x19b59a,_0x5ce363;(_0x5ce363=_0x1b5b44['current'])==null||_0x5ce363[_0x2e252b(0x202)](),_0x1b5b44[_0x2e252b(0x1c4)]=null;}),[_0x4505e5,_0x580b4a]),_0x414180?l[_0x19b59a(0x240)](g[_0x19b59a(0x201)],{'align':_0x19b59a(0x190),'disabled':_0x33c75b===h[_0x19b59a(0x24a)],'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[_0x19b59a(0x240)](B,{'status':_0x33c75b,'coordinator':_0x414180}),'children':l['jsx'](_0x19b59a(0x233),{'className':g[_0x19b59a(0x244)](_0x19b59a(0x1c9),{'univer-cursor-not-allowed':_0x33c75b===h[_0x19b59a(0x24a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x33c75b!==h[_0x19b59a(0x24a)]}),'type':_0x19b59a(0x233),'children':l[_0x19b59a(0x240)](P,{'className':_0x19b59a(0x213)})})}):null;}function B(_0x34f266){var _0x32e450=_0x2d235b;const {status:_0x1e69c8,coordinator:_0x37dd25}=_0x34f266;switch(_0x1e69c8){case h['IDLE']:return l[_0x32e450(0x240)](Y,{'coordinator':_0x37dd25});case h[_0x32e450(0x1d1)]:return l[_0x32e450(0x240)](Z,{'coordinator':_0x37dd25});case h[_0x32e450(0x25b)]:return l[_0x32e450(0x240)](J,{'coordinator':_0x37dd25});case h['OFFLINE']:return l['jsx'](z,{});case h[_0x32e450(0x226)]:return l[_0x32e450(0x240)](K,{'coordinator':_0x37dd25});default:return null;}}function Y(_0x21c7b6){var _0x493283=_0x2d235b;const {coordinator:_0x100be9}=_0x21c7b6;return l[_0x493283(0x21c)](l['Fragment'],{'children':[l[_0x493283(0x240)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x493283(0x232)}),l[_0x493283(0x240)](g['Button'],{'onClick':()=>_0x100be9[_0x493283(0x19b)](),'children':_0x493283(0x19f)})]});}function Z(_0xe97bdc){var _0x2706e3=_0x2d235b;const {coordinator:_0x23f8aa}=_0xe97bdc;return l[_0x2706e3(0x21c)](l[_0x2706e3(0x1f1)],{'children':[l[_0x2706e3(0x240)](_0x2706e3(0x1f2),{'className':_0x2706e3(0x19d),'children':_0x2706e3(0x203)}),l[_0x2706e3(0x240)](g['Button'],{'onClick':()=>_0x23f8aa[_0x2706e3(0x265)](),'children':_0x2706e3(0x1f9)})]});}function J(_0x2e29cf){var _0x3ee6ff=_0x2d235b;const {coordinator:_0x26039d}=_0x2e29cf;return l[_0x3ee6ff(0x21c)](l[_0x3ee6ff(0x1f1)],{'children':[l[_0x3ee6ff(0x240)](_0x3ee6ff(0x1f2),{'className':_0x3ee6ff(0x19d),'children':_0x3ee6ff(0x242)}),l[_0x3ee6ff(0x240)](g[_0x3ee6ff(0x22c)],{'variant':_0x3ee6ff(0x19e),'onClick':()=>_0x26039d[_0x3ee6ff(0x1f8)](),'children':_0x3ee6ff(0x263)})]});}function K(_0x26c90d){var _0x3c0860=_0x2d235b;const {coordinator:_0x478900}=_0x26c90d;return l['jsxs'](l[_0x3c0860(0x1f1)],{'children':[l[_0x3c0860(0x240)]('div',{'className':_0x3c0860(0x19d),'children':_0x3c0860(0x246)}),l[_0x3c0860(0x240)](g[_0x3c0860(0x22c)],{'variant':_0x3c0860(0x24d),'onClick':()=>_0x478900[_0x3c0860(0x1be)](),'children':_0x3c0860(0x261)})]});}function z(){var _0x58834b=_0x2d235b;return l['jsx'](l['Fragment'],{'children':_0x58834b(0x23a)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x44a0a9,_0x293216,_0x5a12e9,_0x3969f2)=>{for(var _0x29f93e=_0x3969f2>0x1?void 0x0:_0x3969f2?Q(_0x293216,_0x5a12e9):_0x293216,_0x5c1325=_0x44a0a9['length']-0x1,_0xac0858;_0x5c1325>=0x0;_0x5c1325--)(_0xac0858=_0x44a0a9[_0x5c1325])&&(_0x29f93e=_0xac0858(_0x29f93e)||_0x29f93e);return _0x29f93e;},x=(_0x301f0b,_0x2162c1)=>(_0x3924a1,_0x540b5d)=>_0x2162c1(_0x3924a1,_0x540b5d,_0x301f0b);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x2594c2,_0x524429){var _0x57fe98=_0x2d235b;super(),this[_0x57fe98(0x1a2)]=_0x2594c2,this[_0x57fe98(0x1cd)]=_0x524429,this[_0x57fe98(0x220)]();}['_mountLiveShare'](){var _0x3c5746=_0x2d235b;this['disposeWithMe'](this[_0x3c5746(0x1cd)][_0x3c5746(0x20e)](p[_0x3c5746(0x1f6)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x3c5746(0x1a2)])));}},exports[_0x2d235b(0x215)]=X([x(0x0,o[_0x2d235b(0x236)](o['Injector'])),x(0x1,p[_0x2d235b(0x1b2)])],exports[_0x2d235b(0x215)]);const ee=_0x2d235b(0x229),L={};var te=Object[_0x2d235b(0x20b)],ie=(_0x33e517,_0x15753b,_0x49a114,_0x515825)=>{var _0x227476=_0x2d235b;for(var _0x2678f6=_0x515825>0x1?void 0x0:_0x515825?te(_0x15753b,_0x49a114):_0x15753b,_0x5d4d0e=_0x33e517[_0x227476(0x1e0)]-0x1,_0x207eef;_0x5d4d0e>=0x0;_0x5d4d0e--)(_0x207eef=_0x33e517[_0x5d4d0e])&&(_0x2678f6=_0x207eef(_0x2678f6)||_0x2678f6);return _0x2678f6;},ne=(_0x12a39b,_0x2c7f0c)=>(_0x13cf45,_0x5b61f4)=>_0x2c7f0c(_0x13cf45,_0x5b61f4,_0x12a39b);let E=class extends o['Disposable']{constructor(_0x1f2a0f){var _0x514b4b=_0x2d235b;super(),this[_0x514b4b(0x1d7)]=_0x1f2a0f,this[_0x514b4b(0x1e2)]();}[_0x2d235b(0x1e2)](){var _0xa06365=_0x2d235b;[D[_0xa06365(0x228)]['id'],D[_0xa06365(0x19a)]['id'],C[_0xa06365(0x1e5)]['id']][_0xa06365(0x199)](_0x3739c0=>{var _0x121ace=_0xa06365;this[_0x121ace(0x225)](this[_0x121ace(0x1d7)][_0x121ace(0x195)](_0x3739c0));});}};E=ie([ne(0x0,o[_0x2d235b(0x236)](O))],E);var re=Object[_0x2d235b(0x18f)],se=Object[_0x2d235b(0x20b)],oe=(_0x155c11,_0x3ba15e,_0x374d35)=>_0x3ba15e in _0x155c11?re(_0x155c11,_0x3ba15e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x374d35}):_0x155c11[_0x3ba15e]=_0x374d35,ae=(_0x4717bb,_0x4a5165,_0x4d3ecd,_0x4541a0)=>{var _0x41dde9=_0x2d235b;for(var _0xc54237=_0x4541a0>0x1?void 0x0:_0x4541a0?se(_0x4a5165,_0x4d3ecd):_0x4a5165,_0x4e2a4d=_0x4717bb[_0x41dde9(0x1e0)]-0x1,_0x5b05f9;_0x4e2a4d>=0x0;_0x4e2a4d--)(_0x5b05f9=_0x4717bb[_0x4e2a4d])&&(_0xc54237=_0x5b05f9(_0xc54237)||_0xc54237);return _0xc54237;},N=(_0x3bc4cd,_0x407b1a)=>(_0x460c71,_0x5a9237)=>_0x407b1a(_0x460c71,_0x5a9237,_0x3bc4cd),T=(_0x48ca81,_0x4ed612,_0x1016f1)=>oe(_0x48ca81,typeof _0x4ed612!=_0x2d235b(0x1ff)?_0x4ed612+'':_0x4ed612,_0x1016f1);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x2d235b(0x1ac)]=class extends o['Plugin']{constructor(_0x570788=L,_0x42335a,_0x132db0){var _0x390151=_0x2d235b;super(),this['_config']=_0x570788,this[_0x390151(0x1a2)]=_0x42335a,this[_0x390151(0x268)]=_0x132db0;const {..._0x24b497}=o[_0x390151(0x216)]({},L,this[_0x390151(0x22d)]);this[_0x390151(0x268)][_0x390151(0x264)](ee,_0x24b497);}[_0x2d235b(0x22a)](){var _0x47c4fc=_0x2d235b;o[_0x47c4fc(0x227)](this[_0x47c4fc(0x1a2)],o[_0x47c4fc(0x1fe)]([[O],[exports['LiveShareController']],[E],[exports['DesktopLiveShareController']]],this[_0x47c4fc(0x22d)]['override'])),o['touchDependencies'](this['_injector'],[[E]]);}[_0x2d235b(0x22b)](){var _0x466b81=_0x2d235b;o[_0x466b81(0x1aa)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x2d235b(0x1ac)],_0x2d235b(0x23b),o[_0x2d235b(0x205)][_0x2d235b(0x1fd)]),T(exports[_0x2d235b(0x1ac)],_0x2d235b(0x1a9),le),exports[_0x2d235b(0x1ac)]=ae([o['DependentOn'](m[_0x2d235b(0x1bc)]),N(0x1,o['Inject'](o[_0x2d235b(0x258)])),N(0x2,o[_0x2d235b(0x221)])],exports[_0x2d235b(0x1ac)]),exports[_0x2d235b(0x1f0)]=A,exports[_0x2d235b(0x1a6)]=O,exports[_0x2d235b(0x219)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4e3af4=_0x5c78;(function(_0x4296cc,_0x25b45e){var _0x29ed54=_0x5c78,_0x1e2d5d=_0x4296cc();while(!![]){try{var _0x6da783=parseInt(_0x29ed54(0x202))/0x1+-parseInt(_0x29ed54(0x1d8))/0x2*(-parseInt(_0x29ed54(0x1ab))/0x3)+-parseInt(_0x29ed54(0x180))/0x4*(parseInt(_0x29ed54(0x1b4))/0x5)+parseInt(_0x29ed54(0x210))/0x6*(parseInt(_0x29ed54(0x1c3))/0x7)+parseInt(_0x29ed54(0x1a1))/0x8*(-parseInt(_0x29ed54(0x16b))/0x9)+parseInt(_0x29ed54(0x1b8))/0xa*(-parseInt(_0x29ed54(0x1f4))/0xb)+parseInt(_0x29ed54(0x19a))/0xc;if(_0x6da783===_0x25b45e)break;else _0x1e2d5d['push'](_0x1e2d5d['shift']());}catch(_0x5fd228){_0x1e2d5d['push'](_0x1e2d5d['shift']());}}}(_0x8a68,0xb912e));var q=Object[_0x4e3af4(0x1d9)],z=(_0x3e84eb,_0x1cefe3,_0x2a7622)=>_0x1cefe3 in _0x3e84eb?q(_0x3e84eb,_0x1cefe3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a7622}):_0x3e84eb[_0x1cefe3]=_0x2a7622,d=(_0x316034,_0x2af8c6,_0x24afce)=>z(_0x316034,typeof _0x2af8c6!=_0x4e3af4(0x1b7)?_0x2af8c6+'':_0x2af8c6,_0x24afce);import{Disposable as _0x47a0ad,toDisposable as _0x49f94f,IUniverInstanceService as _0x41d5d1,Inject as _0x5e3f41,Injector as _0x3d9b07,IConfigService as _0x509920,ICommandService as _0x731239,RxDisposable as _0x8f69e8,UniverInstanceType as _0x24c5e3,DisposableCollection as _0x183114,CommandType as _0x406fbf,DependentOn as _0x23e969,Plugin as _0x3597d6,merge as _0x5d6ffb,registerDependencies as _0x4fd2a6,mergeOverrideWithDependencies as _0x5e3628,touchDependencies as _0x864c41}from'@univerjs/core';import{useDependency as _0x46ed8c,useObservable as _0x272543,IUIPartsService as _0x13121a,BuiltInUIPart as _0x882eae,connectInjector as _0x4fb5b9}from'@univerjs/ui';import{jsx as _0x4dccbe,jsxs as _0x3f4580,Fragment as _0x4cdd5d}from'react/jsx-runtime';import{Dropdown as _0x26f77f,clsx as _0x520a75,Button as _0x27e6ca}from'@univerjs/design';import{forwardRef as _0x283df9,useRef as _0x27eef8,createElement as _0x49c5d9,useState as _0x10563c,useEffect as _0x4748a7}from'react';function _0x5c78(_0x56acff,_0x597f6a){var _0x8a6868=_0x8a68();return _0x5c78=function(_0x5c785b,_0x2c5f49){_0x5c785b=_0x5c785b-0x161;var _0x3f25ea=_0x8a6868[_0x5c785b];return _0x3f25ea;},_0x5c78(_0x56acff,_0x597f6a);}import{CollaborationEvent as _0x1ff539,parseProtocolChangeset as _0x25e34f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5e6c43,SessionStatus as _0x1eae31,UniverCollaborationClientPlugin as _0x47c63f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xa92ac9,SetWorksheetActiveOperation as _0x47bab9}from'@univerjs/sheets';import{BehaviorSubject as _0xf8c315,Subject as _0x13b0cb}from'rxjs';import{takeUntil as _0x15ef67,throttleTime as _0x2eb31b}from'rxjs/operators';function _0x8a68(){var _0x1eb1fc=['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','_init','Start','div','_config','_commandDisposable','2835qzJTwk','_commandService','xlink:href','_beIdle','LIVESHARE_REQUEST_HOST','send','className','_handleNewChangeSets','stopFollowing','_liveShareService','getOwnPropertySymbols','_presenter','mask','sheet','NOT_FOLLOWING','_stopFollowing','end','LIVESHARE_OPERATION','_collabSessionService','onCommandExecuted','getTypeOfUnitAdded$','17752opltzS','status$','live-share-icon','_handleOperation','propertyIsEnumerable','offline','_reporters','defIds','_startPresenting','delete','operations','_sharedOperations','prototype','svg','idle','getUnitId','icon','UNIVER_LIVE_SHARE_PLUGIN','trim','tag','text','entries','function','registerInitialStateReporter','idSuffix','path','7100256SMvQyO','indexOf','dispose$','replace','hasOwnProperty','default','http://www.w3.org/2000/svg','28136owkjme','forEach','init','data','extend','UniverIcon','substring','getInitialStates','_startLiveShareCoordinator','presenting','4266thkeDq','univer-mb-3\x20univer-w-full\x20univer-text-sm','from','stopPresenting','unitId','add','_entities','attrs','_fetchOperations','1200QiBPjW','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','PRESENTING','symbol','2670nyHPle','evenodd','url(#$1','length','_startFollowing','_status$','disposeWithMe','map','UNIVER_SHEET','1em','LIVESHARE_TERMINATE','14SiSUtQ','_collabSession','pluginName','You\x27are\x20offline.','getTypeOfUnitDisposed$','has','currentColor','parse','_handleNewHost','OFFLINE','LiveShareIcon','complete','FOLLOWING','tryStartPresenting','not-following','call','mutations','_uiPartsService','_univerInstanceService','_handleOffline','current','1618CHohKM','defineProperty','pipe','univer-size-4','_unitID','HEADER_MENU','apply','_handleOnline','find','dispose','button','You\x27re\x20not\x20following\x20the\x20presenter','shouldShareOperation','get','SAME_OPERATION_SHARE_INTERVAL','live-share.config','Stop\x20following','presenter','subscribe','onRendered','ONLINE','onStarting','LIVESHARE_NEW_HOST','defs','none','includes','displayName','0\x200\x2017\x2017','34705igrXwE','getLiveShareCoordinator','_injector','colorChannel1','_mountLiveShare','_configService','registerSharedOperation','createInstance','string','_stopPresenting','following','getOwnPropertyDescriptor','stringify','random','952130VKNunU','sessionStatus$','toString','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','Present\x20this\x20document','univerjs-icon\x20univerjs-icon-','_status','unsubscribe','startFollowing','next','OPERATION','getConfig','registerComponent','LIVESHARE_FETCH_OPERATIONS','3237618trDgZZ','params','set','setConfig','type','concat'];_0x8a68=function(){return _0x1eb1fc;};return _0x8a68();}import{SetZoomRatioOperation as _0x3f5489,SetScrollOperation as _0xc9b77c}from'@univerjs/sheets-ui';var c=function(){var _0x3ab0b5=_0x4e3af4;return c=Object['assign']||function(_0x2d86ff){var _0x30b7c8=_0x5c78;for(var _0x5acc58,_0x5d75c0=0x1,_0x3860fb=arguments[_0x30b7c8(0x1bb)];_0x5d75c0<_0x3860fb;_0x5d75c0++){_0x5acc58=arguments[_0x5d75c0];for(var _0x4f7c10 in _0x5acc58)Object['prototype'][_0x30b7c8(0x19e)]['call'](_0x5acc58,_0x4f7c10)&&(_0x2d86ff[_0x4f7c10]=_0x5acc58[_0x4f7c10]);}return _0x2d86ff;},c[_0x3ab0b5(0x1de)](this,arguments);},Oe=function(_0x5968e7,_0x49bbb8){var _0x5a41d0=_0x4e3af4,_0x223ccc={};for(var _0x1f965e in _0x5968e7)Object[_0x5a41d0(0x18c)]['hasOwnProperty'][_0x5a41d0(0x1d2)](_0x5968e7,_0x1f965e)&&_0x49bbb8[_0x5a41d0(0x19b)](_0x1f965e)<0x0&&(_0x223ccc[_0x1f965e]=_0x5968e7[_0x1f965e]);if(_0x5968e7!=null&&typeof Object[_0x5a41d0(0x175)]==_0x5a41d0(0x196)){for(var _0x6c9cb2=0x0,_0x1f965e=Object['getOwnPropertySymbols'](_0x5968e7);_0x6c9cb2<_0x1f965e[_0x5a41d0(0x1bb)];_0x6c9cb2++)_0x49bbb8[_0x5a41d0(0x19b)](_0x1f965e[_0x6c9cb2])<0x0&&Object[_0x5a41d0(0x18c)][_0x5a41d0(0x184)][_0x5a41d0(0x1d2)](_0x5968e7,_0x1f965e[_0x6c9cb2])&&(_0x223ccc[_0x1f965e[_0x6c9cb2]]=_0x5968e7[_0x1f965e[_0x6c9cb2]]);}return _0x223ccc;},W=_0x283df9(function(_0x1b2ab5,_0xfb72a8){var _0x3c513e=_0x4e3af4,_0x203275=_0x1b2ab5[_0x3c513e(0x190)],_0x955076=_0x1b2ab5['id'],_0x83e51f=_0x1b2ab5['className'],_0x45a33f=_0x1b2ab5['extend'],_0x4a1816=Oe(_0x1b2ab5,['icon','id',_0x3c513e(0x171),_0x3c513e(0x1a5)]),_0x9cb111=_0x3c513e(0x207)[_0x3c513e(0x164)](_0x955076,'\x20')[_0x3c513e(0x164)](_0x83e51f||'')[_0x3c513e(0x192)](),_0x48e17d=_0x27eef8('_'[_0x3c513e(0x164)](Ne()));return Y(_0x203275,''[_0x3c513e(0x164)](_0x955076),{'defIds':_0x203275['defIds'],'idSuffix':_0x48e17d['current']},c({'ref':_0xfb72a8,'className':_0x9cb111},_0x4a1816),_0x45a33f);});function Y(_0x2eda76,_0x251e1a,_0x36fd12,_0x303a8a,_0x469aa3){var _0x46c832=_0x4e3af4;return _0x49c5d9(_0x2eda76[_0x46c832(0x193)],c(c({'key':_0x251e1a},Ee(_0x2eda76,_0x36fd12,_0x469aa3)),_0x303a8a),(we(_0x2eda76,_0x36fd12)['children']||[])['map'](function(_0x5a5815,_0x273084){var _0x3fa662=_0x46c832;return Y(_0x5a5815,''[_0x3fa662(0x164)](_0x251e1a,'-')[_0x3fa662(0x164)](_0x2eda76[_0x3fa662(0x193)],'-')[_0x3fa662(0x164)](_0x273084),_0x36fd12,void 0x0,_0x469aa3);}));}function Ee(_0x3c59aa,_0x545841,_0x46deb7){var _0x15fbec=_0x4e3af4,_0x16ae79=c({},_0x3c59aa[_0x15fbec(0x1b2)]);_0x46deb7!=null&&_0x46deb7[_0x15fbec(0x1f7)]&&_0x16ae79['fill']===_0x15fbec(0x1f7)&&(_0x16ae79['fill']=_0x46deb7[_0x15fbec(0x1f7)]),_0x3c59aa['tag']===_0x15fbec(0x177)&&_0x16ae79['id']&&(_0x16ae79['id']=_0x16ae79['id']+_0x545841[_0x15fbec(0x198)]),Object['entries'](_0x16ae79)[_0x15fbec(0x1a2)](function(_0x55f693){var _0x4a319f=_0x15fbec,_0x27bf6b=_0x55f693[0x0],_0x25b605=_0x55f693[0x1];_0x27bf6b===_0x4a319f(0x177)&&typeof _0x25b605==_0x4a319f(0x1fc)&&(_0x16ae79[_0x27bf6b]=_0x25b605[_0x4a319f(0x19d)](/url\(#(.*)\)/,_0x4a319f(0x1ba)[_0x4a319f(0x164)](_0x545841['idSuffix'],')')));});var _0xdb78a3=_0x545841[_0x15fbec(0x187)];return!_0xdb78a3||_0xdb78a3[_0x15fbec(0x1bb)]===0x0||(_0x3c59aa[_0x15fbec(0x193)]==='use'&&_0x16ae79['xlink:href']&&(_0x16ae79[_0x15fbec(0x16d)]=_0x16ae79['xlink:href']+_0x545841[_0x15fbec(0x198)]),Object[_0x15fbec(0x195)](_0x16ae79)[_0x15fbec(0x1a2)](function(_0x465d9f){var _0x3a059d=_0x15fbec,_0x564719=_0x465d9f[0x0],_0x1e368f=_0x465d9f[0x1];typeof _0x1e368f==_0x3a059d(0x1fc)&&(_0x16ae79[_0x564719]=_0x1e368f[_0x3a059d(0x19d)](/url\(#(.*)\)/,_0x3a059d(0x1ba)[_0x3a059d(0x164)](_0x545841[_0x3a059d(0x198)],')')));})),_0x16ae79;}function we(_0xf90a0,_0x449406){var _0x4c35a0=_0x4e3af4,_0x3e1784,_0x732483=_0x449406['defIds'];return!_0x732483||_0x732483[_0x4c35a0(0x1bb)]===0x0?_0xf90a0:_0xf90a0[_0x4c35a0(0x193)]===_0x4c35a0(0x1ef)&&(!((_0x3e1784=_0xf90a0['children'])===null||_0x3e1784===void 0x0)&&_0x3e1784[_0x4c35a0(0x1bb)])?c(c({},_0xf90a0),{'children':_0xf90a0['children'][_0x4c35a0(0x1bf)](function(_0x483839){var _0x491969=_0x4c35a0;return typeof _0x483839[_0x491969(0x1b2)]['id']=='string'&&_0x732483&&_0x732483[_0x491969(0x1f1)](_0x483839[_0x491969(0x1b2)]['id'])?c(c({},_0x483839),{'attrs':c(c({},_0x483839[_0x491969(0x1b2)]),{'id':_0x483839[_0x491969(0x1b2)]['id']+_0x449406[_0x491969(0x198)]})}):_0x483839;})}):_0xf90a0;}function Ne(){var _0x53891a=_0x4e3af4;return Math[_0x53891a(0x201)]()[_0x53891a(0x204)](0x24)[_0x53891a(0x1a7)](0x2,0x8);}W['displayName']=_0x4e3af4(0x1a6);var Ce={'tag':_0x4e3af4(0x18d),'attrs':{'xmlns':_0x4e3af4(0x1a0),'fill':_0x4e3af4(0x1f0),'viewBox':_0x4e3af4(0x1f3),'width':_0x4e3af4(0x1c1),'height':_0x4e3af4(0x1c1)},'children':[{'tag':'path','attrs':{'fill':_0x4e3af4(0x1c9),'d':_0x4e3af4(0x165)}},{'tag':_0x4e3af4(0x199),'attrs':{'fill':_0x4e3af4(0x1c9),'d':_0x4e3af4(0x1b5),'fillRule':_0x4e3af4(0x1b9),'clipRule':_0x4e3af4(0x1b9)}}]},B=_0x283df9(function(_0xd534d,_0x5ec763){var _0x5c3cbe=_0x4e3af4;return _0x49c5d9(W,Object['assign']({},_0xd534d,{'id':_0x5c3cbe(0x182),'ref':_0x5ec763,'icon':Ce}));});B[_0x4e3af4(0x1f2)]=_0x4e3af4(0x1cd);class L extends _0x47a0ad{constructor(){var _0x1d905e=_0x4e3af4;super(...arguments),d(this,_0x1d905e(0x18b),new Set()),d(this,'_reporters',new Set());}[_0x4e3af4(0x1fa)](_0x45cba8){var _0x4e1383=_0x4e3af4;return this['_sharedOperations']['add'](_0x45cba8),_0x49f94f(()=>this[_0x4e1383(0x18b)][_0x4e1383(0x189)](_0x45cba8));}[_0x4e3af4(0x197)](_0x30ec9b){var _0x3cbe96=_0x4e3af4;return this[_0x3cbe96(0x186)][_0x3cbe96(0x1b0)](_0x30ec9b),_0x49f94f(()=>this[_0x3cbe96(0x186)][_0x3cbe96(0x189)](_0x30ec9b));}[_0x4e3af4(0x1e4)](_0x2e8fd9){var _0x28d3df=_0x4e3af4;return this[_0x28d3df(0x18b)]['has'](_0x2e8fd9);}[_0x4e3af4(0x1a8)](_0x119abf){var _0x4acac0=_0x4e3af4;return Array[_0x4acac0(0x1ad)](this[_0x4acac0(0x186)])['map'](_0x502e48=>_0x502e48(_0x119abf));}}var De=Object[_0x4e3af4(0x1ff)],Z=(_0x36f33e,_0x3fc8fd,_0x7e51d8,_0x172d79)=>{var _0x3ed274=_0x4e3af4;for(var _0x580cd8=_0x172d79>0x1?void 0x0:_0x172d79?De(_0x3fc8fd,_0x7e51d8):_0x3fc8fd,_0x2429ad=_0x36f33e[_0x3ed274(0x1bb)]-0x1,_0x28a8b5;_0x2429ad>=0x0;_0x2429ad--)(_0x28a8b5=_0x36f33e[_0x2429ad])&&(_0x580cd8=_0x28a8b5(_0x580cd8)||_0x580cd8);return _0x580cd8;},f=(_0x1dfe42,_0x2c9825)=>(_0x3b84fb,_0x5889a6)=>_0x2c9825(_0x3b84fb,_0x5889a6,_0x1dfe42);let m=class extends _0x8f69e8{constructor(_0x588b3a,_0x48121a,_0x2d6418){var _0x3791a4=_0x4e3af4;super(),d(this,_0x3791a4(0x1b1),new Map()),(this[_0x3791a4(0x1d5)]=_0x588b3a,this[_0x3791a4(0x1f6)]=_0x48121a,this[_0x3791a4(0x17d)]=_0x2d6418,this[_0x3791a4(0x166)]());}async[_0x4e3af4(0x1f5)](_0x1e4b25){var _0x4e83b7=_0x4e3af4;return this[_0x4e83b7(0x1b1)][_0x4e83b7(0x1c8)](_0x1e4b25)||await this['_startLiveShareCoordinator'](_0x1e4b25),this[_0x4e83b7(0x1b1)][_0x4e83b7(0x1e5)](_0x1e4b25);}['_init'](){var _0x64c5c1=_0x4e3af4;this['_univerInstanceService'][_0x64c5c1(0x17f)](_0x24c5e3[_0x64c5c1(0x1c0)])[_0x64c5c1(0x1da)](_0x15ef67(this[_0x64c5c1(0x19c)]))[_0x64c5c1(0x1ea)](async _0x4a4b77=>{var _0x366673=_0x64c5c1;const _0x3c90e6=_0x4a4b77[_0x366673(0x18f)]();this[_0x366673(0x1b1)][_0x366673(0x1c8)](_0x3c90e6)||this['_startLiveShareCoordinator'](_0x3c90e6);}),this[_0x64c5c1(0x1d5)][_0x64c5c1(0x1c7)](_0x24c5e3[_0x64c5c1(0x1c0)])[_0x64c5c1(0x1da)](_0x15ef67(this[_0x64c5c1(0x19c)]))[_0x64c5c1(0x1ea)](_0x4047d6=>{var _0x3e476b=_0x64c5c1;const _0x91c134=_0x4047d6[_0x3e476b(0x18f)](),_0x3d1ca1=this[_0x3e476b(0x1b1)][_0x3e476b(0x1e5)](_0x91c134);_0x3d1ca1==null||_0x3d1ca1[_0x3e476b(0x1e1)]();});}async[_0x4e3af4(0x1a9)](_0x59075f){var _0x2e7c78=_0x4e3af4;const _0x389c32=await this[_0x2e7c78(0x17d)]['requireSession'](_0x59075f),_0x594cb0=this['_injector'][_0x2e7c78(0x1fb)](C,_0x59075f,_0x389c32);return _0x594cb0[_0x2e7c78(0x1a3)](),this[_0x2e7c78(0x1b1)][_0x2e7c78(0x161)](_0x59075f,_0x594cb0),_0x594cb0;}};m=Z([f(0x0,_0x41d5d1),f(0x1,_0x5e3f41(_0x3d9b07)),f(0x2,_0x5e3f41(_0x5e6c43))],m);var h=(_0x282943=>(_0x282943[_0x4e3af4(0x1cc)]='offline',_0x282943['IDLE']=_0x4e3af4(0x18e),_0x282943['FOLLOWING']=_0x4e3af4(0x1fe),_0x282943[_0x4e3af4(0x179)]='not-following',_0x282943[_0x4e3af4(0x1b6)]='presenting',_0x282943))(h||{});const xe=_0x4e3af4(0x1e6),Le=0xc8;let C=class extends _0x8f69e8{constructor(_0x28cea6,_0x2d3596,_0x588087,_0x20ce57,_0x597e7){var _0xc5d941=_0x4e3af4;super(),d(this,_0xc5d941(0x1bd),new _0xf8c315(_0xc5d941(0x18e))),d(this,_0xc5d941(0x181),this['_status$']['asObservable']()),d(this,_0xc5d941(0x166),!0x1),d(this,_0xc5d941(0x16a),null),d(this,_0xc5d941(0x176),null),(this['_unitID']=_0x28cea6,this[_0xc5d941(0x1c4)]=_0x2d3596,this[_0xc5d941(0x1f9)]=_0x588087,this[_0xc5d941(0x174)]=_0x20ce57,this['_commandService']=_0x597e7);}get['_status'](){var _0x2bfd60=_0x4e3af4;return this[_0x2bfd60(0x1bd)]['getValue']();}[_0x4e3af4(0x1e1)](){var _0x1b5a56=_0x4e3af4,_0x2b17e2;(_0x2b17e2=this[_0x1b5a56(0x16a)])==null||_0x2b17e2['dispose'](),this[_0x1b5a56(0x1bd)][_0x1b5a56(0x20b)](_0x1b5a56(0x18e)),this[_0x1b5a56(0x1bd)][_0x1b5a56(0x1ce)]();}['init'](){var _0x1a4e35=_0x4e3af4;this['_init']||(this['_init']=!0x0,this[_0x1a4e35(0x1c4)][_0x1a4e35(0x203)][_0x1a4e35(0x1da)](_0x15ef67(this[_0x1a4e35(0x19c)]))[_0x1a4e35(0x1ea)](_0x104543=>{var _0x26d6eb=_0x1a4e35;switch(_0x104543){case _0x1eae31[_0x26d6eb(0x1cc)]:this[_0x26d6eb(0x1d6)]();break;case _0x1eae31[_0x26d6eb(0x1ec)]:this[_0x26d6eb(0x1df)]();break;}}),this[_0x1a4e35(0x1c4)]['event$'][_0x1a4e35(0x1da)](_0x15ef67(this[_0x1a4e35(0x19c)]))[_0x1a4e35(0x1ea)](_0x51450d=>{var _0x3d3686=_0x1a4e35;const {eventID:_0x1bd1c2}=_0x51450d;switch(_0x1bd1c2){case _0x1ff539[_0x3d3686(0x1ee)]:this[_0x3d3686(0x1cb)](_0x51450d);break;case _0x1ff539[_0x3d3686(0x17c)]:this[_0x3d3686(0x183)](_0x51450d);break;case _0x1ff539[_0x3d3686(0x1c2)]:this['_handleTerminate']();break;case _0x1ff539['NEW_CHANGESETS']:this[_0x3d3686(0x172)](_0x51450d);break;}}));}['tryStartPresenting'](){var _0xc29aea=_0x4e3af4;this[_0xc29aea(0x1c4)][_0xc29aea(0x170)]({'eventID':_0x1ff539[_0xc29aea(0x16f)],'data':{'unitID':this[_0xc29aea(0x1dc)],'userID':this[_0xc29aea(0x1c4)]['getMemberID']()}},this['_unitID']);}[_0x4e3af4(0x1ae)](){var _0x15f201=_0x4e3af4;this[_0x15f201(0x208)]===_0x15f201(0x1aa)&&(this[_0x15f201(0x1bd)][_0x15f201(0x20b)](_0x15f201(0x18e)),this[_0x15f201(0x1c4)]['send']({'eventID':_0x1ff539['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x15f201(0x1dc)]}},this[_0x15f201(0x1dc)]));}[_0x4e3af4(0x20a)](){var _0x59a1b7=_0x4e3af4;this['_status']===_0x59a1b7(0x1d1)&&(this[_0x59a1b7(0x1bd)][_0x59a1b7(0x20b)]('following'),this[_0x59a1b7(0x1bc)]());}['stopFollowing'](){var _0x5d3bef=_0x4e3af4;this[_0x5d3bef(0x208)]==='following'&&this[_0x5d3bef(0x17a)]();}[_0x4e3af4(0x1cb)](_0x3acacc){var _0x2f8557=_0x4e3af4;const {presenter:_0x42556b}=_0x3acacc[_0x2f8557(0x1a4)],_0x4a0bb0=this[_0x2f8557(0x1c4)]['getMemberID']();this[_0x2f8557(0x176)]=_0x42556b,_0x42556b===_0x4a0bb0?(this[_0x2f8557(0x17a)](),this['_startPresenting']()):this['_status']!==_0x2f8557(0x1d1)&&(this['_stopPresenting'](),this[_0x2f8557(0x1bc)]());}[_0x4e3af4(0x1b3)](){var _0x57943b=_0x4e3af4;const _0x509a2f={'eventID':_0x1ff539[_0x57943b(0x20f)]};this[_0x57943b(0x1c4)][_0x57943b(0x170)](_0x509a2f,this[_0x57943b(0x1dc)]);}['_handleTerminate'](){var _0x33c1ee=_0x4e3af4;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x33c1ee(0x16e)]();}[_0x4e3af4(0x172)](_0x5e23c5){var _0x1522d6=_0x4e3af4;if(this[_0x1522d6(0x208)]==='following'&&this[_0x1522d6(0x176)]===_0x5e23c5['data']['memberID']){const _0x361441=_0x25e34f(_0x5e23c5[_0x1522d6(0x1a4)])[_0x1522d6(0x1d3)]['reverse']()[_0x1522d6(0x1e0)](_0x3274f0=>_0x3274f0['id']===_0xa92ac9['id']);if(_0x361441){const _0x35059e=_0x361441[_0x1522d6(0x211)][_0x1522d6(0x1af)],_0x31767b=_0x361441[_0x1522d6(0x211)][_0x1522d6(0x178)]['id'];setTimeout(()=>{var _0x55b82f=_0x1522d6;this[_0x55b82f(0x16c)]['executeCommand'](_0x47bab9['id'],{'unitId':_0x35059e,'subUnitId':_0x31767b},{'fromCollab':!0x0});});}}}[_0x4e3af4(0x188)](){var _0x432d01=_0x4e3af4;this[_0x432d01(0x1bd)][_0x432d01(0x20b)](_0x432d01(0x1aa));const _0x17021f=new Map(),_0x439807=this[_0x432d01(0x16a)]=new _0x183114();_0x439807['add'](_0x49f94f(()=>{var _0xbd99a=_0x432d01;_0x17021f[_0xbd99a(0x1a2)](_0x1a79a8=>_0x1a79a8[_0xbd99a(0x1ce)]()),_0x17021f['clear']();})),_0x439807[_0x432d01(0x1b0)](this[_0x432d01(0x16c)][_0x432d01(0x17e)](_0x2ad88e=>{var _0x4f70d7=_0x432d01,_0x5d9409;if(_0x2ad88e[_0x4f70d7(0x163)]!==_0x406fbf[_0x4f70d7(0x20c)]||!this[_0x4f70d7(0x174)]['shouldShareOperation'](_0x2ad88e['id']))return;const {id:_0x39a1bc}=_0x2ad88e;let _0x153371;_0x17021f[_0x4f70d7(0x1c8)](_0x39a1bc)?_0x153371=_0x17021f[_0x4f70d7(0x1e5)](_0x39a1bc):(_0x153371=new _0x13b0cb(),_0x17021f[_0x4f70d7(0x161)](_0x39a1bc,_0x153371),_0x153371[_0x4f70d7(0x1da)](_0x2eb31b((_0x5d9409=this['_configService'][_0x4f70d7(0x20d)](xe))!=null?_0x5d9409:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3c0346=>{var _0x2eed7b=_0x4f70d7;this[_0x2eed7b(0x1c4)][_0x2eed7b(0x170)]({'eventID':_0x1ff539[_0x2eed7b(0x17c)],'data':{'unitID':this['_unitID'],'operations':{[_0x3c0346['id']]:{'id':_0x3c0346['id'],'params':JSON[_0x2eed7b(0x200)](_0x3c0346[_0x2eed7b(0x211)])}}}},this[_0x2eed7b(0x1dc)]);})),_0x153371[_0x4f70d7(0x20b)](_0x2ad88e);})),this['_liveShareService'][_0x432d01(0x1a8)](this[_0x432d01(0x1dc)])[_0x432d01(0x1a2)](_0x1d7fd4=>this['_collabSession']['send']({'eventID':_0x1ff539[_0x432d01(0x17c)],'data':{'unitID':this[_0x432d01(0x1dc)],'operations':{[_0x1d7fd4['id']]:{'id':_0x1d7fd4['id'],'params':JSON[_0x432d01(0x200)](_0x1d7fd4[_0x432d01(0x211)])}}}},this[_0x432d01(0x1dc)]));}[_0x4e3af4(0x1fd)](){var _0x22e187=_0x4e3af4,_0x3d950c;this['_status$']['next'](_0x22e187(0x18e)),(_0x3d950c=this[_0x22e187(0x16a)])==null||_0x3d950c[_0x22e187(0x1e1)](),this[_0x22e187(0x16a)]=null;}[_0x4e3af4(0x1bc)](){var _0x2dcfa9=_0x4e3af4,_0x2401b2;(_0x2401b2=this[_0x2dcfa9(0x16a)])==null||_0x2401b2['dispose'](),this[_0x2dcfa9(0x1bd)]['next'](_0x2dcfa9(0x1fe));}[_0x4e3af4(0x16e)](){var _0x243513=_0x4e3af4,_0x344e1f;this[_0x243513(0x1bd)][_0x243513(0x20b)](_0x243513(0x18e)),(_0x344e1f=this[_0x243513(0x16a)])==null||_0x344e1f['dispose'](),this[_0x243513(0x16a)]=null;}[_0x4e3af4(0x17a)](){var _0x4550a8=_0x4e3af4,_0x5dc4c6;this[_0x4550a8(0x1bd)]['next'](_0x4550a8(0x1d1)),(_0x5dc4c6=this[_0x4550a8(0x16a)])==null||_0x5dc4c6[_0x4550a8(0x1e1)]();}[_0x4e3af4(0x183)](_0x2115bb){var _0x12945d=_0x4e3af4;if(['presenting','not-following',_0x12945d(0x185)]['includes'](this[_0x12945d(0x208)])||!_0x2115bb[_0x12945d(0x1a4)][_0x12945d(0x1e9)]||_0x2115bb[_0x12945d(0x1a4)]['presenter']===this[_0x12945d(0x1c4)]['getMemberID']())return;this[_0x12945d(0x208)]===_0x12945d(0x18e)&&this['_startFollowing']();const _0x414eb9=_0x2115bb[_0x12945d(0x1a4)][_0x12945d(0x18a)];Object['values'](_0x414eb9)[_0x12945d(0x1a2)](_0x4e3eaa=>{var _0x352612=_0x12945d;this[_0x352612(0x16c)]['executeCommand'](_0x4e3eaa['id'],_0x4e3eaa[_0x352612(0x211)]?JSON[_0x352612(0x1ca)](_0x4e3eaa['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x193a17=_0x4e3af4,_0x1a6334;this[_0x193a17(0x1bd)]['next'](_0x193a17(0x185)),(_0x1a6334=this['_commandDisposable'])==null||_0x1a6334['dispose']();}[_0x4e3af4(0x1df)](){var _0x202303=_0x4e3af4;this[_0x202303(0x1bd)][_0x202303(0x20b)](_0x202303(0x18e)),this['_fetchOperations']();}};C=Z([f(0x2,_0x509920),f(0x3,_0x5e3f41(L)),f(0x4,_0x731239)],C);function ye(){var _0x255142=_0x4e3af4;const _0x3c42d1=_0x46ed8c(m),_0x192c95=_0x46ed8c(_0x41d5d1),_0x4e670c=_0x272543(()=>_0x192c95['getCurrentTypeOfUnit$'](_0x24c5e3[_0x255142(0x1c0)]),void 0x0,!0x1,[]),[_0x16500f,_0x5dd4dd]=_0x10563c(null),[_0x39f02b,_0x39ef3f]=_0x10563c(h['IDLE']),_0x5aa429=_0x27eef8(null);return _0x4748a7(()=>(_0x4e670c&&_0x3c42d1[_0x255142(0x1f5)](_0x4e670c[_0x255142(0x18f)]())['then'](_0x38d79c=>{var _0x49ab88=_0x255142;_0x5dd4dd(_0x38d79c),_0x5aa429[_0x49ab88(0x1d7)]=_0x38d79c[_0x49ab88(0x181)][_0x49ab88(0x1ea)](_0x254e5b=>{_0x39ef3f(_0x254e5b);});}),()=>{var _0x49881a=_0x255142,_0x471132;(_0x471132=_0x5aa429[_0x49881a(0x1d7)])==null||_0x471132[_0x49881a(0x209)](),_0x5aa429[_0x49881a(0x1d7)]=null;}),[_0x4e670c,_0x3c42d1]),_0x16500f?_0x4dccbe(_0x26f77f,{'align':_0x255142(0x17b),'disabled':_0x39f02b===h[_0x255142(0x1cc)],'className':_0x255142(0x205),'overlay':_0x4dccbe(Re,{'status':_0x39f02b,'coordinator':_0x16500f}),'children':_0x4dccbe(_0x255142(0x1e2),{'className':_0x520a75('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x39f02b===h[_0x255142(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39f02b!==h[_0x255142(0x1cc)]}),'type':_0x255142(0x1e2),'children':_0x4dccbe(B,{'className':_0x255142(0x1db)})})}):null;}function Re(_0x29fd8c){var _0x5cb9df=_0x4e3af4;const {status:_0x4aba32,coordinator:_0x446297}=_0x29fd8c;switch(_0x4aba32){case h['IDLE']:return _0x4dccbe(Pe,{'coordinator':_0x446297});case h[_0x5cb9df(0x1cf)]:return _0x4dccbe(Ae,{'coordinator':_0x446297});case h[_0x5cb9df(0x179)]:return _0x4dccbe(Te,{'coordinator':_0x446297});case h['OFFLINE']:return _0x4dccbe(Fe,{});case h[_0x5cb9df(0x1b6)]:return _0x4dccbe($e,{'coordinator':_0x446297});default:return null;}}function Pe(_0x49859c){var _0xc5535c=_0x4e3af4;const {coordinator:_0x3c86e2}=_0x49859c;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0xc5535c(0x168),{'className':_0xc5535c(0x1ac),'children':_0xc5535c(0x206)}),_0x4dccbe(_0x27e6ca,{'onClick':()=>_0x3c86e2[_0xc5535c(0x1d0)](),'children':_0xc5535c(0x167)})]});}function Ae(_0xcc2208){var _0x49b4bf=_0x4e3af4;const {coordinator:_0x360952}=_0xcc2208;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x49b4bf(0x168),{'className':_0x49b4bf(0x1ac),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4dccbe(_0x27e6ca,{'onClick':()=>_0x360952[_0x49b4bf(0x173)](),'children':_0x49b4bf(0x1e8)})]});}function Te(_0x4abeaf){var _0x5a4b4d=_0x4e3af4;const {coordinator:_0x1498e7}=_0x4abeaf;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x5a4b4d(0x168),{'className':_0x5a4b4d(0x1ac),'children':_0x5a4b4d(0x1e3)}),_0x4dccbe(_0x27e6ca,{'variant':_0x5a4b4d(0x194),'onClick':()=>_0x1498e7[_0x5a4b4d(0x20a)](),'children':'Start\x20following'})]});}function $e(_0x4467c3){var _0x1df5f4=_0x4e3af4;const {coordinator:_0x3639cd}=_0x4467c3;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x1df5f4(0x168),{'className':_0x1df5f4(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4dccbe(_0x27e6ca,{'variant':_0x1df5f4(0x19f),'onClick':()=>_0x3639cd[_0x1df5f4(0x1ae)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x1d63f2=_0x4e3af4;return _0x4dccbe(_0x4cdd5d,{'children':_0x1d63f2(0x1c6)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x26a205,_0x537c52,_0x37c655,_0x5e20e0)=>{var _0x5117c8=_0x4e3af4;for(var _0x1a03f1=_0x5e20e0>0x1?void 0x0:_0x5e20e0?He(_0x537c52,_0x37c655):_0x537c52,_0x223af9=_0x26a205[_0x5117c8(0x1bb)]-0x1,_0x356f32;_0x223af9>=0x0;_0x223af9--)(_0x356f32=_0x26a205[_0x223af9])&&(_0x1a03f1=_0x356f32(_0x1a03f1)||_0x1a03f1);return _0x1a03f1;},T=(_0x16374d,_0x1a3760)=>(_0x329b75,_0x5344f1)=>_0x1a3760(_0x329b75,_0x5344f1,_0x16374d);let I=class extends _0x47a0ad{constructor(_0x20ce4e,_0x20fe68){var _0xadeb15=_0x4e3af4;super(),this[_0xadeb15(0x1f6)]=_0x20ce4e,this[_0xadeb15(0x1d4)]=_0x20fe68,this['_mountLiveShare']();}[_0x4e3af4(0x1f8)](){var _0x5d0129=_0x4e3af4;this[_0x5d0129(0x1be)](this[_0x5d0129(0x1d4)][_0x5d0129(0x20e)](_0x882eae[_0x5d0129(0x1dd)],()=>_0x4fb5b9(ye,this['_injector'])));}};I=je([T(0x0,_0x5e3f41(_0x3d9b07)),T(0x1,_0x13121a)],I);const Ue=_0x4e3af4(0x1e7),$={};var Ve=Object[_0x4e3af4(0x1ff)],Me=(_0x260437,_0x3f7b37,_0x848eff,_0x18daa2)=>{var _0xec4250=_0x4e3af4;for(var _0x35f12b=_0x18daa2>0x1?void 0x0:_0x18daa2?Ve(_0x3f7b37,_0x848eff):_0x3f7b37,_0x1a74e4=_0x260437[_0xec4250(0x1bb)]-0x1,_0x486fe3;_0x1a74e4>=0x0;_0x1a74e4--)(_0x486fe3=_0x260437[_0x1a74e4])&&(_0x35f12b=_0x486fe3(_0x35f12b)||_0x35f12b);return _0x35f12b;},ke=(_0x376828,_0x7316c)=>(_0x51f8a7,_0x38c2f6)=>_0x7316c(_0x51f8a7,_0x38c2f6,_0x376828);let b=class extends _0x47a0ad{constructor(_0x35b954){var _0x2c1426=_0x4e3af4;super(),this[_0x2c1426(0x174)]=_0x35b954,this[_0x2c1426(0x166)]();}[_0x4e3af4(0x166)](){var _0x4a7fbf=_0x4e3af4;[_0x3f5489['id'],_0xc9b77c['id'],_0x47bab9['id']][_0x4a7fbf(0x1a2)](_0x277bd1=>{var _0x53e952=_0x4a7fbf;this['disposeWithMe'](this[_0x53e952(0x174)][_0x53e952(0x1fa)](_0x277bd1));});}};b=Me([ke(0x0,_0x5e3f41(L))],b);var Ge=Object[_0x4e3af4(0x1d9)],We=Object[_0x4e3af4(0x1ff)],Ye=(_0x4e2550,_0x48476e,_0x2ad7ba)=>_0x48476e in _0x4e2550?Ge(_0x4e2550,_0x48476e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad7ba}):_0x4e2550[_0x48476e]=_0x2ad7ba,Be=(_0x3b4687,_0x3173f9,_0x128ac1,_0x173115)=>{var _0xec3c96=_0x4e3af4;for(var _0x4cfb6f=_0x173115>0x1?void 0x0:_0x173115?We(_0x3173f9,_0x128ac1):_0x3173f9,_0x229bda=_0x3b4687[_0xec3c96(0x1bb)]-0x1,_0x519226;_0x229bda>=0x0;_0x229bda--)(_0x519226=_0x3b4687[_0x229bda])&&(_0x4cfb6f=_0x519226(_0x4cfb6f)||_0x4cfb6f);return _0x4cfb6f;},F=(_0x1a8af8,_0xd9dbea)=>(_0x197f86,_0x469e54)=>_0xd9dbea(_0x197f86,_0x469e54,_0x1a8af8),J=(_0x43663d,_0x376dba,_0x1fb83f)=>Ye(_0x43663d,typeof _0x376dba!=_0x4e3af4(0x1b7)?_0x376dba+'':_0x376dba,_0x1fb83f);const Ze=_0x4e3af4(0x191);let O=class extends _0x3597d6{constructor(_0xd6250=$,_0x1a4d00,_0x1915b2){var _0x52cf42=_0x4e3af4;super(),this[_0x52cf42(0x169)]=_0xd6250,this[_0x52cf42(0x1f6)]=_0x1a4d00,this[_0x52cf42(0x1f9)]=_0x1915b2;const {..._0x1b7b57}=_0x5d6ffb({},$,this[_0x52cf42(0x169)]);this[_0x52cf42(0x1f9)][_0x52cf42(0x162)](Ue,_0x1b7b57);}[_0x4e3af4(0x1ed)](){var _0x2a4439=_0x4e3af4;_0x4fd2a6(this[_0x2a4439(0x1f6)],_0x5e3628([[L],[m],[b],[I]],this[_0x2a4439(0x169)]['override'])),_0x864c41(this['_injector'],[[b]]);}[_0x4e3af4(0x1eb)](){_0x864c41(this['_injector'],[[I]]);}};J(O,'type',_0x24c5e3['UNIVER_UNKNOWN']),J(O,_0x4e3af4(0x1c5),Ze),O=Be([_0x23e969(_0x47c63f),F(0x1,_0x5e3f41(_0x3d9b07)),F(0x2,_0x509920)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1d5b70=_0x16a7;(function(_0x3c1fb6,_0x2f48e1){var _0x4a6e4c=_0x16a7,_0x39a2a2=_0x3c1fb6();while(!![]){try{var _0x199822=-parseInt(_0x4a6e4c(0x27b))/0x1*(-parseInt(_0x4a6e4c(0x1ef))/0x2)+parseInt(_0x4a6e4c(0x23e))/0x3*(-parseInt(_0x4a6e4c(0x23d))/0x4)+parseInt(_0x4a6e4c(0x1d5))/0x5*(-parseInt(_0x4a6e4c(0x26a))/0x6)+-parseInt(_0x4a6e4c(0x226))/0x7*(-parseInt(_0x4a6e4c(0x1ed))/0x8)+-parseInt(_0x4a6e4c(0x1d9))/0x9*(parseInt(_0x4a6e4c(0x228))/0xa)+-parseInt(_0x4a6e4c(0x218))/0xb+parseInt(_0x4a6e4c(0x25e))/0xc;if(_0x199822===_0x2f48e1)break;else _0x39a2a2['push'](_0x39a2a2['shift']());}catch(_0x162003){_0x39a2a2['push'](_0x39a2a2['shift']());}}}(_0x30f0,0xeaa0a));var q=Object['defineProperty'],z=(_0x5f39ad,_0x3802ee,_0x51c1d0)=>_0x3802ee in _0x5f39ad?q(_0x5f39ad,_0x3802ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c1d0}):_0x5f39ad[_0x3802ee]=_0x51c1d0,d=(_0x1a5b21,_0x3fc234,_0x3ccad4)=>z(_0x1a5b21,typeof _0x3fc234!=_0x1d5b70(0x1e7)?_0x3fc234+'':_0x3fc234,_0x3ccad4);import{Disposable as _0x5dd809,toDisposable as _0x35611b,IUniverInstanceService as _0x25c89d,Inject as _0x9f09cd,Injector as _0x454c2a,IConfigService as _0x536ce4,ICommandService as _0x595663,RxDisposable as _0x231eea,UniverInstanceType as _0x129dbe,DisposableCollection as _0x1525a6,CommandType as _0x4d70ae,DependentOn as _0x3c4c14,Plugin as _0x47c218,merge as _0x71c5cd,registerDependencies as _0x412ba8,mergeOverrideWithDependencies as _0x58f7e9,touchDependencies as _0x2497e9}from'@univerjs/core';import{useDependency as _0x2be91e,useObservable as _0xf14f6a,IUIPartsService as _0x3770e4,BuiltInUIPart as _0x53c462,connectInjector as _0xcd3d9a}from'@univerjs/ui';import{jsx as _0x46d2aa,jsxs as _0x5c1ec5,Fragment as _0x1ff51}from'react/jsx-runtime';import{Dropdown as _0xd37ad7,clsx as _0x3be2af,Button as _0x1527c3}from'@univerjs/design';function _0x30f0(){var _0x185daf=['offline','8rnccnh','Start\x20following','6KFEFwH','_unitID','_handleOnline','currentColor','getTypeOfUnitAdded$','_stopPresenting','status$','set','map','getOwnPropertyDescriptor','_univerInstanceService','has','sessionStatus$','_handleNewHost','getInitialStates','get','_beIdle','LIVESHARE_TERMINATE','_reporters','requireSession','path','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','tag','_init','_liveShareService','UNIVER_SHEET','pipe','dispose','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','colorChannel1','end','idle','icon','You\x27re\x20not\x20following\x20the\x20presenter','NEW_CHANGESETS','getValue','Stop\x20presenting','live-share-icon','LIVESHARE_OPERATION','0\x200\x2017\x2017','7706820kTLbDZ','call','1em','_collabSession','shouldShareOperation','defs','_handleOperation','defineProperty','xlink:href','presenting','not-following','_startLiveShareCoordinator','stopFollowing','idSuffix','8163589mGEDQK','_status','70JLfhVi','displayName','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinator','_fetchOperations','Stop\x20following','asObservable','_entities','prototype','presenter','entries','add','_startPresenting','apply','stopPresenting','reverse','replace','stringify','_commandDisposable','children','UNIVER_UNKNOWN','5152892KcgtkR','3pzINur','_collabSessionService','_handleTerminate','hasOwnProperty','registerInitialStateReporter','subscribe','registerSharedOperation','trim','extend','ONLINE','none','executeCommand','PRESENTING','You\x27are\x20offline.','values','_commandService','complete','from','onRendered','string','parse','length','disposeWithMe','_uiPartsService','following','concat','FOLLOWING','OPERATION','next','className','_status$','forEach','12484152POPuQr','random','text','getMemberID','_handleOffline','getOwnPropertySymbols','sheet','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitDisposed$','_stopFollowing','function','9894DdJzdp','onCommandExecuted','button','evenodd','_presenter','div','setConfig','getUnitId','_configService','delete','_config','_startFollowing','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','includes','mutations','UniverIcon','registerComponent','335239sdXSID','params','substring','default','_sharedOperations','attrs','clear','createInstance','operations','assign','_injector','getCurrentTypeOfUnit$','http://www.w3.org/2000/svg','IDLE','unsubscribe','mask','send','530eocVJZ','dispose$','NOT_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','112653ijQxtt','toString','univerjs-icon\x20univerjs-icon-','tryStartPresenting','OFFLINE','defIds','data','then','LIVESHARE_NEW_HOST','use','current','type','url(#$1','_mountLiveShare','symbol','svg','fill','HEADER_MENU','startFollowing'];_0x30f0=function(){return _0x185daf;};return _0x30f0();}import{forwardRef as _0x3759f5,useRef as _0x514d8f,createElement as _0x28844c,useState as _0x47776c,useEffect as _0x37f6e9}from'react';import{CollaborationEvent as _0xf7519f,parseProtocolChangeset as _0x5a916f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46d5bf,SessionStatus as _0x129b56,UniverCollaborationClientPlugin as _0x10eb0c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2be1b3,SetWorksheetActiveOperation as _0x2c2b73}from'@univerjs/sheets';import{BehaviorSubject as _0x31dbf0,Subject as _0x28bfba}from'rxjs';import{takeUntil as _0x11bc00,throttleTime as _0x4bf83f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2af7e3,SetScrollOperation as _0x4699e2}from'@univerjs/sheets-ui';var c=function(){var _0x35f3c1=_0x1d5b70;return c=Object['assign']||function(_0x5b0097){var _0x507ec1=_0x16a7;for(var _0x52a800,_0x1b42d8=0x1,_0x32cca4=arguments[_0x507ec1(0x253)];_0x1b42d8<_0x32cca4;_0x1b42d8++){_0x52a800=arguments[_0x1b42d8];for(var _0x15a9b2 in _0x52a800)Object['prototype'][_0x507ec1(0x241)]['call'](_0x52a800,_0x15a9b2)&&(_0x5b0097[_0x15a9b2]=_0x52a800[_0x15a9b2]);}return _0x5b0097;},c[_0x35f3c1(0x235)](this,arguments);},Oe=function(_0x2935bd,_0x38bdc4){var _0x41dd64=_0x1d5b70,_0x2295ae={};for(var _0x345b6a in _0x2935bd)Object[_0x41dd64(0x230)]['hasOwnProperty'][_0x41dd64(0x219)](_0x2935bd,_0x345b6a)&&_0x38bdc4['indexOf'](_0x345b6a)<0x0&&(_0x2295ae[_0x345b6a]=_0x2935bd[_0x345b6a]);if(_0x2935bd!=null&&typeof Object[_0x41dd64(0x263)]==_0x41dd64(0x269)){for(var _0x50e815=0x0,_0x345b6a=Object[_0x41dd64(0x263)](_0x2935bd);_0x50e815<_0x345b6a[_0x41dd64(0x253)];_0x50e815++)_0x38bdc4['indexOf'](_0x345b6a[_0x50e815])<0x0&&Object[_0x41dd64(0x230)]['propertyIsEnumerable']['call'](_0x2935bd,_0x345b6a[_0x50e815])&&(_0x2295ae[_0x345b6a[_0x50e815]]=_0x2935bd[_0x345b6a[_0x50e815]]);}return _0x2295ae;},W=_0x3759f5(function(_0x2f1749,_0x3b8745){var _0x2704bb=_0x1d5b70,_0x5a22dd=_0x2f1749['icon'],_0x143f32=_0x2f1749['id'],_0x259019=_0x2f1749[_0x2704bb(0x25b)],_0x141539=_0x2f1749[_0x2704bb(0x246)],_0x252a4a=Oe(_0x2f1749,[_0x2704bb(0x210),'id','className',_0x2704bb(0x246)]),_0x22d3e1=_0x2704bb(0x1db)[_0x2704bb(0x257)](_0x143f32,'\x20')[_0x2704bb(0x257)](_0x259019||'')[_0x2704bb(0x245)](),_0x316c76=_0x514d8f('_'['concat'](Ne()));return Y(_0x5a22dd,''[_0x2704bb(0x257)](_0x143f32),{'defIds':_0x5a22dd[_0x2704bb(0x1de)],'idSuffix':_0x316c76[_0x2704bb(0x1e3)]},c({'ref':_0x3b8745,'className':_0x22d3e1},_0x252a4a),_0x141539);});function Y(_0x12faad,_0x8c931e,_0x26aa7c,_0x1f47ce,_0x21e5c6){var _0x568fb4=_0x1d5b70;return _0x28844c(_0x12faad[_0x568fb4(0x205)],c(c({'key':_0x8c931e},Ee(_0x12faad,_0x26aa7c,_0x21e5c6)),_0x1f47ce),(we(_0x12faad,_0x26aa7c)['children']||[])[_0x568fb4(0x1f7)](function(_0x1e69f1,_0x148cce){var _0x27f6f0=_0x568fb4;return Y(_0x1e69f1,''['concat'](_0x8c931e,'-')['concat'](_0x12faad[_0x27f6f0(0x205)],'-')[_0x27f6f0(0x257)](_0x148cce),_0x26aa7c,void 0x0,_0x21e5c6);}));}function Ee(_0x1bed3d,_0xa049f4,_0x495dec){var _0x3fa140=_0x1d5b70,_0x3ff140=c({},_0x1bed3d[_0x3fa140(0x280)]);_0x495dec!=null&&_0x495dec[_0x3fa140(0x20d)]&&_0x3ff140[_0x3fa140(0x1e9)]===_0x3fa140(0x20d)&&(_0x3ff140[_0x3fa140(0x1e9)]=_0x495dec['colorChannel1']),_0x1bed3d[_0x3fa140(0x205)]===_0x3fa140(0x1d3)&&_0x3ff140['id']&&(_0x3ff140['id']=_0x3ff140['id']+_0xa049f4[_0x3fa140(0x225)]),Object[_0x3fa140(0x232)](_0x3ff140)[_0x3fa140(0x25d)](function(_0x1dae10){var _0xba59e7=_0x3fa140,_0x26cb77=_0x1dae10[0x0],_0x5a96f2=_0x1dae10[0x1];_0x26cb77==='mask'&&typeof _0x5a96f2==_0xba59e7(0x251)&&(_0x3ff140[_0x26cb77]=_0x5a96f2[_0xba59e7(0x238)](/url\(#(.*)\)/,'url(#$1'[_0xba59e7(0x257)](_0xa049f4[_0xba59e7(0x225)],')')));});var _0x1dee08=_0xa049f4['defIds'];return!_0x1dee08||_0x1dee08[_0x3fa140(0x253)]===0x0||(_0x1bed3d[_0x3fa140(0x205)]===_0x3fa140(0x1e2)&&_0x3ff140[_0x3fa140(0x220)]&&(_0x3ff140[_0x3fa140(0x220)]=_0x3ff140['xlink:href']+_0xa049f4[_0x3fa140(0x225)]),Object['entries'](_0x3ff140)[_0x3fa140(0x25d)](function(_0x588aff){var _0x2d41de=_0x3fa140,_0x4651e8=_0x588aff[0x0],_0x220551=_0x588aff[0x1];typeof _0x220551==_0x2d41de(0x251)&&(_0x3ff140[_0x4651e8]=_0x220551['replace'](/url\(#(.*)\)/,_0x2d41de(0x1e5)['concat'](_0xa049f4[_0x2d41de(0x225)],')')));})),_0x3ff140;}function we(_0x1702e7,_0x17262d){var _0x421783=_0x1d5b70,_0x3033af,_0x45c074=_0x17262d[_0x421783(0x1de)];return!_0x45c074||_0x45c074['length']===0x0?_0x1702e7:_0x1702e7[_0x421783(0x205)]===_0x421783(0x21d)&&(!((_0x3033af=_0x1702e7[_0x421783(0x23b)])===null||_0x3033af===void 0x0)&&_0x3033af['length'])?c(c({},_0x1702e7),{'children':_0x1702e7['children'][_0x421783(0x1f7)](function(_0x4fbd04){var _0x54adae=_0x421783;return typeof _0x4fbd04[_0x54adae(0x280)]['id']=='string'&&_0x45c074&&_0x45c074[_0x54adae(0x277)](_0x4fbd04[_0x54adae(0x280)]['id'])?c(c({},_0x4fbd04),{'attrs':c(c({},_0x4fbd04[_0x54adae(0x280)]),{'id':_0x4fbd04['attrs']['id']+_0x17262d[_0x54adae(0x225)]})}):_0x4fbd04;})}):_0x1702e7;}function Ne(){var _0x243706=_0x1d5b70;return Math[_0x243706(0x25f)]()[_0x243706(0x1da)](0x24)[_0x243706(0x27d)](0x2,0x8);}W[_0x1d5b70(0x229)]=_0x1d5b70(0x279);var Ce={'tag':_0x1d5b70(0x1e8),'attrs':{'xmlns':_0x1d5b70(0x1d0),'fill':_0x1d5b70(0x248),'viewBox':_0x1d5b70(0x217),'width':'1em','height':_0x1d5b70(0x21a)},'children':[{'tag':_0x1d5b70(0x203),'attrs':{'fill':_0x1d5b70(0x1f2),'d':_0x1d5b70(0x276)}},{'tag':_0x1d5b70(0x203),'attrs':{'fill':_0x1d5b70(0x1f2),'d':_0x1d5b70(0x204),'fillRule':_0x1d5b70(0x26d),'clipRule':_0x1d5b70(0x26d)}}]},B=_0x3759f5(function(_0x4e6ccb,_0x2588cf){var _0x557aee=_0x1d5b70;return _0x28844c(W,Object[_0x557aee(0x1cd)]({},_0x4e6ccb,{'id':_0x557aee(0x215),'ref':_0x2588cf,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x5dd809{constructor(){var _0x2926f0=_0x1d5b70;super(...arguments),d(this,_0x2926f0(0x27f),new Set()),d(this,_0x2926f0(0x201),new Set());}[_0x1d5b70(0x244)](_0x527091){var _0x5a8529=_0x1d5b70;return this[_0x5a8529(0x27f)][_0x5a8529(0x233)](_0x527091),_0x35611b(()=>this[_0x5a8529(0x27f)]['delete'](_0x527091));}[_0x1d5b70(0x242)](_0x2e1258){var _0x4fd71c=_0x1d5b70;return this[_0x4fd71c(0x201)][_0x4fd71c(0x233)](_0x2e1258),_0x35611b(()=>this['_reporters'][_0x4fd71c(0x273)](_0x2e1258));}[_0x1d5b70(0x21c)](_0x3d0fb8){var _0x546593=_0x1d5b70;return this[_0x546593(0x27f)][_0x546593(0x1fa)](_0x3d0fb8);}[_0x1d5b70(0x1fd)](_0x2954cb){var _0x4cfb9b=_0x1d5b70;return Array[_0x4cfb9b(0x24f)](this['_reporters'])[_0x4cfb9b(0x1f7)](_0xc48d73=>_0xc48d73(_0x2954cb));}}var De=Object['getOwnPropertyDescriptor'],Z=(_0x4bc4ba,_0x1b9256,_0x2aebc2,_0x3deaac)=>{var _0x168515=_0x1d5b70;for(var _0x3d7c49=_0x3deaac>0x1?void 0x0:_0x3deaac?De(_0x1b9256,_0x2aebc2):_0x1b9256,_0x2c3a4a=_0x4bc4ba[_0x168515(0x253)]-0x1,_0x27effc;_0x2c3a4a>=0x0;_0x2c3a4a--)(_0x27effc=_0x4bc4ba[_0x2c3a4a])&&(_0x3d7c49=_0x27effc(_0x3d7c49)||_0x3d7c49);return _0x3d7c49;},f=(_0x3c4adf,_0x55519e)=>(_0x453d1c,_0x166258)=>_0x55519e(_0x453d1c,_0x166258,_0x3c4adf);let m=class extends _0x231eea{constructor(_0x532c10,_0x6f4196,_0x1ad48d){var _0x5e5533=_0x1d5b70;super(),d(this,'_entities',new Map()),(this[_0x5e5533(0x1f9)]=_0x532c10,this[_0x5e5533(0x1ce)]=_0x6f4196,this[_0x5e5533(0x23f)]=_0x1ad48d,this['_init']());}async[_0x1d5b70(0x22b)](_0x5014e6){var _0x4e34e1=_0x1d5b70;return this[_0x4e34e1(0x22f)][_0x4e34e1(0x1fa)](_0x5014e6)||await this[_0x4e34e1(0x223)](_0x5014e6),this['_entities'][_0x4e34e1(0x1fe)](_0x5014e6);}[_0x1d5b70(0x206)](){var _0x250e6e=_0x1d5b70;this[_0x250e6e(0x1f9)][_0x250e6e(0x1f3)](_0x129dbe[_0x250e6e(0x208)])[_0x250e6e(0x209)](_0x11bc00(this[_0x250e6e(0x1d6)]))[_0x250e6e(0x243)](async _0x1d347f=>{var _0x5267d7=_0x250e6e;const _0xc0840a=_0x1d347f[_0x5267d7(0x271)]();this[_0x5267d7(0x22f)][_0x5267d7(0x1fa)](_0xc0840a)||this[_0x5267d7(0x223)](_0xc0840a);}),this[_0x250e6e(0x1f9)][_0x250e6e(0x267)](_0x129dbe['UNIVER_SHEET'])[_0x250e6e(0x209)](_0x11bc00(this[_0x250e6e(0x1d6)]))[_0x250e6e(0x243)](_0x38229b=>{var _0x1de475=_0x250e6e;const _0x890913=_0x38229b[_0x1de475(0x271)](),_0x30384a=this[_0x1de475(0x22f)][_0x1de475(0x1fe)](_0x890913);_0x30384a==null||_0x30384a[_0x1de475(0x20a)]();});}async[_0x1d5b70(0x223)](_0x34edb5){var _0x4695c0=_0x1d5b70;const _0x2be2de=await this[_0x4695c0(0x23f)][_0x4695c0(0x202)](_0x34edb5),_0x250461=this['_injector'][_0x4695c0(0x282)](C,_0x34edb5,_0x2be2de);return _0x250461['init'](),this[_0x4695c0(0x22f)][_0x4695c0(0x1f6)](_0x34edb5,_0x250461),_0x250461;}};m=Z([f(0x0,_0x25c89d),f(0x1,_0x9f09cd(_0x454c2a)),f(0x2,_0x9f09cd(_0x46d5bf))],m);var h=(_0x3f01fd=>(_0x3f01fd[_0x1d5b70(0x1dd)]=_0x1d5b70(0x1ec),_0x3f01fd[_0x1d5b70(0x1d1)]='idle',_0x3f01fd[_0x1d5b70(0x258)]=_0x1d5b70(0x256),_0x3f01fd[_0x1d5b70(0x1d7)]=_0x1d5b70(0x222),_0x3f01fd[_0x1d5b70(0x24a)]=_0x1d5b70(0x221),_0x3f01fd))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x231eea{constructor(_0x32fac9,_0xba70da,_0x37804b,_0x53ef10,_0x32dd37){var _0x309259=_0x1d5b70;super(),d(this,_0x309259(0x25c),new _0x31dbf0(_0x309259(0x20f))),d(this,_0x309259(0x1f5),this['_status$'][_0x309259(0x22e)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x309259(0x1f0)]=_0x32fac9,this[_0x309259(0x21b)]=_0xba70da,this[_0x309259(0x272)]=_0x37804b,this[_0x309259(0x207)]=_0x53ef10,this['_commandService']=_0x32dd37);}get[_0x1d5b70(0x227)](){var _0xe6ba14=_0x1d5b70;return this[_0xe6ba14(0x25c)][_0xe6ba14(0x213)]();}['dispose'](){var _0x418aa3=_0x1d5b70,_0x565576;(_0x565576=this[_0x418aa3(0x23a)])==null||_0x565576[_0x418aa3(0x20a)](),this[_0x418aa3(0x25c)][_0x418aa3(0x25a)](_0x418aa3(0x20f)),this[_0x418aa3(0x25c)]['complete']();}['init'](){var _0xab0d4a=_0x1d5b70;this[_0xab0d4a(0x206)]||(this[_0xab0d4a(0x206)]=!0x0,this[_0xab0d4a(0x21b)][_0xab0d4a(0x1fb)]['pipe'](_0x11bc00(this[_0xab0d4a(0x1d6)]))['subscribe'](_0x1a95c2=>{var _0x370ba7=_0xab0d4a;switch(_0x1a95c2){case _0x129b56[_0x370ba7(0x1dd)]:this[_0x370ba7(0x262)]();break;case _0x129b56[_0x370ba7(0x247)]:this[_0x370ba7(0x1f1)]();break;}}),this[_0xab0d4a(0x21b)][_0xab0d4a(0x265)][_0xab0d4a(0x209)](_0x11bc00(this[_0xab0d4a(0x1d6)]))[_0xab0d4a(0x243)](_0x8a2670=>{var _0x3ab227=_0xab0d4a;const {eventID:_0x45a312}=_0x8a2670;switch(_0x45a312){case _0xf7519f[_0x3ab227(0x1e1)]:this['_handleNewHost'](_0x8a2670);break;case _0xf7519f[_0x3ab227(0x216)]:this[_0x3ab227(0x21e)](_0x8a2670);break;case _0xf7519f[_0x3ab227(0x200)]:this[_0x3ab227(0x240)]();break;case _0xf7519f[_0x3ab227(0x212)]:this[_0x3ab227(0x20b)](_0x8a2670);break;}}));}[_0x1d5b70(0x1dc)](){var _0x4f6c0d=_0x1d5b70;this[_0x4f6c0d(0x21b)][_0x4f6c0d(0x1d4)]({'eventID':_0xf7519f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f6c0d(0x1f0)],'userID':this[_0x4f6c0d(0x21b)]['getMemberID']()}},this['_unitID']);}[_0x1d5b70(0x236)](){var _0x302c69=_0x1d5b70;this[_0x302c69(0x227)]===_0x302c69(0x221)&&(this[_0x302c69(0x25c)][_0x302c69(0x25a)](_0x302c69(0x20f)),this['_collabSession'][_0x302c69(0x1d4)]({'eventID':_0xf7519f[_0x302c69(0x200)],'data':{'unitID':this[_0x302c69(0x1f0)]}},this[_0x302c69(0x1f0)]));}[_0x1d5b70(0x1eb)](){var _0xc6ceb6=_0x1d5b70;this[_0xc6ceb6(0x227)]===_0xc6ceb6(0x222)&&(this[_0xc6ceb6(0x25c)][_0xc6ceb6(0x25a)](_0xc6ceb6(0x256)),this['_startFollowing']());}['stopFollowing'](){var _0x3cbf2d=_0x1d5b70;this[_0x3cbf2d(0x227)]===_0x3cbf2d(0x256)&&this[_0x3cbf2d(0x268)]();}[_0x1d5b70(0x1fc)](_0x382fe5){var _0x199382=_0x1d5b70;const {presenter:_0x43b16f}=_0x382fe5[_0x199382(0x1df)],_0x3ac59e=this[_0x199382(0x21b)]['getMemberID']();this[_0x199382(0x26e)]=_0x43b16f,_0x43b16f===_0x3ac59e?(this['_stopFollowing'](),this[_0x199382(0x234)]()):this[_0x199382(0x227)]!==_0x199382(0x222)&&(this[_0x199382(0x1f4)](),this[_0x199382(0x275)]());}['_fetchOperations'](){var _0x32b6e6=_0x1d5b70;const _0x11c623={'eventID':_0xf7519f['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x32b6e6(0x1d4)](_0x11c623,this[_0x32b6e6(0x1f0)]);}[_0x1d5b70(0x240)](){var _0x1d3548=_0x1d5b70;this[_0x1d3548(0x26e)]=null,this[_0x1d3548(0x227)]!==_0x1d3548(0x221)&&this[_0x1d3548(0x1ff)]();}['_handleNewChangeSets'](_0x5caf46){var _0x1c292b=_0x1d5b70;if(this['_status']==='following'&&this[_0x1c292b(0x26e)]===_0x5caf46[_0x1c292b(0x1df)]['memberID']){const _0x436eec=_0x5a916f(_0x5caf46[_0x1c292b(0x1df)])[_0x1c292b(0x278)][_0x1c292b(0x237)]()['find'](_0x5cdd49=>_0x5cdd49['id']===_0x2be1b3['id']);if(_0x436eec){const _0x3fcfd6=_0x436eec[_0x1c292b(0x27c)]['unitId'],_0x19959d=_0x436eec[_0x1c292b(0x27c)][_0x1c292b(0x264)]['id'];setTimeout(()=>{var _0x5b6ca7=_0x1c292b;this[_0x5b6ca7(0x24d)]['executeCommand'](_0x2c2b73['id'],{'unitId':_0x3fcfd6,'subUnitId':_0x19959d},{'fromCollab':!0x0});});}}}[_0x1d5b70(0x234)](){var _0x16d05d=_0x1d5b70;this[_0x16d05d(0x25c)][_0x16d05d(0x25a)]('presenting');const _0x33fbd6=new Map(),_0x8538f3=this[_0x16d05d(0x23a)]=new _0x1525a6();_0x8538f3[_0x16d05d(0x233)](_0x35611b(()=>{var _0x5af6c6=_0x16d05d;_0x33fbd6[_0x5af6c6(0x25d)](_0x4ae87d=>_0x4ae87d[_0x5af6c6(0x24e)]()),_0x33fbd6[_0x5af6c6(0x281)]();})),_0x8538f3[_0x16d05d(0x233)](this[_0x16d05d(0x24d)][_0x16d05d(0x26b)](_0x99af8e=>{var _0x24d256=_0x16d05d,_0x255d34;if(_0x99af8e[_0x24d256(0x1e4)]!==_0x4d70ae[_0x24d256(0x259)]||!this[_0x24d256(0x207)][_0x24d256(0x21c)](_0x99af8e['id']))return;const {id:_0x10b437}=_0x99af8e;let _0x3064ba;_0x33fbd6[_0x24d256(0x1fa)](_0x10b437)?_0x3064ba=_0x33fbd6['get'](_0x10b437):(_0x3064ba=new _0x28bfba(),_0x33fbd6['set'](_0x10b437,_0x3064ba),_0x3064ba['pipe'](_0x4bf83f((_0x255d34=this[_0x24d256(0x272)]['getConfig'](xe))!=null?_0x255d34:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x24d256(0x243)](_0x4096d3=>{var _0x18431e=_0x24d256;this[_0x18431e(0x21b)]['send']({'eventID':_0xf7519f[_0x18431e(0x216)],'data':{'unitID':this[_0x18431e(0x1f0)],'operations':{[_0x4096d3['id']]:{'id':_0x4096d3['id'],'params':JSON[_0x18431e(0x239)](_0x4096d3['params'])}}}},this['_unitID']);})),_0x3064ba[_0x24d256(0x25a)](_0x99af8e);})),this[_0x16d05d(0x207)][_0x16d05d(0x1fd)](this[_0x16d05d(0x1f0)])[_0x16d05d(0x25d)](_0x423bb2=>this[_0x16d05d(0x21b)][_0x16d05d(0x1d4)]({'eventID':_0xf7519f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x16d05d(0x1f0)],'operations':{[_0x423bb2['id']]:{'id':_0x423bb2['id'],'params':JSON[_0x16d05d(0x239)](_0x423bb2[_0x16d05d(0x27c)])}}}},this[_0x16d05d(0x1f0)]));}[_0x1d5b70(0x1f4)](){var _0x268975=_0x1d5b70,_0x417399;this[_0x268975(0x25c)]['next'](_0x268975(0x20f)),(_0x417399=this[_0x268975(0x23a)])==null||_0x417399[_0x268975(0x20a)](),this['_commandDisposable']=null;}[_0x1d5b70(0x275)](){var _0x23fbf5=_0x1d5b70,_0x5f00ea;(_0x5f00ea=this['_commandDisposable'])==null||_0x5f00ea[_0x23fbf5(0x20a)](),this['_status$'][_0x23fbf5(0x25a)](_0x23fbf5(0x256));}[_0x1d5b70(0x1ff)](){var _0xd0846d=_0x1d5b70,_0x334502;this[_0xd0846d(0x25c)][_0xd0846d(0x25a)](_0xd0846d(0x20f)),(_0x334502=this[_0xd0846d(0x23a)])==null||_0x334502[_0xd0846d(0x20a)](),this['_commandDisposable']=null;}[_0x1d5b70(0x268)](){var _0x3e3e1d=_0x1d5b70,_0x1ec9d1;this[_0x3e3e1d(0x25c)][_0x3e3e1d(0x25a)]('not-following'),(_0x1ec9d1=this[_0x3e3e1d(0x23a)])==null||_0x1ec9d1['dispose']();}[_0x1d5b70(0x21e)](_0x1f48a4){var _0x544670=_0x1d5b70;if([_0x544670(0x221),_0x544670(0x222),_0x544670(0x1ec)]['includes'](this[_0x544670(0x227)])||!_0x1f48a4['data'][_0x544670(0x231)]||_0x1f48a4[_0x544670(0x1df)][_0x544670(0x231)]===this[_0x544670(0x21b)][_0x544670(0x261)]())return;this[_0x544670(0x227)]===_0x544670(0x20f)&&this[_0x544670(0x275)]();const _0x25ddbf=_0x1f48a4[_0x544670(0x1df)][_0x544670(0x283)];Object[_0x544670(0x24c)](_0x25ddbf)[_0x544670(0x25d)](_0x3361ab=>{var _0x48351d=_0x544670;this['_commandService'][_0x48351d(0x249)](_0x3361ab['id'],_0x3361ab[_0x48351d(0x27c)]?JSON[_0x48351d(0x252)](_0x3361ab[_0x48351d(0x27c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x34bd34=_0x1d5b70,_0x348812;this['_status$'][_0x34bd34(0x25a)](_0x34bd34(0x1ec)),(_0x348812=this[_0x34bd34(0x23a)])==null||_0x348812[_0x34bd34(0x20a)]();}[_0x1d5b70(0x1f1)](){var _0x368859=_0x1d5b70;this['_status$']['next'](_0x368859(0x20f)),this[_0x368859(0x22c)]();}};C=Z([f(0x2,_0x536ce4),f(0x3,_0x9f09cd(L)),f(0x4,_0x595663)],C);function ye(){var _0x5bb3b6=_0x1d5b70;const _0x44d33f=_0x2be91e(m),_0x205c2b=_0x2be91e(_0x25c89d),_0x3f203a=_0xf14f6a(()=>_0x205c2b[_0x5bb3b6(0x1cf)](_0x129dbe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x37839b,_0x47b9ca]=_0x47776c(null),[_0x3b8c02,_0x15ddab]=_0x47776c(h[_0x5bb3b6(0x1d1)]),_0x1e3e6b=_0x514d8f(null);return _0x37f6e9(()=>(_0x3f203a&&_0x44d33f[_0x5bb3b6(0x22b)](_0x3f203a[_0x5bb3b6(0x271)]())[_0x5bb3b6(0x1e0)](_0x35cabd=>{var _0x197226=_0x5bb3b6;_0x47b9ca(_0x35cabd),_0x1e3e6b['current']=_0x35cabd[_0x197226(0x1f5)][_0x197226(0x243)](_0x4527b3=>{_0x15ddab(_0x4527b3);});}),()=>{var _0x106333=_0x5bb3b6,_0x341673;(_0x341673=_0x1e3e6b['current'])==null||_0x341673[_0x106333(0x1d2)](),_0x1e3e6b[_0x106333(0x1e3)]=null;}),[_0x3f203a,_0x44d33f]),_0x37839b?_0x46d2aa(_0xd37ad7,{'align':_0x5bb3b6(0x20e),'disabled':_0x3b8c02===h[_0x5bb3b6(0x1dd)],'className':_0x5bb3b6(0x1d8),'overlay':_0x46d2aa(Re,{'status':_0x3b8c02,'coordinator':_0x37839b}),'children':_0x46d2aa(_0x5bb3b6(0x26c),{'className':_0x3be2af(_0x5bb3b6(0x20c),{'univer-cursor-not-allowed':_0x3b8c02===h[_0x5bb3b6(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b8c02!==h[_0x5bb3b6(0x1dd)]}),'type':_0x5bb3b6(0x26c),'children':_0x46d2aa(B,{'className':'univer-size-4'})})}):null;}function Re(_0x2739bd){var _0x36d96e=_0x1d5b70;const {status:_0x6b78f5,coordinator:_0x2e5380}=_0x2739bd;switch(_0x6b78f5){case h[_0x36d96e(0x1d1)]:return _0x46d2aa(Pe,{'coordinator':_0x2e5380});case h[_0x36d96e(0x258)]:return _0x46d2aa(Ae,{'coordinator':_0x2e5380});case h['NOT_FOLLOWING']:return _0x46d2aa(Te,{'coordinator':_0x2e5380});case h[_0x36d96e(0x1dd)]:return _0x46d2aa(Fe,{});case h[_0x36d96e(0x24a)]:return _0x46d2aa($e,{'coordinator':_0x2e5380});default:return null;}}function Pe(_0x413b8f){var _0x209edc=_0x1d5b70;const {coordinator:_0x19cc61}=_0x413b8f;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x209edc(0x26f),{'className':_0x209edc(0x266),'children':'Present\x20this\x20document'}),_0x46d2aa(_0x1527c3,{'onClick':()=>_0x19cc61[_0x209edc(0x1dc)](),'children':'Start'})]});}function _0x16a7(_0x4f365a,_0x4695d7){var _0x30f0ab=_0x30f0();return _0x16a7=function(_0x16a7fc,_0x409c94){_0x16a7fc=_0x16a7fc-0x1cd;var _0x2433ce=_0x30f0ab[_0x16a7fc];return _0x2433ce;},_0x16a7(_0x4f365a,_0x4695d7);}function Ae(_0x4ec79a){var _0x45a453=_0x1d5b70;const {coordinator:_0x44174e}=_0x4ec79a;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x45a453(0x26f),{'className':_0x45a453(0x266),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x46d2aa(_0x1527c3,{'onClick':()=>_0x44174e[_0x45a453(0x224)](),'children':_0x45a453(0x22d)})]});}function Te(_0x414686){var _0x17dfd3=_0x1d5b70;const {coordinator:_0x5d4764}=_0x414686;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x17dfd3(0x26f),{'className':_0x17dfd3(0x266),'children':_0x17dfd3(0x211)}),_0x46d2aa(_0x1527c3,{'variant':_0x17dfd3(0x260),'onClick':()=>_0x5d4764[_0x17dfd3(0x1eb)](),'children':_0x17dfd3(0x1ee)})]});}function $e(_0x307b9e){var _0x37b677=_0x1d5b70;const {coordinator:_0x2c5124}=_0x307b9e;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x37b677(0x26f),{'className':_0x37b677(0x266),'children':_0x37b677(0x22a)}),_0x46d2aa(_0x1527c3,{'variant':_0x37b677(0x27e),'onClick':()=>_0x2c5124['stopPresenting'](),'children':_0x37b677(0x214)})]});}function Fe(){var _0x33b266=_0x1d5b70;return _0x46d2aa(_0x1ff51,{'children':_0x33b266(0x24b)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x1e1ed7,_0x3a02a7,_0x4476e3,_0x4f9350)=>{var _0x33dd84=_0x1d5b70;for(var _0xc200c3=_0x4f9350>0x1?void 0x0:_0x4f9350?He(_0x3a02a7,_0x4476e3):_0x3a02a7,_0x30cce4=_0x1e1ed7[_0x33dd84(0x253)]-0x1,_0x22d6a8;_0x30cce4>=0x0;_0x30cce4--)(_0x22d6a8=_0x1e1ed7[_0x30cce4])&&(_0xc200c3=_0x22d6a8(_0xc200c3)||_0xc200c3);return _0xc200c3;},T=(_0x11a923,_0x126a42)=>(_0x84b3a0,_0x36f3b6)=>_0x126a42(_0x84b3a0,_0x36f3b6,_0x11a923);let I=class extends _0x5dd809{constructor(_0x5720b5,_0x39efb8){var _0x268f78=_0x1d5b70;super(),this['_injector']=_0x5720b5,this[_0x268f78(0x255)]=_0x39efb8,this['_mountLiveShare']();}[_0x1d5b70(0x1e6)](){var _0x247dce=_0x1d5b70;this[_0x247dce(0x254)](this[_0x247dce(0x255)][_0x247dce(0x27a)](_0x53c462[_0x247dce(0x1ea)],()=>_0xcd3d9a(ye,this['_injector'])));}};I=je([T(0x0,_0x9f09cd(_0x454c2a)),T(0x1,_0x3770e4)],I);const Ue='live-share.config',$={};var Ve=Object[_0x1d5b70(0x1f8)],Me=(_0x33298e,_0x49c302,_0x34acc2,_0x13a985)=>{for(var _0x4d7344=_0x13a985>0x1?void 0x0:_0x13a985?Ve(_0x49c302,_0x34acc2):_0x49c302,_0x341dd7=_0x33298e['length']-0x1,_0x408127;_0x341dd7>=0x0;_0x341dd7--)(_0x408127=_0x33298e[_0x341dd7])&&(_0x4d7344=_0x408127(_0x4d7344)||_0x4d7344);return _0x4d7344;},ke=(_0x351033,_0x292e8e)=>(_0x304ddf,_0x1e10a7)=>_0x292e8e(_0x304ddf,_0x1e10a7,_0x351033);let b=class extends _0x5dd809{constructor(_0x1963e7){var _0x43004f=_0x1d5b70;super(),this[_0x43004f(0x207)]=_0x1963e7,this[_0x43004f(0x206)]();}['_init'](){var _0x3c46ad=_0x1d5b70;[_0x2af7e3['id'],_0x4699e2['id'],_0x2c2b73['id']][_0x3c46ad(0x25d)](_0x2b89b3=>{var _0x979c97=_0x3c46ad;this['disposeWithMe'](this[_0x979c97(0x207)]['registerSharedOperation'](_0x2b89b3));});}};b=Me([ke(0x0,_0x9f09cd(L))],b);var Ge=Object[_0x1d5b70(0x21f)],We=Object[_0x1d5b70(0x1f8)],Ye=(_0x4b0f55,_0x562faf,_0x59cfd6)=>_0x562faf in _0x4b0f55?Ge(_0x4b0f55,_0x562faf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59cfd6}):_0x4b0f55[_0x562faf]=_0x59cfd6,Be=(_0xe643ba,_0x201648,_0x22fb86,_0xe7301b)=>{var _0x4b37eb=_0x1d5b70;for(var _0x3d0033=_0xe7301b>0x1?void 0x0:_0xe7301b?We(_0x201648,_0x22fb86):_0x201648,_0x167c3b=_0xe643ba[_0x4b37eb(0x253)]-0x1,_0x328811;_0x167c3b>=0x0;_0x167c3b--)(_0x328811=_0xe643ba[_0x167c3b])&&(_0x3d0033=_0x328811(_0x3d0033)||_0x3d0033);return _0x3d0033;},F=(_0x27548f,_0x281347)=>(_0x4663a0,_0x24b685)=>_0x281347(_0x4663a0,_0x24b685,_0x27548f),J=(_0x525e14,_0x486990,_0x59da90)=>Ye(_0x525e14,typeof _0x486990!=_0x1d5b70(0x1e7)?_0x486990+'':_0x486990,_0x59da90);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x47c218{constructor(_0x4f572b=$,_0x223b9f,_0x1d65a9){var _0x4d1d61=_0x1d5b70;super(),this[_0x4d1d61(0x274)]=_0x4f572b,this['_injector']=_0x223b9f,this[_0x4d1d61(0x272)]=_0x1d65a9;const {..._0x316349}=_0x71c5cd({},$,this[_0x4d1d61(0x274)]);this[_0x4d1d61(0x272)][_0x4d1d61(0x270)](Ue,_0x316349);}['onStarting'](){var _0x251287=_0x1d5b70;_0x412ba8(this['_injector'],_0x58f7e9([[L],[m],[b],[I]],this[_0x251287(0x274)]['override'])),_0x2497e9(this['_injector'],[[b]]);}[_0x1d5b70(0x250)](){var _0x1f2a75=_0x1d5b70;_0x2497e9(this[_0x1f2a75(0x1ce)],[[I]]);}};J(O,'type',_0x129dbe[_0x1d5b70(0x23c)]),J(O,'pluginName',Ze),O=Be([_0x3c4c14(_0x10eb0c),F(0x1,_0x9f09cd(_0x454c2a)),F(0x2,_0x536ce4)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4e3af4=_0x5c78;(function(_0x4296cc,_0x25b45e){var _0x29ed54=_0x5c78,_0x1e2d5d=_0x4296cc();while(!![]){try{var _0x6da783=parseInt(_0x29ed54(0x202))/0x1+-parseInt(_0x29ed54(0x1d8))/0x2*(-parseInt(_0x29ed54(0x1ab))/0x3)+-parseInt(_0x29ed54(0x180))/0x4*(parseInt(_0x29ed54(0x1b4))/0x5)+parseInt(_0x29ed54(0x210))/0x6*(parseInt(_0x29ed54(0x1c3))/0x7)+parseInt(_0x29ed54(0x1a1))/0x8*(-parseInt(_0x29ed54(0x16b))/0x9)+parseInt(_0x29ed54(0x1b8))/0xa*(-parseInt(_0x29ed54(0x1f4))/0xb)+parseInt(_0x29ed54(0x19a))/0xc;if(_0x6da783===_0x25b45e)break;else _0x1e2d5d['push'](_0x1e2d5d['shift']());}catch(_0x5fd228){_0x1e2d5d['push'](_0x1e2d5d['shift']());}}}(_0x8a68,0xb912e));var q=Object[_0x4e3af4(0x1d9)],z=(_0x3e84eb,_0x1cefe3,_0x2a7622)=>_0x1cefe3 in _0x3e84eb?q(_0x3e84eb,_0x1cefe3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a7622}):_0x3e84eb[_0x1cefe3]=_0x2a7622,d=(_0x316034,_0x2af8c6,_0x24afce)=>z(_0x316034,typeof _0x2af8c6!=_0x4e3af4(0x1b7)?_0x2af8c6+'':_0x2af8c6,_0x24afce);import{Disposable as _0x47a0ad,toDisposable as _0x49f94f,IUniverInstanceService as _0x41d5d1,Inject as _0x5e3f41,Injector as _0x3d9b07,IConfigService as _0x509920,ICommandService as _0x731239,RxDisposable as _0x8f69e8,UniverInstanceType as _0x24c5e3,DisposableCollection as _0x183114,CommandType as _0x406fbf,DependentOn as _0x23e969,Plugin as _0x3597d6,merge as _0x5d6ffb,registerDependencies as _0x4fd2a6,mergeOverrideWithDependencies as _0x5e3628,touchDependencies as _0x864c41}from'@univerjs/core';import{useDependency as _0x46ed8c,useObservable as _0x272543,IUIPartsService as _0x13121a,BuiltInUIPart as _0x882eae,connectInjector as _0x4fb5b9}from'@univerjs/ui';import{jsx as _0x4dccbe,jsxs as _0x3f4580,Fragment as _0x4cdd5d}from'react/jsx-runtime';import{Dropdown as _0x26f77f,clsx as _0x520a75,Button as _0x27e6ca}from'@univerjs/design';import{forwardRef as _0x283df9,useRef as _0x27eef8,createElement as _0x49c5d9,useState as _0x10563c,useEffect as _0x4748a7}from'react';function _0x5c78(_0x56acff,_0x597f6a){var _0x8a6868=_0x8a68();return _0x5c78=function(_0x5c785b,_0x2c5f49){_0x5c785b=_0x5c785b-0x161;var _0x3f25ea=_0x8a6868[_0x5c785b];return _0x3f25ea;},_0x5c78(_0x56acff,_0x597f6a);}import{CollaborationEvent as _0x1ff539,parseProtocolChangeset as _0x25e34f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5e6c43,SessionStatus as _0x1eae31,UniverCollaborationClientPlugin as _0x47c63f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xa92ac9,SetWorksheetActiveOperation as _0x47bab9}from'@univerjs/sheets';import{BehaviorSubject as _0xf8c315,Subject as _0x13b0cb}from'rxjs';import{takeUntil as _0x15ef67,throttleTime as _0x2eb31b}from'rxjs/operators';function _0x8a68(){var _0x1eb1fc=['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','_init','Start','div','_config','_commandDisposable','2835qzJTwk','_commandService','xlink:href','_beIdle','LIVESHARE_REQUEST_HOST','send','className','_handleNewChangeSets','stopFollowing','_liveShareService','getOwnPropertySymbols','_presenter','mask','sheet','NOT_FOLLOWING','_stopFollowing','end','LIVESHARE_OPERATION','_collabSessionService','onCommandExecuted','getTypeOfUnitAdded$','17752opltzS','status$','live-share-icon','_handleOperation','propertyIsEnumerable','offline','_reporters','defIds','_startPresenting','delete','operations','_sharedOperations','prototype','svg','idle','getUnitId','icon','UNIVER_LIVE_SHARE_PLUGIN','trim','tag','text','entries','function','registerInitialStateReporter','idSuffix','path','7100256SMvQyO','indexOf','dispose$','replace','hasOwnProperty','default','http://www.w3.org/2000/svg','28136owkjme','forEach','init','data','extend','UniverIcon','substring','getInitialStates','_startLiveShareCoordinator','presenting','4266thkeDq','univer-mb-3\x20univer-w-full\x20univer-text-sm','from','stopPresenting','unitId','add','_entities','attrs','_fetchOperations','1200QiBPjW','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','PRESENTING','symbol','2670nyHPle','evenodd','url(#$1','length','_startFollowing','_status$','disposeWithMe','map','UNIVER_SHEET','1em','LIVESHARE_TERMINATE','14SiSUtQ','_collabSession','pluginName','You\x27are\x20offline.','getTypeOfUnitDisposed$','has','currentColor','parse','_handleNewHost','OFFLINE','LiveShareIcon','complete','FOLLOWING','tryStartPresenting','not-following','call','mutations','_uiPartsService','_univerInstanceService','_handleOffline','current','1618CHohKM','defineProperty','pipe','univer-size-4','_unitID','HEADER_MENU','apply','_handleOnline','find','dispose','button','You\x27re\x20not\x20following\x20the\x20presenter','shouldShareOperation','get','SAME_OPERATION_SHARE_INTERVAL','live-share.config','Stop\x20following','presenter','subscribe','onRendered','ONLINE','onStarting','LIVESHARE_NEW_HOST','defs','none','includes','displayName','0\x200\x2017\x2017','34705igrXwE','getLiveShareCoordinator','_injector','colorChannel1','_mountLiveShare','_configService','registerSharedOperation','createInstance','string','_stopPresenting','following','getOwnPropertyDescriptor','stringify','random','952130VKNunU','sessionStatus$','toString','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','Present\x20this\x20document','univerjs-icon\x20univerjs-icon-','_status','unsubscribe','startFollowing','next','OPERATION','getConfig','registerComponent','LIVESHARE_FETCH_OPERATIONS','3237618trDgZZ','params','set','setConfig','type','concat'];_0x8a68=function(){return _0x1eb1fc;};return _0x8a68();}import{SetZoomRatioOperation as _0x3f5489,SetScrollOperation as _0xc9b77c}from'@univerjs/sheets-ui';var c=function(){var _0x3ab0b5=_0x4e3af4;return c=Object['assign']||function(_0x2d86ff){var _0x30b7c8=_0x5c78;for(var _0x5acc58,_0x5d75c0=0x1,_0x3860fb=arguments[_0x30b7c8(0x1bb)];_0x5d75c0<_0x3860fb;_0x5d75c0++){_0x5acc58=arguments[_0x5d75c0];for(var _0x4f7c10 in _0x5acc58)Object['prototype'][_0x30b7c8(0x19e)]['call'](_0x5acc58,_0x4f7c10)&&(_0x2d86ff[_0x4f7c10]=_0x5acc58[_0x4f7c10]);}return _0x2d86ff;},c[_0x3ab0b5(0x1de)](this,arguments);},Oe=function(_0x5968e7,_0x49bbb8){var _0x5a41d0=_0x4e3af4,_0x223ccc={};for(var _0x1f965e in _0x5968e7)Object[_0x5a41d0(0x18c)]['hasOwnProperty'][_0x5a41d0(0x1d2)](_0x5968e7,_0x1f965e)&&_0x49bbb8[_0x5a41d0(0x19b)](_0x1f965e)<0x0&&(_0x223ccc[_0x1f965e]=_0x5968e7[_0x1f965e]);if(_0x5968e7!=null&&typeof Object[_0x5a41d0(0x175)]==_0x5a41d0(0x196)){for(var _0x6c9cb2=0x0,_0x1f965e=Object['getOwnPropertySymbols'](_0x5968e7);_0x6c9cb2<_0x1f965e[_0x5a41d0(0x1bb)];_0x6c9cb2++)_0x49bbb8[_0x5a41d0(0x19b)](_0x1f965e[_0x6c9cb2])<0x0&&Object[_0x5a41d0(0x18c)][_0x5a41d0(0x184)][_0x5a41d0(0x1d2)](_0x5968e7,_0x1f965e[_0x6c9cb2])&&(_0x223ccc[_0x1f965e[_0x6c9cb2]]=_0x5968e7[_0x1f965e[_0x6c9cb2]]);}return _0x223ccc;},W=_0x283df9(function(_0x1b2ab5,_0xfb72a8){var _0x3c513e=_0x4e3af4,_0x203275=_0x1b2ab5[_0x3c513e(0x190)],_0x955076=_0x1b2ab5['id'],_0x83e51f=_0x1b2ab5['className'],_0x45a33f=_0x1b2ab5['extend'],_0x4a1816=Oe(_0x1b2ab5,['icon','id',_0x3c513e(0x171),_0x3c513e(0x1a5)]),_0x9cb111=_0x3c513e(0x207)[_0x3c513e(0x164)](_0x955076,'\x20')[_0x3c513e(0x164)](_0x83e51f||'')[_0x3c513e(0x192)](),_0x48e17d=_0x27eef8('_'[_0x3c513e(0x164)](Ne()));return Y(_0x203275,''[_0x3c513e(0x164)](_0x955076),{'defIds':_0x203275['defIds'],'idSuffix':_0x48e17d['current']},c({'ref':_0xfb72a8,'className':_0x9cb111},_0x4a1816),_0x45a33f);});function Y(_0x2eda76,_0x251e1a,_0x36fd12,_0x303a8a,_0x469aa3){var _0x46c832=_0x4e3af4;return _0x49c5d9(_0x2eda76[_0x46c832(0x193)],c(c({'key':_0x251e1a},Ee(_0x2eda76,_0x36fd12,_0x469aa3)),_0x303a8a),(we(_0x2eda76,_0x36fd12)['children']||[])['map'](function(_0x5a5815,_0x273084){var _0x3fa662=_0x46c832;return Y(_0x5a5815,''[_0x3fa662(0x164)](_0x251e1a,'-')[_0x3fa662(0x164)](_0x2eda76[_0x3fa662(0x193)],'-')[_0x3fa662(0x164)](_0x273084),_0x36fd12,void 0x0,_0x469aa3);}));}function Ee(_0x3c59aa,_0x545841,_0x46deb7){var _0x15fbec=_0x4e3af4,_0x16ae79=c({},_0x3c59aa[_0x15fbec(0x1b2)]);_0x46deb7!=null&&_0x46deb7[_0x15fbec(0x1f7)]&&_0x16ae79['fill']===_0x15fbec(0x1f7)&&(_0x16ae79['fill']=_0x46deb7[_0x15fbec(0x1f7)]),_0x3c59aa['tag']===_0x15fbec(0x177)&&_0x16ae79['id']&&(_0x16ae79['id']=_0x16ae79['id']+_0x545841[_0x15fbec(0x198)]),Object['entries'](_0x16ae79)[_0x15fbec(0x1a2)](function(_0x55f693){var _0x4a319f=_0x15fbec,_0x27bf6b=_0x55f693[0x0],_0x25b605=_0x55f693[0x1];_0x27bf6b===_0x4a319f(0x177)&&typeof _0x25b605==_0x4a319f(0x1fc)&&(_0x16ae79[_0x27bf6b]=_0x25b605[_0x4a319f(0x19d)](/url\(#(.*)\)/,_0x4a319f(0x1ba)[_0x4a319f(0x164)](_0x545841['idSuffix'],')')));});var _0xdb78a3=_0x545841[_0x15fbec(0x187)];return!_0xdb78a3||_0xdb78a3[_0x15fbec(0x1bb)]===0x0||(_0x3c59aa[_0x15fbec(0x193)]==='use'&&_0x16ae79['xlink:href']&&(_0x16ae79[_0x15fbec(0x16d)]=_0x16ae79['xlink:href']+_0x545841[_0x15fbec(0x198)]),Object[_0x15fbec(0x195)](_0x16ae79)[_0x15fbec(0x1a2)](function(_0x465d9f){var _0x3a059d=_0x15fbec,_0x564719=_0x465d9f[0x0],_0x1e368f=_0x465d9f[0x1];typeof _0x1e368f==_0x3a059d(0x1fc)&&(_0x16ae79[_0x564719]=_0x1e368f[_0x3a059d(0x19d)](/url\(#(.*)\)/,_0x3a059d(0x1ba)[_0x3a059d(0x164)](_0x545841[_0x3a059d(0x198)],')')));})),_0x16ae79;}function we(_0xf90a0,_0x449406){var _0x4c35a0=_0x4e3af4,_0x3e1784,_0x732483=_0x449406['defIds'];return!_0x732483||_0x732483[_0x4c35a0(0x1bb)]===0x0?_0xf90a0:_0xf90a0[_0x4c35a0(0x193)]===_0x4c35a0(0x1ef)&&(!((_0x3e1784=_0xf90a0['children'])===null||_0x3e1784===void 0x0)&&_0x3e1784[_0x4c35a0(0x1bb)])?c(c({},_0xf90a0),{'children':_0xf90a0['children'][_0x4c35a0(0x1bf)](function(_0x483839){var _0x491969=_0x4c35a0;return typeof _0x483839[_0x491969(0x1b2)]['id']=='string'&&_0x732483&&_0x732483[_0x491969(0x1f1)](_0x483839[_0x491969(0x1b2)]['id'])?c(c({},_0x483839),{'attrs':c(c({},_0x483839[_0x491969(0x1b2)]),{'id':_0x483839[_0x491969(0x1b2)]['id']+_0x449406[_0x491969(0x198)]})}):_0x483839;})}):_0xf90a0;}function Ne(){var _0x53891a=_0x4e3af4;return Math[_0x53891a(0x201)]()[_0x53891a(0x204)](0x24)[_0x53891a(0x1a7)](0x2,0x8);}W['displayName']=_0x4e3af4(0x1a6);var Ce={'tag':_0x4e3af4(0x18d),'attrs':{'xmlns':_0x4e3af4(0x1a0),'fill':_0x4e3af4(0x1f0),'viewBox':_0x4e3af4(0x1f3),'width':_0x4e3af4(0x1c1),'height':_0x4e3af4(0x1c1)},'children':[{'tag':'path','attrs':{'fill':_0x4e3af4(0x1c9),'d':_0x4e3af4(0x165)}},{'tag':_0x4e3af4(0x199),'attrs':{'fill':_0x4e3af4(0x1c9),'d':_0x4e3af4(0x1b5),'fillRule':_0x4e3af4(0x1b9),'clipRule':_0x4e3af4(0x1b9)}}]},B=_0x283df9(function(_0xd534d,_0x5ec763){var _0x5c3cbe=_0x4e3af4;return _0x49c5d9(W,Object['assign']({},_0xd534d,{'id':_0x5c3cbe(0x182),'ref':_0x5ec763,'icon':Ce}));});B[_0x4e3af4(0x1f2)]=_0x4e3af4(0x1cd);class L extends _0x47a0ad{constructor(){var _0x1d905e=_0x4e3af4;super(...arguments),d(this,_0x1d905e(0x18b),new Set()),d(this,'_reporters',new Set());}[_0x4e3af4(0x1fa)](_0x45cba8){var _0x4e1383=_0x4e3af4;return this['_sharedOperations']['add'](_0x45cba8),_0x49f94f(()=>this[_0x4e1383(0x18b)][_0x4e1383(0x189)](_0x45cba8));}[_0x4e3af4(0x197)](_0x30ec9b){var _0x3cbe96=_0x4e3af4;return this[_0x3cbe96(0x186)][_0x3cbe96(0x1b0)](_0x30ec9b),_0x49f94f(()=>this[_0x3cbe96(0x186)][_0x3cbe96(0x189)](_0x30ec9b));}[_0x4e3af4(0x1e4)](_0x2e8fd9){var _0x28d3df=_0x4e3af4;return this[_0x28d3df(0x18b)]['has'](_0x2e8fd9);}[_0x4e3af4(0x1a8)](_0x119abf){var _0x4acac0=_0x4e3af4;return Array[_0x4acac0(0x1ad)](this[_0x4acac0(0x186)])['map'](_0x502e48=>_0x502e48(_0x119abf));}}var De=Object[_0x4e3af4(0x1ff)],Z=(_0x36f33e,_0x3fc8fd,_0x7e51d8,_0x172d79)=>{var _0x3ed274=_0x4e3af4;for(var _0x580cd8=_0x172d79>0x1?void 0x0:_0x172d79?De(_0x3fc8fd,_0x7e51d8):_0x3fc8fd,_0x2429ad=_0x36f33e[_0x3ed274(0x1bb)]-0x1,_0x28a8b5;_0x2429ad>=0x0;_0x2429ad--)(_0x28a8b5=_0x36f33e[_0x2429ad])&&(_0x580cd8=_0x28a8b5(_0x580cd8)||_0x580cd8);return _0x580cd8;},f=(_0x1dfe42,_0x2c9825)=>(_0x3b84fb,_0x5889a6)=>_0x2c9825(_0x3b84fb,_0x5889a6,_0x1dfe42);let m=class extends _0x8f69e8{constructor(_0x588b3a,_0x48121a,_0x2d6418){var _0x3791a4=_0x4e3af4;super(),d(this,_0x3791a4(0x1b1),new Map()),(this[_0x3791a4(0x1d5)]=_0x588b3a,this[_0x3791a4(0x1f6)]=_0x48121a,this[_0x3791a4(0x17d)]=_0x2d6418,this[_0x3791a4(0x166)]());}async[_0x4e3af4(0x1f5)](_0x1e4b25){var _0x4e83b7=_0x4e3af4;return this[_0x4e83b7(0x1b1)][_0x4e83b7(0x1c8)](_0x1e4b25)||await this['_startLiveShareCoordinator'](_0x1e4b25),this[_0x4e83b7(0x1b1)][_0x4e83b7(0x1e5)](_0x1e4b25);}['_init'](){var _0x64c5c1=_0x4e3af4;this['_univerInstanceService'][_0x64c5c1(0x17f)](_0x24c5e3[_0x64c5c1(0x1c0)])[_0x64c5c1(0x1da)](_0x15ef67(this[_0x64c5c1(0x19c)]))[_0x64c5c1(0x1ea)](async _0x4a4b77=>{var _0x366673=_0x64c5c1;const _0x3c90e6=_0x4a4b77[_0x366673(0x18f)]();this[_0x366673(0x1b1)][_0x366673(0x1c8)](_0x3c90e6)||this['_startLiveShareCoordinator'](_0x3c90e6);}),this[_0x64c5c1(0x1d5)][_0x64c5c1(0x1c7)](_0x24c5e3[_0x64c5c1(0x1c0)])[_0x64c5c1(0x1da)](_0x15ef67(this[_0x64c5c1(0x19c)]))[_0x64c5c1(0x1ea)](_0x4047d6=>{var _0x3e476b=_0x64c5c1;const _0x91c134=_0x4047d6[_0x3e476b(0x18f)](),_0x3d1ca1=this[_0x3e476b(0x1b1)][_0x3e476b(0x1e5)](_0x91c134);_0x3d1ca1==null||_0x3d1ca1[_0x3e476b(0x1e1)]();});}async[_0x4e3af4(0x1a9)](_0x59075f){var _0x2e7c78=_0x4e3af4;const _0x389c32=await this[_0x2e7c78(0x17d)]['requireSession'](_0x59075f),_0x594cb0=this['_injector'][_0x2e7c78(0x1fb)](C,_0x59075f,_0x389c32);return _0x594cb0[_0x2e7c78(0x1a3)](),this[_0x2e7c78(0x1b1)][_0x2e7c78(0x161)](_0x59075f,_0x594cb0),_0x594cb0;}};m=Z([f(0x0,_0x41d5d1),f(0x1,_0x5e3f41(_0x3d9b07)),f(0x2,_0x5e3f41(_0x5e6c43))],m);var h=(_0x282943=>(_0x282943[_0x4e3af4(0x1cc)]='offline',_0x282943['IDLE']=_0x4e3af4(0x18e),_0x282943['FOLLOWING']=_0x4e3af4(0x1fe),_0x282943[_0x4e3af4(0x179)]='not-following',_0x282943[_0x4e3af4(0x1b6)]='presenting',_0x282943))(h||{});const xe=_0x4e3af4(0x1e6),Le=0xc8;let C=class extends _0x8f69e8{constructor(_0x28cea6,_0x2d3596,_0x588087,_0x20ce57,_0x597e7){var _0xc5d941=_0x4e3af4;super(),d(this,_0xc5d941(0x1bd),new _0xf8c315(_0xc5d941(0x18e))),d(this,_0xc5d941(0x181),this['_status$']['asObservable']()),d(this,_0xc5d941(0x166),!0x1),d(this,_0xc5d941(0x16a),null),d(this,_0xc5d941(0x176),null),(this['_unitID']=_0x28cea6,this[_0xc5d941(0x1c4)]=_0x2d3596,this[_0xc5d941(0x1f9)]=_0x588087,this[_0xc5d941(0x174)]=_0x20ce57,this['_commandService']=_0x597e7);}get['_status'](){var _0x2bfd60=_0x4e3af4;return this[_0x2bfd60(0x1bd)]['getValue']();}[_0x4e3af4(0x1e1)](){var _0x1b5a56=_0x4e3af4,_0x2b17e2;(_0x2b17e2=this[_0x1b5a56(0x16a)])==null||_0x2b17e2['dispose'](),this[_0x1b5a56(0x1bd)][_0x1b5a56(0x20b)](_0x1b5a56(0x18e)),this[_0x1b5a56(0x1bd)][_0x1b5a56(0x1ce)]();}['init'](){var _0x1a4e35=_0x4e3af4;this['_init']||(this['_init']=!0x0,this[_0x1a4e35(0x1c4)][_0x1a4e35(0x203)][_0x1a4e35(0x1da)](_0x15ef67(this[_0x1a4e35(0x19c)]))[_0x1a4e35(0x1ea)](_0x104543=>{var _0x26d6eb=_0x1a4e35;switch(_0x104543){case _0x1eae31[_0x26d6eb(0x1cc)]:this[_0x26d6eb(0x1d6)]();break;case _0x1eae31[_0x26d6eb(0x1ec)]:this[_0x26d6eb(0x1df)]();break;}}),this[_0x1a4e35(0x1c4)]['event$'][_0x1a4e35(0x1da)](_0x15ef67(this[_0x1a4e35(0x19c)]))[_0x1a4e35(0x1ea)](_0x51450d=>{var _0x3d3686=_0x1a4e35;const {eventID:_0x1bd1c2}=_0x51450d;switch(_0x1bd1c2){case _0x1ff539[_0x3d3686(0x1ee)]:this[_0x3d3686(0x1cb)](_0x51450d);break;case _0x1ff539[_0x3d3686(0x17c)]:this[_0x3d3686(0x183)](_0x51450d);break;case _0x1ff539[_0x3d3686(0x1c2)]:this['_handleTerminate']();break;case _0x1ff539['NEW_CHANGESETS']:this[_0x3d3686(0x172)](_0x51450d);break;}}));}['tryStartPresenting'](){var _0xc29aea=_0x4e3af4;this[_0xc29aea(0x1c4)][_0xc29aea(0x170)]({'eventID':_0x1ff539[_0xc29aea(0x16f)],'data':{'unitID':this[_0xc29aea(0x1dc)],'userID':this[_0xc29aea(0x1c4)]['getMemberID']()}},this['_unitID']);}[_0x4e3af4(0x1ae)](){var _0x15f201=_0x4e3af4;this[_0x15f201(0x208)]===_0x15f201(0x1aa)&&(this[_0x15f201(0x1bd)][_0x15f201(0x20b)](_0x15f201(0x18e)),this[_0x15f201(0x1c4)]['send']({'eventID':_0x1ff539['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x15f201(0x1dc)]}},this[_0x15f201(0x1dc)]));}[_0x4e3af4(0x20a)](){var _0x59a1b7=_0x4e3af4;this['_status']===_0x59a1b7(0x1d1)&&(this[_0x59a1b7(0x1bd)][_0x59a1b7(0x20b)]('following'),this[_0x59a1b7(0x1bc)]());}['stopFollowing'](){var _0x5d3bef=_0x4e3af4;this[_0x5d3bef(0x208)]==='following'&&this[_0x5d3bef(0x17a)]();}[_0x4e3af4(0x1cb)](_0x3acacc){var _0x2f8557=_0x4e3af4;const {presenter:_0x42556b}=_0x3acacc[_0x2f8557(0x1a4)],_0x4a0bb0=this[_0x2f8557(0x1c4)]['getMemberID']();this[_0x2f8557(0x176)]=_0x42556b,_0x42556b===_0x4a0bb0?(this[_0x2f8557(0x17a)](),this['_startPresenting']()):this['_status']!==_0x2f8557(0x1d1)&&(this['_stopPresenting'](),this[_0x2f8557(0x1bc)]());}[_0x4e3af4(0x1b3)](){var _0x57943b=_0x4e3af4;const _0x509a2f={'eventID':_0x1ff539[_0x57943b(0x20f)]};this[_0x57943b(0x1c4)][_0x57943b(0x170)](_0x509a2f,this[_0x57943b(0x1dc)]);}['_handleTerminate'](){var _0x33c1ee=_0x4e3af4;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x33c1ee(0x16e)]();}[_0x4e3af4(0x172)](_0x5e23c5){var _0x1522d6=_0x4e3af4;if(this[_0x1522d6(0x208)]==='following'&&this[_0x1522d6(0x176)]===_0x5e23c5['data']['memberID']){const _0x361441=_0x25e34f(_0x5e23c5[_0x1522d6(0x1a4)])[_0x1522d6(0x1d3)]['reverse']()[_0x1522d6(0x1e0)](_0x3274f0=>_0x3274f0['id']===_0xa92ac9['id']);if(_0x361441){const _0x35059e=_0x361441[_0x1522d6(0x211)][_0x1522d6(0x1af)],_0x31767b=_0x361441[_0x1522d6(0x211)][_0x1522d6(0x178)]['id'];setTimeout(()=>{var _0x55b82f=_0x1522d6;this[_0x55b82f(0x16c)]['executeCommand'](_0x47bab9['id'],{'unitId':_0x35059e,'subUnitId':_0x31767b},{'fromCollab':!0x0});});}}}[_0x4e3af4(0x188)](){var _0x432d01=_0x4e3af4;this[_0x432d01(0x1bd)][_0x432d01(0x20b)](_0x432d01(0x1aa));const _0x17021f=new Map(),_0x439807=this[_0x432d01(0x16a)]=new _0x183114();_0x439807['add'](_0x49f94f(()=>{var _0xbd99a=_0x432d01;_0x17021f[_0xbd99a(0x1a2)](_0x1a79a8=>_0x1a79a8[_0xbd99a(0x1ce)]()),_0x17021f['clear']();})),_0x439807[_0x432d01(0x1b0)](this[_0x432d01(0x16c)][_0x432d01(0x17e)](_0x2ad88e=>{var _0x4f70d7=_0x432d01,_0x5d9409;if(_0x2ad88e[_0x4f70d7(0x163)]!==_0x406fbf[_0x4f70d7(0x20c)]||!this[_0x4f70d7(0x174)]['shouldShareOperation'](_0x2ad88e['id']))return;const {id:_0x39a1bc}=_0x2ad88e;let _0x153371;_0x17021f[_0x4f70d7(0x1c8)](_0x39a1bc)?_0x153371=_0x17021f[_0x4f70d7(0x1e5)](_0x39a1bc):(_0x153371=new _0x13b0cb(),_0x17021f[_0x4f70d7(0x161)](_0x39a1bc,_0x153371),_0x153371[_0x4f70d7(0x1da)](_0x2eb31b((_0x5d9409=this['_configService'][_0x4f70d7(0x20d)](xe))!=null?_0x5d9409:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3c0346=>{var _0x2eed7b=_0x4f70d7;this[_0x2eed7b(0x1c4)][_0x2eed7b(0x170)]({'eventID':_0x1ff539[_0x2eed7b(0x17c)],'data':{'unitID':this['_unitID'],'operations':{[_0x3c0346['id']]:{'id':_0x3c0346['id'],'params':JSON[_0x2eed7b(0x200)](_0x3c0346[_0x2eed7b(0x211)])}}}},this[_0x2eed7b(0x1dc)]);})),_0x153371[_0x4f70d7(0x20b)](_0x2ad88e);})),this['_liveShareService'][_0x432d01(0x1a8)](this[_0x432d01(0x1dc)])[_0x432d01(0x1a2)](_0x1d7fd4=>this['_collabSession']['send']({'eventID':_0x1ff539[_0x432d01(0x17c)],'data':{'unitID':this[_0x432d01(0x1dc)],'operations':{[_0x1d7fd4['id']]:{'id':_0x1d7fd4['id'],'params':JSON[_0x432d01(0x200)](_0x1d7fd4[_0x432d01(0x211)])}}}},this[_0x432d01(0x1dc)]));}[_0x4e3af4(0x1fd)](){var _0x22e187=_0x4e3af4,_0x3d950c;this['_status$']['next'](_0x22e187(0x18e)),(_0x3d950c=this[_0x22e187(0x16a)])==null||_0x3d950c[_0x22e187(0x1e1)](),this[_0x22e187(0x16a)]=null;}[_0x4e3af4(0x1bc)](){var _0x2dcfa9=_0x4e3af4,_0x2401b2;(_0x2401b2=this[_0x2dcfa9(0x16a)])==null||_0x2401b2['dispose'](),this[_0x2dcfa9(0x1bd)]['next'](_0x2dcfa9(0x1fe));}[_0x4e3af4(0x16e)](){var _0x243513=_0x4e3af4,_0x344e1f;this[_0x243513(0x1bd)][_0x243513(0x20b)](_0x243513(0x18e)),(_0x344e1f=this[_0x243513(0x16a)])==null||_0x344e1f['dispose'](),this[_0x243513(0x16a)]=null;}[_0x4e3af4(0x17a)](){var _0x4550a8=_0x4e3af4,_0x5dc4c6;this[_0x4550a8(0x1bd)]['next'](_0x4550a8(0x1d1)),(_0x5dc4c6=this[_0x4550a8(0x16a)])==null||_0x5dc4c6[_0x4550a8(0x1e1)]();}[_0x4e3af4(0x183)](_0x2115bb){var _0x12945d=_0x4e3af4;if(['presenting','not-following',_0x12945d(0x185)]['includes'](this[_0x12945d(0x208)])||!_0x2115bb[_0x12945d(0x1a4)][_0x12945d(0x1e9)]||_0x2115bb[_0x12945d(0x1a4)]['presenter']===this[_0x12945d(0x1c4)]['getMemberID']())return;this[_0x12945d(0x208)]===_0x12945d(0x18e)&&this['_startFollowing']();const _0x414eb9=_0x2115bb[_0x12945d(0x1a4)][_0x12945d(0x18a)];Object['values'](_0x414eb9)[_0x12945d(0x1a2)](_0x4e3eaa=>{var _0x352612=_0x12945d;this[_0x352612(0x16c)]['executeCommand'](_0x4e3eaa['id'],_0x4e3eaa[_0x352612(0x211)]?JSON[_0x352612(0x1ca)](_0x4e3eaa['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x193a17=_0x4e3af4,_0x1a6334;this[_0x193a17(0x1bd)]['next'](_0x193a17(0x185)),(_0x1a6334=this['_commandDisposable'])==null||_0x1a6334['dispose']();}[_0x4e3af4(0x1df)](){var _0x202303=_0x4e3af4;this[_0x202303(0x1bd)][_0x202303(0x20b)](_0x202303(0x18e)),this['_fetchOperations']();}};C=Z([f(0x2,_0x509920),f(0x3,_0x5e3f41(L)),f(0x4,_0x731239)],C);function ye(){var _0x255142=_0x4e3af4;const _0x3c42d1=_0x46ed8c(m),_0x192c95=_0x46ed8c(_0x41d5d1),_0x4e670c=_0x272543(()=>_0x192c95['getCurrentTypeOfUnit$'](_0x24c5e3[_0x255142(0x1c0)]),void 0x0,!0x1,[]),[_0x16500f,_0x5dd4dd]=_0x10563c(null),[_0x39f02b,_0x39ef3f]=_0x10563c(h['IDLE']),_0x5aa429=_0x27eef8(null);return _0x4748a7(()=>(_0x4e670c&&_0x3c42d1[_0x255142(0x1f5)](_0x4e670c[_0x255142(0x18f)]())['then'](_0x38d79c=>{var _0x49ab88=_0x255142;_0x5dd4dd(_0x38d79c),_0x5aa429[_0x49ab88(0x1d7)]=_0x38d79c[_0x49ab88(0x181)][_0x49ab88(0x1ea)](_0x254e5b=>{_0x39ef3f(_0x254e5b);});}),()=>{var _0x49881a=_0x255142,_0x471132;(_0x471132=_0x5aa429[_0x49881a(0x1d7)])==null||_0x471132[_0x49881a(0x209)](),_0x5aa429[_0x49881a(0x1d7)]=null;}),[_0x4e670c,_0x3c42d1]),_0x16500f?_0x4dccbe(_0x26f77f,{'align':_0x255142(0x17b),'disabled':_0x39f02b===h[_0x255142(0x1cc)],'className':_0x255142(0x205),'overlay':_0x4dccbe(Re,{'status':_0x39f02b,'coordinator':_0x16500f}),'children':_0x4dccbe(_0x255142(0x1e2),{'className':_0x520a75('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x39f02b===h[_0x255142(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39f02b!==h[_0x255142(0x1cc)]}),'type':_0x255142(0x1e2),'children':_0x4dccbe(B,{'className':_0x255142(0x1db)})})}):null;}function Re(_0x29fd8c){var _0x5cb9df=_0x4e3af4;const {status:_0x4aba32,coordinator:_0x446297}=_0x29fd8c;switch(_0x4aba32){case h['IDLE']:return _0x4dccbe(Pe,{'coordinator':_0x446297});case h[_0x5cb9df(0x1cf)]:return _0x4dccbe(Ae,{'coordinator':_0x446297});case h[_0x5cb9df(0x179)]:return _0x4dccbe(Te,{'coordinator':_0x446297});case h['OFFLINE']:return _0x4dccbe(Fe,{});case h[_0x5cb9df(0x1b6)]:return _0x4dccbe($e,{'coordinator':_0x446297});default:return null;}}function Pe(_0x49859c){var _0xc5535c=_0x4e3af4;const {coordinator:_0x3c86e2}=_0x49859c;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0xc5535c(0x168),{'className':_0xc5535c(0x1ac),'children':_0xc5535c(0x206)}),_0x4dccbe(_0x27e6ca,{'onClick':()=>_0x3c86e2[_0xc5535c(0x1d0)](),'children':_0xc5535c(0x167)})]});}function Ae(_0xcc2208){var _0x49b4bf=_0x4e3af4;const {coordinator:_0x360952}=_0xcc2208;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x49b4bf(0x168),{'className':_0x49b4bf(0x1ac),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4dccbe(_0x27e6ca,{'onClick':()=>_0x360952[_0x49b4bf(0x173)](),'children':_0x49b4bf(0x1e8)})]});}function Te(_0x4abeaf){var _0x5a4b4d=_0x4e3af4;const {coordinator:_0x1498e7}=_0x4abeaf;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x5a4b4d(0x168),{'className':_0x5a4b4d(0x1ac),'children':_0x5a4b4d(0x1e3)}),_0x4dccbe(_0x27e6ca,{'variant':_0x5a4b4d(0x194),'onClick':()=>_0x1498e7[_0x5a4b4d(0x20a)](),'children':'Start\x20following'})]});}function $e(_0x4467c3){var _0x1df5f4=_0x4e3af4;const {coordinator:_0x3639cd}=_0x4467c3;return _0x3f4580(_0x4cdd5d,{'children':[_0x4dccbe(_0x1df5f4(0x168),{'className':_0x1df5f4(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4dccbe(_0x27e6ca,{'variant':_0x1df5f4(0x19f),'onClick':()=>_0x3639cd[_0x1df5f4(0x1ae)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x1d63f2=_0x4e3af4;return _0x4dccbe(_0x4cdd5d,{'children':_0x1d63f2(0x1c6)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x26a205,_0x537c52,_0x37c655,_0x5e20e0)=>{var _0x5117c8=_0x4e3af4;for(var _0x1a03f1=_0x5e20e0>0x1?void 0x0:_0x5e20e0?He(_0x537c52,_0x37c655):_0x537c52,_0x223af9=_0x26a205[_0x5117c8(0x1bb)]-0x1,_0x356f32;_0x223af9>=0x0;_0x223af9--)(_0x356f32=_0x26a205[_0x223af9])&&(_0x1a03f1=_0x356f32(_0x1a03f1)||_0x1a03f1);return _0x1a03f1;},T=(_0x16374d,_0x1a3760)=>(_0x329b75,_0x5344f1)=>_0x1a3760(_0x329b75,_0x5344f1,_0x16374d);let I=class extends _0x47a0ad{constructor(_0x20ce4e,_0x20fe68){var _0xadeb15=_0x4e3af4;super(),this[_0xadeb15(0x1f6)]=_0x20ce4e,this[_0xadeb15(0x1d4)]=_0x20fe68,this['_mountLiveShare']();}[_0x4e3af4(0x1f8)](){var _0x5d0129=_0x4e3af4;this[_0x5d0129(0x1be)](this[_0x5d0129(0x1d4)][_0x5d0129(0x20e)](_0x882eae[_0x5d0129(0x1dd)],()=>_0x4fb5b9(ye,this['_injector'])));}};I=je([T(0x0,_0x5e3f41(_0x3d9b07)),T(0x1,_0x13121a)],I);const Ue=_0x4e3af4(0x1e7),$={};var Ve=Object[_0x4e3af4(0x1ff)],Me=(_0x260437,_0x3f7b37,_0x848eff,_0x18daa2)=>{var _0xec4250=_0x4e3af4;for(var _0x35f12b=_0x18daa2>0x1?void 0x0:_0x18daa2?Ve(_0x3f7b37,_0x848eff):_0x3f7b37,_0x1a74e4=_0x260437[_0xec4250(0x1bb)]-0x1,_0x486fe3;_0x1a74e4>=0x0;_0x1a74e4--)(_0x486fe3=_0x260437[_0x1a74e4])&&(_0x35f12b=_0x486fe3(_0x35f12b)||_0x35f12b);return _0x35f12b;},ke=(_0x376828,_0x7316c)=>(_0x51f8a7,_0x38c2f6)=>_0x7316c(_0x51f8a7,_0x38c2f6,_0x376828);let b=class extends _0x47a0ad{constructor(_0x35b954){var _0x2c1426=_0x4e3af4;super(),this[_0x2c1426(0x174)]=_0x35b954,this[_0x2c1426(0x166)]();}[_0x4e3af4(0x166)](){var _0x4a7fbf=_0x4e3af4;[_0x3f5489['id'],_0xc9b77c['id'],_0x47bab9['id']][_0x4a7fbf(0x1a2)](_0x277bd1=>{var _0x53e952=_0x4a7fbf;this['disposeWithMe'](this[_0x53e952(0x174)][_0x53e952(0x1fa)](_0x277bd1));});}};b=Me([ke(0x0,_0x5e3f41(L))],b);var Ge=Object[_0x4e3af4(0x1d9)],We=Object[_0x4e3af4(0x1ff)],Ye=(_0x4e2550,_0x48476e,_0x2ad7ba)=>_0x48476e in _0x4e2550?Ge(_0x4e2550,_0x48476e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad7ba}):_0x4e2550[_0x48476e]=_0x2ad7ba,Be=(_0x3b4687,_0x3173f9,_0x128ac1,_0x173115)=>{var _0xec3c96=_0x4e3af4;for(var _0x4cfb6f=_0x173115>0x1?void 0x0:_0x173115?We(_0x3173f9,_0x128ac1):_0x3173f9,_0x229bda=_0x3b4687[_0xec3c96(0x1bb)]-0x1,_0x519226;_0x229bda>=0x0;_0x229bda--)(_0x519226=_0x3b4687[_0x229bda])&&(_0x4cfb6f=_0x519226(_0x4cfb6f)||_0x4cfb6f);return _0x4cfb6f;},F=(_0x1a8af8,_0xd9dbea)=>(_0x197f86,_0x469e54)=>_0xd9dbea(_0x197f86,_0x469e54,_0x1a8af8),J=(_0x43663d,_0x376dba,_0x1fb83f)=>Ye(_0x43663d,typeof _0x376dba!=_0x4e3af4(0x1b7)?_0x376dba+'':_0x376dba,_0x1fb83f);const Ze=_0x4e3af4(0x191);let O=class extends _0x3597d6{constructor(_0xd6250=$,_0x1a4d00,_0x1915b2){var _0x52cf42=_0x4e3af4;super(),this[_0x52cf42(0x169)]=_0xd6250,this[_0x52cf42(0x1f6)]=_0x1a4d00,this[_0x52cf42(0x1f9)]=_0x1915b2;const {..._0x1b7b57}=_0x5d6ffb({},$,this[_0x52cf42(0x169)]);this[_0x52cf42(0x1f9)][_0x52cf42(0x162)](Ue,_0x1b7b57);}[_0x4e3af4(0x1ed)](){var _0x2a4439=_0x4e3af4;_0x4fd2a6(this[_0x2a4439(0x1f6)],_0x5e3628([[L],[m],[b],[I]],this[_0x2a4439(0x169)]['override'])),_0x864c41(this['_injector'],[[b]]);}[_0x4e3af4(0x1eb)](){_0x864c41(this['_injector'],[[I]]);}};J(O,'type',_0x24c5e3['UNIVER_UNKNOWN']),J(O,_0x4e3af4(0x1c5),Ze),O=Be([_0x23e969(_0x47c63f),F(0x1,_0x5e3f41(_0x3d9b07)),F(0x2,_0x509920)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1d5b70=_0x16a7;(function(_0x3c1fb6,_0x2f48e1){var _0x4a6e4c=_0x16a7,_0x39a2a2=_0x3c1fb6();while(!![]){try{var _0x199822=-parseInt(_0x4a6e4c(0x27b))/0x1*(-parseInt(_0x4a6e4c(0x1ef))/0x2)+parseInt(_0x4a6e4c(0x23e))/0x3*(-parseInt(_0x4a6e4c(0x23d))/0x4)+parseInt(_0x4a6e4c(0x1d5))/0x5*(-parseInt(_0x4a6e4c(0x26a))/0x6)+-parseInt(_0x4a6e4c(0x226))/0x7*(-parseInt(_0x4a6e4c(0x1ed))/0x8)+-parseInt(_0x4a6e4c(0x1d9))/0x9*(parseInt(_0x4a6e4c(0x228))/0xa)+-parseInt(_0x4a6e4c(0x218))/0xb+parseInt(_0x4a6e4c(0x25e))/0xc;if(_0x199822===_0x2f48e1)break;else _0x39a2a2['push'](_0x39a2a2['shift']());}catch(_0x162003){_0x39a2a2['push'](_0x39a2a2['shift']());}}}(_0x30f0,0xeaa0a));var q=Object['defineProperty'],z=(_0x5f39ad,_0x3802ee,_0x51c1d0)=>_0x3802ee in _0x5f39ad?q(_0x5f39ad,_0x3802ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c1d0}):_0x5f39ad[_0x3802ee]=_0x51c1d0,d=(_0x1a5b21,_0x3fc234,_0x3ccad4)=>z(_0x1a5b21,typeof _0x3fc234!=_0x1d5b70(0x1e7)?_0x3fc234+'':_0x3fc234,_0x3ccad4);import{Disposable as _0x5dd809,toDisposable as _0x35611b,IUniverInstanceService as _0x25c89d,Inject as _0x9f09cd,Injector as _0x454c2a,IConfigService as _0x536ce4,ICommandService as _0x595663,RxDisposable as _0x231eea,UniverInstanceType as _0x129dbe,DisposableCollection as _0x1525a6,CommandType as _0x4d70ae,DependentOn as _0x3c4c14,Plugin as _0x47c218,merge as _0x71c5cd,registerDependencies as _0x412ba8,mergeOverrideWithDependencies as _0x58f7e9,touchDependencies as _0x2497e9}from'@univerjs/core';import{useDependency as _0x2be91e,useObservable as _0xf14f6a,IUIPartsService as _0x3770e4,BuiltInUIPart as _0x53c462,connectInjector as _0xcd3d9a}from'@univerjs/ui';import{jsx as _0x46d2aa,jsxs as _0x5c1ec5,Fragment as _0x1ff51}from'react/jsx-runtime';import{Dropdown as _0xd37ad7,clsx as _0x3be2af,Button as _0x1527c3}from'@univerjs/design';function _0x30f0(){var _0x185daf=['offline','8rnccnh','Start\x20following','6KFEFwH','_unitID','_handleOnline','currentColor','getTypeOfUnitAdded$','_stopPresenting','status$','set','map','getOwnPropertyDescriptor','_univerInstanceService','has','sessionStatus$','_handleNewHost','getInitialStates','get','_beIdle','LIVESHARE_TERMINATE','_reporters','requireSession','path','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','tag','_init','_liveShareService','UNIVER_SHEET','pipe','dispose','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','colorChannel1','end','idle','icon','You\x27re\x20not\x20following\x20the\x20presenter','NEW_CHANGESETS','getValue','Stop\x20presenting','live-share-icon','LIVESHARE_OPERATION','0\x200\x2017\x2017','7706820kTLbDZ','call','1em','_collabSession','shouldShareOperation','defs','_handleOperation','defineProperty','xlink:href','presenting','not-following','_startLiveShareCoordinator','stopFollowing','idSuffix','8163589mGEDQK','_status','70JLfhVi','displayName','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinator','_fetchOperations','Stop\x20following','asObservable','_entities','prototype','presenter','entries','add','_startPresenting','apply','stopPresenting','reverse','replace','stringify','_commandDisposable','children','UNIVER_UNKNOWN','5152892KcgtkR','3pzINur','_collabSessionService','_handleTerminate','hasOwnProperty','registerInitialStateReporter','subscribe','registerSharedOperation','trim','extend','ONLINE','none','executeCommand','PRESENTING','You\x27are\x20offline.','values','_commandService','complete','from','onRendered','string','parse','length','disposeWithMe','_uiPartsService','following','concat','FOLLOWING','OPERATION','next','className','_status$','forEach','12484152POPuQr','random','text','getMemberID','_handleOffline','getOwnPropertySymbols','sheet','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitDisposed$','_stopFollowing','function','9894DdJzdp','onCommandExecuted','button','evenodd','_presenter','div','setConfig','getUnitId','_configService','delete','_config','_startFollowing','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','includes','mutations','UniverIcon','registerComponent','335239sdXSID','params','substring','default','_sharedOperations','attrs','clear','createInstance','operations','assign','_injector','getCurrentTypeOfUnit$','http://www.w3.org/2000/svg','IDLE','unsubscribe','mask','send','530eocVJZ','dispose$','NOT_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','112653ijQxtt','toString','univerjs-icon\x20univerjs-icon-','tryStartPresenting','OFFLINE','defIds','data','then','LIVESHARE_NEW_HOST','use','current','type','url(#$1','_mountLiveShare','symbol','svg','fill','HEADER_MENU','startFollowing'];_0x30f0=function(){return _0x185daf;};return _0x30f0();}import{forwardRef as _0x3759f5,useRef as _0x514d8f,createElement as _0x28844c,useState as _0x47776c,useEffect as _0x37f6e9}from'react';import{CollaborationEvent as _0xf7519f,parseProtocolChangeset as _0x5a916f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46d5bf,SessionStatus as _0x129b56,UniverCollaborationClientPlugin as _0x10eb0c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2be1b3,SetWorksheetActiveOperation as _0x2c2b73}from'@univerjs/sheets';import{BehaviorSubject as _0x31dbf0,Subject as _0x28bfba}from'rxjs';import{takeUntil as _0x11bc00,throttleTime as _0x4bf83f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2af7e3,SetScrollOperation as _0x4699e2}from'@univerjs/sheets-ui';var c=function(){var _0x35f3c1=_0x1d5b70;return c=Object['assign']||function(_0x5b0097){var _0x507ec1=_0x16a7;for(var _0x52a800,_0x1b42d8=0x1,_0x32cca4=arguments[_0x507ec1(0x253)];_0x1b42d8<_0x32cca4;_0x1b42d8++){_0x52a800=arguments[_0x1b42d8];for(var _0x15a9b2 in _0x52a800)Object['prototype'][_0x507ec1(0x241)]['call'](_0x52a800,_0x15a9b2)&&(_0x5b0097[_0x15a9b2]=_0x52a800[_0x15a9b2]);}return _0x5b0097;},c[_0x35f3c1(0x235)](this,arguments);},Oe=function(_0x2935bd,_0x38bdc4){var _0x41dd64=_0x1d5b70,_0x2295ae={};for(var _0x345b6a in _0x2935bd)Object[_0x41dd64(0x230)]['hasOwnProperty'][_0x41dd64(0x219)](_0x2935bd,_0x345b6a)&&_0x38bdc4['indexOf'](_0x345b6a)<0x0&&(_0x2295ae[_0x345b6a]=_0x2935bd[_0x345b6a]);if(_0x2935bd!=null&&typeof Object[_0x41dd64(0x263)]==_0x41dd64(0x269)){for(var _0x50e815=0x0,_0x345b6a=Object[_0x41dd64(0x263)](_0x2935bd);_0x50e815<_0x345b6a[_0x41dd64(0x253)];_0x50e815++)_0x38bdc4['indexOf'](_0x345b6a[_0x50e815])<0x0&&Object[_0x41dd64(0x230)]['propertyIsEnumerable']['call'](_0x2935bd,_0x345b6a[_0x50e815])&&(_0x2295ae[_0x345b6a[_0x50e815]]=_0x2935bd[_0x345b6a[_0x50e815]]);}return _0x2295ae;},W=_0x3759f5(function(_0x2f1749,_0x3b8745){var _0x2704bb=_0x1d5b70,_0x5a22dd=_0x2f1749['icon'],_0x143f32=_0x2f1749['id'],_0x259019=_0x2f1749[_0x2704bb(0x25b)],_0x141539=_0x2f1749[_0x2704bb(0x246)],_0x252a4a=Oe(_0x2f1749,[_0x2704bb(0x210),'id','className',_0x2704bb(0x246)]),_0x22d3e1=_0x2704bb(0x1db)[_0x2704bb(0x257)](_0x143f32,'\x20')[_0x2704bb(0x257)](_0x259019||'')[_0x2704bb(0x245)](),_0x316c76=_0x514d8f('_'['concat'](Ne()));return Y(_0x5a22dd,''[_0x2704bb(0x257)](_0x143f32),{'defIds':_0x5a22dd[_0x2704bb(0x1de)],'idSuffix':_0x316c76[_0x2704bb(0x1e3)]},c({'ref':_0x3b8745,'className':_0x22d3e1},_0x252a4a),_0x141539);});function Y(_0x12faad,_0x8c931e,_0x26aa7c,_0x1f47ce,_0x21e5c6){var _0x568fb4=_0x1d5b70;return _0x28844c(_0x12faad[_0x568fb4(0x205)],c(c({'key':_0x8c931e},Ee(_0x12faad,_0x26aa7c,_0x21e5c6)),_0x1f47ce),(we(_0x12faad,_0x26aa7c)['children']||[])[_0x568fb4(0x1f7)](function(_0x1e69f1,_0x148cce){var _0x27f6f0=_0x568fb4;return Y(_0x1e69f1,''['concat'](_0x8c931e,'-')['concat'](_0x12faad[_0x27f6f0(0x205)],'-')[_0x27f6f0(0x257)](_0x148cce),_0x26aa7c,void 0x0,_0x21e5c6);}));}function Ee(_0x1bed3d,_0xa049f4,_0x495dec){var _0x3fa140=_0x1d5b70,_0x3ff140=c({},_0x1bed3d[_0x3fa140(0x280)]);_0x495dec!=null&&_0x495dec[_0x3fa140(0x20d)]&&_0x3ff140[_0x3fa140(0x1e9)]===_0x3fa140(0x20d)&&(_0x3ff140[_0x3fa140(0x1e9)]=_0x495dec['colorChannel1']),_0x1bed3d[_0x3fa140(0x205)]===_0x3fa140(0x1d3)&&_0x3ff140['id']&&(_0x3ff140['id']=_0x3ff140['id']+_0xa049f4[_0x3fa140(0x225)]),Object[_0x3fa140(0x232)](_0x3ff140)[_0x3fa140(0x25d)](function(_0x1dae10){var _0xba59e7=_0x3fa140,_0x26cb77=_0x1dae10[0x0],_0x5a96f2=_0x1dae10[0x1];_0x26cb77==='mask'&&typeof _0x5a96f2==_0xba59e7(0x251)&&(_0x3ff140[_0x26cb77]=_0x5a96f2[_0xba59e7(0x238)](/url\(#(.*)\)/,'url(#$1'[_0xba59e7(0x257)](_0xa049f4[_0xba59e7(0x225)],')')));});var _0x1dee08=_0xa049f4['defIds'];return!_0x1dee08||_0x1dee08[_0x3fa140(0x253)]===0x0||(_0x1bed3d[_0x3fa140(0x205)]===_0x3fa140(0x1e2)&&_0x3ff140[_0x3fa140(0x220)]&&(_0x3ff140[_0x3fa140(0x220)]=_0x3ff140['xlink:href']+_0xa049f4[_0x3fa140(0x225)]),Object['entries'](_0x3ff140)[_0x3fa140(0x25d)](function(_0x588aff){var _0x2d41de=_0x3fa140,_0x4651e8=_0x588aff[0x0],_0x220551=_0x588aff[0x1];typeof _0x220551==_0x2d41de(0x251)&&(_0x3ff140[_0x4651e8]=_0x220551['replace'](/url\(#(.*)\)/,_0x2d41de(0x1e5)['concat'](_0xa049f4[_0x2d41de(0x225)],')')));})),_0x3ff140;}function we(_0x1702e7,_0x17262d){var _0x421783=_0x1d5b70,_0x3033af,_0x45c074=_0x17262d[_0x421783(0x1de)];return!_0x45c074||_0x45c074['length']===0x0?_0x1702e7:_0x1702e7[_0x421783(0x205)]===_0x421783(0x21d)&&(!((_0x3033af=_0x1702e7[_0x421783(0x23b)])===null||_0x3033af===void 0x0)&&_0x3033af['length'])?c(c({},_0x1702e7),{'children':_0x1702e7['children'][_0x421783(0x1f7)](function(_0x4fbd04){var _0x54adae=_0x421783;return typeof _0x4fbd04[_0x54adae(0x280)]['id']=='string'&&_0x45c074&&_0x45c074[_0x54adae(0x277)](_0x4fbd04[_0x54adae(0x280)]['id'])?c(c({},_0x4fbd04),{'attrs':c(c({},_0x4fbd04[_0x54adae(0x280)]),{'id':_0x4fbd04['attrs']['id']+_0x17262d[_0x54adae(0x225)]})}):_0x4fbd04;})}):_0x1702e7;}function Ne(){var _0x243706=_0x1d5b70;return Math[_0x243706(0x25f)]()[_0x243706(0x1da)](0x24)[_0x243706(0x27d)](0x2,0x8);}W[_0x1d5b70(0x229)]=_0x1d5b70(0x279);var Ce={'tag':_0x1d5b70(0x1e8),'attrs':{'xmlns':_0x1d5b70(0x1d0),'fill':_0x1d5b70(0x248),'viewBox':_0x1d5b70(0x217),'width':'1em','height':_0x1d5b70(0x21a)},'children':[{'tag':_0x1d5b70(0x203),'attrs':{'fill':_0x1d5b70(0x1f2),'d':_0x1d5b70(0x276)}},{'tag':_0x1d5b70(0x203),'attrs':{'fill':_0x1d5b70(0x1f2),'d':_0x1d5b70(0x204),'fillRule':_0x1d5b70(0x26d),'clipRule':_0x1d5b70(0x26d)}}]},B=_0x3759f5(function(_0x4e6ccb,_0x2588cf){var _0x557aee=_0x1d5b70;return _0x28844c(W,Object[_0x557aee(0x1cd)]({},_0x4e6ccb,{'id':_0x557aee(0x215),'ref':_0x2588cf,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x5dd809{constructor(){var _0x2926f0=_0x1d5b70;super(...arguments),d(this,_0x2926f0(0x27f),new Set()),d(this,_0x2926f0(0x201),new Set());}[_0x1d5b70(0x244)](_0x527091){var _0x5a8529=_0x1d5b70;return this[_0x5a8529(0x27f)][_0x5a8529(0x233)](_0x527091),_0x35611b(()=>this[_0x5a8529(0x27f)]['delete'](_0x527091));}[_0x1d5b70(0x242)](_0x2e1258){var _0x4fd71c=_0x1d5b70;return this[_0x4fd71c(0x201)][_0x4fd71c(0x233)](_0x2e1258),_0x35611b(()=>this['_reporters'][_0x4fd71c(0x273)](_0x2e1258));}[_0x1d5b70(0x21c)](_0x3d0fb8){var _0x546593=_0x1d5b70;return this[_0x546593(0x27f)][_0x546593(0x1fa)](_0x3d0fb8);}[_0x1d5b70(0x1fd)](_0x2954cb){var _0x4cfb9b=_0x1d5b70;return Array[_0x4cfb9b(0x24f)](this['_reporters'])[_0x4cfb9b(0x1f7)](_0xc48d73=>_0xc48d73(_0x2954cb));}}var De=Object['getOwnPropertyDescriptor'],Z=(_0x4bc4ba,_0x1b9256,_0x2aebc2,_0x3deaac)=>{var _0x168515=_0x1d5b70;for(var _0x3d7c49=_0x3deaac>0x1?void 0x0:_0x3deaac?De(_0x1b9256,_0x2aebc2):_0x1b9256,_0x2c3a4a=_0x4bc4ba[_0x168515(0x253)]-0x1,_0x27effc;_0x2c3a4a>=0x0;_0x2c3a4a--)(_0x27effc=_0x4bc4ba[_0x2c3a4a])&&(_0x3d7c49=_0x27effc(_0x3d7c49)||_0x3d7c49);return _0x3d7c49;},f=(_0x3c4adf,_0x55519e)=>(_0x453d1c,_0x166258)=>_0x55519e(_0x453d1c,_0x166258,_0x3c4adf);let m=class extends _0x231eea{constructor(_0x532c10,_0x6f4196,_0x1ad48d){var _0x5e5533=_0x1d5b70;super(),d(this,'_entities',new Map()),(this[_0x5e5533(0x1f9)]=_0x532c10,this[_0x5e5533(0x1ce)]=_0x6f4196,this[_0x5e5533(0x23f)]=_0x1ad48d,this['_init']());}async[_0x1d5b70(0x22b)](_0x5014e6){var _0x4e34e1=_0x1d5b70;return this[_0x4e34e1(0x22f)][_0x4e34e1(0x1fa)](_0x5014e6)||await this[_0x4e34e1(0x223)](_0x5014e6),this['_entities'][_0x4e34e1(0x1fe)](_0x5014e6);}[_0x1d5b70(0x206)](){var _0x250e6e=_0x1d5b70;this[_0x250e6e(0x1f9)][_0x250e6e(0x1f3)](_0x129dbe[_0x250e6e(0x208)])[_0x250e6e(0x209)](_0x11bc00(this[_0x250e6e(0x1d6)]))[_0x250e6e(0x243)](async _0x1d347f=>{var _0x5267d7=_0x250e6e;const _0xc0840a=_0x1d347f[_0x5267d7(0x271)]();this[_0x5267d7(0x22f)][_0x5267d7(0x1fa)](_0xc0840a)||this[_0x5267d7(0x223)](_0xc0840a);}),this[_0x250e6e(0x1f9)][_0x250e6e(0x267)](_0x129dbe['UNIVER_SHEET'])[_0x250e6e(0x209)](_0x11bc00(this[_0x250e6e(0x1d6)]))[_0x250e6e(0x243)](_0x38229b=>{var _0x1de475=_0x250e6e;const _0x890913=_0x38229b[_0x1de475(0x271)](),_0x30384a=this[_0x1de475(0x22f)][_0x1de475(0x1fe)](_0x890913);_0x30384a==null||_0x30384a[_0x1de475(0x20a)]();});}async[_0x1d5b70(0x223)](_0x34edb5){var _0x4695c0=_0x1d5b70;const _0x2be2de=await this[_0x4695c0(0x23f)][_0x4695c0(0x202)](_0x34edb5),_0x250461=this['_injector'][_0x4695c0(0x282)](C,_0x34edb5,_0x2be2de);return _0x250461['init'](),this[_0x4695c0(0x22f)][_0x4695c0(0x1f6)](_0x34edb5,_0x250461),_0x250461;}};m=Z([f(0x0,_0x25c89d),f(0x1,_0x9f09cd(_0x454c2a)),f(0x2,_0x9f09cd(_0x46d5bf))],m);var h=(_0x3f01fd=>(_0x3f01fd[_0x1d5b70(0x1dd)]=_0x1d5b70(0x1ec),_0x3f01fd[_0x1d5b70(0x1d1)]='idle',_0x3f01fd[_0x1d5b70(0x258)]=_0x1d5b70(0x256),_0x3f01fd[_0x1d5b70(0x1d7)]=_0x1d5b70(0x222),_0x3f01fd[_0x1d5b70(0x24a)]=_0x1d5b70(0x221),_0x3f01fd))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x231eea{constructor(_0x32fac9,_0xba70da,_0x37804b,_0x53ef10,_0x32dd37){var _0x309259=_0x1d5b70;super(),d(this,_0x309259(0x25c),new _0x31dbf0(_0x309259(0x20f))),d(this,_0x309259(0x1f5),this['_status$'][_0x309259(0x22e)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x309259(0x1f0)]=_0x32fac9,this[_0x309259(0x21b)]=_0xba70da,this[_0x309259(0x272)]=_0x37804b,this[_0x309259(0x207)]=_0x53ef10,this['_commandService']=_0x32dd37);}get[_0x1d5b70(0x227)](){var _0xe6ba14=_0x1d5b70;return this[_0xe6ba14(0x25c)][_0xe6ba14(0x213)]();}['dispose'](){var _0x418aa3=_0x1d5b70,_0x565576;(_0x565576=this[_0x418aa3(0x23a)])==null||_0x565576[_0x418aa3(0x20a)](),this[_0x418aa3(0x25c)][_0x418aa3(0x25a)](_0x418aa3(0x20f)),this[_0x418aa3(0x25c)]['complete']();}['init'](){var _0xab0d4a=_0x1d5b70;this[_0xab0d4a(0x206)]||(this[_0xab0d4a(0x206)]=!0x0,this[_0xab0d4a(0x21b)][_0xab0d4a(0x1fb)]['pipe'](_0x11bc00(this[_0xab0d4a(0x1d6)]))['subscribe'](_0x1a95c2=>{var _0x370ba7=_0xab0d4a;switch(_0x1a95c2){case _0x129b56[_0x370ba7(0x1dd)]:this[_0x370ba7(0x262)]();break;case _0x129b56[_0x370ba7(0x247)]:this[_0x370ba7(0x1f1)]();break;}}),this[_0xab0d4a(0x21b)][_0xab0d4a(0x265)][_0xab0d4a(0x209)](_0x11bc00(this[_0xab0d4a(0x1d6)]))[_0xab0d4a(0x243)](_0x8a2670=>{var _0x3ab227=_0xab0d4a;const {eventID:_0x45a312}=_0x8a2670;switch(_0x45a312){case _0xf7519f[_0x3ab227(0x1e1)]:this['_handleNewHost'](_0x8a2670);break;case _0xf7519f[_0x3ab227(0x216)]:this[_0x3ab227(0x21e)](_0x8a2670);break;case _0xf7519f[_0x3ab227(0x200)]:this[_0x3ab227(0x240)]();break;case _0xf7519f[_0x3ab227(0x212)]:this[_0x3ab227(0x20b)](_0x8a2670);break;}}));}[_0x1d5b70(0x1dc)](){var _0x4f6c0d=_0x1d5b70;this[_0x4f6c0d(0x21b)][_0x4f6c0d(0x1d4)]({'eventID':_0xf7519f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f6c0d(0x1f0)],'userID':this[_0x4f6c0d(0x21b)]['getMemberID']()}},this['_unitID']);}[_0x1d5b70(0x236)](){var _0x302c69=_0x1d5b70;this[_0x302c69(0x227)]===_0x302c69(0x221)&&(this[_0x302c69(0x25c)][_0x302c69(0x25a)](_0x302c69(0x20f)),this['_collabSession'][_0x302c69(0x1d4)]({'eventID':_0xf7519f[_0x302c69(0x200)],'data':{'unitID':this[_0x302c69(0x1f0)]}},this[_0x302c69(0x1f0)]));}[_0x1d5b70(0x1eb)](){var _0xc6ceb6=_0x1d5b70;this[_0xc6ceb6(0x227)]===_0xc6ceb6(0x222)&&(this[_0xc6ceb6(0x25c)][_0xc6ceb6(0x25a)](_0xc6ceb6(0x256)),this['_startFollowing']());}['stopFollowing'](){var _0x3cbf2d=_0x1d5b70;this[_0x3cbf2d(0x227)]===_0x3cbf2d(0x256)&&this[_0x3cbf2d(0x268)]();}[_0x1d5b70(0x1fc)](_0x382fe5){var _0x199382=_0x1d5b70;const {presenter:_0x43b16f}=_0x382fe5[_0x199382(0x1df)],_0x3ac59e=this[_0x199382(0x21b)]['getMemberID']();this[_0x199382(0x26e)]=_0x43b16f,_0x43b16f===_0x3ac59e?(this['_stopFollowing'](),this[_0x199382(0x234)]()):this[_0x199382(0x227)]!==_0x199382(0x222)&&(this[_0x199382(0x1f4)](),this[_0x199382(0x275)]());}['_fetchOperations'](){var _0x32b6e6=_0x1d5b70;const _0x11c623={'eventID':_0xf7519f['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x32b6e6(0x1d4)](_0x11c623,this[_0x32b6e6(0x1f0)]);}[_0x1d5b70(0x240)](){var _0x1d3548=_0x1d5b70;this[_0x1d3548(0x26e)]=null,this[_0x1d3548(0x227)]!==_0x1d3548(0x221)&&this[_0x1d3548(0x1ff)]();}['_handleNewChangeSets'](_0x5caf46){var _0x1c292b=_0x1d5b70;if(this['_status']==='following'&&this[_0x1c292b(0x26e)]===_0x5caf46[_0x1c292b(0x1df)]['memberID']){const _0x436eec=_0x5a916f(_0x5caf46[_0x1c292b(0x1df)])[_0x1c292b(0x278)][_0x1c292b(0x237)]()['find'](_0x5cdd49=>_0x5cdd49['id']===_0x2be1b3['id']);if(_0x436eec){const _0x3fcfd6=_0x436eec[_0x1c292b(0x27c)]['unitId'],_0x19959d=_0x436eec[_0x1c292b(0x27c)][_0x1c292b(0x264)]['id'];setTimeout(()=>{var _0x5b6ca7=_0x1c292b;this[_0x5b6ca7(0x24d)]['executeCommand'](_0x2c2b73['id'],{'unitId':_0x3fcfd6,'subUnitId':_0x19959d},{'fromCollab':!0x0});});}}}[_0x1d5b70(0x234)](){var _0x16d05d=_0x1d5b70;this[_0x16d05d(0x25c)][_0x16d05d(0x25a)]('presenting');const _0x33fbd6=new Map(),_0x8538f3=this[_0x16d05d(0x23a)]=new _0x1525a6();_0x8538f3[_0x16d05d(0x233)](_0x35611b(()=>{var _0x5af6c6=_0x16d05d;_0x33fbd6[_0x5af6c6(0x25d)](_0x4ae87d=>_0x4ae87d[_0x5af6c6(0x24e)]()),_0x33fbd6[_0x5af6c6(0x281)]();})),_0x8538f3[_0x16d05d(0x233)](this[_0x16d05d(0x24d)][_0x16d05d(0x26b)](_0x99af8e=>{var _0x24d256=_0x16d05d,_0x255d34;if(_0x99af8e[_0x24d256(0x1e4)]!==_0x4d70ae[_0x24d256(0x259)]||!this[_0x24d256(0x207)][_0x24d256(0x21c)](_0x99af8e['id']))return;const {id:_0x10b437}=_0x99af8e;let _0x3064ba;_0x33fbd6[_0x24d256(0x1fa)](_0x10b437)?_0x3064ba=_0x33fbd6['get'](_0x10b437):(_0x3064ba=new _0x28bfba(),_0x33fbd6['set'](_0x10b437,_0x3064ba),_0x3064ba['pipe'](_0x4bf83f((_0x255d34=this[_0x24d256(0x272)]['getConfig'](xe))!=null?_0x255d34:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x24d256(0x243)](_0x4096d3=>{var _0x18431e=_0x24d256;this[_0x18431e(0x21b)]['send']({'eventID':_0xf7519f[_0x18431e(0x216)],'data':{'unitID':this[_0x18431e(0x1f0)],'operations':{[_0x4096d3['id']]:{'id':_0x4096d3['id'],'params':JSON[_0x18431e(0x239)](_0x4096d3['params'])}}}},this['_unitID']);})),_0x3064ba[_0x24d256(0x25a)](_0x99af8e);})),this[_0x16d05d(0x207)][_0x16d05d(0x1fd)](this[_0x16d05d(0x1f0)])[_0x16d05d(0x25d)](_0x423bb2=>this[_0x16d05d(0x21b)][_0x16d05d(0x1d4)]({'eventID':_0xf7519f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x16d05d(0x1f0)],'operations':{[_0x423bb2['id']]:{'id':_0x423bb2['id'],'params':JSON[_0x16d05d(0x239)](_0x423bb2[_0x16d05d(0x27c)])}}}},this[_0x16d05d(0x1f0)]));}[_0x1d5b70(0x1f4)](){var _0x268975=_0x1d5b70,_0x417399;this[_0x268975(0x25c)]['next'](_0x268975(0x20f)),(_0x417399=this[_0x268975(0x23a)])==null||_0x417399[_0x268975(0x20a)](),this['_commandDisposable']=null;}[_0x1d5b70(0x275)](){var _0x23fbf5=_0x1d5b70,_0x5f00ea;(_0x5f00ea=this['_commandDisposable'])==null||_0x5f00ea[_0x23fbf5(0x20a)](),this['_status$'][_0x23fbf5(0x25a)](_0x23fbf5(0x256));}[_0x1d5b70(0x1ff)](){var _0xd0846d=_0x1d5b70,_0x334502;this[_0xd0846d(0x25c)][_0xd0846d(0x25a)](_0xd0846d(0x20f)),(_0x334502=this[_0xd0846d(0x23a)])==null||_0x334502[_0xd0846d(0x20a)](),this['_commandDisposable']=null;}[_0x1d5b70(0x268)](){var _0x3e3e1d=_0x1d5b70,_0x1ec9d1;this[_0x3e3e1d(0x25c)][_0x3e3e1d(0x25a)]('not-following'),(_0x1ec9d1=this[_0x3e3e1d(0x23a)])==null||_0x1ec9d1['dispose']();}[_0x1d5b70(0x21e)](_0x1f48a4){var _0x544670=_0x1d5b70;if([_0x544670(0x221),_0x544670(0x222),_0x544670(0x1ec)]['includes'](this[_0x544670(0x227)])||!_0x1f48a4['data'][_0x544670(0x231)]||_0x1f48a4[_0x544670(0x1df)][_0x544670(0x231)]===this[_0x544670(0x21b)][_0x544670(0x261)]())return;this[_0x544670(0x227)]===_0x544670(0x20f)&&this[_0x544670(0x275)]();const _0x25ddbf=_0x1f48a4[_0x544670(0x1df)][_0x544670(0x283)];Object[_0x544670(0x24c)](_0x25ddbf)[_0x544670(0x25d)](_0x3361ab=>{var _0x48351d=_0x544670;this['_commandService'][_0x48351d(0x249)](_0x3361ab['id'],_0x3361ab[_0x48351d(0x27c)]?JSON[_0x48351d(0x252)](_0x3361ab[_0x48351d(0x27c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x34bd34=_0x1d5b70,_0x348812;this['_status$'][_0x34bd34(0x25a)](_0x34bd34(0x1ec)),(_0x348812=this[_0x34bd34(0x23a)])==null||_0x348812[_0x34bd34(0x20a)]();}[_0x1d5b70(0x1f1)](){var _0x368859=_0x1d5b70;this['_status$']['next'](_0x368859(0x20f)),this[_0x368859(0x22c)]();}};C=Z([f(0x2,_0x536ce4),f(0x3,_0x9f09cd(L)),f(0x4,_0x595663)],C);function ye(){var _0x5bb3b6=_0x1d5b70;const _0x44d33f=_0x2be91e(m),_0x205c2b=_0x2be91e(_0x25c89d),_0x3f203a=_0xf14f6a(()=>_0x205c2b[_0x5bb3b6(0x1cf)](_0x129dbe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x37839b,_0x47b9ca]=_0x47776c(null),[_0x3b8c02,_0x15ddab]=_0x47776c(h[_0x5bb3b6(0x1d1)]),_0x1e3e6b=_0x514d8f(null);return _0x37f6e9(()=>(_0x3f203a&&_0x44d33f[_0x5bb3b6(0x22b)](_0x3f203a[_0x5bb3b6(0x271)]())[_0x5bb3b6(0x1e0)](_0x35cabd=>{var _0x197226=_0x5bb3b6;_0x47b9ca(_0x35cabd),_0x1e3e6b['current']=_0x35cabd[_0x197226(0x1f5)][_0x197226(0x243)](_0x4527b3=>{_0x15ddab(_0x4527b3);});}),()=>{var _0x106333=_0x5bb3b6,_0x341673;(_0x341673=_0x1e3e6b['current'])==null||_0x341673[_0x106333(0x1d2)](),_0x1e3e6b[_0x106333(0x1e3)]=null;}),[_0x3f203a,_0x44d33f]),_0x37839b?_0x46d2aa(_0xd37ad7,{'align':_0x5bb3b6(0x20e),'disabled':_0x3b8c02===h[_0x5bb3b6(0x1dd)],'className':_0x5bb3b6(0x1d8),'overlay':_0x46d2aa(Re,{'status':_0x3b8c02,'coordinator':_0x37839b}),'children':_0x46d2aa(_0x5bb3b6(0x26c),{'className':_0x3be2af(_0x5bb3b6(0x20c),{'univer-cursor-not-allowed':_0x3b8c02===h[_0x5bb3b6(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b8c02!==h[_0x5bb3b6(0x1dd)]}),'type':_0x5bb3b6(0x26c),'children':_0x46d2aa(B,{'className':'univer-size-4'})})}):null;}function Re(_0x2739bd){var _0x36d96e=_0x1d5b70;const {status:_0x6b78f5,coordinator:_0x2e5380}=_0x2739bd;switch(_0x6b78f5){case h[_0x36d96e(0x1d1)]:return _0x46d2aa(Pe,{'coordinator':_0x2e5380});case h[_0x36d96e(0x258)]:return _0x46d2aa(Ae,{'coordinator':_0x2e5380});case h['NOT_FOLLOWING']:return _0x46d2aa(Te,{'coordinator':_0x2e5380});case h[_0x36d96e(0x1dd)]:return _0x46d2aa(Fe,{});case h[_0x36d96e(0x24a)]:return _0x46d2aa($e,{'coordinator':_0x2e5380});default:return null;}}function Pe(_0x413b8f){var _0x209edc=_0x1d5b70;const {coordinator:_0x19cc61}=_0x413b8f;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x209edc(0x26f),{'className':_0x209edc(0x266),'children':'Present\x20this\x20document'}),_0x46d2aa(_0x1527c3,{'onClick':()=>_0x19cc61[_0x209edc(0x1dc)](),'children':'Start'})]});}function _0x16a7(_0x4f365a,_0x4695d7){var _0x30f0ab=_0x30f0();return _0x16a7=function(_0x16a7fc,_0x409c94){_0x16a7fc=_0x16a7fc-0x1cd;var _0x2433ce=_0x30f0ab[_0x16a7fc];return _0x2433ce;},_0x16a7(_0x4f365a,_0x4695d7);}function Ae(_0x4ec79a){var _0x45a453=_0x1d5b70;const {coordinator:_0x44174e}=_0x4ec79a;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x45a453(0x26f),{'className':_0x45a453(0x266),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x46d2aa(_0x1527c3,{'onClick':()=>_0x44174e[_0x45a453(0x224)](),'children':_0x45a453(0x22d)})]});}function Te(_0x414686){var _0x17dfd3=_0x1d5b70;const {coordinator:_0x5d4764}=_0x414686;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x17dfd3(0x26f),{'className':_0x17dfd3(0x266),'children':_0x17dfd3(0x211)}),_0x46d2aa(_0x1527c3,{'variant':_0x17dfd3(0x260),'onClick':()=>_0x5d4764[_0x17dfd3(0x1eb)](),'children':_0x17dfd3(0x1ee)})]});}function $e(_0x307b9e){var _0x37b677=_0x1d5b70;const {coordinator:_0x2c5124}=_0x307b9e;return _0x5c1ec5(_0x1ff51,{'children':[_0x46d2aa(_0x37b677(0x26f),{'className':_0x37b677(0x266),'children':_0x37b677(0x22a)}),_0x46d2aa(_0x1527c3,{'variant':_0x37b677(0x27e),'onClick':()=>_0x2c5124['stopPresenting'](),'children':_0x37b677(0x214)})]});}function Fe(){var _0x33b266=_0x1d5b70;return _0x46d2aa(_0x1ff51,{'children':_0x33b266(0x24b)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x1e1ed7,_0x3a02a7,_0x4476e3,_0x4f9350)=>{var _0x33dd84=_0x1d5b70;for(var _0xc200c3=_0x4f9350>0x1?void 0x0:_0x4f9350?He(_0x3a02a7,_0x4476e3):_0x3a02a7,_0x30cce4=_0x1e1ed7[_0x33dd84(0x253)]-0x1,_0x22d6a8;_0x30cce4>=0x0;_0x30cce4--)(_0x22d6a8=_0x1e1ed7[_0x30cce4])&&(_0xc200c3=_0x22d6a8(_0xc200c3)||_0xc200c3);return _0xc200c3;},T=(_0x11a923,_0x126a42)=>(_0x84b3a0,_0x36f3b6)=>_0x126a42(_0x84b3a0,_0x36f3b6,_0x11a923);let I=class extends _0x5dd809{constructor(_0x5720b5,_0x39efb8){var _0x268f78=_0x1d5b70;super(),this['_injector']=_0x5720b5,this[_0x268f78(0x255)]=_0x39efb8,this['_mountLiveShare']();}[_0x1d5b70(0x1e6)](){var _0x247dce=_0x1d5b70;this[_0x247dce(0x254)](this[_0x247dce(0x255)][_0x247dce(0x27a)](_0x53c462[_0x247dce(0x1ea)],()=>_0xcd3d9a(ye,this['_injector'])));}};I=je([T(0x0,_0x9f09cd(_0x454c2a)),T(0x1,_0x3770e4)],I);const Ue='live-share.config',$={};var Ve=Object[_0x1d5b70(0x1f8)],Me=(_0x33298e,_0x49c302,_0x34acc2,_0x13a985)=>{for(var _0x4d7344=_0x13a985>0x1?void 0x0:_0x13a985?Ve(_0x49c302,_0x34acc2):_0x49c302,_0x341dd7=_0x33298e['length']-0x1,_0x408127;_0x341dd7>=0x0;_0x341dd7--)(_0x408127=_0x33298e[_0x341dd7])&&(_0x4d7344=_0x408127(_0x4d7344)||_0x4d7344);return _0x4d7344;},ke=(_0x351033,_0x292e8e)=>(_0x304ddf,_0x1e10a7)=>_0x292e8e(_0x304ddf,_0x1e10a7,_0x351033);let b=class extends _0x5dd809{constructor(_0x1963e7){var _0x43004f=_0x1d5b70;super(),this[_0x43004f(0x207)]=_0x1963e7,this[_0x43004f(0x206)]();}['_init'](){var _0x3c46ad=_0x1d5b70;[_0x2af7e3['id'],_0x4699e2['id'],_0x2c2b73['id']][_0x3c46ad(0x25d)](_0x2b89b3=>{var _0x979c97=_0x3c46ad;this['disposeWithMe'](this[_0x979c97(0x207)]['registerSharedOperation'](_0x2b89b3));});}};b=Me([ke(0x0,_0x9f09cd(L))],b);var Ge=Object[_0x1d5b70(0x21f)],We=Object[_0x1d5b70(0x1f8)],Ye=(_0x4b0f55,_0x562faf,_0x59cfd6)=>_0x562faf in _0x4b0f55?Ge(_0x4b0f55,_0x562faf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59cfd6}):_0x4b0f55[_0x562faf]=_0x59cfd6,Be=(_0xe643ba,_0x201648,_0x22fb86,_0xe7301b)=>{var _0x4b37eb=_0x1d5b70;for(var _0x3d0033=_0xe7301b>0x1?void 0x0:_0xe7301b?We(_0x201648,_0x22fb86):_0x201648,_0x167c3b=_0xe643ba[_0x4b37eb(0x253)]-0x1,_0x328811;_0x167c3b>=0x0;_0x167c3b--)(_0x328811=_0xe643ba[_0x167c3b])&&(_0x3d0033=_0x328811(_0x3d0033)||_0x3d0033);return _0x3d0033;},F=(_0x27548f,_0x281347)=>(_0x4663a0,_0x24b685)=>_0x281347(_0x4663a0,_0x24b685,_0x27548f),J=(_0x525e14,_0x486990,_0x59da90)=>Ye(_0x525e14,typeof _0x486990!=_0x1d5b70(0x1e7)?_0x486990+'':_0x486990,_0x59da90);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x47c218{constructor(_0x4f572b=$,_0x223b9f,_0x1d65a9){var _0x4d1d61=_0x1d5b70;super(),this[_0x4d1d61(0x274)]=_0x4f572b,this['_injector']=_0x223b9f,this[_0x4d1d61(0x272)]=_0x1d65a9;const {..._0x316349}=_0x71c5cd({},$,this[_0x4d1d61(0x274)]);this[_0x4d1d61(0x272)][_0x4d1d61(0x270)](Ue,_0x316349);}['onStarting'](){var _0x251287=_0x1d5b70;_0x412ba8(this['_injector'],_0x58f7e9([[L],[m],[b],[I]],this[_0x251287(0x274)]['override'])),_0x2497e9(this['_injector'],[[b]]);}[_0x1d5b70(0x250)](){var _0x1f2a75=_0x1d5b70;_0x2497e9(this[_0x1f2a75(0x1ce)],[[I]]);}};J(O,'type',_0x129dbe[_0x1d5b70(0x23c)]),J(O,'pluginName',Ze),O=Be([_0x3c4c14(_0x10eb0c),F(0x1,_0x9f09cd(_0x454c2a)),F(0x2,_0x536ce4)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x51e3(_0x212fee,_0x5cec05){var _0x1dcd12=_0x1dcd();return _0x51e3=function(_0x51e36e,_0x16149f){_0x51e36e=_0x51e36e-0x190;var _0x7f0ef=_0x1dcd12[_0x51e36e];return _0x7f0ef;},_0x51e3(_0x212fee,_0x5cec05);}(function(_0x52f06e,_0x461b7c){var _0x4ff32b=_0x51e3,_0x45c1af=_0x52f06e();while(!![]){try{var _0x6c93ad=parseInt(_0x4ff32b(0x283))/0x1+-parseInt(_0x4ff32b(0x235))/0x2+parseInt(_0x4ff32b(0x209))/0x3*(parseInt(_0x4ff32b(0x1bb))/0x4)+-parseInt(_0x4ff32b(0x1d3))/0x5+parseInt(_0x4ff32b(0x236))/0x6*(parseInt(_0x4ff32b(0x213))/0x7)+parseInt(_0x4ff32b(0x26f))/0x8*(parseInt(_0x4ff32b(0x222))/0x9)+-parseInt(_0x4ff32b(0x264))/0xa*(parseInt(_0x4ff32b(0x23e))/0xb);if(_0x6c93ad===_0x461b7c)break;else _0x45c1af['push'](_0x45c1af['shift']());}catch(_0x3dc0a0){_0x45c1af['push'](_0x45c1af['shift']());}}}(_0x1dcd,0x90211),function(_0x5f20be,_0x3024a9){var _0xb2ab9b=_0x51e3;typeof exports=='object'&&typeof module<'u'?_0x3024a9(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0xb2ab9b(0x224)&&define['amd']?define([_0xb2ab9b(0x195),'@univerjs/core',_0xb2ab9b(0x234),_0xb2ab9b(0x280),_0xb2ab9b(0x1c5),_0xb2ab9b(0x27b),'@univerjs-pro/collaboration',_0xb2ab9b(0x21e),_0xb2ab9b(0x1fb),_0xb2ab9b(0x27a),'rxjs/operators',_0xb2ab9b(0x22e)],_0x3024a9):(_0x5f20be=typeof globalThis<'u'?globalThis:_0x5f20be||self,_0x3024a9(_0x5f20be[_0xb2ab9b(0x247)]={},_0x5f20be[_0xb2ab9b(0x266)],_0x5f20be[_0xb2ab9b(0x228)],_0x5f20be[_0xb2ab9b(0x1ad)],_0x5f20be[_0xb2ab9b(0x239)],_0x5f20be[_0xb2ab9b(0x1ad)],_0x5f20be[_0xb2ab9b(0x24f)],_0x5f20be[_0xb2ab9b(0x1e5)],_0x5f20be[_0xb2ab9b(0x19f)],_0x5f20be[_0xb2ab9b(0x27a)],_0x5f20be[_0xb2ab9b(0x27a)][_0xb2ab9b(0x1db)],_0x5f20be[_0xb2ab9b(0x284)]));}(this,function(_0xefd987,_0x247859,_0x394c3e,_0xf2518d,_0x4fea6f,_0x164584,_0x3afe45,_0x36dcec,_0x5ad2a1,_0x1ea32c,_0x3c4560,_0x18f510){'use strict';var _0x27b7d6=_0x51e3;var _0x1da02f=Object['defineProperty'],_0x4150be=(_0x365fc9,_0xc0416d,_0x2027b6)=>_0xc0416d in _0x365fc9?_0x1da02f(_0x365fc9,_0xc0416d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2027b6}):_0x365fc9[_0xc0416d]=_0x2027b6,_0x447fc5=(_0x4b2890,_0x4bbb19,_0x20a212)=>_0x4150be(_0x4b2890,typeof _0x4bbb19!=_0x27b7d6(0x191)?_0x4bbb19+'':_0x4bbb19,_0x20a212),_0x2d246d=function(){var _0x23de80=_0x27b7d6;return _0x2d246d=Object[_0x23de80(0x25c)]||function(_0x29b5d0){var _0xf56db8=_0x23de80;for(var _0x5be9ad,_0x379924=0x1,_0x429d0a=arguments[_0xf56db8(0x256)];_0x379924<_0x429d0a;_0x379924++){_0x5be9ad=arguments[_0x379924];for(var _0x286282 in _0x5be9ad)Object[_0xf56db8(0x23d)][_0xf56db8(0x1a9)][_0xf56db8(0x20a)](_0x5be9ad,_0x286282)&&(_0x29b5d0[_0x286282]=_0x5be9ad[_0x286282]);}return _0x29b5d0;},_0x2d246d[_0x23de80(0x245)](this,arguments);},_0x2d2521=function(_0xf460cd,_0x289379){var _0x354b14=_0x27b7d6,_0x3f33b7={};for(var _0x2e9032 in _0xf460cd)Object[_0x354b14(0x23d)][_0x354b14(0x1a9)]['call'](_0xf460cd,_0x2e9032)&&_0x289379[_0x354b14(0x1bf)](_0x2e9032)<0x0&&(_0x3f33b7[_0x2e9032]=_0xf460cd[_0x2e9032]);if(_0xf460cd!=null&&typeof Object['getOwnPropertySymbols']==_0x354b14(0x224)){for(var _0x35c51d=0x0,_0x2e9032=Object[_0x354b14(0x19c)](_0xf460cd);_0x35c51d<_0x2e9032['length'];_0x35c51d++)_0x289379[_0x354b14(0x1bf)](_0x2e9032[_0x35c51d])<0x0&&Object['prototype'][_0x354b14(0x1a8)]['call'](_0xf460cd,_0x2e9032[_0x35c51d])&&(_0x3f33b7[_0x2e9032[_0x35c51d]]=_0xf460cd[_0x2e9032[_0x35c51d]]);}return _0x3f33b7;},_0x14f23e=_0x164584[_0x27b7d6(0x1f4)](function(_0x5a2eea,_0x59e858){var _0x43c3b8=_0x27b7d6,_0x2a46f1=_0x5a2eea[_0x43c3b8(0x19d)],_0x21166e=_0x5a2eea['id'],_0x3d601a=_0x5a2eea[_0x43c3b8(0x1b1)],_0xa53116=_0x5a2eea[_0x43c3b8(0x272)],_0x30a495=_0x2d2521(_0x5a2eea,['icon','id','className',_0x43c3b8(0x272)]),_0x49d18e=_0x43c3b8(0x1e7)[_0x43c3b8(0x1d8)](_0x21166e,'\x20')[_0x43c3b8(0x1d8)](_0x3d601a||'')['trim'](),_0x2faf57=_0x164584[_0x43c3b8(0x1ec)]('_'[_0x43c3b8(0x1d8)](_0x4da2cd()));return _0x33d7b9(_0x2a46f1,''['concat'](_0x21166e),{'defIds':_0x2a46f1['defIds'],'idSuffix':_0x2faf57[_0x43c3b8(0x1c6)]},_0x2d246d({'ref':_0x59e858,'className':_0x49d18e},_0x30a495),_0xa53116);});function _0x33d7b9(_0xeded36,_0x952c2e,_0x219b14,_0x59cbb1,_0x443bca){var _0x2783e1=_0x27b7d6;return _0x164584[_0x2783e1(0x1a7)](_0xeded36['tag'],_0x2d246d(_0x2d246d({'key':_0x952c2e},_0x4f560b(_0xeded36,_0x219b14,_0x443bca)),_0x59cbb1),(_0x396b79(_0xeded36,_0x219b14)[_0x2783e1(0x1b9)]||[])[_0x2783e1(0x1f7)](function(_0xb59bdc,_0x3cbae8){var _0x49231d=_0x2783e1;return _0x33d7b9(_0xb59bdc,''[_0x49231d(0x1d8)](_0x952c2e,'-')['concat'](_0xeded36[_0x49231d(0x265)],'-')[_0x49231d(0x1d8)](_0x3cbae8),_0x219b14,void 0x0,_0x443bca);}));}function _0x4f560b(_0x5639ce,_0x182397,_0x483013){var _0x2467ca=_0x27b7d6,_0x2246ce=_0x2d246d({},_0x5639ce[_0x2467ca(0x27c)]);_0x483013!=null&&_0x483013['colorChannel1']&&_0x2246ce[_0x2467ca(0x20b)]===_0x2467ca(0x1d4)&&(_0x2246ce[_0x2467ca(0x20b)]=_0x483013[_0x2467ca(0x1d4)]),_0x5639ce[_0x2467ca(0x265)]===_0x2467ca(0x1f0)&&_0x2246ce['id']&&(_0x2246ce['id']=_0x2246ce['id']+_0x182397[_0x2467ca(0x1fa)]),Object['entries'](_0x2246ce)[_0x2467ca(0x22a)](function(_0x2903c9){var _0x4d09ce=_0x2467ca,_0x12a763=_0x2903c9[0x0],_0x318f3e=_0x2903c9[0x1];_0x12a763===_0x4d09ce(0x1f0)&&typeof _0x318f3e=='string'&&(_0x2246ce[_0x12a763]=_0x318f3e['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4d09ce(0x1d8)](_0x182397[_0x4d09ce(0x1fa)],')')));});var _0x3eabb3=_0x182397[_0x2467ca(0x233)];return!_0x3eabb3||_0x3eabb3[_0x2467ca(0x256)]===0x0||(_0x5639ce[_0x2467ca(0x265)]==='use'&&_0x2246ce[_0x2467ca(0x1d0)]&&(_0x2246ce[_0x2467ca(0x1d0)]=_0x2246ce[_0x2467ca(0x1d0)]+_0x182397[_0x2467ca(0x1fa)]),Object[_0x2467ca(0x1af)](_0x2246ce)[_0x2467ca(0x22a)](function(_0x33d932){var _0x58ae9a=_0x2467ca,_0x7537b7=_0x33d932[0x0],_0x4b6496=_0x33d932[0x1];typeof _0x4b6496==_0x58ae9a(0x254)&&(_0x2246ce[_0x7537b7]=_0x4b6496[_0x58ae9a(0x237)](/url\(#(.*)\)/,_0x58ae9a(0x1d5)[_0x58ae9a(0x1d8)](_0x182397[_0x58ae9a(0x1fa)],')')));})),_0x2246ce;}function _0x396b79(_0xa4d303,_0xfac687){var _0x39a693=_0x27b7d6,_0x2ade26,_0x2078a8=_0xfac687['defIds'];return!_0x2078a8||_0x2078a8['length']===0x0?_0xa4d303:_0xa4d303['tag']==='defs'&&(!((_0x2ade26=_0xa4d303[_0x39a693(0x1b9)])===null||_0x2ade26===void 0x0)&&_0x2ade26[_0x39a693(0x256)])?_0x2d246d(_0x2d246d({},_0xa4d303),{'children':_0xa4d303[_0x39a693(0x1b9)][_0x39a693(0x1f7)](function(_0x70b79c){var _0x4f751f=_0x39a693;return typeof _0x70b79c[_0x4f751f(0x27c)]['id']==_0x4f751f(0x254)&&_0x2078a8&&_0x2078a8[_0x4f751f(0x223)](_0x70b79c[_0x4f751f(0x27c)]['id'])?_0x2d246d(_0x2d246d({},_0x70b79c),{'attrs':_0x2d246d(_0x2d246d({},_0x70b79c[_0x4f751f(0x27c)]),{'id':_0x70b79c[_0x4f751f(0x27c)]['id']+_0xfac687['idSuffix']})}):_0x70b79c;})}):_0xa4d303;}function _0x4da2cd(){var _0x5a367c=_0x27b7d6;return Math[_0x5a367c(0x1e0)]()[_0x5a367c(0x263)](0x24)[_0x5a367c(0x217)](0x2,0x8);}_0x14f23e[_0x27b7d6(0x1e6)]=_0x27b7d6(0x269);var _0x1c9d5a={'tag':_0x27b7d6(0x1cb),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x27b7d6(0x1fd),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x27b7d6(0x25f)},'children':[{'tag':'path','attrs':{'fill':_0x27b7d6(0x278),'d':_0x27b7d6(0x273)}},{'tag':_0x27b7d6(0x24e),'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':_0x27b7d6(0x194),'clipRule':'evenodd'}}]},_0x48e749=_0x164584[_0x27b7d6(0x1f4)](function(_0x2489ce,_0x1fa8fa){var _0x4a80e7=_0x27b7d6;return _0x164584['createElement'](_0x14f23e,Object['assign']({},_0x2489ce,{'id':_0x4a80e7(0x196),'ref':_0x1fa8fa,'icon':_0x1c9d5a}));});_0x48e749[_0x27b7d6(0x1e6)]=_0x27b7d6(0x21c);class _0x256e53 extends _0x247859['Disposable']{constructor(){var _0x431282=_0x27b7d6;super(...arguments),_0x447fc5(this,_0x431282(0x1bd),new Set()),_0x447fc5(this,_0x431282(0x1e9),new Set());}[_0x27b7d6(0x1aa)](_0x20bd10){var _0x47538e=_0x27b7d6;return this[_0x47538e(0x1bd)][_0x47538e(0x1df)](_0x20bd10),_0x247859[_0x47538e(0x197)](()=>this[_0x47538e(0x1bd)][_0x47538e(0x24a)](_0x20bd10));}[_0x27b7d6(0x276)](_0x5baa37){var _0x1db5a9=_0x27b7d6;return this[_0x1db5a9(0x1e9)][_0x1db5a9(0x1df)](_0x5baa37),_0x247859[_0x1db5a9(0x197)](()=>this[_0x1db5a9(0x1e9)][_0x1db5a9(0x24a)](_0x5baa37));}[_0x27b7d6(0x20d)](_0x628f90){return this['_sharedOperations']['has'](_0x628f90);}[_0x27b7d6(0x279)](_0x4d675c){var _0x28c3f1=_0x27b7d6;return Array[_0x28c3f1(0x1cf)](this[_0x28c3f1(0x1e9)])[_0x28c3f1(0x1f7)](_0x57610c=>_0x57610c(_0x4d675c));}}var _0x12797f=Object[_0x27b7d6(0x1ea)],_0x2a0ac2=(_0x377914,_0x24893d,_0x81032b,_0x1bdd7e)=>{for(var _0x4e632f=_0x1bdd7e>0x1?void 0x0:_0x1bdd7e?_0x12797f(_0x24893d,_0x81032b):_0x24893d,_0x4558b4=_0x377914['length']-0x1,_0x221689;_0x4558b4>=0x0;_0x4558b4--)(_0x221689=_0x377914[_0x4558b4])&&(_0x4e632f=_0x221689(_0x4e632f)||_0x4e632f);return _0x4e632f;},_0x5433ad=(_0x33801c,_0x5beecc)=>(_0x57869b,_0x286481)=>_0x5beecc(_0x57869b,_0x286481,_0x33801c);_0xefd987[_0x27b7d6(0x21b)]=class extends _0x247859[_0x27b7d6(0x216)]{constructor(_0x3b7c58,_0x237c9a,_0x440258){var _0x2a3349=_0x27b7d6;super(),_0x447fc5(this,_0x2a3349(0x211),new Map()),(this['_univerInstanceService']=_0x3b7c58,this[_0x2a3349(0x1b3)]=_0x237c9a,this[_0x2a3349(0x24b)]=_0x440258,this['_init']());}async['getLiveShareCoordinator'](_0x5b22f8){var _0x56d5d2=_0x27b7d6;return this['_entities'][_0x56d5d2(0x23b)](_0x5b22f8)||await this[_0x56d5d2(0x1c8)](_0x5b22f8),this[_0x56d5d2(0x211)][_0x56d5d2(0x22f)](_0x5b22f8);}[_0x27b7d6(0x1ae)](){var _0x23543b=_0x27b7d6;this[_0x23543b(0x21f)][_0x23543b(0x210)](_0x247859['UniverInstanceType']['UNIVER_SHEET'])[_0x23543b(0x232)](_0x3c4560[_0x23543b(0x287)](this[_0x23543b(0x1e4)]))[_0x23543b(0x1b0)](async _0x3ea472=>{var _0x492fac=_0x23543b;const _0x5ac935=_0x3ea472[_0x492fac(0x230)]();this[_0x492fac(0x211)]['has'](_0x5ac935)||this[_0x492fac(0x1c8)](_0x5ac935);}),this[_0x23543b(0x21f)][_0x23543b(0x1a2)](_0x247859[_0x23543b(0x281)][_0x23543b(0x1f1)])[_0x23543b(0x232)](_0x3c4560[_0x23543b(0x287)](this[_0x23543b(0x1e4)]))[_0x23543b(0x1b0)](_0x19108b=>{var _0xb3e5d6=_0x23543b;const _0x842b92=_0x19108b[_0xb3e5d6(0x230)](),_0x225e8f=this[_0xb3e5d6(0x211)]['get'](_0x842b92);_0x225e8f==null||_0x225e8f['dispose']();});}async[_0x27b7d6(0x1c8)](_0x31cb60){var _0x5c4147=_0x27b7d6;const _0x312e3d=await this[_0x5c4147(0x24b)][_0x5c4147(0x238)](_0x31cb60),_0x2d724c=this[_0x5c4147(0x1b3)][_0x5c4147(0x1b5)](_0xefd987[_0x5c4147(0x199)],_0x31cb60,_0x312e3d);return _0x2d724c[_0x5c4147(0x193)](),this[_0x5c4147(0x211)][_0x5c4147(0x192)](_0x31cb60,_0x2d724c),_0x2d724c;}},_0xefd987[_0x27b7d6(0x21b)]=_0x2a0ac2([_0x5433ad(0x0,_0x247859[_0x27b7d6(0x1ab)]),_0x5433ad(0x1,_0x247859[_0x27b7d6(0x1d2)](_0x247859[_0x27b7d6(0x1d9)])),_0x5433ad(0x2,_0x247859[_0x27b7d6(0x1d2)](_0x36dcec[_0x27b7d6(0x248)]))],_0xefd987['LiveShareController']);var _0x5c9637=(_0x4c1d72=>(_0x4c1d72[_0x27b7d6(0x270)]=_0x27b7d6(0x218),_0x4c1d72['IDLE']=_0x27b7d6(0x241),_0x4c1d72[_0x27b7d6(0x1c2)]=_0x27b7d6(0x288),_0x4c1d72['NOT_FOLLOWING']=_0x27b7d6(0x19b),_0x4c1d72[_0x27b7d6(0x231)]=_0x27b7d6(0x1dd),_0x4c1d72))(_0x5c9637||{});const _0x2fcd54=_0x27b7d6(0x219),_0x41226d=0xc8;_0xefd987['LiveShareCoordinator']=class extends _0x247859[_0x27b7d6(0x216)]{constructor(_0x38cc4a,_0x48999f,_0x5be525,_0xffce6d,_0x4a497e){var _0x24f253=_0x27b7d6;super(),_0x447fc5(this,_0x24f253(0x212),new _0x1ea32c[(_0x24f253(0x27f))](_0x24f253(0x241))),_0x447fc5(this,_0x24f253(0x1a1),this['_status$'][_0x24f253(0x1e1)]()),_0x447fc5(this,'_init',!0x1),_0x447fc5(this,_0x24f253(0x22d),null),_0x447fc5(this,_0x24f253(0x26c),null),(this['_unitID']=_0x38cc4a,this[_0x24f253(0x27e)]=_0x48999f,this[_0x24f253(0x1f3)]=_0x5be525,this['_liveShareService']=_0xffce6d,this[_0x24f253(0x25d)]=_0x4a497e);}get['_status'](){var _0x3622fc=_0x27b7d6;return this[_0x3622fc(0x212)][_0x3622fc(0x1c0)]();}[_0x27b7d6(0x1f9)](){var _0x3ad4a7=_0x27b7d6,_0x227424;(_0x227424=this[_0x3ad4a7(0x22d)])==null||_0x227424[_0x3ad4a7(0x1f9)](),this[_0x3ad4a7(0x212)][_0x3ad4a7(0x1da)](_0x3ad4a7(0x241)),this[_0x3ad4a7(0x212)]['complete']();}['init'](){var _0x533d97=_0x27b7d6;this[_0x533d97(0x1ae)]||(this['_init']=!0x0,this[_0x533d97(0x27e)]['sessionStatus$']['pipe'](_0x3c4560[_0x533d97(0x287)](this[_0x533d97(0x1e4)]))[_0x533d97(0x1b0)](_0x1639d8=>{var _0x8307f9=_0x533d97;switch(_0x1639d8){case _0x36dcec[_0x8307f9(0x258)][_0x8307f9(0x270)]:this[_0x8307f9(0x1ba)]();break;case _0x36dcec[_0x8307f9(0x258)][_0x8307f9(0x23c)]:this[_0x8307f9(0x21a)]();break;}}),this[_0x533d97(0x27e)][_0x533d97(0x253)]['pipe'](_0x3c4560[_0x533d97(0x287)](this['dispose$']))['subscribe'](_0x615302=>{var _0x1491f9=_0x533d97;const {eventID:_0x137b34}=_0x615302;switch(_0x137b34){case _0x3afe45['CollaborationEvent'][_0x1491f9(0x1b4)]:this['_handleNewHost'](_0x615302);break;case _0x3afe45[_0x1491f9(0x221)][_0x1491f9(0x1dc)]:this[_0x1491f9(0x208)](_0x615302);break;case _0x3afe45[_0x1491f9(0x221)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x3afe45['CollaborationEvent'][_0x1491f9(0x1ac)]:this['_handleNewChangeSets'](_0x615302);break;}}));}[_0x27b7d6(0x215)](){var _0x283f6d=_0x27b7d6;this[_0x283f6d(0x27e)][_0x283f6d(0x1f8)]({'eventID':_0x3afe45[_0x283f6d(0x221)][_0x283f6d(0x21d)],'data':{'unitID':this[_0x283f6d(0x244)],'userID':this[_0x283f6d(0x27e)][_0x283f6d(0x1eb)]()}},this['_unitID']);}['stopPresenting'](){var _0x13ecb6=_0x27b7d6;this['_status']===_0x13ecb6(0x1dd)&&(this['_status$'][_0x13ecb6(0x1da)](_0x13ecb6(0x241)),this[_0x13ecb6(0x27e)][_0x13ecb6(0x1f8)]({'eventID':_0x3afe45[_0x13ecb6(0x221)][_0x13ecb6(0x1a3)],'data':{'unitID':this['_unitID']}},this[_0x13ecb6(0x244)]));}[_0x27b7d6(0x23a)](){var _0x4a09f9=_0x27b7d6;this[_0x4a09f9(0x1ed)]==='not-following'&&(this['_status$'][_0x4a09f9(0x1da)]('following'),this[_0x4a09f9(0x1c4)]());}['stopFollowing'](){var _0xc4648f=_0x27b7d6;this[_0xc4648f(0x1ed)]==='following'&&this[_0xc4648f(0x242)]();}[_0x27b7d6(0x225)](_0x2561cd){var _0x143af7=_0x27b7d6;const {presenter:_0xaa586c}=_0x2561cd['data'],_0x5c21a0=this[_0x143af7(0x27e)][_0x143af7(0x1eb)]();this['_presenter']=_0xaa586c,_0xaa586c===_0x5c21a0?(this[_0x143af7(0x242)](),this[_0x143af7(0x286)]()):this[_0x143af7(0x1ed)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){var _0x3e1fbb=_0x27b7d6;const _0x3eea05={'eventID':_0x3afe45[_0x3e1fbb(0x221)][_0x3e1fbb(0x261)]};this['_collabSession'][_0x3e1fbb(0x1f8)](_0x3eea05,this[_0x3e1fbb(0x244)]);}[_0x27b7d6(0x1d7)](){var _0x2a9f51=_0x27b7d6;this[_0x2a9f51(0x26c)]=null,this[_0x2a9f51(0x1ed)]!==_0x2a9f51(0x1dd)&&this[_0x2a9f51(0x1cd)]();}[_0x27b7d6(0x1c3)](_0x113fd7){var _0x167d7f=_0x27b7d6;if(this[_0x167d7f(0x1ed)]===_0x167d7f(0x288)&&this['_presenter']===_0x113fd7[_0x167d7f(0x26e)]['memberID']){const _0x20e74f=_0x3afe45['parseProtocolChangeset'](_0x113fd7[_0x167d7f(0x26e)])[_0x167d7f(0x257)][_0x167d7f(0x1b6)]()[_0x167d7f(0x22c)](_0x5f51dc=>_0x5f51dc['id']===_0x5ad2a1[_0x167d7f(0x1c9)]['id']);if(_0x20e74f){const _0x806c86=_0x20e74f[_0x167d7f(0x206)][_0x167d7f(0x1a0)],_0x7a4d6b=_0x20e74f[_0x167d7f(0x206)][_0x167d7f(0x214)]['id'];setTimeout(()=>{var _0x31f9d7=_0x167d7f;this['_commandService'][_0x31f9d7(0x1ca)](_0x5ad2a1[_0x31f9d7(0x250)]['id'],{'unitId':_0x806c86,'subUnitId':_0x7a4d6b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xaff79e=_0x27b7d6;this[_0xaff79e(0x212)]['next'](_0xaff79e(0x1dd));const _0x187ed7=new Map(),_0x58546b=this['_commandDisposable']=new _0x247859['DisposableCollection']();_0x58546b[_0xaff79e(0x1df)](_0x247859['toDisposable'](()=>{var _0x564eee=_0xaff79e;_0x187ed7[_0x564eee(0x22a)](_0x2c2d46=>_0x2c2d46[_0x564eee(0x251)]()),_0x187ed7[_0x564eee(0x205)]();})),_0x58546b['add'](this[_0xaff79e(0x25d)]['onCommandExecuted'](_0x16631f=>{var _0xd6f761=_0xaff79e,_0x102d76;if(_0x16631f[_0xd6f761(0x1c1)]!==_0x247859[_0xd6f761(0x25b)][_0xd6f761(0x246)]||!this['_liveShareService'][_0xd6f761(0x20d)](_0x16631f['id']))return;const {id:_0x9d7fb5}=_0x16631f;let _0x57c00b;_0x187ed7[_0xd6f761(0x23b)](_0x9d7fb5)?_0x57c00b=_0x187ed7[_0xd6f761(0x22f)](_0x9d7fb5):(_0x57c00b=new _0x1ea32c[(_0xd6f761(0x268))](),_0x187ed7['set'](_0x9d7fb5,_0x57c00b),_0x57c00b['pipe'](_0x3c4560[_0xd6f761(0x19a)]((_0x102d76=this[_0xd6f761(0x1f3)][_0xd6f761(0x1f5)](_0x2fcd54))!=null?_0x102d76:_0x41226d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xd6f761(0x1b0)](_0x46c6c3=>{var _0x3ecca6=_0xd6f761;this[_0x3ecca6(0x27e)][_0x3ecca6(0x1f8)]({'eventID':_0x3afe45[_0x3ecca6(0x221)][_0x3ecca6(0x1dc)],'data':{'unitID':this[_0x3ecca6(0x244)],'operations':{[_0x46c6c3['id']]:{'id':_0x46c6c3['id'],'params':JSON[_0x3ecca6(0x275)](_0x46c6c3[_0x3ecca6(0x206)])}}}},this[_0x3ecca6(0x244)]);})),_0x57c00b['next'](_0x16631f);})),this[_0xaff79e(0x220)]['getInitialStates'](this[_0xaff79e(0x244)])[_0xaff79e(0x22a)](_0xd3b4d6=>this[_0xaff79e(0x27e)]['send']({'eventID':_0x3afe45[_0xaff79e(0x221)][_0xaff79e(0x1dc)],'data':{'unitID':this[_0xaff79e(0x244)],'operations':{[_0xd3b4d6['id']]:{'id':_0xd3b4d6['id'],'params':JSON[_0xaff79e(0x275)](_0xd3b4d6[_0xaff79e(0x206)])}}}},this[_0xaff79e(0x244)]));}[_0x27b7d6(0x255)](){var _0x5b88f9=_0x27b7d6,_0x597236;this['_status$'][_0x5b88f9(0x1da)](_0x5b88f9(0x241)),(_0x597236=this[_0x5b88f9(0x22d)])==null||_0x597236[_0x5b88f9(0x1f9)](),this['_commandDisposable']=null;}[_0x27b7d6(0x1c4)](){var _0x37e748=_0x27b7d6,_0x249619;(_0x249619=this[_0x37e748(0x22d)])==null||_0x249619['dispose'](),this[_0x37e748(0x212)][_0x37e748(0x1da)](_0x37e748(0x288));}[_0x27b7d6(0x1cd)](){var _0x3b6548=_0x27b7d6,_0x1f2013;this[_0x3b6548(0x212)]['next']('idle'),(_0x1f2013=this['_commandDisposable'])==null||_0x1f2013[_0x3b6548(0x1f9)](),this[_0x3b6548(0x22d)]=null;}[_0x27b7d6(0x242)](){var _0x45bbe9=_0x27b7d6,_0x55a147;this[_0x45bbe9(0x212)][_0x45bbe9(0x1da)](_0x45bbe9(0x19b)),(_0x55a147=this[_0x45bbe9(0x22d)])==null||_0x55a147[_0x45bbe9(0x1f9)]();}[_0x27b7d6(0x208)](_0x36421b){var _0x51b5a6=_0x27b7d6;if(['presenting','not-following',_0x51b5a6(0x218)]['includes'](this[_0x51b5a6(0x1ed)])||!_0x36421b[_0x51b5a6(0x26e)][_0x51b5a6(0x1c7)]||_0x36421b[_0x51b5a6(0x26e)][_0x51b5a6(0x1c7)]===this['_collabSession']['getMemberID']())return;this[_0x51b5a6(0x1ed)]===_0x51b5a6(0x241)&&this[_0x51b5a6(0x1c4)]();const _0x2a6ea4=_0x36421b[_0x51b5a6(0x26e)][_0x51b5a6(0x243)];Object[_0x51b5a6(0x1a5)](_0x2a6ea4)['forEach'](_0xabfd71=>{var _0x1300d1=_0x51b5a6;this[_0x1300d1(0x25d)]['executeCommand'](_0xabfd71['id'],_0xabfd71[_0x1300d1(0x206)]?JSON[_0x1300d1(0x1ee)](_0xabfd71[_0x1300d1(0x206)]):null,{'fromCollab':!0x0});});}[_0x27b7d6(0x1ba)](){var _0x45552d=_0x27b7d6,_0x4d26fc;this[_0x45552d(0x212)][_0x45552d(0x1da)](_0x45552d(0x218)),(_0x4d26fc=this[_0x45552d(0x22d)])==null||_0x4d26fc[_0x45552d(0x1f9)]();}[_0x27b7d6(0x21a)](){var _0x4a8b99=_0x27b7d6;this[_0x4a8b99(0x212)][_0x4a8b99(0x1da)](_0x4a8b99(0x241)),this[_0x4a8b99(0x25e)]();}},_0xefd987[_0x27b7d6(0x199)]=_0x2a0ac2([_0x5433ad(0x2,_0x247859[_0x27b7d6(0x26b)]),_0x5433ad(0x3,_0x247859['Inject'](_0x256e53)),_0x5433ad(0x4,_0x247859[_0x27b7d6(0x198)])],_0xefd987[_0x27b7d6(0x199)]);function _0x35dbcb(){var _0xa42d46=_0x27b7d6;const _0x1208d8=_0x394c3e[_0xa42d46(0x282)](_0xefd987[_0xa42d46(0x21b)]),_0x9134bf=_0x394c3e['useDependency'](_0x247859[_0xa42d46(0x1ab)]),_0x381498=_0x394c3e[_0xa42d46(0x1e3)](()=>_0x9134bf[_0xa42d46(0x1b8)](_0x247859[_0xa42d46(0x281)][_0xa42d46(0x1f1)]),void 0x0,!0x1,[]),[_0x3a67f4,_0x246319]=_0x164584[_0xa42d46(0x252)](null),[_0x4bef15,_0x2edaa]=_0x164584['useState'](_0x5c9637[_0xa42d46(0x26a)]),_0x156c26=_0x164584[_0xa42d46(0x1ec)](null);return _0x164584['useEffect'](()=>(_0x381498&&_0x1208d8[_0xa42d46(0x20c)](_0x381498[_0xa42d46(0x230)]())[_0xa42d46(0x26d)](_0x2b8aef=>{var _0x232ab4=_0xa42d46;_0x246319(_0x2b8aef),_0x156c26[_0x232ab4(0x1c6)]=_0x2b8aef[_0x232ab4(0x1a1)][_0x232ab4(0x1b0)](_0x5d3af2=>{_0x2edaa(_0x5d3af2);});}),()=>{var _0x1b68b3=_0xa42d46,_0x50288c;(_0x50288c=_0x156c26[_0x1b68b3(0x1c6)])==null||_0x50288c[_0x1b68b3(0x204)](),_0x156c26['current']=null;}),[_0x381498,_0x1208d8]),_0x3a67f4?_0xf2518d[_0xa42d46(0x271)](_0x4fea6f[_0xa42d46(0x226)],{'align':'end','disabled':_0x4bef15===_0x5c9637[_0xa42d46(0x270)],'className':_0xa42d46(0x20f),'overlay':_0xf2518d['jsx'](_0x3d6b3d,{'status':_0x4bef15,'coordinator':_0x3a67f4}),'children':_0xf2518d[_0xa42d46(0x271)](_0xa42d46(0x27d),{'className':_0x4fea6f[_0xa42d46(0x1d6)](_0xa42d46(0x1d1),{'univer-cursor-not-allowed':_0x4bef15===_0x5c9637[_0xa42d46(0x270)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4bef15!==_0x5c9637[_0xa42d46(0x270)]}),'type':'button','children':_0xf2518d[_0xa42d46(0x271)](_0x48e749,{'className':_0xa42d46(0x1be)})})}):null;}function _0x3d6b3d(_0x551d0e){var _0x35ccf7=_0x27b7d6;const {status:_0x7d7b4c,coordinator:_0x343890}=_0x551d0e;switch(_0x7d7b4c){case _0x5c9637['IDLE']:return _0xf2518d[_0x35ccf7(0x271)](_0x442dcc,{'coordinator':_0x343890});case _0x5c9637[_0x35ccf7(0x1c2)]:return _0xf2518d[_0x35ccf7(0x271)](_0x1e1ce7,{'coordinator':_0x343890});case _0x5c9637[_0x35ccf7(0x1b7)]:return _0xf2518d[_0x35ccf7(0x271)](_0x484327,{'coordinator':_0x343890});case _0x5c9637[_0x35ccf7(0x270)]:return _0xf2518d[_0x35ccf7(0x271)](_0xc76d3,{});case _0x5c9637[_0x35ccf7(0x231)]:return _0xf2518d[_0x35ccf7(0x271)](_0x5802fe,{'coordinator':_0x343890});default:return null;}}function _0x442dcc(_0x4bc484){var _0x202529=_0x27b7d6;const {coordinator:_0x55b10c}=_0x4bc484;return _0xf2518d[_0x202529(0x1ef)](_0xf2518d['Fragment'],{'children':[_0xf2518d[_0x202529(0x271)](_0x202529(0x227),{'className':_0x202529(0x190),'children':_0x202529(0x260)}),_0xf2518d[_0x202529(0x271)](_0x4fea6f[_0x202529(0x24d)],{'onClick':()=>_0x55b10c[_0x202529(0x215)](),'children':_0x202529(0x259)})]});}function _0x1e1ce7(_0x3e10c7){var _0x244c0c=_0x27b7d6;const {coordinator:_0x29d4c9}=_0x3e10c7;return _0xf2518d[_0x244c0c(0x1ef)](_0xf2518d['Fragment'],{'children':[_0xf2518d['jsx'](_0x244c0c(0x227),{'className':_0x244c0c(0x190),'children':'You\x27re\x20following\x20the\x20presenter'}),_0xf2518d[_0x244c0c(0x271)](_0x4fea6f[_0x244c0c(0x24d)],{'onClick':()=>_0x29d4c9[_0x244c0c(0x1fc)](),'children':_0x244c0c(0x1f6)})]});}function _0x484327(_0x38dbde){var _0x34ce10=_0x27b7d6;const {coordinator:_0x4f4895}=_0x38dbde;return _0xf2518d[_0x34ce10(0x1ef)](_0xf2518d[_0x34ce10(0x1ce)],{'children':[_0xf2518d[_0x34ce10(0x271)](_0x34ce10(0x227),{'className':_0x34ce10(0x190),'children':_0x34ce10(0x23f)}),_0xf2518d[_0x34ce10(0x271)](_0x4fea6f[_0x34ce10(0x24d)],{'variant':'text','onClick':()=>_0x4f4895[_0x34ce10(0x23a)](),'children':'Start\x20following'})]});}function _0x5802fe(_0x2f49b0){var _0x4b3647=_0x27b7d6;const {coordinator:_0xb13829}=_0x2f49b0;return _0xf2518d['jsxs'](_0xf2518d['Fragment'],{'children':[_0xf2518d[_0x4b3647(0x271)](_0x4b3647(0x227),{'className':_0x4b3647(0x190),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xf2518d[_0x4b3647(0x271)](_0x4fea6f['Button'],{'variant':'default','onClick':()=>_0xb13829['stopPresenting'](),'children':_0x4b3647(0x203)})]});}function _0xc76d3(){var _0x402fe7=_0x27b7d6;return _0xf2518d['jsx'](_0xf2518d[_0x402fe7(0x1ce)],{'children':_0x402fe7(0x20e)});}var _0x23e4c7=Object[_0x27b7d6(0x1ea)],_0x3c5c5f=(_0x1e885e,_0x2b6b2c,_0x47cb88,_0x5bcb22)=>{var _0x1650d0=_0x27b7d6;for(var _0x49740b=_0x5bcb22>0x1?void 0x0:_0x5bcb22?_0x23e4c7(_0x2b6b2c,_0x47cb88):_0x2b6b2c,_0x27510d=_0x1e885e[_0x1650d0(0x256)]-0x1,_0x229413;_0x27510d>=0x0;_0x27510d--)(_0x229413=_0x1e885e[_0x27510d])&&(_0x49740b=_0x229413(_0x49740b)||_0x49740b);return _0x49740b;},_0x2775fe=(_0x2340e9,_0x16a9c6)=>(_0x2f2275,_0x411118)=>_0x16a9c6(_0x2f2275,_0x411118,_0x2340e9);_0xefd987['DesktopLiveShareController']=class extends _0x247859[_0x27b7d6(0x1e2)]{constructor(_0x24c179,_0x4b74b0){var _0x1c1fff=_0x27b7d6;super(),this[_0x1c1fff(0x1b3)]=_0x24c179,this[_0x1c1fff(0x1b2)]=_0x4b74b0,this[_0x1c1fff(0x1f2)]();}[_0x27b7d6(0x1f2)](){var _0x3088de=_0x27b7d6;this[_0x3088de(0x1fe)](this[_0x3088de(0x1b2)][_0x3088de(0x201)](_0x394c3e[_0x3088de(0x240)]['HEADER_MENU'],()=>_0x394c3e[_0x3088de(0x1bc)](_0x35dbcb,this[_0x3088de(0x1b3)])));}},_0xefd987[_0x27b7d6(0x229)]=_0x3c5c5f([_0x2775fe(0x0,_0x247859[_0x27b7d6(0x1d2)](_0x247859[_0x27b7d6(0x1d9)])),_0x2775fe(0x1,_0x394c3e[_0x27b7d6(0x1cc)])],_0xefd987['DesktopLiveShareController']);const _0x5b91e7=_0x27b7d6(0x207),_0x32c0f0={};var _0x2743c9=Object[_0x27b7d6(0x1ea)],_0xfb867=(_0x294179,_0x6b3258,_0x31ea36,_0x57c326)=>{var _0x32d783=_0x27b7d6;for(var _0x3b15f6=_0x57c326>0x1?void 0x0:_0x57c326?_0x2743c9(_0x6b3258,_0x31ea36):_0x6b3258,_0x5c7d17=_0x294179[_0x32d783(0x256)]-0x1,_0x51d7e2;_0x5c7d17>=0x0;_0x5c7d17--)(_0x51d7e2=_0x294179[_0x5c7d17])&&(_0x3b15f6=_0x51d7e2(_0x3b15f6)||_0x3b15f6);return _0x3b15f6;},_0x4c4ac6=(_0x387aa0,_0x647d38)=>(_0x5aeec3,_0xdb60d0)=>_0x647d38(_0x5aeec3,_0xdb60d0,_0x387aa0);let _0x2f5c77=class extends _0x247859['Disposable']{constructor(_0x368688){var _0x2d33b0=_0x27b7d6;super(),this[_0x2d33b0(0x220)]=_0x368688,this[_0x2d33b0(0x1ae)]();}[_0x27b7d6(0x1ae)](){var _0x48e26d=_0x27b7d6;[_0x18f510[_0x48e26d(0x1ff)]['id'],_0x18f510[_0x48e26d(0x25a)]['id'],_0x5ad2a1[_0x48e26d(0x250)]['id']][_0x48e26d(0x22a)](_0x58a8a6=>{var _0x1dff9c=_0x48e26d;this['disposeWithMe'](this[_0x1dff9c(0x220)][_0x1dff9c(0x1aa)](_0x58a8a6));});}};_0x2f5c77=_0xfb867([_0x4c4ac6(0x0,_0x247859[_0x27b7d6(0x1d2)](_0x256e53))],_0x2f5c77);var _0x1c1a40=Object['defineProperty'],_0x348edb=Object[_0x27b7d6(0x1ea)],_0x456a84=(_0x124832,_0x3348fe,_0x191a52)=>_0x3348fe in _0x124832?_0x1c1a40(_0x124832,_0x3348fe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x191a52}):_0x124832[_0x3348fe]=_0x191a52,_0x5b06e6=(_0x268057,_0x2a721a,_0x13a7f2,_0x3fb17d)=>{var _0x39088a=_0x27b7d6;for(var _0x1deb24=_0x3fb17d>0x1?void 0x0:_0x3fb17d?_0x348edb(_0x2a721a,_0x13a7f2):_0x2a721a,_0x1681df=_0x268057[_0x39088a(0x256)]-0x1,_0x5026be;_0x1681df>=0x0;_0x1681df--)(_0x5026be=_0x268057[_0x1681df])&&(_0x1deb24=_0x5026be(_0x1deb24)||_0x1deb24);return _0x1deb24;},_0x12a676=(_0x54159c,_0x189fed)=>(_0x4dd41d,_0x57ce6d)=>_0x189fed(_0x4dd41d,_0x57ce6d,_0x54159c),_0x2d4764=(_0xbd4718,_0x597dc3,_0x1fd701)=>_0x456a84(_0xbd4718,typeof _0x597dc3!=_0x27b7d6(0x191)?_0x597dc3+'':_0x597dc3,_0x1fd701);const _0x5a5b93=_0x27b7d6(0x22b);_0xefd987['UniverLiveSharePlugin']=class extends _0x247859[_0x27b7d6(0x24c)]{constructor(_0x3901ea=_0x32c0f0,_0x5ef0a8,_0x2a97a4){var _0x1c63f1=_0x27b7d6;super(),this[_0x1c63f1(0x19e)]=_0x3901ea,this[_0x1c63f1(0x1b3)]=_0x5ef0a8,this['_configService']=_0x2a97a4;const {..._0x28aa5d}=_0x247859[_0x1c63f1(0x285)]({},_0x32c0f0,this[_0x1c63f1(0x19e)]);this['_configService']['setConfig'](_0x5b91e7,_0x28aa5d);}[_0x27b7d6(0x277)](){var _0x5ee3a0=_0x27b7d6;_0x247859[_0x5ee3a0(0x1de)](this[_0x5ee3a0(0x1b3)],_0x247859['mergeOverrideWithDependencies']([[_0x256e53],[_0xefd987['LiveShareController']],[_0x2f5c77],[_0xefd987[_0x5ee3a0(0x229)]]],this['_config'][_0x5ee3a0(0x249)])),_0x247859[_0x5ee3a0(0x1a4)](this[_0x5ee3a0(0x1b3)],[[_0x2f5c77]]);}[_0x27b7d6(0x1e8)](){var _0x5b17bf=_0x27b7d6;_0x247859[_0x5b17bf(0x1a4)](this['_injector'],[[_0xefd987[_0x5b17bf(0x229)]]]);}},_0x2d4764(_0xefd987[_0x27b7d6(0x202)],_0x27b7d6(0x1c1),_0x247859[_0x27b7d6(0x281)]['UNIVER_UNKNOWN']),_0x2d4764(_0xefd987[_0x27b7d6(0x202)],'pluginName',_0x5a5b93),_0xefd987['UniverLiveSharePlugin']=_0x5b06e6([_0x247859['DependentOn'](_0x36dcec[_0x27b7d6(0x1a6)]),_0x12a676(0x1,_0x247859[_0x27b7d6(0x1d2)](_0x247859[_0x27b7d6(0x1d9)])),_0x12a676(0x2,_0x247859['IConfigService'])],_0xefd987[_0x27b7d6(0x202)]),_0xefd987[_0x27b7d6(0x267)]=_0x35dbcb,_0xefd987[_0x27b7d6(0x274)]=_0x256e53,_0xefd987[_0x27b7d6(0x200)]=_0x5c9637,Object['defineProperty'](_0xefd987,Symbol[_0x27b7d6(0x262)],{'value':'Module'});}));function _0x1dcd(){var _0x410a42=['entries','subscribe','className','_uiPartsService','_injector','LIVESHARE_NEW_HOST','createInstance','reverse','NOT_FOLLOWING','getCurrentTypeOfUnit$','children','_handleOffline','39756LnpLyT','connectInjector','_sharedOperations','univer-size-4','indexOf','getValue','type','FOLLOWING','_handleNewChangeSets','_startFollowing','@univerjs/design','current','presenter','_startLiveShareCoordinator','InsertSheetMutation','executeCommand','svg','IUIPartsService','_beIdle','Fragment','from','xlink:href','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Inject','674615jGeTqM','colorChannel1','url(#$1','clsx','_handleTerminate','concat','Injector','next','operators','LIVESHARE_OPERATION','presenting','registerDependencies','add','random','asObservable','Disposable','useObservable','dispose$','UniverProCollaborationClient','displayName','univerjs-icon\x20univerjs-icon-','onRendered','_reporters','getOwnPropertyDescriptor','getMemberID','useRef','_status','parse','jsxs','mask','UNIVER_SHEET','_mountLiveShare','_configService','forwardRef','getConfig','Stop\x20following','map','send','dispose','idSuffix','@univerjs/sheets','stopFollowing','none','disposeWithMe','SetZoomRatioOperation','LiveShareStatus','registerComponent','UniverLiveSharePlugin','Stop\x20presenting','unsubscribe','clear','params','live-share.config','_handleOperation','15dTAFnf','call','fill','getLiveShareCoordinator','shouldShareOperation','You\x27are\x20offline.','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','getTypeOfUnitAdded$','_entities','_status$','3037846YxMepP','sheet','tryStartPresenting','RxDisposable','substring','offline','SAME_OPERATION_SHARE_INTERVAL','_handleOnline','LiveShareController','LiveShareIcon','LIVESHARE_REQUEST_HOST','@univerjs-pro/collaboration-client','_univerInstanceService','_liveShareService','CollaborationEvent','5110461HpSDnP','includes','function','_handleNewHost','Dropdown','div','UniverUi','DesktopLiveShareController','forEach','UNIVER_LIVE_SHARE_PLUGIN','find','_commandDisposable','@univerjs/sheets-ui','get','getUnitId','PRESENTING','pipe','defIds','@univerjs/ui','1912570BJJeJs','6MgdsXf','replace','requireSession','UniverDesign','startFollowing','has','ONLINE','prototype','11fLMWdR','You\x27re\x20not\x20following\x20the\x20presenter','BuiltInUIPart','idle','_stopFollowing','operations','_unitID','apply','OPERATION','UniverProLiveShare','CollaborationSessionService','override','delete','_collabSessionService','Plugin','Button','path','UniverProCollaboration','SetWorksheetActiveOperation','complete','useState','event$','string','_stopPresenting','length','mutations','SessionStatus','Start','SetScrollOperation','CommandType','assign','_commandService','_fetchOperations','1em','Present\x20this\x20document','LIVESHARE_FETCH_OPERATIONS','toStringTag','toString','219450JAgSzV','tag','UniverCore','LiveShare','Subject','UniverIcon','IDLE','IConfigService','_presenter','then','data','16KHrYEN','OFFLINE','jsx','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','LiveShareService','stringify','registerInitialStateReporter','onStarting','currentColor','getInitialStates','rxjs','react','attrs','button','_collabSession','BehaviorSubject','react/jsx-runtime','UniverInstanceType','useDependency','84175AIPgel','UniverSheetsUi','merge','_startPresenting','takeUntil','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','symbol','set','init','evenodd','exports','live-share-icon','toDisposable','ICommandService','LiveShareCoordinator','throttleTime','not-following','getOwnPropertySymbols','icon','_config','UniverSheets','unitId','status$','getTypeOfUnitDisposed$','LIVESHARE_TERMINATE','touchDependencies','values','UniverCollaborationClientPlugin','createElement','propertyIsEnumerable','hasOwnProperty','registerSharedOperation','IUniverInstanceService','NEW_CHANGESETS','React','_init'];_0x1dcd=function(){return _0x410a42;};return _0x1dcd();}
|
|
1
|
+
function _0x4e8a(_0x242b7b,_0x2207ef){var _0x12e32d=_0x12e3();return _0x4e8a=function(_0x4e8abc,_0x37faf3){_0x4e8abc=_0x4e8abc-0x1ec;var _0x280c62=_0x12e32d[_0x4e8abc];return _0x280c62;},_0x4e8a(_0x242b7b,_0x2207ef);}function _0x12e3(){var _0x348fa2=['unsubscribe','registerSharedOperation','Subject','_entities','univerjs-icon\x20univerjs-icon-','UniverLiveSharePlugin','send','object','SetScrollOperation','hasOwnProperty','shouldShareOperation','then','parse','useRef','init','offline','substring','url(#$1','unitId','@univerjs-pro/collaboration','defIds','IDLE','indexOf','status$','react','xlink:href','OFFLINE','getUnitId','_status$','useEffect','HEADER_MENU','call','InsertSheetMutation','CollaborationSessionService','LIVESHARE_REQUEST_HOST','_status','univer-size-4','set','CollaborationEvent','PRESENTING','onStarting','UniverCore','NOT_FOLLOWING','5886056ZgNdUw','SetWorksheetActiveOperation','_unitID','propertyIsEnumerable','_startFollowing','live-share.config','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','Start','jsxs','stringify','mergeOverrideWithDependencies','You\x27re\x20presenting\x20the\x20document','stopFollowing','from','50kZljMm','random','createElement','currentColor','_startLiveShareCoordinator','FOLLOWING','_handleOffline','tag','http://www.w3.org/2000/svg','assign','sessionStatus$','values','Disposable','_collabSessionService','getInitialStates','apply','LIVESHARE_TERMINATE','string','add','getOwnPropertySymbols','div','0\x200\x2017\x2017','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','connectInjector','has','attrs','subscribe','LiveShare','setConfig','DesktopLiveShareController','next','@univerjs/ui','map','executeCommand','3710490lZBOMW','jsx','getTypeOfUnitDisposed$','presenter','getMemberID','rxjs','data','UniverSheets','LiveShareController','LiveShareService','mask','@univerjs/sheets','forEach','following','UNIVER_LIVE_SHARE_PLUGIN','DependentOn','forwardRef','disposeWithMe','_beIdle','_handleOnline','toStringTag','SessionStatus','Stop\x20presenting','prototype','LIVESHARE_NEW_HOST','reverse','idle','DisposableCollection','onRendered','icon','You\x27re\x20following\x20the\x20presenter','_startPresenting','UniverProLiveShare','complete','_uiPartsService','getConfig','registerComponent','getTypeOfUnitAdded$','memberID','defineProperty','not-following','LIVESHARE_OPERATION','univer-mb-3\x20univer-w-full\x20univer-text-sm','touchDependencies','presenting','colorChannel1','_presenter','_handleNewChangeSets','concat','onCommandExecuted','includes','1824634CXwBoa','_commandDisposable','@univerjs-pro/collaboration-client','LiveShareStatus','asObservable','operators','amd','registerInitialStateReporter','default','185751dWacwE','dispose$','get','_sharedOperations','_collabSession','current','replace','@univerjs/design','react/jsx-runtime','extend','toDisposable','_fetchOperations','UniverDesign','takeUntil','Start\x20following','_stopFollowing','UniverInstanceType','requireSession','svg','Inject','className','UniverUi','Injector','_handleTerminate','tryStartPresenting','rxjs/operators','displayName','IUniverInstanceService','useDependency','UniverProCollaboration','find','throttleTime','IConfigService','defs','Plugin','_injector','UniverProCollaborationClient','3235540QZefGW','_reporters','getCurrentTypeOfUnit$','UniverIcon','BuiltInUIPart','symbol','delete','operations','evenodd','LiveShareIcon','ONLINE','function','getLiveShareCoordinator','pipe','Dropdown','children','dispose','_liveShareService','52SQFdSj','RxDisposable','createInstance','getOwnPropertyDescriptor','You\x27are\x20offline.','_config','clear','path','length','LiveShareCoordinator','_commandService','override','end','merge','_handleNewHost','Fragment','trim','Button','clsx','_handleOperation','_stopPresenting','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','type','fill','3754gArBMj','_configService','_mountLiveShare','UniverSheetsUi','@univerjs/core','button','1em','React','idSuffix','You\x27re\x20not\x20following\x20the\x20presenter','getValue','_init','entries','Module','4948596LeYwfK','live-share-icon','stopPresenting','params','_univerInstanceService'];_0x12e3=function(){return _0x348fa2;};return _0x12e3();}(function(_0x5086fb,_0x193e63){var _0x107a4e=_0x4e8a,_0x29ffcc=_0x5086fb();while(!![]){try{var _0x1c09cf=-parseInt(_0x107a4e(0x225))/0x1*(parseInt(_0x107a4e(0x272))/0x2)+-parseInt(_0x107a4e(0x2d0))/0x3*(parseInt(_0x107a4e(0x20d))/0x4)+-parseInt(_0x107a4e(0x1fb))/0x5+parseInt(_0x107a4e(0x294))/0x6+parseInt(_0x107a4e(0x2c7))/0x7+parseInt(_0x107a4e(0x263))/0x8+parseInt(_0x107a4e(0x233))/0x9;if(_0x1c09cf===_0x193e63)break;else _0x29ffcc['push'](_0x29ffcc['shift']());}catch(_0x3f9424){_0x29ffcc['push'](_0x29ffcc['shift']());}}}(_0x12e3,0x9712f),function(_0x14460a,_0x3d1f87){var _0x5ce170=_0x4e8a;typeof exports==_0x5ce170(0x23f)&&typeof module<'u'?_0x3d1f87(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x5ce170(0x2cd)]?define(['exports',_0x5ce170(0x229),_0x5ce170(0x291),_0x5ce170(0x2d8),_0x5ce170(0x2d7),_0x5ce170(0x250),_0x5ce170(0x24b),_0x5ce170(0x2c9),_0x5ce170(0x29f),'rxjs',_0x5ce170(0x1ef),'@univerjs/sheets-ui'],_0x3d1f87):(_0x14460a=typeof globalThis<'u'?globalThis:_0x14460a||self,_0x3d1f87(_0x14460a[_0x5ce170(0x2b4)]={},_0x14460a[_0x5ce170(0x261)],_0x14460a[_0x5ce170(0x2e5)],_0x14460a[_0x5ce170(0x22c)],_0x14460a[_0x5ce170(0x2dc)],_0x14460a['React'],_0x14460a[_0x5ce170(0x1f3)],_0x14460a[_0x5ce170(0x1fa)],_0x14460a[_0x5ce170(0x29b)],_0x14460a[_0x5ce170(0x299)],_0x14460a[_0x5ce170(0x299)][_0x5ce170(0x2cc)],_0x14460a[_0x5ce170(0x228)]));}(this,function(_0x2c83d3,_0x4eaa93,_0x25183f,_0x551abb,_0x291e19,_0x2a881a,_0xe00c00,_0x4fa62d,_0x160e81,_0x768fc5,_0x4d9baf,_0x511a5b){'use strict';var _0x2d67da=_0x4e8a;var _0x1cbad6=Object[_0x2d67da(0x2bb)],_0x26f6b7=(_0x59c82a,_0x527275,_0x164f72)=>_0x527275 in _0x59c82a?_0x1cbad6(_0x59c82a,_0x527275,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164f72}):_0x59c82a[_0x527275]=_0x164f72,_0xea0fb6=(_0x2e9288,_0x9559de,_0x9e2b13)=>_0x26f6b7(_0x2e9288,typeof _0x9559de!=_0x2d67da(0x200)?_0x9559de+'':_0x9559de,_0x9e2b13),_0x17fd21=function(){var _0x1fda10=_0x2d67da;return _0x17fd21=Object[_0x1fda10(0x27b)]||function(_0x10f898){var _0x547c3e=_0x1fda10;for(var _0x1808e7,_0x4f3ea7=0x1,_0x515b70=arguments['length'];_0x4f3ea7<_0x515b70;_0x4f3ea7++){_0x1808e7=arguments[_0x4f3ea7];for(var _0x1c8c9f in _0x1808e7)Object[_0x547c3e(0x2ab)][_0x547c3e(0x241)][_0x547c3e(0x257)](_0x1808e7,_0x1c8c9f)&&(_0x10f898[_0x1c8c9f]=_0x1808e7[_0x1c8c9f]);}return _0x10f898;},_0x17fd21[_0x1fda10(0x281)](this,arguments);},_0x81c724=function(_0x9adcf4,_0x34e268){var _0x25dd23=_0x2d67da,_0x2690dd={};for(var _0x4628c0 in _0x9adcf4)Object[_0x25dd23(0x2ab)][_0x25dd23(0x241)]['call'](_0x9adcf4,_0x4628c0)&&_0x34e268[_0x25dd23(0x24e)](_0x4628c0)<0x0&&(_0x2690dd[_0x4628c0]=_0x9adcf4[_0x4628c0]);if(_0x9adcf4!=null&&typeof Object[_0x25dd23(0x285)]==_0x25dd23(0x206)){for(var _0x2aa192=0x0,_0x4628c0=Object[_0x25dd23(0x285)](_0x9adcf4);_0x2aa192<_0x4628c0[_0x25dd23(0x215)];_0x2aa192++)_0x34e268['indexOf'](_0x4628c0[_0x2aa192])<0x0&&Object[_0x25dd23(0x2ab)][_0x25dd23(0x266)]['call'](_0x9adcf4,_0x4628c0[_0x2aa192])&&(_0x2690dd[_0x4628c0[_0x2aa192]]=_0x9adcf4[_0x4628c0[_0x2aa192]]);}return _0x2690dd;},_0x21a766=_0x2a881a[_0x2d67da(0x2a4)](function(_0xc1372d,_0x49c2f2){var _0x28ea97=_0x2d67da,_0x56a830=_0xc1372d[_0x28ea97(0x2b1)],_0x181eca=_0xc1372d['id'],_0x2f273d=_0xc1372d[_0x28ea97(0x2e4)],_0x3b67c8=_0xc1372d[_0x28ea97(0x2d9)],_0x4d0e4f=_0x81c724(_0xc1372d,[_0x28ea97(0x2b1),'id',_0x28ea97(0x2e4),_0x28ea97(0x2d9)]),_0x3b2b06=_0x28ea97(0x23c)[_0x28ea97(0x2c4)](_0x181eca,'\x20')[_0x28ea97(0x2c4)](_0x2f273d||'')[_0x28ea97(0x21d)](),_0x3d4f9e=_0x2a881a[_0x28ea97(0x245)]('_'[_0x28ea97(0x2c4)](_0x4549ff()));return _0x46becf(_0x56a830,''[_0x28ea97(0x2c4)](_0x181eca),{'defIds':_0x56a830[_0x28ea97(0x24c)],'idSuffix':_0x3d4f9e['current']},_0x17fd21({'ref':_0x49c2f2,'className':_0x3b2b06},_0x4d0e4f),_0x3b67c8);});function _0x46becf(_0x4aad8a,_0x4691e7,_0x3d357c,_0x51ff9,_0x4e8473){var _0x58927e=_0x2d67da;return _0x2a881a[_0x58927e(0x274)](_0x4aad8a['tag'],_0x17fd21(_0x17fd21({'key':_0x4691e7},_0x4f6a03(_0x4aad8a,_0x3d357c,_0x4e8473)),_0x51ff9),(_0x235470(_0x4aad8a,_0x3d357c)[_0x58927e(0x20a)]||[])[_0x58927e(0x292)](function(_0x311565,_0x3b0f50){var _0x3ef9fa=_0x58927e;return _0x46becf(_0x311565,''[_0x3ef9fa(0x2c4)](_0x4691e7,'-')[_0x3ef9fa(0x2c4)](_0x4aad8a[_0x3ef9fa(0x279)],'-')[_0x3ef9fa(0x2c4)](_0x3b0f50),_0x3d357c,void 0x0,_0x4e8473);}));}function _0x4f6a03(_0x46dd0d,_0x30704e,_0x2bba87){var _0x204fce=_0x2d67da,_0x28cb9c=_0x17fd21({},_0x46dd0d[_0x204fce(0x28b)]);_0x2bba87!=null&&_0x2bba87[_0x204fce(0x2c1)]&&_0x28cb9c[_0x204fce(0x224)]===_0x204fce(0x2c1)&&(_0x28cb9c[_0x204fce(0x224)]=_0x2bba87['colorChannel1']),_0x46dd0d[_0x204fce(0x279)]===_0x204fce(0x29e)&&_0x28cb9c['id']&&(_0x28cb9c['id']=_0x28cb9c['id']+_0x30704e[_0x204fce(0x22d)]),Object[_0x204fce(0x231)](_0x28cb9c)['forEach'](function(_0x1e7480){var _0x35b63a=_0x204fce,_0x2400e7=_0x1e7480[0x0],_0x2559d1=_0x1e7480[0x1];_0x2400e7===_0x35b63a(0x29e)&&typeof _0x2559d1==_0x35b63a(0x283)&&(_0x28cb9c[_0x2400e7]=_0x2559d1[_0x35b63a(0x2d6)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x30704e['idSuffix'],')')));});var _0x1371ef=_0x30704e['defIds'];return!_0x1371ef||_0x1371ef[_0x204fce(0x215)]===0x0||(_0x46dd0d[_0x204fce(0x279)]==='use'&&_0x28cb9c[_0x204fce(0x251)]&&(_0x28cb9c[_0x204fce(0x251)]=_0x28cb9c['xlink:href']+_0x30704e[_0x204fce(0x22d)]),Object['entries'](_0x28cb9c)[_0x204fce(0x2a0)](function(_0x211498){var _0x3b3ea9=_0x204fce,_0x25b7f9=_0x211498[0x0],_0x245ac0=_0x211498[0x1];typeof _0x245ac0=='string'&&(_0x28cb9c[_0x25b7f9]=_0x245ac0['replace'](/url\(#(.*)\)/,_0x3b3ea9(0x249)[_0x3b3ea9(0x2c4)](_0x30704e[_0x3b3ea9(0x22d)],')')));})),_0x28cb9c;}function _0x235470(_0x2d9703,_0x53ddcd){var _0x1eff61=_0x2d67da,_0xfe1804,_0x403544=_0x53ddcd[_0x1eff61(0x24c)];return!_0x403544||_0x403544['length']===0x0?_0x2d9703:_0x2d9703[_0x1eff61(0x279)]===_0x1eff61(0x1f7)&&(!((_0xfe1804=_0x2d9703[_0x1eff61(0x20a)])===null||_0xfe1804===void 0x0)&&_0xfe1804['length'])?_0x17fd21(_0x17fd21({},_0x2d9703),{'children':_0x2d9703[_0x1eff61(0x20a)][_0x1eff61(0x292)](function(_0x395d30){var _0x1e3dd2=_0x1eff61;return typeof _0x395d30[_0x1e3dd2(0x28b)]['id']==_0x1e3dd2(0x283)&&_0x403544&&_0x403544[_0x1e3dd2(0x2c6)](_0x395d30[_0x1e3dd2(0x28b)]['id'])?_0x17fd21(_0x17fd21({},_0x395d30),{'attrs':_0x17fd21(_0x17fd21({},_0x395d30[_0x1e3dd2(0x28b)]),{'id':_0x395d30[_0x1e3dd2(0x28b)]['id']+_0x53ddcd[_0x1e3dd2(0x22d)]})}):_0x395d30;})}):_0x2d9703;}function _0x4549ff(){var _0x41f349=_0x2d67da;return Math[_0x41f349(0x273)]()['toString'](0x24)[_0x41f349(0x248)](0x2,0x8);}_0x21a766[_0x2d67da(0x1f0)]=_0x2d67da(0x1fe);var _0xe2ce76={'tag':_0x2d67da(0x2e2),'attrs':{'xmlns':_0x2d67da(0x27a),'fill':'none','viewBox':_0x2d67da(0x287),'width':_0x2d67da(0x22b),'height':'1em'},'children':[{'tag':_0x2d67da(0x214),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2d67da(0x214),'attrs':{'fill':_0x2d67da(0x275),'d':_0x2d67da(0x222),'fillRule':_0x2d67da(0x203),'clipRule':_0x2d67da(0x203)}}]},_0x1f66cf=_0x2a881a[_0x2d67da(0x2a4)](function(_0x535ccc,_0x2f34ba){var _0x435978=_0x2d67da;return _0x2a881a[_0x435978(0x274)](_0x21a766,Object['assign']({},_0x535ccc,{'id':_0x435978(0x234),'ref':_0x2f34ba,'icon':_0xe2ce76}));});_0x1f66cf[_0x2d67da(0x1f0)]=_0x2d67da(0x204);class _0x563883 extends _0x4eaa93['Disposable']{constructor(){var _0x13b1b9=_0x2d67da;super(...arguments),_0xea0fb6(this,_0x13b1b9(0x2d3),new Set()),_0xea0fb6(this,_0x13b1b9(0x1fc),new Set());}[_0x2d67da(0x239)](_0x3e789d){var _0x29da28=_0x2d67da;return this[_0x29da28(0x2d3)][_0x29da28(0x284)](_0x3e789d),_0x4eaa93[_0x29da28(0x2da)](()=>this[_0x29da28(0x2d3)]['delete'](_0x3e789d));}[_0x2d67da(0x2ce)](_0x1ac734){var _0x294a66=_0x2d67da;return this[_0x294a66(0x1fc)]['add'](_0x1ac734),_0x4eaa93[_0x294a66(0x2da)](()=>this['_reporters'][_0x294a66(0x201)](_0x1ac734));}[_0x2d67da(0x242)](_0x1d34a9){var _0x1490a1=_0x2d67da;return this[_0x1490a1(0x2d3)][_0x1490a1(0x28a)](_0x1d34a9);}[_0x2d67da(0x280)](_0xf399bc){var _0x4fa6c1=_0x2d67da;return Array[_0x4fa6c1(0x271)](this[_0x4fa6c1(0x1fc)])[_0x4fa6c1(0x292)](_0x56ada6=>_0x56ada6(_0xf399bc));}}var _0x28c9c3=Object[_0x2d67da(0x210)],_0x562b05=(_0x54b435,_0x44087e,_0x4cdf9e,_0x12dc68)=>{for(var _0x3ed218=_0x12dc68>0x1?void 0x0:_0x12dc68?_0x28c9c3(_0x44087e,_0x4cdf9e):_0x44087e,_0x32d7c5=_0x54b435['length']-0x1,_0x4964d8;_0x32d7c5>=0x0;_0x32d7c5--)(_0x4964d8=_0x54b435[_0x32d7c5])&&(_0x3ed218=_0x4964d8(_0x3ed218)||_0x3ed218);return _0x3ed218;},_0x391c93=(_0x33ecc5,_0x2b4441)=>(_0x3f71ce,_0x2b1d0c)=>_0x2b4441(_0x3f71ce,_0x2b1d0c,_0x33ecc5);_0x2c83d3['LiveShareController']=class extends _0x4eaa93[_0x2d67da(0x20e)]{constructor(_0x3e8d77,_0x19e12c,_0x3d2ce8){var _0x48a9c1=_0x2d67da;super(),_0xea0fb6(this,'_entities',new Map()),(this[_0x48a9c1(0x237)]=_0x3e8d77,this[_0x48a9c1(0x1f9)]=_0x19e12c,this[_0x48a9c1(0x27f)]=_0x3d2ce8,this[_0x48a9c1(0x230)]());}async[_0x2d67da(0x207)](_0x379e62){var _0x45955e=_0x2d67da;return this[_0x45955e(0x23b)][_0x45955e(0x28a)](_0x379e62)||await this[_0x45955e(0x276)](_0x379e62),this[_0x45955e(0x23b)]['get'](_0x379e62);}[_0x2d67da(0x230)](){var _0x265755=_0x2d67da;this[_0x265755(0x237)][_0x265755(0x2b9)](_0x4eaa93[_0x265755(0x2e0)][_0x265755(0x269)])[_0x265755(0x208)](_0x4d9baf[_0x265755(0x2dd)](this[_0x265755(0x2d1)]))[_0x265755(0x28c)](async _0x71f133=>{var _0x4a47cb=_0x265755;const _0xd5cc75=_0x71f133[_0x4a47cb(0x253)]();this[_0x4a47cb(0x23b)][_0x4a47cb(0x28a)](_0xd5cc75)||this[_0x4a47cb(0x276)](_0xd5cc75);}),this[_0x265755(0x237)][_0x265755(0x296)](_0x4eaa93[_0x265755(0x2e0)]['UNIVER_SHEET'])[_0x265755(0x208)](_0x4d9baf[_0x265755(0x2dd)](this[_0x265755(0x2d1)]))['subscribe'](_0x5ef45d=>{var _0x15e335=_0x265755;const _0x41f53a=_0x5ef45d[_0x15e335(0x253)](),_0x5c13db=this[_0x15e335(0x23b)][_0x15e335(0x2d2)](_0x41f53a);_0x5c13db==null||_0x5c13db['dispose']();});}async[_0x2d67da(0x276)](_0x3766d0){var _0x69b8c3=_0x2d67da;const _0x5f01fa=await this['_collabSessionService'][_0x69b8c3(0x2e1)](_0x3766d0),_0x2aa471=this[_0x69b8c3(0x1f9)][_0x69b8c3(0x20f)](_0x2c83d3[_0x69b8c3(0x216)],_0x3766d0,_0x5f01fa);return _0x2aa471[_0x69b8c3(0x246)](),this['_entities'][_0x69b8c3(0x25d)](_0x3766d0,_0x2aa471),_0x2aa471;}},_0x2c83d3[_0x2d67da(0x29c)]=_0x562b05([_0x391c93(0x0,_0x4eaa93[_0x2d67da(0x1f1)]),_0x391c93(0x1,_0x4eaa93['Inject'](_0x4eaa93[_0x2d67da(0x1ec)])),_0x391c93(0x2,_0x4eaa93['Inject'](_0x4fa62d[_0x2d67da(0x259)]))],_0x2c83d3['LiveShareController']);var _0x187b3=(_0x3795b5=>(_0x3795b5['OFFLINE']=_0x2d67da(0x247),_0x3795b5[_0x2d67da(0x24d)]=_0x2d67da(0x2ae),_0x3795b5[_0x2d67da(0x277)]=_0x2d67da(0x2a1),_0x3795b5[_0x2d67da(0x262)]=_0x2d67da(0x2bc),_0x3795b5[_0x2d67da(0x25f)]=_0x2d67da(0x2c0),_0x3795b5))(_0x187b3||{});const _0x5ed555='SAME_OPERATION_SHARE_INTERVAL',_0x53f9ba=0xc8;_0x2c83d3[_0x2d67da(0x216)]=class extends _0x4eaa93['RxDisposable']{constructor(_0x1bc7a1,_0x58d6a7,_0x411906,_0x9479cf,_0x15d15a){var _0x425182=_0x2d67da;super(),_0xea0fb6(this,_0x425182(0x254),new _0x768fc5['BehaviorSubject'](_0x425182(0x2ae))),_0xea0fb6(this,_0x425182(0x24f),this['_status$'][_0x425182(0x2cb)]()),_0xea0fb6(this,'_init',!0x1),_0xea0fb6(this,_0x425182(0x2c8),null),_0xea0fb6(this,_0x425182(0x2c2),null),(this[_0x425182(0x265)]=_0x1bc7a1,this[_0x425182(0x2d4)]=_0x58d6a7,this[_0x425182(0x226)]=_0x411906,this['_liveShareService']=_0x9479cf,this['_commandService']=_0x15d15a);}get[_0x2d67da(0x25b)](){var _0x572aec=_0x2d67da;return this[_0x572aec(0x254)][_0x572aec(0x22f)]();}[_0x2d67da(0x20b)](){var _0x5bdfa5=_0x2d67da,_0x4a3731;(_0x4a3731=this[_0x5bdfa5(0x2c8)])==null||_0x4a3731[_0x5bdfa5(0x20b)](),this[_0x5bdfa5(0x254)][_0x5bdfa5(0x290)](_0x5bdfa5(0x2ae)),this[_0x5bdfa5(0x254)][_0x5bdfa5(0x2b5)]();}[_0x2d67da(0x246)](){var _0x2d5804=_0x2d67da;this[_0x2d5804(0x230)]||(this[_0x2d5804(0x230)]=!0x0,this['_collabSession'][_0x2d5804(0x27c)][_0x2d5804(0x208)](_0x4d9baf[_0x2d5804(0x2dd)](this[_0x2d5804(0x2d1)]))[_0x2d5804(0x28c)](_0x5b2644=>{var _0x111523=_0x2d5804;switch(_0x5b2644){case _0x4fa62d['SessionStatus']['OFFLINE']:this[_0x111523(0x278)]();break;case _0x4fa62d[_0x111523(0x2a9)][_0x111523(0x205)]:this[_0x111523(0x2a7)]();break;}}),this[_0x2d5804(0x2d4)]['event$'][_0x2d5804(0x208)](_0x4d9baf['takeUntil'](this[_0x2d5804(0x2d1)]))[_0x2d5804(0x28c)](_0x279bad=>{var _0xe248c7=_0x2d5804;const {eventID:_0x370872}=_0x279bad;switch(_0x370872){case _0xe00c00[_0xe248c7(0x25e)][_0xe248c7(0x2ac)]:this[_0xe248c7(0x21b)](_0x279bad);break;case _0xe00c00[_0xe248c7(0x25e)][_0xe248c7(0x2bd)]:this[_0xe248c7(0x220)](_0x279bad);break;case _0xe00c00[_0xe248c7(0x25e)][_0xe248c7(0x282)]:this[_0xe248c7(0x1ed)]();break;case _0xe00c00[_0xe248c7(0x25e)]['NEW_CHANGESETS']:this[_0xe248c7(0x2c3)](_0x279bad);break;}}));}[_0x2d67da(0x1ee)](){var _0x4dd35b=_0x2d67da;this[_0x4dd35b(0x2d4)][_0x4dd35b(0x23e)]({'eventID':_0xe00c00['CollaborationEvent'][_0x4dd35b(0x25a)],'data':{'unitID':this[_0x4dd35b(0x265)],'userID':this[_0x4dd35b(0x2d4)][_0x4dd35b(0x298)]()}},this[_0x4dd35b(0x265)]);}['stopPresenting'](){var _0x43a676=_0x2d67da;this[_0x43a676(0x25b)]===_0x43a676(0x2c0)&&(this[_0x43a676(0x254)][_0x43a676(0x290)]('idle'),this['_collabSession'][_0x43a676(0x23e)]({'eventID':_0xe00c00[_0x43a676(0x25e)][_0x43a676(0x282)],'data':{'unitID':this[_0x43a676(0x265)]}},this['_unitID']));}['startFollowing'](){var _0x3ef224=_0x2d67da;this[_0x3ef224(0x25b)]==='not-following'&&(this[_0x3ef224(0x254)][_0x3ef224(0x290)]('following'),this['_startFollowing']());}[_0x2d67da(0x270)](){var _0x83c5be=_0x2d67da;this[_0x83c5be(0x25b)]===_0x83c5be(0x2a1)&&this[_0x83c5be(0x2df)]();}['_handleNewHost'](_0x16e05b){var _0x3eecc7=_0x2d67da;const {presenter:_0x9d5893}=_0x16e05b[_0x3eecc7(0x29a)],_0x4104d3=this[_0x3eecc7(0x2d4)][_0x3eecc7(0x298)]();this['_presenter']=_0x9d5893,_0x9d5893===_0x4104d3?(this[_0x3eecc7(0x2df)](),this[_0x3eecc7(0x2b3)]()):this[_0x3eecc7(0x25b)]!==_0x3eecc7(0x2bc)&&(this[_0x3eecc7(0x221)](),this[_0x3eecc7(0x267)]());}[_0x2d67da(0x2db)](){var _0x1f8fb2=_0x2d67da;const _0x5a7a73={'eventID':_0xe00c00[_0x1f8fb2(0x25e)][_0x1f8fb2(0x26a)]};this[_0x1f8fb2(0x2d4)][_0x1f8fb2(0x23e)](_0x5a7a73,this['_unitID']);}[_0x2d67da(0x1ed)](){var _0x37cfef=_0x2d67da;this[_0x37cfef(0x2c2)]=null,this[_0x37cfef(0x25b)]!==_0x37cfef(0x2c0)&&this[_0x37cfef(0x2a6)]();}[_0x2d67da(0x2c3)](_0x2fb3bd){var _0x491c2b=_0x2d67da;if(this[_0x491c2b(0x25b)]===_0x491c2b(0x2a1)&&this[_0x491c2b(0x2c2)]===_0x2fb3bd[_0x491c2b(0x29a)][_0x491c2b(0x2ba)]){const _0x7f7ad6=_0xe00c00['parseProtocolChangeset'](_0x2fb3bd['data'])['mutations'][_0x491c2b(0x2ad)]()[_0x491c2b(0x1f4)](_0x4b75d9=>_0x4b75d9['id']===_0x160e81[_0x491c2b(0x258)]['id']);if(_0x7f7ad6){const _0x1ad56b=_0x7f7ad6[_0x491c2b(0x236)][_0x491c2b(0x24a)],_0x531fda=_0x7f7ad6[_0x491c2b(0x236)]['sheet']['id'];setTimeout(()=>{var _0x2d6b82=_0x491c2b;this[_0x2d6b82(0x217)][_0x2d6b82(0x293)](_0x160e81[_0x2d6b82(0x264)]['id'],{'unitId':_0x1ad56b,'subUnitId':_0x531fda},{'fromCollab':!0x0});});}}}[_0x2d67da(0x2b3)](){var _0x4a6448=_0x2d67da;this['_status$']['next'](_0x4a6448(0x2c0));const _0x50dc6f=new Map(),_0x1c739b=this[_0x4a6448(0x2c8)]=new _0x4eaa93[(_0x4a6448(0x2af))]();_0x1c739b[_0x4a6448(0x284)](_0x4eaa93[_0x4a6448(0x2da)](()=>{var _0x44ebf9=_0x4a6448;_0x50dc6f['forEach'](_0x28f038=>_0x28f038['complete']()),_0x50dc6f[_0x44ebf9(0x213)]();})),_0x1c739b[_0x4a6448(0x284)](this['_commandService'][_0x4a6448(0x2c5)](_0x262c7a=>{var _0x16bed1=_0x4a6448,_0xec96a6;if(_0x262c7a[_0x16bed1(0x223)]!==_0x4eaa93['CommandType']['OPERATION']||!this[_0x16bed1(0x20c)]['shouldShareOperation'](_0x262c7a['id']))return;const {id:_0x113d67}=_0x262c7a;let _0x3493fa;_0x50dc6f['has'](_0x113d67)?_0x3493fa=_0x50dc6f[_0x16bed1(0x2d2)](_0x113d67):(_0x3493fa=new _0x768fc5[(_0x16bed1(0x23a))](),_0x50dc6f[_0x16bed1(0x25d)](_0x113d67,_0x3493fa),_0x3493fa['pipe'](_0x4d9baf[_0x16bed1(0x1f5)]((_0xec96a6=this[_0x16bed1(0x226)][_0x16bed1(0x2b7)](_0x5ed555))!=null?_0xec96a6:_0x53f9ba,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5cea3f=>{var _0x3625e6=_0x16bed1;this['_collabSession']['send']({'eventID':_0xe00c00[_0x3625e6(0x25e)][_0x3625e6(0x2bd)],'data':{'unitID':this[_0x3625e6(0x265)],'operations':{[_0x5cea3f['id']]:{'id':_0x5cea3f['id'],'params':JSON[_0x3625e6(0x26d)](_0x5cea3f[_0x3625e6(0x236)])}}}},this['_unitID']);})),_0x3493fa[_0x16bed1(0x290)](_0x262c7a);})),this[_0x4a6448(0x20c)][_0x4a6448(0x280)](this['_unitID'])[_0x4a6448(0x2a0)](_0x23ac37=>this[_0x4a6448(0x2d4)][_0x4a6448(0x23e)]({'eventID':_0xe00c00[_0x4a6448(0x25e)][_0x4a6448(0x2bd)],'data':{'unitID':this[_0x4a6448(0x265)],'operations':{[_0x23ac37['id']]:{'id':_0x23ac37['id'],'params':JSON[_0x4a6448(0x26d)](_0x23ac37['params'])}}}},this['_unitID']));}[_0x2d67da(0x221)](){var _0x123fe2=_0x2d67da,_0x1eecdb;this[_0x123fe2(0x254)][_0x123fe2(0x290)](_0x123fe2(0x2ae)),(_0x1eecdb=this[_0x123fe2(0x2c8)])==null||_0x1eecdb['dispose'](),this[_0x123fe2(0x2c8)]=null;}[_0x2d67da(0x267)](){var _0x487d98=_0x2d67da,_0x29ffe5;(_0x29ffe5=this[_0x487d98(0x2c8)])==null||_0x29ffe5[_0x487d98(0x20b)](),this[_0x487d98(0x254)][_0x487d98(0x290)](_0x487d98(0x2a1));}[_0x2d67da(0x2a6)](){var _0x5e7b24=_0x2d67da,_0x165b8e;this[_0x5e7b24(0x254)][_0x5e7b24(0x290)]('idle'),(_0x165b8e=this['_commandDisposable'])==null||_0x165b8e[_0x5e7b24(0x20b)](),this[_0x5e7b24(0x2c8)]=null;}['_stopFollowing'](){var _0x1a087a=_0x2d67da,_0x36ed42;this[_0x1a087a(0x254)][_0x1a087a(0x290)](_0x1a087a(0x2bc)),(_0x36ed42=this[_0x1a087a(0x2c8)])==null||_0x36ed42[_0x1a087a(0x20b)]();}['_handleOperation'](_0x855ae8){var _0x151a23=_0x2d67da;if([_0x151a23(0x2c0),'not-following','offline'][_0x151a23(0x2c6)](this[_0x151a23(0x25b)])||!_0x855ae8['data'][_0x151a23(0x297)]||_0x855ae8[_0x151a23(0x29a)][_0x151a23(0x297)]===this[_0x151a23(0x2d4)][_0x151a23(0x298)]())return;this[_0x151a23(0x25b)]==='idle'&&this[_0x151a23(0x267)]();const _0x3a97d8=_0x855ae8['data'][_0x151a23(0x202)];Object[_0x151a23(0x27d)](_0x3a97d8)[_0x151a23(0x2a0)](_0x3bda62=>{var _0x504571=_0x151a23;this[_0x504571(0x217)][_0x504571(0x293)](_0x3bda62['id'],_0x3bda62[_0x504571(0x236)]?JSON[_0x504571(0x244)](_0x3bda62['params']):null,{'fromCollab':!0x0});});}[_0x2d67da(0x278)](){var _0x51ed3b=_0x2d67da,_0x386fde;this[_0x51ed3b(0x254)]['next'](_0x51ed3b(0x247)),(_0x386fde=this[_0x51ed3b(0x2c8)])==null||_0x386fde[_0x51ed3b(0x20b)]();}[_0x2d67da(0x2a7)](){var _0xae9e79=_0x2d67da;this['_status$'][_0xae9e79(0x290)]('idle'),this[_0xae9e79(0x2db)]();}},_0x2c83d3[_0x2d67da(0x216)]=_0x562b05([_0x391c93(0x2,_0x4eaa93[_0x2d67da(0x1f6)]),_0x391c93(0x3,_0x4eaa93[_0x2d67da(0x2e3)](_0x563883)),_0x391c93(0x4,_0x4eaa93['ICommandService'])],_0x2c83d3[_0x2d67da(0x216)]);function _0x406de4(){var _0x4288ab=_0x2d67da;const _0x404d84=_0x25183f[_0x4288ab(0x1f2)](_0x2c83d3[_0x4288ab(0x29c)]),_0x5580e1=_0x25183f[_0x4288ab(0x1f2)](_0x4eaa93[_0x4288ab(0x1f1)]),_0x41f25d=_0x25183f['useObservable'](()=>_0x5580e1[_0x4288ab(0x1fd)](_0x4eaa93[_0x4288ab(0x2e0)][_0x4288ab(0x269)]),void 0x0,!0x1,[]),[_0x57966a,_0x2bf1f4]=_0x2a881a['useState'](null),[_0x25545e,_0x2d9b30]=_0x2a881a['useState'](_0x187b3[_0x4288ab(0x24d)]),_0x2cf753=_0x2a881a[_0x4288ab(0x245)](null);return _0x2a881a[_0x4288ab(0x255)](()=>(_0x41f25d&&_0x404d84[_0x4288ab(0x207)](_0x41f25d['getUnitId']())[_0x4288ab(0x243)](_0x3d620f=>{var _0xbf572f=_0x4288ab;_0x2bf1f4(_0x3d620f),_0x2cf753['current']=_0x3d620f[_0xbf572f(0x24f)]['subscribe'](_0x1d741f=>{_0x2d9b30(_0x1d741f);});}),()=>{var _0x221d7c=_0x4288ab,_0x1198ca;(_0x1198ca=_0x2cf753[_0x221d7c(0x2d5)])==null||_0x1198ca[_0x221d7c(0x238)](),_0x2cf753[_0x221d7c(0x2d5)]=null;}),[_0x41f25d,_0x404d84]),_0x57966a?_0x551abb[_0x4288ab(0x295)](_0x291e19[_0x4288ab(0x209)],{'align':_0x4288ab(0x219),'disabled':_0x25545e===_0x187b3['OFFLINE'],'className':_0x4288ab(0x288),'overlay':_0x551abb[_0x4288ab(0x295)](_0x2b47ed,{'status':_0x25545e,'coordinator':_0x57966a}),'children':_0x551abb[_0x4288ab(0x295)](_0x4288ab(0x22a),{'className':_0x291e19[_0x4288ab(0x21f)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x25545e===_0x187b3[_0x4288ab(0x252)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25545e!==_0x187b3[_0x4288ab(0x252)]}),'type':_0x4288ab(0x22a),'children':_0x551abb[_0x4288ab(0x295)](_0x1f66cf,{'className':_0x4288ab(0x25c)})})}):null;}function _0x2b47ed(_0x1b5ecb){var _0x27ee7=_0x2d67da;const {status:_0x32add9,coordinator:_0x575003}=_0x1b5ecb;switch(_0x32add9){case _0x187b3[_0x27ee7(0x24d)]:return _0x551abb['jsx'](_0x54668d,{'coordinator':_0x575003});case _0x187b3[_0x27ee7(0x277)]:return _0x551abb['jsx'](_0x4f4354,{'coordinator':_0x575003});case _0x187b3['NOT_FOLLOWING']:return _0x551abb[_0x27ee7(0x295)](_0x2ba870,{'coordinator':_0x575003});case _0x187b3[_0x27ee7(0x252)]:return _0x551abb[_0x27ee7(0x295)](_0x4db01a,{});case _0x187b3['PRESENTING']:return _0x551abb['jsx'](_0x3e74c8,{'coordinator':_0x575003});default:return null;}}function _0x54668d(_0x1813d8){var _0xa6a19=_0x2d67da;const {coordinator:_0xad0a2a}=_0x1813d8;return _0x551abb[_0xa6a19(0x26c)](_0x551abb[_0xa6a19(0x21c)],{'children':[_0x551abb['jsx']('div',{'className':_0xa6a19(0x2be),'children':'Present\x20this\x20document'}),_0x551abb[_0xa6a19(0x295)](_0x291e19[_0xa6a19(0x21e)],{'onClick':()=>_0xad0a2a[_0xa6a19(0x1ee)](),'children':_0xa6a19(0x26b)})]});}function _0x4f4354(_0x3ca517){var _0x29c0f8=_0x2d67da;const {coordinator:_0x356e0a}=_0x3ca517;return _0x551abb[_0x29c0f8(0x26c)](_0x551abb['Fragment'],{'children':[_0x551abb['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29c0f8(0x2b2)}),_0x551abb[_0x29c0f8(0x295)](_0x291e19[_0x29c0f8(0x21e)],{'onClick':()=>_0x356e0a[_0x29c0f8(0x270)](),'children':'Stop\x20following'})]});}function _0x2ba870(_0x140dc4){var _0x281395=_0x2d67da;const {coordinator:_0x30f89f}=_0x140dc4;return _0x551abb[_0x281395(0x26c)](_0x551abb['Fragment'],{'children':[_0x551abb['jsx'](_0x281395(0x286),{'className':_0x281395(0x2be),'children':_0x281395(0x22e)}),_0x551abb[_0x281395(0x295)](_0x291e19['Button'],{'variant':'text','onClick':()=>_0x30f89f['startFollowing'](),'children':_0x281395(0x2de)})]});}function _0x3e74c8(_0x4a6b9b){var _0x434da6=_0x2d67da;const {coordinator:_0x5d5bb9}=_0x4a6b9b;return _0x551abb[_0x434da6(0x26c)](_0x551abb['Fragment'],{'children':[_0x551abb['jsx'](_0x434da6(0x286),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x434da6(0x26f)}),_0x551abb[_0x434da6(0x295)](_0x291e19[_0x434da6(0x21e)],{'variant':_0x434da6(0x2cf),'onClick':()=>_0x5d5bb9[_0x434da6(0x235)](),'children':_0x434da6(0x2aa)})]});}function _0x4db01a(){var _0x1f2d49=_0x2d67da;return _0x551abb[_0x1f2d49(0x295)](_0x551abb[_0x1f2d49(0x21c)],{'children':_0x1f2d49(0x211)});}var _0x533a63=Object[_0x2d67da(0x210)],_0x1bce4c=(_0x110764,_0x595334,_0x12c0a2,_0x24d851)=>{var _0x5100d3=_0x2d67da;for(var _0x1542cb=_0x24d851>0x1?void 0x0:_0x24d851?_0x533a63(_0x595334,_0x12c0a2):_0x595334,_0x347746=_0x110764[_0x5100d3(0x215)]-0x1,_0x3c8918;_0x347746>=0x0;_0x347746--)(_0x3c8918=_0x110764[_0x347746])&&(_0x1542cb=_0x3c8918(_0x1542cb)||_0x1542cb);return _0x1542cb;},_0x4d7c79=(_0x17f150,_0xa264fc)=>(_0x4eaea9,_0x3f55ca)=>_0xa264fc(_0x4eaea9,_0x3f55ca,_0x17f150);_0x2c83d3['DesktopLiveShareController']=class extends _0x4eaa93[_0x2d67da(0x27e)]{constructor(_0x1802b9,_0x4514da){var _0x3f7954=_0x2d67da;super(),this[_0x3f7954(0x1f9)]=_0x1802b9,this['_uiPartsService']=_0x4514da,this[_0x3f7954(0x227)]();}['_mountLiveShare'](){var _0x466c23=_0x2d67da;this[_0x466c23(0x2a5)](this[_0x466c23(0x2b6)][_0x466c23(0x2b8)](_0x25183f[_0x466c23(0x1ff)][_0x466c23(0x256)],()=>_0x25183f[_0x466c23(0x289)](_0x406de4,this[_0x466c23(0x1f9)])));}},_0x2c83d3[_0x2d67da(0x28f)]=_0x1bce4c([_0x4d7c79(0x0,_0x4eaa93[_0x2d67da(0x2e3)](_0x4eaa93[_0x2d67da(0x1ec)])),_0x4d7c79(0x1,_0x25183f['IUIPartsService'])],_0x2c83d3[_0x2d67da(0x28f)]);const _0x2dc1a9=_0x2d67da(0x268),_0x7a3b2a={};var _0x584fda=Object[_0x2d67da(0x210)],_0x18cd16=(_0x4a8f7b,_0x2b7fde,_0x21f538,_0x37b97f)=>{for(var _0xb87105=_0x37b97f>0x1?void 0x0:_0x37b97f?_0x584fda(_0x2b7fde,_0x21f538):_0x2b7fde,_0x281db1=_0x4a8f7b['length']-0x1,_0x322b1a;_0x281db1>=0x0;_0x281db1--)(_0x322b1a=_0x4a8f7b[_0x281db1])&&(_0xb87105=_0x322b1a(_0xb87105)||_0xb87105);return _0xb87105;},_0x3b9f80=(_0x1c5266,_0x2bc14e)=>(_0x5ac3b6,_0xcf93dd)=>_0x2bc14e(_0x5ac3b6,_0xcf93dd,_0x1c5266);let _0x2ec39c=class extends _0x4eaa93['Disposable']{constructor(_0x478aa0){var _0x16e23d=_0x2d67da;super(),this[_0x16e23d(0x20c)]=_0x478aa0,this['_init']();}['_init'](){var _0x5b78b1=_0x2d67da;[_0x511a5b['SetZoomRatioOperation']['id'],_0x511a5b[_0x5b78b1(0x240)]['id'],_0x160e81[_0x5b78b1(0x264)]['id']][_0x5b78b1(0x2a0)](_0x532488=>{var _0x282d01=_0x5b78b1;this['disposeWithMe'](this[_0x282d01(0x20c)][_0x282d01(0x239)](_0x532488));});}};_0x2ec39c=_0x18cd16([_0x3b9f80(0x0,_0x4eaa93[_0x2d67da(0x2e3)](_0x563883))],_0x2ec39c);var _0x211f5f=Object[_0x2d67da(0x2bb)],_0x3097e1=Object[_0x2d67da(0x210)],_0x143d95=(_0x48c21c,_0x186196,_0x2387bc)=>_0x186196 in _0x48c21c?_0x211f5f(_0x48c21c,_0x186196,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2387bc}):_0x48c21c[_0x186196]=_0x2387bc,_0x373687=(_0x17e8f3,_0x5152aa,_0xa22caa,_0x57021a)=>{var _0x38ab02=_0x2d67da;for(var _0xc45c40=_0x57021a>0x1?void 0x0:_0x57021a?_0x3097e1(_0x5152aa,_0xa22caa):_0x5152aa,_0x49480a=_0x17e8f3[_0x38ab02(0x215)]-0x1,_0x6b2c59;_0x49480a>=0x0;_0x49480a--)(_0x6b2c59=_0x17e8f3[_0x49480a])&&(_0xc45c40=_0x6b2c59(_0xc45c40)||_0xc45c40);return _0xc45c40;},_0x27bbbf=(_0x3298a6,_0x27c76c)=>(_0x39e6a8,_0x286161)=>_0x27c76c(_0x39e6a8,_0x286161,_0x3298a6),_0x22ccb0=(_0x29e578,_0x1957e1,_0x850334)=>_0x143d95(_0x29e578,typeof _0x1957e1!=_0x2d67da(0x200)?_0x1957e1+'':_0x1957e1,_0x850334);const _0x215fcc=_0x2d67da(0x2a2);_0x2c83d3[_0x2d67da(0x23d)]=class extends _0x4eaa93[_0x2d67da(0x1f8)]{constructor(_0x36bba4=_0x7a3b2a,_0x26c5e0,_0x2bdf9e){var _0x5cf17d=_0x2d67da;super(),this[_0x5cf17d(0x212)]=_0x36bba4,this[_0x5cf17d(0x1f9)]=_0x26c5e0,this[_0x5cf17d(0x226)]=_0x2bdf9e;const {..._0x32f058}=_0x4eaa93[_0x5cf17d(0x21a)]({},_0x7a3b2a,this[_0x5cf17d(0x212)]);this[_0x5cf17d(0x226)][_0x5cf17d(0x28e)](_0x2dc1a9,_0x32f058);}[_0x2d67da(0x260)](){var _0x5ad0b3=_0x2d67da;_0x4eaa93['registerDependencies'](this[_0x5ad0b3(0x1f9)],_0x4eaa93[_0x5ad0b3(0x26e)]([[_0x563883],[_0x2c83d3[_0x5ad0b3(0x29c)]],[_0x2ec39c],[_0x2c83d3[_0x5ad0b3(0x28f)]]],this[_0x5ad0b3(0x212)][_0x5ad0b3(0x218)])),_0x4eaa93[_0x5ad0b3(0x2bf)](this['_injector'],[[_0x2ec39c]]);}[_0x2d67da(0x2b0)](){var _0x112994=_0x2d67da;_0x4eaa93['touchDependencies'](this[_0x112994(0x1f9)],[[_0x2c83d3[_0x112994(0x28f)]]]);}},_0x22ccb0(_0x2c83d3[_0x2d67da(0x23d)],_0x2d67da(0x223),_0x4eaa93[_0x2d67da(0x2e0)]['UNIVER_UNKNOWN']),_0x22ccb0(_0x2c83d3[_0x2d67da(0x23d)],'pluginName',_0x215fcc),_0x2c83d3[_0x2d67da(0x23d)]=_0x373687([_0x4eaa93[_0x2d67da(0x2a3)](_0x4fa62d['UniverCollaborationClientPlugin']),_0x27bbbf(0x1,_0x4eaa93[_0x2d67da(0x2e3)](_0x4eaa93[_0x2d67da(0x1ec)])),_0x27bbbf(0x2,_0x4eaa93[_0x2d67da(0x1f6)])],_0x2c83d3['UniverLiveSharePlugin']),_0x2c83d3[_0x2d67da(0x28d)]=_0x406de4,_0x2c83d3[_0x2d67da(0x29d)]=_0x563883,_0x2c83d3[_0x2d67da(0x2ca)]=_0x187b3,Object['defineProperty'](_0x2c83d3,Symbol[_0x2d67da(0x2a8)],{'value':_0x2d67da(0x232)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.10-nightly.
|
|
3
|
+
"version": "0.10.10-nightly.202510180256",
|
|
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.9",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.10-nightly.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets": "0.10.10-nightly.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets-ui": "0.10.10-nightly.
|
|
56
|
-
"@univerjs
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.10.10-nightly.202510180256",
|
|
51
|
+
"@univerjs-pro/collaboration": "0.10.10-nightly.202510180256",
|
|
52
|
+
"@univerjs/core": "0.10.10-nightly.202510180256",
|
|
53
|
+
"@univerjs/sheets": "0.10.10-nightly.202510180256",
|
|
54
|
+
"@univerjs/design": "0.10.10-nightly.202510180256",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.10-nightly.202510180256",
|
|
56
|
+
"@univerjs/ui": "0.10.10-nightly.202510180256"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
64
|
"vite": "^7.1.10",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.10.10",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|