@univerjs-pro/live-share 0.24.0 → 0.25.0-insiders.20260608-e4336f7

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x28f2c8=_0x1823;(function(_0xf6ed73,_0xf5635a){const _0x15b64d=_0x1823,_0x23c071=_0xf6ed73();while(!![]){try{const _0x3fb603=-parseInt(_0x15b64d(0xc8))/0x1+parseInt(_0x15b64d(0xc6))/0x2*(-parseInt(_0x15b64d(0xde))/0x3)+parseInt(_0x15b64d(0xc5))/0x4*(parseInt(_0x15b64d(0xdd))/0x5)+parseInt(_0x15b64d(0xbe))/0x6*(-parseInt(_0x15b64d(0xcd))/0x7)+-parseInt(_0x15b64d(0xc3))/0x8*(-parseInt(_0x15b64d(0xcb))/0x9)+parseInt(_0x15b64d(0xd5))/0xa+parseInt(_0x15b64d(0xd8))/0xb*(-parseInt(_0x15b64d(0xe3))/0xc);if(_0x3fb603===_0xf5635a)break;else _0x23c071['push'](_0x23c071['shift']());}catch(_0x5d37ac){_0x23c071['push'](_0x23c071['shift']());}}}(_0xc32e,0xb9a3a));let e=require(`@univerjs-pro/live-share`),t=require(`@univerjs/core`),n=require(`@univerjs/core/facade`);function r(_0x26b705){'@babel/helpers - typeof';const _0x6b3e=_0x1823;return r=typeof Symbol==_0x6b3e(0xbf)&&typeof Symbol['iterator']==_0x6b3e(0xdf)?function(_0x31ac7b){return typeof _0x31ac7b;}:function(_0x7fe6ce){const _0x324556=_0x6b3e;return _0x7fe6ce&&typeof Symbol==_0x324556(0xbf)&&_0x7fe6ce['constructor']===Symbol&&_0x7fe6ce!==Symbol[_0x324556(0xd9)]?_0x324556(0xdf):typeof _0x7fe6ce;},r(_0x26b705);}function i(_0x190c5c,_0x20d7d6){const _0x2113c1=_0x1823;if(r(_0x190c5c)!=_0x2113c1(0xd6)||!_0x190c5c)return _0x190c5c;var _0x5957d8=_0x190c5c[Symbol['toPrimitive']];if(_0x5957d8!==void 0x0){var _0x1d96fa=_0x5957d8[_0x2113c1(0xe0)](_0x190c5c,_0x20d7d6||'default');if(r(_0x1d96fa)!=_0x2113c1(0xd6))return _0x1d96fa;throw TypeError(_0x2113c1(0xc7));}return(_0x20d7d6==='string'?String:Number)(_0x190c5c);}function a(_0x1f4286){const _0x33bed9=_0x1823;var _0x5f0a41=i(_0x1f4286,_0x33bed9(0xc0));return r(_0x5f0a41)=='symbol'?_0x5f0a41:_0x5f0a41+'';}function _0xc32e(){const _0x165687=['UniverInstanceType','getLiveShareCoordinatorSync','9621840XIHtzC','getCurrentUnitOfType','796VUZYiZ','2yTQlNP','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','147188gxqZCf','getUnitId','FUniver','9RzyQpS','tryStartPresenting','14aDXhKO','getStatus','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','stopFollowing','FEnum','IUniverInstanceService','7371910SJpUED','object','LiveShareController','1738ULobCN','prototype','startFollowing','startPresenting','_liveShareController','32070MqmjkD','3364653zTAByY','symbol','call','_injector','LiveShareStatusEnum','65832MbBHoY','get','UNIVER_SHEET','961206IZuWOl','function','string'];_0xc32e=function(){return _0x165687;};return _0xc32e();}function o(_0x4ef7f7,_0xc52784,_0x1fd6cf){return(_0xc52784=a(_0xc52784))in _0x4ef7f7?Object['defineProperty'](_0x4ef7f7,_0xc52784,{'value':_0x1fd6cf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ef7f7[_0xc52784]=_0x1fd6cf,_0x4ef7f7;}var s=class extends n['FUniver']{constructor(..._0x104bec){super(..._0x104bec),o(this,'_liveShareController',void 0x0);}['_initialize'](_0x5346f6){const _0x30b8fe=_0x1823;this[_0x30b8fe(0xdc)]=_0x5346f6[_0x30b8fe(0xe4)](e[_0x30b8fe(0xd7)]);}['getLiveShareStatus'](){const _0x3d2ffc=_0x1823;var _0x3b5b1b;let _0x5445cd=this[_0x3d2ffc(0xe1)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x3d2ffc(0xe5)]);if(!_0x5445cd)throw Error(_0x3d2ffc(0xcf));let _0x38d33a=_0x5445cd['getUnitId'](),_0x22bc28=this[_0x3d2ffc(0xdc)][_0x3d2ffc(0xc2)](_0x38d33a);return(_0x3b5b1b=_0x22bc28==null?void 0x0:_0x22bc28[_0x3d2ffc(0xce)]())==null?e['LiveShareStatus']['IDLE']:_0x3b5b1b;}[_0x28f2c8(0xda)](){const _0x3447f0=_0x28f2c8;let _0x126b26=this[_0x3447f0(0xe1)]['get'](t[_0x3447f0(0xd4)])[_0x3447f0(0xc4)](t[_0x3447f0(0xc1)]['UNIVER_SHEET']);if(!_0x126b26)throw Error(_0x3447f0(0xcf));let _0x4a3b91=_0x126b26[_0x3447f0(0xc9)](),_0x42676d=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x4a3b91);if(!_0x42676d)throw Error(_0x3447f0(0xd0));_0x42676d['startFollowing']();}[_0x28f2c8(0xd2)](){const _0x46acc9=_0x28f2c8;let _0xb67893=this[_0x46acc9(0xe1)]['get'](t[_0x46acc9(0xd4)])[_0x46acc9(0xc4)](t[_0x46acc9(0xc1)]['UNIVER_SHEET']);if(!_0xb67893)throw Error(_0x46acc9(0xcf));let _0x23ae2f=_0xb67893[_0x46acc9(0xc9)](),_0x45d3d0=this[_0x46acc9(0xdc)][_0x46acc9(0xc2)](_0x23ae2f);if(!_0x45d3d0)throw Error(_0x46acc9(0xd0));_0x45d3d0[_0x46acc9(0xd2)]();}[_0x28f2c8(0xdb)](){const _0x4f9f84=_0x28f2c8;let _0x172e8b=this['_injector']['get'](t[_0x4f9f84(0xd4)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x4f9f84(0xe5)]);if(!_0x172e8b)throw Error(_0x4f9f84(0xcf));let _0x5127ad=_0x172e8b['getUnitId'](),_0x5e8543=this[_0x4f9f84(0xdc)][_0x4f9f84(0xc2)](_0x5127ad);if(!_0x5e8543)throw Error(_0x4f9f84(0xd0));_0x5e8543[_0x4f9f84(0xcc)]();}[_0x28f2c8(0xd1)](){const _0x36df87=_0x28f2c8;let _0x4c51db=this['_injector'][_0x36df87(0xe4)](t[_0x36df87(0xd4)])[_0x36df87(0xc4)](t[_0x36df87(0xc1)][_0x36df87(0xe5)]);if(!_0x4c51db)throw Error(_0x36df87(0xcf));let _0x5543c5=_0x4c51db[_0x36df87(0xc9)](),_0x45816c=this[_0x36df87(0xdc)]['getLiveShareCoordinatorSync'](_0x5543c5);if(!_0x45816c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x45816c[_0x36df87(0xd1)]();}};n[_0x28f2c8(0xca)]['extend'](s);function _0x1823(_0x49e153,_0x2eb3bd){_0x49e153=_0x49e153-0xbe;const _0xc32e83=_0xc32e();let _0x182366=_0xc32e83[_0x49e153];return _0x182366;}var c=class extends n[_0x28f2c8(0xd3)]{get[_0x28f2c8(0xe2)](){return e['LiveShareStatus'];}};n['FEnum']['extend'](c);
1
+ function _0x43ba(){const _0x222507=['7SSBngt','symbol','UniverInstanceType','defineProperty','constructor','265218QRkhgv','4549108SMuNEC','IDLE','87602bIiytx','stopFollowing','stopPresenting','string','getLiveShareCoordinatorSync','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FEnum','_liveShareController','32313384cSIHok','object','startPresenting','toPrimitive','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','tryStartPresenting','FUniver','getStatus','IUniverInstanceService','No\x20active\x20workbook\x20found.','function','getCurrentUnitOfType','1816211Bnanzw','prototype','LiveShareStatusEnum','getLiveShareStatus','get','extend','UNIVER_SHEET','LiveShareStatus','7728685wvrDyn','12150328KecaOe','_injector','114aHfNBz'];_0x43ba=function(){return _0x222507;};return _0x43ba();}const _0x25873f=_0x3934;(function(_0x341574,_0xf629f7){const _0x560b60=_0x3934,_0x81072=_0x341574();while(!![]){try{const _0x3b57d6=parseInt(_0x560b60(0xda))/0x1+parseInt(_0x560b60(0xc5))/0x2*(parseInt(_0x560b60(0xbc))/0x3)+parseInt(_0x560b60(0xc3))/0x4+-parseInt(_0x560b60(0xe2))/0x5+-parseInt(_0x560b60(0xc2))/0x6+-parseInt(_0x560b60(0xbd))/0x7*(-parseInt(_0x560b60(0xba))/0x8)+-parseInt(_0x560b60(0xcd))/0x9;if(_0x3b57d6===_0xf629f7)break;else _0x81072['push'](_0x81072['shift']());}catch(_0x1ef7bc){_0x81072['push'](_0x81072['shift']());}}}(_0x43ba,0xe97f1));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x15b8dd){'@babel/helpers - typeof';const _0x455c66=_0x3934;return r=typeof Symbol==_0x455c66(0xd8)&&typeof Symbol['iterator']==_0x455c66(0xbe)?function(_0xbf98bf){return typeof _0xbf98bf;}:function(_0x225464){const _0x474df4=_0x455c66;return _0x225464&&typeof Symbol==_0x474df4(0xd8)&&_0x225464[_0x474df4(0xc1)]===Symbol&&_0x225464!==Symbol[_0x474df4(0xdb)]?_0x474df4(0xbe):typeof _0x225464;},r(_0x15b8dd);}function _0x3934(_0x4a82b6,_0x296be5){_0x4a82b6=_0x4a82b6-0xba;const _0x43ba0c=_0x43ba();let _0x39342b=_0x43ba0c[_0x4a82b6];return _0x39342b;}function i(_0xf1d71c,_0x2bad69){const _0xe3cdf3=_0x3934;if(r(_0xf1d71c)!=_0xe3cdf3(0xce)||!_0xf1d71c)return _0xf1d71c;var _0x5ad0e2=_0xf1d71c[Symbol[_0xe3cdf3(0xd0)]];if(_0x5ad0e2!==void 0x0){var _0x1efdeb=_0x5ad0e2['call'](_0xf1d71c,_0x2bad69||'default');if(r(_0x1efdeb)!=_0xe3cdf3(0xce))return _0x1efdeb;throw TypeError(_0xe3cdf3(0xca));}return(_0x2bad69===_0xe3cdf3(0xc8)?String:Number)(_0xf1d71c);}function a(_0x1dda67){const _0x14997c=_0x3934;var _0x5182c6=i(_0x1dda67,'string');return r(_0x5182c6)==_0x14997c(0xbe)?_0x5182c6:_0x5182c6+'';}function o(_0x49b89b,_0xdb86dd,_0x1d295e){const _0x9cc35f=_0x3934;return(_0xdb86dd=a(_0xdb86dd))in _0x49b89b?Object[_0x9cc35f(0xc0)](_0x49b89b,_0xdb86dd,{'value':_0x1d295e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49b89b[_0xdb86dd]=_0x1d295e,_0x49b89b;}var s=class extends n['FUniver']{constructor(..._0x257dae){super(..._0x257dae),o(this,'_liveShareController',void 0x0);}['_initialize'](_0x3f4cdf){const _0x343c1e=_0x3934;this[_0x343c1e(0xcc)]=_0x3f4cdf[_0x343c1e(0xde)](e['LiveShareController']);}[_0x25873f(0xdd)](){const _0x33fd12=_0x25873f;var _0x1fb8c6;let _0x3b0df2=this[_0x33fd12(0xbb)][_0x33fd12(0xde)](t[_0x33fd12(0xd6)])['getCurrentUnitOfType'](t[_0x33fd12(0xbf)][_0x33fd12(0xe0)]);if(!_0x3b0df2)throw Error(_0x33fd12(0xd7));let _0x3fa713=_0x3b0df2[_0x33fd12(0xd1)](),_0x12021c=this['_liveShareController'][_0x33fd12(0xc9)](_0x3fa713);return(_0x1fb8c6=_0x12021c==null?void 0x0:_0x12021c[_0x33fd12(0xd5)]())==null?e[_0x33fd12(0xe1)][_0x33fd12(0xc4)]:_0x1fb8c6;}['startFollowing'](){const _0x3e7fc6=_0x25873f;let _0x4afcb2=this[_0x3e7fc6(0xbb)][_0x3e7fc6(0xde)](t[_0x3e7fc6(0xd6)])[_0x3e7fc6(0xd9)](t['UniverInstanceType'][_0x3e7fc6(0xe0)]);if(!_0x4afcb2)throw Error(_0x3e7fc6(0xd7));let _0x4ca30e=_0x4afcb2['getUnitId'](),_0x15aca2=this[_0x3e7fc6(0xcc)][_0x3e7fc6(0xc9)](_0x4ca30e);if(!_0x15aca2)throw Error(_0x3e7fc6(0xd2));_0x15aca2['startFollowing']();}['stopFollowing'](){const _0x24c07c=_0x25873f;let _0x22bfb3=this[_0x24c07c(0xbb)][_0x24c07c(0xde)](t[_0x24c07c(0xd6)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x24c07c(0xe0)]);if(!_0x22bfb3)throw Error(_0x24c07c(0xd7));let _0x4ad5f8=_0x22bfb3[_0x24c07c(0xd1)](),_0x4e380b=this[_0x24c07c(0xcc)][_0x24c07c(0xc9)](_0x4ad5f8);if(!_0x4e380b)throw Error(_0x24c07c(0xd2));_0x4e380b[_0x24c07c(0xc6)]();}[_0x25873f(0xcf)](){const _0x2c6f68=_0x25873f;let _0x257aef=this[_0x2c6f68(0xbb)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t[_0x2c6f68(0xbf)]['UNIVER_SHEET']);if(!_0x257aef)throw Error(_0x2c6f68(0xd7));let _0x29775e=_0x257aef[_0x2c6f68(0xd1)](),_0x6d9101=this[_0x2c6f68(0xcc)]['getLiveShareCoordinatorSync'](_0x29775e);if(!_0x6d9101)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x6d9101[_0x2c6f68(0xd3)]();}[_0x25873f(0xc7)](){const _0x45c5a8=_0x25873f;let _0x39e6fc=this[_0x45c5a8(0xbb)][_0x45c5a8(0xde)](t[_0x45c5a8(0xd6)])[_0x45c5a8(0xd9)](t[_0x45c5a8(0xbf)][_0x45c5a8(0xe0)]);if(!_0x39e6fc)throw Error('No\x20active\x20workbook\x20found.');let _0x3026f0=_0x39e6fc[_0x45c5a8(0xd1)](),_0x4f8ca2=this['_liveShareController'][_0x45c5a8(0xc9)](_0x3026f0);if(!_0x4f8ca2)throw Error(_0x45c5a8(0xd2));_0x4f8ca2['stopPresenting']();}};n[_0x25873f(0xd4)][_0x25873f(0xdf)](s);var c=class extends n[_0x25873f(0xcb)]{get[_0x25873f(0xdc)](){const _0x2609bd=_0x25873f;return e[_0x2609bd(0xe1)];}};n[_0x25873f(0xcb)][_0x25873f(0xdf)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x533ef0=_0x219b;(function(_0x519167,_0x9ec045){const _0x19fb52=_0x219b,_0x592149=_0x519167();while(!![]){try{const _0x57c773=-parseInt(_0x19fb52(0x125))/0x1*(-parseInt(_0x19fb52(0xa4))/0x2)+parseInt(_0x19fb52(0x85))/0x3+-parseInt(_0x19fb52(0xea))/0x4*(parseInt(_0x19fb52(0xa8))/0x5)+parseInt(_0x19fb52(0x133))/0x6+parseInt(_0x19fb52(0xa6))/0x7*(parseInt(_0x19fb52(0x138))/0x8)+-parseInt(_0x19fb52(0x96))/0x9+parseInt(_0x19fb52(0xa5))/0xa*(-parseInt(_0x19fb52(0x11b))/0xb);if(_0x57c773===_0x9ec045)break;else _0x592149['push'](_0x592149['shift']());}catch(_0x56bd7f){_0x592149['push'](_0x592149['shift']());}}}(_0x5411,0x8b7c4),Object[_0x533ef0(0x97)](exports,Symbol[_0x533ef0(0xaa)],{'value':_0x533ef0(0x127)}));let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`@univerjs/design`),r=require(`@univerjs/icons`),i=require(`react`),a=require(`@univerjs-pro/collaboration`),o=require(`@univerjs-pro/collaboration-client`),s=require(`@univerjs/sheets`),c=require(`rxjs`),l=require(`rxjs/operators`),u=require(`react/jsx-runtime`),d=require(`@univerjs/sheets-ui`);function _0x5411(){const _0x485f31=['toPrimitive','forEach','get','LIVESHARE_FETCH_OPERATIONS','set','36eIJFRi','4924970qyLhMM','2192197FsVwvw','getCurrentTypeOfUnit$','5YKAGSB','HEADER_MENU','toStringTag','button','LiveShareCoordinator','UNIVER_SHEET','ICommandService','LiveShareService','_liveShareService','UniverInstanceType','has','mutations','_collabSession','useObservable','SetZoomRatioOperation','InsertSheetMutation','Plugin','packageName','touchDependencies','not-following','stopPresenting','default','_stopPresenting','_presenter','current','dispose$','toDisposable','dispose','map','symbol','function','getMemberID','useDependency','LiveShareController','SessionStatus','PRESENTING','getValue','UNIVER_LIVE_SHARE_PLUGIN','sessionStatus$','SetWorksheetActiveOperation','delete','send','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','add','_startFollowing','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','LiveShareStatus','length','OFFLINE','params','_collabSessionService','DesktopLiveShareController','call','getOwnPropertyDescriptor','LIVESHARE_NEW_HOST','_mountLiveShare','IConfigService','You\x27are\x20offline.','then','_config','_beIdle','SAME_OPERATION_SHARE_INTERVAL','_startPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','3200476pNmDjj','Subject','unitId','asObservable','UniverCollaborationClientPlugin','jsx','getTypeOfUnitDisposed$','0.24.0','subscribe','Stop\x20presenting','onStarting','_sharedOperations','Dropdown','OPERATION','object','_commandDisposable','LIVESHARE_OPERATION','_handleOperation','_reporters','disposeWithMe','UNIVER_UNKNOWN','data','connectInjector','registerSharedOperation','jsxs','createInstance','getUnitId','useRef','unsubscribe','NOT_FOLLOWING','mergeOverrideWithDependencies','text','div','CollaborationSessionService','RxDisposable','_stopFollowing','You\x27re\x20following\x20the\x20presenter','unit','event$','registerComponent','_unitID','presenter','getTypeOfUnitAdded$','merge','ONLINE','complete','registerDependencies','BehaviorSubject','_injector','11ycOqhn','IUIPartsService','live-share.config','string','_handleTerminate','presenting','_configService','DisposableCollection','CollaborationEvent','getInitialStates','32919qSbmIT','_status','Module','_status$','prototype','getLiveShareCoordinatorSync','status$','tryStartPresenting','startFollowing','takeUntil','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewChangeSets','includes','find','3107370wFaVvg','decorate','offline','clsx','_commandService','8VwjiaF','pipe','_handleOffline','executeCommand','following','SetScrollOperation','Button','FOLLOWING','from','requireSession','idle','Inject','IUniverInstanceService','shouldShareOperation','onCommandExecuted','clear','@univerjs-pro/live-share','Fragment','_uiPartsService','registerInitialStateReporter','_startLiveShareCoordinator','NEW_CHANGESETS','LIVESHARE_TERMINATE','iterator','_handleNewHost','getLiveShareCoordinator','stringify','type','_init','1381107euUECu','_fetchOperations','parseProtocolChangeset','You\x27re\x20not\x20following\x20the\x20presenter','constructor','end','operations','useEffect','Start','throttleTime','Disposable','next','Injector','_entities','_univerInstanceService','Stop\x20following','useState','180261heOpMT','defineProperty','stopFollowing','init','_handleOnline','memberID','onRendered','CommandType','getConfig'];_0x5411=function(){return _0x485f31;};return _0x5411();}function f(_0x52e5d7){'@babel/helpers - typeof';const _0x3a6e42=_0x533ef0;return f=typeof Symbol==_0x3a6e42(0xc6)&&typeof Symbol[_0x3a6e42(0x7f)]==_0x3a6e42(0xc5)?function(_0x5afbbd){return typeof _0x5afbbd;}:function(_0x91c131){const _0x30aba9=_0x3a6e42;return _0x91c131&&typeof Symbol==_0x30aba9(0xc6)&&_0x91c131[_0x30aba9(0x89)]===Symbol&&_0x91c131!==Symbol[_0x30aba9(0x129)]?_0x30aba9(0xc5):typeof _0x91c131;},f(_0x52e5d7);}function p(_0x2f14d9,_0xb4db8a){const _0x54095e=_0x533ef0;if(f(_0x2f14d9)!='object'||!_0x2f14d9)return _0x2f14d9;var _0x1fed19=_0x2f14d9[Symbol[_0x54095e(0x9f)]];if(_0x1fed19!==void 0x0){var _0x2b24e1=_0x1fed19[_0x54095e(0xdd)](_0x2f14d9,_0xb4db8a||_0x54095e(0xbd));if(f(_0x2b24e1)!=_0x54095e(0xf8))return _0x2b24e1;throw TypeError(_0x54095e(0xd2));}return(_0xb4db8a===_0x54095e(0x11e)?String:Number)(_0x2f14d9);}function m(_0xa6ee1){const _0x19bb36=_0x533ef0;var _0x2db95e=p(_0xa6ee1,_0x19bb36(0x11e));return f(_0x2db95e)==_0x19bb36(0xc5)?_0x2db95e:_0x2db95e+'';}function h(_0x4da490,_0x28eac5,_0x47b0a7){return(_0x28eac5=m(_0x28eac5))in _0x4da490?Object['defineProperty'](_0x4da490,_0x28eac5,{'value':_0x47b0a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4da490[_0x28eac5]=_0x47b0a7,_0x4da490;}var g=class extends e[_0x533ef0(0x8f)]{constructor(..._0x3b7608){super(..._0x3b7608),h(this,'_sharedOperations',new Set()),h(this,'_reporters',new Set());}[_0x533ef0(0x101)](_0x42aa08){const _0x2c0280=_0x533ef0;return this[_0x2c0280(0xf5)][_0x2c0280(0xd3)](_0x42aa08),(0x0,e[_0x2c0280(0xc2)])(()=>this['_sharedOperations'][_0x2c0280(0xd0)](_0x42aa08));}[_0x533ef0(0x7b)](_0x5a9f4b){const _0x56a09a=_0x533ef0;return this[_0x56a09a(0xfc)][_0x56a09a(0xd3)](_0x5a9f4b),(0x0,e['toDisposable'])(()=>this[_0x56a09a(0xfc)]['delete'](_0x5a9f4b));}[_0x533ef0(0x75)](_0x1b8186){const _0x39b6c2=_0x533ef0;return this['_sharedOperations'][_0x39b6c2(0xb2)](_0x1b8186);}['getInitialStates'](_0x1ba842){const _0x81906b=_0x533ef0;return Array[_0x81906b(0x140)](this[_0x81906b(0xfc)])[_0x81906b(0xc4)](_0x2b10f9=>_0x2b10f9(_0x1ba842));}};function _(_0x1ce259,_0x46224b){return function(_0x1b6234,_0x122a97){_0x46224b(_0x1b6234,_0x122a97,_0x1ce259);};}function v(_0x5f195f,_0x2bcbb3,_0x78ecad,_0x10f505){const _0x17187b=_0x533ef0;var _0x4155f8=arguments[_0x17187b(0xd8)],_0x200f60=_0x4155f8<0x3?_0x2bcbb3:_0x10f505===null?_0x10f505=Object[_0x17187b(0xde)](_0x2bcbb3,_0x78ecad):_0x10f505,_0x3b48b0;if(typeof Reflect==_0x17187b(0xf8)&&typeof Reflect[_0x17187b(0x134)]==_0x17187b(0xc6))_0x200f60=Reflect[_0x17187b(0x134)](_0x5f195f,_0x2bcbb3,_0x78ecad,_0x10f505);else{for(var _0x3d5a6e=_0x5f195f[_0x17187b(0xd8)]-0x1;_0x3d5a6e>=0x0;_0x3d5a6e--)(_0x3b48b0=_0x5f195f[_0x3d5a6e])&&(_0x200f60=(_0x4155f8<0x3?_0x3b48b0(_0x200f60):_0x4155f8>0x3?_0x3b48b0(_0x2bcbb3,_0x78ecad,_0x200f60):_0x3b48b0(_0x2bcbb3,_0x78ecad))||_0x200f60);}return _0x4155f8>0x3&&_0x200f60&&Object[_0x17187b(0x97)](_0x2bcbb3,_0x78ecad,_0x200f60),_0x200f60;}let y=class extends e['RxDisposable']{constructor(_0x1def8b,_0x4055b9,_0x5cd14c){const _0x5551e8=_0x533ef0;super(),this['_univerInstanceService']=_0x1def8b,this['_injector']=_0x4055b9,this[_0x5551e8(0xdb)]=_0x5cd14c,h(this,_0x5551e8(0x92),new Map()),this[_0x5551e8(0x84)]();}async['getLiveShareCoordinator'](_0x40c90f){const _0x490cc8=_0x533ef0;return this['_entities'][_0x490cc8(0xb2)](_0x40c90f)||await this[_0x490cc8(0x7c)](_0x40c90f),this[_0x490cc8(0x92)][_0x490cc8(0xa1)](_0x40c90f);}[_0x533ef0(0x12a)](_0x4af140){const _0x50716f=_0x533ef0;var _0x38aa3e;return(_0x38aa3e=this[_0x50716f(0x92)][_0x50716f(0xa1)](_0x4af140))==null?null:_0x38aa3e;}[_0x533ef0(0x84)](){const _0x117ab6=_0x533ef0;this[_0x117ab6(0x93)][_0x117ab6(0x114)](e[_0x117ab6(0xb1)][_0x117ab6(0xad)])['pipe']((0x0,l[_0x117ab6(0x12e)])(this[_0x117ab6(0xc1)]))[_0x117ab6(0xf2)](async _0x3b70e6=>{const _0x3c005b=_0x117ab6;let _0x4994fa=_0x3b70e6[_0x3c005b(0x10f)][_0x3c005b(0x104)]();this['_entities'][_0x3c005b(0xb2)](_0x4994fa)||this[_0x3c005b(0x7c)](_0x4994fa);}),this[_0x117ab6(0x93)][_0x117ab6(0xf0)](e['UniverInstanceType'][_0x117ab6(0xad)])[_0x117ab6(0x139)]((0x0,l[_0x117ab6(0x12e)])(this[_0x117ab6(0xc1)]))['subscribe'](_0x3bf702=>{const _0xa7c665=_0x117ab6;let _0x3e0fad=_0x3bf702['getUnitId'](),_0x23464b=this['_entities'][_0xa7c665(0xa1)](_0x3e0fad);_0x23464b==null||_0x23464b[_0xa7c665(0xc3)]();});}async[_0x533ef0(0x7c)](_0x46e47d){const _0x10c69c=_0x533ef0;let _0x4945ae=await this['_collabSessionService'][_0x10c69c(0x141)](_0x46e47d),_0x1b6d07=this[_0x10c69c(0x11a)][_0x10c69c(0x103)](x,_0x46e47d,_0x4945ae);return _0x1b6d07[_0x10c69c(0x99)](),this[_0x10c69c(0x92)][_0x10c69c(0xa3)](_0x46e47d,_0x1b6d07),_0x1b6d07;}};y=v([_(0x0,e[_0x533ef0(0x144)]),_(0x1,(0x0,e[_0x533ef0(0x143)])(e['Injector'])),_(0x2,(0x0,e[_0x533ef0(0x143)])(o[_0x533ef0(0x10b)]))],y);let b=function(_0x5787cf){const _0x2c8f18=_0x533ef0;return _0x5787cf[_0x2c8f18(0xd9)]=_0x2c8f18(0x135),_0x5787cf[_0x2c8f18(0xe9)]=_0x2c8f18(0x142),_0x5787cf[_0x2c8f18(0x13f)]=_0x2c8f18(0x13c),_0x5787cf[_0x2c8f18(0x107)]=_0x2c8f18(0xbb),_0x5787cf[_0x2c8f18(0xcb)]=_0x2c8f18(0x120),_0x5787cf;}({}),x=class extends e[_0x533ef0(0x10c)]{get['_status'](){const _0x40b21a=_0x533ef0;return this['_status$'][_0x40b21a(0xcc)]();}constructor(_0x100a46,_0x131377,_0x1fec7d,_0x17d7ae,_0x2fccbb){const _0x2c6792=_0x533ef0;super(),this[_0x2c6792(0x112)]=_0x100a46,this[_0x2c6792(0xb4)]=_0x131377,this[_0x2c6792(0x121)]=_0x1fec7d,this[_0x2c6792(0xb0)]=_0x17d7ae,this[_0x2c6792(0x137)]=_0x2fccbb,h(this,_0x2c6792(0x128),new c[(_0x2c6792(0x119))](_0x2c6792(0x142))),h(this,'status$',this[_0x2c6792(0x128)][_0x2c6792(0xed)]()),h(this,'_init',!0x1),h(this,_0x2c6792(0xf9),null),h(this,_0x2c6792(0xbf),null);}[_0x533ef0(0xc3)](){const _0x2218f3=_0x533ef0;var _0x246f32;(_0x246f32=this['_commandDisposable'])==null||_0x246f32[_0x2218f3(0xc3)](),this[_0x2218f3(0x128)][_0x2218f3(0x90)](_0x2218f3(0x142)),this[_0x2218f3(0x128)][_0x2218f3(0x117)]();}['getStatus'](){const _0x137b52=_0x533ef0;return this[_0x137b52(0x126)];}[_0x533ef0(0x99)](){const _0xa29356=_0x533ef0;this[_0xa29356(0x84)]||(this[_0xa29356(0x84)]=!0x0,this[_0xa29356(0xb4)][_0xa29356(0xce)][_0xa29356(0x139)]((0x0,l[_0xa29356(0x12e)])(this[_0xa29356(0xc1)]))[_0xa29356(0xf2)](_0x4e44a6=>{const _0x32c583=_0xa29356;switch(_0x4e44a6){case o[_0x32c583(0xca)][_0x32c583(0xd9)]:this['_handleOffline']();break;case o[_0x32c583(0xca)][_0x32c583(0x116)]:this['_handleOnline']();break;default:}}),this[_0xa29356(0xb4)][_0xa29356(0x110)][_0xa29356(0x139)]((0x0,l[_0xa29356(0x12e)])(this[_0xa29356(0xc1)]))[_0xa29356(0xf2)](_0x55e901=>{const _0x203af4=_0xa29356;let {eventID:_0x522ea7}=_0x55e901;switch(_0x522ea7){case a[_0x203af4(0x123)][_0x203af4(0xdf)]:this[_0x203af4(0x80)](_0x55e901);break;case a[_0x203af4(0x123)][_0x203af4(0xfa)]:this[_0x203af4(0xfb)](_0x55e901);break;case a[_0x203af4(0x123)][_0x203af4(0x7e)]:this[_0x203af4(0x11f)]();break;case a[_0x203af4(0x123)][_0x203af4(0x7d)]:this[_0x203af4(0x130)](_0x55e901);break;default:}}));}[_0x533ef0(0x12c)](){const _0x4467f7=_0x533ef0;this['_collabSession'][_0x4467f7(0xd1)]({'eventID':a[_0x4467f7(0x123)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4467f7(0x112)],'userID':this['_collabSession']['getMemberID']()}},this[_0x4467f7(0x112)]);}[_0x533ef0(0xbc)](){const _0x19aa95=_0x533ef0;this[_0x19aa95(0x126)]===_0x19aa95(0x120)&&(this['_status$'][_0x19aa95(0x90)](_0x19aa95(0x142)),this[_0x19aa95(0xb4)][_0x19aa95(0xd1)]({'eventID':a[_0x19aa95(0x123)][_0x19aa95(0x7e)],'data':{'unitID':this[_0x19aa95(0x112)]}},this[_0x19aa95(0x112)]));}[_0x533ef0(0x12d)](){const _0xa06b12=_0x533ef0;this[_0xa06b12(0x126)]===_0xa06b12(0xbb)&&(this[_0xa06b12(0x128)][_0xa06b12(0x90)](_0xa06b12(0x13c)),this[_0xa06b12(0xd4)]());}[_0x533ef0(0x98)](){const _0x498f21=_0x533ef0;this[_0x498f21(0x126)]===_0x498f21(0x13c)&&this[_0x498f21(0x10d)]();}[_0x533ef0(0x80)](_0x27d367){const _0x37b81b=_0x533ef0;let {presenter:_0x28b365}=_0x27d367['data'],_0xc0cdb3=this[_0x37b81b(0xb4)][_0x37b81b(0xc7)]();this[_0x37b81b(0xbf)]=_0x28b365,_0x28b365===_0xc0cdb3?(this[_0x37b81b(0x10d)](),this[_0x37b81b(0xe7)]()):this['_status']!=='not-following'&&(this[_0x37b81b(0xbe)](),this[_0x37b81b(0xd4)]());}[_0x533ef0(0x86)](){const _0x27309c=_0x533ef0;let _0x86524e={'eventID':a[_0x27309c(0x123)][_0x27309c(0xa2)]};this[_0x27309c(0xb4)][_0x27309c(0xd1)](_0x86524e,this[_0x27309c(0x112)]);}[_0x533ef0(0x11f)](){const _0x8e4505=_0x533ef0;this[_0x8e4505(0xbf)]=null,this['_status']!==_0x8e4505(0x120)&&this[_0x8e4505(0xe5)]();}[_0x533ef0(0x130)](_0x5dac58){const _0x515b18=_0x533ef0;if(this[_0x515b18(0x126)]===_0x515b18(0x13c)&&this[_0x515b18(0xbf)]===_0x5dac58['data'][_0x515b18(0x9b)]){let _0x10fc60=(0x0,a[_0x515b18(0x87)])(_0x5dac58[_0x515b18(0xff)])[_0x515b18(0xb3)]['reverse']()[_0x515b18(0x132)](_0x1d45a3=>_0x1d45a3['id']===s[_0x515b18(0xb7)]['id']);if(_0x10fc60){let _0x2bf77b=_0x10fc60[_0x515b18(0xda)][_0x515b18(0xec)],_0xb5080f=_0x10fc60[_0x515b18(0xda)]['sheet']['id'];setTimeout(()=>{const _0x37f2e5=_0x515b18;this['_commandService'][_0x37f2e5(0x13b)](s['SetWorksheetActiveOperation']['id'],{'unitId':_0x2bf77b,'subUnitId':_0xb5080f},{'fromCollab':!0x0});});}}}[_0x533ef0(0xe7)](){const _0x41965b=_0x533ef0;var _0x247822;(_0x247822=this[_0x41965b(0xf9)])==null||_0x247822[_0x41965b(0xc3)](),this[_0x41965b(0x128)][_0x41965b(0x90)](_0x41965b(0x120));let _0x15c502=new Map(),_0x5a4345=this[_0x41965b(0xf9)]=new e[(_0x41965b(0x122))]();_0x5a4345['add']((0x0,e[_0x41965b(0xc2)])(()=>{const _0x30c190=_0x41965b;_0x15c502[_0x30c190(0xa0)](({subject:_0x3ea0ac,subscription:_0x45a97e})=>{const _0x26ab60=_0x30c190;_0x45a97e[_0x26ab60(0x106)](),_0x3ea0ac[_0x26ab60(0x117)]();}),_0x15c502[_0x30c190(0x77)]();})),_0x5a4345['add'](this[_0x41965b(0x137)][_0x41965b(0x76)](_0x5da1d0=>{const _0x28d0ab=_0x41965b;if(_0x5da1d0[_0x28d0ab(0x83)]!==e[_0x28d0ab(0x9d)][_0x28d0ab(0xf7)]||!this['_liveShareService'][_0x28d0ab(0x75)](_0x5da1d0['id']))return;let {id:_0x124f94}=_0x5da1d0,_0x4e5306;if(_0x15c502[_0x28d0ab(0xb2)](_0x124f94))_0x4e5306=_0x15c502['get'](_0x124f94)['subject'];else{var _0x2647d8;_0x4e5306=new c[(_0x28d0ab(0xeb))]();let _0x430876=_0x4e5306[_0x28d0ab(0x139)]((0x0,l[_0x28d0ab(0x8e)])((_0x2647d8=this[_0x28d0ab(0x121)][_0x28d0ab(0x9e)](_0x28d0ab(0xe6)))==null?0xc8:_0x2647d8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x28d0ab(0xf2)](_0x581b7f=>{const _0x5d4b78=_0x28d0ab;this[_0x5d4b78(0xb4)][_0x5d4b78(0xd1)]({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d4b78(0x112)],'operations':{[_0x581b7f['id']]:{'id':_0x581b7f['id'],'params':JSON[_0x5d4b78(0x82)](_0x581b7f[_0x5d4b78(0xda)])}}}},this[_0x5d4b78(0x112)]);});_0x15c502['set'](_0x124f94,{'subject':_0x4e5306,'subscription':_0x430876});}_0x4e5306[_0x28d0ab(0x90)](_0x5da1d0);})),this['_liveShareService'][_0x41965b(0x124)](this[_0x41965b(0x112)])[_0x41965b(0xa0)](_0x5c1dc7=>this[_0x41965b(0xb4)]['send']({'eventID':a['CollaborationEvent'][_0x41965b(0xfa)],'data':{'unitID':this[_0x41965b(0x112)],'operations':{[_0x5c1dc7['id']]:{'id':_0x5c1dc7['id'],'params':JSON[_0x41965b(0x82)](_0x5c1dc7[_0x41965b(0xda)])}}}},this[_0x41965b(0x112)]));}[_0x533ef0(0xbe)](){const _0x5c9f8c=_0x533ef0;var _0x40b809;this[_0x5c9f8c(0x128)]['next']('idle'),(_0x40b809=this[_0x5c9f8c(0xf9)])==null||_0x40b809[_0x5c9f8c(0xc3)](),this[_0x5c9f8c(0xf9)]=null;}['_startFollowing'](){const _0x5abe3a=_0x533ef0;var _0x4206f3;(_0x4206f3=this[_0x5abe3a(0xf9)])==null||_0x4206f3['dispose'](),this[_0x5abe3a(0x128)][_0x5abe3a(0x90)]('following');}[_0x533ef0(0xe5)](){const _0x51b3f5=_0x533ef0;var _0x34c456;this[_0x51b3f5(0x128)][_0x51b3f5(0x90)]('idle'),(_0x34c456=this['_commandDisposable'])==null||_0x34c456[_0x51b3f5(0xc3)](),this['_commandDisposable']=null;}[_0x533ef0(0x10d)](){const _0x1bb28c=_0x533ef0;var _0x12118f;this[_0x1bb28c(0x128)][_0x1bb28c(0x90)](_0x1bb28c(0xbb)),(_0x12118f=this[_0x1bb28c(0xf9)])==null||_0x12118f[_0x1bb28c(0xc3)]();}[_0x533ef0(0xfb)](_0x57c833){const _0xd966aa=_0x533ef0;if([_0xd966aa(0x120),_0xd966aa(0xbb),_0xd966aa(0x135)][_0xd966aa(0x131)](this[_0xd966aa(0x126)])||!_0x57c833['data'][_0xd966aa(0x113)]||_0x57c833[_0xd966aa(0xff)][_0xd966aa(0x113)]===this[_0xd966aa(0xb4)][_0xd966aa(0xc7)]())return;this[_0xd966aa(0x126)]==='idle'&&this[_0xd966aa(0xd4)]();let _0x184532=_0x57c833[_0xd966aa(0xff)][_0xd966aa(0x8b)];Object['values'](_0x184532)[_0xd966aa(0xa0)](_0x69678b=>{const _0x10b080=_0xd966aa;this[_0x10b080(0x137)][_0x10b080(0x13b)](_0x69678b['id'],_0x69678b[_0x10b080(0xda)]?JSON['parse'](_0x69678b[_0x10b080(0xda)]):null,{'fromCollab':!0x0});});}[_0x533ef0(0x13a)](){const _0x4e81f5=_0x533ef0;var _0x2fd860;this[_0x4e81f5(0x128)][_0x4e81f5(0x90)](_0x4e81f5(0x135)),(_0x2fd860=this[_0x4e81f5(0xf9)])==null||_0x2fd860[_0x4e81f5(0xc3)]();}[_0x533ef0(0x9a)](){const _0x2fc600=_0x533ef0;this['_status$'][_0x2fc600(0x90)](_0x2fc600(0x142)),this['_fetchOperations']();}};x=v([_(0x2,e['IConfigService']),_(0x3,(0x0,e['Inject'])(g)),_(0x4,e[_0x533ef0(0xae)])],x);function _0x219b(_0x1b55e1,_0x5a5e8b){_0x1b55e1=_0x1b55e1-0x75;const _0x54114d=_0x5411();let _0x219bdd=_0x54114d[_0x1b55e1];return _0x219bdd;}function S(){const _0x441272=_0x533ef0;let _0x55d2b3=(0x0,t['useDependency'])(y),_0x183daa=(0x0,t[_0x441272(0xc8)])(e[_0x441272(0x144)]),_0x525189=(0x0,t[_0x441272(0xb5)])(()=>_0x183daa[_0x441272(0xa7)](e[_0x441272(0xb1)][_0x441272(0xad)]),void 0x0,!0x1,[]),[_0x1517e0,_0x2f374e]=(0x0,i['useState'])(null),[_0x39750b,_0x4c8844]=(0x0,i[_0x441272(0x95)])('idle'),_0x360c35=(0x0,i[_0x441272(0x105)])(null);return(0x0,i[_0x441272(0x8c)])(()=>(_0x525189&&_0x55d2b3[_0x441272(0x81)](_0x525189[_0x441272(0x104)]())[_0x441272(0xe3)](_0x4d63ea=>{const _0x37bcea=_0x441272;_0x2f374e(_0x4d63ea),_0x360c35[_0x37bcea(0xc0)]=_0x4d63ea[_0x37bcea(0x12b)][_0x37bcea(0xf2)](_0x3b2fbd=>{_0x4c8844(_0x3b2fbd);});}),()=>{const _0x982ce6=_0x441272;var _0x50f7e9;(_0x50f7e9=_0x360c35[_0x982ce6(0xc0)])==null||_0x50f7e9['unsubscribe'](),_0x360c35[_0x982ce6(0xc0)]=null;}),[_0x525189,_0x55d2b3]),_0x1517e0?(0x0,u[_0x441272(0xef)])(n[_0x441272(0xf6)],{'align':_0x441272(0x8a),'disabled':_0x39750b==='offline','className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':(0x0,u[_0x441272(0xef)])(C,{'status':_0x39750b,'coordinator':_0x1517e0}),'children':(0x0,u[_0x441272(0xef)])(_0x441272(0xab),{'className':(0x0,n[_0x441272(0x136)])(_0x441272(0xe8),{'univer-cursor-not-allowed':_0x39750b===_0x441272(0x135),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39750b!=='offline'}),'type':_0x441272(0xab),'children':(0x0,u[_0x441272(0xef)])(r['LiveShareIcon'],{'className':'univer-size-4'})})}):null;}function C(_0x1df82c){const _0xc1d989=_0x533ef0;let {status:_0x4436cd,coordinator:_0x4a9930}=_0x1df82c;switch(_0x4436cd){case _0xc1d989(0x142):return(0x0,u[_0xc1d989(0xef)])(w,{'coordinator':_0x4a9930});case'following':return(0x0,u[_0xc1d989(0xef)])(T,{'coordinator':_0x4a9930});case _0xc1d989(0xbb):return(0x0,u[_0xc1d989(0xef)])(E,{'coordinator':_0x4a9930});case _0xc1d989(0x135):return(0x0,u[_0xc1d989(0xef)])(O,{});case _0xc1d989(0x120):return(0x0,u[_0xc1d989(0xef)])(D,{'coordinator':_0x4a9930});default:return null;}}function w(_0x3994a7){const _0x102329=_0x533ef0;let {coordinator:_0x549316}=_0x3994a7;return(0x0,u[_0x102329(0x102)])(u[_0x102329(0x79)],{'children':[(0x0,u[_0x102329(0xef)])(_0x102329(0x10a),{'className':_0x102329(0x12f),'children':_0x102329(0xd5)}),(0x0,u[_0x102329(0xef)])(n[_0x102329(0x13e)],{'onClick':()=>_0x549316['tryStartPresenting'](),'children':_0x102329(0x8d)})]});}function T(_0x5eccf5){const _0x14032a=_0x533ef0;let {coordinator:_0x6bca05}=_0x5eccf5;return(0x0,u[_0x14032a(0x102)])(u[_0x14032a(0x79)],{'children':[(0x0,u[_0x14032a(0xef)])(_0x14032a(0x10a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x14032a(0x10e)}),(0x0,u[_0x14032a(0xef)])(n['Button'],{'onClick':()=>_0x6bca05[_0x14032a(0x98)](),'children':_0x14032a(0x94)})]});}function E(_0x173b51){const _0x2a4a92=_0x533ef0;let {coordinator:_0x585eb2}=_0x173b51;return(0x0,u[_0x2a4a92(0x102)])(u[_0x2a4a92(0x79)],{'children':[(0x0,u[_0x2a4a92(0xef)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2a4a92(0x88)}),(0x0,u[_0x2a4a92(0xef)])(n[_0x2a4a92(0x13e)],{'variant':_0x2a4a92(0x109),'onClick':()=>_0x585eb2[_0x2a4a92(0x12d)](),'children':'Start\x20following'})]});}function D(_0x142394){const _0x430585=_0x533ef0;let {coordinator:_0x33b42c}=_0x142394;return(0x0,u['jsxs'])(u['Fragment'],{'children':[(0x0,u[_0x430585(0xef)])(_0x430585(0x10a),{'className':_0x430585(0x12f),'children':_0x430585(0xd6)}),(0x0,u['jsx'])(n['Button'],{'variant':_0x430585(0xbd),'onClick':()=>_0x33b42c[_0x430585(0xbc)](),'children':_0x430585(0xf3)})]});}function O(){const _0x526aa6=_0x533ef0;return(0x0,u[_0x526aa6(0xef)])(u[_0x526aa6(0x79)],{'children':_0x526aa6(0xe2)});}let k=class extends e[_0x533ef0(0x8f)]{constructor(_0x5bc13f,_0x3d553e){const _0xbcc56e=_0x533ef0;super(),this[_0xbcc56e(0x11a)]=_0x5bc13f,this[_0xbcc56e(0x7a)]=_0x3d553e,this[_0xbcc56e(0xe0)]();}[_0x533ef0(0xe0)](){const _0x320699=_0x533ef0;this[_0x320699(0xfd)](this['_uiPartsService'][_0x320699(0x111)](t['BuiltInUIPart'][_0x320699(0xa9)],()=>(0x0,t[_0x320699(0x100)])(S,this[_0x320699(0x11a)])));}};k=v([_(0x0,(0x0,e[_0x533ef0(0x143)])(e[_0x533ef0(0x91)])),_(0x1,t[_0x533ef0(0x11c)])],k);var A=_0x533ef0(0x78),j=_0x533ef0(0xf1);const M=_0x533ef0(0x11d);Symbol(M);const N={};let P=class extends e[_0x533ef0(0x8f)]{constructor(_0x503620){const _0x2fd352=_0x533ef0;super(),this['_liveShareService']=_0x503620,this[_0x2fd352(0x84)]();}[_0x533ef0(0x84)](){const _0x4c4586=_0x533ef0;[d[_0x4c4586(0xb6)]['id'],d[_0x4c4586(0x13d)]['id'],s[_0x4c4586(0xcf)]['id']][_0x4c4586(0xa0)](_0x205b13=>{const _0x4bf294=_0x4c4586;this['disposeWithMe'](this[_0x4bf294(0xb0)][_0x4bf294(0x101)](_0x205b13));});}};P=v([_(0x0,(0x0,e[_0x533ef0(0x143)])(g))],P);let F=class extends e[_0x533ef0(0xb8)]{constructor(_0x4c87f0=N,_0x2af784,_0x3201d2){const _0x23dd47=_0x533ef0;super(),this[_0x23dd47(0xe4)]=_0x4c87f0,this[_0x23dd47(0x11a)]=_0x2af784,this[_0x23dd47(0x121)]=_0x3201d2;let {..._0x5ecf54}=(0x0,e[_0x23dd47(0x115)])({},N,this[_0x23dd47(0xe4)]);this[_0x23dd47(0x121)]['setConfig'](M,_0x5ecf54);}[_0x533ef0(0xf4)](){const _0x17b33d=_0x533ef0;(0x0,e[_0x17b33d(0x118)])(this[_0x17b33d(0x11a)],(0x0,e[_0x17b33d(0x108)])([[g],[y],[P],[k]],this[_0x17b33d(0xe4)]['override'])),(0x0,e[_0x17b33d(0xba)])(this['_injector'],[[P]]);}[_0x533ef0(0x9c)](){const _0x7eeab=_0x533ef0;(0x0,e[_0x7eeab(0xba)])(this[_0x7eeab(0x11a)],[[k]]);}};h(F,_0x533ef0(0x83),e[_0x533ef0(0xb1)][_0x533ef0(0xfe)]),h(F,'pluginName',_0x533ef0(0xcd)),h(F,_0x533ef0(0xb9),A),h(F,'version',j),F=v([(0x0,e['DependentOn'])(o[_0x533ef0(0xee)]),_(0x1,(0x0,e['Inject'])(e[_0x533ef0(0x91)])),_(0x2,e[_0x533ef0(0xe1)])],F),Object[_0x533ef0(0x97)](exports,_0x533ef0(0xdc),{'enumerable':!0x0,'get':function(){return k;}}),exports['LiveShare']=S,Object[_0x533ef0(0x97)](exports,_0x533ef0(0xc9),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x533ef0(0x97)](exports,_0x533ef0(0xac),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x533ef0(0xaf)]=g,exports[_0x533ef0(0xd7)]=b,Object[_0x533ef0(0x97)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return F;}});
1
+ const _0x78be35=_0x542c;(function(_0x1b45a3,_0x3331e9){const _0x46de74=_0x542c,_0x42d636=_0x1b45a3();while(!![]){try{const _0x4773d9=parseInt(_0x46de74(0xd8))/0x1+parseInt(_0x46de74(0x110))/0x2*(-parseInt(_0x46de74(0x85))/0x3)+-parseInt(_0x46de74(0xab))/0x4*(parseInt(_0x46de74(0xf6))/0x5)+-parseInt(_0x46de74(0x10b))/0x6*(-parseInt(_0x46de74(0xda))/0x7)+-parseInt(_0x46de74(0xca))/0x8+parseInt(_0x46de74(0xb5))/0x9*(-parseInt(_0x46de74(0x104))/0xa)+parseInt(_0x46de74(0xb1))/0xb;if(_0x4773d9===_0x3331e9)break;else _0x42d636['push'](_0x42d636['shift']());}catch(_0x8380d4){_0x42d636['push'](_0x42d636['shift']());}}}(_0x3f17,0x37d0e),Object[_0x78be35(0x126)](exports,Symbol[_0x78be35(0x12e)],{'value':_0x78be35(0xc8)}));let e=require('@univerjs/core'),t=require('@univerjs/ui'),n=require('@univerjs/design'),r=require('@univerjs/icons'),i=require('react'),a=require('@univerjs-pro/collaboration'),o=require('@univerjs-pro/collaboration-client'),s=require('@univerjs/sheets'),c=require('rxjs'),l=require('rxjs/operators'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x105d9c){'@babel/helpers - typeof';const _0x52d0d2=_0x78be35;return f=typeof Symbol==_0x52d0d2(0xa7)&&typeof Symbol[_0x52d0d2(0x113)]=='symbol'?function(_0x3dfc9d){return typeof _0x3dfc9d;}:function(_0x119a4c){const _0x1cc3ff=_0x52d0d2;return _0x119a4c&&typeof Symbol=='function'&&_0x119a4c[_0x1cc3ff(0xe4)]===Symbol&&_0x119a4c!==Symbol[_0x1cc3ff(0x86)]?'symbol':typeof _0x119a4c;},f(_0x105d9c);}function p(_0x1f33f8,_0x412936){const _0x1da52f=_0x78be35;if(f(_0x1f33f8)!=_0x1da52f(0xb3)||!_0x1f33f8)return _0x1f33f8;var _0x504fc8=_0x1f33f8[Symbol[_0x1da52f(0x9f)]];if(_0x504fc8!==void 0x0){var _0x271c49=_0x504fc8['call'](_0x1f33f8,_0x412936||_0x1da52f(0x8e));if(f(_0x271c49)!=_0x1da52f(0xb3))return _0x271c49;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x412936===_0x1da52f(0xf1)?String:Number)(_0x1f33f8);}function m(_0x4045af){const _0x5ab042=_0x78be35;var _0x2f4582=p(_0x4045af,_0x5ab042(0xf1));return f(_0x2f4582)==_0x5ab042(0x108)?_0x2f4582:_0x2f4582+'';}function _0x3f17(){const _0x5dcccf=['takeUntil','has','_commandDisposable','_unitID','delete','_init','stringify','ONLINE','_handleTerminate','getValue','1907830rkyilG','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20presenting','decorate','symbol','following','length','18PQkIqq','jsx','LIVESHARE_TERMINATE','asObservable','set','310bUBgMf','getUnitId','getOwnPropertyDescriptor','iterator','UNIVER_UNKNOWN','RxDisposable','clsx','complete','stopPresenting','LiveShareCoordinator','univer-size-4','includes','current','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','_sharedOperations','useEffect','_injector','HEADER_MENU','dispose','shouldShareOperation','onCommandExecuted','defineProperty','text','connectInjector','tryStartPresenting','CollaborationEvent','Button','override','SetZoomRatioOperation','toStringTag','_configService','clear','dispose$','UNIVER_LIVE_SHARE_PLUGIN','end','packageName','reverse','forEach','parse','presenting','Present\x20this\x20document','_handleOnline','LIVESHARE_OPERATION','IUniverInstanceService','presenter','NEW_CHANGESETS','0.25.0-insiders.20260608-e4336f7','_stopPresenting','getTypeOfUnitDisposed$','IUIPartsService','unitId','_reporters','SessionStatus','type','_handleOffline','_status$','ICommandService','div','status$','registerInitialStateReporter','6657mDDzlX','prototype','_univerInstanceService','useObservable','You\x27re\x20not\x20following\x20the\x20presenter','_fetchOperations','next','getMemberID','BehaviorSubject','default','CollaborationSessionService','_handleNewChangeSets','InsertSheetMutation','registerSharedOperation','Stop\x20following','UniverInstanceType','_startLiveShareCoordinator','event$','_commandService','live-share.config','offline','_stopFollowing','SetScrollOperation','pluginName','Subject','from','toPrimitive','toDisposable','_collabSessionService','useState','LiveShareStatus','_mountLiveShare','button','You\x27re\x20following\x20the\x20presenter','function','You\x27are\x20offline.','_collabSession','Start\x20following','32788QTnCSj','jsxs','get','OFFLINE','pipe','idle','4406996elghjl','IDLE','object','find','9xdzvem','Disposable','values','PRESENTING','parseProtocolChangeset','You\x27re\x20presenting\x20the\x20document','SetWorksheetActiveOperation','mergeOverrideWithDependencies','LIVESHARE_FETCH_OPERATIONS','send','Injector','params','subscribe','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','_beIdle','onRendered','getInitialStates','unsubscribe','Module','UniverLiveSharePlugin','2241688qHZgCz','version','not-following','Dropdown','unit','Inject','Start','_startFollowing','useDependency','getLiveShareCoordinatorSync','Fragment','LiveShareController','touchDependencies','setConfig','304529qFjFzR','CommandType','808717WACBJo','UNIVER_SHEET','registerComponent','IConfigService','_presenter','_handleNewHost','add','LiveShareIcon','then','operations','constructor','sessionStatus$','LiveShare','getStatus','_handleOperation','throttleTime','LiveShareService','DesktopLiveShareController','_status','FOLLOWING','getConfig','data','_config','string','onStarting','_entities','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','startFollowing','5HaZTVa','init','univer-mb-3\x20univer-w-full\x20univer-text-sm','getLiveShareCoordinator'];_0x3f17=function(){return _0x5dcccf;};return _0x3f17();}function h(_0x41d8da,_0x59058a,_0x5e2d4c){const _0x55a03e=_0x78be35;return(_0x59058a=m(_0x59058a))in _0x41d8da?Object[_0x55a03e(0x126)](_0x41d8da,_0x59058a,{'value':_0x5e2d4c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41d8da[_0x59058a]=_0x5e2d4c,_0x41d8da;}var g=class extends e[_0x78be35(0xb6)]{constructor(..._0x5340fc){super(..._0x5340fc),h(this,'_sharedOperations',new Set()),h(this,'_reporters',new Set());}['registerSharedOperation'](_0x506c64){const _0x1c6108=_0x78be35;return this['_sharedOperations']['add'](_0x506c64),(0x0,e['toDisposable'])(()=>this[_0x1c6108(0x11f)][_0x1c6108(0xfe)](_0x506c64));}[_0x78be35(0x84)](_0x190c62){const _0x3df71d=_0x78be35;return this[_0x3df71d(0x7c)]['add'](_0x190c62),(0x0,e['toDisposable'])(()=>this[_0x3df71d(0x7c)][_0x3df71d(0xfe)](_0x190c62));}[_0x78be35(0x124)](_0x36ef6a){const _0x4829b8=_0x78be35;return this[_0x4829b8(0x11f)][_0x4829b8(0xfb)](_0x36ef6a);}['getInitialStates'](_0x3e15e3){const _0x4851d1=_0x78be35;return Array[_0x4851d1(0x9e)](this[_0x4851d1(0x7c)])['map'](_0x39266e=>_0x39266e(_0x3e15e3));}};function _(_0x179378,_0x2c535a){return function(_0x3f391a,_0x261465){_0x2c535a(_0x3f391a,_0x261465,_0x179378);};}function v(_0x31709c,_0x3984dc,_0x2800bd,_0x389afa){const _0x27fd70=_0x78be35;var _0x5a7e13=arguments[_0x27fd70(0x10a)],_0x3a62ff=_0x5a7e13<0x3?_0x3984dc:_0x389afa===null?_0x389afa=Object[_0x27fd70(0x112)](_0x3984dc,_0x2800bd):_0x389afa,_0x4d56aa;if(typeof Reflect==_0x27fd70(0xb3)&&typeof Reflect[_0x27fd70(0x107)]=='function')_0x3a62ff=Reflect[_0x27fd70(0x107)](_0x31709c,_0x3984dc,_0x2800bd,_0x389afa);else{for(var _0x2d3ef7=_0x31709c[_0x27fd70(0x10a)]-0x1;_0x2d3ef7>=0x0;_0x2d3ef7--)(_0x4d56aa=_0x31709c[_0x2d3ef7])&&(_0x3a62ff=(_0x5a7e13<0x3?_0x4d56aa(_0x3a62ff):_0x5a7e13>0x3?_0x4d56aa(_0x3984dc,_0x2800bd,_0x3a62ff):_0x4d56aa(_0x3984dc,_0x2800bd))||_0x3a62ff);}return _0x5a7e13>0x3&&_0x3a62ff&&Object['defineProperty'](_0x3984dc,_0x2800bd,_0x3a62ff),_0x3a62ff;}let y=class extends e[_0x78be35(0x115)]{constructor(_0x32c5a4,_0x44f589,_0x539508){const _0x2869b4=_0x78be35;super(),this['_univerInstanceService']=_0x32c5a4,this[_0x2869b4(0x121)]=_0x44f589,this[_0x2869b4(0xa1)]=_0x539508,h(this,_0x2869b4(0xf3),new Map()),this[_0x2869b4(0xff)]();}async['getLiveShareCoordinator'](_0x11a88){const _0x389583=_0x78be35;return this[_0x389583(0xf3)][_0x389583(0xfb)](_0x11a88)||await this[_0x389583(0x95)](_0x11a88),this[_0x389583(0xf3)][_0x389583(0xad)](_0x11a88);}[_0x78be35(0xd3)](_0x42ed3f){const _0x1236c9=_0x78be35;var _0x3a4450;return(_0x3a4450=this['_entities'][_0x1236c9(0xad)](_0x42ed3f))==null?null:_0x3a4450;}[_0x78be35(0xff)](){const _0x583b4c=_0x78be35;this['_univerInstanceService']['getTypeOfUnitAdded$'](e[_0x583b4c(0x94)][_0x583b4c(0xdb)])[_0x583b4c(0xaf)]((0x0,l[_0x583b4c(0xfa)])(this[_0x583b4c(0x131)]))['subscribe'](async _0x30c799=>{const _0xf01570=_0x583b4c;let _0x17a6ce=_0x30c799[_0xf01570(0xce)][_0xf01570(0x111)]();this[_0xf01570(0xf3)][_0xf01570(0xfb)](_0x17a6ce)||this['_startLiveShareCoordinator'](_0x17a6ce);}),this[_0x583b4c(0x87)][_0x583b4c(0x79)](e[_0x583b4c(0x94)][_0x583b4c(0xdb)])[_0x583b4c(0xaf)]((0x0,l['takeUntil'])(this[_0x583b4c(0x131)]))[_0x583b4c(0xc1)](_0xb64d9f=>{const _0x197175=_0x583b4c;let _0x22a5d9=_0xb64d9f[_0x197175(0x111)](),_0x11390c=this[_0x197175(0xf3)][_0x197175(0xad)](_0x22a5d9);_0x11390c==null||_0x11390c[_0x197175(0x123)]();});}async['_startLiveShareCoordinator'](_0x283b48){const _0x3657e3=_0x78be35;let _0x11b6c8=await this[_0x3657e3(0xa1)]['requireSession'](_0x283b48),_0x182359=this[_0x3657e3(0x121)]['createInstance'](x,_0x283b48,_0x11b6c8);return _0x182359[_0x3657e3(0xf7)](),this[_0x3657e3(0xf3)][_0x3657e3(0x10f)](_0x283b48,_0x182359),_0x182359;}};y=v([_(0x0,e[_0x78be35(0x74)]),_(0x1,(0x0,e[_0x78be35(0xcf)])(e[_0x78be35(0xbf)])),_(0x2,(0x0,e[_0x78be35(0xcf)])(o[_0x78be35(0x8f)]))],y);let b=function(_0x2e20af){const _0x82d054=_0x78be35;return _0x2e20af[_0x82d054(0xae)]=_0x82d054(0x99),_0x2e20af[_0x82d054(0xb2)]='idle',_0x2e20af[_0x82d054(0xed)]=_0x82d054(0x109),_0x2e20af[_0x82d054(0x11e)]=_0x82d054(0xcc),_0x2e20af[_0x82d054(0xb8)]='presenting',_0x2e20af;}({}),x=class extends e['RxDisposable']{get['_status'](){const _0x3b79bd=_0x78be35;return this['_status$'][_0x3b79bd(0x103)]();}constructor(_0x5a739b,_0x4cab89,_0x12d067,_0x383a56,_0x56edf9){const _0x2d3ac4=_0x78be35;super(),this[_0x2d3ac4(0xfd)]=_0x5a739b,this[_0x2d3ac4(0xa9)]=_0x4cab89,this[_0x2d3ac4(0x12f)]=_0x12d067,this['_liveShareService']=_0x383a56,this[_0x2d3ac4(0x97)]=_0x56edf9,h(this,'_status$',new c[(_0x2d3ac4(0x8d))](_0x2d3ac4(0xb0))),h(this,'status$',this[_0x2d3ac4(0x80)][_0x2d3ac4(0x10e)]()),h(this,'_init',!0x1),h(this,_0x2d3ac4(0xfc),null),h(this,'_presenter',null);}[_0x78be35(0x123)](){const _0x52fa32=_0x78be35;var _0x595556;(_0x595556=this[_0x52fa32(0xfc)])==null||_0x595556[_0x52fa32(0x123)](),this['_status$'][_0x52fa32(0x8b)](_0x52fa32(0xb0)),this[_0x52fa32(0x80)][_0x52fa32(0x117)]();}[_0x78be35(0xe7)](){return this['_status'];}['init'](){const _0x5db6a5=_0x78be35;this[_0x5db6a5(0xff)]||(this[_0x5db6a5(0xff)]=!0x0,this[_0x5db6a5(0xa9)][_0x5db6a5(0xe5)][_0x5db6a5(0xaf)]((0x0,l[_0x5db6a5(0xfa)])(this['dispose$']))[_0x5db6a5(0xc1)](_0x47f2de=>{const _0x58113c=_0x5db6a5;switch(_0x47f2de){case o[_0x58113c(0x7d)][_0x58113c(0xae)]:this[_0x58113c(0x7f)]();break;case o['SessionStatus'][_0x58113c(0x101)]:this[_0x58113c(0x72)]();break;default:}}),this[_0x5db6a5(0xa9)][_0x5db6a5(0x96)][_0x5db6a5(0xaf)]((0x0,l[_0x5db6a5(0xfa)])(this[_0x5db6a5(0x131)]))[_0x5db6a5(0xc1)](_0x22d90e=>{const _0x20705c=_0x5db6a5;let {eventID:_0x3a4b3a}=_0x22d90e;switch(_0x3a4b3a){case a['CollaborationEvent']['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x22d90e);break;case a[_0x20705c(0x12a)][_0x20705c(0x73)]:this['_handleOperation'](_0x22d90e);break;case a['CollaborationEvent'][_0x20705c(0x10d)]:this[_0x20705c(0x102)]();break;case a[_0x20705c(0x12a)][_0x20705c(0x76)]:this[_0x20705c(0x90)](_0x22d90e);break;default:}}));}['tryStartPresenting'](){const _0x1a8265=_0x78be35;this['_collabSession'][_0x1a8265(0xbe)]({'eventID':a[_0x1a8265(0x12a)][_0x1a8265(0x11d)],'data':{'unitID':this[_0x1a8265(0xfd)],'userID':this[_0x1a8265(0xa9)][_0x1a8265(0x8c)]()}},this['_unitID']);}[_0x78be35(0x118)](){const _0x307eb0=_0x78be35;this['_status']===_0x307eb0(0x70)&&(this['_status$']['next']('idle'),this[_0x307eb0(0xa9)]['send']({'eventID':a['CollaborationEvent'][_0x307eb0(0x10d)],'data':{'unitID':this[_0x307eb0(0xfd)]}},this[_0x307eb0(0xfd)]));}[_0x78be35(0xf5)](){const _0x131ff1=_0x78be35;this[_0x131ff1(0xec)]===_0x131ff1(0xcc)&&(this[_0x131ff1(0x80)]['next'](_0x131ff1(0x109)),this[_0x131ff1(0xd1)]());}['stopFollowing'](){const _0x540c9c=_0x78be35;this[_0x540c9c(0xec)]===_0x540c9c(0x109)&&this[_0x540c9c(0x9a)]();}[_0x78be35(0xdf)](_0x2de76a){const _0x43fb59=_0x78be35;let {presenter:_0x398097}=_0x2de76a['data'],_0x416d19=this[_0x43fb59(0xa9)][_0x43fb59(0x8c)]();this[_0x43fb59(0xde)]=_0x398097,_0x398097===_0x416d19?(this[_0x43fb59(0x9a)](),this['_startPresenting']()):this[_0x43fb59(0xec)]!==_0x43fb59(0xcc)&&(this[_0x43fb59(0x78)](),this[_0x43fb59(0xd1)]());}[_0x78be35(0x8a)](){const _0x55412f=_0x78be35;let _0x154f11={'eventID':a[_0x55412f(0x12a)][_0x55412f(0xbd)]};this[_0x55412f(0xa9)]['send'](_0x154f11,this[_0x55412f(0xfd)]);}[_0x78be35(0x102)](){const _0x2ab884=_0x78be35;this[_0x2ab884(0xde)]=null,this[_0x2ab884(0xec)]!==_0x2ab884(0x70)&&this[_0x2ab884(0xc4)]();}[_0x78be35(0x90)](_0x429a75){const _0x1d3b15=_0x78be35;if(this[_0x1d3b15(0xec)]==='following'&&this[_0x1d3b15(0xde)]===_0x429a75['data']['memberID']){let _0x4b9396=(0x0,a[_0x1d3b15(0xb9)])(_0x429a75['data'])['mutations'][_0x1d3b15(0x6d)]()[_0x1d3b15(0xb4)](_0x414207=>_0x414207['id']===s[_0x1d3b15(0x91)]['id']);if(_0x4b9396){let _0x3e3b54=_0x4b9396[_0x1d3b15(0xc0)][_0x1d3b15(0x7b)],_0x2455d2=_0x4b9396[_0x1d3b15(0xc0)]['sheet']['id'];setTimeout(()=>{const _0x24c1bc=_0x1d3b15;this[_0x24c1bc(0x97)]['executeCommand'](s[_0x24c1bc(0xbb)]['id'],{'unitId':_0x3e3b54,'subUnitId':_0x2455d2},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x32c4fa=_0x78be35;var _0x145dba;(_0x145dba=this[_0x32c4fa(0xfc)])==null||_0x145dba[_0x32c4fa(0x123)](),this['_status$']['next'](_0x32c4fa(0x70));let _0x3dc2db=new Map(),_0xd6c429=this['_commandDisposable']=new e['DisposableCollection']();_0xd6c429[_0x32c4fa(0xe0)]((0x0,e[_0x32c4fa(0xa0)])(()=>{const _0x168636=_0x32c4fa;_0x3dc2db[_0x168636(0x6e)](({subject:_0x1fa987,subscription:_0xc98ca4})=>{const _0x2086b0=_0x168636;_0xc98ca4[_0x2086b0(0xc7)](),_0x1fa987[_0x2086b0(0x117)]();}),_0x3dc2db[_0x168636(0x130)]();})),_0xd6c429[_0x32c4fa(0xe0)](this[_0x32c4fa(0x97)][_0x32c4fa(0x125)](_0x10fb8a=>{const _0x4398ed=_0x32c4fa;if(_0x10fb8a[_0x4398ed(0x7e)]!==e[_0x4398ed(0xd9)]['OPERATION']||!this[_0x4398ed(0xc2)]['shouldShareOperation'](_0x10fb8a['id']))return;let {id:_0x2e2d3e}=_0x10fb8a,_0x21293f;if(_0x3dc2db[_0x4398ed(0xfb)](_0x2e2d3e))_0x21293f=_0x3dc2db[_0x4398ed(0xad)](_0x2e2d3e)['subject'];else{var _0x16c35c;_0x21293f=new c[(_0x4398ed(0x9d))]();let _0x253bfb=_0x21293f['pipe']((0x0,l[_0x4398ed(0xe9)])((_0x16c35c=this[_0x4398ed(0x12f)][_0x4398ed(0xee)](_0x4398ed(0xc3)))==null?0xc8:_0x16c35c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4398ed(0xc1)](_0x2b5f11=>{const _0x5b07a6=_0x4398ed;this[_0x5b07a6(0xa9)]['send']({'eventID':a[_0x5b07a6(0x12a)][_0x5b07a6(0x73)],'data':{'unitID':this[_0x5b07a6(0xfd)],'operations':{[_0x2b5f11['id']]:{'id':_0x2b5f11['id'],'params':JSON[_0x5b07a6(0x100)](_0x2b5f11[_0x5b07a6(0xc0)])}}}},this[_0x5b07a6(0xfd)]);});_0x3dc2db[_0x4398ed(0x10f)](_0x2e2d3e,{'subject':_0x21293f,'subscription':_0x253bfb});}_0x21293f[_0x4398ed(0x8b)](_0x10fb8a);})),this[_0x32c4fa(0xc2)][_0x32c4fa(0xc6)](this['_unitID'])[_0x32c4fa(0x6e)](_0x235d4c=>this[_0x32c4fa(0xa9)][_0x32c4fa(0xbe)]({'eventID':a[_0x32c4fa(0x12a)][_0x32c4fa(0x73)],'data':{'unitID':this[_0x32c4fa(0xfd)],'operations':{[_0x235d4c['id']]:{'id':_0x235d4c['id'],'params':JSON[_0x32c4fa(0x100)](_0x235d4c[_0x32c4fa(0xc0)])}}}},this[_0x32c4fa(0xfd)]));}[_0x78be35(0x78)](){const _0x17096f=_0x78be35;var _0x137751;this[_0x17096f(0x80)][_0x17096f(0x8b)](_0x17096f(0xb0)),(_0x137751=this[_0x17096f(0xfc)])==null||_0x137751[_0x17096f(0x123)](),this[_0x17096f(0xfc)]=null;}['_startFollowing'](){const _0x52cf45=_0x78be35;var _0x1b8a46;(_0x1b8a46=this[_0x52cf45(0xfc)])==null||_0x1b8a46[_0x52cf45(0x123)](),this[_0x52cf45(0x80)]['next'](_0x52cf45(0x109));}[_0x78be35(0xc4)](){const _0xa0394e=_0x78be35;var _0x12679d;this[_0xa0394e(0x80)][_0xa0394e(0x8b)]('idle'),(_0x12679d=this['_commandDisposable'])==null||_0x12679d[_0xa0394e(0x123)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x3b8b48=_0x78be35;var _0xdb056e;this[_0x3b8b48(0x80)][_0x3b8b48(0x8b)]('not-following'),(_0xdb056e=this[_0x3b8b48(0xfc)])==null||_0xdb056e[_0x3b8b48(0x123)]();}[_0x78be35(0xe8)](_0xc6f9a7){const _0x2ceb1d=_0x78be35;if([_0x2ceb1d(0x70),_0x2ceb1d(0xcc),'offline'][_0x2ceb1d(0x11b)](this[_0x2ceb1d(0xec)])||!_0xc6f9a7[_0x2ceb1d(0xef)][_0x2ceb1d(0x75)]||_0xc6f9a7['data'][_0x2ceb1d(0x75)]===this[_0x2ceb1d(0xa9)][_0x2ceb1d(0x8c)]())return;this['_status']===_0x2ceb1d(0xb0)&&this['_startFollowing']();let _0x3d2d8a=_0xc6f9a7['data'][_0x2ceb1d(0xe3)];Object[_0x2ceb1d(0xb7)](_0x3d2d8a)[_0x2ceb1d(0x6e)](_0x501ce4=>{const _0x4fdfc5=_0x2ceb1d;this[_0x4fdfc5(0x97)]['executeCommand'](_0x501ce4['id'],_0x501ce4['params']?JSON[_0x4fdfc5(0x6f)](_0x501ce4['params']):null,{'fromCollab':!0x0});});}[_0x78be35(0x7f)](){const _0x2b674e=_0x78be35;var _0x1f246f;this[_0x2b674e(0x80)]['next']('offline'),(_0x1f246f=this[_0x2b674e(0xfc)])==null||_0x1f246f[_0x2b674e(0x123)]();}[_0x78be35(0x72)](){const _0x23e0cf=_0x78be35;this[_0x23e0cf(0x80)][_0x23e0cf(0x8b)]('idle'),this[_0x23e0cf(0x8a)]();}};x=v([_(0x2,e['IConfigService']),_(0x3,(0x0,e[_0x78be35(0xcf)])(g)),_(0x4,e[_0x78be35(0x81)])],x);function _0x542c(_0x6ab96,_0x45d6d4){_0x6ab96=_0x6ab96-0x6d;const _0x3f176f=_0x3f17();let _0x542c4a=_0x3f176f[_0x6ab96];return _0x542c4a;}function S(){const _0x1f915e=_0x78be35;let _0x38dea7=(0x0,t[_0x1f915e(0xd2)])(y),_0x42c2fc=(0x0,t[_0x1f915e(0xd2)])(e['IUniverInstanceService']),_0x120b1a=(0x0,t[_0x1f915e(0x88)])(()=>_0x42c2fc['getCurrentTypeOfUnit$'](e[_0x1f915e(0x94)][_0x1f915e(0xdb)]),void 0x0,!0x1,[]),[_0x3f45f9,_0x5e3ef9]=(0x0,i[_0x1f915e(0xa2)])(null),[_0x1ef498,_0x1da77c]=(0x0,i['useState'])(_0x1f915e(0xb0)),_0x232f52=(0x0,i['useRef'])(null);return(0x0,i[_0x1f915e(0x120)])(()=>(_0x120b1a&&_0x38dea7[_0x1f915e(0xf9)](_0x120b1a['getUnitId']())[_0x1f915e(0xe2)](_0x137b1f=>{const _0x5e1b7b=_0x1f915e;_0x5e3ef9(_0x137b1f),_0x232f52['current']=_0x137b1f[_0x5e1b7b(0x83)][_0x5e1b7b(0xc1)](_0x4b6f6c=>{_0x1da77c(_0x4b6f6c);});}),()=>{const _0x4d7601=_0x1f915e;var _0x5b1191;(_0x5b1191=_0x232f52[_0x4d7601(0x11c)])==null||_0x5b1191['unsubscribe'](),_0x232f52[_0x4d7601(0x11c)]=null;}),[_0x120b1a,_0x38dea7]),_0x3f45f9?(0x0,u[_0x1f915e(0x10c)])(n[_0x1f915e(0xcd)],{'align':_0x1f915e(0x133),'disabled':_0x1ef498===_0x1f915e(0x99),'className':_0x1f915e(0xf4),'overlay':(0x0,u[_0x1f915e(0x10c)])(C,{'status':_0x1ef498,'coordinator':_0x3f45f9}),'children':(0x0,u[_0x1f915e(0x10c)])(_0x1f915e(0xa5),{'className':(0x0,n[_0x1f915e(0x116)])(_0x1f915e(0x105),{'univer-cursor-not-allowed':_0x1ef498===_0x1f915e(0x99),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ef498!==_0x1f915e(0x99)}),'type':_0x1f915e(0xa5),'children':(0x0,u[_0x1f915e(0x10c)])(r[_0x1f915e(0xe1)],{'className':_0x1f915e(0x11a)})})}):null;}function C(_0xf82792){const _0x64bf2f=_0x78be35;let {status:_0x214ad9,coordinator:_0x1efd8d}=_0xf82792;switch(_0x214ad9){case _0x64bf2f(0xb0):return(0x0,u[_0x64bf2f(0x10c)])(w,{'coordinator':_0x1efd8d});case _0x64bf2f(0x109):return(0x0,u[_0x64bf2f(0x10c)])(T,{'coordinator':_0x1efd8d});case _0x64bf2f(0xcc):return(0x0,u['jsx'])(E,{'coordinator':_0x1efd8d});case'offline':return(0x0,u[_0x64bf2f(0x10c)])(O,{});case _0x64bf2f(0x70):return(0x0,u['jsx'])(D,{'coordinator':_0x1efd8d});default:return null;}}function w(_0x51e49f){const _0x3dc5b9=_0x78be35;let {coordinator:_0x31c43f}=_0x51e49f;return(0x0,u[_0x3dc5b9(0xac)])(u[_0x3dc5b9(0xd4)],{'children':[(0x0,u['jsx'])(_0x3dc5b9(0x82),{'className':_0x3dc5b9(0xf8),'children':_0x3dc5b9(0x71)}),(0x0,u[_0x3dc5b9(0x10c)])(n[_0x3dc5b9(0x12b)],{'onClick':()=>_0x31c43f[_0x3dc5b9(0x129)](),'children':_0x3dc5b9(0xd0)})]});}function T(_0x27fdc7){const _0x337780=_0x78be35;let {coordinator:_0x4d4bf7}=_0x27fdc7;return(0x0,u[_0x337780(0xac)])(u[_0x337780(0xd4)],{'children':[(0x0,u[_0x337780(0x10c)])(_0x337780(0x82),{'className':_0x337780(0xf8),'children':_0x337780(0xa6)}),(0x0,u[_0x337780(0x10c)])(n[_0x337780(0x12b)],{'onClick':()=>_0x4d4bf7['stopFollowing'](),'children':_0x337780(0x93)})]});}function E(_0x135870){const _0x9379f4=_0x78be35;let {coordinator:_0x5ce0d9}=_0x135870;return(0x0,u[_0x9379f4(0xac)])(u[_0x9379f4(0xd4)],{'children':[(0x0,u[_0x9379f4(0x10c)])(_0x9379f4(0x82),{'className':_0x9379f4(0xf8),'children':_0x9379f4(0x89)}),(0x0,u[_0x9379f4(0x10c)])(n[_0x9379f4(0x12b)],{'variant':_0x9379f4(0x127),'onClick':()=>_0x5ce0d9[_0x9379f4(0xf5)](),'children':_0x9379f4(0xaa)})]});}function D(_0x263d0a){const _0x496660=_0x78be35;let {coordinator:_0x11ffbd}=_0x263d0a;return(0x0,u[_0x496660(0xac)])(u[_0x496660(0xd4)],{'children':[(0x0,u[_0x496660(0x10c)])(_0x496660(0x82),{'className':_0x496660(0xf8),'children':_0x496660(0xba)}),(0x0,u[_0x496660(0x10c)])(n[_0x496660(0x12b)],{'variant':_0x496660(0x8e),'onClick':()=>_0x11ffbd['stopPresenting'](),'children':_0x496660(0x106)})]});}function O(){const _0x1c375a=_0x78be35;return(0x0,u['jsx'])(u['Fragment'],{'children':_0x1c375a(0xa8)});}let k=class extends e[_0x78be35(0xb6)]{constructor(_0x5e4bb2,_0x8752a9){const _0x8f734f=_0x78be35;super(),this[_0x8f734f(0x121)]=_0x5e4bb2,this['_uiPartsService']=_0x8752a9,this[_0x8f734f(0xa4)]();}[_0x78be35(0xa4)](){const _0x25f4b6=_0x78be35;this['disposeWithMe'](this['_uiPartsService'][_0x25f4b6(0xdc)](t['BuiltInUIPart'][_0x25f4b6(0x122)],()=>(0x0,t[_0x25f4b6(0x128)])(S,this[_0x25f4b6(0x121)])));}};k=v([_(0x0,(0x0,e['Inject'])(e[_0x78be35(0xbf)])),_(0x1,t[_0x78be35(0x7a)])],k);var A='@univerjs-pro/live-share',j=_0x78be35(0x77);const M={};let N=class extends e['Disposable']{constructor(_0x5b7669){const _0x5c8a11=_0x78be35;super(),this[_0x5c8a11(0xc2)]=_0x5b7669,this['_init']();}[_0x78be35(0xff)](){const _0x4424e9=_0x78be35;[d[_0x4424e9(0x12d)]['id'],d[_0x4424e9(0x9b)]['id'],s[_0x4424e9(0xbb)]['id']]['forEach'](_0x471fd0=>{const _0x2000b6=_0x4424e9;this['disposeWithMe'](this['_liveShareService'][_0x2000b6(0x92)](_0x471fd0));});}};N=v([_(0x0,(0x0,e[_0x78be35(0xcf)])(g))],N);let P=class extends e['Plugin']{constructor(_0xd23d1e=M,_0x30b08e,_0x23f4d4){const _0x2bdfc0=_0x78be35;super(),this[_0x2bdfc0(0xf0)]=_0xd23d1e,this[_0x2bdfc0(0x121)]=_0x30b08e,this[_0x2bdfc0(0x12f)]=_0x23f4d4;let {..._0x3502ef}=(0x0,e['merge'])({},M,this['_config']);this[_0x2bdfc0(0x12f)][_0x2bdfc0(0xd7)](_0x2bdfc0(0x98),_0x3502ef);}[_0x78be35(0xf2)](){const _0x4bfbec=_0x78be35;(0x0,e['registerDependencies'])(this[_0x4bfbec(0x121)],(0x0,e[_0x4bfbec(0xbc)])([[g],[y],[N],[k]],this[_0x4bfbec(0xf0)][_0x4bfbec(0x12c)])),(0x0,e[_0x4bfbec(0xd6)])(this['_injector'],[[N]]);}[_0x78be35(0xc5)](){const _0x3b8d30=_0x78be35;(0x0,e[_0x3b8d30(0xd6)])(this[_0x3b8d30(0x121)],[[k]]);}};h(P,'type',e[_0x78be35(0x94)][_0x78be35(0x114)]),h(P,_0x78be35(0x9c),_0x78be35(0x132)),h(P,_0x78be35(0x134),A),h(P,_0x78be35(0xcb),j),P=v([(0x0,e['DependentOn'])(o['UniverCollaborationClientPlugin']),_(0x1,(0x0,e[_0x78be35(0xcf)])(e[_0x78be35(0xbf)])),_(0x2,e[_0x78be35(0xdd)])],P),Object[_0x78be35(0x126)](exports,_0x78be35(0xeb),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x78be35(0xe6)]=S,Object['defineProperty'](exports,_0x78be35(0xd5),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x78be35(0x126)](exports,_0x78be35(0x119),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x78be35(0xea)]=g,exports[_0x78be35(0xa3)]=b,Object[_0x78be35(0x126)](exports,_0x78be35(0xc9),{'enumerable':!0x0,'get':function(){return P;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2b99c4=_0x4127;(function(_0x2dfac7,_0x46956c){const _0x1a42af=_0x4127,_0x41c05f=_0x2dfac7();while(!![]){try{const _0x4ceb61=-parseInt(_0x1a42af(0x92))/0x1*(-parseInt(_0x1a42af(0x85))/0x2)+parseInt(_0x1a42af(0x8e))/0x3*(parseInt(_0x1a42af(0x7d))/0x4)+-parseInt(_0x1a42af(0x98))/0x5+-parseInt(_0x1a42af(0x81))/0x6+-parseInt(_0x1a42af(0x95))/0x7+parseInt(_0x1a42af(0x99))/0x8*(-parseInt(_0x1a42af(0x88))/0x9)+parseInt(_0x1a42af(0x96))/0xa*(parseInt(_0x1a42af(0x76))/0xb);if(_0x4ceb61===_0x46956c)break;else _0x41c05f['push'](_0x41c05f['shift']());}catch(_0x400780){_0x41c05f['push'](_0x41c05f['shift']());}}}(_0x375d,0xbe311));import{LiveShareController as _0x5c080e,LiveShareStatus as _0x393b86}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x466ade,UniverInstanceType as _0x43acff}from'@univerjs/core';import{FEnum as _0x454fcc,FUniver as _0x2bb1ef}from'@univerjs/core/facade';function o(_0x58a6c6){'@babel/helpers - typeof';const _0x26b32f=_0x4127;return o=typeof Symbol==_0x26b32f(0x7c)&&typeof Symbol['iterator']=='symbol'?function(_0x2e8053){return typeof _0x2e8053;}:function(_0x2d2e15){const _0x327a45=_0x26b32f;return _0x2d2e15&&typeof Symbol=='function'&&_0x2d2e15[_0x327a45(0x8a)]===Symbol&&_0x2d2e15!==Symbol['prototype']?_0x327a45(0x86):typeof _0x2d2e15;},o(_0x58a6c6);}function s(_0x3195ec,_0x443e48){const _0x55f6f6=_0x4127;if(o(_0x3195ec)!=_0x55f6f6(0x78)||!_0x3195ec)return _0x3195ec;var _0x454f8f=_0x3195ec[Symbol[_0x55f6f6(0x7f)]];if(_0x454f8f!==void 0x0){var _0x55cdfc=_0x454f8f[_0x55f6f6(0x90)](_0x3195ec,_0x443e48||_0x55f6f6(0x83));if(o(_0x55cdfc)!=_0x55f6f6(0x78))return _0x55cdfc;throw TypeError(_0x55f6f6(0x9b));}return(_0x443e48===_0x55f6f6(0x8c)?String:Number)(_0x3195ec);}function c(_0x454972){const _0xcabb6b=_0x4127;var _0x50cb51=s(_0x454972,_0xcabb6b(0x8c));return o(_0x50cb51)==_0xcabb6b(0x86)?_0x50cb51:_0x50cb51+'';}function _0x4127(_0x2f3811,_0x2300e9){_0x2f3811=_0x2f3811-0x74;const _0x375dc6=_0x375d();let _0x4127c5=_0x375dc6[_0x2f3811];return _0x4127c5;}function l(_0x3d215d,_0x170832,_0x411da9){const _0x4c8e2d=_0x4127;return(_0x170832=c(_0x170832))in _0x3d215d?Object[_0x4c8e2d(0x8d)](_0x3d215d,_0x170832,{'value':_0x411da9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d215d[_0x170832]=_0x411da9,_0x3d215d;}var u=class extends _0x2bb1ef{constructor(..._0x24f388){super(..._0x24f388),l(this,'_liveShareController',void 0x0);}['_initialize'](_0x516b54){const _0x3334c6=_0x4127;this[_0x3334c6(0x75)]=_0x516b54[_0x3334c6(0x79)](_0x5c080e);}[_0x2b99c4(0x7b)](){const _0x156764=_0x2b99c4;var _0x22b1d4;let _0x394362=this['_injector'][_0x156764(0x79)](_0x466ade)['getCurrentUnitOfType'](_0x43acff[_0x156764(0x84)]);if(!_0x394362)throw Error(_0x156764(0x87));let _0x18ee74=_0x394362[_0x156764(0x82)](),_0x24aa04=this[_0x156764(0x75)][_0x156764(0x7e)](_0x18ee74);return(_0x22b1d4=_0x24aa04==null?void 0x0:_0x24aa04[_0x156764(0x80)]())==null?_0x393b86[_0x156764(0x9a)]:_0x22b1d4;}[_0x2b99c4(0x89)](){const _0x382580=_0x2b99c4;let _0x3a4637=this['_injector']['get'](_0x466ade)[_0x382580(0x77)](_0x43acff[_0x382580(0x84)]);if(!_0x3a4637)throw Error(_0x382580(0x87));let _0x5a63c3=_0x3a4637[_0x382580(0x82)](),_0x544cdf=this[_0x382580(0x75)][_0x382580(0x7e)](_0x5a63c3);if(!_0x544cdf)throw Error(_0x382580(0x8b));_0x544cdf[_0x382580(0x89)]();}[_0x2b99c4(0x7a)](){const _0x10e062=_0x2b99c4;let _0x2bb08d=this[_0x10e062(0x8f)][_0x10e062(0x79)](_0x466ade)[_0x10e062(0x77)](_0x43acff['UNIVER_SHEET']);if(!_0x2bb08d)throw Error(_0x10e062(0x87));let _0xaf535=_0x2bb08d[_0x10e062(0x82)](),_0x313a6b=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xaf535);if(!_0x313a6b)throw Error(_0x10e062(0x8b));_0x313a6b[_0x10e062(0x7a)]();}[_0x2b99c4(0x94)](){const _0x1063f5=_0x2b99c4;let _0x9ccbb8=this[_0x1063f5(0x8f)][_0x1063f5(0x79)](_0x466ade)[_0x1063f5(0x77)](_0x43acff[_0x1063f5(0x84)]);if(!_0x9ccbb8)throw Error('No\x20active\x20workbook\x20found.');let _0x8cb53=_0x9ccbb8[_0x1063f5(0x82)](),_0xd37551=this['_liveShareController'][_0x1063f5(0x7e)](_0x8cb53);if(!_0xd37551)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd37551[_0x1063f5(0x97)]();}[_0x2b99c4(0x93)](){const _0x1aa385=_0x2b99c4;let _0x17f76c=this[_0x1aa385(0x8f)][_0x1aa385(0x79)](_0x466ade)[_0x1aa385(0x77)](_0x43acff[_0x1aa385(0x84)]);if(!_0x17f76c)throw Error('No\x20active\x20workbook\x20found.');let _0x1f4350=_0x17f76c[_0x1aa385(0x82)](),_0x18a7ee=this[_0x1aa385(0x75)][_0x1aa385(0x7e)](_0x1f4350);if(!_0x18a7ee)throw Error(_0x1aa385(0x8b));_0x18a7ee['stopPresenting']();}};function _0x375d(){const _0x57ef33=['7015505MxDMzB','440088rxADDv','IDLE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatusEnum','_liveShareController','121VKiDZH','getCurrentUnitOfType','object','get','stopFollowing','getLiveShareStatus','function','192IIMkuk','getLiveShareCoordinatorSync','toPrimitive','getStatus','2151228BBzvqQ','getUnitId','default','UNIVER_SHEET','401818ykiyVb','symbol','No\x20active\x20workbook\x20found.','54fPVGWF','startFollowing','constructor','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','string','defineProperty','78753FJEMfP','_injector','call','extend','3kCEKYF','stopPresenting','startPresenting','4151203XPisOI','1455440IjoCew','tryStartPresenting'];_0x375d=function(){return _0x57ef33;};return _0x375d();}_0x2bb1ef[_0x2b99c4(0x91)](u);var d=class extends _0x454fcc{get[_0x2b99c4(0x74)](){return _0x393b86;}};_0x454fcc[_0x2b99c4(0x91)](d);export{};
1
+ const _0x1b4d1d=_0x1a28;(function(_0x39c7cf,_0x19a6de){const _0x5565d0=_0x1a28,_0x384596=_0x39c7cf();while(!![]){try{const _0x5cf116=-parseInt(_0x5565d0(0x126))/0x1*(parseInt(_0x5565d0(0x13d))/0x2)+-parseInt(_0x5565d0(0x12e))/0x3+-parseInt(_0x5565d0(0x140))/0x4+-parseInt(_0x5565d0(0x138))/0x5*(parseInt(_0x5565d0(0x132))/0x6)+parseInt(_0x5565d0(0x13e))/0x7*(parseInt(_0x5565d0(0x13a))/0x8)+parseInt(_0x5565d0(0x146))/0x9+parseInt(_0x5565d0(0x13f))/0xa;if(_0x5cf116===_0x19a6de)break;else _0x384596['push'](_0x384596['shift']());}catch(_0x407399){_0x384596['push'](_0x384596['shift']());}}}(_0x1737,0x70c1a));import{LiveShareController as _0x5b179c,LiveShareStatus as _0x2599d9}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x46da9d,UniverInstanceType as _0x275a6a}from'@univerjs/core';import{FEnum as _0x42d39f,FUniver as _0x25fd38}from'@univerjs/core/facade';function o(_0xcfab51){'@babel/helpers - typeof';const _0x2f41ee=_0x1a28;return o=typeof Symbol==_0x2f41ee(0x123)&&typeof Symbol['iterator']==_0x2f41ee(0x125)?function(_0x4eab81){return typeof _0x4eab81;}:function(_0x5c831c){const _0xb99719=_0x2f41ee;return _0x5c831c&&typeof Symbol==_0xb99719(0x123)&&_0x5c831c[_0xb99719(0x142)]===Symbol&&_0x5c831c!==Symbol[_0xb99719(0x124)]?_0xb99719(0x125):typeof _0x5c831c;},o(_0xcfab51);}function s(_0x15160b,_0x2e4977){const _0x5ed7fc=_0x1a28;if(o(_0x15160b)!=_0x5ed7fc(0x121)||!_0x15160b)return _0x15160b;var _0x1dcea7=_0x15160b[Symbol[_0x5ed7fc(0x12a)]];if(_0x1dcea7!==void 0x0){var _0x5273ac=_0x1dcea7[_0x5ed7fc(0x130)](_0x15160b,_0x2e4977||_0x5ed7fc(0x143));if(o(_0x5273ac)!='object')return _0x5273ac;throw TypeError(_0x5ed7fc(0x147));}return(_0x2e4977===_0x5ed7fc(0x144)?String:Number)(_0x15160b);}function c(_0x28f78b){const _0x92b275=_0x1a28;var _0x306893=s(_0x28f78b,_0x92b275(0x144));return o(_0x306893)==_0x92b275(0x125)?_0x306893:_0x306893+'';}function l(_0x3bebcf,_0x3a2632,_0x50f527){return(_0x3a2632=c(_0x3a2632))in _0x3bebcf?Object['defineProperty'](_0x3bebcf,_0x3a2632,{'value':_0x50f527,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3bebcf[_0x3a2632]=_0x50f527,_0x3bebcf;}var u=class extends _0x25fd38{constructor(..._0x4ea75d){super(..._0x4ea75d),l(this,'_liveShareController',void 0x0);}[_0x1b4d1d(0x12c)](_0x2be183){const _0x4cc9c2=_0x1b4d1d;this[_0x4cc9c2(0x135)]=_0x2be183[_0x4cc9c2(0x134)](_0x5b179c);}[_0x1b4d1d(0x137)](){const _0x59a795=_0x1b4d1d;var _0x5b41ce;let _0x246682=this[_0x59a795(0x139)][_0x59a795(0x134)](_0x46da9d)[_0x59a795(0x131)](_0x275a6a[_0x59a795(0x136)]);if(!_0x246682)throw Error(_0x59a795(0x13c));let _0x517cd6=_0x246682['getUnitId'](),_0x426524=this[_0x59a795(0x135)][_0x59a795(0x127)](_0x517cd6);return(_0x5b41ce=_0x426524==null?void 0x0:_0x426524[_0x59a795(0x13b)]())==null?_0x2599d9[_0x59a795(0x122)]:_0x5b41ce;}[_0x1b4d1d(0x12b)](){const _0x3924c8=_0x1b4d1d;let _0x3c4283=this[_0x3924c8(0x139)]['get'](_0x46da9d)['getCurrentUnitOfType'](_0x275a6a[_0x3924c8(0x136)]);if(!_0x3c4283)throw Error('No\x20active\x20workbook\x20found.');let _0x1635ee=_0x3c4283[_0x3924c8(0x128)](),_0x2e1843=this['_liveShareController'][_0x3924c8(0x127)](_0x1635ee);if(!_0x2e1843)throw Error(_0x3924c8(0x141));_0x2e1843[_0x3924c8(0x12b)]();}[_0x1b4d1d(0x12f)](){const _0x8fb4d9=_0x1b4d1d;let _0x37bb0e=this['_injector'][_0x8fb4d9(0x134)](_0x46da9d)[_0x8fb4d9(0x131)](_0x275a6a[_0x8fb4d9(0x136)]);if(!_0x37bb0e)throw Error(_0x8fb4d9(0x13c));let _0x4814b2=_0x37bb0e[_0x8fb4d9(0x128)](),_0x368c92=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x4814b2);if(!_0x368c92)throw Error(_0x8fb4d9(0x141));_0x368c92['stopFollowing']();}[_0x1b4d1d(0x12d)](){const _0x1c8f5a=_0x1b4d1d;let _0x2ada99=this[_0x1c8f5a(0x139)]['get'](_0x46da9d)[_0x1c8f5a(0x131)](_0x275a6a[_0x1c8f5a(0x136)]);if(!_0x2ada99)throw Error(_0x1c8f5a(0x13c));let _0x6091ab=_0x2ada99['getUnitId'](),_0x367ff2=this['_liveShareController'][_0x1c8f5a(0x127)](_0x6091ab);if(!_0x367ff2)throw Error(_0x1c8f5a(0x141));_0x367ff2['tryStartPresenting']();}[_0x1b4d1d(0x129)](){const _0x2eedaf=_0x1b4d1d;let _0x3214f1=this[_0x2eedaf(0x139)][_0x2eedaf(0x134)](_0x46da9d)['getCurrentUnitOfType'](_0x275a6a[_0x2eedaf(0x136)]);if(!_0x3214f1)throw Error(_0x2eedaf(0x13c));let _0x99f709=_0x3214f1[_0x2eedaf(0x128)](),_0x1d3d31=this[_0x2eedaf(0x135)][_0x2eedaf(0x127)](_0x99f709);if(!_0x1d3d31)throw Error(_0x2eedaf(0x141));_0x1d3d31['stopPresenting']();}};_0x25fd38[_0x1b4d1d(0x133)](u);var d=class extends _0x42d39f{get[_0x1b4d1d(0x145)](){return _0x2599d9;}};function _0x1737(){const _0x4afc26=['getStatus','No\x20active\x20workbook\x20found.','426500xcqvET','63XGqmlY','10563610YtJBXy','1153260HCRMVP','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','constructor','default','string','LiveShareStatusEnum','994851UxXBXp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','IDLE','function','prototype','symbol','2ExKPdQ','getLiveShareCoordinatorSync','getUnitId','stopPresenting','toPrimitive','startFollowing','_initialize','startPresenting','764139LjhqJD','stopFollowing','call','getCurrentUnitOfType','4404FQFtdN','extend','get','_liveShareController','UNIVER_SHEET','getLiveShareStatus','140oawYCH','_injector','253360ntreJw'];_0x1737=function(){return _0x4afc26;};return _0x1737();}_0x42d39f[_0x1b4d1d(0x133)](d);function _0x1a28(_0x4f6e1c,_0x325b5c){_0x4f6e1c=_0x4f6e1c-0x121;const _0x173754=_0x1737();let _0x1a2868=_0x173754[_0x4f6e1c];return _0x1a2868;}export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x483488=_0x45b7;(function(_0x481774,_0x480832){const _0x4f141c=_0x45b7,_0xffc8be=_0x481774();while(!![]){try{const _0x464732=parseInt(_0x4f141c(0xef))/0x1+-parseInt(_0x4f141c(0x124))/0x2+parseInt(_0x4f141c(0x139))/0x3*(parseInt(_0x4f141c(0x123))/0x4)+parseInt(_0x4f141c(0x14f))/0x5*(-parseInt(_0x4f141c(0x119))/0x6)+parseInt(_0x4f141c(0x13b))/0x7+-parseInt(_0x4f141c(0x154))/0x8*(parseInt(_0x4f141c(0xf3))/0x9)+-parseInt(_0x4f141c(0x137))/0xa*(-parseInt(_0x4f141c(0x159))/0xb);if(_0x464732===_0x480832)break;else _0xffc8be['push'](_0xffc8be['shift']());}catch(_0x5a7e78){_0xffc8be['push'](_0xffc8be['shift']());}}}(_0x2fbf,0x8a5d2));import{CommandType as _0x458c45,DependentOn as _0x1240ac,Disposable as _0x25821d,DisposableCollection as _0x11b478,ICommandService as _0x24a679,IConfigService as _0x5bd473,IUniverInstanceService as _0x463264,Inject as _0x519b70,Injector as _0x1f8563,Plugin as _0x2e5f28,RxDisposable as _0x1dffe0,UniverInstanceType as _0x443dc4,merge as _0x2e9292,mergeOverrideWithDependencies as _0x13dc50,registerDependencies as _0x1030c8,toDisposable as _0xaaab04,touchDependencies as _0x56c0e1}from'@univerjs/core';import{BuiltInUIPart as _0x4a5288,IUIPartsService as _0xc74574,connectInjector as _0x39d05e,useDependency as _0x128025,useObservable as _0x407d3e}from'@univerjs/ui';import{Button as _0x21c6a6,Dropdown as _0x451c05,clsx as _0x3a2015}from'@univerjs/design';function _0x45b7(_0x312e5c,_0x320410){_0x312e5c=_0x312e5c-0xdb;const _0x2fbfc8=_0x2fbf();let _0x45b719=_0x2fbfc8[_0x312e5c];return _0x45b719;}import{LiveShareIcon as _0x1525d7}from'@univerjs/icons';import{useEffect as _0x34b418,useRef as _0x523753,useState as _0x2329c2}from'react';import{CollaborationEvent as _0x275d1f,parseProtocolChangeset as _0xaf2f9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59fd96,SessionStatus as _0xa36ca2,UniverCollaborationClientPlugin as _0x422184}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x594abb,SetWorksheetActiveOperation as _0x3e5ed1}from'@univerjs/sheets';import{BehaviorSubject as _0x4db554,Subject as _0x3e2cca}from'rxjs';import{takeUntil as _0xa626ba,throttleTime as _0x255e38}from'rxjs/operators';import{Fragment as _0x508d28,jsx as _0x2658fa,jsxs as _0x30d109}from'react/jsx-runtime';import{SetScrollOperation as _0x354a42,SetZoomRatioOperation as _0x33a400}from'@univerjs/sheets-ui';function L(_0x3f3d6e){'@babel/helpers - typeof';const _0x4e6e03=_0x45b7;return L=typeof Symbol==_0x4e6e03(0x10e)&&typeof Symbol[_0x4e6e03(0x12a)]==_0x4e6e03(0x109)?function(_0x32bbb2){return typeof _0x32bbb2;}:function(_0x189f7d){const _0x30815f=_0x4e6e03;return _0x189f7d&&typeof Symbol==_0x30815f(0x10e)&&_0x189f7d['constructor']===Symbol&&_0x189f7d!==Symbol[_0x30815f(0x107)]?_0x30815f(0x109):typeof _0x189f7d;},L(_0x3f3d6e);}function R(_0x3b740f,_0x3edc40){const _0x3ce480=_0x45b7;if(L(_0x3b740f)!=_0x3ce480(0x14c)||!_0x3b740f)return _0x3b740f;var _0x3bf1a4=_0x3b740f[Symbol[_0x3ce480(0xe7)]];if(_0x3bf1a4!==void 0x0){var _0x134a5f=_0x3bf1a4[_0x3ce480(0x143)](_0x3b740f,_0x3edc40||_0x3ce480(0xeb));if(L(_0x134a5f)!=_0x3ce480(0x14c))return _0x134a5f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3edc40===_0x3ce480(0x162)?String:Number)(_0x3b740f);}function z(_0x412bea){const _0x12b1b8=_0x45b7;var _0x17cfec=R(_0x412bea,_0x12b1b8(0x162));return L(_0x17cfec)=='symbol'?_0x17cfec:_0x17cfec+'';}function B(_0x20a5f2,_0x2c7e78,_0x3b0dc5){const _0x42ca67=_0x45b7;return(_0x2c7e78=z(_0x2c7e78))in _0x20a5f2?Object[_0x42ca67(0x140)](_0x20a5f2,_0x2c7e78,{'value':_0x3b0dc5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20a5f2[_0x2c7e78]=_0x3b0dc5,_0x20a5f2;}var V=class extends _0x25821d{constructor(..._0x1cf08b){const _0x167e1c=_0x45b7;super(..._0x1cf08b),B(this,_0x167e1c(0x105),new Set()),B(this,_0x167e1c(0x11e),new Set());}[_0x483488(0xe5)](_0x214e18){const _0x50e9f8=_0x483488;return this[_0x50e9f8(0x105)][_0x50e9f8(0x163)](_0x214e18),_0xaaab04(()=>this[_0x50e9f8(0x105)][_0x50e9f8(0x164)](_0x214e18));}[_0x483488(0xf8)](_0x3fe0dc){const _0x457405=_0x483488;return this['_reporters'][_0x457405(0x163)](_0x3fe0dc),_0xaaab04(()=>this[_0x457405(0x11e)][_0x457405(0x164)](_0x3fe0dc));}[_0x483488(0x160)](_0x4bf672){const _0x3a52de=_0x483488;return this[_0x3a52de(0x105)]['has'](_0x4bf672);}['getInitialStates'](_0x1e90c1){const _0x36408f=_0x483488;return Array['from'](this['_reporters'])[_0x36408f(0x135)](_0x20a44e=>_0x20a44e(_0x1e90c1));}};function H(_0x2f9d8e,_0x5d4695){return function(_0x881661,_0x5cd344){_0x5d4695(_0x881661,_0x5cd344,_0x2f9d8e);};}function U(_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1){const _0x562a82=_0x483488;var _0x495527=arguments[_0x562a82(0x152)],_0x4410d1=_0x495527<0x3?_0x1af699:_0x1ec3e1===null?_0x1ec3e1=Object['getOwnPropertyDescriptor'](_0x1af699,_0x2e9d79):_0x1ec3e1,_0x2803a5;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x562a82(0x10e))_0x4410d1=Reflect['decorate'](_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1);else{for(var _0xe3b8d=_0x247ab9[_0x562a82(0x152)]-0x1;_0xe3b8d>=0x0;_0xe3b8d--)(_0x2803a5=_0x247ab9[_0xe3b8d])&&(_0x4410d1=(_0x495527<0x3?_0x2803a5(_0x4410d1):_0x495527>0x3?_0x2803a5(_0x1af699,_0x2e9d79,_0x4410d1):_0x2803a5(_0x1af699,_0x2e9d79))||_0x4410d1);}return _0x495527>0x3&&_0x4410d1&&Object[_0x562a82(0x140)](_0x1af699,_0x2e9d79,_0x4410d1),_0x4410d1;}let W=class extends _0x1dffe0{constructor(_0x3cbb6b,_0x2853c9,_0x476c88){const _0x22e720=_0x483488;super(),this[_0x22e720(0x10d)]=_0x3cbb6b,this[_0x22e720(0x12e)]=_0x2853c9,this['_collabSessionService']=_0x476c88,B(this,_0x22e720(0x11d),new Map()),this[_0x22e720(0x15a)]();}async[_0x483488(0x117)](_0xba2a9){const _0x305924=_0x483488;return this[_0x305924(0x11d)][_0x305924(0x13c)](_0xba2a9)||await this['_startLiveShareCoordinator'](_0xba2a9),this['_entities']['get'](_0xba2a9);}[_0x483488(0xfd)](_0x471bca){const _0x1b40ee=_0x483488;var _0x4cf63b;return(_0x4cf63b=this[_0x1b40ee(0x11d)][_0x1b40ee(0x10a)](_0x471bca))==null?null:_0x4cf63b;}[_0x483488(0x15a)](){const _0x5bec5e=_0x483488;this['_univerInstanceService'][_0x5bec5e(0x165)](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))['subscribe'](async _0x315cf7=>{const _0x1c642f=_0x5bec5e;let _0x2a2abc=_0x315cf7['unit'][_0x1c642f(0xf7)]();this[_0x1c642f(0x11d)][_0x1c642f(0x13c)](_0x2a2abc)||this[_0x1c642f(0x12d)](_0x2a2abc);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))[_0x5bec5e(0x11f)](_0x418e3d=>{const _0x3df8c6=_0x5bec5e;let _0x5c9eda=_0x418e3d['getUnitId'](),_0x1dec7a=this[_0x3df8c6(0x11d)][_0x3df8c6(0x10a)](_0x5c9eda);_0x1dec7a==null||_0x1dec7a[_0x3df8c6(0x113)]();});}async[_0x483488(0x12d)](_0x518bed){const _0x3bc783=_0x483488;let _0x4be529=await this[_0x3bc783(0x112)]['requireSession'](_0x518bed),_0x5e329d=this['_injector']['createInstance'](K,_0x518bed,_0x4be529);return _0x5e329d[_0x3bc783(0x120)](),this[_0x3bc783(0x11d)][_0x3bc783(0xdf)](_0x518bed,_0x5e329d),_0x5e329d;}};W=U([H(0x0,_0x463264),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x519b70(_0x59fd96))],W);let G=function(_0x3cece8){const _0x316e52=_0x483488;return _0x3cece8[_0x316e52(0x14d)]=_0x316e52(0x115),_0x3cece8[_0x316e52(0xf1)]=_0x316e52(0xdd),_0x3cece8[_0x316e52(0xdb)]='following',_0x3cece8['NOT_FOLLOWING']=_0x316e52(0x11a),_0x3cece8[_0x316e52(0x108)]=_0x316e52(0xe6),_0x3cece8;}({}),K=class extends _0x1dffe0{get['_status'](){const _0x44f4c2=_0x483488;return this[_0x44f4c2(0x134)]['getValue']();}constructor(_0x42e687,_0x1f02ea,_0x4a0697,_0x2e5516,_0x328a2a){const _0x3ade14=_0x483488;super(),this['_unitID']=_0x42e687,this[_0x3ade14(0x104)]=_0x1f02ea,this['_configService']=_0x4a0697,this[_0x3ade14(0xfb)]=_0x2e5516,this[_0x3ade14(0x130)]=_0x328a2a,B(this,_0x3ade14(0x134),new _0x4db554(_0x3ade14(0xdd))),B(this,'status$',this[_0x3ade14(0x134)][_0x3ade14(0x129)]()),B(this,_0x3ade14(0x15a),!0x1),B(this,'_commandDisposable',null),B(this,'_presenter',null);}['dispose'](){const _0x731e6a=_0x483488;var _0x3d4fd0;(_0x3d4fd0=this[_0x731e6a(0x12b)])==null||_0x3d4fd0[_0x731e6a(0x113)](),this[_0x731e6a(0x134)][_0x731e6a(0x15b)](_0x731e6a(0xdd)),this[_0x731e6a(0x134)][_0x731e6a(0x14e)]();}[_0x483488(0x13a)](){return this['_status'];}[_0x483488(0x120)](){const _0x486997=_0x483488;this['_init']||(this[_0x486997(0x15a)]=!0x0,this[_0x486997(0x104)]['sessionStatus$'][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x5abeab=>{const _0x5860ad=_0x486997;switch(_0x5abeab){case _0xa36ca2[_0x5860ad(0x14d)]:this[_0x5860ad(0x151)]();break;case _0xa36ca2[_0x5860ad(0x11b)]:this[_0x5860ad(0x11c)]();break;default:}}),this[_0x486997(0x104)][_0x486997(0x142)][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x3e8753=>{const _0x2726e0=_0x486997;let {eventID:_0x15297d}=_0x3e8753;switch(_0x15297d){case _0x275d1f[_0x2726e0(0x126)]:this[_0x2726e0(0x16e)](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x148)]:this['_handleOperation'](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x12c)]:this['_handleTerminate']();break;case _0x275d1f[_0x2726e0(0x14a)]:this[_0x2726e0(0x16c)](_0x3e8753);break;default:}}));}[_0x483488(0xff)](){const _0x6e80e2=_0x483488;this[_0x6e80e2(0x104)][_0x6e80e2(0xf5)]({'eventID':_0x275d1f[_0x6e80e2(0x133)],'data':{'unitID':this['_unitID'],'userID':this[_0x6e80e2(0x104)][_0x6e80e2(0x121)]()}},this[_0x6e80e2(0xed)]);}[_0x483488(0x136)](){const _0x51a89a=_0x483488;this['_status']===_0x51a89a(0xe6)&&(this['_status$'][_0x51a89a(0x15b)](_0x51a89a(0xdd)),this['_collabSession'][_0x51a89a(0xf5)]({'eventID':_0x275d1f[_0x51a89a(0x12c)],'data':{'unitID':this[_0x51a89a(0xed)]}},this[_0x51a89a(0xed)]));}[_0x483488(0x155)](){const _0x1cd148=_0x483488;this[_0x1cd148(0x150)]===_0x1cd148(0x11a)&&(this['_status$'][_0x1cd148(0x15b)](_0x1cd148(0x167)),this[_0x1cd148(0x153)]());}['stopFollowing'](){const _0x267338=_0x483488;this[_0x267338(0x150)]===_0x267338(0x167)&&this['_stopFollowing']();}[_0x483488(0x16e)](_0x29354a){const _0x5a8e73=_0x483488;let {presenter:_0x31d773}=_0x29354a[_0x5a8e73(0x15e)],_0x1f914f=this['_collabSession']['getMemberID']();this[_0x5a8e73(0x138)]=_0x31d773,_0x31d773===_0x1f914f?(this[_0x5a8e73(0x10c)](),this['_startPresenting']()):this[_0x5a8e73(0x150)]!=='not-following'&&(this[_0x5a8e73(0x13e)](),this[_0x5a8e73(0x153)]());}['_fetchOperations'](){const _0x18e6a8=_0x483488;let _0x1647ab={'eventID':_0x275d1f[_0x18e6a8(0xee)]};this[_0x18e6a8(0x104)][_0x18e6a8(0xf5)](_0x1647ab,this[_0x18e6a8(0xed)]);}[_0x483488(0x16d)](){const _0x4546c6=_0x483488;this[_0x4546c6(0x138)]=null,this[_0x4546c6(0x150)]!=='presenting'&&this[_0x4546c6(0x169)]();}[_0x483488(0x16c)](_0x33cf5b){const _0x42f3f9=_0x483488;if(this['_status']===_0x42f3f9(0x167)&&this[_0x42f3f9(0x138)]===_0x33cf5b[_0x42f3f9(0x15e)][_0x42f3f9(0x125)]){let _0x335687=_0xaf2f9c(_0x33cf5b[_0x42f3f9(0x15e)])[_0x42f3f9(0xf6)][_0x42f3f9(0x116)]()[_0x42f3f9(0x15f)](_0x230023=>_0x230023['id']===_0x594abb['id']);if(_0x335687){let _0xb62741=_0x335687[_0x42f3f9(0x10b)][_0x42f3f9(0x13d)],_0x3122d2=_0x335687['params'][_0x42f3f9(0x168)]['id'];setTimeout(()=>{const _0x584661=_0x42f3f9;this['_commandService'][_0x584661(0x15d)](_0x3e5ed1['id'],{'unitId':_0xb62741,'subUnitId':_0x3122d2},{'fromCollab':!0x0});});}}}[_0x483488(0x103)](){const _0x5d974b=_0x483488;var _0x411ec8;(_0x411ec8=this[_0x5d974b(0x12b)])==null||_0x411ec8['dispose'](),this[_0x5d974b(0x134)][_0x5d974b(0x15b)](_0x5d974b(0xe6));let _0x5616b2=new Map(),_0x1bda74=this[_0x5d974b(0x12b)]=new _0x11b478();_0x1bda74['add'](_0xaaab04(()=>{const _0x5070a4=_0x5d974b;_0x5616b2[_0x5070a4(0xfa)](({subject:_0x5024d8,subscription:_0x11f265})=>{const _0x2be60c=_0x5070a4;_0x11f265[_0x2be60c(0x102)](),_0x5024d8[_0x2be60c(0x14e)]();}),_0x5616b2[_0x5070a4(0x149)]();})),_0x1bda74[_0x5d974b(0x163)](this[_0x5d974b(0x130)][_0x5d974b(0x101)](_0x19c86c=>{const _0x37efbf=_0x5d974b;if(_0x19c86c[_0x37efbf(0x118)]!==_0x458c45[_0x37efbf(0x156)]||!this[_0x37efbf(0xfb)][_0x37efbf(0x160)](_0x19c86c['id']))return;let {id:_0x3bc3e4}=_0x19c86c,_0x1536eb;if(_0x5616b2[_0x37efbf(0x13c)](_0x3bc3e4))_0x1536eb=_0x5616b2[_0x37efbf(0x10a)](_0x3bc3e4)[_0x37efbf(0x15c)];else{var _0x1ed284;_0x1536eb=new _0x3e2cca();let _0x59c8e4=_0x1536eb[_0x37efbf(0xfc)](_0x255e38((_0x1ed284=this[_0x37efbf(0x122)][_0x37efbf(0xe2)](_0x37efbf(0xe4)))==null?0xc8:_0x1ed284,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37efbf(0x11f)](_0x4deaca=>{const _0xd4647e=_0x37efbf;this[_0xd4647e(0x104)][_0xd4647e(0xf5)]({'eventID':_0x275d1f[_0xd4647e(0x148)],'data':{'unitID':this[_0xd4647e(0xed)],'operations':{[_0x4deaca['id']]:{'id':_0x4deaca['id'],'params':JSON[_0xd4647e(0x158)](_0x4deaca[_0xd4647e(0x10b)])}}}},this['_unitID']);});_0x5616b2['set'](_0x3bc3e4,{'subject':_0x1536eb,'subscription':_0x59c8e4});}_0x1536eb[_0x37efbf(0x15b)](_0x19c86c);})),this['_liveShareService'][_0x5d974b(0x170)](this[_0x5d974b(0xed)])[_0x5d974b(0xfa)](_0x54979c=>this[_0x5d974b(0x104)]['send']({'eventID':_0x275d1f[_0x5d974b(0x148)],'data':{'unitID':this['_unitID'],'operations':{[_0x54979c['id']]:{'id':_0x54979c['id'],'params':JSON[_0x5d974b(0x158)](_0x54979c['params'])}}}},this[_0x5d974b(0xed)]));}[_0x483488(0x13e)](){const _0x2525ec=_0x483488;var _0x4117b0;this[_0x2525ec(0x134)][_0x2525ec(0x15b)]('idle'),(_0x4117b0=this[_0x2525ec(0x12b)])==null||_0x4117b0[_0x2525ec(0x113)](),this['_commandDisposable']=null;}[_0x483488(0x153)](){const _0x56837e=_0x483488;var _0x1e68b0;(_0x1e68b0=this[_0x56837e(0x12b)])==null||_0x1e68b0[_0x56837e(0x113)](),this[_0x56837e(0x134)]['next'](_0x56837e(0x167));}[_0x483488(0x169)](){const _0x51a6df=_0x483488;var _0x2ec300;this[_0x51a6df(0x134)][_0x51a6df(0x15b)](_0x51a6df(0xdd)),(_0x2ec300=this['_commandDisposable'])==null||_0x2ec300[_0x51a6df(0x113)](),this[_0x51a6df(0x12b)]=null;}['_stopFollowing'](){const _0x126668=_0x483488;var _0x5bc21a;this[_0x126668(0x134)]['next'](_0x126668(0x11a)),(_0x5bc21a=this[_0x126668(0x12b)])==null||_0x5bc21a[_0x126668(0x113)]();}['_handleOperation'](_0x1fb62c){const _0x14d5a8=_0x483488;if([_0x14d5a8(0xe6),_0x14d5a8(0x11a),'offline'][_0x14d5a8(0xe0)](this[_0x14d5a8(0x150)])||!_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0xf4)]||_0x1fb62c['data'][_0x14d5a8(0xf4)]===this[_0x14d5a8(0x104)][_0x14d5a8(0x121)]())return;this['_status']===_0x14d5a8(0xdd)&&this[_0x14d5a8(0x153)]();let _0x4ca9de=_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0x157)];Object[_0x14d5a8(0x146)](_0x4ca9de)[_0x14d5a8(0xfa)](_0x45965c=>{const _0x13ff50=_0x14d5a8;this[_0x13ff50(0x130)][_0x13ff50(0x15d)](_0x45965c['id'],_0x45965c['params']?JSON[_0x13ff50(0x13f)](_0x45965c[_0x13ff50(0x10b)]):null,{'fromCollab':!0x0});});}[_0x483488(0x151)](){const _0x23845e=_0x483488;var _0x3aaad9;this[_0x23845e(0x134)][_0x23845e(0x15b)](_0x23845e(0x115)),(_0x3aaad9=this['_commandDisposable'])==null||_0x3aaad9[_0x23845e(0x113)]();}[_0x483488(0x11c)](){const _0x59d97b=_0x483488;this[_0x59d97b(0x134)]['next'](_0x59d97b(0xdd)),this[_0x59d97b(0x10f)]();}};K=U([H(0x2,_0x5bd473),H(0x3,_0x519b70(V)),H(0x4,_0x24a679)],K);function q(){const _0x45a13d=_0x483488;let _0x2df76a=_0x128025(W),_0x1baac4=_0x128025(_0x463264),_0xf2afa0=_0x407d3e(()=>_0x1baac4[_0x45a13d(0xde)](_0x443dc4[_0x45a13d(0x145)]),void 0x0,!0x1,[]),[_0x14f53a,_0x3595ab]=_0x2329c2(null),[_0x111ced,_0x19a5ad]=_0x2329c2(_0x45a13d(0xdd)),_0x59c95f=_0x523753(null);return _0x34b418(()=>(_0xf2afa0&&_0x2df76a['getLiveShareCoordinator'](_0xf2afa0[_0x45a13d(0xf7)]())[_0x45a13d(0x114)](_0x33b041=>{const _0x93cd89=_0x45a13d;_0x3595ab(_0x33b041),_0x59c95f[_0x93cd89(0x14b)]=_0x33b041['status$'][_0x93cd89(0x11f)](_0x11dc9f=>{_0x19a5ad(_0x11dc9f);});}),()=>{const _0x4c84f4=_0x45a13d;var _0x596fb7;(_0x596fb7=_0x59c95f[_0x4c84f4(0x14b)])==null||_0x596fb7[_0x4c84f4(0x102)](),_0x59c95f['current']=null;}),[_0xf2afa0,_0x2df76a]),_0x14f53a?_0x2658fa(_0x451c05,{'align':'end','disabled':_0x111ced===_0x45a13d(0x115),'className':_0x45a13d(0xe1),'overlay':_0x2658fa(ce,{'status':_0x111ced,'coordinator':_0x14f53a}),'children':_0x2658fa('button',{'className':_0x3a2015(_0x45a13d(0xf0),{'univer-cursor-not-allowed':_0x111ced===_0x45a13d(0x115),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x111ced!==_0x45a13d(0x115)}),'type':_0x45a13d(0xdc),'children':_0x2658fa(_0x1525d7,{'className':_0x45a13d(0x110)})})}):null;}function ce(_0x28c8f9){const _0x4e566d=_0x483488;let {status:_0x16a352,coordinator:_0xf0b1bb}=_0x28c8f9;switch(_0x16a352){case _0x4e566d(0xdd):return _0x2658fa(le,{'coordinator':_0xf0b1bb});case'following':return _0x2658fa(ue,{'coordinator':_0xf0b1bb});case _0x4e566d(0x11a):return _0x2658fa(de,{'coordinator':_0xf0b1bb});case'offline':return _0x2658fa(fe,{});case _0x4e566d(0xe6):return _0x2658fa(J,{'coordinator':_0xf0b1bb});default:return null;}}function le(_0x80a58a){const _0x5c7c45=_0x483488;let {coordinator:_0x2b3845}=_0x80a58a;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0x5c7c45(0x132),{'className':_0x5c7c45(0x161),'children':'Present\x20this\x20document'}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x2b3845[_0x5c7c45(0xff)](),'children':_0x5c7c45(0x147)})]});}function ue(_0x564e8f){const _0x35a5b8=_0x483488;let {coordinator:_0x827031}=_0x564e8f;return _0x30d109(_0x508d28,{'children':[_0x2658fa('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x35a5b8(0xfe)}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x827031['stopFollowing'](),'children':_0x35a5b8(0x16b)})]});}function de(_0x170b55){const _0xe1606c=_0x483488;let {coordinator:_0x5d22ad}=_0x170b55;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xe1606c(0x132),{'className':_0xe1606c(0x161),'children':_0xe1606c(0xe8)}),_0x2658fa(_0x21c6a6,{'variant':'text','onClick':()=>_0x5d22ad[_0xe1606c(0x155)](),'children':_0xe1606c(0x128)})]});}function J(_0x41b798){const _0xf5eb1c=_0x483488;let {coordinator:_0x4b5f83}=_0x41b798;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xf5eb1c(0x132),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2658fa(_0x21c6a6,{'variant':_0xf5eb1c(0xeb),'onClick':()=>_0x4b5f83[_0xf5eb1c(0x136)](),'children':'Stop\x20presenting'})]});}function fe(){const _0x205204=_0x483488;return _0x2658fa(_0x508d28,{'children':_0x205204(0x100)});}let Y=class extends _0x25821d{constructor(_0x3dd031,_0x5530ac){const _0x2ecf5b=_0x483488;super(),this['_injector']=_0x3dd031,this[_0x2ecf5b(0xf2)]=_0x5530ac,this[_0x2ecf5b(0x141)]();}[_0x483488(0x141)](){const _0x55b9ce=_0x483488;this[_0x55b9ce(0x111)](this[_0x55b9ce(0xf2)][_0x55b9ce(0x12f)](_0x4a5288['HEADER_MENU'],()=>_0x39d05e(q,this['_injector'])));}};Y=U([H(0x0,_0x519b70(_0x1f8563)),H(0x1,_0xc74574)],Y);function _0x2fbf(){const _0x2ba42e=['getLiveShareCoordinatorSync','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','You\x27are\x20offline.','onCommandExecuted','unsubscribe','_startPresenting','_collabSession','_sharedOperations','live-share.config','prototype','PRESENTING','symbol','get','params','_stopFollowing','_univerInstanceService','function','_fetchOperations','univer-size-4','disposeWithMe','_collabSessionService','dispose','then','offline','reverse','getLiveShareCoordinator','type','241356LZzSiW','not-following','ONLINE','_handleOnline','_entities','_reporters','subscribe','init','getMemberID','_configService','8FUhaIk','1259034iWvHjx','memberID','LIVESHARE_NEW_HOST','@univerjs-pro/live-share','Start\x20following','asObservable','iterator','_commandDisposable','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_injector','registerComponent','_commandService','override','div','LIVESHARE_REQUEST_HOST','_status$','map','stopPresenting','10TGKNyK','_presenter','710367ZMnfss','getStatus','2394672ADlDof','has','unitId','_stopPresenting','parse','defineProperty','_mountLiveShare','event$','call','0.24.0','UNIVER_SHEET','values','Start','LIVESHARE_OPERATION','clear','NEW_CHANGESETS','current','object','OFFLINE','complete','100FeflZT','_status','_handleOffline','length','_startFollowing','5891592nXfPay','startFollowing','OPERATION','operations','stringify','10360471ofBdeE','_init','next','subject','executeCommand','data','find','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','add','delete','getTypeOfUnitAdded$','pluginName','following','sheet','_beIdle','packageName','Stop\x20following','_handleNewChangeSets','_handleTerminate','_handleNewHost','version','getInitialStates','FOLLOWING','button','idle','getCurrentTypeOfUnit$','set','includes','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getConfig','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','presenting','toPrimitive','You\x27re\x20not\x20following\x20the\x20presenter','_config','setConfig','default','onRendered','_unitID','LIVESHARE_FETCH_OPERATIONS','979689diOGji','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','_uiPartsService','9lyjQpA','presenter','send','mutations','getUnitId','registerInitialStateReporter','dispose$','forEach','_liveShareService','pipe'];_0x2fbf=function(){return _0x2ba42e;};return _0x2fbf();}var pe=_0x483488(0x127),me=_0x483488(0x144);const X=_0x483488(0x106);Symbol(X);const Z={};let Q=class extends _0x25821d{constructor(_0x3f2a6e){const _0x452524=_0x483488;super(),this['_liveShareService']=_0x3f2a6e,this[_0x452524(0x15a)]();}[_0x483488(0x15a)](){[_0x33a400['id'],_0x354a42['id'],_0x3e5ed1['id']]['forEach'](_0x3ba871=>{const _0x198c4e=_0x45b7;this[_0x198c4e(0x111)](this['_liveShareService'][_0x198c4e(0xe5)](_0x3ba871));});}};Q=U([H(0x0,_0x519b70(V))],Q);let $=class extends _0x2e5f28{constructor(_0x5747a0=Z,_0x50d166,_0x268d60){const _0x16de18=_0x483488;super(),this['_config']=_0x5747a0,this[_0x16de18(0x12e)]=_0x50d166,this['_configService']=_0x268d60;let {..._0x1b2174}=_0x2e9292({},Z,this[_0x16de18(0xe9)]);this[_0x16de18(0x122)][_0x16de18(0xea)](X,_0x1b2174);}['onStarting'](){const _0x5d4903=_0x483488;_0x1030c8(this[_0x5d4903(0x12e)],_0x13dc50([[V],[W],[Q],[Y]],this[_0x5d4903(0xe9)][_0x5d4903(0x131)])),_0x56c0e1(this[_0x5d4903(0x12e)],[[Q]]);}[_0x483488(0xec)](){const _0x8b73ab=_0x483488;_0x56c0e1(this[_0x8b73ab(0x12e)],[[Y]]);}};B($,_0x483488(0x118),_0x443dc4[_0x483488(0xe3)]),B($,_0x483488(0x166),'UNIVER_LIVE_SHARE_PLUGIN'),B($,_0x483488(0x16a),pe),B($,_0x483488(0x16f),me),$=U([_0x1240ac(_0x422184),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x5bd473)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x25a4d5=_0x43a2;(function(_0x5568f4,_0xebf517){const _0x41bf6e=_0x43a2,_0x16d485=_0x5568f4();while(!![]){try{const _0x4b3d7f=-parseInt(_0x41bf6e(0x162))/0x1+-parseInt(_0x41bf6e(0x12d))/0x2+parseInt(_0x41bf6e(0x104))/0x3*(parseInt(_0x41bf6e(0x11e))/0x4)+-parseInt(_0x41bf6e(0x122))/0x5+-parseInt(_0x41bf6e(0x115))/0x6+-parseInt(_0x41bf6e(0x140))/0x7*(-parseInt(_0x41bf6e(0x130))/0x8)+parseInt(_0x41bf6e(0x16b))/0x9;if(_0x4b3d7f===_0xebf517)break;else _0x16d485['push'](_0x16d485['shift']());}catch(_0x56c4b2){_0x16d485['push'](_0x16d485['shift']());}}}(_0x45c0,0x86916));import{CommandType as _0x51995d,DependentOn as _0x3381d0,Disposable as _0x567f68,DisposableCollection as _0x5c467b,ICommandService as _0x2f5f0a,IConfigService as _0x4098e7,IUniverInstanceService as _0x280497,Inject as _0x246204,Injector as _0x1d5744,Plugin as _0x38898e,RxDisposable as _0x20c67f,UniverInstanceType as _0x20aee4,merge as _0x46f91d,mergeOverrideWithDependencies as _0x1fd9b4,registerDependencies as _0x198de0,toDisposable as _0xeac609,touchDependencies as _0x2116c5}from'@univerjs/core';import{BuiltInUIPart as _0x354b15,IUIPartsService as _0x3e60ea,connectInjector as _0x198c5f,useDependency as _0x32c6ef,useObservable as _0x28ebf1}from'@univerjs/ui';import{Button as _0x267602,Dropdown as _0x90520d,clsx as _0x2dd8ba}from'@univerjs/design';import{LiveShareIcon as _0x113b09}from'@univerjs/icons';import{useEffect as _0x98e42e,useRef as _0x4bc3f8,useState as _0x62adba}from'react';import{CollaborationEvent as _0x4222bd,parseProtocolChangeset as _0x24459e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2435b7,SessionStatus as _0x559959,UniverCollaborationClientPlugin as _0x58c306}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xde9d87,SetWorksheetActiveOperation as _0x24fc60}from'@univerjs/sheets';import{BehaviorSubject as _0x32dfc6,Subject as _0x2bb81e}from'rxjs';import{takeUntil as _0x3561eb,throttleTime as _0x3f3658}from'rxjs/operators';import{Fragment as _0x473cb8,jsx as _0x22ef16,jsxs as _0x242ea9}from'react/jsx-runtime';import{SetScrollOperation as _0x4a4e17,SetZoomRatioOperation as _0x54451a}from'@univerjs/sheets-ui';function R(_0x35a630){'@babel/helpers - typeof';const _0x55d7e8=_0x43a2;return R=typeof Symbol==_0x55d7e8(0x16a)&&typeof Symbol[_0x55d7e8(0xf3)]==_0x55d7e8(0x173)?function(_0x2fa4f2){return typeof _0x2fa4f2;}:function(_0x4e4bab){const _0x3da035=_0x55d7e8;return _0x4e4bab&&typeof Symbol==_0x3da035(0x16a)&&_0x4e4bab[_0x3da035(0xf7)]===Symbol&&_0x4e4bab!==Symbol[_0x3da035(0x17e)]?_0x3da035(0x173):typeof _0x4e4bab;},R(_0x35a630);}function z(_0x3a3294,_0x5010bc){const _0x5cd61f=_0x43a2;if(R(_0x3a3294)!=_0x5cd61f(0x179)||!_0x3a3294)return _0x3a3294;var _0x172c5=_0x3a3294[Symbol[_0x5cd61f(0x121)]];if(_0x172c5!==void 0x0){var _0x32de5c=_0x172c5['call'](_0x3a3294,_0x5010bc||_0x5cd61f(0x12e));if(R(_0x32de5c)!=_0x5cd61f(0x179))return _0x32de5c;throw TypeError(_0x5cd61f(0x11f));}return(_0x5010bc==='string'?String:Number)(_0x3a3294);}function B(_0x476af6){const _0xf047bd=_0x43a2;var _0x2655c3=z(_0x476af6,_0xf047bd(0x127));return R(_0x2655c3)=='symbol'?_0x2655c3:_0x2655c3+'';}function V(_0x4fb0ff,_0x3fa3a0,_0x1b2f92){const _0x27f2da=_0x43a2;return(_0x3fa3a0=B(_0x3fa3a0))in _0x4fb0ff?Object[_0x27f2da(0x116)](_0x4fb0ff,_0x3fa3a0,{'value':_0x1b2f92,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4fb0ff[_0x3fa3a0]=_0x1b2f92,_0x4fb0ff;}var H=class extends _0x567f68{constructor(..._0x6242a1){const _0x122711=_0x43a2;super(..._0x6242a1),V(this,_0x122711(0x146),new Set()),V(this,'_reporters',new Set());}[_0x25a4d5(0x128)](_0x248af3){const _0xac24a7=_0x25a4d5;return this['_sharedOperations'][_0xac24a7(0x136)](_0x248af3),_0xeac609(()=>this[_0xac24a7(0x146)][_0xac24a7(0x101)](_0x248af3));}['registerInitialStateReporter'](_0x34e36d){const _0x49c8f4=_0x25a4d5;return this[_0x49c8f4(0x15c)][_0x49c8f4(0x136)](_0x34e36d),_0xeac609(()=>this[_0x49c8f4(0x15c)][_0x49c8f4(0x101)](_0x34e36d));}[_0x25a4d5(0x13d)](_0x17bc63){const _0x1d2d9a=_0x25a4d5;return this[_0x1d2d9a(0x146)][_0x1d2d9a(0xeb)](_0x17bc63);}[_0x25a4d5(0x171)](_0x1522cb){const _0x5bfaed=_0x25a4d5;return Array[_0x5bfaed(0x14d)](this[_0x5bfaed(0x15c)])[_0x5bfaed(0x142)](_0x7a72ce=>_0x7a72ce(_0x1522cb));}};function _0x43a2(_0x2336d1,_0x44387f){_0x2336d1=_0x2336d1-0xeb;const _0x45c0c3=_0x45c0();let _0x43a275=_0x45c0c3[_0x2336d1];return _0x43a275;}function U(_0x106acc,_0x39ad17){return function(_0xa101f,_0x2799e1){_0x39ad17(_0xa101f,_0x2799e1,_0x106acc);};}function W(_0x3e0e99,_0x51879e,_0x4d90ed,_0x19fc65){const _0x3bcb8a=_0x25a4d5;var _0x5469ad=arguments[_0x3bcb8a(0x10e)],_0x120eaa=_0x5469ad<0x3?_0x51879e:_0x19fc65===null?_0x19fc65=Object[_0x3bcb8a(0x106)](_0x51879e,_0x4d90ed):_0x19fc65,_0x12ee66;if(typeof Reflect==_0x3bcb8a(0x179)&&typeof Reflect[_0x3bcb8a(0xef)]==_0x3bcb8a(0x16a))_0x120eaa=Reflect[_0x3bcb8a(0xef)](_0x3e0e99,_0x51879e,_0x4d90ed,_0x19fc65);else{for(var _0x30e56d=_0x3e0e99[_0x3bcb8a(0x10e)]-0x1;_0x30e56d>=0x0;_0x30e56d--)(_0x12ee66=_0x3e0e99[_0x30e56d])&&(_0x120eaa=(_0x5469ad<0x3?_0x12ee66(_0x120eaa):_0x5469ad>0x3?_0x12ee66(_0x51879e,_0x4d90ed,_0x120eaa):_0x12ee66(_0x51879e,_0x4d90ed))||_0x120eaa);}return _0x5469ad>0x3&&_0x120eaa&&Object[_0x3bcb8a(0x116)](_0x51879e,_0x4d90ed,_0x120eaa),_0x120eaa;}let G=class extends _0x20c67f{constructor(_0x30b5cd,_0x1bfb63,_0x4891b2){super(),this['_univerInstanceService']=_0x30b5cd,this['_injector']=_0x1bfb63,this['_collabSessionService']=_0x4891b2,V(this,'_entities',new Map()),this['_init']();}async[_0x25a4d5(0x14f)](_0x39e2cc){const _0x5651c4=_0x25a4d5;return this[_0x5651c4(0x150)][_0x5651c4(0xeb)](_0x39e2cc)||await this['_startLiveShareCoordinator'](_0x39e2cc),this['_entities'][_0x5651c4(0x118)](_0x39e2cc);}[_0x25a4d5(0xff)](_0x2f0429){const _0x3bbff1=_0x25a4d5;var _0x6be64a;return(_0x6be64a=this['_entities'][_0x3bbff1(0x118)](_0x2f0429))==null?null:_0x6be64a;}[_0x25a4d5(0xf5)](){const _0x2349d7=_0x25a4d5;this['_univerInstanceService'][_0x2349d7(0xf1)](_0x20aee4[_0x2349d7(0x15d)])[_0x2349d7(0xec)](_0x3561eb(this['dispose$']))['subscribe'](async _0x567763=>{const _0x4e669d=_0x2349d7;let _0x114989=_0x567763[_0x4e669d(0x133)]['getUnitId']();this[_0x4e669d(0x150)][_0x4e669d(0xeb)](_0x114989)||this[_0x4e669d(0xee)](_0x114989);}),this[_0x2349d7(0x12f)]['getTypeOfUnitDisposed$'](_0x20aee4[_0x2349d7(0x15d)])[_0x2349d7(0xec)](_0x3561eb(this[_0x2349d7(0xf0)]))['subscribe'](_0x24410b=>{const _0x29ca24=_0x2349d7;let _0x412d61=_0x24410b['getUnitId'](),_0x48a2e2=this[_0x29ca24(0x150)][_0x29ca24(0x118)](_0x412d61);_0x48a2e2==null||_0x48a2e2[_0x29ca24(0x155)]();});}async[_0x25a4d5(0xee)](_0x22fe39){const _0x14fe4a=_0x25a4d5;let _0x3e76e6=await this[_0x14fe4a(0x113)][_0x14fe4a(0x102)](_0x22fe39),_0xcc8d40=this['_injector'][_0x14fe4a(0x100)](q,_0x22fe39,_0x3e76e6);return _0xcc8d40[_0x14fe4a(0x120)](),this[_0x14fe4a(0x150)]['set'](_0x22fe39,_0xcc8d40),_0xcc8d40;}};G=W([U(0x0,_0x280497),U(0x1,_0x246204(_0x1d5744)),U(0x2,_0x246204(_0x2435b7))],G);let K=function(_0x2d3951){const _0x5999ae=_0x25a4d5;return _0x2d3951[_0x5999ae(0x12c)]=_0x5999ae(0x16d),_0x2d3951[_0x5999ae(0x160)]=_0x5999ae(0x178),_0x2d3951[_0x5999ae(0x108)]=_0x5999ae(0x13a),_0x2d3951[_0x5999ae(0x180)]=_0x5999ae(0x163),_0x2d3951[_0x5999ae(0x107)]=_0x5999ae(0x11a),_0x2d3951;}({}),q=class extends _0x20c67f{get[_0x25a4d5(0x151)](){const _0x5b9265=_0x25a4d5;return this['_status$'][_0x5b9265(0x134)]();}constructor(_0x1240b7,_0x76faeb,_0x56dc7b,_0x26a74f,_0x589ac5){const _0x26d543=_0x25a4d5;super(),this['_unitID']=_0x1240b7,this['_collabSession']=_0x76faeb,this[_0x26d543(0x147)]=_0x56dc7b,this[_0x26d543(0x172)]=_0x26a74f,this[_0x26d543(0x10c)]=_0x589ac5,V(this,_0x26d543(0x10d),new _0x32dfc6(_0x26d543(0x178))),V(this,_0x26d543(0x176),this[_0x26d543(0x10d)][_0x26d543(0x17c)]()),V(this,_0x26d543(0xf5),!0x1),V(this,_0x26d543(0x164),null),V(this,_0x26d543(0x105),null);}[_0x25a4d5(0x155)](){const _0x51f811=_0x25a4d5;var _0x32639d;(_0x32639d=this['_commandDisposable'])==null||_0x32639d[_0x51f811(0x155)](),this['_status$'][_0x51f811(0xf4)](_0x51f811(0x178)),this[_0x51f811(0x10d)]['complete']();}[_0x25a4d5(0x16e)](){const _0x33f122=_0x25a4d5;return this[_0x33f122(0x151)];}[_0x25a4d5(0x120)](){const _0x3f30f6=_0x25a4d5;this[_0x3f30f6(0xf5)]||(this[_0x3f30f6(0xf5)]=!0x0,this[_0x3f30f6(0x174)][_0x3f30f6(0x14b)]['pipe'](_0x3561eb(this['dispose$']))['subscribe'](_0x5a81c4=>{const _0x831de5=_0x3f30f6;switch(_0x5a81c4){case _0x559959['OFFLINE']:this[_0x831de5(0x10a)]();break;case _0x559959[_0x831de5(0x168)]:this['_handleOnline']();break;default:}}),this['_collabSession']['event$'][_0x3f30f6(0xec)](_0x3561eb(this[_0x3f30f6(0xf0)]))[_0x3f30f6(0x157)](_0x17c00a=>{const _0x21bb5d=_0x3f30f6;let {eventID:_0x3ffe51}=_0x17c00a;switch(_0x3ffe51){case _0x4222bd[_0x21bb5d(0x15e)]:this['_handleNewHost'](_0x17c00a);break;case _0x4222bd[_0x21bb5d(0x158)]:this[_0x21bb5d(0x149)](_0x17c00a);break;case _0x4222bd['LIVESHARE_TERMINATE']:this[_0x21bb5d(0xed)]();break;case _0x4222bd[_0x21bb5d(0x169)]:this[_0x21bb5d(0x16f)](_0x17c00a);break;default:}}));}['tryStartPresenting'](){const _0x506cf6=_0x25a4d5;this[_0x506cf6(0x174)][_0x506cf6(0x17d)]({'eventID':_0x4222bd[_0x506cf6(0x170)],'data':{'unitID':this[_0x506cf6(0x17b)],'userID':this[_0x506cf6(0x174)][_0x506cf6(0x117)]()}},this[_0x506cf6(0x17b)]);}[_0x25a4d5(0x124)](){const _0x23bafe=_0x25a4d5;this[_0x23bafe(0x151)]===_0x23bafe(0x11a)&&(this[_0x23bafe(0x10d)][_0x23bafe(0xf4)]('idle'),this['_collabSession']['send']({'eventID':_0x4222bd[_0x23bafe(0x145)],'data':{'unitID':this['_unitID']}},this[_0x23bafe(0x17b)]));}[_0x25a4d5(0x16c)](){const _0x3df6e2=_0x25a4d5;this[_0x3df6e2(0x151)]===_0x3df6e2(0x163)&&(this[_0x3df6e2(0x10d)][_0x3df6e2(0xf4)](_0x3df6e2(0x13a)),this[_0x3df6e2(0x153)]());}[_0x25a4d5(0xfd)](){const _0x2b327c=_0x25a4d5;this[_0x2b327c(0x151)]==='following'&&this[_0x2b327c(0xfe)]();}[_0x25a4d5(0x137)](_0x4a9cfb){const _0x505994=_0x25a4d5;let {presenter:_0x33e63c}=_0x4a9cfb[_0x505994(0x165)],_0xc9abd2=this['_collabSession']['getMemberID']();this[_0x505994(0x105)]=_0x33e63c,_0x33e63c===_0xc9abd2?(this[_0x505994(0xfe)](),this[_0x505994(0x131)]()):this[_0x505994(0x151)]!==_0x505994(0x163)&&(this[_0x505994(0x11c)](),this['_startFollowing']());}[_0x25a4d5(0x126)](){const _0x189c8e=_0x25a4d5;let _0x3b3808={'eventID':_0x4222bd[_0x189c8e(0x135)]};this[_0x189c8e(0x174)][_0x189c8e(0x17d)](_0x3b3808,this[_0x189c8e(0x17b)]);}[_0x25a4d5(0xed)](){const _0x363898=_0x25a4d5;this[_0x363898(0x105)]=null,this[_0x363898(0x151)]!==_0x363898(0x11a)&&this['_beIdle']();}[_0x25a4d5(0x16f)](_0x20effa){const _0x2dd3a0=_0x25a4d5;if(this[_0x2dd3a0(0x151)]===_0x2dd3a0(0x13a)&&this[_0x2dd3a0(0x105)]===_0x20effa[_0x2dd3a0(0x165)]['memberID']){let _0x1b9ad9=_0x24459e(_0x20effa[_0x2dd3a0(0x165)])[_0x2dd3a0(0x125)]['reverse']()[_0x2dd3a0(0x154)](_0x4eedfc=>_0x4eedfc['id']===_0xde9d87['id']);if(_0x1b9ad9){let _0x3828dc=_0x1b9ad9['params'][_0x2dd3a0(0xf8)],_0x5c79eb=_0x1b9ad9[_0x2dd3a0(0x141)][_0x2dd3a0(0x119)]['id'];setTimeout(()=>{const _0x36936a=_0x2dd3a0;this['_commandService'][_0x36936a(0x112)](_0x24fc60['id'],{'unitId':_0x3828dc,'subUnitId':_0x5c79eb},{'fromCollab':!0x0});});}}}[_0x25a4d5(0x131)](){const _0x7ef01c=_0x25a4d5;var _0x3fb0e9;(_0x3fb0e9=this['_commandDisposable'])==null||_0x3fb0e9[_0x7ef01c(0x155)](),this[_0x7ef01c(0x10d)][_0x7ef01c(0xf4)](_0x7ef01c(0x11a));let _0x1e1657=new Map(),_0x20c3c9=this['_commandDisposable']=new _0x5c467b();_0x20c3c9[_0x7ef01c(0x136)](_0xeac609(()=>{_0x1e1657['forEach'](({subject:_0x90e4a0,subscription:_0x24a10f})=>{const _0x352be5=_0x43a2;_0x24a10f[_0x352be5(0xfc)](),_0x90e4a0[_0x352be5(0x11b)]();}),_0x1e1657['clear']();})),_0x20c3c9[_0x7ef01c(0x136)](this[_0x7ef01c(0x10c)][_0x7ef01c(0x123)](_0x2f4229=>{const _0x4bc40c=_0x7ef01c;if(_0x2f4229[_0x4bc40c(0x11d)]!==_0x51995d['OPERATION']||!this[_0x4bc40c(0x172)]['shouldShareOperation'](_0x2f4229['id']))return;let {id:_0x4a2db6}=_0x2f4229,_0x18d27e;if(_0x1e1657[_0x4bc40c(0xeb)](_0x4a2db6))_0x18d27e=_0x1e1657[_0x4bc40c(0x118)](_0x4a2db6)[_0x4bc40c(0x161)];else{var _0x239c0;_0x18d27e=new _0x2bb81e();let _0x2c84bf=_0x18d27e[_0x4bc40c(0xec)](_0x3f3658((_0x239c0=this['_configService'][_0x4bc40c(0x15b)](_0x4bc40c(0x17f)))==null?0xc8:_0x239c0,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa7d32e=>{const _0x343350=_0x4bc40c;this['_collabSession'][_0x343350(0x17d)]({'eventID':_0x4222bd['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xa7d32e['id']]:{'id':_0xa7d32e['id'],'params':JSON[_0x343350(0x13e)](_0xa7d32e[_0x343350(0x141)])}}}},this[_0x343350(0x17b)]);});_0x1e1657[_0x4bc40c(0x143)](_0x4a2db6,{'subject':_0x18d27e,'subscription':_0x2c84bf});}_0x18d27e[_0x4bc40c(0xf4)](_0x2f4229);})),this[_0x7ef01c(0x172)]['getInitialStates'](this[_0x7ef01c(0x17b)])[_0x7ef01c(0x167)](_0xbd011d=>this['_collabSession'][_0x7ef01c(0x17d)]({'eventID':_0x4222bd[_0x7ef01c(0x158)],'data':{'unitID':this[_0x7ef01c(0x17b)],'operations':{[_0xbd011d['id']]:{'id':_0xbd011d['id'],'params':JSON[_0x7ef01c(0x13e)](_0xbd011d[_0x7ef01c(0x141)])}}}},this[_0x7ef01c(0x17b)]));}[_0x25a4d5(0x11c)](){const _0x264644=_0x25a4d5;var _0x30e2e6;this[_0x264644(0x10d)]['next']('idle'),(_0x30e2e6=this['_commandDisposable'])==null||_0x30e2e6[_0x264644(0x155)](),this[_0x264644(0x164)]=null;}[_0x25a4d5(0x153)](){const _0x3f611e=_0x25a4d5;var _0x224c31;(_0x224c31=this[_0x3f611e(0x164)])==null||_0x224c31[_0x3f611e(0x155)](),this['_status$']['next'](_0x3f611e(0x13a));}[_0x25a4d5(0xf6)](){const _0x31f9c0=_0x25a4d5;var _0x1bd32a;this[_0x31f9c0(0x10d)][_0x31f9c0(0xf4)]('idle'),(_0x1bd32a=this[_0x31f9c0(0x164)])==null||_0x1bd32a[_0x31f9c0(0x155)](),this[_0x31f9c0(0x164)]=null;}[_0x25a4d5(0xfe)](){const _0x1e79ec=_0x25a4d5;var _0x550479;this[_0x1e79ec(0x10d)][_0x1e79ec(0xf4)](_0x1e79ec(0x163)),(_0x550479=this['_commandDisposable'])==null||_0x550479['dispose']();}[_0x25a4d5(0x149)](_0x343d90){const _0xa92bd=_0x25a4d5;if([_0xa92bd(0x11a),_0xa92bd(0x163),_0xa92bd(0x16d)]['includes'](this[_0xa92bd(0x151)])||!_0x343d90[_0xa92bd(0x165)]['presenter']||_0x343d90[_0xa92bd(0x165)]['presenter']===this[_0xa92bd(0x174)][_0xa92bd(0x117)]())return;this['_status']===_0xa92bd(0x178)&&this[_0xa92bd(0x153)]();let _0x352ec0=_0x343d90[_0xa92bd(0x165)][_0xa92bd(0xfa)];Object[_0xa92bd(0x111)](_0x352ec0)[_0xa92bd(0x167)](_0x18735f=>{const _0x222391=_0xa92bd;this['_commandService']['executeCommand'](_0x18735f['id'],_0x18735f['params']?JSON[_0x222391(0x110)](_0x18735f['params']):null,{'fromCollab':!0x0});});}[_0x25a4d5(0x10a)](){const _0x4d4c74=_0x25a4d5;var _0x10da78;this[_0x4d4c74(0x10d)][_0x4d4c74(0xf4)](_0x4d4c74(0x16d)),(_0x10da78=this[_0x4d4c74(0x164)])==null||_0x10da78[_0x4d4c74(0x155)]();}[_0x25a4d5(0x148)](){const _0x33dd3b=_0x25a4d5;this[_0x33dd3b(0x10d)]['next'](_0x33dd3b(0x178)),this[_0x33dd3b(0x126)]();}};q=W([U(0x2,_0x4098e7),U(0x3,_0x246204(H)),U(0x4,_0x2f5f0a)],q);function J(){const _0x44ef7a=_0x25a4d5;let _0x1f2e29=_0x32c6ef(G),_0x49ca06=_0x32c6ef(_0x280497),_0xc51557=_0x28ebf1(()=>_0x49ca06[_0x44ef7a(0x13b)](_0x20aee4[_0x44ef7a(0x15d)]),void 0x0,!0x1,[]),[_0x7aebd5,_0x2ce701]=_0x62adba(null),[_0x2a54c2,_0xf809a3]=_0x62adba('idle'),_0x4888c3=_0x4bc3f8(null);return _0x98e42e(()=>(_0xc51557&&_0x1f2e29['getLiveShareCoordinator'](_0xc51557[_0x44ef7a(0xf2)]())['then'](_0xcb7092=>{const _0x37f80e=_0x44ef7a;_0x2ce701(_0xcb7092),_0x4888c3[_0x37f80e(0x15a)]=_0xcb7092[_0x37f80e(0x176)]['subscribe'](_0x30fbe0=>{_0xf809a3(_0x30fbe0);});}),()=>{const _0x25a992=_0x44ef7a;var _0xd7213a;(_0xd7213a=_0x4888c3[_0x25a992(0x15a)])==null||_0xd7213a[_0x25a992(0xfc)](),_0x4888c3[_0x25a992(0x15a)]=null;}),[_0xc51557,_0x1f2e29]),_0x7aebd5?_0x22ef16(_0x90520d,{'align':_0x44ef7a(0x13c),'disabled':_0x2a54c2===_0x44ef7a(0x16d),'className':_0x44ef7a(0xfb),'overlay':_0x22ef16(se,{'status':_0x2a54c2,'coordinator':_0x7aebd5}),'children':_0x22ef16(_0x44ef7a(0x12a),{'className':_0x2dd8ba('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2a54c2===_0x44ef7a(0x16d),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2a54c2!=='offline'}),'type':_0x44ef7a(0x12a),'children':_0x22ef16(_0x113b09,{'className':_0x44ef7a(0x156)})})}):null;}function se(_0x2ab1bc){const _0x4ebad0=_0x25a4d5;let {status:_0x24e814,coordinator:_0x379b31}=_0x2ab1bc;switch(_0x24e814){case _0x4ebad0(0x178):return _0x22ef16(ce,{'coordinator':_0x379b31});case _0x4ebad0(0x13a):return _0x22ef16(le,{'coordinator':_0x379b31});case _0x4ebad0(0x163):return _0x22ef16(ue,{'coordinator':_0x379b31});case _0x4ebad0(0x16d):return _0x22ef16(de,{});case _0x4ebad0(0x11a):return _0x22ef16(Y,{'coordinator':_0x379b31});default:return null;}}function ce(_0xda5332){const _0x255576=_0x25a4d5;let {coordinator:_0x15d95c}=_0xda5332;return _0x242ea9(_0x473cb8,{'children':[_0x22ef16(_0x255576(0x152),{'className':_0x255576(0x159),'children':_0x255576(0x139)}),_0x22ef16(_0x267602,{'onClick':()=>_0x15d95c[_0x255576(0x177)](),'children':_0x255576(0x138)})]});}function le(_0x15e2a9){const _0x4670d4=_0x25a4d5;let {coordinator:_0x4290cb}=_0x15e2a9;return _0x242ea9(_0x473cb8,{'children':[_0x22ef16(_0x4670d4(0x152),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x22ef16(_0x267602,{'onClick':()=>_0x4290cb['stopFollowing'](),'children':_0x4670d4(0x15f)})]});}function ue(_0x2d1af7){const _0x31696c=_0x25a4d5;let {coordinator:_0x9c0f9c}=_0x2d1af7;return _0x242ea9(_0x473cb8,{'children':[_0x22ef16(_0x31696c(0x152),{'className':_0x31696c(0x159),'children':_0x31696c(0xf9)}),_0x22ef16(_0x267602,{'variant':_0x31696c(0x109),'onClick':()=>_0x9c0f9c[_0x31696c(0x16c)](),'children':_0x31696c(0x129)})]});}function Y(_0x1acb28){const _0x2b5320=_0x25a4d5;let {coordinator:_0x282dc4}=_0x1acb28;return _0x242ea9(_0x473cb8,{'children':[_0x22ef16(_0x2b5320(0x152),{'className':_0x2b5320(0x159),'children':_0x2b5320(0x181)}),_0x22ef16(_0x267602,{'variant':'default','onClick':()=>_0x282dc4[_0x2b5320(0x124)](),'children':'Stop\x20presenting'})]});}function de(){const _0xd13a70=_0x25a4d5;return _0x22ef16(_0x473cb8,{'children':_0xd13a70(0x114)});}let X=class extends _0x567f68{constructor(_0x2284b2,_0x25615b){const _0x466b77=_0x25a4d5;super(),this[_0x466b77(0x17a)]=_0x2284b2,this[_0x466b77(0x132)]=_0x25615b,this['_mountLiveShare']();}[_0x25a4d5(0x12b)](){const _0x562458=_0x25a4d5;this[_0x562458(0x13f)](this['_uiPartsService']['registerComponent'](_0x354b15[_0x562458(0x10f)],()=>_0x198c5f(J,this[_0x562458(0x17a)])));}};X=W([U(0x0,_0x246204(_0x1d5744)),U(0x1,_0x3e60ea)],X);function _0x45c0(){const _0x227500=['getInitialStates','_liveShareService','symbol','_collabSession','setConfig','status$','tryStartPresenting','idle','object','_injector','_unitID','asObservable','send','prototype','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','You\x27re\x20presenting\x20the\x20document','has','pipe','_handleTerminate','_startLiveShareCoordinator','decorate','dispose$','getTypeOfUnitAdded$','getUnitId','iterator','next','_init','_beIdle','constructor','unitId','You\x27re\x20not\x20following\x20the\x20presenter','operations','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','unsubscribe','stopFollowing','_stopFollowing','getLiveShareCoordinatorSync','createInstance','delete','requireSession','UNIVER_LIVE_SHARE_PLUGIN','3723ZPxNkV','_presenter','getOwnPropertyDescriptor','PRESENTING','FOLLOWING','text','_handleOffline','0.25.0-insiders.20260608-e4336f7','_commandService','_status$','length','HEADER_MENU','parse','values','executeCommand','_collabSessionService','You\x27are\x20offline.','5304312nEwuma','defineProperty','getMemberID','get','sheet','presenting','complete','_stopPresenting','type','2376VpxmQN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','init','toPrimitive','3547200ZIuSlE','onCommandExecuted','stopPresenting','mutations','_fetchOperations','string','registerSharedOperation','Start\x20following','button','_mountLiveShare','OFFLINE','1577180wjiCWd','default','_univerInstanceService','909112ZSFeXk','_startPresenting','_uiPartsService','unit','getValue','LIVESHARE_FETCH_OPERATIONS','add','_handleNewHost','Start','Present\x20this\x20document','following','getCurrentTypeOfUnit$','end','shouldShareOperation','stringify','disposeWithMe','7BYNByf','params','map','set','pluginName','LIVESHARE_TERMINATE','_sharedOperations','_configService','_handleOnline','_handleOperation','_config','sessionStatus$','UNIVER_UNKNOWN','from','@univerjs-pro/live-share','getLiveShareCoordinator','_entities','_status','div','_startFollowing','find','dispose','univer-size-4','subscribe','LIVESHARE_OPERATION','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','getConfig','_reporters','UNIVER_SHEET','LIVESHARE_NEW_HOST','Stop\x20following','IDLE','subject','654561hTpdTT','not-following','_commandDisposable','data','onRendered','forEach','ONLINE','NEW_CHANGESETS','function','24633360kveztg','startFollowing','offline','getStatus','_handleNewChangeSets','LIVESHARE_REQUEST_HOST'];_0x45c0=function(){return _0x227500;};return _0x45c0();}var fe=_0x25a4d5(0x14e),pe=_0x25a4d5(0x10b);const Z={};let Q=class extends _0x567f68{constructor(_0x16b102){const _0x15b599=_0x25a4d5;super(),this[_0x15b599(0x172)]=_0x16b102,this[_0x15b599(0xf5)]();}[_0x25a4d5(0xf5)](){const _0x9705d2=_0x25a4d5;[_0x54451a['id'],_0x4a4e17['id'],_0x24fc60['id']][_0x9705d2(0x167)](_0x4db844=>{const _0x338faf=_0x9705d2;this[_0x338faf(0x13f)](this[_0x338faf(0x172)][_0x338faf(0x128)](_0x4db844));});}};Q=W([U(0x0,_0x246204(H))],Q);let $=class extends _0x38898e{constructor(_0x3d46d1=Z,_0xc2921c,_0xcc428f){const _0x4491b4=_0x25a4d5;super(),this['_config']=_0x3d46d1,this['_injector']=_0xc2921c,this['_configService']=_0xcc428f;let {..._0x5ad5b2}=_0x46f91d({},Z,this[_0x4491b4(0x14a)]);this[_0x4491b4(0x147)][_0x4491b4(0x175)]('live-share.config',_0x5ad5b2);}['onStarting'](){const _0x2f2dab=_0x25a4d5;_0x198de0(this['_injector'],_0x1fd9b4([[H],[G],[Q],[X]],this[_0x2f2dab(0x14a)]['override'])),_0x2116c5(this[_0x2f2dab(0x17a)],[[Q]]);}[_0x25a4d5(0x166)](){_0x2116c5(this['_injector'],[[X]]);}};V($,'type',_0x20aee4[_0x25a4d5(0x14c)]),V($,_0x25a4d5(0x144),_0x25a4d5(0x103)),V($,'packageName',fe),V($,'version',pe),$=W([_0x3381d0(_0x58c306),U(0x1,_0x246204(_0x1d5744)),U(0x2,_0x4098e7)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2b99c4=_0x4127;(function(_0x2dfac7,_0x46956c){const _0x1a42af=_0x4127,_0x41c05f=_0x2dfac7();while(!![]){try{const _0x4ceb61=-parseInt(_0x1a42af(0x92))/0x1*(-parseInt(_0x1a42af(0x85))/0x2)+parseInt(_0x1a42af(0x8e))/0x3*(parseInt(_0x1a42af(0x7d))/0x4)+-parseInt(_0x1a42af(0x98))/0x5+-parseInt(_0x1a42af(0x81))/0x6+-parseInt(_0x1a42af(0x95))/0x7+parseInt(_0x1a42af(0x99))/0x8*(-parseInt(_0x1a42af(0x88))/0x9)+parseInt(_0x1a42af(0x96))/0xa*(parseInt(_0x1a42af(0x76))/0xb);if(_0x4ceb61===_0x46956c)break;else _0x41c05f['push'](_0x41c05f['shift']());}catch(_0x400780){_0x41c05f['push'](_0x41c05f['shift']());}}}(_0x375d,0xbe311));import{LiveShareController as _0x5c080e,LiveShareStatus as _0x393b86}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x466ade,UniverInstanceType as _0x43acff}from'@univerjs/core';import{FEnum as _0x454fcc,FUniver as _0x2bb1ef}from'@univerjs/core/facade';function o(_0x58a6c6){'@babel/helpers - typeof';const _0x26b32f=_0x4127;return o=typeof Symbol==_0x26b32f(0x7c)&&typeof Symbol['iterator']=='symbol'?function(_0x2e8053){return typeof _0x2e8053;}:function(_0x2d2e15){const _0x327a45=_0x26b32f;return _0x2d2e15&&typeof Symbol=='function'&&_0x2d2e15[_0x327a45(0x8a)]===Symbol&&_0x2d2e15!==Symbol['prototype']?_0x327a45(0x86):typeof _0x2d2e15;},o(_0x58a6c6);}function s(_0x3195ec,_0x443e48){const _0x55f6f6=_0x4127;if(o(_0x3195ec)!=_0x55f6f6(0x78)||!_0x3195ec)return _0x3195ec;var _0x454f8f=_0x3195ec[Symbol[_0x55f6f6(0x7f)]];if(_0x454f8f!==void 0x0){var _0x55cdfc=_0x454f8f[_0x55f6f6(0x90)](_0x3195ec,_0x443e48||_0x55f6f6(0x83));if(o(_0x55cdfc)!=_0x55f6f6(0x78))return _0x55cdfc;throw TypeError(_0x55f6f6(0x9b));}return(_0x443e48===_0x55f6f6(0x8c)?String:Number)(_0x3195ec);}function c(_0x454972){const _0xcabb6b=_0x4127;var _0x50cb51=s(_0x454972,_0xcabb6b(0x8c));return o(_0x50cb51)==_0xcabb6b(0x86)?_0x50cb51:_0x50cb51+'';}function _0x4127(_0x2f3811,_0x2300e9){_0x2f3811=_0x2f3811-0x74;const _0x375dc6=_0x375d();let _0x4127c5=_0x375dc6[_0x2f3811];return _0x4127c5;}function l(_0x3d215d,_0x170832,_0x411da9){const _0x4c8e2d=_0x4127;return(_0x170832=c(_0x170832))in _0x3d215d?Object[_0x4c8e2d(0x8d)](_0x3d215d,_0x170832,{'value':_0x411da9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d215d[_0x170832]=_0x411da9,_0x3d215d;}var u=class extends _0x2bb1ef{constructor(..._0x24f388){super(..._0x24f388),l(this,'_liveShareController',void 0x0);}['_initialize'](_0x516b54){const _0x3334c6=_0x4127;this[_0x3334c6(0x75)]=_0x516b54[_0x3334c6(0x79)](_0x5c080e);}[_0x2b99c4(0x7b)](){const _0x156764=_0x2b99c4;var _0x22b1d4;let _0x394362=this['_injector'][_0x156764(0x79)](_0x466ade)['getCurrentUnitOfType'](_0x43acff[_0x156764(0x84)]);if(!_0x394362)throw Error(_0x156764(0x87));let _0x18ee74=_0x394362[_0x156764(0x82)](),_0x24aa04=this[_0x156764(0x75)][_0x156764(0x7e)](_0x18ee74);return(_0x22b1d4=_0x24aa04==null?void 0x0:_0x24aa04[_0x156764(0x80)]())==null?_0x393b86[_0x156764(0x9a)]:_0x22b1d4;}[_0x2b99c4(0x89)](){const _0x382580=_0x2b99c4;let _0x3a4637=this['_injector']['get'](_0x466ade)[_0x382580(0x77)](_0x43acff[_0x382580(0x84)]);if(!_0x3a4637)throw Error(_0x382580(0x87));let _0x5a63c3=_0x3a4637[_0x382580(0x82)](),_0x544cdf=this[_0x382580(0x75)][_0x382580(0x7e)](_0x5a63c3);if(!_0x544cdf)throw Error(_0x382580(0x8b));_0x544cdf[_0x382580(0x89)]();}[_0x2b99c4(0x7a)](){const _0x10e062=_0x2b99c4;let _0x2bb08d=this[_0x10e062(0x8f)][_0x10e062(0x79)](_0x466ade)[_0x10e062(0x77)](_0x43acff['UNIVER_SHEET']);if(!_0x2bb08d)throw Error(_0x10e062(0x87));let _0xaf535=_0x2bb08d[_0x10e062(0x82)](),_0x313a6b=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xaf535);if(!_0x313a6b)throw Error(_0x10e062(0x8b));_0x313a6b[_0x10e062(0x7a)]();}[_0x2b99c4(0x94)](){const _0x1063f5=_0x2b99c4;let _0x9ccbb8=this[_0x1063f5(0x8f)][_0x1063f5(0x79)](_0x466ade)[_0x1063f5(0x77)](_0x43acff[_0x1063f5(0x84)]);if(!_0x9ccbb8)throw Error('No\x20active\x20workbook\x20found.');let _0x8cb53=_0x9ccbb8[_0x1063f5(0x82)](),_0xd37551=this['_liveShareController'][_0x1063f5(0x7e)](_0x8cb53);if(!_0xd37551)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd37551[_0x1063f5(0x97)]();}[_0x2b99c4(0x93)](){const _0x1aa385=_0x2b99c4;let _0x17f76c=this[_0x1aa385(0x8f)][_0x1aa385(0x79)](_0x466ade)[_0x1aa385(0x77)](_0x43acff[_0x1aa385(0x84)]);if(!_0x17f76c)throw Error('No\x20active\x20workbook\x20found.');let _0x1f4350=_0x17f76c[_0x1aa385(0x82)](),_0x18a7ee=this[_0x1aa385(0x75)][_0x1aa385(0x7e)](_0x1f4350);if(!_0x18a7ee)throw Error(_0x1aa385(0x8b));_0x18a7ee['stopPresenting']();}};function _0x375d(){const _0x57ef33=['7015505MxDMzB','440088rxADDv','IDLE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatusEnum','_liveShareController','121VKiDZH','getCurrentUnitOfType','object','get','stopFollowing','getLiveShareStatus','function','192IIMkuk','getLiveShareCoordinatorSync','toPrimitive','getStatus','2151228BBzvqQ','getUnitId','default','UNIVER_SHEET','401818ykiyVb','symbol','No\x20active\x20workbook\x20found.','54fPVGWF','startFollowing','constructor','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','string','defineProperty','78753FJEMfP','_injector','call','extend','3kCEKYF','stopPresenting','startPresenting','4151203XPisOI','1455440IjoCew','tryStartPresenting'];_0x375d=function(){return _0x57ef33;};return _0x375d();}_0x2bb1ef[_0x2b99c4(0x91)](u);var d=class extends _0x454fcc{get[_0x2b99c4(0x74)](){return _0x393b86;}};_0x454fcc[_0x2b99c4(0x91)](d);export{};
1
+ const _0x1b4d1d=_0x1a28;(function(_0x39c7cf,_0x19a6de){const _0x5565d0=_0x1a28,_0x384596=_0x39c7cf();while(!![]){try{const _0x5cf116=-parseInt(_0x5565d0(0x126))/0x1*(parseInt(_0x5565d0(0x13d))/0x2)+-parseInt(_0x5565d0(0x12e))/0x3+-parseInt(_0x5565d0(0x140))/0x4+-parseInt(_0x5565d0(0x138))/0x5*(parseInt(_0x5565d0(0x132))/0x6)+parseInt(_0x5565d0(0x13e))/0x7*(parseInt(_0x5565d0(0x13a))/0x8)+parseInt(_0x5565d0(0x146))/0x9+parseInt(_0x5565d0(0x13f))/0xa;if(_0x5cf116===_0x19a6de)break;else _0x384596['push'](_0x384596['shift']());}catch(_0x407399){_0x384596['push'](_0x384596['shift']());}}}(_0x1737,0x70c1a));import{LiveShareController as _0x5b179c,LiveShareStatus as _0x2599d9}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x46da9d,UniverInstanceType as _0x275a6a}from'@univerjs/core';import{FEnum as _0x42d39f,FUniver as _0x25fd38}from'@univerjs/core/facade';function o(_0xcfab51){'@babel/helpers - typeof';const _0x2f41ee=_0x1a28;return o=typeof Symbol==_0x2f41ee(0x123)&&typeof Symbol['iterator']==_0x2f41ee(0x125)?function(_0x4eab81){return typeof _0x4eab81;}:function(_0x5c831c){const _0xb99719=_0x2f41ee;return _0x5c831c&&typeof Symbol==_0xb99719(0x123)&&_0x5c831c[_0xb99719(0x142)]===Symbol&&_0x5c831c!==Symbol[_0xb99719(0x124)]?_0xb99719(0x125):typeof _0x5c831c;},o(_0xcfab51);}function s(_0x15160b,_0x2e4977){const _0x5ed7fc=_0x1a28;if(o(_0x15160b)!=_0x5ed7fc(0x121)||!_0x15160b)return _0x15160b;var _0x1dcea7=_0x15160b[Symbol[_0x5ed7fc(0x12a)]];if(_0x1dcea7!==void 0x0){var _0x5273ac=_0x1dcea7[_0x5ed7fc(0x130)](_0x15160b,_0x2e4977||_0x5ed7fc(0x143));if(o(_0x5273ac)!='object')return _0x5273ac;throw TypeError(_0x5ed7fc(0x147));}return(_0x2e4977===_0x5ed7fc(0x144)?String:Number)(_0x15160b);}function c(_0x28f78b){const _0x92b275=_0x1a28;var _0x306893=s(_0x28f78b,_0x92b275(0x144));return o(_0x306893)==_0x92b275(0x125)?_0x306893:_0x306893+'';}function l(_0x3bebcf,_0x3a2632,_0x50f527){return(_0x3a2632=c(_0x3a2632))in _0x3bebcf?Object['defineProperty'](_0x3bebcf,_0x3a2632,{'value':_0x50f527,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3bebcf[_0x3a2632]=_0x50f527,_0x3bebcf;}var u=class extends _0x25fd38{constructor(..._0x4ea75d){super(..._0x4ea75d),l(this,'_liveShareController',void 0x0);}[_0x1b4d1d(0x12c)](_0x2be183){const _0x4cc9c2=_0x1b4d1d;this[_0x4cc9c2(0x135)]=_0x2be183[_0x4cc9c2(0x134)](_0x5b179c);}[_0x1b4d1d(0x137)](){const _0x59a795=_0x1b4d1d;var _0x5b41ce;let _0x246682=this[_0x59a795(0x139)][_0x59a795(0x134)](_0x46da9d)[_0x59a795(0x131)](_0x275a6a[_0x59a795(0x136)]);if(!_0x246682)throw Error(_0x59a795(0x13c));let _0x517cd6=_0x246682['getUnitId'](),_0x426524=this[_0x59a795(0x135)][_0x59a795(0x127)](_0x517cd6);return(_0x5b41ce=_0x426524==null?void 0x0:_0x426524[_0x59a795(0x13b)]())==null?_0x2599d9[_0x59a795(0x122)]:_0x5b41ce;}[_0x1b4d1d(0x12b)](){const _0x3924c8=_0x1b4d1d;let _0x3c4283=this[_0x3924c8(0x139)]['get'](_0x46da9d)['getCurrentUnitOfType'](_0x275a6a[_0x3924c8(0x136)]);if(!_0x3c4283)throw Error('No\x20active\x20workbook\x20found.');let _0x1635ee=_0x3c4283[_0x3924c8(0x128)](),_0x2e1843=this['_liveShareController'][_0x3924c8(0x127)](_0x1635ee);if(!_0x2e1843)throw Error(_0x3924c8(0x141));_0x2e1843[_0x3924c8(0x12b)]();}[_0x1b4d1d(0x12f)](){const _0x8fb4d9=_0x1b4d1d;let _0x37bb0e=this['_injector'][_0x8fb4d9(0x134)](_0x46da9d)[_0x8fb4d9(0x131)](_0x275a6a[_0x8fb4d9(0x136)]);if(!_0x37bb0e)throw Error(_0x8fb4d9(0x13c));let _0x4814b2=_0x37bb0e[_0x8fb4d9(0x128)](),_0x368c92=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x4814b2);if(!_0x368c92)throw Error(_0x8fb4d9(0x141));_0x368c92['stopFollowing']();}[_0x1b4d1d(0x12d)](){const _0x1c8f5a=_0x1b4d1d;let _0x2ada99=this[_0x1c8f5a(0x139)]['get'](_0x46da9d)[_0x1c8f5a(0x131)](_0x275a6a[_0x1c8f5a(0x136)]);if(!_0x2ada99)throw Error(_0x1c8f5a(0x13c));let _0x6091ab=_0x2ada99['getUnitId'](),_0x367ff2=this['_liveShareController'][_0x1c8f5a(0x127)](_0x6091ab);if(!_0x367ff2)throw Error(_0x1c8f5a(0x141));_0x367ff2['tryStartPresenting']();}[_0x1b4d1d(0x129)](){const _0x2eedaf=_0x1b4d1d;let _0x3214f1=this[_0x2eedaf(0x139)][_0x2eedaf(0x134)](_0x46da9d)['getCurrentUnitOfType'](_0x275a6a[_0x2eedaf(0x136)]);if(!_0x3214f1)throw Error(_0x2eedaf(0x13c));let _0x99f709=_0x3214f1[_0x2eedaf(0x128)](),_0x1d3d31=this[_0x2eedaf(0x135)][_0x2eedaf(0x127)](_0x99f709);if(!_0x1d3d31)throw Error(_0x2eedaf(0x141));_0x1d3d31['stopPresenting']();}};_0x25fd38[_0x1b4d1d(0x133)](u);var d=class extends _0x42d39f{get[_0x1b4d1d(0x145)](){return _0x2599d9;}};function _0x1737(){const _0x4afc26=['getStatus','No\x20active\x20workbook\x20found.','426500xcqvET','63XGqmlY','10563610YtJBXy','1153260HCRMVP','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','constructor','default','string','LiveShareStatusEnum','994851UxXBXp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','IDLE','function','prototype','symbol','2ExKPdQ','getLiveShareCoordinatorSync','getUnitId','stopPresenting','toPrimitive','startFollowing','_initialize','startPresenting','764139LjhqJD','stopFollowing','call','getCurrentUnitOfType','4404FQFtdN','extend','get','_liveShareController','UNIVER_SHEET','getLiveShareStatus','140oawYCH','_injector','253360ntreJw'];_0x1737=function(){return _0x4afc26;};return _0x1737();}_0x42d39f[_0x1b4d1d(0x133)](d);function _0x1a28(_0x4f6e1c,_0x325b5c){_0x4f6e1c=_0x4f6e1c-0x121;const _0x173754=_0x1737();let _0x1a2868=_0x173754[_0x4f6e1c];return _0x1a2868;}export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x483488=_0x45b7;(function(_0x481774,_0x480832){const _0x4f141c=_0x45b7,_0xffc8be=_0x481774();while(!![]){try{const _0x464732=parseInt(_0x4f141c(0xef))/0x1+-parseInt(_0x4f141c(0x124))/0x2+parseInt(_0x4f141c(0x139))/0x3*(parseInt(_0x4f141c(0x123))/0x4)+parseInt(_0x4f141c(0x14f))/0x5*(-parseInt(_0x4f141c(0x119))/0x6)+parseInt(_0x4f141c(0x13b))/0x7+-parseInt(_0x4f141c(0x154))/0x8*(parseInt(_0x4f141c(0xf3))/0x9)+-parseInt(_0x4f141c(0x137))/0xa*(-parseInt(_0x4f141c(0x159))/0xb);if(_0x464732===_0x480832)break;else _0xffc8be['push'](_0xffc8be['shift']());}catch(_0x5a7e78){_0xffc8be['push'](_0xffc8be['shift']());}}}(_0x2fbf,0x8a5d2));import{CommandType as _0x458c45,DependentOn as _0x1240ac,Disposable as _0x25821d,DisposableCollection as _0x11b478,ICommandService as _0x24a679,IConfigService as _0x5bd473,IUniverInstanceService as _0x463264,Inject as _0x519b70,Injector as _0x1f8563,Plugin as _0x2e5f28,RxDisposable as _0x1dffe0,UniverInstanceType as _0x443dc4,merge as _0x2e9292,mergeOverrideWithDependencies as _0x13dc50,registerDependencies as _0x1030c8,toDisposable as _0xaaab04,touchDependencies as _0x56c0e1}from'@univerjs/core';import{BuiltInUIPart as _0x4a5288,IUIPartsService as _0xc74574,connectInjector as _0x39d05e,useDependency as _0x128025,useObservable as _0x407d3e}from'@univerjs/ui';import{Button as _0x21c6a6,Dropdown as _0x451c05,clsx as _0x3a2015}from'@univerjs/design';function _0x45b7(_0x312e5c,_0x320410){_0x312e5c=_0x312e5c-0xdb;const _0x2fbfc8=_0x2fbf();let _0x45b719=_0x2fbfc8[_0x312e5c];return _0x45b719;}import{LiveShareIcon as _0x1525d7}from'@univerjs/icons';import{useEffect as _0x34b418,useRef as _0x523753,useState as _0x2329c2}from'react';import{CollaborationEvent as _0x275d1f,parseProtocolChangeset as _0xaf2f9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59fd96,SessionStatus as _0xa36ca2,UniverCollaborationClientPlugin as _0x422184}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x594abb,SetWorksheetActiveOperation as _0x3e5ed1}from'@univerjs/sheets';import{BehaviorSubject as _0x4db554,Subject as _0x3e2cca}from'rxjs';import{takeUntil as _0xa626ba,throttleTime as _0x255e38}from'rxjs/operators';import{Fragment as _0x508d28,jsx as _0x2658fa,jsxs as _0x30d109}from'react/jsx-runtime';import{SetScrollOperation as _0x354a42,SetZoomRatioOperation as _0x33a400}from'@univerjs/sheets-ui';function L(_0x3f3d6e){'@babel/helpers - typeof';const _0x4e6e03=_0x45b7;return L=typeof Symbol==_0x4e6e03(0x10e)&&typeof Symbol[_0x4e6e03(0x12a)]==_0x4e6e03(0x109)?function(_0x32bbb2){return typeof _0x32bbb2;}:function(_0x189f7d){const _0x30815f=_0x4e6e03;return _0x189f7d&&typeof Symbol==_0x30815f(0x10e)&&_0x189f7d['constructor']===Symbol&&_0x189f7d!==Symbol[_0x30815f(0x107)]?_0x30815f(0x109):typeof _0x189f7d;},L(_0x3f3d6e);}function R(_0x3b740f,_0x3edc40){const _0x3ce480=_0x45b7;if(L(_0x3b740f)!=_0x3ce480(0x14c)||!_0x3b740f)return _0x3b740f;var _0x3bf1a4=_0x3b740f[Symbol[_0x3ce480(0xe7)]];if(_0x3bf1a4!==void 0x0){var _0x134a5f=_0x3bf1a4[_0x3ce480(0x143)](_0x3b740f,_0x3edc40||_0x3ce480(0xeb));if(L(_0x134a5f)!=_0x3ce480(0x14c))return _0x134a5f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3edc40===_0x3ce480(0x162)?String:Number)(_0x3b740f);}function z(_0x412bea){const _0x12b1b8=_0x45b7;var _0x17cfec=R(_0x412bea,_0x12b1b8(0x162));return L(_0x17cfec)=='symbol'?_0x17cfec:_0x17cfec+'';}function B(_0x20a5f2,_0x2c7e78,_0x3b0dc5){const _0x42ca67=_0x45b7;return(_0x2c7e78=z(_0x2c7e78))in _0x20a5f2?Object[_0x42ca67(0x140)](_0x20a5f2,_0x2c7e78,{'value':_0x3b0dc5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20a5f2[_0x2c7e78]=_0x3b0dc5,_0x20a5f2;}var V=class extends _0x25821d{constructor(..._0x1cf08b){const _0x167e1c=_0x45b7;super(..._0x1cf08b),B(this,_0x167e1c(0x105),new Set()),B(this,_0x167e1c(0x11e),new Set());}[_0x483488(0xe5)](_0x214e18){const _0x50e9f8=_0x483488;return this[_0x50e9f8(0x105)][_0x50e9f8(0x163)](_0x214e18),_0xaaab04(()=>this[_0x50e9f8(0x105)][_0x50e9f8(0x164)](_0x214e18));}[_0x483488(0xf8)](_0x3fe0dc){const _0x457405=_0x483488;return this['_reporters'][_0x457405(0x163)](_0x3fe0dc),_0xaaab04(()=>this[_0x457405(0x11e)][_0x457405(0x164)](_0x3fe0dc));}[_0x483488(0x160)](_0x4bf672){const _0x3a52de=_0x483488;return this[_0x3a52de(0x105)]['has'](_0x4bf672);}['getInitialStates'](_0x1e90c1){const _0x36408f=_0x483488;return Array['from'](this['_reporters'])[_0x36408f(0x135)](_0x20a44e=>_0x20a44e(_0x1e90c1));}};function H(_0x2f9d8e,_0x5d4695){return function(_0x881661,_0x5cd344){_0x5d4695(_0x881661,_0x5cd344,_0x2f9d8e);};}function U(_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1){const _0x562a82=_0x483488;var _0x495527=arguments[_0x562a82(0x152)],_0x4410d1=_0x495527<0x3?_0x1af699:_0x1ec3e1===null?_0x1ec3e1=Object['getOwnPropertyDescriptor'](_0x1af699,_0x2e9d79):_0x1ec3e1,_0x2803a5;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x562a82(0x10e))_0x4410d1=Reflect['decorate'](_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1);else{for(var _0xe3b8d=_0x247ab9[_0x562a82(0x152)]-0x1;_0xe3b8d>=0x0;_0xe3b8d--)(_0x2803a5=_0x247ab9[_0xe3b8d])&&(_0x4410d1=(_0x495527<0x3?_0x2803a5(_0x4410d1):_0x495527>0x3?_0x2803a5(_0x1af699,_0x2e9d79,_0x4410d1):_0x2803a5(_0x1af699,_0x2e9d79))||_0x4410d1);}return _0x495527>0x3&&_0x4410d1&&Object[_0x562a82(0x140)](_0x1af699,_0x2e9d79,_0x4410d1),_0x4410d1;}let W=class extends _0x1dffe0{constructor(_0x3cbb6b,_0x2853c9,_0x476c88){const _0x22e720=_0x483488;super(),this[_0x22e720(0x10d)]=_0x3cbb6b,this[_0x22e720(0x12e)]=_0x2853c9,this['_collabSessionService']=_0x476c88,B(this,_0x22e720(0x11d),new Map()),this[_0x22e720(0x15a)]();}async[_0x483488(0x117)](_0xba2a9){const _0x305924=_0x483488;return this[_0x305924(0x11d)][_0x305924(0x13c)](_0xba2a9)||await this['_startLiveShareCoordinator'](_0xba2a9),this['_entities']['get'](_0xba2a9);}[_0x483488(0xfd)](_0x471bca){const _0x1b40ee=_0x483488;var _0x4cf63b;return(_0x4cf63b=this[_0x1b40ee(0x11d)][_0x1b40ee(0x10a)](_0x471bca))==null?null:_0x4cf63b;}[_0x483488(0x15a)](){const _0x5bec5e=_0x483488;this['_univerInstanceService'][_0x5bec5e(0x165)](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))['subscribe'](async _0x315cf7=>{const _0x1c642f=_0x5bec5e;let _0x2a2abc=_0x315cf7['unit'][_0x1c642f(0xf7)]();this[_0x1c642f(0x11d)][_0x1c642f(0x13c)](_0x2a2abc)||this[_0x1c642f(0x12d)](_0x2a2abc);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))[_0x5bec5e(0x11f)](_0x418e3d=>{const _0x3df8c6=_0x5bec5e;let _0x5c9eda=_0x418e3d['getUnitId'](),_0x1dec7a=this[_0x3df8c6(0x11d)][_0x3df8c6(0x10a)](_0x5c9eda);_0x1dec7a==null||_0x1dec7a[_0x3df8c6(0x113)]();});}async[_0x483488(0x12d)](_0x518bed){const _0x3bc783=_0x483488;let _0x4be529=await this[_0x3bc783(0x112)]['requireSession'](_0x518bed),_0x5e329d=this['_injector']['createInstance'](K,_0x518bed,_0x4be529);return _0x5e329d[_0x3bc783(0x120)](),this[_0x3bc783(0x11d)][_0x3bc783(0xdf)](_0x518bed,_0x5e329d),_0x5e329d;}};W=U([H(0x0,_0x463264),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x519b70(_0x59fd96))],W);let G=function(_0x3cece8){const _0x316e52=_0x483488;return _0x3cece8[_0x316e52(0x14d)]=_0x316e52(0x115),_0x3cece8[_0x316e52(0xf1)]=_0x316e52(0xdd),_0x3cece8[_0x316e52(0xdb)]='following',_0x3cece8['NOT_FOLLOWING']=_0x316e52(0x11a),_0x3cece8[_0x316e52(0x108)]=_0x316e52(0xe6),_0x3cece8;}({}),K=class extends _0x1dffe0{get['_status'](){const _0x44f4c2=_0x483488;return this[_0x44f4c2(0x134)]['getValue']();}constructor(_0x42e687,_0x1f02ea,_0x4a0697,_0x2e5516,_0x328a2a){const _0x3ade14=_0x483488;super(),this['_unitID']=_0x42e687,this[_0x3ade14(0x104)]=_0x1f02ea,this['_configService']=_0x4a0697,this[_0x3ade14(0xfb)]=_0x2e5516,this[_0x3ade14(0x130)]=_0x328a2a,B(this,_0x3ade14(0x134),new _0x4db554(_0x3ade14(0xdd))),B(this,'status$',this[_0x3ade14(0x134)][_0x3ade14(0x129)]()),B(this,_0x3ade14(0x15a),!0x1),B(this,'_commandDisposable',null),B(this,'_presenter',null);}['dispose'](){const _0x731e6a=_0x483488;var _0x3d4fd0;(_0x3d4fd0=this[_0x731e6a(0x12b)])==null||_0x3d4fd0[_0x731e6a(0x113)](),this[_0x731e6a(0x134)][_0x731e6a(0x15b)](_0x731e6a(0xdd)),this[_0x731e6a(0x134)][_0x731e6a(0x14e)]();}[_0x483488(0x13a)](){return this['_status'];}[_0x483488(0x120)](){const _0x486997=_0x483488;this['_init']||(this[_0x486997(0x15a)]=!0x0,this[_0x486997(0x104)]['sessionStatus$'][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x5abeab=>{const _0x5860ad=_0x486997;switch(_0x5abeab){case _0xa36ca2[_0x5860ad(0x14d)]:this[_0x5860ad(0x151)]();break;case _0xa36ca2[_0x5860ad(0x11b)]:this[_0x5860ad(0x11c)]();break;default:}}),this[_0x486997(0x104)][_0x486997(0x142)][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x3e8753=>{const _0x2726e0=_0x486997;let {eventID:_0x15297d}=_0x3e8753;switch(_0x15297d){case _0x275d1f[_0x2726e0(0x126)]:this[_0x2726e0(0x16e)](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x148)]:this['_handleOperation'](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x12c)]:this['_handleTerminate']();break;case _0x275d1f[_0x2726e0(0x14a)]:this[_0x2726e0(0x16c)](_0x3e8753);break;default:}}));}[_0x483488(0xff)](){const _0x6e80e2=_0x483488;this[_0x6e80e2(0x104)][_0x6e80e2(0xf5)]({'eventID':_0x275d1f[_0x6e80e2(0x133)],'data':{'unitID':this['_unitID'],'userID':this[_0x6e80e2(0x104)][_0x6e80e2(0x121)]()}},this[_0x6e80e2(0xed)]);}[_0x483488(0x136)](){const _0x51a89a=_0x483488;this['_status']===_0x51a89a(0xe6)&&(this['_status$'][_0x51a89a(0x15b)](_0x51a89a(0xdd)),this['_collabSession'][_0x51a89a(0xf5)]({'eventID':_0x275d1f[_0x51a89a(0x12c)],'data':{'unitID':this[_0x51a89a(0xed)]}},this[_0x51a89a(0xed)]));}[_0x483488(0x155)](){const _0x1cd148=_0x483488;this[_0x1cd148(0x150)]===_0x1cd148(0x11a)&&(this['_status$'][_0x1cd148(0x15b)](_0x1cd148(0x167)),this[_0x1cd148(0x153)]());}['stopFollowing'](){const _0x267338=_0x483488;this[_0x267338(0x150)]===_0x267338(0x167)&&this['_stopFollowing']();}[_0x483488(0x16e)](_0x29354a){const _0x5a8e73=_0x483488;let {presenter:_0x31d773}=_0x29354a[_0x5a8e73(0x15e)],_0x1f914f=this['_collabSession']['getMemberID']();this[_0x5a8e73(0x138)]=_0x31d773,_0x31d773===_0x1f914f?(this[_0x5a8e73(0x10c)](),this['_startPresenting']()):this[_0x5a8e73(0x150)]!=='not-following'&&(this[_0x5a8e73(0x13e)](),this[_0x5a8e73(0x153)]());}['_fetchOperations'](){const _0x18e6a8=_0x483488;let _0x1647ab={'eventID':_0x275d1f[_0x18e6a8(0xee)]};this[_0x18e6a8(0x104)][_0x18e6a8(0xf5)](_0x1647ab,this[_0x18e6a8(0xed)]);}[_0x483488(0x16d)](){const _0x4546c6=_0x483488;this[_0x4546c6(0x138)]=null,this[_0x4546c6(0x150)]!=='presenting'&&this[_0x4546c6(0x169)]();}[_0x483488(0x16c)](_0x33cf5b){const _0x42f3f9=_0x483488;if(this['_status']===_0x42f3f9(0x167)&&this[_0x42f3f9(0x138)]===_0x33cf5b[_0x42f3f9(0x15e)][_0x42f3f9(0x125)]){let _0x335687=_0xaf2f9c(_0x33cf5b[_0x42f3f9(0x15e)])[_0x42f3f9(0xf6)][_0x42f3f9(0x116)]()[_0x42f3f9(0x15f)](_0x230023=>_0x230023['id']===_0x594abb['id']);if(_0x335687){let _0xb62741=_0x335687[_0x42f3f9(0x10b)][_0x42f3f9(0x13d)],_0x3122d2=_0x335687['params'][_0x42f3f9(0x168)]['id'];setTimeout(()=>{const _0x584661=_0x42f3f9;this['_commandService'][_0x584661(0x15d)](_0x3e5ed1['id'],{'unitId':_0xb62741,'subUnitId':_0x3122d2},{'fromCollab':!0x0});});}}}[_0x483488(0x103)](){const _0x5d974b=_0x483488;var _0x411ec8;(_0x411ec8=this[_0x5d974b(0x12b)])==null||_0x411ec8['dispose'](),this[_0x5d974b(0x134)][_0x5d974b(0x15b)](_0x5d974b(0xe6));let _0x5616b2=new Map(),_0x1bda74=this[_0x5d974b(0x12b)]=new _0x11b478();_0x1bda74['add'](_0xaaab04(()=>{const _0x5070a4=_0x5d974b;_0x5616b2[_0x5070a4(0xfa)](({subject:_0x5024d8,subscription:_0x11f265})=>{const _0x2be60c=_0x5070a4;_0x11f265[_0x2be60c(0x102)](),_0x5024d8[_0x2be60c(0x14e)]();}),_0x5616b2[_0x5070a4(0x149)]();})),_0x1bda74[_0x5d974b(0x163)](this[_0x5d974b(0x130)][_0x5d974b(0x101)](_0x19c86c=>{const _0x37efbf=_0x5d974b;if(_0x19c86c[_0x37efbf(0x118)]!==_0x458c45[_0x37efbf(0x156)]||!this[_0x37efbf(0xfb)][_0x37efbf(0x160)](_0x19c86c['id']))return;let {id:_0x3bc3e4}=_0x19c86c,_0x1536eb;if(_0x5616b2[_0x37efbf(0x13c)](_0x3bc3e4))_0x1536eb=_0x5616b2[_0x37efbf(0x10a)](_0x3bc3e4)[_0x37efbf(0x15c)];else{var _0x1ed284;_0x1536eb=new _0x3e2cca();let _0x59c8e4=_0x1536eb[_0x37efbf(0xfc)](_0x255e38((_0x1ed284=this[_0x37efbf(0x122)][_0x37efbf(0xe2)](_0x37efbf(0xe4)))==null?0xc8:_0x1ed284,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37efbf(0x11f)](_0x4deaca=>{const _0xd4647e=_0x37efbf;this[_0xd4647e(0x104)][_0xd4647e(0xf5)]({'eventID':_0x275d1f[_0xd4647e(0x148)],'data':{'unitID':this[_0xd4647e(0xed)],'operations':{[_0x4deaca['id']]:{'id':_0x4deaca['id'],'params':JSON[_0xd4647e(0x158)](_0x4deaca[_0xd4647e(0x10b)])}}}},this['_unitID']);});_0x5616b2['set'](_0x3bc3e4,{'subject':_0x1536eb,'subscription':_0x59c8e4});}_0x1536eb[_0x37efbf(0x15b)](_0x19c86c);})),this['_liveShareService'][_0x5d974b(0x170)](this[_0x5d974b(0xed)])[_0x5d974b(0xfa)](_0x54979c=>this[_0x5d974b(0x104)]['send']({'eventID':_0x275d1f[_0x5d974b(0x148)],'data':{'unitID':this['_unitID'],'operations':{[_0x54979c['id']]:{'id':_0x54979c['id'],'params':JSON[_0x5d974b(0x158)](_0x54979c['params'])}}}},this[_0x5d974b(0xed)]));}[_0x483488(0x13e)](){const _0x2525ec=_0x483488;var _0x4117b0;this[_0x2525ec(0x134)][_0x2525ec(0x15b)]('idle'),(_0x4117b0=this[_0x2525ec(0x12b)])==null||_0x4117b0[_0x2525ec(0x113)](),this['_commandDisposable']=null;}[_0x483488(0x153)](){const _0x56837e=_0x483488;var _0x1e68b0;(_0x1e68b0=this[_0x56837e(0x12b)])==null||_0x1e68b0[_0x56837e(0x113)](),this[_0x56837e(0x134)]['next'](_0x56837e(0x167));}[_0x483488(0x169)](){const _0x51a6df=_0x483488;var _0x2ec300;this[_0x51a6df(0x134)][_0x51a6df(0x15b)](_0x51a6df(0xdd)),(_0x2ec300=this['_commandDisposable'])==null||_0x2ec300[_0x51a6df(0x113)](),this[_0x51a6df(0x12b)]=null;}['_stopFollowing'](){const _0x126668=_0x483488;var _0x5bc21a;this[_0x126668(0x134)]['next'](_0x126668(0x11a)),(_0x5bc21a=this[_0x126668(0x12b)])==null||_0x5bc21a[_0x126668(0x113)]();}['_handleOperation'](_0x1fb62c){const _0x14d5a8=_0x483488;if([_0x14d5a8(0xe6),_0x14d5a8(0x11a),'offline'][_0x14d5a8(0xe0)](this[_0x14d5a8(0x150)])||!_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0xf4)]||_0x1fb62c['data'][_0x14d5a8(0xf4)]===this[_0x14d5a8(0x104)][_0x14d5a8(0x121)]())return;this['_status']===_0x14d5a8(0xdd)&&this[_0x14d5a8(0x153)]();let _0x4ca9de=_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0x157)];Object[_0x14d5a8(0x146)](_0x4ca9de)[_0x14d5a8(0xfa)](_0x45965c=>{const _0x13ff50=_0x14d5a8;this[_0x13ff50(0x130)][_0x13ff50(0x15d)](_0x45965c['id'],_0x45965c['params']?JSON[_0x13ff50(0x13f)](_0x45965c[_0x13ff50(0x10b)]):null,{'fromCollab':!0x0});});}[_0x483488(0x151)](){const _0x23845e=_0x483488;var _0x3aaad9;this[_0x23845e(0x134)][_0x23845e(0x15b)](_0x23845e(0x115)),(_0x3aaad9=this['_commandDisposable'])==null||_0x3aaad9[_0x23845e(0x113)]();}[_0x483488(0x11c)](){const _0x59d97b=_0x483488;this[_0x59d97b(0x134)]['next'](_0x59d97b(0xdd)),this[_0x59d97b(0x10f)]();}};K=U([H(0x2,_0x5bd473),H(0x3,_0x519b70(V)),H(0x4,_0x24a679)],K);function q(){const _0x45a13d=_0x483488;let _0x2df76a=_0x128025(W),_0x1baac4=_0x128025(_0x463264),_0xf2afa0=_0x407d3e(()=>_0x1baac4[_0x45a13d(0xde)](_0x443dc4[_0x45a13d(0x145)]),void 0x0,!0x1,[]),[_0x14f53a,_0x3595ab]=_0x2329c2(null),[_0x111ced,_0x19a5ad]=_0x2329c2(_0x45a13d(0xdd)),_0x59c95f=_0x523753(null);return _0x34b418(()=>(_0xf2afa0&&_0x2df76a['getLiveShareCoordinator'](_0xf2afa0[_0x45a13d(0xf7)]())[_0x45a13d(0x114)](_0x33b041=>{const _0x93cd89=_0x45a13d;_0x3595ab(_0x33b041),_0x59c95f[_0x93cd89(0x14b)]=_0x33b041['status$'][_0x93cd89(0x11f)](_0x11dc9f=>{_0x19a5ad(_0x11dc9f);});}),()=>{const _0x4c84f4=_0x45a13d;var _0x596fb7;(_0x596fb7=_0x59c95f[_0x4c84f4(0x14b)])==null||_0x596fb7[_0x4c84f4(0x102)](),_0x59c95f['current']=null;}),[_0xf2afa0,_0x2df76a]),_0x14f53a?_0x2658fa(_0x451c05,{'align':'end','disabled':_0x111ced===_0x45a13d(0x115),'className':_0x45a13d(0xe1),'overlay':_0x2658fa(ce,{'status':_0x111ced,'coordinator':_0x14f53a}),'children':_0x2658fa('button',{'className':_0x3a2015(_0x45a13d(0xf0),{'univer-cursor-not-allowed':_0x111ced===_0x45a13d(0x115),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x111ced!==_0x45a13d(0x115)}),'type':_0x45a13d(0xdc),'children':_0x2658fa(_0x1525d7,{'className':_0x45a13d(0x110)})})}):null;}function ce(_0x28c8f9){const _0x4e566d=_0x483488;let {status:_0x16a352,coordinator:_0xf0b1bb}=_0x28c8f9;switch(_0x16a352){case _0x4e566d(0xdd):return _0x2658fa(le,{'coordinator':_0xf0b1bb});case'following':return _0x2658fa(ue,{'coordinator':_0xf0b1bb});case _0x4e566d(0x11a):return _0x2658fa(de,{'coordinator':_0xf0b1bb});case'offline':return _0x2658fa(fe,{});case _0x4e566d(0xe6):return _0x2658fa(J,{'coordinator':_0xf0b1bb});default:return null;}}function le(_0x80a58a){const _0x5c7c45=_0x483488;let {coordinator:_0x2b3845}=_0x80a58a;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0x5c7c45(0x132),{'className':_0x5c7c45(0x161),'children':'Present\x20this\x20document'}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x2b3845[_0x5c7c45(0xff)](),'children':_0x5c7c45(0x147)})]});}function ue(_0x564e8f){const _0x35a5b8=_0x483488;let {coordinator:_0x827031}=_0x564e8f;return _0x30d109(_0x508d28,{'children':[_0x2658fa('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x35a5b8(0xfe)}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x827031['stopFollowing'](),'children':_0x35a5b8(0x16b)})]});}function de(_0x170b55){const _0xe1606c=_0x483488;let {coordinator:_0x5d22ad}=_0x170b55;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xe1606c(0x132),{'className':_0xe1606c(0x161),'children':_0xe1606c(0xe8)}),_0x2658fa(_0x21c6a6,{'variant':'text','onClick':()=>_0x5d22ad[_0xe1606c(0x155)](),'children':_0xe1606c(0x128)})]});}function J(_0x41b798){const _0xf5eb1c=_0x483488;let {coordinator:_0x4b5f83}=_0x41b798;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xf5eb1c(0x132),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2658fa(_0x21c6a6,{'variant':_0xf5eb1c(0xeb),'onClick':()=>_0x4b5f83[_0xf5eb1c(0x136)](),'children':'Stop\x20presenting'})]});}function fe(){const _0x205204=_0x483488;return _0x2658fa(_0x508d28,{'children':_0x205204(0x100)});}let Y=class extends _0x25821d{constructor(_0x3dd031,_0x5530ac){const _0x2ecf5b=_0x483488;super(),this['_injector']=_0x3dd031,this[_0x2ecf5b(0xf2)]=_0x5530ac,this[_0x2ecf5b(0x141)]();}[_0x483488(0x141)](){const _0x55b9ce=_0x483488;this[_0x55b9ce(0x111)](this[_0x55b9ce(0xf2)][_0x55b9ce(0x12f)](_0x4a5288['HEADER_MENU'],()=>_0x39d05e(q,this['_injector'])));}};Y=U([H(0x0,_0x519b70(_0x1f8563)),H(0x1,_0xc74574)],Y);function _0x2fbf(){const _0x2ba42e=['getLiveShareCoordinatorSync','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','You\x27are\x20offline.','onCommandExecuted','unsubscribe','_startPresenting','_collabSession','_sharedOperations','live-share.config','prototype','PRESENTING','symbol','get','params','_stopFollowing','_univerInstanceService','function','_fetchOperations','univer-size-4','disposeWithMe','_collabSessionService','dispose','then','offline','reverse','getLiveShareCoordinator','type','241356LZzSiW','not-following','ONLINE','_handleOnline','_entities','_reporters','subscribe','init','getMemberID','_configService','8FUhaIk','1259034iWvHjx','memberID','LIVESHARE_NEW_HOST','@univerjs-pro/live-share','Start\x20following','asObservable','iterator','_commandDisposable','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_injector','registerComponent','_commandService','override','div','LIVESHARE_REQUEST_HOST','_status$','map','stopPresenting','10TGKNyK','_presenter','710367ZMnfss','getStatus','2394672ADlDof','has','unitId','_stopPresenting','parse','defineProperty','_mountLiveShare','event$','call','0.24.0','UNIVER_SHEET','values','Start','LIVESHARE_OPERATION','clear','NEW_CHANGESETS','current','object','OFFLINE','complete','100FeflZT','_status','_handleOffline','length','_startFollowing','5891592nXfPay','startFollowing','OPERATION','operations','stringify','10360471ofBdeE','_init','next','subject','executeCommand','data','find','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','add','delete','getTypeOfUnitAdded$','pluginName','following','sheet','_beIdle','packageName','Stop\x20following','_handleNewChangeSets','_handleTerminate','_handleNewHost','version','getInitialStates','FOLLOWING','button','idle','getCurrentTypeOfUnit$','set','includes','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getConfig','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','presenting','toPrimitive','You\x27re\x20not\x20following\x20the\x20presenter','_config','setConfig','default','onRendered','_unitID','LIVESHARE_FETCH_OPERATIONS','979689diOGji','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','_uiPartsService','9lyjQpA','presenter','send','mutations','getUnitId','registerInitialStateReporter','dispose$','forEach','_liveShareService','pipe'];_0x2fbf=function(){return _0x2ba42e;};return _0x2fbf();}var pe=_0x483488(0x127),me=_0x483488(0x144);const X=_0x483488(0x106);Symbol(X);const Z={};let Q=class extends _0x25821d{constructor(_0x3f2a6e){const _0x452524=_0x483488;super(),this['_liveShareService']=_0x3f2a6e,this[_0x452524(0x15a)]();}[_0x483488(0x15a)](){[_0x33a400['id'],_0x354a42['id'],_0x3e5ed1['id']]['forEach'](_0x3ba871=>{const _0x198c4e=_0x45b7;this[_0x198c4e(0x111)](this['_liveShareService'][_0x198c4e(0xe5)](_0x3ba871));});}};Q=U([H(0x0,_0x519b70(V))],Q);let $=class extends _0x2e5f28{constructor(_0x5747a0=Z,_0x50d166,_0x268d60){const _0x16de18=_0x483488;super(),this['_config']=_0x5747a0,this[_0x16de18(0x12e)]=_0x50d166,this['_configService']=_0x268d60;let {..._0x1b2174}=_0x2e9292({},Z,this[_0x16de18(0xe9)]);this[_0x16de18(0x122)][_0x16de18(0xea)](X,_0x1b2174);}['onStarting'](){const _0x5d4903=_0x483488;_0x1030c8(this[_0x5d4903(0x12e)],_0x13dc50([[V],[W],[Q],[Y]],this[_0x5d4903(0xe9)][_0x5d4903(0x131)])),_0x56c0e1(this[_0x5d4903(0x12e)],[[Q]]);}[_0x483488(0xec)](){const _0x8b73ab=_0x483488;_0x56c0e1(this[_0x8b73ab(0x12e)],[[Y]]);}};B($,_0x483488(0x118),_0x443dc4[_0x483488(0xe3)]),B($,_0x483488(0x166),'UNIVER_LIVE_SHARE_PLUGIN'),B($,_0x483488(0x16a),pe),B($,_0x483488(0x16f),me),$=U([_0x1240ac(_0x422184),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x5bd473)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x25a4d5=_0x43a2;(function(_0x5568f4,_0xebf517){const _0x41bf6e=_0x43a2,_0x16d485=_0x5568f4();while(!![]){try{const _0x4b3d7f=-parseInt(_0x41bf6e(0x162))/0x1+-parseInt(_0x41bf6e(0x12d))/0x2+parseInt(_0x41bf6e(0x104))/0x3*(parseInt(_0x41bf6e(0x11e))/0x4)+-parseInt(_0x41bf6e(0x122))/0x5+-parseInt(_0x41bf6e(0x115))/0x6+-parseInt(_0x41bf6e(0x140))/0x7*(-parseInt(_0x41bf6e(0x130))/0x8)+parseInt(_0x41bf6e(0x16b))/0x9;if(_0x4b3d7f===_0xebf517)break;else _0x16d485['push'](_0x16d485['shift']());}catch(_0x56c4b2){_0x16d485['push'](_0x16d485['shift']());}}}(_0x45c0,0x86916));import{CommandType as _0x51995d,DependentOn as _0x3381d0,Disposable as _0x567f68,DisposableCollection as _0x5c467b,ICommandService as _0x2f5f0a,IConfigService as _0x4098e7,IUniverInstanceService as _0x280497,Inject as _0x246204,Injector as _0x1d5744,Plugin as _0x38898e,RxDisposable as _0x20c67f,UniverInstanceType as _0x20aee4,merge as _0x46f91d,mergeOverrideWithDependencies as _0x1fd9b4,registerDependencies as _0x198de0,toDisposable as _0xeac609,touchDependencies as _0x2116c5}from'@univerjs/core';import{BuiltInUIPart as _0x354b15,IUIPartsService as _0x3e60ea,connectInjector as _0x198c5f,useDependency as _0x32c6ef,useObservable as _0x28ebf1}from'@univerjs/ui';import{Button as _0x267602,Dropdown as _0x90520d,clsx as _0x2dd8ba}from'@univerjs/design';import{LiveShareIcon as _0x113b09}from'@univerjs/icons';import{useEffect as _0x98e42e,useRef as _0x4bc3f8,useState as _0x62adba}from'react';import{CollaborationEvent as _0x4222bd,parseProtocolChangeset as _0x24459e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2435b7,SessionStatus as _0x559959,UniverCollaborationClientPlugin as _0x58c306}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xde9d87,SetWorksheetActiveOperation as _0x24fc60}from'@univerjs/sheets';import{BehaviorSubject as _0x32dfc6,Subject as _0x2bb81e}from'rxjs';import{takeUntil as _0x3561eb,throttleTime as _0x3f3658}from'rxjs/operators';import{Fragment as _0x473cb8,jsx as _0x22ef16,jsxs as _0x242ea9}from'react/jsx-runtime';import{SetScrollOperation as _0x4a4e17,SetZoomRatioOperation as _0x54451a}from'@univerjs/sheets-ui';function R(_0x35a630){'@babel/helpers - typeof';const _0x55d7e8=_0x43a2;return R=typeof Symbol==_0x55d7e8(0x16a)&&typeof Symbol[_0x55d7e8(0xf3)]==_0x55d7e8(0x173)?function(_0x2fa4f2){return typeof _0x2fa4f2;}:function(_0x4e4bab){const _0x3da035=_0x55d7e8;return _0x4e4bab&&typeof Symbol==_0x3da035(0x16a)&&_0x4e4bab[_0x3da035(0xf7)]===Symbol&&_0x4e4bab!==Symbol[_0x3da035(0x17e)]?_0x3da035(0x173):typeof _0x4e4bab;},R(_0x35a630);}function z(_0x3a3294,_0x5010bc){const _0x5cd61f=_0x43a2;if(R(_0x3a3294)!=_0x5cd61f(0x179)||!_0x3a3294)return _0x3a3294;var _0x172c5=_0x3a3294[Symbol[_0x5cd61f(0x121)]];if(_0x172c5!==void 0x0){var _0x32de5c=_0x172c5['call'](_0x3a3294,_0x5010bc||_0x5cd61f(0x12e));if(R(_0x32de5c)!=_0x5cd61f(0x179))return _0x32de5c;throw TypeError(_0x5cd61f(0x11f));}return(_0x5010bc==='string'?String:Number)(_0x3a3294);}function B(_0x476af6){const _0xf047bd=_0x43a2;var _0x2655c3=z(_0x476af6,_0xf047bd(0x127));return R(_0x2655c3)=='symbol'?_0x2655c3:_0x2655c3+'';}function V(_0x4fb0ff,_0x3fa3a0,_0x1b2f92){const _0x27f2da=_0x43a2;return(_0x3fa3a0=B(_0x3fa3a0))in _0x4fb0ff?Object[_0x27f2da(0x116)](_0x4fb0ff,_0x3fa3a0,{'value':_0x1b2f92,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4fb0ff[_0x3fa3a0]=_0x1b2f92,_0x4fb0ff;}var H=class extends _0x567f68{constructor(..._0x6242a1){const _0x122711=_0x43a2;super(..._0x6242a1),V(this,_0x122711(0x146),new Set()),V(this,'_reporters',new Set());}[_0x25a4d5(0x128)](_0x248af3){const _0xac24a7=_0x25a4d5;return this['_sharedOperations'][_0xac24a7(0x136)](_0x248af3),_0xeac609(()=>this[_0xac24a7(0x146)][_0xac24a7(0x101)](_0x248af3));}['registerInitialStateReporter'](_0x34e36d){const _0x49c8f4=_0x25a4d5;return this[_0x49c8f4(0x15c)][_0x49c8f4(0x136)](_0x34e36d),_0xeac609(()=>this[_0x49c8f4(0x15c)][_0x49c8f4(0x101)](_0x34e36d));}[_0x25a4d5(0x13d)](_0x17bc63){const _0x1d2d9a=_0x25a4d5;return this[_0x1d2d9a(0x146)][_0x1d2d9a(0xeb)](_0x17bc63);}[_0x25a4d5(0x171)](_0x1522cb){const _0x5bfaed=_0x25a4d5;return Array[_0x5bfaed(0x14d)](this[_0x5bfaed(0x15c)])[_0x5bfaed(0x142)](_0x7a72ce=>_0x7a72ce(_0x1522cb));}};function _0x43a2(_0x2336d1,_0x44387f){_0x2336d1=_0x2336d1-0xeb;const _0x45c0c3=_0x45c0();let _0x43a275=_0x45c0c3[_0x2336d1];return _0x43a275;}function U(_0x106acc,_0x39ad17){return function(_0xa101f,_0x2799e1){_0x39ad17(_0xa101f,_0x2799e1,_0x106acc);};}function W(_0x3e0e99,_0x51879e,_0x4d90ed,_0x19fc65){const _0x3bcb8a=_0x25a4d5;var _0x5469ad=arguments[_0x3bcb8a(0x10e)],_0x120eaa=_0x5469ad<0x3?_0x51879e:_0x19fc65===null?_0x19fc65=Object[_0x3bcb8a(0x106)](_0x51879e,_0x4d90ed):_0x19fc65,_0x12ee66;if(typeof Reflect==_0x3bcb8a(0x179)&&typeof Reflect[_0x3bcb8a(0xef)]==_0x3bcb8a(0x16a))_0x120eaa=Reflect[_0x3bcb8a(0xef)](_0x3e0e99,_0x51879e,_0x4d90ed,_0x19fc65);else{for(var _0x30e56d=_0x3e0e99[_0x3bcb8a(0x10e)]-0x1;_0x30e56d>=0x0;_0x30e56d--)(_0x12ee66=_0x3e0e99[_0x30e56d])&&(_0x120eaa=(_0x5469ad<0x3?_0x12ee66(_0x120eaa):_0x5469ad>0x3?_0x12ee66(_0x51879e,_0x4d90ed,_0x120eaa):_0x12ee66(_0x51879e,_0x4d90ed))||_0x120eaa);}return _0x5469ad>0x3&&_0x120eaa&&Object[_0x3bcb8a(0x116)](_0x51879e,_0x4d90ed,_0x120eaa),_0x120eaa;}let G=class extends _0x20c67f{constructor(_0x30b5cd,_0x1bfb63,_0x4891b2){super(),this['_univerInstanceService']=_0x30b5cd,this['_injector']=_0x1bfb63,this['_collabSessionService']=_0x4891b2,V(this,'_entities',new Map()),this['_init']();}async[_0x25a4d5(0x14f)](_0x39e2cc){const _0x5651c4=_0x25a4d5;return this[_0x5651c4(0x150)][_0x5651c4(0xeb)](_0x39e2cc)||await this['_startLiveShareCoordinator'](_0x39e2cc),this['_entities'][_0x5651c4(0x118)](_0x39e2cc);}[_0x25a4d5(0xff)](_0x2f0429){const _0x3bbff1=_0x25a4d5;var _0x6be64a;return(_0x6be64a=this['_entities'][_0x3bbff1(0x118)](_0x2f0429))==null?null:_0x6be64a;}[_0x25a4d5(0xf5)](){const _0x2349d7=_0x25a4d5;this['_univerInstanceService'][_0x2349d7(0xf1)](_0x20aee4[_0x2349d7(0x15d)])[_0x2349d7(0xec)](_0x3561eb(this['dispose$']))['subscribe'](async _0x567763=>{const _0x4e669d=_0x2349d7;let _0x114989=_0x567763[_0x4e669d(0x133)]['getUnitId']();this[_0x4e669d(0x150)][_0x4e669d(0xeb)](_0x114989)||this[_0x4e669d(0xee)](_0x114989);}),this[_0x2349d7(0x12f)]['getTypeOfUnitDisposed$'](_0x20aee4[_0x2349d7(0x15d)])[_0x2349d7(0xec)](_0x3561eb(this[_0x2349d7(0xf0)]))['subscribe'](_0x24410b=>{const _0x29ca24=_0x2349d7;let _0x412d61=_0x24410b['getUnitId'](),_0x48a2e2=this[_0x29ca24(0x150)][_0x29ca24(0x118)](_0x412d61);_0x48a2e2==null||_0x48a2e2[_0x29ca24(0x155)]();});}async[_0x25a4d5(0xee)](_0x22fe39){const _0x14fe4a=_0x25a4d5;let _0x3e76e6=await this[_0x14fe4a(0x113)][_0x14fe4a(0x102)](_0x22fe39),_0xcc8d40=this['_injector'][_0x14fe4a(0x100)](q,_0x22fe39,_0x3e76e6);return _0xcc8d40[_0x14fe4a(0x120)](),this[_0x14fe4a(0x150)]['set'](_0x22fe39,_0xcc8d40),_0xcc8d40;}};G=W([U(0x0,_0x280497),U(0x1,_0x246204(_0x1d5744)),U(0x2,_0x246204(_0x2435b7))],G);let K=function(_0x2d3951){const _0x5999ae=_0x25a4d5;return _0x2d3951[_0x5999ae(0x12c)]=_0x5999ae(0x16d),_0x2d3951[_0x5999ae(0x160)]=_0x5999ae(0x178),_0x2d3951[_0x5999ae(0x108)]=_0x5999ae(0x13a),_0x2d3951[_0x5999ae(0x180)]=_0x5999ae(0x163),_0x2d3951[_0x5999ae(0x107)]=_0x5999ae(0x11a),_0x2d3951;}({}),q=class extends _0x20c67f{get[_0x25a4d5(0x151)](){const _0x5b9265=_0x25a4d5;return this['_status$'][_0x5b9265(0x134)]();}constructor(_0x1240b7,_0x76faeb,_0x56dc7b,_0x26a74f,_0x589ac5){const _0x26d543=_0x25a4d5;super(),this['_unitID']=_0x1240b7,this['_collabSession']=_0x76faeb,this[_0x26d543(0x147)]=_0x56dc7b,this[_0x26d543(0x172)]=_0x26a74f,this[_0x26d543(0x10c)]=_0x589ac5,V(this,_0x26d543(0x10d),new _0x32dfc6(_0x26d543(0x178))),V(this,_0x26d543(0x176),this[_0x26d543(0x10d)][_0x26d543(0x17c)]()),V(this,_0x26d543(0xf5),!0x1),V(this,_0x26d543(0x164),null),V(this,_0x26d543(0x105),null);}[_0x25a4d5(0x155)](){const _0x51f811=_0x25a4d5;var _0x32639d;(_0x32639d=this['_commandDisposable'])==null||_0x32639d[_0x51f811(0x155)](),this['_status$'][_0x51f811(0xf4)](_0x51f811(0x178)),this[_0x51f811(0x10d)]['complete']();}[_0x25a4d5(0x16e)](){const _0x33f122=_0x25a4d5;return this[_0x33f122(0x151)];}[_0x25a4d5(0x120)](){const _0x3f30f6=_0x25a4d5;this[_0x3f30f6(0xf5)]||(this[_0x3f30f6(0xf5)]=!0x0,this[_0x3f30f6(0x174)][_0x3f30f6(0x14b)]['pipe'](_0x3561eb(this['dispose$']))['subscribe'](_0x5a81c4=>{const _0x831de5=_0x3f30f6;switch(_0x5a81c4){case _0x559959['OFFLINE']:this[_0x831de5(0x10a)]();break;case _0x559959[_0x831de5(0x168)]:this['_handleOnline']();break;default:}}),this['_collabSession']['event$'][_0x3f30f6(0xec)](_0x3561eb(this[_0x3f30f6(0xf0)]))[_0x3f30f6(0x157)](_0x17c00a=>{const _0x21bb5d=_0x3f30f6;let {eventID:_0x3ffe51}=_0x17c00a;switch(_0x3ffe51){case _0x4222bd[_0x21bb5d(0x15e)]:this['_handleNewHost'](_0x17c00a);break;case _0x4222bd[_0x21bb5d(0x158)]:this[_0x21bb5d(0x149)](_0x17c00a);break;case _0x4222bd['LIVESHARE_TERMINATE']:this[_0x21bb5d(0xed)]();break;case _0x4222bd[_0x21bb5d(0x169)]:this[_0x21bb5d(0x16f)](_0x17c00a);break;default:}}));}['tryStartPresenting'](){const _0x506cf6=_0x25a4d5;this[_0x506cf6(0x174)][_0x506cf6(0x17d)]({'eventID':_0x4222bd[_0x506cf6(0x170)],'data':{'unitID':this[_0x506cf6(0x17b)],'userID':this[_0x506cf6(0x174)][_0x506cf6(0x117)]()}},this[_0x506cf6(0x17b)]);}[_0x25a4d5(0x124)](){const _0x23bafe=_0x25a4d5;this[_0x23bafe(0x151)]===_0x23bafe(0x11a)&&(this[_0x23bafe(0x10d)][_0x23bafe(0xf4)]('idle'),this['_collabSession']['send']({'eventID':_0x4222bd[_0x23bafe(0x145)],'data':{'unitID':this['_unitID']}},this[_0x23bafe(0x17b)]));}[_0x25a4d5(0x16c)](){const _0x3df6e2=_0x25a4d5;this[_0x3df6e2(0x151)]===_0x3df6e2(0x163)&&(this[_0x3df6e2(0x10d)][_0x3df6e2(0xf4)](_0x3df6e2(0x13a)),this[_0x3df6e2(0x153)]());}[_0x25a4d5(0xfd)](){const _0x2b327c=_0x25a4d5;this[_0x2b327c(0x151)]==='following'&&this[_0x2b327c(0xfe)]();}[_0x25a4d5(0x137)](_0x4a9cfb){const _0x505994=_0x25a4d5;let {presenter:_0x33e63c}=_0x4a9cfb[_0x505994(0x165)],_0xc9abd2=this['_collabSession']['getMemberID']();this[_0x505994(0x105)]=_0x33e63c,_0x33e63c===_0xc9abd2?(this[_0x505994(0xfe)](),this[_0x505994(0x131)]()):this[_0x505994(0x151)]!==_0x505994(0x163)&&(this[_0x505994(0x11c)](),this['_startFollowing']());}[_0x25a4d5(0x126)](){const _0x189c8e=_0x25a4d5;let _0x3b3808={'eventID':_0x4222bd[_0x189c8e(0x135)]};this[_0x189c8e(0x174)][_0x189c8e(0x17d)](_0x3b3808,this[_0x189c8e(0x17b)]);}[_0x25a4d5(0xed)](){const _0x363898=_0x25a4d5;this[_0x363898(0x105)]=null,this[_0x363898(0x151)]!==_0x363898(0x11a)&&this['_beIdle']();}[_0x25a4d5(0x16f)](_0x20effa){const _0x2dd3a0=_0x25a4d5;if(this[_0x2dd3a0(0x151)]===_0x2dd3a0(0x13a)&&this[_0x2dd3a0(0x105)]===_0x20effa[_0x2dd3a0(0x165)]['memberID']){let _0x1b9ad9=_0x24459e(_0x20effa[_0x2dd3a0(0x165)])[_0x2dd3a0(0x125)]['reverse']()[_0x2dd3a0(0x154)](_0x4eedfc=>_0x4eedfc['id']===_0xde9d87['id']);if(_0x1b9ad9){let _0x3828dc=_0x1b9ad9['params'][_0x2dd3a0(0xf8)],_0x5c79eb=_0x1b9ad9[_0x2dd3a0(0x141)][_0x2dd3a0(0x119)]['id'];setTimeout(()=>{const _0x36936a=_0x2dd3a0;this['_commandService'][_0x36936a(0x112)](_0x24fc60['id'],{'unitId':_0x3828dc,'subUnitId':_0x5c79eb},{'fromCollab':!0x0});});}}}[_0x25a4d5(0x131)](){const _0x7ef01c=_0x25a4d5;var _0x3fb0e9;(_0x3fb0e9=this['_commandDisposable'])==null||_0x3fb0e9[_0x7ef01c(0x155)](),this[_0x7ef01c(0x10d)][_0x7ef01c(0xf4)](_0x7ef01c(0x11a));let _0x1e1657=new Map(),_0x20c3c9=this['_commandDisposable']=new _0x5c467b();_0x20c3c9[_0x7ef01c(0x136)](_0xeac609(()=>{_0x1e1657['forEach'](({subject:_0x90e4a0,subscription:_0x24a10f})=>{const _0x352be5=_0x43a2;_0x24a10f[_0x352be5(0xfc)](),_0x90e4a0[_0x352be5(0x11b)]();}),_0x1e1657['clear']();})),_0x20c3c9[_0x7ef01c(0x136)](this[_0x7ef01c(0x10c)][_0x7ef01c(0x123)](_0x2f4229=>{const _0x4bc40c=_0x7ef01c;if(_0x2f4229[_0x4bc40c(0x11d)]!==_0x51995d['OPERATION']||!this[_0x4bc40c(0x172)]['shouldShareOperation'](_0x2f4229['id']))return;let {id:_0x4a2db6}=_0x2f4229,_0x18d27e;if(_0x1e1657[_0x4bc40c(0xeb)](_0x4a2db6))_0x18d27e=_0x1e1657[_0x4bc40c(0x118)](_0x4a2db6)[_0x4bc40c(0x161)];else{var _0x239c0;_0x18d27e=new _0x2bb81e();let _0x2c84bf=_0x18d27e[_0x4bc40c(0xec)](_0x3f3658((_0x239c0=this['_configService'][_0x4bc40c(0x15b)](_0x4bc40c(0x17f)))==null?0xc8:_0x239c0,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa7d32e=>{const _0x343350=_0x4bc40c;this['_collabSession'][_0x343350(0x17d)]({'eventID':_0x4222bd['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xa7d32e['id']]:{'id':_0xa7d32e['id'],'params':JSON[_0x343350(0x13e)](_0xa7d32e[_0x343350(0x141)])}}}},this[_0x343350(0x17b)]);});_0x1e1657[_0x4bc40c(0x143)](_0x4a2db6,{'subject':_0x18d27e,'subscription':_0x2c84bf});}_0x18d27e[_0x4bc40c(0xf4)](_0x2f4229);})),this[_0x7ef01c(0x172)]['getInitialStates'](this[_0x7ef01c(0x17b)])[_0x7ef01c(0x167)](_0xbd011d=>this['_collabSession'][_0x7ef01c(0x17d)]({'eventID':_0x4222bd[_0x7ef01c(0x158)],'data':{'unitID':this[_0x7ef01c(0x17b)],'operations':{[_0xbd011d['id']]:{'id':_0xbd011d['id'],'params':JSON[_0x7ef01c(0x13e)](_0xbd011d[_0x7ef01c(0x141)])}}}},this[_0x7ef01c(0x17b)]));}[_0x25a4d5(0x11c)](){const _0x264644=_0x25a4d5;var _0x30e2e6;this[_0x264644(0x10d)]['next']('idle'),(_0x30e2e6=this['_commandDisposable'])==null||_0x30e2e6[_0x264644(0x155)](),this[_0x264644(0x164)]=null;}[_0x25a4d5(0x153)](){const _0x3f611e=_0x25a4d5;var _0x224c31;(_0x224c31=this[_0x3f611e(0x164)])==null||_0x224c31[_0x3f611e(0x155)](),this['_status$']['next'](_0x3f611e(0x13a));}[_0x25a4d5(0xf6)](){const _0x31f9c0=_0x25a4d5;var _0x1bd32a;this[_0x31f9c0(0x10d)][_0x31f9c0(0xf4)]('idle'),(_0x1bd32a=this[_0x31f9c0(0x164)])==null||_0x1bd32a[_0x31f9c0(0x155)](),this[_0x31f9c0(0x164)]=null;}[_0x25a4d5(0xfe)](){const _0x1e79ec=_0x25a4d5;var _0x550479;this[_0x1e79ec(0x10d)][_0x1e79ec(0xf4)](_0x1e79ec(0x163)),(_0x550479=this['_commandDisposable'])==null||_0x550479['dispose']();}[_0x25a4d5(0x149)](_0x343d90){const _0xa92bd=_0x25a4d5;if([_0xa92bd(0x11a),_0xa92bd(0x163),_0xa92bd(0x16d)]['includes'](this[_0xa92bd(0x151)])||!_0x343d90[_0xa92bd(0x165)]['presenter']||_0x343d90[_0xa92bd(0x165)]['presenter']===this[_0xa92bd(0x174)][_0xa92bd(0x117)]())return;this['_status']===_0xa92bd(0x178)&&this[_0xa92bd(0x153)]();let _0x352ec0=_0x343d90[_0xa92bd(0x165)][_0xa92bd(0xfa)];Object[_0xa92bd(0x111)](_0x352ec0)[_0xa92bd(0x167)](_0x18735f=>{const _0x222391=_0xa92bd;this['_commandService']['executeCommand'](_0x18735f['id'],_0x18735f['params']?JSON[_0x222391(0x110)](_0x18735f['params']):null,{'fromCollab':!0x0});});}[_0x25a4d5(0x10a)](){const _0x4d4c74=_0x25a4d5;var _0x10da78;this[_0x4d4c74(0x10d)][_0x4d4c74(0xf4)](_0x4d4c74(0x16d)),(_0x10da78=this[_0x4d4c74(0x164)])==null||_0x10da78[_0x4d4c74(0x155)]();}[_0x25a4d5(0x148)](){const _0x33dd3b=_0x25a4d5;this[_0x33dd3b(0x10d)]['next'](_0x33dd3b(0x178)),this[_0x33dd3b(0x126)]();}};q=W([U(0x2,_0x4098e7),U(0x3,_0x246204(H)),U(0x4,_0x2f5f0a)],q);function J(){const _0x44ef7a=_0x25a4d5;let _0x1f2e29=_0x32c6ef(G),_0x49ca06=_0x32c6ef(_0x280497),_0xc51557=_0x28ebf1(()=>_0x49ca06[_0x44ef7a(0x13b)](_0x20aee4[_0x44ef7a(0x15d)]),void 0x0,!0x1,[]),[_0x7aebd5,_0x2ce701]=_0x62adba(null),[_0x2a54c2,_0xf809a3]=_0x62adba('idle'),_0x4888c3=_0x4bc3f8(null);return _0x98e42e(()=>(_0xc51557&&_0x1f2e29['getLiveShareCoordinator'](_0xc51557[_0x44ef7a(0xf2)]())['then'](_0xcb7092=>{const _0x37f80e=_0x44ef7a;_0x2ce701(_0xcb7092),_0x4888c3[_0x37f80e(0x15a)]=_0xcb7092[_0x37f80e(0x176)]['subscribe'](_0x30fbe0=>{_0xf809a3(_0x30fbe0);});}),()=>{const _0x25a992=_0x44ef7a;var _0xd7213a;(_0xd7213a=_0x4888c3[_0x25a992(0x15a)])==null||_0xd7213a[_0x25a992(0xfc)](),_0x4888c3[_0x25a992(0x15a)]=null;}),[_0xc51557,_0x1f2e29]),_0x7aebd5?_0x22ef16(_0x90520d,{'align':_0x44ef7a(0x13c),'disabled':_0x2a54c2===_0x44ef7a(0x16d),'className':_0x44ef7a(0xfb),'overlay':_0x22ef16(se,{'status':_0x2a54c2,'coordinator':_0x7aebd5}),'children':_0x22ef16(_0x44ef7a(0x12a),{'className':_0x2dd8ba('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2a54c2===_0x44ef7a(0x16d),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2a54c2!=='offline'}),'type':_0x44ef7a(0x12a),'children':_0x22ef16(_0x113b09,{'className':_0x44ef7a(0x156)})})}):null;}function se(_0x2ab1bc){const _0x4ebad0=_0x25a4d5;let {status:_0x24e814,coordinator:_0x379b31}=_0x2ab1bc;switch(_0x24e814){case _0x4ebad0(0x178):return _0x22ef16(ce,{'coordinator':_0x379b31});case _0x4ebad0(0x13a):return _0x22ef16(le,{'coordinator':_0x379b31});case _0x4ebad0(0x163):return _0x22ef16(ue,{'coordinator':_0x379b31});case _0x4ebad0(0x16d):return _0x22ef16(de,{});case _0x4ebad0(0x11a):return _0x22ef16(Y,{'coordinator':_0x379b31});default:return null;}}function ce(_0xda5332){const _0x255576=_0x25a4d5;let {coordinator:_0x15d95c}=_0xda5332;return _0x242ea9(_0x473cb8,{'children':[_0x22ef16(_0x255576(0x152),{'className':_0x255576(0x159),'children':_0x255576(0x139)}),_0x22ef16(_0x267602,{'onClick':()=>_0x15d95c[_0x255576(0x177)](),'children':_0x255576(0x138)})]});}function le(_0x15e2a9){const _0x4670d4=_0x25a4d5;let {coordinator:_0x4290cb}=_0x15e2a9;return _0x242ea9(_0x473cb8,{'children':[_0x22ef16(_0x4670d4(0x152),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x22ef16(_0x267602,{'onClick':()=>_0x4290cb['stopFollowing'](),'children':_0x4670d4(0x15f)})]});}function ue(_0x2d1af7){const _0x31696c=_0x25a4d5;let {coordinator:_0x9c0f9c}=_0x2d1af7;return _0x242ea9(_0x473cb8,{'children':[_0x22ef16(_0x31696c(0x152),{'className':_0x31696c(0x159),'children':_0x31696c(0xf9)}),_0x22ef16(_0x267602,{'variant':_0x31696c(0x109),'onClick':()=>_0x9c0f9c[_0x31696c(0x16c)](),'children':_0x31696c(0x129)})]});}function Y(_0x1acb28){const _0x2b5320=_0x25a4d5;let {coordinator:_0x282dc4}=_0x1acb28;return _0x242ea9(_0x473cb8,{'children':[_0x22ef16(_0x2b5320(0x152),{'className':_0x2b5320(0x159),'children':_0x2b5320(0x181)}),_0x22ef16(_0x267602,{'variant':'default','onClick':()=>_0x282dc4[_0x2b5320(0x124)](),'children':'Stop\x20presenting'})]});}function de(){const _0xd13a70=_0x25a4d5;return _0x22ef16(_0x473cb8,{'children':_0xd13a70(0x114)});}let X=class extends _0x567f68{constructor(_0x2284b2,_0x25615b){const _0x466b77=_0x25a4d5;super(),this[_0x466b77(0x17a)]=_0x2284b2,this[_0x466b77(0x132)]=_0x25615b,this['_mountLiveShare']();}[_0x25a4d5(0x12b)](){const _0x562458=_0x25a4d5;this[_0x562458(0x13f)](this['_uiPartsService']['registerComponent'](_0x354b15[_0x562458(0x10f)],()=>_0x198c5f(J,this[_0x562458(0x17a)])));}};X=W([U(0x0,_0x246204(_0x1d5744)),U(0x1,_0x3e60ea)],X);function _0x45c0(){const _0x227500=['getInitialStates','_liveShareService','symbol','_collabSession','setConfig','status$','tryStartPresenting','idle','object','_injector','_unitID','asObservable','send','prototype','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','You\x27re\x20presenting\x20the\x20document','has','pipe','_handleTerminate','_startLiveShareCoordinator','decorate','dispose$','getTypeOfUnitAdded$','getUnitId','iterator','next','_init','_beIdle','constructor','unitId','You\x27re\x20not\x20following\x20the\x20presenter','operations','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','unsubscribe','stopFollowing','_stopFollowing','getLiveShareCoordinatorSync','createInstance','delete','requireSession','UNIVER_LIVE_SHARE_PLUGIN','3723ZPxNkV','_presenter','getOwnPropertyDescriptor','PRESENTING','FOLLOWING','text','_handleOffline','0.25.0-insiders.20260608-e4336f7','_commandService','_status$','length','HEADER_MENU','parse','values','executeCommand','_collabSessionService','You\x27are\x20offline.','5304312nEwuma','defineProperty','getMemberID','get','sheet','presenting','complete','_stopPresenting','type','2376VpxmQN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','init','toPrimitive','3547200ZIuSlE','onCommandExecuted','stopPresenting','mutations','_fetchOperations','string','registerSharedOperation','Start\x20following','button','_mountLiveShare','OFFLINE','1577180wjiCWd','default','_univerInstanceService','909112ZSFeXk','_startPresenting','_uiPartsService','unit','getValue','LIVESHARE_FETCH_OPERATIONS','add','_handleNewHost','Start','Present\x20this\x20document','following','getCurrentTypeOfUnit$','end','shouldShareOperation','stringify','disposeWithMe','7BYNByf','params','map','set','pluginName','LIVESHARE_TERMINATE','_sharedOperations','_configService','_handleOnline','_handleOperation','_config','sessionStatus$','UNIVER_UNKNOWN','from','@univerjs-pro/live-share','getLiveShareCoordinator','_entities','_status','div','_startFollowing','find','dispose','univer-size-4','subscribe','LIVESHARE_OPERATION','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','getConfig','_reporters','UNIVER_SHEET','LIVESHARE_NEW_HOST','Stop\x20following','IDLE','subject','654561hTpdTT','not-following','_commandDisposable','data','onRendered','forEach','ONLINE','NEW_CHANGESETS','function','24633360kveztg','startFollowing','offline','getStatus','_handleNewChangeSets','LIVESHARE_REQUEST_HOST'];_0x45c0=function(){return _0x227500;};return _0x45c0();}var fe=_0x25a4d5(0x14e),pe=_0x25a4d5(0x10b);const Z={};let Q=class extends _0x567f68{constructor(_0x16b102){const _0x15b599=_0x25a4d5;super(),this[_0x15b599(0x172)]=_0x16b102,this[_0x15b599(0xf5)]();}[_0x25a4d5(0xf5)](){const _0x9705d2=_0x25a4d5;[_0x54451a['id'],_0x4a4e17['id'],_0x24fc60['id']][_0x9705d2(0x167)](_0x4db844=>{const _0x338faf=_0x9705d2;this[_0x338faf(0x13f)](this[_0x338faf(0x172)][_0x338faf(0x128)](_0x4db844));});}};Q=W([U(0x0,_0x246204(H))],Q);let $=class extends _0x38898e{constructor(_0x3d46d1=Z,_0xc2921c,_0xcc428f){const _0x4491b4=_0x25a4d5;super(),this['_config']=_0x3d46d1,this['_injector']=_0xc2921c,this['_configService']=_0xcc428f;let {..._0x5ad5b2}=_0x46f91d({},Z,this[_0x4491b4(0x14a)]);this[_0x4491b4(0x147)][_0x4491b4(0x175)]('live-share.config',_0x5ad5b2);}['onStarting'](){const _0x2f2dab=_0x25a4d5;_0x198de0(this['_injector'],_0x1fd9b4([[H],[G],[Q],[X]],this[_0x2f2dab(0x14a)]['override'])),_0x2116c5(this[_0x2f2dab(0x17a)],[[Q]]);}[_0x25a4d5(0x166)](){_0x2116c5(this['_injector'],[[X]]);}};V($,'type',_0x20aee4[_0x25a4d5(0x14c)]),V($,_0x25a4d5(0x144),_0x25a4d5(0x103)),V($,'packageName',fe),V($,'version',pe),$=W([_0x3381d0(_0x58c306),U(0x1,_0x246204(_0x1d5744)),U(0x2,_0x4098e7)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
@@ -1,5 +1,5 @@
1
1
  import './global.css';
2
- export type { IUniverLiveShareConfig } from './controllers/config.schema';
2
+ export type { IUniverLiveShareConfig } from './config/config';
3
3
  export { DesktopLiveShareController } from './controllers/live-share/live-share-ui.controller';
4
4
  export { LiveShareController, LiveShareCoordinator, LiveShareStatus } from './controllers/live-share/live-share.controller';
5
5
  export { UniverLiveSharePlugin } from './plugin';
@@ -1,4 +1,4 @@
1
- import type { IUniverLiveShareConfig } from './controllers/config.schema';
1
+ import type { IUniverLiveShareConfig } from './config/config';
2
2
  import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
3
  export declare class UniverLiveSharePlugin extends Plugin {
4
4
  private readonly _config;
@@ -1 +1 @@
1
- export declare function LiveShare(): import("react/jsx-runtime").JSX.Element | null;
1
+ export declare function LiveShare(): import("react").JSX.Element | null;
@@ -3,5 +3,5 @@ import { LiveShare } from './LiveShare';
3
3
  declare const meta: Meta<typeof LiveShare>;
4
4
  export default meta;
5
5
  export declare const Playground: {
6
- render: () => import("react/jsx-runtime").JSX.Element;
6
+ render: () => import("react").JSX.Element;
7
7
  };
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0xd62a(_0x2f4ad8,_0x2fcfd4){_0x2f4ad8=_0x2f4ad8-0x1b4;const _0x27959f=_0x2795();let _0xd62a2b=_0x27959f[_0x2f4ad8];return _0xd62a2b;}(function(_0x21a71e,_0x2fd725){const _0x3fb078=_0xd62a,_0x48445c=_0x21a71e();while(!![]){try{const _0x4e761a=parseInt(_0x3fb078(0x1d9))/0x1+-parseInt(_0x3fb078(0x1dd))/0x2*(-parseInt(_0x3fb078(0x1d1))/0x3)+parseInt(_0x3fb078(0x1bb))/0x4+-parseInt(_0x3fb078(0x1d6))/0x5+-parseInt(_0x3fb078(0x1c0))/0x6*(parseInt(_0x3fb078(0x1cf))/0x7)+-parseInt(_0x3fb078(0x1b6))/0x8*(-parseInt(_0x3fb078(0x1ba))/0x9)+parseInt(_0x3fb078(0x1e2))/0xa*(-parseInt(_0x3fb078(0x1da))/0xb);if(_0x4e761a===_0x2fd725)break;else _0x48445c['push'](_0x48445c['shift']());}catch(_0x413239){_0x48445c['push'](_0x48445c['shift']());}}}(_0x2795,0xd7f65),function(_0x452cb7,_0x403cae){const _0x2c7568=_0xd62a;typeof exports=='object'&&typeof module<'u'?_0x403cae(require(`@univerjs-pro/live-share`),require(`@univerjs/core`),require(`@univerjs/core/facade`)):typeof define==_0x2c7568(0x1e0)&&define['amd']?define([_0x2c7568(0x1d7),'@univerjs/core',_0x2c7568(0x1b4)],_0x403cae):(_0x452cb7=typeof globalThis<'u'?globalThis:_0x452cb7||self,_0x403cae(_0x452cb7[_0x2c7568(0x1c2)],_0x452cb7['UniverCore'],_0x452cb7['UniverCoreFacade']));}(this,function(_0x4e038d,_0x3819ef,_0x5e3b9f){const _0x1dcc1c=_0xd62a;function _0xe8b7ba(_0x5531a5){'@babel/helpers - typeof';const _0x148c5f=_0xd62a;return _0xe8b7ba=typeof Symbol==_0x148c5f(0x1e0)&&typeof Symbol[_0x148c5f(0x1c5)]==_0x148c5f(0x1b8)?function(_0x499793){return typeof _0x499793;}:function(_0x4ef2e6){const _0x258a1e=_0x148c5f;return _0x4ef2e6&&typeof Symbol=='function'&&_0x4ef2e6[_0x258a1e(0x1c1)]===Symbol&&_0x4ef2e6!==Symbol['prototype']?_0x258a1e(0x1b8):typeof _0x4ef2e6;},_0xe8b7ba(_0x5531a5);}function _0x22aa94(_0x561976,_0x34c6c8){const _0x2ad17d=_0xd62a;if(_0xe8b7ba(_0x561976)!=_0x2ad17d(0x1cd)||!_0x561976)return _0x561976;var _0x1423a5=_0x561976[Symbol[_0x2ad17d(0x1c7)]];if(_0x1423a5!==void 0x0){var _0x321cc0=_0x1423a5[_0x2ad17d(0x1ca)](_0x561976,_0x34c6c8||_0x2ad17d(0x1d8));if(_0xe8b7ba(_0x321cc0)!='object')return _0x321cc0;throw TypeError(_0x2ad17d(0x1c4));}return(_0x34c6c8===_0x2ad17d(0x1e1)?String:Number)(_0x561976);}function _0x203bc6(_0x2e641e){const _0x2dc885=_0xd62a;var _0x139805=_0x22aa94(_0x2e641e,_0x2dc885(0x1e1));return _0xe8b7ba(_0x139805)==_0x2dc885(0x1b8)?_0x139805:_0x139805+'';}function _0x26374c(_0x86b270,_0x83ba6b,_0x540358){const _0xeae346=_0xd62a;return(_0x83ba6b=_0x203bc6(_0x83ba6b))in _0x86b270?Object[_0xeae346(0x1c6)](_0x86b270,_0x83ba6b,{'value':_0x540358,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x86b270[_0x83ba6b]=_0x540358,_0x86b270;}var _0x239062=class extends _0x5e3b9f[_0x1dcc1c(0x1c9)]{constructor(..._0x4f262d){super(..._0x4f262d),_0x26374c(this,'_liveShareController',void 0x0);}[_0x1dcc1c(0x1b7)](_0x16eb08){const _0x1c682b=_0x1dcc1c;this[_0x1c682b(0x1d0)]=_0x16eb08[_0x1c682b(0x1bc)](_0x4e038d[_0x1c682b(0x1ce)]);}['getLiveShareStatus'](){const _0x4c686f=_0x1dcc1c;var _0x3de2df;let _0x33bbaa=this['_injector'][_0x4c686f(0x1bc)](_0x3819ef['IUniverInstanceService'])[_0x4c686f(0x1c8)](_0x3819ef[_0x4c686f(0x1bd)][_0x4c686f(0x1bf)]);if(!_0x33bbaa)throw Error('No\x20active\x20workbook\x20found.');let _0x231aed=_0x33bbaa['getUnitId'](),_0x42e5b7=this[_0x4c686f(0x1d0)][_0x4c686f(0x1db)](_0x231aed);return(_0x3de2df=_0x42e5b7==null?void 0x0:_0x42e5b7['getStatus']())==null?_0x4e038d[_0x4c686f(0x1dc)][_0x4c686f(0x1b9)]:_0x3de2df;}['startFollowing'](){const _0x133bd2=_0x1dcc1c;let _0x20bbeb=this[_0x133bd2(0x1d3)][_0x133bd2(0x1bc)](_0x3819ef['IUniverInstanceService'])[_0x133bd2(0x1c8)](_0x3819ef[_0x133bd2(0x1bd)][_0x133bd2(0x1bf)]);if(!_0x20bbeb)throw Error(_0x133bd2(0x1c3));let _0x5664ea=_0x20bbeb[_0x133bd2(0x1d4)](),_0x48494b=this[_0x133bd2(0x1d0)][_0x133bd2(0x1db)](_0x5664ea);if(!_0x48494b)throw Error(_0x133bd2(0x1be));_0x48494b[_0x133bd2(0x1d2)]();}[_0x1dcc1c(0x1cc)](){const _0x114b7f=_0x1dcc1c;let _0x5b5264=this['_injector']['get'](_0x3819ef[_0x114b7f(0x1df)])[_0x114b7f(0x1c8)](_0x3819ef[_0x114b7f(0x1bd)][_0x114b7f(0x1bf)]);if(!_0x5b5264)throw Error('No\x20active\x20workbook\x20found.');let _0x275233=_0x5b5264[_0x114b7f(0x1d4)](),_0x3d19af=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x275233);if(!_0x3d19af)throw Error(_0x114b7f(0x1be));_0x3d19af[_0x114b7f(0x1cc)]();}[_0x1dcc1c(0x1de)](){const _0x84a286=_0x1dcc1c;let _0x16ff7f=this[_0x84a286(0x1d3)][_0x84a286(0x1bc)](_0x3819ef[_0x84a286(0x1df)])[_0x84a286(0x1c8)](_0x3819ef['UniverInstanceType'][_0x84a286(0x1bf)]);if(!_0x16ff7f)throw Error(_0x84a286(0x1c3));let _0x5cba26=_0x16ff7f[_0x84a286(0x1d4)](),_0x438276=this[_0x84a286(0x1d0)]['getLiveShareCoordinatorSync'](_0x5cba26);if(!_0x438276)throw Error(_0x84a286(0x1be));_0x438276['tryStartPresenting']();}['stopPresenting'](){const _0x315151=_0x1dcc1c;let _0x1afaa4=this[_0x315151(0x1d3)][_0x315151(0x1bc)](_0x3819ef['IUniverInstanceService'])[_0x315151(0x1c8)](_0x3819ef['UniverInstanceType'][_0x315151(0x1bf)]);if(!_0x1afaa4)throw Error(_0x315151(0x1c3));let _0xbe8335=_0x1afaa4['getUnitId'](),_0x55cf02=this['_liveShareController'][_0x315151(0x1db)](_0xbe8335);if(!_0x55cf02)throw Error(_0x315151(0x1be));_0x55cf02[_0x315151(0x1b5)]();}};_0x5e3b9f['FUniver'][_0x1dcc1c(0x1d5)](_0x239062);var _0x2d2dae=class extends _0x5e3b9f['FEnum']{get['LiveShareStatusEnum'](){const _0x20e890=_0x1dcc1c;return _0x4e038d[_0x20e890(0x1dc)];}};_0x5e3b9f[_0x1dcc1c(0x1cb)]['extend'](_0x2d2dae);}));function _0x2795(){const _0x41ad21=['FEnum','stopFollowing','object','LiveShareController','9597wrQtBS','_liveShareController','9KYOyDI','startFollowing','_injector','getUnitId','extend','5698365FaIxkc','@univerjs-pro/live-share','default','1179565tlvRoo','26233702vTEuPc','getLiveShareCoordinatorSync','LiveShareStatus','856846MXLBSF','startPresenting','IUniverInstanceService','function','string','10CDnwad','@univerjs/core/facade','stopPresenting','1432pjOMLl','_initialize','symbol','IDLE','80613QSJNlP','1764328rewkOo','get','UniverInstanceType','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','438Fofxfh','constructor','UniverProLiveShare','No\x20active\x20workbook\x20found.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','iterator','defineProperty','toPrimitive','getCurrentUnitOfType','FUniver','call'];_0x2795=function(){return _0x41ad21;};return _0x2795();}
1
+ (function(_0x3cf733,_0x493119){const _0x34e013=_0x3277,_0x3da6a4=_0x3cf733();while(!![]){try{const _0x4f1050=parseInt(_0x34e013(0x183))/0x1+-parseInt(_0x34e013(0x196))/0x2*(parseInt(_0x34e013(0x16f))/0x3)+parseInt(_0x34e013(0x198))/0x4*(parseInt(_0x34e013(0x19e))/0x5)+parseInt(_0x34e013(0x19a))/0x6+parseInt(_0x34e013(0x199))/0x7+parseInt(_0x34e013(0x19c))/0x8*(parseInt(_0x34e013(0x170))/0x9)+-parseInt(_0x34e013(0x176))/0xa*(parseInt(_0x34e013(0x177))/0xb);if(_0x4f1050===_0x493119)break;else _0x3da6a4['push'](_0x3da6a4['shift']());}catch(_0x3d3a00){_0x3da6a4['push'](_0x3da6a4['shift']());}}}(_0x2807,0x457a3),function(_0x9016e9,_0x1d9f34){const _0xfbefb5=_0x3277;typeof exports==_0xfbefb5(0x19d)&&typeof module<'u'?_0x1d9f34(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0xfbefb5(0x173)&&define[_0xfbefb5(0x195)]?define([_0xfbefb5(0x17b),_0xfbefb5(0x17d),'@univerjs/core/facade'],_0x1d9f34):(_0x9016e9=typeof globalThis<'u'?globalThis:_0x9016e9||self,_0x1d9f34(_0x9016e9[_0xfbefb5(0x17a)],_0x9016e9['UniverCore'],_0x9016e9['UniverCoreFacade']));}(this,function(_0xcb7154,_0x1c5d93,_0x15d923){const _0x420268=_0x3277;function _0x569b4c(_0x4ab8e6){'@babel/helpers - typeof';const _0x2d0566=_0x3277;return _0x569b4c=typeof Symbol==_0x2d0566(0x173)&&typeof Symbol['iterator']==_0x2d0566(0x18d)?function(_0x5389bf){return typeof _0x5389bf;}:function(_0x27603f){const _0x2b33fa=_0x2d0566;return _0x27603f&&typeof Symbol=='function'&&_0x27603f[_0x2b33fa(0x191)]===Symbol&&_0x27603f!==Symbol[_0x2b33fa(0x179)]?'symbol':typeof _0x27603f;},_0x569b4c(_0x4ab8e6);}function _0x2a60a1(_0x423e13,_0x129e15){const _0x5be6b3=_0x3277;if(_0x569b4c(_0x423e13)!='object'||!_0x423e13)return _0x423e13;var _0x5a9e44=_0x423e13[Symbol[_0x5be6b3(0x171)]];if(_0x5a9e44!==void 0x0){var _0x593dec=_0x5a9e44[_0x5be6b3(0x190)](_0x423e13,_0x129e15||_0x5be6b3(0x184));if(_0x569b4c(_0x593dec)!='object')return _0x593dec;throw TypeError(_0x5be6b3(0x186));}return(_0x129e15===_0x5be6b3(0x16e)?String:Number)(_0x423e13);}function _0x5b1756(_0x86d103){const _0xb0919f=_0x3277;var _0x420230=_0x2a60a1(_0x86d103,_0xb0919f(0x16e));return _0x569b4c(_0x420230)==_0xb0919f(0x18d)?_0x420230:_0x420230+'';}function _0x2452dc(_0x128b10,_0x2f8951,_0x477e78){return(_0x2f8951=_0x5b1756(_0x2f8951))in _0x128b10?Object['defineProperty'](_0x128b10,_0x2f8951,{'value':_0x477e78,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x128b10[_0x2f8951]=_0x477e78,_0x128b10;}var _0x3e5709=class extends _0x15d923[_0x420268(0x18a)]{constructor(..._0x519a73){super(..._0x519a73),_0x2452dc(this,'_liveShareController',void 0x0);}[_0x420268(0x180)](_0x162b21){const _0x1a5637=_0x420268;this[_0x1a5637(0x18b)]=_0x162b21[_0x1a5637(0x189)](_0xcb7154[_0x1a5637(0x18c)]);}[_0x420268(0x17e)](){const _0x45fb1d=_0x420268;var _0x48f2f4;let _0x376823=this[_0x45fb1d(0x182)]['get'](_0x1c5d93[_0x45fb1d(0x17f)])['getCurrentUnitOfType'](_0x1c5d93[_0x45fb1d(0x181)][_0x45fb1d(0x17c)]);if(!_0x376823)throw Error(_0x45fb1d(0x19b));let _0x32c7fb=_0x376823[_0x45fb1d(0x187)](),_0x3d730e=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x32c7fb);return(_0x48f2f4=_0x3d730e==null?void 0x0:_0x3d730e[_0x45fb1d(0x192)]())==null?_0xcb7154[_0x45fb1d(0x188)][_0x45fb1d(0x193)]:_0x48f2f4;}['startFollowing'](){const _0x55bb60=_0x420268;let _0xf4d75c=this[_0x55bb60(0x182)][_0x55bb60(0x189)](_0x1c5d93['IUniverInstanceService'])[_0x55bb60(0x172)](_0x1c5d93[_0x55bb60(0x181)][_0x55bb60(0x17c)]);if(!_0xf4d75c)throw Error(_0x55bb60(0x19b));let _0x1ef844=_0xf4d75c[_0x55bb60(0x187)](),_0x23c6fc=this['_liveShareController'][_0x55bb60(0x18e)](_0x1ef844);if(!_0x23c6fc)throw Error(_0x55bb60(0x194));_0x23c6fc[_0x55bb60(0x178)]();}[_0x420268(0x185)](){const _0x6eff11=_0x420268;let _0x18b132=this[_0x6eff11(0x182)][_0x6eff11(0x189)](_0x1c5d93['IUniverInstanceService'])[_0x6eff11(0x172)](_0x1c5d93[_0x6eff11(0x181)][_0x6eff11(0x17c)]);if(!_0x18b132)throw Error('No\x20active\x20workbook\x20found.');let _0x4ac10d=_0x18b132[_0x6eff11(0x187)](),_0x955f91=this[_0x6eff11(0x18b)][_0x6eff11(0x18e)](_0x4ac10d);if(!_0x955f91)throw Error(_0x6eff11(0x194));_0x955f91[_0x6eff11(0x185)]();}[_0x420268(0x175)](){const _0x15f19a=_0x420268;let _0x57dd73=this[_0x15f19a(0x182)][_0x15f19a(0x189)](_0x1c5d93['IUniverInstanceService'])[_0x15f19a(0x172)](_0x1c5d93[_0x15f19a(0x181)][_0x15f19a(0x17c)]);if(!_0x57dd73)throw Error(_0x15f19a(0x19b));let _0x345601=_0x57dd73['getUnitId'](),_0x438af5=this['_liveShareController'][_0x15f19a(0x18e)](_0x345601);if(!_0x438af5)throw Error(_0x15f19a(0x194));_0x438af5[_0x15f19a(0x197)]();}['stopPresenting'](){const _0x5049c7=_0x420268;let _0x30902c=this[_0x5049c7(0x182)]['get'](_0x1c5d93[_0x5049c7(0x17f)])[_0x5049c7(0x172)](_0x1c5d93['UniverInstanceType'][_0x5049c7(0x17c)]);if(!_0x30902c)throw Error(_0x5049c7(0x19b));let _0x3dc979=_0x30902c[_0x5049c7(0x187)](),_0x96fabc=this[_0x5049c7(0x18b)][_0x5049c7(0x18e)](_0x3dc979);if(!_0x96fabc)throw Error(_0x5049c7(0x194));_0x96fabc[_0x5049c7(0x19f)]();}};_0x15d923['FUniver'][_0x420268(0x174)](_0x3e5709);var _0x378aee=class extends _0x15d923['FEnum']{get['LiveShareStatusEnum'](){const _0x27ed9e=_0x420268;return _0xcb7154[_0x27ed9e(0x188)];}};_0x15d923[_0x420268(0x18f)][_0x420268(0x174)](_0x378aee);}));function _0x3277(_0x1f35b6,_0x29e187){_0x1f35b6=_0x1f35b6-0x16e;const _0x2807d9=_0x2807();let _0x327766=_0x2807d9[_0x1f35b6];return _0x327766;}function _0x2807(){const _0x2599ce=['stopFollowing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getUnitId','LiveShareStatus','get','FUniver','_liveShareController','LiveShareController','symbol','getLiveShareCoordinatorSync','FEnum','call','constructor','getStatus','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','amd','2AIjgoT','tryStartPresenting','24htZfwx','2743916ilmRZv','361872CYdbNa','No\x20active\x20workbook\x20found.','56696XKukPb','object','330445CkFmLy','stopPresenting','string','1406409pruZpw','495UWsnja','toPrimitive','getCurrentUnitOfType','function','extend','startPresenting','6347190DGyqDp','11TeflSY','startFollowing','prototype','UniverProLiveShare','@univerjs-pro/live-share','UNIVER_SHEET','@univerjs/core','getLiveShareStatus','IUniverInstanceService','_initialize','UniverInstanceType','_injector','149482DJlpoU','default'];_0x2807=function(){return _0x2599ce;};return _0x2807();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x10d9(){const _0x43b98a=['SessionStatus','length','registerInitialStateReporter','_handleOperation','live-share.config','_commandService','_handleNewChangeSets','0.24.0','data','ICommandService','_presenter','_mountLiveShare','evenodd','operators','Present\x20this\x20document','_fetchOperations','SetScrollOperation','function','stringify','Button','getTypeOfUnitAdded$','BehaviorSubject','LiveShareCoordinator','forEach','Disposable','init','CollaborationEvent','useState','4026129LRmJUN','_liveShareService','getInitialStates','get','108941dTxMCp','prototype','merge','IUniverInstanceService','toString','forwardRef','_collabSession','93vTEnxH','_unitID','12vBOOEM','entries','react/jsx-runtime','url(#$1','jsxs','UniverSheets','object','LIVESHARE_OPERATION','currentColor','_beIdle','_status$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','executeCommand','UNIVER_UNKNOWN','packageName','Dropdown','xlink:href','call','trim','InsertSheetMutation','You\x27re\x20presenting\x20the\x20document','not-following','_handleOnline','next','live-share-icon','dispose','presenting','mask','decorate','_stopFollowing','DesktopLiveShareController','set','_init','add','unit','offline','toPrimitive','params','stopFollowing','parse','@univerjs/sheets-ui','toDisposable','useRef','_sharedOperations','UniverLiveSharePlugin','rxjs','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','27mGGsbz','defineProperty','LiveShare','You\x27re\x20following\x20the\x20presenter','getMemberID','includes','univer-mb-3\x20univer-w-full\x20univer-text-sm','PRESENTING','UNIVER_SHEET','idSuffix','getStatus','638341sMOsok','onCommandExecuted','4985hwTqIU','send','default','override','Stop\x20following','attrs','IConfigService','1805968IoqChr','stopPresenting','use','registerDependencies','Module','getUnitId','Start\x20following','onRendered','UNIVER_LIVE_SHARE_PLUGIN','subscribe','SetWorksheetActiveOperation','path','SetZoomRatioOperation','getLiveShareCoordinatorSync','1658DaArSX','LiveShareIcon','RxDisposable','pipe','_uiPartsService','1em','string','LiveShareController','children','_handleNewHost','symbol','registerComponent','connectInjector','@univerjs/ui','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','_startPresenting','then','constructor','UniverSheetsUi','tag','following','UniverInstanceType','Injector','You\x27re\x20not\x20following\x20the\x20presenter','654yYiQDa','disposeWithMe','0\x200\x2017\x2017','shouldShareOperation','parseProtocolChangeset','event$','_status','clear','_entities','none','CommandType','_handleTerminate','requireSession','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','registerSharedOperation','touchDependencies','_handleOffline','has','_injector','assign','NEW_CHANGESETS','LiveShareService','end','map','unsubscribe','UniverUi','40NUweWr','UniverIcon','_commandDisposable','createElement','getCurrentTypeOfUnit$','asObservable','defIds','getLiveShareCoordinator','fill','@univerjs/design','jsx','Start','OPERATION','Plugin','_collabSessionService','onStarting','_stopPresenting','takeUntil','idle','UniverCollaborationClientPlugin','presenter','type','startFollowing','@univerjs-pro/collaboration','FOLLOWING','CollaborationSessionService','Inject','version','React','useDependency','_config','button','replace','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','useObservable','_reporters','Stop\x20presenting','throttleTime','LIVESHARE_TERMINATE','_startFollowing','1340JFokgb','div','DisposableCollection','defs','7561788QISCdE','sheet','useEffect','tryStartPresenting','_configService','delete','LiveShareStatus','pluginName','substring','iterator','exports','current','displayName','dispose$','Fragment','sessionStatus$'];_0x10d9=function(){return _0x43b98a;};return _0x10d9();}function _0x2c0c(_0x2ce9b9,_0x548b59){_0x2ce9b9=_0x2ce9b9-0x76;const _0x10d9f8=_0x10d9();let _0x2c0cb8=_0x10d9f8[_0x2ce9b9];return _0x2c0cb8;}(function(_0x5da03d,_0x47ec24){const _0x354a19=_0x2c0c,_0x33bffc=_0x5da03d();while(!![]){try{const _0x343bad=-parseInt(_0x354a19(0xfb))/0x1*(-parseInt(_0x354a19(0x14f))/0x2)+-parseInt(_0x354a19(0xf0))/0x3+parseInt(_0x354a19(0xc0))/0x4*(parseInt(_0x354a19(0x13a))/0x5)+parseInt(_0x354a19(0x7d))/0x6*(parseInt(_0x354a19(0xf4))/0x7)+parseInt(_0x354a19(0x141))/0x8*(-parseInt(_0x354a19(0x12d))/0x9)+parseInt(_0x354a19(0x97))/0xa*(parseInt(_0x354a19(0x138))/0xb)+-parseInt(_0x354a19(0xfd))/0xc*(-parseInt(_0x354a19(0xc4))/0xd);if(_0x343bad===_0x47ec24)break;else _0x33bffc['push'](_0x33bffc['shift']());}catch(_0x184fbf){_0x33bffc['push'](_0x33bffc['shift']());}}}(_0x10d9,0xdc35a),function(_0x4c9447,_0x6fbc39){const _0x297b64=_0x2c0c;typeof exports==_0x297b64(0x103)&&typeof module<'u'?_0x6fbc39(exports,require(`@univerjs/core`),require(`@univerjs/ui`),require(`@univerjs/design`),require(`react`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs/sheets`),require(`rxjs`),require(`rxjs/operators`),require(`react/jsx-runtime`),require(`@univerjs/sheets-ui`)):typeof define=='function'&&define['amd']?define([_0x297b64(0xce),'@univerjs/core',_0x297b64(0x15c),_0x297b64(0xa0),'react',_0x297b64(0xae),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0x297b64(0x12a),'rxjs/operators',_0x297b64(0xff),_0x297b64(0x125)],_0x6fbc39):(_0x4c9447=typeof globalThis<'u'?globalThis:_0x4c9447||self,_0x6fbc39(_0x4c9447['UniverProLiveShare']={},_0x4c9447['UniverCore'],_0x4c9447[_0x297b64(0x96)],_0x4c9447['UniverDesign'],_0x4c9447[_0x297b64(0xb3)],_0x4c9447['UniverProCollaboration'],_0x4c9447['UniverProCollaborationClient'],_0x4c9447[_0x297b64(0x102)],_0x4c9447[_0x297b64(0x12a)],_0x4c9447[_0x297b64(0x12a)][_0x297b64(0xe1)],_0x4c9447['React'],_0x4c9447[_0x297b64(0x77)]));}(this,function(_0x2f6fda,_0x3c016e,_0x113560,_0x23d37f,_0x5a8e64,_0x4a8d26,_0x30522a,_0x34724b,_0x553695,_0x33501d,_0x51b0f1,_0x169f6f){const _0x924102=_0x2c0c;Object['defineProperty'](_0x2f6fda,Symbol['toStringTag'],{'value':_0x924102(0x145)});function _0x394b8({ref:_0xb48a4b,..._0x4dbbce}){const _0x44ed82=_0x924102;let {icon:_0x4b2b66,id:_0x4b584c,className:_0x1077c6,extend:_0x4e84ca,..._0x2981e8}=_0x4dbbce,_0x3e1839=(_0x44ed82(0x12c)+_0x4b584c+'\x20'+(_0x1077c6||''))[_0x44ed82(0x10f)](),_0x15332f=(0x0,_0x5a8e64[_0x44ed82(0x127)])('_'+_0x3ced9b());return _0x36fb21(_0x4b2b66,''+_0x4b584c,{'defIds':_0x4b2b66[_0x44ed82(0x9d)],'idSuffix':_0x15332f['current']},{'ref':_0xb48a4b,'className':_0x3e1839,..._0x2981e8},_0x4e84ca);}function _0x36fb21(_0x237d03,_0x4f57d1,_0x107e5c,_0x1b4cb5,_0x54750d){const _0x5e4477=_0x924102;return(0x0,_0x5a8e64[_0x5e4477(0x9a)])(_0x237d03[_0x5e4477(0x78)],{'key':_0x4f57d1,..._0x17acfa(_0x237d03,_0x107e5c,_0x54750d),..._0x1b4cb5},(_0x139ba4(_0x237d03,_0x107e5c)[_0x5e4477(0x157)]||[])[_0x5e4477(0x94)]((_0x21f501,_0x1d8d77)=>_0x36fb21(_0x21f501,_0x4f57d1+'-'+_0x237d03[_0x5e4477(0x78)]+'-'+_0x1d8d77,_0x107e5c,void 0x0,_0x54750d)));}function _0x17acfa(_0xaf745c,_0x4fae74,_0x329079){const _0x5dedce=_0x924102;let _0x3a429e={..._0xaf745c[_0x5dedce(0x13f)]};_0x329079!=null&&_0x329079['colorChannel1']&&_0x3a429e[_0x5dedce(0x9f)]==='colorChannel1'&&(_0x3a429e['fill']=_0x329079['colorChannel1']),_0xaf745c[_0x5dedce(0x78)]===_0x5dedce(0x118)&&_0x3a429e['id']&&(_0x3a429e['id']+=_0x4fae74['idSuffix']),Object[_0x5dedce(0xfe)](_0x3a429e)[_0x5dedce(0xeb)](([_0x35a096,_0x2bb1a1])=>{const _0x1853c7=_0x5dedce;_0x35a096===_0x1853c7(0x118)&&typeof _0x2bb1a1==_0x1853c7(0x155)&&(_0x3a429e[_0x35a096]=_0x2bb1a1[_0x1853c7(0xb7)](/url\(#(.*)\)/,_0x1853c7(0x100)+_0x4fae74[_0x1853c7(0x136)]+')'));});let {defIds:_0xa514c9}=_0x4fae74;return!_0xa514c9||_0xa514c9['length']===0x0?_0x3a429e:(_0xaf745c[_0x5dedce(0x78)]===_0x5dedce(0x143)&&_0x3a429e[_0x5dedce(0x10d)]&&(_0x3a429e['xlink:href']+=_0x4fae74[_0x5dedce(0x136)]),Object[_0x5dedce(0xfe)](_0x3a429e)[_0x5dedce(0xeb)](([_0x409c9c,_0x581041])=>{const _0x1ccbc2=_0x5dedce;typeof _0x581041==_0x1ccbc2(0x155)&&(_0x3a429e[_0x409c9c]=_0x581041[_0x1ccbc2(0xb7)](/url\(#(.*)\)/,'url(#$1'+_0x4fae74[_0x1ccbc2(0x136)]+')'));}),_0x3a429e);}function _0x139ba4(_0x4119d5,_0x1e0758){const _0x14f14d=_0x924102;var _0x44dbd1;let {defIds:_0x4d7f1b}=_0x1e0758;return!_0x4d7f1b||_0x4d7f1b[_0x14f14d(0xd5)]===0x0?_0x4119d5:_0x4119d5[_0x14f14d(0x78)]===_0x14f14d(0xc3)&&(_0x44dbd1=_0x4119d5[_0x14f14d(0x157)])!=null&&_0x44dbd1[_0x14f14d(0xd5)]?{..._0x4119d5,'children':_0x4119d5[_0x14f14d(0x157)][_0x14f14d(0x94)](_0x361a50=>typeof _0x361a50['attrs']['id']=='string'&&_0x4d7f1b&&_0x4d7f1b[_0x14f14d(0x132)](_0x361a50[_0x14f14d(0x13f)]['id'])?{..._0x361a50,'attrs':{..._0x361a50['attrs'],'id':_0x361a50[_0x14f14d(0x13f)]['id']+_0x1e0758[_0x14f14d(0x136)]}}:_0x361a50)}:_0x4119d5;}function _0x3ced9b(){const _0x5830fe=_0x924102;return Math['random']()[_0x5830fe(0xf8)](0x24)[_0x5830fe(0xcc)](0x2,0x8);}_0x394b8[_0x924102(0xd0)]=_0x924102(0x98);let _0x268c37={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x924102(0x86),'viewBox':_0x924102(0x7f),'width':_0x924102(0x154),'height':_0x924102(0x154)},'children':[{'tag':_0x924102(0x14c),'attrs':{'fill':_0x924102(0x105),'d':_0x924102(0x8a)}},{'tag':_0x924102(0x14c),'attrs':{'fill':_0x924102(0x105),'d':_0x924102(0x15d),'fillRule':_0x924102(0xe0),'clipRule':_0x924102(0xe0)}}]},_0x2761b1=(0x0,_0x5a8e64[_0x924102(0xf9)])(function(_0x9c6fad,_0x4ff907){const _0x26d6f7=_0x924102;return(0x0,_0x5a8e64[_0x26d6f7(0x9a)])(_0x394b8,Object[_0x26d6f7(0x90)]({},_0x9c6fad,{'id':_0x26d6f7(0x115),'ref':_0x4ff907,'icon':_0x268c37}));});_0x2761b1[_0x924102(0xd0)]=_0x924102(0x150);function _0x9cf620(_0x29db50){'@babel/helpers - typeof';const _0x1c742a=_0x924102;return _0x9cf620=typeof Symbol=='function'&&typeof Symbol[_0x1c742a(0xcd)]==_0x1c742a(0x159)?function(_0x5a82a){return typeof _0x5a82a;}:function(_0x50778a){const _0x5c0a1d=_0x1c742a;return _0x50778a&&typeof Symbol=='function'&&_0x50778a[_0x5c0a1d(0x76)]===Symbol&&_0x50778a!==Symbol[_0x5c0a1d(0xf5)]?'symbol':typeof _0x50778a;},_0x9cf620(_0x29db50);}function _0x23bf01(_0xace39,_0x576619){const _0x290e4a=_0x924102;if(_0x9cf620(_0xace39)!=_0x290e4a(0x103)||!_0xace39)return _0xace39;var _0x587e69=_0xace39[Symbol[_0x290e4a(0x121)]];if(_0x587e69!==void 0x0){var _0x59b269=_0x587e69[_0x290e4a(0x10e)](_0xace39,_0x576619||_0x290e4a(0x13c));if(_0x9cf620(_0x59b269)!=_0x290e4a(0x103))return _0x59b269;throw TypeError(_0x290e4a(0xb9));}return(_0x576619===_0x290e4a(0x155)?String:Number)(_0xace39);}function _0x1652cb(_0x55e944){const _0x126d03=_0x924102;var _0x564450=_0x23bf01(_0x55e944,_0x126d03(0x155));return _0x9cf620(_0x564450)==_0x126d03(0x159)?_0x564450:_0x564450+'';}function _0x31e8bf(_0x15f795,_0x1f5a29,_0x51cc8e){const _0x2e6156=_0x924102;return(_0x1f5a29=_0x1652cb(_0x1f5a29))in _0x15f795?Object[_0x2e6156(0x12e)](_0x15f795,_0x1f5a29,{'value':_0x51cc8e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15f795[_0x1f5a29]=_0x51cc8e,_0x15f795;}var _0x3075f=class extends _0x3c016e[_0x924102(0xec)]{constructor(..._0x2694e9){const _0x551776=_0x924102;super(..._0x2694e9),_0x31e8bf(this,_0x551776(0x128),new Set()),_0x31e8bf(this,_0x551776(0xbb),new Set());}[_0x924102(0x8b)](_0x1eaf3e){const _0x59d3b0=_0x924102;return this[_0x59d3b0(0x128)][_0x59d3b0(0x11e)](_0x1eaf3e),(0x0,_0x3c016e[_0x59d3b0(0x126)])(()=>this[_0x59d3b0(0x128)][_0x59d3b0(0xc9)](_0x1eaf3e));}[_0x924102(0xd6)](_0x2d1423){const _0x1924ed=_0x924102;return this[_0x1924ed(0xbb)][_0x1924ed(0x11e)](_0x2d1423),(0x0,_0x3c016e[_0x1924ed(0x126)])(()=>this[_0x1924ed(0xbb)][_0x1924ed(0xc9)](_0x2d1423));}[_0x924102(0x80)](_0x22bc7e){const _0x40c243=_0x924102;return this[_0x40c243(0x128)][_0x40c243(0x8e)](_0x22bc7e);}[_0x924102(0xf2)](_0x4fa45e){const _0xab5dfa=_0x924102;return Array['from'](this[_0xab5dfa(0xbb)])['map'](_0x355627=>_0x355627(_0x4fa45e));}};function _0x25d98d(_0x45c098,_0x9baaad){return function(_0x1d791c,_0x51b694){_0x9baaad(_0x1d791c,_0x51b694,_0x45c098);};}function _0x3eb2da(_0x18e01f,_0xfd139e,_0x10b092,_0x548024){const _0x30df27=_0x924102;var _0x34ce20=arguments[_0x30df27(0xd5)],_0x486de6=_0x34ce20<0x3?_0xfd139e:_0x548024===null?_0x548024=Object['getOwnPropertyDescriptor'](_0xfd139e,_0x10b092):_0x548024,_0xb93fad;if(typeof Reflect==_0x30df27(0x103)&&typeof Reflect[_0x30df27(0x119)]==_0x30df27(0xe5))_0x486de6=Reflect[_0x30df27(0x119)](_0x18e01f,_0xfd139e,_0x10b092,_0x548024);else{for(var _0x4f934b=_0x18e01f[_0x30df27(0xd5)]-0x1;_0x4f934b>=0x0;_0x4f934b--)(_0xb93fad=_0x18e01f[_0x4f934b])&&(_0x486de6=(_0x34ce20<0x3?_0xb93fad(_0x486de6):_0x34ce20>0x3?_0xb93fad(_0xfd139e,_0x10b092,_0x486de6):_0xb93fad(_0xfd139e,_0x10b092))||_0x486de6);}return _0x34ce20>0x3&&_0x486de6&&Object['defineProperty'](_0xfd139e,_0x10b092,_0x486de6),_0x486de6;}let _0x4924bc=class extends _0x3c016e[_0x924102(0x151)]{constructor(_0x41ad4d,_0x241a5e,_0x74c85a){const _0x48a1ef=_0x924102;super(),this['_univerInstanceService']=_0x41ad4d,this[_0x48a1ef(0x8f)]=_0x241a5e,this['_collabSessionService']=_0x74c85a,_0x31e8bf(this,_0x48a1ef(0x85),new Map()),this['_init']();}async[_0x924102(0x9e)](_0x3eccfc){const _0x3565df=_0x924102;return this[_0x3565df(0x85)]['has'](_0x3eccfc)||await this[_0x3565df(0x12b)](_0x3eccfc),this[_0x3565df(0x85)][_0x3565df(0xf3)](_0x3eccfc);}[_0x924102(0x14e)](_0x94e78c){const _0x495d0a=_0x924102;var _0x5a1153;return(_0x5a1153=this['_entities'][_0x495d0a(0xf3)](_0x94e78c))==null?null:_0x5a1153;}[_0x924102(0x11d)](){const _0x440794=_0x924102;this['_univerInstanceService'][_0x440794(0xe8)](_0x3c016e[_0x440794(0x7a)][_0x440794(0x135)])[_0x440794(0x152)]((0x0,_0x33501d[_0x440794(0xa8)])(this['dispose$']))[_0x440794(0x14a)](async _0x4d1f96=>{const _0x3dafa9=_0x440794;let _0x596e19=_0x4d1f96[_0x3dafa9(0x11f)]['getUnitId']();this[_0x3dafa9(0x85)][_0x3dafa9(0x8e)](_0x596e19)||this[_0x3dafa9(0x12b)](_0x596e19);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3c016e[_0x440794(0x7a)][_0x440794(0x135)])[_0x440794(0x152)]((0x0,_0x33501d['takeUntil'])(this[_0x440794(0xd1)]))[_0x440794(0x14a)](_0x4d74ad=>{const _0x57d4cb=_0x440794;let _0x13e517=_0x4d74ad[_0x57d4cb(0x146)](),_0x33e58b=this[_0x57d4cb(0x85)][_0x57d4cb(0xf3)](_0x13e517);_0x33e58b==null||_0x33e58b['dispose']();});}async['_startLiveShareCoordinator'](_0x5ef7b7){const _0x46a621=_0x924102;let _0x531b04=await this[_0x46a621(0xa5)][_0x46a621(0x89)](_0x5ef7b7),_0x4a09f9=this['_injector']['createInstance'](_0x5a421d,_0x5ef7b7,_0x531b04);return _0x4a09f9[_0x46a621(0xed)](),this['_entities'][_0x46a621(0x11c)](_0x5ef7b7,_0x4a09f9),_0x4a09f9;}};_0x4924bc=_0x3eb2da([_0x25d98d(0x0,_0x3c016e[_0x924102(0xf7)]),_0x25d98d(0x1,(0x0,_0x3c016e['Inject'])(_0x3c016e[_0x924102(0x7b)])),_0x25d98d(0x2,(0x0,_0x3c016e[_0x924102(0xb1)])(_0x30522a[_0x924102(0xb0)]))],_0x4924bc);let _0x375343=function(_0x5e0336){const _0x2672c8=_0x924102;return _0x5e0336['OFFLINE']=_0x2672c8(0x120),_0x5e0336['IDLE']=_0x2672c8(0xa9),_0x5e0336[_0x2672c8(0xaf)]=_0x2672c8(0x79),_0x5e0336['NOT_FOLLOWING']=_0x2672c8(0x112),_0x5e0336[_0x2672c8(0x134)]=_0x2672c8(0x117),_0x5e0336;}({}),_0x5a421d=class extends _0x3c016e[_0x924102(0x151)]{get[_0x924102(0x83)](){const _0x5da228=_0x924102;return this[_0x5da228(0x107)]['getValue']();}constructor(_0x599fe1,_0x3c8156,_0xad8895,_0x19d0bb,_0x402fe1){const _0x14a805=_0x924102;super(),this['_unitID']=_0x599fe1,this[_0x14a805(0xfa)]=_0x3c8156,this[_0x14a805(0xc8)]=_0xad8895,this['_liveShareService']=_0x19d0bb,this['_commandService']=_0x402fe1,_0x31e8bf(this,_0x14a805(0x107),new _0x553695[(_0x14a805(0xe9))]('idle')),_0x31e8bf(this,'status$',this[_0x14a805(0x107)][_0x14a805(0x9c)]()),_0x31e8bf(this,_0x14a805(0x11d),!0x1),_0x31e8bf(this,_0x14a805(0x99),null),_0x31e8bf(this,_0x14a805(0xde),null);}[_0x924102(0x116)](){const _0xfbcb13=_0x924102;var _0x25799a;(_0x25799a=this['_commandDisposable'])==null||_0x25799a[_0xfbcb13(0x116)](),this[_0xfbcb13(0x107)][_0xfbcb13(0x114)](_0xfbcb13(0xa9)),this[_0xfbcb13(0x107)]['complete']();}[_0x924102(0x137)](){const _0x5950e5=_0x924102;return this[_0x5950e5(0x83)];}[_0x924102(0xed)](){const _0x59931c=_0x924102;this[_0x59931c(0x11d)]||(this[_0x59931c(0x11d)]=!0x0,this['_collabSession'][_0x59931c(0xd3)][_0x59931c(0x152)]((0x0,_0x33501d[_0x59931c(0xa8)])(this[_0x59931c(0xd1)]))[_0x59931c(0x14a)](_0x13224b=>{const _0x230904=_0x59931c;switch(_0x13224b){case _0x30522a['SessionStatus']['OFFLINE']:this[_0x230904(0x8d)]();break;case _0x30522a[_0x230904(0xd4)]['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x59931c(0xfa)][_0x59931c(0x82)][_0x59931c(0x152)]((0x0,_0x33501d[_0x59931c(0xa8)])(this[_0x59931c(0xd1)]))[_0x59931c(0x14a)](_0x581c3a=>{const _0x3b1d60=_0x59931c;let {eventID:_0x3eee49}=_0x581c3a;switch(_0x3eee49){case _0x4a8d26[_0x3b1d60(0xee)]['LIVESHARE_NEW_HOST']:this[_0x3b1d60(0x158)](_0x581c3a);break;case _0x4a8d26[_0x3b1d60(0xee)][_0x3b1d60(0x104)]:this[_0x3b1d60(0xd7)](_0x581c3a);break;case _0x4a8d26['CollaborationEvent'][_0x3b1d60(0xbe)]:this[_0x3b1d60(0x88)]();break;case _0x4a8d26[_0x3b1d60(0xee)][_0x3b1d60(0x91)]:this[_0x3b1d60(0xda)](_0x581c3a);break;default:}}));}[_0x924102(0xc7)](){const _0x4236b2=_0x924102;this[_0x4236b2(0xfa)][_0x4236b2(0x13b)]({'eventID':_0x4a8d26['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4236b2(0xfc)],'userID':this[_0x4236b2(0xfa)][_0x4236b2(0x131)]()}},this[_0x4236b2(0xfc)]);}[_0x924102(0x142)](){const _0xb56225=_0x924102;this[_0xb56225(0x83)]===_0xb56225(0x117)&&(this[_0xb56225(0x107)][_0xb56225(0x114)](_0xb56225(0xa9)),this['_collabSession'][_0xb56225(0x13b)]({'eventID':_0x4a8d26['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0xb56225(0xfc)]));}['startFollowing'](){const _0x5190cc=_0x924102;this['_status']==='not-following'&&(this['_status$'][_0x5190cc(0x114)](_0x5190cc(0x79)),this['_startFollowing']());}['stopFollowing'](){const _0x260c48=_0x924102;this[_0x260c48(0x83)]==='following'&&this[_0x260c48(0x11a)]();}[_0x924102(0x158)](_0x373297){const _0x560ba4=_0x924102;let {presenter:_0x3ae13b}=_0x373297[_0x560ba4(0xdc)],_0x488fc0=this[_0x560ba4(0xfa)][_0x560ba4(0x131)]();this['_presenter']=_0x3ae13b,_0x3ae13b===_0x488fc0?(this[_0x560ba4(0x11a)](),this[_0x560ba4(0x15e)]()):this['_status']!==_0x560ba4(0x112)&&(this[_0x560ba4(0xa7)](),this[_0x560ba4(0xbf)]());}[_0x924102(0xe3)](){const _0x5ff033=_0x924102;let _0x5bc304={'eventID':_0x4a8d26[_0x5ff033(0xee)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5ff033(0xfa)][_0x5ff033(0x13b)](_0x5bc304,this[_0x5ff033(0xfc)]);}[_0x924102(0x88)](){const _0x5440d7=_0x924102;this[_0x5440d7(0xde)]=null,this['_status']!==_0x5440d7(0x117)&&this[_0x5440d7(0x106)]();}[_0x924102(0xda)](_0x43e790){const _0x42577e=_0x924102;if(this[_0x42577e(0x83)]===_0x42577e(0x79)&&this['_presenter']===_0x43e790[_0x42577e(0xdc)]['memberID']){let _0x550068=(0x0,_0x4a8d26[_0x42577e(0x81)])(_0x43e790[_0x42577e(0xdc)])['mutations']['reverse']()['find'](_0x18dcfd=>_0x18dcfd['id']===_0x34724b[_0x42577e(0x110)]['id']);if(_0x550068){let _0x497fc1=_0x550068[_0x42577e(0x122)]['unitId'],_0x213528=_0x550068[_0x42577e(0x122)][_0x42577e(0xc5)]['id'];setTimeout(()=>{const _0x42ccce=_0x42577e;this[_0x42ccce(0xd9)]['executeCommand'](_0x34724b[_0x42ccce(0x14b)]['id'],{'unitId':_0x497fc1,'subUnitId':_0x213528},{'fromCollab':!0x0});});}}}[_0x924102(0x15e)](){const _0x4e2b43=_0x924102;var _0x56f8b3;(_0x56f8b3=this[_0x4e2b43(0x99)])==null||_0x56f8b3[_0x4e2b43(0x116)](),this[_0x4e2b43(0x107)]['next'](_0x4e2b43(0x117));let _0x19a312=new Map(),_0x24a182=this[_0x4e2b43(0x99)]=new _0x3c016e[(_0x4e2b43(0xc2))]();_0x24a182['add']((0x0,_0x3c016e[_0x4e2b43(0x126)])(()=>{const _0x3cf00c=_0x4e2b43;_0x19a312[_0x3cf00c(0xeb)](({subject:_0x2cdbca,subscription:_0xca6308})=>{_0xca6308['unsubscribe'](),_0x2cdbca['complete']();}),_0x19a312[_0x3cf00c(0x84)]();})),_0x24a182[_0x4e2b43(0x11e)](this[_0x4e2b43(0xd9)][_0x4e2b43(0x139)](_0x53186d=>{const _0x3ce9a7=_0x4e2b43;if(_0x53186d[_0x3ce9a7(0xac)]!==_0x3c016e[_0x3ce9a7(0x87)][_0x3ce9a7(0xa3)]||!this[_0x3ce9a7(0xf1)]['shouldShareOperation'](_0x53186d['id']))return;let {id:_0x39a2fc}=_0x53186d,_0x29a90c;if(_0x19a312[_0x3ce9a7(0x8e)](_0x39a2fc))_0x29a90c=_0x19a312['get'](_0x39a2fc)['subject'];else{var _0x255426;_0x29a90c=new _0x553695['Subject']();let _0x1bf701=_0x29a90c[_0x3ce9a7(0x152)]((0x0,_0x33501d[_0x3ce9a7(0xbd)])((_0x255426=this[_0x3ce9a7(0xc8)]['getConfig']('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x255426,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ce9a7(0x14a)](_0x47a845=>{const _0x9bc62d=_0x3ce9a7;this[_0x9bc62d(0xfa)]['send']({'eventID':_0x4a8d26[_0x9bc62d(0xee)][_0x9bc62d(0x104)],'data':{'unitID':this['_unitID'],'operations':{[_0x47a845['id']]:{'id':_0x47a845['id'],'params':JSON[_0x9bc62d(0xe6)](_0x47a845[_0x9bc62d(0x122)])}}}},this[_0x9bc62d(0xfc)]);});_0x19a312[_0x3ce9a7(0x11c)](_0x39a2fc,{'subject':_0x29a90c,'subscription':_0x1bf701});}_0x29a90c['next'](_0x53186d);})),this[_0x4e2b43(0xf1)]['getInitialStates'](this['_unitID'])['forEach'](_0x1d29fe=>this[_0x4e2b43(0xfa)][_0x4e2b43(0x13b)]({'eventID':_0x4a8d26['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4e2b43(0xfc)],'operations':{[_0x1d29fe['id']]:{'id':_0x1d29fe['id'],'params':JSON['stringify'](_0x1d29fe[_0x4e2b43(0x122)])}}}},this[_0x4e2b43(0xfc)]));}['_stopPresenting'](){const _0x30d520=_0x924102;var _0x9f4538;this[_0x30d520(0x107)][_0x30d520(0x114)]('idle'),(_0x9f4538=this['_commandDisposable'])==null||_0x9f4538[_0x30d520(0x116)](),this[_0x30d520(0x99)]=null;}[_0x924102(0xbf)](){const _0x26a5d2=_0x924102;var _0x27d13b;(_0x27d13b=this['_commandDisposable'])==null||_0x27d13b[_0x26a5d2(0x116)](),this[_0x26a5d2(0x107)]['next'](_0x26a5d2(0x79));}[_0x924102(0x106)](){const _0x1b433f=_0x924102;var _0x4bcf84;this[_0x1b433f(0x107)][_0x1b433f(0x114)]('idle'),(_0x4bcf84=this[_0x1b433f(0x99)])==null||_0x4bcf84[_0x1b433f(0x116)](),this[_0x1b433f(0x99)]=null;}[_0x924102(0x11a)](){const _0x1807c0=_0x924102;var _0x45bfa3;this[_0x1807c0(0x107)]['next'](_0x1807c0(0x112)),(_0x45bfa3=this[_0x1807c0(0x99)])==null||_0x45bfa3[_0x1807c0(0x116)]();}[_0x924102(0xd7)](_0x46d297){const _0x5eb990=_0x924102;if(['presenting','not-following',_0x5eb990(0x120)][_0x5eb990(0x132)](this['_status'])||!_0x46d297['data'][_0x5eb990(0xab)]||_0x46d297[_0x5eb990(0xdc)][_0x5eb990(0xab)]===this[_0x5eb990(0xfa)]['getMemberID']())return;this[_0x5eb990(0x83)]===_0x5eb990(0xa9)&&this[_0x5eb990(0xbf)]();let _0x66467=_0x46d297[_0x5eb990(0xdc)]['operations'];Object['values'](_0x66467)[_0x5eb990(0xeb)](_0x41fb2c=>{const _0x3e9f2a=_0x5eb990;this[_0x3e9f2a(0xd9)][_0x3e9f2a(0x109)](_0x41fb2c['id'],_0x41fb2c[_0x3e9f2a(0x122)]?JSON[_0x3e9f2a(0x124)](_0x41fb2c['params']):null,{'fromCollab':!0x0});});}[_0x924102(0x8d)](){const _0x1c41ba=_0x924102;var _0x3207c4;this[_0x1c41ba(0x107)][_0x1c41ba(0x114)](_0x1c41ba(0x120)),(_0x3207c4=this[_0x1c41ba(0x99)])==null||_0x3207c4['dispose']();}[_0x924102(0x113)](){const _0x5030e6=_0x924102;this[_0x5030e6(0x107)][_0x5030e6(0x114)](_0x5030e6(0xa9)),this[_0x5030e6(0xe3)]();}};_0x5a421d=_0x3eb2da([_0x25d98d(0x2,_0x3c016e[_0x924102(0x140)]),_0x25d98d(0x3,(0x0,_0x3c016e['Inject'])(_0x3075f)),_0x25d98d(0x4,_0x3c016e[_0x924102(0xdd)])],_0x5a421d);function _0x4a1d7b(){const _0x5d7654=_0x924102;let _0x2f4018=(0x0,_0x113560[_0x5d7654(0xb4)])(_0x4924bc),_0x3ccbb9=(0x0,_0x113560[_0x5d7654(0xb4)])(_0x3c016e[_0x5d7654(0xf7)]),_0x24b40b=(0x0,_0x113560[_0x5d7654(0xba)])(()=>_0x3ccbb9[_0x5d7654(0x9b)](_0x3c016e['UniverInstanceType'][_0x5d7654(0x135)]),void 0x0,!0x1,[]),[_0x258c4e,_0x1edfdc]=(0x0,_0x5a8e64[_0x5d7654(0xef)])(null),[_0x256938,_0xc09e51]=(0x0,_0x5a8e64['useState'])(_0x5d7654(0xa9)),_0x124953=(0x0,_0x5a8e64['useRef'])(null);return(0x0,_0x5a8e64[_0x5d7654(0xc6)])(()=>(_0x24b40b&&_0x2f4018[_0x5d7654(0x9e)](_0x24b40b['getUnitId']())[_0x5d7654(0x15f)](_0x10d93d=>{const _0x3928c0=_0x5d7654;_0x1edfdc(_0x10d93d),_0x124953[_0x3928c0(0xcf)]=_0x10d93d['status$']['subscribe'](_0x8d9d40=>{_0xc09e51(_0x8d9d40);});}),()=>{const _0x8a02ca=_0x5d7654;var _0x598740;(_0x598740=_0x124953[_0x8a02ca(0xcf)])==null||_0x598740[_0x8a02ca(0x95)](),_0x124953['current']=null;}),[_0x24b40b,_0x2f4018]),_0x258c4e?(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x23d37f[_0x5d7654(0x10c)],{'align':_0x5d7654(0x93),'disabled':_0x256938===_0x5d7654(0x120),'className':_0x5d7654(0x108),'overlay':(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x4fb0b2,{'status':_0x256938,'coordinator':_0x258c4e}),'children':(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x5d7654(0xb6),{'className':(0x0,_0x23d37f['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x256938===_0x5d7654(0x120),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x256938!==_0x5d7654(0x120)}),'type':_0x5d7654(0xb6),'children':(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x2761b1,{'className':'univer-size-4'})})}):null;}function _0x4fb0b2(_0x119d1b){const _0xe274ee=_0x924102;let {status:_0x7b69de,coordinator:_0x3091e7}=_0x119d1b;switch(_0x7b69de){case _0xe274ee(0xa9):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x48ae08,{'coordinator':_0x3091e7});case _0xe274ee(0x79):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x3a3d52,{'coordinator':_0x3091e7});case _0xe274ee(0x112):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x2ac329,{'coordinator':_0x3091e7});case'offline':return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x5038cb,{});case _0xe274ee(0x117):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x31107b,{'coordinator':_0x3091e7});default:return null;}}function _0x48ae08(_0x50591){const _0x4b5379=_0x924102;let {coordinator:_0x3fa9f9}=_0x50591;return(0x0,_0x51b0f1[_0x4b5379(0x101)])(_0x51b0f1[_0x4b5379(0xd2)],{'children':[(0x0,_0x51b0f1[_0x4b5379(0xa1)])('div',{'className':_0x4b5379(0x133),'children':_0x4b5379(0xe2)}),(0x0,_0x51b0f1[_0x4b5379(0xa1)])(_0x23d37f[_0x4b5379(0xe7)],{'onClick':()=>_0x3fa9f9['tryStartPresenting'](),'children':_0x4b5379(0xa2)})]});}function _0x3a3d52(_0x1834d0){const _0x32f3d4=_0x924102;let {coordinator:_0x3e5323}=_0x1834d0;return(0x0,_0x51b0f1['jsxs'])(_0x51b0f1[_0x32f3d4(0xd2)],{'children':[(0x0,_0x51b0f1[_0x32f3d4(0xa1)])(_0x32f3d4(0xc1),{'className':_0x32f3d4(0x133),'children':_0x32f3d4(0x130)}),(0x0,_0x51b0f1[_0x32f3d4(0xa1)])(_0x23d37f['Button'],{'onClick':()=>_0x3e5323[_0x32f3d4(0x123)](),'children':_0x32f3d4(0x13e)})]});}function _0x2ac329(_0x8c4204){const _0x355eeb=_0x924102;let {coordinator:_0x1664be}=_0x8c4204;return(0x0,_0x51b0f1[_0x355eeb(0x101)])(_0x51b0f1[_0x355eeb(0xd2)],{'children':[(0x0,_0x51b0f1[_0x355eeb(0xa1)])(_0x355eeb(0xc1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x355eeb(0x7c)}),(0x0,_0x51b0f1['jsx'])(_0x23d37f[_0x355eeb(0xe7)],{'variant':'text','onClick':()=>_0x1664be[_0x355eeb(0xad)](),'children':_0x355eeb(0x147)})]});}function _0x31107b(_0x2fb9dd){const _0x3b748d=_0x924102;let {coordinator:_0x1b73b1}=_0x2fb9dd;return(0x0,_0x51b0f1[_0x3b748d(0x101)])(_0x51b0f1[_0x3b748d(0xd2)],{'children':[(0x0,_0x51b0f1[_0x3b748d(0xa1)])('div',{'className':_0x3b748d(0x133),'children':_0x3b748d(0x111)}),(0x0,_0x51b0f1[_0x3b748d(0xa1)])(_0x23d37f[_0x3b748d(0xe7)],{'variant':'default','onClick':()=>_0x1b73b1[_0x3b748d(0x142)](),'children':_0x3b748d(0xbc)})]});}function _0x5038cb(){const _0x20b225=_0x924102;return(0x0,_0x51b0f1[_0x20b225(0xa1)])(_0x51b0f1[_0x20b225(0xd2)],{'children':'You\x27are\x20offline.'});}let _0x10c363=class extends _0x3c016e['Disposable']{constructor(_0x5d3bb9,_0x5e1829){const _0x9fa777=_0x924102;super(),this[_0x9fa777(0x8f)]=_0x5d3bb9,this[_0x9fa777(0x153)]=_0x5e1829,this[_0x9fa777(0xdf)]();}[_0x924102(0xdf)](){const _0xac5113=_0x924102;this[_0xac5113(0x7e)](this[_0xac5113(0x153)][_0xac5113(0x15a)](_0x113560['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,_0x113560[_0xac5113(0x15b)])(_0x4a1d7b,this[_0xac5113(0x8f)])));}};_0x10c363=_0x3eb2da([_0x25d98d(0x0,(0x0,_0x3c016e[_0x924102(0xb1)])(_0x3c016e[_0x924102(0x7b)])),_0x25d98d(0x1,_0x113560['IUIPartsService'])],_0x10c363);var _0x43d756='@univerjs-pro/live-share',_0x4a54ab=_0x924102(0xdb);let _0x4139ca=_0x924102(0xd8);Symbol(_0x4139ca);let _0x480e7a={},_0x5db4e9=class extends _0x3c016e['Disposable']{constructor(_0x3710c3){const _0x31ef28=_0x924102;super(),this[_0x31ef28(0xf1)]=_0x3710c3,this[_0x31ef28(0x11d)]();}[_0x924102(0x11d)](){const _0xb06a5a=_0x924102;[_0x169f6f[_0xb06a5a(0x14d)]['id'],_0x169f6f[_0xb06a5a(0xe4)]['id'],_0x34724b[_0xb06a5a(0x14b)]['id']][_0xb06a5a(0xeb)](_0x150cbc=>{const _0xb085e1=_0xb06a5a;this[_0xb085e1(0x7e)](this[_0xb085e1(0xf1)][_0xb085e1(0x8b)](_0x150cbc));});}};_0x5db4e9=_0x3eb2da([_0x25d98d(0x0,(0x0,_0x3c016e['Inject'])(_0x3075f))],_0x5db4e9);let _0x52157e=class extends _0x3c016e[_0x924102(0xa4)]{constructor(_0x1f6f7=_0x480e7a,_0x2c18ec,_0x2f9a6a){const _0x1fb7e5=_0x924102;super(),this['_config']=_0x1f6f7,this[_0x1fb7e5(0x8f)]=_0x2c18ec,this['_configService']=_0x2f9a6a;let {..._0x240167}=(0x0,_0x3c016e[_0x1fb7e5(0xf6)])({},_0x480e7a,this[_0x1fb7e5(0xb5)]);this[_0x1fb7e5(0xc8)][_0x1fb7e5(0xb8)](_0x4139ca,_0x240167);}[_0x924102(0xa6)](){const _0x2653aa=_0x924102;(0x0,_0x3c016e[_0x2653aa(0x144)])(this['_injector'],(0x0,_0x3c016e['mergeOverrideWithDependencies'])([[_0x3075f],[_0x4924bc],[_0x5db4e9],[_0x10c363]],this[_0x2653aa(0xb5)][_0x2653aa(0x13d)])),(0x0,_0x3c016e[_0x2653aa(0x8c)])(this[_0x2653aa(0x8f)],[[_0x5db4e9]]);}[_0x924102(0x148)](){(0x0,_0x3c016e['touchDependencies'])(this['_injector'],[[_0x10c363]]);}};_0x31e8bf(_0x52157e,'type',_0x3c016e[_0x924102(0x7a)][_0x924102(0x10a)]),_0x31e8bf(_0x52157e,_0x924102(0xcb),_0x924102(0x149)),_0x31e8bf(_0x52157e,_0x924102(0x10b),_0x43d756),_0x31e8bf(_0x52157e,_0x924102(0xb2),_0x4a54ab),_0x52157e=_0x3eb2da([(0x0,_0x3c016e['DependentOn'])(_0x30522a[_0x924102(0xaa)]),_0x25d98d(0x1,(0x0,_0x3c016e[_0x924102(0xb1)])(_0x3c016e[_0x924102(0x7b)])),_0x25d98d(0x2,_0x3c016e[_0x924102(0x140)])],_0x52157e),Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0x11b),{'enumerable':!0x0,'get':function(){return _0x10c363;}}),_0x2f6fda[_0x924102(0x12f)]=_0x4a1d7b,Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0x156),{'enumerable':!0x0,'get':function(){return _0x4924bc;}}),Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0xea),{'enumerable':!0x0,'get':function(){return _0x5a421d;}}),_0x2f6fda[_0x924102(0x92)]=_0x3075f,_0x2f6fda[_0x924102(0xca)]=_0x375343,Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0x129),{'enumerable':!0x0,'get':function(){return _0x52157e;}});}));
1
+ function _0xbeb2(){const _0x3bfdb0=['Dropdown','UniverProCollaborationClient','UniverCollaborationClientPlugin','@univerjs/ui','amd','@univerjs/design','2111gVwhuO','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','mutations','connectInjector','IConfigService','defineProperty','@univerjs-pro/collaboration','IDLE','Inject','tryStartPresenting','_status','dispose$','children','getTypeOfUnitDisposed$','useState','BuiltInUIPart','data','jsxs','function','_presenter','currentColor','CommandType','DisposableCollection','UniverDesign','SAME_OPERATION_SHARE_INTERVAL','attrs','replace','disposeWithMe','symbol','createInstance','params','PRESENTING','idle','throttleTime','InsertSheetMutation','button','LIVESHARE_OPERATION','takeUntil','displayName','UniverSheets','presenter','getLiveShareCoordinatorSync','subject','has','call','UNIVER_SHEET','IUniverInstanceService','stopPresenting','UniverCore','onRendered','NEW_CHANGESETS','entries','sessionStatus$','set','onStarting','_commandDisposable','stringify','evenodd','Plugin','end','_uiPartsService','getLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','div','SetZoomRatioOperation','UniverInstanceType','_commandService','useRef','packageName','useEffect','getMemberID','svg','executeCommand','complete','Button','react/jsx-runtime','following','UniverProCollaboration','unitId','Subject','UniverSheetsUi','init','setConfig','merge','ICommandService','includes','getStatus','getOwnPropertyDescriptor','registerInitialStateReporter','_reporters','operations','5000364WLdpjI','delete','jsx','12626832dOjVvA','xlink:href','mergeOverrideWithDependencies','univer-mb-3\x20univer-w-full\x20univer-text-sm','default','UNIVER_UNKNOWN','1866HKqdOH','SessionStatus','path','pluginName','prototype','4385YEywIh','iterator','dispose','_fetchOperations','decorate','touchDependencies','_univerInstanceService','override','_collabSessionService','_config','url(#$1','_collabSession','createElement','assign','_handleOnline','map','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','@univerjs/core','@univerjs-pro/live-share','string','BehaviorSubject','text','_handleOffline','registerSharedOperation','_entities','_unitID','startFollowing','colorChannel1','You\x27are\x20offline.','CollaborationSessionService','11ssvonR','_init','CollaborationEvent','_status$','RxDisposable','_stopFollowing','type','live-share-icon','random','getUnitId','UniverUi','shouldShareOperation','univerjs-icon\x20univerjs-icon-','registerDependencies','toDisposable','Present\x20this\x20document','687siIeWz','not-following','subscribe','103327MNxOGd','_handleTerminate','DependentOn','toStringTag','LiveShare','object','unit','_sharedOperations','rxjs/operators','_injector','substring','UniverProLiveShare','getInitialStates','@univerjs/sheets-ui','SetWorksheetActiveOperation','750vUSMTP','current','UniverLiveSharePlugin','_mountLiveShare','_configService','presenting','Fragment','unsubscribe','LiveShareService','UniverIcon','clsx','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Injector','1em','pipe','rxjs','_stopPresenting','parseProtocolChangeset','488sTEuMa','Disposable','Start','_handleNewChangeSets','LIVESHARE_TERMINATE','useDependency','Start\x20following','getConfig','next','version','univer-size-4','add','values','fill','length','toString','_startPresenting','event$','constructor','tag','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','forEach','LiveShareCoordinator','IUIPartsService','forwardRef','Stop\x20presenting','defIds','13276Npxznl','NOT_FOLLOWING','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','DesktopLiveShareController','stroke','getTypeOfUnitAdded$','You\x27re\x20following\x20the\x20presenter','idSuffix','0\x200\x2017\x2017','_startLiveShareCoordinator','OFFLINE','React','1843090coKfDm','You\x27re\x20presenting\x20the\x20document','memberID','LIVESHARE_FETCH_OPERATIONS','HEADER_MENU','http://www.w3.org/2000/svg','mask','stopFollowing','requireSession','offline','get','send','defs','_startFollowing','_handleOperation','_handleNewHost','exports','OPERATION','useObservable','Module','_liveShareService'];_0xbeb2=function(){return _0x3bfdb0;};return _0xbeb2();}function _0x5269(_0x462f4f,_0x22ae94){_0x462f4f=_0x462f4f-0x133;const _0xbeb2c5=_0xbeb2();let _0x5269c4=_0xbeb2c5[_0x462f4f];return _0x5269c4;}(function(_0x40dec8,_0x1325e6){const _0x315778=_0x5269,_0x4f7465=_0x40dec8();while(!![]){try{const _0x1f871a=parseInt(_0x315778(0x17b))/0x1*(-parseInt(_0x315778(0x224))/0x2)+parseInt(_0x315778(0x212))/0x3*(-parseInt(_0x315778(0x153))/0x4)+parseInt(_0x315778(0x1e4))/0x5*(-parseInt(_0x315778(0x1df))/0x6)+parseInt(_0x315778(0x215))/0x7*(parseInt(_0x315778(0x138))/0x8)+parseInt(_0x315778(0x1d6))/0x9+-parseInt(_0x315778(0x160))/0xa*(parseInt(_0x315778(0x202))/0xb)+parseInt(_0x315778(0x1d9))/0xc;if(_0x1f871a===_0x1325e6)break;else _0x4f7465['push'](_0x4f7465['shift']());}catch(_0x4160c6){_0x4f7465['push'](_0x4f7465['shift']());}}}(_0xbeb2,0x79f41),function(_0x1285bf,_0x2eca6f){const _0xc27f9=_0x5269;typeof exports=='object'&&typeof module<'u'?_0x2eca6f(exports,require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0xc27f9(0x18d)&&define[_0xc27f9(0x179)]?define([_0xc27f9(0x170),_0xc27f9(0x1f5),_0xc27f9(0x178),_0xc27f9(0x17a),'react',_0xc27f9(0x181),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0xc27f9(0x135),_0xc27f9(0x21d),_0xc27f9(0x1c6),_0xc27f9(0x222)],_0x2eca6f):(_0x1285bf=typeof globalThis<'u'?globalThis:_0x1285bf||self,_0x2eca6f(_0x1285bf[_0xc27f9(0x220)]={},_0x1285bf[_0xc27f9(0x1ab)],_0x1285bf[_0xc27f9(0x20c)],_0x1285bf[_0xc27f9(0x192)],_0x1285bf[_0xc27f9(0x15f)],_0x1285bf[_0xc27f9(0x1c8)],_0x1285bf[_0xc27f9(0x176)],_0x1285bf[_0xc27f9(0x1a2)],_0x1285bf[_0xc27f9(0x135)],_0x1285bf[_0xc27f9(0x135)]['operators'],_0x1285bf[_0xc27f9(0x15f)],_0x1285bf[_0xc27f9(0x1cb)]));}(this,function(_0x4ccc28,_0x129647,_0x414395,_0x23e3d6,_0x5ee4f5,_0x11dd1d,_0xcebc87,_0x2ff080,_0x27d1ba,_0x5af51f,_0x360959,_0x465264){const _0x209801=_0x5269;Object[_0x209801(0x180)](_0x4ccc28,Symbol[_0x209801(0x218)],{'value':_0x209801(0x173)});function _0x19beaf({ref:_0x6e5c26,..._0x1b3fc8}){const _0x3a7bb4=_0x209801;let {icon:_0x230f07,id:_0x10917b,className:_0x302841,extend:_0x3a92cb,..._0x38b60c}=_0x1b3fc8,_0x27427d=(_0x3a7bb4(0x20e)+_0x10917b+'\x20'+(_0x302841||''))['trim'](),_0x38378e=(0x0,_0x5ee4f5[_0x3a7bb4(0x1be)])('_'+_0x499f74());return _0xd22e3f(_0x230f07,''+_0x10917b,{'defIds':_0x230f07[_0x3a7bb4(0x152)],'idSuffix':_0x38378e[_0x3a7bb4(0x225)]},{'ref':_0x6e5c26,'className':_0x27427d,..._0x38b60c},_0x3a92cb);}function _0xd22e3f(_0x23c3e1,_0x53ee47,_0x1403e7,_0x110147,_0x44af5e){const _0x597e75=_0x209801;return(0x0,_0x5ee4f5['createElement'])(_0x23c3e1[_0x597e75(0x14b)],{'key':_0x53ee47,..._0x3f3776(_0x23c3e1,_0x1403e7,_0x44af5e),..._0x110147},(_0x31b431(_0x23c3e1,_0x1403e7)[_0x597e75(0x187)]||[])[_0x597e75(0x1f3)]((_0xa3cd46,_0x690e16)=>_0xd22e3f(_0xa3cd46,_0x53ee47+'-'+_0x23c3e1[_0x597e75(0x14b)]+'-'+_0x690e16,_0x1403e7,void 0x0,_0x44af5e)));}function _0x3f3776(_0x490140,_0x3637bd,_0x68a7a9){const _0x5b2d0f=_0x209801;let _0x33deb3={..._0x490140[_0x5b2d0f(0x194)]};_0x68a7a9!=null&&_0x68a7a9[_0x5b2d0f(0x1ff)]&&_0x33deb3[_0x5b2d0f(0x145)]===_0x5b2d0f(0x1ff)&&(_0x33deb3['fill']=_0x68a7a9['colorChannel1']),_0x68a7a9!=null&&_0x68a7a9[_0x5b2d0f(0x1ff)]&&_0x33deb3[_0x5b2d0f(0x158)]===_0x5b2d0f(0x1ff)&&(_0x33deb3['stroke']=_0x68a7a9['colorChannel1']),_0x490140[_0x5b2d0f(0x14b)]==='mask'&&_0x33deb3['id']&&(_0x33deb3['id']+=_0x3637bd[_0x5b2d0f(0x15b)]),Object[_0x5b2d0f(0x1ae)](_0x33deb3)[_0x5b2d0f(0x14d)](([_0x5a8ad,_0x48fdfa])=>{const _0x50cc6f=_0x5b2d0f;_0x5a8ad===_0x50cc6f(0x166)&&typeof _0x48fdfa=='string'&&(_0x33deb3[_0x5a8ad]=_0x48fdfa[_0x50cc6f(0x195)](/url\(#(.*)\)/,'url(#$1'+_0x3637bd[_0x50cc6f(0x15b)]+')'));});let {defIds:_0x431a9c}=_0x3637bd;return!_0x431a9c||_0x431a9c['length']===0x0?_0x33deb3:(_0x490140['tag']==='use'&&_0x33deb3['xlink:href']&&(_0x33deb3[_0x5b2d0f(0x1da)]+=_0x3637bd[_0x5b2d0f(0x15b)]),Object[_0x5b2d0f(0x1ae)](_0x33deb3)[_0x5b2d0f(0x14d)](([_0x24d333,_0x59753c])=>{const _0x2b2482=_0x5b2d0f;typeof _0x59753c==_0x2b2482(0x1f7)&&(_0x33deb3[_0x24d333]=_0x59753c['replace'](/url\(#(.*)\)/,_0x2b2482(0x1ee)+_0x3637bd[_0x2b2482(0x15b)]+')'));}),_0x33deb3);}function _0x31b431(_0x3622b6,_0x442f12){const _0x18441=_0x209801;var _0x439bd7;let {defIds:_0x24b844}=_0x442f12;return!_0x24b844||_0x24b844['length']===0x0?_0x3622b6:_0x3622b6[_0x18441(0x14b)]===_0x18441(0x16c)&&(_0x439bd7=_0x3622b6[_0x18441(0x187)])!=null&&_0x439bd7[_0x18441(0x146)]?{..._0x3622b6,'children':_0x3622b6[_0x18441(0x187)]['map'](_0x7c6526=>typeof _0x7c6526['attrs']['id']==_0x18441(0x1f7)&&_0x24b844&&_0x24b844[_0x18441(0x1d0)](_0x7c6526['attrs']['id'])?{..._0x7c6526,'attrs':{..._0x7c6526['attrs'],'id':_0x7c6526[_0x18441(0x194)]['id']+_0x442f12['idSuffix']}}:_0x7c6526)}:_0x3622b6;}function _0x499f74(){const _0x18642f=_0x209801;return Math[_0x18642f(0x20a)]()[_0x18642f(0x147)](0x24)[_0x18642f(0x21f)](0x2,0x8);}_0x19beaf['displayName']=_0x209801(0x22d);let _0x153cd4={'tag':_0x209801(0x1c2),'attrs':{'xmlns':_0x209801(0x165),'fill':'none','viewBox':_0x209801(0x15c),'width':_0x209801(0x133),'height':'1em'},'children':[{'tag':_0x209801(0x1e1),'attrs':{'fill':_0x209801(0x18f),'d':_0x209801(0x1f4)}},{'tag':_0x209801(0x1e1),'attrs':{'fill':_0x209801(0x18f),'d':_0x209801(0x17c),'fillRule':_0x209801(0x1b4),'clipRule':_0x209801(0x1b4)}}]},_0x3883f6=(0x0,_0x5ee4f5[_0x209801(0x150)])(function(_0x304c24,_0x5d6d50){const _0x3c5573=_0x209801;return(0x0,_0x5ee4f5[_0x3c5573(0x1f0)])(_0x19beaf,Object[_0x3c5573(0x1f1)]({},_0x304c24,{'id':_0x3c5573(0x209),'ref':_0x5d6d50,'icon':_0x153cd4}));});_0x3883f6[_0x209801(0x1a1)]='LiveShareIcon';function _0x479794(_0x2f95e3){'@babel/helpers - typeof';const _0x53db10=_0x209801;return _0x479794=typeof Symbol==_0x53db10(0x18d)&&typeof Symbol[_0x53db10(0x1e5)]==_0x53db10(0x197)?function(_0x1a27a7){return typeof _0x1a27a7;}:function(_0xa877ca){const _0xde4333=_0x53db10;return _0xa877ca&&typeof Symbol=='function'&&_0xa877ca[_0xde4333(0x14a)]===Symbol&&_0xa877ca!==Symbol[_0xde4333(0x1e3)]?_0xde4333(0x197):typeof _0xa877ca;},_0x479794(_0x2f95e3);}function _0x16346e(_0x8c372b,_0x1c8749){const _0x560c3f=_0x209801;if(_0x479794(_0x8c372b)!=_0x560c3f(0x21a)||!_0x8c372b)return _0x8c372b;var _0xbbadbb=_0x8c372b[Symbol['toPrimitive']];if(_0xbbadbb!==void 0x0){var _0x55e7c2=_0xbbadbb[_0x560c3f(0x1a7)](_0x8c372b,_0x1c8749||_0x560c3f(0x1dd));if(_0x479794(_0x55e7c2)!=_0x560c3f(0x21a))return _0x55e7c2;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1c8749===_0x560c3f(0x1f7)?String:Number)(_0x8c372b);}function _0xa43167(_0x31736d){const _0x4b9585=_0x209801;var _0x211b7e=_0x16346e(_0x31736d,_0x4b9585(0x1f7));return _0x479794(_0x211b7e)==_0x4b9585(0x197)?_0x211b7e:_0x211b7e+'';}function _0x10d5fb(_0x265807,_0x548330,_0x42bd57){const _0x41d7ef=_0x209801;return(_0x548330=_0xa43167(_0x548330))in _0x265807?Object[_0x41d7ef(0x180)](_0x265807,_0x548330,{'value':_0x42bd57,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x265807[_0x548330]=_0x42bd57,_0x265807;}var _0x116b11=class extends _0x129647['Disposable']{constructor(..._0x10867c){const _0x5e9f3f=_0x209801;super(..._0x10867c),_0x10d5fb(this,_0x5e9f3f(0x21c),new Set()),_0x10d5fb(this,_0x5e9f3f(0x1d4),new Set());}[_0x209801(0x1fb)](_0x39f812){const _0x266782=_0x209801;return this['_sharedOperations'][_0x266782(0x143)](_0x39f812),(0x0,_0x129647['toDisposable'])(()=>this[_0x266782(0x21c)][_0x266782(0x1d7)](_0x39f812));}[_0x209801(0x1d3)](_0x49afb3){const _0x5b0897=_0x209801;return this[_0x5b0897(0x1d4)][_0x5b0897(0x143)](_0x49afb3),(0x0,_0x129647['toDisposable'])(()=>this['_reporters'][_0x5b0897(0x1d7)](_0x49afb3));}[_0x209801(0x20d)](_0xd3daaf){const _0x488520=_0x209801;return this['_sharedOperations'][_0x488520(0x1a6)](_0xd3daaf);}[_0x209801(0x221)](_0x58e6ac){const _0x4b17df=_0x209801;return Array['from'](this[_0x4b17df(0x1d4)])[_0x4b17df(0x1f3)](_0x1735bf=>_0x1735bf(_0x58e6ac));}};function _0x3a6810(_0x1aae6d,_0x2f0f82){return function(_0x2c9cb5,_0x364354){_0x2f0f82(_0x2c9cb5,_0x364354,_0x1aae6d);};}function _0x3438d8(_0x39db49,_0xd66d36,_0x59eb63,_0x4aeb1d){const _0x33aa88=_0x209801;var _0x3bc253=arguments[_0x33aa88(0x146)],_0x2e2192=_0x3bc253<0x3?_0xd66d36:_0x4aeb1d===null?_0x4aeb1d=Object[_0x33aa88(0x1d2)](_0xd66d36,_0x59eb63):_0x4aeb1d,_0x458738;if(typeof Reflect==_0x33aa88(0x21a)&&typeof Reflect[_0x33aa88(0x1e8)]==_0x33aa88(0x18d))_0x2e2192=Reflect['decorate'](_0x39db49,_0xd66d36,_0x59eb63,_0x4aeb1d);else{for(var _0x3c4376=_0x39db49[_0x33aa88(0x146)]-0x1;_0x3c4376>=0x0;_0x3c4376--)(_0x458738=_0x39db49[_0x3c4376])&&(_0x2e2192=(_0x3bc253<0x3?_0x458738(_0x2e2192):_0x3bc253>0x3?_0x458738(_0xd66d36,_0x59eb63,_0x2e2192):_0x458738(_0xd66d36,_0x59eb63))||_0x2e2192);}return _0x3bc253>0x3&&_0x2e2192&&Object[_0x33aa88(0x180)](_0xd66d36,_0x59eb63,_0x2e2192),_0x2e2192;}let _0x252b8d=class extends _0x129647['RxDisposable']{constructor(_0x1a3653,_0x4c781b,_0x345ad2){const _0x5a9330=_0x209801;super(),this[_0x5a9330(0x1ea)]=_0x1a3653,this[_0x5a9330(0x21e)]=_0x4c781b,this[_0x5a9330(0x1ec)]=_0x345ad2,_0x10d5fb(this,'_entities',new Map()),this[_0x5a9330(0x203)]();}async[_0x209801(0x1b8)](_0x2eecb5){const _0x370fd1=_0x209801;return this[_0x370fd1(0x1fc)][_0x370fd1(0x1a6)](_0x2eecb5)||await this['_startLiveShareCoordinator'](_0x2eecb5),this[_0x370fd1(0x1fc)][_0x370fd1(0x16a)](_0x2eecb5);}[_0x209801(0x1a4)](_0x48f214){const _0x2a46c5=_0x209801;var _0x535e33;return(_0x535e33=this[_0x2a46c5(0x1fc)][_0x2a46c5(0x16a)](_0x48f214))==null?null:_0x535e33;}['_init'](){const _0x3c9cbf=_0x209801;this[_0x3c9cbf(0x1ea)][_0x3c9cbf(0x159)](_0x129647[_0x3c9cbf(0x1bc)][_0x3c9cbf(0x1a8)])[_0x3c9cbf(0x134)]((0x0,_0x5af51f[_0x3c9cbf(0x1a0)])(this['dispose$']))[_0x3c9cbf(0x214)](async _0x4028e4=>{const _0x4007c7=_0x3c9cbf;let _0x8f2b90=_0x4028e4[_0x4007c7(0x21b)][_0x4007c7(0x20b)]();this['_entities']['has'](_0x8f2b90)||this[_0x4007c7(0x15d)](_0x8f2b90);}),this[_0x3c9cbf(0x1ea)][_0x3c9cbf(0x188)](_0x129647['UniverInstanceType'][_0x3c9cbf(0x1a8)])[_0x3c9cbf(0x134)]((0x0,_0x5af51f[_0x3c9cbf(0x1a0)])(this[_0x3c9cbf(0x186)]))[_0x3c9cbf(0x214)](_0x4fee87=>{const _0x3906df=_0x3c9cbf;let _0x2325b4=_0x4fee87[_0x3906df(0x20b)](),_0x3f7db8=this[_0x3906df(0x1fc)][_0x3906df(0x16a)](_0x2325b4);_0x3f7db8==null||_0x3f7db8[_0x3906df(0x1e6)]();});}async['_startLiveShareCoordinator'](_0x6ea1bb){const _0x12f71f=_0x209801;let _0x3a2a83=await this['_collabSessionService'][_0x12f71f(0x168)](_0x6ea1bb),_0x17a6a2=this['_injector'][_0x12f71f(0x198)](_0x2a4564,_0x6ea1bb,_0x3a2a83);return _0x17a6a2[_0x12f71f(0x1cc)](),this[_0x12f71f(0x1fc)][_0x12f71f(0x1b0)](_0x6ea1bb,_0x17a6a2),_0x17a6a2;}};_0x252b8d=_0x3438d8([_0x3a6810(0x0,_0x129647[_0x209801(0x1a9)]),_0x3a6810(0x1,(0x0,_0x129647[_0x209801(0x183)])(_0x129647[_0x209801(0x230)])),_0x3a6810(0x2,(0x0,_0x129647[_0x209801(0x183)])(_0xcebc87[_0x209801(0x201)]))],_0x252b8d);let _0x7845ce=function(_0x44ec9f){const _0x13a240=_0x209801;return _0x44ec9f[_0x13a240(0x15e)]=_0x13a240(0x169),_0x44ec9f[_0x13a240(0x182)]='idle',_0x44ec9f['FOLLOWING']='following',_0x44ec9f[_0x13a240(0x154)]=_0x13a240(0x213),_0x44ec9f[_0x13a240(0x19a)]='presenting',_0x44ec9f;}({}),_0x2a4564=class extends _0x129647[_0x209801(0x206)]{get[_0x209801(0x185)](){const _0x3b444a=_0x209801;return this[_0x3b444a(0x205)]['getValue']();}constructor(_0x160cb4,_0x46057c,_0x4eeca3,_0x4286f7,_0x5df7c7){const _0x163fa1=_0x209801;super(),this['_unitID']=_0x160cb4,this['_collabSession']=_0x46057c,this[_0x163fa1(0x228)]=_0x4eeca3,this['_liveShareService']=_0x4286f7,this[_0x163fa1(0x1bd)]=_0x5df7c7,_0x10d5fb(this,_0x163fa1(0x205),new _0x27d1ba[(_0x163fa1(0x1f8))](_0x163fa1(0x19b))),_0x10d5fb(this,'status$',this[_0x163fa1(0x205)]['asObservable']()),_0x10d5fb(this,_0x163fa1(0x203),!0x1),_0x10d5fb(this,_0x163fa1(0x1b2),null),_0x10d5fb(this,_0x163fa1(0x18e),null);}[_0x209801(0x1e6)](){const _0x4c691a=_0x209801;var _0x5555fe;(_0x5555fe=this[_0x4c691a(0x1b2)])==null||_0x5555fe[_0x4c691a(0x1e6)](),this[_0x4c691a(0x205)]['next']('idle'),this['_status$'][_0x4c691a(0x1c4)]();}[_0x209801(0x1d1)](){return this['_status'];}[_0x209801(0x1cc)](){const _0x50961e=_0x209801;this[_0x50961e(0x203)]||(this['_init']=!0x0,this[_0x50961e(0x1ef)][_0x50961e(0x1af)][_0x50961e(0x134)]((0x0,_0x5af51f['takeUntil'])(this[_0x50961e(0x186)]))[_0x50961e(0x214)](_0x40f5ee=>{const _0x4036bf=_0x50961e;switch(_0x40f5ee){case _0xcebc87[_0x4036bf(0x1e0)][_0x4036bf(0x15e)]:this[_0x4036bf(0x1fa)]();break;case _0xcebc87['SessionStatus']['ONLINE']:this[_0x4036bf(0x1f2)]();break;default:}}),this[_0x50961e(0x1ef)][_0x50961e(0x149)]['pipe']((0x0,_0x5af51f[_0x50961e(0x1a0)])(this[_0x50961e(0x186)]))['subscribe'](_0x529625=>{const _0x1088b7=_0x50961e;let {eventID:_0x13f657}=_0x529625;switch(_0x13f657){case _0x11dd1d[_0x1088b7(0x204)]['LIVESHARE_NEW_HOST']:this[_0x1088b7(0x16f)](_0x529625);break;case _0x11dd1d['CollaborationEvent'][_0x1088b7(0x19f)]:this['_handleOperation'](_0x529625);break;case _0x11dd1d[_0x1088b7(0x204)]['LIVESHARE_TERMINATE']:this[_0x1088b7(0x216)]();break;case _0x11dd1d['CollaborationEvent'][_0x1088b7(0x1ad)]:this[_0x1088b7(0x13b)](_0x529625);break;default:}}));}[_0x209801(0x184)](){const _0x4aca84=_0x209801;this[_0x4aca84(0x1ef)][_0x4aca84(0x16b)]({'eventID':_0x11dd1d[_0x4aca84(0x204)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4aca84(0x1fd)],'userID':this['_collabSession']['getMemberID']()}},this[_0x4aca84(0x1fd)]);}[_0x209801(0x1aa)](){const _0x400fc2=_0x209801;this[_0x400fc2(0x185)]===_0x400fc2(0x229)&&(this[_0x400fc2(0x205)][_0x400fc2(0x140)](_0x400fc2(0x19b)),this[_0x400fc2(0x1ef)][_0x400fc2(0x16b)]({'eventID':_0x11dd1d[_0x400fc2(0x204)][_0x400fc2(0x13c)],'data':{'unitID':this[_0x400fc2(0x1fd)]}},this['_unitID']));}['startFollowing'](){const _0x1be301=_0x209801;this[_0x1be301(0x185)]===_0x1be301(0x213)&&(this[_0x1be301(0x205)][_0x1be301(0x140)]('following'),this[_0x1be301(0x16d)]());}[_0x209801(0x167)](){const _0x50f8be=_0x209801;this[_0x50f8be(0x185)]==='following'&&this[_0x50f8be(0x207)]();}[_0x209801(0x16f)](_0x24fc7f){const _0x3ef88b=_0x209801;let {presenter:_0x526e6d}=_0x24fc7f[_0x3ef88b(0x18b)],_0x4e9941=this['_collabSession'][_0x3ef88b(0x1c1)]();this[_0x3ef88b(0x18e)]=_0x526e6d,_0x526e6d===_0x4e9941?(this[_0x3ef88b(0x207)](),this[_0x3ef88b(0x148)]()):this[_0x3ef88b(0x185)]!==_0x3ef88b(0x213)&&(this[_0x3ef88b(0x136)](),this['_startFollowing']());}[_0x209801(0x1e7)](){const _0x2699f5=_0x209801;let _0x556502={'eventID':_0x11dd1d['CollaborationEvent'][_0x2699f5(0x163)]};this[_0x2699f5(0x1ef)][_0x2699f5(0x16b)](_0x556502,this['_unitID']);}[_0x209801(0x216)](){const _0x3037fd=_0x209801;this[_0x3037fd(0x18e)]=null,this[_0x3037fd(0x185)]!==_0x3037fd(0x229)&&this['_beIdle']();}[_0x209801(0x13b)](_0x2a5c6c){const _0x14ea32=_0x209801;if(this[_0x14ea32(0x185)]===_0x14ea32(0x1c7)&&this[_0x14ea32(0x18e)]===_0x2a5c6c[_0x14ea32(0x18b)][_0x14ea32(0x162)]){let _0x17ef25=(0x0,_0x11dd1d[_0x14ea32(0x137)])(_0x2a5c6c['data'])[_0x14ea32(0x17d)]['reverse']()['find'](_0x4902ea=>_0x4902ea['id']===_0x2ff080[_0x14ea32(0x19d)]['id']);if(_0x17ef25){let _0x4a9426=_0x17ef25[_0x14ea32(0x199)][_0x14ea32(0x1c9)],_0x6582bd=_0x17ef25[_0x14ea32(0x199)]['sheet']['id'];setTimeout(()=>{const _0x3ac248=_0x14ea32;this[_0x3ac248(0x1bd)][_0x3ac248(0x1c3)](_0x2ff080[_0x3ac248(0x223)]['id'],{'unitId':_0x4a9426,'subUnitId':_0x6582bd},{'fromCollab':!0x0});});}}}[_0x209801(0x148)](){const _0x14bb0c=_0x209801;var _0x2b2f99;(_0x2b2f99=this[_0x14bb0c(0x1b2)])==null||_0x2b2f99[_0x14bb0c(0x1e6)](),this[_0x14bb0c(0x205)][_0x14bb0c(0x140)](_0x14bb0c(0x229));let _0x26b796=new Map(),_0x19f84c=this['_commandDisposable']=new _0x129647[(_0x14bb0c(0x191))]();_0x19f84c[_0x14bb0c(0x143)]((0x0,_0x129647[_0x14bb0c(0x210)])(()=>{_0x26b796['forEach'](({subject:_0xba25c1,subscription:_0x173d81})=>{const _0xf290c5=_0x5269;_0x173d81[_0xf290c5(0x22b)](),_0xba25c1[_0xf290c5(0x1c4)]();}),_0x26b796['clear']();})),_0x19f84c[_0x14bb0c(0x143)](this[_0x14bb0c(0x1bd)][_0x14bb0c(0x155)](_0xdd07d8=>{const _0x1420ff=_0x14bb0c;if(_0xdd07d8['type']!==_0x129647[_0x1420ff(0x190)][_0x1420ff(0x171)]||!this[_0x1420ff(0x174)][_0x1420ff(0x20d)](_0xdd07d8['id']))return;let {id:_0x330347}=_0xdd07d8,_0x2ff2a4;if(_0x26b796[_0x1420ff(0x1a6)](_0x330347))_0x2ff2a4=_0x26b796['get'](_0x330347)[_0x1420ff(0x1a5)];else{var _0x3f1f8a;_0x2ff2a4=new _0x27d1ba[(_0x1420ff(0x1ca))]();let _0xb96977=_0x2ff2a4[_0x1420ff(0x134)]((0x0,_0x5af51f[_0x1420ff(0x19c)])((_0x3f1f8a=this[_0x1420ff(0x228)][_0x1420ff(0x13f)](_0x1420ff(0x193)))==null?0xc8:_0x3f1f8a,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1420ff(0x214)](_0x2627c2=>{const _0x20f423=_0x1420ff;this[_0x20f423(0x1ef)][_0x20f423(0x16b)]({'eventID':_0x11dd1d[_0x20f423(0x204)][_0x20f423(0x19f)],'data':{'unitID':this['_unitID'],'operations':{[_0x2627c2['id']]:{'id':_0x2627c2['id'],'params':JSON[_0x20f423(0x1b3)](_0x2627c2[_0x20f423(0x199)])}}}},this[_0x20f423(0x1fd)]);});_0x26b796[_0x1420ff(0x1b0)](_0x330347,{'subject':_0x2ff2a4,'subscription':_0xb96977});}_0x2ff2a4[_0x1420ff(0x140)](_0xdd07d8);})),this[_0x14bb0c(0x174)]['getInitialStates'](this[_0x14bb0c(0x1fd)])[_0x14bb0c(0x14d)](_0x5682be=>this[_0x14bb0c(0x1ef)]['send']({'eventID':_0x11dd1d[_0x14bb0c(0x204)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x14bb0c(0x1fd)],'operations':{[_0x5682be['id']]:{'id':_0x5682be['id'],'params':JSON[_0x14bb0c(0x1b3)](_0x5682be[_0x14bb0c(0x199)])}}}},this[_0x14bb0c(0x1fd)]));}[_0x209801(0x136)](){const _0x9bbd8f=_0x209801;var _0x195c73;this[_0x9bbd8f(0x205)]['next']('idle'),(_0x195c73=this[_0x9bbd8f(0x1b2)])==null||_0x195c73[_0x9bbd8f(0x1e6)](),this[_0x9bbd8f(0x1b2)]=null;}[_0x209801(0x16d)](){const _0x2d109e=_0x209801;var _0x48cb8f;(_0x48cb8f=this[_0x2d109e(0x1b2)])==null||_0x48cb8f[_0x2d109e(0x1e6)](),this[_0x2d109e(0x205)][_0x2d109e(0x140)](_0x2d109e(0x1c7));}['_beIdle'](){const _0x44725f=_0x209801;var _0x1e9074;this[_0x44725f(0x205)]['next'](_0x44725f(0x19b)),(_0x1e9074=this[_0x44725f(0x1b2)])==null||_0x1e9074['dispose'](),this[_0x44725f(0x1b2)]=null;}[_0x209801(0x207)](){const _0x1d19e7=_0x209801;var _0x564943;this[_0x1d19e7(0x205)][_0x1d19e7(0x140)](_0x1d19e7(0x213)),(_0x564943=this[_0x1d19e7(0x1b2)])==null||_0x564943['dispose']();}[_0x209801(0x16e)](_0x49c45b){const _0x5f086c=_0x209801;if([_0x5f086c(0x229),'not-following','offline']['includes'](this[_0x5f086c(0x185)])||!_0x49c45b[_0x5f086c(0x18b)][_0x5f086c(0x1a3)]||_0x49c45b[_0x5f086c(0x18b)][_0x5f086c(0x1a3)]===this[_0x5f086c(0x1ef)][_0x5f086c(0x1c1)]())return;this[_0x5f086c(0x185)]===_0x5f086c(0x19b)&&this[_0x5f086c(0x16d)]();let _0x3e413e=_0x49c45b[_0x5f086c(0x18b)][_0x5f086c(0x1d5)];Object[_0x5f086c(0x144)](_0x3e413e)['forEach'](_0x2c0ac0=>{const _0xd02d2a=_0x5f086c;this[_0xd02d2a(0x1bd)][_0xd02d2a(0x1c3)](_0x2c0ac0['id'],_0x2c0ac0[_0xd02d2a(0x199)]?JSON['parse'](_0x2c0ac0[_0xd02d2a(0x199)]):null,{'fromCollab':!0x0});});}[_0x209801(0x1fa)](){const _0x1ad9b7=_0x209801;var _0x562167;this[_0x1ad9b7(0x205)]['next'](_0x1ad9b7(0x169)),(_0x562167=this[_0x1ad9b7(0x1b2)])==null||_0x562167[_0x1ad9b7(0x1e6)]();}[_0x209801(0x1f2)](){const _0x654826=_0x209801;this[_0x654826(0x205)][_0x654826(0x140)](_0x654826(0x19b)),this[_0x654826(0x1e7)]();}};_0x2a4564=_0x3438d8([_0x3a6810(0x2,_0x129647[_0x209801(0x17f)]),_0x3a6810(0x3,(0x0,_0x129647[_0x209801(0x183)])(_0x116b11)),_0x3a6810(0x4,_0x129647[_0x209801(0x1cf)])],_0x2a4564);function _0x1d436c(){const _0x39a6d5=_0x209801;let _0x1e0bcc=(0x0,_0x414395['useDependency'])(_0x252b8d),_0x2f0b4e=(0x0,_0x414395[_0x39a6d5(0x13d)])(_0x129647[_0x39a6d5(0x1a9)]),_0x5c4d17=(0x0,_0x414395[_0x39a6d5(0x172)])(()=>_0x2f0b4e['getCurrentTypeOfUnit$'](_0x129647[_0x39a6d5(0x1bc)][_0x39a6d5(0x1a8)]),void 0x0,!0x1,[]),[_0x3af051,_0x2c23d4]=(0x0,_0x5ee4f5[_0x39a6d5(0x189)])(null),[_0x20d27a,_0x5dcf65]=(0x0,_0x5ee4f5['useState'])(_0x39a6d5(0x19b)),_0x30a94c=(0x0,_0x5ee4f5['useRef'])(null);return(0x0,_0x5ee4f5[_0x39a6d5(0x1c0)])(()=>(_0x5c4d17&&_0x1e0bcc[_0x39a6d5(0x1b8)](_0x5c4d17[_0x39a6d5(0x20b)]())['then'](_0x2aca3e=>{const _0x4d374b=_0x39a6d5;_0x2c23d4(_0x2aca3e),_0x30a94c[_0x4d374b(0x225)]=_0x2aca3e['status$']['subscribe'](_0xd68496=>{_0x5dcf65(_0xd68496);});}),()=>{const _0x10fe52=_0x39a6d5;var _0x3fe0e8;(_0x3fe0e8=_0x30a94c[_0x10fe52(0x225)])==null||_0x3fe0e8['unsubscribe'](),_0x30a94c['current']=null;}),[_0x5c4d17,_0x1e0bcc]),_0x3af051?(0x0,_0x360959['jsx'])(_0x23e3d6[_0x39a6d5(0x175)],{'align':_0x39a6d5(0x1b6),'disabled':_0x20d27a===_0x39a6d5(0x169),'className':_0x39a6d5(0x14c),'overlay':(0x0,_0x360959['jsx'])(_0x55cc88,{'status':_0x20d27a,'coordinator':_0x3af051}),'children':(0x0,_0x360959[_0x39a6d5(0x1d8)])(_0x39a6d5(0x19e),{'className':(0x0,_0x23e3d6[_0x39a6d5(0x22e)])(_0x39a6d5(0x22f),{'univer-cursor-not-allowed':_0x20d27a===_0x39a6d5(0x169),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20d27a!==_0x39a6d5(0x169)}),'type':_0x39a6d5(0x19e),'children':(0x0,_0x360959['jsx'])(_0x3883f6,{'className':_0x39a6d5(0x142)})})}):null;}function _0x55cc88(_0x34f0c0){const _0x3e964c=_0x209801;let {status:_0x540669,coordinator:_0x470681}=_0x34f0c0;switch(_0x540669){case _0x3e964c(0x19b):return(0x0,_0x360959[_0x3e964c(0x1d8)])(_0x5d91cf,{'coordinator':_0x470681});case _0x3e964c(0x1c7):return(0x0,_0x360959[_0x3e964c(0x1d8)])(_0xcec765,{'coordinator':_0x470681});case'not-following':return(0x0,_0x360959[_0x3e964c(0x1d8)])(_0x5ec95e,{'coordinator':_0x470681});case _0x3e964c(0x169):return(0x0,_0x360959[_0x3e964c(0x1d8)])(_0x56b615,{});case'presenting':return(0x0,_0x360959[_0x3e964c(0x1d8)])(_0x2c5c52,{'coordinator':_0x470681});default:return null;}}function _0x5d91cf(_0xc20916){const _0x1f6326=_0x209801;let {coordinator:_0xf6044c}=_0xc20916;return(0x0,_0x360959[_0x1f6326(0x18c)])(_0x360959[_0x1f6326(0x22a)],{'children':[(0x0,_0x360959[_0x1f6326(0x1d8)])(_0x1f6326(0x1ba),{'className':_0x1f6326(0x1dc),'children':_0x1f6326(0x211)}),(0x0,_0x360959[_0x1f6326(0x1d8)])(_0x23e3d6[_0x1f6326(0x1c5)],{'onClick':()=>_0xf6044c[_0x1f6326(0x184)](),'children':_0x1f6326(0x13a)})]});}function _0xcec765(_0x3db777){const _0x67840e=_0x209801;let {coordinator:_0x46dbe8}=_0x3db777;return(0x0,_0x360959['jsxs'])(_0x360959[_0x67840e(0x22a)],{'children':[(0x0,_0x360959['jsx'])(_0x67840e(0x1ba),{'className':_0x67840e(0x1dc),'children':_0x67840e(0x15a)}),(0x0,_0x360959[_0x67840e(0x1d8)])(_0x23e3d6[_0x67840e(0x1c5)],{'onClick':()=>_0x46dbe8[_0x67840e(0x167)](),'children':'Stop\x20following'})]});}function _0x5ec95e(_0xd1ae0b){const _0x24d417=_0x209801;let {coordinator:_0x5e4990}=_0xd1ae0b;return(0x0,_0x360959[_0x24d417(0x18c)])(_0x360959[_0x24d417(0x22a)],{'children':[(0x0,_0x360959[_0x24d417(0x1d8)])(_0x24d417(0x1ba),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x24d417(0x156)}),(0x0,_0x360959['jsx'])(_0x23e3d6[_0x24d417(0x1c5)],{'variant':_0x24d417(0x1f9),'onClick':()=>_0x5e4990[_0x24d417(0x1fe)](),'children':_0x24d417(0x13e)})]});}function _0x2c5c52(_0x713f77){const _0x2f6314=_0x209801;let {coordinator:_0x5f2771}=_0x713f77;return(0x0,_0x360959[_0x2f6314(0x18c)])(_0x360959[_0x2f6314(0x22a)],{'children':[(0x0,_0x360959[_0x2f6314(0x1d8)])(_0x2f6314(0x1ba),{'className':_0x2f6314(0x1dc),'children':_0x2f6314(0x161)}),(0x0,_0x360959[_0x2f6314(0x1d8)])(_0x23e3d6[_0x2f6314(0x1c5)],{'variant':_0x2f6314(0x1dd),'onClick':()=>_0x5f2771[_0x2f6314(0x1aa)](),'children':_0x2f6314(0x151)})]});}function _0x56b615(){const _0x22de9b=_0x209801;return(0x0,_0x360959['jsx'])(_0x360959[_0x22de9b(0x22a)],{'children':_0x22de9b(0x200)});}let _0x52c68a=class extends _0x129647[_0x209801(0x139)]{constructor(_0x394712,_0x41285e){const _0x112c68=_0x209801;super(),this[_0x112c68(0x21e)]=_0x394712,this[_0x112c68(0x1b7)]=_0x41285e,this['_mountLiveShare']();}[_0x209801(0x227)](){const _0x1d73f5=_0x209801;this[_0x1d73f5(0x196)](this[_0x1d73f5(0x1b7)]['registerComponent'](_0x414395[_0x1d73f5(0x18a)][_0x1d73f5(0x164)],()=>(0x0,_0x414395[_0x1d73f5(0x17e)])(_0x1d436c,this[_0x1d73f5(0x21e)])));}};_0x52c68a=_0x3438d8([_0x3a6810(0x0,(0x0,_0x129647[_0x209801(0x183)])(_0x129647[_0x209801(0x230)])),_0x3a6810(0x1,_0x414395[_0x209801(0x14f)])],_0x52c68a);var _0x2fec41=_0x209801(0x1f6),_0x1615fc='0.25.0-insiders.20260608-e4336f7';let _0x448b09={},_0x1c34ca=class extends _0x129647[_0x209801(0x139)]{constructor(_0x40d58c){const _0x3b787a=_0x209801;super(),this[_0x3b787a(0x174)]=_0x40d58c,this[_0x3b787a(0x203)]();}[_0x209801(0x203)](){const _0xc02053=_0x209801;[_0x465264[_0xc02053(0x1bb)]['id'],_0x465264['SetScrollOperation']['id'],_0x2ff080[_0xc02053(0x223)]['id']][_0xc02053(0x14d)](_0x131855=>{const _0x3cb18b=_0xc02053;this[_0x3cb18b(0x196)](this[_0x3cb18b(0x174)]['registerSharedOperation'](_0x131855));});}};_0x1c34ca=_0x3438d8([_0x3a6810(0x0,(0x0,_0x129647[_0x209801(0x183)])(_0x116b11))],_0x1c34ca);let _0x43d4f6=class extends _0x129647[_0x209801(0x1b5)]{constructor(_0x459afc=_0x448b09,_0x576009,_0x122d53){const _0x5a6fd7=_0x209801;super(),this['_config']=_0x459afc,this[_0x5a6fd7(0x21e)]=_0x576009,this[_0x5a6fd7(0x228)]=_0x122d53;let {..._0x29f125}=(0x0,_0x129647[_0x5a6fd7(0x1ce)])({},_0x448b09,this[_0x5a6fd7(0x1ed)]);this[_0x5a6fd7(0x228)][_0x5a6fd7(0x1cd)]('live-share.config',_0x29f125);}[_0x209801(0x1b1)](){const _0x25a052=_0x209801;(0x0,_0x129647[_0x25a052(0x20f)])(this[_0x25a052(0x21e)],(0x0,_0x129647[_0x25a052(0x1db)])([[_0x116b11],[_0x252b8d],[_0x1c34ca],[_0x52c68a]],this['_config'][_0x25a052(0x1eb)])),(0x0,_0x129647[_0x25a052(0x1e9)])(this[_0x25a052(0x21e)],[[_0x1c34ca]]);}[_0x209801(0x1ac)](){const _0x1b1ed1=_0x209801;(0x0,_0x129647[_0x1b1ed1(0x1e9)])(this[_0x1b1ed1(0x21e)],[[_0x52c68a]]);}};_0x10d5fb(_0x43d4f6,_0x209801(0x208),_0x129647[_0x209801(0x1bc)][_0x209801(0x1de)]),_0x10d5fb(_0x43d4f6,_0x209801(0x1e2),_0x209801(0x1b9)),_0x10d5fb(_0x43d4f6,_0x209801(0x1bf),_0x2fec41),_0x10d5fb(_0x43d4f6,_0x209801(0x141),_0x1615fc),_0x43d4f6=_0x3438d8([(0x0,_0x129647[_0x209801(0x217)])(_0xcebc87[_0x209801(0x177)]),_0x3a6810(0x1,(0x0,_0x129647[_0x209801(0x183)])(_0x129647[_0x209801(0x230)])),_0x3a6810(0x2,_0x129647[_0x209801(0x17f)])],_0x43d4f6),Object['defineProperty'](_0x4ccc28,_0x209801(0x157),{'enumerable':!0x0,'get':function(){return _0x52c68a;}}),_0x4ccc28[_0x209801(0x219)]=_0x1d436c,Object[_0x209801(0x180)](_0x4ccc28,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x252b8d;}}),Object[_0x209801(0x180)](_0x4ccc28,_0x209801(0x14e),{'enumerable':!0x0,'get':function(){return _0x2a4564;}}),_0x4ccc28[_0x209801(0x22c)]=_0x116b11,_0x4ccc28['LiveShareStatus']=_0x7845ce,Object['defineProperty'](_0x4ccc28,_0x209801(0x226),{'enumerable':!0x0,'get':function(){return _0x43d4f6;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.24.0",
3
+ "version": "0.25.0-insiders.20260608-e4336f7",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -62,24 +62,24 @@
62
62
  "rxjs": ">=7.0.0"
63
63
  },
64
64
  "dependencies": {
65
- "@univerjs/icons": "1.4.0",
66
- "@univerjs-pro/collaboration": "0.24.0",
67
- "@univerjs-pro/collaboration-client": "0.24.0",
68
- "@univerjs/core": "0.24.0",
69
- "@univerjs/sheets-ui": "0.24.0",
70
- "@univerjs/design": "0.24.0",
71
- "@univerjs/sheets": "0.24.0",
72
- "@univerjs/ui": "0.24.0"
65
+ "@univerjs/icons": "1.8.0",
66
+ "@univerjs-pro/collaboration-client": "0.25.0-insiders.20260608-e4336f7",
67
+ "@univerjs/core": "0.25.0-insiders.20260608-e4336f7",
68
+ "@univerjs-pro/collaboration": "0.25.0-insiders.20260608-e4336f7",
69
+ "@univerjs/sheets": "0.25.0-insiders.20260608-e4336f7",
70
+ "@univerjs/design": "0.25.0-insiders.20260608-e4336f7",
71
+ "@univerjs/sheets-ui": "0.25.0-insiders.20260608-e4336f7",
72
+ "@univerjs/ui": "0.25.0-insiders.20260608-e4336f7"
73
73
  },
74
74
  "devDependencies": {
75
- "postcss": "^8.5.14",
75
+ "postcss": "^8.5.15",
76
76
  "react": "18.3.1",
77
77
  "rxjs": "7.8.2",
78
- "tailwindcss": "^3.4.17",
78
+ "tailwindcss": "3.4.17",
79
79
  "typescript": "^6.0.3",
80
- "vitest": "^4.1.6",
81
- "@univerjs-infra/shared": "0.24.0",
82
- "@univerjs/protocol": "0.24.0"
80
+ "vitest": "^4.1.8",
81
+ "@univerjs-infra/shared": "0.25.0",
82
+ "@univerjs/protocol": "0.25.0-insiders.20260608-e4336f7"
83
83
  },
84
84
  "scripts": {
85
85
  "test": "vitest run",