@univerjs-pro/live-share 0.6.7 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x2eb377=_0xefd6;(function(_0x3c5937,_0x277d23){var _0x23570e=_0xefd6,_0x115fd7=_0x3c5937();while(!![]){try{var _0x1ca2c3=-parseInt(_0x23570e(0x9d))/0x1+-parseInt(_0x23570e(0x147))/0x2*(-parseInt(_0x23570e(0xe5))/0x3)+-parseInt(_0x23570e(0x15a))/0x4+-parseInt(_0x23570e(0xa1))/0x5*(-parseInt(_0x23570e(0x14b))/0x6)+-parseInt(_0x23570e(0xfa))/0x7+parseInt(_0x23570e(0x158))/0x8+-parseInt(_0x23570e(0xe2))/0x9;if(_0x1ca2c3===_0x277d23)break;else _0x115fd7['push'](_0x115fd7['shift']());}catch(_0x3bdd89){_0x115fd7['push'](_0x115fd7['shift']());}}}(_0x202c,0xb83f6));var U=Object['defineProperty'],F=(_0x1e839e,_0x1f2cdc,_0x2c1711)=>_0x1f2cdc in _0x1e839e?U(_0x1e839e,_0x1f2cdc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c1711}):_0x1e839e[_0x1f2cdc]=_0x2c1711,v=(_0x1504de,_0x521efc,_0x393b07)=>F(_0x1504de,typeof _0x521efc!=_0x2eb377(0x135)?_0x521efc+'':_0x521efc,_0x393b07);Object[_0x2eb377(0xb5)](exports,Symbol['toStringTag'],{'value':_0x2eb377(0x13b)});const m=require(_0x2eb377(0xef)),o=require(_0x2eb377(0x163)),C=require(_0x2eb377(0x91)),D=require(_0x2eb377(0x12e)),p=require(_0x2eb377(0x138)),l=require(_0x2eb377(0x11a)),g=require(_0x2eb377(0x13a)),f=require(_0x2eb377(0x93)),_=require(_0x2eb377(0x10b)),L=require('rxjs'),b=require(_0x2eb377(0x141)),$=_0x2eb377(0xab),x={};class E extends o[_0x2eb377(0x111)]{constructor(){var _0x335fb4=_0x2eb377;super(...arguments),v(this,_0x335fb4(0xae),new Set()),v(this,_0x335fb4(0x99),new Set());}[_0x2eb377(0xcf)](_0x356385){var _0x4d4a9e=_0x2eb377;return this['_sharedOperations'][_0x4d4a9e(0xfe)](_0x356385),o[_0x4d4a9e(0x153)](()=>this[_0x4d4a9e(0xae)][_0x4d4a9e(0xd2)](_0x356385));}[_0x2eb377(0xe0)](_0x1d6a21){var _0x2e8d01=_0x2eb377;return this['_reporters'][_0x2e8d01(0xfe)](_0x1d6a21),o[_0x2e8d01(0x153)](()=>this['_reporters']['delete'](_0x1d6a21));}[_0x2eb377(0x169)](_0x4961ee){var _0x18151=_0x2eb377;return this['_sharedOperations'][_0x18151(0x156)](_0x4961ee);}['getInitialStates'](_0x4e0053){var _0x332b66=_0x2eb377;return Array[_0x332b66(0xa7)](this[_0x332b66(0x99)])[_0x332b66(0x96)](_0x44ef41=>_0x44ef41(_0x4e0053));}}function _0x202c(){var _0x5b00da=['init','stopPresenting','_handleOffline','_commandService','createElement','forEach','DependentOn','url(#$1','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','small','useObservable','sessionStatus$','Present\x20this\x20document','UNIVER_UNKNOWN','registerSharedOperation','takeUntil','LIVESHARE_FETCH_OPERATIONS','delete','UniverIcon','SetWorksheetActiveOperation','NOT_FOLLOWING','getInitialStates','UNIVER_SHEET','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getOwnPropertySymbols','merge','LIVESHARE_REQUEST_HOST','_status$','univer-size-4','memberID','concat','registerInitialStateReporter','includes','919206dNLdZb','complete','useDependency','10221mrMnNT','OFFLINE','useRef','stringify','Fragment','_fetchOperations','_startLiveShareCoordinator','hasOwnProperty','xlink:href','getTypeOfUnitDisposed$','@univerjs-pro/collaboration-client','children','send','dispose','_collabSessionService','_mountLiveShare','UniverInstanceType','_beIdle','status$','Button','LiveShare','9176958MKxzQQ','div','get','LiveShareSingle','add','throttleTime','jsx','ICommandService','type','stopFollowing','Dropdown','_init','Injector','LiveShareService','_stopFollowing','_startPresenting','jsxs','@univerjs-pro/collaboration','_uiPartsService','defIds','entries','current','_status','Disposable','dispose$','getCurrentTypeOfUnit$','tryStartPresenting','UNIVER_LIVE_SHARE_PLUGIN','live-share-single','apply','HEADER_MENU','getMemberID','react/jsx-runtime','presenting','following','SetScrollOperation','0\x200\x2016\x2016','useState','CollaborationSessionService','_handleNewHost','_unitID','disposeWithMe','path','toString','PRESENTING','unitId','_univerInstanceService','executeCommand','1em','asObservable','SessionStatus','evenodd','@univerjs/sheets-ui','mask','IUniverInstanceService','string','attrs','RxDisposable','getTypeOfUnitAdded$','symbol','_collabSession','You\x27are\x20offline.','@univerjs/ui','You\x27re\x20following\x20the\x20presenter','@univerjs/design','Module','subscribe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getConfig','IDLE','button','rxjs/operators','defs','substring','colorChannel1','onStarting','FOLLOWING','562rZnqLH','LIVESHARE_OPERATION','getOwnPropertyDescriptor','startFollowing','6YslKxl','idSuffix','OPERATION','Plugin','_configService','getUnitId','displayName','none','toDisposable','prototype','clsx','has','indexOf','11972952iQFWtI','_presenter','380500tgkKkX','assign','_handleOperation','length','useEffect','extend','end','function','fill','@univerjs/core','tag','getLiveShareCoordinator','_config','_injector','params','shouldShareOperation','LiveShareCoordinator','not-following','values','className','UniverLiveSharePlugin','onCommandExecuted','onRendered','Subject','setConfig','_handleOnline','You\x27re\x20presenting\x20the\x20document','@univerjs/sheets','touchDependencies','react','ONLINE','default','map','presenter','LIVESHARE_TERMINATE','_reporters','Start','pipe','LiveShareController','536618yNZTbV','_startFollowing','svg','data','1727815GuomiU','offline','clear','text','override','set','from','_stopPresenting','mutations','parseProtocolChangeset','live-share.config','_entities','_handleNewChangeSets','_sharedOperations','sheet','InsertSheetMutation','univerjs-icon\x20univerjs-icon-','DesktopLiveShareController','CollaborationEvent','next','defineProperty','NEW_CHANGESETS','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','replace','_liveShareService','createInstance','forwardRef','idle','_handleTerminate','_commandDisposable','Inject','IConfigService'];_0x202c=function(){return _0x5b00da;};return _0x202c();}var H=Object[_0x2eb377(0x149)],V=(_0x1eeb1b,_0x42a0ec,_0x91053,_0x4dcbfb)=>{for(var _0x49dee5=_0x4dcbfb>0x1?void 0x0:_0x4dcbfb?H(_0x42a0ec,_0x91053):_0x42a0ec,_0x473372=_0x1eeb1b['length']-0x1,_0x16ef5c;_0x473372>=0x0;_0x473372--)(_0x16ef5c=_0x1eeb1b[_0x473372])&&(_0x49dee5=_0x16ef5c(_0x49dee5)||_0x49dee5);return _0x49dee5;},k=(_0x33d56c,_0x32adac)=>(_0x14a78c,_0xcc2aff)=>_0x32adac(_0x14a78c,_0xcc2aff,_0x33d56c);let O=class extends o['Disposable']{constructor(_0x30d2f2){var _0x4d4199=_0x2eb377;super(),this[_0x4d4199(0xb9)]=_0x30d2f2,this[_0x4d4199(0x105)]();}[_0x2eb377(0x105)](){var _0x5949f0=_0x2eb377;[D['SetZoomRatioOperation']['id'],D[_0x5949f0(0x11d)]['id'],C[_0x5949f0(0xd4)]['id']][_0x5949f0(0xc6)](_0x41341d=>{var _0x5bf6ec=_0x5949f0;this[_0x5bf6ec(0x123)](this[_0x5bf6ec(0xb9)][_0x5bf6ec(0xcf)](_0x41341d));});}};O=V([k(0x0,o[_0x2eb377(0xbf)](E))],O);var u=function(){var _0x48e4bd=_0x2eb377;return u=Object['assign']||function(_0x589a94){var _0x22493a=_0xefd6;for(var _0x3e3dcd,_0x23f84d=0x1,_0x482e4f=arguments[_0x22493a(0x15d)];_0x23f84d<_0x482e4f;_0x23f84d++){_0x3e3dcd=arguments[_0x23f84d];for(var _0x22d95b in _0x3e3dcd)Object[_0x22493a(0x154)][_0x22493a(0xec)]['call'](_0x3e3dcd,_0x22d95b)&&(_0x589a94[_0x22d95b]=_0x3e3dcd[_0x22d95b]);}return _0x589a94;},u[_0x48e4bd(0x117)](this,arguments);},M=function(_0xe9e13d,_0x29d9f6){var _0x370981=_0x2eb377,_0x5544d3={};for(var _0x1d3d2a in _0xe9e13d)Object[_0x370981(0x154)]['hasOwnProperty']['call'](_0xe9e13d,_0x1d3d2a)&&_0x29d9f6[_0x370981(0x157)](_0x1d3d2a)<0x0&&(_0x5544d3[_0x1d3d2a]=_0xe9e13d[_0x1d3d2a]);if(_0xe9e13d!=null&&typeof Object['getOwnPropertySymbols']==_0x370981(0x161)){for(var _0x15acad=0x0,_0x1d3d2a=Object[_0x370981(0xd9)](_0xe9e13d);_0x15acad<_0x1d3d2a[_0x370981(0x15d)];_0x15acad++)_0x29d9f6[_0x370981(0x157)](_0x1d3d2a[_0x15acad])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0xe9e13d,_0x1d3d2a[_0x15acad])&&(_0x5544d3[_0x1d3d2a[_0x15acad]]=_0xe9e13d[_0x1d3d2a[_0x15acad]]);}return _0x5544d3;},j=f[_0x2eb377(0xbb)](function(_0x257921,_0x183404){var _0x58a03d=_0x2eb377,_0x362054=_0x257921['icon'],_0x22ed34=_0x257921['id'],_0x520fa8=_0x257921[_0x58a03d(0x89)],_0x42b296=_0x257921[_0x58a03d(0x15f)],_0x4d6cce=M(_0x257921,['icon','id','className',_0x58a03d(0x15f)]),_0x31dcde=_0x58a03d(0xb1)[_0x58a03d(0xdf)](_0x22ed34,'\x20')['concat'](_0x520fa8||'')['trim'](),_0x3fda85=f['useRef']('_'[_0x58a03d(0xdf)](G()));return y(_0x362054,''[_0x58a03d(0xdf)](_0x22ed34),{'defIds':_0x362054[_0x58a03d(0x10d)],'idSuffix':_0x3fda85[_0x58a03d(0x10f)]},u({'ref':_0x183404,'className':_0x31dcde},_0x4d6cce),_0x42b296);});function y(_0x1c1e70,_0x2ea6b2,_0x2ec7ce,_0x473200,_0x1ca642){var _0xdd2563=_0x2eb377;return f[_0xdd2563(0xc5)](_0x1c1e70['tag'],u(u({'key':_0x2ea6b2},q(_0x1c1e70,_0x2ec7ce,_0x1ca642)),_0x473200),(W(_0x1c1e70,_0x2ec7ce)[_0xdd2563(0xf0)]||[])[_0xdd2563(0x96)](function(_0x1bdfe4,_0x38e562){var _0x1056ab=_0xdd2563;return y(_0x1bdfe4,''[_0x1056ab(0xdf)](_0x2ea6b2,'-')['concat'](_0x1c1e70[_0x1056ab(0x164)],'-')[_0x1056ab(0xdf)](_0x38e562),_0x2ec7ce,void 0x0,_0x1ca642);}));}function q(_0x39268e,_0x15f72e,_0x37226e){var _0x88ce41=_0x2eb377,_0x56b017=u({},_0x39268e[_0x88ce41(0x132)]);_0x37226e!=null&&_0x37226e[_0x88ce41(0x144)]&&_0x56b017[_0x88ce41(0x162)]===_0x88ce41(0x144)&&(_0x56b017[_0x88ce41(0x162)]=_0x37226e['colorChannel1']),_0x39268e[_0x88ce41(0x164)]===_0x88ce41(0x12f)&&_0x56b017['id']&&(_0x56b017['id']=_0x56b017['id']+_0x15f72e[_0x88ce41(0x14c)]),Object[_0x88ce41(0x10e)](_0x56b017)['forEach'](function(_0x5e1122){var _0x5d1bb4=_0x88ce41,_0x1a19e5=_0x5e1122[0x0],_0xbb79af=_0x5e1122[0x1];_0x1a19e5===_0x5d1bb4(0x12f)&&typeof _0xbb79af==_0x5d1bb4(0x131)&&(_0x56b017[_0x1a19e5]=_0xbb79af[_0x5d1bb4(0xb8)](/url\(#(.*)\)/,_0x5d1bb4(0xc8)[_0x5d1bb4(0xdf)](_0x15f72e[_0x5d1bb4(0x14c)],')')));});var _0x419d4c=_0x15f72e[_0x88ce41(0x10d)];return!_0x419d4c||_0x419d4c['length']===0x0||(_0x39268e[_0x88ce41(0x164)]==='use'&&_0x56b017[_0x88ce41(0xed)]&&(_0x56b017[_0x88ce41(0xed)]=_0x56b017[_0x88ce41(0xed)]+_0x15f72e[_0x88ce41(0x14c)]),Object[_0x88ce41(0x10e)](_0x56b017)[_0x88ce41(0xc6)](function(_0x3e475a){var _0x448d13=_0x88ce41,_0x295468=_0x3e475a[0x0],_0x4790f3=_0x3e475a[0x1];typeof _0x4790f3==_0x448d13(0x131)&&(_0x56b017[_0x295468]=_0x4790f3[_0x448d13(0xb8)](/url\(#(.*)\)/,_0x448d13(0xc8)['concat'](_0x15f72e[_0x448d13(0x14c)],')')));})),_0x56b017;}function W(_0x4094f1,_0x1e8b69){var _0x133b88=_0x2eb377,_0x5e6e81,_0x468ba4=_0x1e8b69[_0x133b88(0x10d)];return!_0x468ba4||_0x468ba4[_0x133b88(0x15d)]===0x0?_0x4094f1:_0x4094f1[_0x133b88(0x164)]===_0x133b88(0x142)&&(!((_0x5e6e81=_0x4094f1[_0x133b88(0xf0)])===null||_0x5e6e81===void 0x0)&&_0x5e6e81[_0x133b88(0x15d)])?u(u({},_0x4094f1),{'children':_0x4094f1['children'][_0x133b88(0x96)](function(_0xb403cf){var _0x45877e=_0x133b88;return typeof _0xb403cf['attrs']['id']==_0x45877e(0x131)&&_0x468ba4&&_0x468ba4[_0x45877e(0x157)](_0xb403cf['attrs']['id'])>-0x1?u(u({},_0xb403cf),{'attrs':u(u({},_0xb403cf[_0x45877e(0x132)]),{'id':_0xb403cf[_0x45877e(0x132)]['id']+_0x1e8b69[_0x45877e(0x14c)]})}):_0xb403cf;})}):_0x4094f1;}function G(){var _0x4d8a32=_0x2eb377;return Math['random']()[_0x4d8a32(0x125)](0x24)[_0x4d8a32(0x143)](0x2,0x8);}j[_0x2eb377(0x151)]=_0x2eb377(0xd3);var B={'tag':_0x2eb377(0x9f),'attrs':{'fill':_0x2eb377(0x152),'viewBox':_0x2eb377(0x11e),'width':'1em','height':_0x2eb377(0x12a)},'children':[{'tag':_0x2eb377(0x124),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x2eb377(0x124),'attrs':{'fill':'currentColor','d':_0x2eb377(0xb7),'fillRule':_0x2eb377(0x12d),'clipRule':'evenodd'}}]},P=f[_0x2eb377(0xbb)](function(_0x1d1f9a,_0x56c956){var _0x490b7b=_0x2eb377;return f[_0x490b7b(0xc5)](j,Object[_0x490b7b(0x15b)]({},_0x1d1f9a,{'id':_0x490b7b(0x116),'ref':_0x56c956,'icon':B}));});P[_0x2eb377(0x151)]=_0x2eb377(0xfd);var Y=Object['getOwnPropertyDescriptor'],R=(_0x108e2d,_0x19cb02,_0x9246b4,_0x3b3e11)=>{for(var _0x47277a=_0x3b3e11>0x1?void 0x0:_0x3b3e11?Y(_0x19cb02,_0x9246b4):_0x19cb02,_0x34adbc=_0x108e2d['length']-0x1,_0x5e3b19;_0x34adbc>=0x0;_0x34adbc--)(_0x5e3b19=_0x108e2d[_0x34adbc])&&(_0x47277a=_0x5e3b19(_0x47277a)||_0x47277a);return _0x47277a;},S=(_0x246c77,_0x5b6f2d)=>(_0x1508a7,_0x439d20)=>_0x5b6f2d(_0x1508a7,_0x439d20,_0x246c77);exports['LiveShareController']=class extends o[_0x2eb377(0x133)]{constructor(_0x3d32ef,_0x3fea13,_0x3d30a9){var _0x52c02e=_0x2eb377;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3d32ef,this[_0x52c02e(0x167)]=_0x3fea13,this[_0x52c02e(0xf3)]=_0x3d30a9,this['_init']());}async['getLiveShareCoordinator'](_0xc66a7a){var _0x3ca677=_0x2eb377;return this[_0x3ca677(0xac)][_0x3ca677(0x156)](_0xc66a7a)||await this['_startLiveShareCoordinator'](_0xc66a7a),this[_0x3ca677(0xac)][_0x3ca677(0xfc)](_0xc66a7a);}[_0x2eb377(0x105)](){var _0x422191=_0x2eb377;this[_0x422191(0x128)][_0x422191(0x134)](o[_0x422191(0xf5)][_0x422191(0xd7)])[_0x422191(0x9b)](b[_0x422191(0xd0)](this[_0x422191(0x112)]))[_0x422191(0x13c)](async _0x5c4f4b=>{var _0x210251=_0x422191;const _0x1dae5f=_0x5c4f4b[_0x210251(0x150)]();this[_0x210251(0xac)]['has'](_0x1dae5f)||this['_startLiveShareCoordinator'](_0x1dae5f);}),this[_0x422191(0x128)][_0x422191(0xee)](o[_0x422191(0xf5)][_0x422191(0xd7)])[_0x422191(0x9b)](b[_0x422191(0xd0)](this[_0x422191(0x112)]))[_0x422191(0x13c)](_0x1166d5=>{var _0x2c7569=_0x422191;const _0x217c01=_0x1166d5['getUnitId'](),_0x1ae85e=this[_0x2c7569(0xac)][_0x2c7569(0xfc)](_0x217c01);_0x1ae85e==null||_0x1ae85e['dispose']();});}async[_0x2eb377(0xeb)](_0x176bbb){var _0x482763=_0x2eb377;const _0x20674a=await this['_collabSessionService']['requireSession'](_0x176bbb),_0x4d468f=this[_0x482763(0x167)][_0x482763(0xba)](exports[_0x482763(0x16a)],_0x176bbb,_0x20674a);return _0x4d468f[_0x482763(0xc1)](),this[_0x482763(0xac)][_0x482763(0xa6)](_0x176bbb,_0x4d468f),_0x4d468f;}},exports[_0x2eb377(0x9c)]=R([S(0x0,o[_0x2eb377(0x130)]),S(0x1,o[_0x2eb377(0xbf)](o['Injector'])),S(0x2,o[_0x2eb377(0xbf)](m[_0x2eb377(0x120)]))],exports[_0x2eb377(0x9c)]);var h=(_0x1eae90=>(_0x1eae90[_0x2eb377(0xe6)]=_0x2eb377(0xa2),_0x1eae90[_0x2eb377(0x13f)]=_0x2eb377(0xbc),_0x1eae90[_0x2eb377(0x146)]=_0x2eb377(0x11c),_0x1eae90[_0x2eb377(0xd5)]=_0x2eb377(0x16b),_0x1eae90[_0x2eb377(0x126)]='presenting',_0x1eae90))(h||{});const z='SAME_OPERATION_SHARE_INTERVAL',Z=0xc8;exports[_0x2eb377(0x16a)]=class extends o[_0x2eb377(0x133)]{constructor(_0x2c574a,_0x4098c4,_0x45fdb0,_0x4a5837,_0x9e27ce){var _0x20c599=_0x2eb377;super(),v(this,'_status$',new L['BehaviorSubject'](_0x20c599(0xbc))),v(this,_0x20c599(0xf7),this['_status$'][_0x20c599(0x12b)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,_0x20c599(0x159),null),(this[_0x20c599(0x122)]=_0x2c574a,this[_0x20c599(0x136)]=_0x4098c4,this[_0x20c599(0x14f)]=_0x45fdb0,this['_liveShareService']=_0x4a5837,this[_0x20c599(0xc4)]=_0x9e27ce);}get['_status'](){var _0xce6b36=_0x2eb377;return this[_0xce6b36(0xdc)]['getValue']();}[_0x2eb377(0xf2)](){var _0xe0f988=_0x2eb377,_0x3e44f4;(_0x3e44f4=this[_0xe0f988(0xbe)])==null||_0x3e44f4['dispose'](),this[_0xe0f988(0xdc)]['next'](_0xe0f988(0xbc)),this[_0xe0f988(0xdc)][_0xe0f988(0xe3)]();}['init'](){var _0x288a87=_0x2eb377;this[_0x288a87(0x105)]||(this['_init']=!0x0,this['_collabSession'][_0x288a87(0xcc)][_0x288a87(0x9b)](b[_0x288a87(0xd0)](this['dispose$']))['subscribe'](_0x2788a9=>{var _0xfc7efa=_0x288a87;switch(_0x2788a9){case m['SessionStatus'][_0xfc7efa(0xe6)]:this[_0xfc7efa(0xc3)]();break;case m[_0xfc7efa(0x12c)][_0xfc7efa(0x94)]:this[_0xfc7efa(0x8f)]();break;}}),this['_collabSession']['event$']['pipe'](b[_0x288a87(0xd0)](this[_0x288a87(0x112)]))[_0x288a87(0x13c)](_0x37e2a4=>{var _0x1c9242=_0x288a87;const {eventID:_0x32a12c}=_0x37e2a4;switch(_0x32a12c){case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x1c9242(0x121)](_0x37e2a4);break;case _['CollaborationEvent'][_0x1c9242(0x148)]:this[_0x1c9242(0x15c)](_0x37e2a4);break;case _['CollaborationEvent'][_0x1c9242(0x98)]:this['_handleTerminate']();break;case _[_0x1c9242(0xb3)][_0x1c9242(0xb6)]:this[_0x1c9242(0xad)](_0x37e2a4);break;}}));}[_0x2eb377(0x114)](){var _0x518691=_0x2eb377;this['_collabSession'][_0x518691(0xf1)]({'eventID':_[_0x518691(0xb3)][_0x518691(0xdb)],'data':{'unitID':this['_unitID'],'userID':this[_0x518691(0x136)]['getMemberID']()}},this[_0x518691(0x122)]);}[_0x2eb377(0xc2)](){var _0x296c4e=_0x2eb377;this[_0x296c4e(0x110)]===_0x296c4e(0x11b)&&(this[_0x296c4e(0xdc)][_0x296c4e(0xb4)](_0x296c4e(0xbc)),this[_0x296c4e(0x136)][_0x296c4e(0xf1)]({'eventID':_[_0x296c4e(0xb3)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x296c4e(0x122)]));}[_0x2eb377(0x14a)](){var _0x17592b=_0x2eb377;this[_0x17592b(0x110)]===_0x17592b(0x16b)&&(this['_status$']['next']('following'),this[_0x17592b(0x9e)]());}[_0x2eb377(0x103)](){var _0x4d80df=_0x2eb377;this[_0x4d80df(0x110)]===_0x4d80df(0x11c)&&this['_stopFollowing']();}[_0x2eb377(0x121)](_0x3dce03){var _0xfd289=_0x2eb377;const {presenter:_0x3a999a}=_0x3dce03[_0xfd289(0xa0)],_0x47ed21=this[_0xfd289(0x136)][_0xfd289(0x119)]();this['_presenter']=_0x3a999a,_0x3a999a===_0x47ed21?(this[_0xfd289(0x108)](),this['_startPresenting']()):this[_0xfd289(0x110)]!==_0xfd289(0x16b)&&(this['_stopPresenting'](),this[_0xfd289(0x9e)]());}[_0x2eb377(0xea)](){var _0x5bae9c=_0x2eb377;const _0x5defb0={'eventID':_[_0x5bae9c(0xb3)][_0x5bae9c(0xd1)]};this[_0x5bae9c(0x136)][_0x5bae9c(0xf1)](_0x5defb0,this[_0x5bae9c(0x122)]);}[_0x2eb377(0xbd)](){var _0x567634=_0x2eb377;this[_0x567634(0x159)]=null,this[_0x567634(0x110)]!==_0x567634(0x11b)&&this[_0x567634(0xf6)]();}[_0x2eb377(0xad)](_0x22f502){var _0x3c65f6=_0x2eb377;if(this[_0x3c65f6(0x110)]===_0x3c65f6(0x11c)&&this[_0x3c65f6(0x159)]===_0x22f502[_0x3c65f6(0xa0)][_0x3c65f6(0xde)]){const _0x39b5e5=_[_0x3c65f6(0xaa)](_0x22f502[_0x3c65f6(0xa0)])[_0x3c65f6(0xa9)]['reverse']()['find'](_0x2c9d26=>_0x2c9d26['id']===C[_0x3c65f6(0xb0)]['id']);if(_0x39b5e5){const _0x3636bd=_0x39b5e5['params'][_0x3c65f6(0x127)],_0x3a528c=_0x39b5e5[_0x3c65f6(0x168)][_0x3c65f6(0xaf)]['id'];setTimeout(()=>{var _0x479b32=_0x3c65f6;this[_0x479b32(0xc4)][_0x479b32(0x129)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x3636bd,'subUnitId':_0x3a528c},{'fromCollab':!0x0});});}}}[_0x2eb377(0x109)](){var _0x512596=_0x2eb377;this[_0x512596(0xdc)][_0x512596(0xb4)]('presenting');const _0x7a8359=new Map(),_0xef0e83=this[_0x512596(0xbe)]=new o['DisposableCollection']();_0xef0e83[_0x512596(0xfe)](o['toDisposable'](()=>{var _0x4617ab=_0x512596;_0x7a8359['forEach'](_0x27c4c1=>_0x27c4c1['complete']()),_0x7a8359[_0x4617ab(0xa3)]();})),_0xef0e83[_0x512596(0xfe)](this[_0x512596(0xc4)][_0x512596(0x8b)](_0x2ec3a7=>{var _0x293784=_0x512596,_0x8b52cc;if(_0x2ec3a7['type']!==o['CommandType'][_0x293784(0x14d)]||!this[_0x293784(0xb9)]['shouldShareOperation'](_0x2ec3a7['id']))return;const {id:_0x510c04}=_0x2ec3a7;let _0x98d4f;_0x7a8359['has'](_0x510c04)?_0x98d4f=_0x7a8359[_0x293784(0xfc)](_0x510c04):(_0x98d4f=new L[(_0x293784(0x8d))](),_0x7a8359[_0x293784(0xa6)](_0x510c04,_0x98d4f),_0x98d4f[_0x293784(0x9b)](b[_0x293784(0xff)]((_0x8b52cc=this[_0x293784(0x14f)][_0x293784(0x13e)](z))!=null?_0x8b52cc:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x293784(0x13c)](_0x80ccdb=>{var _0x3cc639=_0x293784;this[_0x3cc639(0x136)][_0x3cc639(0xf1)]({'eventID':_[_0x3cc639(0xb3)][_0x3cc639(0x148)],'data':{'unitID':this[_0x3cc639(0x122)],'operations':{[_0x80ccdb['id']]:{'id':_0x80ccdb['id'],'params':JSON[_0x3cc639(0xe8)](_0x80ccdb[_0x3cc639(0x168)])}}}},this[_0x3cc639(0x122)]);})),_0x98d4f[_0x293784(0xb4)](_0x2ec3a7);})),this['_liveShareService'][_0x512596(0xd6)](this[_0x512596(0x122)])[_0x512596(0xc6)](_0x1ca9d0=>this['_collabSession'][_0x512596(0xf1)]({'eventID':_[_0x512596(0xb3)][_0x512596(0x148)],'data':{'unitID':this['_unitID'],'operations':{[_0x1ca9d0['id']]:{'id':_0x1ca9d0['id'],'params':JSON[_0x512596(0xe8)](_0x1ca9d0[_0x512596(0x168)])}}}},this[_0x512596(0x122)]));}[_0x2eb377(0xa8)](){var _0x56d189=_0x2eb377,_0x584412;this[_0x56d189(0xdc)]['next']('idle'),(_0x584412=this[_0x56d189(0xbe)])==null||_0x584412[_0x56d189(0xf2)](),this[_0x56d189(0xbe)]=null;}['_startFollowing'](){var _0x3aa05f=_0x2eb377,_0x4dd184;(_0x4dd184=this[_0x3aa05f(0xbe)])==null||_0x4dd184['dispose'](),this[_0x3aa05f(0xdc)][_0x3aa05f(0xb4)]('following');}['_beIdle'](){var _0x12611f=_0x2eb377,_0x34840f;this[_0x12611f(0xdc)][_0x12611f(0xb4)](_0x12611f(0xbc)),(_0x34840f=this[_0x12611f(0xbe)])==null||_0x34840f['dispose'](),this[_0x12611f(0xbe)]=null;}['_stopFollowing'](){var _0xf2360e=_0x2eb377,_0x7ece91;this[_0xf2360e(0xdc)][_0xf2360e(0xb4)](_0xf2360e(0x16b)),(_0x7ece91=this[_0xf2360e(0xbe)])==null||_0x7ece91[_0xf2360e(0xf2)]();}[_0x2eb377(0x15c)](_0x2bda41){var _0x48effc=_0x2eb377;if([_0x48effc(0x11b),'not-following','offline'][_0x48effc(0xe1)](this[_0x48effc(0x110)])||!_0x2bda41[_0x48effc(0xa0)]['presenter']||_0x2bda41[_0x48effc(0xa0)][_0x48effc(0x97)]===this[_0x48effc(0x136)]['getMemberID']())return;this[_0x48effc(0x110)]===_0x48effc(0xbc)&&this['_startFollowing']();const _0x42f965=_0x2bda41[_0x48effc(0xa0)]['operations'];Object[_0x48effc(0x16c)](_0x42f965)[_0x48effc(0xc6)](_0x3b3a1e=>{var _0x2fcdb7=_0x48effc;this[_0x2fcdb7(0xc4)][_0x2fcdb7(0x129)](_0x3b3a1e['id'],_0x3b3a1e[_0x2fcdb7(0x168)]?JSON['parse'](_0x3b3a1e[_0x2fcdb7(0x168)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x5b70f4=_0x2eb377,_0x131197;this[_0x5b70f4(0xdc)][_0x5b70f4(0xb4)]('offline'),(_0x131197=this[_0x5b70f4(0xbe)])==null||_0x131197['dispose']();}['_handleOnline'](){var _0x12a2ea=_0x2eb377;this[_0x12a2ea(0xdc)][_0x12a2ea(0xb4)](_0x12a2ea(0xbc)),this['_fetchOperations']();}},exports[_0x2eb377(0x16a)]=R([S(0x2,o[_0x2eb377(0xc0)]),S(0x3,o[_0x2eb377(0xbf)](E)),S(0x4,o[_0x2eb377(0x101)])],exports[_0x2eb377(0x16a)]);function _0xefd6(_0x5271fe,_0x21d981){var _0x202cc4=_0x202c();return _0xefd6=function(_0xefd625,_0x391610){_0xefd625=_0xefd625-0x89;var _0x458d75=_0x202cc4[_0xefd625];return _0x458d75;},_0xefd6(_0x5271fe,_0x21d981);}function A(){var _0x5e02d2=_0x2eb377;const _0x3b5efa=p[_0x5e02d2(0xe4)](exports['LiveShareController']),_0xb8ed7a=p[_0x5e02d2(0xe4)](o[_0x5e02d2(0x130)]),_0x14da4a=p[_0x5e02d2(0xcb)](()=>_0xb8ed7a[_0x5e02d2(0x113)](o[_0x5e02d2(0xf5)][_0x5e02d2(0xd7)]),void 0x0,!0x1,[]),[_0x24d578,_0x225212]=f['useState'](null),[_0x4ba400,_0x576ca7]=f[_0x5e02d2(0x11f)](h[_0x5e02d2(0x13f)]),_0x149b15=f[_0x5e02d2(0xe7)](null);return f[_0x5e02d2(0x15e)](()=>(_0x14da4a&&_0x3b5efa[_0x5e02d2(0x165)](_0x14da4a[_0x5e02d2(0x150)]())['then'](_0x5b504f=>{var _0x380f62=_0x5e02d2;_0x225212(_0x5b504f),_0x149b15[_0x380f62(0x10f)]=_0x5b504f[_0x380f62(0xf7)][_0x380f62(0x13c)](_0x32a2f2=>{_0x576ca7(_0x32a2f2);});}),()=>{var _0x1c78b7=_0x5e02d2,_0x2a01c4;(_0x2a01c4=_0x149b15['current'])==null||_0x2a01c4['unsubscribe'](),_0x149b15[_0x1c78b7(0x10f)]=null;}),[_0x14da4a,_0x3b5efa]),_0x24d578?l[_0x5e02d2(0x100)](g[_0x5e02d2(0x104)],{'align':_0x5e02d2(0x160),'disabled':_0x4ba400===h[_0x5e02d2(0xe6)],'className':_0x5e02d2(0xd8),'overlay':l[_0x5e02d2(0x100)](J,{'status':_0x4ba400,'coordinator':_0x24d578}),'children':l['jsx'](_0x5e02d2(0x140),{'className':g[_0x5e02d2(0x155)](_0x5e02d2(0x13d),{'univer-cursor-not-allowed':_0x4ba400===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4ba400!==h['OFFLINE']}),'type':'button','children':l[_0x5e02d2(0x100)](P,{'className':_0x5e02d2(0xdd)})})}):null;}function J(_0x90daa9){var _0x30353f=_0x2eb377;const {status:_0x16a002,coordinator:_0x366203}=_0x90daa9;switch(_0x16a002){case h['IDLE']:return l['jsx'](K,{'coordinator':_0x366203});case h[_0x30353f(0x146)]:return l[_0x30353f(0x100)](Q,{'coordinator':_0x366203});case h[_0x30353f(0xd5)]:return l[_0x30353f(0x100)](X,{'coordinator':_0x366203});case h[_0x30353f(0xe6)]:return l[_0x30353f(0x100)](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x366203});default:return null;}}function K(_0x5a3e5f){var _0x43bc64=_0x2eb377;const {coordinator:_0x27d85a}=_0x5a3e5f;return l[_0x43bc64(0x10a)](l[_0x43bc64(0xe9)],{'children':[l[_0x43bc64(0x100)](_0x43bc64(0xfb),{'className':_0x43bc64(0xc9),'children':_0x43bc64(0xcd)}),l[_0x43bc64(0x100)](g['Button'],{'size':_0x43bc64(0xca),'type':'default','onClick':()=>_0x27d85a[_0x43bc64(0x114)](),'children':_0x43bc64(0x9a)})]});}function Q(_0x4c9dfb){var _0x316f4e=_0x2eb377;const {coordinator:_0x562f3c}=_0x4c9dfb;return l[_0x316f4e(0x10a)](l['Fragment'],{'children':[l[_0x316f4e(0x100)](_0x316f4e(0xfb),{'className':_0x316f4e(0xc9),'children':_0x316f4e(0x139)}),l[_0x316f4e(0x100)](g[_0x316f4e(0xf8)],{'size':_0x316f4e(0xca),'type':_0x316f4e(0x95),'onClick':()=>_0x562f3c[_0x316f4e(0x103)](),'children':'Stop\x20following'})]});}function X(_0x5e1804){var _0x34f3cc=_0x2eb377;const {coordinator:_0x1ee00a}=_0x5e1804;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x34f3cc(0xc9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x34f3cc(0x100)](g[_0x34f3cc(0xf8)],{'size':_0x34f3cc(0xca),'type':_0x34f3cc(0xa4),'onClick':()=>_0x1ee00a[_0x34f3cc(0x14a)](),'children':'Start\x20following'})]});}function ee(_0x4cfa8c){var _0x4444b5=_0x2eb377;const {coordinator:_0x305c85}=_0x4cfa8c;return l[_0x4444b5(0x10a)](l[_0x4444b5(0xe9)],{'children':[l[_0x4444b5(0x100)](_0x4444b5(0xfb),{'className':_0x4444b5(0xc9),'children':_0x4444b5(0x90)}),l[_0x4444b5(0x100)](g[_0x4444b5(0xf8)],{'size':_0x4444b5(0xca),'type':_0x4444b5(0x95),'onClick':()=>_0x305c85[_0x4444b5(0xc2)](),'children':'Stop\x20presenting'})]});}function te(){var _0x28488f=_0x2eb377;return l['jsx'](l[_0x28488f(0xe9)],{'children':_0x28488f(0x137)});}var ie=Object[_0x2eb377(0x149)],ne=(_0xb5fbbe,_0x340395,_0xccaa5f,_0x427ad0)=>{var _0x37449a=_0x2eb377;for(var _0x526af7=_0x427ad0>0x1?void 0x0:_0x427ad0?ie(_0x340395,_0xccaa5f):_0x340395,_0x4b9651=_0xb5fbbe[_0x37449a(0x15d)]-0x1,_0x9a211;_0x4b9651>=0x0;_0x4b9651--)(_0x9a211=_0xb5fbbe[_0x4b9651])&&(_0x526af7=_0x9a211(_0x526af7)||_0x526af7);return _0x526af7;},N=(_0x153bbd,_0x63a6a)=>(_0x39069a,_0x8c2eb3)=>_0x63a6a(_0x39069a,_0x8c2eb3,_0x153bbd);exports[_0x2eb377(0xb2)]=class extends o['Disposable']{constructor(_0x3917d7,_0x4225d4){var _0x1e43c6=_0x2eb377;super(),this[_0x1e43c6(0x167)]=_0x3917d7,this[_0x1e43c6(0x10c)]=_0x4225d4,this[_0x1e43c6(0xf4)]();}[_0x2eb377(0xf4)](){var _0x1224e4=_0x2eb377;this['disposeWithMe'](this[_0x1224e4(0x10c)]['registerComponent'](p['BuiltInUIPart'][_0x1224e4(0x118)],()=>p['connectInjector'](A,this['_injector'])));}},exports['DesktopLiveShareController']=ne([N(0x0,o[_0x2eb377(0xbf)](o['Injector'])),N(0x1,p['IUIPartsService'])],exports[_0x2eb377(0xb2)]);var re=Object['defineProperty'],se=Object[_0x2eb377(0x149)],oe=(_0x14a810,_0x1758d7,_0x571345)=>_0x1758d7 in _0x14a810?re(_0x14a810,_0x1758d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x571345}):_0x14a810[_0x1758d7]=_0x571345,ae=(_0x393c48,_0x154544,_0x9b9a41,_0x24e660)=>{var _0x729cd1=_0x2eb377;for(var _0x21a00b=_0x24e660>0x1?void 0x0:_0x24e660?se(_0x154544,_0x9b9a41):_0x154544,_0x4c0616=_0x393c48[_0x729cd1(0x15d)]-0x1,_0x4d211f;_0x4c0616>=0x0;_0x4c0616--)(_0x4d211f=_0x393c48[_0x4c0616])&&(_0x21a00b=_0x4d211f(_0x21a00b)||_0x21a00b);return _0x21a00b;},w=(_0x2d06cc,_0x5eebef)=>(_0x2433cb,_0x8e9ee1)=>_0x5eebef(_0x2433cb,_0x8e9ee1,_0x2d06cc),T=(_0x217056,_0x486dd6,_0x4bb4ac)=>oe(_0x217056,typeof _0x486dd6!=_0x2eb377(0x135)?_0x486dd6+'':_0x486dd6,_0x4bb4ac);const le=_0x2eb377(0x115);exports[_0x2eb377(0x8a)]=class extends o[_0x2eb377(0x14e)]{constructor(_0x18214e=x,_0x258ed3,_0x36439c){var _0x5048e8=_0x2eb377;super(),this[_0x5048e8(0x166)]=_0x18214e,this[_0x5048e8(0x167)]=_0x258ed3,this[_0x5048e8(0x14f)]=_0x36439c;const {..._0x2e89f1}=o[_0x5048e8(0xda)]({},x,this[_0x5048e8(0x166)]);this[_0x5048e8(0x14f)][_0x5048e8(0x8e)]($,_0x2e89f1);}[_0x2eb377(0x145)](){var _0x3e7565=_0x2eb377;o['registerDependencies'](this[_0x3e7565(0x167)],o['mergeOverrideWithDependencies']([[E],[exports[_0x3e7565(0x9c)]],[O],[exports['DesktopLiveShareController']]],this[_0x3e7565(0x166)][_0x3e7565(0xa5)])),o[_0x3e7565(0x92)](this[_0x3e7565(0x167)],[[O]]);}[_0x2eb377(0x8c)](){var _0x1ee89c=_0x2eb377;o['touchDependencies'](this['_injector'],[[exports[_0x1ee89c(0xb2)]]]);}},T(exports[_0x2eb377(0x8a)],_0x2eb377(0x102),o[_0x2eb377(0xf5)][_0x2eb377(0xce)]),T(exports[_0x2eb377(0x8a)],'pluginName',le),exports[_0x2eb377(0x8a)]=ae([o[_0x2eb377(0xc7)](m['UniverCollaborationClientPlugin']),w(0x1,o['Inject'](o[_0x2eb377(0x106)])),w(0x2,o[_0x2eb377(0xc0)])],exports[_0x2eb377(0x8a)]),exports[_0x2eb377(0xf9)]=A,exports[_0x2eb377(0x107)]=E,exports['LiveShareStatus']=h;
1
+ 'use strict';var _0x5db199=_0x3f8f;(function(_0x503f60,_0x19f5af){var _0xc7d88f=_0x3f8f,_0x2509cb=_0x503f60();while(!![]){try{var _0x10a90a=parseInt(_0xc7d88f(0x112))/0x1*(-parseInt(_0xc7d88f(0xdf))/0x2)+parseInt(_0xc7d88f(0xc5))/0x3*(-parseInt(_0xc7d88f(0x12c))/0x4)+parseInt(_0xc7d88f(0x11c))/0x5*(-parseInt(_0xc7d88f(0x182))/0x6)+parseInt(_0xc7d88f(0xce))/0x7+parseInt(_0xc7d88f(0x113))/0x8*(parseInt(_0xc7d88f(0xd6))/0x9)+-parseInt(_0xc7d88f(0x168))/0xa+parseInt(_0xc7d88f(0xf0))/0xb*(parseInt(_0xc7d88f(0x17a))/0xc);if(_0x10a90a===_0x19f5af)break;else _0x2509cb['push'](_0x2509cb['shift']());}catch(_0x326e70){_0x2509cb['push'](_0x2509cb['shift']());}}}(_0x5c95,0x611c8));var U=Object[_0x5db199(0x161)],F=(_0x2ff1ef,_0x4eb554,_0x20d818)=>_0x4eb554 in _0x2ff1ef?U(_0x2ff1ef,_0x4eb554,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20d818}):_0x2ff1ef[_0x4eb554]=_0x20d818,v=(_0x582773,_0x2701c6,_0xa8c6de)=>F(_0x582773,typeof _0x2701c6!=_0x5db199(0x114)?_0x2701c6+'':_0x2701c6,_0xa8c6de);Object[_0x5db199(0x161)](exports,Symbol[_0x5db199(0x139)],{'value':_0x5db199(0x14c)});const m=require(_0x5db199(0xc8)),o=require('@univerjs/core'),C=require(_0x5db199(0x11d)),D=require(_0x5db199(0x18c)),p=require(_0x5db199(0xc9)),l=require(_0x5db199(0x192)),g=require('@univerjs/design'),f=require(_0x5db199(0xc0)),_=require(_0x5db199(0x140)),L=require(_0x5db199(0x190)),b=require(_0x5db199(0xf8)),$=_0x5db199(0x137),x={};class E extends o[_0x5db199(0xcb)]{constructor(){var _0x44fd01=_0x5db199;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x44fd01(0x126),new Set());}[_0x5db199(0x177)](_0x5cee7b){var _0x1900fe=_0x5db199;return this[_0x1900fe(0x156)][_0x1900fe(0xf2)](_0x5cee7b),o[_0x1900fe(0x188)](()=>this[_0x1900fe(0x156)][_0x1900fe(0x170)](_0x5cee7b));}[_0x5db199(0xd5)](_0xfdc807){var _0x168df6=_0x5db199;return this['_reporters'][_0x168df6(0xf2)](_0xfdc807),o['toDisposable'](()=>this[_0x168df6(0x126)]['delete'](_0xfdc807));}[_0x5db199(0x14f)](_0x569e02){var _0x27b698=_0x5db199;return this['_sharedOperations'][_0x27b698(0x12a)](_0x569e02);}[_0x5db199(0x199)](_0x4a7200){var _0x2a111f=_0x5db199;return Array[_0x2a111f(0xbe)](this[_0x2a111f(0x126)])[_0x2a111f(0x13b)](_0x1795ee=>_0x1795ee(_0x4a7200));}}var H=Object[_0x5db199(0xba)],V=(_0x5d3521,_0x3167b3,_0x403cbb,_0x6dfa6f)=>{for(var _0x21aa67=_0x6dfa6f>0x1?void 0x0:_0x6dfa6f?H(_0x3167b3,_0x403cbb):_0x3167b3,_0x20f982=_0x5d3521['length']-0x1,_0x178852;_0x20f982>=0x0;_0x20f982--)(_0x178852=_0x5d3521[_0x20f982])&&(_0x21aa67=_0x178852(_0x21aa67)||_0x21aa67);return _0x21aa67;},k=(_0x2772ad,_0x4677a7)=>(_0x19a024,_0x1ff5ca)=>_0x4677a7(_0x19a024,_0x1ff5ca,_0x2772ad);let O=class extends o[_0x5db199(0xcb)]{constructor(_0x460685){var _0x175443=_0x5db199;super(),this[_0x175443(0x10d)]=_0x460685,this[_0x175443(0x10c)]();}['_init'](){var _0x2fe79b=_0x5db199;[D[_0x2fe79b(0x150)]['id'],D[_0x2fe79b(0x163)]['id'],C[_0x2fe79b(0x120)]['id']][_0x2fe79b(0xff)](_0x57645f=>{var _0x2829d1=_0x2fe79b;this[_0x2829d1(0xfc)](this[_0x2829d1(0x10d)][_0x2829d1(0x177)](_0x57645f));});}};O=V([k(0x0,o[_0x5db199(0xc1)](E))],O);var u=function(){var _0x3af487=_0x5db199;return u=Object[_0x3af487(0x164)]||function(_0x2d19d3){var _0x459eab=_0x3af487;for(var _0x1fcd01,_0x83cb96=0x1,_0x35c623=arguments['length'];_0x83cb96<_0x35c623;_0x83cb96++){_0x1fcd01=arguments[_0x83cb96];for(var _0x30fcdd in _0x1fcd01)Object[_0x459eab(0x13a)]['hasOwnProperty'][_0x459eab(0xca)](_0x1fcd01,_0x30fcdd)&&(_0x2d19d3[_0x30fcdd]=_0x1fcd01[_0x30fcdd]);}return _0x2d19d3;},u[_0x3af487(0x15e)](this,arguments);},M=function(_0x5621b4,_0x2f1131){var _0x5c2fa0=_0x5db199,_0x595f09={};for(var _0x4117fd in _0x5621b4)Object['prototype'][_0x5c2fa0(0x101)][_0x5c2fa0(0xca)](_0x5621b4,_0x4117fd)&&_0x2f1131[_0x5c2fa0(0x144)](_0x4117fd)<0x0&&(_0x595f09[_0x4117fd]=_0x5621b4[_0x4117fd]);if(_0x5621b4!=null&&typeof Object[_0x5c2fa0(0x162)]==_0x5c2fa0(0x100)){for(var _0x554a04=0x0,_0x4117fd=Object[_0x5c2fa0(0x162)](_0x5621b4);_0x554a04<_0x4117fd[_0x5c2fa0(0xf7)];_0x554a04++)_0x2f1131[_0x5c2fa0(0x144)](_0x4117fd[_0x554a04])<0x0&&Object[_0x5c2fa0(0x13a)][_0x5c2fa0(0x109)][_0x5c2fa0(0xca)](_0x5621b4,_0x4117fd[_0x554a04])&&(_0x595f09[_0x4117fd[_0x554a04]]=_0x5621b4[_0x4117fd[_0x554a04]]);}return _0x595f09;},j=f[_0x5db199(0x10a)](function(_0xf5d34f,_0x449bac){var _0x2f4b03=_0x5db199,_0x39fff6=_0xf5d34f[_0x2f4b03(0x10f)],_0x2578fb=_0xf5d34f['id'],_0x38750a=_0xf5d34f['className'],_0x4f24be=_0xf5d34f[_0x2f4b03(0x194)],_0xbdda6e=M(_0xf5d34f,['icon','id','className',_0x2f4b03(0x194)]),_0x4eb962='univerjs-icon\x20univerjs-icon-'[_0x2f4b03(0xd4)](_0x2578fb,'\x20')[_0x2f4b03(0xd4)](_0x38750a||'')[_0x2f4b03(0x15c)](),_0x5f3022=f[_0x2f4b03(0x115)]('_'['concat'](G()));return y(_0x39fff6,''[_0x2f4b03(0xd4)](_0x2578fb),{'defIds':_0x39fff6['defIds'],'idSuffix':_0x5f3022[_0x2f4b03(0xd0)]},u({'ref':_0x449bac,'className':_0x4eb962},_0xbdda6e),_0x4f24be);});function y(_0x482c7e,_0x66289d,_0x59d2c4,_0x3edf58,_0x5550d1){var _0x18602c=_0x5db199;return f['createElement'](_0x482c7e[_0x18602c(0x12b)],u(u({'key':_0x66289d},q(_0x482c7e,_0x59d2c4,_0x5550d1)),_0x3edf58),(W(_0x482c7e,_0x59d2c4)['children']||[])[_0x18602c(0x13b)](function(_0x41df12,_0x4feaa4){var _0x10ad17=_0x18602c;return y(_0x41df12,''[_0x10ad17(0xd4)](_0x66289d,'-')[_0x10ad17(0xd4)](_0x482c7e[_0x10ad17(0x12b)],'-')[_0x10ad17(0xd4)](_0x4feaa4),_0x59d2c4,void 0x0,_0x5550d1);}));}function q(_0x15e3fe,_0x5b609e,_0x143135){var _0x2c8bb3=_0x5db199,_0x763191=u({},_0x15e3fe[_0x2c8bb3(0xea)]);_0x143135!=null&&_0x143135[_0x2c8bb3(0x10e)]&&_0x763191[_0x2c8bb3(0x15b)]==='colorChannel1'&&(_0x763191['fill']=_0x143135[_0x2c8bb3(0x10e)]),_0x15e3fe[_0x2c8bb3(0x12b)]===_0x2c8bb3(0x142)&&_0x763191['id']&&(_0x763191['id']=_0x763191['id']+_0x5b609e[_0x2c8bb3(0xb3)]),Object['entries'](_0x763191)[_0x2c8bb3(0xff)](function(_0x2b2444){var _0x268b0d=_0x2c8bb3,_0x4aadd5=_0x2b2444[0x0],_0x2eefbf=_0x2b2444[0x1];_0x4aadd5===_0x268b0d(0x142)&&typeof _0x2eefbf==_0x268b0d(0xb7)&&(_0x763191[_0x4aadd5]=_0x2eefbf[_0x268b0d(0x197)](/url\(#(.*)\)/,_0x268b0d(0x153)['concat'](_0x5b609e[_0x268b0d(0xb3)],')')));});var _0xbf9ed7=_0x5b609e[_0x2c8bb3(0xd2)];return!_0xbf9ed7||_0xbf9ed7[_0x2c8bb3(0xf7)]===0x0||(_0x15e3fe[_0x2c8bb3(0x12b)]==='use'&&_0x763191[_0x2c8bb3(0x17e)]&&(_0x763191[_0x2c8bb3(0x17e)]=_0x763191[_0x2c8bb3(0x17e)]+_0x5b609e[_0x2c8bb3(0xb3)]),Object[_0x2c8bb3(0xd7)](_0x763191)[_0x2c8bb3(0xff)](function(_0x585511){var _0x144f1a=_0x2c8bb3,_0x458982=_0x585511[0x0],_0x5af002=_0x585511[0x1];typeof _0x5af002==_0x144f1a(0xb7)&&(_0x763191[_0x458982]=_0x5af002[_0x144f1a(0x197)](/url\(#(.*)\)/,_0x144f1a(0x153)['concat'](_0x5b609e['idSuffix'],')')));})),_0x763191;}function W(_0x5bce6b,_0x1c1899){var _0x344e6a=_0x5db199,_0x540d9c,_0x54691b=_0x1c1899[_0x344e6a(0xd2)];return!_0x54691b||_0x54691b['length']===0x0?_0x5bce6b:_0x5bce6b[_0x344e6a(0x12b)]==='defs'&&(!((_0x540d9c=_0x5bce6b['children'])===null||_0x540d9c===void 0x0)&&_0x540d9c[_0x344e6a(0xf7)])?u(u({},_0x5bce6b),{'children':_0x5bce6b['children'][_0x344e6a(0x13b)](function(_0x1a76b1){var _0x44e100=_0x344e6a;return typeof _0x1a76b1[_0x44e100(0xea)]['id']==_0x44e100(0xb7)&&_0x54691b&&_0x54691b[_0x44e100(0x144)](_0x1a76b1[_0x44e100(0xea)]['id'])>-0x1?u(u({},_0x1a76b1),{'attrs':u(u({},_0x1a76b1[_0x44e100(0xea)]),{'id':_0x1a76b1['attrs']['id']+_0x1c1899['idSuffix']})}):_0x1a76b1;})}):_0x5bce6b;}function _0x5c95(){var _0x138e50=['parse','337378DvdcmT','0\x200\x2016\x2016','Subject','override','UniverLiveSharePlugin','_commandService','IUniverInstanceService','NOT_FOLLOWING','_uiPartsService','params','mergeOverrideWithDependencies','attrs','onRendered','_handleNewChangeSets','complete','tryStartPresenting','currentColor','878515IBXFFO','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','add','getLiveShareCoordinator','CollaborationEvent','registerComponent','LiveShareCoordinator','length','rxjs/operators','CollaborationSessionService','_config','InsertSheetMutation','disposeWithMe','send','RxDisposable','forEach','function','hasOwnProperty','registerDependencies','createInstance','_injector','_unitID','_entities','includes','LiveShareSingle','propertyIsEnumerable','forwardRef','operations','_init','_liveShareService','colorChannel1','icon','stopFollowing','Dropdown','1cdSGAE','721112ZxbjqR','symbol','useRef','UniverCollaborationClientPlugin','LiveShareController','Stop\x20following','1em','following','You\x27are\x20offline.','25ArLkjh','@univerjs/sheets','You\x27re\x20presenting\x20the\x20document','status$','SetWorksheetActiveOperation','Button','asObservable','connectInjector','pipe','_stopPresenting','_reporters','get','Present\x20this\x20document','UNIVER_SHEET','has','tag','16MOkNks','Stop\x20presenting','Start','IDLE','type','text','PRESENTING','dispose','mutations','requireSession','_beIdle','live-share.config','merge','toStringTag','prototype','map','default','useState','presenter','_collabSession','@univerjs-pro/collaboration','onCommandExecuted','mask','LIVESHARE_REQUEST_HOST','indexOf','UniverInstanceType','small','OFFLINE','memberID','unitId','LIVESHARE_FETCH_OPERATIONS','path','Module','LiveShareService','clsx','shouldShareOperation','SetZoomRatioOperation','button','data','url(#$1','getUnitId','UniverIcon','_sharedOperations','_mountLiveShare','_status','LIVESHARE_OPERATION','_handleOperation','fill','trim','_univerInstanceService','apply','init','next','defineProperty','getOwnPropertySymbols','SetScrollOperation','assign','_commandDisposable','then','DesktopLiveShareController','6397710Whopof','jsxs','_configService','sessionStatus$','getTypeOfUnitAdded$','You\x27re\x20not\x20following\x20the\x20presenter','startFollowing','_startLiveShareCoordinator','delete','substring','IConfigService','_fetchOperations','BuiltInUIPart','div','values','registerSharedOperation','offline','useDependency','132mNWixP','idle','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','none','xlink:href','executeCommand','evenodd','takeUntil','826242RDqFKW','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startPresenting','LIVESHARE_NEW_HOST','_handleOffline','clear','toDisposable','onStarting','CommandType','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','@univerjs/sheets-ui','createElement','IUIPartsService','presenting','rxjs','setConfig','react/jsx-runtime','dispose$','extend','getMemberID','not-following','replace','Fragment','getInitialStates','getCurrentTypeOfUnit$','SessionStatus','ONLINE','LiveShare','You\x27re\x20following\x20the\x20presenter','idSuffix','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_presenter','Injector','string','LIVESHARE_TERMINATE','ICommandService','getOwnPropertyDescriptor','_status$','jsx','stringify','from','toString','react','Inject','BehaviorSubject','OPERATION','subscribe','174261IjVdXg','reverse','UNIVER_LIVE_SHARE_PLUGIN','@univerjs-pro/collaboration-client','@univerjs/ui','call','Disposable','_stopFollowing','_startFollowing','4954334mqBOFO','sheet','current','displayName','defIds','find','concat','registerInitialStateReporter','54woupQZ','entries','_collabSessionService','getConfig','set','DependentOn','_handleOnline','live-share-single'];_0x5c95=function(){return _0x138e50;};return _0x5c95();}function _0x3f8f(_0x49de0d,_0x443900){var _0x5c95b0=_0x5c95();return _0x3f8f=function(_0x3f8f31,_0x2ae0a2){_0x3f8f31=_0x3f8f31-0xb2;var _0x2ee17e=_0x5c95b0[_0x3f8f31];return _0x2ee17e;},_0x3f8f(_0x49de0d,_0x443900);}function G(){var _0xd44aeb=_0x5db199;return Math['random']()[_0xd44aeb(0xbf)](0x24)[_0xd44aeb(0x171)](0x2,0x8);}j[_0x5db199(0xd1)]=_0x5db199(0x155);var B={'tag':'svg','attrs':{'fill':_0x5db199(0x17d),'viewBox':_0x5db199(0xe0),'width':_0x5db199(0x119),'height':'1em'},'children':[{'tag':_0x5db199(0x14b),'attrs':{'fill':_0x5db199(0xef),'d':_0x5db199(0xf1)}},{'tag':_0x5db199(0x14b),'attrs':{'fill':_0x5db199(0xef),'d':_0x5db199(0x17c),'fillRule':_0x5db199(0x180),'clipRule':_0x5db199(0x180)}}]},P=f['forwardRef'](function(_0x4195d2,_0x125b42){var _0x35f038=_0x5db199;return f[_0x35f038(0x18d)](j,Object['assign']({},_0x4195d2,{'id':_0x35f038(0xdd),'ref':_0x125b42,'icon':B}));});P['displayName']=_0x5db199(0x108);var Y=Object[_0x5db199(0xba)],R=(_0x102e23,_0x1e0f91,_0x1674ed,_0x4a8fa3)=>{var _0x1bc4db=_0x5db199;for(var _0x158ff3=_0x4a8fa3>0x1?void 0x0:_0x4a8fa3?Y(_0x1e0f91,_0x1674ed):_0x1e0f91,_0x1caa8e=_0x102e23[_0x1bc4db(0xf7)]-0x1,_0x4e8c00;_0x1caa8e>=0x0;_0x1caa8e--)(_0x4e8c00=_0x102e23[_0x1caa8e])&&(_0x158ff3=_0x4e8c00(_0x158ff3)||_0x158ff3);return _0x158ff3;},S=(_0x35e10e,_0xe3925d)=>(_0x455379,_0x4fc9a4)=>_0xe3925d(_0x455379,_0x4fc9a4,_0x35e10e);exports[_0x5db199(0x117)]=class extends o[_0x5db199(0xfe)]{constructor(_0x373685,_0x375fe3,_0x1cdd48){var _0x180304=_0x5db199;super(),v(this,'_entities',new Map()),(this[_0x180304(0x15d)]=_0x373685,this[_0x180304(0x104)]=_0x375fe3,this[_0x180304(0xd8)]=_0x1cdd48,this[_0x180304(0x10c)]());}async[_0x5db199(0xf3)](_0x3c1acf){var _0x2a5776=_0x5db199;return this['_entities'][_0x2a5776(0x12a)](_0x3c1acf)||await this[_0x2a5776(0x16f)](_0x3c1acf),this[_0x2a5776(0x106)]['get'](_0x3c1acf);}['_init'](){var _0x9f71e1=_0x5db199;this['_univerInstanceService'][_0x9f71e1(0x16c)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x9f71e1(0x124)](b[_0x9f71e1(0x181)](this[_0x9f71e1(0x193)]))[_0x9f71e1(0xc4)](async _0x761338=>{var _0x13e045=_0x9f71e1;const _0x1dc518=_0x761338[_0x13e045(0x154)]();this[_0x13e045(0x106)]['has'](_0x1dc518)||this[_0x13e045(0x16f)](_0x1dc518);}),this[_0x9f71e1(0x15d)]['getTypeOfUnitDisposed$'](o[_0x9f71e1(0x145)][_0x9f71e1(0x129)])['pipe'](b[_0x9f71e1(0x181)](this[_0x9f71e1(0x193)]))[_0x9f71e1(0xc4)](_0x315948=>{var _0x15f9d4=_0x9f71e1;const _0x2d4a04=_0x315948[_0x15f9d4(0x154)](),_0x402cf3=this[_0x15f9d4(0x106)][_0x15f9d4(0x127)](_0x2d4a04);_0x402cf3==null||_0x402cf3[_0x15f9d4(0x133)]();});}async[_0x5db199(0x16f)](_0x3251d6){var _0x362504=_0x5db199;const _0x14be61=await this[_0x362504(0xd8)][_0x362504(0x135)](_0x3251d6),_0x2adb88=this[_0x362504(0x104)][_0x362504(0x103)](exports[_0x362504(0xf6)],_0x3251d6,_0x14be61);return _0x2adb88[_0x362504(0x15f)](),this['_entities'][_0x362504(0xda)](_0x3251d6,_0x2adb88),_0x2adb88;}},exports['LiveShareController']=R([S(0x0,o[_0x5db199(0xe5)]),S(0x1,o[_0x5db199(0xc1)](o[_0x5db199(0xb6)])),S(0x2,o[_0x5db199(0xc1)](m[_0x5db199(0xf9)]))],exports['LiveShareController']);var h=(_0x453d2a=>(_0x453d2a[_0x5db199(0x147)]=_0x5db199(0x178),_0x453d2a[_0x5db199(0x12f)]='idle',_0x453d2a['FOLLOWING']=_0x5db199(0x11a),_0x453d2a[_0x5db199(0xe6)]='not-following',_0x453d2a[_0x5db199(0x132)]=_0x5db199(0x18f),_0x453d2a))(h||{});const z='SAME_OPERATION_SHARE_INTERVAL',Z=0xc8;exports[_0x5db199(0xf6)]=class extends o['RxDisposable']{constructor(_0x12bd2a,_0x2e6eca,_0x16a10b,_0x3e0364,_0x381e35){var _0x3570f9=_0x5db199;super(),v(this,_0x3570f9(0xbb),new L[(_0x3570f9(0xc2))](_0x3570f9(0x17b))),v(this,'status$',this['_status$'][_0x3570f9(0x122)]()),v(this,_0x3570f9(0x10c),!0x1),v(this,_0x3570f9(0x165),null),v(this,_0x3570f9(0xb5),null),(this['_unitID']=_0x12bd2a,this['_collabSession']=_0x2e6eca,this['_configService']=_0x16a10b,this[_0x3570f9(0x10d)]=_0x3e0364,this[_0x3570f9(0xe4)]=_0x381e35);}get[_0x5db199(0x158)](){return this['_status$']['getValue']();}[_0x5db199(0x133)](){var _0x504c81=_0x5db199,_0x5246d5;(_0x5246d5=this[_0x504c81(0x165)])==null||_0x5246d5[_0x504c81(0x133)](),this['_status$'][_0x504c81(0x160)](_0x504c81(0x17b)),this[_0x504c81(0xbb)][_0x504c81(0xed)]();}[_0x5db199(0x15f)](){var _0x481af7=_0x5db199;this['_init']||(this[_0x481af7(0x10c)]=!0x0,this[_0x481af7(0x13f)][_0x481af7(0x16b)][_0x481af7(0x124)](b[_0x481af7(0x181)](this['dispose$']))[_0x481af7(0xc4)](_0x26fb88=>{var _0x4fa963=_0x481af7;switch(_0x26fb88){case m[_0x4fa963(0x19b)][_0x4fa963(0x147)]:this['_handleOffline']();break;case m['SessionStatus'][_0x4fa963(0x19c)]:this[_0x4fa963(0xdc)]();break;}}),this[_0x481af7(0x13f)]['event$'][_0x481af7(0x124)](b[_0x481af7(0x181)](this['dispose$']))[_0x481af7(0xc4)](_0x23b928=>{var _0x5cde72=_0x481af7;const {eventID:_0x455ff5}=_0x23b928;switch(_0x455ff5){case _[_0x5cde72(0xf4)][_0x5cde72(0x185)]:this['_handleNewHost'](_0x23b928);break;case _[_0x5cde72(0xf4)][_0x5cde72(0x159)]:this[_0x5cde72(0x15a)](_0x23b928);break;case _[_0x5cde72(0xf4)][_0x5cde72(0xb8)]:this['_handleTerminate']();break;case _[_0x5cde72(0xf4)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x23b928);break;}}));}[_0x5db199(0xee)](){var _0x2d0a6d=_0x5db199;this[_0x2d0a6d(0x13f)][_0x2d0a6d(0xfd)]({'eventID':_[_0x2d0a6d(0xf4)][_0x2d0a6d(0x143)],'data':{'unitID':this[_0x2d0a6d(0x105)],'userID':this['_collabSession'][_0x2d0a6d(0x195)]()}},this[_0x2d0a6d(0x105)]);}['stopPresenting'](){var _0x3f3d76=_0x5db199;this['_status']===_0x3f3d76(0x18f)&&(this['_status$'][_0x3f3d76(0x160)](_0x3f3d76(0x17b)),this[_0x3f3d76(0x13f)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3f3d76(0x105)]));}[_0x5db199(0x16e)](){var _0x32fadd=_0x5db199;this[_0x32fadd(0x158)]==='not-following'&&(this[_0x32fadd(0xbb)][_0x32fadd(0x160)]('following'),this[_0x32fadd(0xcd)]());}[_0x5db199(0x110)](){var _0x3b7999=_0x5db199;this[_0x3b7999(0x158)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x535c36){var _0x37abb2=_0x5db199;const {presenter:_0x9d194e}=_0x535c36['data'],_0x540e5e=this[_0x37abb2(0x13f)][_0x37abb2(0x195)]();this[_0x37abb2(0xb5)]=_0x9d194e,_0x9d194e===_0x540e5e?(this['_stopFollowing'](),this[_0x37abb2(0x184)]()):this[_0x37abb2(0x158)]!==_0x37abb2(0x196)&&(this[_0x37abb2(0x125)](),this[_0x37abb2(0xcd)]());}[_0x5db199(0x173)](){var _0x20b4d6=_0x5db199;const _0x1de012={'eventID':_['CollaborationEvent'][_0x20b4d6(0x14a)]};this[_0x20b4d6(0x13f)]['send'](_0x1de012,this['_unitID']);}['_handleTerminate'](){var _0x500e03=_0x5db199;this[_0x500e03(0xb5)]=null,this[_0x500e03(0x158)]!=='presenting'&&this['_beIdle']();}[_0x5db199(0xec)](_0x348a92){var _0x1ca806=_0x5db199;if(this[_0x1ca806(0x158)]==='following'&&this['_presenter']===_0x348a92['data'][_0x1ca806(0x148)]){const _0x22cea2=_['parseProtocolChangeset'](_0x348a92[_0x1ca806(0x152)])[_0x1ca806(0x134)][_0x1ca806(0xc6)]()[_0x1ca806(0xd3)](_0x5f905b=>_0x5f905b['id']===C[_0x1ca806(0xfb)]['id']);if(_0x22cea2){const _0xa027bf=_0x22cea2[_0x1ca806(0xe8)][_0x1ca806(0x149)],_0x34023b=_0x22cea2[_0x1ca806(0xe8)][_0x1ca806(0xcf)]['id'];setTimeout(()=>{var _0x2e45ce=_0x1ca806;this[_0x2e45ce(0xe4)][_0x2e45ce(0x17f)](C[_0x2e45ce(0x120)]['id'],{'unitId':_0xa027bf,'subUnitId':_0x34023b},{'fromCollab':!0x0});});}}}[_0x5db199(0x184)](){var _0x3dc7b2=_0x5db199;this[_0x3dc7b2(0xbb)][_0x3dc7b2(0x160)](_0x3dc7b2(0x18f));const _0x53b498=new Map(),_0x4943c2=this[_0x3dc7b2(0x165)]=new o['DisposableCollection']();_0x4943c2[_0x3dc7b2(0xf2)](o[_0x3dc7b2(0x188)](()=>{var _0x52c705=_0x3dc7b2;_0x53b498[_0x52c705(0xff)](_0x3fc7a5=>_0x3fc7a5[_0x52c705(0xed)]()),_0x53b498[_0x52c705(0x187)]();})),_0x4943c2[_0x3dc7b2(0xf2)](this[_0x3dc7b2(0xe4)][_0x3dc7b2(0x141)](_0x58c747=>{var _0x5eb441=_0x3dc7b2,_0x561863;if(_0x58c747[_0x5eb441(0x130)]!==o[_0x5eb441(0x18a)][_0x5eb441(0xc3)]||!this[_0x5eb441(0x10d)][_0x5eb441(0x14f)](_0x58c747['id']))return;const {id:_0x1a9824}=_0x58c747;let _0x1dbf3c;_0x53b498[_0x5eb441(0x12a)](_0x1a9824)?_0x1dbf3c=_0x53b498[_0x5eb441(0x127)](_0x1a9824):(_0x1dbf3c=new L[(_0x5eb441(0xe1))](),_0x53b498['set'](_0x1a9824,_0x1dbf3c),_0x1dbf3c['pipe'](b['throttleTime']((_0x561863=this[_0x5eb441(0x16a)][_0x5eb441(0xd9)](z))!=null?_0x561863:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5eb441(0xc4)](_0x19fd80=>{var _0x3f81bb=_0x5eb441;this[_0x3f81bb(0x13f)][_0x3f81bb(0xfd)]({'eventID':_[_0x3f81bb(0xf4)][_0x3f81bb(0x159)],'data':{'unitID':this[_0x3f81bb(0x105)],'operations':{[_0x19fd80['id']]:{'id':_0x19fd80['id'],'params':JSON[_0x3f81bb(0xbd)](_0x19fd80[_0x3f81bb(0xe8)])}}}},this['_unitID']);})),_0x1dbf3c[_0x5eb441(0x160)](_0x58c747);})),this['_liveShareService']['getInitialStates'](this[_0x3dc7b2(0x105)])[_0x3dc7b2(0xff)](_0x404a15=>this[_0x3dc7b2(0x13f)][_0x3dc7b2(0xfd)]({'eventID':_[_0x3dc7b2(0xf4)][_0x3dc7b2(0x159)],'data':{'unitID':this[_0x3dc7b2(0x105)],'operations':{[_0x404a15['id']]:{'id':_0x404a15['id'],'params':JSON[_0x3dc7b2(0xbd)](_0x404a15[_0x3dc7b2(0xe8)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x53ad9b=_0x5db199,_0x575088;this[_0x53ad9b(0xbb)]['next'](_0x53ad9b(0x17b)),(_0x575088=this[_0x53ad9b(0x165)])==null||_0x575088[_0x53ad9b(0x133)](),this[_0x53ad9b(0x165)]=null;}[_0x5db199(0xcd)](){var _0x440ed0=_0x5db199,_0x1e2f5e;(_0x1e2f5e=this[_0x440ed0(0x165)])==null||_0x1e2f5e[_0x440ed0(0x133)](),this[_0x440ed0(0xbb)][_0x440ed0(0x160)](_0x440ed0(0x11a));}[_0x5db199(0x136)](){var _0x4ef687=_0x5db199,_0x305cca;this[_0x4ef687(0xbb)][_0x4ef687(0x160)](_0x4ef687(0x17b)),(_0x305cca=this[_0x4ef687(0x165)])==null||_0x305cca[_0x4ef687(0x133)](),this[_0x4ef687(0x165)]=null;}[_0x5db199(0xcc)](){var _0x44718d=_0x5db199,_0x16e900;this[_0x44718d(0xbb)][_0x44718d(0x160)](_0x44718d(0x196)),(_0x16e900=this[_0x44718d(0x165)])==null||_0x16e900[_0x44718d(0x133)]();}[_0x5db199(0x15a)](_0x59ec53){var _0x57a5bc=_0x5db199;if([_0x57a5bc(0x18f),'not-following',_0x57a5bc(0x178)][_0x57a5bc(0x107)](this[_0x57a5bc(0x158)])||!_0x59ec53[_0x57a5bc(0x152)][_0x57a5bc(0x13e)]||_0x59ec53[_0x57a5bc(0x152)]['presenter']===this['_collabSession'][_0x57a5bc(0x195)]())return;this[_0x57a5bc(0x158)]===_0x57a5bc(0x17b)&&this[_0x57a5bc(0xcd)]();const _0x4ec965=_0x59ec53[_0x57a5bc(0x152)][_0x57a5bc(0x10b)];Object[_0x57a5bc(0x176)](_0x4ec965)['forEach'](_0xd0dfa8=>{var _0x4c536b=_0x57a5bc;this['_commandService'][_0x4c536b(0x17f)](_0xd0dfa8['id'],_0xd0dfa8[_0x4c536b(0xe8)]?JSON[_0x4c536b(0xde)](_0xd0dfa8[_0x4c536b(0xe8)]):null,{'fromCollab':!0x0});});}[_0x5db199(0x186)](){var _0x257cd0=_0x5db199,_0xccb950;this[_0x257cd0(0xbb)]['next'](_0x257cd0(0x178)),(_0xccb950=this[_0x257cd0(0x165)])==null||_0xccb950[_0x257cd0(0x133)]();}[_0x5db199(0xdc)](){var _0x367db7=_0x5db199;this['_status$'][_0x367db7(0x160)](_0x367db7(0x17b)),this[_0x367db7(0x173)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x5db199(0x172)]),S(0x3,o[_0x5db199(0xc1)](E)),S(0x4,o[_0x5db199(0xb9)])],exports[_0x5db199(0xf6)]);function A(){var _0x37c347=_0x5db199;const _0x1f3351=p[_0x37c347(0x179)](exports[_0x37c347(0x117)]),_0x5dcee6=p[_0x37c347(0x179)](o[_0x37c347(0xe5)]),_0x265c58=p['useObservable'](()=>_0x5dcee6[_0x37c347(0x19a)](o['UniverInstanceType'][_0x37c347(0x129)]),void 0x0,!0x1,[]),[_0x245d5f,_0x26b47b]=f[_0x37c347(0x13d)](null),[_0x2b0534,_0x30c88f]=f['useState'](h[_0x37c347(0x12f)]),_0x33b069=f['useRef'](null);return f['useEffect'](()=>(_0x265c58&&_0x1f3351[_0x37c347(0xf3)](_0x265c58['getUnitId']())[_0x37c347(0x166)](_0x331f0d=>{var _0x172091=_0x37c347;_0x26b47b(_0x331f0d),_0x33b069[_0x172091(0xd0)]=_0x331f0d[_0x172091(0x11f)][_0x172091(0xc4)](_0x26237a=>{_0x30c88f(_0x26237a);});}),()=>{var _0x800520=_0x37c347,_0x5ced23;(_0x5ced23=_0x33b069['current'])==null||_0x5ced23['unsubscribe'](),_0x33b069[_0x800520(0xd0)]=null;}),[_0x265c58,_0x1f3351]),_0x245d5f?l[_0x37c347(0xbc)](g[_0x37c347(0x111)],{'align':'end','disabled':_0x2b0534===h[_0x37c347(0x147)],'className':_0x37c347(0xb4),'overlay':l[_0x37c347(0xbc)](J,{'status':_0x2b0534,'coordinator':_0x245d5f}),'children':l[_0x37c347(0xbc)](_0x37c347(0x151),{'className':g[_0x37c347(0x14e)](_0x37c347(0x183),{'univer-cursor-not-allowed':_0x2b0534===h[_0x37c347(0x147)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b0534!==h[_0x37c347(0x147)]}),'type':_0x37c347(0x151),'children':l['jsx'](P,{'className':'univer-size-4'})})}):null;}function J(_0x237395){var _0xa8e005=_0x5db199;const {status:_0x2018a8,coordinator:_0x266d58}=_0x237395;switch(_0x2018a8){case h['IDLE']:return l[_0xa8e005(0xbc)](K,{'coordinator':_0x266d58});case h['FOLLOWING']:return l[_0xa8e005(0xbc)](Q,{'coordinator':_0x266d58});case h[_0xa8e005(0xe6)]:return l['jsx'](X,{'coordinator':_0x266d58});case h[_0xa8e005(0x147)]:return l['jsx'](te,{});case h[_0xa8e005(0x132)]:return l['jsx'](ee,{'coordinator':_0x266d58});default:return null;}}function K(_0x3cb525){var _0x3632ea=_0x5db199;const {coordinator:_0x37bd46}=_0x3cb525;return l[_0x3632ea(0x169)](l[_0x3632ea(0x198)],{'children':[l[_0x3632ea(0xbc)](_0x3632ea(0x175),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3632ea(0x128)}),l[_0x3632ea(0xbc)](g[_0x3632ea(0x121)],{'size':_0x3632ea(0x146),'type':_0x3632ea(0x13c),'onClick':()=>_0x37bd46[_0x3632ea(0xee)](),'children':_0x3632ea(0x12e)})]});}function Q(_0x439218){var _0x147200=_0x5db199;const {coordinator:_0x545121}=_0x439218;return l[_0x147200(0x169)](l[_0x147200(0x198)],{'children':[l[_0x147200(0xbc)]('div',{'className':_0x147200(0x18b),'children':_0x147200(0xb2)}),l[_0x147200(0xbc)](g['Button'],{'size':'small','type':_0x147200(0x13c),'onClick':()=>_0x545121[_0x147200(0x110)](),'children':_0x147200(0x118)})]});}function X(_0x585f3c){var _0x33d0a9=_0x5db199;const {coordinator:_0x43902f}=_0x585f3c;return l[_0x33d0a9(0x169)](l[_0x33d0a9(0x198)],{'children':[l[_0x33d0a9(0xbc)](_0x33d0a9(0x175),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x33d0a9(0x16d)}),l['jsx'](g[_0x33d0a9(0x121)],{'size':_0x33d0a9(0x146),'type':_0x33d0a9(0x131),'onClick':()=>_0x43902f['startFollowing'](),'children':'Start\x20following'})]});}function ee(_0x5968df){var _0x18ce8a=_0x5db199;const {coordinator:_0x5c634a}=_0x5968df;return l[_0x18ce8a(0x169)](l['Fragment'],{'children':[l[_0x18ce8a(0xbc)](_0x18ce8a(0x175),{'className':_0x18ce8a(0x18b),'children':_0x18ce8a(0x11e)}),l[_0x18ce8a(0xbc)](g[_0x18ce8a(0x121)],{'size':'small','type':_0x18ce8a(0x13c),'onClick':()=>_0x5c634a['stopPresenting'](),'children':_0x18ce8a(0x12d)})]});}function te(){var _0x168463=_0x5db199;return l[_0x168463(0xbc)](l[_0x168463(0x198)],{'children':_0x168463(0x11b)});}var ie=Object[_0x5db199(0xba)],ne=(_0x19713a,_0x4b6c7b,_0x4fb7aa,_0x171add)=>{var _0x352cea=_0x5db199;for(var _0x19e52a=_0x171add>0x1?void 0x0:_0x171add?ie(_0x4b6c7b,_0x4fb7aa):_0x4b6c7b,_0x2cc9f6=_0x19713a[_0x352cea(0xf7)]-0x1,_0x464f62;_0x2cc9f6>=0x0;_0x2cc9f6--)(_0x464f62=_0x19713a[_0x2cc9f6])&&(_0x19e52a=_0x464f62(_0x19e52a)||_0x19e52a);return _0x19e52a;},N=(_0x195fa3,_0x21f15e)=>(_0x118f48,_0x5d593d)=>_0x21f15e(_0x118f48,_0x5d593d,_0x195fa3);exports[_0x5db199(0x167)]=class extends o[_0x5db199(0xcb)]{constructor(_0x53d01c,_0x19513d){super(),this['_injector']=_0x53d01c,this['_uiPartsService']=_0x19513d,this['_mountLiveShare']();}[_0x5db199(0x157)](){var _0x5ddc4f=_0x5db199;this[_0x5ddc4f(0xfc)](this[_0x5ddc4f(0xe7)][_0x5ddc4f(0xf5)](p[_0x5ddc4f(0x174)]['HEADER_MENU'],()=>p[_0x5ddc4f(0x123)](A,this['_injector'])));}},exports[_0x5db199(0x167)]=ne([N(0x0,o[_0x5db199(0xc1)](o['Injector'])),N(0x1,p[_0x5db199(0x18e)])],exports[_0x5db199(0x167)]);var re=Object[_0x5db199(0x161)],se=Object[_0x5db199(0xba)],oe=(_0x2cd8a1,_0x31a066,_0x592983)=>_0x31a066 in _0x2cd8a1?re(_0x2cd8a1,_0x31a066,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x592983}):_0x2cd8a1[_0x31a066]=_0x592983,ae=(_0x5bd17e,_0x11c888,_0x351acd,_0x40cea6)=>{var _0x454a6d=_0x5db199;for(var _0x382bf4=_0x40cea6>0x1?void 0x0:_0x40cea6?se(_0x11c888,_0x351acd):_0x11c888,_0x3ef7bc=_0x5bd17e[_0x454a6d(0xf7)]-0x1,_0x95ed19;_0x3ef7bc>=0x0;_0x3ef7bc--)(_0x95ed19=_0x5bd17e[_0x3ef7bc])&&(_0x382bf4=_0x95ed19(_0x382bf4)||_0x382bf4);return _0x382bf4;},w=(_0x358c12,_0x495e2d)=>(_0x9db4ad,_0x16b0b7)=>_0x495e2d(_0x9db4ad,_0x16b0b7,_0x358c12),T=(_0x49e2f3,_0x1a482b,_0x415a62)=>oe(_0x49e2f3,typeof _0x1a482b!=_0x5db199(0x114)?_0x1a482b+'':_0x1a482b,_0x415a62);const le=_0x5db199(0xc7);exports[_0x5db199(0xe3)]=class extends o['Plugin']{constructor(_0xe7515d=x,_0x33343d,_0x2747ab){var _0x1b9a7c=_0x5db199;super(),this['_config']=_0xe7515d,this[_0x1b9a7c(0x104)]=_0x33343d,this[_0x1b9a7c(0x16a)]=_0x2747ab;const {..._0x1191d5}=o[_0x1b9a7c(0x138)]({},x,this['_config']);this[_0x1b9a7c(0x16a)][_0x1b9a7c(0x191)]($,_0x1191d5);}[_0x5db199(0x189)](){var _0x5132d9=_0x5db199;o[_0x5132d9(0x102)](this[_0x5132d9(0x104)],o[_0x5132d9(0xe9)]([[E],[exports[_0x5132d9(0x117)]],[O],[exports[_0x5132d9(0x167)]]],this[_0x5132d9(0xfa)][_0x5132d9(0xe2)])),o['touchDependencies'](this[_0x5132d9(0x104)],[[O]]);}[_0x5db199(0xeb)](){var _0x370c9e=_0x5db199;o['touchDependencies'](this[_0x370c9e(0x104)],[[exports[_0x370c9e(0x167)]]]);}},T(exports[_0x5db199(0xe3)],_0x5db199(0x130),o[_0x5db199(0x145)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x5db199(0xdb)](m[_0x5db199(0x116)]),w(0x1,o[_0x5db199(0xc1)](o[_0x5db199(0xb6)])),w(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x5db199(0x19d)]=A,exports[_0x5db199(0x14d)]=E,exports['LiveShareStatus']=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5dce64=_0x263d;(function(_0x500160,_0x4f6217){var _0x2365d5=_0x263d,_0x576da9=_0x500160();while(!![]){try{var _0x34f1c3=-parseInt(_0x2365d5(0xdc))/0x1*(parseInt(_0x2365d5(0xd2))/0x2)+parseInt(_0x2365d5(0x132))/0x3*(-parseInt(_0x2365d5(0x146))/0x4)+-parseInt(_0x2365d5(0x11e))/0x5+parseInt(_0x2365d5(0xe8))/0x6*(parseInt(_0x2365d5(0x178))/0x7)+-parseInt(_0x2365d5(0x114))/0x8*(-parseInt(_0x2365d5(0x13f))/0x9)+-parseInt(_0x2365d5(0xe7))/0xa*(parseInt(_0x2365d5(0xd6))/0xb)+-parseInt(_0x2365d5(0x143))/0xc*(-parseInt(_0x2365d5(0xd1))/0xd);if(_0x34f1c3===_0x4f6217)break;else _0x576da9['push'](_0x576da9['shift']());}catch(_0x5ef013){_0x576da9['push'](_0x576da9['shift']());}}}(_0xd2ab,0x6140a));var K=Object[_0x5dce64(0x16d)],q=(_0x3c2ced,_0x296e25,_0x27f6fd)=>_0x296e25 in _0x3c2ced?K(_0x3c2ced,_0x296e25,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27f6fd}):_0x3c2ced[_0x296e25]=_0x27f6fd,d=(_0x20f353,_0x56253e,_0x5b1213)=>q(_0x20f353,typeof _0x56253e!=_0x5dce64(0x13c)?_0x56253e+'':_0x56253e,_0x5b1213);import{CollaborationSessionService as _0x2d1170,SessionStatus as _0x595b5b,UniverCollaborationClientPlugin as _0x2f441b}from'@univerjs-pro/collaboration-client';import{Disposable as _0xf636d9,toDisposable as _0x478a26,Inject as _0x1e5587,IUniverInstanceService as _0x4922bf,Injector as _0x28bf4d,IConfigService as _0x27ce9b,ICommandService as _0x14f85f,RxDisposable as _0x1c35ba,UniverInstanceType as _0x313139,DisposableCollection as _0x50ede0,CommandType as _0x482c22,DependentOn as _0x41fdd9,Plugin as _0x324dd1,merge as _0x29ff0b,registerDependencies as _0x1f437d,mergeOverrideWithDependencies as _0x5a83dd,touchDependencies as _0x45274e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xd54817,InsertSheetMutation as _0x357d16}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4e7a8f,SetScrollOperation as _0x1f2fa2}from'@univerjs/sheets-ui';import{useDependency as _0xcf9528,useObservable as _0x4e1cd1,IUIPartsService as _0x17675f,BuiltInUIPart as _0x5ee4e0,connectInjector as _0x45002c}from'@univerjs/ui';import{jsx as _0x58fdcd,jsxs as _0xa80b7a,Fragment as _0x29f11a}from'react/jsx-runtime';import{Dropdown as _0x139a0f,clsx as _0x5492e8,Button as _0x45a343}from'@univerjs/design';import{forwardRef as _0x4b4bf8,useRef as _0x4b44aa,createElement as _0xc363bd,useState as _0xc0591e,useEffect as _0x19ab33}from'react';import{CollaborationEvent as _0x4fb8a9,parseProtocolChangeset as _0x47ee4c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2c3578,Subject as _0x35bc20}from'rxjs';import{takeUntil as _0x484593,throttleTime as _0x23e993}from'rxjs/operators';const Oe='live-share.config',T={};class x extends _0xf636d9{constructor(){var _0xda24cb=_0x5dce64;super(...arguments),d(this,_0xda24cb(0x14f),new Set()),d(this,'_reporters',new Set());}[_0x5dce64(0x130)](_0x41dc73){var _0x4e0ecc=_0x5dce64;return this['_sharedOperations'][_0x4e0ecc(0x116)](_0x41dc73),_0x478a26(()=>this[_0x4e0ecc(0x14f)]['delete'](_0x41dc73));}[_0x5dce64(0x108)](_0x4bfb37){var _0x41b0f8=_0x5dce64;return this['_reporters'][_0x41b0f8(0x116)](_0x4bfb37),_0x478a26(()=>this[_0x41b0f8(0x11f)]['delete'](_0x4bfb37));}[_0x5dce64(0x10c)](_0x278740){var _0x30a031=_0x5dce64;return this[_0x30a031(0x14f)][_0x30a031(0x177)](_0x278740);}[_0x5dce64(0xd8)](_0xab5cbb){var _0x23c851=_0x5dce64;return Array['from'](this[_0x23c851(0x11f)])[_0x23c851(0x12e)](_0x2d768f=>_0x2d768f(_0xab5cbb));}}var Ee=Object[_0x5dce64(0xf0)],Ce=(_0x4aa9fc,_0x514987,_0x215715,_0x6b5e86)=>{var _0x2de871=_0x5dce64;for(var _0x153644=_0x6b5e86>0x1?void 0x0:_0x6b5e86?Ee(_0x514987,_0x215715):_0x514987,_0x5dd672=_0x4aa9fc[_0x2de871(0x12b)]-0x1,_0x201543;_0x5dd672>=0x0;_0x5dd672--)(_0x201543=_0x4aa9fc[_0x5dd672])&&(_0x153644=_0x201543(_0x153644)||_0x153644);return _0x153644;},Ne=(_0x22303a,_0x585915)=>(_0x40d3f5,_0x498161)=>_0x585915(_0x40d3f5,_0x498161,_0x22303a);let m=class extends _0xf636d9{constructor(_0x36f5ad){var _0x454aa3=_0x5dce64;super(),this[_0x454aa3(0x123)]=_0x36f5ad,this[_0x454aa3(0x14d)]();}[_0x5dce64(0x14d)](){var _0x5e3f87=_0x5dce64;[_0x4e7a8f['id'],_0x1f2fa2['id'],_0xd54817['id']][_0x5e3f87(0x13a)](_0x342c0a=>{var _0x40c7b9=_0x5e3f87;this[_0x40c7b9(0x104)](this[_0x40c7b9(0x123)][_0x40c7b9(0x130)](_0x342c0a));});}};m=Ce([Ne(0x0,_0x1e5587(x))],m);var c=function(){var _0xb8e4a1=_0x5dce64;return c=Object['assign']||function(_0x612ab5){var _0x25c7f0=_0x263d;for(var _0x469a95,_0x1b6e75=0x1,_0x524873=arguments['length'];_0x1b6e75<_0x524873;_0x1b6e75++){_0x469a95=arguments[_0x1b6e75];for(var _0x48436d in _0x469a95)Object[_0x25c7f0(0xd0)][_0x25c7f0(0x11d)][_0x25c7f0(0x139)](_0x469a95,_0x48436d)&&(_0x612ab5[_0x48436d]=_0x469a95[_0x48436d]);}return _0x612ab5;},c[_0xb8e4a1(0x10d)](this,arguments);},we=function(_0x31ba7e,_0x2515b2){var _0x3bf20e=_0x5dce64,_0x3c8ce6={};for(var _0x3143a3 in _0x31ba7e)Object[_0x3bf20e(0xd0)][_0x3bf20e(0x11d)][_0x3bf20e(0x139)](_0x31ba7e,_0x3143a3)&&_0x2515b2[_0x3bf20e(0x137)](_0x3143a3)<0x0&&(_0x3c8ce6[_0x3143a3]=_0x31ba7e[_0x3143a3]);if(_0x31ba7e!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x482a89=0x0,_0x3143a3=Object['getOwnPropertySymbols'](_0x31ba7e);_0x482a89<_0x3143a3[_0x3bf20e(0x12b)];_0x482a89++)_0x2515b2['indexOf'](_0x3143a3[_0x482a89])<0x0&&Object[_0x3bf20e(0xd0)][_0x3bf20e(0xfa)][_0x3bf20e(0x139)](_0x31ba7e,_0x3143a3[_0x482a89])&&(_0x3c8ce6[_0x3143a3[_0x482a89]]=_0x31ba7e[_0x3143a3[_0x482a89]]);}return _0x3c8ce6;},W=_0x4b4bf8(function(_0x3b3182,_0x180703){var _0x25d64e=_0x5dce64,_0x10f439=_0x3b3182[_0x25d64e(0x167)],_0x54e226=_0x3b3182['id'],_0x2f1144=_0x3b3182[_0x25d64e(0x14e)],_0x2040db=_0x3b3182[_0x25d64e(0xdd)],_0x773fbf=we(_0x3b3182,[_0x25d64e(0x167),'id',_0x25d64e(0x14e),_0x25d64e(0xdd)]),_0x2a958f=_0x25d64e(0xce)[_0x25d64e(0x126)](_0x54e226,'\x20')[_0x25d64e(0x126)](_0x2f1144||'')[_0x25d64e(0x128)](),_0x2846a5=_0x4b44aa('_'[_0x25d64e(0x126)](xe()));return Y(_0x10f439,''['concat'](_0x54e226),{'defIds':_0x10f439['defIds'],'idSuffix':_0x2846a5[_0x25d64e(0x150)]},c({'ref':_0x180703,'className':_0x2a958f},_0x773fbf),_0x2040db);});function Y(_0x5ab48b,_0x593801,_0x107d36,_0x43c0a6,_0x313fd9){var _0x324f97=_0x5dce64;return _0xc363bd(_0x5ab48b[_0x324f97(0xfd)],c(c({'key':_0x593801},De(_0x5ab48b,_0x107d36,_0x313fd9)),_0x43c0a6),(Le(_0x5ab48b,_0x107d36)[_0x324f97(0xfe)]||[])[_0x324f97(0x12e)](function(_0x1515df,_0x22e33c){var _0x18b494=_0x324f97;return Y(_0x1515df,''[_0x18b494(0x126)](_0x593801,'-')['concat'](_0x5ab48b[_0x18b494(0xfd)],'-')[_0x18b494(0x126)](_0x22e33c),_0x107d36,void 0x0,_0x313fd9);}));}function _0xd2ab(){var _0x24a94d=['_handleTerminate','Stop\x20following','_handleOnline','univerjs-icon\x20univerjs-icon-','_config','prototype','1599hgvvfC','3460bAdlDn','entries','svg','LIVESHARE_NEW_HOST','1111WeNhsz','_mountLiveShare','getInitialStates','event$','clear','small','101ctMXBV','extend','_collabSessionService','UNIVER_LIVE_SHARE_PLUGIN','type','UNIVER_UNKNOWN','stopPresenting','string','requireSession','getLiveShareCoordinator','use','68110ljHHnG','732516WsQhLr','registerComponent','_startFollowing','colorChannel1','default','idle','memberID','defs','getOwnPropertyDescriptor','OPERATION','OFFLINE','mutations','displayName','_presenter','HEADER_MENU','presenter','You\x27re\x20presenting\x20the\x20document','div','propertyIsEnumerable','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','complete','tag','children','subscribe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','getMemberID','_univerInstanceService','disposeWithMe','_handleNewChangeSets','asObservable','_commandService','registerInitialStateReporter','live-share-single','_status$','pipe','shouldShareOperation','apply','_entities','You\x27re\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','attrs','data','_commandDisposable','16nwyaAU','path','add','onStarting','xlink:href','createInstance','fill','init','getUnitId','hasOwnProperty','3970920dmSAUS','_reporters','onCommandExecuted','ONLINE','tryStartPresenting','_liveShareService','_stopPresenting','offline','concat','not-following','trim','idSuffix','unsubscribe','length','You\x27are\x20offline.','getConfig','map','toString','registerSharedOperation','reverse','393YRwupI','assign','NEW_CHANGESETS','_startPresenting','end','indexOf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','forEach','Stop\x20presenting','symbol','_status','SAME_OPERATION_SHARE_INTERVAL','1169118lmpMem','LiveShareSingle','getValue','FOLLOWING','198804FOWJGd','0\x200\x2016\x2016','You\x27re\x20not\x20following\x20the\x20presenter','22312eOsmSG','LIVESHARE_REQUEST_HOST','values','send','operations','onRendered','substring','_init','className','_sharedOperations','current','stringify','_uiPartsService','setConfig','dispose$','_collabSession','_unitID','random','next','button','text','UNIVER_SHEET','PRESENTING','set','univer-size-4','params','1em','url(#$1','LIVESHARE_OPERATION','_handleOffline','_handleOperation','_configService','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','icon','get','dispose','replace','mask','_beIdle','defineProperty','IDLE','following','NOT_FOLLOWING','_startLiveShareCoordinator','_stopFollowing','Present\x20this\x20document','presenting','defIds','executeCommand','has','28rOcuiZ','_injector','LIVESHARE_TERMINATE','sessionStatus$','evenodd','override','unitId','_handleNewHost','LIVESHARE_FETCH_OPERATIONS','Start','status$'];_0xd2ab=function(){return _0x24a94d;};return _0xd2ab();}function De(_0x292f27,_0x1425a0,_0x433f50){var _0x29bcc5=_0x5dce64,_0x5bffb6=c({},_0x292f27['attrs']);_0x433f50!=null&&_0x433f50[_0x29bcc5(0xeb)]&&_0x5bffb6[_0x29bcc5(0x11a)]==='colorChannel1'&&(_0x5bffb6[_0x29bcc5(0x11a)]=_0x433f50[_0x29bcc5(0xeb)]),_0x292f27['tag']===_0x29bcc5(0x16b)&&_0x5bffb6['id']&&(_0x5bffb6['id']=_0x5bffb6['id']+_0x1425a0[_0x29bcc5(0x129)]),Object[_0x29bcc5(0xd3)](_0x5bffb6)[_0x29bcc5(0x13a)](function(_0x398ac3){var _0x39372c=_0x29bcc5,_0x632e46=_0x398ac3[0x0],_0x4aa9e3=_0x398ac3[0x1];_0x632e46===_0x39372c(0x16b)&&typeof _0x4aa9e3=='string'&&(_0x5bffb6[_0x632e46]=_0x4aa9e3[_0x39372c(0x16a)](/url\(#(.*)\)/,_0x39372c(0x161)[_0x39372c(0x126)](_0x1425a0[_0x39372c(0x129)],')')));});var _0x39208f=_0x1425a0['defIds'];return!_0x39208f||_0x39208f[_0x29bcc5(0x12b)]===0x0||(_0x292f27[_0x29bcc5(0xfd)]===_0x29bcc5(0xe6)&&_0x5bffb6[_0x29bcc5(0x118)]&&(_0x5bffb6[_0x29bcc5(0x118)]=_0x5bffb6[_0x29bcc5(0x118)]+_0x1425a0[_0x29bcc5(0x129)]),Object[_0x29bcc5(0xd3)](_0x5bffb6)[_0x29bcc5(0x13a)](function(_0x8c1773){var _0x597a25=_0x29bcc5,_0x596f7f=_0x8c1773[0x0],_0xb30663=_0x8c1773[0x1];typeof _0xb30663==_0x597a25(0xe3)&&(_0x5bffb6[_0x596f7f]=_0xb30663[_0x597a25(0x16a)](/url\(#(.*)\)/,_0x597a25(0x161)[_0x597a25(0x126)](_0x1425a0[_0x597a25(0x129)],')')));})),_0x5bffb6;}function Le(_0x4d157c,_0x149ad2){var _0x2754b7=_0x5dce64,_0x2e300d,_0x31ff90=_0x149ad2[_0x2754b7(0x175)];return!_0x31ff90||_0x31ff90[_0x2754b7(0x12b)]===0x0?_0x4d157c:_0x4d157c[_0x2754b7(0xfd)]===_0x2754b7(0xef)&&(!((_0x2e300d=_0x4d157c['children'])===null||_0x2e300d===void 0x0)&&_0x2e300d['length'])?c(c({},_0x4d157c),{'children':_0x4d157c[_0x2754b7(0xfe)]['map'](function(_0x5463b0){var _0x2a1b24=_0x2754b7;return typeof _0x5463b0[_0x2a1b24(0x111)]['id']==_0x2a1b24(0xe3)&&_0x31ff90&&_0x31ff90[_0x2a1b24(0x137)](_0x5463b0[_0x2a1b24(0x111)]['id'])>-0x1?c(c({},_0x5463b0),{'attrs':c(c({},_0x5463b0[_0x2a1b24(0x111)]),{'id':_0x5463b0[_0x2a1b24(0x111)]['id']+_0x149ad2['idSuffix']})}):_0x5463b0;})}):_0x4d157c;}function xe(){var _0x3f10da=_0x5dce64;return Math[_0x3f10da(0x157)]()[_0x3f10da(0x12f)](0x24)[_0x3f10da(0x14c)](0x2,0x8);}W[_0x5dce64(0xf4)]='UniverIcon';var ye={'tag':_0x5dce64(0xd4),'attrs':{'fill':'none','viewBox':_0x5dce64(0x144),'width':_0x5dce64(0x160),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5dce64(0xfb)}},{'tag':_0x5dce64(0x115),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x5dce64(0x17c),'clipRule':_0x5dce64(0x17c)}}]},z=_0x4b4bf8(function(_0x8c549a,_0x180ad8){var _0x21b145=_0x5dce64;return _0xc363bd(W,Object[_0x21b145(0x133)]({},_0x8c549a,{'id':_0x21b145(0x109),'ref':_0x180ad8,'icon':ye}));});z[_0x5dce64(0xf4)]=_0x5dce64(0x140);var Re=Object[_0x5dce64(0xf0)],B=(_0x122678,_0x40ddfa,_0x5329b5,_0x5b2833)=>{var _0x1e4990=_0x5dce64;for(var _0x556fed=_0x5b2833>0x1?void 0x0:_0x5b2833?Re(_0x40ddfa,_0x5329b5):_0x40ddfa,_0x357676=_0x122678[_0x1e4990(0x12b)]-0x1,_0x2130ff;_0x357676>=0x0;_0x357676--)(_0x2130ff=_0x122678[_0x357676])&&(_0x556fed=_0x2130ff(_0x556fed)||_0x556fed);return _0x556fed;},f=(_0x31a29,_0x3689a0)=>(_0x4bc9b3,_0x3e2ee1)=>_0x3689a0(_0x4bc9b3,_0x3e2ee1,_0x31a29);let I=class extends _0x1c35ba{constructor(_0x4d2e8d,_0x22362a,_0x3e6bd6){var _0x12b34d=_0x5dce64;super(),d(this,_0x12b34d(0x10e),new Map()),(this[_0x12b34d(0x103)]=_0x4d2e8d,this[_0x12b34d(0x179)]=_0x22362a,this[_0x12b34d(0xde)]=_0x3e6bd6,this[_0x12b34d(0x14d)]());}async[_0x5dce64(0xe5)](_0x576732){var _0x238e85=_0x5dce64;return this[_0x238e85(0x10e)]['has'](_0x576732)||await this[_0x238e85(0x171)](_0x576732),this['_entities']['get'](_0x576732);}['_init'](){var _0x267b39=_0x5dce64;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x313139[_0x267b39(0x15b)])[_0x267b39(0x10b)](_0x484593(this['dispose$']))['subscribe'](async _0x1b2b1a=>{var _0x2dc490=_0x267b39;const _0x285a72=_0x1b2b1a['getUnitId']();this['_entities']['has'](_0x285a72)||this[_0x2dc490(0x171)](_0x285a72);}),this[_0x267b39(0x103)][_0x267b39(0x110)](_0x313139['UNIVER_SHEET'])['pipe'](_0x484593(this[_0x267b39(0x154)]))[_0x267b39(0xff)](_0x2b0982=>{var _0x3d7899=_0x267b39;const _0x443590=_0x2b0982['getUnitId'](),_0x1681e7=this[_0x3d7899(0x10e)][_0x3d7899(0x168)](_0x443590);_0x1681e7==null||_0x1681e7[_0x3d7899(0x169)]();});}async[_0x5dce64(0x171)](_0x4f5bc9){var _0x1b4d1c=_0x5dce64;const _0x4eddcc=await this[_0x1b4d1c(0xde)][_0x1b4d1c(0xe4)](_0x4f5bc9),_0x429e15=this['_injector'][_0x1b4d1c(0x119)](w,_0x4f5bc9,_0x4eddcc);return _0x429e15[_0x1b4d1c(0x11b)](),this[_0x1b4d1c(0x10e)][_0x1b4d1c(0x15d)](_0x4f5bc9,_0x429e15),_0x429e15;}};I=B([f(0x0,_0x4922bf),f(0x1,_0x1e5587(_0x28bf4d)),f(0x2,_0x1e5587(_0x2d1170))],I);var h=(_0x56d561=>(_0x56d561[_0x5dce64(0xf2)]=_0x5dce64(0x125),_0x56d561[_0x5dce64(0x16e)]='idle',_0x56d561[_0x5dce64(0x142)]=_0x5dce64(0x16f),_0x56d561[_0x5dce64(0x170)]=_0x5dce64(0x127),_0x56d561[_0x5dce64(0x15c)]=_0x5dce64(0x174),_0x56d561))(h||{});const Pe=_0x5dce64(0x13e),Ae=0xc8;let w=class extends _0x1c35ba{constructor(_0x5eb99a,_0x3c803d,_0x15c193,_0x4348d7,_0x26aa33){var _0xcbb084=_0x5dce64;super(),d(this,'_status$',new _0x2c3578(_0xcbb084(0xed))),d(this,_0xcbb084(0xca),this[_0xcbb084(0x10a)][_0xcbb084(0x106)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0xcbb084(0xf5),null),(this[_0xcbb084(0x156)]=_0x5eb99a,this[_0xcbb084(0x155)]=_0x3c803d,this[_0xcbb084(0x165)]=_0x15c193,this[_0xcbb084(0x123)]=_0x4348d7,this[_0xcbb084(0x107)]=_0x26aa33);}get[_0x5dce64(0x13d)](){var _0x5ea2a8=_0x5dce64;return this['_status$'][_0x5ea2a8(0x141)]();}[_0x5dce64(0x169)](){var _0x409fdd=_0x5dce64,_0x785313;(_0x785313=this['_commandDisposable'])==null||_0x785313['dispose'](),this[_0x409fdd(0x10a)][_0x409fdd(0x158)]('idle'),this['_status$'][_0x409fdd(0xfc)]();}[_0x5dce64(0x11b)](){var _0x4e0da4=_0x5dce64;this[_0x4e0da4(0x14d)]||(this[_0x4e0da4(0x14d)]=!0x0,this[_0x4e0da4(0x155)][_0x4e0da4(0x17b)][_0x4e0da4(0x10b)](_0x484593(this[_0x4e0da4(0x154)]))[_0x4e0da4(0xff)](_0x1e1427=>{var _0x233d5d=_0x4e0da4;switch(_0x1e1427){case _0x595b5b[_0x233d5d(0xf2)]:this[_0x233d5d(0x163)]();break;case _0x595b5b[_0x233d5d(0x121)]:this[_0x233d5d(0xcd)]();break;}}),this['_collabSession'][_0x4e0da4(0xd9)][_0x4e0da4(0x10b)](_0x484593(this[_0x4e0da4(0x154)]))[_0x4e0da4(0xff)](_0x42dc2c=>{var _0x1e12c6=_0x4e0da4;const {eventID:_0x5e54aa}=_0x42dc2c;switch(_0x5e54aa){case _0x4fb8a9[_0x1e12c6(0xd5)]:this[_0x1e12c6(0x17f)](_0x42dc2c);break;case _0x4fb8a9[_0x1e12c6(0x162)]:this[_0x1e12c6(0x164)](_0x42dc2c);break;case _0x4fb8a9[_0x1e12c6(0x17a)]:this[_0x1e12c6(0xcb)]();break;case _0x4fb8a9[_0x1e12c6(0x134)]:this['_handleNewChangeSets'](_0x42dc2c);break;}}));}[_0x5dce64(0x122)](){var _0x589adf=_0x5dce64;this[_0x589adf(0x155)][_0x589adf(0x149)]({'eventID':_0x4fb8a9[_0x589adf(0x147)],'data':{'unitID':this[_0x589adf(0x156)],'userID':this[_0x589adf(0x155)]['getMemberID']()}},this[_0x589adf(0x156)]);}['stopPresenting'](){var _0x5e2f55=_0x5dce64;this[_0x5e2f55(0x13d)]===_0x5e2f55(0x174)&&(this['_status$'][_0x5e2f55(0x158)](_0x5e2f55(0xed)),this['_collabSession'][_0x5e2f55(0x149)]({'eventID':_0x4fb8a9[_0x5e2f55(0x17a)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x43bdb5=_0x5dce64;this['_status']==='not-following'&&(this[_0x43bdb5(0x10a)]['next'](_0x43bdb5(0x16f)),this[_0x43bdb5(0xea)]());}[_0x5dce64(0x101)](){var _0x2bc9a9=_0x5dce64;this['_status']==='following'&&this[_0x2bc9a9(0x172)]();}[_0x5dce64(0x17f)](_0x3cbb77){var _0x2b73af=_0x5dce64;const {presenter:_0x4dfef6}=_0x3cbb77[_0x2b73af(0x112)],_0x2e8367=this[_0x2b73af(0x155)]['getMemberID']();this[_0x2b73af(0xf5)]=_0x4dfef6,_0x4dfef6===_0x2e8367?(this['_stopFollowing'](),this[_0x2b73af(0x135)]()):this[_0x2b73af(0x13d)]!==_0x2b73af(0x127)&&(this[_0x2b73af(0x124)](),this[_0x2b73af(0xea)]());}['_fetchOperations'](){var _0x3386f7=_0x5dce64;const _0x2516b7={'eventID':_0x4fb8a9[_0x3386f7(0x180)]};this[_0x3386f7(0x155)][_0x3386f7(0x149)](_0x2516b7,this['_unitID']);}[_0x5dce64(0xcb)](){var _0x203919=_0x5dce64;this[_0x203919(0xf5)]=null,this['_status']!=='presenting'&&this[_0x203919(0x16c)]();}[_0x5dce64(0x105)](_0x2294f5){var _0xf8884d=_0x5dce64;if(this[_0xf8884d(0x13d)]===_0xf8884d(0x16f)&&this['_presenter']===_0x2294f5[_0xf8884d(0x112)][_0xf8884d(0xee)]){const _0x378cb5=_0x47ee4c(_0x2294f5[_0xf8884d(0x112)])[_0xf8884d(0xf3)][_0xf8884d(0x131)]()['find'](_0x15973e=>_0x15973e['id']===_0x357d16['id']);if(_0x378cb5){const _0x535709=_0x378cb5[_0xf8884d(0x15f)][_0xf8884d(0x17e)],_0x4353f8=_0x378cb5[_0xf8884d(0x15f)]['sheet']['id'];setTimeout(()=>{var _0x879b79=_0xf8884d;this[_0x879b79(0x107)][_0x879b79(0x176)](_0xd54817['id'],{'unitId':_0x535709,'subUnitId':_0x4353f8},{'fromCollab':!0x0});});}}}[_0x5dce64(0x135)](){var _0x320ab2=_0x5dce64;this['_status$'][_0x320ab2(0x158)](_0x320ab2(0x174));const _0x356fc4=new Map(),_0x263265=this[_0x320ab2(0x113)]=new _0x50ede0();_0x263265['add'](_0x478a26(()=>{var _0x477a23=_0x320ab2;_0x356fc4[_0x477a23(0x13a)](_0x4cfdaa=>_0x4cfdaa[_0x477a23(0xfc)]()),_0x356fc4[_0x477a23(0xda)]();})),_0x263265[_0x320ab2(0x116)](this[_0x320ab2(0x107)][_0x320ab2(0x120)](_0x5f009c=>{var _0xd221a2=_0x320ab2,_0x40a60a;if(_0x5f009c[_0xd221a2(0xe0)]!==_0x482c22[_0xd221a2(0xf1)]||!this[_0xd221a2(0x123)][_0xd221a2(0x10c)](_0x5f009c['id']))return;const {id:_0x2791d6}=_0x5f009c;let _0x33c21b;_0x356fc4[_0xd221a2(0x177)](_0x2791d6)?_0x33c21b=_0x356fc4['get'](_0x2791d6):(_0x33c21b=new _0x35bc20(),_0x356fc4['set'](_0x2791d6,_0x33c21b),_0x33c21b['pipe'](_0x23e993((_0x40a60a=this[_0xd221a2(0x165)][_0xd221a2(0x12d)](Pe))!=null?_0x40a60a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xdadd6d=>{var _0xcd2143=_0xd221a2;this[_0xcd2143(0x155)][_0xcd2143(0x149)]({'eventID':_0x4fb8a9[_0xcd2143(0x162)],'data':{'unitID':this[_0xcd2143(0x156)],'operations':{[_0xdadd6d['id']]:{'id':_0xdadd6d['id'],'params':JSON[_0xcd2143(0x151)](_0xdadd6d['params'])}}}},this['_unitID']);})),_0x33c21b[_0xd221a2(0x158)](_0x5f009c);})),this[_0x320ab2(0x123)][_0x320ab2(0xd8)](this['_unitID'])['forEach'](_0x4b3698=>this[_0x320ab2(0x155)]['send']({'eventID':_0x4fb8a9[_0x320ab2(0x162)],'data':{'unitID':this[_0x320ab2(0x156)],'operations':{[_0x4b3698['id']]:{'id':_0x4b3698['id'],'params':JSON[_0x320ab2(0x151)](_0x4b3698[_0x320ab2(0x15f)])}}}},this['_unitID']));}[_0x5dce64(0x124)](){var _0x343031=_0x5dce64,_0x365b8;this[_0x343031(0x10a)][_0x343031(0x158)](_0x343031(0xed)),(_0x365b8=this[_0x343031(0x113)])==null||_0x365b8[_0x343031(0x169)](),this[_0x343031(0x113)]=null;}[_0x5dce64(0xea)](){var _0x104a1e=_0x5dce64,_0xef00ed;(_0xef00ed=this['_commandDisposable'])==null||_0xef00ed[_0x104a1e(0x169)](),this[_0x104a1e(0x10a)][_0x104a1e(0x158)](_0x104a1e(0x16f));}[_0x5dce64(0x16c)](){var _0x4a163b=_0x5dce64,_0x16225e;this[_0x4a163b(0x10a)][_0x4a163b(0x158)](_0x4a163b(0xed)),(_0x16225e=this[_0x4a163b(0x113)])==null||_0x16225e[_0x4a163b(0x169)](),this['_commandDisposable']=null;}[_0x5dce64(0x172)](){var _0x495d66=_0x5dce64,_0x2b085f;this[_0x495d66(0x10a)][_0x495d66(0x158)](_0x495d66(0x127)),(_0x2b085f=this[_0x495d66(0x113)])==null||_0x2b085f[_0x495d66(0x169)]();}[_0x5dce64(0x164)](_0x1a9d61){var _0xa9bb13=_0x5dce64;if(['presenting',_0xa9bb13(0x127),_0xa9bb13(0x125)]['includes'](this[_0xa9bb13(0x13d)])||!_0x1a9d61[_0xa9bb13(0x112)][_0xa9bb13(0xf7)]||_0x1a9d61['data'][_0xa9bb13(0xf7)]===this[_0xa9bb13(0x155)][_0xa9bb13(0x102)]())return;this[_0xa9bb13(0x13d)]===_0xa9bb13(0xed)&&this[_0xa9bb13(0xea)]();const _0x45df9d=_0x1a9d61[_0xa9bb13(0x112)][_0xa9bb13(0x14a)];Object[_0xa9bb13(0x148)](_0x45df9d)[_0xa9bb13(0x13a)](_0x2f0ea3=>{var _0x503c22=_0xa9bb13;this[_0x503c22(0x107)][_0x503c22(0x176)](_0x2f0ea3['id'],_0x2f0ea3[_0x503c22(0x15f)]?JSON['parse'](_0x2f0ea3[_0x503c22(0x15f)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1aa416=_0x5dce64,_0x11572c;this[_0x1aa416(0x10a)][_0x1aa416(0x158)](_0x1aa416(0x125)),(_0x11572c=this[_0x1aa416(0x113)])==null||_0x11572c[_0x1aa416(0x169)]();}['_handleOnline'](){var _0x406f27=_0x5dce64;this['_status$']['next'](_0x406f27(0xed)),this['_fetchOperations']();}};w=B([f(0x2,_0x27ce9b),f(0x3,_0x1e5587(x)),f(0x4,_0x14f85f)],w);function Te(){var _0x46d56a=_0x5dce64;const _0x5cf839=_0xcf9528(I),_0x30e728=_0xcf9528(_0x4922bf),_0x383a69=_0x4e1cd1(()=>_0x30e728['getCurrentTypeOfUnit$'](_0x313139[_0x46d56a(0x15b)]),void 0x0,!0x1,[]),[_0x3a42e3,_0x4532fb]=_0xc0591e(null),[_0x13c14f,_0x2210a2]=_0xc0591e(h[_0x46d56a(0x16e)]),_0xec5b8a=_0x4b44aa(null);return _0x19ab33(()=>(_0x383a69&&_0x5cf839[_0x46d56a(0xe5)](_0x383a69[_0x46d56a(0x11c)]())['then'](_0x28bf8a=>{var _0x5c3536=_0x46d56a;_0x4532fb(_0x28bf8a),_0xec5b8a[_0x5c3536(0x150)]=_0x28bf8a[_0x5c3536(0xca)][_0x5c3536(0xff)](_0x43d67a=>{_0x2210a2(_0x43d67a);});}),()=>{var _0x20f6a8=_0x46d56a,_0x390e66;(_0x390e66=_0xec5b8a[_0x20f6a8(0x150)])==null||_0x390e66[_0x20f6a8(0x12a)](),_0xec5b8a[_0x20f6a8(0x150)]=null;}),[_0x383a69,_0x5cf839]),_0x3a42e3?_0x58fdcd(_0x139a0f,{'align':_0x46d56a(0x136),'disabled':_0x13c14f===h[_0x46d56a(0xf2)],'className':_0x46d56a(0x138),'overlay':_0x58fdcd($e,{'status':_0x13c14f,'coordinator':_0x3a42e3}),'children':_0x58fdcd(_0x46d56a(0x159),{'className':_0x5492e8(_0x46d56a(0x100),{'univer-cursor-not-allowed':_0x13c14f===h[_0x46d56a(0xf2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13c14f!==h['OFFLINE']}),'type':_0x46d56a(0x159),'children':_0x58fdcd(z,{'className':_0x46d56a(0x15e)})})}):null;}function $e(_0x513d36){var _0x1c0f4c=_0x5dce64;const {status:_0x52d771,coordinator:_0x5c04e8}=_0x513d36;switch(_0x52d771){case h[_0x1c0f4c(0x16e)]:return _0x58fdcd(Fe,{'coordinator':_0x5c04e8});case h['FOLLOWING']:return _0x58fdcd(He,{'coordinator':_0x5c04e8});case h[_0x1c0f4c(0x170)]:return _0x58fdcd(je,{'coordinator':_0x5c04e8});case h[_0x1c0f4c(0xf2)]:return _0x58fdcd(Ve,{});case h[_0x1c0f4c(0x15c)]:return _0x58fdcd(Ue,{'coordinator':_0x5c04e8});default:return null;}}function Fe(_0x5bb3db){var _0x472c06=_0x5dce64;const {coordinator:_0x3713bd}=_0x5bb3db;return _0xa80b7a(_0x29f11a,{'children':[_0x58fdcd('div',{'className':_0x472c06(0x166),'children':_0x472c06(0x173)}),_0x58fdcd(_0x45a343,{'size':_0x472c06(0xdb),'type':_0x472c06(0xec),'onClick':()=>_0x3713bd[_0x472c06(0x122)](),'children':_0x472c06(0x181)})]});}function He(_0x25c90a){var _0x34463e=_0x5dce64;const {coordinator:_0x5c756f}=_0x25c90a;return _0xa80b7a(_0x29f11a,{'children':[_0x58fdcd(_0x34463e(0xf9),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x34463e(0x10f)}),_0x58fdcd(_0x45a343,{'size':_0x34463e(0xdb),'type':_0x34463e(0xec),'onClick':()=>_0x5c756f[_0x34463e(0x101)](),'children':_0x34463e(0xcc)})]});}function je(_0x56f503){var _0x29f4b6=_0x5dce64;const {coordinator:_0x16bbd0}=_0x56f503;return _0xa80b7a(_0x29f11a,{'children':[_0x58fdcd(_0x29f4b6(0xf9),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x29f4b6(0x145)}),_0x58fdcd(_0x45a343,{'size':_0x29f4b6(0xdb),'type':_0x29f4b6(0x15a),'onClick':()=>_0x16bbd0['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x5021df){var _0x47a777=_0x5dce64;const {coordinator:_0x544b3d}=_0x5021df;return _0xa80b7a(_0x29f11a,{'children':[_0x58fdcd(_0x47a777(0xf9),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x47a777(0xf8)}),_0x58fdcd(_0x45a343,{'size':_0x47a777(0xdb),'type':'default','onClick':()=>_0x544b3d[_0x47a777(0xe2)](),'children':_0x47a777(0x13b)})]});}function Ve(){var _0x200ecb=_0x5dce64;return _0x58fdcd(_0x29f11a,{'children':_0x200ecb(0x12c)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x779ede,_0x64b6d7,_0x220eb5,_0x30c3d6)=>{var _0x1f7858=_0x5dce64;for(var _0x4d4bb5=_0x30c3d6>0x1?void 0x0:_0x30c3d6?Me(_0x64b6d7,_0x220eb5):_0x64b6d7,_0xabc13f=_0x779ede[_0x1f7858(0x12b)]-0x1,_0x55f500;_0xabc13f>=0x0;_0xabc13f--)(_0x55f500=_0x779ede[_0xabc13f])&&(_0x4d4bb5=_0x55f500(_0x4d4bb5)||_0x4d4bb5);return _0x4d4bb5;},$=(_0x32d025,_0x135f0b)=>(_0x467331,_0x3fe50c)=>_0x135f0b(_0x467331,_0x3fe50c,_0x32d025);let b=class extends _0xf636d9{constructor(_0x1f8754,_0x378bb0){var _0x5e683d=_0x5dce64;super(),this['_injector']=_0x1f8754,this[_0x5e683d(0x152)]=_0x378bb0,this[_0x5e683d(0xd7)]();}[_0x5dce64(0xd7)](){var _0x537914=_0x5dce64;this[_0x537914(0x104)](this['_uiPartsService'][_0x537914(0xe9)](_0x5ee4e0[_0x537914(0xf6)],()=>_0x45002c(Te,this[_0x537914(0x179)])));}};b=ke([$(0x0,_0x1e5587(_0x28bf4d)),$(0x1,_0x17675f)],b);var Ge=Object['defineProperty'],We=Object[_0x5dce64(0xf0)],Ye=(_0xad9594,_0x354d55,_0x5c7c62)=>_0x354d55 in _0xad9594?Ge(_0xad9594,_0x354d55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c7c62}):_0xad9594[_0x354d55]=_0x5c7c62,ze=(_0x376a46,_0x114a36,_0x358146,_0x4a3f2c)=>{for(var _0x451ddd=_0x4a3f2c>0x1?void 0x0:_0x4a3f2c?We(_0x114a36,_0x358146):_0x114a36,_0xfea391=_0x376a46['length']-0x1,_0x13de47;_0xfea391>=0x0;_0xfea391--)(_0x13de47=_0x376a46[_0xfea391])&&(_0x451ddd=_0x13de47(_0x451ddd)||_0x451ddd);return _0x451ddd;},F=(_0x325c6c,_0x5bde02)=>(_0x483194,_0x18622e)=>_0x5bde02(_0x483194,_0x18622e,_0x325c6c),Z=(_0x12310c,_0x17b51,_0x59aa50)=>Ye(_0x12310c,typeof _0x17b51!=_0x5dce64(0x13c)?_0x17b51+'':_0x17b51,_0x59aa50);const Be=_0x5dce64(0xdf);let O=class extends _0x324dd1{constructor(_0x2bbcf7=T,_0x14ad69,_0x3be840){var _0x2ef597=_0x5dce64;super(),this['_config']=_0x2bbcf7,this[_0x2ef597(0x179)]=_0x14ad69,this[_0x2ef597(0x165)]=_0x3be840;const {..._0x293220}=_0x29ff0b({},T,this[_0x2ef597(0xcf)]);this[_0x2ef597(0x165)][_0x2ef597(0x153)](Oe,_0x293220);}[_0x5dce64(0x117)](){var _0x2b317f=_0x5dce64;_0x1f437d(this['_injector'],_0x5a83dd([[x],[I],[m],[b]],this['_config'][_0x2b317f(0x17d)])),_0x45274e(this['_injector'],[[m]]);}[_0x5dce64(0x14b)](){var _0x30aab9=_0x5dce64;_0x45274e(this[_0x30aab9(0x179)],[[b]]);}};Z(O,_0x5dce64(0xe0),_0x313139[_0x5dce64(0xe1)]),Z(O,'pluginName',Be),O=ze([_0x41fdd9(_0x2f441b),F(0x1,_0x1e5587(_0x28bf4d)),F(0x2,_0x27ce9b)],O);function _0x263d(_0x9e0ab,_0x30b673){var _0xd2abd=_0xd2ab();return _0x263d=function(_0x263d12,_0x12fbc4){_0x263d12=_0x263d12-0xca;var _0x5352af=_0xd2abd[_0x263d12];return _0x5352af;},_0x263d(_0x9e0ab,_0x30b673);}export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x86e20f=_0x1a7a;(function(_0x4d487f,_0x7da61b){var _0x1d9df6=_0x1a7a,_0x4c46c9=_0x4d487f();while(!![]){try{var _0x158e74=parseInt(_0x1d9df6(0x11c))/0x1*(-parseInt(_0x1d9df6(0x12a))/0x2)+parseInt(_0x1d9df6(0xf8))/0x3*(-parseInt(_0x1d9df6(0xe4))/0x4)+parseInt(_0x1d9df6(0x94))/0x5*(-parseInt(_0x1d9df6(0xe2))/0x6)+-parseInt(_0x1d9df6(0x9d))/0x7+-parseInt(_0x1d9df6(0x122))/0x8+-parseInt(_0x1d9df6(0x83))/0x9+-parseInt(_0x1d9df6(0x8f))/0xa*(-parseInt(_0x1d9df6(0xdb))/0xb);if(_0x158e74===_0x7da61b)break;else _0x4c46c9['push'](_0x4c46c9['shift']());}catch(_0x4aae6d){_0x4c46c9['push'](_0x4c46c9['shift']());}}}(_0xe19a,0x664c4));var K=Object[_0x86e20f(0xcc)],q=(_0x456d74,_0x272982,_0x41afbe)=>_0x272982 in _0x456d74?K(_0x456d74,_0x272982,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41afbe}):_0x456d74[_0x272982]=_0x41afbe,d=(_0x4edae9,_0x457ac7,_0x35a5c5)=>q(_0x4edae9,typeof _0x457ac7!=_0x86e20f(0xc5)?_0x457ac7+'':_0x457ac7,_0x35a5c5);import{CollaborationSessionService as _0x2c82a7,SessionStatus as _0x3118a2,UniverCollaborationClientPlugin as _0x46e810}from'@univerjs-pro/collaboration-client';import{Disposable as _0x26c534,toDisposable as _0x4dab8a,Inject as _0x4a06c1,IUniverInstanceService as _0x2a716e,Injector as _0x166128,IConfigService as _0x33fb0d,ICommandService as _0x4d2e6d,RxDisposable as _0x1c1304,UniverInstanceType as _0x3f10a8,DisposableCollection as _0x4fe870,CommandType as _0x574ce6,DependentOn as _0x485ccd,Plugin as _0x53f919,merge as _0x32c382,registerDependencies as _0x3299a8,mergeOverrideWithDependencies as _0x1f4dfd,touchDependencies as _0x481da4}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x408e8d,InsertSheetMutation as _0x1db464}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x17b8a5,SetScrollOperation as _0x14473f}from'@univerjs/sheets-ui';import{useDependency as _0x4a3efa,useObservable as _0xc8bb70,IUIPartsService as _0x5aab7e,BuiltInUIPart as _0x56d703,connectInjector as _0x34c847}from'@univerjs/ui';import{jsx as _0x24b9e5,jsxs as _0x484111,Fragment as _0x1da64c}from'react/jsx-runtime';import{Dropdown as _0x417c98,clsx as _0x342114,Button as _0x4fe2d0}from'@univerjs/design';import{forwardRef as _0x626e1f,useRef as _0xe4b184,createElement as _0x17a129,useState as _0x356244,useEffect as _0x420fc1}from'react';import{CollaborationEvent as _0x1213a4,parseProtocolChangeset as _0x37fba0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2812d3,Subject as _0x149bac}from'rxjs';import{takeUntil as _0x2f2eb9,throttleTime as _0x575203}from'rxjs/operators';const Oe=_0x86e20f(0xce),T={};class x extends _0x26c534{constructor(){var _0x26b300=_0x86e20f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x26b300(0xa6),new Set());}[_0x86e20f(0x8d)](_0x3da5fd){var _0x293a6b=_0x86e20f;return this[_0x293a6b(0x12e)][_0x293a6b(0xb8)](_0x3da5fd),_0x4dab8a(()=>this['_sharedOperations'][_0x293a6b(0x129)](_0x3da5fd));}[_0x86e20f(0xd3)](_0x277113){var _0x3a42cc=_0x86e20f;return this['_reporters'][_0x3a42cc(0xb8)](_0x277113),_0x4dab8a(()=>this[_0x3a42cc(0xa6)][_0x3a42cc(0x129)](_0x277113));}[_0x86e20f(0xd6)](_0x18776c){var _0x3bd155=_0x86e20f;return this[_0x3bd155(0x12e)][_0x3bd155(0x87)](_0x18776c);}[_0x86e20f(0x10f)](_0x32b3f3){var _0x42975a=_0x86e20f;return Array[_0x42975a(0x104)](this[_0x42975a(0xa6)])[_0x42975a(0xc9)](_0x371e4a=>_0x371e4a(_0x32b3f3));}}var Ee=Object[_0x86e20f(0x9f)],Ce=(_0x1b2fee,_0x205cf3,_0x110bd2,_0x1034c8)=>{var _0x33e652=_0x86e20f;for(var _0x3aea92=_0x1034c8>0x1?void 0x0:_0x1034c8?Ee(_0x205cf3,_0x110bd2):_0x205cf3,_0x2f3997=_0x1b2fee[_0x33e652(0x110)]-0x1,_0x1cdcea;_0x2f3997>=0x0;_0x2f3997--)(_0x1cdcea=_0x1b2fee[_0x2f3997])&&(_0x3aea92=_0x1cdcea(_0x3aea92)||_0x3aea92);return _0x3aea92;},Ne=(_0x4ec554,_0x5e4de8)=>(_0x8ae875,_0x4afc69)=>_0x5e4de8(_0x8ae875,_0x4afc69,_0x4ec554);let m=class extends _0x26c534{constructor(_0x772af0){var _0x2c0545=_0x86e20f;super(),this[_0x2c0545(0xe7)]=_0x772af0,this[_0x2c0545(0x86)]();}[_0x86e20f(0x86)](){var _0x493fda=_0x86e20f;[_0x17b8a5['id'],_0x14473f['id'],_0x408e8d['id']][_0x493fda(0xb3)](_0x5f4d44=>{var _0x254d8a=_0x493fda;this[_0x254d8a(0xfc)](this['_liveShareService'][_0x254d8a(0x8d)](_0x5f4d44));});}};m=Ce([Ne(0x0,_0x4a06c1(x))],m);var c=function(){var _0x6e7de8=_0x86e20f;return c=Object[_0x6e7de8(0xae)]||function(_0x2a13bb){var _0x20bdfc=_0x6e7de8;for(var _0x5a4da4,_0xee3cd6=0x1,_0x5df9b6=arguments['length'];_0xee3cd6<_0x5df9b6;_0xee3cd6++){_0x5a4da4=arguments[_0xee3cd6];for(var _0x843ee9 in _0x5a4da4)Object['prototype'][_0x20bdfc(0xbe)][_0x20bdfc(0xd8)](_0x5a4da4,_0x843ee9)&&(_0x2a13bb[_0x843ee9]=_0x5a4da4[_0x843ee9]);}return _0x2a13bb;},c['apply'](this,arguments);},we=function(_0x1b95fd,_0x4a1d07){var _0x32aa0c=_0x86e20f,_0x51db57={};for(var _0x226b91 in _0x1b95fd)Object[_0x32aa0c(0xd5)][_0x32aa0c(0xbe)][_0x32aa0c(0xd8)](_0x1b95fd,_0x226b91)&&_0x4a1d07[_0x32aa0c(0xa2)](_0x226b91)<0x0&&(_0x51db57[_0x226b91]=_0x1b95fd[_0x226b91]);if(_0x1b95fd!=null&&typeof Object['getOwnPropertySymbols']==_0x32aa0c(0xcd)){for(var _0x1cfdf8=0x0,_0x226b91=Object['getOwnPropertySymbols'](_0x1b95fd);_0x1cfdf8<_0x226b91[_0x32aa0c(0x110)];_0x1cfdf8++)_0x4a1d07['indexOf'](_0x226b91[_0x1cfdf8])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x32aa0c(0xd8)](_0x1b95fd,_0x226b91[_0x1cfdf8])&&(_0x51db57[_0x226b91[_0x1cfdf8]]=_0x1b95fd[_0x226b91[_0x1cfdf8]]);}return _0x51db57;},W=_0x626e1f(function(_0xa5f075,_0x556728){var _0x13aca7=_0x86e20f,_0x3e56ae=_0xa5f075['icon'],_0x2d11f=_0xa5f075['id'],_0x348598=_0xa5f075[_0x13aca7(0x107)],_0x1e1623=_0xa5f075[_0x13aca7(0xba)],_0x25fb8b=we(_0xa5f075,[_0x13aca7(0x124),'id','className',_0x13aca7(0xba)]),_0x5b6624='univerjs-icon\x20univerjs-icon-'['concat'](_0x2d11f,'\x20')[_0x13aca7(0xbd)](_0x348598||'')[_0x13aca7(0xdc)](),_0x7b6cf7=_0xe4b184('_'[_0x13aca7(0xbd)](xe()));return Y(_0x3e56ae,''[_0x13aca7(0xbd)](_0x2d11f),{'defIds':_0x3e56ae[_0x13aca7(0x10c)],'idSuffix':_0x7b6cf7[_0x13aca7(0x118)]},c({'ref':_0x556728,'className':_0x5b6624},_0x25fb8b),_0x1e1623);});function Y(_0x4fd01b,_0x44b3d4,_0x2a7175,_0x21b8f9,_0x53ed61){var _0x54ff78=_0x86e20f;return _0x17a129(_0x4fd01b[_0x54ff78(0xdf)],c(c({'key':_0x44b3d4},De(_0x4fd01b,_0x2a7175,_0x53ed61)),_0x21b8f9),(Le(_0x4fd01b,_0x2a7175)[_0x54ff78(0xf5)]||[])[_0x54ff78(0xc9)](function(_0x960f13,_0x28655f){var _0x53fa21=_0x54ff78;return Y(_0x960f13,''[_0x53fa21(0xbd)](_0x44b3d4,'-')[_0x53fa21(0xbd)](_0x4fd01b['tag'],'-')['concat'](_0x28655f),_0x2a7175,void 0x0,_0x53ed61);}));}function De(_0x2ebd2f,_0x35b9a6,_0x177d55){var _0xa4f6ec=_0x86e20f,_0x20f7bc=c({},_0x2ebd2f[_0xa4f6ec(0x120)]);_0x177d55!=null&&_0x177d55[_0xa4f6ec(0x121)]&&_0x20f7bc[_0xa4f6ec(0xa4)]==='colorChannel1'&&(_0x20f7bc[_0xa4f6ec(0xa4)]=_0x177d55['colorChannel1']),_0x2ebd2f[_0xa4f6ec(0xdf)]==='mask'&&_0x20f7bc['id']&&(_0x20f7bc['id']=_0x20f7bc['id']+_0x35b9a6[_0xa4f6ec(0x93)]),Object[_0xa4f6ec(0xcb)](_0x20f7bc)[_0xa4f6ec(0xb3)](function(_0x52af14){var _0x835289=_0xa4f6ec,_0x4aabe8=_0x52af14[0x0],_0x8bc0a1=_0x52af14[0x1];_0x4aabe8===_0x835289(0x9b)&&typeof _0x8bc0a1==_0x835289(0xd1)&&(_0x20f7bc[_0x4aabe8]=_0x8bc0a1[_0x835289(0x106)](/url\(#(.*)\)/,_0x835289(0x10e)[_0x835289(0xbd)](_0x35b9a6[_0x835289(0x93)],')')));});var _0x51715b=_0x35b9a6[_0xa4f6ec(0x10c)];return!_0x51715b||_0x51715b[_0xa4f6ec(0x110)]===0x0||(_0x2ebd2f[_0xa4f6ec(0xdf)]==='use'&&_0x20f7bc[_0xa4f6ec(0x95)]&&(_0x20f7bc[_0xa4f6ec(0x95)]=_0x20f7bc['xlink:href']+_0x35b9a6['idSuffix']),Object['entries'](_0x20f7bc)['forEach'](function(_0xcee146){var _0x554e32=_0xa4f6ec,_0x6946df=_0xcee146[0x0],_0x391a23=_0xcee146[0x1];typeof _0x391a23==_0x554e32(0xd1)&&(_0x20f7bc[_0x6946df]=_0x391a23[_0x554e32(0x106)](/url\(#(.*)\)/,_0x554e32(0x10e)[_0x554e32(0xbd)](_0x35b9a6[_0x554e32(0x93)],')')));})),_0x20f7bc;}function Le(_0x48678c,_0xe391a9){var _0x430b1d=_0x86e20f,_0x1383db,_0x1775b7=_0xe391a9[_0x430b1d(0x10c)];return!_0x1775b7||_0x1775b7[_0x430b1d(0x110)]===0x0?_0x48678c:_0x48678c[_0x430b1d(0xdf)]===_0x430b1d(0xca)&&(!((_0x1383db=_0x48678c[_0x430b1d(0xf5)])===null||_0x1383db===void 0x0)&&_0x1383db['length'])?c(c({},_0x48678c),{'children':_0x48678c[_0x430b1d(0xf5)]['map'](function(_0x159656){var _0x5538ec=_0x430b1d;return typeof _0x159656[_0x5538ec(0x120)]['id']=='string'&&_0x1775b7&&_0x1775b7[_0x5538ec(0xa2)](_0x159656[_0x5538ec(0x120)]['id'])>-0x1?c(c({},_0x159656),{'attrs':c(c({},_0x159656[_0x5538ec(0x120)]),{'id':_0x159656[_0x5538ec(0x120)]['id']+_0xe391a9['idSuffix']})}):_0x159656;})}):_0x48678c;}function xe(){var _0x536dae=_0x86e20f;return Math['random']()[_0x536dae(0xff)](0x24)[_0x536dae(0xad)](0x2,0x8);}W['displayName']=_0x86e20f(0xc7);var ye={'tag':'svg','attrs':{'fill':_0x86e20f(0xe3),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x86e20f(0xb0),'attrs':{'fill':'currentColor','d':_0x86e20f(0x11e)}},{'tag':_0x86e20f(0xb0),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x86e20f(0xa9),'clipRule':_0x86e20f(0xa9)}}]},z=_0x626e1f(function(_0x56cc06,_0x1e5b7d){var _0x2139b2=_0x86e20f;return _0x17a129(W,Object[_0x2139b2(0xae)]({},_0x56cc06,{'id':_0x2139b2(0x97),'ref':_0x1e5b7d,'icon':ye}));});z[_0x86e20f(0xfb)]=_0x86e20f(0xf9);var Re=Object[_0x86e20f(0x9f)],B=(_0x405ce3,_0x5bdac6,_0x11f610,_0x2546b9)=>{var _0xd2af50=_0x86e20f;for(var _0x556575=_0x2546b9>0x1?void 0x0:_0x2546b9?Re(_0x5bdac6,_0x11f610):_0x5bdac6,_0x3fac0e=_0x405ce3[_0xd2af50(0x110)]-0x1,_0x5a3bab;_0x3fac0e>=0x0;_0x3fac0e--)(_0x5a3bab=_0x405ce3[_0x3fac0e])&&(_0x556575=_0x5a3bab(_0x556575)||_0x556575);return _0x556575;},f=(_0x52d25f,_0x1f3421)=>(_0x2d35ee,_0x45cf94)=>_0x1f3421(_0x2d35ee,_0x45cf94,_0x52d25f);let I=class extends _0x1c1304{constructor(_0x40fab1,_0x56d394,_0x1482a6){var _0x13eff4=_0x86e20f;super(),d(this,_0x13eff4(0xb2),new Map()),(this['_univerInstanceService']=_0x40fab1,this[_0x13eff4(0x8a)]=_0x56d394,this[_0x13eff4(0x127)]=_0x1482a6,this[_0x13eff4(0x86)]());}async['getLiveShareCoordinator'](_0x4e753e){var _0x42abd8=_0x86e20f;return this[_0x42abd8(0xb2)]['has'](_0x4e753e)||await this[_0x42abd8(0xdd)](_0x4e753e),this[_0x42abd8(0xb2)][_0x42abd8(0xa0)](_0x4e753e);}[_0x86e20f(0x86)](){var _0x532405=_0x86e20f;this[_0x532405(0xac)][_0x532405(0x116)](_0x3f10a8[_0x532405(0xab)])[_0x532405(0xd9)](_0x2f2eb9(this['dispose$']))[_0x532405(0xa7)](async _0xf25864=>{var _0x501067=_0x532405;const _0x4db5cd=_0xf25864[_0x501067(0x12c)]();this[_0x501067(0xb2)][_0x501067(0x87)](_0x4db5cd)||this[_0x501067(0xdd)](_0x4db5cd);}),this[_0x532405(0xac)][_0x532405(0x119)](_0x3f10a8['UNIVER_SHEET'])[_0x532405(0xd9)](_0x2f2eb9(this[_0x532405(0xe0)]))['subscribe'](_0x11804e=>{var _0x5142a1=_0x532405;const _0x19ca24=_0x11804e['getUnitId'](),_0x2d339b=this[_0x5142a1(0xb2)][_0x5142a1(0xa0)](_0x19ca24);_0x2d339b==null||_0x2d339b[_0x5142a1(0x84)]();});}async[_0x86e20f(0xdd)](_0x453ab6){var _0x197f74=_0x86e20f;const _0x5c62b7=await this['_collabSessionService'][_0x197f74(0x11d)](_0x453ab6),_0x259e39=this[_0x197f74(0x8a)][_0x197f74(0x81)](w,_0x453ab6,_0x5c62b7);return _0x259e39[_0x197f74(0xc4)](),this[_0x197f74(0xb2)][_0x197f74(0xe6)](_0x453ab6,_0x259e39),_0x259e39;}};I=B([f(0x0,_0x2a716e),f(0x1,_0x4a06c1(_0x166128)),f(0x2,_0x4a06c1(_0x2c82a7))],I);var h=(_0x1b797b=>(_0x1b797b['OFFLINE']=_0x86e20f(0x9e),_0x1b797b[_0x86e20f(0x91)]=_0x86e20f(0x108),_0x1b797b['FOLLOWING']='following',_0x1b797b[_0x86e20f(0xb7)]=_0x86e20f(0x8b),_0x1b797b[_0x86e20f(0x89)]=_0x86e20f(0xf3),_0x1b797b))(h||{});const Pe=_0x86e20f(0xef),Ae=0xc8;let w=class extends _0x1c1304{constructor(_0x1f65aa,_0x4772ec,_0x2ebe72,_0x3b179f,_0x24c51b){var _0x45315a=_0x86e20f;super(),d(this,_0x45315a(0xaf),new _0x2812d3(_0x45315a(0x108))),d(this,_0x45315a(0xb6),this['_status$'][_0x45315a(0x105)]()),d(this,_0x45315a(0x86),!0x1),d(this,_0x45315a(0xf4),null),d(this,_0x45315a(0xc6),null),(this[_0x45315a(0xc3)]=_0x1f65aa,this['_collabSession']=_0x4772ec,this[_0x45315a(0x128)]=_0x2ebe72,this['_liveShareService']=_0x3b179f,this['_commandService']=_0x24c51b);}get[_0x86e20f(0x12b)](){var _0x30b090=_0x86e20f;return this[_0x30b090(0xaf)][_0x30b090(0xa8)]();}[_0x86e20f(0x84)](){var _0x1efa83=_0x86e20f,_0x1cfeb4;(_0x1cfeb4=this['_commandDisposable'])==null||_0x1cfeb4[_0x1efa83(0x84)](),this[_0x1efa83(0xaf)][_0x1efa83(0xd4)]('idle'),this[_0x1efa83(0xaf)]['complete']();}[_0x86e20f(0xc4)](){var _0x57e50e=_0x86e20f;this[_0x57e50e(0x86)]||(this[_0x57e50e(0x86)]=!0x0,this[_0x57e50e(0xaa)]['sessionStatus$'][_0x57e50e(0xd9)](_0x2f2eb9(this[_0x57e50e(0xe0)]))['subscribe'](_0x44d0cf=>{var _0x235d98=_0x57e50e;switch(_0x44d0cf){case _0x3118a2[_0x235d98(0x85)]:this[_0x235d98(0xcf)]();break;case _0x3118a2['ONLINE']:this['_handleOnline']();break;}}),this[_0x57e50e(0xaa)]['event$']['pipe'](_0x2f2eb9(this[_0x57e50e(0xe0)]))[_0x57e50e(0xa7)](_0x55d1e4=>{var _0x5ce985=_0x57e50e;const {eventID:_0x1d1457}=_0x55d1e4;switch(_0x1d1457){case _0x1213a4[_0x5ce985(0x10b)]:this[_0x5ce985(0x8e)](_0x55d1e4);break;case _0x1213a4[_0x5ce985(0xf0)]:this[_0x5ce985(0xa1)](_0x55d1e4);break;case _0x1213a4[_0x5ce985(0xf6)]:this['_handleTerminate']();break;case _0x1213a4[_0x5ce985(0x88)]:this[_0x5ce985(0xeb)](_0x55d1e4);break;}}));}[_0x86e20f(0xe1)](){var _0x2fb864=_0x86e20f;this[_0x2fb864(0xaa)][_0x2fb864(0xfa)]({'eventID':_0x1213a4[_0x2fb864(0xf1)],'data':{'unitID':this[_0x2fb864(0xc3)],'userID':this[_0x2fb864(0xaa)][_0x2fb864(0x102)]()}},this['_unitID']);}[_0x86e20f(0x123)](){var _0x436be6=_0x86e20f;this[_0x436be6(0x12b)]===_0x436be6(0xf3)&&(this[_0x436be6(0xaf)][_0x436be6(0xd4)](_0x436be6(0x108)),this[_0x436be6(0xaa)][_0x436be6(0xfa)]({'eventID':_0x1213a4[_0x436be6(0xf6)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x86e20f(0xec)](){var _0x5aeec2=_0x86e20f;this[_0x5aeec2(0x12b)]===_0x5aeec2(0x8b)&&(this[_0x5aeec2(0xaf)][_0x5aeec2(0xd4)](_0x5aeec2(0x8c)),this[_0x5aeec2(0x10a)]());}['stopFollowing'](){var _0x450a93=_0x86e20f;this[_0x450a93(0x12b)]===_0x450a93(0x8c)&&this[_0x450a93(0x80)]();}[_0x86e20f(0x8e)](_0x2952f8){var _0x1b88fa=_0x86e20f;const {presenter:_0x144728}=_0x2952f8[_0x1b88fa(0x114)],_0x552dd9=this[_0x1b88fa(0xaa)][_0x1b88fa(0x102)]();this[_0x1b88fa(0xc6)]=_0x144728,_0x144728===_0x552dd9?(this['_stopFollowing'](),this[_0x1b88fa(0x99)]()):this[_0x1b88fa(0x12b)]!=='not-following'&&(this[_0x1b88fa(0xb9)](),this[_0x1b88fa(0x10a)]());}[_0x86e20f(0x112)](){var _0xfe36ae=_0x86e20f;const _0x41c042={'eventID':_0x1213a4[_0xfe36ae(0xd0)]};this[_0xfe36ae(0xaa)][_0xfe36ae(0xfa)](_0x41c042,this[_0xfe36ae(0xc3)]);}[_0x86e20f(0xed)](){var _0x195278=_0x86e20f;this[_0x195278(0xc6)]=null,this[_0x195278(0x12b)]!==_0x195278(0xf3)&&this[_0x195278(0xde)]();}[_0x86e20f(0xeb)](_0x313dfb){var _0x142501=_0x86e20f;if(this['_status']===_0x142501(0x8c)&&this[_0x142501(0xc6)]===_0x313dfb[_0x142501(0x114)]['memberID']){const _0x3e7b44=_0x37fba0(_0x313dfb['data'])['mutations']['reverse']()[_0x142501(0x11a)](_0x439316=>_0x439316['id']===_0x1db464['id']);if(_0x3e7b44){const _0x110cda=_0x3e7b44[_0x142501(0xe9)][_0x142501(0x11b)],_0x4ea62b=_0x3e7b44[_0x142501(0xe9)][_0x142501(0x96)]['id'];setTimeout(()=>{var _0x426362=_0x142501;this[_0x426362(0x9c)][_0x426362(0x100)](_0x408e8d['id'],{'unitId':_0x110cda,'subUnitId':_0x4ea62b},{'fromCollab':!0x0});});}}}[_0x86e20f(0x99)](){var _0x16b288=_0x86e20f;this[_0x16b288(0xaf)]['next']('presenting');const _0x495fdb=new Map(),_0x2cdb8f=this['_commandDisposable']=new _0x4fe870();_0x2cdb8f['add'](_0x4dab8a(()=>{var _0x449d5d=_0x16b288;_0x495fdb['forEach'](_0x4ddcf1=>_0x4ddcf1[_0x449d5d(0x98)]()),_0x495fdb[_0x449d5d(0x109)]();})),_0x2cdb8f[_0x16b288(0xb8)](this[_0x16b288(0x9c)][_0x16b288(0xe5)](_0x108718=>{var _0x4ffaf1=_0x16b288,_0x3c843f;if(_0x108718[_0x4ffaf1(0x111)]!==_0x574ce6[_0x4ffaf1(0xb1)]||!this[_0x4ffaf1(0xe7)][_0x4ffaf1(0xd6)](_0x108718['id']))return;const {id:_0x123978}=_0x108718;let _0x16218c;_0x495fdb[_0x4ffaf1(0x87)](_0x123978)?_0x16218c=_0x495fdb[_0x4ffaf1(0xa0)](_0x123978):(_0x16218c=new _0x149bac(),_0x495fdb[_0x4ffaf1(0xe6)](_0x123978,_0x16218c),_0x16218c[_0x4ffaf1(0xd9)](_0x575203((_0x3c843f=this[_0x4ffaf1(0x128)]['getConfig'](Pe))!=null?_0x3c843f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ffaf1(0xa7)](_0x39299c=>{var _0x1e8ecc=_0x4ffaf1;this[_0x1e8ecc(0xaa)]['send']({'eventID':_0x1213a4[_0x1e8ecc(0xf0)],'data':{'unitID':this[_0x1e8ecc(0xc3)],'operations':{[_0x39299c['id']]:{'id':_0x39299c['id'],'params':JSON[_0x1e8ecc(0x101)](_0x39299c[_0x1e8ecc(0xe9)])}}}},this[_0x1e8ecc(0xc3)]);})),_0x16218c[_0x4ffaf1(0xd4)](_0x108718);})),this[_0x16b288(0xe7)][_0x16b288(0x10f)](this[_0x16b288(0xc3)])[_0x16b288(0xb3)](_0x382793=>this[_0x16b288(0xaa)][_0x16b288(0xfa)]({'eventID':_0x1213a4[_0x16b288(0xf0)],'data':{'unitID':this[_0x16b288(0xc3)],'operations':{[_0x382793['id']]:{'id':_0x382793['id'],'params':JSON['stringify'](_0x382793[_0x16b288(0xe9)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x286199=_0x86e20f,_0x16b033;this['_status$'][_0x286199(0xd4)]('idle'),(_0x16b033=this[_0x286199(0xf4)])==null||_0x16b033[_0x286199(0x84)](),this[_0x286199(0xf4)]=null;}[_0x86e20f(0x10a)](){var _0x2657df=_0x86e20f,_0x461180;(_0x461180=this[_0x2657df(0xf4)])==null||_0x461180[_0x2657df(0x84)](),this[_0x2657df(0xaf)][_0x2657df(0xd4)](_0x2657df(0x8c));}[_0x86e20f(0xde)](){var _0x29436c=_0x86e20f,_0x4381cd;this['_status$'][_0x29436c(0xd4)](_0x29436c(0x108)),(_0x4381cd=this['_commandDisposable'])==null||_0x4381cd[_0x29436c(0x84)](),this[_0x29436c(0xf4)]=null;}[_0x86e20f(0x80)](){var _0x5b5d03=_0x86e20f,_0x5e1be3;this[_0x5b5d03(0xaf)][_0x5b5d03(0xd4)](_0x5b5d03(0x8b)),(_0x5e1be3=this[_0x5b5d03(0xf4)])==null||_0x5e1be3[_0x5b5d03(0x84)]();}[_0x86e20f(0xa1)](_0x5f79c9){var _0x32ec27=_0x86e20f;if([_0x32ec27(0xf3),_0x32ec27(0x8b),_0x32ec27(0x9e)]['includes'](this[_0x32ec27(0x12b)])||!_0x5f79c9['data'][_0x32ec27(0x92)]||_0x5f79c9[_0x32ec27(0x114)][_0x32ec27(0x92)]===this[_0x32ec27(0xaa)][_0x32ec27(0x102)]())return;this['_status']===_0x32ec27(0x108)&&this[_0x32ec27(0x10a)]();const _0x5cb58d=_0x5f79c9[_0x32ec27(0x114)]['operations'];Object[_0x32ec27(0xfe)](_0x5cb58d)[_0x32ec27(0xb3)](_0x538989=>{var _0x23e52e=_0x32ec27;this[_0x23e52e(0x9c)][_0x23e52e(0x100)](_0x538989['id'],_0x538989[_0x23e52e(0xe9)]?JSON[_0x23e52e(0x113)](_0x538989[_0x23e52e(0xe9)]):null,{'fromCollab':!0x0});});}[_0x86e20f(0xcf)](){var _0x54c26e=_0x86e20f,_0x5cc460;this[_0x54c26e(0xaf)]['next'](_0x54c26e(0x9e)),(_0x5cc460=this[_0x54c26e(0xf4)])==null||_0x5cc460[_0x54c26e(0x84)]();}[_0x86e20f(0xc0)](){var _0x3a5b6a=_0x86e20f;this[_0x3a5b6a(0xaf)][_0x3a5b6a(0xd4)](_0x3a5b6a(0x108)),this[_0x3a5b6a(0x112)]();}};w=B([f(0x2,_0x33fb0d),f(0x3,_0x4a06c1(x)),f(0x4,_0x4d2e6d)],w);function Te(){var _0x58bd73=_0x86e20f;const _0x2406c8=_0x4a3efa(I),_0x19a405=_0x4a3efa(_0x2a716e),_0x3e8595=_0xc8bb70(()=>_0x19a405[_0x58bd73(0xa3)](_0x3f10a8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x529a66,_0x2107a3]=_0x356244(null),[_0x9a0105,_0x488a00]=_0x356244(h[_0x58bd73(0x91)]),_0x1c8cba=_0xe4b184(null);return _0x420fc1(()=>(_0x3e8595&&_0x2406c8['getLiveShareCoordinator'](_0x3e8595[_0x58bd73(0x12c)]())['then'](_0x43ee52=>{var _0x22e92f=_0x58bd73;_0x2107a3(_0x43ee52),_0x1c8cba[_0x22e92f(0x118)]=_0x43ee52[_0x22e92f(0xb6)][_0x22e92f(0xa7)](_0x175d25=>{_0x488a00(_0x175d25);});}),()=>{var _0x582b1d=_0x58bd73,_0x2bbd44;(_0x2bbd44=_0x1c8cba[_0x582b1d(0x118)])==null||_0x2bbd44[_0x582b1d(0xd2)](),_0x1c8cba[_0x582b1d(0x118)]=null;}),[_0x3e8595,_0x2406c8]),_0x529a66?_0x24b9e5(_0x417c98,{'align':_0x58bd73(0x117),'disabled':_0x9a0105===h[_0x58bd73(0x85)],'className':_0x58bd73(0xda),'overlay':_0x24b9e5($e,{'status':_0x9a0105,'coordinator':_0x529a66}),'children':_0x24b9e5(_0x58bd73(0xb4),{'className':_0x342114(_0x58bd73(0xfd),{'univer-cursor-not-allowed':_0x9a0105===h[_0x58bd73(0x85)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9a0105!==h[_0x58bd73(0x85)]}),'type':_0x58bd73(0xb4),'children':_0x24b9e5(z,{'className':_0x58bd73(0x125)})})}):null;}function _0x1a7a(_0x31e49b,_0x16e928){var _0xe19adc=_0xe19a();return _0x1a7a=function(_0x1a7a90,_0x56e980){_0x1a7a90=_0x1a7a90-0x80;var _0x52bf84=_0xe19adc[_0x1a7a90];return _0x52bf84;},_0x1a7a(_0x31e49b,_0x16e928);}function $e(_0x1ce44b){var _0xf54598=_0x86e20f;const {status:_0x35baf9,coordinator:_0x565093}=_0x1ce44b;switch(_0x35baf9){case h['IDLE']:return _0x24b9e5(Fe,{'coordinator':_0x565093});case h[_0xf54598(0xf2)]:return _0x24b9e5(He,{'coordinator':_0x565093});case h[_0xf54598(0xb7)]:return _0x24b9e5(je,{'coordinator':_0x565093});case h[_0xf54598(0x85)]:return _0x24b9e5(Ve,{});case h[_0xf54598(0x89)]:return _0x24b9e5(Ue,{'coordinator':_0x565093});default:return null;}}function Fe(_0x55b0f9){var _0x47c9a4=_0x86e20f;const {coordinator:_0x13be66}=_0x55b0f9;return _0x484111(_0x1da64c,{'children':[_0x24b9e5('div',{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x47c9a4(0xb5)}),_0x24b9e5(_0x4fe2d0,{'size':_0x47c9a4(0x115),'type':'default','onClick':()=>_0x13be66[_0x47c9a4(0xe1)](),'children':_0x47c9a4(0x10d)})]});}function He(_0x150e31){var _0x539035=_0x86e20f;const {coordinator:_0x344d38}=_0x150e31;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x539035(0x12d),{'className':_0x539035(0xbc),'children':_0x539035(0xea)}),_0x24b9e5(_0x4fe2d0,{'size':_0x539035(0x115),'type':'default','onClick':()=>_0x344d38[_0x539035(0xa5)](),'children':_0x539035(0xbb)})]});}function je(_0xb8e630){var _0x4ee1f7=_0x86e20f;const {coordinator:_0x5deca1}=_0xb8e630;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x4ee1f7(0x12d),{'className':_0x4ee1f7(0xbc),'children':_0x4ee1f7(0x82)}),_0x24b9e5(_0x4fe2d0,{'size':_0x4ee1f7(0x115),'type':_0x4ee1f7(0xc1),'onClick':()=>_0x5deca1[_0x4ee1f7(0xec)](),'children':_0x4ee1f7(0xbf)})]});}function Ue(_0x4b5080){var _0x3e5537=_0x86e20f;const {coordinator:_0x4b33ff}=_0x4b5080;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x3e5537(0x12d),{'className':_0x3e5537(0xbc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x24b9e5(_0x4fe2d0,{'size':_0x3e5537(0x115),'type':_0x3e5537(0xc8),'onClick':()=>_0x4b33ff['stopPresenting'](),'children':_0x3e5537(0xd7)})]});}function Ve(){var _0x946073=_0x86e20f;return _0x24b9e5(_0x1da64c,{'children':_0x946073(0x90)});}var Me=Object[_0x86e20f(0x9f)],ke=(_0x2b8747,_0x273089,_0x8d4a95,_0x370420)=>{var _0x103300=_0x86e20f;for(var _0x349d58=_0x370420>0x1?void 0x0:_0x370420?Me(_0x273089,_0x8d4a95):_0x273089,_0x5c66a7=_0x2b8747[_0x103300(0x110)]-0x1,_0x139d0d;_0x5c66a7>=0x0;_0x5c66a7--)(_0x139d0d=_0x2b8747[_0x5c66a7])&&(_0x349d58=_0x139d0d(_0x349d58)||_0x349d58);return _0x349d58;},$=(_0x18b07d,_0x161e3b)=>(_0x1f4d8e,_0x49d4b4)=>_0x161e3b(_0x1f4d8e,_0x49d4b4,_0x18b07d);let b=class extends _0x26c534{constructor(_0x512e59,_0x1975ab){var _0x340236=_0x86e20f;super(),this[_0x340236(0x8a)]=_0x512e59,this['_uiPartsService']=_0x1975ab,this[_0x340236(0xee)]();}['_mountLiveShare'](){var _0x3468fc=_0x86e20f;this['disposeWithMe'](this['_uiPartsService'][_0x3468fc(0x126)](_0x56d703[_0x3468fc(0x103)],()=>_0x34c847(Te,this['_injector'])));}};b=ke([$(0x0,_0x4a06c1(_0x166128)),$(0x1,_0x5aab7e)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x39f290,_0x41cd1f,_0x96662)=>_0x41cd1f in _0x39f290?Ge(_0x39f290,_0x41cd1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x96662}):_0x39f290[_0x41cd1f]=_0x96662,ze=(_0x938674,_0x13fdb7,_0x11e81f,_0x41561b)=>{var _0x27b64c=_0x86e20f;for(var _0x581502=_0x41561b>0x1?void 0x0:_0x41561b?We(_0x13fdb7,_0x11e81f):_0x13fdb7,_0x353026=_0x938674[_0x27b64c(0x110)]-0x1,_0x170ef2;_0x353026>=0x0;_0x353026--)(_0x170ef2=_0x938674[_0x353026])&&(_0x581502=_0x170ef2(_0x581502)||_0x581502);return _0x581502;},F=(_0x55542e,_0xda98f9)=>(_0x1fcde0,_0x492657)=>_0xda98f9(_0x1fcde0,_0x492657,_0x55542e),Z=(_0x2cf7dc,_0x9983a,_0x161db4)=>Ye(_0x2cf7dc,typeof _0x9983a!=_0x86e20f(0xc5)?_0x9983a+'':_0x9983a,_0x161db4);const Be=_0x86e20f(0xf7);function _0xe19a(){var _0x1faf43=['registerSharedOperation','_handleNewHost','3335740MonMxp','You\x27are\x20offline.','IDLE','presenter','idSuffix','2865fbtsUH','xlink:href','sheet','live-share-single','complete','_startPresenting','_config','mask','_commandService','901901SUpmuP','offline','getOwnPropertyDescriptor','get','_handleOperation','indexOf','getCurrentTypeOfUnit$','fill','stopFollowing','_reporters','subscribe','getValue','evenodd','_collabSession','UNIVER_SHEET','_univerInstanceService','substring','assign','_status$','path','OPERATION','_entities','forEach','button','Present\x20this\x20document','status$','NOT_FOLLOWING','add','_stopPresenting','extend','Stop\x20following','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','concat','hasOwnProperty','Start\x20following','_handleOnline','text','pluginName','_unitID','init','symbol','_presenter','UniverIcon','default','map','defs','entries','defineProperty','function','live-share.config','_handleOffline','LIVESHARE_FETCH_OPERATIONS','string','unsubscribe','registerInitialStateReporter','next','prototype','shouldShareOperation','Stop\x20presenting','call','pipe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','77Lhxdmu','trim','_startLiveShareCoordinator','_beIdle','tag','dispose$','tryStartPresenting','3786eDIguG','none','100eiMnRH','onCommandExecuted','set','_liveShareService','onRendered','params','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','startFollowing','_handleTerminate','_mountLiveShare','SAME_OPERATION_SHARE_INTERVAL','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','FOLLOWING','presenting','_commandDisposable','children','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','50487LWhZJm','LiveShareSingle','send','displayName','disposeWithMe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','values','toString','executeCommand','stringify','getMemberID','HEADER_MENU','from','asObservable','replace','className','idle','clear','_startFollowing','LIVESHARE_NEW_HOST','defIds','Start','url(#$1','getInitialStates','length','type','_fetchOperations','parse','data','small','getTypeOfUnitAdded$','end','current','getTypeOfUnitDisposed$','find','unitId','33vckGgw','requireSession','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','override','attrs','colorChannel1','3502112lSmgbk','stopPresenting','icon','univer-size-4','registerComponent','_collabSessionService','_configService','delete','19802PCZmkF','_status','getUnitId','div','_sharedOperations','_stopFollowing','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','2163402ocNifG','dispose','OFFLINE','_init','has','NEW_CHANGESETS','PRESENTING','_injector','not-following','following'];_0xe19a=function(){return _0x1faf43;};return _0xe19a();}let O=class extends _0x53f919{constructor(_0x63662a=T,_0x41360e,_0x33e415){var _0x26ec0c=_0x86e20f;super(),this[_0x26ec0c(0x9a)]=_0x63662a,this['_injector']=_0x41360e,this[_0x26ec0c(0x128)]=_0x33e415;const {..._0x44495f}=_0x32c382({},T,this[_0x26ec0c(0x9a)]);this[_0x26ec0c(0x128)]['setConfig'](Oe,_0x44495f);}['onStarting'](){var _0x46e4ea=_0x86e20f;_0x3299a8(this[_0x46e4ea(0x8a)],_0x1f4dfd([[x],[I],[m],[b]],this[_0x46e4ea(0x9a)][_0x46e4ea(0x11f)])),_0x481da4(this[_0x46e4ea(0x8a)],[[m]]);}[_0x86e20f(0xe8)](){_0x481da4(this['_injector'],[[b]]);}};Z(O,_0x86e20f(0x111),_0x3f10a8['UNIVER_UNKNOWN']),Z(O,_0x86e20f(0xc2),Be),O=ze([_0x485ccd(_0x46e810),F(0x1,_0x4a06c1(_0x166128)),F(0x2,_0x33fb0d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ var _0x86e20f=_0x1a7a;(function(_0x4d487f,_0x7da61b){var _0x1d9df6=_0x1a7a,_0x4c46c9=_0x4d487f();while(!![]){try{var _0x158e74=parseInt(_0x1d9df6(0x11c))/0x1*(-parseInt(_0x1d9df6(0x12a))/0x2)+parseInt(_0x1d9df6(0xf8))/0x3*(-parseInt(_0x1d9df6(0xe4))/0x4)+parseInt(_0x1d9df6(0x94))/0x5*(-parseInt(_0x1d9df6(0xe2))/0x6)+-parseInt(_0x1d9df6(0x9d))/0x7+-parseInt(_0x1d9df6(0x122))/0x8+-parseInt(_0x1d9df6(0x83))/0x9+-parseInt(_0x1d9df6(0x8f))/0xa*(-parseInt(_0x1d9df6(0xdb))/0xb);if(_0x158e74===_0x7da61b)break;else _0x4c46c9['push'](_0x4c46c9['shift']());}catch(_0x4aae6d){_0x4c46c9['push'](_0x4c46c9['shift']());}}}(_0xe19a,0x664c4));var K=Object[_0x86e20f(0xcc)],q=(_0x456d74,_0x272982,_0x41afbe)=>_0x272982 in _0x456d74?K(_0x456d74,_0x272982,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41afbe}):_0x456d74[_0x272982]=_0x41afbe,d=(_0x4edae9,_0x457ac7,_0x35a5c5)=>q(_0x4edae9,typeof _0x457ac7!=_0x86e20f(0xc5)?_0x457ac7+'':_0x457ac7,_0x35a5c5);import{CollaborationSessionService as _0x2c82a7,SessionStatus as _0x3118a2,UniverCollaborationClientPlugin as _0x46e810}from'@univerjs-pro/collaboration-client';import{Disposable as _0x26c534,toDisposable as _0x4dab8a,Inject as _0x4a06c1,IUniverInstanceService as _0x2a716e,Injector as _0x166128,IConfigService as _0x33fb0d,ICommandService as _0x4d2e6d,RxDisposable as _0x1c1304,UniverInstanceType as _0x3f10a8,DisposableCollection as _0x4fe870,CommandType as _0x574ce6,DependentOn as _0x485ccd,Plugin as _0x53f919,merge as _0x32c382,registerDependencies as _0x3299a8,mergeOverrideWithDependencies as _0x1f4dfd,touchDependencies as _0x481da4}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x408e8d,InsertSheetMutation as _0x1db464}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x17b8a5,SetScrollOperation as _0x14473f}from'@univerjs/sheets-ui';import{useDependency as _0x4a3efa,useObservable as _0xc8bb70,IUIPartsService as _0x5aab7e,BuiltInUIPart as _0x56d703,connectInjector as _0x34c847}from'@univerjs/ui';import{jsx as _0x24b9e5,jsxs as _0x484111,Fragment as _0x1da64c}from'react/jsx-runtime';import{Dropdown as _0x417c98,clsx as _0x342114,Button as _0x4fe2d0}from'@univerjs/design';import{forwardRef as _0x626e1f,useRef as _0xe4b184,createElement as _0x17a129,useState as _0x356244,useEffect as _0x420fc1}from'react';import{CollaborationEvent as _0x1213a4,parseProtocolChangeset as _0x37fba0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2812d3,Subject as _0x149bac}from'rxjs';import{takeUntil as _0x2f2eb9,throttleTime as _0x575203}from'rxjs/operators';const Oe=_0x86e20f(0xce),T={};class x extends _0x26c534{constructor(){var _0x26b300=_0x86e20f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x26b300(0xa6),new Set());}[_0x86e20f(0x8d)](_0x3da5fd){var _0x293a6b=_0x86e20f;return this[_0x293a6b(0x12e)][_0x293a6b(0xb8)](_0x3da5fd),_0x4dab8a(()=>this['_sharedOperations'][_0x293a6b(0x129)](_0x3da5fd));}[_0x86e20f(0xd3)](_0x277113){var _0x3a42cc=_0x86e20f;return this['_reporters'][_0x3a42cc(0xb8)](_0x277113),_0x4dab8a(()=>this[_0x3a42cc(0xa6)][_0x3a42cc(0x129)](_0x277113));}[_0x86e20f(0xd6)](_0x18776c){var _0x3bd155=_0x86e20f;return this[_0x3bd155(0x12e)][_0x3bd155(0x87)](_0x18776c);}[_0x86e20f(0x10f)](_0x32b3f3){var _0x42975a=_0x86e20f;return Array[_0x42975a(0x104)](this[_0x42975a(0xa6)])[_0x42975a(0xc9)](_0x371e4a=>_0x371e4a(_0x32b3f3));}}var Ee=Object[_0x86e20f(0x9f)],Ce=(_0x1b2fee,_0x205cf3,_0x110bd2,_0x1034c8)=>{var _0x33e652=_0x86e20f;for(var _0x3aea92=_0x1034c8>0x1?void 0x0:_0x1034c8?Ee(_0x205cf3,_0x110bd2):_0x205cf3,_0x2f3997=_0x1b2fee[_0x33e652(0x110)]-0x1,_0x1cdcea;_0x2f3997>=0x0;_0x2f3997--)(_0x1cdcea=_0x1b2fee[_0x2f3997])&&(_0x3aea92=_0x1cdcea(_0x3aea92)||_0x3aea92);return _0x3aea92;},Ne=(_0x4ec554,_0x5e4de8)=>(_0x8ae875,_0x4afc69)=>_0x5e4de8(_0x8ae875,_0x4afc69,_0x4ec554);let m=class extends _0x26c534{constructor(_0x772af0){var _0x2c0545=_0x86e20f;super(),this[_0x2c0545(0xe7)]=_0x772af0,this[_0x2c0545(0x86)]();}[_0x86e20f(0x86)](){var _0x493fda=_0x86e20f;[_0x17b8a5['id'],_0x14473f['id'],_0x408e8d['id']][_0x493fda(0xb3)](_0x5f4d44=>{var _0x254d8a=_0x493fda;this[_0x254d8a(0xfc)](this['_liveShareService'][_0x254d8a(0x8d)](_0x5f4d44));});}};m=Ce([Ne(0x0,_0x4a06c1(x))],m);var c=function(){var _0x6e7de8=_0x86e20f;return c=Object[_0x6e7de8(0xae)]||function(_0x2a13bb){var _0x20bdfc=_0x6e7de8;for(var _0x5a4da4,_0xee3cd6=0x1,_0x5df9b6=arguments['length'];_0xee3cd6<_0x5df9b6;_0xee3cd6++){_0x5a4da4=arguments[_0xee3cd6];for(var _0x843ee9 in _0x5a4da4)Object['prototype'][_0x20bdfc(0xbe)][_0x20bdfc(0xd8)](_0x5a4da4,_0x843ee9)&&(_0x2a13bb[_0x843ee9]=_0x5a4da4[_0x843ee9]);}return _0x2a13bb;},c['apply'](this,arguments);},we=function(_0x1b95fd,_0x4a1d07){var _0x32aa0c=_0x86e20f,_0x51db57={};for(var _0x226b91 in _0x1b95fd)Object[_0x32aa0c(0xd5)][_0x32aa0c(0xbe)][_0x32aa0c(0xd8)](_0x1b95fd,_0x226b91)&&_0x4a1d07[_0x32aa0c(0xa2)](_0x226b91)<0x0&&(_0x51db57[_0x226b91]=_0x1b95fd[_0x226b91]);if(_0x1b95fd!=null&&typeof Object['getOwnPropertySymbols']==_0x32aa0c(0xcd)){for(var _0x1cfdf8=0x0,_0x226b91=Object['getOwnPropertySymbols'](_0x1b95fd);_0x1cfdf8<_0x226b91[_0x32aa0c(0x110)];_0x1cfdf8++)_0x4a1d07['indexOf'](_0x226b91[_0x1cfdf8])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x32aa0c(0xd8)](_0x1b95fd,_0x226b91[_0x1cfdf8])&&(_0x51db57[_0x226b91[_0x1cfdf8]]=_0x1b95fd[_0x226b91[_0x1cfdf8]]);}return _0x51db57;},W=_0x626e1f(function(_0xa5f075,_0x556728){var _0x13aca7=_0x86e20f,_0x3e56ae=_0xa5f075['icon'],_0x2d11f=_0xa5f075['id'],_0x348598=_0xa5f075[_0x13aca7(0x107)],_0x1e1623=_0xa5f075[_0x13aca7(0xba)],_0x25fb8b=we(_0xa5f075,[_0x13aca7(0x124),'id','className',_0x13aca7(0xba)]),_0x5b6624='univerjs-icon\x20univerjs-icon-'['concat'](_0x2d11f,'\x20')[_0x13aca7(0xbd)](_0x348598||'')[_0x13aca7(0xdc)](),_0x7b6cf7=_0xe4b184('_'[_0x13aca7(0xbd)](xe()));return Y(_0x3e56ae,''[_0x13aca7(0xbd)](_0x2d11f),{'defIds':_0x3e56ae[_0x13aca7(0x10c)],'idSuffix':_0x7b6cf7[_0x13aca7(0x118)]},c({'ref':_0x556728,'className':_0x5b6624},_0x25fb8b),_0x1e1623);});function Y(_0x4fd01b,_0x44b3d4,_0x2a7175,_0x21b8f9,_0x53ed61){var _0x54ff78=_0x86e20f;return _0x17a129(_0x4fd01b[_0x54ff78(0xdf)],c(c({'key':_0x44b3d4},De(_0x4fd01b,_0x2a7175,_0x53ed61)),_0x21b8f9),(Le(_0x4fd01b,_0x2a7175)[_0x54ff78(0xf5)]||[])[_0x54ff78(0xc9)](function(_0x960f13,_0x28655f){var _0x53fa21=_0x54ff78;return Y(_0x960f13,''[_0x53fa21(0xbd)](_0x44b3d4,'-')[_0x53fa21(0xbd)](_0x4fd01b['tag'],'-')['concat'](_0x28655f),_0x2a7175,void 0x0,_0x53ed61);}));}function De(_0x2ebd2f,_0x35b9a6,_0x177d55){var _0xa4f6ec=_0x86e20f,_0x20f7bc=c({},_0x2ebd2f[_0xa4f6ec(0x120)]);_0x177d55!=null&&_0x177d55[_0xa4f6ec(0x121)]&&_0x20f7bc[_0xa4f6ec(0xa4)]==='colorChannel1'&&(_0x20f7bc[_0xa4f6ec(0xa4)]=_0x177d55['colorChannel1']),_0x2ebd2f[_0xa4f6ec(0xdf)]==='mask'&&_0x20f7bc['id']&&(_0x20f7bc['id']=_0x20f7bc['id']+_0x35b9a6[_0xa4f6ec(0x93)]),Object[_0xa4f6ec(0xcb)](_0x20f7bc)[_0xa4f6ec(0xb3)](function(_0x52af14){var _0x835289=_0xa4f6ec,_0x4aabe8=_0x52af14[0x0],_0x8bc0a1=_0x52af14[0x1];_0x4aabe8===_0x835289(0x9b)&&typeof _0x8bc0a1==_0x835289(0xd1)&&(_0x20f7bc[_0x4aabe8]=_0x8bc0a1[_0x835289(0x106)](/url\(#(.*)\)/,_0x835289(0x10e)[_0x835289(0xbd)](_0x35b9a6[_0x835289(0x93)],')')));});var _0x51715b=_0x35b9a6[_0xa4f6ec(0x10c)];return!_0x51715b||_0x51715b[_0xa4f6ec(0x110)]===0x0||(_0x2ebd2f[_0xa4f6ec(0xdf)]==='use'&&_0x20f7bc[_0xa4f6ec(0x95)]&&(_0x20f7bc[_0xa4f6ec(0x95)]=_0x20f7bc['xlink:href']+_0x35b9a6['idSuffix']),Object['entries'](_0x20f7bc)['forEach'](function(_0xcee146){var _0x554e32=_0xa4f6ec,_0x6946df=_0xcee146[0x0],_0x391a23=_0xcee146[0x1];typeof _0x391a23==_0x554e32(0xd1)&&(_0x20f7bc[_0x6946df]=_0x391a23[_0x554e32(0x106)](/url\(#(.*)\)/,_0x554e32(0x10e)[_0x554e32(0xbd)](_0x35b9a6[_0x554e32(0x93)],')')));})),_0x20f7bc;}function Le(_0x48678c,_0xe391a9){var _0x430b1d=_0x86e20f,_0x1383db,_0x1775b7=_0xe391a9[_0x430b1d(0x10c)];return!_0x1775b7||_0x1775b7[_0x430b1d(0x110)]===0x0?_0x48678c:_0x48678c[_0x430b1d(0xdf)]===_0x430b1d(0xca)&&(!((_0x1383db=_0x48678c[_0x430b1d(0xf5)])===null||_0x1383db===void 0x0)&&_0x1383db['length'])?c(c({},_0x48678c),{'children':_0x48678c[_0x430b1d(0xf5)]['map'](function(_0x159656){var _0x5538ec=_0x430b1d;return typeof _0x159656[_0x5538ec(0x120)]['id']=='string'&&_0x1775b7&&_0x1775b7[_0x5538ec(0xa2)](_0x159656[_0x5538ec(0x120)]['id'])>-0x1?c(c({},_0x159656),{'attrs':c(c({},_0x159656[_0x5538ec(0x120)]),{'id':_0x159656[_0x5538ec(0x120)]['id']+_0xe391a9['idSuffix']})}):_0x159656;})}):_0x48678c;}function xe(){var _0x536dae=_0x86e20f;return Math['random']()[_0x536dae(0xff)](0x24)[_0x536dae(0xad)](0x2,0x8);}W['displayName']=_0x86e20f(0xc7);var ye={'tag':'svg','attrs':{'fill':_0x86e20f(0xe3),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x86e20f(0xb0),'attrs':{'fill':'currentColor','d':_0x86e20f(0x11e)}},{'tag':_0x86e20f(0xb0),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x86e20f(0xa9),'clipRule':_0x86e20f(0xa9)}}]},z=_0x626e1f(function(_0x56cc06,_0x1e5b7d){var _0x2139b2=_0x86e20f;return _0x17a129(W,Object[_0x2139b2(0xae)]({},_0x56cc06,{'id':_0x2139b2(0x97),'ref':_0x1e5b7d,'icon':ye}));});z[_0x86e20f(0xfb)]=_0x86e20f(0xf9);var Re=Object[_0x86e20f(0x9f)],B=(_0x405ce3,_0x5bdac6,_0x11f610,_0x2546b9)=>{var _0xd2af50=_0x86e20f;for(var _0x556575=_0x2546b9>0x1?void 0x0:_0x2546b9?Re(_0x5bdac6,_0x11f610):_0x5bdac6,_0x3fac0e=_0x405ce3[_0xd2af50(0x110)]-0x1,_0x5a3bab;_0x3fac0e>=0x0;_0x3fac0e--)(_0x5a3bab=_0x405ce3[_0x3fac0e])&&(_0x556575=_0x5a3bab(_0x556575)||_0x556575);return _0x556575;},f=(_0x52d25f,_0x1f3421)=>(_0x2d35ee,_0x45cf94)=>_0x1f3421(_0x2d35ee,_0x45cf94,_0x52d25f);let I=class extends _0x1c1304{constructor(_0x40fab1,_0x56d394,_0x1482a6){var _0x13eff4=_0x86e20f;super(),d(this,_0x13eff4(0xb2),new Map()),(this['_univerInstanceService']=_0x40fab1,this[_0x13eff4(0x8a)]=_0x56d394,this[_0x13eff4(0x127)]=_0x1482a6,this[_0x13eff4(0x86)]());}async['getLiveShareCoordinator'](_0x4e753e){var _0x42abd8=_0x86e20f;return this[_0x42abd8(0xb2)]['has'](_0x4e753e)||await this[_0x42abd8(0xdd)](_0x4e753e),this[_0x42abd8(0xb2)][_0x42abd8(0xa0)](_0x4e753e);}[_0x86e20f(0x86)](){var _0x532405=_0x86e20f;this[_0x532405(0xac)][_0x532405(0x116)](_0x3f10a8[_0x532405(0xab)])[_0x532405(0xd9)](_0x2f2eb9(this['dispose$']))[_0x532405(0xa7)](async _0xf25864=>{var _0x501067=_0x532405;const _0x4db5cd=_0xf25864[_0x501067(0x12c)]();this[_0x501067(0xb2)][_0x501067(0x87)](_0x4db5cd)||this[_0x501067(0xdd)](_0x4db5cd);}),this[_0x532405(0xac)][_0x532405(0x119)](_0x3f10a8['UNIVER_SHEET'])[_0x532405(0xd9)](_0x2f2eb9(this[_0x532405(0xe0)]))['subscribe'](_0x11804e=>{var _0x5142a1=_0x532405;const _0x19ca24=_0x11804e['getUnitId'](),_0x2d339b=this[_0x5142a1(0xb2)][_0x5142a1(0xa0)](_0x19ca24);_0x2d339b==null||_0x2d339b[_0x5142a1(0x84)]();});}async[_0x86e20f(0xdd)](_0x453ab6){var _0x197f74=_0x86e20f;const _0x5c62b7=await this['_collabSessionService'][_0x197f74(0x11d)](_0x453ab6),_0x259e39=this[_0x197f74(0x8a)][_0x197f74(0x81)](w,_0x453ab6,_0x5c62b7);return _0x259e39[_0x197f74(0xc4)](),this[_0x197f74(0xb2)][_0x197f74(0xe6)](_0x453ab6,_0x259e39),_0x259e39;}};I=B([f(0x0,_0x2a716e),f(0x1,_0x4a06c1(_0x166128)),f(0x2,_0x4a06c1(_0x2c82a7))],I);var h=(_0x1b797b=>(_0x1b797b['OFFLINE']=_0x86e20f(0x9e),_0x1b797b[_0x86e20f(0x91)]=_0x86e20f(0x108),_0x1b797b['FOLLOWING']='following',_0x1b797b[_0x86e20f(0xb7)]=_0x86e20f(0x8b),_0x1b797b[_0x86e20f(0x89)]=_0x86e20f(0xf3),_0x1b797b))(h||{});const Pe=_0x86e20f(0xef),Ae=0xc8;let w=class extends _0x1c1304{constructor(_0x1f65aa,_0x4772ec,_0x2ebe72,_0x3b179f,_0x24c51b){var _0x45315a=_0x86e20f;super(),d(this,_0x45315a(0xaf),new _0x2812d3(_0x45315a(0x108))),d(this,_0x45315a(0xb6),this['_status$'][_0x45315a(0x105)]()),d(this,_0x45315a(0x86),!0x1),d(this,_0x45315a(0xf4),null),d(this,_0x45315a(0xc6),null),(this[_0x45315a(0xc3)]=_0x1f65aa,this['_collabSession']=_0x4772ec,this[_0x45315a(0x128)]=_0x2ebe72,this['_liveShareService']=_0x3b179f,this['_commandService']=_0x24c51b);}get[_0x86e20f(0x12b)](){var _0x30b090=_0x86e20f;return this[_0x30b090(0xaf)][_0x30b090(0xa8)]();}[_0x86e20f(0x84)](){var _0x1efa83=_0x86e20f,_0x1cfeb4;(_0x1cfeb4=this['_commandDisposable'])==null||_0x1cfeb4[_0x1efa83(0x84)](),this[_0x1efa83(0xaf)][_0x1efa83(0xd4)]('idle'),this[_0x1efa83(0xaf)]['complete']();}[_0x86e20f(0xc4)](){var _0x57e50e=_0x86e20f;this[_0x57e50e(0x86)]||(this[_0x57e50e(0x86)]=!0x0,this[_0x57e50e(0xaa)]['sessionStatus$'][_0x57e50e(0xd9)](_0x2f2eb9(this[_0x57e50e(0xe0)]))['subscribe'](_0x44d0cf=>{var _0x235d98=_0x57e50e;switch(_0x44d0cf){case _0x3118a2[_0x235d98(0x85)]:this[_0x235d98(0xcf)]();break;case _0x3118a2['ONLINE']:this['_handleOnline']();break;}}),this[_0x57e50e(0xaa)]['event$']['pipe'](_0x2f2eb9(this[_0x57e50e(0xe0)]))[_0x57e50e(0xa7)](_0x55d1e4=>{var _0x5ce985=_0x57e50e;const {eventID:_0x1d1457}=_0x55d1e4;switch(_0x1d1457){case _0x1213a4[_0x5ce985(0x10b)]:this[_0x5ce985(0x8e)](_0x55d1e4);break;case _0x1213a4[_0x5ce985(0xf0)]:this[_0x5ce985(0xa1)](_0x55d1e4);break;case _0x1213a4[_0x5ce985(0xf6)]:this['_handleTerminate']();break;case _0x1213a4[_0x5ce985(0x88)]:this[_0x5ce985(0xeb)](_0x55d1e4);break;}}));}[_0x86e20f(0xe1)](){var _0x2fb864=_0x86e20f;this[_0x2fb864(0xaa)][_0x2fb864(0xfa)]({'eventID':_0x1213a4[_0x2fb864(0xf1)],'data':{'unitID':this[_0x2fb864(0xc3)],'userID':this[_0x2fb864(0xaa)][_0x2fb864(0x102)]()}},this['_unitID']);}[_0x86e20f(0x123)](){var _0x436be6=_0x86e20f;this[_0x436be6(0x12b)]===_0x436be6(0xf3)&&(this[_0x436be6(0xaf)][_0x436be6(0xd4)](_0x436be6(0x108)),this[_0x436be6(0xaa)][_0x436be6(0xfa)]({'eventID':_0x1213a4[_0x436be6(0xf6)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x86e20f(0xec)](){var _0x5aeec2=_0x86e20f;this[_0x5aeec2(0x12b)]===_0x5aeec2(0x8b)&&(this[_0x5aeec2(0xaf)][_0x5aeec2(0xd4)](_0x5aeec2(0x8c)),this[_0x5aeec2(0x10a)]());}['stopFollowing'](){var _0x450a93=_0x86e20f;this[_0x450a93(0x12b)]===_0x450a93(0x8c)&&this[_0x450a93(0x80)]();}[_0x86e20f(0x8e)](_0x2952f8){var _0x1b88fa=_0x86e20f;const {presenter:_0x144728}=_0x2952f8[_0x1b88fa(0x114)],_0x552dd9=this[_0x1b88fa(0xaa)][_0x1b88fa(0x102)]();this[_0x1b88fa(0xc6)]=_0x144728,_0x144728===_0x552dd9?(this['_stopFollowing'](),this[_0x1b88fa(0x99)]()):this[_0x1b88fa(0x12b)]!=='not-following'&&(this[_0x1b88fa(0xb9)](),this[_0x1b88fa(0x10a)]());}[_0x86e20f(0x112)](){var _0xfe36ae=_0x86e20f;const _0x41c042={'eventID':_0x1213a4[_0xfe36ae(0xd0)]};this[_0xfe36ae(0xaa)][_0xfe36ae(0xfa)](_0x41c042,this[_0xfe36ae(0xc3)]);}[_0x86e20f(0xed)](){var _0x195278=_0x86e20f;this[_0x195278(0xc6)]=null,this[_0x195278(0x12b)]!==_0x195278(0xf3)&&this[_0x195278(0xde)]();}[_0x86e20f(0xeb)](_0x313dfb){var _0x142501=_0x86e20f;if(this['_status']===_0x142501(0x8c)&&this[_0x142501(0xc6)]===_0x313dfb[_0x142501(0x114)]['memberID']){const _0x3e7b44=_0x37fba0(_0x313dfb['data'])['mutations']['reverse']()[_0x142501(0x11a)](_0x439316=>_0x439316['id']===_0x1db464['id']);if(_0x3e7b44){const _0x110cda=_0x3e7b44[_0x142501(0xe9)][_0x142501(0x11b)],_0x4ea62b=_0x3e7b44[_0x142501(0xe9)][_0x142501(0x96)]['id'];setTimeout(()=>{var _0x426362=_0x142501;this[_0x426362(0x9c)][_0x426362(0x100)](_0x408e8d['id'],{'unitId':_0x110cda,'subUnitId':_0x4ea62b},{'fromCollab':!0x0});});}}}[_0x86e20f(0x99)](){var _0x16b288=_0x86e20f;this[_0x16b288(0xaf)]['next']('presenting');const _0x495fdb=new Map(),_0x2cdb8f=this['_commandDisposable']=new _0x4fe870();_0x2cdb8f['add'](_0x4dab8a(()=>{var _0x449d5d=_0x16b288;_0x495fdb['forEach'](_0x4ddcf1=>_0x4ddcf1[_0x449d5d(0x98)]()),_0x495fdb[_0x449d5d(0x109)]();})),_0x2cdb8f[_0x16b288(0xb8)](this[_0x16b288(0x9c)][_0x16b288(0xe5)](_0x108718=>{var _0x4ffaf1=_0x16b288,_0x3c843f;if(_0x108718[_0x4ffaf1(0x111)]!==_0x574ce6[_0x4ffaf1(0xb1)]||!this[_0x4ffaf1(0xe7)][_0x4ffaf1(0xd6)](_0x108718['id']))return;const {id:_0x123978}=_0x108718;let _0x16218c;_0x495fdb[_0x4ffaf1(0x87)](_0x123978)?_0x16218c=_0x495fdb[_0x4ffaf1(0xa0)](_0x123978):(_0x16218c=new _0x149bac(),_0x495fdb[_0x4ffaf1(0xe6)](_0x123978,_0x16218c),_0x16218c[_0x4ffaf1(0xd9)](_0x575203((_0x3c843f=this[_0x4ffaf1(0x128)]['getConfig'](Pe))!=null?_0x3c843f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ffaf1(0xa7)](_0x39299c=>{var _0x1e8ecc=_0x4ffaf1;this[_0x1e8ecc(0xaa)]['send']({'eventID':_0x1213a4[_0x1e8ecc(0xf0)],'data':{'unitID':this[_0x1e8ecc(0xc3)],'operations':{[_0x39299c['id']]:{'id':_0x39299c['id'],'params':JSON[_0x1e8ecc(0x101)](_0x39299c[_0x1e8ecc(0xe9)])}}}},this[_0x1e8ecc(0xc3)]);})),_0x16218c[_0x4ffaf1(0xd4)](_0x108718);})),this[_0x16b288(0xe7)][_0x16b288(0x10f)](this[_0x16b288(0xc3)])[_0x16b288(0xb3)](_0x382793=>this[_0x16b288(0xaa)][_0x16b288(0xfa)]({'eventID':_0x1213a4[_0x16b288(0xf0)],'data':{'unitID':this[_0x16b288(0xc3)],'operations':{[_0x382793['id']]:{'id':_0x382793['id'],'params':JSON['stringify'](_0x382793[_0x16b288(0xe9)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x286199=_0x86e20f,_0x16b033;this['_status$'][_0x286199(0xd4)]('idle'),(_0x16b033=this[_0x286199(0xf4)])==null||_0x16b033[_0x286199(0x84)](),this[_0x286199(0xf4)]=null;}[_0x86e20f(0x10a)](){var _0x2657df=_0x86e20f,_0x461180;(_0x461180=this[_0x2657df(0xf4)])==null||_0x461180[_0x2657df(0x84)](),this[_0x2657df(0xaf)][_0x2657df(0xd4)](_0x2657df(0x8c));}[_0x86e20f(0xde)](){var _0x29436c=_0x86e20f,_0x4381cd;this['_status$'][_0x29436c(0xd4)](_0x29436c(0x108)),(_0x4381cd=this['_commandDisposable'])==null||_0x4381cd[_0x29436c(0x84)](),this[_0x29436c(0xf4)]=null;}[_0x86e20f(0x80)](){var _0x5b5d03=_0x86e20f,_0x5e1be3;this[_0x5b5d03(0xaf)][_0x5b5d03(0xd4)](_0x5b5d03(0x8b)),(_0x5e1be3=this[_0x5b5d03(0xf4)])==null||_0x5e1be3[_0x5b5d03(0x84)]();}[_0x86e20f(0xa1)](_0x5f79c9){var _0x32ec27=_0x86e20f;if([_0x32ec27(0xf3),_0x32ec27(0x8b),_0x32ec27(0x9e)]['includes'](this[_0x32ec27(0x12b)])||!_0x5f79c9['data'][_0x32ec27(0x92)]||_0x5f79c9[_0x32ec27(0x114)][_0x32ec27(0x92)]===this[_0x32ec27(0xaa)][_0x32ec27(0x102)]())return;this['_status']===_0x32ec27(0x108)&&this[_0x32ec27(0x10a)]();const _0x5cb58d=_0x5f79c9[_0x32ec27(0x114)]['operations'];Object[_0x32ec27(0xfe)](_0x5cb58d)[_0x32ec27(0xb3)](_0x538989=>{var _0x23e52e=_0x32ec27;this[_0x23e52e(0x9c)][_0x23e52e(0x100)](_0x538989['id'],_0x538989[_0x23e52e(0xe9)]?JSON[_0x23e52e(0x113)](_0x538989[_0x23e52e(0xe9)]):null,{'fromCollab':!0x0});});}[_0x86e20f(0xcf)](){var _0x54c26e=_0x86e20f,_0x5cc460;this[_0x54c26e(0xaf)]['next'](_0x54c26e(0x9e)),(_0x5cc460=this[_0x54c26e(0xf4)])==null||_0x5cc460[_0x54c26e(0x84)]();}[_0x86e20f(0xc0)](){var _0x3a5b6a=_0x86e20f;this[_0x3a5b6a(0xaf)][_0x3a5b6a(0xd4)](_0x3a5b6a(0x108)),this[_0x3a5b6a(0x112)]();}};w=B([f(0x2,_0x33fb0d),f(0x3,_0x4a06c1(x)),f(0x4,_0x4d2e6d)],w);function Te(){var _0x58bd73=_0x86e20f;const _0x2406c8=_0x4a3efa(I),_0x19a405=_0x4a3efa(_0x2a716e),_0x3e8595=_0xc8bb70(()=>_0x19a405[_0x58bd73(0xa3)](_0x3f10a8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x529a66,_0x2107a3]=_0x356244(null),[_0x9a0105,_0x488a00]=_0x356244(h[_0x58bd73(0x91)]),_0x1c8cba=_0xe4b184(null);return _0x420fc1(()=>(_0x3e8595&&_0x2406c8['getLiveShareCoordinator'](_0x3e8595[_0x58bd73(0x12c)]())['then'](_0x43ee52=>{var _0x22e92f=_0x58bd73;_0x2107a3(_0x43ee52),_0x1c8cba[_0x22e92f(0x118)]=_0x43ee52[_0x22e92f(0xb6)][_0x22e92f(0xa7)](_0x175d25=>{_0x488a00(_0x175d25);});}),()=>{var _0x582b1d=_0x58bd73,_0x2bbd44;(_0x2bbd44=_0x1c8cba[_0x582b1d(0x118)])==null||_0x2bbd44[_0x582b1d(0xd2)](),_0x1c8cba[_0x582b1d(0x118)]=null;}),[_0x3e8595,_0x2406c8]),_0x529a66?_0x24b9e5(_0x417c98,{'align':_0x58bd73(0x117),'disabled':_0x9a0105===h[_0x58bd73(0x85)],'className':_0x58bd73(0xda),'overlay':_0x24b9e5($e,{'status':_0x9a0105,'coordinator':_0x529a66}),'children':_0x24b9e5(_0x58bd73(0xb4),{'className':_0x342114(_0x58bd73(0xfd),{'univer-cursor-not-allowed':_0x9a0105===h[_0x58bd73(0x85)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9a0105!==h[_0x58bd73(0x85)]}),'type':_0x58bd73(0xb4),'children':_0x24b9e5(z,{'className':_0x58bd73(0x125)})})}):null;}function _0x1a7a(_0x31e49b,_0x16e928){var _0xe19adc=_0xe19a();return _0x1a7a=function(_0x1a7a90,_0x56e980){_0x1a7a90=_0x1a7a90-0x80;var _0x52bf84=_0xe19adc[_0x1a7a90];return _0x52bf84;},_0x1a7a(_0x31e49b,_0x16e928);}function $e(_0x1ce44b){var _0xf54598=_0x86e20f;const {status:_0x35baf9,coordinator:_0x565093}=_0x1ce44b;switch(_0x35baf9){case h['IDLE']:return _0x24b9e5(Fe,{'coordinator':_0x565093});case h[_0xf54598(0xf2)]:return _0x24b9e5(He,{'coordinator':_0x565093});case h[_0xf54598(0xb7)]:return _0x24b9e5(je,{'coordinator':_0x565093});case h[_0xf54598(0x85)]:return _0x24b9e5(Ve,{});case h[_0xf54598(0x89)]:return _0x24b9e5(Ue,{'coordinator':_0x565093});default:return null;}}function Fe(_0x55b0f9){var _0x47c9a4=_0x86e20f;const {coordinator:_0x13be66}=_0x55b0f9;return _0x484111(_0x1da64c,{'children':[_0x24b9e5('div',{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x47c9a4(0xb5)}),_0x24b9e5(_0x4fe2d0,{'size':_0x47c9a4(0x115),'type':'default','onClick':()=>_0x13be66[_0x47c9a4(0xe1)](),'children':_0x47c9a4(0x10d)})]});}function He(_0x150e31){var _0x539035=_0x86e20f;const {coordinator:_0x344d38}=_0x150e31;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x539035(0x12d),{'className':_0x539035(0xbc),'children':_0x539035(0xea)}),_0x24b9e5(_0x4fe2d0,{'size':_0x539035(0x115),'type':'default','onClick':()=>_0x344d38[_0x539035(0xa5)](),'children':_0x539035(0xbb)})]});}function je(_0xb8e630){var _0x4ee1f7=_0x86e20f;const {coordinator:_0x5deca1}=_0xb8e630;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x4ee1f7(0x12d),{'className':_0x4ee1f7(0xbc),'children':_0x4ee1f7(0x82)}),_0x24b9e5(_0x4fe2d0,{'size':_0x4ee1f7(0x115),'type':_0x4ee1f7(0xc1),'onClick':()=>_0x5deca1[_0x4ee1f7(0xec)](),'children':_0x4ee1f7(0xbf)})]});}function Ue(_0x4b5080){var _0x3e5537=_0x86e20f;const {coordinator:_0x4b33ff}=_0x4b5080;return _0x484111(_0x1da64c,{'children':[_0x24b9e5(_0x3e5537(0x12d),{'className':_0x3e5537(0xbc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x24b9e5(_0x4fe2d0,{'size':_0x3e5537(0x115),'type':_0x3e5537(0xc8),'onClick':()=>_0x4b33ff['stopPresenting'](),'children':_0x3e5537(0xd7)})]});}function Ve(){var _0x946073=_0x86e20f;return _0x24b9e5(_0x1da64c,{'children':_0x946073(0x90)});}var Me=Object[_0x86e20f(0x9f)],ke=(_0x2b8747,_0x273089,_0x8d4a95,_0x370420)=>{var _0x103300=_0x86e20f;for(var _0x349d58=_0x370420>0x1?void 0x0:_0x370420?Me(_0x273089,_0x8d4a95):_0x273089,_0x5c66a7=_0x2b8747[_0x103300(0x110)]-0x1,_0x139d0d;_0x5c66a7>=0x0;_0x5c66a7--)(_0x139d0d=_0x2b8747[_0x5c66a7])&&(_0x349d58=_0x139d0d(_0x349d58)||_0x349d58);return _0x349d58;},$=(_0x18b07d,_0x161e3b)=>(_0x1f4d8e,_0x49d4b4)=>_0x161e3b(_0x1f4d8e,_0x49d4b4,_0x18b07d);let b=class extends _0x26c534{constructor(_0x512e59,_0x1975ab){var _0x340236=_0x86e20f;super(),this[_0x340236(0x8a)]=_0x512e59,this['_uiPartsService']=_0x1975ab,this[_0x340236(0xee)]();}['_mountLiveShare'](){var _0x3468fc=_0x86e20f;this['disposeWithMe'](this['_uiPartsService'][_0x3468fc(0x126)](_0x56d703[_0x3468fc(0x103)],()=>_0x34c847(Te,this['_injector'])));}};b=ke([$(0x0,_0x4a06c1(_0x166128)),$(0x1,_0x5aab7e)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x39f290,_0x41cd1f,_0x96662)=>_0x41cd1f in _0x39f290?Ge(_0x39f290,_0x41cd1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x96662}):_0x39f290[_0x41cd1f]=_0x96662,ze=(_0x938674,_0x13fdb7,_0x11e81f,_0x41561b)=>{var _0x27b64c=_0x86e20f;for(var _0x581502=_0x41561b>0x1?void 0x0:_0x41561b?We(_0x13fdb7,_0x11e81f):_0x13fdb7,_0x353026=_0x938674[_0x27b64c(0x110)]-0x1,_0x170ef2;_0x353026>=0x0;_0x353026--)(_0x170ef2=_0x938674[_0x353026])&&(_0x581502=_0x170ef2(_0x581502)||_0x581502);return _0x581502;},F=(_0x55542e,_0xda98f9)=>(_0x1fcde0,_0x492657)=>_0xda98f9(_0x1fcde0,_0x492657,_0x55542e),Z=(_0x2cf7dc,_0x9983a,_0x161db4)=>Ye(_0x2cf7dc,typeof _0x9983a!=_0x86e20f(0xc5)?_0x9983a+'':_0x9983a,_0x161db4);const Be=_0x86e20f(0xf7);function _0xe19a(){var _0x1faf43=['registerSharedOperation','_handleNewHost','3335740MonMxp','You\x27are\x20offline.','IDLE','presenter','idSuffix','2865fbtsUH','xlink:href','sheet','live-share-single','complete','_startPresenting','_config','mask','_commandService','901901SUpmuP','offline','getOwnPropertyDescriptor','get','_handleOperation','indexOf','getCurrentTypeOfUnit$','fill','stopFollowing','_reporters','subscribe','getValue','evenodd','_collabSession','UNIVER_SHEET','_univerInstanceService','substring','assign','_status$','path','OPERATION','_entities','forEach','button','Present\x20this\x20document','status$','NOT_FOLLOWING','add','_stopPresenting','extend','Stop\x20following','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','concat','hasOwnProperty','Start\x20following','_handleOnline','text','pluginName','_unitID','init','symbol','_presenter','UniverIcon','default','map','defs','entries','defineProperty','function','live-share.config','_handleOffline','LIVESHARE_FETCH_OPERATIONS','string','unsubscribe','registerInitialStateReporter','next','prototype','shouldShareOperation','Stop\x20presenting','call','pipe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','77Lhxdmu','trim','_startLiveShareCoordinator','_beIdle','tag','dispose$','tryStartPresenting','3786eDIguG','none','100eiMnRH','onCommandExecuted','set','_liveShareService','onRendered','params','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','startFollowing','_handleTerminate','_mountLiveShare','SAME_OPERATION_SHARE_INTERVAL','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','FOLLOWING','presenting','_commandDisposable','children','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','50487LWhZJm','LiveShareSingle','send','displayName','disposeWithMe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','values','toString','executeCommand','stringify','getMemberID','HEADER_MENU','from','asObservable','replace','className','idle','clear','_startFollowing','LIVESHARE_NEW_HOST','defIds','Start','url(#$1','getInitialStates','length','type','_fetchOperations','parse','data','small','getTypeOfUnitAdded$','end','current','getTypeOfUnitDisposed$','find','unitId','33vckGgw','requireSession','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','override','attrs','colorChannel1','3502112lSmgbk','stopPresenting','icon','univer-size-4','registerComponent','_collabSessionService','_configService','delete','19802PCZmkF','_status','getUnitId','div','_sharedOperations','_stopFollowing','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','2163402ocNifG','dispose','OFFLINE','_init','has','NEW_CHANGESETS','PRESENTING','_injector','not-following','following'];_0xe19a=function(){return _0x1faf43;};return _0xe19a();}let O=class extends _0x53f919{constructor(_0x63662a=T,_0x41360e,_0x33e415){var _0x26ec0c=_0x86e20f;super(),this[_0x26ec0c(0x9a)]=_0x63662a,this['_injector']=_0x41360e,this[_0x26ec0c(0x128)]=_0x33e415;const {..._0x44495f}=_0x32c382({},T,this[_0x26ec0c(0x9a)]);this[_0x26ec0c(0x128)]['setConfig'](Oe,_0x44495f);}['onStarting'](){var _0x46e4ea=_0x86e20f;_0x3299a8(this[_0x46e4ea(0x8a)],_0x1f4dfd([[x],[I],[m],[b]],this[_0x46e4ea(0x9a)][_0x46e4ea(0x11f)])),_0x481da4(this[_0x46e4ea(0x8a)],[[m]]);}[_0x86e20f(0xe8)](){_0x481da4(this['_injector'],[[b]]);}};Z(O,_0x86e20f(0x111),_0x3f10a8['UNIVER_UNKNOWN']),Z(O,_0x86e20f(0xc2),Be),O=ze([_0x485ccd(_0x46e810),F(0x1,_0x4a06c1(_0x166128)),F(0x2,_0x33fb0d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x114f2c,_0x5ad411){var _0x3e17cb=_0x76be,_0x2a0252=_0x114f2c();while(!![]){try{var _0x1fe3b6=-parseInt(_0x3e17cb(0x87))/0x1+-parseInt(_0x3e17cb(0x105))/0x2+-parseInt(_0x3e17cb(0x13b))/0x3*(-parseInt(_0x3e17cb(0xc2))/0x4)+parseInt(_0x3e17cb(0x17a))/0x5*(-parseInt(_0x3e17cb(0xfb))/0x6)+parseInt(_0x3e17cb(0x121))/0x7*(parseInt(_0x3e17cb(0x155))/0x8)+-parseInt(_0x3e17cb(0xc5))/0x9*(parseInt(_0x3e17cb(0x17d))/0xa)+parseInt(_0x3e17cb(0x173))/0xb*(parseInt(_0x3e17cb(0x148))/0xc);if(_0x1fe3b6===_0x5ad411)break;else _0x2a0252['push'](_0x2a0252['shift']());}catch(_0x377ed1){_0x2a0252['push'](_0x2a0252['shift']());}}}(_0x2c84,0x3dfa1),function(_0x3ebb62,_0x3aaaf0){var _0x550379=_0x76be;typeof exports==_0x550379(0xfe)&&typeof module<'u'?_0x3aaaf0(exports,require(_0x550379(0x135)),require(_0x550379(0x8f)),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require(_0x550379(0x168)),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require(_0x550379(0x14a)),require(_0x550379(0x125))):typeof define==_0x550379(0x9d)&&define[_0x550379(0x142)]?define([_0x550379(0x11e),'@univerjs-pro/collaboration-client',_0x550379(0x8f),_0x550379(0xcd),_0x550379(0xaf),'@univerjs/ui',_0x550379(0x152),_0x550379(0xed),_0x550379(0x109),_0x550379(0x126),_0x550379(0x14a),_0x550379(0x125)],_0x3aaaf0):(_0x3ebb62=typeof globalThis<'u'?globalThis:_0x3ebb62||self,_0x3aaaf0(_0x3ebb62[_0x550379(0x9b)]={},_0x3ebb62[_0x550379(0x9e)],_0x3ebb62[_0x550379(0x15c)],_0x3ebb62[_0x550379(0xd8)],_0x3ebb62[_0x550379(0x88)],_0x3ebb62['UniverUi'],_0x3ebb62[_0x550379(0xf5)],_0x3ebb62[_0x550379(0x117)],_0x3ebb62[_0x550379(0xf5)],_0x3ebb62[_0x550379(0xdc)],_0x3ebb62[_0x550379(0x14a)],_0x3ebb62[_0x550379(0x14a)]['operators']));}(this,function(_0x1eb8b3,_0x384945,_0x35a254,_0x48fa50,_0x6b1bfb,_0x211c35,_0x17df5b,_0x49b550,_0x263c12,_0x251eb9,_0x4e83a9,_0x8b0515){'use strict';var _0x52972c=_0x76be;var _0x46b667=Object[_0x52972c(0x13a)],_0x4f46c2=(_0x8fb245,_0x2d9fa3,_0x48c283)=>_0x2d9fa3 in _0x8fb245?_0x46b667(_0x8fb245,_0x2d9fa3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48c283}):_0x8fb245[_0x2d9fa3]=_0x48c283,_0x52b429=(_0x248b30,_0x45977b,_0x5d5e12)=>_0x4f46c2(_0x248b30,typeof _0x45977b!=_0x52972c(0x95)?_0x45977b+'':_0x45977b,_0x5d5e12);const _0x3aaace=_0x52972c(0xc9),_0x2d5b59={};class _0x58a926 extends _0x35a254['Disposable']{constructor(){var _0x25d8a8=_0x52972c;super(...arguments),_0x52b429(this,_0x25d8a8(0xf2),new Set()),_0x52b429(this,'_reporters',new Set());}[_0x52972c(0xbf)](_0x371e91){var _0x536d0d=_0x52972c;return this[_0x536d0d(0xf2)]['add'](_0x371e91),_0x35a254[_0x536d0d(0x14f)](()=>this[_0x536d0d(0xf2)][_0x536d0d(0xd2)](_0x371e91));}[_0x52972c(0x162)](_0x3b9c57){var _0x5b1bf1=_0x52972c;return this[_0x5b1bf1(0x15d)]['add'](_0x3b9c57),_0x35a254[_0x5b1bf1(0x14f)](()=>this['_reporters'][_0x5b1bf1(0xd2)](_0x3b9c57));}[_0x52972c(0xff)](_0x602f41){var _0x271952=_0x52972c;return this[_0x271952(0xf2)][_0x271952(0x159)](_0x602f41);}[_0x52972c(0x12f)](_0x55ab5f){var _0x401a22=_0x52972c;return Array[_0x401a22(0x110)](this[_0x401a22(0x15d)])[_0x401a22(0x10f)](_0x3c2be9=>_0x3c2be9(_0x55ab5f));}}var _0x1c053f=Object[_0x52972c(0xa1)],_0x54198d=(_0x3625b0,_0x268786,_0x56b0a5,_0x262b63)=>{var _0x4814c0=_0x52972c;for(var _0x2b6552=_0x262b63>0x1?void 0x0:_0x262b63?_0x1c053f(_0x268786,_0x56b0a5):_0x268786,_0x4fde90=_0x3625b0[_0x4814c0(0x15a)]-0x1,_0x3d051e;_0x4fde90>=0x0;_0x4fde90--)(_0x3d051e=_0x3625b0[_0x4fde90])&&(_0x2b6552=_0x3d051e(_0x2b6552)||_0x2b6552);return _0x2b6552;},_0x41047a=(_0x3fe8ec,_0x585a09)=>(_0xc66b3b,_0x19aa39)=>_0x585a09(_0xc66b3b,_0x19aa39,_0x3fe8ec);let _0x4048ed=class extends _0x35a254[_0x52972c(0xb4)]{constructor(_0x5daab9){var _0x56adb8=_0x52972c;super(),this[_0x56adb8(0x15b)]=_0x5daab9,this[_0x56adb8(0xcc)]();}[_0x52972c(0xcc)](){var _0x18974d=_0x52972c;[_0x6b1bfb[_0x18974d(0xf4)]['id'],_0x6b1bfb[_0x18974d(0x174)]['id'],_0x48fa50['SetWorksheetActiveOperation']['id']][_0x18974d(0x115)](_0x2438eb=>{var _0x558c20=_0x18974d;this['disposeWithMe'](this[_0x558c20(0x15b)][_0x558c20(0xbf)](_0x2438eb));});}};_0x4048ed=_0x54198d([_0x41047a(0x0,_0x35a254[_0x52972c(0x10b)](_0x58a926))],_0x4048ed);var _0x38e03=function(){var _0x133fd5=_0x52972c;return _0x38e03=Object[_0x133fd5(0x176)]||function(_0x4d02be){var _0x4682ef=_0x133fd5;for(var _0x39b584,_0x2c532c=0x1,_0xfdb8f=arguments[_0x4682ef(0x15a)];_0x2c532c<_0xfdb8f;_0x2c532c++){_0x39b584=arguments[_0x2c532c];for(var _0x2dcdce in _0x39b584)Object[_0x4682ef(0xad)][_0x4682ef(0x10a)]['call'](_0x39b584,_0x2dcdce)&&(_0x4d02be[_0x2dcdce]=_0x39b584[_0x2dcdce]);}return _0x4d02be;},_0x38e03['apply'](this,arguments);},_0x490758=function(_0x266928,_0x230316){var _0x1610b2=_0x52972c,_0x372660={};for(var _0x43edc1 in _0x266928)Object['prototype'][_0x1610b2(0x10a)]['call'](_0x266928,_0x43edc1)&&_0x230316['indexOf'](_0x43edc1)<0x0&&(_0x372660[_0x43edc1]=_0x266928[_0x43edc1]);if(_0x266928!=null&&typeof Object[_0x1610b2(0xd1)]=='function'){for(var _0x35b1a9=0x0,_0x43edc1=Object[_0x1610b2(0xd1)](_0x266928);_0x35b1a9<_0x43edc1[_0x1610b2(0x15a)];_0x35b1a9++)_0x230316[_0x1610b2(0xcb)](_0x43edc1[_0x35b1a9])<0x0&&Object[_0x1610b2(0xad)]['propertyIsEnumerable'][_0x1610b2(0x136)](_0x266928,_0x43edc1[_0x35b1a9])&&(_0x372660[_0x43edc1[_0x35b1a9]]=_0x266928[_0x43edc1[_0x35b1a9]]);}return _0x372660;},_0x224561=_0x263c12[_0x52972c(0xde)](function(_0xf63377,_0x2c8db9){var _0x29538d=_0x52972c,_0x222332=_0xf63377['icon'],_0x4faf1f=_0xf63377['id'],_0x2c6088=_0xf63377[_0x29538d(0xe3)],_0x4c562e=_0xf63377[_0x29538d(0xf1)],_0x112b91=_0x490758(_0xf63377,['icon','id',_0x29538d(0xe3),'extend']),_0x5d01d0=_0x29538d(0x167)['concat'](_0x4faf1f,'\x20')['concat'](_0x2c6088||'')[_0x29538d(0x150)](),_0x349f99=_0x263c12[_0x29538d(0xa4)]('_'[_0x29538d(0xec)](_0x49545b()));return _0x397e10(_0x222332,''['concat'](_0x4faf1f),{'defIds':_0x222332['defIds'],'idSuffix':_0x349f99[_0x29538d(0x13c)]},_0x38e03({'ref':_0x2c8db9,'className':_0x5d01d0},_0x112b91),_0x4c562e);});function _0x397e10(_0x3dc47f,_0xe16898,_0x4fd703,_0x303ba6,_0x941471){var _0xc2168d=_0x52972c;return _0x263c12[_0xc2168d(0x14c)](_0x3dc47f[_0xc2168d(0x124)],_0x38e03(_0x38e03({'key':_0xe16898},_0x42546d(_0x3dc47f,_0x4fd703,_0x941471)),_0x303ba6),(_0x2baa21(_0x3dc47f,_0x4fd703)[_0xc2168d(0x165)]||[])[_0xc2168d(0x10f)](function(_0x472215,_0x1b1031){var _0x5ac907=_0xc2168d;return _0x397e10(_0x472215,''[_0x5ac907(0xec)](_0xe16898,'-')[_0x5ac907(0xec)](_0x3dc47f[_0x5ac907(0x124)],'-')['concat'](_0x1b1031),_0x4fd703,void 0x0,_0x941471);}));}function _0x42546d(_0x3e73a6,_0x6e8368,_0x149b51){var _0x248df0=_0x52972c,_0x4fdb76=_0x38e03({},_0x3e73a6[_0x248df0(0xb8)]);_0x149b51!=null&&_0x149b51['colorChannel1']&&_0x4fdb76['fill']==='colorChannel1'&&(_0x4fdb76[_0x248df0(0x99)]=_0x149b51[_0x248df0(0xe8)]),_0x3e73a6[_0x248df0(0x124)]===_0x248df0(0x12b)&&_0x4fdb76['id']&&(_0x4fdb76['id']=_0x4fdb76['id']+_0x6e8368['idSuffix']),Object[_0x248df0(0x14b)](_0x4fdb76)[_0x248df0(0x115)](function(_0x2f7f6c){var _0x496515=_0x248df0,_0x3a217d=_0x2f7f6c[0x0],_0x4cea6b=_0x2f7f6c[0x1];_0x3a217d===_0x496515(0x12b)&&typeof _0x4cea6b=='string'&&(_0x4fdb76[_0x3a217d]=_0x4cea6b['replace'](/url\(#(.*)\)/,'url(#$1'[_0x496515(0xec)](_0x6e8368[_0x496515(0x163)],')')));});var _0x56d3b4=_0x6e8368['defIds'];return!_0x56d3b4||_0x56d3b4[_0x248df0(0x15a)]===0x0||(_0x3e73a6[_0x248df0(0x124)]===_0x248df0(0x171)&&_0x4fdb76['xlink:href']&&(_0x4fdb76[_0x248df0(0x8b)]=_0x4fdb76[_0x248df0(0x8b)]+_0x6e8368[_0x248df0(0x163)]),Object[_0x248df0(0x14b)](_0x4fdb76)['forEach'](function(_0x53ab7a){var _0x3ecca8=_0x248df0,_0x37d2eb=_0x53ab7a[0x0],_0x388dc3=_0x53ab7a[0x1];typeof _0x388dc3=='string'&&(_0x4fdb76[_0x37d2eb]=_0x388dc3['replace'](/url\(#(.*)\)/,_0x3ecca8(0x112)[_0x3ecca8(0xec)](_0x6e8368[_0x3ecca8(0x163)],')')));})),_0x4fdb76;}function _0x2baa21(_0x4d73d2,_0x38fcfa){var _0x1eb238=_0x52972c,_0x542a93,_0x1b9683=_0x38fcfa[_0x1eb238(0x130)];return!_0x1b9683||_0x1b9683[_0x1eb238(0x15a)]===0x0?_0x4d73d2:_0x4d73d2[_0x1eb238(0x124)]===_0x1eb238(0x175)&&(!((_0x542a93=_0x4d73d2[_0x1eb238(0x165)])===null||_0x542a93===void 0x0)&&_0x542a93[_0x1eb238(0x15a)])?_0x38e03(_0x38e03({},_0x4d73d2),{'children':_0x4d73d2[_0x1eb238(0x165)][_0x1eb238(0x10f)](function(_0x1a5f01){var _0x360b72=_0x1eb238;return typeof _0x1a5f01[_0x360b72(0xb8)]['id']=='string'&&_0x1b9683&&_0x1b9683['indexOf'](_0x1a5f01[_0x360b72(0xb8)]['id'])>-0x1?_0x38e03(_0x38e03({},_0x1a5f01),{'attrs':_0x38e03(_0x38e03({},_0x1a5f01[_0x360b72(0xb8)]),{'id':_0x1a5f01[_0x360b72(0xb8)]['id']+_0x38fcfa[_0x360b72(0x163)]})}):_0x1a5f01;})}):_0x4d73d2;}function _0x49545b(){var _0x180ed9=_0x52972c;return Math[_0x180ed9(0xca)]()['toString'](0x24)['substring'](0x2,0x8);}_0x224561[_0x52972c(0xa3)]=_0x52972c(0x16a);var _0x5f3e3e={'tag':_0x52972c(0x8e),'attrs':{'fill':_0x52972c(0xaa),'viewBox':_0x52972c(0x10e),'width':_0x52972c(0x146),'height':_0x52972c(0x146)},'children':[{'tag':'path','attrs':{'fill':_0x52972c(0xb6),'d':_0x52972c(0x113)}},{'tag':'path','attrs':{'fill':_0x52972c(0xb6),'d':_0x52972c(0xc0),'fillRule':_0x52972c(0x16f),'clipRule':'evenodd'}}]},_0x13c7ec=_0x263c12[_0x52972c(0xde)](function(_0x2a4f19,_0x2f4f66){var _0x3fd979=_0x52972c;return _0x263c12[_0x3fd979(0x14c)](_0x224561,Object[_0x3fd979(0x176)]({},_0x2a4f19,{'id':_0x3fd979(0xe6),'ref':_0x2f4f66,'icon':_0x5f3e3e}));});_0x13c7ec[_0x52972c(0xa3)]='LiveShareSingle';var _0x13ae9f=Object[_0x52972c(0xa1)],_0x29b8d1=(_0x2c02e4,_0x3371c0,_0x400f7d,_0x5b412b)=>{var _0x102f1a=_0x52972c;for(var _0x2f60f8=_0x5b412b>0x1?void 0x0:_0x5b412b?_0x13ae9f(_0x3371c0,_0x400f7d):_0x3371c0,_0xeb6c3=_0x2c02e4[_0x102f1a(0x15a)]-0x1,_0x31f418;_0xeb6c3>=0x0;_0xeb6c3--)(_0x31f418=_0x2c02e4[_0xeb6c3])&&(_0x2f60f8=_0x31f418(_0x2f60f8)||_0x2f60f8);return _0x2f60f8;},_0x409719=(_0x2b0874,_0x44b71d)=>(_0xddaef6,_0x2a2aa1)=>_0x44b71d(_0xddaef6,_0x2a2aa1,_0x2b0874);_0x1eb8b3['LiveShareController']=class extends _0x35a254[_0x52972c(0xb3)]{constructor(_0x4153d9,_0x162868,_0x43f0d6){var _0x516243=_0x52972c;super(),_0x52b429(this,_0x516243(0xe9),new Map()),(this[_0x516243(0xe5)]=_0x4153d9,this[_0x516243(0x16d)]=_0x162868,this[_0x516243(0x138)]=_0x43f0d6,this[_0x516243(0xcc)]());}async['getLiveShareCoordinator'](_0x2b574c){var _0x38e051=_0x52972c;return this[_0x38e051(0xe9)][_0x38e051(0x159)](_0x2b574c)||await this[_0x38e051(0x154)](_0x2b574c),this[_0x38e051(0xe9)][_0x38e051(0x127)](_0x2b574c);}[_0x52972c(0xcc)](){var _0x96c9c0=_0x52972c;this[_0x96c9c0(0xe5)][_0x96c9c0(0x145)](_0x35a254[_0x96c9c0(0x114)][_0x96c9c0(0xe2)])['pipe'](_0x8b0515[_0x96c9c0(0x119)](this[_0x96c9c0(0x143)]))[_0x96c9c0(0x106)](async _0x3fce9d=>{var _0x18281e=_0x96c9c0;const _0x2185cf=_0x3fce9d[_0x18281e(0x169)]();this[_0x18281e(0xe9)][_0x18281e(0x159)](_0x2185cf)||this[_0x18281e(0x154)](_0x2185cf);}),this[_0x96c9c0(0xe5)][_0x96c9c0(0xb9)](_0x35a254[_0x96c9c0(0x114)][_0x96c9c0(0xe2)])[_0x96c9c0(0xc6)](_0x8b0515['takeUntil'](this[_0x96c9c0(0x143)]))[_0x96c9c0(0x106)](_0x239ba7=>{var _0x45f0ff=_0x96c9c0;const _0x2913d9=_0x239ba7['getUnitId'](),_0x2cda4d=this[_0x45f0ff(0xe9)][_0x45f0ff(0x127)](_0x2913d9);_0x2cda4d==null||_0x2cda4d[_0x45f0ff(0x144)]();});}async['_startLiveShareCoordinator'](_0x192e39){var _0x37634d=_0x52972c;const _0xd278e4=await this['_collabSessionService'][_0x37634d(0xd7)](_0x192e39),_0x552b5c=this[_0x37634d(0x16d)][_0x37634d(0x8a)](_0x1eb8b3[_0x37634d(0xba)],_0x192e39,_0xd278e4);return _0x552b5c[_0x37634d(0x13f)](),this[_0x37634d(0xe9)][_0x37634d(0xef)](_0x192e39,_0x552b5c),_0x552b5c;}},_0x1eb8b3[_0x52972c(0x134)]=_0x29b8d1([_0x409719(0x0,_0x35a254[_0x52972c(0xc4)]),_0x409719(0x1,_0x35a254[_0x52972c(0x10b)](_0x35a254['Injector'])),_0x409719(0x2,_0x35a254[_0x52972c(0x10b)](_0x384945[_0x52972c(0x11c)]))],_0x1eb8b3[_0x52972c(0x134)]);var _0x142c64=(_0x25e5d0=>(_0x25e5d0[_0x52972c(0x12a)]='offline',_0x25e5d0[_0x52972c(0xc1)]='idle',_0x25e5d0[_0x52972c(0xa9)]='following',_0x25e5d0[_0x52972c(0x132)]=_0x52972c(0xa0),_0x25e5d0[_0x52972c(0x111)]=_0x52972c(0xbb),_0x25e5d0))(_0x142c64||{});const _0x18e7b8='SAME_OPERATION_SHARE_INTERVAL',_0x537530=0xc8;_0x1eb8b3[_0x52972c(0xba)]=class extends _0x35a254[_0x52972c(0xb3)]{constructor(_0x29945c,_0x5f1844,_0x47d279,_0x525ccb,_0x36a83c){var _0x51cbde=_0x52972c;super(),_0x52b429(this,'_status$',new _0x4e83a9[(_0x51cbde(0xd9))](_0x51cbde(0x147))),_0x52b429(this,'status$',this['_status$'][_0x51cbde(0x122)]()),_0x52b429(this,_0x51cbde(0xcc),!0x1),_0x52b429(this,_0x51cbde(0x8d),null),_0x52b429(this,_0x51cbde(0x129),null),(this[_0x51cbde(0x10d)]=_0x29945c,this['_collabSession']=_0x5f1844,this['_configService']=_0x47d279,this['_liveShareService']=_0x525ccb,this[_0x51cbde(0x118)]=_0x36a83c);}get[_0x52972c(0x141)](){var _0x3f56f4=_0x52972c;return this[_0x3f56f4(0xbd)][_0x3f56f4(0xae)]();}[_0x52972c(0x144)](){var _0x5243f3=_0x52972c,_0xccf597;(_0xccf597=this[_0x5243f3(0x8d)])==null||_0xccf597[_0x5243f3(0x144)](),this[_0x5243f3(0xbd)]['next'](_0x5243f3(0x147)),this[_0x5243f3(0xbd)][_0x5243f3(0x17e)]();}[_0x52972c(0x13f)](){var _0x408794=_0x52972c;this[_0x408794(0xcc)]||(this['_init']=!0x0,this['_collabSession'][_0x408794(0x161)][_0x408794(0xc6)](_0x8b0515[_0x408794(0x119)](this[_0x408794(0x143)]))[_0x408794(0x106)](_0x1f1436=>{var _0x5b7f9a=_0x408794;switch(_0x1f1436){case _0x384945['SessionStatus'][_0x5b7f9a(0x12a)]:this[_0x5b7f9a(0x91)]();break;case _0x384945[_0x5b7f9a(0xf3)][_0x5b7f9a(0x97)]:this[_0x5b7f9a(0x14e)]();break;}}),this[_0x408794(0x16b)]['event$']['pipe'](_0x8b0515[_0x408794(0x119)](this[_0x408794(0x143)]))[_0x408794(0x106)](_0x316a2c=>{var _0x4144c7=_0x408794;const {eventID:_0x32c234}=_0x316a2c;switch(_0x32c234){case _0x251eb9[_0x4144c7(0x133)][_0x4144c7(0xc3)]:this[_0x4144c7(0xf6)](_0x316a2c);break;case _0x251eb9[_0x4144c7(0x133)][_0x4144c7(0x160)]:this[_0x4144c7(0x9c)](_0x316a2c);break;case _0x251eb9[_0x4144c7(0x133)][_0x4144c7(0x178)]:this[_0x4144c7(0xe1)]();break;case _0x251eb9[_0x4144c7(0x133)][_0x4144c7(0xda)]:this[_0x4144c7(0x96)](_0x316a2c);break;}}));}['tryStartPresenting'](){var _0x183d07=_0x52972c;this['_collabSession'][_0x183d07(0x108)]({'eventID':_0x251eb9['CollaborationEvent'][_0x183d07(0x172)],'data':{'unitID':this[_0x183d07(0x10d)],'userID':this['_collabSession'][_0x183d07(0xd0)]()}},this[_0x183d07(0x10d)]);}[_0x52972c(0xac)](){var _0x2b4a0d=_0x52972c;this[_0x2b4a0d(0x141)]===_0x2b4a0d(0xbb)&&(this[_0x2b4a0d(0xbd)][_0x2b4a0d(0xb1)](_0x2b4a0d(0x147)),this[_0x2b4a0d(0x16b)]['send']({'eventID':_0x251eb9[_0x2b4a0d(0x133)][_0x2b4a0d(0x178)],'data':{'unitID':this[_0x2b4a0d(0x10d)]}},this[_0x2b4a0d(0x10d)]));}[_0x52972c(0xd3)](){var _0xe5a140=_0x52972c;this[_0xe5a140(0x141)]===_0xe5a140(0xa0)&&(this[_0xe5a140(0xbd)][_0xe5a140(0xb1)](_0xe5a140(0xa8)),this[_0xe5a140(0x170)]());}[_0x52972c(0x11d)](){var _0xc03c25=_0x52972c;this[_0xc03c25(0x141)]==='following'&&this[_0xc03c25(0x16e)]();}[_0x52972c(0xf6)](_0x1a5ce1){var _0x47a61a=_0x52972c;const {presenter:_0x15209c}=_0x1a5ce1['data'],_0x1c3e43=this[_0x47a61a(0x16b)][_0x47a61a(0xd0)]();this['_presenter']=_0x15209c,_0x15209c===_0x1c3e43?(this[_0x47a61a(0x16e)](),this[_0x47a61a(0x16c)]()):this[_0x47a61a(0x141)]!==_0x47a61a(0xa0)&&(this[_0x47a61a(0xa6)](),this[_0x47a61a(0x170)]());}[_0x52972c(0x158)](){var _0x233626=_0x52972c;const _0x4c44f0={'eventID':_0x251eb9[_0x233626(0x133)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x233626(0x16b)][_0x233626(0x108)](_0x4c44f0,this[_0x233626(0x10d)]);}[_0x52972c(0xe1)](){var _0x574f33=_0x52972c;this[_0x574f33(0x129)]=null,this[_0x574f33(0x141)]!==_0x574f33(0xbb)&&this[_0x574f33(0x103)]();}[_0x52972c(0x96)](_0x325779){var _0x57b463=_0x52972c;if(this['_status']===_0x57b463(0xa8)&&this['_presenter']===_0x325779['data'][_0x57b463(0x10c)]){const _0x443f40=_0x251eb9[_0x57b463(0x131)](_0x325779[_0x57b463(0x13d)])[_0x57b463(0x90)][_0x57b463(0xa2)]()[_0x57b463(0xbc)](_0x303192=>_0x303192['id']===_0x48fa50[_0x57b463(0x139)]['id']);if(_0x443f40){const _0x33765a=_0x443f40[_0x57b463(0xf8)]['unitId'],_0x5061ac=_0x443f40[_0x57b463(0xf8)][_0x57b463(0x12e)]['id'];setTimeout(()=>{var _0x3bc6a8=_0x57b463;this[_0x3bc6a8(0x118)][_0x3bc6a8(0xd4)](_0x48fa50['SetWorksheetActiveOperation']['id'],{'unitId':_0x33765a,'subUnitId':_0x5061ac},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x48ceb0=_0x52972c;this[_0x48ceb0(0xbd)][_0x48ceb0(0xb1)](_0x48ceb0(0xbb));const _0x378a57=new Map(),_0x148acb=this[_0x48ceb0(0x8d)]=new _0x35a254[(_0x48ceb0(0x153))]();_0x148acb[_0x48ceb0(0x98)](_0x35a254[_0x48ceb0(0x14f)](()=>{var _0x2c9b10=_0x48ceb0;_0x378a57[_0x2c9b10(0x115)](_0xd2e70b=>_0xd2e70b['complete']()),_0x378a57[_0x2c9b10(0xdd)]();})),_0x148acb['add'](this[_0x48ceb0(0x118)][_0x48ceb0(0x12d)](_0x231fc7=>{var _0x33609e=_0x48ceb0,_0x7c1436;if(_0x231fc7['type']!==_0x35a254['CommandType'][_0x33609e(0x14d)]||!this[_0x33609e(0x15b)][_0x33609e(0xff)](_0x231fc7['id']))return;const {id:_0x4cb83a}=_0x231fc7;let _0xb9d29d;_0x378a57[_0x33609e(0x159)](_0x4cb83a)?_0xb9d29d=_0x378a57['get'](_0x4cb83a):(_0xb9d29d=new _0x4e83a9[(_0x33609e(0xf9))](),_0x378a57['set'](_0x4cb83a,_0xb9d29d),_0xb9d29d['pipe'](_0x8b0515['throttleTime']((_0x7c1436=this[_0x33609e(0x156)]['getConfig'](_0x18e7b8))!=null?_0x7c1436:_0x537530,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x33609e(0x106)](_0x69d859=>{var _0x390b80=_0x33609e;this[_0x390b80(0x16b)][_0x390b80(0x108)]({'eventID':_0x251eb9[_0x390b80(0x133)][_0x390b80(0x160)],'data':{'unitID':this['_unitID'],'operations':{[_0x69d859['id']]:{'id':_0x69d859['id'],'params':JSON[_0x390b80(0xb2)](_0x69d859['params'])}}}},this[_0x390b80(0x10d)]);})),_0xb9d29d[_0x33609e(0xb1)](_0x231fc7);})),this[_0x48ceb0(0x15b)][_0x48ceb0(0x12f)](this['_unitID'])[_0x48ceb0(0x115)](_0x142c44=>this[_0x48ceb0(0x16b)][_0x48ceb0(0x108)]({'eventID':_0x251eb9[_0x48ceb0(0x133)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x48ceb0(0x10d)],'operations':{[_0x142c44['id']]:{'id':_0x142c44['id'],'params':JSON[_0x48ceb0(0xb2)](_0x142c44[_0x48ceb0(0xf8)])}}}},this[_0x48ceb0(0x10d)]));}['_stopPresenting'](){var _0x5bd5c9=_0x52972c,_0x3fbf4f;this['_status$']['next'](_0x5bd5c9(0x147)),(_0x3fbf4f=this[_0x5bd5c9(0x8d)])==null||_0x3fbf4f[_0x5bd5c9(0x144)](),this['_commandDisposable']=null;}[_0x52972c(0x170)](){var _0x2f8ea5=_0x52972c,_0x3ce0d0;(_0x3ce0d0=this[_0x2f8ea5(0x8d)])==null||_0x3ce0d0[_0x2f8ea5(0x144)](),this[_0x2f8ea5(0xbd)][_0x2f8ea5(0xb1)](_0x2f8ea5(0xa8));}[_0x52972c(0x103)](){var _0x17491d=_0x52972c,_0x304a95;this['_status$'][_0x17491d(0xb1)](_0x17491d(0x147)),(_0x304a95=this['_commandDisposable'])==null||_0x304a95[_0x17491d(0x144)](),this['_commandDisposable']=null;}[_0x52972c(0x16e)](){var _0x409c8d=_0x52972c,_0x4f3671;this[_0x409c8d(0xbd)][_0x409c8d(0xb1)](_0x409c8d(0xa0)),(_0x4f3671=this[_0x409c8d(0x8d)])==null||_0x4f3671[_0x409c8d(0x144)]();}[_0x52972c(0x9c)](_0x10244b){var _0x54af59=_0x52972c;if([_0x54af59(0xbb),_0x54af59(0xa0),_0x54af59(0x100)][_0x54af59(0xc7)](this[_0x54af59(0x141)])||!_0x10244b['data'][_0x54af59(0x11a)]||_0x10244b[_0x54af59(0x13d)][_0x54af59(0x11a)]===this[_0x54af59(0x16b)][_0x54af59(0xd0)]())return;this[_0x54af59(0x141)]==='idle'&&this[_0x54af59(0x170)]();const _0x4607de=_0x10244b[_0x54af59(0x13d)][_0x54af59(0x13e)];Object[_0x54af59(0xd6)](_0x4607de)['forEach'](_0x41c536=>{var _0x4fb6ba=_0x54af59;this[_0x4fb6ba(0x118)]['executeCommand'](_0x41c536['id'],_0x41c536[_0x4fb6ba(0xf8)]?JSON[_0x4fb6ba(0x12c)](_0x41c536[_0x4fb6ba(0xf8)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x340284=_0x52972c,_0x244916;this['_status$'][_0x340284(0xb1)](_0x340284(0x100)),(_0x244916=this[_0x340284(0x8d)])==null||_0x244916[_0x340284(0x144)]();}['_handleOnline'](){var _0x3e6a92=_0x52972c;this['_status$'][_0x3e6a92(0xb1)](_0x3e6a92(0x147)),this[_0x3e6a92(0x158)]();}},_0x1eb8b3['LiveShareCoordinator']=_0x29b8d1([_0x409719(0x2,_0x35a254[_0x52972c(0xb7)]),_0x409719(0x3,_0x35a254[_0x52972c(0x10b)](_0x58a926)),_0x409719(0x4,_0x35a254['ICommandService'])],_0x1eb8b3[_0x52972c(0xba)]);function _0x4b5050(){var _0x5cd9f4=_0x52972c;const _0x4a676c=_0x211c35[_0x5cd9f4(0x11b)](_0x1eb8b3['LiveShareController']),_0x9d16de=_0x211c35[_0x5cd9f4(0x11b)](_0x35a254[_0x5cd9f4(0xc4)]),_0x2d2914=_0x211c35['useObservable'](()=>_0x9d16de[_0x5cd9f4(0xee)](_0x35a254[_0x5cd9f4(0x114)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x596372,_0x5e2c8d]=_0x263c12[_0x5cd9f4(0xce)](null),[_0x201da6,_0x48229b]=_0x263c12['useState'](_0x142c64['IDLE']),_0xfdee79=_0x263c12[_0x5cd9f4(0xa4)](null);return _0x263c12['useEffect'](()=>(_0x2d2914&&_0x4a676c[_0x5cd9f4(0xa7)](_0x2d2914['getUnitId']())[_0x5cd9f4(0x93)](_0x155d48=>{var _0x3eaab5=_0x5cd9f4;_0x5e2c8d(_0x155d48),_0xfdee79[_0x3eaab5(0x13c)]=_0x155d48[_0x3eaab5(0xb0)][_0x3eaab5(0x106)](_0x2d9b24=>{_0x48229b(_0x2d9b24);});}),()=>{var _0x53fb88=_0x5cd9f4,_0x274949;(_0x274949=_0xfdee79[_0x53fb88(0x13c)])==null||_0x274949[_0x53fb88(0x89)](),_0xfdee79['current']=null;}),[_0x2d2914,_0x4a676c]),_0x596372?_0x17df5b[_0x5cd9f4(0xf7)](_0x49b550[_0x5cd9f4(0xea)],{'align':_0x5cd9f4(0xfa),'disabled':_0x201da6===_0x142c64[_0x5cd9f4(0x12a)],'className':_0x5cd9f4(0x94),'overlay':_0x17df5b[_0x5cd9f4(0xf7)](_0x9fd9bb,{'status':_0x201da6,'coordinator':_0x596372}),'children':_0x17df5b['jsx'](_0x5cd9f4(0xa5),{'className':_0x49b550[_0x5cd9f4(0xbe)](_0x5cd9f4(0xd5),{'univer-cursor-not-allowed':_0x201da6===_0x142c64[_0x5cd9f4(0x12a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x201da6!==_0x142c64[_0x5cd9f4(0x12a)]}),'type':_0x5cd9f4(0xa5),'children':_0x17df5b[_0x5cd9f4(0xf7)](_0x13c7ec,{'className':'univer-size-4'})})}):null;}function _0x9fd9bb(_0x39a71b){var _0x47d3b3=_0x52972c;const {status:_0x4efc6e,coordinator:_0x2ff4b2}=_0x39a71b;switch(_0x4efc6e){case _0x142c64[_0x47d3b3(0xc1)]:return _0x17df5b[_0x47d3b3(0xf7)](_0x54fac8,{'coordinator':_0x2ff4b2});case _0x142c64[_0x47d3b3(0xa9)]:return _0x17df5b['jsx'](_0xf95f8,{'coordinator':_0x2ff4b2});case _0x142c64['NOT_FOLLOWING']:return _0x17df5b[_0x47d3b3(0xf7)](_0x3b0b0b,{'coordinator':_0x2ff4b2});case _0x142c64[_0x47d3b3(0x12a)]:return _0x17df5b[_0x47d3b3(0xf7)](_0x233a92,{});case _0x142c64[_0x47d3b3(0x111)]:return _0x17df5b[_0x47d3b3(0xf7)](_0x1091e2,{'coordinator':_0x2ff4b2});default:return null;}}function _0x54fac8(_0x2b979e){var _0x23d82b=_0x52972c;const {coordinator:_0xf822dd}=_0x2b979e;return _0x17df5b[_0x23d82b(0xb5)](_0x17df5b[_0x23d82b(0x92)],{'children':[_0x17df5b[_0x23d82b(0xf7)](_0x23d82b(0x17b),{'className':_0x23d82b(0xdf),'children':'Present\x20this\x20document'}),_0x17df5b[_0x23d82b(0xf7)](_0x49b550[_0x23d82b(0x11f)],{'size':_0x23d82b(0x104),'type':_0x23d82b(0x15e),'onClick':()=>_0xf822dd['tryStartPresenting'](),'children':'Start'})]});}function _0xf95f8(_0x19aa6f){var _0x251102=_0x52972c;const {coordinator:_0x9f8b1a}=_0x19aa6f;return _0x17df5b[_0x251102(0xb5)](_0x17df5b[_0x251102(0x92)],{'children':[_0x17df5b[_0x251102(0xf7)]('div',{'className':_0x251102(0xdf),'children':_0x251102(0x107)}),_0x17df5b[_0x251102(0xf7)](_0x49b550[_0x251102(0x11f)],{'size':_0x251102(0x104),'type':_0x251102(0x15e),'onClick':()=>_0x9f8b1a[_0x251102(0x11d)](),'children':_0x251102(0xcf)})]});}function _0x3b0b0b(_0x2b0567){var _0x33297a=_0x52972c;const {coordinator:_0x5be89a}=_0x2b0567;return _0x17df5b[_0x33297a(0xb5)](_0x17df5b[_0x33297a(0x92)],{'children':[_0x17df5b[_0x33297a(0xf7)](_0x33297a(0x17b),{'className':_0x33297a(0xdf),'children':_0x33297a(0x9f)}),_0x17df5b[_0x33297a(0xf7)](_0x49b550['Button'],{'size':_0x33297a(0x104),'type':_0x33297a(0xe7),'onClick':()=>_0x5be89a[_0x33297a(0xd3)](),'children':'Start\x20following'})]});}function _0x1091e2(_0x2f1207){var _0x54e9c8=_0x52972c;const {coordinator:_0x503ba7}=_0x2f1207;return _0x17df5b[_0x54e9c8(0xb5)](_0x17df5b[_0x54e9c8(0x92)],{'children':[_0x17df5b[_0x54e9c8(0xf7)](_0x54e9c8(0x17b),{'className':_0x54e9c8(0xdf),'children':_0x54e9c8(0xf0)}),_0x17df5b[_0x54e9c8(0xf7)](_0x49b550[_0x54e9c8(0x11f)],{'size':_0x54e9c8(0x104),'type':_0x54e9c8(0x15e),'onClick':()=>_0x503ba7[_0x54e9c8(0xac)](),'children':_0x54e9c8(0xe4)})]});}function _0x233a92(){var _0x2cafed=_0x52972c;return _0x17df5b['jsx'](_0x17df5b[_0x2cafed(0x92)],{'children':'You\x27are\x20offline.'});}var _0x3af117=Object[_0x52972c(0xa1)],_0x2bc32b=(_0x46fd71,_0x2f4039,_0x311067,_0x2f3750)=>{for(var _0x8da7b=_0x2f3750>0x1?void 0x0:_0x2f3750?_0x3af117(_0x2f4039,_0x311067):_0x2f4039,_0x363cb8=_0x46fd71['length']-0x1,_0x1b25b4;_0x363cb8>=0x0;_0x363cb8--)(_0x1b25b4=_0x46fd71[_0x363cb8])&&(_0x8da7b=_0x1b25b4(_0x8da7b)||_0x8da7b);return _0x8da7b;},_0x2424a7=(_0x562caf,_0x29ed64)=>(_0x34ce44,_0xe9732)=>_0x29ed64(_0x34ce44,_0xe9732,_0x562caf);_0x1eb8b3[_0x52972c(0xeb)]=class extends _0x35a254[_0x52972c(0xb4)]{constructor(_0x114be6,_0xe38b3c){var _0x5bc1b0=_0x52972c;super(),this['_injector']=_0x114be6,this[_0x5bc1b0(0x149)]=_0xe38b3c,this['_mountLiveShare']();}[_0x52972c(0x177)](){var _0x213b9a=_0x52972c;this[_0x213b9a(0x123)](this[_0x213b9a(0x149)][_0x213b9a(0x128)](_0x211c35[_0x213b9a(0xfd)]['HEADER_MENU'],()=>_0x211c35[_0x213b9a(0x164)](_0x4b5050,this[_0x213b9a(0x16d)])));}},_0x1eb8b3[_0x52972c(0xeb)]=_0x2bc32b([_0x2424a7(0x0,_0x35a254['Inject'](_0x35a254['Injector'])),_0x2424a7(0x1,_0x211c35[_0x52972c(0x179)])],_0x1eb8b3[_0x52972c(0xeb)]);var _0x5ba317=Object[_0x52972c(0x13a)],_0x1a30ad=Object[_0x52972c(0xa1)],_0x5a98a0=(_0x5cfaff,_0x1e5c1d,_0x53b2df)=>_0x1e5c1d in _0x5cfaff?_0x5ba317(_0x5cfaff,_0x1e5c1d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53b2df}):_0x5cfaff[_0x1e5c1d]=_0x53b2df,_0x5d5c63=(_0x10a000,_0x548c60,_0x3aaa85,_0x17f366)=>{var _0x107d40=_0x52972c;for(var _0x584a5a=_0x17f366>0x1?void 0x0:_0x17f366?_0x1a30ad(_0x548c60,_0x3aaa85):_0x548c60,_0x5f55a9=_0x10a000[_0x107d40(0x15a)]-0x1,_0x51abfb;_0x5f55a9>=0x0;_0x5f55a9--)(_0x51abfb=_0x10a000[_0x5f55a9])&&(_0x584a5a=_0x51abfb(_0x584a5a)||_0x584a5a);return _0x584a5a;},_0x7f44ec=(_0x1eb912,_0x539187)=>(_0x242b5d,_0xef4955)=>_0x539187(_0x242b5d,_0xef4955,_0x1eb912),_0x2ed43d=(_0x24c4c5,_0x3298a8,_0xd48664)=>_0x5a98a0(_0x24c4c5,typeof _0x3298a8!='symbol'?_0x3298a8+'':_0x3298a8,_0xd48664);const _0x2953e6=_0x52972c(0x166);_0x1eb8b3[_0x52972c(0x137)]=class extends _0x35a254[_0x52972c(0x9a)]{constructor(_0x3a2231=_0x2d5b59,_0x326ce3,_0x66d3a9){var _0x21adbd=_0x52972c;super(),this[_0x21adbd(0xdb)]=_0x3a2231,this['_injector']=_0x326ce3,this[_0x21adbd(0x156)]=_0x66d3a9;const {..._0x24df41}=_0x35a254['merge']({},_0x2d5b59,this['_config']);this[_0x21adbd(0x156)]['setConfig'](_0x3aaace,_0x24df41);}['onStarting'](){var _0x741bd2=_0x52972c;_0x35a254['registerDependencies'](this[_0x741bd2(0x16d)],_0x35a254[_0x741bd2(0x101)]([[_0x58a926],[_0x1eb8b3[_0x741bd2(0x134)]],[_0x4048ed],[_0x1eb8b3[_0x741bd2(0xeb)]]],this[_0x741bd2(0xdb)][_0x741bd2(0x151)])),_0x35a254['touchDependencies'](this[_0x741bd2(0x16d)],[[_0x4048ed]]);}[_0x52972c(0x17c)](){var _0x2e9604=_0x52972c;_0x35a254['touchDependencies'](this[_0x2e9604(0x16d)],[[_0x1eb8b3[_0x2e9604(0xeb)]]]);}},_0x2ed43d(_0x1eb8b3[_0x52972c(0x137)],_0x52972c(0xc8),_0x35a254[_0x52972c(0x114)][_0x52972c(0xfc)]),_0x2ed43d(_0x1eb8b3['UniverLiveSharePlugin'],_0x52972c(0x140),_0x2953e6),_0x1eb8b3[_0x52972c(0x137)]=_0x5d5c63([_0x35a254[_0x52972c(0xe0)](_0x384945[_0x52972c(0x116)]),_0x7f44ec(0x1,_0x35a254[_0x52972c(0x10b)](_0x35a254[_0x52972c(0x157)])),_0x7f44ec(0x2,_0x35a254[_0x52972c(0xb7)])],_0x1eb8b3[_0x52972c(0x137)]),_0x1eb8b3[_0x52972c(0x15f)]=_0x4b5050,_0x1eb8b3[_0x52972c(0x8c)]=_0x58a926,_0x1eb8b3[_0x52972c(0xab)]=_0x142c64,Object[_0x52972c(0x13a)](_0x1eb8b3,Symbol[_0x52972c(0x120)],{'value':_0x52972c(0x102)});}));function _0x76be(_0x120c59,_0x41dcbe){var _0x2c845c=_0x2c84();return _0x76be=function(_0x76be1b,_0x26e85a){_0x76be1b=_0x76be1b-0x87;var _0x19635e=_0x2c845c[_0x76be1b];return _0x19635e;},_0x76be(_0x120c59,_0x41dcbe);}function _0x2c84(){var _0x1d99b3=['subscribe','You\x27re\x20following\x20the\x20presenter','send','react','hasOwnProperty','Inject','memberID','_unitID','0\x200\x2016\x2016','map','from','PRESENTING','url(#$1','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','UniverInstanceType','forEach','UniverCollaborationClientPlugin','UniverDesign','_commandService','takeUntil','presenter','useDependency','CollaborationSessionService','stopFollowing','exports','Button','toStringTag','581qYOViZ','asObservable','disposeWithMe','tag','rxjs/operators','@univerjs-pro/collaboration','get','registerComponent','_presenter','OFFLINE','mask','parse','onCommandExecuted','sheet','getInitialStates','defIds','parseProtocolChangeset','NOT_FOLLOWING','CollaborationEvent','LiveShareController','@univerjs-pro/collaboration-client','call','UniverLiveSharePlugin','_collabSessionService','InsertSheetMutation','defineProperty','99qnVBIP','current','data','operations','init','pluginName','_status','amd','dispose$','dispose','getTypeOfUnitAdded$','1em','idle','150276JGtsIB','_uiPartsService','rxjs','entries','createElement','OPERATION','_handleOnline','toDisposable','trim','override','react/jsx-runtime','DisposableCollection','_startLiveShareCoordinator','4168YSpxNv','_configService','Injector','_fetchOperations','has','length','_liveShareService','UniverCore','_reporters','default','LiveShare','LIVESHARE_OPERATION','sessionStatus$','registerInitialStateReporter','idSuffix','connectInjector','children','UNIVER_LIVE_SHARE_PLUGIN','univerjs-icon\x20univerjs-icon-','@univerjs/ui','getUnitId','UniverIcon','_collabSession','_startPresenting','_injector','_stopFollowing','evenodd','_startFollowing','use','LIVESHARE_REQUEST_HOST','1078kABMND','SetScrollOperation','defs','assign','_mountLiveShare','LIVESHARE_TERMINATE','IUIPartsService','970WsiDZm','div','onRendered','30gTONEJ','complete','434696qVeWal','UniverSheetsUi','unsubscribe','createInstance','xlink:href','LiveShareService','_commandDisposable','svg','@univerjs/core','mutations','_handleOffline','Fragment','then','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','symbol','_handleNewChangeSets','ONLINE','add','fill','Plugin','UniverProLiveShare','_handleOperation','function','UniverProCollaborationClient','You\x27re\x20not\x20following\x20the\x20presenter','not-following','getOwnPropertyDescriptor','reverse','displayName','useRef','button','_stopPresenting','getLiveShareCoordinator','following','FOLLOWING','none','LiveShareStatus','stopPresenting','prototype','getValue','@univerjs/sheets-ui','status$','next','stringify','RxDisposable','Disposable','jsxs','currentColor','IConfigService','attrs','getTypeOfUnitDisposed$','LiveShareCoordinator','presenting','find','_status$','clsx','registerSharedOperation','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','IDLE','55372eBqPfh','LIVESHARE_NEW_HOST','IUniverInstanceService','1150443pXivSi','pipe','includes','type','live-share.config','random','indexOf','_init','@univerjs/sheets','useState','Stop\x20following','getMemberID','getOwnPropertySymbols','delete','startFollowing','executeCommand','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','values','requireSession','UniverSheets','BehaviorSubject','NEW_CHANGESETS','_config','UniverProCollaboration','clear','forwardRef','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','DependentOn','_handleTerminate','UNIVER_SHEET','className','Stop\x20presenting','_univerInstanceService','live-share-single','text','colorChannel1','_entities','Dropdown','DesktopLiveShareController','concat','@univerjs/design','getCurrentTypeOfUnit$','set','You\x27re\x20presenting\x20the\x20document','extend','_sharedOperations','SessionStatus','SetZoomRatioOperation','React','_handleNewHost','jsx','params','Subject','end','6852hBjXTS','UNIVER_UNKNOWN','BuiltInUIPart','object','shouldShareOperation','offline','mergeOverrideWithDependencies','Module','_beIdle','small','867468EKMIDx'];_0x2c84=function(){return _0x1d99b3;};return _0x2c84();}
1
+ function _0x1e1d(){var _0x977edf=['LIVESHARE_FETCH_OPERATIONS','subscribe','assign','children','defs','_startLiveShareCoordinator','touchDependencies','length','trim','defineProperty','_handleNewChangeSets','requireSession','Disposable','random','type','LiveShareService','displayName','Fragment','LiveShareStatus','registerInitialStateReporter','Stop\x20presenting','getTypeOfUnitAdded$','getMemberID','univerjs-icon\x20univerjs-icon-','_status$','stopPresenting','next','toDisposable','_startPresenting','univer-size-4','path','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','useRef','391516RlbTqa','1em','_liveShareService','sheet','_commandService','currentColor','idle','Stop\x20following','_fetchOperations','_handleNewHost','LiveShareCoordinator','icon','DesktopLiveShareController','40533iPHDsD','Plugin','_sharedOperations','useEffect','Inject','presenter','extend','You\x27are\x20offline.','defIds','apply','_configService','UniverCollaborationClientPlugin','getTypeOfUnitDisposed$','_handleOperation','takeUntil','colorChannel1','3617001FjjhoN','toStringTag','22806910KMJDeM','_status','@univerjs/sheets-ui','LIVESHARE_TERMINATE','find','_reporters','unitId','@univerjs-pro/collaboration','PRESENTING','DependentOn','LiveShare','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getConfig','propertyIsEnumerable','HEADER_MENU','not-following','getCurrentTypeOfUnit$','@univerjs/ui','then','string','UniverSheets','SAME_OPERATION_SHARE_INTERVAL','jsx','hasOwnProperty','forwardRef','getLiveShareCoordinator','registerComponent','Present\x20this\x20document','pluginName','0\x200\x2016\x2016','send','getOwnPropertyDescriptor','Button','CollaborationSessionService','jsxs','useDependency','UniverProCollaborationClient','override','_uiPartsService','_presenter','rxjs/operators','init','tryStartPresenting','use','React','following','createInstance','getValue','dispose','prototype','values','LIVESHARE_REQUEST_HOST','_univerInstanceService','CollaborationEvent','UniverSheetsUi','evenodd','getUnitId','merge','registerSharedOperation','UniverProCollaboration','set','text','live-share-single','_unitID','includes','stopFollowing','SetWorksheetActiveOperation','startFollowing','useObservable','toString','_mountLiveShare','operations','disposeWithMe','params','UniverIcon','CommandType','concat','tag','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','UniverDesign','data','forEach','_collabSession','@univerjs/design','UniverLiveSharePlugin','pipe','get','react','_beIdle','replace','amd','SetScrollOperation','sessionStatus$','NOT_FOLLOWING','@univerjs-pro/collaboration-client','add','getInitialStates','_handleOffline','shouldShareOperation','entries','substring','UniverInstanceType','executeCommand','_collabSessionService','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','Subject','fill','Start\x20following','NEW_CHANGESETS','ICommandService','IUIPartsService','@univerjs/core','indexOf','throttleTime','_handleOnline','FOLLOWING','_stopFollowing','OFFLINE','url(#$1','mask','ONLINE','UNIVER_SHEET','parseProtocolChangeset','@univerjs/sheets','delete','mutations','LIVESHARE_NEW_HOST','UniverUi','button','RxDisposable','Dropdown','complete','react/jsx-runtime','614410hJCFVA','_stopPresenting','_handleTerminate','current','LiveShareController','_entities','5BGXsbH','xlink:href','function','Start','getOwnPropertySymbols','_injector','from','event$','mergeOverrideWithDependencies','rxjs','has','IConfigService','parse','DisposableCollection','_commandDisposable','object','div','end','7115816aELtWl','OPERATION','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','_config','symbol','small','UNIVER_LIVE_SHARE_PLUGIN','stringify','Injector','IDLE','useState','_startFollowing','default','createElement','setConfig','call','presenting','142GMcgUn','onStarting','133ZQmgjo','offline','map','BehaviorSubject','exports','className','clsx','connectInjector','16410lWaqvy','dispose$','_init','idSuffix','live-share.config'];_0x1e1d=function(){return _0x977edf;};return _0x1e1d();}function _0x2bf3(_0x2ec496,_0x2b8520){var _0x1e1dee=_0x1e1d();return _0x2bf3=function(_0x2bf393,_0x367623){_0x2bf393=_0x2bf393-0xe4;var _0x29c45e=_0x1e1dee[_0x2bf393];return _0x29c45e;},_0x2bf3(_0x2ec496,_0x2b8520);}(function(_0x6ccf6e,_0x346a5a){var _0x4d866f=_0x2bf3,_0x8c9c1d=_0x6ccf6e();while(!![]){try{var _0x32aa77=parseInt(_0x4d866f(0x11e))/0x1+parseInt(_0x4d866f(0x147))/0x2*(-parseInt(_0x4d866f(0x185))/0x3)+-parseInt(_0x4d866f(0x178))/0x4*(parseInt(_0x4d866f(0x124))/0x5)+-parseInt(_0x4d866f(0x151))/0x6*(parseInt(_0x4d866f(0x149))/0x7)+-parseInt(_0x4d866f(0x136))/0x8+-parseInt(_0x4d866f(0x195))/0x9+parseInt(_0x4d866f(0x197))/0xa;if(_0x32aa77===_0x346a5a)break;else _0x8c9c1d['push'](_0x8c9c1d['shift']());}catch(_0x17b4eb){_0x8c9c1d['push'](_0x8c9c1d['shift']());}}}(_0x1e1d,0x78c12),function(_0x2b4054,_0x45d3f5){var _0x188f56=_0x2bf3;typeof exports==_0x188f56(0x133)&&typeof module<'u'?_0x45d3f5(exports,require(_0x188f56(0xf7)),require(_0x188f56(0x108)),require(_0x188f56(0x114)),require(_0x188f56(0x199)),require(_0x188f56(0x1a8)),require(_0x188f56(0x11d)),require(_0x188f56(0xec)),require('react'),require(_0x188f56(0x19e)),require('rxjs'),require(_0x188f56(0x1bf))):typeof define==_0x188f56(0x126)&&define[_0x188f56(0xf3)]?define([_0x188f56(0x14d),_0x188f56(0xf7),'@univerjs/core',_0x188f56(0x114),_0x188f56(0x199),_0x188f56(0x1a8),_0x188f56(0x11d),'@univerjs/design',_0x188f56(0xf0),_0x188f56(0x19e),'rxjs',_0x188f56(0x1bf)],_0x45d3f5):(_0x2b4054=typeof globalThis<'u'?globalThis:_0x2b4054||self,_0x45d3f5(_0x2b4054['UniverProLiveShare']={},_0x2b4054[_0x188f56(0x1bb)],_0x2b4054['UniverCore'],_0x2b4054[_0x188f56(0x1ab)],_0x2b4054[_0x188f56(0x1cd)],_0x2b4054[_0x188f56(0x118)],_0x2b4054['React'],_0x2b4054[_0x188f56(0xe8)],_0x2b4054[_0x188f56(0x1c3)],_0x2b4054[_0x188f56(0x1d2)],_0x2b4054['rxjs'],_0x2b4054[_0x188f56(0x12d)]['operators']));}(this,function(_0x384946,_0x5e6e61,_0x8a81f,_0x156b92,_0x2ccbc9,_0x146422,_0x473f32,_0x4036a0,_0x10f328,_0x4a4762,_0x372c5e,_0x1f9610){'use strict';var _0x1cf38d=_0x2bf3;var _0x60db25=Object['defineProperty'],_0x320f80=(_0x2f6ea1,_0x83fa3f,_0x4ab048)=>_0x83fa3f in _0x2f6ea1?_0x60db25(_0x2f6ea1,_0x83fa3f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ab048}):_0x2f6ea1[_0x83fa3f]=_0x4ab048,_0x2bcbb9=(_0x457d6a,_0x3b40d3,_0x26866b)=>_0x320f80(_0x457d6a,typeof _0x3b40d3!=_0x1cf38d(0x13a)?_0x3b40d3+'':_0x3b40d3,_0x26866b);const _0x2daf21=_0x1cf38d(0x155),_0x1d9461={};class _0x3e0149 extends _0x8a81f[_0x1cf38d(0x162)]{constructor(){var _0x3f738f=_0x1cf38d;super(...arguments),_0x2bcbb9(this,_0x3f738f(0x187),new Set()),_0x2bcbb9(this,'_reporters',new Set());}[_0x1cf38d(0x1d1)](_0x1eb277){var _0x1c1e3c=_0x1cf38d;return this[_0x1c1e3c(0x187)][_0x1c1e3c(0xf8)](_0x1eb277),_0x8a81f[_0x1c1e3c(0x171)](()=>this['_sharedOperations'][_0x1c1e3c(0x115)](_0x1eb277));}[_0x1cf38d(0x169)](_0x25d550){var _0x16312c=_0x1cf38d;return this[_0x16312c(0x19c)][_0x16312c(0xf8)](_0x25d550),_0x8a81f[_0x16312c(0x171)](()=>this[_0x16312c(0x19c)][_0x16312c(0x115)](_0x25d550));}[_0x1cf38d(0xfb)](_0x18a873){var _0x4dc564=_0x1cf38d;return this[_0x4dc564(0x187)]['has'](_0x18a873);}['getInitialStates'](_0x381632){var _0x387ffb=_0x1cf38d;return Array[_0x387ffb(0x12a)](this[_0x387ffb(0x19c)])[_0x387ffb(0x14b)](_0x48efe1=>_0x48efe1(_0x381632));}}var _0x5560a6=Object[_0x1cf38d(0x1b6)],_0x2f68fa=(_0x478b59,_0x3f0197,_0x1d0fcb,_0x3aaa2c)=>{for(var _0x3b6822=_0x3aaa2c>0x1?void 0x0:_0x3aaa2c?_0x5560a6(_0x3f0197,_0x1d0fcb):_0x3f0197,_0xfb996c=_0x478b59['length']-0x1,_0xdde06c;_0xfb996c>=0x0;_0xfb996c--)(_0xdde06c=_0x478b59[_0xfb996c])&&(_0x3b6822=_0xdde06c(_0x3b6822)||_0x3b6822);return _0x3b6822;},_0x4f8873=(_0x191e4f,_0x3cf78f)=>(_0x5abfc4,_0x3ae633)=>_0x3cf78f(_0x5abfc4,_0x3ae633,_0x191e4f);let _0x1de6a8=class extends _0x8a81f['Disposable']{constructor(_0x4d66a1){var _0x51df3f=_0x1cf38d;super(),this['_liveShareService']=_0x4d66a1,this[_0x51df3f(0x153)]();}[_0x1cf38d(0x153)](){var _0x24776d=_0x1cf38d;[_0x2ccbc9['SetZoomRatioOperation']['id'],_0x2ccbc9[_0x24776d(0xf4)]['id'],_0x156b92[_0x24776d(0x1d9)]['id']][_0x24776d(0xea)](_0xd00378=>{var _0x1082ce=_0x24776d;this[_0x1082ce(0x1df)](this[_0x1082ce(0x17a)]['registerSharedOperation'](_0xd00378));});}};_0x1de6a8=_0x2f68fa([_0x4f8873(0x0,_0x8a81f['Inject'](_0x3e0149))],_0x1de6a8);var _0x276def=function(){var _0x1faa1e=_0x1cf38d;return _0x276def=Object[_0x1faa1e(0x158)]||function(_0x5276cf){var _0x3b39f5=_0x1faa1e;for(var _0x248d61,_0x55df29=0x1,_0xe82d9=arguments[_0x3b39f5(0x15d)];_0x55df29<_0xe82d9;_0x55df29++){_0x248d61=arguments[_0x55df29];for(var _0x29e58d in _0x248d61)Object[_0x3b39f5(0x1c8)][_0x3b39f5(0x1ae)]['call'](_0x248d61,_0x29e58d)&&(_0x5276cf[_0x29e58d]=_0x248d61[_0x29e58d]);}return _0x5276cf;},_0x276def[_0x1faa1e(0x18e)](this,arguments);},_0x23a40f=function(_0xf49ad9,_0x2b4433){var _0x5b1e8=_0x1cf38d,_0x4458c3={};for(var _0x2f75d7 in _0xf49ad9)Object[_0x5b1e8(0x1c8)][_0x5b1e8(0x1ae)]['call'](_0xf49ad9,_0x2f75d7)&&_0x2b4433['indexOf'](_0x2f75d7)<0x0&&(_0x4458c3[_0x2f75d7]=_0xf49ad9[_0x2f75d7]);if(_0xf49ad9!=null&&typeof Object[_0x5b1e8(0x128)]==_0x5b1e8(0x126)){for(var _0x2287d8=0x0,_0x2f75d7=Object['getOwnPropertySymbols'](_0xf49ad9);_0x2287d8<_0x2f75d7[_0x5b1e8(0x15d)];_0x2287d8++)_0x2b4433[_0x5b1e8(0x109)](_0x2f75d7[_0x2287d8])<0x0&&Object[_0x5b1e8(0x1c8)][_0x5b1e8(0x1a4)][_0x5b1e8(0x145)](_0xf49ad9,_0x2f75d7[_0x2287d8])&&(_0x4458c3[_0x2f75d7[_0x2287d8]]=_0xf49ad9[_0x2f75d7[_0x2287d8]]);}return _0x4458c3;},_0x38a9d1=_0x10f328[_0x1cf38d(0x1af)](function(_0x3317a3,_0x5113e6){var _0x19ffd0=_0x1cf38d,_0x468563=_0x3317a3[_0x19ffd0(0x183)],_0x9e649=_0x3317a3['id'],_0x14bb91=_0x3317a3[_0x19ffd0(0x14e)],_0xcfa623=_0x3317a3[_0x19ffd0(0x18b)],_0x3cee94=_0x23a40f(_0x3317a3,['icon','id',_0x19ffd0(0x14e),'extend']),_0x247828=_0x19ffd0(0x16d)[_0x19ffd0(0xe5)](_0x9e649,'\x20')[_0x19ffd0(0xe5)](_0x14bb91||'')[_0x19ffd0(0x15e)](),_0x14f92a=_0x10f328[_0x19ffd0(0x177)]('_'[_0x19ffd0(0xe5)](_0x101686()));return _0x3a58cd(_0x468563,''[_0x19ffd0(0xe5)](_0x9e649),{'defIds':_0x468563[_0x19ffd0(0x18d)],'idSuffix':_0x14f92a[_0x19ffd0(0x121)]},_0x276def({'ref':_0x5113e6,'className':_0x247828},_0x3cee94),_0xcfa623);});function _0x3a58cd(_0x5552ce,_0x5180c7,_0x3f68c9,_0x1277d0,_0x1be657){var _0x45fe88=_0x1cf38d;return _0x10f328[_0x45fe88(0x143)](_0x5552ce['tag'],_0x276def(_0x276def({'key':_0x5180c7},_0x105714(_0x5552ce,_0x3f68c9,_0x1be657)),_0x1277d0),(_0x3a2fc4(_0x5552ce,_0x3f68c9)[_0x45fe88(0x159)]||[])[_0x45fe88(0x14b)](function(_0x28f40c,_0x3b581f){var _0x41a548=_0x45fe88;return _0x3a58cd(_0x28f40c,''['concat'](_0x5180c7,'-')[_0x41a548(0xe5)](_0x5552ce[_0x41a548(0xe6)],'-')[_0x41a548(0xe5)](_0x3b581f),_0x3f68c9,void 0x0,_0x1be657);}));}function _0x105714(_0x2818c7,_0x5eba16,_0x287c43){var _0x3d129f=_0x1cf38d,_0x293d28=_0x276def({},_0x2818c7['attrs']);_0x287c43!=null&&_0x287c43[_0x3d129f(0x194)]&&_0x293d28[_0x3d129f(0x103)]==='colorChannel1'&&(_0x293d28[_0x3d129f(0x103)]=_0x287c43[_0x3d129f(0x194)]),_0x2818c7[_0x3d129f(0xe6)]===_0x3d129f(0x110)&&_0x293d28['id']&&(_0x293d28['id']=_0x293d28['id']+_0x5eba16[_0x3d129f(0x154)]),Object[_0x3d129f(0xfc)](_0x293d28)[_0x3d129f(0xea)](function(_0x316450){var _0xafce32=_0x3d129f,_0x1aaee9=_0x316450[0x0],_0x174773=_0x316450[0x1];_0x1aaee9==='mask'&&typeof _0x174773=='string'&&(_0x293d28[_0x1aaee9]=_0x174773['replace'](/url\(#(.*)\)/,_0xafce32(0x10f)[_0xafce32(0xe5)](_0x5eba16[_0xafce32(0x154)],')')));});var _0x457d0a=_0x5eba16['defIds'];return!_0x457d0a||_0x457d0a[_0x3d129f(0x15d)]===0x0||(_0x2818c7[_0x3d129f(0xe6)]===_0x3d129f(0x1c2)&&_0x293d28[_0x3d129f(0x125)]&&(_0x293d28[_0x3d129f(0x125)]=_0x293d28[_0x3d129f(0x125)]+_0x5eba16[_0x3d129f(0x154)]),Object[_0x3d129f(0xfc)](_0x293d28)[_0x3d129f(0xea)](function(_0x54aafb){var _0x590aed=_0x3d129f,_0x4bf71b=_0x54aafb[0x0],_0x326730=_0x54aafb[0x1];typeof _0x326730=='string'&&(_0x293d28[_0x4bf71b]=_0x326730[_0x590aed(0xf2)](/url\(#(.*)\)/,_0x590aed(0x10f)['concat'](_0x5eba16['idSuffix'],')')));})),_0x293d28;}function _0x3a2fc4(_0x2f3455,_0x31fc7a){var _0x2bdbbe=_0x1cf38d,_0x3ad136,_0x1cd8bb=_0x31fc7a[_0x2bdbbe(0x18d)];return!_0x1cd8bb||_0x1cd8bb['length']===0x0?_0x2f3455:_0x2f3455['tag']===_0x2bdbbe(0x15a)&&(!((_0x3ad136=_0x2f3455[_0x2bdbbe(0x159)])===null||_0x3ad136===void 0x0)&&_0x3ad136[_0x2bdbbe(0x15d)])?_0x276def(_0x276def({},_0x2f3455),{'children':_0x2f3455[_0x2bdbbe(0x159)][_0x2bdbbe(0x14b)](function(_0x4b8e36){var _0x3efe41=_0x2bdbbe;return typeof _0x4b8e36['attrs']['id']==_0x3efe41(0x1aa)&&_0x1cd8bb&&_0x1cd8bb[_0x3efe41(0x109)](_0x4b8e36['attrs']['id'])>-0x1?_0x276def(_0x276def({},_0x4b8e36),{'attrs':_0x276def(_0x276def({},_0x4b8e36['attrs']),{'id':_0x4b8e36['attrs']['id']+_0x31fc7a[_0x3efe41(0x154)]})}):_0x4b8e36;})}):_0x2f3455;}function _0x101686(){var _0x22f148=_0x1cf38d;return Math[_0x22f148(0x163)]()[_0x22f148(0x1dc)](0x24)[_0x22f148(0xfd)](0x2,0x8);}_0x38a9d1[_0x1cf38d(0x166)]=_0x1cf38d(0x1e1);var _0x5b5cee={'tag':'svg','attrs':{'fill':'none','viewBox':_0x1cf38d(0x1b4),'width':_0x1cf38d(0x179),'height':'1em'},'children':[{'tag':_0x1cf38d(0x174),'attrs':{'fill':_0x1cf38d(0x17d),'d':_0x1cf38d(0x101)}},{'tag':_0x1cf38d(0x174),'attrs':{'fill':_0x1cf38d(0x17d),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x1cf38d(0x1ce),'clipRule':_0x1cf38d(0x1ce)}}]},_0x51a76a=_0x10f328['forwardRef'](function(_0x263878,_0x3026f1){var _0x7672d3=_0x1cf38d;return _0x10f328[_0x7672d3(0x143)](_0x38a9d1,Object['assign']({},_0x263878,{'id':_0x7672d3(0x1d5),'ref':_0x3026f1,'icon':_0x5b5cee}));});_0x51a76a[_0x1cf38d(0x166)]='LiveShareSingle';var _0x2904b1=Object[_0x1cf38d(0x1b6)],_0x3c4ec0=(_0x5da903,_0x403dad,_0x186d4a,_0x41dc10)=>{var _0x9cf23b=_0x1cf38d;for(var _0x4b7c0f=_0x41dc10>0x1?void 0x0:_0x41dc10?_0x2904b1(_0x403dad,_0x186d4a):_0x403dad,_0x5eef98=_0x5da903[_0x9cf23b(0x15d)]-0x1,_0x321d62;_0x5eef98>=0x0;_0x5eef98--)(_0x321d62=_0x5da903[_0x5eef98])&&(_0x4b7c0f=_0x321d62(_0x4b7c0f)||_0x4b7c0f);return _0x4b7c0f;},_0x29d401=(_0x51cc8c,_0x5587f9)=>(_0x25b912,_0x57c28d)=>_0x5587f9(_0x25b912,_0x57c28d,_0x51cc8c);_0x384946[_0x1cf38d(0x122)]=class extends _0x8a81f[_0x1cf38d(0x11a)]{constructor(_0x52c9f9,_0x3f9d7d,_0x3c87a3){var _0x4b8119=_0x1cf38d;super(),_0x2bcbb9(this,'_entities',new Map()),(this[_0x4b8119(0x1cb)]=_0x52c9f9,this[_0x4b8119(0x129)]=_0x3f9d7d,this[_0x4b8119(0x100)]=_0x3c87a3,this[_0x4b8119(0x153)]());}async[_0x1cf38d(0x1b0)](_0x5b58f2){var _0x1bb000=_0x1cf38d;return this[_0x1bb000(0x123)][_0x1bb000(0x12e)](_0x5b58f2)||await this[_0x1bb000(0x15b)](_0x5b58f2),this[_0x1bb000(0x123)][_0x1bb000(0xef)](_0x5b58f2);}[_0x1cf38d(0x153)](){var _0x5940f9=_0x1cf38d;this[_0x5940f9(0x1cb)][_0x5940f9(0x16b)](_0x8a81f[_0x5940f9(0xfe)][_0x5940f9(0x112)])[_0x5940f9(0xee)](_0x1f9610[_0x5940f9(0x193)](this[_0x5940f9(0x152)]))[_0x5940f9(0x157)](async _0x517257=>{var _0x2844ae=_0x5940f9;const _0x3221ac=_0x517257[_0x2844ae(0x1cf)]();this[_0x2844ae(0x123)][_0x2844ae(0x12e)](_0x3221ac)||this['_startLiveShareCoordinator'](_0x3221ac);}),this[_0x5940f9(0x1cb)][_0x5940f9(0x191)](_0x8a81f[_0x5940f9(0xfe)]['UNIVER_SHEET'])[_0x5940f9(0xee)](_0x1f9610[_0x5940f9(0x193)](this['dispose$']))[_0x5940f9(0x157)](_0x2264b6=>{var _0x5c156f=_0x5940f9;const _0x11356b=_0x2264b6[_0x5c156f(0x1cf)](),_0x708de2=this[_0x5c156f(0x123)][_0x5c156f(0xef)](_0x11356b);_0x708de2==null||_0x708de2[_0x5c156f(0x1c7)]();});}async[_0x1cf38d(0x15b)](_0x6d0427){var _0x10b705=_0x1cf38d;const _0x61e20b=await this[_0x10b705(0x100)][_0x10b705(0x161)](_0x6d0427),_0x160ef4=this['_injector'][_0x10b705(0x1c5)](_0x384946[_0x10b705(0x182)],_0x6d0427,_0x61e20b);return _0x160ef4[_0x10b705(0x1c0)](),this['_entities'][_0x10b705(0x1d3)](_0x6d0427,_0x160ef4),_0x160ef4;}},_0x384946[_0x1cf38d(0x122)]=_0x3c4ec0([_0x29d401(0x0,_0x8a81f[_0x1cf38d(0x176)]),_0x29d401(0x1,_0x8a81f['Inject'](_0x8a81f['Injector'])),_0x29d401(0x2,_0x8a81f[_0x1cf38d(0x189)](_0x5e6e61[_0x1cf38d(0x1b8)]))],_0x384946[_0x1cf38d(0x122)]);var _0x4668d5=(_0x174759=>(_0x174759['OFFLINE']=_0x1cf38d(0x14a),_0x174759[_0x1cf38d(0x13f)]='idle',_0x174759['FOLLOWING']=_0x1cf38d(0x1c4),_0x174759['NOT_FOLLOWING']=_0x1cf38d(0x1a6),_0x174759[_0x1cf38d(0x19f)]=_0x1cf38d(0x146),_0x174759))(_0x4668d5||{});const _0x2393ce=_0x1cf38d(0x1ac),_0x1facf4=0xc8;_0x384946[_0x1cf38d(0x182)]=class extends _0x8a81f[_0x1cf38d(0x11a)]{constructor(_0x3b8a73,_0x152170,_0x1f5b65,_0x56e6c5,_0x327287){var _0x187d27=_0x1cf38d;super(),_0x2bcbb9(this,_0x187d27(0x16e),new _0x372c5e[(_0x187d27(0x14c))](_0x187d27(0x17e))),_0x2bcbb9(this,'status$',this[_0x187d27(0x16e)]['asObservable']()),_0x2bcbb9(this,_0x187d27(0x153),!0x1),_0x2bcbb9(this,_0x187d27(0x132),null),_0x2bcbb9(this,_0x187d27(0x1be),null),(this[_0x187d27(0x1d6)]=_0x3b8a73,this[_0x187d27(0xeb)]=_0x152170,this[_0x187d27(0x18f)]=_0x1f5b65,this[_0x187d27(0x17a)]=_0x56e6c5,this[_0x187d27(0x17c)]=_0x327287);}get[_0x1cf38d(0x198)](){var _0x5e60f9=_0x1cf38d;return this[_0x5e60f9(0x16e)][_0x5e60f9(0x1c6)]();}[_0x1cf38d(0x1c7)](){var _0x3b0d1d=_0x1cf38d,_0x513534;(_0x513534=this[_0x3b0d1d(0x132)])==null||_0x513534[_0x3b0d1d(0x1c7)](),this[_0x3b0d1d(0x16e)][_0x3b0d1d(0x170)](_0x3b0d1d(0x17e)),this['_status$']['complete']();}[_0x1cf38d(0x1c0)](){var _0x174906=_0x1cf38d;this[_0x174906(0x153)]||(this['_init']=!0x0,this[_0x174906(0xeb)][_0x174906(0xf5)][_0x174906(0xee)](_0x1f9610[_0x174906(0x193)](this[_0x174906(0x152)]))[_0x174906(0x157)](_0x374cfb=>{var _0x3b36b0=_0x174906;switch(_0x374cfb){case _0x5e6e61['SessionStatus'][_0x3b36b0(0x10e)]:this[_0x3b36b0(0xfa)]();break;case _0x5e6e61['SessionStatus'][_0x3b36b0(0x111)]:this['_handleOnline']();break;}}),this[_0x174906(0xeb)][_0x174906(0x12b)][_0x174906(0xee)](_0x1f9610['takeUntil'](this[_0x174906(0x152)]))[_0x174906(0x157)](_0x322c83=>{var _0x56b522=_0x174906;const {eventID:_0x6a804a}=_0x322c83;switch(_0x6a804a){case _0x4a4762[_0x56b522(0x1cc)][_0x56b522(0x117)]:this[_0x56b522(0x181)](_0x322c83);break;case _0x4a4762['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x322c83);break;case _0x4a4762[_0x56b522(0x1cc)][_0x56b522(0x19a)]:this[_0x56b522(0x120)]();break;case _0x4a4762['CollaborationEvent'][_0x56b522(0x105)]:this[_0x56b522(0x160)](_0x322c83);break;}}));}[_0x1cf38d(0x1c1)](){var _0x23e374=_0x1cf38d;this['_collabSession'][_0x23e374(0x1b5)]({'eventID':_0x4a4762[_0x23e374(0x1cc)][_0x23e374(0x1ca)],'data':{'unitID':this[_0x23e374(0x1d6)],'userID':this['_collabSession'][_0x23e374(0x16c)]()}},this[_0x23e374(0x1d6)]);}[_0x1cf38d(0x16f)](){var _0x1c6aa8=_0x1cf38d;this[_0x1c6aa8(0x198)]===_0x1c6aa8(0x146)&&(this[_0x1c6aa8(0x16e)][_0x1c6aa8(0x170)](_0x1c6aa8(0x17e)),this[_0x1c6aa8(0xeb)]['send']({'eventID':_0x4a4762['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1c6aa8(0x1d6)]}},this[_0x1c6aa8(0x1d6)]));}[_0x1cf38d(0x1da)](){var _0x44a683=_0x1cf38d;this[_0x44a683(0x198)]==='not-following'&&(this[_0x44a683(0x16e)]['next'](_0x44a683(0x1c4)),this[_0x44a683(0x141)]());}['stopFollowing'](){var _0x3a9f4b=_0x1cf38d;this[_0x3a9f4b(0x198)]===_0x3a9f4b(0x1c4)&&this[_0x3a9f4b(0x10d)]();}['_handleNewHost'](_0x39ced2){var _0x317e7f=_0x1cf38d;const {presenter:_0x43673c}=_0x39ced2[_0x317e7f(0xe9)],_0x1c2e56=this[_0x317e7f(0xeb)]['getMemberID']();this['_presenter']=_0x43673c,_0x43673c===_0x1c2e56?(this[_0x317e7f(0x10d)](),this['_startPresenting']()):this[_0x317e7f(0x198)]!==_0x317e7f(0x1a6)&&(this['_stopPresenting'](),this[_0x317e7f(0x141)]());}[_0x1cf38d(0x180)](){var _0x5e143c=_0x1cf38d;const _0x35d908={'eventID':_0x4a4762[_0x5e143c(0x1cc)][_0x5e143c(0x156)]};this['_collabSession'][_0x5e143c(0x1b5)](_0x35d908,this[_0x5e143c(0x1d6)]);}[_0x1cf38d(0x120)](){var _0x43a006=_0x1cf38d;this[_0x43a006(0x1be)]=null,this['_status']!==_0x43a006(0x146)&&this[_0x43a006(0xf1)]();}[_0x1cf38d(0x160)](_0x18c960){var _0x5aa3a7=_0x1cf38d;if(this[_0x5aa3a7(0x198)]==='following'&&this['_presenter']===_0x18c960['data']['memberID']){const _0x128fb3=_0x4a4762[_0x5aa3a7(0x113)](_0x18c960[_0x5aa3a7(0xe9)])[_0x5aa3a7(0x116)]['reverse']()[_0x5aa3a7(0x19b)](_0x3ccb40=>_0x3ccb40['id']===_0x156b92['InsertSheetMutation']['id']);if(_0x128fb3){const _0x40b5d0=_0x128fb3[_0x5aa3a7(0x1e0)][_0x5aa3a7(0x19d)],_0x5f572a=_0x128fb3[_0x5aa3a7(0x1e0)][_0x5aa3a7(0x17b)]['id'];setTimeout(()=>{var _0x1b67ab=_0x5aa3a7;this[_0x1b67ab(0x17c)][_0x1b67ab(0xff)](_0x156b92['SetWorksheetActiveOperation']['id'],{'unitId':_0x40b5d0,'subUnitId':_0x5f572a},{'fromCollab':!0x0});});}}}[_0x1cf38d(0x172)](){var _0x4778da=_0x1cf38d;this[_0x4778da(0x16e)][_0x4778da(0x170)](_0x4778da(0x146));const _0xa9c665=new Map(),_0x30b398=this['_commandDisposable']=new _0x8a81f[(_0x4778da(0x131))]();_0x30b398[_0x4778da(0xf8)](_0x8a81f[_0x4778da(0x171)](()=>{var _0x3fcf90=_0x4778da;_0xa9c665['forEach'](_0x55b3b4=>_0x55b3b4[_0x3fcf90(0x11c)]()),_0xa9c665['clear']();})),_0x30b398[_0x4778da(0xf8)](this[_0x4778da(0x17c)]['onCommandExecuted'](_0x48acf7=>{var _0x59d60c=_0x4778da,_0x3d2eac;if(_0x48acf7[_0x59d60c(0x164)]!==_0x8a81f[_0x59d60c(0xe4)][_0x59d60c(0x137)]||!this['_liveShareService']['shouldShareOperation'](_0x48acf7['id']))return;const {id:_0x1a0cb4}=_0x48acf7;let _0x13fe7d;_0xa9c665[_0x59d60c(0x12e)](_0x1a0cb4)?_0x13fe7d=_0xa9c665[_0x59d60c(0xef)](_0x1a0cb4):(_0x13fe7d=new _0x372c5e[(_0x59d60c(0x102))](),_0xa9c665[_0x59d60c(0x1d3)](_0x1a0cb4,_0x13fe7d),_0x13fe7d[_0x59d60c(0xee)](_0x1f9610[_0x59d60c(0x10a)]((_0x3d2eac=this[_0x59d60c(0x18f)][_0x59d60c(0x1a3)](_0x2393ce))!=null?_0x3d2eac:_0x1facf4,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59d60c(0x157)](_0x594818=>{var _0x2fa0c2=_0x59d60c;this[_0x2fa0c2(0xeb)][_0x2fa0c2(0x1b5)]({'eventID':_0x4a4762[_0x2fa0c2(0x1cc)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fa0c2(0x1d6)],'operations':{[_0x594818['id']]:{'id':_0x594818['id'],'params':JSON[_0x2fa0c2(0x13d)](_0x594818[_0x2fa0c2(0x1e0)])}}}},this[_0x2fa0c2(0x1d6)]);})),_0x13fe7d['next'](_0x48acf7);})),this[_0x4778da(0x17a)][_0x4778da(0xf9)](this[_0x4778da(0x1d6)])[_0x4778da(0xea)](_0x2344c8=>this[_0x4778da(0xeb)][_0x4778da(0x1b5)]({'eventID':_0x4a4762[_0x4778da(0x1cc)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4778da(0x1d6)],'operations':{[_0x2344c8['id']]:{'id':_0x2344c8['id'],'params':JSON[_0x4778da(0x13d)](_0x2344c8['params'])}}}},this[_0x4778da(0x1d6)]));}[_0x1cf38d(0x11f)](){var _0x1e3678=_0x1cf38d,_0x5c1dd3;this[_0x1e3678(0x16e)][_0x1e3678(0x170)](_0x1e3678(0x17e)),(_0x5c1dd3=this['_commandDisposable'])==null||_0x5c1dd3[_0x1e3678(0x1c7)](),this[_0x1e3678(0x132)]=null;}['_startFollowing'](){var _0x20f72b=_0x1cf38d,_0x332ac7;(_0x332ac7=this[_0x20f72b(0x132)])==null||_0x332ac7[_0x20f72b(0x1c7)](),this[_0x20f72b(0x16e)][_0x20f72b(0x170)](_0x20f72b(0x1c4));}[_0x1cf38d(0xf1)](){var _0x3bb8c2=_0x1cf38d,_0x4c303f;this[_0x3bb8c2(0x16e)][_0x3bb8c2(0x170)](_0x3bb8c2(0x17e)),(_0x4c303f=this[_0x3bb8c2(0x132)])==null||_0x4c303f['dispose'](),this[_0x3bb8c2(0x132)]=null;}[_0x1cf38d(0x10d)](){var _0x536f11=_0x1cf38d,_0x4f10f3;this[_0x536f11(0x16e)][_0x536f11(0x170)](_0x536f11(0x1a6)),(_0x4f10f3=this[_0x536f11(0x132)])==null||_0x4f10f3[_0x536f11(0x1c7)]();}[_0x1cf38d(0x192)](_0x4839b0){var _0x1d6245=_0x1cf38d;if([_0x1d6245(0x146),_0x1d6245(0x1a6),'offline'][_0x1d6245(0x1d7)](this[_0x1d6245(0x198)])||!_0x4839b0[_0x1d6245(0xe9)][_0x1d6245(0x18a)]||_0x4839b0[_0x1d6245(0xe9)][_0x1d6245(0x18a)]===this[_0x1d6245(0xeb)][_0x1d6245(0x16c)]())return;this[_0x1d6245(0x198)]===_0x1d6245(0x17e)&&this[_0x1d6245(0x141)]();const _0x962aa1=_0x4839b0[_0x1d6245(0xe9)][_0x1d6245(0x1de)];Object[_0x1d6245(0x1c9)](_0x962aa1)[_0x1d6245(0xea)](_0x1712b0=>{var _0x1e7339=_0x1d6245;this[_0x1e7339(0x17c)][_0x1e7339(0xff)](_0x1712b0['id'],_0x1712b0[_0x1e7339(0x1e0)]?JSON[_0x1e7339(0x130)](_0x1712b0['params']):null,{'fromCollab':!0x0});});}[_0x1cf38d(0xfa)](){var _0x46fbb2=_0x1cf38d,_0x5c9b73;this['_status$'][_0x46fbb2(0x170)]('offline'),(_0x5c9b73=this['_commandDisposable'])==null||_0x5c9b73[_0x46fbb2(0x1c7)]();}[_0x1cf38d(0x10b)](){var _0x25eb74=_0x1cf38d;this[_0x25eb74(0x16e)][_0x25eb74(0x170)]('idle'),this[_0x25eb74(0x180)]();}},_0x384946['LiveShareCoordinator']=_0x3c4ec0([_0x29d401(0x2,_0x8a81f[_0x1cf38d(0x12f)]),_0x29d401(0x3,_0x8a81f[_0x1cf38d(0x189)](_0x3e0149)),_0x29d401(0x4,_0x8a81f[_0x1cf38d(0x106)])],_0x384946[_0x1cf38d(0x182)]);function _0x6d5ac2(){var _0x24a770=_0x1cf38d;const _0x4199fc=_0x146422['useDependency'](_0x384946['LiveShareController']),_0x5c26d5=_0x146422[_0x24a770(0x1ba)](_0x8a81f[_0x24a770(0x176)]),_0x16678d=_0x146422[_0x24a770(0x1db)](()=>_0x5c26d5[_0x24a770(0x1a7)](_0x8a81f[_0x24a770(0xfe)][_0x24a770(0x112)]),void 0x0,!0x1,[]),[_0x5193b4,_0x1916f1]=_0x10f328[_0x24a770(0x140)](null),[_0x2d3bc1,_0x431bfe]=_0x10f328['useState'](_0x4668d5[_0x24a770(0x13f)]),_0xecbfcd=_0x10f328[_0x24a770(0x177)](null);return _0x10f328[_0x24a770(0x188)](()=>(_0x16678d&&_0x4199fc[_0x24a770(0x1b0)](_0x16678d['getUnitId']())[_0x24a770(0x1a9)](_0x505fa6=>{var _0x104c6b=_0x24a770;_0x1916f1(_0x505fa6),_0xecbfcd[_0x104c6b(0x121)]=_0x505fa6['status$'][_0x104c6b(0x157)](_0x5921f6=>{_0x431bfe(_0x5921f6);});}),()=>{var _0x498c69=_0x24a770,_0x256d44;(_0x256d44=_0xecbfcd[_0x498c69(0x121)])==null||_0x256d44['unsubscribe'](),_0xecbfcd[_0x498c69(0x121)]=null;}),[_0x16678d,_0x4199fc]),_0x5193b4?_0x473f32[_0x24a770(0x1ad)](_0x4036a0[_0x24a770(0x11b)],{'align':_0x24a770(0x135),'disabled':_0x2d3bc1===_0x4668d5[_0x24a770(0x10e)],'className':_0x24a770(0xe7),'overlay':_0x473f32[_0x24a770(0x1ad)](_0x570747,{'status':_0x2d3bc1,'coordinator':_0x5193b4}),'children':_0x473f32[_0x24a770(0x1ad)](_0x24a770(0x119),{'className':_0x4036a0[_0x24a770(0x14f)](_0x24a770(0x1a2),{'univer-cursor-not-allowed':_0x2d3bc1===_0x4668d5[_0x24a770(0x10e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2d3bc1!==_0x4668d5['OFFLINE']}),'type':_0x24a770(0x119),'children':_0x473f32[_0x24a770(0x1ad)](_0x51a76a,{'className':_0x24a770(0x173)})})}):null;}function _0x570747(_0x3dde9f){var _0x3bd16c=_0x1cf38d;const {status:_0x1f6e1f,coordinator:_0xf21264}=_0x3dde9f;switch(_0x1f6e1f){case _0x4668d5[_0x3bd16c(0x13f)]:return _0x473f32['jsx'](_0x34ab9b,{'coordinator':_0xf21264});case _0x4668d5[_0x3bd16c(0x10c)]:return _0x473f32[_0x3bd16c(0x1ad)](_0x362211,{'coordinator':_0xf21264});case _0x4668d5[_0x3bd16c(0xf6)]:return _0x473f32[_0x3bd16c(0x1ad)](_0x3b399d,{'coordinator':_0xf21264});case _0x4668d5[_0x3bd16c(0x10e)]:return _0x473f32['jsx'](_0x4059f9,{});case _0x4668d5[_0x3bd16c(0x19f)]:return _0x473f32[_0x3bd16c(0x1ad)](_0x1a8d0c,{'coordinator':_0xf21264});default:return null;}}function _0x34ab9b(_0x18d000){var _0x65add=_0x1cf38d;const {coordinator:_0x19fb9c}=_0x18d000;return _0x473f32[_0x65add(0x1b9)](_0x473f32[_0x65add(0x167)],{'children':[_0x473f32['jsx'](_0x65add(0x134),{'className':_0x65add(0x138),'children':_0x65add(0x1b2)}),_0x473f32['jsx'](_0x4036a0[_0x65add(0x1b7)],{'size':_0x65add(0x13b),'type':'default','onClick':()=>_0x19fb9c[_0x65add(0x1c1)](),'children':_0x65add(0x127)})]});}function _0x362211(_0x214042){var _0x2c43f8=_0x1cf38d;const {coordinator:_0x21301f}=_0x214042;return _0x473f32['jsxs'](_0x473f32[_0x2c43f8(0x167)],{'children':[_0x473f32['jsx'](_0x2c43f8(0x134),{'className':_0x2c43f8(0x138),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x473f32[_0x2c43f8(0x1ad)](_0x4036a0[_0x2c43f8(0x1b7)],{'size':_0x2c43f8(0x13b),'type':_0x2c43f8(0x142),'onClick':()=>_0x21301f[_0x2c43f8(0x1d8)](),'children':_0x2c43f8(0x17f)})]});}function _0x3b399d(_0x40e14e){var _0x37ae30=_0x1cf38d;const {coordinator:_0x50fd28}=_0x40e14e;return _0x473f32[_0x37ae30(0x1b9)](_0x473f32[_0x37ae30(0x167)],{'children':[_0x473f32[_0x37ae30(0x1ad)](_0x37ae30(0x134),{'className':_0x37ae30(0x138),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x473f32[_0x37ae30(0x1ad)](_0x4036a0['Button'],{'size':_0x37ae30(0x13b),'type':_0x37ae30(0x1d4),'onClick':()=>_0x50fd28[_0x37ae30(0x1da)](),'children':_0x37ae30(0x104)})]});}function _0x1a8d0c(_0x1b3064){var _0x119de6=_0x1cf38d;const {coordinator:_0x3ee3a4}=_0x1b3064;return _0x473f32[_0x119de6(0x1b9)](_0x473f32[_0x119de6(0x167)],{'children':[_0x473f32[_0x119de6(0x1ad)]('div',{'className':_0x119de6(0x138),'children':_0x119de6(0x175)}),_0x473f32[_0x119de6(0x1ad)](_0x4036a0[_0x119de6(0x1b7)],{'size':_0x119de6(0x13b),'type':'default','onClick':()=>_0x3ee3a4[_0x119de6(0x16f)](),'children':_0x119de6(0x16a)})]});}function _0x4059f9(){var _0x4c5be6=_0x1cf38d;return _0x473f32[_0x4c5be6(0x1ad)](_0x473f32[_0x4c5be6(0x167)],{'children':_0x4c5be6(0x18c)});}var _0x405de0=Object['getOwnPropertyDescriptor'],_0x43522d=(_0x3964db,_0x4c2c4e,_0x133a6b,_0x347698)=>{var _0x1e0ec=_0x1cf38d;for(var _0x396817=_0x347698>0x1?void 0x0:_0x347698?_0x405de0(_0x4c2c4e,_0x133a6b):_0x4c2c4e,_0x101b31=_0x3964db[_0x1e0ec(0x15d)]-0x1,_0x287ac0;_0x101b31>=0x0;_0x101b31--)(_0x287ac0=_0x3964db[_0x101b31])&&(_0x396817=_0x287ac0(_0x396817)||_0x396817);return _0x396817;},_0x50c2cb=(_0x32f245,_0x24b077)=>(_0x5dd350,_0x4f4b78)=>_0x24b077(_0x5dd350,_0x4f4b78,_0x32f245);_0x384946[_0x1cf38d(0x184)]=class extends _0x8a81f[_0x1cf38d(0x162)]{constructor(_0x1f5797,_0x163d85){var _0x1e0c4c=_0x1cf38d;super(),this[_0x1e0c4c(0x129)]=_0x1f5797,this[_0x1e0c4c(0x1bd)]=_0x163d85,this[_0x1e0c4c(0x1dd)]();}['_mountLiveShare'](){var _0x27874b=_0x1cf38d;this[_0x27874b(0x1df)](this['_uiPartsService'][_0x27874b(0x1b1)](_0x146422['BuiltInUIPart'][_0x27874b(0x1a5)],()=>_0x146422[_0x27874b(0x150)](_0x6d5ac2,this[_0x27874b(0x129)])));}},_0x384946[_0x1cf38d(0x184)]=_0x43522d([_0x50c2cb(0x0,_0x8a81f[_0x1cf38d(0x189)](_0x8a81f[_0x1cf38d(0x13e)])),_0x50c2cb(0x1,_0x146422[_0x1cf38d(0x107)])],_0x384946[_0x1cf38d(0x184)]);var _0x576f02=Object[_0x1cf38d(0x15f)],_0x4811df=Object[_0x1cf38d(0x1b6)],_0x53d5d0=(_0x4271ca,_0x2d475a,_0x59e830)=>_0x2d475a in _0x4271ca?_0x576f02(_0x4271ca,_0x2d475a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59e830}):_0x4271ca[_0x2d475a]=_0x59e830,_0x54ea1e=(_0xfb0aad,_0x43af01,_0x4365e6,_0x165d2b)=>{var _0x3a7311=_0x1cf38d;for(var _0x2255e8=_0x165d2b>0x1?void 0x0:_0x165d2b?_0x4811df(_0x43af01,_0x4365e6):_0x43af01,_0x3ab0e5=_0xfb0aad[_0x3a7311(0x15d)]-0x1,_0x389440;_0x3ab0e5>=0x0;_0x3ab0e5--)(_0x389440=_0xfb0aad[_0x3ab0e5])&&(_0x2255e8=_0x389440(_0x2255e8)||_0x2255e8);return _0x2255e8;},_0x4175bf=(_0x10f993,_0x51db82)=>(_0x3b808c,_0x583e2a)=>_0x51db82(_0x3b808c,_0x583e2a,_0x10f993),_0x382d96=(_0x5bd3ba,_0x5bfc53,_0xdd58)=>_0x53d5d0(_0x5bd3ba,typeof _0x5bfc53!=_0x1cf38d(0x13a)?_0x5bfc53+'':_0x5bfc53,_0xdd58);const _0x252b77=_0x1cf38d(0x13c);_0x384946[_0x1cf38d(0xed)]=class extends _0x8a81f[_0x1cf38d(0x186)]{constructor(_0x3501f2=_0x1d9461,_0xba9d18,_0x30c7d3){var _0x16fd78=_0x1cf38d;super(),this[_0x16fd78(0x139)]=_0x3501f2,this['_injector']=_0xba9d18,this[_0x16fd78(0x18f)]=_0x30c7d3;const {..._0x36656f}=_0x8a81f[_0x16fd78(0x1d0)]({},_0x1d9461,this[_0x16fd78(0x139)]);this['_configService'][_0x16fd78(0x144)](_0x2daf21,_0x36656f);}[_0x1cf38d(0x148)](){var _0x12374a=_0x1cf38d;_0x8a81f['registerDependencies'](this[_0x12374a(0x129)],_0x8a81f[_0x12374a(0x12c)]([[_0x3e0149],[_0x384946[_0x12374a(0x122)]],[_0x1de6a8],[_0x384946[_0x12374a(0x184)]]],this[_0x12374a(0x139)][_0x12374a(0x1bc)])),_0x8a81f[_0x12374a(0x15c)](this[_0x12374a(0x129)],[[_0x1de6a8]]);}['onRendered'](){var _0x32047c=_0x1cf38d;_0x8a81f[_0x32047c(0x15c)](this[_0x32047c(0x129)],[[_0x384946[_0x32047c(0x184)]]]);}},_0x382d96(_0x384946['UniverLiveSharePlugin'],_0x1cf38d(0x164),_0x8a81f[_0x1cf38d(0xfe)]['UNIVER_UNKNOWN']),_0x382d96(_0x384946[_0x1cf38d(0xed)],_0x1cf38d(0x1b3),_0x252b77),_0x384946[_0x1cf38d(0xed)]=_0x54ea1e([_0x8a81f[_0x1cf38d(0x1a0)](_0x5e6e61[_0x1cf38d(0x190)]),_0x4175bf(0x1,_0x8a81f[_0x1cf38d(0x189)](_0x8a81f[_0x1cf38d(0x13e)])),_0x4175bf(0x2,_0x8a81f['IConfigService'])],_0x384946[_0x1cf38d(0xed)]),_0x384946[_0x1cf38d(0x1a1)]=_0x6d5ac2,_0x384946[_0x1cf38d(0x165)]=_0x3e0149,_0x384946[_0x1cf38d(0x168)]=_0x4668d5,Object[_0x1cf38d(0x15f)](_0x384946,Symbol[_0x1cf38d(0x196)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -42,18 +42,18 @@
42
42
  "lib"
43
43
  ],
44
44
  "peerDependencies": {
45
- "react": ">=16.9.0",
45
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
46
46
  "rxjs": ">=7.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@univerjs/icons": "^0.2.28",
50
- "@univerjs-pro/collaboration": "0.6.7",
51
- "@univerjs-pro/collaboration-client": "0.6.7",
52
- "@univerjs/core": "0.6.7",
53
- "@univerjs/sheets": "0.6.7",
54
- "@univerjs/design": "0.6.7",
55
- "@univerjs/sheets-ui": "0.6.7",
56
- "@univerjs/ui": "0.6.7"
49
+ "@univerjs/icons": "^0.2.31",
50
+ "@univerjs-pro/collaboration": "0.6.8",
51
+ "@univerjs-pro/collaboration-client": "0.6.8",
52
+ "@univerjs/core": "0.6.8",
53
+ "@univerjs/design": "0.6.8",
54
+ "@univerjs/sheets-ui": "0.6.8",
55
+ "@univerjs/sheets": "0.6.8",
56
+ "@univerjs/ui": "0.6.8"
57
57
  },
58
58
  "devDependencies": {
59
59
  "react": "18.3.1",
@@ -62,7 +62,7 @@
62
62
  "typescript": "^5.8.2",
63
63
  "vite": "^6.2.2",
64
64
  "vitest": "^3.0.9",
65
- "@univerjs-infra/shared": "0.6.7",
65
+ "@univerjs-infra/shared": "0.6.8",
66
66
  "@univerjs/protocol": "0.1.45"
67
67
  },
68
68
  "scripts": {