@univerjs-pro/live-share 1.0.0-alpha.0 → 1.0.0-alpha.1

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 _0x96369b=_0x46c8;(function(_0x479277,_0x3fad50){const _0xa55377=_0x46c8,_0x1a73c8=_0x479277();while(!![]){try{const _0xacf3ba=-parseInt(_0xa55377(0x1f2))/0x1+-parseInt(_0xa55377(0x1e7))/0x2*(parseInt(_0xa55377(0x1e8))/0x3)+parseInt(_0xa55377(0x1ee))/0x4+parseInt(_0xa55377(0x1d3))/0x5+parseInt(_0xa55377(0x1df))/0x6+parseInt(_0xa55377(0x1e5))/0x7+parseInt(_0xa55377(0x1e4))/0x8;if(_0xacf3ba===_0x3fad50)break;else _0x1a73c8['push'](_0x1a73c8['shift']());}catch(_0x196807){_0x1a73c8['push'](_0x1a73c8['shift']());}}}(_0x1986,0xd0ae3));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x2b948f){'@babel/helpers - typeof';const _0x8f14cf=_0x46c8;return r=typeof Symbol==_0x8f14cf(0x1dd)&&typeof Symbol[_0x8f14cf(0x1e3)]=='symbol'?function(_0x41f6df){return typeof _0x41f6df;}:function(_0x16379e){const _0x19d0d6=_0x8f14cf;return _0x16379e&&typeof Symbol=='function'&&_0x16379e[_0x19d0d6(0x1dc)]===Symbol&&_0x16379e!==Symbol[_0x19d0d6(0x1cd)]?_0x19d0d6(0x1ea):typeof _0x16379e;},r(_0x2b948f);}function i(_0x459053,_0x5e051a){const _0x54c99e=_0x46c8;if(r(_0x459053)!=_0x54c99e(0x1e1)||!_0x459053)return _0x459053;var _0x2aed6d=_0x459053[Symbol[_0x54c99e(0x1f0)]];if(_0x2aed6d!==void 0x0){var _0x39b6b7=_0x2aed6d['call'](_0x459053,_0x5e051a||_0x54c99e(0x1e9));if(r(_0x39b6b7)!='object')return _0x39b6b7;throw TypeError(_0x54c99e(0x1d0));}return(_0x5e051a===_0x54c99e(0x1d2)?String:Number)(_0x459053);}function a(_0x2e2c53){const _0x3f4293=_0x46c8;var _0x160b73=i(_0x2e2c53,_0x3f4293(0x1d2));return r(_0x160b73)=='symbol'?_0x160b73:_0x160b73+'';}function _0x46c8(_0x566beb,_0x20d703){_0x566beb=_0x566beb-0x1c8;const _0x1986b0=_0x1986();let _0x46c8ec=_0x1986b0[_0x566beb];return _0x46c8ec;}function o(_0x39383f,_0x5b154b,_0x2919de){const _0x11683d=_0x46c8;return(_0x5b154b=a(_0x5b154b))in _0x39383f?Object[_0x11683d(0x1e6)](_0x39383f,_0x5b154b,{'value':_0x2919de,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39383f[_0x5b154b]=_0x2919de,_0x39383f;}var s=class extends n[_0x96369b(0x1ca)]{constructor(..._0x56afb2){const _0x15e4ef=_0x96369b;super(..._0x56afb2),o(this,_0x15e4ef(0x1d7),void 0x0);}[_0x96369b(0x1db)](_0x51d03e){const _0x1cd697=_0x96369b;this['_liveShareController']=_0x51d03e[_0x1cd697(0x1cf)](e[_0x1cd697(0x1ef)]);}[_0x96369b(0x1cc)](){const _0x15b57d=_0x96369b;var _0x40bbec;let _0x6aef9=this[_0x15b57d(0x1d6)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0x6aef9)throw Error(_0x15b57d(0x1ed));let _0x4096b5=_0x6aef9['getUnitId'](),_0xdb4c82=this[_0x15b57d(0x1d7)][_0x15b57d(0x1d8)](_0x4096b5);return(_0x40bbec=_0xdb4c82==null?void 0x0:_0xdb4c82[_0x15b57d(0x1d5)]())==null?e[_0x15b57d(0x1da)][_0x15b57d(0x1eb)]:_0x40bbec;}['startFollowing'](){const _0x227abe=_0x96369b;let _0x17627f=this['_injector']['get'](t[_0x227abe(0x1f1)])[_0x227abe(0x1ec)](t['UniverInstanceType'][_0x227abe(0x1de)]);if(!_0x17627f)throw Error(_0x227abe(0x1ed));let _0x1d3b34=_0x17627f['getUnitId'](),_0x4d7ecc=this[_0x227abe(0x1d7)][_0x227abe(0x1d8)](_0x1d3b34);if(!_0x4d7ecc)throw Error(_0x227abe(0x1e0));_0x4d7ecc['startFollowing']();}[_0x96369b(0x1cb)](){const _0x5912a8=_0x96369b;let _0x3579b8=this[_0x5912a8(0x1d6)]['get'](t[_0x5912a8(0x1f1)])[_0x5912a8(0x1ec)](t[_0x5912a8(0x1c9)][_0x5912a8(0x1de)]);if(!_0x3579b8)throw Error('No\x20active\x20workbook\x20found.');let _0x2b8901=_0x3579b8[_0x5912a8(0x1d9)](),_0x298d7c=this[_0x5912a8(0x1d7)]['getLiveShareCoordinatorSync'](_0x2b8901);if(!_0x298d7c)throw Error(_0x5912a8(0x1e0));_0x298d7c[_0x5912a8(0x1cb)]();}['startPresenting'](){const _0x144840=_0x96369b;let _0x102b9c=this[_0x144840(0x1d6)][_0x144840(0x1cf)](t[_0x144840(0x1f1)])['getCurrentUnitOfType'](t[_0x144840(0x1c9)][_0x144840(0x1de)]);if(!_0x102b9c)throw Error('No\x20active\x20workbook\x20found.');let _0x90e10b=_0x102b9c[_0x144840(0x1d9)](),_0x481588=this[_0x144840(0x1d7)]['getLiveShareCoordinatorSync'](_0x90e10b);if(!_0x481588)throw Error(_0x144840(0x1e0));_0x481588[_0x144840(0x1d4)]();}[_0x96369b(0x1c8)](){const _0x3c7334=_0x96369b;let _0x14133a=this[_0x3c7334(0x1d6)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x3c7334(0x1de)]);if(!_0x14133a)throw Error(_0x3c7334(0x1ed));let _0x54a0d4=_0x14133a[_0x3c7334(0x1d9)](),_0x24df41=this['_liveShareController'][_0x3c7334(0x1d8)](_0x54a0d4);if(!_0x24df41)throw Error(_0x3c7334(0x1e0));_0x24df41['stopPresenting']();}};function _0x1986(){const _0x31a983=['default','symbol','IDLE','getCurrentUnitOfType','No\x20active\x20workbook\x20found.','395148cHNHJw','LiveShareController','toPrimitive','IUniverInstanceService','684009wmAHhg','stopPresenting','UniverInstanceType','FUniver','stopFollowing','getLiveShareStatus','prototype','FEnum','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','string','1605355otEwsL','tryStartPresenting','getStatus','_injector','_liveShareController','getLiveShareCoordinatorSync','getUnitId','LiveShareStatus','_initialize','constructor','function','UNIVER_SHEET','4385760acazHL','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','object','LiveShareStatusEnum','iterator','4725016orcgtB','890806vzdARa','defineProperty','2bdemtf','989817gDqxIC'];_0x1986=function(){return _0x31a983;};return _0x1986();}n[_0x96369b(0x1ca)]['extend'](s);var c=class extends n[_0x96369b(0x1ce)]{get[_0x96369b(0x1e2)](){const _0x12db5f=_0x96369b;return e[_0x12db5f(0x1da)];}};n['FEnum'][_0x96369b(0x1d1)](c);
1
+ const _0x5a6102=_0x373a;function _0xac2e(){const _0x56be8a=['object','getLiveShareStatus','UniverInstanceType','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','LiveShareController','toPrimitive','defineProperty','iterator','get','3314904wavdBF','4706709HVZSas','getLiveShareCoordinatorSync','constructor','1516414mrpCRk','9643856VHGoOb','call','getCurrentUnitOfType','_injector','default','symbol','36Bhdcfb','getStatus','UNIVER_SHEET','startFollowing','string','3VEddaC','FUniver','function','getUnitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IUniverInstanceService','FEnum','LiveShareStatusEnum','183415aJGwqo','extend','2119738zTLYcc','38855169jSSBYM','No\x20active\x20workbook\x20found.','stopPresenting'];_0xac2e=function(){return _0x56be8a;};return _0xac2e();}(function(_0x4a435f,_0x48a94){const _0x23497d=_0x373a,_0x504a1b=_0x4a435f();while(!![]){try{const _0x407ad7=-parseInt(_0x23497d(0x91))/0x1+parseInt(_0x23497d(0xa7))/0x2*(-parseInt(_0x23497d(0x9d))/0x3)+-parseInt(_0x23497d(0x98))/0x4*(-parseInt(_0x23497d(0xa5))/0x5)+-parseInt(_0x23497d(0x8d))/0x6+parseInt(_0x23497d(0x8e))/0x7+-parseInt(_0x23497d(0x92))/0x8+parseInt(_0x23497d(0xa8))/0x9;if(_0x407ad7===_0x48a94)break;else _0x504a1b['push'](_0x504a1b['shift']());}catch(_0x3e46d1){_0x504a1b['push'](_0x504a1b['shift']());}}}(_0xac2e,0xf09b6));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x1ca70d){'@babel/helpers - typeof';const _0x436645=_0x373a;return r=typeof Symbol==_0x436645(0x9f)&&typeof Symbol[_0x436645(0x8b)]==_0x436645(0x97)?function(_0x36069c){return typeof _0x36069c;}:function(_0x315f22){const _0x11c003=_0x436645;return _0x315f22&&typeof Symbol==_0x11c003(0x9f)&&_0x315f22[_0x11c003(0x90)]===Symbol&&_0x315f22!==Symbol['prototype']?_0x11c003(0x97):typeof _0x315f22;},r(_0x1ca70d);}function i(_0x20bfcd,_0x8a2244){const _0x537588=_0x373a;if(r(_0x20bfcd)!=_0x537588(0xab)||!_0x20bfcd)return _0x20bfcd;var _0x24e1c4=_0x20bfcd[Symbol[_0x537588(0xb2)]];if(_0x24e1c4!==void 0x0){var _0xfe9737=_0x24e1c4[_0x537588(0x93)](_0x20bfcd,_0x8a2244||_0x537588(0x96));if(r(_0xfe9737)!='object')return _0xfe9737;throw TypeError(_0x537588(0xa1));}return(_0x8a2244==='string'?String:Number)(_0x20bfcd);}function _0x373a(_0x16c497,_0x409c9e){_0x16c497=_0x16c497-0x8a;const _0xac2e97=_0xac2e();let _0x373a6e=_0xac2e97[_0x16c497];return _0x373a6e;}function a(_0x55bbcd){const _0x4a177c=_0x373a;var _0x477b5f=i(_0x55bbcd,_0x4a177c(0x9c));return r(_0x477b5f)=='symbol'?_0x477b5f:_0x477b5f+'';}function o(_0x5c0f71,_0x1f3fe7,_0x1bb913){const _0x1e0deb=_0x373a;return(_0x1f3fe7=a(_0x1f3fe7))in _0x5c0f71?Object[_0x1e0deb(0x8a)](_0x5c0f71,_0x1f3fe7,{'value':_0x1bb913,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c0f71[_0x1f3fe7]=_0x1bb913,_0x5c0f71;}var s=class extends n[_0x5a6102(0x9e)]{constructor(..._0x4859a9){const _0x25bea9=_0x5a6102;super(..._0x4859a9),o(this,_0x25bea9(0xb0),void 0x0);}['_initialize'](_0x24ba61){const _0x49e44d=_0x5a6102;this[_0x49e44d(0xb0)]=_0x24ba61[_0x49e44d(0x8c)](e[_0x49e44d(0xb1)]);}[_0x5a6102(0xac)](){const _0x2e13ee=_0x5a6102;var _0x93026b;let _0x52b6ca=this['_injector'][_0x2e13ee(0x8c)](t[_0x2e13ee(0xa2)])[_0x2e13ee(0x94)](t[_0x2e13ee(0xad)][_0x2e13ee(0x9a)]);if(!_0x52b6ca)throw Error(_0x2e13ee(0xa9));let _0x59e92b=_0x52b6ca[_0x2e13ee(0xa0)](),_0x89619d=this['_liveShareController'][_0x2e13ee(0x8f)](_0x59e92b);return(_0x93026b=_0x89619d==null?void 0x0:_0x89619d[_0x2e13ee(0x99)]())==null?e['LiveShareStatus']['IDLE']:_0x93026b;}[_0x5a6102(0x9b)](){const _0x1584c6=_0x5a6102;let _0x116f8d=this[_0x1584c6(0x95)][_0x1584c6(0x8c)](t[_0x1584c6(0xa2)])[_0x1584c6(0x94)](t[_0x1584c6(0xad)]['UNIVER_SHEET']);if(!_0x116f8d)throw Error(_0x1584c6(0xa9));let _0x4aa0eb=_0x116f8d[_0x1584c6(0xa0)](),_0x209260=this[_0x1584c6(0xb0)]['getLiveShareCoordinatorSync'](_0x4aa0eb);if(!_0x209260)throw Error(_0x1584c6(0xaf));_0x209260[_0x1584c6(0x9b)]();}[_0x5a6102(0xae)](){const _0x5ea916=_0x5a6102;let _0x5e795c=this[_0x5ea916(0x95)][_0x5ea916(0x8c)](t[_0x5ea916(0xa2)])[_0x5ea916(0x94)](t[_0x5ea916(0xad)]['UNIVER_SHEET']);if(!_0x5e795c)throw Error(_0x5ea916(0xa9));let _0x3a91d3=_0x5e795c[_0x5ea916(0xa0)](),_0x40d6da=this[_0x5ea916(0xb0)][_0x5ea916(0x8f)](_0x3a91d3);if(!_0x40d6da)throw Error(_0x5ea916(0xaf));_0x40d6da['stopFollowing']();}['startPresenting'](){const _0x1c2740=_0x5a6102;let _0x1d81a7=this[_0x1c2740(0x95)]['get'](t[_0x1c2740(0xa2)])[_0x1c2740(0x94)](t[_0x1c2740(0xad)][_0x1c2740(0x9a)]);if(!_0x1d81a7)throw Error(_0x1c2740(0xa9));let _0xed2888=_0x1d81a7['getUnitId'](),_0x2dfd1e=this[_0x1c2740(0xb0)][_0x1c2740(0x8f)](_0xed2888);if(!_0x2dfd1e)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2dfd1e['tryStartPresenting']();}[_0x5a6102(0xaa)](){const _0x30fccc=_0x5a6102;let _0x270182=this[_0x30fccc(0x95)]['get'](t[_0x30fccc(0xa2)])[_0x30fccc(0x94)](t[_0x30fccc(0xad)][_0x30fccc(0x9a)]);if(!_0x270182)throw Error('No\x20active\x20workbook\x20found.');let _0x8a38c1=_0x270182['getUnitId'](),_0x5befd8=this[_0x30fccc(0xb0)]['getLiveShareCoordinatorSync'](_0x8a38c1);if(!_0x5befd8)throw Error(_0x30fccc(0xaf));_0x5befd8['stopPresenting']();}};n[_0x5a6102(0x9e)]['extend'](s);var c=class extends n[_0x5a6102(0xa3)]{get[_0x5a6102(0xa4)](){return e['LiveShareStatus'];}};n[_0x5a6102(0xa3)][_0x5a6102(0xa6)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4125fe=_0x3d35;(function(_0x182767,_0x3b71f1){const _0x3933f3=_0x3d35,_0x229384=_0x182767();while(!![]){try{const _0x100ba7=-parseInt(_0x3933f3(0x184))/0x1+-parseInt(_0x3933f3(0x153))/0x2+parseInt(_0x3933f3(0x176))/0x3*(-parseInt(_0x3933f3(0x16b))/0x4)+parseInt(_0x3933f3(0x1c8))/0x5+-parseInt(_0x3933f3(0x1a5))/0x6*(parseInt(_0x3933f3(0x194))/0x7)+-parseInt(_0x3933f3(0x1eb))/0x8+parseInt(_0x3933f3(0x180))/0x9*(parseInt(_0x3933f3(0x149))/0xa);if(_0x100ba7===_0x3b71f1)break;else _0x229384['push'](_0x229384['shift']());}catch(_0x439c16){_0x229384['push'](_0x229384['shift']());}}}(_0x2f87,0xbc65c),Object[_0x4125fe(0x12f)](exports,Symbol[_0x4125fe(0x1cc)],{'value':_0x4125fe(0x157)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/ui'),s=require('@univerjs/design'),c=require('@univerjs/icons'),l=require('react'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x27a20b){'@babel/helpers - typeof';const _0x32cce9=_0x4125fe;return f=typeof Symbol=='function'&&typeof Symbol[_0x32cce9(0x1f1)]==_0x32cce9(0x1e8)?function(_0x3cd843){return typeof _0x3cd843;}:function(_0x445003){const _0x41adfd=_0x32cce9;return _0x445003&&typeof Symbol==_0x41adfd(0x130)&&_0x445003[_0x41adfd(0x162)]===Symbol&&_0x445003!==Symbol['prototype']?_0x41adfd(0x1e8):typeof _0x445003;},f(_0x27a20b);}function _0x2f87(){const _0xd07416=['_sharedOperations','_startPresenting','tryStartPresenting','registerSharedOperation','forEach','_handleNewChangeSets','LiveShare','HEADER_MENU','Disposable','not-following','operations','InsertSheetMutation','univer-mb-3\x20univer-w-full\x20univer-text-sm','sessionStatus$','NOT_FOLLOWING','OFFLINE','useEffect','setConfig','get','string','onCommandExecuted','current','type','_status$','RxDisposable','find','2689900sEEvcx','_entities','CollaborationSessionService','following','toStringTag','decorate','_unitID','UNIVER_UNKNOWN','getOwnPropertyDescriptor','UNIVER_SHEET','includes','ONLINE','clear','SAME_OPERATION_SHARE_INTERVAL','presenting','_handleTerminate','_handleNewHost','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Inject','_status','BehaviorSubject','_presenter','version','parse','LiveShareIcon','values','end','UniverCollaborationClientPlugin','memberID','touchDependencies','UniverInstanceType','LiveShareCoordinator','symbol','getStatus','getLiveShareCoordinatorSync','6008512DVdLwi','params','ICommandService','Stop\x20presenting','Subject','onStarting','iterator','presenter','connectInjector','status$','defineProperty','function','reverse','_beIdle','DesktopLiveShareController','_fetchOperations','mutations','getInitialStates','requireSession','live-share.config','getConfig','toDisposable','LIVESHARE_FETCH_OPERATIONS','Fragment','throttleTime','_uiPartsService','getValue','button','Stop\x20following','_init','merge','toPrimitive','_injector','UniverLiveSharePlugin','_config','SetZoomRatioOperation','10OkICfO','_startFollowing','offline','_configService','NEW_CHANGESETS','_stopFollowing','getUnitId','then','disposeWithMe','useState','1835702XChLaZ','LIVESHARE_NEW_HOST','LIVESHARE_REQUEST_HOST','delete','Module','length','Present\x20this\x20document','getLiveShareCoordinator','LiveShareController','useRef','_reporters','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','useDependency','_commandService','SetWorksheetActiveOperation','constructor','subscribe','object','registerDependencies','DependentOn','init','packageName','_liveShareService','jsxs','551732vxBljq','Button','getMemberID','default','add','takeUntil','parseProtocolChangeset','shouldShareOperation','registerComponent','Injector','next','3cRLHlE','OPERATION','Dropdown','BuiltInUIPart','unsubscribe','_collabSession','_univerInstanceService','DisposableCollection','map','_stopPresenting','41266125vytIQQ','_commandDisposable','asObservable','_handleOnline','1427739FeCADg','idle','call','_handleOffline','IUniverInstanceService','pluginName','subject','LiveShareStatus','from','_startLiveShareCoordinator','set','jsx','SessionStatus','has','stopPresenting','@univerjs-pro/live-share','7QIonUp','onRendered','pipe','CommandType','_handleOperation','_mountLiveShare','getCurrentTypeOfUnit$','LIVESHARE_OPERATION','stopFollowing','clsx','sheet','You\x27are\x20offline.','executeCommand','CollaborationEvent','send','dispose$','FOLLOWING','6701052iYvhal','dispose','Start\x20following','IConfigService','_collabSessionService','text','Plugin','data','div'];_0x2f87=function(){return _0xd07416;};return _0x2f87();}function p(_0x50cb26,_0x5c5429){const _0x1d45d8=_0x4125fe;if(f(_0x50cb26)!=_0x1d45d8(0x164)||!_0x50cb26)return _0x50cb26;var _0x3c4e45=_0x50cb26[Symbol[_0x1d45d8(0x144)]];if(_0x3c4e45!==void 0x0){var _0x302312=_0x3c4e45[_0x1d45d8(0x186)](_0x50cb26,_0x5c5429||_0x1d45d8(0x16e));if(f(_0x302312)!=_0x1d45d8(0x164))return _0x302312;throw TypeError(_0x1d45d8(0x15e));}return(_0x5c5429===_0x1d45d8(0x1c1)?String:Number)(_0x50cb26);}function m(_0x53951b){const _0x4fb83f=_0x4125fe;var _0x29f5d7=p(_0x53951b,_0x4fb83f(0x1c1));return f(_0x29f5d7)==_0x4fb83f(0x1e8)?_0x29f5d7:_0x29f5d7+'';}function h(_0xe7bd00,_0x2a74fb,_0x3397ed){const _0x4ca309=_0x4125fe;return(_0x2a74fb=m(_0x2a74fb))in _0xe7bd00?Object[_0x4ca309(0x12f)](_0xe7bd00,_0x2a74fb,{'value':_0x3397ed,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe7bd00[_0x2a74fb]=_0x3397ed,_0xe7bd00;}var g=class extends n[_0x4125fe(0x1b6)]{constructor(..._0x424e0e){const _0x29ad4e=_0x4125fe;super(..._0x424e0e),h(this,_0x29ad4e(0x1ae),new Set()),h(this,_0x29ad4e(0x15d),new Set());}[_0x4125fe(0x1b1)](_0x5e9911){const _0x10ce3d=_0x4125fe;return this['_sharedOperations']['add'](_0x5e9911),(0x0,n['toDisposable'])(()=>this[_0x10ce3d(0x1ae)][_0x10ce3d(0x156)](_0x5e9911));}['registerInitialStateReporter'](_0x5a5f9c){const _0x36b12d=_0x4125fe;return this['_reporters'][_0x36b12d(0x16f)](_0x5a5f9c),(0x0,n['toDisposable'])(()=>this[_0x36b12d(0x15d)][_0x36b12d(0x156)](_0x5a5f9c));}[_0x4125fe(0x172)](_0x1890ec){const _0x43b09e=_0x4125fe;return this[_0x43b09e(0x1ae)]['has'](_0x1890ec);}[_0x4125fe(0x136)](_0xa79571){const _0x52f0b1=_0x4125fe;return Array[_0x52f0b1(0x18c)](this[_0x52f0b1(0x15d)])[_0x52f0b1(0x17e)](_0x3620d1=>_0x3620d1(_0xa79571));}};function _(_0x542682,_0x37e2){return function(_0x3ec5ba,_0x3ac406){_0x37e2(_0x3ec5ba,_0x3ac406,_0x542682);};}function v(_0x363fda,_0x493609,_0x4e739e,_0x4481e9){const _0x218430=_0x4125fe;var _0x5e19e8=arguments['length'],_0x40220b=_0x5e19e8<0x3?_0x493609:_0x4481e9===null?_0x4481e9=Object[_0x218430(0x1d0)](_0x493609,_0x4e739e):_0x4481e9,_0x5b28e6;if(typeof Reflect==_0x218430(0x164)&&typeof Reflect[_0x218430(0x1cd)]==_0x218430(0x130))_0x40220b=Reflect[_0x218430(0x1cd)](_0x363fda,_0x493609,_0x4e739e,_0x4481e9);else{for(var _0x26f33e=_0x363fda[_0x218430(0x158)]-0x1;_0x26f33e>=0x0;_0x26f33e--)(_0x5b28e6=_0x363fda[_0x26f33e])&&(_0x40220b=(_0x5e19e8<0x3?_0x5b28e6(_0x40220b):_0x5e19e8>0x3?_0x5b28e6(_0x493609,_0x4e739e,_0x40220b):_0x5b28e6(_0x493609,_0x4e739e))||_0x40220b);}return _0x5e19e8>0x3&&_0x40220b&&Object['defineProperty'](_0x493609,_0x4e739e,_0x40220b),_0x40220b;}let y=class extends n[_0x4125fe(0x1c6)]{constructor(_0xccdd06,_0x375a15,_0x1de318){const _0x162d63=_0x4125fe;super(),this['_univerInstanceService']=_0xccdd06,this[_0x162d63(0x145)]=_0x375a15,this[_0x162d63(0x1a9)]=_0x1de318,h(this,'_entities',new Map()),this[_0x162d63(0x142)]();}async[_0x4125fe(0x15a)](_0x205a81){const _0x4e783d=_0x4125fe;return this['_entities'][_0x4e783d(0x191)](_0x205a81)||await this[_0x4e783d(0x18d)](_0x205a81),this['_entities'][_0x4e783d(0x1c0)](_0x205a81);}[_0x4125fe(0x1ea)](_0x18f9b7){const _0x265f70=_0x4125fe;var _0x3a5150;return(_0x3a5150=this[_0x265f70(0x1c9)][_0x265f70(0x1c0)](_0x18f9b7))==null?null:_0x3a5150;}[_0x4125fe(0x142)](){const _0x3a9f73=_0x4125fe;this[_0x3a9f73(0x17c)]['getTypeOfUnitAdded$'](n[_0x3a9f73(0x1e6)][_0x3a9f73(0x1d1)])[_0x3a9f73(0x196)]((0x0,a[_0x3a9f73(0x170)])(this[_0x3a9f73(0x1a3)]))[_0x3a9f73(0x163)](async _0x3deb48=>{const _0x53ac77=_0x3a9f73;let _0x47041a=_0x3deb48['unit']['getUnitId']();this['_entities']['has'](_0x47041a)||this[_0x53ac77(0x18d)](_0x47041a);}),this[_0x3a9f73(0x17c)]['getTypeOfUnitDisposed$'](n['UniverInstanceType'][_0x3a9f73(0x1d1)])[_0x3a9f73(0x196)]((0x0,a[_0x3a9f73(0x170)])(this['dispose$']))[_0x3a9f73(0x163)](_0x487fdb=>{const _0x5aefdf=_0x3a9f73;let _0x3324a8=_0x487fdb['getUnitId'](),_0x418b5d=this[_0x5aefdf(0x1c9)][_0x5aefdf(0x1c0)](_0x3324a8);_0x418b5d==null||_0x418b5d[_0x5aefdf(0x1a6)]();});}async[_0x4125fe(0x18d)](_0x3f2217){const _0x55f52d=_0x4125fe;let _0x3bbf94=await this['_collabSessionService'][_0x55f52d(0x137)](_0x3f2217),_0x5c5795=this[_0x55f52d(0x145)]['createInstance'](x,_0x3f2217,_0x3bbf94);return _0x5c5795[_0x55f52d(0x167)](),this['_entities'][_0x55f52d(0x18e)](_0x3f2217,_0x5c5795),_0x5c5795;}};y=v([_(0x0,n[_0x4125fe(0x188)]),_(0x1,(0x0,n[_0x4125fe(0x1da)])(n[_0x4125fe(0x174)])),_(0x2,(0x0,n[_0x4125fe(0x1da)])(t[_0x4125fe(0x1ca)]))],y);let b=function(_0x8f4e17){const _0x2982fe=_0x4125fe;return _0x8f4e17[_0x2982fe(0x1bd)]=_0x2982fe(0x14b),_0x8f4e17['IDLE']=_0x2982fe(0x185),_0x8f4e17[_0x2982fe(0x1a4)]='following',_0x8f4e17[_0x2982fe(0x1bc)]=_0x2982fe(0x1b7),_0x8f4e17['PRESENTING']=_0x2982fe(0x1d6),_0x8f4e17;}({}),x=class extends n['RxDisposable']{get[_0x4125fe(0x1db)](){const _0x5003dc=_0x4125fe;return this[_0x5003dc(0x1c5)][_0x5003dc(0x13f)]();}constructor(_0x590a38,_0x5c7a2d,_0x45c458,_0x288eb9,_0x20f7a0){const _0xf666cf=_0x4125fe;super(),this['_unitID']=_0x590a38,this[_0xf666cf(0x17b)]=_0x5c7a2d,this[_0xf666cf(0x14c)]=_0x45c458,this[_0xf666cf(0x169)]=_0x288eb9,this[_0xf666cf(0x160)]=_0x20f7a0,h(this,_0xf666cf(0x1c5),new i[(_0xf666cf(0x1dc))]('idle')),h(this,'status$',this[_0xf666cf(0x1c5)][_0xf666cf(0x182)]()),h(this,_0xf666cf(0x142),!0x1),h(this,'_commandDisposable',null),h(this,_0xf666cf(0x1dd),null);}[_0x4125fe(0x1a6)](){const _0x125f75=_0x4125fe;var _0x24e895;(_0x24e895=this[_0x125f75(0x181)])==null||_0x24e895[_0x125f75(0x1a6)](),this[_0x125f75(0x1c5)][_0x125f75(0x175)](_0x125f75(0x185)),this[_0x125f75(0x1c5)]['complete']();}[_0x4125fe(0x1e9)](){const _0x1c7ae8=_0x4125fe;return this[_0x1c7ae8(0x1db)];}[_0x4125fe(0x167)](){const _0xb55b2d=_0x4125fe;this[_0xb55b2d(0x142)]||(this[_0xb55b2d(0x142)]=!0x0,this[_0xb55b2d(0x17b)][_0xb55b2d(0x1bb)][_0xb55b2d(0x196)]((0x0,a[_0xb55b2d(0x170)])(this[_0xb55b2d(0x1a3)]))['subscribe'](_0x20e5fc=>{const _0x4cdbef=_0xb55b2d;switch(_0x20e5fc){case t['SessionStatus'][_0x4cdbef(0x1bd)]:this[_0x4cdbef(0x187)]();break;case t[_0x4cdbef(0x190)][_0x4cdbef(0x1d3)]:this[_0x4cdbef(0x183)]();break;default:}}),this[_0xb55b2d(0x17b)]['event$'][_0xb55b2d(0x196)]((0x0,a[_0xb55b2d(0x170)])(this[_0xb55b2d(0x1a3)]))[_0xb55b2d(0x163)](_0x3b3b0f=>{const _0x43c46a=_0xb55b2d;let {eventID:_0x5e7d1f}=_0x3b3b0f;switch(_0x5e7d1f){case e[_0x43c46a(0x1a1)][_0x43c46a(0x154)]:this[_0x43c46a(0x1d8)](_0x3b3b0f);break;case e[_0x43c46a(0x1a1)][_0x43c46a(0x19b)]:this[_0x43c46a(0x198)](_0x3b3b0f);break;case e[_0x43c46a(0x1a1)]['LIVESHARE_TERMINATE']:this[_0x43c46a(0x1d7)]();break;case e[_0x43c46a(0x1a1)][_0x43c46a(0x14d)]:this['_handleNewChangeSets'](_0x3b3b0f);break;default:}}));}['tryStartPresenting'](){const _0x5f1c0e=_0x4125fe;this[_0x5f1c0e(0x17b)]['send']({'eventID':e['CollaborationEvent'][_0x5f1c0e(0x155)],'data':{'unitID':this[_0x5f1c0e(0x1ce)],'userID':this[_0x5f1c0e(0x17b)][_0x5f1c0e(0x16d)]()}},this[_0x5f1c0e(0x1ce)]);}[_0x4125fe(0x192)](){const _0x574d1e=_0x4125fe;this[_0x574d1e(0x1db)]===_0x574d1e(0x1d6)&&(this[_0x574d1e(0x1c5)][_0x574d1e(0x175)](_0x574d1e(0x185)),this[_0x574d1e(0x17b)]['send']({'eventID':e[_0x574d1e(0x1a1)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x574d1e(0x1ce)]}},this['_unitID']));}['startFollowing'](){const _0x16ceb9=_0x4125fe;this[_0x16ceb9(0x1db)]===_0x16ceb9(0x1b7)&&(this[_0x16ceb9(0x1c5)][_0x16ceb9(0x175)](_0x16ceb9(0x1cb)),this[_0x16ceb9(0x14a)]());}['stopFollowing'](){const _0x409563=_0x4125fe;this[_0x409563(0x1db)]===_0x409563(0x1cb)&&this[_0x409563(0x14e)]();}[_0x4125fe(0x1d8)](_0x5e4c33){const _0x20d139=_0x4125fe;let {presenter:_0x429b12}=_0x5e4c33[_0x20d139(0x1ac)],_0x3c38f5=this['_collabSession'][_0x20d139(0x16d)]();this['_presenter']=_0x429b12,_0x429b12===_0x3c38f5?(this[_0x20d139(0x14e)](),this[_0x20d139(0x1af)]()):this[_0x20d139(0x1db)]!==_0x20d139(0x1b7)&&(this['_stopPresenting'](),this[_0x20d139(0x14a)]());}['_fetchOperations'](){const _0x561ee6=_0x4125fe;let _0x2a6329={'eventID':e[_0x561ee6(0x1a1)][_0x561ee6(0x13b)]};this[_0x561ee6(0x17b)][_0x561ee6(0x1a2)](_0x2a6329,this[_0x561ee6(0x1ce)]);}[_0x4125fe(0x1d7)](){const _0x410380=_0x4125fe;this[_0x410380(0x1dd)]=null,this['_status']!==_0x410380(0x1d6)&&this[_0x410380(0x132)]();}[_0x4125fe(0x1b3)](_0xc5ef56){const _0x559593=_0x4125fe;if(this[_0x559593(0x1db)]===_0x559593(0x1cb)&&this['_presenter']===_0xc5ef56[_0x559593(0x1ac)][_0x559593(0x1e4)]){let _0x4bf112=(0x0,e[_0x559593(0x171)])(_0xc5ef56[_0x559593(0x1ac)])[_0x559593(0x135)][_0x559593(0x131)]()[_0x559593(0x1c7)](_0x4dd082=>_0x4dd082['id']===r[_0x559593(0x1b9)]['id']);if(_0x4bf112){let _0x50ea3=_0x4bf112[_0x559593(0x1ec)]['unitId'],_0x259240=_0x4bf112[_0x559593(0x1ec)][_0x559593(0x19e)]['id'];setTimeout(()=>{const _0x1c8b13=_0x559593;this['_commandService'][_0x1c8b13(0x1a0)](r[_0x1c8b13(0x161)]['id'],{'unitId':_0x50ea3,'subUnitId':_0x259240},{'fromCollab':!0x0});});}}}[_0x4125fe(0x1af)](){const _0x446899=_0x4125fe;var _0x3be18e;(_0x3be18e=this[_0x446899(0x181)])==null||_0x3be18e['dispose'](),this[_0x446899(0x1c5)][_0x446899(0x175)](_0x446899(0x1d6));let _0x508e4c=new Map(),_0x491a17=this['_commandDisposable']=new n[(_0x446899(0x17d))]();_0x491a17[_0x446899(0x16f)]((0x0,n[_0x446899(0x13a)])(()=>{const _0x3dbf70=_0x446899;_0x508e4c[_0x3dbf70(0x1b2)](({subject:_0x5508c4,subscription:_0x537da6})=>{const _0x117c7e=_0x3dbf70;_0x537da6[_0x117c7e(0x17a)](),_0x5508c4['complete']();}),_0x508e4c[_0x3dbf70(0x1d4)]();})),_0x491a17[_0x446899(0x16f)](this[_0x446899(0x160)][_0x446899(0x1c2)](_0x466439=>{const _0x39dd38=_0x446899;if(_0x466439[_0x39dd38(0x1c4)]!==n[_0x39dd38(0x197)][_0x39dd38(0x177)]||!this['_liveShareService'][_0x39dd38(0x172)](_0x466439['id']))return;let {id:_0x18b9da}=_0x466439,_0x5c77ec;if(_0x508e4c['has'](_0x18b9da))_0x5c77ec=_0x508e4c['get'](_0x18b9da)[_0x39dd38(0x18a)];else{var _0x2e7845;_0x5c77ec=new i[(_0x39dd38(0x1ef))]();let _0x43377b=_0x5c77ec[_0x39dd38(0x196)]((0x0,a[_0x39dd38(0x13d)])((_0x2e7845=this[_0x39dd38(0x14c)][_0x39dd38(0x139)](_0x39dd38(0x1d5)))==null?0xc8:_0x2e7845,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x39dd38(0x163)](_0x38cda7=>{const _0x13fe7a=_0x39dd38;this[_0x13fe7a(0x17b)]['send']({'eventID':e[_0x13fe7a(0x1a1)][_0x13fe7a(0x19b)],'data':{'unitID':this['_unitID'],'operations':{[_0x38cda7['id']]:{'id':_0x38cda7['id'],'params':JSON['stringify'](_0x38cda7[_0x13fe7a(0x1ec)])}}}},this[_0x13fe7a(0x1ce)]);});_0x508e4c[_0x39dd38(0x18e)](_0x18b9da,{'subject':_0x5c77ec,'subscription':_0x43377b});}_0x5c77ec[_0x39dd38(0x175)](_0x466439);})),this[_0x446899(0x169)][_0x446899(0x136)](this[_0x446899(0x1ce)])[_0x446899(0x1b2)](_0x392555=>this['_collabSession'][_0x446899(0x1a2)]({'eventID':e[_0x446899(0x1a1)][_0x446899(0x19b)],'data':{'unitID':this['_unitID'],'operations':{[_0x392555['id']]:{'id':_0x392555['id'],'params':JSON['stringify'](_0x392555[_0x446899(0x1ec)])}}}},this[_0x446899(0x1ce)]));}[_0x4125fe(0x17f)](){const _0x4be6a5=_0x4125fe;var _0x2d37ff;this['_status$'][_0x4be6a5(0x175)](_0x4be6a5(0x185)),(_0x2d37ff=this[_0x4be6a5(0x181)])==null||_0x2d37ff['dispose'](),this['_commandDisposable']=null;}[_0x4125fe(0x14a)](){const _0x14ae95=_0x4125fe;var _0x16296b;(_0x16296b=this['_commandDisposable'])==null||_0x16296b[_0x14ae95(0x1a6)](),this[_0x14ae95(0x1c5)][_0x14ae95(0x175)]('following');}[_0x4125fe(0x132)](){const _0x1d4bd7=_0x4125fe;var _0x70a836;this['_status$'][_0x1d4bd7(0x175)](_0x1d4bd7(0x185)),(_0x70a836=this[_0x1d4bd7(0x181)])==null||_0x70a836[_0x1d4bd7(0x1a6)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x20ca56=_0x4125fe;var _0x582649;this[_0x20ca56(0x1c5)][_0x20ca56(0x175)](_0x20ca56(0x1b7)),(_0x582649=this[_0x20ca56(0x181)])==null||_0x582649['dispose']();}[_0x4125fe(0x198)](_0x2b9054){const _0x278755=_0x4125fe;if([_0x278755(0x1d6),_0x278755(0x1b7),_0x278755(0x14b)][_0x278755(0x1d2)](this[_0x278755(0x1db)])||!_0x2b9054[_0x278755(0x1ac)]['presenter']||_0x2b9054[_0x278755(0x1ac)][_0x278755(0x1f2)]===this['_collabSession'][_0x278755(0x16d)]())return;this[_0x278755(0x1db)]==='idle'&&this[_0x278755(0x14a)]();let _0x2080be=_0x2b9054['data'][_0x278755(0x1b8)];Object[_0x278755(0x1e1)](_0x2080be)[_0x278755(0x1b2)](_0x50a5a5=>{const _0x5842c0=_0x278755;this['_commandService'][_0x5842c0(0x1a0)](_0x50a5a5['id'],_0x50a5a5['params']?JSON[_0x5842c0(0x1df)](_0x50a5a5[_0x5842c0(0x1ec)]):null,{'fromCollab':!0x0});});}[_0x4125fe(0x187)](){const _0x52a887=_0x4125fe;var _0x4cd816;this['_status$']['next'](_0x52a887(0x14b)),(_0x4cd816=this['_commandDisposable'])==null||_0x4cd816['dispose']();}[_0x4125fe(0x183)](){const _0x4de92a=_0x4125fe;this[_0x4de92a(0x1c5)][_0x4de92a(0x175)]('idle'),this[_0x4de92a(0x134)]();}};x=v([_(0x2,n[_0x4125fe(0x1a8)]),_(0x3,(0x0,n['Inject'])(g)),_(0x4,n[_0x4125fe(0x1ed)])],x);function S(){const _0x4ebbfb=_0x4125fe;let _0x14afe9=(0x0,o['useDependency'])(y),_0x3412af=(0x0,o[_0x4ebbfb(0x15f)])(n[_0x4ebbfb(0x188)]),_0x24b7ee=(0x0,o['useObservable'])(()=>_0x3412af[_0x4ebbfb(0x19a)](n['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x27e438,_0x50bb01]=(0x0,l[_0x4ebbfb(0x152)])(null),[_0x3540cc,_0x17f5c1]=(0x0,l[_0x4ebbfb(0x152)])('idle'),_0x5ce1ec=(0x0,l[_0x4ebbfb(0x15c)])(null);return(0x0,l[_0x4ebbfb(0x1be)])(()=>(_0x24b7ee&&_0x14afe9['getLiveShareCoordinator'](_0x24b7ee[_0x4ebbfb(0x14f)]())[_0x4ebbfb(0x150)](_0x249a75=>{const _0x18d7ce=_0x4ebbfb;_0x50bb01(_0x249a75),_0x5ce1ec[_0x18d7ce(0x1c3)]=_0x249a75[_0x18d7ce(0x12e)][_0x18d7ce(0x163)](_0x210c57=>{_0x17f5c1(_0x210c57);});}),()=>{const _0x17c96d=_0x4ebbfb;var _0x4fc7ab;(_0x4fc7ab=_0x5ce1ec['current'])==null||_0x4fc7ab[_0x17c96d(0x17a)](),_0x5ce1ec[_0x17c96d(0x1c3)]=null;}),[_0x24b7ee,_0x14afe9]),_0x27e438?(0x0,u['jsx'])(s[_0x4ebbfb(0x178)],{'align':_0x4ebbfb(0x1e2),'disabled':_0x3540cc==='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[_0x4ebbfb(0x18f)])(C,{'status':_0x3540cc,'coordinator':_0x27e438}),'children':(0x0,u['jsx'])('button',{'className':(0x0,s[_0x4ebbfb(0x19d)])(_0x4ebbfb(0x1d9),{'univer-cursor-not-allowed':_0x3540cc===_0x4ebbfb(0x14b),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3540cc!==_0x4ebbfb(0x14b)}),'type':_0x4ebbfb(0x140),'children':(0x0,u[_0x4ebbfb(0x18f)])(c[_0x4ebbfb(0x1e0)],{})})}):null;}function C(_0x3b0487){const _0x1544d4=_0x4125fe;let {status:_0xc6006c,coordinator:_0x5a0166}=_0x3b0487;switch(_0xc6006c){case _0x1544d4(0x185):return(0x0,u[_0x1544d4(0x18f)])(w,{'coordinator':_0x5a0166});case _0x1544d4(0x1cb):return(0x0,u[_0x1544d4(0x18f)])(T,{'coordinator':_0x5a0166});case _0x1544d4(0x1b7):return(0x0,u['jsx'])(E,{'coordinator':_0x5a0166});case _0x1544d4(0x14b):return(0x0,u['jsx'])(O,{});case _0x1544d4(0x1d6):return(0x0,u[_0x1544d4(0x18f)])(D,{'coordinator':_0x5a0166});default:return null;}}function w(_0x436573){const _0x4bea19=_0x4125fe;let {coordinator:_0x28b43e}=_0x436573;return(0x0,u['jsxs'])(u['Fragment'],{'children':[(0x0,u[_0x4bea19(0x18f)])(_0x4bea19(0x1ad),{'className':_0x4bea19(0x1ba),'children':_0x4bea19(0x159)}),(0x0,u[_0x4bea19(0x18f)])(s[_0x4bea19(0x16c)],{'onClick':()=>_0x28b43e[_0x4bea19(0x1b0)](),'children':'Start'})]});}function T(_0xb2188a){const _0x24eb02=_0x4125fe;let {coordinator:_0x4409f6}=_0xb2188a;return(0x0,u[_0x24eb02(0x16a)])(u['Fragment'],{'children':[(0x0,u['jsx'])(_0x24eb02(0x1ad),{'className':_0x24eb02(0x1ba),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u[_0x24eb02(0x18f)])(s[_0x24eb02(0x16c)],{'onClick':()=>_0x4409f6[_0x24eb02(0x19c)](),'children':_0x24eb02(0x141)})]});}function _0x3d35(_0x13b4e1,_0x11e371){_0x13b4e1=_0x13b4e1-0x12e;const _0x2f8700=_0x2f87();let _0x3d3567=_0x2f8700[_0x13b4e1];return _0x3d3567;}function E(_0x85cf36){const _0x2c64bd=_0x4125fe;let {coordinator:_0x4d4c08}=_0x85cf36;return(0x0,u['jsxs'])(u['Fragment'],{'children':[(0x0,u['jsx'])(_0x2c64bd(0x1ad),{'className':_0x2c64bd(0x1ba),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x2c64bd(0x18f)])(s[_0x2c64bd(0x16c)],{'variant':_0x2c64bd(0x1aa),'onClick':()=>_0x4d4c08['startFollowing'](),'children':_0x2c64bd(0x1a7)})]});}function D(_0x3c052d){const _0x2c531c=_0x4125fe;let {coordinator:_0x490eae}=_0x3c052d;return(0x0,u[_0x2c531c(0x16a)])(u[_0x2c531c(0x13c)],{'children':[(0x0,u['jsx'])(_0x2c531c(0x1ad),{'className':_0x2c531c(0x1ba),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,u['jsx'])(s[_0x2c531c(0x16c)],{'variant':'default','onClick':()=>_0x490eae[_0x2c531c(0x192)](),'children':_0x2c531c(0x1ee)})]});}function O(){const _0x5843fa=_0x4125fe;return(0x0,u[_0x5843fa(0x18f)])(u[_0x5843fa(0x13c)],{'children':_0x5843fa(0x19f)});}let k=class extends n[_0x4125fe(0x1b6)]{constructor(_0x474d06,_0x43328f){const _0x1d4b5e=_0x4125fe;super(),this[_0x1d4b5e(0x145)]=_0x474d06,this[_0x1d4b5e(0x13e)]=_0x43328f,this[_0x1d4b5e(0x199)]();}[_0x4125fe(0x199)](){const _0x1efba8=_0x4125fe;this[_0x1efba8(0x151)](this[_0x1efba8(0x13e)][_0x1efba8(0x173)](o[_0x1efba8(0x179)][_0x1efba8(0x1b5)],()=>(0x0,o[_0x1efba8(0x1f3)])(S,this[_0x1efba8(0x145)])));}};k=v([_(0x0,(0x0,n[_0x4125fe(0x1da)])(n[_0x4125fe(0x174)])),_(0x1,o['IUIPartsService'])],k);var A=_0x4125fe(0x193),j='1.0.0-alpha.0';const M={};let N=class extends n[_0x4125fe(0x1b6)]{constructor(_0x211b92){const _0x43be3c=_0x4125fe;super(),this[_0x43be3c(0x169)]=_0x211b92,this['_init']();}[_0x4125fe(0x142)](){const _0x52fd57=_0x4125fe;[d[_0x52fd57(0x148)]['id'],d['SetScrollOperation']['id'],r[_0x52fd57(0x161)]['id']]['forEach'](_0xc0b878=>{const _0xfd42b6=_0x52fd57;this['disposeWithMe'](this[_0xfd42b6(0x169)][_0xfd42b6(0x1b1)](_0xc0b878));});}};N=v([_(0x0,(0x0,n[_0x4125fe(0x1da)])(g))],N);let P=class extends n[_0x4125fe(0x1ab)]{constructor(_0xe1df16=M,_0x20ebad,_0x115c51){const _0x5455e5=_0x4125fe;super(),this['_config']=_0xe1df16,this['_injector']=_0x20ebad,this[_0x5455e5(0x14c)]=_0x115c51;let {..._0x4a6f39}=(0x0,n[_0x5455e5(0x143)])({},M,this[_0x5455e5(0x147)]);this[_0x5455e5(0x14c)][_0x5455e5(0x1bf)](_0x5455e5(0x138),_0x4a6f39);}[_0x4125fe(0x1f0)](){const _0x24d1f4=_0x4125fe;(0x0,n[_0x24d1f4(0x165)])(this['_injector'],(0x0,n['mergeOverrideWithDependencies'])([[g],[y],[N],[k]],this[_0x24d1f4(0x147)]['override'])),(0x0,n['touchDependencies'])(this[_0x24d1f4(0x145)],[[N]]);}[_0x4125fe(0x195)](){const _0x5ddf65=_0x4125fe;(0x0,n[_0x5ddf65(0x1e5)])(this['_injector'],[[k]]);}};h(P,_0x4125fe(0x1c4),n[_0x4125fe(0x1e6)][_0x4125fe(0x1cf)]),h(P,_0x4125fe(0x189),'UNIVER_LIVE_SHARE_PLUGIN'),h(P,_0x4125fe(0x168),A),h(P,_0x4125fe(0x1de),j),P=v([(0x0,n[_0x4125fe(0x166)])(t[_0x4125fe(0x1e3)]),_(0x1,(0x0,n['Inject'])(n['Injector'])),_(0x2,n[_0x4125fe(0x1a8)])],P),Object[_0x4125fe(0x12f)](exports,_0x4125fe(0x133),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x4125fe(0x1b4)]=S,Object[_0x4125fe(0x12f)](exports,_0x4125fe(0x15b),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x4125fe(0x12f)](exports,_0x4125fe(0x1e7),{'enumerable':!0x0,'get':function(){return x;}}),exports['LiveShareService']=g,exports[_0x4125fe(0x18b)]=b,Object[_0x4125fe(0x12f)](exports,_0x4125fe(0x146),{'enumerable':!0x0,'get':function(){return P;}});
1
+ const _0x5d5271=_0x4057;(function(_0x369080,_0x1752f9){const _0xd09079=_0x4057,_0x13efb5=_0x369080();while(!![]){try{const _0x5e6c55=-parseInt(_0xd09079(0x267))/0x1*(parseInt(_0xd09079(0x29e))/0x2)+parseInt(_0xd09079(0x289))/0x3*(-parseInt(_0xd09079(0x1ea))/0x4)+parseInt(_0xd09079(0x262))/0x5+parseInt(_0xd09079(0x25e))/0x6+parseInt(_0xd09079(0x1f1))/0x7+-parseInt(_0xd09079(0x24a))/0x8*(parseInt(_0xd09079(0x21b))/0x9)+-parseInt(_0xd09079(0x22d))/0xa*(-parseInt(_0xd09079(0x21d))/0xb);if(_0x5e6c55===_0x1752f9)break;else _0x13efb5['push'](_0x13efb5['shift']());}catch(_0x23a9ab){_0x13efb5['push'](_0x13efb5['shift']());}}}(_0x13f4,0x80eae),Object[_0x5d5271(0x279)](exports,Symbol[_0x5d5271(0x28c)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/ui'),s=require('@univerjs/design'),c=require('@univerjs/icons'),l=require('react'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x194457){'@babel/helpers - typeof';const _0x5df084=_0x5d5271;return f=typeof Symbol==_0x5df084(0x25c)&&typeof Symbol[_0x5df084(0x27a)]=='symbol'?function(_0x96250e){return typeof _0x96250e;}:function(_0x506273){const _0x1333d5=_0x5df084;return _0x506273&&typeof Symbol=='function'&&_0x506273[_0x1333d5(0x243)]===Symbol&&_0x506273!==Symbol[_0x1333d5(0x225)]?'symbol':typeof _0x506273;},f(_0x194457);}function _0x13f4(){const _0x584edf=['object','next','UniverCollaborationClientPlugin','_fetchOperations','idle','OPERATION','SetZoomRatioOperation','LiveShare','Plugin','reverse','find','_collabSessionService','_collabSession','constructor','decorate','_entities','presenting','get','CollaborationEvent','disposeWithMe','8sodfIV','sheet','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ONLINE','asObservable','version','_handleNewHost','getTypeOfUnitDisposed$','not-following','_univerInstanceService','getOwnPropertyDescriptor','Inject','tryStartPresenting','_reporters','IUIPartsService','_mountLiveShare','jsxs','_stopPresenting','function','_config','2148528hKrhEq','useObservable','unsubscribe','set','4111760nGiXoq','shouldShareOperation','UniverInstanceType','getLiveShareCoordinator','call','58eytDTN','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','Subject','Disposable','parseProtocolChangeset','merge','end','pipe','offline','Present\x20this\x20document','button','BuiltInUIPart','event$','useDependency','_stopFollowing','stopPresenting','delete','params','defineProperty','iterator','sessionStatus$','onStarting','_sharedOperations','_handleOnline','_startPresenting','RxDisposable','override','_status$','NOT_FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getStatus','_startFollowing','init','stopFollowing','2199YTfbrG','setConfig','UniverLiveSharePlugin','toStringTag','1.0.0-alpha.1','_liveShareService','throttleTime','LIVESHARE_REQUEST_HOST','IUniverInstanceService','forEach','Injector','add','parse','values','div','onCommandExecuted','_unitID','SetWorksheetActiveOperation','registerDependencies','text','live-share.config','15356HnKFoj','type','LiveShareService','useState','_handleTerminate','SessionStatus','mutations','Button','touchDependencies','InsertSheetMutation','You\x27re\x20presenting\x20the\x20document','1444FTmnxW','getConfig','toDisposable','presenter','getInitialStates','takeUntil','_startLiveShareCoordinator','5647271COhgJS','getCurrentTypeOfUnit$','_uiPartsService','You\x27re\x20following\x20the\x20presenter','mergeOverrideWithDependencies','unitId','_commandService','OFFLINE','IConfigService','following','jsx','_handleOffline','useRef','current','dispose','startFollowing','then','LIVESHARE_FETCH_OPERATIONS','getValue','_beIdle','onRendered','Fragment','_configService','getMemberID','_presenter','Start','CollaborationSessionService','getLiveShareCoordinatorSync','registerComponent','Stop\x20following','status$','default','_handleOperation','send','_commandDisposable','UNIVER_SHEET','getTypeOfUnitAdded$','CommandType','subscribe','@univerjs-pro/live-share','FOLLOWING','from','9225558ZPFzDG','length','11LNIpOp','unit','getUnitId','DesktopLiveShareController','_init','_status','symbol','pluginName','prototype','SAME_OPERATION_SHARE_INTERVAL','string','clear','stringify','data','SetScrollOperation','UNIVER_LIVE_SHARE_PLUGIN','2758520dxXuLK','_handleNewChangeSets','DependentOn','has','complete','subject','dispose$','_injector','LIVESHARE_OPERATION'];_0x13f4=function(){return _0x584edf;};return _0x13f4();}function p(_0x2fdce6,_0x21ff04){const _0x170206=_0x5d5271;if(f(_0x2fdce6)!=_0x170206(0x236)||!_0x2fdce6)return _0x2fdce6;var _0x298911=_0x2fdce6[Symbol['toPrimitive']];if(_0x298911!==void 0x0){var _0x4eb140=_0x298911[_0x170206(0x266)](_0x2fdce6,_0x21ff04||'default');if(f(_0x4eb140)!=_0x170206(0x236))return _0x4eb140;throw TypeError(_0x170206(0x24c));}return(_0x21ff04===_0x170206(0x227)?String:Number)(_0x2fdce6);}function m(_0x27d1e1){const _0x1e32e6=_0x5d5271;var _0x5806c6=p(_0x27d1e1,_0x1e32e6(0x227));return f(_0x5806c6)==_0x1e32e6(0x223)?_0x5806c6:_0x5806c6+'';}function h(_0x21a868,_0x24285b,_0x276ae5){return(_0x24285b=m(_0x24285b))in _0x21a868?Object['defineProperty'](_0x21a868,_0x24285b,{'value':_0x276ae5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21a868[_0x24285b]=_0x276ae5,_0x21a868;}var g=class extends n[_0x5d5271(0x26a)]{constructor(..._0x105410){const _0x56e94f=_0x5d5271;super(..._0x105410),h(this,_0x56e94f(0x27d),new Set()),h(this,_0x56e94f(0x257),new Set());}['registerSharedOperation'](_0x51c3a5){const _0x3b752b=_0x5d5271;return this[_0x3b752b(0x27d)][_0x3b752b(0x294)](_0x51c3a5),(0x0,n[_0x3b752b(0x1ec)])(()=>this[_0x3b752b(0x27d)][_0x3b752b(0x277)](_0x51c3a5));}['registerInitialStateReporter'](_0x440b98){const _0xcbc6fa=_0x5d5271;return this[_0xcbc6fa(0x257)][_0xcbc6fa(0x294)](_0x440b98),(0x0,n[_0xcbc6fa(0x1ec)])(()=>this['_reporters']['delete'](_0x440b98));}[_0x5d5271(0x263)](_0x4704b1){const _0x299632=_0x5d5271;return this[_0x299632(0x27d)][_0x299632(0x230)](_0x4704b1);}[_0x5d5271(0x1ee)](_0x228d4f){const _0x49a90b=_0x5d5271;return Array[_0x49a90b(0x21a)](this[_0x49a90b(0x257)])['map'](_0xe1cdfa=>_0xe1cdfa(_0x228d4f));}};function _(_0x5f37da,_0x181597){return function(_0x6ad20f,_0x4838d2){_0x181597(_0x6ad20f,_0x4838d2,_0x5f37da);};}function v(_0x562ed3,_0x3fffbe,_0x5922a4,_0x2f3da2){const _0x2843e5=_0x5d5271;var _0x2fb42a=arguments[_0x2843e5(0x21c)],_0x2689f9=_0x2fb42a<0x3?_0x3fffbe:_0x2f3da2===null?_0x2f3da2=Object[_0x2843e5(0x254)](_0x3fffbe,_0x5922a4):_0x2f3da2,_0x1af31f;if(typeof Reflect=='object'&&typeof Reflect[_0x2843e5(0x244)]==_0x2843e5(0x25c))_0x2689f9=Reflect[_0x2843e5(0x244)](_0x562ed3,_0x3fffbe,_0x5922a4,_0x2f3da2);else{for(var _0x3471e4=_0x562ed3[_0x2843e5(0x21c)]-0x1;_0x3471e4>=0x0;_0x3471e4--)(_0x1af31f=_0x562ed3[_0x3471e4])&&(_0x2689f9=(_0x2fb42a<0x3?_0x1af31f(_0x2689f9):_0x2fb42a>0x3?_0x1af31f(_0x3fffbe,_0x5922a4,_0x2689f9):_0x1af31f(_0x3fffbe,_0x5922a4))||_0x2689f9);}return _0x2fb42a>0x3&&_0x2689f9&&Object[_0x2843e5(0x279)](_0x3fffbe,_0x5922a4,_0x2689f9),_0x2689f9;}let y=class extends n[_0x5d5271(0x280)]{constructor(_0x13a35b,_0x402c22,_0x29ab51){const _0x48d13c=_0x5d5271;super(),this[_0x48d13c(0x253)]=_0x13a35b,this['_injector']=_0x402c22,this[_0x48d13c(0x241)]=_0x29ab51,h(this,_0x48d13c(0x245),new Map()),this['_init']();}async[_0x5d5271(0x265)](_0x4a9a33){const _0x313b95=_0x5d5271;return this[_0x313b95(0x245)][_0x313b95(0x230)](_0x4a9a33)||await this['_startLiveShareCoordinator'](_0x4a9a33),this[_0x313b95(0x245)][_0x313b95(0x247)](_0x4a9a33);}[_0x5d5271(0x20c)](_0x130dd2){const _0x431821=_0x5d5271;var _0x20f069;return(_0x20f069=this[_0x431821(0x245)][_0x431821(0x247)](_0x130dd2))==null?null:_0x20f069;}[_0x5d5271(0x221)](){const _0x36a387=_0x5d5271;this[_0x36a387(0x253)][_0x36a387(0x215)](n['UniverInstanceType'][_0x36a387(0x214)])[_0x36a387(0x26e)]((0x0,a[_0x36a387(0x1ef)])(this['dispose$']))[_0x36a387(0x217)](async _0x351c09=>{const _0x36c060=_0x36a387;let _0x29c1bc=_0x351c09[_0x36c060(0x21e)][_0x36c060(0x21f)]();this[_0x36c060(0x245)][_0x36c060(0x230)](_0x29c1bc)||this[_0x36c060(0x1f0)](_0x29c1bc);}),this[_0x36a387(0x253)][_0x36a387(0x251)](n[_0x36a387(0x264)][_0x36a387(0x214)])['pipe']((0x0,a['takeUntil'])(this[_0x36a387(0x233)]))[_0x36a387(0x217)](_0x3fc093=>{const _0x2eaec3=_0x36a387;let _0x4e5ae0=_0x3fc093[_0x2eaec3(0x21f)](),_0x52ce84=this[_0x2eaec3(0x245)][_0x2eaec3(0x247)](_0x4e5ae0);_0x52ce84==null||_0x52ce84[_0x2eaec3(0x1ff)]();});}async[_0x5d5271(0x1f0)](_0x57a4b4){const _0x5af126=_0x5d5271;let _0x4bbbed=await this['_collabSessionService']['requireSession'](_0x57a4b4),_0x5b90f7=this[_0x5af126(0x234)]['createInstance'](x,_0x57a4b4,_0x4bbbed);return _0x5b90f7[_0x5af126(0x287)](),this['_entities']['set'](_0x57a4b4,_0x5b90f7),_0x5b90f7;}};y=v([_(0x0,n[_0x5d5271(0x291)]),_(0x1,(0x0,n['Inject'])(n[_0x5d5271(0x293)])),_(0x2,(0x0,n[_0x5d5271(0x255)])(t[_0x5d5271(0x20b)]))],y);let b=function(_0x197304){const _0x1e7561=_0x5d5271;return _0x197304[_0x1e7561(0x1f8)]=_0x1e7561(0x26f),_0x197304['IDLE']=_0x1e7561(0x23a),_0x197304[_0x1e7561(0x219)]=_0x1e7561(0x1fa),_0x197304[_0x1e7561(0x283)]=_0x1e7561(0x252),_0x197304['PRESENTING']=_0x1e7561(0x246),_0x197304;}({}),x=class extends n[_0x5d5271(0x280)]{get[_0x5d5271(0x222)](){const _0x556443=_0x5d5271;return this[_0x556443(0x282)][_0x556443(0x203)]();}constructor(_0x259086,_0x485b15,_0x2c05e3,_0x33f08b,_0x17adc3){const _0x5b6ae5=_0x5d5271;super(),this['_unitID']=_0x259086,this[_0x5b6ae5(0x242)]=_0x485b15,this['_configService']=_0x2c05e3,this[_0x5b6ae5(0x28e)]=_0x33f08b,this['_commandService']=_0x17adc3,h(this,'_status$',new i['BehaviorSubject'](_0x5b6ae5(0x23a))),h(this,_0x5b6ae5(0x20f),this[_0x5b6ae5(0x282)][_0x5b6ae5(0x24e)]()),h(this,_0x5b6ae5(0x221),!0x1),h(this,'_commandDisposable',null),h(this,'_presenter',null);}['dispose'](){const _0x462b6f=_0x5d5271;var _0x8b748;(_0x8b748=this[_0x462b6f(0x213)])==null||_0x8b748[_0x462b6f(0x1ff)](),this[_0x462b6f(0x282)][_0x462b6f(0x237)]('idle'),this['_status$'][_0x462b6f(0x231)]();}[_0x5d5271(0x285)](){const _0xa2e7c=_0x5d5271;return this[_0xa2e7c(0x222)];}[_0x5d5271(0x287)](){const _0x52e16e=_0x5d5271;this[_0x52e16e(0x221)]||(this[_0x52e16e(0x221)]=!0x0,this[_0x52e16e(0x242)][_0x52e16e(0x27b)]['pipe']((0x0,a['takeUntil'])(this[_0x52e16e(0x233)]))[_0x52e16e(0x217)](_0x3a6f4d=>{const _0x5d8f22=_0x52e16e;switch(_0x3a6f4d){case t[_0x5d8f22(0x1e4)][_0x5d8f22(0x1f8)]:this[_0x5d8f22(0x1fc)]();break;case t[_0x5d8f22(0x1e4)][_0x5d8f22(0x24d)]:this[_0x5d8f22(0x27e)]();break;default:}}),this[_0x52e16e(0x242)][_0x52e16e(0x273)]['pipe']((0x0,a['takeUntil'])(this[_0x52e16e(0x233)]))[_0x52e16e(0x217)](_0x1c6982=>{const _0x2f19d1=_0x52e16e;let {eventID:_0x480419}=_0x1c6982;switch(_0x480419){case e[_0x2f19d1(0x248)]['LIVESHARE_NEW_HOST']:this[_0x2f19d1(0x250)](_0x1c6982);break;case e[_0x2f19d1(0x248)][_0x2f19d1(0x235)]:this[_0x2f19d1(0x211)](_0x1c6982);break;case e[_0x2f19d1(0x248)]['LIVESHARE_TERMINATE']:this[_0x2f19d1(0x2a2)]();break;case e[_0x2f19d1(0x248)]['NEW_CHANGESETS']:this[_0x2f19d1(0x22e)](_0x1c6982);break;default:}}));}[_0x5d5271(0x256)](){const _0x591ee5=_0x5d5271;this[_0x591ee5(0x242)]['send']({'eventID':e[_0x591ee5(0x248)][_0x591ee5(0x290)],'data':{'unitID':this[_0x591ee5(0x299)],'userID':this[_0x591ee5(0x242)]['getMemberID']()}},this['_unitID']);}[_0x5d5271(0x276)](){const _0x52d099=_0x5d5271;this[_0x52d099(0x222)]===_0x52d099(0x246)&&(this['_status$']['next'](_0x52d099(0x23a)),this['_collabSession']['send']({'eventID':e[_0x52d099(0x248)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x52d099(0x299)]}},this[_0x52d099(0x299)]));}[_0x5d5271(0x200)](){const _0x2c149f=_0x5d5271;this[_0x2c149f(0x222)]===_0x2c149f(0x252)&&(this[_0x2c149f(0x282)]['next'](_0x2c149f(0x1fa)),this[_0x2c149f(0x286)]());}['stopFollowing'](){const _0x11d114=_0x5d5271;this[_0x11d114(0x222)]===_0x11d114(0x1fa)&&this[_0x11d114(0x275)]();}[_0x5d5271(0x250)](_0x3537ec){const _0x1bf8e3=_0x5d5271;let {presenter:_0x2ab7b2}=_0x3537ec['data'],_0x2d43a4=this[_0x1bf8e3(0x242)][_0x1bf8e3(0x208)]();this[_0x1bf8e3(0x209)]=_0x2ab7b2,_0x2ab7b2===_0x2d43a4?(this[_0x1bf8e3(0x275)](),this[_0x1bf8e3(0x27f)]()):this[_0x1bf8e3(0x222)]!=='not-following'&&(this[_0x1bf8e3(0x25b)](),this[_0x1bf8e3(0x286)]());}[_0x5d5271(0x239)](){const _0x4ebbdf=_0x5d5271;let _0x24251c={'eventID':e[_0x4ebbdf(0x248)][_0x4ebbdf(0x202)]};this[_0x4ebbdf(0x242)][_0x4ebbdf(0x212)](_0x24251c,this[_0x4ebbdf(0x299)]);}[_0x5d5271(0x2a2)](){const _0x5151f7=_0x5d5271;this['_presenter']=null,this[_0x5151f7(0x222)]!==_0x5151f7(0x246)&&this[_0x5151f7(0x204)]();}['_handleNewChangeSets'](_0x46e747){const _0x18b3c0=_0x5d5271;if(this[_0x18b3c0(0x222)]===_0x18b3c0(0x1fa)&&this[_0x18b3c0(0x209)]===_0x46e747['data']['memberID']){let _0x3569f0=(0x0,e[_0x18b3c0(0x26b)])(_0x46e747[_0x18b3c0(0x22a)])[_0x18b3c0(0x1e5)][_0x18b3c0(0x23f)]()[_0x18b3c0(0x240)](_0x553fa8=>_0x553fa8['id']===r[_0x18b3c0(0x1e8)]['id']);if(_0x3569f0){let _0x52f60d=_0x3569f0['params'][_0x18b3c0(0x1f6)],_0x20f850=_0x3569f0[_0x18b3c0(0x278)][_0x18b3c0(0x24b)]['id'];setTimeout(()=>{const _0x48010d=_0x18b3c0;this[_0x48010d(0x1f7)]['executeCommand'](r['SetWorksheetActiveOperation']['id'],{'unitId':_0x52f60d,'subUnitId':_0x20f850},{'fromCollab':!0x0});});}}}[_0x5d5271(0x27f)](){const _0x1268f6=_0x5d5271;var _0x532116;(_0x532116=this[_0x1268f6(0x213)])==null||_0x532116[_0x1268f6(0x1ff)](),this[_0x1268f6(0x282)]['next'](_0x1268f6(0x246));let _0x178ffb=new Map(),_0x15e078=this[_0x1268f6(0x213)]=new n['DisposableCollection']();_0x15e078[_0x1268f6(0x294)]((0x0,n['toDisposable'])(()=>{const _0x26cddd=_0x1268f6;_0x178ffb['forEach'](({subject:_0x39d523,subscription:_0x9e1abc})=>{const _0x34dda8=_0x4057;_0x9e1abc[_0x34dda8(0x260)](),_0x39d523['complete']();}),_0x178ffb[_0x26cddd(0x228)]();})),_0x15e078[_0x1268f6(0x294)](this['_commandService'][_0x1268f6(0x298)](_0x685b17=>{const _0x2860bd=_0x1268f6;if(_0x685b17[_0x2860bd(0x29f)]!==n[_0x2860bd(0x216)][_0x2860bd(0x23b)]||!this['_liveShareService']['shouldShareOperation'](_0x685b17['id']))return;let {id:_0x53da3f}=_0x685b17,_0xba65f3;if(_0x178ffb[_0x2860bd(0x230)](_0x53da3f))_0xba65f3=_0x178ffb[_0x2860bd(0x247)](_0x53da3f)[_0x2860bd(0x232)];else{var _0x2a014d;_0xba65f3=new i[(_0x2860bd(0x269))]();let _0x388129=_0xba65f3[_0x2860bd(0x26e)]((0x0,a[_0x2860bd(0x28f)])((_0x2a014d=this[_0x2860bd(0x207)][_0x2860bd(0x1eb)](_0x2860bd(0x226)))==null?0xc8:_0x2a014d,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3f3da2=>{const _0x515756=_0x2860bd;this[_0x515756(0x242)]['send']({'eventID':e['CollaborationEvent'][_0x515756(0x235)],'data':{'unitID':this[_0x515756(0x299)],'operations':{[_0x3f3da2['id']]:{'id':_0x3f3da2['id'],'params':JSON[_0x515756(0x229)](_0x3f3da2[_0x515756(0x278)])}}}},this[_0x515756(0x299)]);});_0x178ffb[_0x2860bd(0x261)](_0x53da3f,{'subject':_0xba65f3,'subscription':_0x388129});}_0xba65f3[_0x2860bd(0x237)](_0x685b17);})),this[_0x1268f6(0x28e)][_0x1268f6(0x1ee)](this['_unitID'])[_0x1268f6(0x292)](_0x7d7014=>this[_0x1268f6(0x242)][_0x1268f6(0x212)]({'eventID':e[_0x1268f6(0x248)][_0x1268f6(0x235)],'data':{'unitID':this[_0x1268f6(0x299)],'operations':{[_0x7d7014['id']]:{'id':_0x7d7014['id'],'params':JSON[_0x1268f6(0x229)](_0x7d7014[_0x1268f6(0x278)])}}}},this[_0x1268f6(0x299)]));}[_0x5d5271(0x25b)](){const _0x15e883=_0x5d5271;var _0x3fa4c8;this[_0x15e883(0x282)][_0x15e883(0x237)](_0x15e883(0x23a)),(_0x3fa4c8=this['_commandDisposable'])==null||_0x3fa4c8[_0x15e883(0x1ff)](),this[_0x15e883(0x213)]=null;}[_0x5d5271(0x286)](){const _0x12c89d=_0x5d5271;var _0x1fb638;(_0x1fb638=this[_0x12c89d(0x213)])==null||_0x1fb638[_0x12c89d(0x1ff)](),this[_0x12c89d(0x282)][_0x12c89d(0x237)](_0x12c89d(0x1fa));}[_0x5d5271(0x204)](){const _0x15e7af=_0x5d5271;var _0x28285b;this[_0x15e7af(0x282)][_0x15e7af(0x237)]('idle'),(_0x28285b=this[_0x15e7af(0x213)])==null||_0x28285b[_0x15e7af(0x1ff)](),this[_0x15e7af(0x213)]=null;}['_stopFollowing'](){const _0x53b4a4=_0x5d5271;var _0x9ad4ea;this['_status$'][_0x53b4a4(0x237)](_0x53b4a4(0x252)),(_0x9ad4ea=this[_0x53b4a4(0x213)])==null||_0x9ad4ea[_0x53b4a4(0x1ff)]();}[_0x5d5271(0x211)](_0x5b09d4){const _0x2bb1bf=_0x5d5271;if([_0x2bb1bf(0x246),'not-following',_0x2bb1bf(0x26f)]['includes'](this['_status'])||!_0x5b09d4[_0x2bb1bf(0x22a)][_0x2bb1bf(0x1ed)]||_0x5b09d4[_0x2bb1bf(0x22a)]['presenter']===this[_0x2bb1bf(0x242)][_0x2bb1bf(0x208)]())return;this[_0x2bb1bf(0x222)]==='idle'&&this[_0x2bb1bf(0x286)]();let _0x253df6=_0x5b09d4[_0x2bb1bf(0x22a)]['operations'];Object[_0x2bb1bf(0x296)](_0x253df6)['forEach'](_0x3cdb07=>{const _0xb062db=_0x2bb1bf;this[_0xb062db(0x1f7)]['executeCommand'](_0x3cdb07['id'],_0x3cdb07[_0xb062db(0x278)]?JSON[_0xb062db(0x295)](_0x3cdb07[_0xb062db(0x278)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x56d5fe=_0x5d5271;var _0x3a0f62;this[_0x56d5fe(0x282)][_0x56d5fe(0x237)]('offline'),(_0x3a0f62=this[_0x56d5fe(0x213)])==null||_0x3a0f62[_0x56d5fe(0x1ff)]();}[_0x5d5271(0x27e)](){const _0x3a5001=_0x5d5271;this[_0x3a5001(0x282)][_0x3a5001(0x237)]('idle'),this[_0x3a5001(0x239)]();}};x=v([_(0x2,n[_0x5d5271(0x1f9)]),_(0x3,(0x0,n[_0x5d5271(0x255)])(g)),_(0x4,n['ICommandService'])],x);function _0x4057(_0x2ef9ca,_0x2d2d14){_0x2ef9ca=_0x2ef9ca-0x1e4;const _0x13f465=_0x13f4();let _0x40574a=_0x13f465[_0x2ef9ca];return _0x40574a;}function S(){const _0x3a73cf=_0x5d5271;let _0x2e21bc=(0x0,o[_0x3a73cf(0x274)])(y),_0x2920d0=(0x0,o['useDependency'])(n[_0x3a73cf(0x291)]),_0x20e85f=(0x0,o[_0x3a73cf(0x25f)])(()=>_0x2920d0[_0x3a73cf(0x1f2)](n[_0x3a73cf(0x264)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x271036,_0x31fc07]=(0x0,l[_0x3a73cf(0x2a1)])(null),[_0x30bac1,_0x4b9866]=(0x0,l[_0x3a73cf(0x2a1)])(_0x3a73cf(0x23a)),_0xaea6a3=(0x0,l[_0x3a73cf(0x1fd)])(null);return(0x0,l['useEffect'])(()=>(_0x20e85f&&_0x2e21bc[_0x3a73cf(0x265)](_0x20e85f['getUnitId']())[_0x3a73cf(0x201)](_0x3e7e98=>{const _0x3489c5=_0x3a73cf;_0x31fc07(_0x3e7e98),_0xaea6a3[_0x3489c5(0x1fe)]=_0x3e7e98[_0x3489c5(0x20f)]['subscribe'](_0x4ab0b6=>{_0x4b9866(_0x4ab0b6);});}),()=>{const _0x58ae14=_0x3a73cf;var _0x52f7bf;(_0x52f7bf=_0xaea6a3[_0x58ae14(0x1fe)])==null||_0x52f7bf['unsubscribe'](),_0xaea6a3['current']=null;}),[_0x20e85f,_0x2e21bc]),_0x271036?(0x0,u[_0x3a73cf(0x1fb)])(s['Dropdown'],{'align':_0x3a73cf(0x26d),'disabled':_0x30bac1==='offline','className':_0x3a73cf(0x268),'overlay':(0x0,u[_0x3a73cf(0x1fb)])(C,{'status':_0x30bac1,'coordinator':_0x271036}),'children':(0x0,u[_0x3a73cf(0x1fb)])(_0x3a73cf(0x271),{'className':(0x0,s['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x30bac1===_0x3a73cf(0x26f),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x30bac1!==_0x3a73cf(0x26f)}),'type':_0x3a73cf(0x271),'children':(0x0,u['jsx'])(c['LiveShareIcon'],{})})}):null;}function C(_0x26dc97){const _0x3749e2=_0x5d5271;let {status:_0x32ecf8,coordinator:_0x5073c0}=_0x26dc97;switch(_0x32ecf8){case _0x3749e2(0x23a):return(0x0,u[_0x3749e2(0x1fb)])(w,{'coordinator':_0x5073c0});case _0x3749e2(0x1fa):return(0x0,u[_0x3749e2(0x1fb)])(T,{'coordinator':_0x5073c0});case _0x3749e2(0x252):return(0x0,u[_0x3749e2(0x1fb)])(E,{'coordinator':_0x5073c0});case'offline':return(0x0,u['jsx'])(O,{});case _0x3749e2(0x246):return(0x0,u[_0x3749e2(0x1fb)])(D,{'coordinator':_0x5073c0});default:return null;}}function w(_0x36ddca){const _0xf09a4d=_0x5d5271;let {coordinator:_0x419573}=_0x36ddca;return(0x0,u[_0xf09a4d(0x25a)])(u[_0xf09a4d(0x206)],{'children':[(0x0,u[_0xf09a4d(0x1fb)])('div',{'className':_0xf09a4d(0x284),'children':_0xf09a4d(0x270)}),(0x0,u[_0xf09a4d(0x1fb)])(s[_0xf09a4d(0x1e6)],{'onClick':()=>_0x419573[_0xf09a4d(0x256)](),'children':_0xf09a4d(0x20a)})]});}function T(_0x598cdb){const _0x23bf6d=_0x5d5271;let {coordinator:_0x42af2c}=_0x598cdb;return(0x0,u[_0x23bf6d(0x25a)])(u['Fragment'],{'children':[(0x0,u[_0x23bf6d(0x1fb)])('div',{'className':_0x23bf6d(0x284),'children':_0x23bf6d(0x1f4)}),(0x0,u[_0x23bf6d(0x1fb)])(s[_0x23bf6d(0x1e6)],{'onClick':()=>_0x42af2c[_0x23bf6d(0x288)](),'children':_0x23bf6d(0x20e)})]});}function E(_0x201e71){const _0x1a4051=_0x5d5271;let {coordinator:_0xf60763}=_0x201e71;return(0x0,u[_0x1a4051(0x25a)])(u[_0x1a4051(0x206)],{'children':[(0x0,u[_0x1a4051(0x1fb)])(_0x1a4051(0x297),{'className':_0x1a4051(0x284),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x1a4051(0x1fb)])(s[_0x1a4051(0x1e6)],{'variant':_0x1a4051(0x29c),'onClick':()=>_0xf60763[_0x1a4051(0x200)](),'children':'Start\x20following'})]});}function D(_0x719b8e){const _0x1ee59f=_0x5d5271;let {coordinator:_0x2e3c01}=_0x719b8e;return(0x0,u[_0x1ee59f(0x25a)])(u[_0x1ee59f(0x206)],{'children':[(0x0,u[_0x1ee59f(0x1fb)])('div',{'className':_0x1ee59f(0x284),'children':_0x1ee59f(0x1e9)}),(0x0,u['jsx'])(s[_0x1ee59f(0x1e6)],{'variant':_0x1ee59f(0x210),'onClick':()=>_0x2e3c01[_0x1ee59f(0x276)](),'children':'Stop\x20presenting'})]});}function O(){const _0x3decd5=_0x5d5271;return(0x0,u[_0x3decd5(0x1fb)])(u[_0x3decd5(0x206)],{'children':'You\x27are\x20offline.'});}let k=class extends n['Disposable']{constructor(_0x434dd1,_0x5e4ba3){const _0x30c756=_0x5d5271;super(),this[_0x30c756(0x234)]=_0x434dd1,this[_0x30c756(0x1f3)]=_0x5e4ba3,this[_0x30c756(0x259)]();}[_0x5d5271(0x259)](){const _0x33dc30=_0x5d5271;this['disposeWithMe'](this[_0x33dc30(0x1f3)][_0x33dc30(0x20d)](o[_0x33dc30(0x272)]['HEADER_MENU'],()=>(0x0,o['connectInjector'])(S,this[_0x33dc30(0x234)])));}};k=v([_(0x0,(0x0,n[_0x5d5271(0x255)])(n[_0x5d5271(0x293)])),_(0x1,o[_0x5d5271(0x258)])],k);var A=_0x5d5271(0x218),j=_0x5d5271(0x28d);const M={};let N=class extends n['Disposable']{constructor(_0x29fedb){const _0x47259e=_0x5d5271;super(),this[_0x47259e(0x28e)]=_0x29fedb,this[_0x47259e(0x221)]();}[_0x5d5271(0x221)](){const _0x597f78=_0x5d5271;[d[_0x597f78(0x23c)]['id'],d[_0x597f78(0x22b)]['id'],r[_0x597f78(0x29a)]['id']][_0x597f78(0x292)](_0x20ddc4=>{const _0xf4177=_0x597f78;this[_0xf4177(0x249)](this['_liveShareService']['registerSharedOperation'](_0x20ddc4));});}};N=v([_(0x0,(0x0,n[_0x5d5271(0x255)])(g))],N);let P=class extends n[_0x5d5271(0x23e)]{constructor(_0x246465=M,_0x3b6384,_0x5bed58){const _0x578956=_0x5d5271;super(),this['_config']=_0x246465,this[_0x578956(0x234)]=_0x3b6384,this[_0x578956(0x207)]=_0x5bed58;let {..._0x205669}=(0x0,n[_0x578956(0x26c)])({},M,this[_0x578956(0x25d)]);this[_0x578956(0x207)][_0x578956(0x28a)](_0x578956(0x29d),_0x205669);}[_0x5d5271(0x27c)](){const _0x21c97c=_0x5d5271;(0x0,n[_0x21c97c(0x29b)])(this[_0x21c97c(0x234)],(0x0,n[_0x21c97c(0x1f5)])([[g],[y],[N],[k]],this[_0x21c97c(0x25d)][_0x21c97c(0x281)])),(0x0,n[_0x21c97c(0x1e7)])(this[_0x21c97c(0x234)],[[N]]);}[_0x5d5271(0x205)](){const _0x592db0=_0x5d5271;(0x0,n[_0x592db0(0x1e7)])(this[_0x592db0(0x234)],[[k]]);}};h(P,_0x5d5271(0x29f),n[_0x5d5271(0x264)]['UNIVER_UNKNOWN']),h(P,_0x5d5271(0x224),_0x5d5271(0x22c)),h(P,'packageName',A),h(P,_0x5d5271(0x24f),j),P=v([(0x0,n[_0x5d5271(0x22f)])(t[_0x5d5271(0x238)]),_(0x1,(0x0,n['Inject'])(n[_0x5d5271(0x293)])),_(0x2,n[_0x5d5271(0x1f9)])],P),Object[_0x5d5271(0x279)](exports,_0x5d5271(0x220),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x5d5271(0x23d)]=S,Object['defineProperty'](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x5d5271(0x2a0)]=g,exports['LiveShareStatus']=b,Object[_0x5d5271(0x279)](exports,_0x5d5271(0x28b),{'enumerable':!0x0,'get':function(){return P;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4f8f(){const _0x5d8927=['startPresenting','114lzODbz','get','2187752GtBAlR','30AOZfcI','No\x20active\x20workbook\x20found.','getCurrentUnitOfType','UNIVER_SHEET','symbol','extend','2012ktHnKJ','string','150hNoteb','tryStartPresenting','6554568qXemYU','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','iterator','defineProperty','32026170kuDmDJ','_liveShareController','getUnitId','352496ZsWpYe','getLiveShareCoordinatorSync','8058618jllkMh','221495pfcgHU','call','getLiveShareStatus','startFollowing','object','constructor','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','stopFollowing','10XSLIqF','getStatus','stopPresenting'];_0x4f8f=function(){return _0x5d8927;};return _0x4f8f();}const _0xe5ece8=_0xfb78;(function(_0x1d622b,_0x489713){const _0x5d0343=_0xfb78,_0x519da6=_0x1d622b();while(!![]){try{const _0x86bbbc=parseInt(_0x5d0343(0xe4))/0x1*(-parseInt(_0x5d0343(0xe2))/0x2)+-parseInt(_0x5d0343(0xdc))/0x3*(parseInt(_0x5d0343(0xee))/0x4)+parseInt(_0x5d0343(0xf1))/0x5*(parseInt(_0x5d0343(0xd9))/0x6)+-parseInt(_0x5d0343(0xdb))/0x7+-parseInt(_0x5d0343(0xe6))/0x8+-parseInt(_0x5d0343(0xf0))/0x9*(parseInt(_0x5d0343(0xd5))/0xa)+parseInt(_0x5d0343(0xeb))/0xb;if(_0x86bbbc===_0x489713)break;else _0x519da6['push'](_0x519da6['shift']());}catch(_0x196315){_0x519da6['push'](_0x519da6['shift']());}}}(_0x4f8f,0xa95f8));import{LiveShareController as _0x9b52ec,LiveShareStatus as _0x16f243}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x3109cc,UniverInstanceType as _0x44c09a}from'@univerjs/core';import{FEnum as _0x31875d,FUniver as _0x125cd6}from'@univerjs/core/facade';function o(_0x425763){'@babel/helpers - typeof';const _0x21d674=_0xfb78;return o=typeof Symbol==_0x21d674(0xd3)&&typeof Symbol[_0x21d674(0xe9)]==_0x21d674(0xe0)?function(_0x5886a0){return typeof _0x5886a0;}:function(_0x39db0d){const _0x147edb=_0x21d674;return _0x39db0d&&typeof Symbol==_0x147edb(0xd3)&&_0x39db0d[_0x147edb(0xd0)]===Symbol&&_0x39db0d!==Symbol['prototype']?_0x147edb(0xe0):typeof _0x39db0d;},o(_0x425763);}function s(_0x2a0f34,_0x41206e){const _0x248cd5=_0xfb78;if(o(_0x2a0f34)!=_0x248cd5(0xcf)||!_0x2a0f34)return _0x2a0f34;var _0x5c6d8a=_0x2a0f34[Symbol[_0x248cd5(0xd1)]];if(_0x5c6d8a!==void 0x0){var _0x410b61=_0x5c6d8a[_0x248cd5(0xf2)](_0x2a0f34,_0x41206e||'default');if(o(_0x410b61)!=_0x248cd5(0xcf))return _0x410b61;throw TypeError(_0x248cd5(0xd2));}return(_0x41206e===_0x248cd5(0xe3)?String:Number)(_0x2a0f34);}function c(_0x546bc5){const _0x46f6a4=_0xfb78;var _0x200c95=s(_0x546bc5,_0x46f6a4(0xe3));return o(_0x200c95)=='symbol'?_0x200c95:_0x200c95+'';}function l(_0x34d1e3,_0x9ec152,_0x2a2ebd){const _0x5d76b0=_0xfb78;return(_0x9ec152=c(_0x9ec152))in _0x34d1e3?Object[_0x5d76b0(0xea)](_0x34d1e3,_0x9ec152,{'value':_0x2a2ebd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34d1e3[_0x9ec152]=_0x2a2ebd,_0x34d1e3;}var u=class extends _0x125cd6{constructor(..._0x4f5e0d){const _0x1d889b=_0xfb78;super(..._0x4f5e0d),l(this,_0x1d889b(0xec),void 0x0);}['_initialize'](_0x584002){const _0x2492ed=_0xfb78;this[_0x2492ed(0xec)]=_0x584002[_0x2492ed(0xda)](_0x9b52ec);}[_0xe5ece8(0xcd)](){const _0x5798ea=_0xe5ece8;var _0x31686e;let _0x38ea45=this[_0x5798ea(0xe7)][_0x5798ea(0xda)](_0x3109cc)['getCurrentUnitOfType'](_0x44c09a[_0x5798ea(0xdf)]);if(!_0x38ea45)throw Error(_0x5798ea(0xdd));let _0x531a4d=_0x38ea45[_0x5798ea(0xed)](),_0x1a583f=this[_0x5798ea(0xec)][_0x5798ea(0xef)](_0x531a4d);return(_0x31686e=_0x1a583f==null?void 0x0:_0x1a583f[_0x5798ea(0xd6)]())==null?_0x16f243['IDLE']:_0x31686e;}[_0xe5ece8(0xce)](){const _0x25084a=_0xe5ece8;let _0x5db284=this[_0x25084a(0xe7)]['get'](_0x3109cc)['getCurrentUnitOfType'](_0x44c09a[_0x25084a(0xdf)]);if(!_0x5db284)throw Error(_0x25084a(0xdd));let _0x1e01ae=_0x5db284[_0x25084a(0xed)](),_0x11eaab=this['_liveShareController'][_0x25084a(0xef)](_0x1e01ae);if(!_0x11eaab)throw Error(_0x25084a(0xe8));_0x11eaab[_0x25084a(0xce)]();}[_0xe5ece8(0xd4)](){const _0x4328ff=_0xe5ece8;let _0x43021a=this[_0x4328ff(0xe7)][_0x4328ff(0xda)](_0x3109cc)[_0x4328ff(0xde)](_0x44c09a[_0x4328ff(0xdf)]);if(!_0x43021a)throw Error(_0x4328ff(0xdd));let _0x18d5fe=_0x43021a[_0x4328ff(0xed)](),_0x222282=this[_0x4328ff(0xec)]['getLiveShareCoordinatorSync'](_0x18d5fe);if(!_0x222282)throw Error(_0x4328ff(0xe8));_0x222282['stopFollowing']();}[_0xe5ece8(0xd8)](){const _0x26a820=_0xe5ece8;let _0x83c3a5=this[_0x26a820(0xe7)]['get'](_0x3109cc)[_0x26a820(0xde)](_0x44c09a['UNIVER_SHEET']);if(!_0x83c3a5)throw Error('No\x20active\x20workbook\x20found.');let _0x97e1b1=_0x83c3a5[_0x26a820(0xed)](),_0x5eba6f=this[_0x26a820(0xec)]['getLiveShareCoordinatorSync'](_0x97e1b1);if(!_0x5eba6f)throw Error(_0x26a820(0xe8));_0x5eba6f[_0x26a820(0xe5)]();}[_0xe5ece8(0xd7)](){const _0x56973d=_0xe5ece8;let _0x49dd5f=this[_0x56973d(0xe7)][_0x56973d(0xda)](_0x3109cc)[_0x56973d(0xde)](_0x44c09a[_0x56973d(0xdf)]);if(!_0x49dd5f)throw Error(_0x56973d(0xdd));let _0x59c903=_0x49dd5f[_0x56973d(0xed)](),_0x9c1691=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x59c903);if(!_0x9c1691)throw Error(_0x56973d(0xe8));_0x9c1691['stopPresenting']();}};_0x125cd6[_0xe5ece8(0xe1)](u);var d=class extends _0x31875d{get['LiveShareStatusEnum'](){return _0x16f243;}};_0x31875d[_0xe5ece8(0xe1)](d);function _0xfb78(_0xfcfc91,_0x35bdcb){_0xfcfc91=_0xfcfc91-0xcd;const _0x4f8f68=_0x4f8f();let _0xfb7887=_0x4f8f68[_0xfcfc91];return _0xfb7887;}export{};
1
+ const _0x4230ab=_0x4d7f;(function(_0xc11408,_0x9afe8b){const _0x38fe34=_0x4d7f,_0x5b1d1a=_0xc11408();while(!![]){try{const _0x2b9270=-parseInt(_0x38fe34(0x19e))/0x1*(parseInt(_0x38fe34(0x19a))/0x2)+-parseInt(_0x38fe34(0x1b4))/0x3+parseInt(_0x38fe34(0x1a0))/0x4*(parseInt(_0x38fe34(0x1b3))/0x5)+parseInt(_0x38fe34(0x1b8))/0x6+parseInt(_0x38fe34(0x19c))/0x7*(-parseInt(_0x38fe34(0x1a7))/0x8)+parseInt(_0x38fe34(0x19b))/0x9+-parseInt(_0x38fe34(0x1af))/0xa*(-parseInt(_0x38fe34(0x1a6))/0xb);if(_0x2b9270===_0x9afe8b)break;else _0x5b1d1a['push'](_0x5b1d1a['shift']());}catch(_0x32edb4){_0x5b1d1a['push'](_0x5b1d1a['shift']());}}}(_0x4e90,0x78b03));import{LiveShareController as _0x48788c,LiveShareStatus as _0xf80c85}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x14008c,UniverInstanceType as _0x454af0}from'@univerjs/core';function _0x4d7f(_0x3a3295,_0x25d797){_0x3a3295=_0x3a3295-0x198;const _0x4e9005=_0x4e90();let _0x4d7f1e=_0x4e9005[_0x3a3295];return _0x4d7f1e;}import{FEnum as _0x23328a,FUniver as _0x27d841}from'@univerjs/core/facade';function o(_0x14c7d2){'@babel/helpers - typeof';const _0x2d0aea=_0x4d7f;return o=typeof Symbol==_0x2d0aea(0x19d)&&typeof Symbol[_0x2d0aea(0x1ae)]==_0x2d0aea(0x1a1)?function(_0xffbf65){return typeof _0xffbf65;}:function(_0x3273e7){const _0x50f874=_0x2d0aea;return _0x3273e7&&typeof Symbol==_0x50f874(0x19d)&&_0x3273e7['constructor']===Symbol&&_0x3273e7!==Symbol[_0x50f874(0x1b0)]?'symbol':typeof _0x3273e7;},o(_0x14c7d2);}function _0x4e90(){const _0x23cde2=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','_liveShareController','get','startPresenting','No\x20active\x20workbook\x20found.','24398VrCtjv','1030689rAGlqP','201901wjswQQ','function','53mwQzNO','object','4GeIbzd','symbol','string','LiveShareStatusEnum','getLiveShareStatus','defineProperty','4651889mwCjFs','88PbUDic','getStatus','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','_injector','tryStartPresenting','iterator','40ZhLPSK','prototype','IDLE','stopPresenting','389135kOsevZ','2355750rsYCfI','_initialize','stopFollowing','getCurrentUnitOfType','2156790TiPhjS','getUnitId'];_0x4e90=function(){return _0x23cde2;};return _0x4e90();}function s(_0x5a2645,_0x39e7d2){const _0x5b53bf=_0x4d7f;if(o(_0x5a2645)!=_0x5b53bf(0x19f)||!_0x5a2645)return _0x5a2645;var _0x3e1176=_0x5a2645[Symbol['toPrimitive']];if(_0x3e1176!==void 0x0){var _0x30bc36=_0x3e1176['call'](_0x5a2645,_0x39e7d2||'default');if(o(_0x30bc36)!=_0x5b53bf(0x19f))return _0x30bc36;throw TypeError(_0x5b53bf(0x1ba));}return(_0x39e7d2===_0x5b53bf(0x1a2)?String:Number)(_0x5a2645);}function c(_0x3f6610){var _0x35e888=s(_0x3f6610,'string');return o(_0x35e888)=='symbol'?_0x35e888:_0x35e888+'';}function l(_0x82750f,_0x1a3a57,_0x4c652c){const _0x97a2a0=_0x4d7f;return(_0x1a3a57=c(_0x1a3a57))in _0x82750f?Object[_0x97a2a0(0x1a5)](_0x82750f,_0x1a3a57,{'value':_0x4c652c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x82750f[_0x1a3a57]=_0x4c652c,_0x82750f;}var u=class extends _0x27d841{constructor(..._0x17a628){const _0x25f7ec=_0x4d7f;super(..._0x17a628),l(this,_0x25f7ec(0x1bc),void 0x0);}[_0x4230ab(0x1b5)](_0x371262){const _0x33a8bf=_0x4230ab;this[_0x33a8bf(0x1bc)]=_0x371262[_0x33a8bf(0x1bd)](_0x48788c);}[_0x4230ab(0x1a4)](){const _0x45904a=_0x4230ab;var _0x3159e0;let _0x499676=this[_0x45904a(0x1ac)][_0x45904a(0x1bd)](_0x14008c)[_0x45904a(0x1b7)](_0x454af0[_0x45904a(0x1ab)]);if(!_0x499676)throw Error(_0x45904a(0x199));let _0x5dd476=_0x499676[_0x45904a(0x1b9)](),_0x2f894f=this[_0x45904a(0x1bc)][_0x45904a(0x1a9)](_0x5dd476);return(_0x3159e0=_0x2f894f==null?void 0x0:_0x2f894f[_0x45904a(0x1a8)]())==null?_0xf80c85[_0x45904a(0x1b1)]:_0x3159e0;}['startFollowing'](){const _0xac4e73=_0x4230ab;let _0x3ba3ac=this[_0xac4e73(0x1ac)][_0xac4e73(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x3ba3ac)throw Error(_0xac4e73(0x199));let _0x310149=_0x3ba3ac[_0xac4e73(0x1b9)](),_0x4452a3=this[_0xac4e73(0x1bc)]['getLiveShareCoordinatorSync'](_0x310149);if(!_0x4452a3)throw Error(_0xac4e73(0x1aa));_0x4452a3['startFollowing']();}[_0x4230ab(0x1b6)](){const _0x46c0c2=_0x4230ab;let _0x423aa1=this[_0x46c0c2(0x1ac)][_0x46c0c2(0x1bd)](_0x14008c)[_0x46c0c2(0x1b7)](_0x454af0['UNIVER_SHEET']);if(!_0x423aa1)throw Error(_0x46c0c2(0x199));let _0x48a972=_0x423aa1[_0x46c0c2(0x1b9)](),_0x4cdaae=this[_0x46c0c2(0x1bc)]['getLiveShareCoordinatorSync'](_0x48a972);if(!_0x4cdaae)throw Error(_0x46c0c2(0x1aa));_0x4cdaae[_0x46c0c2(0x1b6)]();}[_0x4230ab(0x198)](){const _0x169c08=_0x4230ab;let _0xde028c=this[_0x169c08(0x1ac)]['get'](_0x14008c)[_0x169c08(0x1b7)](_0x454af0[_0x169c08(0x1ab)]);if(!_0xde028c)throw Error(_0x169c08(0x199));let _0xf450aa=_0xde028c[_0x169c08(0x1b9)](),_0x5551fe=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf450aa);if(!_0x5551fe)throw Error(_0x169c08(0x1aa));_0x5551fe[_0x169c08(0x1ad)]();}['stopPresenting'](){const _0x358993=_0x4230ab;let _0x4d33b3=this[_0x358993(0x1ac)][_0x358993(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x4d33b3)throw Error(_0x358993(0x199));let _0x24b69f=_0x4d33b3['getUnitId'](),_0x2e3862=this[_0x358993(0x1bc)][_0x358993(0x1a9)](_0x24b69f);if(!_0x2e3862)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2e3862[_0x358993(0x1b2)]();}};_0x27d841[_0x4230ab(0x1bb)](u);var d=class extends _0x23328a{get[_0x4230ab(0x1a3)](){return _0xf80c85;}};_0x23328a[_0x4230ab(0x1bb)](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2fef7c=_0x5d67;(function(_0x289af8,_0x57bbe8){const _0x138244=_0x5d67,_0x47e91a=_0x289af8();while(!![]){try{const _0x217bd0=-parseInt(_0x138244(0x1c8))/0x1+-parseInt(_0x138244(0x1f2))/0x2+parseInt(_0x138244(0x1ae))/0x3+parseInt(_0x138244(0x203))/0x4+-parseInt(_0x138244(0x1e9))/0x5*(-parseInt(_0x138244(0x221))/0x6)+-parseInt(_0x138244(0x1de))/0x7*(parseInt(_0x138244(0x216))/0x8)+parseInt(_0x138244(0x21c))/0x9*(parseInt(_0x138244(0x214))/0xa);if(_0x217bd0===_0x57bbe8)break;else _0x47e91a['push'](_0x47e91a['shift']());}catch(_0x1b6eda){_0x47e91a['push'](_0x47e91a['shift']());}}}(_0x1586,0x97ebf));import{CollaborationEvent as _0x478db0,parseProtocolChangeset as _0xcd04f0}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x512147,SessionStatus as _0x498991,UniverCollaborationClientPlugin as _0x425914}from'@univerjs-pro/collaboration-client';import{CommandType as _0x1c342c,DependentOn as _0x4cd9e3,Disposable as _0x34af2c,DisposableCollection as _0x4c4ac3,ICommandService as _0x45569a,IConfigService as _0x1d7a2a,IUniverInstanceService as _0x37e2f7,Inject as _0x58ba95,Injector as _0x1d5427,Plugin as _0x5703cb,RxDisposable as _0x37cd84,UniverInstanceType as _0x484186,merge as _0x4ef3b5,mergeOverrideWithDependencies as _0xb5819d,registerDependencies as _0x118c94,toDisposable as _0x11276b,touchDependencies as _0xce53d7}from'@univerjs/core';function _0x1586(){const _0x2e8a65=['next','event$','getLiveShareCoordinator','startFollowing','@univerjs-pro/live-share','_startPresenting','_status$','type','LIVESHARE_OPERATION','unit','_handleTerminate','status$','FOLLOWING','IDLE','idle','53382iWMhlk','send','packageName','dispose','onCommandExecuted','override','univer-mb-3\x20univer-w-full\x20univer-text-sm','tryStartPresenting','_init','_beIdle','function','7130SbuLvQ','_startFollowing','disposeWithMe','_mountLiveShare','SAME_OPERATION_SHARE_INTERVAL','set','_commandService','stopPresenting','parse','493428eOwyFu','UNIVER_LIVE_SHARE_PLUGIN','call','then','params','_stopPresenting','requireSession','dispose$','Stop\x20presenting','onRendered','_configService','forEach','Start\x20following','toPrimitive','iterator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','not-following','3008852cAOPDK','_collabSessionService','1.0.0-alpha.0','map','data','stopFollowing','sessionStatus$','LIVESHARE_FETCH_OPERATIONS','registerComponent','length','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_univerInstanceService','createInstance','_handleOperation','_reporters','_handleNewHost','570wWuYoL','LIVESHARE_NEW_HOST','1168hBveuz','shouldShareOperation','unitId','getLiveShareCoordinatorSync','_injector','_presenter','240201mXjrLH','executeCommand','pipe','_status','getMemberID','1044zxIGqW','presenting','add','You\x27re\x20following\x20the\x20presenter','div','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_uiPartsService','get','_fetchOperations','mutations','getUnitId','getConfig','OPERATION','offline','current','getValue','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','pluginName','registerSharedOperation','unsubscribe','memberID','_commandDisposable','has','registerInitialStateReporter','Present\x20this\x20document','_unitID','button','NOT_FOLLOWING','UNIVER_SHEET','NEW_CHANGESETS','You\x27re\x20not\x20following\x20the\x20presenter','627915IhdPcZ','_handleNewChangeSets','You\x27are\x20offline.','getTypeOfUnitDisposed$','OFFLINE','complete','UNIVER_UNKNOWN','_entities','_handleOffline','_collabSession','find','clear','_sharedOperations','sheet','prototype','_liveShareService','LIVESHARE_REQUEST_HOST','string','defineProperty','init','PRESENTING','stringify','following','symbol','object','delete','748534YZCHhW','asObservable','_stopFollowing','default','subscribe','_config','presenter'];_0x1586=function(){return _0x2e8a65;};return _0x1586();}import{InsertSheetMutation as _0x500e77,SetWorksheetActiveOperation as _0x1f3228}from'@univerjs/sheets';import{BehaviorSubject as _0x1774ef,Subject as _0xe151d8}from'rxjs';import{takeUntil as _0x7a005d,throttleTime as _0x5d90f3}from'rxjs/operators';import{BuiltInUIPart as _0x1794fc,IUIPartsService as _0x10d088,connectInjector as _0x1516ea,useDependency as _0x4a7844,useObservable as _0x516d61}from'@univerjs/ui';import{Button as _0x55f00c,Dropdown as _0x53bcb1,clsx as _0x56d0d4}from'@univerjs/design';import{LiveShareIcon as _0x509d2b}from'@univerjs/icons';import{useEffect as _0x1fb6ee,useRef as _0x5219a6,useState as _0x93df6b}from'react';import{Fragment as _0x4ecb73,jsx as _0x15f794,jsxs as _0x3b419a}from'react/jsx-runtime';import{SetScrollOperation as _0x3d0847,SetZoomRatioOperation as _0x590899}from'@univerjs/sheets-ui';function R(_0x44a525){'@babel/helpers - typeof';const _0x12392e=_0x5d67;return R=typeof Symbol==_0x12392e(0x1e8)&&typeof Symbol[_0x12392e(0x200)]==_0x12392e(0x1c5)?function(_0xda6c25){return typeof _0xda6c25;}:function(_0x145ab0){const _0x187458=_0x12392e;return _0x145ab0&&typeof Symbol=='function'&&_0x145ab0['constructor']===Symbol&&_0x145ab0!==Symbol[_0x187458(0x1bc)]?'symbol':typeof _0x145ab0;},R(_0x44a525);}function z(_0x3b2acc,_0x468db6){const _0x1c7537=_0x5d67;if(R(_0x3b2acc)!=_0x1c7537(0x1c6)||!_0x3b2acc)return _0x3b2acc;var _0x4c5321=_0x3b2acc[Symbol[_0x1c7537(0x1ff)]];if(_0x4c5321!==void 0x0){var _0x439969=_0x4c5321[_0x1c7537(0x1f4)](_0x3b2acc,_0x468db6||_0x1c7537(0x1cb));if(R(_0x439969)!=_0x1c7537(0x1c6))return _0x439969;throw TypeError(_0x1c7537(0x226));}return(_0x468db6===_0x1c7537(0x1bf)?String:Number)(_0x3b2acc);}function B(_0x2566b0){const _0xe9f83=_0x5d67;var _0x1485dd=z(_0x2566b0,_0xe9f83(0x1bf));return R(_0x1485dd)==_0xe9f83(0x1c5)?_0x1485dd:_0x1485dd+'';}function V(_0x52271f,_0x2ed73e,_0x39d149){const _0x2dcecd=_0x5d67;return(_0x2ed73e=B(_0x2ed73e))in _0x52271f?Object[_0x2dcecd(0x1c0)](_0x52271f,_0x2ed73e,{'value':_0x39d149,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52271f[_0x2ed73e]=_0x39d149,_0x52271f;}var H=class extends _0x34af2c{constructor(..._0x55b199){const _0x2a9ef3=_0x5d67;super(..._0x55b199),V(this,_0x2a9ef3(0x1ba),new Set()),V(this,_0x2a9ef3(0x212),new Set());}[_0x2fef7c(0x233)](_0x5f3b57){const _0x38388a=_0x2fef7c;return this[_0x38388a(0x1ba)]['add'](_0x5f3b57),_0x11276b(()=>this['_sharedOperations'][_0x38388a(0x1c7)](_0x5f3b57));}[_0x2fef7c(0x1a6)](_0x5506b9){const _0x100815=_0x2fef7c;return this[_0x100815(0x212)][_0x100815(0x223)](_0x5506b9),_0x11276b(()=>this[_0x100815(0x212)]['delete'](_0x5506b9));}[_0x2fef7c(0x217)](_0x4c009e){const _0x42182d=_0x2fef7c;return this[_0x42182d(0x1ba)][_0x42182d(0x1a5)](_0x4c009e);}['getInitialStates'](_0x22d416){const _0x4aa8fa=_0x2fef7c;return Array['from'](this[_0x4aa8fa(0x212)])[_0x4aa8fa(0x206)](_0x3dd8ca=>_0x3dd8ca(_0x22d416));}};function U(_0x34267e,_0x5a8c8e){return function(_0x5e9d6c,_0x373230){_0x5a8c8e(_0x5e9d6c,_0x373230,_0x34267e);};}function W(_0x422a09,_0x393b5c,_0x515bcb,_0x132d72){const _0x1dfc6a=_0x2fef7c;var _0xe24a46=arguments['length'],_0x2ed574=_0xe24a46<0x3?_0x393b5c:_0x132d72===null?_0x132d72=Object['getOwnPropertyDescriptor'](_0x393b5c,_0x515bcb):_0x132d72,_0x3d44f9;if(typeof Reflect==_0x1dfc6a(0x1c6)&&typeof Reflect['decorate']==_0x1dfc6a(0x1e8))_0x2ed574=Reflect['decorate'](_0x422a09,_0x393b5c,_0x515bcb,_0x132d72);else{for(var _0x27aa0d=_0x422a09[_0x1dfc6a(0x20c)]-0x1;_0x27aa0d>=0x0;_0x27aa0d--)(_0x3d44f9=_0x422a09[_0x27aa0d])&&(_0x2ed574=(_0xe24a46<0x3?_0x3d44f9(_0x2ed574):_0xe24a46>0x3?_0x3d44f9(_0x393b5c,_0x515bcb,_0x2ed574):_0x3d44f9(_0x393b5c,_0x515bcb))||_0x2ed574);}return _0xe24a46>0x3&&_0x2ed574&&Object[_0x1dfc6a(0x1c0)](_0x393b5c,_0x515bcb,_0x2ed574),_0x2ed574;}let G=class extends _0x37cd84{constructor(_0xf901d9,_0x425654,_0x399db5){const _0x25f027=_0x2fef7c;super(),this[_0x25f027(0x20f)]=_0xf901d9,this[_0x25f027(0x21a)]=_0x425654,this[_0x25f027(0x204)]=_0x399db5,V(this,_0x25f027(0x1b5),new Map()),this[_0x25f027(0x1e6)]();}async[_0x2fef7c(0x1d1)](_0x30745d){const _0x218db5=_0x2fef7c;return this['_entities']['has'](_0x30745d)||await this[_0x218db5(0x20e)](_0x30745d),this[_0x218db5(0x1b5)][_0x218db5(0x228)](_0x30745d);}[_0x2fef7c(0x219)](_0x42f9ee){const _0x42a262=_0x2fef7c;var _0x54a086;return(_0x54a086=this[_0x42a262(0x1b5)]['get'](_0x42f9ee))==null?null:_0x54a086;}[_0x2fef7c(0x1e6)](){const _0x33cdbd=_0x2fef7c;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x484186[_0x33cdbd(0x1ab)])[_0x33cdbd(0x21e)](_0x7a005d(this[_0x33cdbd(0x1f9)]))['subscribe'](async _0x15b86d=>{const _0x23d30f=_0x33cdbd;let _0x46332b=_0x15b86d[_0x23d30f(0x1d8)][_0x23d30f(0x22b)]();this[_0x23d30f(0x1b5)]['has'](_0x46332b)||this[_0x23d30f(0x20e)](_0x46332b);}),this[_0x33cdbd(0x20f)][_0x33cdbd(0x1b1)](_0x484186[_0x33cdbd(0x1ab)])[_0x33cdbd(0x21e)](_0x7a005d(this[_0x33cdbd(0x1f9)]))[_0x33cdbd(0x1cc)](_0x5ced9e=>{const _0x49e621=_0x33cdbd;let _0x5e7cf9=_0x5ced9e[_0x49e621(0x22b)](),_0x3cd4ae=this[_0x49e621(0x1b5)][_0x49e621(0x228)](_0x5e7cf9);_0x3cd4ae==null||_0x3cd4ae[_0x49e621(0x1e1)]();});}async[_0x2fef7c(0x20e)](_0x29dce1){const _0x1f7549=_0x2fef7c;let _0x2d66d8=await this[_0x1f7549(0x204)][_0x1f7549(0x1f8)](_0x29dce1),_0x416d10=this['_injector'][_0x1f7549(0x210)](q,_0x29dce1,_0x2d66d8);return _0x416d10[_0x1f7549(0x1c1)](),this[_0x1f7549(0x1b5)][_0x1f7549(0x1ee)](_0x29dce1,_0x416d10),_0x416d10;}};G=W([U(0x0,_0x37e2f7),U(0x1,_0x58ba95(_0x1d5427)),U(0x2,_0x58ba95(_0x512147))],G);let K=function(_0x2506ac){const _0x4ddf04=_0x2fef7c;return _0x2506ac['OFFLINE']='offline',_0x2506ac[_0x4ddf04(0x1dc)]='idle',_0x2506ac[_0x4ddf04(0x1db)]=_0x4ddf04(0x1c4),_0x2506ac[_0x4ddf04(0x1aa)]='not-following',_0x2506ac[_0x4ddf04(0x1c2)]=_0x4ddf04(0x222),_0x2506ac;}({}),q=class extends _0x37cd84{get[_0x2fef7c(0x21f)](){const _0x5c6083=_0x2fef7c;return this[_0x5c6083(0x1d5)][_0x5c6083(0x230)]();}constructor(_0x33ab99,_0x5e0b9f,_0x38876b,_0x45a9f1,_0x478906){const _0x5f4837=_0x2fef7c;super(),this[_0x5f4837(0x1a8)]=_0x33ab99,this[_0x5f4837(0x1b7)]=_0x5e0b9f,this[_0x5f4837(0x1fc)]=_0x38876b,this[_0x5f4837(0x1bd)]=_0x45a9f1,this[_0x5f4837(0x1ef)]=_0x478906,V(this,_0x5f4837(0x1d5),new _0x1774ef(_0x5f4837(0x1dd))),V(this,_0x5f4837(0x1da),this[_0x5f4837(0x1d5)][_0x5f4837(0x1c9)]()),V(this,_0x5f4837(0x1e6),!0x1),V(this,_0x5f4837(0x1a4),null),V(this,_0x5f4837(0x21b),null);}[_0x2fef7c(0x1e1)](){const _0x3ef23e=_0x2fef7c;var _0x5dcb9e;(_0x5dcb9e=this[_0x3ef23e(0x1a4)])==null||_0x5dcb9e[_0x3ef23e(0x1e1)](),this['_status$'][_0x3ef23e(0x1cf)]('idle'),this[_0x3ef23e(0x1d5)][_0x3ef23e(0x1b3)]();}['getStatus'](){const _0x2e6163=_0x2fef7c;return this[_0x2e6163(0x21f)];}['init'](){const _0x48dd2a=_0x2fef7c;this['_init']||(this[_0x48dd2a(0x1e6)]=!0x0,this['_collabSession'][_0x48dd2a(0x209)][_0x48dd2a(0x21e)](_0x7a005d(this['dispose$']))[_0x48dd2a(0x1cc)](_0x145471=>{const _0xaad294=_0x48dd2a;switch(_0x145471){case _0x498991[_0xaad294(0x1b2)]:this[_0xaad294(0x1b6)]();break;case _0x498991['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x48dd2a(0x1b7)][_0x48dd2a(0x1d0)]['pipe'](_0x7a005d(this['dispose$']))[_0x48dd2a(0x1cc)](_0x478d7c=>{const _0x2d5d1a=_0x48dd2a;let {eventID:_0x45249a}=_0x478d7c;switch(_0x45249a){case _0x478db0[_0x2d5d1a(0x215)]:this['_handleNewHost'](_0x478d7c);break;case _0x478db0[_0x2d5d1a(0x1d7)]:this['_handleOperation'](_0x478d7c);break;case _0x478db0[_0x2d5d1a(0x20d)]:this[_0x2d5d1a(0x1d9)]();break;case _0x478db0[_0x2d5d1a(0x1ac)]:this[_0x2d5d1a(0x1af)](_0x478d7c);break;default:}}));}[_0x2fef7c(0x1e5)](){const _0x1bb7b9=_0x2fef7c;this[_0x1bb7b9(0x1b7)][_0x1bb7b9(0x1df)]({'eventID':_0x478db0[_0x1bb7b9(0x1be)],'data':{'unitID':this[_0x1bb7b9(0x1a8)],'userID':this[_0x1bb7b9(0x1b7)]['getMemberID']()}},this[_0x1bb7b9(0x1a8)]);}[_0x2fef7c(0x1f0)](){const _0x1445c6=_0x2fef7c;this[_0x1445c6(0x21f)]==='presenting'&&(this[_0x1445c6(0x1d5)][_0x1445c6(0x1cf)]('idle'),this[_0x1445c6(0x1b7)][_0x1445c6(0x1df)]({'eventID':_0x478db0['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1445c6(0x1a8)]}},this[_0x1445c6(0x1a8)]));}[_0x2fef7c(0x1d2)](){const _0x18cf49=_0x2fef7c;this[_0x18cf49(0x21f)]==='not-following'&&(this[_0x18cf49(0x1d5)][_0x18cf49(0x1cf)](_0x18cf49(0x1c4)),this[_0x18cf49(0x1ea)]());}['stopFollowing'](){const _0x3696ba=_0x2fef7c;this[_0x3696ba(0x21f)]===_0x3696ba(0x1c4)&&this['_stopFollowing']();}[_0x2fef7c(0x213)](_0x424c6c){const _0x38acf8=_0x2fef7c;let {presenter:_0x5bfca6}=_0x424c6c['data'],_0xec1494=this[_0x38acf8(0x1b7)][_0x38acf8(0x220)]();this[_0x38acf8(0x21b)]=_0x5bfca6,_0x5bfca6===_0xec1494?(this[_0x38acf8(0x1ca)](),this[_0x38acf8(0x1d4)]()):this['_status']!==_0x38acf8(0x202)&&(this[_0x38acf8(0x1f7)](),this[_0x38acf8(0x1ea)]());}[_0x2fef7c(0x229)](){const _0x287c75=_0x2fef7c;let _0x1e7c60={'eventID':_0x478db0[_0x287c75(0x20a)]};this[_0x287c75(0x1b7)]['send'](_0x1e7c60,this['_unitID']);}['_handleTerminate'](){const _0x2e9f1e=_0x2fef7c;this[_0x2e9f1e(0x21b)]=null,this['_status']!==_0x2e9f1e(0x222)&&this[_0x2e9f1e(0x1e7)]();}['_handleNewChangeSets'](_0xf2a402){const _0x457761=_0x2fef7c;if(this[_0x457761(0x21f)]===_0x457761(0x1c4)&&this[_0x457761(0x21b)]===_0xf2a402[_0x457761(0x207)][_0x457761(0x1a3)]){let _0x226e38=_0xcd04f0(_0xf2a402[_0x457761(0x207)])[_0x457761(0x22a)]['reverse']()[_0x457761(0x1b8)](_0x29e944=>_0x29e944['id']===_0x500e77['id']);if(_0x226e38){let _0x2775bf=_0x226e38[_0x457761(0x1f6)][_0x457761(0x218)],_0x2ea326=_0x226e38[_0x457761(0x1f6)][_0x457761(0x1bb)]['id'];setTimeout(()=>{const _0x3bfb05=_0x457761;this['_commandService'][_0x3bfb05(0x21d)](_0x1f3228['id'],{'unitId':_0x2775bf,'subUnitId':_0x2ea326},{'fromCollab':!0x0});});}}}[_0x2fef7c(0x1d4)](){const _0x2fbd88=_0x2fef7c;var _0x154ce2;(_0x154ce2=this['_commandDisposable'])==null||_0x154ce2['dispose'](),this[_0x2fbd88(0x1d5)][_0x2fbd88(0x1cf)](_0x2fbd88(0x222));let _0x448227=new Map(),_0x48e064=this[_0x2fbd88(0x1a4)]=new _0x4c4ac3();_0x48e064[_0x2fbd88(0x223)](_0x11276b(()=>{const _0x2b79e5=_0x2fbd88;_0x448227[_0x2b79e5(0x1fd)](({subject:_0x4fd9bc,subscription:_0x129172})=>{const _0x36c609=_0x2b79e5;_0x129172[_0x36c609(0x234)](),_0x4fd9bc['complete']();}),_0x448227[_0x2b79e5(0x1b9)]();})),_0x48e064[_0x2fbd88(0x223)](this[_0x2fbd88(0x1ef)][_0x2fbd88(0x1e2)](_0x467536=>{const _0x3c1dfb=_0x2fbd88;if(_0x467536[_0x3c1dfb(0x1d6)]!==_0x1c342c[_0x3c1dfb(0x22d)]||!this[_0x3c1dfb(0x1bd)][_0x3c1dfb(0x217)](_0x467536['id']))return;let {id:_0x6f4c6c}=_0x467536,_0x2571a6;if(_0x448227[_0x3c1dfb(0x1a5)](_0x6f4c6c))_0x2571a6=_0x448227[_0x3c1dfb(0x228)](_0x6f4c6c)['subject'];else{var _0xb14794;_0x2571a6=new _0xe151d8();let _0x2540d8=_0x2571a6[_0x3c1dfb(0x21e)](_0x5d90f3((_0xb14794=this[_0x3c1dfb(0x1fc)][_0x3c1dfb(0x22c)](_0x3c1dfb(0x1ed)))==null?0xc8:_0xb14794,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3c1dfb(0x1cc)](_0x285ca3=>{const _0x441dc1=_0x3c1dfb;this[_0x441dc1(0x1b7)][_0x441dc1(0x1df)]({'eventID':_0x478db0['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x441dc1(0x1a8)],'operations':{[_0x285ca3['id']]:{'id':_0x285ca3['id'],'params':JSON[_0x441dc1(0x1c3)](_0x285ca3[_0x441dc1(0x1f6)])}}}},this[_0x441dc1(0x1a8)]);});_0x448227[_0x3c1dfb(0x1ee)](_0x6f4c6c,{'subject':_0x2571a6,'subscription':_0x2540d8});}_0x2571a6['next'](_0x467536);})),this[_0x2fbd88(0x1bd)]['getInitialStates'](this[_0x2fbd88(0x1a8)])[_0x2fbd88(0x1fd)](_0x5e7ac3=>this[_0x2fbd88(0x1b7)][_0x2fbd88(0x1df)]({'eventID':_0x478db0[_0x2fbd88(0x1d7)],'data':{'unitID':this['_unitID'],'operations':{[_0x5e7ac3['id']]:{'id':_0x5e7ac3['id'],'params':JSON[_0x2fbd88(0x1c3)](_0x5e7ac3[_0x2fbd88(0x1f6)])}}}},this['_unitID']));}[_0x2fef7c(0x1f7)](){const _0xd9979f=_0x2fef7c;var _0x272f2f;this[_0xd9979f(0x1d5)][_0xd9979f(0x1cf)](_0xd9979f(0x1dd)),(_0x272f2f=this[_0xd9979f(0x1a4)])==null||_0x272f2f[_0xd9979f(0x1e1)](),this[_0xd9979f(0x1a4)]=null;}[_0x2fef7c(0x1ea)](){const _0x206ea6=_0x2fef7c;var _0x1f2bc5;(_0x1f2bc5=this[_0x206ea6(0x1a4)])==null||_0x1f2bc5[_0x206ea6(0x1e1)](),this[_0x206ea6(0x1d5)][_0x206ea6(0x1cf)](_0x206ea6(0x1c4));}[_0x2fef7c(0x1e7)](){const _0x4345c7=_0x2fef7c;var _0x4569b2;this[_0x4345c7(0x1d5)][_0x4345c7(0x1cf)]('idle'),(_0x4569b2=this[_0x4345c7(0x1a4)])==null||_0x4569b2[_0x4345c7(0x1e1)](),this[_0x4345c7(0x1a4)]=null;}[_0x2fef7c(0x1ca)](){const _0x55ba17=_0x2fef7c;var _0x4a54e0;this['_status$'][_0x55ba17(0x1cf)](_0x55ba17(0x202)),(_0x4a54e0=this[_0x55ba17(0x1a4)])==null||_0x4a54e0[_0x55ba17(0x1e1)]();}[_0x2fef7c(0x211)](_0x18cc30){const _0x385f65=_0x2fef7c;if(['presenting','not-following',_0x385f65(0x22e)]['includes'](this[_0x385f65(0x21f)])||!_0x18cc30[_0x385f65(0x207)][_0x385f65(0x1ce)]||_0x18cc30[_0x385f65(0x207)]['presenter']===this[_0x385f65(0x1b7)]['getMemberID']())return;this['_status']===_0x385f65(0x1dd)&&this[_0x385f65(0x1ea)]();let _0x56c30a=_0x18cc30[_0x385f65(0x207)]['operations'];Object['values'](_0x56c30a)[_0x385f65(0x1fd)](_0x197bd7=>{const _0x292971=_0x385f65;this[_0x292971(0x1ef)][_0x292971(0x21d)](_0x197bd7['id'],_0x197bd7[_0x292971(0x1f6)]?JSON[_0x292971(0x1f1)](_0x197bd7[_0x292971(0x1f6)]):null,{'fromCollab':!0x0});});}[_0x2fef7c(0x1b6)](){const _0x165287=_0x2fef7c;var _0x3710d6;this['_status$'][_0x165287(0x1cf)](_0x165287(0x22e)),(_0x3710d6=this[_0x165287(0x1a4)])==null||_0x3710d6['dispose']();}['_handleOnline'](){const _0x4b3547=_0x2fef7c;this['_status$'][_0x4b3547(0x1cf)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x1d7a2a),U(0x3,_0x58ba95(H)),U(0x4,_0x45569a)],q);function J(){const _0x443167=_0x2fef7c;let _0x53933b=_0x4a7844(G),_0x3f214a=_0x4a7844(_0x37e2f7),_0x35e03a=_0x516d61(()=>_0x3f214a['getCurrentTypeOfUnit$'](_0x484186[_0x443167(0x1ab)]),void 0x0,!0x1,[]),[_0x2d79bd,_0x2383bf]=_0x93df6b(null),[_0x17c01d,_0xf6a381]=_0x93df6b(_0x443167(0x1dd)),_0x28fe60=_0x5219a6(null);return _0x1fb6ee(()=>(_0x35e03a&&_0x53933b[_0x443167(0x1d1)](_0x35e03a['getUnitId']())[_0x443167(0x1f5)](_0x3c7d1d=>{const _0x3d0877=_0x443167;_0x2383bf(_0x3c7d1d),_0x28fe60[_0x3d0877(0x22f)]=_0x3c7d1d[_0x3d0877(0x1da)]['subscribe'](_0x97171b=>{_0xf6a381(_0x97171b);});}),()=>{const _0x28a4b3=_0x443167;var _0xd731a1;(_0xd731a1=_0x28fe60[_0x28a4b3(0x22f)])==null||_0xd731a1[_0x28a4b3(0x234)](),_0x28fe60[_0x28a4b3(0x22f)]=null;}),[_0x35e03a,_0x53933b]),_0x2d79bd?_0x15f794(_0x53bcb1,{'align':'end','disabled':_0x17c01d===_0x443167(0x22e),'className':_0x443167(0x231),'overlay':_0x15f794(se,{'status':_0x17c01d,'coordinator':_0x2d79bd}),'children':_0x15f794(_0x443167(0x1a9),{'className':_0x56d0d4(_0x443167(0x201),{'univer-cursor-not-allowed':_0x17c01d===_0x443167(0x22e),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c01d!==_0x443167(0x22e)}),'type':_0x443167(0x1a9),'children':_0x15f794(_0x509d2b,{})})}):null;}function se(_0x55c102){const _0x48c359=_0x2fef7c;let {status:_0x51f5b8,coordinator:_0x387aa5}=_0x55c102;switch(_0x51f5b8){case _0x48c359(0x1dd):return _0x15f794(ce,{'coordinator':_0x387aa5});case _0x48c359(0x1c4):return _0x15f794(le,{'coordinator':_0x387aa5});case _0x48c359(0x202):return _0x15f794(ue,{'coordinator':_0x387aa5});case _0x48c359(0x22e):return _0x15f794(de,{});case _0x48c359(0x222):return _0x15f794(Y,{'coordinator':_0x387aa5});default:return null;}}function ce(_0x92d006){const _0x2f721c=_0x2fef7c;let {coordinator:_0x3bb0d9}=_0x92d006;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794(_0x2f721c(0x225),{'className':_0x2f721c(0x1e4),'children':_0x2f721c(0x1a7)}),_0x15f794(_0x55f00c,{'onClick':()=>_0x3bb0d9[_0x2f721c(0x1e5)](),'children':'Start'})]});}function le(_0x3a9022){const _0x4dfb6a=_0x2fef7c;let {coordinator:_0x12bd06}=_0x3a9022;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794('div',{'className':_0x4dfb6a(0x1e4),'children':_0x4dfb6a(0x224)}),_0x15f794(_0x55f00c,{'onClick':()=>_0x12bd06[_0x4dfb6a(0x208)](),'children':'Stop\x20following'})]});}function ue(_0x6e2716){const _0x465cf3=_0x2fef7c;let {coordinator:_0x322520}=_0x6e2716;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794(_0x465cf3(0x225),{'className':_0x465cf3(0x1e4),'children':_0x465cf3(0x1ad)}),_0x15f794(_0x55f00c,{'variant':'text','onClick':()=>_0x322520[_0x465cf3(0x1d2)](),'children':_0x465cf3(0x1fe)})]});}function _0x5d67(_0x387637,_0x3cede3){_0x387637=_0x387637-0x1a3;const _0x15864d=_0x1586();let _0x5d675a=_0x15864d[_0x387637];return _0x5d675a;}function Y(_0x1c5a53){const _0x30097b=_0x2fef7c;let {coordinator:_0x130552}=_0x1c5a53;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794('div',{'className':_0x30097b(0x1e4),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x15f794(_0x55f00c,{'variant':'default','onClick':()=>_0x130552[_0x30097b(0x1f0)](),'children':_0x30097b(0x1fa)})]});}function de(){const _0x159885=_0x2fef7c;return _0x15f794(_0x4ecb73,{'children':_0x159885(0x1b0)});}let X=class extends _0x34af2c{constructor(_0x11adab,_0x59aa32){const _0x429b61=_0x2fef7c;super(),this[_0x429b61(0x21a)]=_0x11adab,this[_0x429b61(0x227)]=_0x59aa32,this['_mountLiveShare']();}[_0x2fef7c(0x1ec)](){const _0x3239d6=_0x2fef7c;this[_0x3239d6(0x1eb)](this['_uiPartsService'][_0x3239d6(0x20b)](_0x1794fc['HEADER_MENU'],()=>_0x1516ea(J,this[_0x3239d6(0x21a)])));}};X=W([U(0x0,_0x58ba95(_0x1d5427)),U(0x1,_0x10d088)],X);var fe=_0x2fef7c(0x1d3),pe=_0x2fef7c(0x205);const Z={};let Q=class extends _0x34af2c{constructor(_0x10e21){const _0x3c2bfa=_0x2fef7c;super(),this[_0x3c2bfa(0x1bd)]=_0x10e21,this[_0x3c2bfa(0x1e6)]();}[_0x2fef7c(0x1e6)](){[_0x590899['id'],_0x3d0847['id'],_0x1f3228['id']]['forEach'](_0x19271a=>{const _0x25a3a4=_0x5d67;this[_0x25a3a4(0x1eb)](this[_0x25a3a4(0x1bd)][_0x25a3a4(0x233)](_0x19271a));});}};Q=W([U(0x0,_0x58ba95(H))],Q);let $=class extends _0x5703cb{constructor(_0x24d5bd=Z,_0x56c729,_0x4e301d){const _0x2d1eba=_0x2fef7c;super(),this['_config']=_0x24d5bd,this[_0x2d1eba(0x21a)]=_0x56c729,this[_0x2d1eba(0x1fc)]=_0x4e301d;let {..._0x3caf70}=_0x4ef3b5({},Z,this[_0x2d1eba(0x1cd)]);this['_configService']['setConfig']('live-share.config',_0x3caf70);}['onStarting'](){const _0x1f7c56=_0x2fef7c;_0x118c94(this[_0x1f7c56(0x21a)],_0xb5819d([[H],[G],[Q],[X]],this[_0x1f7c56(0x1cd)][_0x1f7c56(0x1e3)])),_0xce53d7(this['_injector'],[[Q]]);}[_0x2fef7c(0x1fb)](){const _0x1ae284=_0x2fef7c;_0xce53d7(this[_0x1ae284(0x21a)],[[X]]);}};V($,_0x2fef7c(0x1d6),_0x484186[_0x2fef7c(0x1b4)]),V($,_0x2fef7c(0x232),_0x2fef7c(0x1f3)),V($,_0x2fef7c(0x1e0),fe),V($,'version',pe),$=W([_0x4cd9e3(_0x425914),U(0x1,_0x58ba95(_0x1d5427)),U(0x2,_0x1d7a2a)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x163933=_0x49a4;(function(_0x166d25,_0xb36586){const _0x5ed3f5=_0x49a4,_0x5e91b3=_0x166d25();while(!![]){try{const _0x5a83e8=parseInt(_0x5ed3f5(0x1e0))/0x1+parseInt(_0x5ed3f5(0x18e))/0x2*(-parseInt(_0x5ed3f5(0x1ba))/0x3)+-parseInt(_0x5ed3f5(0x18f))/0x4+parseInt(_0x5ed3f5(0x19f))/0x5*(-parseInt(_0x5ed3f5(0x177))/0x6)+parseInt(_0x5ed3f5(0x17e))/0x7+-parseInt(_0x5ed3f5(0x1e2))/0x8*(-parseInt(_0x5ed3f5(0x1f2))/0x9)+parseInt(_0x5ed3f5(0x1eb))/0xa*(-parseInt(_0x5ed3f5(0x1da))/0xb);if(_0x5a83e8===_0xb36586)break;else _0x5e91b3['push'](_0x5e91b3['shift']());}catch(_0x4b0be9){_0x5e91b3['push'](_0x5e91b3['shift']());}}}(_0x4c3f,0x670ae));import{CollaborationEvent as _0x2f4f4b,parseProtocolChangeset as _0xf7fca8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1dc03d,SessionStatus as _0x43364d,UniverCollaborationClientPlugin as _0x33b357}from'@univerjs-pro/collaboration-client';import{CommandType as _0x41b375,DependentOn as _0x372528,Disposable as _0x3a6ee4,DisposableCollection as _0x373e29,ICommandService as _0x15ae55,IConfigService as _0x3287d9,IUniverInstanceService as _0x5dd410,Inject as _0x147d4e,Injector as _0x430c6d,Plugin as _0x2c55cc,RxDisposable as _0x3eff75,UniverInstanceType as _0x19d69b,merge as _0x1f0203,mergeOverrideWithDependencies as _0x76a44e,registerDependencies as _0x492046,toDisposable as _0x2c9771,touchDependencies as _0x4b567d}from'@univerjs/core';import{InsertSheetMutation as _0x29a9fa,SetWorksheetActiveOperation as _0x24df1b}from'@univerjs/sheets';import{BehaviorSubject as _0x1bdd9f,Subject as _0x4a9313}from'rxjs';import{takeUntil as _0x66b583,throttleTime as _0x23f001}from'rxjs/operators';import{BuiltInUIPart as _0x27c857,IUIPartsService as _0x2568a8,connectInjector as _0x34038f,useDependency as _0x4d0b0b,useObservable as _0x471499}from'@univerjs/ui';function _0x4c3f(){const _0x1d12b0=['_reporters','HEADER_MENU','clear','presenter','_injector','set','FOLLOWING','_commandService','setConfig','status$','executeCommand','LIVESHARE_FETCH_OPERATIONS','subscribe','Start','_handleOnline','getLiveShareCoordinatorSync','data','onStarting','call','6rifvkw','memberID','idle','prototype','_startFollowing','_univerInstanceService','_startPresenting','3153962cexbSX','packageName','toPrimitive','getValue','pluginName','createInstance','_handleNewChangeSets','end','@univerjs-pro/live-share','getTypeOfUnitAdded$','sessionStatus$','decorate','ONLINE','asObservable','pipe','button','12JjJguK','3217576HJgNcE','override','getCurrentTypeOfUnit$','getLiveShareCoordinator','_entities','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','LIVESHARE_NEW_HOST','_unitID','LIVESHARE_TERMINATE','offline','OPERATION','_collabSession','length','shouldShareOperation','_commandDisposable','1497950knNXPS','requireSession','_startLiveShareCoordinator','sheet','tryStartPresenting','OFFLINE','onRendered','current','delete','function','default','getOwnPropertyDescriptor','_collabSessionService','get','stringify','_sharedOperations','following','from','defineProperty','You\x27are\x20offline.','includes','_config','_handleOperation','unitId','div','_handleOffline','complete','82179tBeTmf','You\x27re\x20presenting\x20the\x20document','getInitialStates','forEach','_status','unit','getStatus','getUnitId','presenting','_stopFollowing','disposeWithMe','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','add','string','_handleTerminate','_status$','symbol','mutations','_configService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','_liveShareService','not-following','getTypeOfUnitDisposed$','reverse','getConfig','UNIVER_LIVE_SHARE_PLUGIN','constructor','registerComponent','_presenter','2560206GIuVnm','1.0.0-alpha.1','_init','onCommandExecuted','send','_mountLiveShare','635588GlObXK','version','1673992efwRCn','find','params','getMemberID','next','LIVESHARE_OPERATION','then','Start\x20following','object','10nwvzzS','init','NOT_FOLLOWING','_handleNewHost','_stopPresenting','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','type','36ekssiw','UNIVER_UNKNOWN','PRESENTING','dispose','dispose$','unsubscribe'];_0x4c3f=function(){return _0x1d12b0;};return _0x4c3f();}import{Button as _0xac3a18,Dropdown as _0x4045b5,clsx as _0x38f52b}from'@univerjs/design';import{LiveShareIcon as _0x5e9cb6}from'@univerjs/icons';import{useEffect as _0x542576,useRef as _0x418b8a,useState as _0x41fdc7}from'react';import{Fragment as _0x98295f,jsx as _0x50789a,jsxs as _0x16b88}from'react/jsx-runtime';import{SetScrollOperation as _0x452de4,SetZoomRatioOperation as _0x284992}from'@univerjs/sheets-ui';function R(_0x2e5dbd){'@babel/helpers - typeof';const _0x1909dc=_0x49a4;return R=typeof Symbol==_0x1909dc(0x1a8)&&typeof Symbol['iterator']=='symbol'?function(_0x1aede5){return typeof _0x1aede5;}:function(_0x4970eb){const _0x1f32d9=_0x1909dc;return _0x4970eb&&typeof Symbol=='function'&&_0x4970eb[_0x1f32d9(0x1d7)]===Symbol&&_0x4970eb!==Symbol[_0x1f32d9(0x17a)]?_0x1f32d9(0x1cb):typeof _0x4970eb;},R(_0x2e5dbd);}function z(_0x360513,_0x561972){const _0x566e15=_0x49a4;if(R(_0x360513)!=_0x566e15(0x1ea)||!_0x360513)return _0x360513;var _0x1ca540=_0x360513[Symbol[_0x566e15(0x180)]];if(_0x1ca540!==void 0x0){var _0xaa31f1=_0x1ca540[_0x566e15(0x176)](_0x360513,_0x561972||_0x566e15(0x1a9));if(R(_0xaa31f1)!=_0x566e15(0x1ea))return _0xaa31f1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x561972===_0x566e15(0x1c8)?String:Number)(_0x360513);}function B(_0x298d17){const _0x2bc6a9=_0x49a4;var _0x2e51f5=z(_0x298d17,_0x2bc6a9(0x1c8));return R(_0x2e51f5)==_0x2bc6a9(0x1cb)?_0x2e51f5:_0x2e51f5+'';}function V(_0x4bc780,_0x3b6231,_0x10d764){return(_0x3b6231=B(_0x3b6231))in _0x4bc780?Object['defineProperty'](_0x4bc780,_0x3b6231,{'value':_0x10d764,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bc780[_0x3b6231]=_0x10d764,_0x4bc780;}function _0x49a4(_0x430074,_0x2c9319){_0x430074=_0x430074-0x175;const _0x4c3fa5=_0x4c3f();let _0x49a4ac=_0x4c3fa5[_0x430074];return _0x49a4ac;}var H=class extends _0x3a6ee4{constructor(..._0x39f7fb){const _0x4d3fcd=_0x49a4;super(..._0x39f7fb),V(this,_0x4d3fcd(0x1ae),new Set()),V(this,_0x4d3fcd(0x1f8),new Set());}['registerSharedOperation'](_0xac2562){const _0x14bfae=_0x49a4;return this[_0x14bfae(0x1ae)]['add'](_0xac2562),_0x2c9771(()=>this['_sharedOperations'][_0x14bfae(0x1a7)](_0xac2562));}['registerInitialStateReporter'](_0x4b672f){const _0x5870a3=_0x49a4;return this['_reporters'][_0x5870a3(0x1c7)](_0x4b672f),_0x2c9771(()=>this[_0x5870a3(0x1f8)][_0x5870a3(0x1a7)](_0x4b672f));}[_0x163933(0x19d)](_0x2c4e5c){const _0x1680f1=_0x163933;return this[_0x1680f1(0x1ae)][_0x1680f1(0x1c5)](_0x2c4e5c);}[_0x163933(0x1bc)](_0x48c9c8){const _0x3e8813=_0x163933;return Array[_0x3e8813(0x1b0)](this['_reporters'])['map'](_0x56600c=>_0x56600c(_0x48c9c8));}};function U(_0xe4e8b3,_0x1df87b){return function(_0xa60193,_0x182af4){_0x1df87b(_0xa60193,_0x182af4,_0xe4e8b3);};}function W(_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e){const _0x3f17be=_0x163933;var _0x5a9968=arguments['length'],_0x2d3b37=_0x5a9968<0x3?_0x3a1df4:_0x1ea34e===null?_0x1ea34e=Object[_0x3f17be(0x1aa)](_0x3a1df4,_0x4c0591):_0x1ea34e,_0x1b9b97;if(typeof Reflect=='object'&&typeof Reflect[_0x3f17be(0x189)]==_0x3f17be(0x1a8))_0x2d3b37=Reflect['decorate'](_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e);else{for(var _0x1a01d8=_0x386c97[_0x3f17be(0x19c)]-0x1;_0x1a01d8>=0x0;_0x1a01d8--)(_0x1b9b97=_0x386c97[_0x1a01d8])&&(_0x2d3b37=(_0x5a9968<0x3?_0x1b9b97(_0x2d3b37):_0x5a9968>0x3?_0x1b9b97(_0x3a1df4,_0x4c0591,_0x2d3b37):_0x1b9b97(_0x3a1df4,_0x4c0591))||_0x2d3b37);}return _0x5a9968>0x3&&_0x2d3b37&&Object[_0x3f17be(0x1b1)](_0x3a1df4,_0x4c0591,_0x2d3b37),_0x2d3b37;}let G=class extends _0x3eff75{constructor(_0x226578,_0x47fef8,_0x38b540){const _0x226b13=_0x163933;super(),this[_0x226b13(0x17c)]=_0x226578,this[_0x226b13(0x1fc)]=_0x47fef8,this[_0x226b13(0x1ab)]=_0x38b540,V(this,_0x226b13(0x193),new Map()),this[_0x226b13(0x1dc)]();}async[_0x163933(0x192)](_0x24bf37){const _0x5ea5c0=_0x163933;return this[_0x5ea5c0(0x193)]['has'](_0x24bf37)||await this[_0x5ea5c0(0x1a1)](_0x24bf37),this[_0x5ea5c0(0x193)][_0x5ea5c0(0x1ac)](_0x24bf37);}[_0x163933(0x207)](_0x4a1474){const _0x2ebb49=_0x163933;var _0x592831;return(_0x592831=this[_0x2ebb49(0x193)]['get'](_0x4a1474))==null?null:_0x592831;}[_0x163933(0x1dc)](){const _0x2cdc17=_0x163933;this[_0x2cdc17(0x17c)][_0x2cdc17(0x187)](_0x19d69b['UNIVER_SHEET'])[_0x2cdc17(0x18c)](_0x66b583(this['dispose$']))[_0x2cdc17(0x204)](async _0x15dbb3=>{const _0x5f77be=_0x2cdc17;let _0x3a2665=_0x15dbb3[_0x5f77be(0x1bf)]['getUnitId']();this['_entities']['has'](_0x3a2665)||this[_0x5f77be(0x1a1)](_0x3a2665);}),this[_0x2cdc17(0x17c)][_0x2cdc17(0x1d3)](_0x19d69b['UNIVER_SHEET'])['pipe'](_0x66b583(this[_0x2cdc17(0x1f6)]))[_0x2cdc17(0x204)](_0x5012e4=>{const _0x59db71=_0x2cdc17;let _0xc87cc0=_0x5012e4[_0x59db71(0x1c1)](),_0x37f9cd=this[_0x59db71(0x193)][_0x59db71(0x1ac)](_0xc87cc0);_0x37f9cd==null||_0x37f9cd['dispose']();});}async[_0x163933(0x1a1)](_0x5df195){const _0x3d0cb1=_0x163933;let _0x13f003=await this[_0x3d0cb1(0x1ab)][_0x3d0cb1(0x1a0)](_0x5df195),_0x202b31=this['_injector'][_0x3d0cb1(0x183)](q,_0x5df195,_0x13f003);return _0x202b31['init'](),this[_0x3d0cb1(0x193)]['set'](_0x5df195,_0x202b31),_0x202b31;}};G=W([U(0x0,_0x5dd410),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x147d4e(_0x1dc03d))],G);let K=function(_0x56b824){const _0x5d24ed=_0x163933;return _0x56b824[_0x5d24ed(0x1a4)]='offline',_0x56b824['IDLE']='idle',_0x56b824[_0x5d24ed(0x1fe)]=_0x5d24ed(0x1af),_0x56b824[_0x5d24ed(0x1ed)]='not-following',_0x56b824[_0x5d24ed(0x1f4)]='presenting',_0x56b824;}({}),q=class extends _0x3eff75{get['_status'](){const _0x8c5651=_0x163933;return this[_0x8c5651(0x1ca)][_0x8c5651(0x181)]();}constructor(_0x32fb17,_0x183cd3,_0x8672c3,_0x50f8c5,_0x10d38f){const _0x38b91d=_0x163933;super(),this['_unitID']=_0x32fb17,this['_collabSession']=_0x183cd3,this[_0x38b91d(0x1cd)]=_0x8672c3,this['_liveShareService']=_0x50f8c5,this[_0x38b91d(0x1ff)]=_0x10d38f,V(this,'_status$',new _0x1bdd9f('idle')),V(this,_0x38b91d(0x201),this[_0x38b91d(0x1ca)][_0x38b91d(0x18b)]()),V(this,_0x38b91d(0x1dc),!0x1),V(this,_0x38b91d(0x19e),null),V(this,_0x38b91d(0x1d9),null);}[_0x163933(0x1f5)](){const _0x5c4bde=_0x163933;var _0x50be78;(_0x50be78=this[_0x5c4bde(0x19e)])==null||_0x50be78['dispose'](),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1e6)](_0x5c4bde(0x179)),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1b9)]();}[_0x163933(0x1c0)](){const _0x5d2248=_0x163933;return this[_0x5d2248(0x1be)];}[_0x163933(0x1ec)](){const _0xd79c49=_0x163933;this[_0xd79c49(0x1dc)]||(this[_0xd79c49(0x1dc)]=!0x0,this[_0xd79c49(0x19b)][_0xd79c49(0x188)][_0xd79c49(0x18c)](_0x66b583(this[_0xd79c49(0x1f6)]))[_0xd79c49(0x204)](_0x28822a=>{const _0x30a943=_0xd79c49;switch(_0x28822a){case _0x43364d[_0x30a943(0x1a4)]:this[_0x30a943(0x1b8)]();break;case _0x43364d[_0x30a943(0x18a)]:this[_0x30a943(0x206)]();break;default:}}),this[_0xd79c49(0x19b)]['event$']['pipe'](_0x66b583(this['dispose$']))['subscribe'](_0x565bc9=>{const _0x5f285e=_0xd79c49;let {eventID:_0x59cf12}=_0x565bc9;switch(_0x59cf12){case _0x2f4f4b[_0x5f285e(0x196)]:this[_0x5f285e(0x1ee)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x1e7)]:this[_0x5f285e(0x1b5)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x198)]:this[_0x5f285e(0x1c9)]();break;case _0x2f4f4b['NEW_CHANGESETS']:this[_0x5f285e(0x184)](_0x565bc9);break;default:}}));}[_0x163933(0x1a3)](){const _0x19b60e=_0x163933;this['_collabSession']['send']({'eventID':_0x2f4f4b[_0x19b60e(0x195)],'data':{'unitID':this['_unitID'],'userID':this[_0x19b60e(0x19b)][_0x19b60e(0x1e5)]()}},this['_unitID']);}['stopPresenting'](){const _0xbdaf9f=_0x163933;this[_0xbdaf9f(0x1be)]===_0xbdaf9f(0x1c2)&&(this['_status$'][_0xbdaf9f(0x1e6)](_0xbdaf9f(0x179)),this[_0xbdaf9f(0x19b)]['send']({'eventID':_0x2f4f4b[_0xbdaf9f(0x198)],'data':{'unitID':this[_0xbdaf9f(0x197)]}},this['_unitID']));}['startFollowing'](){const _0x352bd5=_0x163933;this[_0x352bd5(0x1be)]==='not-following'&&(this[_0x352bd5(0x1ca)][_0x352bd5(0x1e6)](_0x352bd5(0x1af)),this[_0x352bd5(0x17b)]());}['stopFollowing'](){const _0x54df9c=_0x163933;this[_0x54df9c(0x1be)]===_0x54df9c(0x1af)&&this[_0x54df9c(0x1c3)]();}[_0x163933(0x1ee)](_0x1d46da){const _0x1b552e=_0x163933;let {presenter:_0x2019ff}=_0x1d46da[_0x1b552e(0x208)],_0x42ec53=this[_0x1b552e(0x19b)][_0x1b552e(0x1e5)]();this[_0x1b552e(0x1d9)]=_0x2019ff,_0x2019ff===_0x42ec53?(this['_stopFollowing'](),this[_0x1b552e(0x17d)]()):this['_status']!=='not-following'&&(this[_0x1b552e(0x1ef)](),this[_0x1b552e(0x17b)]());}['_fetchOperations'](){const _0x542a10=_0x163933;let _0x1b4fb8={'eventID':_0x2f4f4b[_0x542a10(0x203)]};this[_0x542a10(0x19b)][_0x542a10(0x1de)](_0x1b4fb8,this['_unitID']);}[_0x163933(0x1c9)](){const _0x5a4953=_0x163933;this[_0x5a4953(0x1d9)]=null,this[_0x5a4953(0x1be)]!=='presenting'&&this['_beIdle']();}[_0x163933(0x184)](_0x109487){const _0x2a09bf=_0x163933;if(this[_0x2a09bf(0x1be)]==='following'&&this[_0x2a09bf(0x1d9)]===_0x109487[_0x2a09bf(0x208)][_0x2a09bf(0x178)]){let _0x233132=_0xf7fca8(_0x109487[_0x2a09bf(0x208)])[_0x2a09bf(0x1cc)][_0x2a09bf(0x1d4)]()[_0x2a09bf(0x1e3)](_0x4dc560=>_0x4dc560['id']===_0x29a9fa['id']);if(_0x233132){let _0x164df1=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1b6)],_0x768efc=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1a2)]['id'];setTimeout(()=>{const _0x5f586a=_0x2a09bf;this[_0x5f586a(0x1ff)][_0x5f586a(0x202)](_0x24df1b['id'],{'unitId':_0x164df1,'subUnitId':_0x768efc},{'fromCollab':!0x0});});}}}[_0x163933(0x17d)](){const _0x5d9911=_0x163933;var _0x59abbb;(_0x59abbb=this[_0x5d9911(0x19e)])==null||_0x59abbb[_0x5d9911(0x1f5)](),this[_0x5d9911(0x1ca)][_0x5d9911(0x1e6)](_0x5d9911(0x1c2));let _0x519bcd=new Map(),_0x4bba98=this[_0x5d9911(0x19e)]=new _0x373e29();_0x4bba98[_0x5d9911(0x1c7)](_0x2c9771(()=>{const _0x5ca6ba=_0x5d9911;_0x519bcd[_0x5ca6ba(0x1bd)](({subject:_0x3075c4,subscription:_0x3b94d6})=>{const _0x1443b7=_0x5ca6ba;_0x3b94d6[_0x1443b7(0x1f7)](),_0x3075c4[_0x1443b7(0x1b9)]();}),_0x519bcd[_0x5ca6ba(0x1fa)]();})),_0x4bba98[_0x5d9911(0x1c7)](this[_0x5d9911(0x1ff)][_0x5d9911(0x1dd)](_0x349dd1=>{const _0x44c970=_0x5d9911;if(_0x349dd1[_0x44c970(0x1f1)]!==_0x41b375[_0x44c970(0x19a)]||!this[_0x44c970(0x1d1)][_0x44c970(0x19d)](_0x349dd1['id']))return;let {id:_0x56b6fb}=_0x349dd1,_0x5984e8;if(_0x519bcd[_0x44c970(0x1c5)](_0x56b6fb))_0x5984e8=_0x519bcd[_0x44c970(0x1ac)](_0x56b6fb)['subject'];else{var _0x136831;_0x5984e8=new _0x4a9313();let _0x6bf016=_0x5984e8[_0x44c970(0x18c)](_0x23f001((_0x136831=this[_0x44c970(0x1cd)][_0x44c970(0x1d5)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x136831,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44c970(0x204)](_0x161cdb=>{const _0x337870=_0x44c970;this[_0x337870(0x19b)][_0x337870(0x1de)]({'eventID':_0x2f4f4b[_0x337870(0x1e7)],'data':{'unitID':this['_unitID'],'operations':{[_0x161cdb['id']]:{'id':_0x161cdb['id'],'params':JSON[_0x337870(0x1ad)](_0x161cdb[_0x337870(0x1e4)])}}}},this['_unitID']);});_0x519bcd[_0x44c970(0x1fd)](_0x56b6fb,{'subject':_0x5984e8,'subscription':_0x6bf016});}_0x5984e8[_0x44c970(0x1e6)](_0x349dd1);})),this[_0x5d9911(0x1d1)]['getInitialStates'](this[_0x5d9911(0x197)])[_0x5d9911(0x1bd)](_0x289507=>this[_0x5d9911(0x19b)]['send']({'eventID':_0x2f4f4b[_0x5d9911(0x1e7)],'data':{'unitID':this[_0x5d9911(0x197)],'operations':{[_0x289507['id']]:{'id':_0x289507['id'],'params':JSON['stringify'](_0x289507[_0x5d9911(0x1e4)])}}}},this[_0x5d9911(0x197)]));}[_0x163933(0x1ef)](){const _0x16a67e=_0x163933;var _0x59d750;this[_0x16a67e(0x1ca)]['next'](_0x16a67e(0x179)),(_0x59d750=this[_0x16a67e(0x19e)])==null||_0x59d750[_0x16a67e(0x1f5)](),this[_0x16a67e(0x19e)]=null;}[_0x163933(0x17b)](){const _0x5c1ac5=_0x163933;var _0x125d5f;(_0x125d5f=this[_0x5c1ac5(0x19e)])==null||_0x125d5f[_0x5c1ac5(0x1f5)](),this[_0x5c1ac5(0x1ca)]['next'](_0x5c1ac5(0x1af));}['_beIdle'](){const _0x1c0665=_0x163933;var _0x365def;this[_0x1c0665(0x1ca)][_0x1c0665(0x1e6)](_0x1c0665(0x179)),(_0x365def=this['_commandDisposable'])==null||_0x365def[_0x1c0665(0x1f5)](),this[_0x1c0665(0x19e)]=null;}[_0x163933(0x1c3)](){const _0x16fb98=_0x163933;var _0x5ae3ba;this[_0x16fb98(0x1ca)]['next'](_0x16fb98(0x1d2)),(_0x5ae3ba=this['_commandDisposable'])==null||_0x5ae3ba[_0x16fb98(0x1f5)]();}[_0x163933(0x1b5)](_0x2a7e7c){const _0x434bd5=_0x163933;if([_0x434bd5(0x1c2),_0x434bd5(0x1d2),_0x434bd5(0x199)][_0x434bd5(0x1b3)](this[_0x434bd5(0x1be)])||!_0x2a7e7c[_0x434bd5(0x208)][_0x434bd5(0x1fb)]||_0x2a7e7c['data'][_0x434bd5(0x1fb)]===this[_0x434bd5(0x19b)][_0x434bd5(0x1e5)]())return;this[_0x434bd5(0x1be)]===_0x434bd5(0x179)&&this[_0x434bd5(0x17b)]();let _0x747534=_0x2a7e7c['data']['operations'];Object['values'](_0x747534)['forEach'](_0x46610a=>{const _0x405ca9=_0x434bd5;this[_0x405ca9(0x1ff)]['executeCommand'](_0x46610a['id'],_0x46610a['params']?JSON['parse'](_0x46610a[_0x405ca9(0x1e4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5e049c=_0x163933;var _0x4abaa6;this['_status$'][_0x5e049c(0x1e6)](_0x5e049c(0x199)),(_0x4abaa6=this[_0x5e049c(0x19e)])==null||_0x4abaa6[_0x5e049c(0x1f5)]();}[_0x163933(0x206)](){const _0x34a1f0=_0x163933;this['_status$'][_0x34a1f0(0x1e6)](_0x34a1f0(0x179)),this['_fetchOperations']();}};q=W([U(0x2,_0x3287d9),U(0x3,_0x147d4e(H)),U(0x4,_0x15ae55)],q);function J(){const _0x544e9c=_0x163933;let _0x18e9df=_0x4d0b0b(G),_0x47d618=_0x4d0b0b(_0x5dd410),_0xe72ba5=_0x471499(()=>_0x47d618[_0x544e9c(0x191)](_0x19d69b[_0x544e9c(0x194)]),void 0x0,!0x1,[]),[_0x554ef2,_0x2c5c35]=_0x41fdc7(null),[_0x4d2e68,_0x28c5a7]=_0x41fdc7(_0x544e9c(0x179)),_0xd2604d=_0x418b8a(null);return _0x542576(()=>(_0xe72ba5&&_0x18e9df[_0x544e9c(0x192)](_0xe72ba5[_0x544e9c(0x1c1)]())[_0x544e9c(0x1e8)](_0x349de9=>{const _0x20ae39=_0x544e9c;_0x2c5c35(_0x349de9),_0xd2604d['current']=_0x349de9['status$'][_0x20ae39(0x204)](_0x3be167=>{_0x28c5a7(_0x3be167);});}),()=>{const _0x3f1dd3=_0x544e9c;var _0xcaf005;(_0xcaf005=_0xd2604d[_0x3f1dd3(0x1a6)])==null||_0xcaf005[_0x3f1dd3(0x1f7)](),_0xd2604d['current']=null;}),[_0xe72ba5,_0x18e9df]),_0x554ef2?_0x50789a(_0x4045b5,{'align':_0x544e9c(0x185),'disabled':_0x4d2e68==='offline','className':_0x544e9c(0x1f0),'overlay':_0x50789a(se,{'status':_0x4d2e68,'coordinator':_0x554ef2}),'children':_0x50789a(_0x544e9c(0x18d),{'className':_0x38f52b(_0x544e9c(0x1c6),{'univer-cursor-not-allowed':_0x4d2e68==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d2e68!==_0x544e9c(0x199)}),'type':_0x544e9c(0x18d),'children':_0x50789a(_0x5e9cb6,{})})}):null;}function se(_0x5aa10c){const _0x7863ca=_0x163933;let {status:_0x3e622d,coordinator:_0x5e64a1}=_0x5aa10c;switch(_0x3e622d){case _0x7863ca(0x179):return _0x50789a(ce,{'coordinator':_0x5e64a1});case'following':return _0x50789a(le,{'coordinator':_0x5e64a1});case _0x7863ca(0x1d2):return _0x50789a(ue,{'coordinator':_0x5e64a1});case'offline':return _0x50789a(de,{});case _0x7863ca(0x1c2):return _0x50789a(Y,{'coordinator':_0x5e64a1});default:return null;}}function ce(_0x540ff2){const _0x219aa0=_0x163933;let {coordinator:_0x19cf79}=_0x540ff2;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x219aa0(0x1b7),{'className':_0x219aa0(0x1cf),'children':'Present\x20this\x20document'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x19cf79[_0x219aa0(0x1a3)](),'children':_0x219aa0(0x205)})]});}function le(_0x73a277){const _0x33576b=_0x163933;let {coordinator:_0x1086c9}=_0x73a277;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x33576b(0x1b7),{'className':_0x33576b(0x1cf),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x1086c9[_0x33576b(0x1d0)](),'children':'Stop\x20following'})]});}function ue(_0x531476){const _0xaf0dff=_0x163933;let {coordinator:_0x50bc01}=_0x531476;return _0x16b88(_0x98295f,{'children':[_0x50789a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'variant':'text','onClick':()=>_0x50bc01['startFollowing'](),'children':_0xaf0dff(0x1e9)})]});}function Y(_0x399c83){const _0x3251e4=_0x163933;let {coordinator:_0x4980a9}=_0x399c83;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x3251e4(0x1b7),{'className':_0x3251e4(0x1cf),'children':_0x3251e4(0x1bb)}),_0x50789a(_0xac3a18,{'variant':_0x3251e4(0x1a9),'onClick':()=>_0x4980a9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function de(){const _0x5194cd=_0x163933;return _0x50789a(_0x98295f,{'children':_0x5194cd(0x1b2)});}let X=class extends _0x3a6ee4{constructor(_0x593ddd,_0x26b2fc){const _0x15338f=_0x163933;super(),this[_0x15338f(0x1fc)]=_0x593ddd,this[_0x15338f(0x1ce)]=_0x26b2fc,this[_0x15338f(0x1df)]();}['_mountLiveShare'](){const _0x1070bb=_0x163933;this[_0x1070bb(0x1c4)](this[_0x1070bb(0x1ce)][_0x1070bb(0x1d8)](_0x27c857[_0x1070bb(0x1f9)],()=>_0x34038f(J,this[_0x1070bb(0x1fc)])));}};X=W([U(0x0,_0x147d4e(_0x430c6d)),U(0x1,_0x2568a8)],X);var fe=_0x163933(0x186),pe=_0x163933(0x1db);const Z={};let Q=class extends _0x3a6ee4{constructor(_0x6ac638){const _0x154f47=_0x163933;super(),this[_0x154f47(0x1d1)]=_0x6ac638,this[_0x154f47(0x1dc)]();}[_0x163933(0x1dc)](){const _0x356985=_0x163933;[_0x284992['id'],_0x452de4['id'],_0x24df1b['id']][_0x356985(0x1bd)](_0x5dd2df=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x5dd2df));});}};Q=W([U(0x0,_0x147d4e(H))],Q);let $=class extends _0x2c55cc{constructor(_0x12150e=Z,_0x4a2f61,_0x441862){const _0x15a3a7=_0x163933;super(),this[_0x15a3a7(0x1b4)]=_0x12150e,this['_injector']=_0x4a2f61,this[_0x15a3a7(0x1cd)]=_0x441862;let {..._0x40b82b}=_0x1f0203({},Z,this[_0x15a3a7(0x1b4)]);this[_0x15a3a7(0x1cd)][_0x15a3a7(0x200)]('live-share.config',_0x40b82b);}[_0x163933(0x175)](){const _0x1e6350=_0x163933;_0x492046(this['_injector'],_0x76a44e([[H],[G],[Q],[X]],this[_0x1e6350(0x1b4)][_0x1e6350(0x190)])),_0x4b567d(this[_0x1e6350(0x1fc)],[[Q]]);}[_0x163933(0x1a5)](){const _0x322fc0=_0x163933;_0x4b567d(this[_0x322fc0(0x1fc)],[[X]]);}};V($,_0x163933(0x1f1),_0x19d69b[_0x163933(0x1f3)]),V($,_0x163933(0x182),_0x163933(0x1d6)),V($,_0x163933(0x17f),fe),V($,_0x163933(0x1e1),pe),$=W([_0x372528(_0x33b357),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x3287d9)],$);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
- function _0x4f8f(){const _0x5d8927=['startPresenting','114lzODbz','get','2187752GtBAlR','30AOZfcI','No\x20active\x20workbook\x20found.','getCurrentUnitOfType','UNIVER_SHEET','symbol','extend','2012ktHnKJ','string','150hNoteb','tryStartPresenting','6554568qXemYU','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','iterator','defineProperty','32026170kuDmDJ','_liveShareController','getUnitId','352496ZsWpYe','getLiveShareCoordinatorSync','8058618jllkMh','221495pfcgHU','call','getLiveShareStatus','startFollowing','object','constructor','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','stopFollowing','10XSLIqF','getStatus','stopPresenting'];_0x4f8f=function(){return _0x5d8927;};return _0x4f8f();}const _0xe5ece8=_0xfb78;(function(_0x1d622b,_0x489713){const _0x5d0343=_0xfb78,_0x519da6=_0x1d622b();while(!![]){try{const _0x86bbbc=parseInt(_0x5d0343(0xe4))/0x1*(-parseInt(_0x5d0343(0xe2))/0x2)+-parseInt(_0x5d0343(0xdc))/0x3*(parseInt(_0x5d0343(0xee))/0x4)+parseInt(_0x5d0343(0xf1))/0x5*(parseInt(_0x5d0343(0xd9))/0x6)+-parseInt(_0x5d0343(0xdb))/0x7+-parseInt(_0x5d0343(0xe6))/0x8+-parseInt(_0x5d0343(0xf0))/0x9*(parseInt(_0x5d0343(0xd5))/0xa)+parseInt(_0x5d0343(0xeb))/0xb;if(_0x86bbbc===_0x489713)break;else _0x519da6['push'](_0x519da6['shift']());}catch(_0x196315){_0x519da6['push'](_0x519da6['shift']());}}}(_0x4f8f,0xa95f8));import{LiveShareController as _0x9b52ec,LiveShareStatus as _0x16f243}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x3109cc,UniverInstanceType as _0x44c09a}from'@univerjs/core';import{FEnum as _0x31875d,FUniver as _0x125cd6}from'@univerjs/core/facade';function o(_0x425763){'@babel/helpers - typeof';const _0x21d674=_0xfb78;return o=typeof Symbol==_0x21d674(0xd3)&&typeof Symbol[_0x21d674(0xe9)]==_0x21d674(0xe0)?function(_0x5886a0){return typeof _0x5886a0;}:function(_0x39db0d){const _0x147edb=_0x21d674;return _0x39db0d&&typeof Symbol==_0x147edb(0xd3)&&_0x39db0d[_0x147edb(0xd0)]===Symbol&&_0x39db0d!==Symbol['prototype']?_0x147edb(0xe0):typeof _0x39db0d;},o(_0x425763);}function s(_0x2a0f34,_0x41206e){const _0x248cd5=_0xfb78;if(o(_0x2a0f34)!=_0x248cd5(0xcf)||!_0x2a0f34)return _0x2a0f34;var _0x5c6d8a=_0x2a0f34[Symbol[_0x248cd5(0xd1)]];if(_0x5c6d8a!==void 0x0){var _0x410b61=_0x5c6d8a[_0x248cd5(0xf2)](_0x2a0f34,_0x41206e||'default');if(o(_0x410b61)!=_0x248cd5(0xcf))return _0x410b61;throw TypeError(_0x248cd5(0xd2));}return(_0x41206e===_0x248cd5(0xe3)?String:Number)(_0x2a0f34);}function c(_0x546bc5){const _0x46f6a4=_0xfb78;var _0x200c95=s(_0x546bc5,_0x46f6a4(0xe3));return o(_0x200c95)=='symbol'?_0x200c95:_0x200c95+'';}function l(_0x34d1e3,_0x9ec152,_0x2a2ebd){const _0x5d76b0=_0xfb78;return(_0x9ec152=c(_0x9ec152))in _0x34d1e3?Object[_0x5d76b0(0xea)](_0x34d1e3,_0x9ec152,{'value':_0x2a2ebd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34d1e3[_0x9ec152]=_0x2a2ebd,_0x34d1e3;}var u=class extends _0x125cd6{constructor(..._0x4f5e0d){const _0x1d889b=_0xfb78;super(..._0x4f5e0d),l(this,_0x1d889b(0xec),void 0x0);}['_initialize'](_0x584002){const _0x2492ed=_0xfb78;this[_0x2492ed(0xec)]=_0x584002[_0x2492ed(0xda)](_0x9b52ec);}[_0xe5ece8(0xcd)](){const _0x5798ea=_0xe5ece8;var _0x31686e;let _0x38ea45=this[_0x5798ea(0xe7)][_0x5798ea(0xda)](_0x3109cc)['getCurrentUnitOfType'](_0x44c09a[_0x5798ea(0xdf)]);if(!_0x38ea45)throw Error(_0x5798ea(0xdd));let _0x531a4d=_0x38ea45[_0x5798ea(0xed)](),_0x1a583f=this[_0x5798ea(0xec)][_0x5798ea(0xef)](_0x531a4d);return(_0x31686e=_0x1a583f==null?void 0x0:_0x1a583f[_0x5798ea(0xd6)]())==null?_0x16f243['IDLE']:_0x31686e;}[_0xe5ece8(0xce)](){const _0x25084a=_0xe5ece8;let _0x5db284=this[_0x25084a(0xe7)]['get'](_0x3109cc)['getCurrentUnitOfType'](_0x44c09a[_0x25084a(0xdf)]);if(!_0x5db284)throw Error(_0x25084a(0xdd));let _0x1e01ae=_0x5db284[_0x25084a(0xed)](),_0x11eaab=this['_liveShareController'][_0x25084a(0xef)](_0x1e01ae);if(!_0x11eaab)throw Error(_0x25084a(0xe8));_0x11eaab[_0x25084a(0xce)]();}[_0xe5ece8(0xd4)](){const _0x4328ff=_0xe5ece8;let _0x43021a=this[_0x4328ff(0xe7)][_0x4328ff(0xda)](_0x3109cc)[_0x4328ff(0xde)](_0x44c09a[_0x4328ff(0xdf)]);if(!_0x43021a)throw Error(_0x4328ff(0xdd));let _0x18d5fe=_0x43021a[_0x4328ff(0xed)](),_0x222282=this[_0x4328ff(0xec)]['getLiveShareCoordinatorSync'](_0x18d5fe);if(!_0x222282)throw Error(_0x4328ff(0xe8));_0x222282['stopFollowing']();}[_0xe5ece8(0xd8)](){const _0x26a820=_0xe5ece8;let _0x83c3a5=this[_0x26a820(0xe7)]['get'](_0x3109cc)[_0x26a820(0xde)](_0x44c09a['UNIVER_SHEET']);if(!_0x83c3a5)throw Error('No\x20active\x20workbook\x20found.');let _0x97e1b1=_0x83c3a5[_0x26a820(0xed)](),_0x5eba6f=this[_0x26a820(0xec)]['getLiveShareCoordinatorSync'](_0x97e1b1);if(!_0x5eba6f)throw Error(_0x26a820(0xe8));_0x5eba6f[_0x26a820(0xe5)]();}[_0xe5ece8(0xd7)](){const _0x56973d=_0xe5ece8;let _0x49dd5f=this[_0x56973d(0xe7)][_0x56973d(0xda)](_0x3109cc)[_0x56973d(0xde)](_0x44c09a[_0x56973d(0xdf)]);if(!_0x49dd5f)throw Error(_0x56973d(0xdd));let _0x59c903=_0x49dd5f[_0x56973d(0xed)](),_0x9c1691=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x59c903);if(!_0x9c1691)throw Error(_0x56973d(0xe8));_0x9c1691['stopPresenting']();}};_0x125cd6[_0xe5ece8(0xe1)](u);var d=class extends _0x31875d{get['LiveShareStatusEnum'](){return _0x16f243;}};_0x31875d[_0xe5ece8(0xe1)](d);function _0xfb78(_0xfcfc91,_0x35bdcb){_0xfcfc91=_0xfcfc91-0xcd;const _0x4f8f68=_0x4f8f();let _0xfb7887=_0x4f8f68[_0xfcfc91];return _0xfb7887;}export{};
1
+ const _0x4230ab=_0x4d7f;(function(_0xc11408,_0x9afe8b){const _0x38fe34=_0x4d7f,_0x5b1d1a=_0xc11408();while(!![]){try{const _0x2b9270=-parseInt(_0x38fe34(0x19e))/0x1*(parseInt(_0x38fe34(0x19a))/0x2)+-parseInt(_0x38fe34(0x1b4))/0x3+parseInt(_0x38fe34(0x1a0))/0x4*(parseInt(_0x38fe34(0x1b3))/0x5)+parseInt(_0x38fe34(0x1b8))/0x6+parseInt(_0x38fe34(0x19c))/0x7*(-parseInt(_0x38fe34(0x1a7))/0x8)+parseInt(_0x38fe34(0x19b))/0x9+-parseInt(_0x38fe34(0x1af))/0xa*(-parseInt(_0x38fe34(0x1a6))/0xb);if(_0x2b9270===_0x9afe8b)break;else _0x5b1d1a['push'](_0x5b1d1a['shift']());}catch(_0x32edb4){_0x5b1d1a['push'](_0x5b1d1a['shift']());}}}(_0x4e90,0x78b03));import{LiveShareController as _0x48788c,LiveShareStatus as _0xf80c85}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x14008c,UniverInstanceType as _0x454af0}from'@univerjs/core';function _0x4d7f(_0x3a3295,_0x25d797){_0x3a3295=_0x3a3295-0x198;const _0x4e9005=_0x4e90();let _0x4d7f1e=_0x4e9005[_0x3a3295];return _0x4d7f1e;}import{FEnum as _0x23328a,FUniver as _0x27d841}from'@univerjs/core/facade';function o(_0x14c7d2){'@babel/helpers - typeof';const _0x2d0aea=_0x4d7f;return o=typeof Symbol==_0x2d0aea(0x19d)&&typeof Symbol[_0x2d0aea(0x1ae)]==_0x2d0aea(0x1a1)?function(_0xffbf65){return typeof _0xffbf65;}:function(_0x3273e7){const _0x50f874=_0x2d0aea;return _0x3273e7&&typeof Symbol==_0x50f874(0x19d)&&_0x3273e7['constructor']===Symbol&&_0x3273e7!==Symbol[_0x50f874(0x1b0)]?'symbol':typeof _0x3273e7;},o(_0x14c7d2);}function _0x4e90(){const _0x23cde2=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','_liveShareController','get','startPresenting','No\x20active\x20workbook\x20found.','24398VrCtjv','1030689rAGlqP','201901wjswQQ','function','53mwQzNO','object','4GeIbzd','symbol','string','LiveShareStatusEnum','getLiveShareStatus','defineProperty','4651889mwCjFs','88PbUDic','getStatus','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','_injector','tryStartPresenting','iterator','40ZhLPSK','prototype','IDLE','stopPresenting','389135kOsevZ','2355750rsYCfI','_initialize','stopFollowing','getCurrentUnitOfType','2156790TiPhjS','getUnitId'];_0x4e90=function(){return _0x23cde2;};return _0x4e90();}function s(_0x5a2645,_0x39e7d2){const _0x5b53bf=_0x4d7f;if(o(_0x5a2645)!=_0x5b53bf(0x19f)||!_0x5a2645)return _0x5a2645;var _0x3e1176=_0x5a2645[Symbol['toPrimitive']];if(_0x3e1176!==void 0x0){var _0x30bc36=_0x3e1176['call'](_0x5a2645,_0x39e7d2||'default');if(o(_0x30bc36)!=_0x5b53bf(0x19f))return _0x30bc36;throw TypeError(_0x5b53bf(0x1ba));}return(_0x39e7d2===_0x5b53bf(0x1a2)?String:Number)(_0x5a2645);}function c(_0x3f6610){var _0x35e888=s(_0x3f6610,'string');return o(_0x35e888)=='symbol'?_0x35e888:_0x35e888+'';}function l(_0x82750f,_0x1a3a57,_0x4c652c){const _0x97a2a0=_0x4d7f;return(_0x1a3a57=c(_0x1a3a57))in _0x82750f?Object[_0x97a2a0(0x1a5)](_0x82750f,_0x1a3a57,{'value':_0x4c652c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x82750f[_0x1a3a57]=_0x4c652c,_0x82750f;}var u=class extends _0x27d841{constructor(..._0x17a628){const _0x25f7ec=_0x4d7f;super(..._0x17a628),l(this,_0x25f7ec(0x1bc),void 0x0);}[_0x4230ab(0x1b5)](_0x371262){const _0x33a8bf=_0x4230ab;this[_0x33a8bf(0x1bc)]=_0x371262[_0x33a8bf(0x1bd)](_0x48788c);}[_0x4230ab(0x1a4)](){const _0x45904a=_0x4230ab;var _0x3159e0;let _0x499676=this[_0x45904a(0x1ac)][_0x45904a(0x1bd)](_0x14008c)[_0x45904a(0x1b7)](_0x454af0[_0x45904a(0x1ab)]);if(!_0x499676)throw Error(_0x45904a(0x199));let _0x5dd476=_0x499676[_0x45904a(0x1b9)](),_0x2f894f=this[_0x45904a(0x1bc)][_0x45904a(0x1a9)](_0x5dd476);return(_0x3159e0=_0x2f894f==null?void 0x0:_0x2f894f[_0x45904a(0x1a8)]())==null?_0xf80c85[_0x45904a(0x1b1)]:_0x3159e0;}['startFollowing'](){const _0xac4e73=_0x4230ab;let _0x3ba3ac=this[_0xac4e73(0x1ac)][_0xac4e73(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x3ba3ac)throw Error(_0xac4e73(0x199));let _0x310149=_0x3ba3ac[_0xac4e73(0x1b9)](),_0x4452a3=this[_0xac4e73(0x1bc)]['getLiveShareCoordinatorSync'](_0x310149);if(!_0x4452a3)throw Error(_0xac4e73(0x1aa));_0x4452a3['startFollowing']();}[_0x4230ab(0x1b6)](){const _0x46c0c2=_0x4230ab;let _0x423aa1=this[_0x46c0c2(0x1ac)][_0x46c0c2(0x1bd)](_0x14008c)[_0x46c0c2(0x1b7)](_0x454af0['UNIVER_SHEET']);if(!_0x423aa1)throw Error(_0x46c0c2(0x199));let _0x48a972=_0x423aa1[_0x46c0c2(0x1b9)](),_0x4cdaae=this[_0x46c0c2(0x1bc)]['getLiveShareCoordinatorSync'](_0x48a972);if(!_0x4cdaae)throw Error(_0x46c0c2(0x1aa));_0x4cdaae[_0x46c0c2(0x1b6)]();}[_0x4230ab(0x198)](){const _0x169c08=_0x4230ab;let _0xde028c=this[_0x169c08(0x1ac)]['get'](_0x14008c)[_0x169c08(0x1b7)](_0x454af0[_0x169c08(0x1ab)]);if(!_0xde028c)throw Error(_0x169c08(0x199));let _0xf450aa=_0xde028c[_0x169c08(0x1b9)](),_0x5551fe=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf450aa);if(!_0x5551fe)throw Error(_0x169c08(0x1aa));_0x5551fe[_0x169c08(0x1ad)]();}['stopPresenting'](){const _0x358993=_0x4230ab;let _0x4d33b3=this[_0x358993(0x1ac)][_0x358993(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x4d33b3)throw Error(_0x358993(0x199));let _0x24b69f=_0x4d33b3['getUnitId'](),_0x2e3862=this[_0x358993(0x1bc)][_0x358993(0x1a9)](_0x24b69f);if(!_0x2e3862)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2e3862[_0x358993(0x1b2)]();}};_0x27d841[_0x4230ab(0x1bb)](u);var d=class extends _0x23328a{get[_0x4230ab(0x1a3)](){return _0xf80c85;}};_0x23328a[_0x4230ab(0x1bb)](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2fef7c=_0x5d67;(function(_0x289af8,_0x57bbe8){const _0x138244=_0x5d67,_0x47e91a=_0x289af8();while(!![]){try{const _0x217bd0=-parseInt(_0x138244(0x1c8))/0x1+-parseInt(_0x138244(0x1f2))/0x2+parseInt(_0x138244(0x1ae))/0x3+parseInt(_0x138244(0x203))/0x4+-parseInt(_0x138244(0x1e9))/0x5*(-parseInt(_0x138244(0x221))/0x6)+-parseInt(_0x138244(0x1de))/0x7*(parseInt(_0x138244(0x216))/0x8)+parseInt(_0x138244(0x21c))/0x9*(parseInt(_0x138244(0x214))/0xa);if(_0x217bd0===_0x57bbe8)break;else _0x47e91a['push'](_0x47e91a['shift']());}catch(_0x1b6eda){_0x47e91a['push'](_0x47e91a['shift']());}}}(_0x1586,0x97ebf));import{CollaborationEvent as _0x478db0,parseProtocolChangeset as _0xcd04f0}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x512147,SessionStatus as _0x498991,UniverCollaborationClientPlugin as _0x425914}from'@univerjs-pro/collaboration-client';import{CommandType as _0x1c342c,DependentOn as _0x4cd9e3,Disposable as _0x34af2c,DisposableCollection as _0x4c4ac3,ICommandService as _0x45569a,IConfigService as _0x1d7a2a,IUniverInstanceService as _0x37e2f7,Inject as _0x58ba95,Injector as _0x1d5427,Plugin as _0x5703cb,RxDisposable as _0x37cd84,UniverInstanceType as _0x484186,merge as _0x4ef3b5,mergeOverrideWithDependencies as _0xb5819d,registerDependencies as _0x118c94,toDisposable as _0x11276b,touchDependencies as _0xce53d7}from'@univerjs/core';function _0x1586(){const _0x2e8a65=['next','event$','getLiveShareCoordinator','startFollowing','@univerjs-pro/live-share','_startPresenting','_status$','type','LIVESHARE_OPERATION','unit','_handleTerminate','status$','FOLLOWING','IDLE','idle','53382iWMhlk','send','packageName','dispose','onCommandExecuted','override','univer-mb-3\x20univer-w-full\x20univer-text-sm','tryStartPresenting','_init','_beIdle','function','7130SbuLvQ','_startFollowing','disposeWithMe','_mountLiveShare','SAME_OPERATION_SHARE_INTERVAL','set','_commandService','stopPresenting','parse','493428eOwyFu','UNIVER_LIVE_SHARE_PLUGIN','call','then','params','_stopPresenting','requireSession','dispose$','Stop\x20presenting','onRendered','_configService','forEach','Start\x20following','toPrimitive','iterator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','not-following','3008852cAOPDK','_collabSessionService','1.0.0-alpha.0','map','data','stopFollowing','sessionStatus$','LIVESHARE_FETCH_OPERATIONS','registerComponent','length','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_univerInstanceService','createInstance','_handleOperation','_reporters','_handleNewHost','570wWuYoL','LIVESHARE_NEW_HOST','1168hBveuz','shouldShareOperation','unitId','getLiveShareCoordinatorSync','_injector','_presenter','240201mXjrLH','executeCommand','pipe','_status','getMemberID','1044zxIGqW','presenting','add','You\x27re\x20following\x20the\x20presenter','div','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_uiPartsService','get','_fetchOperations','mutations','getUnitId','getConfig','OPERATION','offline','current','getValue','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','pluginName','registerSharedOperation','unsubscribe','memberID','_commandDisposable','has','registerInitialStateReporter','Present\x20this\x20document','_unitID','button','NOT_FOLLOWING','UNIVER_SHEET','NEW_CHANGESETS','You\x27re\x20not\x20following\x20the\x20presenter','627915IhdPcZ','_handleNewChangeSets','You\x27are\x20offline.','getTypeOfUnitDisposed$','OFFLINE','complete','UNIVER_UNKNOWN','_entities','_handleOffline','_collabSession','find','clear','_sharedOperations','sheet','prototype','_liveShareService','LIVESHARE_REQUEST_HOST','string','defineProperty','init','PRESENTING','stringify','following','symbol','object','delete','748534YZCHhW','asObservable','_stopFollowing','default','subscribe','_config','presenter'];_0x1586=function(){return _0x2e8a65;};return _0x1586();}import{InsertSheetMutation as _0x500e77,SetWorksheetActiveOperation as _0x1f3228}from'@univerjs/sheets';import{BehaviorSubject as _0x1774ef,Subject as _0xe151d8}from'rxjs';import{takeUntil as _0x7a005d,throttleTime as _0x5d90f3}from'rxjs/operators';import{BuiltInUIPart as _0x1794fc,IUIPartsService as _0x10d088,connectInjector as _0x1516ea,useDependency as _0x4a7844,useObservable as _0x516d61}from'@univerjs/ui';import{Button as _0x55f00c,Dropdown as _0x53bcb1,clsx as _0x56d0d4}from'@univerjs/design';import{LiveShareIcon as _0x509d2b}from'@univerjs/icons';import{useEffect as _0x1fb6ee,useRef as _0x5219a6,useState as _0x93df6b}from'react';import{Fragment as _0x4ecb73,jsx as _0x15f794,jsxs as _0x3b419a}from'react/jsx-runtime';import{SetScrollOperation as _0x3d0847,SetZoomRatioOperation as _0x590899}from'@univerjs/sheets-ui';function R(_0x44a525){'@babel/helpers - typeof';const _0x12392e=_0x5d67;return R=typeof Symbol==_0x12392e(0x1e8)&&typeof Symbol[_0x12392e(0x200)]==_0x12392e(0x1c5)?function(_0xda6c25){return typeof _0xda6c25;}:function(_0x145ab0){const _0x187458=_0x12392e;return _0x145ab0&&typeof Symbol=='function'&&_0x145ab0['constructor']===Symbol&&_0x145ab0!==Symbol[_0x187458(0x1bc)]?'symbol':typeof _0x145ab0;},R(_0x44a525);}function z(_0x3b2acc,_0x468db6){const _0x1c7537=_0x5d67;if(R(_0x3b2acc)!=_0x1c7537(0x1c6)||!_0x3b2acc)return _0x3b2acc;var _0x4c5321=_0x3b2acc[Symbol[_0x1c7537(0x1ff)]];if(_0x4c5321!==void 0x0){var _0x439969=_0x4c5321[_0x1c7537(0x1f4)](_0x3b2acc,_0x468db6||_0x1c7537(0x1cb));if(R(_0x439969)!=_0x1c7537(0x1c6))return _0x439969;throw TypeError(_0x1c7537(0x226));}return(_0x468db6===_0x1c7537(0x1bf)?String:Number)(_0x3b2acc);}function B(_0x2566b0){const _0xe9f83=_0x5d67;var _0x1485dd=z(_0x2566b0,_0xe9f83(0x1bf));return R(_0x1485dd)==_0xe9f83(0x1c5)?_0x1485dd:_0x1485dd+'';}function V(_0x52271f,_0x2ed73e,_0x39d149){const _0x2dcecd=_0x5d67;return(_0x2ed73e=B(_0x2ed73e))in _0x52271f?Object[_0x2dcecd(0x1c0)](_0x52271f,_0x2ed73e,{'value':_0x39d149,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52271f[_0x2ed73e]=_0x39d149,_0x52271f;}var H=class extends _0x34af2c{constructor(..._0x55b199){const _0x2a9ef3=_0x5d67;super(..._0x55b199),V(this,_0x2a9ef3(0x1ba),new Set()),V(this,_0x2a9ef3(0x212),new Set());}[_0x2fef7c(0x233)](_0x5f3b57){const _0x38388a=_0x2fef7c;return this[_0x38388a(0x1ba)]['add'](_0x5f3b57),_0x11276b(()=>this['_sharedOperations'][_0x38388a(0x1c7)](_0x5f3b57));}[_0x2fef7c(0x1a6)](_0x5506b9){const _0x100815=_0x2fef7c;return this[_0x100815(0x212)][_0x100815(0x223)](_0x5506b9),_0x11276b(()=>this[_0x100815(0x212)]['delete'](_0x5506b9));}[_0x2fef7c(0x217)](_0x4c009e){const _0x42182d=_0x2fef7c;return this[_0x42182d(0x1ba)][_0x42182d(0x1a5)](_0x4c009e);}['getInitialStates'](_0x22d416){const _0x4aa8fa=_0x2fef7c;return Array['from'](this[_0x4aa8fa(0x212)])[_0x4aa8fa(0x206)](_0x3dd8ca=>_0x3dd8ca(_0x22d416));}};function U(_0x34267e,_0x5a8c8e){return function(_0x5e9d6c,_0x373230){_0x5a8c8e(_0x5e9d6c,_0x373230,_0x34267e);};}function W(_0x422a09,_0x393b5c,_0x515bcb,_0x132d72){const _0x1dfc6a=_0x2fef7c;var _0xe24a46=arguments['length'],_0x2ed574=_0xe24a46<0x3?_0x393b5c:_0x132d72===null?_0x132d72=Object['getOwnPropertyDescriptor'](_0x393b5c,_0x515bcb):_0x132d72,_0x3d44f9;if(typeof Reflect==_0x1dfc6a(0x1c6)&&typeof Reflect['decorate']==_0x1dfc6a(0x1e8))_0x2ed574=Reflect['decorate'](_0x422a09,_0x393b5c,_0x515bcb,_0x132d72);else{for(var _0x27aa0d=_0x422a09[_0x1dfc6a(0x20c)]-0x1;_0x27aa0d>=0x0;_0x27aa0d--)(_0x3d44f9=_0x422a09[_0x27aa0d])&&(_0x2ed574=(_0xe24a46<0x3?_0x3d44f9(_0x2ed574):_0xe24a46>0x3?_0x3d44f9(_0x393b5c,_0x515bcb,_0x2ed574):_0x3d44f9(_0x393b5c,_0x515bcb))||_0x2ed574);}return _0xe24a46>0x3&&_0x2ed574&&Object[_0x1dfc6a(0x1c0)](_0x393b5c,_0x515bcb,_0x2ed574),_0x2ed574;}let G=class extends _0x37cd84{constructor(_0xf901d9,_0x425654,_0x399db5){const _0x25f027=_0x2fef7c;super(),this[_0x25f027(0x20f)]=_0xf901d9,this[_0x25f027(0x21a)]=_0x425654,this[_0x25f027(0x204)]=_0x399db5,V(this,_0x25f027(0x1b5),new Map()),this[_0x25f027(0x1e6)]();}async[_0x2fef7c(0x1d1)](_0x30745d){const _0x218db5=_0x2fef7c;return this['_entities']['has'](_0x30745d)||await this[_0x218db5(0x20e)](_0x30745d),this[_0x218db5(0x1b5)][_0x218db5(0x228)](_0x30745d);}[_0x2fef7c(0x219)](_0x42f9ee){const _0x42a262=_0x2fef7c;var _0x54a086;return(_0x54a086=this[_0x42a262(0x1b5)]['get'](_0x42f9ee))==null?null:_0x54a086;}[_0x2fef7c(0x1e6)](){const _0x33cdbd=_0x2fef7c;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x484186[_0x33cdbd(0x1ab)])[_0x33cdbd(0x21e)](_0x7a005d(this[_0x33cdbd(0x1f9)]))['subscribe'](async _0x15b86d=>{const _0x23d30f=_0x33cdbd;let _0x46332b=_0x15b86d[_0x23d30f(0x1d8)][_0x23d30f(0x22b)]();this[_0x23d30f(0x1b5)]['has'](_0x46332b)||this[_0x23d30f(0x20e)](_0x46332b);}),this[_0x33cdbd(0x20f)][_0x33cdbd(0x1b1)](_0x484186[_0x33cdbd(0x1ab)])[_0x33cdbd(0x21e)](_0x7a005d(this[_0x33cdbd(0x1f9)]))[_0x33cdbd(0x1cc)](_0x5ced9e=>{const _0x49e621=_0x33cdbd;let _0x5e7cf9=_0x5ced9e[_0x49e621(0x22b)](),_0x3cd4ae=this[_0x49e621(0x1b5)][_0x49e621(0x228)](_0x5e7cf9);_0x3cd4ae==null||_0x3cd4ae[_0x49e621(0x1e1)]();});}async[_0x2fef7c(0x20e)](_0x29dce1){const _0x1f7549=_0x2fef7c;let _0x2d66d8=await this[_0x1f7549(0x204)][_0x1f7549(0x1f8)](_0x29dce1),_0x416d10=this['_injector'][_0x1f7549(0x210)](q,_0x29dce1,_0x2d66d8);return _0x416d10[_0x1f7549(0x1c1)](),this[_0x1f7549(0x1b5)][_0x1f7549(0x1ee)](_0x29dce1,_0x416d10),_0x416d10;}};G=W([U(0x0,_0x37e2f7),U(0x1,_0x58ba95(_0x1d5427)),U(0x2,_0x58ba95(_0x512147))],G);let K=function(_0x2506ac){const _0x4ddf04=_0x2fef7c;return _0x2506ac['OFFLINE']='offline',_0x2506ac[_0x4ddf04(0x1dc)]='idle',_0x2506ac[_0x4ddf04(0x1db)]=_0x4ddf04(0x1c4),_0x2506ac[_0x4ddf04(0x1aa)]='not-following',_0x2506ac[_0x4ddf04(0x1c2)]=_0x4ddf04(0x222),_0x2506ac;}({}),q=class extends _0x37cd84{get[_0x2fef7c(0x21f)](){const _0x5c6083=_0x2fef7c;return this[_0x5c6083(0x1d5)][_0x5c6083(0x230)]();}constructor(_0x33ab99,_0x5e0b9f,_0x38876b,_0x45a9f1,_0x478906){const _0x5f4837=_0x2fef7c;super(),this[_0x5f4837(0x1a8)]=_0x33ab99,this[_0x5f4837(0x1b7)]=_0x5e0b9f,this[_0x5f4837(0x1fc)]=_0x38876b,this[_0x5f4837(0x1bd)]=_0x45a9f1,this[_0x5f4837(0x1ef)]=_0x478906,V(this,_0x5f4837(0x1d5),new _0x1774ef(_0x5f4837(0x1dd))),V(this,_0x5f4837(0x1da),this[_0x5f4837(0x1d5)][_0x5f4837(0x1c9)]()),V(this,_0x5f4837(0x1e6),!0x1),V(this,_0x5f4837(0x1a4),null),V(this,_0x5f4837(0x21b),null);}[_0x2fef7c(0x1e1)](){const _0x3ef23e=_0x2fef7c;var _0x5dcb9e;(_0x5dcb9e=this[_0x3ef23e(0x1a4)])==null||_0x5dcb9e[_0x3ef23e(0x1e1)](),this['_status$'][_0x3ef23e(0x1cf)]('idle'),this[_0x3ef23e(0x1d5)][_0x3ef23e(0x1b3)]();}['getStatus'](){const _0x2e6163=_0x2fef7c;return this[_0x2e6163(0x21f)];}['init'](){const _0x48dd2a=_0x2fef7c;this['_init']||(this[_0x48dd2a(0x1e6)]=!0x0,this['_collabSession'][_0x48dd2a(0x209)][_0x48dd2a(0x21e)](_0x7a005d(this['dispose$']))[_0x48dd2a(0x1cc)](_0x145471=>{const _0xaad294=_0x48dd2a;switch(_0x145471){case _0x498991[_0xaad294(0x1b2)]:this[_0xaad294(0x1b6)]();break;case _0x498991['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x48dd2a(0x1b7)][_0x48dd2a(0x1d0)]['pipe'](_0x7a005d(this['dispose$']))[_0x48dd2a(0x1cc)](_0x478d7c=>{const _0x2d5d1a=_0x48dd2a;let {eventID:_0x45249a}=_0x478d7c;switch(_0x45249a){case _0x478db0[_0x2d5d1a(0x215)]:this['_handleNewHost'](_0x478d7c);break;case _0x478db0[_0x2d5d1a(0x1d7)]:this['_handleOperation'](_0x478d7c);break;case _0x478db0[_0x2d5d1a(0x20d)]:this[_0x2d5d1a(0x1d9)]();break;case _0x478db0[_0x2d5d1a(0x1ac)]:this[_0x2d5d1a(0x1af)](_0x478d7c);break;default:}}));}[_0x2fef7c(0x1e5)](){const _0x1bb7b9=_0x2fef7c;this[_0x1bb7b9(0x1b7)][_0x1bb7b9(0x1df)]({'eventID':_0x478db0[_0x1bb7b9(0x1be)],'data':{'unitID':this[_0x1bb7b9(0x1a8)],'userID':this[_0x1bb7b9(0x1b7)]['getMemberID']()}},this[_0x1bb7b9(0x1a8)]);}[_0x2fef7c(0x1f0)](){const _0x1445c6=_0x2fef7c;this[_0x1445c6(0x21f)]==='presenting'&&(this[_0x1445c6(0x1d5)][_0x1445c6(0x1cf)]('idle'),this[_0x1445c6(0x1b7)][_0x1445c6(0x1df)]({'eventID':_0x478db0['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1445c6(0x1a8)]}},this[_0x1445c6(0x1a8)]));}[_0x2fef7c(0x1d2)](){const _0x18cf49=_0x2fef7c;this[_0x18cf49(0x21f)]==='not-following'&&(this[_0x18cf49(0x1d5)][_0x18cf49(0x1cf)](_0x18cf49(0x1c4)),this[_0x18cf49(0x1ea)]());}['stopFollowing'](){const _0x3696ba=_0x2fef7c;this[_0x3696ba(0x21f)]===_0x3696ba(0x1c4)&&this['_stopFollowing']();}[_0x2fef7c(0x213)](_0x424c6c){const _0x38acf8=_0x2fef7c;let {presenter:_0x5bfca6}=_0x424c6c['data'],_0xec1494=this[_0x38acf8(0x1b7)][_0x38acf8(0x220)]();this[_0x38acf8(0x21b)]=_0x5bfca6,_0x5bfca6===_0xec1494?(this[_0x38acf8(0x1ca)](),this[_0x38acf8(0x1d4)]()):this['_status']!==_0x38acf8(0x202)&&(this[_0x38acf8(0x1f7)](),this[_0x38acf8(0x1ea)]());}[_0x2fef7c(0x229)](){const _0x287c75=_0x2fef7c;let _0x1e7c60={'eventID':_0x478db0[_0x287c75(0x20a)]};this[_0x287c75(0x1b7)]['send'](_0x1e7c60,this['_unitID']);}['_handleTerminate'](){const _0x2e9f1e=_0x2fef7c;this[_0x2e9f1e(0x21b)]=null,this['_status']!==_0x2e9f1e(0x222)&&this[_0x2e9f1e(0x1e7)]();}['_handleNewChangeSets'](_0xf2a402){const _0x457761=_0x2fef7c;if(this[_0x457761(0x21f)]===_0x457761(0x1c4)&&this[_0x457761(0x21b)]===_0xf2a402[_0x457761(0x207)][_0x457761(0x1a3)]){let _0x226e38=_0xcd04f0(_0xf2a402[_0x457761(0x207)])[_0x457761(0x22a)]['reverse']()[_0x457761(0x1b8)](_0x29e944=>_0x29e944['id']===_0x500e77['id']);if(_0x226e38){let _0x2775bf=_0x226e38[_0x457761(0x1f6)][_0x457761(0x218)],_0x2ea326=_0x226e38[_0x457761(0x1f6)][_0x457761(0x1bb)]['id'];setTimeout(()=>{const _0x3bfb05=_0x457761;this['_commandService'][_0x3bfb05(0x21d)](_0x1f3228['id'],{'unitId':_0x2775bf,'subUnitId':_0x2ea326},{'fromCollab':!0x0});});}}}[_0x2fef7c(0x1d4)](){const _0x2fbd88=_0x2fef7c;var _0x154ce2;(_0x154ce2=this['_commandDisposable'])==null||_0x154ce2['dispose'](),this[_0x2fbd88(0x1d5)][_0x2fbd88(0x1cf)](_0x2fbd88(0x222));let _0x448227=new Map(),_0x48e064=this[_0x2fbd88(0x1a4)]=new _0x4c4ac3();_0x48e064[_0x2fbd88(0x223)](_0x11276b(()=>{const _0x2b79e5=_0x2fbd88;_0x448227[_0x2b79e5(0x1fd)](({subject:_0x4fd9bc,subscription:_0x129172})=>{const _0x36c609=_0x2b79e5;_0x129172[_0x36c609(0x234)](),_0x4fd9bc['complete']();}),_0x448227[_0x2b79e5(0x1b9)]();})),_0x48e064[_0x2fbd88(0x223)](this[_0x2fbd88(0x1ef)][_0x2fbd88(0x1e2)](_0x467536=>{const _0x3c1dfb=_0x2fbd88;if(_0x467536[_0x3c1dfb(0x1d6)]!==_0x1c342c[_0x3c1dfb(0x22d)]||!this[_0x3c1dfb(0x1bd)][_0x3c1dfb(0x217)](_0x467536['id']))return;let {id:_0x6f4c6c}=_0x467536,_0x2571a6;if(_0x448227[_0x3c1dfb(0x1a5)](_0x6f4c6c))_0x2571a6=_0x448227[_0x3c1dfb(0x228)](_0x6f4c6c)['subject'];else{var _0xb14794;_0x2571a6=new _0xe151d8();let _0x2540d8=_0x2571a6[_0x3c1dfb(0x21e)](_0x5d90f3((_0xb14794=this[_0x3c1dfb(0x1fc)][_0x3c1dfb(0x22c)](_0x3c1dfb(0x1ed)))==null?0xc8:_0xb14794,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3c1dfb(0x1cc)](_0x285ca3=>{const _0x441dc1=_0x3c1dfb;this[_0x441dc1(0x1b7)][_0x441dc1(0x1df)]({'eventID':_0x478db0['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x441dc1(0x1a8)],'operations':{[_0x285ca3['id']]:{'id':_0x285ca3['id'],'params':JSON[_0x441dc1(0x1c3)](_0x285ca3[_0x441dc1(0x1f6)])}}}},this[_0x441dc1(0x1a8)]);});_0x448227[_0x3c1dfb(0x1ee)](_0x6f4c6c,{'subject':_0x2571a6,'subscription':_0x2540d8});}_0x2571a6['next'](_0x467536);})),this[_0x2fbd88(0x1bd)]['getInitialStates'](this[_0x2fbd88(0x1a8)])[_0x2fbd88(0x1fd)](_0x5e7ac3=>this[_0x2fbd88(0x1b7)][_0x2fbd88(0x1df)]({'eventID':_0x478db0[_0x2fbd88(0x1d7)],'data':{'unitID':this['_unitID'],'operations':{[_0x5e7ac3['id']]:{'id':_0x5e7ac3['id'],'params':JSON[_0x2fbd88(0x1c3)](_0x5e7ac3[_0x2fbd88(0x1f6)])}}}},this['_unitID']));}[_0x2fef7c(0x1f7)](){const _0xd9979f=_0x2fef7c;var _0x272f2f;this[_0xd9979f(0x1d5)][_0xd9979f(0x1cf)](_0xd9979f(0x1dd)),(_0x272f2f=this[_0xd9979f(0x1a4)])==null||_0x272f2f[_0xd9979f(0x1e1)](),this[_0xd9979f(0x1a4)]=null;}[_0x2fef7c(0x1ea)](){const _0x206ea6=_0x2fef7c;var _0x1f2bc5;(_0x1f2bc5=this[_0x206ea6(0x1a4)])==null||_0x1f2bc5[_0x206ea6(0x1e1)](),this[_0x206ea6(0x1d5)][_0x206ea6(0x1cf)](_0x206ea6(0x1c4));}[_0x2fef7c(0x1e7)](){const _0x4345c7=_0x2fef7c;var _0x4569b2;this[_0x4345c7(0x1d5)][_0x4345c7(0x1cf)]('idle'),(_0x4569b2=this[_0x4345c7(0x1a4)])==null||_0x4569b2[_0x4345c7(0x1e1)](),this[_0x4345c7(0x1a4)]=null;}[_0x2fef7c(0x1ca)](){const _0x55ba17=_0x2fef7c;var _0x4a54e0;this['_status$'][_0x55ba17(0x1cf)](_0x55ba17(0x202)),(_0x4a54e0=this[_0x55ba17(0x1a4)])==null||_0x4a54e0[_0x55ba17(0x1e1)]();}[_0x2fef7c(0x211)](_0x18cc30){const _0x385f65=_0x2fef7c;if(['presenting','not-following',_0x385f65(0x22e)]['includes'](this[_0x385f65(0x21f)])||!_0x18cc30[_0x385f65(0x207)][_0x385f65(0x1ce)]||_0x18cc30[_0x385f65(0x207)]['presenter']===this[_0x385f65(0x1b7)]['getMemberID']())return;this['_status']===_0x385f65(0x1dd)&&this[_0x385f65(0x1ea)]();let _0x56c30a=_0x18cc30[_0x385f65(0x207)]['operations'];Object['values'](_0x56c30a)[_0x385f65(0x1fd)](_0x197bd7=>{const _0x292971=_0x385f65;this[_0x292971(0x1ef)][_0x292971(0x21d)](_0x197bd7['id'],_0x197bd7[_0x292971(0x1f6)]?JSON[_0x292971(0x1f1)](_0x197bd7[_0x292971(0x1f6)]):null,{'fromCollab':!0x0});});}[_0x2fef7c(0x1b6)](){const _0x165287=_0x2fef7c;var _0x3710d6;this['_status$'][_0x165287(0x1cf)](_0x165287(0x22e)),(_0x3710d6=this[_0x165287(0x1a4)])==null||_0x3710d6['dispose']();}['_handleOnline'](){const _0x4b3547=_0x2fef7c;this['_status$'][_0x4b3547(0x1cf)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x1d7a2a),U(0x3,_0x58ba95(H)),U(0x4,_0x45569a)],q);function J(){const _0x443167=_0x2fef7c;let _0x53933b=_0x4a7844(G),_0x3f214a=_0x4a7844(_0x37e2f7),_0x35e03a=_0x516d61(()=>_0x3f214a['getCurrentTypeOfUnit$'](_0x484186[_0x443167(0x1ab)]),void 0x0,!0x1,[]),[_0x2d79bd,_0x2383bf]=_0x93df6b(null),[_0x17c01d,_0xf6a381]=_0x93df6b(_0x443167(0x1dd)),_0x28fe60=_0x5219a6(null);return _0x1fb6ee(()=>(_0x35e03a&&_0x53933b[_0x443167(0x1d1)](_0x35e03a['getUnitId']())[_0x443167(0x1f5)](_0x3c7d1d=>{const _0x3d0877=_0x443167;_0x2383bf(_0x3c7d1d),_0x28fe60[_0x3d0877(0x22f)]=_0x3c7d1d[_0x3d0877(0x1da)]['subscribe'](_0x97171b=>{_0xf6a381(_0x97171b);});}),()=>{const _0x28a4b3=_0x443167;var _0xd731a1;(_0xd731a1=_0x28fe60[_0x28a4b3(0x22f)])==null||_0xd731a1[_0x28a4b3(0x234)](),_0x28fe60[_0x28a4b3(0x22f)]=null;}),[_0x35e03a,_0x53933b]),_0x2d79bd?_0x15f794(_0x53bcb1,{'align':'end','disabled':_0x17c01d===_0x443167(0x22e),'className':_0x443167(0x231),'overlay':_0x15f794(se,{'status':_0x17c01d,'coordinator':_0x2d79bd}),'children':_0x15f794(_0x443167(0x1a9),{'className':_0x56d0d4(_0x443167(0x201),{'univer-cursor-not-allowed':_0x17c01d===_0x443167(0x22e),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c01d!==_0x443167(0x22e)}),'type':_0x443167(0x1a9),'children':_0x15f794(_0x509d2b,{})})}):null;}function se(_0x55c102){const _0x48c359=_0x2fef7c;let {status:_0x51f5b8,coordinator:_0x387aa5}=_0x55c102;switch(_0x51f5b8){case _0x48c359(0x1dd):return _0x15f794(ce,{'coordinator':_0x387aa5});case _0x48c359(0x1c4):return _0x15f794(le,{'coordinator':_0x387aa5});case _0x48c359(0x202):return _0x15f794(ue,{'coordinator':_0x387aa5});case _0x48c359(0x22e):return _0x15f794(de,{});case _0x48c359(0x222):return _0x15f794(Y,{'coordinator':_0x387aa5});default:return null;}}function ce(_0x92d006){const _0x2f721c=_0x2fef7c;let {coordinator:_0x3bb0d9}=_0x92d006;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794(_0x2f721c(0x225),{'className':_0x2f721c(0x1e4),'children':_0x2f721c(0x1a7)}),_0x15f794(_0x55f00c,{'onClick':()=>_0x3bb0d9[_0x2f721c(0x1e5)](),'children':'Start'})]});}function le(_0x3a9022){const _0x4dfb6a=_0x2fef7c;let {coordinator:_0x12bd06}=_0x3a9022;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794('div',{'className':_0x4dfb6a(0x1e4),'children':_0x4dfb6a(0x224)}),_0x15f794(_0x55f00c,{'onClick':()=>_0x12bd06[_0x4dfb6a(0x208)](),'children':'Stop\x20following'})]});}function ue(_0x6e2716){const _0x465cf3=_0x2fef7c;let {coordinator:_0x322520}=_0x6e2716;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794(_0x465cf3(0x225),{'className':_0x465cf3(0x1e4),'children':_0x465cf3(0x1ad)}),_0x15f794(_0x55f00c,{'variant':'text','onClick':()=>_0x322520[_0x465cf3(0x1d2)](),'children':_0x465cf3(0x1fe)})]});}function _0x5d67(_0x387637,_0x3cede3){_0x387637=_0x387637-0x1a3;const _0x15864d=_0x1586();let _0x5d675a=_0x15864d[_0x387637];return _0x5d675a;}function Y(_0x1c5a53){const _0x30097b=_0x2fef7c;let {coordinator:_0x130552}=_0x1c5a53;return _0x3b419a(_0x4ecb73,{'children':[_0x15f794('div',{'className':_0x30097b(0x1e4),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x15f794(_0x55f00c,{'variant':'default','onClick':()=>_0x130552[_0x30097b(0x1f0)](),'children':_0x30097b(0x1fa)})]});}function de(){const _0x159885=_0x2fef7c;return _0x15f794(_0x4ecb73,{'children':_0x159885(0x1b0)});}let X=class extends _0x34af2c{constructor(_0x11adab,_0x59aa32){const _0x429b61=_0x2fef7c;super(),this[_0x429b61(0x21a)]=_0x11adab,this[_0x429b61(0x227)]=_0x59aa32,this['_mountLiveShare']();}[_0x2fef7c(0x1ec)](){const _0x3239d6=_0x2fef7c;this[_0x3239d6(0x1eb)](this['_uiPartsService'][_0x3239d6(0x20b)](_0x1794fc['HEADER_MENU'],()=>_0x1516ea(J,this[_0x3239d6(0x21a)])));}};X=W([U(0x0,_0x58ba95(_0x1d5427)),U(0x1,_0x10d088)],X);var fe=_0x2fef7c(0x1d3),pe=_0x2fef7c(0x205);const Z={};let Q=class extends _0x34af2c{constructor(_0x10e21){const _0x3c2bfa=_0x2fef7c;super(),this[_0x3c2bfa(0x1bd)]=_0x10e21,this[_0x3c2bfa(0x1e6)]();}[_0x2fef7c(0x1e6)](){[_0x590899['id'],_0x3d0847['id'],_0x1f3228['id']]['forEach'](_0x19271a=>{const _0x25a3a4=_0x5d67;this[_0x25a3a4(0x1eb)](this[_0x25a3a4(0x1bd)][_0x25a3a4(0x233)](_0x19271a));});}};Q=W([U(0x0,_0x58ba95(H))],Q);let $=class extends _0x5703cb{constructor(_0x24d5bd=Z,_0x56c729,_0x4e301d){const _0x2d1eba=_0x2fef7c;super(),this['_config']=_0x24d5bd,this[_0x2d1eba(0x21a)]=_0x56c729,this[_0x2d1eba(0x1fc)]=_0x4e301d;let {..._0x3caf70}=_0x4ef3b5({},Z,this[_0x2d1eba(0x1cd)]);this['_configService']['setConfig']('live-share.config',_0x3caf70);}['onStarting'](){const _0x1f7c56=_0x2fef7c;_0x118c94(this[_0x1f7c56(0x21a)],_0xb5819d([[H],[G],[Q],[X]],this[_0x1f7c56(0x1cd)][_0x1f7c56(0x1e3)])),_0xce53d7(this['_injector'],[[Q]]);}[_0x2fef7c(0x1fb)](){const _0x1ae284=_0x2fef7c;_0xce53d7(this[_0x1ae284(0x21a)],[[X]]);}};V($,_0x2fef7c(0x1d6),_0x484186[_0x2fef7c(0x1b4)]),V($,_0x2fef7c(0x232),_0x2fef7c(0x1f3)),V($,_0x2fef7c(0x1e0),fe),V($,'version',pe),$=W([_0x4cd9e3(_0x425914),U(0x1,_0x58ba95(_0x1d5427)),U(0x2,_0x1d7a2a)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x163933=_0x49a4;(function(_0x166d25,_0xb36586){const _0x5ed3f5=_0x49a4,_0x5e91b3=_0x166d25();while(!![]){try{const _0x5a83e8=parseInt(_0x5ed3f5(0x1e0))/0x1+parseInt(_0x5ed3f5(0x18e))/0x2*(-parseInt(_0x5ed3f5(0x1ba))/0x3)+-parseInt(_0x5ed3f5(0x18f))/0x4+parseInt(_0x5ed3f5(0x19f))/0x5*(-parseInt(_0x5ed3f5(0x177))/0x6)+parseInt(_0x5ed3f5(0x17e))/0x7+-parseInt(_0x5ed3f5(0x1e2))/0x8*(-parseInt(_0x5ed3f5(0x1f2))/0x9)+parseInt(_0x5ed3f5(0x1eb))/0xa*(-parseInt(_0x5ed3f5(0x1da))/0xb);if(_0x5a83e8===_0xb36586)break;else _0x5e91b3['push'](_0x5e91b3['shift']());}catch(_0x4b0be9){_0x5e91b3['push'](_0x5e91b3['shift']());}}}(_0x4c3f,0x670ae));import{CollaborationEvent as _0x2f4f4b,parseProtocolChangeset as _0xf7fca8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1dc03d,SessionStatus as _0x43364d,UniverCollaborationClientPlugin as _0x33b357}from'@univerjs-pro/collaboration-client';import{CommandType as _0x41b375,DependentOn as _0x372528,Disposable as _0x3a6ee4,DisposableCollection as _0x373e29,ICommandService as _0x15ae55,IConfigService as _0x3287d9,IUniverInstanceService as _0x5dd410,Inject as _0x147d4e,Injector as _0x430c6d,Plugin as _0x2c55cc,RxDisposable as _0x3eff75,UniverInstanceType as _0x19d69b,merge as _0x1f0203,mergeOverrideWithDependencies as _0x76a44e,registerDependencies as _0x492046,toDisposable as _0x2c9771,touchDependencies as _0x4b567d}from'@univerjs/core';import{InsertSheetMutation as _0x29a9fa,SetWorksheetActiveOperation as _0x24df1b}from'@univerjs/sheets';import{BehaviorSubject as _0x1bdd9f,Subject as _0x4a9313}from'rxjs';import{takeUntil as _0x66b583,throttleTime as _0x23f001}from'rxjs/operators';import{BuiltInUIPart as _0x27c857,IUIPartsService as _0x2568a8,connectInjector as _0x34038f,useDependency as _0x4d0b0b,useObservable as _0x471499}from'@univerjs/ui';function _0x4c3f(){const _0x1d12b0=['_reporters','HEADER_MENU','clear','presenter','_injector','set','FOLLOWING','_commandService','setConfig','status$','executeCommand','LIVESHARE_FETCH_OPERATIONS','subscribe','Start','_handleOnline','getLiveShareCoordinatorSync','data','onStarting','call','6rifvkw','memberID','idle','prototype','_startFollowing','_univerInstanceService','_startPresenting','3153962cexbSX','packageName','toPrimitive','getValue','pluginName','createInstance','_handleNewChangeSets','end','@univerjs-pro/live-share','getTypeOfUnitAdded$','sessionStatus$','decorate','ONLINE','asObservable','pipe','button','12JjJguK','3217576HJgNcE','override','getCurrentTypeOfUnit$','getLiveShareCoordinator','_entities','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','LIVESHARE_NEW_HOST','_unitID','LIVESHARE_TERMINATE','offline','OPERATION','_collabSession','length','shouldShareOperation','_commandDisposable','1497950knNXPS','requireSession','_startLiveShareCoordinator','sheet','tryStartPresenting','OFFLINE','onRendered','current','delete','function','default','getOwnPropertyDescriptor','_collabSessionService','get','stringify','_sharedOperations','following','from','defineProperty','You\x27are\x20offline.','includes','_config','_handleOperation','unitId','div','_handleOffline','complete','82179tBeTmf','You\x27re\x20presenting\x20the\x20document','getInitialStates','forEach','_status','unit','getStatus','getUnitId','presenting','_stopFollowing','disposeWithMe','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','add','string','_handleTerminate','_status$','symbol','mutations','_configService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','_liveShareService','not-following','getTypeOfUnitDisposed$','reverse','getConfig','UNIVER_LIVE_SHARE_PLUGIN','constructor','registerComponent','_presenter','2560206GIuVnm','1.0.0-alpha.1','_init','onCommandExecuted','send','_mountLiveShare','635588GlObXK','version','1673992efwRCn','find','params','getMemberID','next','LIVESHARE_OPERATION','then','Start\x20following','object','10nwvzzS','init','NOT_FOLLOWING','_handleNewHost','_stopPresenting','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','type','36ekssiw','UNIVER_UNKNOWN','PRESENTING','dispose','dispose$','unsubscribe'];_0x4c3f=function(){return _0x1d12b0;};return _0x4c3f();}import{Button as _0xac3a18,Dropdown as _0x4045b5,clsx as _0x38f52b}from'@univerjs/design';import{LiveShareIcon as _0x5e9cb6}from'@univerjs/icons';import{useEffect as _0x542576,useRef as _0x418b8a,useState as _0x41fdc7}from'react';import{Fragment as _0x98295f,jsx as _0x50789a,jsxs as _0x16b88}from'react/jsx-runtime';import{SetScrollOperation as _0x452de4,SetZoomRatioOperation as _0x284992}from'@univerjs/sheets-ui';function R(_0x2e5dbd){'@babel/helpers - typeof';const _0x1909dc=_0x49a4;return R=typeof Symbol==_0x1909dc(0x1a8)&&typeof Symbol['iterator']=='symbol'?function(_0x1aede5){return typeof _0x1aede5;}:function(_0x4970eb){const _0x1f32d9=_0x1909dc;return _0x4970eb&&typeof Symbol=='function'&&_0x4970eb[_0x1f32d9(0x1d7)]===Symbol&&_0x4970eb!==Symbol[_0x1f32d9(0x17a)]?_0x1f32d9(0x1cb):typeof _0x4970eb;},R(_0x2e5dbd);}function z(_0x360513,_0x561972){const _0x566e15=_0x49a4;if(R(_0x360513)!=_0x566e15(0x1ea)||!_0x360513)return _0x360513;var _0x1ca540=_0x360513[Symbol[_0x566e15(0x180)]];if(_0x1ca540!==void 0x0){var _0xaa31f1=_0x1ca540[_0x566e15(0x176)](_0x360513,_0x561972||_0x566e15(0x1a9));if(R(_0xaa31f1)!=_0x566e15(0x1ea))return _0xaa31f1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x561972===_0x566e15(0x1c8)?String:Number)(_0x360513);}function B(_0x298d17){const _0x2bc6a9=_0x49a4;var _0x2e51f5=z(_0x298d17,_0x2bc6a9(0x1c8));return R(_0x2e51f5)==_0x2bc6a9(0x1cb)?_0x2e51f5:_0x2e51f5+'';}function V(_0x4bc780,_0x3b6231,_0x10d764){return(_0x3b6231=B(_0x3b6231))in _0x4bc780?Object['defineProperty'](_0x4bc780,_0x3b6231,{'value':_0x10d764,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bc780[_0x3b6231]=_0x10d764,_0x4bc780;}function _0x49a4(_0x430074,_0x2c9319){_0x430074=_0x430074-0x175;const _0x4c3fa5=_0x4c3f();let _0x49a4ac=_0x4c3fa5[_0x430074];return _0x49a4ac;}var H=class extends _0x3a6ee4{constructor(..._0x39f7fb){const _0x4d3fcd=_0x49a4;super(..._0x39f7fb),V(this,_0x4d3fcd(0x1ae),new Set()),V(this,_0x4d3fcd(0x1f8),new Set());}['registerSharedOperation'](_0xac2562){const _0x14bfae=_0x49a4;return this[_0x14bfae(0x1ae)]['add'](_0xac2562),_0x2c9771(()=>this['_sharedOperations'][_0x14bfae(0x1a7)](_0xac2562));}['registerInitialStateReporter'](_0x4b672f){const _0x5870a3=_0x49a4;return this['_reporters'][_0x5870a3(0x1c7)](_0x4b672f),_0x2c9771(()=>this[_0x5870a3(0x1f8)][_0x5870a3(0x1a7)](_0x4b672f));}[_0x163933(0x19d)](_0x2c4e5c){const _0x1680f1=_0x163933;return this[_0x1680f1(0x1ae)][_0x1680f1(0x1c5)](_0x2c4e5c);}[_0x163933(0x1bc)](_0x48c9c8){const _0x3e8813=_0x163933;return Array[_0x3e8813(0x1b0)](this['_reporters'])['map'](_0x56600c=>_0x56600c(_0x48c9c8));}};function U(_0xe4e8b3,_0x1df87b){return function(_0xa60193,_0x182af4){_0x1df87b(_0xa60193,_0x182af4,_0xe4e8b3);};}function W(_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e){const _0x3f17be=_0x163933;var _0x5a9968=arguments['length'],_0x2d3b37=_0x5a9968<0x3?_0x3a1df4:_0x1ea34e===null?_0x1ea34e=Object[_0x3f17be(0x1aa)](_0x3a1df4,_0x4c0591):_0x1ea34e,_0x1b9b97;if(typeof Reflect=='object'&&typeof Reflect[_0x3f17be(0x189)]==_0x3f17be(0x1a8))_0x2d3b37=Reflect['decorate'](_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e);else{for(var _0x1a01d8=_0x386c97[_0x3f17be(0x19c)]-0x1;_0x1a01d8>=0x0;_0x1a01d8--)(_0x1b9b97=_0x386c97[_0x1a01d8])&&(_0x2d3b37=(_0x5a9968<0x3?_0x1b9b97(_0x2d3b37):_0x5a9968>0x3?_0x1b9b97(_0x3a1df4,_0x4c0591,_0x2d3b37):_0x1b9b97(_0x3a1df4,_0x4c0591))||_0x2d3b37);}return _0x5a9968>0x3&&_0x2d3b37&&Object[_0x3f17be(0x1b1)](_0x3a1df4,_0x4c0591,_0x2d3b37),_0x2d3b37;}let G=class extends _0x3eff75{constructor(_0x226578,_0x47fef8,_0x38b540){const _0x226b13=_0x163933;super(),this[_0x226b13(0x17c)]=_0x226578,this[_0x226b13(0x1fc)]=_0x47fef8,this[_0x226b13(0x1ab)]=_0x38b540,V(this,_0x226b13(0x193),new Map()),this[_0x226b13(0x1dc)]();}async[_0x163933(0x192)](_0x24bf37){const _0x5ea5c0=_0x163933;return this[_0x5ea5c0(0x193)]['has'](_0x24bf37)||await this[_0x5ea5c0(0x1a1)](_0x24bf37),this[_0x5ea5c0(0x193)][_0x5ea5c0(0x1ac)](_0x24bf37);}[_0x163933(0x207)](_0x4a1474){const _0x2ebb49=_0x163933;var _0x592831;return(_0x592831=this[_0x2ebb49(0x193)]['get'](_0x4a1474))==null?null:_0x592831;}[_0x163933(0x1dc)](){const _0x2cdc17=_0x163933;this[_0x2cdc17(0x17c)][_0x2cdc17(0x187)](_0x19d69b['UNIVER_SHEET'])[_0x2cdc17(0x18c)](_0x66b583(this['dispose$']))[_0x2cdc17(0x204)](async _0x15dbb3=>{const _0x5f77be=_0x2cdc17;let _0x3a2665=_0x15dbb3[_0x5f77be(0x1bf)]['getUnitId']();this['_entities']['has'](_0x3a2665)||this[_0x5f77be(0x1a1)](_0x3a2665);}),this[_0x2cdc17(0x17c)][_0x2cdc17(0x1d3)](_0x19d69b['UNIVER_SHEET'])['pipe'](_0x66b583(this[_0x2cdc17(0x1f6)]))[_0x2cdc17(0x204)](_0x5012e4=>{const _0x59db71=_0x2cdc17;let _0xc87cc0=_0x5012e4[_0x59db71(0x1c1)](),_0x37f9cd=this[_0x59db71(0x193)][_0x59db71(0x1ac)](_0xc87cc0);_0x37f9cd==null||_0x37f9cd['dispose']();});}async[_0x163933(0x1a1)](_0x5df195){const _0x3d0cb1=_0x163933;let _0x13f003=await this[_0x3d0cb1(0x1ab)][_0x3d0cb1(0x1a0)](_0x5df195),_0x202b31=this['_injector'][_0x3d0cb1(0x183)](q,_0x5df195,_0x13f003);return _0x202b31['init'](),this[_0x3d0cb1(0x193)]['set'](_0x5df195,_0x202b31),_0x202b31;}};G=W([U(0x0,_0x5dd410),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x147d4e(_0x1dc03d))],G);let K=function(_0x56b824){const _0x5d24ed=_0x163933;return _0x56b824[_0x5d24ed(0x1a4)]='offline',_0x56b824['IDLE']='idle',_0x56b824[_0x5d24ed(0x1fe)]=_0x5d24ed(0x1af),_0x56b824[_0x5d24ed(0x1ed)]='not-following',_0x56b824[_0x5d24ed(0x1f4)]='presenting',_0x56b824;}({}),q=class extends _0x3eff75{get['_status'](){const _0x8c5651=_0x163933;return this[_0x8c5651(0x1ca)][_0x8c5651(0x181)]();}constructor(_0x32fb17,_0x183cd3,_0x8672c3,_0x50f8c5,_0x10d38f){const _0x38b91d=_0x163933;super(),this['_unitID']=_0x32fb17,this['_collabSession']=_0x183cd3,this[_0x38b91d(0x1cd)]=_0x8672c3,this['_liveShareService']=_0x50f8c5,this[_0x38b91d(0x1ff)]=_0x10d38f,V(this,'_status$',new _0x1bdd9f('idle')),V(this,_0x38b91d(0x201),this[_0x38b91d(0x1ca)][_0x38b91d(0x18b)]()),V(this,_0x38b91d(0x1dc),!0x1),V(this,_0x38b91d(0x19e),null),V(this,_0x38b91d(0x1d9),null);}[_0x163933(0x1f5)](){const _0x5c4bde=_0x163933;var _0x50be78;(_0x50be78=this[_0x5c4bde(0x19e)])==null||_0x50be78['dispose'](),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1e6)](_0x5c4bde(0x179)),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1b9)]();}[_0x163933(0x1c0)](){const _0x5d2248=_0x163933;return this[_0x5d2248(0x1be)];}[_0x163933(0x1ec)](){const _0xd79c49=_0x163933;this[_0xd79c49(0x1dc)]||(this[_0xd79c49(0x1dc)]=!0x0,this[_0xd79c49(0x19b)][_0xd79c49(0x188)][_0xd79c49(0x18c)](_0x66b583(this[_0xd79c49(0x1f6)]))[_0xd79c49(0x204)](_0x28822a=>{const _0x30a943=_0xd79c49;switch(_0x28822a){case _0x43364d[_0x30a943(0x1a4)]:this[_0x30a943(0x1b8)]();break;case _0x43364d[_0x30a943(0x18a)]:this[_0x30a943(0x206)]();break;default:}}),this[_0xd79c49(0x19b)]['event$']['pipe'](_0x66b583(this['dispose$']))['subscribe'](_0x565bc9=>{const _0x5f285e=_0xd79c49;let {eventID:_0x59cf12}=_0x565bc9;switch(_0x59cf12){case _0x2f4f4b[_0x5f285e(0x196)]:this[_0x5f285e(0x1ee)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x1e7)]:this[_0x5f285e(0x1b5)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x198)]:this[_0x5f285e(0x1c9)]();break;case _0x2f4f4b['NEW_CHANGESETS']:this[_0x5f285e(0x184)](_0x565bc9);break;default:}}));}[_0x163933(0x1a3)](){const _0x19b60e=_0x163933;this['_collabSession']['send']({'eventID':_0x2f4f4b[_0x19b60e(0x195)],'data':{'unitID':this['_unitID'],'userID':this[_0x19b60e(0x19b)][_0x19b60e(0x1e5)]()}},this['_unitID']);}['stopPresenting'](){const _0xbdaf9f=_0x163933;this[_0xbdaf9f(0x1be)]===_0xbdaf9f(0x1c2)&&(this['_status$'][_0xbdaf9f(0x1e6)](_0xbdaf9f(0x179)),this[_0xbdaf9f(0x19b)]['send']({'eventID':_0x2f4f4b[_0xbdaf9f(0x198)],'data':{'unitID':this[_0xbdaf9f(0x197)]}},this['_unitID']));}['startFollowing'](){const _0x352bd5=_0x163933;this[_0x352bd5(0x1be)]==='not-following'&&(this[_0x352bd5(0x1ca)][_0x352bd5(0x1e6)](_0x352bd5(0x1af)),this[_0x352bd5(0x17b)]());}['stopFollowing'](){const _0x54df9c=_0x163933;this[_0x54df9c(0x1be)]===_0x54df9c(0x1af)&&this[_0x54df9c(0x1c3)]();}[_0x163933(0x1ee)](_0x1d46da){const _0x1b552e=_0x163933;let {presenter:_0x2019ff}=_0x1d46da[_0x1b552e(0x208)],_0x42ec53=this[_0x1b552e(0x19b)][_0x1b552e(0x1e5)]();this[_0x1b552e(0x1d9)]=_0x2019ff,_0x2019ff===_0x42ec53?(this['_stopFollowing'](),this[_0x1b552e(0x17d)]()):this['_status']!=='not-following'&&(this[_0x1b552e(0x1ef)](),this[_0x1b552e(0x17b)]());}['_fetchOperations'](){const _0x542a10=_0x163933;let _0x1b4fb8={'eventID':_0x2f4f4b[_0x542a10(0x203)]};this[_0x542a10(0x19b)][_0x542a10(0x1de)](_0x1b4fb8,this['_unitID']);}[_0x163933(0x1c9)](){const _0x5a4953=_0x163933;this[_0x5a4953(0x1d9)]=null,this[_0x5a4953(0x1be)]!=='presenting'&&this['_beIdle']();}[_0x163933(0x184)](_0x109487){const _0x2a09bf=_0x163933;if(this[_0x2a09bf(0x1be)]==='following'&&this[_0x2a09bf(0x1d9)]===_0x109487[_0x2a09bf(0x208)][_0x2a09bf(0x178)]){let _0x233132=_0xf7fca8(_0x109487[_0x2a09bf(0x208)])[_0x2a09bf(0x1cc)][_0x2a09bf(0x1d4)]()[_0x2a09bf(0x1e3)](_0x4dc560=>_0x4dc560['id']===_0x29a9fa['id']);if(_0x233132){let _0x164df1=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1b6)],_0x768efc=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1a2)]['id'];setTimeout(()=>{const _0x5f586a=_0x2a09bf;this[_0x5f586a(0x1ff)][_0x5f586a(0x202)](_0x24df1b['id'],{'unitId':_0x164df1,'subUnitId':_0x768efc},{'fromCollab':!0x0});});}}}[_0x163933(0x17d)](){const _0x5d9911=_0x163933;var _0x59abbb;(_0x59abbb=this[_0x5d9911(0x19e)])==null||_0x59abbb[_0x5d9911(0x1f5)](),this[_0x5d9911(0x1ca)][_0x5d9911(0x1e6)](_0x5d9911(0x1c2));let _0x519bcd=new Map(),_0x4bba98=this[_0x5d9911(0x19e)]=new _0x373e29();_0x4bba98[_0x5d9911(0x1c7)](_0x2c9771(()=>{const _0x5ca6ba=_0x5d9911;_0x519bcd[_0x5ca6ba(0x1bd)](({subject:_0x3075c4,subscription:_0x3b94d6})=>{const _0x1443b7=_0x5ca6ba;_0x3b94d6[_0x1443b7(0x1f7)](),_0x3075c4[_0x1443b7(0x1b9)]();}),_0x519bcd[_0x5ca6ba(0x1fa)]();})),_0x4bba98[_0x5d9911(0x1c7)](this[_0x5d9911(0x1ff)][_0x5d9911(0x1dd)](_0x349dd1=>{const _0x44c970=_0x5d9911;if(_0x349dd1[_0x44c970(0x1f1)]!==_0x41b375[_0x44c970(0x19a)]||!this[_0x44c970(0x1d1)][_0x44c970(0x19d)](_0x349dd1['id']))return;let {id:_0x56b6fb}=_0x349dd1,_0x5984e8;if(_0x519bcd[_0x44c970(0x1c5)](_0x56b6fb))_0x5984e8=_0x519bcd[_0x44c970(0x1ac)](_0x56b6fb)['subject'];else{var _0x136831;_0x5984e8=new _0x4a9313();let _0x6bf016=_0x5984e8[_0x44c970(0x18c)](_0x23f001((_0x136831=this[_0x44c970(0x1cd)][_0x44c970(0x1d5)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x136831,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44c970(0x204)](_0x161cdb=>{const _0x337870=_0x44c970;this[_0x337870(0x19b)][_0x337870(0x1de)]({'eventID':_0x2f4f4b[_0x337870(0x1e7)],'data':{'unitID':this['_unitID'],'operations':{[_0x161cdb['id']]:{'id':_0x161cdb['id'],'params':JSON[_0x337870(0x1ad)](_0x161cdb[_0x337870(0x1e4)])}}}},this['_unitID']);});_0x519bcd[_0x44c970(0x1fd)](_0x56b6fb,{'subject':_0x5984e8,'subscription':_0x6bf016});}_0x5984e8[_0x44c970(0x1e6)](_0x349dd1);})),this[_0x5d9911(0x1d1)]['getInitialStates'](this[_0x5d9911(0x197)])[_0x5d9911(0x1bd)](_0x289507=>this[_0x5d9911(0x19b)]['send']({'eventID':_0x2f4f4b[_0x5d9911(0x1e7)],'data':{'unitID':this[_0x5d9911(0x197)],'operations':{[_0x289507['id']]:{'id':_0x289507['id'],'params':JSON['stringify'](_0x289507[_0x5d9911(0x1e4)])}}}},this[_0x5d9911(0x197)]));}[_0x163933(0x1ef)](){const _0x16a67e=_0x163933;var _0x59d750;this[_0x16a67e(0x1ca)]['next'](_0x16a67e(0x179)),(_0x59d750=this[_0x16a67e(0x19e)])==null||_0x59d750[_0x16a67e(0x1f5)](),this[_0x16a67e(0x19e)]=null;}[_0x163933(0x17b)](){const _0x5c1ac5=_0x163933;var _0x125d5f;(_0x125d5f=this[_0x5c1ac5(0x19e)])==null||_0x125d5f[_0x5c1ac5(0x1f5)](),this[_0x5c1ac5(0x1ca)]['next'](_0x5c1ac5(0x1af));}['_beIdle'](){const _0x1c0665=_0x163933;var _0x365def;this[_0x1c0665(0x1ca)][_0x1c0665(0x1e6)](_0x1c0665(0x179)),(_0x365def=this['_commandDisposable'])==null||_0x365def[_0x1c0665(0x1f5)](),this[_0x1c0665(0x19e)]=null;}[_0x163933(0x1c3)](){const _0x16fb98=_0x163933;var _0x5ae3ba;this[_0x16fb98(0x1ca)]['next'](_0x16fb98(0x1d2)),(_0x5ae3ba=this['_commandDisposable'])==null||_0x5ae3ba[_0x16fb98(0x1f5)]();}[_0x163933(0x1b5)](_0x2a7e7c){const _0x434bd5=_0x163933;if([_0x434bd5(0x1c2),_0x434bd5(0x1d2),_0x434bd5(0x199)][_0x434bd5(0x1b3)](this[_0x434bd5(0x1be)])||!_0x2a7e7c[_0x434bd5(0x208)][_0x434bd5(0x1fb)]||_0x2a7e7c['data'][_0x434bd5(0x1fb)]===this[_0x434bd5(0x19b)][_0x434bd5(0x1e5)]())return;this[_0x434bd5(0x1be)]===_0x434bd5(0x179)&&this[_0x434bd5(0x17b)]();let _0x747534=_0x2a7e7c['data']['operations'];Object['values'](_0x747534)['forEach'](_0x46610a=>{const _0x405ca9=_0x434bd5;this[_0x405ca9(0x1ff)]['executeCommand'](_0x46610a['id'],_0x46610a['params']?JSON['parse'](_0x46610a[_0x405ca9(0x1e4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5e049c=_0x163933;var _0x4abaa6;this['_status$'][_0x5e049c(0x1e6)](_0x5e049c(0x199)),(_0x4abaa6=this[_0x5e049c(0x19e)])==null||_0x4abaa6[_0x5e049c(0x1f5)]();}[_0x163933(0x206)](){const _0x34a1f0=_0x163933;this['_status$'][_0x34a1f0(0x1e6)](_0x34a1f0(0x179)),this['_fetchOperations']();}};q=W([U(0x2,_0x3287d9),U(0x3,_0x147d4e(H)),U(0x4,_0x15ae55)],q);function J(){const _0x544e9c=_0x163933;let _0x18e9df=_0x4d0b0b(G),_0x47d618=_0x4d0b0b(_0x5dd410),_0xe72ba5=_0x471499(()=>_0x47d618[_0x544e9c(0x191)](_0x19d69b[_0x544e9c(0x194)]),void 0x0,!0x1,[]),[_0x554ef2,_0x2c5c35]=_0x41fdc7(null),[_0x4d2e68,_0x28c5a7]=_0x41fdc7(_0x544e9c(0x179)),_0xd2604d=_0x418b8a(null);return _0x542576(()=>(_0xe72ba5&&_0x18e9df[_0x544e9c(0x192)](_0xe72ba5[_0x544e9c(0x1c1)]())[_0x544e9c(0x1e8)](_0x349de9=>{const _0x20ae39=_0x544e9c;_0x2c5c35(_0x349de9),_0xd2604d['current']=_0x349de9['status$'][_0x20ae39(0x204)](_0x3be167=>{_0x28c5a7(_0x3be167);});}),()=>{const _0x3f1dd3=_0x544e9c;var _0xcaf005;(_0xcaf005=_0xd2604d[_0x3f1dd3(0x1a6)])==null||_0xcaf005[_0x3f1dd3(0x1f7)](),_0xd2604d['current']=null;}),[_0xe72ba5,_0x18e9df]),_0x554ef2?_0x50789a(_0x4045b5,{'align':_0x544e9c(0x185),'disabled':_0x4d2e68==='offline','className':_0x544e9c(0x1f0),'overlay':_0x50789a(se,{'status':_0x4d2e68,'coordinator':_0x554ef2}),'children':_0x50789a(_0x544e9c(0x18d),{'className':_0x38f52b(_0x544e9c(0x1c6),{'univer-cursor-not-allowed':_0x4d2e68==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d2e68!==_0x544e9c(0x199)}),'type':_0x544e9c(0x18d),'children':_0x50789a(_0x5e9cb6,{})})}):null;}function se(_0x5aa10c){const _0x7863ca=_0x163933;let {status:_0x3e622d,coordinator:_0x5e64a1}=_0x5aa10c;switch(_0x3e622d){case _0x7863ca(0x179):return _0x50789a(ce,{'coordinator':_0x5e64a1});case'following':return _0x50789a(le,{'coordinator':_0x5e64a1});case _0x7863ca(0x1d2):return _0x50789a(ue,{'coordinator':_0x5e64a1});case'offline':return _0x50789a(de,{});case _0x7863ca(0x1c2):return _0x50789a(Y,{'coordinator':_0x5e64a1});default:return null;}}function ce(_0x540ff2){const _0x219aa0=_0x163933;let {coordinator:_0x19cf79}=_0x540ff2;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x219aa0(0x1b7),{'className':_0x219aa0(0x1cf),'children':'Present\x20this\x20document'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x19cf79[_0x219aa0(0x1a3)](),'children':_0x219aa0(0x205)})]});}function le(_0x73a277){const _0x33576b=_0x163933;let {coordinator:_0x1086c9}=_0x73a277;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x33576b(0x1b7),{'className':_0x33576b(0x1cf),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x1086c9[_0x33576b(0x1d0)](),'children':'Stop\x20following'})]});}function ue(_0x531476){const _0xaf0dff=_0x163933;let {coordinator:_0x50bc01}=_0x531476;return _0x16b88(_0x98295f,{'children':[_0x50789a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'variant':'text','onClick':()=>_0x50bc01['startFollowing'](),'children':_0xaf0dff(0x1e9)})]});}function Y(_0x399c83){const _0x3251e4=_0x163933;let {coordinator:_0x4980a9}=_0x399c83;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x3251e4(0x1b7),{'className':_0x3251e4(0x1cf),'children':_0x3251e4(0x1bb)}),_0x50789a(_0xac3a18,{'variant':_0x3251e4(0x1a9),'onClick':()=>_0x4980a9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function de(){const _0x5194cd=_0x163933;return _0x50789a(_0x98295f,{'children':_0x5194cd(0x1b2)});}let X=class extends _0x3a6ee4{constructor(_0x593ddd,_0x26b2fc){const _0x15338f=_0x163933;super(),this[_0x15338f(0x1fc)]=_0x593ddd,this[_0x15338f(0x1ce)]=_0x26b2fc,this[_0x15338f(0x1df)]();}['_mountLiveShare'](){const _0x1070bb=_0x163933;this[_0x1070bb(0x1c4)](this[_0x1070bb(0x1ce)][_0x1070bb(0x1d8)](_0x27c857[_0x1070bb(0x1f9)],()=>_0x34038f(J,this[_0x1070bb(0x1fc)])));}};X=W([U(0x0,_0x147d4e(_0x430c6d)),U(0x1,_0x2568a8)],X);var fe=_0x163933(0x186),pe=_0x163933(0x1db);const Z={};let Q=class extends _0x3a6ee4{constructor(_0x6ac638){const _0x154f47=_0x163933;super(),this[_0x154f47(0x1d1)]=_0x6ac638,this[_0x154f47(0x1dc)]();}[_0x163933(0x1dc)](){const _0x356985=_0x163933;[_0x284992['id'],_0x452de4['id'],_0x24df1b['id']][_0x356985(0x1bd)](_0x5dd2df=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x5dd2df));});}};Q=W([U(0x0,_0x147d4e(H))],Q);let $=class extends _0x2c55cc{constructor(_0x12150e=Z,_0x4a2f61,_0x441862){const _0x15a3a7=_0x163933;super(),this[_0x15a3a7(0x1b4)]=_0x12150e,this['_injector']=_0x4a2f61,this[_0x15a3a7(0x1cd)]=_0x441862;let {..._0x40b82b}=_0x1f0203({},Z,this[_0x15a3a7(0x1b4)]);this[_0x15a3a7(0x1cd)][_0x15a3a7(0x200)]('live-share.config',_0x40b82b);}[_0x163933(0x175)](){const _0x1e6350=_0x163933;_0x492046(this['_injector'],_0x76a44e([[H],[G],[Q],[X]],this[_0x1e6350(0x1b4)][_0x1e6350(0x190)])),_0x4b567d(this[_0x1e6350(0x1fc)],[[Q]]);}[_0x163933(0x1a5)](){const _0x322fc0=_0x163933;_0x4b567d(this[_0x322fc0(0x1fc)],[[X]]);}};V($,_0x163933(0x1f1),_0x19d69b[_0x163933(0x1f3)]),V($,_0x163933(0x182),_0x163933(0x1d6)),V($,_0x163933(0x17f),fe),V($,_0x163933(0x1e1),pe),$=W([_0x372528(_0x33b357),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x3287d9)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3ce13b,_0xcf5590){const _0x4a1a61=_0x594f,_0x308a9d=_0x3ce13b();while(!![]){try{const _0x37b24f=parseInt(_0x4a1a61(0x18c))/0x1+parseInt(_0x4a1a61(0x18d))/0x2*(-parseInt(_0x4a1a61(0x194))/0x3)+-parseInt(_0x4a1a61(0x199))/0x4*(parseInt(_0x4a1a61(0x175))/0x5)+parseInt(_0x4a1a61(0x180))/0x6+-parseInt(_0x4a1a61(0x198))/0x7*(parseInt(_0x4a1a61(0x186))/0x8)+-parseInt(_0x4a1a61(0x193))/0x9+parseInt(_0x4a1a61(0x185))/0xa;if(_0x37b24f===_0xcf5590)break;else _0x308a9d['push'](_0x308a9d['shift']());}catch(_0xfa3139){_0x308a9d['push'](_0x308a9d['shift']());}}}(_0x25ad,0x5cf81),function(_0x3567bc,_0x44f6ab){const _0x1bc606=_0x594f;typeof exports==_0x1bc606(0x192)&&typeof module<'u'?_0x44f6ab(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x1bc606(0x17a)&&define[_0x1bc606(0x17d)]?define(['@univerjs-pro/live-share',_0x1bc606(0x188),_0x1bc606(0x182)],_0x44f6ab):(_0x3567bc=typeof globalThis<'u'?globalThis:_0x3567bc||self,_0x44f6ab(_0x3567bc[_0x1bc606(0x17b)],_0x3567bc['UniverCore'],_0x3567bc[_0x1bc606(0x1a1)]));}(this,function(_0x42aad3,_0xc95617,_0x35a9c9){const _0xa540cc=_0x594f;function _0x1611bc(_0x485c6c){'@babel/helpers - typeof';const _0x2dd821=_0x594f;return _0x1611bc=typeof Symbol==_0x2dd821(0x17a)&&typeof Symbol[_0x2dd821(0x18b)]==_0x2dd821(0x178)?function(_0x418e6a){return typeof _0x418e6a;}:function(_0x458fad){const _0x1e2786=_0x2dd821;return _0x458fad&&typeof Symbol==_0x1e2786(0x17a)&&_0x458fad[_0x1e2786(0x19c)]===Symbol&&_0x458fad!==Symbol[_0x1e2786(0x181)]?'symbol':typeof _0x458fad;},_0x1611bc(_0x485c6c);}function _0x571d76(_0x5153fd,_0x568b08){const _0x5da1b9=_0x594f;if(_0x1611bc(_0x5153fd)!=_0x5da1b9(0x192)||!_0x5153fd)return _0x5153fd;var _0x1a944b=_0x5153fd[Symbol[_0x5da1b9(0x174)]];if(_0x1a944b!==void 0x0){var _0x3a5cec=_0x1a944b[_0x5da1b9(0x19f)](_0x5153fd,_0x568b08||_0x5da1b9(0x18f));if(_0x1611bc(_0x3a5cec)!=_0x5da1b9(0x192))return _0x3a5cec;throw TypeError(_0x5da1b9(0x19e));}return(_0x568b08==='string'?String:Number)(_0x5153fd);}function _0x5caff4(_0x19f701){const _0x3bceab=_0x594f;var _0x406544=_0x571d76(_0x19f701,'string');return _0x1611bc(_0x406544)==_0x3bceab(0x178)?_0x406544:_0x406544+'';}function _0x93d875(_0xa28d36,_0x168576,_0x4230d4){const _0x1e3a2e=_0x594f;return(_0x168576=_0x5caff4(_0x168576))in _0xa28d36?Object[_0x1e3a2e(0x176)](_0xa28d36,_0x168576,{'value':_0x4230d4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa28d36[_0x168576]=_0x4230d4,_0xa28d36;}var _0x1bb428=class extends _0x35a9c9[_0xa540cc(0x17f)]{constructor(..._0x4b0901){super(..._0x4b0901),_0x93d875(this,'_liveShareController',void 0x0);}[_0xa540cc(0x184)](_0x15d455){const _0x4d4f75=_0xa540cc;this[_0x4d4f75(0x171)]=_0x15d455['get'](_0x42aad3[_0x4d4f75(0x18e)]);}[_0xa540cc(0x195)](){const _0x3f20d1=_0xa540cc;var _0x561e87;let _0x3e3175=this['_injector'][_0x3f20d1(0x189)](_0xc95617[_0x3f20d1(0x19a)])[_0x3f20d1(0x183)](_0xc95617[_0x3f20d1(0x170)][_0x3f20d1(0x18a)]);if(!_0x3e3175)throw Error(_0x3f20d1(0x173));let _0x17255f=_0x3e3175['getUnitId'](),_0x5f0cec=this[_0x3f20d1(0x171)][_0x3f20d1(0x197)](_0x17255f);return(_0x561e87=_0x5f0cec==null?void 0x0:_0x5f0cec[_0x3f20d1(0x19d)]())==null?_0x42aad3[_0x3f20d1(0x196)]['IDLE']:_0x561e87;}[_0xa540cc(0x187)](){const _0x5045b1=_0xa540cc;let _0x5242a1=this['_injector'][_0x5045b1(0x189)](_0xc95617[_0x5045b1(0x19a)])['getCurrentUnitOfType'](_0xc95617[_0x5045b1(0x170)][_0x5045b1(0x18a)]);if(!_0x5242a1)throw Error(_0x5045b1(0x173));let _0x206d43=_0x5242a1['getUnitId'](),_0x161ca5=this[_0x5045b1(0x171)][_0x5045b1(0x197)](_0x206d43);if(!_0x161ca5)throw Error(_0x5045b1(0x191));_0x161ca5['startFollowing']();}['stopFollowing'](){const _0x4ed353=_0xa540cc;let _0x3257e4=this[_0x4ed353(0x179)][_0x4ed353(0x189)](_0xc95617['IUniverInstanceService'])['getCurrentUnitOfType'](_0xc95617['UniverInstanceType']['UNIVER_SHEET']);if(!_0x3257e4)throw Error(_0x4ed353(0x173));let _0x594e88=_0x3257e4[_0x4ed353(0x1a0)](),_0x4eb56b=this[_0x4ed353(0x171)][_0x4ed353(0x197)](_0x594e88);if(!_0x4eb56b)throw Error(_0x4ed353(0x191));_0x4eb56b['stopFollowing']();}[_0xa540cc(0x17e)](){const _0x3e4e56=_0xa540cc;let _0x498c66=this['_injector']['get'](_0xc95617[_0x3e4e56(0x19a)])[_0x3e4e56(0x183)](_0xc95617[_0x3e4e56(0x170)]['UNIVER_SHEET']);if(!_0x498c66)throw Error(_0x3e4e56(0x173));let _0x271b08=_0x498c66[_0x3e4e56(0x1a0)](),_0xeadd16=this[_0x3e4e56(0x171)][_0x3e4e56(0x197)](_0x271b08);if(!_0xeadd16)throw Error(_0x3e4e56(0x191));_0xeadd16[_0x3e4e56(0x177)]();}[_0xa540cc(0x190)](){const _0x35d175=_0xa540cc;let _0x45a52a=this[_0x35d175(0x179)][_0x35d175(0x189)](_0xc95617['IUniverInstanceService'])['getCurrentUnitOfType'](_0xc95617[_0x35d175(0x170)][_0x35d175(0x18a)]);if(!_0x45a52a)throw Error(_0x35d175(0x173));let _0x578b28=_0x45a52a[_0x35d175(0x1a0)](),_0xcb1de1=this[_0x35d175(0x171)]['getLiveShareCoordinatorSync'](_0x578b28);if(!_0xcb1de1)throw Error(_0x35d175(0x191));_0xcb1de1[_0x35d175(0x190)]();}};_0x35a9c9[_0xa540cc(0x17f)][_0xa540cc(0x17c)](_0x1bb428);var _0x20e785=class extends _0x35a9c9['FEnum']{get[_0xa540cc(0x19b)](){return _0x42aad3['LiveShareStatus'];}};_0x35a9c9[_0xa540cc(0x172)][_0xa540cc(0x17c)](_0x20e785);}));function _0x594f(_0x58dc93,_0x5e0d61){_0x58dc93=_0x58dc93-0x170;const _0x25adf1=_0x25ad();let _0x594f12=_0x25adf1[_0x58dc93];return _0x594f12;}function _0x25ad(){const _0x12a544=['object','975627tHgfOo','228783JkSCDb','getLiveShareStatus','LiveShareStatus','getLiveShareCoordinatorSync','471793HNSbWm','1992580qnMoEL','IUniverInstanceService','LiveShareStatusEnum','constructor','getStatus','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','call','getUnitId','UniverCoreFacade','UniverInstanceType','_liveShareController','FEnum','No\x20active\x20workbook\x20found.','toPrimitive','5Vdxsut','defineProperty','tryStartPresenting','symbol','_injector','function','UniverProLiveShare','extend','amd','startPresenting','FUniver','2639130QpxpuD','prototype','@univerjs/core/facade','getCurrentUnitOfType','_initialize','2299910yWRZPX','8pAaekE','startFollowing','@univerjs/core','get','UNIVER_SHEET','iterator','461163AeRfas','2NweILp','LiveShareController','default','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x25ad=function(){return _0x12a544;};return _0x25ad();}
1
+ function _0x4cb6(_0x16e45c,_0x441989){_0x16e45c=_0x16e45c-0x98;const _0x2b6627=_0x2b66();let _0x4cb62d=_0x2b6627[_0x16e45c];return _0x4cb62d;}(function(_0x1db2b4,_0x2fe2e0){const _0x2710ad=_0x4cb6,_0x23508c=_0x1db2b4();while(!![]){try{const _0x4e8e05=-parseInt(_0x2710ad(0xaa))/0x1+parseInt(_0x2710ad(0xc3))/0x2+parseInt(_0x2710ad(0xa0))/0x3+parseInt(_0x2710ad(0xad))/0x4+parseInt(_0x2710ad(0xbd))/0x5+parseInt(_0x2710ad(0xb1))/0x6*(parseInt(_0x2710ad(0xb9))/0x7)+-parseInt(_0x2710ad(0xa1))/0x8;if(_0x4e8e05===_0x2fe2e0)break;else _0x23508c['push'](_0x23508c['shift']());}catch(_0x552bdc){_0x23508c['push'](_0x23508c['shift']());}}}(_0x2b66,0x3e1f1),function(_0xee61ca,_0x31b84c){const _0x5154e9=_0x4cb6;typeof exports==_0x5154e9(0xb2)&&typeof module<'u'?_0x31b84c(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5154e9(0xc5)&&define[_0x5154e9(0xb8)]?define([_0x5154e9(0xa5),_0x5154e9(0xa4),_0x5154e9(0x9f)],_0x31b84c):(_0xee61ca=typeof globalThis<'u'?globalThis:_0xee61ca||self,_0x31b84c(_0xee61ca[_0x5154e9(0xb3)],_0xee61ca[_0x5154e9(0xbf)],_0xee61ca[_0x5154e9(0x99)]));}(this,function(_0x1fca91,_0x457e13,_0x489a39){const _0x108ccf=_0x4cb6;function _0xb53b9(_0x2d8fc5){'@babel/helpers - typeof';const _0x2dd586=_0x4cb6;return _0xb53b9=typeof Symbol==_0x2dd586(0xc5)&&typeof Symbol[_0x2dd586(0x9b)]==_0x2dd586(0xa2)?function(_0x59e12a){return typeof _0x59e12a;}:function(_0x30df5f){const _0x38b9d9=_0x2dd586;return _0x30df5f&&typeof Symbol==_0x38b9d9(0xc5)&&_0x30df5f[_0x38b9d9(0xb0)]===Symbol&&_0x30df5f!==Symbol[_0x38b9d9(0x9e)]?'symbol':typeof _0x30df5f;},_0xb53b9(_0x2d8fc5);}function _0x4e7ab5(_0x584486,_0x460213){const _0x301352=_0x4cb6;if(_0xb53b9(_0x584486)!=_0x301352(0xb2)||!_0x584486)return _0x584486;var _0x5a9cd5=_0x584486[Symbol[_0x301352(0x9c)]];if(_0x5a9cd5!==void 0x0){var _0x2e9161=_0x5a9cd5[_0x301352(0xa8)](_0x584486,_0x460213||'default');if(_0xb53b9(_0x2e9161)!=_0x301352(0xb2))return _0x2e9161;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x460213===_0x301352(0xac)?String:Number)(_0x584486);}function _0x517b60(_0x527be1){const _0x623b7e=_0x4cb6;var _0x23e4cf=_0x4e7ab5(_0x527be1,_0x623b7e(0xac));return _0xb53b9(_0x23e4cf)=='symbol'?_0x23e4cf:_0x23e4cf+'';}function _0x1adf0c(_0x56c0c9,_0x104922,_0x19530a){const _0x5408a2=_0x4cb6;return(_0x104922=_0x517b60(_0x104922))in _0x56c0c9?Object[_0x5408a2(0xc2)](_0x56c0c9,_0x104922,{'value':_0x19530a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x56c0c9[_0x104922]=_0x19530a,_0x56c0c9;}var _0x2b1160=class extends _0x489a39[_0x108ccf(0xb7)]{constructor(..._0x59ffe6){const _0x3fdbe2=_0x108ccf;super(..._0x59ffe6),_0x1adf0c(this,_0x3fdbe2(0xab),void 0x0);}[_0x108ccf(0xb6)](_0x1baaac){const _0x5e2596=_0x108ccf;this[_0x5e2596(0xab)]=_0x1baaac[_0x5e2596(0xbc)](_0x1fca91[_0x5e2596(0xa9)]);}[_0x108ccf(0xc4)](){const _0x14725b=_0x108ccf;var _0x4c94ae;let _0x3dffdc=this[_0x14725b(0xbe)][_0x14725b(0xbc)](_0x457e13[_0x14725b(0xb4)])[_0x14725b(0xaf)](_0x457e13['UniverInstanceType'][_0x14725b(0xb5)]);if(!_0x3dffdc)throw Error(_0x14725b(0x9a));let _0x1f339a=_0x3dffdc[_0x14725b(0x9d)](),_0x486d83=this[_0x14725b(0xab)][_0x14725b(0x98)](_0x1f339a);return(_0x4c94ae=_0x486d83==null?void 0x0:_0x486d83[_0x14725b(0xba)]())==null?_0x1fca91[_0x14725b(0xc6)][_0x14725b(0xbb)]:_0x4c94ae;}['startFollowing'](){const _0x3e96b0=_0x108ccf;let _0x39f5fb=this[_0x3e96b0(0xbe)][_0x3e96b0(0xbc)](_0x457e13[_0x3e96b0(0xb4)])[_0x3e96b0(0xaf)](_0x457e13[_0x3e96b0(0xc0)]['UNIVER_SHEET']);if(!_0x39f5fb)throw Error('No\x20active\x20workbook\x20found.');let _0x24dd51=_0x39f5fb['getUnitId'](),_0x3ee9c9=this[_0x3e96b0(0xab)]['getLiveShareCoordinatorSync'](_0x24dd51);if(!_0x3ee9c9)throw Error(_0x3e96b0(0xa6));_0x3ee9c9['startFollowing']();}[_0x108ccf(0xc1)](){const _0x3e94fd=_0x108ccf;let _0x50f8f5=this[_0x3e94fd(0xbe)][_0x3e94fd(0xbc)](_0x457e13[_0x3e94fd(0xb4)])[_0x3e94fd(0xaf)](_0x457e13['UniverInstanceType'][_0x3e94fd(0xb5)]);if(!_0x50f8f5)throw Error(_0x3e94fd(0x9a));let _0x4f0e2e=_0x50f8f5[_0x3e94fd(0x9d)](),_0x313dea=this[_0x3e94fd(0xab)]['getLiveShareCoordinatorSync'](_0x4f0e2e);if(!_0x313dea)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x313dea[_0x3e94fd(0xc1)]();}['startPresenting'](){const _0x47b4a4=_0x108ccf;let _0x30deef=this['_injector'][_0x47b4a4(0xbc)](_0x457e13[_0x47b4a4(0xb4)])[_0x47b4a4(0xaf)](_0x457e13[_0x47b4a4(0xc0)][_0x47b4a4(0xb5)]);if(!_0x30deef)throw Error('No\x20active\x20workbook\x20found.');let _0x4d9790=_0x30deef['getUnitId'](),_0x5b4db9=this['_liveShareController'][_0x47b4a4(0x98)](_0x4d9790);if(!_0x5b4db9)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5b4db9['tryStartPresenting']();}[_0x108ccf(0xa7)](){const _0x4153a9=_0x108ccf;let _0x556d9b=this['_injector'][_0x4153a9(0xbc)](_0x457e13[_0x4153a9(0xb4)])['getCurrentUnitOfType'](_0x457e13[_0x4153a9(0xc0)][_0x4153a9(0xb5)]);if(!_0x556d9b)throw Error(_0x4153a9(0x9a));let _0x22041d=_0x556d9b[_0x4153a9(0x9d)](),_0x292e60=this[_0x4153a9(0xab)][_0x4153a9(0x98)](_0x22041d);if(!_0x292e60)throw Error(_0x4153a9(0xa6));_0x292e60[_0x4153a9(0xa7)]();}};_0x489a39[_0x108ccf(0xb7)]['extend'](_0x2b1160);var _0x2c0fc9=class extends _0x489a39[_0x108ccf(0xa3)]{get['LiveShareStatusEnum'](){const _0x45c3e9=_0x108ccf;return _0x1fca91[_0x45c3e9(0xc6)];}};_0x489a39[_0x108ccf(0xa3)][_0x108ccf(0xae)](_0x2c0fc9);}));function _0x2b66(){const _0x5d1178=['function','LiveShareStatus','getLiveShareCoordinatorSync','UniverCoreFacade','No\x20active\x20workbook\x20found.','iterator','toPrimitive','getUnitId','prototype','@univerjs/core/facade','311505JUzxpx','5534224SMgIrP','symbol','FEnum','@univerjs/core','@univerjs-pro/live-share','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','call','LiveShareController','63720Zknmzx','_liveShareController','string','346812BfZMQN','extend','getCurrentUnitOfType','constructor','556926BGZCsY','object','UniverProLiveShare','IUniverInstanceService','UNIVER_SHEET','_initialize','FUniver','amd','35UHXKwn','getStatus','IDLE','get','393225mJqfCr','_injector','UniverCore','UniverInstanceType','stopFollowing','defineProperty','553318pHzPja','getLiveShareStatus'];_0x2b66=function(){return _0x5d1178;};return _0x2b66();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x570fe2,_0x4bcccd){const _0x45eda3=_0x2f76,_0x58433d=_0x570fe2();while(!![]){try{const _0xf74614=-parseInt(_0x45eda3(0x113))/0x1*(parseInt(_0x45eda3(0xaa))/0x2)+parseInt(_0x45eda3(0xe5))/0x3+parseInt(_0x45eda3(0xd6))/0x4+-parseInt(_0x45eda3(0xd9))/0x5*(-parseInt(_0x45eda3(0x162))/0x6)+parseInt(_0x45eda3(0xea))/0x7*(parseInt(_0x45eda3(0xa6))/0x8)+-parseInt(_0x45eda3(0x105))/0x9+-parseInt(_0x45eda3(0x185))/0xa*(parseInt(_0x45eda3(0x150))/0xb);if(_0xf74614===_0x4bcccd)break;else _0x58433d['push'](_0x58433d['shift']());}catch(_0x1cbee5){_0x58433d['push'](_0x58433d['shift']());}}}(_0x41e8,0x19ce2),function(_0x35e80b,_0x3763ea){const _0x162b89=_0x2f76;typeof exports==_0x162b89(0x10e)&&typeof module<'u'?_0x3763ea(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0x162b89(0x16e)&&define['amd']?define(['exports','@univerjs-pro/collaboration',_0x162b89(0x109),'@univerjs/core','@univerjs/sheets',_0x162b89(0xcf),'rxjs/operators',_0x162b89(0x127),_0x162b89(0x139),_0x162b89(0xef),_0x162b89(0xd1),_0x162b89(0x186)],_0x3763ea):(_0x35e80b=typeof globalThis<'u'?globalThis:_0x35e80b||self,_0x3763ea(_0x35e80b[_0x162b89(0x11f)]={},_0x35e80b[_0x162b89(0xe7)],_0x35e80b[_0x162b89(0xfc)],_0x35e80b['UniverCore'],_0x35e80b['UniverSheets'],_0x35e80b[_0x162b89(0xcf)],_0x35e80b[_0x162b89(0xcf)][_0x162b89(0xb7)],_0x35e80b['UniverUi'],_0x35e80b[_0x162b89(0x169)],_0x35e80b[_0x162b89(0x98)],_0x35e80b[_0x162b89(0x98)],_0x35e80b[_0x162b89(0xb9)]));}(this,function(_0x1d6d0c,_0x1def79,_0x533395,_0x2533ed,_0x5d2bc8,_0x29b2db,_0x238d5a,_0x1b0ce3,_0x1b4364,_0x193e8d,_0x1c1026,_0x2592eb){const _0x2e5b4a=_0x2f76;Object['defineProperty'](_0x1d6d0c,Symbol['toStringTag'],{'value':_0x2e5b4a(0x121)});function _0xd75afb(_0xdb6f1a){'@babel/helpers - typeof';const _0x5df71=_0x2e5b4a;return _0xd75afb=typeof Symbol==_0x5df71(0x16e)&&typeof Symbol[_0x5df71(0xe4)]==_0x5df71(0x9e)?function(_0x544f16){return typeof _0x544f16;}:function(_0x12a47e){const _0x146c8d=_0x5df71;return _0x12a47e&&typeof Symbol==_0x146c8d(0x16e)&&_0x12a47e[_0x146c8d(0x15d)]===Symbol&&_0x12a47e!==Symbol[_0x146c8d(0xc1)]?_0x146c8d(0x9e):typeof _0x12a47e;},_0xd75afb(_0xdb6f1a);}function _0x44ad71(_0x2d3aa6,_0x29af16){const _0x4f274c=_0x2e5b4a;if(_0xd75afb(_0x2d3aa6)!=_0x4f274c(0x10e)||!_0x2d3aa6)return _0x2d3aa6;var _0x20d125=_0x2d3aa6[Symbol[_0x4f274c(0xb4)]];if(_0x20d125!==void 0x0){var _0x522662=_0x20d125[_0x4f274c(0x165)](_0x2d3aa6,_0x29af16||_0x4f274c(0x142));if(_0xd75afb(_0x522662)!=_0x4f274c(0x10e))return _0x522662;throw TypeError(_0x4f274c(0x118));}return(_0x29af16===_0x4f274c(0x149)?String:Number)(_0x2d3aa6);}function _0x2cdf3b(_0xe3b6d1){const _0xef4aa0=_0x2e5b4a;var _0x10944c=_0x44ad71(_0xe3b6d1,_0xef4aa0(0x149));return _0xd75afb(_0x10944c)==_0xef4aa0(0x9e)?_0x10944c:_0x10944c+'';}function _0x31f9f7(_0x354620,_0x207163,_0x4c435f){const _0x5cbb3f=_0x2e5b4a;return(_0x207163=_0x2cdf3b(_0x207163))in _0x354620?Object[_0x5cbb3f(0x12d)](_0x354620,_0x207163,{'value':_0x4c435f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x354620[_0x207163]=_0x4c435f,_0x354620;}var _0x353a3c=class extends _0x2533ed[_0x2e5b4a(0xc0)]{constructor(..._0x1a95c2){super(..._0x1a95c2),_0x31f9f7(this,'_sharedOperations',new Set()),_0x31f9f7(this,'_reporters',new Set());}[_0x2e5b4a(0xf6)](_0x2cfac1){const _0x2d406a=_0x2e5b4a;return this['_sharedOperations'][_0x2d406a(0x13b)](_0x2cfac1),(0x0,_0x2533ed[_0x2d406a(0x13a)])(()=>this[_0x2d406a(0xb0)][_0x2d406a(0xbc)](_0x2cfac1));}['registerInitialStateReporter'](_0x19b5ec){const _0x4169cf=_0x2e5b4a;return this[_0x4169cf(0x176)][_0x4169cf(0x13b)](_0x19b5ec),(0x0,_0x2533ed[_0x4169cf(0x13a)])(()=>this[_0x4169cf(0x176)]['delete'](_0x19b5ec));}[_0x2e5b4a(0xc2)](_0x449eb3){const _0x24a2f8=_0x2e5b4a;return this[_0x24a2f8(0xb0)][_0x24a2f8(0x15b)](_0x449eb3);}[_0x2e5b4a(0x17a)](_0xd53c9f){const _0x4c07af=_0x2e5b4a;return Array[_0x4c07af(0x135)](this[_0x4c07af(0x176)])['map'](_0x56b2b2=>_0x56b2b2(_0xd53c9f));}};function _0x5d92c1(_0x490a34,_0x437663){return function(_0x5ae28c,_0x144146){_0x437663(_0x5ae28c,_0x144146,_0x490a34);};}function _0x49cad7(_0xaee94f,_0x46caa0,_0x4bf40d,_0x3ad918){const _0x4c254e=_0x2e5b4a;var _0x3afcaa=arguments[_0x4c254e(0x168)],_0x528dd4=_0x3afcaa<0x3?_0x46caa0:_0x3ad918===null?_0x3ad918=Object[_0x4c254e(0x125)](_0x46caa0,_0x4bf40d):_0x3ad918,_0x85ac37;if(typeof Reflect==_0x4c254e(0x10e)&&typeof Reflect[_0x4c254e(0xad)]=='function')_0x528dd4=Reflect[_0x4c254e(0xad)](_0xaee94f,_0x46caa0,_0x4bf40d,_0x3ad918);else{for(var _0x58a64e=_0xaee94f[_0x4c254e(0x168)]-0x1;_0x58a64e>=0x0;_0x58a64e--)(_0x85ac37=_0xaee94f[_0x58a64e])&&(_0x528dd4=(_0x3afcaa<0x3?_0x85ac37(_0x528dd4):_0x3afcaa>0x3?_0x85ac37(_0x46caa0,_0x4bf40d,_0x528dd4):_0x85ac37(_0x46caa0,_0x4bf40d))||_0x528dd4);}return _0x3afcaa>0x3&&_0x528dd4&&Object[_0x4c254e(0x12d)](_0x46caa0,_0x4bf40d,_0x528dd4),_0x528dd4;}let _0xbf334d=class extends _0x2533ed[_0x2e5b4a(0xda)]{constructor(_0x5498c6,_0x5b6032,_0x209555){const _0x2ae143=_0x2e5b4a;super(),this[_0x2ae143(0x10f)]=_0x5498c6,this['_injector']=_0x5b6032,this[_0x2ae143(0x153)]=_0x209555,_0x31f9f7(this,_0x2ae143(0x167),new Map()),this[_0x2ae143(0x13e)]();}async['getLiveShareCoordinator'](_0x599326){const _0x5ab58e=_0x2e5b4a;return this[_0x5ab58e(0x167)][_0x5ab58e(0x15b)](_0x599326)||await this[_0x5ab58e(0xc6)](_0x599326),this[_0x5ab58e(0x167)][_0x5ab58e(0x12e)](_0x599326);}['getLiveShareCoordinatorSync'](_0x140f4d){const _0x4d2a87=_0x2e5b4a;var _0x4ed41a;return(_0x4ed41a=this[_0x4d2a87(0x167)][_0x4d2a87(0x12e)](_0x140f4d))==null?null:_0x4ed41a;}['_init'](){const _0x45e797=_0x2e5b4a;this[_0x45e797(0x10f)][_0x45e797(0xb2)](_0x2533ed[_0x45e797(0x120)][_0x45e797(0xd7)])[_0x45e797(0xd2)]((0x0,_0x238d5a[_0x45e797(0x174)])(this[_0x45e797(0xe1)]))[_0x45e797(0x114)](async _0xba9294=>{const _0x4cbd2d=_0x45e797;let _0x477ad7=_0xba9294[_0x4cbd2d(0xac)][_0x4cbd2d(0x106)]();this[_0x4cbd2d(0x167)][_0x4cbd2d(0x15b)](_0x477ad7)||this[_0x4cbd2d(0xc6)](_0x477ad7);}),this[_0x45e797(0x10f)][_0x45e797(0x12c)](_0x2533ed['UniverInstanceType'][_0x45e797(0xd7)])[_0x45e797(0xd2)]((0x0,_0x238d5a[_0x45e797(0x174)])(this[_0x45e797(0xe1)]))[_0x45e797(0x114)](_0x5a587d=>{const _0x4cbe73=_0x45e797;let _0x3071fc=_0x5a587d[_0x4cbe73(0x106)](),_0x2fc58a=this[_0x4cbe73(0x167)]['get'](_0x3071fc);_0x2fc58a==null||_0x2fc58a['dispose']();});}async[_0x2e5b4a(0xc6)](_0x1f868c){const _0x2f135b=_0x2e5b4a;let _0x3b9ee8=await this['_collabSessionService'][_0x2f135b(0x173)](_0x1f868c),_0x117906=this[_0x2f135b(0xb1)][_0x2f135b(0xba)](_0x3f68be,_0x1f868c,_0x3b9ee8);return _0x117906[_0x2f135b(0x148)](),this['_entities']['set'](_0x1f868c,_0x117906),_0x117906;}};_0xbf334d=_0x49cad7([_0x5d92c1(0x0,_0x2533ed[_0x2e5b4a(0xeb)]),_0x5d92c1(0x1,(0x0,_0x2533ed[_0x2e5b4a(0x100)])(_0x2533ed[_0x2e5b4a(0xcb)])),_0x5d92c1(0x2,(0x0,_0x2533ed['Inject'])(_0x533395[_0x2e5b4a(0xf2)]))],_0xbf334d);let _0x3abd44=function(_0x5d10b2){const _0x1c0edb=_0x2e5b4a;return _0x5d10b2[_0x1c0edb(0x130)]='offline',_0x5d10b2[_0x1c0edb(0x182)]=_0x1c0edb(0x10c),_0x5d10b2[_0x1c0edb(0x110)]=_0x1c0edb(0xee),_0x5d10b2[_0x1c0edb(0x188)]='not-following',_0x5d10b2[_0x1c0edb(0x11d)]='presenting',_0x5d10b2;}({}),_0x3f68be=class extends _0x2533ed[_0x2e5b4a(0xda)]{get[_0x2e5b4a(0x152)](){const _0x51a26d=_0x2e5b4a;return this[_0x51a26d(0x11e)][_0x51a26d(0x95)]();}constructor(_0x2b0b99,_0x1f73b3,_0x5eae26,_0x430d58,_0x470f7b){const _0x5bc1ab=_0x2e5b4a;super(),this[_0x5bc1ab(0x17d)]=_0x2b0b99,this[_0x5bc1ab(0x132)]=_0x1f73b3,this[_0x5bc1ab(0xca)]=_0x5eae26,this[_0x5bc1ab(0xf8)]=_0x430d58,this[_0x5bc1ab(0x16d)]=_0x470f7b,_0x31f9f7(this,_0x5bc1ab(0x11e),new _0x29b2db[(_0x5bc1ab(0x179))](_0x5bc1ab(0x10c))),_0x31f9f7(this,_0x5bc1ab(0x181),this[_0x5bc1ab(0x11e)][_0x5bc1ab(0x108)]()),_0x31f9f7(this,_0x5bc1ab(0x13e),!0x1),_0x31f9f7(this,_0x5bc1ab(0x136),null),_0x31f9f7(this,_0x5bc1ab(0xa3),null);}[_0x2e5b4a(0x145)](){const _0x75e570=_0x2e5b4a;var _0x1d6fa1;(_0x1d6fa1=this[_0x75e570(0x136)])==null||_0x1d6fa1[_0x75e570(0x145)](),this[_0x75e570(0x11e)][_0x75e570(0xd0)](_0x75e570(0x10c)),this['_status$'][_0x75e570(0x104)]();}[_0x2e5b4a(0xf4)](){return this['_status'];}[_0x2e5b4a(0x148)](){const _0x207ef4=_0x2e5b4a;this['_init']||(this[_0x207ef4(0x13e)]=!0x0,this['_collabSession'][_0x207ef4(0xf5)]['pipe']((0x0,_0x238d5a[_0x207ef4(0x174)])(this[_0x207ef4(0xe1)]))['subscribe'](_0x49908f=>{const _0x3222b5=_0x207ef4;switch(_0x49908f){case _0x533395[_0x3222b5(0xae)]['OFFLINE']:this['_handleOffline']();break;case _0x533395[_0x3222b5(0xae)][_0x3222b5(0x178)]:this[_0x3222b5(0x14f)]();break;default:}}),this[_0x207ef4(0x132)]['event$']['pipe']((0x0,_0x238d5a[_0x207ef4(0x174)])(this[_0x207ef4(0xe1)]))[_0x207ef4(0x114)](_0x37614f=>{const _0x5df6a2=_0x207ef4;let {eventID:_0x220941}=_0x37614f;switch(_0x220941){case _0x1def79[_0x5df6a2(0xc7)][_0x5df6a2(0xb5)]:this['_handleNewHost'](_0x37614f);break;case _0x1def79[_0x5df6a2(0xc7)][_0x5df6a2(0x107)]:this['_handleOperation'](_0x37614f);break;case _0x1def79[_0x5df6a2(0xc7)][_0x5df6a2(0x13d)]:this[_0x5df6a2(0x10d)]();break;case _0x1def79[_0x5df6a2(0xc7)][_0x5df6a2(0xbb)]:this[_0x5df6a2(0xb3)](_0x37614f);break;default:}}));}[_0x2e5b4a(0x15f)](){const _0x133fc0=_0x2e5b4a;this[_0x133fc0(0x132)][_0x133fc0(0x14a)]({'eventID':_0x1def79['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x133fc0(0x132)][_0x133fc0(0xcc)]()}},this['_unitID']);}[_0x2e5b4a(0xfd)](){const _0x4d8fd2=_0x2e5b4a;this['_status']===_0x4d8fd2(0x154)&&(this[_0x4d8fd2(0x11e)]['next'](_0x4d8fd2(0x10c)),this['_collabSession'][_0x4d8fd2(0x14a)]({'eventID':_0x1def79[_0x4d8fd2(0xc7)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x4d8fd2(0x17d)]));}[_0x2e5b4a(0xde)](){const _0x5c506c=_0x2e5b4a;this[_0x5c506c(0x152)]===_0x5c506c(0x158)&&(this[_0x5c506c(0x11e)][_0x5c506c(0xd0)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x549c7f=_0x2e5b4a;this[_0x549c7f(0x152)]===_0x549c7f(0xee)&&this[_0x549c7f(0xfb)]();}[_0x2e5b4a(0x184)](_0x394f52){const _0x3a2dcc=_0x2e5b4a;let {presenter:_0x2a570d}=_0x394f52['data'],_0x57b717=this[_0x3a2dcc(0x132)]['getMemberID']();this[_0x3a2dcc(0xa3)]=_0x2a570d,_0x2a570d===_0x57b717?(this[_0x3a2dcc(0xfb)](),this[_0x3a2dcc(0x155)]()):this[_0x3a2dcc(0x152)]!=='not-following'&&(this[_0x3a2dcc(0x180)](),this[_0x3a2dcc(0x172)]());}[_0x2e5b4a(0xa8)](){const _0x49a13a=_0x2e5b4a;let _0x160da0={'eventID':_0x1def79[_0x49a13a(0xc7)][_0x49a13a(0xa9)]};this['_collabSession']['send'](_0x160da0,this[_0x49a13a(0x17d)]);}[_0x2e5b4a(0x10d)](){const _0xb5423c=_0x2e5b4a;this[_0xb5423c(0xa3)]=null,this[_0xb5423c(0x152)]!==_0xb5423c(0x154)&&this['_beIdle']();}[_0x2e5b4a(0xb3)](_0x5a9dfb){const _0x38605e=_0x2e5b4a;if(this[_0x38605e(0x152)]===_0x38605e(0xee)&&this[_0x38605e(0xa3)]===_0x5a9dfb[_0x38605e(0x103)][_0x38605e(0x9b)]){let _0xd2cf4e=(0x0,_0x1def79[_0x38605e(0x94)])(_0x5a9dfb['data'])['mutations']['reverse']()[_0x38605e(0x147)](_0x4c387a=>_0x4c387a['id']===_0x5d2bc8[_0x38605e(0xed)]['id']);if(_0xd2cf4e){let _0x4c9984=_0xd2cf4e[_0x38605e(0x171)][_0x38605e(0x10a)],_0xaee5a=_0xd2cf4e[_0x38605e(0x171)][_0x38605e(0xd5)]['id'];setTimeout(()=>{const _0x4ba118=_0x38605e;this[_0x4ba118(0x16d)]['executeCommand'](_0x5d2bc8[_0x4ba118(0x115)]['id'],{'unitId':_0x4c9984,'subUnitId':_0xaee5a},{'fromCollab':!0x0});});}}}[_0x2e5b4a(0x155)](){const _0x1945d3=_0x2e5b4a;var _0x20dfb0;(_0x20dfb0=this[_0x1945d3(0x136)])==null||_0x20dfb0[_0x1945d3(0x145)](),this[_0x1945d3(0x11e)][_0x1945d3(0xd0)](_0x1945d3(0x154));let _0x59da99=new Map(),_0xb6cd37=this[_0x1945d3(0x136)]=new _0x2533ed[(_0x1945d3(0xfe))]();_0xb6cd37['add']((0x0,_0x2533ed[_0x1945d3(0x13a)])(()=>{const _0xb16cd0=_0x1945d3;_0x59da99[_0xb16cd0(0x11b)](({subject:_0x247aef,subscription:_0x427903})=>{const _0x2a93e8=_0xb16cd0;_0x427903[_0x2a93e8(0xdd)](),_0x247aef[_0x2a93e8(0x104)]();}),_0x59da99['clear']();})),_0xb6cd37[_0x1945d3(0x13b)](this[_0x1945d3(0x16d)][_0x1945d3(0xa4)](_0xc60c68=>{const _0x2b9f28=_0x1945d3;if(_0xc60c68[_0x2b9f28(0xe0)]!==_0x2533ed[_0x2b9f28(0xc3)][_0x2b9f28(0x10b)]||!this[_0x2b9f28(0xf8)][_0x2b9f28(0xc2)](_0xc60c68['id']))return;let {id:_0x41ebaa}=_0xc60c68,_0x2214b5;if(_0x59da99[_0x2b9f28(0x15b)](_0x41ebaa))_0x2214b5=_0x59da99['get'](_0x41ebaa)['subject'];else{var _0x2bdcee;_0x2214b5=new _0x29b2db['Subject']();let _0x55cb11=_0x2214b5[_0x2b9f28(0xd2)]((0x0,_0x238d5a[_0x2b9f28(0x12b)])((_0x2bdcee=this[_0x2b9f28(0xca)]['getConfig'](_0x2b9f28(0x13c)))==null?0xc8:_0x2bdcee,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2b9f28(0x114)](_0x5eb83b=>{const _0x346031=_0x2b9f28;this[_0x346031(0x132)][_0x346031(0x14a)]({'eventID':_0x1def79[_0x346031(0xc7)][_0x346031(0x107)],'data':{'unitID':this[_0x346031(0x17d)],'operations':{[_0x5eb83b['id']]:{'id':_0x5eb83b['id'],'params':JSON['stringify'](_0x5eb83b[_0x346031(0x171)])}}}},this[_0x346031(0x17d)]);});_0x59da99[_0x2b9f28(0xd4)](_0x41ebaa,{'subject':_0x2214b5,'subscription':_0x55cb11});}_0x2214b5[_0x2b9f28(0xd0)](_0xc60c68);})),this[_0x1945d3(0xf8)][_0x1945d3(0x17a)](this['_unitID'])['forEach'](_0x50b293=>this[_0x1945d3(0x132)]['send']({'eventID':_0x1def79[_0x1945d3(0xc7)][_0x1945d3(0x107)],'data':{'unitID':this[_0x1945d3(0x17d)],'operations':{[_0x50b293['id']]:{'id':_0x50b293['id'],'params':JSON[_0x1945d3(0x9f)](_0x50b293[_0x1945d3(0x171)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x1434d3=_0x2e5b4a;var _0x4a555a;this[_0x1434d3(0x11e)][_0x1434d3(0xd0)](_0x1434d3(0x10c)),(_0x4a555a=this[_0x1434d3(0x136)])==null||_0x4a555a[_0x1434d3(0x145)](),this['_commandDisposable']=null;}[_0x2e5b4a(0x172)](){const _0x275270=_0x2e5b4a;var _0x24a309;(_0x24a309=this[_0x275270(0x136)])==null||_0x24a309[_0x275270(0x145)](),this[_0x275270(0x11e)][_0x275270(0xd0)](_0x275270(0xee));}[_0x2e5b4a(0x16c)](){const _0x52b17c=_0x2e5b4a;var _0x8b26cb;this['_status$']['next'](_0x52b17c(0x10c)),(_0x8b26cb=this[_0x52b17c(0x136)])==null||_0x8b26cb['dispose'](),this['_commandDisposable']=null;}[_0x2e5b4a(0xfb)](){const _0x55870e=_0x2e5b4a;var _0x39c2cb;this[_0x55870e(0x11e)][_0x55870e(0xd0)](_0x55870e(0x158)),(_0x39c2cb=this[_0x55870e(0x136)])==null||_0x39c2cb[_0x55870e(0x145)]();}[_0x2e5b4a(0xfa)](_0x57fcdc){const _0x346e64=_0x2e5b4a;if(['presenting',_0x346e64(0x158),_0x346e64(0x97)][_0x346e64(0x14c)](this[_0x346e64(0x152)])||!_0x57fcdc[_0x346e64(0x103)][_0x346e64(0x161)]||_0x57fcdc[_0x346e64(0x103)][_0x346e64(0x161)]===this[_0x346e64(0x132)][_0x346e64(0xcc)]())return;this[_0x346e64(0x152)]===_0x346e64(0x10c)&&this[_0x346e64(0x172)]();let _0x3c339f=_0x57fcdc[_0x346e64(0x103)][_0x346e64(0x134)];Object[_0x346e64(0xa2)](_0x3c339f)['forEach'](_0x418cb6=>{const _0x2f34f4=_0x346e64;this['_commandService'][_0x2f34f4(0x146)](_0x418cb6['id'],_0x418cb6[_0x2f34f4(0x171)]?JSON[_0x2f34f4(0x14e)](_0x418cb6[_0x2f34f4(0x171)]):null,{'fromCollab':!0x0});});}[_0x2e5b4a(0x141)](){const _0x21365f=_0x2e5b4a;var _0x470bca;this[_0x21365f(0x11e)][_0x21365f(0xd0)](_0x21365f(0x97)),(_0x470bca=this[_0x21365f(0x136)])==null||_0x470bca['dispose']();}[_0x2e5b4a(0x14f)](){const _0x16500a=_0x2e5b4a;this[_0x16500a(0x11e)][_0x16500a(0xd0)]('idle'),this[_0x16500a(0xa8)]();}};_0x3f68be=_0x49cad7([_0x5d92c1(0x2,_0x2533ed[_0x2e5b4a(0x183)]),_0x5d92c1(0x3,(0x0,_0x2533ed[_0x2e5b4a(0x100)])(_0x353a3c)),_0x5d92c1(0x4,_0x2533ed[_0x2e5b4a(0xbe)])],_0x3f68be);function _0x54d1fe({ref:_0x30023a,..._0x38829a}){const _0x1a96b8=_0x2e5b4a;let {icon:_0x541eb0,id:_0x118cc3,className:_0x9d1601,extend:_0x3b39b8,..._0x44dae5}=_0x38829a,_0xf55955=(_0x1a96b8(0xf0)+_0x118cc3+'\x20'+(_0x9d1601||''))[_0x1a96b8(0x102)](),_0x30b9f1=(0x0,_0x193e8d[_0x1a96b8(0x133)])('_'+_0x37647a());return _0x10402d(_0x541eb0,''+_0x118cc3,{'defIds':_0x541eb0['defIds'],'idSuffix':_0x30b9f1[_0x1a96b8(0x101)]},{'ref':_0x30023a,'className':_0xf55955,..._0x44dae5},_0x3b39b8);}function _0x10402d(_0x801ca2,_0x13ee12,_0x41a248,_0x5816e1,_0x545b72){const _0xdd5aab=_0x2e5b4a;return(0x0,_0x193e8d[_0xdd5aab(0x151)])(_0x801ca2[_0xdd5aab(0xb6)],{'key':_0x13ee12,..._0x4194cf(_0x801ca2,_0x41a248,_0x545b72),..._0x5816e1},(_0x35fcee(_0x801ca2,_0x41a248)['children']||[])[_0xdd5aab(0x177)]((_0x19e9ec,_0x1d8da0)=>_0x10402d(_0x19e9ec,_0x13ee12+'-'+_0x801ca2[_0xdd5aab(0xb6)]+'-'+_0x1d8da0,_0x41a248,void 0x0,_0x545b72)));}function _0x4194cf(_0x3d61ef,_0x154677,_0x272ce8){const _0x2045ae=_0x2e5b4a;let _0x545370={..._0x3d61ef[_0x2045ae(0xd3)]};_0x272ce8!=null&&_0x272ce8[_0x2045ae(0xbf)]&&_0x545370[_0x2045ae(0xec)]==='colorChannel1'&&(_0x545370[_0x2045ae(0xec)]=_0x272ce8[_0x2045ae(0xbf)]),_0x272ce8!=null&&_0x272ce8[_0x2045ae(0xbf)]&&_0x545370[_0x2045ae(0x16f)]===_0x2045ae(0xbf)&&(_0x545370[_0x2045ae(0x16f)]=_0x272ce8[_0x2045ae(0xbf)]),_0x3d61ef[_0x2045ae(0xb6)]===_0x2045ae(0x137)&&_0x545370['id']&&(_0x545370['id']+=_0x154677[_0x2045ae(0xbd)]),Object[_0x2045ae(0xf1)](_0x545370)[_0x2045ae(0x11b)](([_0x5d0a2f,_0x1237a2])=>{const _0x5e20d4=_0x2045ae;_0x5d0a2f==='mask'&&typeof _0x1237a2==_0x5e20d4(0x149)&&(_0x545370[_0x5d0a2f]=_0x1237a2[_0x5e20d4(0x9c)](/url\(#(.*)\)/,_0x5e20d4(0x126)+_0x154677['idSuffix']+')'));});let {defIds:_0x5afe4d}=_0x154677;return!_0x5afe4d||_0x5afe4d['length']===0x0?_0x545370:(_0x3d61ef[_0x2045ae(0xb6)]==='use'&&_0x545370[_0x2045ae(0xff)]&&(_0x545370['xlink:href']+=_0x154677[_0x2045ae(0xbd)]),Object['entries'](_0x545370)[_0x2045ae(0x11b)](([_0x12717d,_0xc0469d])=>{const _0x5891a2=_0x2045ae;typeof _0xc0469d==_0x5891a2(0x149)&&(_0x545370[_0x12717d]=_0xc0469d[_0x5891a2(0x9c)](/url\(#(.*)\)/,_0x5891a2(0x126)+_0x154677[_0x5891a2(0xbd)]+')'));}),_0x545370);}function _0x35fcee(_0x2c21e7,_0x170d99){const _0x4557e9=_0x2e5b4a;var _0x5455f9;let {defIds:_0x2fb586}=_0x170d99;return!_0x2fb586||_0x2fb586[_0x4557e9(0x168)]===0x0?_0x2c21e7:_0x2c21e7[_0x4557e9(0xb6)]===_0x4557e9(0xaf)&&(_0x5455f9=_0x2c21e7[_0x4557e9(0x112)])!=null&&_0x5455f9[_0x4557e9(0x168)]?{..._0x2c21e7,'children':_0x2c21e7[_0x4557e9(0x112)][_0x4557e9(0x177)](_0x19bbab=>typeof _0x19bbab[_0x4557e9(0xd3)]['id']=='string'&&_0x2fb586&&_0x2fb586[_0x4557e9(0x14c)](_0x19bbab[_0x4557e9(0xd3)]['id'])?{..._0x19bbab,'attrs':{..._0x19bbab[_0x4557e9(0xd3)],'id':_0x19bbab[_0x4557e9(0xd3)]['id']+_0x170d99[_0x4557e9(0xbd)]}}:_0x19bbab)}:_0x2c21e7;}function _0x37647a(){const _0x26fc64=_0x2e5b4a;return Math[_0x26fc64(0x128)]()['toString'](0x24)[_0x26fc64(0x131)](0x2,0x8);}_0x54d1fe[_0x2e5b4a(0x156)]='UniverIcon';let _0x54eb8b={'tag':_0x2e5b4a(0xdb),'attrs':{'xmlns':_0x2e5b4a(0x175),'fill':_0x2e5b4a(0xdf),'viewBox':_0x2e5b4a(0xc5),'width':_0x2e5b4a(0x9a),'height':_0x2e5b4a(0x9a)},'children':[{'tag':'path','attrs':{'fill':_0x2e5b4a(0xf3),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2e5b4a(0x16a),'attrs':{'fill':_0x2e5b4a(0xf3),'d':_0x2e5b4a(0x164),'fillRule':_0x2e5b4a(0xc8),'clipRule':_0x2e5b4a(0xc8)}}]},_0x25a4fa=(0x0,_0x193e8d['forwardRef'])(function(_0x5d0637,_0x4677ea){const _0x499fb1=_0x2e5b4a;return(0x0,_0x193e8d['createElement'])(_0x54d1fe,Object[_0x499fb1(0xe8)]({},_0x5d0637,{'id':_0x499fb1(0xf7),'ref':_0x4677ea,'icon':_0x54eb8b}));});_0x25a4fa[_0x2e5b4a(0x156)]=_0x2e5b4a(0x17b);function _0x27de14(){const _0x43305f=_0x2e5b4a;let _0x47aeb2=(0x0,_0x1b0ce3[_0x43305f(0xf9)])(_0xbf334d),_0x277736=(0x0,_0x1b0ce3['useDependency'])(_0x2533ed[_0x43305f(0xeb)]),_0x133843=(0x0,_0x1b0ce3[_0x43305f(0xa0)])(()=>_0x277736[_0x43305f(0x15a)](_0x2533ed[_0x43305f(0x120)][_0x43305f(0xd7)]),void 0x0,!0x1,[]),[_0x54008e,_0x1f1590]=(0x0,_0x193e8d[_0x43305f(0xe9)])(null),[_0x566c08,_0x4f4735]=(0x0,_0x193e8d[_0x43305f(0xe9)])('idle'),_0x523bda=(0x0,_0x193e8d[_0x43305f(0x133)])(null);return(0x0,_0x193e8d['useEffect'])(()=>(_0x133843&&_0x47aeb2['getLiveShareCoordinator'](_0x133843['getUnitId']())[_0x43305f(0x170)](_0x2cbd64=>{const _0x138ace=_0x43305f;_0x1f1590(_0x2cbd64),_0x523bda[_0x138ace(0x101)]=_0x2cbd64[_0x138ace(0x181)][_0x138ace(0x114)](_0x3de868=>{_0x4f4735(_0x3de868);});}),()=>{const _0xff2783=_0x43305f;var _0x1498bb;(_0x1498bb=_0x523bda['current'])==null||_0x1498bb[_0xff2783(0xdd)](),_0x523bda[_0xff2783(0x101)]=null;}),[_0x133843,_0x47aeb2]),_0x54008e?(0x0,_0x1c1026[_0x43305f(0x17e)])(_0x1b4364['Dropdown'],{'align':'end','disabled':_0x566c08===_0x43305f(0x97),'className':_0x43305f(0xe3),'overlay':(0x0,_0x1c1026[_0x43305f(0x17e)])(_0x3e7f6f,{'status':_0x566c08,'coordinator':_0x54008e}),'children':(0x0,_0x1c1026[_0x43305f(0x17e)])(_0x43305f(0xe6),{'className':(0x0,_0x1b4364[_0x43305f(0xe2)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x566c08===_0x43305f(0x97),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x566c08!==_0x43305f(0x97)}),'type':_0x43305f(0xe6),'children':(0x0,_0x1c1026[_0x43305f(0x17e)])(_0x25a4fa,{})})}):null;}function _0x3e7f6f(_0x1c90cd){const _0x1507ac=_0x2e5b4a;let {status:_0x2840ce,coordinator:_0x181601}=_0x1c90cd;switch(_0x2840ce){case _0x1507ac(0x10c):return(0x0,_0x1c1026[_0x1507ac(0x17e)])(_0x219dd1,{'coordinator':_0x181601});case _0x1507ac(0xee):return(0x0,_0x1c1026[_0x1507ac(0x17e)])(_0x935111,{'coordinator':_0x181601});case _0x1507ac(0x158):return(0x0,_0x1c1026[_0x1507ac(0x17e)])(_0x47f5a7,{'coordinator':_0x181601});case _0x1507ac(0x97):return(0x0,_0x1c1026['jsx'])(_0x3809ee,{});case _0x1507ac(0x154):return(0x0,_0x1c1026[_0x1507ac(0x17e)])(_0x54abb2,{'coordinator':_0x181601});default:return null;}}function _0x219dd1(_0x58e20f){const _0x733121=_0x2e5b4a;let {coordinator:_0x460507}=_0x58e20f;return(0x0,_0x1c1026['jsxs'])(_0x1c1026[_0x733121(0x163)],{'children':[(0x0,_0x1c1026[_0x733121(0x17e)])(_0x733121(0x14d),{'className':_0x733121(0x12f),'children':_0x733121(0x116)}),(0x0,_0x1c1026[_0x733121(0x17e)])(_0x1b4364['Button'],{'onClick':()=>_0x460507['tryStartPresenting'](),'children':'Start'})]});}function _0x935111(_0x271a8c){const _0x2efc40=_0x2e5b4a;let {coordinator:_0x2f7778}=_0x271a8c;return(0x0,_0x1c1026[_0x2efc40(0x123)])(_0x1c1026[_0x2efc40(0x163)],{'children':[(0x0,_0x1c1026[_0x2efc40(0x17e)])(_0x2efc40(0x14d),{'className':_0x2efc40(0x12f),'children':_0x2efc40(0x117)}),(0x0,_0x1c1026[_0x2efc40(0x17e)])(_0x1b4364[_0x2efc40(0x160)],{'onClick':()=>_0x2f7778[_0x2efc40(0x9d)](),'children':_0x2efc40(0x124)})]});}function _0x47f5a7(_0x2ca2fa){const _0x5eae3c=_0x2e5b4a;let {coordinator:_0x133c11}=_0x2ca2fa;return(0x0,_0x1c1026['jsxs'])(_0x1c1026[_0x5eae3c(0x163)],{'children':[(0x0,_0x1c1026[_0x5eae3c(0x17e)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5eae3c(0x140)}),(0x0,_0x1c1026[_0x5eae3c(0x17e)])(_0x1b4364['Button'],{'variant':'text','onClick':()=>_0x133c11['startFollowing'](),'children':_0x5eae3c(0x129)})]});}function _0x54abb2(_0x466d52){const _0x3c051d=_0x2e5b4a;let {coordinator:_0x1cf392}=_0x466d52;return(0x0,_0x1c1026['jsxs'])(_0x1c1026['Fragment'],{'children':[(0x0,_0x1c1026[_0x3c051d(0x17e)])(_0x3c051d(0x14d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c051d(0xd8)}),(0x0,_0x1c1026[_0x3c051d(0x17e)])(_0x1b4364[_0x3c051d(0x160)],{'variant':_0x3c051d(0x142),'onClick':()=>_0x1cf392[_0x3c051d(0xfd)](),'children':_0x3c051d(0xce)})]});}function _0x3809ee(){const _0xa9925d=_0x2e5b4a;return(0x0,_0x1c1026[_0xa9925d(0x17e)])(_0x1c1026[_0xa9925d(0x163)],{'children':_0xa9925d(0xa1)});}let _0xe65ec8=class extends _0x2533ed[_0x2e5b4a(0xc0)]{constructor(_0x5c3b8d,_0x31a5b6){const _0x4eed48=_0x2e5b4a;super(),this[_0x4eed48(0xb1)]=_0x5c3b8d,this[_0x4eed48(0xab)]=_0x31a5b6,this[_0x4eed48(0xcd)]();}['_mountLiveShare'](){const _0x3f9b30=_0x2e5b4a;this[_0x3f9b30(0x96)](this[_0x3f9b30(0xab)][_0x3f9b30(0xc4)](_0x1b0ce3[_0x3f9b30(0x14b)][_0x3f9b30(0x111)],()=>(0x0,_0x1b0ce3[_0x3f9b30(0x144)])(_0x27de14,this[_0x3f9b30(0xb1)])));}};_0xe65ec8=_0x49cad7([_0x5d92c1(0x0,(0x0,_0x2533ed[_0x2e5b4a(0x100)])(_0x2533ed['Injector'])),_0x5d92c1(0x1,_0x1b0ce3[_0x2e5b4a(0x122)])],_0xe65ec8);var _0x44a75d=_0x2e5b4a(0x99),_0x4ed9ab='1.0.0-alpha.0';let _0x4518c7={},_0x334bae=class extends _0x2533ed[_0x2e5b4a(0xc0)]{constructor(_0x5a24db){const _0x56b49d=_0x2e5b4a;super(),this[_0x56b49d(0xf8)]=_0x5a24db,this[_0x56b49d(0x13e)]();}[_0x2e5b4a(0x13e)](){const _0x156a99=_0x2e5b4a;[_0x2592eb[_0x156a99(0x12a)]['id'],_0x2592eb[_0x156a99(0x187)]['id'],_0x5d2bc8[_0x156a99(0x115)]['id']][_0x156a99(0x11b)](_0x195d71=>{const _0x4ef317=_0x156a99;this[_0x4ef317(0x96)](this['_liveShareService'][_0x4ef317(0xf6)](_0x195d71));});}};_0x334bae=_0x49cad7([_0x5d92c1(0x0,(0x0,_0x2533ed['Inject'])(_0x353a3c))],_0x334bae);let _0xfee362=class extends _0x2533ed[_0x2e5b4a(0xdc)]{constructor(_0x252cbf=_0x4518c7,_0x32f664,_0x5bca8d){const _0x3ce7a1=_0x2e5b4a;super(),this['_config']=_0x252cbf,this[_0x3ce7a1(0xb1)]=_0x32f664,this['_configService']=_0x5bca8d;let {..._0x42c29f}=(0x0,_0x2533ed['merge'])({},_0x4518c7,this[_0x3ce7a1(0x119)]);this[_0x3ce7a1(0xca)][_0x3ce7a1(0xa5)](_0x3ce7a1(0x166),_0x42c29f);}[_0x2e5b4a(0x15e)](){const _0x996744=_0x2e5b4a;(0x0,_0x2533ed['registerDependencies'])(this[_0x996744(0xb1)],(0x0,_0x2533ed['mergeOverrideWithDependencies'])([[_0x353a3c],[_0xbf334d],[_0x334bae],[_0xe65ec8]],this[_0x996744(0x119)][_0x996744(0x11c)])),(0x0,_0x2533ed[_0x996744(0x17c)])(this[_0x996744(0xb1)],[[_0x334bae]]);}[_0x2e5b4a(0x15c)](){const _0x5d84d8=_0x2e5b4a;(0x0,_0x2533ed[_0x5d84d8(0x17c)])(this[_0x5d84d8(0xb1)],[[_0xe65ec8]]);}};_0x31f9f7(_0xfee362,'type',_0x2533ed[_0x2e5b4a(0x120)][_0x2e5b4a(0x143)]),_0x31f9f7(_0xfee362,'pluginName',_0x2e5b4a(0x138)),_0x31f9f7(_0xfee362,_0x2e5b4a(0x159),_0x44a75d),_0x31f9f7(_0xfee362,_0x2e5b4a(0xb8),_0x4ed9ab),_0xfee362=_0x49cad7([(0x0,_0x2533ed[_0x2e5b4a(0xc9)])(_0x533395[_0x2e5b4a(0xa7)]),_0x5d92c1(0x1,(0x0,_0x2533ed[_0x2e5b4a(0x100)])(_0x2533ed[_0x2e5b4a(0xcb)])),_0x5d92c1(0x2,_0x2533ed['IConfigService'])],_0xfee362),Object[_0x2e5b4a(0x12d)](_0x1d6d0c,_0x2e5b4a(0x11a),{'enumerable':!0x0,'get':function(){return _0xe65ec8;}}),_0x1d6d0c[_0x2e5b4a(0x16b)]=_0x27de14,Object[_0x2e5b4a(0x12d)](_0x1d6d0c,_0x2e5b4a(0x157),{'enumerable':!0x0,'get':function(){return _0xbf334d;}}),Object[_0x2e5b4a(0x12d)](_0x1d6d0c,_0x2e5b4a(0x13f),{'enumerable':!0x0,'get':function(){return _0x3f68be;}}),_0x1d6d0c['LiveShareService']=_0x353a3c,_0x1d6d0c['LiveShareStatus']=_0x3abd44,Object[_0x2e5b4a(0x12d)](_0x1d6d0c,_0x2e5b4a(0x17f),{'enumerable':!0x0,'get':function(){return _0xfee362;}});}));function _0x2f76(_0x5e9a46,_0x2dc0ac){_0x5e9a46=_0x5e9a46-0x94;const _0x41e804=_0x41e8();let _0x2f76bd=_0x41e804[_0x5e9a46];return _0x2f76bd;}function _0x41e8(){const _0x2e1f17=['children','713dRcZmX','subscribe','SetWorksheetActiveOperation','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_config','DesktopLiveShareController','forEach','override','PRESENTING','_status$','UniverProLiveShare','UniverInstanceType','Module','IUIPartsService','jsxs','Stop\x20following','getOwnPropertyDescriptor','url(#$1','@univerjs/ui','random','Start\x20following','SetZoomRatioOperation','throttleTime','getTypeOfUnitDisposed$','defineProperty','get','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','substring','_collabSession','useRef','operations','from','_commandDisposable','mask','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/design','toDisposable','add','SAME_OPERATION_SHARE_INTERVAL','LIVESHARE_TERMINATE','_init','LiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','_handleOffline','default','UNIVER_UNKNOWN','connectInjector','dispose','executeCommand','find','init','string','send','BuiltInUIPart','includes','div','parse','_handleOnline','44LHSdKG','createElement','_status','_collabSessionService','presenting','_startPresenting','displayName','LiveShareController','not-following','packageName','getCurrentTypeOfUnit$','has','onRendered','constructor','onStarting','tryStartPresenting','Button','presenter','29598BWXJjh','Fragment','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','call','live-share.config','_entities','length','UniverDesign','path','LiveShare','_beIdle','_commandService','function','stroke','then','params','_startFollowing','requireSession','takeUntil','http://www.w3.org/2000/svg','_reporters','map','ONLINE','BehaviorSubject','getInitialStates','LiveShareIcon','touchDependencies','_unitID','jsx','UniverLiveSharePlugin','_stopPresenting','status$','IDLE','IConfigService','_handleNewHost','54370rtLvFr','@univerjs/sheets-ui','SetScrollOperation','NOT_FOLLOWING','parseProtocolChangeset','getValue','disposeWithMe','offline','React','@univerjs-pro/live-share','1em','memberID','replace','stopFollowing','symbol','stringify','useObservable','You\x27are\x20offline.','values','_presenter','onCommandExecuted','setConfig','32SKDJyJ','UniverCollaborationClientPlugin','_fetchOperations','LIVESHARE_FETCH_OPERATIONS','210LFWKPV','_uiPartsService','unit','decorate','SessionStatus','defs','_sharedOperations','_injector','getTypeOfUnitAdded$','_handleNewChangeSets','toPrimitive','LIVESHARE_NEW_HOST','tag','operators','version','UniverSheetsUi','createInstance','NEW_CHANGESETS','delete','idSuffix','ICommandService','colorChannel1','Disposable','prototype','shouldShareOperation','CommandType','registerComponent','0\x200\x2017\x2017','_startLiveShareCoordinator','CollaborationEvent','evenodd','DependentOn','_configService','Injector','getMemberID','_mountLiveShare','Stop\x20presenting','rxjs','next','react/jsx-runtime','pipe','attrs','set','sheet','161120cNlOlF','UNIVER_SHEET','You\x27re\x20presenting\x20the\x20document','10ULMRdi','RxDisposable','svg','Plugin','unsubscribe','startFollowing','none','type','dispose$','clsx','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','iterator','453750EbPCYI','button','UniverProCollaboration','assign','useState','70700fWEFKM','IUniverInstanceService','fill','InsertSheetMutation','following','react','univerjs-icon\x20univerjs-icon-','entries','CollaborationSessionService','currentColor','getStatus','sessionStatus$','registerSharedOperation','live-share-icon','_liveShareService','useDependency','_handleOperation','_stopFollowing','UniverProCollaborationClient','stopPresenting','DisposableCollection','xlink:href','Inject','current','trim','data','complete','355365PDUwlL','getUnitId','LIVESHARE_OPERATION','asObservable','@univerjs-pro/collaboration-client','unitId','OPERATION','idle','_handleTerminate','object','_univerInstanceService','FOLLOWING','HEADER_MENU'];_0x41e8=function(){return _0x2e1f17;};return _0x41e8();}
1
+ (function(_0xb787a5,_0x37128c){const _0x1b5365=_0x3522,_0x48f2e9=_0xb787a5();while(!![]){try{const _0x5baf8a=-parseInt(_0x1b5365(0x1c5))/0x1+-parseInt(_0x1b5365(0x24c))/0x2*(-parseInt(_0x1b5365(0x1dc))/0x3)+parseInt(_0x1b5365(0x1e0))/0x4*(parseInt(_0x1b5365(0x19b))/0x5)+-parseInt(_0x1b5365(0x1aa))/0x6+-parseInt(_0x1b5365(0x19a))/0x7+parseInt(_0x1b5365(0x1fd))/0x8*(-parseInt(_0x1b5365(0x1e1))/0x9)+parseInt(_0x1b5365(0x247))/0xa;if(_0x5baf8a===_0x37128c)break;else _0x48f2e9['push'](_0x48f2e9['shift']());}catch(_0x1fae8b){_0x48f2e9['push'](_0x48f2e9['shift']());}}}(_0x3b8f,0x8b687),function(_0x4506cf,_0x49514e){const _0x1e7aac=_0x3522;typeof exports==_0x1e7aac(0x1a9)&&typeof module<'u'?_0x49514e(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0x1e7aac(0x1b4)&&define['amd']?define(['exports',_0x1e7aac(0x181),_0x1e7aac(0x16f),_0x1e7aac(0x220),_0x1e7aac(0x1f0),'rxjs','rxjs/operators',_0x1e7aac(0x22c),_0x1e7aac(0x200),_0x1e7aac(0x243),_0x1e7aac(0x17e),_0x1e7aac(0x1cb)],_0x49514e):(_0x4506cf=typeof globalThis<'u'?globalThis:_0x4506cf||self,_0x49514e(_0x4506cf[_0x1e7aac(0x22a)]={},_0x4506cf[_0x1e7aac(0x237)],_0x4506cf[_0x1e7aac(0x214)],_0x4506cf[_0x1e7aac(0x1eb)],_0x4506cf[_0x1e7aac(0x207)],_0x4506cf[_0x1e7aac(0x15d)],_0x4506cf['rxjs']['operators'],_0x4506cf[_0x1e7aac(0x1a6)],_0x4506cf[_0x1e7aac(0x1c4)],_0x4506cf['React'],_0x4506cf[_0x1e7aac(0x1c0)],_0x4506cf[_0x1e7aac(0x1da)]));}(this,function(_0x522c9e,_0x5e573b,_0x5a0b21,_0x2783b2,_0x5e4379,_0x1b8c8a,_0x5b7387,_0x59ae43,_0x5342f5,_0x28435e,_0x1fcf35,_0x149c26){const _0x273424=_0x3522;Object[_0x273424(0x228)](_0x522c9e,Symbol[_0x273424(0x24d)],{'value':_0x273424(0x1d0)});function _0x4a213c(_0x1927da){'@babel/helpers - typeof';const _0x4b1d87=_0x273424;return _0x4a213c=typeof Symbol==_0x4b1d87(0x1b4)&&typeof Symbol['iterator']=='symbol'?function(_0x823a02){return typeof _0x823a02;}:function(_0x749b74){const _0x27f1b8=_0x4b1d87;return _0x749b74&&typeof Symbol==_0x27f1b8(0x1b4)&&_0x749b74[_0x27f1b8(0x234)]===Symbol&&_0x749b74!==Symbol[_0x27f1b8(0x16a)]?'symbol':typeof _0x749b74;},_0x4a213c(_0x1927da);}function _0x545adb(_0x67b8fd,_0x1a25fe){const _0x14f6fa=_0x273424;if(_0x4a213c(_0x67b8fd)!=_0x14f6fa(0x1a9)||!_0x67b8fd)return _0x67b8fd;var _0x2ce7cc=_0x67b8fd[Symbol[_0x14f6fa(0x1ec)]];if(_0x2ce7cc!==void 0x0){var _0x443e99=_0x2ce7cc[_0x14f6fa(0x194)](_0x67b8fd,_0x1a25fe||_0x14f6fa(0x17d));if(_0x4a213c(_0x443e99)!='object')return _0x443e99;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a25fe===_0x14f6fa(0x20b)?String:Number)(_0x67b8fd);}function _0x1ba22d(_0x388432){const _0x259c96=_0x273424;var _0x166d7a=_0x545adb(_0x388432,'string');return _0x4a213c(_0x166d7a)==_0x259c96(0x221)?_0x166d7a:_0x166d7a+'';}function _0xdfb72d(_0x431817,_0x4ab856,_0x20b0fc){const _0x45075a=_0x273424;return(_0x4ab856=_0x1ba22d(_0x4ab856))in _0x431817?Object[_0x45075a(0x228)](_0x431817,_0x4ab856,{'value':_0x20b0fc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x431817[_0x4ab856]=_0x20b0fc,_0x431817;}var _0x46bf5a=class extends _0x2783b2[_0x273424(0x1f2)]{constructor(..._0x47062e){const _0x18b950=_0x273424;super(..._0x47062e),_0xdfb72d(this,'_sharedOperations',new Set()),_0xdfb72d(this,_0x18b950(0x1e4),new Set());}[_0x273424(0x231)](_0x3ce058){const _0x41054d=_0x273424;return this['_sharedOperations'][_0x41054d(0x168)](_0x3ce058),(0x0,_0x2783b2[_0x41054d(0x19f)])(()=>this[_0x41054d(0x18e)]['delete'](_0x3ce058));}[_0x273424(0x224)](_0x1c835e){const _0x46d978=_0x273424;return this[_0x46d978(0x1e4)][_0x46d978(0x168)](_0x1c835e),(0x0,_0x2783b2[_0x46d978(0x19f)])(()=>this[_0x46d978(0x1e4)]['delete'](_0x1c835e));}[_0x273424(0x1c6)](_0x48aae4){const _0x2845c6=_0x273424;return this[_0x2845c6(0x18e)][_0x2845c6(0x226)](_0x48aae4);}[_0x273424(0x17f)](_0x4e912c){const _0x278739=_0x273424;return Array[_0x278739(0x238)](this[_0x278739(0x1e4)])[_0x278739(0x178)](_0x146898=>_0x146898(_0x4e912c));}};function _0x5a79e4(_0x4fd5a0,_0x333307){return function(_0x355ce0,_0x1c15b5){_0x333307(_0x355ce0,_0x1c15b5,_0x4fd5a0);};}function _0x5e495f(_0x4e2cae,_0x2c4bf0,_0x2cbef6,_0x3ffae0){const _0x595fb9=_0x273424;var _0x24fcfb=arguments[_0x595fb9(0x171)],_0x475659=_0x24fcfb<0x3?_0x2c4bf0:_0x3ffae0===null?_0x3ffae0=Object[_0x595fb9(0x1b1)](_0x2c4bf0,_0x2cbef6):_0x3ffae0,_0x18c4da;if(typeof Reflect==_0x595fb9(0x1a9)&&typeof Reflect['decorate']==_0x595fb9(0x1b4))_0x475659=Reflect[_0x595fb9(0x1cd)](_0x4e2cae,_0x2c4bf0,_0x2cbef6,_0x3ffae0);else{for(var _0x873bcc=_0x4e2cae['length']-0x1;_0x873bcc>=0x0;_0x873bcc--)(_0x18c4da=_0x4e2cae[_0x873bcc])&&(_0x475659=(_0x24fcfb<0x3?_0x18c4da(_0x475659):_0x24fcfb>0x3?_0x18c4da(_0x2c4bf0,_0x2cbef6,_0x475659):_0x18c4da(_0x2c4bf0,_0x2cbef6))||_0x475659);}return _0x24fcfb>0x3&&_0x475659&&Object[_0x595fb9(0x228)](_0x2c4bf0,_0x2cbef6,_0x475659),_0x475659;}let _0x403428=class extends _0x2783b2[_0x273424(0x195)]{constructor(_0x23dd4f,_0x3f44ae,_0x5df301){const _0x2da985=_0x273424;super(),this[_0x2da985(0x1e5)]=_0x23dd4f,this['_injector']=_0x3f44ae,this[_0x2da985(0x22e)]=_0x5df301,_0xdfb72d(this,_0x2da985(0x1a1),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0xae6926){const _0x354525=_0x273424;return this[_0x354525(0x1a1)][_0x354525(0x226)](_0xae6926)||await this['_startLiveShareCoordinator'](_0xae6926),this['_entities'][_0x354525(0x241)](_0xae6926);}['getLiveShareCoordinatorSync'](_0x214bc4){const _0x4dc3f9=_0x273424;var _0x498bd7;return(_0x498bd7=this[_0x4dc3f9(0x1a1)][_0x4dc3f9(0x241)](_0x214bc4))==null?null:_0x498bd7;}['_init'](){const _0x1ce1c6=_0x273424;this[_0x1ce1c6(0x1e5)][_0x1ce1c6(0x213)](_0x2783b2['UniverInstanceType'][_0x1ce1c6(0x215)])[_0x1ce1c6(0x167)]((0x0,_0x5b7387['takeUntil'])(this['dispose$']))['subscribe'](async _0x52caf6=>{const _0x384bec=_0x1ce1c6;let _0x4e192e=_0x52caf6[_0x384bec(0x15e)][_0x384bec(0x1fb)]();this['_entities'][_0x384bec(0x226)](_0x4e192e)||this[_0x384bec(0x1e3)](_0x4e192e);}),this[_0x1ce1c6(0x1e5)][_0x1ce1c6(0x20d)](_0x2783b2[_0x1ce1c6(0x16d)][_0x1ce1c6(0x215)])[_0x1ce1c6(0x167)]((0x0,_0x5b7387[_0x1ce1c6(0x1d3)])(this[_0x1ce1c6(0x21d)]))['subscribe'](_0x3cbba5=>{const _0x248716=_0x1ce1c6;let _0x3b3c3b=_0x3cbba5[_0x248716(0x1fb)](),_0x13c980=this[_0x248716(0x1a1)]['get'](_0x3b3c3b);_0x13c980==null||_0x13c980['dispose']();});}async[_0x273424(0x1e3)](_0x67b7a){const _0x24b56b=_0x273424;let _0x1f2c98=await this['_collabSessionService']['requireSession'](_0x67b7a),_0x3647db=this['_injector']['createInstance'](_0x5676f0,_0x67b7a,_0x1f2c98);return _0x3647db[_0x24b56b(0x15f)](),this[_0x24b56b(0x1a1)][_0x24b56b(0x191)](_0x67b7a,_0x3647db),_0x3647db;}};_0x403428=_0x5e495f([_0x5a79e4(0x0,_0x2783b2['IUniverInstanceService']),_0x5a79e4(0x1,(0x0,_0x2783b2[_0x273424(0x182)])(_0x2783b2[_0x273424(0x172)])),_0x5a79e4(0x2,(0x0,_0x2783b2[_0x273424(0x182)])(_0x5a0b21[_0x273424(0x163)]))],_0x403428);let _0x26310f=function(_0xccc439){const _0xce207c=_0x273424;return _0xccc439[_0xce207c(0x1c8)]=_0xce207c(0x192),_0xccc439[_0xce207c(0x199)]='idle',_0xccc439['FOLLOWING']=_0xce207c(0x24b),_0xccc439['NOT_FOLLOWING']='not-following',_0xccc439[_0xce207c(0x230)]=_0xce207c(0x22d),_0xccc439;}({}),_0x5676f0=class extends _0x2783b2['RxDisposable']{get[_0x273424(0x1e8)](){const _0xddf438=_0x273424;return this[_0xddf438(0x1af)]['getValue']();}constructor(_0x535ede,_0x53b117,_0x50a3c5,_0x59b59f,_0x46c480){const _0x1b04e6=_0x273424;super(),this[_0x1b04e6(0x1f8)]=_0x535ede,this[_0x1b04e6(0x18b)]=_0x53b117,this['_configService']=_0x50a3c5,this['_liveShareService']=_0x59b59f,this[_0x1b04e6(0x1ee)]=_0x46c480,_0xdfb72d(this,_0x1b04e6(0x1af),new _0x1b8c8a[(_0x1b04e6(0x1f4))](_0x1b04e6(0x248))),_0xdfb72d(this,'status$',this[_0x1b04e6(0x1af)][_0x1b04e6(0x160)]()),_0xdfb72d(this,'_init',!0x1),_0xdfb72d(this,_0x1b04e6(0x15c),null),_0xdfb72d(this,'_presenter',null);}[_0x273424(0x179)](){const _0x3ee777=_0x273424;var _0x52bf53;(_0x52bf53=this['_commandDisposable'])==null||_0x52bf53[_0x3ee777(0x179)](),this[_0x3ee777(0x1af)][_0x3ee777(0x233)](_0x3ee777(0x248)),this['_status$']['complete']();}[_0x273424(0x21f)](){const _0x32cf97=_0x273424;return this[_0x32cf97(0x1e8)];}[_0x273424(0x15f)](){const _0x5e25b9=_0x273424;this[_0x5e25b9(0x209)]||(this['_init']=!0x0,this['_collabSession'][_0x5e25b9(0x165)][_0x5e25b9(0x167)]((0x0,_0x5b7387[_0x5e25b9(0x1d3)])(this['dispose$']))[_0x5e25b9(0x183)](_0x573fef=>{const _0x4eaa9f=_0x5e25b9;switch(_0x573fef){case _0x5a0b21[_0x4eaa9f(0x22f)][_0x4eaa9f(0x1c8)]:this[_0x4eaa9f(0x23b)]();break;case _0x5a0b21[_0x4eaa9f(0x22f)][_0x4eaa9f(0x210)]:this[_0x4eaa9f(0x1df)]();break;default:}}),this[_0x5e25b9(0x18b)][_0x5e25b9(0x239)][_0x5e25b9(0x167)]((0x0,_0x5b7387[_0x5e25b9(0x1d3)])(this[_0x5e25b9(0x21d)]))[_0x5e25b9(0x183)](_0x240cc6=>{const _0x17c44d=_0x5e25b9;let {eventID:_0x145fb2}=_0x240cc6;switch(_0x145fb2){case _0x5e573b['CollaborationEvent'][_0x17c44d(0x1f3)]:this[_0x17c44d(0x23c)](_0x240cc6);break;case _0x5e573b[_0x17c44d(0x206)][_0x17c44d(0x1dd)]:this['_handleOperation'](_0x240cc6);break;case _0x5e573b[_0x17c44d(0x206)]['LIVESHARE_TERMINATE']:this[_0x17c44d(0x193)]();break;case _0x5e573b[_0x17c44d(0x206)][_0x17c44d(0x203)]:this[_0x17c44d(0x19e)](_0x240cc6);break;default:}}));}[_0x273424(0x1fc)](){const _0x11c287=_0x273424;this[_0x11c287(0x18b)][_0x11c287(0x17a)]({'eventID':_0x5e573b[_0x11c287(0x206)][_0x11c287(0x189)],'data':{'unitID':this['_unitID'],'userID':this[_0x11c287(0x18b)][_0x11c287(0x1f5)]()}},this['_unitID']);}[_0x273424(0x1ed)](){const _0x21cd36=_0x273424;this[_0x21cd36(0x1e8)]==='presenting'&&(this['_status$'][_0x21cd36(0x233)](_0x21cd36(0x248)),this[_0x21cd36(0x18b)][_0x21cd36(0x17a)]({'eventID':_0x5e573b[_0x21cd36(0x206)][_0x21cd36(0x1a2)],'data':{'unitID':this[_0x21cd36(0x1f8)]}},this[_0x21cd36(0x1f8)]));}[_0x273424(0x1a4)](){const _0x15a385=_0x273424;this[_0x15a385(0x1e8)]===_0x15a385(0x1a5)&&(this[_0x15a385(0x1af)][_0x15a385(0x233)]('following'),this[_0x15a385(0x1b0)]());}['stopFollowing'](){const _0x38fd9a=_0x273424;this[_0x38fd9a(0x1e8)]===_0x38fd9a(0x24b)&&this[_0x38fd9a(0x229)]();}[_0x273424(0x23c)](_0x485ee8){const _0x2c0b2b=_0x273424;let {presenter:_0x3ee4c8}=_0x485ee8['data'],_0x4c2c83=this[_0x2c0b2b(0x18b)]['getMemberID']();this[_0x2c0b2b(0x23a)]=_0x3ee4c8,_0x3ee4c8===_0x4c2c83?(this[_0x2c0b2b(0x229)](),this[_0x2c0b2b(0x222)]()):this[_0x2c0b2b(0x1e8)]!=='not-following'&&(this[_0x2c0b2b(0x174)](),this[_0x2c0b2b(0x1b0)]());}['_fetchOperations'](){const _0x2dce54=_0x273424;let _0x3235a1={'eventID':_0x5e573b[_0x2dce54(0x206)][_0x2dce54(0x1f9)]};this[_0x2dce54(0x18b)][_0x2dce54(0x17a)](_0x3235a1,this['_unitID']);}['_handleTerminate'](){const _0xc8ed0c=_0x273424;this['_presenter']=null,this[_0xc8ed0c(0x1e8)]!==_0xc8ed0c(0x22d)&&this[_0xc8ed0c(0x198)]();}['_handleNewChangeSets'](_0x53c920){const _0x117bbd=_0x273424;if(this['_status']===_0x117bbd(0x24b)&&this[_0x117bbd(0x23a)]===_0x53c920[_0x117bbd(0x24e)]['memberID']){let _0x53830a=(0x0,_0x5e573b['parseProtocolChangeset'])(_0x53c920['data'])['mutations'][_0x117bbd(0x166)]()[_0x117bbd(0x15b)](_0x9dc178=>_0x9dc178['id']===_0x5e4379[_0x117bbd(0x170)]['id']);if(_0x53830a){let _0x520775=_0x53830a[_0x117bbd(0x20c)][_0x117bbd(0x1a8)],_0x2745a0=_0x53830a[_0x117bbd(0x20c)][_0x117bbd(0x187)]['id'];setTimeout(()=>{const _0x404603=_0x117bbd;this[_0x404603(0x1ee)][_0x404603(0x1b2)](_0x5e4379[_0x404603(0x1cf)]['id'],{'unitId':_0x520775,'subUnitId':_0x2745a0},{'fromCollab':!0x0});});}}}[_0x273424(0x222)](){const _0x32db00=_0x273424;var _0x2bf9ad;(_0x2bf9ad=this[_0x32db00(0x15c)])==null||_0x2bf9ad['dispose'](),this[_0x32db00(0x1af)]['next'](_0x32db00(0x22d));let _0x34d554=new Map(),_0x4a2972=this[_0x32db00(0x15c)]=new _0x2783b2[(_0x32db00(0x16c))]();_0x4a2972['add']((0x0,_0x2783b2[_0x32db00(0x19f)])(()=>{const _0x3d876c=_0x32db00;_0x34d554['forEach'](({subject:_0x49a983,subscription:_0x263a6f})=>{_0x263a6f['unsubscribe'](),_0x49a983['complete']();}),_0x34d554[_0x3d876c(0x1ac)]();})),_0x4a2972[_0x32db00(0x168)](this[_0x32db00(0x1ee)][_0x32db00(0x246)](_0x2da30d=>{const _0x4889d8=_0x32db00;if(_0x2da30d['type']!==_0x2783b2[_0x4889d8(0x1ad)][_0x4889d8(0x1a0)]||!this['_liveShareService'][_0x4889d8(0x1c6)](_0x2da30d['id']))return;let {id:_0x2f9cae}=_0x2da30d,_0x5d59e0;if(_0x34d554[_0x4889d8(0x226)](_0x2f9cae))_0x5d59e0=_0x34d554['get'](_0x2f9cae)[_0x4889d8(0x1d6)];else{var _0x2459de;_0x5d59e0=new _0x1b8c8a['Subject']();let _0x10b04a=_0x5d59e0[_0x4889d8(0x167)]((0x0,_0x5b7387[_0x4889d8(0x232)])((_0x2459de=this[_0x4889d8(0x1b3)][_0x4889d8(0x227)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2459de,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4889d8(0x183)](_0x550870=>{const _0x310f3e=_0x4889d8;this[_0x310f3e(0x18b)][_0x310f3e(0x17a)]({'eventID':_0x5e573b[_0x310f3e(0x206)][_0x310f3e(0x1dd)],'data':{'unitID':this['_unitID'],'operations':{[_0x550870['id']]:{'id':_0x550870['id'],'params':JSON[_0x310f3e(0x1b7)](_0x550870['params'])}}}},this[_0x310f3e(0x1f8)]);});_0x34d554[_0x4889d8(0x191)](_0x2f9cae,{'subject':_0x5d59e0,'subscription':_0x10b04a});}_0x5d59e0[_0x4889d8(0x233)](_0x2da30d);})),this[_0x32db00(0x18a)][_0x32db00(0x17f)](this['_unitID'])['forEach'](_0xb5ea68=>this[_0x32db00(0x18b)][_0x32db00(0x17a)]({'eventID':_0x5e573b[_0x32db00(0x206)][_0x32db00(0x1dd)],'data':{'unitID':this[_0x32db00(0x1f8)],'operations':{[_0xb5ea68['id']]:{'id':_0xb5ea68['id'],'params':JSON['stringify'](_0xb5ea68[_0x32db00(0x20c)])}}}},this[_0x32db00(0x1f8)]));}['_stopPresenting'](){const _0x4d8408=_0x273424;var _0x174131;this[_0x4d8408(0x1af)][_0x4d8408(0x233)](_0x4d8408(0x248)),(_0x174131=this[_0x4d8408(0x15c)])==null||_0x174131[_0x4d8408(0x179)](),this[_0x4d8408(0x15c)]=null;}['_startFollowing'](){const _0x5a049d=_0x273424;var _0x1de7d5;(_0x1de7d5=this[_0x5a049d(0x15c)])==null||_0x1de7d5[_0x5a049d(0x179)](),this[_0x5a049d(0x1af)][_0x5a049d(0x233)](_0x5a049d(0x24b));}[_0x273424(0x198)](){const _0x1254e4=_0x273424;var _0x92d8ab;this[_0x1254e4(0x1af)]['next'](_0x1254e4(0x248)),(_0x92d8ab=this[_0x1254e4(0x15c)])==null||_0x92d8ab['dispose'](),this[_0x1254e4(0x15c)]=null;}['_stopFollowing'](){const _0x4fef42=_0x273424;var _0xe32ce0;this['_status$'][_0x4fef42(0x233)]('not-following'),(_0xe32ce0=this[_0x4fef42(0x15c)])==null||_0xe32ce0['dispose']();}[_0x273424(0x19d)](_0x2a2668){const _0x38ca5c=_0x273424;if([_0x38ca5c(0x22d),'not-following',_0x38ca5c(0x192)][_0x38ca5c(0x212)](this['_status'])||!_0x2a2668['data'][_0x38ca5c(0x1f1)]||_0x2a2668['data'][_0x38ca5c(0x1f1)]===this[_0x38ca5c(0x18b)][_0x38ca5c(0x1f5)]())return;this[_0x38ca5c(0x1e8)]===_0x38ca5c(0x248)&&this['_startFollowing']();let _0x8e2c7c=_0x2a2668['data'][_0x38ca5c(0x244)];Object[_0x38ca5c(0x162)](_0x8e2c7c)[_0x38ca5c(0x223)](_0xacf7fe=>{const _0x171edf=_0x38ca5c;this[_0x171edf(0x1ee)][_0x171edf(0x1b2)](_0xacf7fe['id'],_0xacf7fe[_0x171edf(0x20c)]?JSON[_0x171edf(0x218)](_0xacf7fe[_0x171edf(0x20c)]):null,{'fromCollab':!0x0});});}[_0x273424(0x23b)](){const _0x201d24=_0x273424;var _0x1888a2;this[_0x201d24(0x1af)][_0x201d24(0x233)](_0x201d24(0x192)),(_0x1888a2=this[_0x201d24(0x15c)])==null||_0x1888a2[_0x201d24(0x179)]();}['_handleOnline'](){const _0x4d1357=_0x273424;this[_0x4d1357(0x1af)]['next'](_0x4d1357(0x248)),this[_0x4d1357(0x245)]();}};_0x5676f0=_0x5e495f([_0x5a79e4(0x2,_0x2783b2[_0x273424(0x1d5)]),_0x5a79e4(0x3,(0x0,_0x2783b2[_0x273424(0x182)])(_0x46bf5a)),_0x5a79e4(0x4,_0x2783b2[_0x273424(0x1b9)])],_0x5676f0);function _0x3524e4({ref:_0x2c434a,..._0x148e3a}){const _0x2387ac=_0x273424;let {icon:_0x1d9570,id:_0xe2f939,className:_0x152532,extend:_0x5caad1,..._0x102baf}=_0x148e3a,_0x53b513=(_0x2387ac(0x164)+_0xe2f939+'\x20'+(_0x152532||''))[_0x2387ac(0x20e)](),_0x4c606a=(0x0,_0x28435e[_0x2387ac(0x1b5)])('_'+_0x22b3c5());return _0x6f7f1d(_0x1d9570,''+_0xe2f939,{'defIds':_0x1d9570[_0x2387ac(0x23e)],'idSuffix':_0x4c606a[_0x2387ac(0x23f)]},{'ref':_0x2c434a,'className':_0x53b513,..._0x102baf},_0x5caad1);}function _0x6f7f1d(_0x4f8c8a,_0x1b17fb,_0x2fc0fe,_0x18d145,_0x44a0a9){const _0x2b4411=_0x273424;return(0x0,_0x28435e[_0x2b4411(0x19c)])(_0x4f8c8a[_0x2b4411(0x17b)],{'key':_0x1b17fb,..._0x38cfc5(_0x4f8c8a,_0x2fc0fe,_0x44a0a9),..._0x18d145},(_0x3dca53(_0x4f8c8a,_0x2fc0fe)['children']||[])[_0x2b4411(0x178)]((_0x43c2c2,_0x506ef0)=>_0x6f7f1d(_0x43c2c2,_0x1b17fb+'-'+_0x4f8c8a[_0x2b4411(0x17b)]+'-'+_0x506ef0,_0x2fc0fe,void 0x0,_0x44a0a9)));}function _0x38cfc5(_0x522e55,_0x4050bd,_0x1db93f){const _0x5c0465=_0x273424;let _0x31e272={..._0x522e55[_0x5c0465(0x1c1)]};_0x1db93f!=null&&_0x1db93f[_0x5c0465(0x1bb)]&&_0x31e272[_0x5c0465(0x20f)]==='colorChannel1'&&(_0x31e272[_0x5c0465(0x20f)]=_0x1db93f[_0x5c0465(0x1bb)]),_0x1db93f!=null&&_0x1db93f[_0x5c0465(0x1bb)]&&_0x31e272['stroke']===_0x5c0465(0x1bb)&&(_0x31e272[_0x5c0465(0x204)]=_0x1db93f[_0x5c0465(0x1bb)]),_0x522e55[_0x5c0465(0x17b)]==='mask'&&_0x31e272['id']&&(_0x31e272['id']+=_0x4050bd[_0x5c0465(0x184)]),Object['entries'](_0x31e272)[_0x5c0465(0x223)](([_0x462403,_0x1e040b])=>{const _0x16323a=_0x5c0465;_0x462403===_0x16323a(0x1e2)&&typeof _0x1e040b==_0x16323a(0x20b)&&(_0x31e272[_0x462403]=_0x1e040b[_0x16323a(0x208)](/url\(#(.*)\)/,_0x16323a(0x1fa)+_0x4050bd[_0x16323a(0x184)]+')'));});let {defIds:_0x4d6aef}=_0x4050bd;return!_0x4d6aef||_0x4d6aef['length']===0x0?_0x31e272:(_0x522e55[_0x5c0465(0x17b)]===_0x5c0465(0x1ca)&&_0x31e272['xlink:href']&&(_0x31e272['xlink:href']+=_0x4050bd['idSuffix']),Object[_0x5c0465(0x188)](_0x31e272)[_0x5c0465(0x223)](([_0xa4fe4b,_0x542e72])=>{const _0x440ffe=_0x5c0465;typeof _0x542e72==_0x440ffe(0x20b)&&(_0x31e272[_0xa4fe4b]=_0x542e72['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4050bd[_0x440ffe(0x184)]+')'));}),_0x31e272);}function _0x3dca53(_0x16b57f,_0x53418f){const _0x36fd9d=_0x273424;var _0x2aa843;let {defIds:_0x11e931}=_0x53418f;return!_0x11e931||_0x11e931[_0x36fd9d(0x171)]===0x0?_0x16b57f:_0x16b57f[_0x36fd9d(0x17b)]===_0x36fd9d(0x216)&&(_0x2aa843=_0x16b57f[_0x36fd9d(0x21b)])!=null&&_0x2aa843[_0x36fd9d(0x171)]?{..._0x16b57f,'children':_0x16b57f[_0x36fd9d(0x21b)][_0x36fd9d(0x178)](_0x37593b=>typeof _0x37593b[_0x36fd9d(0x1c1)]['id']==_0x36fd9d(0x20b)&&_0x11e931&&_0x11e931['includes'](_0x37593b[_0x36fd9d(0x1c1)]['id'])?{..._0x37593b,'attrs':{..._0x37593b[_0x36fd9d(0x1c1)],'id':_0x37593b[_0x36fd9d(0x1c1)]['id']+_0x53418f[_0x36fd9d(0x184)]}}:_0x37593b)}:_0x16b57f;}function _0x22b3c5(){const _0x4d0e24=_0x273424;return Math[_0x4d0e24(0x197)]()[_0x4d0e24(0x1c7)](0x24)[_0x4d0e24(0x17c)](0x2,0x8);}_0x3524e4[_0x273424(0x18d)]=_0x273424(0x180);let _0x1c5187={'tag':_0x273424(0x1d8),'attrs':{'xmlns':_0x273424(0x1d4),'fill':_0x273424(0x1cc),'viewBox':_0x273424(0x1b6),'width':_0x273424(0x16b),'height':_0x273424(0x16b)},'children':[{'tag':_0x273424(0x1bf),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x273424(0x1bf),'attrs':{'fill':_0x273424(0x1de),'d':_0x273424(0x1ab),'fillRule':_0x273424(0x21e),'clipRule':'evenodd'}}]},_0x52df06=(0x0,_0x28435e[_0x273424(0x1bc)])(function(_0x1ca9bd,_0x14d00f){const _0x5b4a65=_0x273424;return(0x0,_0x28435e[_0x5b4a65(0x19c)])(_0x3524e4,Object['assign']({},_0x1ca9bd,{'id':'live-share-icon','ref':_0x14d00f,'icon':_0x1c5187}));});_0x52df06[_0x273424(0x18d)]=_0x273424(0x1d1);function _0x311b0f(){const _0x396b4c=_0x273424;let _0x862bea=(0x0,_0x59ae43[_0x396b4c(0x202)])(_0x403428),_0x392047=(0x0,_0x59ae43['useDependency'])(_0x2783b2[_0x396b4c(0x1e7)]),_0xab3042=(0x0,_0x59ae43['useObservable'])(()=>_0x392047[_0x396b4c(0x1d2)](_0x2783b2[_0x396b4c(0x16d)][_0x396b4c(0x215)]),void 0x0,!0x1,[]),[_0x4c4eb3,_0x194711]=(0x0,_0x28435e[_0x396b4c(0x1f6)])(null),[_0x4f042b,_0x22eb9e]=(0x0,_0x28435e[_0x396b4c(0x1f6)])(_0x396b4c(0x248)),_0x49fe41=(0x0,_0x28435e[_0x396b4c(0x1b5)])(null);return(0x0,_0x28435e[_0x396b4c(0x1bd)])(()=>(_0xab3042&&_0x862bea[_0x396b4c(0x161)](_0xab3042[_0x396b4c(0x1fb)]())[_0x396b4c(0x20a)](_0x284273=>{const _0x35418f=_0x396b4c;_0x194711(_0x284273),_0x49fe41[_0x35418f(0x23f)]=_0x284273['status$']['subscribe'](_0x115f23=>{_0x22eb9e(_0x115f23);});}),()=>{const _0x2efb92=_0x396b4c;var _0x516bba;(_0x516bba=_0x49fe41['current'])==null||_0x516bba[_0x2efb92(0x1ce)](),_0x49fe41[_0x2efb92(0x23f)]=null;}),[_0xab3042,_0x862bea]),_0x4c4eb3?(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x5342f5[_0x396b4c(0x196)],{'align':_0x396b4c(0x201),'disabled':_0x4f042b===_0x396b4c(0x192),'className':_0x396b4c(0x21a),'overlay':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x106f66,{'status':_0x4f042b,'coordinator':_0x4c4eb3}),'children':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x396b4c(0x15a),{'className':(0x0,_0x5342f5[_0x396b4c(0x1f7)])(_0x396b4c(0x177),{'univer-cursor-not-allowed':_0x4f042b===_0x396b4c(0x192),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f042b!==_0x396b4c(0x192)}),'type':_0x396b4c(0x15a),'children':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x52df06,{})})}):null;}function _0x106f66(_0xc74eb){const _0x49193d=_0x273424;let {status:_0x2aae41,coordinator:_0x32962f}=_0xc74eb;switch(_0x2aae41){case'idle':return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x286de5,{'coordinator':_0x32962f});case _0x49193d(0x24b):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x29942c,{'coordinator':_0x32962f});case _0x49193d(0x1a5):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x407838,{'coordinator':_0x32962f});case _0x49193d(0x192):return(0x0,_0x1fcf35['jsx'])(_0x39ad7c,{});case _0x49193d(0x22d):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x5c210c,{'coordinator':_0x32962f});default:return null;}}function _0x286de5(_0x4b02d8){const _0x3b1348=_0x273424;let {coordinator:_0x3b6f2f}=_0x4b02d8;return(0x0,_0x1fcf35['jsxs'])(_0x1fcf35[_0x3b1348(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x3b1348(0x176)])(_0x3b1348(0x1ef),{'className':_0x3b1348(0x173),'children':_0x3b1348(0x1ea)}),(0x0,_0x1fcf35[_0x3b1348(0x176)])(_0x5342f5['Button'],{'onClick':()=>_0x3b6f2f[_0x3b1348(0x1fc)](),'children':'Start'})]});}function _0x29942c(_0x2ba8da){const _0x498244=_0x273424;let {coordinator:_0x1ec19c}=_0x2ba8da;return(0x0,_0x1fcf35[_0x498244(0x16e)])(_0x1fcf35[_0x498244(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x498244(0x176)])(_0x498244(0x1ef),{'className':_0x498244(0x173),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,_0x1fcf35['jsx'])(_0x5342f5[_0x498244(0x219)],{'onClick':()=>_0x1ec19c[_0x498244(0x190)](),'children':_0x498244(0x1c3)})]});}function _0x407838(_0x5c0d57){const _0x41c793=_0x273424;let {coordinator:_0x5beb48}=_0x5c0d57;return(0x0,_0x1fcf35['jsxs'])(_0x1fcf35[_0x41c793(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x41c793(0x176)])(_0x41c793(0x1ef),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x41c793(0x1e6)}),(0x0,_0x1fcf35[_0x41c793(0x176)])(_0x5342f5[_0x41c793(0x219)],{'variant':_0x41c793(0x1d9),'onClick':()=>_0x5beb48[_0x41c793(0x1a4)](),'children':_0x41c793(0x1be)})]});}function _0x5c210c(_0x43ab50){const _0x4efef9=_0x273424;let {coordinator:_0x260281}=_0x43ab50;return(0x0,_0x1fcf35[_0x4efef9(0x16e)])(_0x1fcf35[_0x4efef9(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x4efef9(0x176)])('div',{'className':_0x4efef9(0x173),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,_0x1fcf35[_0x4efef9(0x176)])(_0x5342f5['Button'],{'variant':_0x4efef9(0x17d),'onClick':()=>_0x260281[_0x4efef9(0x1ed)](),'children':'Stop\x20presenting'})]});}function _0x39ad7c(){const _0x4bdbc3=_0x273424;return(0x0,_0x1fcf35[_0x4bdbc3(0x176)])(_0x1fcf35[_0x4bdbc3(0x1ae)],{'children':_0x4bdbc3(0x1b8)});}let _0x1107e1=class extends _0x2783b2['Disposable']{constructor(_0x1b7eae,_0x5a2640){const _0x4370f9=_0x273424;super(),this[_0x4370f9(0x1a3)]=_0x1b7eae,this[_0x4370f9(0x186)]=_0x5a2640,this['_mountLiveShare']();}[_0x273424(0x1fe)](){const _0x4339a6=_0x273424;this[_0x4339a6(0x217)](this[_0x4339a6(0x186)]['registerComponent'](_0x59ae43['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,_0x59ae43[_0x4339a6(0x1a7)])(_0x311b0f,this[_0x4339a6(0x1a3)])));}};_0x1107e1=_0x5e495f([_0x5a79e4(0x0,(0x0,_0x2783b2['Inject'])(_0x2783b2['Injector'])),_0x5a79e4(0x1,_0x59ae43[_0x273424(0x185)])],_0x1107e1);var _0x3a2515=_0x273424(0x235),_0x37d115=_0x273424(0x1ba);let _0x3d365b={},_0xc5543f=class extends _0x2783b2[_0x273424(0x1f2)]{constructor(_0x5f2e09){const _0x1fb1ed=_0x273424;super(),this['_liveShareService']=_0x5f2e09,this[_0x1fb1ed(0x209)]();}['_init'](){const _0x5b096e=_0x273424;[_0x149c26[_0x5b096e(0x1c9)]['id'],_0x149c26['SetScrollOperation']['id'],_0x5e4379['SetWorksheetActiveOperation']['id']][_0x5b096e(0x223)](_0x1dfa27=>{const _0x1e504e=_0x5b096e;this['disposeWithMe'](this[_0x1e504e(0x18a)][_0x1e504e(0x231)](_0x1dfa27));});}};_0xc5543f=_0x5e495f([_0x5a79e4(0x0,(0x0,_0x2783b2[_0x273424(0x182)])(_0x46bf5a))],_0xc5543f);let _0x36e118=class extends _0x2783b2[_0x273424(0x22b)]{constructor(_0x367d3c=_0x3d365b,_0x40772b,_0x2fd5ee){const _0x5665b0=_0x273424;super(),this[_0x5665b0(0x249)]=_0x367d3c,this[_0x5665b0(0x1a3)]=_0x40772b,this['_configService']=_0x2fd5ee;let {..._0x1d1dc6}=(0x0,_0x2783b2[_0x5665b0(0x205)])({},_0x3d365b,this[_0x5665b0(0x249)]);this['_configService'][_0x5665b0(0x169)](_0x5665b0(0x211),_0x1d1dc6);}['onStarting'](){const _0x4d26d8=_0x273424;(0x0,_0x2783b2[_0x4d26d8(0x18f)])(this[_0x4d26d8(0x1a3)],(0x0,_0x2783b2[_0x4d26d8(0x1d7)])([[_0x46bf5a],[_0x403428],[_0xc5543f],[_0x1107e1]],this[_0x4d26d8(0x249)]['override'])),(0x0,_0x2783b2[_0x4d26d8(0x1db)])(this[_0x4d26d8(0x1a3)],[[_0xc5543f]]);}[_0x273424(0x18c)](){const _0x2ccdaa=_0x273424;(0x0,_0x2783b2[_0x2ccdaa(0x1db)])(this[_0x2ccdaa(0x1a3)],[[_0x1107e1]]);}};_0xdfb72d(_0x36e118,_0x273424(0x1c2),_0x2783b2[_0x273424(0x16d)]['UNIVER_UNKNOWN']),_0xdfb72d(_0x36e118,_0x273424(0x23d),_0x273424(0x236)),_0xdfb72d(_0x36e118,_0x273424(0x24a),_0x3a2515),_0xdfb72d(_0x36e118,_0x273424(0x21c),_0x37d115),_0x36e118=_0x5e495f([(0x0,_0x2783b2[_0x273424(0x225)])(_0x5a0b21[_0x273424(0x1ff)]),_0x5a79e4(0x1,(0x0,_0x2783b2[_0x273424(0x182)])(_0x2783b2[_0x273424(0x172)])),_0x5a79e4(0x2,_0x2783b2['IConfigService'])],_0x36e118),Object[_0x273424(0x228)](_0x522c9e,_0x273424(0x1e9),{'enumerable':!0x0,'get':function(){return _0x1107e1;}}),_0x522c9e['LiveShare']=_0x311b0f,Object[_0x273424(0x228)](_0x522c9e,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x403428;}}),Object[_0x273424(0x228)](_0x522c9e,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0x5676f0;}}),_0x522c9e[_0x273424(0x240)]=_0x46bf5a,_0x522c9e[_0x273424(0x175)]=_0x26310f,Object[_0x273424(0x228)](_0x522c9e,_0x273424(0x242),{'enumerable':!0x0,'get':function(){return _0x36e118;}});}));function _0x3522(_0xaa3579,_0xb9fdc){_0xaa3579=_0xaa3579-0x15a;const _0x3b8f3a=_0x3b8f();let _0x3522e6=_0x3b8f3a[_0xaa3579];return _0x3522e6;}function _0x3b8f(){const _0xd5f17c=['LiveShareStatus','jsx','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','dispose','send','tag','substring','default','react/jsx-runtime','getInitialStates','UniverIcon','@univerjs-pro/collaboration','Inject','subscribe','idSuffix','IUIPartsService','_uiPartsService','sheet','entries','LIVESHARE_REQUEST_HOST','_liveShareService','_collabSession','onRendered','displayName','_sharedOperations','registerDependencies','stopFollowing','set','offline','_handleTerminate','call','RxDisposable','Dropdown','random','_beIdle','IDLE','2272872ZvRerR','3065GgELXd','createElement','_handleOperation','_handleNewChangeSets','toDisposable','OPERATION','_entities','LIVESHARE_TERMINATE','_injector','startFollowing','not-following','UniverUi','connectInjector','unitId','object','1213452nWkyDw','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','clear','CommandType','Fragment','_status$','_startFollowing','getOwnPropertyDescriptor','executeCommand','_configService','function','useRef','0\x200\x2017\x2017','stringify','You\x27are\x20offline.','ICommandService','1.0.0-alpha.1','colorChannel1','forwardRef','useEffect','Start\x20following','path','React','attrs','type','Stop\x20following','UniverDesign','622699KtyZXk','shouldShareOperation','toString','OFFLINE','SetZoomRatioOperation','use','@univerjs/sheets-ui','none','decorate','unsubscribe','SetWorksheetActiveOperation','Module','LiveShareIcon','getCurrentTypeOfUnit$','takeUntil','http://www.w3.org/2000/svg','IConfigService','subject','mergeOverrideWithDependencies','svg','text','UniverSheetsUi','touchDependencies','442977rhqcGt','LIVESHARE_OPERATION','currentColor','_handleOnline','860oGzjyB','180fRMqvC','mask','_startLiveShareCoordinator','_reporters','_univerInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','IUniverInstanceService','_status','DesktopLiveShareController','Present\x20this\x20document','UniverCore','toPrimitive','stopPresenting','_commandService','div','@univerjs/sheets','presenter','Disposable','LIVESHARE_NEW_HOST','BehaviorSubject','getMemberID','useState','clsx','_unitID','LIVESHARE_FETCH_OPERATIONS','url(#$1','getUnitId','tryStartPresenting','64408wrVjFm','_mountLiveShare','UniverCollaborationClientPlugin','@univerjs/design','end','useDependency','NEW_CHANGESETS','stroke','merge','CollaborationEvent','UniverSheets','replace','_init','then','string','params','getTypeOfUnitDisposed$','trim','fill','ONLINE','live-share.config','includes','getTypeOfUnitAdded$','UniverProCollaborationClient','UNIVER_SHEET','defs','disposeWithMe','parse','Button','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','children','version','dispose$','evenodd','getStatus','@univerjs/core','symbol','_startPresenting','forEach','registerInitialStateReporter','DependentOn','has','getConfig','defineProperty','_stopFollowing','UniverProLiveShare','Plugin','@univerjs/ui','presenting','_collabSessionService','SessionStatus','PRESENTING','registerSharedOperation','throttleTime','next','constructor','@univerjs-pro/live-share','UNIVER_LIVE_SHARE_PLUGIN','UniverProCollaboration','from','event$','_presenter','_handleOffline','_handleNewHost','pluginName','defIds','current','LiveShareService','get','UniverLiveSharePlugin','react','operations','_fetchOperations','onCommandExecuted','16022180ExxjrY','idle','_config','packageName','following','2ZUVkIb','toStringTag','data','button','find','_commandDisposable','rxjs','unit','init','asObservable','getLiveShareCoordinator','values','CollaborationSessionService','univerjs-icon\x20univerjs-icon-','sessionStatus$','reverse','pipe','add','setConfig','prototype','1em','DisposableCollection','UniverInstanceType','jsxs','@univerjs-pro/collaboration-client','InsertSheetMutation','length','Injector','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting'];_0x3b8f=function(){return _0xd5f17c;};return _0x3b8f();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.1",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -62,14 +62,14 @@
62
62
  "rxjs": ">=7.0.0"
63
63
  },
64
64
  "dependencies": {
65
- "@univerjs/icons": "1.12.0",
66
- "@univerjs-pro/collaboration": "1.0.0-alpha.0",
67
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.0",
68
- "@univerjs/core": "1.0.0-alpha.0",
69
- "@univerjs/sheets": "1.0.0-alpha.0",
70
- "@univerjs/sheets-ui": "1.0.0-alpha.0",
71
- "@univerjs/design": "1.0.0-alpha.0",
72
- "@univerjs/ui": "1.0.0-alpha.0"
65
+ "@univerjs/icons": "1.14.0",
66
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.1",
67
+ "@univerjs-pro/collaboration": "1.0.0-alpha.1",
68
+ "@univerjs/core": "1.0.0-alpha.1",
69
+ "@univerjs/design": "1.0.0-alpha.1",
70
+ "@univerjs/sheets-ui": "1.0.0-alpha.1",
71
+ "@univerjs/ui": "1.0.0-alpha.1",
72
+ "@univerjs/sheets": "1.0.0-alpha.1"
73
73
  },
74
74
  "devDependencies": {
75
75
  "postcss": "^8.5.15",
@@ -78,8 +78,8 @@
78
78
  "tailwindcss": "3.4.17",
79
79
  "typescript": "^6.0.3",
80
80
  "vitest": "^4.1.9",
81
- "@univerjs-infra/shared": "1.0.0-alpha.0",
82
- "@univerjs/protocol": "1.0.0-alpha.0"
81
+ "@univerjs-infra/shared": "1.0.0-alpha.1",
82
+ "@univerjs/protocol": "1.0.0-alpha.1"
83
83
  },
84
84
  "scripts": {
85
85
  "test": "vitest run",