@univerjs-pro/live-share 0.8.0-nightly.202506011606 → 0.8.0-nightly.202506021607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
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 _0x16c1aa=_0x5beb;(function(_0x4a87d8,_0x51f0af){var _0x5a53f9=_0x5beb,_0x3a3500=_0x4a87d8();while(!![]){try{var _0x226df7=parseInt(_0x5a53f9(0x18b))/0x1+parseInt(_0x5a53f9(0x165))/0x2*(-parseInt(_0x5a53f9(0x108))/0x3)+-parseInt(_0x5a53f9(0x133))/0x4*(parseInt(_0x5a53f9(0x153))/0x5)+-parseInt(_0x5a53f9(0x195))/0x6+-parseInt(_0x5a53f9(0x18e))/0x7+parseInt(_0x5a53f9(0x11d))/0x8+parseInt(_0x5a53f9(0x1b5))/0x9;if(_0x226df7===_0x51f0af)break;else _0x3a3500['push'](_0x3a3500['shift']());}catch(_0x194fc8){_0x3a3500['push'](_0x3a3500['shift']());}}}(_0x3004,0xcba10));var U=Object[_0x16c1aa(0x138)],F=(_0x5ee747,_0x46e6d7,_0x16a73a)=>_0x46e6d7 in _0x5ee747?U(_0x5ee747,_0x46e6d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16a73a}):_0x5ee747[_0x46e6d7]=_0x16a73a,v=(_0x4b8e1a,_0x3a5114,_0x324066)=>F(_0x4b8e1a,typeof _0x3a5114!=_0x16c1aa(0x18f)?_0x3a5114+'':_0x3a5114,_0x324066);Object[_0x16c1aa(0x138)](exports,Symbol[_0x16c1aa(0x1a4)],{'value':_0x16c1aa(0x116)});const m=require(_0x16c1aa(0x170)),o=require(_0x16c1aa(0x1a3)),C=require(_0x16c1aa(0x147)),w=require(_0x16c1aa(0x10e)),p=require(_0x16c1aa(0x162)),l=require(_0x16c1aa(0x1ca)),g=require('@univerjs/design'),f=require('react'),_=require(_0x16c1aa(0x14c)),D=require(_0x16c1aa(0x13d)),b=require('rxjs/operators'),$=_0x16c1aa(0x1b6),x={};class O extends o['Disposable']{constructor(){var _0x570ed6=_0x16c1aa;super(...arguments),v(this,_0x570ed6(0x12c),new Set()),v(this,'_reporters',new Set());}[_0x16c1aa(0x160)](_0x4d00c6){var _0x609f88=_0x16c1aa;return this[_0x609f88(0x12c)][_0x609f88(0x163)](_0x4d00c6),o[_0x609f88(0x176)](()=>this[_0x609f88(0x12c)][_0x609f88(0x152)](_0x4d00c6));}[_0x16c1aa(0x14b)](_0x402eac){var _0x569401=_0x16c1aa;return this[_0x569401(0x1c1)]['add'](_0x402eac),o[_0x569401(0x176)](()=>this[_0x569401(0x1c1)][_0x569401(0x152)](_0x402eac));}[_0x16c1aa(0x126)](_0xea54aa){var _0x48e352=_0x16c1aa;return this[_0x48e352(0x12c)]['has'](_0xea54aa);}['getInitialStates'](_0x138357){var _0x25d9ab=_0x16c1aa;return Array[_0x25d9ab(0x1cd)](this[_0x25d9ab(0x1c1)])[_0x25d9ab(0x185)](_0x4c4148=>_0x4c4148(_0x138357));}}var H=Object[_0x16c1aa(0x1a0)],V=(_0x4fed14,_0x41abe2,_0x3a4535,_0x317219)=>{var _0x1046b2=_0x16c1aa;for(var _0x549656=_0x317219>0x1?void 0x0:_0x317219?H(_0x41abe2,_0x3a4535):_0x41abe2,_0x4beb46=_0x4fed14[_0x1046b2(0x18a)]-0x1,_0x1d721f;_0x4beb46>=0x0;_0x4beb46--)(_0x1d721f=_0x4fed14[_0x4beb46])&&(_0x549656=_0x1d721f(_0x549656)||_0x549656);return _0x549656;},k=(_0x6e7733,_0x3856e6)=>(_0x3df690,_0x1d0116)=>_0x3856e6(_0x3df690,_0x1d0116,_0x6e7733);let E=class extends o[_0x16c1aa(0x102)]{constructor(_0x346f10){var _0x1b58d9=_0x16c1aa;super(),this[_0x1b58d9(0x156)]=_0x346f10,this[_0x1b58d9(0x1bd)]();}[_0x16c1aa(0x1bd)](){var _0x128f48=_0x16c1aa;[w['SetZoomRatioOperation']['id'],w[_0x128f48(0x16d)]['id'],C[_0x128f48(0x1be)]['id']]['forEach'](_0x2e7384=>{var _0x2bbb73=_0x128f48;this[_0x2bbb73(0x132)](this['_liveShareService'][_0x2bbb73(0x160)](_0x2e7384));});}};E=V([k(0x0,o[_0x16c1aa(0x16c)](O))],E);var u=function(){return u=Object['assign']||function(_0x4e16ae){var _0x54f5fe=_0x5beb;for(var _0x2cb019,_0x555b18=0x1,_0x2baa1e=arguments[_0x54f5fe(0x18a)];_0x555b18<_0x2baa1e;_0x555b18++){_0x2cb019=arguments[_0x555b18];for(var _0x15baa0 in _0x2cb019)Object[_0x54f5fe(0x1a9)][_0x54f5fe(0x13b)][_0x54f5fe(0x12f)](_0x2cb019,_0x15baa0)&&(_0x4e16ae[_0x15baa0]=_0x2cb019[_0x15baa0]);}return _0x4e16ae;},u['apply'](this,arguments);},M=function(_0x297db1,_0xb1eaf9){var _0x2dc167=_0x16c1aa,_0x11044d={};for(var _0x55d9de in _0x297db1)Object[_0x2dc167(0x1a9)][_0x2dc167(0x13b)][_0x2dc167(0x12f)](_0x297db1,_0x55d9de)&&_0xb1eaf9[_0x2dc167(0x1d5)](_0x55d9de)<0x0&&(_0x11044d[_0x55d9de]=_0x297db1[_0x55d9de]);if(_0x297db1!=null&&typeof Object[_0x2dc167(0x1cf)]==_0x2dc167(0x199)){for(var _0x1238d0=0x0,_0x55d9de=Object[_0x2dc167(0x1cf)](_0x297db1);_0x1238d0<_0x55d9de[_0x2dc167(0x18a)];_0x1238d0++)_0xb1eaf9[_0x2dc167(0x1d5)](_0x55d9de[_0x1238d0])<0x0&&Object[_0x2dc167(0x1a9)]['propertyIsEnumerable'][_0x2dc167(0x12f)](_0x297db1,_0x55d9de[_0x1238d0])&&(_0x11044d[_0x55d9de[_0x1238d0]]=_0x297db1[_0x55d9de[_0x1238d0]]);}return _0x11044d;},j=f['forwardRef'](function(_0x50f7f8,_0x18ee39){var _0xb0d90b=_0x16c1aa,_0x1697f8=_0x50f7f8['icon'],_0xf54448=_0x50f7f8['id'],_0x4663ac=_0x50f7f8[_0xb0d90b(0x18c)],_0xe58704=_0x50f7f8[_0xb0d90b(0x106)],_0x3e3805=M(_0x50f7f8,[_0xb0d90b(0x115),'id',_0xb0d90b(0x18c),_0xb0d90b(0x106)]),_0x15a3e1=_0xb0d90b(0x197)[_0xb0d90b(0x101)](_0xf54448,'\x20')['concat'](_0x4663ac||'')['trim'](),_0x26fa12=f[_0xb0d90b(0x140)]('_'['concat'](G()));return y(_0x1697f8,''[_0xb0d90b(0x101)](_0xf54448),{'defIds':_0x1697f8[_0xb0d90b(0x105)],'idSuffix':_0x26fa12['current']},u({'ref':_0x18ee39,'className':_0x15a3e1},_0x3e3805),_0xe58704);});function y(_0x3a4522,_0x2e5ceb,_0x709541,_0xa5e58f,_0x3e1db8){var _0x10d8dd=_0x16c1aa;return f[_0x10d8dd(0x157)](_0x3a4522[_0x10d8dd(0x10c)],u(u({'key':_0x2e5ceb},q(_0x3a4522,_0x709541,_0x3e1db8)),_0xa5e58f),(W(_0x3a4522,_0x709541)[_0x10d8dd(0x192)]||[])[_0x10d8dd(0x185)](function(_0x3d433c,_0x2ae7d8){var _0x13ef9f=_0x10d8dd;return y(_0x3d433c,''[_0x13ef9f(0x101)](_0x2e5ceb,'-')[_0x13ef9f(0x101)](_0x3a4522[_0x13ef9f(0x10c)],'-')['concat'](_0x2ae7d8),_0x709541,void 0x0,_0x3e1db8);}));}function q(_0x395ba9,_0x4f9295,_0x1110c0){var _0x462201=_0x16c1aa,_0x87f585=u({},_0x395ba9['attrs']);_0x1110c0!=null&&_0x1110c0[_0x462201(0x135)]&&_0x87f585['fill']===_0x462201(0x135)&&(_0x87f585[_0x462201(0x168)]=_0x1110c0['colorChannel1']),_0x395ba9[_0x462201(0x10c)]==='mask'&&_0x87f585['id']&&(_0x87f585['id']=_0x87f585['id']+_0x4f9295['idSuffix']),Object[_0x462201(0x1c9)](_0x87f585)[_0x462201(0x16f)](function(_0x51a107){var _0x617f0c=_0x462201,_0x2c0321=_0x51a107[0x0],_0x3998c3=_0x51a107[0x1];_0x2c0321===_0x617f0c(0x13c)&&typeof _0x3998c3==_0x617f0c(0x190)&&(_0x87f585[_0x2c0321]=_0x3998c3[_0x617f0c(0x125)](/url\(#(.*)\)/,_0x617f0c(0x13a)[_0x617f0c(0x101)](_0x4f9295[_0x617f0c(0xfb)],')')));});var _0x50ba85=_0x4f9295[_0x462201(0x105)];return!_0x50ba85||_0x50ba85[_0x462201(0x18a)]===0x0||(_0x395ba9[_0x462201(0x10c)]===_0x462201(0x1c8)&&_0x87f585[_0x462201(0x1a1)]&&(_0x87f585[_0x462201(0x1a1)]=_0x87f585[_0x462201(0x1a1)]+_0x4f9295[_0x462201(0xfb)]),Object['entries'](_0x87f585)[_0x462201(0x16f)](function(_0x188544){var _0x229ec0=_0x462201,_0x154fcf=_0x188544[0x0],_0x310382=_0x188544[0x1];typeof _0x310382==_0x229ec0(0x190)&&(_0x87f585[_0x154fcf]=_0x310382[_0x229ec0(0x125)](/url\(#(.*)\)/,_0x229ec0(0x13a)[_0x229ec0(0x101)](_0x4f9295[_0x229ec0(0xfb)],')')));})),_0x87f585;}function W(_0x7624f3,_0x2077b5){var _0x3ab1f4=_0x16c1aa,_0x3b86d9,_0x5689a2=_0x2077b5[_0x3ab1f4(0x105)];return!_0x5689a2||_0x5689a2['length']===0x0?_0x7624f3:_0x7624f3[_0x3ab1f4(0x10c)]===_0x3ab1f4(0xf9)&&(!((_0x3b86d9=_0x7624f3['children'])===null||_0x3b86d9===void 0x0)&&_0x3b86d9[_0x3ab1f4(0x18a)])?u(u({},_0x7624f3),{'children':_0x7624f3[_0x3ab1f4(0x192)][_0x3ab1f4(0x185)](function(_0x61b8f2){var _0x260bb1=_0x3ab1f4;return typeof _0x61b8f2[_0x260bb1(0x10a)]['id']==_0x260bb1(0x190)&&_0x5689a2&&_0x5689a2['includes'](_0x61b8f2[_0x260bb1(0x10a)]['id'])?u(u({},_0x61b8f2),{'attrs':u(u({},_0x61b8f2[_0x260bb1(0x10a)]),{'id':_0x61b8f2[_0x260bb1(0x10a)]['id']+_0x2077b5[_0x260bb1(0xfb)]})}):_0x61b8f2;})}):_0x7624f3;}function G(){var _0x470758=_0x16c1aa;return Math[_0x470758(0x154)]()['toString'](0x24)[_0x470758(0x103)](0x2,0x8);}j[_0x16c1aa(0x1cb)]=_0x16c1aa(0x151);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x16c1aa(0x16a),'viewBox':_0x16c1aa(0x166),'width':_0x16c1aa(0x139),'height':_0x16c1aa(0x139)},'children':[{'tag':_0x16c1aa(0x122),'attrs':{'fill':_0x16c1aa(0x114),'d':_0x16c1aa(0x1ad)}},{'tag':_0x16c1aa(0x122),'attrs':{'fill':'currentColor','d':_0x16c1aa(0x11b),'fillRule':_0x16c1aa(0x12a),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x311564,_0x123a48){var _0x5a65d7=_0x16c1aa;return f[_0x5a65d7(0x157)](j,Object[_0x5a65d7(0x189)]({},_0x311564,{'id':_0x5a65d7(0x121),'ref':_0x123a48,'icon':B}));});P[_0x16c1aa(0x1cb)]=_0x16c1aa(0x174);var Y=Object[_0x16c1aa(0x1a0)],R=(_0x33cb4e,_0x5d0c10,_0x5aa168,_0x52e535)=>{var _0x8e7215=_0x16c1aa;for(var _0x314d61=_0x52e535>0x1?void 0x0:_0x52e535?Y(_0x5d0c10,_0x5aa168):_0x5d0c10,_0x3a566c=_0x33cb4e[_0x8e7215(0x18a)]-0x1,_0xa80090;_0x3a566c>=0x0;_0x3a566c--)(_0xa80090=_0x33cb4e[_0x3a566c])&&(_0x314d61=_0xa80090(_0x314d61)||_0x314d61);return _0x314d61;},S=(_0x3a5cc3,_0x279562)=>(_0x1d858c,_0x5c5d0b)=>_0x279562(_0x1d858c,_0x5c5d0b,_0x3a5cc3);exports[_0x16c1aa(0x173)]=class extends o[_0x16c1aa(0x1d4)]{constructor(_0x176674,_0x498114,_0x11777e){var _0x242485=_0x16c1aa;super(),v(this,_0x242485(0x112),new Map()),(this[_0x242485(0x183)]=_0x176674,this[_0x242485(0x15a)]=_0x498114,this[_0x242485(0x180)]=_0x11777e,this[_0x242485(0x1bd)]());}async['getLiveShareCoordinator'](_0x1247b4){var _0x505ec4=_0x16c1aa;return this[_0x505ec4(0x112)]['has'](_0x1247b4)||await this[_0x505ec4(0x1b8)](_0x1247b4),this[_0x505ec4(0x112)][_0x505ec4(0x1a2)](_0x1247b4);}[_0x16c1aa(0x1bd)](){var _0x87a729=_0x16c1aa;this['_univerInstanceService'][_0x87a729(0x111)](o[_0x87a729(0xf6)][_0x87a729(0x130)])['pipe'](b['takeUntil'](this[_0x87a729(0x19f)]))['subscribe'](async _0xdad77=>{var _0x4681b4=_0x87a729;const _0x5491af=_0xdad77['getUnitId']();this['_entities'][_0x4681b4(0x14f)](_0x5491af)||this[_0x4681b4(0x1b8)](_0x5491af);}),this['_univerInstanceService'][_0x87a729(0x17e)](o[_0x87a729(0xf6)][_0x87a729(0x130)])[_0x87a729(0x1a6)](b[_0x87a729(0xfd)](this['dispose$']))[_0x87a729(0x161)](_0xe48594=>{var _0x4cb1c5=_0x87a729;const _0x5ca626=_0xe48594[_0x4cb1c5(0x11c)](),_0x4d256e=this[_0x4cb1c5(0x112)][_0x4cb1c5(0x1a2)](_0x5ca626);_0x4d256e==null||_0x4d256e[_0x4cb1c5(0x1ac)]();});}async[_0x16c1aa(0x1b8)](_0x2edd46){var _0x3021ff=_0x16c1aa;const _0x3685e8=await this['_collabSessionService'][_0x3021ff(0x1db)](_0x2edd46),_0x12caf2=this['_injector'][_0x3021ff(0x127)](exports[_0x3021ff(0x1de)],_0x2edd46,_0x3685e8);return _0x12caf2[_0x3021ff(0x120)](),this[_0x3021ff(0x112)][_0x3021ff(0x1b4)](_0x2edd46,_0x12caf2),_0x12caf2;}},exports[_0x16c1aa(0x173)]=R([S(0x0,o[_0x16c1aa(0x15c)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x16c1aa(0x16c)](m['CollaborationSessionService']))],exports[_0x16c1aa(0x173)]);function _0x5beb(_0x360eaf,_0x2e71d8){var _0x30042e=_0x3004();return _0x5beb=function(_0x5bebab,_0x12068e){_0x5bebab=_0x5bebab-0xf6;var _0x589e89=_0x30042e[_0x5bebab];return _0x589e89;},_0x5beb(_0x360eaf,_0x2e71d8);}var h=(_0x46bc23=>(_0x46bc23[_0x16c1aa(0x17d)]='offline',_0x46bc23[_0x16c1aa(0x1bb)]='idle',_0x46bc23[_0x16c1aa(0x13f)]=_0x16c1aa(0x142),_0x46bc23['NOT_FOLLOWING']=_0x16c1aa(0xf8),_0x46bc23['PRESENTING']=_0x16c1aa(0x129),_0x46bc23))(h||{});const Z=_0x16c1aa(0x113),J=0xc8;exports[_0x16c1aa(0x1de)]=class extends o[_0x16c1aa(0x1d4)]{constructor(_0x73e1c7,_0x13f46c,_0x53211d,_0x5304cf,_0x4f6ab1){var _0x2f9c52=_0x16c1aa;super(),v(this,'_status$',new D[(_0x2f9c52(0x17a))](_0x2f9c52(0x167))),v(this,_0x2f9c52(0x1d3),this[_0x2f9c52(0x10d)][_0x2f9c52(0x1da)]()),v(this,_0x2f9c52(0x1bd),!0x1),v(this,_0x2f9c52(0x1cc),null),v(this,_0x2f9c52(0x136),null),(this[_0x2f9c52(0x1d7)]=_0x73e1c7,this[_0x2f9c52(0x187)]=_0x13f46c,this[_0x2f9c52(0x11e)]=_0x53211d,this[_0x2f9c52(0x156)]=_0x5304cf,this[_0x2f9c52(0x143)]=_0x4f6ab1);}get[_0x16c1aa(0x172)](){var _0x4c6ab1=_0x16c1aa;return this[_0x4c6ab1(0x10d)][_0x4c6ab1(0x1d6)]();}[_0x16c1aa(0x1ac)](){var _0x21cfb4=_0x16c1aa,_0x398830;(_0x398830=this['_commandDisposable'])==null||_0x398830['dispose'](),this[_0x21cfb4(0x10d)]['next'](_0x21cfb4(0x167)),this[_0x21cfb4(0x10d)][_0x21cfb4(0x1b3)]();}[_0x16c1aa(0x120)](){var _0x348822=_0x16c1aa;this[_0x348822(0x1bd)]||(this[_0x348822(0x1bd)]=!0x0,this['_collabSession'][_0x348822(0x1bf)][_0x348822(0x1a6)](b[_0x348822(0xfd)](this[_0x348822(0x19f)]))['subscribe'](_0x2c8ea7=>{var _0x5b593e=_0x348822;switch(_0x2c8ea7){case m[_0x5b593e(0x17c)][_0x5b593e(0x17d)]:this['_handleOffline']();break;case m[_0x5b593e(0x17c)][_0x5b593e(0x1ce)]:this[_0x5b593e(0x14e)]();break;}}),this['_collabSession']['event$'][_0x348822(0x1a6)](b['takeUntil'](this[_0x348822(0x19f)]))[_0x348822(0x161)](_0x3c288a=>{var _0x516861=_0x348822;const {eventID:_0x310254}=_0x3c288a;switch(_0x310254){case _['CollaborationEvent'][_0x516861(0x104)]:this[_0x516861(0x1d0)](_0x3c288a);break;case _[_0x516861(0x175)][_0x516861(0x155)]:this[_0x516861(0xff)](_0x3c288a);break;case _['CollaborationEvent'][_0x516861(0x137)]:this[_0x516861(0x1dc)]();break;case _[_0x516861(0x175)][_0x516861(0x19a)]:this[_0x516861(0x15d)](_0x3c288a);break;}}));}[_0x16c1aa(0x169)](){var _0x4178a6=_0x16c1aa;this[_0x4178a6(0x187)][_0x4178a6(0x141)]({'eventID':_[_0x4178a6(0x175)][_0x4178a6(0x100)],'data':{'unitID':this[_0x4178a6(0x1d7)],'userID':this[_0x4178a6(0x187)][_0x4178a6(0x158)]()}},this[_0x4178a6(0x1d7)]);}[_0x16c1aa(0x1d8)](){var _0x5c30be=_0x16c1aa;this['_status']===_0x5c30be(0x129)&&(this[_0x5c30be(0x10d)][_0x5c30be(0x1c0)](_0x5c30be(0x167)),this[_0x5c30be(0x187)][_0x5c30be(0x141)]({'eventID':_[_0x5c30be(0x175)][_0x5c30be(0x137)],'data':{'unitID':this[_0x5c30be(0x1d7)]}},this[_0x5c30be(0x1d7)]));}[_0x16c1aa(0x14a)](){var _0x2fddcd=_0x16c1aa;this[_0x2fddcd(0x172)]===_0x2fddcd(0xf8)&&(this[_0x2fddcd(0x10d)][_0x2fddcd(0x1c0)](_0x2fddcd(0x142)),this['_startFollowing']());}[_0x16c1aa(0x1ae)](){var _0x41fca3=_0x16c1aa;this[_0x41fca3(0x172)]==='following'&&this[_0x41fca3(0x149)]();}[_0x16c1aa(0x1d0)](_0x439dee){var _0x153dbe=_0x16c1aa;const {presenter:_0x2a675f}=_0x439dee[_0x153dbe(0x1b9)],_0x153616=this['_collabSession'][_0x153dbe(0x158)]();this[_0x153dbe(0x136)]=_0x2a675f,_0x2a675f===_0x153616?(this[_0x153dbe(0x149)](),this['_startPresenting']()):this[_0x153dbe(0x172)]!==_0x153dbe(0xf8)&&(this[_0x153dbe(0x10f)](),this['_startFollowing']());}[_0x16c1aa(0x198)](){var _0x434887=_0x16c1aa;const _0x5e7a36={'eventID':_['CollaborationEvent'][_0x434887(0x123)]};this['_collabSession']['send'](_0x5e7a36,this[_0x434887(0x1d7)]);}['_handleTerminate'](){var _0x557ef0=_0x16c1aa;this['_presenter']=null,this[_0x557ef0(0x172)]!==_0x557ef0(0x129)&&this[_0x557ef0(0x186)]();}[_0x16c1aa(0x15d)](_0x1f5b74){var _0x59b9ad=_0x16c1aa;if(this[_0x59b9ad(0x172)]===_0x59b9ad(0x142)&&this[_0x59b9ad(0x136)]===_0x1f5b74['data'][_0x59b9ad(0x13e)]){const _0x47ba8d=_['parseProtocolChangeset'](_0x1f5b74[_0x59b9ad(0x1b9)])['mutations'][_0x59b9ad(0xfe)]()['find'](_0x4166c1=>_0x4166c1['id']===C[_0x59b9ad(0x159)]['id']);if(_0x47ba8d){const _0x172864=_0x47ba8d['params'][_0x59b9ad(0x194)],_0x4eedb4=_0x47ba8d[_0x59b9ad(0x19e)][_0x59b9ad(0xf7)]['id'];setTimeout(()=>{var _0xe50581=_0x59b9ad;this[_0xe50581(0x143)]['executeCommand'](C[_0xe50581(0x1be)]['id'],{'unitId':_0x172864,'subUnitId':_0x4eedb4},{'fromCollab':!0x0});});}}}[_0x16c1aa(0x17b)](){var _0x128e0d=_0x16c1aa;this[_0x128e0d(0x10d)][_0x128e0d(0x1c0)]('presenting');const _0x35358c=new Map(),_0x549f9c=this['_commandDisposable']=new o[(_0x128e0d(0x148))]();_0x549f9c[_0x128e0d(0x163)](o[_0x128e0d(0x176)](()=>{_0x35358c['forEach'](_0x43d744=>_0x43d744['complete']()),_0x35358c['clear']();})),_0x549f9c[_0x128e0d(0x163)](this[_0x128e0d(0x143)][_0x128e0d(0x19b)](_0xc48b06=>{var _0x2c4f87=_0x128e0d,_0xfd771b;if(_0xc48b06[_0x2c4f87(0x110)]!==o['CommandType'][_0x2c4f87(0x12d)]||!this[_0x2c4f87(0x156)][_0x2c4f87(0x126)](_0xc48b06['id']))return;const {id:_0x586bda}=_0xc48b06;let _0xa786f4;_0x35358c[_0x2c4f87(0x14f)](_0x586bda)?_0xa786f4=_0x35358c[_0x2c4f87(0x1a2)](_0x586bda):(_0xa786f4=new D[(_0x2c4f87(0x1c3))](),_0x35358c[_0x2c4f87(0x1b4)](_0x586bda,_0xa786f4),_0xa786f4[_0x2c4f87(0x1a6)](b['throttleTime']((_0xfd771b=this['_configService'][_0x2c4f87(0x15b)](Z))!=null?_0xfd771b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4f87(0x161)](_0x3ed84d=>{var _0x4c8f8a=_0x2c4f87;this[_0x4c8f8a(0x187)][_0x4c8f8a(0x141)]({'eventID':_[_0x4c8f8a(0x175)][_0x4c8f8a(0x155)],'data':{'unitID':this[_0x4c8f8a(0x1d7)],'operations':{[_0x3ed84d['id']]:{'id':_0x3ed84d['id'],'params':JSON['stringify'](_0x3ed84d[_0x4c8f8a(0x19e)])}}}},this[_0x4c8f8a(0x1d7)]);})),_0xa786f4['next'](_0xc48b06);})),this[_0x128e0d(0x156)]['getInitialStates'](this['_unitID'])['forEach'](_0x534f55=>this[_0x128e0d(0x187)][_0x128e0d(0x141)]({'eventID':_[_0x128e0d(0x175)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x128e0d(0x1d7)],'operations':{[_0x534f55['id']]:{'id':_0x534f55['id'],'params':JSON['stringify'](_0x534f55[_0x128e0d(0x19e)])}}}},this[_0x128e0d(0x1d7)]));}[_0x16c1aa(0x10f)](){var _0x69f25b=_0x16c1aa,_0x22f32f;this[_0x69f25b(0x10d)][_0x69f25b(0x1c0)]('idle'),(_0x22f32f=this[_0x69f25b(0x1cc)])==null||_0x22f32f[_0x69f25b(0x1ac)](),this[_0x69f25b(0x1cc)]=null;}[_0x16c1aa(0x146)](){var _0xed9051=_0x16c1aa,_0x30aead;(_0x30aead=this[_0xed9051(0x1cc)])==null||_0x30aead[_0xed9051(0x1ac)](),this[_0xed9051(0x10d)][_0xed9051(0x1c0)](_0xed9051(0x142));}[_0x16c1aa(0x186)](){var _0x582382=_0x16c1aa,_0x1679e8;this['_status$'][_0x582382(0x1c0)](_0x582382(0x167)),(_0x1679e8=this[_0x582382(0x1cc)])==null||_0x1679e8[_0x582382(0x1ac)](),this[_0x582382(0x1cc)]=null;}[_0x16c1aa(0x149)](){var _0x1ea9cd=_0x16c1aa,_0x51f403;this[_0x1ea9cd(0x10d)]['next'](_0x1ea9cd(0xf8)),(_0x51f403=this[_0x1ea9cd(0x1cc)])==null||_0x51f403['dispose']();}[_0x16c1aa(0xff)](_0x5ad338){var _0x44e509=_0x16c1aa;if([_0x44e509(0x129),_0x44e509(0xf8),_0x44e509(0x1d2)][_0x44e509(0x134)](this[_0x44e509(0x172)])||!_0x5ad338[_0x44e509(0x1b9)][_0x44e509(0x17f)]||_0x5ad338[_0x44e509(0x1b9)][_0x44e509(0x17f)]===this[_0x44e509(0x187)][_0x44e509(0x158)]())return;this[_0x44e509(0x172)]===_0x44e509(0x167)&&this[_0x44e509(0x146)]();const _0xa4a4c0=_0x5ad338['data'][_0x44e509(0x181)];Object[_0x44e509(0x182)](_0xa4a4c0)[_0x44e509(0x16f)](_0x3fd540=>{var _0x30d563=_0x44e509;this[_0x30d563(0x143)]['executeCommand'](_0x3fd540['id'],_0x3fd540[_0x30d563(0x19e)]?JSON[_0x30d563(0x19c)](_0x3fd540[_0x30d563(0x19e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x462721=_0x16c1aa,_0x2b539b;this[_0x462721(0x10d)][_0x462721(0x1c0)](_0x462721(0x1d2)),(_0x2b539b=this[_0x462721(0x1cc)])==null||_0x2b539b[_0x462721(0x1ac)]();}[_0x16c1aa(0x14e)](){var _0x68b44b=_0x16c1aa;this['_status$']['next'](_0x68b44b(0x167)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o['IConfigService']),S(0x3,o[_0x16c1aa(0x16c)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x3f6f9a=_0x16c1aa;const _0x3655e8=p[_0x3f6f9a(0x16b)](exports[_0x3f6f9a(0x173)]),_0x3b4430=p[_0x3f6f9a(0x16b)](o[_0x3f6f9a(0x15c)]),_0x3a2418=p[_0x3f6f9a(0x144)](()=>_0x3b4430['getCurrentTypeOfUnit$'](o[_0x3f6f9a(0xf6)][_0x3f6f9a(0x130)]),void 0x0,!0x1,[]),[_0x363e51,_0x1201f5]=f['useState'](null),[_0x329846,_0x553b77]=f[_0x3f6f9a(0x12b)](h[_0x3f6f9a(0x1bb)]),_0x2dfe42=f['useRef'](null);return f[_0x3f6f9a(0x118)](()=>(_0x3a2418&&_0x3655e8[_0x3f6f9a(0x1a8)](_0x3a2418['getUnitId']())[_0x3f6f9a(0x1b0)](_0x39dff1=>{var _0x469c53=_0x3f6f9a;_0x1201f5(_0x39dff1),_0x2dfe42['current']=_0x39dff1[_0x469c53(0x1d3)][_0x469c53(0x161)](_0x1b4835=>{_0x553b77(_0x1b4835);});}),()=>{var _0x330b86=_0x3f6f9a,_0x4fc6e4;(_0x4fc6e4=_0x2dfe42[_0x330b86(0x1c6)])==null||_0x4fc6e4[_0x330b86(0x19d)](),_0x2dfe42[_0x330b86(0x1c6)]=null;}),[_0x3a2418,_0x3655e8]),_0x363e51?l['jsx'](g['Dropdown'],{'align':'end','disabled':_0x329846===h[_0x3f6f9a(0x17d)],'className':_0x3f6f9a(0x18d),'overlay':l[_0x3f6f9a(0x107)](K,{'status':_0x329846,'coordinator':_0x363e51}),'children':l[_0x3f6f9a(0x107)](_0x3f6f9a(0x11a),{'className':g[_0x3f6f9a(0x1c7)](_0x3f6f9a(0x177),{'univer-cursor-not-allowed':_0x329846===h[_0x3f6f9a(0x17d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x329846!==h[_0x3f6f9a(0x17d)]}),'type':_0x3f6f9a(0x11a),'children':l['jsx'](P,{'className':_0x3f6f9a(0x15e)})})}):null;}function K(_0x58a183){var _0x2c5e64=_0x16c1aa;const {status:_0x329112,coordinator:_0x25f5a9}=_0x58a183;switch(_0x329112){case h[_0x2c5e64(0x1bb)]:return l[_0x2c5e64(0x107)](z,{'coordinator':_0x25f5a9});case h[_0x2c5e64(0x13f)]:return l[_0x2c5e64(0x107)](Q,{'coordinator':_0x25f5a9});case h[_0x2c5e64(0x131)]:return l[_0x2c5e64(0x107)](X,{'coordinator':_0x25f5a9});case h[_0x2c5e64(0x17d)]:return l[_0x2c5e64(0x107)](te,{});case h[_0x2c5e64(0x124)]:return l[_0x2c5e64(0x107)](ee,{'coordinator':_0x25f5a9});default:return null;}}function z(_0x1bcd2a){var _0xcb0efb=_0x16c1aa;const {coordinator:_0x2063f8}=_0x1bcd2a;return l[_0xcb0efb(0x119)](l[_0xcb0efb(0x15f)],{'children':[l[_0xcb0efb(0x107)](_0xcb0efb(0x1b1),{'className':_0xcb0efb(0x171),'children':_0xcb0efb(0x191)}),l['jsx'](g['Button'],{'onClick':()=>_0x2063f8[_0xcb0efb(0x169)](),'children':'Start'})]});}function Q(_0x6502a9){var _0x23de5f=_0x16c1aa;const {coordinator:_0x5c395e}=_0x6502a9;return l['jsxs'](l[_0x23de5f(0x15f)],{'children':[l['jsx'](_0x23de5f(0x1b1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x23de5f(0x178)}),l['jsx'](g[_0x23de5f(0x117)],{'onClick':()=>_0x5c395e[_0x23de5f(0x1ae)](),'children':_0x23de5f(0x1dd)})]});}function X(_0x8cb16d){var _0x1de488=_0x16c1aa;const {coordinator:_0x1c1da0}=_0x8cb16d;return l['jsxs'](l[_0x1de488(0x15f)],{'children':[l[_0x1de488(0x107)]('div',{'className':_0x1de488(0x171),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x1de488(0x107)](g['Button'],{'variant':_0x1de488(0x150),'onClick':()=>_0x1c1da0[_0x1de488(0x14a)](),'children':_0x1de488(0x188)})]});}function ee(_0x3634d8){var _0x1218d0=_0x16c1aa;const {coordinator:_0x327b85}=_0x3634d8;return l['jsxs'](l[_0x1218d0(0x15f)],{'children':[l[_0x1218d0(0x107)](_0x1218d0(0x1b1),{'className':_0x1218d0(0x171),'children':_0x1218d0(0x196)}),l[_0x1218d0(0x107)](g[_0x1218d0(0x117)],{'variant':_0x1218d0(0x179),'onClick':()=>_0x327b85[_0x1218d0(0x1d8)](),'children':_0x1218d0(0x1ba)})]});}function te(){var _0x15a7cd=_0x16c1aa;return l[_0x15a7cd(0x107)](l[_0x15a7cd(0x15f)],{'children':_0x15a7cd(0x12e)});}var ie=Object[_0x16c1aa(0x1a0)],ne=(_0x1465b2,_0x43e839,_0x13e9bf,_0x1c8da1)=>{var _0x21f9d4=_0x16c1aa;for(var _0x58e470=_0x1c8da1>0x1?void 0x0:_0x1c8da1?ie(_0x43e839,_0x13e9bf):_0x43e839,_0x1770ba=_0x1465b2[_0x21f9d4(0x18a)]-0x1,_0x2e66f5;_0x1770ba>=0x0;_0x1770ba--)(_0x2e66f5=_0x1465b2[_0x1770ba])&&(_0x58e470=_0x2e66f5(_0x58e470)||_0x58e470);return _0x58e470;},L=(_0x168bc3,_0x5b008d)=>(_0x515e2a,_0x233697)=>_0x5b008d(_0x515e2a,_0x233697,_0x168bc3);function _0x3004(){var _0x45fffc=['DisposableCollection','_stopFollowing','startFollowing','registerInitialStateReporter','@univerjs-pro/collaboration','DesktopLiveShareController','_handleOnline','has','text','UniverIcon','delete','370ZBKpvj','random','LIVESHARE_OPERATION','_liveShareService','createElement','getMemberID','InsertSheetMutation','_injector','getConfig','IUniverInstanceService','_handleNewChangeSets','univer-size-4','Fragment','registerSharedOperation','subscribe','@univerjs/ui','add','UniverCollaborationClientPlugin','258510nKqkPk','0\x200\x2017\x2017','idle','fill','tryStartPresenting','none','useDependency','Inject','SetScrollOperation','setConfig','forEach','@univerjs-pro/collaboration-client','univer-w-full\x20univer-mb-3\x20univer-text-sm','_status','LiveShareController','LiveShareIcon','CollaborationEvent','toDisposable','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20following\x20the\x20presenter','default','BehaviorSubject','_startPresenting','SessionStatus','OFFLINE','getTypeOfUnitDisposed$','presenter','_collabSessionService','operations','values','_univerInstanceService','BuiltInUIPart','map','_beIdle','_collabSession','Start\x20following','assign','length','564552ConlFY','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','3008628bEVPpL','symbol','string','Present\x20this\x20document','children','onRendered','unitId','8321880fkJGOU','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','_fetchOperations','function','NEW_CHANGESETS','onCommandExecuted','parse','unsubscribe','params','dispose$','getOwnPropertyDescriptor','xlink:href','get','@univerjs/core','toStringTag','onStarting','pipe','pluginName','getLiveShareCoordinator','prototype','connectInjector','_mountLiveShare','dispose','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','stopFollowing','IConfigService','then','div','touchDependencies','complete','set','22972005jHmzqk','live-share.config','_config','_startLiveShareCoordinator','data','Stop\x20presenting','IDLE','LiveShareStatus','_init','SetWorksheetActiveOperation','sessionStatus$','next','_reporters','Plugin','Subject','UNIVER_LIVE_SHARE_PLUGIN','registerComponent','current','clsx','use','entries','react/jsx-runtime','displayName','_commandDisposable','from','ONLINE','getOwnPropertySymbols','_handleNewHost','UNIVER_UNKNOWN','offline','status$','RxDisposable','indexOf','getValue','_unitID','stopPresenting','override','asObservable','requireSession','_handleTerminate','Stop\x20following','LiveShareCoordinator','UniverInstanceType','sheet','not-following','defs','registerDependencies','idSuffix','UniverLiveSharePlugin','takeUntil','reverse','_handleOperation','LIVESHARE_REQUEST_HOST','concat','Disposable','substring','LIVESHARE_NEW_HOST','defIds','extend','jsx','6GTpCIy','HEADER_MENU','attrs','Injector','tag','_status$','@univerjs/sheets-ui','_stopPresenting','type','getTypeOfUnitAdded$','_entities','SAME_OPERATION_SHARE_INTERVAL','currentColor','icon','Module','Button','useEffect','jsxs','button','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','getUnitId','3859880nRHAqy','_configService','LiveShareService','init','live-share-icon','path','LIVESHARE_FETCH_OPERATIONS','PRESENTING','replace','shouldShareOperation','createInstance','_uiPartsService','presenting','evenodd','useState','_sharedOperations','OPERATION','You\x27are\x20offline.','call','UNIVER_SHEET','NOT_FOLLOWING','disposeWithMe','37304cIOKdj','includes','colorChannel1','_presenter','LIVESHARE_TERMINATE','defineProperty','1em','url(#$1','hasOwnProperty','mask','rxjs','memberID','FOLLOWING','useRef','send','following','_commandService','useObservable','merge','_startFollowing','@univerjs/sheets'];_0x3004=function(){return _0x45fffc;};return _0x3004();}exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x3874e8,_0x1b7d1d){var _0x5e9500=_0x16c1aa;super(),this[_0x5e9500(0x15a)]=_0x3874e8,this[_0x5e9500(0x128)]=_0x1b7d1d,this[_0x5e9500(0x1ab)]();}[_0x16c1aa(0x1ab)](){var _0x1789ff=_0x16c1aa;this['disposeWithMe'](this['_uiPartsService'][_0x1789ff(0x1c5)](p[_0x1789ff(0x184)][_0x1789ff(0x109)],()=>p[_0x1789ff(0x1aa)](A,this[_0x1789ff(0x15a)])));}},exports[_0x16c1aa(0x14d)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x16c1aa(0x14d)]);var re=Object[_0x16c1aa(0x138)],se=Object[_0x16c1aa(0x1a0)],oe=(_0x526fed,_0x2b5005,_0x4d7c1e)=>_0x2b5005 in _0x526fed?re(_0x526fed,_0x2b5005,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d7c1e}):_0x526fed[_0x2b5005]=_0x4d7c1e,ae=(_0x46efd8,_0x1f35ab,_0x305572,_0x433dae)=>{var _0xd8d371=_0x16c1aa;for(var _0x58c465=_0x433dae>0x1?void 0x0:_0x433dae?se(_0x1f35ab,_0x305572):_0x1f35ab,_0x14a100=_0x46efd8[_0xd8d371(0x18a)]-0x1,_0x3605e1;_0x14a100>=0x0;_0x14a100--)(_0x3605e1=_0x46efd8[_0x14a100])&&(_0x58c465=_0x3605e1(_0x58c465)||_0x58c465);return _0x58c465;},N=(_0x1f8dda,_0x8b7021)=>(_0x33369d,_0x33d6fd)=>_0x8b7021(_0x33369d,_0x33d6fd,_0x1f8dda),T=(_0x1915a6,_0x267eb7,_0x4916df)=>oe(_0x1915a6,typeof _0x267eb7!='symbol'?_0x267eb7+'':_0x267eb7,_0x4916df);const le=_0x16c1aa(0x1c4);exports['UniverLiveSharePlugin']=class extends o[_0x16c1aa(0x1c2)]{constructor(_0x43f03a=x,_0x1e1ac0,_0xb2ab10){var _0x5954a7=_0x16c1aa;super(),this[_0x5954a7(0x1b7)]=_0x43f03a,this[_0x5954a7(0x15a)]=_0x1e1ac0,this['_configService']=_0xb2ab10;const {..._0x4af444}=o[_0x5954a7(0x145)]({},x,this[_0x5954a7(0x1b7)]);this[_0x5954a7(0x11e)][_0x5954a7(0x16e)]($,_0x4af444);}[_0x16c1aa(0x1a5)](){var _0x349eb7=_0x16c1aa;o[_0x349eb7(0xfa)](this['_injector'],o['mergeOverrideWithDependencies']([[O],[exports[_0x349eb7(0x173)]],[E],[exports['DesktopLiveShareController']]],this[_0x349eb7(0x1b7)][_0x349eb7(0x1d9)])),o[_0x349eb7(0x1b2)](this[_0x349eb7(0x15a)],[[E]]);}[_0x16c1aa(0x193)](){var _0x42fe50=_0x16c1aa;o['touchDependencies'](this[_0x42fe50(0x15a)],[[exports[_0x42fe50(0x14d)]]]);}},T(exports[_0x16c1aa(0xfc)],'type',o[_0x16c1aa(0xf6)][_0x16c1aa(0x1d1)]),T(exports[_0x16c1aa(0xfc)],_0x16c1aa(0x1a7),le),exports[_0x16c1aa(0xfc)]=ae([o['DependentOn'](m[_0x16c1aa(0x164)]),N(0x1,o[_0x16c1aa(0x16c)](o[_0x16c1aa(0x10b)])),N(0x2,o[_0x16c1aa(0x1af)])],exports[_0x16c1aa(0xfc)]),exports['LiveShare']=A,exports[_0x16c1aa(0x11f)]=O,exports[_0x16c1aa(0x1bc)]=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 _0x111845=_0x18f0;(function(_0x36881f,_0x57ffe9){var _0x36827a=_0x18f0,_0x4baee1=_0x36881f();while(!![]){try{var _0x410fb4=-parseInt(_0x36827a(0x124))/0x1*(parseInt(_0x36827a(0x157))/0x2)+parseInt(_0x36827a(0x138))/0x3*(parseInt(_0x36827a(0xd6))/0x4)+-parseInt(_0x36827a(0xb4))/0x5+parseInt(_0x36827a(0xd2))/0x6+-parseInt(_0x36827a(0x159))/0x7*(parseInt(_0x36827a(0xae))/0x8)+-parseInt(_0x36827a(0x14f))/0x9+parseInt(_0x36827a(0xc6))/0xa;if(_0x410fb4===_0x57ffe9)break;else _0x4baee1['push'](_0x4baee1['shift']());}catch(_0x4a413d){_0x4baee1['push'](_0x4baee1['shift']());}}}(_0x37cb,0x81bbc));var q=Object[_0x111845(0x11d)],z=(_0x4df1c8,_0x3a66de,_0x4d7574)=>_0x3a66de in _0x4df1c8?q(_0x4df1c8,_0x3a66de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d7574}):_0x4df1c8[_0x3a66de]=_0x4d7574,d=(_0x474221,_0x1aaf80,_0x23a779)=>z(_0x474221,typeof _0x1aaf80!=_0x111845(0xdf)?_0x1aaf80+'':_0x1aaf80,_0x23a779);import{CollaborationSessionService as _0x1ac019,SessionStatus as _0x29ebe5,UniverCollaborationClientPlugin as _0x472ee4}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4c2516,toDisposable as _0x2b451f,Inject as _0x555b6a,IUniverInstanceService as _0x2a63fd,Injector as _0x184d2a,IConfigService as _0x5942dd,ICommandService as _0xebcdd,RxDisposable as _0x355afe,UniverInstanceType as _0x36368d,DisposableCollection as _0x5a3486,CommandType as _0x216e4e,DependentOn as _0x49dea1,Plugin as _0x19e569,merge as _0x47cc38,registerDependencies as _0x134e0c,mergeOverrideWithDependencies as _0x9bf70b,touchDependencies as _0x4b550f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x592534,InsertSheetMutation as _0x885b41}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5f3cc2,SetScrollOperation as _0x44c772}from'@univerjs/sheets-ui';import{useDependency as _0x71080f,useObservable as _0x3a54bb,IUIPartsService as _0x150f06,BuiltInUIPart as _0xb3b934,connectInjector as _0x3f0fd6}from'@univerjs/ui';import{jsx as _0x33981f,jsxs as _0x6e3e1,Fragment as _0x476040}from'react/jsx-runtime';import{Dropdown as _0x1a6ce9,clsx as _0x1ef98e,Button as _0x28744d}from'@univerjs/design';import{forwardRef as _0x5acf19,useRef as _0x349cca,createElement as _0x1b5217,useState as _0x198177,useEffect as _0x4a5c1f}from'react';import{CollaborationEvent as _0x310aef,parseProtocolChangeset as _0x58cb90}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37413d,Subject as _0x35d171}from'rxjs';import{takeUntil as _0x3fc736,throttleTime as _0x23c445}from'rxjs/operators';const Oe=_0x111845(0x153),T={};class L extends _0x4c2516{constructor(){var _0x22424c=_0x111845;super(...arguments),d(this,_0x22424c(0xba),new Set()),d(this,'_reporters',new Set());}[_0x111845(0xed)](_0x13819b){var _0x392eab=_0x111845;return this['_sharedOperations'][_0x392eab(0xe2)](_0x13819b),_0x2b451f(()=>this['_sharedOperations']['delete'](_0x13819b));}[_0x111845(0xac)](_0x5d9a2b){var _0x40403c=_0x111845;return this['_reporters'][_0x40403c(0xe2)](_0x5d9a2b),_0x2b451f(()=>this[_0x40403c(0xc7)][_0x40403c(0xbc)](_0x5d9a2b));}[_0x111845(0x103)](_0x26ab74){return this['_sharedOperations']['has'](_0x26ab74);}[_0x111845(0x126)](_0x5e0690){var _0x529b47=_0x111845;return Array[_0x529b47(0x15d)](this[_0x529b47(0xc7)])[_0x529b47(0xe8)](_0x31e042=>_0x31e042(_0x5e0690));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x4545ea,_0x2fc2e2,_0x5858a0,_0x45e868)=>{for(var _0x34e847=_0x45e868>0x1?void 0x0:_0x45e868?Ee(_0x2fc2e2,_0x5858a0):_0x2fc2e2,_0x20e5c5=_0x4545ea['length']-0x1,_0x3a0203;_0x20e5c5>=0x0;_0x20e5c5--)(_0x3a0203=_0x4545ea[_0x20e5c5])&&(_0x34e847=_0x3a0203(_0x34e847)||_0x34e847);return _0x34e847;},Ne=(_0x4b2d42,_0x581061)=>(_0x491682,_0x550474)=>_0x581061(_0x491682,_0x550474,_0x4b2d42);let m=class extends _0x4c2516{constructor(_0x30ec72){var _0x35729a=_0x111845;super(),this[_0x35729a(0xd0)]=_0x30ec72,this[_0x35729a(0xd8)]();}[_0x111845(0xd8)](){var _0x6adbc3=_0x111845;[_0x5f3cc2['id'],_0x44c772['id'],_0x592534['id']][_0x6adbc3(0xbf)](_0x4f11a4=>{var _0x5d8270=_0x6adbc3;this[_0x5d8270(0x12d)](this['_liveShareService'][_0x5d8270(0xed)](_0x4f11a4));});}};function _0x37cb(){var _0x287a5f=['clear','registerSharedOperation','LiveShareIcon','_status','length','_handleNewChangeSets','mask','get','pipe','_handleTerminate','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','set','_injector','getTypeOfUnitDisposed$','UNIVER_UNKNOWN','LIVESHARE_REQUEST_HOST','You\x27re\x20presenting\x20the\x20document','data','asObservable','presenting','current','_entities','shouldShareOperation','complete','LIVESHARE_OPERATION','url(#$1','then','http://www.w3.org/2000/svg','1em','0\x200\x2017\x2017','_presenter','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','propertyIsEnumerable','getLiveShareCoordinator','event$','type','icon','memberID','SAME_OPERATION_SHARE_INTERVAL','evenodd','send','dispose','createInstance','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','_collabSessionService','HEADER_MENU','not-following','mutations','defineProperty','extend','_commandService','ONLINE','next','values','dispose$','1357Zfufmh','onCommandExecuted','getInitialStates','getValue','toString','Start\x20following','univerjs-icon\x20univerjs-icon-','attrs','getOwnPropertySymbols','disposeWithMe','_config','currentColor','executeCommand','concat','tag','onRendered','registerComponent','hasOwnProperty','entries','_startFollowing','1441695delUgg','call','colorChannel1','UNIVER_SHEET','parse','_handleOperation','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','text','stopFollowing','_startPresenting','IDLE','_beIdle','_commandDisposable','Stop\x20presenting','tryStartPresenting','_uiPartsService','NEW_CHANGESETS','_stopFollowing','_univerInstanceService','prototype','className','sheet','4421439eHoyYx','xlink:href','_mountLiveShare','offline','live-share.config','presenter','univer-size-4','children','1186ClgJjx','_stopPresenting','717556SwHVQV','startFollowing','params','_collabSession','from','_fetchOperations','has','getUnitId','div','includes','registerInitialStateReporter','stringify','24lTjAiv','_unitID','idle','path','sessionStatus$','following','2141385mavIhR','OPERATION','replace','_handleOffline','assign','NOT_FOLLOWING','_sharedOperations','button','delete','unitId','getTypeOfUnitAdded$','forEach','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','none','_status$','status$','use','substring','15530910yuLUMc','_reporters','_handleOnline','subscribe','string','stopPresenting','_configService','init','override','apply','_liveShareService','_handleNewHost','293640JwtnNc','function','find','displayName','8tjhTGL','trim','_init','operations','indexOf','setConfig','PRESENTING','idSuffix','defIds','symbol','svg','getMemberID','add','univer-w-full\x20univer-mb-3\x20univer-text-sm','OFFLINE','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','requireSession','map','random','LIVESHARE_TERMINATE','getConfig'];_0x37cb=function(){return _0x287a5f;};return _0x37cb();}m=we([Ne(0x0,_0x555b6a(L))],m);var c=function(){var _0x134f6b=_0x111845;return c=Object[_0x134f6b(0xb8)]||function(_0x508a85){var _0x926583=_0x134f6b;for(var _0x36c8ea,_0x40042f=0x1,_0x545627=arguments[_0x926583(0xf0)];_0x40042f<_0x545627;_0x40042f++){_0x36c8ea=arguments[_0x40042f];for(var _0x2851cb in _0x36c8ea)Object[_0x926583(0x14c)][_0x926583(0x135)][_0x926583(0x139)](_0x36c8ea,_0x2851cb)&&(_0x508a85[_0x2851cb]=_0x36c8ea[_0x2851cb]);}return _0x508a85;},c[_0x134f6b(0xcf)](this,arguments);},Ce=function(_0xb53272,_0x485057){var _0x58a998=_0x111845,_0x48b06f={};for(var _0x5957b7 in _0xb53272)Object[_0x58a998(0x14c)][_0x58a998(0x135)][_0x58a998(0x139)](_0xb53272,_0x5957b7)&&_0x485057[_0x58a998(0xda)](_0x5957b7)<0x0&&(_0x48b06f[_0x5957b7]=_0xb53272[_0x5957b7]);if(_0xb53272!=null&&typeof Object['getOwnPropertySymbols']==_0x58a998(0xd3)){for(var _0x2cb156=0x0,_0x5957b7=Object[_0x58a998(0x12c)](_0xb53272);_0x2cb156<_0x5957b7[_0x58a998(0xf0)];_0x2cb156++)_0x485057['indexOf'](_0x5957b7[_0x2cb156])<0x0&&Object[_0x58a998(0x14c)][_0x58a998(0x10d)][_0x58a998(0x139)](_0xb53272,_0x5957b7[_0x2cb156])&&(_0x48b06f[_0x5957b7[_0x2cb156]]=_0xb53272[_0x5957b7[_0x2cb156]]);}return _0x48b06f;},W=_0x5acf19(function(_0x37dc4e,_0x16e46d){var _0x1a449a=_0x111845,_0x119090=_0x37dc4e[_0x1a449a(0x111)],_0x5b6d69=_0x37dc4e['id'],_0x453deb=_0x37dc4e[_0x1a449a(0x14d)],_0x23c15a=_0x37dc4e['extend'],_0x5dd178=Ce(_0x37dc4e,[_0x1a449a(0x111),'id',_0x1a449a(0x14d),_0x1a449a(0x11e)]),_0x1071ef=_0x1a449a(0x12a)[_0x1a449a(0x131)](_0x5b6d69,'\x20')[_0x1a449a(0x131)](_0x453deb||'')[_0x1a449a(0xd7)](),_0x5c0b47=_0x349cca('_'[_0x1a449a(0x131)](Le()));return Y(_0x119090,''[_0x1a449a(0x131)](_0x5b6d69),{'defIds':_0x119090[_0x1a449a(0xde)],'idSuffix':_0x5c0b47[_0x1a449a(0x101)]},c({'ref':_0x16e46d,'className':_0x1071ef},_0x5dd178),_0x23c15a);});function Y(_0xc1a45a,_0x3aed32,_0x507dc5,_0x499c42,_0x592d4f){var _0x56eb01=_0x111845;return _0x1b5217(_0xc1a45a['tag'],c(c({'key':_0x3aed32},De(_0xc1a45a,_0x507dc5,_0x592d4f)),_0x499c42),(xe(_0xc1a45a,_0x507dc5)[_0x56eb01(0x156)]||[])[_0x56eb01(0xe8)](function(_0x311f78,_0x240892){var _0x439f93=_0x56eb01;return Y(_0x311f78,''[_0x439f93(0x131)](_0x3aed32,'-')[_0x439f93(0x131)](_0xc1a45a[_0x439f93(0x132)],'-')[_0x439f93(0x131)](_0x240892),_0x507dc5,void 0x0,_0x592d4f);}));}function _0x18f0(_0x38fa2c,_0x6a360f){var _0x37cb35=_0x37cb();return _0x18f0=function(_0x18f026,_0x248a03){_0x18f026=_0x18f026-0xac;var _0x1c1842=_0x37cb35[_0x18f026];return _0x1c1842;},_0x18f0(_0x38fa2c,_0x6a360f);}function De(_0x497c34,_0x1610bb,_0x257ae5){var _0x1979ea=_0x111845,_0x297d31=c({},_0x497c34[_0x1979ea(0x12b)]);_0x257ae5!=null&&_0x257ae5[_0x1979ea(0x13a)]&&_0x297d31['fill']===_0x1979ea(0x13a)&&(_0x297d31['fill']=_0x257ae5[_0x1979ea(0x13a)]),_0x497c34[_0x1979ea(0x132)]===_0x1979ea(0xf2)&&_0x297d31['id']&&(_0x297d31['id']=_0x297d31['id']+_0x1610bb['idSuffix']),Object[_0x1979ea(0x136)](_0x297d31)[_0x1979ea(0xbf)](function(_0x385c07){var _0x423aca=_0x1979ea,_0x42f6dc=_0x385c07[0x0],_0x2e7171=_0x385c07[0x1];_0x42f6dc===_0x423aca(0xf2)&&typeof _0x2e7171==_0x423aca(0xca)&&(_0x297d31[_0x42f6dc]=_0x2e7171['replace'](/url\(#(.*)\)/,_0x423aca(0x106)[_0x423aca(0x131)](_0x1610bb[_0x423aca(0xdd)],')')));});var _0x2b29ee=_0x1610bb[_0x1979ea(0xde)];return!_0x2b29ee||_0x2b29ee['length']===0x0||(_0x497c34[_0x1979ea(0x132)]===_0x1979ea(0xc4)&&_0x297d31[_0x1979ea(0x150)]&&(_0x297d31[_0x1979ea(0x150)]=_0x297d31[_0x1979ea(0x150)]+_0x1610bb[_0x1979ea(0xdd)]),Object[_0x1979ea(0x136)](_0x297d31)[_0x1979ea(0xbf)](function(_0x18cd21){var _0x3ebb58=_0x1979ea,_0x30fc73=_0x18cd21[0x0],_0x7029a=_0x18cd21[0x1];typeof _0x7029a==_0x3ebb58(0xca)&&(_0x297d31[_0x30fc73]=_0x7029a[_0x3ebb58(0xb6)](/url\(#(.*)\)/,_0x3ebb58(0x106)[_0x3ebb58(0x131)](_0x1610bb[_0x3ebb58(0xdd)],')')));})),_0x297d31;}function xe(_0x2eb9b6,_0x1231aa){var _0x126f00=_0x111845,_0x79d83a,_0x4329c6=_0x1231aa['defIds'];return!_0x4329c6||_0x4329c6[_0x126f00(0xf0)]===0x0?_0x2eb9b6:_0x2eb9b6[_0x126f00(0x132)]==='defs'&&(!((_0x79d83a=_0x2eb9b6['children'])===null||_0x79d83a===void 0x0)&&_0x79d83a['length'])?c(c({},_0x2eb9b6),{'children':_0x2eb9b6['children'][_0x126f00(0xe8)](function(_0x2f5ee5){var _0x4c466a=_0x126f00;return typeof _0x2f5ee5[_0x4c466a(0x12b)]['id']==_0x4c466a(0xca)&&_0x4329c6&&_0x4329c6[_0x4c466a(0x162)](_0x2f5ee5['attrs']['id'])?c(c({},_0x2f5ee5),{'attrs':c(c({},_0x2f5ee5[_0x4c466a(0x12b)]),{'id':_0x2f5ee5[_0x4c466a(0x12b)]['id']+_0x1231aa[_0x4c466a(0xdd)]})}):_0x2f5ee5;})}):_0x2eb9b6;}function Le(){var _0x2b139b=_0x111845;return Math[_0x2b139b(0xe9)]()[_0x2b139b(0x128)](0x24)[_0x2b139b(0xc5)](0x2,0x8);}W[_0x111845(0xd5)]='UniverIcon';var ye={'tag':_0x111845(0xe0),'attrs':{'xmlns':_0x111845(0x108),'fill':_0x111845(0xc1),'viewBox':_0x111845(0x10a),'width':_0x111845(0x109),'height':'1em'},'children':[{'tag':_0x111845(0xb1),'attrs':{'fill':_0x111845(0x12f),'d':_0x111845(0xc0)}},{'tag':_0x111845(0xb1),'attrs':{'fill':_0x111845(0x12f),'d':_0x111845(0x10c),'fillRule':'evenodd','clipRule':_0x111845(0x114)}}]},B=_0x5acf19(function(_0x3d83a0,_0x1ddfa6){var _0x14eb1d=_0x111845;return _0x1b5217(W,Object[_0x14eb1d(0xb8)]({},_0x3d83a0,{'id':'live-share-icon','ref':_0x1ddfa6,'icon':ye}));});B[_0x111845(0xd5)]=_0x111845(0xee);var Re=Object[_0x111845(0x13f)],Z=(_0x513ca8,_0x3a40ad,_0x1d8632,_0x59f338)=>{var _0x2866b3=_0x111845;for(var _0x1feb58=_0x59f338>0x1?void 0x0:_0x59f338?Re(_0x3a40ad,_0x1d8632):_0x3a40ad,_0x307d02=_0x513ca8[_0x2866b3(0xf0)]-0x1,_0x44cc42;_0x307d02>=0x0;_0x307d02--)(_0x44cc42=_0x513ca8[_0x307d02])&&(_0x1feb58=_0x44cc42(_0x1feb58)||_0x1feb58);return _0x1feb58;},f=(_0x5af15f,_0x219101)=>(_0x52c4ae,_0x2ef743)=>_0x219101(_0x52c4ae,_0x2ef743,_0x5af15f);let I=class extends _0x355afe{constructor(_0x58ee33,_0x57da69,_0x5125bc){var _0xcaf2a=_0x111845;super(),d(this,_0xcaf2a(0x102),new Map()),(this['_univerInstanceService']=_0x58ee33,this[_0xcaf2a(0xf9)]=_0x57da69,this[_0xcaf2a(0x119)]=_0x5125bc,this[_0xcaf2a(0xd8)]());}async[_0x111845(0x10e)](_0x4debf9){var _0x4a39d1=_0x111845;return this[_0x4a39d1(0x102)][_0x4a39d1(0x15f)](_0x4debf9)||await this[_0x4a39d1(0xf7)](_0x4debf9),this[_0x4a39d1(0x102)]['get'](_0x4debf9);}[_0x111845(0xd8)](){var _0x97c101=_0x111845;this['_univerInstanceService'][_0x97c101(0xbe)](_0x36368d[_0x97c101(0x13b)])[_0x97c101(0xf4)](_0x3fc736(this[_0x97c101(0x123)]))['subscribe'](async _0x31edb5=>{var _0x6862f0=_0x97c101;const _0x45a15b=_0x31edb5[_0x6862f0(0x160)]();this[_0x6862f0(0x102)][_0x6862f0(0x15f)](_0x45a15b)||this[_0x6862f0(0xf7)](_0x45a15b);}),this[_0x97c101(0x14b)][_0x97c101(0xfa)](_0x36368d[_0x97c101(0x13b)])[_0x97c101(0xf4)](_0x3fc736(this[_0x97c101(0x123)]))[_0x97c101(0xc9)](_0x2644dc=>{var _0x409d19=_0x97c101;const _0x3e8dce=_0x2644dc['getUnitId'](),_0x241df4=this['_entities'][_0x409d19(0xf3)](_0x3e8dce);_0x241df4==null||_0x241df4[_0x409d19(0x116)]();});}async[_0x111845(0xf7)](_0x463d7a){var _0x124862=_0x111845;const _0x27a50a=await this[_0x124862(0x119)][_0x124862(0xe7)](_0x463d7a),_0x4b4485=this[_0x124862(0xf9)][_0x124862(0x117)](C,_0x463d7a,_0x27a50a);return _0x4b4485[_0x124862(0xcd)](),this[_0x124862(0x102)][_0x124862(0xf8)](_0x463d7a,_0x4b4485),_0x4b4485;}};I=Z([f(0x0,_0x2a63fd),f(0x1,_0x555b6a(_0x184d2a)),f(0x2,_0x555b6a(_0x1ac019))],I);var h=(_0x81e26b=>(_0x81e26b[_0x111845(0xe4)]=_0x111845(0x152),_0x81e26b[_0x111845(0x143)]=_0x111845(0xb0),_0x81e26b['FOLLOWING']=_0x111845(0xb3),_0x81e26b[_0x111845(0xb9)]=_0x111845(0x11b),_0x81e26b[_0x111845(0xdc)]=_0x111845(0x100),_0x81e26b))(h||{});const Pe=_0x111845(0x113),Ae=0xc8;let C=class extends _0x355afe{constructor(_0x4f6e98,_0x140a09,_0x579960,_0x158d89,_0x3323ec){var _0x17d75c=_0x111845;super(),d(this,_0x17d75c(0xc2),new _0x37413d(_0x17d75c(0xb0))),d(this,'status$',this[_0x17d75c(0xc2)][_0x17d75c(0xff)]()),d(this,'_init',!0x1),d(this,_0x17d75c(0x145),null),d(this,_0x17d75c(0x10b),null),(this[_0x17d75c(0xaf)]=_0x4f6e98,this[_0x17d75c(0x15c)]=_0x140a09,this[_0x17d75c(0xcc)]=_0x579960,this[_0x17d75c(0xd0)]=_0x158d89,this[_0x17d75c(0x11f)]=_0x3323ec);}get[_0x111845(0xef)](){var _0x34dcfc=_0x111845;return this[_0x34dcfc(0xc2)][_0x34dcfc(0x127)]();}[_0x111845(0x116)](){var _0x4f95cf=_0x111845,_0x3ebf86;(_0x3ebf86=this[_0x4f95cf(0x145)])==null||_0x3ebf86[_0x4f95cf(0x116)](),this[_0x4f95cf(0xc2)][_0x4f95cf(0x121)]('idle'),this[_0x4f95cf(0xc2)][_0x4f95cf(0x104)]();}[_0x111845(0xcd)](){var _0x47812c=_0x111845;this[_0x47812c(0xd8)]||(this[_0x47812c(0xd8)]=!0x0,this[_0x47812c(0x15c)][_0x47812c(0xb2)][_0x47812c(0xf4)](_0x3fc736(this['dispose$']))[_0x47812c(0xc9)](_0x4fe7bc=>{var _0x1a8c5e=_0x47812c;switch(_0x4fe7bc){case _0x29ebe5[_0x1a8c5e(0xe4)]:this['_handleOffline']();break;case _0x29ebe5[_0x1a8c5e(0x120)]:this[_0x1a8c5e(0xc8)]();break;}}),this[_0x47812c(0x15c)][_0x47812c(0x10f)][_0x47812c(0xf4)](_0x3fc736(this[_0x47812c(0x123)]))[_0x47812c(0xc9)](_0x4c2a2a=>{var _0x16a734=_0x47812c;const {eventID:_0x593ae2}=_0x4c2a2a;switch(_0x593ae2){case _0x310aef['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4c2a2a);break;case _0x310aef[_0x16a734(0x105)]:this[_0x16a734(0x13d)](_0x4c2a2a);break;case _0x310aef['LIVESHARE_TERMINATE']:this[_0x16a734(0xf5)]();break;case _0x310aef[_0x16a734(0x149)]:this[_0x16a734(0xf1)](_0x4c2a2a);break;}}));}[_0x111845(0x147)](){var _0x2c3bcf=_0x111845;this[_0x2c3bcf(0x15c)][_0x2c3bcf(0x115)]({'eventID':_0x310aef[_0x2c3bcf(0xfc)],'data':{'unitID':this[_0x2c3bcf(0xaf)],'userID':this[_0x2c3bcf(0x15c)][_0x2c3bcf(0xe1)]()}},this[_0x2c3bcf(0xaf)]);}[_0x111845(0xcb)](){var _0x3fe76d=_0x111845;this[_0x3fe76d(0xef)]===_0x3fe76d(0x100)&&(this[_0x3fe76d(0xc2)][_0x3fe76d(0x121)](_0x3fe76d(0xb0)),this['_collabSession'][_0x3fe76d(0x115)]({'eventID':_0x310aef[_0x3fe76d(0xea)],'data':{'unitID':this[_0x3fe76d(0xaf)]}},this[_0x3fe76d(0xaf)]));}['startFollowing'](){var _0x4dccd1=_0x111845;this[_0x4dccd1(0xef)]==='not-following'&&(this['_status$'][_0x4dccd1(0x121)]('following'),this[_0x4dccd1(0x137)]());}[_0x111845(0x141)](){var _0x1a7bbb=_0x111845;this[_0x1a7bbb(0xef)]===_0x1a7bbb(0xb3)&&this['_stopFollowing']();}[_0x111845(0xd1)](_0x8857df){var _0x3a18df=_0x111845;const {presenter:_0x1151ac}=_0x8857df['data'],_0x2da471=this[_0x3a18df(0x15c)][_0x3a18df(0xe1)]();this['_presenter']=_0x1151ac,_0x1151ac===_0x2da471?(this[_0x3a18df(0x14a)](),this[_0x3a18df(0x142)]()):this[_0x3a18df(0xef)]!==_0x3a18df(0x11b)&&(this[_0x3a18df(0x158)](),this[_0x3a18df(0x137)]());}[_0x111845(0x15e)](){var _0x4cdce5=_0x111845;const _0x374b0f={'eventID':_0x310aef['LIVESHARE_FETCH_OPERATIONS']};this[_0x4cdce5(0x15c)][_0x4cdce5(0x115)](_0x374b0f,this['_unitID']);}['_handleTerminate'](){var _0x2f2782=_0x111845;this[_0x2f2782(0x10b)]=null,this[_0x2f2782(0xef)]!==_0x2f2782(0x100)&&this[_0x2f2782(0x144)]();}[_0x111845(0xf1)](_0x1d9439){var _0x29a569=_0x111845;if(this[_0x29a569(0xef)]===_0x29a569(0xb3)&&this[_0x29a569(0x10b)]===_0x1d9439[_0x29a569(0xfe)][_0x29a569(0x112)]){const _0x3e7646=_0x58cb90(_0x1d9439[_0x29a569(0xfe)])[_0x29a569(0x11c)]['reverse']()[_0x29a569(0xd4)](_0x35f3c8=>_0x35f3c8['id']===_0x885b41['id']);if(_0x3e7646){const _0x3c0102=_0x3e7646['params'][_0x29a569(0xbd)],_0x5ab89a=_0x3e7646['params'][_0x29a569(0x14e)]['id'];setTimeout(()=>{var _0xb38178=_0x29a569;this[_0xb38178(0x11f)][_0xb38178(0x130)](_0x592534['id'],{'unitId':_0x3c0102,'subUnitId':_0x5ab89a},{'fromCollab':!0x0});});}}}[_0x111845(0x142)](){var _0xde3308=_0x111845;this[_0xde3308(0xc2)][_0xde3308(0x121)](_0xde3308(0x100));const _0x29ce96=new Map(),_0x28a3aa=this['_commandDisposable']=new _0x5a3486();_0x28a3aa['add'](_0x2b451f(()=>{var _0x8d82d9=_0xde3308;_0x29ce96[_0x8d82d9(0xbf)](_0x30230f=>_0x30230f['complete']()),_0x29ce96[_0x8d82d9(0xec)]();})),_0x28a3aa['add'](this[_0xde3308(0x11f)][_0xde3308(0x125)](_0x5f016a=>{var _0x3f72f4=_0xde3308,_0x36002d;if(_0x5f016a[_0x3f72f4(0x110)]!==_0x216e4e[_0x3f72f4(0xb5)]||!this['_liveShareService']['shouldShareOperation'](_0x5f016a['id']))return;const {id:_0x465dd2}=_0x5f016a;let _0x4fe5e0;_0x29ce96[_0x3f72f4(0x15f)](_0x465dd2)?_0x4fe5e0=_0x29ce96['get'](_0x465dd2):(_0x4fe5e0=new _0x35d171(),_0x29ce96[_0x3f72f4(0xf8)](_0x465dd2,_0x4fe5e0),_0x4fe5e0['pipe'](_0x23c445((_0x36002d=this[_0x3f72f4(0xcc)][_0x3f72f4(0xeb)](Pe))!=null?_0x36002d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f72f4(0xc9)](_0x4a0355=>{var _0x52ba58=_0x3f72f4;this[_0x52ba58(0x15c)]['send']({'eventID':_0x310aef[_0x52ba58(0x105)],'data':{'unitID':this[_0x52ba58(0xaf)],'operations':{[_0x4a0355['id']]:{'id':_0x4a0355['id'],'params':JSON[_0x52ba58(0xad)](_0x4a0355['params'])}}}},this[_0x52ba58(0xaf)]);})),_0x4fe5e0[_0x3f72f4(0x121)](_0x5f016a);})),this[_0xde3308(0xd0)][_0xde3308(0x126)](this[_0xde3308(0xaf)])[_0xde3308(0xbf)](_0x133707=>this[_0xde3308(0x15c)][_0xde3308(0x115)]({'eventID':_0x310aef[_0xde3308(0x105)],'data':{'unitID':this[_0xde3308(0xaf)],'operations':{[_0x133707['id']]:{'id':_0x133707['id'],'params':JSON[_0xde3308(0xad)](_0x133707[_0xde3308(0x15b)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x16aec4=_0x111845,_0x3a3805;this[_0x16aec4(0xc2)][_0x16aec4(0x121)]('idle'),(_0x3a3805=this['_commandDisposable'])==null||_0x3a3805[_0x16aec4(0x116)](),this[_0x16aec4(0x145)]=null;}[_0x111845(0x137)](){var _0x331ff8=_0x111845,_0x2d541b;(_0x2d541b=this[_0x331ff8(0x145)])==null||_0x2d541b[_0x331ff8(0x116)](),this[_0x331ff8(0xc2)][_0x331ff8(0x121)](_0x331ff8(0xb3));}[_0x111845(0x144)](){var _0xcadade=_0x111845,_0x466821;this[_0xcadade(0xc2)][_0xcadade(0x121)](_0xcadade(0xb0)),(_0x466821=this[_0xcadade(0x145)])==null||_0x466821[_0xcadade(0x116)](),this[_0xcadade(0x145)]=null;}['_stopFollowing'](){var _0x285e3d=_0x111845,_0x30edd8;this[_0x285e3d(0xc2)][_0x285e3d(0x121)]('not-following'),(_0x30edd8=this[_0x285e3d(0x145)])==null||_0x30edd8[_0x285e3d(0x116)]();}[_0x111845(0x13d)](_0x47fda){var _0x3c6db2=_0x111845;if([_0x3c6db2(0x100),_0x3c6db2(0x11b),_0x3c6db2(0x152)][_0x3c6db2(0x162)](this[_0x3c6db2(0xef)])||!_0x47fda[_0x3c6db2(0xfe)]['presenter']||_0x47fda[_0x3c6db2(0xfe)][_0x3c6db2(0x154)]===this[_0x3c6db2(0x15c)][_0x3c6db2(0xe1)]())return;this['_status']==='idle'&&this[_0x3c6db2(0x137)]();const _0x3087d5=_0x47fda[_0x3c6db2(0xfe)][_0x3c6db2(0xd9)];Object[_0x3c6db2(0x122)](_0x3087d5)['forEach'](_0x59bebf=>{var _0x1bb567=_0x3c6db2;this[_0x1bb567(0x11f)]['executeCommand'](_0x59bebf['id'],_0x59bebf['params']?JSON[_0x1bb567(0x13c)](_0x59bebf[_0x1bb567(0x15b)]):null,{'fromCollab':!0x0});});}[_0x111845(0xb7)](){var _0x31b2b4=_0x111845,_0x29f3d7;this[_0x31b2b4(0xc2)]['next'](_0x31b2b4(0x152)),(_0x29f3d7=this[_0x31b2b4(0x145)])==null||_0x29f3d7[_0x31b2b4(0x116)]();}[_0x111845(0xc8)](){var _0x1881d6=_0x111845;this['_status$'][_0x1881d6(0x121)](_0x1881d6(0xb0)),this['_fetchOperations']();}};C=Z([f(0x2,_0x5942dd),f(0x3,_0x555b6a(L)),f(0x4,_0xebcdd)],C);function Te(){var _0x5114e4=_0x111845;const _0x3445f6=_0x71080f(I),_0x9f9a1a=_0x71080f(_0x2a63fd),_0x5bac64=_0x3a54bb(()=>_0x9f9a1a[_0x5114e4(0x13e)](_0x36368d[_0x5114e4(0x13b)]),void 0x0,!0x1,[]),[_0x177de8,_0x476210]=_0x198177(null),[_0x21b854,_0x42b410]=_0x198177(h[_0x5114e4(0x143)]),_0x2a1b25=_0x349cca(null);return _0x4a5c1f(()=>(_0x5bac64&&_0x3445f6[_0x5114e4(0x10e)](_0x5bac64['getUnitId']())[_0x5114e4(0x107)](_0x251ef5=>{var _0xc0952d=_0x5114e4;_0x476210(_0x251ef5),_0x2a1b25['current']=_0x251ef5[_0xc0952d(0xc3)][_0xc0952d(0xc9)](_0x155664=>{_0x42b410(_0x155664);});}),()=>{var _0x1e7845=_0x5114e4,_0x394705;(_0x394705=_0x2a1b25[_0x1e7845(0x101)])==null||_0x394705[_0x1e7845(0xe5)](),_0x2a1b25[_0x1e7845(0x101)]=null;}),[_0x5bac64,_0x3445f6]),_0x177de8?_0x33981f(_0x1a6ce9,{'align':'end','disabled':_0x21b854===h[_0x5114e4(0xe4)],'className':_0x5114e4(0x118),'overlay':_0x33981f($e,{'status':_0x21b854,'coordinator':_0x177de8}),'children':_0x33981f(_0x5114e4(0xbb),{'className':_0x1ef98e('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x21b854===h[_0x5114e4(0xe4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21b854!==h['OFFLINE']}),'type':_0x5114e4(0xbb),'children':_0x33981f(B,{'className':_0x5114e4(0x155)})})}):null;}function $e(_0x394cd6){var _0x419be0=_0x111845;const {status:_0x335cc2,coordinator:_0x22fb02}=_0x394cd6;switch(_0x335cc2){case h['IDLE']:return _0x33981f(Fe,{'coordinator':_0x22fb02});case h['FOLLOWING']:return _0x33981f(He,{'coordinator':_0x22fb02});case h['NOT_FOLLOWING']:return _0x33981f(je,{'coordinator':_0x22fb02});case h[_0x419be0(0xe4)]:return _0x33981f(Ve,{});case h[_0x419be0(0xdc)]:return _0x33981f(Ue,{'coordinator':_0x22fb02});default:return null;}}function Fe(_0x3b54a9){var _0x576c38=_0x111845;const {coordinator:_0xa4f667}=_0x3b54a9;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x576c38(0x161),{'className':_0x576c38(0xe3),'children':'Present\x20this\x20document'}),_0x33981f(_0x28744d,{'onClick':()=>_0xa4f667[_0x576c38(0x147)](),'children':'Start'})]});}function He(_0x3b6174){var _0x504461=_0x111845;const {coordinator:_0xf2c592}=_0x3b6174;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x504461(0x161),{'className':_0x504461(0xe3),'children':_0x504461(0xf6)}),_0x33981f(_0x28744d,{'onClick':()=>_0xf2c592[_0x504461(0x141)](),'children':'Stop\x20following'})]});}function je(_0x1f5d45){var _0x216ecd=_0x111845;const {coordinator:_0x335676}=_0x1f5d45;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x216ecd(0x161),{'className':_0x216ecd(0xe3),'children':_0x216ecd(0xe6)}),_0x33981f(_0x28744d,{'variant':_0x216ecd(0x140),'onClick':()=>_0x335676[_0x216ecd(0x15a)](),'children':_0x216ecd(0x129)})]});}function Ue(_0x4d3787){var _0x1a6082=_0x111845;const {coordinator:_0x570917}=_0x4d3787;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x1a6082(0x161),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1a6082(0xfd)}),_0x33981f(_0x28744d,{'variant':'default','onClick':()=>_0x570917[_0x1a6082(0xcb)](),'children':_0x1a6082(0x146)})]});}function Ve(){return _0x33981f(_0x476040,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x111845(0x13f)],ke=(_0x4ad446,_0x55edca,_0x110311,_0x330de9)=>{var _0xb1adee=_0x111845;for(var _0x30a031=_0x330de9>0x1?void 0x0:_0x330de9?Me(_0x55edca,_0x110311):_0x55edca,_0x575951=_0x4ad446[_0xb1adee(0xf0)]-0x1,_0x2ad450;_0x575951>=0x0;_0x575951--)(_0x2ad450=_0x4ad446[_0x575951])&&(_0x30a031=_0x2ad450(_0x30a031)||_0x30a031);return _0x30a031;},$=(_0x98cad0,_0x2e1eb3)=>(_0x1a6655,_0x5e9046)=>_0x2e1eb3(_0x1a6655,_0x5e9046,_0x98cad0);let b=class extends _0x4c2516{constructor(_0x2644fc,_0x574014){var _0x26d564=_0x111845;super(),this[_0x26d564(0xf9)]=_0x2644fc,this[_0x26d564(0x148)]=_0x574014,this[_0x26d564(0x151)]();}[_0x111845(0x151)](){var _0x1bdaf1=_0x111845;this[_0x1bdaf1(0x12d)](this[_0x1bdaf1(0x148)][_0x1bdaf1(0x134)](_0xb3b934[_0x1bdaf1(0x11a)],()=>_0x3f0fd6(Te,this['_injector'])));}};b=ke([$(0x0,_0x555b6a(_0x184d2a)),$(0x1,_0x150f06)],b);var Ge=Object[_0x111845(0x11d)],We=Object[_0x111845(0x13f)],Ye=(_0x5d3fdb,_0x25a8e0,_0x17ff18)=>_0x25a8e0 in _0x5d3fdb?Ge(_0x5d3fdb,_0x25a8e0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17ff18}):_0x5d3fdb[_0x25a8e0]=_0x17ff18,Be=(_0x1cc361,_0x54a335,_0x2d616c,_0x298143)=>{var _0x436b20=_0x111845;for(var _0x5148ac=_0x298143>0x1?void 0x0:_0x298143?We(_0x54a335,_0x2d616c):_0x54a335,_0x277caf=_0x1cc361[_0x436b20(0xf0)]-0x1,_0x42777b;_0x277caf>=0x0;_0x277caf--)(_0x42777b=_0x1cc361[_0x277caf])&&(_0x5148ac=_0x42777b(_0x5148ac)||_0x5148ac);return _0x5148ac;},F=(_0x17fab3,_0x1b0c65)=>(_0x4ebbc2,_0x536082)=>_0x1b0c65(_0x4ebbc2,_0x536082,_0x17fab3),J=(_0x3eddcd,_0x4debfc,_0xaa0a3)=>Ye(_0x3eddcd,typeof _0x4debfc!='symbol'?_0x4debfc+'':_0x4debfc,_0xaa0a3);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x19e569{constructor(_0x16fde1=T,_0x303e94,_0x2f3bb2){var _0x4fe7b5=_0x111845;super(),this['_config']=_0x16fde1,this[_0x4fe7b5(0xf9)]=_0x303e94,this[_0x4fe7b5(0xcc)]=_0x2f3bb2;const {..._0x59c25a}=_0x47cc38({},T,this[_0x4fe7b5(0x12e)]);this[_0x4fe7b5(0xcc)][_0x4fe7b5(0xdb)](Oe,_0x59c25a);}['onStarting'](){var _0x2eefa1=_0x111845;_0x134e0c(this[_0x2eefa1(0xf9)],_0x9bf70b([[L],[I],[m],[b]],this[_0x2eefa1(0x12e)][_0x2eefa1(0xce)])),_0x4b550f(this[_0x2eefa1(0xf9)],[[m]]);}[_0x111845(0x133)](){_0x4b550f(this['_injector'],[[b]]);}};J(O,_0x111845(0x110),_0x36368d[_0x111845(0xfb)]),J(O,'pluginName',Ze),O=Be([_0x49dea1(_0x472ee4),F(0x1,_0x555b6a(_0x184d2a)),F(0x2,_0x5942dd)],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 _0x111845=_0x18f0;(function(_0x36881f,_0x57ffe9){var _0x36827a=_0x18f0,_0x4baee1=_0x36881f();while(!![]){try{var _0x410fb4=-parseInt(_0x36827a(0x124))/0x1*(parseInt(_0x36827a(0x157))/0x2)+parseInt(_0x36827a(0x138))/0x3*(parseInt(_0x36827a(0xd6))/0x4)+-parseInt(_0x36827a(0xb4))/0x5+parseInt(_0x36827a(0xd2))/0x6+-parseInt(_0x36827a(0x159))/0x7*(parseInt(_0x36827a(0xae))/0x8)+-parseInt(_0x36827a(0x14f))/0x9+parseInt(_0x36827a(0xc6))/0xa;if(_0x410fb4===_0x57ffe9)break;else _0x4baee1['push'](_0x4baee1['shift']());}catch(_0x4a413d){_0x4baee1['push'](_0x4baee1['shift']());}}}(_0x37cb,0x81bbc));var q=Object[_0x111845(0x11d)],z=(_0x4df1c8,_0x3a66de,_0x4d7574)=>_0x3a66de in _0x4df1c8?q(_0x4df1c8,_0x3a66de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d7574}):_0x4df1c8[_0x3a66de]=_0x4d7574,d=(_0x474221,_0x1aaf80,_0x23a779)=>z(_0x474221,typeof _0x1aaf80!=_0x111845(0xdf)?_0x1aaf80+'':_0x1aaf80,_0x23a779);import{CollaborationSessionService as _0x1ac019,SessionStatus as _0x29ebe5,UniverCollaborationClientPlugin as _0x472ee4}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4c2516,toDisposable as _0x2b451f,Inject as _0x555b6a,IUniverInstanceService as _0x2a63fd,Injector as _0x184d2a,IConfigService as _0x5942dd,ICommandService as _0xebcdd,RxDisposable as _0x355afe,UniverInstanceType as _0x36368d,DisposableCollection as _0x5a3486,CommandType as _0x216e4e,DependentOn as _0x49dea1,Plugin as _0x19e569,merge as _0x47cc38,registerDependencies as _0x134e0c,mergeOverrideWithDependencies as _0x9bf70b,touchDependencies as _0x4b550f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x592534,InsertSheetMutation as _0x885b41}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5f3cc2,SetScrollOperation as _0x44c772}from'@univerjs/sheets-ui';import{useDependency as _0x71080f,useObservable as _0x3a54bb,IUIPartsService as _0x150f06,BuiltInUIPart as _0xb3b934,connectInjector as _0x3f0fd6}from'@univerjs/ui';import{jsx as _0x33981f,jsxs as _0x6e3e1,Fragment as _0x476040}from'react/jsx-runtime';import{Dropdown as _0x1a6ce9,clsx as _0x1ef98e,Button as _0x28744d}from'@univerjs/design';import{forwardRef as _0x5acf19,useRef as _0x349cca,createElement as _0x1b5217,useState as _0x198177,useEffect as _0x4a5c1f}from'react';import{CollaborationEvent as _0x310aef,parseProtocolChangeset as _0x58cb90}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37413d,Subject as _0x35d171}from'rxjs';import{takeUntil as _0x3fc736,throttleTime as _0x23c445}from'rxjs/operators';const Oe=_0x111845(0x153),T={};class L extends _0x4c2516{constructor(){var _0x22424c=_0x111845;super(...arguments),d(this,_0x22424c(0xba),new Set()),d(this,'_reporters',new Set());}[_0x111845(0xed)](_0x13819b){var _0x392eab=_0x111845;return this['_sharedOperations'][_0x392eab(0xe2)](_0x13819b),_0x2b451f(()=>this['_sharedOperations']['delete'](_0x13819b));}[_0x111845(0xac)](_0x5d9a2b){var _0x40403c=_0x111845;return this['_reporters'][_0x40403c(0xe2)](_0x5d9a2b),_0x2b451f(()=>this[_0x40403c(0xc7)][_0x40403c(0xbc)](_0x5d9a2b));}[_0x111845(0x103)](_0x26ab74){return this['_sharedOperations']['has'](_0x26ab74);}[_0x111845(0x126)](_0x5e0690){var _0x529b47=_0x111845;return Array[_0x529b47(0x15d)](this[_0x529b47(0xc7)])[_0x529b47(0xe8)](_0x31e042=>_0x31e042(_0x5e0690));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x4545ea,_0x2fc2e2,_0x5858a0,_0x45e868)=>{for(var _0x34e847=_0x45e868>0x1?void 0x0:_0x45e868?Ee(_0x2fc2e2,_0x5858a0):_0x2fc2e2,_0x20e5c5=_0x4545ea['length']-0x1,_0x3a0203;_0x20e5c5>=0x0;_0x20e5c5--)(_0x3a0203=_0x4545ea[_0x20e5c5])&&(_0x34e847=_0x3a0203(_0x34e847)||_0x34e847);return _0x34e847;},Ne=(_0x4b2d42,_0x581061)=>(_0x491682,_0x550474)=>_0x581061(_0x491682,_0x550474,_0x4b2d42);let m=class extends _0x4c2516{constructor(_0x30ec72){var _0x35729a=_0x111845;super(),this[_0x35729a(0xd0)]=_0x30ec72,this[_0x35729a(0xd8)]();}[_0x111845(0xd8)](){var _0x6adbc3=_0x111845;[_0x5f3cc2['id'],_0x44c772['id'],_0x592534['id']][_0x6adbc3(0xbf)](_0x4f11a4=>{var _0x5d8270=_0x6adbc3;this[_0x5d8270(0x12d)](this['_liveShareService'][_0x5d8270(0xed)](_0x4f11a4));});}};function _0x37cb(){var _0x287a5f=['clear','registerSharedOperation','LiveShareIcon','_status','length','_handleNewChangeSets','mask','get','pipe','_handleTerminate','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','set','_injector','getTypeOfUnitDisposed$','UNIVER_UNKNOWN','LIVESHARE_REQUEST_HOST','You\x27re\x20presenting\x20the\x20document','data','asObservable','presenting','current','_entities','shouldShareOperation','complete','LIVESHARE_OPERATION','url(#$1','then','http://www.w3.org/2000/svg','1em','0\x200\x2017\x2017','_presenter','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','propertyIsEnumerable','getLiveShareCoordinator','event$','type','icon','memberID','SAME_OPERATION_SHARE_INTERVAL','evenodd','send','dispose','createInstance','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','_collabSessionService','HEADER_MENU','not-following','mutations','defineProperty','extend','_commandService','ONLINE','next','values','dispose$','1357Zfufmh','onCommandExecuted','getInitialStates','getValue','toString','Start\x20following','univerjs-icon\x20univerjs-icon-','attrs','getOwnPropertySymbols','disposeWithMe','_config','currentColor','executeCommand','concat','tag','onRendered','registerComponent','hasOwnProperty','entries','_startFollowing','1441695delUgg','call','colorChannel1','UNIVER_SHEET','parse','_handleOperation','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','text','stopFollowing','_startPresenting','IDLE','_beIdle','_commandDisposable','Stop\x20presenting','tryStartPresenting','_uiPartsService','NEW_CHANGESETS','_stopFollowing','_univerInstanceService','prototype','className','sheet','4421439eHoyYx','xlink:href','_mountLiveShare','offline','live-share.config','presenter','univer-size-4','children','1186ClgJjx','_stopPresenting','717556SwHVQV','startFollowing','params','_collabSession','from','_fetchOperations','has','getUnitId','div','includes','registerInitialStateReporter','stringify','24lTjAiv','_unitID','idle','path','sessionStatus$','following','2141385mavIhR','OPERATION','replace','_handleOffline','assign','NOT_FOLLOWING','_sharedOperations','button','delete','unitId','getTypeOfUnitAdded$','forEach','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','none','_status$','status$','use','substring','15530910yuLUMc','_reporters','_handleOnline','subscribe','string','stopPresenting','_configService','init','override','apply','_liveShareService','_handleNewHost','293640JwtnNc','function','find','displayName','8tjhTGL','trim','_init','operations','indexOf','setConfig','PRESENTING','idSuffix','defIds','symbol','svg','getMemberID','add','univer-w-full\x20univer-mb-3\x20univer-text-sm','OFFLINE','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','requireSession','map','random','LIVESHARE_TERMINATE','getConfig'];_0x37cb=function(){return _0x287a5f;};return _0x37cb();}m=we([Ne(0x0,_0x555b6a(L))],m);var c=function(){var _0x134f6b=_0x111845;return c=Object[_0x134f6b(0xb8)]||function(_0x508a85){var _0x926583=_0x134f6b;for(var _0x36c8ea,_0x40042f=0x1,_0x545627=arguments[_0x926583(0xf0)];_0x40042f<_0x545627;_0x40042f++){_0x36c8ea=arguments[_0x40042f];for(var _0x2851cb in _0x36c8ea)Object[_0x926583(0x14c)][_0x926583(0x135)][_0x926583(0x139)](_0x36c8ea,_0x2851cb)&&(_0x508a85[_0x2851cb]=_0x36c8ea[_0x2851cb]);}return _0x508a85;},c[_0x134f6b(0xcf)](this,arguments);},Ce=function(_0xb53272,_0x485057){var _0x58a998=_0x111845,_0x48b06f={};for(var _0x5957b7 in _0xb53272)Object[_0x58a998(0x14c)][_0x58a998(0x135)][_0x58a998(0x139)](_0xb53272,_0x5957b7)&&_0x485057[_0x58a998(0xda)](_0x5957b7)<0x0&&(_0x48b06f[_0x5957b7]=_0xb53272[_0x5957b7]);if(_0xb53272!=null&&typeof Object['getOwnPropertySymbols']==_0x58a998(0xd3)){for(var _0x2cb156=0x0,_0x5957b7=Object[_0x58a998(0x12c)](_0xb53272);_0x2cb156<_0x5957b7[_0x58a998(0xf0)];_0x2cb156++)_0x485057['indexOf'](_0x5957b7[_0x2cb156])<0x0&&Object[_0x58a998(0x14c)][_0x58a998(0x10d)][_0x58a998(0x139)](_0xb53272,_0x5957b7[_0x2cb156])&&(_0x48b06f[_0x5957b7[_0x2cb156]]=_0xb53272[_0x5957b7[_0x2cb156]]);}return _0x48b06f;},W=_0x5acf19(function(_0x37dc4e,_0x16e46d){var _0x1a449a=_0x111845,_0x119090=_0x37dc4e[_0x1a449a(0x111)],_0x5b6d69=_0x37dc4e['id'],_0x453deb=_0x37dc4e[_0x1a449a(0x14d)],_0x23c15a=_0x37dc4e['extend'],_0x5dd178=Ce(_0x37dc4e,[_0x1a449a(0x111),'id',_0x1a449a(0x14d),_0x1a449a(0x11e)]),_0x1071ef=_0x1a449a(0x12a)[_0x1a449a(0x131)](_0x5b6d69,'\x20')[_0x1a449a(0x131)](_0x453deb||'')[_0x1a449a(0xd7)](),_0x5c0b47=_0x349cca('_'[_0x1a449a(0x131)](Le()));return Y(_0x119090,''[_0x1a449a(0x131)](_0x5b6d69),{'defIds':_0x119090[_0x1a449a(0xde)],'idSuffix':_0x5c0b47[_0x1a449a(0x101)]},c({'ref':_0x16e46d,'className':_0x1071ef},_0x5dd178),_0x23c15a);});function Y(_0xc1a45a,_0x3aed32,_0x507dc5,_0x499c42,_0x592d4f){var _0x56eb01=_0x111845;return _0x1b5217(_0xc1a45a['tag'],c(c({'key':_0x3aed32},De(_0xc1a45a,_0x507dc5,_0x592d4f)),_0x499c42),(xe(_0xc1a45a,_0x507dc5)[_0x56eb01(0x156)]||[])[_0x56eb01(0xe8)](function(_0x311f78,_0x240892){var _0x439f93=_0x56eb01;return Y(_0x311f78,''[_0x439f93(0x131)](_0x3aed32,'-')[_0x439f93(0x131)](_0xc1a45a[_0x439f93(0x132)],'-')[_0x439f93(0x131)](_0x240892),_0x507dc5,void 0x0,_0x592d4f);}));}function _0x18f0(_0x38fa2c,_0x6a360f){var _0x37cb35=_0x37cb();return _0x18f0=function(_0x18f026,_0x248a03){_0x18f026=_0x18f026-0xac;var _0x1c1842=_0x37cb35[_0x18f026];return _0x1c1842;},_0x18f0(_0x38fa2c,_0x6a360f);}function De(_0x497c34,_0x1610bb,_0x257ae5){var _0x1979ea=_0x111845,_0x297d31=c({},_0x497c34[_0x1979ea(0x12b)]);_0x257ae5!=null&&_0x257ae5[_0x1979ea(0x13a)]&&_0x297d31['fill']===_0x1979ea(0x13a)&&(_0x297d31['fill']=_0x257ae5[_0x1979ea(0x13a)]),_0x497c34[_0x1979ea(0x132)]===_0x1979ea(0xf2)&&_0x297d31['id']&&(_0x297d31['id']=_0x297d31['id']+_0x1610bb['idSuffix']),Object[_0x1979ea(0x136)](_0x297d31)[_0x1979ea(0xbf)](function(_0x385c07){var _0x423aca=_0x1979ea,_0x42f6dc=_0x385c07[0x0],_0x2e7171=_0x385c07[0x1];_0x42f6dc===_0x423aca(0xf2)&&typeof _0x2e7171==_0x423aca(0xca)&&(_0x297d31[_0x42f6dc]=_0x2e7171['replace'](/url\(#(.*)\)/,_0x423aca(0x106)[_0x423aca(0x131)](_0x1610bb[_0x423aca(0xdd)],')')));});var _0x2b29ee=_0x1610bb[_0x1979ea(0xde)];return!_0x2b29ee||_0x2b29ee['length']===0x0||(_0x497c34[_0x1979ea(0x132)]===_0x1979ea(0xc4)&&_0x297d31[_0x1979ea(0x150)]&&(_0x297d31[_0x1979ea(0x150)]=_0x297d31[_0x1979ea(0x150)]+_0x1610bb[_0x1979ea(0xdd)]),Object[_0x1979ea(0x136)](_0x297d31)[_0x1979ea(0xbf)](function(_0x18cd21){var _0x3ebb58=_0x1979ea,_0x30fc73=_0x18cd21[0x0],_0x7029a=_0x18cd21[0x1];typeof _0x7029a==_0x3ebb58(0xca)&&(_0x297d31[_0x30fc73]=_0x7029a[_0x3ebb58(0xb6)](/url\(#(.*)\)/,_0x3ebb58(0x106)[_0x3ebb58(0x131)](_0x1610bb[_0x3ebb58(0xdd)],')')));})),_0x297d31;}function xe(_0x2eb9b6,_0x1231aa){var _0x126f00=_0x111845,_0x79d83a,_0x4329c6=_0x1231aa['defIds'];return!_0x4329c6||_0x4329c6[_0x126f00(0xf0)]===0x0?_0x2eb9b6:_0x2eb9b6[_0x126f00(0x132)]==='defs'&&(!((_0x79d83a=_0x2eb9b6['children'])===null||_0x79d83a===void 0x0)&&_0x79d83a['length'])?c(c({},_0x2eb9b6),{'children':_0x2eb9b6['children'][_0x126f00(0xe8)](function(_0x2f5ee5){var _0x4c466a=_0x126f00;return typeof _0x2f5ee5[_0x4c466a(0x12b)]['id']==_0x4c466a(0xca)&&_0x4329c6&&_0x4329c6[_0x4c466a(0x162)](_0x2f5ee5['attrs']['id'])?c(c({},_0x2f5ee5),{'attrs':c(c({},_0x2f5ee5[_0x4c466a(0x12b)]),{'id':_0x2f5ee5[_0x4c466a(0x12b)]['id']+_0x1231aa[_0x4c466a(0xdd)]})}):_0x2f5ee5;})}):_0x2eb9b6;}function Le(){var _0x2b139b=_0x111845;return Math[_0x2b139b(0xe9)]()[_0x2b139b(0x128)](0x24)[_0x2b139b(0xc5)](0x2,0x8);}W[_0x111845(0xd5)]='UniverIcon';var ye={'tag':_0x111845(0xe0),'attrs':{'xmlns':_0x111845(0x108),'fill':_0x111845(0xc1),'viewBox':_0x111845(0x10a),'width':_0x111845(0x109),'height':'1em'},'children':[{'tag':_0x111845(0xb1),'attrs':{'fill':_0x111845(0x12f),'d':_0x111845(0xc0)}},{'tag':_0x111845(0xb1),'attrs':{'fill':_0x111845(0x12f),'d':_0x111845(0x10c),'fillRule':'evenodd','clipRule':_0x111845(0x114)}}]},B=_0x5acf19(function(_0x3d83a0,_0x1ddfa6){var _0x14eb1d=_0x111845;return _0x1b5217(W,Object[_0x14eb1d(0xb8)]({},_0x3d83a0,{'id':'live-share-icon','ref':_0x1ddfa6,'icon':ye}));});B[_0x111845(0xd5)]=_0x111845(0xee);var Re=Object[_0x111845(0x13f)],Z=(_0x513ca8,_0x3a40ad,_0x1d8632,_0x59f338)=>{var _0x2866b3=_0x111845;for(var _0x1feb58=_0x59f338>0x1?void 0x0:_0x59f338?Re(_0x3a40ad,_0x1d8632):_0x3a40ad,_0x307d02=_0x513ca8[_0x2866b3(0xf0)]-0x1,_0x44cc42;_0x307d02>=0x0;_0x307d02--)(_0x44cc42=_0x513ca8[_0x307d02])&&(_0x1feb58=_0x44cc42(_0x1feb58)||_0x1feb58);return _0x1feb58;},f=(_0x5af15f,_0x219101)=>(_0x52c4ae,_0x2ef743)=>_0x219101(_0x52c4ae,_0x2ef743,_0x5af15f);let I=class extends _0x355afe{constructor(_0x58ee33,_0x57da69,_0x5125bc){var _0xcaf2a=_0x111845;super(),d(this,_0xcaf2a(0x102),new Map()),(this['_univerInstanceService']=_0x58ee33,this[_0xcaf2a(0xf9)]=_0x57da69,this[_0xcaf2a(0x119)]=_0x5125bc,this[_0xcaf2a(0xd8)]());}async[_0x111845(0x10e)](_0x4debf9){var _0x4a39d1=_0x111845;return this[_0x4a39d1(0x102)][_0x4a39d1(0x15f)](_0x4debf9)||await this[_0x4a39d1(0xf7)](_0x4debf9),this[_0x4a39d1(0x102)]['get'](_0x4debf9);}[_0x111845(0xd8)](){var _0x97c101=_0x111845;this['_univerInstanceService'][_0x97c101(0xbe)](_0x36368d[_0x97c101(0x13b)])[_0x97c101(0xf4)](_0x3fc736(this[_0x97c101(0x123)]))['subscribe'](async _0x31edb5=>{var _0x6862f0=_0x97c101;const _0x45a15b=_0x31edb5[_0x6862f0(0x160)]();this[_0x6862f0(0x102)][_0x6862f0(0x15f)](_0x45a15b)||this[_0x6862f0(0xf7)](_0x45a15b);}),this[_0x97c101(0x14b)][_0x97c101(0xfa)](_0x36368d[_0x97c101(0x13b)])[_0x97c101(0xf4)](_0x3fc736(this[_0x97c101(0x123)]))[_0x97c101(0xc9)](_0x2644dc=>{var _0x409d19=_0x97c101;const _0x3e8dce=_0x2644dc['getUnitId'](),_0x241df4=this['_entities'][_0x409d19(0xf3)](_0x3e8dce);_0x241df4==null||_0x241df4[_0x409d19(0x116)]();});}async[_0x111845(0xf7)](_0x463d7a){var _0x124862=_0x111845;const _0x27a50a=await this[_0x124862(0x119)][_0x124862(0xe7)](_0x463d7a),_0x4b4485=this[_0x124862(0xf9)][_0x124862(0x117)](C,_0x463d7a,_0x27a50a);return _0x4b4485[_0x124862(0xcd)](),this[_0x124862(0x102)][_0x124862(0xf8)](_0x463d7a,_0x4b4485),_0x4b4485;}};I=Z([f(0x0,_0x2a63fd),f(0x1,_0x555b6a(_0x184d2a)),f(0x2,_0x555b6a(_0x1ac019))],I);var h=(_0x81e26b=>(_0x81e26b[_0x111845(0xe4)]=_0x111845(0x152),_0x81e26b[_0x111845(0x143)]=_0x111845(0xb0),_0x81e26b['FOLLOWING']=_0x111845(0xb3),_0x81e26b[_0x111845(0xb9)]=_0x111845(0x11b),_0x81e26b[_0x111845(0xdc)]=_0x111845(0x100),_0x81e26b))(h||{});const Pe=_0x111845(0x113),Ae=0xc8;let C=class extends _0x355afe{constructor(_0x4f6e98,_0x140a09,_0x579960,_0x158d89,_0x3323ec){var _0x17d75c=_0x111845;super(),d(this,_0x17d75c(0xc2),new _0x37413d(_0x17d75c(0xb0))),d(this,'status$',this[_0x17d75c(0xc2)][_0x17d75c(0xff)]()),d(this,'_init',!0x1),d(this,_0x17d75c(0x145),null),d(this,_0x17d75c(0x10b),null),(this[_0x17d75c(0xaf)]=_0x4f6e98,this[_0x17d75c(0x15c)]=_0x140a09,this[_0x17d75c(0xcc)]=_0x579960,this[_0x17d75c(0xd0)]=_0x158d89,this[_0x17d75c(0x11f)]=_0x3323ec);}get[_0x111845(0xef)](){var _0x34dcfc=_0x111845;return this[_0x34dcfc(0xc2)][_0x34dcfc(0x127)]();}[_0x111845(0x116)](){var _0x4f95cf=_0x111845,_0x3ebf86;(_0x3ebf86=this[_0x4f95cf(0x145)])==null||_0x3ebf86[_0x4f95cf(0x116)](),this[_0x4f95cf(0xc2)][_0x4f95cf(0x121)]('idle'),this[_0x4f95cf(0xc2)][_0x4f95cf(0x104)]();}[_0x111845(0xcd)](){var _0x47812c=_0x111845;this[_0x47812c(0xd8)]||(this[_0x47812c(0xd8)]=!0x0,this[_0x47812c(0x15c)][_0x47812c(0xb2)][_0x47812c(0xf4)](_0x3fc736(this['dispose$']))[_0x47812c(0xc9)](_0x4fe7bc=>{var _0x1a8c5e=_0x47812c;switch(_0x4fe7bc){case _0x29ebe5[_0x1a8c5e(0xe4)]:this['_handleOffline']();break;case _0x29ebe5[_0x1a8c5e(0x120)]:this[_0x1a8c5e(0xc8)]();break;}}),this[_0x47812c(0x15c)][_0x47812c(0x10f)][_0x47812c(0xf4)](_0x3fc736(this[_0x47812c(0x123)]))[_0x47812c(0xc9)](_0x4c2a2a=>{var _0x16a734=_0x47812c;const {eventID:_0x593ae2}=_0x4c2a2a;switch(_0x593ae2){case _0x310aef['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4c2a2a);break;case _0x310aef[_0x16a734(0x105)]:this[_0x16a734(0x13d)](_0x4c2a2a);break;case _0x310aef['LIVESHARE_TERMINATE']:this[_0x16a734(0xf5)]();break;case _0x310aef[_0x16a734(0x149)]:this[_0x16a734(0xf1)](_0x4c2a2a);break;}}));}[_0x111845(0x147)](){var _0x2c3bcf=_0x111845;this[_0x2c3bcf(0x15c)][_0x2c3bcf(0x115)]({'eventID':_0x310aef[_0x2c3bcf(0xfc)],'data':{'unitID':this[_0x2c3bcf(0xaf)],'userID':this[_0x2c3bcf(0x15c)][_0x2c3bcf(0xe1)]()}},this[_0x2c3bcf(0xaf)]);}[_0x111845(0xcb)](){var _0x3fe76d=_0x111845;this[_0x3fe76d(0xef)]===_0x3fe76d(0x100)&&(this[_0x3fe76d(0xc2)][_0x3fe76d(0x121)](_0x3fe76d(0xb0)),this['_collabSession'][_0x3fe76d(0x115)]({'eventID':_0x310aef[_0x3fe76d(0xea)],'data':{'unitID':this[_0x3fe76d(0xaf)]}},this[_0x3fe76d(0xaf)]));}['startFollowing'](){var _0x4dccd1=_0x111845;this[_0x4dccd1(0xef)]==='not-following'&&(this['_status$'][_0x4dccd1(0x121)]('following'),this[_0x4dccd1(0x137)]());}[_0x111845(0x141)](){var _0x1a7bbb=_0x111845;this[_0x1a7bbb(0xef)]===_0x1a7bbb(0xb3)&&this['_stopFollowing']();}[_0x111845(0xd1)](_0x8857df){var _0x3a18df=_0x111845;const {presenter:_0x1151ac}=_0x8857df['data'],_0x2da471=this[_0x3a18df(0x15c)][_0x3a18df(0xe1)]();this['_presenter']=_0x1151ac,_0x1151ac===_0x2da471?(this[_0x3a18df(0x14a)](),this[_0x3a18df(0x142)]()):this[_0x3a18df(0xef)]!==_0x3a18df(0x11b)&&(this[_0x3a18df(0x158)](),this[_0x3a18df(0x137)]());}[_0x111845(0x15e)](){var _0x4cdce5=_0x111845;const _0x374b0f={'eventID':_0x310aef['LIVESHARE_FETCH_OPERATIONS']};this[_0x4cdce5(0x15c)][_0x4cdce5(0x115)](_0x374b0f,this['_unitID']);}['_handleTerminate'](){var _0x2f2782=_0x111845;this[_0x2f2782(0x10b)]=null,this[_0x2f2782(0xef)]!==_0x2f2782(0x100)&&this[_0x2f2782(0x144)]();}[_0x111845(0xf1)](_0x1d9439){var _0x29a569=_0x111845;if(this[_0x29a569(0xef)]===_0x29a569(0xb3)&&this[_0x29a569(0x10b)]===_0x1d9439[_0x29a569(0xfe)][_0x29a569(0x112)]){const _0x3e7646=_0x58cb90(_0x1d9439[_0x29a569(0xfe)])[_0x29a569(0x11c)]['reverse']()[_0x29a569(0xd4)](_0x35f3c8=>_0x35f3c8['id']===_0x885b41['id']);if(_0x3e7646){const _0x3c0102=_0x3e7646['params'][_0x29a569(0xbd)],_0x5ab89a=_0x3e7646['params'][_0x29a569(0x14e)]['id'];setTimeout(()=>{var _0xb38178=_0x29a569;this[_0xb38178(0x11f)][_0xb38178(0x130)](_0x592534['id'],{'unitId':_0x3c0102,'subUnitId':_0x5ab89a},{'fromCollab':!0x0});});}}}[_0x111845(0x142)](){var _0xde3308=_0x111845;this[_0xde3308(0xc2)][_0xde3308(0x121)](_0xde3308(0x100));const _0x29ce96=new Map(),_0x28a3aa=this['_commandDisposable']=new _0x5a3486();_0x28a3aa['add'](_0x2b451f(()=>{var _0x8d82d9=_0xde3308;_0x29ce96[_0x8d82d9(0xbf)](_0x30230f=>_0x30230f['complete']()),_0x29ce96[_0x8d82d9(0xec)]();})),_0x28a3aa['add'](this[_0xde3308(0x11f)][_0xde3308(0x125)](_0x5f016a=>{var _0x3f72f4=_0xde3308,_0x36002d;if(_0x5f016a[_0x3f72f4(0x110)]!==_0x216e4e[_0x3f72f4(0xb5)]||!this['_liveShareService']['shouldShareOperation'](_0x5f016a['id']))return;const {id:_0x465dd2}=_0x5f016a;let _0x4fe5e0;_0x29ce96[_0x3f72f4(0x15f)](_0x465dd2)?_0x4fe5e0=_0x29ce96['get'](_0x465dd2):(_0x4fe5e0=new _0x35d171(),_0x29ce96[_0x3f72f4(0xf8)](_0x465dd2,_0x4fe5e0),_0x4fe5e0['pipe'](_0x23c445((_0x36002d=this[_0x3f72f4(0xcc)][_0x3f72f4(0xeb)](Pe))!=null?_0x36002d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f72f4(0xc9)](_0x4a0355=>{var _0x52ba58=_0x3f72f4;this[_0x52ba58(0x15c)]['send']({'eventID':_0x310aef[_0x52ba58(0x105)],'data':{'unitID':this[_0x52ba58(0xaf)],'operations':{[_0x4a0355['id']]:{'id':_0x4a0355['id'],'params':JSON[_0x52ba58(0xad)](_0x4a0355['params'])}}}},this[_0x52ba58(0xaf)]);})),_0x4fe5e0[_0x3f72f4(0x121)](_0x5f016a);})),this[_0xde3308(0xd0)][_0xde3308(0x126)](this[_0xde3308(0xaf)])[_0xde3308(0xbf)](_0x133707=>this[_0xde3308(0x15c)][_0xde3308(0x115)]({'eventID':_0x310aef[_0xde3308(0x105)],'data':{'unitID':this[_0xde3308(0xaf)],'operations':{[_0x133707['id']]:{'id':_0x133707['id'],'params':JSON[_0xde3308(0xad)](_0x133707[_0xde3308(0x15b)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x16aec4=_0x111845,_0x3a3805;this[_0x16aec4(0xc2)][_0x16aec4(0x121)]('idle'),(_0x3a3805=this['_commandDisposable'])==null||_0x3a3805[_0x16aec4(0x116)](),this[_0x16aec4(0x145)]=null;}[_0x111845(0x137)](){var _0x331ff8=_0x111845,_0x2d541b;(_0x2d541b=this[_0x331ff8(0x145)])==null||_0x2d541b[_0x331ff8(0x116)](),this[_0x331ff8(0xc2)][_0x331ff8(0x121)](_0x331ff8(0xb3));}[_0x111845(0x144)](){var _0xcadade=_0x111845,_0x466821;this[_0xcadade(0xc2)][_0xcadade(0x121)](_0xcadade(0xb0)),(_0x466821=this[_0xcadade(0x145)])==null||_0x466821[_0xcadade(0x116)](),this[_0xcadade(0x145)]=null;}['_stopFollowing'](){var _0x285e3d=_0x111845,_0x30edd8;this[_0x285e3d(0xc2)][_0x285e3d(0x121)]('not-following'),(_0x30edd8=this[_0x285e3d(0x145)])==null||_0x30edd8[_0x285e3d(0x116)]();}[_0x111845(0x13d)](_0x47fda){var _0x3c6db2=_0x111845;if([_0x3c6db2(0x100),_0x3c6db2(0x11b),_0x3c6db2(0x152)][_0x3c6db2(0x162)](this[_0x3c6db2(0xef)])||!_0x47fda[_0x3c6db2(0xfe)]['presenter']||_0x47fda[_0x3c6db2(0xfe)][_0x3c6db2(0x154)]===this[_0x3c6db2(0x15c)][_0x3c6db2(0xe1)]())return;this['_status']==='idle'&&this[_0x3c6db2(0x137)]();const _0x3087d5=_0x47fda[_0x3c6db2(0xfe)][_0x3c6db2(0xd9)];Object[_0x3c6db2(0x122)](_0x3087d5)['forEach'](_0x59bebf=>{var _0x1bb567=_0x3c6db2;this[_0x1bb567(0x11f)]['executeCommand'](_0x59bebf['id'],_0x59bebf['params']?JSON[_0x1bb567(0x13c)](_0x59bebf[_0x1bb567(0x15b)]):null,{'fromCollab':!0x0});});}[_0x111845(0xb7)](){var _0x31b2b4=_0x111845,_0x29f3d7;this[_0x31b2b4(0xc2)]['next'](_0x31b2b4(0x152)),(_0x29f3d7=this[_0x31b2b4(0x145)])==null||_0x29f3d7[_0x31b2b4(0x116)]();}[_0x111845(0xc8)](){var _0x1881d6=_0x111845;this['_status$'][_0x1881d6(0x121)](_0x1881d6(0xb0)),this['_fetchOperations']();}};C=Z([f(0x2,_0x5942dd),f(0x3,_0x555b6a(L)),f(0x4,_0xebcdd)],C);function Te(){var _0x5114e4=_0x111845;const _0x3445f6=_0x71080f(I),_0x9f9a1a=_0x71080f(_0x2a63fd),_0x5bac64=_0x3a54bb(()=>_0x9f9a1a[_0x5114e4(0x13e)](_0x36368d[_0x5114e4(0x13b)]),void 0x0,!0x1,[]),[_0x177de8,_0x476210]=_0x198177(null),[_0x21b854,_0x42b410]=_0x198177(h[_0x5114e4(0x143)]),_0x2a1b25=_0x349cca(null);return _0x4a5c1f(()=>(_0x5bac64&&_0x3445f6[_0x5114e4(0x10e)](_0x5bac64['getUnitId']())[_0x5114e4(0x107)](_0x251ef5=>{var _0xc0952d=_0x5114e4;_0x476210(_0x251ef5),_0x2a1b25['current']=_0x251ef5[_0xc0952d(0xc3)][_0xc0952d(0xc9)](_0x155664=>{_0x42b410(_0x155664);});}),()=>{var _0x1e7845=_0x5114e4,_0x394705;(_0x394705=_0x2a1b25[_0x1e7845(0x101)])==null||_0x394705[_0x1e7845(0xe5)](),_0x2a1b25[_0x1e7845(0x101)]=null;}),[_0x5bac64,_0x3445f6]),_0x177de8?_0x33981f(_0x1a6ce9,{'align':'end','disabled':_0x21b854===h[_0x5114e4(0xe4)],'className':_0x5114e4(0x118),'overlay':_0x33981f($e,{'status':_0x21b854,'coordinator':_0x177de8}),'children':_0x33981f(_0x5114e4(0xbb),{'className':_0x1ef98e('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x21b854===h[_0x5114e4(0xe4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21b854!==h['OFFLINE']}),'type':_0x5114e4(0xbb),'children':_0x33981f(B,{'className':_0x5114e4(0x155)})})}):null;}function $e(_0x394cd6){var _0x419be0=_0x111845;const {status:_0x335cc2,coordinator:_0x22fb02}=_0x394cd6;switch(_0x335cc2){case h['IDLE']:return _0x33981f(Fe,{'coordinator':_0x22fb02});case h['FOLLOWING']:return _0x33981f(He,{'coordinator':_0x22fb02});case h['NOT_FOLLOWING']:return _0x33981f(je,{'coordinator':_0x22fb02});case h[_0x419be0(0xe4)]:return _0x33981f(Ve,{});case h[_0x419be0(0xdc)]:return _0x33981f(Ue,{'coordinator':_0x22fb02});default:return null;}}function Fe(_0x3b54a9){var _0x576c38=_0x111845;const {coordinator:_0xa4f667}=_0x3b54a9;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x576c38(0x161),{'className':_0x576c38(0xe3),'children':'Present\x20this\x20document'}),_0x33981f(_0x28744d,{'onClick':()=>_0xa4f667[_0x576c38(0x147)](),'children':'Start'})]});}function He(_0x3b6174){var _0x504461=_0x111845;const {coordinator:_0xf2c592}=_0x3b6174;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x504461(0x161),{'className':_0x504461(0xe3),'children':_0x504461(0xf6)}),_0x33981f(_0x28744d,{'onClick':()=>_0xf2c592[_0x504461(0x141)](),'children':'Stop\x20following'})]});}function je(_0x1f5d45){var _0x216ecd=_0x111845;const {coordinator:_0x335676}=_0x1f5d45;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x216ecd(0x161),{'className':_0x216ecd(0xe3),'children':_0x216ecd(0xe6)}),_0x33981f(_0x28744d,{'variant':_0x216ecd(0x140),'onClick':()=>_0x335676[_0x216ecd(0x15a)](),'children':_0x216ecd(0x129)})]});}function Ue(_0x4d3787){var _0x1a6082=_0x111845;const {coordinator:_0x570917}=_0x4d3787;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x1a6082(0x161),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1a6082(0xfd)}),_0x33981f(_0x28744d,{'variant':'default','onClick':()=>_0x570917[_0x1a6082(0xcb)](),'children':_0x1a6082(0x146)})]});}function Ve(){return _0x33981f(_0x476040,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x111845(0x13f)],ke=(_0x4ad446,_0x55edca,_0x110311,_0x330de9)=>{var _0xb1adee=_0x111845;for(var _0x30a031=_0x330de9>0x1?void 0x0:_0x330de9?Me(_0x55edca,_0x110311):_0x55edca,_0x575951=_0x4ad446[_0xb1adee(0xf0)]-0x1,_0x2ad450;_0x575951>=0x0;_0x575951--)(_0x2ad450=_0x4ad446[_0x575951])&&(_0x30a031=_0x2ad450(_0x30a031)||_0x30a031);return _0x30a031;},$=(_0x98cad0,_0x2e1eb3)=>(_0x1a6655,_0x5e9046)=>_0x2e1eb3(_0x1a6655,_0x5e9046,_0x98cad0);let b=class extends _0x4c2516{constructor(_0x2644fc,_0x574014){var _0x26d564=_0x111845;super(),this[_0x26d564(0xf9)]=_0x2644fc,this[_0x26d564(0x148)]=_0x574014,this[_0x26d564(0x151)]();}[_0x111845(0x151)](){var _0x1bdaf1=_0x111845;this[_0x1bdaf1(0x12d)](this[_0x1bdaf1(0x148)][_0x1bdaf1(0x134)](_0xb3b934[_0x1bdaf1(0x11a)],()=>_0x3f0fd6(Te,this['_injector'])));}};b=ke([$(0x0,_0x555b6a(_0x184d2a)),$(0x1,_0x150f06)],b);var Ge=Object[_0x111845(0x11d)],We=Object[_0x111845(0x13f)],Ye=(_0x5d3fdb,_0x25a8e0,_0x17ff18)=>_0x25a8e0 in _0x5d3fdb?Ge(_0x5d3fdb,_0x25a8e0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17ff18}):_0x5d3fdb[_0x25a8e0]=_0x17ff18,Be=(_0x1cc361,_0x54a335,_0x2d616c,_0x298143)=>{var _0x436b20=_0x111845;for(var _0x5148ac=_0x298143>0x1?void 0x0:_0x298143?We(_0x54a335,_0x2d616c):_0x54a335,_0x277caf=_0x1cc361[_0x436b20(0xf0)]-0x1,_0x42777b;_0x277caf>=0x0;_0x277caf--)(_0x42777b=_0x1cc361[_0x277caf])&&(_0x5148ac=_0x42777b(_0x5148ac)||_0x5148ac);return _0x5148ac;},F=(_0x17fab3,_0x1b0c65)=>(_0x4ebbc2,_0x536082)=>_0x1b0c65(_0x4ebbc2,_0x536082,_0x17fab3),J=(_0x3eddcd,_0x4debfc,_0xaa0a3)=>Ye(_0x3eddcd,typeof _0x4debfc!='symbol'?_0x4debfc+'':_0x4debfc,_0xaa0a3);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x19e569{constructor(_0x16fde1=T,_0x303e94,_0x2f3bb2){var _0x4fe7b5=_0x111845;super(),this['_config']=_0x16fde1,this[_0x4fe7b5(0xf9)]=_0x303e94,this[_0x4fe7b5(0xcc)]=_0x2f3bb2;const {..._0x59c25a}=_0x47cc38({},T,this[_0x4fe7b5(0x12e)]);this[_0x4fe7b5(0xcc)][_0x4fe7b5(0xdb)](Oe,_0x59c25a);}['onStarting'](){var _0x2eefa1=_0x111845;_0x134e0c(this[_0x2eefa1(0xf9)],_0x9bf70b([[L],[I],[m],[b]],this[_0x2eefa1(0x12e)][_0x2eefa1(0xce)])),_0x4b550f(this[_0x2eefa1(0xf9)],[[m]]);}[_0x111845(0x133)](){_0x4b550f(this['_injector'],[[b]]);}};J(O,_0x111845(0x110),_0x36368d[_0x111845(0xfb)]),J(O,'pluginName',Ze),O=Be([_0x49dea1(_0x472ee4),F(0x1,_0x555b6a(_0x184d2a)),F(0x2,_0x5942dd)],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 _0x31f2(_0x4bb000,_0x5be1c0){var _0x53acb7=_0x53ac();return _0x31f2=function(_0x31f26a,_0x242230){_0x31f26a=_0x31f26a-0x1af;var _0x43c6db=_0x53acb7[_0x31f26a];return _0x43c6db;},_0x31f2(_0x4bb000,_0x5be1c0);}function _0x53ac(){var _0x4cf55a=['_reporters','IConfigService','memberID','154548CAdkJt','_collabSessionService','toDisposable','You\x27re\x20presenting\x20the\x20document','send','UniverProCollaboration','following','Module','subscribe','indexOf','entries','_status','prototype','call','end','Present\x20this\x20document','delete','_entities','_unitID','assign','1242fAlsXA','153nbEwyq','12gRMiLb','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','_injector','pipe','get','find','LIVESHARE_TERMINATE','stopPresenting','rxjs','_stopPresenting','symbol','apply','6440YSJItG','UniverProLiveShare','_status$','DependentOn','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','UniverLiveSharePlugin','Start','data','currentColor','_collabSession','SetZoomRatioOperation','Fragment','next','defs','You\x27re\x20following\x20the\x20presenter','_init','_stopFollowing','CollaborationEvent','xlink:href','has','UniverUi','createElement','HEADER_MENU','_startPresenting','hasOwnProperty','tryStartPresenting','useDependency','useEffect','override','getCurrentTypeOfUnit$','parse','mergeOverrideWithDependencies','registerSharedOperation','fill','react/jsx-runtime','_handleOffline','createInstance','11167403nngkQU','mask','react','_config','defIds','LiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','SetScrollOperation','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getMemberID','setConfig','UNIVER_LIVE_SHARE_PLUGIN','UniverCollaborationClientPlugin','children','InsertSheetMutation','_uiPartsService','className','touchDependencies','OFFLINE','UniverSheetsUi','displayName','dispose','univer-w-full\x20univer-mb-3\x20univer-text-sm','add','onStarting','operators','onRendered','UNIVER_SHEET','SetWorksheetActiveOperation','univer-size-4','_configService','@univerjs-pro/collaboration','BuiltInUIPart','25594JMSybZ','amd','registerInitialStateReporter','getOwnPropertyDescriptor','rxjs/operators','_handleOnline','live-share.config','1em','tag','LiveShareStatus','executeCommand','SAME_OPERATION_SHARE_INTERVAL','function','LiveShareController','button','Stop\x20following','then','IDLE','params','jsxs','useRef','8568fnhTzh','_commandDisposable','http://www.w3.org/2000/svg','sheet','11qKIQvk','dispose$','3146bDrCKR','_handleOperation','_handleNewHost','univerjs-icon\x20univerjs-icon-','forwardRef','_startLiveShareCoordinator','presenter','NOT_FOLLOWING','_mountLiveShare','UniverProCollaborationClient','extend','mutations','Stop\x20presenting','pluginName','use','LIVESHARE_REQUEST_HOST','not-following','useState','default','getConfig','_liveShareService','CollaborationSessionService','LIVESHARE_OPERATION','operations','icon','IUniverInstanceService','@univerjs-pro/collaboration-client','div','map','_startFollowing','getInitialStates','_beIdle','getTypeOfUnitDisposed$','attrs','length','_handleTerminate','1665220FiLNrq','DesktopLiveShareController','981NTfiZG','toStringTag','getUnitId','FOLLOWING','current','random','replace','UniverInstanceType','colorChannel1','event$','string','_commandService','concat','type','You\x27are\x20offline.','takeUntil','stopFollowing','SessionStatus','reverse','merge','UniverIcon','Button','defineProperty','RxDisposable','substring','_fetchOperations','unsubscribe','asObservable','Plugin','_presenter','_sharedOperations','ONLINE','forEach','getLiveShareCoordinator','@univerjs/design','DisposableCollection','exports','@univerjs/sheets-ui','init','Start\x20following','Inject','ICommandService','presenting','path','idle','complete','@univerjs/ui','BehaviorSubject','_univerInstanceService','Disposable','status$','getOwnPropertySymbols','20VbflwA','startFollowing','shouldShareOperation','set','_handleNewChangeSets','PRESENTING','UniverCore','@univerjs/sheets','React','url(#$1','registerDependencies','propertyIsEnumerable','Subject','UniverDesign','evenodd','CommandType','text','clear','LiveShare','@univerjs/core','idSuffix','Injector','includes','IUIPartsService','jsx','from','unitId'];_0x53ac=function(){return _0x4cf55a;};return _0x53ac();}(function(_0x787f6,_0x230a2b){var _0x4635cb=_0x31f2,_0x363da3=_0x787f6();while(!![]){try{var _0x417f16=parseInt(_0x4635cb(0x1e4))/0x1+parseInt(_0x4635cb(0x1ff))/0x2*(-parseInt(_0x4635cb(0x28c))/0x3)+parseInt(_0x4635cb(0x277))/0x4*(-parseInt(_0x4635cb(0x259))/0x5)+parseInt(_0x4635cb(0x28b))/0x6*(-parseInt(_0x4635cb(0x1f9))/0x7)+parseInt(_0x4635cb(0x299))/0x8*(-parseInt(_0x4635cb(0x225))/0x9)+parseInt(_0x4635cb(0x223))/0xa*(-parseInt(_0x4635cb(0x1fd))/0xb)+-parseInt(_0x4635cb(0x28d))/0xc*(-parseInt(_0x4635cb(0x1c3))/0xd);if(_0x417f16===_0x230a2b)break;else _0x363da3['push'](_0x363da3['shift']());}catch(_0x21c250){_0x363da3['push'](_0x363da3['shift']());}}}(_0x53ac,0x22b8b),function(_0xa519bf,_0x25bfa7){var _0x3e9c64=_0x31f2;typeof exports=='object'&&typeof module<'u'?_0x25bfa7(exports,require(_0x3e9c64(0x219)),require(_0x3e9c64(0x26c)),require('@univerjs/sheets'),require(_0x3e9c64(0x24a)),require(_0x3e9c64(0x253)),require(_0x3e9c64(0x1c0)),require(_0x3e9c64(0x247)),require('react'),require(_0x3e9c64(0x1e2)),require(_0x3e9c64(0x295)),require(_0x3e9c64(0x1e8))):typeof define==_0x3e9c64(0x1f0)&&define[_0x3e9c64(0x1e5)]?define([_0x3e9c64(0x249),_0x3e9c64(0x219),'@univerjs/core',_0x3e9c64(0x260),_0x3e9c64(0x24a),_0x3e9c64(0x253),_0x3e9c64(0x1c0),_0x3e9c64(0x247),_0x3e9c64(0x1c5),_0x3e9c64(0x1e2),_0x3e9c64(0x295),_0x3e9c64(0x1e8)],_0x25bfa7):(_0xa519bf=typeof globalThis<'u'?globalThis:_0xa519bf||self,_0x25bfa7(_0xa519bf[_0x3e9c64(0x29a)]={},_0xa519bf[_0x3e9c64(0x208)],_0xa519bf[_0x3e9c64(0x25f)],_0xa519bf['UniverSheets'],_0xa519bf[_0x3e9c64(0x1d6)],_0xa519bf[_0x3e9c64(0x1b2)],_0xa519bf[_0x3e9c64(0x261)],_0xa519bf[_0x3e9c64(0x266)],_0xa519bf[_0x3e9c64(0x261)],_0xa519bf[_0x3e9c64(0x27c)],_0xa519bf[_0x3e9c64(0x295)],_0xa519bf[_0x3e9c64(0x295)][_0x3e9c64(0x1dc)]));}(this,function(_0xe20450,_0x40dc39,_0x144f7e,_0x1e53a5,_0x3df518,_0x1c5b20,_0x31c241,_0x53c1c6,_0x2d5ae1,_0xf92088,_0x3721a2,_0x43cb68){'use strict';var _0x24692c=_0x31f2;var _0x4e37c0=Object[_0x24692c(0x23b)],_0x488044=(_0x39cc40,_0x421e22,_0x3b17ca)=>_0x421e22 in _0x39cc40?_0x4e37c0(_0x39cc40,_0x421e22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b17ca}):_0x39cc40[_0x421e22]=_0x3b17ca,_0x33da5e=(_0x334200,_0xbf3c4d,_0x425571)=>_0x488044(_0x334200,typeof _0xbf3c4d!=_0x24692c(0x297)?_0xbf3c4d+'':_0xbf3c4d,_0x425571);const _0x20a4b6=_0x24692c(0x1ea),_0x1a791a={};class _0x4a614a extends _0x144f7e[_0x24692c(0x256)]{constructor(){var _0x15ade9=_0x24692c;super(...arguments),_0x33da5e(this,_0x15ade9(0x243),new Set()),_0x33da5e(this,_0x15ade9(0x274),new Set());}['registerSharedOperation'](_0x53050a){var _0x4c7743=_0x24692c;return this[_0x4c7743(0x243)][_0x4c7743(0x1da)](_0x53050a),_0x144f7e[_0x4c7743(0x279)](()=>this[_0x4c7743(0x243)][_0x4c7743(0x287)](_0x53050a));}[_0x24692c(0x1e6)](_0x31b86b){var _0x3bfd5f=_0x24692c;return this[_0x3bfd5f(0x274)]['add'](_0x31b86b),_0x144f7e['toDisposable'](()=>this[_0x3bfd5f(0x274)][_0x3bfd5f(0x287)](_0x31b86b));}[_0x24692c(0x25b)](_0x424644){var _0x1be1d6=_0x24692c;return this[_0x1be1d6(0x243)][_0x1be1d6(0x1b1)](_0x424644);}[_0x24692c(0x21d)](_0x1b89e7){var _0x462eba=_0x24692c;return Array[_0x462eba(0x272)](this[_0x462eba(0x274)])['map'](_0x37af6e=>_0x37af6e(_0x1b89e7));}}var _0x27599b=Object['getOwnPropertyDescriptor'],_0x556f63=(_0x2a6223,_0x22dab6,_0x360c4b,_0x569224)=>{var _0x3af14f=_0x24692c;for(var _0x3eff4d=_0x569224>0x1?void 0x0:_0x569224?_0x27599b(_0x22dab6,_0x360c4b):_0x22dab6,_0xb95ac1=_0x2a6223[_0x3af14f(0x221)]-0x1,_0x214130;_0xb95ac1>=0x0;_0xb95ac1--)(_0x214130=_0x2a6223[_0xb95ac1])&&(_0x3eff4d=_0x214130(_0x3eff4d)||_0x3eff4d);return _0x3eff4d;},_0x463a5d=(_0x6f87fb,_0x31d0c5)=>(_0x4cccbb,_0x29142c)=>_0x31d0c5(_0x4cccbb,_0x29142c,_0x6f87fb);let _0x51287f=class extends _0x144f7e[_0x24692c(0x256)]{constructor(_0x66449a){var _0x102ddf=_0x24692c;super(),this[_0x102ddf(0x213)]=_0x66449a,this[_0x102ddf(0x2a8)]();}[_0x24692c(0x2a8)](){var _0x208a88=_0x24692c;[_0x3df518[_0x208a88(0x2a3)]['id'],_0x3df518[_0x208a88(0x1ca)]['id'],_0x1e53a5[_0x208a88(0x1df)]['id']][_0x208a88(0x245)](_0x4cbcbb=>{var _0x14b687=_0x208a88;this['disposeWithMe'](this[_0x14b687(0x213)][_0x14b687(0x1be)](_0x4cbcbb));});}};_0x51287f=_0x556f63([_0x463a5d(0x0,_0x144f7e[_0x24692c(0x24d)](_0x4a614a))],_0x51287f);var _0x11b712=function(){var _0x3fbc18=_0x24692c;return _0x11b712=Object[_0x3fbc18(0x28a)]||function(_0x587b39){var _0xba0f0b=_0x3fbc18;for(var _0x44bf4f,_0x108788=0x1,_0x3d6488=arguments['length'];_0x108788<_0x3d6488;_0x108788++){_0x44bf4f=arguments[_0x108788];for(var _0x2838ff in _0x44bf4f)Object[_0xba0f0b(0x283)][_0xba0f0b(0x1b6)][_0xba0f0b(0x284)](_0x44bf4f,_0x2838ff)&&(_0x587b39[_0x2838ff]=_0x44bf4f[_0x2838ff]);}return _0x587b39;},_0x11b712[_0x3fbc18(0x298)](this,arguments);},_0x3aae79=function(_0x1460ca,_0x461305){var _0x58b87f=_0x24692c,_0xd75628={};for(var _0xd041ee in _0x1460ca)Object[_0x58b87f(0x283)][_0x58b87f(0x1b6)][_0x58b87f(0x284)](_0x1460ca,_0xd041ee)&&_0x461305[_0x58b87f(0x280)](_0xd041ee)<0x0&&(_0xd75628[_0xd041ee]=_0x1460ca[_0xd041ee]);if(_0x1460ca!=null&&typeof Object[_0x58b87f(0x258)]=='function'){for(var _0x21f714=0x0,_0xd041ee=Object[_0x58b87f(0x258)](_0x1460ca);_0x21f714<_0xd041ee['length'];_0x21f714++)_0x461305['indexOf'](_0xd041ee[_0x21f714])<0x0&&Object[_0x58b87f(0x283)][_0x58b87f(0x264)][_0x58b87f(0x284)](_0x1460ca,_0xd041ee[_0x21f714])&&(_0xd75628[_0xd041ee[_0x21f714]]=_0x1460ca[_0xd041ee[_0x21f714]]);}return _0xd75628;},_0x4f24de=_0x2d5ae1['forwardRef'](function(_0x162a67,_0x183ed5){var _0xb85f97=_0x24692c,_0x3cb4d4=_0x162a67[_0xb85f97(0x217)],_0x394fbb=_0x162a67['id'],_0x20264c=_0x162a67['className'],_0xb33eca=_0x162a67[_0xb85f97(0x209)],_0xf4f3ea=_0x3aae79(_0x162a67,[_0xb85f97(0x217),'id',_0xb85f97(0x1d3),'extend']),_0x26191e=_0xb85f97(0x202)[_0xb85f97(0x231)](_0x394fbb,'\x20')['concat'](_0x20264c||'')['trim'](),_0xe49023=_0x2d5ae1[_0xb85f97(0x1f8)]('_'[_0xb85f97(0x231)](_0x807bed()));return _0x311d9d(_0x3cb4d4,''['concat'](_0x394fbb),{'defIds':_0x3cb4d4[_0xb85f97(0x1c7)],'idSuffix':_0xe49023[_0xb85f97(0x229)]},_0x11b712({'ref':_0x183ed5,'className':_0x26191e},_0xf4f3ea),_0xb33eca);});function _0x311d9d(_0x151200,_0x226436,_0x5a1773,_0x42f875,_0x2c2ce7){var _0xecd51e=_0x24692c;return _0x2d5ae1[_0xecd51e(0x1b3)](_0x151200[_0xecd51e(0x1ec)],_0x11b712(_0x11b712({'key':_0x226436},_0x2c88de(_0x151200,_0x5a1773,_0x2c2ce7)),_0x42f875),(_0x3454f4(_0x151200,_0x5a1773)['children']||[])[_0xecd51e(0x21b)](function(_0x35d28a,_0x6a6491){var _0x24a63b=_0xecd51e;return _0x311d9d(_0x35d28a,''[_0x24a63b(0x231)](_0x226436,'-')[_0x24a63b(0x231)](_0x151200[_0x24a63b(0x1ec)],'-')[_0x24a63b(0x231)](_0x6a6491),_0x5a1773,void 0x0,_0x2c2ce7);}));}function _0x2c88de(_0x40b40a,_0x203ed8,_0x47dcc5){var _0x4354c6=_0x24692c,_0x3a09f9=_0x11b712({},_0x40b40a[_0x4354c6(0x220)]);_0x47dcc5!=null&&_0x47dcc5[_0x4354c6(0x22d)]&&_0x3a09f9['fill']===_0x4354c6(0x22d)&&(_0x3a09f9[_0x4354c6(0x1bf)]=_0x47dcc5['colorChannel1']),_0x40b40a[_0x4354c6(0x1ec)]==='mask'&&_0x3a09f9['id']&&(_0x3a09f9['id']=_0x3a09f9['id']+_0x203ed8['idSuffix']),Object[_0x4354c6(0x281)](_0x3a09f9)[_0x4354c6(0x245)](function(_0x277214){var _0x5b9515=_0x4354c6,_0x463d0d=_0x277214[0x0],_0x283a96=_0x277214[0x1];_0x463d0d===_0x5b9515(0x1c4)&&typeof _0x283a96=='string'&&(_0x3a09f9[_0x463d0d]=_0x283a96['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5b9515(0x231)](_0x203ed8['idSuffix'],')')));});var _0xb33df7=_0x203ed8['defIds'];return!_0xb33df7||_0xb33df7['length']===0x0||(_0x40b40a[_0x4354c6(0x1ec)]===_0x4354c6(0x20d)&&_0x3a09f9['xlink:href']&&(_0x3a09f9['xlink:href']=_0x3a09f9[_0x4354c6(0x1b0)]+_0x203ed8['idSuffix']),Object[_0x4354c6(0x281)](_0x3a09f9)[_0x4354c6(0x245)](function(_0x17527b){var _0x2188ba=_0x4354c6,_0x45786c=_0x17527b[0x0],_0x2d119a=_0x17527b[0x1];typeof _0x2d119a=='string'&&(_0x3a09f9[_0x45786c]=_0x2d119a[_0x2188ba(0x22b)](/url\(#(.*)\)/,_0x2188ba(0x262)[_0x2188ba(0x231)](_0x203ed8[_0x2188ba(0x26d)],')')));})),_0x3a09f9;}function _0x3454f4(_0x1243bc,_0x4f6700){var _0x542bae=_0x24692c,_0x463b7e,_0x182436=_0x4f6700[_0x542bae(0x1c7)];return!_0x182436||_0x182436[_0x542bae(0x221)]===0x0?_0x1243bc:_0x1243bc['tag']===_0x542bae(0x2a6)&&(!((_0x463b7e=_0x1243bc['children'])===null||_0x463b7e===void 0x0)&&_0x463b7e[_0x542bae(0x221)])?_0x11b712(_0x11b712({},_0x1243bc),{'children':_0x1243bc[_0x542bae(0x1d0)][_0x542bae(0x21b)](function(_0x265381){var _0x5240a2=_0x542bae;return typeof _0x265381[_0x5240a2(0x220)]['id']==_0x5240a2(0x22f)&&_0x182436&&_0x182436[_0x5240a2(0x26f)](_0x265381[_0x5240a2(0x220)]['id'])?_0x11b712(_0x11b712({},_0x265381),{'attrs':_0x11b712(_0x11b712({},_0x265381['attrs']),{'id':_0x265381[_0x5240a2(0x220)]['id']+_0x4f6700[_0x5240a2(0x26d)]})}):_0x265381;})}):_0x1243bc;}function _0x807bed(){var _0x5e547f=_0x24692c;return Math[_0x5e547f(0x22a)]()['toString'](0x24)[_0x5e547f(0x23d)](0x2,0x8);}_0x4f24de['displayName']=_0x24692c(0x239);var _0x117851={'tag':'svg','attrs':{'xmlns':_0x24692c(0x1fb),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x24692c(0x1eb)},'children':[{'tag':'path','attrs':{'fill':_0x24692c(0x2a1),'d':_0x24692c(0x28e)}},{'tag':_0x24692c(0x250),'attrs':{'fill':_0x24692c(0x2a1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x24692c(0x267),'clipRule':_0x24692c(0x267)}}]},_0x65f1e1=_0x2d5ae1[_0x24692c(0x203)](function(_0x42d291,_0x1ccf74){var _0x37fd78=_0x24692c;return _0x2d5ae1[_0x37fd78(0x1b3)](_0x4f24de,Object['assign']({},_0x42d291,{'id':'live-share-icon','ref':_0x1ccf74,'icon':_0x117851}));});_0x65f1e1[_0x24692c(0x1d7)]='LiveShareIcon';var _0x101673=Object[_0x24692c(0x1e7)],_0xb16c34=(_0x4cfbb7,_0xf54472,_0x243a9c,_0x40d25f)=>{var _0x3d5cae=_0x24692c;for(var _0x138278=_0x40d25f>0x1?void 0x0:_0x40d25f?_0x101673(_0xf54472,_0x243a9c):_0xf54472,_0x43b0a0=_0x4cfbb7[_0x3d5cae(0x221)]-0x1,_0x5110b5;_0x43b0a0>=0x0;_0x43b0a0--)(_0x5110b5=_0x4cfbb7[_0x43b0a0])&&(_0x138278=_0x5110b5(_0x138278)||_0x138278);return _0x138278;},_0x50070b=(_0x38547d,_0x4b2d15)=>(_0x471146,_0x3a2aa9)=>_0x4b2d15(_0x471146,_0x3a2aa9,_0x38547d);_0xe20450[_0x24692c(0x1f1)]=class extends _0x144f7e[_0x24692c(0x23c)]{constructor(_0xb46cda,_0x4c5536,_0xd879e4){var _0x4560c6=_0x24692c;super(),_0x33da5e(this,_0x4560c6(0x288),new Map()),(this[_0x4560c6(0x255)]=_0xb46cda,this['_injector']=_0x4c5536,this[_0x4560c6(0x278)]=_0xd879e4,this[_0x4560c6(0x2a8)]());}async[_0x24692c(0x246)](_0x57ce3e){var _0x25adfd=_0x24692c;return this[_0x25adfd(0x288)]['has'](_0x57ce3e)||await this[_0x25adfd(0x204)](_0x57ce3e),this[_0x25adfd(0x288)]['get'](_0x57ce3e);}[_0x24692c(0x2a8)](){var _0x3f1f3a=_0x24692c;this[_0x3f1f3a(0x255)]['getTypeOfUnitAdded$'](_0x144f7e[_0x3f1f3a(0x22c)][_0x3f1f3a(0x1de)])[_0x3f1f3a(0x290)](_0x43cb68['takeUntil'](this[_0x3f1f3a(0x1fe)]))[_0x3f1f3a(0x27f)](async _0x5c3b9c=>{var _0x4f69ba=_0x3f1f3a;const _0xac5db8=_0x5c3b9c['getUnitId']();this[_0x4f69ba(0x288)][_0x4f69ba(0x1b1)](_0xac5db8)||this[_0x4f69ba(0x204)](_0xac5db8);}),this['_univerInstanceService'][_0x3f1f3a(0x21f)](_0x144f7e[_0x3f1f3a(0x22c)][_0x3f1f3a(0x1de)])['pipe'](_0x43cb68[_0x3f1f3a(0x234)](this[_0x3f1f3a(0x1fe)]))['subscribe'](_0x18ccc7=>{var _0x309d49=_0x3f1f3a;const _0x238a53=_0x18ccc7[_0x309d49(0x227)](),_0x2a9cdd=this[_0x309d49(0x288)][_0x309d49(0x291)](_0x238a53);_0x2a9cdd==null||_0x2a9cdd['dispose']();});}async[_0x24692c(0x204)](_0x490536){var _0x393099=_0x24692c;const _0x3ed4d4=await this[_0x393099(0x278)]['requireSession'](_0x490536),_0x2660b3=this[_0x393099(0x28f)][_0x393099(0x1c2)](_0xe20450[_0x393099(0x1c8)],_0x490536,_0x3ed4d4);return _0x2660b3[_0x393099(0x24b)](),this[_0x393099(0x288)][_0x393099(0x25c)](_0x490536,_0x2660b3),_0x2660b3;}},_0xe20450[_0x24692c(0x1f1)]=_0xb16c34([_0x50070b(0x0,_0x144f7e['IUniverInstanceService']),_0x50070b(0x1,_0x144f7e[_0x24692c(0x24d)](_0x144f7e[_0x24692c(0x26e)])),_0x50070b(0x2,_0x144f7e[_0x24692c(0x24d)](_0x40dc39[_0x24692c(0x214)]))],_0xe20450[_0x24692c(0x1f1)]);var _0x580f8a=(_0xf18f0b=>(_0xf18f0b[_0x24692c(0x1d5)]='offline',_0xf18f0b['IDLE']=_0x24692c(0x251),_0xf18f0b[_0x24692c(0x228)]=_0x24692c(0x27d),_0xf18f0b[_0x24692c(0x206)]=_0x24692c(0x20f),_0xf18f0b[_0x24692c(0x25e)]=_0x24692c(0x24f),_0xf18f0b))(_0x580f8a||{});const _0x480f50=_0x24692c(0x1ef),_0xeb2238=0xc8;_0xe20450[_0x24692c(0x1c8)]=class extends _0x144f7e[_0x24692c(0x23c)]{constructor(_0x4a3177,_0x257f41,_0x47d986,_0x13157e,_0x32c033){var _0x4d0d8d=_0x24692c;super(),_0x33da5e(this,_0x4d0d8d(0x29b),new _0x3721a2[(_0x4d0d8d(0x254))](_0x4d0d8d(0x251))),_0x33da5e(this,_0x4d0d8d(0x257),this['_status$'][_0x4d0d8d(0x240)]()),_0x33da5e(this,'_init',!0x1),_0x33da5e(this,_0x4d0d8d(0x1fa),null),_0x33da5e(this,_0x4d0d8d(0x242),null),(this[_0x4d0d8d(0x289)]=_0x4a3177,this[_0x4d0d8d(0x2a2)]=_0x257f41,this[_0x4d0d8d(0x1e1)]=_0x47d986,this[_0x4d0d8d(0x213)]=_0x13157e,this[_0x4d0d8d(0x230)]=_0x32c033);}get['_status'](){var _0x3d3176=_0x24692c;return this[_0x3d3176(0x29b)]['getValue']();}[_0x24692c(0x1d8)](){var _0x32efc7=_0x24692c,_0x35c2cf;(_0x35c2cf=this[_0x32efc7(0x1fa)])==null||_0x35c2cf[_0x32efc7(0x1d8)](),this['_status$'][_0x32efc7(0x2a5)](_0x32efc7(0x251)),this[_0x32efc7(0x29b)][_0x32efc7(0x252)]();}[_0x24692c(0x24b)](){var _0x4228a2=_0x24692c;this[_0x4228a2(0x2a8)]||(this[_0x4228a2(0x2a8)]=!0x0,this[_0x4228a2(0x2a2)]['sessionStatus$'][_0x4228a2(0x290)](_0x43cb68['takeUntil'](this[_0x4228a2(0x1fe)]))[_0x4228a2(0x27f)](_0x30fb97=>{var _0x345505=_0x4228a2;switch(_0x30fb97){case _0x40dc39[_0x345505(0x236)]['OFFLINE']:this[_0x345505(0x1c1)]();break;case _0x40dc39['SessionStatus'][_0x345505(0x244)]:this[_0x345505(0x1e9)]();break;}}),this['_collabSession'][_0x4228a2(0x22e)][_0x4228a2(0x290)](_0x43cb68[_0x4228a2(0x234)](this['dispose$']))[_0x4228a2(0x27f)](_0x2709c0=>{var _0x266177=_0x4228a2;const {eventID:_0x25e6f1}=_0x2709c0;switch(_0x25e6f1){case _0xf92088[_0x266177(0x1af)]['LIVESHARE_NEW_HOST']:this[_0x266177(0x201)](_0x2709c0);break;case _0xf92088[_0x266177(0x1af)][_0x266177(0x215)]:this[_0x266177(0x200)](_0x2709c0);break;case _0xf92088[_0x266177(0x1af)][_0x266177(0x293)]:this[_0x266177(0x222)]();break;case _0xf92088[_0x266177(0x1af)]['NEW_CHANGESETS']:this[_0x266177(0x25d)](_0x2709c0);break;}}));}[_0x24692c(0x1b7)](){var _0x41c070=_0x24692c;this['_collabSession'][_0x41c070(0x27b)]({'eventID':_0xf92088[_0x41c070(0x1af)][_0x41c070(0x20e)],'data':{'unitID':this[_0x41c070(0x289)],'userID':this['_collabSession'][_0x41c070(0x1cc)]()}},this[_0x41c070(0x289)]);}[_0x24692c(0x294)](){var _0x2cc7c3=_0x24692c;this[_0x2cc7c3(0x282)]===_0x2cc7c3(0x24f)&&(this[_0x2cc7c3(0x29b)][_0x2cc7c3(0x2a5)](_0x2cc7c3(0x251)),this[_0x2cc7c3(0x2a2)][_0x2cc7c3(0x27b)]({'eventID':_0xf92088[_0x2cc7c3(0x1af)][_0x2cc7c3(0x293)],'data':{'unitID':this[_0x2cc7c3(0x289)]}},this[_0x2cc7c3(0x289)]));}[_0x24692c(0x25a)](){var _0x2393da=_0x24692c;this[_0x2393da(0x282)]===_0x2393da(0x20f)&&(this[_0x2393da(0x29b)][_0x2393da(0x2a5)](_0x2393da(0x27d)),this[_0x2393da(0x21c)]());}['stopFollowing'](){var _0x14d252=_0x24692c;this['_status']==='following'&&this[_0x14d252(0x2a9)]();}[_0x24692c(0x201)](_0x2cdcc8){var _0x1b314b=_0x24692c;const {presenter:_0x1ecfa3}=_0x2cdcc8[_0x1b314b(0x2a0)],_0x3a5237=this['_collabSession'][_0x1b314b(0x1cc)]();this['_presenter']=_0x1ecfa3,_0x1ecfa3===_0x3a5237?(this[_0x1b314b(0x2a9)](),this[_0x1b314b(0x1b5)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x1b314b(0x21c)]());}[_0x24692c(0x23e)](){var _0x15a723=_0x24692c;const _0x35a054={'eventID':_0xf92088[_0x15a723(0x1af)][_0x15a723(0x1c9)]};this[_0x15a723(0x2a2)][_0x15a723(0x27b)](_0x35a054,this[_0x15a723(0x289)]);}[_0x24692c(0x222)](){var _0x5cbf42=_0x24692c;this['_presenter']=null,this[_0x5cbf42(0x282)]!==_0x5cbf42(0x24f)&&this[_0x5cbf42(0x21e)]();}[_0x24692c(0x25d)](_0x2a1e65){var _0x152253=_0x24692c;if(this[_0x152253(0x282)]==='following'&&this[_0x152253(0x242)]===_0x2a1e65['data'][_0x152253(0x276)]){const _0x5e22cb=_0xf92088['parseProtocolChangeset'](_0x2a1e65[_0x152253(0x2a0)])[_0x152253(0x20a)][_0x152253(0x237)]()[_0x152253(0x292)](_0x16bfa8=>_0x16bfa8['id']===_0x1e53a5[_0x152253(0x1d1)]['id']);if(_0x5e22cb){const _0x10d6ec=_0x5e22cb[_0x152253(0x1f6)][_0x152253(0x273)],_0x19849e=_0x5e22cb[_0x152253(0x1f6)][_0x152253(0x1fc)]['id'];setTimeout(()=>{var _0x1aaf5e=_0x152253;this['_commandService'][_0x1aaf5e(0x1ee)](_0x1e53a5['SetWorksheetActiveOperation']['id'],{'unitId':_0x10d6ec,'subUnitId':_0x19849e},{'fromCollab':!0x0});});}}}[_0x24692c(0x1b5)](){var _0x59e206=_0x24692c;this[_0x59e206(0x29b)][_0x59e206(0x2a5)](_0x59e206(0x24f));const _0x2e0668=new Map(),_0xf6dd4a=this[_0x59e206(0x1fa)]=new _0x144f7e[(_0x59e206(0x248))]();_0xf6dd4a[_0x59e206(0x1da)](_0x144f7e['toDisposable'](()=>{var _0x2daf28=_0x59e206;_0x2e0668[_0x2daf28(0x245)](_0x357ef5=>_0x357ef5[_0x2daf28(0x252)]()),_0x2e0668[_0x2daf28(0x26a)]();})),_0xf6dd4a[_0x59e206(0x1da)](this['_commandService']['onCommandExecuted'](_0x16403f=>{var _0x436234=_0x59e206,_0xd31d7e;if(_0x16403f[_0x436234(0x232)]!==_0x144f7e[_0x436234(0x268)]['OPERATION']||!this[_0x436234(0x213)][_0x436234(0x25b)](_0x16403f['id']))return;const {id:_0x271313}=_0x16403f;let _0x3725e2;_0x2e0668[_0x436234(0x1b1)](_0x271313)?_0x3725e2=_0x2e0668[_0x436234(0x291)](_0x271313):(_0x3725e2=new _0x3721a2[(_0x436234(0x265))](),_0x2e0668[_0x436234(0x25c)](_0x271313,_0x3725e2),_0x3725e2[_0x436234(0x290)](_0x43cb68['throttleTime']((_0xd31d7e=this[_0x436234(0x1e1)][_0x436234(0x212)](_0x480f50))!=null?_0xd31d7e:_0xeb2238,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1f2700=>{var _0x57ffd0=_0x436234;this[_0x57ffd0(0x2a2)][_0x57ffd0(0x27b)]({'eventID':_0xf92088[_0x57ffd0(0x1af)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57ffd0(0x289)],'operations':{[_0x1f2700['id']]:{'id':_0x1f2700['id'],'params':JSON['stringify'](_0x1f2700[_0x57ffd0(0x1f6)])}}}},this['_unitID']);})),_0x3725e2[_0x436234(0x2a5)](_0x16403f);})),this[_0x59e206(0x213)][_0x59e206(0x21d)](this['_unitID'])[_0x59e206(0x245)](_0x5cc04a=>this['_collabSession']['send']({'eventID':_0xf92088[_0x59e206(0x1af)][_0x59e206(0x215)],'data':{'unitID':this[_0x59e206(0x289)],'operations':{[_0x5cc04a['id']]:{'id':_0x5cc04a['id'],'params':JSON['stringify'](_0x5cc04a[_0x59e206(0x1f6)])}}}},this[_0x59e206(0x289)]));}[_0x24692c(0x296)](){var _0x368ae1=_0x24692c,_0x3aa2de;this[_0x368ae1(0x29b)][_0x368ae1(0x2a5)](_0x368ae1(0x251)),(_0x3aa2de=this['_commandDisposable'])==null||_0x3aa2de['dispose'](),this[_0x368ae1(0x1fa)]=null;}[_0x24692c(0x21c)](){var _0x3ff0ef=_0x24692c,_0x5ad075;(_0x5ad075=this[_0x3ff0ef(0x1fa)])==null||_0x5ad075[_0x3ff0ef(0x1d8)](),this['_status$'][_0x3ff0ef(0x2a5)](_0x3ff0ef(0x27d));}['_beIdle'](){var _0x5ea780=_0x24692c,_0x4763d0;this['_status$'][_0x5ea780(0x2a5)](_0x5ea780(0x251)),(_0x4763d0=this['_commandDisposable'])==null||_0x4763d0['dispose'](),this[_0x5ea780(0x1fa)]=null;}[_0x24692c(0x2a9)](){var _0x50d1d6=_0x24692c,_0x5bc5c3;this['_status$'][_0x50d1d6(0x2a5)]('not-following'),(_0x5bc5c3=this['_commandDisposable'])==null||_0x5bc5c3[_0x50d1d6(0x1d8)]();}[_0x24692c(0x200)](_0x3d180d){var _0x18e12c=_0x24692c;if([_0x18e12c(0x24f),_0x18e12c(0x20f),'offline'][_0x18e12c(0x26f)](this[_0x18e12c(0x282)])||!_0x3d180d[_0x18e12c(0x2a0)][_0x18e12c(0x205)]||_0x3d180d[_0x18e12c(0x2a0)][_0x18e12c(0x205)]===this[_0x18e12c(0x2a2)][_0x18e12c(0x1cc)]())return;this[_0x18e12c(0x282)]==='idle'&&this[_0x18e12c(0x21c)]();const _0x3d8b3e=_0x3d180d[_0x18e12c(0x2a0)][_0x18e12c(0x216)];Object['values'](_0x3d8b3e)[_0x18e12c(0x245)](_0x20ff80=>{var _0x2a5244=_0x18e12c;this[_0x2a5244(0x230)][_0x2a5244(0x1ee)](_0x20ff80['id'],_0x20ff80[_0x2a5244(0x1f6)]?JSON[_0x2a5244(0x1bc)](_0x20ff80[_0x2a5244(0x1f6)]):null,{'fromCollab':!0x0});});}[_0x24692c(0x1c1)](){var _0x204c32=_0x24692c,_0x5cb6ef;this[_0x204c32(0x29b)][_0x204c32(0x2a5)]('offline'),(_0x5cb6ef=this[_0x204c32(0x1fa)])==null||_0x5cb6ef[_0x204c32(0x1d8)]();}[_0x24692c(0x1e9)](){var _0x31eecb=_0x24692c;this[_0x31eecb(0x29b)]['next'](_0x31eecb(0x251)),this[_0x31eecb(0x23e)]();}},_0xe20450[_0x24692c(0x1c8)]=_0xb16c34([_0x50070b(0x2,_0x144f7e[_0x24692c(0x275)]),_0x50070b(0x3,_0x144f7e[_0x24692c(0x24d)](_0x4a614a)),_0x50070b(0x4,_0x144f7e[_0x24692c(0x24e)])],_0xe20450[_0x24692c(0x1c8)]);function _0x405130(){var _0x22ee02=_0x24692c;const _0x4f30cd=_0x1c5b20[_0x22ee02(0x1b8)](_0xe20450[_0x22ee02(0x1f1)]),_0x479000=_0x1c5b20[_0x22ee02(0x1b8)](_0x144f7e[_0x22ee02(0x218)]),_0x50e25b=_0x1c5b20['useObservable'](()=>_0x479000[_0x22ee02(0x1bb)](_0x144f7e[_0x22ee02(0x22c)][_0x22ee02(0x1de)]),void 0x0,!0x1,[]),[_0x2aaa5b,_0x58755f]=_0x2d5ae1[_0x22ee02(0x210)](null),[_0x6c7beb,_0x522b3a]=_0x2d5ae1[_0x22ee02(0x210)](_0x580f8a[_0x22ee02(0x1f5)]),_0xec096d=_0x2d5ae1[_0x22ee02(0x1f8)](null);return _0x2d5ae1[_0x22ee02(0x1b9)](()=>(_0x50e25b&&_0x4f30cd[_0x22ee02(0x246)](_0x50e25b[_0x22ee02(0x227)]())[_0x22ee02(0x1f4)](_0x91021d=>{var _0x2dca69=_0x22ee02;_0x58755f(_0x91021d),_0xec096d['current']=_0x91021d[_0x2dca69(0x257)][_0x2dca69(0x27f)](_0x1c3f06=>{_0x522b3a(_0x1c3f06);});}),()=>{var _0x2495d3=_0x22ee02,_0x4ee33f;(_0x4ee33f=_0xec096d[_0x2495d3(0x229)])==null||_0x4ee33f[_0x2495d3(0x23f)](),_0xec096d[_0x2495d3(0x229)]=null;}),[_0x50e25b,_0x4f30cd]),_0x2aaa5b?_0x31c241[_0x22ee02(0x271)](_0x53c1c6['Dropdown'],{'align':_0x22ee02(0x285),'disabled':_0x6c7beb===_0x580f8a[_0x22ee02(0x1d5)],'className':_0x22ee02(0x29d),'overlay':_0x31c241[_0x22ee02(0x271)](_0xe6c62a,{'status':_0x6c7beb,'coordinator':_0x2aaa5b}),'children':_0x31c241['jsx']('button',{'className':_0x53c1c6['clsx'](_0x22ee02(0x1cb),{'univer-cursor-not-allowed':_0x6c7beb===_0x580f8a['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x6c7beb!==_0x580f8a[_0x22ee02(0x1d5)]}),'type':_0x22ee02(0x1f2),'children':_0x31c241[_0x22ee02(0x271)](_0x65f1e1,{'className':_0x22ee02(0x1e0)})})}):null;}function _0xe6c62a(_0xe9e6af){var _0xbb3fd6=_0x24692c;const {status:_0x475c1f,coordinator:_0x4ac2e8}=_0xe9e6af;switch(_0x475c1f){case _0x580f8a[_0xbb3fd6(0x1f5)]:return _0x31c241[_0xbb3fd6(0x271)](_0x913916,{'coordinator':_0x4ac2e8});case _0x580f8a[_0xbb3fd6(0x228)]:return _0x31c241[_0xbb3fd6(0x271)](_0x33453e,{'coordinator':_0x4ac2e8});case _0x580f8a[_0xbb3fd6(0x206)]:return _0x31c241[_0xbb3fd6(0x271)](_0x21c3bb,{'coordinator':_0x4ac2e8});case _0x580f8a[_0xbb3fd6(0x1d5)]:return _0x31c241[_0xbb3fd6(0x271)](_0x1a05fc,{});case _0x580f8a[_0xbb3fd6(0x25e)]:return _0x31c241[_0xbb3fd6(0x271)](_0x242f0e,{'coordinator':_0x4ac2e8});default:return null;}}function _0x913916(_0x3ad73b){var _0xc59e45=_0x24692c;const {coordinator:_0x1a0cf6}=_0x3ad73b;return _0x31c241[_0xc59e45(0x1f7)](_0x31c241[_0xc59e45(0x2a4)],{'children':[_0x31c241[_0xc59e45(0x271)](_0xc59e45(0x21a),{'className':_0xc59e45(0x1d9),'children':_0xc59e45(0x286)}),_0x31c241[_0xc59e45(0x271)](_0x53c1c6[_0xc59e45(0x23a)],{'onClick':()=>_0x1a0cf6[_0xc59e45(0x1b7)](),'children':_0xc59e45(0x29f)})]});}function _0x33453e(_0x13d907){var _0xe62a42=_0x24692c;const {coordinator:_0x3164f1}=_0x13d907;return _0x31c241[_0xe62a42(0x1f7)](_0x31c241[_0xe62a42(0x2a4)],{'children':[_0x31c241[_0xe62a42(0x271)](_0xe62a42(0x21a),{'className':_0xe62a42(0x1d9),'children':_0xe62a42(0x2a7)}),_0x31c241[_0xe62a42(0x271)](_0x53c1c6['Button'],{'onClick':()=>_0x3164f1[_0xe62a42(0x235)](),'children':_0xe62a42(0x1f3)})]});}function _0x21c3bb(_0x1d0800){var _0x3a7c53=_0x24692c;const {coordinator:_0x4bbb2e}=_0x1d0800;return _0x31c241[_0x3a7c53(0x1f7)](_0x31c241['Fragment'],{'children':[_0x31c241['jsx']('div',{'className':_0x3a7c53(0x1d9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x31c241[_0x3a7c53(0x271)](_0x53c1c6[_0x3a7c53(0x23a)],{'variant':_0x3a7c53(0x269),'onClick':()=>_0x4bbb2e['startFollowing'](),'children':_0x3a7c53(0x24c)})]});}function _0x242f0e(_0x552225){var _0x1db634=_0x24692c;const {coordinator:_0x456516}=_0x552225;return _0x31c241['jsxs'](_0x31c241[_0x1db634(0x2a4)],{'children':[_0x31c241[_0x1db634(0x271)](_0x1db634(0x21a),{'className':_0x1db634(0x1d9),'children':_0x1db634(0x27a)}),_0x31c241['jsx'](_0x53c1c6[_0x1db634(0x23a)],{'variant':_0x1db634(0x211),'onClick':()=>_0x456516['stopPresenting'](),'children':_0x1db634(0x20b)})]});}function _0x1a05fc(){var _0x1efb11=_0x24692c;return _0x31c241[_0x1efb11(0x271)](_0x31c241[_0x1efb11(0x2a4)],{'children':_0x1efb11(0x233)});}var _0x37d350=Object[_0x24692c(0x1e7)],_0x358bae=(_0x3eac30,_0x304c4b,_0x2bd4ac,_0x349de4)=>{var _0x8ff4f4=_0x24692c;for(var _0x2fef0f=_0x349de4>0x1?void 0x0:_0x349de4?_0x37d350(_0x304c4b,_0x2bd4ac):_0x304c4b,_0x3bdf2b=_0x3eac30[_0x8ff4f4(0x221)]-0x1,_0x5af115;_0x3bdf2b>=0x0;_0x3bdf2b--)(_0x5af115=_0x3eac30[_0x3bdf2b])&&(_0x2fef0f=_0x5af115(_0x2fef0f)||_0x2fef0f);return _0x2fef0f;},_0x4e9eb7=(_0x1ee7ac,_0x3b79b0)=>(_0x38ac23,_0x439411)=>_0x3b79b0(_0x38ac23,_0x439411,_0x1ee7ac);_0xe20450['DesktopLiveShareController']=class extends _0x144f7e[_0x24692c(0x256)]{constructor(_0x17205a,_0x5800a2){var _0x283547=_0x24692c;super(),this[_0x283547(0x28f)]=_0x17205a,this['_uiPartsService']=_0x5800a2,this[_0x283547(0x207)]();}[_0x24692c(0x207)](){var _0x514453=_0x24692c;this['disposeWithMe'](this[_0x514453(0x1d2)]['registerComponent'](_0x1c5b20[_0x514453(0x1e3)][_0x514453(0x1b4)],()=>_0x1c5b20['connectInjector'](_0x405130,this[_0x514453(0x28f)])));}},_0xe20450['DesktopLiveShareController']=_0x358bae([_0x4e9eb7(0x0,_0x144f7e[_0x24692c(0x24d)](_0x144f7e[_0x24692c(0x26e)])),_0x4e9eb7(0x1,_0x1c5b20[_0x24692c(0x270)])],_0xe20450[_0x24692c(0x224)]);var _0x444097=Object['defineProperty'],_0x52848d=Object['getOwnPropertyDescriptor'],_0x59d7fe=(_0x26c779,_0x5da6bb,_0x263d50)=>_0x5da6bb in _0x26c779?_0x444097(_0x26c779,_0x5da6bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x263d50}):_0x26c779[_0x5da6bb]=_0x263d50,_0x4c46e1=(_0x107c7d,_0x5ada09,_0x47835b,_0x46aab3)=>{var _0x52e467=_0x24692c;for(var _0x5b7607=_0x46aab3>0x1?void 0x0:_0x46aab3?_0x52848d(_0x5ada09,_0x47835b):_0x5ada09,_0x46c104=_0x107c7d[_0x52e467(0x221)]-0x1,_0x12c724;_0x46c104>=0x0;_0x46c104--)(_0x12c724=_0x107c7d[_0x46c104])&&(_0x5b7607=_0x12c724(_0x5b7607)||_0x5b7607);return _0x5b7607;},_0x2797da=(_0x232fd2,_0x2b219e)=>(_0x1f9773,_0x34c4f6)=>_0x2b219e(_0x1f9773,_0x34c4f6,_0x232fd2),_0x4e8c1a=(_0x4d9ede,_0x311780,_0xd0fb95)=>_0x59d7fe(_0x4d9ede,typeof _0x311780!='symbol'?_0x311780+'':_0x311780,_0xd0fb95);const _0x3cb6c5=_0x24692c(0x1ce);_0xe20450[_0x24692c(0x29e)]=class extends _0x144f7e[_0x24692c(0x241)]{constructor(_0x1817b3=_0x1a791a,_0x57a9e6,_0x2e42cf){var _0x37a571=_0x24692c;super(),this['_config']=_0x1817b3,this[_0x37a571(0x28f)]=_0x57a9e6,this[_0x37a571(0x1e1)]=_0x2e42cf;const {..._0x30ac8c}=_0x144f7e[_0x37a571(0x238)]({},_0x1a791a,this[_0x37a571(0x1c6)]);this['_configService'][_0x37a571(0x1cd)](_0x20a4b6,_0x30ac8c);}[_0x24692c(0x1db)](){var _0x307a42=_0x24692c;_0x144f7e[_0x307a42(0x263)](this[_0x307a42(0x28f)],_0x144f7e[_0x307a42(0x1bd)]([[_0x4a614a],[_0xe20450[_0x307a42(0x1f1)]],[_0x51287f],[_0xe20450[_0x307a42(0x224)]]],this[_0x307a42(0x1c6)][_0x307a42(0x1ba)])),_0x144f7e[_0x307a42(0x1d4)](this[_0x307a42(0x28f)],[[_0x51287f]]);}[_0x24692c(0x1dd)](){var _0x1b5186=_0x24692c;_0x144f7e[_0x1b5186(0x1d4)](this[_0x1b5186(0x28f)],[[_0xe20450[_0x1b5186(0x224)]]]);}},_0x4e8c1a(_0xe20450['UniverLiveSharePlugin'],_0x24692c(0x232),_0x144f7e[_0x24692c(0x22c)]['UNIVER_UNKNOWN']),_0x4e8c1a(_0xe20450[_0x24692c(0x29e)],_0x24692c(0x20c),_0x3cb6c5),_0xe20450[_0x24692c(0x29e)]=_0x4c46e1([_0x144f7e[_0x24692c(0x29c)](_0x40dc39[_0x24692c(0x1cf)]),_0x2797da(0x1,_0x144f7e['Inject'](_0x144f7e['Injector'])),_0x2797da(0x2,_0x144f7e[_0x24692c(0x275)])],_0xe20450[_0x24692c(0x29e)]),_0xe20450[_0x24692c(0x26b)]=_0x405130,_0xe20450['LiveShareService']=_0x4a614a,_0xe20450[_0x24692c(0x1ed)]=_0x580f8a,Object['defineProperty'](_0xe20450,Symbol[_0x24692c(0x226)],{'value':_0x24692c(0x27e)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0-nightly.
|
|
3
|
+
"version": "0.8.0-nightly.202506021607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.0-nightly.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.8.0-nightly.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets": "0.8.0-nightly.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.8.0-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.0-nightly.202506021607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.0-nightly.202506021607",
|
|
52
|
+
"@univerjs/design": "0.8.0-nightly.202506021607",
|
|
53
|
+
"@univerjs/sheets": "0.8.0-nightly.202506021607",
|
|
54
|
+
"@univerjs/core": "0.8.0-nightly.202506021607",
|
|
55
|
+
"@univerjs/ui": "0.8.0-nightly.202506021607",
|
|
56
|
+
"@univerjs/sheets-ui": "0.8.0-nightly.202506021607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|