@univerjs-pro/live-share 0.8.0-nightly.202506011606 → 0.8.0-nightly.202506031608

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 _0x10eff4=_0xab55;(function(_0x66ce34,_0x819b3d){var _0x1b6cf3=_0xab55,_0x295e3e=_0x66ce34();while(!![]){try{var _0x454274=-parseInt(_0x1b6cf3(0x26b))/0x1+parseInt(_0x1b6cf3(0x297))/0x2*(-parseInt(_0x1b6cf3(0x25f))/0x3)+parseInt(_0x1b6cf3(0x1ca))/0x4+parseInt(_0x1b6cf3(0x1de))/0x5*(-parseInt(_0x1b6cf3(0x1ed))/0x6)+-parseInt(_0x1b6cf3(0x1fe))/0x7*(-parseInt(_0x1b6cf3(0x1f6))/0x8)+-parseInt(_0x1b6cf3(0x1d4))/0x9*(-parseInt(_0x1b6cf3(0x246))/0xa)+parseInt(_0x1b6cf3(0x1c7))/0xb*(-parseInt(_0x1b6cf3(0x252))/0xc);if(_0x454274===_0x819b3d)break;else _0x295e3e['push'](_0x295e3e['shift']());}catch(_0x580c87){_0x295e3e['push'](_0x295e3e['shift']());}}}(_0x2138,0x72d0e));var U=Object[_0x10eff4(0x1b6)],F=(_0xfb2af0,_0x2c24a1,_0x4fd61c)=>_0x2c24a1 in _0xfb2af0?U(_0xfb2af0,_0x2c24a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fd61c}):_0xfb2af0[_0x2c24a1]=_0x4fd61c,v=(_0x510a78,_0x55bf65,_0x118294)=>F(_0x510a78,typeof _0x55bf65!=_0x10eff4(0x258)?_0x55bf65+'':_0x55bf65,_0x118294);Object[_0x10eff4(0x1b6)](exports,Symbol[_0x10eff4(0x1fd)],{'value':_0x10eff4(0x203)});const m=require('@univerjs-pro/collaboration-client'),o=require(_0x10eff4(0x1ef)),C=require(_0x10eff4(0x1eb)),w=require(_0x10eff4(0x217)),p=require(_0x10eff4(0x200)),l=require(_0x10eff4(0x1cc)),g=require(_0x10eff4(0x1ab)),f=require(_0x10eff4(0x1b9)),_=require('@univerjs-pro/collaboration'),D=require(_0x10eff4(0x1af)),b=require(_0x10eff4(0x20e)),$=_0x10eff4(0x1e6),x={};class O extends o[_0x10eff4(0x28b)]{constructor(){var _0x1f5f6f=_0x10eff4;super(...arguments),v(this,_0x1f5f6f(0x21a),new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x3accd5){var _0x4e4be2=_0x10eff4;return this[_0x4e4be2(0x21a)]['add'](_0x3accd5),o[_0x4e4be2(0x1bd)](()=>this[_0x4e4be2(0x21a)][_0x4e4be2(0x1f1)](_0x3accd5));}[_0x10eff4(0x1d2)](_0x3f8555){var _0x72ad28=_0x10eff4;return this['_reporters'][_0x72ad28(0x1ff)](_0x3f8555),o[_0x72ad28(0x1bd)](()=>this[_0x72ad28(0x1e1)][_0x72ad28(0x1f1)](_0x3f8555));}[_0x10eff4(0x1c8)](_0x1aa59e){var _0xdb4612=_0x10eff4;return this['_sharedOperations'][_0xdb4612(0x25e)](_0x1aa59e);}[_0x10eff4(0x22a)](_0x2695fe){var _0x4f7705=_0x10eff4;return Array[_0x4f7705(0x1a4)](this['_reporters'])[_0x4f7705(0x1f2)](_0x1dca58=>_0x1dca58(_0x2695fe));}}var H=Object[_0x10eff4(0x1ee)],V=(_0x2ee83b,_0x28dacb,_0x4861a9,_0x541c4f)=>{var _0x1021a7=_0x10eff4;for(var _0x551a73=_0x541c4f>0x1?void 0x0:_0x541c4f?H(_0x28dacb,_0x4861a9):_0x28dacb,_0x3a3c12=_0x2ee83b[_0x1021a7(0x294)]-0x1,_0x1f69e9;_0x3a3c12>=0x0;_0x3a3c12--)(_0x1f69e9=_0x2ee83b[_0x3a3c12])&&(_0x551a73=_0x1f69e9(_0x551a73)||_0x551a73);return _0x551a73;},k=(_0x43be7b,_0x229395)=>(_0x4695cb,_0x2cbaff)=>_0x229395(_0x4695cb,_0x2cbaff,_0x43be7b);let E=class extends o[_0x10eff4(0x28b)]{constructor(_0x339197){var _0x11ae63=_0x10eff4;super(),this[_0x11ae63(0x239)]=_0x339197,this['_init']();}[_0x10eff4(0x282)](){var _0x50f54e=_0x10eff4;[w[_0x50f54e(0x21b)]['id'],w[_0x50f54e(0x244)]['id'],C[_0x50f54e(0x268)]['id']][_0x50f54e(0x1d5)](_0x498094=>{var _0x487788=_0x50f54e;this[_0x487788(0x1b0)](this[_0x487788(0x239)][_0x487788(0x287)](_0x498094));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x4b6f35=_0x10eff4;return u=Object[_0x4b6f35(0x1e4)]||function(_0x50f315){var _0x5ae688=_0x4b6f35;for(var _0x4f963d,_0x4ba92a=0x1,_0x27d9ed=arguments[_0x5ae688(0x294)];_0x4ba92a<_0x27d9ed;_0x4ba92a++){_0x4f963d=arguments[_0x4ba92a];for(var _0xf7faac in _0x4f963d)Object[_0x5ae688(0x1f4)]['hasOwnProperty'][_0x5ae688(0x1b3)](_0x4f963d,_0xf7faac)&&(_0x50f315[_0xf7faac]=_0x4f963d[_0xf7faac]);}return _0x50f315;},u[_0x4b6f35(0x1c9)](this,arguments);},M=function(_0x11991c,_0x3429e3){var _0x42022d=_0x10eff4,_0x1a3bab={};for(var _0x822747 in _0x11991c)Object['prototype'][_0x42022d(0x1c4)][_0x42022d(0x1b3)](_0x11991c,_0x822747)&&_0x3429e3['indexOf'](_0x822747)<0x0&&(_0x1a3bab[_0x822747]=_0x11991c[_0x822747]);if(_0x11991c!=null&&typeof Object[_0x42022d(0x291)]==_0x42022d(0x236)){for(var _0x5a952d=0x0,_0x822747=Object[_0x42022d(0x291)](_0x11991c);_0x5a952d<_0x822747['length'];_0x5a952d++)_0x3429e3[_0x42022d(0x241)](_0x822747[_0x5a952d])<0x0&&Object['prototype'][_0x42022d(0x1d3)][_0x42022d(0x1b3)](_0x11991c,_0x822747[_0x5a952d])&&(_0x1a3bab[_0x822747[_0x5a952d]]=_0x11991c[_0x822747[_0x5a952d]]);}return _0x1a3bab;},j=f[_0x10eff4(0x23d)](function(_0x9a7e95,_0x138c02){var _0x4c4f1f=_0x10eff4,_0x1fab9d=_0x9a7e95[_0x4c4f1f(0x254)],_0x54d769=_0x9a7e95['id'],_0x5354b1=_0x9a7e95[_0x4c4f1f(0x1c3)],_0x84596b=_0x9a7e95['extend'],_0x2896c7=M(_0x9a7e95,[_0x4c4f1f(0x254),'id',_0x4c4f1f(0x1c3),_0x4c4f1f(0x28c)]),_0x2116bf=_0x4c4f1f(0x1ae)[_0x4c4f1f(0x206)](_0x54d769,'\x20')['concat'](_0x5354b1||'')[_0x4c4f1f(0x201)](),_0x204f90=f['useRef']('_'[_0x4c4f1f(0x206)](G()));return y(_0x1fab9d,''['concat'](_0x54d769),{'defIds':_0x1fab9d[_0x4c4f1f(0x1d7)],'idSuffix':_0x204f90[_0x4c4f1f(0x1bb)]},u({'ref':_0x138c02,'className':_0x2116bf},_0x2896c7),_0x84596b);});function y(_0x534288,_0x1a68c7,_0xb124a2,_0x227f5b,_0x7431fe){var _0x5e667e=_0x10eff4;return f[_0x5e667e(0x250)](_0x534288[_0x5e667e(0x24a)],u(u({'key':_0x1a68c7},q(_0x534288,_0xb124a2,_0x7431fe)),_0x227f5b),(W(_0x534288,_0xb124a2)[_0x5e667e(0x1f3)]||[])[_0x5e667e(0x1f2)](function(_0x4a6534,_0x4d920e){var _0x3116e2=_0x5e667e;return y(_0x4a6534,''[_0x3116e2(0x206)](_0x1a68c7,'-')['concat'](_0x534288[_0x3116e2(0x24a)],'-')['concat'](_0x4d920e),_0xb124a2,void 0x0,_0x7431fe);}));}function _0x2138(){var _0x48734a=['assign','jsx','live-share.config','asObservable','_univerInstanceService','ICommandService','entries','@univerjs/sheets','following','159858DGnxgS','getOwnPropertyDescriptor','@univerjs/core','registerComponent','delete','map','children','prototype','_stopFollowing','8KItmMV','clsx','init','currentColor','presenter','div','UNIVER_UNKNOWN','toStringTag','749728phqLrI','add','@univerjs/ui','trim','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Module','Fragment','setConfig','concat','UniverIcon','useDependency','_startPresenting','data','_handleNewHost','Subject','dispose$','rxjs/operators','LiveShareService','InsertSheetMutation','_presenter','connectInjector','_commandService','PRESENTING','SessionStatus','replace','@univerjs/sheets-ui','text','You\x27re\x20following\x20the\x20presenter','_sharedOperations','SetZoomRatioOperation','LIVESHARE_TERMINATE','LiveShareStatus','onCommandExecuted','UniverCollaborationClientPlugin','univer-size-4','OPERATION','takeUntil','LiveShareController','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','getConfig','_uiPartsService','FOLLOWING','use','operations','getInitialStates','Start\x20following','merge','LIVESHARE_REQUEST_HOST','You\x27are\x20offline.','mergeOverrideWithDependencies','values','pluginName','You\x27re\x20presenting\x20the\x20document','LiveShareIcon','_unitID','_startFollowing','function','http://www.w3.org/2000/svg','stringify','_liveShareService','xlink:href','presenting','end','forwardRef','getValue','default','RxDisposable','indexOf','DesktopLiveShareController','substring','SetScrollOperation','fill','80NoQwhw','pipe','_configService','You\x27re\x20not\x20following\x20the\x20presenter','tag','1em','stopFollowing','event$','ONLINE','LIVESHARE_FETCH_OPERATIONS','createElement','mutations','341304HXAQzK','_handleTerminate','icon','_status','0\x200\x2017\x2017','IUniverInstanceService','symbol','CollaborationEvent','BehaviorSubject','useRef','stopPresenting','UNIVER_SHEET','has','3xDufpP','_handleOperation','svg','override','_collabSessionService','next','_startLiveShareCoordinator','sheet','LiveShareCoordinator','SetWorksheetActiveOperation','Button','useEffect','258516IurMdy','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','unitId','tryStartPresenting','random','LIVESHARE_OPERATION','_handleNewChangeSets','url(#$1','_config','path','button','UniverInstanceType','HEADER_MENU','string','getMemberID','_entities','find','startFollowing','params','attrs','univer-w-full\x20univer-mb-3\x20univer-text-sm','Dropdown','CollaborationSessionService','_init','idSuffix','send','_commandDisposable','onRendered','registerSharedOperation','getLiveShareCoordinator','getUnitId','parse','Disposable','extend','getCurrentTypeOfUnit$','touchDependencies','UniverLiveSharePlugin','status$','getOwnPropertySymbols','complete','Inject','length','OFFLINE','SAME_OPERATION_SHARE_INTERVAL','360214wCGWZe','jsxs','dispose','from','reverse','then','useState','onStarting','memberID','_beIdle','@univerjs/design','sessionStatus$','createInstance','univerjs-icon\x20univerjs-icon-','rxjs','disposeWithMe','_collabSession','displayName','call','IDLE','offline','defineProperty','Injector','evenodd','react','mask','current','idle','toDisposable','Present\x20this\x20document','colorChannel1','includes','not-following','set','className','hasOwnProperty','_fetchOperations','LiveShare','187dCQPMK','shouldShareOperation','apply','3731412AHYUKf','_injector','react/jsx-runtime','CommandType','_handleOffline','toString','Stop\x20presenting','registerDependencies','registerInitialStateReporter','propertyIsEnumerable','456471woHITE','forEach','live-share-icon','defIds','NOT_FOLLOWING','executeCommand','get','_stopPresenting','_handleOnline','subscribe','10yXILmd','LIVESHARE_NEW_HOST','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_reporters','_status$','getTypeOfUnitAdded$'];_0x2138=function(){return _0x48734a;};return _0x2138();}function q(_0x3e2099,_0x5b148a,_0xc9a445){var _0x281506=_0x10eff4,_0x2879fc=u({},_0x3e2099['attrs']);_0xc9a445!=null&&_0xc9a445[_0x281506(0x1bf)]&&_0x2879fc['fill']===_0x281506(0x1bf)&&(_0x2879fc[_0x281506(0x245)]=_0xc9a445[_0x281506(0x1bf)]),_0x3e2099[_0x281506(0x24a)]===_0x281506(0x1ba)&&_0x2879fc['id']&&(_0x2879fc['id']=_0x2879fc['id']+_0x5b148a[_0x281506(0x283)]),Object[_0x281506(0x1ea)](_0x2879fc)[_0x281506(0x1d5)](function(_0x9f69cd){var _0x42d0e3=_0x281506,_0x14a230=_0x9f69cd[0x0],_0x223f61=_0x9f69cd[0x1];_0x14a230===_0x42d0e3(0x1ba)&&typeof _0x223f61==_0x42d0e3(0x278)&&(_0x2879fc[_0x14a230]=_0x223f61[_0x42d0e3(0x216)](/url\(#(.*)\)/,_0x42d0e3(0x272)[_0x42d0e3(0x206)](_0x5b148a[_0x42d0e3(0x283)],')')));});var _0x147274=_0x5b148a[_0x281506(0x1d7)];return!_0x147274||_0x147274[_0x281506(0x294)]===0x0||(_0x3e2099['tag']===_0x281506(0x228)&&_0x2879fc[_0x281506(0x23a)]&&(_0x2879fc['xlink:href']=_0x2879fc[_0x281506(0x23a)]+_0x5b148a[_0x281506(0x283)]),Object['entries'](_0x2879fc)[_0x281506(0x1d5)](function(_0x423146){var _0x755f8a=_0x281506,_0x325ca6=_0x423146[0x0],_0x40f765=_0x423146[0x1];typeof _0x40f765=='string'&&(_0x2879fc[_0x325ca6]=_0x40f765['replace'](/url\(#(.*)\)/,_0x755f8a(0x272)[_0x755f8a(0x206)](_0x5b148a['idSuffix'],')')));})),_0x2879fc;}function W(_0x35c677,_0x3fe0ba){var _0xa1a765=_0x10eff4,_0x1650ca,_0x19a94a=_0x3fe0ba[_0xa1a765(0x1d7)];return!_0x19a94a||_0x19a94a[_0xa1a765(0x294)]===0x0?_0x35c677:_0x35c677[_0xa1a765(0x24a)]==='defs'&&(!((_0x1650ca=_0x35c677[_0xa1a765(0x1f3)])===null||_0x1650ca===void 0x0)&&_0x1650ca[_0xa1a765(0x294)])?u(u({},_0x35c677),{'children':_0x35c677['children']['map'](function(_0x36d2b5){var _0x5413f8=_0xa1a765;return typeof _0x36d2b5['attrs']['id']=='string'&&_0x19a94a&&_0x19a94a[_0x5413f8(0x1c0)](_0x36d2b5[_0x5413f8(0x27e)]['id'])?u(u({},_0x36d2b5),{'attrs':u(u({},_0x36d2b5[_0x5413f8(0x27e)]),{'id':_0x36d2b5[_0x5413f8(0x27e)]['id']+_0x3fe0ba[_0x5413f8(0x283)]})}):_0x36d2b5;})}):_0x35c677;}function G(){var _0x5b92d2=_0x10eff4;return Math[_0x5b92d2(0x26f)]()[_0x5b92d2(0x1cf)](0x24)[_0x5b92d2(0x243)](0x2,0x8);}j['displayName']=_0x10eff4(0x207);var B={'tag':_0x10eff4(0x261),'attrs':{'xmlns':_0x10eff4(0x237),'fill':'none','viewBox':_0x10eff4(0x256),'width':_0x10eff4(0x24b),'height':_0x10eff4(0x24b)},'children':[{'tag':'path','attrs':{'fill':_0x10eff4(0x1f9),'d':_0x10eff4(0x224)}},{'tag':_0x10eff4(0x274),'attrs':{'fill':_0x10eff4(0x1f9),'d':_0x10eff4(0x26c),'fillRule':_0x10eff4(0x1b8),'clipRule':_0x10eff4(0x1b8)}}]},P=f[_0x10eff4(0x23d)](function(_0x3524be,_0x39d1f9){var _0x2a0627=_0x10eff4;return f[_0x2a0627(0x250)](j,Object[_0x2a0627(0x1e4)]({},_0x3524be,{'id':_0x2a0627(0x1d6),'ref':_0x39d1f9,'icon':B}));});P[_0x10eff4(0x1b2)]=_0x10eff4(0x233);var Y=Object[_0x10eff4(0x1ee)],R=(_0x25c516,_0x4b6061,_0x1b7db9,_0x36f33b)=>{for(var _0x1f89c4=_0x36f33b>0x1?void 0x0:_0x36f33b?Y(_0x4b6061,_0x1b7db9):_0x4b6061,_0x423b6c=_0x25c516['length']-0x1,_0x4546dc;_0x423b6c>=0x0;_0x423b6c--)(_0x4546dc=_0x25c516[_0x423b6c])&&(_0x1f89c4=_0x4546dc(_0x1f89c4)||_0x1f89c4);return _0x1f89c4;},S=(_0x129080,_0x517c4e)=>(_0x5677ce,_0x1dadd7)=>_0x517c4e(_0x5677ce,_0x1dadd7,_0x129080);exports['LiveShareController']=class extends o[_0x10eff4(0x240)]{constructor(_0x4cd7b1,_0x3c8cc3,_0x5e1187){var _0x2cad10=_0x10eff4;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4cd7b1,this[_0x2cad10(0x1cb)]=_0x3c8cc3,this[_0x2cad10(0x263)]=_0x5e1187,this[_0x2cad10(0x282)]());}async['getLiveShareCoordinator'](_0x1c17b0){var _0x243d80=_0x10eff4;return this[_0x243d80(0x27a)][_0x243d80(0x25e)](_0x1c17b0)||await this[_0x243d80(0x265)](_0x1c17b0),this[_0x243d80(0x27a)]['get'](_0x1c17b0);}[_0x10eff4(0x282)](){var _0x187e32=_0x10eff4;this[_0x187e32(0x1e8)][_0x187e32(0x1e3)](o[_0x187e32(0x276)]['UNIVER_SHEET'])[_0x187e32(0x247)](b[_0x187e32(0x222)](this[_0x187e32(0x20d)]))[_0x187e32(0x1dd)](async _0x56648d=>{var _0x8159b5=_0x187e32;const _0x8e6dbb=_0x56648d['getUnitId']();this[_0x8159b5(0x27a)][_0x8159b5(0x25e)](_0x8e6dbb)||this['_startLiveShareCoordinator'](_0x8e6dbb);}),this[_0x187e32(0x1e8)]['getTypeOfUnitDisposed$'](o[_0x187e32(0x276)][_0x187e32(0x25d)])['pipe'](b[_0x187e32(0x222)](this[_0x187e32(0x20d)]))[_0x187e32(0x1dd)](_0x454f46=>{var _0xe6a15b=_0x187e32;const _0x37a486=_0x454f46[_0xe6a15b(0x289)](),_0x4eb97d=this[_0xe6a15b(0x27a)][_0xe6a15b(0x1da)](_0x37a486);_0x4eb97d==null||_0x4eb97d[_0xe6a15b(0x299)]();});}async['_startLiveShareCoordinator'](_0x5d6cd8){var _0x3307f3=_0x10eff4;const _0x429a51=await this[_0x3307f3(0x263)]['requireSession'](_0x5d6cd8),_0x3531da=this[_0x3307f3(0x1cb)][_0x3307f3(0x1ad)](exports['LiveShareCoordinator'],_0x5d6cd8,_0x429a51);return _0x3531da[_0x3307f3(0x1f8)](),this[_0x3307f3(0x27a)][_0x3307f3(0x1c2)](_0x5d6cd8,_0x3531da),_0x3531da;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x10eff4(0x293)](o[_0x10eff4(0x1b7)])),S(0x2,o[_0x10eff4(0x293)](m[_0x10eff4(0x281)]))],exports[_0x10eff4(0x223)]);var h=(_0x37cbb0=>(_0x37cbb0[_0x10eff4(0x295)]=_0x10eff4(0x1b5),_0x37cbb0[_0x10eff4(0x1b4)]=_0x10eff4(0x1bc),_0x37cbb0[_0x10eff4(0x227)]=_0x10eff4(0x1ec),_0x37cbb0[_0x10eff4(0x1d8)]=_0x10eff4(0x1c1),_0x37cbb0[_0x10eff4(0x214)]=_0x10eff4(0x23b),_0x37cbb0))(h||{});const Z=_0x10eff4(0x296),J=0xc8;exports[_0x10eff4(0x267)]=class extends o[_0x10eff4(0x240)]{constructor(_0x1f6da7,_0x5dcf93,_0xdcea66,_0x5e0bc5,_0x3dc9bb){var _0x226d18=_0x10eff4;super(),v(this,'_status$',new D[(_0x226d18(0x25a))](_0x226d18(0x1bc))),v(this,'status$',this[_0x226d18(0x1e2)][_0x226d18(0x1e7)]()),v(this,_0x226d18(0x282),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x226d18(0x234)]=_0x1f6da7,this[_0x226d18(0x1b1)]=_0x5dcf93,this[_0x226d18(0x248)]=_0xdcea66,this[_0x226d18(0x239)]=_0x5e0bc5,this[_0x226d18(0x213)]=_0x3dc9bb);}get['_status'](){var _0x43b5bc=_0x10eff4;return this[_0x43b5bc(0x1e2)][_0x43b5bc(0x23e)]();}[_0x10eff4(0x299)](){var _0x28a548=_0x10eff4,_0x5ab9ed;(_0x5ab9ed=this['_commandDisposable'])==null||_0x5ab9ed[_0x28a548(0x299)](),this[_0x28a548(0x1e2)][_0x28a548(0x264)]('idle'),this[_0x28a548(0x1e2)][_0x28a548(0x292)]();}['init'](){var _0x40fa8d=_0x10eff4;this[_0x40fa8d(0x282)]||(this[_0x40fa8d(0x282)]=!0x0,this[_0x40fa8d(0x1b1)][_0x40fa8d(0x1ac)]['pipe'](b[_0x40fa8d(0x222)](this[_0x40fa8d(0x20d)]))[_0x40fa8d(0x1dd)](_0x381869=>{var _0x1587b3=_0x40fa8d;switch(_0x381869){case m[_0x1587b3(0x215)]['OFFLINE']:this[_0x1587b3(0x1ce)]();break;case m['SessionStatus'][_0x1587b3(0x24e)]:this[_0x1587b3(0x1dc)]();break;}}),this['_collabSession'][_0x40fa8d(0x24d)]['pipe'](b[_0x40fa8d(0x222)](this['dispose$']))[_0x40fa8d(0x1dd)](_0x2b5157=>{var _0x189e96=_0x40fa8d;const {eventID:_0x2ea632}=_0x2b5157;switch(_0x2ea632){case _[_0x189e96(0x259)][_0x189e96(0x1df)]:this['_handleNewHost'](_0x2b5157);break;case _[_0x189e96(0x259)][_0x189e96(0x270)]:this[_0x189e96(0x260)](_0x2b5157);break;case _[_0x189e96(0x259)][_0x189e96(0x21c)]:this['_handleTerminate']();break;case _['CollaborationEvent']['NEW_CHANGESETS']:this[_0x189e96(0x271)](_0x2b5157);break;}}));}['tryStartPresenting'](){var _0x3745fb=_0x10eff4;this['_collabSession'][_0x3745fb(0x284)]({'eventID':_[_0x3745fb(0x259)][_0x3745fb(0x22d)],'data':{'unitID':this[_0x3745fb(0x234)],'userID':this['_collabSession']['getMemberID']()}},this[_0x3745fb(0x234)]);}[_0x10eff4(0x25c)](){var _0x218611=_0x10eff4;this['_status']===_0x218611(0x23b)&&(this[_0x218611(0x1e2)]['next'](_0x218611(0x1bc)),this[_0x218611(0x1b1)][_0x218611(0x284)]({'eventID':_[_0x218611(0x259)][_0x218611(0x21c)],'data':{'unitID':this[_0x218611(0x234)]}},this['_unitID']));}[_0x10eff4(0x27c)](){var _0xcea8c=_0x10eff4;this[_0xcea8c(0x255)]==='not-following'&&(this[_0xcea8c(0x1e2)]['next'](_0xcea8c(0x1ec)),this[_0xcea8c(0x235)]());}[_0x10eff4(0x24c)](){var _0x27971c=_0x10eff4;this[_0x27971c(0x255)]===_0x27971c(0x1ec)&&this[_0x27971c(0x1f5)]();}[_0x10eff4(0x20b)](_0x533839){var _0x135b8e=_0x10eff4;const {presenter:_0x5375a7}=_0x533839['data'],_0x15aa7a=this['_collabSession'][_0x135b8e(0x279)]();this[_0x135b8e(0x211)]=_0x5375a7,_0x5375a7===_0x15aa7a?(this[_0x135b8e(0x1f5)](),this[_0x135b8e(0x209)]()):this['_status']!==_0x135b8e(0x1c1)&&(this['_stopPresenting'](),this[_0x135b8e(0x235)]());}[_0x10eff4(0x1c5)](){var _0x3d89a8=_0x10eff4;const _0x3ac075={'eventID':_['CollaborationEvent'][_0x3d89a8(0x24f)]};this['_collabSession'][_0x3d89a8(0x284)](_0x3ac075,this[_0x3d89a8(0x234)]);}[_0x10eff4(0x253)](){var _0x1c1f7f=_0x10eff4;this[_0x1c1f7f(0x211)]=null,this['_status']!==_0x1c1f7f(0x23b)&&this[_0x1c1f7f(0x1aa)]();}[_0x10eff4(0x271)](_0x2d0872){var _0x3d4463=_0x10eff4;if(this[_0x3d4463(0x255)]===_0x3d4463(0x1ec)&&this['_presenter']===_0x2d0872['data'][_0x3d4463(0x1a9)]){const _0x5670a7=_['parseProtocolChangeset'](_0x2d0872[_0x3d4463(0x20a)])[_0x3d4463(0x251)][_0x3d4463(0x1a5)]()[_0x3d4463(0x27b)](_0x3b31eb=>_0x3b31eb['id']===C[_0x3d4463(0x210)]['id']);if(_0x5670a7){const _0x939d8d=_0x5670a7[_0x3d4463(0x27d)][_0x3d4463(0x26d)],_0x2436d6=_0x5670a7[_0x3d4463(0x27d)][_0x3d4463(0x266)]['id'];setTimeout(()=>{var _0x534ada=_0x3d4463;this[_0x534ada(0x213)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x939d8d,'subUnitId':_0x2436d6},{'fromCollab':!0x0});});}}}[_0x10eff4(0x209)](){var _0x5df3c2=_0x10eff4;this['_status$'][_0x5df3c2(0x264)]('presenting');const _0x4d5322=new Map(),_0x5c4c6b=this[_0x5df3c2(0x285)]=new o['DisposableCollection']();_0x5c4c6b[_0x5df3c2(0x1ff)](o[_0x5df3c2(0x1bd)](()=>{var _0x41399e=_0x5df3c2;_0x4d5322[_0x41399e(0x1d5)](_0x5eda4e=>_0x5eda4e['complete']()),_0x4d5322['clear']();})),_0x5c4c6b[_0x5df3c2(0x1ff)](this['_commandService'][_0x5df3c2(0x21e)](_0x3ba182=>{var _0x450e9d=_0x5df3c2,_0x53f29b;if(_0x3ba182['type']!==o[_0x450e9d(0x1cd)][_0x450e9d(0x221)]||!this[_0x450e9d(0x239)][_0x450e9d(0x1c8)](_0x3ba182['id']))return;const {id:_0x5ab5fe}=_0x3ba182;let _0x34a7a5;_0x4d5322['has'](_0x5ab5fe)?_0x34a7a5=_0x4d5322[_0x450e9d(0x1da)](_0x5ab5fe):(_0x34a7a5=new D[(_0x450e9d(0x20c))](),_0x4d5322[_0x450e9d(0x1c2)](_0x5ab5fe,_0x34a7a5),_0x34a7a5['pipe'](b['throttleTime']((_0x53f29b=this['_configService'][_0x450e9d(0x225)](Z))!=null?_0x53f29b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x450e9d(0x1dd)](_0x4eb5c9=>{var _0x206cbe=_0x450e9d;this[_0x206cbe(0x1b1)][_0x206cbe(0x284)]({'eventID':_[_0x206cbe(0x259)][_0x206cbe(0x270)],'data':{'unitID':this['_unitID'],'operations':{[_0x4eb5c9['id']]:{'id':_0x4eb5c9['id'],'params':JSON[_0x206cbe(0x238)](_0x4eb5c9['params'])}}}},this['_unitID']);})),_0x34a7a5[_0x450e9d(0x264)](_0x3ba182);})),this['_liveShareService'][_0x5df3c2(0x22a)](this[_0x5df3c2(0x234)])['forEach'](_0x2a99bd=>this[_0x5df3c2(0x1b1)][_0x5df3c2(0x284)]({'eventID':_[_0x5df3c2(0x259)][_0x5df3c2(0x270)],'data':{'unitID':this[_0x5df3c2(0x234)],'operations':{[_0x2a99bd['id']]:{'id':_0x2a99bd['id'],'params':JSON[_0x5df3c2(0x238)](_0x2a99bd[_0x5df3c2(0x27d)])}}}},this[_0x5df3c2(0x234)]));}[_0x10eff4(0x1db)](){var _0x970f=_0x10eff4,_0x1a5d58;this[_0x970f(0x1e2)]['next'](_0x970f(0x1bc)),(_0x1a5d58=this['_commandDisposable'])==null||_0x1a5d58['dispose'](),this['_commandDisposable']=null;}[_0x10eff4(0x235)](){var _0x2aa12c=_0x10eff4,_0x28266a;(_0x28266a=this[_0x2aa12c(0x285)])==null||_0x28266a[_0x2aa12c(0x299)](),this[_0x2aa12c(0x1e2)][_0x2aa12c(0x264)]('following');}[_0x10eff4(0x1aa)](){var _0x5d4fe3=_0x10eff4,_0x1db1ab;this['_status$'][_0x5d4fe3(0x264)](_0x5d4fe3(0x1bc)),(_0x1db1ab=this[_0x5d4fe3(0x285)])==null||_0x1db1ab[_0x5d4fe3(0x299)](),this[_0x5d4fe3(0x285)]=null;}['_stopFollowing'](){var _0xc123de=_0x10eff4,_0x282a6e;this[_0xc123de(0x1e2)]['next']('not-following'),(_0x282a6e=this[_0xc123de(0x285)])==null||_0x282a6e[_0xc123de(0x299)]();}[_0x10eff4(0x260)](_0x2afaf9){var _0x5ec865=_0x10eff4;if(['presenting','not-following','offline'][_0x5ec865(0x1c0)](this[_0x5ec865(0x255)])||!_0x2afaf9[_0x5ec865(0x20a)][_0x5ec865(0x1fa)]||_0x2afaf9['data']['presenter']===this[_0x5ec865(0x1b1)][_0x5ec865(0x279)]())return;this[_0x5ec865(0x255)]===_0x5ec865(0x1bc)&&this[_0x5ec865(0x235)]();const _0x7236b4=_0x2afaf9[_0x5ec865(0x20a)][_0x5ec865(0x229)];Object[_0x5ec865(0x230)](_0x7236b4)['forEach'](_0x5af08c=>{var _0x693ba9=_0x5ec865;this[_0x693ba9(0x213)][_0x693ba9(0x1d9)](_0x5af08c['id'],_0x5af08c[_0x693ba9(0x27d)]?JSON[_0x693ba9(0x28a)](_0x5af08c['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x5f196b=_0x10eff4,_0x12fe63;this[_0x5f196b(0x1e2)][_0x5f196b(0x264)](_0x5f196b(0x1b5)),(_0x12fe63=this[_0x5f196b(0x285)])==null||_0x12fe63['dispose']();}[_0x10eff4(0x1dc)](){var _0x55243a=_0x10eff4;this[_0x55243a(0x1e2)][_0x55243a(0x264)](_0x55243a(0x1bc)),this['_fetchOperations']();}},exports[_0x10eff4(0x267)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x10eff4(0x293)](O)),S(0x4,o[_0x10eff4(0x1e9)])],exports[_0x10eff4(0x267)]);function A(){var _0x2e1a55=_0x10eff4;const _0x2a081b=p[_0x2e1a55(0x208)](exports['LiveShareController']),_0x2c0791=p[_0x2e1a55(0x208)](o[_0x2e1a55(0x257)]),_0x39a8d8=p['useObservable'](()=>_0x2c0791[_0x2e1a55(0x28d)](o[_0x2e1a55(0x276)][_0x2e1a55(0x25d)]),void 0x0,!0x1,[]),[_0x4c6e45,_0x3b950a]=f[_0x2e1a55(0x1a7)](null),[_0x220b13,_0xbe50da]=f[_0x2e1a55(0x1a7)](h['IDLE']),_0x2437ff=f[_0x2e1a55(0x25b)](null);return f[_0x2e1a55(0x26a)](()=>(_0x39a8d8&&_0x2a081b[_0x2e1a55(0x288)](_0x39a8d8['getUnitId']())[_0x2e1a55(0x1a6)](_0x572ed6=>{var _0x1e96ca=_0x2e1a55;_0x3b950a(_0x572ed6),_0x2437ff[_0x1e96ca(0x1bb)]=_0x572ed6[_0x1e96ca(0x290)][_0x1e96ca(0x1dd)](_0xd8ef1a=>{_0xbe50da(_0xd8ef1a);});}),()=>{var _0x1517de=_0x2e1a55,_0x1d7580;(_0x1d7580=_0x2437ff[_0x1517de(0x1bb)])==null||_0x1d7580['unsubscribe'](),_0x2437ff[_0x1517de(0x1bb)]=null;}),[_0x39a8d8,_0x2a081b]),_0x4c6e45?l[_0x2e1a55(0x1e5)](g[_0x2e1a55(0x280)],{'align':_0x2e1a55(0x23c),'disabled':_0x220b13===h[_0x2e1a55(0x295)],'className':_0x2e1a55(0x1e0),'overlay':l[_0x2e1a55(0x1e5)](K,{'status':_0x220b13,'coordinator':_0x4c6e45}),'children':l[_0x2e1a55(0x1e5)]('button',{'className':g[_0x2e1a55(0x1f7)](_0x2e1a55(0x202),{'univer-cursor-not-allowed':_0x220b13===h[_0x2e1a55(0x295)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x220b13!==h['OFFLINE']}),'type':_0x2e1a55(0x275),'children':l['jsx'](P,{'className':_0x2e1a55(0x220)})})}):null;}function K(_0xcc8ddb){var _0x283bfd=_0x10eff4;const {status:_0x3d653a,coordinator:_0x300dee}=_0xcc8ddb;switch(_0x3d653a){case h['IDLE']:return l[_0x283bfd(0x1e5)](z,{'coordinator':_0x300dee});case h['FOLLOWING']:return l[_0x283bfd(0x1e5)](Q,{'coordinator':_0x300dee});case h[_0x283bfd(0x1d8)]:return l['jsx'](X,{'coordinator':_0x300dee});case h[_0x283bfd(0x295)]:return l['jsx'](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x300dee});default:return null;}}function z(_0x21982a){var _0x598b81=_0x10eff4;const {coordinator:_0x5b9c67}=_0x21982a;return l[_0x598b81(0x298)](l[_0x598b81(0x204)],{'children':[l['jsx'](_0x598b81(0x1fb),{'className':_0x598b81(0x27f),'children':_0x598b81(0x1be)}),l['jsx'](g[_0x598b81(0x269)],{'onClick':()=>_0x5b9c67[_0x598b81(0x26e)](),'children':'Start'})]});}function Q(_0x309529){var _0x38a230=_0x10eff4;const {coordinator:_0x3579ab}=_0x309529;return l[_0x38a230(0x298)](l[_0x38a230(0x204)],{'children':[l['jsx']('div',{'className':_0x38a230(0x27f),'children':_0x38a230(0x219)}),l[_0x38a230(0x1e5)](g['Button'],{'onClick':()=>_0x3579ab[_0x38a230(0x24c)](),'children':'Stop\x20following'})]});}function _0xab55(_0xdd4835,_0x549643){var _0x213879=_0x2138();return _0xab55=function(_0xab555b,_0x1619b8){_0xab555b=_0xab555b-0x1a4;var _0x41cd41=_0x213879[_0xab555b];return _0x41cd41;},_0xab55(_0xdd4835,_0x549643);}function X(_0x24d428){var _0x227495=_0x10eff4;const {coordinator:_0x4352f3}=_0x24d428;return l[_0x227495(0x298)](l[_0x227495(0x204)],{'children':[l[_0x227495(0x1e5)](_0x227495(0x1fb),{'className':_0x227495(0x27f),'children':_0x227495(0x249)}),l['jsx'](g[_0x227495(0x269)],{'variant':_0x227495(0x218),'onClick':()=>_0x4352f3['startFollowing'](),'children':_0x227495(0x22b)})]});}function ee(_0x1fe129){var _0x479320=_0x10eff4;const {coordinator:_0x50fdf7}=_0x1fe129;return l['jsxs'](l['Fragment'],{'children':[l[_0x479320(0x1e5)](_0x479320(0x1fb),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x479320(0x232)}),l[_0x479320(0x1e5)](g[_0x479320(0x269)],{'variant':_0x479320(0x23f),'onClick':()=>_0x50fdf7[_0x479320(0x25c)](),'children':_0x479320(0x1d0)})]});}function te(){var _0x12d18e=_0x10eff4;return l['jsx'](l[_0x12d18e(0x204)],{'children':_0x12d18e(0x22e)});}var ie=Object[_0x10eff4(0x1ee)],ne=(_0x36489a,_0x718ab1,_0xbbc979,_0x209093)=>{var _0x580ee4=_0x10eff4;for(var _0x19db5a=_0x209093>0x1?void 0x0:_0x209093?ie(_0x718ab1,_0xbbc979):_0x718ab1,_0x4391f8=_0x36489a[_0x580ee4(0x294)]-0x1,_0x34b3c3;_0x4391f8>=0x0;_0x4391f8--)(_0x34b3c3=_0x36489a[_0x4391f8])&&(_0x19db5a=_0x34b3c3(_0x19db5a)||_0x19db5a);return _0x19db5a;},L=(_0x37d907,_0x2bccd5)=>(_0x3eb991,_0x339b3f)=>_0x2bccd5(_0x3eb991,_0x339b3f,_0x37d907);exports[_0x10eff4(0x242)]=class extends o['Disposable']{constructor(_0x5ac045,_0x7383e8){var _0x5cf866=_0x10eff4;super(),this[_0x5cf866(0x1cb)]=_0x5ac045,this[_0x5cf866(0x226)]=_0x7383e8,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x2775fe=_0x10eff4;this[_0x2775fe(0x1b0)](this['_uiPartsService'][_0x2775fe(0x1f0)](p['BuiltInUIPart'][_0x2775fe(0x277)],()=>p[_0x2775fe(0x212)](A,this[_0x2775fe(0x1cb)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x10eff4(0x293)](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x10eff4(0x242)]);var re=Object[_0x10eff4(0x1b6)],se=Object['getOwnPropertyDescriptor'],oe=(_0x182151,_0x438a69,_0x84802b)=>_0x438a69 in _0x182151?re(_0x182151,_0x438a69,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x84802b}):_0x182151[_0x438a69]=_0x84802b,ae=(_0x49e208,_0x5a99da,_0x1f155b,_0x4057ba)=>{var _0x46ba24=_0x10eff4;for(var _0x3d0fc7=_0x4057ba>0x1?void 0x0:_0x4057ba?se(_0x5a99da,_0x1f155b):_0x5a99da,_0x9c5a95=_0x49e208[_0x46ba24(0x294)]-0x1,_0x461266;_0x9c5a95>=0x0;_0x9c5a95--)(_0x461266=_0x49e208[_0x9c5a95])&&(_0x3d0fc7=_0x461266(_0x3d0fc7)||_0x3d0fc7);return _0x3d0fc7;},N=(_0x4e1bff,_0x25ab9b)=>(_0x33861d,_0x8aab25)=>_0x25ab9b(_0x33861d,_0x8aab25,_0x4e1bff),T=(_0x1a8e44,_0xe3b241,_0x1ab588)=>oe(_0x1a8e44,typeof _0xe3b241!=_0x10eff4(0x258)?_0xe3b241+'':_0xe3b241,_0x1ab588);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x20674f=x,_0x3f6a5b,_0x9b09cd){var _0x59e5e4=_0x10eff4;super(),this['_config']=_0x20674f,this[_0x59e5e4(0x1cb)]=_0x3f6a5b,this[_0x59e5e4(0x248)]=_0x9b09cd;const {..._0x33ac87}=o[_0x59e5e4(0x22c)]({},x,this[_0x59e5e4(0x273)]);this[_0x59e5e4(0x248)][_0x59e5e4(0x205)]($,_0x33ac87);}[_0x10eff4(0x1a8)](){var _0x2ebe74=_0x10eff4;o[_0x2ebe74(0x1d1)](this[_0x2ebe74(0x1cb)],o[_0x2ebe74(0x22f)]([[O],[exports[_0x2ebe74(0x223)]],[E],[exports[_0x2ebe74(0x242)]]],this['_config'][_0x2ebe74(0x262)])),o[_0x2ebe74(0x28e)](this['_injector'],[[E]]);}[_0x10eff4(0x286)](){var _0x1a1af2=_0x10eff4;o[_0x1a1af2(0x28e)](this[_0x1a1af2(0x1cb)],[[exports[_0x1a1af2(0x242)]]]);}},T(exports['UniverLiveSharePlugin'],'type',o[_0x10eff4(0x276)][_0x10eff4(0x1fc)]),T(exports[_0x10eff4(0x28f)],_0x10eff4(0x231),le),exports[_0x10eff4(0x28f)]=ae([o['DependentOn'](m[_0x10eff4(0x21f)]),N(0x1,o[_0x10eff4(0x293)](o[_0x10eff4(0x1b7)])),N(0x2,o['IConfigService'])],exports[_0x10eff4(0x28f)]),exports[_0x10eff4(0x1c6)]=A,exports[_0x10eff4(0x20f)]=O,exports[_0x10eff4(0x21d)]=h;
1
+ 'use strict';var _0x1150a5=_0x16eb;(function(_0x2a033f,_0xe7b784){var _0x5685bf=_0x16eb,_0x4c9a57=_0x2a033f();while(!![]){try{var _0x9336d5=parseInt(_0x5685bf(0x16a))/0x1+-parseInt(_0x5685bf(0x14a))/0x2+parseInt(_0x5685bf(0xbb))/0x3+-parseInt(_0x5685bf(0x173))/0x4+-parseInt(_0x5685bf(0xce))/0x5+parseInt(_0x5685bf(0xe9))/0x6*(parseInt(_0x5685bf(0xbd))/0x7)+parseInt(_0x5685bf(0x187))/0x8;if(_0x9336d5===_0xe7b784)break;else _0x4c9a57['push'](_0x4c9a57['shift']());}catch(_0x331b75){_0x4c9a57['push'](_0x4c9a57['shift']());}}}(_0x2414,0x730ba));var U=Object[_0x1150a5(0x109)],F=(_0x27c530,_0x5d26fd,_0x116fc2)=>_0x5d26fd in _0x27c530?U(_0x27c530,_0x5d26fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x116fc2}):_0x27c530[_0x5d26fd]=_0x116fc2,v=(_0xb22f97,_0x386f4b,_0x2e72f0)=>F(_0xb22f97,typeof _0x386f4b!='symbol'?_0x386f4b+'':_0x386f4b,_0x2e72f0);Object[_0x1150a5(0x109)](exports,Symbol[_0x1150a5(0x18f)],{'value':_0x1150a5(0x17b)});const m=require(_0x1150a5(0x18b)),o=require(_0x1150a5(0x115)),C=require(_0x1150a5(0x19b)),w=require(_0x1150a5(0x174)),p=require(_0x1150a5(0xd7)),l=require('react/jsx-runtime'),g=require(_0x1150a5(0x128)),f=require(_0x1150a5(0x120)),_=require(_0x1150a5(0x161)),D=require(_0x1150a5(0x111)),b=require(_0x1150a5(0x160)),$=_0x1150a5(0x140),x={};class O extends o[_0x1150a5(0xaf)]{constructor(){var _0x38ea2c=_0x1150a5;super(...arguments),v(this,_0x38ea2c(0xf0),new Set()),v(this,_0x38ea2c(0xb5),new Set());}[_0x1150a5(0x103)](_0x18f929){var _0x579847=_0x1150a5;return this['_sharedOperations']['add'](_0x18f929),o[_0x579847(0x102)](()=>this[_0x579847(0xf0)]['delete'](_0x18f929));}['registerInitialStateReporter'](_0xac216f){var _0x512ec9=_0x1150a5;return this[_0x512ec9(0xb5)]['add'](_0xac216f),o[_0x512ec9(0x102)](()=>this['_reporters']['delete'](_0xac216f));}[_0x1150a5(0xe3)](_0x761a6e){var _0x5a75e1=_0x1150a5;return this[_0x5a75e1(0xf0)][_0x5a75e1(0x16c)](_0x761a6e);}[_0x1150a5(0xe2)](_0x37cc5d){var _0x4eae34=_0x1150a5;return Array[_0x4eae34(0x10b)](this[_0x4eae34(0xb5)])[_0x4eae34(0x182)](_0x284aa0=>_0x284aa0(_0x37cc5d));}}var H=Object[_0x1150a5(0xf4)],V=(_0xa0c866,_0x3fd343,_0xc1cae1,_0x71386f)=>{for(var _0x4ac387=_0x71386f>0x1?void 0x0:_0x71386f?H(_0x3fd343,_0xc1cae1):_0x3fd343,_0x2540e9=_0xa0c866['length']-0x1,_0x112a28;_0x2540e9>=0x0;_0x2540e9--)(_0x112a28=_0xa0c866[_0x2540e9])&&(_0x4ac387=_0x112a28(_0x4ac387)||_0x4ac387);return _0x4ac387;},k=(_0x4435bb,_0x3a8c41)=>(_0x23b32c,_0x4dd000)=>_0x3a8c41(_0x23b32c,_0x4dd000,_0x4435bb);let E=class extends o['Disposable']{constructor(_0x3c0a41){var _0xedeadd=_0x1150a5;super(),this['_liveShareService']=_0x3c0a41,this[_0xedeadd(0xe1)]();}[_0x1150a5(0xe1)](){var _0x484213=_0x1150a5;[w[_0x484213(0xc4)]['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x484213(0x169)](_0x8574ad=>{var _0x2c46f5=_0x484213;this[_0x2c46f5(0x181)](this[_0x2c46f5(0x158)][_0x2c46f5(0x103)](_0x8574ad));});}};function _0x16eb(_0x7e9eb8,_0x4e45df){var _0x241458=_0x2414();return _0x16eb=function(_0x16eb70,_0x3ceff8){_0x16eb70=_0x16eb70-0xae;var _0x1f4eab=_0x241458[_0x16eb70];return _0x1f4eab;},_0x16eb(_0x7e9eb8,_0x4e45df);}function _0x2414(){var _0x3406e2=['unitId','rxjs','_handleTerminate','stopPresenting','LiveShareCoordinator','@univerjs/core','_startPresenting','pipe','presenter','1em','colorChannel1','toString','getMemberID','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','SessionStatus','offline','react','mutations','set','unsubscribe','none','pluginName','_stopPresenting','CollaborationSessionService','@univerjs/design','DependentOn','OFFLINE','defIds','LIVESHARE_TERMINATE','_status','useEffect','IUIPartsService','not-following','RxDisposable','includes','univer-size-4','useState','className','useDependency','then','fill','_stopFollowing','takeUntil','Present\x20this\x20document','LIVESHARE_OPERATION','UniverLiveSharePlugin','currentColor','_uiPartsService','live-share.config','length','reverse','http://www.w3.org/2000/svg','createElement','idle','Dropdown','univer-w-full\x20univer-mb-3\x20univer-text-sm','SAME_OPERATION_SHARE_INTERVAL','get','841094KBvxsB','values','onStarting','registerComponent','FOLLOWING','button','_handleNewChangeSets','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','_presenter','concat','_config','add','_status$','getConfig','_liveShareService','NOT_FOLLOWING','event$','getTypeOfUnitAdded$','createInstance','getCurrentTypeOfUnit$','UniverCollaborationClientPlugin','InsertSheetMutation','rxjs/operators','@univerjs-pro/collaboration','current','sheet','ICommandService','getLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','_configService','Stop\x20following','forEach','597297SMJtaq','xlink:href','has','connectInjector','_entities','hasOwnProperty','indexOf','LiveShare','DesktopLiveShareController','2637536qmGipb','@univerjs/sheets-ui','You\x27re\x20following\x20the\x20presenter','find','jsx','_beIdle','useObservable','defs','Module','dispose$','OPERATION','path','init','send','disposeWithMe','map','HEADER_MENU','sessionStatus$','getOwnPropertySymbols','throttleTime','3398232TyrmzG','call','following','displayName','@univerjs-pro/collaboration-client','symbol','tag','BuiltInUIPart','toStringTag','onRendered','entries','tryStartPresenting','mask','Fragment','0\x200\x2017\x2017','setConfig','use','ONLINE','_handleOperation','getTypeOfUnitDisposed$','@univerjs/sheets','IUniverInstanceService','Disposable','random','Plugin','next','requireSession','default','_reporters','mergeOverrideWithDependencies','children','stringify','Start\x20following','UNIVER_SHEET','2276655EsvsTY','end','2338jKtNOw','You\x27re\x20not\x20following\x20the\x20presenter','prototype','complete','LiveShareController','_handleNewHost','Injector','SetZoomRatioOperation','evenodd','stopFollowing','SetWorksheetActiveOperation','replace','forwardRef','_unitID','jsxs','Button','_mountLiveShare','1593240haDMFn','url(#$1','icon','idSuffix','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','data','IConfigService','function','UniverInstanceType','@univerjs/ui','LIVESHARE_REQUEST_HOST','_injector','override','NEW_CHANGESETS','operations','CommandType','PRESENTING','LiveShareService','executeCommand','_init','getInitialStates','shouldShareOperation','LIVESHARE_FETCH_OPERATIONS','merge','params','_startLiveShareCoordinator','assign','1596kKBMtJ','UniverIcon','extend','attrs','parseProtocolChangeset','_fetchOperations','trim','_sharedOperations','getUnitId','_commandDisposable','type','getOwnPropertyDescriptor','IDLE','Start','_univerInstanceService','Inject','startFollowing','div','_commandService','_collabSessionService','propertyIsEnumerable','_startFollowing','string','CollaborationEvent','_handleOnline','toDisposable','registerSharedOperation','status$','_handleOffline','presenting','subscribe','dispose','defineProperty','Subject','from','svg','apply','_collabSession','UNIVER_UNKNOWN'];_0x2414=function(){return _0x3406e2;};return _0x2414();}E=V([k(0x0,o[_0x1150a5(0xf8)](O))],E);var u=function(){var _0x2f4a9f=_0x1150a5;return u=Object[_0x2f4a9f(0xe8)]||function(_0x119344){var _0x15dae3=_0x2f4a9f;for(var _0x574bed,_0x4710b9=0x1,_0x79b362=arguments[_0x15dae3(0x141)];_0x4710b9<_0x79b362;_0x4710b9++){_0x574bed=arguments[_0x4710b9];for(var _0x4fb560 in _0x574bed)Object[_0x15dae3(0xbf)][_0x15dae3(0x16f)][_0x15dae3(0x188)](_0x574bed,_0x4fb560)&&(_0x119344[_0x4fb560]=_0x574bed[_0x4fb560]);}return _0x119344;},u[_0x2f4a9f(0x10d)](this,arguments);},M=function(_0xb59111,_0x1b6d36){var _0x1eafd9=_0x1150a5,_0x30eedc={};for(var _0x2c5075 in _0xb59111)Object[_0x1eafd9(0xbf)][_0x1eafd9(0x16f)][_0x1eafd9(0x188)](_0xb59111,_0x2c5075)&&_0x1b6d36[_0x1eafd9(0x170)](_0x2c5075)<0x0&&(_0x30eedc[_0x2c5075]=_0xb59111[_0x2c5075]);if(_0xb59111!=null&&typeof Object[_0x1eafd9(0x185)]==_0x1eafd9(0xd5)){for(var _0x14a865=0x0,_0x2c5075=Object[_0x1eafd9(0x185)](_0xb59111);_0x14a865<_0x2c5075[_0x1eafd9(0x141)];_0x14a865++)_0x1b6d36[_0x1eafd9(0x170)](_0x2c5075[_0x14a865])<0x0&&Object[_0x1eafd9(0xbf)][_0x1eafd9(0xfd)][_0x1eafd9(0x188)](_0xb59111,_0x2c5075[_0x14a865])&&(_0x30eedc[_0x2c5075[_0x14a865]]=_0xb59111[_0x2c5075[_0x14a865]]);}return _0x30eedc;},j=f[_0x1150a5(0xc9)](function(_0xc27596,_0x47bb85){var _0x187f59=_0x1150a5,_0x83ef2d=_0xc27596[_0x187f59(0xd0)],_0x194905=_0xc27596['id'],_0x4c9acb=_0xc27596[_0x187f59(0x135)],_0x445b31=_0xc27596[_0x187f59(0xeb)],_0x4b40eb=M(_0xc27596,[_0x187f59(0xd0),'id',_0x187f59(0x135),_0x187f59(0xeb)]),_0x393bdb='univerjs-icon\x20univerjs-icon-'['concat'](_0x194905,'\x20')[_0x187f59(0x153)](_0x4c9acb||'')[_0x187f59(0xef)](),_0x1fd222=f['useRef']('_'[_0x187f59(0x153)](G()));return y(_0x83ef2d,''[_0x187f59(0x153)](_0x194905),{'defIds':_0x83ef2d[_0x187f59(0x12b)],'idSuffix':_0x1fd222[_0x187f59(0x162)]},u({'ref':_0x47bb85,'className':_0x393bdb},_0x4b40eb),_0x445b31);});function y(_0x143097,_0x532a51,_0x5a3d7b,_0x227cfc,_0x3ff7fa){var _0x3c460e=_0x1150a5;return f[_0x3c460e(0x144)](_0x143097[_0x3c460e(0x18d)],u(u({'key':_0x532a51},q(_0x143097,_0x5a3d7b,_0x3ff7fa)),_0x227cfc),(W(_0x143097,_0x5a3d7b)[_0x3c460e(0xb7)]||[])[_0x3c460e(0x182)](function(_0x260747,_0xd2294b){var _0x434dd9=_0x3c460e;return y(_0x260747,''['concat'](_0x532a51,'-')[_0x434dd9(0x153)](_0x143097[_0x434dd9(0x18d)],'-')[_0x434dd9(0x153)](_0xd2294b),_0x5a3d7b,void 0x0,_0x3ff7fa);}));}function q(_0x271dde,_0x4a1166,_0x1b1f18){var _0x588dc9=_0x1150a5,_0x188e71=u({},_0x271dde['attrs']);_0x1b1f18!=null&&_0x1b1f18[_0x588dc9(0x11a)]&&_0x188e71[_0x588dc9(0x138)]==='colorChannel1'&&(_0x188e71[_0x588dc9(0x138)]=_0x1b1f18[_0x588dc9(0x11a)]),_0x271dde[_0x588dc9(0x18d)]===_0x588dc9(0x193)&&_0x188e71['id']&&(_0x188e71['id']=_0x188e71['id']+_0x4a1166[_0x588dc9(0xd1)]),Object['entries'](_0x188e71)[_0x588dc9(0x169)](function(_0x226116){var _0x427fab=_0x588dc9,_0x589eb8=_0x226116[0x0],_0xff6276=_0x226116[0x1];_0x589eb8===_0x427fab(0x193)&&typeof _0xff6276==_0x427fab(0xff)&&(_0x188e71[_0x589eb8]=_0xff6276[_0x427fab(0xc8)](/url\(#(.*)\)/,_0x427fab(0xcf)[_0x427fab(0x153)](_0x4a1166[_0x427fab(0xd1)],')')));});var _0x21f36e=_0x4a1166['defIds'];return!_0x21f36e||_0x21f36e[_0x588dc9(0x141)]===0x0||(_0x271dde[_0x588dc9(0x18d)]===_0x588dc9(0x197)&&_0x188e71[_0x588dc9(0x16b)]&&(_0x188e71[_0x588dc9(0x16b)]=_0x188e71[_0x588dc9(0x16b)]+_0x4a1166[_0x588dc9(0xd1)]),Object[_0x588dc9(0x191)](_0x188e71)[_0x588dc9(0x169)](function(_0x34f5aa){var _0x20afd6=_0x588dc9,_0x145e0f=_0x34f5aa[0x0],_0x1fe832=_0x34f5aa[0x1];typeof _0x1fe832=='string'&&(_0x188e71[_0x145e0f]=_0x1fe832[_0x20afd6(0xc8)](/url\(#(.*)\)/,_0x20afd6(0xcf)['concat'](_0x4a1166['idSuffix'],')')));})),_0x188e71;}function W(_0x368db2,_0x586a1a){var _0x1c1e2b=_0x1150a5,_0x11dc93,_0x57bb92=_0x586a1a[_0x1c1e2b(0x12b)];return!_0x57bb92||_0x57bb92['length']===0x0?_0x368db2:_0x368db2[_0x1c1e2b(0x18d)]===_0x1c1e2b(0x17a)&&(!((_0x11dc93=_0x368db2[_0x1c1e2b(0xb7)])===null||_0x11dc93===void 0x0)&&_0x11dc93[_0x1c1e2b(0x141)])?u(u({},_0x368db2),{'children':_0x368db2[_0x1c1e2b(0xb7)][_0x1c1e2b(0x182)](function(_0x351005){var _0x89dc3=_0x1c1e2b;return typeof _0x351005[_0x89dc3(0xec)]['id']==_0x89dc3(0xff)&&_0x57bb92&&_0x57bb92[_0x89dc3(0x132)](_0x351005[_0x89dc3(0xec)]['id'])?u(u({},_0x351005),{'attrs':u(u({},_0x351005[_0x89dc3(0xec)]),{'id':_0x351005[_0x89dc3(0xec)]['id']+_0x586a1a['idSuffix']})}):_0x351005;})}):_0x368db2;}function G(){var _0xaadf55=_0x1150a5;return Math[_0xaadf55(0xb0)]()[_0xaadf55(0x11b)](0x24)['substring'](0x2,0x8);}j[_0x1150a5(0x18a)]=_0x1150a5(0xea);var B={'tag':_0x1150a5(0x10c),'attrs':{'xmlns':_0x1150a5(0x143),'fill':_0x1150a5(0x124),'viewBox':_0x1150a5(0x195),'width':_0x1150a5(0x119),'height':_0x1150a5(0x119)},'children':[{'tag':'path','attrs':{'fill':_0x1150a5(0x13e),'d':_0x1150a5(0x151)}},{'tag':_0x1150a5(0x17e),'attrs':{'fill':_0x1150a5(0x13e),'d':_0x1150a5(0x11d),'fillRule':_0x1150a5(0xc5),'clipRule':'evenodd'}}]},P=f[_0x1150a5(0xc9)](function(_0x42ff6f,_0x5f5bb7){var _0xcf0ea3=_0x1150a5;return f['createElement'](j,Object[_0xcf0ea3(0xe8)]({},_0x42ff6f,{'id':'live-share-icon','ref':_0x5f5bb7,'icon':B}));});P[_0x1150a5(0x18a)]='LiveShareIcon';var Y=Object[_0x1150a5(0xf4)],R=(_0x5d4749,_0x425e28,_0x24231e,_0x4858a8)=>{var _0x38feae=_0x1150a5;for(var _0x1726a1=_0x4858a8>0x1?void 0x0:_0x4858a8?Y(_0x425e28,_0x24231e):_0x425e28,_0x402f5c=_0x5d4749[_0x38feae(0x141)]-0x1,_0x26c982;_0x402f5c>=0x0;_0x402f5c--)(_0x26c982=_0x5d4749[_0x402f5c])&&(_0x1726a1=_0x26c982(_0x1726a1)||_0x1726a1);return _0x1726a1;},S=(_0x2302fb,_0x3e268e)=>(_0x2c3fa0,_0x3e2040)=>_0x3e268e(_0x2c3fa0,_0x3e2040,_0x2302fb);exports[_0x1150a5(0xc1)]=class extends o[_0x1150a5(0x131)]{constructor(_0x36ffb1,_0x5a0447,_0x51662b){var _0x430f03=_0x1150a5;super(),v(this,_0x430f03(0x16e),new Map()),(this[_0x430f03(0xf7)]=_0x36ffb1,this['_injector']=_0x5a0447,this['_collabSessionService']=_0x51662b,this[_0x430f03(0xe1)]());}async[_0x1150a5(0x165)](_0x567fe9){var _0x33e089=_0x1150a5;return this[_0x33e089(0x16e)][_0x33e089(0x16c)](_0x567fe9)||await this[_0x33e089(0xe7)](_0x567fe9),this[_0x33e089(0x16e)][_0x33e089(0x149)](_0x567fe9);}[_0x1150a5(0xe1)](){var _0x56aa93=_0x1150a5;this['_univerInstanceService'][_0x56aa93(0x15b)](o[_0x56aa93(0xd6)][_0x56aa93(0xba)])[_0x56aa93(0x117)](b[_0x56aa93(0x13a)](this[_0x56aa93(0x17c)]))[_0x56aa93(0x107)](async _0x48fd50=>{var _0x3b9ba0=_0x56aa93;const _0x388e26=_0x48fd50[_0x3b9ba0(0xf1)]();this[_0x3b9ba0(0x16e)]['has'](_0x388e26)||this[_0x3b9ba0(0xe7)](_0x388e26);}),this[_0x56aa93(0xf7)][_0x56aa93(0x19a)](o[_0x56aa93(0xd6)]['UNIVER_SHEET'])[_0x56aa93(0x117)](b['takeUntil'](this[_0x56aa93(0x17c)]))[_0x56aa93(0x107)](_0x4f8bf3=>{var _0x506ec0=_0x56aa93;const _0x445b16=_0x4f8bf3['getUnitId'](),_0x58692f=this[_0x506ec0(0x16e)]['get'](_0x445b16);_0x58692f==null||_0x58692f[_0x506ec0(0x108)]();});}async[_0x1150a5(0xe7)](_0x30e785){var _0x4f5e73=_0x1150a5;const _0x3546eb=await this[_0x4f5e73(0xfc)][_0x4f5e73(0xb3)](_0x30e785),_0x2b00dc=this[_0x4f5e73(0xd9)][_0x4f5e73(0x15c)](exports[_0x4f5e73(0x114)],_0x30e785,_0x3546eb);return _0x2b00dc[_0x4f5e73(0x17f)](),this[_0x4f5e73(0x16e)][_0x4f5e73(0x122)](_0x30e785,_0x2b00dc),_0x2b00dc;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x1150a5(0xf8)](o['Injector'])),S(0x2,o[_0x1150a5(0xf8)](m[_0x1150a5(0x127)]))],exports[_0x1150a5(0xc1)]);var h=(_0x461832=>(_0x461832[_0x1150a5(0x12a)]=_0x1150a5(0x11f),_0x461832[_0x1150a5(0xf5)]=_0x1150a5(0x145),_0x461832[_0x1150a5(0x14e)]='following',_0x461832[_0x1150a5(0x159)]=_0x1150a5(0x130),_0x461832[_0x1150a5(0xde)]=_0x1150a5(0x106),_0x461832))(h||{});const Z=_0x1150a5(0x148),J=0xc8;exports[_0x1150a5(0x114)]=class extends o[_0x1150a5(0x131)]{constructor(_0x3e434f,_0x5ec71a,_0x4f8c3f,_0x3f4e2b,_0x3b6a67){var _0x1256ca=_0x1150a5;super(),v(this,'_status$',new D['BehaviorSubject'](_0x1256ca(0x145))),v(this,_0x1256ca(0x104),this[_0x1256ca(0x156)]['asObservable']()),v(this,_0x1256ca(0xe1),!0x1),v(this,'_commandDisposable',null),v(this,_0x1256ca(0x152),null),(this['_unitID']=_0x3e434f,this[_0x1256ca(0x10e)]=_0x5ec71a,this[_0x1256ca(0x167)]=_0x4f8c3f,this[_0x1256ca(0x158)]=_0x3f4e2b,this['_commandService']=_0x3b6a67);}get[_0x1150a5(0x12d)](){var _0x5edb18=_0x1150a5;return this[_0x5edb18(0x156)]['getValue']();}[_0x1150a5(0x108)](){var _0x31ba6e=_0x1150a5,_0x29ba4e;(_0x29ba4e=this[_0x31ba6e(0xf2)])==null||_0x29ba4e['dispose'](),this[_0x31ba6e(0x156)][_0x31ba6e(0xb2)](_0x31ba6e(0x145)),this['_status$'][_0x31ba6e(0xc0)]();}['init'](){var _0x4d536c=_0x1150a5;this[_0x4d536c(0xe1)]||(this['_init']=!0x0,this['_collabSession'][_0x4d536c(0x184)][_0x4d536c(0x117)](b[_0x4d536c(0x13a)](this[_0x4d536c(0x17c)]))[_0x4d536c(0x107)](_0x38c39a=>{var _0x14e4b2=_0x4d536c;switch(_0x38c39a){case m['SessionStatus'][_0x14e4b2(0x12a)]:this[_0x14e4b2(0x105)]();break;case m[_0x14e4b2(0x11e)][_0x14e4b2(0x198)]:this['_handleOnline']();break;}}),this[_0x4d536c(0x10e)][_0x4d536c(0x15a)][_0x4d536c(0x117)](b[_0x4d536c(0x13a)](this[_0x4d536c(0x17c)]))[_0x4d536c(0x107)](_0x448e3e=>{var _0x146322=_0x4d536c;const {eventID:_0x4a9671}=_0x448e3e;switch(_0x4a9671){case _[_0x146322(0x100)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x448e3e);break;case _[_0x146322(0x100)][_0x146322(0x13c)]:this[_0x146322(0x199)](_0x448e3e);break;case _[_0x146322(0x100)][_0x146322(0x12c)]:this['_handleTerminate']();break;case _[_0x146322(0x100)][_0x146322(0xdb)]:this[_0x146322(0x150)](_0x448e3e);break;}}));}[_0x1150a5(0x192)](){var _0x3693c2=_0x1150a5;this['_collabSession'][_0x3693c2(0x180)]({'eventID':_['CollaborationEvent'][_0x3693c2(0xd8)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x3693c2(0x11c)]()}},this[_0x3693c2(0xca)]);}[_0x1150a5(0x113)](){var _0x41af5d=_0x1150a5;this[_0x41af5d(0x12d)]===_0x41af5d(0x106)&&(this[_0x41af5d(0x156)][_0x41af5d(0xb2)]('idle'),this[_0x41af5d(0x10e)][_0x41af5d(0x180)]({'eventID':_[_0x41af5d(0x100)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x1150a5(0xf9)](){var _0x233ab1=_0x1150a5;this[_0x233ab1(0x12d)]===_0x233ab1(0x130)&&(this[_0x233ab1(0x156)][_0x233ab1(0xb2)]('following'),this[_0x233ab1(0xfe)]());}[_0x1150a5(0xc6)](){var _0x5bba8d=_0x1150a5;this[_0x5bba8d(0x12d)]===_0x5bba8d(0x189)&&this[_0x5bba8d(0x139)]();}[_0x1150a5(0xc2)](_0x586182){var _0x194cd9=_0x1150a5;const {presenter:_0x1ba0fe}=_0x586182[_0x194cd9(0xd3)],_0x3e3578=this[_0x194cd9(0x10e)][_0x194cd9(0x11c)]();this[_0x194cd9(0x152)]=_0x1ba0fe,_0x1ba0fe===_0x3e3578?(this['_stopFollowing'](),this[_0x194cd9(0x116)]()):this[_0x194cd9(0x12d)]!==_0x194cd9(0x130)&&(this[_0x194cd9(0x126)](),this['_startFollowing']());}['_fetchOperations'](){var _0x2c9be9=_0x1150a5;const _0x2ea2f3={'eventID':_[_0x2c9be9(0x100)][_0x2c9be9(0xe4)]};this[_0x2c9be9(0x10e)][_0x2c9be9(0x180)](_0x2ea2f3,this['_unitID']);}[_0x1150a5(0x112)](){var _0x381e75=_0x1150a5;this[_0x381e75(0x152)]=null,this[_0x381e75(0x12d)]!==_0x381e75(0x106)&&this[_0x381e75(0x178)]();}[_0x1150a5(0x150)](_0x4be3c2){var _0x4dc891=_0x1150a5;if(this['_status']===_0x4dc891(0x189)&&this[_0x4dc891(0x152)]===_0x4be3c2[_0x4dc891(0xd3)]['memberID']){const _0x469386=_[_0x4dc891(0xed)](_0x4be3c2[_0x4dc891(0xd3)])[_0x4dc891(0x121)][_0x4dc891(0x142)]()[_0x4dc891(0x176)](_0x14305e=>_0x14305e['id']===C[_0x4dc891(0x15f)]['id']);if(_0x469386){const _0x1f755a=_0x469386['params'][_0x4dc891(0x110)],_0x2f494e=_0x469386[_0x4dc891(0xe6)][_0x4dc891(0x163)]['id'];setTimeout(()=>{var _0x23b85f=_0x4dc891;this[_0x23b85f(0xfb)][_0x23b85f(0xe0)](C[_0x23b85f(0xc7)]['id'],{'unitId':_0x1f755a,'subUnitId':_0x2f494e},{'fromCollab':!0x0});});}}}[_0x1150a5(0x116)](){var _0x46bfbf=_0x1150a5;this[_0x46bfbf(0x156)][_0x46bfbf(0xb2)](_0x46bfbf(0x106));const _0x20984b=new Map(),_0x1fb5b7=this[_0x46bfbf(0xf2)]=new o['DisposableCollection']();_0x1fb5b7[_0x46bfbf(0x155)](o['toDisposable'](()=>{var _0x1a85aa=_0x46bfbf;_0x20984b[_0x1a85aa(0x169)](_0x46a636=>_0x46a636[_0x1a85aa(0xc0)]()),_0x20984b['clear']();})),_0x1fb5b7[_0x46bfbf(0x155)](this['_commandService']['onCommandExecuted'](_0x1e230c=>{var _0x7c3c4f=_0x46bfbf,_0x5a5aa1;if(_0x1e230c['type']!==o[_0x7c3c4f(0xdd)][_0x7c3c4f(0x17d)]||!this[_0x7c3c4f(0x158)][_0x7c3c4f(0xe3)](_0x1e230c['id']))return;const {id:_0x564834}=_0x1e230c;let _0x25e896;_0x20984b[_0x7c3c4f(0x16c)](_0x564834)?_0x25e896=_0x20984b[_0x7c3c4f(0x149)](_0x564834):(_0x25e896=new D[(_0x7c3c4f(0x10a))](),_0x20984b['set'](_0x564834,_0x25e896),_0x25e896[_0x7c3c4f(0x117)](b[_0x7c3c4f(0x186)]((_0x5a5aa1=this[_0x7c3c4f(0x167)][_0x7c3c4f(0x157)](Z))!=null?_0x5a5aa1:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7c3c4f(0x107)](_0x360afa=>{var _0x1efcce=_0x7c3c4f;this[_0x1efcce(0x10e)][_0x1efcce(0x180)]({'eventID':_[_0x1efcce(0x100)][_0x1efcce(0x13c)],'data':{'unitID':this[_0x1efcce(0xca)],'operations':{[_0x360afa['id']]:{'id':_0x360afa['id'],'params':JSON[_0x1efcce(0xb8)](_0x360afa[_0x1efcce(0xe6)])}}}},this['_unitID']);})),_0x25e896[_0x7c3c4f(0xb2)](_0x1e230c);})),this[_0x46bfbf(0x158)][_0x46bfbf(0xe2)](this[_0x46bfbf(0xca)])['forEach'](_0xac9f5e=>this[_0x46bfbf(0x10e)][_0x46bfbf(0x180)]({'eventID':_[_0x46bfbf(0x100)][_0x46bfbf(0x13c)],'data':{'unitID':this[_0x46bfbf(0xca)],'operations':{[_0xac9f5e['id']]:{'id':_0xac9f5e['id'],'params':JSON[_0x46bfbf(0xb8)](_0xac9f5e[_0x46bfbf(0xe6)])}}}},this[_0x46bfbf(0xca)]));}[_0x1150a5(0x126)](){var _0x4434ee=_0x1150a5,_0x11985d;this[_0x4434ee(0x156)][_0x4434ee(0xb2)](_0x4434ee(0x145)),(_0x11985d=this[_0x4434ee(0xf2)])==null||_0x11985d[_0x4434ee(0x108)](),this[_0x4434ee(0xf2)]=null;}[_0x1150a5(0xfe)](){var _0x195ed8=_0x1150a5,_0x420427;(_0x420427=this[_0x195ed8(0xf2)])==null||_0x420427['dispose'](),this[_0x195ed8(0x156)]['next'](_0x195ed8(0x189));}[_0x1150a5(0x178)](){var _0x57b655=_0x1150a5,_0x5bb7c2;this[_0x57b655(0x156)][_0x57b655(0xb2)](_0x57b655(0x145)),(_0x5bb7c2=this['_commandDisposable'])==null||_0x5bb7c2[_0x57b655(0x108)](),this[_0x57b655(0xf2)]=null;}[_0x1150a5(0x139)](){var _0x3994b2=_0x1150a5,_0x4011aa;this[_0x3994b2(0x156)]['next']('not-following'),(_0x4011aa=this[_0x3994b2(0xf2)])==null||_0x4011aa['dispose']();}['_handleOperation'](_0x3d4b7b){var _0x7fbddb=_0x1150a5;if([_0x7fbddb(0x106),'not-following',_0x7fbddb(0x11f)][_0x7fbddb(0x132)](this[_0x7fbddb(0x12d)])||!_0x3d4b7b['data'][_0x7fbddb(0x118)]||_0x3d4b7b[_0x7fbddb(0xd3)]['presenter']===this['_collabSession'][_0x7fbddb(0x11c)]())return;this[_0x7fbddb(0x12d)]==='idle'&&this[_0x7fbddb(0xfe)]();const _0x1b63e6=_0x3d4b7b[_0x7fbddb(0xd3)][_0x7fbddb(0xdc)];Object[_0x7fbddb(0x14b)](_0x1b63e6)[_0x7fbddb(0x169)](_0x124fd0=>{var _0x4e8369=_0x7fbddb;this[_0x4e8369(0xfb)][_0x4e8369(0xe0)](_0x124fd0['id'],_0x124fd0[_0x4e8369(0xe6)]?JSON['parse'](_0x124fd0['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x192eb1=_0x1150a5,_0x19898c;this['_status$']['next'](_0x192eb1(0x11f)),(_0x19898c=this[_0x192eb1(0xf2)])==null||_0x19898c[_0x192eb1(0x108)]();}[_0x1150a5(0x101)](){var _0x23e853=_0x1150a5;this['_status$'][_0x23e853(0xb2)](_0x23e853(0x145)),this[_0x23e853(0xee)]();}},exports[_0x1150a5(0x114)]=R([S(0x2,o[_0x1150a5(0xd4)]),S(0x3,o[_0x1150a5(0xf8)](O)),S(0x4,o[_0x1150a5(0x164)])],exports[_0x1150a5(0x114)]);function A(){var _0x56978f=_0x1150a5;const _0x22b8f1=p[_0x56978f(0x136)](exports[_0x56978f(0xc1)]),_0x181805=p['useDependency'](o[_0x56978f(0xae)]),_0x463735=p[_0x56978f(0x179)](()=>_0x181805[_0x56978f(0x15d)](o['UniverInstanceType'][_0x56978f(0xba)]),void 0x0,!0x1,[]),[_0x5d6c6b,_0x950235]=f[_0x56978f(0x134)](null),[_0x45ce3b,_0xb4dce0]=f[_0x56978f(0x134)](h['IDLE']),_0x2636c4=f['useRef'](null);return f[_0x56978f(0x12e)](()=>(_0x463735&&_0x22b8f1[_0x56978f(0x165)](_0x463735[_0x56978f(0xf1)]())[_0x56978f(0x137)](_0xb69a6a=>{var _0x239941=_0x56978f;_0x950235(_0xb69a6a),_0x2636c4[_0x239941(0x162)]=_0xb69a6a['status$'][_0x239941(0x107)](_0x3fe0f9=>{_0xb4dce0(_0x3fe0f9);});}),()=>{var _0x4dc4ab=_0x56978f,_0x3f049d;(_0x3f049d=_0x2636c4[_0x4dc4ab(0x162)])==null||_0x3f049d[_0x4dc4ab(0x123)](),_0x2636c4[_0x4dc4ab(0x162)]=null;}),[_0x463735,_0x22b8f1]),_0x5d6c6b?l['jsx'](g[_0x56978f(0x146)],{'align':_0x56978f(0xbc),'disabled':_0x45ce3b===h[_0x56978f(0x12a)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l[_0x56978f(0x177)](K,{'status':_0x45ce3b,'coordinator':_0x5d6c6b}),'children':l[_0x56978f(0x177)](_0x56978f(0x14f),{'className':g['clsx'](_0x56978f(0xd2),{'univer-cursor-not-allowed':_0x45ce3b===h[_0x56978f(0x12a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45ce3b!==h['OFFLINE']}),'type':_0x56978f(0x14f),'children':l[_0x56978f(0x177)](P,{'className':_0x56978f(0x133)})})}):null;}function K(_0x591d39){var _0x3f981d=_0x1150a5;const {status:_0x4e9eca,coordinator:_0xc33409}=_0x591d39;switch(_0x4e9eca){case h[_0x3f981d(0xf5)]:return l[_0x3f981d(0x177)](z,{'coordinator':_0xc33409});case h[_0x3f981d(0x14e)]:return l[_0x3f981d(0x177)](Q,{'coordinator':_0xc33409});case h[_0x3f981d(0x159)]:return l[_0x3f981d(0x177)](X,{'coordinator':_0xc33409});case h[_0x3f981d(0x12a)]:return l[_0x3f981d(0x177)](te,{});case h['PRESENTING']:return l[_0x3f981d(0x177)](ee,{'coordinator':_0xc33409});default:return null;}}function z(_0x312cd5){var _0x149fa0=_0x1150a5;const {coordinator:_0x44f4c2}=_0x312cd5;return l[_0x149fa0(0xcb)](l[_0x149fa0(0x194)],{'children':[l[_0x149fa0(0x177)](_0x149fa0(0xfa),{'className':_0x149fa0(0x147),'children':_0x149fa0(0x13b)}),l[_0x149fa0(0x177)](g[_0x149fa0(0xcc)],{'onClick':()=>_0x44f4c2[_0x149fa0(0x192)](),'children':_0x149fa0(0xf6)})]});}function Q(_0x397de6){var _0x3b9a0b=_0x1150a5;const {coordinator:_0x22e4e2}=_0x397de6;return l['jsxs'](l[_0x3b9a0b(0x194)],{'children':[l['jsx'](_0x3b9a0b(0xfa),{'className':_0x3b9a0b(0x147),'children':_0x3b9a0b(0x175)}),l[_0x3b9a0b(0x177)](g['Button'],{'onClick':()=>_0x22e4e2[_0x3b9a0b(0xc6)](),'children':_0x3b9a0b(0x168)})]});}function X(_0x492093){var _0x101cc3=_0x1150a5;const {coordinator:_0x3b7e24}=_0x492093;return l['jsxs'](l['Fragment'],{'children':[l[_0x101cc3(0x177)](_0x101cc3(0xfa),{'className':_0x101cc3(0x147),'children':_0x101cc3(0xbe)}),l[_0x101cc3(0x177)](g[_0x101cc3(0xcc)],{'variant':'text','onClick':()=>_0x3b7e24[_0x101cc3(0xf9)](),'children':_0x101cc3(0xb9)})]});}function ee(_0x2fab06){var _0x486a20=_0x1150a5;const {coordinator:_0x55cfa2}=_0x2fab06;return l['jsxs'](l[_0x486a20(0x194)],{'children':[l[_0x486a20(0x177)]('div',{'className':_0x486a20(0x147),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x486a20(0x177)](g[_0x486a20(0xcc)],{'variant':_0x486a20(0xb4),'onClick':()=>_0x55cfa2[_0x486a20(0x113)](),'children':'Stop\x20presenting'})]});}function te(){var _0x55a0a4=_0x1150a5;return l[_0x55a0a4(0x177)](l[_0x55a0a4(0x194)],{'children':'You\x27are\x20offline.'});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x3a04b6,_0x206fe8,_0x2d3b39,_0x37ee48)=>{var _0x17fc1c=_0x1150a5;for(var _0x4785d7=_0x37ee48>0x1?void 0x0:_0x37ee48?ie(_0x206fe8,_0x2d3b39):_0x206fe8,_0x250f4a=_0x3a04b6[_0x17fc1c(0x141)]-0x1,_0x13cf72;_0x250f4a>=0x0;_0x250f4a--)(_0x13cf72=_0x3a04b6[_0x250f4a])&&(_0x4785d7=_0x13cf72(_0x4785d7)||_0x4785d7);return _0x4785d7;},L=(_0x8ebc78,_0x2e886b)=>(_0x46a1f4,_0x28ee24)=>_0x2e886b(_0x46a1f4,_0x28ee24,_0x8ebc78);exports[_0x1150a5(0x172)]=class extends o['Disposable']{constructor(_0x109af5,_0x169853){super(),this['_injector']=_0x109af5,this['_uiPartsService']=_0x169853,this['_mountLiveShare']();}[_0x1150a5(0xcd)](){var _0x37dfb3=_0x1150a5;this['disposeWithMe'](this[_0x37dfb3(0x13f)][_0x37dfb3(0x14d)](p[_0x37dfb3(0x18e)][_0x37dfb3(0x183)],()=>p[_0x37dfb3(0x16d)](A,this['_injector'])));}},exports[_0x1150a5(0x172)]=ne([L(0x0,o[_0x1150a5(0xf8)](o['Injector'])),L(0x1,p[_0x1150a5(0x12f)])],exports[_0x1150a5(0x172)]);var re=Object[_0x1150a5(0x109)],se=Object['getOwnPropertyDescriptor'],oe=(_0xab228e,_0x523559,_0x114716)=>_0x523559 in _0xab228e?re(_0xab228e,_0x523559,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x114716}):_0xab228e[_0x523559]=_0x114716,ae=(_0x586685,_0x23d325,_0x20550f,_0x3ccf80)=>{var _0x26cd71=_0x1150a5;for(var _0x510aee=_0x3ccf80>0x1?void 0x0:_0x3ccf80?se(_0x23d325,_0x20550f):_0x23d325,_0xebae68=_0x586685[_0x26cd71(0x141)]-0x1,_0x5f483d;_0xebae68>=0x0;_0xebae68--)(_0x5f483d=_0x586685[_0xebae68])&&(_0x510aee=_0x5f483d(_0x510aee)||_0x510aee);return _0x510aee;},N=(_0x54f8c0,_0x1522f8)=>(_0x4d053c,_0x5899fc)=>_0x1522f8(_0x4d053c,_0x5899fc,_0x54f8c0),T=(_0x7f6ef7,_0x286c40,_0xb1d122)=>oe(_0x7f6ef7,typeof _0x286c40!=_0x1150a5(0x18c)?_0x286c40+'':_0x286c40,_0xb1d122);const le=_0x1150a5(0x166);exports[_0x1150a5(0x13d)]=class extends o[_0x1150a5(0xb1)]{constructor(_0x266416=x,_0x140f1a,_0x13b078){var _0x5477bc=_0x1150a5;super(),this[_0x5477bc(0x154)]=_0x266416,this[_0x5477bc(0xd9)]=_0x140f1a,this[_0x5477bc(0x167)]=_0x13b078;const {..._0x16a165}=o[_0x5477bc(0xe5)]({},x,this[_0x5477bc(0x154)]);this[_0x5477bc(0x167)][_0x5477bc(0x196)]($,_0x16a165);}[_0x1150a5(0x14c)](){var _0x31ecab=_0x1150a5;o['registerDependencies'](this[_0x31ecab(0xd9)],o[_0x31ecab(0xb6)]([[O],[exports['LiveShareController']],[E],[exports[_0x31ecab(0x172)]]],this[_0x31ecab(0x154)][_0x31ecab(0xda)])),o['touchDependencies'](this['_injector'],[[E]]);}[_0x1150a5(0x190)](){var _0x39cd30=_0x1150a5;o['touchDependencies'](this['_injector'],[[exports[_0x39cd30(0x172)]]]);}},T(exports[_0x1150a5(0x13d)],_0x1150a5(0xf3),o[_0x1150a5(0xd6)][_0x1150a5(0x10f)]),T(exports[_0x1150a5(0x13d)],_0x1150a5(0x125),le),exports[_0x1150a5(0x13d)]=ae([o[_0x1150a5(0x129)](m[_0x1150a5(0x15e)]),N(0x1,o[_0x1150a5(0xf8)](o[_0x1150a5(0xc3)])),N(0x2,o[_0x1150a5(0xd4)])],exports[_0x1150a5(0x13d)]),exports[_0x1150a5(0x171)]=A,exports[_0x1150a5(0xdf)]=O,exports['LiveShareStatus']=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1285(){var _0x37841a=['You\x27are\x20offline.','_reporters','_handleOffline','complete','1048145JsxOiX','parse','_status$','event$','SAME_OPERATION_SHARE_INTERVAL','override','UniverIcon','registerSharedOperation','idSuffix','_collabSession','214743TWTtfg','status$','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','fill','shouldShareOperation','colorChannel1','You\x27re\x20following\x20the\x20presenter','memberID','unsubscribe','sessionStatus$','entries','map','prototype','24hbycKJ','Present\x20this\x20document','propertyIsEnumerable','UNIVER_UNKNOWN','disposeWithMe','onCommandExecuted','stopFollowing','attrs','evenodd','66sRxHyl','_sharedOperations','tryStartPresenting','getTypeOfUnitDisposed$','params','_handleTerminate','icon','FOLLOWING','4JWVcBN','text','hasOwnProperty','IDLE','subscribe','following','_handleOperation','tag','svg','concat','startFollowing','_startLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','live-share.config','getOwnPropertyDescriptor','type','presenter','send','_commandService','indexOf','_config','getOwnPropertySymbols','pluginName','LiveShareIcon','LIVESHARE_TERMINATE','dispose','presenting','assign','1480730LMhbno','get','extend','1933020ePhuSE','length','_uiPartsService','children','function','OFFLINE','offline','_fetchOperations','clear','_liveShareService','reverse','HEADER_MENU','registerComponent','apply','add','You\x27re\x20not\x20following\x20the\x20presenter','currentColor','_collabSessionService','http://www.w3.org/2000/svg','univer-w-full\x20univer-mb-3\x20univer-text-sm','from','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','1em','_stopFollowing','_mountLiveShare','PRESENTING','_handleNewHost','replace','includes','pipe','toString','requireSession','LIVESHARE_OPERATION','end','NEW_CHANGESETS','Start\x20following','_commandDisposable','xlink:href','executeCommand','NOT_FOLLOWING','random','set','idle','unitId','className','_handleNewChangeSets','onRendered','getLiveShareCoordinator','getUnitId','values','_entities','_handleOnline','_presenter','symbol','getMemberID','asObservable','stopPresenting','1014858JKbuuf','registerInitialStateReporter','current','_unitID','_beIdle','getInitialStates','UNIVER_SHEET','call','stringify','string','_configService','_injector','forEach','_univerInstanceService','Start','defIds','not-following','has','next','univer-size-4','path','You\x27re\x20presenting\x20the\x20document','displayName','data','button','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','defineProperty','dispose$','_status','12728JqwZKa','operations','default','mask','38245zMJRwH','univerjs-icon\x20univerjs-icon-','_stopPresenting','getValue','init','url(#$1','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','OPERATION','div','_startFollowing','_init','Stop\x20following','delete','defs'];_0x1285=function(){return _0x37841a;};return _0x1285();}var _0x124b02=_0x1476;(function(_0x29f048,_0x13881d){var _0x52e8d4=_0x1476,_0x3207a9=_0x29f048();while(!![]){try{var _0x4e5b3e=-parseInt(_0x52e8d4(0x20e))/0x1*(parseInt(_0x52e8d4(0x1d0))/0x2)+parseInt(_0x52e8d4(0x1f0))/0x3+parseInt(_0x52e8d4(0x17a))/0x4+parseInt(_0x52e8d4(0x1d4))/0x5*(parseInt(_0x52e8d4(0x206))/0x6)+-parseInt(_0x52e8d4(0x1e6))/0x7+-parseInt(_0x52e8d4(0x1fd))/0x8*(parseInt(_0x52e8d4(0x1b3))/0x9)+parseInt(_0x52e8d4(0x177))/0xa;if(_0x4e5b3e===_0x13881d)break;else _0x3207a9['push'](_0x3207a9['shift']());}catch(_0x58fe35){_0x3207a9['push'](_0x3207a9['shift']());}}}(_0x1285,0x42ca3));var q=Object[_0x124b02(0x1cd)],z=(_0xbc549,_0x5a5b9a,_0x3e82a5)=>_0x5a5b9a in _0xbc549?q(_0xbc549,_0x5a5b9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e82a5}):_0xbc549[_0x5a5b9a]=_0x3e82a5,d=(_0x5e5e14,_0x36b768,_0x40e453)=>z(_0x5e5e14,typeof _0x36b768!=_0x124b02(0x1af)?_0x36b768+'':_0x36b768,_0x40e453);import{CollaborationSessionService as _0x3123a7,SessionStatus as _0x172486,UniverCollaborationClientPlugin as _0x2fa0bd}from'@univerjs-pro/collaboration-client';import{Disposable as _0x287085,toDisposable as _0x31598b,Inject as _0x4b688f,IUniverInstanceService as _0x20a802,Injector as _0x18f4a8,IConfigService as _0x5b6528,ICommandService as _0x2da53f,RxDisposable as _0x4a594e,UniverInstanceType as _0x5b74f8,DisposableCollection as _0x1694c9,CommandType as _0xa3ee20,DependentOn as _0x3556a5,Plugin as _0x242778,merge as _0x2fd2de,registerDependencies as _0x771dd5,mergeOverrideWithDependencies as _0x21fd4a,touchDependencies as _0x134434}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x56cf44,InsertSheetMutation as _0x1a57af}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4f8a0d,SetScrollOperation as _0x57180d}from'@univerjs/sheets-ui';import{useDependency as _0x3b02a5,useObservable as _0xb6828c,IUIPartsService as _0x3b6be1,BuiltInUIPart as _0x3e890f,connectInjector as _0x4b2b23}from'@univerjs/ui';import{jsx as _0x349fbe,jsxs as _0x1a8fd6,Fragment as _0x552a5f}from'react/jsx-runtime';import{Dropdown as _0x254d1f,clsx as _0x2760c3,Button as _0x445d39}from'@univerjs/design';import{forwardRef as _0x30f0e1,useRef as _0x5f376b,createElement as _0x5c8b39,useState as _0x59606b,useEffect as _0x1ecf7a}from'react';import{CollaborationEvent as _0x4579ed,parseProtocolChangeset as _0x37738a}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1ea0a8,Subject as _0xd6e911}from'rxjs';import{takeUntil as _0x146edb,throttleTime as _0x37c2c2}from'rxjs/operators';const Oe=_0x124b02(0x21b),T={};class L extends _0x287085{constructor(){var _0x55e2a1=_0x124b02;super(...arguments),d(this,_0x55e2a1(0x207),new Set()),d(this,_0x55e2a1(0x1e3),new Set());}[_0x124b02(0x1ed)](_0x599062){var _0xf4fd08=_0x124b02;return this[_0xf4fd08(0x207)][_0xf4fd08(0x188)](_0x599062),_0x31598b(()=>this[_0xf4fd08(0x207)][_0xf4fd08(0x1e0)](_0x599062));}[_0x124b02(0x1b4)](_0x4cc014){var _0x1a89d4=_0x124b02;return this[_0x1a89d4(0x1e3)][_0x1a89d4(0x188)](_0x4cc014),_0x31598b(()=>this['_reporters'][_0x1a89d4(0x1e0)](_0x4cc014));}[_0x124b02(0x1f4)](_0x432115){var _0x114495=_0x124b02;return this[_0x114495(0x207)]['has'](_0x432115);}[_0x124b02(0x1b8)](_0x2e9e25){var _0x255d54=_0x124b02;return Array[_0x255d54(0x18e)](this[_0x255d54(0x1e3)])[_0x255d54(0x1fb)](_0x8987bf=>_0x8987bf(_0x2e9e25));}}var Ee=Object[_0x124b02(0x169)],we=(_0x1f44ea,_0x30b93,_0x5ef472,_0x407a16)=>{var _0x2a81db=_0x124b02;for(var _0x4ddbce=_0x407a16>0x1?void 0x0:_0x407a16?Ee(_0x30b93,_0x5ef472):_0x30b93,_0x213b6d=_0x1f44ea[_0x2a81db(0x17b)]-0x1,_0x358318;_0x213b6d>=0x0;_0x213b6d--)(_0x358318=_0x1f44ea[_0x213b6d])&&(_0x4ddbce=_0x358318(_0x4ddbce)||_0x4ddbce);return _0x4ddbce;},Ne=(_0x52fe62,_0x4f6279)=>(_0x1af1ea,_0x22128c)=>_0x4f6279(_0x1af1ea,_0x22128c,_0x52fe62);let m=class extends _0x287085{constructor(_0x590234){var _0x557dcd=_0x124b02;super(),this[_0x557dcd(0x183)]=_0x590234,this['_init']();}[_0x124b02(0x1de)](){var _0x53551a=_0x124b02;[_0x4f8a0d['id'],_0x57180d['id'],_0x56cf44['id']][_0x53551a(0x1bf)](_0x4d9f4b=>{var _0x3ed4e7=_0x53551a;this[_0x3ed4e7(0x201)](this[_0x3ed4e7(0x183)]['registerSharedOperation'](_0x4d9f4b));});}};m=we([Ne(0x0,_0x4b688f(L))],m);var c=function(){var _0x2f69cb=_0x124b02;return c=Object[_0x2f69cb(0x176)]||function(_0x22ac18){var _0x228faf=_0x2f69cb;for(var _0x26af5a,_0x4eafc5=0x1,_0x1629f9=arguments[_0x228faf(0x17b)];_0x4eafc5<_0x1629f9;_0x4eafc5++){_0x26af5a=arguments[_0x4eafc5];for(var _0x497004 in _0x26af5a)Object['prototype'][_0x228faf(0x210)][_0x228faf(0x1ba)](_0x26af5a,_0x497004)&&(_0x22ac18[_0x497004]=_0x26af5a[_0x497004]);}return _0x22ac18;},c[_0x2f69cb(0x187)](this,arguments);},Ce=function(_0x3a997b,_0x27d841){var _0x51f925=_0x124b02,_0x4c925d={};for(var _0x1d8e9f in _0x3a997b)Object[_0x51f925(0x1fc)]['hasOwnProperty'][_0x51f925(0x1ba)](_0x3a997b,_0x1d8e9f)&&_0x27d841[_0x51f925(0x16e)](_0x1d8e9f)<0x0&&(_0x4c925d[_0x1d8e9f]=_0x3a997b[_0x1d8e9f]);if(_0x3a997b!=null&&typeof Object['getOwnPropertySymbols']==_0x51f925(0x17e)){for(var _0x3494b0=0x0,_0x1d8e9f=Object[_0x51f925(0x170)](_0x3a997b);_0x3494b0<_0x1d8e9f[_0x51f925(0x17b)];_0x3494b0++)_0x27d841['indexOf'](_0x1d8e9f[_0x3494b0])<0x0&&Object[_0x51f925(0x1fc)][_0x51f925(0x1ff)][_0x51f925(0x1ba)](_0x3a997b,_0x1d8e9f[_0x3494b0])&&(_0x4c925d[_0x1d8e9f[_0x3494b0]]=_0x3a997b[_0x1d8e9f[_0x3494b0]]);}return _0x4c925d;},W=_0x30f0e1(function(_0x3f30c8,_0x5cd33d){var _0x5ba3a3=_0x124b02,_0x239f69=_0x3f30c8[_0x5ba3a3(0x20c)],_0xab78be=_0x3f30c8['id'],_0x237406=_0x3f30c8[_0x5ba3a3(0x1a6)],_0x4e4e2d=_0x3f30c8['extend'],_0x4ef403=Ce(_0x3f30c8,[_0x5ba3a3(0x20c),'id',_0x5ba3a3(0x1a6),_0x5ba3a3(0x179)]),_0x510ac1=_0x5ba3a3(0x1d5)[_0x5ba3a3(0x217)](_0xab78be,'\x20')[_0x5ba3a3(0x217)](_0x237406||'')['trim'](),_0x2cc2df=_0x5f376b('_'[_0x5ba3a3(0x217)](Le()));return Y(_0x239f69,''[_0x5ba3a3(0x217)](_0xab78be),{'defIds':_0x239f69['defIds'],'idSuffix':_0x2cc2df[_0x5ba3a3(0x1b5)]},c({'ref':_0x5cd33d,'className':_0x510ac1},_0x4ef403),_0x4e4e2d);});function _0x1476(_0x52a90e,_0x442d59){var _0x128586=_0x1285();return _0x1476=function(_0x147601,_0x43e01f){_0x147601=_0x147601-0x169;var _0x58fff0=_0x128586[_0x147601];return _0x58fff0;},_0x1476(_0x52a90e,_0x442d59);}function Y(_0x2a142d,_0x12e951,_0x1ec467,_0x207365,_0x22419e){var _0x163f9b=_0x124b02;return _0x5c8b39(_0x2a142d[_0x163f9b(0x215)],c(c({'key':_0x12e951},De(_0x2a142d,_0x1ec467,_0x22419e)),_0x207365),(xe(_0x2a142d,_0x1ec467)[_0x163f9b(0x17d)]||[])['map'](function(_0x433763,_0x2479d5){var _0x5ec344=_0x163f9b;return Y(_0x433763,''[_0x5ec344(0x217)](_0x12e951,'-')[_0x5ec344(0x217)](_0x2a142d[_0x5ec344(0x215)],'-')['concat'](_0x2479d5),_0x1ec467,void 0x0,_0x22419e);}));}function De(_0x499ade,_0x46dc55,_0x1845c6){var _0x136962=_0x124b02,_0x23a646=c({},_0x499ade[_0x136962(0x204)]);_0x1845c6!=null&&_0x1845c6[_0x136962(0x1f5)]&&_0x23a646[_0x136962(0x1f3)]===_0x136962(0x1f5)&&(_0x23a646['fill']=_0x1845c6[_0x136962(0x1f5)]),_0x499ade['tag']===_0x136962(0x1d3)&&_0x23a646['id']&&(_0x23a646['id']=_0x23a646['id']+_0x46dc55['idSuffix']),Object[_0x136962(0x1fa)](_0x23a646)['forEach'](function(_0x5e9a94){var _0x1ba539=_0x136962,_0x5243e0=_0x5e9a94[0x0],_0x50a047=_0x5e9a94[0x1];_0x5243e0===_0x1ba539(0x1d3)&&typeof _0x50a047==_0x1ba539(0x1bc)&&(_0x23a646[_0x5243e0]=_0x50a047[_0x1ba539(0x195)](/url\(#(.*)\)/,_0x1ba539(0x1d9)[_0x1ba539(0x217)](_0x46dc55[_0x1ba539(0x1ee)],')')));});var _0x190312=_0x46dc55['defIds'];return!_0x190312||_0x190312[_0x136962(0x17b)]===0x0||(_0x499ade[_0x136962(0x215)]==='use'&&_0x23a646['xlink:href']&&(_0x23a646[_0x136962(0x19f)]=_0x23a646[_0x136962(0x19f)]+_0x46dc55[_0x136962(0x1ee)]),Object['entries'](_0x23a646)[_0x136962(0x1bf)](function(_0x4f91cd){var _0x4601c6=_0x136962,_0x1f86aa=_0x4f91cd[0x0],_0x4fa78f=_0x4f91cd[0x1];typeof _0x4fa78f==_0x4601c6(0x1bc)&&(_0x23a646[_0x1f86aa]=_0x4fa78f['replace'](/url\(#(.*)\)/,_0x4601c6(0x1d9)[_0x4601c6(0x217)](_0x46dc55[_0x4601c6(0x1ee)],')')));})),_0x23a646;}function xe(_0x1ba74a,_0x5b94e4){var _0x23b88c=_0x124b02,_0x4d7a5a,_0x27f7c3=_0x5b94e4[_0x23b88c(0x1c2)];return!_0x27f7c3||_0x27f7c3[_0x23b88c(0x17b)]===0x0?_0x1ba74a:_0x1ba74a[_0x23b88c(0x215)]===_0x23b88c(0x1e1)&&(!((_0x4d7a5a=_0x1ba74a['children'])===null||_0x4d7a5a===void 0x0)&&_0x4d7a5a['length'])?c(c({},_0x1ba74a),{'children':_0x1ba74a[_0x23b88c(0x17d)][_0x23b88c(0x1fb)](function(_0x83f56c){var _0x653279=_0x23b88c;return typeof _0x83f56c[_0x653279(0x204)]['id']==_0x653279(0x1bc)&&_0x27f7c3&&_0x27f7c3[_0x653279(0x196)](_0x83f56c['attrs']['id'])?c(c({},_0x83f56c),{'attrs':c(c({},_0x83f56c['attrs']),{'id':_0x83f56c['attrs']['id']+_0x5b94e4['idSuffix']})}):_0x83f56c;})}):_0x1ba74a;}function Le(){var _0x61766d=_0x124b02;return Math[_0x61766d(0x1a2)]()[_0x61766d(0x198)](0x24)['substring'](0x2,0x8);}W[_0x124b02(0x1c9)]=_0x124b02(0x1ec);var ye={'tag':_0x124b02(0x216),'attrs':{'xmlns':_0x124b02(0x18c),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x124b02(0x190)},'children':[{'tag':_0x124b02(0x1c7),'attrs':{'fill':'currentColor','d':_0x124b02(0x18f)}},{'tag':_0x124b02(0x1c7),'attrs':{'fill':_0x124b02(0x18a),'d':_0x124b02(0x1f2),'fillRule':_0x124b02(0x205),'clipRule':_0x124b02(0x205)}}]},B=_0x30f0e1(function(_0x22f477,_0x319919){var _0x32e4d5=_0x124b02;return _0x5c8b39(W,Object[_0x32e4d5(0x176)]({},_0x22f477,{'id':'live-share-icon','ref':_0x319919,'icon':ye}));});B[_0x124b02(0x1c9)]=_0x124b02(0x172);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x175138,_0x1a0cf5,_0x19375f,_0xcd4479)=>{var _0x3d264b=_0x124b02;for(var _0x2a3c23=_0xcd4479>0x1?void 0x0:_0xcd4479?Re(_0x1a0cf5,_0x19375f):_0x1a0cf5,_0x2fd433=_0x175138[_0x3d264b(0x17b)]-0x1,_0x214683;_0x2fd433>=0x0;_0x2fd433--)(_0x214683=_0x175138[_0x2fd433])&&(_0x2a3c23=_0x214683(_0x2a3c23)||_0x2a3c23);return _0x2a3c23;},f=(_0xc1f6fa,_0x2c9d07)=>(_0x5efaff,_0x4bcda6)=>_0x2c9d07(_0x5efaff,_0x4bcda6,_0xc1f6fa);let I=class extends _0x4a594e{constructor(_0x7b79bd,_0x1e1c92,_0x2eebc6){var _0x583541=_0x124b02;super(),d(this,_0x583541(0x1ac),new Map()),(this['_univerInstanceService']=_0x7b79bd,this['_injector']=_0x1e1c92,this[_0x583541(0x18b)]=_0x2eebc6,this[_0x583541(0x1de)]());}async[_0x124b02(0x1a9)](_0xb022a5){var _0x3eaff6=_0x124b02;return this['_entities'][_0x3eaff6(0x1c4)](_0xb022a5)||await this[_0x3eaff6(0x219)](_0xb022a5),this['_entities'][_0x3eaff6(0x178)](_0xb022a5);}[_0x124b02(0x1de)](){var _0x1af06b=_0x124b02;this[_0x1af06b(0x1c0)]['getTypeOfUnitAdded$'](_0x5b74f8[_0x1af06b(0x1b9)])[_0x1af06b(0x197)](_0x146edb(this[_0x1af06b(0x1ce)]))['subscribe'](async _0x2b8e13=>{var _0x3dc6e0=_0x1af06b;const _0x50642e=_0x2b8e13[_0x3dc6e0(0x1aa)]();this[_0x3dc6e0(0x1ac)][_0x3dc6e0(0x1c4)](_0x50642e)||this['_startLiveShareCoordinator'](_0x50642e);}),this[_0x1af06b(0x1c0)][_0x1af06b(0x209)](_0x5b74f8['UNIVER_SHEET'])['pipe'](_0x146edb(this['dispose$']))[_0x1af06b(0x212)](_0x1ef147=>{var _0x1bd46f=_0x1af06b;const _0x38f2a1=_0x1ef147['getUnitId'](),_0x44b187=this[_0x1bd46f(0x1ac)]['get'](_0x38f2a1);_0x44b187==null||_0x44b187['dispose']();});}async['_startLiveShareCoordinator'](_0x184d6d){var _0x32638e=_0x124b02;const _0x27a09c=await this[_0x32638e(0x18b)][_0x32638e(0x199)](_0x184d6d),_0x42c9a5=this[_0x32638e(0x1be)]['createInstance'](C,_0x184d6d,_0x27a09c);return _0x42c9a5[_0x32638e(0x1d8)](),this['_entities'][_0x32638e(0x1a3)](_0x184d6d,_0x42c9a5),_0x42c9a5;}};I=Z([f(0x0,_0x20a802),f(0x1,_0x4b688f(_0x18f4a8)),f(0x2,_0x4b688f(_0x3123a7))],I);var h=(_0x2d0331=>(_0x2d0331[_0x124b02(0x17f)]='offline',_0x2d0331[_0x124b02(0x211)]=_0x124b02(0x1a4),_0x2d0331[_0x124b02(0x20d)]=_0x124b02(0x213),_0x2d0331[_0x124b02(0x1a1)]='not-following',_0x2d0331[_0x124b02(0x193)]='presenting',_0x2d0331))(h||{});const Pe=_0x124b02(0x1ea),Ae=0xc8;let C=class extends _0x4a594e{constructor(_0x14ef94,_0x2e1ecc,_0x1ae0d9,_0x2ad3c0,_0x3a3f08){var _0x186fbf=_0x124b02;super(),d(this,'_status$',new _0x1ea0a8(_0x186fbf(0x1a4))),d(this,_0x186fbf(0x1f1),this[_0x186fbf(0x1e8)][_0x186fbf(0x1b1)]()),d(this,'_init',!0x1),d(this,_0x186fbf(0x19e),null),d(this,_0x186fbf(0x1ae),null),(this[_0x186fbf(0x1b6)]=_0x14ef94,this[_0x186fbf(0x1ef)]=_0x2e1ecc,this[_0x186fbf(0x1bd)]=_0x1ae0d9,this['_liveShareService']=_0x2ad3c0,this['_commandService']=_0x3a3f08);}get[_0x124b02(0x1cf)](){var _0x276627=_0x124b02;return this[_0x276627(0x1e8)][_0x276627(0x1d7)]();}['dispose'](){var _0x3d9020=_0x124b02,_0x1a458d;(_0x1a458d=this[_0x3d9020(0x19e)])==null||_0x1a458d[_0x3d9020(0x174)](),this[_0x3d9020(0x1e8)]['next'](_0x3d9020(0x1a4)),this['_status$'][_0x3d9020(0x1e5)]();}['init'](){var _0x11b77b=_0x124b02;this[_0x11b77b(0x1de)]||(this['_init']=!0x0,this[_0x11b77b(0x1ef)][_0x11b77b(0x1f9)][_0x11b77b(0x197)](_0x146edb(this[_0x11b77b(0x1ce)]))['subscribe'](_0x16c693=>{var _0x512a32=_0x11b77b;switch(_0x16c693){case _0x172486['OFFLINE']:this[_0x512a32(0x1e4)]();break;case _0x172486['ONLINE']:this['_handleOnline']();break;}}),this[_0x11b77b(0x1ef)][_0x11b77b(0x1e9)][_0x11b77b(0x197)](_0x146edb(this[_0x11b77b(0x1ce)]))['subscribe'](_0x549d08=>{var _0x1783c1=_0x11b77b;const {eventID:_0x41b216}=_0x549d08;switch(_0x41b216){case _0x4579ed['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x549d08);break;case _0x4579ed[_0x1783c1(0x19a)]:this[_0x1783c1(0x214)](_0x549d08);break;case _0x4579ed[_0x1783c1(0x173)]:this[_0x1783c1(0x20b)]();break;case _0x4579ed[_0x1783c1(0x19c)]:this['_handleNewChangeSets'](_0x549d08);break;}}));}[_0x124b02(0x208)](){var _0x35e06e=_0x124b02;this[_0x35e06e(0x1ef)][_0x35e06e(0x16c)]({'eventID':_0x4579ed['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x35e06e(0x1b6)],'userID':this[_0x35e06e(0x1ef)][_0x35e06e(0x1b0)]()}},this[_0x35e06e(0x1b6)]);}[_0x124b02(0x1b2)](){var _0x231a55=_0x124b02;this[_0x231a55(0x1cf)]===_0x231a55(0x175)&&(this['_status$'][_0x231a55(0x1c5)]('idle'),this[_0x231a55(0x1ef)]['send']({'eventID':_0x4579ed[_0x231a55(0x173)],'data':{'unitID':this[_0x231a55(0x1b6)]}},this['_unitID']));}[_0x124b02(0x218)](){var _0x2f538d=_0x124b02;this['_status']===_0x2f538d(0x1c3)&&(this[_0x2f538d(0x1e8)][_0x2f538d(0x1c5)]('following'),this[_0x2f538d(0x1dd)]());}['stopFollowing'](){var _0x3ae779=_0x124b02;this[_0x3ae779(0x1cf)]===_0x3ae779(0x213)&&this[_0x3ae779(0x191)]();}[_0x124b02(0x194)](_0x1faf8a){var _0x5c0720=_0x124b02;const {presenter:_0x4ba513}=_0x1faf8a[_0x5c0720(0x1ca)],_0x5a731c=this[_0x5c0720(0x1ef)][_0x5c0720(0x1b0)]();this['_presenter']=_0x4ba513,_0x4ba513===_0x5a731c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x5c0720(0x1c3)&&(this[_0x5c0720(0x1d6)](),this[_0x5c0720(0x1dd)]());}[_0x124b02(0x181)](){var _0x20619a=_0x124b02;const _0xc78e3c={'eventID':_0x4579ed['LIVESHARE_FETCH_OPERATIONS']};this[_0x20619a(0x1ef)][_0x20619a(0x16c)](_0xc78e3c,this[_0x20619a(0x1b6)]);}['_handleTerminate'](){var _0x3c770a=_0x124b02;this['_presenter']=null,this['_status']!==_0x3c770a(0x175)&&this[_0x3c770a(0x1b7)]();}[_0x124b02(0x1a7)](_0x1d670a){var _0x60456a=_0x124b02;if(this['_status']===_0x60456a(0x213)&&this[_0x60456a(0x1ae)]===_0x1d670a['data'][_0x60456a(0x1f7)]){const _0x359501=_0x37738a(_0x1d670a['data'])['mutations'][_0x60456a(0x184)]()['find'](_0x5c7245=>_0x5c7245['id']===_0x1a57af['id']);if(_0x359501){const _0x41d82a=_0x359501[_0x60456a(0x20a)][_0x60456a(0x1a5)],_0x37ab32=_0x359501[_0x60456a(0x20a)]['sheet']['id'];setTimeout(()=>{var _0x375426=_0x60456a;this['_commandService'][_0x375426(0x1a0)](_0x56cf44['id'],{'unitId':_0x41d82a,'subUnitId':_0x37ab32},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x55317c=_0x124b02;this[_0x55317c(0x1e8)][_0x55317c(0x1c5)](_0x55317c(0x175));const _0x5be961=new Map(),_0xbbdc4e=this[_0x55317c(0x19e)]=new _0x1694c9();_0xbbdc4e[_0x55317c(0x188)](_0x31598b(()=>{var _0x2d3077=_0x55317c;_0x5be961[_0x2d3077(0x1bf)](_0x513593=>_0x513593[_0x2d3077(0x1e5)]()),_0x5be961[_0x2d3077(0x182)]();})),_0xbbdc4e[_0x55317c(0x188)](this['_commandService'][_0x55317c(0x202)](_0xf3522=>{var _0xca47a0=_0x55317c,_0x4c97d9;if(_0xf3522[_0xca47a0(0x16a)]!==_0xa3ee20[_0xca47a0(0x1db)]||!this[_0xca47a0(0x183)]['shouldShareOperation'](_0xf3522['id']))return;const {id:_0x11e0b6}=_0xf3522;let _0x35690a;_0x5be961['has'](_0x11e0b6)?_0x35690a=_0x5be961[_0xca47a0(0x178)](_0x11e0b6):(_0x35690a=new _0xd6e911(),_0x5be961[_0xca47a0(0x1a3)](_0x11e0b6,_0x35690a),_0x35690a['pipe'](_0x37c2c2((_0x4c97d9=this[_0xca47a0(0x1bd)]['getConfig'](Pe))!=null?_0x4c97d9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xe065a8=>{var _0x5d2307=_0xca47a0;this['_collabSession']['send']({'eventID':_0x4579ed[_0x5d2307(0x19a)],'data':{'unitID':this[_0x5d2307(0x1b6)],'operations':{[_0xe065a8['id']]:{'id':_0xe065a8['id'],'params':JSON[_0x5d2307(0x1bb)](_0xe065a8['params'])}}}},this['_unitID']);})),_0x35690a[_0xca47a0(0x1c5)](_0xf3522);})),this[_0x55317c(0x183)][_0x55317c(0x1b8)](this['_unitID'])[_0x55317c(0x1bf)](_0x2a8347=>this[_0x55317c(0x1ef)][_0x55317c(0x16c)]({'eventID':_0x4579ed[_0x55317c(0x19a)],'data':{'unitID':this[_0x55317c(0x1b6)],'operations':{[_0x2a8347['id']]:{'id':_0x2a8347['id'],'params':JSON[_0x55317c(0x1bb)](_0x2a8347[_0x55317c(0x20a)])}}}},this[_0x55317c(0x1b6)]));}['_stopPresenting'](){var _0x2dbd6b=_0x124b02,_0x3fca6d;this[_0x2dbd6b(0x1e8)][_0x2dbd6b(0x1c5)]('idle'),(_0x3fca6d=this[_0x2dbd6b(0x19e)])==null||_0x3fca6d['dispose'](),this[_0x2dbd6b(0x19e)]=null;}[_0x124b02(0x1dd)](){var _0x3c250c=_0x124b02,_0xb5574c;(_0xb5574c=this[_0x3c250c(0x19e)])==null||_0xb5574c[_0x3c250c(0x174)](),this[_0x3c250c(0x1e8)][_0x3c250c(0x1c5)](_0x3c250c(0x213));}[_0x124b02(0x1b7)](){var _0x37d28c=_0x124b02,_0x432446;this[_0x37d28c(0x1e8)][_0x37d28c(0x1c5)](_0x37d28c(0x1a4)),(_0x432446=this[_0x37d28c(0x19e)])==null||_0x432446[_0x37d28c(0x174)](),this['_commandDisposable']=null;}[_0x124b02(0x191)](){var _0x481af1=_0x124b02,_0x307953;this[_0x481af1(0x1e8)]['next'](_0x481af1(0x1c3)),(_0x307953=this[_0x481af1(0x19e)])==null||_0x307953['dispose']();}[_0x124b02(0x214)](_0x27e57f){var _0x4bb23c=_0x124b02;if(['presenting',_0x4bb23c(0x1c3),'offline'][_0x4bb23c(0x196)](this[_0x4bb23c(0x1cf)])||!_0x27e57f[_0x4bb23c(0x1ca)]['presenter']||_0x27e57f[_0x4bb23c(0x1ca)][_0x4bb23c(0x16b)]===this[_0x4bb23c(0x1ef)]['getMemberID']())return;this[_0x4bb23c(0x1cf)]===_0x4bb23c(0x1a4)&&this[_0x4bb23c(0x1dd)]();const _0x1aa103=_0x27e57f[_0x4bb23c(0x1ca)][_0x4bb23c(0x1d1)];Object[_0x4bb23c(0x1ab)](_0x1aa103)[_0x4bb23c(0x1bf)](_0x3e56a4=>{var _0x3002a2=_0x4bb23c;this[_0x3002a2(0x16d)][_0x3002a2(0x1a0)](_0x3e56a4['id'],_0x3e56a4[_0x3002a2(0x20a)]?JSON[_0x3002a2(0x1e7)](_0x3e56a4['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2d251d=_0x124b02,_0x2f253d;this[_0x2d251d(0x1e8)][_0x2d251d(0x1c5)](_0x2d251d(0x180)),(_0x2f253d=this[_0x2d251d(0x19e)])==null||_0x2f253d[_0x2d251d(0x174)]();}[_0x124b02(0x1ad)](){var _0x320f7e=_0x124b02;this[_0x320f7e(0x1e8)][_0x320f7e(0x1c5)](_0x320f7e(0x1a4)),this[_0x320f7e(0x181)]();}};C=Z([f(0x2,_0x5b6528),f(0x3,_0x4b688f(L)),f(0x4,_0x2da53f)],C);function Te(){var _0x3808ac=_0x124b02;const _0x575238=_0x3b02a5(I),_0x29ad2f=_0x3b02a5(_0x20a802),_0x20c29e=_0xb6828c(()=>_0x29ad2f['getCurrentTypeOfUnit$'](_0x5b74f8[_0x3808ac(0x1b9)]),void 0x0,!0x1,[]),[_0xabeed0,_0x105676]=_0x59606b(null),[_0x2a2715,_0x2d8e47]=_0x59606b(h['IDLE']),_0x43341f=_0x5f376b(null);return _0x1ecf7a(()=>(_0x20c29e&&_0x575238[_0x3808ac(0x1a9)](_0x20c29e[_0x3808ac(0x1aa)]())['then'](_0x41a9df=>{var _0x4c1611=_0x3808ac;_0x105676(_0x41a9df),_0x43341f[_0x4c1611(0x1b5)]=_0x41a9df[_0x4c1611(0x1f1)][_0x4c1611(0x212)](_0x241895=>{_0x2d8e47(_0x241895);});}),()=>{var _0x483fd2=_0x3808ac,_0x5e8c13;(_0x5e8c13=_0x43341f[_0x483fd2(0x1b5)])==null||_0x5e8c13[_0x483fd2(0x1f8)](),_0x43341f[_0x483fd2(0x1b5)]=null;}),[_0x20c29e,_0x575238]),_0xabeed0?_0x349fbe(_0x254d1f,{'align':_0x3808ac(0x19b),'disabled':_0x2a2715===h[_0x3808ac(0x17f)],'className':_0x3808ac(0x1da),'overlay':_0x349fbe($e,{'status':_0x2a2715,'coordinator':_0xabeed0}),'children':_0x349fbe(_0x3808ac(0x1cb),{'className':_0x2760c3(_0x3808ac(0x1cc),{'univer-cursor-not-allowed':_0x2a2715===h[_0x3808ac(0x17f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2a2715!==h[_0x3808ac(0x17f)]}),'type':_0x3808ac(0x1cb),'children':_0x349fbe(B,{'className':_0x3808ac(0x1c6)})})}):null;}function $e(_0x5e49bf){var _0x431e3a=_0x124b02;const {status:_0x52e087,coordinator:_0x11275f}=_0x5e49bf;switch(_0x52e087){case h[_0x431e3a(0x211)]:return _0x349fbe(Fe,{'coordinator':_0x11275f});case h['FOLLOWING']:return _0x349fbe(He,{'coordinator':_0x11275f});case h[_0x431e3a(0x1a1)]:return _0x349fbe(je,{'coordinator':_0x11275f});case h['OFFLINE']:return _0x349fbe(Ve,{});case h['PRESENTING']:return _0x349fbe(Ue,{'coordinator':_0x11275f});default:return null;}}function Fe(_0x520d73){var _0x531128=_0x124b02;const {coordinator:_0x9ca625}=_0x520d73;return _0x1a8fd6(_0x552a5f,{'children':[_0x349fbe('div',{'className':_0x531128(0x18d),'children':_0x531128(0x1fe)}),_0x349fbe(_0x445d39,{'onClick':()=>_0x9ca625[_0x531128(0x208)](),'children':_0x531128(0x1c1)})]});}function He(_0x3c5254){var _0x588937=_0x124b02;const {coordinator:_0x2a788b}=_0x3c5254;return _0x1a8fd6(_0x552a5f,{'children':[_0x349fbe(_0x588937(0x1dc),{'className':_0x588937(0x18d),'children':_0x588937(0x1f6)}),_0x349fbe(_0x445d39,{'onClick':()=>_0x2a788b[_0x588937(0x203)](),'children':_0x588937(0x1df)})]});}function je(_0x473f7c){var _0x1eebb9=_0x124b02;const {coordinator:_0x2b24da}=_0x473f7c;return _0x1a8fd6(_0x552a5f,{'children':[_0x349fbe('div',{'className':_0x1eebb9(0x18d),'children':_0x1eebb9(0x189)}),_0x349fbe(_0x445d39,{'variant':_0x1eebb9(0x20f),'onClick':()=>_0x2b24da['startFollowing'](),'children':_0x1eebb9(0x19d)})]});}function Ue(_0xbd04ad){var _0x2f959e=_0x124b02;const {coordinator:_0x2e185b}=_0xbd04ad;return _0x1a8fd6(_0x552a5f,{'children':[_0x349fbe(_0x2f959e(0x1dc),{'className':_0x2f959e(0x18d),'children':_0x2f959e(0x1c8)}),_0x349fbe(_0x445d39,{'variant':_0x2f959e(0x1d2),'onClick':()=>_0x2e185b[_0x2f959e(0x1b2)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x1d9dcb=_0x124b02;return _0x349fbe(_0x552a5f,{'children':_0x1d9dcb(0x1e2)});}var Me=Object[_0x124b02(0x169)],ke=(_0x34862c,_0x30ab71,_0xc756eb,_0x5df6bc)=>{for(var _0x2d4c0d=_0x5df6bc>0x1?void 0x0:_0x5df6bc?Me(_0x30ab71,_0xc756eb):_0x30ab71,_0x596342=_0x34862c['length']-0x1,_0x256016;_0x596342>=0x0;_0x596342--)(_0x256016=_0x34862c[_0x596342])&&(_0x2d4c0d=_0x256016(_0x2d4c0d)||_0x2d4c0d);return _0x2d4c0d;},$=(_0x34c6ed,_0x4fb3e8)=>(_0x543ce3,_0x4e6f93)=>_0x4fb3e8(_0x543ce3,_0x4e6f93,_0x34c6ed);let b=class extends _0x287085{constructor(_0x11931a,_0x8b771f){super(),this['_injector']=_0x11931a,this['_uiPartsService']=_0x8b771f,this['_mountLiveShare']();}[_0x124b02(0x192)](){var _0x27821e=_0x124b02;this[_0x27821e(0x201)](this[_0x27821e(0x17c)][_0x27821e(0x186)](_0x3e890f[_0x27821e(0x185)],()=>_0x4b2b23(Te,this[_0x27821e(0x1be)])));}};b=ke([$(0x0,_0x4b688f(_0x18f4a8)),$(0x1,_0x3b6be1)],b);var Ge=Object[_0x124b02(0x1cd)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1c5be9,_0x2671ca,_0x476be8)=>_0x2671ca in _0x1c5be9?Ge(_0x1c5be9,_0x2671ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x476be8}):_0x1c5be9[_0x2671ca]=_0x476be8,Be=(_0x36457a,_0x3f9b08,_0x109036,_0x592ac9)=>{var _0x220a94=_0x124b02;for(var _0x57599b=_0x592ac9>0x1?void 0x0:_0x592ac9?We(_0x3f9b08,_0x109036):_0x3f9b08,_0x15a6dd=_0x36457a[_0x220a94(0x17b)]-0x1,_0x420d3e;_0x15a6dd>=0x0;_0x15a6dd--)(_0x420d3e=_0x36457a[_0x15a6dd])&&(_0x57599b=_0x420d3e(_0x57599b)||_0x57599b);return _0x57599b;},F=(_0x4cdbef,_0x205835)=>(_0x26d0a3,_0x5f7a0d)=>_0x205835(_0x26d0a3,_0x5f7a0d,_0x4cdbef),J=(_0x5d0569,_0x584a96,_0x9efb9b)=>Ye(_0x5d0569,typeof _0x584a96!=_0x124b02(0x1af)?_0x584a96+'':_0x584a96,_0x9efb9b);const Ze=_0x124b02(0x21a);let O=class extends _0x242778{constructor(_0x36663f=T,_0x4e660e,_0x4288f8){var _0x242393=_0x124b02;super(),this[_0x242393(0x16f)]=_0x36663f,this['_injector']=_0x4e660e,this['_configService']=_0x4288f8;const {..._0x2f58e6}=_0x2fd2de({},T,this[_0x242393(0x16f)]);this[_0x242393(0x1bd)]['setConfig'](Oe,_0x2f58e6);}['onStarting'](){var _0x7d6e99=_0x124b02;_0x771dd5(this[_0x7d6e99(0x1be)],_0x21fd4a([[L],[I],[m],[b]],this[_0x7d6e99(0x16f)][_0x7d6e99(0x1eb)])),_0x134434(this[_0x7d6e99(0x1be)],[[m]]);}[_0x124b02(0x1a8)](){_0x134434(this['_injector'],[[b]]);}};J(O,_0x124b02(0x16a),_0x5b74f8[_0x124b02(0x200)]),J(O,_0x124b02(0x171),Ze),O=Be([_0x3556a5(_0x2fa0bd),F(0x1,_0x4b688f(_0x18f4a8)),F(0x2,_0x5b6528)],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 _0x829f68=_0x470a;(function(_0x1b62b0,_0x133293){var _0x1b643a=_0x470a,_0x2f8c38=_0x1b62b0();while(!![]){try{var _0x59ee28=parseInt(_0x1b643a(0x188))/0x1+-parseInt(_0x1b643a(0x194))/0x2+-parseInt(_0x1b643a(0x1ac))/0x3*(-parseInt(_0x1b643a(0x154))/0x4)+-parseInt(_0x1b643a(0x1e1))/0x5+parseInt(_0x1b643a(0x151))/0x6+-parseInt(_0x1b643a(0x1f2))/0x7*(-parseInt(_0x1b643a(0x16c))/0x8)+-parseInt(_0x1b643a(0x190))/0x9*(parseInt(_0x1b643a(0x1c9))/0xa);if(_0x59ee28===_0x133293)break;else _0x2f8c38['push'](_0x2f8c38['shift']());}catch(_0x195f4d){_0x2f8c38['push'](_0x2f8c38['shift']());}}}(_0x14a1,0x4b65a));var q=Object[_0x829f68(0x1d0)],z=(_0x393d91,_0x1fe6cb,_0x208465)=>_0x1fe6cb in _0x393d91?q(_0x393d91,_0x1fe6cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208465}):_0x393d91[_0x1fe6cb]=_0x208465,d=(_0x4b3774,_0x38f88d,_0x4c39aa)=>z(_0x4b3774,typeof _0x38f88d!=_0x829f68(0x1f4)?_0x38f88d+'':_0x38f88d,_0x4c39aa);import{CollaborationSessionService as _0x2895bc,SessionStatus as _0x1b6e8a,UniverCollaborationClientPlugin as _0x52511b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x29cf92,toDisposable as _0x44c1a7,Inject as _0x4cd37e,IUniverInstanceService as _0x5b4a3c,Injector as _0x3a53ed,IConfigService as _0x1fcd08,ICommandService as _0x35b5c9,RxDisposable as _0x35f9fd,UniverInstanceType as _0x499b8f,DisposableCollection as _0x5e2522,CommandType as _0x5612b3,DependentOn as _0x4df1cf,Plugin as _0x5bf096,merge as _0xf2ec51,registerDependencies as _0x549882,mergeOverrideWithDependencies as _0x206824,touchDependencies as _0x1d4462}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1f5bd4,InsertSheetMutation as _0x31cd8a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x397f77,SetScrollOperation as _0x8914e7}from'@univerjs/sheets-ui';import{useDependency as _0x261508,useObservable as _0x59ae5a,IUIPartsService as _0x2e9b6a,BuiltInUIPart as _0x848d96,connectInjector as _0x4671d8}from'@univerjs/ui';import{jsx as _0x117f47,jsxs as _0x495cee,Fragment as _0xa8e072}from'react/jsx-runtime';import{Dropdown as _0x43c7d6,clsx as _0x31597b,Button as _0x1a13f6}from'@univerjs/design';import{forwardRef as _0x43d7ec,useRef as _0x1d4b4e,createElement as _0x3e639a,useState as _0x17fcc6,useEffect as _0x52faa4}from'react';import{CollaborationEvent as _0x5a70bb,parseProtocolChangeset as _0x3ee105}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xc24f1d,Subject as _0xf18be7}from'rxjs';import{takeUntil as _0x4ee282,throttleTime as _0xf6ef8e}from'rxjs/operators';const Oe=_0x829f68(0x1a1),T={};class L extends _0x29cf92{constructor(){var _0x414ed4=_0x829f68;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x414ed4(0x19a),new Set());}[_0x829f68(0x17e)](_0xee29be){var _0x41f66b=_0x829f68;return this[_0x41f66b(0x166)][_0x41f66b(0x1ce)](_0xee29be),_0x44c1a7(()=>this['_sharedOperations'][_0x41f66b(0x171)](_0xee29be));}[_0x829f68(0x1f8)](_0x4f81f1){var _0x240d9e=_0x829f68;return this['_reporters'][_0x240d9e(0x1ce)](_0x4f81f1),_0x44c1a7(()=>this[_0x240d9e(0x19a)][_0x240d9e(0x171)](_0x4f81f1));}['shouldShareOperation'](_0x139b31){var _0x5cd7b8=_0x829f68;return this[_0x5cd7b8(0x166)][_0x5cd7b8(0x1e5)](_0x139b31);}[_0x829f68(0x176)](_0x2a6c8a){var _0x279ce5=_0x829f68;return Array[_0x279ce5(0x1e8)](this[_0x279ce5(0x19a)])[_0x279ce5(0x1c2)](_0x588f33=>_0x588f33(_0x2a6c8a));}}var Ee=Object[_0x829f68(0x1ab)],we=(_0x148b03,_0x408e15,_0x289696,_0x37cd4d)=>{var _0x5dfcab=_0x829f68;for(var _0x446969=_0x37cd4d>0x1?void 0x0:_0x37cd4d?Ee(_0x408e15,_0x289696):_0x408e15,_0x4a4a39=_0x148b03[_0x5dfcab(0x149)]-0x1,_0x5d9b33;_0x4a4a39>=0x0;_0x4a4a39--)(_0x5d9b33=_0x148b03[_0x4a4a39])&&(_0x446969=_0x5d9b33(_0x446969)||_0x446969);return _0x446969;},Ne=(_0x10b0d8,_0x35f7f1)=>(_0x66d43d,_0xf29ca7)=>_0x35f7f1(_0x66d43d,_0xf29ca7,_0x10b0d8);let m=class extends _0x29cf92{constructor(_0x24737e){var _0x257020=_0x829f68;super(),this[_0x257020(0x1a0)]=_0x24737e,this[_0x257020(0x183)]();}[_0x829f68(0x183)](){var _0x2b0afa=_0x829f68;[_0x397f77['id'],_0x8914e7['id'],_0x1f5bd4['id']][_0x2b0afa(0x1e3)](_0x491838=>{var _0x511a82=_0x2b0afa;this['disposeWithMe'](this[_0x511a82(0x1a0)][_0x511a82(0x17e)](_0x491838));});}};function _0x14a1(){var _0x2d4a91=['none','You\x27re\x20following\x20the\x20presenter','stopFollowing','set','_config','createInstance','function','ONLINE','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','_startFollowing','requireSession','UNIVER_UNKNOWN','pipe','You\x27are\x20offline.','toString','965405jbXESi','_beIdle','forEach','subscribe','has','following','disposeWithMe','from','indexOf','url(#$1','status$','UNIVER_LIVE_SHARE_PLUGIN','_handleOperation','tag','getLiveShareCoordinator','data','onStarting','21pUqmNm','entries','symbol','live-share-icon','presenting','colorChannel1','registerInitialStateReporter','extend','_presenter','length','_uiPartsService','NOT_FOLLOWING','LIVESHARE_REQUEST_HOST','use','executeCommand','parse','getConfig','2236320pWKKOy','attrs','Stop\x20following','4RRAkHd','idle','getValue','find','_configService','_handleNewHost','_fetchOperations','concat','end','children','asObservable','_commandService','_injector','offline','OFFLINE','_status','operations','getCurrentTypeOfUnit$','_sharedOperations','univer-w-full\x20univer-mb-3\x20univer-text-sm','getMemberID','1em','registerComponent','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','73312eWkgtB','dispose','override','unsubscribe','UNIVER_SHEET','delete','type','get','setConfig','svg','getInitialStates','_entities','_status$','SAME_OPERATION_SHARE_INTERVAL','button','div','evenodd','_startLiveShareCoordinator','registerSharedOperation','assign','LIVESHARE_OPERATION','mask','string','_init','sessionStatus$','_handleNewChangeSets','IDLE','getTypeOfUnitAdded$','507952hTpvFR','_collabSession','defIds','current','includes','_stopPresenting','apply','hasOwnProperty','220149HAimux','idSuffix','icon','send','343654Kwuqfb','NEW_CHANGESETS','_commandDisposable','_mountLiveShare','next','_handleOnline','_reporters','stringify','_univerInstanceService','HEADER_MENU','init','call','_liveShareService','live-share.config','text','stopPresenting','_collabSessionService','Start','propertyIsEnumerable','getUnitId','You\x27re\x20presenting\x20the\x20document','trim','_unitID','getOwnPropertyDescriptor','690987EfKOvY','currentColor','complete','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','pluginName','OPERATION','params','displayName','0\x200\x2017\x2017','_startPresenting','tryStartPresenting','univer-size-4','className','defs','path','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','LIVESHARE_NEW_HOST','_stopFollowing','prototype','PRESENTING','getOwnPropertySymbols','map','_handleOffline','substring','then','LIVESHARE_TERMINATE','mutations','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','190TNmoBp','xlink:href','dispose$','default','values','add','not-following','defineProperty','FOLLOWING'];_0x14a1=function(){return _0x2d4a91;};return _0x14a1();}m=we([Ne(0x0,_0x4cd37e(L))],m);var c=function(){var _0x159da1=_0x829f68;return c=Object[_0x159da1(0x17f)]||function(_0x1bfd08){var _0x43293b=_0x159da1;for(var _0x4d91a4,_0x38a534=0x1,_0x470dcd=arguments[_0x43293b(0x149)];_0x38a534<_0x470dcd;_0x38a534++){_0x4d91a4=arguments[_0x38a534];for(var _0x6c7c76 in _0x4d91a4)Object[_0x43293b(0x1bf)][_0x43293b(0x18f)][_0x43293b(0x19f)](_0x4d91a4,_0x6c7c76)&&(_0x1bfd08[_0x6c7c76]=_0x4d91a4[_0x6c7c76]);}return _0x1bfd08;},c[_0x159da1(0x18e)](this,arguments);},Ce=function(_0x4c129e,_0x21c7d4){var _0x359ae2=_0x829f68,_0x54aab1={};for(var _0x1dca96 in _0x4c129e)Object[_0x359ae2(0x1bf)][_0x359ae2(0x18f)]['call'](_0x4c129e,_0x1dca96)&&_0x21c7d4[_0x359ae2(0x1e9)](_0x1dca96)<0x0&&(_0x54aab1[_0x1dca96]=_0x4c129e[_0x1dca96]);if(_0x4c129e!=null&&typeof Object[_0x359ae2(0x1c1)]==_0x359ae2(0x1d8)){for(var _0x31377d=0x0,_0x1dca96=Object[_0x359ae2(0x1c1)](_0x4c129e);_0x31377d<_0x1dca96[_0x359ae2(0x149)];_0x31377d++)_0x21c7d4[_0x359ae2(0x1e9)](_0x1dca96[_0x31377d])<0x0&&Object['prototype'][_0x359ae2(0x1a6)][_0x359ae2(0x19f)](_0x4c129e,_0x1dca96[_0x31377d])&&(_0x54aab1[_0x1dca96[_0x31377d]]=_0x4c129e[_0x1dca96[_0x31377d]]);}return _0x54aab1;},W=_0x43d7ec(function(_0xc936be,_0x46c0b2){var _0x5af54b=_0x829f68,_0x5144ae=_0xc936be[_0x5af54b(0x192)],_0x506f44=_0xc936be['id'],_0x294c30=_0xc936be[_0x5af54b(0x1b9)],_0x42732c=_0xc936be[_0x5af54b(0x1f9)],_0x5e5771=Ce(_0xc936be,[_0x5af54b(0x192),'id',_0x5af54b(0x1b9),'extend']),_0xc830d2='univerjs-icon\x20univerjs-icon-'[_0x5af54b(0x15b)](_0x506f44,'\x20')[_0x5af54b(0x15b)](_0x294c30||'')[_0x5af54b(0x1a9)](),_0x3c46f6=_0x1d4b4e('_'['concat'](Le()));return Y(_0x5144ae,''[_0x5af54b(0x15b)](_0x506f44),{'defIds':_0x5144ae[_0x5af54b(0x18a)],'idSuffix':_0x3c46f6['current']},c({'ref':_0x46c0b2,'className':_0xc830d2},_0x5e5771),_0x42732c);});function Y(_0x20da82,_0x4f0961,_0x542844,_0xeba0a2,_0x6e0e2d){var _0x2ead14=_0x829f68;return _0x3e639a(_0x20da82[_0x2ead14(0x1ee)],c(c({'key':_0x4f0961},De(_0x20da82,_0x542844,_0x6e0e2d)),_0xeba0a2),(xe(_0x20da82,_0x542844)[_0x2ead14(0x15d)]||[])[_0x2ead14(0x1c2)](function(_0x36cf38,_0x7cfb4f){var _0x153a18=_0x2ead14;return Y(_0x36cf38,''[_0x153a18(0x15b)](_0x4f0961,'-')[_0x153a18(0x15b)](_0x20da82['tag'],'-')[_0x153a18(0x15b)](_0x7cfb4f),_0x542844,void 0x0,_0x6e0e2d);}));}function De(_0x5133af,_0x385412,_0x2c1a7a){var _0x25767d=_0x829f68,_0x29c29a=c({},_0x5133af['attrs']);_0x2c1a7a!=null&&_0x2c1a7a[_0x25767d(0x1f7)]&&_0x29c29a['fill']==='colorChannel1'&&(_0x29c29a['fill']=_0x2c1a7a[_0x25767d(0x1f7)]),_0x5133af[_0x25767d(0x1ee)]===_0x25767d(0x181)&&_0x29c29a['id']&&(_0x29c29a['id']=_0x29c29a['id']+_0x385412['idSuffix']),Object['entries'](_0x29c29a)[_0x25767d(0x1e3)](function(_0x533573){var _0x19d00f=_0x25767d,_0x3c039b=_0x533573[0x0],_0x521265=_0x533573[0x1];_0x3c039b===_0x19d00f(0x181)&&typeof _0x521265=='string'&&(_0x29c29a[_0x3c039b]=_0x521265['replace'](/url\(#(.*)\)/,_0x19d00f(0x1ea)[_0x19d00f(0x15b)](_0x385412[_0x19d00f(0x191)],')')));});var _0x11d83f=_0x385412[_0x25767d(0x18a)];return!_0x11d83f||_0x11d83f[_0x25767d(0x149)]===0x0||(_0x5133af[_0x25767d(0x1ee)]===_0x25767d(0x14d)&&_0x29c29a['xlink:href']&&(_0x29c29a[_0x25767d(0x1ca)]=_0x29c29a['xlink:href']+_0x385412[_0x25767d(0x191)]),Object[_0x25767d(0x1f3)](_0x29c29a)[_0x25767d(0x1e3)](function(_0x2aac63){var _0x5f5a9c=_0x25767d,_0xb02522=_0x2aac63[0x0],_0x27f45a=_0x2aac63[0x1];typeof _0x27f45a==_0x5f5a9c(0x182)&&(_0x29c29a[_0xb02522]=_0x27f45a['replace'](/url\(#(.*)\)/,_0x5f5a9c(0x1ea)[_0x5f5a9c(0x15b)](_0x385412[_0x5f5a9c(0x191)],')')));})),_0x29c29a;}function xe(_0x1f6e4b,_0x419a71){var _0x1a1472=_0x829f68,_0x280968,_0xc52f59=_0x419a71[_0x1a1472(0x18a)];return!_0xc52f59||_0xc52f59['length']===0x0?_0x1f6e4b:_0x1f6e4b[_0x1a1472(0x1ee)]===_0x1a1472(0x1ba)&&(!((_0x280968=_0x1f6e4b[_0x1a1472(0x15d)])===null||_0x280968===void 0x0)&&_0x280968[_0x1a1472(0x149)])?c(c({},_0x1f6e4b),{'children':_0x1f6e4b[_0x1a1472(0x15d)][_0x1a1472(0x1c2)](function(_0x4b27ec){var _0x3cd776=_0x1a1472;return typeof _0x4b27ec['attrs']['id']==_0x3cd776(0x182)&&_0xc52f59&&_0xc52f59[_0x3cd776(0x18c)](_0x4b27ec[_0x3cd776(0x152)]['id'])?c(c({},_0x4b27ec),{'attrs':c(c({},_0x4b27ec[_0x3cd776(0x152)]),{'id':_0x4b27ec['attrs']['id']+_0x419a71[_0x3cd776(0x191)]})}):_0x4b27ec;})}):_0x1f6e4b;}function Le(){var _0xd4b7e9=_0x829f68;return Math['random']()[_0xd4b7e9(0x1e0)](0x24)[_0xd4b7e9(0x1c4)](0x2,0x8);}W[_0x829f68(0x1b4)]='UniverIcon';var ye={'tag':_0x829f68(0x175),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x829f68(0x1d2),'viewBox':_0x829f68(0x1b5),'width':'1em','height':_0x829f68(0x169)},'children':[{'tag':_0x829f68(0x1bb),'attrs':{'fill':'currentColor','d':_0x829f68(0x16b)}},{'tag':_0x829f68(0x1bb),'attrs':{'fill':_0x829f68(0x1ad),'d':_0x829f68(0x1da),'fillRule':_0x829f68(0x17c),'clipRule':_0x829f68(0x17c)}}]},B=_0x43d7ec(function(_0x4373e4,_0x275311){var _0x20d794=_0x829f68;return _0x3e639a(W,Object[_0x20d794(0x17f)]({},_0x4373e4,{'id':_0x20d794(0x1f5),'ref':_0x275311,'icon':ye}));});B['displayName']='LiveShareIcon';function _0x470a(_0x17b372,_0x4ad476){var _0x14a16f=_0x14a1();return _0x470a=function(_0x470ad8,_0x3e4db8){_0x470ad8=_0x470ad8-0x148;var _0x4be86d=_0x14a16f[_0x470ad8];return _0x4be86d;},_0x470a(_0x17b372,_0x4ad476);}var Re=Object[_0x829f68(0x1ab)],Z=(_0x4fe9ce,_0x1a2629,_0x38afb7,_0x38b233)=>{var _0x58bfba=_0x829f68;for(var _0x274cd5=_0x38b233>0x1?void 0x0:_0x38b233?Re(_0x1a2629,_0x38afb7):_0x1a2629,_0x332cb6=_0x4fe9ce[_0x58bfba(0x149)]-0x1,_0x4383a3;_0x332cb6>=0x0;_0x332cb6--)(_0x4383a3=_0x4fe9ce[_0x332cb6])&&(_0x274cd5=_0x4383a3(_0x274cd5)||_0x274cd5);return _0x274cd5;},f=(_0x36873e,_0x3ac2ce)=>(_0x3228cc,_0x46a6a3)=>_0x3ac2ce(_0x3228cc,_0x46a6a3,_0x36873e);let I=class extends _0x35f9fd{constructor(_0x4f0780,_0x3aa08c,_0x17ae6c){var _0x3558b7=_0x829f68;super(),d(this,_0x3558b7(0x177),new Map()),(this[_0x3558b7(0x19c)]=_0x4f0780,this[_0x3558b7(0x160)]=_0x3aa08c,this['_collabSessionService']=_0x17ae6c,this[_0x3558b7(0x183)]());}async[_0x829f68(0x1ef)](_0x14b7a3){var _0x1c8e8c=_0x829f68;return this[_0x1c8e8c(0x177)][_0x1c8e8c(0x1e5)](_0x14b7a3)||await this[_0x1c8e8c(0x17d)](_0x14b7a3),this[_0x1c8e8c(0x177)][_0x1c8e8c(0x173)](_0x14b7a3);}[_0x829f68(0x183)](){var _0x3f8eee=_0x829f68;this['_univerInstanceService'][_0x3f8eee(0x187)](_0x499b8f[_0x3f8eee(0x170)])['pipe'](_0x4ee282(this[_0x3f8eee(0x1cb)]))[_0x3f8eee(0x1e4)](async _0x453f89=>{var _0x12f138=_0x3f8eee;const _0x705915=_0x453f89[_0x12f138(0x1a7)]();this[_0x12f138(0x177)][_0x12f138(0x1e5)](_0x705915)||this[_0x12f138(0x17d)](_0x705915);}),this[_0x3f8eee(0x19c)]['getTypeOfUnitDisposed$'](_0x499b8f[_0x3f8eee(0x170)])[_0x3f8eee(0x1de)](_0x4ee282(this[_0x3f8eee(0x1cb)]))['subscribe'](_0x2a62c7=>{var _0x1d0a34=_0x3f8eee;const _0x27c986=_0x2a62c7[_0x1d0a34(0x1a7)](),_0x2f16ac=this['_entities']['get'](_0x27c986);_0x2f16ac==null||_0x2f16ac[_0x1d0a34(0x16d)]();});}async[_0x829f68(0x17d)](_0x1dd5e5){var _0x4e1ec2=_0x829f68;const _0x214c92=await this[_0x4e1ec2(0x1a4)][_0x4e1ec2(0x1dc)](_0x1dd5e5),_0x206163=this['_injector'][_0x4e1ec2(0x1d7)](C,_0x1dd5e5,_0x214c92);return _0x206163[_0x4e1ec2(0x19e)](),this[_0x4e1ec2(0x177)][_0x4e1ec2(0x1d5)](_0x1dd5e5,_0x206163),_0x206163;}};I=Z([f(0x0,_0x5b4a3c),f(0x1,_0x4cd37e(_0x3a53ed)),f(0x2,_0x4cd37e(_0x2895bc))],I);var h=(_0x56fb99=>(_0x56fb99[_0x829f68(0x162)]=_0x829f68(0x161),_0x56fb99[_0x829f68(0x186)]=_0x829f68(0x155),_0x56fb99['FOLLOWING']='following',_0x56fb99[_0x829f68(0x14b)]=_0x829f68(0x1cf),_0x56fb99[_0x829f68(0x1c0)]=_0x829f68(0x1f6),_0x56fb99))(h||{});const Pe=_0x829f68(0x179),Ae=0xc8;let C=class extends _0x35f9fd{constructor(_0x4f2c05,_0x3f5a5d,_0x5b85e2,_0x1ff76a,_0x13a6c6){var _0x1c8d85=_0x829f68;super(),d(this,_0x1c8d85(0x178),new _0xc24f1d(_0x1c8d85(0x155))),d(this,_0x1c8d85(0x1eb),this[_0x1c8d85(0x178)][_0x1c8d85(0x15e)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x1c8d85(0x148),null),(this[_0x1c8d85(0x1aa)]=_0x4f2c05,this[_0x1c8d85(0x189)]=_0x3f5a5d,this[_0x1c8d85(0x158)]=_0x5b85e2,this[_0x1c8d85(0x1a0)]=_0x1ff76a,this[_0x1c8d85(0x15f)]=_0x13a6c6);}get[_0x829f68(0x163)](){var _0x2c6b0a=_0x829f68;return this['_status$'][_0x2c6b0a(0x156)]();}[_0x829f68(0x16d)](){var _0x47ae05=_0x829f68,_0x38a285;(_0x38a285=this['_commandDisposable'])==null||_0x38a285[_0x47ae05(0x16d)](),this['_status$']['next'](_0x47ae05(0x155)),this[_0x47ae05(0x178)][_0x47ae05(0x1ae)]();}[_0x829f68(0x19e)](){var _0x2eb9fe=_0x829f68;this[_0x2eb9fe(0x183)]||(this[_0x2eb9fe(0x183)]=!0x0,this[_0x2eb9fe(0x189)][_0x2eb9fe(0x184)][_0x2eb9fe(0x1de)](_0x4ee282(this[_0x2eb9fe(0x1cb)]))[_0x2eb9fe(0x1e4)](_0x395ffb=>{var _0x588ca3=_0x2eb9fe;switch(_0x395ffb){case _0x1b6e8a['OFFLINE']:this['_handleOffline']();break;case _0x1b6e8a[_0x588ca3(0x1d9)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x2eb9fe(0x1de)](_0x4ee282(this[_0x2eb9fe(0x1cb)]))[_0x2eb9fe(0x1e4)](_0x30c1f6=>{var _0x190aca=_0x2eb9fe;const {eventID:_0x68ccaf}=_0x30c1f6;switch(_0x68ccaf){case _0x5a70bb[_0x190aca(0x1bd)]:this[_0x190aca(0x159)](_0x30c1f6);break;case _0x5a70bb[_0x190aca(0x180)]:this[_0x190aca(0x1ed)](_0x30c1f6);break;case _0x5a70bb[_0x190aca(0x1c6)]:this[_0x190aca(0x1b0)]();break;case _0x5a70bb[_0x190aca(0x195)]:this[_0x190aca(0x185)](_0x30c1f6);break;}}));}[_0x829f68(0x1b7)](){var _0x346e8b=_0x829f68;this[_0x346e8b(0x189)][_0x346e8b(0x193)]({'eventID':_0x5a70bb[_0x346e8b(0x14c)],'data':{'unitID':this[_0x346e8b(0x1aa)],'userID':this[_0x346e8b(0x189)][_0x346e8b(0x168)]()}},this[_0x346e8b(0x1aa)]);}['stopPresenting'](){var _0x5f288b=_0x829f68;this[_0x5f288b(0x163)]===_0x5f288b(0x1f6)&&(this['_status$']['next']('idle'),this[_0x5f288b(0x189)][_0x5f288b(0x193)]({'eventID':_0x5a70bb[_0x5f288b(0x1c6)],'data':{'unitID':this[_0x5f288b(0x1aa)]}},this['_unitID']));}['startFollowing'](){var _0x47c86c=_0x829f68;this['_status']==='not-following'&&(this[_0x47c86c(0x178)][_0x47c86c(0x198)]('following'),this[_0x47c86c(0x1db)]());}[_0x829f68(0x1d4)](){var _0xfdf2dd=_0x829f68;this[_0xfdf2dd(0x163)]===_0xfdf2dd(0x1e6)&&this[_0xfdf2dd(0x1be)]();}[_0x829f68(0x159)](_0x3f4ab2){var _0x554e36=_0x829f68;const {presenter:_0x5cf521}=_0x3f4ab2[_0x554e36(0x1f0)],_0x37d4b3=this[_0x554e36(0x189)]['getMemberID']();this[_0x554e36(0x148)]=_0x5cf521,_0x5cf521===_0x37d4b3?(this[_0x554e36(0x1be)](),this['_startPresenting']()):this[_0x554e36(0x163)]!==_0x554e36(0x1cf)&&(this[_0x554e36(0x18d)](),this[_0x554e36(0x1db)]());}['_fetchOperations'](){var _0x1bc1cb=_0x829f68;const _0x39b946={'eventID':_0x5a70bb[_0x1bc1cb(0x1af)]};this[_0x1bc1cb(0x189)][_0x1bc1cb(0x193)](_0x39b946,this[_0x1bc1cb(0x1aa)]);}['_handleTerminate'](){var _0x5eb1c8=_0x829f68;this['_presenter']=null,this[_0x5eb1c8(0x163)]!==_0x5eb1c8(0x1f6)&&this[_0x5eb1c8(0x1e2)]();}[_0x829f68(0x185)](_0x51b267){var _0x22c077=_0x829f68;if(this['_status']===_0x22c077(0x1e6)&&this[_0x22c077(0x148)]===_0x51b267[_0x22c077(0x1f0)]['memberID']){const _0x57f823=_0x3ee105(_0x51b267['data'])[_0x22c077(0x1c7)]['reverse']()[_0x22c077(0x157)](_0x351504=>_0x351504['id']===_0x31cd8a['id']);if(_0x57f823){const _0x10ad1d=_0x57f823[_0x22c077(0x1b3)]['unitId'],_0x18e27f=_0x57f823['params']['sheet']['id'];setTimeout(()=>{var _0x5dbd1d=_0x22c077;this[_0x5dbd1d(0x15f)][_0x5dbd1d(0x14e)](_0x1f5bd4['id'],{'unitId':_0x10ad1d,'subUnitId':_0x18e27f},{'fromCollab':!0x0});});}}}[_0x829f68(0x1b6)](){var _0x1b2edb=_0x829f68;this[_0x1b2edb(0x178)][_0x1b2edb(0x198)](_0x1b2edb(0x1f6));const _0x66c8b6=new Map(),_0x5eb2bd=this[_0x1b2edb(0x196)]=new _0x5e2522();_0x5eb2bd[_0x1b2edb(0x1ce)](_0x44c1a7(()=>{var _0x235aed=_0x1b2edb;_0x66c8b6[_0x235aed(0x1e3)](_0x25292a=>_0x25292a[_0x235aed(0x1ae)]()),_0x66c8b6['clear']();})),_0x5eb2bd[_0x1b2edb(0x1ce)](this['_commandService']['onCommandExecuted'](_0x44130d=>{var _0x3e06e5=_0x1b2edb,_0x4d138d;if(_0x44130d[_0x3e06e5(0x172)]!==_0x5612b3[_0x3e06e5(0x1b2)]||!this[_0x3e06e5(0x1a0)]['shouldShareOperation'](_0x44130d['id']))return;const {id:_0x418294}=_0x44130d;let _0x3bb9c9;_0x66c8b6[_0x3e06e5(0x1e5)](_0x418294)?_0x3bb9c9=_0x66c8b6[_0x3e06e5(0x173)](_0x418294):(_0x3bb9c9=new _0xf18be7(),_0x66c8b6['set'](_0x418294,_0x3bb9c9),_0x3bb9c9[_0x3e06e5(0x1de)](_0xf6ef8e((_0x4d138d=this['_configService'][_0x3e06e5(0x150)](Pe))!=null?_0x4d138d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2cce0e=>{var _0x413e6b=_0x3e06e5;this[_0x413e6b(0x189)][_0x413e6b(0x193)]({'eventID':_0x5a70bb[_0x413e6b(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x2cce0e['id']]:{'id':_0x2cce0e['id'],'params':JSON[_0x413e6b(0x19b)](_0x2cce0e[_0x413e6b(0x1b3)])}}}},this[_0x413e6b(0x1aa)]);})),_0x3bb9c9[_0x3e06e5(0x198)](_0x44130d);})),this['_liveShareService'][_0x1b2edb(0x176)](this[_0x1b2edb(0x1aa)])[_0x1b2edb(0x1e3)](_0x55bba5=>this['_collabSession'][_0x1b2edb(0x193)]({'eventID':_0x5a70bb[_0x1b2edb(0x180)],'data':{'unitID':this[_0x1b2edb(0x1aa)],'operations':{[_0x55bba5['id']]:{'id':_0x55bba5['id'],'params':JSON['stringify'](_0x55bba5[_0x1b2edb(0x1b3)])}}}},this['_unitID']));}[_0x829f68(0x18d)](){var _0x26b6d8=_0x829f68,_0x310d70;this[_0x26b6d8(0x178)][_0x26b6d8(0x198)]('idle'),(_0x310d70=this[_0x26b6d8(0x196)])==null||_0x310d70['dispose'](),this[_0x26b6d8(0x196)]=null;}['_startFollowing'](){var _0x51cfa5=_0x829f68,_0x8f1b87;(_0x8f1b87=this[_0x51cfa5(0x196)])==null||_0x8f1b87[_0x51cfa5(0x16d)](),this['_status$'][_0x51cfa5(0x198)](_0x51cfa5(0x1e6));}[_0x829f68(0x1e2)](){var _0x25a395=_0x829f68,_0x1a6e4b;this[_0x25a395(0x178)][_0x25a395(0x198)](_0x25a395(0x155)),(_0x1a6e4b=this[_0x25a395(0x196)])==null||_0x1a6e4b[_0x25a395(0x16d)](),this['_commandDisposable']=null;}[_0x829f68(0x1be)](){var _0x3871a9=_0x829f68,_0x404a60;this[_0x3871a9(0x178)][_0x3871a9(0x198)](_0x3871a9(0x1cf)),(_0x404a60=this[_0x3871a9(0x196)])==null||_0x404a60['dispose']();}[_0x829f68(0x1ed)](_0x461d7c){var _0xfd2299=_0x829f68;if([_0xfd2299(0x1f6),'not-following',_0xfd2299(0x161)][_0xfd2299(0x18c)](this[_0xfd2299(0x163)])||!_0x461d7c[_0xfd2299(0x1f0)]['presenter']||_0x461d7c[_0xfd2299(0x1f0)]['presenter']===this[_0xfd2299(0x189)][_0xfd2299(0x168)]())return;this[_0xfd2299(0x163)]===_0xfd2299(0x155)&&this[_0xfd2299(0x1db)]();const _0x47a4e1=_0x461d7c['data'][_0xfd2299(0x164)];Object[_0xfd2299(0x1cd)](_0x47a4e1)[_0xfd2299(0x1e3)](_0x2692cb=>{var _0x4c3ece=_0xfd2299;this[_0x4c3ece(0x15f)]['executeCommand'](_0x2692cb['id'],_0x2692cb[_0x4c3ece(0x1b3)]?JSON[_0x4c3ece(0x14f)](_0x2692cb[_0x4c3ece(0x1b3)]):null,{'fromCollab':!0x0});});}[_0x829f68(0x1c3)](){var _0x28a00a=_0x829f68,_0x4a78b8;this[_0x28a00a(0x178)][_0x28a00a(0x198)]('offline'),(_0x4a78b8=this[_0x28a00a(0x196)])==null||_0x4a78b8[_0x28a00a(0x16d)]();}[_0x829f68(0x199)](){var _0x578730=_0x829f68;this[_0x578730(0x178)]['next'](_0x578730(0x155)),this[_0x578730(0x15a)]();}};C=Z([f(0x2,_0x1fcd08),f(0x3,_0x4cd37e(L)),f(0x4,_0x35b5c9)],C);function Te(){var _0x24c831=_0x829f68;const _0x36722f=_0x261508(I),_0x3e756b=_0x261508(_0x5b4a3c),_0x289dc0=_0x59ae5a(()=>_0x3e756b[_0x24c831(0x165)](_0x499b8f[_0x24c831(0x170)]),void 0x0,!0x1,[]),[_0xed57cc,_0x189206]=_0x17fcc6(null),[_0x5a0eb6,_0x503858]=_0x17fcc6(h['IDLE']),_0x5ded0d=_0x1d4b4e(null);return _0x52faa4(()=>(_0x289dc0&&_0x36722f[_0x24c831(0x1ef)](_0x289dc0[_0x24c831(0x1a7)]())[_0x24c831(0x1c5)](_0x2a8d1f=>{_0x189206(_0x2a8d1f),_0x5ded0d['current']=_0x2a8d1f['status$']['subscribe'](_0xc74fd0=>{_0x503858(_0xc74fd0);});}),()=>{var _0x20fcdb=_0x24c831,_0x283c3d;(_0x283c3d=_0x5ded0d[_0x20fcdb(0x18b)])==null||_0x283c3d[_0x20fcdb(0x16f)](),_0x5ded0d['current']=null;}),[_0x289dc0,_0x36722f]),_0xed57cc?_0x117f47(_0x43c7d6,{'align':_0x24c831(0x15c),'disabled':_0x5a0eb6===h[_0x24c831(0x162)],'className':_0x24c831(0x1c8),'overlay':_0x117f47($e,{'status':_0x5a0eb6,'coordinator':_0xed57cc}),'children':_0x117f47(_0x24c831(0x17a),{'className':_0x31597b(_0x24c831(0x1bc),{'univer-cursor-not-allowed':_0x5a0eb6===h[_0x24c831(0x162)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a0eb6!==h[_0x24c831(0x162)]}),'type':_0x24c831(0x17a),'children':_0x117f47(B,{'className':_0x24c831(0x1b8)})})}):null;}function $e(_0x2d6832){var _0x331e46=_0x829f68;const {status:_0x2c7dbf,coordinator:_0x4d16cb}=_0x2d6832;switch(_0x2c7dbf){case h[_0x331e46(0x186)]:return _0x117f47(Fe,{'coordinator':_0x4d16cb});case h[_0x331e46(0x1d1)]:return _0x117f47(He,{'coordinator':_0x4d16cb});case h[_0x331e46(0x14b)]:return _0x117f47(je,{'coordinator':_0x4d16cb});case h[_0x331e46(0x162)]:return _0x117f47(Ve,{});case h[_0x331e46(0x1c0)]:return _0x117f47(Ue,{'coordinator':_0x4d16cb});default:return null;}}function Fe(_0x24dd12){var _0x353010=_0x829f68;const {coordinator:_0x7d2005}=_0x24dd12;return _0x495cee(_0xa8e072,{'children':[_0x117f47(_0x353010(0x17b),{'className':_0x353010(0x167),'children':'Present\x20this\x20document'}),_0x117f47(_0x1a13f6,{'onClick':()=>_0x7d2005[_0x353010(0x1b7)](),'children':_0x353010(0x1a5)})]});}function He(_0x38f43e){var _0x35c2c2=_0x829f68;const {coordinator:_0x1eae77}=_0x38f43e;return _0x495cee(_0xa8e072,{'children':[_0x117f47(_0x35c2c2(0x17b),{'className':_0x35c2c2(0x167),'children':_0x35c2c2(0x1d3)}),_0x117f47(_0x1a13f6,{'onClick':()=>_0x1eae77[_0x35c2c2(0x1d4)](),'children':_0x35c2c2(0x153)})]});}function je(_0x228598){var _0xb2b6e9=_0x829f68;const {coordinator:_0x1bfd74}=_0x228598;return _0x495cee(_0xa8e072,{'children':[_0x117f47('div',{'className':_0xb2b6e9(0x167),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x117f47(_0x1a13f6,{'variant':_0xb2b6e9(0x1a2),'onClick':()=>_0x1bfd74['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x11e824){var _0x4ba611=_0x829f68;const {coordinator:_0x330093}=_0x11e824;return _0x495cee(_0xa8e072,{'children':[_0x117f47('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4ba611(0x1a8)}),_0x117f47(_0x1a13f6,{'variant':_0x4ba611(0x1cc),'onClick':()=>_0x330093[_0x4ba611(0x1a3)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x35c04e=_0x829f68;return _0x117f47(_0xa8e072,{'children':_0x35c04e(0x1df)});}var Me=Object[_0x829f68(0x1ab)],ke=(_0x10eb7c,_0x837bc4,_0x38ab8e,_0x5a54d8)=>{for(var _0x39c743=_0x5a54d8>0x1?void 0x0:_0x5a54d8?Me(_0x837bc4,_0x38ab8e):_0x837bc4,_0x2d12ed=_0x10eb7c['length']-0x1,_0x30971c;_0x2d12ed>=0x0;_0x2d12ed--)(_0x30971c=_0x10eb7c[_0x2d12ed])&&(_0x39c743=_0x30971c(_0x39c743)||_0x39c743);return _0x39c743;},$=(_0x12867b,_0x533108)=>(_0x1732d9,_0x1218a7)=>_0x533108(_0x1732d9,_0x1218a7,_0x12867b);let b=class extends _0x29cf92{constructor(_0x4c0347,_0x2eca19){var _0xbb7821=_0x829f68;super(),this[_0xbb7821(0x160)]=_0x4c0347,this[_0xbb7821(0x14a)]=_0x2eca19,this[_0xbb7821(0x197)]();}[_0x829f68(0x197)](){var _0x5f30a4=_0x829f68;this[_0x5f30a4(0x1e7)](this[_0x5f30a4(0x14a)][_0x5f30a4(0x16a)](_0x848d96[_0x5f30a4(0x19d)],()=>_0x4671d8(Te,this[_0x5f30a4(0x160)])));}};b=ke([$(0x0,_0x4cd37e(_0x3a53ed)),$(0x1,_0x2e9b6a)],b);var Ge=Object[_0x829f68(0x1d0)],We=Object[_0x829f68(0x1ab)],Ye=(_0x46a8b2,_0x6f0c12,_0x1ef918)=>_0x6f0c12 in _0x46a8b2?Ge(_0x46a8b2,_0x6f0c12,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ef918}):_0x46a8b2[_0x6f0c12]=_0x1ef918,Be=(_0x393ad2,_0x3299b9,_0x522954,_0x6b0994)=>{for(var _0x4f222b=_0x6b0994>0x1?void 0x0:_0x6b0994?We(_0x3299b9,_0x522954):_0x3299b9,_0x5c3d91=_0x393ad2['length']-0x1,_0x4bb4b4;_0x5c3d91>=0x0;_0x5c3d91--)(_0x4bb4b4=_0x393ad2[_0x5c3d91])&&(_0x4f222b=_0x4bb4b4(_0x4f222b)||_0x4f222b);return _0x4f222b;},F=(_0x28313f,_0x1d162d)=>(_0x3ab80a,_0x155408)=>_0x1d162d(_0x3ab80a,_0x155408,_0x28313f),J=(_0x192ff4,_0x1911df,_0xf8ee96)=>Ye(_0x192ff4,typeof _0x1911df!=_0x829f68(0x1f4)?_0x1911df+'':_0x1911df,_0xf8ee96);const Ze=_0x829f68(0x1ec);let O=class extends _0x5bf096{constructor(_0x14225c=T,_0x5d5d01,_0x126b30){var _0x80eb3f=_0x829f68;super(),this[_0x80eb3f(0x1d6)]=_0x14225c,this[_0x80eb3f(0x160)]=_0x5d5d01,this[_0x80eb3f(0x158)]=_0x126b30;const {..._0x23e85d}=_0xf2ec51({},T,this[_0x80eb3f(0x1d6)]);this['_configService'][_0x80eb3f(0x174)](Oe,_0x23e85d);}[_0x829f68(0x1f1)](){var _0x4027e1=_0x829f68;_0x549882(this[_0x4027e1(0x160)],_0x206824([[L],[I],[m],[b]],this[_0x4027e1(0x1d6)][_0x4027e1(0x16e)])),_0x1d4462(this[_0x4027e1(0x160)],[[m]]);}['onRendered'](){var _0x386433=_0x829f68;_0x1d4462(this[_0x386433(0x160)],[[b]]);}};J(O,_0x829f68(0x172),_0x499b8f[_0x829f68(0x1dd)]),J(O,_0x829f68(0x1b1),Ze),O=Be([_0x4df1cf(_0x52511b),F(0x1,_0x4cd37e(_0x3a53ed)),F(0x2,_0x1fcd08)],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
- function _0x1285(){var _0x37841a=['You\x27are\x20offline.','_reporters','_handleOffline','complete','1048145JsxOiX','parse','_status$','event$','SAME_OPERATION_SHARE_INTERVAL','override','UniverIcon','registerSharedOperation','idSuffix','_collabSession','214743TWTtfg','status$','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','fill','shouldShareOperation','colorChannel1','You\x27re\x20following\x20the\x20presenter','memberID','unsubscribe','sessionStatus$','entries','map','prototype','24hbycKJ','Present\x20this\x20document','propertyIsEnumerable','UNIVER_UNKNOWN','disposeWithMe','onCommandExecuted','stopFollowing','attrs','evenodd','66sRxHyl','_sharedOperations','tryStartPresenting','getTypeOfUnitDisposed$','params','_handleTerminate','icon','FOLLOWING','4JWVcBN','text','hasOwnProperty','IDLE','subscribe','following','_handleOperation','tag','svg','concat','startFollowing','_startLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','live-share.config','getOwnPropertyDescriptor','type','presenter','send','_commandService','indexOf','_config','getOwnPropertySymbols','pluginName','LiveShareIcon','LIVESHARE_TERMINATE','dispose','presenting','assign','1480730LMhbno','get','extend','1933020ePhuSE','length','_uiPartsService','children','function','OFFLINE','offline','_fetchOperations','clear','_liveShareService','reverse','HEADER_MENU','registerComponent','apply','add','You\x27re\x20not\x20following\x20the\x20presenter','currentColor','_collabSessionService','http://www.w3.org/2000/svg','univer-w-full\x20univer-mb-3\x20univer-text-sm','from','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','1em','_stopFollowing','_mountLiveShare','PRESENTING','_handleNewHost','replace','includes','pipe','toString','requireSession','LIVESHARE_OPERATION','end','NEW_CHANGESETS','Start\x20following','_commandDisposable','xlink:href','executeCommand','NOT_FOLLOWING','random','set','idle','unitId','className','_handleNewChangeSets','onRendered','getLiveShareCoordinator','getUnitId','values','_entities','_handleOnline','_presenter','symbol','getMemberID','asObservable','stopPresenting','1014858JKbuuf','registerInitialStateReporter','current','_unitID','_beIdle','getInitialStates','UNIVER_SHEET','call','stringify','string','_configService','_injector','forEach','_univerInstanceService','Start','defIds','not-following','has','next','univer-size-4','path','You\x27re\x20presenting\x20the\x20document','displayName','data','button','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','defineProperty','dispose$','_status','12728JqwZKa','operations','default','mask','38245zMJRwH','univerjs-icon\x20univerjs-icon-','_stopPresenting','getValue','init','url(#$1','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','OPERATION','div','_startFollowing','_init','Stop\x20following','delete','defs'];_0x1285=function(){return _0x37841a;};return _0x1285();}var _0x124b02=_0x1476;(function(_0x29f048,_0x13881d){var _0x52e8d4=_0x1476,_0x3207a9=_0x29f048();while(!![]){try{var _0x4e5b3e=-parseInt(_0x52e8d4(0x20e))/0x1*(parseInt(_0x52e8d4(0x1d0))/0x2)+parseInt(_0x52e8d4(0x1f0))/0x3+parseInt(_0x52e8d4(0x17a))/0x4+parseInt(_0x52e8d4(0x1d4))/0x5*(parseInt(_0x52e8d4(0x206))/0x6)+-parseInt(_0x52e8d4(0x1e6))/0x7+-parseInt(_0x52e8d4(0x1fd))/0x8*(parseInt(_0x52e8d4(0x1b3))/0x9)+parseInt(_0x52e8d4(0x177))/0xa;if(_0x4e5b3e===_0x13881d)break;else _0x3207a9['push'](_0x3207a9['shift']());}catch(_0x58fe35){_0x3207a9['push'](_0x3207a9['shift']());}}}(_0x1285,0x42ca3));var q=Object[_0x124b02(0x1cd)],z=(_0xbc549,_0x5a5b9a,_0x3e82a5)=>_0x5a5b9a in _0xbc549?q(_0xbc549,_0x5a5b9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e82a5}):_0xbc549[_0x5a5b9a]=_0x3e82a5,d=(_0x5e5e14,_0x36b768,_0x40e453)=>z(_0x5e5e14,typeof _0x36b768!=_0x124b02(0x1af)?_0x36b768+'':_0x36b768,_0x40e453);import{CollaborationSessionService as _0x3123a7,SessionStatus as _0x172486,UniverCollaborationClientPlugin as _0x2fa0bd}from'@univerjs-pro/collaboration-client';import{Disposable as _0x287085,toDisposable as _0x31598b,Inject as _0x4b688f,IUniverInstanceService as _0x20a802,Injector as _0x18f4a8,IConfigService as _0x5b6528,ICommandService as _0x2da53f,RxDisposable as _0x4a594e,UniverInstanceType as _0x5b74f8,DisposableCollection as _0x1694c9,CommandType as _0xa3ee20,DependentOn as _0x3556a5,Plugin as _0x242778,merge as _0x2fd2de,registerDependencies as _0x771dd5,mergeOverrideWithDependencies as _0x21fd4a,touchDependencies as _0x134434}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x56cf44,InsertSheetMutation as _0x1a57af}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4f8a0d,SetScrollOperation as _0x57180d}from'@univerjs/sheets-ui';import{useDependency as _0x3b02a5,useObservable as _0xb6828c,IUIPartsService as _0x3b6be1,BuiltInUIPart as _0x3e890f,connectInjector as _0x4b2b23}from'@univerjs/ui';import{jsx as _0x349fbe,jsxs as _0x1a8fd6,Fragment as _0x552a5f}from'react/jsx-runtime';import{Dropdown as _0x254d1f,clsx as _0x2760c3,Button as _0x445d39}from'@univerjs/design';import{forwardRef as _0x30f0e1,useRef as _0x5f376b,createElement as _0x5c8b39,useState as _0x59606b,useEffect as _0x1ecf7a}from'react';import{CollaborationEvent as _0x4579ed,parseProtocolChangeset as _0x37738a}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1ea0a8,Subject as _0xd6e911}from'rxjs';import{takeUntil as _0x146edb,throttleTime as _0x37c2c2}from'rxjs/operators';const Oe=_0x124b02(0x21b),T={};class L extends _0x287085{constructor(){var _0x55e2a1=_0x124b02;super(...arguments),d(this,_0x55e2a1(0x207),new Set()),d(this,_0x55e2a1(0x1e3),new Set());}[_0x124b02(0x1ed)](_0x599062){var _0xf4fd08=_0x124b02;return this[_0xf4fd08(0x207)][_0xf4fd08(0x188)](_0x599062),_0x31598b(()=>this[_0xf4fd08(0x207)][_0xf4fd08(0x1e0)](_0x599062));}[_0x124b02(0x1b4)](_0x4cc014){var _0x1a89d4=_0x124b02;return this[_0x1a89d4(0x1e3)][_0x1a89d4(0x188)](_0x4cc014),_0x31598b(()=>this['_reporters'][_0x1a89d4(0x1e0)](_0x4cc014));}[_0x124b02(0x1f4)](_0x432115){var _0x114495=_0x124b02;return this[_0x114495(0x207)]['has'](_0x432115);}[_0x124b02(0x1b8)](_0x2e9e25){var _0x255d54=_0x124b02;return Array[_0x255d54(0x18e)](this[_0x255d54(0x1e3)])[_0x255d54(0x1fb)](_0x8987bf=>_0x8987bf(_0x2e9e25));}}var Ee=Object[_0x124b02(0x169)],we=(_0x1f44ea,_0x30b93,_0x5ef472,_0x407a16)=>{var _0x2a81db=_0x124b02;for(var _0x4ddbce=_0x407a16>0x1?void 0x0:_0x407a16?Ee(_0x30b93,_0x5ef472):_0x30b93,_0x213b6d=_0x1f44ea[_0x2a81db(0x17b)]-0x1,_0x358318;_0x213b6d>=0x0;_0x213b6d--)(_0x358318=_0x1f44ea[_0x213b6d])&&(_0x4ddbce=_0x358318(_0x4ddbce)||_0x4ddbce);return _0x4ddbce;},Ne=(_0x52fe62,_0x4f6279)=>(_0x1af1ea,_0x22128c)=>_0x4f6279(_0x1af1ea,_0x22128c,_0x52fe62);let m=class extends _0x287085{constructor(_0x590234){var _0x557dcd=_0x124b02;super(),this[_0x557dcd(0x183)]=_0x590234,this['_init']();}[_0x124b02(0x1de)](){var _0x53551a=_0x124b02;[_0x4f8a0d['id'],_0x57180d['id'],_0x56cf44['id']][_0x53551a(0x1bf)](_0x4d9f4b=>{var _0x3ed4e7=_0x53551a;this[_0x3ed4e7(0x201)](this[_0x3ed4e7(0x183)]['registerSharedOperation'](_0x4d9f4b));});}};m=we([Ne(0x0,_0x4b688f(L))],m);var c=function(){var _0x2f69cb=_0x124b02;return c=Object[_0x2f69cb(0x176)]||function(_0x22ac18){var _0x228faf=_0x2f69cb;for(var _0x26af5a,_0x4eafc5=0x1,_0x1629f9=arguments[_0x228faf(0x17b)];_0x4eafc5<_0x1629f9;_0x4eafc5++){_0x26af5a=arguments[_0x4eafc5];for(var _0x497004 in _0x26af5a)Object['prototype'][_0x228faf(0x210)][_0x228faf(0x1ba)](_0x26af5a,_0x497004)&&(_0x22ac18[_0x497004]=_0x26af5a[_0x497004]);}return _0x22ac18;},c[_0x2f69cb(0x187)](this,arguments);},Ce=function(_0x3a997b,_0x27d841){var _0x51f925=_0x124b02,_0x4c925d={};for(var _0x1d8e9f in _0x3a997b)Object[_0x51f925(0x1fc)]['hasOwnProperty'][_0x51f925(0x1ba)](_0x3a997b,_0x1d8e9f)&&_0x27d841[_0x51f925(0x16e)](_0x1d8e9f)<0x0&&(_0x4c925d[_0x1d8e9f]=_0x3a997b[_0x1d8e9f]);if(_0x3a997b!=null&&typeof Object['getOwnPropertySymbols']==_0x51f925(0x17e)){for(var _0x3494b0=0x0,_0x1d8e9f=Object[_0x51f925(0x170)](_0x3a997b);_0x3494b0<_0x1d8e9f[_0x51f925(0x17b)];_0x3494b0++)_0x27d841['indexOf'](_0x1d8e9f[_0x3494b0])<0x0&&Object[_0x51f925(0x1fc)][_0x51f925(0x1ff)][_0x51f925(0x1ba)](_0x3a997b,_0x1d8e9f[_0x3494b0])&&(_0x4c925d[_0x1d8e9f[_0x3494b0]]=_0x3a997b[_0x1d8e9f[_0x3494b0]]);}return _0x4c925d;},W=_0x30f0e1(function(_0x3f30c8,_0x5cd33d){var _0x5ba3a3=_0x124b02,_0x239f69=_0x3f30c8[_0x5ba3a3(0x20c)],_0xab78be=_0x3f30c8['id'],_0x237406=_0x3f30c8[_0x5ba3a3(0x1a6)],_0x4e4e2d=_0x3f30c8['extend'],_0x4ef403=Ce(_0x3f30c8,[_0x5ba3a3(0x20c),'id',_0x5ba3a3(0x1a6),_0x5ba3a3(0x179)]),_0x510ac1=_0x5ba3a3(0x1d5)[_0x5ba3a3(0x217)](_0xab78be,'\x20')[_0x5ba3a3(0x217)](_0x237406||'')['trim'](),_0x2cc2df=_0x5f376b('_'[_0x5ba3a3(0x217)](Le()));return Y(_0x239f69,''[_0x5ba3a3(0x217)](_0xab78be),{'defIds':_0x239f69['defIds'],'idSuffix':_0x2cc2df[_0x5ba3a3(0x1b5)]},c({'ref':_0x5cd33d,'className':_0x510ac1},_0x4ef403),_0x4e4e2d);});function _0x1476(_0x52a90e,_0x442d59){var _0x128586=_0x1285();return _0x1476=function(_0x147601,_0x43e01f){_0x147601=_0x147601-0x169;var _0x58fff0=_0x128586[_0x147601];return _0x58fff0;},_0x1476(_0x52a90e,_0x442d59);}function Y(_0x2a142d,_0x12e951,_0x1ec467,_0x207365,_0x22419e){var _0x163f9b=_0x124b02;return _0x5c8b39(_0x2a142d[_0x163f9b(0x215)],c(c({'key':_0x12e951},De(_0x2a142d,_0x1ec467,_0x22419e)),_0x207365),(xe(_0x2a142d,_0x1ec467)[_0x163f9b(0x17d)]||[])['map'](function(_0x433763,_0x2479d5){var _0x5ec344=_0x163f9b;return Y(_0x433763,''[_0x5ec344(0x217)](_0x12e951,'-')[_0x5ec344(0x217)](_0x2a142d[_0x5ec344(0x215)],'-')['concat'](_0x2479d5),_0x1ec467,void 0x0,_0x22419e);}));}function De(_0x499ade,_0x46dc55,_0x1845c6){var _0x136962=_0x124b02,_0x23a646=c({},_0x499ade[_0x136962(0x204)]);_0x1845c6!=null&&_0x1845c6[_0x136962(0x1f5)]&&_0x23a646[_0x136962(0x1f3)]===_0x136962(0x1f5)&&(_0x23a646['fill']=_0x1845c6[_0x136962(0x1f5)]),_0x499ade['tag']===_0x136962(0x1d3)&&_0x23a646['id']&&(_0x23a646['id']=_0x23a646['id']+_0x46dc55['idSuffix']),Object[_0x136962(0x1fa)](_0x23a646)['forEach'](function(_0x5e9a94){var _0x1ba539=_0x136962,_0x5243e0=_0x5e9a94[0x0],_0x50a047=_0x5e9a94[0x1];_0x5243e0===_0x1ba539(0x1d3)&&typeof _0x50a047==_0x1ba539(0x1bc)&&(_0x23a646[_0x5243e0]=_0x50a047[_0x1ba539(0x195)](/url\(#(.*)\)/,_0x1ba539(0x1d9)[_0x1ba539(0x217)](_0x46dc55[_0x1ba539(0x1ee)],')')));});var _0x190312=_0x46dc55['defIds'];return!_0x190312||_0x190312[_0x136962(0x17b)]===0x0||(_0x499ade[_0x136962(0x215)]==='use'&&_0x23a646['xlink:href']&&(_0x23a646[_0x136962(0x19f)]=_0x23a646[_0x136962(0x19f)]+_0x46dc55[_0x136962(0x1ee)]),Object['entries'](_0x23a646)[_0x136962(0x1bf)](function(_0x4f91cd){var _0x4601c6=_0x136962,_0x1f86aa=_0x4f91cd[0x0],_0x4fa78f=_0x4f91cd[0x1];typeof _0x4fa78f==_0x4601c6(0x1bc)&&(_0x23a646[_0x1f86aa]=_0x4fa78f['replace'](/url\(#(.*)\)/,_0x4601c6(0x1d9)[_0x4601c6(0x217)](_0x46dc55[_0x4601c6(0x1ee)],')')));})),_0x23a646;}function xe(_0x1ba74a,_0x5b94e4){var _0x23b88c=_0x124b02,_0x4d7a5a,_0x27f7c3=_0x5b94e4[_0x23b88c(0x1c2)];return!_0x27f7c3||_0x27f7c3[_0x23b88c(0x17b)]===0x0?_0x1ba74a:_0x1ba74a[_0x23b88c(0x215)]===_0x23b88c(0x1e1)&&(!((_0x4d7a5a=_0x1ba74a['children'])===null||_0x4d7a5a===void 0x0)&&_0x4d7a5a['length'])?c(c({},_0x1ba74a),{'children':_0x1ba74a[_0x23b88c(0x17d)][_0x23b88c(0x1fb)](function(_0x83f56c){var _0x653279=_0x23b88c;return typeof _0x83f56c[_0x653279(0x204)]['id']==_0x653279(0x1bc)&&_0x27f7c3&&_0x27f7c3[_0x653279(0x196)](_0x83f56c['attrs']['id'])?c(c({},_0x83f56c),{'attrs':c(c({},_0x83f56c['attrs']),{'id':_0x83f56c['attrs']['id']+_0x5b94e4['idSuffix']})}):_0x83f56c;})}):_0x1ba74a;}function Le(){var _0x61766d=_0x124b02;return Math[_0x61766d(0x1a2)]()[_0x61766d(0x198)](0x24)['substring'](0x2,0x8);}W[_0x124b02(0x1c9)]=_0x124b02(0x1ec);var ye={'tag':_0x124b02(0x216),'attrs':{'xmlns':_0x124b02(0x18c),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x124b02(0x190)},'children':[{'tag':_0x124b02(0x1c7),'attrs':{'fill':'currentColor','d':_0x124b02(0x18f)}},{'tag':_0x124b02(0x1c7),'attrs':{'fill':_0x124b02(0x18a),'d':_0x124b02(0x1f2),'fillRule':_0x124b02(0x205),'clipRule':_0x124b02(0x205)}}]},B=_0x30f0e1(function(_0x22f477,_0x319919){var _0x32e4d5=_0x124b02;return _0x5c8b39(W,Object[_0x32e4d5(0x176)]({},_0x22f477,{'id':'live-share-icon','ref':_0x319919,'icon':ye}));});B[_0x124b02(0x1c9)]=_0x124b02(0x172);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x175138,_0x1a0cf5,_0x19375f,_0xcd4479)=>{var _0x3d264b=_0x124b02;for(var _0x2a3c23=_0xcd4479>0x1?void 0x0:_0xcd4479?Re(_0x1a0cf5,_0x19375f):_0x1a0cf5,_0x2fd433=_0x175138[_0x3d264b(0x17b)]-0x1,_0x214683;_0x2fd433>=0x0;_0x2fd433--)(_0x214683=_0x175138[_0x2fd433])&&(_0x2a3c23=_0x214683(_0x2a3c23)||_0x2a3c23);return _0x2a3c23;},f=(_0xc1f6fa,_0x2c9d07)=>(_0x5efaff,_0x4bcda6)=>_0x2c9d07(_0x5efaff,_0x4bcda6,_0xc1f6fa);let I=class extends _0x4a594e{constructor(_0x7b79bd,_0x1e1c92,_0x2eebc6){var _0x583541=_0x124b02;super(),d(this,_0x583541(0x1ac),new Map()),(this['_univerInstanceService']=_0x7b79bd,this['_injector']=_0x1e1c92,this[_0x583541(0x18b)]=_0x2eebc6,this[_0x583541(0x1de)]());}async[_0x124b02(0x1a9)](_0xb022a5){var _0x3eaff6=_0x124b02;return this['_entities'][_0x3eaff6(0x1c4)](_0xb022a5)||await this[_0x3eaff6(0x219)](_0xb022a5),this['_entities'][_0x3eaff6(0x178)](_0xb022a5);}[_0x124b02(0x1de)](){var _0x1af06b=_0x124b02;this[_0x1af06b(0x1c0)]['getTypeOfUnitAdded$'](_0x5b74f8[_0x1af06b(0x1b9)])[_0x1af06b(0x197)](_0x146edb(this[_0x1af06b(0x1ce)]))['subscribe'](async _0x2b8e13=>{var _0x3dc6e0=_0x1af06b;const _0x50642e=_0x2b8e13[_0x3dc6e0(0x1aa)]();this[_0x3dc6e0(0x1ac)][_0x3dc6e0(0x1c4)](_0x50642e)||this['_startLiveShareCoordinator'](_0x50642e);}),this[_0x1af06b(0x1c0)][_0x1af06b(0x209)](_0x5b74f8['UNIVER_SHEET'])['pipe'](_0x146edb(this['dispose$']))[_0x1af06b(0x212)](_0x1ef147=>{var _0x1bd46f=_0x1af06b;const _0x38f2a1=_0x1ef147['getUnitId'](),_0x44b187=this[_0x1bd46f(0x1ac)]['get'](_0x38f2a1);_0x44b187==null||_0x44b187['dispose']();});}async['_startLiveShareCoordinator'](_0x184d6d){var _0x32638e=_0x124b02;const _0x27a09c=await this[_0x32638e(0x18b)][_0x32638e(0x199)](_0x184d6d),_0x42c9a5=this[_0x32638e(0x1be)]['createInstance'](C,_0x184d6d,_0x27a09c);return _0x42c9a5[_0x32638e(0x1d8)](),this['_entities'][_0x32638e(0x1a3)](_0x184d6d,_0x42c9a5),_0x42c9a5;}};I=Z([f(0x0,_0x20a802),f(0x1,_0x4b688f(_0x18f4a8)),f(0x2,_0x4b688f(_0x3123a7))],I);var h=(_0x2d0331=>(_0x2d0331[_0x124b02(0x17f)]='offline',_0x2d0331[_0x124b02(0x211)]=_0x124b02(0x1a4),_0x2d0331[_0x124b02(0x20d)]=_0x124b02(0x213),_0x2d0331[_0x124b02(0x1a1)]='not-following',_0x2d0331[_0x124b02(0x193)]='presenting',_0x2d0331))(h||{});const Pe=_0x124b02(0x1ea),Ae=0xc8;let C=class extends _0x4a594e{constructor(_0x14ef94,_0x2e1ecc,_0x1ae0d9,_0x2ad3c0,_0x3a3f08){var _0x186fbf=_0x124b02;super(),d(this,'_status$',new _0x1ea0a8(_0x186fbf(0x1a4))),d(this,_0x186fbf(0x1f1),this[_0x186fbf(0x1e8)][_0x186fbf(0x1b1)]()),d(this,'_init',!0x1),d(this,_0x186fbf(0x19e),null),d(this,_0x186fbf(0x1ae),null),(this[_0x186fbf(0x1b6)]=_0x14ef94,this[_0x186fbf(0x1ef)]=_0x2e1ecc,this[_0x186fbf(0x1bd)]=_0x1ae0d9,this['_liveShareService']=_0x2ad3c0,this['_commandService']=_0x3a3f08);}get[_0x124b02(0x1cf)](){var _0x276627=_0x124b02;return this[_0x276627(0x1e8)][_0x276627(0x1d7)]();}['dispose'](){var _0x3d9020=_0x124b02,_0x1a458d;(_0x1a458d=this[_0x3d9020(0x19e)])==null||_0x1a458d[_0x3d9020(0x174)](),this[_0x3d9020(0x1e8)]['next'](_0x3d9020(0x1a4)),this['_status$'][_0x3d9020(0x1e5)]();}['init'](){var _0x11b77b=_0x124b02;this[_0x11b77b(0x1de)]||(this['_init']=!0x0,this[_0x11b77b(0x1ef)][_0x11b77b(0x1f9)][_0x11b77b(0x197)](_0x146edb(this[_0x11b77b(0x1ce)]))['subscribe'](_0x16c693=>{var _0x512a32=_0x11b77b;switch(_0x16c693){case _0x172486['OFFLINE']:this[_0x512a32(0x1e4)]();break;case _0x172486['ONLINE']:this['_handleOnline']();break;}}),this[_0x11b77b(0x1ef)][_0x11b77b(0x1e9)][_0x11b77b(0x197)](_0x146edb(this[_0x11b77b(0x1ce)]))['subscribe'](_0x549d08=>{var _0x1783c1=_0x11b77b;const {eventID:_0x41b216}=_0x549d08;switch(_0x41b216){case _0x4579ed['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x549d08);break;case _0x4579ed[_0x1783c1(0x19a)]:this[_0x1783c1(0x214)](_0x549d08);break;case _0x4579ed[_0x1783c1(0x173)]:this[_0x1783c1(0x20b)]();break;case _0x4579ed[_0x1783c1(0x19c)]:this['_handleNewChangeSets'](_0x549d08);break;}}));}[_0x124b02(0x208)](){var _0x35e06e=_0x124b02;this[_0x35e06e(0x1ef)][_0x35e06e(0x16c)]({'eventID':_0x4579ed['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x35e06e(0x1b6)],'userID':this[_0x35e06e(0x1ef)][_0x35e06e(0x1b0)]()}},this[_0x35e06e(0x1b6)]);}[_0x124b02(0x1b2)](){var _0x231a55=_0x124b02;this[_0x231a55(0x1cf)]===_0x231a55(0x175)&&(this['_status$'][_0x231a55(0x1c5)]('idle'),this[_0x231a55(0x1ef)]['send']({'eventID':_0x4579ed[_0x231a55(0x173)],'data':{'unitID':this[_0x231a55(0x1b6)]}},this['_unitID']));}[_0x124b02(0x218)](){var _0x2f538d=_0x124b02;this['_status']===_0x2f538d(0x1c3)&&(this[_0x2f538d(0x1e8)][_0x2f538d(0x1c5)]('following'),this[_0x2f538d(0x1dd)]());}['stopFollowing'](){var _0x3ae779=_0x124b02;this[_0x3ae779(0x1cf)]===_0x3ae779(0x213)&&this[_0x3ae779(0x191)]();}[_0x124b02(0x194)](_0x1faf8a){var _0x5c0720=_0x124b02;const {presenter:_0x4ba513}=_0x1faf8a[_0x5c0720(0x1ca)],_0x5a731c=this[_0x5c0720(0x1ef)][_0x5c0720(0x1b0)]();this['_presenter']=_0x4ba513,_0x4ba513===_0x5a731c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x5c0720(0x1c3)&&(this[_0x5c0720(0x1d6)](),this[_0x5c0720(0x1dd)]());}[_0x124b02(0x181)](){var _0x20619a=_0x124b02;const _0xc78e3c={'eventID':_0x4579ed['LIVESHARE_FETCH_OPERATIONS']};this[_0x20619a(0x1ef)][_0x20619a(0x16c)](_0xc78e3c,this[_0x20619a(0x1b6)]);}['_handleTerminate'](){var _0x3c770a=_0x124b02;this['_presenter']=null,this['_status']!==_0x3c770a(0x175)&&this[_0x3c770a(0x1b7)]();}[_0x124b02(0x1a7)](_0x1d670a){var _0x60456a=_0x124b02;if(this['_status']===_0x60456a(0x213)&&this[_0x60456a(0x1ae)]===_0x1d670a['data'][_0x60456a(0x1f7)]){const _0x359501=_0x37738a(_0x1d670a['data'])['mutations'][_0x60456a(0x184)]()['find'](_0x5c7245=>_0x5c7245['id']===_0x1a57af['id']);if(_0x359501){const _0x41d82a=_0x359501[_0x60456a(0x20a)][_0x60456a(0x1a5)],_0x37ab32=_0x359501[_0x60456a(0x20a)]['sheet']['id'];setTimeout(()=>{var _0x375426=_0x60456a;this['_commandService'][_0x375426(0x1a0)](_0x56cf44['id'],{'unitId':_0x41d82a,'subUnitId':_0x37ab32},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x55317c=_0x124b02;this[_0x55317c(0x1e8)][_0x55317c(0x1c5)](_0x55317c(0x175));const _0x5be961=new Map(),_0xbbdc4e=this[_0x55317c(0x19e)]=new _0x1694c9();_0xbbdc4e[_0x55317c(0x188)](_0x31598b(()=>{var _0x2d3077=_0x55317c;_0x5be961[_0x2d3077(0x1bf)](_0x513593=>_0x513593[_0x2d3077(0x1e5)]()),_0x5be961[_0x2d3077(0x182)]();})),_0xbbdc4e[_0x55317c(0x188)](this['_commandService'][_0x55317c(0x202)](_0xf3522=>{var _0xca47a0=_0x55317c,_0x4c97d9;if(_0xf3522[_0xca47a0(0x16a)]!==_0xa3ee20[_0xca47a0(0x1db)]||!this[_0xca47a0(0x183)]['shouldShareOperation'](_0xf3522['id']))return;const {id:_0x11e0b6}=_0xf3522;let _0x35690a;_0x5be961['has'](_0x11e0b6)?_0x35690a=_0x5be961[_0xca47a0(0x178)](_0x11e0b6):(_0x35690a=new _0xd6e911(),_0x5be961[_0xca47a0(0x1a3)](_0x11e0b6,_0x35690a),_0x35690a['pipe'](_0x37c2c2((_0x4c97d9=this[_0xca47a0(0x1bd)]['getConfig'](Pe))!=null?_0x4c97d9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xe065a8=>{var _0x5d2307=_0xca47a0;this['_collabSession']['send']({'eventID':_0x4579ed[_0x5d2307(0x19a)],'data':{'unitID':this[_0x5d2307(0x1b6)],'operations':{[_0xe065a8['id']]:{'id':_0xe065a8['id'],'params':JSON[_0x5d2307(0x1bb)](_0xe065a8['params'])}}}},this['_unitID']);})),_0x35690a[_0xca47a0(0x1c5)](_0xf3522);})),this[_0x55317c(0x183)][_0x55317c(0x1b8)](this['_unitID'])[_0x55317c(0x1bf)](_0x2a8347=>this[_0x55317c(0x1ef)][_0x55317c(0x16c)]({'eventID':_0x4579ed[_0x55317c(0x19a)],'data':{'unitID':this[_0x55317c(0x1b6)],'operations':{[_0x2a8347['id']]:{'id':_0x2a8347['id'],'params':JSON[_0x55317c(0x1bb)](_0x2a8347[_0x55317c(0x20a)])}}}},this[_0x55317c(0x1b6)]));}['_stopPresenting'](){var _0x2dbd6b=_0x124b02,_0x3fca6d;this[_0x2dbd6b(0x1e8)][_0x2dbd6b(0x1c5)]('idle'),(_0x3fca6d=this[_0x2dbd6b(0x19e)])==null||_0x3fca6d['dispose'](),this[_0x2dbd6b(0x19e)]=null;}[_0x124b02(0x1dd)](){var _0x3c250c=_0x124b02,_0xb5574c;(_0xb5574c=this[_0x3c250c(0x19e)])==null||_0xb5574c[_0x3c250c(0x174)](),this[_0x3c250c(0x1e8)][_0x3c250c(0x1c5)](_0x3c250c(0x213));}[_0x124b02(0x1b7)](){var _0x37d28c=_0x124b02,_0x432446;this[_0x37d28c(0x1e8)][_0x37d28c(0x1c5)](_0x37d28c(0x1a4)),(_0x432446=this[_0x37d28c(0x19e)])==null||_0x432446[_0x37d28c(0x174)](),this['_commandDisposable']=null;}[_0x124b02(0x191)](){var _0x481af1=_0x124b02,_0x307953;this[_0x481af1(0x1e8)]['next'](_0x481af1(0x1c3)),(_0x307953=this[_0x481af1(0x19e)])==null||_0x307953['dispose']();}[_0x124b02(0x214)](_0x27e57f){var _0x4bb23c=_0x124b02;if(['presenting',_0x4bb23c(0x1c3),'offline'][_0x4bb23c(0x196)](this[_0x4bb23c(0x1cf)])||!_0x27e57f[_0x4bb23c(0x1ca)]['presenter']||_0x27e57f[_0x4bb23c(0x1ca)][_0x4bb23c(0x16b)]===this[_0x4bb23c(0x1ef)]['getMemberID']())return;this[_0x4bb23c(0x1cf)]===_0x4bb23c(0x1a4)&&this[_0x4bb23c(0x1dd)]();const _0x1aa103=_0x27e57f[_0x4bb23c(0x1ca)][_0x4bb23c(0x1d1)];Object[_0x4bb23c(0x1ab)](_0x1aa103)[_0x4bb23c(0x1bf)](_0x3e56a4=>{var _0x3002a2=_0x4bb23c;this[_0x3002a2(0x16d)][_0x3002a2(0x1a0)](_0x3e56a4['id'],_0x3e56a4[_0x3002a2(0x20a)]?JSON[_0x3002a2(0x1e7)](_0x3e56a4['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2d251d=_0x124b02,_0x2f253d;this[_0x2d251d(0x1e8)][_0x2d251d(0x1c5)](_0x2d251d(0x180)),(_0x2f253d=this[_0x2d251d(0x19e)])==null||_0x2f253d[_0x2d251d(0x174)]();}[_0x124b02(0x1ad)](){var _0x320f7e=_0x124b02;this[_0x320f7e(0x1e8)][_0x320f7e(0x1c5)](_0x320f7e(0x1a4)),this[_0x320f7e(0x181)]();}};C=Z([f(0x2,_0x5b6528),f(0x3,_0x4b688f(L)),f(0x4,_0x2da53f)],C);function Te(){var _0x3808ac=_0x124b02;const _0x575238=_0x3b02a5(I),_0x29ad2f=_0x3b02a5(_0x20a802),_0x20c29e=_0xb6828c(()=>_0x29ad2f['getCurrentTypeOfUnit$'](_0x5b74f8[_0x3808ac(0x1b9)]),void 0x0,!0x1,[]),[_0xabeed0,_0x105676]=_0x59606b(null),[_0x2a2715,_0x2d8e47]=_0x59606b(h['IDLE']),_0x43341f=_0x5f376b(null);return _0x1ecf7a(()=>(_0x20c29e&&_0x575238[_0x3808ac(0x1a9)](_0x20c29e[_0x3808ac(0x1aa)]())['then'](_0x41a9df=>{var _0x4c1611=_0x3808ac;_0x105676(_0x41a9df),_0x43341f[_0x4c1611(0x1b5)]=_0x41a9df[_0x4c1611(0x1f1)][_0x4c1611(0x212)](_0x241895=>{_0x2d8e47(_0x241895);});}),()=>{var _0x483fd2=_0x3808ac,_0x5e8c13;(_0x5e8c13=_0x43341f[_0x483fd2(0x1b5)])==null||_0x5e8c13[_0x483fd2(0x1f8)](),_0x43341f[_0x483fd2(0x1b5)]=null;}),[_0x20c29e,_0x575238]),_0xabeed0?_0x349fbe(_0x254d1f,{'align':_0x3808ac(0x19b),'disabled':_0x2a2715===h[_0x3808ac(0x17f)],'className':_0x3808ac(0x1da),'overlay':_0x349fbe($e,{'status':_0x2a2715,'coordinator':_0xabeed0}),'children':_0x349fbe(_0x3808ac(0x1cb),{'className':_0x2760c3(_0x3808ac(0x1cc),{'univer-cursor-not-allowed':_0x2a2715===h[_0x3808ac(0x17f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2a2715!==h[_0x3808ac(0x17f)]}),'type':_0x3808ac(0x1cb),'children':_0x349fbe(B,{'className':_0x3808ac(0x1c6)})})}):null;}function $e(_0x5e49bf){var _0x431e3a=_0x124b02;const {status:_0x52e087,coordinator:_0x11275f}=_0x5e49bf;switch(_0x52e087){case h[_0x431e3a(0x211)]:return _0x349fbe(Fe,{'coordinator':_0x11275f});case h['FOLLOWING']:return _0x349fbe(He,{'coordinator':_0x11275f});case h[_0x431e3a(0x1a1)]:return _0x349fbe(je,{'coordinator':_0x11275f});case h['OFFLINE']:return _0x349fbe(Ve,{});case h['PRESENTING']:return _0x349fbe(Ue,{'coordinator':_0x11275f});default:return null;}}function Fe(_0x520d73){var _0x531128=_0x124b02;const {coordinator:_0x9ca625}=_0x520d73;return _0x1a8fd6(_0x552a5f,{'children':[_0x349fbe('div',{'className':_0x531128(0x18d),'children':_0x531128(0x1fe)}),_0x349fbe(_0x445d39,{'onClick':()=>_0x9ca625[_0x531128(0x208)](),'children':_0x531128(0x1c1)})]});}function He(_0x3c5254){var _0x588937=_0x124b02;const {coordinator:_0x2a788b}=_0x3c5254;return _0x1a8fd6(_0x552a5f,{'children':[_0x349fbe(_0x588937(0x1dc),{'className':_0x588937(0x18d),'children':_0x588937(0x1f6)}),_0x349fbe(_0x445d39,{'onClick':()=>_0x2a788b[_0x588937(0x203)](),'children':_0x588937(0x1df)})]});}function je(_0x473f7c){var _0x1eebb9=_0x124b02;const {coordinator:_0x2b24da}=_0x473f7c;return _0x1a8fd6(_0x552a5f,{'children':[_0x349fbe('div',{'className':_0x1eebb9(0x18d),'children':_0x1eebb9(0x189)}),_0x349fbe(_0x445d39,{'variant':_0x1eebb9(0x20f),'onClick':()=>_0x2b24da['startFollowing'](),'children':_0x1eebb9(0x19d)})]});}function Ue(_0xbd04ad){var _0x2f959e=_0x124b02;const {coordinator:_0x2e185b}=_0xbd04ad;return _0x1a8fd6(_0x552a5f,{'children':[_0x349fbe(_0x2f959e(0x1dc),{'className':_0x2f959e(0x18d),'children':_0x2f959e(0x1c8)}),_0x349fbe(_0x445d39,{'variant':_0x2f959e(0x1d2),'onClick':()=>_0x2e185b[_0x2f959e(0x1b2)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x1d9dcb=_0x124b02;return _0x349fbe(_0x552a5f,{'children':_0x1d9dcb(0x1e2)});}var Me=Object[_0x124b02(0x169)],ke=(_0x34862c,_0x30ab71,_0xc756eb,_0x5df6bc)=>{for(var _0x2d4c0d=_0x5df6bc>0x1?void 0x0:_0x5df6bc?Me(_0x30ab71,_0xc756eb):_0x30ab71,_0x596342=_0x34862c['length']-0x1,_0x256016;_0x596342>=0x0;_0x596342--)(_0x256016=_0x34862c[_0x596342])&&(_0x2d4c0d=_0x256016(_0x2d4c0d)||_0x2d4c0d);return _0x2d4c0d;},$=(_0x34c6ed,_0x4fb3e8)=>(_0x543ce3,_0x4e6f93)=>_0x4fb3e8(_0x543ce3,_0x4e6f93,_0x34c6ed);let b=class extends _0x287085{constructor(_0x11931a,_0x8b771f){super(),this['_injector']=_0x11931a,this['_uiPartsService']=_0x8b771f,this['_mountLiveShare']();}[_0x124b02(0x192)](){var _0x27821e=_0x124b02;this[_0x27821e(0x201)](this[_0x27821e(0x17c)][_0x27821e(0x186)](_0x3e890f[_0x27821e(0x185)],()=>_0x4b2b23(Te,this[_0x27821e(0x1be)])));}};b=ke([$(0x0,_0x4b688f(_0x18f4a8)),$(0x1,_0x3b6be1)],b);var Ge=Object[_0x124b02(0x1cd)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1c5be9,_0x2671ca,_0x476be8)=>_0x2671ca in _0x1c5be9?Ge(_0x1c5be9,_0x2671ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x476be8}):_0x1c5be9[_0x2671ca]=_0x476be8,Be=(_0x36457a,_0x3f9b08,_0x109036,_0x592ac9)=>{var _0x220a94=_0x124b02;for(var _0x57599b=_0x592ac9>0x1?void 0x0:_0x592ac9?We(_0x3f9b08,_0x109036):_0x3f9b08,_0x15a6dd=_0x36457a[_0x220a94(0x17b)]-0x1,_0x420d3e;_0x15a6dd>=0x0;_0x15a6dd--)(_0x420d3e=_0x36457a[_0x15a6dd])&&(_0x57599b=_0x420d3e(_0x57599b)||_0x57599b);return _0x57599b;},F=(_0x4cdbef,_0x205835)=>(_0x26d0a3,_0x5f7a0d)=>_0x205835(_0x26d0a3,_0x5f7a0d,_0x4cdbef),J=(_0x5d0569,_0x584a96,_0x9efb9b)=>Ye(_0x5d0569,typeof _0x584a96!=_0x124b02(0x1af)?_0x584a96+'':_0x584a96,_0x9efb9b);const Ze=_0x124b02(0x21a);let O=class extends _0x242778{constructor(_0x36663f=T,_0x4e660e,_0x4288f8){var _0x242393=_0x124b02;super(),this[_0x242393(0x16f)]=_0x36663f,this['_injector']=_0x4e660e,this['_configService']=_0x4288f8;const {..._0x2f58e6}=_0x2fd2de({},T,this[_0x242393(0x16f)]);this[_0x242393(0x1bd)]['setConfig'](Oe,_0x2f58e6);}['onStarting'](){var _0x7d6e99=_0x124b02;_0x771dd5(this[_0x7d6e99(0x1be)],_0x21fd4a([[L],[I],[m],[b]],this[_0x7d6e99(0x16f)][_0x7d6e99(0x1eb)])),_0x134434(this[_0x7d6e99(0x1be)],[[m]]);}[_0x124b02(0x1a8)](){_0x134434(this['_injector'],[[b]]);}};J(O,_0x124b02(0x16a),_0x5b74f8[_0x124b02(0x200)]),J(O,_0x124b02(0x171),Ze),O=Be([_0x3556a5(_0x2fa0bd),F(0x1,_0x4b688f(_0x18f4a8)),F(0x2,_0x5b6528)],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 _0x829f68=_0x470a;(function(_0x1b62b0,_0x133293){var _0x1b643a=_0x470a,_0x2f8c38=_0x1b62b0();while(!![]){try{var _0x59ee28=parseInt(_0x1b643a(0x188))/0x1+-parseInt(_0x1b643a(0x194))/0x2+-parseInt(_0x1b643a(0x1ac))/0x3*(-parseInt(_0x1b643a(0x154))/0x4)+-parseInt(_0x1b643a(0x1e1))/0x5+parseInt(_0x1b643a(0x151))/0x6+-parseInt(_0x1b643a(0x1f2))/0x7*(-parseInt(_0x1b643a(0x16c))/0x8)+-parseInt(_0x1b643a(0x190))/0x9*(parseInt(_0x1b643a(0x1c9))/0xa);if(_0x59ee28===_0x133293)break;else _0x2f8c38['push'](_0x2f8c38['shift']());}catch(_0x195f4d){_0x2f8c38['push'](_0x2f8c38['shift']());}}}(_0x14a1,0x4b65a));var q=Object[_0x829f68(0x1d0)],z=(_0x393d91,_0x1fe6cb,_0x208465)=>_0x1fe6cb in _0x393d91?q(_0x393d91,_0x1fe6cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208465}):_0x393d91[_0x1fe6cb]=_0x208465,d=(_0x4b3774,_0x38f88d,_0x4c39aa)=>z(_0x4b3774,typeof _0x38f88d!=_0x829f68(0x1f4)?_0x38f88d+'':_0x38f88d,_0x4c39aa);import{CollaborationSessionService as _0x2895bc,SessionStatus as _0x1b6e8a,UniverCollaborationClientPlugin as _0x52511b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x29cf92,toDisposable as _0x44c1a7,Inject as _0x4cd37e,IUniverInstanceService as _0x5b4a3c,Injector as _0x3a53ed,IConfigService as _0x1fcd08,ICommandService as _0x35b5c9,RxDisposable as _0x35f9fd,UniverInstanceType as _0x499b8f,DisposableCollection as _0x5e2522,CommandType as _0x5612b3,DependentOn as _0x4df1cf,Plugin as _0x5bf096,merge as _0xf2ec51,registerDependencies as _0x549882,mergeOverrideWithDependencies as _0x206824,touchDependencies as _0x1d4462}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1f5bd4,InsertSheetMutation as _0x31cd8a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x397f77,SetScrollOperation as _0x8914e7}from'@univerjs/sheets-ui';import{useDependency as _0x261508,useObservable as _0x59ae5a,IUIPartsService as _0x2e9b6a,BuiltInUIPart as _0x848d96,connectInjector as _0x4671d8}from'@univerjs/ui';import{jsx as _0x117f47,jsxs as _0x495cee,Fragment as _0xa8e072}from'react/jsx-runtime';import{Dropdown as _0x43c7d6,clsx as _0x31597b,Button as _0x1a13f6}from'@univerjs/design';import{forwardRef as _0x43d7ec,useRef as _0x1d4b4e,createElement as _0x3e639a,useState as _0x17fcc6,useEffect as _0x52faa4}from'react';import{CollaborationEvent as _0x5a70bb,parseProtocolChangeset as _0x3ee105}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xc24f1d,Subject as _0xf18be7}from'rxjs';import{takeUntil as _0x4ee282,throttleTime as _0xf6ef8e}from'rxjs/operators';const Oe=_0x829f68(0x1a1),T={};class L extends _0x29cf92{constructor(){var _0x414ed4=_0x829f68;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x414ed4(0x19a),new Set());}[_0x829f68(0x17e)](_0xee29be){var _0x41f66b=_0x829f68;return this[_0x41f66b(0x166)][_0x41f66b(0x1ce)](_0xee29be),_0x44c1a7(()=>this['_sharedOperations'][_0x41f66b(0x171)](_0xee29be));}[_0x829f68(0x1f8)](_0x4f81f1){var _0x240d9e=_0x829f68;return this['_reporters'][_0x240d9e(0x1ce)](_0x4f81f1),_0x44c1a7(()=>this[_0x240d9e(0x19a)][_0x240d9e(0x171)](_0x4f81f1));}['shouldShareOperation'](_0x139b31){var _0x5cd7b8=_0x829f68;return this[_0x5cd7b8(0x166)][_0x5cd7b8(0x1e5)](_0x139b31);}[_0x829f68(0x176)](_0x2a6c8a){var _0x279ce5=_0x829f68;return Array[_0x279ce5(0x1e8)](this[_0x279ce5(0x19a)])[_0x279ce5(0x1c2)](_0x588f33=>_0x588f33(_0x2a6c8a));}}var Ee=Object[_0x829f68(0x1ab)],we=(_0x148b03,_0x408e15,_0x289696,_0x37cd4d)=>{var _0x5dfcab=_0x829f68;for(var _0x446969=_0x37cd4d>0x1?void 0x0:_0x37cd4d?Ee(_0x408e15,_0x289696):_0x408e15,_0x4a4a39=_0x148b03[_0x5dfcab(0x149)]-0x1,_0x5d9b33;_0x4a4a39>=0x0;_0x4a4a39--)(_0x5d9b33=_0x148b03[_0x4a4a39])&&(_0x446969=_0x5d9b33(_0x446969)||_0x446969);return _0x446969;},Ne=(_0x10b0d8,_0x35f7f1)=>(_0x66d43d,_0xf29ca7)=>_0x35f7f1(_0x66d43d,_0xf29ca7,_0x10b0d8);let m=class extends _0x29cf92{constructor(_0x24737e){var _0x257020=_0x829f68;super(),this[_0x257020(0x1a0)]=_0x24737e,this[_0x257020(0x183)]();}[_0x829f68(0x183)](){var _0x2b0afa=_0x829f68;[_0x397f77['id'],_0x8914e7['id'],_0x1f5bd4['id']][_0x2b0afa(0x1e3)](_0x491838=>{var _0x511a82=_0x2b0afa;this['disposeWithMe'](this[_0x511a82(0x1a0)][_0x511a82(0x17e)](_0x491838));});}};function _0x14a1(){var _0x2d4a91=['none','You\x27re\x20following\x20the\x20presenter','stopFollowing','set','_config','createInstance','function','ONLINE','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','_startFollowing','requireSession','UNIVER_UNKNOWN','pipe','You\x27are\x20offline.','toString','965405jbXESi','_beIdle','forEach','subscribe','has','following','disposeWithMe','from','indexOf','url(#$1','status$','UNIVER_LIVE_SHARE_PLUGIN','_handleOperation','tag','getLiveShareCoordinator','data','onStarting','21pUqmNm','entries','symbol','live-share-icon','presenting','colorChannel1','registerInitialStateReporter','extend','_presenter','length','_uiPartsService','NOT_FOLLOWING','LIVESHARE_REQUEST_HOST','use','executeCommand','parse','getConfig','2236320pWKKOy','attrs','Stop\x20following','4RRAkHd','idle','getValue','find','_configService','_handleNewHost','_fetchOperations','concat','end','children','asObservable','_commandService','_injector','offline','OFFLINE','_status','operations','getCurrentTypeOfUnit$','_sharedOperations','univer-w-full\x20univer-mb-3\x20univer-text-sm','getMemberID','1em','registerComponent','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','73312eWkgtB','dispose','override','unsubscribe','UNIVER_SHEET','delete','type','get','setConfig','svg','getInitialStates','_entities','_status$','SAME_OPERATION_SHARE_INTERVAL','button','div','evenodd','_startLiveShareCoordinator','registerSharedOperation','assign','LIVESHARE_OPERATION','mask','string','_init','sessionStatus$','_handleNewChangeSets','IDLE','getTypeOfUnitAdded$','507952hTpvFR','_collabSession','defIds','current','includes','_stopPresenting','apply','hasOwnProperty','220149HAimux','idSuffix','icon','send','343654Kwuqfb','NEW_CHANGESETS','_commandDisposable','_mountLiveShare','next','_handleOnline','_reporters','stringify','_univerInstanceService','HEADER_MENU','init','call','_liveShareService','live-share.config','text','stopPresenting','_collabSessionService','Start','propertyIsEnumerable','getUnitId','You\x27re\x20presenting\x20the\x20document','trim','_unitID','getOwnPropertyDescriptor','690987EfKOvY','currentColor','complete','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','pluginName','OPERATION','params','displayName','0\x200\x2017\x2017','_startPresenting','tryStartPresenting','univer-size-4','className','defs','path','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','LIVESHARE_NEW_HOST','_stopFollowing','prototype','PRESENTING','getOwnPropertySymbols','map','_handleOffline','substring','then','LIVESHARE_TERMINATE','mutations','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','190TNmoBp','xlink:href','dispose$','default','values','add','not-following','defineProperty','FOLLOWING'];_0x14a1=function(){return _0x2d4a91;};return _0x14a1();}m=we([Ne(0x0,_0x4cd37e(L))],m);var c=function(){var _0x159da1=_0x829f68;return c=Object[_0x159da1(0x17f)]||function(_0x1bfd08){var _0x43293b=_0x159da1;for(var _0x4d91a4,_0x38a534=0x1,_0x470dcd=arguments[_0x43293b(0x149)];_0x38a534<_0x470dcd;_0x38a534++){_0x4d91a4=arguments[_0x38a534];for(var _0x6c7c76 in _0x4d91a4)Object[_0x43293b(0x1bf)][_0x43293b(0x18f)][_0x43293b(0x19f)](_0x4d91a4,_0x6c7c76)&&(_0x1bfd08[_0x6c7c76]=_0x4d91a4[_0x6c7c76]);}return _0x1bfd08;},c[_0x159da1(0x18e)](this,arguments);},Ce=function(_0x4c129e,_0x21c7d4){var _0x359ae2=_0x829f68,_0x54aab1={};for(var _0x1dca96 in _0x4c129e)Object[_0x359ae2(0x1bf)][_0x359ae2(0x18f)]['call'](_0x4c129e,_0x1dca96)&&_0x21c7d4[_0x359ae2(0x1e9)](_0x1dca96)<0x0&&(_0x54aab1[_0x1dca96]=_0x4c129e[_0x1dca96]);if(_0x4c129e!=null&&typeof Object[_0x359ae2(0x1c1)]==_0x359ae2(0x1d8)){for(var _0x31377d=0x0,_0x1dca96=Object[_0x359ae2(0x1c1)](_0x4c129e);_0x31377d<_0x1dca96[_0x359ae2(0x149)];_0x31377d++)_0x21c7d4[_0x359ae2(0x1e9)](_0x1dca96[_0x31377d])<0x0&&Object['prototype'][_0x359ae2(0x1a6)][_0x359ae2(0x19f)](_0x4c129e,_0x1dca96[_0x31377d])&&(_0x54aab1[_0x1dca96[_0x31377d]]=_0x4c129e[_0x1dca96[_0x31377d]]);}return _0x54aab1;},W=_0x43d7ec(function(_0xc936be,_0x46c0b2){var _0x5af54b=_0x829f68,_0x5144ae=_0xc936be[_0x5af54b(0x192)],_0x506f44=_0xc936be['id'],_0x294c30=_0xc936be[_0x5af54b(0x1b9)],_0x42732c=_0xc936be[_0x5af54b(0x1f9)],_0x5e5771=Ce(_0xc936be,[_0x5af54b(0x192),'id',_0x5af54b(0x1b9),'extend']),_0xc830d2='univerjs-icon\x20univerjs-icon-'[_0x5af54b(0x15b)](_0x506f44,'\x20')[_0x5af54b(0x15b)](_0x294c30||'')[_0x5af54b(0x1a9)](),_0x3c46f6=_0x1d4b4e('_'['concat'](Le()));return Y(_0x5144ae,''[_0x5af54b(0x15b)](_0x506f44),{'defIds':_0x5144ae[_0x5af54b(0x18a)],'idSuffix':_0x3c46f6['current']},c({'ref':_0x46c0b2,'className':_0xc830d2},_0x5e5771),_0x42732c);});function Y(_0x20da82,_0x4f0961,_0x542844,_0xeba0a2,_0x6e0e2d){var _0x2ead14=_0x829f68;return _0x3e639a(_0x20da82[_0x2ead14(0x1ee)],c(c({'key':_0x4f0961},De(_0x20da82,_0x542844,_0x6e0e2d)),_0xeba0a2),(xe(_0x20da82,_0x542844)[_0x2ead14(0x15d)]||[])[_0x2ead14(0x1c2)](function(_0x36cf38,_0x7cfb4f){var _0x153a18=_0x2ead14;return Y(_0x36cf38,''[_0x153a18(0x15b)](_0x4f0961,'-')[_0x153a18(0x15b)](_0x20da82['tag'],'-')[_0x153a18(0x15b)](_0x7cfb4f),_0x542844,void 0x0,_0x6e0e2d);}));}function De(_0x5133af,_0x385412,_0x2c1a7a){var _0x25767d=_0x829f68,_0x29c29a=c({},_0x5133af['attrs']);_0x2c1a7a!=null&&_0x2c1a7a[_0x25767d(0x1f7)]&&_0x29c29a['fill']==='colorChannel1'&&(_0x29c29a['fill']=_0x2c1a7a[_0x25767d(0x1f7)]),_0x5133af[_0x25767d(0x1ee)]===_0x25767d(0x181)&&_0x29c29a['id']&&(_0x29c29a['id']=_0x29c29a['id']+_0x385412['idSuffix']),Object['entries'](_0x29c29a)[_0x25767d(0x1e3)](function(_0x533573){var _0x19d00f=_0x25767d,_0x3c039b=_0x533573[0x0],_0x521265=_0x533573[0x1];_0x3c039b===_0x19d00f(0x181)&&typeof _0x521265=='string'&&(_0x29c29a[_0x3c039b]=_0x521265['replace'](/url\(#(.*)\)/,_0x19d00f(0x1ea)[_0x19d00f(0x15b)](_0x385412[_0x19d00f(0x191)],')')));});var _0x11d83f=_0x385412[_0x25767d(0x18a)];return!_0x11d83f||_0x11d83f[_0x25767d(0x149)]===0x0||(_0x5133af[_0x25767d(0x1ee)]===_0x25767d(0x14d)&&_0x29c29a['xlink:href']&&(_0x29c29a[_0x25767d(0x1ca)]=_0x29c29a['xlink:href']+_0x385412[_0x25767d(0x191)]),Object[_0x25767d(0x1f3)](_0x29c29a)[_0x25767d(0x1e3)](function(_0x2aac63){var _0x5f5a9c=_0x25767d,_0xb02522=_0x2aac63[0x0],_0x27f45a=_0x2aac63[0x1];typeof _0x27f45a==_0x5f5a9c(0x182)&&(_0x29c29a[_0xb02522]=_0x27f45a['replace'](/url\(#(.*)\)/,_0x5f5a9c(0x1ea)[_0x5f5a9c(0x15b)](_0x385412[_0x5f5a9c(0x191)],')')));})),_0x29c29a;}function xe(_0x1f6e4b,_0x419a71){var _0x1a1472=_0x829f68,_0x280968,_0xc52f59=_0x419a71[_0x1a1472(0x18a)];return!_0xc52f59||_0xc52f59['length']===0x0?_0x1f6e4b:_0x1f6e4b[_0x1a1472(0x1ee)]===_0x1a1472(0x1ba)&&(!((_0x280968=_0x1f6e4b[_0x1a1472(0x15d)])===null||_0x280968===void 0x0)&&_0x280968[_0x1a1472(0x149)])?c(c({},_0x1f6e4b),{'children':_0x1f6e4b[_0x1a1472(0x15d)][_0x1a1472(0x1c2)](function(_0x4b27ec){var _0x3cd776=_0x1a1472;return typeof _0x4b27ec['attrs']['id']==_0x3cd776(0x182)&&_0xc52f59&&_0xc52f59[_0x3cd776(0x18c)](_0x4b27ec[_0x3cd776(0x152)]['id'])?c(c({},_0x4b27ec),{'attrs':c(c({},_0x4b27ec[_0x3cd776(0x152)]),{'id':_0x4b27ec['attrs']['id']+_0x419a71[_0x3cd776(0x191)]})}):_0x4b27ec;})}):_0x1f6e4b;}function Le(){var _0xd4b7e9=_0x829f68;return Math['random']()[_0xd4b7e9(0x1e0)](0x24)[_0xd4b7e9(0x1c4)](0x2,0x8);}W[_0x829f68(0x1b4)]='UniverIcon';var ye={'tag':_0x829f68(0x175),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x829f68(0x1d2),'viewBox':_0x829f68(0x1b5),'width':'1em','height':_0x829f68(0x169)},'children':[{'tag':_0x829f68(0x1bb),'attrs':{'fill':'currentColor','d':_0x829f68(0x16b)}},{'tag':_0x829f68(0x1bb),'attrs':{'fill':_0x829f68(0x1ad),'d':_0x829f68(0x1da),'fillRule':_0x829f68(0x17c),'clipRule':_0x829f68(0x17c)}}]},B=_0x43d7ec(function(_0x4373e4,_0x275311){var _0x20d794=_0x829f68;return _0x3e639a(W,Object[_0x20d794(0x17f)]({},_0x4373e4,{'id':_0x20d794(0x1f5),'ref':_0x275311,'icon':ye}));});B['displayName']='LiveShareIcon';function _0x470a(_0x17b372,_0x4ad476){var _0x14a16f=_0x14a1();return _0x470a=function(_0x470ad8,_0x3e4db8){_0x470ad8=_0x470ad8-0x148;var _0x4be86d=_0x14a16f[_0x470ad8];return _0x4be86d;},_0x470a(_0x17b372,_0x4ad476);}var Re=Object[_0x829f68(0x1ab)],Z=(_0x4fe9ce,_0x1a2629,_0x38afb7,_0x38b233)=>{var _0x58bfba=_0x829f68;for(var _0x274cd5=_0x38b233>0x1?void 0x0:_0x38b233?Re(_0x1a2629,_0x38afb7):_0x1a2629,_0x332cb6=_0x4fe9ce[_0x58bfba(0x149)]-0x1,_0x4383a3;_0x332cb6>=0x0;_0x332cb6--)(_0x4383a3=_0x4fe9ce[_0x332cb6])&&(_0x274cd5=_0x4383a3(_0x274cd5)||_0x274cd5);return _0x274cd5;},f=(_0x36873e,_0x3ac2ce)=>(_0x3228cc,_0x46a6a3)=>_0x3ac2ce(_0x3228cc,_0x46a6a3,_0x36873e);let I=class extends _0x35f9fd{constructor(_0x4f0780,_0x3aa08c,_0x17ae6c){var _0x3558b7=_0x829f68;super(),d(this,_0x3558b7(0x177),new Map()),(this[_0x3558b7(0x19c)]=_0x4f0780,this[_0x3558b7(0x160)]=_0x3aa08c,this['_collabSessionService']=_0x17ae6c,this[_0x3558b7(0x183)]());}async[_0x829f68(0x1ef)](_0x14b7a3){var _0x1c8e8c=_0x829f68;return this[_0x1c8e8c(0x177)][_0x1c8e8c(0x1e5)](_0x14b7a3)||await this[_0x1c8e8c(0x17d)](_0x14b7a3),this[_0x1c8e8c(0x177)][_0x1c8e8c(0x173)](_0x14b7a3);}[_0x829f68(0x183)](){var _0x3f8eee=_0x829f68;this['_univerInstanceService'][_0x3f8eee(0x187)](_0x499b8f[_0x3f8eee(0x170)])['pipe'](_0x4ee282(this[_0x3f8eee(0x1cb)]))[_0x3f8eee(0x1e4)](async _0x453f89=>{var _0x12f138=_0x3f8eee;const _0x705915=_0x453f89[_0x12f138(0x1a7)]();this[_0x12f138(0x177)][_0x12f138(0x1e5)](_0x705915)||this[_0x12f138(0x17d)](_0x705915);}),this[_0x3f8eee(0x19c)]['getTypeOfUnitDisposed$'](_0x499b8f[_0x3f8eee(0x170)])[_0x3f8eee(0x1de)](_0x4ee282(this[_0x3f8eee(0x1cb)]))['subscribe'](_0x2a62c7=>{var _0x1d0a34=_0x3f8eee;const _0x27c986=_0x2a62c7[_0x1d0a34(0x1a7)](),_0x2f16ac=this['_entities']['get'](_0x27c986);_0x2f16ac==null||_0x2f16ac[_0x1d0a34(0x16d)]();});}async[_0x829f68(0x17d)](_0x1dd5e5){var _0x4e1ec2=_0x829f68;const _0x214c92=await this[_0x4e1ec2(0x1a4)][_0x4e1ec2(0x1dc)](_0x1dd5e5),_0x206163=this['_injector'][_0x4e1ec2(0x1d7)](C,_0x1dd5e5,_0x214c92);return _0x206163[_0x4e1ec2(0x19e)](),this[_0x4e1ec2(0x177)][_0x4e1ec2(0x1d5)](_0x1dd5e5,_0x206163),_0x206163;}};I=Z([f(0x0,_0x5b4a3c),f(0x1,_0x4cd37e(_0x3a53ed)),f(0x2,_0x4cd37e(_0x2895bc))],I);var h=(_0x56fb99=>(_0x56fb99[_0x829f68(0x162)]=_0x829f68(0x161),_0x56fb99[_0x829f68(0x186)]=_0x829f68(0x155),_0x56fb99['FOLLOWING']='following',_0x56fb99[_0x829f68(0x14b)]=_0x829f68(0x1cf),_0x56fb99[_0x829f68(0x1c0)]=_0x829f68(0x1f6),_0x56fb99))(h||{});const Pe=_0x829f68(0x179),Ae=0xc8;let C=class extends _0x35f9fd{constructor(_0x4f2c05,_0x3f5a5d,_0x5b85e2,_0x1ff76a,_0x13a6c6){var _0x1c8d85=_0x829f68;super(),d(this,_0x1c8d85(0x178),new _0xc24f1d(_0x1c8d85(0x155))),d(this,_0x1c8d85(0x1eb),this[_0x1c8d85(0x178)][_0x1c8d85(0x15e)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x1c8d85(0x148),null),(this[_0x1c8d85(0x1aa)]=_0x4f2c05,this[_0x1c8d85(0x189)]=_0x3f5a5d,this[_0x1c8d85(0x158)]=_0x5b85e2,this[_0x1c8d85(0x1a0)]=_0x1ff76a,this[_0x1c8d85(0x15f)]=_0x13a6c6);}get[_0x829f68(0x163)](){var _0x2c6b0a=_0x829f68;return this['_status$'][_0x2c6b0a(0x156)]();}[_0x829f68(0x16d)](){var _0x47ae05=_0x829f68,_0x38a285;(_0x38a285=this['_commandDisposable'])==null||_0x38a285[_0x47ae05(0x16d)](),this['_status$']['next'](_0x47ae05(0x155)),this[_0x47ae05(0x178)][_0x47ae05(0x1ae)]();}[_0x829f68(0x19e)](){var _0x2eb9fe=_0x829f68;this[_0x2eb9fe(0x183)]||(this[_0x2eb9fe(0x183)]=!0x0,this[_0x2eb9fe(0x189)][_0x2eb9fe(0x184)][_0x2eb9fe(0x1de)](_0x4ee282(this[_0x2eb9fe(0x1cb)]))[_0x2eb9fe(0x1e4)](_0x395ffb=>{var _0x588ca3=_0x2eb9fe;switch(_0x395ffb){case _0x1b6e8a['OFFLINE']:this['_handleOffline']();break;case _0x1b6e8a[_0x588ca3(0x1d9)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x2eb9fe(0x1de)](_0x4ee282(this[_0x2eb9fe(0x1cb)]))[_0x2eb9fe(0x1e4)](_0x30c1f6=>{var _0x190aca=_0x2eb9fe;const {eventID:_0x68ccaf}=_0x30c1f6;switch(_0x68ccaf){case _0x5a70bb[_0x190aca(0x1bd)]:this[_0x190aca(0x159)](_0x30c1f6);break;case _0x5a70bb[_0x190aca(0x180)]:this[_0x190aca(0x1ed)](_0x30c1f6);break;case _0x5a70bb[_0x190aca(0x1c6)]:this[_0x190aca(0x1b0)]();break;case _0x5a70bb[_0x190aca(0x195)]:this[_0x190aca(0x185)](_0x30c1f6);break;}}));}[_0x829f68(0x1b7)](){var _0x346e8b=_0x829f68;this[_0x346e8b(0x189)][_0x346e8b(0x193)]({'eventID':_0x5a70bb[_0x346e8b(0x14c)],'data':{'unitID':this[_0x346e8b(0x1aa)],'userID':this[_0x346e8b(0x189)][_0x346e8b(0x168)]()}},this[_0x346e8b(0x1aa)]);}['stopPresenting'](){var _0x5f288b=_0x829f68;this[_0x5f288b(0x163)]===_0x5f288b(0x1f6)&&(this['_status$']['next']('idle'),this[_0x5f288b(0x189)][_0x5f288b(0x193)]({'eventID':_0x5a70bb[_0x5f288b(0x1c6)],'data':{'unitID':this[_0x5f288b(0x1aa)]}},this['_unitID']));}['startFollowing'](){var _0x47c86c=_0x829f68;this['_status']==='not-following'&&(this[_0x47c86c(0x178)][_0x47c86c(0x198)]('following'),this[_0x47c86c(0x1db)]());}[_0x829f68(0x1d4)](){var _0xfdf2dd=_0x829f68;this[_0xfdf2dd(0x163)]===_0xfdf2dd(0x1e6)&&this[_0xfdf2dd(0x1be)]();}[_0x829f68(0x159)](_0x3f4ab2){var _0x554e36=_0x829f68;const {presenter:_0x5cf521}=_0x3f4ab2[_0x554e36(0x1f0)],_0x37d4b3=this[_0x554e36(0x189)]['getMemberID']();this[_0x554e36(0x148)]=_0x5cf521,_0x5cf521===_0x37d4b3?(this[_0x554e36(0x1be)](),this['_startPresenting']()):this[_0x554e36(0x163)]!==_0x554e36(0x1cf)&&(this[_0x554e36(0x18d)](),this[_0x554e36(0x1db)]());}['_fetchOperations'](){var _0x1bc1cb=_0x829f68;const _0x39b946={'eventID':_0x5a70bb[_0x1bc1cb(0x1af)]};this[_0x1bc1cb(0x189)][_0x1bc1cb(0x193)](_0x39b946,this[_0x1bc1cb(0x1aa)]);}['_handleTerminate'](){var _0x5eb1c8=_0x829f68;this['_presenter']=null,this[_0x5eb1c8(0x163)]!==_0x5eb1c8(0x1f6)&&this[_0x5eb1c8(0x1e2)]();}[_0x829f68(0x185)](_0x51b267){var _0x22c077=_0x829f68;if(this['_status']===_0x22c077(0x1e6)&&this[_0x22c077(0x148)]===_0x51b267[_0x22c077(0x1f0)]['memberID']){const _0x57f823=_0x3ee105(_0x51b267['data'])[_0x22c077(0x1c7)]['reverse']()[_0x22c077(0x157)](_0x351504=>_0x351504['id']===_0x31cd8a['id']);if(_0x57f823){const _0x10ad1d=_0x57f823[_0x22c077(0x1b3)]['unitId'],_0x18e27f=_0x57f823['params']['sheet']['id'];setTimeout(()=>{var _0x5dbd1d=_0x22c077;this[_0x5dbd1d(0x15f)][_0x5dbd1d(0x14e)](_0x1f5bd4['id'],{'unitId':_0x10ad1d,'subUnitId':_0x18e27f},{'fromCollab':!0x0});});}}}[_0x829f68(0x1b6)](){var _0x1b2edb=_0x829f68;this[_0x1b2edb(0x178)][_0x1b2edb(0x198)](_0x1b2edb(0x1f6));const _0x66c8b6=new Map(),_0x5eb2bd=this[_0x1b2edb(0x196)]=new _0x5e2522();_0x5eb2bd[_0x1b2edb(0x1ce)](_0x44c1a7(()=>{var _0x235aed=_0x1b2edb;_0x66c8b6[_0x235aed(0x1e3)](_0x25292a=>_0x25292a[_0x235aed(0x1ae)]()),_0x66c8b6['clear']();})),_0x5eb2bd[_0x1b2edb(0x1ce)](this['_commandService']['onCommandExecuted'](_0x44130d=>{var _0x3e06e5=_0x1b2edb,_0x4d138d;if(_0x44130d[_0x3e06e5(0x172)]!==_0x5612b3[_0x3e06e5(0x1b2)]||!this[_0x3e06e5(0x1a0)]['shouldShareOperation'](_0x44130d['id']))return;const {id:_0x418294}=_0x44130d;let _0x3bb9c9;_0x66c8b6[_0x3e06e5(0x1e5)](_0x418294)?_0x3bb9c9=_0x66c8b6[_0x3e06e5(0x173)](_0x418294):(_0x3bb9c9=new _0xf18be7(),_0x66c8b6['set'](_0x418294,_0x3bb9c9),_0x3bb9c9[_0x3e06e5(0x1de)](_0xf6ef8e((_0x4d138d=this['_configService'][_0x3e06e5(0x150)](Pe))!=null?_0x4d138d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2cce0e=>{var _0x413e6b=_0x3e06e5;this[_0x413e6b(0x189)][_0x413e6b(0x193)]({'eventID':_0x5a70bb[_0x413e6b(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x2cce0e['id']]:{'id':_0x2cce0e['id'],'params':JSON[_0x413e6b(0x19b)](_0x2cce0e[_0x413e6b(0x1b3)])}}}},this[_0x413e6b(0x1aa)]);})),_0x3bb9c9[_0x3e06e5(0x198)](_0x44130d);})),this['_liveShareService'][_0x1b2edb(0x176)](this[_0x1b2edb(0x1aa)])[_0x1b2edb(0x1e3)](_0x55bba5=>this['_collabSession'][_0x1b2edb(0x193)]({'eventID':_0x5a70bb[_0x1b2edb(0x180)],'data':{'unitID':this[_0x1b2edb(0x1aa)],'operations':{[_0x55bba5['id']]:{'id':_0x55bba5['id'],'params':JSON['stringify'](_0x55bba5[_0x1b2edb(0x1b3)])}}}},this['_unitID']));}[_0x829f68(0x18d)](){var _0x26b6d8=_0x829f68,_0x310d70;this[_0x26b6d8(0x178)][_0x26b6d8(0x198)]('idle'),(_0x310d70=this[_0x26b6d8(0x196)])==null||_0x310d70['dispose'](),this[_0x26b6d8(0x196)]=null;}['_startFollowing'](){var _0x51cfa5=_0x829f68,_0x8f1b87;(_0x8f1b87=this[_0x51cfa5(0x196)])==null||_0x8f1b87[_0x51cfa5(0x16d)](),this['_status$'][_0x51cfa5(0x198)](_0x51cfa5(0x1e6));}[_0x829f68(0x1e2)](){var _0x25a395=_0x829f68,_0x1a6e4b;this[_0x25a395(0x178)][_0x25a395(0x198)](_0x25a395(0x155)),(_0x1a6e4b=this[_0x25a395(0x196)])==null||_0x1a6e4b[_0x25a395(0x16d)](),this['_commandDisposable']=null;}[_0x829f68(0x1be)](){var _0x3871a9=_0x829f68,_0x404a60;this[_0x3871a9(0x178)][_0x3871a9(0x198)](_0x3871a9(0x1cf)),(_0x404a60=this[_0x3871a9(0x196)])==null||_0x404a60['dispose']();}[_0x829f68(0x1ed)](_0x461d7c){var _0xfd2299=_0x829f68;if([_0xfd2299(0x1f6),'not-following',_0xfd2299(0x161)][_0xfd2299(0x18c)](this[_0xfd2299(0x163)])||!_0x461d7c[_0xfd2299(0x1f0)]['presenter']||_0x461d7c[_0xfd2299(0x1f0)]['presenter']===this[_0xfd2299(0x189)][_0xfd2299(0x168)]())return;this[_0xfd2299(0x163)]===_0xfd2299(0x155)&&this[_0xfd2299(0x1db)]();const _0x47a4e1=_0x461d7c['data'][_0xfd2299(0x164)];Object[_0xfd2299(0x1cd)](_0x47a4e1)[_0xfd2299(0x1e3)](_0x2692cb=>{var _0x4c3ece=_0xfd2299;this[_0x4c3ece(0x15f)]['executeCommand'](_0x2692cb['id'],_0x2692cb[_0x4c3ece(0x1b3)]?JSON[_0x4c3ece(0x14f)](_0x2692cb[_0x4c3ece(0x1b3)]):null,{'fromCollab':!0x0});});}[_0x829f68(0x1c3)](){var _0x28a00a=_0x829f68,_0x4a78b8;this[_0x28a00a(0x178)][_0x28a00a(0x198)]('offline'),(_0x4a78b8=this[_0x28a00a(0x196)])==null||_0x4a78b8[_0x28a00a(0x16d)]();}[_0x829f68(0x199)](){var _0x578730=_0x829f68;this[_0x578730(0x178)]['next'](_0x578730(0x155)),this[_0x578730(0x15a)]();}};C=Z([f(0x2,_0x1fcd08),f(0x3,_0x4cd37e(L)),f(0x4,_0x35b5c9)],C);function Te(){var _0x24c831=_0x829f68;const _0x36722f=_0x261508(I),_0x3e756b=_0x261508(_0x5b4a3c),_0x289dc0=_0x59ae5a(()=>_0x3e756b[_0x24c831(0x165)](_0x499b8f[_0x24c831(0x170)]),void 0x0,!0x1,[]),[_0xed57cc,_0x189206]=_0x17fcc6(null),[_0x5a0eb6,_0x503858]=_0x17fcc6(h['IDLE']),_0x5ded0d=_0x1d4b4e(null);return _0x52faa4(()=>(_0x289dc0&&_0x36722f[_0x24c831(0x1ef)](_0x289dc0[_0x24c831(0x1a7)]())[_0x24c831(0x1c5)](_0x2a8d1f=>{_0x189206(_0x2a8d1f),_0x5ded0d['current']=_0x2a8d1f['status$']['subscribe'](_0xc74fd0=>{_0x503858(_0xc74fd0);});}),()=>{var _0x20fcdb=_0x24c831,_0x283c3d;(_0x283c3d=_0x5ded0d[_0x20fcdb(0x18b)])==null||_0x283c3d[_0x20fcdb(0x16f)](),_0x5ded0d['current']=null;}),[_0x289dc0,_0x36722f]),_0xed57cc?_0x117f47(_0x43c7d6,{'align':_0x24c831(0x15c),'disabled':_0x5a0eb6===h[_0x24c831(0x162)],'className':_0x24c831(0x1c8),'overlay':_0x117f47($e,{'status':_0x5a0eb6,'coordinator':_0xed57cc}),'children':_0x117f47(_0x24c831(0x17a),{'className':_0x31597b(_0x24c831(0x1bc),{'univer-cursor-not-allowed':_0x5a0eb6===h[_0x24c831(0x162)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a0eb6!==h[_0x24c831(0x162)]}),'type':_0x24c831(0x17a),'children':_0x117f47(B,{'className':_0x24c831(0x1b8)})})}):null;}function $e(_0x2d6832){var _0x331e46=_0x829f68;const {status:_0x2c7dbf,coordinator:_0x4d16cb}=_0x2d6832;switch(_0x2c7dbf){case h[_0x331e46(0x186)]:return _0x117f47(Fe,{'coordinator':_0x4d16cb});case h[_0x331e46(0x1d1)]:return _0x117f47(He,{'coordinator':_0x4d16cb});case h[_0x331e46(0x14b)]:return _0x117f47(je,{'coordinator':_0x4d16cb});case h[_0x331e46(0x162)]:return _0x117f47(Ve,{});case h[_0x331e46(0x1c0)]:return _0x117f47(Ue,{'coordinator':_0x4d16cb});default:return null;}}function Fe(_0x24dd12){var _0x353010=_0x829f68;const {coordinator:_0x7d2005}=_0x24dd12;return _0x495cee(_0xa8e072,{'children':[_0x117f47(_0x353010(0x17b),{'className':_0x353010(0x167),'children':'Present\x20this\x20document'}),_0x117f47(_0x1a13f6,{'onClick':()=>_0x7d2005[_0x353010(0x1b7)](),'children':_0x353010(0x1a5)})]});}function He(_0x38f43e){var _0x35c2c2=_0x829f68;const {coordinator:_0x1eae77}=_0x38f43e;return _0x495cee(_0xa8e072,{'children':[_0x117f47(_0x35c2c2(0x17b),{'className':_0x35c2c2(0x167),'children':_0x35c2c2(0x1d3)}),_0x117f47(_0x1a13f6,{'onClick':()=>_0x1eae77[_0x35c2c2(0x1d4)](),'children':_0x35c2c2(0x153)})]});}function je(_0x228598){var _0xb2b6e9=_0x829f68;const {coordinator:_0x1bfd74}=_0x228598;return _0x495cee(_0xa8e072,{'children':[_0x117f47('div',{'className':_0xb2b6e9(0x167),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x117f47(_0x1a13f6,{'variant':_0xb2b6e9(0x1a2),'onClick':()=>_0x1bfd74['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x11e824){var _0x4ba611=_0x829f68;const {coordinator:_0x330093}=_0x11e824;return _0x495cee(_0xa8e072,{'children':[_0x117f47('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4ba611(0x1a8)}),_0x117f47(_0x1a13f6,{'variant':_0x4ba611(0x1cc),'onClick':()=>_0x330093[_0x4ba611(0x1a3)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x35c04e=_0x829f68;return _0x117f47(_0xa8e072,{'children':_0x35c04e(0x1df)});}var Me=Object[_0x829f68(0x1ab)],ke=(_0x10eb7c,_0x837bc4,_0x38ab8e,_0x5a54d8)=>{for(var _0x39c743=_0x5a54d8>0x1?void 0x0:_0x5a54d8?Me(_0x837bc4,_0x38ab8e):_0x837bc4,_0x2d12ed=_0x10eb7c['length']-0x1,_0x30971c;_0x2d12ed>=0x0;_0x2d12ed--)(_0x30971c=_0x10eb7c[_0x2d12ed])&&(_0x39c743=_0x30971c(_0x39c743)||_0x39c743);return _0x39c743;},$=(_0x12867b,_0x533108)=>(_0x1732d9,_0x1218a7)=>_0x533108(_0x1732d9,_0x1218a7,_0x12867b);let b=class extends _0x29cf92{constructor(_0x4c0347,_0x2eca19){var _0xbb7821=_0x829f68;super(),this[_0xbb7821(0x160)]=_0x4c0347,this[_0xbb7821(0x14a)]=_0x2eca19,this[_0xbb7821(0x197)]();}[_0x829f68(0x197)](){var _0x5f30a4=_0x829f68;this[_0x5f30a4(0x1e7)](this[_0x5f30a4(0x14a)][_0x5f30a4(0x16a)](_0x848d96[_0x5f30a4(0x19d)],()=>_0x4671d8(Te,this[_0x5f30a4(0x160)])));}};b=ke([$(0x0,_0x4cd37e(_0x3a53ed)),$(0x1,_0x2e9b6a)],b);var Ge=Object[_0x829f68(0x1d0)],We=Object[_0x829f68(0x1ab)],Ye=(_0x46a8b2,_0x6f0c12,_0x1ef918)=>_0x6f0c12 in _0x46a8b2?Ge(_0x46a8b2,_0x6f0c12,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ef918}):_0x46a8b2[_0x6f0c12]=_0x1ef918,Be=(_0x393ad2,_0x3299b9,_0x522954,_0x6b0994)=>{for(var _0x4f222b=_0x6b0994>0x1?void 0x0:_0x6b0994?We(_0x3299b9,_0x522954):_0x3299b9,_0x5c3d91=_0x393ad2['length']-0x1,_0x4bb4b4;_0x5c3d91>=0x0;_0x5c3d91--)(_0x4bb4b4=_0x393ad2[_0x5c3d91])&&(_0x4f222b=_0x4bb4b4(_0x4f222b)||_0x4f222b);return _0x4f222b;},F=(_0x28313f,_0x1d162d)=>(_0x3ab80a,_0x155408)=>_0x1d162d(_0x3ab80a,_0x155408,_0x28313f),J=(_0x192ff4,_0x1911df,_0xf8ee96)=>Ye(_0x192ff4,typeof _0x1911df!=_0x829f68(0x1f4)?_0x1911df+'':_0x1911df,_0xf8ee96);const Ze=_0x829f68(0x1ec);let O=class extends _0x5bf096{constructor(_0x14225c=T,_0x5d5d01,_0x126b30){var _0x80eb3f=_0x829f68;super(),this[_0x80eb3f(0x1d6)]=_0x14225c,this[_0x80eb3f(0x160)]=_0x5d5d01,this[_0x80eb3f(0x158)]=_0x126b30;const {..._0x23e85d}=_0xf2ec51({},T,this[_0x80eb3f(0x1d6)]);this['_configService'][_0x80eb3f(0x174)](Oe,_0x23e85d);}[_0x829f68(0x1f1)](){var _0x4027e1=_0x829f68;_0x549882(this[_0x4027e1(0x160)],_0x206824([[L],[I],[m],[b]],this[_0x4027e1(0x1d6)][_0x4027e1(0x16e)])),_0x1d4462(this[_0x4027e1(0x160)],[[m]]);}['onRendered'](){var _0x386433=_0x829f68;_0x1d4462(this[_0x386433(0x160)],[[b]]);}};J(O,_0x829f68(0x172),_0x499b8f[_0x829f68(0x1dd)]),J(O,_0x829f68(0x1b1),Ze),O=Be([_0x4df1cf(_0x52511b),F(0x1,_0x4cd37e(_0x3a53ed)),F(0x2,_0x1fcd08)],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 _0x2a0a(_0x4923f1,_0x57d945){var _0x44550f=_0x4455();return _0x2a0a=function(_0x2a0a75,_0xff376c){_0x2a0a75=_0x2a0a75-0x13d;var _0x257c31=_0x44550f[_0x2a0a75];return _0x257c31;},_0x2a0a(_0x4923f1,_0x57d945);}function _0x4455(){var _0x5211e6=['length','registerDependencies','Dropdown','LIVESHARE_REQUEST_HOST','throttleTime','UniverCore','_handleOnline','jsx','@univerjs/design','symbol','propertyIsEnumerable','pipe','IUniverInstanceService','fill','getTypeOfUnitAdded$','map','div','_entities','has','LiveShareService','getInitialStates','useState','@univerjs/core','next','univer-size-4','takeUntil','entries','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','function','UniverUi','tryStartPresenting','set','data','override','ICommandService','CollaborationEvent','SetZoomRatioOperation','You\x27are\x20offline.','BehaviorSubject','@univerjs/sheets-ui','prototype','mutations','apply','React','137995DnIDQd','button','UniverCollaborationClientPlugin','_collabSessionService','complete','CollaborationSessionService','UniverProCollaborationClient','status$','4284hndZEA','FOLLOWING','jsxs','useObservable','6715650zXoVlA','SetWorksheetActiveOperation','xlink:href','UniverLiveSharePlugin','offline','none','dispose$','call','idle','LiveShareCoordinator','_mountLiveShare','getOwnPropertySymbols','find','string','80FWVNbE','icon','_unitID','2688SYNPfB','@univerjs/sheets','_startFollowing','LiveShare','use','shouldShareOperation','registerSharedOperation','attrs','onStarting','DisposableCollection','_config','Inject','_stopPresenting','LIVESHARE_NEW_HOST','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','1036713fctUtt','random','end','evenodd','_init','react/jsx-runtime','_handleOperation','_beIdle','assign','values','_status','LiveShareStatus','mergeOverrideWithDependencies','@univerjs/ui','SetScrollOperation','HEADER_MENU','@univerjs-pro/collaboration-client','registerComponent','1em','CommandType','executeCommand','delete','DependentOn','_fetchOperations','concat','includes','disposeWithMe','event$','ONLINE','Module','get','_handleNewChangeSets','requireSession','unitId','_configService','stringify','following','toDisposable','useEffect','from','replace','_presenter','defineProperty','UNIVER_SHEET','trim','NOT_FOLLOWING','0\x200\x2017\x2017','_collabSession','Disposable','_commandDisposable','Present\x20this\x20document','646678FtAaYp','OFFLINE','Stop\x20following','UniverSheetsUi','init','useDependency','extend','substring','rxjs/operators','stopFollowing','startFollowing','LIVESHARE_FETCH_OPERATIONS','parseProtocolChangeset','indexOf','getConfig','Fragment','_status$','children','getLiveShareCoordinator','_stopFollowing','presenter','InsertSheetMutation','asObservable','useRef','RxDisposable','clear','_sharedOperations','_reporters','Plugin','20EyxQSm','object','LIVESHARE_OPERATION','path','getCurrentTypeOfUnit$','UniverIcon','@univerjs-pro/collaboration','sessionStatus$','You\x27re\x20following\x20the\x20presenter','connectInjector','svg','DesktopLiveShareController','Button','react','dispose','Injector','Subject','Stop\x20presenting','presenting','7WngcTS','touchDependencies','getMemberID','createElement','registerInitialStateReporter','4FgBJoa','pluginName','forwardRef','_uiPartsService','IDLE','_liveShareService','UniverProCollaboration','getUnitId','defIds','colorChannel1','type','rxjs','UNIVER_LIVE_SHARE_PLUGIN','Start','current','subscribe','parse','IConfigService','not-following','Start\x20following','_startLiveShareCoordinator','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','You\x27re\x20presenting\x20the\x20document','defs','2FJrtbj','getOwnPropertyDescriptor','_startPresenting','add','_commandService','unsubscribe','getValue','forEach','sheet','962368dgkJKR','onCommandExecuted','idSuffix','_handleTerminate','toStringTag','getTypeOfUnitDisposed$','LIVESHARE_TERMINATE','PRESENTING','tag','6248724aRKdbl','_univerInstanceService','LiveShareController','className','params','UniverSheets','_handleOffline','_injector','LiveShareIcon','univer-w-full\x20univer-mb-3\x20univer-text-sm','url(#$1','NEW_CHANGESETS','UniverInstanceType'];_0x4455=function(){return _0x5211e6;};return _0x4455();}(function(_0x2543d3,_0x480b8a){var _0x1c70d9=_0x2a0a,_0x76721=_0x2543d3();while(!![]){try{var _0x4a7f4f=parseInt(_0x1c70d9(0x1a4))/0x1*(parseInt(_0x1c70d9(0x157))/0x2)+-parseInt(_0x1c70d9(0x21c))/0x3*(-parseInt(_0x1c70d9(0x18c))/0x4)+parseInt(_0x1c70d9(0x1fc))/0x5+parseInt(_0x1c70d9(0x1b6))/0x6*(parseInt(_0x1c70d9(0x187))/0x7)+-parseInt(_0x1c70d9(0x20a))/0x8*(parseInt(_0x1c70d9(0x1f8))/0x9)+-parseInt(_0x1c70d9(0x174))/0xa*(parseInt(_0x1c70d9(0x1ad))/0xb)+parseInt(_0x1c70d9(0x20d))/0xc*(-parseInt(_0x1c70d9(0x1f0))/0xd);if(_0x4a7f4f===_0x480b8a)break;else _0x76721['push'](_0x76721['shift']());}catch(_0x10e944){_0x76721['push'](_0x76721['shift']());}}}(_0x4455,0xc8089),function(_0x5daec4,_0x131937){var _0x38ae6e=_0x2a0a;typeof exports==_0x38ae6e(0x175)&&typeof module<'u'?_0x131937(exports,require(_0x38ae6e(0x22c)),require(_0x38ae6e(0x1d9)),require('@univerjs/sheets'),require(_0x38ae6e(0x1eb)),require('@univerjs/ui'),require(_0x38ae6e(0x221)),require(_0x38ae6e(0x1cb)),require(_0x38ae6e(0x181)),require(_0x38ae6e(0x17a)),require('rxjs'),require(_0x38ae6e(0x15f))):typeof define=='function'&&define['amd']?define(['exports',_0x38ae6e(0x22c),_0x38ae6e(0x1d9),_0x38ae6e(0x20e),_0x38ae6e(0x1eb),_0x38ae6e(0x229),_0x38ae6e(0x221),_0x38ae6e(0x1cb),_0x38ae6e(0x181),_0x38ae6e(0x17a),_0x38ae6e(0x197),_0x38ae6e(0x15f)],_0x131937):(_0x5daec4=typeof globalThis<'u'?globalThis:_0x5daec4||self,_0x131937(_0x5daec4['UniverProLiveShare']={},_0x5daec4[_0x38ae6e(0x1f6)],_0x5daec4[_0x38ae6e(0x1c8)],_0x5daec4[_0x38ae6e(0x1bb)],_0x5daec4[_0x38ae6e(0x15a)],_0x5daec4[_0x38ae6e(0x1e1)],_0x5daec4[_0x38ae6e(0x1ef)],_0x5daec4['UniverDesign'],_0x5daec4[_0x38ae6e(0x1ef)],_0x5daec4[_0x38ae6e(0x192)],_0x5daec4[_0x38ae6e(0x197)],_0x5daec4[_0x38ae6e(0x197)]['operators']));}(this,function(_0x14ce0c,_0x16afe0,_0x3319de,_0x541599,_0x456984,_0x280145,_0x2f2eab,_0x40a477,_0x29f590,_0x4ef0ff,_0x329f62,_0x2c00c2){'use strict';var _0x1e4cc4=_0x2a0a;var _0x42492c=Object[_0x1e4cc4(0x14e)],_0x4b105c=(_0x3607a8,_0x4d8893,_0xa8dd67)=>_0x4d8893 in _0x3607a8?_0x42492c(_0x3607a8,_0x4d8893,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa8dd67}):_0x3607a8[_0x4d8893]=_0xa8dd67,_0x35b09a=(_0x583089,_0x279721,_0x458f19)=>_0x4b105c(_0x583089,typeof _0x279721!=_0x1e4cc4(0x1cc)?_0x279721+'':_0x279721,_0x458f19);const _0x35cf2c='live-share.config',_0x3a3b46={};class _0x30d7e extends _0x3319de[_0x1e4cc4(0x154)]{constructor(){var _0x1ca1e5=_0x1e4cc4;super(...arguments),_0x35b09a(this,'_sharedOperations',new Set()),_0x35b09a(this,_0x1ca1e5(0x172),new Set());}[_0x1e4cc4(0x213)](_0x4988c0){var _0x195fa8=_0x1e4cc4;return this[_0x195fa8(0x171)]['add'](_0x4988c0),_0x3319de['toDisposable'](()=>this['_sharedOperations'][_0x195fa8(0x231)](_0x4988c0));}[_0x1e4cc4(0x18b)](_0x131a09){var _0x28b45a=_0x1e4cc4;return this[_0x28b45a(0x172)]['add'](_0x131a09),_0x3319de[_0x28b45a(0x149)](()=>this[_0x28b45a(0x172)][_0x28b45a(0x231)](_0x131a09));}[_0x1e4cc4(0x212)](_0x36fe2f){var _0x3a604d=_0x1e4cc4;return this[_0x3a604d(0x171)]['has'](_0x36fe2f);}[_0x1e4cc4(0x1d7)](_0x5688ba){var _0x1ebd46=_0x1e4cc4;return Array[_0x1ebd46(0x14b)](this['_reporters'])['map'](_0x2f7ed8=>_0x2f7ed8(_0x5688ba));}}var _0x480702=Object[_0x1e4cc4(0x1a5)],_0x372d55=(_0x510285,_0x162b19,_0xc8b7bc,_0x35fb66)=>{var _0x1558f2=_0x1e4cc4;for(var _0x351bd7=_0x35fb66>0x1?void 0x0:_0x35fb66?_0x480702(_0x162b19,_0xc8b7bc):_0x162b19,_0x4b2be8=_0x510285[_0x1558f2(0x1c3)]-0x1,_0x544ced;_0x4b2be8>=0x0;_0x4b2be8--)(_0x544ced=_0x510285[_0x4b2be8])&&(_0x351bd7=_0x544ced(_0x351bd7)||_0x351bd7);return _0x351bd7;},_0x5577fb=(_0x3a15d4,_0x550cea)=>(_0xdcfd88,_0x569cc0)=>_0x550cea(_0xdcfd88,_0x569cc0,_0x3a15d4);let _0x52874e=class extends _0x3319de['Disposable']{constructor(_0x551403){var _0x8b38a1=_0x1e4cc4;super(),this[_0x8b38a1(0x191)]=_0x551403,this[_0x8b38a1(0x220)]();}['_init'](){var _0x3cb231=_0x1e4cc4;[_0x456984[_0x3cb231(0x1e8)]['id'],_0x456984[_0x3cb231(0x22a)]['id'],_0x541599['SetWorksheetActiveOperation']['id']][_0x3cb231(0x1ab)](_0x2d8d0d=>{var _0x3b597f=_0x3cb231;this[_0x3b597f(0x13e)](this['_liveShareService'][_0x3b597f(0x213)](_0x2d8d0d));});}};_0x52874e=_0x372d55([_0x5577fb(0x0,_0x3319de[_0x1e4cc4(0x218)](_0x30d7e))],_0x52874e);var _0x5ae937=function(){var _0x555845=_0x1e4cc4;return _0x5ae937=Object[_0x555845(0x224)]||function(_0x81f89a){var _0x3caf4b=_0x555845;for(var _0x1f60b7,_0x2879fb=0x1,_0x198837=arguments[_0x3caf4b(0x1c3)];_0x2879fb<_0x198837;_0x2879fb++){_0x1f60b7=arguments[_0x2879fb];for(var _0x217054 in _0x1f60b7)Object[_0x3caf4b(0x1ec)]['hasOwnProperty'][_0x3caf4b(0x203)](_0x1f60b7,_0x217054)&&(_0x81f89a[_0x217054]=_0x1f60b7[_0x217054]);}return _0x81f89a;},_0x5ae937[_0x555845(0x1ee)](this,arguments);},_0x145ec0=function(_0x1aceba,_0x528c36){var _0x4f085f=_0x1e4cc4,_0x23cbc4={};for(var _0x30b014 in _0x1aceba)Object[_0x4f085f(0x1ec)]['hasOwnProperty']['call'](_0x1aceba,_0x30b014)&&_0x528c36[_0x4f085f(0x164)](_0x30b014)<0x0&&(_0x23cbc4[_0x30b014]=_0x1aceba[_0x30b014]);if(_0x1aceba!=null&&typeof Object[_0x4f085f(0x207)]==_0x4f085f(0x1e0)){for(var _0x1b6963=0x0,_0x30b014=Object['getOwnPropertySymbols'](_0x1aceba);_0x1b6963<_0x30b014[_0x4f085f(0x1c3)];_0x1b6963++)_0x528c36[_0x4f085f(0x164)](_0x30b014[_0x1b6963])<0x0&&Object['prototype'][_0x4f085f(0x1cd)][_0x4f085f(0x203)](_0x1aceba,_0x30b014[_0x1b6963])&&(_0x23cbc4[_0x30b014[_0x1b6963]]=_0x1aceba[_0x30b014[_0x1b6963]]);}return _0x23cbc4;},_0x2f27cd=_0x29f590[_0x1e4cc4(0x18e)](function(_0x45c9ef,_0x2e6603){var _0x228121=_0x1e4cc4,_0x16e886=_0x45c9ef['icon'],_0x11be26=_0x45c9ef['id'],_0x32e274=_0x45c9ef[_0x228121(0x1b9)],_0x259336=_0x45c9ef[_0x228121(0x15d)],_0x7d252f=_0x145ec0(_0x45c9ef,[_0x228121(0x20b),'id',_0x228121(0x1b9),_0x228121(0x15d)]),_0x1dcadb='univerjs-icon\x20univerjs-icon-'[_0x228121(0x234)](_0x11be26,'\x20')[_0x228121(0x234)](_0x32e274||'')[_0x228121(0x150)](),_0x466ab0=_0x29f590[_0x228121(0x16e)]('_'['concat'](_0x11d1df()));return _0x165106(_0x16e886,''['concat'](_0x11be26),{'defIds':_0x16e886['defIds'],'idSuffix':_0x466ab0[_0x228121(0x19a)]},_0x5ae937({'ref':_0x2e6603,'className':_0x1dcadb},_0x7d252f),_0x259336);});function _0x165106(_0x237ac1,_0x4825fc,_0x716523,_0x40b46e,_0xad76c9){var _0x351749=_0x1e4cc4;return _0x29f590[_0x351749(0x18a)](_0x237ac1['tag'],_0x5ae937(_0x5ae937({'key':_0x4825fc},_0x63123b(_0x237ac1,_0x716523,_0xad76c9)),_0x40b46e),(_0x4cb7c5(_0x237ac1,_0x716523)['children']||[])[_0x351749(0x1d2)](function(_0x1e8b76,_0x3bf3d1){var _0x201676=_0x351749;return _0x165106(_0x1e8b76,''[_0x201676(0x234)](_0x4825fc,'-')[_0x201676(0x234)](_0x237ac1['tag'],'-')[_0x201676(0x234)](_0x3bf3d1),_0x716523,void 0x0,_0xad76c9);}));}function _0x63123b(_0x5ebf38,_0x4202be,_0x54c25b){var _0x167516=_0x1e4cc4,_0x179347=_0x5ae937({},_0x5ebf38[_0x167516(0x214)]);_0x54c25b!=null&&_0x54c25b['colorChannel1']&&_0x179347[_0x167516(0x1d0)]==='colorChannel1'&&(_0x179347[_0x167516(0x1d0)]=_0x54c25b[_0x167516(0x195)]),_0x5ebf38[_0x167516(0x1b5)]==='mask'&&_0x179347['id']&&(_0x179347['id']=_0x179347['id']+_0x4202be['idSuffix']),Object[_0x167516(0x1dd)](_0x179347)[_0x167516(0x1ab)](function(_0x75f43a){var _0x25e4e7=_0x167516,_0x41438f=_0x75f43a[0x0],_0x4c28fa=_0x75f43a[0x1];_0x41438f==='mask'&&typeof _0x4c28fa==_0x25e4e7(0x209)&&(_0x179347[_0x41438f]=_0x4c28fa['replace'](/url\(#(.*)\)/,_0x25e4e7(0x1c0)[_0x25e4e7(0x234)](_0x4202be[_0x25e4e7(0x1af)],')')));});var _0x35dcc4=_0x4202be[_0x167516(0x194)];return!_0x35dcc4||_0x35dcc4[_0x167516(0x1c3)]===0x0||(_0x5ebf38[_0x167516(0x1b5)]===_0x167516(0x211)&&_0x179347[_0x167516(0x1fe)]&&(_0x179347[_0x167516(0x1fe)]=_0x179347[_0x167516(0x1fe)]+_0x4202be[_0x167516(0x1af)]),Object[_0x167516(0x1dd)](_0x179347)['forEach'](function(_0x5df6dd){var _0x5f56b4=_0x167516,_0xef52a9=_0x5df6dd[0x0],_0xf43acb=_0x5df6dd[0x1];typeof _0xf43acb==_0x5f56b4(0x209)&&(_0x179347[_0xef52a9]=_0xf43acb[_0x5f56b4(0x14c)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4202be['idSuffix'],')')));})),_0x179347;}function _0x4cb7c5(_0x51bc18,_0x37f1a8){var _0x14f043=_0x1e4cc4,_0x13616e,_0x461fc2=_0x37f1a8[_0x14f043(0x194)];return!_0x461fc2||_0x461fc2[_0x14f043(0x1c3)]===0x0?_0x51bc18:_0x51bc18[_0x14f043(0x1b5)]===_0x14f043(0x1a3)&&(!((_0x13616e=_0x51bc18[_0x14f043(0x168)])===null||_0x13616e===void 0x0)&&_0x13616e[_0x14f043(0x1c3)])?_0x5ae937(_0x5ae937({},_0x51bc18),{'children':_0x51bc18['children'][_0x14f043(0x1d2)](function(_0x36e900){var _0x1e4499=_0x14f043;return typeof _0x36e900[_0x1e4499(0x214)]['id']=='string'&&_0x461fc2&&_0x461fc2[_0x1e4499(0x13d)](_0x36e900['attrs']['id'])?_0x5ae937(_0x5ae937({},_0x36e900),{'attrs':_0x5ae937(_0x5ae937({},_0x36e900[_0x1e4499(0x214)]),{'id':_0x36e900['attrs']['id']+_0x37f1a8[_0x1e4499(0x1af)]})}):_0x36e900;})}):_0x51bc18;}function _0x11d1df(){var _0xf60070=_0x1e4cc4;return Math[_0xf60070(0x21d)]()['toString'](0x24)[_0xf60070(0x15e)](0x2,0x8);}_0x2f27cd['displayName']=_0x1e4cc4(0x179);var _0x16fa5b={'tag':_0x1e4cc4(0x17e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1e4cc4(0x201),'viewBox':_0x1e4cc4(0x152),'width':_0x1e4cc4(0x22e),'height':_0x1e4cc4(0x22e)},'children':[{'tag':_0x1e4cc4(0x177),'attrs':{'fill':'currentColor','d':_0x1e4cc4(0x1a1)}},{'tag':_0x1e4cc4(0x177),'attrs':{'fill':'currentColor','d':_0x1e4cc4(0x21b),'fillRule':_0x1e4cc4(0x21f),'clipRule':_0x1e4cc4(0x21f)}}]},_0x22d10d=_0x29f590['forwardRef'](function(_0x170df8,_0x75a730){var _0x4aabe2=_0x1e4cc4;return _0x29f590[_0x4aabe2(0x18a)](_0x2f27cd,Object[_0x4aabe2(0x224)]({},_0x170df8,{'id':'live-share-icon','ref':_0x75a730,'icon':_0x16fa5b}));});_0x22d10d['displayName']=_0x1e4cc4(0x1be);var _0x2c1df0=Object[_0x1e4cc4(0x1a5)],_0x17b7fc=(_0x5890a3,_0x7c643b,_0xc3cccc,_0x223b49)=>{for(var _0x4d057e=_0x223b49>0x1?void 0x0:_0x223b49?_0x2c1df0(_0x7c643b,_0xc3cccc):_0x7c643b,_0x5543fe=_0x5890a3['length']-0x1,_0x4bfae8;_0x5543fe>=0x0;_0x5543fe--)(_0x4bfae8=_0x5890a3[_0x5543fe])&&(_0x4d057e=_0x4bfae8(_0x4d057e)||_0x4d057e);return _0x4d057e;},_0x44aa01=(_0x484ad9,_0x938e76)=>(_0x2acaa8,_0x201e0d)=>_0x938e76(_0x2acaa8,_0x201e0d,_0x484ad9);_0x14ce0c[_0x1e4cc4(0x1b8)]=class extends _0x3319de[_0x1e4cc4(0x16f)]{constructor(_0x2a970d,_0x34a6b8,_0x4e7df8){var _0x5ca36b=_0x1e4cc4;super(),_0x35b09a(this,'_entities',new Map()),(this[_0x5ca36b(0x1b7)]=_0x2a970d,this[_0x5ca36b(0x1bd)]=_0x34a6b8,this[_0x5ca36b(0x1f3)]=_0x4e7df8,this[_0x5ca36b(0x220)]());}async[_0x1e4cc4(0x169)](_0x5cbc0d){var _0x5efb4c=_0x1e4cc4;return this[_0x5efb4c(0x1d4)][_0x5efb4c(0x1d5)](_0x5cbc0d)||await this['_startLiveShareCoordinator'](_0x5cbc0d),this[_0x5efb4c(0x1d4)][_0x5efb4c(0x142)](_0x5cbc0d);}['_init'](){var _0x45cef8=_0x1e4cc4;this['_univerInstanceService'][_0x45cef8(0x1d1)](_0x3319de[_0x45cef8(0x1c2)][_0x45cef8(0x14f)])['pipe'](_0x2c00c2['takeUntil'](this[_0x45cef8(0x202)]))['subscribe'](async _0x484d3a=>{var _0x28a035=_0x45cef8;const _0x3c6c84=_0x484d3a[_0x28a035(0x193)]();this['_entities'][_0x28a035(0x1d5)](_0x3c6c84)||this[_0x28a035(0x1a0)](_0x3c6c84);}),this[_0x45cef8(0x1b7)][_0x45cef8(0x1b2)](_0x3319de[_0x45cef8(0x1c2)]['UNIVER_SHEET'])[_0x45cef8(0x1ce)](_0x2c00c2[_0x45cef8(0x1dc)](this[_0x45cef8(0x202)]))[_0x45cef8(0x19b)](_0xccea4c=>{var _0x3b9899=_0x45cef8;const _0x35ec73=_0xccea4c['getUnitId'](),_0xef904a=this[_0x3b9899(0x1d4)][_0x3b9899(0x142)](_0x35ec73);_0xef904a==null||_0xef904a[_0x3b9899(0x182)]();});}async[_0x1e4cc4(0x1a0)](_0x136c84){var _0x3469af=_0x1e4cc4;const _0x362f0a=await this[_0x3469af(0x1f3)][_0x3469af(0x144)](_0x136c84),_0x17c131=this[_0x3469af(0x1bd)]['createInstance'](_0x14ce0c[_0x3469af(0x205)],_0x136c84,_0x362f0a);return _0x17c131['init'](),this[_0x3469af(0x1d4)][_0x3469af(0x1e3)](_0x136c84,_0x17c131),_0x17c131;}},_0x14ce0c[_0x1e4cc4(0x1b8)]=_0x17b7fc([_0x44aa01(0x0,_0x3319de[_0x1e4cc4(0x1cf)]),_0x44aa01(0x1,_0x3319de[_0x1e4cc4(0x218)](_0x3319de['Injector'])),_0x44aa01(0x2,_0x3319de[_0x1e4cc4(0x218)](_0x16afe0[_0x1e4cc4(0x1f5)]))],_0x14ce0c[_0x1e4cc4(0x1b8)]);var _0x43c5d5=(_0x16ebe1=>(_0x16ebe1[_0x1e4cc4(0x158)]=_0x1e4cc4(0x200),_0x16ebe1[_0x1e4cc4(0x190)]=_0x1e4cc4(0x204),_0x16ebe1['FOLLOWING']=_0x1e4cc4(0x148),_0x16ebe1[_0x1e4cc4(0x151)]='not-following',_0x16ebe1[_0x1e4cc4(0x1b4)]=_0x1e4cc4(0x186),_0x16ebe1))(_0x43c5d5||{});const _0x1746b6='SAME_OPERATION_SHARE_INTERVAL',_0x2e76db=0xc8;_0x14ce0c[_0x1e4cc4(0x205)]=class extends _0x3319de[_0x1e4cc4(0x16f)]{constructor(_0x54b286,_0x3f2c94,_0x3304ae,_0x1d1730,_0x2228d2){var _0x2b147b=_0x1e4cc4;super(),_0x35b09a(this,_0x2b147b(0x167),new _0x329f62[(_0x2b147b(0x1ea))]('idle')),_0x35b09a(this,_0x2b147b(0x1f7),this[_0x2b147b(0x167)][_0x2b147b(0x16d)]()),_0x35b09a(this,_0x2b147b(0x220),!0x1),_0x35b09a(this,'_commandDisposable',null),_0x35b09a(this,_0x2b147b(0x14d),null),(this[_0x2b147b(0x20c)]=_0x54b286,this[_0x2b147b(0x153)]=_0x3f2c94,this['_configService']=_0x3304ae,this[_0x2b147b(0x191)]=_0x1d1730,this['_commandService']=_0x2228d2);}get['_status'](){var _0x180764=_0x1e4cc4;return this['_status$'][_0x180764(0x1aa)]();}[_0x1e4cc4(0x182)](){var _0x106e18=_0x1e4cc4,_0xdea16a;(_0xdea16a=this[_0x106e18(0x155)])==null||_0xdea16a[_0x106e18(0x182)](),this[_0x106e18(0x167)][_0x106e18(0x1da)](_0x106e18(0x204)),this[_0x106e18(0x167)][_0x106e18(0x1f4)]();}[_0x1e4cc4(0x15b)](){var _0x463e85=_0x1e4cc4;this['_init']||(this[_0x463e85(0x220)]=!0x0,this[_0x463e85(0x153)][_0x463e85(0x17b)][_0x463e85(0x1ce)](_0x2c00c2[_0x463e85(0x1dc)](this[_0x463e85(0x202)]))[_0x463e85(0x19b)](_0x5e6544=>{var _0x3848af=_0x463e85;switch(_0x5e6544){case _0x16afe0['SessionStatus'][_0x3848af(0x158)]:this[_0x3848af(0x1bc)]();break;case _0x16afe0['SessionStatus'][_0x3848af(0x140)]:this[_0x3848af(0x1c9)]();break;}}),this['_collabSession'][_0x463e85(0x13f)][_0x463e85(0x1ce)](_0x2c00c2['takeUntil'](this['dispose$']))[_0x463e85(0x19b)](_0x14eb83=>{var _0x4397cb=_0x463e85;const {eventID:_0x36f03}=_0x14eb83;switch(_0x36f03){case _0x4ef0ff[_0x4397cb(0x1e7)][_0x4397cb(0x21a)]:this['_handleNewHost'](_0x14eb83);break;case _0x4ef0ff[_0x4397cb(0x1e7)][_0x4397cb(0x176)]:this[_0x4397cb(0x222)](_0x14eb83);break;case _0x4ef0ff[_0x4397cb(0x1e7)][_0x4397cb(0x1b3)]:this[_0x4397cb(0x1b0)]();break;case _0x4ef0ff[_0x4397cb(0x1e7)][_0x4397cb(0x1c1)]:this['_handleNewChangeSets'](_0x14eb83);break;}}));}[_0x1e4cc4(0x1e2)](){var _0x23e8a2=_0x1e4cc4;this[_0x23e8a2(0x153)]['send']({'eventID':_0x4ef0ff[_0x23e8a2(0x1e7)][_0x23e8a2(0x1c6)],'data':{'unitID':this[_0x23e8a2(0x20c)],'userID':this[_0x23e8a2(0x153)][_0x23e8a2(0x189)]()}},this[_0x23e8a2(0x20c)]);}[_0x1e4cc4(0x1de)](){var _0x58dbe8=_0x1e4cc4;this['_status']===_0x58dbe8(0x186)&&(this[_0x58dbe8(0x167)][_0x58dbe8(0x1da)](_0x58dbe8(0x204)),this[_0x58dbe8(0x153)]['send']({'eventID':_0x4ef0ff['CollaborationEvent'][_0x58dbe8(0x1b3)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x1e4cc4(0x161)](){var _0x148b63=_0x1e4cc4;this[_0x148b63(0x226)]===_0x148b63(0x19e)&&(this[_0x148b63(0x167)][_0x148b63(0x1da)](_0x148b63(0x148)),this[_0x148b63(0x20f)]());}[_0x1e4cc4(0x160)](){var _0x4c0170=_0x1e4cc4;this[_0x4c0170(0x226)]==='following'&&this[_0x4c0170(0x16a)]();}['_handleNewHost'](_0x4abe2d){var _0x5ef412=_0x1e4cc4;const {presenter:_0xb01b2c}=_0x4abe2d[_0x5ef412(0x1e4)],_0x13d27a=this[_0x5ef412(0x153)][_0x5ef412(0x189)]();this[_0x5ef412(0x14d)]=_0xb01b2c,_0xb01b2c===_0x13d27a?(this[_0x5ef412(0x16a)](),this['_startPresenting']()):this['_status']!==_0x5ef412(0x19e)&&(this[_0x5ef412(0x219)](),this['_startFollowing']());}['_fetchOperations'](){var _0x57d31a=_0x1e4cc4;const _0x2c6055={'eventID':_0x4ef0ff[_0x57d31a(0x1e7)][_0x57d31a(0x162)]};this['_collabSession']['send'](_0x2c6055,this[_0x57d31a(0x20c)]);}[_0x1e4cc4(0x1b0)](){var _0x490731=_0x1e4cc4;this[_0x490731(0x14d)]=null,this[_0x490731(0x226)]!=='presenting'&&this[_0x490731(0x223)]();}[_0x1e4cc4(0x143)](_0xcac021){var _0x489397=_0x1e4cc4;if(this[_0x489397(0x226)]===_0x489397(0x148)&&this[_0x489397(0x14d)]===_0xcac021[_0x489397(0x1e4)]['memberID']){const _0x26264d=_0x4ef0ff[_0x489397(0x163)](_0xcac021[_0x489397(0x1e4)])[_0x489397(0x1ed)]['reverse']()[_0x489397(0x208)](_0x2bdaa4=>_0x2bdaa4['id']===_0x541599[_0x489397(0x16c)]['id']);if(_0x26264d){const _0x38aadc=_0x26264d[_0x489397(0x1ba)][_0x489397(0x145)],_0x1ebcb6=_0x26264d[_0x489397(0x1ba)][_0x489397(0x1ac)]['id'];setTimeout(()=>{var _0x2db6d4=_0x489397;this[_0x2db6d4(0x1a8)][_0x2db6d4(0x230)](_0x541599[_0x2db6d4(0x1fd)]['id'],{'unitId':_0x38aadc,'subUnitId':_0x1ebcb6},{'fromCollab':!0x0});});}}}[_0x1e4cc4(0x1a6)](){var _0x1c73bc=_0x1e4cc4;this[_0x1c73bc(0x167)][_0x1c73bc(0x1da)](_0x1c73bc(0x186));const _0x11c68d=new Map(),_0x21ed69=this[_0x1c73bc(0x155)]=new _0x3319de[(_0x1c73bc(0x216))]();_0x21ed69['add'](_0x3319de['toDisposable'](()=>{var _0x2f162b=_0x1c73bc;_0x11c68d[_0x2f162b(0x1ab)](_0x5b05e7=>_0x5b05e7['complete']()),_0x11c68d[_0x2f162b(0x170)]();})),_0x21ed69[_0x1c73bc(0x1a7)](this['_commandService'][_0x1c73bc(0x1ae)](_0x19ca6a=>{var _0x5dd8d2=_0x1c73bc,_0x58e5c8;if(_0x19ca6a[_0x5dd8d2(0x196)]!==_0x3319de[_0x5dd8d2(0x22f)]['OPERATION']||!this[_0x5dd8d2(0x191)]['shouldShareOperation'](_0x19ca6a['id']))return;const {id:_0x4a9772}=_0x19ca6a;let _0x351f16;_0x11c68d['has'](_0x4a9772)?_0x351f16=_0x11c68d[_0x5dd8d2(0x142)](_0x4a9772):(_0x351f16=new _0x329f62[(_0x5dd8d2(0x184))](),_0x11c68d[_0x5dd8d2(0x1e3)](_0x4a9772,_0x351f16),_0x351f16['pipe'](_0x2c00c2[_0x5dd8d2(0x1c7)]((_0x58e5c8=this['_configService'][_0x5dd8d2(0x165)](_0x1746b6))!=null?_0x58e5c8:_0x2e76db,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5dd8d2(0x19b)](_0x52b8b6=>{var _0x1ca3d5=_0x5dd8d2;this[_0x1ca3d5(0x153)]['send']({'eventID':_0x4ef0ff[_0x1ca3d5(0x1e7)][_0x1ca3d5(0x176)],'data':{'unitID':this[_0x1ca3d5(0x20c)],'operations':{[_0x52b8b6['id']]:{'id':_0x52b8b6['id'],'params':JSON[_0x1ca3d5(0x147)](_0x52b8b6[_0x1ca3d5(0x1ba)])}}}},this[_0x1ca3d5(0x20c)]);})),_0x351f16['next'](_0x19ca6a);})),this[_0x1c73bc(0x191)]['getInitialStates'](this[_0x1c73bc(0x20c)])[_0x1c73bc(0x1ab)](_0x17082a=>this[_0x1c73bc(0x153)]['send']({'eventID':_0x4ef0ff[_0x1c73bc(0x1e7)][_0x1c73bc(0x176)],'data':{'unitID':this['_unitID'],'operations':{[_0x17082a['id']]:{'id':_0x17082a['id'],'params':JSON[_0x1c73bc(0x147)](_0x17082a['params'])}}}},this['_unitID']));}[_0x1e4cc4(0x219)](){var _0xb73096=_0x1e4cc4,_0x17ef70;this['_status$'][_0xb73096(0x1da)](_0xb73096(0x204)),(_0x17ef70=this[_0xb73096(0x155)])==null||_0x17ef70[_0xb73096(0x182)](),this[_0xb73096(0x155)]=null;}['_startFollowing'](){var _0x445a51=_0x1e4cc4,_0x4391b9;(_0x4391b9=this['_commandDisposable'])==null||_0x4391b9['dispose'](),this[_0x445a51(0x167)][_0x445a51(0x1da)]('following');}[_0x1e4cc4(0x223)](){var _0xf73c91=_0x1e4cc4,_0x5bae35;this[_0xf73c91(0x167)][_0xf73c91(0x1da)](_0xf73c91(0x204)),(_0x5bae35=this[_0xf73c91(0x155)])==null||_0x5bae35[_0xf73c91(0x182)](),this[_0xf73c91(0x155)]=null;}['_stopFollowing'](){var _0x4b6395=_0x1e4cc4,_0x53a4af;this[_0x4b6395(0x167)][_0x4b6395(0x1da)]('not-following'),(_0x53a4af=this[_0x4b6395(0x155)])==null||_0x53a4af[_0x4b6395(0x182)]();}[_0x1e4cc4(0x222)](_0x6c153d){var _0x83308c=_0x1e4cc4;if([_0x83308c(0x186),'not-following',_0x83308c(0x200)][_0x83308c(0x13d)](this[_0x83308c(0x226)])||!_0x6c153d[_0x83308c(0x1e4)][_0x83308c(0x16b)]||_0x6c153d[_0x83308c(0x1e4)][_0x83308c(0x16b)]===this[_0x83308c(0x153)][_0x83308c(0x189)]())return;this[_0x83308c(0x226)]===_0x83308c(0x204)&&this[_0x83308c(0x20f)]();const _0x29b31a=_0x6c153d[_0x83308c(0x1e4)]['operations'];Object[_0x83308c(0x225)](_0x29b31a)[_0x83308c(0x1ab)](_0x18a9a2=>{var _0x3f1aa6=_0x83308c;this[_0x3f1aa6(0x1a8)][_0x3f1aa6(0x230)](_0x18a9a2['id'],_0x18a9a2[_0x3f1aa6(0x1ba)]?JSON[_0x3f1aa6(0x19c)](_0x18a9a2[_0x3f1aa6(0x1ba)]):null,{'fromCollab':!0x0});});}[_0x1e4cc4(0x1bc)](){var _0x2833ec=_0x1e4cc4,_0x28b487;this[_0x2833ec(0x167)]['next']('offline'),(_0x28b487=this['_commandDisposable'])==null||_0x28b487['dispose']();}['_handleOnline'](){var _0x57f684=_0x1e4cc4;this[_0x57f684(0x167)][_0x57f684(0x1da)](_0x57f684(0x204)),this[_0x57f684(0x233)]();}},_0x14ce0c[_0x1e4cc4(0x205)]=_0x17b7fc([_0x44aa01(0x2,_0x3319de['IConfigService']),_0x44aa01(0x3,_0x3319de['Inject'](_0x30d7e)),_0x44aa01(0x4,_0x3319de[_0x1e4cc4(0x1e6)])],_0x14ce0c['LiveShareCoordinator']);function _0x31fd07(){var _0x5d8684=_0x1e4cc4;const _0xe69247=_0x280145['useDependency'](_0x14ce0c[_0x5d8684(0x1b8)]),_0x2358c4=_0x280145[_0x5d8684(0x15c)](_0x3319de['IUniverInstanceService']),_0x4a5f04=_0x280145[_0x5d8684(0x1fb)](()=>_0x2358c4[_0x5d8684(0x178)](_0x3319de[_0x5d8684(0x1c2)][_0x5d8684(0x14f)]),void 0x0,!0x1,[]),[_0x24e572,_0x586542]=_0x29f590[_0x5d8684(0x1d8)](null),[_0xcef02f,_0x4c9343]=_0x29f590[_0x5d8684(0x1d8)](_0x43c5d5[_0x5d8684(0x190)]),_0x292647=_0x29f590[_0x5d8684(0x16e)](null);return _0x29f590[_0x5d8684(0x14a)](()=>(_0x4a5f04&&_0xe69247[_0x5d8684(0x169)](_0x4a5f04[_0x5d8684(0x193)]())['then'](_0x471c85=>{var _0x4885ef=_0x5d8684;_0x586542(_0x471c85),_0x292647['current']=_0x471c85[_0x4885ef(0x1f7)]['subscribe'](_0x3ed3fd=>{_0x4c9343(_0x3ed3fd);});}),()=>{var _0x580920=_0x5d8684,_0x5c4179;(_0x5c4179=_0x292647[_0x580920(0x19a)])==null||_0x5c4179[_0x580920(0x1a9)](),_0x292647[_0x580920(0x19a)]=null;}),[_0x4a5f04,_0xe69247]),_0x24e572?_0x2f2eab[_0x5d8684(0x1ca)](_0x40a477[_0x5d8684(0x1c5)],{'align':_0x5d8684(0x21e),'disabled':_0xcef02f===_0x43c5d5[_0x5d8684(0x158)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x2f2eab[_0x5d8684(0x1ca)](_0x181d41,{'status':_0xcef02f,'coordinator':_0x24e572}),'children':_0x2f2eab[_0x5d8684(0x1ca)](_0x5d8684(0x1f1),{'className':_0x40a477['clsx']('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0xcef02f===_0x43c5d5[_0x5d8684(0x158)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xcef02f!==_0x43c5d5['OFFLINE']}),'type':_0x5d8684(0x1f1),'children':_0x2f2eab[_0x5d8684(0x1ca)](_0x22d10d,{'className':_0x5d8684(0x1db)})})}):null;}function _0x181d41(_0x51ed19){var _0x5c0f73=_0x1e4cc4;const {status:_0x17c4a3,coordinator:_0x29ae3a}=_0x51ed19;switch(_0x17c4a3){case _0x43c5d5[_0x5c0f73(0x190)]:return _0x2f2eab['jsx'](_0x4af0bf,{'coordinator':_0x29ae3a});case _0x43c5d5[_0x5c0f73(0x1f9)]:return _0x2f2eab['jsx'](_0xd4d8eb,{'coordinator':_0x29ae3a});case _0x43c5d5[_0x5c0f73(0x151)]:return _0x2f2eab[_0x5c0f73(0x1ca)](_0x164438,{'coordinator':_0x29ae3a});case _0x43c5d5['OFFLINE']:return _0x2f2eab[_0x5c0f73(0x1ca)](_0x111911,{});case _0x43c5d5[_0x5c0f73(0x1b4)]:return _0x2f2eab[_0x5c0f73(0x1ca)](_0x330ce4,{'coordinator':_0x29ae3a});default:return null;}}function _0x4af0bf(_0x571254){var _0x4c78cb=_0x1e4cc4;const {coordinator:_0x7cfda5}=_0x571254;return _0x2f2eab[_0x4c78cb(0x1fa)](_0x2f2eab[_0x4c78cb(0x166)],{'children':[_0x2f2eab[_0x4c78cb(0x1ca)](_0x4c78cb(0x1d3),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4c78cb(0x156)}),_0x2f2eab[_0x4c78cb(0x1ca)](_0x40a477[_0x4c78cb(0x180)],{'onClick':()=>_0x7cfda5['tryStartPresenting'](),'children':_0x4c78cb(0x199)})]});}function _0xd4d8eb(_0x859873){var _0x446036=_0x1e4cc4;const {coordinator:_0x4f0788}=_0x859873;return _0x2f2eab[_0x446036(0x1fa)](_0x2f2eab[_0x446036(0x166)],{'children':[_0x2f2eab[_0x446036(0x1ca)]('div',{'className':_0x446036(0x1bf),'children':_0x446036(0x17c)}),_0x2f2eab[_0x446036(0x1ca)](_0x40a477[_0x446036(0x180)],{'onClick':()=>_0x4f0788[_0x446036(0x160)](),'children':_0x446036(0x159)})]});}function _0x164438(_0x5e70a5){var _0x10c6d1=_0x1e4cc4;const {coordinator:_0x363a13}=_0x5e70a5;return _0x2f2eab[_0x10c6d1(0x1fa)](_0x2f2eab[_0x10c6d1(0x166)],{'children':[_0x2f2eab[_0x10c6d1(0x1ca)]('div',{'className':_0x10c6d1(0x1bf),'children':_0x10c6d1(0x1df)}),_0x2f2eab[_0x10c6d1(0x1ca)](_0x40a477['Button'],{'variant':'text','onClick':()=>_0x363a13[_0x10c6d1(0x161)](),'children':_0x10c6d1(0x19f)})]});}function _0x330ce4(_0x47d1c2){var _0x4d1e17=_0x1e4cc4;const {coordinator:_0x3bb74d}=_0x47d1c2;return _0x2f2eab['jsxs'](_0x2f2eab[_0x4d1e17(0x166)],{'children':[_0x2f2eab[_0x4d1e17(0x1ca)](_0x4d1e17(0x1d3),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4d1e17(0x1a2)}),_0x2f2eab[_0x4d1e17(0x1ca)](_0x40a477[_0x4d1e17(0x180)],{'variant':'default','onClick':()=>_0x3bb74d[_0x4d1e17(0x1de)](),'children':_0x4d1e17(0x185)})]});}function _0x111911(){var _0x87304=_0x1e4cc4;return _0x2f2eab[_0x87304(0x1ca)](_0x2f2eab[_0x87304(0x166)],{'children':_0x87304(0x1e9)});}var _0x511c4f=Object[_0x1e4cc4(0x1a5)],_0x24c7f9=(_0x2c1333,_0x334b92,_0x2a2f7c,_0x59ca2b)=>{for(var _0xa6e93b=_0x59ca2b>0x1?void 0x0:_0x59ca2b?_0x511c4f(_0x334b92,_0x2a2f7c):_0x334b92,_0x5e061a=_0x2c1333['length']-0x1,_0x254247;_0x5e061a>=0x0;_0x5e061a--)(_0x254247=_0x2c1333[_0x5e061a])&&(_0xa6e93b=_0x254247(_0xa6e93b)||_0xa6e93b);return _0xa6e93b;},_0x353bb7=(_0x59cd86,_0x15c68c)=>(_0x146459,_0x2bd834)=>_0x15c68c(_0x146459,_0x2bd834,_0x59cd86);_0x14ce0c[_0x1e4cc4(0x17f)]=class extends _0x3319de['Disposable']{constructor(_0x4986c6,_0x4f3812){var _0x47680a=_0x1e4cc4;super(),this[_0x47680a(0x1bd)]=_0x4986c6,this[_0x47680a(0x18f)]=_0x4f3812,this[_0x47680a(0x206)]();}[_0x1e4cc4(0x206)](){var _0x2067d3=_0x1e4cc4;this[_0x2067d3(0x13e)](this[_0x2067d3(0x18f)][_0x2067d3(0x22d)](_0x280145['BuiltInUIPart'][_0x2067d3(0x22b)],()=>_0x280145[_0x2067d3(0x17d)](_0x31fd07,this[_0x2067d3(0x1bd)])));}},_0x14ce0c[_0x1e4cc4(0x17f)]=_0x24c7f9([_0x353bb7(0x0,_0x3319de['Inject'](_0x3319de[_0x1e4cc4(0x183)])),_0x353bb7(0x1,_0x280145['IUIPartsService'])],_0x14ce0c[_0x1e4cc4(0x17f)]);var _0xbece55=Object['defineProperty'],_0x4df671=Object[_0x1e4cc4(0x1a5)],_0x56f854=(_0x199f4d,_0x24b5c6,_0x59e721)=>_0x24b5c6 in _0x199f4d?_0xbece55(_0x199f4d,_0x24b5c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59e721}):_0x199f4d[_0x24b5c6]=_0x59e721,_0x4490fd=(_0x46e2d9,_0x3b702c,_0x16ee60,_0x3d2ccf)=>{for(var _0x4d4536=_0x3d2ccf>0x1?void 0x0:_0x3d2ccf?_0x4df671(_0x3b702c,_0x16ee60):_0x3b702c,_0x20330d=_0x46e2d9['length']-0x1,_0x4cdf91;_0x20330d>=0x0;_0x20330d--)(_0x4cdf91=_0x46e2d9[_0x20330d])&&(_0x4d4536=_0x4cdf91(_0x4d4536)||_0x4d4536);return _0x4d4536;},_0x414a38=(_0x26dfe0,_0x1aaded)=>(_0x35b9c3,_0x44eb8e)=>_0x1aaded(_0x35b9c3,_0x44eb8e,_0x26dfe0),_0x5e208f=(_0x2d7634,_0x355466,_0x46d3da)=>_0x56f854(_0x2d7634,typeof _0x355466!=_0x1e4cc4(0x1cc)?_0x355466+'':_0x355466,_0x46d3da);const _0x311329=_0x1e4cc4(0x198);_0x14ce0c[_0x1e4cc4(0x1ff)]=class extends _0x3319de[_0x1e4cc4(0x173)]{constructor(_0x37f86f=_0x3a3b46,_0x316ee7,_0x4795f4){var _0x147430=_0x1e4cc4;super(),this['_config']=_0x37f86f,this[_0x147430(0x1bd)]=_0x316ee7,this[_0x147430(0x146)]=_0x4795f4;const {..._0x3a737e}=_0x3319de['merge']({},_0x3a3b46,this[_0x147430(0x217)]);this['_configService']['setConfig'](_0x35cf2c,_0x3a737e);}[_0x1e4cc4(0x215)](){var _0x39f380=_0x1e4cc4;_0x3319de[_0x39f380(0x1c4)](this[_0x39f380(0x1bd)],_0x3319de[_0x39f380(0x228)]([[_0x30d7e],[_0x14ce0c['LiveShareController']],[_0x52874e],[_0x14ce0c[_0x39f380(0x17f)]]],this['_config'][_0x39f380(0x1e5)])),_0x3319de['touchDependencies'](this[_0x39f380(0x1bd)],[[_0x52874e]]);}['onRendered'](){var _0x32cb8a=_0x1e4cc4;_0x3319de[_0x32cb8a(0x188)](this['_injector'],[[_0x14ce0c[_0x32cb8a(0x17f)]]]);}},_0x5e208f(_0x14ce0c[_0x1e4cc4(0x1ff)],_0x1e4cc4(0x196),_0x3319de[_0x1e4cc4(0x1c2)]['UNIVER_UNKNOWN']),_0x5e208f(_0x14ce0c[_0x1e4cc4(0x1ff)],_0x1e4cc4(0x18d),_0x311329),_0x14ce0c[_0x1e4cc4(0x1ff)]=_0x4490fd([_0x3319de[_0x1e4cc4(0x232)](_0x16afe0[_0x1e4cc4(0x1f2)]),_0x414a38(0x1,_0x3319de[_0x1e4cc4(0x218)](_0x3319de[_0x1e4cc4(0x183)])),_0x414a38(0x2,_0x3319de[_0x1e4cc4(0x19d)])],_0x14ce0c[_0x1e4cc4(0x1ff)]),_0x14ce0c[_0x1e4cc4(0x210)]=_0x31fd07,_0x14ce0c[_0x1e4cc4(0x1d6)]=_0x30d7e,_0x14ce0c[_0x1e4cc4(0x227)]=_0x43c5d5,Object[_0x1e4cc4(0x14e)](_0x14ce0c,Symbol[_0x1e4cc4(0x1b1)],{'value':_0x1e4cc4(0x141)});}));
1
+ function _0x5012(){var _0x437738=['NOT_FOLLOWING','InsertSheetMutation','attrs','_handleOffline','extend','indexOf','button','2495895cRRadK','exports','useEffect','_liveShareService','getOwnPropertySymbols','735301fnHQcr','then','LiveShareCoordinator','object','sessionStatus$','presenter','2740316kwuoZJ','Plugin','LIVESHARE_OPERATION','tryStartPresenting','_beIdle','rxjs/operators','registerComponent','@univerjs/ui','getValue','toStringTag','_handleNewHost','UniverCore','React','_config','disposeWithMe','fill','not-following','presenting','4356171ZVVjcE','apply','merge','currentColor','add','_injector','UniverProCollaboration','override','memberID','hasOwnProperty','string','mergeOverrideWithDependencies','CommandType','295866rEbpNB','type','following','mask','_stopPresenting','unsubscribe','_univerInstanceService','registerSharedOperation','1em','subscribe','_commandDisposable','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20not\x20following\x20the\x20presenter','CollaborationSessionService','IUniverInstanceService','length','DependentOn','url(#$1','onCommandExecuted','_startFollowing','Dropdown','use','getMemberID','_unitID','toDisposable','@univerjs-pro/collaboration-client','SAME_OPERATION_SHARE_INTERVAL','call','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','SessionStatus','univer-w-full\x20univer-mb-3\x20univer-text-sm','useState','SetScrollOperation','propertyIsEnumerable','send','_startLiveShareCoordinator','getConfig','toString','DisposableCollection','xlink:href','Stop\x20following','registerDependencies','asObservable','rxjs','set','_stopFollowing','find','replace','stringify','_handleTerminate','includes','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','Injector','Start\x20following','children','map','_handleOperation','http://www.w3.org/2000/svg','complete','OFFLINE','OPERATION','createInstance','jsx','_sharedOperations','LIVESHARE_TERMINATE','Stop\x20presenting','end','UniverLiveSharePlugin','forEach','from','UniverSheets','symbol','div','className','LiveShareController','operators','_fetchOperations','_reporters','_collabSessionService','getCurrentTypeOfUnit$','DesktopLiveShareController','defIds','svg','SetWorksheetActiveOperation','params','colorChannel1','connectInjector','331576GDuJuJ','LIVESHARE_FETCH_OPERATIONS','@univerjs/sheets-ui','has','data','PRESENTING','_mountLiveShare','@univerjs/sheets','unitId','Start','defs','5607966YhACUc','IUIPartsService','HEADER_MENU','none','UniverDesign','Present\x20this\x20document','forwardRef','univer-size-4','pipe','event$','touchDependencies','displayName','UNIVER_LIVE_SHARE_PLUGIN','useRef','UniverInstanceType','_handleNewChangeSets','UniverProCollaborationClient','_status','getOwnPropertyDescriptor','mutations','@univerjs/design','startFollowing','substring','BehaviorSubject','sheet','_collabSession','_startPresenting','prototype','requireSession','jsxs','executeCommand','createElement','react/jsx-runtime','Disposable','_commandService','defineProperty','@univerjs-pro/collaboration','assign','function','IDLE','idle','LiveShare','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','default','tag','clear','get','onStarting','Module','dispose','_entities','next','getUnitId','entries','LIVESHARE_NEW_HOST','3tXMGUR','trim','_status$','text','throttleTime','init','concat','dispose$','RxDisposable','Fragment','UNIVER_UNKNOWN','useObservable','_init','FOLLOWING','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','evenodd','Inject','UNIVER_SHEET','_uiPartsService','getInitialStates','registerInitialStateReporter','ONLINE','react','idSuffix','delete','8OFYskt','parseProtocolChangeset','ICommandService','NEW_CHANGESETS','clsx','Button','setConfig','LiveShareStatus','takeUntil','_configService','@univerjs/core','pluginName','stopFollowing','current','_handleOnline','getLiveShareCoordinator','CollaborationEvent','offline','_presenter'];_0x5012=function(){return _0x437738;};return _0x5012();}function _0x84c6(_0x102afc,_0x29af03){var _0x50123e=_0x5012();return _0x84c6=function(_0x84c6f4,_0x4a3fcc){_0x84c6f4=_0x84c6f4-0x124;var _0x4ff4ea=_0x50123e[_0x84c6f4];return _0x4ff4ea;},_0x84c6(_0x102afc,_0x29af03);}(function(_0x4c18fa,_0x2a6e67){var _0x33c5e3=_0x84c6,_0x29dca1=_0x4c18fa();while(!![]){try{var _0x5bee63=parseInt(_0x33c5e3(0x157))/0x1+parseInt(_0x33c5e3(0x17c))/0x2+-parseInt(_0x33c5e3(0x216))/0x3*(-parseInt(_0x33c5e3(0x15d))/0x4)+parseInt(_0x33c5e3(0x152))/0x5+-parseInt(_0x33c5e3(0x1df))/0x6+-parseInt(_0x33c5e3(0x1d4))/0x7+parseInt(_0x33c5e3(0x138))/0x8*(-parseInt(_0x33c5e3(0x16f))/0x9);if(_0x5bee63===_0x2a6e67)break;else _0x29dca1['push'](_0x29dca1['shift']());}catch(_0x5078a7){_0x29dca1['push'](_0x29dca1['shift']());}}}(_0x5012,0x92d64),function(_0x4d2206,_0x429004){var _0x113600=_0x84c6;typeof exports==_0x113600(0x15a)&&typeof module<'u'?_0x429004(exports,require(_0x113600(0x195)),require('@univerjs/core'),require(_0x113600(0x1db)),require(_0x113600(0x1d6)),require(_0x113600(0x164)),require(_0x113600(0x1ff)),require(_0x113600(0x1f3)),require(_0x113600(0x135)),require(_0x113600(0x203)),require(_0x113600(0x1a7)),require(_0x113600(0x162))):typeof define==_0x113600(0x205)&&define['amd']?define([_0x113600(0x153),'@univerjs-pro/collaboration-client',_0x113600(0x142),_0x113600(0x1db),'@univerjs/sheets-ui',_0x113600(0x164),_0x113600(0x1ff),_0x113600(0x1f3),'react',_0x113600(0x203),'rxjs',_0x113600(0x162)],_0x429004):(_0x4d2206=typeof globalThis<'u'?globalThis:_0x4d2206||self,_0x429004(_0x4d2206['UniverProLiveShare']={},_0x4d2206[_0x113600(0x1ef)],_0x4d2206[_0x113600(0x168)],_0x4d2206[_0x113600(0x1c3)],_0x4d2206['UniverSheetsUi'],_0x4d2206['UniverUi'],_0x4d2206[_0x113600(0x169)],_0x4d2206[_0x113600(0x1e3)],_0x4d2206[_0x113600(0x169)],_0x4d2206[_0x113600(0x175)],_0x4d2206[_0x113600(0x1a7)],_0x4d2206['rxjs'][_0x113600(0x1c8)]));}(this,function(_0x25da99,_0x3291c1,_0x22e122,_0x2f8121,_0x8ead9d,_0x11c135,_0x476c41,_0x4599e2,_0x2fe0dd,_0x52033d,_0x364106,_0xcdc2c2){'use strict';var _0x339427=_0x84c6;var _0x199ef8=Object[_0x339427(0x202)],_0x4f74ef=(_0x2e4262,_0xe8c562,_0x5bfd0f)=>_0xe8c562 in _0x2e4262?_0x199ef8(_0x2e4262,_0xe8c562,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bfd0f}):_0x2e4262[_0xe8c562]=_0x5bfd0f,_0x273b05=(_0x1ee1a5,_0xdd7dc0,_0x330266)=>_0x4f74ef(_0x1ee1a5,typeof _0xdd7dc0!='symbol'?_0xdd7dc0+'':_0xdd7dc0,_0x330266);const _0x32f8f0='live-share.config',_0x214776={};class _0x23a349 extends _0x22e122['Disposable']{constructor(){var _0x449c8b=_0x339427;super(...arguments),_0x273b05(this,_0x449c8b(0x1bc),new Set()),_0x273b05(this,'_reporters',new Set());}[_0x339427(0x183)](_0x551143){var _0x1e7044=_0x339427;return this['_sharedOperations'][_0x1e7044(0x173)](_0x551143),_0x22e122[_0x1e7044(0x194)](()=>this[_0x1e7044(0x1bc)]['delete'](_0x551143));}[_0x339427(0x133)](_0x2c0fa3){var _0x43e308=_0x339427;return this['_reporters'][_0x43e308(0x173)](_0x2c0fa3),_0x22e122[_0x43e308(0x194)](()=>this['_reporters'][_0x43e308(0x137)](_0x2c0fa3));}['shouldShareOperation'](_0x332019){return this['_sharedOperations']['has'](_0x332019);}[_0x339427(0x132)](_0x837c02){var _0x4d7cc5=_0x339427;return Array[_0x4d7cc5(0x1c2)](this[_0x4d7cc5(0x1ca)])[_0x4d7cc5(0x1b4)](_0x1f0e0d=>_0x1f0e0d(_0x837c02));}}var _0xea9cb9=Object['getOwnPropertyDescriptor'],_0x52178c=(_0x431640,_0x2cd6a4,_0x35aeae,_0x4ac1ba)=>{for(var _0x322caa=_0x4ac1ba>0x1?void 0x0:_0x4ac1ba?_0xea9cb9(_0x2cd6a4,_0x35aeae):_0x2cd6a4,_0x6b68be=_0x431640['length']-0x1,_0x303ac6;_0x6b68be>=0x0;_0x6b68be--)(_0x303ac6=_0x431640[_0x6b68be])&&(_0x322caa=_0x303ac6(_0x322caa)||_0x322caa);return _0x322caa;},_0x13fbf3=(_0x21b83a,_0x556e7e)=>(_0x49fe7d,_0x38d96d)=>_0x556e7e(_0x49fe7d,_0x38d96d,_0x21b83a);let _0x50ce8a=class extends _0x22e122[_0x339427(0x200)]{constructor(_0x59ed70){var _0x4aec99=_0x339427;super(),this[_0x4aec99(0x155)]=_0x59ed70,this[_0x4aec99(0x12b)]();}[_0x339427(0x12b)](){var _0x1d0347=_0x339427;[_0x8ead9d['SetZoomRatioOperation']['id'],_0x8ead9d[_0x1d0347(0x19c)]['id'],_0x2f8121[_0x1d0347(0x1d0)]['id']][_0x1d0347(0x1c1)](_0x34716f=>{var _0x476d75=_0x1d0347;this[_0x476d75(0x16b)](this['_liveShareService']['registerSharedOperation'](_0x34716f));});}};_0x50ce8a=_0x52178c([_0x13fbf3(0x0,_0x22e122[_0x339427(0x12f)](_0x23a349))],_0x50ce8a);var _0x5c2369=function(){var _0x3dff72=_0x339427;return _0x5c2369=Object[_0x3dff72(0x204)]||function(_0x3790d1){var _0x4802da=_0x3dff72;for(var _0x37ab55,_0x50dff8=0x1,_0x532fab=arguments[_0x4802da(0x18b)];_0x50dff8<_0x532fab;_0x50dff8++){_0x37ab55=arguments[_0x50dff8];for(var _0x556c23 in _0x37ab55)Object['prototype'][_0x4802da(0x178)][_0x4802da(0x197)](_0x37ab55,_0x556c23)&&(_0x3790d1[_0x556c23]=_0x37ab55[_0x556c23]);}return _0x3790d1;},_0x5c2369[_0x3dff72(0x170)](this,arguments);},_0x1de071=function(_0x65796d,_0x4a1a26){var _0x225f36=_0x339427,_0x34c85f={};for(var _0x5d0c52 in _0x65796d)Object[_0x225f36(0x1fa)][_0x225f36(0x178)][_0x225f36(0x197)](_0x65796d,_0x5d0c52)&&_0x4a1a26[_0x225f36(0x150)](_0x5d0c52)<0x0&&(_0x34c85f[_0x5d0c52]=_0x65796d[_0x5d0c52]);if(_0x65796d!=null&&typeof Object[_0x225f36(0x156)]==_0x225f36(0x205)){for(var _0x32e6d6=0x0,_0x5d0c52=Object['getOwnPropertySymbols'](_0x65796d);_0x32e6d6<_0x5d0c52['length'];_0x32e6d6++)_0x4a1a26[_0x225f36(0x150)](_0x5d0c52[_0x32e6d6])<0x0&&Object[_0x225f36(0x1fa)][_0x225f36(0x19d)][_0x225f36(0x197)](_0x65796d,_0x5d0c52[_0x32e6d6])&&(_0x34c85f[_0x5d0c52[_0x32e6d6]]=_0x65796d[_0x5d0c52[_0x32e6d6]]);}return _0x34c85f;},_0x3a7ebe=_0x2fe0dd[_0x339427(0x1e5)](function(_0x36f46f,_0x3c8844){var _0x14ae26=_0x339427,_0x435a8f=_0x36f46f['icon'],_0x42df6e=_0x36f46f['id'],_0x2a27d8=_0x36f46f[_0x14ae26(0x1c6)],_0x5bb8c8=_0x36f46f[_0x14ae26(0x14f)],_0x1e0207=_0x1de071(_0x36f46f,['icon','id',_0x14ae26(0x1c6),_0x14ae26(0x14f)]),_0x1eaf02=_0x14ae26(0x1af)['concat'](_0x42df6e,'\x20')[_0x14ae26(0x125)](_0x2a27d8||'')[_0x14ae26(0x217)](),_0x1c79fc=_0x2fe0dd[_0x14ae26(0x1ec)]('_'[_0x14ae26(0x125)](_0x28d3c3()));return _0x2b5ff2(_0x435a8f,''[_0x14ae26(0x125)](_0x42df6e),{'defIds':_0x435a8f[_0x14ae26(0x1ce)],'idSuffix':_0x1c79fc[_0x14ae26(0x145)]},_0x5c2369({'ref':_0x3c8844,'className':_0x1eaf02},_0x1e0207),_0x5bb8c8);});function _0x2b5ff2(_0x27e833,_0x13258c,_0x3a00e1,_0x146030,_0x4e01a6){var _0x55a7f6=_0x339427;return _0x2fe0dd[_0x55a7f6(0x1fe)](_0x27e833[_0x55a7f6(0x20b)],_0x5c2369(_0x5c2369({'key':_0x13258c},_0x876cfb(_0x27e833,_0x3a00e1,_0x4e01a6)),_0x146030),(_0x4a3231(_0x27e833,_0x3a00e1)[_0x55a7f6(0x1b3)]||[])[_0x55a7f6(0x1b4)](function(_0x1ab95b,_0xa14ad7){var _0x355871=_0x55a7f6;return _0x2b5ff2(_0x1ab95b,''['concat'](_0x13258c,'-')['concat'](_0x27e833[_0x355871(0x20b)],'-')[_0x355871(0x125)](_0xa14ad7),_0x3a00e1,void 0x0,_0x4e01a6);}));}function _0x876cfb(_0x220a03,_0x2b4cfa,_0x578208){var _0x1d373b=_0x339427,_0x20220b=_0x5c2369({},_0x220a03[_0x1d373b(0x14d)]);_0x578208!=null&&_0x578208[_0x1d373b(0x1d2)]&&_0x20220b['fill']===_0x1d373b(0x1d2)&&(_0x20220b[_0x1d373b(0x16c)]=_0x578208[_0x1d373b(0x1d2)]),_0x220a03[_0x1d373b(0x20b)]===_0x1d373b(0x17f)&&_0x20220b['id']&&(_0x20220b['id']=_0x20220b['id']+_0x2b4cfa['idSuffix']),Object['entries'](_0x20220b)[_0x1d373b(0x1c1)](function(_0x5f4dd4){var _0x65827c=_0x1d373b,_0x3bcf10=_0x5f4dd4[0x0],_0x17c946=_0x5f4dd4[0x1];_0x3bcf10===_0x65827c(0x17f)&&typeof _0x17c946==_0x65827c(0x179)&&(_0x20220b[_0x3bcf10]=_0x17c946[_0x65827c(0x1ab)](/url\(#(.*)\)/,_0x65827c(0x18d)[_0x65827c(0x125)](_0x2b4cfa[_0x65827c(0x136)],')')));});var _0x3785aa=_0x2b4cfa[_0x1d373b(0x1ce)];return!_0x3785aa||_0x3785aa[_0x1d373b(0x18b)]===0x0||(_0x220a03[_0x1d373b(0x20b)]===_0x1d373b(0x191)&&_0x20220b[_0x1d373b(0x1a3)]&&(_0x20220b[_0x1d373b(0x1a3)]=_0x20220b[_0x1d373b(0x1a3)]+_0x2b4cfa['idSuffix']),Object[_0x1d373b(0x214)](_0x20220b)[_0x1d373b(0x1c1)](function(_0x5d7bdd){var _0x4205b1=_0x1d373b,_0x2efaf5=_0x5d7bdd[0x0],_0x5eb0c2=_0x5d7bdd[0x1];typeof _0x5eb0c2==_0x4205b1(0x179)&&(_0x20220b[_0x2efaf5]=_0x5eb0c2[_0x4205b1(0x1ab)](/url\(#(.*)\)/,_0x4205b1(0x18d)['concat'](_0x2b4cfa['idSuffix'],')')));})),_0x20220b;}function _0x4a3231(_0x42aeb6,_0x4dde25){var _0x450248=_0x339427,_0x3c3563,_0x3c5976=_0x4dde25['defIds'];return!_0x3c5976||_0x3c5976['length']===0x0?_0x42aeb6:_0x42aeb6[_0x450248(0x20b)]===_0x450248(0x1de)&&(!((_0x3c3563=_0x42aeb6[_0x450248(0x1b3)])===null||_0x3c3563===void 0x0)&&_0x3c3563[_0x450248(0x18b)])?_0x5c2369(_0x5c2369({},_0x42aeb6),{'children':_0x42aeb6['children'][_0x450248(0x1b4)](function(_0x5a8d8c){var _0x44b2c1=_0x450248;return typeof _0x5a8d8c[_0x44b2c1(0x14d)]['id']=='string'&&_0x3c5976&&_0x3c5976[_0x44b2c1(0x1ae)](_0x5a8d8c[_0x44b2c1(0x14d)]['id'])?_0x5c2369(_0x5c2369({},_0x5a8d8c),{'attrs':_0x5c2369(_0x5c2369({},_0x5a8d8c[_0x44b2c1(0x14d)]),{'id':_0x5a8d8c['attrs']['id']+_0x4dde25[_0x44b2c1(0x136)]})}):_0x5a8d8c;})}):_0x42aeb6;}function _0x28d3c3(){var _0x25dcaa=_0x339427;return Math['random']()[_0x25dcaa(0x1a1)](0x24)[_0x25dcaa(0x1f5)](0x2,0x8);}_0x3a7ebe[_0x339427(0x1ea)]='UniverIcon';var _0x5b4bb0={'tag':_0x339427(0x1cf),'attrs':{'xmlns':_0x339427(0x1b6),'fill':_0x339427(0x1e2),'viewBox':'0\x200\x2017\x2017','width':_0x339427(0x184),'height':_0x339427(0x184)},'children':[{'tag':'path','attrs':{'fill':_0x339427(0x172),'d':_0x339427(0x198)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x339427(0x209),'fillRule':_0x339427(0x12e),'clipRule':_0x339427(0x12e)}}]},_0x319ecf=_0x2fe0dd['forwardRef'](function(_0x36dd28,_0x121a12){var _0x37e026=_0x339427;return _0x2fe0dd[_0x37e026(0x1fe)](_0x3a7ebe,Object[_0x37e026(0x204)]({},_0x36dd28,{'id':'live-share-icon','ref':_0x121a12,'icon':_0x5b4bb0}));});_0x319ecf[_0x339427(0x1ea)]='LiveShareIcon';var _0x272381=Object[_0x339427(0x1f1)],_0x2534e0=(_0x453924,_0x223ba3,_0x2fc13c,_0x26ba21)=>{var _0x13d5c7=_0x339427;for(var _0x1bdc83=_0x26ba21>0x1?void 0x0:_0x26ba21?_0x272381(_0x223ba3,_0x2fc13c):_0x223ba3,_0x639a14=_0x453924[_0x13d5c7(0x18b)]-0x1,_0x53f5df;_0x639a14>=0x0;_0x639a14--)(_0x53f5df=_0x453924[_0x639a14])&&(_0x1bdc83=_0x53f5df(_0x1bdc83)||_0x1bdc83);return _0x1bdc83;},_0x398ec7=(_0x454e25,_0x3e894f)=>(_0x3bd52a,_0x1de202)=>_0x3e894f(_0x3bd52a,_0x1de202,_0x454e25);_0x25da99[_0x339427(0x1c7)]=class extends _0x22e122[_0x339427(0x127)]{constructor(_0x5cb677,_0x2453d6,_0x24ec53){var _0x47a369=_0x339427;super(),_0x273b05(this,_0x47a369(0x211),new Map()),(this['_univerInstanceService']=_0x5cb677,this['_injector']=_0x2453d6,this[_0x47a369(0x1cb)]=_0x24ec53,this[_0x47a369(0x12b)]());}async['getLiveShareCoordinator'](_0x3896eb){var _0x49e471=_0x339427;return this[_0x49e471(0x211)][_0x49e471(0x1d7)](_0x3896eb)||await this[_0x49e471(0x19f)](_0x3896eb),this['_entities'][_0x49e471(0x20d)](_0x3896eb);}[_0x339427(0x12b)](){var _0x12a40a=_0x339427;this[_0x12a40a(0x182)]['getTypeOfUnitAdded$'](_0x22e122['UniverInstanceType'][_0x12a40a(0x130)])['pipe'](_0xcdc2c2[_0x12a40a(0x140)](this[_0x12a40a(0x126)]))[_0x12a40a(0x185)](async _0x576cf3=>{var _0x181ad7=_0x12a40a;const _0x42c14d=_0x576cf3[_0x181ad7(0x213)]();this[_0x181ad7(0x211)][_0x181ad7(0x1d7)](_0x42c14d)||this['_startLiveShareCoordinator'](_0x42c14d);}),this[_0x12a40a(0x182)]['getTypeOfUnitDisposed$'](_0x22e122[_0x12a40a(0x1ed)][_0x12a40a(0x130)])[_0x12a40a(0x1e7)](_0xcdc2c2[_0x12a40a(0x140)](this['dispose$']))[_0x12a40a(0x185)](_0x389655=>{var _0x5ee4b4=_0x12a40a;const _0x367ca0=_0x389655[_0x5ee4b4(0x213)](),_0x1e25be=this[_0x5ee4b4(0x211)][_0x5ee4b4(0x20d)](_0x367ca0);_0x1e25be==null||_0x1e25be[_0x5ee4b4(0x210)]();});}async[_0x339427(0x19f)](_0x30c13e){var _0x994c7d=_0x339427;const _0x190f7a=await this[_0x994c7d(0x1cb)][_0x994c7d(0x1fb)](_0x30c13e),_0x48063b=this[_0x994c7d(0x174)][_0x994c7d(0x1ba)](_0x25da99[_0x994c7d(0x159)],_0x30c13e,_0x190f7a);return _0x48063b[_0x994c7d(0x124)](),this[_0x994c7d(0x211)][_0x994c7d(0x1a8)](_0x30c13e,_0x48063b),_0x48063b;}},_0x25da99[_0x339427(0x1c7)]=_0x2534e0([_0x398ec7(0x0,_0x22e122[_0x339427(0x18a)]),_0x398ec7(0x1,_0x22e122['Inject'](_0x22e122['Injector'])),_0x398ec7(0x2,_0x22e122[_0x339427(0x12f)](_0x3291c1[_0x339427(0x189)]))],_0x25da99[_0x339427(0x1c7)]);var _0x5aa815=(_0x385126=>(_0x385126[_0x339427(0x1b8)]=_0x339427(0x149),_0x385126[_0x339427(0x206)]=_0x339427(0x207),_0x385126[_0x339427(0x12c)]=_0x339427(0x17e),_0x385126[_0x339427(0x14b)]=_0x339427(0x16d),_0x385126[_0x339427(0x1d9)]=_0x339427(0x16e),_0x385126))(_0x5aa815||{});const _0x2cd1b1=_0x339427(0x196),_0x14f7d6=0xc8;_0x25da99[_0x339427(0x159)]=class extends _0x22e122['RxDisposable']{constructor(_0x58e5b1,_0x4d2d3b,_0x28dddc,_0x5e85eb,_0x1cf003){var _0x8b1676=_0x339427;super(),_0x273b05(this,_0x8b1676(0x218),new _0x364106[(_0x8b1676(0x1f6))](_0x8b1676(0x207))),_0x273b05(this,'status$',this[_0x8b1676(0x218)][_0x8b1676(0x1a6)]()),_0x273b05(this,_0x8b1676(0x12b),!0x1),_0x273b05(this,'_commandDisposable',null),_0x273b05(this,_0x8b1676(0x14a),null),(this[_0x8b1676(0x193)]=_0x58e5b1,this[_0x8b1676(0x1f8)]=_0x4d2d3b,this[_0x8b1676(0x141)]=_0x28dddc,this['_liveShareService']=_0x5e85eb,this[_0x8b1676(0x201)]=_0x1cf003);}get[_0x339427(0x1f0)](){var _0x2b39fc=_0x339427;return this[_0x2b39fc(0x218)][_0x2b39fc(0x165)]();}[_0x339427(0x210)](){var _0x556332=_0x339427,_0x5eefab;(_0x5eefab=this[_0x556332(0x186)])==null||_0x5eefab[_0x556332(0x210)](),this['_status$'][_0x556332(0x212)](_0x556332(0x207)),this[_0x556332(0x218)][_0x556332(0x1b7)]();}[_0x339427(0x124)](){var _0x1c7e35=_0x339427;this['_init']||(this[_0x1c7e35(0x12b)]=!0x0,this[_0x1c7e35(0x1f8)][_0x1c7e35(0x15b)][_0x1c7e35(0x1e7)](_0xcdc2c2[_0x1c7e35(0x140)](this[_0x1c7e35(0x126)]))[_0x1c7e35(0x185)](_0x57084c=>{var _0x57a491=_0x1c7e35;switch(_0x57084c){case _0x3291c1[_0x57a491(0x199)]['OFFLINE']:this[_0x57a491(0x14e)]();break;case _0x3291c1[_0x57a491(0x199)][_0x57a491(0x134)]:this[_0x57a491(0x146)]();break;}}),this['_collabSession'][_0x1c7e35(0x1e8)][_0x1c7e35(0x1e7)](_0xcdc2c2['takeUntil'](this['dispose$']))[_0x1c7e35(0x185)](_0x54aa00=>{var _0x309963=_0x1c7e35;const {eventID:_0x410fba}=_0x54aa00;switch(_0x410fba){case _0x52033d[_0x309963(0x148)][_0x309963(0x215)]:this[_0x309963(0x167)](_0x54aa00);break;case _0x52033d['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x54aa00);break;case _0x52033d[_0x309963(0x148)][_0x309963(0x1bd)]:this[_0x309963(0x1ad)]();break;case _0x52033d[_0x309963(0x148)][_0x309963(0x13b)]:this[_0x309963(0x1ee)](_0x54aa00);break;}}));}[_0x339427(0x160)](){var _0x5a96d=_0x339427;this[_0x5a96d(0x1f8)][_0x5a96d(0x19e)]({'eventID':_0x52033d[_0x5a96d(0x148)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5a96d(0x193)],'userID':this[_0x5a96d(0x1f8)][_0x5a96d(0x192)]()}},this[_0x5a96d(0x193)]);}['stopPresenting'](){var _0x147003=_0x339427;this[_0x147003(0x1f0)]===_0x147003(0x16e)&&(this[_0x147003(0x218)][_0x147003(0x212)](_0x147003(0x207)),this[_0x147003(0x1f8)]['send']({'eventID':_0x52033d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x147003(0x193)]));}[_0x339427(0x1f4)](){var _0x1dd386=_0x339427;this[_0x1dd386(0x1f0)]==='not-following'&&(this['_status$'][_0x1dd386(0x212)](_0x1dd386(0x17e)),this['_startFollowing']());}[_0x339427(0x144)](){var _0x2ef1e9=_0x339427;this[_0x2ef1e9(0x1f0)]==='following'&&this[_0x2ef1e9(0x1a9)]();}[_0x339427(0x167)](_0xce1bc){var _0x2fe9d1=_0x339427;const {presenter:_0x3127b2}=_0xce1bc[_0x2fe9d1(0x1d8)],_0x441db7=this[_0x2fe9d1(0x1f8)][_0x2fe9d1(0x192)]();this[_0x2fe9d1(0x14a)]=_0x3127b2,_0x3127b2===_0x441db7?(this[_0x2fe9d1(0x1a9)](),this[_0x2fe9d1(0x1f9)]()):this[_0x2fe9d1(0x1f0)]!=='not-following'&&(this[_0x2fe9d1(0x180)](),this[_0x2fe9d1(0x18f)]());}[_0x339427(0x1c9)](){var _0x1fd5fc=_0x339427;const _0x1844ad={'eventID':_0x52033d[_0x1fd5fc(0x148)][_0x1fd5fc(0x1d5)]};this['_collabSession']['send'](_0x1844ad,this['_unitID']);}[_0x339427(0x1ad)](){var _0x2548cc=_0x339427;this[_0x2548cc(0x14a)]=null,this['_status']!==_0x2548cc(0x16e)&&this[_0x2548cc(0x161)]();}[_0x339427(0x1ee)](_0x239098){var _0x5c0210=_0x339427;if(this[_0x5c0210(0x1f0)]===_0x5c0210(0x17e)&&this[_0x5c0210(0x14a)]===_0x239098['data'][_0x5c0210(0x177)]){const _0x27c29b=_0x52033d[_0x5c0210(0x139)](_0x239098['data'])[_0x5c0210(0x1f2)]['reverse']()[_0x5c0210(0x1aa)](_0x73639=>_0x73639['id']===_0x2f8121[_0x5c0210(0x14c)]['id']);if(_0x27c29b){const _0x38df61=_0x27c29b[_0x5c0210(0x1d1)][_0x5c0210(0x1dc)],_0x5ad349=_0x27c29b[_0x5c0210(0x1d1)][_0x5c0210(0x1f7)]['id'];setTimeout(()=>{var _0x3b88b2=_0x5c0210;this[_0x3b88b2(0x201)][_0x3b88b2(0x1fd)](_0x2f8121['SetWorksheetActiveOperation']['id'],{'unitId':_0x38df61,'subUnitId':_0x5ad349},{'fromCollab':!0x0});});}}}[_0x339427(0x1f9)](){var _0x516367=_0x339427;this[_0x516367(0x218)][_0x516367(0x212)]('presenting');const _0x3f27e6=new Map(),_0x53e615=this[_0x516367(0x186)]=new _0x22e122[(_0x516367(0x1a2))]();_0x53e615[_0x516367(0x173)](_0x22e122[_0x516367(0x194)](()=>{var _0xf83175=_0x516367;_0x3f27e6[_0xf83175(0x1c1)](_0x27f2c2=>_0x27f2c2[_0xf83175(0x1b7)]()),_0x3f27e6[_0xf83175(0x20c)]();})),_0x53e615['add'](this['_commandService'][_0x516367(0x18e)](_0x5e71c1=>{var _0x2af6db=_0x516367,_0x5d9c98;if(_0x5e71c1['type']!==_0x22e122[_0x2af6db(0x17b)][_0x2af6db(0x1b9)]||!this[_0x2af6db(0x155)]['shouldShareOperation'](_0x5e71c1['id']))return;const {id:_0x541ed3}=_0x5e71c1;let _0x598913;_0x3f27e6[_0x2af6db(0x1d7)](_0x541ed3)?_0x598913=_0x3f27e6[_0x2af6db(0x20d)](_0x541ed3):(_0x598913=new _0x364106['Subject'](),_0x3f27e6[_0x2af6db(0x1a8)](_0x541ed3,_0x598913),_0x598913[_0x2af6db(0x1e7)](_0xcdc2c2[_0x2af6db(0x21a)]((_0x5d9c98=this[_0x2af6db(0x141)][_0x2af6db(0x1a0)](_0x2cd1b1))!=null?_0x5d9c98:_0x14f7d6,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2af6db(0x185)](_0x54c9c3=>{var _0xd2a34e=_0x2af6db;this[_0xd2a34e(0x1f8)]['send']({'eventID':_0x52033d['CollaborationEvent'][_0xd2a34e(0x15f)],'data':{'unitID':this[_0xd2a34e(0x193)],'operations':{[_0x54c9c3['id']]:{'id':_0x54c9c3['id'],'params':JSON['stringify'](_0x54c9c3[_0xd2a34e(0x1d1)])}}}},this[_0xd2a34e(0x193)]);})),_0x598913[_0x2af6db(0x212)](_0x5e71c1);})),this[_0x516367(0x155)][_0x516367(0x132)](this[_0x516367(0x193)])[_0x516367(0x1c1)](_0x248e80=>this['_collabSession'][_0x516367(0x19e)]({'eventID':_0x52033d['CollaborationEvent'][_0x516367(0x15f)],'data':{'unitID':this['_unitID'],'operations':{[_0x248e80['id']]:{'id':_0x248e80['id'],'params':JSON[_0x516367(0x1ac)](_0x248e80[_0x516367(0x1d1)])}}}},this[_0x516367(0x193)]));}[_0x339427(0x180)](){var _0x5ab83e=_0x339427,_0x13e588;this[_0x5ab83e(0x218)][_0x5ab83e(0x212)]('idle'),(_0x13e588=this['_commandDisposable'])==null||_0x13e588['dispose'](),this[_0x5ab83e(0x186)]=null;}[_0x339427(0x18f)](){var _0x1d830=_0x339427,_0x44589f;(_0x44589f=this[_0x1d830(0x186)])==null||_0x44589f[_0x1d830(0x210)](),this[_0x1d830(0x218)][_0x1d830(0x212)](_0x1d830(0x17e));}[_0x339427(0x161)](){var _0x50eda2=_0x339427,_0x3c5407;this['_status$'][_0x50eda2(0x212)](_0x50eda2(0x207)),(_0x3c5407=this[_0x50eda2(0x186)])==null||_0x3c5407[_0x50eda2(0x210)](),this['_commandDisposable']=null;}[_0x339427(0x1a9)](){var _0x46f6f2=_0x339427,_0x457d01;this[_0x46f6f2(0x218)][_0x46f6f2(0x212)]('not-following'),(_0x457d01=this[_0x46f6f2(0x186)])==null||_0x457d01['dispose']();}[_0x339427(0x1b5)](_0x4d6281){var _0x5e3e7e=_0x339427;if([_0x5e3e7e(0x16e),'not-following',_0x5e3e7e(0x149)]['includes'](this[_0x5e3e7e(0x1f0)])||!_0x4d6281[_0x5e3e7e(0x1d8)][_0x5e3e7e(0x15c)]||_0x4d6281[_0x5e3e7e(0x1d8)]['presenter']===this[_0x5e3e7e(0x1f8)]['getMemberID']())return;this[_0x5e3e7e(0x1f0)]===_0x5e3e7e(0x207)&&this[_0x5e3e7e(0x18f)]();const _0x54ab20=_0x4d6281[_0x5e3e7e(0x1d8)]['operations'];Object['values'](_0x54ab20)['forEach'](_0x48e627=>{var _0xfb1eaf=_0x5e3e7e;this[_0xfb1eaf(0x201)]['executeCommand'](_0x48e627['id'],_0x48e627[_0xfb1eaf(0x1d1)]?JSON['parse'](_0x48e627['params']):null,{'fromCollab':!0x0});});}[_0x339427(0x14e)](){var _0x1bc55a=_0x339427,_0x308f29;this['_status$']['next']('offline'),(_0x308f29=this['_commandDisposable'])==null||_0x308f29[_0x1bc55a(0x210)]();}[_0x339427(0x146)](){var _0x2e7dc9=_0x339427;this[_0x2e7dc9(0x218)][_0x2e7dc9(0x212)](_0x2e7dc9(0x207)),this[_0x2e7dc9(0x1c9)]();}},_0x25da99[_0x339427(0x159)]=_0x2534e0([_0x398ec7(0x2,_0x22e122['IConfigService']),_0x398ec7(0x3,_0x22e122[_0x339427(0x12f)](_0x23a349)),_0x398ec7(0x4,_0x22e122[_0x339427(0x13a)])],_0x25da99['LiveShareCoordinator']);function _0x2bbd3d(){var _0x334050=_0x339427;const _0x2d4362=_0x11c135['useDependency'](_0x25da99[_0x334050(0x1c7)]),_0x7d5b20=_0x11c135['useDependency'](_0x22e122[_0x334050(0x18a)]),_0xde04fd=_0x11c135[_0x334050(0x12a)](()=>_0x7d5b20[_0x334050(0x1cc)](_0x22e122[_0x334050(0x1ed)][_0x334050(0x130)]),void 0x0,!0x1,[]),[_0x3476cb,_0x4e0d26]=_0x2fe0dd[_0x334050(0x19b)](null),[_0x4fabdb,_0x61c32b]=_0x2fe0dd[_0x334050(0x19b)](_0x5aa815['IDLE']),_0x38f173=_0x2fe0dd[_0x334050(0x1ec)](null);return _0x2fe0dd[_0x334050(0x154)](()=>(_0xde04fd&&_0x2d4362[_0x334050(0x147)](_0xde04fd[_0x334050(0x213)]())[_0x334050(0x158)](_0x1276e9=>{var _0x5a7327=_0x334050;_0x4e0d26(_0x1276e9),_0x38f173[_0x5a7327(0x145)]=_0x1276e9['status$'][_0x5a7327(0x185)](_0x1d4020=>{_0x61c32b(_0x1d4020);});}),()=>{var _0x30c22c=_0x334050,_0x178305;(_0x178305=_0x38f173[_0x30c22c(0x145)])==null||_0x178305[_0x30c22c(0x181)](),_0x38f173['current']=null;}),[_0xde04fd,_0x2d4362]),_0x3476cb?_0x476c41['jsx'](_0x4599e2[_0x334050(0x190)],{'align':_0x334050(0x1bf),'disabled':_0x4fabdb===_0x5aa815['OFFLINE'],'className':_0x334050(0x12d),'overlay':_0x476c41[_0x334050(0x1bb)](_0x5f401b,{'status':_0x4fabdb,'coordinator':_0x3476cb}),'children':_0x476c41[_0x334050(0x1bb)]('button',{'className':_0x4599e2[_0x334050(0x13c)](_0x334050(0x187),{'univer-cursor-not-allowed':_0x4fabdb===_0x5aa815[_0x334050(0x1b8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4fabdb!==_0x5aa815[_0x334050(0x1b8)]}),'type':_0x334050(0x151),'children':_0x476c41[_0x334050(0x1bb)](_0x319ecf,{'className':_0x334050(0x1e6)})})}):null;}function _0x5f401b(_0x29ca50){var _0x49db32=_0x339427;const {status:_0x501b07,coordinator:_0x4a94de}=_0x29ca50;switch(_0x501b07){case _0x5aa815[_0x49db32(0x206)]:return _0x476c41[_0x49db32(0x1bb)](_0x16f773,{'coordinator':_0x4a94de});case _0x5aa815['FOLLOWING']:return _0x476c41[_0x49db32(0x1bb)](_0xda0438,{'coordinator':_0x4a94de});case _0x5aa815[_0x49db32(0x14b)]:return _0x476c41[_0x49db32(0x1bb)](_0x2dadd7,{'coordinator':_0x4a94de});case _0x5aa815['OFFLINE']:return _0x476c41[_0x49db32(0x1bb)](_0x54b29d,{});case _0x5aa815[_0x49db32(0x1d9)]:return _0x476c41[_0x49db32(0x1bb)](_0xc25abc,{'coordinator':_0x4a94de});default:return null;}}function _0x16f773(_0x36b045){var _0x23827b=_0x339427;const {coordinator:_0x2bb58c}=_0x36b045;return _0x476c41[_0x23827b(0x1fc)](_0x476c41[_0x23827b(0x128)],{'children':[_0x476c41[_0x23827b(0x1bb)](_0x23827b(0x1c5),{'className':_0x23827b(0x19a),'children':_0x23827b(0x1e4)}),_0x476c41[_0x23827b(0x1bb)](_0x4599e2[_0x23827b(0x13d)],{'onClick':()=>_0x2bb58c[_0x23827b(0x160)](),'children':_0x23827b(0x1dd)})]});}function _0xda0438(_0x26797d){var _0x13ef3b=_0x339427;const {coordinator:_0x2e9e7f}=_0x26797d;return _0x476c41[_0x13ef3b(0x1fc)](_0x476c41['Fragment'],{'children':[_0x476c41[_0x13ef3b(0x1bb)](_0x13ef3b(0x1c5),{'className':_0x13ef3b(0x19a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x476c41[_0x13ef3b(0x1bb)](_0x4599e2[_0x13ef3b(0x13d)],{'onClick':()=>_0x2e9e7f['stopFollowing'](),'children':_0x13ef3b(0x1a4)})]});}function _0x2dadd7(_0xef48ec){var _0x548bf8=_0x339427;const {coordinator:_0xfd4b80}=_0xef48ec;return _0x476c41[_0x548bf8(0x1fc)](_0x476c41['Fragment'],{'children':[_0x476c41[_0x548bf8(0x1bb)](_0x548bf8(0x1c5),{'className':_0x548bf8(0x19a),'children':_0x548bf8(0x188)}),_0x476c41[_0x548bf8(0x1bb)](_0x4599e2[_0x548bf8(0x13d)],{'variant':_0x548bf8(0x219),'onClick':()=>_0xfd4b80[_0x548bf8(0x1f4)](),'children':_0x548bf8(0x1b2)})]});}function _0xc25abc(_0x4e1a5d){var _0x3a595e=_0x339427;const {coordinator:_0x29c9b4}=_0x4e1a5d;return _0x476c41[_0x3a595e(0x1fc)](_0x476c41[_0x3a595e(0x128)],{'children':[_0x476c41[_0x3a595e(0x1bb)](_0x3a595e(0x1c5),{'className':_0x3a595e(0x19a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x476c41['jsx'](_0x4599e2[_0x3a595e(0x13d)],{'variant':_0x3a595e(0x20a),'onClick':()=>_0x29c9b4['stopPresenting'](),'children':_0x3a595e(0x1be)})]});}function _0x54b29d(){var _0x58d9e7=_0x339427;return _0x476c41['jsx'](_0x476c41[_0x58d9e7(0x128)],{'children':_0x58d9e7(0x1b0)});}var _0x96436a=Object['getOwnPropertyDescriptor'],_0x2db918=(_0x49b33f,_0x13c0e7,_0x2f0421,_0x197b13)=>{var _0x48095e=_0x339427;for(var _0x3d6c63=_0x197b13>0x1?void 0x0:_0x197b13?_0x96436a(_0x13c0e7,_0x2f0421):_0x13c0e7,_0x578115=_0x49b33f[_0x48095e(0x18b)]-0x1,_0x4825b1;_0x578115>=0x0;_0x578115--)(_0x4825b1=_0x49b33f[_0x578115])&&(_0x3d6c63=_0x4825b1(_0x3d6c63)||_0x3d6c63);return _0x3d6c63;},_0x4d1e7c=(_0x3e3778,_0x310dae)=>(_0x59e772,_0x4066e2)=>_0x310dae(_0x59e772,_0x4066e2,_0x3e3778);_0x25da99[_0x339427(0x1cd)]=class extends _0x22e122[_0x339427(0x200)]{constructor(_0xc1584f,_0x4ec64d){var _0x44393b=_0x339427;super(),this[_0x44393b(0x174)]=_0xc1584f,this[_0x44393b(0x131)]=_0x4ec64d,this[_0x44393b(0x1da)]();}[_0x339427(0x1da)](){var _0x41c737=_0x339427;this[_0x41c737(0x16b)](this[_0x41c737(0x131)][_0x41c737(0x163)](_0x11c135['BuiltInUIPart'][_0x41c737(0x1e1)],()=>_0x11c135[_0x41c737(0x1d3)](_0x2bbd3d,this[_0x41c737(0x174)])));}},_0x25da99[_0x339427(0x1cd)]=_0x2db918([_0x4d1e7c(0x0,_0x22e122['Inject'](_0x22e122['Injector'])),_0x4d1e7c(0x1,_0x11c135[_0x339427(0x1e0)])],_0x25da99[_0x339427(0x1cd)]);var _0x47c9d0=Object[_0x339427(0x202)],_0x51257f=Object[_0x339427(0x1f1)],_0x59e5e3=(_0x528874,_0x290d21,_0x490a63)=>_0x290d21 in _0x528874?_0x47c9d0(_0x528874,_0x290d21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x490a63}):_0x528874[_0x290d21]=_0x490a63,_0x4d051c=(_0x3ed170,_0x156be6,_0x10a9a7,_0x4c61ee)=>{for(var _0x434170=_0x4c61ee>0x1?void 0x0:_0x4c61ee?_0x51257f(_0x156be6,_0x10a9a7):_0x156be6,_0x5255de=_0x3ed170['length']-0x1,_0xc5c5a1;_0x5255de>=0x0;_0x5255de--)(_0xc5c5a1=_0x3ed170[_0x5255de])&&(_0x434170=_0xc5c5a1(_0x434170)||_0x434170);return _0x434170;},_0x3aa905=(_0x1ad8b2,_0x128506)=>(_0x576351,_0x40c2bf)=>_0x128506(_0x576351,_0x40c2bf,_0x1ad8b2),_0x86060f=(_0x2fc323,_0x4fdbf4,_0x335105)=>_0x59e5e3(_0x2fc323,typeof _0x4fdbf4!=_0x339427(0x1c4)?_0x4fdbf4+'':_0x4fdbf4,_0x335105);const _0x2a3fe8=_0x339427(0x1eb);_0x25da99[_0x339427(0x1c0)]=class extends _0x22e122[_0x339427(0x15e)]{constructor(_0x24bf08=_0x214776,_0x6b90f7,_0x2193f9){var _0x2162ac=_0x339427;super(),this[_0x2162ac(0x16a)]=_0x24bf08,this[_0x2162ac(0x174)]=_0x6b90f7,this[_0x2162ac(0x141)]=_0x2193f9;const {..._0x804738}=_0x22e122[_0x2162ac(0x171)]({},_0x214776,this[_0x2162ac(0x16a)]);this['_configService'][_0x2162ac(0x13e)](_0x32f8f0,_0x804738);}[_0x339427(0x20e)](){var _0x560636=_0x339427;_0x22e122[_0x560636(0x1a5)](this['_injector'],_0x22e122[_0x560636(0x17a)]([[_0x23a349],[_0x25da99[_0x560636(0x1c7)]],[_0x50ce8a],[_0x25da99['DesktopLiveShareController']]],this[_0x560636(0x16a)][_0x560636(0x176)])),_0x22e122['touchDependencies'](this[_0x560636(0x174)],[[_0x50ce8a]]);}['onRendered'](){var _0x51ff1f=_0x339427;_0x22e122[_0x51ff1f(0x1e9)](this[_0x51ff1f(0x174)],[[_0x25da99[_0x51ff1f(0x1cd)]]]);}},_0x86060f(_0x25da99[_0x339427(0x1c0)],_0x339427(0x17d),_0x22e122[_0x339427(0x1ed)][_0x339427(0x129)]),_0x86060f(_0x25da99[_0x339427(0x1c0)],_0x339427(0x143),_0x2a3fe8),_0x25da99[_0x339427(0x1c0)]=_0x4d051c([_0x22e122[_0x339427(0x18c)](_0x3291c1['UniverCollaborationClientPlugin']),_0x3aa905(0x1,_0x22e122['Inject'](_0x22e122[_0x339427(0x1b1)])),_0x3aa905(0x2,_0x22e122['IConfigService'])],_0x25da99['UniverLiveSharePlugin']),_0x25da99[_0x339427(0x208)]=_0x2bbd3d,_0x25da99['LiveShareService']=_0x23a349,_0x25da99[_0x339427(0x13f)]=_0x5aa815,Object[_0x339427(0x202)](_0x25da99,Symbol[_0x339427(0x166)],{'value':_0x339427(0x20f)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-nightly.202506011606",
3
+ "version": "0.8.0-nightly.202506031608",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,22 +47,22 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.0-nightly.202506011606",
51
- "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506011606",
52
- "@univerjs/core": "0.8.0-nightly.202506011606",
53
- "@univerjs/sheets": "0.8.0-nightly.202506011606",
54
- "@univerjs/design": "0.8.0-nightly.202506011606",
55
- "@univerjs/sheets-ui": "0.8.0-nightly.202506011606",
56
- "@univerjs/ui": "0.8.0-nightly.202506011606"
50
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202506031608",
51
+ "@univerjs/core": "0.8.0-nightly.202506031608",
52
+ "@univerjs/design": "0.8.0-nightly.202506031608",
53
+ "@univerjs/sheets-ui": "0.8.0-nightly.202506031608",
54
+ "@univerjs/ui": "0.8.0-nightly.202506031608",
55
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506031608",
56
+ "@univerjs/sheets": "0.8.0-nightly.202506031608"
57
57
  },
58
58
  "devDependencies": {
59
- "postcss": "^8.5.3",
59
+ "postcss": "^8.5.4",
60
60
  "react": "18.3.1",
61
61
  "rxjs": "7.8.2",
62
62
  "tailwindcss": "^3.4.17",
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
- "vitest": "^3.1.4",
65
+ "vitest": "^3.2.0",
66
66
  "@univerjs-infra/shared": "0.8.0-beta.1",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },