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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 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 _0x41b82d=_0x3f9d;(function(_0x50cb55,_0x44d9f2){const _0x4e0c9c=_0x3f9d,_0x1483c9=_0x50cb55();while(!![]){try{const _0x3328e4=parseInt(_0x4e0c9c(0xc0))/0x1*(parseInt(_0x4e0c9c(0xca))/0x2)+-parseInt(_0x4e0c9c(0xb8))/0x3+parseInt(_0x4e0c9c(0xaa))/0x4*(-parseInt(_0x4e0c9c(0xbd))/0x5)+-parseInt(_0x4e0c9c(0xb3))/0x6+-parseInt(_0x4e0c9c(0xc7))/0x7+-parseInt(_0x4e0c9c(0xba))/0x8+parseInt(_0x4e0c9c(0xa6))/0x9*(parseInt(_0x4e0c9c(0xc8))/0xa);if(_0x3328e4===_0x44d9f2)break;else _0x1483c9['push'](_0x1483c9['shift']());}catch(_0x36fa38){_0x1483c9['push'](_0x1483c9['shift']());}}}(_0x1faa,0xd3dc9));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x262284){'@babel/helpers - typeof';const _0x3c236a=_0x3f9d;return r=typeof Symbol==_0x3c236a(0xab)&&typeof Symbol[_0x3c236a(0xb5)]==_0x3c236a(0xcb)?function(_0x556c62){return typeof _0x556c62;}:function(_0x3faa08){const _0x4b3d0e=_0x3c236a;return _0x3faa08&&typeof Symbol=='function'&&_0x3faa08['constructor']===Symbol&&_0x3faa08!==Symbol[_0x4b3d0e(0xb4)]?_0x4b3d0e(0xcb):typeof _0x3faa08;},r(_0x262284);}function _0x3f9d(_0x367f9a,_0x25e079){_0x367f9a=_0x367f9a-0xa4;const _0x1faa8e=_0x1faa();let _0x3f9d85=_0x1faa8e[_0x367f9a];return _0x3f9d85;}function i(_0x307051,_0x13520a){const _0x5dacc5=_0x3f9d;if(r(_0x307051)!=_0x5dacc5(0xc5)||!_0x307051)return _0x307051;var _0x181c0a=_0x307051[Symbol[_0x5dacc5(0xbb)]];if(_0x181c0a!==void 0x0){var _0x214935=_0x181c0a[_0x5dacc5(0xc9)](_0x307051,_0x13520a||_0x5dacc5(0xa5));if(r(_0x214935)!=_0x5dacc5(0xc5))return _0x214935;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x13520a==='string'?String:Number)(_0x307051);}function a(_0x206619){const _0x1d9851=_0x3f9d;var _0x1a172e=i(_0x206619,_0x1d9851(0xa4));return r(_0x1a172e)==_0x1d9851(0xcb)?_0x1a172e:_0x1a172e+'';}function o(_0x3adca3,_0x3c474c,_0x369bbf){const _0x267146=_0x3f9d;return(_0x3c474c=a(_0x3c474c))in _0x3adca3?Object[_0x267146(0xc6)](_0x3adca3,_0x3c474c,{'value':_0x369bbf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3adca3[_0x3c474c]=_0x369bbf,_0x3adca3;}var s=class extends n['FUniver']{constructor(..._0x1b27dc){const _0x3d6c9f=_0x3f9d;super(..._0x1b27dc),o(this,_0x3d6c9f(0xac),void 0x0);}[_0x41b82d(0xb1)](_0x4d9b5c){const _0x2883f7=_0x41b82d;this['_liveShareController']=_0x4d9b5c[_0x2883f7(0xad)](e[_0x2883f7(0xa7)]);}[_0x41b82d(0xb0)](){const _0x167bee=_0x41b82d;let _0x46cd43=this[_0x167bee(0xbc)]['get'](t[_0x167bee(0xb7)])['getCurrentUnitOfType'](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0x46cd43)throw Error('No\x20active\x20workbook\x20found.');let _0x38c34d=_0x46cd43[_0x167bee(0xae)](),_0x425e1d=this['_liveShareController'][_0x167bee(0xc4)](_0x38c34d);return(_0x425e1d==null?void 0x0:_0x425e1d['getStatus']())??e[_0x167bee(0xa9)]['IDLE'];}[_0x41b82d(0xcd)](){const _0x50909a=_0x41b82d;let _0x4dbc74=this['_injector'][_0x50909a(0xad)](t[_0x50909a(0xb7)])[_0x50909a(0xc3)](t[_0x50909a(0xa8)]['UNIVER_SHEET']);if(!_0x4dbc74)throw Error(_0x50909a(0xb9));let _0x4f307a=_0x4dbc74[_0x50909a(0xae)](),_0x11ad61=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x4f307a);if(!_0x11ad61)throw Error(_0x50909a(0xbe));_0x11ad61[_0x50909a(0xcd)]();}[_0x41b82d(0xb6)](){const _0xe25575=_0x41b82d;let _0x1df868=this['_injector'][_0xe25575(0xad)](t[_0xe25575(0xb7)])[_0xe25575(0xc3)](t['UniverInstanceType'][_0xe25575(0xc2)]);if(!_0x1df868)throw Error(_0xe25575(0xb9));let _0x4a471e=_0x1df868[_0xe25575(0xae)](),_0x3639e5=this['_liveShareController'][_0xe25575(0xc4)](_0x4a471e);if(!_0x3639e5)throw Error(_0xe25575(0xbe));_0x3639e5[_0xe25575(0xb6)]();}[_0x41b82d(0xbf)](){const _0x47393e=_0x41b82d;let _0x1e6a9f=this[_0x47393e(0xbc)][_0x47393e(0xad)](t[_0x47393e(0xb7)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x47393e(0xc2)]);if(!_0x1e6a9f)throw Error('No\x20active\x20workbook\x20found.');let _0x125385=_0x1e6a9f['getUnitId'](),_0x312b5f=this[_0x47393e(0xac)][_0x47393e(0xc4)](_0x125385);if(!_0x312b5f)throw Error(_0x47393e(0xbe));_0x312b5f[_0x47393e(0xcc)]();}[_0x41b82d(0xb2)](){const _0x158149=_0x41b82d;let _0x4dd3ae=this[_0x158149(0xbc)][_0x158149(0xad)](t[_0x158149(0xb7)])['getCurrentUnitOfType'](t[_0x158149(0xa8)][_0x158149(0xc2)]);if(!_0x4dd3ae)throw Error(_0x158149(0xb9));let _0x2f256a=_0x4dd3ae[_0x158149(0xae)](),_0x46486a=this[_0x158149(0xac)][_0x158149(0xc4)](_0x2f256a);if(!_0x46486a)throw Error(_0x158149(0xbe));_0x46486a[_0x158149(0xb2)]();}};function _0x1faa(){const _0x377413=['FUniver','UNIVER_SHEET','getCurrentUnitOfType','getLiveShareCoordinatorSync','object','defineProperty','5727729YeZQLm','38596120ITMtwe','call','262lchlfc','symbol','tryStartPresenting','startFollowing','string','default','9DIiVca','LiveShareController','UniverInstanceType','LiveShareStatus','4OoZIXx','function','_liveShareController','get','getUnitId','LiveShareStatusEnum','getLiveShareStatus','_initialize','stopPresenting','9769368ZLISmC','prototype','iterator','stopFollowing','IUniverInstanceService','3514785Tcxcsj','No\x20active\x20workbook\x20found.','8090888jCwtXe','toPrimitive','_injector','89215gGNMqe','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startPresenting','12637mLtzro'];_0x1faa=function(){return _0x377413;};return _0x1faa();}n[_0x41b82d(0xc1)]['extend'](s);var c=class extends n['FEnum']{get[_0x41b82d(0xaf)](){const _0x3b9bb1=_0x41b82d;return e[_0x3b9bb1(0xa9)];}};n['FEnum']['extend'](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 _0x1d4cd7=_0x5350;function _0x5155(){const _0x3830c7=['Button','IUIPartsService','idle','requireSession','get','asObservable','_startLiveShareCoordinator','object','status$','useDependency','IDLE','getTypeOfUnitAdded$','_init','47430euJgJh','OFFLINE','_startPresenting','DisposableCollection','DependentOn','_univerInstanceService','offline','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverInstanceType','div','216iDfpTZ','_collabSessionService','toStringTag','includes','merge','LIVESHARE_OPERATION','Subject','type','pluginName','You\x27re\x20following\x20the\x20presenter','getLiveShareCoordinatorSync','unit','from','_configService','dispose','Start\x20following','registerInitialStateReporter','RxDisposable','CollaborationSessionService','parse','_commandService','parseProtocolChangeset','defineProperty','length','takeUntil','end','symbol','_handleTerminate','packageName','button','FOLLOWING','ONLINE','_status$','_beIdle','667916MKgvNG','_handleNewHost','_collabSession','text','SetZoomRatioOperation','has','_injector','360369hTKHzf','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter','341hWeKNN','_startFollowing','subscribe','startFollowing','tryStartPresenting','Plugin','presenting','_status','getOwnPropertyDescriptor','LIVESHARE_FETCH_OPERATIONS','_commandDisposable','function','forEach','LIVESHARE_NEW_HOST','_config','_handleNewChangeSets','getValue','HEADER_MENU','operations','getUnitId','UniverCollaborationClientPlugin','createInstance','You\x27re\x20presenting\x20the\x20document','jsxs','touchDependencies','onCommandExecuted','_reporters','UniverLicensePlugin','SessionStatus','following','PRESENTING','params','UniverLiveSharePlugin','_fetchOperations','set','setConfig','_handleOnline','disposeWithMe','_uiPartsService','jsx','SetWorksheetActiveOperation','pipe','433026rIgWvo','_mountLiveShare','icon','Dropdown','getInitialStates','presenter','_entities','_unitID','Present\x20this\x20document','add','_presenter','not-following','IUniverInstanceService','OPERATION','init','Stop\x20following','stringify','LiveShareIcon','_stopPresenting','live-share.config','NEW_CHANGESETS','Inject','BehaviorSubject','iterator','send','memberID','string','getLiveShareCoordinator','_liveShareService','complete','onRendered','_handleOffline','decorate','IConfigService','constructor','dispose$','getCurrentTypeOfUnit$','14735ArFeDO','reverse','1993042nezarp','toPrimitive','_stopFollowing','useObservable','map','CollaborationEvent','getStatus','ICommandService','registerSharedOperation','InsertSheetMutation','getMemberID','unitId','UNIVER_SHEET','unsubscribe','Injector','924490LknqJF','call','data','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','default','SetScrollOperation','@univerjs-pro/live-share','registerDependencies','Fragment','_sharedOperations','delete','Disposable','throttleTime','next','executeCommand','9vbPHEg','1398SHOwrl'];_0x5155=function(){return _0x3830c7;};return _0x5155();}(function(_0x50b721,_0x56cd26){const _0x1bd338=_0x5350,_0x37bb82=_0x50b721();while(!![]){try{const _0x25e84c=parseInt(_0x1bd338(0xc0))/0x1+-parseInt(_0x1bd338(0xe7))/0x2+-parseInt(_0x1bd338(0x105))/0x3*(parseInt(_0x1bd338(0x8c))/0x4)+parseInt(_0x1bd338(0xf6))/0x5+-parseInt(_0x1bd338(0x106))/0x6*(-parseInt(_0x1bd338(0xe5))/0x7)+-parseInt(_0x1bd338(0x11f))/0x8*(-parseInt(_0x1bd338(0x93))/0x9)+-parseInt(_0x1bd338(0x114))/0xa*(parseInt(_0x1bd338(0x96))/0xb);if(_0x25e84c===_0x56cd26)break;else _0x37bb82['push'](_0x37bb82['shift']());}catch(_0x2b663e){_0x37bb82['push'](_0x37bb82['shift']());}}}(_0x5155,0x850ed),Object[_0x1d4cd7(0x135)](exports,Symbol[_0x1d4cd7(0x121)],{'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(_0x2fc0d9){'@babel/helpers - typeof';const _0xee403c=_0x1d4cd7;return p=typeof Symbol==_0xee403c(0xa1)&&typeof Symbol[_0xee403c(0xd7)]==_0xee403c(0x84)?function(_0x27d095){return typeof _0x27d095;}:function(_0x2e88f7){const _0x4b9213=_0xee403c;return _0x2e88f7&&typeof Symbol==_0x4b9213(0xa1)&&_0x2e88f7[_0x4b9213(0xe2)]===Symbol&&_0x2e88f7!==Symbol['prototype']?_0x4b9213(0x84):typeof _0x2e88f7;},p(_0x2fc0d9);}function m(_0x3a1057,_0x40ad09){const _0x4edcaa=_0x1d4cd7;if(p(_0x3a1057)!=_0x4edcaa(0x10e)||!_0x3a1057)return _0x3a1057;var _0x59a39f=_0x3a1057[Symbol[_0x4edcaa(0xe8)]];if(_0x59a39f!==void 0x0){var _0xa5829=_0x59a39f[_0x4edcaa(0xf7)](_0x3a1057,_0x40ad09||'default');if(p(_0xa5829)!='object')return _0xa5829;throw TypeError(_0x4edcaa(0x11b));}return(_0x40ad09===_0x4edcaa(0xda)?String:Number)(_0x3a1057);}function h(_0x408cc8){const _0x5d098d=_0x1d4cd7;var _0x16cbb1=m(_0x408cc8,_0x5d098d(0xda));return p(_0x16cbb1)=='symbol'?_0x16cbb1:_0x16cbb1+'';}function g(_0x11d63c,_0x527ea2,_0x29d302){const _0x46bebc=_0x1d4cd7;return(_0x527ea2=h(_0x527ea2))in _0x11d63c?Object[_0x46bebc(0x135)](_0x11d63c,_0x527ea2,{'value':_0x29d302,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11d63c[_0x527ea2]=_0x29d302,_0x11d63c;}var _=class extends n['Disposable']{constructor(..._0x48ccf4){const _0x55515f=_0x1d4cd7;super(..._0x48ccf4),g(this,_0x55515f(0xff),new Set()),g(this,_0x55515f(0xb0),new Set());}[_0x1d4cd7(0xef)](_0x1c952f){const _0x415ed6=_0x1d4cd7;return this[_0x415ed6(0xff)][_0x415ed6(0xc9)](_0x1c952f),(0x0,n['toDisposable'])(()=>this[_0x415ed6(0xff)][_0x415ed6(0x100)](_0x1c952f));}[_0x1d4cd7(0x12f)](_0x1958e0){const _0x2b5b40=_0x1d4cd7;return this['_reporters']['add'](_0x1958e0),(0x0,n['toDisposable'])(()=>this[_0x2b5b40(0xb0)][_0x2b5b40(0x100)](_0x1958e0));}[_0x1d4cd7(0x94)](_0x28ecab){const _0x2b6ef7=_0x1d4cd7;return this['_sharedOperations'][_0x2b6ef7(0x91)](_0x28ecab);}[_0x1d4cd7(0xc4)](_0x155e44){const _0x27ad6e=_0x1d4cd7;return Array['from'](this[_0x27ad6e(0xb0)])[_0x27ad6e(0xeb)](_0x3337b3=>_0x3337b3(_0x155e44));}};function v(_0x5b6d1b,_0x3e9dfb){return function(_0x36be50,_0x163fcc){_0x3e9dfb(_0x36be50,_0x163fcc,_0x5b6d1b);};}function y(_0x48b6c3,_0x54139f,_0x416dc5,_0x331479){const _0x58fafb=_0x1d4cd7;var _0x553538=arguments['length'],_0x362700=_0x553538<0x3?_0x54139f:_0x331479===null?_0x331479=Object[_0x58fafb(0x9e)](_0x54139f,_0x416dc5):_0x331479,_0x4a6639;if(typeof Reflect==_0x58fafb(0x10e)&&typeof Reflect[_0x58fafb(0xe0)]==_0x58fafb(0xa1))_0x362700=Reflect[_0x58fafb(0xe0)](_0x48b6c3,_0x54139f,_0x416dc5,_0x331479);else{for(var _0x3e0294=_0x48b6c3[_0x58fafb(0x136)]-0x1;_0x3e0294>=0x0;_0x3e0294--)(_0x4a6639=_0x48b6c3[_0x3e0294])&&(_0x362700=(_0x553538<0x3?_0x4a6639(_0x362700):_0x553538>0x3?_0x4a6639(_0x54139f,_0x416dc5,_0x362700):_0x4a6639(_0x54139f,_0x416dc5))||_0x362700);}return _0x553538>0x3&&_0x362700&&Object[_0x58fafb(0x135)](_0x54139f,_0x416dc5,_0x362700),_0x362700;}let b=class extends n[_0x1d4cd7(0x130)]{constructor(_0x35165e,_0x1e4b2c,_0x4751a5){const _0x299b6a=_0x1d4cd7;super(),this[_0x299b6a(0x119)]=_0x35165e,this[_0x299b6a(0x92)]=_0x1e4b2c,this[_0x299b6a(0x120)]=_0x4751a5,g(this,_0x299b6a(0xc6),new Map()),this[_0x299b6a(0x113)]();}async['getLiveShareCoordinator'](_0x57b2d2){const _0x10611f=_0x1d4cd7;return this[_0x10611f(0xc6)]['has'](_0x57b2d2)||await this[_0x10611f(0x10d)](_0x57b2d2),this[_0x10611f(0xc6)][_0x10611f(0x10b)](_0x57b2d2);}[_0x1d4cd7(0x129)](_0x1caac1){const _0x1637e3=_0x1d4cd7;return this[_0x1637e3(0xc6)][_0x1637e3(0x10b)](_0x1caac1)??null;}[_0x1d4cd7(0x113)](){const _0xad7a7e=_0x1d4cd7;this[_0xad7a7e(0x119)][_0xad7a7e(0x112)](n[_0xad7a7e(0x11d)]['UNIVER_SHEET'])[_0xad7a7e(0xbf)]((0x0,a[_0xad7a7e(0x82)])(this[_0xad7a7e(0xe3)]))['subscribe'](async _0x467237=>{const _0x457a9d=_0xad7a7e;let _0xb02343=_0x467237[_0x457a9d(0x12a)]['getUnitId']();this[_0x457a9d(0xc6)][_0x457a9d(0x91)](_0xb02343)||this[_0x457a9d(0x10d)](_0xb02343);}),this[_0xad7a7e(0x119)]['getTypeOfUnitDisposed$'](n[_0xad7a7e(0x11d)][_0xad7a7e(0xf3)])[_0xad7a7e(0xbf)]((0x0,a[_0xad7a7e(0x82)])(this['dispose$']))[_0xad7a7e(0x98)](_0x5fe623=>{const _0x117ca9=_0xad7a7e;let _0x5739bb=_0x5fe623[_0x117ca9(0xa9)](),_0xe0d863=this['_entities'][_0x117ca9(0x10b)](_0x5739bb);_0xe0d863==null||_0xe0d863['dispose']();});}async[_0x1d4cd7(0x10d)](_0x57a4d8){const _0x46b9a6=_0x1d4cd7;let _0x3b2b4d=await this[_0x46b9a6(0x120)][_0x46b9a6(0x10a)](_0x57a4d8),_0x8d418e=this[_0x46b9a6(0x92)][_0x46b9a6(0xab)](S,_0x57a4d8,_0x3b2b4d);return _0x8d418e[_0x46b9a6(0xce)](),this[_0x46b9a6(0xc6)][_0x46b9a6(0xb8)](_0x57a4d8,_0x8d418e),_0x8d418e;}};function _0x5350(_0x260496,_0x531a61){_0x260496=_0x260496-0x82;const _0x5155c5=_0x5155();let _0x535054=_0x5155c5[_0x260496];return _0x535054;}b=y([v(0x0,n[_0x1d4cd7(0xcc)]),v(0x1,(0x0,n[_0x1d4cd7(0xd5)])(n[_0x1d4cd7(0xf5)])),v(0x2,(0x0,n[_0x1d4cd7(0xd5)])(t[_0x1d4cd7(0x131)]))],b);let x=function(_0x356616){const _0x418a48=_0x1d4cd7;return _0x356616[_0x418a48(0x115)]=_0x418a48(0x11a),_0x356616[_0x418a48(0x111)]=_0x418a48(0x109),_0x356616[_0x418a48(0x88)]=_0x418a48(0xb3),_0x356616['NOT_FOLLOWING']=_0x418a48(0xcb),_0x356616[_0x418a48(0xb4)]=_0x418a48(0x9c),_0x356616;}({}),S=class extends n[_0x1d4cd7(0x130)]{get[_0x1d4cd7(0x9d)](){const _0x122972=_0x1d4cd7;return this[_0x122972(0x8a)][_0x122972(0xa6)]();}constructor(_0x16f4cc,_0x47115b,_0x26b8d9,_0x126b85,_0x35df8a){const _0x46b9a9=_0x1d4cd7;super(),this[_0x46b9a9(0xc7)]=_0x16f4cc,this[_0x46b9a9(0x8e)]=_0x47115b,this[_0x46b9a9(0x12c)]=_0x26b8d9,this['_liveShareService']=_0x126b85,this[_0x46b9a9(0x133)]=_0x35df8a,g(this,'_status$',new i[(_0x46b9a9(0xd6))]('idle')),g(this,_0x46b9a9(0x10f),this[_0x46b9a9(0x8a)][_0x46b9a9(0x10c)]()),g(this,_0x46b9a9(0x113),!0x1),g(this,_0x46b9a9(0xa0),null),g(this,'_presenter',null);}[_0x1d4cd7(0x12d)](){const _0x375c46=_0x1d4cd7;var _0x4ddbbc;(_0x4ddbbc=this[_0x375c46(0xa0)])==null||_0x4ddbbc[_0x375c46(0x12d)](),this['_status$'][_0x375c46(0x103)](_0x375c46(0x109)),this[_0x375c46(0x8a)][_0x375c46(0xdd)]();}[_0x1d4cd7(0xed)](){const _0x171244=_0x1d4cd7;return this[_0x171244(0x9d)];}['init'](){const _0x4505d7=_0x1d4cd7;this['_init']||(this[_0x4505d7(0x113)]=!0x0,this[_0x4505d7(0x8e)]['sessionStatus$'][_0x4505d7(0xbf)]((0x0,a[_0x4505d7(0x82)])(this[_0x4505d7(0xe3)]))['subscribe'](_0x194d91=>{const _0x2e0b2d=_0x4505d7;switch(_0x194d91){case t[_0x2e0b2d(0xb2)][_0x2e0b2d(0x115)]:this[_0x2e0b2d(0xdf)]();break;case t[_0x2e0b2d(0xb2)][_0x2e0b2d(0x89)]:this[_0x2e0b2d(0xba)]();break;default:}}),this[_0x4505d7(0x8e)]['event$']['pipe']((0x0,a[_0x4505d7(0x82)])(this['dispose$']))[_0x4505d7(0x98)](_0x4be929=>{const _0x2d4827=_0x4505d7;let {eventID:_0x3f02d7}=_0x4be929;switch(_0x3f02d7){case e[_0x2d4827(0xec)][_0x2d4827(0xa3)]:this[_0x2d4827(0x8d)](_0x4be929);break;case e[_0x2d4827(0xec)][_0x2d4827(0x124)]:this['_handleOperation'](_0x4be929);break;case e[_0x2d4827(0xec)]['LIVESHARE_TERMINATE']:this[_0x2d4827(0x85)]();break;case e['CollaborationEvent'][_0x2d4827(0xd4)]:this[_0x2d4827(0xa5)](_0x4be929);break;default:}}));}[_0x1d4cd7(0x9a)](){const _0x4564eb=_0x1d4cd7;this[_0x4564eb(0x8e)]['send']({'eventID':e[_0x4564eb(0xec)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4564eb(0xc7)],'userID':this['_collabSession'][_0x4564eb(0xf1)]()}},this[_0x4564eb(0xc7)]);}['stopPresenting'](){const _0x1d7a74=_0x1d4cd7;this[_0x1d7a74(0x9d)]===_0x1d7a74(0x9c)&&(this[_0x1d7a74(0x8a)][_0x1d7a74(0x103)](_0x1d7a74(0x109)),this[_0x1d7a74(0x8e)][_0x1d7a74(0xd8)]({'eventID':e[_0x1d7a74(0xec)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x1d4cd7(0x99)](){const _0x10a3af=_0x1d4cd7;this['_status']===_0x10a3af(0xcb)&&(this['_status$'][_0x10a3af(0x103)](_0x10a3af(0xb3)),this[_0x10a3af(0x97)]());}['stopFollowing'](){const _0x328425=_0x1d4cd7;this[_0x328425(0x9d)]==='following'&&this['_stopFollowing']();}[_0x1d4cd7(0x8d)](_0x2d0092){const _0x537cbd=_0x1d4cd7;let {presenter:_0x21774c}=_0x2d0092[_0x537cbd(0xf8)],_0x29f0f9=this[_0x537cbd(0x8e)][_0x537cbd(0xf1)]();this[_0x537cbd(0xca)]=_0x21774c,_0x21774c===_0x29f0f9?(this[_0x537cbd(0xe9)](),this['_startPresenting']()):this[_0x537cbd(0x9d)]!==_0x537cbd(0xcb)&&(this[_0x537cbd(0xd2)](),this[_0x537cbd(0x97)]());}['_fetchOperations'](){const _0x117240=_0x1d4cd7;let _0xd7cb42={'eventID':e[_0x117240(0xec)][_0x117240(0x9f)]};this[_0x117240(0x8e)][_0x117240(0xd8)](_0xd7cb42,this[_0x117240(0xc7)]);}[_0x1d4cd7(0x85)](){const _0x1226d5=_0x1d4cd7;this[_0x1226d5(0xca)]=null,this[_0x1226d5(0x9d)]!==_0x1226d5(0x9c)&&this[_0x1226d5(0x8b)]();}[_0x1d4cd7(0xa5)](_0x2f30db){const _0x25b030=_0x1d4cd7;if(this['_status']==='following'&&this[_0x25b030(0xca)]===_0x2f30db[_0x25b030(0xf8)][_0x25b030(0xd9)]){let _0xeaf350=(0x0,e[_0x25b030(0x134)])(_0x2f30db[_0x25b030(0xf8)])['mutations'][_0x25b030(0xe6)]()['find'](_0x2721b9=>_0x2721b9['id']===r[_0x25b030(0xf0)]['id']);if(_0xeaf350){let _0x36ea7b=_0xeaf350[_0x25b030(0xb5)][_0x25b030(0xf2)],_0x73cfa0=_0xeaf350['params']['sheet']['id'];setTimeout(()=>{const _0x361d89=_0x25b030;this['_commandService'][_0x361d89(0x104)](r[_0x361d89(0xbe)]['id'],{'unitId':_0x36ea7b,'subUnitId':_0x73cfa0},{'fromCollab':!0x0});});}}}[_0x1d4cd7(0x116)](){const _0x288567=_0x1d4cd7;var _0x2ff8c8;(_0x2ff8c8=this[_0x288567(0xa0)])==null||_0x2ff8c8['dispose'](),this[_0x288567(0x8a)][_0x288567(0x103)](_0x288567(0x9c));let _0xba1d4b=new Map(),_0x2660fd=this['_commandDisposable']=new n[(_0x288567(0x117))]();_0x2660fd[_0x288567(0xc9)]((0x0,n['toDisposable'])(()=>{_0xba1d4b['forEach'](({subject:_0x1f9ade,subscription:_0x1b411f})=>{const _0x57a211=_0x5350;_0x1b411f[_0x57a211(0xf4)](),_0x1f9ade[_0x57a211(0xdd)]();}),_0xba1d4b['clear']();})),_0x2660fd[_0x288567(0xc9)](this[_0x288567(0x133)][_0x288567(0xaf)](_0x59eaf2=>{const _0x2575dc=_0x288567;if(_0x59eaf2[_0x2575dc(0x126)]!==n['CommandType'][_0x2575dc(0xcd)]||!this['_liveShareService'][_0x2575dc(0x94)](_0x59eaf2['id']))return;let {id:_0x2d8c1b}=_0x59eaf2,_0x2be66f;if(_0xba1d4b['has'](_0x2d8c1b))_0x2be66f=_0xba1d4b[_0x2575dc(0x10b)](_0x2d8c1b)['subject'];else{_0x2be66f=new i[(_0x2575dc(0x125))]();let _0x9ca6f3=_0x2be66f[_0x2575dc(0xbf)]((0x0,a[_0x2575dc(0x102)])(this[_0x2575dc(0x12c)]['getConfig']('SAME_OPERATION_SHARE_INTERVAL')??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2575dc(0x98)](_0x3731bc=>{const _0x575873=_0x2575dc;this[_0x575873(0x8e)][_0x575873(0xd8)]({'eventID':e['CollaborationEvent'][_0x575873(0x124)],'data':{'unitID':this[_0x575873(0xc7)],'operations':{[_0x3731bc['id']]:{'id':_0x3731bc['id'],'params':JSON[_0x575873(0xd0)](_0x3731bc['params'])}}}},this['_unitID']);});_0xba1d4b[_0x2575dc(0xb8)](_0x2d8c1b,{'subject':_0x2be66f,'subscription':_0x9ca6f3});}_0x2be66f[_0x2575dc(0x103)](_0x59eaf2);})),this[_0x288567(0xdc)][_0x288567(0xc4)](this['_unitID'])[_0x288567(0xa2)](_0x5cebc6=>this[_0x288567(0x8e)][_0x288567(0xd8)]({'eventID':e['CollaborationEvent'][_0x288567(0x124)],'data':{'unitID':this[_0x288567(0xc7)],'operations':{[_0x5cebc6['id']]:{'id':_0x5cebc6['id'],'params':JSON['stringify'](_0x5cebc6[_0x288567(0xb5)])}}}},this[_0x288567(0xc7)]));}[_0x1d4cd7(0xd2)](){const _0x49d1a9=_0x1d4cd7;var _0x1455b5;this['_status$']['next']('idle'),(_0x1455b5=this[_0x49d1a9(0xa0)])==null||_0x1455b5[_0x49d1a9(0x12d)](),this[_0x49d1a9(0xa0)]=null;}['_startFollowing'](){const _0x4569e3=_0x1d4cd7;var _0x592ccd;(_0x592ccd=this['_commandDisposable'])==null||_0x592ccd['dispose'](),this[_0x4569e3(0x8a)][_0x4569e3(0x103)]('following');}['_beIdle'](){const _0x436633=_0x1d4cd7;var _0x2ca86b;this[_0x436633(0x8a)][_0x436633(0x103)](_0x436633(0x109)),(_0x2ca86b=this['_commandDisposable'])==null||_0x2ca86b[_0x436633(0x12d)](),this['_commandDisposable']=null;}[_0x1d4cd7(0xe9)](){const _0x146908=_0x1d4cd7;var _0x17e2cf;this[_0x146908(0x8a)][_0x146908(0x103)]('not-following'),(_0x17e2cf=this[_0x146908(0xa0)])==null||_0x17e2cf[_0x146908(0x12d)]();}['_handleOperation'](_0x11c831){const _0x175673=_0x1d4cd7;if([_0x175673(0x9c),_0x175673(0xcb),'offline'][_0x175673(0x122)](this[_0x175673(0x9d)])||!_0x11c831['data'][_0x175673(0xc5)]||_0x11c831[_0x175673(0xf8)][_0x175673(0xc5)]===this[_0x175673(0x8e)][_0x175673(0xf1)]())return;this['_status']===_0x175673(0x109)&&this['_startFollowing']();let _0x52a350=_0x11c831[_0x175673(0xf8)][_0x175673(0xa8)];Object['values'](_0x52a350)['forEach'](_0x4f4e59=>{const _0x57511f=_0x175673;this['_commandService'][_0x57511f(0x104)](_0x4f4e59['id'],_0x4f4e59[_0x57511f(0xb5)]?JSON[_0x57511f(0x132)](_0x4f4e59['params']):null,{'fromCollab':!0x0});});}[_0x1d4cd7(0xdf)](){const _0x4584d1=_0x1d4cd7;var _0x42db29;this[_0x4584d1(0x8a)][_0x4584d1(0x103)](_0x4584d1(0x11a)),(_0x42db29=this[_0x4584d1(0xa0)])==null||_0x42db29[_0x4584d1(0x12d)]();}['_handleOnline'](){const _0x3167ef=_0x1d4cd7;this[_0x3167ef(0x8a)][_0x3167ef(0x103)](_0x3167ef(0x109)),this[_0x3167ef(0xb7)]();}};S=y([v(0x2,n[_0x1d4cd7(0xe1)]),v(0x3,(0x0,n[_0x1d4cd7(0xd5)])(_)),v(0x4,n[_0x1d4cd7(0xee)])],S);var C=_0x1d4cd7(0xfc),w='1.0.0-beta.1';const T={};let E=class extends n[_0x1d4cd7(0x101)]{constructor(_0xe9c273){const _0x426047=_0x1d4cd7;super(),this[_0x426047(0xdc)]=_0xe9c273,this[_0x426047(0x113)]();}[_0x1d4cd7(0x113)](){const _0xe9b1c4=_0x1d4cd7;[s[_0xe9b1c4(0x90)]['id'],s[_0xe9b1c4(0xfb)]['id'],r['SetWorksheetActiveOperation']['id']][_0xe9b1c4(0xa2)](_0x4f18df=>{const _0x408c8e=_0xe9b1c4;this[_0x408c8e(0xbb)](this[_0x408c8e(0xdc)][_0x408c8e(0xef)](_0x4f18df));});}};E=y([v(0x0,(0x0,n[_0x1d4cd7(0xd5)])(_))],E);function D(){const _0x46a360=_0x1d4cd7;let _0x17544b=(0x0,c[_0x46a360(0x110)])(b),_0x2ce683=(0x0,c[_0x46a360(0x110)])(n['IUniverInstanceService']),_0x5e0dee=(0x0,c['useObservable'])(()=>_0x2ce683[_0x46a360(0xe4)](n[_0x46a360(0x11d)][_0x46a360(0xf3)]),void 0x0,!0x1,[]),_0x16e628=(0x0,c[_0x46a360(0xea)])((0x0,d['useMemo'])(()=>_0x5e0dee?(0x0,i['defer'])(()=>(0x0,i[_0x46a360(0x12b)])(_0x17544b[_0x46a360(0xdb)](_0x5e0dee[_0x46a360(0xa9)]()))):(0x0,i['of'])(null),[_0x5e0dee,_0x17544b]),null),_0x140ca2=(0x0,c[_0x46a360(0xea)])(_0x16e628?()=>_0x16e628[_0x46a360(0x10f)]:null,_0x46a360(0x109),!0x1,[_0x16e628]);return _0x16e628?(0x0,f['jsx'])(l[_0x46a360(0xc3)],{'align':_0x46a360(0x83),'disabled':_0x140ca2===_0x46a360(0x11a),'className':_0x46a360(0xf9),'overlay':(0x0,f[_0x46a360(0xbd)])(O,{'status':_0x140ca2,'coordinator':_0x16e628}),'children':(0x0,f[_0x46a360(0xbd)])(l[_0x46a360(0x107)],{'size':_0x46a360(0xc2),'variant':_0x46a360(0x8f),'disabled':_0x140ca2===_0x46a360(0x11a),'type':_0x46a360(0x87),'children':(0x0,f[_0x46a360(0xbd)])(u[_0x46a360(0xd1)],{})})}):null;}function O(_0x446147){const _0xecb3e2=_0x1d4cd7;let {status:_0x530af9,coordinator:_0x648afb}=_0x446147;switch(_0x530af9){case _0xecb3e2(0x109):return(0x0,f[_0xecb3e2(0xbd)])(k,{'coordinator':_0x648afb});case'following':return(0x0,f[_0xecb3e2(0xbd)])(A,{'coordinator':_0x648afb});case'not-following':return(0x0,f[_0xecb3e2(0xbd)])(j,{'coordinator':_0x648afb});case'offline':return(0x0,f[_0xecb3e2(0xbd)])(N,{});case _0xecb3e2(0x9c):return(0x0,f[_0xecb3e2(0xbd)])(M,{'coordinator':_0x648afb});default:return null;}}function k(_0x27e0a7){const _0x3b0358=_0x1d4cd7;let {coordinator:_0x21efe7}=_0x27e0a7;return(0x0,f[_0x3b0358(0xad)])(f[_0x3b0358(0xfe)],{'children':[(0x0,f[_0x3b0358(0xbd)])(_0x3b0358(0x11e),{'className':_0x3b0358(0x11c),'children':_0x3b0358(0xc8)}),(0x0,f[_0x3b0358(0xbd)])(l[_0x3b0358(0x107)],{'onClick':()=>_0x21efe7[_0x3b0358(0x9a)](),'children':'Start'})]});}function A(_0x53c311){const _0x5bda63=_0x1d4cd7;let {coordinator:_0x3d42ca}=_0x53c311;return(0x0,f['jsxs'])(f['Fragment'],{'children':[(0x0,f['jsx'])('div',{'className':_0x5bda63(0x11c),'children':_0x5bda63(0x128)}),(0x0,f[_0x5bda63(0xbd)])(l['Button'],{'onClick':()=>_0x3d42ca['stopFollowing'](),'children':_0x5bda63(0xcf)})]});}function j(_0x51f9d0){const _0x52c64c=_0x1d4cd7;let {coordinator:_0x5af482}=_0x51f9d0;return(0x0,f[_0x52c64c(0xad)])(f[_0x52c64c(0xfe)],{'children':[(0x0,f[_0x52c64c(0xbd)])(_0x52c64c(0x11e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x52c64c(0x95)}),(0x0,f[_0x52c64c(0xbd)])(l[_0x52c64c(0x107)],{'variant':_0x52c64c(0x8f),'onClick':()=>_0x5af482[_0x52c64c(0x99)](),'children':_0x52c64c(0x12e)})]});}function M(_0x2f305e){const _0x30197a=_0x1d4cd7;let {coordinator:_0x4fefa2}=_0x2f305e;return(0x0,f[_0x30197a(0xad)])(f[_0x30197a(0xfe)],{'children':[(0x0,f[_0x30197a(0xbd)])(_0x30197a(0x11e),{'className':_0x30197a(0x11c),'children':_0x30197a(0xac)}),(0x0,f[_0x30197a(0xbd)])(l[_0x30197a(0x107)],{'variant':_0x30197a(0xfa),'onClick':()=>_0x4fefa2['stopPresenting'](),'children':'Stop\x20presenting'})]});}function N(){const _0x11b606=_0x1d4cd7;return(0x0,f[_0x11b606(0xbd)])(f[_0x11b606(0xfe)],{'children':'You\x27are\x20offline.'});}let P=class extends n['Disposable']{constructor(_0x3f697f,_0x228510){const _0x571f58=_0x1d4cd7;super(),this[_0x571f58(0x92)]=_0x3f697f,this[_0x571f58(0xbc)]=_0x228510,this[_0x571f58(0xc1)]();}[_0x1d4cd7(0xc1)](){const _0x292312=_0x1d4cd7;this[_0x292312(0xbb)](this[_0x292312(0xbc)]['registerComponent'](c['BuiltInUIPart'][_0x292312(0xa7)],()=>(0x0,c['connectInjector'])(D,this['_injector'])));}};P=y([v(0x0,(0x0,n['Inject'])(n['Injector'])),v(0x1,c[_0x1d4cd7(0x108)])],P);let F=class extends n[_0x1d4cd7(0x9b)]{constructor(_0x215221=T,_0x351674,_0xc75ff0){const _0x57eaac=_0x1d4cd7;super(),this[_0x57eaac(0xa4)]=_0x215221,this['_injector']=_0x351674,this[_0x57eaac(0x12c)]=_0xc75ff0;let {..._0x5e5033}=(0x0,n[_0x57eaac(0x123)])({},T,this[_0x57eaac(0xa4)]);this[_0x57eaac(0x12c)][_0x57eaac(0xb9)](_0x57eaac(0xd3),_0x5e5033);}['onStarting'](){const _0x188afd=_0x1d4cd7;(0x0,n[_0x188afd(0xfd)])(this[_0x188afd(0x92)],(0x0,n['mergeOverrideWithDependencies'])([[_],[b],[E],[P]],this['_config']['override'])),(0x0,n[_0x188afd(0xae)])(this[_0x188afd(0x92)],[[E]]);}[_0x1d4cd7(0xde)](){const _0x5ab90d=_0x1d4cd7;(0x0,n[_0x5ab90d(0xae)])(this['_injector'],[[P]]);}};g(F,'type',n[_0x1d4cd7(0x11d)]['UNIVER_UNKNOWN']),g(F,_0x1d4cd7(0x127),'UNIVER_LIVE_SHARE_PLUGIN'),g(F,_0x1d4cd7(0x86),C),g(F,'version',w),F=y([(0x0,n[_0x1d4cd7(0x118)])(o[_0x1d4cd7(0xb1)],t[_0x1d4cd7(0xaa)]),v(0x1,(0x0,n[_0x1d4cd7(0xd5)])(n[_0x1d4cd7(0xf5)])),v(0x2,n[_0x1d4cd7(0xe1)])],F),Object['defineProperty'](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return b;}}),exports['LiveShareStatus']=x,Object[_0x1d4cd7(0x135)](exports,_0x1d4cd7(0xb6),{'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
+ const _0x4322b2=_0x1b40;(function(_0x1ee8bf,_0x450861){const _0x33a6de=_0x1b40,_0x1258df=_0x1ee8bf();while(!![]){try{const _0x28b2ed=-parseInt(_0x33a6de(0x116))/0x1*(parseInt(_0x33a6de(0x100))/0x2)+-parseInt(_0x33a6de(0x107))/0x3*(parseInt(_0x33a6de(0x117))/0x4)+-parseInt(_0x33a6de(0x113))/0x5+-parseInt(_0x33a6de(0x105))/0x6*(-parseInt(_0x33a6de(0xf9))/0x7)+parseInt(_0x33a6de(0xfc))/0x8*(-parseInt(_0x33a6de(0x115))/0x9)+-parseInt(_0x33a6de(0xf8))/0xa*(-parseInt(_0x33a6de(0x10b))/0xb)+parseInt(_0x33a6de(0xf7))/0xc;if(_0x28b2ed===_0x450861)break;else _0x1258df['push'](_0x1258df['shift']());}catch(_0x45114d){_0x1258df['push'](_0x1258df['shift']());}}}(_0x4520,0x7ceaa));function _0x4520(){const _0x30acd0=['_liveShareController','getLiveShareCoordinatorSync','get','No\x20active\x20workbook\x20found.','_injector','getUnitId','prototype','4107670fyFPVy','string','90HaTyei','1753MBGrlw','526728xayMUo','toPrimitive','startFollowing','25920432iZPQXP','15250gzValJ','1652CUMQgQ','default','function','407608PRnAuL','call','_initialize','getStatus','814fnkDtw','tryStartPresenting','stopPresenting','getCurrentUnitOfType','extend','22662WxyqlJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','15xXgsoE','stopFollowing','object','UNIVER_SHEET','1177uAKEQw'];_0x4520=function(){return _0x30acd0;};return _0x4520();}function _0x1b40(_0x37bec1,_0x170585){_0x37bec1=_0x37bec1-0xf7;const _0x452007=_0x4520();let _0x1b4076=_0x452007[_0x37bec1];return _0x1b4076;}import{LiveShareController as _0x5c1fb8,LiveShareStatus as _0x1e31c7}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5bb8fa,UniverInstanceType as _0x3cc333}from'@univerjs/core';import{FEnum as _0x10c23e,FUniver as _0xa8ea3}from'@univerjs/core/facade';function o(_0x4ca796){'@babel/helpers - typeof';return o=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x35af30){return typeof _0x35af30;}:function(_0xbe4c1e){const _0x3cc279=_0x1b40;return _0xbe4c1e&&typeof Symbol==_0x3cc279(0xfb)&&_0xbe4c1e['constructor']===Symbol&&_0xbe4c1e!==Symbol[_0x3cc279(0x112)]?'symbol':typeof _0xbe4c1e;},o(_0x4ca796);}function s(_0x287f4e,_0x356bd1){const _0x57aca1=_0x1b40;if(o(_0x287f4e)!=_0x57aca1(0x109)||!_0x287f4e)return _0x287f4e;var _0xf2b519=_0x287f4e[Symbol[_0x57aca1(0x118)]];if(_0xf2b519!==void 0x0){var _0x374905=_0xf2b519[_0x57aca1(0xfd)](_0x287f4e,_0x356bd1||_0x57aca1(0xfa));if(o(_0x374905)!=_0x57aca1(0x109))return _0x374905;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x356bd1==='string'?String:Number)(_0x287f4e);}function c(_0x3d611d){const _0x5e661c=_0x1b40;var _0x30b5c6=s(_0x3d611d,_0x5e661c(0x114));return o(_0x30b5c6)=='symbol'?_0x30b5c6:_0x30b5c6+'';}function l(_0x453f7b,_0x2749c5,_0x2e1943){return(_0x2749c5=c(_0x2749c5))in _0x453f7b?Object['defineProperty'](_0x453f7b,_0x2749c5,{'value':_0x2e1943,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x453f7b[_0x2749c5]=_0x2e1943,_0x453f7b;}var u=class extends _0xa8ea3{constructor(..._0x153849){const _0x53d103=_0x1b40;super(..._0x153849),l(this,_0x53d103(0x10c),void 0x0);}[_0x4322b2(0xfe)](_0xb7693b){const _0x5a92ad=_0x4322b2;this[_0x5a92ad(0x10c)]=_0xb7693b[_0x5a92ad(0x10e)](_0x5c1fb8);}['getLiveShareStatus'](){const _0x38ef1c=_0x4322b2;let _0x37fa5c=this[_0x38ef1c(0x110)][_0x38ef1c(0x10e)](_0x5bb8fa)['getCurrentUnitOfType'](_0x3cc333['UNIVER_SHEET']);if(!_0x37fa5c)throw Error(_0x38ef1c(0x10f));let _0x56a96c=_0x37fa5c[_0x38ef1c(0x111)](),_0xb0bce3=this[_0x38ef1c(0x10c)][_0x38ef1c(0x10d)](_0x56a96c);return(_0xb0bce3==null?void 0x0:_0xb0bce3[_0x38ef1c(0xff)]())??_0x1e31c7['IDLE'];}['startFollowing'](){const _0x3b0337=_0x4322b2;let _0x587509=this['_injector'][_0x3b0337(0x10e)](_0x5bb8fa)[_0x3b0337(0x103)](_0x3cc333[_0x3b0337(0x10a)]);if(!_0x587509)throw Error(_0x3b0337(0x10f));let _0x565976=_0x587509[_0x3b0337(0x111)](),_0x4b21a2=this[_0x3b0337(0x10c)][_0x3b0337(0x10d)](_0x565976);if(!_0x4b21a2)throw Error(_0x3b0337(0x106));_0x4b21a2[_0x3b0337(0x119)]();}[_0x4322b2(0x108)](){const _0x5de616=_0x4322b2;let _0x502390=this['_injector']['get'](_0x5bb8fa)[_0x5de616(0x103)](_0x3cc333[_0x5de616(0x10a)]);if(!_0x502390)throw Error(_0x5de616(0x10f));let _0x2cc10c=_0x502390[_0x5de616(0x111)](),_0x49243c=this[_0x5de616(0x10c)][_0x5de616(0x10d)](_0x2cc10c);if(!_0x49243c)throw Error(_0x5de616(0x106));_0x49243c['stopFollowing']();}['startPresenting'](){const _0x4a4365=_0x4322b2;let _0x36e1a0=this[_0x4a4365(0x110)][_0x4a4365(0x10e)](_0x5bb8fa)[_0x4a4365(0x103)](_0x3cc333[_0x4a4365(0x10a)]);if(!_0x36e1a0)throw Error('No\x20active\x20workbook\x20found.');let _0x280d08=_0x36e1a0[_0x4a4365(0x111)](),_0x4c9651=this[_0x4a4365(0x10c)]['getLiveShareCoordinatorSync'](_0x280d08);if(!_0x4c9651)throw Error(_0x4a4365(0x106));_0x4c9651[_0x4a4365(0x101)]();}[_0x4322b2(0x102)](){const _0x3a6770=_0x4322b2;let _0x276a4d=this['_injector'][_0x3a6770(0x10e)](_0x5bb8fa)[_0x3a6770(0x103)](_0x3cc333[_0x3a6770(0x10a)]);if(!_0x276a4d)throw Error(_0x3a6770(0x10f));let _0x36e0bb=_0x276a4d[_0x3a6770(0x111)](),_0x258253=this['_liveShareController'][_0x3a6770(0x10d)](_0x36e0bb);if(!_0x258253)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x258253[_0x3a6770(0x102)]();}};_0xa8ea3['extend'](u);var d=class extends _0x10c23e{get['LiveShareStatusEnum'](){return _0x1e31c7;}};_0x10c23e[_0x4322b2(0x104)](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 _0x118c75=_0x3c00;(function(_0x2ed377,_0x1fde15){const _0xe63431=_0x3c00,_0xb8810f=_0x2ed377();while(!![]){try{const _0x22a862=parseInt(_0xe63431(0x1be))/0x1*(parseInt(_0xe63431(0x1c4))/0x2)+parseInt(_0xe63431(0x20e))/0x3*(parseInt(_0xe63431(0x20c))/0x4)+-parseInt(_0xe63431(0x1e1))/0x5+-parseInt(_0xe63431(0x21b))/0x6*(-parseInt(_0xe63431(0x207))/0x7)+-parseInt(_0xe63431(0x1d6))/0x8*(parseInt(_0xe63431(0x1e8))/0x9)+parseInt(_0xe63431(0x21f))/0xa*(-parseInt(_0xe63431(0x1e4))/0xb)+parseInt(_0xe63431(0x214))/0xc;if(_0x22a862===_0x1fde15)break;else _0xb8810f['push'](_0xb8810f['shift']());}catch(_0x17082c){_0xb8810f['push'](_0xb8810f['shift']());}}}(_0x2f40,0xe4c77));import{CollaborationEvent as _0x46322a,parseProtocolChangeset as _0x4891b9}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xd12c30,SessionStatus as _0x45501e,UniverCollaborationClientPlugin as _0xede79f}from'@univerjs-pro/collaboration-client';function _0x2f40(){const _0x247cce=['_commandService','_unitID','NEW_CHANGESETS','getLiveShareCoordinator','6477308sSLVfO','shouldShareOperation','3fZbAcj','live-share.config','symbol','onCommandExecuted','LIVESHARE_REQUEST_HOST','unsubscribe','44528100pFvfZW','tryStartPresenting','_handleTerminate','_startLiveShareCoordinator','_handleOnline','idle','_status$','24iREWbg','not-following','_status','HEADER_MENU','4890eNpxju','setConfig','disposeWithMe','executeCommand','getUnitId','requireSession','_startPresenting','stopPresenting','_sharedOperations','pipe','_handleNewChangeSets','add','Start','onStarting','data','SAME_OPERATION_SHARE_INTERVAL','includes','parse','unit','You\x27re\x20following\x20the\x20presenter','object','_univerInstanceService','getLiveShareCoordinatorSync','next','send','button','_collabSessionService','event$','_entities','decorate','unitId','pluginName','LIVESHARE_FETCH_OPERATIONS','icon','packageName','set','offline','default','constructor','defineProperty','Start\x20following','registerSharedOperation','_fetchOperations','_handleNewHost','startFollowing','PRESENTING','getValue','_startFollowing','div','presenting','dispose','_stopFollowing','You\x27are\x20offline.','2RhqXJE','status$','_handleOffline','UNIVER_LIVE_SHARE_PLUGIN','end','createInstance','25932MQpzvA','stopFollowing','version','_mountLiveShare','getInitialStates','_configService','toPrimitive','stringify','text','NOT_FOLLOWING','subject','1.0.0-beta.1','getMemberID','getOwnPropertyDescriptor','delete','following','values','prototype','16aOPvlT','has','_presenter','type','function','clear','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','length','ONLINE','8125480uEBroc','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','_reporters','31273XeyNHT','call','You\x27re\x20not\x20following\x20the\x20presenter','_commandDisposable','6920658BZKDQR','forEach','LIVESHARE_OPERATION','_stopPresenting','_config','_beIdle','OPERATION','OFFLINE','IDLE','_liveShareService','params','sheet','find','get','subscribe','registerComponent','string','_uiPartsService','dispose$','_collabSession','UNIVER_SHEET','map','Present\x20this\x20document','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','presenter','onRendered','_init','@univerjs-pro/live-share','asObservable','complete','235186jrkVRz'];_0x2f40=function(){return _0x247cce;};return _0x2f40();}import{CommandType as _0x38266c,DependentOn as _0x2604e4,Disposable as _0x13da97,DisposableCollection as _0xdc1a5d,ICommandService as _0x80bf63,IConfigService as _0x5c1bab,IUniverInstanceService as _0x16046f,Inject as _0x1ac1b0,Injector as _0x55cef5,Plugin as _0x5bf3c2,RxDisposable as _0x182266,UniverInstanceType as _0x2d0216,merge as _0x478986,mergeOverrideWithDependencies as _0x3b8a2b,registerDependencies as _0x1c2a87,toDisposable as _0x5d8ba3,touchDependencies as _0x3ea51e}from'@univerjs/core';import{InsertSheetMutation as _0x1f4399,SetWorksheetActiveOperation as _0x17c25c}from'@univerjs/sheets';import{BehaviorSubject as _0x76a724,Subject as _0xfcc829,defer as _0x40e277,from as _0x1cd9bb,of as _0x790f65}from'rxjs';import{takeUntil as _0x39b47c,throttleTime as _0x4f4c40}from'rxjs/operators';import{UniverLicensePlugin as _0x79063d}from'@univerjs-pro/license';import{SetScrollOperation as _0x28a702,SetZoomRatioOperation as _0x18599f}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x114d37,IUIPartsService as _0x16b944,connectInjector as _0x2e41a9,useDependency as _0x1f8911,useObservable as _0x4af8a4}from'@univerjs/ui';import{Button as _0x35232c,Dropdown as _0x555807}from'@univerjs/design';import{LiveShareIcon as _0x282424}from'@univerjs/icons';import{useMemo as _0x5c3a44}from'react';import{Fragment as _0x3095de,jsx as _0x16217f,jsxs as _0x3e860c}from'react/jsx-runtime';function z(_0x57b603){'@babel/helpers - typeof';const _0x1b56bc=_0x3c00;return z=typeof Symbol==_0x1b56bc(0x1da)&&typeof Symbol['iterator']=='symbol'?function(_0x6ae79){return typeof _0x6ae79;}:function(_0x15eae0){const _0x102585=_0x1b56bc;return _0x15eae0&&typeof Symbol==_0x102585(0x1da)&&_0x15eae0[_0x102585(0x1af)]===Symbol&&_0x15eae0!==Symbol[_0x102585(0x1d5)]?_0x102585(0x210):typeof _0x15eae0;},z(_0x57b603);}function B(_0x123ae4,_0x486a0d){const _0x2ce451=_0x3c00;if(z(_0x123ae4)!=_0x2ce451(0x19d)||!_0x123ae4)return _0x123ae4;var _0x59d8de=_0x123ae4[Symbol[_0x2ce451(0x1ca)]];if(_0x59d8de!==void 0x0){var _0x5a901c=_0x59d8de[_0x2ce451(0x1e5)](_0x123ae4,_0x486a0d||_0x2ce451(0x1ae));if(z(_0x5a901c)!=_0x2ce451(0x19d))return _0x5a901c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x486a0d==='string'?String:Number)(_0x123ae4);}function V(_0x3b547e){const _0x5f3208=_0x3c00;var _0x4ba0ca=B(_0x3b547e,_0x5f3208(0x1f8));return z(_0x4ba0ca)==_0x5f3208(0x210)?_0x4ba0ca:_0x4ba0ca+'';}function H(_0x57dc05,_0x2476ce,_0x2dde76){const _0x3ce622=_0x3c00;return(_0x2476ce=V(_0x2476ce))in _0x57dc05?Object[_0x3ce622(0x1b0)](_0x57dc05,_0x2476ce,{'value':_0x2dde76,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57dc05[_0x2476ce]=_0x2dde76,_0x57dc05;}var U=class extends _0x13da97{constructor(..._0x5d4c54){const _0x38148f=_0x3c00;super(..._0x5d4c54),H(this,_0x38148f(0x191),new Set()),H(this,_0x38148f(0x1e3),new Set());}[_0x118c75(0x1b2)](_0xe4a963){const _0x3f8848=_0x118c75;return this[_0x3f8848(0x191)][_0x3f8848(0x194)](_0xe4a963),_0x5d8ba3(()=>this[_0x3f8848(0x191)][_0x3f8848(0x1d2)](_0xe4a963));}['registerInitialStateReporter'](_0x594763){const _0x60a730=_0x118c75;return this[_0x60a730(0x1e3)][_0x60a730(0x194)](_0x594763),_0x5d8ba3(()=>this['_reporters'][_0x60a730(0x1d2)](_0x594763));}['shouldShareOperation'](_0x4997db){const _0x15f0f0=_0x118c75;return this[_0x15f0f0(0x191)][_0x15f0f0(0x1d7)](_0x4997db);}[_0x118c75(0x1c8)](_0x2868d9){const _0x57c26e=_0x118c75;return Array['from'](this['_reporters'])[_0x57c26e(0x1fd)](_0x59d607=>_0x59d607(_0x2868d9));}};function W(_0x5b8103,_0x4d870e){return function(_0x218572,_0x24dd90){_0x4d870e(_0x218572,_0x24dd90,_0x5b8103);};}function G(_0xe6cc7c,_0x39c719,_0x1c3de7,_0x29fcd1){const _0x5a1f5a=_0x118c75;var _0x5d2617=arguments['length'],_0x456d06=_0x5d2617<0x3?_0x39c719:_0x29fcd1===null?_0x29fcd1=Object[_0x5a1f5a(0x1d1)](_0x39c719,_0x1c3de7):_0x29fcd1,_0x46059b;if(typeof Reflect==_0x5a1f5a(0x19d)&&typeof Reflect[_0x5a1f5a(0x1a6)]=='function')_0x456d06=Reflect[_0x5a1f5a(0x1a6)](_0xe6cc7c,_0x39c719,_0x1c3de7,_0x29fcd1);else{for(var _0x40e2de=_0xe6cc7c[_0x5a1f5a(0x1df)]-0x1;_0x40e2de>=0x0;_0x40e2de--)(_0x46059b=_0xe6cc7c[_0x40e2de])&&(_0x456d06=(_0x5d2617<0x3?_0x46059b(_0x456d06):_0x5d2617>0x3?_0x46059b(_0x39c719,_0x1c3de7,_0x456d06):_0x46059b(_0x39c719,_0x1c3de7))||_0x456d06);}return _0x5d2617>0x3&&_0x456d06&&Object['defineProperty'](_0x39c719,_0x1c3de7,_0x456d06),_0x456d06;}let K=class extends _0x182266{constructor(_0x353b3a,_0xf786e5,_0x261067){const _0x2bd198=_0x118c75;super(),this[_0x2bd198(0x19e)]=_0x353b3a,this[_0x2bd198(0x1de)]=_0xf786e5,this[_0x2bd198(0x1a3)]=_0x261067,H(this,_0x2bd198(0x1a5),new Map()),this['_init']();}async[_0x118c75(0x20b)](_0x4e4668){const _0x384389=_0x118c75;return this[_0x384389(0x1a5)][_0x384389(0x1d7)](_0x4e4668)||await this[_0x384389(0x217)](_0x4e4668),this[_0x384389(0x1a5)][_0x384389(0x1f5)](_0x4e4668);}[_0x118c75(0x19f)](_0xc279a){const _0x111129=_0x118c75;return this['_entities'][_0x111129(0x1f5)](_0xc279a)??null;}[_0x118c75(0x203)](){const _0x53622a=_0x118c75;this[_0x53622a(0x19e)]['getTypeOfUnitAdded$'](_0x2d0216[_0x53622a(0x1fc)])[_0x53622a(0x192)](_0x39b47c(this[_0x53622a(0x1fa)]))[_0x53622a(0x1f6)](async _0x1ce34f=>{const _0xce2f89=_0x53622a;let _0x5f5adb=_0x1ce34f[_0xce2f89(0x19b)][_0xce2f89(0x18d)]();this[_0xce2f89(0x1a5)]['has'](_0x5f5adb)||this[_0xce2f89(0x217)](_0x5f5adb);}),this[_0x53622a(0x19e)][_0x53622a(0x200)](_0x2d0216[_0x53622a(0x1fc)])[_0x53622a(0x192)](_0x39b47c(this[_0x53622a(0x1fa)]))['subscribe'](_0x31a119=>{const _0x25d851=_0x53622a;let _0x4bb995=_0x31a119[_0x25d851(0x18d)](),_0x5c8224=this[_0x25d851(0x1a5)]['get'](_0x4bb995);_0x5c8224==null||_0x5c8224['dispose']();});}async[_0x118c75(0x217)](_0x97a771){const _0x2395bd=_0x118c75;let _0xb42235=await this[_0x2395bd(0x1a3)][_0x2395bd(0x18e)](_0x97a771),_0x4a069c=this[_0x2395bd(0x1de)][_0x2395bd(0x1c3)](J,_0x97a771,_0xb42235);return _0x4a069c['init'](),this[_0x2395bd(0x1a5)][_0x2395bd(0x1ac)](_0x97a771,_0x4a069c),_0x4a069c;}};K=G([W(0x0,_0x16046f),W(0x1,_0x1ac1b0(_0x55cef5)),W(0x2,_0x1ac1b0(_0xd12c30))],K);let q=function(_0x2f8f05){const _0x478b75=_0x118c75;return _0x2f8f05['OFFLINE']=_0x478b75(0x1ad),_0x2f8f05[_0x478b75(0x1f0)]='idle',_0x2f8f05['FOLLOWING']=_0x478b75(0x1d3),_0x2f8f05[_0x478b75(0x1cd)]=_0x478b75(0x21c),_0x2f8f05[_0x478b75(0x1b6)]='presenting',_0x2f8f05;}({}),J=class extends _0x182266{get['_status'](){const _0xb10919=_0x118c75;return this[_0xb10919(0x21a)][_0xb10919(0x1b7)]();}constructor(_0x53de23,_0x22eaa0,_0x3662a0,_0x1c2fea,_0x57a328){const _0x5a3b24=_0x118c75;super(),this[_0x5a3b24(0x209)]=_0x53de23,this[_0x5a3b24(0x1fb)]=_0x22eaa0,this[_0x5a3b24(0x1c9)]=_0x3662a0,this['_liveShareService']=_0x1c2fea,this['_commandService']=_0x57a328,H(this,_0x5a3b24(0x21a),new _0x76a724('idle')),H(this,_0x5a3b24(0x1bf),this[_0x5a3b24(0x21a)][_0x5a3b24(0x205)]()),H(this,_0x5a3b24(0x203),!0x1),H(this,_0x5a3b24(0x1e7),null),H(this,_0x5a3b24(0x1d8),null);}['dispose'](){const _0x59f705=_0x118c75;var _0x51f78b;(_0x51f78b=this[_0x59f705(0x1e7)])==null||_0x51f78b[_0x59f705(0x1bb)](),this[_0x59f705(0x21a)][_0x59f705(0x1a0)](_0x59f705(0x219)),this[_0x59f705(0x21a)][_0x59f705(0x206)]();}['getStatus'](){const _0x58d8c2=_0x118c75;return this[_0x58d8c2(0x21d)];}['init'](){const _0x103f9f=_0x118c75;this[_0x103f9f(0x203)]||(this['_init']=!0x0,this[_0x103f9f(0x1fb)]['sessionStatus$']['pipe'](_0x39b47c(this[_0x103f9f(0x1fa)]))[_0x103f9f(0x1f6)](_0x5d2e0c=>{const _0x5081cc=_0x103f9f;switch(_0x5d2e0c){case _0x45501e[_0x5081cc(0x1ef)]:this[_0x5081cc(0x1c0)]();break;case _0x45501e[_0x5081cc(0x1e0)]:this[_0x5081cc(0x218)]();break;default:}}),this[_0x103f9f(0x1fb)][_0x103f9f(0x1a4)][_0x103f9f(0x192)](_0x39b47c(this['dispose$']))['subscribe'](_0x3605dc=>{const _0x5d5062=_0x103f9f;let {eventID:_0x18435e}=_0x3605dc;switch(_0x18435e){case _0x46322a['LIVESHARE_NEW_HOST']:this[_0x5d5062(0x1b4)](_0x3605dc);break;case _0x46322a[_0x5d5062(0x1ea)]:this['_handleOperation'](_0x3605dc);break;case _0x46322a['LIVESHARE_TERMINATE']:this[_0x5d5062(0x216)]();break;case _0x46322a[_0x5d5062(0x20a)]:this[_0x5d5062(0x193)](_0x3605dc);break;default:}}));}[_0x118c75(0x215)](){const _0x4e13ac=_0x118c75;this['_collabSession'][_0x4e13ac(0x1a1)]({'eventID':_0x46322a[_0x4e13ac(0x212)],'data':{'unitID':this[_0x4e13ac(0x209)],'userID':this[_0x4e13ac(0x1fb)][_0x4e13ac(0x1d0)]()}},this[_0x4e13ac(0x209)]);}[_0x118c75(0x190)](){const _0x38c7cc=_0x118c75;this['_status']==='presenting'&&(this[_0x38c7cc(0x21a)][_0x38c7cc(0x1a0)](_0x38c7cc(0x219)),this['_collabSession'][_0x38c7cc(0x1a1)]({'eventID':_0x46322a['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x38c7cc(0x209)]}},this[_0x38c7cc(0x209)]));}[_0x118c75(0x1b5)](){const _0x4a1479=_0x118c75;this[_0x4a1479(0x21d)]===_0x4a1479(0x21c)&&(this[_0x4a1479(0x21a)]['next']('following'),this[_0x4a1479(0x1b8)]());}['stopFollowing'](){const _0x48fe21=_0x118c75;this[_0x48fe21(0x21d)]===_0x48fe21(0x1d3)&&this['_stopFollowing']();}[_0x118c75(0x1b4)](_0x29e96e){const _0x97b7b6=_0x118c75;let {presenter:_0x1076f7}=_0x29e96e[_0x97b7b6(0x197)],_0x3d12f2=this[_0x97b7b6(0x1fb)][_0x97b7b6(0x1d0)]();this[_0x97b7b6(0x1d8)]=_0x1076f7,_0x1076f7===_0x3d12f2?(this[_0x97b7b6(0x1bc)](),this[_0x97b7b6(0x18f)]()):this[_0x97b7b6(0x21d)]!=='not-following'&&(this[_0x97b7b6(0x1eb)](),this[_0x97b7b6(0x1b8)]());}[_0x118c75(0x1b3)](){const _0x45cf97=_0x118c75;let _0x18cf87={'eventID':_0x46322a[_0x45cf97(0x1a9)]};this[_0x45cf97(0x1fb)][_0x45cf97(0x1a1)](_0x18cf87,this['_unitID']);}[_0x118c75(0x216)](){const _0x2d560d=_0x118c75;this['_presenter']=null,this['_status']!==_0x2d560d(0x1ba)&&this[_0x2d560d(0x1ed)]();}[_0x118c75(0x193)](_0x57c8fb){const _0x53788d=_0x118c75;if(this['_status']===_0x53788d(0x1d3)&&this[_0x53788d(0x1d8)]===_0x57c8fb[_0x53788d(0x197)]['memberID']){let _0x23f42e=_0x4891b9(_0x57c8fb[_0x53788d(0x197)])['mutations']['reverse']()[_0x53788d(0x1f4)](_0x4cc3ee=>_0x4cc3ee['id']===_0x1f4399['id']);if(_0x23f42e){let _0x4a7af4=_0x23f42e[_0x53788d(0x1f2)][_0x53788d(0x1a7)],_0x4bb8de=_0x23f42e[_0x53788d(0x1f2)][_0x53788d(0x1f3)]['id'];setTimeout(()=>{const _0xe63a36=_0x53788d;this[_0xe63a36(0x208)][_0xe63a36(0x18c)](_0x17c25c['id'],{'unitId':_0x4a7af4,'subUnitId':_0x4bb8de},{'fromCollab':!0x0});});}}}[_0x118c75(0x18f)](){const _0x2e1a86=_0x118c75;var _0x50fc0d;(_0x50fc0d=this[_0x2e1a86(0x1e7)])==null||_0x50fc0d['dispose'](),this[_0x2e1a86(0x21a)][_0x2e1a86(0x1a0)](_0x2e1a86(0x1ba));let _0x4882f2=new Map(),_0x6844c9=this[_0x2e1a86(0x1e7)]=new _0xdc1a5d();_0x6844c9[_0x2e1a86(0x194)](_0x5d8ba3(()=>{const _0x40bb9e=_0x2e1a86;_0x4882f2['forEach'](({subject:_0xc57b6b,subscription:_0xc477bd})=>{const _0x1556b5=_0x3c00;_0xc477bd[_0x1556b5(0x213)](),_0xc57b6b[_0x1556b5(0x206)]();}),_0x4882f2[_0x40bb9e(0x1db)]();})),_0x6844c9['add'](this[_0x2e1a86(0x208)][_0x2e1a86(0x211)](_0x17250f=>{const _0x1a7ea1=_0x2e1a86;if(_0x17250f[_0x1a7ea1(0x1d9)]!==_0x38266c[_0x1a7ea1(0x1ee)]||!this['_liveShareService'][_0x1a7ea1(0x20d)](_0x17250f['id']))return;let {id:_0x16a6a9}=_0x17250f,_0x173638;if(_0x4882f2['has'](_0x16a6a9))_0x173638=_0x4882f2[_0x1a7ea1(0x1f5)](_0x16a6a9)[_0x1a7ea1(0x1ce)];else{_0x173638=new _0xfcc829();let _0x2302bc=_0x173638['pipe'](_0x4f4c40(this[_0x1a7ea1(0x1c9)]['getConfig'](_0x1a7ea1(0x198))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1a7ea1(0x1f6)](_0x2fdc12=>{const _0x1eb2ba=_0x1a7ea1;this['_collabSession'][_0x1eb2ba(0x1a1)]({'eventID':_0x46322a[_0x1eb2ba(0x1ea)],'data':{'unitID':this[_0x1eb2ba(0x209)],'operations':{[_0x2fdc12['id']]:{'id':_0x2fdc12['id'],'params':JSON[_0x1eb2ba(0x1cb)](_0x2fdc12['params'])}}}},this[_0x1eb2ba(0x209)]);});_0x4882f2[_0x1a7ea1(0x1ac)](_0x16a6a9,{'subject':_0x173638,'subscription':_0x2302bc});}_0x173638[_0x1a7ea1(0x1a0)](_0x17250f);})),this[_0x2e1a86(0x1f1)][_0x2e1a86(0x1c8)](this['_unitID'])[_0x2e1a86(0x1e9)](_0x1680cf=>this[_0x2e1a86(0x1fb)]['send']({'eventID':_0x46322a[_0x2e1a86(0x1ea)],'data':{'unitID':this[_0x2e1a86(0x209)],'operations':{[_0x1680cf['id']]:{'id':_0x1680cf['id'],'params':JSON['stringify'](_0x1680cf[_0x2e1a86(0x1f2)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x5df58f=_0x118c75;var _0x4e9fc2;this[_0x5df58f(0x21a)][_0x5df58f(0x1a0)](_0x5df58f(0x219)),(_0x4e9fc2=this[_0x5df58f(0x1e7)])==null||_0x4e9fc2[_0x5df58f(0x1bb)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x292a57=_0x118c75;var _0x5d3bc7;(_0x5d3bc7=this[_0x292a57(0x1e7)])==null||_0x5d3bc7[_0x292a57(0x1bb)](),this[_0x292a57(0x21a)][_0x292a57(0x1a0)](_0x292a57(0x1d3));}[_0x118c75(0x1ed)](){const _0x4b1877=_0x118c75;var _0x259c08;this[_0x4b1877(0x21a)][_0x4b1877(0x1a0)](_0x4b1877(0x219)),(_0x259c08=this['_commandDisposable'])==null||_0x259c08[_0x4b1877(0x1bb)](),this[_0x4b1877(0x1e7)]=null;}[_0x118c75(0x1bc)](){const _0x90c015=_0x118c75;var _0x3c75c9;this[_0x90c015(0x21a)][_0x90c015(0x1a0)]('not-following'),(_0x3c75c9=this[_0x90c015(0x1e7)])==null||_0x3c75c9[_0x90c015(0x1bb)]();}[_0x118c75(0x1dc)](_0x19392d){const _0x520651=_0x118c75;if([_0x520651(0x1ba),'not-following',_0x520651(0x1ad)][_0x520651(0x199)](this[_0x520651(0x21d)])||!_0x19392d[_0x520651(0x197)][_0x520651(0x201)]||_0x19392d[_0x520651(0x197)]['presenter']===this[_0x520651(0x1fb)][_0x520651(0x1d0)]())return;this[_0x520651(0x21d)]==='idle'&&this[_0x520651(0x1b8)]();let _0x9ab314=_0x19392d[_0x520651(0x197)]['operations'];Object[_0x520651(0x1d4)](_0x9ab314)[_0x520651(0x1e9)](_0x37f9eb=>{const _0x35bc10=_0x520651;this[_0x35bc10(0x208)][_0x35bc10(0x18c)](_0x37f9eb['id'],_0x37f9eb[_0x35bc10(0x1f2)]?JSON[_0x35bc10(0x19a)](_0x37f9eb['params']):null,{'fromCollab':!0x0});});}[_0x118c75(0x1c0)](){const _0x106bd4=_0x118c75;var _0x44acb2;this[_0x106bd4(0x21a)]['next'](_0x106bd4(0x1ad)),(_0x44acb2=this['_commandDisposable'])==null||_0x44acb2[_0x106bd4(0x1bb)]();}[_0x118c75(0x218)](){const _0x3475c5=_0x118c75;this['_status$']['next'](_0x3475c5(0x219)),this[_0x3475c5(0x1b3)]();}};J=G([W(0x2,_0x5c1bab),W(0x3,_0x1ac1b0(U)),W(0x4,_0x80bf63)],J);var se=_0x118c75(0x204),ce=_0x118c75(0x1cf);const Y={};let X=class extends _0x13da97{constructor(_0x357380){const _0x22ff77=_0x118c75;super(),this[_0x22ff77(0x1f1)]=_0x357380,this[_0x22ff77(0x203)]();}[_0x118c75(0x203)](){const _0x5b9b36=_0x118c75;[_0x18599f['id'],_0x28a702['id'],_0x17c25c['id']][_0x5b9b36(0x1e9)](_0x375151=>{const _0x3f4c25=_0x5b9b36;this[_0x3f4c25(0x18b)](this[_0x3f4c25(0x1f1)][_0x3f4c25(0x1b2)](_0x375151));});}};X=G([W(0x0,_0x1ac1b0(U))],X);function Z(){const _0x1008e5=_0x118c75;let _0x199012=_0x1f8911(K),_0x57be61=_0x1f8911(_0x16046f),_0x382d76=_0x4af8a4(()=>_0x57be61['getCurrentTypeOfUnit$'](_0x2d0216['UNIVER_SHEET']),void 0x0,!0x1,[]),_0x4b93b5=_0x4af8a4(_0x5c3a44(()=>_0x382d76?_0x40e277(()=>_0x1cd9bb(_0x199012[_0x1008e5(0x20b)](_0x382d76['getUnitId']()))):_0x790f65(null),[_0x382d76,_0x199012]),null),_0x1a02d4=_0x4af8a4(_0x4b93b5?()=>_0x4b93b5[_0x1008e5(0x1bf)]:null,_0x1008e5(0x219),!0x1,[_0x4b93b5]);return _0x4b93b5?_0x16217f(_0x555807,{'align':_0x1008e5(0x1c2),'disabled':_0x1a02d4===_0x1008e5(0x1ad),'className':_0x1008e5(0x1e2),'overlay':_0x16217f(le,{'status':_0x1a02d4,'coordinator':_0x4b93b5}),'children':_0x16217f(_0x35232c,{'size':_0x1008e5(0x1aa),'variant':_0x1008e5(0x1cc),'disabled':_0x1a02d4==='offline','type':_0x1008e5(0x1a2),'children':_0x16217f(_0x282424,{})})}):null;}function le(_0x3e65ea){const _0x5e0dc5=_0x118c75;let {status:_0x314f8f,coordinator:_0x4c3bf2}=_0x3e65ea;switch(_0x314f8f){case _0x5e0dc5(0x219):return _0x16217f(ue,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x1d3):return _0x16217f(de,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x21c):return _0x16217f(fe,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x1ad):return _0x16217f(me,{});case _0x5e0dc5(0x1ba):return _0x16217f(pe,{'coordinator':_0x4c3bf2});default:return null;}}function ue(_0x58f3a6){const _0x2682bf=_0x118c75;let {coordinator:_0x1a4dcb}=_0x58f3a6;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':_0x2682bf(0x1dd),'children':_0x2682bf(0x1fe)}),_0x16217f(_0x35232c,{'onClick':()=>_0x1a4dcb[_0x2682bf(0x215)](),'children':_0x2682bf(0x195)})]});}function _0x3c00(_0x13de16,_0x309232){_0x13de16=_0x13de16-0x18b;const _0x2f403c=_0x2f40();let _0x3c0072=_0x2f403c[_0x13de16];return _0x3c0072;}function de(_0x246a7a){const _0x5efa58=_0x118c75;let {coordinator:_0x241853}=_0x246a7a;return _0x3e860c(_0x3095de,{'children':[_0x16217f(_0x5efa58(0x1b9),{'className':_0x5efa58(0x1dd),'children':_0x5efa58(0x19c)}),_0x16217f(_0x35232c,{'onClick':()=>_0x241853[_0x5efa58(0x1c5)](),'children':'Stop\x20following'})]});}function fe(_0x350c61){const _0x14d18c=_0x118c75;let {coordinator:_0x28927d}=_0x350c61;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':_0x14d18c(0x1dd),'children':_0x14d18c(0x1e6)}),_0x16217f(_0x35232c,{'variant':_0x14d18c(0x1cc),'onClick':()=>_0x28927d['startFollowing'](),'children':_0x14d18c(0x1b1)})]});}function pe(_0x3bbf4d){const _0x329425=_0x118c75;let {coordinator:_0x2386af}=_0x3bbf4d;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x16217f(_0x35232c,{'variant':_0x329425(0x1ae),'onClick':()=>_0x2386af['stopPresenting'](),'children':'Stop\x20presenting'})]});}function me(){const _0x1ccab9=_0x118c75;return _0x16217f(_0x3095de,{'children':_0x1ccab9(0x1bd)});}let Q=class extends _0x13da97{constructor(_0x5a81f3,_0x1e2566){const _0x559956=_0x118c75;super(),this['_injector']=_0x5a81f3,this[_0x559956(0x1f9)]=_0x1e2566,this['_mountLiveShare']();}[_0x118c75(0x1c7)](){const _0x4bda5a=_0x118c75;this[_0x4bda5a(0x18b)](this[_0x4bda5a(0x1f9)][_0x4bda5a(0x1f7)](_0x114d37[_0x4bda5a(0x21e)],()=>_0x2e41a9(Z,this[_0x4bda5a(0x1de)])));}};Q=G([W(0x0,_0x1ac1b0(_0x55cef5)),W(0x1,_0x16b944)],Q);let $=class extends _0x5bf3c2{constructor(_0x3e777b=Y,_0x36674c,_0x41bd1e){const _0x49f451=_0x118c75;super(),this['_config']=_0x3e777b,this[_0x49f451(0x1de)]=_0x36674c,this[_0x49f451(0x1c9)]=_0x41bd1e;let {..._0x4e3050}=_0x478986({},Y,this[_0x49f451(0x1ec)]);this['_configService'][_0x49f451(0x220)](_0x49f451(0x20f),_0x4e3050);}[_0x118c75(0x196)](){const _0x1ec53f=_0x118c75;_0x1c2a87(this[_0x1ec53f(0x1de)],_0x3b8a2b([[U],[K],[X],[Q]],this[_0x1ec53f(0x1ec)]['override'])),_0x3ea51e(this[_0x1ec53f(0x1de)],[[X]]);}[_0x118c75(0x202)](){const _0x2fc629=_0x118c75;_0x3ea51e(this[_0x2fc629(0x1de)],[[Q]]);}};H($,_0x118c75(0x1d9),_0x2d0216[_0x118c75(0x1ff)]),H($,_0x118c75(0x1a8),_0x118c75(0x1c1)),H($,_0x118c75(0x1ab),se),H($,_0x118c75(0x1c6),ce),$=G([_0x2604e4(_0x79063d,_0xede79f),W(0x1,_0x1ac1b0(_0x55cef5)),W(0x2,_0x5c1bab)],$);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
+ const _0x4322b2=_0x1b40;(function(_0x1ee8bf,_0x450861){const _0x33a6de=_0x1b40,_0x1258df=_0x1ee8bf();while(!![]){try{const _0x28b2ed=-parseInt(_0x33a6de(0x116))/0x1*(parseInt(_0x33a6de(0x100))/0x2)+-parseInt(_0x33a6de(0x107))/0x3*(parseInt(_0x33a6de(0x117))/0x4)+-parseInt(_0x33a6de(0x113))/0x5+-parseInt(_0x33a6de(0x105))/0x6*(-parseInt(_0x33a6de(0xf9))/0x7)+parseInt(_0x33a6de(0xfc))/0x8*(-parseInt(_0x33a6de(0x115))/0x9)+-parseInt(_0x33a6de(0xf8))/0xa*(-parseInt(_0x33a6de(0x10b))/0xb)+parseInt(_0x33a6de(0xf7))/0xc;if(_0x28b2ed===_0x450861)break;else _0x1258df['push'](_0x1258df['shift']());}catch(_0x45114d){_0x1258df['push'](_0x1258df['shift']());}}}(_0x4520,0x7ceaa));function _0x4520(){const _0x30acd0=['_liveShareController','getLiveShareCoordinatorSync','get','No\x20active\x20workbook\x20found.','_injector','getUnitId','prototype','4107670fyFPVy','string','90HaTyei','1753MBGrlw','526728xayMUo','toPrimitive','startFollowing','25920432iZPQXP','15250gzValJ','1652CUMQgQ','default','function','407608PRnAuL','call','_initialize','getStatus','814fnkDtw','tryStartPresenting','stopPresenting','getCurrentUnitOfType','extend','22662WxyqlJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','15xXgsoE','stopFollowing','object','UNIVER_SHEET','1177uAKEQw'];_0x4520=function(){return _0x30acd0;};return _0x4520();}function _0x1b40(_0x37bec1,_0x170585){_0x37bec1=_0x37bec1-0xf7;const _0x452007=_0x4520();let _0x1b4076=_0x452007[_0x37bec1];return _0x1b4076;}import{LiveShareController as _0x5c1fb8,LiveShareStatus as _0x1e31c7}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5bb8fa,UniverInstanceType as _0x3cc333}from'@univerjs/core';import{FEnum as _0x10c23e,FUniver as _0xa8ea3}from'@univerjs/core/facade';function o(_0x4ca796){'@babel/helpers - typeof';return o=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x35af30){return typeof _0x35af30;}:function(_0xbe4c1e){const _0x3cc279=_0x1b40;return _0xbe4c1e&&typeof Symbol==_0x3cc279(0xfb)&&_0xbe4c1e['constructor']===Symbol&&_0xbe4c1e!==Symbol[_0x3cc279(0x112)]?'symbol':typeof _0xbe4c1e;},o(_0x4ca796);}function s(_0x287f4e,_0x356bd1){const _0x57aca1=_0x1b40;if(o(_0x287f4e)!=_0x57aca1(0x109)||!_0x287f4e)return _0x287f4e;var _0xf2b519=_0x287f4e[Symbol[_0x57aca1(0x118)]];if(_0xf2b519!==void 0x0){var _0x374905=_0xf2b519[_0x57aca1(0xfd)](_0x287f4e,_0x356bd1||_0x57aca1(0xfa));if(o(_0x374905)!=_0x57aca1(0x109))return _0x374905;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x356bd1==='string'?String:Number)(_0x287f4e);}function c(_0x3d611d){const _0x5e661c=_0x1b40;var _0x30b5c6=s(_0x3d611d,_0x5e661c(0x114));return o(_0x30b5c6)=='symbol'?_0x30b5c6:_0x30b5c6+'';}function l(_0x453f7b,_0x2749c5,_0x2e1943){return(_0x2749c5=c(_0x2749c5))in _0x453f7b?Object['defineProperty'](_0x453f7b,_0x2749c5,{'value':_0x2e1943,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x453f7b[_0x2749c5]=_0x2e1943,_0x453f7b;}var u=class extends _0xa8ea3{constructor(..._0x153849){const _0x53d103=_0x1b40;super(..._0x153849),l(this,_0x53d103(0x10c),void 0x0);}[_0x4322b2(0xfe)](_0xb7693b){const _0x5a92ad=_0x4322b2;this[_0x5a92ad(0x10c)]=_0xb7693b[_0x5a92ad(0x10e)](_0x5c1fb8);}['getLiveShareStatus'](){const _0x38ef1c=_0x4322b2;let _0x37fa5c=this[_0x38ef1c(0x110)][_0x38ef1c(0x10e)](_0x5bb8fa)['getCurrentUnitOfType'](_0x3cc333['UNIVER_SHEET']);if(!_0x37fa5c)throw Error(_0x38ef1c(0x10f));let _0x56a96c=_0x37fa5c[_0x38ef1c(0x111)](),_0xb0bce3=this[_0x38ef1c(0x10c)][_0x38ef1c(0x10d)](_0x56a96c);return(_0xb0bce3==null?void 0x0:_0xb0bce3[_0x38ef1c(0xff)]())??_0x1e31c7['IDLE'];}['startFollowing'](){const _0x3b0337=_0x4322b2;let _0x587509=this['_injector'][_0x3b0337(0x10e)](_0x5bb8fa)[_0x3b0337(0x103)](_0x3cc333[_0x3b0337(0x10a)]);if(!_0x587509)throw Error(_0x3b0337(0x10f));let _0x565976=_0x587509[_0x3b0337(0x111)](),_0x4b21a2=this[_0x3b0337(0x10c)][_0x3b0337(0x10d)](_0x565976);if(!_0x4b21a2)throw Error(_0x3b0337(0x106));_0x4b21a2[_0x3b0337(0x119)]();}[_0x4322b2(0x108)](){const _0x5de616=_0x4322b2;let _0x502390=this['_injector']['get'](_0x5bb8fa)[_0x5de616(0x103)](_0x3cc333[_0x5de616(0x10a)]);if(!_0x502390)throw Error(_0x5de616(0x10f));let _0x2cc10c=_0x502390[_0x5de616(0x111)](),_0x49243c=this[_0x5de616(0x10c)][_0x5de616(0x10d)](_0x2cc10c);if(!_0x49243c)throw Error(_0x5de616(0x106));_0x49243c['stopFollowing']();}['startPresenting'](){const _0x4a4365=_0x4322b2;let _0x36e1a0=this[_0x4a4365(0x110)][_0x4a4365(0x10e)](_0x5bb8fa)[_0x4a4365(0x103)](_0x3cc333[_0x4a4365(0x10a)]);if(!_0x36e1a0)throw Error('No\x20active\x20workbook\x20found.');let _0x280d08=_0x36e1a0[_0x4a4365(0x111)](),_0x4c9651=this[_0x4a4365(0x10c)]['getLiveShareCoordinatorSync'](_0x280d08);if(!_0x4c9651)throw Error(_0x4a4365(0x106));_0x4c9651[_0x4a4365(0x101)]();}[_0x4322b2(0x102)](){const _0x3a6770=_0x4322b2;let _0x276a4d=this['_injector'][_0x3a6770(0x10e)](_0x5bb8fa)[_0x3a6770(0x103)](_0x3cc333[_0x3a6770(0x10a)]);if(!_0x276a4d)throw Error(_0x3a6770(0x10f));let _0x36e0bb=_0x276a4d[_0x3a6770(0x111)](),_0x258253=this['_liveShareController'][_0x3a6770(0x10d)](_0x36e0bb);if(!_0x258253)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x258253[_0x3a6770(0x102)]();}};_0xa8ea3['extend'](u);var d=class extends _0x10c23e{get['LiveShareStatusEnum'](){return _0x1e31c7;}};_0x10c23e[_0x4322b2(0x104)](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 _0x118c75=_0x3c00;(function(_0x2ed377,_0x1fde15){const _0xe63431=_0x3c00,_0xb8810f=_0x2ed377();while(!![]){try{const _0x22a862=parseInt(_0xe63431(0x1be))/0x1*(parseInt(_0xe63431(0x1c4))/0x2)+parseInt(_0xe63431(0x20e))/0x3*(parseInt(_0xe63431(0x20c))/0x4)+-parseInt(_0xe63431(0x1e1))/0x5+-parseInt(_0xe63431(0x21b))/0x6*(-parseInt(_0xe63431(0x207))/0x7)+-parseInt(_0xe63431(0x1d6))/0x8*(parseInt(_0xe63431(0x1e8))/0x9)+parseInt(_0xe63431(0x21f))/0xa*(-parseInt(_0xe63431(0x1e4))/0xb)+parseInt(_0xe63431(0x214))/0xc;if(_0x22a862===_0x1fde15)break;else _0xb8810f['push'](_0xb8810f['shift']());}catch(_0x17082c){_0xb8810f['push'](_0xb8810f['shift']());}}}(_0x2f40,0xe4c77));import{CollaborationEvent as _0x46322a,parseProtocolChangeset as _0x4891b9}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xd12c30,SessionStatus as _0x45501e,UniverCollaborationClientPlugin as _0xede79f}from'@univerjs-pro/collaboration-client';function _0x2f40(){const _0x247cce=['_commandService','_unitID','NEW_CHANGESETS','getLiveShareCoordinator','6477308sSLVfO','shouldShareOperation','3fZbAcj','live-share.config','symbol','onCommandExecuted','LIVESHARE_REQUEST_HOST','unsubscribe','44528100pFvfZW','tryStartPresenting','_handleTerminate','_startLiveShareCoordinator','_handleOnline','idle','_status$','24iREWbg','not-following','_status','HEADER_MENU','4890eNpxju','setConfig','disposeWithMe','executeCommand','getUnitId','requireSession','_startPresenting','stopPresenting','_sharedOperations','pipe','_handleNewChangeSets','add','Start','onStarting','data','SAME_OPERATION_SHARE_INTERVAL','includes','parse','unit','You\x27re\x20following\x20the\x20presenter','object','_univerInstanceService','getLiveShareCoordinatorSync','next','send','button','_collabSessionService','event$','_entities','decorate','unitId','pluginName','LIVESHARE_FETCH_OPERATIONS','icon','packageName','set','offline','default','constructor','defineProperty','Start\x20following','registerSharedOperation','_fetchOperations','_handleNewHost','startFollowing','PRESENTING','getValue','_startFollowing','div','presenting','dispose','_stopFollowing','You\x27are\x20offline.','2RhqXJE','status$','_handleOffline','UNIVER_LIVE_SHARE_PLUGIN','end','createInstance','25932MQpzvA','stopFollowing','version','_mountLiveShare','getInitialStates','_configService','toPrimitive','stringify','text','NOT_FOLLOWING','subject','1.0.0-beta.1','getMemberID','getOwnPropertyDescriptor','delete','following','values','prototype','16aOPvlT','has','_presenter','type','function','clear','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','length','ONLINE','8125480uEBroc','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','_reporters','31273XeyNHT','call','You\x27re\x20not\x20following\x20the\x20presenter','_commandDisposable','6920658BZKDQR','forEach','LIVESHARE_OPERATION','_stopPresenting','_config','_beIdle','OPERATION','OFFLINE','IDLE','_liveShareService','params','sheet','find','get','subscribe','registerComponent','string','_uiPartsService','dispose$','_collabSession','UNIVER_SHEET','map','Present\x20this\x20document','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','presenter','onRendered','_init','@univerjs-pro/live-share','asObservable','complete','235186jrkVRz'];_0x2f40=function(){return _0x247cce;};return _0x2f40();}import{CommandType as _0x38266c,DependentOn as _0x2604e4,Disposable as _0x13da97,DisposableCollection as _0xdc1a5d,ICommandService as _0x80bf63,IConfigService as _0x5c1bab,IUniverInstanceService as _0x16046f,Inject as _0x1ac1b0,Injector as _0x55cef5,Plugin as _0x5bf3c2,RxDisposable as _0x182266,UniverInstanceType as _0x2d0216,merge as _0x478986,mergeOverrideWithDependencies as _0x3b8a2b,registerDependencies as _0x1c2a87,toDisposable as _0x5d8ba3,touchDependencies as _0x3ea51e}from'@univerjs/core';import{InsertSheetMutation as _0x1f4399,SetWorksheetActiveOperation as _0x17c25c}from'@univerjs/sheets';import{BehaviorSubject as _0x76a724,Subject as _0xfcc829,defer as _0x40e277,from as _0x1cd9bb,of as _0x790f65}from'rxjs';import{takeUntil as _0x39b47c,throttleTime as _0x4f4c40}from'rxjs/operators';import{UniverLicensePlugin as _0x79063d}from'@univerjs-pro/license';import{SetScrollOperation as _0x28a702,SetZoomRatioOperation as _0x18599f}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x114d37,IUIPartsService as _0x16b944,connectInjector as _0x2e41a9,useDependency as _0x1f8911,useObservable as _0x4af8a4}from'@univerjs/ui';import{Button as _0x35232c,Dropdown as _0x555807}from'@univerjs/design';import{LiveShareIcon as _0x282424}from'@univerjs/icons';import{useMemo as _0x5c3a44}from'react';import{Fragment as _0x3095de,jsx as _0x16217f,jsxs as _0x3e860c}from'react/jsx-runtime';function z(_0x57b603){'@babel/helpers - typeof';const _0x1b56bc=_0x3c00;return z=typeof Symbol==_0x1b56bc(0x1da)&&typeof Symbol['iterator']=='symbol'?function(_0x6ae79){return typeof _0x6ae79;}:function(_0x15eae0){const _0x102585=_0x1b56bc;return _0x15eae0&&typeof Symbol==_0x102585(0x1da)&&_0x15eae0[_0x102585(0x1af)]===Symbol&&_0x15eae0!==Symbol[_0x102585(0x1d5)]?_0x102585(0x210):typeof _0x15eae0;},z(_0x57b603);}function B(_0x123ae4,_0x486a0d){const _0x2ce451=_0x3c00;if(z(_0x123ae4)!=_0x2ce451(0x19d)||!_0x123ae4)return _0x123ae4;var _0x59d8de=_0x123ae4[Symbol[_0x2ce451(0x1ca)]];if(_0x59d8de!==void 0x0){var _0x5a901c=_0x59d8de[_0x2ce451(0x1e5)](_0x123ae4,_0x486a0d||_0x2ce451(0x1ae));if(z(_0x5a901c)!=_0x2ce451(0x19d))return _0x5a901c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x486a0d==='string'?String:Number)(_0x123ae4);}function V(_0x3b547e){const _0x5f3208=_0x3c00;var _0x4ba0ca=B(_0x3b547e,_0x5f3208(0x1f8));return z(_0x4ba0ca)==_0x5f3208(0x210)?_0x4ba0ca:_0x4ba0ca+'';}function H(_0x57dc05,_0x2476ce,_0x2dde76){const _0x3ce622=_0x3c00;return(_0x2476ce=V(_0x2476ce))in _0x57dc05?Object[_0x3ce622(0x1b0)](_0x57dc05,_0x2476ce,{'value':_0x2dde76,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57dc05[_0x2476ce]=_0x2dde76,_0x57dc05;}var U=class extends _0x13da97{constructor(..._0x5d4c54){const _0x38148f=_0x3c00;super(..._0x5d4c54),H(this,_0x38148f(0x191),new Set()),H(this,_0x38148f(0x1e3),new Set());}[_0x118c75(0x1b2)](_0xe4a963){const _0x3f8848=_0x118c75;return this[_0x3f8848(0x191)][_0x3f8848(0x194)](_0xe4a963),_0x5d8ba3(()=>this[_0x3f8848(0x191)][_0x3f8848(0x1d2)](_0xe4a963));}['registerInitialStateReporter'](_0x594763){const _0x60a730=_0x118c75;return this[_0x60a730(0x1e3)][_0x60a730(0x194)](_0x594763),_0x5d8ba3(()=>this['_reporters'][_0x60a730(0x1d2)](_0x594763));}['shouldShareOperation'](_0x4997db){const _0x15f0f0=_0x118c75;return this[_0x15f0f0(0x191)][_0x15f0f0(0x1d7)](_0x4997db);}[_0x118c75(0x1c8)](_0x2868d9){const _0x57c26e=_0x118c75;return Array['from'](this['_reporters'])[_0x57c26e(0x1fd)](_0x59d607=>_0x59d607(_0x2868d9));}};function W(_0x5b8103,_0x4d870e){return function(_0x218572,_0x24dd90){_0x4d870e(_0x218572,_0x24dd90,_0x5b8103);};}function G(_0xe6cc7c,_0x39c719,_0x1c3de7,_0x29fcd1){const _0x5a1f5a=_0x118c75;var _0x5d2617=arguments['length'],_0x456d06=_0x5d2617<0x3?_0x39c719:_0x29fcd1===null?_0x29fcd1=Object[_0x5a1f5a(0x1d1)](_0x39c719,_0x1c3de7):_0x29fcd1,_0x46059b;if(typeof Reflect==_0x5a1f5a(0x19d)&&typeof Reflect[_0x5a1f5a(0x1a6)]=='function')_0x456d06=Reflect[_0x5a1f5a(0x1a6)](_0xe6cc7c,_0x39c719,_0x1c3de7,_0x29fcd1);else{for(var _0x40e2de=_0xe6cc7c[_0x5a1f5a(0x1df)]-0x1;_0x40e2de>=0x0;_0x40e2de--)(_0x46059b=_0xe6cc7c[_0x40e2de])&&(_0x456d06=(_0x5d2617<0x3?_0x46059b(_0x456d06):_0x5d2617>0x3?_0x46059b(_0x39c719,_0x1c3de7,_0x456d06):_0x46059b(_0x39c719,_0x1c3de7))||_0x456d06);}return _0x5d2617>0x3&&_0x456d06&&Object['defineProperty'](_0x39c719,_0x1c3de7,_0x456d06),_0x456d06;}let K=class extends _0x182266{constructor(_0x353b3a,_0xf786e5,_0x261067){const _0x2bd198=_0x118c75;super(),this[_0x2bd198(0x19e)]=_0x353b3a,this[_0x2bd198(0x1de)]=_0xf786e5,this[_0x2bd198(0x1a3)]=_0x261067,H(this,_0x2bd198(0x1a5),new Map()),this['_init']();}async[_0x118c75(0x20b)](_0x4e4668){const _0x384389=_0x118c75;return this[_0x384389(0x1a5)][_0x384389(0x1d7)](_0x4e4668)||await this[_0x384389(0x217)](_0x4e4668),this[_0x384389(0x1a5)][_0x384389(0x1f5)](_0x4e4668);}[_0x118c75(0x19f)](_0xc279a){const _0x111129=_0x118c75;return this['_entities'][_0x111129(0x1f5)](_0xc279a)??null;}[_0x118c75(0x203)](){const _0x53622a=_0x118c75;this[_0x53622a(0x19e)]['getTypeOfUnitAdded$'](_0x2d0216[_0x53622a(0x1fc)])[_0x53622a(0x192)](_0x39b47c(this[_0x53622a(0x1fa)]))[_0x53622a(0x1f6)](async _0x1ce34f=>{const _0xce2f89=_0x53622a;let _0x5f5adb=_0x1ce34f[_0xce2f89(0x19b)][_0xce2f89(0x18d)]();this[_0xce2f89(0x1a5)]['has'](_0x5f5adb)||this[_0xce2f89(0x217)](_0x5f5adb);}),this[_0x53622a(0x19e)][_0x53622a(0x200)](_0x2d0216[_0x53622a(0x1fc)])[_0x53622a(0x192)](_0x39b47c(this[_0x53622a(0x1fa)]))['subscribe'](_0x31a119=>{const _0x25d851=_0x53622a;let _0x4bb995=_0x31a119[_0x25d851(0x18d)](),_0x5c8224=this[_0x25d851(0x1a5)]['get'](_0x4bb995);_0x5c8224==null||_0x5c8224['dispose']();});}async[_0x118c75(0x217)](_0x97a771){const _0x2395bd=_0x118c75;let _0xb42235=await this[_0x2395bd(0x1a3)][_0x2395bd(0x18e)](_0x97a771),_0x4a069c=this[_0x2395bd(0x1de)][_0x2395bd(0x1c3)](J,_0x97a771,_0xb42235);return _0x4a069c['init'](),this[_0x2395bd(0x1a5)][_0x2395bd(0x1ac)](_0x97a771,_0x4a069c),_0x4a069c;}};K=G([W(0x0,_0x16046f),W(0x1,_0x1ac1b0(_0x55cef5)),W(0x2,_0x1ac1b0(_0xd12c30))],K);let q=function(_0x2f8f05){const _0x478b75=_0x118c75;return _0x2f8f05['OFFLINE']=_0x478b75(0x1ad),_0x2f8f05[_0x478b75(0x1f0)]='idle',_0x2f8f05['FOLLOWING']=_0x478b75(0x1d3),_0x2f8f05[_0x478b75(0x1cd)]=_0x478b75(0x21c),_0x2f8f05[_0x478b75(0x1b6)]='presenting',_0x2f8f05;}({}),J=class extends _0x182266{get['_status'](){const _0xb10919=_0x118c75;return this[_0xb10919(0x21a)][_0xb10919(0x1b7)]();}constructor(_0x53de23,_0x22eaa0,_0x3662a0,_0x1c2fea,_0x57a328){const _0x5a3b24=_0x118c75;super(),this[_0x5a3b24(0x209)]=_0x53de23,this[_0x5a3b24(0x1fb)]=_0x22eaa0,this[_0x5a3b24(0x1c9)]=_0x3662a0,this['_liveShareService']=_0x1c2fea,this['_commandService']=_0x57a328,H(this,_0x5a3b24(0x21a),new _0x76a724('idle')),H(this,_0x5a3b24(0x1bf),this[_0x5a3b24(0x21a)][_0x5a3b24(0x205)]()),H(this,_0x5a3b24(0x203),!0x1),H(this,_0x5a3b24(0x1e7),null),H(this,_0x5a3b24(0x1d8),null);}['dispose'](){const _0x59f705=_0x118c75;var _0x51f78b;(_0x51f78b=this[_0x59f705(0x1e7)])==null||_0x51f78b[_0x59f705(0x1bb)](),this[_0x59f705(0x21a)][_0x59f705(0x1a0)](_0x59f705(0x219)),this[_0x59f705(0x21a)][_0x59f705(0x206)]();}['getStatus'](){const _0x58d8c2=_0x118c75;return this[_0x58d8c2(0x21d)];}['init'](){const _0x103f9f=_0x118c75;this[_0x103f9f(0x203)]||(this['_init']=!0x0,this[_0x103f9f(0x1fb)]['sessionStatus$']['pipe'](_0x39b47c(this[_0x103f9f(0x1fa)]))[_0x103f9f(0x1f6)](_0x5d2e0c=>{const _0x5081cc=_0x103f9f;switch(_0x5d2e0c){case _0x45501e[_0x5081cc(0x1ef)]:this[_0x5081cc(0x1c0)]();break;case _0x45501e[_0x5081cc(0x1e0)]:this[_0x5081cc(0x218)]();break;default:}}),this[_0x103f9f(0x1fb)][_0x103f9f(0x1a4)][_0x103f9f(0x192)](_0x39b47c(this['dispose$']))['subscribe'](_0x3605dc=>{const _0x5d5062=_0x103f9f;let {eventID:_0x18435e}=_0x3605dc;switch(_0x18435e){case _0x46322a['LIVESHARE_NEW_HOST']:this[_0x5d5062(0x1b4)](_0x3605dc);break;case _0x46322a[_0x5d5062(0x1ea)]:this['_handleOperation'](_0x3605dc);break;case _0x46322a['LIVESHARE_TERMINATE']:this[_0x5d5062(0x216)]();break;case _0x46322a[_0x5d5062(0x20a)]:this[_0x5d5062(0x193)](_0x3605dc);break;default:}}));}[_0x118c75(0x215)](){const _0x4e13ac=_0x118c75;this['_collabSession'][_0x4e13ac(0x1a1)]({'eventID':_0x46322a[_0x4e13ac(0x212)],'data':{'unitID':this[_0x4e13ac(0x209)],'userID':this[_0x4e13ac(0x1fb)][_0x4e13ac(0x1d0)]()}},this[_0x4e13ac(0x209)]);}[_0x118c75(0x190)](){const _0x38c7cc=_0x118c75;this['_status']==='presenting'&&(this[_0x38c7cc(0x21a)][_0x38c7cc(0x1a0)](_0x38c7cc(0x219)),this['_collabSession'][_0x38c7cc(0x1a1)]({'eventID':_0x46322a['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x38c7cc(0x209)]}},this[_0x38c7cc(0x209)]));}[_0x118c75(0x1b5)](){const _0x4a1479=_0x118c75;this[_0x4a1479(0x21d)]===_0x4a1479(0x21c)&&(this[_0x4a1479(0x21a)]['next']('following'),this[_0x4a1479(0x1b8)]());}['stopFollowing'](){const _0x48fe21=_0x118c75;this[_0x48fe21(0x21d)]===_0x48fe21(0x1d3)&&this['_stopFollowing']();}[_0x118c75(0x1b4)](_0x29e96e){const _0x97b7b6=_0x118c75;let {presenter:_0x1076f7}=_0x29e96e[_0x97b7b6(0x197)],_0x3d12f2=this[_0x97b7b6(0x1fb)][_0x97b7b6(0x1d0)]();this[_0x97b7b6(0x1d8)]=_0x1076f7,_0x1076f7===_0x3d12f2?(this[_0x97b7b6(0x1bc)](),this[_0x97b7b6(0x18f)]()):this[_0x97b7b6(0x21d)]!=='not-following'&&(this[_0x97b7b6(0x1eb)](),this[_0x97b7b6(0x1b8)]());}[_0x118c75(0x1b3)](){const _0x45cf97=_0x118c75;let _0x18cf87={'eventID':_0x46322a[_0x45cf97(0x1a9)]};this[_0x45cf97(0x1fb)][_0x45cf97(0x1a1)](_0x18cf87,this['_unitID']);}[_0x118c75(0x216)](){const _0x2d560d=_0x118c75;this['_presenter']=null,this['_status']!==_0x2d560d(0x1ba)&&this[_0x2d560d(0x1ed)]();}[_0x118c75(0x193)](_0x57c8fb){const _0x53788d=_0x118c75;if(this['_status']===_0x53788d(0x1d3)&&this[_0x53788d(0x1d8)]===_0x57c8fb[_0x53788d(0x197)]['memberID']){let _0x23f42e=_0x4891b9(_0x57c8fb[_0x53788d(0x197)])['mutations']['reverse']()[_0x53788d(0x1f4)](_0x4cc3ee=>_0x4cc3ee['id']===_0x1f4399['id']);if(_0x23f42e){let _0x4a7af4=_0x23f42e[_0x53788d(0x1f2)][_0x53788d(0x1a7)],_0x4bb8de=_0x23f42e[_0x53788d(0x1f2)][_0x53788d(0x1f3)]['id'];setTimeout(()=>{const _0xe63a36=_0x53788d;this[_0xe63a36(0x208)][_0xe63a36(0x18c)](_0x17c25c['id'],{'unitId':_0x4a7af4,'subUnitId':_0x4bb8de},{'fromCollab':!0x0});});}}}[_0x118c75(0x18f)](){const _0x2e1a86=_0x118c75;var _0x50fc0d;(_0x50fc0d=this[_0x2e1a86(0x1e7)])==null||_0x50fc0d['dispose'](),this[_0x2e1a86(0x21a)][_0x2e1a86(0x1a0)](_0x2e1a86(0x1ba));let _0x4882f2=new Map(),_0x6844c9=this[_0x2e1a86(0x1e7)]=new _0xdc1a5d();_0x6844c9[_0x2e1a86(0x194)](_0x5d8ba3(()=>{const _0x40bb9e=_0x2e1a86;_0x4882f2['forEach'](({subject:_0xc57b6b,subscription:_0xc477bd})=>{const _0x1556b5=_0x3c00;_0xc477bd[_0x1556b5(0x213)](),_0xc57b6b[_0x1556b5(0x206)]();}),_0x4882f2[_0x40bb9e(0x1db)]();})),_0x6844c9['add'](this[_0x2e1a86(0x208)][_0x2e1a86(0x211)](_0x17250f=>{const _0x1a7ea1=_0x2e1a86;if(_0x17250f[_0x1a7ea1(0x1d9)]!==_0x38266c[_0x1a7ea1(0x1ee)]||!this['_liveShareService'][_0x1a7ea1(0x20d)](_0x17250f['id']))return;let {id:_0x16a6a9}=_0x17250f,_0x173638;if(_0x4882f2['has'](_0x16a6a9))_0x173638=_0x4882f2[_0x1a7ea1(0x1f5)](_0x16a6a9)[_0x1a7ea1(0x1ce)];else{_0x173638=new _0xfcc829();let _0x2302bc=_0x173638['pipe'](_0x4f4c40(this[_0x1a7ea1(0x1c9)]['getConfig'](_0x1a7ea1(0x198))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1a7ea1(0x1f6)](_0x2fdc12=>{const _0x1eb2ba=_0x1a7ea1;this['_collabSession'][_0x1eb2ba(0x1a1)]({'eventID':_0x46322a[_0x1eb2ba(0x1ea)],'data':{'unitID':this[_0x1eb2ba(0x209)],'operations':{[_0x2fdc12['id']]:{'id':_0x2fdc12['id'],'params':JSON[_0x1eb2ba(0x1cb)](_0x2fdc12['params'])}}}},this[_0x1eb2ba(0x209)]);});_0x4882f2[_0x1a7ea1(0x1ac)](_0x16a6a9,{'subject':_0x173638,'subscription':_0x2302bc});}_0x173638[_0x1a7ea1(0x1a0)](_0x17250f);})),this[_0x2e1a86(0x1f1)][_0x2e1a86(0x1c8)](this['_unitID'])[_0x2e1a86(0x1e9)](_0x1680cf=>this[_0x2e1a86(0x1fb)]['send']({'eventID':_0x46322a[_0x2e1a86(0x1ea)],'data':{'unitID':this[_0x2e1a86(0x209)],'operations':{[_0x1680cf['id']]:{'id':_0x1680cf['id'],'params':JSON['stringify'](_0x1680cf[_0x2e1a86(0x1f2)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x5df58f=_0x118c75;var _0x4e9fc2;this[_0x5df58f(0x21a)][_0x5df58f(0x1a0)](_0x5df58f(0x219)),(_0x4e9fc2=this[_0x5df58f(0x1e7)])==null||_0x4e9fc2[_0x5df58f(0x1bb)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x292a57=_0x118c75;var _0x5d3bc7;(_0x5d3bc7=this[_0x292a57(0x1e7)])==null||_0x5d3bc7[_0x292a57(0x1bb)](),this[_0x292a57(0x21a)][_0x292a57(0x1a0)](_0x292a57(0x1d3));}[_0x118c75(0x1ed)](){const _0x4b1877=_0x118c75;var _0x259c08;this[_0x4b1877(0x21a)][_0x4b1877(0x1a0)](_0x4b1877(0x219)),(_0x259c08=this['_commandDisposable'])==null||_0x259c08[_0x4b1877(0x1bb)](),this[_0x4b1877(0x1e7)]=null;}[_0x118c75(0x1bc)](){const _0x90c015=_0x118c75;var _0x3c75c9;this[_0x90c015(0x21a)][_0x90c015(0x1a0)]('not-following'),(_0x3c75c9=this[_0x90c015(0x1e7)])==null||_0x3c75c9[_0x90c015(0x1bb)]();}[_0x118c75(0x1dc)](_0x19392d){const _0x520651=_0x118c75;if([_0x520651(0x1ba),'not-following',_0x520651(0x1ad)][_0x520651(0x199)](this[_0x520651(0x21d)])||!_0x19392d[_0x520651(0x197)][_0x520651(0x201)]||_0x19392d[_0x520651(0x197)]['presenter']===this[_0x520651(0x1fb)][_0x520651(0x1d0)]())return;this[_0x520651(0x21d)]==='idle'&&this[_0x520651(0x1b8)]();let _0x9ab314=_0x19392d[_0x520651(0x197)]['operations'];Object[_0x520651(0x1d4)](_0x9ab314)[_0x520651(0x1e9)](_0x37f9eb=>{const _0x35bc10=_0x520651;this[_0x35bc10(0x208)][_0x35bc10(0x18c)](_0x37f9eb['id'],_0x37f9eb[_0x35bc10(0x1f2)]?JSON[_0x35bc10(0x19a)](_0x37f9eb['params']):null,{'fromCollab':!0x0});});}[_0x118c75(0x1c0)](){const _0x106bd4=_0x118c75;var _0x44acb2;this[_0x106bd4(0x21a)]['next'](_0x106bd4(0x1ad)),(_0x44acb2=this['_commandDisposable'])==null||_0x44acb2[_0x106bd4(0x1bb)]();}[_0x118c75(0x218)](){const _0x3475c5=_0x118c75;this['_status$']['next'](_0x3475c5(0x219)),this[_0x3475c5(0x1b3)]();}};J=G([W(0x2,_0x5c1bab),W(0x3,_0x1ac1b0(U)),W(0x4,_0x80bf63)],J);var se=_0x118c75(0x204),ce=_0x118c75(0x1cf);const Y={};let X=class extends _0x13da97{constructor(_0x357380){const _0x22ff77=_0x118c75;super(),this[_0x22ff77(0x1f1)]=_0x357380,this[_0x22ff77(0x203)]();}[_0x118c75(0x203)](){const _0x5b9b36=_0x118c75;[_0x18599f['id'],_0x28a702['id'],_0x17c25c['id']][_0x5b9b36(0x1e9)](_0x375151=>{const _0x3f4c25=_0x5b9b36;this[_0x3f4c25(0x18b)](this[_0x3f4c25(0x1f1)][_0x3f4c25(0x1b2)](_0x375151));});}};X=G([W(0x0,_0x1ac1b0(U))],X);function Z(){const _0x1008e5=_0x118c75;let _0x199012=_0x1f8911(K),_0x57be61=_0x1f8911(_0x16046f),_0x382d76=_0x4af8a4(()=>_0x57be61['getCurrentTypeOfUnit$'](_0x2d0216['UNIVER_SHEET']),void 0x0,!0x1,[]),_0x4b93b5=_0x4af8a4(_0x5c3a44(()=>_0x382d76?_0x40e277(()=>_0x1cd9bb(_0x199012[_0x1008e5(0x20b)](_0x382d76['getUnitId']()))):_0x790f65(null),[_0x382d76,_0x199012]),null),_0x1a02d4=_0x4af8a4(_0x4b93b5?()=>_0x4b93b5[_0x1008e5(0x1bf)]:null,_0x1008e5(0x219),!0x1,[_0x4b93b5]);return _0x4b93b5?_0x16217f(_0x555807,{'align':_0x1008e5(0x1c2),'disabled':_0x1a02d4===_0x1008e5(0x1ad),'className':_0x1008e5(0x1e2),'overlay':_0x16217f(le,{'status':_0x1a02d4,'coordinator':_0x4b93b5}),'children':_0x16217f(_0x35232c,{'size':_0x1008e5(0x1aa),'variant':_0x1008e5(0x1cc),'disabled':_0x1a02d4==='offline','type':_0x1008e5(0x1a2),'children':_0x16217f(_0x282424,{})})}):null;}function le(_0x3e65ea){const _0x5e0dc5=_0x118c75;let {status:_0x314f8f,coordinator:_0x4c3bf2}=_0x3e65ea;switch(_0x314f8f){case _0x5e0dc5(0x219):return _0x16217f(ue,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x1d3):return _0x16217f(de,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x21c):return _0x16217f(fe,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x1ad):return _0x16217f(me,{});case _0x5e0dc5(0x1ba):return _0x16217f(pe,{'coordinator':_0x4c3bf2});default:return null;}}function ue(_0x58f3a6){const _0x2682bf=_0x118c75;let {coordinator:_0x1a4dcb}=_0x58f3a6;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':_0x2682bf(0x1dd),'children':_0x2682bf(0x1fe)}),_0x16217f(_0x35232c,{'onClick':()=>_0x1a4dcb[_0x2682bf(0x215)](),'children':_0x2682bf(0x195)})]});}function _0x3c00(_0x13de16,_0x309232){_0x13de16=_0x13de16-0x18b;const _0x2f403c=_0x2f40();let _0x3c0072=_0x2f403c[_0x13de16];return _0x3c0072;}function de(_0x246a7a){const _0x5efa58=_0x118c75;let {coordinator:_0x241853}=_0x246a7a;return _0x3e860c(_0x3095de,{'children':[_0x16217f(_0x5efa58(0x1b9),{'className':_0x5efa58(0x1dd),'children':_0x5efa58(0x19c)}),_0x16217f(_0x35232c,{'onClick':()=>_0x241853[_0x5efa58(0x1c5)](),'children':'Stop\x20following'})]});}function fe(_0x350c61){const _0x14d18c=_0x118c75;let {coordinator:_0x28927d}=_0x350c61;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':_0x14d18c(0x1dd),'children':_0x14d18c(0x1e6)}),_0x16217f(_0x35232c,{'variant':_0x14d18c(0x1cc),'onClick':()=>_0x28927d['startFollowing'](),'children':_0x14d18c(0x1b1)})]});}function pe(_0x3bbf4d){const _0x329425=_0x118c75;let {coordinator:_0x2386af}=_0x3bbf4d;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x16217f(_0x35232c,{'variant':_0x329425(0x1ae),'onClick':()=>_0x2386af['stopPresenting'](),'children':'Stop\x20presenting'})]});}function me(){const _0x1ccab9=_0x118c75;return _0x16217f(_0x3095de,{'children':_0x1ccab9(0x1bd)});}let Q=class extends _0x13da97{constructor(_0x5a81f3,_0x1e2566){const _0x559956=_0x118c75;super(),this['_injector']=_0x5a81f3,this[_0x559956(0x1f9)]=_0x1e2566,this['_mountLiveShare']();}[_0x118c75(0x1c7)](){const _0x4bda5a=_0x118c75;this[_0x4bda5a(0x18b)](this[_0x4bda5a(0x1f9)][_0x4bda5a(0x1f7)](_0x114d37[_0x4bda5a(0x21e)],()=>_0x2e41a9(Z,this[_0x4bda5a(0x1de)])));}};Q=G([W(0x0,_0x1ac1b0(_0x55cef5)),W(0x1,_0x16b944)],Q);let $=class extends _0x5bf3c2{constructor(_0x3e777b=Y,_0x36674c,_0x41bd1e){const _0x49f451=_0x118c75;super(),this['_config']=_0x3e777b,this[_0x49f451(0x1de)]=_0x36674c,this[_0x49f451(0x1c9)]=_0x41bd1e;let {..._0x4e3050}=_0x478986({},Y,this[_0x49f451(0x1ec)]);this['_configService'][_0x49f451(0x220)](_0x49f451(0x20f),_0x4e3050);}[_0x118c75(0x196)](){const _0x1ec53f=_0x118c75;_0x1c2a87(this[_0x1ec53f(0x1de)],_0x3b8a2b([[U],[K],[X],[Q]],this[_0x1ec53f(0x1ec)]['override'])),_0x3ea51e(this[_0x1ec53f(0x1de)],[[X]]);}[_0x118c75(0x202)](){const _0x2fc629=_0x118c75;_0x3ea51e(this[_0x2fc629(0x1de)],[[Q]]);}};H($,_0x118c75(0x1d9),_0x2d0216[_0x118c75(0x1ff)]),H($,_0x118c75(0x1a8),_0x118c75(0x1c1)),H($,_0x118c75(0x1ab),se),H($,_0x118c75(0x1c6),ce),$=G([_0x2604e4(_0x79063d,_0xede79f),W(0x1,_0x1ac1b0(_0x55cef5)),W(0x2,_0x5c1bab)],$);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 _0x18cb(_0x39a626,_0x3b368b){_0x39a626=_0x39a626-0x172;const _0x38519f=_0x3851();let _0x18cbbe=_0x38519f[_0x39a626];return _0x18cbbe;}function _0x3851(){const _0x3d027a=['startPresenting','UniverInstanceType','LiveShareController','_initialize','stopFollowing','No\x20active\x20workbook\x20found.','591140UNYjae','_injector','object','defineProperty','@univerjs/core','5dpvwxY','45346TQyziP','tryStartPresenting','@univerjs-pro/live-share','extend','UniverCoreFacade','amd','getCurrentUnitOfType','getUnitId','_liveShareController','IUniverInstanceService','get','3227205wLDEbp','276OdJEFp','toPrimitive','LiveShareStatusEnum','prototype','FUniver','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/core/facade','UniverProLiveShare','getLiveShareCoordinatorSync','symbol','stopPresenting','call','141378pVcfrR','function','8488UbhEBd','startFollowing','IDLE','14851170Beeyuh','1006353DxZHvN','UniverCore','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatus','UNIVER_SHEET','FEnum','string','getStatus','7164mzcszO'];_0x3851=function(){return _0x3d027a;};return _0x3851();}(function(_0x182b76,_0x45a564){const _0x625df3=_0x18cb,_0x462d62=_0x182b76();while(!![]){try{const _0x15e77b=parseInt(_0x625df3(0x189))/0x1*(-parseInt(_0x625df3(0x1a2))/0x2)+-parseInt(_0x625df3(0x174))/0x3+-parseInt(_0x625df3(0x184))/0x4+-parseInt(_0x625df3(0x195))/0x5+-parseInt(_0x625df3(0x196))/0x6*(parseInt(_0x625df3(0x18a))/0x7)+-parseInt(_0x625df3(0x1a4))/0x8*(-parseInt(_0x625df3(0x17d))/0x9)+parseInt(_0x625df3(0x173))/0xa;if(_0x15e77b===_0x45a564)break;else _0x462d62['push'](_0x462d62['shift']());}catch(_0x19cf8c){_0x462d62['push'](_0x462d62['shift']());}}}(_0x3851,0x862bb),function(_0x51e1d3,_0x3f2693){const _0x405a71=_0x18cb;typeof exports==_0x405a71(0x186)&&typeof module<'u'?_0x3f2693(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x405a71(0x1a3)&&define[_0x405a71(0x18f)]?define([_0x405a71(0x18c),_0x405a71(0x188),_0x405a71(0x19c)],_0x3f2693):(_0x51e1d3=typeof globalThis<'u'?globalThis:_0x51e1d3||self,_0x3f2693(_0x51e1d3[_0x405a71(0x19d)],_0x51e1d3[_0x405a71(0x175)],_0x51e1d3[_0x405a71(0x18e)]));}(this,function(_0x409f18,_0xfb4eb0,_0x2ffe2e){const _0xee3464=_0x18cb;function _0x3ae84c(_0x39fa7c){'@babel/helpers - typeof';const _0x3c2520=_0x18cb;return _0x3ae84c=typeof Symbol==_0x3c2520(0x1a3)&&typeof Symbol['iterator']==_0x3c2520(0x19f)?function(_0x49c445){return typeof _0x49c445;}:function(_0x8a13cd){const _0x4ed49d=_0x3c2520;return _0x8a13cd&&typeof Symbol==_0x4ed49d(0x1a3)&&_0x8a13cd['constructor']===Symbol&&_0x8a13cd!==Symbol[_0x4ed49d(0x199)]?_0x4ed49d(0x19f):typeof _0x8a13cd;},_0x3ae84c(_0x39fa7c);}function _0x1c5f06(_0x51bcab,_0x366a9c){const _0x54b9ce=_0x18cb;if(_0x3ae84c(_0x51bcab)!=_0x54b9ce(0x186)||!_0x51bcab)return _0x51bcab;var _0x25ab6b=_0x51bcab[Symbol[_0x54b9ce(0x197)]];if(_0x25ab6b!==void 0x0){var _0x2fc2a6=_0x25ab6b[_0x54b9ce(0x1a1)](_0x51bcab,_0x366a9c||_0x54b9ce(0x176));if(_0x3ae84c(_0x2fc2a6)!='object')return _0x2fc2a6;throw TypeError(_0x54b9ce(0x177));}return(_0x366a9c===_0x54b9ce(0x17b)?String:Number)(_0x51bcab);}function _0x2cad16(_0x886fca){const _0x31fdc1=_0x18cb;var _0xce3a09=_0x1c5f06(_0x886fca,_0x31fdc1(0x17b));return _0x3ae84c(_0xce3a09)==_0x31fdc1(0x19f)?_0xce3a09:_0xce3a09+'';}function _0x5034b8(_0x2e30e6,_0x5872dc,_0x491a20){const _0x27b109=_0x18cb;return(_0x5872dc=_0x2cad16(_0x5872dc))in _0x2e30e6?Object[_0x27b109(0x187)](_0x2e30e6,_0x5872dc,{'value':_0x491a20,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e30e6[_0x5872dc]=_0x491a20,_0x2e30e6;}var _0x2e01bc=class extends _0x2ffe2e[_0xee3464(0x19a)]{constructor(..._0x2a979a){const _0x4fe316=_0xee3464;super(..._0x2a979a),_0x5034b8(this,_0x4fe316(0x192),void 0x0);}[_0xee3464(0x181)](_0xa7f54e){const _0x15d55d=_0xee3464;this[_0x15d55d(0x192)]=_0xa7f54e[_0x15d55d(0x194)](_0x409f18[_0x15d55d(0x180)]);}['getLiveShareStatus'](){const _0x11a49b=_0xee3464;let _0x2e5810=this[_0x11a49b(0x185)][_0x11a49b(0x194)](_0xfb4eb0[_0x11a49b(0x193)])[_0x11a49b(0x190)](_0xfb4eb0['UniverInstanceType']['UNIVER_SHEET']);if(!_0x2e5810)throw Error(_0x11a49b(0x183));let _0x302325=_0x2e5810[_0x11a49b(0x191)](),_0x287e50=this['_liveShareController'][_0x11a49b(0x19e)](_0x302325);return(_0x287e50==null?void 0x0:_0x287e50[_0x11a49b(0x17c)]())??_0x409f18[_0x11a49b(0x178)][_0x11a49b(0x172)];}[_0xee3464(0x1a5)](){const _0x538e59=_0xee3464;let _0x64c9c3=this['_injector'][_0x538e59(0x194)](_0xfb4eb0['IUniverInstanceService'])[_0x538e59(0x190)](_0xfb4eb0[_0x538e59(0x17f)]['UNIVER_SHEET']);if(!_0x64c9c3)throw Error(_0x538e59(0x183));let _0x1c7636=_0x64c9c3[_0x538e59(0x191)](),_0x49317f=this[_0x538e59(0x192)]['getLiveShareCoordinatorSync'](_0x1c7636);if(!_0x49317f)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x49317f[_0x538e59(0x1a5)]();}[_0xee3464(0x182)](){const _0x45272b=_0xee3464;let _0x210df7=this['_injector']['get'](_0xfb4eb0[_0x45272b(0x193)])[_0x45272b(0x190)](_0xfb4eb0[_0x45272b(0x17f)][_0x45272b(0x179)]);if(!_0x210df7)throw Error('No\x20active\x20workbook\x20found.');let _0x50aaee=_0x210df7[_0x45272b(0x191)](),_0x207821=this[_0x45272b(0x192)][_0x45272b(0x19e)](_0x50aaee);if(!_0x207821)throw Error(_0x45272b(0x19b));_0x207821[_0x45272b(0x182)]();}[_0xee3464(0x17e)](){const _0x10bea3=_0xee3464;let _0x55856b=this[_0x10bea3(0x185)]['get'](_0xfb4eb0[_0x10bea3(0x193)])['getCurrentUnitOfType'](_0xfb4eb0[_0x10bea3(0x17f)][_0x10bea3(0x179)]);if(!_0x55856b)throw Error(_0x10bea3(0x183));let _0x2f49e1=_0x55856b[_0x10bea3(0x191)](),_0x42fcd7=this[_0x10bea3(0x192)]['getLiveShareCoordinatorSync'](_0x2f49e1);if(!_0x42fcd7)throw Error(_0x10bea3(0x19b));_0x42fcd7[_0x10bea3(0x18b)]();}[_0xee3464(0x1a0)](){const _0x5b32f6=_0xee3464;let _0x421f8d=this[_0x5b32f6(0x185)]['get'](_0xfb4eb0[_0x5b32f6(0x193)])[_0x5b32f6(0x190)](_0xfb4eb0[_0x5b32f6(0x17f)][_0x5b32f6(0x179)]);if(!_0x421f8d)throw Error(_0x5b32f6(0x183));let _0x3847d2=_0x421f8d[_0x5b32f6(0x191)](),_0x3a59ee=this[_0x5b32f6(0x192)][_0x5b32f6(0x19e)](_0x3847d2);if(!_0x3a59ee)throw Error(_0x5b32f6(0x19b));_0x3a59ee[_0x5b32f6(0x1a0)]();}};_0x2ffe2e['FUniver'][_0xee3464(0x18d)](_0x2e01bc);var _0x3d5bd1=class extends _0x2ffe2e['FEnum']{get[_0xee3464(0x198)](){const _0x2f4308=_0xee3464;return _0x409f18[_0x2f4308(0x178)];}};_0x2ffe2e[_0xee3464(0x17a)][_0xee3464(0x18d)](_0x3d5bd1);}));
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 _0x5e9a(_0x2bb750,_0xfe88d5){_0x2bb750=_0x2bb750-0x11a;const _0x3f89d9=_0x3f89();let _0x5e9a76=_0x3f89d9[_0x2bb750];return _0x5e9a76;}(function(_0x56cc4c,_0x494b8a){const _0x4d481e=_0x5e9a,_0x5ce8a5=_0x56cc4c();while(!![]){try{const _0x5e13f3=parseInt(_0x4d481e(0x146))/0x1+-parseInt(_0x4d481e(0x15a))/0x2+parseInt(_0x4d481e(0x142))/0x3+-parseInt(_0x4d481e(0x1da))/0x4+parseInt(_0x4d481e(0x1d0))/0x5*(parseInt(_0x4d481e(0x178))/0x6)+-parseInt(_0x4d481e(0x13c))/0x7*(-parseInt(_0x4d481e(0x1dd))/0x8)+parseInt(_0x4d481e(0x1be))/0x9*(-parseInt(_0x4d481e(0x1db))/0xa);if(_0x5e13f3===_0x494b8a)break;else _0x5ce8a5['push'](_0x5ce8a5['shift']());}catch(_0x34de8d){_0x5ce8a5['push'](_0x5ce8a5['shift']());}}}(_0x3f89,0x5c2a1),function(_0x52cccf,_0x11a907){const _0x2bd288=_0x5e9a;typeof exports=='object'&&typeof module<'u'?_0x11a907(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==_0x2bd288(0x177)&&define[_0x2bd288(0x1a2)]?define(['exports',_0x2bd288(0x1b1),_0x2bd288(0x159),'@univerjs/core',_0x2bd288(0x12b),'rxjs',_0x2bd288(0x120),_0x2bd288(0x1e1),'@univerjs/sheets-ui','@univerjs/ui',_0x2bd288(0x1c6),_0x2bd288(0x1d7),'react/jsx-runtime'],_0x11a907):(_0x52cccf=typeof globalThis<'u'?globalThis:_0x52cccf||self,_0x11a907(_0x52cccf[_0x2bd288(0x1b0)]={},_0x52cccf['UniverProCollaboration'],_0x52cccf[_0x2bd288(0x158)],_0x52cccf['UniverCore'],_0x52cccf['UniverSheets'],_0x52cccf[_0x2bd288(0x18f)],_0x52cccf[_0x2bd288(0x18f)][_0x2bd288(0x128)],_0x52cccf[_0x2bd288(0x1cf)],_0x52cccf['UniverSheetsUi'],_0x52cccf[_0x2bd288(0x1d8)],_0x52cccf[_0x2bd288(0x14c)],_0x52cccf[_0x2bd288(0x182)],_0x52cccf[_0x2bd288(0x182)]));}(this,function(_0xfff3f6,_0x545c38,_0x425778,_0x2a83f8,_0xc44925,_0x244db7,_0x32f425,_0x4c4cea,_0x13de63,_0x18944d,_0x30fd9d,_0x81793d,_0xfb6994){const _0xe4c58d=_0x5e9a;Object[_0xe4c58d(0x11e)](_0xfff3f6,Symbol['toStringTag'],{'value':'Module'});function _0x1f194d(_0x348e03){'@babel/helpers - typeof';const _0x4717dd=_0xe4c58d;return _0x1f194d=typeof Symbol=='function'&&typeof Symbol[_0x4717dd(0x1ab)]==_0x4717dd(0x18b)?function(_0x527ec9){return typeof _0x527ec9;}:function(_0x15dee7){const _0x3b7cc0=_0x4717dd;return _0x15dee7&&typeof Symbol==_0x3b7cc0(0x177)&&_0x15dee7['constructor']===Symbol&&_0x15dee7!==Symbol[_0x3b7cc0(0x1ec)]?_0x3b7cc0(0x18b):typeof _0x15dee7;},_0x1f194d(_0x348e03);}function _0x5ec452(_0xa1ea38,_0x7cd1df){const _0x594af2=_0xe4c58d;if(_0x1f194d(_0xa1ea38)!=_0x594af2(0x15c)||!_0xa1ea38)return _0xa1ea38;var _0x57b47b=_0xa1ea38[Symbol['toPrimitive']];if(_0x57b47b!==void 0x0){var _0x1cdd08=_0x57b47b['call'](_0xa1ea38,_0x7cd1df||'default');if(_0x1f194d(_0x1cdd08)!='object')return _0x1cdd08;throw TypeError(_0x594af2(0x1f7));}return(_0x7cd1df===_0x594af2(0x1a9)?String:Number)(_0xa1ea38);}function _0x3bce6c(_0x2e0c19){const _0x37fa60=_0xe4c58d;var _0x273819=_0x5ec452(_0x2e0c19,'string');return _0x1f194d(_0x273819)==_0x37fa60(0x18b)?_0x273819:_0x273819+'';}function _0x5470e1(_0x3d4e73,_0x1ef888,_0x5249b1){const _0x10aca2=_0xe4c58d;return(_0x1ef888=_0x3bce6c(_0x1ef888))in _0x3d4e73?Object[_0x10aca2(0x11e)](_0x3d4e73,_0x1ef888,{'value':_0x5249b1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d4e73[_0x1ef888]=_0x5249b1,_0x3d4e73;}var _0x318b55=class extends _0x2a83f8[_0xe4c58d(0x125)]{constructor(..._0x251a22){const _0x309919=_0xe4c58d;super(..._0x251a22),_0x5470e1(this,_0x309919(0x167),new Set()),_0x5470e1(this,'_reporters',new Set());}[_0xe4c58d(0x12f)](_0x2eb2ec){const _0x1ffba7=_0xe4c58d;return this[_0x1ffba7(0x167)][_0x1ffba7(0x199)](_0x2eb2ec),(0x0,_0x2a83f8[_0x1ffba7(0x13d)])(()=>this['_sharedOperations'][_0x1ffba7(0x15e)](_0x2eb2ec));}['registerInitialStateReporter'](_0x581e5f){const _0xb268a3=_0xe4c58d;return this[_0xb268a3(0x150)][_0xb268a3(0x199)](_0x581e5f),(0x0,_0x2a83f8[_0xb268a3(0x13d)])(()=>this[_0xb268a3(0x150)][_0xb268a3(0x15e)](_0x581e5f));}[_0xe4c58d(0x1ae)](_0x407c58){const _0x239c7d=_0xe4c58d;return this[_0x239c7d(0x167)][_0x239c7d(0x1a8)](_0x407c58);}[_0xe4c58d(0x1ba)](_0x5d161a){const _0x40f815=_0xe4c58d;return Array[_0x40f815(0x11d)](this[_0x40f815(0x150)])[_0x40f815(0x194)](_0x39795d=>_0x39795d(_0x5d161a));}};function _0x26d1cf(_0x1a444f,_0x36093f){return function(_0x4f3d2c,_0x548ff8){_0x36093f(_0x4f3d2c,_0x548ff8,_0x1a444f);};}function _0x3ae8e5(_0x2f73bf,_0x3b5f23,_0x5dadcc,_0x190c03){const _0x422aa1=_0xe4c58d;var _0x10b6f1=arguments[_0x422aa1(0x161)],_0x1199f5=_0x10b6f1<0x3?_0x3b5f23:_0x190c03===null?_0x190c03=Object[_0x422aa1(0x1b6)](_0x3b5f23,_0x5dadcc):_0x190c03,_0x552e81;if(typeof Reflect==_0x422aa1(0x15c)&&typeof Reflect[_0x422aa1(0x1df)]==_0x422aa1(0x177))_0x1199f5=Reflect[_0x422aa1(0x1df)](_0x2f73bf,_0x3b5f23,_0x5dadcc,_0x190c03);else{for(var _0x3c4000=_0x2f73bf[_0x422aa1(0x161)]-0x1;_0x3c4000>=0x0;_0x3c4000--)(_0x552e81=_0x2f73bf[_0x3c4000])&&(_0x1199f5=(_0x10b6f1<0x3?_0x552e81(_0x1199f5):_0x10b6f1>0x3?_0x552e81(_0x3b5f23,_0x5dadcc,_0x1199f5):_0x552e81(_0x3b5f23,_0x5dadcc))||_0x1199f5);}return _0x10b6f1>0x3&&_0x1199f5&&Object[_0x422aa1(0x11e)](_0x3b5f23,_0x5dadcc,_0x1199f5),_0x1199f5;}let _0x46ec36=class extends _0x2a83f8['RxDisposable']{constructor(_0x505bc8,_0x39fb23,_0x3185ba){const _0x38f421=_0xe4c58d;super(),this[_0x38f421(0x11c)]=_0x505bc8,this['_injector']=_0x39fb23,this[_0x38f421(0x1c2)]=_0x3185ba,_0x5470e1(this,'_entities',new Map()),this['_init']();}async['getLiveShareCoordinator'](_0x226c3e){const _0x4aca6d=_0xe4c58d;return this['_entities'][_0x4aca6d(0x1a8)](_0x226c3e)||await this['_startLiveShareCoordinator'](_0x226c3e),this[_0x4aca6d(0x19e)][_0x4aca6d(0x1e7)](_0x226c3e);}[_0xe4c58d(0x1e0)](_0x5deff1){const _0x114de6=_0xe4c58d;return this[_0x114de6(0x19e)][_0x114de6(0x1e7)](_0x5deff1)??null;}[_0xe4c58d(0x1f5)](){const _0x4df2f2=_0xe4c58d;this[_0x4df2f2(0x11c)][_0x4df2f2(0x160)](_0x2a83f8[_0x4df2f2(0x1b2)][_0x4df2f2(0x1b7)])[_0x4df2f2(0x1cc)]((0x0,_0x32f425[_0x4df2f2(0x1d2)])(this[_0x4df2f2(0x1c3)]))[_0x4df2f2(0x1bb)](async _0x139050=>{const _0x441569=_0x4df2f2;let _0x42b466=_0x139050[_0x441569(0x13a)][_0x441569(0x1d4)]();this[_0x441569(0x19e)][_0x441569(0x1a8)](_0x42b466)||this[_0x441569(0x1af)](_0x42b466);}),this[_0x4df2f2(0x11c)]['getTypeOfUnitDisposed$'](_0x2a83f8['UniverInstanceType']['UNIVER_SHEET'])[_0x4df2f2(0x1cc)]((0x0,_0x32f425[_0x4df2f2(0x1d2)])(this[_0x4df2f2(0x1c3)]))['subscribe'](_0x417896=>{const _0x3de8c4=_0x4df2f2;let _0xaf6d07=_0x417896['getUnitId'](),_0x3df1da=this[_0x3de8c4(0x19e)][_0x3de8c4(0x1e7)](_0xaf6d07);_0x3df1da==null||_0x3df1da[_0x3de8c4(0x1b4)]();});}async['_startLiveShareCoordinator'](_0x305df8){const _0x264968=_0xe4c58d;let _0x5436a9=await this[_0x264968(0x1c2)][_0x264968(0x1c0)](_0x305df8),_0x451063=this[_0x264968(0x192)]['createInstance'](_0x476686,_0x305df8,_0x5436a9);return _0x451063[_0x264968(0x1a0)](),this[_0x264968(0x19e)]['set'](_0x305df8,_0x451063),_0x451063;}};_0x46ec36=_0x3ae8e5([_0x26d1cf(0x0,_0x2a83f8[_0xe4c58d(0x1b8)]),_0x26d1cf(0x1,(0x0,_0x2a83f8[_0xe4c58d(0x190)])(_0x2a83f8[_0xe4c58d(0x15b)])),_0x26d1cf(0x2,(0x0,_0x2a83f8['Inject'])(_0x425778['CollaborationSessionService']))],_0x46ec36);let _0x3b4078=function(_0x19a0a5){const _0x25f38d=_0xe4c58d;return _0x19a0a5[_0x25f38d(0x1aa)]=_0x25f38d(0x1f2),_0x19a0a5[_0x25f38d(0x1a1)]=_0x25f38d(0x15f),_0x19a0a5[_0x25f38d(0x180)]=_0x25f38d(0x1f1),_0x19a0a5[_0x25f38d(0x12e)]='not-following',_0x19a0a5['PRESENTING']=_0x25f38d(0x19b),_0x19a0a5;}({}),_0x476686=class extends _0x2a83f8['RxDisposable']{get['_status'](){const _0x442a70=_0xe4c58d;return this[_0x442a70(0x143)][_0x442a70(0x11b)]();}constructor(_0x2ae2db,_0x3d6f29,_0x22c3e2,_0x383c0b,_0x46bce0){const _0x3dd77c=_0xe4c58d;super(),this[_0x3dd77c(0x195)]=_0x2ae2db,this[_0x3dd77c(0x123)]=_0x3d6f29,this['_configService']=_0x22c3e2,this[_0x3dd77c(0x1f3)]=_0x383c0b,this[_0x3dd77c(0x1ef)]=_0x46bce0,_0x5470e1(this,'_status$',new _0x244db7[(_0x3dd77c(0x14f))](_0x3dd77c(0x15f))),_0x5470e1(this,_0x3dd77c(0x187),this[_0x3dd77c(0x143)][_0x3dd77c(0x1ee)]()),_0x5470e1(this,_0x3dd77c(0x1f5),!0x1),_0x5470e1(this,_0x3dd77c(0x1d5),null),_0x5470e1(this,'_presenter',null);}[_0xe4c58d(0x1b4)](){const _0x480fd5=_0xe4c58d;var _0x2d125e;(_0x2d125e=this['_commandDisposable'])==null||_0x2d125e['dispose'](),this[_0x480fd5(0x143)][_0x480fd5(0x17c)]('idle'),this[_0x480fd5(0x143)][_0x480fd5(0x1a7)]();}[_0xe4c58d(0x181)](){const _0x330880=_0xe4c58d;return this[_0x330880(0x168)];}[_0xe4c58d(0x1a0)](){const _0x10b228=_0xe4c58d;this['_init']||(this[_0x10b228(0x1f5)]=!0x0,this[_0x10b228(0x123)][_0x10b228(0x1f8)][_0x10b228(0x1cc)]((0x0,_0x32f425['takeUntil'])(this[_0x10b228(0x1c3)]))[_0x10b228(0x1bb)](_0x25b325=>{const _0x462557=_0x10b228;switch(_0x25b325){case _0x425778[_0x462557(0x1e4)][_0x462557(0x1aa)]:this[_0x462557(0x13b)]();break;case _0x425778[_0x462557(0x1e4)][_0x462557(0x18e)]:this['_handleOnline']();break;default:}}),this[_0x10b228(0x123)]['event$'][_0x10b228(0x1cc)]((0x0,_0x32f425[_0x10b228(0x1d2)])(this[_0x10b228(0x1c3)]))[_0x10b228(0x1bb)](_0x4be7c4=>{const _0x15adaf=_0x10b228;let {eventID:_0x1c5fc1}=_0x4be7c4;switch(_0x1c5fc1){case _0x545c38[_0x15adaf(0x16f)][_0x15adaf(0x1cd)]:this['_handleNewHost'](_0x4be7c4);break;case _0x545c38[_0x15adaf(0x16f)]['LIVESHARE_OPERATION']:this[_0x15adaf(0x1d6)](_0x4be7c4);break;case _0x545c38[_0x15adaf(0x16f)]['LIVESHARE_TERMINATE']:this[_0x15adaf(0x164)]();break;case _0x545c38[_0x15adaf(0x16f)][_0x15adaf(0x1bc)]:this[_0x15adaf(0x19f)](_0x4be7c4);break;default:}}));}['tryStartPresenting'](){const _0x51778c=_0xe4c58d;this[_0x51778c(0x123)][_0x51778c(0x13e)]({'eventID':_0x545c38[_0x51778c(0x16f)][_0x51778c(0x1d3)],'data':{'unitID':this[_0x51778c(0x195)],'userID':this[_0x51778c(0x123)][_0x51778c(0x1ad)]()}},this['_unitID']);}['stopPresenting'](){const _0x28ccba=_0xe4c58d;this['_status']===_0x28ccba(0x19b)&&(this[_0x28ccba(0x143)][_0x28ccba(0x17c)](_0x28ccba(0x15f)),this[_0x28ccba(0x123)][_0x28ccba(0x13e)]({'eventID':_0x545c38[_0x28ccba(0x16f)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x28ccba(0x195)]}},this['_unitID']));}[_0xe4c58d(0x145)](){const _0x522615=_0xe4c58d;this[_0x522615(0x168)]==='not-following'&&(this['_status$'][_0x522615(0x17c)](_0x522615(0x1f1)),this[_0x522615(0x162)]());}[_0xe4c58d(0x124)](){const _0x4af9e2=_0xe4c58d;this[_0x4af9e2(0x168)]==='following'&&this['_stopFollowing']();}[_0xe4c58d(0x14d)](_0x32e011){const _0x4e1f50=_0xe4c58d;let {presenter:_0x3ffada}=_0x32e011[_0x4e1f50(0x166)],_0x20c296=this[_0x4e1f50(0x123)][_0x4e1f50(0x1ad)]();this[_0x4e1f50(0x16b)]=_0x3ffada,_0x3ffada===_0x20c296?(this[_0x4e1f50(0x1f0)](),this[_0x4e1f50(0x1ed)]()):this[_0x4e1f50(0x168)]!==_0x4e1f50(0x12d)&&(this['_stopPresenting'](),this[_0x4e1f50(0x162)]());}['_fetchOperations'](){const _0x3153ba=_0xe4c58d;let _0x5de4bc={'eventID':_0x545c38['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x3153ba(0x123)][_0x3153ba(0x13e)](_0x5de4bc,this[_0x3153ba(0x195)]);}['_handleTerminate'](){const _0x18db11=_0xe4c58d;this[_0x18db11(0x16b)]=null,this[_0x18db11(0x168)]!=='presenting'&&this[_0x18db11(0x1bf)]();}[_0xe4c58d(0x19f)](_0x37aeed){const _0x248960=_0xe4c58d;if(this[_0x248960(0x168)]===_0x248960(0x1f1)&&this[_0x248960(0x16b)]===_0x37aeed[_0x248960(0x166)]['memberID']){let _0x1959d8=(0x0,_0x545c38[_0x248960(0x1a6)])(_0x37aeed['data'])[_0x248960(0x174)][_0x248960(0x130)]()[_0x248960(0x136)](_0x174925=>_0x174925['id']===_0xc44925[_0x248960(0x176)]['id']);if(_0x1959d8){let _0x518149=_0x1959d8[_0x248960(0x141)][_0x248960(0x12c)],_0x333eda=_0x1959d8[_0x248960(0x141)][_0x248960(0x139)]['id'];setTimeout(()=>{const _0x4d2a14=_0x248960;this[_0x4d2a14(0x1ef)][_0x4d2a14(0x1fb)](_0xc44925[_0x4d2a14(0x1f4)]['id'],{'unitId':_0x518149,'subUnitId':_0x333eda},{'fromCollab':!0x0});});}}}[_0xe4c58d(0x1ed)](){const _0x71a695=_0xe4c58d;var _0x3d4a4c;(_0x3d4a4c=this[_0x71a695(0x1d5)])==null||_0x3d4a4c[_0x71a695(0x1b4)](),this[_0x71a695(0x143)][_0x71a695(0x17c)](_0x71a695(0x19b));let _0x12e564=new Map(),_0x42ec86=this[_0x71a695(0x1d5)]=new _0x2a83f8['DisposableCollection']();_0x42ec86[_0x71a695(0x199)]((0x0,_0x2a83f8[_0x71a695(0x13d)])(()=>{_0x12e564['forEach'](({subject:_0x549738,subscription:_0xa19b89})=>{const _0x2299e0=_0x5e9a;_0xa19b89[_0x2299e0(0x135)](),_0x549738[_0x2299e0(0x1a7)]();}),_0x12e564['clear']();})),_0x42ec86[_0x71a695(0x199)](this[_0x71a695(0x1ef)][_0x71a695(0x1cb)](_0x5d2249=>{const _0x23fb07=_0x71a695;if(_0x5d2249[_0x23fb07(0x191)]!==_0x2a83f8[_0x23fb07(0x1e8)]['OPERATION']||!this['_liveShareService'][_0x23fb07(0x1ae)](_0x5d2249['id']))return;let {id:_0x11a2a9}=_0x5d2249,_0x40c9ff;if(_0x12e564[_0x23fb07(0x1a8)](_0x11a2a9))_0x40c9ff=_0x12e564[_0x23fb07(0x1e7)](_0x11a2a9)[_0x23fb07(0x133)];else{_0x40c9ff=new _0x244db7[(_0x23fb07(0x175))]();let _0x1767f9=_0x40c9ff[_0x23fb07(0x1cc)]((0x0,_0x32f425['throttleTime'])(this[_0x23fb07(0x1de)]['getConfig'](_0x23fb07(0x19c))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x23fb07(0x1bb)](_0xb1c16a=>{const _0x86bbec=_0x23fb07;this[_0x86bbec(0x123)][_0x86bbec(0x13e)]({'eventID':_0x545c38[_0x86bbec(0x16f)][_0x86bbec(0x17d)],'data':{'unitID':this[_0x86bbec(0x195)],'operations':{[_0xb1c16a['id']]:{'id':_0xb1c16a['id'],'params':JSON[_0x86bbec(0x1a3)](_0xb1c16a[_0x86bbec(0x141)])}}}},this[_0x86bbec(0x195)]);});_0x12e564['set'](_0x11a2a9,{'subject':_0x40c9ff,'subscription':_0x1767f9});}_0x40c9ff[_0x23fb07(0x17c)](_0x5d2249);})),this[_0x71a695(0x1f3)][_0x71a695(0x1ba)](this[_0x71a695(0x195)])['forEach'](_0x227e4f=>this['_collabSession'][_0x71a695(0x13e)]({'eventID':_0x545c38[_0x71a695(0x16f)][_0x71a695(0x17d)],'data':{'unitID':this[_0x71a695(0x195)],'operations':{[_0x227e4f['id']]:{'id':_0x227e4f['id'],'params':JSON[_0x71a695(0x1a3)](_0x227e4f[_0x71a695(0x141)])}}}},this[_0x71a695(0x195)]));}['_stopPresenting'](){const _0x727b31=_0xe4c58d;var _0x344169;this['_status$'][_0x727b31(0x17c)]('idle'),(_0x344169=this[_0x727b31(0x1d5)])==null||_0x344169['dispose'](),this['_commandDisposable']=null;}[_0xe4c58d(0x162)](){const _0x43cd79=_0xe4c58d;var _0x25793f;(_0x25793f=this['_commandDisposable'])==null||_0x25793f[_0x43cd79(0x1b4)](),this['_status$']['next']('following');}[_0xe4c58d(0x1bf)](){const _0x142472=_0xe4c58d;var _0x1d85e2;this['_status$'][_0x142472(0x17c)](_0x142472(0x15f)),(_0x1d85e2=this['_commandDisposable'])==null||_0x1d85e2[_0x142472(0x1b4)](),this[_0x142472(0x1d5)]=null;}[_0xe4c58d(0x1f0)](){const _0x47f8b2=_0xe4c58d;var _0x1d4a8f;this[_0x47f8b2(0x143)][_0x47f8b2(0x17c)](_0x47f8b2(0x12d)),(_0x1d4a8f=this[_0x47f8b2(0x1d5)])==null||_0x1d4a8f[_0x47f8b2(0x1b4)]();}[_0xe4c58d(0x1d6)](_0x321098){const _0x5d79ad=_0xe4c58d;if(['presenting',_0x5d79ad(0x12d),_0x5d79ad(0x1f2)][_0x5d79ad(0x1ac)](this[_0x5d79ad(0x168)])||!_0x321098[_0x5d79ad(0x166)][_0x5d79ad(0x148)]||_0x321098[_0x5d79ad(0x166)][_0x5d79ad(0x148)]===this['_collabSession'][_0x5d79ad(0x1ad)]())return;this[_0x5d79ad(0x168)]==='idle'&&this[_0x5d79ad(0x162)]();let _0x25bdae=_0x321098[_0x5d79ad(0x166)][_0x5d79ad(0x1b9)];Object[_0x5d79ad(0x183)](_0x25bdae)[_0x5d79ad(0x1ce)](_0x30599d=>{const _0x46e3e2=_0x5d79ad;this['_commandService'][_0x46e3e2(0x1fb)](_0x30599d['id'],_0x30599d[_0x46e3e2(0x141)]?JSON[_0x46e3e2(0x137)](_0x30599d[_0x46e3e2(0x141)]):null,{'fromCollab':!0x0});});}[_0xe4c58d(0x13b)](){const _0x245c01=_0xe4c58d;var _0xe42a37;this['_status$'][_0x245c01(0x17c)](_0x245c01(0x1f2)),(_0xe42a37=this[_0x245c01(0x1d5)])==null||_0xe42a37[_0x245c01(0x1b4)]();}[_0xe4c58d(0x172)](){const _0xa5ebc9=_0xe4c58d;this[_0xa5ebc9(0x143)][_0xa5ebc9(0x17c)](_0xa5ebc9(0x15f)),this[_0xa5ebc9(0x163)]();}};_0x476686=_0x3ae8e5([_0x26d1cf(0x2,_0x2a83f8[_0xe4c58d(0x153)]),_0x26d1cf(0x3,(0x0,_0x2a83f8['Inject'])(_0x318b55)),_0x26d1cf(0x4,_0x2a83f8[_0xe4c58d(0x14e)])],_0x476686);var _0x540f22='@univerjs-pro/live-share',_0x41b195=_0xe4c58d(0x1a5);let _0x5fbbf0={},_0x34376d=class extends _0x2a83f8['Disposable']{constructor(_0x19d63c){const _0x262ab7=_0xe4c58d;super(),this[_0x262ab7(0x1f3)]=_0x19d63c,this['_init']();}['_init'](){const _0x500798=_0xe4c58d;[_0x13de63[_0x500798(0x134)]['id'],_0x13de63[_0x500798(0x147)]['id'],_0xc44925['SetWorksheetActiveOperation']['id']][_0x500798(0x1ce)](_0x41ee9a=>{const _0x50ddef=_0x500798;this[_0x50ddef(0x1e5)](this[_0x50ddef(0x1f3)][_0x50ddef(0x12f)](_0x41ee9a));});}};_0x34376d=_0x3ae8e5([_0x26d1cf(0x0,(0x0,_0x2a83f8[_0xe4c58d(0x190)])(_0x318b55))],_0x34376d);function _0xe6607b({ref:_0x5633a8,..._0x39526f}){const _0x491402=_0xe4c58d;let {icon:_0x51c4aa,id:_0x30793d,className:_0x150345,extend:_0xf3cf3e,..._0x1ab85a}=_0x39526f,_0x70b0c=('univerjs-icon\x20univerjs-icon-'+_0x30793d+'\x20'+(_0x150345||''))['trim'](),_0x439729=(0x0,_0x81793d[_0x491402(0x149)])('_'+_0x3364ef());return _0x14ef54(_0x51c4aa,''+_0x30793d,{'defIds':_0x51c4aa['defIds'],'idSuffix':_0x439729['current']},{'ref':_0x5633a8,'className':_0x70b0c,..._0x1ab85a},_0xf3cf3e);}function _0x14ef54(_0xd695d8,_0x45d6ac,_0x2a9a5b,_0x951bfe,_0x1dcad5){const _0x48b775=_0xe4c58d;return(0x0,_0x81793d[_0x48b775(0x198)])(_0xd695d8[_0x48b775(0x127)],{'key':_0x45d6ac,..._0x3933e5(_0xd695d8,_0x2a9a5b,_0x1dcad5),..._0x951bfe},(_0x596acc(_0xd695d8,_0x2a9a5b)['children']||[])[_0x48b775(0x194)]((_0x3a306f,_0x1afb05)=>_0x14ef54(_0x3a306f,_0x45d6ac+'-'+_0xd695d8[_0x48b775(0x127)]+'-'+_0x1afb05,_0x2a9a5b,void 0x0,_0x1dcad5)));}function _0x3933e5(_0x233301,_0x4a833e,_0x2c13ce){const _0x56ac1d=_0xe4c58d;let _0x597d5c={..._0x233301[_0x56ac1d(0x1b3)]};_0x2c13ce!=null&&_0x2c13ce['colorChannel1']&&_0x597d5c[_0x56ac1d(0x196)]===_0x56ac1d(0x155)&&(_0x597d5c[_0x56ac1d(0x196)]=_0x2c13ce[_0x56ac1d(0x155)]),_0x2c13ce!=null&&_0x2c13ce['colorChannel1']&&_0x597d5c[_0x56ac1d(0x16e)]===_0x56ac1d(0x155)&&(_0x597d5c[_0x56ac1d(0x16e)]=_0x2c13ce[_0x56ac1d(0x155)]),_0x233301['tag']===_0x56ac1d(0x156)&&_0x597d5c['id']&&(_0x597d5c['id']+=_0x4a833e[_0x56ac1d(0x15d)]),Object[_0x56ac1d(0x16c)](_0x597d5c)[_0x56ac1d(0x1ce)](([_0x335a4b,_0x2ec8f5])=>{const _0x2bb2eb=_0x56ac1d;_0x335a4b===_0x2bb2eb(0x156)&&typeof _0x2ec8f5==_0x2bb2eb(0x1a9)&&(_0x597d5c[_0x335a4b]=_0x2ec8f5[_0x2bb2eb(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x4a833e[_0x2bb2eb(0x15d)]+')'));});let {defIds:_0x4a8c1a}=_0x4a833e;return!_0x4a8c1a||_0x4a8c1a['length']===0x0?_0x597d5c:(_0x233301[_0x56ac1d(0x127)]==='use'&&_0x597d5c[_0x56ac1d(0x12a)]&&(_0x597d5c[_0x56ac1d(0x12a)]+=_0x4a833e[_0x56ac1d(0x15d)]),Object['entries'](_0x597d5c)[_0x56ac1d(0x1ce)](([_0x3ea97b,_0x23f9e7])=>{const _0x1f18b5=_0x56ac1d;typeof _0x23f9e7=='string'&&(_0x597d5c[_0x3ea97b]=_0x23f9e7[_0x1f18b5(0x1c9)](/url\(#(.*)\)/,_0x1f18b5(0x1bd)+_0x4a833e[_0x1f18b5(0x15d)]+')'));}),_0x597d5c);}function _0x596acc(_0x470ea6,_0x2e0f7b){const _0x1ef2be=_0xe4c58d;var _0x3af482;let {defIds:_0x43a80d}=_0x2e0f7b;return!_0x43a80d||_0x43a80d[_0x1ef2be(0x161)]===0x0?_0x470ea6:_0x470ea6['tag']===_0x1ef2be(0x11a)&&(_0x3af482=_0x470ea6['children'])!=null&&_0x3af482['length']?{..._0x470ea6,'children':_0x470ea6[_0x1ef2be(0x1c4)][_0x1ef2be(0x194)](_0x20792d=>typeof _0x20792d[_0x1ef2be(0x1b3)]['id']==_0x1ef2be(0x1a9)&&_0x43a80d&&_0x43a80d[_0x1ef2be(0x1ac)](_0x20792d[_0x1ef2be(0x1b3)]['id'])?{..._0x20792d,'attrs':{..._0x20792d['attrs'],'id':_0x20792d[_0x1ef2be(0x1b3)]['id']+_0x2e0f7b[_0x1ef2be(0x15d)]}}:_0x20792d)}:_0x470ea6;}function _0x3364ef(){const _0x57bb2e=_0xe4c58d;return Math[_0x57bb2e(0x1e2)]()[_0x57bb2e(0x188)](0x24)[_0x57bb2e(0x171)](0x2,0x8);}_0xe6607b[_0xe4c58d(0x129)]=_0xe4c58d(0x14b);let _0x47fdf2={'tag':_0xe4c58d(0x1ca),'attrs':{'xmlns':_0xe4c58d(0x16d),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0xe4c58d(0x1d1),'height':_0xe4c58d(0x1d1)},'children':[{'tag':_0xe4c58d(0x1dc),'attrs':{'fill':_0xe4c58d(0x1fa),'d':_0xe4c58d(0x19a)}},{'tag':_0xe4c58d(0x1dc),'attrs':{'fill':_0xe4c58d(0x1fa),'d':_0xe4c58d(0x14a),'fillRule':_0xe4c58d(0x16a),'clipRule':_0xe4c58d(0x16a)}}]},_0x5d666f=(0x0,_0x81793d['forwardRef'])(function(_0x43d4b2,_0x32eb7c){const _0x2ed601=_0xe4c58d;return(0x0,_0x81793d[_0x2ed601(0x198)])(_0xe6607b,Object[_0x2ed601(0x1e6)]({},_0x43d4b2,{'id':_0x2ed601(0x18a),'ref':_0x32eb7c,'icon':_0x47fdf2}));});_0x5d666f[_0xe4c58d(0x129)]='LiveShareIcon';function _0x49390d(){const _0x3aa596=_0xe4c58d;let _0x43b2b3=(0x0,_0x18944d[_0x3aa596(0x1f6)])(_0x46ec36),_0x4b1ee5=(0x0,_0x18944d['useDependency'])(_0x2a83f8[_0x3aa596(0x1b8)]),_0x1331f8=(0x0,_0x18944d[_0x3aa596(0x1c5)])(()=>_0x4b1ee5[_0x3aa596(0x17a)](_0x2a83f8['UniverInstanceType'][_0x3aa596(0x1b7)]),void 0x0,!0x1,[]),_0x2ed4e0=(0x0,_0x18944d['useObservable'])((0x0,_0x81793d[_0x3aa596(0x1d9)])(()=>_0x1331f8?(0x0,_0x244db7['defer'])(()=>(0x0,_0x244db7[_0x3aa596(0x11d)])(_0x43b2b3[_0x3aa596(0x186)](_0x1331f8[_0x3aa596(0x1d4)]()))):(0x0,_0x244db7['of'])(null),[_0x1331f8,_0x43b2b3]),null),_0x1d37a7=(0x0,_0x18944d[_0x3aa596(0x1c5)])(_0x2ed4e0?()=>_0x2ed4e0[_0x3aa596(0x187)]:null,_0x3aa596(0x15f),!0x1,[_0x2ed4e0]);return _0x2ed4e0?(0x0,_0xfb6994['jsx'])(_0x30fd9d[_0x3aa596(0x151)],{'align':_0x3aa596(0x132),'disabled':_0x1d37a7===_0x3aa596(0x1f2),'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-gray-0\x20dark:!univer-text-gray-0','overlay':(0x0,_0xfb6994[_0x3aa596(0x131)])(_0x576351,{'status':_0x1d37a7,'coordinator':_0x2ed4e0}),'children':(0x0,_0xfb6994[_0x3aa596(0x131)])(_0x30fd9d[_0x3aa596(0x144)],{'size':'icon','variant':_0x3aa596(0x185),'disabled':_0x1d37a7===_0x3aa596(0x1f2),'type':_0x3aa596(0x138),'children':(0x0,_0xfb6994['jsx'])(_0x5d666f,{})})}):null;}function _0x576351(_0x40ec76){const _0x52205d=_0xe4c58d;let {status:_0x2042f1,coordinator:_0x5dd763}=_0x40ec76;switch(_0x2042f1){case'idle':return(0x0,_0xfb6994[_0x52205d(0x131)])(_0x2b9334,{'coordinator':_0x5dd763});case'following':return(0x0,_0xfb6994['jsx'])(_0x2f32dd,{'coordinator':_0x5dd763});case _0x52205d(0x12d):return(0x0,_0xfb6994[_0x52205d(0x131)])(_0x46d80d,{'coordinator':_0x5dd763});case _0x52205d(0x1f2):return(0x0,_0xfb6994[_0x52205d(0x131)])(_0x3990f4,{});case _0x52205d(0x19b):return(0x0,_0xfb6994['jsx'])(_0xc6d72,{'coordinator':_0x5dd763});default:return null;}}function _0x2b9334(_0xafdecf){const _0x1fe96f=_0xe4c58d;let {coordinator:_0x12ca6d}=_0xafdecf;return(0x0,_0xfb6994['jsxs'])(_0xfb6994[_0x1fe96f(0x126)],{'children':[(0x0,_0xfb6994[_0x1fe96f(0x131)])('div',{'className':_0x1fe96f(0x18c),'children':_0x1fe96f(0x197)}),(0x0,_0xfb6994[_0x1fe96f(0x131)])(_0x30fd9d[_0x1fe96f(0x144)],{'onClick':()=>_0x12ca6d[_0x1fe96f(0x17f)](),'children':'Start'})]});}function _0x2f32dd(_0x1f8c2f){const _0x209979=_0xe4c58d;let {coordinator:_0x5f279f}=_0x1f8c2f;return(0x0,_0xfb6994[_0x209979(0x1eb)])(_0xfb6994[_0x209979(0x126)],{'children':[(0x0,_0xfb6994[_0x209979(0x131)])(_0x209979(0x184),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x209979(0x173)}),(0x0,_0xfb6994['jsx'])(_0x30fd9d[_0x209979(0x144)],{'onClick':()=>_0x5f279f[_0x209979(0x124)](),'children':_0x209979(0x165)})]});}function _0x46d80d(_0x4bdca7){const _0xb19ff7=_0xe4c58d;let {coordinator:_0x2c95cf}=_0x4bdca7;return(0x0,_0xfb6994['jsxs'])(_0xfb6994[_0xb19ff7(0x126)],{'children':[(0x0,_0xfb6994[_0xb19ff7(0x131)])('div',{'className':_0xb19ff7(0x18c),'children':_0xb19ff7(0x19d)}),(0x0,_0xfb6994[_0xb19ff7(0x131)])(_0x30fd9d[_0xb19ff7(0x144)],{'variant':_0xb19ff7(0x185),'onClick':()=>_0x2c95cf[_0xb19ff7(0x145)](),'children':_0xb19ff7(0x1f9)})]});}function _0xc6d72(_0x2e3d2b){const _0x440585=_0xe4c58d;let {coordinator:_0x5a43a6}=_0x2e3d2b;return(0x0,_0xfb6994[_0x440585(0x1eb)])(_0xfb6994[_0x440585(0x126)],{'children':[(0x0,_0xfb6994[_0x440585(0x131)])(_0x440585(0x184),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x440585(0x140)}),(0x0,_0xfb6994[_0x440585(0x131)])(_0x30fd9d[_0x440585(0x144)],{'variant':_0x440585(0x1c8),'onClick':()=>_0x5a43a6[_0x440585(0x18d)](),'children':'Stop\x20presenting'})]});}function _0x3990f4(){const _0x558845=_0xe4c58d;return(0x0,_0xfb6994[_0x558845(0x131)])(_0xfb6994[_0x558845(0x126)],{'children':'You\x27are\x20offline.'});}let _0x5d0922=class extends _0x2a83f8['Disposable']{constructor(_0x2f4a7c,_0x29ac90){const _0x5b60f0=_0xe4c58d;super(),this[_0x5b60f0(0x192)]=_0x2f4a7c,this['_uiPartsService']=_0x29ac90,this[_0x5b60f0(0x169)]();}['_mountLiveShare'](){const _0x9e45d8=_0xe4c58d;this[_0x9e45d8(0x1e5)](this[_0x9e45d8(0x179)]['registerComponent'](_0x18944d[_0x9e45d8(0x1b5)][_0x9e45d8(0x157)],()=>(0x0,_0x18944d[_0x9e45d8(0x1e9)])(_0x49390d,this[_0x9e45d8(0x192)])));}};_0x5d0922=_0x3ae8e5([_0x26d1cf(0x0,(0x0,_0x2a83f8[_0xe4c58d(0x190)])(_0x2a83f8[_0xe4c58d(0x15b)])),_0x26d1cf(0x1,_0x18944d[_0xe4c58d(0x1e3)])],_0x5d0922);let _0xb30d4b=class extends _0x2a83f8[_0xe4c58d(0x154)]{constructor(_0x1ffd86=_0x5fbbf0,_0x2e138b,_0x32ebdb){const _0x10dc79=_0xe4c58d;super(),this['_config']=_0x1ffd86,this[_0x10dc79(0x192)]=_0x2e138b,this[_0x10dc79(0x1de)]=_0x32ebdb;let {..._0x46248c}=(0x0,_0x2a83f8[_0x10dc79(0x121)])({},_0x5fbbf0,this['_config']);this[_0x10dc79(0x1de)][_0x10dc79(0x1c1)](_0x10dc79(0x1ea),_0x46248c);}['onStarting'](){const _0x4747c9=_0xe4c58d;(0x0,_0x2a83f8['registerDependencies'])(this[_0x4747c9(0x192)],(0x0,_0x2a83f8['mergeOverrideWithDependencies'])([[_0x318b55],[_0x46ec36],[_0x34376d],[_0x5d0922]],this[_0x4747c9(0x189)][_0x4747c9(0x17e)])),(0x0,_0x2a83f8[_0x4747c9(0x152)])(this[_0x4747c9(0x192)],[[_0x34376d]]);}['onRendered'](){const _0x30b72a=_0xe4c58d;(0x0,_0x2a83f8[_0x30b72a(0x152)])(this[_0x30b72a(0x192)],[[_0x5d0922]]);}};_0x5470e1(_0xb30d4b,'type',_0x2a83f8['UniverInstanceType'][_0xe4c58d(0x122)]),_0x5470e1(_0xb30d4b,_0xe4c58d(0x11f),_0xe4c58d(0x1a4)),_0x5470e1(_0xb30d4b,_0xe4c58d(0x13f),_0x540f22),_0x5470e1(_0xb30d4b,_0xe4c58d(0x170),_0x41b195),_0xb30d4b=_0x3ae8e5([(0x0,_0x2a83f8['DependentOn'])(_0x4c4cea[_0xe4c58d(0x193)],_0x425778[_0xe4c58d(0x1c7)]),_0x26d1cf(0x1,(0x0,_0x2a83f8[_0xe4c58d(0x190)])(_0x2a83f8[_0xe4c58d(0x15b)])),_0x26d1cf(0x2,_0x2a83f8[_0xe4c58d(0x153)])],_0xb30d4b),Object[_0xe4c58d(0x11e)](_0xfff3f6,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x46ec36;}}),_0xfff3f6['LiveShareStatus']=_0x3b4078,Object['defineProperty'](_0xfff3f6,_0xe4c58d(0x17b),{'enumerable':!0x0,'get':function(){return _0xb30d4b;}});}));function _0x3f89(){const _0xbfc0=['pluginName','rxjs/operators','merge','UNIVER_UNKNOWN','_collabSession','stopFollowing','Disposable','Fragment','tag','operators','displayName','xlink:href','@univerjs/sheets','unitId','not-following','NOT_FOLLOWING','registerSharedOperation','reverse','jsx','end','subject','SetZoomRatioOperation','unsubscribe','find','parse','button','sheet','unit','_handleOffline','3754471VpqbnC','toDisposable','send','packageName','You\x27re\x20presenting\x20the\x20document','params','889944DLHZba','_status$','Button','startFollowing','293998BmMuAY','SetScrollOperation','presenter','useRef','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','UniverIcon','UniverDesign','_handleNewHost','ICommandService','BehaviorSubject','_reporters','Dropdown','touchDependencies','IConfigService','Plugin','colorChannel1','mask','HEADER_MENU','UniverProCollaborationClient','@univerjs-pro/collaboration-client','1140544Nlrbgb','Injector','object','idSuffix','delete','idle','getTypeOfUnitAdded$','length','_startFollowing','_fetchOperations','_handleTerminate','Stop\x20following','data','_sharedOperations','_status','_mountLiveShare','evenodd','_presenter','entries','http://www.w3.org/2000/svg','stroke','CollaborationEvent','version','substring','_handleOnline','You\x27re\x20following\x20the\x20presenter','mutations','Subject','InsertSheetMutation','function','1554456OpPyMW','_uiPartsService','getCurrentTypeOfUnit$','UniverLiveSharePlugin','next','LIVESHARE_OPERATION','override','tryStartPresenting','FOLLOWING','getStatus','React','values','div','text','getLiveShareCoordinator','status$','toString','_config','live-share-icon','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopPresenting','ONLINE','rxjs','Inject','type','_injector','UniverLicensePlugin','map','_unitID','fill','Present\x20this\x20document','createElement','add','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','presenting','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20not\x20following\x20the\x20presenter','_entities','_handleNewChangeSets','init','IDLE','amd','stringify','UNIVER_LIVE_SHARE_PLUGIN','1.0.0-beta.1','parseProtocolChangeset','complete','has','string','OFFLINE','iterator','includes','getMemberID','shouldShareOperation','_startLiveShareCoordinator','UniverProLiveShare','@univerjs-pro/collaboration','UniverInstanceType','attrs','dispose','BuiltInUIPart','getOwnPropertyDescriptor','UNIVER_SHEET','IUniverInstanceService','operations','getInitialStates','subscribe','NEW_CHANGESETS','url(#$1','10782iZdLFF','_beIdle','requireSession','setConfig','_collabSessionService','dispose$','children','useObservable','@univerjs/design','UniverCollaborationClientPlugin','default','replace','svg','onCommandExecuted','pipe','LIVESHARE_NEW_HOST','forEach','UniverProLicense','10RxJgXS','1em','takeUntil','LIVESHARE_REQUEST_HOST','getUnitId','_commandDisposable','_handleOperation','react','UniverUi','useMemo','1692128EUEQRN','2290iQFxwZ','path','8QBwUdP','_configService','decorate','getLiveShareCoordinatorSync','@univerjs-pro/license','random','IUIPartsService','SessionStatus','disposeWithMe','assign','get','CommandType','connectInjector','live-share.config','jsxs','prototype','_startPresenting','asObservable','_commandService','_stopFollowing','following','offline','_liveShareService','SetWorksheetActiveOperation','_init','useDependency','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sessionStatus$','Start\x20following','currentColor','executeCommand','defs','getValue','_univerInstanceService','from','defineProperty'];_0x3f89=function(){return _0xbfc0;};return _0x3f89();}
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.1",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -63,14 +63,14 @@
63
63
  },
64
64
  "dependencies": {
65
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"
66
+ "@univerjs-pro/collaboration": "1.0.0-beta.1",
67
+ "@univerjs-pro/collaboration-client": "1.0.0-beta.1",
68
+ "@univerjs-pro/license": "1.0.0-beta.1",
69
+ "@univerjs/design": "1.0.0-beta.1",
70
+ "@univerjs/sheets": "1.0.0-beta.1",
71
+ "@univerjs/ui": "1.0.0-beta.1",
72
+ "@univerjs/core": "1.0.0-beta.1",
73
+ "@univerjs/sheets-ui": "1.0.0-beta.1"
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.1",
83
+ "@univerjs/protocol": "1.0.0-beta.1"
84
84
  },
85
85
  "scripts": {
86
86
  "test": "vitest run",