@univerjs-pro/live-share 0.8.3-nightly.202507031607 → 0.8.3

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 _0x38e2ae=_0x48f8;(function(_0x3bbf6e,_0x4301f8){var _0x1b7cf7=_0x48f8,_0x18bbfb=_0x3bbf6e();while(!![]){try{var _0x1149be=-parseInt(_0x1b7cf7(0x253))/0x1*(parseInt(_0x1b7cf7(0x1e9))/0x2)+parseInt(_0x1b7cf7(0x200))/0x3+-parseInt(_0x1b7cf7(0x27c))/0x4+-parseInt(_0x1b7cf7(0x265))/0x5*(-parseInt(_0x1b7cf7(0x23b))/0x6)+-parseInt(_0x1b7cf7(0x1e4))/0x7*(parseInt(_0x1b7cf7(0x2b5))/0x8)+parseInt(_0x1b7cf7(0x2a6))/0x9+parseInt(_0x1b7cf7(0x28c))/0xa;if(_0x1149be===_0x4301f8)break;else _0x18bbfb['push'](_0x18bbfb['shift']());}catch(_0xc42097){_0x18bbfb['push'](_0x18bbfb['shift']());}}}(_0x541f,0x27b9b));var U=Object[_0x38e2ae(0x1e0)],F=(_0x21955b,_0x64e65c,_0x2f8deb)=>_0x64e65c in _0x21955b?U(_0x21955b,_0x64e65c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f8deb}):_0x21955b[_0x64e65c]=_0x2f8deb,v=(_0x2ed5a2,_0x517e8a,_0x59e626)=>F(_0x2ed5a2,typeof _0x517e8a!=_0x38e2ae(0x1ee)?_0x517e8a+'':_0x517e8a,_0x59e626);Object['defineProperty'](exports,Symbol[_0x38e2ae(0x27e)],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x38e2ae(0x284),x={};class O extends o['Disposable']{constructor(){var _0x41b57e=_0x38e2ae;super(...arguments),v(this,_0x41b57e(0x1ef),new Set()),v(this,_0x41b57e(0x244),new Set());}['registerSharedOperation'](_0x212ea6){var _0x8fb369=_0x38e2ae;return this[_0x8fb369(0x1ef)][_0x8fb369(0x23a)](_0x212ea6),o['toDisposable'](()=>this['_sharedOperations'][_0x8fb369(0x1f5)](_0x212ea6));}[_0x38e2ae(0x2b8)](_0x53b651){var _0x585148=_0x38e2ae;return this[_0x585148(0x244)]['add'](_0x53b651),o[_0x585148(0x1ed)](()=>this['_reporters'][_0x585148(0x1f5)](_0x53b651));}[_0x38e2ae(0x26e)](_0x2a7cdd){var _0x4ec0f0=_0x38e2ae;return this[_0x4ec0f0(0x1ef)][_0x4ec0f0(0x25d)](_0x2a7cdd);}[_0x38e2ae(0x2c0)](_0xfa32b7){var _0x53bb49=_0x38e2ae;return Array[_0x53bb49(0x1e1)](this['_reporters'])[_0x53bb49(0x214)](_0xed69f4=>_0xed69f4(_0xfa32b7));}}var H=Object[_0x38e2ae(0x247)],V=(_0xd0a0c0,_0x6db480,_0x5ef7d4,_0x2bbffe)=>{var _0xabc256=_0x38e2ae;for(var _0x455dd8=_0x2bbffe>0x1?void 0x0:_0x2bbffe?H(_0x6db480,_0x5ef7d4):_0x6db480,_0x3ad988=_0xd0a0c0[_0xabc256(0x21e)]-0x1,_0xbd0e0e;_0x3ad988>=0x0;_0x3ad988--)(_0xbd0e0e=_0xd0a0c0[_0x3ad988])&&(_0x455dd8=_0xbd0e0e(_0x455dd8)||_0x455dd8);return _0x455dd8;},k=(_0x64a189,_0x5e9f3d)=>(_0x150fc8,_0x3efd10)=>_0x5e9f3d(_0x150fc8,_0x3efd10,_0x64a189);let E=class extends o[_0x38e2ae(0x1eb)]{constructor(_0x3c608c){var _0x96c136=_0x38e2ae;super(),this[_0x96c136(0x263)]=_0x3c608c,this[_0x96c136(0x2b3)]();}['_init'](){var _0x3c5ac6=_0x38e2ae;[w[_0x3c5ac6(0x219)]['id'],w[_0x3c5ac6(0x20f)]['id'],C[_0x3c5ac6(0x29e)]['id']][_0x3c5ac6(0x2a0)](_0xbe8735=>{var _0x2429ce=_0x3c5ac6;this[_0x2429ce(0x215)](this['_liveShareService'][_0x2429ce(0x1f4)](_0xbe8735));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x295a57=_0x38e2ae;return u=Object[_0x295a57(0x29c)]||function(_0x3d83a8){var _0x18306c=_0x295a57;for(var _0x62522,_0x5748c3=0x1,_0x39951a=arguments[_0x18306c(0x21e)];_0x5748c3<_0x39951a;_0x5748c3++){_0x62522=arguments[_0x5748c3];for(var _0x354362 in _0x62522)Object[_0x18306c(0x202)][_0x18306c(0x298)][_0x18306c(0x280)](_0x62522,_0x354362)&&(_0x3d83a8[_0x354362]=_0x62522[_0x354362]);}return _0x3d83a8;},u[_0x295a57(0x2a3)](this,arguments);},M=function(_0x4314d0,_0x50d146){var _0x837eb8=_0x38e2ae,_0x26faad={};for(var _0x1d7a71 in _0x4314d0)Object[_0x837eb8(0x202)][_0x837eb8(0x298)]['call'](_0x4314d0,_0x1d7a71)&&_0x50d146['indexOf'](_0x1d7a71)<0x0&&(_0x26faad[_0x1d7a71]=_0x4314d0[_0x1d7a71]);if(_0x4314d0!=null&&typeof Object[_0x837eb8(0x230)]==_0x837eb8(0x283)){for(var _0x3b0b07=0x0,_0x1d7a71=Object[_0x837eb8(0x230)](_0x4314d0);_0x3b0b07<_0x1d7a71[_0x837eb8(0x21e)];_0x3b0b07++)_0x50d146[_0x837eb8(0x255)](_0x1d7a71[_0x3b0b07])<0x0&&Object['prototype'][_0x837eb8(0x23f)][_0x837eb8(0x280)](_0x4314d0,_0x1d7a71[_0x3b0b07])&&(_0x26faad[_0x1d7a71[_0x3b0b07]]=_0x4314d0[_0x1d7a71[_0x3b0b07]]);}return _0x26faad;},j=f[_0x38e2ae(0x235)](function(_0x3dcd79,_0x4e73de){var _0xbccfec=_0x38e2ae,_0x27e056=_0x3dcd79['icon'],_0x5eed1e=_0x3dcd79['id'],_0x5864c3=_0x3dcd79[_0xbccfec(0x2ba)],_0x21792a=_0x3dcd79['extend'],_0xa9f0ca=M(_0x3dcd79,['icon','id','className',_0xbccfec(0x26b)]),_0x5f4394=_0xbccfec(0x295)[_0xbccfec(0x260)](_0x5eed1e,'\x20')[_0xbccfec(0x260)](_0x5864c3||'')[_0xbccfec(0x276)](),_0x91a117=f[_0xbccfec(0x27f)]('_'['concat'](G()));return y(_0x27e056,''['concat'](_0x5eed1e),{'defIds':_0x27e056[_0xbccfec(0x28a)],'idSuffix':_0x91a117[_0xbccfec(0x259)]},u({'ref':_0x4e73de,'className':_0x5f4394},_0xa9f0ca),_0x21792a);});function y(_0x53dbb4,_0x5a856c,_0x19b4fb,_0x3c2e90,_0x3d16f3){var _0x7de0b3=_0x38e2ae;return f[_0x7de0b3(0x229)](_0x53dbb4[_0x7de0b3(0x23d)],u(u({'key':_0x5a856c},q(_0x53dbb4,_0x19b4fb,_0x3d16f3)),_0x3c2e90),(W(_0x53dbb4,_0x19b4fb)[_0x7de0b3(0x218)]||[])[_0x7de0b3(0x214)](function(_0x5c83b3,_0x4f31f3){var _0xbe45f6=_0x7de0b3;return y(_0x5c83b3,''['concat'](_0x5a856c,'-')['concat'](_0x53dbb4[_0xbe45f6(0x23d)],'-')['concat'](_0x4f31f3),_0x19b4fb,void 0x0,_0x3d16f3);}));}function q(_0x1551af,_0x42506f,_0x193fee){var _0x1f2ee1=_0x38e2ae,_0x4265a2=u({},_0x1551af[_0x1f2ee1(0x1ea)]);_0x193fee!=null&&_0x193fee[_0x1f2ee1(0x24c)]&&_0x4265a2[_0x1f2ee1(0x1ec)]===_0x1f2ee1(0x24c)&&(_0x4265a2['fill']=_0x193fee['colorChannel1']),_0x1551af['tag']===_0x1f2ee1(0x26c)&&_0x4265a2['id']&&(_0x4265a2['id']=_0x4265a2['id']+_0x42506f[_0x1f2ee1(0x1f9)]),Object[_0x1f2ee1(0x275)](_0x4265a2)[_0x1f2ee1(0x2a0)](function(_0x274953){var _0x114ffc=_0x1f2ee1,_0x24af19=_0x274953[0x0],_0x577882=_0x274953[0x1];_0x24af19==='mask'&&typeof _0x577882==_0x114ffc(0x1f2)&&(_0x4265a2[_0x24af19]=_0x577882[_0x114ffc(0x22c)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x42506f[_0x114ffc(0x1f9)],')')));});var _0x59be45=_0x42506f[_0x1f2ee1(0x28a)];return!_0x59be45||_0x59be45[_0x1f2ee1(0x21e)]===0x0||(_0x1551af[_0x1f2ee1(0x23d)]===_0x1f2ee1(0x20b)&&_0x4265a2[_0x1f2ee1(0x2c2)]&&(_0x4265a2['xlink:href']=_0x4265a2[_0x1f2ee1(0x2c2)]+_0x42506f[_0x1f2ee1(0x1f9)]),Object[_0x1f2ee1(0x275)](_0x4265a2)['forEach'](function(_0x14554b){var _0x3cf784=_0x1f2ee1,_0x29e84b=_0x14554b[0x0],_0x1cd9cc=_0x14554b[0x1];typeof _0x1cd9cc=='string'&&(_0x4265a2[_0x29e84b]=_0x1cd9cc[_0x3cf784(0x22c)](/url\(#(.*)\)/,'url(#$1'[_0x3cf784(0x260)](_0x42506f['idSuffix'],')')));})),_0x4265a2;}function W(_0x55acb2,_0x4d30fc){var _0x2fd551=_0x38e2ae,_0x223ef1,_0x41d020=_0x4d30fc[_0x2fd551(0x28a)];return!_0x41d020||_0x41d020[_0x2fd551(0x21e)]===0x0?_0x55acb2:_0x55acb2[_0x2fd551(0x23d)]===_0x2fd551(0x29a)&&(!((_0x223ef1=_0x55acb2[_0x2fd551(0x218)])===null||_0x223ef1===void 0x0)&&_0x223ef1['length'])?u(u({},_0x55acb2),{'children':_0x55acb2['children'][_0x2fd551(0x214)](function(_0x4add29){var _0x310705=_0x2fd551;return typeof _0x4add29[_0x310705(0x1ea)]['id']==_0x310705(0x1f2)&&_0x41d020&&_0x41d020[_0x310705(0x231)](_0x4add29[_0x310705(0x1ea)]['id'])?u(u({},_0x4add29),{'attrs':u(u({},_0x4add29[_0x310705(0x1ea)]),{'id':_0x4add29[_0x310705(0x1ea)]['id']+_0x4d30fc[_0x310705(0x1f9)]})}):_0x4add29;})}):_0x55acb2;}function G(){var _0x5c0afd=_0x38e2ae;return Math[_0x5c0afd(0x21a)]()[_0x5c0afd(0x278)](0x24)['substring'](0x2,0x8);}j['displayName']=_0x38e2ae(0x264);var B={'tag':_0x38e2ae(0x2ab),'attrs':{'xmlns':_0x38e2ae(0x257),'fill':_0x38e2ae(0x28d),'viewBox':_0x38e2ae(0x22a),'width':'1em','height':'1em'},'children':[{'tag':_0x38e2ae(0x2ad),'attrs':{'fill':'currentColor','d':_0x38e2ae(0x20e)}},{'tag':'path','attrs':{'fill':_0x38e2ae(0x2bf),'d':_0x38e2ae(0x216),'fillRule':_0x38e2ae(0x25c),'clipRule':_0x38e2ae(0x25c)}}]},P=f[_0x38e2ae(0x235)](function(_0x291403,_0x261fcb){var _0x59c1c1=_0x38e2ae;return f['createElement'](j,Object[_0x59c1c1(0x29c)]({},_0x291403,{'id':'live-share-icon','ref':_0x261fcb,'icon':B}));});function _0x541f(){var _0x45eddd=['includes','subscribe','onCommandExecuted','univer-size-4','forwardRef','stringify','end','not-following','LiveShare','add','4344pkpJyJ','tryStartPresenting','tag','HEADER_MENU','propertyIsEnumerable','_beIdle','_univerInstanceService','Injector','_stopFollowing','_reporters','getValue','_fetchOperations','getOwnPropertyDescriptor','complete','_handleNewChangeSets','send','Dropdown','colorChannel1','_handleTerminate','get','IUIPartsService','SAME_OPERATION_SHARE_INTERVAL','touchDependencies','_startPresenting','241951doiksp','Present\x20this\x20document','indexOf','getConfig','http://www.w3.org/2000/svg','getLiveShareCoordinator','current','throttleTime','UniverInstanceType','evenodd','has','ONLINE','Start','concat','unitId','override','_liveShareService','UniverIcon','2140ROogDu','IDLE','ICommandService','dispose','parseProtocolChangeset','Button','extend','mask','IUniverInstanceService','shouldShareOperation','stopFollowing','_entities','startFollowing','useEffect','UNIVER_LIVE_SHARE_PLUGIN','div','entries','trim','pipe','toString','data','Fragment','SessionStatus','1196228IInmue','DesktopLiveShareController','toStringTag','useRef','call','You\x27re\x20not\x20following\x20the\x20presenter','connectInjector','function','live-share.config','LiveShareStatus','_mountLiveShare','_startLiveShareCoordinator','asObservable','following','defIds','_collabSession','1753270rEYlUi','none','useState','FOLLOWING','LiveShareController','CommandType','UniverLiveSharePlugin','_commandService','executeCommand','univerjs-icon\x20univerjs-icon-','OPERATION','offline','hasOwnProperty','NOT_FOLLOWING','defs','text','assign','registerDependencies','SetWorksheetActiveOperation','_injector','forEach','InsertSheetMutation','getTypeOfUnitAdded$','apply','OFFLINE','You\x27are\x20offline.','2432286ZczxHG','mutations','takeUntil','_presenter','memberID','svg','type','path','mergeOverrideWithDependencies','useObservable','PRESENTING','LiveShareIcon','createInstance','_init','parse','1248BBKjOa','_handleOnline','LiveShareCoordinator','registerInitialStateReporter','UNIVER_SHEET','className','jsxs','set','_startFollowing','getUnitId','currentColor','getInitialStates','NEW_CHANGESETS','xlink:href','displayName','Stop\x20presenting','UniverCollaborationClientPlugin','setConfig','requireSession','presenting','defineProperty','from','CollaborationEvent','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','10311ACUhTZ','merge','clsx','_status$','LIVESHARE_OPERATION','2TMUkJy','attrs','Disposable','fill','toDisposable','symbol','_sharedOperations','onStarting','next','string','params','registerSharedOperation','delete','_collabSessionService','_uiPartsService','sessionStatus$','idSuffix','find','LIVESHARE_REQUEST_HOST','getMemberID','registerComponent','stopPresenting','default','534174PiaUva','idle','prototype','_handleOffline','LIVESHARE_TERMINATE','_unitID','DisposableCollection','button','_commandDisposable','Inject','_configService','use','_handleNewHost','_handleOperation','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','SetScrollOperation','reverse','LiveShareService','getCurrentTypeOfUnit$','univer-mb-3\x20univer-w-full\x20univer-text-sm','map','disposeWithMe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','pluginName','children','SetZoomRatioOperation','random','dispose$','IConfigService','status$','length','unsubscribe','DependentOn','useDependency','_status','UNIVER_UNKNOWN','BehaviorSubject','values','BuiltInUIPart','init','jsx','createElement','0\x200\x2017\x2017','sheet','replace','RxDisposable','Subject','presenter','getOwnPropertySymbols'];_0x541f=function(){return _0x45eddd;};return _0x541f();}P[_0x38e2ae(0x2c3)]=_0x38e2ae(0x2b1);var Y=Object[_0x38e2ae(0x247)],R=(_0x10a538,_0x359703,_0x44dfeb,_0x40a385)=>{var _0x2510c9=_0x38e2ae;for(var _0x1f2b68=_0x40a385>0x1?void 0x0:_0x40a385?Y(_0x359703,_0x44dfeb):_0x359703,_0x526b74=_0x10a538[_0x2510c9(0x21e)]-0x1,_0x4a4e05;_0x526b74>=0x0;_0x526b74--)(_0x4a4e05=_0x10a538[_0x526b74])&&(_0x1f2b68=_0x4a4e05(_0x1f2b68)||_0x1f2b68);return _0x1f2b68;},S=(_0x4b7523,_0x11e54c)=>(_0xd3f183,_0x2943f0)=>_0x11e54c(_0xd3f183,_0x2943f0,_0x4b7523);exports[_0x38e2ae(0x290)]=class extends o['RxDisposable']{constructor(_0x1b9b73,_0x338d9b,_0x552d11){var _0x20df48=_0x38e2ae;super(),v(this,_0x20df48(0x270),new Map()),(this[_0x20df48(0x241)]=_0x1b9b73,this['_injector']=_0x338d9b,this[_0x20df48(0x1f6)]=_0x552d11,this[_0x20df48(0x2b3)]());}async[_0x38e2ae(0x258)](_0x206daa){var _0x22377c=_0x38e2ae;return this[_0x22377c(0x270)]['has'](_0x206daa)||await this['_startLiveShareCoordinator'](_0x206daa),this[_0x22377c(0x270)][_0x22377c(0x24e)](_0x206daa);}[_0x38e2ae(0x2b3)](){var _0x5f3993=_0x38e2ae;this[_0x5f3993(0x241)][_0x5f3993(0x2a2)](o[_0x5f3993(0x25b)][_0x5f3993(0x2b9)])[_0x5f3993(0x277)](b[_0x5f3993(0x2a8)](this[_0x5f3993(0x21b)]))[_0x5f3993(0x232)](async _0x39b36e=>{var _0x1ffaeb=_0x5f3993;const _0x5052fa=_0x39b36e[_0x1ffaeb(0x2be)]();this[_0x1ffaeb(0x270)][_0x1ffaeb(0x25d)](_0x5052fa)||this[_0x1ffaeb(0x287)](_0x5052fa);}),this[_0x5f3993(0x241)]['getTypeOfUnitDisposed$'](o[_0x5f3993(0x25b)]['UNIVER_SHEET'])[_0x5f3993(0x277)](b[_0x5f3993(0x2a8)](this[_0x5f3993(0x21b)]))['subscribe'](_0x52ee83=>{var _0x14bb7f=_0x5f3993;const _0x5a496d=_0x52ee83[_0x14bb7f(0x2be)](),_0x2c7d79=this[_0x14bb7f(0x270)][_0x14bb7f(0x24e)](_0x5a496d);_0x2c7d79==null||_0x2c7d79[_0x14bb7f(0x268)]();});}async[_0x38e2ae(0x287)](_0x204969){var _0x1a48c2=_0x38e2ae;const _0x192f5a=await this[_0x1a48c2(0x1f6)][_0x1a48c2(0x1de)](_0x204969),_0x337438=this['_injector'][_0x1a48c2(0x2b2)](exports[_0x1a48c2(0x2b7)],_0x204969,_0x192f5a);return _0x337438[_0x1a48c2(0x227)](),this[_0x1a48c2(0x270)][_0x1a48c2(0x2bc)](_0x204969,_0x337438),_0x337438;}},exports['LiveShareController']=R([S(0x0,o[_0x38e2ae(0x26d)]),S(0x1,o[_0x38e2ae(0x209)](o[_0x38e2ae(0x242)])),S(0x2,o[_0x38e2ae(0x209)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0x47d173=>(_0x47d173[_0x38e2ae(0x2a4)]=_0x38e2ae(0x297),_0x47d173[_0x38e2ae(0x266)]=_0x38e2ae(0x201),_0x47d173[_0x38e2ae(0x28f)]=_0x38e2ae(0x289),_0x47d173[_0x38e2ae(0x299)]='not-following',_0x47d173[_0x38e2ae(0x2b0)]=_0x38e2ae(0x1df),_0x47d173))(h||{});const Z=_0x38e2ae(0x250),J=0xc8;exports[_0x38e2ae(0x2b7)]=class extends o[_0x38e2ae(0x22d)]{constructor(_0x21cab3,_0x39b269,_0x1969e5,_0x51cb0a,_0x5b0e82){var _0x3d4544=_0x38e2ae;super(),v(this,_0x3d4544(0x1e7),new D[(_0x3d4544(0x224))](_0x3d4544(0x201))),v(this,_0x3d4544(0x21d),this[_0x3d4544(0x1e7)][_0x3d4544(0x288)]()),v(this,_0x3d4544(0x2b3),!0x1),v(this,_0x3d4544(0x208),null),v(this,'_presenter',null),(this[_0x3d4544(0x205)]=_0x21cab3,this[_0x3d4544(0x28b)]=_0x39b269,this[_0x3d4544(0x20a)]=_0x1969e5,this[_0x3d4544(0x263)]=_0x51cb0a,this['_commandService']=_0x5b0e82);}get['_status'](){var _0x5ebaab=_0x38e2ae;return this[_0x5ebaab(0x1e7)][_0x5ebaab(0x245)]();}[_0x38e2ae(0x268)](){var _0x1f27d6=_0x38e2ae,_0x4d6b9b;(_0x4d6b9b=this[_0x1f27d6(0x208)])==null||_0x4d6b9b[_0x1f27d6(0x268)](),this[_0x1f27d6(0x1e7)][_0x1f27d6(0x1f1)](_0x1f27d6(0x201)),this[_0x1f27d6(0x1e7)][_0x1f27d6(0x248)]();}[_0x38e2ae(0x227)](){var _0x437df2=_0x38e2ae;this[_0x437df2(0x2b3)]||(this[_0x437df2(0x2b3)]=!0x0,this[_0x437df2(0x28b)][_0x437df2(0x1f8)][_0x437df2(0x277)](b[_0x437df2(0x2a8)](this['dispose$']))[_0x437df2(0x232)](_0x250726=>{var _0x4e7f2d=_0x437df2;switch(_0x250726){case m[_0x4e7f2d(0x27b)]['OFFLINE']:this[_0x4e7f2d(0x203)]();break;case m['SessionStatus'][_0x4e7f2d(0x25e)]:this[_0x4e7f2d(0x2b6)]();break;}}),this[_0x437df2(0x28b)]['event$']['pipe'](b[_0x437df2(0x2a8)](this[_0x437df2(0x21b)]))[_0x437df2(0x232)](_0x16967e=>{var _0x18c956=_0x437df2;const {eventID:_0x2f09d3}=_0x16967e;switch(_0x2f09d3){case _[_0x18c956(0x1e2)]['LIVESHARE_NEW_HOST']:this[_0x18c956(0x20c)](_0x16967e);break;case _[_0x18c956(0x1e2)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x16967e);break;case _['CollaborationEvent'][_0x18c956(0x204)]:this['_handleTerminate']();break;case _[_0x18c956(0x1e2)][_0x18c956(0x2c1)]:this[_0x18c956(0x249)](_0x16967e);break;}}));}[_0x38e2ae(0x23c)](){var _0x3e2147=_0x38e2ae;this[_0x3e2147(0x28b)][_0x3e2147(0x24a)]({'eventID':_[_0x3e2147(0x1e2)][_0x3e2147(0x1fb)],'data':{'unitID':this[_0x3e2147(0x205)],'userID':this[_0x3e2147(0x28b)][_0x3e2147(0x1fc)]()}},this['_unitID']);}[_0x38e2ae(0x1fe)](){var _0x557b2c=_0x38e2ae;this[_0x557b2c(0x222)]===_0x557b2c(0x1df)&&(this[_0x557b2c(0x1e7)][_0x557b2c(0x1f1)](_0x557b2c(0x201)),this[_0x557b2c(0x28b)][_0x557b2c(0x24a)]({'eventID':_[_0x557b2c(0x1e2)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x557b2c(0x205)]}},this[_0x557b2c(0x205)]));}[_0x38e2ae(0x271)](){var _0x232533=_0x38e2ae;this[_0x232533(0x222)]===_0x232533(0x238)&&(this[_0x232533(0x1e7)][_0x232533(0x1f1)](_0x232533(0x289)),this[_0x232533(0x2bd)]());}['stopFollowing'](){var _0xf5613a=_0x38e2ae;this[_0xf5613a(0x222)]==='following'&&this[_0xf5613a(0x243)]();}[_0x38e2ae(0x20c)](_0x4e6ce8){var _0x1af9a2=_0x38e2ae;const {presenter:_0x541111}=_0x4e6ce8[_0x1af9a2(0x279)],_0x445001=this[_0x1af9a2(0x28b)]['getMemberID']();this[_0x1af9a2(0x2a9)]=_0x541111,_0x541111===_0x445001?(this[_0x1af9a2(0x243)](),this[_0x1af9a2(0x252)]()):this[_0x1af9a2(0x222)]!==_0x1af9a2(0x238)&&(this['_stopPresenting'](),this[_0x1af9a2(0x2bd)]());}[_0x38e2ae(0x246)](){var _0x38d5af=_0x38e2ae;const _0x5d3533={'eventID':_[_0x38d5af(0x1e2)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x5d3533,this['_unitID']);}[_0x38e2ae(0x24d)](){var _0x462d39=_0x38e2ae;this['_presenter']=null,this[_0x462d39(0x222)]!==_0x462d39(0x1df)&&this[_0x462d39(0x240)]();}['_handleNewChangeSets'](_0x1b2b17){var _0x4dc644=_0x38e2ae;if(this[_0x4dc644(0x222)]===_0x4dc644(0x289)&&this[_0x4dc644(0x2a9)]===_0x1b2b17[_0x4dc644(0x279)][_0x4dc644(0x2aa)]){const _0x256661=_[_0x4dc644(0x269)](_0x1b2b17[_0x4dc644(0x279)])[_0x4dc644(0x2a7)][_0x4dc644(0x210)]()[_0x4dc644(0x1fa)](_0x6c854=>_0x6c854['id']===C[_0x4dc644(0x2a1)]['id']);if(_0x256661){const _0x5dc058=_0x256661[_0x4dc644(0x1f3)][_0x4dc644(0x261)],_0x54143e=_0x256661[_0x4dc644(0x1f3)][_0x4dc644(0x22b)]['id'];setTimeout(()=>{var _0x1f84ca=_0x4dc644;this[_0x1f84ca(0x293)]['executeCommand'](C[_0x1f84ca(0x29e)]['id'],{'unitId':_0x5dc058,'subUnitId':_0x54143e},{'fromCollab':!0x0});});}}}[_0x38e2ae(0x252)](){var _0x176245=_0x38e2ae;this[_0x176245(0x1e7)]['next']('presenting');const _0x1e0607=new Map(),_0x3262fe=this[_0x176245(0x208)]=new o[(_0x176245(0x206))]();_0x3262fe[_0x176245(0x23a)](o[_0x176245(0x1ed)](()=>{var _0x2c8e15=_0x176245;_0x1e0607['forEach'](_0xdbd4fd=>_0xdbd4fd[_0x2c8e15(0x248)]()),_0x1e0607['clear']();})),_0x3262fe['add'](this[_0x176245(0x293)][_0x176245(0x233)](_0x3cf206=>{var _0x1019d5=_0x176245,_0x54f06a;if(_0x3cf206[_0x1019d5(0x2ac)]!==o[_0x1019d5(0x291)][_0x1019d5(0x296)]||!this[_0x1019d5(0x263)][_0x1019d5(0x26e)](_0x3cf206['id']))return;const {id:_0x26c301}=_0x3cf206;let _0x35bb03;_0x1e0607['has'](_0x26c301)?_0x35bb03=_0x1e0607[_0x1019d5(0x24e)](_0x26c301):(_0x35bb03=new D[(_0x1019d5(0x22e))](),_0x1e0607['set'](_0x26c301,_0x35bb03),_0x35bb03['pipe'](b[_0x1019d5(0x25a)]((_0x54f06a=this[_0x1019d5(0x20a)][_0x1019d5(0x256)](Z))!=null?_0x54f06a:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1019d5(0x232)](_0x250849=>{var _0x39652=_0x1019d5;this[_0x39652(0x28b)]['send']({'eventID':_[_0x39652(0x1e2)][_0x39652(0x1e8)],'data':{'unitID':this['_unitID'],'operations':{[_0x250849['id']]:{'id':_0x250849['id'],'params':JSON[_0x39652(0x236)](_0x250849[_0x39652(0x1f3)])}}}},this['_unitID']);})),_0x35bb03['next'](_0x3cf206);})),this['_liveShareService']['getInitialStates'](this[_0x176245(0x205)])['forEach'](_0x4dad99=>this[_0x176245(0x28b)][_0x176245(0x24a)]({'eventID':_[_0x176245(0x1e2)][_0x176245(0x1e8)],'data':{'unitID':this[_0x176245(0x205)],'operations':{[_0x4dad99['id']]:{'id':_0x4dad99['id'],'params':JSON[_0x176245(0x236)](_0x4dad99[_0x176245(0x1f3)])}}}},this[_0x176245(0x205)]));}['_stopPresenting'](){var _0x2b6b95=_0x38e2ae,_0x37683a;this['_status$']['next'](_0x2b6b95(0x201)),(_0x37683a=this[_0x2b6b95(0x208)])==null||_0x37683a[_0x2b6b95(0x268)](),this['_commandDisposable']=null;}[_0x38e2ae(0x2bd)](){var _0x31171b=_0x38e2ae,_0x58d151;(_0x58d151=this[_0x31171b(0x208)])==null||_0x58d151[_0x31171b(0x268)](),this[_0x31171b(0x1e7)][_0x31171b(0x1f1)]('following');}[_0x38e2ae(0x240)](){var _0x3c77eb=_0x38e2ae,_0x49ac43;this[_0x3c77eb(0x1e7)][_0x3c77eb(0x1f1)]('idle'),(_0x49ac43=this[_0x3c77eb(0x208)])==null||_0x49ac43[_0x3c77eb(0x268)](),this['_commandDisposable']=null;}[_0x38e2ae(0x243)](){var _0xd95f34=_0x38e2ae,_0x3ac751;this[_0xd95f34(0x1e7)]['next'](_0xd95f34(0x238)),(_0x3ac751=this[_0xd95f34(0x208)])==null||_0x3ac751[_0xd95f34(0x268)]();}[_0x38e2ae(0x20d)](_0x4b4bf7){var _0x254609=_0x38e2ae;if([_0x254609(0x1df),_0x254609(0x238),'offline']['includes'](this[_0x254609(0x222)])||!_0x4b4bf7[_0x254609(0x279)][_0x254609(0x22f)]||_0x4b4bf7[_0x254609(0x279)][_0x254609(0x22f)]===this['_collabSession'][_0x254609(0x1fc)]())return;this[_0x254609(0x222)]===_0x254609(0x201)&&this[_0x254609(0x2bd)]();const _0x5b3ccd=_0x4b4bf7[_0x254609(0x279)]['operations'];Object[_0x254609(0x225)](_0x5b3ccd)[_0x254609(0x2a0)](_0x10e851=>{var _0x8f973a=_0x254609;this['_commandService'][_0x8f973a(0x294)](_0x10e851['id'],_0x10e851[_0x8f973a(0x1f3)]?JSON[_0x8f973a(0x2b4)](_0x10e851['params']):null,{'fromCollab':!0x0});});}[_0x38e2ae(0x203)](){var _0x162498=_0x38e2ae,_0xb9342f;this['_status$'][_0x162498(0x1f1)]('offline'),(_0xb9342f=this[_0x162498(0x208)])==null||_0xb9342f['dispose']();}[_0x38e2ae(0x2b6)](){var _0x1ffc8d=_0x38e2ae;this['_status$'][_0x1ffc8d(0x1f1)](_0x1ffc8d(0x201)),this[_0x1ffc8d(0x246)]();}},exports[_0x38e2ae(0x2b7)]=R([S(0x2,o[_0x38e2ae(0x21c)]),S(0x3,o[_0x38e2ae(0x209)](O)),S(0x4,o[_0x38e2ae(0x267)])],exports[_0x38e2ae(0x2b7)]);function A(){var _0x4f65dc=_0x38e2ae;const _0x114879=p[_0x4f65dc(0x221)](exports[_0x4f65dc(0x290)]),_0x1b3bd7=p[_0x4f65dc(0x221)](o[_0x4f65dc(0x26d)]),_0x1b7ffd=p[_0x4f65dc(0x2af)](()=>_0x1b3bd7[_0x4f65dc(0x212)](o[_0x4f65dc(0x25b)][_0x4f65dc(0x2b9)]),void 0x0,!0x1,[]),[_0x337762,_0x33e23e]=f[_0x4f65dc(0x28e)](null),[_0x949ad7,_0x333d32]=f[_0x4f65dc(0x28e)](h[_0x4f65dc(0x266)]),_0x4f77ac=f[_0x4f65dc(0x27f)](null);return f[_0x4f65dc(0x272)](()=>(_0x1b7ffd&&_0x114879['getLiveShareCoordinator'](_0x1b7ffd['getUnitId']())['then'](_0x2e3d2a=>{var _0x25f820=_0x4f65dc;_0x33e23e(_0x2e3d2a),_0x4f77ac[_0x25f820(0x259)]=_0x2e3d2a[_0x25f820(0x21d)]['subscribe'](_0x544c3d=>{_0x333d32(_0x544c3d);});}),()=>{var _0x1cc1f9=_0x4f65dc,_0x280095;(_0x280095=_0x4f77ac[_0x1cc1f9(0x259)])==null||_0x280095[_0x1cc1f9(0x21f)](),_0x4f77ac[_0x1cc1f9(0x259)]=null;}),[_0x1b7ffd,_0x114879]),_0x337762?l[_0x4f65dc(0x228)](g[_0x4f65dc(0x24b)],{'align':_0x4f65dc(0x237),'disabled':_0x949ad7===h['OFFLINE'],'className':_0x4f65dc(0x1e3),'overlay':l['jsx'](K,{'status':_0x949ad7,'coordinator':_0x337762}),'children':l[_0x4f65dc(0x228)]('button',{'className':g[_0x4f65dc(0x1e6)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x949ad7===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x949ad7!==h['OFFLINE']}),'type':_0x4f65dc(0x207),'children':l[_0x4f65dc(0x228)](P,{'className':_0x4f65dc(0x234)})})}):null;}function K(_0x3b3d5f){var _0x129308=_0x38e2ae;const {status:_0xba2aac,coordinator:_0x570515}=_0x3b3d5f;switch(_0xba2aac){case h['IDLE']:return l[_0x129308(0x228)](z,{'coordinator':_0x570515});case h[_0x129308(0x28f)]:return l[_0x129308(0x228)](Q,{'coordinator':_0x570515});case h[_0x129308(0x299)]:return l[_0x129308(0x228)](X,{'coordinator':_0x570515});case h[_0x129308(0x2a4)]:return l[_0x129308(0x228)](te,{});case h[_0x129308(0x2b0)]:return l[_0x129308(0x228)](ee,{'coordinator':_0x570515});default:return null;}}function z(_0x2197a4){var _0xbcf598=_0x38e2ae;const {coordinator:_0x4d1df8}=_0x2197a4;return l[_0xbcf598(0x2bb)](l['Fragment'],{'children':[l['jsx'](_0xbcf598(0x274),{'className':_0xbcf598(0x213),'children':_0xbcf598(0x254)}),l['jsx'](g[_0xbcf598(0x26a)],{'onClick':()=>_0x4d1df8[_0xbcf598(0x23c)](),'children':_0xbcf598(0x25f)})]});}function Q(_0x5743c3){var _0x567beb=_0x38e2ae;const {coordinator:_0x5e7237}=_0x5743c3;return l[_0x567beb(0x2bb)](l[_0x567beb(0x27a)],{'children':[l[_0x567beb(0x228)](_0x567beb(0x274),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x567beb(0x228)](g[_0x567beb(0x26a)],{'onClick':()=>_0x5e7237[_0x567beb(0x26f)](),'children':'Stop\x20following'})]});}function X(_0x3b60f7){var _0x5255cf=_0x38e2ae;const {coordinator:_0x1d2a78}=_0x3b60f7;return l[_0x5255cf(0x2bb)](l['Fragment'],{'children':[l['jsx'](_0x5255cf(0x274),{'className':_0x5255cf(0x213),'children':_0x5255cf(0x281)}),l[_0x5255cf(0x228)](g[_0x5255cf(0x26a)],{'variant':_0x5255cf(0x29b),'onClick':()=>_0x1d2a78[_0x5255cf(0x271)](),'children':'Start\x20following'})]});}function ee(_0xe4031f){var _0x4dad74=_0x38e2ae;const {coordinator:_0x4943d4}=_0xe4031f;return l[_0x4dad74(0x2bb)](l[_0x4dad74(0x27a)],{'children':[l['jsx']('div',{'className':_0x4dad74(0x213),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x4dad74(0x228)](g[_0x4dad74(0x26a)],{'variant':_0x4dad74(0x1ff),'onClick':()=>_0x4943d4[_0x4dad74(0x1fe)](),'children':_0x4dad74(0x2c4)})]});}function _0x48f8(_0x4b5752,_0x84223a){var _0x541f6d=_0x541f();return _0x48f8=function(_0x48f859,_0xa7e0c1){_0x48f859=_0x48f859-0x1de;var _0x264320=_0x541f6d[_0x48f859];return _0x264320;},_0x48f8(_0x4b5752,_0x84223a);}function te(){var _0x13014f=_0x38e2ae;return l[_0x13014f(0x228)](l[_0x13014f(0x27a)],{'children':_0x13014f(0x2a5)});}var ie=Object[_0x38e2ae(0x247)],ne=(_0x1296d1,_0x76aa7d,_0x160e3a,_0x5378e7)=>{var _0x48506b=_0x38e2ae;for(var _0x316361=_0x5378e7>0x1?void 0x0:_0x5378e7?ie(_0x76aa7d,_0x160e3a):_0x76aa7d,_0x4a7010=_0x1296d1[_0x48506b(0x21e)]-0x1,_0x5cb3cf;_0x4a7010>=0x0;_0x4a7010--)(_0x5cb3cf=_0x1296d1[_0x4a7010])&&(_0x316361=_0x5cb3cf(_0x316361)||_0x316361);return _0x316361;},L=(_0x487439,_0x3e3db4)=>(_0x53e1a8,_0x19bbdc)=>_0x3e3db4(_0x53e1a8,_0x19bbdc,_0x487439);exports[_0x38e2ae(0x27d)]=class extends o[_0x38e2ae(0x1eb)]{constructor(_0x2ac710,_0x82d011){var _0x4e7f50=_0x38e2ae;super(),this[_0x4e7f50(0x29f)]=_0x2ac710,this[_0x4e7f50(0x1f7)]=_0x82d011,this['_mountLiveShare']();}[_0x38e2ae(0x286)](){var _0x3198a1=_0x38e2ae;this['disposeWithMe'](this[_0x3198a1(0x1f7)][_0x3198a1(0x1fd)](p[_0x3198a1(0x226)][_0x3198a1(0x23e)],()=>p[_0x3198a1(0x282)](A,this[_0x3198a1(0x29f)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x38e2ae(0x209)](o[_0x38e2ae(0x242)])),L(0x1,p[_0x38e2ae(0x24f)])],exports[_0x38e2ae(0x27d)]);var re=Object[_0x38e2ae(0x1e0)],se=Object[_0x38e2ae(0x247)],oe=(_0x4af78e,_0x3cc6c4,_0x54737a)=>_0x3cc6c4 in _0x4af78e?re(_0x4af78e,_0x3cc6c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54737a}):_0x4af78e[_0x3cc6c4]=_0x54737a,ae=(_0x21288d,_0x4baffd,_0x1b4949,_0x19fba6)=>{var _0x35cc44=_0x38e2ae;for(var _0x487d7d=_0x19fba6>0x1?void 0x0:_0x19fba6?se(_0x4baffd,_0x1b4949):_0x4baffd,_0x4ef564=_0x21288d[_0x35cc44(0x21e)]-0x1,_0x53a0c4;_0x4ef564>=0x0;_0x4ef564--)(_0x53a0c4=_0x21288d[_0x4ef564])&&(_0x487d7d=_0x53a0c4(_0x487d7d)||_0x487d7d);return _0x487d7d;},N=(_0x84a557,_0x484780)=>(_0x2307b0,_0x3c4fe5)=>_0x484780(_0x2307b0,_0x3c4fe5,_0x84a557),T=(_0x53b2c4,_0x5480d0,_0x29e859)=>oe(_0x53b2c4,typeof _0x5480d0!=_0x38e2ae(0x1ee)?_0x5480d0+'':_0x5480d0,_0x29e859);const le=_0x38e2ae(0x273);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x31aa4e=x,_0x236664,_0x3c5d6a){var _0x1aa6f3=_0x38e2ae;super(),this['_config']=_0x31aa4e,this[_0x1aa6f3(0x29f)]=_0x236664,this[_0x1aa6f3(0x20a)]=_0x3c5d6a;const {..._0x5f4255}=o[_0x1aa6f3(0x1e5)]({},x,this['_config']);this[_0x1aa6f3(0x20a)][_0x1aa6f3(0x2c6)]($,_0x5f4255);}[_0x38e2ae(0x1f0)](){var _0x5a4f32=_0x38e2ae;o[_0x5a4f32(0x29d)](this['_injector'],o[_0x5a4f32(0x2ae)]([[O],[exports[_0x5a4f32(0x290)]],[E],[exports[_0x5a4f32(0x27d)]]],this['_config'][_0x5a4f32(0x262)])),o[_0x5a4f32(0x251)](this[_0x5a4f32(0x29f)],[[E]]);}['onRendered'](){var _0x4855a1=_0x38e2ae;o['touchDependencies'](this[_0x4855a1(0x29f)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x38e2ae(0x292)],_0x38e2ae(0x2ac),o[_0x38e2ae(0x25b)][_0x38e2ae(0x223)]),T(exports[_0x38e2ae(0x292)],_0x38e2ae(0x217),le),exports['UniverLiveSharePlugin']=ae([o[_0x38e2ae(0x220)](m[_0x38e2ae(0x2c5)]),N(0x1,o[_0x38e2ae(0x209)](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x38e2ae(0x292)]),exports[_0x38e2ae(0x239)]=A,exports[_0x38e2ae(0x211)]=O,exports[_0x38e2ae(0x285)]=h;
1
+ 'use strict';var _0x2d6643=_0x5e15;(function(_0xa8cc45,_0x5bd30c){var _0x267cfe=_0x5e15,_0x15bffd=_0xa8cc45();while(!![]){try{var _0x4e849f=parseInt(_0x267cfe(0x244))/0x1+-parseInt(_0x267cfe(0x246))/0x2+-parseInt(_0x267cfe(0x1af))/0x3*(parseInt(_0x267cfe(0x24b))/0x4)+-parseInt(_0x267cfe(0x22c))/0x5*(-parseInt(_0x267cfe(0x243))/0x6)+parseInt(_0x267cfe(0x256))/0x7*(parseInt(_0x267cfe(0x1ab))/0x8)+parseInt(_0x267cfe(0x212))/0x9*(parseInt(_0x267cfe(0x19f))/0xa)+-parseInt(_0x267cfe(0x1b7))/0xb*(-parseInt(_0x267cfe(0x249))/0xc);if(_0x4e849f===_0x5bd30c)break;else _0x15bffd['push'](_0x15bffd['shift']());}catch(_0xa024bb){_0x15bffd['push'](_0x15bffd['shift']());}}}(_0x1946,0xf37da));function _0x1946(){var _0x3b694b=['Inject','sheet','getInitialStates','pluginName','_configService','OFFLINE','tag','_reporters','Injector','tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','useObservable','setConfig','_status','presenting','useEffect','registerDependencies','length','_commandService','fill','_startLiveShareCoordinator','_handleNewChangeSets','_beIdle','_handleOnline','getUnitId','_liveShareService','20mSzboh','_startFollowing','_collabSession','jsx','IUIPartsService','registerInitialStateReporter','BehaviorSubject','url(#$1','useRef','default','SetZoomRatioOperation','jsxs','558088qVbwQV','indexOf','none','LIVESHARE_NEW_HOST','121731KffDyC','override','_startPresenting','DisposableCollection','map','_stopPresenting','IDLE','symbol','11hJDHcx','_status$','HEADER_MENU','idle','includes','FOLLOWING','_presenter','useDependency','div','apply','get','prototype','stopPresenting','http://www.w3.org/2000/svg','touchDependencies','live-share.config','merge','UniverInstanceType','disposeWithMe','rxjs/operators','toDisposable','executeCommand','entries','UNIVER_SHEET','NOT_FOLLOWING','currentColor','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','event$','values','getMemberID','_collabSessionService','defIds','connectInjector','UNIVER_UNKNOWN','status$','getOwnPropertySymbols','parseProtocolChangeset','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','useState','asObservable','not-following','DesktopLiveShareController','onStarting','@univerjs/design','colorChannel1','mask','dispose','CommandType','_mountLiveShare','You\x27re\x20not\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','data','add','idSuffix','subscribe','LiveShareStatus','_handleOffline','_handleTerminate','complete','IUniverInstanceService','substring','univer-size-4','evenodd','Module','parse','You\x27are\x20offline.','Present\x20this\x20document','params','CollaborationEvent','ONLINE','LIVESHARE_OPERATION','@univerjs/sheets','LiveShareIcon','LIVESHARE_TERMINATE','Button','takeUntil','_config','send','icon','UniverCollaborationClientPlugin','Dropdown','call','LiveShare','Plugin','startFollowing','forEach','@univerjs/sheets-ui','InsertSheetMutation','@univerjs-pro/collaboration','unsubscribe','7971993aopCOL','LiveShareController','ICommandService','children','Disposable','random','pipe','toStringTag','IConfigService','hasOwnProperty','createInstance','Stop\x20presenting','createElement','SessionStatus','has','init','next','SetWorksheetActiveOperation','following','_handleOperation','defs','_uiPartsService','concat','registerSharedOperation','UNIVER_LIVE_SHARE_PLUGIN','1em','6066945yrvqQx','@univerjs-pro/collaboration-client','replace','_fetchOperations','xlink:href','LIVESHARE_FETCH_OPERATIONS','attrs','SetScrollOperation','getTypeOfUnitDisposed$','DependentOn','offline','live-share-icon','sessionStatus$','requireSession','_unitID','PRESENTING','_univerInstanceService','displayName','throttleTime','defineProperty','assign','onRendered','_sharedOperations','6uBodfK','1364763xWVXlv','button','3567010IkfNoE','from','presenter','1274244vyBGqZ','getLiveShareCoordinator','172pOwYQz','set','getValue','LiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','You\x27re\x20presenting\x20the\x20document','_injector','_init','stopFollowing','current','delete','7yLAIoG','stringify','_stopFollowing','UniverLiveSharePlugin','react','text','getOwnPropertyDescriptor','mergeOverrideWithDependencies','reverse','univer-mb-3\x20univer-w-full\x20univer-text-sm','_entities','OPERATION','clear','memberID','_handleNewHost','rxjs','univerjs-icon\x20univerjs-icon-','forwardRef','type','0\x200\x2017\x2017','dispose$','Fragment','string'];_0x1946=function(){return _0x3b694b;};return _0x1946();}var U=Object[_0x2d6643(0x23f)],F=(_0x5f538b,_0x47fb6c,_0x3a1712)=>_0x47fb6c in _0x5f538b?U(_0x5f538b,_0x47fb6c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a1712}):_0x5f538b[_0x47fb6c]=_0x3a1712,v=(_0x23928a,_0x2b9a3b,_0x20079c)=>F(_0x23928a,typeof _0x2b9a3b!='symbol'?_0x2b9a3b+'':_0x2b9a3b,_0x20079c);Object[_0x2d6643(0x23f)](exports,Symbol[_0x2d6643(0x219)],{'value':_0x2d6643(0x1f7)});const m=require(_0x2d6643(0x22d)),o=require('@univerjs/core'),C=require(_0x2d6643(0x1ff)),w=require(_0x2d6643(0x20e)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require(_0x2d6643(0x1e3)),f=require(_0x2d6643(0x25a)),_=require(_0x2d6643(0x210)),D=require(_0x2d6643(0x265)),b=require(_0x2d6643(0x1ca)),$=_0x2d6643(0x1c6),x={};class O extends o[_0x2d6643(0x216)]{constructor(){var _0x4df562=_0x2d6643;super(...arguments),v(this,_0x4df562(0x242),new Set()),v(this,_0x4df562(0x274),new Set());}[_0x2d6643(0x229)](_0x49e912){var _0x24aec8=_0x2d6643;return this[_0x24aec8(0x242)]['add'](_0x49e912),o[_0x24aec8(0x1cb)](()=>this[_0x24aec8(0x242)][_0x24aec8(0x255)](_0x49e912));}[_0x2d6643(0x1a4)](_0x17909f){var _0x2a0444=_0x2d6643;return this['_reporters'][_0x2a0444(0x1ec)](_0x17909f),o[_0x2a0444(0x1cb)](()=>this[_0x2a0444(0x274)]['delete'](_0x17909f));}['shouldShareOperation'](_0x118b71){var _0x47d6cf=_0x2d6643;return this[_0x47d6cf(0x242)][_0x47d6cf(0x220)](_0x118b71);}[_0x2d6643(0x26f)](_0x2fa09b){var _0x34c865=_0x2d6643;return Array[_0x34c865(0x247)](this[_0x34c865(0x274)])[_0x34c865(0x1b3)](_0x16ed13=>_0x16ed13(_0x2fa09b));}}var H=Object[_0x2d6643(0x25c)],V=(_0x17efa7,_0x53a89f,_0x5ee570,_0x48661e)=>{var _0x4444b1=_0x2d6643;for(var _0x395675=_0x48661e>0x1?void 0x0:_0x48661e?H(_0x53a89f,_0x5ee570):_0x53a89f,_0x3f9da0=_0x17efa7[_0x4444b1(0x196)]-0x1,_0x3bd493;_0x3f9da0>=0x0;_0x3f9da0--)(_0x3bd493=_0x17efa7[_0x3f9da0])&&(_0x395675=_0x3bd493(_0x395675)||_0x395675);return _0x395675;},k=(_0x448b1c,_0x389094)=>(_0x1231b8,_0x47ab1c)=>_0x389094(_0x1231b8,_0x47ab1c,_0x448b1c);let E=class extends o['Disposable']{constructor(_0x3c81c){var _0x4e8489=_0x2d6643;super(),this[_0x4e8489(0x19e)]=_0x3c81c,this[_0x4e8489(0x252)]();}['_init'](){var _0x116e67=_0x2d6643;[w[_0x116e67(0x1a9)]['id'],w[_0x116e67(0x233)]['id'],C[_0x116e67(0x223)]['id']][_0x116e67(0x20d)](_0x1b6870=>{var _0x417911=_0x116e67;this[_0x417911(0x1c9)](this[_0x417911(0x19e)][_0x417911(0x229)](_0x1b6870));});}};E=V([k(0x0,o[_0x2d6643(0x26d)](O))],E);var u=function(){var _0x3f8654=_0x2d6643;return u=Object[_0x3f8654(0x240)]||function(_0x511796){var _0x197fe8=_0x3f8654;for(var _0x376b78,_0x2c6335=0x1,_0x28fe03=arguments[_0x197fe8(0x196)];_0x2c6335<_0x28fe03;_0x2c6335++){_0x376b78=arguments[_0x2c6335];for(var _0x419e97 in _0x376b78)Object[_0x197fe8(0x1c2)][_0x197fe8(0x21b)][_0x197fe8(0x209)](_0x376b78,_0x419e97)&&(_0x511796[_0x419e97]=_0x376b78[_0x419e97]);}return _0x511796;},u[_0x3f8654(0x1c0)](this,arguments);},M=function(_0xfc587f,_0x1cf6dc){var _0x247566=_0x2d6643,_0x47b19f={};for(var _0x1b77d8 in _0xfc587f)Object[_0x247566(0x1c2)][_0x247566(0x21b)][_0x247566(0x209)](_0xfc587f,_0x1b77d8)&&_0x1cf6dc[_0x247566(0x1ac)](_0x1b77d8)<0x0&&(_0x47b19f[_0x1b77d8]=_0xfc587f[_0x1b77d8]);if(_0xfc587f!=null&&typeof Object[_0x247566(0x1da)]=='function'){for(var _0x28118f=0x0,_0x1b77d8=Object['getOwnPropertySymbols'](_0xfc587f);_0x28118f<_0x1b77d8[_0x247566(0x196)];_0x28118f++)_0x1cf6dc[_0x247566(0x1ac)](_0x1b77d8[_0x28118f])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x247566(0x209)](_0xfc587f,_0x1b77d8[_0x28118f])&&(_0x47b19f[_0x1b77d8[_0x28118f]]=_0xfc587f[_0x1b77d8[_0x28118f]]);}return _0x47b19f;},j=f[_0x2d6643(0x267)](function(_0x4e8cb6,_0x459542){var _0x37a01a=_0x2d6643,_0x49146e=_0x4e8cb6[_0x37a01a(0x206)],_0xc8be71=_0x4e8cb6['id'],_0x12572c=_0x4e8cb6['className'],_0xabac0f=_0x4e8cb6['extend'],_0x2843aa=M(_0x4e8cb6,[_0x37a01a(0x206),'id','className','extend']),_0x22f52a=_0x37a01a(0x266)[_0x37a01a(0x228)](_0xc8be71,'\x20')['concat'](_0x12572c||'')['trim'](),_0xb3e025=f[_0x37a01a(0x1a7)]('_'[_0x37a01a(0x228)](G()));return y(_0x49146e,''[_0x37a01a(0x228)](_0xc8be71),{'defIds':_0x49146e[_0x37a01a(0x1d6)],'idSuffix':_0xb3e025[_0x37a01a(0x254)]},u({'ref':_0x459542,'className':_0x22f52a},_0x2843aa),_0xabac0f);});function y(_0x2ce1c8,_0x332bab,_0x306fa4,_0x27d15e,_0x1b4e39){var _0x41208a=_0x2d6643;return f[_0x41208a(0x21e)](_0x2ce1c8[_0x41208a(0x273)],u(u({'key':_0x332bab},q(_0x2ce1c8,_0x306fa4,_0x1b4e39)),_0x27d15e),(W(_0x2ce1c8,_0x306fa4)['children']||[])[_0x41208a(0x1b3)](function(_0x53d5b2,_0x1a3188){var _0x5a4cb1=_0x41208a;return y(_0x53d5b2,''[_0x5a4cb1(0x228)](_0x332bab,'-')[_0x5a4cb1(0x228)](_0x2ce1c8['tag'],'-')[_0x5a4cb1(0x228)](_0x1a3188),_0x306fa4,void 0x0,_0x1b4e39);}));}function q(_0x2caf72,_0x3d9fc7,_0x1c8ad1){var _0x4eabbe=_0x2d6643,_0x57b0dd=u({},_0x2caf72[_0x4eabbe(0x232)]);_0x1c8ad1!=null&&_0x1c8ad1[_0x4eabbe(0x1e4)]&&_0x57b0dd[_0x4eabbe(0x198)]===_0x4eabbe(0x1e4)&&(_0x57b0dd[_0x4eabbe(0x198)]=_0x1c8ad1[_0x4eabbe(0x1e4)]),_0x2caf72[_0x4eabbe(0x273)]===_0x4eabbe(0x1e5)&&_0x57b0dd['id']&&(_0x57b0dd['id']=_0x57b0dd['id']+_0x3d9fc7[_0x4eabbe(0x1ed)]),Object[_0x4eabbe(0x1cd)](_0x57b0dd)[_0x4eabbe(0x20d)](function(_0xc1864b){var _0x3d4bfd=_0x4eabbe,_0x2afb67=_0xc1864b[0x0],_0x2fbfb8=_0xc1864b[0x1];_0x2afb67===_0x3d4bfd(0x1e5)&&typeof _0x2fbfb8==_0x3d4bfd(0x26c)&&(_0x57b0dd[_0x2afb67]=_0x2fbfb8[_0x3d4bfd(0x22e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3d9fc7['idSuffix'],')')));});var _0x1fe94e=_0x3d9fc7[_0x4eabbe(0x1d6)];return!_0x1fe94e||_0x1fe94e[_0x4eabbe(0x196)]===0x0||(_0x2caf72[_0x4eabbe(0x273)]==='use'&&_0x57b0dd[_0x4eabbe(0x230)]&&(_0x57b0dd[_0x4eabbe(0x230)]=_0x57b0dd[_0x4eabbe(0x230)]+_0x3d9fc7[_0x4eabbe(0x1ed)]),Object[_0x4eabbe(0x1cd)](_0x57b0dd)[_0x4eabbe(0x20d)](function(_0xb32eab){var _0x3c804a=_0x4eabbe,_0x26d971=_0xb32eab[0x0],_0x9748f9=_0xb32eab[0x1];typeof _0x9748f9==_0x3c804a(0x26c)&&(_0x57b0dd[_0x26d971]=_0x9748f9[_0x3c804a(0x22e)](/url\(#(.*)\)/,_0x3c804a(0x1a6)[_0x3c804a(0x228)](_0x3d9fc7[_0x3c804a(0x1ed)],')')));})),_0x57b0dd;}function _0x5e15(_0xfc5ac7,_0x17d2d9){var _0x194626=_0x1946();return _0x5e15=function(_0x5e15b3,_0x15c903){_0x5e15b3=_0x5e15b3-0x18d;var _0x1b35d5=_0x194626[_0x5e15b3];return _0x1b35d5;},_0x5e15(_0xfc5ac7,_0x17d2d9);}function W(_0x3d7181,_0xfb94cd){var _0xd50100=_0x2d6643,_0x10d71c,_0x27c977=_0xfb94cd[_0xd50100(0x1d6)];return!_0x27c977||_0x27c977[_0xd50100(0x196)]===0x0?_0x3d7181:_0x3d7181[_0xd50100(0x273)]===_0xd50100(0x226)&&(!((_0x10d71c=_0x3d7181[_0xd50100(0x215)])===null||_0x10d71c===void 0x0)&&_0x10d71c[_0xd50100(0x196)])?u(u({},_0x3d7181),{'children':_0x3d7181[_0xd50100(0x215)][_0xd50100(0x1b3)](function(_0xbe7d82){var _0xe17f8b=_0xd50100;return typeof _0xbe7d82[_0xe17f8b(0x232)]['id']=='string'&&_0x27c977&&_0x27c977[_0xe17f8b(0x1bb)](_0xbe7d82[_0xe17f8b(0x232)]['id'])?u(u({},_0xbe7d82),{'attrs':u(u({},_0xbe7d82[_0xe17f8b(0x232)]),{'id':_0xbe7d82[_0xe17f8b(0x232)]['id']+_0xfb94cd[_0xe17f8b(0x1ed)]})}):_0xbe7d82;})}):_0x3d7181;}function G(){var _0x9c7844=_0x2d6643;return Math[_0x9c7844(0x217)]()['toString'](0x24)[_0x9c7844(0x1f4)](0x2,0x8);}j[_0x2d6643(0x23d)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':_0x2d6643(0x1c4),'fill':_0x2d6643(0x1ad),'viewBox':_0x2d6643(0x269),'width':_0x2d6643(0x22b),'height':_0x2d6643(0x22b)},'children':[{'tag':'path','attrs':{'fill':_0x2d6643(0x1d0),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x2d6643(0x1d0),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x2d6643(0x1f6),'clipRule':_0x2d6643(0x1f6)}}]},P=f[_0x2d6643(0x267)](function(_0x77b22,_0x5d108c){var _0x5d543e=_0x2d6643;return f[_0x5d543e(0x21e)](j,Object['assign']({},_0x77b22,{'id':_0x5d543e(0x237),'ref':_0x5d108c,'icon':B}));});P[_0x2d6643(0x23d)]=_0x2d6643(0x200);var Y=Object[_0x2d6643(0x25c)],R=(_0x50bd0c,_0x6a3f4a,_0x1d8f5b,_0x187daf)=>{var _0x3ec6f2=_0x2d6643;for(var _0x1ccdb3=_0x187daf>0x1?void 0x0:_0x187daf?Y(_0x6a3f4a,_0x1d8f5b):_0x6a3f4a,_0x29d224=_0x50bd0c[_0x3ec6f2(0x196)]-0x1,_0x52db02;_0x29d224>=0x0;_0x29d224--)(_0x52db02=_0x50bd0c[_0x29d224])&&(_0x1ccdb3=_0x52db02(_0x1ccdb3)||_0x1ccdb3);return _0x1ccdb3;},S=(_0x3e3a43,_0x3d2dca)=>(_0x560fbb,_0x3a8b3e)=>_0x3d2dca(_0x560fbb,_0x3a8b3e,_0x3e3a43);exports[_0x2d6643(0x213)]=class extends o['RxDisposable']{constructor(_0x600fe8,_0x2091c0,_0x2605a6){var _0x7b24f=_0x2d6643;super(),v(this,_0x7b24f(0x260),new Map()),(this[_0x7b24f(0x23c)]=_0x600fe8,this[_0x7b24f(0x251)]=_0x2091c0,this[_0x7b24f(0x1d5)]=_0x2605a6,this['_init']());}async[_0x2d6643(0x24a)](_0xa06772){var _0x48a0af=_0x2d6643;return this['_entities'][_0x48a0af(0x220)](_0xa06772)||await this[_0x48a0af(0x199)](_0xa06772),this[_0x48a0af(0x260)][_0x48a0af(0x1c1)](_0xa06772);}['_init'](){var _0x5b02f7=_0x2d6643;this[_0x5b02f7(0x23c)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x5b02f7(0x1ce)])[_0x5b02f7(0x218)](b['takeUntil'](this[_0x5b02f7(0x26a)]))[_0x5b02f7(0x1ee)](async _0x441171=>{var _0x4fc56c=_0x5b02f7;const _0x248c99=_0x441171[_0x4fc56c(0x19d)]();this['_entities']['has'](_0x248c99)||this[_0x4fc56c(0x199)](_0x248c99);}),this[_0x5b02f7(0x23c)][_0x5b02f7(0x234)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x5b02f7(0x218)](b[_0x5b02f7(0x203)](this['dispose$']))[_0x5b02f7(0x1ee)](_0x42509f=>{var _0x3c8f3b=_0x5b02f7;const _0x1499cc=_0x42509f['getUnitId'](),_0xa5927d=this[_0x3c8f3b(0x260)][_0x3c8f3b(0x1c1)](_0x1499cc);_0xa5927d==null||_0xa5927d[_0x3c8f3b(0x1e6)]();});}async[_0x2d6643(0x199)](_0x5681e9){var _0x5190e6=_0x2d6643;const _0xef1b2b=await this[_0x5190e6(0x1d5)][_0x5190e6(0x239)](_0x5681e9),_0x1b137e=this[_0x5190e6(0x251)][_0x5190e6(0x21c)](exports[_0x5190e6(0x24e)],_0x5681e9,_0xef1b2b);return _0x1b137e['init'](),this[_0x5190e6(0x260)]['set'](_0x5681e9,_0x1b137e),_0x1b137e;}},exports[_0x2d6643(0x213)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x2d6643(0x26d)](o[_0x2d6643(0x18d)])),S(0x2,o[_0x2d6643(0x26d)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0x31838a=>(_0x31838a[_0x2d6643(0x272)]=_0x2d6643(0x236),_0x31838a[_0x2d6643(0x1b5)]=_0x2d6643(0x1ba),_0x31838a[_0x2d6643(0x1bc)]=_0x2d6643(0x224),_0x31838a[_0x2d6643(0x1cf)]=_0x2d6643(0x1e0),_0x31838a[_0x2d6643(0x23b)]=_0x2d6643(0x193),_0x31838a))(h||{});const Z=_0x2d6643(0x18f),J=0xc8;exports[_0x2d6643(0x24e)]=class extends o['RxDisposable']{constructor(_0x56a80d,_0x33ebab,_0xa47140,_0x4ce241,_0x2e4867){var _0x52d545=_0x2d6643;super(),v(this,_0x52d545(0x1b8),new D[(_0x52d545(0x1a5))](_0x52d545(0x1ba))),v(this,'status$',this[_0x52d545(0x1b8)][_0x52d545(0x1df)]()),v(this,'_init',!0x1),v(this,_0x52d545(0x1dd),null),v(this,_0x52d545(0x1bd),null),(this[_0x52d545(0x23a)]=_0x56a80d,this[_0x52d545(0x1a1)]=_0x33ebab,this[_0x52d545(0x271)]=_0xa47140,this[_0x52d545(0x19e)]=_0x4ce241,this['_commandService']=_0x2e4867);}get[_0x2d6643(0x192)](){var _0x43fb37=_0x2d6643;return this[_0x43fb37(0x1b8)][_0x43fb37(0x24d)]();}[_0x2d6643(0x1e6)](){var _0x297407=_0x2d6643,_0x5bbed4;(_0x5bbed4=this[_0x297407(0x1dd)])==null||_0x5bbed4[_0x297407(0x1e6)](),this[_0x297407(0x1b8)][_0x297407(0x222)](_0x297407(0x1ba)),this[_0x297407(0x1b8)]['complete']();}[_0x2d6643(0x221)](){var _0x1ff050=_0x2d6643;this[_0x1ff050(0x252)]||(this[_0x1ff050(0x252)]=!0x0,this[_0x1ff050(0x1a1)][_0x1ff050(0x238)][_0x1ff050(0x218)](b[_0x1ff050(0x203)](this[_0x1ff050(0x26a)]))[_0x1ff050(0x1ee)](_0x5e2ae7=>{var _0x205f02=_0x1ff050;switch(_0x5e2ae7){case m[_0x205f02(0x21f)][_0x205f02(0x272)]:this[_0x205f02(0x1f0)]();break;case m[_0x205f02(0x21f)][_0x205f02(0x1fd)]:this[_0x205f02(0x19c)]();break;}}),this['_collabSession'][_0x1ff050(0x1d2)][_0x1ff050(0x218)](b[_0x1ff050(0x203)](this['dispose$']))[_0x1ff050(0x1ee)](_0x541250=>{var _0x45c276=_0x1ff050;const {eventID:_0x2a6214}=_0x541250;switch(_0x2a6214){case _['CollaborationEvent'][_0x45c276(0x1ae)]:this[_0x45c276(0x264)](_0x541250);break;case _[_0x45c276(0x1fc)][_0x45c276(0x1fe)]:this['_handleOperation'](_0x541250);break;case _[_0x45c276(0x1fc)][_0x45c276(0x201)]:this[_0x45c276(0x1f1)]();break;case _[_0x45c276(0x1fc)]['NEW_CHANGESETS']:this[_0x45c276(0x19a)](_0x541250);break;}}));}[_0x2d6643(0x18e)](){var _0x46205f=_0x2d6643;this['_collabSession'][_0x46205f(0x205)]({'eventID':_[_0x46205f(0x1fc)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x2d6643(0x1c3)](){var _0x3aac93=_0x2d6643;this[_0x3aac93(0x192)]===_0x3aac93(0x193)&&(this[_0x3aac93(0x1b8)][_0x3aac93(0x222)]('idle'),this['_collabSession'][_0x3aac93(0x205)]({'eventID':_[_0x3aac93(0x1fc)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3aac93(0x23a)]}},this['_unitID']));}[_0x2d6643(0x20c)](){var _0xf70310=_0x2d6643;this['_status']===_0xf70310(0x1e0)&&(this[_0xf70310(0x1b8)]['next'](_0xf70310(0x224)),this[_0xf70310(0x1a0)]());}[_0x2d6643(0x253)](){var _0x2c9fa8=_0x2d6643;this[_0x2c9fa8(0x192)]===_0x2c9fa8(0x224)&&this[_0x2c9fa8(0x258)]();}[_0x2d6643(0x264)](_0x1cfd09){var _0x1b29d2=_0x2d6643;const {presenter:_0x6e0f9f}=_0x1cfd09[_0x1b29d2(0x1eb)],_0x1616f5=this[_0x1b29d2(0x1a1)][_0x1b29d2(0x1d4)]();this['_presenter']=_0x6e0f9f,_0x6e0f9f===_0x1616f5?(this[_0x1b29d2(0x258)](),this[_0x1b29d2(0x1b1)]()):this[_0x1b29d2(0x192)]!==_0x1b29d2(0x1e0)&&(this['_stopPresenting'](),this[_0x1b29d2(0x1a0)]());}[_0x2d6643(0x22f)](){var _0x369e53=_0x2d6643;const _0x3f364a={'eventID':_['CollaborationEvent'][_0x369e53(0x231)]};this[_0x369e53(0x1a1)][_0x369e53(0x205)](_0x3f364a,this[_0x369e53(0x23a)]);}[_0x2d6643(0x1f1)](){var _0x356a6e=_0x2d6643;this['_presenter']=null,this[_0x356a6e(0x192)]!==_0x356a6e(0x193)&&this[_0x356a6e(0x19b)]();}[_0x2d6643(0x19a)](_0x2cb61f){var _0x22ff0c=_0x2d6643;if(this[_0x22ff0c(0x192)]===_0x22ff0c(0x224)&&this[_0x22ff0c(0x1bd)]===_0x2cb61f['data'][_0x22ff0c(0x263)]){const _0x43951d=_[_0x22ff0c(0x1db)](_0x2cb61f[_0x22ff0c(0x1eb)])['mutations'][_0x22ff0c(0x25e)]()['find'](_0x4bfc4a=>_0x4bfc4a['id']===C[_0x22ff0c(0x20f)]['id']);if(_0x43951d){const _0x40579c=_0x43951d[_0x22ff0c(0x1fb)]['unitId'],_0xc9c8b4=_0x43951d[_0x22ff0c(0x1fb)][_0x22ff0c(0x26e)]['id'];setTimeout(()=>{var _0x7b3ac1=_0x22ff0c;this[_0x7b3ac1(0x197)][_0x7b3ac1(0x1cc)](C[_0x7b3ac1(0x223)]['id'],{'unitId':_0x40579c,'subUnitId':_0xc9c8b4},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4b59c9=_0x2d6643;this[_0x4b59c9(0x1b8)][_0x4b59c9(0x222)](_0x4b59c9(0x193));const _0x5e4fbe=new Map(),_0x4cfcc7=this[_0x4b59c9(0x1dd)]=new o[(_0x4b59c9(0x1b2))]();_0x4cfcc7['add'](o[_0x4b59c9(0x1cb)](()=>{var _0x5597bb=_0x4b59c9;_0x5e4fbe['forEach'](_0xa2a4e9=>_0xa2a4e9[_0x5597bb(0x1f2)]()),_0x5e4fbe[_0x5597bb(0x262)]();})),_0x4cfcc7['add'](this['_commandService']['onCommandExecuted'](_0x5f50db=>{var _0x4e03a7=_0x4b59c9,_0x46f380;if(_0x5f50db[_0x4e03a7(0x268)]!==o[_0x4e03a7(0x1e7)][_0x4e03a7(0x261)]||!this[_0x4e03a7(0x19e)]['shouldShareOperation'](_0x5f50db['id']))return;const {id:_0xd71be0}=_0x5f50db;let _0x53f75a;_0x5e4fbe[_0x4e03a7(0x220)](_0xd71be0)?_0x53f75a=_0x5e4fbe[_0x4e03a7(0x1c1)](_0xd71be0):(_0x53f75a=new D['Subject'](),_0x5e4fbe[_0x4e03a7(0x24c)](_0xd71be0,_0x53f75a),_0x53f75a[_0x4e03a7(0x218)](b[_0x4e03a7(0x23e)]((_0x46f380=this[_0x4e03a7(0x271)]['getConfig'](Z))!=null?_0x46f380:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4e03a7(0x1ee)](_0x401ce7=>{var _0x1186ce=_0x4e03a7;this[_0x1186ce(0x1a1)][_0x1186ce(0x205)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1186ce(0x23a)],'operations':{[_0x401ce7['id']]:{'id':_0x401ce7['id'],'params':JSON[_0x1186ce(0x257)](_0x401ce7['params'])}}}},this[_0x1186ce(0x23a)]);})),_0x53f75a['next'](_0x5f50db);})),this[_0x4b59c9(0x19e)][_0x4b59c9(0x26f)](this['_unitID'])['forEach'](_0x42f047=>this['_collabSession'][_0x4b59c9(0x205)]({'eventID':_[_0x4b59c9(0x1fc)][_0x4b59c9(0x1fe)],'data':{'unitID':this[_0x4b59c9(0x23a)],'operations':{[_0x42f047['id']]:{'id':_0x42f047['id'],'params':JSON[_0x4b59c9(0x257)](_0x42f047[_0x4b59c9(0x1fb)])}}}},this[_0x4b59c9(0x23a)]));}[_0x2d6643(0x1b4)](){var _0x2f72e5=_0x2d6643,_0x108700;this[_0x2f72e5(0x1b8)][_0x2f72e5(0x222)]('idle'),(_0x108700=this[_0x2f72e5(0x1dd)])==null||_0x108700[_0x2f72e5(0x1e6)](),this[_0x2f72e5(0x1dd)]=null;}[_0x2d6643(0x1a0)](){var _0x2a6429=_0x2d6643,_0x3437c3;(_0x3437c3=this['_commandDisposable'])==null||_0x3437c3[_0x2a6429(0x1e6)](),this[_0x2a6429(0x1b8)][_0x2a6429(0x222)](_0x2a6429(0x224));}[_0x2d6643(0x19b)](){var _0x105191=_0x2d6643,_0x3f0666;this[_0x105191(0x1b8)]['next'](_0x105191(0x1ba)),(_0x3f0666=this[_0x105191(0x1dd)])==null||_0x3f0666[_0x105191(0x1e6)](),this[_0x105191(0x1dd)]=null;}[_0x2d6643(0x258)](){var _0x4fa1f0=_0x2d6643,_0x180d95;this[_0x4fa1f0(0x1b8)][_0x4fa1f0(0x222)](_0x4fa1f0(0x1e0)),(_0x180d95=this['_commandDisposable'])==null||_0x180d95[_0x4fa1f0(0x1e6)]();}[_0x2d6643(0x225)](_0x3f84ee){var _0x28f739=_0x2d6643;if([_0x28f739(0x193),_0x28f739(0x1e0),_0x28f739(0x236)][_0x28f739(0x1bb)](this['_status'])||!_0x3f84ee[_0x28f739(0x1eb)]['presenter']||_0x3f84ee[_0x28f739(0x1eb)][_0x28f739(0x248)]===this[_0x28f739(0x1a1)][_0x28f739(0x1d4)]())return;this['_status']===_0x28f739(0x1ba)&&this[_0x28f739(0x1a0)]();const _0x2eb630=_0x3f84ee[_0x28f739(0x1eb)]['operations'];Object[_0x28f739(0x1d3)](_0x2eb630)[_0x28f739(0x20d)](_0x3a6f31=>{var _0x3ce5a9=_0x28f739;this[_0x3ce5a9(0x197)][_0x3ce5a9(0x1cc)](_0x3a6f31['id'],_0x3a6f31[_0x3ce5a9(0x1fb)]?JSON[_0x3ce5a9(0x1f8)](_0x3a6f31['params']):null,{'fromCollab':!0x0});});}[_0x2d6643(0x1f0)](){var _0x34b6c7=_0x2d6643,_0x1a3320;this['_status$'][_0x34b6c7(0x222)](_0x34b6c7(0x236)),(_0x1a3320=this[_0x34b6c7(0x1dd)])==null||_0x1a3320[_0x34b6c7(0x1e6)]();}[_0x2d6643(0x19c)](){var _0x38e522=_0x2d6643;this['_status$'][_0x38e522(0x222)](_0x38e522(0x1ba)),this[_0x38e522(0x22f)]();}},exports[_0x2d6643(0x24e)]=R([S(0x2,o[_0x2d6643(0x21a)]),S(0x3,o[_0x2d6643(0x26d)](O)),S(0x4,o[_0x2d6643(0x214)])],exports[_0x2d6643(0x24e)]);function A(){var _0x72e005=_0x2d6643;const _0x382480=p[_0x72e005(0x1be)](exports[_0x72e005(0x213)]),_0x4fcf84=p[_0x72e005(0x1be)](o[_0x72e005(0x1f3)]),_0x3a66f8=p[_0x72e005(0x190)](()=>_0x4fcf84[_0x72e005(0x1ea)](o[_0x72e005(0x1c8)][_0x72e005(0x1ce)]),void 0x0,!0x1,[]),[_0x46127f,_0x19fd4b]=f[_0x72e005(0x1de)](null),[_0x3fc980,_0x427ace]=f[_0x72e005(0x1de)](h[_0x72e005(0x1b5)]),_0xc413db=f['useRef'](null);return f[_0x72e005(0x194)](()=>(_0x3a66f8&&_0x382480[_0x72e005(0x24a)](_0x3a66f8[_0x72e005(0x19d)]())['then'](_0x3639fb=>{var _0x11e502=_0x72e005;_0x19fd4b(_0x3639fb),_0xc413db[_0x11e502(0x254)]=_0x3639fb[_0x11e502(0x1d9)]['subscribe'](_0x41492d=>{_0x427ace(_0x41492d);});}),()=>{var _0x3d1263=_0x72e005,_0x34fdf3;(_0x34fdf3=_0xc413db[_0x3d1263(0x254)])==null||_0x34fdf3[_0x3d1263(0x211)](),_0xc413db[_0x3d1263(0x254)]=null;}),[_0x3a66f8,_0x382480]),_0x46127f?l[_0x72e005(0x1a2)](g[_0x72e005(0x208)],{'align':'end','disabled':_0x3fc980===h['OFFLINE'],'className':_0x72e005(0x1d1),'overlay':l[_0x72e005(0x1a2)](K,{'status':_0x3fc980,'coordinator':_0x46127f}),'children':l[_0x72e005(0x1a2)](_0x72e005(0x245),{'className':g['clsx'](_0x72e005(0x1dc),{'univer-cursor-not-allowed':_0x3fc980===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3fc980!==h['OFFLINE']}),'type':'button','children':l['jsx'](P,{'className':_0x72e005(0x1f5)})})}):null;}function K(_0x1ad4bb){var _0x5182cf=_0x2d6643;const {status:_0x6a3855,coordinator:_0x57c136}=_0x1ad4bb;switch(_0x6a3855){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x57c136});case h[_0x5182cf(0x1bc)]:return l[_0x5182cf(0x1a2)](Q,{'coordinator':_0x57c136});case h[_0x5182cf(0x1cf)]:return l['jsx'](X,{'coordinator':_0x57c136});case h['OFFLINE']:return l[_0x5182cf(0x1a2)](te,{});case h['PRESENTING']:return l[_0x5182cf(0x1a2)](ee,{'coordinator':_0x57c136});default:return null;}}function z(_0x2a9c64){var _0x85665=_0x2d6643;const {coordinator:_0x511651}=_0x2a9c64;return l[_0x85665(0x1aa)](l[_0x85665(0x26b)],{'children':[l['jsx'](_0x85665(0x1bf),{'className':_0x85665(0x25f),'children':_0x85665(0x1fa)}),l[_0x85665(0x1a2)](g['Button'],{'onClick':()=>_0x511651[_0x85665(0x18e)](),'children':'Start'})]});}function Q(_0x539ca8){var _0x56aa01=_0x2d6643;const {coordinator:_0x43e34b}=_0x539ca8;return l[_0x56aa01(0x1aa)](l[_0x56aa01(0x26b)],{'children':[l[_0x56aa01(0x1a2)](_0x56aa01(0x1bf),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x56aa01(0x24f)}),l[_0x56aa01(0x1a2)](g[_0x56aa01(0x202)],{'onClick':()=>_0x43e34b[_0x56aa01(0x253)](),'children':'Stop\x20following'})]});}function X(_0x371c81){var _0x4b4533=_0x2d6643;const {coordinator:_0x36d14a}=_0x371c81;return l['jsxs'](l[_0x4b4533(0x26b)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4b4533(0x1e9)}),l[_0x4b4533(0x1a2)](g[_0x4b4533(0x202)],{'variant':_0x4b4533(0x25b),'onClick':()=>_0x36d14a[_0x4b4533(0x20c)](),'children':'Start\x20following'})]});}function ee(_0x15a0d3){var _0x500390=_0x2d6643;const {coordinator:_0x1692a9}=_0x15a0d3;return l[_0x500390(0x1aa)](l[_0x500390(0x26b)],{'children':[l[_0x500390(0x1a2)](_0x500390(0x1bf),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x500390(0x250)}),l[_0x500390(0x1a2)](g[_0x500390(0x202)],{'variant':_0x500390(0x1a8),'onClick':()=>_0x1692a9['stopPresenting'](),'children':_0x500390(0x21d)})]});}function te(){var _0x49e59e=_0x2d6643;return l[_0x49e59e(0x1a2)](l[_0x49e59e(0x26b)],{'children':_0x49e59e(0x1f9)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x247f50,_0x28e6ce,_0x1f1123,_0x26268d)=>{var _0x2f1042=_0x2d6643;for(var _0x513333=_0x26268d>0x1?void 0x0:_0x26268d?ie(_0x28e6ce,_0x1f1123):_0x28e6ce,_0x1fd506=_0x247f50[_0x2f1042(0x196)]-0x1,_0x124a84;_0x1fd506>=0x0;_0x1fd506--)(_0x124a84=_0x247f50[_0x1fd506])&&(_0x513333=_0x124a84(_0x513333)||_0x513333);return _0x513333;},L=(_0x1f1b6f,_0x1abca2)=>(_0xd4daec,_0x58bac9)=>_0x1abca2(_0xd4daec,_0x58bac9,_0x1f1b6f);exports[_0x2d6643(0x1e1)]=class extends o['Disposable']{constructor(_0x518a4b,_0x3d38dc){var _0x16930b=_0x2d6643;super(),this[_0x16930b(0x251)]=_0x518a4b,this[_0x16930b(0x227)]=_0x3d38dc,this[_0x16930b(0x1e8)]();}['_mountLiveShare'](){var _0x114708=_0x2d6643;this[_0x114708(0x1c9)](this['_uiPartsService']['registerComponent'](p['BuiltInUIPart'][_0x114708(0x1b9)],()=>p[_0x114708(0x1d7)](A,this['_injector'])));}},exports[_0x2d6643(0x1e1)]=ne([L(0x0,o[_0x2d6643(0x26d)](o[_0x2d6643(0x18d)])),L(0x1,p[_0x2d6643(0x1a3)])],exports['DesktopLiveShareController']);var re=Object[_0x2d6643(0x23f)],se=Object['getOwnPropertyDescriptor'],oe=(_0x5ede38,_0x4e8de7,_0x13f6df)=>_0x4e8de7 in _0x5ede38?re(_0x5ede38,_0x4e8de7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13f6df}):_0x5ede38[_0x4e8de7]=_0x13f6df,ae=(_0xa3a2d4,_0x5da295,_0x48cfdd,_0x39c24d)=>{var _0x16a77d=_0x2d6643;for(var _0x4afc7c=_0x39c24d>0x1?void 0x0:_0x39c24d?se(_0x5da295,_0x48cfdd):_0x5da295,_0x3a2a37=_0xa3a2d4[_0x16a77d(0x196)]-0x1,_0x3a09e9;_0x3a2a37>=0x0;_0x3a2a37--)(_0x3a09e9=_0xa3a2d4[_0x3a2a37])&&(_0x4afc7c=_0x3a09e9(_0x4afc7c)||_0x4afc7c);return _0x4afc7c;},N=(_0x133ad2,_0x45f997)=>(_0xe9c12a,_0x46685d)=>_0x45f997(_0xe9c12a,_0x46685d,_0x133ad2),T=(_0x2343a8,_0x38404c,_0x40f5da)=>oe(_0x2343a8,typeof _0x38404c!=_0x2d6643(0x1b6)?_0x38404c+'':_0x38404c,_0x40f5da);const le=_0x2d6643(0x22a);exports[_0x2d6643(0x259)]=class extends o[_0x2d6643(0x20b)]{constructor(_0x3d5ffe=x,_0x2e1300,_0xdc8b18){var _0x4f23c5=_0x2d6643;super(),this[_0x4f23c5(0x204)]=_0x3d5ffe,this[_0x4f23c5(0x251)]=_0x2e1300,this[_0x4f23c5(0x271)]=_0xdc8b18;const {..._0x5b3bca}=o[_0x4f23c5(0x1c7)]({},x,this[_0x4f23c5(0x204)]);this['_configService'][_0x4f23c5(0x191)]($,_0x5b3bca);}[_0x2d6643(0x1e2)](){var _0x26be7b=_0x2d6643;o[_0x26be7b(0x195)](this['_injector'],o[_0x26be7b(0x25d)]([[O],[exports[_0x26be7b(0x213)]],[E],[exports[_0x26be7b(0x1e1)]]],this[_0x26be7b(0x204)][_0x26be7b(0x1b0)])),o[_0x26be7b(0x1c5)](this[_0x26be7b(0x251)],[[E]]);}[_0x2d6643(0x241)](){var _0x3ae531=_0x2d6643;o[_0x3ae531(0x1c5)](this[_0x3ae531(0x251)],[[exports[_0x3ae531(0x1e1)]]]);}},T(exports[_0x2d6643(0x259)],_0x2d6643(0x268),o[_0x2d6643(0x1c8)][_0x2d6643(0x1d8)]),T(exports['UniverLiveSharePlugin'],_0x2d6643(0x270),le),exports[_0x2d6643(0x259)]=ae([o[_0x2d6643(0x235)](m[_0x2d6643(0x207)]),N(0x1,o[_0x2d6643(0x26d)](o[_0x2d6643(0x18d)])),N(0x2,o[_0x2d6643(0x21a)])],exports[_0x2d6643(0x259)]),exports[_0x2d6643(0x20a)]=A,exports['LiveShareService']=O,exports[_0x2d6643(0x1ef)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0xb5a573=_0xa6c5;(function(_0x35bbd9,_0x36c5d6){var _0x2078ed=_0xa6c5,_0x426d25=_0x35bbd9();while(!![]){try{var _0x361a7f=-parseInt(_0x2078ed(0xd0))/0x1+-parseInt(_0x2078ed(0x12e))/0x2+-parseInt(_0x2078ed(0x110))/0x3+-parseInt(_0x2078ed(0x147))/0x4+-parseInt(_0x2078ed(0xc0))/0x5+parseInt(_0x2078ed(0xb2))/0x6+-parseInt(_0x2078ed(0xf5))/0x7*(-parseInt(_0x2078ed(0xc8))/0x8);if(_0x361a7f===_0x36c5d6)break;else _0x426d25['push'](_0x426d25['shift']());}catch(_0x12954e){_0x426d25['push'](_0x426d25['shift']());}}}(_0xa808,0x63b57));var q=Object[_0xb5a573(0x123)],z=(_0x18188e,_0x265afc,_0xc056f9)=>_0x265afc in _0x18188e?q(_0x18188e,_0x265afc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc056f9}):_0x18188e[_0x265afc]=_0xc056f9,d=(_0x2e57e4,_0xf5a1d6,_0x1ac388)=>z(_0x2e57e4,typeof _0xf5a1d6!=_0xb5a573(0x10b)?_0xf5a1d6+'':_0xf5a1d6,_0x1ac388);import{CollaborationSessionService as _0x4060c7,SessionStatus as _0x56066c,UniverCollaborationClientPlugin as _0x4dd30b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x250142,toDisposable as _0x48fd6a,Inject as _0x25c40d,IUniverInstanceService as _0x5844ca,Injector as _0x23997e,IConfigService as _0x94ff8f,ICommandService as _0x1cfa91,RxDisposable as _0x418f74,UniverInstanceType as _0x1101b5,DisposableCollection as _0x4833fc,CommandType as _0x56378a,DependentOn as _0x39b586,Plugin as _0x5e8534,merge as _0x2a990a,registerDependencies as _0x2e1b41,mergeOverrideWithDependencies as _0x502523,touchDependencies as _0x163c27}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x163e4d,InsertSheetMutation as _0xdd5f97}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4cc003,SetScrollOperation as _0x49d044}from'@univerjs/sheets-ui';import{useDependency as _0x17f9c4,useObservable as _0x5e0586,IUIPartsService as _0x277d3f,BuiltInUIPart as _0x3e8244,connectInjector as _0x598d28}from'@univerjs/ui';import{jsx as _0x1500a3,jsxs as _0x41e94b,Fragment as _0x533264}from'react/jsx-runtime';import{Dropdown as _0xe6f284,clsx as _0x4aa598,Button as _0x589980}from'@univerjs/design';import{forwardRef as _0x421cb2,useRef as _0x2b7cde,createElement as _0x576f64,useState as _0x55d438,useEffect as _0x58a87a}from'react';import{CollaborationEvent as _0x3fac8b,parseProtocolChangeset as _0x1368e0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xb5b223,Subject as _0x11092e}from'rxjs';import{takeUntil as _0x5f0151,throttleTime as _0x285441}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x250142{constructor(){var _0x484680=_0xb5a573;super(...arguments),d(this,_0x484680(0xf8),new Set()),d(this,'_reporters',new Set());}[_0xb5a573(0x13c)](_0x173c29){var _0x211cfc=_0xb5a573;return this[_0x211cfc(0xf8)]['add'](_0x173c29),_0x48fd6a(()=>this[_0x211cfc(0xf8)][_0x211cfc(0xea)](_0x173c29));}[_0xb5a573(0x151)](_0x4a5345){var _0x738c4b=_0xb5a573;return this[_0x738c4b(0x114)][_0x738c4b(0x133)](_0x4a5345),_0x48fd6a(()=>this['_reporters'][_0x738c4b(0xea)](_0x4a5345));}[_0xb5a573(0x108)](_0x351785){var _0x56f678=_0xb5a573;return this[_0x56f678(0xf8)][_0x56f678(0x101)](_0x351785);}['getInitialStates'](_0x347fb2){var _0x2c94fb=_0xb5a573;return Array[_0x2c94fb(0xf1)](this[_0x2c94fb(0x114)])['map'](_0x497a73=>_0x497a73(_0x347fb2));}}var Ee=Object[_0xb5a573(0x117)],we=(_0x50ef32,_0x3b657f,_0x20797c,_0x4c0f10)=>{var _0x13e7d2=_0xb5a573;for(var _0x1162e8=_0x4c0f10>0x1?void 0x0:_0x4c0f10?Ee(_0x3b657f,_0x20797c):_0x3b657f,_0x3dfbc1=_0x50ef32[_0x13e7d2(0xe0)]-0x1,_0x142f0a;_0x3dfbc1>=0x0;_0x3dfbc1--)(_0x142f0a=_0x50ef32[_0x3dfbc1])&&(_0x1162e8=_0x142f0a(_0x1162e8)||_0x1162e8);return _0x1162e8;},Ne=(_0x12c63c,_0x4199f3)=>(_0x56921f,_0x39ffdf)=>_0x4199f3(_0x56921f,_0x39ffdf,_0x12c63c);let m=class extends _0x250142{constructor(_0x3308ff){var _0x221a12=_0xb5a573;super(),this[_0x221a12(0xb5)]=_0x3308ff,this['_init']();}[_0xb5a573(0xfb)](){var _0x490701=_0xb5a573;[_0x4cc003['id'],_0x49d044['id'],_0x163e4d['id']][_0x490701(0xb1)](_0x337d20=>{var _0xdc1fd3=_0x490701;this[_0xdc1fd3(0xcc)](this[_0xdc1fd3(0xb5)][_0xdc1fd3(0x13c)](_0x337d20));});}};m=we([Ne(0x0,_0x25c40d(L))],m);function _0xa808(){var _0x5807b0=['default','current','_startPresenting','operations','ONLINE','_commandService','from','_handleOffline','next','_config','47369nWhxvU','onCommandExecuted','attrs','_sharedOperations','evenodd','IDLE','_init','_commandDisposable','idle','_collabSessionService','Stop\x20presenting','getLiveShareCoordinator','has','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','text','none','entries','send','shouldShareOperation','offline','set','symbol','find','replace','1em','xlink:href','1931262ZEyXhd','icon','getMemberID','_univerInstanceService','_reporters','stringify','_stopFollowing','getOwnPropertyDescriptor','Present\x20this\x20document','LIVESHARE_REQUEST_HOST','_beIdle','pluginName','sessionStatus$','getCurrentTypeOfUnit$','Start','SAME_OPERATION_SHARE_INTERVAL','tag','onRendered','currentColor','defineProperty','_unitID','NEW_CHANGESETS','LIVESHARE_TERMINATE','random','getUnitId','_presenter','init','LIVESHARE_OPERATION','className','getValue','1136474boFWxC','LIVESHARE_NEW_HOST','parse','LIVESHARE_FETCH_OPERATIONS','type','add','values','_status$','_handleOnline','path','_fetchOperations','clear','not-following','pipe','registerSharedOperation','stopPresenting','event$','apply','OFFLINE','status$','You\x27re\x20following\x20the\x20presenter','presenting','sheet','params','getOwnPropertySymbols','3038052QuuFwx','extend','_collabSession','indexOf','following','trim','url(#$1','_handleNewHost','subscribe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','stopFollowing','_injector','end','defIds','live-share-icon','createInstance','_startLiveShareCoordinator','forEach','4164768cHwCVy','getTypeOfUnitAdded$','univer-size-4','_liveShareService','NOT_FOLLOWING','_startFollowing','div','registerComponent','string','get','executeCommand','mask','PRESENTING','children','1496690xJmOrM','includes','startFollowing','colorChannel1','_mountLiveShare','override','dispose','hasOwnProperty','3272PNLoQa','UNIVER_SHEET','map','setConfig','disposeWithMe','dispose$','UniverIcon','LiveShareIcon','782582RjgPVS','UNIVER_UNKNOWN','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','button','_handleTerminate','_configService','asObservable','complete','You\x27re\x20presenting\x20the\x20document','concat','substring','displayName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','prototype','_uiPartsService','length','tryStartPresenting','presenter','data','fill','call','defs','_handleNewChangeSets','_entities','_status','delete'];_0xa808=function(){return _0x5807b0;};return _0xa808();}var c=function(){var _0x45c732=_0xb5a573;return c=Object['assign']||function(_0x480694){var _0x2c3130=_0xa6c5;for(var _0x46b696,_0x38c01f=0x1,_0x26edbb=arguments[_0x2c3130(0xe0)];_0x38c01f<_0x26edbb;_0x38c01f++){_0x46b696=arguments[_0x38c01f];for(var _0x7ad333 in _0x46b696)Object[_0x2c3130(0xde)][_0x2c3130(0xc7)]['call'](_0x46b696,_0x7ad333)&&(_0x480694[_0x7ad333]=_0x46b696[_0x7ad333]);}return _0x480694;},c[_0x45c732(0x13f)](this,arguments);},Ce=function(_0x1c87b2,_0x20656e){var _0x2de0ed=_0xb5a573,_0x229df9={};for(var _0x37ce6e in _0x1c87b2)Object[_0x2de0ed(0xde)][_0x2de0ed(0xc7)]['call'](_0x1c87b2,_0x37ce6e)&&_0x20656e['indexOf'](_0x37ce6e)<0x0&&(_0x229df9[_0x37ce6e]=_0x1c87b2[_0x37ce6e]);if(_0x1c87b2!=null&&typeof Object[_0x2de0ed(0x146)]=='function'){for(var _0x548796=0x0,_0x37ce6e=Object[_0x2de0ed(0x146)](_0x1c87b2);_0x548796<_0x37ce6e[_0x2de0ed(0xe0)];_0x548796++)_0x20656e[_0x2de0ed(0x14a)](_0x37ce6e[_0x548796])<0x0&&Object[_0x2de0ed(0xde)]['propertyIsEnumerable'][_0x2de0ed(0xe5)](_0x1c87b2,_0x37ce6e[_0x548796])&&(_0x229df9[_0x37ce6e[_0x548796]]=_0x1c87b2[_0x37ce6e[_0x548796]]);}return _0x229df9;},W=_0x421cb2(function(_0x315424,_0x4193e3){var _0x487faf=_0xb5a573,_0x292d6c=_0x315424[_0x487faf(0x111)],_0x5d4418=_0x315424['id'],_0x4327ba=_0x315424[_0x487faf(0x12c)],_0x129621=_0x315424['extend'],_0x2c3401=Ce(_0x315424,[_0x487faf(0x111),'id',_0x487faf(0x12c),_0x487faf(0x148)]),_0x12471='univerjs-icon\x20univerjs-icon-'[_0x487faf(0xda)](_0x5d4418,'\x20')[_0x487faf(0xda)](_0x4327ba||'')[_0x487faf(0x14c)](),_0x4037ca=_0x2b7cde('_'['concat'](Le()));return Y(_0x292d6c,''[_0x487faf(0xda)](_0x5d4418),{'defIds':_0x292d6c[_0x487faf(0x156)],'idSuffix':_0x4037ca['current']},c({'ref':_0x4193e3,'className':_0x12471},_0x2c3401),_0x129621);});function Y(_0x138ab5,_0x47a833,_0x5919ec,_0x19179b,_0x1941bd){var _0x1b0f16=_0xb5a573;return _0x576f64(_0x138ab5[_0x1b0f16(0x120)],c(c({'key':_0x47a833},De(_0x138ab5,_0x5919ec,_0x1941bd)),_0x19179b),(xe(_0x138ab5,_0x5919ec)[_0x1b0f16(0xbf)]||[])[_0x1b0f16(0xca)](function(_0x2c9d72,_0x2891c9){var _0x4a1a72=_0x1b0f16;return Y(_0x2c9d72,''[_0x4a1a72(0xda)](_0x47a833,'-')[_0x4a1a72(0xda)](_0x138ab5[_0x4a1a72(0x120)],'-')[_0x4a1a72(0xda)](_0x2891c9),_0x5919ec,void 0x0,_0x1941bd);}));}function De(_0x112fcb,_0x25272c,_0x179fa0){var _0x56f206=_0xb5a573,_0x2a40e8=c({},_0x112fcb[_0x56f206(0xf7)]);_0x179fa0!=null&&_0x179fa0['colorChannel1']&&_0x2a40e8[_0x56f206(0xe4)]==='colorChannel1'&&(_0x2a40e8[_0x56f206(0xe4)]=_0x179fa0[_0x56f206(0xc3)]),_0x112fcb[_0x56f206(0x120)]===_0x56f206(0xbd)&&_0x2a40e8['id']&&(_0x2a40e8['id']=_0x2a40e8['id']+_0x25272c[_0x56f206(0x102)]),Object['entries'](_0x2a40e8)[_0x56f206(0xb1)](function(_0x64d72c){var _0xa59c2f=_0x56f206,_0x47cd7e=_0x64d72c[0x0],_0x1175e8=_0x64d72c[0x1];_0x47cd7e===_0xa59c2f(0xbd)&&typeof _0x1175e8==_0xa59c2f(0xba)&&(_0x2a40e8[_0x47cd7e]=_0x1175e8[_0xa59c2f(0x10d)](/url\(#(.*)\)/,_0xa59c2f(0x14d)[_0xa59c2f(0xda)](_0x25272c[_0xa59c2f(0x102)],')')));});var _0x20cff2=_0x25272c[_0x56f206(0x156)];return!_0x20cff2||_0x20cff2[_0x56f206(0xe0)]===0x0||(_0x112fcb['tag']==='use'&&_0x2a40e8['xlink:href']&&(_0x2a40e8[_0x56f206(0x10f)]=_0x2a40e8['xlink:href']+_0x25272c[_0x56f206(0x102)]),Object[_0x56f206(0x106)](_0x2a40e8)[_0x56f206(0xb1)](function(_0x1b422a){var _0x1652ce=_0x56f206,_0x2bab6d=_0x1b422a[0x0],_0x1e03ca=_0x1b422a[0x1];typeof _0x1e03ca==_0x1652ce(0xba)&&(_0x2a40e8[_0x2bab6d]=_0x1e03ca['replace'](/url\(#(.*)\)/,_0x1652ce(0x14d)['concat'](_0x25272c['idSuffix'],')')));})),_0x2a40e8;}function xe(_0x171808,_0x1692ab){var _0x30d4bf=_0xb5a573,_0x3e7e91,_0xbe59f8=_0x1692ab[_0x30d4bf(0x156)];return!_0xbe59f8||_0xbe59f8[_0x30d4bf(0xe0)]===0x0?_0x171808:_0x171808[_0x30d4bf(0x120)]===_0x30d4bf(0xe6)&&(!((_0x3e7e91=_0x171808[_0x30d4bf(0xbf)])===null||_0x3e7e91===void 0x0)&&_0x3e7e91[_0x30d4bf(0xe0)])?c(c({},_0x171808),{'children':_0x171808[_0x30d4bf(0xbf)][_0x30d4bf(0xca)](function(_0x25032a){var _0x509706=_0x30d4bf;return typeof _0x25032a[_0x509706(0xf7)]['id']==_0x509706(0xba)&&_0xbe59f8&&_0xbe59f8[_0x509706(0xc1)](_0x25032a[_0x509706(0xf7)]['id'])?c(c({},_0x25032a),{'attrs':c(c({},_0x25032a[_0x509706(0xf7)]),{'id':_0x25032a[_0x509706(0xf7)]['id']+_0x1692ab['idSuffix']})}):_0x25032a;})}):_0x171808;}function Le(){var _0x37a888=_0xb5a573;return Math[_0x37a888(0x127)]()['toString'](0x24)[_0x37a888(0xdb)](0x2,0x8);}W['displayName']=_0xb5a573(0xce);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb5a573(0x105),'viewBox':'0\x200\x2017\x2017','width':_0xb5a573(0x10e),'height':_0xb5a573(0x10e)},'children':[{'tag':'path','attrs':{'fill':_0xb5a573(0x122),'d':_0xb5a573(0xd2)}},{'tag':_0xb5a573(0x137),'attrs':{'fill':'currentColor','d':_0xb5a573(0x150),'fillRule':_0xb5a573(0xf9),'clipRule':'evenodd'}}]},B=_0x421cb2(function(_0xc9ad31,_0x2c6b35){var _0x17d831=_0xb5a573;return _0x576f64(W,Object['assign']({},_0xc9ad31,{'id':_0x17d831(0x157),'ref':_0x2c6b35,'icon':ye}));});B[_0xb5a573(0xdc)]=_0xb5a573(0xcf);var Re=Object[_0xb5a573(0x117)],Z=(_0x2110f3,_0x17c50c,_0x19e6ee,_0x2c7d89)=>{var _0x4e0b57=_0xb5a573;for(var _0x11a74c=_0x2c7d89>0x1?void 0x0:_0x2c7d89?Re(_0x17c50c,_0x19e6ee):_0x17c50c,_0x55be7c=_0x2110f3[_0x4e0b57(0xe0)]-0x1,_0x17a47a;_0x55be7c>=0x0;_0x55be7c--)(_0x17a47a=_0x2110f3[_0x55be7c])&&(_0x11a74c=_0x17a47a(_0x11a74c)||_0x11a74c);return _0x11a74c;},f=(_0x4ca70f,_0x13a830)=>(_0x2e22c4,_0x2df70b)=>_0x13a830(_0x2e22c4,_0x2df70b,_0x4ca70f);let I=class extends _0x418f74{constructor(_0x422f33,_0x5d774e,_0x3b7835){var _0x230507=_0xb5a573;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x422f33,this[_0x230507(0x154)]=_0x5d774e,this[_0x230507(0xfe)]=_0x3b7835,this[_0x230507(0xfb)]());}async[_0xb5a573(0x100)](_0x489896){var _0x39a0c9=_0xb5a573;return this['_entities'][_0x39a0c9(0x101)](_0x489896)||await this[_0x39a0c9(0xb0)](_0x489896),this['_entities'][_0x39a0c9(0xbb)](_0x489896);}[_0xb5a573(0xfb)](){var _0x5481a4=_0xb5a573;this['_univerInstanceService'][_0x5481a4(0xb3)](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this[_0x5481a4(0xcd)]))[_0x5481a4(0x14f)](async _0x4ded0a=>{var _0x36c111=_0x5481a4;const _0x3f8e70=_0x4ded0a[_0x36c111(0x128)]();this[_0x36c111(0xe8)][_0x36c111(0x101)](_0x3f8e70)||this['_startLiveShareCoordinator'](_0x3f8e70);}),this[_0x5481a4(0x113)]['getTypeOfUnitDisposed$'](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this['dispose$']))[_0x5481a4(0x14f)](_0x17a7ff=>{var _0x280141=_0x5481a4;const _0xc0747c=_0x17a7ff[_0x280141(0x128)](),_0x48fa78=this[_0x280141(0xe8)][_0x280141(0xbb)](_0xc0747c);_0x48fa78==null||_0x48fa78[_0x280141(0xc6)]();});}async[_0xb5a573(0xb0)](_0x593f94){var _0x578c24=_0xb5a573;const _0x58ae28=await this[_0x578c24(0xfe)]['requireSession'](_0x593f94),_0x406e20=this[_0x578c24(0x154)][_0x578c24(0x158)](C,_0x593f94,_0x58ae28);return _0x406e20[_0x578c24(0x12a)](),this[_0x578c24(0xe8)][_0x578c24(0x10a)](_0x593f94,_0x406e20),_0x406e20;}};I=Z([f(0x0,_0x5844ca),f(0x1,_0x25c40d(_0x23997e)),f(0x2,_0x25c40d(_0x4060c7))],I);var h=(_0x533652=>(_0x533652[_0xb5a573(0x140)]='offline',_0x533652[_0xb5a573(0xfa)]=_0xb5a573(0xfd),_0x533652['FOLLOWING']=_0xb5a573(0x14b),_0x533652[_0xb5a573(0xb6)]=_0xb5a573(0x13a),_0x533652[_0xb5a573(0xbe)]=_0xb5a573(0x143),_0x533652))(h||{});const Pe=_0xb5a573(0x11f),Ae=0xc8;let C=class extends _0x418f74{constructor(_0x3ba838,_0x52736f,_0x5448ed,_0x2c5746,_0x29206c){var _0x2f147f=_0xb5a573;super(),d(this,_0x2f147f(0x135),new _0xb5b223(_0x2f147f(0xfd))),d(this,_0x2f147f(0x141),this[_0x2f147f(0x135)][_0x2f147f(0xd7)]()),d(this,'_init',!0x1),d(this,_0x2f147f(0xfc),null),d(this,_0x2f147f(0x129),null),(this[_0x2f147f(0x124)]=_0x3ba838,this['_collabSession']=_0x52736f,this['_configService']=_0x5448ed,this[_0x2f147f(0xb5)]=_0x2c5746,this[_0x2f147f(0xf0)]=_0x29206c);}get[_0xb5a573(0xe9)](){var _0x53991b=_0xb5a573;return this[_0x53991b(0x135)][_0x53991b(0x12d)]();}['dispose'](){var _0x5b7d25=_0xb5a573,_0x3ae378;(_0x3ae378=this['_commandDisposable'])==null||_0x3ae378['dispose'](),this[_0x5b7d25(0x135)][_0x5b7d25(0xf3)](_0x5b7d25(0xfd)),this[_0x5b7d25(0x135)][_0x5b7d25(0xd8)]();}['init'](){var _0x2a58f1=_0xb5a573;this[_0x2a58f1(0xfb)]||(this[_0x2a58f1(0xfb)]=!0x0,this[_0x2a58f1(0x149)][_0x2a58f1(0x11c)]['pipe'](_0x5f0151(this[_0x2a58f1(0xcd)]))[_0x2a58f1(0x14f)](_0x131c71=>{var _0x38ad4c=_0x2a58f1;switch(_0x131c71){case _0x56066c['OFFLINE']:this[_0x38ad4c(0xf2)]();break;case _0x56066c[_0x38ad4c(0xef)]:this[_0x38ad4c(0x136)]();break;}}),this[_0x2a58f1(0x149)][_0x2a58f1(0x13e)]['pipe'](_0x5f0151(this['dispose$']))['subscribe'](_0x11ca74=>{var _0x1b2e5f=_0x2a58f1;const {eventID:_0x33b820}=_0x11ca74;switch(_0x33b820){case _0x3fac8b[_0x1b2e5f(0x12f)]:this[_0x1b2e5f(0x14e)](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x12b)]:this['_handleOperation'](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x126)]:this['_handleTerminate']();break;case _0x3fac8b[_0x1b2e5f(0x125)]:this[_0x1b2e5f(0xe7)](_0x11ca74);break;}}));}[_0xb5a573(0xe1)](){var _0x1ef7a0=_0xb5a573;this[_0x1ef7a0(0x149)][_0x1ef7a0(0x107)]({'eventID':_0x3fac8b[_0x1ef7a0(0x119)],'data':{'unitID':this[_0x1ef7a0(0x124)],'userID':this['_collabSession']['getMemberID']()}},this[_0x1ef7a0(0x124)]);}[_0xb5a573(0x13d)](){var _0x2fb3a2=_0xb5a573;this[_0x2fb3a2(0xe9)]==='presenting'&&(this['_status$'][_0x2fb3a2(0xf3)]('idle'),this['_collabSession'][_0x2fb3a2(0x107)]({'eventID':_0x3fac8b[_0x2fb3a2(0x126)],'data':{'unitID':this[_0x2fb3a2(0x124)]}},this[_0x2fb3a2(0x124)]));}[_0xb5a573(0xc2)](){var _0x1f290d=_0xb5a573;this[_0x1f290d(0xe9)]==='not-following'&&(this['_status$'][_0x1f290d(0xf3)](_0x1f290d(0x14b)),this['_startFollowing']());}[_0xb5a573(0x153)](){var _0x10b5ee=_0xb5a573;this[_0x10b5ee(0xe9)]==='following'&&this[_0x10b5ee(0x116)]();}[_0xb5a573(0x14e)](_0x1d5957){var _0x28289f=_0xb5a573;const {presenter:_0x262bba}=_0x1d5957[_0x28289f(0xe3)],_0x2ae66a=this[_0x28289f(0x149)][_0x28289f(0x112)]();this[_0x28289f(0x129)]=_0x262bba,_0x262bba===_0x2ae66a?(this['_stopFollowing'](),this[_0x28289f(0xed)]()):this[_0x28289f(0xe9)]!=='not-following'&&(this['_stopPresenting'](),this[_0x28289f(0xb7)]());}[_0xb5a573(0x138)](){var _0x38a8be=_0xb5a573;const _0xd07073={'eventID':_0x3fac8b[_0x38a8be(0x131)]};this[_0x38a8be(0x149)][_0x38a8be(0x107)](_0xd07073,this[_0x38a8be(0x124)]);}[_0xb5a573(0xd5)](){var _0x2c4196=_0xb5a573;this[_0x2c4196(0x129)]=null,this[_0x2c4196(0xe9)]!==_0x2c4196(0x143)&&this[_0x2c4196(0x11a)]();}[_0xb5a573(0xe7)](_0x427830){var _0x1d32f5=_0xb5a573;if(this[_0x1d32f5(0xe9)]===_0x1d32f5(0x14b)&&this['_presenter']===_0x427830[_0x1d32f5(0xe3)]['memberID']){const _0x3f249c=_0x1368e0(_0x427830[_0x1d32f5(0xe3)])['mutations']['reverse']()[_0x1d32f5(0x10c)](_0x15ea47=>_0x15ea47['id']===_0xdd5f97['id']);if(_0x3f249c){const _0x482123=_0x3f249c[_0x1d32f5(0x145)]['unitId'],_0x15e3b9=_0x3f249c['params'][_0x1d32f5(0x144)]['id'];setTimeout(()=>{var _0x10a453=_0x1d32f5;this[_0x10a453(0xf0)][_0x10a453(0xbc)](_0x163e4d['id'],{'unitId':_0x482123,'subUnitId':_0x15e3b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x47297=_0xb5a573;this['_status$'][_0x47297(0xf3)](_0x47297(0x143));const _0x254859=new Map(),_0x5a89fe=this['_commandDisposable']=new _0x4833fc();_0x5a89fe[_0x47297(0x133)](_0x48fd6a(()=>{var _0x2f52ca=_0x47297;_0x254859[_0x2f52ca(0xb1)](_0xc62ef6=>_0xc62ef6[_0x2f52ca(0xd8)]()),_0x254859[_0x2f52ca(0x139)]();})),_0x5a89fe['add'](this[_0x47297(0xf0)][_0x47297(0xf6)](_0x2cd2ec=>{var _0x4b51fd=_0x47297,_0x5c7147;if(_0x2cd2ec[_0x4b51fd(0x132)]!==_0x56378a['OPERATION']||!this[_0x4b51fd(0xb5)]['shouldShareOperation'](_0x2cd2ec['id']))return;const {id:_0x5b19d5}=_0x2cd2ec;let _0x395fc6;_0x254859[_0x4b51fd(0x101)](_0x5b19d5)?_0x395fc6=_0x254859[_0x4b51fd(0xbb)](_0x5b19d5):(_0x395fc6=new _0x11092e(),_0x254859['set'](_0x5b19d5,_0x395fc6),_0x395fc6['pipe'](_0x285441((_0x5c7147=this[_0x4b51fd(0xd6)]['getConfig'](Pe))!=null?_0x5c7147:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b51fd(0x14f)](_0x28adf2=>{var _0x2881a3=_0x4b51fd;this[_0x2881a3(0x149)][_0x2881a3(0x107)]({'eventID':_0x3fac8b[_0x2881a3(0x12b)],'data':{'unitID':this[_0x2881a3(0x124)],'operations':{[_0x28adf2['id']]:{'id':_0x28adf2['id'],'params':JSON[_0x2881a3(0x115)](_0x28adf2[_0x2881a3(0x145)])}}}},this['_unitID']);})),_0x395fc6[_0x4b51fd(0xf3)](_0x2cd2ec);})),this[_0x47297(0xb5)]['getInitialStates'](this[_0x47297(0x124)])['forEach'](_0x2f6b1c=>this[_0x47297(0x149)]['send']({'eventID':_0x3fac8b[_0x47297(0x12b)],'data':{'unitID':this[_0x47297(0x124)],'operations':{[_0x2f6b1c['id']]:{'id':_0x2f6b1c['id'],'params':JSON[_0x47297(0x115)](_0x2f6b1c[_0x47297(0x145)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x3908e5=_0xb5a573,_0x1d428e;this['_status$']['next'](_0x3908e5(0xfd)),(_0x1d428e=this['_commandDisposable'])==null||_0x1d428e[_0x3908e5(0xc6)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x5588ba=_0xb5a573,_0x20508e;(_0x20508e=this[_0x5588ba(0xfc)])==null||_0x20508e[_0x5588ba(0xc6)](),this[_0x5588ba(0x135)][_0x5588ba(0xf3)](_0x5588ba(0x14b));}[_0xb5a573(0x11a)](){var _0x21562d=_0xb5a573,_0x4eb6cd;this[_0x21562d(0x135)][_0x21562d(0xf3)]('idle'),(_0x4eb6cd=this[_0x21562d(0xfc)])==null||_0x4eb6cd[_0x21562d(0xc6)](),this['_commandDisposable']=null;}[_0xb5a573(0x116)](){var _0x3de871=_0xb5a573,_0x34178f;this[_0x3de871(0x135)][_0x3de871(0xf3)](_0x3de871(0x13a)),(_0x34178f=this['_commandDisposable'])==null||_0x34178f[_0x3de871(0xc6)]();}['_handleOperation'](_0xcf7b58){var _0x1dab09=_0xb5a573;if([_0x1dab09(0x143),'not-following',_0x1dab09(0x109)][_0x1dab09(0xc1)](this[_0x1dab09(0xe9)])||!_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]||_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]===this[_0x1dab09(0x149)][_0x1dab09(0x112)]())return;this[_0x1dab09(0xe9)]===_0x1dab09(0xfd)&&this[_0x1dab09(0xb7)]();const _0x5b42c2=_0xcf7b58['data'][_0x1dab09(0xee)];Object[_0x1dab09(0x134)](_0x5b42c2)[_0x1dab09(0xb1)](_0xcba08a=>{var _0x23981e=_0x1dab09;this[_0x23981e(0xf0)][_0x23981e(0xbc)](_0xcba08a['id'],_0xcba08a['params']?JSON[_0x23981e(0x130)](_0xcba08a[_0x23981e(0x145)]):null,{'fromCollab':!0x0});});}[_0xb5a573(0xf2)](){var _0x406430=_0xb5a573,_0x4dfac2;this[_0x406430(0x135)][_0x406430(0xf3)](_0x406430(0x109)),(_0x4dfac2=this[_0x406430(0xfc)])==null||_0x4dfac2[_0x406430(0xc6)]();}[_0xb5a573(0x136)](){var _0x4206dc=_0xb5a573;this[_0x4206dc(0x135)]['next'](_0x4206dc(0xfd)),this[_0x4206dc(0x138)]();}};C=Z([f(0x2,_0x94ff8f),f(0x3,_0x25c40d(L)),f(0x4,_0x1cfa91)],C);function Te(){var _0x2a2980=_0xb5a573;const _0x4f2e31=_0x17f9c4(I),_0x55c8c4=_0x17f9c4(_0x5844ca),_0x3ebae7=_0x5e0586(()=>_0x55c8c4[_0x2a2980(0x11d)](_0x1101b5[_0x2a2980(0xc9)]),void 0x0,!0x1,[]),[_0x39f03c,_0xa87f14]=_0x55d438(null),[_0x12800f,_0x10407d]=_0x55d438(h[_0x2a2980(0xfa)]),_0x47e67f=_0x2b7cde(null);return _0x58a87a(()=>(_0x3ebae7&&_0x4f2e31['getLiveShareCoordinator'](_0x3ebae7[_0x2a2980(0x128)]())['then'](_0x4a59db=>{var _0x4d36fc=_0x2a2980;_0xa87f14(_0x4a59db),_0x47e67f[_0x4d36fc(0xec)]=_0x4a59db['status$'][_0x4d36fc(0x14f)](_0x181865=>{_0x10407d(_0x181865);});}),()=>{var _0x4d966e=_0x2a2980,_0x564f4e;(_0x564f4e=_0x47e67f[_0x4d966e(0xec)])==null||_0x564f4e['unsubscribe'](),_0x47e67f['current']=null;}),[_0x3ebae7,_0x4f2e31]),_0x39f03c?_0x1500a3(_0xe6f284,{'align':_0x2a2980(0x155),'disabled':_0x12800f===h[_0x2a2980(0x140)],'className':_0x2a2980(0xdd),'overlay':_0x1500a3($e,{'status':_0x12800f,'coordinator':_0x39f03c}),'children':_0x1500a3(_0x2a2980(0xd4),{'className':_0x4aa598('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x12800f===h[_0x2a2980(0x140)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x12800f!==h[_0x2a2980(0x140)]}),'type':_0x2a2980(0xd4),'children':_0x1500a3(B,{'className':_0x2a2980(0xb4)})})}):null;}function $e(_0xdfac62){var _0x1270cd=_0xb5a573;const {status:_0x183b45,coordinator:_0x21e06d}=_0xdfac62;switch(_0x183b45){case h[_0x1270cd(0xfa)]:return _0x1500a3(Fe,{'coordinator':_0x21e06d});case h['FOLLOWING']:return _0x1500a3(He,{'coordinator':_0x21e06d});case h[_0x1270cd(0xb6)]:return _0x1500a3(je,{'coordinator':_0x21e06d});case h[_0x1270cd(0x140)]:return _0x1500a3(Ve,{});case h[_0x1270cd(0xbe)]:return _0x1500a3(Ue,{'coordinator':_0x21e06d});default:return null;}}function Fe(_0x1bb859){var _0x1b9bf9=_0xb5a573;const {coordinator:_0x12c772}=_0x1bb859;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1b9bf9(0xb8),{'className':_0x1b9bf9(0xd3),'children':_0x1b9bf9(0x118)}),_0x1500a3(_0x589980,{'onClick':()=>_0x12c772[_0x1b9bf9(0xe1)](),'children':_0x1b9bf9(0x11e)})]});}function He(_0x540831){var _0x328b33=_0xb5a573;const {coordinator:_0x409294}=_0x540831;return _0x41e94b(_0x533264,{'children':[_0x1500a3('div',{'className':_0x328b33(0xd3),'children':_0x328b33(0x142)}),_0x1500a3(_0x589980,{'onClick':()=>_0x409294[_0x328b33(0x153)](),'children':'Stop\x20following'})]});}function je(_0x20f8a7){var _0x416e8e=_0xb5a573;const {coordinator:_0x59eb1f}=_0x20f8a7;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x416e8e(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x416e8e(0x152)}),_0x1500a3(_0x589980,{'variant':_0x416e8e(0x104),'onClick':()=>_0x59eb1f[_0x416e8e(0xc2)](),'children':'Start\x20following'})]});}function Ue(_0x4200df){var _0x1658af=_0xb5a573;const {coordinator:_0x14f67d}=_0x4200df;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1658af(0xb8),{'className':_0x1658af(0xd3),'children':_0x1658af(0xd9)}),_0x1500a3(_0x589980,{'variant':_0x1658af(0xeb),'onClick':()=>_0x14f67d['stopPresenting'](),'children':_0x1658af(0xff)})]});}function Ve(){return _0x1500a3(_0x533264,{'children':'You\x27are\x20offline.'});}function _0xa6c5(_0xe340b7,_0xbd862f){var _0xa8080=_0xa808();return _0xa6c5=function(_0xa6c50,_0x348220){_0xa6c50=_0xa6c50-0xb0;var _0x4aa674=_0xa8080[_0xa6c50];return _0x4aa674;},_0xa6c5(_0xe340b7,_0xbd862f);}var Me=Object[_0xb5a573(0x117)],ke=(_0x455b43,_0x27a19f,_0x58878e,_0x47bdef)=>{var _0x367a37=_0xb5a573;for(var _0xa558cb=_0x47bdef>0x1?void 0x0:_0x47bdef?Me(_0x27a19f,_0x58878e):_0x27a19f,_0x1c8da4=_0x455b43[_0x367a37(0xe0)]-0x1,_0x197c33;_0x1c8da4>=0x0;_0x1c8da4--)(_0x197c33=_0x455b43[_0x1c8da4])&&(_0xa558cb=_0x197c33(_0xa558cb)||_0xa558cb);return _0xa558cb;},$=(_0xa3c63d,_0x484f3f)=>(_0x306b7c,_0x5ddb55)=>_0x484f3f(_0x306b7c,_0x5ddb55,_0xa3c63d);let b=class extends _0x250142{constructor(_0x40b474,_0x2463aa){var _0x35f85e=_0xb5a573;super(),this[_0x35f85e(0x154)]=_0x40b474,this[_0x35f85e(0xdf)]=_0x2463aa,this[_0x35f85e(0xc4)]();}[_0xb5a573(0xc4)](){var _0x5c1b6e=_0xb5a573;this[_0x5c1b6e(0xcc)](this[_0x5c1b6e(0xdf)][_0x5c1b6e(0xb9)](_0x3e8244['HEADER_MENU'],()=>_0x598d28(Te,this[_0x5c1b6e(0x154)])));}};b=ke([$(0x0,_0x25c40d(_0x23997e)),$(0x1,_0x277d3f)],b);var Ge=Object[_0xb5a573(0x123)],We=Object[_0xb5a573(0x117)],Ye=(_0x2abda0,_0x2837ea,_0x316045)=>_0x2837ea in _0x2abda0?Ge(_0x2abda0,_0x2837ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x316045}):_0x2abda0[_0x2837ea]=_0x316045,Be=(_0x240feb,_0x2ab6fe,_0x85d27a,_0x30f1ab)=>{var _0x4675b3=_0xb5a573;for(var _0x268cf6=_0x30f1ab>0x1?void 0x0:_0x30f1ab?We(_0x2ab6fe,_0x85d27a):_0x2ab6fe,_0x32311b=_0x240feb[_0x4675b3(0xe0)]-0x1,_0x497a86;_0x32311b>=0x0;_0x32311b--)(_0x497a86=_0x240feb[_0x32311b])&&(_0x268cf6=_0x497a86(_0x268cf6)||_0x268cf6);return _0x268cf6;},F=(_0x4c7355,_0x3671d8)=>(_0x2194b8,_0x216d0e)=>_0x3671d8(_0x2194b8,_0x216d0e,_0x4c7355),J=(_0x26648a,_0x5b1545,_0x4eb0f5)=>Ye(_0x26648a,typeof _0x5b1545!=_0xb5a573(0x10b)?_0x5b1545+'':_0x5b1545,_0x4eb0f5);const Ze=_0xb5a573(0x103);let O=class extends _0x5e8534{constructor(_0x159a96=T,_0xe2846f,_0x488191){var _0x1fbc4f=_0xb5a573;super(),this[_0x1fbc4f(0xf4)]=_0x159a96,this[_0x1fbc4f(0x154)]=_0xe2846f,this[_0x1fbc4f(0xd6)]=_0x488191;const {..._0x278b45}=_0x2a990a({},T,this[_0x1fbc4f(0xf4)]);this['_configService'][_0x1fbc4f(0xcb)](Oe,_0x278b45);}['onStarting'](){var _0x45c172=_0xb5a573;_0x2e1b41(this['_injector'],_0x502523([[L],[I],[m],[b]],this[_0x45c172(0xf4)][_0x45c172(0xc5)])),_0x163c27(this[_0x45c172(0x154)],[[m]]);}[_0xb5a573(0x121)](){var _0x262078=_0xb5a573;_0x163c27(this[_0x262078(0x154)],[[b]]);}};J(O,'type',_0x1101b5[_0xb5a573(0xd1)]),J(O,_0xb5a573(0x11b),Ze),O=Be([_0x39b586(_0x4dd30b),F(0x1,_0x25c40d(_0x23997e)),F(0x2,_0x94ff8f)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x512809=_0x18ad;(function(_0x522e3e,_0x560a95){var _0x163ba2=_0x18ad,_0x36df1f=_0x522e3e();while(!![]){try{var _0x40e2cf=-parseInt(_0x163ba2(0x1e3))/0x1*(parseInt(_0x163ba2(0x24a))/0x2)+-parseInt(_0x163ba2(0x223))/0x3*(parseInt(_0x163ba2(0x219))/0x4)+-parseInt(_0x163ba2(0x22c))/0x5*(parseInt(_0x163ba2(0x1f0))/0x6)+parseInt(_0x163ba2(0x1ba))/0x7+-parseInt(_0x163ba2(0x20e))/0x8*(-parseInt(_0x163ba2(0x1f6))/0x9)+parseInt(_0x163ba2(0x259))/0xa*(-parseInt(_0x163ba2(0x244))/0xb)+-parseInt(_0x163ba2(0x232))/0xc*(-parseInt(_0x163ba2(0x1d9))/0xd);if(_0x40e2cf===_0x560a95)break;else _0x36df1f['push'](_0x36df1f['shift']());}catch(_0x124fa1){_0x36df1f['push'](_0x36df1f['shift']());}}}(_0x61f5,0x67560));var q=Object['defineProperty'],z=(_0x68fa00,_0x26e74e,_0x33a528)=>_0x26e74e in _0x68fa00?q(_0x68fa00,_0x26e74e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33a528}):_0x68fa00[_0x26e74e]=_0x33a528,d=(_0x3b6272,_0xafedd1,_0x209c2f)=>z(_0x3b6272,typeof _0xafedd1!='symbol'?_0xafedd1+'':_0xafedd1,_0x209c2f);import{CollaborationSessionService as _0x1f7d72,SessionStatus as _0x3d4f4e,UniverCollaborationClientPlugin as _0xc07b40}from'@univerjs-pro/collaboration-client';import{Disposable as _0x53ac40,toDisposable as _0x526a75,Inject as _0x30a9c5,IUniverInstanceService as _0xa0d390,Injector as _0x21b692,IConfigService as _0x1caea7,ICommandService as _0x388a0d,RxDisposable as _0x3535cf,UniverInstanceType as _0x12828d,DisposableCollection as _0xd5101f,CommandType as _0x2ec5f9,DependentOn as _0x352ef8,Plugin as _0x2850ce,merge as _0x4a6d52,registerDependencies as _0x1f5629,mergeOverrideWithDependencies as _0x3defda,touchDependencies as _0x397a1f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x390ceb,InsertSheetMutation as _0x10745a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x60fb13,SetScrollOperation as _0x3a2380}from'@univerjs/sheets-ui';function _0x61f5(){var _0xe6bb77=['startFollowing','currentColor','path','51diWzYn','dispose$','_injector','UNIVER_UNKNOWN','univer-size-4','_commandDisposable','has','getValue','end','5MsckrV','pipe','trim','_beIdle','shouldShareOperation','stopFollowing','235344kpwNSU','get','getCurrentTypeOfUnit$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','propertyIsEnumerable','evenodd','hasOwnProperty','url(#$1','FOLLOWING','Stop\x20following','override','_startPresenting','_reporters','unsubscribe','complete','_handleNewHost','_status','IDLE','11SUGuYM','requireSession','delete','svg','0\x200\x2017\x2017','type','2XmIxfA','_stopPresenting','createInstance','current','getTypeOfUnitAdded$','defineProperty','entries','idSuffix','getMemberID','getOwnPropertySymbols','substring','symbol','OPERATION','unitId','sheet','5208270wjeQAS','LiveShareIcon','colorChannel1','_stopFollowing','getInitialStates','next','LIVESHARE_REQUEST_HOST','add','live-share-icon','not-following','random','extend','data','You\x27re\x20presenting\x20the\x20document','Present\x20this\x20document','concat','_presenter','_status$','stringify','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Stop\x20presenting','executeCommand','2063320ArzqQR','UNIVER_SHEET','LIVESHARE_NEW_HOST','xlink:href','_handleOperation','registerSharedOperation','_config','defIds','mask','HEADER_MENU','onRendered','_liveShareService','following','_mountLiveShare','memberID','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','_fetchOperations','_collabSessionService','displayName','icon','_startFollowing','LIVESHARE_TERMINATE','_sharedOperations','values','_unitID','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','idle','_init','715gDfhTV','univerjs-icon\x20univerjs-icon-','registerComponent','_handleOffline','OFFLINE','attrs','_handleTerminate','none','operations','status$','168323nolGAz','offline','_uiPartsService','params','length','_commandService','tag','live-share.config','parse','map','forEach','prototype','send','3601332gNYlWE','string','NOT_FOLLOWING','disposeWithMe','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','2745UEwChE','_configService','button','set','then','getOwnPropertyDescriptor','onStarting','className','_collabSession','subscribe','asObservable','init','1em','presenting','includes','presenter','replace','fill','setConfig','call','_handleOnline','div','getUnitId','http://www.w3.org/2000/svg','16472LfavXE','You\x27are\x20offline.','_univerInstanceService','LIVESHARE_OPERATION','getTypeOfUnitDisposed$','_entities','children','clear','ONLINE','Start','indexOf','67948uYCsQg','getConfig','_startLiveShareCoordinator','NEW_CHANGESETS','sessionStatus$','getLiveShareCoordinator','apply'];_0x61f5=function(){return _0xe6bb77;};return _0x61f5();}import{useDependency as _0x48897c,useObservable as _0x14654c,IUIPartsService as _0x44b862,BuiltInUIPart as _0x8c4c5d,connectInjector as _0x29aac4}from'@univerjs/ui';function _0x18ad(_0x12b7b8,_0x49ea19){var _0x61f580=_0x61f5();return _0x18ad=function(_0x18ad3e,_0x331913){_0x18ad3e=_0x18ad3e-0x1b5;var _0x51d98c=_0x61f580[_0x18ad3e];return _0x51d98c;},_0x18ad(_0x12b7b8,_0x49ea19);}import{jsx as _0xe2c74b,jsxs as _0x1774fb,Fragment as _0x315a05}from'react/jsx-runtime';import{Dropdown as _0x5212b4,clsx as _0x11bf78,Button as _0x461148}from'@univerjs/design';import{forwardRef as _0x23e84d,useRef as _0x9bf347,createElement as _0x2e64a6,useState as _0x5573ca,useEffect as _0x36bfdc}from'react';import{CollaborationEvent as _0x46c596,parseProtocolChangeset as _0x598281}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5d9b35,Subject as _0x2b4590}from'rxjs';import{takeUntil as _0x3267ce,throttleTime as _0x214502}from'rxjs/operators';const Oe=_0x512809(0x1ea),T={};class L extends _0x53ac40{constructor(){var _0x5ccad9=_0x512809;super(...arguments),d(this,_0x5ccad9(0x1d2),new Set()),d(this,_0x5ccad9(0x23e),new Set());}[_0x512809(0x1bf)](_0x504f1d){var _0x44866b=_0x512809;return this[_0x44866b(0x1d2)][_0x44866b(0x260)](_0x504f1d),_0x526a75(()=>this['_sharedOperations'][_0x44866b(0x246)](_0x504f1d));}['registerInitialStateReporter'](_0x4e099c){var _0x52ba54=_0x512809;return this[_0x52ba54(0x23e)][_0x52ba54(0x260)](_0x4e099c),_0x526a75(()=>this[_0x52ba54(0x23e)][_0x52ba54(0x246)](_0x4e099c));}[_0x512809(0x230)](_0xb69326){var _0x1bd05e=_0x512809;return this[_0x1bd05e(0x1d2)][_0x1bd05e(0x229)](_0xb69326);}[_0x512809(0x25d)](_0x154a4a){var _0x520ba7=_0x512809;return Array['from'](this['_reporters'])[_0x520ba7(0x1ec)](_0x27a6e6=>_0x27a6e6(_0x154a4a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x3e12d3,_0x24860c,_0x31faea,_0x100d8c)=>{var _0x126cb1=_0x512809;for(var _0x4432c9=_0x100d8c>0x1?void 0x0:_0x100d8c?Ee(_0x24860c,_0x31faea):_0x24860c,_0x1b71f0=_0x3e12d3[_0x126cb1(0x1e7)]-0x1,_0x11d99f;_0x1b71f0>=0x0;_0x1b71f0--)(_0x11d99f=_0x3e12d3[_0x1b71f0])&&(_0x4432c9=_0x11d99f(_0x4432c9)||_0x4432c9);return _0x4432c9;},Ne=(_0xfaafb,_0x11f4ea)=>(_0x18b947,_0x1d8d0d)=>_0x11f4ea(_0x18b947,_0x1d8d0d,_0xfaafb);let m=class extends _0x53ac40{constructor(_0x1fb8e8){var _0x3c159f=_0x512809;super(),this[_0x3c159f(0x1c5)]=_0x1fb8e8,this[_0x3c159f(0x1d8)]();}[_0x512809(0x1d8)](){var _0x353816=_0x512809;[_0x60fb13['id'],_0x3a2380['id'],_0x390ceb['id']][_0x353816(0x1ed)](_0x562e3c=>{var _0xbab10f=_0x353816;this['disposeWithMe'](this[_0xbab10f(0x1c5)][_0xbab10f(0x1bf)](_0x562e3c));});}};m=we([Ne(0x0,_0x30a9c5(L))],m);var c=function(){var _0x57d78e=_0x512809;return c=Object['assign']||function(_0x4ace82){var _0x67c959=_0x18ad;for(var _0x506049,_0x1b21fb=0x1,_0x4ecbf1=arguments['length'];_0x1b21fb<_0x4ecbf1;_0x1b21fb++){_0x506049=arguments[_0x1b21fb];for(var _0x2cac5b in _0x506049)Object[_0x67c959(0x1ee)][_0x67c959(0x238)][_0x67c959(0x209)](_0x506049,_0x2cac5b)&&(_0x4ace82[_0x2cac5b]=_0x506049[_0x2cac5b]);}return _0x4ace82;},c[_0x57d78e(0x21f)](this,arguments);},Ce=function(_0xaf3767,_0x4d9e48){var _0x179d21=_0x512809,_0x3452ba={};for(var _0x423d8e in _0xaf3767)Object[_0x179d21(0x1ee)][_0x179d21(0x238)][_0x179d21(0x209)](_0xaf3767,_0x423d8e)&&_0x4d9e48[_0x179d21(0x218)](_0x423d8e)<0x0&&(_0x3452ba[_0x423d8e]=_0xaf3767[_0x423d8e]);if(_0xaf3767!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5b4eb3=0x0,_0x423d8e=Object[_0x179d21(0x253)](_0xaf3767);_0x5b4eb3<_0x423d8e[_0x179d21(0x1e7)];_0x5b4eb3++)_0x4d9e48[_0x179d21(0x218)](_0x423d8e[_0x5b4eb3])<0x0&&Object['prototype'][_0x179d21(0x236)][_0x179d21(0x209)](_0xaf3767,_0x423d8e[_0x5b4eb3])&&(_0x3452ba[_0x423d8e[_0x5b4eb3]]=_0xaf3767[_0x423d8e[_0x5b4eb3]]);}return _0x3452ba;},W=_0x23e84d(function(_0x35eeb2,_0x252419){var _0x4c5a89=_0x512809,_0x5365af=_0x35eeb2[_0x4c5a89(0x1cf)],_0x5b1619=_0x35eeb2['id'],_0x436ecf=_0x35eeb2['className'],_0x19012d=_0x35eeb2[_0x4c5a89(0x264)],_0x5c0195=Ce(_0x35eeb2,['icon','id',_0x4c5a89(0x1fd),_0x4c5a89(0x264)]),_0x214dc1=_0x4c5a89(0x1da)[_0x4c5a89(0x268)](_0x5b1619,'\x20')[_0x4c5a89(0x268)](_0x436ecf||'')[_0x4c5a89(0x22e)](),_0x43cd7b=_0x9bf347('_'['concat'](Le()));return Y(_0x5365af,''[_0x4c5a89(0x268)](_0x5b1619),{'defIds':_0x5365af[_0x4c5a89(0x1c1)],'idSuffix':_0x43cd7b[_0x4c5a89(0x24d)]},c({'ref':_0x252419,'className':_0x214dc1},_0x5c0195),_0x19012d);});function Y(_0x2a805b,_0x38fc5b,_0x59ff1f,_0x35f12a,_0x32f42f){var _0x18223e=_0x512809;return _0x2e64a6(_0x2a805b[_0x18223e(0x1e9)],c(c({'key':_0x38fc5b},De(_0x2a805b,_0x59ff1f,_0x32f42f)),_0x35f12a),(xe(_0x2a805b,_0x59ff1f)['children']||[])[_0x18223e(0x1ec)](function(_0x44ab5e,_0x33eab0){var _0x400984=_0x18223e;return Y(_0x44ab5e,''[_0x400984(0x268)](_0x38fc5b,'-')[_0x400984(0x268)](_0x2a805b['tag'],'-')['concat'](_0x33eab0),_0x59ff1f,void 0x0,_0x32f42f);}));}function De(_0x539084,_0x1301e8,_0x3cf017){var _0x232a8e=_0x512809,_0x33cb35=c({},_0x539084['attrs']);_0x3cf017!=null&&_0x3cf017['colorChannel1']&&_0x33cb35[_0x232a8e(0x207)]===_0x232a8e(0x25b)&&(_0x33cb35[_0x232a8e(0x207)]=_0x3cf017[_0x232a8e(0x25b)]),_0x539084['tag']===_0x232a8e(0x1c2)&&_0x33cb35['id']&&(_0x33cb35['id']=_0x33cb35['id']+_0x1301e8['idSuffix']),Object[_0x232a8e(0x250)](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x30ed3f){var _0x2dd39f=_0x232a8e,_0x362da3=_0x30ed3f[0x0],_0x4fc163=_0x30ed3f[0x1];_0x362da3===_0x2dd39f(0x1c2)&&typeof _0x4fc163==_0x2dd39f(0x1f1)&&(_0x33cb35[_0x362da3]=_0x4fc163[_0x2dd39f(0x206)](/url\(#(.*)\)/,_0x2dd39f(0x239)[_0x2dd39f(0x268)](_0x1301e8['idSuffix'],')')));});var _0x1ce168=_0x1301e8[_0x232a8e(0x1c1)];return!_0x1ce168||_0x1ce168[_0x232a8e(0x1e7)]===0x0||(_0x539084[_0x232a8e(0x1e9)]==='use'&&_0x33cb35[_0x232a8e(0x1bd)]&&(_0x33cb35[_0x232a8e(0x1bd)]=_0x33cb35[_0x232a8e(0x1bd)]+_0x1301e8['idSuffix']),Object['entries'](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x219945){var _0x12af84=_0x232a8e,_0x3298ad=_0x219945[0x0],_0x3e59a3=_0x219945[0x1];typeof _0x3e59a3==_0x12af84(0x1f1)&&(_0x33cb35[_0x3298ad]=_0x3e59a3['replace'](/url\(#(.*)\)/,_0x12af84(0x239)[_0x12af84(0x268)](_0x1301e8['idSuffix'],')')));})),_0x33cb35;}function xe(_0x2e02f4,_0x1688b5){var _0x15914f=_0x512809,_0x5600cd,_0x551177=_0x1688b5['defIds'];return!_0x551177||_0x551177['length']===0x0?_0x2e02f4:_0x2e02f4[_0x15914f(0x1e9)]==='defs'&&(!((_0x5600cd=_0x2e02f4['children'])===null||_0x5600cd===void 0x0)&&_0x5600cd[_0x15914f(0x1e7)])?c(c({},_0x2e02f4),{'children':_0x2e02f4[_0x15914f(0x214)][_0x15914f(0x1ec)](function(_0x5394b6){var _0xe30fcb=_0x15914f;return typeof _0x5394b6[_0xe30fcb(0x1de)]['id']=='string'&&_0x551177&&_0x551177[_0xe30fcb(0x204)](_0x5394b6[_0xe30fcb(0x1de)]['id'])?c(c({},_0x5394b6),{'attrs':c(c({},_0x5394b6[_0xe30fcb(0x1de)]),{'id':_0x5394b6[_0xe30fcb(0x1de)]['id']+_0x1688b5[_0xe30fcb(0x251)]})}):_0x5394b6;})}):_0x2e02f4;}function Le(){var _0x559577=_0x512809;return Math[_0x559577(0x263)]()['toString'](0x24)[_0x559577(0x254)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x512809(0x247),'attrs':{'xmlns':_0x512809(0x20d),'fill':_0x512809(0x1e0),'viewBox':_0x512809(0x248),'width':_0x512809(0x202),'height':_0x512809(0x202)},'children':[{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':_0x512809(0x1b7)}},{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x512809(0x237),'clipRule':_0x512809(0x237)}}]},B=_0x23e84d(function(_0x42c166,_0x47842e){var _0x398877=_0x512809;return _0x2e64a6(W,Object['assign']({},_0x42c166,{'id':_0x398877(0x261),'ref':_0x47842e,'icon':ye}));});B[_0x512809(0x1ce)]=_0x512809(0x25a);var Re=Object[_0x512809(0x1fb)],Z=(_0x5a0b21,_0x1b1996,_0x272cbc,_0x17e8e9)=>{var _0x4ee099=_0x512809;for(var _0x455e8e=_0x17e8e9>0x1?void 0x0:_0x17e8e9?Re(_0x1b1996,_0x272cbc):_0x1b1996,_0x7b7713=_0x5a0b21[_0x4ee099(0x1e7)]-0x1,_0x49ff6a;_0x7b7713>=0x0;_0x7b7713--)(_0x49ff6a=_0x5a0b21[_0x7b7713])&&(_0x455e8e=_0x49ff6a(_0x455e8e)||_0x455e8e);return _0x455e8e;},f=(_0x3a694d,_0x42c9d8)=>(_0x22a24b,_0x4d38d2)=>_0x42c9d8(_0x22a24b,_0x4d38d2,_0x3a694d);let I=class extends _0x3535cf{constructor(_0x24d818,_0x32303a,_0x20cb24){var _0x3feaed=_0x512809;super(),d(this,_0x3feaed(0x213),new Map()),(this[_0x3feaed(0x210)]=_0x24d818,this['_injector']=_0x32303a,this[_0x3feaed(0x1cd)]=_0x20cb24,this[_0x3feaed(0x1d8)]());}async[_0x512809(0x21e)](_0x5cdf3c){var _0x394492=_0x512809;return this[_0x394492(0x213)][_0x394492(0x229)](_0x5cdf3c)||await this[_0x394492(0x21b)](_0x5cdf3c),this[_0x394492(0x213)][_0x394492(0x233)](_0x5cdf3c);}['_init'](){var _0x7b76ac=_0x512809;this['_univerInstanceService'][_0x7b76ac(0x24e)](_0x12828d[_0x7b76ac(0x1bb)])['pipe'](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](async _0x316d0a=>{var _0xfdbc99=_0x7b76ac;const _0x560061=_0x316d0a[_0xfdbc99(0x20c)]();this[_0xfdbc99(0x213)][_0xfdbc99(0x229)](_0x560061)||this[_0xfdbc99(0x21b)](_0x560061);}),this[_0x7b76ac(0x210)][_0x7b76ac(0x212)](_0x12828d[_0x7b76ac(0x1bb)])[_0x7b76ac(0x22d)](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](_0x5a06eb=>{var _0xe40c16=_0x7b76ac;const _0x40e484=_0x5a06eb['getUnitId'](),_0x59b270=this['_entities']['get'](_0x40e484);_0x59b270==null||_0x59b270[_0xe40c16(0x1cb)]();});}async[_0x512809(0x21b)](_0x299e38){var _0x109118=_0x512809;const _0x897ae4=await this[_0x109118(0x1cd)][_0x109118(0x245)](_0x299e38),_0x5254d2=this[_0x109118(0x225)][_0x109118(0x24c)](C,_0x299e38,_0x897ae4);return _0x5254d2['init'](),this['_entities'][_0x109118(0x1f9)](_0x299e38,_0x5254d2),_0x5254d2;}};I=Z([f(0x0,_0xa0d390),f(0x1,_0x30a9c5(_0x21b692)),f(0x2,_0x30a9c5(_0x1f7d72))],I);var h=(_0x1bd8c6=>(_0x1bd8c6[_0x512809(0x1dd)]=_0x512809(0x1e4),_0x1bd8c6[_0x512809(0x243)]='idle',_0x1bd8c6[_0x512809(0x23a)]=_0x512809(0x1c6),_0x1bd8c6[_0x512809(0x1f2)]=_0x512809(0x262),_0x1bd8c6['PRESENTING']=_0x512809(0x203),_0x1bd8c6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x3535cf{constructor(_0x107549,_0x41b26f,_0x2ad2f6,_0xb42cdf,_0x46da28){var _0xc8f317=_0x512809;super(),d(this,_0xc8f317(0x1b5),new _0x5d9b35('idle')),d(this,_0xc8f317(0x1e2),this['_status$'][_0xc8f317(0x200)]()),d(this,_0xc8f317(0x1d8),!0x1),d(this,_0xc8f317(0x228),null),d(this,_0xc8f317(0x269),null),(this[_0xc8f317(0x1d4)]=_0x107549,this[_0xc8f317(0x1fe)]=_0x41b26f,this['_configService']=_0x2ad2f6,this[_0xc8f317(0x1c5)]=_0xb42cdf,this[_0xc8f317(0x1e8)]=_0x46da28);}get[_0x512809(0x242)](){var _0x3186b1=_0x512809;return this['_status$'][_0x3186b1(0x22a)]();}[_0x512809(0x1cb)](){var _0x4e97f7=_0x512809,_0x385e41;(_0x385e41=this[_0x4e97f7(0x228)])==null||_0x385e41[_0x4e97f7(0x1cb)](),this['_status$'][_0x4e97f7(0x25e)](_0x4e97f7(0x1d7)),this[_0x4e97f7(0x1b5)][_0x4e97f7(0x240)]();}[_0x512809(0x201)](){var _0x208335=_0x512809;this[_0x208335(0x1d8)]||(this[_0x208335(0x1d8)]=!0x0,this[_0x208335(0x1fe)][_0x208335(0x21d)][_0x208335(0x22d)](_0x3267ce(this[_0x208335(0x224)]))[_0x208335(0x1ff)](_0x3d663e=>{var _0x4bbee4=_0x208335;switch(_0x3d663e){case _0x3d4f4e[_0x4bbee4(0x1dd)]:this[_0x4bbee4(0x1dc)]();break;case _0x3d4f4e[_0x4bbee4(0x216)]:this[_0x4bbee4(0x20a)]();break;}}),this['_collabSession']['event$'][_0x208335(0x22d)](_0x3267ce(this['dispose$']))[_0x208335(0x1ff)](_0x49efb3=>{var _0x320493=_0x208335;const {eventID:_0x1349af}=_0x49efb3;switch(_0x1349af){case _0x46c596[_0x320493(0x1bc)]:this[_0x320493(0x241)](_0x49efb3);break;case _0x46c596[_0x320493(0x211)]:this['_handleOperation'](_0x49efb3);break;case _0x46c596[_0x320493(0x1d1)]:this[_0x320493(0x1df)]();break;case _0x46c596[_0x320493(0x21c)]:this['_handleNewChangeSets'](_0x49efb3);break;}}));}[_0x512809(0x1d6)](){var _0x544832=_0x512809;this[_0x544832(0x1fe)]['send']({'eventID':_0x46c596[_0x544832(0x25f)],'data':{'unitID':this['_unitID'],'userID':this[_0x544832(0x1fe)][_0x544832(0x252)]()}},this[_0x544832(0x1d4)]);}[_0x512809(0x1f4)](){var _0x3f6b43=_0x512809;this[_0x3f6b43(0x242)]===_0x3f6b43(0x203)&&(this['_status$'][_0x3f6b43(0x25e)]('idle'),this[_0x3f6b43(0x1fe)][_0x3f6b43(0x1ef)]({'eventID':_0x46c596[_0x3f6b43(0x1d1)],'data':{'unitID':this['_unitID']}},this[_0x3f6b43(0x1d4)]));}[_0x512809(0x220)](){var _0x362c40=_0x512809;this[_0x362c40(0x242)]==='not-following'&&(this[_0x362c40(0x1b5)]['next'](_0x362c40(0x1c6)),this[_0x362c40(0x1d0)]());}[_0x512809(0x231)](){var _0x165ed4=_0x512809;this['_status']==='following'&&this[_0x165ed4(0x25c)]();}['_handleNewHost'](_0x4ca3d9){var _0x4d07ff=_0x512809;const {presenter:_0x5b399d}=_0x4ca3d9['data'],_0x29677d=this[_0x4d07ff(0x1fe)]['getMemberID']();this[_0x4d07ff(0x269)]=_0x5b399d,_0x5b399d===_0x29677d?(this[_0x4d07ff(0x25c)](),this[_0x4d07ff(0x23d)]()):this['_status']!==_0x4d07ff(0x262)&&(this['_stopPresenting'](),this[_0x4d07ff(0x1d0)]());}[_0x512809(0x1cc)](){var _0xaf2e2f=_0x512809;const _0x2b23b2={'eventID':_0x46c596['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf2e2f(0x1fe)][_0xaf2e2f(0x1ef)](_0x2b23b2,this[_0xaf2e2f(0x1d4)]);}[_0x512809(0x1df)](){var _0x40965e=_0x512809;this[_0x40965e(0x269)]=null,this['_status']!=='presenting'&&this[_0x40965e(0x22f)]();}['_handleNewChangeSets'](_0x48983b){var _0x561f87=_0x512809;if(this[_0x561f87(0x242)]==='following'&&this['_presenter']===_0x48983b[_0x561f87(0x265)][_0x561f87(0x1c8)]){const _0x26cb02=_0x598281(_0x48983b[_0x561f87(0x265)])['mutations']['reverse']()['find'](_0x1941d1=>_0x1941d1['id']===_0x10745a['id']);if(_0x26cb02){const _0x5994b7=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x257)],_0x2ec8d6=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x258)]['id'];setTimeout(()=>{var _0x344599=_0x561f87;this['_commandService'][_0x344599(0x1b9)](_0x390ceb['id'],{'unitId':_0x5994b7,'subUnitId':_0x2ec8d6},{'fromCollab':!0x0});});}}}[_0x512809(0x23d)](){var _0x27c8c2=_0x512809;this[_0x27c8c2(0x1b5)][_0x27c8c2(0x25e)](_0x27c8c2(0x203));const _0x21cdb3=new Map(),_0x22effa=this[_0x27c8c2(0x228)]=new _0xd5101f();_0x22effa[_0x27c8c2(0x260)](_0x526a75(()=>{var _0xe799c4=_0x27c8c2;_0x21cdb3['forEach'](_0x4c3f62=>_0x4c3f62[_0xe799c4(0x240)]()),_0x21cdb3[_0xe799c4(0x215)]();})),_0x22effa[_0x27c8c2(0x260)](this[_0x27c8c2(0x1e8)]['onCommandExecuted'](_0x1c30cc=>{var _0x48e5af=_0x27c8c2,_0x79a571;if(_0x1c30cc[_0x48e5af(0x249)]!==_0x2ec5f9[_0x48e5af(0x256)]||!this[_0x48e5af(0x1c5)][_0x48e5af(0x230)](_0x1c30cc['id']))return;const {id:_0x421485}=_0x1c30cc;let _0x235d41;_0x21cdb3[_0x48e5af(0x229)](_0x421485)?_0x235d41=_0x21cdb3[_0x48e5af(0x233)](_0x421485):(_0x235d41=new _0x2b4590(),_0x21cdb3['set'](_0x421485,_0x235d41),_0x235d41[_0x48e5af(0x22d)](_0x214502((_0x79a571=this[_0x48e5af(0x1f7)][_0x48e5af(0x21a)](Pe))!=null?_0x79a571:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x44163e=>{var _0xcd51c=_0x48e5af;this[_0xcd51c(0x1fe)]['send']({'eventID':_0x46c596[_0xcd51c(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x44163e['id']]:{'id':_0x44163e['id'],'params':JSON[_0xcd51c(0x1b6)](_0x44163e['params'])}}}},this[_0xcd51c(0x1d4)]);})),_0x235d41[_0x48e5af(0x25e)](_0x1c30cc);})),this[_0x27c8c2(0x1c5)][_0x27c8c2(0x25d)](this[_0x27c8c2(0x1d4)])[_0x27c8c2(0x1ed)](_0x5df21c=>this['_collabSession']['send']({'eventID':_0x46c596[_0x27c8c2(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x5df21c['id']]:{'id':_0x5df21c['id'],'params':JSON['stringify'](_0x5df21c[_0x27c8c2(0x1e6)])}}}},this[_0x27c8c2(0x1d4)]));}[_0x512809(0x24b)](){var _0x4388fb=_0x512809,_0x35c0b0;this[_0x4388fb(0x1b5)]['next']('idle'),(_0x35c0b0=this[_0x4388fb(0x228)])==null||_0x35c0b0[_0x4388fb(0x1cb)](),this['_commandDisposable']=null;}[_0x512809(0x1d0)](){var _0x4b39ff=_0x512809,_0x2780a8;(_0x2780a8=this['_commandDisposable'])==null||_0x2780a8['dispose'](),this[_0x4b39ff(0x1b5)][_0x4b39ff(0x25e)](_0x4b39ff(0x1c6));}[_0x512809(0x22f)](){var _0x5e12a1=_0x512809,_0x3f90c5;this[_0x5e12a1(0x1b5)][_0x5e12a1(0x25e)](_0x5e12a1(0x1d7)),(_0x3f90c5=this['_commandDisposable'])==null||_0x3f90c5[_0x5e12a1(0x1cb)](),this[_0x5e12a1(0x228)]=null;}[_0x512809(0x25c)](){var _0x28613f=_0x512809,_0x290e6f;this[_0x28613f(0x1b5)][_0x28613f(0x25e)](_0x28613f(0x262)),(_0x290e6f=this[_0x28613f(0x228)])==null||_0x290e6f[_0x28613f(0x1cb)]();}[_0x512809(0x1be)](_0x1d3ed1){var _0xa81942=_0x512809;if([_0xa81942(0x203),_0xa81942(0x262),_0xa81942(0x1e4)][_0xa81942(0x204)](this[_0xa81942(0x242)])||!_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x205)]||_0x1d3ed1[_0xa81942(0x265)]['presenter']===this['_collabSession'][_0xa81942(0x252)]())return;this[_0xa81942(0x242)]===_0xa81942(0x1d7)&&this['_startFollowing']();const _0x2a9e98=_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x1e1)];Object[_0xa81942(0x1d3)](_0x2a9e98)[_0xa81942(0x1ed)](_0x27a2a8=>{var _0x28aef5=_0xa81942;this[_0x28aef5(0x1e8)]['executeCommand'](_0x27a2a8['id'],_0x27a2a8['params']?JSON[_0x28aef5(0x1eb)](_0x27a2a8['params']):null,{'fromCollab':!0x0});});}[_0x512809(0x1dc)](){var _0x4b31ef=_0x512809,_0x272ce4;this['_status$']['next'](_0x4b31ef(0x1e4)),(_0x272ce4=this[_0x4b31ef(0x228)])==null||_0x272ce4[_0x4b31ef(0x1cb)]();}[_0x512809(0x20a)](){var _0x4de46e=_0x512809;this[_0x4de46e(0x1b5)][_0x4de46e(0x25e)](_0x4de46e(0x1d7)),this[_0x4de46e(0x1cc)]();}};C=Z([f(0x2,_0x1caea7),f(0x3,_0x30a9c5(L)),f(0x4,_0x388a0d)],C);function Te(){var _0x27995f=_0x512809;const _0x39e5c7=_0x48897c(I),_0x64dfc6=_0x48897c(_0xa0d390),_0x19d5b0=_0x14654c(()=>_0x64dfc6[_0x27995f(0x234)](_0x12828d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x48b90d,_0xa6caef]=_0x5573ca(null),[_0x4847db,_0x3b7014]=_0x5573ca(h[_0x27995f(0x243)]),_0x146e05=_0x9bf347(null);return _0x36bfdc(()=>(_0x19d5b0&&_0x39e5c7[_0x27995f(0x21e)](_0x19d5b0[_0x27995f(0x20c)]())[_0x27995f(0x1fa)](_0x416fc2=>{var _0x6b5fc0=_0x27995f;_0xa6caef(_0x416fc2),_0x146e05['current']=_0x416fc2[_0x6b5fc0(0x1e2)]['subscribe'](_0x21de69=>{_0x3b7014(_0x21de69);});}),()=>{var _0x3aabbc=_0x27995f,_0xd6fe6b;(_0xd6fe6b=_0x146e05[_0x3aabbc(0x24d)])==null||_0xd6fe6b[_0x3aabbc(0x23f)](),_0x146e05[_0x3aabbc(0x24d)]=null;}),[_0x19d5b0,_0x39e5c7]),_0x48b90d?_0xe2c74b(_0x5212b4,{'align':_0x27995f(0x22b),'disabled':_0x4847db===h[_0x27995f(0x1dd)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0xe2c74b($e,{'status':_0x4847db,'coordinator':_0x48b90d}),'children':_0xe2c74b('button',{'className':_0x11bf78(_0x27995f(0x235),{'univer-cursor-not-allowed':_0x4847db===h[_0x27995f(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4847db!==h[_0x27995f(0x1dd)]}),'type':_0x27995f(0x1f8),'children':_0xe2c74b(B,{'className':_0x27995f(0x227)})})}):null;}function $e(_0x37bc60){var _0x50aecc=_0x512809;const {status:_0x134775,coordinator:_0x5c5521}=_0x37bc60;switch(_0x134775){case h[_0x50aecc(0x243)]:return _0xe2c74b(Fe,{'coordinator':_0x5c5521});case h['FOLLOWING']:return _0xe2c74b(He,{'coordinator':_0x5c5521});case h[_0x50aecc(0x1f2)]:return _0xe2c74b(je,{'coordinator':_0x5c5521});case h['OFFLINE']:return _0xe2c74b(Ve,{});case h['PRESENTING']:return _0xe2c74b(Ue,{'coordinator':_0x5c5521});default:return null;}}function Fe(_0x1459d6){var _0x5f3141=_0x512809;const {coordinator:_0x3a6f64}=_0x1459d6;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x5f3141(0x20b),{'className':_0x5f3141(0x1ca),'children':_0x5f3141(0x267)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x3a6f64[_0x5f3141(0x1d6)](),'children':_0x5f3141(0x217)})]});}function He(_0x2b5142){var _0x113cba=_0x512809;const {coordinator:_0x4f9b71}=_0x2b5142;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b('div',{'className':_0x113cba(0x1ca),'children':_0x113cba(0x1d5)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x4f9b71[_0x113cba(0x231)](),'children':_0x113cba(0x23b)})]});}function je(_0x1a0356){var _0x4bfadb=_0x512809;const {coordinator:_0x4f49e6}=_0x1a0356;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x4bfadb(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4bfadb(0x1f5)}),_0xe2c74b(_0x461148,{'variant':'text','onClick':()=>_0x4f49e6[_0x4bfadb(0x220)](),'children':'Start\x20following'})]});}function Ue(_0x51ed9b){var _0x62d2a3=_0x512809;const {coordinator:_0x275d7d}=_0x51ed9b;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x62d2a3(0x20b),{'className':_0x62d2a3(0x1ca),'children':_0x62d2a3(0x266)}),_0xe2c74b(_0x461148,{'variant':_0x62d2a3(0x1c9),'onClick':()=>_0x275d7d[_0x62d2a3(0x1f4)](),'children':_0x62d2a3(0x1b8)})]});}function Ve(){var _0x58cca7=_0x512809;return _0xe2c74b(_0x315a05,{'children':_0x58cca7(0x20f)});}var Me=Object[_0x512809(0x1fb)],ke=(_0x502d5f,_0x13bef8,_0x156e38,_0x27d9fb)=>{var _0x1028d4=_0x512809;for(var _0x4276e3=_0x27d9fb>0x1?void 0x0:_0x27d9fb?Me(_0x13bef8,_0x156e38):_0x13bef8,_0x2a9604=_0x502d5f[_0x1028d4(0x1e7)]-0x1,_0x1fe59c;_0x2a9604>=0x0;_0x2a9604--)(_0x1fe59c=_0x502d5f[_0x2a9604])&&(_0x4276e3=_0x1fe59c(_0x4276e3)||_0x4276e3);return _0x4276e3;},$=(_0x33e621,_0x310d72)=>(_0xac02c0,_0x2732a9)=>_0x310d72(_0xac02c0,_0x2732a9,_0x33e621);let b=class extends _0x53ac40{constructor(_0x2d1c5c,_0x3d93ae){var _0x396b49=_0x512809;super(),this[_0x396b49(0x225)]=_0x2d1c5c,this[_0x396b49(0x1e5)]=_0x3d93ae,this[_0x396b49(0x1c7)]();}['_mountLiveShare'](){var _0x440d1b=_0x512809;this[_0x440d1b(0x1f3)](this[_0x440d1b(0x1e5)][_0x440d1b(0x1db)](_0x8c4c5d[_0x440d1b(0x1c3)],()=>_0x29aac4(Te,this['_injector'])));}};b=ke([$(0x0,_0x30a9c5(_0x21b692)),$(0x1,_0x44b862)],b);var Ge=Object[_0x512809(0x24f)],We=Object[_0x512809(0x1fb)],Ye=(_0x479959,_0x1e07c1,_0x5534af)=>_0x1e07c1 in _0x479959?Ge(_0x479959,_0x1e07c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5534af}):_0x479959[_0x1e07c1]=_0x5534af,Be=(_0x39d9de,_0x68c71,_0x3426f4,_0x4e020b)=>{var _0x4b52f8=_0x512809;for(var _0x3ba3da=_0x4e020b>0x1?void 0x0:_0x4e020b?We(_0x68c71,_0x3426f4):_0x68c71,_0x2b549f=_0x39d9de[_0x4b52f8(0x1e7)]-0x1,_0x589753;_0x2b549f>=0x0;_0x2b549f--)(_0x589753=_0x39d9de[_0x2b549f])&&(_0x3ba3da=_0x589753(_0x3ba3da)||_0x3ba3da);return _0x3ba3da;},F=(_0x564057,_0x5f2816)=>(_0x2203aa,_0x2480a2)=>_0x5f2816(_0x2203aa,_0x2480a2,_0x564057),J=(_0x3b23e4,_0x5b5b96,_0x594b84)=>Ye(_0x3b23e4,typeof _0x5b5b96!=_0x512809(0x255)?_0x5b5b96+'':_0x5b5b96,_0x594b84);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2850ce{constructor(_0x40eeaa=T,_0x5ea98d,_0x214f15){var _0x3ba965=_0x512809;super(),this[_0x3ba965(0x1c0)]=_0x40eeaa,this[_0x3ba965(0x225)]=_0x5ea98d,this[_0x3ba965(0x1f7)]=_0x214f15;const {..._0x59a5fd}=_0x4a6d52({},T,this[_0x3ba965(0x1c0)]);this[_0x3ba965(0x1f7)][_0x3ba965(0x208)](Oe,_0x59a5fd);}[_0x512809(0x1fc)](){var _0x25f4fc=_0x512809;_0x1f5629(this[_0x25f4fc(0x225)],_0x3defda([[L],[I],[m],[b]],this[_0x25f4fc(0x1c0)][_0x25f4fc(0x23c)])),_0x397a1f(this['_injector'],[[m]]);}[_0x512809(0x1c4)](){var _0x4f3f56=_0x512809;_0x397a1f(this[_0x4f3f56(0x225)],[[b]]);}};J(O,_0x512809(0x249),_0x12828d[_0x512809(0x226)]),J(O,'pluginName',Ze),O=Be([_0x352ef8(_0xc07b40),F(0x1,_0x30a9c5(_0x21b692)),F(0x2,_0x1caea7)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0xb5a573=_0xa6c5;(function(_0x35bbd9,_0x36c5d6){var _0x2078ed=_0xa6c5,_0x426d25=_0x35bbd9();while(!![]){try{var _0x361a7f=-parseInt(_0x2078ed(0xd0))/0x1+-parseInt(_0x2078ed(0x12e))/0x2+-parseInt(_0x2078ed(0x110))/0x3+-parseInt(_0x2078ed(0x147))/0x4+-parseInt(_0x2078ed(0xc0))/0x5+parseInt(_0x2078ed(0xb2))/0x6+-parseInt(_0x2078ed(0xf5))/0x7*(-parseInt(_0x2078ed(0xc8))/0x8);if(_0x361a7f===_0x36c5d6)break;else _0x426d25['push'](_0x426d25['shift']());}catch(_0x12954e){_0x426d25['push'](_0x426d25['shift']());}}}(_0xa808,0x63b57));var q=Object[_0xb5a573(0x123)],z=(_0x18188e,_0x265afc,_0xc056f9)=>_0x265afc in _0x18188e?q(_0x18188e,_0x265afc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc056f9}):_0x18188e[_0x265afc]=_0xc056f9,d=(_0x2e57e4,_0xf5a1d6,_0x1ac388)=>z(_0x2e57e4,typeof _0xf5a1d6!=_0xb5a573(0x10b)?_0xf5a1d6+'':_0xf5a1d6,_0x1ac388);import{CollaborationSessionService as _0x4060c7,SessionStatus as _0x56066c,UniverCollaborationClientPlugin as _0x4dd30b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x250142,toDisposable as _0x48fd6a,Inject as _0x25c40d,IUniverInstanceService as _0x5844ca,Injector as _0x23997e,IConfigService as _0x94ff8f,ICommandService as _0x1cfa91,RxDisposable as _0x418f74,UniverInstanceType as _0x1101b5,DisposableCollection as _0x4833fc,CommandType as _0x56378a,DependentOn as _0x39b586,Plugin as _0x5e8534,merge as _0x2a990a,registerDependencies as _0x2e1b41,mergeOverrideWithDependencies as _0x502523,touchDependencies as _0x163c27}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x163e4d,InsertSheetMutation as _0xdd5f97}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4cc003,SetScrollOperation as _0x49d044}from'@univerjs/sheets-ui';import{useDependency as _0x17f9c4,useObservable as _0x5e0586,IUIPartsService as _0x277d3f,BuiltInUIPart as _0x3e8244,connectInjector as _0x598d28}from'@univerjs/ui';import{jsx as _0x1500a3,jsxs as _0x41e94b,Fragment as _0x533264}from'react/jsx-runtime';import{Dropdown as _0xe6f284,clsx as _0x4aa598,Button as _0x589980}from'@univerjs/design';import{forwardRef as _0x421cb2,useRef as _0x2b7cde,createElement as _0x576f64,useState as _0x55d438,useEffect as _0x58a87a}from'react';import{CollaborationEvent as _0x3fac8b,parseProtocolChangeset as _0x1368e0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xb5b223,Subject as _0x11092e}from'rxjs';import{takeUntil as _0x5f0151,throttleTime as _0x285441}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x250142{constructor(){var _0x484680=_0xb5a573;super(...arguments),d(this,_0x484680(0xf8),new Set()),d(this,'_reporters',new Set());}[_0xb5a573(0x13c)](_0x173c29){var _0x211cfc=_0xb5a573;return this[_0x211cfc(0xf8)]['add'](_0x173c29),_0x48fd6a(()=>this[_0x211cfc(0xf8)][_0x211cfc(0xea)](_0x173c29));}[_0xb5a573(0x151)](_0x4a5345){var _0x738c4b=_0xb5a573;return this[_0x738c4b(0x114)][_0x738c4b(0x133)](_0x4a5345),_0x48fd6a(()=>this['_reporters'][_0x738c4b(0xea)](_0x4a5345));}[_0xb5a573(0x108)](_0x351785){var _0x56f678=_0xb5a573;return this[_0x56f678(0xf8)][_0x56f678(0x101)](_0x351785);}['getInitialStates'](_0x347fb2){var _0x2c94fb=_0xb5a573;return Array[_0x2c94fb(0xf1)](this[_0x2c94fb(0x114)])['map'](_0x497a73=>_0x497a73(_0x347fb2));}}var Ee=Object[_0xb5a573(0x117)],we=(_0x50ef32,_0x3b657f,_0x20797c,_0x4c0f10)=>{var _0x13e7d2=_0xb5a573;for(var _0x1162e8=_0x4c0f10>0x1?void 0x0:_0x4c0f10?Ee(_0x3b657f,_0x20797c):_0x3b657f,_0x3dfbc1=_0x50ef32[_0x13e7d2(0xe0)]-0x1,_0x142f0a;_0x3dfbc1>=0x0;_0x3dfbc1--)(_0x142f0a=_0x50ef32[_0x3dfbc1])&&(_0x1162e8=_0x142f0a(_0x1162e8)||_0x1162e8);return _0x1162e8;},Ne=(_0x12c63c,_0x4199f3)=>(_0x56921f,_0x39ffdf)=>_0x4199f3(_0x56921f,_0x39ffdf,_0x12c63c);let m=class extends _0x250142{constructor(_0x3308ff){var _0x221a12=_0xb5a573;super(),this[_0x221a12(0xb5)]=_0x3308ff,this['_init']();}[_0xb5a573(0xfb)](){var _0x490701=_0xb5a573;[_0x4cc003['id'],_0x49d044['id'],_0x163e4d['id']][_0x490701(0xb1)](_0x337d20=>{var _0xdc1fd3=_0x490701;this[_0xdc1fd3(0xcc)](this[_0xdc1fd3(0xb5)][_0xdc1fd3(0x13c)](_0x337d20));});}};m=we([Ne(0x0,_0x25c40d(L))],m);function _0xa808(){var _0x5807b0=['default','current','_startPresenting','operations','ONLINE','_commandService','from','_handleOffline','next','_config','47369nWhxvU','onCommandExecuted','attrs','_sharedOperations','evenodd','IDLE','_init','_commandDisposable','idle','_collabSessionService','Stop\x20presenting','getLiveShareCoordinator','has','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','text','none','entries','send','shouldShareOperation','offline','set','symbol','find','replace','1em','xlink:href','1931262ZEyXhd','icon','getMemberID','_univerInstanceService','_reporters','stringify','_stopFollowing','getOwnPropertyDescriptor','Present\x20this\x20document','LIVESHARE_REQUEST_HOST','_beIdle','pluginName','sessionStatus$','getCurrentTypeOfUnit$','Start','SAME_OPERATION_SHARE_INTERVAL','tag','onRendered','currentColor','defineProperty','_unitID','NEW_CHANGESETS','LIVESHARE_TERMINATE','random','getUnitId','_presenter','init','LIVESHARE_OPERATION','className','getValue','1136474boFWxC','LIVESHARE_NEW_HOST','parse','LIVESHARE_FETCH_OPERATIONS','type','add','values','_status$','_handleOnline','path','_fetchOperations','clear','not-following','pipe','registerSharedOperation','stopPresenting','event$','apply','OFFLINE','status$','You\x27re\x20following\x20the\x20presenter','presenting','sheet','params','getOwnPropertySymbols','3038052QuuFwx','extend','_collabSession','indexOf','following','trim','url(#$1','_handleNewHost','subscribe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','stopFollowing','_injector','end','defIds','live-share-icon','createInstance','_startLiveShareCoordinator','forEach','4164768cHwCVy','getTypeOfUnitAdded$','univer-size-4','_liveShareService','NOT_FOLLOWING','_startFollowing','div','registerComponent','string','get','executeCommand','mask','PRESENTING','children','1496690xJmOrM','includes','startFollowing','colorChannel1','_mountLiveShare','override','dispose','hasOwnProperty','3272PNLoQa','UNIVER_SHEET','map','setConfig','disposeWithMe','dispose$','UniverIcon','LiveShareIcon','782582RjgPVS','UNIVER_UNKNOWN','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','button','_handleTerminate','_configService','asObservable','complete','You\x27re\x20presenting\x20the\x20document','concat','substring','displayName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','prototype','_uiPartsService','length','tryStartPresenting','presenter','data','fill','call','defs','_handleNewChangeSets','_entities','_status','delete'];_0xa808=function(){return _0x5807b0;};return _0xa808();}var c=function(){var _0x45c732=_0xb5a573;return c=Object['assign']||function(_0x480694){var _0x2c3130=_0xa6c5;for(var _0x46b696,_0x38c01f=0x1,_0x26edbb=arguments[_0x2c3130(0xe0)];_0x38c01f<_0x26edbb;_0x38c01f++){_0x46b696=arguments[_0x38c01f];for(var _0x7ad333 in _0x46b696)Object[_0x2c3130(0xde)][_0x2c3130(0xc7)]['call'](_0x46b696,_0x7ad333)&&(_0x480694[_0x7ad333]=_0x46b696[_0x7ad333]);}return _0x480694;},c[_0x45c732(0x13f)](this,arguments);},Ce=function(_0x1c87b2,_0x20656e){var _0x2de0ed=_0xb5a573,_0x229df9={};for(var _0x37ce6e in _0x1c87b2)Object[_0x2de0ed(0xde)][_0x2de0ed(0xc7)]['call'](_0x1c87b2,_0x37ce6e)&&_0x20656e['indexOf'](_0x37ce6e)<0x0&&(_0x229df9[_0x37ce6e]=_0x1c87b2[_0x37ce6e]);if(_0x1c87b2!=null&&typeof Object[_0x2de0ed(0x146)]=='function'){for(var _0x548796=0x0,_0x37ce6e=Object[_0x2de0ed(0x146)](_0x1c87b2);_0x548796<_0x37ce6e[_0x2de0ed(0xe0)];_0x548796++)_0x20656e[_0x2de0ed(0x14a)](_0x37ce6e[_0x548796])<0x0&&Object[_0x2de0ed(0xde)]['propertyIsEnumerable'][_0x2de0ed(0xe5)](_0x1c87b2,_0x37ce6e[_0x548796])&&(_0x229df9[_0x37ce6e[_0x548796]]=_0x1c87b2[_0x37ce6e[_0x548796]]);}return _0x229df9;},W=_0x421cb2(function(_0x315424,_0x4193e3){var _0x487faf=_0xb5a573,_0x292d6c=_0x315424[_0x487faf(0x111)],_0x5d4418=_0x315424['id'],_0x4327ba=_0x315424[_0x487faf(0x12c)],_0x129621=_0x315424['extend'],_0x2c3401=Ce(_0x315424,[_0x487faf(0x111),'id',_0x487faf(0x12c),_0x487faf(0x148)]),_0x12471='univerjs-icon\x20univerjs-icon-'[_0x487faf(0xda)](_0x5d4418,'\x20')[_0x487faf(0xda)](_0x4327ba||'')[_0x487faf(0x14c)](),_0x4037ca=_0x2b7cde('_'['concat'](Le()));return Y(_0x292d6c,''[_0x487faf(0xda)](_0x5d4418),{'defIds':_0x292d6c[_0x487faf(0x156)],'idSuffix':_0x4037ca['current']},c({'ref':_0x4193e3,'className':_0x12471},_0x2c3401),_0x129621);});function Y(_0x138ab5,_0x47a833,_0x5919ec,_0x19179b,_0x1941bd){var _0x1b0f16=_0xb5a573;return _0x576f64(_0x138ab5[_0x1b0f16(0x120)],c(c({'key':_0x47a833},De(_0x138ab5,_0x5919ec,_0x1941bd)),_0x19179b),(xe(_0x138ab5,_0x5919ec)[_0x1b0f16(0xbf)]||[])[_0x1b0f16(0xca)](function(_0x2c9d72,_0x2891c9){var _0x4a1a72=_0x1b0f16;return Y(_0x2c9d72,''[_0x4a1a72(0xda)](_0x47a833,'-')[_0x4a1a72(0xda)](_0x138ab5[_0x4a1a72(0x120)],'-')[_0x4a1a72(0xda)](_0x2891c9),_0x5919ec,void 0x0,_0x1941bd);}));}function De(_0x112fcb,_0x25272c,_0x179fa0){var _0x56f206=_0xb5a573,_0x2a40e8=c({},_0x112fcb[_0x56f206(0xf7)]);_0x179fa0!=null&&_0x179fa0['colorChannel1']&&_0x2a40e8[_0x56f206(0xe4)]==='colorChannel1'&&(_0x2a40e8[_0x56f206(0xe4)]=_0x179fa0[_0x56f206(0xc3)]),_0x112fcb[_0x56f206(0x120)]===_0x56f206(0xbd)&&_0x2a40e8['id']&&(_0x2a40e8['id']=_0x2a40e8['id']+_0x25272c[_0x56f206(0x102)]),Object['entries'](_0x2a40e8)[_0x56f206(0xb1)](function(_0x64d72c){var _0xa59c2f=_0x56f206,_0x47cd7e=_0x64d72c[0x0],_0x1175e8=_0x64d72c[0x1];_0x47cd7e===_0xa59c2f(0xbd)&&typeof _0x1175e8==_0xa59c2f(0xba)&&(_0x2a40e8[_0x47cd7e]=_0x1175e8[_0xa59c2f(0x10d)](/url\(#(.*)\)/,_0xa59c2f(0x14d)[_0xa59c2f(0xda)](_0x25272c[_0xa59c2f(0x102)],')')));});var _0x20cff2=_0x25272c[_0x56f206(0x156)];return!_0x20cff2||_0x20cff2[_0x56f206(0xe0)]===0x0||(_0x112fcb['tag']==='use'&&_0x2a40e8['xlink:href']&&(_0x2a40e8[_0x56f206(0x10f)]=_0x2a40e8['xlink:href']+_0x25272c[_0x56f206(0x102)]),Object[_0x56f206(0x106)](_0x2a40e8)[_0x56f206(0xb1)](function(_0x1b422a){var _0x1652ce=_0x56f206,_0x2bab6d=_0x1b422a[0x0],_0x1e03ca=_0x1b422a[0x1];typeof _0x1e03ca==_0x1652ce(0xba)&&(_0x2a40e8[_0x2bab6d]=_0x1e03ca['replace'](/url\(#(.*)\)/,_0x1652ce(0x14d)['concat'](_0x25272c['idSuffix'],')')));})),_0x2a40e8;}function xe(_0x171808,_0x1692ab){var _0x30d4bf=_0xb5a573,_0x3e7e91,_0xbe59f8=_0x1692ab[_0x30d4bf(0x156)];return!_0xbe59f8||_0xbe59f8[_0x30d4bf(0xe0)]===0x0?_0x171808:_0x171808[_0x30d4bf(0x120)]===_0x30d4bf(0xe6)&&(!((_0x3e7e91=_0x171808[_0x30d4bf(0xbf)])===null||_0x3e7e91===void 0x0)&&_0x3e7e91[_0x30d4bf(0xe0)])?c(c({},_0x171808),{'children':_0x171808[_0x30d4bf(0xbf)][_0x30d4bf(0xca)](function(_0x25032a){var _0x509706=_0x30d4bf;return typeof _0x25032a[_0x509706(0xf7)]['id']==_0x509706(0xba)&&_0xbe59f8&&_0xbe59f8[_0x509706(0xc1)](_0x25032a[_0x509706(0xf7)]['id'])?c(c({},_0x25032a),{'attrs':c(c({},_0x25032a[_0x509706(0xf7)]),{'id':_0x25032a[_0x509706(0xf7)]['id']+_0x1692ab['idSuffix']})}):_0x25032a;})}):_0x171808;}function Le(){var _0x37a888=_0xb5a573;return Math[_0x37a888(0x127)]()['toString'](0x24)[_0x37a888(0xdb)](0x2,0x8);}W['displayName']=_0xb5a573(0xce);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb5a573(0x105),'viewBox':'0\x200\x2017\x2017','width':_0xb5a573(0x10e),'height':_0xb5a573(0x10e)},'children':[{'tag':'path','attrs':{'fill':_0xb5a573(0x122),'d':_0xb5a573(0xd2)}},{'tag':_0xb5a573(0x137),'attrs':{'fill':'currentColor','d':_0xb5a573(0x150),'fillRule':_0xb5a573(0xf9),'clipRule':'evenodd'}}]},B=_0x421cb2(function(_0xc9ad31,_0x2c6b35){var _0x17d831=_0xb5a573;return _0x576f64(W,Object['assign']({},_0xc9ad31,{'id':_0x17d831(0x157),'ref':_0x2c6b35,'icon':ye}));});B[_0xb5a573(0xdc)]=_0xb5a573(0xcf);var Re=Object[_0xb5a573(0x117)],Z=(_0x2110f3,_0x17c50c,_0x19e6ee,_0x2c7d89)=>{var _0x4e0b57=_0xb5a573;for(var _0x11a74c=_0x2c7d89>0x1?void 0x0:_0x2c7d89?Re(_0x17c50c,_0x19e6ee):_0x17c50c,_0x55be7c=_0x2110f3[_0x4e0b57(0xe0)]-0x1,_0x17a47a;_0x55be7c>=0x0;_0x55be7c--)(_0x17a47a=_0x2110f3[_0x55be7c])&&(_0x11a74c=_0x17a47a(_0x11a74c)||_0x11a74c);return _0x11a74c;},f=(_0x4ca70f,_0x13a830)=>(_0x2e22c4,_0x2df70b)=>_0x13a830(_0x2e22c4,_0x2df70b,_0x4ca70f);let I=class extends _0x418f74{constructor(_0x422f33,_0x5d774e,_0x3b7835){var _0x230507=_0xb5a573;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x422f33,this[_0x230507(0x154)]=_0x5d774e,this[_0x230507(0xfe)]=_0x3b7835,this[_0x230507(0xfb)]());}async[_0xb5a573(0x100)](_0x489896){var _0x39a0c9=_0xb5a573;return this['_entities'][_0x39a0c9(0x101)](_0x489896)||await this[_0x39a0c9(0xb0)](_0x489896),this['_entities'][_0x39a0c9(0xbb)](_0x489896);}[_0xb5a573(0xfb)](){var _0x5481a4=_0xb5a573;this['_univerInstanceService'][_0x5481a4(0xb3)](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this[_0x5481a4(0xcd)]))[_0x5481a4(0x14f)](async _0x4ded0a=>{var _0x36c111=_0x5481a4;const _0x3f8e70=_0x4ded0a[_0x36c111(0x128)]();this[_0x36c111(0xe8)][_0x36c111(0x101)](_0x3f8e70)||this['_startLiveShareCoordinator'](_0x3f8e70);}),this[_0x5481a4(0x113)]['getTypeOfUnitDisposed$'](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this['dispose$']))[_0x5481a4(0x14f)](_0x17a7ff=>{var _0x280141=_0x5481a4;const _0xc0747c=_0x17a7ff[_0x280141(0x128)](),_0x48fa78=this[_0x280141(0xe8)][_0x280141(0xbb)](_0xc0747c);_0x48fa78==null||_0x48fa78[_0x280141(0xc6)]();});}async[_0xb5a573(0xb0)](_0x593f94){var _0x578c24=_0xb5a573;const _0x58ae28=await this[_0x578c24(0xfe)]['requireSession'](_0x593f94),_0x406e20=this[_0x578c24(0x154)][_0x578c24(0x158)](C,_0x593f94,_0x58ae28);return _0x406e20[_0x578c24(0x12a)](),this[_0x578c24(0xe8)][_0x578c24(0x10a)](_0x593f94,_0x406e20),_0x406e20;}};I=Z([f(0x0,_0x5844ca),f(0x1,_0x25c40d(_0x23997e)),f(0x2,_0x25c40d(_0x4060c7))],I);var h=(_0x533652=>(_0x533652[_0xb5a573(0x140)]='offline',_0x533652[_0xb5a573(0xfa)]=_0xb5a573(0xfd),_0x533652['FOLLOWING']=_0xb5a573(0x14b),_0x533652[_0xb5a573(0xb6)]=_0xb5a573(0x13a),_0x533652[_0xb5a573(0xbe)]=_0xb5a573(0x143),_0x533652))(h||{});const Pe=_0xb5a573(0x11f),Ae=0xc8;let C=class extends _0x418f74{constructor(_0x3ba838,_0x52736f,_0x5448ed,_0x2c5746,_0x29206c){var _0x2f147f=_0xb5a573;super(),d(this,_0x2f147f(0x135),new _0xb5b223(_0x2f147f(0xfd))),d(this,_0x2f147f(0x141),this[_0x2f147f(0x135)][_0x2f147f(0xd7)]()),d(this,'_init',!0x1),d(this,_0x2f147f(0xfc),null),d(this,_0x2f147f(0x129),null),(this[_0x2f147f(0x124)]=_0x3ba838,this['_collabSession']=_0x52736f,this['_configService']=_0x5448ed,this[_0x2f147f(0xb5)]=_0x2c5746,this[_0x2f147f(0xf0)]=_0x29206c);}get[_0xb5a573(0xe9)](){var _0x53991b=_0xb5a573;return this[_0x53991b(0x135)][_0x53991b(0x12d)]();}['dispose'](){var _0x5b7d25=_0xb5a573,_0x3ae378;(_0x3ae378=this['_commandDisposable'])==null||_0x3ae378['dispose'](),this[_0x5b7d25(0x135)][_0x5b7d25(0xf3)](_0x5b7d25(0xfd)),this[_0x5b7d25(0x135)][_0x5b7d25(0xd8)]();}['init'](){var _0x2a58f1=_0xb5a573;this[_0x2a58f1(0xfb)]||(this[_0x2a58f1(0xfb)]=!0x0,this[_0x2a58f1(0x149)][_0x2a58f1(0x11c)]['pipe'](_0x5f0151(this[_0x2a58f1(0xcd)]))[_0x2a58f1(0x14f)](_0x131c71=>{var _0x38ad4c=_0x2a58f1;switch(_0x131c71){case _0x56066c['OFFLINE']:this[_0x38ad4c(0xf2)]();break;case _0x56066c[_0x38ad4c(0xef)]:this[_0x38ad4c(0x136)]();break;}}),this[_0x2a58f1(0x149)][_0x2a58f1(0x13e)]['pipe'](_0x5f0151(this['dispose$']))['subscribe'](_0x11ca74=>{var _0x1b2e5f=_0x2a58f1;const {eventID:_0x33b820}=_0x11ca74;switch(_0x33b820){case _0x3fac8b[_0x1b2e5f(0x12f)]:this[_0x1b2e5f(0x14e)](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x12b)]:this['_handleOperation'](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x126)]:this['_handleTerminate']();break;case _0x3fac8b[_0x1b2e5f(0x125)]:this[_0x1b2e5f(0xe7)](_0x11ca74);break;}}));}[_0xb5a573(0xe1)](){var _0x1ef7a0=_0xb5a573;this[_0x1ef7a0(0x149)][_0x1ef7a0(0x107)]({'eventID':_0x3fac8b[_0x1ef7a0(0x119)],'data':{'unitID':this[_0x1ef7a0(0x124)],'userID':this['_collabSession']['getMemberID']()}},this[_0x1ef7a0(0x124)]);}[_0xb5a573(0x13d)](){var _0x2fb3a2=_0xb5a573;this[_0x2fb3a2(0xe9)]==='presenting'&&(this['_status$'][_0x2fb3a2(0xf3)]('idle'),this['_collabSession'][_0x2fb3a2(0x107)]({'eventID':_0x3fac8b[_0x2fb3a2(0x126)],'data':{'unitID':this[_0x2fb3a2(0x124)]}},this[_0x2fb3a2(0x124)]));}[_0xb5a573(0xc2)](){var _0x1f290d=_0xb5a573;this[_0x1f290d(0xe9)]==='not-following'&&(this['_status$'][_0x1f290d(0xf3)](_0x1f290d(0x14b)),this['_startFollowing']());}[_0xb5a573(0x153)](){var _0x10b5ee=_0xb5a573;this[_0x10b5ee(0xe9)]==='following'&&this[_0x10b5ee(0x116)]();}[_0xb5a573(0x14e)](_0x1d5957){var _0x28289f=_0xb5a573;const {presenter:_0x262bba}=_0x1d5957[_0x28289f(0xe3)],_0x2ae66a=this[_0x28289f(0x149)][_0x28289f(0x112)]();this[_0x28289f(0x129)]=_0x262bba,_0x262bba===_0x2ae66a?(this['_stopFollowing'](),this[_0x28289f(0xed)]()):this[_0x28289f(0xe9)]!=='not-following'&&(this['_stopPresenting'](),this[_0x28289f(0xb7)]());}[_0xb5a573(0x138)](){var _0x38a8be=_0xb5a573;const _0xd07073={'eventID':_0x3fac8b[_0x38a8be(0x131)]};this[_0x38a8be(0x149)][_0x38a8be(0x107)](_0xd07073,this[_0x38a8be(0x124)]);}[_0xb5a573(0xd5)](){var _0x2c4196=_0xb5a573;this[_0x2c4196(0x129)]=null,this[_0x2c4196(0xe9)]!==_0x2c4196(0x143)&&this[_0x2c4196(0x11a)]();}[_0xb5a573(0xe7)](_0x427830){var _0x1d32f5=_0xb5a573;if(this[_0x1d32f5(0xe9)]===_0x1d32f5(0x14b)&&this['_presenter']===_0x427830[_0x1d32f5(0xe3)]['memberID']){const _0x3f249c=_0x1368e0(_0x427830[_0x1d32f5(0xe3)])['mutations']['reverse']()[_0x1d32f5(0x10c)](_0x15ea47=>_0x15ea47['id']===_0xdd5f97['id']);if(_0x3f249c){const _0x482123=_0x3f249c[_0x1d32f5(0x145)]['unitId'],_0x15e3b9=_0x3f249c['params'][_0x1d32f5(0x144)]['id'];setTimeout(()=>{var _0x10a453=_0x1d32f5;this[_0x10a453(0xf0)][_0x10a453(0xbc)](_0x163e4d['id'],{'unitId':_0x482123,'subUnitId':_0x15e3b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x47297=_0xb5a573;this['_status$'][_0x47297(0xf3)](_0x47297(0x143));const _0x254859=new Map(),_0x5a89fe=this['_commandDisposable']=new _0x4833fc();_0x5a89fe[_0x47297(0x133)](_0x48fd6a(()=>{var _0x2f52ca=_0x47297;_0x254859[_0x2f52ca(0xb1)](_0xc62ef6=>_0xc62ef6[_0x2f52ca(0xd8)]()),_0x254859[_0x2f52ca(0x139)]();})),_0x5a89fe['add'](this[_0x47297(0xf0)][_0x47297(0xf6)](_0x2cd2ec=>{var _0x4b51fd=_0x47297,_0x5c7147;if(_0x2cd2ec[_0x4b51fd(0x132)]!==_0x56378a['OPERATION']||!this[_0x4b51fd(0xb5)]['shouldShareOperation'](_0x2cd2ec['id']))return;const {id:_0x5b19d5}=_0x2cd2ec;let _0x395fc6;_0x254859[_0x4b51fd(0x101)](_0x5b19d5)?_0x395fc6=_0x254859[_0x4b51fd(0xbb)](_0x5b19d5):(_0x395fc6=new _0x11092e(),_0x254859['set'](_0x5b19d5,_0x395fc6),_0x395fc6['pipe'](_0x285441((_0x5c7147=this[_0x4b51fd(0xd6)]['getConfig'](Pe))!=null?_0x5c7147:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b51fd(0x14f)](_0x28adf2=>{var _0x2881a3=_0x4b51fd;this[_0x2881a3(0x149)][_0x2881a3(0x107)]({'eventID':_0x3fac8b[_0x2881a3(0x12b)],'data':{'unitID':this[_0x2881a3(0x124)],'operations':{[_0x28adf2['id']]:{'id':_0x28adf2['id'],'params':JSON[_0x2881a3(0x115)](_0x28adf2[_0x2881a3(0x145)])}}}},this['_unitID']);})),_0x395fc6[_0x4b51fd(0xf3)](_0x2cd2ec);})),this[_0x47297(0xb5)]['getInitialStates'](this[_0x47297(0x124)])['forEach'](_0x2f6b1c=>this[_0x47297(0x149)]['send']({'eventID':_0x3fac8b[_0x47297(0x12b)],'data':{'unitID':this[_0x47297(0x124)],'operations':{[_0x2f6b1c['id']]:{'id':_0x2f6b1c['id'],'params':JSON[_0x47297(0x115)](_0x2f6b1c[_0x47297(0x145)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x3908e5=_0xb5a573,_0x1d428e;this['_status$']['next'](_0x3908e5(0xfd)),(_0x1d428e=this['_commandDisposable'])==null||_0x1d428e[_0x3908e5(0xc6)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x5588ba=_0xb5a573,_0x20508e;(_0x20508e=this[_0x5588ba(0xfc)])==null||_0x20508e[_0x5588ba(0xc6)](),this[_0x5588ba(0x135)][_0x5588ba(0xf3)](_0x5588ba(0x14b));}[_0xb5a573(0x11a)](){var _0x21562d=_0xb5a573,_0x4eb6cd;this[_0x21562d(0x135)][_0x21562d(0xf3)]('idle'),(_0x4eb6cd=this[_0x21562d(0xfc)])==null||_0x4eb6cd[_0x21562d(0xc6)](),this['_commandDisposable']=null;}[_0xb5a573(0x116)](){var _0x3de871=_0xb5a573,_0x34178f;this[_0x3de871(0x135)][_0x3de871(0xf3)](_0x3de871(0x13a)),(_0x34178f=this['_commandDisposable'])==null||_0x34178f[_0x3de871(0xc6)]();}['_handleOperation'](_0xcf7b58){var _0x1dab09=_0xb5a573;if([_0x1dab09(0x143),'not-following',_0x1dab09(0x109)][_0x1dab09(0xc1)](this[_0x1dab09(0xe9)])||!_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]||_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]===this[_0x1dab09(0x149)][_0x1dab09(0x112)]())return;this[_0x1dab09(0xe9)]===_0x1dab09(0xfd)&&this[_0x1dab09(0xb7)]();const _0x5b42c2=_0xcf7b58['data'][_0x1dab09(0xee)];Object[_0x1dab09(0x134)](_0x5b42c2)[_0x1dab09(0xb1)](_0xcba08a=>{var _0x23981e=_0x1dab09;this[_0x23981e(0xf0)][_0x23981e(0xbc)](_0xcba08a['id'],_0xcba08a['params']?JSON[_0x23981e(0x130)](_0xcba08a[_0x23981e(0x145)]):null,{'fromCollab':!0x0});});}[_0xb5a573(0xf2)](){var _0x406430=_0xb5a573,_0x4dfac2;this[_0x406430(0x135)][_0x406430(0xf3)](_0x406430(0x109)),(_0x4dfac2=this[_0x406430(0xfc)])==null||_0x4dfac2[_0x406430(0xc6)]();}[_0xb5a573(0x136)](){var _0x4206dc=_0xb5a573;this[_0x4206dc(0x135)]['next'](_0x4206dc(0xfd)),this[_0x4206dc(0x138)]();}};C=Z([f(0x2,_0x94ff8f),f(0x3,_0x25c40d(L)),f(0x4,_0x1cfa91)],C);function Te(){var _0x2a2980=_0xb5a573;const _0x4f2e31=_0x17f9c4(I),_0x55c8c4=_0x17f9c4(_0x5844ca),_0x3ebae7=_0x5e0586(()=>_0x55c8c4[_0x2a2980(0x11d)](_0x1101b5[_0x2a2980(0xc9)]),void 0x0,!0x1,[]),[_0x39f03c,_0xa87f14]=_0x55d438(null),[_0x12800f,_0x10407d]=_0x55d438(h[_0x2a2980(0xfa)]),_0x47e67f=_0x2b7cde(null);return _0x58a87a(()=>(_0x3ebae7&&_0x4f2e31['getLiveShareCoordinator'](_0x3ebae7[_0x2a2980(0x128)]())['then'](_0x4a59db=>{var _0x4d36fc=_0x2a2980;_0xa87f14(_0x4a59db),_0x47e67f[_0x4d36fc(0xec)]=_0x4a59db['status$'][_0x4d36fc(0x14f)](_0x181865=>{_0x10407d(_0x181865);});}),()=>{var _0x4d966e=_0x2a2980,_0x564f4e;(_0x564f4e=_0x47e67f[_0x4d966e(0xec)])==null||_0x564f4e['unsubscribe'](),_0x47e67f['current']=null;}),[_0x3ebae7,_0x4f2e31]),_0x39f03c?_0x1500a3(_0xe6f284,{'align':_0x2a2980(0x155),'disabled':_0x12800f===h[_0x2a2980(0x140)],'className':_0x2a2980(0xdd),'overlay':_0x1500a3($e,{'status':_0x12800f,'coordinator':_0x39f03c}),'children':_0x1500a3(_0x2a2980(0xd4),{'className':_0x4aa598('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x12800f===h[_0x2a2980(0x140)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x12800f!==h[_0x2a2980(0x140)]}),'type':_0x2a2980(0xd4),'children':_0x1500a3(B,{'className':_0x2a2980(0xb4)})})}):null;}function $e(_0xdfac62){var _0x1270cd=_0xb5a573;const {status:_0x183b45,coordinator:_0x21e06d}=_0xdfac62;switch(_0x183b45){case h[_0x1270cd(0xfa)]:return _0x1500a3(Fe,{'coordinator':_0x21e06d});case h['FOLLOWING']:return _0x1500a3(He,{'coordinator':_0x21e06d});case h[_0x1270cd(0xb6)]:return _0x1500a3(je,{'coordinator':_0x21e06d});case h[_0x1270cd(0x140)]:return _0x1500a3(Ve,{});case h[_0x1270cd(0xbe)]:return _0x1500a3(Ue,{'coordinator':_0x21e06d});default:return null;}}function Fe(_0x1bb859){var _0x1b9bf9=_0xb5a573;const {coordinator:_0x12c772}=_0x1bb859;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1b9bf9(0xb8),{'className':_0x1b9bf9(0xd3),'children':_0x1b9bf9(0x118)}),_0x1500a3(_0x589980,{'onClick':()=>_0x12c772[_0x1b9bf9(0xe1)](),'children':_0x1b9bf9(0x11e)})]});}function He(_0x540831){var _0x328b33=_0xb5a573;const {coordinator:_0x409294}=_0x540831;return _0x41e94b(_0x533264,{'children':[_0x1500a3('div',{'className':_0x328b33(0xd3),'children':_0x328b33(0x142)}),_0x1500a3(_0x589980,{'onClick':()=>_0x409294[_0x328b33(0x153)](),'children':'Stop\x20following'})]});}function je(_0x20f8a7){var _0x416e8e=_0xb5a573;const {coordinator:_0x59eb1f}=_0x20f8a7;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x416e8e(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x416e8e(0x152)}),_0x1500a3(_0x589980,{'variant':_0x416e8e(0x104),'onClick':()=>_0x59eb1f[_0x416e8e(0xc2)](),'children':'Start\x20following'})]});}function Ue(_0x4200df){var _0x1658af=_0xb5a573;const {coordinator:_0x14f67d}=_0x4200df;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1658af(0xb8),{'className':_0x1658af(0xd3),'children':_0x1658af(0xd9)}),_0x1500a3(_0x589980,{'variant':_0x1658af(0xeb),'onClick':()=>_0x14f67d['stopPresenting'](),'children':_0x1658af(0xff)})]});}function Ve(){return _0x1500a3(_0x533264,{'children':'You\x27are\x20offline.'});}function _0xa6c5(_0xe340b7,_0xbd862f){var _0xa8080=_0xa808();return _0xa6c5=function(_0xa6c50,_0x348220){_0xa6c50=_0xa6c50-0xb0;var _0x4aa674=_0xa8080[_0xa6c50];return _0x4aa674;},_0xa6c5(_0xe340b7,_0xbd862f);}var Me=Object[_0xb5a573(0x117)],ke=(_0x455b43,_0x27a19f,_0x58878e,_0x47bdef)=>{var _0x367a37=_0xb5a573;for(var _0xa558cb=_0x47bdef>0x1?void 0x0:_0x47bdef?Me(_0x27a19f,_0x58878e):_0x27a19f,_0x1c8da4=_0x455b43[_0x367a37(0xe0)]-0x1,_0x197c33;_0x1c8da4>=0x0;_0x1c8da4--)(_0x197c33=_0x455b43[_0x1c8da4])&&(_0xa558cb=_0x197c33(_0xa558cb)||_0xa558cb);return _0xa558cb;},$=(_0xa3c63d,_0x484f3f)=>(_0x306b7c,_0x5ddb55)=>_0x484f3f(_0x306b7c,_0x5ddb55,_0xa3c63d);let b=class extends _0x250142{constructor(_0x40b474,_0x2463aa){var _0x35f85e=_0xb5a573;super(),this[_0x35f85e(0x154)]=_0x40b474,this[_0x35f85e(0xdf)]=_0x2463aa,this[_0x35f85e(0xc4)]();}[_0xb5a573(0xc4)](){var _0x5c1b6e=_0xb5a573;this[_0x5c1b6e(0xcc)](this[_0x5c1b6e(0xdf)][_0x5c1b6e(0xb9)](_0x3e8244['HEADER_MENU'],()=>_0x598d28(Te,this[_0x5c1b6e(0x154)])));}};b=ke([$(0x0,_0x25c40d(_0x23997e)),$(0x1,_0x277d3f)],b);var Ge=Object[_0xb5a573(0x123)],We=Object[_0xb5a573(0x117)],Ye=(_0x2abda0,_0x2837ea,_0x316045)=>_0x2837ea in _0x2abda0?Ge(_0x2abda0,_0x2837ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x316045}):_0x2abda0[_0x2837ea]=_0x316045,Be=(_0x240feb,_0x2ab6fe,_0x85d27a,_0x30f1ab)=>{var _0x4675b3=_0xb5a573;for(var _0x268cf6=_0x30f1ab>0x1?void 0x0:_0x30f1ab?We(_0x2ab6fe,_0x85d27a):_0x2ab6fe,_0x32311b=_0x240feb[_0x4675b3(0xe0)]-0x1,_0x497a86;_0x32311b>=0x0;_0x32311b--)(_0x497a86=_0x240feb[_0x32311b])&&(_0x268cf6=_0x497a86(_0x268cf6)||_0x268cf6);return _0x268cf6;},F=(_0x4c7355,_0x3671d8)=>(_0x2194b8,_0x216d0e)=>_0x3671d8(_0x2194b8,_0x216d0e,_0x4c7355),J=(_0x26648a,_0x5b1545,_0x4eb0f5)=>Ye(_0x26648a,typeof _0x5b1545!=_0xb5a573(0x10b)?_0x5b1545+'':_0x5b1545,_0x4eb0f5);const Ze=_0xb5a573(0x103);let O=class extends _0x5e8534{constructor(_0x159a96=T,_0xe2846f,_0x488191){var _0x1fbc4f=_0xb5a573;super(),this[_0x1fbc4f(0xf4)]=_0x159a96,this[_0x1fbc4f(0x154)]=_0xe2846f,this[_0x1fbc4f(0xd6)]=_0x488191;const {..._0x278b45}=_0x2a990a({},T,this[_0x1fbc4f(0xf4)]);this['_configService'][_0x1fbc4f(0xcb)](Oe,_0x278b45);}['onStarting'](){var _0x45c172=_0xb5a573;_0x2e1b41(this['_injector'],_0x502523([[L],[I],[m],[b]],this[_0x45c172(0xf4)][_0x45c172(0xc5)])),_0x163c27(this[_0x45c172(0x154)],[[m]]);}[_0xb5a573(0x121)](){var _0x262078=_0xb5a573;_0x163c27(this[_0x262078(0x154)],[[b]]);}};J(O,'type',_0x1101b5[_0xb5a573(0xd1)]),J(O,_0xb5a573(0x11b),Ze),O=Be([_0x39b586(_0x4dd30b),F(0x1,_0x25c40d(_0x23997e)),F(0x2,_0x94ff8f)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x512809=_0x18ad;(function(_0x522e3e,_0x560a95){var _0x163ba2=_0x18ad,_0x36df1f=_0x522e3e();while(!![]){try{var _0x40e2cf=-parseInt(_0x163ba2(0x1e3))/0x1*(parseInt(_0x163ba2(0x24a))/0x2)+-parseInt(_0x163ba2(0x223))/0x3*(parseInt(_0x163ba2(0x219))/0x4)+-parseInt(_0x163ba2(0x22c))/0x5*(parseInt(_0x163ba2(0x1f0))/0x6)+parseInt(_0x163ba2(0x1ba))/0x7+-parseInt(_0x163ba2(0x20e))/0x8*(-parseInt(_0x163ba2(0x1f6))/0x9)+parseInt(_0x163ba2(0x259))/0xa*(-parseInt(_0x163ba2(0x244))/0xb)+-parseInt(_0x163ba2(0x232))/0xc*(-parseInt(_0x163ba2(0x1d9))/0xd);if(_0x40e2cf===_0x560a95)break;else _0x36df1f['push'](_0x36df1f['shift']());}catch(_0x124fa1){_0x36df1f['push'](_0x36df1f['shift']());}}}(_0x61f5,0x67560));var q=Object['defineProperty'],z=(_0x68fa00,_0x26e74e,_0x33a528)=>_0x26e74e in _0x68fa00?q(_0x68fa00,_0x26e74e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33a528}):_0x68fa00[_0x26e74e]=_0x33a528,d=(_0x3b6272,_0xafedd1,_0x209c2f)=>z(_0x3b6272,typeof _0xafedd1!='symbol'?_0xafedd1+'':_0xafedd1,_0x209c2f);import{CollaborationSessionService as _0x1f7d72,SessionStatus as _0x3d4f4e,UniverCollaborationClientPlugin as _0xc07b40}from'@univerjs-pro/collaboration-client';import{Disposable as _0x53ac40,toDisposable as _0x526a75,Inject as _0x30a9c5,IUniverInstanceService as _0xa0d390,Injector as _0x21b692,IConfigService as _0x1caea7,ICommandService as _0x388a0d,RxDisposable as _0x3535cf,UniverInstanceType as _0x12828d,DisposableCollection as _0xd5101f,CommandType as _0x2ec5f9,DependentOn as _0x352ef8,Plugin as _0x2850ce,merge as _0x4a6d52,registerDependencies as _0x1f5629,mergeOverrideWithDependencies as _0x3defda,touchDependencies as _0x397a1f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x390ceb,InsertSheetMutation as _0x10745a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x60fb13,SetScrollOperation as _0x3a2380}from'@univerjs/sheets-ui';function _0x61f5(){var _0xe6bb77=['startFollowing','currentColor','path','51diWzYn','dispose$','_injector','UNIVER_UNKNOWN','univer-size-4','_commandDisposable','has','getValue','end','5MsckrV','pipe','trim','_beIdle','shouldShareOperation','stopFollowing','235344kpwNSU','get','getCurrentTypeOfUnit$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','propertyIsEnumerable','evenodd','hasOwnProperty','url(#$1','FOLLOWING','Stop\x20following','override','_startPresenting','_reporters','unsubscribe','complete','_handleNewHost','_status','IDLE','11SUGuYM','requireSession','delete','svg','0\x200\x2017\x2017','type','2XmIxfA','_stopPresenting','createInstance','current','getTypeOfUnitAdded$','defineProperty','entries','idSuffix','getMemberID','getOwnPropertySymbols','substring','symbol','OPERATION','unitId','sheet','5208270wjeQAS','LiveShareIcon','colorChannel1','_stopFollowing','getInitialStates','next','LIVESHARE_REQUEST_HOST','add','live-share-icon','not-following','random','extend','data','You\x27re\x20presenting\x20the\x20document','Present\x20this\x20document','concat','_presenter','_status$','stringify','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Stop\x20presenting','executeCommand','2063320ArzqQR','UNIVER_SHEET','LIVESHARE_NEW_HOST','xlink:href','_handleOperation','registerSharedOperation','_config','defIds','mask','HEADER_MENU','onRendered','_liveShareService','following','_mountLiveShare','memberID','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','_fetchOperations','_collabSessionService','displayName','icon','_startFollowing','LIVESHARE_TERMINATE','_sharedOperations','values','_unitID','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','idle','_init','715gDfhTV','univerjs-icon\x20univerjs-icon-','registerComponent','_handleOffline','OFFLINE','attrs','_handleTerminate','none','operations','status$','168323nolGAz','offline','_uiPartsService','params','length','_commandService','tag','live-share.config','parse','map','forEach','prototype','send','3601332gNYlWE','string','NOT_FOLLOWING','disposeWithMe','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','2745UEwChE','_configService','button','set','then','getOwnPropertyDescriptor','onStarting','className','_collabSession','subscribe','asObservable','init','1em','presenting','includes','presenter','replace','fill','setConfig','call','_handleOnline','div','getUnitId','http://www.w3.org/2000/svg','16472LfavXE','You\x27are\x20offline.','_univerInstanceService','LIVESHARE_OPERATION','getTypeOfUnitDisposed$','_entities','children','clear','ONLINE','Start','indexOf','67948uYCsQg','getConfig','_startLiveShareCoordinator','NEW_CHANGESETS','sessionStatus$','getLiveShareCoordinator','apply'];_0x61f5=function(){return _0xe6bb77;};return _0x61f5();}import{useDependency as _0x48897c,useObservable as _0x14654c,IUIPartsService as _0x44b862,BuiltInUIPart as _0x8c4c5d,connectInjector as _0x29aac4}from'@univerjs/ui';function _0x18ad(_0x12b7b8,_0x49ea19){var _0x61f580=_0x61f5();return _0x18ad=function(_0x18ad3e,_0x331913){_0x18ad3e=_0x18ad3e-0x1b5;var _0x51d98c=_0x61f580[_0x18ad3e];return _0x51d98c;},_0x18ad(_0x12b7b8,_0x49ea19);}import{jsx as _0xe2c74b,jsxs as _0x1774fb,Fragment as _0x315a05}from'react/jsx-runtime';import{Dropdown as _0x5212b4,clsx as _0x11bf78,Button as _0x461148}from'@univerjs/design';import{forwardRef as _0x23e84d,useRef as _0x9bf347,createElement as _0x2e64a6,useState as _0x5573ca,useEffect as _0x36bfdc}from'react';import{CollaborationEvent as _0x46c596,parseProtocolChangeset as _0x598281}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5d9b35,Subject as _0x2b4590}from'rxjs';import{takeUntil as _0x3267ce,throttleTime as _0x214502}from'rxjs/operators';const Oe=_0x512809(0x1ea),T={};class L extends _0x53ac40{constructor(){var _0x5ccad9=_0x512809;super(...arguments),d(this,_0x5ccad9(0x1d2),new Set()),d(this,_0x5ccad9(0x23e),new Set());}[_0x512809(0x1bf)](_0x504f1d){var _0x44866b=_0x512809;return this[_0x44866b(0x1d2)][_0x44866b(0x260)](_0x504f1d),_0x526a75(()=>this['_sharedOperations'][_0x44866b(0x246)](_0x504f1d));}['registerInitialStateReporter'](_0x4e099c){var _0x52ba54=_0x512809;return this[_0x52ba54(0x23e)][_0x52ba54(0x260)](_0x4e099c),_0x526a75(()=>this[_0x52ba54(0x23e)][_0x52ba54(0x246)](_0x4e099c));}[_0x512809(0x230)](_0xb69326){var _0x1bd05e=_0x512809;return this[_0x1bd05e(0x1d2)][_0x1bd05e(0x229)](_0xb69326);}[_0x512809(0x25d)](_0x154a4a){var _0x520ba7=_0x512809;return Array['from'](this['_reporters'])[_0x520ba7(0x1ec)](_0x27a6e6=>_0x27a6e6(_0x154a4a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x3e12d3,_0x24860c,_0x31faea,_0x100d8c)=>{var _0x126cb1=_0x512809;for(var _0x4432c9=_0x100d8c>0x1?void 0x0:_0x100d8c?Ee(_0x24860c,_0x31faea):_0x24860c,_0x1b71f0=_0x3e12d3[_0x126cb1(0x1e7)]-0x1,_0x11d99f;_0x1b71f0>=0x0;_0x1b71f0--)(_0x11d99f=_0x3e12d3[_0x1b71f0])&&(_0x4432c9=_0x11d99f(_0x4432c9)||_0x4432c9);return _0x4432c9;},Ne=(_0xfaafb,_0x11f4ea)=>(_0x18b947,_0x1d8d0d)=>_0x11f4ea(_0x18b947,_0x1d8d0d,_0xfaafb);let m=class extends _0x53ac40{constructor(_0x1fb8e8){var _0x3c159f=_0x512809;super(),this[_0x3c159f(0x1c5)]=_0x1fb8e8,this[_0x3c159f(0x1d8)]();}[_0x512809(0x1d8)](){var _0x353816=_0x512809;[_0x60fb13['id'],_0x3a2380['id'],_0x390ceb['id']][_0x353816(0x1ed)](_0x562e3c=>{var _0xbab10f=_0x353816;this['disposeWithMe'](this[_0xbab10f(0x1c5)][_0xbab10f(0x1bf)](_0x562e3c));});}};m=we([Ne(0x0,_0x30a9c5(L))],m);var c=function(){var _0x57d78e=_0x512809;return c=Object['assign']||function(_0x4ace82){var _0x67c959=_0x18ad;for(var _0x506049,_0x1b21fb=0x1,_0x4ecbf1=arguments['length'];_0x1b21fb<_0x4ecbf1;_0x1b21fb++){_0x506049=arguments[_0x1b21fb];for(var _0x2cac5b in _0x506049)Object[_0x67c959(0x1ee)][_0x67c959(0x238)][_0x67c959(0x209)](_0x506049,_0x2cac5b)&&(_0x4ace82[_0x2cac5b]=_0x506049[_0x2cac5b]);}return _0x4ace82;},c[_0x57d78e(0x21f)](this,arguments);},Ce=function(_0xaf3767,_0x4d9e48){var _0x179d21=_0x512809,_0x3452ba={};for(var _0x423d8e in _0xaf3767)Object[_0x179d21(0x1ee)][_0x179d21(0x238)][_0x179d21(0x209)](_0xaf3767,_0x423d8e)&&_0x4d9e48[_0x179d21(0x218)](_0x423d8e)<0x0&&(_0x3452ba[_0x423d8e]=_0xaf3767[_0x423d8e]);if(_0xaf3767!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5b4eb3=0x0,_0x423d8e=Object[_0x179d21(0x253)](_0xaf3767);_0x5b4eb3<_0x423d8e[_0x179d21(0x1e7)];_0x5b4eb3++)_0x4d9e48[_0x179d21(0x218)](_0x423d8e[_0x5b4eb3])<0x0&&Object['prototype'][_0x179d21(0x236)][_0x179d21(0x209)](_0xaf3767,_0x423d8e[_0x5b4eb3])&&(_0x3452ba[_0x423d8e[_0x5b4eb3]]=_0xaf3767[_0x423d8e[_0x5b4eb3]]);}return _0x3452ba;},W=_0x23e84d(function(_0x35eeb2,_0x252419){var _0x4c5a89=_0x512809,_0x5365af=_0x35eeb2[_0x4c5a89(0x1cf)],_0x5b1619=_0x35eeb2['id'],_0x436ecf=_0x35eeb2['className'],_0x19012d=_0x35eeb2[_0x4c5a89(0x264)],_0x5c0195=Ce(_0x35eeb2,['icon','id',_0x4c5a89(0x1fd),_0x4c5a89(0x264)]),_0x214dc1=_0x4c5a89(0x1da)[_0x4c5a89(0x268)](_0x5b1619,'\x20')[_0x4c5a89(0x268)](_0x436ecf||'')[_0x4c5a89(0x22e)](),_0x43cd7b=_0x9bf347('_'['concat'](Le()));return Y(_0x5365af,''[_0x4c5a89(0x268)](_0x5b1619),{'defIds':_0x5365af[_0x4c5a89(0x1c1)],'idSuffix':_0x43cd7b[_0x4c5a89(0x24d)]},c({'ref':_0x252419,'className':_0x214dc1},_0x5c0195),_0x19012d);});function Y(_0x2a805b,_0x38fc5b,_0x59ff1f,_0x35f12a,_0x32f42f){var _0x18223e=_0x512809;return _0x2e64a6(_0x2a805b[_0x18223e(0x1e9)],c(c({'key':_0x38fc5b},De(_0x2a805b,_0x59ff1f,_0x32f42f)),_0x35f12a),(xe(_0x2a805b,_0x59ff1f)['children']||[])[_0x18223e(0x1ec)](function(_0x44ab5e,_0x33eab0){var _0x400984=_0x18223e;return Y(_0x44ab5e,''[_0x400984(0x268)](_0x38fc5b,'-')[_0x400984(0x268)](_0x2a805b['tag'],'-')['concat'](_0x33eab0),_0x59ff1f,void 0x0,_0x32f42f);}));}function De(_0x539084,_0x1301e8,_0x3cf017){var _0x232a8e=_0x512809,_0x33cb35=c({},_0x539084['attrs']);_0x3cf017!=null&&_0x3cf017['colorChannel1']&&_0x33cb35[_0x232a8e(0x207)]===_0x232a8e(0x25b)&&(_0x33cb35[_0x232a8e(0x207)]=_0x3cf017[_0x232a8e(0x25b)]),_0x539084['tag']===_0x232a8e(0x1c2)&&_0x33cb35['id']&&(_0x33cb35['id']=_0x33cb35['id']+_0x1301e8['idSuffix']),Object[_0x232a8e(0x250)](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x30ed3f){var _0x2dd39f=_0x232a8e,_0x362da3=_0x30ed3f[0x0],_0x4fc163=_0x30ed3f[0x1];_0x362da3===_0x2dd39f(0x1c2)&&typeof _0x4fc163==_0x2dd39f(0x1f1)&&(_0x33cb35[_0x362da3]=_0x4fc163[_0x2dd39f(0x206)](/url\(#(.*)\)/,_0x2dd39f(0x239)[_0x2dd39f(0x268)](_0x1301e8['idSuffix'],')')));});var _0x1ce168=_0x1301e8[_0x232a8e(0x1c1)];return!_0x1ce168||_0x1ce168[_0x232a8e(0x1e7)]===0x0||(_0x539084[_0x232a8e(0x1e9)]==='use'&&_0x33cb35[_0x232a8e(0x1bd)]&&(_0x33cb35[_0x232a8e(0x1bd)]=_0x33cb35[_0x232a8e(0x1bd)]+_0x1301e8['idSuffix']),Object['entries'](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x219945){var _0x12af84=_0x232a8e,_0x3298ad=_0x219945[0x0],_0x3e59a3=_0x219945[0x1];typeof _0x3e59a3==_0x12af84(0x1f1)&&(_0x33cb35[_0x3298ad]=_0x3e59a3['replace'](/url\(#(.*)\)/,_0x12af84(0x239)[_0x12af84(0x268)](_0x1301e8['idSuffix'],')')));})),_0x33cb35;}function xe(_0x2e02f4,_0x1688b5){var _0x15914f=_0x512809,_0x5600cd,_0x551177=_0x1688b5['defIds'];return!_0x551177||_0x551177['length']===0x0?_0x2e02f4:_0x2e02f4[_0x15914f(0x1e9)]==='defs'&&(!((_0x5600cd=_0x2e02f4['children'])===null||_0x5600cd===void 0x0)&&_0x5600cd[_0x15914f(0x1e7)])?c(c({},_0x2e02f4),{'children':_0x2e02f4[_0x15914f(0x214)][_0x15914f(0x1ec)](function(_0x5394b6){var _0xe30fcb=_0x15914f;return typeof _0x5394b6[_0xe30fcb(0x1de)]['id']=='string'&&_0x551177&&_0x551177[_0xe30fcb(0x204)](_0x5394b6[_0xe30fcb(0x1de)]['id'])?c(c({},_0x5394b6),{'attrs':c(c({},_0x5394b6[_0xe30fcb(0x1de)]),{'id':_0x5394b6[_0xe30fcb(0x1de)]['id']+_0x1688b5[_0xe30fcb(0x251)]})}):_0x5394b6;})}):_0x2e02f4;}function Le(){var _0x559577=_0x512809;return Math[_0x559577(0x263)]()['toString'](0x24)[_0x559577(0x254)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x512809(0x247),'attrs':{'xmlns':_0x512809(0x20d),'fill':_0x512809(0x1e0),'viewBox':_0x512809(0x248),'width':_0x512809(0x202),'height':_0x512809(0x202)},'children':[{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':_0x512809(0x1b7)}},{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x512809(0x237),'clipRule':_0x512809(0x237)}}]},B=_0x23e84d(function(_0x42c166,_0x47842e){var _0x398877=_0x512809;return _0x2e64a6(W,Object['assign']({},_0x42c166,{'id':_0x398877(0x261),'ref':_0x47842e,'icon':ye}));});B[_0x512809(0x1ce)]=_0x512809(0x25a);var Re=Object[_0x512809(0x1fb)],Z=(_0x5a0b21,_0x1b1996,_0x272cbc,_0x17e8e9)=>{var _0x4ee099=_0x512809;for(var _0x455e8e=_0x17e8e9>0x1?void 0x0:_0x17e8e9?Re(_0x1b1996,_0x272cbc):_0x1b1996,_0x7b7713=_0x5a0b21[_0x4ee099(0x1e7)]-0x1,_0x49ff6a;_0x7b7713>=0x0;_0x7b7713--)(_0x49ff6a=_0x5a0b21[_0x7b7713])&&(_0x455e8e=_0x49ff6a(_0x455e8e)||_0x455e8e);return _0x455e8e;},f=(_0x3a694d,_0x42c9d8)=>(_0x22a24b,_0x4d38d2)=>_0x42c9d8(_0x22a24b,_0x4d38d2,_0x3a694d);let I=class extends _0x3535cf{constructor(_0x24d818,_0x32303a,_0x20cb24){var _0x3feaed=_0x512809;super(),d(this,_0x3feaed(0x213),new Map()),(this[_0x3feaed(0x210)]=_0x24d818,this['_injector']=_0x32303a,this[_0x3feaed(0x1cd)]=_0x20cb24,this[_0x3feaed(0x1d8)]());}async[_0x512809(0x21e)](_0x5cdf3c){var _0x394492=_0x512809;return this[_0x394492(0x213)][_0x394492(0x229)](_0x5cdf3c)||await this[_0x394492(0x21b)](_0x5cdf3c),this[_0x394492(0x213)][_0x394492(0x233)](_0x5cdf3c);}['_init'](){var _0x7b76ac=_0x512809;this['_univerInstanceService'][_0x7b76ac(0x24e)](_0x12828d[_0x7b76ac(0x1bb)])['pipe'](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](async _0x316d0a=>{var _0xfdbc99=_0x7b76ac;const _0x560061=_0x316d0a[_0xfdbc99(0x20c)]();this[_0xfdbc99(0x213)][_0xfdbc99(0x229)](_0x560061)||this[_0xfdbc99(0x21b)](_0x560061);}),this[_0x7b76ac(0x210)][_0x7b76ac(0x212)](_0x12828d[_0x7b76ac(0x1bb)])[_0x7b76ac(0x22d)](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](_0x5a06eb=>{var _0xe40c16=_0x7b76ac;const _0x40e484=_0x5a06eb['getUnitId'](),_0x59b270=this['_entities']['get'](_0x40e484);_0x59b270==null||_0x59b270[_0xe40c16(0x1cb)]();});}async[_0x512809(0x21b)](_0x299e38){var _0x109118=_0x512809;const _0x897ae4=await this[_0x109118(0x1cd)][_0x109118(0x245)](_0x299e38),_0x5254d2=this[_0x109118(0x225)][_0x109118(0x24c)](C,_0x299e38,_0x897ae4);return _0x5254d2['init'](),this['_entities'][_0x109118(0x1f9)](_0x299e38,_0x5254d2),_0x5254d2;}};I=Z([f(0x0,_0xa0d390),f(0x1,_0x30a9c5(_0x21b692)),f(0x2,_0x30a9c5(_0x1f7d72))],I);var h=(_0x1bd8c6=>(_0x1bd8c6[_0x512809(0x1dd)]=_0x512809(0x1e4),_0x1bd8c6[_0x512809(0x243)]='idle',_0x1bd8c6[_0x512809(0x23a)]=_0x512809(0x1c6),_0x1bd8c6[_0x512809(0x1f2)]=_0x512809(0x262),_0x1bd8c6['PRESENTING']=_0x512809(0x203),_0x1bd8c6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x3535cf{constructor(_0x107549,_0x41b26f,_0x2ad2f6,_0xb42cdf,_0x46da28){var _0xc8f317=_0x512809;super(),d(this,_0xc8f317(0x1b5),new _0x5d9b35('idle')),d(this,_0xc8f317(0x1e2),this['_status$'][_0xc8f317(0x200)]()),d(this,_0xc8f317(0x1d8),!0x1),d(this,_0xc8f317(0x228),null),d(this,_0xc8f317(0x269),null),(this[_0xc8f317(0x1d4)]=_0x107549,this[_0xc8f317(0x1fe)]=_0x41b26f,this['_configService']=_0x2ad2f6,this[_0xc8f317(0x1c5)]=_0xb42cdf,this[_0xc8f317(0x1e8)]=_0x46da28);}get[_0x512809(0x242)](){var _0x3186b1=_0x512809;return this['_status$'][_0x3186b1(0x22a)]();}[_0x512809(0x1cb)](){var _0x4e97f7=_0x512809,_0x385e41;(_0x385e41=this[_0x4e97f7(0x228)])==null||_0x385e41[_0x4e97f7(0x1cb)](),this['_status$'][_0x4e97f7(0x25e)](_0x4e97f7(0x1d7)),this[_0x4e97f7(0x1b5)][_0x4e97f7(0x240)]();}[_0x512809(0x201)](){var _0x208335=_0x512809;this[_0x208335(0x1d8)]||(this[_0x208335(0x1d8)]=!0x0,this[_0x208335(0x1fe)][_0x208335(0x21d)][_0x208335(0x22d)](_0x3267ce(this[_0x208335(0x224)]))[_0x208335(0x1ff)](_0x3d663e=>{var _0x4bbee4=_0x208335;switch(_0x3d663e){case _0x3d4f4e[_0x4bbee4(0x1dd)]:this[_0x4bbee4(0x1dc)]();break;case _0x3d4f4e[_0x4bbee4(0x216)]:this[_0x4bbee4(0x20a)]();break;}}),this['_collabSession']['event$'][_0x208335(0x22d)](_0x3267ce(this['dispose$']))[_0x208335(0x1ff)](_0x49efb3=>{var _0x320493=_0x208335;const {eventID:_0x1349af}=_0x49efb3;switch(_0x1349af){case _0x46c596[_0x320493(0x1bc)]:this[_0x320493(0x241)](_0x49efb3);break;case _0x46c596[_0x320493(0x211)]:this['_handleOperation'](_0x49efb3);break;case _0x46c596[_0x320493(0x1d1)]:this[_0x320493(0x1df)]();break;case _0x46c596[_0x320493(0x21c)]:this['_handleNewChangeSets'](_0x49efb3);break;}}));}[_0x512809(0x1d6)](){var _0x544832=_0x512809;this[_0x544832(0x1fe)]['send']({'eventID':_0x46c596[_0x544832(0x25f)],'data':{'unitID':this['_unitID'],'userID':this[_0x544832(0x1fe)][_0x544832(0x252)]()}},this[_0x544832(0x1d4)]);}[_0x512809(0x1f4)](){var _0x3f6b43=_0x512809;this[_0x3f6b43(0x242)]===_0x3f6b43(0x203)&&(this['_status$'][_0x3f6b43(0x25e)]('idle'),this[_0x3f6b43(0x1fe)][_0x3f6b43(0x1ef)]({'eventID':_0x46c596[_0x3f6b43(0x1d1)],'data':{'unitID':this['_unitID']}},this[_0x3f6b43(0x1d4)]));}[_0x512809(0x220)](){var _0x362c40=_0x512809;this[_0x362c40(0x242)]==='not-following'&&(this[_0x362c40(0x1b5)]['next'](_0x362c40(0x1c6)),this[_0x362c40(0x1d0)]());}[_0x512809(0x231)](){var _0x165ed4=_0x512809;this['_status']==='following'&&this[_0x165ed4(0x25c)]();}['_handleNewHost'](_0x4ca3d9){var _0x4d07ff=_0x512809;const {presenter:_0x5b399d}=_0x4ca3d9['data'],_0x29677d=this[_0x4d07ff(0x1fe)]['getMemberID']();this[_0x4d07ff(0x269)]=_0x5b399d,_0x5b399d===_0x29677d?(this[_0x4d07ff(0x25c)](),this[_0x4d07ff(0x23d)]()):this['_status']!==_0x4d07ff(0x262)&&(this['_stopPresenting'](),this[_0x4d07ff(0x1d0)]());}[_0x512809(0x1cc)](){var _0xaf2e2f=_0x512809;const _0x2b23b2={'eventID':_0x46c596['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf2e2f(0x1fe)][_0xaf2e2f(0x1ef)](_0x2b23b2,this[_0xaf2e2f(0x1d4)]);}[_0x512809(0x1df)](){var _0x40965e=_0x512809;this[_0x40965e(0x269)]=null,this['_status']!=='presenting'&&this[_0x40965e(0x22f)]();}['_handleNewChangeSets'](_0x48983b){var _0x561f87=_0x512809;if(this[_0x561f87(0x242)]==='following'&&this['_presenter']===_0x48983b[_0x561f87(0x265)][_0x561f87(0x1c8)]){const _0x26cb02=_0x598281(_0x48983b[_0x561f87(0x265)])['mutations']['reverse']()['find'](_0x1941d1=>_0x1941d1['id']===_0x10745a['id']);if(_0x26cb02){const _0x5994b7=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x257)],_0x2ec8d6=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x258)]['id'];setTimeout(()=>{var _0x344599=_0x561f87;this['_commandService'][_0x344599(0x1b9)](_0x390ceb['id'],{'unitId':_0x5994b7,'subUnitId':_0x2ec8d6},{'fromCollab':!0x0});});}}}[_0x512809(0x23d)](){var _0x27c8c2=_0x512809;this[_0x27c8c2(0x1b5)][_0x27c8c2(0x25e)](_0x27c8c2(0x203));const _0x21cdb3=new Map(),_0x22effa=this[_0x27c8c2(0x228)]=new _0xd5101f();_0x22effa[_0x27c8c2(0x260)](_0x526a75(()=>{var _0xe799c4=_0x27c8c2;_0x21cdb3['forEach'](_0x4c3f62=>_0x4c3f62[_0xe799c4(0x240)]()),_0x21cdb3[_0xe799c4(0x215)]();})),_0x22effa[_0x27c8c2(0x260)](this[_0x27c8c2(0x1e8)]['onCommandExecuted'](_0x1c30cc=>{var _0x48e5af=_0x27c8c2,_0x79a571;if(_0x1c30cc[_0x48e5af(0x249)]!==_0x2ec5f9[_0x48e5af(0x256)]||!this[_0x48e5af(0x1c5)][_0x48e5af(0x230)](_0x1c30cc['id']))return;const {id:_0x421485}=_0x1c30cc;let _0x235d41;_0x21cdb3[_0x48e5af(0x229)](_0x421485)?_0x235d41=_0x21cdb3[_0x48e5af(0x233)](_0x421485):(_0x235d41=new _0x2b4590(),_0x21cdb3['set'](_0x421485,_0x235d41),_0x235d41[_0x48e5af(0x22d)](_0x214502((_0x79a571=this[_0x48e5af(0x1f7)][_0x48e5af(0x21a)](Pe))!=null?_0x79a571:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x44163e=>{var _0xcd51c=_0x48e5af;this[_0xcd51c(0x1fe)]['send']({'eventID':_0x46c596[_0xcd51c(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x44163e['id']]:{'id':_0x44163e['id'],'params':JSON[_0xcd51c(0x1b6)](_0x44163e['params'])}}}},this[_0xcd51c(0x1d4)]);})),_0x235d41[_0x48e5af(0x25e)](_0x1c30cc);})),this[_0x27c8c2(0x1c5)][_0x27c8c2(0x25d)](this[_0x27c8c2(0x1d4)])[_0x27c8c2(0x1ed)](_0x5df21c=>this['_collabSession']['send']({'eventID':_0x46c596[_0x27c8c2(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x5df21c['id']]:{'id':_0x5df21c['id'],'params':JSON['stringify'](_0x5df21c[_0x27c8c2(0x1e6)])}}}},this[_0x27c8c2(0x1d4)]));}[_0x512809(0x24b)](){var _0x4388fb=_0x512809,_0x35c0b0;this[_0x4388fb(0x1b5)]['next']('idle'),(_0x35c0b0=this[_0x4388fb(0x228)])==null||_0x35c0b0[_0x4388fb(0x1cb)](),this['_commandDisposable']=null;}[_0x512809(0x1d0)](){var _0x4b39ff=_0x512809,_0x2780a8;(_0x2780a8=this['_commandDisposable'])==null||_0x2780a8['dispose'](),this[_0x4b39ff(0x1b5)][_0x4b39ff(0x25e)](_0x4b39ff(0x1c6));}[_0x512809(0x22f)](){var _0x5e12a1=_0x512809,_0x3f90c5;this[_0x5e12a1(0x1b5)][_0x5e12a1(0x25e)](_0x5e12a1(0x1d7)),(_0x3f90c5=this['_commandDisposable'])==null||_0x3f90c5[_0x5e12a1(0x1cb)](),this[_0x5e12a1(0x228)]=null;}[_0x512809(0x25c)](){var _0x28613f=_0x512809,_0x290e6f;this[_0x28613f(0x1b5)][_0x28613f(0x25e)](_0x28613f(0x262)),(_0x290e6f=this[_0x28613f(0x228)])==null||_0x290e6f[_0x28613f(0x1cb)]();}[_0x512809(0x1be)](_0x1d3ed1){var _0xa81942=_0x512809;if([_0xa81942(0x203),_0xa81942(0x262),_0xa81942(0x1e4)][_0xa81942(0x204)](this[_0xa81942(0x242)])||!_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x205)]||_0x1d3ed1[_0xa81942(0x265)]['presenter']===this['_collabSession'][_0xa81942(0x252)]())return;this[_0xa81942(0x242)]===_0xa81942(0x1d7)&&this['_startFollowing']();const _0x2a9e98=_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x1e1)];Object[_0xa81942(0x1d3)](_0x2a9e98)[_0xa81942(0x1ed)](_0x27a2a8=>{var _0x28aef5=_0xa81942;this[_0x28aef5(0x1e8)]['executeCommand'](_0x27a2a8['id'],_0x27a2a8['params']?JSON[_0x28aef5(0x1eb)](_0x27a2a8['params']):null,{'fromCollab':!0x0});});}[_0x512809(0x1dc)](){var _0x4b31ef=_0x512809,_0x272ce4;this['_status$']['next'](_0x4b31ef(0x1e4)),(_0x272ce4=this[_0x4b31ef(0x228)])==null||_0x272ce4[_0x4b31ef(0x1cb)]();}[_0x512809(0x20a)](){var _0x4de46e=_0x512809;this[_0x4de46e(0x1b5)][_0x4de46e(0x25e)](_0x4de46e(0x1d7)),this[_0x4de46e(0x1cc)]();}};C=Z([f(0x2,_0x1caea7),f(0x3,_0x30a9c5(L)),f(0x4,_0x388a0d)],C);function Te(){var _0x27995f=_0x512809;const _0x39e5c7=_0x48897c(I),_0x64dfc6=_0x48897c(_0xa0d390),_0x19d5b0=_0x14654c(()=>_0x64dfc6[_0x27995f(0x234)](_0x12828d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x48b90d,_0xa6caef]=_0x5573ca(null),[_0x4847db,_0x3b7014]=_0x5573ca(h[_0x27995f(0x243)]),_0x146e05=_0x9bf347(null);return _0x36bfdc(()=>(_0x19d5b0&&_0x39e5c7[_0x27995f(0x21e)](_0x19d5b0[_0x27995f(0x20c)]())[_0x27995f(0x1fa)](_0x416fc2=>{var _0x6b5fc0=_0x27995f;_0xa6caef(_0x416fc2),_0x146e05['current']=_0x416fc2[_0x6b5fc0(0x1e2)]['subscribe'](_0x21de69=>{_0x3b7014(_0x21de69);});}),()=>{var _0x3aabbc=_0x27995f,_0xd6fe6b;(_0xd6fe6b=_0x146e05[_0x3aabbc(0x24d)])==null||_0xd6fe6b[_0x3aabbc(0x23f)](),_0x146e05[_0x3aabbc(0x24d)]=null;}),[_0x19d5b0,_0x39e5c7]),_0x48b90d?_0xe2c74b(_0x5212b4,{'align':_0x27995f(0x22b),'disabled':_0x4847db===h[_0x27995f(0x1dd)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0xe2c74b($e,{'status':_0x4847db,'coordinator':_0x48b90d}),'children':_0xe2c74b('button',{'className':_0x11bf78(_0x27995f(0x235),{'univer-cursor-not-allowed':_0x4847db===h[_0x27995f(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4847db!==h[_0x27995f(0x1dd)]}),'type':_0x27995f(0x1f8),'children':_0xe2c74b(B,{'className':_0x27995f(0x227)})})}):null;}function $e(_0x37bc60){var _0x50aecc=_0x512809;const {status:_0x134775,coordinator:_0x5c5521}=_0x37bc60;switch(_0x134775){case h[_0x50aecc(0x243)]:return _0xe2c74b(Fe,{'coordinator':_0x5c5521});case h['FOLLOWING']:return _0xe2c74b(He,{'coordinator':_0x5c5521});case h[_0x50aecc(0x1f2)]:return _0xe2c74b(je,{'coordinator':_0x5c5521});case h['OFFLINE']:return _0xe2c74b(Ve,{});case h['PRESENTING']:return _0xe2c74b(Ue,{'coordinator':_0x5c5521});default:return null;}}function Fe(_0x1459d6){var _0x5f3141=_0x512809;const {coordinator:_0x3a6f64}=_0x1459d6;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x5f3141(0x20b),{'className':_0x5f3141(0x1ca),'children':_0x5f3141(0x267)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x3a6f64[_0x5f3141(0x1d6)](),'children':_0x5f3141(0x217)})]});}function He(_0x2b5142){var _0x113cba=_0x512809;const {coordinator:_0x4f9b71}=_0x2b5142;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b('div',{'className':_0x113cba(0x1ca),'children':_0x113cba(0x1d5)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x4f9b71[_0x113cba(0x231)](),'children':_0x113cba(0x23b)})]});}function je(_0x1a0356){var _0x4bfadb=_0x512809;const {coordinator:_0x4f49e6}=_0x1a0356;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x4bfadb(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4bfadb(0x1f5)}),_0xe2c74b(_0x461148,{'variant':'text','onClick':()=>_0x4f49e6[_0x4bfadb(0x220)](),'children':'Start\x20following'})]});}function Ue(_0x51ed9b){var _0x62d2a3=_0x512809;const {coordinator:_0x275d7d}=_0x51ed9b;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x62d2a3(0x20b),{'className':_0x62d2a3(0x1ca),'children':_0x62d2a3(0x266)}),_0xe2c74b(_0x461148,{'variant':_0x62d2a3(0x1c9),'onClick':()=>_0x275d7d[_0x62d2a3(0x1f4)](),'children':_0x62d2a3(0x1b8)})]});}function Ve(){var _0x58cca7=_0x512809;return _0xe2c74b(_0x315a05,{'children':_0x58cca7(0x20f)});}var Me=Object[_0x512809(0x1fb)],ke=(_0x502d5f,_0x13bef8,_0x156e38,_0x27d9fb)=>{var _0x1028d4=_0x512809;for(var _0x4276e3=_0x27d9fb>0x1?void 0x0:_0x27d9fb?Me(_0x13bef8,_0x156e38):_0x13bef8,_0x2a9604=_0x502d5f[_0x1028d4(0x1e7)]-0x1,_0x1fe59c;_0x2a9604>=0x0;_0x2a9604--)(_0x1fe59c=_0x502d5f[_0x2a9604])&&(_0x4276e3=_0x1fe59c(_0x4276e3)||_0x4276e3);return _0x4276e3;},$=(_0x33e621,_0x310d72)=>(_0xac02c0,_0x2732a9)=>_0x310d72(_0xac02c0,_0x2732a9,_0x33e621);let b=class extends _0x53ac40{constructor(_0x2d1c5c,_0x3d93ae){var _0x396b49=_0x512809;super(),this[_0x396b49(0x225)]=_0x2d1c5c,this[_0x396b49(0x1e5)]=_0x3d93ae,this[_0x396b49(0x1c7)]();}['_mountLiveShare'](){var _0x440d1b=_0x512809;this[_0x440d1b(0x1f3)](this[_0x440d1b(0x1e5)][_0x440d1b(0x1db)](_0x8c4c5d[_0x440d1b(0x1c3)],()=>_0x29aac4(Te,this['_injector'])));}};b=ke([$(0x0,_0x30a9c5(_0x21b692)),$(0x1,_0x44b862)],b);var Ge=Object[_0x512809(0x24f)],We=Object[_0x512809(0x1fb)],Ye=(_0x479959,_0x1e07c1,_0x5534af)=>_0x1e07c1 in _0x479959?Ge(_0x479959,_0x1e07c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5534af}):_0x479959[_0x1e07c1]=_0x5534af,Be=(_0x39d9de,_0x68c71,_0x3426f4,_0x4e020b)=>{var _0x4b52f8=_0x512809;for(var _0x3ba3da=_0x4e020b>0x1?void 0x0:_0x4e020b?We(_0x68c71,_0x3426f4):_0x68c71,_0x2b549f=_0x39d9de[_0x4b52f8(0x1e7)]-0x1,_0x589753;_0x2b549f>=0x0;_0x2b549f--)(_0x589753=_0x39d9de[_0x2b549f])&&(_0x3ba3da=_0x589753(_0x3ba3da)||_0x3ba3da);return _0x3ba3da;},F=(_0x564057,_0x5f2816)=>(_0x2203aa,_0x2480a2)=>_0x5f2816(_0x2203aa,_0x2480a2,_0x564057),J=(_0x3b23e4,_0x5b5b96,_0x594b84)=>Ye(_0x3b23e4,typeof _0x5b5b96!=_0x512809(0x255)?_0x5b5b96+'':_0x5b5b96,_0x594b84);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2850ce{constructor(_0x40eeaa=T,_0x5ea98d,_0x214f15){var _0x3ba965=_0x512809;super(),this[_0x3ba965(0x1c0)]=_0x40eeaa,this[_0x3ba965(0x225)]=_0x5ea98d,this[_0x3ba965(0x1f7)]=_0x214f15;const {..._0x59a5fd}=_0x4a6d52({},T,this[_0x3ba965(0x1c0)]);this[_0x3ba965(0x1f7)][_0x3ba965(0x208)](Oe,_0x59a5fd);}[_0x512809(0x1fc)](){var _0x25f4fc=_0x512809;_0x1f5629(this[_0x25f4fc(0x225)],_0x3defda([[L],[I],[m],[b]],this[_0x25f4fc(0x1c0)][_0x25f4fc(0x23c)])),_0x397a1f(this['_injector'],[[m]]);}[_0x512809(0x1c4)](){var _0x4f3f56=_0x512809;_0x397a1f(this[_0x4f3f56(0x225)],[[b]]);}};J(O,_0x512809(0x249),_0x12828d[_0x512809(0x226)]),J(O,'pluginName',Ze),O=Be([_0x352ef8(_0xc07b40),F(0x1,_0x30a9c5(_0x21b692)),F(0x2,_0x1caea7)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x396a(){var _0x12f50c=['_handleOffline','following','createElement','UniverCollaborationClientPlugin','CollaborationSessionService','IUniverInstanceService','hasOwnProperty','UniverLiveSharePlugin','OPERATION','You\x27re\x20following\x20the\x20presenter','parse','univer-mb-3\x20univer-w-full\x20univer-text-sm','executeCommand','SetWorksheetActiveOperation','getTypeOfUnitDisposed$','NOT_FOLLOWING','has','random','init','assign','SetZoomRatioOperation','shouldShareOperation','SetScrollOperation','className','live-share.config','FOLLOWING','memberID','div','pluginName','replace','_handleTerminate','defineProperty','InsertSheetMutation','get','presenter','You\x27are\x20offline.','_injector','asObservable','Start\x20following','Stop\x20following','status$','UniverInstanceType','fill','concat','offline','children','send','add','_startLiveShareCoordinator','registerDependencies','Present\x20this\x20document','react/jsx-runtime','2317119FTbvtv','UniverSheets','_init','http://www.w3.org/2000/svg','tag','LiveShareService','Button','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','useDependency','Injector','UniverIcon','sheet','colorChannel1','_reporters','icon','params','799252NsWkng','@univerjs/core','idle','use','_status','LiveShare','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','toDisposable','getInitialStates','clear','symbol','OFFLINE','UNIVER_SHEET','0\x200\x2017\x2017','throttleTime','parseProtocolChangeset','6300SxAIKt','Subject','29777uAtYsv','_collabSessionService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_config','_collabSession','getMemberID','idSuffix','12tyDbrK','stopFollowing','_commandService','_stopFollowing','getOwnPropertySymbols','find','_unitID','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertyDescriptor','object','@univerjs/sheets-ui','unitId','operators','Dropdown','complete','SessionStatus','ONLINE','_status$','xlink:href','LiveShareIcon','Fragment','createInstance','UniverCore','length','_presenter','React','data','1358QIUlYS','_beIdle','stringify','RxDisposable','dispose','mask','subscribe','_configService','react','touchDependencies','LiveShareStatus','live-share-icon','useState','univerjs-icon\x20univerjs-icon-','UniverDesign','jsx','IUIPartsService','DesktopLiveShareController','Stop\x20presenting','onRendered','string','_handleOnline','getLiveShareCoordinator','@univerjs/sheets','defIds','apply','entries','exports','getTypeOfUnitAdded$','path','You\x27re\x20presenting\x20the\x20document','8JWYEFL','delete','registerSharedOperation','@univerjs/ui','displayName','dispose$','clsx','3dBTAZt','HEADER_MENU','stopPresenting','UniverProCollaboration','url(#$1','Inject','_fetchOperations','mutations','current','prototype','LIVESHARE_NEW_HOST','values','@univerjs-pro/collaboration-client','CollaborationEvent','toString','ICommandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','setConfig','UniverProCollaborationClient','115CZHvgA','UniverProLiveShare','_handleNewChangeSets','map','startFollowing','UniverSheetsUi','propertyIsEnumerable','_startPresenting','_sharedOperations','_entities','trim','pipe','takeUntil','defs','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','NEW_CHANGESETS','42858qAflmz','8VkcGfI','_handleOperation','presenting','connectInjector','UNIVER_UNKNOWN','button','LIVESHARE_OPERATION','override','128196hgzeIu','includes','substring','CommandType','unsubscribe','BehaviorSubject','currentColor','LiveShareController','merge','not-following','@univerjs/design','tryStartPresenting','IDLE','_startFollowing','call','from','_stopPresenting','forwardRef','set','jsxs','_univerInstanceService','operations','Plugin','svg','none','reverse','28782DxJrXm','_handleNewHost','DisposableCollection','13500cKuAtk','next','default','attrs','extend','Module','useRef','Disposable','_mountLiveShare','_commandDisposable','disposeWithMe','LiveShareCoordinator','type','@univerjs-pro/collaboration','evenodd','forEach','BuiltInUIPart','getUnitId','getValue','LIVESHARE_TERMINATE','registerInitialStateReporter'];_0x396a=function(){return _0x12f50c;};return _0x396a();}function _0x1feb(_0x1bacd8,_0x1ad923){var _0x396ac0=_0x396a();return _0x1feb=function(_0x1febcd,_0x2be2e3){_0x1febcd=_0x1febcd-0x84;var _0x375e1a=_0x396ac0[_0x1febcd];return _0x375e1a;},_0x1feb(_0x1bacd8,_0x1ad923);}(function(_0x5d2026,_0x3e0ace){var _0x5ef8bd=_0x1feb,_0x182be8=_0x5d2026();while(!![]){try{var _0x3da8cd=parseInt(_0x5ef8bd(0xa1))/0x1*(parseInt(_0x5ef8bd(0x99))/0x2)+parseInt(_0x5ef8bd(0x172))/0x3*(parseInt(_0x5ef8bd(0x118))/0x4)+parseInt(_0x5ef8bd(0x88))/0x5*(parseInt(_0x5ef8bd(0x98))/0x6)+parseInt(_0x5ef8bd(0x107))/0x7*(parseInt(_0x5ef8bd(0x16b))/0x8)+parseInt(_0x5ef8bd(0xbe))/0x9*(-parseInt(_0x5ef8bd(0x128))/0xa)+-parseInt(_0x5ef8bd(0x12a))/0xb*(parseInt(_0x5ef8bd(0x131))/0xc)+-parseInt(_0x5ef8bd(0xbb))/0xd*(-parseInt(_0x5ef8bd(0x14c))/0xe);if(_0x3da8cd===_0x3e0ace)break;else _0x182be8['push'](_0x182be8['shift']());}catch(_0x3f84b0){_0x182be8['push'](_0x182be8['shift']());}}}(_0x396a,0x73f4a),function(_0x18c923,_0x5f209b){var _0x95c0b=_0x1feb;typeof exports==_0x95c0b(0x13a)&&typeof module<'u'?_0x5f209b(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define['amd']?define([_0x95c0b(0x167),_0x95c0b(0x17e),_0x95c0b(0x119),_0x95c0b(0x163),_0x95c0b(0x13b),_0x95c0b(0x16e),_0x95c0b(0x106),_0x95c0b(0xab),_0x95c0b(0x154),_0x95c0b(0xcb),'rxjs','rxjs/operators'],_0x5f209b):(_0x18c923=typeof globalThis<'u'?globalThis:_0x18c923||self,_0x5f209b(_0x18c923[_0x95c0b(0x89)]={},_0x18c923[_0x95c0b(0x87)],_0x18c923[_0x95c0b(0x147)],_0x18c923[_0x95c0b(0x108)],_0x18c923[_0x95c0b(0x8d)],_0x18c923['UniverUi'],_0x18c923[_0x95c0b(0x14a)],_0x18c923[_0x95c0b(0x15a)],_0x18c923['React'],_0x18c923[_0x95c0b(0x175)],_0x18c923['rxjs'],_0x18c923['rxjs'][_0x95c0b(0x13d)]));}(this,function(_0x20ea13,_0x513dfa,_0x2e9263,_0x36d1a4,_0x4d4a7b,_0x6c12b0,_0x175adc,_0x5199a3,_0xaacce9,_0x1bb602,_0x36581d,_0xd1fe20){'use strict';var _0x3f4273=_0x1feb;var _0x208721=Object[_0x3f4273(0xf2)],_0x194be1=(_0x31b97a,_0x53cacc,_0x5222d0)=>_0x53cacc in _0x31b97a?_0x208721(_0x31b97a,_0x53cacc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5222d0}):_0x31b97a[_0x53cacc]=_0x5222d0,_0x1a7132=(_0x5328fd,_0x4a2112,_0x2ad23d)=>_0x194be1(_0x5328fd,typeof _0x4a2112!=_0x3f4273(0x122)?_0x4a2112+'':_0x4a2112,_0x2ad23d);const _0x1e5d64=_0x3f4273(0xeb),_0x537ed2={};class _0x444486 extends _0x2e9263[_0x3f4273(0xc5)]{constructor(){var _0x32e6b2=_0x3f4273;super(...arguments),_0x1a7132(this,_0x32e6b2(0x90),new Set()),_0x1a7132(this,_0x32e6b2(0x115),new Set());}['registerSharedOperation'](_0x13afac){var _0x3d1b8c=_0x3f4273;return this[_0x3d1b8c(0x90)][_0x3d1b8c(0x102)](_0x13afac),_0x2e9263[_0x3d1b8c(0x11f)](()=>this['_sharedOperations'][_0x3d1b8c(0x16c)](_0x13afac));}[_0x3f4273(0xd2)](_0x2d6f79){var _0x175fa8=_0x3f4273;return this['_reporters'][_0x175fa8(0x102)](_0x2d6f79),_0x2e9263[_0x175fa8(0x11f)](()=>this[_0x175fa8(0x115)][_0x175fa8(0x16c)](_0x2d6f79));}[_0x3f4273(0xe8)](_0x3b9c4e){var _0x18a387=_0x3f4273;return this['_sharedOperations'][_0x18a387(0xe3)](_0x3b9c4e);}[_0x3f4273(0x120)](_0x5e6ae1){var _0x322872=_0x3f4273;return Array[_0x322872(0xb0)](this[_0x322872(0x115)])['map'](_0x15e4c2=>_0x15e4c2(_0x5e6ae1));}}var _0x55f5a5=Object['getOwnPropertyDescriptor'],_0x27e095=(_0x177125,_0x397273,_0x1d3432,_0x1753bf)=>{var _0x138ea4=_0x3f4273;for(var _0x590417=_0x1753bf>0x1?void 0x0:_0x1753bf?_0x55f5a5(_0x397273,_0x1d3432):_0x397273,_0x1546c8=_0x177125[_0x138ea4(0x148)]-0x1,_0x4b776b;_0x1546c8>=0x0;_0x1546c8--)(_0x4b776b=_0x177125[_0x1546c8])&&(_0x590417=_0x4b776b(_0x590417)||_0x590417);return _0x590417;},_0x36d143=(_0x1e4c92,_0x2a58fb)=>(_0x54da16,_0x201672)=>_0x2a58fb(_0x54da16,_0x201672,_0x1e4c92);let _0x5ddad0=class extends _0x2e9263['Disposable']{constructor(_0x3e0206){var _0x241a18=_0x3f4273;super(),this[_0x241a18(0x10e)]=_0x3e0206,this[_0x241a18(0x109)]();}[_0x3f4273(0x109)](){var _0x5009c8=_0x3f4273;[_0x4d4a7b[_0x5009c8(0xe7)]['id'],_0x4d4a7b[_0x5009c8(0xe9)]['id'],_0x36d1a4[_0x5009c8(0xe0)]['id']]['forEach'](_0x5e6848=>{var _0x32aa86=_0x5009c8;this[_0x32aa86(0xc8)](this[_0x32aa86(0x10e)][_0x32aa86(0x16d)](_0x5e6848));});}};_0x5ddad0=_0x27e095([_0x36d143(0x0,_0x2e9263[_0x3f4273(0x177)](_0x444486))],_0x5ddad0);var _0xb28816=function(){var _0x3ed1bb=_0x3f4273;return _0xb28816=Object['assign']||function(_0x354f8f){var _0x2abefa=_0x1feb;for(var _0x3e385a,_0x1c827d=0x1,_0x14f0ed=arguments[_0x2abefa(0x148)];_0x1c827d<_0x14f0ed;_0x1c827d++){_0x3e385a=arguments[_0x1c827d];for(var _0x12567d in _0x3e385a)Object[_0x2abefa(0x17b)]['hasOwnProperty'][_0x2abefa(0xaf)](_0x3e385a,_0x12567d)&&(_0x354f8f[_0x12567d]=_0x3e385a[_0x12567d]);}return _0x354f8f;},_0xb28816[_0x3ed1bb(0x165)](this,arguments);},_0x482eef=function(_0x1f484b,_0x6af2f){var _0x308554=_0x3f4273,_0x33f71e={};for(var _0x2d8361 in _0x1f484b)Object[_0x308554(0x17b)][_0x308554(0xd9)]['call'](_0x1f484b,_0x2d8361)&&_0x6af2f['indexOf'](_0x2d8361)<0x0&&(_0x33f71e[_0x2d8361]=_0x1f484b[_0x2d8361]);if(_0x1f484b!=null&&typeof Object[_0x308554(0x135)]=='function'){for(var _0x2c80a4=0x0,_0x2d8361=Object[_0x308554(0x135)](_0x1f484b);_0x2c80a4<_0x2d8361[_0x308554(0x148)];_0x2c80a4++)_0x6af2f['indexOf'](_0x2d8361[_0x2c80a4])<0x0&&Object[_0x308554(0x17b)][_0x308554(0x8e)][_0x308554(0xaf)](_0x1f484b,_0x2d8361[_0x2c80a4])&&(_0x33f71e[_0x2d8361[_0x2c80a4]]=_0x1f484b[_0x2d8361[_0x2c80a4]]);}return _0x33f71e;},_0x40d519=_0xaacce9[_0x3f4273(0xb2)](function(_0x2d5d22,_0x565dec){var _0x2dde16=_0x3f4273,_0x2815c6=_0x2d5d22[_0x2dde16(0x116)],_0xc119be=_0x2d5d22['id'],_0xb44a80=_0x2d5d22['className'],_0x3ca11b=_0x2d5d22['extend'],_0x16ad9c=_0x482eef(_0x2d5d22,[_0x2dde16(0x116),'id',_0x2dde16(0xea),_0x2dde16(0xc2)]),_0x577f43=_0x2dde16(0x159)[_0x2dde16(0xfe)](_0xc119be,'\x20')[_0x2dde16(0xfe)](_0xb44a80||'')[_0x2dde16(0x92)](),_0x3b0cea=_0xaacce9['useRef']('_'['concat'](_0x10862b()));return _0x505771(_0x2815c6,''[_0x2dde16(0xfe)](_0xc119be),{'defIds':_0x2815c6[_0x2dde16(0x164)],'idSuffix':_0x3b0cea[_0x2dde16(0x17a)]},_0xb28816({'ref':_0x565dec,'className':_0x577f43},_0x16ad9c),_0x3ca11b);});function _0x505771(_0x5df20a,_0x4084da,_0x54b149,_0x7da69e,_0x3ce9b2){var _0x3b58e6=_0x3f4273;return _0xaacce9[_0x3b58e6(0xd5)](_0x5df20a[_0x3b58e6(0x10b)],_0xb28816(_0xb28816({'key':_0x4084da},_0x3a111b(_0x5df20a,_0x54b149,_0x3ce9b2)),_0x7da69e),(_0x274214(_0x5df20a,_0x54b149)[_0x3b58e6(0x100)]||[])['map'](function(_0x1b2a96,_0x1fe8af){var _0x319861=_0x3b58e6;return _0x505771(_0x1b2a96,''[_0x319861(0xfe)](_0x4084da,'-')['concat'](_0x5df20a['tag'],'-')[_0x319861(0xfe)](_0x1fe8af),_0x54b149,void 0x0,_0x3ce9b2);}));}function _0x3a111b(_0x282195,_0x4965c0,_0x523439){var _0x366f8a=_0x3f4273,_0x101fb1=_0xb28816({},_0x282195[_0x366f8a(0xc1)]);_0x523439!=null&&_0x523439[_0x366f8a(0x114)]&&_0x101fb1[_0x366f8a(0xfd)]==='colorChannel1'&&(_0x101fb1['fill']=_0x523439[_0x366f8a(0x114)]),_0x282195[_0x366f8a(0x10b)]==='mask'&&_0x101fb1['id']&&(_0x101fb1['id']=_0x101fb1['id']+_0x4965c0[_0x366f8a(0x130)]),Object['entries'](_0x101fb1)[_0x366f8a(0xcd)](function(_0x53c4b3){var _0x12dc48=_0x366f8a,_0x3332fa=_0x53c4b3[0x0],_0x226712=_0x53c4b3[0x1];_0x3332fa===_0x12dc48(0x151)&&typeof _0x226712==_0x12dc48(0x160)&&(_0x101fb1[_0x3332fa]=_0x226712[_0x12dc48(0xf0)](/url\(#(.*)\)/,_0x12dc48(0x176)[_0x12dc48(0xfe)](_0x4965c0['idSuffix'],')')));});var _0x1239db=_0x4965c0['defIds'];return!_0x1239db||_0x1239db[_0x366f8a(0x148)]===0x0||(_0x282195[_0x366f8a(0x10b)]===_0x366f8a(0x11b)&&_0x101fb1['xlink:href']&&(_0x101fb1[_0x366f8a(0x143)]=_0x101fb1[_0x366f8a(0x143)]+_0x4965c0[_0x366f8a(0x130)]),Object[_0x366f8a(0x166)](_0x101fb1)['forEach'](function(_0x31b237){var _0x350676=_0x366f8a,_0x4fa482=_0x31b237[0x0],_0x356ca3=_0x31b237[0x1];typeof _0x356ca3==_0x350676(0x160)&&(_0x101fb1[_0x4fa482]=_0x356ca3[_0x350676(0xf0)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4965c0[_0x350676(0x130)],')')));})),_0x101fb1;}function _0x274214(_0x2d783d,_0x207369){var _0x407d22=_0x3f4273,_0x121a20,_0x1bffa4=_0x207369[_0x407d22(0x164)];return!_0x1bffa4||_0x1bffa4[_0x407d22(0x148)]===0x0?_0x2d783d:_0x2d783d[_0x407d22(0x10b)]===_0x407d22(0x95)&&(!((_0x121a20=_0x2d783d[_0x407d22(0x100)])===null||_0x121a20===void 0x0)&&_0x121a20[_0x407d22(0x148)])?_0xb28816(_0xb28816({},_0x2d783d),{'children':_0x2d783d[_0x407d22(0x100)][_0x407d22(0x8b)](function(_0x11551c){var _0x398d00=_0x407d22;return typeof _0x11551c[_0x398d00(0xc1)]['id']==_0x398d00(0x160)&&_0x1bffa4&&_0x1bffa4[_0x398d00(0xa2)](_0x11551c[_0x398d00(0xc1)]['id'])?_0xb28816(_0xb28816({},_0x11551c),{'attrs':_0xb28816(_0xb28816({},_0x11551c[_0x398d00(0xc1)]),{'id':_0x11551c[_0x398d00(0xc1)]['id']+_0x207369['idSuffix']})}):_0x11551c;})}):_0x2d783d;}function _0x10862b(){var _0x409995=_0x3f4273;return Math[_0x409995(0xe4)]()[_0x409995(0x180)](0x24)[_0x409995(0xa3)](0x2,0x8);}_0x40d519[_0x3f4273(0x16f)]=_0x3f4273(0x112);var _0x107788={'tag':_0x3f4273(0xb8),'attrs':{'xmlns':_0x3f4273(0x10a),'fill':_0x3f4273(0xb9),'viewBox':_0x3f4273(0x125),'width':'1em','height':'1em'},'children':[{'tag':_0x3f4273(0x169),'attrs':{'fill':_0x3f4273(0xa7),'d':_0x3f4273(0x11e)}},{'tag':'path','attrs':{'fill':_0x3f4273(0xa7),'d':_0x3f4273(0x12c),'fillRule':_0x3f4273(0xcc),'clipRule':_0x3f4273(0xcc)}}]},_0x27c244=_0xaacce9[_0x3f4273(0xb2)](function(_0xd3c7b8,_0x1a4df6){var _0x25fa41=_0x3f4273;return _0xaacce9['createElement'](_0x40d519,Object[_0x25fa41(0xe6)]({},_0xd3c7b8,{'id':_0x25fa41(0x157),'ref':_0x1a4df6,'icon':_0x107788}));});_0x27c244[_0x3f4273(0x16f)]=_0x3f4273(0x144);var _0x49b11c=Object[_0x3f4273(0x139)],_0x202b0d=(_0x670955,_0x9ccbbe,_0x3172ee,_0x4af774)=>{for(var _0x1e8110=_0x4af774>0x1?void 0x0:_0x4af774?_0x49b11c(_0x9ccbbe,_0x3172ee):_0x9ccbbe,_0x2deaca=_0x670955['length']-0x1,_0x38cfae;_0x2deaca>=0x0;_0x2deaca--)(_0x38cfae=_0x670955[_0x2deaca])&&(_0x1e8110=_0x38cfae(_0x1e8110)||_0x1e8110);return _0x1e8110;},_0x45700d=(_0x31db48,_0x2db499)=>(_0x40eec0,_0x128afc)=>_0x2db499(_0x40eec0,_0x128afc,_0x31db48);_0x20ea13[_0x3f4273(0xa8)]=class extends _0x2e9263[_0x3f4273(0x14f)]{constructor(_0x426351,_0xc24b0b,_0x218991){var _0x1fc9d4=_0x3f4273;super(),_0x1a7132(this,_0x1fc9d4(0x91),new Map()),(this['_univerInstanceService']=_0x426351,this[_0x1fc9d4(0xf7)]=_0xc24b0b,this[_0x1fc9d4(0x12b)]=_0x218991,this[_0x1fc9d4(0x109)]());}async[_0x3f4273(0x162)](_0x1f8249){var _0x57433c=_0x3f4273;return this[_0x57433c(0x91)][_0x57433c(0xe3)](_0x1f8249)||await this[_0x57433c(0x103)](_0x1f8249),this[_0x57433c(0x91)]['get'](_0x1f8249);}['_init'](){var _0x57cfb=_0x3f4273;this[_0x57cfb(0xb5)][_0x57cfb(0x168)](_0x2e9263[_0x57cfb(0xfc)][_0x57cfb(0x124)])[_0x57cfb(0x93)](_0xd1fe20[_0x57cfb(0x94)](this['dispose$']))[_0x57cfb(0x152)](async _0x819d69=>{var _0x4df8d1=_0x57cfb;const _0x3ec202=_0x819d69[_0x4df8d1(0xcf)]();this[_0x4df8d1(0x91)][_0x4df8d1(0xe3)](_0x3ec202)||this['_startLiveShareCoordinator'](_0x3ec202);}),this[_0x57cfb(0xb5)][_0x57cfb(0xe1)](_0x2e9263[_0x57cfb(0xfc)][_0x57cfb(0x124)])[_0x57cfb(0x93)](_0xd1fe20['takeUntil'](this[_0x57cfb(0x170)]))[_0x57cfb(0x152)](_0xe2d75a=>{var _0x2ed438=_0x57cfb;const _0x2df9ac=_0xe2d75a[_0x2ed438(0xcf)](),_0x3ffdb2=this['_entities'][_0x2ed438(0xf4)](_0x2df9ac);_0x3ffdb2==null||_0x3ffdb2[_0x2ed438(0x150)]();});}async[_0x3f4273(0x103)](_0x1e63c5){var _0x10948a=_0x3f4273;const _0x39601d=await this['_collabSessionService']['requireSession'](_0x1e63c5),_0x2c9ed9=this['_injector'][_0x10948a(0x146)](_0x20ea13[_0x10948a(0xc9)],_0x1e63c5,_0x39601d);return _0x2c9ed9[_0x10948a(0xe5)](),this['_entities']['set'](_0x1e63c5,_0x2c9ed9),_0x2c9ed9;}},_0x20ea13[_0x3f4273(0xa8)]=_0x202b0d([_0x45700d(0x0,_0x2e9263[_0x3f4273(0xd8)]),_0x45700d(0x1,_0x2e9263[_0x3f4273(0x177)](_0x2e9263['Injector'])),_0x45700d(0x2,_0x2e9263[_0x3f4273(0x177)](_0x513dfa[_0x3f4273(0xd7)]))],_0x20ea13[_0x3f4273(0xa8)]);var _0x1369e9=(_0x25793e=>(_0x25793e[_0x3f4273(0x123)]=_0x3f4273(0xff),_0x25793e[_0x3f4273(0xad)]=_0x3f4273(0x11a),_0x25793e[_0x3f4273(0xec)]=_0x3f4273(0xd4),_0x25793e[_0x3f4273(0xe2)]=_0x3f4273(0xaa),_0x25793e['PRESENTING']=_0x3f4273(0x9b),_0x25793e))(_0x1369e9||{});const _0x232aff=_0x3f4273(0x10f),_0x467569=0xc8;_0x20ea13['LiveShareCoordinator']=class extends _0x2e9263[_0x3f4273(0x14f)]{constructor(_0x181ed6,_0x50c29c,_0x564f38,_0x36c53f,_0x2b50f3){var _0x4a4d77=_0x3f4273;super(),_0x1a7132(this,_0x4a4d77(0x142),new _0x36581d[(_0x4a4d77(0xa6))](_0x4a4d77(0x11a))),_0x1a7132(this,'status$',this[_0x4a4d77(0x142)][_0x4a4d77(0xf8)]()),_0x1a7132(this,_0x4a4d77(0x109),!0x1),_0x1a7132(this,_0x4a4d77(0xc7),null),_0x1a7132(this,_0x4a4d77(0x149),null),(this[_0x4a4d77(0x137)]=_0x181ed6,this['_collabSession']=_0x50c29c,this[_0x4a4d77(0x153)]=_0x564f38,this[_0x4a4d77(0x10e)]=_0x36c53f,this[_0x4a4d77(0x133)]=_0x2b50f3);}get['_status'](){var _0x1e6aab=_0x3f4273;return this['_status$'][_0x1e6aab(0xd0)]();}[_0x3f4273(0x150)](){var _0x166827=_0x3f4273,_0x155b68;(_0x155b68=this['_commandDisposable'])==null||_0x155b68[_0x166827(0x150)](),this[_0x166827(0x142)][_0x166827(0xbf)](_0x166827(0x11a)),this[_0x166827(0x142)][_0x166827(0x13f)]();}['init'](){var _0xf5ca1f=_0x3f4273;this[_0xf5ca1f(0x109)]||(this[_0xf5ca1f(0x109)]=!0x0,this['_collabSession']['sessionStatus$'][_0xf5ca1f(0x93)](_0xd1fe20['takeUntil'](this[_0xf5ca1f(0x170)]))[_0xf5ca1f(0x152)](_0x5749c1=>{var _0x54a3e6=_0xf5ca1f;switch(_0x5749c1){case _0x513dfa[_0x54a3e6(0x140)][_0x54a3e6(0x123)]:this[_0x54a3e6(0xd3)]();break;case _0x513dfa[_0x54a3e6(0x140)][_0x54a3e6(0x141)]:this[_0x54a3e6(0x161)]();break;}}),this[_0xf5ca1f(0x12e)]['event$']['pipe'](_0xd1fe20[_0xf5ca1f(0x94)](this[_0xf5ca1f(0x170)]))[_0xf5ca1f(0x152)](_0x4be116=>{var _0x34e66c=_0xf5ca1f;const {eventID:_0x30ecba}=_0x4be116;switch(_0x30ecba){case _0x1bb602[_0x34e66c(0x17f)][_0x34e66c(0x17c)]:this[_0x34e66c(0xbc)](_0x4be116);break;case _0x1bb602['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x34e66c(0x9a)](_0x4be116);break;case _0x1bb602[_0x34e66c(0x17f)][_0x34e66c(0xd1)]:this[_0x34e66c(0xf1)]();break;case _0x1bb602['CollaborationEvent'][_0x34e66c(0x97)]:this[_0x34e66c(0x8a)](_0x4be116);break;}}));}[_0x3f4273(0xac)](){var _0x3c1b88=_0x3f4273;this[_0x3c1b88(0x12e)][_0x3c1b88(0x101)]({'eventID':_0x1bb602['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3c1b88(0x137)],'userID':this['_collabSession'][_0x3c1b88(0x12f)]()}},this[_0x3c1b88(0x137)]);}[_0x3f4273(0x174)](){var _0x8e48fb=_0x3f4273;this[_0x8e48fb(0x11c)]===_0x8e48fb(0x9b)&&(this[_0x8e48fb(0x142)][_0x8e48fb(0xbf)](_0x8e48fb(0x11a)),this['_collabSession'][_0x8e48fb(0x101)]({'eventID':_0x1bb602[_0x8e48fb(0x17f)][_0x8e48fb(0xd1)],'data':{'unitID':this[_0x8e48fb(0x137)]}},this['_unitID']));}[_0x3f4273(0x8c)](){var _0x4fd862=_0x3f4273;this['_status']===_0x4fd862(0xaa)&&(this['_status$'][_0x4fd862(0xbf)](_0x4fd862(0xd4)),this['_startFollowing']());}[_0x3f4273(0x132)](){var _0x277645=_0x3f4273;this['_status']===_0x277645(0xd4)&&this['_stopFollowing']();}[_0x3f4273(0xbc)](_0x7fbeee){var _0x3d1c50=_0x3f4273;const {presenter:_0xd3ce8f}=_0x7fbeee[_0x3d1c50(0x14b)],_0x5e6894=this[_0x3d1c50(0x12e)][_0x3d1c50(0x12f)]();this[_0x3d1c50(0x149)]=_0xd3ce8f,_0xd3ce8f===_0x5e6894?(this['_stopFollowing'](),this[_0x3d1c50(0x8f)]()):this[_0x3d1c50(0x11c)]!==_0x3d1c50(0xaa)&&(this[_0x3d1c50(0xb1)](),this['_startFollowing']());}[_0x3f4273(0x178)](){var _0x53ae01=_0x3f4273;const _0x3196ef={'eventID':_0x1bb602[_0x53ae01(0x17f)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x53ae01(0x12e)][_0x53ae01(0x101)](_0x3196ef,this[_0x53ae01(0x137)]);}[_0x3f4273(0xf1)](){var _0x24c7ef=_0x3f4273;this[_0x24c7ef(0x149)]=null,this[_0x24c7ef(0x11c)]!==_0x24c7ef(0x9b)&&this[_0x24c7ef(0x14d)]();}[_0x3f4273(0x8a)](_0x21922){var _0x47bf64=_0x3f4273;if(this[_0x47bf64(0x11c)]===_0x47bf64(0xd4)&&this[_0x47bf64(0x149)]===_0x21922['data'][_0x47bf64(0xed)]){const _0x10e558=_0x1bb602[_0x47bf64(0x127)](_0x21922[_0x47bf64(0x14b)])[_0x47bf64(0x179)][_0x47bf64(0xba)]()[_0x47bf64(0x136)](_0xe0202=>_0xe0202['id']===_0x36d1a4[_0x47bf64(0xf3)]['id']);if(_0x10e558){const _0x29e890=_0x10e558['params'][_0x47bf64(0x13c)],_0x4cf5b8=_0x10e558[_0x47bf64(0x117)][_0x47bf64(0x113)]['id'];setTimeout(()=>{var _0x312745=_0x47bf64;this['_commandService'][_0x312745(0xdf)](_0x36d1a4[_0x312745(0xe0)]['id'],{'unitId':_0x29e890,'subUnitId':_0x4cf5b8},{'fromCollab':!0x0});});}}}[_0x3f4273(0x8f)](){var _0x52b589=_0x3f4273;this[_0x52b589(0x142)][_0x52b589(0xbf)](_0x52b589(0x9b));const _0x27de2f=new Map(),_0x4b1330=this['_commandDisposable']=new _0x2e9263[(_0x52b589(0xbd))]();_0x4b1330['add'](_0x2e9263[_0x52b589(0x11f)](()=>{var _0x368d79=_0x52b589;_0x27de2f['forEach'](_0xc5110e=>_0xc5110e[_0x368d79(0x13f)]()),_0x27de2f[_0x368d79(0x121)]();})),_0x4b1330[_0x52b589(0x102)](this[_0x52b589(0x133)]['onCommandExecuted'](_0x3ca715=>{var _0x291f5a=_0x52b589,_0x48b8d8;if(_0x3ca715[_0x291f5a(0xca)]!==_0x2e9263[_0x291f5a(0xa4)][_0x291f5a(0xdb)]||!this[_0x291f5a(0x10e)][_0x291f5a(0xe8)](_0x3ca715['id']))return;const {id:_0x2afca2}=_0x3ca715;let _0x33ef85;_0x27de2f[_0x291f5a(0xe3)](_0x2afca2)?_0x33ef85=_0x27de2f[_0x291f5a(0xf4)](_0x2afca2):(_0x33ef85=new _0x36581d[(_0x291f5a(0x129))](),_0x27de2f[_0x291f5a(0xb3)](_0x2afca2,_0x33ef85),_0x33ef85[_0x291f5a(0x93)](_0xd1fe20[_0x291f5a(0x126)]((_0x48b8d8=this['_configService']['getConfig'](_0x232aff))!=null?_0x48b8d8:_0x467569,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4810a8=>{var _0x276e31=_0x291f5a;this['_collabSession'][_0x276e31(0x101)]({'eventID':_0x1bb602[_0x276e31(0x17f)][_0x276e31(0x9f)],'data':{'unitID':this[_0x276e31(0x137)],'operations':{[_0x4810a8['id']]:{'id':_0x4810a8['id'],'params':JSON['stringify'](_0x4810a8[_0x276e31(0x117)])}}}},this[_0x276e31(0x137)]);})),_0x33ef85['next'](_0x3ca715);})),this[_0x52b589(0x10e)][_0x52b589(0x120)](this[_0x52b589(0x137)])[_0x52b589(0xcd)](_0x4914ae=>this[_0x52b589(0x12e)][_0x52b589(0x101)]({'eventID':_0x1bb602[_0x52b589(0x17f)][_0x52b589(0x9f)],'data':{'unitID':this['_unitID'],'operations':{[_0x4914ae['id']]:{'id':_0x4914ae['id'],'params':JSON[_0x52b589(0x14e)](_0x4914ae[_0x52b589(0x117)])}}}},this[_0x52b589(0x137)]));}['_stopPresenting'](){var _0x3f002f=_0x3f4273,_0x1993ec;this[_0x3f002f(0x142)]['next'](_0x3f002f(0x11a)),(_0x1993ec=this[_0x3f002f(0xc7)])==null||_0x1993ec[_0x3f002f(0x150)](),this['_commandDisposable']=null;}[_0x3f4273(0xae)](){var _0x1bac2e=_0x3f4273,_0x183362;(_0x183362=this['_commandDisposable'])==null||_0x183362[_0x1bac2e(0x150)](),this['_status$'][_0x1bac2e(0xbf)](_0x1bac2e(0xd4));}[_0x3f4273(0x14d)](){var _0x4a4f3c=_0x3f4273,_0x1c6965;this[_0x4a4f3c(0x142)][_0x4a4f3c(0xbf)](_0x4a4f3c(0x11a)),(_0x1c6965=this[_0x4a4f3c(0xc7)])==null||_0x1c6965[_0x4a4f3c(0x150)](),this[_0x4a4f3c(0xc7)]=null;}[_0x3f4273(0x134)](){var _0x2b7a69=_0x3f4273,_0xe7fe28;this[_0x2b7a69(0x142)][_0x2b7a69(0xbf)](_0x2b7a69(0xaa)),(_0xe7fe28=this['_commandDisposable'])==null||_0xe7fe28[_0x2b7a69(0x150)]();}[_0x3f4273(0x9a)](_0x1e52c3){var _0x371906=_0x3f4273;if([_0x371906(0x9b),_0x371906(0xaa),_0x371906(0xff)]['includes'](this[_0x371906(0x11c)])||!_0x1e52c3[_0x371906(0x14b)][_0x371906(0xf5)]||_0x1e52c3[_0x371906(0x14b)][_0x371906(0xf5)]===this['_collabSession'][_0x371906(0x12f)]())return;this['_status']===_0x371906(0x11a)&&this[_0x371906(0xae)]();const _0xdb10e5=_0x1e52c3[_0x371906(0x14b)][_0x371906(0xb6)];Object[_0x371906(0x17d)](_0xdb10e5)['forEach'](_0x4ebbc2=>{var _0x50c4a7=_0x371906;this[_0x50c4a7(0x133)][_0x50c4a7(0xdf)](_0x4ebbc2['id'],_0x4ebbc2[_0x50c4a7(0x117)]?JSON[_0x50c4a7(0xdd)](_0x4ebbc2[_0x50c4a7(0x117)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xd449df=_0x3f4273,_0x36935b;this['_status$'][_0xd449df(0xbf)](_0xd449df(0xff)),(_0x36935b=this[_0xd449df(0xc7)])==null||_0x36935b[_0xd449df(0x150)]();}[_0x3f4273(0x161)](){var _0x16e524=_0x3f4273;this[_0x16e524(0x142)]['next']('idle'),this[_0x16e524(0x178)]();}},_0x20ea13['LiveShareCoordinator']=_0x202b0d([_0x45700d(0x2,_0x2e9263['IConfigService']),_0x45700d(0x3,_0x2e9263[_0x3f4273(0x177)](_0x444486)),_0x45700d(0x4,_0x2e9263[_0x3f4273(0x84)])],_0x20ea13[_0x3f4273(0xc9)]);function _0x15d707(){var _0x29ce9a=_0x3f4273;const _0x49679a=_0x6c12b0['useDependency'](_0x20ea13[_0x29ce9a(0xa8)]),_0x39ff71=_0x6c12b0[_0x29ce9a(0x110)](_0x2e9263[_0x29ce9a(0xd8)]),_0x524911=_0x6c12b0['useObservable'](()=>_0x39ff71['getCurrentTypeOfUnit$'](_0x2e9263[_0x29ce9a(0xfc)][_0x29ce9a(0x124)]),void 0x0,!0x1,[]),[_0x15cedd,_0x2e40ea]=_0xaacce9[_0x29ce9a(0x158)](null),[_0x46ec7c,_0x580d5e]=_0xaacce9[_0x29ce9a(0x158)](_0x1369e9['IDLE']),_0x39437d=_0xaacce9[_0x29ce9a(0xc4)](null);return _0xaacce9['useEffect'](()=>(_0x524911&&_0x49679a['getLiveShareCoordinator'](_0x524911[_0x29ce9a(0xcf)]())['then'](_0x3e9397=>{var _0x47f405=_0x29ce9a;_0x2e40ea(_0x3e9397),_0x39437d[_0x47f405(0x17a)]=_0x3e9397[_0x47f405(0xfb)][_0x47f405(0x152)](_0x2f0f1f=>{_0x580d5e(_0x2f0f1f);});}),()=>{var _0x1c528b=_0x29ce9a,_0x41e3fa;(_0x41e3fa=_0x39437d[_0x1c528b(0x17a)])==null||_0x41e3fa[_0x1c528b(0xa5)](),_0x39437d[_0x1c528b(0x17a)]=null;}),[_0x524911,_0x49679a]),_0x15cedd?_0x175adc['jsx'](_0x5199a3[_0x29ce9a(0x13e)],{'align':'end','disabled':_0x46ec7c===_0x1369e9[_0x29ce9a(0x123)],'className':_0x29ce9a(0x96),'overlay':_0x175adc[_0x29ce9a(0x15b)](_0x489592,{'status':_0x46ec7c,'coordinator':_0x15cedd}),'children':_0x175adc['jsx'](_0x29ce9a(0x9e),{'className':_0x5199a3[_0x29ce9a(0x171)](_0x29ce9a(0x85),{'univer-cursor-not-allowed':_0x46ec7c===_0x1369e9[_0x29ce9a(0x123)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x46ec7c!==_0x1369e9[_0x29ce9a(0x123)]}),'type':_0x29ce9a(0x9e),'children':_0x175adc[_0x29ce9a(0x15b)](_0x27c244,{'className':'univer-size-4'})})}):null;}function _0x489592(_0x24a8fb){var _0x3fb7f9=_0x3f4273;const {status:_0x18404d,coordinator:_0x5a057f}=_0x24a8fb;switch(_0x18404d){case _0x1369e9[_0x3fb7f9(0xad)]:return _0x175adc[_0x3fb7f9(0x15b)](_0x208848,{'coordinator':_0x5a057f});case _0x1369e9[_0x3fb7f9(0xec)]:return _0x175adc[_0x3fb7f9(0x15b)](_0x2aab7c,{'coordinator':_0x5a057f});case _0x1369e9['NOT_FOLLOWING']:return _0x175adc[_0x3fb7f9(0x15b)](_0x3627b8,{'coordinator':_0x5a057f});case _0x1369e9[_0x3fb7f9(0x123)]:return _0x175adc[_0x3fb7f9(0x15b)](_0x22f33a,{});case _0x1369e9['PRESENTING']:return _0x175adc[_0x3fb7f9(0x15b)](_0x31abb2,{'coordinator':_0x5a057f});default:return null;}}function _0x208848(_0x1ac69b){var _0x5d9158=_0x3f4273;const {coordinator:_0x1b9428}=_0x1ac69b;return _0x175adc['jsxs'](_0x175adc[_0x5d9158(0x145)],{'children':[_0x175adc[_0x5d9158(0x15b)](_0x5d9158(0xee),{'className':_0x5d9158(0xde),'children':_0x5d9158(0x105)}),_0x175adc[_0x5d9158(0x15b)](_0x5199a3[_0x5d9158(0x10d)],{'onClick':()=>_0x1b9428[_0x5d9158(0xac)](),'children':'Start'})]});}function _0x2aab7c(_0x57c5d2){var _0x1b6a34=_0x3f4273;const {coordinator:_0x427264}=_0x57c5d2;return _0x175adc[_0x1b6a34(0xb4)](_0x175adc[_0x1b6a34(0x145)],{'children':[_0x175adc['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1b6a34(0xdc)}),_0x175adc[_0x1b6a34(0x15b)](_0x5199a3[_0x1b6a34(0x10d)],{'onClick':()=>_0x427264['stopFollowing'](),'children':_0x1b6a34(0xfa)})]});}function _0x3627b8(_0x3b46e4){var _0x4cd242=_0x3f4273;const {coordinator:_0x325757}=_0x3b46e4;return _0x175adc[_0x4cd242(0xb4)](_0x175adc[_0x4cd242(0x145)],{'children':[_0x175adc[_0x4cd242(0x15b)](_0x4cd242(0xee),{'className':_0x4cd242(0xde),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x175adc[_0x4cd242(0x15b)](_0x5199a3['Button'],{'variant':'text','onClick':()=>_0x325757['startFollowing'](),'children':_0x4cd242(0xf9)})]});}function _0x31abb2(_0x4ae3f5){var _0x1927bf=_0x3f4273;const {coordinator:_0x39595d}=_0x4ae3f5;return _0x175adc[_0x1927bf(0xb4)](_0x175adc[_0x1927bf(0x145)],{'children':[_0x175adc['jsx'](_0x1927bf(0xee),{'className':_0x1927bf(0xde),'children':_0x1927bf(0x16a)}),_0x175adc[_0x1927bf(0x15b)](_0x5199a3[_0x1927bf(0x10d)],{'variant':_0x1927bf(0xc0),'onClick':()=>_0x39595d['stopPresenting'](),'children':_0x1927bf(0x15e)})]});}function _0x22f33a(){var _0x55eb61=_0x3f4273;return _0x175adc['jsx'](_0x175adc[_0x55eb61(0x145)],{'children':_0x55eb61(0xf6)});}var _0x4a43f8=Object[_0x3f4273(0x139)],_0x276156=(_0x2113eb,_0x1246a3,_0x293290,_0x503d21)=>{var _0x3ebeae=_0x3f4273;for(var _0x5a0445=_0x503d21>0x1?void 0x0:_0x503d21?_0x4a43f8(_0x1246a3,_0x293290):_0x1246a3,_0x4de32e=_0x2113eb[_0x3ebeae(0x148)]-0x1,_0x95c549;_0x4de32e>=0x0;_0x4de32e--)(_0x95c549=_0x2113eb[_0x4de32e])&&(_0x5a0445=_0x95c549(_0x5a0445)||_0x5a0445);return _0x5a0445;},_0x25c3a1=(_0x1f101e,_0x2639c1)=>(_0x2bf301,_0xd485e7)=>_0x2639c1(_0x2bf301,_0xd485e7,_0x1f101e);_0x20ea13[_0x3f4273(0x15d)]=class extends _0x2e9263[_0x3f4273(0xc5)]{constructor(_0xee5709,_0x4d30fa){var _0x28ff9c=_0x3f4273;super(),this[_0x28ff9c(0xf7)]=_0xee5709,this['_uiPartsService']=_0x4d30fa,this[_0x28ff9c(0xc6)]();}['_mountLiveShare'](){var _0x4b87e2=_0x3f4273;this[_0x4b87e2(0xc8)](this['_uiPartsService']['registerComponent'](_0x6c12b0[_0x4b87e2(0xce)][_0x4b87e2(0x173)],()=>_0x6c12b0[_0x4b87e2(0x9c)](_0x15d707,this[_0x4b87e2(0xf7)])));}},_0x20ea13['DesktopLiveShareController']=_0x276156([_0x25c3a1(0x0,_0x2e9263[_0x3f4273(0x177)](_0x2e9263[_0x3f4273(0x111)])),_0x25c3a1(0x1,_0x6c12b0[_0x3f4273(0x15c)])],_0x20ea13[_0x3f4273(0x15d)]);var _0x5511ba=Object[_0x3f4273(0xf2)],_0x19d311=Object[_0x3f4273(0x139)],_0x41f62d=(_0x2aad1b,_0x3bc124,_0x153f46)=>_0x3bc124 in _0x2aad1b?_0x5511ba(_0x2aad1b,_0x3bc124,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x153f46}):_0x2aad1b[_0x3bc124]=_0x153f46,_0x24d4bb=(_0x56b6ad,_0x3d2f1a,_0x1e3bb0,_0x1dd341)=>{for(var _0x28d419=_0x1dd341>0x1?void 0x0:_0x1dd341?_0x19d311(_0x3d2f1a,_0x1e3bb0):_0x3d2f1a,_0xd3e4d5=_0x56b6ad['length']-0x1,_0x438482;_0xd3e4d5>=0x0;_0xd3e4d5--)(_0x438482=_0x56b6ad[_0xd3e4d5])&&(_0x28d419=_0x438482(_0x28d419)||_0x28d419);return _0x28d419;},_0x4d7ae0=(_0x2b17c2,_0x36e51c)=>(_0x617430,_0x458bbf)=>_0x36e51c(_0x617430,_0x458bbf,_0x2b17c2),_0x896fcf=(_0x329446,_0x22e198,_0x25b1b5)=>_0x41f62d(_0x329446,typeof _0x22e198!=_0x3f4273(0x122)?_0x22e198+'':_0x22e198,_0x25b1b5);const _0x2d3bdd=_0x3f4273(0x138);_0x20ea13[_0x3f4273(0xda)]=class extends _0x2e9263[_0x3f4273(0xb7)]{constructor(_0x321cf4=_0x537ed2,_0x1eac74,_0x35c997){var _0x526aab=_0x3f4273;super(),this[_0x526aab(0x12d)]=_0x321cf4,this['_injector']=_0x1eac74,this[_0x526aab(0x153)]=_0x35c997;const {..._0x40f97e}=_0x2e9263[_0x526aab(0xa9)]({},_0x537ed2,this[_0x526aab(0x12d)]);this['_configService'][_0x526aab(0x86)](_0x1e5d64,_0x40f97e);}['onStarting'](){var _0x2225e1=_0x3f4273;_0x2e9263[_0x2225e1(0x104)](this[_0x2225e1(0xf7)],_0x2e9263['mergeOverrideWithDependencies']([[_0x444486],[_0x20ea13[_0x2225e1(0xa8)]],[_0x5ddad0],[_0x20ea13['DesktopLiveShareController']]],this['_config'][_0x2225e1(0xa0)])),_0x2e9263[_0x2225e1(0x155)](this[_0x2225e1(0xf7)],[[_0x5ddad0]]);}[_0x3f4273(0x15f)](){var _0x56b997=_0x3f4273;_0x2e9263[_0x56b997(0x155)](this[_0x56b997(0xf7)],[[_0x20ea13[_0x56b997(0x15d)]]]);}},_0x896fcf(_0x20ea13[_0x3f4273(0xda)],_0x3f4273(0xca),_0x2e9263['UniverInstanceType'][_0x3f4273(0x9d)]),_0x896fcf(_0x20ea13[_0x3f4273(0xda)],_0x3f4273(0xef),_0x2d3bdd),_0x20ea13[_0x3f4273(0xda)]=_0x24d4bb([_0x2e9263['DependentOn'](_0x513dfa[_0x3f4273(0xd6)]),_0x4d7ae0(0x1,_0x2e9263[_0x3f4273(0x177)](_0x2e9263[_0x3f4273(0x111)])),_0x4d7ae0(0x2,_0x2e9263['IConfigService'])],_0x20ea13[_0x3f4273(0xda)]),_0x20ea13[_0x3f4273(0x11d)]=_0x15d707,_0x20ea13[_0x3f4273(0x10c)]=_0x444486,_0x20ea13[_0x3f4273(0x156)]=_0x1369e9,Object[_0x3f4273(0xf2)](_0x20ea13,Symbol['toStringTag'],{'value':_0x3f4273(0xc3)});}));
1
+ function _0x1fe8(_0x54ed86,_0x1debd1){var _0x5dc636=_0x5dc6();return _0x1fe8=function(_0x1fe81c,_0x907ba3){_0x1fe81c=_0x1fe81c-0x14c;var _0x4e022c=_0x5dc636[_0x1fe81c];return _0x4e022c;},_0x1fe8(_0x54ed86,_0x1debd1);}function _0x5dc6(){var _0x4f8fd7=['univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_mountLiveShare','merge','rxjs','then','_configService','_commandService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','DependentOn','Start','_entities','not-following','svg','_injector','_handleTerminate','clsx','useDependency','concat','data','UNIVER_SHEET','_startPresenting','useState','registerDependencies','_univerInstanceService','disposeWithMe','Disposable','use','univer-size-4','1031552yvACTA','pluginName','4DCNcHF','getUnitId','xlink:href','NOT_FOLLOWING','_handleOnline','defIds','getValue','takeUntil','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','propertyIsEnumerable','1em','idle','CollaborationEvent','5pbSObY','complete','extend','substring','delete','RxDisposable','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','stringify','_liveShareService','string','getConfig','current','button','LiveShareStatus','jsxs','forwardRef','dispose$','UniverCore','_handleOffline','SetWorksheetActiveOperation','@univerjs-pro/collaboration-client','pipe','createElement','Dropdown','div','memberID','LiveShareIcon','set','replace','params','UniverCollaborationClientPlugin','className','map','tag','DesktopLiveShareController','You\x27re\x20presenting\x20the\x20document','_status$','@univerjs/ui','445194UsyMjP','_collabSessionService','Fragment','registerInitialStateReporter','exports','UNIVER_UNKNOWN','801051ZcwZDZ','defs','tryStartPresenting','univerjs-icon\x20univerjs-icon-','_reporters','length','IDLE','CollaborationSessionService','symbol','startFollowing','UniverProCollaborationClient','261765zPFTdI','You\x27re\x20not\x20following\x20the\x20presenter','React','includes','assign','shouldShareOperation','throttleTime','CommandType','LiveShareController','SAME_OPERATION_SHARE_INTERVAL','displayName','useObservable','getMemberID','colorChannel1','@univerjs/design','evenodd','end','getOwnPropertySymbols','asObservable','onCommandExecuted','Plugin','IUIPartsService','InsertSheetMutation','live-share-icon','LIVESHARE_OPERATION','PRESENTING','_fetchOperations','toStringTag','Subject','touchDependencies','HEADER_MENU','ICommandService','unitId','object','onRendered','Start\x20following','DisposableCollection','stopFollowing','init','@univerjs-pro/collaboration','call','rxjs/operators','UniverInstanceType','send','_collabSession','connectInjector','getLiveShareCoordinator','presenting','UniverSheets','children','http://www.w3.org/2000/svg','getOwnPropertyDescriptor','attrs','fill','registerSharedOperation','SetZoomRatioOperation','_status','createInstance','getTypeOfUnitAdded$','currentColor','Injector','_init','next','mutations','indexOf','7110130QVixZS','useRef','@univerjs/sheets-ui','getCurrentTypeOfUnit$','reverse','status$','OPERATION','from','4498DnACCd','react/jsx-runtime','3459627xOOtqD','_handleNewChangeSets','LiveShareCoordinator','_stopPresenting','stopPresenting','_config','operations','add','parse','_startLiveShareCoordinator','react','forEach','random','idSuffix','LIVESHARE_TERMINATE','trim','_presenter','Module','get','_startFollowing','@univerjs/sheets','LIVESHARE_NEW_HOST','subscribe','path','BehaviorSubject','SessionStatus','presenter','icon','_sharedOperations','text','offline','jsx','@univerjs/core','UniverLiveSharePlugin','_stopFollowing','hasOwnProperty','ONLINE','has','mask','unsubscribe','_beIdle','IConfigService','prototype','LIVESHARE_REQUEST_HOST','BuiltInUIPart','_handleNewHost','0\x200\x2017\x2017','_unitID','You\x27are\x20offline.','sessionStatus$','defineProperty','_handleOperation','LiveShareService','apply','amd','none','operators','Inject','8EtBXNT','NEW_CHANGESETS','function','_commandDisposable','toDisposable','dispose','_uiPartsService','event$','OFFLINE','live-share.config','entries','Stop\x20presenting'];_0x5dc6=function(){return _0x4f8fd7;};return _0x5dc6();}(function(_0x33af02,_0x1aa6e6){var _0x98ac5d=_0x1fe8,_0x4ad44e=_0x33af02();while(!![]){try{var _0x1d87b2=parseInt(_0x98ac5d(0x20e))/0x1+-parseInt(_0x98ac5d(0x17d))/0x2+-parseInt(_0x98ac5d(0x1ba))/0x3*(parseInt(_0x98ac5d(0x17f))/0x4)+-parseInt(_0x98ac5d(0x18d))/0x5*(-parseInt(_0x98ac5d(0x1b4))/0x6)+parseInt(_0x98ac5d(0x1c5))/0x7+parseInt(_0x98ac5d(0x155))/0x8*(parseInt(_0x98ac5d(0x210))/0x9)+parseInt(_0x98ac5d(0x206))/0xa;if(_0x1d87b2===_0x1aa6e6)break;else _0x4ad44e['push'](_0x4ad44e['shift']());}catch(_0x151c30){_0x4ad44e['push'](_0x4ad44e['shift']());}}}(_0x5dc6,0x68aab),function(_0x374407,_0x3a06a5){var _0x3b3104=_0x1fe8;typeof exports==_0x3b3104(0x1e6)&&typeof module<'u'?_0x3a06a5(exports,require(_0x3b3104(0x1a2)),require(_0x3b3104(0x230)),require(_0x3b3104(0x224)),require(_0x3b3104(0x208)),require(_0x3b3104(0x1b3)),require('react/jsx-runtime'),require(_0x3b3104(0x1d3)),require(_0x3b3104(0x21a)),require('@univerjs-pro/collaboration'),require(_0x3b3104(0x164)),require(_0x3b3104(0x1ee))):typeof define==_0x3b3104(0x157)&&define[_0x3b3104(0x151)]?define([_0x3b3104(0x1b8),_0x3b3104(0x1a2),_0x3b3104(0x230),_0x3b3104(0x224),_0x3b3104(0x208),_0x3b3104(0x1b3),_0x3b3104(0x20f),_0x3b3104(0x1d3),_0x3b3104(0x21a),_0x3b3104(0x1ec),'rxjs',_0x3b3104(0x1ee)],_0x3a06a5):(_0x374407=typeof globalThis<'u'?globalThis:_0x374407||self,_0x3a06a5(_0x374407['UniverProLiveShare']={},_0x374407[_0x3b3104(0x1c4)],_0x374407[_0x3b3104(0x19f)],_0x374407[_0x3b3104(0x1f5)],_0x374407['UniverSheetsUi'],_0x374407['UniverUi'],_0x374407[_0x3b3104(0x1c7)],_0x374407['UniverDesign'],_0x374407[_0x3b3104(0x1c7)],_0x374407['UniverProCollaboration'],_0x374407[_0x3b3104(0x164)],_0x374407[_0x3b3104(0x164)][_0x3b3104(0x153)]));}(this,function(_0x12dabc,_0x5747cc,_0x3a9025,_0x1c2e44,_0x247577,_0x5436a1,_0x878fb2,_0x3d1390,_0x1cdf56,_0x44e43a,_0x51a3c4,_0x2c9909){'use strict';var _0x5c8a51=_0x1fe8;var _0x58d39b=Object[_0x5c8a51(0x14d)],_0x38fd6f=(_0x4cd867,_0x1f6273,_0x110783)=>_0x1f6273 in _0x4cd867?_0x58d39b(_0x4cd867,_0x1f6273,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x110783}):_0x4cd867[_0x1f6273]=_0x110783,_0x71f325=(_0x2f705a,_0x405766,_0x56673a)=>_0x38fd6f(_0x2f705a,typeof _0x405766!=_0x5c8a51(0x1c2)?_0x405766+'':_0x405766,_0x56673a);const _0x524f5f=_0x5c8a51(0x15e),_0x215b3f={};class _0x210719 extends _0x3a9025['Disposable']{constructor(){var _0x56d2da=_0x5c8a51;super(...arguments),_0x71f325(this,_0x56d2da(0x22c),new Set()),_0x71f325(this,_0x56d2da(0x1be),new Set());}[_0x5c8a51(0x1fb)](_0x245bc1){var _0x1f7156=_0x5c8a51;return this[_0x1f7156(0x22c)][_0x1f7156(0x217)](_0x245bc1),_0x3a9025[_0x1f7156(0x159)](()=>this[_0x1f7156(0x22c)]['delete'](_0x245bc1));}[_0x5c8a51(0x1b7)](_0xce6eb5){var _0x495afd=_0x5c8a51;return this[_0x495afd(0x1be)][_0x495afd(0x217)](_0xce6eb5),_0x3a9025[_0x495afd(0x159)](()=>this[_0x495afd(0x1be)][_0x495afd(0x191)](_0xce6eb5));}[_0x5c8a51(0x1ca)](_0x3457fb){var _0x37a39a=_0x5c8a51;return this[_0x37a39a(0x22c)][_0x37a39a(0x235)](_0x3457fb);}['getInitialStates'](_0x117033){var _0x5e9603=_0x5c8a51;return Array[_0x5e9603(0x20d)](this['_reporters'])['map'](_0x2dcf96=>_0x2dcf96(_0x117033));}}var _0x2bf51c=Object['getOwnPropertyDescriptor'],_0x325238=(_0x360770,_0x2725d6,_0x232cf8,_0x1e92a2)=>{var _0x4b3548=_0x5c8a51;for(var _0x3b7093=_0x1e92a2>0x1?void 0x0:_0x1e92a2?_0x2bf51c(_0x2725d6,_0x232cf8):_0x2725d6,_0x6d7818=_0x360770[_0x4b3548(0x1bf)]-0x1,_0xa0f5f7;_0x6d7818>=0x0;_0x6d7818--)(_0xa0f5f7=_0x360770[_0x6d7818])&&(_0x3b7093=_0xa0f5f7(_0x3b7093)||_0x3b7093);return _0x3b7093;},_0x1ed23b=(_0x613dbe,_0x311000)=>(_0x25bde6,_0x10fc0d)=>_0x311000(_0x25bde6,_0x10fc0d,_0x613dbe);let _0x437956=class extends _0x3a9025[_0x5c8a51(0x17a)]{constructor(_0xb63e1a){var _0x588be9=_0x5c8a51;super(),this[_0x588be9(0x196)]=_0xb63e1a,this[_0x588be9(0x202)]();}[_0x5c8a51(0x202)](){var _0x7990aa=_0x5c8a51;[_0x247577[_0x7990aa(0x1fc)]['id'],_0x247577['SetScrollOperation']['id'],_0x1c2e44[_0x7990aa(0x1a1)]['id']][_0x7990aa(0x21b)](_0x5927c2=>{var _0x548fb6=_0x7990aa;this['disposeWithMe'](this[_0x548fb6(0x196)]['registerSharedOperation'](_0x5927c2));});}};_0x437956=_0x325238([_0x1ed23b(0x0,_0x3a9025[_0x5c8a51(0x154)](_0x210719))],_0x437956);var _0x426a46=function(){var _0x1209bc=_0x5c8a51;return _0x426a46=Object[_0x1209bc(0x1c9)]||function(_0xb8ac03){var _0x5cdfb3=_0x1209bc;for(var _0x9455ce,_0x586a03=0x1,_0x5176ea=arguments[_0x5cdfb3(0x1bf)];_0x586a03<_0x5176ea;_0x586a03++){_0x9455ce=arguments[_0x586a03];for(var _0x2fa172 in _0x9455ce)Object['prototype'][_0x5cdfb3(0x233)][_0x5cdfb3(0x1ed)](_0x9455ce,_0x2fa172)&&(_0xb8ac03[_0x2fa172]=_0x9455ce[_0x2fa172]);}return _0xb8ac03;},_0x426a46[_0x1209bc(0x150)](this,arguments);},_0x47c1c1=function(_0x3ca6e1,_0x49e36d){var _0x339320=_0x5c8a51,_0x302d8e={};for(var _0x150a78 in _0x3ca6e1)Object[_0x339320(0x23a)][_0x339320(0x233)][_0x339320(0x1ed)](_0x3ca6e1,_0x150a78)&&_0x49e36d['indexOf'](_0x150a78)<0x0&&(_0x302d8e[_0x150a78]=_0x3ca6e1[_0x150a78]);if(_0x3ca6e1!=null&&typeof Object[_0x339320(0x1d6)]==_0x339320(0x157)){for(var _0x3b0450=0x0,_0x150a78=Object[_0x339320(0x1d6)](_0x3ca6e1);_0x3b0450<_0x150a78[_0x339320(0x1bf)];_0x3b0450++)_0x49e36d[_0x339320(0x205)](_0x150a78[_0x3b0450])<0x0&&Object[_0x339320(0x23a)][_0x339320(0x189)][_0x339320(0x1ed)](_0x3ca6e1,_0x150a78[_0x3b0450])&&(_0x302d8e[_0x150a78[_0x3b0450]]=_0x3ca6e1[_0x150a78[_0x3b0450]]);}return _0x302d8e;},_0x27939e=_0x1cdf56[_0x5c8a51(0x19d)](function(_0x3b347e,_0x5668fc){var _0x1b790b=_0x5c8a51,_0x28d9fd=_0x3b347e['icon'],_0xa27ba1=_0x3b347e['id'],_0x1d0d6b=_0x3b347e[_0x1b790b(0x1ad)],_0x49d3fa=_0x3b347e[_0x1b790b(0x18f)],_0x41df6b=_0x47c1c1(_0x3b347e,[_0x1b790b(0x22b),'id',_0x1b790b(0x1ad),'extend']),_0xd73e2d=_0x1b790b(0x1bd)['concat'](_0xa27ba1,'\x20')[_0x1b790b(0x172)](_0x1d0d6b||'')[_0x1b790b(0x21f)](),_0x29f241=_0x1cdf56[_0x1b790b(0x207)]('_'[_0x1b790b(0x172)](_0x33bc37()));return _0x19f154(_0x28d9fd,''[_0x1b790b(0x172)](_0xa27ba1),{'defIds':_0x28d9fd[_0x1b790b(0x184)],'idSuffix':_0x29f241['current']},_0x426a46({'ref':_0x5668fc,'className':_0xd73e2d},_0x41df6b),_0x49d3fa);});function _0x19f154(_0x5d7a39,_0x4e3aa8,_0x443443,_0x3085e8,_0x5205ba){var _0x290339=_0x5c8a51;return _0x1cdf56[_0x290339(0x1a4)](_0x5d7a39[_0x290339(0x1af)],_0x426a46(_0x426a46({'key':_0x4e3aa8},_0x2e338e(_0x5d7a39,_0x443443,_0x5205ba)),_0x3085e8),(_0x42150e(_0x5d7a39,_0x443443)[_0x290339(0x1f6)]||[])[_0x290339(0x1ae)](function(_0x3091c3,_0x1e399a){var _0x37c6a8=_0x290339;return _0x19f154(_0x3091c3,''[_0x37c6a8(0x172)](_0x4e3aa8,'-')[_0x37c6a8(0x172)](_0x5d7a39[_0x37c6a8(0x1af)],'-')[_0x37c6a8(0x172)](_0x1e399a),_0x443443,void 0x0,_0x5205ba);}));}function _0x2e338e(_0xb09612,_0x5001e3,_0x4b190f){var _0xdc68f2=_0x5c8a51,_0x5eeae0=_0x426a46({},_0xb09612[_0xdc68f2(0x1f9)]);_0x4b190f!=null&&_0x4b190f[_0xdc68f2(0x1d2)]&&_0x5eeae0[_0xdc68f2(0x1fa)]===_0xdc68f2(0x1d2)&&(_0x5eeae0[_0xdc68f2(0x1fa)]=_0x4b190f[_0xdc68f2(0x1d2)]),_0xb09612[_0xdc68f2(0x1af)]===_0xdc68f2(0x236)&&_0x5eeae0['id']&&(_0x5eeae0['id']=_0x5eeae0['id']+_0x5001e3['idSuffix']),Object['entries'](_0x5eeae0)[_0xdc68f2(0x21b)](function(_0x190b86){var _0x30f362=_0xdc68f2,_0x124062=_0x190b86[0x0],_0x150d84=_0x190b86[0x1];_0x124062===_0x30f362(0x236)&&typeof _0x150d84=='string'&&(_0x5eeae0[_0x124062]=_0x150d84[_0x30f362(0x1aa)](/url\(#(.*)\)/,'url(#$1'[_0x30f362(0x172)](_0x5001e3[_0x30f362(0x21d)],')')));});var _0x4304f7=_0x5001e3[_0xdc68f2(0x184)];return!_0x4304f7||_0x4304f7[_0xdc68f2(0x1bf)]===0x0||(_0xb09612[_0xdc68f2(0x1af)]===_0xdc68f2(0x17b)&&_0x5eeae0[_0xdc68f2(0x181)]&&(_0x5eeae0['xlink:href']=_0x5eeae0['xlink:href']+_0x5001e3[_0xdc68f2(0x21d)]),Object[_0xdc68f2(0x15f)](_0x5eeae0)[_0xdc68f2(0x21b)](function(_0x37c9cf){var _0x567c8d=_0xdc68f2,_0x40f411=_0x37c9cf[0x0],_0x22b9ee=_0x37c9cf[0x1];typeof _0x22b9ee==_0x567c8d(0x197)&&(_0x5eeae0[_0x40f411]=_0x22b9ee[_0x567c8d(0x1aa)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x5001e3[_0x567c8d(0x21d)],')')));})),_0x5eeae0;}function _0x42150e(_0x3998a2,_0x2ce8bf){var _0x126a5f=_0x5c8a51,_0x4ca95f,_0x4cabc9=_0x2ce8bf[_0x126a5f(0x184)];return!_0x4cabc9||_0x4cabc9[_0x126a5f(0x1bf)]===0x0?_0x3998a2:_0x3998a2[_0x126a5f(0x1af)]===_0x126a5f(0x1bb)&&(!((_0x4ca95f=_0x3998a2[_0x126a5f(0x1f6)])===null||_0x4ca95f===void 0x0)&&_0x4ca95f[_0x126a5f(0x1bf)])?_0x426a46(_0x426a46({},_0x3998a2),{'children':_0x3998a2['children'][_0x126a5f(0x1ae)](function(_0x576f6a){var _0x4567c1=_0x126a5f;return typeof _0x576f6a['attrs']['id']==_0x4567c1(0x197)&&_0x4cabc9&&_0x4cabc9[_0x4567c1(0x1c8)](_0x576f6a[_0x4567c1(0x1f9)]['id'])?_0x426a46(_0x426a46({},_0x576f6a),{'attrs':_0x426a46(_0x426a46({},_0x576f6a['attrs']),{'id':_0x576f6a[_0x4567c1(0x1f9)]['id']+_0x2ce8bf['idSuffix']})}):_0x576f6a;})}):_0x3998a2;}function _0x33bc37(){var _0x410258=_0x5c8a51;return Math[_0x410258(0x21c)]()['toString'](0x24)[_0x410258(0x190)](0x2,0x8);}_0x27939e[_0x5c8a51(0x1cf)]='UniverIcon';var _0x343bbf={'tag':_0x5c8a51(0x16d),'attrs':{'xmlns':_0x5c8a51(0x1f7),'fill':_0x5c8a51(0x152),'viewBox':_0x5c8a51(0x23e),'width':_0x5c8a51(0x18a),'height':_0x5c8a51(0x18a)},'children':[{'tag':_0x5c8a51(0x227),'attrs':{'fill':_0x5c8a51(0x200),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x5c8a51(0x227),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5c8a51(0x1d4),'clipRule':'evenodd'}}]},_0x12278c=_0x1cdf56['forwardRef'](function(_0xa2cd9c,_0x40f8ed){var _0x4648e0=_0x5c8a51;return _0x1cdf56[_0x4648e0(0x1a4)](_0x27939e,Object['assign']({},_0xa2cd9c,{'id':_0x4648e0(0x1dc),'ref':_0x40f8ed,'icon':_0x343bbf}));});_0x12278c[_0x5c8a51(0x1cf)]=_0x5c8a51(0x1a8);var _0x5c4c41=Object['getOwnPropertyDescriptor'],_0x177b29=(_0x11474a,_0x1bd58e,_0x5757c0,_0x5d94ae)=>{for(var _0x41fe43=_0x5d94ae>0x1?void 0x0:_0x5d94ae?_0x5c4c41(_0x1bd58e,_0x5757c0):_0x1bd58e,_0x242556=_0x11474a['length']-0x1,_0x1dd1eb;_0x242556>=0x0;_0x242556--)(_0x1dd1eb=_0x11474a[_0x242556])&&(_0x41fe43=_0x1dd1eb(_0x41fe43)||_0x41fe43);return _0x41fe43;},_0x508656=(_0x378ccd,_0x15a1af)=>(_0x102b64,_0x312b5e)=>_0x15a1af(_0x102b64,_0x312b5e,_0x378ccd);_0x12dabc[_0x5c8a51(0x1cd)]=class extends _0x3a9025[_0x5c8a51(0x192)]{constructor(_0x2b8909,_0x54603a,_0x37a163){var _0x334b60=_0x5c8a51;super(),_0x71f325(this,_0x334b60(0x16b),new Map()),(this[_0x334b60(0x178)]=_0x2b8909,this[_0x334b60(0x16e)]=_0x54603a,this[_0x334b60(0x1b5)]=_0x37a163,this[_0x334b60(0x202)]());}async[_0x5c8a51(0x1f3)](_0x16025e){var _0x457905=_0x5c8a51;return this[_0x457905(0x16b)][_0x457905(0x235)](_0x16025e)||await this['_startLiveShareCoordinator'](_0x16025e),this[_0x457905(0x16b)][_0x457905(0x222)](_0x16025e);}[_0x5c8a51(0x202)](){var _0x51a4b5=_0x5c8a51;this[_0x51a4b5(0x178)][_0x51a4b5(0x1ff)](_0x3a9025[_0x51a4b5(0x1ef)][_0x51a4b5(0x174)])['pipe'](_0x2c9909[_0x51a4b5(0x186)](this[_0x51a4b5(0x19e)]))[_0x51a4b5(0x226)](async _0x3be5d9=>{var _0x2f854f=_0x51a4b5;const _0x13a9b7=_0x3be5d9['getUnitId']();this['_entities'][_0x2f854f(0x235)](_0x13a9b7)||this[_0x2f854f(0x219)](_0x13a9b7);}),this[_0x51a4b5(0x178)]['getTypeOfUnitDisposed$'](_0x3a9025[_0x51a4b5(0x1ef)][_0x51a4b5(0x174)])[_0x51a4b5(0x1a3)](_0x2c9909[_0x51a4b5(0x186)](this[_0x51a4b5(0x19e)]))[_0x51a4b5(0x226)](_0x6b7a59=>{var _0x268add=_0x51a4b5;const _0x26ee6f=_0x6b7a59[_0x268add(0x180)](),_0x27bf64=this[_0x268add(0x16b)][_0x268add(0x222)](_0x26ee6f);_0x27bf64==null||_0x27bf64[_0x268add(0x15a)]();});}async[_0x5c8a51(0x219)](_0x52b114){var _0x59ecb3=_0x5c8a51;const _0x349c3b=await this[_0x59ecb3(0x1b5)]['requireSession'](_0x52b114),_0x23fdc3=this[_0x59ecb3(0x16e)][_0x59ecb3(0x1fe)](_0x12dabc[_0x59ecb3(0x212)],_0x52b114,_0x349c3b);return _0x23fdc3[_0x59ecb3(0x1eb)](),this[_0x59ecb3(0x16b)][_0x59ecb3(0x1a9)](_0x52b114,_0x23fdc3),_0x23fdc3;}},_0x12dabc[_0x5c8a51(0x1cd)]=_0x177b29([_0x508656(0x0,_0x3a9025[_0x5c8a51(0x188)]),_0x508656(0x1,_0x3a9025[_0x5c8a51(0x154)](_0x3a9025[_0x5c8a51(0x201)])),_0x508656(0x2,_0x3a9025[_0x5c8a51(0x154)](_0x5747cc[_0x5c8a51(0x1c1)]))],_0x12dabc[_0x5c8a51(0x1cd)]);var _0x2eb10d=(_0x2179d6=>(_0x2179d6[_0x5c8a51(0x15d)]=_0x5c8a51(0x22e),_0x2179d6['IDLE']='idle',_0x2179d6['FOLLOWING']=_0x5c8a51(0x193),_0x2179d6[_0x5c8a51(0x182)]=_0x5c8a51(0x16c),_0x2179d6[_0x5c8a51(0x1de)]=_0x5c8a51(0x1f4),_0x2179d6))(_0x2eb10d||{});const _0x5c396e=_0x5c8a51(0x1ce),_0x25b84d=0xc8;_0x12dabc[_0x5c8a51(0x212)]=class extends _0x3a9025['RxDisposable']{constructor(_0x30c61a,_0x3dc6e2,_0x21cd0c,_0x38793b,_0x41cc6b){var _0x167687=_0x5c8a51;super(),_0x71f325(this,_0x167687(0x1b2),new _0x51a3c4[(_0x167687(0x228))]('idle')),_0x71f325(this,_0x167687(0x20b),this[_0x167687(0x1b2)][_0x167687(0x1d7)]()),_0x71f325(this,'_init',!0x1),_0x71f325(this,_0x167687(0x158),null),_0x71f325(this,'_presenter',null),(this[_0x167687(0x23f)]=_0x30c61a,this['_collabSession']=_0x3dc6e2,this[_0x167687(0x166)]=_0x21cd0c,this[_0x167687(0x196)]=_0x38793b,this['_commandService']=_0x41cc6b);}get[_0x5c8a51(0x1fd)](){var _0x5a5feb=_0x5c8a51;return this[_0x5a5feb(0x1b2)][_0x5a5feb(0x185)]();}[_0x5c8a51(0x15a)](){var _0x50e081=_0x5c8a51,_0x501dd2;(_0x501dd2=this[_0x50e081(0x158)])==null||_0x501dd2['dispose'](),this[_0x50e081(0x1b2)]['next']('idle'),this['_status$'][_0x50e081(0x18e)]();}['init'](){var _0x310aea=_0x5c8a51;this['_init']||(this[_0x310aea(0x202)]=!0x0,this[_0x310aea(0x1f1)][_0x310aea(0x14c)][_0x310aea(0x1a3)](_0x2c9909['takeUntil'](this[_0x310aea(0x19e)]))[_0x310aea(0x226)](_0x500ac8=>{var _0x261635=_0x310aea;switch(_0x500ac8){case _0x5747cc['SessionStatus'][_0x261635(0x15d)]:this[_0x261635(0x1a0)]();break;case _0x5747cc[_0x261635(0x229)][_0x261635(0x234)]:this[_0x261635(0x183)]();break;}}),this[_0x310aea(0x1f1)][_0x310aea(0x15c)][_0x310aea(0x1a3)](_0x2c9909[_0x310aea(0x186)](this[_0x310aea(0x19e)]))['subscribe'](_0x5ab25b=>{var _0x2f0707=_0x310aea;const {eventID:_0xb46ad2}=_0x5ab25b;switch(_0xb46ad2){case _0x44e43a[_0x2f0707(0x18c)][_0x2f0707(0x225)]:this[_0x2f0707(0x23d)](_0x5ab25b);break;case _0x44e43a[_0x2f0707(0x18c)][_0x2f0707(0x1dd)]:this[_0x2f0707(0x14e)](_0x5ab25b);break;case _0x44e43a[_0x2f0707(0x18c)]['LIVESHARE_TERMINATE']:this[_0x2f0707(0x16f)]();break;case _0x44e43a[_0x2f0707(0x18c)][_0x2f0707(0x156)]:this['_handleNewChangeSets'](_0x5ab25b);break;}}));}[_0x5c8a51(0x1bc)](){var _0x3aab0f=_0x5c8a51;this['_collabSession']['send']({'eventID':_0x44e43a[_0x3aab0f(0x18c)][_0x3aab0f(0x23b)],'data':{'unitID':this['_unitID'],'userID':this[_0x3aab0f(0x1f1)][_0x3aab0f(0x1d1)]()}},this['_unitID']);}[_0x5c8a51(0x214)](){var _0x1683c2=_0x5c8a51;this[_0x1683c2(0x1fd)]==='presenting'&&(this['_status$'][_0x1683c2(0x203)](_0x1683c2(0x18b)),this[_0x1683c2(0x1f1)]['send']({'eventID':_0x44e43a['CollaborationEvent'][_0x1683c2(0x21e)],'data':{'unitID':this[_0x1683c2(0x23f)]}},this[_0x1683c2(0x23f)]));}[_0x5c8a51(0x1c3)](){var _0x5c1b91=_0x5c8a51;this[_0x5c1b91(0x1fd)]===_0x5c1b91(0x16c)&&(this[_0x5c1b91(0x1b2)][_0x5c1b91(0x203)]('following'),this['_startFollowing']());}[_0x5c8a51(0x1ea)](){var _0x694e12=_0x5c8a51;this[_0x694e12(0x1fd)]===_0x694e12(0x193)&&this[_0x694e12(0x232)]();}[_0x5c8a51(0x23d)](_0x429f8e){var _0x19f151=_0x5c8a51;const {presenter:_0xd9933}=_0x429f8e[_0x19f151(0x173)],_0x22c3d2=this['_collabSession'][_0x19f151(0x1d1)]();this[_0x19f151(0x220)]=_0xd9933,_0xd9933===_0x22c3d2?(this[_0x19f151(0x232)](),this[_0x19f151(0x175)]()):this['_status']!==_0x19f151(0x16c)&&(this[_0x19f151(0x213)](),this[_0x19f151(0x223)]());}[_0x5c8a51(0x1df)](){var _0x3e8f0a=_0x5c8a51;const _0x45781b={'eventID':_0x44e43a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x3e8f0a(0x1f1)]['send'](_0x45781b,this['_unitID']);}[_0x5c8a51(0x16f)](){var _0x2fd792=_0x5c8a51;this[_0x2fd792(0x220)]=null,this['_status']!==_0x2fd792(0x1f4)&&this[_0x2fd792(0x238)]();}[_0x5c8a51(0x211)](_0x1ff8f7){var _0xcf4134=_0x5c8a51;if(this['_status']===_0xcf4134(0x193)&&this[_0xcf4134(0x220)]===_0x1ff8f7[_0xcf4134(0x173)][_0xcf4134(0x1a7)]){const _0xddf9c8=_0x44e43a['parseProtocolChangeset'](_0x1ff8f7[_0xcf4134(0x173)])[_0xcf4134(0x204)][_0xcf4134(0x20a)]()['find'](_0x24d034=>_0x24d034['id']===_0x1c2e44[_0xcf4134(0x1db)]['id']);if(_0xddf9c8){const _0x2da6af=_0xddf9c8[_0xcf4134(0x1ab)][_0xcf4134(0x1e5)],_0x5070fc=_0xddf9c8[_0xcf4134(0x1ab)]['sheet']['id'];setTimeout(()=>{var _0x1405ec=_0xcf4134;this[_0x1405ec(0x167)]['executeCommand'](_0x1c2e44[_0x1405ec(0x1a1)]['id'],{'unitId':_0x2da6af,'subUnitId':_0x5070fc},{'fromCollab':!0x0});});}}}[_0x5c8a51(0x175)](){var _0x29e00d=_0x5c8a51;this['_status$'][_0x29e00d(0x203)](_0x29e00d(0x1f4));const _0x2bfcbb=new Map(),_0x3285a8=this[_0x29e00d(0x158)]=new _0x3a9025[(_0x29e00d(0x1e9))]();_0x3285a8[_0x29e00d(0x217)](_0x3a9025['toDisposable'](()=>{var _0x361217=_0x29e00d;_0x2bfcbb['forEach'](_0x2225a3=>_0x2225a3[_0x361217(0x18e)]()),_0x2bfcbb['clear']();})),_0x3285a8[_0x29e00d(0x217)](this[_0x29e00d(0x167)][_0x29e00d(0x1d8)](_0x21f14b=>{var _0x38fb70=_0x29e00d,_0x10904e;if(_0x21f14b['type']!==_0x3a9025[_0x38fb70(0x1cc)][_0x38fb70(0x20c)]||!this[_0x38fb70(0x196)][_0x38fb70(0x1ca)](_0x21f14b['id']))return;const {id:_0x2d535e}=_0x21f14b;let _0x28407a;_0x2bfcbb[_0x38fb70(0x235)](_0x2d535e)?_0x28407a=_0x2bfcbb[_0x38fb70(0x222)](_0x2d535e):(_0x28407a=new _0x51a3c4[(_0x38fb70(0x1e1))](),_0x2bfcbb[_0x38fb70(0x1a9)](_0x2d535e,_0x28407a),_0x28407a[_0x38fb70(0x1a3)](_0x2c9909[_0x38fb70(0x1cb)]((_0x10904e=this[_0x38fb70(0x166)][_0x38fb70(0x198)](_0x5c396e))!=null?_0x10904e:_0x25b84d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38fb70(0x226)](_0x1d2441=>{var _0xa11c3e=_0x38fb70;this[_0xa11c3e(0x1f1)]['send']({'eventID':_0x44e43a[_0xa11c3e(0x18c)][_0xa11c3e(0x1dd)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d2441['id']]:{'id':_0x1d2441['id'],'params':JSON[_0xa11c3e(0x195)](_0x1d2441[_0xa11c3e(0x1ab)])}}}},this[_0xa11c3e(0x23f)]);})),_0x28407a[_0x38fb70(0x203)](_0x21f14b);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x29e00d(0x21b)](_0x4d24af=>this[_0x29e00d(0x1f1)][_0x29e00d(0x1f0)]({'eventID':_0x44e43a[_0x29e00d(0x18c)][_0x29e00d(0x1dd)],'data':{'unitID':this[_0x29e00d(0x23f)],'operations':{[_0x4d24af['id']]:{'id':_0x4d24af['id'],'params':JSON['stringify'](_0x4d24af[_0x29e00d(0x1ab)])}}}},this[_0x29e00d(0x23f)]));}['_stopPresenting'](){var _0x336e37=_0x5c8a51,_0x2c464d;this[_0x336e37(0x1b2)]['next'](_0x336e37(0x18b)),(_0x2c464d=this[_0x336e37(0x158)])==null||_0x2c464d[_0x336e37(0x15a)](),this[_0x336e37(0x158)]=null;}[_0x5c8a51(0x223)](){var _0x3740e0=_0x5c8a51,_0x1dc743;(_0x1dc743=this[_0x3740e0(0x158)])==null||_0x1dc743[_0x3740e0(0x15a)](),this[_0x3740e0(0x1b2)][_0x3740e0(0x203)](_0x3740e0(0x193));}[_0x5c8a51(0x238)](){var _0x253c36=_0x5c8a51,_0x31f818;this['_status$'][_0x253c36(0x203)]('idle'),(_0x31f818=this[_0x253c36(0x158)])==null||_0x31f818[_0x253c36(0x15a)](),this[_0x253c36(0x158)]=null;}[_0x5c8a51(0x232)](){var _0x269020=_0x5c8a51,_0x80a522;this['_status$'][_0x269020(0x203)](_0x269020(0x16c)),(_0x80a522=this[_0x269020(0x158)])==null||_0x80a522[_0x269020(0x15a)]();}[_0x5c8a51(0x14e)](_0x49220d){var _0x2f473a=_0x5c8a51;if([_0x2f473a(0x1f4),_0x2f473a(0x16c),'offline'][_0x2f473a(0x1c8)](this[_0x2f473a(0x1fd)])||!_0x49220d[_0x2f473a(0x173)]['presenter']||_0x49220d[_0x2f473a(0x173)][_0x2f473a(0x22a)]===this[_0x2f473a(0x1f1)][_0x2f473a(0x1d1)]())return;this['_status']===_0x2f473a(0x18b)&&this['_startFollowing']();const _0x492293=_0x49220d['data'][_0x2f473a(0x216)];Object['values'](_0x492293)[_0x2f473a(0x21b)](_0x4ebce6=>{var _0x2a20eb=_0x2f473a;this[_0x2a20eb(0x167)]['executeCommand'](_0x4ebce6['id'],_0x4ebce6[_0x2a20eb(0x1ab)]?JSON[_0x2a20eb(0x218)](_0x4ebce6[_0x2a20eb(0x1ab)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x389924=_0x5c8a51,_0x21d037;this['_status$'][_0x389924(0x203)](_0x389924(0x22e)),(_0x21d037=this[_0x389924(0x158)])==null||_0x21d037[_0x389924(0x15a)]();}[_0x5c8a51(0x183)](){var _0x4f4485=_0x5c8a51;this[_0x4f4485(0x1b2)][_0x4f4485(0x203)](_0x4f4485(0x18b)),this['_fetchOperations']();}},_0x12dabc['LiveShareCoordinator']=_0x177b29([_0x508656(0x2,_0x3a9025['IConfigService']),_0x508656(0x3,_0x3a9025['Inject'](_0x210719)),_0x508656(0x4,_0x3a9025[_0x5c8a51(0x1e4)])],_0x12dabc['LiveShareCoordinator']);function _0x9644ef(){var _0x1a88c2=_0x5c8a51;const _0x338788=_0x5436a1[_0x1a88c2(0x171)](_0x12dabc[_0x1a88c2(0x1cd)]),_0x2260b0=_0x5436a1['useDependency'](_0x3a9025[_0x1a88c2(0x188)]),_0x1b1493=_0x5436a1[_0x1a88c2(0x1d0)](()=>_0x2260b0[_0x1a88c2(0x209)](_0x3a9025['UniverInstanceType'][_0x1a88c2(0x174)]),void 0x0,!0x1,[]),[_0x796fb2,_0x1520f2]=_0x1cdf56['useState'](null),[_0x51cbb,_0x1cea0b]=_0x1cdf56[_0x1a88c2(0x176)](_0x2eb10d[_0x1a88c2(0x1c0)]),_0x523394=_0x1cdf56[_0x1a88c2(0x207)](null);return _0x1cdf56['useEffect'](()=>(_0x1b1493&&_0x338788['getLiveShareCoordinator'](_0x1b1493[_0x1a88c2(0x180)]())[_0x1a88c2(0x165)](_0x23944e=>{var _0x3ba783=_0x1a88c2;_0x1520f2(_0x23944e),_0x523394['current']=_0x23944e[_0x3ba783(0x20b)][_0x3ba783(0x226)](_0x225b01=>{_0x1cea0b(_0x225b01);});}),()=>{var _0xddf67f=_0x1a88c2,_0xd3fe24;(_0xd3fe24=_0x523394[_0xddf67f(0x199)])==null||_0xd3fe24[_0xddf67f(0x237)](),_0x523394[_0xddf67f(0x199)]=null;}),[_0x1b1493,_0x338788]),_0x796fb2?_0x878fb2['jsx'](_0x3d1390[_0x1a88c2(0x1a5)],{'align':_0x1a88c2(0x1d5),'disabled':_0x51cbb===_0x2eb10d[_0x1a88c2(0x15d)],'className':_0x1a88c2(0x168),'overlay':_0x878fb2['jsx'](_0x19071d,{'status':_0x51cbb,'coordinator':_0x796fb2}),'children':_0x878fb2[_0x1a88c2(0x22f)]('button',{'className':_0x3d1390[_0x1a88c2(0x170)](_0x1a88c2(0x161),{'univer-cursor-not-allowed':_0x51cbb===_0x2eb10d[_0x1a88c2(0x15d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51cbb!==_0x2eb10d[_0x1a88c2(0x15d)]}),'type':_0x1a88c2(0x19a),'children':_0x878fb2[_0x1a88c2(0x22f)](_0x12278c,{'className':_0x1a88c2(0x17c)})})}):null;}function _0x19071d(_0x2e5e86){var _0xbe2080=_0x5c8a51;const {status:_0x34b816,coordinator:_0x5e0e88}=_0x2e5e86;switch(_0x34b816){case _0x2eb10d[_0xbe2080(0x1c0)]:return _0x878fb2[_0xbe2080(0x22f)](_0x2b3e45,{'coordinator':_0x5e0e88});case _0x2eb10d['FOLLOWING']:return _0x878fb2[_0xbe2080(0x22f)](_0x1249f6,{'coordinator':_0x5e0e88});case _0x2eb10d[_0xbe2080(0x182)]:return _0x878fb2[_0xbe2080(0x22f)](_0x22240f,{'coordinator':_0x5e0e88});case _0x2eb10d[_0xbe2080(0x15d)]:return _0x878fb2[_0xbe2080(0x22f)](_0x5fdd66,{});case _0x2eb10d['PRESENTING']:return _0x878fb2[_0xbe2080(0x22f)](_0x4ab776,{'coordinator':_0x5e0e88});default:return null;}}function _0x2b3e45(_0x1137c3){var _0x2f045f=_0x5c8a51;const {coordinator:_0x15cf0b}=_0x1137c3;return _0x878fb2[_0x2f045f(0x19c)](_0x878fb2['Fragment'],{'children':[_0x878fb2[_0x2f045f(0x22f)]('div',{'className':_0x2f045f(0x194),'children':'Present\x20this\x20document'}),_0x878fb2[_0x2f045f(0x22f)](_0x3d1390['Button'],{'onClick':()=>_0x15cf0b[_0x2f045f(0x1bc)](),'children':_0x2f045f(0x16a)})]});}function _0x1249f6(_0x4843f2){var _0x32c76d=_0x5c8a51;const {coordinator:_0x436bb0}=_0x4843f2;return _0x878fb2['jsxs'](_0x878fb2[_0x32c76d(0x1b6)],{'children':[_0x878fb2[_0x32c76d(0x22f)](_0x32c76d(0x1a6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x32c76d(0x187)}),_0x878fb2['jsx'](_0x3d1390['Button'],{'onClick':()=>_0x436bb0[_0x32c76d(0x1ea)](),'children':'Stop\x20following'})]});}function _0x22240f(_0x45bcf2){var _0x533090=_0x5c8a51;const {coordinator:_0x5c1954}=_0x45bcf2;return _0x878fb2[_0x533090(0x19c)](_0x878fb2[_0x533090(0x1b6)],{'children':[_0x878fb2[_0x533090(0x22f)](_0x533090(0x1a6),{'className':_0x533090(0x194),'children':_0x533090(0x1c6)}),_0x878fb2[_0x533090(0x22f)](_0x3d1390['Button'],{'variant':_0x533090(0x22d),'onClick':()=>_0x5c1954['startFollowing'](),'children':_0x533090(0x1e8)})]});}function _0x4ab776(_0x2f77aa){var _0xe2d90b=_0x5c8a51;const {coordinator:_0x426ddc}=_0x2f77aa;return _0x878fb2[_0xe2d90b(0x19c)](_0x878fb2['Fragment'],{'children':[_0x878fb2[_0xe2d90b(0x22f)](_0xe2d90b(0x1a6),{'className':_0xe2d90b(0x194),'children':_0xe2d90b(0x1b1)}),_0x878fb2[_0xe2d90b(0x22f)](_0x3d1390['Button'],{'variant':'default','onClick':()=>_0x426ddc[_0xe2d90b(0x214)](),'children':_0xe2d90b(0x160)})]});}function _0x5fdd66(){var _0x5aa466=_0x5c8a51;return _0x878fb2['jsx'](_0x878fb2[_0x5aa466(0x1b6)],{'children':_0x5aa466(0x240)});}var _0x1a7f2f=Object[_0x5c8a51(0x1f8)],_0x49ce25=(_0x4a5297,_0x935b9d,_0x11046b,_0x18c52f)=>{var _0x56334f=_0x5c8a51;for(var _0x4d7b42=_0x18c52f>0x1?void 0x0:_0x18c52f?_0x1a7f2f(_0x935b9d,_0x11046b):_0x935b9d,_0x361e74=_0x4a5297[_0x56334f(0x1bf)]-0x1,_0x43a5ef;_0x361e74>=0x0;_0x361e74--)(_0x43a5ef=_0x4a5297[_0x361e74])&&(_0x4d7b42=_0x43a5ef(_0x4d7b42)||_0x4d7b42);return _0x4d7b42;},_0x561ac3=(_0x28bd8c,_0x3a7db8)=>(_0xfd4db7,_0x717a53)=>_0x3a7db8(_0xfd4db7,_0x717a53,_0x28bd8c);_0x12dabc[_0x5c8a51(0x1b0)]=class extends _0x3a9025[_0x5c8a51(0x17a)]{constructor(_0x1f0b87,_0x18c8b1){var _0x5ab35e=_0x5c8a51;super(),this['_injector']=_0x1f0b87,this[_0x5ab35e(0x15b)]=_0x18c8b1,this['_mountLiveShare']();}[_0x5c8a51(0x162)](){var _0x405b10=_0x5c8a51;this[_0x405b10(0x179)](this[_0x405b10(0x15b)]['registerComponent'](_0x5436a1[_0x405b10(0x23c)][_0x405b10(0x1e3)],()=>_0x5436a1[_0x405b10(0x1f2)](_0x9644ef,this[_0x405b10(0x16e)])));}},_0x12dabc[_0x5c8a51(0x1b0)]=_0x49ce25([_0x561ac3(0x0,_0x3a9025['Inject'](_0x3a9025[_0x5c8a51(0x201)])),_0x561ac3(0x1,_0x5436a1[_0x5c8a51(0x1da)])],_0x12dabc[_0x5c8a51(0x1b0)]);var _0x2f905d=Object[_0x5c8a51(0x14d)],_0x56e38e=Object[_0x5c8a51(0x1f8)],_0x22d436=(_0x53d915,_0xcda42d,_0x1ee07c)=>_0xcda42d in _0x53d915?_0x2f905d(_0x53d915,_0xcda42d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ee07c}):_0x53d915[_0xcda42d]=_0x1ee07c,_0x20136c=(_0x4b1273,_0x55376e,_0x2e7fb7,_0x4e6b8b)=>{var _0x3f3943=_0x5c8a51;for(var _0x153cab=_0x4e6b8b>0x1?void 0x0:_0x4e6b8b?_0x56e38e(_0x55376e,_0x2e7fb7):_0x55376e,_0x32f881=_0x4b1273[_0x3f3943(0x1bf)]-0x1,_0x4c9a2a;_0x32f881>=0x0;_0x32f881--)(_0x4c9a2a=_0x4b1273[_0x32f881])&&(_0x153cab=_0x4c9a2a(_0x153cab)||_0x153cab);return _0x153cab;},_0x497cb3=(_0x17dedd,_0x46edf3)=>(_0x2c251d,_0x2668f4)=>_0x46edf3(_0x2c251d,_0x2668f4,_0x17dedd),_0xff52=(_0x177694,_0x5d3877,_0x3375e4)=>_0x22d436(_0x177694,typeof _0x5d3877!=_0x5c8a51(0x1c2)?_0x5d3877+'':_0x5d3877,_0x3375e4);const _0x25fdd0='UNIVER_LIVE_SHARE_PLUGIN';_0x12dabc[_0x5c8a51(0x231)]=class extends _0x3a9025[_0x5c8a51(0x1d9)]{constructor(_0x426dd7=_0x215b3f,_0x4dd274,_0x38623d){var _0x9c97bc=_0x5c8a51;super(),this[_0x9c97bc(0x215)]=_0x426dd7,this['_injector']=_0x4dd274,this[_0x9c97bc(0x166)]=_0x38623d;const {..._0x22fcba}=_0x3a9025[_0x9c97bc(0x163)]({},_0x215b3f,this[_0x9c97bc(0x215)]);this[_0x9c97bc(0x166)]['setConfig'](_0x524f5f,_0x22fcba);}['onStarting'](){var _0x2e4564=_0x5c8a51;_0x3a9025[_0x2e4564(0x177)](this['_injector'],_0x3a9025['mergeOverrideWithDependencies']([[_0x210719],[_0x12dabc[_0x2e4564(0x1cd)]],[_0x437956],[_0x12dabc['DesktopLiveShareController']]],this[_0x2e4564(0x215)]['override'])),_0x3a9025[_0x2e4564(0x1e2)](this[_0x2e4564(0x16e)],[[_0x437956]]);}[_0x5c8a51(0x1e7)](){var _0x24ea93=_0x5c8a51;_0x3a9025[_0x24ea93(0x1e2)](this[_0x24ea93(0x16e)],[[_0x12dabc[_0x24ea93(0x1b0)]]]);}},_0xff52(_0x12dabc['UniverLiveSharePlugin'],'type',_0x3a9025['UniverInstanceType'][_0x5c8a51(0x1b9)]),_0xff52(_0x12dabc[_0x5c8a51(0x231)],_0x5c8a51(0x17e),_0x25fdd0),_0x12dabc['UniverLiveSharePlugin']=_0x20136c([_0x3a9025[_0x5c8a51(0x169)](_0x5747cc[_0x5c8a51(0x1ac)]),_0x497cb3(0x1,_0x3a9025[_0x5c8a51(0x154)](_0x3a9025['Injector'])),_0x497cb3(0x2,_0x3a9025[_0x5c8a51(0x239)])],_0x12dabc['UniverLiveSharePlugin']),_0x12dabc['LiveShare']=_0x9644ef,_0x12dabc[_0x5c8a51(0x14f)]=_0x210719,_0x12dabc[_0x5c8a51(0x19b)]=_0x2eb10d,Object[_0x5c8a51(0x14d)](_0x12dabc,Symbol[_0x5c8a51(0x1e0)],{'value':_0x5c8a51(0x221)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.3-nightly.202507031607",
3
+ "version": "0.8.3",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.3-nightly.202507031607",
51
- "@univerjs-pro/collaboration-client": "0.8.3-nightly.202507031607",
52
- "@univerjs/core": "0.8.3-nightly.202507031607",
53
- "@univerjs/sheets": "0.8.3-nightly.202507031607",
54
- "@univerjs/sheets-ui": "0.8.3-nightly.202507031607",
55
- "@univerjs/design": "0.8.3-nightly.202507031607",
56
- "@univerjs/ui": "0.8.3-nightly.202507031607"
50
+ "@univerjs-pro/collaboration": "0.8.3",
51
+ "@univerjs/core": "0.8.3",
52
+ "@univerjs-pro/collaboration-client": "0.8.3",
53
+ "@univerjs/design": "0.8.3",
54
+ "@univerjs/sheets": "0.8.3",
55
+ "@univerjs/ui": "0.8.3",
56
+ "@univerjs/sheets-ui": "0.8.3"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",