@univerjs-pro/live-share 1.0.0-beta.0 → 1.0.0-beta.2

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
- function _0x2d48(){const _0x485c3d=['UNIVER_SHEET','getStatus','tryStartPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20active\x20workbook\x20found.','1950174sctDOU','function','getLiveShareStatus','startPresenting','2699752RjgTji','getLiveShareCoordinatorSync','3BLGJbK','iterator','LiveShareStatus','_liveShareController','call','symbol','IDLE','UniverInstanceType','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','3673592LRNmCz','startFollowing','LiveShareController','getUnitId','extend','684935fxTGQb','LiveShareStatusEnum','object','FUniver','FEnum','6197805lPOPtJ','prototype','112SjFKfz','defineProperty','toPrimitive','get','stopPresenting','427218VdsIDW','getCurrentUnitOfType','string','2009222EzbZhu','IUniverInstanceService','constructor','_injector','_initialize'];_0x2d48=function(){return _0x485c3d;};return _0x2d48();}const _0x25ba5b=_0x300a;(function(_0x35d7db,_0x1f86e3){const _0xfe3ba7=_0x300a,_0x762fc1=_0x35d7db();while(!![]){try{const _0x5689ec=parseInt(_0xfe3ba7(0xd9))/0x1+parseInt(_0xfe3ba7(0xe8))/0x2+parseInt(_0xfe3ba7(0xf8))/0x3*(-parseInt(_0xfe3ba7(0xf6))/0x4)+-parseInt(_0xfe3ba7(0xde))/0x5+-parseInt(_0xfe3ba7(0xe5))/0x6*(-parseInt(_0xfe3ba7(0xe0))/0x7)+-parseInt(_0xfe3ba7(0xd4))/0x8+parseInt(_0xfe3ba7(0xf2))/0x9;if(_0x5689ec===_0x1f86e3)break;else _0x762fc1['push'](_0x762fc1['shift']());}catch(_0x227f25){_0x762fc1['push'](_0x762fc1['shift']());}}}(_0x2d48,0xa4026));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x2b9883){'@babel/helpers - typeof';const _0x474ad9=_0x300a;return r=typeof Symbol==_0x474ad9(0xf3)&&typeof Symbol[_0x474ad9(0xf9)]==_0x474ad9(0xfd)?function(_0xd4329f){return typeof _0xd4329f;}:function(_0xf43c00){const _0x54dd70=_0x474ad9;return _0xf43c00&&typeof Symbol=='function'&&_0xf43c00[_0x54dd70(0xea)]===Symbol&&_0xf43c00!==Symbol[_0x54dd70(0xdf)]?_0x54dd70(0xfd):typeof _0xf43c00;},r(_0x2b9883);}function i(_0x319100,_0xc122ae){const _0x3d510f=_0x300a;if(r(_0x319100)!=_0x3d510f(0xdb)||!_0x319100)return _0x319100;var _0xe527cc=_0x319100[Symbol[_0x3d510f(0xe2)]];if(_0xe527cc!==void 0x0){var _0x13369b=_0xe527cc[_0x3d510f(0xfc)](_0x319100,_0xc122ae||'default');if(r(_0x13369b)!='object')return _0x13369b;throw TypeError(_0x3d510f(0xf0));}return(_0xc122ae===_0x3d510f(0xe7)?String:Number)(_0x319100);}function a(_0x429a67){const _0x28decd=_0x300a;var _0x413f72=i(_0x429a67,_0x28decd(0xe7));return r(_0x413f72)=='symbol'?_0x413f72:_0x413f72+'';}function o(_0x3460b3,_0x18a2eb,_0x5f399d){const _0x58afd6=_0x300a;return(_0x18a2eb=a(_0x18a2eb))in _0x3460b3?Object[_0x58afd6(0xe1)](_0x3460b3,_0x18a2eb,{'value':_0x5f399d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3460b3[_0x18a2eb]=_0x5f399d,_0x3460b3;}var s=class extends n['FUniver']{constructor(..._0x1266ba){const _0x3f5020=_0x300a;super(..._0x1266ba),o(this,_0x3f5020(0xfb),void 0x0);}[_0x25ba5b(0xec)](_0x376adf){const _0x689a1=_0x25ba5b;this[_0x689a1(0xfb)]=_0x376adf[_0x689a1(0xe3)](e[_0x689a1(0xd6)]);}[_0x25ba5b(0xf4)](){const _0x401c61=_0x25ba5b;let _0x4e420d=this[_0x401c61(0xeb)][_0x401c61(0xe3)](t[_0x401c61(0xe9)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x401c61(0xed)]);if(!_0x4e420d)throw Error(_0x401c61(0xf1));let _0x3a2b8e=_0x4e420d[_0x401c61(0xd7)](),_0x11975b=this[_0x401c61(0xfb)]['getLiveShareCoordinatorSync'](_0x3a2b8e);return(_0x11975b==null?void 0x0:_0x11975b[_0x401c61(0xee)]())??e[_0x401c61(0xfa)][_0x401c61(0xfe)];}['startFollowing'](){const _0x1d02c3=_0x25ba5b;let _0x2fd98b=this['_injector'][_0x1d02c3(0xe3)](t[_0x1d02c3(0xe9)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x1d02c3(0xed)]);if(!_0x2fd98b)throw Error(_0x1d02c3(0xf1));let _0x347cb0=_0x2fd98b[_0x1d02c3(0xd7)](),_0x437f16=this['_liveShareController'][_0x1d02c3(0xf7)](_0x347cb0);if(!_0x437f16)throw Error(_0x1d02c3(0x100));_0x437f16[_0x1d02c3(0xd5)]();}['stopFollowing'](){const _0x39f678=_0x25ba5b;let _0x5d8a0f=this['_injector'][_0x39f678(0xe3)](t[_0x39f678(0xe9)])[_0x39f678(0xe6)](t[_0x39f678(0xff)]['UNIVER_SHEET']);if(!_0x5d8a0f)throw Error(_0x39f678(0xf1));let _0x568244=_0x5d8a0f[_0x39f678(0xd7)](),_0x1a05c6=this[_0x39f678(0xfb)]['getLiveShareCoordinatorSync'](_0x568244);if(!_0x1a05c6)throw Error(_0x39f678(0x100));_0x1a05c6['stopFollowing']();}[_0x25ba5b(0xf5)](){const _0x1561f8=_0x25ba5b;let _0x4bc511=this[_0x1561f8(0xeb)][_0x1561f8(0xe3)](t[_0x1561f8(0xe9)])[_0x1561f8(0xe6)](t[_0x1561f8(0xff)]['UNIVER_SHEET']);if(!_0x4bc511)throw Error(_0x1561f8(0xf1));let _0xd43666=_0x4bc511[_0x1561f8(0xd7)](),_0x475590=this[_0x1561f8(0xfb)][_0x1561f8(0xf7)](_0xd43666);if(!_0x475590)throw Error(_0x1561f8(0x100));_0x475590[_0x1561f8(0xef)]();}[_0x25ba5b(0xe4)](){const _0xd4c285=_0x25ba5b;let _0x4c12ee=this[_0xd4c285(0xeb)][_0xd4c285(0xe3)](t[_0xd4c285(0xe9)])[_0xd4c285(0xe6)](t[_0xd4c285(0xff)]['UNIVER_SHEET']);if(!_0x4c12ee)throw Error(_0xd4c285(0xf1));let _0x3c3f34=_0x4c12ee[_0xd4c285(0xd7)](),_0xc02579=this[_0xd4c285(0xfb)]['getLiveShareCoordinatorSync'](_0x3c3f34);if(!_0xc02579)throw Error(_0xd4c285(0x100));_0xc02579['stopPresenting']();}};function _0x300a(_0x166635,_0x264764){_0x166635=_0x166635-0xd4;const _0x2d487d=_0x2d48();let _0x300a01=_0x2d487d[_0x166635];return _0x300a01;}n[_0x25ba5b(0xdc)][_0x25ba5b(0xd8)](s);var c=class extends n[_0x25ba5b(0xdd)]{get[_0x25ba5b(0xda)](){return e['LiveShareStatus'];}};n[_0x25ba5b(0xdd)][_0x25ba5b(0xd8)](c);
1
+ const _0x125e7a=_0x8279;(function(_0x2848de,_0xcc7645){const _0x1aba07=_0x8279,_0x1e2f53=_0x2848de();while(!![]){try{const _0xe1b4d=parseInt(_0x1aba07(0xa3))/0x1*(-parseInt(_0x1aba07(0x8e))/0x2)+-parseInt(_0x1aba07(0xb0))/0x3+parseInt(_0x1aba07(0x97))/0x4*(parseInt(_0x1aba07(0xb4))/0x5)+parseInt(_0x1aba07(0x93))/0x6+-parseInt(_0x1aba07(0x9d))/0x7+-parseInt(_0x1aba07(0xad))/0x8+parseInt(_0x1aba07(0xa7))/0x9;if(_0xe1b4d===_0xcc7645)break;else _0x1e2f53['push'](_0x1e2f53['shift']());}catch(_0x519e48){_0x1e2f53['push'](_0x1e2f53['shift']());}}}(_0x9a44,0x6fc67));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function _0x9a44(){const _0x1824f8=['tryStartPresenting','function','IDLE','4150194AgyCpW','FUniver','UniverInstanceType','IUniverInstanceService','310264mKxjHN','_injector','extend','iterator','default','FEnum','3283245JFgDTj','stopFollowing','LiveShareStatusEnum','defineProperty','No\x20active\x20workbook\x20found.','LiveShareController','478LtKYDA','symbol','getUnitId','startFollowing','20581200CmZloi','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startPresenting','string','getLiveShareCoordinatorSync','getCurrentUnitOfType','3575608dIeYIS','UNIVER_SHEET','stopPresenting','2600340aJMTgh','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','_liveShareController','5MlDrRC','object','constructor','LiveShareStatus','3412yxcJJJ','get'];_0x9a44=function(){return _0x1824f8;};return _0x9a44();}function r(_0x53791b){'@babel/helpers - typeof';const _0x3f08cc=_0x8279;return r=typeof Symbol=='function'&&typeof Symbol[_0x3f08cc(0x9a)]==_0x3f08cc(0xa4)?function(_0x528768){return typeof _0x528768;}:function(_0x26798c){const _0x59a55d=_0x3f08cc;return _0x26798c&&typeof Symbol==_0x59a55d(0x91)&&_0x26798c[_0x59a55d(0xb6)]===Symbol&&_0x26798c!==Symbol['prototype']?_0x59a55d(0xa4):typeof _0x26798c;},r(_0x53791b);}function _0x8279(_0x3157b1,_0x3c50df){_0x3157b1=_0x3157b1-0x8e;const _0x9a44f7=_0x9a44();let _0x827956=_0x9a44f7[_0x3157b1];return _0x827956;}function i(_0x3aa863,_0x20b2fc){const _0x3c9de0=_0x8279;if(r(_0x3aa863)!=_0x3c9de0(0xb5)||!_0x3aa863)return _0x3aa863;var _0x5d2653=_0x3aa863[Symbol['toPrimitive']];if(_0x5d2653!==void 0x0){var _0x58b162=_0x5d2653['call'](_0x3aa863,_0x20b2fc||_0x3c9de0(0x9b));if(r(_0x58b162)!=_0x3c9de0(0xb5))return _0x58b162;throw TypeError(_0x3c9de0(0xa8));}return(_0x20b2fc===_0x3c9de0(0xaa)?String:Number)(_0x3aa863);}function a(_0x175672){const _0x45b42c=_0x8279;var _0x257d66=i(_0x175672,_0x45b42c(0xaa));return r(_0x257d66)==_0x45b42c(0xa4)?_0x257d66:_0x257d66+'';}function o(_0x5cfc04,_0x17c019,_0x517547){const _0x5c5dd9=_0x8279;return(_0x17c019=a(_0x17c019))in _0x5cfc04?Object[_0x5c5dd9(0xa0)](_0x5cfc04,_0x17c019,{'value':_0x517547,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cfc04[_0x17c019]=_0x517547,_0x5cfc04;}var s=class extends n[_0x125e7a(0x94)]{constructor(..._0x3a0165){const _0x5f1112=_0x125e7a;super(..._0x3a0165),o(this,_0x5f1112(0xb3),void 0x0);}['_initialize'](_0x7ba0b9){const _0x49da85=_0x125e7a;this['_liveShareController']=_0x7ba0b9[_0x49da85(0x8f)](e[_0x49da85(0xa2)]);}[_0x125e7a(0xb2)](){const _0x42bc4b=_0x125e7a;let _0x138c81=this[_0x42bc4b(0x98)][_0x42bc4b(0x8f)](t[_0x42bc4b(0x96)])[_0x42bc4b(0xac)](t[_0x42bc4b(0x95)][_0x42bc4b(0xae)]);if(!_0x138c81)throw Error(_0x42bc4b(0xa1));let _0x32fe54=_0x138c81['getUnitId'](),_0x37d245=this[_0x42bc4b(0xb3)][_0x42bc4b(0xab)](_0x32fe54);return(_0x37d245==null?void 0x0:_0x37d245['getStatus']())??e[_0x42bc4b(0xb7)][_0x42bc4b(0x92)];}[_0x125e7a(0xa6)](){const _0x3dbc40=_0x125e7a;let _0xc49314=this[_0x3dbc40(0x98)][_0x3dbc40(0x8f)](t['IUniverInstanceService'])[_0x3dbc40(0xac)](t[_0x3dbc40(0x95)]['UNIVER_SHEET']);if(!_0xc49314)throw Error(_0x3dbc40(0xa1));let _0x42f986=_0xc49314[_0x3dbc40(0xa5)](),_0x173f61=this[_0x3dbc40(0xb3)][_0x3dbc40(0xab)](_0x42f986);if(!_0x173f61)throw Error(_0x3dbc40(0xb1));_0x173f61[_0x3dbc40(0xa6)]();}[_0x125e7a(0x9e)](){const _0xf08b73=_0x125e7a;let _0x339dcc=this['_injector'][_0xf08b73(0x8f)](t[_0xf08b73(0x96)])[_0xf08b73(0xac)](t[_0xf08b73(0x95)][_0xf08b73(0xae)]);if(!_0x339dcc)throw Error('No\x20active\x20workbook\x20found.');let _0x439a3a=_0x339dcc[_0xf08b73(0xa5)](),_0xfc28f7=this[_0xf08b73(0xb3)][_0xf08b73(0xab)](_0x439a3a);if(!_0xfc28f7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xfc28f7[_0xf08b73(0x9e)]();}[_0x125e7a(0xa9)](){const _0x2b8db4=_0x125e7a;let _0x346022=this[_0x2b8db4(0x98)][_0x2b8db4(0x8f)](t[_0x2b8db4(0x96)])[_0x2b8db4(0xac)](t[_0x2b8db4(0x95)][_0x2b8db4(0xae)]);if(!_0x346022)throw Error(_0x2b8db4(0xa1));let _0xd135ae=_0x346022[_0x2b8db4(0xa5)](),_0x405d17=this[_0x2b8db4(0xb3)]['getLiveShareCoordinatorSync'](_0xd135ae);if(!_0x405d17)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x405d17[_0x2b8db4(0x90)]();}['stopPresenting'](){const _0x44f117=_0x125e7a;let _0x20cd0d=this[_0x44f117(0x98)][_0x44f117(0x8f)](t[_0x44f117(0x96)])[_0x44f117(0xac)](t[_0x44f117(0x95)]['UNIVER_SHEET']);if(!_0x20cd0d)throw Error('No\x20active\x20workbook\x20found.');let _0x4792c8=_0x20cd0d[_0x44f117(0xa5)](),_0x5e8763=this[_0x44f117(0xb3)][_0x44f117(0xab)](_0x4792c8);if(!_0x5e8763)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5e8763[_0x44f117(0xaf)]();}};n[_0x125e7a(0x94)]['extend'](s);var c=class extends n[_0x125e7a(0x9c)]{get[_0x125e7a(0x9f)](){return e['LiveShareStatus'];}};n['FEnum'][_0x125e7a(0x99)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5d87a9=_0x22d3;(function(_0x665d81,_0x4d41af){const _0x2bdb02=_0x22d3,_0x5a0136=_0x665d81();while(!![]){try{const _0x3e09aa=parseInt(_0x2bdb02(0x1e9))/0x1+-parseInt(_0x2bdb02(0x17d))/0x2*(parseInt(_0x2bdb02(0x157))/0x3)+-parseInt(_0x2bdb02(0x1a9))/0x4+parseInt(_0x2bdb02(0x1c7))/0x5+-parseInt(_0x2bdb02(0x1fb))/0x6*(parseInt(_0x2bdb02(0x15a))/0x7)+-parseInt(_0x2bdb02(0x1b1))/0x8+parseInt(_0x2bdb02(0x1b2))/0x9;if(_0x3e09aa===_0x4d41af)break;else _0x5a0136['push'](_0x5a0136['shift']());}catch(_0xe17e18){_0x5a0136['push'](_0x5a0136['shift']());}}}(_0xb6f7,0x29ab5),Object[_0x5d87a9(0x1a0)](exports,Symbol[_0x5d87a9(0x1cc)],{'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-pro/license'),s=require('@univerjs/sheets-ui'),c=require('@univerjs/ui'),l=require('@univerjs/design'),u=require('@univerjs/icons'),d=require('react'),f=require('react/jsx-runtime');function p(_0x3a0eaf){'@babel/helpers - typeof';const _0x23abf8=_0x5d87a9;return p=typeof Symbol==_0x23abf8(0x1ad)&&typeof Symbol[_0x23abf8(0x1c5)]==_0x23abf8(0x196)?function(_0x436c07){return typeof _0x436c07;}:function(_0x5afb64){const _0xa9c7b0=_0x23abf8;return _0x5afb64&&typeof Symbol==_0xa9c7b0(0x1ad)&&_0x5afb64[_0xa9c7b0(0x159)]===Symbol&&_0x5afb64!==Symbol[_0xa9c7b0(0x162)]?_0xa9c7b0(0x196):typeof _0x5afb64;},p(_0x3a0eaf);}function m(_0x1385e4,_0x4c46c6){const _0x191e61=_0x5d87a9;if(p(_0x1385e4)!=_0x191e61(0x184)||!_0x1385e4)return _0x1385e4;var _0x5865a3=_0x1385e4[Symbol[_0x191e61(0x1c6)]];if(_0x5865a3!==void 0x0){var _0x3757f2=_0x5865a3['call'](_0x1385e4,_0x4c46c6||_0x191e61(0x1ca));if(p(_0x3757f2)!=_0x191e61(0x184))return _0x3757f2;throw TypeError(_0x191e61(0x180));}return(_0x4c46c6===_0x191e61(0x1c9)?String:Number)(_0x1385e4);}function h(_0x3e5495){const _0x171e48=_0x5d87a9;var _0x4d8bc4=m(_0x3e5495,_0x171e48(0x1c9));return p(_0x4d8bc4)=='symbol'?_0x4d8bc4:_0x4d8bc4+'';}function _0xb6f7(){const _0x57951d=['getConfig','Injector','onRendered','stopFollowing','FOLLOWING','NEW_CHANGESETS','registerDependencies','asObservable','DisposableCollection','connectInjector','6rGIHNt','Button','constructor','553vdzdUe','Disposable','includes','not-following','_status','UniverLiveSharePlugin','disposeWithMe','Stop\x20following','prototype','_config','OPERATION','jsx','OFFLINE','UniverInstanceType','clear','_handleTerminate','set','delete','tryStartPresenting','_beIdle','_commandDisposable','UNIVER_SHEET','pluginName','getMemberID','stopPresenting','SetScrollOperation','button','find','get','presenter','add','IUniverInstanceService','CollaborationEvent','useMemo','_handleNewHost','159914pCUIdt','version','status$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','init','setConfig','shouldShareOperation','object','You\x27re\x20presenting\x20the\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','UNIVER_UNKNOWN','parseProtocolChangeset','next','getValue','UniverCollaborationClientPlugin','_handleOnline','stringify','data','CommandType','getLiveShareCoordinator','reverse','unitId','_collabSessionService','takeUntil','symbol','You\x27are\x20offline.','offline','getLiveShareCoordinatorSync','unit','idle','LIVESHARE_NEW_HOST','RxDisposable','from','getStatus','defineProperty','decorate','CollaborationSessionService','ICommandService','_entities','Start\x20following','sheet','ONLINE','registerSharedOperation','483368kzPyBs','_commandService','Stop\x20presenting','Subject','function','SetWorksheetActiveOperation','end','You\x27re\x20not\x20following\x20the\x20presenter','907328uDagjr','2178639brORgO','send','has','_liveShareService','LiveShareStatus','forEach','IConfigService','startFollowing','1.0.0-beta.0','getUnitId','type','toDisposable','Dropdown','params','length','requireSession','live-share.config','executeCommand','defer','iterator','toPrimitive','1118765XGbZsc','text','string','default','_univerInstanceService','toStringTag','operations','LIVESHARE_REQUEST_HOST','_handleNewChangeSets','override','mergeOverrideWithDependencies','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','_mountLiveShare','complete','DependentOn','_collabSession','subscribe','presenting','_handleOperation','getTypeOfUnitDisposed$','subject','clsx','dispose','HEADER_MENU','_startPresenting','Fragment','BehaviorSubject','_fetchOperations','_injector','_configService','Inject','useDependency','jsxs','289494fdhmjW','packageName','memberID','map','pipe','@univerjs-pro/live-share','UNIVER_LIVE_SHARE_PLUGIN','_startFollowing','parse','touchDependencies','getTypeOfUnitAdded$','div','_reporters','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','registerComponent','_handleOffline','_uiPartsService','_stopFollowing','14466fwBlEu','_startLiveShareCoordinator','_status$','sessionStatus$','following','_unitID','_init','dispose$','IUIPartsService','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','SessionStatus','LiveShareController','You\x27re\x20following\x20the\x20presenter','useObservable'];_0xb6f7=function(){return _0x57951d;};return _0xb6f7();}function g(_0x39aaa3,_0x5531c4,_0x141867){return(_0x5531c4=h(_0x5531c4))in _0x39aaa3?Object['defineProperty'](_0x39aaa3,_0x5531c4,{'value':_0x141867,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39aaa3[_0x5531c4]=_0x141867,_0x39aaa3;}var _=class extends n['Disposable']{constructor(..._0x5328fb){const _0x1c5433=_0x5d87a9;super(..._0x5328fb),g(this,_0x1c5433(0x1d3),new Set()),g(this,'_reporters',new Set());}[_0x5d87a9(0x1a8)](_0x2b4bc5){const _0x2c42ae=_0x5d87a9;return this['_sharedOperations'][_0x2c42ae(0x178)](_0x2b4bc5),(0x0,n['toDisposable'])(()=>this[_0x2c42ae(0x1d3)]['delete'](_0x2b4bc5));}['registerInitialStateReporter'](_0x4d7692){const _0x170d78=_0x5d87a9;return this[_0x170d78(0x1f5)]['add'](_0x4d7692),(0x0,n[_0x170d78(0x1bd)])(()=>this[_0x170d78(0x1f5)][_0x170d78(0x16b)](_0x4d7692));}[_0x5d87a9(0x183)](_0x332e02){const _0x10693c=_0x5d87a9;return this[_0x10693c(0x1d3)][_0x10693c(0x1b4)](_0x332e02);}['getInitialStates'](_0x18afba){const _0x137efe=_0x5d87a9;return Array[_0x137efe(0x19e)](this[_0x137efe(0x1f5)])[_0x137efe(0x1ec)](_0x352434=>_0x352434(_0x18afba));}};function v(_0x58b9f0,_0x363ccc){return function(_0x24fa94,_0x2c25a5){_0x363ccc(_0x24fa94,_0x2c25a5,_0x58b9f0);};}function y(_0x18571c,_0x2f4b47,_0x13e139,_0x284948){const _0x450196=_0x5d87a9;var _0x4dd504=arguments[_0x450196(0x1c0)],_0x41ffdd=_0x4dd504<0x3?_0x2f4b47:_0x284948===null?_0x284948=Object['getOwnPropertyDescriptor'](_0x2f4b47,_0x13e139):_0x284948,_0x36ff9f;if(typeof Reflect==_0x450196(0x184)&&typeof Reflect[_0x450196(0x1a1)]==_0x450196(0x1ad))_0x41ffdd=Reflect[_0x450196(0x1a1)](_0x18571c,_0x2f4b47,_0x13e139,_0x284948);else{for(var _0x1f3a65=_0x18571c['length']-0x1;_0x1f3a65>=0x0;_0x1f3a65--)(_0x36ff9f=_0x18571c[_0x1f3a65])&&(_0x41ffdd=(_0x4dd504<0x3?_0x36ff9f(_0x41ffdd):_0x4dd504>0x3?_0x36ff9f(_0x2f4b47,_0x13e139,_0x41ffdd):_0x36ff9f(_0x2f4b47,_0x13e139))||_0x41ffdd);}return _0x4dd504>0x3&&_0x41ffdd&&Object['defineProperty'](_0x2f4b47,_0x13e139,_0x41ffdd),_0x41ffdd;}let b=class extends n[_0x5d87a9(0x19d)]{constructor(_0x41a4a7,_0x174e49,_0x477451){const _0x442133=_0x5d87a9;super(),this[_0x442133(0x1cb)]=_0x41a4a7,this['_injector']=_0x174e49,this[_0x442133(0x194)]=_0x477451,g(this,_0x442133(0x1a4),new Map()),this[_0x442133(0x144)]();}async[_0x5d87a9(0x191)](_0x970ba){const _0x1c6568=_0x5d87a9;return this[_0x1c6568(0x1a4)][_0x1c6568(0x1b4)](_0x970ba)||await this[_0x1c6568(0x13f)](_0x970ba),this[_0x1c6568(0x1a4)][_0x1c6568(0x176)](_0x970ba);}[_0x5d87a9(0x199)](_0x59ec23){const _0x23ce18=_0x5d87a9;return this[_0x23ce18(0x1a4)][_0x23ce18(0x176)](_0x59ec23)??null;}[_0x5d87a9(0x144)](){const _0x3bc86e=_0x5d87a9;this[_0x3bc86e(0x1cb)][_0x3bc86e(0x1f3)](n['UniverInstanceType'][_0x3bc86e(0x16f)])['pipe']((0x0,a['takeUntil'])(this[_0x3bc86e(0x145)]))[_0x3bc86e(0x1d8)](async _0x5e0dcb=>{const _0xaee928=_0x3bc86e;let _0x49b7fb=_0x5e0dcb[_0xaee928(0x19a)]['getUnitId']();this[_0xaee928(0x1a4)][_0xaee928(0x1b4)](_0x49b7fb)||this['_startLiveShareCoordinator'](_0x49b7fb);}),this[_0x3bc86e(0x1cb)][_0x3bc86e(0x1db)](n[_0x3bc86e(0x167)][_0x3bc86e(0x16f)])[_0x3bc86e(0x1ed)]((0x0,a[_0x3bc86e(0x195)])(this[_0x3bc86e(0x145)]))[_0x3bc86e(0x1d8)](_0x26d879=>{const _0x308ade=_0x3bc86e;let _0x1daf96=_0x26d879['getUnitId'](),_0x580ee8=this['_entities'][_0x308ade(0x176)](_0x1daf96);_0x580ee8==null||_0x580ee8['dispose']();});}async['_startLiveShareCoordinator'](_0x1cbae7){const _0xa314cf=_0x5d87a9;let _0x25d899=await this[_0xa314cf(0x194)][_0xa314cf(0x1c1)](_0x1cbae7),_0x1a825e=this['_injector']['createInstance'](S,_0x1cbae7,_0x25d899);return _0x1a825e[_0xa314cf(0x181)](),this[_0xa314cf(0x1a4)]['set'](_0x1cbae7,_0x1a825e),_0x1a825e;}};b=y([v(0x0,n['IUniverInstanceService']),v(0x1,(0x0,n[_0x5d87a9(0x1e6)])(n[_0x5d87a9(0x14e)])),v(0x2,(0x0,n[_0x5d87a9(0x1e6)])(t[_0x5d87a9(0x1a2)]))],b);let x=function(_0x2f85e5){const _0x3a5656=_0x5d87a9;return _0x2f85e5[_0x3a5656(0x166)]=_0x3a5656(0x198),_0x2f85e5['IDLE']=_0x3a5656(0x19b),_0x2f85e5[_0x3a5656(0x151)]=_0x3a5656(0x142),_0x2f85e5['NOT_FOLLOWING']=_0x3a5656(0x15d),_0x2f85e5['PRESENTING']='presenting',_0x2f85e5;}({}),S=class extends n['RxDisposable']{get['_status'](){const _0x391dde=_0x5d87a9;return this[_0x391dde(0x140)][_0x391dde(0x18b)]();}constructor(_0x5dcce9,_0x46fce6,_0x5af3fb,_0x48f92f,_0x5ab4cc){const _0x21c086=_0x5d87a9;super(),this[_0x21c086(0x143)]=_0x5dcce9,this[_0x21c086(0x1d7)]=_0x46fce6,this[_0x21c086(0x1e5)]=_0x5af3fb,this[_0x21c086(0x1b5)]=_0x48f92f,this[_0x21c086(0x1aa)]=_0x5ab4cc,g(this,_0x21c086(0x140),new i[(_0x21c086(0x1e2))](_0x21c086(0x19b))),g(this,_0x21c086(0x17f),this[_0x21c086(0x140)][_0x21c086(0x154)]()),g(this,'_init',!0x1),g(this,_0x21c086(0x16e),null),g(this,_0x21c086(0x187),null);}[_0x5d87a9(0x1de)](){const _0x1802d0=_0x5d87a9;var _0x1669ec;(_0x1669ec=this[_0x1802d0(0x16e)])==null||_0x1669ec[_0x1802d0(0x1de)](),this[_0x1802d0(0x140)][_0x1802d0(0x18a)](_0x1802d0(0x19b)),this[_0x1802d0(0x140)][_0x1802d0(0x1d5)]();}[_0x5d87a9(0x19f)](){const _0x3a03c5=_0x5d87a9;return this[_0x3a03c5(0x15e)];}[_0x5d87a9(0x181)](){const _0x40e2bc=_0x5d87a9;this[_0x40e2bc(0x144)]||(this[_0x40e2bc(0x144)]=!0x0,this['_collabSession'][_0x40e2bc(0x141)][_0x40e2bc(0x1ed)]((0x0,a[_0x40e2bc(0x195)])(this[_0x40e2bc(0x145)]))[_0x40e2bc(0x1d8)](_0x1435c3=>{const _0x5db1b0=_0x40e2bc;switch(_0x1435c3){case t[_0x5db1b0(0x149)][_0x5db1b0(0x166)]:this[_0x5db1b0(0x1f8)]();break;case t['SessionStatus'][_0x5db1b0(0x1a7)]:this[_0x5db1b0(0x18d)]();break;default:}}),this[_0x40e2bc(0x1d7)]['event$'][_0x40e2bc(0x1ed)]((0x0,a[_0x40e2bc(0x195)])(this[_0x40e2bc(0x145)]))[_0x40e2bc(0x1d8)](_0x29218a=>{const _0x3f110d=_0x40e2bc;let {eventID:_0x2b1d74}=_0x29218a;switch(_0x2b1d74){case e[_0x3f110d(0x17a)][_0x3f110d(0x19c)]:this[_0x3f110d(0x17c)](_0x29218a);break;case e['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x3f110d(0x1da)](_0x29218a);break;case e['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x3f110d(0x169)]();break;case e['CollaborationEvent'][_0x3f110d(0x152)]:this[_0x3f110d(0x1cf)](_0x29218a);break;default:}}));}[_0x5d87a9(0x16c)](){const _0x1064bd=_0x5d87a9;this['_collabSession'][_0x1064bd(0x1b3)]({'eventID':e[_0x1064bd(0x17a)][_0x1064bd(0x1ce)],'data':{'unitID':this['_unitID'],'userID':this[_0x1064bd(0x1d7)][_0x1064bd(0x171)]()}},this[_0x1064bd(0x143)]);}[_0x5d87a9(0x172)](){const _0x7e2373=_0x5d87a9;this[_0x7e2373(0x15e)]==='presenting'&&(this[_0x7e2373(0x140)][_0x7e2373(0x18a)]('idle'),this[_0x7e2373(0x1d7)][_0x7e2373(0x1b3)]({'eventID':e[_0x7e2373(0x17a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x7e2373(0x143)]}},this[_0x7e2373(0x143)]));}['startFollowing'](){const _0x24c09b=_0x5d87a9;this[_0x24c09b(0x15e)]===_0x24c09b(0x15d)&&(this[_0x24c09b(0x140)][_0x24c09b(0x18a)](_0x24c09b(0x142)),this[_0x24c09b(0x1f0)]());}[_0x5d87a9(0x150)](){const _0x31fb03=_0x5d87a9;this[_0x31fb03(0x15e)]==='following'&&this[_0x31fb03(0x1fa)]();}['_handleNewHost'](_0x45f08a){const _0x11c9c0=_0x5d87a9;let {presenter:_0x1e3280}=_0x45f08a[_0x11c9c0(0x18f)],_0x4633f=this[_0x11c9c0(0x1d7)][_0x11c9c0(0x171)]();this['_presenter']=_0x1e3280,_0x1e3280===_0x4633f?(this[_0x11c9c0(0x1fa)](),this[_0x11c9c0(0x1e0)]()):this[_0x11c9c0(0x15e)]!==_0x11c9c0(0x15d)&&(this['_stopPresenting'](),this[_0x11c9c0(0x1f0)]());}[_0x5d87a9(0x1e3)](){const _0x44da6a=_0x5d87a9;let _0x8021c0={'eventID':e['CollaborationEvent'][_0x44da6a(0x1d2)]};this[_0x44da6a(0x1d7)][_0x44da6a(0x1b3)](_0x8021c0,this[_0x44da6a(0x143)]);}[_0x5d87a9(0x169)](){const _0xefc0a4=_0x5d87a9;this['_presenter']=null,this[_0xefc0a4(0x15e)]!==_0xefc0a4(0x1d9)&&this[_0xefc0a4(0x16d)]();}[_0x5d87a9(0x1cf)](_0x578c0d){const _0x43275a=_0x5d87a9;if(this[_0x43275a(0x15e)]==='following'&&this['_presenter']===_0x578c0d['data'][_0x43275a(0x1eb)]){let _0x1e9ead=(0x0,e[_0x43275a(0x189)])(_0x578c0d[_0x43275a(0x18f)])['mutations'][_0x43275a(0x192)]()[_0x43275a(0x175)](_0x2cc745=>_0x2cc745['id']===r['InsertSheetMutation']['id']);if(_0x1e9ead){let _0x1f3781=_0x1e9ead[_0x43275a(0x1bf)][_0x43275a(0x193)],_0x24e498=_0x1e9ead[_0x43275a(0x1bf)][_0x43275a(0x1a6)]['id'];setTimeout(()=>{const _0x5222d7=_0x43275a;this[_0x5222d7(0x1aa)][_0x5222d7(0x1c3)](r[_0x5222d7(0x1ae)]['id'],{'unitId':_0x1f3781,'subUnitId':_0x24e498},{'fromCollab':!0x0});});}}}[_0x5d87a9(0x1e0)](){const _0x31c2b9=_0x5d87a9;var _0x25e0b5;(_0x25e0b5=this[_0x31c2b9(0x16e)])==null||_0x25e0b5[_0x31c2b9(0x1de)](),this[_0x31c2b9(0x140)][_0x31c2b9(0x18a)](_0x31c2b9(0x1d9));let _0x2d0e20=new Map(),_0x3dcd0f=this[_0x31c2b9(0x16e)]=new n[(_0x31c2b9(0x155))]();_0x3dcd0f[_0x31c2b9(0x178)]((0x0,n[_0x31c2b9(0x1bd)])(()=>{const _0xce414c=_0x31c2b9;_0x2d0e20['forEach'](({subject:_0x463f3d,subscription:_0x29fc78})=>{_0x29fc78['unsubscribe'](),_0x463f3d['complete']();}),_0x2d0e20[_0xce414c(0x168)]();})),_0x3dcd0f[_0x31c2b9(0x178)](this[_0x31c2b9(0x1aa)]['onCommandExecuted'](_0x290e76=>{const _0x378ab8=_0x31c2b9;if(_0x290e76[_0x378ab8(0x1bc)]!==n[_0x378ab8(0x190)][_0x378ab8(0x164)]||!this['_liveShareService'][_0x378ab8(0x183)](_0x290e76['id']))return;let {id:_0x4da12f}=_0x290e76,_0x5b6d42;if(_0x2d0e20[_0x378ab8(0x1b4)](_0x4da12f))_0x5b6d42=_0x2d0e20['get'](_0x4da12f)[_0x378ab8(0x1dc)];else{_0x5b6d42=new i[(_0x378ab8(0x1ac))]();let _0x3b1889=_0x5b6d42['pipe']((0x0,a['throttleTime'])(this[_0x378ab8(0x1e5)][_0x378ab8(0x14d)](_0x378ab8(0x147))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x378ab8(0x1d8)](_0x4b703e=>{const _0x31073e=_0x378ab8;this[_0x31073e(0x1d7)][_0x31073e(0x1b3)]({'eventID':e[_0x31073e(0x17a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x31073e(0x143)],'operations':{[_0x4b703e['id']]:{'id':_0x4b703e['id'],'params':JSON[_0x31073e(0x18e)](_0x4b703e[_0x31073e(0x1bf)])}}}},this[_0x31073e(0x143)]);});_0x2d0e20[_0x378ab8(0x16a)](_0x4da12f,{'subject':_0x5b6d42,'subscription':_0x3b1889});}_0x5b6d42[_0x378ab8(0x18a)](_0x290e76);})),this[_0x31c2b9(0x1b5)]['getInitialStates'](this[_0x31c2b9(0x143)])[_0x31c2b9(0x1b7)](_0xcf3c05=>this[_0x31c2b9(0x1d7)]['send']({'eventID':e['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xcf3c05['id']]:{'id':_0xcf3c05['id'],'params':JSON[_0x31c2b9(0x18e)](_0xcf3c05[_0x31c2b9(0x1bf)])}}}},this[_0x31c2b9(0x143)]));}[_0x5d87a9(0x148)](){const _0x550fbd=_0x5d87a9;var _0x3a54f3;this[_0x550fbd(0x140)][_0x550fbd(0x18a)](_0x550fbd(0x19b)),(_0x3a54f3=this[_0x550fbd(0x16e)])==null||_0x3a54f3['dispose'](),this[_0x550fbd(0x16e)]=null;}[_0x5d87a9(0x1f0)](){const _0x1f9e7d=_0x5d87a9;var _0x1d9dca;(_0x1d9dca=this['_commandDisposable'])==null||_0x1d9dca[_0x1f9e7d(0x1de)](),this[_0x1f9e7d(0x140)][_0x1f9e7d(0x18a)](_0x1f9e7d(0x142));}[_0x5d87a9(0x16d)](){const _0x43a6d0=_0x5d87a9;var _0xabed67;this[_0x43a6d0(0x140)][_0x43a6d0(0x18a)]('idle'),(_0xabed67=this[_0x43a6d0(0x16e)])==null||_0xabed67[_0x43a6d0(0x1de)](),this['_commandDisposable']=null;}[_0x5d87a9(0x1fa)](){const _0x3cdbb4=_0x5d87a9;var _0x1c4d96;this[_0x3cdbb4(0x140)][_0x3cdbb4(0x18a)](_0x3cdbb4(0x15d)),(_0x1c4d96=this[_0x3cdbb4(0x16e)])==null||_0x1c4d96[_0x3cdbb4(0x1de)]();}['_handleOperation'](_0x244127){const _0xcc6398=_0x5d87a9;if([_0xcc6398(0x1d9),_0xcc6398(0x15d),_0xcc6398(0x198)][_0xcc6398(0x15c)](this['_status'])||!_0x244127[_0xcc6398(0x18f)][_0xcc6398(0x177)]||_0x244127[_0xcc6398(0x18f)][_0xcc6398(0x177)]===this[_0xcc6398(0x1d7)]['getMemberID']())return;this[_0xcc6398(0x15e)]===_0xcc6398(0x19b)&&this[_0xcc6398(0x1f0)]();let _0x8c597b=_0x244127[_0xcc6398(0x18f)][_0xcc6398(0x1cd)];Object['values'](_0x8c597b)[_0xcc6398(0x1b7)](_0x5b8a17=>{const _0x3197b7=_0xcc6398;this[_0x3197b7(0x1aa)]['executeCommand'](_0x5b8a17['id'],_0x5b8a17['params']?JSON[_0x3197b7(0x1f1)](_0x5b8a17['params']):null,{'fromCollab':!0x0});});}[_0x5d87a9(0x1f8)](){const _0x4a287c=_0x5d87a9;var _0x2a2770;this[_0x4a287c(0x140)][_0x4a287c(0x18a)]('offline'),(_0x2a2770=this[_0x4a287c(0x16e)])==null||_0x2a2770[_0x4a287c(0x1de)]();}['_handleOnline'](){const _0x5efe63=_0x5d87a9;this[_0x5efe63(0x140)][_0x5efe63(0x18a)](_0x5efe63(0x19b)),this[_0x5efe63(0x1e3)]();}};S=y([v(0x2,n[_0x5d87a9(0x1b8)]),v(0x3,(0x0,n[_0x5d87a9(0x1e6)])(_)),v(0x4,n[_0x5d87a9(0x1a3)])],S);var C=_0x5d87a9(0x1ee),w=_0x5d87a9(0x1ba);const T={};let E=class extends n['Disposable']{constructor(_0x464e3d){const _0x44b6f6=_0x5d87a9;super(),this['_liveShareService']=_0x464e3d,this[_0x44b6f6(0x144)]();}[_0x5d87a9(0x144)](){const _0x14d53b=_0x5d87a9;[s['SetZoomRatioOperation']['id'],s[_0x14d53b(0x173)]['id'],r[_0x14d53b(0x1ae)]['id']][_0x14d53b(0x1b7)](_0x30d449=>{const _0x27be01=_0x14d53b;this[_0x27be01(0x160)](this[_0x27be01(0x1b5)][_0x27be01(0x1a8)](_0x30d449));});}};E=y([v(0x0,(0x0,n[_0x5d87a9(0x1e6)])(_))],E);function _0x22d3(_0x266c83,_0x47ec98){_0x266c83=_0x266c83-0x13f;const _0xb6f764=_0xb6f7();let _0x22d3a0=_0xb6f764[_0x266c83];return _0x22d3a0;}function D(){const _0xa90990=_0x5d87a9;let _0x59ca53=(0x0,c[_0xa90990(0x1e7)])(b),_0x5eeb3a=(0x0,c[_0xa90990(0x1e7)])(n[_0xa90990(0x179)]),_0x434ab7=(0x0,c[_0xa90990(0x14c)])(()=>_0x5eeb3a['getCurrentTypeOfUnit$'](n[_0xa90990(0x167)][_0xa90990(0x16f)]),void 0x0,!0x1,[]),_0x1613fc=(0x0,c[_0xa90990(0x14c)])((0x0,d[_0xa90990(0x17b)])(()=>_0x434ab7?(0x0,i[_0xa90990(0x1c4)])(()=>(0x0,i[_0xa90990(0x19e)])(_0x59ca53[_0xa90990(0x191)](_0x434ab7[_0xa90990(0x1bb)]()))):(0x0,i['of'])(null),[_0x434ab7,_0x59ca53]),null),_0xe64110=(0x0,c[_0xa90990(0x14c)])(_0x1613fc?()=>_0x1613fc[_0xa90990(0x17f)]:null,_0xa90990(0x19b),!0x1,[_0x1613fc]);return _0x1613fc?(0x0,f[_0xa90990(0x165)])(l[_0xa90990(0x1be)],{'align':_0xa90990(0x1af),'disabled':_0xe64110==='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,f[_0xa90990(0x165)])(O,{'status':_0xe64110,'coordinator':_0x1613fc}),'children':(0x0,f['jsx'])(_0xa90990(0x174),{'className':(0x0,l[_0xa90990(0x1dd)])(_0xa90990(0x1f6),{'univer-cursor-not-allowed':_0xe64110==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe64110!=='offline'}),'type':_0xa90990(0x174),'children':(0x0,f[_0xa90990(0x165)])(u['LiveShareIcon'],{})})}):null;}function O(_0x492999){const _0x1a2c5e=_0x5d87a9;let {status:_0x22dfbf,coordinator:_0x327675}=_0x492999;switch(_0x22dfbf){case _0x1a2c5e(0x19b):return(0x0,f[_0x1a2c5e(0x165)])(k,{'coordinator':_0x327675});case _0x1a2c5e(0x142):return(0x0,f[_0x1a2c5e(0x165)])(A,{'coordinator':_0x327675});case _0x1a2c5e(0x15d):return(0x0,f['jsx'])(j,{'coordinator':_0x327675});case _0x1a2c5e(0x198):return(0x0,f['jsx'])(N,{});case'presenting':return(0x0,f[_0x1a2c5e(0x165)])(M,{'coordinator':_0x327675});default:return null;}}function k(_0x2bf5aa){const _0x54a3da=_0x5d87a9;let {coordinator:_0x2aab7a}=_0x2bf5aa;return(0x0,f['jsxs'])(f[_0x54a3da(0x1e1)],{'children':[(0x0,f['jsx'])(_0x54a3da(0x1f4),{'className':_0x54a3da(0x186),'children':'Present\x20this\x20document'}),(0x0,f['jsx'])(l[_0x54a3da(0x158)],{'onClick':()=>_0x2aab7a['tryStartPresenting'](),'children':'Start'})]});}function A(_0x65e862){const _0x24b41f=_0x5d87a9;let {coordinator:_0x346444}=_0x65e862;return(0x0,f[_0x24b41f(0x1e8)])(f['Fragment'],{'children':[(0x0,f[_0x24b41f(0x165)])(_0x24b41f(0x1f4),{'className':_0x24b41f(0x186),'children':_0x24b41f(0x14b)}),(0x0,f[_0x24b41f(0x165)])(l[_0x24b41f(0x158)],{'onClick':()=>_0x346444[_0x24b41f(0x150)](),'children':_0x24b41f(0x161)})]});}function j(_0x28ad63){const _0x427800=_0x5d87a9;let {coordinator:_0x5a77d6}=_0x28ad63;return(0x0,f[_0x427800(0x1e8)])(f[_0x427800(0x1e1)],{'children':[(0x0,f[_0x427800(0x165)])(_0x427800(0x1f4),{'className':_0x427800(0x186),'children':_0x427800(0x1b0)}),(0x0,f[_0x427800(0x165)])(l['Button'],{'variant':_0x427800(0x1c8),'onClick':()=>_0x5a77d6[_0x427800(0x1b9)](),'children':_0x427800(0x1a5)})]});}function M(_0x482603){const _0x4f5f37=_0x5d87a9;let {coordinator:_0x1d440a}=_0x482603;return(0x0,f[_0x4f5f37(0x1e8)])(f[_0x4f5f37(0x1e1)],{'children':[(0x0,f[_0x4f5f37(0x165)])(_0x4f5f37(0x1f4),{'className':_0x4f5f37(0x186),'children':_0x4f5f37(0x185)}),(0x0,f[_0x4f5f37(0x165)])(l[_0x4f5f37(0x158)],{'variant':_0x4f5f37(0x1ca),'onClick':()=>_0x1d440a[_0x4f5f37(0x172)](),'children':_0x4f5f37(0x1ab)})]});}function N(){const _0x4ce4d7=_0x5d87a9;return(0x0,f[_0x4ce4d7(0x165)])(f['Fragment'],{'children':_0x4ce4d7(0x197)});}let P=class extends n[_0x5d87a9(0x15b)]{constructor(_0x624cc6,_0x4dec32){const _0x4e6ddb=_0x5d87a9;super(),this[_0x4e6ddb(0x1e4)]=_0x624cc6,this[_0x4e6ddb(0x1f9)]=_0x4dec32,this['_mountLiveShare']();}[_0x5d87a9(0x1d4)](){const _0x1c947c=_0x5d87a9;this[_0x1c947c(0x160)](this[_0x1c947c(0x1f9)][_0x1c947c(0x1f7)](c['BuiltInUIPart'][_0x1c947c(0x1df)],()=>(0x0,c[_0x1c947c(0x156)])(D,this[_0x1c947c(0x1e4)])));}};P=y([v(0x0,(0x0,n['Inject'])(n[_0x5d87a9(0x14e)])),v(0x1,c[_0x5d87a9(0x146)])],P);let F=class extends n['Plugin']{constructor(_0x1a7117=T,_0x411874,_0x2a5d06){const _0x662b5b=_0x5d87a9;super(),this[_0x662b5b(0x163)]=_0x1a7117,this['_injector']=_0x411874,this[_0x662b5b(0x1e5)]=_0x2a5d06;let {..._0x42100d}=(0x0,n['merge'])({},T,this[_0x662b5b(0x163)]);this['_configService'][_0x662b5b(0x182)](_0x662b5b(0x1c2),_0x42100d);}['onStarting'](){const _0x5db605=_0x5d87a9;(0x0,n[_0x5db605(0x153)])(this[_0x5db605(0x1e4)],(0x0,n[_0x5db605(0x1d1)])([[_],[b],[E],[P]],this['_config'][_0x5db605(0x1d0)])),(0x0,n[_0x5db605(0x1f2)])(this[_0x5db605(0x1e4)],[[E]]);}[_0x5d87a9(0x14f)](){const _0x248214=_0x5d87a9;(0x0,n[_0x248214(0x1f2)])(this[_0x248214(0x1e4)],[[P]]);}};g(F,_0x5d87a9(0x1bc),n['UniverInstanceType'][_0x5d87a9(0x188)]),g(F,_0x5d87a9(0x170),_0x5d87a9(0x1ef)),g(F,_0x5d87a9(0x1ea),C),g(F,_0x5d87a9(0x17e),w),F=y([(0x0,n[_0x5d87a9(0x1d6)])(o['UniverLicensePlugin'],t[_0x5d87a9(0x18c)]),v(0x1,(0x0,n[_0x5d87a9(0x1e6)])(n['Injector'])),v(0x2,n['IConfigService'])],F),Object[_0x5d87a9(0x1a0)](exports,_0x5d87a9(0x14a),{'enumerable':!0x0,'get':function(){return b;}}),exports[_0x5d87a9(0x1b6)]=x,Object[_0x5d87a9(0x1a0)](exports,_0x5d87a9(0x15f),{'enumerable':!0x0,'get':function(){return F;}});
1
+ const _0x4cd5d4=_0x5bfe;(function(_0x418cc3,_0x294bf9){const _0x2e2a03=_0x5bfe,_0x940577=_0x418cc3();while(!![]){try{const _0x173e31=-parseInt(_0x2e2a03(0x23c))/0x1+parseInt(_0x2e2a03(0x250))/0x2+-parseInt(_0x2e2a03(0x240))/0x3+parseInt(_0x2e2a03(0x2a9))/0x4+-parseInt(_0x2e2a03(0x20b))/0x5+parseInt(_0x2e2a03(0x204))/0x6*(parseInt(_0x2e2a03(0x22d))/0x7)+parseInt(_0x2e2a03(0x20a))/0x8;if(_0x173e31===_0x294bf9)break;else _0x940577['push'](_0x940577['shift']());}catch(_0x243627){_0x940577['push'](_0x940577['shift']());}}}(_0x184e,0x3b0da),Object['defineProperty'](exports,Symbol[_0x4cd5d4(0x261)],{'value':_0x4cd5d4(0x231)}));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-pro/license'),s=require('@univerjs/sheets-ui'),c=require('@univerjs/ui'),l=require('@univerjs/design'),u=require('@univerjs/icons'),d=require('react'),f=require('react/jsx-runtime');function p(_0x986b40){'@babel/helpers - typeof';const _0x348da0=_0x4cd5d4;return p=typeof Symbol==_0x348da0(0x281)&&typeof Symbol[_0x348da0(0x29d)]==_0x348da0(0x2a1)?function(_0x49f12a){return typeof _0x49f12a;}:function(_0x196d15){const _0x497078=_0x348da0;return _0x196d15&&typeof Symbol==_0x497078(0x281)&&_0x196d15[_0x497078(0x237)]===Symbol&&_0x196d15!==Symbol[_0x497078(0x242)]?_0x497078(0x2a1):typeof _0x196d15;},p(_0x986b40);}function m(_0x3a1483,_0x1a6f0c){const _0x321ac4=_0x4cd5d4;if(p(_0x3a1483)!=_0x321ac4(0x25b)||!_0x3a1483)return _0x3a1483;var _0x5d8519=_0x3a1483[Symbol[_0x321ac4(0x20f)]];if(_0x5d8519!==void 0x0){var _0x243228=_0x5d8519[_0x321ac4(0x285)](_0x3a1483,_0x1a6f0c||_0x321ac4(0x263));if(p(_0x243228)!=_0x321ac4(0x25b))return _0x243228;throw TypeError(_0x321ac4(0x1f9));}return(_0x1a6f0c==='string'?String:Number)(_0x3a1483);}function h(_0x38f59c){const _0x100060=_0x4cd5d4;var _0x1ab88a=m(_0x38f59c,'string');return p(_0x1ab88a)==_0x100060(0x2a1)?_0x1ab88a:_0x1ab88a+'';}function g(_0x57d29c,_0x12ae90,_0x219661){const _0x4b6724=_0x4cd5d4;return(_0x12ae90=h(_0x12ae90))in _0x57d29c?Object[_0x4b6724(0x2aa)](_0x57d29c,_0x12ae90,{'value':_0x219661,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57d29c[_0x12ae90]=_0x219661,_0x57d29c;}var _=class extends n[_0x4cd5d4(0x227)]{constructor(..._0xf16687){const _0x4be9c2=_0x4cd5d4;super(..._0xf16687),g(this,'_sharedOperations',new Set()),g(this,_0x4be9c2(0x224),new Set());}[_0x4cd5d4(0x257)](_0x479d01){const _0x4cd8e6=_0x4cd5d4;return this[_0x4cd8e6(0x1fc)][_0x4cd8e6(0x262)](_0x479d01),(0x0,n['toDisposable'])(()=>this['_sharedOperations']['delete'](_0x479d01));}['registerInitialStateReporter'](_0x4ef483){const _0x320186=_0x4cd5d4;return this[_0x320186(0x224)]['add'](_0x4ef483),(0x0,n[_0x320186(0x27d)])(()=>this['_reporters'][_0x320186(0x294)](_0x4ef483));}[_0x4cd5d4(0x21d)](_0x4a6242){const _0x1a9cdb=_0x4cd5d4;return this['_sharedOperations'][_0x1a9cdb(0x243)](_0x4a6242);}['getInitialStates'](_0x2776bb){const _0x3d19eb=_0x4cd5d4;return Array['from'](this[_0x3d19eb(0x224)])['map'](_0xbf8d43=>_0xbf8d43(_0x2776bb));}};function v(_0x385029,_0x85eb47){return function(_0xed2365,_0x34ef53){_0x85eb47(_0xed2365,_0x34ef53,_0x385029);};}function y(_0x84b04b,_0x132425,_0x572f16,_0x4d53bd){const _0x46ea42=_0x4cd5d4;var _0x474f2f=arguments[_0x46ea42(0x264)],_0x50b9e7=_0x474f2f<0x3?_0x132425:_0x4d53bd===null?_0x4d53bd=Object[_0x46ea42(0x244)](_0x132425,_0x572f16):_0x4d53bd,_0x2b5289;if(typeof Reflect==_0x46ea42(0x25b)&&typeof Reflect[_0x46ea42(0x249)]==_0x46ea42(0x281))_0x50b9e7=Reflect['decorate'](_0x84b04b,_0x132425,_0x572f16,_0x4d53bd);else{for(var _0x329f8c=_0x84b04b['length']-0x1;_0x329f8c>=0x0;_0x329f8c--)(_0x2b5289=_0x84b04b[_0x329f8c])&&(_0x50b9e7=(_0x474f2f<0x3?_0x2b5289(_0x50b9e7):_0x474f2f>0x3?_0x2b5289(_0x132425,_0x572f16,_0x50b9e7):_0x2b5289(_0x132425,_0x572f16))||_0x50b9e7);}return _0x474f2f>0x3&&_0x50b9e7&&Object[_0x46ea42(0x2aa)](_0x132425,_0x572f16,_0x50b9e7),_0x50b9e7;}let b=class extends n[_0x4cd5d4(0x1ff)]{constructor(_0x5251c1,_0x464d50,_0x1bf942){const _0x4e2104=_0x4cd5d4;super(),this['_univerInstanceService']=_0x5251c1,this[_0x4e2104(0x2ac)]=_0x464d50,this[_0x4e2104(0x2a7)]=_0x1bf942,g(this,_0x4e2104(0x267),new Map()),this[_0x4e2104(0x226)]();}async[_0x4cd5d4(0x24c)](_0x404a2d){const _0x3b028f=_0x4cd5d4;return this['_entities'][_0x3b028f(0x243)](_0x404a2d)||await this[_0x3b028f(0x228)](_0x404a2d),this['_entities'][_0x3b028f(0x273)](_0x404a2d);}[_0x4cd5d4(0x229)](_0x36db3f){const _0x1295f6=_0x4cd5d4;return this[_0x1295f6(0x267)]['get'](_0x36db3f)??null;}[_0x4cd5d4(0x226)](){const _0x1cff13=_0x4cd5d4;this['_univerInstanceService'][_0x1cff13(0x29a)](n[_0x1cff13(0x1f7)][_0x1cff13(0x27b)])[_0x1cff13(0x29f)]((0x0,a[_0x1cff13(0x297)])(this[_0x1cff13(0x2a4)]))[_0x1cff13(0x1fd)](async _0x23b198=>{const _0x58fe4f=_0x1cff13;let _0x1ccc89=_0x23b198[_0x58fe4f(0x251)][_0x58fe4f(0x27e)]();this[_0x58fe4f(0x267)]['has'](_0x1ccc89)||this[_0x58fe4f(0x228)](_0x1ccc89);}),this[_0x1cff13(0x293)][_0x1cff13(0x277)](n[_0x1cff13(0x1f7)]['UNIVER_SHEET'])[_0x1cff13(0x29f)]((0x0,a[_0x1cff13(0x297)])(this[_0x1cff13(0x2a4)]))[_0x1cff13(0x1fd)](_0x350b22=>{const _0xc6da46=_0x1cff13;let _0x3a9649=_0x350b22[_0xc6da46(0x27e)](),_0x4d8d20=this['_entities']['get'](_0x3a9649);_0x4d8d20==null||_0x4d8d20[_0xc6da46(0x24b)]();});}async[_0x4cd5d4(0x228)](_0x575a79){const _0x36dac8=_0x4cd5d4;let _0x2b9ef6=await this[_0x36dac8(0x2a7)][_0x36dac8(0x201)](_0x575a79),_0xfbf393=this['_injector'][_0x36dac8(0x26a)](S,_0x575a79,_0x2b9ef6);return _0xfbf393[_0x36dac8(0x28e)](),this['_entities'][_0x36dac8(0x274)](_0x575a79,_0xfbf393),_0xfbf393;}};b=y([v(0x0,n[_0x4cd5d4(0x247)]),v(0x1,(0x0,n[_0x4cd5d4(0x27a)])(n[_0x4cd5d4(0x235)])),v(0x2,(0x0,n[_0x4cd5d4(0x27a)])(t[_0x4cd5d4(0x232)]))],b);let x=function(_0x1aa42d){const _0x57767a=_0x4cd5d4;return _0x1aa42d[_0x57767a(0x245)]=_0x57767a(0x23f),_0x1aa42d[_0x57767a(0x28b)]='idle',_0x1aa42d[_0x57767a(0x24a)]=_0x57767a(0x26e),_0x1aa42d[_0x57767a(0x210)]='not-following',_0x1aa42d['PRESENTING']=_0x57767a(0x265),_0x1aa42d;}({}),S=class extends n[_0x4cd5d4(0x1ff)]{get['_status'](){const _0x9190b4=_0x4cd5d4;return this['_status$'][_0x9190b4(0x213)]();}constructor(_0xa85476,_0x43d573,_0x477ea6,_0x2fc6da,_0x464a25){const _0x49c026=_0x4cd5d4;super(),this['_unitID']=_0xa85476,this[_0x49c026(0x26f)]=_0x43d573,this[_0x49c026(0x279)]=_0x477ea6,this[_0x49c026(0x25a)]=_0x2fc6da,this[_0x49c026(0x209)]=_0x464a25,g(this,'_status$',new i['BehaviorSubject'](_0x49c026(0x280))),g(this,_0x49c026(0x20c),this[_0x49c026(0x29e)][_0x49c026(0x298)]()),g(this,'_init',!0x1),g(this,_0x49c026(0x246),null),g(this,'_presenter',null);}['dispose'](){const _0x2bf6b3=_0x4cd5d4;var _0x12f382;(_0x12f382=this[_0x2bf6b3(0x246)])==null||_0x12f382[_0x2bf6b3(0x24b)](),this[_0x2bf6b3(0x29e)][_0x2bf6b3(0x253)](_0x2bf6b3(0x280)),this[_0x2bf6b3(0x29e)][_0x2bf6b3(0x296)]();}[_0x4cd5d4(0x282)](){const _0xee01c1=_0x4cd5d4;return this[_0xee01c1(0x1f6)];}[_0x4cd5d4(0x28e)](){const _0x51a081=_0x4cd5d4;this[_0x51a081(0x226)]||(this['_init']=!0x0,this['_collabSession'][_0x51a081(0x275)][_0x51a081(0x29f)]((0x0,a['takeUntil'])(this[_0x51a081(0x2a4)]))[_0x51a081(0x1fd)](_0x4c583e=>{const _0x415105=_0x51a081;switch(_0x4c583e){case t[_0x415105(0x233)]['OFFLINE']:this[_0x415105(0x22e)]();break;case t['SessionStatus']['ONLINE']:this[_0x415105(0x2a8)]();break;default:}}),this[_0x51a081(0x26f)][_0x51a081(0x21a)][_0x51a081(0x29f)]((0x0,a[_0x51a081(0x297)])(this['dispose$']))[_0x51a081(0x1fd)](_0x182c60=>{const _0x49e355=_0x51a081;let {eventID:_0x58e7d6}=_0x182c60;switch(_0x58e7d6){case e[_0x49e355(0x21c)][_0x49e355(0x270)]:this[_0x49e355(0x21f)](_0x182c60);break;case e[_0x49e355(0x21c)]['LIVESHARE_OPERATION']:this[_0x49e355(0x299)](_0x182c60);break;case e[_0x49e355(0x21c)][_0x49e355(0x23e)]:this[_0x49e355(0x2ad)]();break;case e[_0x49e355(0x21c)][_0x49e355(0x218)]:this['_handleNewChangeSets'](_0x182c60);break;default:}}));}[_0x4cd5d4(0x2a5)](){const _0x20f47f=_0x4cd5d4;this[_0x20f47f(0x26f)][_0x20f47f(0x287)]({'eventID':e[_0x20f47f(0x21c)][_0x20f47f(0x217)],'data':{'unitID':this[_0x20f47f(0x214)],'userID':this['_collabSession'][_0x20f47f(0x2b0)]()}},this['_unitID']);}[_0x4cd5d4(0x22c)](){const _0x43d5f7=_0x4cd5d4;this[_0x43d5f7(0x1f6)]==='presenting'&&(this[_0x43d5f7(0x29e)][_0x43d5f7(0x253)]('idle'),this[_0x43d5f7(0x26f)][_0x43d5f7(0x287)]({'eventID':e['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x43d5f7(0x214)]}},this['_unitID']));}[_0x4cd5d4(0x24f)](){const _0x8ca288=_0x4cd5d4;this[_0x8ca288(0x1f6)]===_0x8ca288(0x260)&&(this['_status$'][_0x8ca288(0x253)](_0x8ca288(0x26e)),this[_0x8ca288(0x289)]());}[_0x4cd5d4(0x1fe)](){const _0x4a1a52=_0x4cd5d4;this[_0x4a1a52(0x1f6)]===_0x4a1a52(0x26e)&&this[_0x4a1a52(0x269)]();}[_0x4cd5d4(0x21f)](_0x17dc2d){const _0x274b14=_0x4cd5d4;let {presenter:_0x4ac4a3}=_0x17dc2d[_0x274b14(0x286)],_0x59c3b3=this['_collabSession'][_0x274b14(0x2b0)]();this[_0x274b14(0x276)]=_0x4ac4a3,_0x4ac4a3===_0x59c3b3?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0x274b14(0x290)](),this[_0x274b14(0x289)]());}['_fetchOperations'](){const _0x28ca23=_0x4cd5d4;let _0x3d1dc8={'eventID':e[_0x28ca23(0x21c)][_0x28ca23(0x255)]};this[_0x28ca23(0x26f)]['send'](_0x3d1dc8,this[_0x28ca23(0x214)]);}[_0x4cd5d4(0x2ad)](){const _0x5141b7=_0x4cd5d4;this[_0x5141b7(0x276)]=null,this['_status']!==_0x5141b7(0x265)&&this['_beIdle']();}[_0x4cd5d4(0x200)](_0x3141bf){const _0xcd9e5d=_0x4cd5d4;if(this[_0xcd9e5d(0x1f6)]===_0xcd9e5d(0x26e)&&this[_0xcd9e5d(0x276)]===_0x3141bf['data'][_0xcd9e5d(0x284)]){let _0x17bd79=(0x0,e[_0xcd9e5d(0x22a)])(_0x3141bf[_0xcd9e5d(0x286)])[_0xcd9e5d(0x1fb)][_0xcd9e5d(0x24d)]()[_0xcd9e5d(0x236)](_0x58266b=>_0x58266b['id']===r[_0xcd9e5d(0x2ab)]['id']);if(_0x17bd79){let _0x18ef22=_0x17bd79[_0xcd9e5d(0x215)][_0xcd9e5d(0x206)],_0x23339f=_0x17bd79[_0xcd9e5d(0x215)]['sheet']['id'];setTimeout(()=>{const _0x43b21c=_0xcd9e5d;this['_commandService'][_0x43b21c(0x23d)](r[_0x43b21c(0x27f)]['id'],{'unitId':_0x18ef22,'subUnitId':_0x23339f},{'fromCollab':!0x0});});}}}[_0x4cd5d4(0x202)](){const _0x23dd83=_0x4cd5d4;var _0x3fc63d;(_0x3fc63d=this['_commandDisposable'])==null||_0x3fc63d[_0x23dd83(0x24b)](),this[_0x23dd83(0x29e)][_0x23dd83(0x253)](_0x23dd83(0x265));let _0x922d71=new Map(),_0x44fbdf=this[_0x23dd83(0x246)]=new n[(_0x23dd83(0x1f8))]();_0x44fbdf[_0x23dd83(0x262)]((0x0,n[_0x23dd83(0x27d)])(()=>{const _0x2141a9=_0x23dd83;_0x922d71[_0x2141a9(0x20d)](({subject:_0x568c13,subscription:_0x5219db})=>{const _0x4fb80e=_0x2141a9;_0x5219db[_0x4fb80e(0x21e)](),_0x568c13['complete']();}),_0x922d71[_0x2141a9(0x278)]();})),_0x44fbdf[_0x23dd83(0x262)](this[_0x23dd83(0x209)][_0x23dd83(0x2ae)](_0x16da2b=>{const _0x378b7f=_0x23dd83;if(_0x16da2b[_0x378b7f(0x205)]!==n['CommandType'][_0x378b7f(0x230)]||!this['_liveShareService'][_0x378b7f(0x21d)](_0x16da2b['id']))return;let {id:_0x5ef676}=_0x16da2b,_0x256ab3;if(_0x922d71[_0x378b7f(0x243)](_0x5ef676))_0x256ab3=_0x922d71[_0x378b7f(0x273)](_0x5ef676)[_0x378b7f(0x25d)];else{_0x256ab3=new i[(_0x378b7f(0x268))]();let _0x3d756e=_0x256ab3[_0x378b7f(0x29f)]((0x0,a[_0x378b7f(0x23a)])(this[_0x378b7f(0x279)][_0x378b7f(0x219)](_0x378b7f(0x234))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x378b7f(0x1fd)](_0x4d3281=>{const _0x5d33a8=_0x378b7f;this[_0x5d33a8(0x26f)][_0x5d33a8(0x287)]({'eventID':e[_0x5d33a8(0x21c)][_0x5d33a8(0x2a6)],'data':{'unitID':this['_unitID'],'operations':{[_0x4d3281['id']]:{'id':_0x4d3281['id'],'params':JSON[_0x5d33a8(0x1f3)](_0x4d3281[_0x5d33a8(0x215)])}}}},this[_0x5d33a8(0x214)]);});_0x922d71['set'](_0x5ef676,{'subject':_0x256ab3,'subscription':_0x3d756e});}_0x256ab3[_0x378b7f(0x253)](_0x16da2b);})),this[_0x23dd83(0x25a)][_0x23dd83(0x28d)](this['_unitID'])[_0x23dd83(0x20d)](_0x25ef3b=>this['_collabSession'][_0x23dd83(0x287)]({'eventID':e[_0x23dd83(0x21c)][_0x23dd83(0x2a6)],'data':{'unitID':this['_unitID'],'operations':{[_0x25ef3b['id']]:{'id':_0x25ef3b['id'],'params':JSON[_0x23dd83(0x1f3)](_0x25ef3b['params'])}}}},this[_0x23dd83(0x214)]));}[_0x4cd5d4(0x290)](){const _0x3839cf=_0x4cd5d4;var _0x1fb0a6;this[_0x3839cf(0x29e)][_0x3839cf(0x253)](_0x3839cf(0x280)),(_0x1fb0a6=this[_0x3839cf(0x246)])==null||_0x1fb0a6[_0x3839cf(0x24b)](),this['_commandDisposable']=null;}[_0x4cd5d4(0x289)](){const _0x1b0fdf=_0x4cd5d4;var _0x302249;(_0x302249=this[_0x1b0fdf(0x246)])==null||_0x302249[_0x1b0fdf(0x24b)](),this[_0x1b0fdf(0x29e)][_0x1b0fdf(0x253)](_0x1b0fdf(0x26e));}['_beIdle'](){const _0x4f309f=_0x4cd5d4;var _0x2cf0d6;this[_0x4f309f(0x29e)][_0x4f309f(0x253)]('idle'),(_0x2cf0d6=this['_commandDisposable'])==null||_0x2cf0d6['dispose'](),this[_0x4f309f(0x246)]=null;}['_stopFollowing'](){const _0x22f730=_0x4cd5d4;var _0x146b25;this[_0x22f730(0x29e)][_0x22f730(0x253)]('not-following'),(_0x146b25=this[_0x22f730(0x246)])==null||_0x146b25[_0x22f730(0x24b)]();}[_0x4cd5d4(0x299)](_0x3f41ad){const _0x428437=_0x4cd5d4;if([_0x428437(0x265),_0x428437(0x260),_0x428437(0x23f)][_0x428437(0x26b)](this[_0x428437(0x1f6)])||!_0x3f41ad['data'][_0x428437(0x288)]||_0x3f41ad[_0x428437(0x286)][_0x428437(0x288)]===this[_0x428437(0x26f)][_0x428437(0x2b0)]())return;this[_0x428437(0x1f6)]===_0x428437(0x280)&&this['_startFollowing']();let _0x5af68c=_0x3f41ad[_0x428437(0x286)]['operations'];Object['values'](_0x5af68c)[_0x428437(0x20d)](_0x2a3a76=>{const _0x2b4a46=_0x428437;this[_0x2b4a46(0x209)][_0x2b4a46(0x23d)](_0x2a3a76['id'],_0x2a3a76['params']?JSON[_0x2b4a46(0x25e)](_0x2a3a76[_0x2b4a46(0x215)]):null,{'fromCollab':!0x0});});}[_0x4cd5d4(0x22e)](){const _0x1a138e=_0x4cd5d4;var _0x2e4210;this[_0x1a138e(0x29e)]['next'](_0x1a138e(0x23f)),(_0x2e4210=this[_0x1a138e(0x246)])==null||_0x2e4210['dispose']();}['_handleOnline'](){const _0x6b6b1a=_0x4cd5d4;this[_0x6b6b1a(0x29e)][_0x6b6b1a(0x253)]('idle'),this['_fetchOperations']();}};S=y([v(0x2,n['IConfigService']),v(0x3,(0x0,n[_0x4cd5d4(0x27a)])(_)),v(0x4,n[_0x4cd5d4(0x239)])],S);var C='@univerjs-pro/live-share',w=_0x4cd5d4(0x212);const T={};function _0x5bfe(_0x2dbf49,_0x1c462b){_0x2dbf49=_0x2dbf49-0x1f3;const _0x184ee8=_0x184e();let _0x5bfe32=_0x184ee8[_0x2dbf49];return _0x5bfe32;}let E=class extends n['Disposable']{constructor(_0x587065){const _0x1e2c16=_0x4cd5d4;super(),this[_0x1e2c16(0x25a)]=_0x587065,this['_init']();}[_0x4cd5d4(0x226)](){const _0x246560=_0x4cd5d4;[s[_0x246560(0x21b)]['id'],s[_0x246560(0x216)]['id'],r['SetWorksheetActiveOperation']['id']]['forEach'](_0x4fc373=>{const _0x154942=_0x246560;this['disposeWithMe'](this[_0x154942(0x25a)]['registerSharedOperation'](_0x4fc373));});}};E=y([v(0x0,(0x0,n['Inject'])(_))],E);function D(){const _0x293a36=_0x4cd5d4;let _0x43f459=(0x0,c[_0x293a36(0x223)])(b),_0x374dba=(0x0,c[_0x293a36(0x223)])(n[_0x293a36(0x247)]),_0x5a10cd=(0x0,c[_0x293a36(0x28f)])(()=>_0x374dba[_0x293a36(0x207)](n[_0x293a36(0x1f7)][_0x293a36(0x27b)]),void 0x0,!0x1,[]),_0x53ac2a=(0x0,c[_0x293a36(0x28f)])((0x0,d[_0x293a36(0x225)])(()=>_0x5a10cd?(0x0,i['defer'])(()=>(0x0,i['from'])(_0x43f459[_0x293a36(0x24c)](_0x5a10cd['getUnitId']()))):(0x0,i['of'])(null),[_0x5a10cd,_0x43f459]),null),_0x406412=(0x0,c['useObservable'])(_0x53ac2a?()=>_0x53ac2a[_0x293a36(0x20c)]:null,_0x293a36(0x280),!0x1,[_0x53ac2a]);return _0x53ac2a?(0x0,f[_0x293a36(0x29b)])(l[_0x293a36(0x222)],{'align':_0x293a36(0x238),'disabled':_0x406412===_0x293a36(0x23f),'className':_0x293a36(0x1fa),'overlay':(0x0,f[_0x293a36(0x29b)])(O,{'status':_0x406412,'coordinator':_0x53ac2a}),'children':(0x0,f[_0x293a36(0x29b)])(l[_0x293a36(0x1f4)],{'size':_0x293a36(0x248),'variant':_0x293a36(0x25f),'disabled':_0x406412===_0x293a36(0x23f),'type':'button','children':(0x0,f[_0x293a36(0x29b)])(u[_0x293a36(0x271)],{})})}):null;}function O(_0x2d063d){const _0x3180f7=_0x4cd5d4;let {status:_0x4a5d1b,coordinator:_0x55f349}=_0x2d063d;switch(_0x4a5d1b){case _0x3180f7(0x280):return(0x0,f['jsx'])(k,{'coordinator':_0x55f349});case _0x3180f7(0x26e):return(0x0,f[_0x3180f7(0x29b)])(A,{'coordinator':_0x55f349});case'not-following':return(0x0,f[_0x3180f7(0x29b)])(j,{'coordinator':_0x55f349});case'offline':return(0x0,f[_0x3180f7(0x29b)])(N,{});case _0x3180f7(0x265):return(0x0,f[_0x3180f7(0x29b)])(M,{'coordinator':_0x55f349});default:return null;}}function k(_0x382b6c){const _0x474b62=_0x4cd5d4;let {coordinator:_0x1b039c}=_0x382b6c;return(0x0,f['jsxs'])(f['Fragment'],{'children':[(0x0,f[_0x474b62(0x29b)])(_0x474b62(0x26d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x474b62(0x2af)}),(0x0,f[_0x474b62(0x29b)])(l[_0x474b62(0x1f4)],{'onClick':()=>_0x1b039c[_0x474b62(0x2a5)](),'children':'Start'})]});}function A(_0x502c0c){const _0x1a54e0=_0x4cd5d4;let {coordinator:_0x5ca416}=_0x502c0c;return(0x0,f['jsxs'])(f['Fragment'],{'children':[(0x0,f['jsx'])(_0x1a54e0(0x26d),{'className':_0x1a54e0(0x2a2),'children':_0x1a54e0(0x20e)}),(0x0,f[_0x1a54e0(0x29b)])(l[_0x1a54e0(0x1f4)],{'onClick':()=>_0x5ca416[_0x1a54e0(0x1fe)](),'children':_0x1a54e0(0x24e)})]});}function j(_0x52221b){const _0x2ae193=_0x4cd5d4;let {coordinator:_0x45f95a}=_0x52221b;return(0x0,f[_0x2ae193(0x220)])(f[_0x2ae193(0x25c)],{'children':[(0x0,f[_0x2ae193(0x29b)])(_0x2ae193(0x26d),{'className':_0x2ae193(0x2a2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,f[_0x2ae193(0x29b)])(l['Button'],{'variant':_0x2ae193(0x25f),'onClick':()=>_0x45f95a['startFollowing'](),'children':_0x2ae193(0x22b)})]});}function M(_0x976f35){const _0x4b9364=_0x4cd5d4;let {coordinator:_0x17c26b}=_0x976f35;return(0x0,f[_0x4b9364(0x220)])(f[_0x4b9364(0x25c)],{'children':[(0x0,f[_0x4b9364(0x29b)])(_0x4b9364(0x26d),{'className':_0x4b9364(0x2a2),'children':_0x4b9364(0x26c)}),(0x0,f['jsx'])(l['Button'],{'variant':_0x4b9364(0x263),'onClick':()=>_0x17c26b[_0x4b9364(0x22c)](),'children':_0x4b9364(0x254)})]});}function N(){const _0xaeef82=_0x4cd5d4;return(0x0,f[_0xaeef82(0x29b)])(f['Fragment'],{'children':_0xaeef82(0x259)});}let P=class extends n[_0x4cd5d4(0x227)]{constructor(_0x1dc6b7,_0x5850f7){const _0xf0da8d=_0x4cd5d4;super(),this[_0xf0da8d(0x2ac)]=_0x1dc6b7,this[_0xf0da8d(0x23b)]=_0x5850f7,this[_0xf0da8d(0x27c)]();}['_mountLiveShare'](){const _0x2cc84f=_0x4cd5d4;this[_0x2cc84f(0x2a0)](this[_0x2cc84f(0x23b)][_0x2cc84f(0x252)](c[_0x2cc84f(0x208)]['HEADER_MENU'],()=>(0x0,c[_0x2cc84f(0x22f)])(D,this[_0x2cc84f(0x2ac)])));}};P=y([v(0x0,(0x0,n[_0x4cd5d4(0x27a)])(n['Injector'])),v(0x1,c[_0x4cd5d4(0x258)])],P);function _0x184e(){const _0x171ea8=['FOLLOWING','dispose','getLiveShareCoordinator','reverse','Stop\x20following','startFollowing','118554aUSQsm','unit','registerComponent','next','Stop\x20presenting','LIVESHARE_FETCH_OPERATIONS','mergeOverrideWithDependencies','registerSharedOperation','IUIPartsService','You\x27are\x20offline.','_liveShareService','object','Fragment','subject','parse','text','not-following','toStringTag','add','default','length','presenting','touchDependencies','_entities','Subject','_stopFollowing','createInstance','includes','You\x27re\x20presenting\x20the\x20document','div','following','_collabSession','LIVESHARE_NEW_HOST','LiveShareIcon','DependentOn','get','set','sessionStatus$','_presenter','getTypeOfUnitDisposed$','clear','_configService','Inject','UNIVER_SHEET','_mountLiveShare','toDisposable','getUnitId','SetWorksheetActiveOperation','idle','function','getStatus','onStarting','memberID','call','data','send','presenter','_startFollowing','UNIVER_UNKNOWN','IDLE','LiveShareController','getInitialStates','init','useObservable','_stopPresenting','registerDependencies','merge','_univerInstanceService','delete','_config','complete','takeUntil','asObservable','_handleOperation','getTypeOfUnitAdded$','jsx','UniverLiveSharePlugin','iterator','_status$','pipe','disposeWithMe','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','version','dispose$','tryStartPresenting','LIVESHARE_OPERATION','_collabSessionService','_handleOnline','1169608HJrCaY','defineProperty','InsertSheetMutation','_injector','_handleTerminate','onCommandExecuted','Present\x20this\x20document','getMemberID','stringify','Button','onRendered','_status','UniverInstanceType','DisposableCollection','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-gray-0\x20dark:!univer-text-gray-0','mutations','_sharedOperations','subscribe','stopFollowing','RxDisposable','_handleNewChangeSets','requireSession','_startPresenting','override','6zLcRxP','type','unitId','getCurrentTypeOfUnit$','BuiltInUIPart','_commandService','4797248QjqQVz','1705580EoTXiG','status$','forEach','You\x27re\x20following\x20the\x20presenter','toPrimitive','NOT_FOLLOWING','LiveShareStatus','1.0.0-beta.2','getValue','_unitID','params','SetScrollOperation','LIVESHARE_REQUEST_HOST','NEW_CHANGESETS','getConfig','event$','SetZoomRatioOperation','CollaborationEvent','shouldShareOperation','unsubscribe','_handleNewHost','jsxs','IConfigService','Dropdown','useDependency','_reporters','useMemo','_init','Disposable','_startLiveShareCoordinator','getLiveShareCoordinatorSync','parseProtocolChangeset','Start\x20following','stopPresenting','2540832VTBYAs','_handleOffline','connectInjector','OPERATION','Module','CollaborationSessionService','SessionStatus','SAME_OPERATION_SHARE_INTERVAL','Injector','find','constructor','end','ICommandService','throttleTime','_uiPartsService','474847VtUsmi','executeCommand','LIVESHARE_TERMINATE','offline','769398laysCA','UniverCollaborationClientPlugin','prototype','has','getOwnPropertyDescriptor','OFFLINE','_commandDisposable','IUniverInstanceService','icon','decorate'];_0x184e=function(){return _0x171ea8;};return _0x184e();}let F=class extends n['Plugin']{constructor(_0x2d912e=T,_0x4dead5,_0x11597a){const _0x1d0406=_0x4cd5d4;super(),this[_0x1d0406(0x295)]=_0x2d912e,this[_0x1d0406(0x2ac)]=_0x4dead5,this['_configService']=_0x11597a;let {..._0x44abc4}=(0x0,n[_0x1d0406(0x292)])({},T,this[_0x1d0406(0x295)]);this['_configService']['setConfig']('live-share.config',_0x44abc4);}[_0x4cd5d4(0x283)](){const _0xad412c=_0x4cd5d4;(0x0,n[_0xad412c(0x291)])(this['_injector'],(0x0,n[_0xad412c(0x256)])([[_],[b],[E],[P]],this[_0xad412c(0x295)][_0xad412c(0x203)])),(0x0,n['touchDependencies'])(this['_injector'],[[E]]);}[_0x4cd5d4(0x1f5)](){const _0x5895f4=_0x4cd5d4;(0x0,n[_0x5895f4(0x266)])(this[_0x5895f4(0x2ac)],[[P]]);}};g(F,_0x4cd5d4(0x205),n[_0x4cd5d4(0x1f7)][_0x4cd5d4(0x28a)]),g(F,'pluginName','UNIVER_LIVE_SHARE_PLUGIN'),g(F,'packageName',C),g(F,_0x4cd5d4(0x2a3),w),F=y([(0x0,n[_0x4cd5d4(0x272)])(o['UniverLicensePlugin'],t[_0x4cd5d4(0x241)]),v(0x1,(0x0,n[_0x4cd5d4(0x27a)])(n[_0x4cd5d4(0x235)])),v(0x2,n[_0x4cd5d4(0x221)])],F),Object[_0x4cd5d4(0x2aa)](exports,_0x4cd5d4(0x28c),{'enumerable':!0x0,'get':function(){return b;}}),exports[_0x4cd5d4(0x211)]=x,Object[_0x4cd5d4(0x2aa)](exports,_0x4cd5d4(0x29c),{'enumerable':!0x0,'get':function(){return F;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0xd4a3(_0x4e1c86,_0x4fd494){_0x4e1c86=_0x4e1c86-0x15c;const _0x3cec04=_0x3cec();let _0xd4a39e=_0x3cec04[_0x4e1c86];return _0xd4a39e;}const _0x51148e=_0xd4a3;(function(_0x2ca478,_0x4cb6ee){const _0x1f30b1=_0xd4a3,_0x5eea3a=_0x2ca478();while(!![]){try{const _0x4f892d=-parseInt(_0x1f30b1(0x15c))/0x1+-parseInt(_0x1f30b1(0x16e))/0x2*(parseInt(_0x1f30b1(0x16d))/0x3)+-parseInt(_0x1f30b1(0x17c))/0x4+parseInt(_0x1f30b1(0x167))/0x5*(-parseInt(_0x1f30b1(0x164))/0x6)+parseInt(_0x1f30b1(0x17b))/0x7*(-parseInt(_0x1f30b1(0x175))/0x8)+-parseInt(_0x1f30b1(0x17d))/0x9*(-parseInt(_0x1f30b1(0x165))/0xa)+parseInt(_0x1f30b1(0x169))/0xb;if(_0x4f892d===_0x4cb6ee)break;else _0x5eea3a['push'](_0x5eea3a['shift']());}catch(_0x7062d8){_0x5eea3a['push'](_0x5eea3a['shift']());}}}(_0x3cec,0x2c36f));import{LiveShareController as _0x539a72,LiveShareStatus as _0x125f72}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4fee72,UniverInstanceType as _0x4fc52d}from'@univerjs/core';import{FEnum as _0x4ccc85,FUniver as _0x1da31e}from'@univerjs/core/facade';function o(_0x5cf5ed){'@babel/helpers - typeof';const _0x16c2fc=_0xd4a3;return o=typeof Symbol==_0x16c2fc(0x176)&&typeof Symbol[_0x16c2fc(0x177)]==_0x16c2fc(0x168)?function(_0x5b13d6){return typeof _0x5b13d6;}:function(_0x1b8504){const _0x4a2404=_0x16c2fc;return _0x1b8504&&typeof Symbol==_0x4a2404(0x176)&&_0x1b8504[_0x4a2404(0x161)]===Symbol&&_0x1b8504!==Symbol['prototype']?'symbol':typeof _0x1b8504;},o(_0x5cf5ed);}function s(_0x197109,_0x23fc0b){const _0x548271=_0xd4a3;if(o(_0x197109)!=_0x548271(0x16b)||!_0x197109)return _0x197109;var _0x5e3cae=_0x197109[Symbol[_0x548271(0x179)]];if(_0x5e3cae!==void 0x0){var _0x36ce41=_0x5e3cae[_0x548271(0x163)](_0x197109,_0x23fc0b||_0x548271(0x160));if(o(_0x36ce41)!=_0x548271(0x16b))return _0x36ce41;throw TypeError(_0x548271(0x174));}return(_0x23fc0b==='string'?String:Number)(_0x197109);}function c(_0x4b0b94){const _0x289355=_0xd4a3;var _0x146bdb=s(_0x4b0b94,'string');return o(_0x146bdb)==_0x289355(0x168)?_0x146bdb:_0x146bdb+'';}function l(_0x217751,_0x3910ff,_0x1c7d63){const _0x2ab363=_0xd4a3;return(_0x3910ff=c(_0x3910ff))in _0x217751?Object[_0x2ab363(0x16a)](_0x217751,_0x3910ff,{'value':_0x1c7d63,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x217751[_0x3910ff]=_0x1c7d63,_0x217751;}var u=class extends _0x1da31e{constructor(..._0x592c4a){super(..._0x592c4a),l(this,'_liveShareController',void 0x0);}[_0x51148e(0x16c)](_0x3c181e){const _0x56a95f=_0x51148e;this[_0x56a95f(0x172)]=_0x3c181e['get'](_0x539a72);}['getLiveShareStatus'](){const _0x5a96c5=_0x51148e;let _0x57432a=this[_0x5a96c5(0x178)][_0x5a96c5(0x180)](_0x4fee72)[_0x5a96c5(0x170)](_0x4fc52d[_0x5a96c5(0x17e)]);if(!_0x57432a)throw Error(_0x5a96c5(0x15f));let _0x43118b=_0x57432a[_0x5a96c5(0x15e)](),_0x18af2a=this[_0x5a96c5(0x172)]['getLiveShareCoordinatorSync'](_0x43118b);return(_0x18af2a==null?void 0x0:_0x18af2a['getStatus']())??_0x125f72[_0x5a96c5(0x171)];}['startFollowing'](){const _0x1ca474=_0x51148e;let _0x7dadd6=this[_0x1ca474(0x178)][_0x1ca474(0x180)](_0x4fee72)['getCurrentUnitOfType'](_0x4fc52d[_0x1ca474(0x17e)]);if(!_0x7dadd6)throw Error('No\x20active\x20workbook\x20found.');let _0x7757bd=_0x7dadd6[_0x1ca474(0x15e)](),_0x43ac26=this['_liveShareController'][_0x1ca474(0x162)](_0x7757bd);if(!_0x43ac26)throw Error(_0x1ca474(0x17f));_0x43ac26['startFollowing']();}[_0x51148e(0x166)](){const _0x1b40a0=_0x51148e;let _0xd0ebcc=this[_0x1b40a0(0x178)][_0x1b40a0(0x180)](_0x4fee72)[_0x1b40a0(0x170)](_0x4fc52d[_0x1b40a0(0x17e)]);if(!_0xd0ebcc)throw Error('No\x20active\x20workbook\x20found.');let _0x413187=_0xd0ebcc[_0x1b40a0(0x15e)](),_0x5d20f7=this[_0x1b40a0(0x172)]['getLiveShareCoordinatorSync'](_0x413187);if(!_0x5d20f7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d20f7[_0x1b40a0(0x166)]();}[_0x51148e(0x17a)](){const _0x3eb82c=_0x51148e;let _0x214f9b=this[_0x3eb82c(0x178)]['get'](_0x4fee72)['getCurrentUnitOfType'](_0x4fc52d[_0x3eb82c(0x17e)]);if(!_0x214f9b)throw Error(_0x3eb82c(0x15f));let _0x49d350=_0x214f9b[_0x3eb82c(0x15e)](),_0x54aca3=this[_0x3eb82c(0x172)][_0x3eb82c(0x162)](_0x49d350);if(!_0x54aca3)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54aca3[_0x3eb82c(0x173)]();}[_0x51148e(0x15d)](){const _0x1ebd7d=_0x51148e;let _0x245298=this[_0x1ebd7d(0x178)][_0x1ebd7d(0x180)](_0x4fee72)[_0x1ebd7d(0x170)](_0x4fc52d[_0x1ebd7d(0x17e)]);if(!_0x245298)throw Error(_0x1ebd7d(0x15f));let _0x1db68b=_0x245298[_0x1ebd7d(0x15e)](),_0x498815=this[_0x1ebd7d(0x172)][_0x1ebd7d(0x162)](_0x1db68b);if(!_0x498815)throw Error(_0x1ebd7d(0x17f));_0x498815[_0x1ebd7d(0x15d)]();}};function _0x3cec(){const _0x278e2d=['91tnNKBV','1238952ZFMTxC','2075130MzhNEV','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','get','341243qjNsyl','stopPresenting','getUnitId','No\x20active\x20workbook\x20found.','default','constructor','getLiveShareCoordinatorSync','call','28590FuHuNd','10MPoNaS','stopFollowing','5PYYAAS','symbol','11272767TvZgqW','defineProperty','object','_initialize','3laRSsz','617648oYwilT','extend','getCurrentUnitOfType','IDLE','_liveShareController','tryStartPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','67504OJGhmd','function','iterator','_injector','toPrimitive','startPresenting'];_0x3cec=function(){return _0x278e2d;};return _0x3cec();}_0x1da31e[_0x51148e(0x16f)](u);var d=class extends _0x4ccc85{get['LiveShareStatusEnum'](){return _0x125f72;}};_0x4ccc85[_0x51148e(0x16f)](d);export{};
1
+ function _0x22cc(){const _0x28ffb3=['2LjdGNz','2380821fgKJcw','stopPresenting','object','IDLE','defineProperty','_injector','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','get','startPresenting','7527321mPURuG','startFollowing','prototype','getCurrentUnitOfType','tryStartPresenting','13726610RMORSH','default','getUnitId','2866585NrrKFl','extend','1047052XIfzLw','UNIVER_SHEET','1286290tmhgrl','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','getLiveShareStatus','6LAPZNO','getLiveShareCoordinatorSync','constructor','2675764HQdJtL','toPrimitive','function','No\x20active\x20workbook\x20found.','call','8kOgiXz','getStatus','iterator','_liveShareController'];_0x22cc=function(){return _0x28ffb3;};return _0x22cc();}const _0x2f56f2=_0x4a75;(function(_0x57e18a,_0x5b78f6){const _0xbea353=_0x4a75,_0x292458=_0x57e18a();while(!![]){try{const _0x52e69a=-parseInt(_0xbea353(0x15e))/0x1+parseInt(_0xbea353(0x147))/0x2*(parseInt(_0xbea353(0x148))/0x3)+-parseInt(_0xbea353(0x15c))/0x4+-parseInt(_0xbea353(0x15a))/0x5*(-parseInt(_0xbea353(0x162))/0x6)+parseInt(_0xbea353(0x165))/0x7*(parseInt(_0xbea353(0x143))/0x8)+-parseInt(_0xbea353(0x152))/0x9+parseInt(_0xbea353(0x157))/0xa;if(_0x52e69a===_0x5b78f6)break;else _0x292458['push'](_0x292458['shift']());}catch(_0x3d8c9d){_0x292458['push'](_0x292458['shift']());}}}(_0x22cc,0xb4087));import{LiveShareController as _0x34cebe,LiveShareStatus as _0x5404dd}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x331696,UniverInstanceType as _0xa9d19d}from'@univerjs/core';import{FEnum as _0x288fdd,FUniver as _0x41b420}from'@univerjs/core/facade';function o(_0x8c2599){'@babel/helpers - typeof';const _0x47943c=_0x4a75;return o=typeof Symbol==_0x47943c(0x140)&&typeof Symbol[_0x47943c(0x145)]==_0x47943c(0x160)?function(_0x1ce762){return typeof _0x1ce762;}:function(_0x1d346e){const _0x3a837c=_0x47943c;return _0x1d346e&&typeof Symbol==_0x3a837c(0x140)&&_0x1d346e[_0x3a837c(0x164)]===Symbol&&_0x1d346e!==Symbol[_0x3a837c(0x154)]?_0x3a837c(0x160):typeof _0x1d346e;},o(_0x8c2599);}function s(_0x5cca3b,_0x5c8220){const _0x456b5b=_0x4a75;if(o(_0x5cca3b)!=_0x456b5b(0x14a)||!_0x5cca3b)return _0x5cca3b;var _0x2f5aa7=_0x5cca3b[Symbol[_0x456b5b(0x166)]];if(_0x2f5aa7!==void 0x0){var _0x161620=_0x2f5aa7[_0x456b5b(0x142)](_0x5cca3b,_0x5c8220||_0x456b5b(0x158));if(o(_0x161620)!=_0x456b5b(0x14a))return _0x161620;throw TypeError(_0x456b5b(0x15f));}return(_0x5c8220==='string'?String:Number)(_0x5cca3b);}function _0x4a75(_0x210403,_0x12f677){_0x210403=_0x210403-0x140;const _0x22cc42=_0x22cc();let _0x4a7526=_0x22cc42[_0x210403];return _0x4a7526;}function c(_0x286b68){const _0x5f0c24=_0x4a75;var _0x309fee=s(_0x286b68,'string');return o(_0x309fee)==_0x5f0c24(0x160)?_0x309fee:_0x309fee+'';}function l(_0x15f780,_0x5e467f,_0x5818bc){const _0x4b3e8b=_0x4a75;return(_0x5e467f=c(_0x5e467f))in _0x15f780?Object[_0x4b3e8b(0x14c)](_0x15f780,_0x5e467f,{'value':_0x5818bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15f780[_0x5e467f]=_0x5818bc,_0x15f780;}var u=class extends _0x41b420{constructor(..._0xba59ea){const _0x51087e=_0x4a75;super(..._0xba59ea),l(this,_0x51087e(0x146),void 0x0);}['_initialize'](_0x4dbf6e){const _0x51de=_0x4a75;this[_0x51de(0x146)]=_0x4dbf6e['get'](_0x34cebe);}[_0x2f56f2(0x161)](){const _0x2bb22c=_0x2f56f2;let _0x5e924c=this[_0x2bb22c(0x14d)]['get'](_0x331696)[_0x2bb22c(0x155)](_0xa9d19d[_0x2bb22c(0x15d)]);if(!_0x5e924c)throw Error(_0x2bb22c(0x141));let _0x4311be=_0x5e924c[_0x2bb22c(0x159)](),_0x267ed0=this['_liveShareController'][_0x2bb22c(0x163)](_0x4311be);return(_0x267ed0==null?void 0x0:_0x267ed0[_0x2bb22c(0x144)]())??_0x5404dd[_0x2bb22c(0x14b)];}[_0x2f56f2(0x153)](){const _0x5bf59e=_0x2f56f2;let _0x5abcaf=this['_injector'][_0x5bf59e(0x150)](_0x331696)[_0x5bf59e(0x155)](_0xa9d19d[_0x5bf59e(0x15d)]);if(!_0x5abcaf)throw Error('No\x20active\x20workbook\x20found.');let _0x1a815a=_0x5abcaf[_0x5bf59e(0x159)](),_0x15c11c=this[_0x5bf59e(0x146)][_0x5bf59e(0x163)](_0x1a815a);if(!_0x15c11c)throw Error(_0x5bf59e(0x14f));_0x15c11c[_0x5bf59e(0x153)]();}[_0x2f56f2(0x14e)](){const _0x285500=_0x2f56f2;let _0xd9af94=this[_0x285500(0x14d)]['get'](_0x331696)[_0x285500(0x155)](_0xa9d19d[_0x285500(0x15d)]);if(!_0xd9af94)throw Error('No\x20active\x20workbook\x20found.');let _0x264f39=_0xd9af94[_0x285500(0x159)](),_0x15aeb4=this[_0x285500(0x146)][_0x285500(0x163)](_0x264f39);if(!_0x15aeb4)throw Error(_0x285500(0x14f));_0x15aeb4['stopFollowing']();}[_0x2f56f2(0x151)](){const _0x4bfeba=_0x2f56f2;let _0x58afe2=this['_injector']['get'](_0x331696)[_0x4bfeba(0x155)](_0xa9d19d[_0x4bfeba(0x15d)]);if(!_0x58afe2)throw Error(_0x4bfeba(0x141));let _0x1d77c9=_0x58afe2[_0x4bfeba(0x159)](),_0x299565=this['_liveShareController'][_0x4bfeba(0x163)](_0x1d77c9);if(!_0x299565)throw Error(_0x4bfeba(0x14f));_0x299565[_0x4bfeba(0x156)]();}[_0x2f56f2(0x149)](){const _0x529821=_0x2f56f2;let _0x279430=this['_injector'][_0x529821(0x150)](_0x331696)['getCurrentUnitOfType'](_0xa9d19d[_0x529821(0x15d)]);if(!_0x279430)throw Error('No\x20active\x20workbook\x20found.');let _0x3b7f76=_0x279430[_0x529821(0x159)](),_0xc11b86=this['_liveShareController'][_0x529821(0x163)](_0x3b7f76);if(!_0xc11b86)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xc11b86[_0x529821(0x149)]();}};_0x41b420[_0x2f56f2(0x15b)](u);var d=class extends _0x288fdd{get['LiveShareStatusEnum'](){return _0x5404dd;}};_0x288fdd[_0x2f56f2(0x15b)](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d3474=_0x2854;(function(_0x5f0760,_0x181a35){const _0x42335f=_0x2854,_0x2c3c85=_0x5f0760();while(!![]){try{const _0x39d334=parseInt(_0x42335f(0xa7))/0x1*(-parseInt(_0x42335f(0x124))/0x2)+parseInt(_0x42335f(0xac))/0x3*(-parseInt(_0x42335f(0xa6))/0x4)+parseInt(_0x42335f(0xc6))/0x5+-parseInt(_0x42335f(0x107))/0x6*(-parseInt(_0x42335f(0xe5))/0x7)+-parseInt(_0x42335f(0x9e))/0x8+parseInt(_0x42335f(0x106))/0x9*(-parseInt(_0x42335f(0x10b))/0xa)+-parseInt(_0x42335f(0xf7))/0xb*(-parseInt(_0x42335f(0xdb))/0xc);if(_0x39d334===_0x181a35)break;else _0x2c3c85['push'](_0x2c3c85['shift']());}catch(_0x145ec2){_0x2c3c85['push'](_0x2c3c85['shift']());}}}(_0x20d9,0x7a4c9));function _0x20d9(){const _0x3d455c=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','not-following','NOT_FOLLOWING','function','ONLINE','2xqlSpO','subscribe','packageName','data','dispose','forEach','_config','params','iterator','_beIdle','_univerInstanceService','createInstance','symbol','stopFollowing','4077480mYKlEr','pluginName','following','_stopPresenting','operations','LIVESHARE_OPERATION','live-share.config','OFFLINE','12828roaXOr','82855qaBEHm','stopPresenting','_handleTerminate','clear','PRESENTING','597LkWSoE','You\x27re\x20presenting\x20the\x20document','_collabSessionService','find','executeCommand','_startLiveShareCoordinator','_handleNewChangeSets','_startPresenting','constructor','_status$','unit','_stopFollowing','decorate','from','_handleOperation','unitId','You\x27re\x20following\x20the\x20presenter','length','getLiveShareCoordinator','has','getCurrentTypeOfUnit$','sheet','_entities','shouldShareOperation','sessionStatus$','asObservable','3566510gENPHl','You\x27re\x20not\x20following\x20the\x20presenter','_liveShareService','getMemberID','getUnitId','next','_presenter','_fetchOperations','_handleOnline','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','text','delete','_reporters','_sharedOperations','_unitID','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','offline','status$','getInitialStates','idle','12JKgmOR','_status','mutations','registerComponent','_init','getConfig','registerInitialStateReporter','prototype','_commandService','map','14yuaDDj','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','end','reverse','getTypeOfUnitDisposed$','button','@univerjs-pro/live-share','get','UNIVER_SHEET','values','send','_uiPartsService','1.0.0-beta.0','version','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','startFollowing','6745310GDzqhO','Start\x20following','getLiveShareCoordinatorSync','onStarting','_injector','_handleNewHost','disposeWithMe','type','subject','complete','includes','toPrimitive','set','add','_collabSession','315OFUwVn','2815884Audotw','_handleOffline','onRendered','div','152420CzbKjX','init','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','getStatus','presenting','call','OPERATION','stringify','Present\x20this\x20document','dispose$','unsubscribe','pipe','_startFollowing','Stop\x20following','parse','_commandDisposable','LIVESHARE_TERMINATE','override','_configService'];_0x20d9=function(){return _0x3d455c;};return _0x20d9();}import{CollaborationEvent as _0x4ab04f,parseProtocolChangeset as _0x3686e3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e2bfa,SessionStatus as _0x3cfb03,UniverCollaborationClientPlugin as _0x169e26}from'@univerjs-pro/collaboration-client';import{CommandType as _0x3f9d18,DependentOn as _0x1df6e6,Disposable as _0x37dab6,DisposableCollection as _0x16da52,ICommandService as _0x54fef7,IConfigService as _0x5cb103,IUniverInstanceService as _0x58af8f,Inject as _0x23d73f,Injector as _0x2866b9,Plugin as _0x80eeb6,RxDisposable as _0x280041,UniverInstanceType as _0x280b3d,merge as _0x1647dc,mergeOverrideWithDependencies as _0x230d60,registerDependencies as _0x3b9a91,toDisposable as _0x479b00,touchDependencies as _0x1bd490}from'@univerjs/core';import{InsertSheetMutation as _0x210969,SetWorksheetActiveOperation as _0x50d6fc}from'@univerjs/sheets';import{BehaviorSubject as _0x5093e4,Subject as _0x221a48,defer as _0x4f094b,from as _0x2dccd7,of as _0x2cbaa5}from'rxjs';import{takeUntil as _0x440641,throttleTime as _0x1c63c6}from'rxjs/operators';import{UniverLicensePlugin as _0x1b707d}from'@univerjs-pro/license';import{SetScrollOperation as _0x2225eb,SetZoomRatioOperation as _0x4b25e1}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x342367,IUIPartsService as _0x320286,connectInjector as _0x380dde,useDependency as _0x4ab0a4,useObservable as _0x1ea96e}from'@univerjs/ui';import{Button as _0x1bffb1,Dropdown as _0x4e4083,clsx as _0x1a3bc1}from'@univerjs/design';import{LiveShareIcon as _0x16c49d}from'@univerjs/icons';import{useMemo as _0x1fe622}from'react';import{Fragment as _0x21d3a1,jsx as _0x5bd8d4,jsxs as _0x352f4e}from'react/jsx-runtime';function V(_0x2a2aef){'@babel/helpers - typeof';const _0x5556f3=_0x2854;return V=typeof Symbol=='function'&&typeof Symbol[_0x5556f3(0x98)]==_0x5556f3(0x9c)?function(_0x2d8ac3){return typeof _0x2d8ac3;}:function(_0x57e4b7){const _0x22a01d=_0x5556f3;return _0x57e4b7&&typeof Symbol==_0x22a01d(0x122)&&_0x57e4b7[_0x22a01d(0xb4)]===Symbol&&_0x57e4b7!==Symbol[_0x22a01d(0xe2)]?_0x22a01d(0x9c):typeof _0x57e4b7;},V(_0x2a2aef);}function H(_0xa3634e,_0x2cbd2e){const _0x2c672d=_0x2854;if(V(_0xa3634e)!='object'||!_0xa3634e)return _0xa3634e;var _0x3abb98=_0xa3634e[Symbol[_0x2c672d(0x102)]];if(_0x3abb98!==void 0x0){var _0x518d4c=_0x3abb98[_0x2c672d(0x111)](_0xa3634e,_0x2cbd2e||'default');if(V(_0x518d4c)!='object')return _0x518d4c;throw TypeError(_0x2c672d(0x11f));}return(_0x2cbd2e==='string'?String:Number)(_0xa3634e);}function U(_0x5d68c1){const _0x1308e8=_0x2854;var _0x50bf67=H(_0x5d68c1,'string');return V(_0x50bf67)==_0x1308e8(0x9c)?_0x50bf67:_0x50bf67+'';}function W(_0x8adaf2,_0x2f32c3,_0xd312a5){return(_0x2f32c3=U(_0x2f32c3))in _0x8adaf2?Object['defineProperty'](_0x8adaf2,_0x2f32c3,{'value':_0xd312a5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8adaf2[_0x2f32c3]=_0xd312a5,_0x8adaf2;}var G=class extends _0x37dab6{constructor(..._0x211e46){const _0x49a9d0=_0x2854;super(..._0x211e46),W(this,_0x49a9d0(0xd3),new Set()),W(this,_0x49a9d0(0xd2),new Set());}[_0x3d3474(0x10e)](_0x3e7abc){const _0x34c6bf=_0x3d3474;return this[_0x34c6bf(0xd3)][_0x34c6bf(0x104)](_0x3e7abc),_0x479b00(()=>this[_0x34c6bf(0xd3)][_0x34c6bf(0xd1)](_0x3e7abc));}[_0x3d3474(0xe1)](_0x2e7754){const _0x3abd6d=_0x3d3474;return this[_0x3abd6d(0xd2)][_0x3abd6d(0x104)](_0x2e7754),_0x479b00(()=>this[_0x3abd6d(0xd2)][_0x3abd6d(0xd1)](_0x2e7754));}['shouldShareOperation'](_0x504cf8){const _0xdb1407=_0x3d3474;return this[_0xdb1407(0xd3)][_0xdb1407(0xbf)](_0x504cf8);}['getInitialStates'](_0x9eeacd){const _0x57441e=_0x3d3474;return Array[_0x57441e(0xb9)](this[_0x57441e(0xd2)])[_0x57441e(0xe4)](_0x533e98=>_0x533e98(_0x9eeacd));}};function _0x2854(_0x81910a,_0x7c50bc){_0x81910a=_0x81910a-0x97;const _0x20d977=_0x20d9();let _0x285470=_0x20d977[_0x81910a];return _0x285470;}function K(_0x5eea0d,_0x31c4be){return function(_0x2c48fc,_0x203b2a){_0x31c4be(_0x2c48fc,_0x203b2a,_0x5eea0d);};}function q(_0x29521e,_0x205cfd,_0x24b594,_0x1a8959){const _0x3a54fe=_0x3d3474;var _0x515e12=arguments[_0x3a54fe(0xbd)],_0x4d1b0c=_0x515e12<0x3?_0x205cfd:_0x1a8959===null?_0x1a8959=Object['getOwnPropertyDescriptor'](_0x205cfd,_0x24b594):_0x1a8959,_0x551ddb;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3a54fe(0x122))_0x4d1b0c=Reflect[_0x3a54fe(0xb8)](_0x29521e,_0x205cfd,_0x24b594,_0x1a8959);else{for(var _0x34036f=_0x29521e[_0x3a54fe(0xbd)]-0x1;_0x34036f>=0x0;_0x34036f--)(_0x551ddb=_0x29521e[_0x34036f])&&(_0x4d1b0c=(_0x515e12<0x3?_0x551ddb(_0x4d1b0c):_0x515e12>0x3?_0x551ddb(_0x205cfd,_0x24b594,_0x4d1b0c):_0x551ddb(_0x205cfd,_0x24b594))||_0x4d1b0c);}return _0x515e12>0x3&&_0x4d1b0c&&Object['defineProperty'](_0x205cfd,_0x24b594,_0x4d1b0c),_0x4d1b0c;}let J=class extends _0x280041{constructor(_0x182bd1,_0x3a8905,_0x371e39){const _0x29e1c1=_0x3d3474;super(),this['_univerInstanceService']=_0x182bd1,this[_0x29e1c1(0xfb)]=_0x3a8905,this[_0x29e1c1(0xae)]=_0x371e39,W(this,_0x29e1c1(0xc2),new Map()),this[_0x29e1c1(0xdf)]();}async[_0x3d3474(0xbe)](_0x35d6e1){const _0x518c09=_0x3d3474;return this[_0x518c09(0xc2)]['has'](_0x35d6e1)||await this['_startLiveShareCoordinator'](_0x35d6e1),this['_entities'][_0x518c09(0xed)](_0x35d6e1);}[_0x3d3474(0xf9)](_0x37b02b){const _0xde0f6f=_0x3d3474;return this[_0xde0f6f(0xc2)][_0xde0f6f(0xed)](_0x37b02b)??null;}[_0x3d3474(0xdf)](){const _0x54b0f=_0x3d3474;this['_univerInstanceService'][_0x54b0f(0xe6)](_0x280b3d[_0x54b0f(0xee)])[_0x54b0f(0x117)](_0x440641(this[_0x54b0f(0x115)]))[_0x54b0f(0x125)](async _0x4b17f5=>{const _0x172791=_0x54b0f;let _0x4e9c50=_0x4b17f5[_0x172791(0xb6)][_0x172791(0xca)]();this['_entities']['has'](_0x4e9c50)||this[_0x172791(0xb1)](_0x4e9c50);}),this[_0x54b0f(0x9a)][_0x54b0f(0xea)](_0x280b3d[_0x54b0f(0xee)])['pipe'](_0x440641(this[_0x54b0f(0x115)]))[_0x54b0f(0x125)](_0x50363e=>{const _0x2cd488=_0x54b0f;let _0x2f74a5=_0x50363e[_0x2cd488(0xca)](),_0x2ad80b=this[_0x2cd488(0xc2)][_0x2cd488(0xed)](_0x2f74a5);_0x2ad80b==null||_0x2ad80b[_0x2cd488(0x128)]();});}async[_0x3d3474(0xb1)](_0x229974){const _0x1e835f=_0x3d3474;let _0xe6b145=await this[_0x1e835f(0xae)]['requireSession'](_0x229974),_0x118810=this['_injector'][_0x1e835f(0x9b)](Y,_0x229974,_0xe6b145);return _0x118810[_0x1e835f(0x10c)](),this[_0x1e835f(0xc2)][_0x1e835f(0x103)](_0x229974,_0x118810),_0x118810;}};J=q([K(0x0,_0x58af8f),K(0x1,_0x23d73f(_0x2866b9)),K(0x2,_0x23d73f(_0x1e2bfa))],J);let oe=function(_0x5b6fb8){const _0x3ea028=_0x3d3474;return _0x5b6fb8[_0x3ea028(0xa5)]=_0x3ea028(0xd7),_0x5b6fb8['IDLE']=_0x3ea028(0xda),_0x5b6fb8['FOLLOWING']=_0x3ea028(0xa0),_0x5b6fb8[_0x3ea028(0x121)]=_0x3ea028(0x120),_0x5b6fb8[_0x3ea028(0xab)]=_0x3ea028(0x110),_0x5b6fb8;}({}),Y=class extends _0x280041{get[_0x3d3474(0xdc)](){const _0x2435bf=_0x3d3474;return this[_0x2435bf(0xb5)]['getValue']();}constructor(_0x3d816,_0x321ec7,_0x546432,_0x1bf24d,_0x2c5bb7){const _0x362799=_0x3d3474;super(),this['_unitID']=_0x3d816,this[_0x362799(0x105)]=_0x321ec7,this['_configService']=_0x546432,this[_0x362799(0xc8)]=_0x1bf24d,this[_0x362799(0xe3)]=_0x2c5bb7,W(this,_0x362799(0xb5),new _0x5093e4('idle')),W(this,'status$',this[_0x362799(0xb5)][_0x362799(0xc5)]()),W(this,'_init',!0x1),W(this,_0x362799(0x11b),null),W(this,_0x362799(0xcc),null);}[_0x3d3474(0x128)](){const _0x2deb35=_0x3d3474;var _0x1afb5d;(_0x1afb5d=this[_0x2deb35(0x11b)])==null||_0x1afb5d[_0x2deb35(0x128)](),this[_0x2deb35(0xb5)]['next'](_0x2deb35(0xda)),this[_0x2deb35(0xb5)]['complete']();}[_0x3d3474(0x10f)](){const _0x308af3=_0x3d3474;return this[_0x308af3(0xdc)];}['init'](){const _0x2e7b4d=_0x3d3474;this[_0x2e7b4d(0xdf)]||(this[_0x2e7b4d(0xdf)]=!0x0,this[_0x2e7b4d(0x105)][_0x2e7b4d(0xc4)][_0x2e7b4d(0x117)](_0x440641(this[_0x2e7b4d(0x115)]))[_0x2e7b4d(0x125)](_0x185a62=>{const _0x460fd4=_0x2e7b4d;switch(_0x185a62){case _0x3cfb03[_0x460fd4(0xa5)]:this[_0x460fd4(0x108)]();break;case _0x3cfb03[_0x460fd4(0x123)]:this['_handleOnline']();break;default:}}),this[_0x2e7b4d(0x105)]['event$'][_0x2e7b4d(0x117)](_0x440641(this[_0x2e7b4d(0x115)]))['subscribe'](_0x543dd3=>{const _0x5ea59b=_0x2e7b4d;let {eventID:_0xb96666}=_0x543dd3;switch(_0xb96666){case _0x4ab04f['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x543dd3);break;case _0x4ab04f[_0x5ea59b(0xa3)]:this[_0x5ea59b(0xba)](_0x543dd3);break;case _0x4ab04f['LIVESHARE_TERMINATE']:this[_0x5ea59b(0xa9)]();break;case _0x4ab04f['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x543dd3);break;default:}}));}['tryStartPresenting'](){const _0x4f1cf5=_0x3d3474;this[_0x4f1cf5(0x105)][_0x4f1cf5(0xf0)]({'eventID':_0x4ab04f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f1cf5(0xd4)],'userID':this[_0x4f1cf5(0x105)][_0x4f1cf5(0xc9)]()}},this['_unitID']);}['stopPresenting'](){const _0x2f1191=_0x3d3474;this[_0x2f1191(0xdc)]===_0x2f1191(0x110)&&(this[_0x2f1191(0xb5)][_0x2f1191(0xcb)](_0x2f1191(0xda)),this['_collabSession'][_0x2f1191(0xf0)]({'eventID':_0x4ab04f[_0x2f1191(0x11c)],'data':{'unitID':this[_0x2f1191(0xd4)]}},this[_0x2f1191(0xd4)]));}[_0x3d3474(0xf6)](){const _0x3dcbd6=_0x3d3474;this[_0x3dcbd6(0xdc)]===_0x3dcbd6(0x120)&&(this[_0x3dcbd6(0xb5)][_0x3dcbd6(0xcb)](_0x3dcbd6(0xa0)),this['_startFollowing']());}[_0x3d3474(0x9d)](){const _0x44fa81=_0x3d3474;this[_0x44fa81(0xdc)]===_0x44fa81(0xa0)&&this[_0x44fa81(0xb7)]();}[_0x3d3474(0xfc)](_0x14083f){const _0x1e39ca=_0x3d3474;let {presenter:_0x253ead}=_0x14083f['data'],_0x38c459=this['_collabSession']['getMemberID']();this[_0x1e39ca(0xcc)]=_0x253ead,_0x253ead===_0x38c459?(this[_0x1e39ca(0xb7)](),this[_0x1e39ca(0xb3)]()):this[_0x1e39ca(0xdc)]!==_0x1e39ca(0x120)&&(this[_0x1e39ca(0xa1)](),this[_0x1e39ca(0x118)]());}[_0x3d3474(0xcd)](){const _0x222014=_0x3d3474;let _0x1380e4={'eventID':_0x4ab04f[_0x222014(0x10d)]};this[_0x222014(0x105)]['send'](_0x1380e4,this['_unitID']);}['_handleTerminate'](){const _0x509a04=_0x3d3474;this[_0x509a04(0xcc)]=null,this[_0x509a04(0xdc)]!==_0x509a04(0x110)&&this[_0x509a04(0x99)]();}[_0x3d3474(0xb2)](_0x52e952){const _0x3ecd9a=_0x3d3474;if(this[_0x3ecd9a(0xdc)]==='following'&&this[_0x3ecd9a(0xcc)]===_0x52e952[_0x3ecd9a(0x127)]['memberID']){let _0x53f7d0=_0x3686e3(_0x52e952[_0x3ecd9a(0x127)])[_0x3ecd9a(0xdd)][_0x3ecd9a(0xe9)]()[_0x3ecd9a(0xaf)](_0x4bc872=>_0x4bc872['id']===_0x210969['id']);if(_0x53f7d0){let _0x4a712a=_0x53f7d0[_0x3ecd9a(0x97)][_0x3ecd9a(0xbb)],_0x2acb33=_0x53f7d0[_0x3ecd9a(0x97)][_0x3ecd9a(0xc1)]['id'];setTimeout(()=>{const _0x5f21db=_0x3ecd9a;this[_0x5f21db(0xe3)][_0x5f21db(0xb0)](_0x50d6fc['id'],{'unitId':_0x4a712a,'subUnitId':_0x2acb33},{'fromCollab':!0x0});});}}}[_0x3d3474(0xb3)](){const _0x154a81=_0x3d3474;var _0x48bfbe;(_0x48bfbe=this['_commandDisposable'])==null||_0x48bfbe[_0x154a81(0x128)](),this[_0x154a81(0xb5)]['next'](_0x154a81(0x110));let _0x445548=new Map(),_0x53ca0a=this[_0x154a81(0x11b)]=new _0x16da52();_0x53ca0a[_0x154a81(0x104)](_0x479b00(()=>{const _0x318aa0=_0x154a81;_0x445548[_0x318aa0(0x129)](({subject:_0xf248e2,subscription:_0x37f1f3})=>{const _0x5be65d=_0x318aa0;_0x37f1f3[_0x5be65d(0x116)](),_0xf248e2[_0x5be65d(0x100)]();}),_0x445548[_0x318aa0(0xaa)]();})),_0x53ca0a[_0x154a81(0x104)](this['_commandService']['onCommandExecuted'](_0x2428f0=>{const _0x13434c=_0x154a81;if(_0x2428f0[_0x13434c(0xfe)]!==_0x3f9d18[_0x13434c(0x112)]||!this[_0x13434c(0xc8)][_0x13434c(0xc3)](_0x2428f0['id']))return;let {id:_0x33b59d}=_0x2428f0,_0x1e4899;if(_0x445548[_0x13434c(0xbf)](_0x33b59d))_0x1e4899=_0x445548[_0x13434c(0xed)](_0x33b59d)[_0x13434c(0xff)];else{_0x1e4899=new _0x221a48();let _0x488ef2=_0x1e4899[_0x13434c(0x117)](_0x1c63c6(this[_0x13434c(0x11e)][_0x13434c(0xe0)](_0x13434c(0xd5))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13434c(0x125)](_0x1b332f=>{const _0x1fb5d8=_0x13434c;this[_0x1fb5d8(0x105)][_0x1fb5d8(0xf0)]({'eventID':_0x4ab04f[_0x1fb5d8(0xa3)],'data':{'unitID':this[_0x1fb5d8(0xd4)],'operations':{[_0x1b332f['id']]:{'id':_0x1b332f['id'],'params':JSON[_0x1fb5d8(0x113)](_0x1b332f[_0x1fb5d8(0x97)])}}}},this['_unitID']);});_0x445548[_0x13434c(0x103)](_0x33b59d,{'subject':_0x1e4899,'subscription':_0x488ef2});}_0x1e4899[_0x13434c(0xcb)](_0x2428f0);})),this[_0x154a81(0xc8)][_0x154a81(0xd9)](this[_0x154a81(0xd4)])[_0x154a81(0x129)](_0x28b206=>this[_0x154a81(0x105)]['send']({'eventID':_0x4ab04f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x154a81(0xd4)],'operations':{[_0x28b206['id']]:{'id':_0x28b206['id'],'params':JSON[_0x154a81(0x113)](_0x28b206[_0x154a81(0x97)])}}}},this[_0x154a81(0xd4)]));}[_0x3d3474(0xa1)](){const _0x1fa1c4=_0x3d3474;var _0x8f4b8;this[_0x1fa1c4(0xb5)][_0x1fa1c4(0xcb)](_0x1fa1c4(0xda)),(_0x8f4b8=this[_0x1fa1c4(0x11b)])==null||_0x8f4b8[_0x1fa1c4(0x128)](),this[_0x1fa1c4(0x11b)]=null;}[_0x3d3474(0x118)](){const _0x499823=_0x3d3474;var _0x517d13;(_0x517d13=this['_commandDisposable'])==null||_0x517d13['dispose'](),this['_status$'][_0x499823(0xcb)](_0x499823(0xa0));}[_0x3d3474(0x99)](){const _0x4addee=_0x3d3474;var _0x9c727b;this['_status$'][_0x4addee(0xcb)](_0x4addee(0xda)),(_0x9c727b=this[_0x4addee(0x11b)])==null||_0x9c727b[_0x4addee(0x128)](),this[_0x4addee(0x11b)]=null;}[_0x3d3474(0xb7)](){const _0x2300f9=_0x3d3474;var _0x4bd277;this[_0x2300f9(0xb5)][_0x2300f9(0xcb)](_0x2300f9(0x120)),(_0x4bd277=this[_0x2300f9(0x11b)])==null||_0x4bd277[_0x2300f9(0x128)]();}['_handleOperation'](_0x243f81){const _0x2fb1e7=_0x3d3474;if(['presenting',_0x2fb1e7(0x120),_0x2fb1e7(0xd7)][_0x2fb1e7(0x101)](this['_status'])||!_0x243f81[_0x2fb1e7(0x127)]['presenter']||_0x243f81[_0x2fb1e7(0x127)][_0x2fb1e7(0xf4)]===this['_collabSession'][_0x2fb1e7(0xc9)]())return;this[_0x2fb1e7(0xdc)]===_0x2fb1e7(0xda)&&this[_0x2fb1e7(0x118)]();let _0x4b3ac3=_0x243f81[_0x2fb1e7(0x127)][_0x2fb1e7(0xa2)];Object[_0x2fb1e7(0xef)](_0x4b3ac3)[_0x2fb1e7(0x129)](_0x53498c=>{const _0x2bde56=_0x2fb1e7;this[_0x2bde56(0xe3)][_0x2bde56(0xb0)](_0x53498c['id'],_0x53498c['params']?JSON[_0x2bde56(0x11a)](_0x53498c[_0x2bde56(0x97)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x309719=_0x3d3474;var _0x2f1e5f;this[_0x309719(0xb5)][_0x309719(0xcb)]('offline'),(_0x2f1e5f=this['_commandDisposable'])==null||_0x2f1e5f[_0x309719(0x128)]();}[_0x3d3474(0xce)](){const _0x5857f7=_0x3d3474;this[_0x5857f7(0xb5)][_0x5857f7(0xcb)]('idle'),this['_fetchOperations']();}};Y=q([K(0x2,_0x5cb103),K(0x3,_0x23d73f(G)),K(0x4,_0x54fef7)],Y);var se=_0x3d3474(0xec),ce=_0x3d3474(0xf2);const X={};let Z=class extends _0x37dab6{constructor(_0xe74b0b){const _0x9f9776=_0x3d3474;super(),this['_liveShareService']=_0xe74b0b,this[_0x9f9776(0xdf)]();}[_0x3d3474(0xdf)](){const _0x511290=_0x3d3474;[_0x4b25e1['id'],_0x2225eb['id'],_0x50d6fc['id']][_0x511290(0x129)](_0x39ca4d=>{const _0x5bfb2c=_0x511290;this[_0x5bfb2c(0xfd)](this[_0x5bfb2c(0xc8)][_0x5bfb2c(0x10e)](_0x39ca4d));});}};Z=q([K(0x0,_0x23d73f(G))],Z);function le(){const _0x70a4ee=_0x3d3474;let _0x5684e9=_0x4ab0a4(J),_0x2dc67a=_0x4ab0a4(_0x58af8f),_0x94a27a=_0x1ea96e(()=>_0x2dc67a[_0x70a4ee(0xc0)](_0x280b3d[_0x70a4ee(0xee)]),void 0x0,!0x1,[]),_0x13f449=_0x1ea96e(_0x1fe622(()=>_0x94a27a?_0x4f094b(()=>_0x2dccd7(_0x5684e9[_0x70a4ee(0xbe)](_0x94a27a[_0x70a4ee(0xca)]()))):_0x2cbaa5(null),[_0x94a27a,_0x5684e9]),null),_0x2aa1d3=_0x1ea96e(_0x13f449?()=>_0x13f449[_0x70a4ee(0xd8)]:null,'idle',!0x1,[_0x13f449]);return _0x13f449?_0x5bd8d4(_0x4e4083,{'align':_0x70a4ee(0xe8),'disabled':_0x2aa1d3===_0x70a4ee(0xd7),'className':_0x70a4ee(0xcf),'overlay':_0x5bd8d4(ue,{'status':_0x2aa1d3,'coordinator':_0x13f449}),'children':_0x5bd8d4(_0x70a4ee(0xeb),{'className':_0x1a3bc1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2aa1d3===_0x70a4ee(0xd7),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2aa1d3!==_0x70a4ee(0xd7)}),'type':_0x70a4ee(0xeb),'children':_0x5bd8d4(_0x16c49d,{})})}):null;}function ue(_0x2417c6){const _0x5a73ff=_0x3d3474;let {status:_0x3067b2,coordinator:_0x4f35dd}=_0x2417c6;switch(_0x3067b2){case _0x5a73ff(0xda):return _0x5bd8d4(de,{'coordinator':_0x4f35dd});case'following':return _0x5bd8d4(fe,{'coordinator':_0x4f35dd});case _0x5a73ff(0x120):return _0x5bd8d4(pe,{'coordinator':_0x4f35dd});case _0x5a73ff(0xd7):return _0x5bd8d4(he,{});case _0x5a73ff(0x110):return _0x5bd8d4(me,{'coordinator':_0x4f35dd});default:return null;}}function de(_0x34057b){const _0x1f9013=_0x3d3474;let {coordinator:_0x4a7dfa}=_0x34057b;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4('div',{'className':_0x1f9013(0xf5),'children':_0x1f9013(0x114)}),_0x5bd8d4(_0x1bffb1,{'onClick':()=>_0x4a7dfa['tryStartPresenting'](),'children':'Start'})]});}function fe(_0x39547b){const _0x1d1f60=_0x3d3474;let {coordinator:_0xb6eab}=_0x39547b;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4(_0x1d1f60(0x10a),{'className':_0x1d1f60(0xf5),'children':_0x1d1f60(0xbc)}),_0x5bd8d4(_0x1bffb1,{'onClick':()=>_0xb6eab[_0x1d1f60(0x9d)](),'children':_0x1d1f60(0x119)})]});}function pe(_0x4ac77a){const _0x22f405=_0x3d3474;let {coordinator:_0x87f1e2}=_0x4ac77a;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4('div',{'className':_0x22f405(0xf5),'children':_0x22f405(0xc7)}),_0x5bd8d4(_0x1bffb1,{'variant':_0x22f405(0xd0),'onClick':()=>_0x87f1e2[_0x22f405(0xf6)](),'children':_0x22f405(0xf8)})]});}function me(_0x5d38b0){const _0xcc506e=_0x3d3474;let {coordinator:_0x28b1e9}=_0x5d38b0;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4(_0xcc506e(0x10a),{'className':_0xcc506e(0xf5),'children':_0xcc506e(0xad)}),_0x5bd8d4(_0x1bffb1,{'variant':'default','onClick':()=>_0x28b1e9[_0xcc506e(0xa8)](),'children':'Stop\x20presenting'})]});}function he(){return _0x5bd8d4(_0x21d3a1,{'children':'You\x27are\x20offline.'});}let Q=class extends _0x37dab6{constructor(_0x793681,_0x2620de){const _0x7491ee=_0x3d3474;super(),this[_0x7491ee(0xfb)]=_0x793681,this[_0x7491ee(0xf1)]=_0x2620de,this['_mountLiveShare']();}[_0x3d3474(0xd6)](){const _0x5356d9=_0x3d3474;this[_0x5356d9(0xfd)](this[_0x5356d9(0xf1)][_0x5356d9(0xde)](_0x342367['HEADER_MENU'],()=>_0x380dde(le,this[_0x5356d9(0xfb)])));}};Q=q([K(0x0,_0x23d73f(_0x2866b9)),K(0x1,_0x320286)],Q);let $=class extends _0x80eeb6{constructor(_0x30f7d1=X,_0x3577bf,_0x125926){const _0xbf9790=_0x3d3474;super(),this['_config']=_0x30f7d1,this[_0xbf9790(0xfb)]=_0x3577bf,this['_configService']=_0x125926;let {..._0x499205}=_0x1647dc({},X,this[_0xbf9790(0x12a)]);this['_configService']['setConfig'](_0xbf9790(0xa4),_0x499205);}[_0x3d3474(0xfa)](){const _0xa30044=_0x3d3474;_0x3b9a91(this[_0xa30044(0xfb)],_0x230d60([[G],[J],[Z],[Q]],this[_0xa30044(0x12a)][_0xa30044(0x11d)])),_0x1bd490(this[_0xa30044(0xfb)],[[Z]]);}[_0x3d3474(0x109)](){const _0x2e3b99=_0x3d3474;_0x1bd490(this[_0x2e3b99(0xfb)],[[Q]]);}};W($,_0x3d3474(0xfe),_0x280b3d['UNIVER_UNKNOWN']),W($,_0x3d3474(0x9f),_0x3d3474(0xe7)),W($,_0x3d3474(0x126),se),W($,_0x3d3474(0xf3),ce),$=q([_0x1df6e6(_0x1b707d,_0x169e26),K(0x1,_0x23d73f(_0x2866b9)),K(0x2,_0x5cb103)],$);export{J as LiveShareController,oe as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x28efc9=_0x5d06;function _0x1604(){const _0xe3bd03=['LIVESHARE_NEW_HOST','forEach','not-following','unit','stringify','button','Start\x20following','_collabSessionService','stopPresenting','iterator','_liveShareService','dispose','_handleOperation','1.0.0-beta.2','getLiveShareCoordinatorSync','type','stopFollowing','getTypeOfUnitAdded$','_handleNewHost','init','7cFIijG','length','presenting','setConfig','You\x27re\x20presenting\x20the\x20document','9rfpLTH','2hOKGSj','sessionStatus$','version','function','3HRQqMj','10KKrKgS','IDLE','includes','string','You\x27are\x20offline.','_stopPresenting','complete','createInstance','registerComponent','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','override','Present\x20this\x20document','executeCommand','OFFLINE','758346bkTLVg','_mountLiveShare','registerInitialStateReporter','operations','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-gray-0\x20dark:!univer-text-gray-0','object','values','_configService','FOLLOWING','_fetchOperations','_handleTerminate','data','108xmpudc','memberID','packageName','_presenter','ONLINE','has','_sharedOperations','getLiveShareCoordinator','996104ciiizB','unitId','send','697541ztHkwS','symbol','_unitID','onStarting','_commandDisposable','parse','NOT_FOLLOWING','event$','text','349990ahkpPF','getStatus','end','LIVESHARE_TERMINATE','idle','_status$','_uiPartsService','You\x27re\x20following\x20the\x20presenter','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter','onRendered','live-share.config','disposeWithMe','UNIVER_LIVE_SHARE_PLUGIN','_handleNewChangeSets','status$','2318405oMtOjU','_reporters','_beIdle','reverse','asObservable','toPrimitive','_handleOnline','pipe','UNIVER_SHEET','set','next','_init','getCurrentTypeOfUnit$','NEW_CHANGESETS','tryStartPresenting','LIVESHARE_OPERATION','_commandService','subscribe','Stop\x20following','add','clear','PRESENTING','_startFollowing','Start','dispose$','UNIVER_UNKNOWN','_startPresenting','pluginName','onCommandExecuted','_stopFollowing','find','LIVESHARE_REQUEST_HOST','delete','defineProperty','offline','prototype','sheet','getInitialStates','get','_univerInstanceService','constructor','params','_startLiveShareCoordinator','decorate','_collabSession','requireSession','_config','_handleOffline','getUnitId','startFollowing','_injector','_status','getMemberID','_entities','presenter','default','following','mutations','234641MKOSLx','registerSharedOperation','unsubscribe','HEADER_MENU','div','1680968ZwxHwP'];_0x1604=function(){return _0xe3bd03;};return _0x1604();}(function(_0x39472d,_0x41c466){const _0x1ed640=_0x5d06,_0xc01578=_0x39472d();while(!![]){try{const _0x549d76=parseInt(_0x1ed640(0x106))/0x1*(-parseInt(_0x1ed640(0xd2))/0x2)+-parseInt(_0x1ed640(0xd6))/0x3*(-parseInt(_0x1ed640(0xfa))/0x4)+-parseInt(_0x1ed640(0x78))/0x5+parseInt(_0x1ed640(0xe6))/0x6*(parseInt(_0x1ed640(0xcc))/0x7)+parseInt(_0x1ed640(0xb7))/0x8*(parseInt(_0x1ed640(0xd1))/0x9)+-parseInt(_0x1ed640(0xd7))/0xa*(parseInt(_0x1ed640(0xb2))/0xb)+-parseInt(_0x1ed640(0xf2))/0xc*(-parseInt(_0x1ed640(0xfd))/0xd);if(_0x549d76===_0x41c466)break;else _0xc01578['push'](_0xc01578['shift']());}catch(_0x305559){_0xc01578['push'](_0xc01578['shift']());}}}(_0x1604,0x38fe9));import{CollaborationEvent as _0x2c6144,parseProtocolChangeset as _0x8eba8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2df1a0,SessionStatus as _0xef806f,UniverCollaborationClientPlugin as _0x52d034}from'@univerjs-pro/collaboration-client';import{CommandType as _0x50387b,DependentOn as _0x46133d,Disposable as _0x485ed1,DisposableCollection as _0x3c6c46,ICommandService as _0xc5c8e,IConfigService as _0xc5812d,IUniverInstanceService as _0x323fb4,Inject as _0x30448f,Injector as _0x2e6242,Plugin as _0x7e6f53,RxDisposable as _0x269553,UniverInstanceType as _0x2009b4,merge as _0x2d940c,mergeOverrideWithDependencies as _0x1542a2,registerDependencies as _0x4e0201,toDisposable as _0x44fb55,touchDependencies as _0x46b324}from'@univerjs/core';import{InsertSheetMutation as _0x4f759b,SetWorksheetActiveOperation as _0x206528}from'@univerjs/sheets';import{BehaviorSubject as _0x2617e4,Subject as _0x186ef8,defer as _0x4ec539,from as _0x45a4d2,of as _0x4aee88}from'rxjs';import{takeUntil as _0x211271,throttleTime as _0x3c282d}from'rxjs/operators';import{UniverLicensePlugin as _0x444b97}from'@univerjs-pro/license';import{SetScrollOperation as _0x277ce5,SetZoomRatioOperation as _0x1d67b2}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x128244,IUIPartsService as _0x22dbef,connectInjector as _0xe84d60,useDependency as _0x1fed3b,useObservable as _0x3b7677}from'@univerjs/ui';import{Button as _0x1d906c,Dropdown as _0xb571d6}from'@univerjs/design';import{LiveShareIcon as _0x125941}from'@univerjs/icons';function _0x5d06(_0x31b2c6,_0x4cc46c){_0x31b2c6=_0x31b2c6-0x6d;const _0x160452=_0x1604();let _0x5d06a4=_0x160452[_0x31b2c6];return _0x5d06a4;}import{useMemo as _0x2da51d}from'react';import{Fragment as _0x2b628f,jsx as _0x50a3a7,jsxs as _0x303561}from'react/jsx-runtime';function z(_0x3e5185){'@babel/helpers - typeof';const _0x8ed4ed=_0x5d06;return z=typeof Symbol==_0x8ed4ed(0xd5)&&typeof Symbol[_0x8ed4ed(0xc1)]==_0x8ed4ed(0xfe)?function(_0x5c6ef3){return typeof _0x5c6ef3;}:function(_0x32b0f6){const _0x5e5a0b=_0x8ed4ed;return _0x32b0f6&&typeof Symbol=='function'&&_0x32b0f6[_0x5e5a0b(0xa0)]===Symbol&&_0x32b0f6!==Symbol[_0x5e5a0b(0x9b)]?_0x5e5a0b(0xfe):typeof _0x32b0f6;},z(_0x3e5185);}function B(_0xb1de1b,_0x21cd6f){const _0x4b3890=_0x5d06;if(z(_0xb1de1b)!='object'||!_0xb1de1b)return _0xb1de1b;var _0x59cfab=_0xb1de1b[Symbol[_0x4b3890(0x7d)]];if(_0x59cfab!==void 0x0){var _0x34f210=_0x59cfab['call'](_0xb1de1b,_0x21cd6f||_0x4b3890(0xaf));if(z(_0x34f210)!=_0x4b3890(0xeb))return _0x34f210;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x21cd6f===_0x4b3890(0xda)?String:Number)(_0xb1de1b);}function V(_0x6513c6){const _0x382c69=_0x5d06;var _0x3d95df=B(_0x6513c6,'string');return z(_0x3d95df)==_0x382c69(0xfe)?_0x3d95df:_0x3d95df+'';}function H(_0x189462,_0x13f64a,_0x5deb6d){const _0xe8c9f1=_0x5d06;return(_0x13f64a=V(_0x13f64a))in _0x189462?Object[_0xe8c9f1(0x99)](_0x189462,_0x13f64a,{'value':_0x5deb6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x189462[_0x13f64a]=_0x5deb6d,_0x189462;}var U=class extends _0x485ed1{constructor(..._0x444fa3){const _0x26fb8b=_0x5d06;super(..._0x444fa3),H(this,_0x26fb8b(0xf8),new Set()),H(this,_0x26fb8b(0x79),new Set());}[_0x28efc9(0xb3)](_0x4480a2){const _0x14cb9f=_0x28efc9;return this[_0x14cb9f(0xf8)][_0x14cb9f(0x8b)](_0x4480a2),_0x44fb55(()=>this[_0x14cb9f(0xf8)][_0x14cb9f(0x98)](_0x4480a2));}[_0x28efc9(0xe8)](_0x4b1296){const _0x42348a=_0x28efc9;return this['_reporters']['add'](_0x4b1296),_0x44fb55(()=>this[_0x42348a(0x79)][_0x42348a(0x98)](_0x4b1296));}[_0x28efc9(0x70)](_0x9b55a8){const _0x4955a4=_0x28efc9;return this['_sharedOperations'][_0x4955a4(0xf7)](_0x9b55a8);}['getInitialStates'](_0x5e61fd){const _0x303699=_0x28efc9;return Array['from'](this[_0x303699(0x79)])['map'](_0x83886a=>_0x83886a(_0x5e61fd));}};function W(_0xd50a91,_0x45618a){return function(_0x21b0d0,_0x125b7f){_0x45618a(_0x21b0d0,_0x125b7f,_0xd50a91);};}function G(_0x48c0fe,_0x224457,_0x36cbcc,_0x196242){const _0x5499b7=_0x28efc9;var _0x27cde5=arguments['length'],_0x1d7753=_0x27cde5<0x3?_0x224457:_0x196242===null?_0x196242=Object['getOwnPropertyDescriptor'](_0x224457,_0x36cbcc):_0x196242,_0x27ec9a;if(typeof Reflect==_0x5499b7(0xeb)&&typeof Reflect[_0x5499b7(0xa3)]==_0x5499b7(0xd5))_0x1d7753=Reflect[_0x5499b7(0xa3)](_0x48c0fe,_0x224457,_0x36cbcc,_0x196242);else{for(var _0x4d5d06=_0x48c0fe[_0x5499b7(0xcd)]-0x1;_0x4d5d06>=0x0;_0x4d5d06--)(_0x27ec9a=_0x48c0fe[_0x4d5d06])&&(_0x1d7753=(_0x27cde5<0x3?_0x27ec9a(_0x1d7753):_0x27cde5>0x3?_0x27ec9a(_0x224457,_0x36cbcc,_0x1d7753):_0x27ec9a(_0x224457,_0x36cbcc))||_0x1d7753);}return _0x27cde5>0x3&&_0x1d7753&&Object[_0x5499b7(0x99)](_0x224457,_0x36cbcc,_0x1d7753),_0x1d7753;}let K=class extends _0x269553{constructor(_0x2941a6,_0x131b20,_0x11701f){const _0xe73e96=_0x28efc9;super(),this[_0xe73e96(0x9f)]=_0x2941a6,this[_0xe73e96(0xaa)]=_0x131b20,this['_collabSessionService']=_0x11701f,H(this,'_entities',new Map()),this[_0xe73e96(0x83)]();}async[_0x28efc9(0xf9)](_0x33672c){const _0x260586=_0x28efc9;return this['_entities'][_0x260586(0xf7)](_0x33672c)||await this[_0x260586(0xa2)](_0x33672c),this[_0x260586(0xad)][_0x260586(0x9e)](_0x33672c);}[_0x28efc9(0xc6)](_0x4e8036){const _0x75cffc=_0x28efc9;return this[_0x75cffc(0xad)][_0x75cffc(0x9e)](_0x4e8036)??null;}[_0x28efc9(0x83)](){const _0x46e4d3=_0x28efc9;this[_0x46e4d3(0x9f)][_0x46e4d3(0xc9)](_0x2009b4[_0x46e4d3(0x80)])[_0x46e4d3(0x7f)](_0x211271(this[_0x46e4d3(0x90)]))[_0x46e4d3(0x89)](async _0x147b32=>{const _0x1435c6=_0x46e4d3;let _0x4244e4=_0x147b32[_0x1435c6(0xbb)][_0x1435c6(0xa8)]();this[_0x1435c6(0xad)]['has'](_0x4244e4)||this[_0x1435c6(0xa2)](_0x4244e4);}),this[_0x46e4d3(0x9f)]['getTypeOfUnitDisposed$'](_0x2009b4[_0x46e4d3(0x80)])[_0x46e4d3(0x7f)](_0x211271(this[_0x46e4d3(0x90)]))[_0x46e4d3(0x89)](_0x298a8f=>{const _0x33ff8c=_0x46e4d3;let _0x1087d3=_0x298a8f['getUnitId'](),_0x5947db=this[_0x33ff8c(0xad)][_0x33ff8c(0x9e)](_0x1087d3);_0x5947db==null||_0x5947db[_0x33ff8c(0xc3)]();});}async['_startLiveShareCoordinator'](_0x214980){const _0x27f51f=_0x28efc9;let _0x423da8=await this[_0x27f51f(0xbf)][_0x27f51f(0xa5)](_0x214980),_0x4b22f9=this[_0x27f51f(0xaa)][_0x27f51f(0xde)](J,_0x214980,_0x423da8);return _0x4b22f9[_0x27f51f(0xcb)](),this['_entities']['set'](_0x214980,_0x4b22f9),_0x4b22f9;}};K=G([W(0x0,_0x323fb4),W(0x1,_0x30448f(_0x2e6242)),W(0x2,_0x30448f(_0x2df1a0))],K);let q=function(_0x10ab2c){const _0x46f44e=_0x28efc9;return _0x10ab2c['OFFLINE']=_0x46f44e(0x9a),_0x10ab2c[_0x46f44e(0xd8)]='idle',_0x10ab2c[_0x46f44e(0xee)]='following',_0x10ab2c[_0x46f44e(0x103)]=_0x46f44e(0xba),_0x10ab2c[_0x46f44e(0x8d)]=_0x46f44e(0xce),_0x10ab2c;}({}),J=class extends _0x269553{get[_0x28efc9(0xab)](){return this['_status$']['getValue']();}constructor(_0x72c94a,_0x9e2d53,_0x4682ca,_0x1f6229,_0x4e0667){const _0x346055=_0x28efc9;super(),this[_0x346055(0xff)]=_0x72c94a,this['_collabSession']=_0x9e2d53,this[_0x346055(0xed)]=_0x4682ca,this['_liveShareService']=_0x1f6229,this[_0x346055(0x88)]=_0x4e0667,H(this,_0x346055(0x6d),new _0x2617e4('idle')),H(this,_0x346055(0x77),this[_0x346055(0x6d)][_0x346055(0x7c)]()),H(this,'_init',!0x1),H(this,_0x346055(0x101),null),H(this,_0x346055(0xf5),null);}[_0x28efc9(0xc3)](){const _0x27768b=_0x28efc9;var _0x136184;(_0x136184=this[_0x27768b(0x101)])==null||_0x136184['dispose'](),this[_0x27768b(0x6d)][_0x27768b(0x82)]('idle'),this['_status$'][_0x27768b(0xdd)]();}[_0x28efc9(0x107)](){return this['_status'];}[_0x28efc9(0xcb)](){const _0x4cf14e=_0x28efc9;this[_0x4cf14e(0x83)]||(this['_init']=!0x0,this[_0x4cf14e(0xa4)][_0x4cf14e(0xd3)][_0x4cf14e(0x7f)](_0x211271(this[_0x4cf14e(0x90)]))[_0x4cf14e(0x89)](_0x4ef23c=>{const _0x47e8f3=_0x4cf14e;switch(_0x4ef23c){case _0xef806f[_0x47e8f3(0xe5)]:this[_0x47e8f3(0xa7)]();break;case _0xef806f[_0x47e8f3(0xf6)]:this[_0x47e8f3(0x7e)]();break;default:}}),this[_0x4cf14e(0xa4)][_0x4cf14e(0x104)]['pipe'](_0x211271(this[_0x4cf14e(0x90)]))['subscribe'](_0xa3b57c=>{const _0x2ec653=_0x4cf14e;let {eventID:_0x35d61a}=_0xa3b57c;switch(_0x35d61a){case _0x2c6144[_0x2ec653(0xb8)]:this[_0x2ec653(0xca)](_0xa3b57c);break;case _0x2c6144[_0x2ec653(0x87)]:this[_0x2ec653(0xc4)](_0xa3b57c);break;case _0x2c6144[_0x2ec653(0x109)]:this[_0x2ec653(0xf0)]();break;case _0x2c6144[_0x2ec653(0x85)]:this[_0x2ec653(0x76)](_0xa3b57c);break;default:}}));}[_0x28efc9(0x86)](){const _0x3da697=_0x28efc9;this[_0x3da697(0xa4)][_0x3da697(0xfc)]({'eventID':_0x2c6144[_0x3da697(0x97)],'data':{'unitID':this[_0x3da697(0xff)],'userID':this[_0x3da697(0xa4)]['getMemberID']()}},this[_0x3da697(0xff)]);}[_0x28efc9(0xc0)](){const _0x52c5f7=_0x28efc9;this[_0x52c5f7(0xab)]==='presenting'&&(this[_0x52c5f7(0x6d)][_0x52c5f7(0x82)](_0x52c5f7(0x10a)),this[_0x52c5f7(0xa4)][_0x52c5f7(0xfc)]({'eventID':_0x2c6144[_0x52c5f7(0x109)],'data':{'unitID':this[_0x52c5f7(0xff)]}},this['_unitID']));}[_0x28efc9(0xa9)](){const _0x26856c=_0x28efc9;this[_0x26856c(0xab)]==='not-following'&&(this[_0x26856c(0x6d)][_0x26856c(0x82)](_0x26856c(0xb0)),this[_0x26856c(0x8e)]());}['stopFollowing'](){const _0x4285c=_0x28efc9;this[_0x4285c(0xab)]===_0x4285c(0xb0)&&this[_0x4285c(0x95)]();}[_0x28efc9(0xca)](_0x346343){const _0x56a17a=_0x28efc9;let {presenter:_0x3aa2bd}=_0x346343[_0x56a17a(0xf1)],_0x15dd5b=this[_0x56a17a(0xa4)][_0x56a17a(0xac)]();this[_0x56a17a(0xf5)]=_0x3aa2bd,_0x3aa2bd===_0x15dd5b?(this[_0x56a17a(0x95)](),this[_0x56a17a(0x92)]()):this['_status']!==_0x56a17a(0xba)&&(this['_stopPresenting'](),this[_0x56a17a(0x8e)]());}[_0x28efc9(0xef)](){const _0x513367=_0x28efc9;let _0x24ced8={'eventID':_0x2c6144['LIVESHARE_FETCH_OPERATIONS']};this[_0x513367(0xa4)][_0x513367(0xfc)](_0x24ced8,this[_0x513367(0xff)]);}[_0x28efc9(0xf0)](){const _0x5d0aa7=_0x28efc9;this[_0x5d0aa7(0xf5)]=null,this[_0x5d0aa7(0xab)]!==_0x5d0aa7(0xce)&&this[_0x5d0aa7(0x7a)]();}[_0x28efc9(0x76)](_0x341385){const _0x39e37c=_0x28efc9;if(this[_0x39e37c(0xab)]===_0x39e37c(0xb0)&&this[_0x39e37c(0xf5)]===_0x341385[_0x39e37c(0xf1)][_0x39e37c(0xf3)]){let _0x4914bb=_0x8eba8(_0x341385[_0x39e37c(0xf1)])[_0x39e37c(0xb1)][_0x39e37c(0x7b)]()[_0x39e37c(0x96)](_0x260789=>_0x260789['id']===_0x4f759b['id']);if(_0x4914bb){let _0x2e7a6b=_0x4914bb[_0x39e37c(0xa1)][_0x39e37c(0xfb)],_0x35e687=_0x4914bb[_0x39e37c(0xa1)][_0x39e37c(0x9c)]['id'];setTimeout(()=>{const _0x500f4e=_0x39e37c;this[_0x500f4e(0x88)][_0x500f4e(0xe4)](_0x206528['id'],{'unitId':_0x2e7a6b,'subUnitId':_0x35e687},{'fromCollab':!0x0});});}}}[_0x28efc9(0x92)](){const _0x369999=_0x28efc9;var _0x31bc32;(_0x31bc32=this[_0x369999(0x101)])==null||_0x31bc32[_0x369999(0xc3)](),this[_0x369999(0x6d)][_0x369999(0x82)](_0x369999(0xce));let _0x25d06f=new Map(),_0x21ec3b=this[_0x369999(0x101)]=new _0x3c6c46();_0x21ec3b['add'](_0x44fb55(()=>{const _0x5d8b74=_0x369999;_0x25d06f[_0x5d8b74(0xb9)](({subject:_0x9cabba,subscription:_0x4e22b0})=>{const _0x509a65=_0x5d8b74;_0x4e22b0[_0x509a65(0xb4)](),_0x9cabba['complete']();}),_0x25d06f[_0x5d8b74(0x8c)]();})),_0x21ec3b[_0x369999(0x8b)](this[_0x369999(0x88)][_0x369999(0x94)](_0x5e99ba=>{const _0xe55e46=_0x369999;if(_0x5e99ba[_0xe55e46(0xc7)]!==_0x50387b['OPERATION']||!this[_0xe55e46(0xc2)][_0xe55e46(0x70)](_0x5e99ba['id']))return;let {id:_0x1f740f}=_0x5e99ba,_0x1210e7;if(_0x25d06f[_0xe55e46(0xf7)](_0x1f740f))_0x1210e7=_0x25d06f['get'](_0x1f740f)['subject'];else{_0x1210e7=new _0x186ef8();let _0x512174=_0x1210e7['pipe'](_0x3c282d(this['_configService']['getConfig']('SAME_OPERATION_SHARE_INTERVAL')??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe55e46(0x89)](_0x2f682e=>{const _0x5e9e45=_0xe55e46;this['_collabSession'][_0x5e9e45(0xfc)]({'eventID':_0x2c6144[_0x5e9e45(0x87)],'data':{'unitID':this[_0x5e9e45(0xff)],'operations':{[_0x2f682e['id']]:{'id':_0x2f682e['id'],'params':JSON['stringify'](_0x2f682e[_0x5e9e45(0xa1)])}}}},this['_unitID']);});_0x25d06f[_0xe55e46(0x81)](_0x1f740f,{'subject':_0x1210e7,'subscription':_0x512174});}_0x1210e7[_0xe55e46(0x82)](_0x5e99ba);})),this['_liveShareService'][_0x369999(0x9d)](this['_unitID'])[_0x369999(0xb9)](_0x29790a=>this['_collabSession'][_0x369999(0xfc)]({'eventID':_0x2c6144[_0x369999(0x87)],'data':{'unitID':this['_unitID'],'operations':{[_0x29790a['id']]:{'id':_0x29790a['id'],'params':JSON[_0x369999(0xbc)](_0x29790a[_0x369999(0xa1)])}}}},this['_unitID']));}[_0x28efc9(0xdc)](){const _0x49aeb5=_0x28efc9;var _0x263654;this[_0x49aeb5(0x6d)][_0x49aeb5(0x82)](_0x49aeb5(0x10a)),(_0x263654=this['_commandDisposable'])==null||_0x263654[_0x49aeb5(0xc3)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x2cbcd4=_0x28efc9;var _0x307b1a;(_0x307b1a=this['_commandDisposable'])==null||_0x307b1a[_0x2cbcd4(0xc3)](),this[_0x2cbcd4(0x6d)][_0x2cbcd4(0x82)]('following');}[_0x28efc9(0x7a)](){const _0x1d2077=_0x28efc9;var _0x23a0ab;this['_status$']['next'](_0x1d2077(0x10a)),(_0x23a0ab=this['_commandDisposable'])==null||_0x23a0ab[_0x1d2077(0xc3)](),this[_0x1d2077(0x101)]=null;}['_stopFollowing'](){const _0x59afdf=_0x28efc9;var _0x4687e4;this[_0x59afdf(0x6d)]['next'](_0x59afdf(0xba)),(_0x4687e4=this['_commandDisposable'])==null||_0x4687e4[_0x59afdf(0xc3)]();}['_handleOperation'](_0xcab4e7){const _0x5079e1=_0x28efc9;if([_0x5079e1(0xce),'not-following',_0x5079e1(0x9a)][_0x5079e1(0xd9)](this[_0x5079e1(0xab)])||!_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xae)]||_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xae)]===this['_collabSession']['getMemberID']())return;this[_0x5079e1(0xab)]==='idle'&&this['_startFollowing']();let _0x513dc5=_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xe9)];Object[_0x5079e1(0xec)](_0x513dc5)[_0x5079e1(0xb9)](_0x305fc8=>{const _0x2fe514=_0x5079e1;this[_0x2fe514(0x88)][_0x2fe514(0xe4)](_0x305fc8['id'],_0x305fc8[_0x2fe514(0xa1)]?JSON[_0x2fe514(0x102)](_0x305fc8[_0x2fe514(0xa1)]):null,{'fromCollab':!0x0});});}[_0x28efc9(0xa7)](){const _0x13e7df=_0x28efc9;var _0x132d68;this[_0x13e7df(0x6d)][_0x13e7df(0x82)]('offline'),(_0x132d68=this['_commandDisposable'])==null||_0x132d68['dispose']();}[_0x28efc9(0x7e)](){const _0x25894e=_0x28efc9;this[_0x25894e(0x6d)][_0x25894e(0x82)](_0x25894e(0x10a)),this[_0x25894e(0xef)]();}};J=G([W(0x2,_0xc5812d),W(0x3,_0x30448f(U)),W(0x4,_0xc5c8e)],J);var se='@univerjs-pro/live-share',ce=_0x28efc9(0xc5);const Y={};let X=class extends _0x485ed1{constructor(_0x14c69f){const _0x48c546=_0x28efc9;super(),this[_0x48c546(0xc2)]=_0x14c69f,this[_0x48c546(0x83)]();}['_init'](){const _0x13ce22=_0x28efc9;[_0x1d67b2['id'],_0x277ce5['id'],_0x206528['id']][_0x13ce22(0xb9)](_0x249418=>{const _0x495658=_0x13ce22;this[_0x495658(0x74)](this[_0x495658(0xc2)][_0x495658(0xb3)](_0x249418));});}};X=G([W(0x0,_0x30448f(U))],X);function Z(){const _0x37cfaf=_0x28efc9;let _0x52635f=_0x1fed3b(K),_0x37a965=_0x1fed3b(_0x323fb4),_0x21c6f8=_0x3b7677(()=>_0x37a965[_0x37cfaf(0x84)](_0x2009b4[_0x37cfaf(0x80)]),void 0x0,!0x1,[]),_0x215935=_0x3b7677(_0x2da51d(()=>_0x21c6f8?_0x4ec539(()=>_0x45a4d2(_0x52635f['getLiveShareCoordinator'](_0x21c6f8[_0x37cfaf(0xa8)]()))):_0x4aee88(null),[_0x21c6f8,_0x52635f]),null),_0x5ca854=_0x3b7677(_0x215935?()=>_0x215935[_0x37cfaf(0x77)]:null,_0x37cfaf(0x10a),!0x1,[_0x215935]);return _0x215935?_0x50a3a7(_0xb571d6,{'align':_0x37cfaf(0x108),'disabled':_0x5ca854===_0x37cfaf(0x9a),'className':_0x37cfaf(0xea),'overlay':_0x50a3a7(le,{'status':_0x5ca854,'coordinator':_0x215935}),'children':_0x50a3a7(_0x1d906c,{'size':_0x37cfaf(0xe1),'variant':_0x37cfaf(0x105),'disabled':_0x5ca854==='offline','type':_0x37cfaf(0xbd),'children':_0x50a3a7(_0x125941,{})})}):null;}function le(_0x41264a){const _0x5a60e3=_0x28efc9;let {status:_0x5e54dd,coordinator:_0x29c058}=_0x41264a;switch(_0x5e54dd){case'idle':return _0x50a3a7(ue,{'coordinator':_0x29c058});case'following':return _0x50a3a7(de,{'coordinator':_0x29c058});case _0x5a60e3(0xba):return _0x50a3a7(fe,{'coordinator':_0x29c058});case'offline':return _0x50a3a7(me,{});case _0x5a60e3(0xce):return _0x50a3a7(pe,{'coordinator':_0x29c058});default:return null;}}function ue(_0x48aade){const _0xfd4901=_0x28efc9;let {coordinator:_0x305c34}=_0x48aade;return _0x303561(_0x2b628f,{'children':[_0x50a3a7(_0xfd4901(0xb6),{'className':_0xfd4901(0xe0),'children':_0xfd4901(0xe3)}),_0x50a3a7(_0x1d906c,{'onClick':()=>_0x305c34[_0xfd4901(0x86)](),'children':_0xfd4901(0x8f)})]});}function de(_0x18b9ea){const _0x496ab4=_0x28efc9;let {coordinator:_0x43ddf7}=_0x18b9ea;return _0x303561(_0x2b628f,{'children':[_0x50a3a7('div',{'className':_0x496ab4(0xe0),'children':_0x496ab4(0x6f)}),_0x50a3a7(_0x1d906c,{'onClick':()=>_0x43ddf7[_0x496ab4(0xc8)](),'children':_0x496ab4(0x8a)})]});}function fe(_0x41f4b3){const _0x172c08=_0x28efc9;let {coordinator:_0x4338f6}=_0x41f4b3;return _0x303561(_0x2b628f,{'children':[_0x50a3a7(_0x172c08(0xb6),{'className':_0x172c08(0xe0),'children':_0x172c08(0x71)}),_0x50a3a7(_0x1d906c,{'variant':_0x172c08(0x105),'onClick':()=>_0x4338f6[_0x172c08(0xa9)](),'children':_0x172c08(0xbe)})]});}function pe(_0x10b33d){const _0x28a5c9=_0x28efc9;let {coordinator:_0x202eea}=_0x10b33d;return _0x303561(_0x2b628f,{'children':[_0x50a3a7('div',{'className':_0x28a5c9(0xe0),'children':_0x28a5c9(0xd0)}),_0x50a3a7(_0x1d906c,{'variant':_0x28a5c9(0xaf),'onClick':()=>_0x202eea[_0x28a5c9(0xc0)](),'children':'Stop\x20presenting'})]});}function me(){const _0x533d34=_0x28efc9;return _0x50a3a7(_0x2b628f,{'children':_0x533d34(0xdb)});}let Q=class extends _0x485ed1{constructor(_0x492351,_0x140a32){const _0x591f10=_0x28efc9;super(),this['_injector']=_0x492351,this[_0x591f10(0x6e)]=_0x140a32,this['_mountLiveShare']();}[_0x28efc9(0xe7)](){const _0x30316c=_0x28efc9;this[_0x30316c(0x74)](this['_uiPartsService'][_0x30316c(0xdf)](_0x128244[_0x30316c(0xb5)],()=>_0xe84d60(Z,this[_0x30316c(0xaa)])));}};Q=G([W(0x0,_0x30448f(_0x2e6242)),W(0x1,_0x22dbef)],Q);let $=class extends _0x7e6f53{constructor(_0x267b52=Y,_0x57adb9,_0x77ad19){const _0x542814=_0x28efc9;super(),this[_0x542814(0xa6)]=_0x267b52,this[_0x542814(0xaa)]=_0x57adb9,this[_0x542814(0xed)]=_0x77ad19;let {..._0x588fc1}=_0x2d940c({},Y,this[_0x542814(0xa6)]);this[_0x542814(0xed)][_0x542814(0xcf)](_0x542814(0x73),_0x588fc1);}[_0x28efc9(0x100)](){const _0x19b878=_0x28efc9;_0x4e0201(this[_0x19b878(0xaa)],_0x1542a2([[U],[K],[X],[Q]],this[_0x19b878(0xa6)][_0x19b878(0xe2)])),_0x46b324(this[_0x19b878(0xaa)],[[X]]);}[_0x28efc9(0x72)](){const _0x440555=_0x28efc9;_0x46b324(this[_0x440555(0xaa)],[[Q]]);}};H($,_0x28efc9(0xc7),_0x2009b4[_0x28efc9(0x91)]),H($,_0x28efc9(0x93),_0x28efc9(0x75)),H($,_0x28efc9(0xf4),se),H($,_0x28efc9(0xd4),ce),$=G([_0x46133d(_0x444b97,_0x52d034),W(0x1,_0x30448f(_0x2e6242)),W(0x2,_0xc5812d)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- function _0xd4a3(_0x4e1c86,_0x4fd494){_0x4e1c86=_0x4e1c86-0x15c;const _0x3cec04=_0x3cec();let _0xd4a39e=_0x3cec04[_0x4e1c86];return _0xd4a39e;}const _0x51148e=_0xd4a3;(function(_0x2ca478,_0x4cb6ee){const _0x1f30b1=_0xd4a3,_0x5eea3a=_0x2ca478();while(!![]){try{const _0x4f892d=-parseInt(_0x1f30b1(0x15c))/0x1+-parseInt(_0x1f30b1(0x16e))/0x2*(parseInt(_0x1f30b1(0x16d))/0x3)+-parseInt(_0x1f30b1(0x17c))/0x4+parseInt(_0x1f30b1(0x167))/0x5*(-parseInt(_0x1f30b1(0x164))/0x6)+parseInt(_0x1f30b1(0x17b))/0x7*(-parseInt(_0x1f30b1(0x175))/0x8)+-parseInt(_0x1f30b1(0x17d))/0x9*(-parseInt(_0x1f30b1(0x165))/0xa)+parseInt(_0x1f30b1(0x169))/0xb;if(_0x4f892d===_0x4cb6ee)break;else _0x5eea3a['push'](_0x5eea3a['shift']());}catch(_0x7062d8){_0x5eea3a['push'](_0x5eea3a['shift']());}}}(_0x3cec,0x2c36f));import{LiveShareController as _0x539a72,LiveShareStatus as _0x125f72}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4fee72,UniverInstanceType as _0x4fc52d}from'@univerjs/core';import{FEnum as _0x4ccc85,FUniver as _0x1da31e}from'@univerjs/core/facade';function o(_0x5cf5ed){'@babel/helpers - typeof';const _0x16c2fc=_0xd4a3;return o=typeof Symbol==_0x16c2fc(0x176)&&typeof Symbol[_0x16c2fc(0x177)]==_0x16c2fc(0x168)?function(_0x5b13d6){return typeof _0x5b13d6;}:function(_0x1b8504){const _0x4a2404=_0x16c2fc;return _0x1b8504&&typeof Symbol==_0x4a2404(0x176)&&_0x1b8504[_0x4a2404(0x161)]===Symbol&&_0x1b8504!==Symbol['prototype']?'symbol':typeof _0x1b8504;},o(_0x5cf5ed);}function s(_0x197109,_0x23fc0b){const _0x548271=_0xd4a3;if(o(_0x197109)!=_0x548271(0x16b)||!_0x197109)return _0x197109;var _0x5e3cae=_0x197109[Symbol[_0x548271(0x179)]];if(_0x5e3cae!==void 0x0){var _0x36ce41=_0x5e3cae[_0x548271(0x163)](_0x197109,_0x23fc0b||_0x548271(0x160));if(o(_0x36ce41)!=_0x548271(0x16b))return _0x36ce41;throw TypeError(_0x548271(0x174));}return(_0x23fc0b==='string'?String:Number)(_0x197109);}function c(_0x4b0b94){const _0x289355=_0xd4a3;var _0x146bdb=s(_0x4b0b94,'string');return o(_0x146bdb)==_0x289355(0x168)?_0x146bdb:_0x146bdb+'';}function l(_0x217751,_0x3910ff,_0x1c7d63){const _0x2ab363=_0xd4a3;return(_0x3910ff=c(_0x3910ff))in _0x217751?Object[_0x2ab363(0x16a)](_0x217751,_0x3910ff,{'value':_0x1c7d63,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x217751[_0x3910ff]=_0x1c7d63,_0x217751;}var u=class extends _0x1da31e{constructor(..._0x592c4a){super(..._0x592c4a),l(this,'_liveShareController',void 0x0);}[_0x51148e(0x16c)](_0x3c181e){const _0x56a95f=_0x51148e;this[_0x56a95f(0x172)]=_0x3c181e['get'](_0x539a72);}['getLiveShareStatus'](){const _0x5a96c5=_0x51148e;let _0x57432a=this[_0x5a96c5(0x178)][_0x5a96c5(0x180)](_0x4fee72)[_0x5a96c5(0x170)](_0x4fc52d[_0x5a96c5(0x17e)]);if(!_0x57432a)throw Error(_0x5a96c5(0x15f));let _0x43118b=_0x57432a[_0x5a96c5(0x15e)](),_0x18af2a=this[_0x5a96c5(0x172)]['getLiveShareCoordinatorSync'](_0x43118b);return(_0x18af2a==null?void 0x0:_0x18af2a['getStatus']())??_0x125f72[_0x5a96c5(0x171)];}['startFollowing'](){const _0x1ca474=_0x51148e;let _0x7dadd6=this[_0x1ca474(0x178)][_0x1ca474(0x180)](_0x4fee72)['getCurrentUnitOfType'](_0x4fc52d[_0x1ca474(0x17e)]);if(!_0x7dadd6)throw Error('No\x20active\x20workbook\x20found.');let _0x7757bd=_0x7dadd6[_0x1ca474(0x15e)](),_0x43ac26=this['_liveShareController'][_0x1ca474(0x162)](_0x7757bd);if(!_0x43ac26)throw Error(_0x1ca474(0x17f));_0x43ac26['startFollowing']();}[_0x51148e(0x166)](){const _0x1b40a0=_0x51148e;let _0xd0ebcc=this[_0x1b40a0(0x178)][_0x1b40a0(0x180)](_0x4fee72)[_0x1b40a0(0x170)](_0x4fc52d[_0x1b40a0(0x17e)]);if(!_0xd0ebcc)throw Error('No\x20active\x20workbook\x20found.');let _0x413187=_0xd0ebcc[_0x1b40a0(0x15e)](),_0x5d20f7=this[_0x1b40a0(0x172)]['getLiveShareCoordinatorSync'](_0x413187);if(!_0x5d20f7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d20f7[_0x1b40a0(0x166)]();}[_0x51148e(0x17a)](){const _0x3eb82c=_0x51148e;let _0x214f9b=this[_0x3eb82c(0x178)]['get'](_0x4fee72)['getCurrentUnitOfType'](_0x4fc52d[_0x3eb82c(0x17e)]);if(!_0x214f9b)throw Error(_0x3eb82c(0x15f));let _0x49d350=_0x214f9b[_0x3eb82c(0x15e)](),_0x54aca3=this[_0x3eb82c(0x172)][_0x3eb82c(0x162)](_0x49d350);if(!_0x54aca3)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54aca3[_0x3eb82c(0x173)]();}[_0x51148e(0x15d)](){const _0x1ebd7d=_0x51148e;let _0x245298=this[_0x1ebd7d(0x178)][_0x1ebd7d(0x180)](_0x4fee72)[_0x1ebd7d(0x170)](_0x4fc52d[_0x1ebd7d(0x17e)]);if(!_0x245298)throw Error(_0x1ebd7d(0x15f));let _0x1db68b=_0x245298[_0x1ebd7d(0x15e)](),_0x498815=this[_0x1ebd7d(0x172)][_0x1ebd7d(0x162)](_0x1db68b);if(!_0x498815)throw Error(_0x1ebd7d(0x17f));_0x498815[_0x1ebd7d(0x15d)]();}};function _0x3cec(){const _0x278e2d=['91tnNKBV','1238952ZFMTxC','2075130MzhNEV','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','get','341243qjNsyl','stopPresenting','getUnitId','No\x20active\x20workbook\x20found.','default','constructor','getLiveShareCoordinatorSync','call','28590FuHuNd','10MPoNaS','stopFollowing','5PYYAAS','symbol','11272767TvZgqW','defineProperty','object','_initialize','3laRSsz','617648oYwilT','extend','getCurrentUnitOfType','IDLE','_liveShareController','tryStartPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','67504OJGhmd','function','iterator','_injector','toPrimitive','startPresenting'];_0x3cec=function(){return _0x278e2d;};return _0x3cec();}_0x1da31e[_0x51148e(0x16f)](u);var d=class extends _0x4ccc85{get['LiveShareStatusEnum'](){return _0x125f72;}};_0x4ccc85[_0x51148e(0x16f)](d);export{};
1
+ function _0x22cc(){const _0x28ffb3=['2LjdGNz','2380821fgKJcw','stopPresenting','object','IDLE','defineProperty','_injector','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','get','startPresenting','7527321mPURuG','startFollowing','prototype','getCurrentUnitOfType','tryStartPresenting','13726610RMORSH','default','getUnitId','2866585NrrKFl','extend','1047052XIfzLw','UNIVER_SHEET','1286290tmhgrl','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','getLiveShareStatus','6LAPZNO','getLiveShareCoordinatorSync','constructor','2675764HQdJtL','toPrimitive','function','No\x20active\x20workbook\x20found.','call','8kOgiXz','getStatus','iterator','_liveShareController'];_0x22cc=function(){return _0x28ffb3;};return _0x22cc();}const _0x2f56f2=_0x4a75;(function(_0x57e18a,_0x5b78f6){const _0xbea353=_0x4a75,_0x292458=_0x57e18a();while(!![]){try{const _0x52e69a=-parseInt(_0xbea353(0x15e))/0x1+parseInt(_0xbea353(0x147))/0x2*(parseInt(_0xbea353(0x148))/0x3)+-parseInt(_0xbea353(0x15c))/0x4+-parseInt(_0xbea353(0x15a))/0x5*(-parseInt(_0xbea353(0x162))/0x6)+parseInt(_0xbea353(0x165))/0x7*(parseInt(_0xbea353(0x143))/0x8)+-parseInt(_0xbea353(0x152))/0x9+parseInt(_0xbea353(0x157))/0xa;if(_0x52e69a===_0x5b78f6)break;else _0x292458['push'](_0x292458['shift']());}catch(_0x3d8c9d){_0x292458['push'](_0x292458['shift']());}}}(_0x22cc,0xb4087));import{LiveShareController as _0x34cebe,LiveShareStatus as _0x5404dd}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x331696,UniverInstanceType as _0xa9d19d}from'@univerjs/core';import{FEnum as _0x288fdd,FUniver as _0x41b420}from'@univerjs/core/facade';function o(_0x8c2599){'@babel/helpers - typeof';const _0x47943c=_0x4a75;return o=typeof Symbol==_0x47943c(0x140)&&typeof Symbol[_0x47943c(0x145)]==_0x47943c(0x160)?function(_0x1ce762){return typeof _0x1ce762;}:function(_0x1d346e){const _0x3a837c=_0x47943c;return _0x1d346e&&typeof Symbol==_0x3a837c(0x140)&&_0x1d346e[_0x3a837c(0x164)]===Symbol&&_0x1d346e!==Symbol[_0x3a837c(0x154)]?_0x3a837c(0x160):typeof _0x1d346e;},o(_0x8c2599);}function s(_0x5cca3b,_0x5c8220){const _0x456b5b=_0x4a75;if(o(_0x5cca3b)!=_0x456b5b(0x14a)||!_0x5cca3b)return _0x5cca3b;var _0x2f5aa7=_0x5cca3b[Symbol[_0x456b5b(0x166)]];if(_0x2f5aa7!==void 0x0){var _0x161620=_0x2f5aa7[_0x456b5b(0x142)](_0x5cca3b,_0x5c8220||_0x456b5b(0x158));if(o(_0x161620)!=_0x456b5b(0x14a))return _0x161620;throw TypeError(_0x456b5b(0x15f));}return(_0x5c8220==='string'?String:Number)(_0x5cca3b);}function _0x4a75(_0x210403,_0x12f677){_0x210403=_0x210403-0x140;const _0x22cc42=_0x22cc();let _0x4a7526=_0x22cc42[_0x210403];return _0x4a7526;}function c(_0x286b68){const _0x5f0c24=_0x4a75;var _0x309fee=s(_0x286b68,'string');return o(_0x309fee)==_0x5f0c24(0x160)?_0x309fee:_0x309fee+'';}function l(_0x15f780,_0x5e467f,_0x5818bc){const _0x4b3e8b=_0x4a75;return(_0x5e467f=c(_0x5e467f))in _0x15f780?Object[_0x4b3e8b(0x14c)](_0x15f780,_0x5e467f,{'value':_0x5818bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15f780[_0x5e467f]=_0x5818bc,_0x15f780;}var u=class extends _0x41b420{constructor(..._0xba59ea){const _0x51087e=_0x4a75;super(..._0xba59ea),l(this,_0x51087e(0x146),void 0x0);}['_initialize'](_0x4dbf6e){const _0x51de=_0x4a75;this[_0x51de(0x146)]=_0x4dbf6e['get'](_0x34cebe);}[_0x2f56f2(0x161)](){const _0x2bb22c=_0x2f56f2;let _0x5e924c=this[_0x2bb22c(0x14d)]['get'](_0x331696)[_0x2bb22c(0x155)](_0xa9d19d[_0x2bb22c(0x15d)]);if(!_0x5e924c)throw Error(_0x2bb22c(0x141));let _0x4311be=_0x5e924c[_0x2bb22c(0x159)](),_0x267ed0=this['_liveShareController'][_0x2bb22c(0x163)](_0x4311be);return(_0x267ed0==null?void 0x0:_0x267ed0[_0x2bb22c(0x144)]())??_0x5404dd[_0x2bb22c(0x14b)];}[_0x2f56f2(0x153)](){const _0x5bf59e=_0x2f56f2;let _0x5abcaf=this['_injector'][_0x5bf59e(0x150)](_0x331696)[_0x5bf59e(0x155)](_0xa9d19d[_0x5bf59e(0x15d)]);if(!_0x5abcaf)throw Error('No\x20active\x20workbook\x20found.');let _0x1a815a=_0x5abcaf[_0x5bf59e(0x159)](),_0x15c11c=this[_0x5bf59e(0x146)][_0x5bf59e(0x163)](_0x1a815a);if(!_0x15c11c)throw Error(_0x5bf59e(0x14f));_0x15c11c[_0x5bf59e(0x153)]();}[_0x2f56f2(0x14e)](){const _0x285500=_0x2f56f2;let _0xd9af94=this[_0x285500(0x14d)]['get'](_0x331696)[_0x285500(0x155)](_0xa9d19d[_0x285500(0x15d)]);if(!_0xd9af94)throw Error('No\x20active\x20workbook\x20found.');let _0x264f39=_0xd9af94[_0x285500(0x159)](),_0x15aeb4=this[_0x285500(0x146)][_0x285500(0x163)](_0x264f39);if(!_0x15aeb4)throw Error(_0x285500(0x14f));_0x15aeb4['stopFollowing']();}[_0x2f56f2(0x151)](){const _0x4bfeba=_0x2f56f2;let _0x58afe2=this['_injector']['get'](_0x331696)[_0x4bfeba(0x155)](_0xa9d19d[_0x4bfeba(0x15d)]);if(!_0x58afe2)throw Error(_0x4bfeba(0x141));let _0x1d77c9=_0x58afe2[_0x4bfeba(0x159)](),_0x299565=this['_liveShareController'][_0x4bfeba(0x163)](_0x1d77c9);if(!_0x299565)throw Error(_0x4bfeba(0x14f));_0x299565[_0x4bfeba(0x156)]();}[_0x2f56f2(0x149)](){const _0x529821=_0x2f56f2;let _0x279430=this['_injector'][_0x529821(0x150)](_0x331696)['getCurrentUnitOfType'](_0xa9d19d[_0x529821(0x15d)]);if(!_0x279430)throw Error('No\x20active\x20workbook\x20found.');let _0x3b7f76=_0x279430[_0x529821(0x159)](),_0xc11b86=this['_liveShareController'][_0x529821(0x163)](_0x3b7f76);if(!_0xc11b86)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xc11b86[_0x529821(0x149)]();}};_0x41b420[_0x2f56f2(0x15b)](u);var d=class extends _0x288fdd{get['LiveShareStatusEnum'](){return _0x5404dd;}};_0x288fdd[_0x2f56f2(0x15b)](d);export{};
package/lib/index.css CHANGED
@@ -14,22 +14,6 @@
14
14
  min-width: 15rem;
15
15
  }
16
16
 
17
- .univer-cursor-not-allowed {
18
- cursor: not-allowed;
19
- }
20
-
21
- .univer-cursor-pointer {
22
- cursor: pointer;
23
- }
24
-
25
- .univer-border-none {
26
- border-style: none;
27
- }
28
-
29
- .univer-bg-gray-400 {
30
- background-color: var(--univer-gray-400);
31
- }
32
-
33
17
  .univer-bg-gray-900 {
34
18
  background-color: var(--univer-gray-900);
35
19
  }
@@ -49,27 +33,14 @@
49
33
  line-height: 1.25rem;
50
34
  }
51
35
 
52
- .univer-text-gray-600 {
53
- color: var(--univer-gray-600);
54
- }
55
-
56
36
  .univer-text-gray-900 {
57
37
  color: var(--univer-gray-900);
58
38
  }
59
39
 
60
- .univer-outline-none {
61
- outline-offset: 2px;
62
- outline: 2px solid #0000;
63
- }
64
-
65
- .hover\:univer-bg-gray-400:hover {
66
- background-color: var(--univer-gray-400);
67
- }
68
-
69
- .dark\:\!univer-bg-white:where(.univer-dark, .univer-dark *) {
70
- background-color: var(--univer-white) !important;
40
+ .dark\:\!univer-bg-gray-0:where(.univer-dark, .univer-dark *) {
41
+ background-color: var(--univer-gray-0) !important;
71
42
  }
72
43
 
73
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
74
- color: var(--univer-white) !important;
44
+ .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
45
+ color: var(--univer-gray-0) !important;
75
46
  }
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d3474=_0x2854;(function(_0x5f0760,_0x181a35){const _0x42335f=_0x2854,_0x2c3c85=_0x5f0760();while(!![]){try{const _0x39d334=parseInt(_0x42335f(0xa7))/0x1*(-parseInt(_0x42335f(0x124))/0x2)+parseInt(_0x42335f(0xac))/0x3*(-parseInt(_0x42335f(0xa6))/0x4)+parseInt(_0x42335f(0xc6))/0x5+-parseInt(_0x42335f(0x107))/0x6*(-parseInt(_0x42335f(0xe5))/0x7)+-parseInt(_0x42335f(0x9e))/0x8+parseInt(_0x42335f(0x106))/0x9*(-parseInt(_0x42335f(0x10b))/0xa)+-parseInt(_0x42335f(0xf7))/0xb*(-parseInt(_0x42335f(0xdb))/0xc);if(_0x39d334===_0x181a35)break;else _0x2c3c85['push'](_0x2c3c85['shift']());}catch(_0x145ec2){_0x2c3c85['push'](_0x2c3c85['shift']());}}}(_0x20d9,0x7a4c9));function _0x20d9(){const _0x3d455c=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','not-following','NOT_FOLLOWING','function','ONLINE','2xqlSpO','subscribe','packageName','data','dispose','forEach','_config','params','iterator','_beIdle','_univerInstanceService','createInstance','symbol','stopFollowing','4077480mYKlEr','pluginName','following','_stopPresenting','operations','LIVESHARE_OPERATION','live-share.config','OFFLINE','12828roaXOr','82855qaBEHm','stopPresenting','_handleTerminate','clear','PRESENTING','597LkWSoE','You\x27re\x20presenting\x20the\x20document','_collabSessionService','find','executeCommand','_startLiveShareCoordinator','_handleNewChangeSets','_startPresenting','constructor','_status$','unit','_stopFollowing','decorate','from','_handleOperation','unitId','You\x27re\x20following\x20the\x20presenter','length','getLiveShareCoordinator','has','getCurrentTypeOfUnit$','sheet','_entities','shouldShareOperation','sessionStatus$','asObservable','3566510gENPHl','You\x27re\x20not\x20following\x20the\x20presenter','_liveShareService','getMemberID','getUnitId','next','_presenter','_fetchOperations','_handleOnline','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','text','delete','_reporters','_sharedOperations','_unitID','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','offline','status$','getInitialStates','idle','12JKgmOR','_status','mutations','registerComponent','_init','getConfig','registerInitialStateReporter','prototype','_commandService','map','14yuaDDj','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','end','reverse','getTypeOfUnitDisposed$','button','@univerjs-pro/live-share','get','UNIVER_SHEET','values','send','_uiPartsService','1.0.0-beta.0','version','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','startFollowing','6745310GDzqhO','Start\x20following','getLiveShareCoordinatorSync','onStarting','_injector','_handleNewHost','disposeWithMe','type','subject','complete','includes','toPrimitive','set','add','_collabSession','315OFUwVn','2815884Audotw','_handleOffline','onRendered','div','152420CzbKjX','init','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','getStatus','presenting','call','OPERATION','stringify','Present\x20this\x20document','dispose$','unsubscribe','pipe','_startFollowing','Stop\x20following','parse','_commandDisposable','LIVESHARE_TERMINATE','override','_configService'];_0x20d9=function(){return _0x3d455c;};return _0x20d9();}import{CollaborationEvent as _0x4ab04f,parseProtocolChangeset as _0x3686e3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e2bfa,SessionStatus as _0x3cfb03,UniverCollaborationClientPlugin as _0x169e26}from'@univerjs-pro/collaboration-client';import{CommandType as _0x3f9d18,DependentOn as _0x1df6e6,Disposable as _0x37dab6,DisposableCollection as _0x16da52,ICommandService as _0x54fef7,IConfigService as _0x5cb103,IUniverInstanceService as _0x58af8f,Inject as _0x23d73f,Injector as _0x2866b9,Plugin as _0x80eeb6,RxDisposable as _0x280041,UniverInstanceType as _0x280b3d,merge as _0x1647dc,mergeOverrideWithDependencies as _0x230d60,registerDependencies as _0x3b9a91,toDisposable as _0x479b00,touchDependencies as _0x1bd490}from'@univerjs/core';import{InsertSheetMutation as _0x210969,SetWorksheetActiveOperation as _0x50d6fc}from'@univerjs/sheets';import{BehaviorSubject as _0x5093e4,Subject as _0x221a48,defer as _0x4f094b,from as _0x2dccd7,of as _0x2cbaa5}from'rxjs';import{takeUntil as _0x440641,throttleTime as _0x1c63c6}from'rxjs/operators';import{UniverLicensePlugin as _0x1b707d}from'@univerjs-pro/license';import{SetScrollOperation as _0x2225eb,SetZoomRatioOperation as _0x4b25e1}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x342367,IUIPartsService as _0x320286,connectInjector as _0x380dde,useDependency as _0x4ab0a4,useObservable as _0x1ea96e}from'@univerjs/ui';import{Button as _0x1bffb1,Dropdown as _0x4e4083,clsx as _0x1a3bc1}from'@univerjs/design';import{LiveShareIcon as _0x16c49d}from'@univerjs/icons';import{useMemo as _0x1fe622}from'react';import{Fragment as _0x21d3a1,jsx as _0x5bd8d4,jsxs as _0x352f4e}from'react/jsx-runtime';function V(_0x2a2aef){'@babel/helpers - typeof';const _0x5556f3=_0x2854;return V=typeof Symbol=='function'&&typeof Symbol[_0x5556f3(0x98)]==_0x5556f3(0x9c)?function(_0x2d8ac3){return typeof _0x2d8ac3;}:function(_0x57e4b7){const _0x22a01d=_0x5556f3;return _0x57e4b7&&typeof Symbol==_0x22a01d(0x122)&&_0x57e4b7[_0x22a01d(0xb4)]===Symbol&&_0x57e4b7!==Symbol[_0x22a01d(0xe2)]?_0x22a01d(0x9c):typeof _0x57e4b7;},V(_0x2a2aef);}function H(_0xa3634e,_0x2cbd2e){const _0x2c672d=_0x2854;if(V(_0xa3634e)!='object'||!_0xa3634e)return _0xa3634e;var _0x3abb98=_0xa3634e[Symbol[_0x2c672d(0x102)]];if(_0x3abb98!==void 0x0){var _0x518d4c=_0x3abb98[_0x2c672d(0x111)](_0xa3634e,_0x2cbd2e||'default');if(V(_0x518d4c)!='object')return _0x518d4c;throw TypeError(_0x2c672d(0x11f));}return(_0x2cbd2e==='string'?String:Number)(_0xa3634e);}function U(_0x5d68c1){const _0x1308e8=_0x2854;var _0x50bf67=H(_0x5d68c1,'string');return V(_0x50bf67)==_0x1308e8(0x9c)?_0x50bf67:_0x50bf67+'';}function W(_0x8adaf2,_0x2f32c3,_0xd312a5){return(_0x2f32c3=U(_0x2f32c3))in _0x8adaf2?Object['defineProperty'](_0x8adaf2,_0x2f32c3,{'value':_0xd312a5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8adaf2[_0x2f32c3]=_0xd312a5,_0x8adaf2;}var G=class extends _0x37dab6{constructor(..._0x211e46){const _0x49a9d0=_0x2854;super(..._0x211e46),W(this,_0x49a9d0(0xd3),new Set()),W(this,_0x49a9d0(0xd2),new Set());}[_0x3d3474(0x10e)](_0x3e7abc){const _0x34c6bf=_0x3d3474;return this[_0x34c6bf(0xd3)][_0x34c6bf(0x104)](_0x3e7abc),_0x479b00(()=>this[_0x34c6bf(0xd3)][_0x34c6bf(0xd1)](_0x3e7abc));}[_0x3d3474(0xe1)](_0x2e7754){const _0x3abd6d=_0x3d3474;return this[_0x3abd6d(0xd2)][_0x3abd6d(0x104)](_0x2e7754),_0x479b00(()=>this[_0x3abd6d(0xd2)][_0x3abd6d(0xd1)](_0x2e7754));}['shouldShareOperation'](_0x504cf8){const _0xdb1407=_0x3d3474;return this[_0xdb1407(0xd3)][_0xdb1407(0xbf)](_0x504cf8);}['getInitialStates'](_0x9eeacd){const _0x57441e=_0x3d3474;return Array[_0x57441e(0xb9)](this[_0x57441e(0xd2)])[_0x57441e(0xe4)](_0x533e98=>_0x533e98(_0x9eeacd));}};function _0x2854(_0x81910a,_0x7c50bc){_0x81910a=_0x81910a-0x97;const _0x20d977=_0x20d9();let _0x285470=_0x20d977[_0x81910a];return _0x285470;}function K(_0x5eea0d,_0x31c4be){return function(_0x2c48fc,_0x203b2a){_0x31c4be(_0x2c48fc,_0x203b2a,_0x5eea0d);};}function q(_0x29521e,_0x205cfd,_0x24b594,_0x1a8959){const _0x3a54fe=_0x3d3474;var _0x515e12=arguments[_0x3a54fe(0xbd)],_0x4d1b0c=_0x515e12<0x3?_0x205cfd:_0x1a8959===null?_0x1a8959=Object['getOwnPropertyDescriptor'](_0x205cfd,_0x24b594):_0x1a8959,_0x551ddb;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3a54fe(0x122))_0x4d1b0c=Reflect[_0x3a54fe(0xb8)](_0x29521e,_0x205cfd,_0x24b594,_0x1a8959);else{for(var _0x34036f=_0x29521e[_0x3a54fe(0xbd)]-0x1;_0x34036f>=0x0;_0x34036f--)(_0x551ddb=_0x29521e[_0x34036f])&&(_0x4d1b0c=(_0x515e12<0x3?_0x551ddb(_0x4d1b0c):_0x515e12>0x3?_0x551ddb(_0x205cfd,_0x24b594,_0x4d1b0c):_0x551ddb(_0x205cfd,_0x24b594))||_0x4d1b0c);}return _0x515e12>0x3&&_0x4d1b0c&&Object['defineProperty'](_0x205cfd,_0x24b594,_0x4d1b0c),_0x4d1b0c;}let J=class extends _0x280041{constructor(_0x182bd1,_0x3a8905,_0x371e39){const _0x29e1c1=_0x3d3474;super(),this['_univerInstanceService']=_0x182bd1,this[_0x29e1c1(0xfb)]=_0x3a8905,this[_0x29e1c1(0xae)]=_0x371e39,W(this,_0x29e1c1(0xc2),new Map()),this[_0x29e1c1(0xdf)]();}async[_0x3d3474(0xbe)](_0x35d6e1){const _0x518c09=_0x3d3474;return this[_0x518c09(0xc2)]['has'](_0x35d6e1)||await this['_startLiveShareCoordinator'](_0x35d6e1),this['_entities'][_0x518c09(0xed)](_0x35d6e1);}[_0x3d3474(0xf9)](_0x37b02b){const _0xde0f6f=_0x3d3474;return this[_0xde0f6f(0xc2)][_0xde0f6f(0xed)](_0x37b02b)??null;}[_0x3d3474(0xdf)](){const _0x54b0f=_0x3d3474;this['_univerInstanceService'][_0x54b0f(0xe6)](_0x280b3d[_0x54b0f(0xee)])[_0x54b0f(0x117)](_0x440641(this[_0x54b0f(0x115)]))[_0x54b0f(0x125)](async _0x4b17f5=>{const _0x172791=_0x54b0f;let _0x4e9c50=_0x4b17f5[_0x172791(0xb6)][_0x172791(0xca)]();this['_entities']['has'](_0x4e9c50)||this[_0x172791(0xb1)](_0x4e9c50);}),this[_0x54b0f(0x9a)][_0x54b0f(0xea)](_0x280b3d[_0x54b0f(0xee)])['pipe'](_0x440641(this[_0x54b0f(0x115)]))[_0x54b0f(0x125)](_0x50363e=>{const _0x2cd488=_0x54b0f;let _0x2f74a5=_0x50363e[_0x2cd488(0xca)](),_0x2ad80b=this[_0x2cd488(0xc2)][_0x2cd488(0xed)](_0x2f74a5);_0x2ad80b==null||_0x2ad80b[_0x2cd488(0x128)]();});}async[_0x3d3474(0xb1)](_0x229974){const _0x1e835f=_0x3d3474;let _0xe6b145=await this[_0x1e835f(0xae)]['requireSession'](_0x229974),_0x118810=this['_injector'][_0x1e835f(0x9b)](Y,_0x229974,_0xe6b145);return _0x118810[_0x1e835f(0x10c)](),this[_0x1e835f(0xc2)][_0x1e835f(0x103)](_0x229974,_0x118810),_0x118810;}};J=q([K(0x0,_0x58af8f),K(0x1,_0x23d73f(_0x2866b9)),K(0x2,_0x23d73f(_0x1e2bfa))],J);let oe=function(_0x5b6fb8){const _0x3ea028=_0x3d3474;return _0x5b6fb8[_0x3ea028(0xa5)]=_0x3ea028(0xd7),_0x5b6fb8['IDLE']=_0x3ea028(0xda),_0x5b6fb8['FOLLOWING']=_0x3ea028(0xa0),_0x5b6fb8[_0x3ea028(0x121)]=_0x3ea028(0x120),_0x5b6fb8[_0x3ea028(0xab)]=_0x3ea028(0x110),_0x5b6fb8;}({}),Y=class extends _0x280041{get[_0x3d3474(0xdc)](){const _0x2435bf=_0x3d3474;return this[_0x2435bf(0xb5)]['getValue']();}constructor(_0x3d816,_0x321ec7,_0x546432,_0x1bf24d,_0x2c5bb7){const _0x362799=_0x3d3474;super(),this['_unitID']=_0x3d816,this[_0x362799(0x105)]=_0x321ec7,this['_configService']=_0x546432,this[_0x362799(0xc8)]=_0x1bf24d,this[_0x362799(0xe3)]=_0x2c5bb7,W(this,_0x362799(0xb5),new _0x5093e4('idle')),W(this,'status$',this[_0x362799(0xb5)][_0x362799(0xc5)]()),W(this,'_init',!0x1),W(this,_0x362799(0x11b),null),W(this,_0x362799(0xcc),null);}[_0x3d3474(0x128)](){const _0x2deb35=_0x3d3474;var _0x1afb5d;(_0x1afb5d=this[_0x2deb35(0x11b)])==null||_0x1afb5d[_0x2deb35(0x128)](),this[_0x2deb35(0xb5)]['next'](_0x2deb35(0xda)),this[_0x2deb35(0xb5)]['complete']();}[_0x3d3474(0x10f)](){const _0x308af3=_0x3d3474;return this[_0x308af3(0xdc)];}['init'](){const _0x2e7b4d=_0x3d3474;this[_0x2e7b4d(0xdf)]||(this[_0x2e7b4d(0xdf)]=!0x0,this[_0x2e7b4d(0x105)][_0x2e7b4d(0xc4)][_0x2e7b4d(0x117)](_0x440641(this[_0x2e7b4d(0x115)]))[_0x2e7b4d(0x125)](_0x185a62=>{const _0x460fd4=_0x2e7b4d;switch(_0x185a62){case _0x3cfb03[_0x460fd4(0xa5)]:this[_0x460fd4(0x108)]();break;case _0x3cfb03[_0x460fd4(0x123)]:this['_handleOnline']();break;default:}}),this[_0x2e7b4d(0x105)]['event$'][_0x2e7b4d(0x117)](_0x440641(this[_0x2e7b4d(0x115)]))['subscribe'](_0x543dd3=>{const _0x5ea59b=_0x2e7b4d;let {eventID:_0xb96666}=_0x543dd3;switch(_0xb96666){case _0x4ab04f['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x543dd3);break;case _0x4ab04f[_0x5ea59b(0xa3)]:this[_0x5ea59b(0xba)](_0x543dd3);break;case _0x4ab04f['LIVESHARE_TERMINATE']:this[_0x5ea59b(0xa9)]();break;case _0x4ab04f['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x543dd3);break;default:}}));}['tryStartPresenting'](){const _0x4f1cf5=_0x3d3474;this[_0x4f1cf5(0x105)][_0x4f1cf5(0xf0)]({'eventID':_0x4ab04f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f1cf5(0xd4)],'userID':this[_0x4f1cf5(0x105)][_0x4f1cf5(0xc9)]()}},this['_unitID']);}['stopPresenting'](){const _0x2f1191=_0x3d3474;this[_0x2f1191(0xdc)]===_0x2f1191(0x110)&&(this[_0x2f1191(0xb5)][_0x2f1191(0xcb)](_0x2f1191(0xda)),this['_collabSession'][_0x2f1191(0xf0)]({'eventID':_0x4ab04f[_0x2f1191(0x11c)],'data':{'unitID':this[_0x2f1191(0xd4)]}},this[_0x2f1191(0xd4)]));}[_0x3d3474(0xf6)](){const _0x3dcbd6=_0x3d3474;this[_0x3dcbd6(0xdc)]===_0x3dcbd6(0x120)&&(this[_0x3dcbd6(0xb5)][_0x3dcbd6(0xcb)](_0x3dcbd6(0xa0)),this['_startFollowing']());}[_0x3d3474(0x9d)](){const _0x44fa81=_0x3d3474;this[_0x44fa81(0xdc)]===_0x44fa81(0xa0)&&this[_0x44fa81(0xb7)]();}[_0x3d3474(0xfc)](_0x14083f){const _0x1e39ca=_0x3d3474;let {presenter:_0x253ead}=_0x14083f['data'],_0x38c459=this['_collabSession']['getMemberID']();this[_0x1e39ca(0xcc)]=_0x253ead,_0x253ead===_0x38c459?(this[_0x1e39ca(0xb7)](),this[_0x1e39ca(0xb3)]()):this[_0x1e39ca(0xdc)]!==_0x1e39ca(0x120)&&(this[_0x1e39ca(0xa1)](),this[_0x1e39ca(0x118)]());}[_0x3d3474(0xcd)](){const _0x222014=_0x3d3474;let _0x1380e4={'eventID':_0x4ab04f[_0x222014(0x10d)]};this[_0x222014(0x105)]['send'](_0x1380e4,this['_unitID']);}['_handleTerminate'](){const _0x509a04=_0x3d3474;this[_0x509a04(0xcc)]=null,this[_0x509a04(0xdc)]!==_0x509a04(0x110)&&this[_0x509a04(0x99)]();}[_0x3d3474(0xb2)](_0x52e952){const _0x3ecd9a=_0x3d3474;if(this[_0x3ecd9a(0xdc)]==='following'&&this[_0x3ecd9a(0xcc)]===_0x52e952[_0x3ecd9a(0x127)]['memberID']){let _0x53f7d0=_0x3686e3(_0x52e952[_0x3ecd9a(0x127)])[_0x3ecd9a(0xdd)][_0x3ecd9a(0xe9)]()[_0x3ecd9a(0xaf)](_0x4bc872=>_0x4bc872['id']===_0x210969['id']);if(_0x53f7d0){let _0x4a712a=_0x53f7d0[_0x3ecd9a(0x97)][_0x3ecd9a(0xbb)],_0x2acb33=_0x53f7d0[_0x3ecd9a(0x97)][_0x3ecd9a(0xc1)]['id'];setTimeout(()=>{const _0x5f21db=_0x3ecd9a;this[_0x5f21db(0xe3)][_0x5f21db(0xb0)](_0x50d6fc['id'],{'unitId':_0x4a712a,'subUnitId':_0x2acb33},{'fromCollab':!0x0});});}}}[_0x3d3474(0xb3)](){const _0x154a81=_0x3d3474;var _0x48bfbe;(_0x48bfbe=this['_commandDisposable'])==null||_0x48bfbe[_0x154a81(0x128)](),this[_0x154a81(0xb5)]['next'](_0x154a81(0x110));let _0x445548=new Map(),_0x53ca0a=this[_0x154a81(0x11b)]=new _0x16da52();_0x53ca0a[_0x154a81(0x104)](_0x479b00(()=>{const _0x318aa0=_0x154a81;_0x445548[_0x318aa0(0x129)](({subject:_0xf248e2,subscription:_0x37f1f3})=>{const _0x5be65d=_0x318aa0;_0x37f1f3[_0x5be65d(0x116)](),_0xf248e2[_0x5be65d(0x100)]();}),_0x445548[_0x318aa0(0xaa)]();})),_0x53ca0a[_0x154a81(0x104)](this['_commandService']['onCommandExecuted'](_0x2428f0=>{const _0x13434c=_0x154a81;if(_0x2428f0[_0x13434c(0xfe)]!==_0x3f9d18[_0x13434c(0x112)]||!this[_0x13434c(0xc8)][_0x13434c(0xc3)](_0x2428f0['id']))return;let {id:_0x33b59d}=_0x2428f0,_0x1e4899;if(_0x445548[_0x13434c(0xbf)](_0x33b59d))_0x1e4899=_0x445548[_0x13434c(0xed)](_0x33b59d)[_0x13434c(0xff)];else{_0x1e4899=new _0x221a48();let _0x488ef2=_0x1e4899[_0x13434c(0x117)](_0x1c63c6(this[_0x13434c(0x11e)][_0x13434c(0xe0)](_0x13434c(0xd5))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13434c(0x125)](_0x1b332f=>{const _0x1fb5d8=_0x13434c;this[_0x1fb5d8(0x105)][_0x1fb5d8(0xf0)]({'eventID':_0x4ab04f[_0x1fb5d8(0xa3)],'data':{'unitID':this[_0x1fb5d8(0xd4)],'operations':{[_0x1b332f['id']]:{'id':_0x1b332f['id'],'params':JSON[_0x1fb5d8(0x113)](_0x1b332f[_0x1fb5d8(0x97)])}}}},this['_unitID']);});_0x445548[_0x13434c(0x103)](_0x33b59d,{'subject':_0x1e4899,'subscription':_0x488ef2});}_0x1e4899[_0x13434c(0xcb)](_0x2428f0);})),this[_0x154a81(0xc8)][_0x154a81(0xd9)](this[_0x154a81(0xd4)])[_0x154a81(0x129)](_0x28b206=>this[_0x154a81(0x105)]['send']({'eventID':_0x4ab04f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x154a81(0xd4)],'operations':{[_0x28b206['id']]:{'id':_0x28b206['id'],'params':JSON[_0x154a81(0x113)](_0x28b206[_0x154a81(0x97)])}}}},this[_0x154a81(0xd4)]));}[_0x3d3474(0xa1)](){const _0x1fa1c4=_0x3d3474;var _0x8f4b8;this[_0x1fa1c4(0xb5)][_0x1fa1c4(0xcb)](_0x1fa1c4(0xda)),(_0x8f4b8=this[_0x1fa1c4(0x11b)])==null||_0x8f4b8[_0x1fa1c4(0x128)](),this[_0x1fa1c4(0x11b)]=null;}[_0x3d3474(0x118)](){const _0x499823=_0x3d3474;var _0x517d13;(_0x517d13=this['_commandDisposable'])==null||_0x517d13['dispose'](),this['_status$'][_0x499823(0xcb)](_0x499823(0xa0));}[_0x3d3474(0x99)](){const _0x4addee=_0x3d3474;var _0x9c727b;this['_status$'][_0x4addee(0xcb)](_0x4addee(0xda)),(_0x9c727b=this[_0x4addee(0x11b)])==null||_0x9c727b[_0x4addee(0x128)](),this[_0x4addee(0x11b)]=null;}[_0x3d3474(0xb7)](){const _0x2300f9=_0x3d3474;var _0x4bd277;this[_0x2300f9(0xb5)][_0x2300f9(0xcb)](_0x2300f9(0x120)),(_0x4bd277=this[_0x2300f9(0x11b)])==null||_0x4bd277[_0x2300f9(0x128)]();}['_handleOperation'](_0x243f81){const _0x2fb1e7=_0x3d3474;if(['presenting',_0x2fb1e7(0x120),_0x2fb1e7(0xd7)][_0x2fb1e7(0x101)](this['_status'])||!_0x243f81[_0x2fb1e7(0x127)]['presenter']||_0x243f81[_0x2fb1e7(0x127)][_0x2fb1e7(0xf4)]===this['_collabSession'][_0x2fb1e7(0xc9)]())return;this[_0x2fb1e7(0xdc)]===_0x2fb1e7(0xda)&&this[_0x2fb1e7(0x118)]();let _0x4b3ac3=_0x243f81[_0x2fb1e7(0x127)][_0x2fb1e7(0xa2)];Object[_0x2fb1e7(0xef)](_0x4b3ac3)[_0x2fb1e7(0x129)](_0x53498c=>{const _0x2bde56=_0x2fb1e7;this[_0x2bde56(0xe3)][_0x2bde56(0xb0)](_0x53498c['id'],_0x53498c['params']?JSON[_0x2bde56(0x11a)](_0x53498c[_0x2bde56(0x97)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x309719=_0x3d3474;var _0x2f1e5f;this[_0x309719(0xb5)][_0x309719(0xcb)]('offline'),(_0x2f1e5f=this['_commandDisposable'])==null||_0x2f1e5f[_0x309719(0x128)]();}[_0x3d3474(0xce)](){const _0x5857f7=_0x3d3474;this[_0x5857f7(0xb5)][_0x5857f7(0xcb)]('idle'),this['_fetchOperations']();}};Y=q([K(0x2,_0x5cb103),K(0x3,_0x23d73f(G)),K(0x4,_0x54fef7)],Y);var se=_0x3d3474(0xec),ce=_0x3d3474(0xf2);const X={};let Z=class extends _0x37dab6{constructor(_0xe74b0b){const _0x9f9776=_0x3d3474;super(),this['_liveShareService']=_0xe74b0b,this[_0x9f9776(0xdf)]();}[_0x3d3474(0xdf)](){const _0x511290=_0x3d3474;[_0x4b25e1['id'],_0x2225eb['id'],_0x50d6fc['id']][_0x511290(0x129)](_0x39ca4d=>{const _0x5bfb2c=_0x511290;this[_0x5bfb2c(0xfd)](this[_0x5bfb2c(0xc8)][_0x5bfb2c(0x10e)](_0x39ca4d));});}};Z=q([K(0x0,_0x23d73f(G))],Z);function le(){const _0x70a4ee=_0x3d3474;let _0x5684e9=_0x4ab0a4(J),_0x2dc67a=_0x4ab0a4(_0x58af8f),_0x94a27a=_0x1ea96e(()=>_0x2dc67a[_0x70a4ee(0xc0)](_0x280b3d[_0x70a4ee(0xee)]),void 0x0,!0x1,[]),_0x13f449=_0x1ea96e(_0x1fe622(()=>_0x94a27a?_0x4f094b(()=>_0x2dccd7(_0x5684e9[_0x70a4ee(0xbe)](_0x94a27a[_0x70a4ee(0xca)]()))):_0x2cbaa5(null),[_0x94a27a,_0x5684e9]),null),_0x2aa1d3=_0x1ea96e(_0x13f449?()=>_0x13f449[_0x70a4ee(0xd8)]:null,'idle',!0x1,[_0x13f449]);return _0x13f449?_0x5bd8d4(_0x4e4083,{'align':_0x70a4ee(0xe8),'disabled':_0x2aa1d3===_0x70a4ee(0xd7),'className':_0x70a4ee(0xcf),'overlay':_0x5bd8d4(ue,{'status':_0x2aa1d3,'coordinator':_0x13f449}),'children':_0x5bd8d4(_0x70a4ee(0xeb),{'className':_0x1a3bc1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2aa1d3===_0x70a4ee(0xd7),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2aa1d3!==_0x70a4ee(0xd7)}),'type':_0x70a4ee(0xeb),'children':_0x5bd8d4(_0x16c49d,{})})}):null;}function ue(_0x2417c6){const _0x5a73ff=_0x3d3474;let {status:_0x3067b2,coordinator:_0x4f35dd}=_0x2417c6;switch(_0x3067b2){case _0x5a73ff(0xda):return _0x5bd8d4(de,{'coordinator':_0x4f35dd});case'following':return _0x5bd8d4(fe,{'coordinator':_0x4f35dd});case _0x5a73ff(0x120):return _0x5bd8d4(pe,{'coordinator':_0x4f35dd});case _0x5a73ff(0xd7):return _0x5bd8d4(he,{});case _0x5a73ff(0x110):return _0x5bd8d4(me,{'coordinator':_0x4f35dd});default:return null;}}function de(_0x34057b){const _0x1f9013=_0x3d3474;let {coordinator:_0x4a7dfa}=_0x34057b;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4('div',{'className':_0x1f9013(0xf5),'children':_0x1f9013(0x114)}),_0x5bd8d4(_0x1bffb1,{'onClick':()=>_0x4a7dfa['tryStartPresenting'](),'children':'Start'})]});}function fe(_0x39547b){const _0x1d1f60=_0x3d3474;let {coordinator:_0xb6eab}=_0x39547b;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4(_0x1d1f60(0x10a),{'className':_0x1d1f60(0xf5),'children':_0x1d1f60(0xbc)}),_0x5bd8d4(_0x1bffb1,{'onClick':()=>_0xb6eab[_0x1d1f60(0x9d)](),'children':_0x1d1f60(0x119)})]});}function pe(_0x4ac77a){const _0x22f405=_0x3d3474;let {coordinator:_0x87f1e2}=_0x4ac77a;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4('div',{'className':_0x22f405(0xf5),'children':_0x22f405(0xc7)}),_0x5bd8d4(_0x1bffb1,{'variant':_0x22f405(0xd0),'onClick':()=>_0x87f1e2[_0x22f405(0xf6)](),'children':_0x22f405(0xf8)})]});}function me(_0x5d38b0){const _0xcc506e=_0x3d3474;let {coordinator:_0x28b1e9}=_0x5d38b0;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4(_0xcc506e(0x10a),{'className':_0xcc506e(0xf5),'children':_0xcc506e(0xad)}),_0x5bd8d4(_0x1bffb1,{'variant':'default','onClick':()=>_0x28b1e9[_0xcc506e(0xa8)](),'children':'Stop\x20presenting'})]});}function he(){return _0x5bd8d4(_0x21d3a1,{'children':'You\x27are\x20offline.'});}let Q=class extends _0x37dab6{constructor(_0x793681,_0x2620de){const _0x7491ee=_0x3d3474;super(),this[_0x7491ee(0xfb)]=_0x793681,this[_0x7491ee(0xf1)]=_0x2620de,this['_mountLiveShare']();}[_0x3d3474(0xd6)](){const _0x5356d9=_0x3d3474;this[_0x5356d9(0xfd)](this[_0x5356d9(0xf1)][_0x5356d9(0xde)](_0x342367['HEADER_MENU'],()=>_0x380dde(le,this[_0x5356d9(0xfb)])));}};Q=q([K(0x0,_0x23d73f(_0x2866b9)),K(0x1,_0x320286)],Q);let $=class extends _0x80eeb6{constructor(_0x30f7d1=X,_0x3577bf,_0x125926){const _0xbf9790=_0x3d3474;super(),this['_config']=_0x30f7d1,this[_0xbf9790(0xfb)]=_0x3577bf,this['_configService']=_0x125926;let {..._0x499205}=_0x1647dc({},X,this[_0xbf9790(0x12a)]);this['_configService']['setConfig'](_0xbf9790(0xa4),_0x499205);}[_0x3d3474(0xfa)](){const _0xa30044=_0x3d3474;_0x3b9a91(this[_0xa30044(0xfb)],_0x230d60([[G],[J],[Z],[Q]],this[_0xa30044(0x12a)][_0xa30044(0x11d)])),_0x1bd490(this[_0xa30044(0xfb)],[[Z]]);}[_0x3d3474(0x109)](){const _0x2e3b99=_0x3d3474;_0x1bd490(this[_0x2e3b99(0xfb)],[[Q]]);}};W($,_0x3d3474(0xfe),_0x280b3d['UNIVER_UNKNOWN']),W($,_0x3d3474(0x9f),_0x3d3474(0xe7)),W($,_0x3d3474(0x126),se),W($,_0x3d3474(0xf3),ce),$=q([_0x1df6e6(_0x1b707d,_0x169e26),K(0x1,_0x23d73f(_0x2866b9)),K(0x2,_0x5cb103)],$);export{J as LiveShareController,oe as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x28efc9=_0x5d06;function _0x1604(){const _0xe3bd03=['LIVESHARE_NEW_HOST','forEach','not-following','unit','stringify','button','Start\x20following','_collabSessionService','stopPresenting','iterator','_liveShareService','dispose','_handleOperation','1.0.0-beta.2','getLiveShareCoordinatorSync','type','stopFollowing','getTypeOfUnitAdded$','_handleNewHost','init','7cFIijG','length','presenting','setConfig','You\x27re\x20presenting\x20the\x20document','9rfpLTH','2hOKGSj','sessionStatus$','version','function','3HRQqMj','10KKrKgS','IDLE','includes','string','You\x27are\x20offline.','_stopPresenting','complete','createInstance','registerComponent','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','override','Present\x20this\x20document','executeCommand','OFFLINE','758346bkTLVg','_mountLiveShare','registerInitialStateReporter','operations','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-gray-0\x20dark:!univer-text-gray-0','object','values','_configService','FOLLOWING','_fetchOperations','_handleTerminate','data','108xmpudc','memberID','packageName','_presenter','ONLINE','has','_sharedOperations','getLiveShareCoordinator','996104ciiizB','unitId','send','697541ztHkwS','symbol','_unitID','onStarting','_commandDisposable','parse','NOT_FOLLOWING','event$','text','349990ahkpPF','getStatus','end','LIVESHARE_TERMINATE','idle','_status$','_uiPartsService','You\x27re\x20following\x20the\x20presenter','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter','onRendered','live-share.config','disposeWithMe','UNIVER_LIVE_SHARE_PLUGIN','_handleNewChangeSets','status$','2318405oMtOjU','_reporters','_beIdle','reverse','asObservable','toPrimitive','_handleOnline','pipe','UNIVER_SHEET','set','next','_init','getCurrentTypeOfUnit$','NEW_CHANGESETS','tryStartPresenting','LIVESHARE_OPERATION','_commandService','subscribe','Stop\x20following','add','clear','PRESENTING','_startFollowing','Start','dispose$','UNIVER_UNKNOWN','_startPresenting','pluginName','onCommandExecuted','_stopFollowing','find','LIVESHARE_REQUEST_HOST','delete','defineProperty','offline','prototype','sheet','getInitialStates','get','_univerInstanceService','constructor','params','_startLiveShareCoordinator','decorate','_collabSession','requireSession','_config','_handleOffline','getUnitId','startFollowing','_injector','_status','getMemberID','_entities','presenter','default','following','mutations','234641MKOSLx','registerSharedOperation','unsubscribe','HEADER_MENU','div','1680968ZwxHwP'];_0x1604=function(){return _0xe3bd03;};return _0x1604();}(function(_0x39472d,_0x41c466){const _0x1ed640=_0x5d06,_0xc01578=_0x39472d();while(!![]){try{const _0x549d76=parseInt(_0x1ed640(0x106))/0x1*(-parseInt(_0x1ed640(0xd2))/0x2)+-parseInt(_0x1ed640(0xd6))/0x3*(-parseInt(_0x1ed640(0xfa))/0x4)+-parseInt(_0x1ed640(0x78))/0x5+parseInt(_0x1ed640(0xe6))/0x6*(parseInt(_0x1ed640(0xcc))/0x7)+parseInt(_0x1ed640(0xb7))/0x8*(parseInt(_0x1ed640(0xd1))/0x9)+-parseInt(_0x1ed640(0xd7))/0xa*(parseInt(_0x1ed640(0xb2))/0xb)+-parseInt(_0x1ed640(0xf2))/0xc*(-parseInt(_0x1ed640(0xfd))/0xd);if(_0x549d76===_0x41c466)break;else _0xc01578['push'](_0xc01578['shift']());}catch(_0x305559){_0xc01578['push'](_0xc01578['shift']());}}}(_0x1604,0x38fe9));import{CollaborationEvent as _0x2c6144,parseProtocolChangeset as _0x8eba8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2df1a0,SessionStatus as _0xef806f,UniverCollaborationClientPlugin as _0x52d034}from'@univerjs-pro/collaboration-client';import{CommandType as _0x50387b,DependentOn as _0x46133d,Disposable as _0x485ed1,DisposableCollection as _0x3c6c46,ICommandService as _0xc5c8e,IConfigService as _0xc5812d,IUniverInstanceService as _0x323fb4,Inject as _0x30448f,Injector as _0x2e6242,Plugin as _0x7e6f53,RxDisposable as _0x269553,UniverInstanceType as _0x2009b4,merge as _0x2d940c,mergeOverrideWithDependencies as _0x1542a2,registerDependencies as _0x4e0201,toDisposable as _0x44fb55,touchDependencies as _0x46b324}from'@univerjs/core';import{InsertSheetMutation as _0x4f759b,SetWorksheetActiveOperation as _0x206528}from'@univerjs/sheets';import{BehaviorSubject as _0x2617e4,Subject as _0x186ef8,defer as _0x4ec539,from as _0x45a4d2,of as _0x4aee88}from'rxjs';import{takeUntil as _0x211271,throttleTime as _0x3c282d}from'rxjs/operators';import{UniverLicensePlugin as _0x444b97}from'@univerjs-pro/license';import{SetScrollOperation as _0x277ce5,SetZoomRatioOperation as _0x1d67b2}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x128244,IUIPartsService as _0x22dbef,connectInjector as _0xe84d60,useDependency as _0x1fed3b,useObservable as _0x3b7677}from'@univerjs/ui';import{Button as _0x1d906c,Dropdown as _0xb571d6}from'@univerjs/design';import{LiveShareIcon as _0x125941}from'@univerjs/icons';function _0x5d06(_0x31b2c6,_0x4cc46c){_0x31b2c6=_0x31b2c6-0x6d;const _0x160452=_0x1604();let _0x5d06a4=_0x160452[_0x31b2c6];return _0x5d06a4;}import{useMemo as _0x2da51d}from'react';import{Fragment as _0x2b628f,jsx as _0x50a3a7,jsxs as _0x303561}from'react/jsx-runtime';function z(_0x3e5185){'@babel/helpers - typeof';const _0x8ed4ed=_0x5d06;return z=typeof Symbol==_0x8ed4ed(0xd5)&&typeof Symbol[_0x8ed4ed(0xc1)]==_0x8ed4ed(0xfe)?function(_0x5c6ef3){return typeof _0x5c6ef3;}:function(_0x32b0f6){const _0x5e5a0b=_0x8ed4ed;return _0x32b0f6&&typeof Symbol=='function'&&_0x32b0f6[_0x5e5a0b(0xa0)]===Symbol&&_0x32b0f6!==Symbol[_0x5e5a0b(0x9b)]?_0x5e5a0b(0xfe):typeof _0x32b0f6;},z(_0x3e5185);}function B(_0xb1de1b,_0x21cd6f){const _0x4b3890=_0x5d06;if(z(_0xb1de1b)!='object'||!_0xb1de1b)return _0xb1de1b;var _0x59cfab=_0xb1de1b[Symbol[_0x4b3890(0x7d)]];if(_0x59cfab!==void 0x0){var _0x34f210=_0x59cfab['call'](_0xb1de1b,_0x21cd6f||_0x4b3890(0xaf));if(z(_0x34f210)!=_0x4b3890(0xeb))return _0x34f210;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x21cd6f===_0x4b3890(0xda)?String:Number)(_0xb1de1b);}function V(_0x6513c6){const _0x382c69=_0x5d06;var _0x3d95df=B(_0x6513c6,'string');return z(_0x3d95df)==_0x382c69(0xfe)?_0x3d95df:_0x3d95df+'';}function H(_0x189462,_0x13f64a,_0x5deb6d){const _0xe8c9f1=_0x5d06;return(_0x13f64a=V(_0x13f64a))in _0x189462?Object[_0xe8c9f1(0x99)](_0x189462,_0x13f64a,{'value':_0x5deb6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x189462[_0x13f64a]=_0x5deb6d,_0x189462;}var U=class extends _0x485ed1{constructor(..._0x444fa3){const _0x26fb8b=_0x5d06;super(..._0x444fa3),H(this,_0x26fb8b(0xf8),new Set()),H(this,_0x26fb8b(0x79),new Set());}[_0x28efc9(0xb3)](_0x4480a2){const _0x14cb9f=_0x28efc9;return this[_0x14cb9f(0xf8)][_0x14cb9f(0x8b)](_0x4480a2),_0x44fb55(()=>this[_0x14cb9f(0xf8)][_0x14cb9f(0x98)](_0x4480a2));}[_0x28efc9(0xe8)](_0x4b1296){const _0x42348a=_0x28efc9;return this['_reporters']['add'](_0x4b1296),_0x44fb55(()=>this[_0x42348a(0x79)][_0x42348a(0x98)](_0x4b1296));}[_0x28efc9(0x70)](_0x9b55a8){const _0x4955a4=_0x28efc9;return this['_sharedOperations'][_0x4955a4(0xf7)](_0x9b55a8);}['getInitialStates'](_0x5e61fd){const _0x303699=_0x28efc9;return Array['from'](this[_0x303699(0x79)])['map'](_0x83886a=>_0x83886a(_0x5e61fd));}};function W(_0xd50a91,_0x45618a){return function(_0x21b0d0,_0x125b7f){_0x45618a(_0x21b0d0,_0x125b7f,_0xd50a91);};}function G(_0x48c0fe,_0x224457,_0x36cbcc,_0x196242){const _0x5499b7=_0x28efc9;var _0x27cde5=arguments['length'],_0x1d7753=_0x27cde5<0x3?_0x224457:_0x196242===null?_0x196242=Object['getOwnPropertyDescriptor'](_0x224457,_0x36cbcc):_0x196242,_0x27ec9a;if(typeof Reflect==_0x5499b7(0xeb)&&typeof Reflect[_0x5499b7(0xa3)]==_0x5499b7(0xd5))_0x1d7753=Reflect[_0x5499b7(0xa3)](_0x48c0fe,_0x224457,_0x36cbcc,_0x196242);else{for(var _0x4d5d06=_0x48c0fe[_0x5499b7(0xcd)]-0x1;_0x4d5d06>=0x0;_0x4d5d06--)(_0x27ec9a=_0x48c0fe[_0x4d5d06])&&(_0x1d7753=(_0x27cde5<0x3?_0x27ec9a(_0x1d7753):_0x27cde5>0x3?_0x27ec9a(_0x224457,_0x36cbcc,_0x1d7753):_0x27ec9a(_0x224457,_0x36cbcc))||_0x1d7753);}return _0x27cde5>0x3&&_0x1d7753&&Object[_0x5499b7(0x99)](_0x224457,_0x36cbcc,_0x1d7753),_0x1d7753;}let K=class extends _0x269553{constructor(_0x2941a6,_0x131b20,_0x11701f){const _0xe73e96=_0x28efc9;super(),this[_0xe73e96(0x9f)]=_0x2941a6,this[_0xe73e96(0xaa)]=_0x131b20,this['_collabSessionService']=_0x11701f,H(this,'_entities',new Map()),this[_0xe73e96(0x83)]();}async[_0x28efc9(0xf9)](_0x33672c){const _0x260586=_0x28efc9;return this['_entities'][_0x260586(0xf7)](_0x33672c)||await this[_0x260586(0xa2)](_0x33672c),this[_0x260586(0xad)][_0x260586(0x9e)](_0x33672c);}[_0x28efc9(0xc6)](_0x4e8036){const _0x75cffc=_0x28efc9;return this[_0x75cffc(0xad)][_0x75cffc(0x9e)](_0x4e8036)??null;}[_0x28efc9(0x83)](){const _0x46e4d3=_0x28efc9;this[_0x46e4d3(0x9f)][_0x46e4d3(0xc9)](_0x2009b4[_0x46e4d3(0x80)])[_0x46e4d3(0x7f)](_0x211271(this[_0x46e4d3(0x90)]))[_0x46e4d3(0x89)](async _0x147b32=>{const _0x1435c6=_0x46e4d3;let _0x4244e4=_0x147b32[_0x1435c6(0xbb)][_0x1435c6(0xa8)]();this[_0x1435c6(0xad)]['has'](_0x4244e4)||this[_0x1435c6(0xa2)](_0x4244e4);}),this[_0x46e4d3(0x9f)]['getTypeOfUnitDisposed$'](_0x2009b4[_0x46e4d3(0x80)])[_0x46e4d3(0x7f)](_0x211271(this[_0x46e4d3(0x90)]))[_0x46e4d3(0x89)](_0x298a8f=>{const _0x33ff8c=_0x46e4d3;let _0x1087d3=_0x298a8f['getUnitId'](),_0x5947db=this[_0x33ff8c(0xad)][_0x33ff8c(0x9e)](_0x1087d3);_0x5947db==null||_0x5947db[_0x33ff8c(0xc3)]();});}async['_startLiveShareCoordinator'](_0x214980){const _0x27f51f=_0x28efc9;let _0x423da8=await this[_0x27f51f(0xbf)][_0x27f51f(0xa5)](_0x214980),_0x4b22f9=this[_0x27f51f(0xaa)][_0x27f51f(0xde)](J,_0x214980,_0x423da8);return _0x4b22f9[_0x27f51f(0xcb)](),this['_entities']['set'](_0x214980,_0x4b22f9),_0x4b22f9;}};K=G([W(0x0,_0x323fb4),W(0x1,_0x30448f(_0x2e6242)),W(0x2,_0x30448f(_0x2df1a0))],K);let q=function(_0x10ab2c){const _0x46f44e=_0x28efc9;return _0x10ab2c['OFFLINE']=_0x46f44e(0x9a),_0x10ab2c[_0x46f44e(0xd8)]='idle',_0x10ab2c[_0x46f44e(0xee)]='following',_0x10ab2c[_0x46f44e(0x103)]=_0x46f44e(0xba),_0x10ab2c[_0x46f44e(0x8d)]=_0x46f44e(0xce),_0x10ab2c;}({}),J=class extends _0x269553{get[_0x28efc9(0xab)](){return this['_status$']['getValue']();}constructor(_0x72c94a,_0x9e2d53,_0x4682ca,_0x1f6229,_0x4e0667){const _0x346055=_0x28efc9;super(),this[_0x346055(0xff)]=_0x72c94a,this['_collabSession']=_0x9e2d53,this[_0x346055(0xed)]=_0x4682ca,this['_liveShareService']=_0x1f6229,this[_0x346055(0x88)]=_0x4e0667,H(this,_0x346055(0x6d),new _0x2617e4('idle')),H(this,_0x346055(0x77),this[_0x346055(0x6d)][_0x346055(0x7c)]()),H(this,'_init',!0x1),H(this,_0x346055(0x101),null),H(this,_0x346055(0xf5),null);}[_0x28efc9(0xc3)](){const _0x27768b=_0x28efc9;var _0x136184;(_0x136184=this[_0x27768b(0x101)])==null||_0x136184['dispose'](),this[_0x27768b(0x6d)][_0x27768b(0x82)]('idle'),this['_status$'][_0x27768b(0xdd)]();}[_0x28efc9(0x107)](){return this['_status'];}[_0x28efc9(0xcb)](){const _0x4cf14e=_0x28efc9;this[_0x4cf14e(0x83)]||(this['_init']=!0x0,this[_0x4cf14e(0xa4)][_0x4cf14e(0xd3)][_0x4cf14e(0x7f)](_0x211271(this[_0x4cf14e(0x90)]))[_0x4cf14e(0x89)](_0x4ef23c=>{const _0x47e8f3=_0x4cf14e;switch(_0x4ef23c){case _0xef806f[_0x47e8f3(0xe5)]:this[_0x47e8f3(0xa7)]();break;case _0xef806f[_0x47e8f3(0xf6)]:this[_0x47e8f3(0x7e)]();break;default:}}),this[_0x4cf14e(0xa4)][_0x4cf14e(0x104)]['pipe'](_0x211271(this[_0x4cf14e(0x90)]))['subscribe'](_0xa3b57c=>{const _0x2ec653=_0x4cf14e;let {eventID:_0x35d61a}=_0xa3b57c;switch(_0x35d61a){case _0x2c6144[_0x2ec653(0xb8)]:this[_0x2ec653(0xca)](_0xa3b57c);break;case _0x2c6144[_0x2ec653(0x87)]:this[_0x2ec653(0xc4)](_0xa3b57c);break;case _0x2c6144[_0x2ec653(0x109)]:this[_0x2ec653(0xf0)]();break;case _0x2c6144[_0x2ec653(0x85)]:this[_0x2ec653(0x76)](_0xa3b57c);break;default:}}));}[_0x28efc9(0x86)](){const _0x3da697=_0x28efc9;this[_0x3da697(0xa4)][_0x3da697(0xfc)]({'eventID':_0x2c6144[_0x3da697(0x97)],'data':{'unitID':this[_0x3da697(0xff)],'userID':this[_0x3da697(0xa4)]['getMemberID']()}},this[_0x3da697(0xff)]);}[_0x28efc9(0xc0)](){const _0x52c5f7=_0x28efc9;this[_0x52c5f7(0xab)]==='presenting'&&(this[_0x52c5f7(0x6d)][_0x52c5f7(0x82)](_0x52c5f7(0x10a)),this[_0x52c5f7(0xa4)][_0x52c5f7(0xfc)]({'eventID':_0x2c6144[_0x52c5f7(0x109)],'data':{'unitID':this[_0x52c5f7(0xff)]}},this['_unitID']));}[_0x28efc9(0xa9)](){const _0x26856c=_0x28efc9;this[_0x26856c(0xab)]==='not-following'&&(this[_0x26856c(0x6d)][_0x26856c(0x82)](_0x26856c(0xb0)),this[_0x26856c(0x8e)]());}['stopFollowing'](){const _0x4285c=_0x28efc9;this[_0x4285c(0xab)]===_0x4285c(0xb0)&&this[_0x4285c(0x95)]();}[_0x28efc9(0xca)](_0x346343){const _0x56a17a=_0x28efc9;let {presenter:_0x3aa2bd}=_0x346343[_0x56a17a(0xf1)],_0x15dd5b=this[_0x56a17a(0xa4)][_0x56a17a(0xac)]();this[_0x56a17a(0xf5)]=_0x3aa2bd,_0x3aa2bd===_0x15dd5b?(this[_0x56a17a(0x95)](),this[_0x56a17a(0x92)]()):this['_status']!==_0x56a17a(0xba)&&(this['_stopPresenting'](),this[_0x56a17a(0x8e)]());}[_0x28efc9(0xef)](){const _0x513367=_0x28efc9;let _0x24ced8={'eventID':_0x2c6144['LIVESHARE_FETCH_OPERATIONS']};this[_0x513367(0xa4)][_0x513367(0xfc)](_0x24ced8,this[_0x513367(0xff)]);}[_0x28efc9(0xf0)](){const _0x5d0aa7=_0x28efc9;this[_0x5d0aa7(0xf5)]=null,this[_0x5d0aa7(0xab)]!==_0x5d0aa7(0xce)&&this[_0x5d0aa7(0x7a)]();}[_0x28efc9(0x76)](_0x341385){const _0x39e37c=_0x28efc9;if(this[_0x39e37c(0xab)]===_0x39e37c(0xb0)&&this[_0x39e37c(0xf5)]===_0x341385[_0x39e37c(0xf1)][_0x39e37c(0xf3)]){let _0x4914bb=_0x8eba8(_0x341385[_0x39e37c(0xf1)])[_0x39e37c(0xb1)][_0x39e37c(0x7b)]()[_0x39e37c(0x96)](_0x260789=>_0x260789['id']===_0x4f759b['id']);if(_0x4914bb){let _0x2e7a6b=_0x4914bb[_0x39e37c(0xa1)][_0x39e37c(0xfb)],_0x35e687=_0x4914bb[_0x39e37c(0xa1)][_0x39e37c(0x9c)]['id'];setTimeout(()=>{const _0x500f4e=_0x39e37c;this[_0x500f4e(0x88)][_0x500f4e(0xe4)](_0x206528['id'],{'unitId':_0x2e7a6b,'subUnitId':_0x35e687},{'fromCollab':!0x0});});}}}[_0x28efc9(0x92)](){const _0x369999=_0x28efc9;var _0x31bc32;(_0x31bc32=this[_0x369999(0x101)])==null||_0x31bc32[_0x369999(0xc3)](),this[_0x369999(0x6d)][_0x369999(0x82)](_0x369999(0xce));let _0x25d06f=new Map(),_0x21ec3b=this[_0x369999(0x101)]=new _0x3c6c46();_0x21ec3b['add'](_0x44fb55(()=>{const _0x5d8b74=_0x369999;_0x25d06f[_0x5d8b74(0xb9)](({subject:_0x9cabba,subscription:_0x4e22b0})=>{const _0x509a65=_0x5d8b74;_0x4e22b0[_0x509a65(0xb4)](),_0x9cabba['complete']();}),_0x25d06f[_0x5d8b74(0x8c)]();})),_0x21ec3b[_0x369999(0x8b)](this[_0x369999(0x88)][_0x369999(0x94)](_0x5e99ba=>{const _0xe55e46=_0x369999;if(_0x5e99ba[_0xe55e46(0xc7)]!==_0x50387b['OPERATION']||!this[_0xe55e46(0xc2)][_0xe55e46(0x70)](_0x5e99ba['id']))return;let {id:_0x1f740f}=_0x5e99ba,_0x1210e7;if(_0x25d06f[_0xe55e46(0xf7)](_0x1f740f))_0x1210e7=_0x25d06f['get'](_0x1f740f)['subject'];else{_0x1210e7=new _0x186ef8();let _0x512174=_0x1210e7['pipe'](_0x3c282d(this['_configService']['getConfig']('SAME_OPERATION_SHARE_INTERVAL')??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe55e46(0x89)](_0x2f682e=>{const _0x5e9e45=_0xe55e46;this['_collabSession'][_0x5e9e45(0xfc)]({'eventID':_0x2c6144[_0x5e9e45(0x87)],'data':{'unitID':this[_0x5e9e45(0xff)],'operations':{[_0x2f682e['id']]:{'id':_0x2f682e['id'],'params':JSON['stringify'](_0x2f682e[_0x5e9e45(0xa1)])}}}},this['_unitID']);});_0x25d06f[_0xe55e46(0x81)](_0x1f740f,{'subject':_0x1210e7,'subscription':_0x512174});}_0x1210e7[_0xe55e46(0x82)](_0x5e99ba);})),this['_liveShareService'][_0x369999(0x9d)](this['_unitID'])[_0x369999(0xb9)](_0x29790a=>this['_collabSession'][_0x369999(0xfc)]({'eventID':_0x2c6144[_0x369999(0x87)],'data':{'unitID':this['_unitID'],'operations':{[_0x29790a['id']]:{'id':_0x29790a['id'],'params':JSON[_0x369999(0xbc)](_0x29790a[_0x369999(0xa1)])}}}},this['_unitID']));}[_0x28efc9(0xdc)](){const _0x49aeb5=_0x28efc9;var _0x263654;this[_0x49aeb5(0x6d)][_0x49aeb5(0x82)](_0x49aeb5(0x10a)),(_0x263654=this['_commandDisposable'])==null||_0x263654[_0x49aeb5(0xc3)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x2cbcd4=_0x28efc9;var _0x307b1a;(_0x307b1a=this['_commandDisposable'])==null||_0x307b1a[_0x2cbcd4(0xc3)](),this[_0x2cbcd4(0x6d)][_0x2cbcd4(0x82)]('following');}[_0x28efc9(0x7a)](){const _0x1d2077=_0x28efc9;var _0x23a0ab;this['_status$']['next'](_0x1d2077(0x10a)),(_0x23a0ab=this['_commandDisposable'])==null||_0x23a0ab[_0x1d2077(0xc3)](),this[_0x1d2077(0x101)]=null;}['_stopFollowing'](){const _0x59afdf=_0x28efc9;var _0x4687e4;this[_0x59afdf(0x6d)]['next'](_0x59afdf(0xba)),(_0x4687e4=this['_commandDisposable'])==null||_0x4687e4[_0x59afdf(0xc3)]();}['_handleOperation'](_0xcab4e7){const _0x5079e1=_0x28efc9;if([_0x5079e1(0xce),'not-following',_0x5079e1(0x9a)][_0x5079e1(0xd9)](this[_0x5079e1(0xab)])||!_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xae)]||_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xae)]===this['_collabSession']['getMemberID']())return;this[_0x5079e1(0xab)]==='idle'&&this['_startFollowing']();let _0x513dc5=_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xe9)];Object[_0x5079e1(0xec)](_0x513dc5)[_0x5079e1(0xb9)](_0x305fc8=>{const _0x2fe514=_0x5079e1;this[_0x2fe514(0x88)][_0x2fe514(0xe4)](_0x305fc8['id'],_0x305fc8[_0x2fe514(0xa1)]?JSON[_0x2fe514(0x102)](_0x305fc8[_0x2fe514(0xa1)]):null,{'fromCollab':!0x0});});}[_0x28efc9(0xa7)](){const _0x13e7df=_0x28efc9;var _0x132d68;this[_0x13e7df(0x6d)][_0x13e7df(0x82)]('offline'),(_0x132d68=this['_commandDisposable'])==null||_0x132d68['dispose']();}[_0x28efc9(0x7e)](){const _0x25894e=_0x28efc9;this[_0x25894e(0x6d)][_0x25894e(0x82)](_0x25894e(0x10a)),this[_0x25894e(0xef)]();}};J=G([W(0x2,_0xc5812d),W(0x3,_0x30448f(U)),W(0x4,_0xc5c8e)],J);var se='@univerjs-pro/live-share',ce=_0x28efc9(0xc5);const Y={};let X=class extends _0x485ed1{constructor(_0x14c69f){const _0x48c546=_0x28efc9;super(),this[_0x48c546(0xc2)]=_0x14c69f,this[_0x48c546(0x83)]();}['_init'](){const _0x13ce22=_0x28efc9;[_0x1d67b2['id'],_0x277ce5['id'],_0x206528['id']][_0x13ce22(0xb9)](_0x249418=>{const _0x495658=_0x13ce22;this[_0x495658(0x74)](this[_0x495658(0xc2)][_0x495658(0xb3)](_0x249418));});}};X=G([W(0x0,_0x30448f(U))],X);function Z(){const _0x37cfaf=_0x28efc9;let _0x52635f=_0x1fed3b(K),_0x37a965=_0x1fed3b(_0x323fb4),_0x21c6f8=_0x3b7677(()=>_0x37a965[_0x37cfaf(0x84)](_0x2009b4[_0x37cfaf(0x80)]),void 0x0,!0x1,[]),_0x215935=_0x3b7677(_0x2da51d(()=>_0x21c6f8?_0x4ec539(()=>_0x45a4d2(_0x52635f['getLiveShareCoordinator'](_0x21c6f8[_0x37cfaf(0xa8)]()))):_0x4aee88(null),[_0x21c6f8,_0x52635f]),null),_0x5ca854=_0x3b7677(_0x215935?()=>_0x215935[_0x37cfaf(0x77)]:null,_0x37cfaf(0x10a),!0x1,[_0x215935]);return _0x215935?_0x50a3a7(_0xb571d6,{'align':_0x37cfaf(0x108),'disabled':_0x5ca854===_0x37cfaf(0x9a),'className':_0x37cfaf(0xea),'overlay':_0x50a3a7(le,{'status':_0x5ca854,'coordinator':_0x215935}),'children':_0x50a3a7(_0x1d906c,{'size':_0x37cfaf(0xe1),'variant':_0x37cfaf(0x105),'disabled':_0x5ca854==='offline','type':_0x37cfaf(0xbd),'children':_0x50a3a7(_0x125941,{})})}):null;}function le(_0x41264a){const _0x5a60e3=_0x28efc9;let {status:_0x5e54dd,coordinator:_0x29c058}=_0x41264a;switch(_0x5e54dd){case'idle':return _0x50a3a7(ue,{'coordinator':_0x29c058});case'following':return _0x50a3a7(de,{'coordinator':_0x29c058});case _0x5a60e3(0xba):return _0x50a3a7(fe,{'coordinator':_0x29c058});case'offline':return _0x50a3a7(me,{});case _0x5a60e3(0xce):return _0x50a3a7(pe,{'coordinator':_0x29c058});default:return null;}}function ue(_0x48aade){const _0xfd4901=_0x28efc9;let {coordinator:_0x305c34}=_0x48aade;return _0x303561(_0x2b628f,{'children':[_0x50a3a7(_0xfd4901(0xb6),{'className':_0xfd4901(0xe0),'children':_0xfd4901(0xe3)}),_0x50a3a7(_0x1d906c,{'onClick':()=>_0x305c34[_0xfd4901(0x86)](),'children':_0xfd4901(0x8f)})]});}function de(_0x18b9ea){const _0x496ab4=_0x28efc9;let {coordinator:_0x43ddf7}=_0x18b9ea;return _0x303561(_0x2b628f,{'children':[_0x50a3a7('div',{'className':_0x496ab4(0xe0),'children':_0x496ab4(0x6f)}),_0x50a3a7(_0x1d906c,{'onClick':()=>_0x43ddf7[_0x496ab4(0xc8)](),'children':_0x496ab4(0x8a)})]});}function fe(_0x41f4b3){const _0x172c08=_0x28efc9;let {coordinator:_0x4338f6}=_0x41f4b3;return _0x303561(_0x2b628f,{'children':[_0x50a3a7(_0x172c08(0xb6),{'className':_0x172c08(0xe0),'children':_0x172c08(0x71)}),_0x50a3a7(_0x1d906c,{'variant':_0x172c08(0x105),'onClick':()=>_0x4338f6[_0x172c08(0xa9)](),'children':_0x172c08(0xbe)})]});}function pe(_0x10b33d){const _0x28a5c9=_0x28efc9;let {coordinator:_0x202eea}=_0x10b33d;return _0x303561(_0x2b628f,{'children':[_0x50a3a7('div',{'className':_0x28a5c9(0xe0),'children':_0x28a5c9(0xd0)}),_0x50a3a7(_0x1d906c,{'variant':_0x28a5c9(0xaf),'onClick':()=>_0x202eea[_0x28a5c9(0xc0)](),'children':'Stop\x20presenting'})]});}function me(){const _0x533d34=_0x28efc9;return _0x50a3a7(_0x2b628f,{'children':_0x533d34(0xdb)});}let Q=class extends _0x485ed1{constructor(_0x492351,_0x140a32){const _0x591f10=_0x28efc9;super(),this['_injector']=_0x492351,this[_0x591f10(0x6e)]=_0x140a32,this['_mountLiveShare']();}[_0x28efc9(0xe7)](){const _0x30316c=_0x28efc9;this[_0x30316c(0x74)](this['_uiPartsService'][_0x30316c(0xdf)](_0x128244[_0x30316c(0xb5)],()=>_0xe84d60(Z,this[_0x30316c(0xaa)])));}};Q=G([W(0x0,_0x30448f(_0x2e6242)),W(0x1,_0x22dbef)],Q);let $=class extends _0x7e6f53{constructor(_0x267b52=Y,_0x57adb9,_0x77ad19){const _0x542814=_0x28efc9;super(),this[_0x542814(0xa6)]=_0x267b52,this[_0x542814(0xaa)]=_0x57adb9,this[_0x542814(0xed)]=_0x77ad19;let {..._0x588fc1}=_0x2d940c({},Y,this[_0x542814(0xa6)]);this[_0x542814(0xed)][_0x542814(0xcf)](_0x542814(0x73),_0x588fc1);}[_0x28efc9(0x100)](){const _0x19b878=_0x28efc9;_0x4e0201(this[_0x19b878(0xaa)],_0x1542a2([[U],[K],[X],[Q]],this[_0x19b878(0xa6)][_0x19b878(0xe2)])),_0x46b324(this[_0x19b878(0xaa)],[[X]]);}[_0x28efc9(0x72)](){const _0x440555=_0x28efc9;_0x46b324(this[_0x440555(0xaa)],[[Q]]);}};H($,_0x28efc9(0xc7),_0x2009b4[_0x28efc9(0x91)]),H($,_0x28efc9(0x93),_0x28efc9(0x75)),H($,_0x28efc9(0xf4),se),H($,_0x28efc9(0xd4),ce),$=G([_0x46133d(_0x444b97,_0x52d034),W(0x1,_0x30448f(_0x2e6242)),W(0x2,_0xc5812d)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x1cb0(){const _0x29cd49=['IDLE','get','191IgxYag','_liveShareController','extend','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20active\x20workbook\x20found.','LiveShareStatus','1812cmSFuq','UniverProLiveShare','defineProperty','@univerjs/core','@univerjs-pro/live-share','getUnitId','9QMhhEU','toPrimitive','getLiveShareStatus','FUniver','FEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','object','default','getStatus','call','LiveShareController','string','@univerjs/core/facade','UNIVER_SHEET','stopPresenting','3419896mzAcZT','2062522YpZudL','getCurrentUnitOfType','symbol','UniverCore','stopFollowing','UniverInstanceType','constructor','getLiveShareCoordinatorSync','10KBvoXR','IUniverInstanceService','startFollowing','11106bwpMBB','4497036QhxOht','6395598EImuot','_injector','7234825GVYziG','_initialize','7124VuAlqd','function'];_0x1cb0=function(){return _0x29cd49;};return _0x1cb0();}function _0x31c6(_0x352171,_0x427a4c){_0x352171=_0x352171-0x106;const _0x1cb086=_0x1cb0();let _0x31c61d=_0x1cb086[_0x352171];return _0x31c61d;}(function(_0xdc734b,_0x29c94e){const _0x503afd=_0x31c6,_0x383934=_0xdc734b();while(!![]){try{const _0x1bc20c=-parseInt(_0x503afd(0x114))/0x1*(parseInt(_0x503afd(0x10a))/0x2)+-parseInt(_0x503afd(0x11a))/0x3*(parseInt(_0x503afd(0x110))/0x4)+parseInt(_0x503afd(0x10e))/0x5+parseInt(_0x503afd(0x10b))/0x6+-parseInt(_0x503afd(0x130))/0x7+parseInt(_0x503afd(0x12f))/0x8*(parseInt(_0x503afd(0x120))/0x9)+-parseInt(_0x503afd(0x107))/0xa*(-parseInt(_0x503afd(0x10c))/0xb);if(_0x1bc20c===_0x29c94e)break;else _0x383934['push'](_0x383934['shift']());}catch(_0x2d068f){_0x383934['push'](_0x383934['shift']());}}}(_0x1cb0,0xbd0ef),function(_0x43d19c,_0xce4b63){const _0x5850a3=_0x31c6;typeof exports==_0x5850a3(0x126)&&typeof module<'u'?_0xce4b63(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5850a3(0x111)&&define['amd']?define([_0x5850a3(0x11e),_0x5850a3(0x11d),_0x5850a3(0x12c)],_0xce4b63):(_0x43d19c=typeof globalThis<'u'?globalThis:_0x43d19c||self,_0xce4b63(_0x43d19c[_0x5850a3(0x11b)],_0x43d19c[_0x5850a3(0x133)],_0x43d19c['UniverCoreFacade']));}(this,function(_0x43cff3,_0x2d3344,_0x2c84e7){const _0x513125=_0x31c6;function _0xdd1410(_0x525362){'@babel/helpers - typeof';const _0x53d65a=_0x31c6;return _0xdd1410=typeof Symbol==_0x53d65a(0x111)&&typeof Symbol['iterator']==_0x53d65a(0x132)?function(_0x33eb1e){return typeof _0x33eb1e;}:function(_0x1ffc0e){const _0x405cd9=_0x53d65a;return _0x1ffc0e&&typeof Symbol=='function'&&_0x1ffc0e[_0x405cd9(0x136)]===Symbol&&_0x1ffc0e!==Symbol['prototype']?_0x405cd9(0x132):typeof _0x1ffc0e;},_0xdd1410(_0x525362);}function _0x27e0ee(_0x17f3e1,_0x2ca486){const _0xe597d9=_0x31c6;if(_0xdd1410(_0x17f3e1)!=_0xe597d9(0x126)||!_0x17f3e1)return _0x17f3e1;var _0x4decc8=_0x17f3e1[Symbol[_0xe597d9(0x121)]];if(_0x4decc8!==void 0x0){var _0x400663=_0x4decc8[_0xe597d9(0x129)](_0x17f3e1,_0x2ca486||_0xe597d9(0x127));if(_0xdd1410(_0x400663)!=_0xe597d9(0x126))return _0x400663;throw TypeError(_0xe597d9(0x117));}return(_0x2ca486===_0xe597d9(0x12b)?String:Number)(_0x17f3e1);}function _0x266b9d(_0x1c59a8){var _0x5532f6=_0x27e0ee(_0x1c59a8,'string');return _0xdd1410(_0x5532f6)=='symbol'?_0x5532f6:_0x5532f6+'';}function _0x5811b4(_0x299874,_0x526c70,_0x28c2e0){const _0x1ef096=_0x31c6;return(_0x526c70=_0x266b9d(_0x526c70))in _0x299874?Object[_0x1ef096(0x11c)](_0x299874,_0x526c70,{'value':_0x28c2e0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x299874[_0x526c70]=_0x28c2e0,_0x299874;}var _0x5c5f24=class extends _0x2c84e7[_0x513125(0x123)]{constructor(..._0x252233){const _0x143bab=_0x513125;super(..._0x252233),_0x5811b4(this,_0x143bab(0x115),void 0x0);}[_0x513125(0x10f)](_0xc0da00){const _0x51a97f=_0x513125;this['_liveShareController']=_0xc0da00[_0x51a97f(0x113)](_0x43cff3[_0x51a97f(0x12a)]);}[_0x513125(0x122)](){const _0x34a1ff=_0x513125;let _0x9bfc9=this[_0x34a1ff(0x10d)][_0x34a1ff(0x113)](_0x2d3344[_0x34a1ff(0x108)])['getCurrentUnitOfType'](_0x2d3344[_0x34a1ff(0x135)][_0x34a1ff(0x12d)]);if(!_0x9bfc9)throw Error('No\x20active\x20workbook\x20found.');let _0x23f612=_0x9bfc9['getUnitId'](),_0x2c701d=this[_0x34a1ff(0x115)][_0x34a1ff(0x106)](_0x23f612);return(_0x2c701d==null?void 0x0:_0x2c701d[_0x34a1ff(0x128)]())??_0x43cff3[_0x34a1ff(0x119)][_0x34a1ff(0x112)];}[_0x513125(0x109)](){const _0x12ee80=_0x513125;let _0x3553f4=this[_0x12ee80(0x10d)]['get'](_0x2d3344[_0x12ee80(0x108)])[_0x12ee80(0x131)](_0x2d3344[_0x12ee80(0x135)][_0x12ee80(0x12d)]);if(!_0x3553f4)throw Error(_0x12ee80(0x118));let _0x536414=_0x3553f4[_0x12ee80(0x11f)](),_0x5f279a=this[_0x12ee80(0x115)][_0x12ee80(0x106)](_0x536414);if(!_0x5f279a)throw Error(_0x12ee80(0x125));_0x5f279a[_0x12ee80(0x109)]();}['stopFollowing'](){const _0x4b48a7=_0x513125;let _0x459f78=this[_0x4b48a7(0x10d)][_0x4b48a7(0x113)](_0x2d3344[_0x4b48a7(0x108)])[_0x4b48a7(0x131)](_0x2d3344[_0x4b48a7(0x135)][_0x4b48a7(0x12d)]);if(!_0x459f78)throw Error('No\x20active\x20workbook\x20found.');let _0x4a5143=_0x459f78[_0x4b48a7(0x11f)](),_0x35f0fa=this[_0x4b48a7(0x115)][_0x4b48a7(0x106)](_0x4a5143);if(!_0x35f0fa)throw Error(_0x4b48a7(0x125));_0x35f0fa[_0x4b48a7(0x134)]();}['startPresenting'](){const _0x1b9e84=_0x513125;let _0x53d364=this['_injector'][_0x1b9e84(0x113)](_0x2d3344[_0x1b9e84(0x108)])[_0x1b9e84(0x131)](_0x2d3344[_0x1b9e84(0x135)][_0x1b9e84(0x12d)]);if(!_0x53d364)throw Error(_0x1b9e84(0x118));let _0xb5929f=_0x53d364[_0x1b9e84(0x11f)](),_0x408d95=this[_0x1b9e84(0x115)][_0x1b9e84(0x106)](_0xb5929f);if(!_0x408d95)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x408d95['tryStartPresenting']();}[_0x513125(0x12e)](){const _0x59cd75=_0x513125;let _0x2b1ddc=this[_0x59cd75(0x10d)][_0x59cd75(0x113)](_0x2d3344[_0x59cd75(0x108)])['getCurrentUnitOfType'](_0x2d3344[_0x59cd75(0x135)][_0x59cd75(0x12d)]);if(!_0x2b1ddc)throw Error('No\x20active\x20workbook\x20found.');let _0x374285=_0x2b1ddc['getUnitId'](),_0x2b753d=this['_liveShareController'][_0x59cd75(0x106)](_0x374285);if(!_0x2b753d)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2b753d[_0x59cd75(0x12e)]();}};_0x2c84e7[_0x513125(0x123)][_0x513125(0x116)](_0x5c5f24);var _0xfb92e7=class extends _0x2c84e7[_0x513125(0x124)]{get['LiveShareStatusEnum'](){const _0x536a32=_0x513125;return _0x43cff3[_0x536a32(0x119)];}};_0x2c84e7[_0x513125(0x124)][_0x513125(0x116)](_0xfb92e7);}));
1
+ (function(_0x240e6b,_0xe968ba){const _0x46c5bb=_0x3d1f,_0x435a0d=_0x240e6b();while(!![]){try{const _0x3f3c2c=-parseInt(_0x46c5bb(0x14c))/0x1+parseInt(_0x46c5bb(0x12f))/0x2+-parseInt(_0x46c5bb(0x155))/0x3*(-parseInt(_0x46c5bb(0x138))/0x4)+-parseInt(_0x46c5bb(0x12d))/0x5*(parseInt(_0x46c5bb(0x12c))/0x6)+-parseInt(_0x46c5bb(0x13b))/0x7+parseInt(_0x46c5bb(0x130))/0x8+-parseInt(_0x46c5bb(0x131))/0x9;if(_0x3f3c2c===_0xe968ba)break;else _0x435a0d['push'](_0x435a0d['shift']());}catch(_0x1e3839){_0x435a0d['push'](_0x435a0d['shift']());}}}(_0x17d3,0x94fe0),function(_0x194b69,_0xaca43e){const _0x21b5d4=_0x3d1f;typeof exports==_0x21b5d4(0x139)&&typeof module<'u'?_0xaca43e(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x21b5d4(0x133)&&define['amd']?define([_0x21b5d4(0x135),_0x21b5d4(0x132),_0x21b5d4(0x148)],_0xaca43e):(_0x194b69=typeof globalThis<'u'?globalThis:_0x194b69||self,_0xaca43e(_0x194b69[_0x21b5d4(0x157)],_0x194b69[_0x21b5d4(0x143)],_0x194b69[_0x21b5d4(0x142)]));}(this,function(_0x185bd1,_0x9c54c3,_0xfde152){const _0x3d51e1=_0x3d1f;function _0x4fc9bb(_0x1b7b0d){'@babel/helpers - typeof';const _0x21345d=_0x3d1f;return _0x4fc9bb=typeof Symbol=='function'&&typeof Symbol[_0x21345d(0x141)]==_0x21345d(0x13d)?function(_0x44e22d){return typeof _0x44e22d;}:function(_0x277225){const _0x34c888=_0x21345d;return _0x277225&&typeof Symbol==_0x34c888(0x133)&&_0x277225[_0x34c888(0x14e)]===Symbol&&_0x277225!==Symbol[_0x34c888(0x158)]?_0x34c888(0x13d):typeof _0x277225;},_0x4fc9bb(_0x1b7b0d);}function _0x12cb59(_0x168d2a,_0x47af18){const _0x146b71=_0x3d1f;if(_0x4fc9bb(_0x168d2a)!='object'||!_0x168d2a)return _0x168d2a;var _0x1dbef0=_0x168d2a[Symbol[_0x146b71(0x136)]];if(_0x1dbef0!==void 0x0){var _0x433936=_0x1dbef0['call'](_0x168d2a,_0x47af18||_0x146b71(0x13f));if(_0x4fc9bb(_0x433936)!='object')return _0x433936;throw TypeError(_0x146b71(0x13c));}return(_0x47af18===_0x146b71(0x15a)?String:Number)(_0x168d2a);}function _0x34d890(_0x5e146c){const _0x52a805=_0x3d1f;var _0x35023c=_0x12cb59(_0x5e146c,_0x52a805(0x15a));return _0x4fc9bb(_0x35023c)==_0x52a805(0x13d)?_0x35023c:_0x35023c+'';}function _0x519cc5(_0x2d465d,_0x3f1aa5,_0x5a405d){return(_0x3f1aa5=_0x34d890(_0x3f1aa5))in _0x2d465d?Object['defineProperty'](_0x2d465d,_0x3f1aa5,{'value':_0x5a405d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d465d[_0x3f1aa5]=_0x5a405d,_0x2d465d;}var _0x3bc067=class extends _0xfde152[_0x3d51e1(0x150)]{constructor(..._0x239527){super(..._0x239527),_0x519cc5(this,'_liveShareController',void 0x0);}[_0x3d51e1(0x14a)](_0xeae1bf){const _0x1f0f14=_0x3d51e1;this['_liveShareController']=_0xeae1bf[_0x1f0f14(0x152)](_0x185bd1[_0x1f0f14(0x145)]);}['getLiveShareStatus'](){const _0x5f1ce3=_0x3d51e1;let _0x29bc6d=this['_injector']['get'](_0x9c54c3[_0x5f1ce3(0x12e)])[_0x5f1ce3(0x15b)](_0x9c54c3['UniverInstanceType']['UNIVER_SHEET']);if(!_0x29bc6d)throw Error(_0x5f1ce3(0x140));let _0x493b6e=_0x29bc6d['getUnitId'](),_0x4c8a82=this[_0x5f1ce3(0x12b)]['getLiveShareCoordinatorSync'](_0x493b6e);return(_0x4c8a82==null?void 0x0:_0x4c8a82[_0x5f1ce3(0x153)]())??_0x185bd1[_0x5f1ce3(0x154)][_0x5f1ce3(0x151)];}[_0x3d51e1(0x14f)](){const _0x266f28=_0x3d51e1;let _0x5e9fa3=this[_0x266f28(0x14b)][_0x266f28(0x152)](_0x9c54c3['IUniverInstanceService'])['getCurrentUnitOfType'](_0x9c54c3['UniverInstanceType']['UNIVER_SHEET']);if(!_0x5e9fa3)throw Error(_0x266f28(0x140));let _0x5e42c4=_0x5e9fa3[_0x266f28(0x146)](),_0x375932=this[_0x266f28(0x12b)][_0x266f28(0x147)](_0x5e42c4);if(!_0x375932)throw Error(_0x266f28(0x13a));_0x375932[_0x266f28(0x14f)]();}[_0x3d51e1(0x137)](){const _0x140449=_0x3d51e1;let _0x45d71b=this[_0x140449(0x14b)][_0x140449(0x152)](_0x9c54c3['IUniverInstanceService'])[_0x140449(0x15b)](_0x9c54c3[_0x140449(0x159)][_0x140449(0x144)]);if(!_0x45d71b)throw Error('No\x20active\x20workbook\x20found.');let _0xecd9b2=_0x45d71b[_0x140449(0x146)](),_0x3793fb=this['_liveShareController'][_0x140449(0x147)](_0xecd9b2);if(!_0x3793fb)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3793fb[_0x140449(0x137)]();}['startPresenting'](){const _0x591d4b=_0x3d51e1;let _0x53c971=this['_injector'][_0x591d4b(0x152)](_0x9c54c3['IUniverInstanceService'])[_0x591d4b(0x15b)](_0x9c54c3[_0x591d4b(0x159)]['UNIVER_SHEET']);if(!_0x53c971)throw Error(_0x591d4b(0x140));let _0x4cae73=_0x53c971[_0x591d4b(0x146)](),_0x57572c=this['_liveShareController'][_0x591d4b(0x147)](_0x4cae73);if(!_0x57572c)throw Error(_0x591d4b(0x13a));_0x57572c[_0x591d4b(0x156)]();}['stopPresenting'](){const _0x3e3302=_0x3d51e1;let _0x2a4ad1=this[_0x3e3302(0x14b)][_0x3e3302(0x152)](_0x9c54c3[_0x3e3302(0x12e)])[_0x3e3302(0x15b)](_0x9c54c3[_0x3e3302(0x159)][_0x3e3302(0x144)]);if(!_0x2a4ad1)throw Error(_0x3e3302(0x140));let _0x5dfa09=_0x2a4ad1['getUnitId'](),_0x1073e4=this[_0x3e3302(0x12b)][_0x3e3302(0x147)](_0x5dfa09);if(!_0x1073e4)throw Error(_0x3e3302(0x13a));_0x1073e4[_0x3e3302(0x134)]();}};_0xfde152[_0x3d51e1(0x150)]['extend'](_0x3bc067);var _0x32e58a=class extends _0xfde152[_0x3d51e1(0x149)]{get[_0x3d51e1(0x14d)](){const _0x4a22e4=_0x3d51e1;return _0x185bd1[_0x4a22e4(0x154)];}};_0xfde152[_0x3d51e1(0x149)][_0x3d51e1(0x13e)](_0x32e58a);}));function _0x3d1f(_0x112c59,_0x53a8d4){_0x112c59=_0x112c59-0x12b;const _0x17d3ee=_0x17d3();let _0x3d1ff8=_0x17d3ee[_0x112c59];return _0x3d1ff8;}function _0x17d3(){const _0x315ded=['486584IxVZFz','LiveShareStatusEnum','constructor','startFollowing','FUniver','IDLE','get','getStatus','LiveShareStatus','2551803phXkLt','tryStartPresenting','UniverProLiveShare','prototype','UniverInstanceType','string','getCurrentUnitOfType','_liveShareController','799536fNstVX','5UsmlQq','IUniverInstanceService','139470eNXHBD','6103712NcYQks','2734434uueEwh','@univerjs/core','function','stopPresenting','@univerjs-pro/live-share','toPrimitive','stopFollowing','4gyZsFR','object','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1045534NmlbRP','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','extend','default','No\x20active\x20workbook\x20found.','iterator','UniverCoreFacade','UniverCore','UNIVER_SHEET','LiveShareController','getUnitId','getLiveShareCoordinatorSync','@univerjs/core/facade','FEnum','_initialize','_injector'];_0x17d3=function(){return _0x315ded;};return _0x17d3();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x91a969,_0x5f0709){const _0x14a62e=_0x11ba,_0x571acb=_0x91a969();while(!![]){try{const _0x573d74=parseInt(_0x14a62e(0x206))/0x1*(parseInt(_0x14a62e(0x1b9))/0x2)+-parseInt(_0x14a62e(0x181))/0x3+-parseInt(_0x14a62e(0x226))/0x4+parseInt(_0x14a62e(0x1fe))/0x5+-parseInt(_0x14a62e(0x1db))/0x6+-parseInt(_0x14a62e(0x22d))/0x7*(parseInt(_0x14a62e(0x188))/0x8)+parseInt(_0x14a62e(0x183))/0x9;if(_0x573d74===_0x5f0709)break;else _0x571acb['push'](_0x571acb['shift']());}catch(_0x2511d5){_0x571acb['push'](_0x571acb['shift']());}}}(_0x983d,0xc2225),function(_0x33958b,_0x47f12b){const _0x6312cc=_0x11ba;typeof exports==_0x6312cc(0x160)&&typeof module<'u'?_0x47f12b(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define=='function'&&define['amd']?define(['exports',_0x6312cc(0x1ad),'@univerjs-pro/collaboration-client','@univerjs/core',_0x6312cc(0x1f8),_0x6312cc(0x1e8),'rxjs/operators','@univerjs-pro/license',_0x6312cc(0x23a),_0x6312cc(0x1ab),_0x6312cc(0x17b),_0x6312cc(0x17c),_0x6312cc(0x234)],_0x47f12b):(_0x33958b=typeof globalThis<'u'?globalThis:_0x33958b||self,_0x47f12b(_0x33958b['UniverProLiveShare']={},_0x33958b['UniverProCollaboration'],_0x33958b[_0x6312cc(0x228)],_0x33958b[_0x6312cc(0x1c5)],_0x33958b['UniverSheets'],_0x33958b['rxjs'],_0x33958b[_0x6312cc(0x1e8)][_0x6312cc(0x1fa)],_0x33958b[_0x6312cc(0x20c)],_0x33958b[_0x6312cc(0x193)],_0x33958b[_0x6312cc(0x1c7)],_0x33958b[_0x6312cc(0x18b)],_0x33958b[_0x6312cc(0x152)],_0x33958b[_0x6312cc(0x152)]));}(this,function(_0x34ed02,_0x218dc7,_0x388fa6,_0x460769,_0x535733,_0x2c330b,_0x4847d9,_0x10bb7d,_0x289b77,_0x35405d,_0x5c69bc,_0x38dba7,_0x20f1ff){const _0x331341=_0x11ba;Object[_0x331341(0x202)](_0x34ed02,Symbol[_0x331341(0x1f1)],{'value':'Module'});function _0x4b179e(_0x3a8583){'@babel/helpers - typeof';const _0x960e41=_0x331341;return _0x4b179e=typeof Symbol=='function'&&typeof Symbol[_0x960e41(0x19d)]==_0x960e41(0x1fc)?function(_0x4d88ff){return typeof _0x4d88ff;}:function(_0x3f74b4){const _0x2ee42e=_0x960e41;return _0x3f74b4&&typeof Symbol=='function'&&_0x3f74b4[_0x2ee42e(0x1a8)]===Symbol&&_0x3f74b4!==Symbol['prototype']?_0x2ee42e(0x1fc):typeof _0x3f74b4;},_0x4b179e(_0x3a8583);}function _0x5a4b44(_0x1cf0d2,_0x39b0f0){const _0x2674fb=_0x331341;if(_0x4b179e(_0x1cf0d2)!=_0x2674fb(0x160)||!_0x1cf0d2)return _0x1cf0d2;var _0x5ac83e=_0x1cf0d2[Symbol[_0x2674fb(0x19c)]];if(_0x5ac83e!==void 0x0){var _0x2d3e55=_0x5ac83e[_0x2674fb(0x20b)](_0x1cf0d2,_0x39b0f0||_0x2674fb(0x1a2));if(_0x4b179e(_0x2d3e55)!='object')return _0x2d3e55;throw TypeError(_0x2674fb(0x180));}return(_0x39b0f0==='string'?String:Number)(_0x1cf0d2);}function _0xa1ef1f(_0x4aefe9){const _0x3ffa9f=_0x331341;var _0x305a13=_0x5a4b44(_0x4aefe9,'string');return _0x4b179e(_0x305a13)==_0x3ffa9f(0x1fc)?_0x305a13:_0x305a13+'';}function _0x590d61(_0x20a8ad,_0x4c1ac4,_0x44707b){const _0x4cc03b=_0x331341;return(_0x4c1ac4=_0xa1ef1f(_0x4c1ac4))in _0x20a8ad?Object[_0x4cc03b(0x202)](_0x20a8ad,_0x4c1ac4,{'value':_0x44707b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20a8ad[_0x4c1ac4]=_0x44707b,_0x20a8ad;}var _0x57f205=class extends _0x460769['Disposable']{constructor(..._0x42db0d){const _0x671f19=_0x331341;super(..._0x42db0d),_0x590d61(this,_0x671f19(0x1e2),new Set()),_0x590d61(this,_0x671f19(0x1a7),new Set());}[_0x331341(0x201)](_0x3f93d9){const _0x1bf47f=_0x331341;return this[_0x1bf47f(0x1e2)][_0x1bf47f(0x223)](_0x3f93d9),(0x0,_0x460769[_0x1bf47f(0x1a1)])(()=>this[_0x1bf47f(0x1e2)][_0x1bf47f(0x166)](_0x3f93d9));}[_0x331341(0x1da)](_0x19bf7d){const _0x12538a=_0x331341;return this[_0x12538a(0x1a7)][_0x12538a(0x223)](_0x19bf7d),(0x0,_0x460769[_0x12538a(0x1a1)])(()=>this[_0x12538a(0x1a7)][_0x12538a(0x166)](_0x19bf7d));}['shouldShareOperation'](_0x2f6e76){const _0x33360c=_0x331341;return this[_0x33360c(0x1e2)][_0x33360c(0x18d)](_0x2f6e76);}[_0x331341(0x222)](_0x99f78d){const _0xa6e6b7=_0x331341;return Array['from'](this['_reporters'])[_0xa6e6b7(0x232)](_0x41543e=>_0x41543e(_0x99f78d));}};function _0x2ec6b8(_0x5ceefb,_0x2205e5){return function(_0x1ab768,_0x3e1989){_0x2205e5(_0x1ab768,_0x3e1989,_0x5ceefb);};}function _0x39b892(_0x37872e,_0x1c076b,_0x46f7ff,_0x45b2d4){const _0x825aa3=_0x331341;var _0x4945cb=arguments[_0x825aa3(0x16f)],_0x3a56e2=_0x4945cb<0x3?_0x1c076b:_0x45b2d4===null?_0x45b2d4=Object[_0x825aa3(0x1bc)](_0x1c076b,_0x46f7ff):_0x45b2d4,_0x647200;if(typeof Reflect==_0x825aa3(0x160)&&typeof Reflect[_0x825aa3(0x1b4)]==_0x825aa3(0x21a))_0x3a56e2=Reflect[_0x825aa3(0x1b4)](_0x37872e,_0x1c076b,_0x46f7ff,_0x45b2d4);else{for(var _0x4bc524=_0x37872e[_0x825aa3(0x16f)]-0x1;_0x4bc524>=0x0;_0x4bc524--)(_0x647200=_0x37872e[_0x4bc524])&&(_0x3a56e2=(_0x4945cb<0x3?_0x647200(_0x3a56e2):_0x4945cb>0x3?_0x647200(_0x1c076b,_0x46f7ff,_0x3a56e2):_0x647200(_0x1c076b,_0x46f7ff))||_0x3a56e2);}return _0x4945cb>0x3&&_0x3a56e2&&Object['defineProperty'](_0x1c076b,_0x46f7ff,_0x3a56e2),_0x3a56e2;}let _0x135dde=class extends _0x460769[_0x331341(0x168)]{constructor(_0x304b13,_0x1b62e8,_0x1b2fe9){const _0xf7958=_0x331341;super(),this[_0xf7958(0x229)]=_0x304b13,this[_0xf7958(0x15c)]=_0x1b62e8,this[_0xf7958(0x17d)]=_0x1b2fe9,_0x590d61(this,_0xf7958(0x239),new Map()),this[_0xf7958(0x1f9)]();}async[_0x331341(0x22a)](_0x5338d0){const _0x482a69=_0x331341;return this['_entities'][_0x482a69(0x18d)](_0x5338d0)||await this[_0x482a69(0x1eb)](_0x5338d0),this[_0x482a69(0x239)][_0x482a69(0x1e5)](_0x5338d0);}['getLiveShareCoordinatorSync'](_0x3d0b05){const _0xd71116=_0x331341;return this['_entities'][_0xd71116(0x1e5)](_0x3d0b05)??null;}['_init'](){const _0x1dc23c=_0x331341;this[_0x1dc23c(0x229)][_0x1dc23c(0x236)](_0x460769[_0x1dc23c(0x200)][_0x1dc23c(0x1f7)])[_0x1dc23c(0x218)]((0x0,_0x4847d9[_0x1dc23c(0x21b)])(this[_0x1dc23c(0x192)]))[_0x1dc23c(0x1e0)](async _0x5870a5=>{const _0x14d079=_0x1dc23c;let _0x4ce000=_0x5870a5[_0x14d079(0x15b)][_0x14d079(0x1ca)]();this['_entities'][_0x14d079(0x18d)](_0x4ce000)||this[_0x14d079(0x1eb)](_0x4ce000);}),this[_0x1dc23c(0x229)][_0x1dc23c(0x163)](_0x460769[_0x1dc23c(0x200)]['UNIVER_SHEET'])[_0x1dc23c(0x218)]((0x0,_0x4847d9[_0x1dc23c(0x21b)])(this[_0x1dc23c(0x192)]))['subscribe'](_0x3cf596=>{const _0x54199b=_0x1dc23c;let _0x260adf=_0x3cf596[_0x54199b(0x1ca)](),_0x3bad71=this[_0x54199b(0x239)][_0x54199b(0x1e5)](_0x260adf);_0x3bad71==null||_0x3bad71[_0x54199b(0x175)]();});}async[_0x331341(0x1eb)](_0x4fe645){const _0x1165a8=_0x331341;let _0x4cb00f=await this['_collabSessionService'][_0x1165a8(0x212)](_0x4fe645),_0x264598=this[_0x1165a8(0x15c)][_0x1165a8(0x170)](_0xfd15a,_0x4fe645,_0x4cb00f);return _0x264598[_0x1165a8(0x1d2)](),this[_0x1165a8(0x239)]['set'](_0x4fe645,_0x264598),_0x264598;}};_0x135dde=_0x39b892([_0x2ec6b8(0x0,_0x460769[_0x331341(0x157)]),_0x2ec6b8(0x1,(0x0,_0x460769[_0x331341(0x153)])(_0x460769['Injector'])),_0x2ec6b8(0x2,(0x0,_0x460769[_0x331341(0x153)])(_0x388fa6['CollaborationSessionService']))],_0x135dde);let _0x1aa43c=function(_0x2803c2){const _0x27b2be=_0x331341;return _0x2803c2[_0x27b2be(0x21d)]=_0x27b2be(0x184),_0x2803c2[_0x27b2be(0x1fb)]='idle',_0x2803c2[_0x27b2be(0x1d4)]=_0x27b2be(0x1dc),_0x2803c2[_0x27b2be(0x1ea)]=_0x27b2be(0x16d),_0x2803c2[_0x27b2be(0x1c0)]='presenting',_0x2803c2;}({}),_0xfd15a=class extends _0x460769[_0x331341(0x168)]{get[_0x331341(0x1d8)](){const _0x1ceddc=_0x331341;return this[_0x1ceddc(0x1b2)][_0x1ceddc(0x1ed)]();}constructor(_0x3d4d79,_0xa5390c,_0x174caf,_0x2a6006,_0x13d1df){const _0x1f888e=_0x331341;super(),this[_0x1f888e(0x1dd)]=_0x3d4d79,this['_collabSession']=_0xa5390c,this[_0x1f888e(0x162)]=_0x174caf,this[_0x1f888e(0x1d1)]=_0x2a6006,this[_0x1f888e(0x230)]=_0x13d1df,_0x590d61(this,_0x1f888e(0x1b2),new _0x2c330b[(_0x1f888e(0x191))](_0x1f888e(0x169))),_0x590d61(this,_0x1f888e(0x1d5),this[_0x1f888e(0x1b2)]['asObservable']()),_0x590d61(this,_0x1f888e(0x1f9),!0x1),_0x590d61(this,_0x1f888e(0x1af),null),_0x590d61(this,_0x1f888e(0x19a),null);}[_0x331341(0x175)](){const _0x3f086f=_0x331341;var _0xb93ac8;(_0xb93ac8=this[_0x3f086f(0x1af)])==null||_0xb93ac8[_0x3f086f(0x175)](),this[_0x3f086f(0x1b2)][_0x3f086f(0x1ac)](_0x3f086f(0x169)),this[_0x3f086f(0x1b2)][_0x3f086f(0x21e)]();}[_0x331341(0x20e)](){const _0x3efc64=_0x331341;return this[_0x3efc64(0x1d8)];}[_0x331341(0x1d2)](){const _0x2492d4=_0x331341;this[_0x2492d4(0x1f9)]||(this[_0x2492d4(0x1f9)]=!0x0,this['_collabSession'][_0x2492d4(0x225)]['pipe']((0x0,_0x4847d9[_0x2492d4(0x21b)])(this[_0x2492d4(0x192)]))[_0x2492d4(0x1e0)](_0x7c9200=>{const _0x6c2581=_0x2492d4;switch(_0x7c9200){case _0x388fa6[_0x6c2581(0x1c8)][_0x6c2581(0x21d)]:this[_0x6c2581(0x1d6)]();break;case _0x388fa6[_0x6c2581(0x1c8)]['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x2492d4(0x216)][_0x2492d4(0x1f2)][_0x2492d4(0x218)]((0x0,_0x4847d9[_0x2492d4(0x21b)])(this[_0x2492d4(0x192)]))[_0x2492d4(0x1e0)](_0x3dc09f=>{const _0x1c7111=_0x2492d4;let {eventID:_0x5ec69d}=_0x3dc09f;switch(_0x5ec69d){case _0x218dc7[_0x1c7111(0x1ff)][_0x1c7111(0x167)]:this[_0x1c7111(0x161)](_0x3dc09f);break;case _0x218dc7['CollaborationEvent'][_0x1c7111(0x1a9)]:this['_handleOperation'](_0x3dc09f);break;case _0x218dc7[_0x1c7111(0x1ff)][_0x1c7111(0x199)]:this[_0x1c7111(0x155)]();break;case _0x218dc7[_0x1c7111(0x1ff)][_0x1c7111(0x1c6)]:this['_handleNewChangeSets'](_0x3dc09f);break;default:}}));}[_0x331341(0x19f)](){const _0x35205a=_0x331341;this[_0x35205a(0x216)][_0x35205a(0x1aa)]({'eventID':_0x218dc7[_0x35205a(0x1ff)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x35205a(0x1dd)],'userID':this[_0x35205a(0x216)]['getMemberID']()}},this[_0x35205a(0x1dd)]);}[_0x331341(0x21f)](){const _0x4a03aa=_0x331341;this[_0x4a03aa(0x1d8)]===_0x4a03aa(0x16c)&&(this[_0x4a03aa(0x1b2)][_0x4a03aa(0x1ac)]('idle'),this[_0x4a03aa(0x216)][_0x4a03aa(0x1aa)]({'eventID':_0x218dc7[_0x4a03aa(0x1ff)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x4a03aa(0x1dd)]));}['startFollowing'](){const _0x437bd8=_0x331341;this['_status']===_0x437bd8(0x16d)&&(this['_status$'][_0x437bd8(0x1ac)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x21e2bc=_0x331341;this[_0x21e2bc(0x1d8)]===_0x21e2bc(0x1dc)&&this['_stopFollowing']();}['_handleNewHost'](_0x1377ec){const _0x430b3f=_0x331341;let {presenter:_0x44fdb9}=_0x1377ec[_0x430b3f(0x1b3)],_0x40344a=this['_collabSession'][_0x430b3f(0x1e7)]();this[_0x430b3f(0x19a)]=_0x44fdb9,_0x44fdb9===_0x40344a?(this[_0x430b3f(0x194)](),this['_startPresenting']()):this[_0x430b3f(0x1d8)]!==_0x430b3f(0x16d)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x331341(0x213)](){const _0x3914cf=_0x331341;let _0x21403d={'eventID':_0x218dc7[_0x3914cf(0x1ff)][_0x3914cf(0x22b)]};this[_0x3914cf(0x216)][_0x3914cf(0x1aa)](_0x21403d,this[_0x3914cf(0x1dd)]);}[_0x331341(0x155)](){const _0x259ac9=_0x331341;this['_presenter']=null,this[_0x259ac9(0x1d8)]!=='presenting'&&this[_0x259ac9(0x15a)]();}[_0x331341(0x1ef)](_0x15ac1f){const _0x311bba=_0x331341;if(this[_0x311bba(0x1d8)]===_0x311bba(0x1dc)&&this['_presenter']===_0x15ac1f[_0x311bba(0x1b3)][_0x311bba(0x1cb)]){let _0x3ab1a4=(0x0,_0x218dc7[_0x311bba(0x211)])(_0x15ac1f[_0x311bba(0x1b3)])['mutations'][_0x311bba(0x1b0)]()['find'](_0x59149e=>_0x59149e['id']===_0x535733[_0x311bba(0x158)]['id']);if(_0x3ab1a4){let _0x506039=_0x3ab1a4[_0x311bba(0x220)][_0x311bba(0x15d)],_0x27d334=_0x3ab1a4[_0x311bba(0x220)][_0x311bba(0x1df)]['id'];setTimeout(()=>{const _0x552d39=_0x311bba;this[_0x552d39(0x230)][_0x552d39(0x15f)](_0x535733[_0x552d39(0x195)]['id'],{'unitId':_0x506039,'subUnitId':_0x27d334},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0xc7f954=_0x331341;var _0x4b8469;(_0x4b8469=this['_commandDisposable'])==null||_0x4b8469[_0xc7f954(0x175)](),this['_status$'][_0xc7f954(0x1ac)](_0xc7f954(0x16c));let _0x19ed23=new Map(),_0x12eb26=this['_commandDisposable']=new _0x460769['DisposableCollection']();_0x12eb26[_0xc7f954(0x223)]((0x0,_0x460769[_0xc7f954(0x1a1)])(()=>{const _0x200899=_0xc7f954;_0x19ed23[_0x200899(0x1c1)](({subject:_0x29d2ca,subscription:_0xe6cf17})=>{const _0x2b1e87=_0x200899;_0xe6cf17[_0x2b1e87(0x196)](),_0x29d2ca[_0x2b1e87(0x21e)]();}),_0x19ed23[_0x200899(0x1ee)]();})),_0x12eb26[_0xc7f954(0x223)](this[_0xc7f954(0x230)][_0xc7f954(0x17e)](_0x420642=>{const _0x53159e=_0xc7f954;if(_0x420642[_0x53159e(0x165)]!==_0x460769[_0x53159e(0x1b7)][_0x53159e(0x172)]||!this[_0x53159e(0x1d1)][_0x53159e(0x1ae)](_0x420642['id']))return;let {id:_0x4120d5}=_0x420642,_0x149a52;if(_0x19ed23[_0x53159e(0x18d)](_0x4120d5))_0x149a52=_0x19ed23[_0x53159e(0x1e5)](_0x4120d5)[_0x53159e(0x19b)];else{_0x149a52=new _0x2c330b[(_0x53159e(0x210))]();let _0x5bb883=_0x149a52[_0x53159e(0x218)]((0x0,_0x4847d9[_0x53159e(0x1b6)])(this[_0x53159e(0x162)][_0x53159e(0x1a6)](_0x53159e(0x207))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b26c9=>{const _0x27767f=_0x53159e;this[_0x27767f(0x216)][_0x27767f(0x1aa)]({'eventID':_0x218dc7[_0x27767f(0x1ff)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x27767f(0x1dd)],'operations':{[_0x2b26c9['id']]:{'id':_0x2b26c9['id'],'params':JSON[_0x27767f(0x177)](_0x2b26c9['params'])}}}},this[_0x27767f(0x1dd)]);});_0x19ed23[_0x53159e(0x1d9)](_0x4120d5,{'subject':_0x149a52,'subscription':_0x5bb883});}_0x149a52[_0x53159e(0x1ac)](_0x420642);})),this['_liveShareService'][_0xc7f954(0x222)](this[_0xc7f954(0x1dd)])['forEach'](_0x1e0ed9=>this[_0xc7f954(0x216)][_0xc7f954(0x1aa)]({'eventID':_0x218dc7['CollaborationEvent'][_0xc7f954(0x1a9)],'data':{'unitID':this[_0xc7f954(0x1dd)],'operations':{[_0x1e0ed9['id']]:{'id':_0x1e0ed9['id'],'params':JSON[_0xc7f954(0x177)](_0x1e0ed9['params'])}}}},this[_0xc7f954(0x1dd)]));}[_0x331341(0x203)](){const _0x2fe31b=_0x331341;var _0x165d2c;this[_0x2fe31b(0x1b2)]['next'](_0x2fe31b(0x169)),(_0x165d2c=this[_0x2fe31b(0x1af)])==null||_0x165d2c[_0x2fe31b(0x175)](),this['_commandDisposable']=null;}[_0x331341(0x182)](){const _0x210231=_0x331341;var _0x1602a1;(_0x1602a1=this[_0x210231(0x1af)])==null||_0x1602a1[_0x210231(0x175)](),this['_status$']['next'](_0x210231(0x1dc));}[_0x331341(0x15a)](){const _0x2a656a=_0x331341;var _0x5067bc;this[_0x2a656a(0x1b2)][_0x2a656a(0x1ac)]('idle'),(_0x5067bc=this[_0x2a656a(0x1af)])==null||_0x5067bc[_0x2a656a(0x175)](),this[_0x2a656a(0x1af)]=null;}[_0x331341(0x194)](){const _0xa58cc4=_0x331341;var _0x324540;this[_0xa58cc4(0x1b2)][_0xa58cc4(0x1ac)](_0xa58cc4(0x16d)),(_0x324540=this[_0xa58cc4(0x1af)])==null||_0x324540[_0xa58cc4(0x175)]();}[_0x331341(0x16b)](_0x18c230){const _0x1fd675=_0x331341;if(['presenting',_0x1fd675(0x16d),'offline'][_0x1fd675(0x17a)](this['_status'])||!_0x18c230['data'][_0x1fd675(0x1a3)]||_0x18c230[_0x1fd675(0x1b3)][_0x1fd675(0x1a3)]===this['_collabSession'][_0x1fd675(0x1e7)]())return;this[_0x1fd675(0x1d8)]==='idle'&&this['_startFollowing']();let _0x4e4765=_0x18c230[_0x1fd675(0x1b3)][_0x1fd675(0x1c9)];Object['values'](_0x4e4765)[_0x1fd675(0x1c1)](_0x47df04=>{const _0xbc2f63=_0x1fd675;this[_0xbc2f63(0x230)][_0xbc2f63(0x15f)](_0x47df04['id'],_0x47df04[_0xbc2f63(0x220)]?JSON[_0xbc2f63(0x1e1)](_0x47df04[_0xbc2f63(0x220)]):null,{'fromCollab':!0x0});});}[_0x331341(0x1d6)](){const _0x370300=_0x331341;var _0x34afbc;this['_status$']['next']('offline'),(_0x34afbc=this[_0x370300(0x1af)])==null||_0x34afbc[_0x370300(0x175)]();}[_0x331341(0x21c)](){const _0x20221b=_0x331341;this[_0x20221b(0x1b2)]['next'](_0x20221b(0x169)),this[_0x20221b(0x213)]();}};_0xfd15a=_0x39b892([_0x2ec6b8(0x2,_0x460769[_0x331341(0x1f4)]),_0x2ec6b8(0x3,(0x0,_0x460769[_0x331341(0x153)])(_0x57f205)),_0x2ec6b8(0x4,_0x460769[_0x331341(0x237)])],_0xfd15a);var _0x547949='@univerjs-pro/live-share',_0x5af469='1.0.0-beta.0';let _0x49afa1={},_0x575399=class extends _0x460769[_0x331341(0x1c3)]{constructor(_0x2aeadf){const _0x52f65c=_0x331341;super(),this['_liveShareService']=_0x2aeadf,this[_0x52f65c(0x1f9)]();}['_init'](){const _0xf5351f=_0x331341;[_0x289b77[_0xf5351f(0x1b8)]['id'],_0x289b77['SetScrollOperation']['id'],_0x535733['SetWorksheetActiveOperation']['id']][_0xf5351f(0x1c1)](_0x307ed7=>{const _0x1bf116=_0xf5351f;this[_0x1bf116(0x1a0)](this[_0x1bf116(0x1d1)][_0x1bf116(0x201)](_0x307ed7));});}};_0x575399=_0x39b892([_0x2ec6b8(0x0,(0x0,_0x460769[_0x331341(0x153)])(_0x57f205))],_0x575399);function _0x51cc15({ref:_0x36c41a,..._0x30c247}){const _0x5e96e8=_0x331341;let {icon:_0x59bea8,id:_0xd3929c,className:_0x23f83a,extend:_0x282eaf,..._0xb79323}=_0x30c247,_0x1d91e4=(_0x5e96e8(0x1cc)+_0xd3929c+'\x20'+(_0x23f83a||''))[_0x5e96e8(0x205)](),_0x107ca0=(0x0,_0x38dba7['useRef'])('_'+_0x4d2d9b());return _0xcaeca7(_0x59bea8,''+_0xd3929c,{'defIds':_0x59bea8['defIds'],'idSuffix':_0x107ca0['current']},{'ref':_0x36c41a,'className':_0x1d91e4,..._0xb79323},_0x282eaf);}function _0xcaeca7(_0x9aaa1a,_0x38b313,_0x4be18b,_0x3d2ad4,_0x2a0628){const _0x5bdefb=_0x331341;return(0x0,_0x38dba7['createElement'])(_0x9aaa1a[_0x5bdefb(0x15e)],{'key':_0x38b313,..._0x4b4fb8(_0x9aaa1a,_0x4be18b,_0x2a0628),..._0x3d2ad4},(_0x20b277(_0x9aaa1a,_0x4be18b)[_0x5bdefb(0x1e4)]||[])[_0x5bdefb(0x232)]((_0x1a1d4c,_0x282dd1)=>_0xcaeca7(_0x1a1d4c,_0x38b313+'-'+_0x9aaa1a['tag']+'-'+_0x282dd1,_0x4be18b,void 0x0,_0x2a0628)));}function _0x4b4fb8(_0x15df91,_0x2d14af,_0x3e0ce2){const _0x197525=_0x331341;let _0x639125={..._0x15df91[_0x197525(0x20d)]};_0x3e0ce2!=null&&_0x3e0ce2[_0x197525(0x217)]&&_0x639125[_0x197525(0x22c)]===_0x197525(0x217)&&(_0x639125['fill']=_0x3e0ce2['colorChannel1']),_0x3e0ce2!=null&&_0x3e0ce2['colorChannel1']&&_0x639125[_0x197525(0x22e)]===_0x197525(0x217)&&(_0x639125[_0x197525(0x22e)]=_0x3e0ce2[_0x197525(0x217)]),_0x15df91[_0x197525(0x15e)]===_0x197525(0x219)&&_0x639125['id']&&(_0x639125['id']+=_0x2d14af[_0x197525(0x17f)]),Object[_0x197525(0x20f)](_0x639125)['forEach'](([_0x4377f3,_0x204893])=>{const _0x5304d9=_0x197525;_0x4377f3==='mask'&&typeof _0x204893==_0x5304d9(0x176)&&(_0x639125[_0x4377f3]=_0x204893[_0x5304d9(0x231)](/url\(#(.*)\)/,_0x5304d9(0x197)+_0x2d14af[_0x5304d9(0x17f)]+')'));});let {defIds:_0x4eee44}=_0x2d14af;return!_0x4eee44||_0x4eee44['length']===0x0?_0x639125:(_0x15df91[_0x197525(0x15e)]===_0x197525(0x224)&&_0x639125[_0x197525(0x156)]&&(_0x639125[_0x197525(0x156)]+=_0x2d14af[_0x197525(0x17f)]),Object[_0x197525(0x20f)](_0x639125)[_0x197525(0x1c1)](([_0x1ddd8b,_0x4ed2c0])=>{const _0x13a4a0=_0x197525;typeof _0x4ed2c0==_0x13a4a0(0x176)&&(_0x639125[_0x1ddd8b]=_0x4ed2c0['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2d14af[_0x13a4a0(0x17f)]+')'));}),_0x639125);}function _0x20b277(_0x47f749,_0x52b73b){const _0x2b24a3=_0x331341;var _0x2c0f23;let {defIds:_0x16a01d}=_0x52b73b;return!_0x16a01d||_0x16a01d[_0x2b24a3(0x16f)]===0x0?_0x47f749:_0x47f749[_0x2b24a3(0x15e)]===_0x2b24a3(0x1ce)&&(_0x2c0f23=_0x47f749['children'])!=null&&_0x2c0f23[_0x2b24a3(0x16f)]?{..._0x47f749,'children':_0x47f749[_0x2b24a3(0x1e4)][_0x2b24a3(0x232)](_0xf19cf5=>typeof _0xf19cf5['attrs']['id']==_0x2b24a3(0x176)&&_0x16a01d&&_0x16a01d[_0x2b24a3(0x17a)](_0xf19cf5[_0x2b24a3(0x20d)]['id'])?{..._0xf19cf5,'attrs':{..._0xf19cf5['attrs'],'id':_0xf19cf5[_0x2b24a3(0x20d)]['id']+_0x52b73b[_0x2b24a3(0x17f)]}}:_0xf19cf5)}:_0x47f749;}function _0x4d2d9b(){const _0x5cdc0a=_0x331341;return Math['random']()['toString'](0x24)[_0x5cdc0a(0x18a)](0x2,0x8);}_0x51cc15['displayName']=_0x331341(0x1bd);let _0x5d86d0={'tag':_0x331341(0x18e),'attrs':{'xmlns':_0x331341(0x1be),'fill':_0x331341(0x1cf),'viewBox':'0\x200\x2017\x2017','width':_0x331341(0x198),'height':_0x331341(0x198)},'children':[{'tag':_0x331341(0x1ba),'attrs':{'fill':_0x331341(0x235),'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':_0x331341(0x1ba),'attrs':{'fill':_0x331341(0x235),'d':_0x331341(0x190),'fillRule':_0x331341(0x174),'clipRule':_0x331341(0x174)}}]},_0x2eaed0=(0x0,_0x38dba7[_0x331341(0x1b5)])(function(_0x1a6fdb,_0x4cbe14){const _0x1d477f=_0x331341;return(0x0,_0x38dba7[_0x1d477f(0x178)])(_0x51cc15,Object[_0x1d477f(0x1a5)]({},_0x1a6fdb,{'id':_0x1d477f(0x159),'ref':_0x4cbe14,'icon':_0x5d86d0}));});_0x2eaed0[_0x331341(0x227)]=_0x331341(0x1d3);function _0x92001b(){const _0x3f805f=_0x331341;let _0x1d82fa=(0x0,_0x35405d[_0x3f805f(0x1c2)])(_0x135dde),_0x4313ae=(0x0,_0x35405d[_0x3f805f(0x1c2)])(_0x460769[_0x3f805f(0x157)]),_0x3266ba=(0x0,_0x35405d[_0x3f805f(0x16a)])(()=>_0x4313ae[_0x3f805f(0x1a4)](_0x460769[_0x3f805f(0x200)][_0x3f805f(0x1f7)]),void 0x0,!0x1,[]),_0x5b537b=(0x0,_0x35405d[_0x3f805f(0x16a)])((0x0,_0x38dba7[_0x3f805f(0x1b1)])(()=>_0x3266ba?(0x0,_0x2c330b[_0x3f805f(0x16e)])(()=>(0x0,_0x2c330b['from'])(_0x1d82fa[_0x3f805f(0x22a)](_0x3266ba[_0x3f805f(0x1ca)]()))):(0x0,_0x2c330b['of'])(null),[_0x3266ba,_0x1d82fa]),null),_0x24d05d=(0x0,_0x35405d[_0x3f805f(0x16a)])(_0x5b537b?()=>_0x5b537b['status$']:null,_0x3f805f(0x169),!0x1,[_0x5b537b]);return _0x5b537b?(0x0,_0x20f1ff[_0x3f805f(0x1f6)])(_0x5c69bc[_0x3f805f(0x1fd)],{'align':_0x3f805f(0x185),'disabled':_0x24d05d===_0x3f805f(0x184),'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,_0x20f1ff[_0x3f805f(0x1f6)])(_0x4bba85,{'status':_0x24d05d,'coordinator':_0x5b537b}),'children':(0x0,_0x20f1ff[_0x3f805f(0x1f6)])(_0x3f805f(0x164),{'className':(0x0,_0x5c69bc[_0x3f805f(0x1cd)])(_0x3f805f(0x20a),{'univer-cursor-not-allowed':_0x24d05d==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x24d05d!==_0x3f805f(0x184)}),'type':_0x3f805f(0x164),'children':(0x0,_0x20f1ff[_0x3f805f(0x1f6)])(_0x2eaed0,{})})}):null;}function _0x4bba85(_0xb12140){const _0x92c543=_0x331341;let {status:_0x5288b3,coordinator:_0x35f601}=_0xb12140;switch(_0x5288b3){case'idle':return(0x0,_0x20f1ff[_0x92c543(0x1f6)])(_0x366849,{'coordinator':_0x35f601});case _0x92c543(0x1dc):return(0x0,_0x20f1ff[_0x92c543(0x1f6)])(_0x317e3d,{'coordinator':_0x35f601});case _0x92c543(0x16d):return(0x0,_0x20f1ff['jsx'])(_0x3aa79e,{'coordinator':_0x35f601});case'offline':return(0x0,_0x20f1ff[_0x92c543(0x1f6)])(_0x1b6cc4,{});case _0x92c543(0x16c):return(0x0,_0x20f1ff[_0x92c543(0x1f6)])(_0xc966b0,{'coordinator':_0x35f601});default:return null;}}function _0x366849(_0x12c441){const _0x16ba12=_0x331341;let {coordinator:_0x16d4c1}=_0x12c441;return(0x0,_0x20f1ff[_0x16ba12(0x204)])(_0x20f1ff[_0x16ba12(0x179)],{'children':[(0x0,_0x20f1ff['jsx'])(_0x16ba12(0x1e9),{'className':_0x16ba12(0x1d0),'children':_0x16ba12(0x1ec)}),(0x0,_0x20f1ff[_0x16ba12(0x1f6)])(_0x5c69bc[_0x16ba12(0x151)],{'onClick':()=>_0x16d4c1[_0x16ba12(0x19f)](),'children':_0x16ba12(0x1d7)})]});}function _0x317e3d(_0x3f4601){const _0x34c6e0=_0x331341;let {coordinator:_0x1ac08f}=_0x3f4601;return(0x0,_0x20f1ff['jsxs'])(_0x20f1ff['Fragment'],{'children':[(0x0,_0x20f1ff[_0x34c6e0(0x1f6)])(_0x34c6e0(0x1e9),{'className':_0x34c6e0(0x1d0),'children':_0x34c6e0(0x1f0)}),(0x0,_0x20f1ff[_0x34c6e0(0x1f6)])(_0x5c69bc[_0x34c6e0(0x151)],{'onClick':()=>_0x1ac08f['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x3aa79e(_0x4ffd53){const _0x28c556=_0x331341;let {coordinator:_0x3e722f}=_0x4ffd53;return(0x0,_0x20f1ff[_0x28c556(0x204)])(_0x20f1ff[_0x28c556(0x179)],{'children':[(0x0,_0x20f1ff[_0x28c556(0x1f6)])(_0x28c556(0x1e9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28c556(0x221)}),(0x0,_0x20f1ff[_0x28c556(0x1f6)])(_0x5c69bc['Button'],{'variant':_0x28c556(0x1e3),'onClick':()=>_0x3e722f[_0x28c556(0x1de)](),'children':_0x28c556(0x171)})]});}function _0xc966b0(_0x4795a2){const _0x66e228=_0x331341;let {coordinator:_0x1b710d}=_0x4795a2;return(0x0,_0x20f1ff['jsxs'])(_0x20f1ff[_0x66e228(0x179)],{'children':[(0x0,_0x20f1ff[_0x66e228(0x1f6)])(_0x66e228(0x1e9),{'className':_0x66e228(0x1d0),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,_0x20f1ff[_0x66e228(0x1f6)])(_0x5c69bc[_0x66e228(0x151)],{'variant':_0x66e228(0x1a2),'onClick':()=>_0x1b710d[_0x66e228(0x21f)](),'children':_0x66e228(0x214)})]});}function _0x1b6cc4(){const _0x5e1752=_0x331341;return(0x0,_0x20f1ff[_0x5e1752(0x1f6)])(_0x20f1ff['Fragment'],{'children':_0x5e1752(0x1f3)});}let _0x1e9275=class extends _0x460769[_0x331341(0x1c3)]{constructor(_0x3ca321,_0x5abdac){const _0x291ee7=_0x331341;super(),this[_0x291ee7(0x15c)]=_0x3ca321,this[_0x291ee7(0x233)]=_0x5abdac,this[_0x291ee7(0x154)]();}[_0x331341(0x154)](){const _0x2b098a=_0x331341;this['disposeWithMe'](this[_0x2b098a(0x233)][_0x2b098a(0x1bf)](_0x35405d[_0x2b098a(0x23b)][_0x2b098a(0x238)],()=>(0x0,_0x35405d['connectInjector'])(_0x92001b,this[_0x2b098a(0x15c)])));}};_0x1e9275=_0x39b892([_0x2ec6b8(0x0,(0x0,_0x460769[_0x331341(0x153)])(_0x460769[_0x331341(0x1bb)])),_0x2ec6b8(0x1,_0x35405d[_0x331341(0x215)])],_0x1e9275);let _0x5b2d57=class extends _0x460769['Plugin']{constructor(_0x2e8d3a=_0x49afa1,_0x574936,_0x259575){const _0x546dd7=_0x331341;super(),this['_config']=_0x2e8d3a,this[_0x546dd7(0x15c)]=_0x574936,this[_0x546dd7(0x162)]=_0x259575;let {..._0x2ade13}=(0x0,_0x460769['merge'])({},_0x49afa1,this[_0x546dd7(0x1f5)]);this[_0x546dd7(0x162)]['setConfig'](_0x546dd7(0x22f),_0x2ade13);}[_0x331341(0x19e)](){const _0x2c8ad8=_0x331341;(0x0,_0x460769['registerDependencies'])(this[_0x2c8ad8(0x15c)],(0x0,_0x460769['mergeOverrideWithDependencies'])([[_0x57f205],[_0x135dde],[_0x575399],[_0x1e9275]],this[_0x2c8ad8(0x1f5)][_0x2c8ad8(0x18f)])),(0x0,_0x460769[_0x2c8ad8(0x209)])(this[_0x2c8ad8(0x15c)],[[_0x575399]]);}['onRendered'](){const _0x223755=_0x331341;(0x0,_0x460769[_0x223755(0x209)])(this[_0x223755(0x15c)],[[_0x1e9275]]);}};_0x590d61(_0x5b2d57,'type',_0x460769['UniverInstanceType'][_0x331341(0x189)]),_0x590d61(_0x5b2d57,_0x331341(0x173),_0x331341(0x186)),_0x590d61(_0x5b2d57,_0x331341(0x18c),_0x547949),_0x590d61(_0x5b2d57,'version',_0x5af469),_0x5b2d57=_0x39b892([(0x0,_0x460769[_0x331341(0x1e6)])(_0x10bb7d[_0x331341(0x187)],_0x388fa6['UniverCollaborationClientPlugin']),_0x2ec6b8(0x1,(0x0,_0x460769[_0x331341(0x153)])(_0x460769[_0x331341(0x1bb)])),_0x2ec6b8(0x2,_0x460769['IConfigService'])],_0x5b2d57),Object[_0x331341(0x202)](_0x34ed02,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x135dde;}}),_0x34ed02[_0x331341(0x1c4)]=_0x1aa43c,Object[_0x331341(0x202)](_0x34ed02,_0x331341(0x208),{'enumerable':!0x0,'get':function(){return _0x5b2d57;}});}));function _0x11ba(_0x281630,_0x1d0f05){_0x281630=_0x281630-0x151;const _0x983d6f=_0x983d();let _0x11ba73=_0x983d6f[_0x281630];return _0x11ba73;}function _0x983d(){const _0x30354e=['path','Injector','getOwnPropertyDescriptor','UniverIcon','http://www.w3.org/2000/svg','registerComponent','PRESENTING','forEach','useDependency','Disposable','LiveShareStatus','UniverCore','NEW_CHANGESETS','UniverUi','SessionStatus','operations','getUnitId','memberID','univerjs-icon\x20univerjs-icon-','clsx','defs','none','univer-mb-3\x20univer-w-full\x20univer-text-sm','_liveShareService','init','LiveShareIcon','FOLLOWING','status$','_handleOffline','Start','_status','set','registerInitialStateReporter','4550304BYsWaF','following','_unitID','startFollowing','sheet','subscribe','parse','_sharedOperations','text','children','get','DependentOn','getMemberID','rxjs','div','NOT_FOLLOWING','_startLiveShareCoordinator','Present\x20this\x20document','getValue','clear','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','toStringTag','event$','You\x27are\x20offline.','IConfigService','_config','jsx','UNIVER_SHEET','@univerjs/sheets','_init','operators','IDLE','symbol','Dropdown','5874755fFRgdF','CollaborationEvent','UniverInstanceType','registerSharedOperation','defineProperty','_stopPresenting','jsxs','trim','151579SGfRGK','SAME_OPERATION_SHARE_INTERVAL','UniverLiveSharePlugin','touchDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','call','UniverProLicense','attrs','getStatus','entries','Subject','parseProtocolChangeset','requireSession','_fetchOperations','Stop\x20presenting','IUIPartsService','_collabSession','colorChannel1','pipe','mask','function','takeUntil','_handleOnline','OFFLINE','complete','stopPresenting','params','You\x27re\x20not\x20following\x20the\x20presenter','getInitialStates','add','use','sessionStatus$','2763348aAIXJh','displayName','UniverProCollaborationClient','_univerInstanceService','getLiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','fill','113883JqcVDl','stroke','live-share.config','_commandService','replace','map','_uiPartsService','react/jsx-runtime','currentColor','getTypeOfUnitAdded$','ICommandService','HEADER_MENU','_entities','@univerjs/sheets-ui','BuiltInUIPart','Button','React','Inject','_mountLiveShare','_handleTerminate','xlink:href','IUniverInstanceService','InsertSheetMutation','live-share-icon','_beIdle','unit','_injector','unitId','tag','executeCommand','object','_handleNewHost','_configService','getTypeOfUnitDisposed$','button','type','delete','LIVESHARE_NEW_HOST','RxDisposable','idle','useObservable','_handleOperation','presenting','not-following','defer','length','createInstance','Start\x20following','OPERATION','pluginName','evenodd','dispose','string','stringify','createElement','Fragment','includes','@univerjs/design','react','_collabSessionService','onCommandExecuted','idSuffix','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','4014636iFpAJv','_startFollowing','29536362pEIPwn','offline','end','UNIVER_LIVE_SHARE_PLUGIN','UniverLicensePlugin','728NzHlyC','UNIVER_UNKNOWN','substring','UniverDesign','packageName','has','svg','override','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','BehaviorSubject','dispose$','UniverSheetsUi','_stopFollowing','SetWorksheetActiveOperation','unsubscribe','url(#$1','1em','LIVESHARE_TERMINATE','_presenter','subject','toPrimitive','iterator','onStarting','tryStartPresenting','disposeWithMe','toDisposable','default','presenter','getCurrentTypeOfUnit$','assign','getConfig','_reporters','constructor','LIVESHARE_OPERATION','send','@univerjs/ui','next','@univerjs-pro/collaboration','shouldShareOperation','_commandDisposable','reverse','useMemo','_status$','data','decorate','forwardRef','throttleTime','CommandType','SetZoomRatioOperation','8IqMZVP'];_0x983d=function(){return _0x30354e;};return _0x983d();}
1
+ function _0x3486(){const _0x1598b5=['baseVal','Start\x20following','univer-mb-3\x20univer-w-full\x20univer-text-sm','createElement','override','LIVESHARE_OPERATION','UniverSheetsUi','_uiPartsService','Button','getUnitId','@univerjs/core','UniverSheets','stringify','params','tag','forwardRef','_init','shouldShareOperation','touchDependencies','forEach','useDependency','getLiveShareCoordinatorSync','circle,\x20ellipse,\x20line,\x20path,\x20polygon,\x20polyline,\x20rect,\x20text,\x20textPath,\x20tspan,\x20use','following','idSuffix','_fetchOperations','CollaborationSessionService','target','Subject','merge','disposeWithMe','getPropertyValue','width','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-gray-0\x20dark:!univer-text-gray-0','fill','asObservable','packageName','_collabSessionService','getBoundingClientRect','_handleOffline','none','Dropdown','getPropertyPriority','CollaborationEvent','SessionStatus','_stopFollowing','onRendered','decorate','Injector','DependentOn','_commandService','executeCommand','react','length','xlink:href','amd','_injector','1.0.0-beta.2','@univerjs/sheets-ui','setConfig','operators','getOwnPropertyDescriptor','unit','UniverProCollaboration','react/jsx-runtime','children','registerInitialStateReporter','symbol','@univerjs-pro/license','_univerInstanceService','object','live-share.config','setProperty','event$','type','UniverCore','6423849hMuYjV','string','_handleOnline','registerDependencies','Stop\x20following','React','currentColor','removeAttribute','replace','subject','text','takeUntil','live-share-icon','@univerjs-pro/collaboration','height','registerSharedOperation','InsertSheetMutation','isFinite','_handleTerminate','_sharedOperations','LIVESHARE_FETCH_OPERATIONS','UniverDesign','_liveShareService','184296tWgHst','div','Present\x20this\x20document','send','connectInjector','evenodd','useObservable','createInstance','removeProperty','UniverUi','_configService','OFFLINE','FOLLOWING','Plugin','UNIVER_LIVE_SHARE_PLUGIN','Inject','map','Start','http://www.w3.org/2000/svg','has','dispose$','onStarting','add','useImperativeHandle','element','UNIVER_SHEET','find','not-following','dispose','assign','LiveShareStatus','some','getMemberID','colorChannel1','_status$','IDLE','150tsBLhp','strokeWidth','useMemo','1323720UbLAoz','919gGaGqy','You\x27re\x20not\x20following\x20the\x20presenter','IUIPartsService','pipe','You\x27re\x20following\x20the\x20presenter','7350329YdhEJK','unitId','_entities','value','You\x27re\x20presenting\x20the\x20document','url(#$1','Stop\x20presenting','reverse','originalStrokeWidth','use','flatMap','status$','1124hJvdOZ','OPERATION','hadStyleAttribute','_beIdle','attrs','4089016hEKZbn','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','mergeOverrideWithDependencies','RxDisposable','getInitialStates','subscribe','max','_reporters','HEADER_MENU','getValue','delete','_presenter','_unitID','viewBox','default','path','operations','clear','onCommandExecuted','Fragment','parseFloat','4359ZbhNGP','You\x27are\x20offline.','pluginName','1em','get','getConfig','_config','180Ncnfey','sheet','_mountLiveShare','constructor','useId','prototype','toDisposable','_handleNewChangeSets','_status','getTypeOfUnitAdded$','complete','vectorEffect','_commandDisposable','Disposable','BehaviorSubject','stopFollowing','SetZoomRatioOperation','_handleNewHost','_stopPresenting','stroke-width','getStatus','style','_startFollowing','includes','entries','current','toStringTag','presenting','_startLiveShareCoordinator','min','disconnect','LiveShareIcon','trim','requireSession','set','from','function','DisposableCollection','toFixed','useRef','_collabSession','isReleased','UNIVER_UNKNOWN','stroke','@univerjs/design','_startPresenting','appliedStrokeWidth','mask','SAME_OPERATION_SHARE_INTERVAL','priority','UniverIcon','UniverInstanceType','iterator','observe','@univerjs-pro/collaboration-client','offline','tryStartPresenting','UniverProLiveShare','UniverProLicense','_handleOperation','jsxs','@univerjs/ui','stopPresenting','@univerjs/sheets','data','SetWorksheetActiveOperation','IUniverInstanceService','button','rxjs','LIVESHARE_REQUEST_HOST','defineProperty','ONLINE','BuiltInUIPart','jsx','next','throttleTime','querySelectorAll','idle','UniverLiveSharePlugin','LIVESHARE_TERMINATE','toPrimitive','init'];_0x3486=function(){return _0x1598b5;};return _0x3486();}function _0x5348(_0x40e1ab,_0x116a0c){_0x40e1ab=_0x40e1ab-0xcb;const _0x348699=_0x3486();let _0x534820=_0x348699[_0x40e1ab];return _0x534820;}(function(_0x1c6d37,_0x51cc89){const _0x223983=_0x5348,_0x2cdf84=_0x1c6d37();while(!![]){try{const _0x9c02e1=parseInt(_0x223983(0x1bf))/0x1*(-parseInt(_0x223983(0x1bb))/0x2)+parseInt(_0x223983(0xdb))/0x3*(-parseInt(_0x223983(0x1d0))/0x4)+-parseInt(_0x223983(0xe2))/0x5*(-parseInt(_0x223983(0x197))/0x6)+parseInt(_0x223983(0x1c4))/0x7+-parseInt(_0x223983(0x1d5))/0x8+-parseInt(_0x223983(0x180))/0x9+parseInt(_0x223983(0x1be))/0xa;if(_0x9c02e1===_0x51cc89)break;else _0x2cdf84['push'](_0x2cdf84['shift']());}catch(_0x3d633c){_0x2cdf84['push'](_0x2cdf84['shift']());}}}(_0x3486,0x8f169),function(_0x447fca,_0x86169e){const _0x2a3ddc=_0x5348;typeof exports==_0x2a3ddc(0x17a)&&typeof module<'u'?_0x86169e(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define==_0x2a3ddc(0x106)&&define[_0x2a3ddc(0x16b)]?define(['exports',_0x2a3ddc(0x18d),_0x2a3ddc(0x118),_0x2a3ddc(0x13e),_0x2a3ddc(0x121),'rxjs','rxjs/operators',_0x2a3ddc(0x178),_0x2a3ddc(0x16e),_0x2a3ddc(0x11f),_0x2a3ddc(0x10e),_0x2a3ddc(0x168),_0x2a3ddc(0x174)],_0x86169e):(_0x447fca=typeof globalThis<'u'?globalThis:_0x447fca||self,_0x86169e(_0x447fca[_0x2a3ddc(0x11b)]={},_0x447fca[_0x2a3ddc(0x173)],_0x447fca['UniverProCollaborationClient'],_0x447fca[_0x2a3ddc(0x17f)],_0x447fca[_0x2a3ddc(0x13f)],_0x447fca[_0x2a3ddc(0x126)],_0x447fca[_0x2a3ddc(0x126)][_0x2a3ddc(0x170)],_0x447fca[_0x2a3ddc(0x11c)],_0x447fca[_0x2a3ddc(0x13a)],_0x447fca[_0x2a3ddc(0x1a0)],_0x447fca[_0x2a3ddc(0x195)],_0x447fca[_0x2a3ddc(0x185)],_0x447fca[_0x2a3ddc(0x185)]));}(this,function(_0x547ac9,_0x24d520,_0x23241b,_0x12c478,_0x178c69,_0x56299f,_0x4e6c57,_0x57a70d,_0x4dc71a,_0x302f74,_0x260a67,_0x278a6a,_0x118f47){const _0x5b734f=_0x5348;Object[_0x5b734f(0x128)](_0x547ac9,Symbol[_0x5b734f(0xfc)],{'value':'Module'});function _0x3a3aff(_0xccac04){'@babel/helpers - typeof';const _0x2dab3f=_0x5b734f;return _0x3a3aff=typeof Symbol==_0x2dab3f(0x106)&&typeof Symbol[_0x2dab3f(0x116)]=='symbol'?function(_0x361468){return typeof _0x361468;}:function(_0x64e3f3){const _0x5fe590=_0x2dab3f;return _0x64e3f3&&typeof Symbol==_0x5fe590(0x106)&&_0x64e3f3[_0x5fe590(0xe5)]===Symbol&&_0x64e3f3!==Symbol[_0x5fe590(0xe7)]?_0x5fe590(0x177):typeof _0x64e3f3;},_0x3a3aff(_0xccac04);}function _0x2df51d(_0xa7a6b9,_0x3980a2){const _0x479f32=_0x5b734f;if(_0x3a3aff(_0xa7a6b9)!='object'||!_0xa7a6b9)return _0xa7a6b9;var _0x49a58e=_0xa7a6b9[Symbol[_0x479f32(0x132)]];if(_0x49a58e!==void 0x0){var _0x4b513c=_0x49a58e['call'](_0xa7a6b9,_0x3980a2||_0x479f32(0xd4));if(_0x3a3aff(_0x4b513c)!=_0x479f32(0x17a))return _0x4b513c;throw TypeError(_0x479f32(0x1d7));}return(_0x3980a2===_0x479f32(0x181)?String:Number)(_0xa7a6b9);}function _0x24ee09(_0x54b8ec){const _0x445414=_0x5b734f;var _0x1e96cf=_0x2df51d(_0x54b8ec,_0x445414(0x181));return _0x3a3aff(_0x1e96cf)=='symbol'?_0x1e96cf:_0x1e96cf+'';}function _0xa0db88(_0x4f1ddc,_0xb500fa,_0x22be1d){const _0x57aa7a=_0x5b734f;return(_0xb500fa=_0x24ee09(_0xb500fa))in _0x4f1ddc?Object[_0x57aa7a(0x128)](_0x4f1ddc,_0xb500fa,{'value':_0x22be1d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f1ddc[_0xb500fa]=_0x22be1d,_0x4f1ddc;}var _0x25ffc0=class extends _0x12c478[_0x5b734f(0xef)]{constructor(..._0x4c0d73){const _0x538282=_0x5b734f;super(..._0x4c0d73),_0xa0db88(this,_0x538282(0x193),new Set()),_0xa0db88(this,_0x538282(0xcd),new Set());}[_0x5b734f(0x18f)](_0x5b9ffd){const _0x566ef7=_0x5b734f;return this['_sharedOperations']['add'](_0x5b9ffd),(0x0,_0x12c478[_0x566ef7(0xe8)])(()=>this[_0x566ef7(0x193)][_0x566ef7(0xd0)](_0x5b9ffd));}[_0x5b734f(0x176)](_0x5019d4){const _0x2a3e60=_0x5b734f;return this[_0x2a3e60(0xcd)][_0x2a3e60(0x1ad)](_0x5019d4),(0x0,_0x12c478[_0x2a3e60(0xe8)])(()=>this[_0x2a3e60(0xcd)]['delete'](_0x5019d4));}[_0x5b734f(0x145)](_0x29fd52){const _0x16c2a3=_0x5b734f;return this[_0x16c2a3(0x193)][_0x16c2a3(0x1aa)](_0x29fd52);}[_0x5b734f(0x1da)](_0x2335f9){const _0x312e9f=_0x5b734f;return Array[_0x312e9f(0x105)](this[_0x312e9f(0xcd)])[_0x312e9f(0x1a7)](_0x360737=>_0x360737(_0x2335f9));}};function _0x4b87e0(_0x209a15,_0x58098c){return function(_0xf0c9,_0xd5767e){_0x58098c(_0xf0c9,_0xd5767e,_0x209a15);};}function _0x4daca4(_0x32a7f7,_0x197162,_0x455ce2,_0x47a096){const _0x2e1c7b=_0x5b734f;var _0x5249ad=arguments['length'],_0xc75b8e=_0x5249ad<0x3?_0x197162:_0x47a096===null?_0x47a096=Object[_0x2e1c7b(0x171)](_0x197162,_0x455ce2):_0x47a096,_0x21fd06;if(typeof Reflect==_0x2e1c7b(0x17a)&&typeof Reflect[_0x2e1c7b(0x163)]==_0x2e1c7b(0x106))_0xc75b8e=Reflect['decorate'](_0x32a7f7,_0x197162,_0x455ce2,_0x47a096);else{for(var _0x502933=_0x32a7f7['length']-0x1;_0x502933>=0x0;_0x502933--)(_0x21fd06=_0x32a7f7[_0x502933])&&(_0xc75b8e=(_0x5249ad<0x3?_0x21fd06(_0xc75b8e):_0x5249ad>0x3?_0x21fd06(_0x197162,_0x455ce2,_0xc75b8e):_0x21fd06(_0x197162,_0x455ce2))||_0xc75b8e);}return _0x5249ad>0x3&&_0xc75b8e&&Object[_0x2e1c7b(0x128)](_0x197162,_0x455ce2,_0xc75b8e),_0xc75b8e;}let _0x235fb6=class extends _0x12c478[_0x5b734f(0x1d9)]{constructor(_0x524177,_0x1021e9,_0x3c2b6b){const _0x3a2a18=_0x5b734f;super(),this['_univerInstanceService']=_0x524177,this[_0x3a2a18(0x16c)]=_0x1021e9,this[_0x3a2a18(0x159)]=_0x3c2b6b,_0xa0db88(this,'_entities',new Map()),this[_0x3a2a18(0x144)]();}async['getLiveShareCoordinator'](_0x3d4ff4){const _0x49ab23=_0x5b734f;return this[_0x49ab23(0x1c6)][_0x49ab23(0x1aa)](_0x3d4ff4)||await this[_0x49ab23(0xfe)](_0x3d4ff4),this[_0x49ab23(0x1c6)][_0x49ab23(0xdf)](_0x3d4ff4);}[_0x5b734f(0x149)](_0x1382ae){const _0xb6957d=_0x5b734f;return this[_0xb6957d(0x1c6)][_0xb6957d(0xdf)](_0x1382ae)??null;}[_0x5b734f(0x144)](){const _0x3bfc70=_0x5b734f;this[_0x3bfc70(0x179)][_0x3bfc70(0xeb)](_0x12c478['UniverInstanceType'][_0x3bfc70(0x1b0)])[_0x3bfc70(0x1c2)]((0x0,_0x4e6c57[_0x3bfc70(0x18b)])(this[_0x3bfc70(0x1ab)]))[_0x3bfc70(0xcb)](async _0x1e2c6f=>{const _0x4e8c76=_0x3bfc70;let _0x15b74d=_0x1e2c6f[_0x4e8c76(0x172)][_0x4e8c76(0x13d)]();this[_0x4e8c76(0x1c6)]['has'](_0x15b74d)||this[_0x4e8c76(0xfe)](_0x15b74d);}),this[_0x3bfc70(0x179)]['getTypeOfUnitDisposed$'](_0x12c478[_0x3bfc70(0x115)][_0x3bfc70(0x1b0)])[_0x3bfc70(0x1c2)]((0x0,_0x4e6c57['takeUntil'])(this[_0x3bfc70(0x1ab)]))[_0x3bfc70(0xcb)](_0x28d518=>{const _0x7d0a73=_0x3bfc70;let _0x27eb03=_0x28d518[_0x7d0a73(0x13d)](),_0x2761d7=this[_0x7d0a73(0x1c6)][_0x7d0a73(0xdf)](_0x27eb03);_0x2761d7==null||_0x2761d7[_0x7d0a73(0x1b3)]();});}async[_0x5b734f(0xfe)](_0x2b7e5d){const _0x535cd2=_0x5b734f;let _0x51f78a=await this['_collabSessionService'][_0x535cd2(0x103)](_0x2b7e5d),_0x38bb08=this['_injector'][_0x535cd2(0x19e)](_0x160a0f,_0x2b7e5d,_0x51f78a);return _0x38bb08['init'](),this[_0x535cd2(0x1c6)][_0x535cd2(0x104)](_0x2b7e5d,_0x38bb08),_0x38bb08;}};_0x235fb6=_0x4daca4([_0x4b87e0(0x0,_0x12c478[_0x5b734f(0x124)]),_0x4b87e0(0x1,(0x0,_0x12c478['Inject'])(_0x12c478[_0x5b734f(0x164)])),_0x4b87e0(0x2,(0x0,_0x12c478[_0x5b734f(0x1a6)])(_0x23241b[_0x5b734f(0x14e)]))],_0x235fb6);let _0x811cfa=function(_0x3dea5c){const _0x46bafc=_0x5b734f;return _0x3dea5c['OFFLINE']=_0x46bafc(0x119),_0x3dea5c[_0x46bafc(0x1ba)]=_0x46bafc(0x12f),_0x3dea5c[_0x46bafc(0x1a3)]=_0x46bafc(0x14b),_0x3dea5c['NOT_FOLLOWING']=_0x46bafc(0x1b2),_0x3dea5c['PRESENTING']=_0x46bafc(0xfd),_0x3dea5c;}({}),_0x160a0f=class extends _0x12c478[_0x5b734f(0x1d9)]{get[_0x5b734f(0xea)](){const _0x2b462e=_0x5b734f;return this[_0x2b462e(0x1b9)][_0x2b462e(0xcf)]();}constructor(_0xbc53ee,_0x522a96,_0x36eef0,_0x59a2dd,_0x599148){const _0x3430aa=_0x5b734f;super(),this[_0x3430aa(0xd2)]=_0xbc53ee,this[_0x3430aa(0x10a)]=_0x522a96,this[_0x3430aa(0x1a1)]=_0x36eef0,this['_liveShareService']=_0x59a2dd,this[_0x3430aa(0x166)]=_0x599148,_0xa0db88(this,_0x3430aa(0x1b9),new _0x56299f[(_0x3430aa(0xf0))](_0x3430aa(0x12f))),_0xa0db88(this,_0x3430aa(0x1cf),this['_status$'][_0x3430aa(0x157)]()),_0xa0db88(this,_0x3430aa(0x144),!0x1),_0xa0db88(this,_0x3430aa(0xee),null),_0xa0db88(this,'_presenter',null);}[_0x5b734f(0x1b3)](){const _0x51f7d8=_0x5b734f;var _0x2524e0;(_0x2524e0=this[_0x51f7d8(0xee)])==null||_0x2524e0[_0x51f7d8(0x1b3)](),this[_0x51f7d8(0x1b9)]['next'](_0x51f7d8(0x12f)),this[_0x51f7d8(0x1b9)][_0x51f7d8(0xec)]();}[_0x5b734f(0xf6)](){return this['_status'];}[_0x5b734f(0x133)](){const _0x25578c=_0x5b734f;this[_0x25578c(0x144)]||(this[_0x25578c(0x144)]=!0x0,this['_collabSession']['sessionStatus$']['pipe']((0x0,_0x4e6c57[_0x25578c(0x18b)])(this[_0x25578c(0x1ab)]))[_0x25578c(0xcb)](_0x8f41ee=>{const _0x113ba0=_0x25578c;switch(_0x8f41ee){case _0x23241b[_0x113ba0(0x160)][_0x113ba0(0x1a2)]:this[_0x113ba0(0x15b)]();break;case _0x23241b[_0x113ba0(0x160)][_0x113ba0(0x129)]:this[_0x113ba0(0x182)]();break;default:}}),this[_0x25578c(0x10a)][_0x25578c(0x17d)][_0x25578c(0x1c2)]((0x0,_0x4e6c57[_0x25578c(0x18b)])(this['dispose$']))[_0x25578c(0xcb)](_0x1f1aaa=>{const _0x1163f6=_0x25578c;let {eventID:_0x6c5c7a}=_0x1f1aaa;switch(_0x6c5c7a){case _0x24d520[_0x1163f6(0x15f)]['LIVESHARE_NEW_HOST']:this[_0x1163f6(0xf3)](_0x1f1aaa);break;case _0x24d520[_0x1163f6(0x15f)][_0x1163f6(0x139)]:this[_0x1163f6(0x11d)](_0x1f1aaa);break;case _0x24d520[_0x1163f6(0x15f)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x24d520[_0x1163f6(0x15f)]['NEW_CHANGESETS']:this[_0x1163f6(0xe9)](_0x1f1aaa);break;default:}}));}['tryStartPresenting'](){const _0x1bb62a=_0x5b734f;this['_collabSession']['send']({'eventID':_0x24d520[_0x1bb62a(0x15f)][_0x1bb62a(0x127)],'data':{'unitID':this[_0x1bb62a(0xd2)],'userID':this[_0x1bb62a(0x10a)][_0x1bb62a(0x1b7)]()}},this[_0x1bb62a(0xd2)]);}[_0x5b734f(0x120)](){const _0x353cf2=_0x5b734f;this[_0x353cf2(0xea)]===_0x353cf2(0xfd)&&(this[_0x353cf2(0x1b9)][_0x353cf2(0x12c)]('idle'),this[_0x353cf2(0x10a)][_0x353cf2(0x19a)]({'eventID':_0x24d520[_0x353cf2(0x15f)][_0x353cf2(0x131)],'data':{'unitID':this[_0x353cf2(0xd2)]}},this[_0x353cf2(0xd2)]));}['startFollowing'](){const _0x39970f=_0x5b734f;this['_status']==='not-following'&&(this[_0x39970f(0x1b9)][_0x39970f(0x12c)]('following'),this[_0x39970f(0xf8)]());}[_0x5b734f(0xf1)](){const _0x15f74f=_0x5b734f;this['_status']===_0x15f74f(0x14b)&&this[_0x15f74f(0x161)]();}[_0x5b734f(0xf3)](_0xec68af){const _0xb74196=_0x5b734f;let {presenter:_0xb7d195}=_0xec68af[_0xb74196(0x122)],_0x37d18c=this[_0xb74196(0x10a)][_0xb74196(0x1b7)]();this[_0xb74196(0xd1)]=_0xb7d195,_0xb7d195===_0x37d18c?(this[_0xb74196(0x161)](),this[_0xb74196(0x10f)]()):this[_0xb74196(0xea)]!==_0xb74196(0x1b2)&&(this[_0xb74196(0xf4)](),this[_0xb74196(0xf8)]());}[_0x5b734f(0x14d)](){const _0x18af05=_0x5b734f;let _0x196a64={'eventID':_0x24d520['CollaborationEvent'][_0x18af05(0x194)]};this[_0x18af05(0x10a)][_0x18af05(0x19a)](_0x196a64,this[_0x18af05(0xd2)]);}[_0x5b734f(0x192)](){const _0x7b7c9e=_0x5b734f;this['_presenter']=null,this[_0x7b7c9e(0xea)]!==_0x7b7c9e(0xfd)&&this[_0x7b7c9e(0x1d3)]();}[_0x5b734f(0xe9)](_0x5a9f1f){const _0x4240e5=_0x5b734f;if(this[_0x4240e5(0xea)]===_0x4240e5(0x14b)&&this[_0x4240e5(0xd1)]===_0x5a9f1f['data']['memberID']){let _0x53b358=(0x0,_0x24d520['parseProtocolChangeset'])(_0x5a9f1f[_0x4240e5(0x122)])['mutations'][_0x4240e5(0x1cb)]()[_0x4240e5(0x1b1)](_0x323ea1=>_0x323ea1['id']===_0x178c69[_0x4240e5(0x190)]['id']);if(_0x53b358){let _0xe08d7e=_0x53b358[_0x4240e5(0x141)][_0x4240e5(0x1c5)],_0x59654c=_0x53b358['params'][_0x4240e5(0xe3)]['id'];setTimeout(()=>{const _0x17aeda=_0x4240e5;this[_0x17aeda(0x166)][_0x17aeda(0x167)](_0x178c69[_0x17aeda(0x123)]['id'],{'unitId':_0xe08d7e,'subUnitId':_0x59654c},{'fromCollab':!0x0});});}}}[_0x5b734f(0x10f)](){const _0x4b4c6b=_0x5b734f;var _0x79dcc7;(_0x79dcc7=this[_0x4b4c6b(0xee)])==null||_0x79dcc7['dispose'](),this['_status$'][_0x4b4c6b(0x12c)](_0x4b4c6b(0xfd));let _0x16190d=new Map(),_0xa0a8c3=this['_commandDisposable']=new _0x12c478[(_0x4b4c6b(0x107))]();_0xa0a8c3[_0x4b4c6b(0x1ad)]((0x0,_0x12c478[_0x4b4c6b(0xe8)])(()=>{const _0x47447e=_0x4b4c6b;_0x16190d[_0x47447e(0x147)](({subject:_0x4be1cf,subscription:_0x149a00})=>{_0x149a00['unsubscribe'](),_0x4be1cf['complete']();}),_0x16190d[_0x47447e(0xd7)]();})),_0xa0a8c3[_0x4b4c6b(0x1ad)](this[_0x4b4c6b(0x166)][_0x4b4c6b(0xd8)](_0x22dbf6=>{const _0x4a80c=_0x4b4c6b;if(_0x22dbf6[_0x4a80c(0x17e)]!==_0x12c478['CommandType'][_0x4a80c(0x1d1)]||!this[_0x4a80c(0x196)][_0x4a80c(0x145)](_0x22dbf6['id']))return;let {id:_0xd3f72}=_0x22dbf6,_0x55f128;if(_0x16190d[_0x4a80c(0x1aa)](_0xd3f72))_0x55f128=_0x16190d[_0x4a80c(0xdf)](_0xd3f72)[_0x4a80c(0x189)];else{_0x55f128=new _0x56299f[(_0x4a80c(0x150))]();let _0x1d9b6a=_0x55f128[_0x4a80c(0x1c2)]((0x0,_0x4e6c57[_0x4a80c(0x12d)])(this[_0x4a80c(0x1a1)][_0x4a80c(0xe0)](_0x4a80c(0x112))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a80c(0xcb)](_0x526847=>{const _0x4fd6cd=_0x4a80c;this[_0x4fd6cd(0x10a)][_0x4fd6cd(0x19a)]({'eventID':_0x24d520[_0x4fd6cd(0x15f)][_0x4fd6cd(0x139)],'data':{'unitID':this[_0x4fd6cd(0xd2)],'operations':{[_0x526847['id']]:{'id':_0x526847['id'],'params':JSON[_0x4fd6cd(0x140)](_0x526847[_0x4fd6cd(0x141)])}}}},this[_0x4fd6cd(0xd2)]);});_0x16190d['set'](_0xd3f72,{'subject':_0x55f128,'subscription':_0x1d9b6a});}_0x55f128['next'](_0x22dbf6);})),this[_0x4b4c6b(0x196)][_0x4b4c6b(0x1da)](this['_unitID'])[_0x4b4c6b(0x147)](_0x445f00=>this[_0x4b4c6b(0x10a)][_0x4b4c6b(0x19a)]({'eventID':_0x24d520[_0x4b4c6b(0x15f)][_0x4b4c6b(0x139)],'data':{'unitID':this[_0x4b4c6b(0xd2)],'operations':{[_0x445f00['id']]:{'id':_0x445f00['id'],'params':JSON['stringify'](_0x445f00[_0x4b4c6b(0x141)])}}}},this[_0x4b4c6b(0xd2)]));}['_stopPresenting'](){const _0x114d85=_0x5b734f;var _0x4f447a;this['_status$'][_0x114d85(0x12c)](_0x114d85(0x12f)),(_0x4f447a=this[_0x114d85(0xee)])==null||_0x4f447a[_0x114d85(0x1b3)](),this[_0x114d85(0xee)]=null;}[_0x5b734f(0xf8)](){const _0x6c8ada=_0x5b734f;var _0x521a82;(_0x521a82=this[_0x6c8ada(0xee)])==null||_0x521a82[_0x6c8ada(0x1b3)](),this[_0x6c8ada(0x1b9)][_0x6c8ada(0x12c)](_0x6c8ada(0x14b));}[_0x5b734f(0x1d3)](){const _0x156246=_0x5b734f;var _0x16724a;this[_0x156246(0x1b9)][_0x156246(0x12c)](_0x156246(0x12f)),(_0x16724a=this['_commandDisposable'])==null||_0x16724a[_0x156246(0x1b3)](),this[_0x156246(0xee)]=null;}['_stopFollowing'](){const _0x466ac6=_0x5b734f;var _0xa8ffe0;this[_0x466ac6(0x1b9)]['next'](_0x466ac6(0x1b2)),(_0xa8ffe0=this['_commandDisposable'])==null||_0xa8ffe0[_0x466ac6(0x1b3)]();}['_handleOperation'](_0x1e7f6b){const _0x4039fe=_0x5b734f;if(['presenting',_0x4039fe(0x1b2),'offline'][_0x4039fe(0xf9)](this[_0x4039fe(0xea)])||!_0x1e7f6b[_0x4039fe(0x122)]['presenter']||_0x1e7f6b['data']['presenter']===this[_0x4039fe(0x10a)][_0x4039fe(0x1b7)]())return;this[_0x4039fe(0xea)]===_0x4039fe(0x12f)&&this['_startFollowing']();let _0x31872e=_0x1e7f6b[_0x4039fe(0x122)][_0x4039fe(0xd6)];Object['values'](_0x31872e)['forEach'](_0x35a552=>{const _0x4e7b71=_0x4039fe;this['_commandService']['executeCommand'](_0x35a552['id'],_0x35a552[_0x4e7b71(0x141)]?JSON['parse'](_0x35a552['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x489ff0=_0x5b734f;var _0x641f16;this[_0x489ff0(0x1b9)]['next'](_0x489ff0(0x119)),(_0x641f16=this['_commandDisposable'])==null||_0x641f16[_0x489ff0(0x1b3)]();}['_handleOnline'](){const _0xc803d2=_0x5b734f;this[_0xc803d2(0x1b9)][_0xc803d2(0x12c)](_0xc803d2(0x12f)),this[_0xc803d2(0x14d)]();}};_0x160a0f=_0x4daca4([_0x4b87e0(0x2,_0x12c478[_0x5b734f(0x1d6)]),_0x4b87e0(0x3,(0x0,_0x12c478[_0x5b734f(0x1a6)])(_0x25ffc0)),_0x4b87e0(0x4,_0x12c478['ICommandService'])],_0x160a0f);var _0x2645e9='@univerjs-pro/live-share',_0x1152d9=_0x5b734f(0x16d);let _0x176330={},_0x121cb2=class extends _0x12c478['Disposable']{constructor(_0xecda1c){const _0xbf66da=_0x5b734f;super(),this['_liveShareService']=_0xecda1c,this[_0xbf66da(0x144)]();}[_0x5b734f(0x144)](){const _0x22e818=_0x5b734f;[_0x4dc71a[_0x22e818(0xf2)]['id'],_0x4dc71a['SetScrollOperation']['id'],_0x178c69[_0x22e818(0x123)]['id']][_0x22e818(0x147)](_0x3973b9=>{const _0x107902=_0x22e818;this['disposeWithMe'](this[_0x107902(0x196)][_0x107902(0x18f)](_0x3973b9));});}};_0x121cb2=_0x4daca4([_0x4b87e0(0x0,(0x0,_0x12c478['Inject'])(_0x25ffc0))],_0x121cb2);function _0x50ab0c({ref:_0x241aa1,..._0x5e0b1e}){const _0x1f3238=_0x5b734f;let {preserveStrokeWidth:_0x343b7f,icon:_0x5a9f2e,id:_0x11e9eb,className:_0x4d8ac7,extend:_0x1f47cc,..._0x4501d7}=_0x5e0b1e,_0x2b93ac=('univerjs-icon\x20univerjs-icon-'+_0x11e9eb+'\x20'+(_0x4d8ac7||''))[_0x1f3238(0x102)](),_0x1eee2d='_'+(0x0,_0x278a6a[_0x1f3238(0xe6)])(),_0x456bbd=(0x0,_0x278a6a[_0x1f3238(0x109)])(null);return(0x0,_0x278a6a[_0x1f3238(0x1ae)])(_0x241aa1,()=>_0x456bbd[_0x1f3238(0xfb)]),(0x0,_0x278a6a['useLayoutEffect'])(()=>{const _0x390310=_0x1f3238;if(!(!_0x343b7f||!_0x456bbd[_0x390310(0xfb)]||_0x456bbd[_0x390310(0xfb)]['localName']!==_0x5a9f2e['tag']))return _0x526a26(_0x456bbd[_0x390310(0xfb)]);},[_0x343b7f,_0x5a9f2e]),_0x3dfa84(_0x5a9f2e,''+_0x11e9eb,{'defIds':_0x5a9f2e['defIds'],'idSuffix':_0x1eee2d},{'ref':_0x456bbd,'className':_0x2b93ac,..._0x4501d7},_0x1f47cc);}function _0x3dfa84(_0xfb9f18,_0x1c124d,_0x1ac454,_0x31e2b5,_0xdac770){const _0x5494cd=_0x5b734f;return(0x0,_0x278a6a[_0x5494cd(0x137)])(_0xfb9f18[_0x5494cd(0x142)],{'key':_0x1c124d,..._0x593280(_0xfb9f18,_0x1ac454,_0xdac770),..._0x31e2b5},(_0x3d630e(_0xfb9f18,_0x1ac454)[_0x5494cd(0x175)]||[])[_0x5494cd(0x1a7)]((_0x1d0b0e,_0x2b1d89)=>_0x3dfa84(_0x1d0b0e,_0x1c124d+'-'+_0xfb9f18[_0x5494cd(0x142)]+'-'+_0x2b1d89,_0x1ac454,void 0x0,_0xdac770)));}function _0x593280(_0x24303c,_0x25383b,_0x7e5f8e){const _0x35d9eb=_0x5b734f;let _0x4e4921={..._0x24303c[_0x35d9eb(0x1d4)]};_0x7e5f8e!=null&&_0x7e5f8e[_0x35d9eb(0x1b8)]&&_0x4e4921[_0x35d9eb(0x156)]==='colorChannel1'&&(_0x4e4921['fill']=_0x7e5f8e[_0x35d9eb(0x1b8)]),_0x7e5f8e!=null&&_0x7e5f8e[_0x35d9eb(0x1b8)]&&_0x4e4921[_0x35d9eb(0x10d)]===_0x35d9eb(0x1b8)&&(_0x4e4921[_0x35d9eb(0x10d)]=_0x7e5f8e['colorChannel1']),_0x24303c[_0x35d9eb(0x142)]===_0x35d9eb(0x111)&&_0x4e4921['id']&&(_0x4e4921['id']+=_0x25383b[_0x35d9eb(0x14c)]),Object[_0x35d9eb(0xfa)](_0x4e4921)[_0x35d9eb(0x147)](([_0x6b4791,_0x3eb77])=>{const _0x45ed2d=_0x35d9eb;_0x6b4791==='mask'&&typeof _0x3eb77=='string'&&(_0x4e4921[_0x6b4791]=_0x3eb77[_0x45ed2d(0x188)](/url\(#(.*)\)/,_0x45ed2d(0x1c9)+_0x25383b[_0x45ed2d(0x14c)]+')'));});let {defIds:_0x4fdc8c}=_0x25383b;return!_0x4fdc8c||_0x4fdc8c['length']===0x0?_0x4e4921:(_0x24303c['tag']===_0x35d9eb(0x1cd)&&_0x4e4921[_0x35d9eb(0x16a)]&&(_0x4e4921[_0x35d9eb(0x16a)]+=_0x25383b[_0x35d9eb(0x14c)]),Object['entries'](_0x4e4921)['forEach'](([_0x5abc0e,_0x4434a3])=>{const _0x2b2e01=_0x35d9eb;typeof _0x4434a3=='string'&&(_0x4e4921[_0x5abc0e]=_0x4434a3[_0x2b2e01(0x188)](/url\(#(.*)\)/,'url(#$1'+_0x25383b[_0x2b2e01(0x14c)]+')'));}),_0x4e4921);}function _0x3d630e(_0x3ad4c4,_0x1a48c4){const _0x3b0949=_0x5b734f;var _0x18c170;let {defIds:_0xa9fd02}=_0x1a48c4;return!_0xa9fd02||_0xa9fd02[_0x3b0949(0x169)]===0x0?_0x3ad4c4:_0x3ad4c4[_0x3b0949(0x142)]==='defs'&&(_0x18c170=_0x3ad4c4[_0x3b0949(0x175)])!=null&&_0x18c170[_0x3b0949(0x169)]?{..._0x3ad4c4,'children':_0x3ad4c4[_0x3b0949(0x175)]['map'](_0x1e1fc4=>typeof _0x1e1fc4[_0x3b0949(0x1d4)]['id']==_0x3b0949(0x181)&&_0xa9fd02&&_0xa9fd02[_0x3b0949(0xf9)](_0x1e1fc4[_0x3b0949(0x1d4)]['id'])?{..._0x1e1fc4,'attrs':{..._0x1e1fc4[_0x3b0949(0x1d4)],'id':_0x1e1fc4[_0x3b0949(0x1d4)]['id']+_0x1a48c4[_0x3b0949(0x14c)]}}:_0x1e1fc4)}:_0x3ad4c4;}function _0x526a26(_0xdd5bd1){const _0x481c43=_0x5b734f;let _0x596a7a=_0xdd5bd1[_0x481c43(0xd3)][_0x481c43(0x134)],_0x5a0cb8=Math[_0x481c43(0xcc)](_0x596a7a[_0x481c43(0x154)],_0x596a7a[_0x481c43(0x18e)]);if(!Number[_0x481c43(0x191)](_0x5a0cb8)||_0x5a0cb8<=0x0||_0x596a7a[_0x481c43(0x154)]<=0x0||_0x596a7a[_0x481c43(0x18e)]<=0x0)return()=>void 0x0;let _0x11a488=0x10/_0x5a0cb8,_0x3c5741=Array['from'](_0xdd5bd1[_0x481c43(0x12e)](_0x481c43(0x14a)))[_0x481c43(0x1ce)](_0xeff748=>{const _0x2634a6=_0x481c43;let _0x35b64c=getComputedStyle(_0xeff748),_0x295776=Number[_0x2634a6(0xda)](_0x35b64c[_0x2634a6(0x1bc)]);return _0x35b64c[_0x2634a6(0x10d)]===_0x2634a6(0x15c)||Number[_0x2634a6(0xda)](_0x35b64c['strokeOpacity'])===0x0||_0x35b64c[_0x2634a6(0xed)]==='non-scaling-stroke'||!Number[_0x2634a6(0x191)](_0x295776)||_0x295776<=0x0?[]:[{'element':_0xeff748,'hadStyleAttribute':_0xeff748['hasAttribute'](_0x2634a6(0xf7)),'originalStrokeWidth':_0x295776,'strokeWidth':_0x57eaf9(_0xeff748[_0x2634a6(0xf7)],_0x2634a6(0xf5))}];})[_0x481c43(0x1a7)](_0x5bc2ae=>({'appliedStrokeWidth':null,'element':_0x5bc2ae[_0x481c43(0x1af)],'hadStyleAttribute':_0x5bc2ae[_0x481c43(0x1d2)],'isReleased':!0x1,'originalStrokeWidth':_0x5bc2ae[_0x481c43(0x1cc)],'strokeWidth':_0x5bc2ae[_0x481c43(0x1bc)]}));if(_0x3c5741[_0x481c43(0x169)]===0x0)return()=>void 0x0;let _0x125cc1=(_0x299e11,_0x4d0991)=>{const _0x25a51b=_0x481c43;if(_0x596a7a[_0x25a51b(0x154)]<=0x0||_0x596a7a[_0x25a51b(0x18e)]<=0x0||_0x299e11<=0x0||_0x4d0991<=0x0)return;let _0x2307e0=Math[_0x25a51b(0xff)](_0x299e11/_0x596a7a[_0x25a51b(0x154)],_0x4d0991/_0x596a7a['height']);!Number[_0x25a51b(0x191)](_0x2307e0)||_0x2307e0<=0x0||_0x3c5741[_0x25a51b(0x147)](_0x3ec9af=>{const _0x4c940a=_0x25a51b;if(_0x3ec9af['isReleased'])return;if(_0x3ec9af[_0x4c940a(0x110)]!==null&&(_0x3ec9af[_0x4c940a(0x1af)][_0x4c940a(0xf7)][_0x4c940a(0x153)]('stroke-width')!==_0x3ec9af[_0x4c940a(0x110)]||_0x3ec9af[_0x4c940a(0x1af)][_0x4c940a(0xf7)][_0x4c940a(0x15e)](_0x4c940a(0xf5))!==_0x3ec9af[_0x4c940a(0x1bc)][_0x4c940a(0x113)])){_0x3ec9af[_0x4c940a(0x110)]=null,_0x3ec9af[_0x4c940a(0x10b)]=!0x0;return;}let _0x19f63c=_0x3ec9af[_0x4c940a(0x1cc)]*_0x11a488/_0x2307e0,_0x572f33=Number(_0x19f63c[_0x4c940a(0x108)](0xc))+'px';_0x3ec9af[_0x4c940a(0x1af)][_0x4c940a(0xf7)]['setProperty'](_0x4c940a(0xf5),_0x572f33,_0x3ec9af[_0x4c940a(0x1bc)]['priority']),_0x3ec9af['appliedStrokeWidth']=_0x572f33;});},_0x5afa80=_0xdd5bd1[_0x481c43(0x15a)]();_0x125cc1(_0x5afa80['width'],_0x5afa80[_0x481c43(0x18e)]);let _0x166803=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x3a22d9=>{const _0x410f91=_0x481c43;if(_0x3a22d9[_0x410f91(0x1b6)](_0x5f1dae=>_0x5f1dae[_0x410f91(0x14f)]===_0xdd5bd1)){let _0x4c0295=_0xdd5bd1[_0x410f91(0x15a)]();_0x125cc1(_0x4c0295['width'],_0x4c0295[_0x410f91(0x18e)]);}});return _0x166803==null||_0x166803[_0x481c43(0x117)](_0xdd5bd1),()=>{const _0x3252e8=_0x481c43;_0x166803==null||_0x166803[_0x3252e8(0x100)](),_0x3c5741[_0x3252e8(0x147)](_0x14017e=>{const _0x1d3b68=_0x3252e8;_0x14017e[_0x1d3b68(0x110)]!==null&&(_0x4967b4(_0x14017e[_0x1d3b68(0x1af)][_0x1d3b68(0xf7)],_0x1d3b68(0xf5),_0x14017e[_0x1d3b68(0x110)],_0x14017e['strokeWidth'][_0x1d3b68(0x113)],_0x14017e[_0x1d3b68(0x1bc)]),!_0x14017e[_0x1d3b68(0x1d2)]&&_0x14017e['element'][_0x1d3b68(0xf7)][_0x1d3b68(0x169)]===0x0&&_0x14017e[_0x1d3b68(0x1af)][_0x1d3b68(0x187)](_0x1d3b68(0xf7)));});};}function _0x57eaf9(_0x4e2062,_0x16ad94){const _0x2335da=_0x5b734f;return{'priority':_0x4e2062[_0x2335da(0x15e)](_0x16ad94),'value':_0x4e2062[_0x2335da(0x153)](_0x16ad94)};}function _0x4967b4(_0x13e2c9,_0x313f44,_0x558a3b,_0x384a34,_0x37ec96){const _0x4cef2e=_0x5b734f;_0x13e2c9[_0x4cef2e(0x153)](_0x313f44)===_0x558a3b&&_0x13e2c9[_0x4cef2e(0x15e)](_0x313f44)===_0x384a34&&(_0x37ec96[_0x4cef2e(0x1c7)]?_0x13e2c9[_0x4cef2e(0x17c)](_0x313f44,_0x37ec96['value'],_0x37ec96['priority']):_0x13e2c9[_0x4cef2e(0x19f)](_0x313f44));}_0x50ab0c['displayName']=_0x5b734f(0x114);let _0x4bbeba={'tag':'svg','attrs':{'xmlns':_0x5b734f(0x1a9),'fill':_0x5b734f(0x15c),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x5b734f(0xde)},'children':[{'tag':_0x5b734f(0xd5),'attrs':{'fill':_0x5b734f(0x186),'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':'path','attrs':{'fill':_0x5b734f(0x186),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5b734f(0x19c),'clipRule':_0x5b734f(0x19c)}}]},_0x1d0d03=(0x0,_0x278a6a[_0x5b734f(0x143)])(function(_0x592727,_0x1777fc){const _0x58ab3f=_0x5b734f;return(0x0,_0x278a6a[_0x58ab3f(0x137)])(_0x50ab0c,Object[_0x58ab3f(0x1b4)]({},_0x592727,{'id':_0x58ab3f(0x18c),'ref':_0x1777fc,'icon':_0x4bbeba}));});_0x1d0d03['displayName']=_0x5b734f(0x101);function _0x5a9e54(){const _0xc43c1a=_0x5b734f;let _0x6a4608=(0x0,_0x302f74[_0xc43c1a(0x148)])(_0x235fb6),_0x23b89a=(0x0,_0x302f74[_0xc43c1a(0x148)])(_0x12c478[_0xc43c1a(0x124)]),_0x188088=(0x0,_0x302f74['useObservable'])(()=>_0x23b89a['getCurrentTypeOfUnit$'](_0x12c478[_0xc43c1a(0x115)][_0xc43c1a(0x1b0)]),void 0x0,!0x1,[]),_0x9a5329=(0x0,_0x302f74[_0xc43c1a(0x19d)])((0x0,_0x278a6a[_0xc43c1a(0x1bd)])(()=>_0x188088?(0x0,_0x56299f['defer'])(()=>(0x0,_0x56299f[_0xc43c1a(0x105)])(_0x6a4608['getLiveShareCoordinator'](_0x188088[_0xc43c1a(0x13d)]()))):(0x0,_0x56299f['of'])(null),[_0x188088,_0x6a4608]),null),_0x3fbfb0=(0x0,_0x302f74[_0xc43c1a(0x19d)])(_0x9a5329?()=>_0x9a5329[_0xc43c1a(0x1cf)]:null,'idle',!0x1,[_0x9a5329]);return _0x9a5329?(0x0,_0x118f47[_0xc43c1a(0x12b)])(_0x260a67[_0xc43c1a(0x15d)],{'align':'end','disabled':_0x3fbfb0===_0xc43c1a(0x119),'className':_0xc43c1a(0x155),'overlay':(0x0,_0x118f47[_0xc43c1a(0x12b)])(_0x55ca5b,{'status':_0x3fbfb0,'coordinator':_0x9a5329}),'children':(0x0,_0x118f47[_0xc43c1a(0x12b)])(_0x260a67['Button'],{'size':'icon','variant':_0xc43c1a(0x18a),'disabled':_0x3fbfb0==='offline','type':_0xc43c1a(0x125),'children':(0x0,_0x118f47[_0xc43c1a(0x12b)])(_0x1d0d03,{})})}):null;}function _0x55ca5b(_0x5dd41f){const _0x6eba9e=_0x5b734f;let {status:_0x27abbe,coordinator:_0x2889f0}=_0x5dd41f;switch(_0x27abbe){case _0x6eba9e(0x12f):return(0x0,_0x118f47['jsx'])(_0x35b437,{'coordinator':_0x2889f0});case'following':return(0x0,_0x118f47[_0x6eba9e(0x12b)])(_0x213416,{'coordinator':_0x2889f0});case _0x6eba9e(0x1b2):return(0x0,_0x118f47[_0x6eba9e(0x12b)])(_0x490013,{'coordinator':_0x2889f0});case'offline':return(0x0,_0x118f47[_0x6eba9e(0x12b)])(_0x149239,{});case _0x6eba9e(0xfd):return(0x0,_0x118f47[_0x6eba9e(0x12b)])(_0x5c75b3,{'coordinator':_0x2889f0});default:return null;}}function _0x35b437(_0x5067fc){const _0x5e7a32=_0x5b734f;let {coordinator:_0x527429}=_0x5067fc;return(0x0,_0x118f47[_0x5e7a32(0x11e)])(_0x118f47[_0x5e7a32(0xd9)],{'children':[(0x0,_0x118f47[_0x5e7a32(0x12b)])(_0x5e7a32(0x198),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5e7a32(0x199)}),(0x0,_0x118f47['jsx'])(_0x260a67[_0x5e7a32(0x13c)],{'onClick':()=>_0x527429[_0x5e7a32(0x11a)](),'children':_0x5e7a32(0x1a8)})]});}function _0x213416(_0x44874a){const _0x55d9e3=_0x5b734f;let {coordinator:_0x41aa62}=_0x44874a;return(0x0,_0x118f47[_0x55d9e3(0x11e)])(_0x118f47[_0x55d9e3(0xd9)],{'children':[(0x0,_0x118f47[_0x55d9e3(0x12b)])(_0x55d9e3(0x198),{'className':_0x55d9e3(0x136),'children':_0x55d9e3(0x1c3)}),(0x0,_0x118f47['jsx'])(_0x260a67[_0x55d9e3(0x13c)],{'onClick':()=>_0x41aa62[_0x55d9e3(0xf1)](),'children':_0x55d9e3(0x184)})]});}function _0x490013(_0x5c320f){const _0x1ba2ec=_0x5b734f;let {coordinator:_0x5b5d0f}=_0x5c320f;return(0x0,_0x118f47[_0x1ba2ec(0x11e)])(_0x118f47[_0x1ba2ec(0xd9)],{'children':[(0x0,_0x118f47[_0x1ba2ec(0x12b)])(_0x1ba2ec(0x198),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1ba2ec(0x1c0)}),(0x0,_0x118f47['jsx'])(_0x260a67[_0x1ba2ec(0x13c)],{'variant':_0x1ba2ec(0x18a),'onClick':()=>_0x5b5d0f['startFollowing'](),'children':_0x1ba2ec(0x135)})]});}function _0x5c75b3(_0x2d33d3){const _0x385a2e=_0x5b734f;let {coordinator:_0x1a0a47}=_0x2d33d3;return(0x0,_0x118f47[_0x385a2e(0x11e)])(_0x118f47['Fragment'],{'children':[(0x0,_0x118f47[_0x385a2e(0x12b)])('div',{'className':_0x385a2e(0x136),'children':_0x385a2e(0x1c8)}),(0x0,_0x118f47[_0x385a2e(0x12b)])(_0x260a67[_0x385a2e(0x13c)],{'variant':_0x385a2e(0xd4),'onClick':()=>_0x1a0a47[_0x385a2e(0x120)](),'children':_0x385a2e(0x1ca)})]});}function _0x149239(){const _0xea8192=_0x5b734f;return(0x0,_0x118f47[_0xea8192(0x12b)])(_0x118f47[_0xea8192(0xd9)],{'children':_0xea8192(0xdc)});}let _0x460963=class extends _0x12c478[_0x5b734f(0xef)]{constructor(_0x71b7d,_0x4ec99f){const _0x317ca1=_0x5b734f;super(),this[_0x317ca1(0x16c)]=_0x71b7d,this[_0x317ca1(0x13b)]=_0x4ec99f,this['_mountLiveShare']();}[_0x5b734f(0xe4)](){const _0x21e20e=_0x5b734f;this[_0x21e20e(0x152)](this[_0x21e20e(0x13b)]['registerComponent'](_0x302f74[_0x21e20e(0x12a)][_0x21e20e(0xce)],()=>(0x0,_0x302f74[_0x21e20e(0x19b)])(_0x5a9e54,this[_0x21e20e(0x16c)])));}};_0x460963=_0x4daca4([_0x4b87e0(0x0,(0x0,_0x12c478[_0x5b734f(0x1a6)])(_0x12c478[_0x5b734f(0x164)])),_0x4b87e0(0x1,_0x302f74[_0x5b734f(0x1c1)])],_0x460963);let _0x566104=class extends _0x12c478[_0x5b734f(0x1a4)]{constructor(_0x2e01fe=_0x176330,_0x1086ce,_0x5ee03f){const _0x483ff2=_0x5b734f;super(),this[_0x483ff2(0xe1)]=_0x2e01fe,this['_injector']=_0x1086ce,this['_configService']=_0x5ee03f;let {..._0x495039}=(0x0,_0x12c478[_0x483ff2(0x151)])({},_0x176330,this[_0x483ff2(0xe1)]);this['_configService'][_0x483ff2(0x16f)](_0x483ff2(0x17b),_0x495039);}[_0x5b734f(0x1ac)](){const _0x5c3a47=_0x5b734f;(0x0,_0x12c478[_0x5c3a47(0x183)])(this[_0x5c3a47(0x16c)],(0x0,_0x12c478[_0x5c3a47(0x1d8)])([[_0x25ffc0],[_0x235fb6],[_0x121cb2],[_0x460963]],this[_0x5c3a47(0xe1)][_0x5c3a47(0x138)])),(0x0,_0x12c478[_0x5c3a47(0x146)])(this['_injector'],[[_0x121cb2]]);}[_0x5b734f(0x162)](){const _0x544f4d=_0x5b734f;(0x0,_0x12c478[_0x544f4d(0x146)])(this[_0x544f4d(0x16c)],[[_0x460963]]);}};_0xa0db88(_0x566104,'type',_0x12c478[_0x5b734f(0x115)][_0x5b734f(0x10c)]),_0xa0db88(_0x566104,_0x5b734f(0xdd),_0x5b734f(0x1a5)),_0xa0db88(_0x566104,_0x5b734f(0x158),_0x2645e9),_0xa0db88(_0x566104,'version',_0x1152d9),_0x566104=_0x4daca4([(0x0,_0x12c478[_0x5b734f(0x165)])(_0x57a70d['UniverLicensePlugin'],_0x23241b['UniverCollaborationClientPlugin']),_0x4b87e0(0x1,(0x0,_0x12c478['Inject'])(_0x12c478[_0x5b734f(0x164)])),_0x4b87e0(0x2,_0x12c478[_0x5b734f(0x1d6)])],_0x566104),Object[_0x5b734f(0x128)](_0x547ac9,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x235fb6;}}),_0x547ac9[_0x5b734f(0x1b5)]=_0x811cfa,Object[_0x5b734f(0x128)](_0x547ac9,_0x5b734f(0x130),{'enumerable':!0x0,'get':function(){return _0x566104;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.2",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -11,7 +11,7 @@
11
11
  "homepage": "https://univer.ai",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/dream-num/univer"
14
+ "url": "https://github.com/dream-num/univer-pro"
15
15
  },
16
16
  "bugs": {
17
17
  "url": "https://github.com/dream-num/univer/issues"
@@ -62,15 +62,15 @@
62
62
  "rxjs": ">=7.0.0"
63
63
  },
64
64
  "dependencies": {
65
- "@univerjs/icons": "1.35.0",
66
- "@univerjs-pro/collaboration": "1.0.0-beta.0",
67
- "@univerjs-pro/collaboration-client": "1.0.0-beta.0",
68
- "@univerjs/core": "1.0.0-beta.0",
69
- "@univerjs/design": "1.0.0-beta.0",
70
- "@univerjs/sheets": "1.0.0-beta.0",
71
- "@univerjs/ui": "1.0.0-beta.0",
72
- "@univerjs-pro/license": "1.0.0-beta.0",
73
- "@univerjs/sheets-ui": "1.0.0-beta.0"
65
+ "@univerjs/icons": "1.38.0",
66
+ "@univerjs-pro/collaboration": "1.0.0-beta.2",
67
+ "@univerjs-pro/collaboration-client": "1.0.0-beta.2",
68
+ "@univerjs/core": "1.0.0-beta.2",
69
+ "@univerjs-pro/license": "1.0.0-beta.2",
70
+ "@univerjs/sheets-ui": "1.0.0-beta.2",
71
+ "@univerjs/ui": "1.0.0-beta.2",
72
+ "@univerjs/design": "1.0.0-beta.2",
73
+ "@univerjs/sheets": "1.0.0-beta.2"
74
74
  },
75
75
  "devDependencies": {
76
76
  "postcss": "^8.5.25",
@@ -79,8 +79,8 @@
79
79
  "tailwindcss": "3.4.17",
80
80
  "typescript": "^6.0.3",
81
81
  "vitest": "^4.1.10",
82
- "@univerjs-infra/shared": "1.0.0-beta.0",
83
- "@univerjs/protocol": "1.0.0-beta.0"
82
+ "@univerjs-infra/shared": "1.0.0-beta.2",
83
+ "@univerjs/protocol": "1.0.0-beta.2"
84
84
  },
85
85
  "scripts": {
86
86
  "test": "vitest run",