@univerjs-pro/live-share 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x42604e=_0x40a0;function _0x3b13(){var _0x64a70=['disposeWithMe','default','next','random','find','startFollowing','trim','SetScrollOperation','_reporters','defs','data','init','PRESENTING','10agkJcy','Starting','forEach','subscribe','coordinator','_entities','colorChannel1','type','getConfig','current','ONLINE','includes','svg','length','_liveShareService','272dRqtGC','parseProtocolChangeset','OnLifecycle','asObservable','memberID','_presenter','1em','_handleOperation','_commandDisposable','send','defIds','createElement','Stop\x20presenting','Disposable','_startPresenting','IDLE','@univerjs/sheets-ui','Plugin','get','Subject','delete','liveShareDropdown','text','LiveShareSingle','small','6iczNVm','_startFollowing','215410zdxwIA','offline','getMemberID','useRef','univer-live-share','dispose$','indexOf','@univerjs-pro/collaboration-client','tag','UniverLiveSharePlugin','univer-live-share-dropdown-title','evenodd','SessionStatus','sheet','className','NOT_FOLLOWING','set','getLiveShareCoordinator','UNIVER_SHEET','shouldShareOperation','UniverIcon','InsertSheetMutation','@univerjs/core','_configService','from','_sharedOperations','4307677bsigCf','defineProperty','presenter','DisposableCollection','_mountLiveShare','requireSession','clsx','onStarting','takeUntil','liveShareDropdownTitle','following','univer-live-share-dropdown','IConfigService','SetWorksheetActiveOperation','Start','SetZoomRatioOperation','useDependency','params','@wendellhu/redi','executeCommand','SAME_OPERATION_SHARE_INTERVAL','extend','createInstance','UniverInstanceType','has','status$','_handleTerminate','onCommandExecuted','useObservable','event$','displayName','dispose','_stopPresenting','_beIdle','function','getTypeOfUnitAdded$','@univerjs-pro/collaboration','assign','_handleNewHost','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20following\x20the\x20presenter','0\x200\x2017\x2017','_stopFollowing','BehaviorSubject','attrs','getOwnPropertySymbols','_fetchOperations','forwardRef','You\x27re\x20not\x20following\x20the\x20presenter','string','not-following','then','fill','tryStartPresenting','LIVESHARE_TERMINATE','@univerjs/sheets','Present\x20this\x20document','LIVESHARE_REQUEST_HOST','_handleNewChangeSets','Injector','registerSharedOperation','useState','OFFLINE','map','pluginName','rxjs/operators','_commandService','presenting','Rendered','prototype','registerInitialStateReporter','icon','complete','_startLiveShareCoordinator','NEW_CHANGESETS','LIVESHARE_OPERATION','stopPresenting','Fragment','connectInjector','HEADER_MENU','_collabSessionService','div','hasOwnProperty','_unitID','stringify','use','operations','getUnitId','getInitialStates','_handleOffline','path','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Stop\x20following','react','xlink:href','getTypeOfUnitDisposed$','concat','Button','103614qeENmc','toString','univerjs-icon\x20univerjs-icon-','DependentOn','10216JsDMzV','url(#$1','substring','RxDisposable','values','FOLLOWING','Inject','Dropdown','univer-live-share-status-offline','IUIPartsService','186BgzPFh','IUniverInstanceService','LiveShareService','_status$','pipe','toStringTag','BuiltInUIPart','_univerInstanceService','_handleOnline','symbol','1381936ESibxX','toDisposable','add','_injector','_uiPartsService','idle','call','_status','children','live-share-status-','liveShare','idSuffix','live-share-single','parse','@univerjs/ui','stopFollowing','getOwnPropertyDescriptor','_init','OPERATION','rxjs','_collabSession','CollaborationEvent','sessionStatus$','click','58941KLblEx','1645685SDMXrz'];_0x3b13=function(){return _0x64a70;};return _0x3b13();}(function(_0x9a625e,_0x303db5){var _0x44caf1=_0x40a0,_0x50381e=_0x9a625e();while(!![]){try{var _0x4abc69=-parseInt(_0x44caf1(0x1b4))/0x1+parseInt(_0x44caf1(0x14f))/0x2*(parseInt(_0x44caf1(0x159))/0x3)+parseInt(_0x44caf1(0x163))/0x4+parseInt(_0x44caf1(0x17c))/0x5+parseInt(_0x44caf1(0x1b2))/0x6*(parseInt(_0x44caf1(0x14b))/0x7)+-parseInt(_0x44caf1(0x199))/0x8*(parseInt(_0x44caf1(0x17b))/0x9)+-parseInt(_0x44caf1(0x18a))/0xa*(parseInt(_0x44caf1(0x1ce))/0xb);if(_0x4abc69===_0x303db5)break;else _0x50381e['push'](_0x50381e['shift']());}catch(_0x4aeab9){_0x50381e['push'](_0x50381e['shift']());}}}(_0x3b13,0x2b134));var M=Object[_0x42604e(0x1cf)],q=(_0x32773e,_0x3a8b68,_0x53a246)=>_0x3a8b68 in _0x32773e?M(_0x32773e,_0x3a8b68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53a246}):_0x32773e[_0x3a8b68]=_0x53a246,d=(_0x58ea62,_0x38ee73,_0x363881)=>q(_0x58ea62,typeof _0x38ee73!=_0x42604e(0x162)?_0x38ee73+'':_0x38ee73,_0x363881);Object['defineProperty'](exports,Symbol[_0x42604e(0x15e)],{'value':'Module'});const l=require(_0x42604e(0x1ca)),_=require(_0x42604e(0x1e0)),O=require(_0x42604e(0x1bb)),C=require(_0x42604e(0x205)),R=require(_0x42604e(0x1a9)),h=require(_0x42604e(0x1f2)),y=require(_0x42604e(0x176)),m=require(_0x42604e(0x20f)),L=require(_0x42604e(0x171)),N=require('@wendellhu/redi/react-bindings'),I=require('@univerjs/design'),W=require(_0x42604e(0x1d4)),s=require(_0x42604e(0x146));class w extends l[_0x42604e(0x1a6)]{constructor(){var _0x4c5f8f=_0x42604e;super(...arguments),d(this,_0x4c5f8f(0x1cd),new Set()),d(this,_0x4c5f8f(0x185),new Set());}['registerSharedOperation'](_0x402ea3){var _0x515679=_0x42604e;return this['_sharedOperations']['add'](_0x402ea3),l['toDisposable'](()=>this[_0x515679(0x1cd)]['delete'](_0x402ea3));}[_0x42604e(0x214)](_0x2586ae){var _0x3ea2b9=_0x42604e;return this[_0x3ea2b9(0x185)]['add'](_0x2586ae),l['toDisposable'](()=>this[_0x3ea2b9(0x185)][_0x3ea2b9(0x1ad)](_0x2586ae));}[_0x42604e(0x1c7)](_0x3c7810){var _0x2e0de6=_0x42604e;return this[_0x2e0de6(0x1cd)][_0x2e0de6(0x1e6)](_0x3c7810);}[_0x42604e(0x141)](_0x3d0dfa){var _0x8b40b5=_0x42604e;return Array[_0x8b40b5(0x1cc)](this[_0x8b40b5(0x185)])[_0x8b40b5(0x20d)](_0x468367=>_0x468367(_0x3d0dfa));}}var B=Object['defineProperty'],G=Object['getOwnPropertyDescriptor'],Y=(_0x4d049e,_0x2eb61d,_0x3810f2,_0x49439f)=>{var _0x2f9138=_0x42604e;for(var _0x1e07a1=_0x49439f>0x1?void 0x0:_0x49439f?G(_0x2eb61d,_0x3810f2):_0x2eb61d,_0x20c625=_0x4d049e[_0x2f9138(0x197)]-0x1,_0x50942c;_0x20c625>=0x0;_0x20c625--)(_0x50942c=_0x4d049e[_0x20c625])&&(_0x1e07a1=(_0x49439f?_0x50942c(_0x2eb61d,_0x3810f2,_0x1e07a1):_0x50942c(_0x1e07a1))||_0x1e07a1);return _0x49439f&&_0x1e07a1&&B(_0x2eb61d,_0x3810f2,_0x1e07a1),_0x1e07a1;},z=(_0x80ed9b,_0x2e20ae)=>(_0xbc5bdb,_0x230f2c)=>_0x2e20ae(_0xbc5bdb,_0x230f2c,_0x80ed9b);function _0x40a0(_0x47a8be,_0x2073ab){var _0x3b1349=_0x3b13();return _0x40a0=function(_0x40a014,_0x2e2c3f){_0x40a014=_0x40a014-0x138;var _0xb7d57f=_0x3b1349[_0x40a014];return _0xb7d57f;},_0x40a0(_0x47a8be,_0x2073ab);}let E=class extends l[_0x42604e(0x1a6)]{constructor(_0x290ff5){var _0x5ac234=_0x42604e;super(),this[_0x5ac234(0x198)]=_0x290ff5,this[_0x5ac234(0x174)]();}[_0x42604e(0x174)](){var _0x347fa9=_0x42604e;[R[_0x347fa9(0x1dd)]['id'],R[_0x347fa9(0x184)]['id'],C[_0x347fa9(0x1db)]['id']][_0x347fa9(0x18c)](_0x117919=>{var _0xc4a91c=_0x347fa9;this[_0xc4a91c(0x17d)](this[_0xc4a91c(0x198)][_0xc4a91c(0x20a)](_0x117919));});}};E=Y([l['OnLifecycle'](l['LifecycleStages'][_0x42604e(0x18b)],E),z(0x0,_[_0x42604e(0x155)](w))],E);var Z=Object['defineProperty'],J=Object[_0x42604e(0x173)],A=(_0x1f6a11,_0x3b960c,_0x1125f8,_0x13ffe4)=>{var _0x19a8a7=_0x42604e;for(var _0x2cc282=_0x13ffe4>0x1?void 0x0:_0x13ffe4?J(_0x3b960c,_0x1125f8):_0x3b960c,_0x403bdf=_0x1f6a11[_0x19a8a7(0x197)]-0x1,_0x5393fa;_0x403bdf>=0x0;_0x403bdf--)(_0x5393fa=_0x1f6a11[_0x403bdf])&&(_0x2cc282=(_0x13ffe4?_0x5393fa(_0x3b960c,_0x1125f8,_0x2cc282):_0x5393fa(_0x2cc282))||_0x2cc282);return _0x13ffe4&&_0x2cc282&&Z(_0x3b960c,_0x1125f8,_0x2cc282),_0x2cc282;},v=(_0x96dd66,_0x3ed389)=>(_0x4835e8,_0x14a132)=>_0x3ed389(_0x4835e8,_0x14a132,_0x96dd66);let D=class extends l[_0x42604e(0x152)]{constructor(_0x520352,_0x298870,_0xbf2bd7){var _0x2976cb=_0x42604e;super(),d(this,'_entities',new Map()),(this[_0x2976cb(0x160)]=_0x520352,this[_0x2976cb(0x166)]=_0x298870,this['_collabSessionService']=_0xbf2bd7,this[_0x2976cb(0x174)]());}async['getLiveShareCoordinator'](_0x56ac1c){var _0x4e2f02=_0x42604e;return this['_entities']['has'](_0x56ac1c)||await this['_startLiveShareCoordinator'](_0x56ac1c),this[_0x4e2f02(0x18f)][_0x4e2f02(0x1ab)](_0x56ac1c);}[_0x42604e(0x174)](){var _0x19413e=_0x42604e;this[_0x19413e(0x160)][_0x19413e(0x1f1)](l[_0x19413e(0x1e5)][_0x19413e(0x1c6)])[_0x19413e(0x15d)](m['takeUntil'](this[_0x19413e(0x1b9)]))[_0x19413e(0x18d)](async _0x42dd65=>{var _0x3ba137=_0x19413e;const _0x4f6772=_0x42dd65[_0x3ba137(0x140)]();this[_0x3ba137(0x18f)][_0x3ba137(0x1e6)](_0x4f6772)||this['_startLiveShareCoordinator'](_0x4f6772);}),this[_0x19413e(0x160)][_0x19413e(0x148)](l[_0x19413e(0x1e5)]['UNIVER_SHEET'])[_0x19413e(0x15d)](m['takeUntil'](this[_0x19413e(0x1b9)]))[_0x19413e(0x18d)](_0x3bc5f8=>{var _0x18fdfa=_0x19413e;const _0x28834d=_0x3bc5f8[_0x18fdfa(0x140)](),_0x3ca012=this[_0x18fdfa(0x18f)][_0x18fdfa(0x1ab)](_0x28834d);_0x3ca012==null||_0x3ca012['dispose']();});}async[_0x42604e(0x217)](_0x55a4ad){var _0x1e08cf=_0x42604e;const _0x476e8f=await this[_0x1e08cf(0x139)][_0x1e08cf(0x1d3)](_0x55a4ad),_0x3add6b=this[_0x1e08cf(0x166)][_0x1e08cf(0x1e4)](P,_0x55a4ad,_0x476e8f);return _0x3add6b[_0x1e08cf(0x188)](),this[_0x1e08cf(0x18f)][_0x1e08cf(0x1c4)](_0x55a4ad,_0x3add6b),_0x3add6b;}};D=A([v(0x0,l['IUniverInstanceService']),v(0x1,_[_0x42604e(0x155)](_[_0x42604e(0x209)])),v(0x2,_[_0x42604e(0x155)](O['CollaborationSessionService']))],D);var f=(_0x45a247=>(_0x45a247[_0x42604e(0x20c)]=_0x42604e(0x1b5),_0x45a247[_0x42604e(0x1a8)]='idle',_0x45a247[_0x42604e(0x154)]='following',_0x45a247['NOT_FOLLOWING']=_0x42604e(0x200),_0x45a247[_0x42604e(0x189)]=_0x42604e(0x211),_0x45a247))(f||{});const K=_0x42604e(0x1e2),Q=0xc8;let P=class extends l[_0x42604e(0x152)]{constructor(_0x440302,_0x1eabe3,_0x4e487b,_0x50de2a,_0x365222){var _0x304f05=_0x42604e;super(),d(this,_0x304f05(0x15c),new y[(_0x304f05(0x1f9))](_0x304f05(0x168))),d(this,_0x304f05(0x1e7),this[_0x304f05(0x15c)][_0x304f05(0x19c)]()),d(this,_0x304f05(0x174),!0x1),d(this,'_commandDisposable',null),d(this,_0x304f05(0x19e),null),(this[_0x304f05(0x13c)]=_0x440302,this[_0x304f05(0x177)]=_0x1eabe3,this[_0x304f05(0x1cb)]=_0x4e487b,this[_0x304f05(0x198)]=_0x50de2a,this['_commandService']=_0x365222);}get[_0x42604e(0x16a)](){var _0x2867f2=_0x42604e;return this[_0x2867f2(0x15c)]['getValue']();}[_0x42604e(0x1ed)](){var _0x4f7194=_0x42604e,_0x2a7ab8;(_0x2a7ab8=this[_0x4f7194(0x1a1)])==null||_0x2a7ab8['dispose'](),this['_status$'][_0x4f7194(0x17f)](_0x4f7194(0x168)),this['_status$'][_0x4f7194(0x216)]();}[_0x42604e(0x188)](){var _0x471335=_0x42604e;this[_0x471335(0x174)]||(this[_0x471335(0x174)]=!0x0,this[_0x471335(0x177)][_0x471335(0x179)][_0x471335(0x15d)](m[_0x471335(0x1d6)](this[_0x471335(0x1b9)]))['subscribe'](_0x43e88a=>{var _0x3990de=_0x471335;switch(_0x43e88a){case O[_0x3990de(0x1c0)][_0x3990de(0x20c)]:this[_0x3990de(0x142)]();break;case O['SessionStatus'][_0x3990de(0x194)]:this['_handleOnline']();break;}}),this[_0x471335(0x177)][_0x471335(0x1eb)][_0x471335(0x15d)](m['takeUntil'](this['dispose$']))[_0x471335(0x18d)](_0x1f64ad=>{var _0x380be9=_0x471335;const {eventID:_0x5d632c}=_0x1f64ad;switch(_0x5d632c){case h[_0x380be9(0x178)]['LIVESHARE_NEW_HOST']:this[_0x380be9(0x1f4)](_0x1f64ad);break;case h[_0x380be9(0x178)]['LIVESHARE_OPERATION']:this[_0x380be9(0x1a0)](_0x1f64ad);break;case h['CollaborationEvent'][_0x380be9(0x204)]:this[_0x380be9(0x1e8)]();break;case h[_0x380be9(0x178)][_0x380be9(0x218)]:this[_0x380be9(0x208)](_0x1f64ad);break;}}));}['tryStartPresenting'](){var _0x1ce675=_0x42604e;this[_0x1ce675(0x177)][_0x1ce675(0x1a2)]({'eventID':h['CollaborationEvent'][_0x1ce675(0x207)],'data':{'unitID':this['_unitID'],'userID':this[_0x1ce675(0x177)][_0x1ce675(0x1b6)]()}},this['_unitID']);}[_0x42604e(0x21a)](){var _0x518e8c=_0x42604e;this[_0x518e8c(0x16a)]===_0x518e8c(0x211)&&(this[_0x518e8c(0x15c)][_0x518e8c(0x17f)]('idle'),this[_0x518e8c(0x177)][_0x518e8c(0x1a2)]({'eventID':h['CollaborationEvent'][_0x518e8c(0x204)],'data':{'unitID':this[_0x518e8c(0x13c)]}},this['_unitID']));}[_0x42604e(0x182)](){var _0x2c99c0=_0x42604e;this['_status']==='not-following'&&(this[_0x2c99c0(0x15c)]['next'](_0x2c99c0(0x1d8)),this['_startFollowing']());}[_0x42604e(0x172)](){var _0x563ddc=_0x42604e;this['_status']===_0x563ddc(0x1d8)&&this[_0x563ddc(0x1f8)]();}[_0x42604e(0x1f4)](_0x292902){var _0x46b960=_0x42604e;const {presenter:_0x21d999}=_0x292902[_0x46b960(0x187)],_0x241f33=this[_0x46b960(0x177)][_0x46b960(0x1b6)]();this['_presenter']=_0x21d999,_0x21d999===_0x241f33?(this['_stopFollowing'](),this[_0x46b960(0x1a7)]()):this[_0x46b960(0x16a)]!==_0x46b960(0x200)&&(this[_0x46b960(0x1ee)](),this[_0x46b960(0x1b3)]());}[_0x42604e(0x1fc)](){var _0x4cc6e2=_0x42604e;const _0x232b14={'eventID':h[_0x4cc6e2(0x178)][_0x4cc6e2(0x1f5)]};this[_0x4cc6e2(0x177)][_0x4cc6e2(0x1a2)](_0x232b14,this[_0x4cc6e2(0x13c)]);}['_handleTerminate'](){var _0x5bd32e=_0x42604e;this[_0x5bd32e(0x19e)]=null,this[_0x5bd32e(0x16a)]!==_0x5bd32e(0x211)&&this[_0x5bd32e(0x1ef)]();}[_0x42604e(0x208)](_0x5551a1){var _0x10d09b=_0x42604e;if(this[_0x10d09b(0x16a)]===_0x10d09b(0x1d8)&&this['_presenter']===_0x5551a1['data'][_0x10d09b(0x19d)]){const _0x3b56cb=h[_0x10d09b(0x19a)](_0x5551a1[_0x10d09b(0x187)])['mutations']['reverse']()[_0x10d09b(0x181)](_0x570a61=>_0x570a61['id']===C[_0x10d09b(0x1c9)]['id']);if(_0x3b56cb){const _0x92b3eb=_0x3b56cb[_0x10d09b(0x1df)]['unitId'],_0x5de609=_0x3b56cb[_0x10d09b(0x1df)][_0x10d09b(0x1c1)]['id'];setTimeout(()=>{var _0xb3391f=_0x10d09b;this[_0xb3391f(0x210)][_0xb3391f(0x1e1)](C[_0xb3391f(0x1db)]['id'],{'unitId':_0x92b3eb,'subUnitId':_0x5de609},{'fromCollab':!0x0});});}}}[_0x42604e(0x1a7)](){var _0x2627c8=_0x42604e;this[_0x2627c8(0x15c)][_0x2627c8(0x17f)](_0x2627c8(0x211));const _0x4c4034=new Map(),_0x534fa6=this[_0x2627c8(0x1a1)]=new l[(_0x2627c8(0x1d1))]();_0x534fa6['add'](l[_0x2627c8(0x164)](()=>{var _0x396b9a=_0x2627c8;_0x4c4034[_0x396b9a(0x18c)](_0x580910=>_0x580910[_0x396b9a(0x216)]()),_0x4c4034['clear']();})),_0x534fa6[_0x2627c8(0x165)](this[_0x2627c8(0x210)][_0x2627c8(0x1e9)](_0x4a12c3=>{var _0x4c3f7=_0x2627c8,_0x54c2a3;if(_0x4a12c3[_0x4c3f7(0x191)]!==l['CommandType'][_0x4c3f7(0x175)]||!this[_0x4c3f7(0x198)][_0x4c3f7(0x1c7)](_0x4a12c3['id']))return;const {id:_0x3d06da}=_0x4a12c3;let _0x4d5242;_0x4c4034['has'](_0x3d06da)?_0x4d5242=_0x4c4034[_0x4c3f7(0x1ab)](_0x3d06da):(_0x4d5242=new y[(_0x4c3f7(0x1ac))](),_0x4c4034['set'](_0x3d06da,_0x4d5242),_0x4d5242[_0x4c3f7(0x15d)](m['throttleTime']((_0x54c2a3=this['_configService'][_0x4c3f7(0x192)](K))!=null?_0x54c2a3:Q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c3f7(0x18d)](_0x3fc665=>{var _0x77b94c=_0x4c3f7;this[_0x77b94c(0x177)]['send']({'eventID':h['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x77b94c(0x13c)],'operations':{[_0x3fc665['id']]:{'id':_0x3fc665['id'],'params':JSON['stringify'](_0x3fc665[_0x77b94c(0x1df)])}}}},this['_unitID']);})),_0x4d5242[_0x4c3f7(0x17f)](_0x4a12c3);})),this['_liveShareService'][_0x2627c8(0x141)](this[_0x2627c8(0x13c)])['forEach'](_0x487e01=>this[_0x2627c8(0x177)]['send']({'eventID':h[_0x2627c8(0x178)][_0x2627c8(0x219)],'data':{'unitID':this['_unitID'],'operations':{[_0x487e01['id']]:{'id':_0x487e01['id'],'params':JSON[_0x2627c8(0x13d)](_0x487e01['params'])}}}},this[_0x2627c8(0x13c)]));}['_stopPresenting'](){var _0x176ed7=_0x42604e,_0x3b1056;this[_0x176ed7(0x15c)]['next'](_0x176ed7(0x168)),(_0x3b1056=this['_commandDisposable'])==null||_0x3b1056[_0x176ed7(0x1ed)](),this[_0x176ed7(0x1a1)]=null;}[_0x42604e(0x1b3)](){var _0x511bf7=_0x42604e,_0x4e9121;(_0x4e9121=this[_0x511bf7(0x1a1)])==null||_0x4e9121[_0x511bf7(0x1ed)](),this[_0x511bf7(0x15c)][_0x511bf7(0x17f)](_0x511bf7(0x1d8));}[_0x42604e(0x1ef)](){var _0x415eac=_0x42604e,_0x3c41da;this[_0x415eac(0x15c)]['next']('idle'),(_0x3c41da=this[_0x415eac(0x1a1)])==null||_0x3c41da[_0x415eac(0x1ed)](),this[_0x415eac(0x1a1)]=null;}['_stopFollowing'](){var _0x45a455=_0x42604e,_0x530c3d;this[_0x45a455(0x15c)]['next'](_0x45a455(0x200)),(_0x530c3d=this['_commandDisposable'])==null||_0x530c3d[_0x45a455(0x1ed)]();}[_0x42604e(0x1a0)](_0x23298b){var _0x514458=_0x42604e;if([_0x514458(0x211),_0x514458(0x200),_0x514458(0x1b5)][_0x514458(0x195)](this[_0x514458(0x16a)])||!_0x23298b[_0x514458(0x187)][_0x514458(0x1d0)]||_0x23298b['data'][_0x514458(0x1d0)]===this[_0x514458(0x177)][_0x514458(0x1b6)]())return;this[_0x514458(0x16a)]==='idle'&&this['_startFollowing']();const _0x3e8414=_0x23298b[_0x514458(0x187)][_0x514458(0x13f)];Object[_0x514458(0x153)](_0x3e8414)[_0x514458(0x18c)](_0x124813=>{var _0x4e237c=_0x514458;this['_commandService'][_0x4e237c(0x1e1)](_0x124813['id'],_0x124813[_0x4e237c(0x1df)]?JSON[_0x4e237c(0x170)](_0x124813['params']):null,{'fromCollab':!0x0});});}[_0x42604e(0x142)](){var _0x30dfa2=_0x42604e,_0x4dbdd9;this[_0x30dfa2(0x15c)]['next'](_0x30dfa2(0x1b5)),(_0x4dbdd9=this['_commandDisposable'])==null||_0x4dbdd9['dispose']();}[_0x42604e(0x161)](){var _0x5e7691=_0x42604e;this[_0x5e7691(0x15c)]['next'](_0x5e7691(0x168)),this[_0x5e7691(0x1fc)]();}};P=A([v(0x2,l[_0x42604e(0x1da)]),v(0x3,_['Inject'](w)),v(0x4,l['ICommandService'])],P);var c=function(){var _0x5d3ead=_0x42604e;return c=Object[_0x5d3ead(0x1f3)]||function(_0x54a4fa){var _0x432277=_0x5d3ead;for(var _0x3f9319,_0x30b32b=0x1,_0x48c6ad=arguments[_0x432277(0x197)];_0x30b32b<_0x48c6ad;_0x30b32b++){_0x3f9319=arguments[_0x30b32b];for(var _0x4a69c1 in _0x3f9319)Object[_0x432277(0x213)][_0x432277(0x13b)][_0x432277(0x169)](_0x3f9319,_0x4a69c1)&&(_0x54a4fa[_0x4a69c1]=_0x3f9319[_0x4a69c1]);}return _0x54a4fa;},c['apply'](this,arguments);},X=function(_0x184b6c,_0x12e61b){var _0x1fc639=_0x42604e,_0x138da6={};for(var _0x4e70cd in _0x184b6c)Object[_0x1fc639(0x213)][_0x1fc639(0x13b)][_0x1fc639(0x169)](_0x184b6c,_0x4e70cd)&&_0x12e61b[_0x1fc639(0x1ba)](_0x4e70cd)<0x0&&(_0x138da6[_0x4e70cd]=_0x184b6c[_0x4e70cd]);if(_0x184b6c!=null&&typeof Object[_0x1fc639(0x1fb)]==_0x1fc639(0x1f0)){for(var _0x4bb9d2=0x0,_0x4e70cd=Object[_0x1fc639(0x1fb)](_0x184b6c);_0x4bb9d2<_0x4e70cd[_0x1fc639(0x197)];_0x4bb9d2++)_0x12e61b[_0x1fc639(0x1ba)](_0x4e70cd[_0x4bb9d2])<0x0&&Object[_0x1fc639(0x213)]['propertyIsEnumerable']['call'](_0x184b6c,_0x4e70cd[_0x4bb9d2])&&(_0x138da6[_0x4e70cd[_0x4bb9d2]]=_0x184b6c[_0x4e70cd[_0x4bb9d2]]);}return _0x138da6;},U=s[_0x42604e(0x1fd)](function(_0x25b251,_0x3eb2b2){var _0x5efa0c=_0x42604e,_0x4103e9=_0x25b251[_0x5efa0c(0x215)],_0x381d68=_0x25b251['id'],_0xba7c6b=_0x25b251['className'],_0x3a4ec7=_0x25b251[_0x5efa0c(0x1e3)],_0x4d7478=X(_0x25b251,[_0x5efa0c(0x215),'id',_0x5efa0c(0x1c2),'extend']),_0xf11ee1=_0x5efa0c(0x14d)['concat'](_0x381d68,'\x20')[_0x5efa0c(0x149)](_0xba7c6b||'')[_0x5efa0c(0x183)](),_0x4c1252=s[_0x5efa0c(0x1b7)]('_'[_0x5efa0c(0x149)](te()));return $(_0x4103e9,''['concat'](_0x381d68),{'defIds':_0x4103e9[_0x5efa0c(0x1a3)],'idSuffix':_0x4c1252[_0x5efa0c(0x193)]},c({'ref':_0x3eb2b2,'className':_0xf11ee1},_0x4d7478),_0x3a4ec7);});function $(_0x162a0f,_0x1dd5ce,_0x907c87,_0x344f77,_0x246103){var _0x5e027a=_0x42604e;return s[_0x5e027a(0x1a4)](_0x162a0f[_0x5e027a(0x1bc)],c(c({'key':_0x1dd5ce},k(_0x162a0f,_0x907c87,_0x246103)),_0x344f77),(ee(_0x162a0f,_0x907c87)['children']||[])[_0x5e027a(0x20d)](function(_0xa40832,_0x34c925){var _0x49e7a6=_0x5e027a;return $(_0xa40832,''[_0x49e7a6(0x149)](_0x1dd5ce,'-')[_0x49e7a6(0x149)](_0x162a0f[_0x49e7a6(0x1bc)],'-')['concat'](_0x34c925),_0x907c87,void 0x0,_0x246103);}));}function k(_0x3d2984,_0x1c0d54,_0x10d26a){var _0x3fdedc=_0x42604e,_0x1855f8=c({},_0x3d2984['attrs']);_0x10d26a!=null&&_0x10d26a[_0x3fdedc(0x190)]&&_0x1855f8['fill']===_0x3fdedc(0x190)&&(_0x1855f8[_0x3fdedc(0x202)]=_0x10d26a[_0x3fdedc(0x190)]);var _0x1ce5c1=_0x1c0d54[_0x3fdedc(0x1a3)];return!_0x1ce5c1||_0x1ce5c1[_0x3fdedc(0x197)]===0x0||(_0x3d2984[_0x3fdedc(0x1bc)]===_0x3fdedc(0x13e)&&_0x1855f8[_0x3fdedc(0x147)]&&(_0x1855f8['xlink:href']=_0x1855f8[_0x3fdedc(0x147)]+_0x1c0d54[_0x3fdedc(0x16e)]),Object['entries'](_0x1855f8)[_0x3fdedc(0x18c)](function(_0x1a5c7a){var _0x43f476=_0x3fdedc,_0xfdbf71=_0x1a5c7a[0x0],_0xc37ba8=_0x1a5c7a[0x1];typeof _0xc37ba8==_0x43f476(0x1ff)&&(_0x1855f8[_0xfdbf71]=_0xc37ba8['replace'](/url\(#(.*)\)/,_0x43f476(0x150)['concat'](_0x1c0d54['idSuffix'],')')));})),_0x1855f8;}function ee(_0x4198e5,_0x1fd87b){var _0x111b6f=_0x42604e,_0x5e116d,_0x1c58fe=_0x1fd87b[_0x111b6f(0x1a3)];return!_0x1c58fe||_0x1c58fe[_0x111b6f(0x197)]===0x0?_0x4198e5:_0x4198e5[_0x111b6f(0x1bc)]===_0x111b6f(0x186)&&(!((_0x5e116d=_0x4198e5['children'])===null||_0x5e116d===void 0x0)&&_0x5e116d[_0x111b6f(0x197)])?c(c({},_0x4198e5),{'children':_0x4198e5[_0x111b6f(0x16b)][_0x111b6f(0x20d)](function(_0x1a3adf){var _0x562f97=_0x111b6f;return typeof _0x1a3adf[_0x562f97(0x1fa)]['id']=='string'&&_0x1c58fe&&_0x1c58fe['indexOf'](_0x1a3adf[_0x562f97(0x1fa)]['id'])>-0x1?c(c({},_0x1a3adf),{'attrs':c(c({},_0x1a3adf[_0x562f97(0x1fa)]),{'id':_0x1a3adf[_0x562f97(0x1fa)]['id']+_0x1fd87b['idSuffix']})}):_0x1a3adf;})}):_0x4198e5;}function te(){var _0xb07540=_0x42604e;return Math[_0xb07540(0x180)]()[_0xb07540(0x14c)](0x24)[_0xb07540(0x151)](0x2,0x8);}U[_0x42604e(0x1ec)]=_0x42604e(0x1c8);var ne={'tag':_0x42604e(0x196),'attrs':{'fill':'none','viewBox':_0x42604e(0x1f7),'width':_0x42604e(0x19f),'height':'1em'},'children':[{'tag':_0x42604e(0x143),'attrs':{'fill':'currentColor','d':_0x42604e(0x144)}},{'tag':_0x42604e(0x143),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x42604e(0x1bf),'clipRule':_0x42604e(0x1bf)}}]},j=s['forwardRef'](function(_0x52a02d,_0x462e08){var _0x13e8db=_0x42604e;return s[_0x13e8db(0x1a4)](U,Object[_0x13e8db(0x1f3)]({},_0x52a02d,{'id':_0x13e8db(0x16f),'ref':_0x462e08,'icon':ne}));});j['displayName']=_0x42604e(0x1b0);const ie=_0x42604e(0x1b8),re=_0x42604e(0x157),se=_0x42604e(0x1d9),ae=_0x42604e(0x1be),S={'liveShare':ie,'liveShareStatusOffline':re,'liveShareDropdown':se,'liveShareDropdownTitle':ae};function oe(){var _0x1c265a=_0x42604e;const _0xcbd87e=N[_0x1c265a(0x1de)](D),_0xb39ce1=N['useDependency'](l[_0x1c265a(0x15a)]),_0x320832=L[_0x1c265a(0x1ea)](()=>_0xb39ce1['getCurrentTypeOfUnit$'](l[_0x1c265a(0x1e5)][_0x1c265a(0x1c6)]),void 0x0,!0x1,[]),[_0x4fc60e,_0x5e1975]=s[_0x1c265a(0x20b)](null),[_0x296f04,_0x1b61e2]=s[_0x1c265a(0x20b)](f[_0x1c265a(0x1a8)]),_0xd7393e=s[_0x1c265a(0x1b7)](null);s['useEffect'](()=>(_0x320832&&_0xcbd87e[_0x1c265a(0x1c5)](_0x320832[_0x1c265a(0x140)]())[_0x1c265a(0x201)](_0x1bbf13=>{var _0x34ab98=_0x1c265a;_0x5e1975(_0x1bbf13),_0xd7393e[_0x34ab98(0x193)]=_0x1bbf13[_0x34ab98(0x1e7)][_0x34ab98(0x18d)](_0x21d021=>{_0x1b61e2(_0x21d021);});}),()=>{var _0x25bc5d=_0x1c265a,_0x13116c;(_0x13116c=_0xd7393e[_0x25bc5d(0x193)])==null||_0x13116c['unsubscribe'](),_0xd7393e[_0x25bc5d(0x193)]=null;}),[_0x320832,_0xcbd87e]);const _0xf53726=_0x296f04!==f['OFFLINE']?[_0x1c265a(0x17a)]:[],_0x17d947=W(S[_0x1c265a(0x16d)],_0x1c265a(0x16c)+_0x296f04);return _0x4fc60e?s['createElement'](I[_0x1c265a(0x156)],{'trigger':_0xf53726,'overlay':s[_0x1c265a(0x1a4)](_0x1c265a(0x13a),{'className':S[_0x1c265a(0x1ae)]},s[_0x1c265a(0x1a4)](le,{'status':_0x296f04,'coordinator':_0x4fc60e}))},s['createElement']('div',{'className':_0x17d947},s[_0x1c265a(0x1a4)](j,null))):null;}function le(_0x1d72ec){var _0x500cb4=_0x42604e;const {status:_0x318b67,coordinator:_0x296780}=_0x1d72ec;switch(_0x318b67){case f[_0x500cb4(0x1a8)]:return s[_0x500cb4(0x1a4)](ce,{'coordinator':_0x296780});case f[_0x500cb4(0x154)]:return s[_0x500cb4(0x1a4)](ue,{'coordinator':_0x296780});case f[_0x500cb4(0x1c3)]:return s['createElement'](he,{'coordinator':_0x296780});case f[_0x500cb4(0x20c)]:return s['createElement'](_e,null);case f[_0x500cb4(0x189)]:return s['createElement'](de,{'coordinator':_0x296780});default:return null;}}function ce(_0x1e0419){var _0x27df5d=_0x42604e;return s[_0x27df5d(0x1a4)](s[_0x27df5d(0x21b)],null,s['createElement']('div',{'className':S[_0x27df5d(0x1d7)]},_0x27df5d(0x206)),s['createElement'](I['Button'],{'size':_0x27df5d(0x1b1),'type':_0x27df5d(0x17e),'onClick':()=>_0x1e0419[_0x27df5d(0x18e)][_0x27df5d(0x203)]()},_0x27df5d(0x1dc)));}function ue(_0x1cc7dd){var _0x18fa37=_0x42604e;return s['createElement'](s[_0x18fa37(0x21b)],null,s[_0x18fa37(0x1a4)](_0x18fa37(0x13a),{'className':S[_0x18fa37(0x1d7)]},_0x18fa37(0x1f6)),s['createElement'](I['Button'],{'size':_0x18fa37(0x1b1),'type':_0x18fa37(0x17e),'onClick':()=>_0x1cc7dd[_0x18fa37(0x18e)][_0x18fa37(0x172)]()},_0x18fa37(0x145)));}function he(_0x28f0f3){var _0x755a8e=_0x42604e;return s[_0x755a8e(0x1a4)](s[_0x755a8e(0x21b)],null,s[_0x755a8e(0x1a4)]('div',{'className':S['liveShareDropdownTitle']},_0x755a8e(0x1fe)),s[_0x755a8e(0x1a4)](I[_0x755a8e(0x14a)],{'size':_0x755a8e(0x1b1),'type':_0x755a8e(0x1af),'onClick':()=>_0x28f0f3['coordinator'][_0x755a8e(0x182)]()},'Start\x20following'));}function de(_0x43bf8e){var _0x2d24c4=_0x42604e;return s[_0x2d24c4(0x1a4)](s['Fragment'],null,s[_0x2d24c4(0x1a4)](_0x2d24c4(0x13a),{'className':S[_0x2d24c4(0x1d7)]},'You\x27re\x20presenting\x20the\x20document'),s['createElement'](I[_0x2d24c4(0x14a)],{'size':_0x2d24c4(0x1b1),'type':_0x2d24c4(0x17e),'onClick':()=>_0x43bf8e[_0x2d24c4(0x18e)][_0x2d24c4(0x21a)]()},_0x2d24c4(0x1a5)));}function _e(){var _0x32054b=_0x42604e;return s[_0x32054b(0x1a4)](s[_0x32054b(0x21b)],null,'You\x27are\x20offline.');}var fe=Object[_0x42604e(0x1cf)],pe=Object['getOwnPropertyDescriptor'],ve=(_0x4bec31,_0x171447,_0x2c92c5,_0x52535d)=>{for(var _0x372e4b=_0x52535d>0x1?void 0x0:_0x52535d?pe(_0x171447,_0x2c92c5):_0x171447,_0x441c8f=_0x4bec31['length']-0x1,_0x97f45e;_0x441c8f>=0x0;_0x441c8f--)(_0x97f45e=_0x4bec31[_0x441c8f])&&(_0x372e4b=(_0x52535d?_0x97f45e(_0x171447,_0x2c92c5,_0x372e4b):_0x97f45e(_0x372e4b))||_0x372e4b);return _0x52535d&&_0x372e4b&&fe(_0x171447,_0x2c92c5,_0x372e4b),_0x372e4b;},T=(_0x5b0001,_0x164967)=>(_0x12849b,_0x4ab607)=>_0x164967(_0x12849b,_0x4ab607,_0x5b0001);let b=class extends l['Disposable']{constructor(_0x4db9b4,_0x2a95ea){var _0x4c2cde=_0x42604e;super(),this[_0x4c2cde(0x166)]=_0x4db9b4,this[_0x4c2cde(0x167)]=_0x2a95ea,this[_0x4c2cde(0x1d2)]();}[_0x42604e(0x1d2)](){var _0xc8301e=_0x42604e;this[_0xc8301e(0x17d)](this['_uiPartsService']['registerComponent'](L[_0xc8301e(0x15f)][_0xc8301e(0x138)],()=>N[_0xc8301e(0x21c)](oe,this['_injector'])));}};b=ve([l[_0x42604e(0x19b)](l['LifecycleStages'][_0x42604e(0x212)],b),T(0x0,_['Inject'](_[_0x42604e(0x209)])),T(0x1,L[_0x42604e(0x158)])],b);var x=Object['defineProperty'],Se=Object['getOwnPropertyDescriptor'],ge=(_0x3e1f3f,_0xacee50,_0x18b5db)=>_0xacee50 in _0x3e1f3f?x(_0x3e1f3f,_0xacee50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18b5db}):_0x3e1f3f[_0xacee50]=_0x18b5db,me=(_0x30b3f8,_0x26cdf2,_0x15fc00,_0x5a2a48)=>{var _0x43ab93=_0x42604e;for(var _0x234b07=_0x5a2a48>0x1?void 0x0:_0x5a2a48?Se(_0x26cdf2,_0x15fc00):_0x26cdf2,_0x3d5eb7=_0x30b3f8[_0x43ab93(0x197)]-0x1,_0xe80b9f;_0x3d5eb7>=0x0;_0x3d5eb7--)(_0xe80b9f=_0x30b3f8[_0x3d5eb7])&&(_0x234b07=(_0x5a2a48?_0xe80b9f(_0x26cdf2,_0x15fc00,_0x234b07):_0xe80b9f(_0x234b07))||_0x234b07);return _0x5a2a48&&_0x234b07&&x(_0x26cdf2,_0x15fc00,_0x234b07),_0x234b07;},Ie=(_0x97987d,_0x1e59b2)=>(_0x580b99,_0x264018)=>_0x1e59b2(_0x580b99,_0x264018,_0x97987d),F=(_0x2a6d26,_0x28fccf,_0x32c057)=>ge(_0x2a6d26,typeof _0x28fccf!='symbol'?_0x28fccf+'':_0x28fccf,_0x32c057);const Ee='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x42604e(0x1bd)]=class extends l[_0x42604e(0x1aa)]{constructor(_0x7a6c94,_0x59ce53){super(),this['_injector']=_0x59ce53;}[_0x42604e(0x1d5)](_0x5a3643){var _0x3ba27c=_0x42604e;[[w],[D],[E],[b]][_0x3ba27c(0x18c)](_0x256fe1=>_0x5a3643[_0x3ba27c(0x165)](_0x256fe1));}},F(exports[_0x42604e(0x1bd)],_0x42604e(0x191),l[_0x42604e(0x1e5)][_0x42604e(0x1c6)]),F(exports[_0x42604e(0x1bd)],_0x42604e(0x20e),Ee),exports[_0x42604e(0x1bd)]=me([l[_0x42604e(0x14e)](O['UniverCollaborationClientPlugin']),Ie(0x1,_[_0x42604e(0x155)](_[_0x42604e(0x209)]))],exports['UniverLiveSharePlugin']),exports[_0x42604e(0x15b)]=w;
1
+ 'use strict';var _0x3d98b6=_0x1908;(function(_0x1e34fe,_0x4f1a08){var _0x36b90f=_0x1908,_0x46c0e8=_0x1e34fe();while(!![]){try{var _0x1c2a01=-parseInt(_0x36b90f(0x241))/0x1*(-parseInt(_0x36b90f(0x1c0))/0x2)+-parseInt(_0x36b90f(0x17e))/0x3+-parseInt(_0x36b90f(0x1d5))/0x4+-parseInt(_0x36b90f(0x18b))/0x5+parseInt(_0x36b90f(0x1a7))/0x6+parseInt(_0x36b90f(0x1a3))/0x7*(parseInt(_0x36b90f(0x20b))/0x8)+-parseInt(_0x36b90f(0x206))/0x9*(-parseInt(_0x36b90f(0x1fc))/0xa);if(_0x1c2a01===_0x4f1a08)break;else _0x46c0e8['push'](_0x46c0e8['shift']());}catch(_0x39a457){_0x46c0e8['push'](_0x46c0e8['shift']());}}}(_0x4246,0xefa0e));var H=Object[_0x3d98b6(0x189)],V=(_0x2cf1c7,_0x4fa3e3,_0x46dc34)=>_0x4fa3e3 in _0x2cf1c7?H(_0x2cf1c7,_0x4fa3e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46dc34}):_0x2cf1c7[_0x4fa3e3]=_0x46dc34,d=(_0x396eba,_0x1d1ef5,_0x3b476f)=>V(_0x396eba,typeof _0x1d1ef5!=_0x3d98b6(0x233)?_0x1d1ef5+'':_0x1d1ef5,_0x3b476f);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x3d98b6(0x1ca)});const a=require(_0x3d98b6(0x184)),b=require(_0x3d98b6(0x1e5)),w=require(_0x3d98b6(0x1cc)),P=require('@univerjs/sheets-ui'),h=require(_0x3d98b6(0x255)),L=require(_0x3d98b6(0x1e1)),g=require(_0x3d98b6(0x1f8)),N=require(_0x3d98b6(0x228)),m=require(_0x3d98b6(0x17b)),M=require(_0x3d98b6(0x252)),s=require(_0x3d98b6(0x234));class D extends a[_0x3d98b6(0x1e6)]{constructor(){var _0x2f6874=_0x3d98b6;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2f6874(0x236),new Set());}[_0x3d98b6(0x25c)](_0x5bd259){var _0x1fd447=_0x3d98b6;return this[_0x1fd447(0x22e)][_0x1fd447(0x214)](_0x5bd259),a[_0x1fd447(0x232)](()=>this[_0x1fd447(0x22e)][_0x1fd447(0x22c)](_0x5bd259));}[_0x3d98b6(0x1ac)](_0x2326ee){var _0x394380=_0x3d98b6;return this['_reporters'][_0x394380(0x214)](_0x2326ee),a['toDisposable'](()=>this[_0x394380(0x236)][_0x394380(0x22c)](_0x2326ee));}['shouldShareOperation'](_0x23b833){var _0x344c10=_0x3d98b6;return this['_sharedOperations'][_0x344c10(0x210)](_0x23b833);}[_0x3d98b6(0x257)](_0x232335){var _0x374701=_0x3d98b6;return Array[_0x374701(0x250)](this['_reporters'])['map'](_0x5c5fd5=>_0x5c5fd5(_0x232335));}}var q=Object['defineProperty'],W=Object[_0x3d98b6(0x1e4)],G=(_0x1933e2,_0x15537e,_0x3f191c,_0x3f6644)=>{var _0xa0cf65=_0x3d98b6;for(var _0x4037b3=_0x3f6644>0x1?void 0x0:_0x3f6644?W(_0x15537e,_0x3f191c):_0x15537e,_0x2cc65a=_0x1933e2[_0xa0cf65(0x186)]-0x1,_0x4081f2;_0x2cc65a>=0x0;_0x2cc65a--)(_0x4081f2=_0x1933e2[_0x2cc65a])&&(_0x4037b3=(_0x3f6644?_0x4081f2(_0x15537e,_0x3f191c,_0x4037b3):_0x4081f2(_0x4037b3))||_0x4037b3);return _0x3f6644&&_0x4037b3&&q(_0x15537e,_0x3f191c,_0x4037b3),_0x4037b3;},B=(_0x1c52d8,_0x349bce)=>(_0x9d3ee4,_0x829b42)=>_0x349bce(_0x9d3ee4,_0x829b42,_0x1c52d8);let I=class extends a[_0x3d98b6(0x1e6)]{constructor(_0x439be7){var _0x24fe88=_0x3d98b6;super(),this[_0x24fe88(0x190)]=_0x439be7,this[_0x24fe88(0x18d)]();}[_0x3d98b6(0x18d)](){var _0x20c717=_0x3d98b6;[P[_0x20c717(0x1bc)]['id'],P[_0x20c717(0x1be)]['id'],w['SetWorksheetActiveOperation']['id']][_0x20c717(0x1c7)](_0x18db97=>{var _0x118a93=_0x20c717;this[_0x118a93(0x251)](this['_liveShareService'][_0x118a93(0x25c)](_0x18db97));});}};I=G([a[_0x3d98b6(0x1d4)](a['LifecycleStages'][_0x3d98b6(0x17a)],I),B(0x0,a[_0x3d98b6(0x230)](D))],I);var Y=Object[_0x3d98b6(0x189)],z=Object[_0x3d98b6(0x1e4)],y=(_0x1056ac,_0x503d1d,_0x22d66d,_0x2e854a)=>{var _0x1b10b2=_0x3d98b6;for(var _0x5112a5=_0x2e854a>0x1?void 0x0:_0x2e854a?z(_0x503d1d,_0x22d66d):_0x503d1d,_0xbb77dc=_0x1056ac[_0x1b10b2(0x186)]-0x1,_0x3e59d7;_0xbb77dc>=0x0;_0xbb77dc--)(_0x3e59d7=_0x1056ac[_0xbb77dc])&&(_0x5112a5=(_0x2e854a?_0x3e59d7(_0x503d1d,_0x22d66d,_0x5112a5):_0x3e59d7(_0x5112a5))||_0x5112a5);return _0x2e854a&&_0x5112a5&&Y(_0x503d1d,_0x22d66d,_0x5112a5),_0x5112a5;},p=(_0x26bfca,_0xb234c0)=>(_0x5efb8e,_0x26dcfc)=>_0xb234c0(_0x5efb8e,_0x26dcfc,_0x26bfca);let O=class extends a[_0x3d98b6(0x198)]{constructor(_0x3ebd57,_0x2ae0b6,_0x454e8a){var _0x2781d6=_0x3d98b6;super(),d(this,_0x2781d6(0x17d),new Map()),(this[_0x2781d6(0x1af)]=_0x3ebd57,this[_0x2781d6(0x1ae)]=_0x2ae0b6,this[_0x2781d6(0x1fa)]=_0x454e8a,this[_0x2781d6(0x18d)]());}async[_0x3d98b6(0x1ab)](_0x18d8ee){var _0x38f9c6=_0x3d98b6;return this[_0x38f9c6(0x17d)][_0x38f9c6(0x210)](_0x18d8ee)||await this['_startLiveShareCoordinator'](_0x18d8ee),this['_entities']['get'](_0x18d8ee);}[_0x3d98b6(0x18d)](){var _0x37bce6=_0x3d98b6;this[_0x37bce6(0x1af)][_0x37bce6(0x1b7)](a[_0x37bce6(0x1ff)][_0x37bce6(0x21d)])[_0x37bce6(0x195)](g[_0x37bce6(0x1d3)](this[_0x37bce6(0x243)]))['subscribe'](async _0x39ca47=>{var _0x1df3ba=_0x37bce6;const _0x49ce3f=_0x39ca47['getUnitId']();this['_entities'][_0x1df3ba(0x210)](_0x49ce3f)||this[_0x1df3ba(0x19d)](_0x49ce3f);}),this['_univerInstanceService'][_0x37bce6(0x1e2)](a[_0x37bce6(0x1ff)][_0x37bce6(0x21d)])[_0x37bce6(0x195)](g[_0x37bce6(0x1d3)](this[_0x37bce6(0x243)]))[_0x37bce6(0x202)](_0x193a3f=>{var _0x1e567f=_0x37bce6;const _0x102526=_0x193a3f[_0x1e567f(0x18f)](),_0x574281=this[_0x1e567f(0x17d)]['get'](_0x102526);_0x574281==null||_0x574281[_0x1e567f(0x1f7)]();});}async[_0x3d98b6(0x19d)](_0x48bffc){var _0x5c7248=_0x3d98b6;const _0x3f8e98=await this[_0x5c7248(0x1fa)][_0x5c7248(0x1ee)](_0x48bffc),_0x2cfd5d=this['_injector'][_0x5c7248(0x245)](C,_0x48bffc,_0x3f8e98);return _0x2cfd5d['init'](),this[_0x5c7248(0x17d)]['set'](_0x48bffc,_0x2cfd5d),_0x2cfd5d;}};O=y([p(0x0,a[_0x3d98b6(0x227)]),p(0x1,a['Inject'](a[_0x3d98b6(0x1b1)])),p(0x2,a['Inject'](b['CollaborationSessionService']))],O);var _=(_0x29f963=>(_0x29f963[_0x3d98b6(0x258)]='offline',_0x29f963['IDLE']=_0x3d98b6(0x1a5),_0x29f963[_0x3d98b6(0x240)]=_0x3d98b6(0x20a),_0x29f963[_0x3d98b6(0x231)]=_0x3d98b6(0x1f5),_0x29f963[_0x3d98b6(0x1bf)]=_0x3d98b6(0x25f),_0x29f963))(_||{});function _0x4246(){var _0x386710=['click','_unitID','_status','function','concat','call','LIVESHARE_OPERATION','from','disposeWithMe','clsx','getConfig','You\x27re\x20not\x20following\x20the\x20presenter','@univerjs-pro/collaboration','_fetchOperations','getInitialStates','OFFLINE','find','SAME_OPERATION_SHARE_INTERVAL','then','registerSharedOperation','idSuffix','SetWorksheetActiveOperation','presenting','className','fill','IConfigService','Present\x20this\x20document','Starting','@univerjs/design','asObservable','_entities','1916451HVrVWJ','icon','_handleOffline','CollaborationEvent','entries','SessionStatus','@univerjs/core','params','length','LiveShareSingle','onStarting','defineProperty','IDLE','5202260qhYYKK','xlink:href','_init','complete','getUnitId','_liveShareService','univer-live-share-dropdown','You\x27re\x20following\x20the\x20presenter','DisposableCollection','getMemberID','pipe','connectInjector','url(#$1','RxDisposable','getValue','coordinator','status$','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','_startLiveShareCoordinator','propertyIsEnumerable','next','_collabSession','Fragment','_handleNewHost','490wxJAJV','registerComponent','idle','toString','6855516ZyWPhA','displayName','sessionStatus$','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','getLiveShareCoordinator','registerInitialStateReporter','getOwnPropertySymbols','_injector','_univerInstanceService','stopFollowing','Injector','UniverIcon','mutations','_startPresenting','trim','values','getTypeOfUnitAdded$','univer-live-share','assign','svg','You\x27are\x20offline.','SetZoomRatioOperation','_startFollowing','SetScrollOperation','PRESENTING','90634quWNgA','event$','ICommandService','unitId','_handleTerminate','ONLINE','div','forEach','_handleNewChangeSets','UNIVER_LIVE_SHARE_PLUGIN','Module','DependentOn','@univerjs/sheets','_status$','data','univerjs-icon\x20univerjs-icon-','replace','InsertSheetMutation','Rendered','takeUntil','OnLifecycle','650172xCzVSV','Stop\x20presenting','LIVESHARE_REQUEST_HOST','currentColor','Stop\x20following','tryStartPresenting','set','_commandDisposable','tag','executeCommand','parseProtocolChangeset','startFollowing','rxjs','getTypeOfUnitDisposed$','map','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client','Disposable','_configService','useState','path','Start\x20following','useDependency','Start','memberID','requireSession','offline','_mountLiveShare','_beIdle','OPERATION','extend','current','not-following','type','dispose','rxjs/operators','HEADER_MENU','_collabSessionService','sheet','10tUStfH','LIVESHARE_NEW_HOST','parse','UniverInstanceType','liveShareDropdownTitle','BuiltInUIPart','subscribe','substring','small','evenodd','7605027FuaaVx','throttleTime','indexOf','getCurrentTypeOfUnit$','following','79976otWamM','operations','Plugin','_stopPresenting','init','has','useObservable','Button','children','add','reverse','createElement','prototype','shouldShareOperation','IUIPartsService','includes','LIVESHARE_TERMINATE','univer-live-share-status-offline','UNIVER_SHEET','_uiPartsService','_handleOnline','send','unsubscribe','UniverLiveSharePlugin','Subject','LIVESHARE_FETCH_OPERATIONS','presenter','forwardRef','IUniverInstanceService','@univerjs/ui','stringify','_commandService','colorChannel1','delete','use','_sharedOperations','_handleOperation','Inject','NOT_FOLLOWING','toDisposable','symbol','react','defIds','_reporters','attrs','default','NEW_CHANGESETS','1em','_presenter','text','string','stopPresenting','UniverCollaborationClientPlugin','FOLLOWING','3olUlLZ','useRef','dispose$','live-share-single','createInstance','_stopFollowing','0\x200\x2017\x2017','random'];_0x4246=function(){return _0x386710;};return _0x4246();}const Z=_0x3d98b6(0x25a),J=0xc8;let C=class extends a['RxDisposable']{constructor(_0x4af1e6,_0x593b2d,_0x125f0a,_0x7d77a3,_0x4bcf2f){var _0x495429=_0x3d98b6;super(),d(this,'_status$',new L['BehaviorSubject'](_0x495429(0x1a5))),d(this,_0x495429(0x19b),this['_status$'][_0x495429(0x17c)]()),d(this,_0x495429(0x18d),!0x1),d(this,_0x495429(0x1dc),null),d(this,_0x495429(0x23b),null),(this[_0x495429(0x24a)]=_0x4af1e6,this[_0x495429(0x1a0)]=_0x593b2d,this['_configService']=_0x125f0a,this['_liveShareService']=_0x7d77a3,this[_0x495429(0x22a)]=_0x4bcf2f);}get[_0x3d98b6(0x24b)](){var _0x518b99=_0x3d98b6;return this[_0x518b99(0x1cd)][_0x518b99(0x199)]();}[_0x3d98b6(0x1f7)](){var _0x4eeaa7=_0x3d98b6,_0x2179a6;(_0x2179a6=this[_0x4eeaa7(0x1dc)])==null||_0x2179a6['dispose'](),this[_0x4eeaa7(0x1cd)]['next'](_0x4eeaa7(0x1a5)),this[_0x4eeaa7(0x1cd)]['complete']();}[_0x3d98b6(0x20f)](){var _0x47c390=_0x3d98b6;this[_0x47c390(0x18d)]||(this[_0x47c390(0x18d)]=!0x0,this['_collabSession'][_0x47c390(0x1a9)][_0x47c390(0x195)](g[_0x47c390(0x1d3)](this[_0x47c390(0x243)]))[_0x47c390(0x202)](_0x1c168c=>{var _0x1af942=_0x47c390;switch(_0x1c168c){case b[_0x1af942(0x183)]['OFFLINE']:this[_0x1af942(0x180)]();break;case b[_0x1af942(0x183)][_0x1af942(0x1c5)]:this[_0x1af942(0x21f)]();break;}}),this['_collabSession'][_0x47c390(0x1c1)][_0x47c390(0x195)](g[_0x47c390(0x1d3)](this[_0x47c390(0x243)]))[_0x47c390(0x202)](_0x17f940=>{var _0x23f8a1=_0x47c390;const {eventID:_0x3bc5c8}=_0x17f940;switch(_0x3bc5c8){case h['CollaborationEvent'][_0x23f8a1(0x1fd)]:this[_0x23f8a1(0x1a2)](_0x17f940);break;case h[_0x23f8a1(0x181)][_0x23f8a1(0x24f)]:this[_0x23f8a1(0x22f)](_0x17f940);break;case h[_0x23f8a1(0x181)][_0x23f8a1(0x21b)]:this['_handleTerminate']();break;case h[_0x23f8a1(0x181)][_0x23f8a1(0x239)]:this[_0x23f8a1(0x1c8)](_0x17f940);break;}}));}[_0x3d98b6(0x1da)](){var _0x56fa5e=_0x3d98b6;this[_0x56fa5e(0x1a0)][_0x56fa5e(0x220)]({'eventID':h[_0x56fa5e(0x181)][_0x56fa5e(0x1d7)],'data':{'unitID':this[_0x56fa5e(0x24a)],'userID':this[_0x56fa5e(0x1a0)][_0x56fa5e(0x194)]()}},this[_0x56fa5e(0x24a)]);}[_0x3d98b6(0x23e)](){var _0x4e6e15=_0x3d98b6;this[_0x4e6e15(0x24b)]===_0x4e6e15(0x25f)&&(this[_0x4e6e15(0x1cd)][_0x4e6e15(0x19f)](_0x4e6e15(0x1a5)),this[_0x4e6e15(0x1a0)]['send']({'eventID':h[_0x4e6e15(0x181)][_0x4e6e15(0x21b)],'data':{'unitID':this[_0x4e6e15(0x24a)]}},this['_unitID']));}[_0x3d98b6(0x1e0)](){var _0x4f43bb=_0x3d98b6;this[_0x4f43bb(0x24b)]===_0x4f43bb(0x1f5)&&(this[_0x4f43bb(0x1cd)][_0x4f43bb(0x19f)](_0x4f43bb(0x20a)),this['_startFollowing']());}[_0x3d98b6(0x1b0)](){var _0x161a4f=_0x3d98b6;this[_0x161a4f(0x24b)]===_0x161a4f(0x20a)&&this[_0x161a4f(0x246)]();}[_0x3d98b6(0x1a2)](_0x1d4ecb){var _0xccba00=_0x3d98b6;const {presenter:_0x1c25f9}=_0x1d4ecb[_0xccba00(0x1ce)],_0x8453b5=this[_0xccba00(0x1a0)][_0xccba00(0x194)]();this[_0xccba00(0x23b)]=_0x1c25f9,_0x1c25f9===_0x8453b5?(this[_0xccba00(0x246)](),this[_0xccba00(0x1b4)]()):this['_status']!==_0xccba00(0x1f5)&&(this['_stopPresenting'](),this[_0xccba00(0x1bd)]());}[_0x3d98b6(0x256)](){var _0x4d67f9=_0x3d98b6;const _0x527162={'eventID':h['CollaborationEvent'][_0x4d67f9(0x224)]};this[_0x4d67f9(0x1a0)][_0x4d67f9(0x220)](_0x527162,this[_0x4d67f9(0x24a)]);}[_0x3d98b6(0x1c4)](){var _0x106397=_0x3d98b6;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x106397(0x1f1)]();}[_0x3d98b6(0x1c8)](_0x1b358c){var _0x412eda=_0x3d98b6;if(this[_0x412eda(0x24b)]==='following'&&this['_presenter']===_0x1b358c[_0x412eda(0x1ce)][_0x412eda(0x1ed)]){const _0x543488=h[_0x412eda(0x1df)](_0x1b358c[_0x412eda(0x1ce)])[_0x412eda(0x1b3)][_0x412eda(0x215)]()[_0x412eda(0x259)](_0x16834d=>_0x16834d['id']===w[_0x412eda(0x1d1)]['id']);if(_0x543488){const _0x9b021d=_0x543488[_0x412eda(0x185)][_0x412eda(0x1c3)],_0x3a528f=_0x543488['params'][_0x412eda(0x1fb)]['id'];setTimeout(()=>{var _0x1ebe72=_0x412eda;this[_0x1ebe72(0x22a)][_0x1ebe72(0x1de)](w[_0x1ebe72(0x25e)]['id'],{'unitId':_0x9b021d,'subUnitId':_0x3a528f},{'fromCollab':!0x0});});}}}[_0x3d98b6(0x1b4)](){var _0x158d40=_0x3d98b6;this[_0x158d40(0x1cd)][_0x158d40(0x19f)](_0x158d40(0x25f));const _0x839483=new Map(),_0xde2291=this['_commandDisposable']=new a[(_0x158d40(0x193))]();_0xde2291[_0x158d40(0x214)](a[_0x158d40(0x232)](()=>{var _0x5cb430=_0x158d40;_0x839483[_0x5cb430(0x1c7)](_0x2b2521=>_0x2b2521[_0x5cb430(0x18e)]()),_0x839483['clear']();})),_0xde2291[_0x158d40(0x214)](this[_0x158d40(0x22a)]['onCommandExecuted'](_0x3cf06f=>{var _0x336bc2=_0x158d40,_0x2fbcd8;if(_0x3cf06f[_0x336bc2(0x1f6)]!==a['CommandType'][_0x336bc2(0x1f2)]||!this[_0x336bc2(0x190)][_0x336bc2(0x218)](_0x3cf06f['id']))return;const {id:_0x110183}=_0x3cf06f;let _0x2a1777;_0x839483['has'](_0x110183)?_0x2a1777=_0x839483['get'](_0x110183):(_0x2a1777=new L[(_0x336bc2(0x223))](),_0x839483[_0x336bc2(0x1db)](_0x110183,_0x2a1777),_0x2a1777[_0x336bc2(0x195)](g[_0x336bc2(0x207)]((_0x2fbcd8=this[_0x336bc2(0x1e7)][_0x336bc2(0x253)](Z))!=null?_0x2fbcd8:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x336bc2(0x202)](_0x4cf411=>{var _0x4ea9b2=_0x336bc2;this[_0x4ea9b2(0x1a0)][_0x4ea9b2(0x220)]({'eventID':h[_0x4ea9b2(0x181)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4ea9b2(0x24a)],'operations':{[_0x4cf411['id']]:{'id':_0x4cf411['id'],'params':JSON[_0x4ea9b2(0x229)](_0x4cf411[_0x4ea9b2(0x185)])}}}},this[_0x4ea9b2(0x24a)]);})),_0x2a1777[_0x336bc2(0x19f)](_0x3cf06f);})),this[_0x158d40(0x190)][_0x158d40(0x257)](this[_0x158d40(0x24a)])['forEach'](_0x533971=>this[_0x158d40(0x1a0)][_0x158d40(0x220)]({'eventID':h['CollaborationEvent'][_0x158d40(0x24f)],'data':{'unitID':this[_0x158d40(0x24a)],'operations':{[_0x533971['id']]:{'id':_0x533971['id'],'params':JSON[_0x158d40(0x229)](_0x533971[_0x158d40(0x185)])}}}},this[_0x158d40(0x24a)]));}[_0x3d98b6(0x20e)](){var _0x405da9=_0x3d98b6,_0x76ba4b;this[_0x405da9(0x1cd)][_0x405da9(0x19f)](_0x405da9(0x1a5)),(_0x76ba4b=this[_0x405da9(0x1dc)])==null||_0x76ba4b[_0x405da9(0x1f7)](),this['_commandDisposable']=null;}[_0x3d98b6(0x1bd)](){var _0x43a68a=_0x3d98b6,_0x3393e4;(_0x3393e4=this[_0x43a68a(0x1dc)])==null||_0x3393e4[_0x43a68a(0x1f7)](),this[_0x43a68a(0x1cd)][_0x43a68a(0x19f)](_0x43a68a(0x20a));}[_0x3d98b6(0x1f1)](){var _0x183051=_0x3d98b6,_0x431f9a;this[_0x183051(0x1cd)][_0x183051(0x19f)](_0x183051(0x1a5)),(_0x431f9a=this['_commandDisposable'])==null||_0x431f9a['dispose'](),this[_0x183051(0x1dc)]=null;}['_stopFollowing'](){var _0x32e622=_0x3d98b6,_0x188b09;this['_status$'][_0x32e622(0x19f)]('not-following'),(_0x188b09=this[_0x32e622(0x1dc)])==null||_0x188b09['dispose']();}[_0x3d98b6(0x22f)](_0x42a599){var _0x1d24ef=_0x3d98b6;if([_0x1d24ef(0x25f),_0x1d24ef(0x1f5),'offline'][_0x1d24ef(0x21a)](this['_status'])||!_0x42a599[_0x1d24ef(0x1ce)][_0x1d24ef(0x225)]||_0x42a599[_0x1d24ef(0x1ce)][_0x1d24ef(0x225)]===this[_0x1d24ef(0x1a0)]['getMemberID']())return;this[_0x1d24ef(0x24b)]==='idle'&&this[_0x1d24ef(0x1bd)]();const _0x2805f8=_0x42a599[_0x1d24ef(0x1ce)][_0x1d24ef(0x20c)];Object[_0x1d24ef(0x1b6)](_0x2805f8)['forEach'](_0x36ac86=>{var _0x1dd2d0=_0x1d24ef;this[_0x1dd2d0(0x22a)][_0x1dd2d0(0x1de)](_0x36ac86['id'],_0x36ac86['params']?JSON[_0x1dd2d0(0x1fe)](_0x36ac86['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x5b738a=_0x3d98b6,_0x558758;this[_0x5b738a(0x1cd)][_0x5b738a(0x19f)](_0x5b738a(0x1ef)),(_0x558758=this[_0x5b738a(0x1dc)])==null||_0x558758['dispose']();}['_handleOnline'](){var _0x38026d=_0x3d98b6;this[_0x38026d(0x1cd)][_0x38026d(0x19f)](_0x38026d(0x1a5)),this[_0x38026d(0x256)]();}};function _0x1908(_0x5b7e62,_0x55034e){var _0x42465b=_0x4246();return _0x1908=function(_0x19083e,_0x4592bb){_0x19083e=_0x19083e-0x176;var _0x1b4c06=_0x42465b[_0x19083e];return _0x1b4c06;},_0x1908(_0x5b7e62,_0x55034e);}C=y([p(0x2,a[_0x3d98b6(0x178)]),p(0x3,a[_0x3d98b6(0x230)](D)),p(0x4,a[_0x3d98b6(0x1c2)])],C);var c=function(){return c=Object['assign']||function(_0xe66084){var _0x464819=_0x1908;for(var _0x34345e,_0x1eb435=0x1,_0xd99501=arguments['length'];_0x1eb435<_0xd99501;_0x1eb435++){_0x34345e=arguments[_0x1eb435];for(var _0x17125a in _0x34345e)Object[_0x464819(0x217)]['hasOwnProperty'][_0x464819(0x24e)](_0x34345e,_0x17125a)&&(_0xe66084[_0x17125a]=_0x34345e[_0x17125a]);}return _0xe66084;},c['apply'](this,arguments);},K=function(_0x565fbe,_0x4c2855){var _0x144d08=_0x3d98b6,_0x238ca8={};for(var _0x32e8e9 in _0x565fbe)Object['prototype']['hasOwnProperty'][_0x144d08(0x24e)](_0x565fbe,_0x32e8e9)&&_0x4c2855[_0x144d08(0x208)](_0x32e8e9)<0x0&&(_0x238ca8[_0x32e8e9]=_0x565fbe[_0x32e8e9]);if(_0x565fbe!=null&&typeof Object['getOwnPropertySymbols']==_0x144d08(0x24c)){for(var _0x4770e2=0x0,_0x32e8e9=Object[_0x144d08(0x1ad)](_0x565fbe);_0x4770e2<_0x32e8e9[_0x144d08(0x186)];_0x4770e2++)_0x4c2855[_0x144d08(0x208)](_0x32e8e9[_0x4770e2])<0x0&&Object['prototype'][_0x144d08(0x19e)][_0x144d08(0x24e)](_0x565fbe,_0x32e8e9[_0x4770e2])&&(_0x238ca8[_0x32e8e9[_0x4770e2]]=_0x565fbe[_0x32e8e9[_0x4770e2]]);}return _0x238ca8;},T=s['forwardRef'](function(_0x5456f3,_0x50984e){var _0x2ddd1a=_0x3d98b6,_0x563b75=_0x5456f3[_0x2ddd1a(0x17f)],_0x39901c=_0x5456f3['id'],_0x54d8c6=_0x5456f3[_0x2ddd1a(0x176)],_0x42c698=_0x5456f3[_0x2ddd1a(0x1f3)],_0x4512a2=K(_0x5456f3,[_0x2ddd1a(0x17f),'id','className','extend']),_0x481de5=_0x2ddd1a(0x1cf)['concat'](_0x39901c,'\x20')[_0x2ddd1a(0x24d)](_0x54d8c6||'')[_0x2ddd1a(0x1b5)](),_0x376766=s['useRef']('_'['concat'](k()));return A(_0x563b75,''[_0x2ddd1a(0x24d)](_0x39901c),{'defIds':_0x563b75[_0x2ddd1a(0x235)],'idSuffix':_0x376766['current']},c({'ref':_0x50984e,'className':_0x481de5},_0x4512a2),_0x42c698);});function A(_0x229fc8,_0x2324be,_0x4f21fb,_0x4553d4,_0x3d5fd2){var _0x213099=_0x3d98b6;return s[_0x213099(0x216)](_0x229fc8[_0x213099(0x1dd)],c(c({'key':_0x2324be},Q(_0x229fc8,_0x4f21fb,_0x3d5fd2)),_0x4553d4),(X(_0x229fc8,_0x4f21fb)['children']||[])['map'](function(_0x3b7bed,_0x301e19){var _0x5acd92=_0x213099;return A(_0x3b7bed,''[_0x5acd92(0x24d)](_0x2324be,'-')['concat'](_0x229fc8[_0x5acd92(0x1dd)],'-')['concat'](_0x301e19),_0x4f21fb,void 0x0,_0x3d5fd2);}));}function Q(_0x4bcd31,_0x99c5d7,_0x3551b6){var _0x4f76ca=_0x3d98b6,_0x34415b=c({},_0x4bcd31[_0x4f76ca(0x237)]);_0x3551b6!=null&&_0x3551b6[_0x4f76ca(0x22b)]&&_0x34415b['fill']===_0x4f76ca(0x22b)&&(_0x34415b[_0x4f76ca(0x177)]=_0x3551b6[_0x4f76ca(0x22b)]);var _0x3868a6=_0x99c5d7[_0x4f76ca(0x235)];return!_0x3868a6||_0x3868a6[_0x4f76ca(0x186)]===0x0||(_0x4bcd31[_0x4f76ca(0x1dd)]===_0x4f76ca(0x22d)&&_0x34415b[_0x4f76ca(0x18c)]&&(_0x34415b['xlink:href']=_0x34415b['xlink:href']+_0x99c5d7[_0x4f76ca(0x25d)]),Object[_0x4f76ca(0x182)](_0x34415b)[_0x4f76ca(0x1c7)](function(_0x20a3fa){var _0x4d06aa=_0x4f76ca,_0xf2a41=_0x20a3fa[0x0],_0x5499c5=_0x20a3fa[0x1];typeof _0x5499c5==_0x4d06aa(0x23d)&&(_0x34415b[_0xf2a41]=_0x5499c5[_0x4d06aa(0x1d0)](/url\(#(.*)\)/,_0x4d06aa(0x197)['concat'](_0x99c5d7[_0x4d06aa(0x25d)],')')));})),_0x34415b;}function X(_0x53a7ce,_0x1a2f7b){var _0x14d277=_0x3d98b6,_0x9da27b,_0x5968f7=_0x1a2f7b['defIds'];return!_0x5968f7||_0x5968f7['length']===0x0?_0x53a7ce:_0x53a7ce[_0x14d277(0x1dd)]==='defs'&&(!((_0x9da27b=_0x53a7ce[_0x14d277(0x213)])===null||_0x9da27b===void 0x0)&&_0x9da27b['length'])?c(c({},_0x53a7ce),{'children':_0x53a7ce['children'][_0x14d277(0x1e3)](function(_0x5cb9f7){var _0x1c497b=_0x14d277;return typeof _0x5cb9f7[_0x1c497b(0x237)]['id']==_0x1c497b(0x23d)&&_0x5968f7&&_0x5968f7[_0x1c497b(0x208)](_0x5cb9f7['attrs']['id'])>-0x1?c(c({},_0x5cb9f7),{'attrs':c(c({},_0x5cb9f7[_0x1c497b(0x237)]),{'id':_0x5cb9f7[_0x1c497b(0x237)]['id']+_0x1a2f7b['idSuffix']})}):_0x5cb9f7;})}):_0x53a7ce;}function k(){var _0x52b080=_0x3d98b6;return Math[_0x52b080(0x248)]()[_0x52b080(0x1a6)](0x24)[_0x52b080(0x203)](0x2,0x8);}T[_0x3d98b6(0x1a8)]=_0x3d98b6(0x1b2);var ee={'tag':_0x3d98b6(0x1ba),'attrs':{'fill':'none','viewBox':_0x3d98b6(0x247),'width':_0x3d98b6(0x23a),'height':_0x3d98b6(0x23a)},'children':[{'tag':_0x3d98b6(0x1e9),'attrs':{'fill':'currentColor','d':_0x3d98b6(0x19c)}},{'tag':_0x3d98b6(0x1e9),'attrs':{'fill':_0x3d98b6(0x1d8),'d':_0x3d98b6(0x1aa),'fillRule':_0x3d98b6(0x205),'clipRule':'evenodd'}}]},U=s[_0x3d98b6(0x226)](function(_0x568b04,_0x1daa50){var _0x117c75=_0x3d98b6;return s[_0x117c75(0x216)](T,Object[_0x117c75(0x1b9)]({},_0x568b04,{'id':_0x117c75(0x244),'ref':_0x1daa50,'icon':ee}));});U[_0x3d98b6(0x1a8)]=_0x3d98b6(0x187);const te=_0x3d98b6(0x1b8),ne=_0x3d98b6(0x21c),ie=_0x3d98b6(0x191),re='univer-live-share-dropdown-title',v={'liveShare':te,'liveShareStatusOffline':ne,'liveShareDropdown':ie,'liveShareDropdownTitle':re};function se(){var _0x125013=_0x3d98b6;const _0x581b2b=a[_0x125013(0x1eb)](O),_0x4e3b10=a[_0x125013(0x1eb)](a[_0x125013(0x227)]),_0x1d222a=N[_0x125013(0x211)](()=>_0x4e3b10[_0x125013(0x209)](a['UniverInstanceType'][_0x125013(0x21d)]),void 0x0,!0x1,[]),[_0x42af35,_0x5bd412]=s[_0x125013(0x1e8)](null),[_0x425e86,_0x1ef08b]=s['useState'](_[_0x125013(0x18a)]),_0x17413e=s[_0x125013(0x242)](null);s['useEffect'](()=>(_0x1d222a&&_0x581b2b['getLiveShareCoordinator'](_0x1d222a[_0x125013(0x18f)]())[_0x125013(0x25b)](_0x54a465=>{var _0x3cf8a5=_0x125013;_0x5bd412(_0x54a465),_0x17413e[_0x3cf8a5(0x1f4)]=_0x54a465[_0x3cf8a5(0x19b)]['subscribe'](_0x2d41bd=>{_0x1ef08b(_0x2d41bd);});}),()=>{var _0x2f1dff=_0x125013,_0x2ac3f2;(_0x2ac3f2=_0x17413e[_0x2f1dff(0x1f4)])==null||_0x2ac3f2[_0x2f1dff(0x221)](),_0x17413e['current']=null;}),[_0x1d222a,_0x581b2b]);const _0x1f5219=_0x425e86!==_[_0x125013(0x258)]?[_0x125013(0x249)]:[],_0x51c37f=M(v['liveShare'],'live-share-status-'+_0x425e86);return _0x42af35?s['createElement'](m['Dropdown'],{'trigger':_0x1f5219,'overlay':s[_0x125013(0x216)](_0x125013(0x1c6),{'className':v['liveShareDropdown']},s[_0x125013(0x216)](ae,{'status':_0x425e86,'coordinator':_0x42af35}))},s['createElement'](_0x125013(0x1c6),{'className':_0x51c37f},s[_0x125013(0x216)](U,null))):null;}function ae(_0x31fa14){var _0xd4982c=_0x3d98b6;const {status:_0x57f583,coordinator:_0x3b8f73}=_0x31fa14;switch(_0x57f583){case _['IDLE']:return s[_0xd4982c(0x216)](oe,{'coordinator':_0x3b8f73});case _['FOLLOWING']:return s[_0xd4982c(0x216)](le,{'coordinator':_0x3b8f73});case _[_0xd4982c(0x231)]:return s[_0xd4982c(0x216)](ce,{'coordinator':_0x3b8f73});case _[_0xd4982c(0x258)]:return s[_0xd4982c(0x216)](he,null);case _[_0xd4982c(0x1bf)]:return s['createElement'](ue,{'coordinator':_0x3b8f73});default:return null;}}function oe(_0x43d01c){var _0x1d9f69=_0x3d98b6;return s[_0x1d9f69(0x216)](s[_0x1d9f69(0x1a1)],null,s[_0x1d9f69(0x216)]('div',{'className':v[_0x1d9f69(0x200)]},_0x1d9f69(0x179)),s[_0x1d9f69(0x216)](m[_0x1d9f69(0x212)],{'size':'small','type':_0x1d9f69(0x238),'onClick':()=>_0x43d01c[_0x1d9f69(0x19a)]['tryStartPresenting']()},_0x1d9f69(0x1ec)));}function le(_0x2b6271){var _0x5251a8=_0x3d98b6;return s[_0x5251a8(0x216)](s[_0x5251a8(0x1a1)],null,s[_0x5251a8(0x216)](_0x5251a8(0x1c6),{'className':v[_0x5251a8(0x200)]},_0x5251a8(0x192)),s['createElement'](m[_0x5251a8(0x212)],{'size':'small','type':_0x5251a8(0x238),'onClick':()=>_0x2b6271[_0x5251a8(0x19a)]['stopFollowing']()},_0x5251a8(0x1d9)));}function ce(_0x1c5736){var _0x499625=_0x3d98b6;return s['createElement'](s['Fragment'],null,s[_0x499625(0x216)](_0x499625(0x1c6),{'className':v['liveShareDropdownTitle']},_0x499625(0x254)),s[_0x499625(0x216)](m[_0x499625(0x212)],{'size':_0x499625(0x204),'type':_0x499625(0x23c),'onClick':()=>_0x1c5736[_0x499625(0x19a)][_0x499625(0x1e0)]()},_0x499625(0x1ea)));}function ue(_0x496e8f){var _0x3107a4=_0x3d98b6;return s[_0x3107a4(0x216)](s[_0x3107a4(0x1a1)],null,s[_0x3107a4(0x216)](_0x3107a4(0x1c6),{'className':v[_0x3107a4(0x200)]},'You\x27re\x20presenting\x20the\x20document'),s[_0x3107a4(0x216)](m[_0x3107a4(0x212)],{'size':_0x3107a4(0x204),'type':_0x3107a4(0x238),'onClick':()=>_0x496e8f[_0x3107a4(0x19a)][_0x3107a4(0x23e)]()},_0x3107a4(0x1d6)));}function he(){var _0x32e9f0=_0x3d98b6;return s['createElement'](s[_0x32e9f0(0x1a1)],null,_0x32e9f0(0x1bb));}var de=Object[_0x3d98b6(0x189)],_e=Object[_0x3d98b6(0x1e4)],fe=(_0x3d529b,_0x50667d,_0x209dbc,_0x29a506)=>{var _0x3f8ac2=_0x3d98b6;for(var _0x431ffe=_0x29a506>0x1?void 0x0:_0x29a506?_e(_0x50667d,_0x209dbc):_0x50667d,_0x136fcd=_0x3d529b[_0x3f8ac2(0x186)]-0x1,_0x5a5417;_0x136fcd>=0x0;_0x136fcd--)(_0x5a5417=_0x3d529b[_0x136fcd])&&(_0x431ffe=(_0x29a506?_0x5a5417(_0x50667d,_0x209dbc,_0x431ffe):_0x5a5417(_0x431ffe))||_0x431ffe);return _0x29a506&&_0x431ffe&&de(_0x50667d,_0x209dbc,_0x431ffe),_0x431ffe;},R=(_0x13a119,_0x404ef6)=>(_0x56e7f5,_0x2e5d8a)=>_0x404ef6(_0x56e7f5,_0x2e5d8a,_0x13a119);let E=class extends a['Disposable']{constructor(_0x6eb317,_0x4346ec){var _0x3f6d20=_0x3d98b6;super(),this[_0x3f6d20(0x1ae)]=_0x6eb317,this[_0x3f6d20(0x21e)]=_0x4346ec,this[_0x3f6d20(0x1f0)]();}[_0x3d98b6(0x1f0)](){var _0x3906e8=_0x3d98b6;this[_0x3906e8(0x251)](this[_0x3906e8(0x21e)][_0x3906e8(0x1a4)](N[_0x3906e8(0x201)][_0x3906e8(0x1f9)],()=>a[_0x3906e8(0x196)](se,this[_0x3906e8(0x1ae)])));}};E=fe([a['OnLifecycle'](a['LifecycleStages'][_0x3d98b6(0x1d2)],E),R(0x0,a['Inject'](a[_0x3d98b6(0x1b1)])),R(0x1,N[_0x3d98b6(0x219)])],E);var $=Object[_0x3d98b6(0x189)],pe=Object[_0x3d98b6(0x1e4)],ve=(_0x1c5e60,_0xc49759,_0x25f392)=>_0xc49759 in _0x1c5e60?$(_0x1c5e60,_0xc49759,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25f392}):_0x1c5e60[_0xc49759]=_0x25f392,Se=(_0x4b20cc,_0x10f159,_0x598327,_0x232a7b)=>{var _0x890b3b=_0x3d98b6;for(var _0x4d93a5=_0x232a7b>0x1?void 0x0:_0x232a7b?pe(_0x10f159,_0x598327):_0x10f159,_0x38cb1e=_0x4b20cc[_0x890b3b(0x186)]-0x1,_0x4ceaa4;_0x38cb1e>=0x0;_0x38cb1e--)(_0x4ceaa4=_0x4b20cc[_0x38cb1e])&&(_0x4d93a5=(_0x232a7b?_0x4ceaa4(_0x10f159,_0x598327,_0x4d93a5):_0x4ceaa4(_0x4d93a5))||_0x4d93a5);return _0x232a7b&&_0x4d93a5&&$(_0x10f159,_0x598327,_0x4d93a5),_0x4d93a5;},ge=(_0x255de2,_0x2f517d)=>(_0x2408ca,_0x297c67)=>_0x2f517d(_0x2408ca,_0x297c67,_0x255de2),j=(_0x3a157b,_0x3d9323,_0x18adb2)=>ve(_0x3a157b,typeof _0x3d9323!='symbol'?_0x3d9323+'':_0x3d9323,_0x18adb2);const me=_0x3d98b6(0x1c9);exports[_0x3d98b6(0x222)]=class extends a[_0x3d98b6(0x20d)]{constructor(_0x4c27f9,_0xa137fd){var _0x769656=_0x3d98b6;super(),this[_0x769656(0x1ae)]=_0xa137fd;}[_0x3d98b6(0x188)](_0x343b0f){var _0x438f27=_0x3d98b6;[[D],[O],[I],[E]][_0x438f27(0x1c7)](_0x4963d6=>_0x343b0f['add'](_0x4963d6));}},j(exports[_0x3d98b6(0x222)],'type',a['UniverInstanceType'][_0x3d98b6(0x21d)]),j(exports['UniverLiveSharePlugin'],'pluginName',me),exports[_0x3d98b6(0x222)]=Se([a[_0x3d98b6(0x1cb)](b[_0x3d98b6(0x23f)]),ge(0x1,a[_0x3d98b6(0x230)](a[_0x3d98b6(0x1b1)]))],exports[_0x3d98b6(0x222)]),exports['LiveShareService']=D;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x4a0469=_0x35d0;(function(_0x20ce6a,_0xc4b3fb){var _0xa7706a=_0x35d0,_0x27f0dd=_0x20ce6a();while(!![]){try{var _0x494851=parseInt(_0xa7706a(0x247))/0x1*(parseInt(_0xa7706a(0x282))/0x2)+-parseInt(_0xa7706a(0x248))/0x3+-parseInt(_0xa7706a(0x294))/0x4*(parseInt(_0xa7706a(0x27d))/0x5)+parseInt(_0xa7706a(0x230))/0x6+parseInt(_0xa7706a(0x234))/0x7+parseInt(_0xa7706a(0x233))/0x8*(-parseInt(_0xa7706a(0x215))/0x9)+parseInt(_0xa7706a(0x224))/0xa;if(_0x494851===_0xc4b3fb)break;else _0x27f0dd['push'](_0x27f0dd['shift']());}catch(_0x1fbd9f){_0x27f0dd['push'](_0x27f0dd['shift']());}}}(_0xc6e5,0xa32eb));var K=Object['defineProperty'],Q=(_0x148854,_0x429bad,_0x2cc2bd)=>_0x429bad in _0x148854?K(_0x148854,_0x429bad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cc2bd}):_0x148854[_0x429bad]=_0x2cc2bd,u=(_0x2fbec0,_0x69e79a,_0x4699bf)=>Q(_0x2fbec0,typeof _0x69e79a!='symbol'?_0x69e79a+'':_0x69e79a,_0x4699bf);import{Disposable as _0x2e8a74,toDisposable as _0x297c65,OnLifecycle as _0x5161be,LifecycleStages as _0xef1bc2,RxDisposable as _0x3a7e19,UniverInstanceType as _0x4b09d8,DisposableCollection as _0x3d3a2e,CommandType as _0x4902c8,IUniverInstanceService as _0x1ee5eb,IConfigService as _0x4eca33,ICommandService as _0x44996d,Plugin as _0x20e2dd,DependentOn as _0x34a68e}from'@univerjs/core';import{Inject as _0xf0bd13,Injector as _0x3f6b93}from'@wendellhu/redi';import{CollaborationSessionService as _0x30ec37,SessionStatus as _0x3b9aa2,UniverCollaborationClientPlugin as _0x25f609}from'@univerjs-pro/collaboration-client';function _0x35d0(_0x218b20,_0x2d170a){var _0xc6e5fd=_0xc6e5();return _0x35d0=function(_0x35d04e,_0x124fd7){_0x35d04e=_0x35d04e-0x1ee;var _0x1713ac=_0xc6e5fd[_0x35d04e];return _0x1713ac;},_0x35d0(_0x218b20,_0x2d170a);}import{SetWorksheetActiveOperation as _0x358a7e,InsertSheetMutation as _0x39b5d2}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2ff6fd,SetScrollOperation as _0x29bb7c}from'@univerjs/sheets-ui';import{CollaborationEvent as _0x47f5b1,parseProtocolChangeset as _0xf5fd61}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1477d3,Subject as _0x5841b9}from'rxjs';import{takeUntil as _0x4d5f47,throttleTime as _0x47ce90}from'rxjs/operators';import{useObservable as _0x11c65d,BuiltInUIPart as _0x4f4aa1,IUIPartsService as _0x358edd}from'@univerjs/ui';import{useDependency as _0x176ae9,connectInjector as _0x191cb2}from'@wendellhu/redi/react-bindings';import{Dropdown as _0x94a07e,Button as _0x281711}from'@univerjs/design';import _0x5d603a from'clsx';import _0x13bb33,{forwardRef as _0x1751ca,useRef as _0x20f2ee,createElement as _0x953823,useState as _0x2b3c17,useEffect as _0x2a4610}from'react';class L extends _0x2e8a74{constructor(){var _0x230e1a=_0x35d0;super(...arguments),u(this,_0x230e1a(0x236),new Set()),u(this,_0x230e1a(0x262),new Set());}[_0x4a0469(0x1f6)](_0x3a79c0){var _0x3f662d=_0x4a0469;return this[_0x3f662d(0x236)][_0x3f662d(0x244)](_0x3a79c0),_0x297c65(()=>this[_0x3f662d(0x236)][_0x3f662d(0x1f7)](_0x3a79c0));}['registerInitialStateReporter'](_0x1ec653){var _0xc0acf8=_0x4a0469;return this[_0xc0acf8(0x262)][_0xc0acf8(0x244)](_0x1ec653),_0x297c65(()=>this[_0xc0acf8(0x262)][_0xc0acf8(0x1f7)](_0x1ec653));}[_0x4a0469(0x228)](_0x11e0ca){var _0x19cfde=_0x4a0469;return this[_0x19cfde(0x236)]['has'](_0x11e0ca);}[_0x4a0469(0x1fa)](_0x31613a){var _0xbfabf5=_0x4a0469;return Array[_0xbfabf5(0x200)](this[_0xbfabf5(0x262)])['map'](_0x5405ac=>_0x5405ac(_0x31613a));}}var Ee=Object['defineProperty'],Ie=Object['getOwnPropertyDescriptor'],Oe=(_0xc84a39,_0x2c060f,_0x55c1c9,_0x221d2f)=>{var _0x543db1=_0x4a0469;for(var _0xa1453a=_0x221d2f>0x1?void 0x0:_0x221d2f?Ie(_0x2c060f,_0x55c1c9):_0x2c060f,_0x1abf98=_0xc84a39[_0x543db1(0x267)]-0x1,_0x469442;_0x1abf98>=0x0;_0x1abf98--)(_0x469442=_0xc84a39[_0x1abf98])&&(_0xa1453a=(_0x221d2f?_0x469442(_0x2c060f,_0x55c1c9,_0xa1453a):_0x469442(_0xa1453a))||_0xa1453a);return _0x221d2f&&_0xa1453a&&Ee(_0x2c060f,_0x55c1c9,_0xa1453a),_0xa1453a;},be=(_0x1f3473,_0x5d51e8)=>(_0x4c44b2,_0x3481af)=>_0x5d51e8(_0x4c44b2,_0x3481af,_0x1f3473);let m=class extends _0x2e8a74{constructor(_0xc576f){var _0x170717=_0x4a0469;super(),this['_liveShareService']=_0xc576f,this[_0x170717(0x29b)]();}[_0x4a0469(0x29b)](){var _0x388211=_0x4a0469;[_0x2ff6fd['id'],_0x29bb7c['id'],_0x358a7e['id']][_0x388211(0x1f3)](_0xeb079=>{var _0x54437c=_0x388211;this[_0x54437c(0x288)](this['_liveShareService'][_0x54437c(0x1f6)](_0xeb079));});}};m=Oe([_0x5161be(_0xef1bc2['Starting'],m),be(0x0,_0xf0bd13(L))],m);var we=Object[_0x4a0469(0x29a)],De=Object[_0x4a0469(0x25b)],G=(_0x90164b,_0x55842a,_0xc97817,_0xb3f139)=>{var _0xc91882=_0x4a0469;for(var _0x54be93=_0xb3f139>0x1?void 0x0:_0xb3f139?De(_0x55842a,_0xc97817):_0x55842a,_0x48c0f2=_0x90164b[_0xc91882(0x267)]-0x1,_0x3bb793;_0x48c0f2>=0x0;_0x48c0f2--)(_0x3bb793=_0x90164b[_0x48c0f2])&&(_0x54be93=(_0xb3f139?_0x3bb793(_0x55842a,_0xc97817,_0x54be93):_0x3bb793(_0x54be93))||_0x54be93);return _0xb3f139&&_0x54be93&&we(_0x55842a,_0xc97817,_0x54be93),_0x54be93;},f=(_0x33e974,_0x32dcc3)=>(_0x3b5ffc,_0x1d4cc9)=>_0x32dcc3(_0x3b5ffc,_0x1d4cc9,_0x33e974);let O=class extends _0x3a7e19{constructor(_0xf91314,_0x13817e,_0x12d683){var _0x2a98bb=_0x4a0469;super(),u(this,'_entities',new Map()),(this[_0x2a98bb(0x1f4)]=_0xf91314,this[_0x2a98bb(0x28f)]=_0x13817e,this[_0x2a98bb(0x291)]=_0x12d683,this[_0x2a98bb(0x29b)]());}async['getLiveShareCoordinator'](_0x43c7d3){var _0x3e48da=_0x4a0469;return this[_0x3e48da(0x258)][_0x3e48da(0x219)](_0x43c7d3)||await this[_0x3e48da(0x227)](_0x43c7d3),this[_0x3e48da(0x258)][_0x3e48da(0x242)](_0x43c7d3);}[_0x4a0469(0x29b)](){var _0x207f8b=_0x4a0469;this[_0x207f8b(0x1f4)]['getTypeOfUnitAdded$'](_0x4b09d8[_0x207f8b(0x24c)])[_0x207f8b(0x238)](_0x4d5f47(this[_0x207f8b(0x274)]))[_0x207f8b(0x226)](async _0x1c17f2=>{var _0x35b557=_0x207f8b;const _0x5dbbc7=_0x1c17f2[_0x35b557(0x204)]();this[_0x35b557(0x258)][_0x35b557(0x219)](_0x5dbbc7)||this[_0x35b557(0x227)](_0x5dbbc7);}),this['_univerInstanceService'][_0x207f8b(0x289)](_0x4b09d8[_0x207f8b(0x24c)])[_0x207f8b(0x238)](_0x4d5f47(this[_0x207f8b(0x274)]))[_0x207f8b(0x226)](_0x3815a4=>{var _0x25bee7=_0x207f8b;const _0x181d3d=_0x3815a4[_0x25bee7(0x204)](),_0x37f218=this[_0x25bee7(0x258)][_0x25bee7(0x242)](_0x181d3d);_0x37f218==null||_0x37f218[_0x25bee7(0x27c)]();});}async['_startLiveShareCoordinator'](_0x34126f){var _0x514201=_0x4a0469;const _0x41ec4e=await this[_0x514201(0x291)]['requireSession'](_0x34126f),_0x2c28be=this[_0x514201(0x28f)][_0x514201(0x21f)](C,_0x34126f,_0x41ec4e);return _0x2c28be[_0x514201(0x206)](),this[_0x514201(0x258)][_0x514201(0x214)](_0x34126f,_0x2c28be),_0x2c28be;}};O=G([f(0x0,_0x1ee5eb),f(0x1,_0xf0bd13(_0x3f6b93)),f(0x2,_0xf0bd13(_0x30ec37))],O);var d=(_0xd43ffa=>(_0xd43ffa[_0x4a0469(0x25d)]='offline',_0xd43ffa['IDLE']=_0x4a0469(0x22b),_0xd43ffa['FOLLOWING']='following',_0xd43ffa[_0x4a0469(0x277)]=_0x4a0469(0x20e),_0xd43ffa['PRESENTING']=_0x4a0469(0x212),_0xd43ffa))(d||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',Ne=0xc8;let C=class extends _0x3a7e19{constructor(_0x32822e,_0x1dcaf9,_0x2eda1b,_0x3f030d,_0x513391){var _0x31eb84=_0x4a0469;super(),u(this,_0x31eb84(0x1ee),new _0x1477d3(_0x31eb84(0x22b))),u(this,_0x31eb84(0x24e),this[_0x31eb84(0x1ee)]['asObservable']()),u(this,_0x31eb84(0x29b),!0x1),u(this,_0x31eb84(0x281),null),u(this,_0x31eb84(0x1f2),null),(this[_0x31eb84(0x25e)]=_0x32822e,this[_0x31eb84(0x220)]=_0x1dcaf9,this[_0x31eb84(0x25c)]=_0x2eda1b,this[_0x31eb84(0x225)]=_0x3f030d,this[_0x31eb84(0x21d)]=_0x513391);}get[_0x4a0469(0x22a)](){var _0x387ca8=_0x4a0469;return this[_0x387ca8(0x1ee)]['getValue']();}[_0x4a0469(0x27c)](){var _0x57267a=_0x4a0469,_0x839f3d;(_0x839f3d=this['_commandDisposable'])==null||_0x839f3d[_0x57267a(0x27c)](),this[_0x57267a(0x1ee)][_0x57267a(0x208)](_0x57267a(0x22b)),this[_0x57267a(0x1ee)][_0x57267a(0x276)]();}[_0x4a0469(0x206)](){var _0xfa90eb=_0x4a0469;this[_0xfa90eb(0x29b)]||(this[_0xfa90eb(0x29b)]=!0x0,this[_0xfa90eb(0x220)][_0xfa90eb(0x222)]['pipe'](_0x4d5f47(this[_0xfa90eb(0x274)]))[_0xfa90eb(0x226)](_0x2b29ac=>{var _0xd3f8ff=_0xfa90eb;switch(_0x2b29ac){case _0x3b9aa2[_0xd3f8ff(0x25d)]:this[_0xd3f8ff(0x270)]();break;case _0x3b9aa2['ONLINE']:this[_0xd3f8ff(0x287)]();break;}}),this[_0xfa90eb(0x220)][_0xfa90eb(0x28c)]['pipe'](_0x4d5f47(this[_0xfa90eb(0x274)]))[_0xfa90eb(0x226)](_0x384797=>{var _0x3da998=_0xfa90eb;const {eventID:_0x52cbb2}=_0x384797;switch(_0x52cbb2){case _0x47f5b1[_0x3da998(0x29e)]:this[_0x3da998(0x1f5)](_0x384797);break;case _0x47f5b1['LIVESHARE_OPERATION']:this[_0x3da998(0x20c)](_0x384797);break;case _0x47f5b1[_0x3da998(0x20a)]:this[_0x3da998(0x201)]();break;case _0x47f5b1[_0x3da998(0x285)]:this['_handleNewChangeSets'](_0x384797);break;}}));}[_0x4a0469(0x1fd)](){var _0x477b20=_0x4a0469;this[_0x477b20(0x220)][_0x477b20(0x257)]({'eventID':_0x47f5b1[_0x477b20(0x2a0)],'data':{'unitID':this[_0x477b20(0x25e)],'userID':this[_0x477b20(0x220)][_0x477b20(0x290)]()}},this[_0x477b20(0x25e)]);}[_0x4a0469(0x27f)](){var _0x2ad22c=_0x4a0469;this[_0x2ad22c(0x22a)]===_0x2ad22c(0x212)&&(this['_status$'][_0x2ad22c(0x208)](_0x2ad22c(0x22b)),this['_collabSession'][_0x2ad22c(0x257)]({'eventID':_0x47f5b1[_0x2ad22c(0x20a)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x4a0469(0x292)](){var _0x12ee30=_0x4a0469;this[_0x12ee30(0x22a)]===_0x12ee30(0x20e)&&(this['_status$'][_0x12ee30(0x208)](_0x12ee30(0x278)),this[_0x12ee30(0x231)]());}[_0x4a0469(0x297)](){var _0x12af53=_0x4a0469;this[_0x12af53(0x22a)]==='following'&&this[_0x12af53(0x269)]();}['_handleNewHost'](_0x50569d){var _0x33608d=_0x4a0469;const {presenter:_0x19d9e1}=_0x50569d[_0x33608d(0x284)],_0xbd14a3=this[_0x33608d(0x220)][_0x33608d(0x290)]();this[_0x33608d(0x1f2)]=_0x19d9e1,_0x19d9e1===_0xbd14a3?(this['_stopFollowing'](),this[_0x33608d(0x28b)]()):this[_0x33608d(0x22a)]!==_0x33608d(0x20e)&&(this[_0x33608d(0x259)](),this[_0x33608d(0x231)]());}[_0x4a0469(0x24f)](){var _0x5c8ef8=_0x4a0469;const _0x4deb81={'eventID':_0x47f5b1[_0x5c8ef8(0x261)]};this[_0x5c8ef8(0x220)][_0x5c8ef8(0x257)](_0x4deb81,this[_0x5c8ef8(0x25e)]);}[_0x4a0469(0x201)](){var _0x2cfe1d=_0x4a0469;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x2cfe1d(0x295)]();}[_0x4a0469(0x23e)](_0x2489b9){var _0x9084a=_0x4a0469;if(this[_0x9084a(0x22a)]===_0x9084a(0x278)&&this[_0x9084a(0x1f2)]===_0x2489b9[_0x9084a(0x284)]['memberID']){const _0x3f54f5=_0xf5fd61(_0x2489b9[_0x9084a(0x284)])[_0x9084a(0x245)][_0x9084a(0x241)]()[_0x9084a(0x20b)](_0x17a5fb=>_0x17a5fb['id']===_0x39b5d2['id']);if(_0x3f54f5){const _0x46ccf2=_0x3f54f5[_0x9084a(0x246)][_0x9084a(0x239)],_0x2c0da0=_0x3f54f5[_0x9084a(0x246)][_0x9084a(0x28a)]['id'];setTimeout(()=>{var _0x476841=_0x9084a;this[_0x476841(0x21d)][_0x476841(0x264)](_0x358a7e['id'],{'unitId':_0x46ccf2,'subUnitId':_0x2c0da0},{'fromCollab':!0x0});});}}}[_0x4a0469(0x28b)](){var _0x17a54f=_0x4a0469;this[_0x17a54f(0x1ee)]['next']('presenting');const _0x3706e3=new Map(),_0x210009=this[_0x17a54f(0x281)]=new _0x3d3a2e();_0x210009[_0x17a54f(0x244)](_0x297c65(()=>{var _0x788396=_0x17a54f;_0x3706e3[_0x788396(0x1f3)](_0x195661=>_0x195661[_0x788396(0x276)]()),_0x3706e3[_0x788396(0x1f0)]();})),_0x210009[_0x17a54f(0x244)](this[_0x17a54f(0x21d)][_0x17a54f(0x271)](_0x2525a2=>{var _0x521bd1=_0x17a54f,_0x2483da;if(_0x2525a2[_0x521bd1(0x1f8)]!==_0x4902c8[_0x521bd1(0x1fb)]||!this[_0x521bd1(0x225)]['shouldShareOperation'](_0x2525a2['id']))return;const {id:_0x3a1599}=_0x2525a2;let _0x1bdcbe;_0x3706e3['has'](_0x3a1599)?_0x1bdcbe=_0x3706e3[_0x521bd1(0x242)](_0x3a1599):(_0x1bdcbe=new _0x5841b9(),_0x3706e3['set'](_0x3a1599,_0x1bdcbe),_0x1bdcbe['pipe'](_0x47ce90((_0x2483da=this['_configService'][_0x521bd1(0x28d)](Ce))!=null?_0x2483da:Ne,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x521bd1(0x226)](_0x22ed83=>{var _0x5f32dd=_0x521bd1;this['_collabSession'][_0x5f32dd(0x257)]({'eventID':_0x47f5b1[_0x5f32dd(0x218)],'data':{'unitID':this[_0x5f32dd(0x25e)],'operations':{[_0x22ed83['id']]:{'id':_0x22ed83['id'],'params':JSON[_0x5f32dd(0x209)](_0x22ed83[_0x5f32dd(0x246)])}}}},this[_0x5f32dd(0x25e)]);})),_0x1bdcbe[_0x521bd1(0x208)](_0x2525a2);})),this['_liveShareService']['getInitialStates'](this[_0x17a54f(0x25e)])[_0x17a54f(0x1f3)](_0x296c24=>this['_collabSession'][_0x17a54f(0x257)]({'eventID':_0x47f5b1[_0x17a54f(0x218)],'data':{'unitID':this[_0x17a54f(0x25e)],'operations':{[_0x296c24['id']]:{'id':_0x296c24['id'],'params':JSON[_0x17a54f(0x209)](_0x296c24[_0x17a54f(0x246)])}}}},this['_unitID']));}[_0x4a0469(0x259)](){var _0x1109b4=_0x4a0469,_0x5b167d;this[_0x1109b4(0x1ee)]['next'](_0x1109b4(0x22b)),(_0x5b167d=this[_0x1109b4(0x281)])==null||_0x5b167d[_0x1109b4(0x27c)](),this[_0x1109b4(0x281)]=null;}['_startFollowing'](){var _0x1d34dc=_0x4a0469,_0x4e5cd9;(_0x4e5cd9=this['_commandDisposable'])==null||_0x4e5cd9[_0x1d34dc(0x27c)](),this[_0x1d34dc(0x1ee)]['next'](_0x1d34dc(0x278));}[_0x4a0469(0x295)](){var _0x9e47e1=_0x4a0469,_0x528c69;this['_status$'][_0x9e47e1(0x208)](_0x9e47e1(0x22b)),(_0x528c69=this['_commandDisposable'])==null||_0x528c69[_0x9e47e1(0x27c)](),this[_0x9e47e1(0x281)]=null;}['_stopFollowing'](){var _0xfddcb3=_0x4a0469,_0x1328eb;this[_0xfddcb3(0x1ee)][_0xfddcb3(0x208)](_0xfddcb3(0x20e)),(_0x1328eb=this[_0xfddcb3(0x281)])==null||_0x1328eb[_0xfddcb3(0x27c)]();}[_0x4a0469(0x20c)](_0x358099){var _0xeba91d=_0x4a0469;if(['presenting',_0xeba91d(0x20e),_0xeba91d(0x211)][_0xeba91d(0x299)](this[_0xeba91d(0x22a)])||!_0x358099[_0xeba91d(0x284)][_0xeba91d(0x263)]||_0x358099[_0xeba91d(0x284)][_0xeba91d(0x263)]===this[_0xeba91d(0x220)][_0xeba91d(0x290)]())return;this[_0xeba91d(0x22a)]===_0xeba91d(0x22b)&&this[_0xeba91d(0x231)]();const _0x456b86=_0x358099[_0xeba91d(0x284)][_0xeba91d(0x2a1)];Object['values'](_0x456b86)[_0xeba91d(0x1f3)](_0x375608=>{var _0x13126b=_0xeba91d;this[_0x13126b(0x21d)][_0x13126b(0x264)](_0x375608['id'],_0x375608[_0x13126b(0x246)]?JSON['parse'](_0x375608[_0x13126b(0x246)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x6ec381=_0x4a0469,_0x254985;this[_0x6ec381(0x1ee)][_0x6ec381(0x208)](_0x6ec381(0x211)),(_0x254985=this[_0x6ec381(0x281)])==null||_0x254985[_0x6ec381(0x27c)]();}[_0x4a0469(0x287)](){var _0x53f6a3=_0x4a0469;this['_status$']['next'](_0x53f6a3(0x22b)),this[_0x53f6a3(0x24f)]();}};C=G([f(0x2,_0x4eca33),f(0x3,_0xf0bd13(L)),f(0x4,_0x44996d)],C);var l=function(){var _0x12226c=_0x4a0469;return l=Object[_0x12226c(0x23b)]||function(_0x506f6f){var _0x10280d=_0x12226c;for(var _0x3dcf55,_0x52d682=0x1,_0x3c1906=arguments['length'];_0x52d682<_0x3c1906;_0x52d682++){_0x3dcf55=arguments[_0x52d682];for(var _0x4a557c in _0x3dcf55)Object[_0x10280d(0x237)]['hasOwnProperty'][_0x10280d(0x1fe)](_0x3dcf55,_0x4a557c)&&(_0x506f6f[_0x4a557c]=_0x3dcf55[_0x4a557c]);}return _0x506f6f;},l[_0x12226c(0x28e)](this,arguments);},Pe=function(_0xc9a248,_0x393360){var _0x379a70=_0x4a0469,_0x9c9f4d={};for(var _0x1d7143 in _0xc9a248)Object[_0x379a70(0x237)][_0x379a70(0x217)][_0x379a70(0x1fe)](_0xc9a248,_0x1d7143)&&_0x393360[_0x379a70(0x210)](_0x1d7143)<0x0&&(_0x9c9f4d[_0x1d7143]=_0xc9a248[_0x1d7143]);if(_0xc9a248!=null&&typeof Object[_0x379a70(0x202)]=='function'){for(var _0x811eb0=0x0,_0x1d7143=Object[_0x379a70(0x202)](_0xc9a248);_0x811eb0<_0x1d7143[_0x379a70(0x267)];_0x811eb0++)_0x393360[_0x379a70(0x210)](_0x1d7143[_0x811eb0])<0x0&&Object[_0x379a70(0x237)]['propertyIsEnumerable'][_0x379a70(0x1fe)](_0xc9a248,_0x1d7143[_0x811eb0])&&(_0x9c9f4d[_0x1d7143[_0x811eb0]]=_0xc9a248[_0x1d7143[_0x811eb0]]);}return _0x9c9f4d;},W=_0x1751ca(function(_0x2f2a30,_0x2336a5){var _0x5f2489=_0x4a0469,_0x127e85=_0x2f2a30[_0x5f2489(0x272)],_0x19dfe6=_0x2f2a30['id'],_0x58d256=_0x2f2a30['className'],_0x16ae0a=_0x2f2a30['extend'],_0x387aa9=Pe(_0x2f2a30,[_0x5f2489(0x272),'id',_0x5f2489(0x22f),_0x5f2489(0x26f)]),_0x20aaf3=_0x5f2489(0x26c)[_0x5f2489(0x26d)](_0x19dfe6,'\x20')['concat'](_0x58d256||'')[_0x5f2489(0x232)](),_0x2f2b8a=_0x20f2ee('_'[_0x5f2489(0x26d)](Te()));return B(_0x127e85,''[_0x5f2489(0x26d)](_0x19dfe6),{'defIds':_0x127e85[_0x5f2489(0x256)],'idSuffix':_0x2f2b8a[_0x5f2489(0x23a)]},l({'ref':_0x2336a5,'className':_0x20aaf3},_0x387aa9),_0x16ae0a);});function B(_0x5996c2,_0xf97922,_0xcb3892,_0x42623b,_0xf0a247){var _0x256f7e=_0x4a0469;return _0x953823(_0x5996c2[_0x256f7e(0x298)],l(l({'key':_0xf97922},Le(_0x5996c2,_0xcb3892,_0xf0a247)),_0x42623b),(Re(_0x5996c2,_0xcb3892)[_0x256f7e(0x1f1)]||[])[_0x256f7e(0x203)](function(_0x1e3a1e,_0x5cf1fd){var _0x17e322=_0x256f7e;return B(_0x1e3a1e,''[_0x17e322(0x26d)](_0xf97922,'-')[_0x17e322(0x26d)](_0x5996c2[_0x17e322(0x298)],'-')[_0x17e322(0x26d)](_0x5cf1fd),_0xcb3892,void 0x0,_0xf0a247);}));}function Le(_0x3d7cf4,_0x4f5dee,_0x14f922){var _0x27146b=_0x4a0469,_0x54c57c=l({},_0x3d7cf4[_0x27146b(0x24b)]);_0x14f922!=null&&_0x14f922[_0x27146b(0x255)]&&_0x54c57c[_0x27146b(0x26e)]==='colorChannel1'&&(_0x54c57c[_0x27146b(0x26e)]=_0x14f922[_0x27146b(0x255)]);var _0x55d434=_0x4f5dee['defIds'];return!_0x55d434||_0x55d434[_0x27146b(0x267)]===0x0||(_0x3d7cf4[_0x27146b(0x298)]===_0x27146b(0x26a)&&_0x54c57c[_0x27146b(0x21a)]&&(_0x54c57c[_0x27146b(0x21a)]=_0x54c57c[_0x27146b(0x21a)]+_0x4f5dee[_0x27146b(0x296)]),Object['entries'](_0x54c57c)[_0x27146b(0x1f3)](function(_0x2c30cf){var _0x164b61=_0x27146b,_0x343227=_0x2c30cf[0x0],_0x36fc7a=_0x2c30cf[0x1];typeof _0x36fc7a=='string'&&(_0x54c57c[_0x343227]=_0x36fc7a[_0x164b61(0x279)](/url\(#(.*)\)/,_0x164b61(0x21c)[_0x164b61(0x26d)](_0x4f5dee[_0x164b61(0x296)],')')));})),_0x54c57c;}function Re(_0x2df793,_0x52cae1){var _0x23f2dc=_0x4a0469,_0x27c19e,_0xe8bb49=_0x52cae1[_0x23f2dc(0x256)];return!_0xe8bb49||_0xe8bb49[_0x23f2dc(0x267)]===0x0?_0x2df793:_0x2df793[_0x23f2dc(0x298)]==='defs'&&(!((_0x27c19e=_0x2df793[_0x23f2dc(0x1f1)])===null||_0x27c19e===void 0x0)&&_0x27c19e[_0x23f2dc(0x267)])?l(l({},_0x2df793),{'children':_0x2df793[_0x23f2dc(0x1f1)]['map'](function(_0x6edcd2){var _0x32d534=_0x23f2dc;return typeof _0x6edcd2[_0x32d534(0x24b)]['id']==_0x32d534(0x221)&&_0xe8bb49&&_0xe8bb49[_0x32d534(0x210)](_0x6edcd2['attrs']['id'])>-0x1?l(l({},_0x6edcd2),{'attrs':l(l({},_0x6edcd2[_0x32d534(0x24b)]),{'id':_0x6edcd2[_0x32d534(0x24b)]['id']+_0x52cae1[_0x32d534(0x296)]})}):_0x6edcd2;})}):_0x2df793;}function Te(){var _0x100cbd=_0x4a0469;return Math[_0x100cbd(0x207)]()[_0x100cbd(0x243)](0x24)[_0x100cbd(0x286)](0x2,0x8);}W['displayName']=_0x4a0469(0x252);function _0xc6e5(){var _0x8ebf2a=['registerComponent','FOLLOWING','className','4096404UyNHuE','_startFollowing','trim','413712LTIEaY','5145672ouBldW','getLiveShareCoordinator','_sharedOperations','prototype','pipe','unitId','current','assign','Rendered','UNIVER_LIVE_SHARE_PLUGIN','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','0\x200\x2017\x2017','reverse','get','toString','add','mutations','params','1535CCRqBk','1288341kVXyBs','div','HEADER_MENU','attrs','UNIVER_SHEET','createElement','status$','_fetchOperations','pluginName','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','UniverIcon','none','IDLE','colorChannel1','defIds','send','_entities','_stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','_configService','OFFLINE','_unitID','1em','LiveShareSingle','LIVESHARE_FETCH_OPERATIONS','_reporters','presenter','executeCommand','click','coordinator','length','PRESENTING','_stopFollowing','use','Fragment','univerjs-icon\x20univerjs-icon-','concat','fill','extend','_handleOffline','onCommandExecuted','icon','displayName','dispose$','_mountLiveShare','complete','NOT_FOLLOWING','following','replace','small','liveShare','dispose','124210hAnsdD','unsubscribe','stopPresenting','path','_commandDisposable','1258rROiti','Start\x20following','data','NEW_CHANGESETS','substring','_handleOnline','disposeWithMe','getTypeOfUnitDisposed$','sheet','_startPresenting','event$','getConfig','apply','_injector','getMemberID','_collabSessionService','startFollowing','currentColor','56tYnshA','_beIdle','idSuffix','stopFollowing','tag','includes','defineProperty','_init','You\x27are\x20offline.','liveShareDropdownTitle','LIVESHARE_NEW_HOST','You\x27re\x20presenting\x20the\x20document','LIVESHARE_REQUEST_HOST','operations','_status$','symbol','clear','children','_presenter','forEach','_univerInstanceService','_handleNewHost','registerSharedOperation','delete','type','getCurrentTypeOfUnit$','getInitialStates','OPERATION','default','tryStartPresenting','call','onStarting','from','_handleTerminate','getOwnPropertySymbols','map','getUnitId','_uiPartsService','init','random','next','stringify','LIVESHARE_TERMINATE','find','_handleOperation','Start','not-following','then','indexOf','offline','presenting','liveShareDropdown','set','225gBZuzO','live-share-single','hasOwnProperty','LIVESHARE_OPERATION','has','xlink:href','live-share-status-','url(#$1','_commandService','evenodd','createInstance','_collabSession','string','sessionStatus$','univer-live-share-dropdown','3551350fvunoz','_liveShareService','subscribe','_startLiveShareCoordinator','shouldShareOperation','Present\x20this\x20document','_status','idle','univer-live-share-dropdown-title'];_0xc6e5=function(){return _0x8ebf2a;};return _0xc6e5();}var ye={'tag':'svg','attrs':{'fill':_0x4a0469(0x253),'viewBox':_0x4a0469(0x240),'width':_0x4a0469(0x25f),'height':_0x4a0469(0x25f)},'children':[{'tag':_0x4a0469(0x280),'attrs':{'fill':_0x4a0469(0x293),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4a0469(0x280),'attrs':{'fill':_0x4a0469(0x293),'d':_0x4a0469(0x251),'fillRule':'evenodd','clipRule':_0x4a0469(0x21e)}}]},Y=_0x1751ca(function(_0x1ae98b,_0x4850b2){var _0x316ee0=_0x4a0469;return _0x953823(W,Object['assign']({},_0x1ae98b,{'id':_0x316ee0(0x216),'ref':_0x4850b2,'icon':ye}));});Y[_0x4a0469(0x273)]=_0x4a0469(0x260);const Ae='univer-live-share',$e='univer-live-share-status-offline',xe=_0x4a0469(0x223),Fe=_0x4a0469(0x22c),v={'liveShare':Ae,'liveShareStatusOffline':$e,'liveShareDropdown':xe,'liveShareDropdownTitle':Fe};function He(){var _0x3a0f8a=_0x4a0469;const _0xb855fc=_0x176ae9(O),_0x3d8226=_0x176ae9(_0x1ee5eb),_0x53f756=_0x11c65d(()=>_0x3d8226[_0x3a0f8a(0x1f9)](_0x4b09d8[_0x3a0f8a(0x24c)]),void 0x0,!0x1,[]),[_0x303f29,_0x1dec7d]=_0x2b3c17(null),[_0x4b0392,_0x530d4c]=_0x2b3c17(d[_0x3a0f8a(0x254)]),_0x32f8ae=_0x20f2ee(null);_0x2a4610(()=>(_0x53f756&&_0xb855fc[_0x3a0f8a(0x235)](_0x53f756['getUnitId']())[_0x3a0f8a(0x20f)](_0x3164af=>{var _0x20e476=_0x3a0f8a;_0x1dec7d(_0x3164af),_0x32f8ae[_0x20e476(0x23a)]=_0x3164af[_0x20e476(0x24e)]['subscribe'](_0x3d9e87=>{_0x530d4c(_0x3d9e87);});}),()=>{var _0x1ef7fd=_0x3a0f8a,_0x6ee78c;(_0x6ee78c=_0x32f8ae[_0x1ef7fd(0x23a)])==null||_0x6ee78c[_0x1ef7fd(0x27e)](),_0x32f8ae[_0x1ef7fd(0x23a)]=null;}),[_0x53f756,_0xb855fc]);const _0x5bfaf6=_0x4b0392!==d['OFFLINE']?[_0x3a0f8a(0x265)]:[],_0x5168ce=_0x5d603a(v[_0x3a0f8a(0x27b)],_0x3a0f8a(0x21b)+_0x4b0392);return _0x303f29?_0x13bb33[_0x3a0f8a(0x24d)](_0x94a07e,{'trigger':_0x5bfaf6,'overlay':_0x13bb33[_0x3a0f8a(0x24d)]('div',{'className':v[_0x3a0f8a(0x213)]},_0x13bb33[_0x3a0f8a(0x24d)](je,{'status':_0x4b0392,'coordinator':_0x303f29}))},_0x13bb33['createElement'](_0x3a0f8a(0x249),{'className':_0x5168ce},_0x13bb33[_0x3a0f8a(0x24d)](Y,null))):null;}function je(_0x20a5ca){var _0x2d12a5=_0x4a0469;const {status:_0x5d6400,coordinator:_0x5048b3}=_0x20a5ca;switch(_0x5d6400){case d[_0x2d12a5(0x254)]:return _0x13bb33[_0x2d12a5(0x24d)](Ue,{'coordinator':_0x5048b3});case d[_0x2d12a5(0x22e)]:return _0x13bb33[_0x2d12a5(0x24d)](Ve,{'coordinator':_0x5048b3});case d[_0x2d12a5(0x277)]:return _0x13bb33[_0x2d12a5(0x24d)](Me,{'coordinator':_0x5048b3});case d[_0x2d12a5(0x25d)]:return _0x13bb33['createElement'](We,null);case d[_0x2d12a5(0x268)]:return _0x13bb33['createElement'](Ge,{'coordinator':_0x5048b3});default:return null;}}function Ue(_0x1cd681){var _0x4761b4=_0x4a0469;return _0x13bb33[_0x4761b4(0x24d)](_0x13bb33[_0x4761b4(0x26b)],null,_0x13bb33[_0x4761b4(0x24d)]('div',{'className':v[_0x4761b4(0x29d)]},_0x4761b4(0x229)),_0x13bb33['createElement'](_0x281711,{'size':_0x4761b4(0x27a),'type':_0x4761b4(0x1fc),'onClick':()=>_0x1cd681[_0x4761b4(0x266)]['tryStartPresenting']()},_0x4761b4(0x20d)));}function Ve(_0x36cffe){var _0x45cab3=_0x4a0469;return _0x13bb33[_0x45cab3(0x24d)](_0x13bb33[_0x45cab3(0x26b)],null,_0x13bb33[_0x45cab3(0x24d)]('div',{'className':v[_0x45cab3(0x29d)]},_0x45cab3(0x23f)),_0x13bb33['createElement'](_0x281711,{'size':_0x45cab3(0x27a),'type':_0x45cab3(0x1fc),'onClick':()=>_0x36cffe['coordinator']['stopFollowing']()},'Stop\x20following'));}function Me(_0x12e59f){var _0x455977=_0x4a0469;return _0x13bb33[_0x455977(0x24d)](_0x13bb33[_0x455977(0x26b)],null,_0x13bb33[_0x455977(0x24d)]('div',{'className':v[_0x455977(0x29d)]},_0x455977(0x25a)),_0x13bb33[_0x455977(0x24d)](_0x281711,{'size':_0x455977(0x27a),'type':'text','onClick':()=>_0x12e59f['coordinator'][_0x455977(0x292)]()},_0x455977(0x283)));}function Ge(_0x7e3dba){var _0x4cf96b=_0x4a0469;return _0x13bb33['createElement'](_0x13bb33[_0x4cf96b(0x26b)],null,_0x13bb33[_0x4cf96b(0x24d)](_0x4cf96b(0x249),{'className':v[_0x4cf96b(0x29d)]},_0x4cf96b(0x29f)),_0x13bb33['createElement'](_0x281711,{'size':_0x4cf96b(0x27a),'type':'default','onClick':()=>_0x7e3dba['coordinator'][_0x4cf96b(0x27f)]()},'Stop\x20presenting'));}function We(){var _0x25cc63=_0x4a0469;return _0x13bb33[_0x25cc63(0x24d)](_0x13bb33[_0x25cc63(0x26b)],null,_0x25cc63(0x29c));}var Be=Object['defineProperty'],Ye=Object['getOwnPropertyDescriptor'],ze=(_0x403849,_0x55f6d6,_0x573b8a,_0x5ae2d0)=>{var _0xa2e48b=_0x4a0469;for(var _0x2594c1=_0x5ae2d0>0x1?void 0x0:_0x5ae2d0?Ye(_0x55f6d6,_0x573b8a):_0x55f6d6,_0x398432=_0x403849[_0xa2e48b(0x267)]-0x1,_0x329e41;_0x398432>=0x0;_0x398432--)(_0x329e41=_0x403849[_0x398432])&&(_0x2594c1=(_0x5ae2d0?_0x329e41(_0x55f6d6,_0x573b8a,_0x2594c1):_0x329e41(_0x2594c1))||_0x2594c1);return _0x5ae2d0&&_0x2594c1&&Be(_0x55f6d6,_0x573b8a,_0x2594c1),_0x2594c1;},A=(_0x1f460a,_0x27335f)=>(_0x4a5810,_0x19e965)=>_0x27335f(_0x4a5810,_0x19e965,_0x1f460a);let g=class extends _0x2e8a74{constructor(_0x296741,_0x43e3ac){var _0x251ffe=_0x4a0469;super(),this[_0x251ffe(0x28f)]=_0x296741,this[_0x251ffe(0x205)]=_0x43e3ac,this[_0x251ffe(0x275)]();}['_mountLiveShare'](){var _0x5c1656=_0x4a0469;this['disposeWithMe'](this[_0x5c1656(0x205)][_0x5c1656(0x22d)](_0x4f4aa1[_0x5c1656(0x24a)],()=>_0x191cb2(He,this[_0x5c1656(0x28f)])));}};g=ze([_0x5161be(_0xef1bc2[_0x4a0469(0x23c)],g),A(0x0,_0xf0bd13(_0x3f6b93)),A(0x1,_0x358edd)],g);var z=Object['defineProperty'],Ze=Object[_0x4a0469(0x25b)],Je=(_0x39467b,_0x4305bf,_0x327163)=>_0x4305bf in _0x39467b?z(_0x39467b,_0x4305bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x327163}):_0x39467b[_0x4305bf]=_0x327163,qe=(_0x26dfc0,_0x323e87,_0x2406d1,_0x52ce6e)=>{var _0x105b1f=_0x4a0469;for(var _0x271203=_0x52ce6e>0x1?void 0x0:_0x52ce6e?Ze(_0x323e87,_0x2406d1):_0x323e87,_0x20b209=_0x26dfc0[_0x105b1f(0x267)]-0x1,_0x3854e4;_0x20b209>=0x0;_0x20b209--)(_0x3854e4=_0x26dfc0[_0x20b209])&&(_0x271203=(_0x52ce6e?_0x3854e4(_0x323e87,_0x2406d1,_0x271203):_0x3854e4(_0x271203))||_0x271203);return _0x52ce6e&&_0x271203&&z(_0x323e87,_0x2406d1,_0x271203),_0x271203;},Ke=(_0x4e6d2f,_0x13635)=>(_0x566a17,_0x16c3ca)=>_0x13635(_0x566a17,_0x16c3ca,_0x4e6d2f),Z=(_0x5dd9c7,_0x36e29b,_0x5ee75f)=>Je(_0x5dd9c7,typeof _0x36e29b!=_0x4a0469(0x1ef)?_0x36e29b+'':_0x36e29b,_0x5ee75f);const Qe=_0x4a0469(0x23d);let b=class extends _0x20e2dd{constructor(_0x485ef2,_0x35f60c){var _0x5b4475=_0x4a0469;super(),this[_0x5b4475(0x28f)]=_0x35f60c;}[_0x4a0469(0x1ff)](_0x422380){var _0x180a8b=_0x4a0469;[[L],[O],[m],[g]][_0x180a8b(0x1f3)](_0x1c9475=>_0x422380[_0x180a8b(0x244)](_0x1c9475));}};Z(b,_0x4a0469(0x1f8),_0x4b09d8[_0x4a0469(0x24c)]),Z(b,_0x4a0469(0x250),Qe),b=qe([_0x34a68e(_0x25f609),Ke(0x1,_0xf0bd13(_0x3f6b93))],b);export{L as LiveShareService,b as UniverLiveSharePlugin};
1
+ var _0x240cab=_0x57fa;(function(_0xc41d53,_0x3d180a){var _0x30717c=_0x57fa,_0x36f377=_0xc41d53();while(!![]){try{var _0x175da2=-parseInt(_0x30717c(0x18c))/0x1+-parseInt(_0x30717c(0x17b))/0x2+parseInt(_0x30717c(0x1d8))/0x3+-parseInt(_0x30717c(0x181))/0x4*(parseInt(_0x30717c(0x14c))/0x5)+parseInt(_0x30717c(0x154))/0x6*(-parseInt(_0x30717c(0x16c))/0x7)+-parseInt(_0x30717c(0x130))/0x8+parseInt(_0x30717c(0x1c8))/0x9*(parseInt(_0x30717c(0x1cb))/0xa);if(_0x175da2===_0x3d180a)break;else _0x36f377['push'](_0x36f377['shift']());}catch(_0x30ad73){_0x36f377['push'](_0x36f377['shift']());}}}(_0x5aa9,0x2fa41));var K=Object[_0x240cab(0x197)],Q=(_0x327973,_0x2d539e,_0x2b344e)=>_0x2d539e in _0x327973?K(_0x327973,_0x2d539e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b344e}):_0x327973[_0x2d539e]=_0x2b344e,u=(_0x3c22e3,_0x518ec4,_0x40cafc)=>Q(_0x3c22e3,typeof _0x518ec4!='symbol'?_0x518ec4+'':_0x518ec4,_0x40cafc);import{Disposable as _0x4ca92e,toDisposable as _0x3820f8,OnLifecycle as _0x2e3a4b,LifecycleStages as _0x43d8bb,Inject as _0x1e9511,RxDisposable as _0x29d6a7,UniverInstanceType as _0x341753,Injector as _0x1c816e,DisposableCollection as _0x1e35ca,CommandType as _0xd0989b,IUniverInstanceService as _0x269eed,IConfigService as _0x97beea,ICommandService as _0x32ed72,useDependency as _0x1834d7,connectInjector as _0x20f3da,Plugin as _0x43231b,DependentOn as _0x19fa65}from'@univerjs/core';import{CollaborationSessionService as _0x156a54,SessionStatus as _0x5a2998,UniverCollaborationClientPlugin as _0x27ebae}from'@univerjs-pro/collaboration-client';import{SetWorksheetActiveOperation as _0x4ed06a,InsertSheetMutation as _0x4ed4df}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x474622,SetScrollOperation as _0x2ecc45}from'@univerjs/sheets-ui';import{CollaborationEvent as _0x5b83ba,parseProtocolChangeset as _0x532ad7}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x46b9e6,Subject as _0x15c710}from'rxjs';import{takeUntil as _0x43ba0a,throttleTime as _0x1bae55}from'rxjs/operators';import{useObservable as _0x55aaa9,BuiltInUIPart as _0x5bc255,IUIPartsService as _0x55820f}from'@univerjs/ui';import{Dropdown as _0x72c649,Button as _0x53e8b1}from'@univerjs/design';import _0x501145 from'clsx';import _0x25c141,{forwardRef as _0x2e62e,useRef as _0x407613,createElement as _0x1ef698,useState as _0x374cd9,useEffect as _0x437e57}from'react';class L extends _0x4ca92e{constructor(){var _0x308427=_0x240cab;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x308427(0x1a0),new Set());}[_0x240cab(0x1a9)](_0x2bd457){var _0x3e1f29=_0x240cab;return this[_0x3e1f29(0x157)]['add'](_0x2bd457),_0x3820f8(()=>this[_0x3e1f29(0x157)][_0x3e1f29(0x151)](_0x2bd457));}['registerInitialStateReporter'](_0x14a224){var _0x4c5502=_0x240cab;return this[_0x4c5502(0x1a0)][_0x4c5502(0x1b1)](_0x14a224),_0x3820f8(()=>this[_0x4c5502(0x1a0)]['delete'](_0x14a224));}[_0x240cab(0x144)](_0xc69e2a){var _0x54f8c1=_0x240cab;return this['_sharedOperations'][_0x54f8c1(0x19d)](_0xc69e2a);}[_0x240cab(0x16b)](_0x5b8b94){var _0x4afe28=_0x240cab;return Array[_0x4afe28(0x16d)](this[_0x4afe28(0x1a0)])[_0x4afe28(0x17c)](_0x1d0b1d=>_0x1d0b1d(_0x5b8b94));}}var Ee=Object[_0x240cab(0x197)],Ie=Object[_0x240cab(0x1c0)],Oe=(_0x380bf0,_0x4dca74,_0xae9bab,_0xd6fa54)=>{var _0x405fee=_0x240cab;for(var _0x1fdb52=_0xd6fa54>0x1?void 0x0:_0xd6fa54?Ie(_0x4dca74,_0xae9bab):_0x4dca74,_0x410523=_0x380bf0[_0x405fee(0x189)]-0x1,_0x5e814c;_0x410523>=0x0;_0x410523--)(_0x5e814c=_0x380bf0[_0x410523])&&(_0x1fdb52=(_0xd6fa54?_0x5e814c(_0x4dca74,_0xae9bab,_0x1fdb52):_0x5e814c(_0x1fdb52))||_0x1fdb52);return _0xd6fa54&&_0x1fdb52&&Ee(_0x4dca74,_0xae9bab,_0x1fdb52),_0x1fdb52;},be=(_0x4835d3,_0x25ecf7)=>(_0x452a85,_0x333a46)=>_0x25ecf7(_0x452a85,_0x333a46,_0x4835d3);let m=class extends _0x4ca92e{constructor(_0xc38181){var _0x56064d=_0x240cab;super(),this['_liveShareService']=_0xc38181,this[_0x56064d(0x18f)]();}[_0x240cab(0x18f)](){[_0x474622['id'],_0x2ecc45['id'],_0x4ed06a['id']]['forEach'](_0x46dc72=>{var _0x1ed987=_0x57fa;this[_0x1ed987(0x1a4)](this[_0x1ed987(0x1c9)]['registerSharedOperation'](_0x46dc72));});}};m=Oe([_0x2e3a4b(_0x43d8bb[_0x240cab(0x172)],m),be(0x0,_0x1e9511(L))],m);var we=Object[_0x240cab(0x197)],De=Object['getOwnPropertyDescriptor'],G=(_0x3106ff,_0x9911ac,_0x508b15,_0x3ee91a)=>{var _0x1efa5e=_0x240cab;for(var _0xf334f2=_0x3ee91a>0x1?void 0x0:_0x3ee91a?De(_0x9911ac,_0x508b15):_0x9911ac,_0xe77a2d=_0x3106ff[_0x1efa5e(0x189)]-0x1,_0x201598;_0xe77a2d>=0x0;_0xe77a2d--)(_0x201598=_0x3106ff[_0xe77a2d])&&(_0xf334f2=(_0x3ee91a?_0x201598(_0x9911ac,_0x508b15,_0xf334f2):_0x201598(_0xf334f2))||_0xf334f2);return _0x3ee91a&&_0xf334f2&&we(_0x9911ac,_0x508b15,_0xf334f2),_0xf334f2;},f=(_0x17f286,_0x5e4953)=>(_0x2b68ad,_0x53a702)=>_0x5e4953(_0x2b68ad,_0x53a702,_0x17f286);let O=class extends _0x29d6a7{constructor(_0xbc09,_0x58b130,_0x50ea28){var _0x48c91c=_0x240cab;super(),u(this,_0x48c91c(0x195),new Map()),(this[_0x48c91c(0x1b5)]=_0xbc09,this[_0x48c91c(0x17f)]=_0x58b130,this[_0x48c91c(0x196)]=_0x50ea28,this[_0x48c91c(0x18f)]());}async['getLiveShareCoordinator'](_0x2d2564){var _0x2a79df=_0x240cab;return this['_entities'][_0x2a79df(0x19d)](_0x2d2564)||await this['_startLiveShareCoordinator'](_0x2d2564),this[_0x2a79df(0x195)]['get'](_0x2d2564);}[_0x240cab(0x18f)](){var _0x381513=_0x240cab;this[_0x381513(0x1b5)][_0x381513(0x1dc)](_0x341753[_0x381513(0x191)])[_0x381513(0x173)](_0x43ba0a(this[_0x381513(0x155)]))['subscribe'](async _0x438533=>{var _0x3c6815=_0x381513;const _0x6c4655=_0x438533[_0x3c6815(0x186)]();this[_0x3c6815(0x195)][_0x3c6815(0x19d)](_0x6c4655)||this['_startLiveShareCoordinator'](_0x6c4655);}),this[_0x381513(0x1b5)][_0x381513(0x15a)](_0x341753[_0x381513(0x191)])[_0x381513(0x173)](_0x43ba0a(this[_0x381513(0x155)]))[_0x381513(0x171)](_0x2a1db0=>{var _0x122033=_0x381513;const _0x41a8a6=_0x2a1db0[_0x122033(0x186)](),_0x584243=this['_entities']['get'](_0x41a8a6);_0x584243==null||_0x584243[_0x122033(0x1a5)]();});}async[_0x240cab(0x13c)](_0x5608ec){var _0x14f260=_0x240cab;const _0xe5d0a9=await this[_0x14f260(0x196)][_0x14f260(0x180)](_0x5608ec),_0x155459=this['_injector'][_0x14f260(0x1cd)](C,_0x5608ec,_0xe5d0a9);return _0x155459[_0x14f260(0x198)](),this[_0x14f260(0x195)][_0x14f260(0x153)](_0x5608ec,_0x155459),_0x155459;}};O=G([f(0x0,_0x269eed),f(0x1,_0x1e9511(_0x1c816e)),f(0x2,_0x1e9511(_0x156a54))],O);var d=(_0x1bc7d6=>(_0x1bc7d6[_0x240cab(0x165)]=_0x240cab(0x133),_0x1bc7d6[_0x240cab(0x164)]='idle',_0x1bc7d6['FOLLOWING']=_0x240cab(0x1d1),_0x1bc7d6['NOT_FOLLOWING']=_0x240cab(0x19e),_0x1bc7d6['PRESENTING']=_0x240cab(0x149),_0x1bc7d6))(d||{});const Ce=_0x240cab(0x147),Ne=0xc8;let C=class extends _0x29d6a7{constructor(_0x57acf9,_0x38cd31,_0x20361a,_0x4ac1ab,_0x4f678b){var _0x5a2e4d=_0x240cab;super(),u(this,'_status$',new _0x46b9e6(_0x5a2e4d(0x19a))),u(this,_0x5a2e4d(0x15d),this[_0x5a2e4d(0x12d)][_0x5a2e4d(0x1ae)]()),u(this,_0x5a2e4d(0x18f),!0x1),u(this,_0x5a2e4d(0x12b),null),u(this,_0x5a2e4d(0x184),null),(this['_unitID']=_0x57acf9,this[_0x5a2e4d(0x192)]=_0x38cd31,this[_0x5a2e4d(0x145)]=_0x20361a,this[_0x5a2e4d(0x1c9)]=_0x4ac1ab,this[_0x5a2e4d(0x1d4)]=_0x4f678b);}get['_status'](){var _0x30de91=_0x240cab;return this['_status$'][_0x30de91(0x1de)]();}[_0x240cab(0x1a5)](){var _0x17f909=_0x240cab,_0x15cf41;(_0x15cf41=this[_0x17f909(0x12b)])==null||_0x15cf41[_0x17f909(0x1a5)](),this[_0x17f909(0x12d)][_0x17f909(0x1d3)](_0x17f909(0x19a)),this[_0x17f909(0x12d)][_0x17f909(0x168)]();}[_0x240cab(0x198)](){var _0x40539c=_0x240cab;this[_0x40539c(0x18f)]||(this[_0x40539c(0x18f)]=!0x0,this[_0x40539c(0x192)][_0x40539c(0x1ac)][_0x40539c(0x173)](_0x43ba0a(this[_0x40539c(0x155)]))['subscribe'](_0x3d1790=>{var _0x53657d=_0x40539c;switch(_0x3d1790){case _0x5a2998[_0x53657d(0x165)]:this['_handleOffline']();break;case _0x5a2998[_0x53657d(0x12c)]:this[_0x53657d(0x162)]();break;}}),this[_0x40539c(0x192)][_0x40539c(0x1be)][_0x40539c(0x173)](_0x43ba0a(this[_0x40539c(0x155)]))[_0x40539c(0x171)](_0x341433=>{var _0x56b10c=_0x40539c;const {eventID:_0x1d0e6d}=_0x341433;switch(_0x1d0e6d){case _0x5b83ba[_0x56b10c(0x1a8)]:this[_0x56b10c(0x14d)](_0x341433);break;case _0x5b83ba[_0x56b10c(0x1b9)]:this[_0x56b10c(0x18b)](_0x341433);break;case _0x5b83ba['LIVESHARE_TERMINATE']:this[_0x56b10c(0x15f)]();break;case _0x5b83ba['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x341433);break;}}));}[_0x240cab(0x16a)](){var _0x2013c5=_0x240cab;this['_collabSession'][_0x2013c5(0x1d6)]({'eventID':_0x5b83ba[_0x2013c5(0x129)],'data':{'unitID':this[_0x2013c5(0x185)],'userID':this[_0x2013c5(0x192)][_0x2013c5(0x183)]()}},this[_0x2013c5(0x185)]);}[_0x240cab(0x18a)](){var _0x5d1f75=_0x240cab;this[_0x5d1f75(0x15e)]==='presenting'&&(this['_status$']['next'](_0x5d1f75(0x19a)),this['_collabSession'][_0x5d1f75(0x1d6)]({'eventID':_0x5b83ba[_0x5d1f75(0x1bb)],'data':{'unitID':this[_0x5d1f75(0x185)]}},this[_0x5d1f75(0x185)]));}[_0x240cab(0x1ad)](){var _0x29da1e=_0x240cab;this['_status']===_0x29da1e(0x19e)&&(this['_status$'][_0x29da1e(0x1d3)]('following'),this[_0x29da1e(0x137)]());}[_0x240cab(0x1ce)](){var _0x40c262=_0x240cab;this['_status']===_0x40c262(0x1d1)&&this[_0x40c262(0x1a1)]();}[_0x240cab(0x14d)](_0x2baa9e){var _0x348024=_0x240cab;const {presenter:_0x4f6b3c}=_0x2baa9e[_0x348024(0x131)],_0x59fbdf=this[_0x348024(0x192)]['getMemberID']();this['_presenter']=_0x4f6b3c,_0x4f6b3c===_0x59fbdf?(this[_0x348024(0x1a1)](),this[_0x348024(0x1b6)]()):this['_status']!==_0x348024(0x19e)&&(this[_0x348024(0x12e)](),this[_0x348024(0x137)]());}[_0x240cab(0x146)](){var _0x19f7c7=_0x240cab;const _0x598183={'eventID':_0x5b83ba[_0x19f7c7(0x1c4)]};this['_collabSession'][_0x19f7c7(0x1d6)](_0x598183,this[_0x19f7c7(0x185)]);}[_0x240cab(0x15f)](){var _0x1b69b5=_0x240cab;this[_0x1b69b5(0x184)]=null,this[_0x1b69b5(0x15e)]!==_0x1b69b5(0x149)&&this[_0x1b69b5(0x1d5)]();}[_0x240cab(0x17a)](_0x246a58){var _0x1bac4d=_0x240cab;if(this[_0x1bac4d(0x15e)]===_0x1bac4d(0x1d1)&&this[_0x1bac4d(0x184)]===_0x246a58[_0x1bac4d(0x131)][_0x1bac4d(0x1c6)]){const _0x26a1e4=_0x532ad7(_0x246a58[_0x1bac4d(0x131)])[_0x1bac4d(0x142)][_0x1bac4d(0x158)]()['find'](_0x58c753=>_0x58c753['id']===_0x4ed4df['id']);if(_0x26a1e4){const _0x4b2365=_0x26a1e4[_0x1bac4d(0x17d)]['unitId'],_0x326020=_0x26a1e4[_0x1bac4d(0x17d)]['sheet']['id'];setTimeout(()=>{var _0x1af289=_0x1bac4d;this[_0x1af289(0x1d4)][_0x1af289(0x182)](_0x4ed06a['id'],{'unitId':_0x4b2365,'subUnitId':_0x326020},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1a6af3=_0x240cab;this[_0x1a6af3(0x12d)]['next'](_0x1a6af3(0x149));const _0x143252=new Map(),_0x23b115=this[_0x1a6af3(0x12b)]=new _0x1e35ca();_0x23b115[_0x1a6af3(0x1b1)](_0x3820f8(()=>{var _0x637de7=_0x1a6af3;_0x143252[_0x637de7(0x187)](_0xa59757=>_0xa59757[_0x637de7(0x168)]()),_0x143252[_0x637de7(0x1b0)]();})),_0x23b115['add'](this[_0x1a6af3(0x1d4)][_0x1a6af3(0x13d)](_0x380d4d=>{var _0xcd5591=_0x1a6af3,_0x209dcd;if(_0x380d4d[_0xcd5591(0x1a7)]!==_0xd0989b[_0xcd5591(0x17e)]||!this[_0xcd5591(0x1c9)][_0xcd5591(0x144)](_0x380d4d['id']))return;const {id:_0x2ed849}=_0x380d4d;let _0x384172;_0x143252[_0xcd5591(0x19d)](_0x2ed849)?_0x384172=_0x143252[_0xcd5591(0x1c5)](_0x2ed849):(_0x384172=new _0x15c710(),_0x143252[_0xcd5591(0x153)](_0x2ed849,_0x384172),_0x384172[_0xcd5591(0x173)](_0x1bae55((_0x209dcd=this['_configService']['getConfig'](Ce))!=null?_0x209dcd:Ne,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xcd5591(0x171)](_0x49ccc4=>{var _0x808e3c=_0xcd5591;this[_0x808e3c(0x192)][_0x808e3c(0x1d6)]({'eventID':_0x5b83ba[_0x808e3c(0x1b9)],'data':{'unitID':this[_0x808e3c(0x185)],'operations':{[_0x49ccc4['id']]:{'id':_0x49ccc4['id'],'params':JSON[_0x808e3c(0x12a)](_0x49ccc4[_0x808e3c(0x17d)])}}}},this[_0x808e3c(0x185)]);})),_0x384172[_0xcd5591(0x1d3)](_0x380d4d);})),this[_0x1a6af3(0x1c9)]['getInitialStates'](this[_0x1a6af3(0x185)])[_0x1a6af3(0x187)](_0x284a98=>this[_0x1a6af3(0x192)]['send']({'eventID':_0x5b83ba[_0x1a6af3(0x1b9)],'data':{'unitID':this[_0x1a6af3(0x185)],'operations':{[_0x284a98['id']]:{'id':_0x284a98['id'],'params':JSON['stringify'](_0x284a98[_0x1a6af3(0x17d)])}}}},this[_0x1a6af3(0x185)]));}['_stopPresenting'](){var _0x545ba0=_0x240cab,_0x4dee4c;this[_0x545ba0(0x12d)][_0x545ba0(0x1d3)](_0x545ba0(0x19a)),(_0x4dee4c=this[_0x545ba0(0x12b)])==null||_0x4dee4c[_0x545ba0(0x1a5)](),this[_0x545ba0(0x12b)]=null;}[_0x240cab(0x137)](){var _0x1d7cbd=_0x240cab,_0x1e4578;(_0x1e4578=this[_0x1d7cbd(0x12b)])==null||_0x1e4578['dispose'](),this[_0x1d7cbd(0x12d)][_0x1d7cbd(0x1d3)]('following');}[_0x240cab(0x1d5)](){var _0x4c9a36=_0x240cab,_0x563be3;this[_0x4c9a36(0x12d)]['next'](_0x4c9a36(0x19a)),(_0x563be3=this[_0x4c9a36(0x12b)])==null||_0x563be3['dispose'](),this['_commandDisposable']=null;}[_0x240cab(0x1a1)](){var _0x284d4d=_0x240cab,_0x1f83e2;this[_0x284d4d(0x12d)][_0x284d4d(0x1d3)]('not-following'),(_0x1f83e2=this[_0x284d4d(0x12b)])==null||_0x1f83e2['dispose']();}[_0x240cab(0x18b)](_0x3bc852){var _0x46e667=_0x240cab;if(['presenting',_0x46e667(0x19e),_0x46e667(0x133)][_0x46e667(0x159)](this[_0x46e667(0x15e)])||!_0x3bc852[_0x46e667(0x131)][_0x46e667(0x1bd)]||_0x3bc852[_0x46e667(0x131)][_0x46e667(0x1bd)]===this[_0x46e667(0x192)][_0x46e667(0x183)]())return;this[_0x46e667(0x15e)]==='idle'&&this['_startFollowing']();const _0x5d766a=_0x3bc852['data']['operations'];Object['values'](_0x5d766a)[_0x46e667(0x187)](_0x65bcf7=>{var _0x22fd66=_0x46e667;this[_0x22fd66(0x1d4)][_0x22fd66(0x182)](_0x65bcf7['id'],_0x65bcf7[_0x22fd66(0x17d)]?JSON[_0x22fd66(0x19b)](_0x65bcf7[_0x22fd66(0x17d)]):null,{'fromCollab':!0x0});});}[_0x240cab(0x132)](){var _0x282d1a=_0x240cab,_0x2803bb;this[_0x282d1a(0x12d)][_0x282d1a(0x1d3)](_0x282d1a(0x133)),(_0x2803bb=this['_commandDisposable'])==null||_0x2803bb[_0x282d1a(0x1a5)]();}[_0x240cab(0x162)](){var _0x263f81=_0x240cab;this[_0x263f81(0x12d)]['next'](_0x263f81(0x19a)),this[_0x263f81(0x146)]();}};C=G([f(0x2,_0x97beea),f(0x3,_0x1e9511(L)),f(0x4,_0x32ed72)],C);function _0x57fa(_0x5d2fa0,_0x523276){var _0x5aa938=_0x5aa9();return _0x57fa=function(_0x57fa07,_0x46493d){_0x57fa07=_0x57fa07-0x128;var _0x4f29a9=_0x5aa938[_0x57fa07];return _0x4f29a9;},_0x57fa(_0x5d2fa0,_0x523276);}var l=function(){var _0x12f72c=_0x240cab;return l=Object[_0x12f72c(0x13f)]||function(_0xa6e6e9){var _0x5e85cd=_0x12f72c;for(var _0x5279f7,_0x197180=0x1,_0x4b5190=arguments[_0x5e85cd(0x189)];_0x197180<_0x4b5190;_0x197180++){_0x5279f7=arguments[_0x197180];for(var _0x4ff39e in _0x5279f7)Object[_0x5e85cd(0x1dd)][_0x5e85cd(0x12f)][_0x5e85cd(0x1b7)](_0x5279f7,_0x4ff39e)&&(_0xa6e6e9[_0x4ff39e]=_0x5279f7[_0x4ff39e]);}return _0xa6e6e9;},l[_0x12f72c(0x1da)](this,arguments);},Pe=function(_0xf5849c,_0x44e027){var _0x4ef940=_0x240cab,_0x23540d={};for(var _0x254a74 in _0xf5849c)Object[_0x4ef940(0x1dd)][_0x4ef940(0x12f)][_0x4ef940(0x1b7)](_0xf5849c,_0x254a74)&&_0x44e027['indexOf'](_0x254a74)<0x0&&(_0x23540d[_0x254a74]=_0xf5849c[_0x254a74]);if(_0xf5849c!=null&&typeof Object[_0x4ef940(0x14e)]==_0x4ef940(0x1a2)){for(var _0x5b3ecf=0x0,_0x254a74=Object['getOwnPropertySymbols'](_0xf5849c);_0x5b3ecf<_0x254a74[_0x4ef940(0x189)];_0x5b3ecf++)_0x44e027['indexOf'](_0x254a74[_0x5b3ecf])<0x0&&Object['prototype'][_0x4ef940(0x163)]['call'](_0xf5849c,_0x254a74[_0x5b3ecf])&&(_0x23540d[_0x254a74[_0x5b3ecf]]=_0xf5849c[_0x254a74[_0x5b3ecf]]);}return _0x23540d;},W=_0x2e62e(function(_0x1550bc,_0x568529){var _0x32fd46=_0x240cab,_0x400a5d=_0x1550bc[_0x32fd46(0x135)],_0x5d35f6=_0x1550bc['id'],_0x616560=_0x1550bc[_0x32fd46(0x1d9)],_0x46bf53=_0x1550bc[_0x32fd46(0x140)],_0x16e84a=Pe(_0x1550bc,['icon','id','className',_0x32fd46(0x140)]),_0x3e2d6a='univerjs-icon\x20univerjs-icon-'['concat'](_0x5d35f6,'\x20')['concat'](_0x616560||'')[_0x32fd46(0x1a3)](),_0xffc6d3=_0x407613('_'['concat'](Te()));return B(_0x400a5d,''[_0x32fd46(0x13e)](_0x5d35f6),{'defIds':_0x400a5d[_0x32fd46(0x139)],'idSuffix':_0xffc6d3[_0x32fd46(0x199)]},l({'ref':_0x568529,'className':_0x3e2d6a},_0x16e84a),_0x46bf53);});function B(_0x1a7519,_0x4393d6,_0x5e731e,_0x529cc7,_0x215628){var _0x52fc61=_0x240cab;return _0x1ef698(_0x1a7519[_0x52fc61(0x152)],l(l({'key':_0x4393d6},Le(_0x1a7519,_0x5e731e,_0x215628)),_0x529cc7),(Re(_0x1a7519,_0x5e731e)[_0x52fc61(0x1b4)]||[])[_0x52fc61(0x17c)](function(_0x523e4c,_0x44eae8){var _0x303fe3=_0x52fc61;return B(_0x523e4c,''[_0x303fe3(0x13e)](_0x4393d6,'-')[_0x303fe3(0x13e)](_0x1a7519[_0x303fe3(0x152)],'-')[_0x303fe3(0x13e)](_0x44eae8),_0x5e731e,void 0x0,_0x215628);}));}function Le(_0x2c70b0,_0x59b5a3,_0x5b18c6){var _0x23ebb6=_0x240cab,_0x59b2f5=l({},_0x2c70b0['attrs']);_0x5b18c6!=null&&_0x5b18c6[_0x23ebb6(0x19f)]&&_0x59b2f5[_0x23ebb6(0x1a6)]===_0x23ebb6(0x19f)&&(_0x59b2f5[_0x23ebb6(0x1a6)]=_0x5b18c6['colorChannel1']);var _0x5efb86=_0x59b5a3['defIds'];return!_0x5efb86||_0x5efb86[_0x23ebb6(0x189)]===0x0||(_0x2c70b0['tag']===_0x23ebb6(0x1ca)&&_0x59b2f5[_0x23ebb6(0x161)]&&(_0x59b2f5[_0x23ebb6(0x161)]=_0x59b2f5[_0x23ebb6(0x161)]+_0x59b5a3['idSuffix']),Object[_0x23ebb6(0x1bf)](_0x59b2f5)[_0x23ebb6(0x187)](function(_0x390083){var _0x724f0f=_0x23ebb6,_0x525a14=_0x390083[0x0],_0xdd2dd3=_0x390083[0x1];typeof _0xdd2dd3==_0x724f0f(0x1ab)&&(_0x59b2f5[_0x525a14]=_0xdd2dd3[_0x724f0f(0x1b2)](/url\(#(.*)\)/,_0x724f0f(0x1d7)[_0x724f0f(0x13e)](_0x59b5a3[_0x724f0f(0x18e)],')')));})),_0x59b2f5;}function Re(_0x5bad4a,_0x43b358){var _0x4f3d77=_0x240cab,_0x580520,_0x269b85=_0x43b358[_0x4f3d77(0x139)];return!_0x269b85||_0x269b85['length']===0x0?_0x5bad4a:_0x5bad4a['tag']===_0x4f3d77(0x141)&&(!((_0x580520=_0x5bad4a[_0x4f3d77(0x1b4)])===null||_0x580520===void 0x0)&&_0x580520[_0x4f3d77(0x189)])?l(l({},_0x5bad4a),{'children':_0x5bad4a[_0x4f3d77(0x1b4)][_0x4f3d77(0x17c)](function(_0x1fd14b){var _0x29d301=_0x4f3d77;return typeof _0x1fd14b[_0x29d301(0x1cc)]['id']=='string'&&_0x269b85&&_0x269b85['indexOf'](_0x1fd14b[_0x29d301(0x1cc)]['id'])>-0x1?l(l({},_0x1fd14b),{'attrs':l(l({},_0x1fd14b['attrs']),{'id':_0x1fd14b[_0x29d301(0x1cc)]['id']+_0x43b358[_0x29d301(0x18e)]})}):_0x1fd14b;})}):_0x5bad4a;}function Te(){var _0x29bb74=_0x240cab;return Math[_0x29bb74(0x1b8)]()[_0x29bb74(0x1cf)](0x24)['substring'](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x240cab(0x150),'attrs':{'fill':'none','viewBox':_0x240cab(0x1db),'width':_0x240cab(0x14f),'height':_0x240cab(0x14f)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x240cab(0x176)}},{'tag':_0x240cab(0x169),'attrs':{'fill':_0x240cab(0x128),'d':_0x240cab(0x1d0),'fillRule':_0x240cab(0x1b3),'clipRule':_0x240cab(0x1b3)}}]},Y=_0x2e62e(function(_0x39aa01,_0xb1ccd2){var _0x153184=_0x240cab;return _0x1ef698(W,Object[_0x153184(0x13f)]({},_0x39aa01,{'id':_0x153184(0x1c1),'ref':_0xb1ccd2,'icon':ye}));});Y['displayName']=_0x240cab(0x1d2);const Ae=_0x240cab(0x1aa),$e=_0x240cab(0x194),xe=_0x240cab(0x148),Fe=_0x240cab(0x170),v={'liveShare':Ae,'liveShareStatusOffline':$e,'liveShareDropdown':xe,'liveShareDropdownTitle':Fe};function He(){var _0x4f2f96=_0x240cab;const _0x41c1ae=_0x1834d7(O),_0x362a82=_0x1834d7(_0x269eed),_0x303296=_0x55aaa9(()=>_0x362a82[_0x4f2f96(0x178)](_0x341753[_0x4f2f96(0x191)]),void 0x0,!0x1,[]),[_0x2f2859,_0x24e23f]=_0x374cd9(null),[_0x371037,_0x5ddd7f]=_0x374cd9(d[_0x4f2f96(0x164)]),_0x4d1902=_0x407613(null);_0x437e57(()=>(_0x303296&&_0x41c1ae[_0x4f2f96(0x16f)](_0x303296[_0x4f2f96(0x186)]())[_0x4f2f96(0x167)](_0x4abe1d=>{var _0x4ccc70=_0x4f2f96;_0x24e23f(_0x4abe1d),_0x4d1902[_0x4ccc70(0x199)]=_0x4abe1d[_0x4ccc70(0x15d)]['subscribe'](_0x2a2eed=>{_0x5ddd7f(_0x2a2eed);});}),()=>{var _0x1a488e=_0x4f2f96,_0x1451aa;(_0x1451aa=_0x4d1902[_0x1a488e(0x199)])==null||_0x1451aa[_0x1a488e(0x16e)](),_0x4d1902['current']=null;}),[_0x303296,_0x41c1ae]);const _0x7857e3=_0x371037!==d[_0x4f2f96(0x165)]?[_0x4f2f96(0x190)]:[],_0x7d110c=_0x501145(v['liveShare'],_0x4f2f96(0x14b)+_0x371037);return _0x2f2859?_0x25c141[_0x4f2f96(0x15b)](_0x72c649,{'trigger':_0x7857e3,'overlay':_0x25c141[_0x4f2f96(0x15b)](_0x4f2f96(0x15c),{'className':v[_0x4f2f96(0x1c2)]},_0x25c141[_0x4f2f96(0x15b)](je,{'status':_0x371037,'coordinator':_0x2f2859}))},_0x25c141[_0x4f2f96(0x15b)](_0x4f2f96(0x15c),{'className':_0x7d110c},_0x25c141['createElement'](Y,null))):null;}function je(_0x5af6ce){var _0x44f097=_0x240cab;const {status:_0x3c3ff8,coordinator:_0x5bbc82}=_0x5af6ce;switch(_0x3c3ff8){case d[_0x44f097(0x164)]:return _0x25c141['createElement'](Ue,{'coordinator':_0x5bbc82});case d[_0x44f097(0x143)]:return _0x25c141['createElement'](Ve,{'coordinator':_0x5bbc82});case d[_0x44f097(0x1c3)]:return _0x25c141[_0x44f097(0x15b)](Me,{'coordinator':_0x5bbc82});case d[_0x44f097(0x165)]:return _0x25c141[_0x44f097(0x15b)](We,null);case d[_0x44f097(0x177)]:return _0x25c141[_0x44f097(0x15b)](Ge,{'coordinator':_0x5bbc82});default:return null;}}function Ue(_0x4bcc6c){var _0x4b521b=_0x240cab;return _0x25c141['createElement'](_0x25c141[_0x4b521b(0x1c7)],null,_0x25c141[_0x4b521b(0x15b)](_0x4b521b(0x15c),{'className':v[_0x4b521b(0x134)]},_0x4b521b(0x188)),_0x25c141[_0x4b521b(0x15b)](_0x53e8b1,{'size':'small','type':'default','onClick':()=>_0x4bcc6c[_0x4b521b(0x136)][_0x4b521b(0x16a)]()},'Start'));}function Ve(_0x121f22){var _0x5895d6=_0x240cab;return _0x25c141[_0x5895d6(0x15b)](_0x25c141[_0x5895d6(0x1c7)],null,_0x25c141['createElement'](_0x5895d6(0x15c),{'className':v[_0x5895d6(0x134)]},'You\x27re\x20following\x20the\x20presenter'),_0x25c141[_0x5895d6(0x15b)](_0x53e8b1,{'size':_0x5895d6(0x1ba),'type':_0x5895d6(0x193),'onClick':()=>_0x121f22['coordinator'][_0x5895d6(0x1ce)]()},_0x5895d6(0x174)));}function Me(_0x90088b){var _0x58a081=_0x240cab;return _0x25c141[_0x58a081(0x15b)](_0x25c141[_0x58a081(0x1c7)],null,_0x25c141['createElement'](_0x58a081(0x15c),{'className':v[_0x58a081(0x134)]},_0x58a081(0x13b)),_0x25c141['createElement'](_0x53e8b1,{'size':_0x58a081(0x1ba),'type':_0x58a081(0x179),'onClick':()=>_0x90088b[_0x58a081(0x136)][_0x58a081(0x1ad)]()},_0x58a081(0x175)));}function Ge(_0x206270){var _0x3f7201=_0x240cab;return _0x25c141[_0x3f7201(0x15b)](_0x25c141[_0x3f7201(0x1c7)],null,_0x25c141['createElement'](_0x3f7201(0x15c),{'className':v[_0x3f7201(0x134)]},_0x3f7201(0x14a)),_0x25c141['createElement'](_0x53e8b1,{'size':_0x3f7201(0x1ba),'type':_0x3f7201(0x193),'onClick':()=>_0x206270['coordinator'][_0x3f7201(0x18a)]()},_0x3f7201(0x13a)));}function We(){var _0x4c5381=_0x240cab;return _0x25c141['createElement'](_0x25c141['Fragment'],null,_0x4c5381(0x19c));}var Be=Object['defineProperty'],Ye=Object[_0x240cab(0x1c0)],ze=(_0x88bcd3,_0x19700b,_0x1d79db,_0x497893)=>{var _0x5e70ec=_0x240cab;for(var _0x1ac3a=_0x497893>0x1?void 0x0:_0x497893?Ye(_0x19700b,_0x1d79db):_0x19700b,_0x2d232d=_0x88bcd3[_0x5e70ec(0x189)]-0x1,_0x44b796;_0x2d232d>=0x0;_0x2d232d--)(_0x44b796=_0x88bcd3[_0x2d232d])&&(_0x1ac3a=(_0x497893?_0x44b796(_0x19700b,_0x1d79db,_0x1ac3a):_0x44b796(_0x1ac3a))||_0x1ac3a);return _0x497893&&_0x1ac3a&&Be(_0x19700b,_0x1d79db,_0x1ac3a),_0x1ac3a;},A=(_0x10f734,_0x2f9cc6)=>(_0x1bd401,_0x5a9bbd)=>_0x2f9cc6(_0x1bd401,_0x5a9bbd,_0x10f734);let g=class extends _0x4ca92e{constructor(_0x197968,_0x321bde){var _0x5064f1=_0x240cab;super(),this[_0x5064f1(0x17f)]=_0x197968,this[_0x5064f1(0x160)]=_0x321bde,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x31c78e=_0x240cab;this[_0x31c78e(0x1a4)](this['_uiPartsService'][_0x31c78e(0x18d)](_0x5bc255[_0x31c78e(0x1bc)],()=>_0x20f3da(He,this[_0x31c78e(0x17f)])));}};g=ze([_0x2e3a4b(_0x43d8bb[_0x240cab(0x1af)],g),A(0x0,_0x1e9511(_0x1c816e)),A(0x1,_0x55820f)],g);var z=Object[_0x240cab(0x197)],Ze=Object['getOwnPropertyDescriptor'],Je=(_0x474b28,_0x4b8757,_0x4614cc)=>_0x4b8757 in _0x474b28?z(_0x474b28,_0x4b8757,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4614cc}):_0x474b28[_0x4b8757]=_0x4614cc,qe=(_0x37c7c9,_0x294e60,_0x281f89,_0x4f738e)=>{var _0x1dfa7e=_0x240cab;for(var _0x261839=_0x4f738e>0x1?void 0x0:_0x4f738e?Ze(_0x294e60,_0x281f89):_0x294e60,_0x4b37da=_0x37c7c9[_0x1dfa7e(0x189)]-0x1,_0x9c67de;_0x4b37da>=0x0;_0x4b37da--)(_0x9c67de=_0x37c7c9[_0x4b37da])&&(_0x261839=(_0x4f738e?_0x9c67de(_0x294e60,_0x281f89,_0x261839):_0x9c67de(_0x261839))||_0x261839);return _0x4f738e&&_0x261839&&z(_0x294e60,_0x281f89,_0x261839),_0x261839;},Ke=(_0x3642e9,_0x26dfe8)=>(_0x3a4f41,_0x5886fa)=>_0x26dfe8(_0x3a4f41,_0x5886fa,_0x3642e9),Z=(_0x1ef271,_0x44c616,_0x4ccf4b)=>Je(_0x1ef271,typeof _0x44c616!=_0x240cab(0x138)?_0x44c616+'':_0x44c616,_0x4ccf4b);const Qe='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x43231b{constructor(_0x111c3a,_0x21f731){var _0x1fff8f=_0x240cab;super(),this[_0x1fff8f(0x17f)]=_0x21f731;}[_0x240cab(0x156)](_0x20381e){var _0xe5e331=_0x240cab;[[L],[O],[m],[g]]['forEach'](_0x189ec2=>_0x20381e[_0xe5e331(0x1b1)](_0x189ec2));}};function _0x5aa9(){var _0x462f72=['defineProperty','init','current','idle','parse','You\x27are\x20offline.','has','not-following','colorChannel1','_reporters','_stopFollowing','function','trim','disposeWithMe','dispose','fill','type','LIVESHARE_NEW_HOST','registerSharedOperation','univer-live-share','string','sessionStatus$','startFollowing','asObservable','Rendered','clear','add','replace','evenodd','children','_univerInstanceService','_startPresenting','call','random','LIVESHARE_OPERATION','small','LIVESHARE_TERMINATE','HEADER_MENU','presenter','event$','entries','getOwnPropertyDescriptor','live-share-single','liveShareDropdown','NOT_FOLLOWING','LIVESHARE_FETCH_OPERATIONS','get','memberID','Fragment','162cSuTNs','_liveShareService','use','359750Gzxoek','attrs','createInstance','stopFollowing','toString','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','following','LiveShareSingle','next','_commandService','_beIdle','send','url(#$1','536637pgCkIf','className','apply','0\x200\x2017\x2017','getTypeOfUnitAdded$','prototype','getValue','currentColor','LIVESHARE_REQUEST_HOST','stringify','_commandDisposable','ONLINE','_status$','_stopPresenting','hasOwnProperty','632992DRUEYA','data','_handleOffline','offline','liveShareDropdownTitle','icon','coordinator','_startFollowing','symbol','defIds','Stop\x20presenting','You\x27re\x20not\x20following\x20the\x20presenter','_startLiveShareCoordinator','onCommandExecuted','concat','assign','extend','defs','mutations','FOLLOWING','shouldShareOperation','_configService','_fetchOperations','SAME_OPERATION_SHARE_INTERVAL','univer-live-share-dropdown','presenting','You\x27re\x20presenting\x20the\x20document','live-share-status-','290LFXFOl','_handleNewHost','getOwnPropertySymbols','1em','svg','delete','tag','set','491394XvGJxD','dispose$','onStarting','_sharedOperations','reverse','includes','getTypeOfUnitDisposed$','createElement','div','status$','_status','_handleTerminate','_uiPartsService','xlink:href','_handleOnline','propertyIsEnumerable','IDLE','OFFLINE','pluginName','then','complete','path','tryStartPresenting','getInitialStates','14yzCoqT','from','unsubscribe','getLiveShareCoordinator','univer-live-share-dropdown-title','subscribe','Starting','pipe','Stop\x20following','Start\x20following','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','PRESENTING','getCurrentTypeOfUnit$','text','_handleNewChangeSets','184982ktiWWu','map','params','OPERATION','_injector','requireSession','13380arWYit','executeCommand','getMemberID','_presenter','_unitID','getUnitId','forEach','Present\x20this\x20document','length','stopPresenting','_handleOperation','101869bGXuQd','registerComponent','idSuffix','_init','click','UNIVER_SHEET','_collabSession','default','univer-live-share-status-offline','_entities','_collabSessionService'];_0x5aa9=function(){return _0x462f72;};return _0x5aa9();}Z(b,_0x240cab(0x1a7),_0x341753['UNIVER_SHEET']),Z(b,_0x240cab(0x166),Qe),b=qe([_0x19fa65(_0x27ebae),Ke(0x1,_0x1e9511(_0x1c816e))],b);export{L as LiveShareService,b as UniverLiveSharePlugin};
@@ -1,6 +1,5 @@
1
- import { Disposable } from '@univerjs/core';
1
+ import { Disposable, Injector } from '@univerjs/core';
2
2
  import { IUIPartsService } from '@univerjs/ui';
3
- import { Injector } from '@wendellhu/redi';
4
3
 
5
4
  export declare class DesktopLiveShareController extends Disposable {
6
5
  private readonly _injector;
@@ -1,6 +1,5 @@
1
- import { ICommandService, IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
1
+ import { ICommandService, IConfigService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
2
  import { CollaborationSession, CollaborationSessionService } from '@univerjs-pro/collaboration-client';
3
- import { Injector } from '@wendellhu/redi';
4
3
  import { LiveShareService } from '../../services/live-share.service';
5
4
 
6
5
  /**
@@ -1,5 +1,4 @@
1
- import { Plugin, UniverInstanceType } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
2
 
4
3
  export declare class UniverLiveSharePlugin extends Plugin {
5
4
  protected _injector: Injector;
@@ -1,5 +1,4 @@
1
- import { IOperationInfo, Disposable } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable, IOperationInfo, Disposable } from '@univerjs/core';
3
2
 
4
3
  export declare class LiveShareService extends Disposable {
5
4
  private readonly _sharedOperations;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5b9a9b,_0x526177){var _0x5eec1d=_0x2f12,_0xd1c071=_0x5b9a9b();while(!![]){try{var _0x15d7b6=-parseInt(_0x5eec1d(0x202))/0x1*(-parseInt(_0x5eec1d(0x20b))/0x2)+-parseInt(_0x5eec1d(0x1ce))/0x3*(-parseInt(_0x5eec1d(0x276))/0x4)+parseInt(_0x5eec1d(0x1bb))/0x5+-parseInt(_0x5eec1d(0x1be))/0x6+parseInt(_0x5eec1d(0x234))/0x7*(parseInt(_0x5eec1d(0x217))/0x8)+-parseInt(_0x5eec1d(0x1ad))/0x9*(parseInt(_0x5eec1d(0x214))/0xa)+parseInt(_0x5eec1d(0x200))/0xb;if(_0x15d7b6===_0x526177)break;else _0xd1c071['push'](_0xd1c071['shift']());}catch(_0x1167f2){_0xd1c071['push'](_0xd1c071['shift']());}}}(_0x239a,0x3d6c0),function(_0x4aa4bb,_0x19cf32){var _0x15b225=_0x2f12;typeof exports=='object'&&typeof module<'u'?_0x19cf32(exports,require('@univerjs/core'),require(_0x15b225(0x25f)),require(_0x15b225(0x256)),require(_0x15b225(0x216)),require('@univerjs/sheets-ui'),require(_0x15b225(0x250)),require('rxjs'),require(_0x15b225(0x235)),require(_0x15b225(0x1c1)),require(_0x15b225(0x252)),require(_0x15b225(0x1fb)),require(_0x15b225(0x1a1)),require(_0x15b225(0x246))):typeof define==_0x15b225(0x1e8)&&define[_0x15b225(0x1cc)]?define([_0x15b225(0x1bc),_0x15b225(0x26d),_0x15b225(0x25f),_0x15b225(0x256),_0x15b225(0x216),_0x15b225(0x1ca),_0x15b225(0x250),_0x15b225(0x236),_0x15b225(0x235),_0x15b225(0x1c1),_0x15b225(0x252),_0x15b225(0x1fb),_0x15b225(0x1a1),_0x15b225(0x246)],_0x19cf32):(_0x4aa4bb=typeof globalThis<'u'?globalThis:_0x4aa4bb||self,_0x19cf32(_0x4aa4bb[_0x15b225(0x21b)]={},_0x4aa4bb['UniverCore'],_0x4aa4bb[_0x15b225(0x25f)],_0x4aa4bb[_0x15b225(0x1fe)],_0x4aa4bb[_0x15b225(0x282)],_0x4aa4bb[_0x15b225(0x277)],_0x4aa4bb[_0x15b225(0x226)],_0x4aa4bb['rxjs'],_0x4aa4bb['rxjs'][_0x15b225(0x20a)],_0x4aa4bb[_0x15b225(0x21d)],_0x4aa4bb[_0x15b225(0x252)],_0x4aa4bb['UniverDesign'],_0x4aa4bb['clsx'],_0x4aa4bb[_0x15b225(0x21f)]));}(this,function(_0x5b720f,_0x1d6b04,_0x23cc4d,_0x2f3d4c,_0x30e5ad,_0x594494,_0x33e017,_0x5f26f6,_0x9c89c1,_0x1b7323,_0x504c4b,_0x34901c,_0x2e2faa,_0x5679ca){'use strict';var _0x13aaf9=_0x2f12;var _0x2faa64=Object['defineProperty'],_0x29d898=(_0x477c82,_0x1ba2a1,_0x2fd8df)=>_0x1ba2a1 in _0x477c82?_0x2faa64(_0x477c82,_0x1ba2a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fd8df}):_0x477c82[_0x1ba2a1]=_0x2fd8df,_0x13376a=(_0x21f9d9,_0x3f4165,_0x1824c7)=>_0x29d898(_0x21f9d9,typeof _0x3f4165!='symbol'?_0x3f4165+'':_0x3f4165,_0x1824c7);class _0x41f038 extends _0x1d6b04[_0x13aaf9(0x208)]{constructor(){var _0x3314c4=_0x13aaf9;super(...arguments),_0x13376a(this,_0x3314c4(0x1f2),new Set()),_0x13376a(this,_0x3314c4(0x20f),new Set());}[_0x13aaf9(0x269)](_0x25ce33){var _0x18c216=_0x13aaf9;return this['_sharedOperations'][_0x18c216(0x228)](_0x25ce33),_0x1d6b04['toDisposable'](()=>this[_0x18c216(0x1f2)][_0x18c216(0x1fd)](_0x25ce33));}['registerInitialStateReporter'](_0x1c33c7){var _0x5e48f3=_0x13aaf9;return this[_0x5e48f3(0x20f)]['add'](_0x1c33c7),_0x1d6b04[_0x5e48f3(0x1e0)](()=>this[_0x5e48f3(0x20f)]['delete'](_0x1c33c7));}['shouldShareOperation'](_0x257136){var _0x31ef28=_0x13aaf9;return this[_0x31ef28(0x1f2)][_0x31ef28(0x1d8)](_0x257136);}[_0x13aaf9(0x245)](_0x3e4667){var _0x11bffe=_0x13aaf9;return Array[_0x11bffe(0x1b7)](this[_0x11bffe(0x20f)])[_0x11bffe(0x1dc)](_0x5d9a6a=>_0x5d9a6a(_0x3e4667));}}var _0x39a925=Object[_0x13aaf9(0x254)],_0x2c1269=Object['getOwnPropertyDescriptor'],_0x4fa59c=(_0x150e43,_0xdf3e68,_0x59bc75,_0x25a247)=>{var _0x584a52=_0x13aaf9;for(var _0x390e17=_0x25a247>0x1?void 0x0:_0x25a247?_0x2c1269(_0xdf3e68,_0x59bc75):_0xdf3e68,_0x997e3d=_0x150e43[_0x584a52(0x264)]-0x1,_0xa388e0;_0x997e3d>=0x0;_0x997e3d--)(_0xa388e0=_0x150e43[_0x997e3d])&&(_0x390e17=(_0x25a247?_0xa388e0(_0xdf3e68,_0x59bc75,_0x390e17):_0xa388e0(_0x390e17))||_0x390e17);return _0x25a247&&_0x390e17&&_0x39a925(_0xdf3e68,_0x59bc75,_0x390e17),_0x390e17;},_0x2abb51=(_0x2bf514,_0x3c8532)=>(_0x38c39a,_0x2801b0)=>_0x3c8532(_0x38c39a,_0x2801b0,_0x2bf514);let _0x5ea819=class extends _0x1d6b04['Disposable']{constructor(_0xfef0a9){super(),this['_liveShareService']=_0xfef0a9,this['_init']();}[_0x13aaf9(0x237)](){var _0x3d8618=_0x13aaf9;[_0x594494[_0x3d8618(0x271)]['id'],_0x594494[_0x3d8618(0x1ba)]['id'],_0x30e5ad[_0x3d8618(0x1e2)]['id']][_0x3d8618(0x1ea)](_0x4d1f1a=>{var _0x1edb8d=_0x3d8618;this[_0x1edb8d(0x19e)](this[_0x1edb8d(0x19c)][_0x1edb8d(0x269)](_0x4d1f1a));});}};_0x5ea819=_0x4fa59c([_0x1d6b04['OnLifecycle'](_0x1d6b04[_0x13aaf9(0x21e)][_0x13aaf9(0x249)],_0x5ea819),_0x2abb51(0x0,_0x23cc4d[_0x13aaf9(0x248)](_0x41f038))],_0x5ea819);var _0x20852a=Object[_0x13aaf9(0x254)],_0x50af4d=Object[_0x13aaf9(0x1a2)],_0x1a00e1=(_0x2be443,_0x4f0f41,_0x56de62,_0x3e3789)=>{var _0x501110=_0x13aaf9;for(var _0x57cf48=_0x3e3789>0x1?void 0x0:_0x3e3789?_0x50af4d(_0x4f0f41,_0x56de62):_0x4f0f41,_0x21aca0=_0x2be443[_0x501110(0x264)]-0x1,_0x142969;_0x21aca0>=0x0;_0x21aca0--)(_0x142969=_0x2be443[_0x21aca0])&&(_0x57cf48=(_0x3e3789?_0x142969(_0x4f0f41,_0x56de62,_0x57cf48):_0x142969(_0x57cf48))||_0x57cf48);return _0x3e3789&&_0x57cf48&&_0x20852a(_0x4f0f41,_0x56de62,_0x57cf48),_0x57cf48;},_0x3c78be=(_0x5f14a8,_0x1fdf62)=>(_0x745e05,_0x53f15b)=>_0x1fdf62(_0x745e05,_0x53f15b,_0x5f14a8);let _0x51c15e=class extends _0x1d6b04[_0x13aaf9(0x22c)]{constructor(_0x5a2a31,_0x486fc1,_0x5c6ffb){var _0x2b00e4=_0x13aaf9;super(),_0x13376a(this,_0x2b00e4(0x27a),new Map()),(this[_0x2b00e4(0x221)]=_0x5a2a31,this[_0x2b00e4(0x260)]=_0x486fc1,this['_collabSessionService']=_0x5c6ffb,this['_init']());}async['getLiveShareCoordinator'](_0x1dc6b0){var _0x7f7a75=_0x13aaf9;return this[_0x7f7a75(0x27a)][_0x7f7a75(0x1d8)](_0x1dc6b0)||await this[_0x7f7a75(0x1ff)](_0x1dc6b0),this[_0x7f7a75(0x27a)][_0x7f7a75(0x1c2)](_0x1dc6b0);}[_0x13aaf9(0x237)](){var _0x5c63e1=_0x13aaf9;this['_univerInstanceService'][_0x5c63e1(0x22a)](_0x1d6b04[_0x5c63e1(0x1d7)][_0x5c63e1(0x213)])[_0x5c63e1(0x267)](_0x9c89c1[_0x5c63e1(0x272)](this['dispose$']))[_0x5c63e1(0x1b6)](async _0x533da9=>{var _0x23705b=_0x5c63e1;const _0x54b49b=_0x533da9[_0x23705b(0x1fa)]();this[_0x23705b(0x27a)][_0x23705b(0x1d8)](_0x54b49b)||this[_0x23705b(0x1ff)](_0x54b49b);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1d6b04['UniverInstanceType'][_0x5c63e1(0x213)])[_0x5c63e1(0x267)](_0x9c89c1[_0x5c63e1(0x272)](this[_0x5c63e1(0x253)]))[_0x5c63e1(0x1b6)](_0x532323=>{var _0x20385e=_0x5c63e1;const _0x2f23ec=_0x532323[_0x20385e(0x1fa)](),_0x2874e1=this[_0x20385e(0x27a)][_0x20385e(0x1c2)](_0x2f23ec);_0x2874e1==null||_0x2874e1[_0x20385e(0x1fc)]();});}async[_0x13aaf9(0x1ff)](_0x1683df){var _0x22bc12=_0x13aaf9;const _0xb8e902=await this[_0x22bc12(0x206)]['requireSession'](_0x1683df),_0x4b4d87=this['_injector']['createInstance'](_0x31b281,_0x1683df,_0xb8e902);return _0x4b4d87[_0x22bc12(0x1e4)](),this[_0x22bc12(0x27a)][_0x22bc12(0x287)](_0x1683df,_0x4b4d87),_0x4b4d87;}};_0x51c15e=_0x1a00e1([_0x3c78be(0x0,_0x1d6b04[_0x13aaf9(0x1ae)]),_0x3c78be(0x1,_0x23cc4d[_0x13aaf9(0x248)](_0x23cc4d[_0x13aaf9(0x1b2)])),_0x3c78be(0x2,_0x23cc4d[_0x13aaf9(0x248)](_0x2f3d4c['CollaborationSessionService']))],_0x51c15e);var _0x591725=(_0x23c73d=>(_0x23c73d['OFFLINE']=_0x13aaf9(0x247),_0x23c73d[_0x13aaf9(0x1c4)]=_0x13aaf9(0x1cb),_0x23c73d[_0x13aaf9(0x27d)]=_0x13aaf9(0x23f),_0x23c73d['NOT_FOLLOWING']=_0x13aaf9(0x1bf),_0x23c73d[_0x13aaf9(0x283)]=_0x13aaf9(0x23e),_0x23c73d))(_0x591725||{});const _0x3cc24e='SAME_OPERATION_SHARE_INTERVAL',_0x4b8760=0xc8;let _0x31b281=class extends _0x1d6b04[_0x13aaf9(0x22c)]{constructor(_0x56067d,_0x580da0,_0x317588,_0x82758e,_0x93cf61){var _0x1626e8=_0x13aaf9;super(),_0x13376a(this,_0x1626e8(0x222),new _0x5f26f6[(_0x1626e8(0x223))](_0x1626e8(0x1cb))),_0x13376a(this,_0x1626e8(0x1d1),this[_0x1626e8(0x222)][_0x1626e8(0x1f9)]()),_0x13376a(this,_0x1626e8(0x237),!0x1),_0x13376a(this,_0x1626e8(0x1a5),null),_0x13376a(this,_0x1626e8(0x255),null),(this[_0x1626e8(0x1d4)]=_0x56067d,this['_collabSession']=_0x580da0,this[_0x1626e8(0x1e3)]=_0x317588,this[_0x1626e8(0x19c)]=_0x82758e,this['_commandService']=_0x93cf61);}get[_0x13aaf9(0x24e)](){var _0x33ae36=_0x13aaf9;return this[_0x33ae36(0x222)][_0x33ae36(0x23d)]();}['dispose'](){var _0x29f200=_0x13aaf9,_0x47d0f5;(_0x47d0f5=this[_0x29f200(0x1a5)])==null||_0x47d0f5[_0x29f200(0x1fc)](),this[_0x29f200(0x222)][_0x29f200(0x244)](_0x29f200(0x1cb)),this['_status$'][_0x29f200(0x278)]();}[_0x13aaf9(0x1e4)](){var _0x23be37=_0x13aaf9;this[_0x23be37(0x237)]||(this[_0x23be37(0x237)]=!0x0,this[_0x23be37(0x25a)][_0x23be37(0x1b4)][_0x23be37(0x267)](_0x9c89c1[_0x23be37(0x272)](this['dispose$']))[_0x23be37(0x1b6)](_0x524920=>{var _0x102a56=_0x23be37;switch(_0x524920){case _0x2f3d4c[_0x102a56(0x243)][_0x102a56(0x218)]:this[_0x102a56(0x1cf)]();break;case _0x2f3d4c[_0x102a56(0x243)][_0x102a56(0x22d)]:this['_handleOnline']();break;}}),this[_0x23be37(0x25a)][_0x23be37(0x1d2)]['pipe'](_0x9c89c1[_0x23be37(0x272)](this['dispose$']))['subscribe'](_0x4caf3d=>{var _0x587223=_0x23be37;const {eventID:_0x2e2394}=_0x4caf3d;switch(_0x2e2394){case _0x33e017[_0x587223(0x229)]['LIVESHARE_NEW_HOST']:this[_0x587223(0x270)](_0x4caf3d);break;case _0x33e017[_0x587223(0x229)][_0x587223(0x23c)]:this[_0x587223(0x281)](_0x4caf3d);break;case _0x33e017[_0x587223(0x229)][_0x587223(0x1e1)]:this['_handleTerminate']();break;case _0x33e017[_0x587223(0x229)][_0x587223(0x205)]:this['_handleNewChangeSets'](_0x4caf3d);break;}}));}['tryStartPresenting'](){var _0x35edd9=_0x13aaf9;this[_0x35edd9(0x25a)]['send']({'eventID':_0x33e017[_0x35edd9(0x229)][_0x35edd9(0x240)],'data':{'unitID':this['_unitID'],'userID':this[_0x35edd9(0x25a)][_0x35edd9(0x230)]()}},this[_0x35edd9(0x1d4)]);}[_0x13aaf9(0x211)](){var _0x37c216=_0x13aaf9;this[_0x37c216(0x24e)]===_0x37c216(0x23e)&&(this[_0x37c216(0x222)][_0x37c216(0x244)](_0x37c216(0x1cb)),this[_0x37c216(0x25a)][_0x37c216(0x1dd)]({'eventID':_0x33e017[_0x37c216(0x229)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x37c216(0x1d4)]}},this['_unitID']));}[_0x13aaf9(0x24a)](){var _0x1833cf=_0x13aaf9;this['_status']===_0x1833cf(0x1bf)&&(this[_0x1833cf(0x222)]['next'](_0x1833cf(0x23f)),this[_0x1833cf(0x1b1)]());}[_0x13aaf9(0x1a8)](){var _0x2d5879=_0x13aaf9;this[_0x2d5879(0x24e)]==='following'&&this[_0x2d5879(0x1b0)]();}[_0x13aaf9(0x270)](_0x1fc03f){var _0xfc8505=_0x13aaf9;const {presenter:_0x18fce3}=_0x1fc03f[_0xfc8505(0x27e)],_0x1c7c00=this[_0xfc8505(0x25a)][_0xfc8505(0x230)]();this['_presenter']=_0x18fce3,_0x18fce3===_0x1c7c00?(this[_0xfc8505(0x1b0)](),this[_0xfc8505(0x1aa)]()):this[_0xfc8505(0x24e)]!==_0xfc8505(0x1bf)&&(this[_0xfc8505(0x1a3)](),this[_0xfc8505(0x1b1)]());}[_0x13aaf9(0x257)](){var _0x187002=_0x13aaf9;const _0x316bd9={'eventID':_0x33e017[_0x187002(0x229)][_0x187002(0x207)]};this['_collabSession']['send'](_0x316bd9,this[_0x187002(0x1d4)]);}[_0x13aaf9(0x25d)](){var _0x25f348=_0x13aaf9;this[_0x25f348(0x255)]=null,this[_0x25f348(0x24e)]!=='presenting'&&this['_beIdle']();}[_0x13aaf9(0x21a)](_0x1fca78){var _0x534a02=_0x13aaf9;if(this['_status']===_0x534a02(0x23f)&&this[_0x534a02(0x255)]===_0x1fca78['data'][_0x534a02(0x227)]){const _0x265f32=_0x33e017[_0x534a02(0x1a6)](_0x1fca78[_0x534a02(0x27e)])[_0x534a02(0x1d5)][_0x534a02(0x1b5)]()[_0x534a02(0x1c0)](_0x620340=>_0x620340['id']===_0x30e5ad[_0x534a02(0x20c)]['id']);if(_0x265f32){const _0x564560=_0x265f32['params'][_0x534a02(0x1a4)],_0x35bfad=_0x265f32['params'][_0x534a02(0x1b9)]['id'];setTimeout(()=>{var _0x554ca0=_0x534a02;this[_0x554ca0(0x1ee)][_0x554ca0(0x233)](_0x30e5ad[_0x554ca0(0x1e2)]['id'],{'unitId':_0x564560,'subUnitId':_0x35bfad},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x138ea6=_0x13aaf9;this['_status$'][_0x138ea6(0x244)](_0x138ea6(0x23e));const _0x7f8f54=new Map(),_0x1939ed=this[_0x138ea6(0x1a5)]=new _0x1d6b04[(_0x138ea6(0x20d))]();_0x1939ed[_0x138ea6(0x228)](_0x1d6b04['toDisposable'](()=>{var _0x1a8875=_0x138ea6;_0x7f8f54[_0x1a8875(0x1ea)](_0x1d5d8a=>_0x1d5d8a[_0x1a8875(0x278)]()),_0x7f8f54[_0x1a8875(0x239)]();})),_0x1939ed['add'](this[_0x138ea6(0x1ee)][_0x138ea6(0x209)](_0x1940ff=>{var _0x487d70=_0x138ea6,_0x203ef0;if(_0x1940ff[_0x487d70(0x1de)]!==_0x1d6b04[_0x487d70(0x22e)][_0x487d70(0x28a)]||!this[_0x487d70(0x19c)]['shouldShareOperation'](_0x1940ff['id']))return;const {id:_0x38dd76}=_0x1940ff;let _0x200ccf;_0x7f8f54[_0x487d70(0x1d8)](_0x38dd76)?_0x200ccf=_0x7f8f54['get'](_0x38dd76):(_0x200ccf=new _0x5f26f6[(_0x487d70(0x1c9))](),_0x7f8f54[_0x487d70(0x287)](_0x38dd76,_0x200ccf),_0x200ccf[_0x487d70(0x267)](_0x9c89c1['throttleTime']((_0x203ef0=this[_0x487d70(0x1e3)][_0x487d70(0x1ed)](_0x3cc24e))!=null?_0x203ef0:_0x4b8760,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x487d70(0x1b6)](_0x49acc0=>{var _0x4982b2=_0x487d70;this[_0x4982b2(0x25a)][_0x4982b2(0x1dd)]({'eventID':_0x33e017[_0x4982b2(0x229)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4982b2(0x1d4)],'operations':{[_0x49acc0['id']]:{'id':_0x49acc0['id'],'params':JSON[_0x4982b2(0x242)](_0x49acc0[_0x4982b2(0x1f5)])}}}},this[_0x4982b2(0x1d4)]);})),_0x200ccf[_0x487d70(0x244)](_0x1940ff);})),this[_0x138ea6(0x19c)]['getInitialStates'](this[_0x138ea6(0x1d4)])[_0x138ea6(0x1ea)](_0x3d827e=>this['_collabSession'][_0x138ea6(0x1dd)]({'eventID':_0x33e017[_0x138ea6(0x229)][_0x138ea6(0x23c)],'data':{'unitID':this[_0x138ea6(0x1d4)],'operations':{[_0x3d827e['id']]:{'id':_0x3d827e['id'],'params':JSON['stringify'](_0x3d827e[_0x138ea6(0x1f5)])}}}},this[_0x138ea6(0x1d4)]));}[_0x13aaf9(0x1a3)](){var _0x513f56=_0x13aaf9,_0x51638b;this[_0x513f56(0x222)][_0x513f56(0x244)](_0x513f56(0x1cb)),(_0x51638b=this[_0x513f56(0x1a5)])==null||_0x51638b['dispose'](),this['_commandDisposable']=null;}[_0x13aaf9(0x1b1)](){var _0x31b7c3=_0x13aaf9,_0x179032;(_0x179032=this['_commandDisposable'])==null||_0x179032[_0x31b7c3(0x1fc)](),this['_status$'][_0x31b7c3(0x244)]('following');}[_0x13aaf9(0x1ab)](){var _0x2040f2=_0x13aaf9,_0x3e62b1;this[_0x2040f2(0x222)][_0x2040f2(0x244)](_0x2040f2(0x1cb)),(_0x3e62b1=this[_0x2040f2(0x1a5)])==null||_0x3e62b1[_0x2040f2(0x1fc)](),this[_0x2040f2(0x1a5)]=null;}[_0x13aaf9(0x1b0)](){var _0xaab992=_0x13aaf9,_0x1f1af0;this['_status$']['next'](_0xaab992(0x1bf)),(_0x1f1af0=this[_0xaab992(0x1a5)])==null||_0x1f1af0[_0xaab992(0x1fc)]();}[_0x13aaf9(0x281)](_0x1a6110){var _0x144f57=_0x13aaf9;if([_0x144f57(0x23e),_0x144f57(0x1bf),_0x144f57(0x247)][_0x144f57(0x225)](this['_status'])||!_0x1a6110[_0x144f57(0x27e)]['presenter']||_0x1a6110[_0x144f57(0x27e)][_0x144f57(0x280)]===this['_collabSession'][_0x144f57(0x230)]())return;this[_0x144f57(0x24e)]===_0x144f57(0x1cb)&&this[_0x144f57(0x1b1)]();const _0x43e8cb=_0x1a6110['data']['operations'];Object['values'](_0x43e8cb)[_0x144f57(0x1ea)](_0xbb610=>{var _0x3ea5b8=_0x144f57;this['_commandService'][_0x3ea5b8(0x233)](_0xbb610['id'],_0xbb610[_0x3ea5b8(0x1f5)]?JSON[_0x3ea5b8(0x251)](_0xbb610['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x41a3dc=_0x13aaf9,_0x403085;this[_0x41a3dc(0x222)][_0x41a3dc(0x244)](_0x41a3dc(0x247)),(_0x403085=this[_0x41a3dc(0x1a5)])==null||_0x403085[_0x41a3dc(0x1fc)]();}[_0x13aaf9(0x26b)](){var _0x1643f1=_0x13aaf9;this[_0x1643f1(0x222)]['next'](_0x1643f1(0x1cb)),this['_fetchOperations']();}};_0x31b281=_0x1a00e1([_0x3c78be(0x2,_0x1d6b04['IConfigService']),_0x3c78be(0x3,_0x23cc4d[_0x13aaf9(0x248)](_0x41f038)),_0x3c78be(0x4,_0x1d6b04['ICommandService'])],_0x31b281);var _0x2e4963=function(){var _0x26b7af=_0x13aaf9;return _0x2e4963=Object[_0x26b7af(0x1c6)]||function(_0x4d71d8){var _0x16d4e4=_0x26b7af;for(var _0x73cc3a,_0x5a766b=0x1,_0x5c5c49=arguments[_0x16d4e4(0x264)];_0x5a766b<_0x5c5c49;_0x5a766b++){_0x73cc3a=arguments[_0x5a766b];for(var _0xeaa386 in _0x73cc3a)Object[_0x16d4e4(0x1d0)][_0x16d4e4(0x274)][_0x16d4e4(0x1df)](_0x73cc3a,_0xeaa386)&&(_0x4d71d8[_0xeaa386]=_0x73cc3a[_0xeaa386]);}return _0x4d71d8;},_0x2e4963[_0x26b7af(0x26f)](this,arguments);},_0xcf943=function(_0xe1e18f,_0x3516b4){var _0x3b25cd=_0x13aaf9,_0x202eed={};for(var _0x117f4f in _0xe1e18f)Object[_0x3b25cd(0x1d0)][_0x3b25cd(0x274)][_0x3b25cd(0x1df)](_0xe1e18f,_0x117f4f)&&_0x3516b4[_0x3b25cd(0x1bd)](_0x117f4f)<0x0&&(_0x202eed[_0x117f4f]=_0xe1e18f[_0x117f4f]);if(_0xe1e18f!=null&&typeof Object[_0x3b25cd(0x1c7)]==_0x3b25cd(0x1e8)){for(var _0x2d2fcc=0x0,_0x117f4f=Object['getOwnPropertySymbols'](_0xe1e18f);_0x2d2fcc<_0x117f4f[_0x3b25cd(0x264)];_0x2d2fcc++)_0x3516b4['indexOf'](_0x117f4f[_0x2d2fcc])<0x0&&Object[_0x3b25cd(0x1d0)]['propertyIsEnumerable']['call'](_0xe1e18f,_0x117f4f[_0x2d2fcc])&&(_0x202eed[_0x117f4f[_0x2d2fcc]]=_0xe1e18f[_0x117f4f[_0x2d2fcc]]);}return _0x202eed;},_0x466e66=_0x5679ca[_0x13aaf9(0x26c)](function(_0x11756e,_0x264c3d){var _0x523f8c=_0x13aaf9,_0x1b133f=_0x11756e[_0x523f8c(0x266)],_0x19c33b=_0x11756e['id'],_0x5e9278=_0x11756e[_0x523f8c(0x27b)],_0x3297e1=_0x11756e[_0x523f8c(0x1ec)],_0x3db7e7=_0xcf943(_0x11756e,['icon','id',_0x523f8c(0x27b),'extend']),_0x545db0=_0x523f8c(0x24c)['concat'](_0x19c33b,'\x20')['concat'](_0x5e9278||'')['trim'](),_0x5dd586=_0x5679ca[_0x523f8c(0x27f)]('_'[_0x523f8c(0x219)](_0xb9a815()));return _0x3c124d(_0x1b133f,''[_0x523f8c(0x219)](_0x19c33b),{'defIds':_0x1b133f['defIds'],'idSuffix':_0x5dd586['current']},_0x2e4963({'ref':_0x264c3d,'className':_0x545db0},_0x3db7e7),_0x3297e1);});function _0x3c124d(_0x250b44,_0x1f15c8,_0x13159c,_0x5f0fbe,_0xc3f808){var _0x3b3743=_0x13aaf9;return _0x5679ca[_0x3b3743(0x265)](_0x250b44['tag'],_0x2e4963(_0x2e4963({'key':_0x1f15c8},_0x36f723(_0x250b44,_0x13159c,_0xc3f808)),_0x5f0fbe),(_0xdd8874(_0x250b44,_0x13159c)[_0x3b3743(0x1b3)]||[])[_0x3b3743(0x1dc)](function(_0x4200bd,_0x8e863f){var _0x3ce545=_0x3b3743;return _0x3c124d(_0x4200bd,''[_0x3ce545(0x219)](_0x1f15c8,'-')[_0x3ce545(0x219)](_0x250b44[_0x3ce545(0x1c8)],'-')[_0x3ce545(0x219)](_0x8e863f),_0x13159c,void 0x0,_0xc3f808);}));}function _0x36f723(_0xfcce84,_0x34b660,_0x154562){var _0x3e4fbb=_0x13aaf9,_0x209844=_0x2e4963({},_0xfcce84['attrs']);_0x154562!=null&&_0x154562[_0x3e4fbb(0x201)]&&_0x209844[_0x3e4fbb(0x241)]===_0x3e4fbb(0x201)&&(_0x209844[_0x3e4fbb(0x241)]=_0x154562[_0x3e4fbb(0x201)]);var _0x2fb827=_0x34b660['defIds'];return!_0x2fb827||_0x2fb827[_0x3e4fbb(0x264)]===0x0||(_0xfcce84[_0x3e4fbb(0x1c8)]===_0x3e4fbb(0x204)&&_0x209844[_0x3e4fbb(0x1ac)]&&(_0x209844[_0x3e4fbb(0x1ac)]=_0x209844[_0x3e4fbb(0x1ac)]+_0x34b660[_0x3e4fbb(0x203)]),Object[_0x3e4fbb(0x1f3)](_0x209844)[_0x3e4fbb(0x1ea)](function(_0x552a99){var _0x89f928=_0x3e4fbb,_0x1cfb81=_0x552a99[0x0],_0x1c0047=_0x552a99[0x1];typeof _0x1c0047==_0x89f928(0x25b)&&(_0x209844[_0x1cfb81]=_0x1c0047['replace'](/url\(#(.*)\)/,_0x89f928(0x1a9)[_0x89f928(0x219)](_0x34b660[_0x89f928(0x203)],')')));})),_0x209844;}function _0xdd8874(_0x483475,_0x34370c){var _0x74ebee=_0x13aaf9,_0x59e9d1,_0x43006f=_0x34370c[_0x74ebee(0x1f8)];return!_0x43006f||_0x43006f[_0x74ebee(0x264)]===0x0?_0x483475:_0x483475[_0x74ebee(0x1c8)]===_0x74ebee(0x1a0)&&(!((_0x59e9d1=_0x483475[_0x74ebee(0x1b3)])===null||_0x59e9d1===void 0x0)&&_0x59e9d1[_0x74ebee(0x264)])?_0x2e4963(_0x2e4963({},_0x483475),{'children':_0x483475[_0x74ebee(0x1b3)][_0x74ebee(0x1dc)](function(_0x587f7f){var _0x59506e=_0x74ebee;return typeof _0x587f7f[_0x59506e(0x262)]['id']==_0x59506e(0x25b)&&_0x43006f&&_0x43006f[_0x59506e(0x1bd)](_0x587f7f['attrs']['id'])>-0x1?_0x2e4963(_0x2e4963({},_0x587f7f),{'attrs':_0x2e4963(_0x2e4963({},_0x587f7f['attrs']),{'id':_0x587f7f[_0x59506e(0x262)]['id']+_0x34370c[_0x59506e(0x203)]})}):_0x587f7f;})}):_0x483475;}function _0xb9a815(){var _0xaf771d=_0x13aaf9;return Math[_0xaf771d(0x24f)]()[_0xaf771d(0x1e6)](0x24)[_0xaf771d(0x22f)](0x2,0x8);}_0x466e66[_0x13aaf9(0x26e)]=_0x13aaf9(0x289);var _0x555d1c={'tag':_0x13aaf9(0x1f4),'attrs':{'fill':_0x13aaf9(0x1d3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x13aaf9(0x25e),'attrs':{'fill':_0x13aaf9(0x27c),'d':_0x13aaf9(0x25c)}},{'tag':_0x13aaf9(0x25e),'attrs':{'fill':_0x13aaf9(0x27c),'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':_0x13aaf9(0x284),'clipRule':_0x13aaf9(0x284)}}]},_0x174cf2=_0x5679ca['forwardRef'](function(_0x4276e6,_0x30eb6c){var _0x35a62f=_0x13aaf9;return _0x5679ca[_0x35a62f(0x265)](_0x466e66,Object['assign']({},_0x4276e6,{'id':_0x35a62f(0x1c5),'ref':_0x30eb6c,'icon':_0x555d1c}));});_0x174cf2[_0x13aaf9(0x26e)]=_0x13aaf9(0x273);const _0x350221={'liveShare':_0x13aaf9(0x238),'liveShareStatusOffline':_0x13aaf9(0x19f),'liveShareDropdown':_0x13aaf9(0x212),'liveShareDropdownTitle':_0x13aaf9(0x1cd)};function _0x34bb9f(){var _0x402eb6=_0x13aaf9;const _0x375f65=_0x504c4b[_0x402eb6(0x288)](_0x51c15e),_0x2f70c3=_0x504c4b[_0x402eb6(0x288)](_0x1d6b04[_0x402eb6(0x1ae)]),_0x704a3e=_0x1b7323[_0x402eb6(0x22b)](()=>_0x2f70c3[_0x402eb6(0x1da)](_0x1d6b04[_0x402eb6(0x1d7)][_0x402eb6(0x213)]),void 0x0,!0x1,[]),[_0x96fb1e,_0x48a6ca]=_0x5679ca[_0x402eb6(0x261)](null),[_0x36fafe,_0x496447]=_0x5679ca['useState'](_0x591725['IDLE']),_0x558972=_0x5679ca[_0x402eb6(0x27f)](null);_0x5679ca[_0x402eb6(0x1eb)](()=>(_0x704a3e&&_0x375f65[_0x402eb6(0x1f1)](_0x704a3e[_0x402eb6(0x1fa)]())[_0x402eb6(0x23a)](_0x44b1b0=>{var _0x4163ce=_0x402eb6;_0x48a6ca(_0x44b1b0),_0x558972['current']=_0x44b1b0[_0x4163ce(0x1d1)][_0x4163ce(0x1b6)](_0x24cd00=>{_0x496447(_0x24cd00);});}),()=>{var _0x1d4d55=_0x402eb6,_0x37c026;(_0x37c026=_0x558972[_0x1d4d55(0x1e7)])==null||_0x37c026[_0x1d4d55(0x1e5)](),_0x558972[_0x1d4d55(0x1e7)]=null;}),[_0x704a3e,_0x375f65]);const _0x637f76=_0x36fafe!==_0x591725[_0x402eb6(0x218)]?['click']:[],_0x3d6289=_0x2e2faa(_0x350221['liveShare'],'live-share-status-'+_0x36fafe);return _0x96fb1e?_0x5679ca[_0x402eb6(0x265)](_0x34901c[_0x402eb6(0x1f0)],{'trigger':_0x637f76,'overlay':_0x5679ca[_0x402eb6(0x265)]('div',{'className':_0x350221[_0x402eb6(0x26a)]},_0x5679ca[_0x402eb6(0x265)](_0x30ddc5,{'status':_0x36fafe,'coordinator':_0x96fb1e}))},_0x5679ca[_0x402eb6(0x265)](_0x402eb6(0x286),{'className':_0x3d6289},_0x5679ca[_0x402eb6(0x265)](_0x174cf2,null))):null;}function _0x30ddc5(_0x332669){var _0x5a8f5a=_0x13aaf9;const {status:_0x3e2c28,coordinator:_0x6eabc}=_0x332669;switch(_0x3e2c28){case _0x591725[_0x5a8f5a(0x1c4)]:return _0x5679ca[_0x5a8f5a(0x265)](_0x5e8448,{'coordinator':_0x6eabc});case _0x591725[_0x5a8f5a(0x27d)]:return _0x5679ca['createElement'](_0x2d46de,{'coordinator':_0x6eabc});case _0x591725[_0x5a8f5a(0x24d)]:return _0x5679ca[_0x5a8f5a(0x265)](_0x150839,{'coordinator':_0x6eabc});case _0x591725['OFFLINE']:return _0x5679ca['createElement'](_0x1074dd,null);case _0x591725['PRESENTING']:return _0x5679ca[_0x5a8f5a(0x265)](_0x21d35e,{'coordinator':_0x6eabc});default:return null;}}function _0x5e8448(_0x8c0578){var _0x906338=_0x13aaf9;return _0x5679ca[_0x906338(0x265)](_0x5679ca[_0x906338(0x1d9)],null,_0x5679ca[_0x906338(0x265)](_0x906338(0x286),{'className':_0x350221[_0x906338(0x1af)]},_0x906338(0x258)),_0x5679ca['createElement'](_0x34901c[_0x906338(0x23b)],{'size':_0x906338(0x259),'type':_0x906338(0x275),'onClick':()=>_0x8c0578['coordinator'][_0x906338(0x215)]()},_0x906338(0x268)));}function _0x2d46de(_0x53e83d){var _0x2e2c2e=_0x13aaf9;return _0x5679ca[_0x2e2c2e(0x265)](_0x5679ca[_0x2e2c2e(0x1d9)],null,_0x5679ca[_0x2e2c2e(0x265)]('div',{'className':_0x350221[_0x2e2c2e(0x1af)]},_0x2e2c2e(0x285)),_0x5679ca[_0x2e2c2e(0x265)](_0x34901c[_0x2e2c2e(0x23b)],{'size':_0x2e2c2e(0x259),'type':_0x2e2c2e(0x275),'onClick':()=>_0x53e83d[_0x2e2c2e(0x1e9)][_0x2e2c2e(0x1a8)]()},'Stop\x20following'));}function _0x150839(_0x53dbdf){var _0x1878a0=_0x13aaf9;return _0x5679ca[_0x1878a0(0x265)](_0x5679ca[_0x1878a0(0x1d9)],null,_0x5679ca[_0x1878a0(0x265)]('div',{'className':_0x350221[_0x1878a0(0x1af)]},'You\x27re\x20not\x20following\x20the\x20presenter'),_0x5679ca['createElement'](_0x34901c[_0x1878a0(0x23b)],{'size':_0x1878a0(0x259),'type':_0x1878a0(0x1ef),'onClick':()=>_0x53dbdf[_0x1878a0(0x1e9)][_0x1878a0(0x24a)]()},_0x1878a0(0x279)));}function _0x21d35e(_0x45e0aa){var _0x2a01e2=_0x13aaf9;return _0x5679ca[_0x2a01e2(0x265)](_0x5679ca[_0x2a01e2(0x1d9)],null,_0x5679ca[_0x2a01e2(0x265)](_0x2a01e2(0x286),{'className':_0x350221['liveShareDropdownTitle']},_0x2a01e2(0x263)),_0x5679ca[_0x2a01e2(0x265)](_0x34901c[_0x2a01e2(0x23b)],{'size':_0x2a01e2(0x259),'type':_0x2a01e2(0x275),'onClick':()=>_0x45e0aa[_0x2a01e2(0x1e9)][_0x2a01e2(0x211)]()},_0x2a01e2(0x1f6)));}function _0x1074dd(){var _0x189163=_0x13aaf9;return _0x5679ca[_0x189163(0x265)](_0x5679ca[_0x189163(0x1d9)],null,_0x189163(0x21c));}var _0x270b69=Object[_0x13aaf9(0x254)],_0xe70c32=Object['getOwnPropertyDescriptor'],_0x174b6d=(_0x2c0170,_0x3cedba,_0x553317,_0x3904a1)=>{var _0x384b06=_0x13aaf9;for(var _0x4369c2=_0x3904a1>0x1?void 0x0:_0x3904a1?_0xe70c32(_0x3cedba,_0x553317):_0x3cedba,_0x4e1fed=_0x2c0170[_0x384b06(0x264)]-0x1,_0x397954;_0x4e1fed>=0x0;_0x4e1fed--)(_0x397954=_0x2c0170[_0x4e1fed])&&(_0x4369c2=(_0x3904a1?_0x397954(_0x3cedba,_0x553317,_0x4369c2):_0x397954(_0x4369c2))||_0x4369c2);return _0x3904a1&&_0x4369c2&&_0x270b69(_0x3cedba,_0x553317,_0x4369c2),_0x4369c2;},_0x18ebae=(_0x5ba200,_0x2ef7fa)=>(_0x25006b,_0x389dae)=>_0x2ef7fa(_0x25006b,_0x389dae,_0x5ba200);let _0x899bda=class extends _0x1d6b04['Disposable']{constructor(_0x1deb44,_0x332e20){var _0x758040=_0x13aaf9;super(),this['_injector']=_0x1deb44,this[_0x758040(0x1d6)]=_0x332e20,this[_0x758040(0x232)]();}['_mountLiveShare'](){var _0x43235e=_0x13aaf9;this[_0x43235e(0x19e)](this[_0x43235e(0x1d6)]['registerComponent'](_0x1b7323[_0x43235e(0x210)][_0x43235e(0x20e)],()=>_0x504c4b[_0x43235e(0x1a7)](_0x34bb9f,this[_0x43235e(0x260)])));}};_0x899bda=_0x174b6d([_0x1d6b04[_0x13aaf9(0x1b8)](_0x1d6b04[_0x13aaf9(0x21e)][_0x13aaf9(0x1f7)],_0x899bda),_0x18ebae(0x0,_0x23cc4d[_0x13aaf9(0x248)](_0x23cc4d[_0x13aaf9(0x1b2)])),_0x18ebae(0x1,_0x1b7323['IUIPartsService'])],_0x899bda);var _0x353110=Object[_0x13aaf9(0x254)],_0x1489e=Object[_0x13aaf9(0x1a2)],_0x3cdb2b=(_0x502fa7,_0x58c3cd,_0x5e496b)=>_0x58c3cd in _0x502fa7?_0x353110(_0x502fa7,_0x58c3cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e496b}):_0x502fa7[_0x58c3cd]=_0x5e496b,_0x1aef49=(_0x11cf57,_0x245bb6,_0x47254c,_0x1dd6e9)=>{var _0x1b303a=_0x13aaf9;for(var _0x32b408=_0x1dd6e9>0x1?void 0x0:_0x1dd6e9?_0x1489e(_0x245bb6,_0x47254c):_0x245bb6,_0x4ff331=_0x11cf57[_0x1b303a(0x264)]-0x1,_0x4ab938;_0x4ff331>=0x0;_0x4ff331--)(_0x4ab938=_0x11cf57[_0x4ff331])&&(_0x32b408=(_0x1dd6e9?_0x4ab938(_0x245bb6,_0x47254c,_0x32b408):_0x4ab938(_0x32b408))||_0x32b408);return _0x1dd6e9&&_0x32b408&&_0x353110(_0x245bb6,_0x47254c,_0x32b408),_0x32b408;},_0x847fcc=(_0x3c1429,_0x1ec415)=>(_0x5b8448,_0x46235e)=>_0x1ec415(_0x5b8448,_0x46235e,_0x3c1429),_0x864a12=(_0x321616,_0x293d77,_0x15ce7f)=>_0x3cdb2b(_0x321616,typeof _0x293d77!=_0x13aaf9(0x231)?_0x293d77+'':_0x293d77,_0x15ce7f);const _0x592a3d=_0x13aaf9(0x1c3);_0x5b720f[_0x13aaf9(0x220)]=class extends _0x1d6b04[_0x13aaf9(0x224)]{constructor(_0x16570b,_0x1d0c76){var _0x5bac2f=_0x13aaf9;super(),this[_0x5bac2f(0x260)]=_0x1d0c76;}[_0x13aaf9(0x1db)](_0x97707f){var _0x1791f7=_0x13aaf9;[[_0x41f038],[_0x51c15e],[_0x5ea819],[_0x899bda]][_0x1791f7(0x1ea)](_0xed4a0f=>_0x97707f[_0x1791f7(0x228)](_0xed4a0f));}},_0x864a12(_0x5b720f['UniverLiveSharePlugin'],_0x13aaf9(0x1de),_0x1d6b04['UniverInstanceType'][_0x13aaf9(0x213)]),_0x864a12(_0x5b720f[_0x13aaf9(0x220)],'pluginName',_0x592a3d),_0x5b720f[_0x13aaf9(0x220)]=_0x1aef49([_0x1d6b04['DependentOn'](_0x2f3d4c['UniverCollaborationClientPlugin']),_0x847fcc(0x1,_0x23cc4d[_0x13aaf9(0x248)](_0x23cc4d[_0x13aaf9(0x1b2)]))],_0x5b720f[_0x13aaf9(0x220)]),_0x5b720f['LiveShareService']=_0x41f038,Object[_0x13aaf9(0x254)](_0x5b720f,Symbol[_0x13aaf9(0x19d)],{'value':_0x13aaf9(0x24b)});}));function _0x2f12(_0x8c67ef,_0x54d0ed){var _0x239ae7=_0x239a();return _0x2f12=function(_0x2f122d,_0x2d0d80){_0x2f122d=_0x2f122d-0x19c;var _0x1c5bc1=_0x239ae7[_0x2f122d];return _0x1c5bc1;},_0x2f12(_0x8c67ef,_0x54d0ed);}function _0x239a(){var _0x357adc=['getTypeOfUnitAdded$','useObservable','RxDisposable','ONLINE','CommandType','substring','getMemberID','symbol','_mountLiveShare','executeCommand','7NKdJYP','rxjs/operators','rxjs','_init','univer-live-share','clear','then','Button','LIVESHARE_OPERATION','getValue','presenting','following','LIVESHARE_REQUEST_HOST','fill','stringify','SessionStatus','next','getInitialStates','react','offline','Inject','Starting','startFollowing','Module','univerjs-icon\x20univerjs-icon-','NOT_FOLLOWING','_status','random','@univerjs-pro/collaboration','parse','@wendellhu/redi/react-bindings','dispose$','defineProperty','_presenter','@univerjs-pro/collaboration-client','_fetchOperations','Present\x20this\x20document','small','_collabSession','string','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','_handleTerminate','path','@wendellhu/redi','_injector','useState','attrs','You\x27re\x20presenting\x20the\x20document','length','createElement','icon','pipe','Start','registerSharedOperation','liveShareDropdown','_handleOnline','forwardRef','@univerjs/core','displayName','apply','_handleNewHost','SetZoomRatioOperation','takeUntil','LiveShareSingle','hasOwnProperty','default','280SVCQml','UniverSheetsUi','complete','Start\x20following','_entities','className','currentColor','FOLLOWING','data','useRef','presenter','_handleOperation','UniverSheets','PRESENTING','evenodd','You\x27re\x20following\x20the\x20presenter','div','set','useDependency','UniverIcon','OPERATION','_liveShareService','toStringTag','disposeWithMe','univer-live-share-status-offline','defs','clsx','getOwnPropertyDescriptor','_stopPresenting','unitId','_commandDisposable','parseProtocolChangeset','connectInjector','stopFollowing','url(#$1','_startPresenting','_beIdle','xlink:href','540twHToU','IUniverInstanceService','liveShareDropdownTitle','_stopFollowing','_startFollowing','Injector','children','sessionStatus$','reverse','subscribe','from','OnLifecycle','sheet','SetScrollOperation','1450150cMrLEm','exports','indexOf','2945898eQgaBb','not-following','find','@univerjs/ui','get','UNIVER_LIVE_SHARE_PLUGIN','IDLE','live-share-single','assign','getOwnPropertySymbols','tag','Subject','@univerjs/sheets-ui','idle','amd','univer-live-share-dropdown-title','18399EpkusV','_handleOffline','prototype','status$','event$','none','_unitID','mutations','_uiPartsService','UniverInstanceType','has','Fragment','getCurrentTypeOfUnit$','onStarting','map','send','type','call','toDisposable','LIVESHARE_TERMINATE','SetWorksheetActiveOperation','_configService','init','unsubscribe','toString','current','function','coordinator','forEach','useEffect','extend','getConfig','_commandService','text','Dropdown','getLiveShareCoordinator','_sharedOperations','entries','svg','params','Stop\x20presenting','Rendered','defIds','asObservable','getUnitId','@univerjs/design','dispose','delete','UniverCollaborationClient','_startLiveShareCoordinator','584078nfwstd','colorChannel1','2Zehnpa','idSuffix','use','NEW_CHANGESETS','_collabSessionService','LIVESHARE_FETCH_OPERATIONS','Disposable','onCommandExecuted','operators','15700hMgcjG','InsertSheetMutation','DisposableCollection','HEADER_MENU','_reporters','BuiltInUIPart','stopPresenting','univer-live-share-dropdown','UNIVER_SHEET','56180IKGABn','tryStartPresenting','@univerjs/sheets','2332072gFCcxg','OFFLINE','concat','_handleNewChangeSets','UniverLiveShare','You\x27are\x20offline.','UniverUi','LifecycleStages','React','UniverLiveSharePlugin','_univerInstanceService','_status$','BehaviorSubject','Plugin','includes','UniverCollaboration','memberID','add','CollaborationEvent'];_0x239a=function(){return _0x357adc;};return _0x239a();}
1
+ function _0x4930(){var _0x3a8d3e=['disposeWithMe','0\x200\x2017\x2017','_sharedOperations','ONLINE','_handleOperation','_univerInstanceService','3599220OIJtlp','operators','univer-live-share','DisposableCollection','rxjs','getTypeOfUnitAdded$','mutations','assign','complete','_handleNewHost','use','getInitialStates','memberID','createInstance','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','children','hasOwnProperty','data','_reporters','UniverDesign','throttleTime','onCommandExecuted','LIVESHARE_FETCH_OPERATIONS','random','UniverSheetsUi','@univerjs-pro/collaboration','params','requireSession','defIds','BehaviorSubject','symbol','Rendered','none','call','stopFollowing','url(#$1','Subject','Disposable','Fragment','presenter','pipe','_commandDisposable','UniverCollaboration','HEADER_MENU','next','includes','Start','BuiltInUIPart','registerComponent','text','subscribe','entries','_collabSession','amd','default','_handleOnline','UniverIcon','IConfigService','startFollowing','LIVESHARE_TERMINATE','extend','_handleOffline','_stopFollowing','idSuffix','stringify','univer-live-share-dropdown','SetZoomRatioOperation','_mountLiveShare','add','useEffect','CollaborationSessionService','xlink:href','set','takeUntil','tryStartPresenting','@univerjs/ui','SetScrollOperation','prototype','path','getCurrentTypeOfUnit$','_handleTerminate','concat','offline','_configService','icon','@univerjs/sheets-ui','function','SAME_OPERATION_SHARE_INTERVAL','_liveShareService','following','init','dispose$','_startPresenting','className','getTypeOfUnitDisposed$','_startLiveShareCoordinator','click','apply','UniverUi','DependentOn','IDLE','OFFLINE','useDependency','coordinator','2046040rbzSun','has','105qIuhBQ','ICommandService','fill','small','operations','toDisposable','You\x27re\x20following\x20the\x20presenter','registerInitialStateReporter','You\x27are\x20offline.','getConfig','status$','950391Janctw','executeCommand','asObservable','event$','_handleNewChangeSets','@univerjs-pro/collaboration-client','Stop\x20following','createElement','univerjs-icon\x20univerjs-icon-','SessionStatus','from','length','stopPresenting','useRef','reverse','idle','map','810153zuFtlk','replace','Injector','LifecycleStages','rxjs/operators','_unitID','RxDisposable','OPERATION','dispose','get','FOLLOWING','registerSharedOperation','send','UNIVER_SHEET','1em','getOwnPropertySymbols','unsubscribe','1631810qmwjke','_startFollowing','_fetchOperations','Module','clear','unitId','@univerjs/core','UniverCore','currentColor','substring','getUnitId','UniverInstanceType','delete','sessionStatus$','getOwnPropertyDescriptor','evenodd','live-share-single','shouldShareOperation','16UUKmxO','liveShareDropdownTitle','UniverCollaborationClientPlugin','displayName','IUniverInstanceService','_entities','forwardRef','CollaborationEvent','object','Button','defineProperty','_commandService','UniverLiveShare','tag','connectInjector','react','Inject','forEach','_collabSessionService','IUIPartsService','LIVESHARE_REQUEST_HOST','SetWorksheetActiveOperation','Start\x20following','You\x27re\x20not\x20following\x20the\x20presenter','div','liveShareDropdown','LiveShareService','Dropdown','_uiPartsService','UniverLiveSharePlugin','@univerjs/sheets','getMemberID','string','getValue','find','presenting','univer-live-share-status-offline','_presenter','exports','parse','Plugin','_status$','@univerjs/design','CommandType','682824ULkOkI','toString','You\x27re\x20presenting\x20the\x20document','current','_injector','not-following','getLiveShareCoordinator','propertyIsEnumerable','453057ZWQhhC','clsx','onStarting','_init','useState','NOT_FOLLOWING','attrs','svg','_beIdle','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','_status','UNIVER_LIVE_SHARE_PLUGIN','_stopPresenting'];_0x4930=function(){return _0x3a8d3e;};return _0x4930();}function _0x1787(_0x38e492,_0x3a7a02){var _0x49307a=_0x4930();return _0x1787=function(_0x178700,_0x511aca){_0x178700=_0x178700-0x13d;var _0x415bfd=_0x49307a[_0x178700];return _0x415bfd;},_0x1787(_0x38e492,_0x3a7a02);}(function(_0xced7cc,_0x1961bb){var _0xed2704=_0x1787,_0x105102=_0xced7cc();while(!![]){try{var _0x38e8=parseInt(_0xed2704(0x1a8))/0x1+parseInt(_0xed2704(0x1dc))/0x2*(-parseInt(_0xed2704(0x210))/0x3)+parseInt(_0xed2704(0x19b))/0x4+-parseInt(_0xed2704(0x1ca))/0x5+-parseInt(_0xed2704(0x223))/0x6+parseInt(_0xed2704(0x19d))/0x7*(parseInt(_0xed2704(0x208))/0x8)+parseInt(_0xed2704(0x1b9))/0x9;if(_0x38e8===_0x1961bb)break;else _0x105102['push'](_0x105102['shift']());}catch(_0x833bfa){_0x105102['push'](_0x105102['shift']());}}}(_0x4930,0xaa5e5),function(_0x167236,_0x483b00){var _0x42a247=_0x1787;typeof exports==_0x42a247(0x1e4)&&typeof module<'u'?_0x483b00(exports,require(_0x42a247(0x1d0)),require(_0x42a247(0x1ad)),require(_0x42a247(0x1fa)),require(_0x42a247(0x188)),require(_0x42a247(0x14c)),require('rxjs'),require('rxjs/operators'),require(_0x42a247(0x17e)),require('@univerjs/design'),require(_0x42a247(0x211)),require(_0x42a247(0x1eb))):typeof define==_0x42a247(0x189)&&define[_0x42a247(0x168)]?define([_0x42a247(0x202),'@univerjs/core','@univerjs-pro/collaboration-client',_0x42a247(0x1fa),_0x42a247(0x188),_0x42a247(0x14c),_0x42a247(0x227),_0x42a247(0x1bd),_0x42a247(0x17e),_0x42a247(0x206),_0x42a247(0x211),_0x42a247(0x1eb)],_0x483b00):(_0x167236=typeof globalThis<'u'?globalThis:_0x167236||self,_0x483b00(_0x167236[_0x42a247(0x1e8)]={},_0x167236[_0x42a247(0x1d1)],_0x167236['UniverCollaborationClient'],_0x167236['UniverSheets'],_0x167236[_0x42a247(0x14b)],_0x167236[_0x42a247(0x15d)],_0x167236[_0x42a247(0x227)],_0x167236[_0x42a247(0x227)][_0x42a247(0x224)],_0x167236[_0x42a247(0x195)],_0x167236[_0x42a247(0x146)],_0x167236[_0x42a247(0x211)],_0x167236['React']));}(this,function(_0x267f05,_0x5a7856,_0x1bc69f,_0x262996,_0x58d4e4,_0x3d9d75,_0x1d2661,_0x6f26c5,_0x54fcf6,_0x271cf0,_0x43aa9a,_0x5623d1){'use strict';var _0x137e72=_0x1787;var _0x555416=Object['defineProperty'],_0x478d53=(_0x4fa6ae,_0x5aaf0d,_0xcc62ab)=>_0x5aaf0d in _0x4fa6ae?_0x555416(_0x4fa6ae,_0x5aaf0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcc62ab}):_0x4fa6ae[_0x5aaf0d]=_0xcc62ab,_0x41f3d7=(_0x2909b5,_0x16e436,_0x1ea5ef)=>_0x478d53(_0x2909b5,typeof _0x16e436!=_0x137e72(0x151)?_0x16e436+'':_0x16e436,_0x1ea5ef);class _0x185dae extends _0x5a7856['Disposable']{constructor(){var _0xa48b37=_0x137e72;super(...arguments),_0x41f3d7(this,_0xa48b37(0x21f),new Set()),_0x41f3d7(this,_0xa48b37(0x145),new Set());}['registerSharedOperation'](_0x182135){var _0x3b94ae=_0x137e72;return this[_0x3b94ae(0x21f)][_0x3b94ae(0x177)](_0x182135),_0x5a7856[_0x3b94ae(0x1a2)](()=>this[_0x3b94ae(0x21f)][_0x3b94ae(0x1d6)](_0x182135));}[_0x137e72(0x1a4)](_0x23c3ab){var _0x891e16=_0x137e72;return this[_0x891e16(0x145)]['add'](_0x23c3ab),_0x5a7856[_0x891e16(0x1a2)](()=>this[_0x891e16(0x145)][_0x891e16(0x1d6)](_0x23c3ab));}['shouldShareOperation'](_0x3e8c96){var _0x1d570f=_0x137e72;return this[_0x1d570f(0x21f)][_0x1d570f(0x19c)](_0x3e8c96);}['getInitialStates'](_0x1826fa){var _0x55777e=_0x137e72;return Array[_0x55777e(0x1b2)](this['_reporters'])[_0x55777e(0x1b8)](_0x14bd28=>_0x14bd28(_0x1826fa));}}var _0x35154a=Object[_0x137e72(0x1e6)],_0x38fd7c=Object[_0x137e72(0x1d8)],_0x588f70=(_0x40cefa,_0x1e4f03,_0x39ae01,_0x275b66)=>{var _0x183542=_0x137e72;for(var _0x4a25d8=_0x275b66>0x1?void 0x0:_0x275b66?_0x38fd7c(_0x1e4f03,_0x39ae01):_0x1e4f03,_0x50e532=_0x40cefa[_0x183542(0x1b3)]-0x1,_0x1033cd;_0x50e532>=0x0;_0x50e532--)(_0x1033cd=_0x40cefa[_0x50e532])&&(_0x4a25d8=(_0x275b66?_0x1033cd(_0x1e4f03,_0x39ae01,_0x4a25d8):_0x1033cd(_0x4a25d8))||_0x4a25d8);return _0x275b66&&_0x4a25d8&&_0x35154a(_0x1e4f03,_0x39ae01,_0x4a25d8),_0x4a25d8;},_0x5e6a53=(_0x3a0b30,_0x486395)=>(_0x208d81,_0x2d6b4f)=>_0x486395(_0x208d81,_0x2d6b4f,_0x3a0b30);let _0x184ee1=class extends _0x5a7856['Disposable']{constructor(_0x231107){var _0x40de15=_0x137e72;super(),this[_0x40de15(0x18b)]=_0x231107,this[_0x40de15(0x213)]();}[_0x137e72(0x213)](){var _0x56820b=_0x137e72;[_0x58d4e4[_0x56820b(0x175)]['id'],_0x58d4e4[_0x56820b(0x17f)]['id'],_0x262996['SetWorksheetActiveOperation']['id']]['forEach'](_0x4ed3a0=>{var _0x5087f8=_0x56820b;this[_0x5087f8(0x21d)](this[_0x5087f8(0x18b)][_0x5087f8(0x1c4)](_0x4ed3a0));});}};_0x184ee1=_0x588f70([_0x5a7856['OnLifecycle'](_0x5a7856[_0x137e72(0x1bc)]['Starting'],_0x184ee1),_0x5e6a53(0x0,_0x5a7856[_0x137e72(0x1ec)](_0x185dae))],_0x184ee1);var _0x5073bf=Object[_0x137e72(0x1e6)],_0x18cb12=Object[_0x137e72(0x1d8)],_0x4f7811=(_0x4b8930,_0x212a1b,_0xae1a88,_0x1384d3)=>{var _0x4a3c98=_0x137e72;for(var _0x5effc4=_0x1384d3>0x1?void 0x0:_0x1384d3?_0x18cb12(_0x212a1b,_0xae1a88):_0x212a1b,_0x5642ea=_0x4b8930[_0x4a3c98(0x1b3)]-0x1,_0xfe14d8;_0x5642ea>=0x0;_0x5642ea--)(_0xfe14d8=_0x4b8930[_0x5642ea])&&(_0x5effc4=(_0x1384d3?_0xfe14d8(_0x212a1b,_0xae1a88,_0x5effc4):_0xfe14d8(_0x5effc4))||_0x5effc4);return _0x1384d3&&_0x5effc4&&_0x5073bf(_0x212a1b,_0xae1a88,_0x5effc4),_0x5effc4;},_0x4f5015=(_0x72549e,_0x2b5b93)=>(_0x4c8ff8,_0x24f9c6)=>_0x2b5b93(_0x4c8ff8,_0x24f9c6,_0x72549e);let _0x4c41d5=class extends _0x5a7856[_0x137e72(0x1bf)]{constructor(_0x20acb6,_0x51c00c,_0x4c6b2d){var _0x3b91f1=_0x137e72;super(),_0x41f3d7(this,_0x3b91f1(0x1e1),new Map()),(this[_0x3b91f1(0x222)]=_0x20acb6,this[_0x3b91f1(0x20c)]=_0x51c00c,this[_0x3b91f1(0x1ee)]=_0x4c6b2d,this[_0x3b91f1(0x213)]());}async[_0x137e72(0x20e)](_0x4f2a02){var _0x1fa7df=_0x137e72;return this[_0x1fa7df(0x1e1)]['has'](_0x4f2a02)||await this['_startLiveShareCoordinator'](_0x4f2a02),this['_entities']['get'](_0x4f2a02);}[_0x137e72(0x213)](){var _0x41c588=_0x137e72;this[_0x41c588(0x222)][_0x41c588(0x228)](_0x5a7856[_0x41c588(0x1d5)][_0x41c588(0x1c6)])['pipe'](_0x6f26c5['takeUntil'](this[_0x41c588(0x18e)]))[_0x41c588(0x165)](async _0x28c6c0=>{var _0x52810d=_0x41c588;const _0x24bdf3=_0x28c6c0['getUnitId']();this[_0x52810d(0x1e1)]['has'](_0x24bdf3)||this['_startLiveShareCoordinator'](_0x24bdf3);}),this[_0x41c588(0x222)][_0x41c588(0x191)](_0x5a7856[_0x41c588(0x1d5)][_0x41c588(0x1c6)])['pipe'](_0x6f26c5[_0x41c588(0x17c)](this[_0x41c588(0x18e)]))[_0x41c588(0x165)](_0x557793=>{var _0x4f732a=_0x41c588;const _0x1b4fac=_0x557793[_0x4f732a(0x1d4)](),_0x53da27=this[_0x4f732a(0x1e1)][_0x4f732a(0x1c2)](_0x1b4fac);_0x53da27==null||_0x53da27[_0x4f732a(0x1c1)]();});}async[_0x137e72(0x192)](_0x1c8121){var _0x179e32=_0x137e72;const _0x249b84=await this['_collabSessionService'][_0x179e32(0x14e)](_0x1c8121),_0x399e8e=this['_injector'][_0x179e32(0x140)](_0x3107f0,_0x1c8121,_0x249b84);return _0x399e8e[_0x179e32(0x18d)](),this[_0x179e32(0x1e1)][_0x179e32(0x17b)](_0x1c8121,_0x399e8e),_0x399e8e;}};_0x4c41d5=_0x4f7811([_0x4f5015(0x0,_0x5a7856[_0x137e72(0x1e0)]),_0x4f5015(0x1,_0x5a7856['Inject'](_0x5a7856['Injector'])),_0x4f5015(0x2,_0x5a7856[_0x137e72(0x1ec)](_0x1bc69f[_0x137e72(0x179)]))],_0x4c41d5);var _0xae87fe=(_0x1a94e6=>(_0x1a94e6[_0x137e72(0x198)]=_0x137e72(0x185),_0x1a94e6[_0x137e72(0x197)]='idle',_0x1a94e6[_0x137e72(0x1c3)]=_0x137e72(0x18c),_0x1a94e6[_0x137e72(0x215)]=_0x137e72(0x20d),_0x1a94e6['PRESENTING']='presenting',_0x1a94e6))(_0xae87fe||{});const _0x3f7c10=_0x137e72(0x18a),_0x777ac0=0xc8;let _0x3107f0=class extends _0x5a7856['RxDisposable']{constructor(_0x2b8425,_0x3328cc,_0x25d8a9,_0x5b4fc9,_0x25bac5){var _0x5a8637=_0x137e72;super(),_0x41f3d7(this,_0x5a8637(0x205),new _0x1d2661[(_0x5a8637(0x150))](_0x5a8637(0x1b7))),_0x41f3d7(this,_0x5a8637(0x1a7),this[_0x5a8637(0x205)][_0x5a8637(0x1aa)]()),_0x41f3d7(this,_0x5a8637(0x213),!0x1),_0x41f3d7(this,'_commandDisposable',null),_0x41f3d7(this,_0x5a8637(0x201),null),(this[_0x5a8637(0x1be)]=_0x2b8425,this[_0x5a8637(0x167)]=_0x3328cc,this[_0x5a8637(0x186)]=_0x25d8a9,this[_0x5a8637(0x18b)]=_0x5b4fc9,this[_0x5a8637(0x1e7)]=_0x25bac5);}get[_0x137e72(0x21a)](){var _0x57633a=_0x137e72;return this['_status$'][_0x57633a(0x1fd)]();}['dispose'](){var _0x1c293d=_0x137e72,_0x2da2aa;(_0x2da2aa=this[_0x1c293d(0x15c)])==null||_0x2da2aa[_0x1c293d(0x1c1)](),this[_0x1c293d(0x205)][_0x1c293d(0x15f)](_0x1c293d(0x1b7)),this['_status$'][_0x1c293d(0x22b)]();}[_0x137e72(0x18d)](){var _0xb8a49a=_0x137e72;this[_0xb8a49a(0x213)]||(this[_0xb8a49a(0x213)]=!0x0,this['_collabSession'][_0xb8a49a(0x1d7)]['pipe'](_0x6f26c5[_0xb8a49a(0x17c)](this[_0xb8a49a(0x18e)]))[_0xb8a49a(0x165)](_0x583d5d=>{var _0x5a2c87=_0xb8a49a;switch(_0x583d5d){case _0x1bc69f[_0x5a2c87(0x1b1)]['OFFLINE']:this[_0x5a2c87(0x170)]();break;case _0x1bc69f[_0x5a2c87(0x1b1)][_0x5a2c87(0x220)]:this[_0x5a2c87(0x16a)]();break;}}),this[_0xb8a49a(0x167)][_0xb8a49a(0x1ab)][_0xb8a49a(0x15b)](_0x6f26c5['takeUntil'](this[_0xb8a49a(0x18e)]))[_0xb8a49a(0x165)](_0xe0bf57=>{var _0x14dd47=_0xb8a49a;const {eventID:_0x1e8f0e}=_0xe0bf57;switch(_0x1e8f0e){case _0x3d9d75[_0x14dd47(0x1e3)]['LIVESHARE_NEW_HOST']:this[_0x14dd47(0x22c)](_0xe0bf57);break;case _0x3d9d75[_0x14dd47(0x1e3)]['LIVESHARE_OPERATION']:this[_0x14dd47(0x221)](_0xe0bf57);break;case _0x3d9d75[_0x14dd47(0x1e3)][_0x14dd47(0x16e)]:this[_0x14dd47(0x183)]();break;case _0x3d9d75[_0x14dd47(0x1e3)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0xe0bf57);break;}}));}[_0x137e72(0x17d)](){var _0x105a1f=_0x137e72;this[_0x105a1f(0x167)][_0x105a1f(0x1c5)]({'eventID':_0x3d9d75[_0x105a1f(0x1e3)][_0x105a1f(0x1f0)],'data':{'unitID':this[_0x105a1f(0x1be)],'userID':this[_0x105a1f(0x167)]['getMemberID']()}},this[_0x105a1f(0x1be)]);}[_0x137e72(0x1b4)](){var _0x3273c5=_0x137e72;this[_0x3273c5(0x21a)]===_0x3273c5(0x1ff)&&(this[_0x3273c5(0x205)][_0x3273c5(0x15f)](_0x3273c5(0x1b7)),this[_0x3273c5(0x167)][_0x3273c5(0x1c5)]({'eventID':_0x3d9d75['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3273c5(0x1be)]}},this['_unitID']));}[_0x137e72(0x16d)](){var _0x258ec7=_0x137e72;this[_0x258ec7(0x21a)]===_0x258ec7(0x20d)&&(this['_status$']['next'](_0x258ec7(0x18c)),this[_0x258ec7(0x1cb)]());}['stopFollowing'](){var _0x3d6575=_0x137e72;this[_0x3d6575(0x21a)]===_0x3d6575(0x18c)&&this[_0x3d6575(0x171)]();}[_0x137e72(0x22c)](_0x4ee3ff){var _0x3e76b4=_0x137e72;const {presenter:_0x3ffcaf}=_0x4ee3ff[_0x3e76b4(0x144)],_0x3595c8=this['_collabSession'][_0x3e76b4(0x1fb)]();this[_0x3e76b4(0x201)]=_0x3ffcaf,_0x3ffcaf===_0x3595c8?(this['_stopFollowing'](),this[_0x3e76b4(0x18f)]()):this[_0x3e76b4(0x21a)]!=='not-following'&&(this['_stopPresenting'](),this[_0x3e76b4(0x1cb)]());}[_0x137e72(0x1cc)](){var _0x278ade=_0x137e72;const _0x33ef34={'eventID':_0x3d9d75[_0x278ade(0x1e3)][_0x278ade(0x149)]};this[_0x278ade(0x167)][_0x278ade(0x1c5)](_0x33ef34,this[_0x278ade(0x1be)]);}[_0x137e72(0x183)](){var _0x3328de=_0x137e72;this[_0x3328de(0x201)]=null,this[_0x3328de(0x21a)]!=='presenting'&&this[_0x3328de(0x218)]();}[_0x137e72(0x1ac)](_0x3d4f3b){var _0xa3278e=_0x137e72;if(this[_0xa3278e(0x21a)]===_0xa3278e(0x18c)&&this[_0xa3278e(0x201)]===_0x3d4f3b[_0xa3278e(0x144)][_0xa3278e(0x13f)]){const _0x61abd0=_0x3d9d75['parseProtocolChangeset'](_0x3d4f3b[_0xa3278e(0x144)])[_0xa3278e(0x229)][_0xa3278e(0x1b6)]()[_0xa3278e(0x1fe)](_0x48375d=>_0x48375d['id']===_0x262996['InsertSheetMutation']['id']);if(_0x61abd0){const _0x2c278f=_0x61abd0['params'][_0xa3278e(0x1cf)],_0x1c9b5f=_0x61abd0[_0xa3278e(0x14d)]['sheet']['id'];setTimeout(()=>{var _0x18c73f=_0xa3278e;this[_0x18c73f(0x1e7)][_0x18c73f(0x1a9)](_0x262996[_0x18c73f(0x1f1)]['id'],{'unitId':_0x2c278f,'subUnitId':_0x1c9b5f},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5aaf36=_0x137e72;this[_0x5aaf36(0x205)][_0x5aaf36(0x15f)](_0x5aaf36(0x1ff));const _0x16c6b5=new Map(),_0x5e91b2=this[_0x5aaf36(0x15c)]=new _0x5a7856[(_0x5aaf36(0x226))]();_0x5e91b2[_0x5aaf36(0x177)](_0x5a7856[_0x5aaf36(0x1a2)](()=>{var _0x91e2de=_0x5aaf36;_0x16c6b5[_0x91e2de(0x1ed)](_0x26e2b5=>_0x26e2b5['complete']()),_0x16c6b5[_0x91e2de(0x1ce)]();})),_0x5e91b2[_0x5aaf36(0x177)](this['_commandService'][_0x5aaf36(0x148)](_0x585161=>{var _0x1b4c77=_0x5aaf36,_0x4aef17;if(_0x585161['type']!==_0x5a7856[_0x1b4c77(0x207)][_0x1b4c77(0x1c0)]||!this[_0x1b4c77(0x18b)][_0x1b4c77(0x1db)](_0x585161['id']))return;const {id:_0x11325e}=_0x585161;let _0x222793;_0x16c6b5[_0x1b4c77(0x19c)](_0x11325e)?_0x222793=_0x16c6b5[_0x1b4c77(0x1c2)](_0x11325e):(_0x222793=new _0x1d2661[(_0x1b4c77(0x157))](),_0x16c6b5[_0x1b4c77(0x17b)](_0x11325e,_0x222793),_0x222793['pipe'](_0x6f26c5[_0x1b4c77(0x147)]((_0x4aef17=this['_configService'][_0x1b4c77(0x1a6)](_0x3f7c10))!=null?_0x4aef17:_0x777ac0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1b4c77(0x165)](_0x1010e6=>{var _0x5cc6b4=_0x1b4c77;this['_collabSession']['send']({'eventID':_0x3d9d75[_0x5cc6b4(0x1e3)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5cc6b4(0x1be)],'operations':{[_0x1010e6['id']]:{'id':_0x1010e6['id'],'params':JSON[_0x5cc6b4(0x173)](_0x1010e6[_0x5cc6b4(0x14d)])}}}},this['_unitID']);})),_0x222793[_0x1b4c77(0x15f)](_0x585161);})),this[_0x5aaf36(0x18b)][_0x5aaf36(0x13e)](this[_0x5aaf36(0x1be)])['forEach'](_0xa79806=>this[_0x5aaf36(0x167)][_0x5aaf36(0x1c5)]({'eventID':_0x3d9d75['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5aaf36(0x1be)],'operations':{[_0xa79806['id']]:{'id':_0xa79806['id'],'params':JSON[_0x5aaf36(0x173)](_0xa79806['params'])}}}},this[_0x5aaf36(0x1be)]));}[_0x137e72(0x21c)](){var _0x484810=_0x137e72,_0x4ec7c8;this['_status$'][_0x484810(0x15f)](_0x484810(0x1b7)),(_0x4ec7c8=this[_0x484810(0x15c)])==null||_0x4ec7c8[_0x484810(0x1c1)](),this[_0x484810(0x15c)]=null;}['_startFollowing'](){var _0x4162da=_0x137e72,_0x2ae91f;(_0x2ae91f=this[_0x4162da(0x15c)])==null||_0x2ae91f[_0x4162da(0x1c1)](),this[_0x4162da(0x205)]['next'](_0x4162da(0x18c));}[_0x137e72(0x218)](){var _0x2f4b39=_0x137e72,_0x572b0f;this[_0x2f4b39(0x205)][_0x2f4b39(0x15f)]('idle'),(_0x572b0f=this[_0x2f4b39(0x15c)])==null||_0x572b0f[_0x2f4b39(0x1c1)](),this[_0x2f4b39(0x15c)]=null;}[_0x137e72(0x171)](){var _0x13f10f=_0x137e72,_0x26044f;this['_status$'][_0x13f10f(0x15f)](_0x13f10f(0x20d)),(_0x26044f=this[_0x13f10f(0x15c)])==null||_0x26044f[_0x13f10f(0x1c1)]();}[_0x137e72(0x221)](_0x10e35d){var _0x31c0d8=_0x137e72;if([_0x31c0d8(0x1ff),_0x31c0d8(0x20d),_0x31c0d8(0x185)][_0x31c0d8(0x160)](this['_status'])||!_0x10e35d[_0x31c0d8(0x144)][_0x31c0d8(0x15a)]||_0x10e35d[_0x31c0d8(0x144)][_0x31c0d8(0x15a)]===this[_0x31c0d8(0x167)][_0x31c0d8(0x1fb)]())return;this['_status']===_0x31c0d8(0x1b7)&&this[_0x31c0d8(0x1cb)]();const _0x1d53bb=_0x10e35d['data'][_0x31c0d8(0x1a1)];Object['values'](_0x1d53bb)['forEach'](_0x5a1339=>{var _0x10a26c=_0x31c0d8;this['_commandService'][_0x10a26c(0x1a9)](_0x5a1339['id'],_0x5a1339['params']?JSON[_0x10a26c(0x203)](_0x5a1339[_0x10a26c(0x14d)]):null,{'fromCollab':!0x0});});}[_0x137e72(0x170)](){var _0x329dbe=_0x137e72,_0x2f38d0;this[_0x329dbe(0x205)][_0x329dbe(0x15f)](_0x329dbe(0x185)),(_0x2f38d0=this[_0x329dbe(0x15c)])==null||_0x2f38d0[_0x329dbe(0x1c1)]();}['_handleOnline'](){var _0x565ff8=_0x137e72;this[_0x565ff8(0x205)][_0x565ff8(0x15f)](_0x565ff8(0x1b7)),this[_0x565ff8(0x1cc)]();}};_0x3107f0=_0x4f7811([_0x4f5015(0x2,_0x5a7856[_0x137e72(0x16c)]),_0x4f5015(0x3,_0x5a7856[_0x137e72(0x1ec)](_0x185dae)),_0x4f5015(0x4,_0x5a7856[_0x137e72(0x19e)])],_0x3107f0);var _0x85bbd0=function(){var _0x3796dc=_0x137e72;return _0x85bbd0=Object[_0x3796dc(0x22a)]||function(_0x36e576){var _0x5e0dfb=_0x3796dc;for(var _0x565d89,_0x5d20eb=0x1,_0x37b73=arguments['length'];_0x5d20eb<_0x37b73;_0x5d20eb++){_0x565d89=arguments[_0x5d20eb];for(var _0x2b3c17 in _0x565d89)Object[_0x5e0dfb(0x180)][_0x5e0dfb(0x143)]['call'](_0x565d89,_0x2b3c17)&&(_0x36e576[_0x2b3c17]=_0x565d89[_0x2b3c17]);}return _0x36e576;},_0x85bbd0[_0x3796dc(0x194)](this,arguments);},_0xe50a3c=function(_0x58ccd1,_0x4b82a2){var _0xd0ed93=_0x137e72,_0x19bc81={};for(var _0xcfd43a in _0x58ccd1)Object[_0xd0ed93(0x180)]['hasOwnProperty']['call'](_0x58ccd1,_0xcfd43a)&&_0x4b82a2['indexOf'](_0xcfd43a)<0x0&&(_0x19bc81[_0xcfd43a]=_0x58ccd1[_0xcfd43a]);if(_0x58ccd1!=null&&typeof Object[_0xd0ed93(0x1c8)]==_0xd0ed93(0x189)){for(var _0x356bf5=0x0,_0xcfd43a=Object[_0xd0ed93(0x1c8)](_0x58ccd1);_0x356bf5<_0xcfd43a['length'];_0x356bf5++)_0x4b82a2['indexOf'](_0xcfd43a[_0x356bf5])<0x0&&Object['prototype'][_0xd0ed93(0x20f)][_0xd0ed93(0x154)](_0x58ccd1,_0xcfd43a[_0x356bf5])&&(_0x19bc81[_0xcfd43a[_0x356bf5]]=_0x58ccd1[_0xcfd43a[_0x356bf5]]);}return _0x19bc81;},_0x152de8=_0x5623d1[_0x137e72(0x1e2)](function(_0x2607ee,_0x31d178){var _0x4aed94=_0x137e72,_0x237ee2=_0x2607ee[_0x4aed94(0x187)],_0x44dcac=_0x2607ee['id'],_0x1cb6bc=_0x2607ee[_0x4aed94(0x190)],_0x227ed6=_0x2607ee['extend'],_0x17a1fa=_0xe50a3c(_0x2607ee,[_0x4aed94(0x187),'id',_0x4aed94(0x190),_0x4aed94(0x16f)]),_0x2bf5aa=_0x4aed94(0x1b0)['concat'](_0x44dcac,'\x20')[_0x4aed94(0x184)](_0x1cb6bc||'')['trim'](),_0x4cf0fd=_0x5623d1[_0x4aed94(0x1b5)]('_'['concat'](_0x1cb1ef()));return _0x47490c(_0x237ee2,''[_0x4aed94(0x184)](_0x44dcac),{'defIds':_0x237ee2[_0x4aed94(0x14f)],'idSuffix':_0x4cf0fd[_0x4aed94(0x20b)]},_0x85bbd0({'ref':_0x31d178,'className':_0x2bf5aa},_0x17a1fa),_0x227ed6);});function _0x47490c(_0x4cd277,_0x8a25f6,_0xbce245,_0x35d5de,_0x27bfdd){var _0x552837=_0x137e72;return _0x5623d1[_0x552837(0x1af)](_0x4cd277['tag'],_0x85bbd0(_0x85bbd0({'key':_0x8a25f6},_0x6c00c5(_0x4cd277,_0xbce245,_0x27bfdd)),_0x35d5de),(_0x49e1ea(_0x4cd277,_0xbce245)['children']||[])[_0x552837(0x1b8)](function(_0x30e661,_0x4e7b17){var _0x32b7a0=_0x552837;return _0x47490c(_0x30e661,''['concat'](_0x8a25f6,'-')['concat'](_0x4cd277[_0x32b7a0(0x1e9)],'-')[_0x32b7a0(0x184)](_0x4e7b17),_0xbce245,void 0x0,_0x27bfdd);}));}function _0x6c00c5(_0x21f10f,_0x1a22fb,_0x3dcc5c){var _0x4d9fc2=_0x137e72,_0x45a064=_0x85bbd0({},_0x21f10f[_0x4d9fc2(0x216)]);_0x3dcc5c!=null&&_0x3dcc5c['colorChannel1']&&_0x45a064['fill']==='colorChannel1'&&(_0x45a064[_0x4d9fc2(0x19f)]=_0x3dcc5c['colorChannel1']);var _0x31487f=_0x1a22fb['defIds'];return!_0x31487f||_0x31487f['length']===0x0||(_0x21f10f[_0x4d9fc2(0x1e9)]===_0x4d9fc2(0x13d)&&_0x45a064[_0x4d9fc2(0x17a)]&&(_0x45a064[_0x4d9fc2(0x17a)]=_0x45a064['xlink:href']+_0x1a22fb[_0x4d9fc2(0x172)]),Object[_0x4d9fc2(0x166)](_0x45a064)[_0x4d9fc2(0x1ed)](function(_0x13bf37){var _0x5946ca=_0x4d9fc2,_0x3fcc84=_0x13bf37[0x0],_0x17a91d=_0x13bf37[0x1];typeof _0x17a91d==_0x5946ca(0x1fc)&&(_0x45a064[_0x3fcc84]=_0x17a91d[_0x5946ca(0x1ba)](/url\(#(.*)\)/,_0x5946ca(0x156)[_0x5946ca(0x184)](_0x1a22fb[_0x5946ca(0x172)],')')));})),_0x45a064;}function _0x49e1ea(_0x48605c,_0x2a59fa){var _0x1b9657=_0x137e72,_0x5eb230,_0x52227a=_0x2a59fa['defIds'];return!_0x52227a||_0x52227a[_0x1b9657(0x1b3)]===0x0?_0x48605c:_0x48605c[_0x1b9657(0x1e9)]==='defs'&&(!((_0x5eb230=_0x48605c[_0x1b9657(0x142)])===null||_0x5eb230===void 0x0)&&_0x5eb230['length'])?_0x85bbd0(_0x85bbd0({},_0x48605c),{'children':_0x48605c[_0x1b9657(0x142)][_0x1b9657(0x1b8)](function(_0x4ea745){var _0x44b0e3=_0x1b9657;return typeof _0x4ea745[_0x44b0e3(0x216)]['id']==_0x44b0e3(0x1fc)&&_0x52227a&&_0x52227a['indexOf'](_0x4ea745[_0x44b0e3(0x216)]['id'])>-0x1?_0x85bbd0(_0x85bbd0({},_0x4ea745),{'attrs':_0x85bbd0(_0x85bbd0({},_0x4ea745[_0x44b0e3(0x216)]),{'id':_0x4ea745['attrs']['id']+_0x2a59fa[_0x44b0e3(0x172)]})}):_0x4ea745;})}):_0x48605c;}function _0x1cb1ef(){var _0x4cb4a2=_0x137e72;return Math[_0x4cb4a2(0x14a)]()[_0x4cb4a2(0x209)](0x24)[_0x4cb4a2(0x1d3)](0x2,0x8);}_0x152de8[_0x137e72(0x1df)]=_0x137e72(0x16b);var _0x431847={'tag':_0x137e72(0x217),'attrs':{'fill':_0x137e72(0x153),'viewBox':_0x137e72(0x21e),'width':_0x137e72(0x1c7),'height':_0x137e72(0x1c7)},'children':[{'tag':_0x137e72(0x181),'attrs':{'fill':_0x137e72(0x1d2),'d':_0x137e72(0x219)}},{'tag':_0x137e72(0x181),'attrs':{'fill':_0x137e72(0x1d2),'d':_0x137e72(0x141),'fillRule':_0x137e72(0x1d9),'clipRule':_0x137e72(0x1d9)}}]},_0xeee489=_0x5623d1['forwardRef'](function(_0x1adaaa,_0x4b3111){var _0x21e79b=_0x137e72;return _0x5623d1[_0x21e79b(0x1af)](_0x152de8,Object[_0x21e79b(0x22a)]({},_0x1adaaa,{'id':_0x21e79b(0x1da),'ref':_0x4b3111,'icon':_0x431847}));});_0xeee489[_0x137e72(0x1df)]='LiveShareSingle';const _0x5114a4={'liveShare':_0x137e72(0x225),'liveShareStatusOffline':_0x137e72(0x200),'liveShareDropdown':_0x137e72(0x174),'liveShareDropdownTitle':'univer-live-share-dropdown-title'};function _0xbe1cbe(){var _0x12893f=_0x137e72;const _0x5aa063=_0x5a7856[_0x12893f(0x199)](_0x4c41d5),_0x496a18=_0x5a7856[_0x12893f(0x199)](_0x5a7856[_0x12893f(0x1e0)]),_0x59a9b5=_0x54fcf6['useObservable'](()=>_0x496a18[_0x12893f(0x182)](_0x5a7856[_0x12893f(0x1d5)][_0x12893f(0x1c6)]),void 0x0,!0x1,[]),[_0x273a9e,_0x19912d]=_0x5623d1[_0x12893f(0x214)](null),[_0x4604ed,_0x518f43]=_0x5623d1[_0x12893f(0x214)](_0xae87fe[_0x12893f(0x197)]),_0x36db26=_0x5623d1[_0x12893f(0x1b5)](null);_0x5623d1[_0x12893f(0x178)](()=>(_0x59a9b5&&_0x5aa063['getLiveShareCoordinator'](_0x59a9b5['getUnitId']())['then'](_0x5d5c50=>{var _0x5191a7=_0x12893f;_0x19912d(_0x5d5c50),_0x36db26[_0x5191a7(0x20b)]=_0x5d5c50[_0x5191a7(0x1a7)]['subscribe'](_0x29c2dd=>{_0x518f43(_0x29c2dd);});}),()=>{var _0x2ac3b0=_0x12893f,_0xeb2167;(_0xeb2167=_0x36db26[_0x2ac3b0(0x20b)])==null||_0xeb2167[_0x2ac3b0(0x1c9)](),_0x36db26[_0x2ac3b0(0x20b)]=null;}),[_0x59a9b5,_0x5aa063]);const _0x4ad61e=_0x4604ed!==_0xae87fe[_0x12893f(0x198)]?[_0x12893f(0x193)]:[],_0x6a153f=_0x43aa9a(_0x5114a4['liveShare'],'live-share-status-'+_0x4604ed);return _0x273a9e?_0x5623d1[_0x12893f(0x1af)](_0x271cf0[_0x12893f(0x1f7)],{'trigger':_0x4ad61e,'overlay':_0x5623d1[_0x12893f(0x1af)](_0x12893f(0x1f4),{'className':_0x5114a4[_0x12893f(0x1f5)]},_0x5623d1[_0x12893f(0x1af)](_0x2bce76,{'status':_0x4604ed,'coordinator':_0x273a9e}))},_0x5623d1[_0x12893f(0x1af)]('div',{'className':_0x6a153f},_0x5623d1['createElement'](_0xeee489,null))):null;}function _0x2bce76(_0x12ef73){var _0x29d0ac=_0x137e72;const {status:_0x36c00b,coordinator:_0x8b998a}=_0x12ef73;switch(_0x36c00b){case _0xae87fe['IDLE']:return _0x5623d1[_0x29d0ac(0x1af)](_0x4fdcda,{'coordinator':_0x8b998a});case _0xae87fe['FOLLOWING']:return _0x5623d1[_0x29d0ac(0x1af)](_0x3fde5f,{'coordinator':_0x8b998a});case _0xae87fe[_0x29d0ac(0x215)]:return _0x5623d1['createElement'](_0x576834,{'coordinator':_0x8b998a});case _0xae87fe[_0x29d0ac(0x198)]:return _0x5623d1[_0x29d0ac(0x1af)](_0x423354,null);case _0xae87fe['PRESENTING']:return _0x5623d1[_0x29d0ac(0x1af)](_0x4a3c72,{'coordinator':_0x8b998a});default:return null;}}function _0x4fdcda(_0x4871bb){var _0x610fd9=_0x137e72;return _0x5623d1[_0x610fd9(0x1af)](_0x5623d1['Fragment'],null,_0x5623d1[_0x610fd9(0x1af)](_0x610fd9(0x1f4),{'className':_0x5114a4[_0x610fd9(0x1dd)]},'Present\x20this\x20document'),_0x5623d1[_0x610fd9(0x1af)](_0x271cf0['Button'],{'size':_0x610fd9(0x1a0),'type':_0x610fd9(0x169),'onClick':()=>_0x4871bb[_0x610fd9(0x19a)][_0x610fd9(0x17d)]()},_0x610fd9(0x161)));}function _0x3fde5f(_0xa6bed4){var _0x13c18b=_0x137e72;return _0x5623d1[_0x13c18b(0x1af)](_0x5623d1[_0x13c18b(0x159)],null,_0x5623d1[_0x13c18b(0x1af)](_0x13c18b(0x1f4),{'className':_0x5114a4[_0x13c18b(0x1dd)]},_0x13c18b(0x1a3)),_0x5623d1[_0x13c18b(0x1af)](_0x271cf0['Button'],{'size':_0x13c18b(0x1a0),'type':_0x13c18b(0x169),'onClick':()=>_0xa6bed4[_0x13c18b(0x19a)][_0x13c18b(0x155)]()},_0x13c18b(0x1ae)));}function _0x576834(_0x3d30f4){var _0x2789a7=_0x137e72;return _0x5623d1['createElement'](_0x5623d1[_0x2789a7(0x159)],null,_0x5623d1[_0x2789a7(0x1af)]('div',{'className':_0x5114a4[_0x2789a7(0x1dd)]},_0x2789a7(0x1f3)),_0x5623d1[_0x2789a7(0x1af)](_0x271cf0[_0x2789a7(0x1e5)],{'size':_0x2789a7(0x1a0),'type':_0x2789a7(0x164),'onClick':()=>_0x3d30f4['coordinator']['startFollowing']()},_0x2789a7(0x1f2)));}function _0x4a3c72(_0x4cc933){var _0x578d68=_0x137e72;return _0x5623d1[_0x578d68(0x1af)](_0x5623d1[_0x578d68(0x159)],null,_0x5623d1['createElement'](_0x578d68(0x1f4),{'className':_0x5114a4['liveShareDropdownTitle']},_0x578d68(0x20a)),_0x5623d1[_0x578d68(0x1af)](_0x271cf0[_0x578d68(0x1e5)],{'size':_0x578d68(0x1a0),'type':'default','onClick':()=>_0x4cc933['coordinator'][_0x578d68(0x1b4)]()},'Stop\x20presenting'));}function _0x423354(){var _0x50face=_0x137e72;return _0x5623d1[_0x50face(0x1af)](_0x5623d1[_0x50face(0x159)],null,_0x50face(0x1a5));}var _0x11dcb7=Object['defineProperty'],_0x9cb85d=Object['getOwnPropertyDescriptor'],_0x5d7be8=(_0x537ffb,_0x3a74ce,_0x2fd195,_0x30b7d7)=>{var _0x2bdcab=_0x137e72;for(var _0x3da123=_0x30b7d7>0x1?void 0x0:_0x30b7d7?_0x9cb85d(_0x3a74ce,_0x2fd195):_0x3a74ce,_0x549541=_0x537ffb[_0x2bdcab(0x1b3)]-0x1,_0x4fe542;_0x549541>=0x0;_0x549541--)(_0x4fe542=_0x537ffb[_0x549541])&&(_0x3da123=(_0x30b7d7?_0x4fe542(_0x3a74ce,_0x2fd195,_0x3da123):_0x4fe542(_0x3da123))||_0x3da123);return _0x30b7d7&&_0x3da123&&_0x11dcb7(_0x3a74ce,_0x2fd195,_0x3da123),_0x3da123;},_0x42537b=(_0x1596ba,_0x403485)=>(_0x4e378d,_0x44d112)=>_0x403485(_0x4e378d,_0x44d112,_0x1596ba);let _0x180bef=class extends _0x5a7856[_0x137e72(0x158)]{constructor(_0x30a361,_0x733aa2){var _0x2c8dc8=_0x137e72;super(),this[_0x2c8dc8(0x20c)]=_0x30a361,this['_uiPartsService']=_0x733aa2,this[_0x2c8dc8(0x176)]();}['_mountLiveShare'](){var _0x5a9be0=_0x137e72;this['disposeWithMe'](this[_0x5a9be0(0x1f8)][_0x5a9be0(0x163)](_0x54fcf6[_0x5a9be0(0x162)][_0x5a9be0(0x15e)],()=>_0x5a7856[_0x5a9be0(0x1ea)](_0xbe1cbe,this[_0x5a9be0(0x20c)])));}};_0x180bef=_0x5d7be8([_0x5a7856['OnLifecycle'](_0x5a7856['LifecycleStages'][_0x137e72(0x152)],_0x180bef),_0x42537b(0x0,_0x5a7856[_0x137e72(0x1ec)](_0x5a7856['Injector'])),_0x42537b(0x1,_0x54fcf6[_0x137e72(0x1ef)])],_0x180bef);var _0x2b7ee1=Object['defineProperty'],_0x3078ac=Object[_0x137e72(0x1d8)],_0x302dac=(_0x98ea8f,_0x53ce74,_0x20fa68)=>_0x53ce74 in _0x98ea8f?_0x2b7ee1(_0x98ea8f,_0x53ce74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20fa68}):_0x98ea8f[_0x53ce74]=_0x20fa68,_0xd124a9=(_0x46da93,_0x2c6e57,_0x289757,_0x3191f3)=>{for(var _0x54c648=_0x3191f3>0x1?void 0x0:_0x3191f3?_0x3078ac(_0x2c6e57,_0x289757):_0x2c6e57,_0x264b4f=_0x46da93['length']-0x1,_0x10b685;_0x264b4f>=0x0;_0x264b4f--)(_0x10b685=_0x46da93[_0x264b4f])&&(_0x54c648=(_0x3191f3?_0x10b685(_0x2c6e57,_0x289757,_0x54c648):_0x10b685(_0x54c648))||_0x54c648);return _0x3191f3&&_0x54c648&&_0x2b7ee1(_0x2c6e57,_0x289757,_0x54c648),_0x54c648;},_0x56d469=(_0x263688,_0x4cf707)=>(_0x42ae2d,_0x1cce5a)=>_0x4cf707(_0x42ae2d,_0x1cce5a,_0x263688),_0x23547e=(_0x376f8c,_0x3f01be,_0x15a9e6)=>_0x302dac(_0x376f8c,typeof _0x3f01be!=_0x137e72(0x151)?_0x3f01be+'':_0x3f01be,_0x15a9e6);const _0x20edd2=_0x137e72(0x21b);_0x267f05['UniverLiveSharePlugin']=class extends _0x5a7856[_0x137e72(0x204)]{constructor(_0x4a64c6,_0x1d5d60){var _0x388730=_0x137e72;super(),this[_0x388730(0x20c)]=_0x1d5d60;}[_0x137e72(0x212)](_0x2b445a){var _0x9df56e=_0x137e72;[[_0x185dae],[_0x4c41d5],[_0x184ee1],[_0x180bef]]['forEach'](_0x257560=>_0x2b445a[_0x9df56e(0x177)](_0x257560));}},_0x23547e(_0x267f05[_0x137e72(0x1f9)],'type',_0x5a7856[_0x137e72(0x1d5)][_0x137e72(0x1c6)]),_0x23547e(_0x267f05[_0x137e72(0x1f9)],'pluginName',_0x20edd2),_0x267f05[_0x137e72(0x1f9)]=_0xd124a9([_0x5a7856[_0x137e72(0x196)](_0x1bc69f[_0x137e72(0x1de)]),_0x56d469(0x1,_0x5a7856[_0x137e72(0x1ec)](_0x5a7856[_0x137e72(0x1bb)]))],_0x267f05[_0x137e72(0x1f9)]),_0x267f05[_0x137e72(0x1f6)]=_0x185dae,Object[_0x137e72(0x1e6)](_0x267f05,Symbol['toStringTag'],{'value':_0x137e72(0x1cd)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,17 +46,16 @@
46
46
  "lib"
47
47
  ],
48
48
  "peerDependencies": {
49
- "@wendellhu/redi": "0.16.0",
50
49
  "clsx": ">=2.0.0",
51
50
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
52
51
  "rxjs": ">=7.0.0",
53
- "@univerjs-pro/collaboration": "0.2.4",
54
- "@univerjs-pro/collaboration-client": "0.2.4",
55
- "@univerjs/core": "0.2.4",
56
- "@univerjs/design": "0.2.4",
57
- "@univerjs/sheets": "0.2.4",
58
- "@univerjs/sheets-ui": "0.2.4",
59
- "@univerjs/ui": "0.2.4"
52
+ "@univerjs-pro/collaboration": "0.2.5",
53
+ "@univerjs-pro/collaboration-client": "0.2.5",
54
+ "@univerjs/core": "0.2.5",
55
+ "@univerjs/design": "0.2.5",
56
+ "@univerjs/sheets": "0.2.5",
57
+ "@univerjs/sheets-ui": "0.2.5",
58
+ "@univerjs/ui": "0.2.5"
60
59
  },
61
60
  "dependencies": {
62
61
  "@univerjs/icons": "^0.1.65",
@@ -64,7 +63,6 @@
64
63
  },
65
64
  "devDependencies": {
66
65
  "@types/react": "^18.3.3",
67
- "@wendellhu/redi": "0.16.0",
68
66
  "clsx": "^2.1.1",
69
67
  "less": "^4.2.0",
70
68
  "react": "18.3.1",
@@ -72,14 +70,14 @@
72
70
  "typescript": "^5.5.3",
73
71
  "vite": "^5.3.4",
74
72
  "vitest": "^2.0.3",
75
- "@univerjs-pro/collaboration-client": "0.2.4",
76
- "@univerjs-pro/collaboration": "0.2.4",
77
- "@univerjs/core": "0.2.4",
78
- "@univerjs/design": "0.2.4",
79
- "@univerjs/shared": "0.2.4",
80
- "@univerjs/sheets": "0.2.4",
81
- "@univerjs/sheets-ui": "0.2.4",
82
- "@univerjs/ui": "0.2.4"
73
+ "@univerjs-pro/collaboration": "0.2.5",
74
+ "@univerjs-pro/collaboration-client": "0.2.5",
75
+ "@univerjs/core": "0.2.5",
76
+ "@univerjs/design": "0.2.5",
77
+ "@univerjs/shared": "0.2.5",
78
+ "@univerjs/sheets": "0.2.5",
79
+ "@univerjs/sheets-ui": "0.2.5",
80
+ "@univerjs/ui": "0.2.5"
83
81
  },
84
82
  "univerSpace": {
85
83
  ".": {