@univerjs-pro/live-share 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x28f2c8=_0x1823;(function(_0xf6ed73,_0xf5635a){const _0x15b64d=_0x1823,_0x23c071=_0xf6ed73();while(!![]){try{const _0x3fb603=-parseInt(_0x15b64d(0xc8))/0x1+parseInt(_0x15b64d(0xc6))/0x2*(-parseInt(_0x15b64d(0xde))/0x3)+parseInt(_0x15b64d(0xc5))/0x4*(parseInt(_0x15b64d(0xdd))/0x5)+parseInt(_0x15b64d(0xbe))/0x6*(-parseInt(_0x15b64d(0xcd))/0x7)+-parseInt(_0x15b64d(0xc3))/0x8*(-parseInt(_0x15b64d(0xcb))/0x9)+parseInt(_0x15b64d(0xd5))/0xa+parseInt(_0x15b64d(0xd8))/0xb*(-parseInt(_0x15b64d(0xe3))/0xc);if(_0x3fb603===_0xf5635a)break;else _0x23c071['push'](_0x23c071['shift']());}catch(_0x5d37ac){_0x23c071['push'](_0x23c071['shift']());}}}(_0xc32e,0xb9a3a));let e=require(`@univerjs-pro/live-share`),t=require(`@univerjs/core`),n=require(`@univerjs/core/facade`);function r(_0x26b705){'@babel/helpers - typeof';const _0x6b3e=_0x1823;return r=typeof Symbol==_0x6b3e(0xbf)&&typeof Symbol['iterator']==_0x6b3e(0xdf)?function(_0x31ac7b){return typeof _0x31ac7b;}:function(_0x7fe6ce){const _0x324556=_0x6b3e;return _0x7fe6ce&&typeof Symbol==_0x324556(0xbf)&&_0x7fe6ce['constructor']===Symbol&&_0x7fe6ce!==Symbol[_0x324556(0xd9)]?_0x324556(0xdf):typeof _0x7fe6ce;},r(_0x26b705);}function i(_0x190c5c,_0x20d7d6){const _0x2113c1=_0x1823;if(r(_0x190c5c)!=_0x2113c1(0xd6)||!_0x190c5c)return _0x190c5c;var _0x5957d8=_0x190c5c[Symbol['toPrimitive']];if(_0x5957d8!==void 0x0){var _0x1d96fa=_0x5957d8[_0x2113c1(0xe0)](_0x190c5c,_0x20d7d6||'default');if(r(_0x1d96fa)!=_0x2113c1(0xd6))return _0x1d96fa;throw TypeError(_0x2113c1(0xc7));}return(_0x20d7d6==='string'?String:Number)(_0x190c5c);}function a(_0x1f4286){const _0x33bed9=_0x1823;var _0x5f0a41=i(_0x1f4286,_0x33bed9(0xc0));return r(_0x5f0a41)=='symbol'?_0x5f0a41:_0x5f0a41+'';}function _0xc32e(){const _0x165687=['UniverInstanceType','getLiveShareCoordinatorSync','9621840XIHtzC','getCurrentUnitOfType','796VUZYiZ','2yTQlNP','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','147188gxqZCf','getUnitId','FUniver','9RzyQpS','tryStartPresenting','14aDXhKO','getStatus','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','stopFollowing','FEnum','IUniverInstanceService','7371910SJpUED','object','LiveShareController','1738ULobCN','prototype','startFollowing','startPresenting','_liveShareController','32070MqmjkD','3364653zTAByY','symbol','call','_injector','LiveShareStatusEnum','65832MbBHoY','get','UNIVER_SHEET','961206IZuWOl','function','string'];_0xc32e=function(){return _0x165687;};return _0xc32e();}function o(_0x4ef7f7,_0xc52784,_0x1fd6cf){return(_0xc52784=a(_0xc52784))in _0x4ef7f7?Object['defineProperty'](_0x4ef7f7,_0xc52784,{'value':_0x1fd6cf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ef7f7[_0xc52784]=_0x1fd6cf,_0x4ef7f7;}var s=class extends n['FUniver']{constructor(..._0x104bec){super(..._0x104bec),o(this,'_liveShareController',void 0x0);}['_initialize'](_0x5346f6){const _0x30b8fe=_0x1823;this[_0x30b8fe(0xdc)]=_0x5346f6[_0x30b8fe(0xe4)](e[_0x30b8fe(0xd7)]);}['getLiveShareStatus'](){const _0x3d2ffc=_0x1823;var _0x3b5b1b;let _0x5445cd=this[_0x3d2ffc(0xe1)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x3d2ffc(0xe5)]);if(!_0x5445cd)throw Error(_0x3d2ffc(0xcf));let _0x38d33a=_0x5445cd['getUnitId'](),_0x22bc28=this[_0x3d2ffc(0xdc)][_0x3d2ffc(0xc2)](_0x38d33a);return(_0x3b5b1b=_0x22bc28==null?void 0x0:_0x22bc28[_0x3d2ffc(0xce)]())==null?e['LiveShareStatus']['IDLE']:_0x3b5b1b;}[_0x28f2c8(0xda)](){const _0x3447f0=_0x28f2c8;let _0x126b26=this[_0x3447f0(0xe1)]['get'](t[_0x3447f0(0xd4)])[_0x3447f0(0xc4)](t[_0x3447f0(0xc1)]['UNIVER_SHEET']);if(!_0x126b26)throw Error(_0x3447f0(0xcf));let _0x4a3b91=_0x126b26[_0x3447f0(0xc9)](),_0x42676d=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x4a3b91);if(!_0x42676d)throw Error(_0x3447f0(0xd0));_0x42676d['startFollowing']();}[_0x28f2c8(0xd2)](){const _0x46acc9=_0x28f2c8;let _0xb67893=this[_0x46acc9(0xe1)]['get'](t[_0x46acc9(0xd4)])[_0x46acc9(0xc4)](t[_0x46acc9(0xc1)]['UNIVER_SHEET']);if(!_0xb67893)throw Error(_0x46acc9(0xcf));let _0x23ae2f=_0xb67893[_0x46acc9(0xc9)](),_0x45d3d0=this[_0x46acc9(0xdc)][_0x46acc9(0xc2)](_0x23ae2f);if(!_0x45d3d0)throw Error(_0x46acc9(0xd0));_0x45d3d0[_0x46acc9(0xd2)]();}[_0x28f2c8(0xdb)](){const _0x4f9f84=_0x28f2c8;let _0x172e8b=this['_injector']['get'](t[_0x4f9f84(0xd4)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x4f9f84(0xe5)]);if(!_0x172e8b)throw Error(_0x4f9f84(0xcf));let _0x5127ad=_0x172e8b['getUnitId'](),_0x5e8543=this[_0x4f9f84(0xdc)][_0x4f9f84(0xc2)](_0x5127ad);if(!_0x5e8543)throw Error(_0x4f9f84(0xd0));_0x5e8543[_0x4f9f84(0xcc)]();}[_0x28f2c8(0xd1)](){const _0x36df87=_0x28f2c8;let _0x4c51db=this['_injector'][_0x36df87(0xe4)](t[_0x36df87(0xd4)])[_0x36df87(0xc4)](t[_0x36df87(0xc1)][_0x36df87(0xe5)]);if(!_0x4c51db)throw Error(_0x36df87(0xcf));let _0x5543c5=_0x4c51db[_0x36df87(0xc9)](),_0x45816c=this[_0x36df87(0xdc)]['getLiveShareCoordinatorSync'](_0x5543c5);if(!_0x45816c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x45816c[_0x36df87(0xd1)]();}};n[_0x28f2c8(0xca)]['extend'](s);function _0x1823(_0x49e153,_0x2eb3bd){_0x49e153=_0x49e153-0xbe;const _0xc32e83=_0xc32e();let _0x182366=_0xc32e83[_0x49e153];return _0x182366;}var c=class extends n[_0x28f2c8(0xd3)]{get[_0x28f2c8(0xe2)](){return e['LiveShareStatus'];}};n['FEnum']['extend'](c);
1
+ const _0x3435a7=_0x3ee2;function _0x51ee(){const _0xa57e18=['_initialize','tryStartPresenting','stopPresenting','function','29697460gxGUNK','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','string','getStatus','extend','2476080jYzury','toPrimitive','stopFollowing','getLiveShareCoordinatorSync','9FtCUWi','_liveShareController','get','call','LiveShareStatus','8854447GcybYF','_injector','No\x20active\x20workbook\x20found.','2184360ofmKLP','getCurrentUnitOfType','2LABFih','IDLE','2095716DTeKLG','FEnum','2773305xZcqYF','LiveShareStatusEnum','startFollowing','getLiveShareStatus','prototype','constructor','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverInstanceType','IUniverInstanceService','object','getUnitId','1054731zUfRsv','symbol','defineProperty','4CwAWwV','default','FUniver','UNIVER_SHEET'];_0x51ee=function(){return _0xa57e18;};return _0x51ee();}function _0x3ee2(_0x46e39e,_0xfe525e){_0x46e39e=_0x46e39e-0xa7;const _0x51ee3d=_0x51ee();let _0x3ee2ba=_0x51ee3d[_0x46e39e];return _0x3ee2ba;}(function(_0x117cdb,_0xba6027){const _0xceda41=_0x3ee2,_0x3545ec=_0x117cdb();while(!![]){try{const _0xd34ef9=parseInt(_0xceda41(0xbe))/0x1*(parseInt(_0xceda41(0xaf))/0x2)+-parseInt(_0xceda41(0xb3))/0x3*(-parseInt(_0xceda41(0xc1))/0x4)+parseInt(_0xceda41(0xad))/0x5+parseInt(_0xceda41(0xb1))/0x6+parseInt(_0xceda41(0xaa))/0x7+-parseInt(_0xceda41(0xce))/0x8+parseInt(_0xceda41(0xd2))/0x9*(-parseInt(_0xceda41(0xc9))/0xa);if(_0xd34ef9===_0xba6027)break;else _0x3545ec['push'](_0x3545ec['shift']());}catch(_0x48e518){_0x3545ec['push'](_0x3545ec['shift']());}}}(_0x51ee,0xb758d));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x451629){'@babel/helpers - typeof';const _0x2361a0=_0x3ee2;return r=typeof Symbol==_0x2361a0(0xc8)&&typeof Symbol['iterator']==_0x2361a0(0xbf)?function(_0x54b983){return typeof _0x54b983;}:function(_0x36fff6){const _0x26a333=_0x2361a0;return _0x36fff6&&typeof Symbol==_0x26a333(0xc8)&&_0x36fff6[_0x26a333(0xb8)]===Symbol&&_0x36fff6!==Symbol[_0x26a333(0xb7)]?'symbol':typeof _0x36fff6;},r(_0x451629);}function i(_0x100897,_0x378d73){const _0xa73ed3=_0x3ee2;if(r(_0x100897)!=_0xa73ed3(0xbc)||!_0x100897)return _0x100897;var _0x238940=_0x100897[Symbol[_0xa73ed3(0xcf)]];if(_0x238940!==void 0x0){var _0xb92468=_0x238940[_0xa73ed3(0xa8)](_0x100897,_0x378d73||_0xa73ed3(0xc2));if(r(_0xb92468)!=_0xa73ed3(0xbc))return _0xb92468;throw TypeError(_0xa73ed3(0xca));}return(_0x378d73===_0xa73ed3(0xcb)?String:Number)(_0x100897);}function a(_0x15e560){const _0x4b593c=_0x3ee2;var _0x2ff35d=i(_0x15e560,_0x4b593c(0xcb));return r(_0x2ff35d)==_0x4b593c(0xbf)?_0x2ff35d:_0x2ff35d+'';}function o(_0x1447de,_0x12010a,_0x2140f4){const _0x2898ad=_0x3ee2;return(_0x12010a=a(_0x12010a))in _0x1447de?Object[_0x2898ad(0xc0)](_0x1447de,_0x12010a,{'value':_0x2140f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1447de[_0x12010a]=_0x2140f4,_0x1447de;}var s=class extends n[_0x3435a7(0xc3)]{constructor(..._0x1c09b3){super(..._0x1c09b3),o(this,'_liveShareController',void 0x0);}[_0x3435a7(0xc5)](_0x371076){this['_liveShareController']=_0x371076['get'](e['LiveShareController']);}[_0x3435a7(0xb6)](){const _0x2107db=_0x3435a7;var _0x219124;let _0x4c01c8=this[_0x2107db(0xab)][_0x2107db(0xa7)](t[_0x2107db(0xbb)])['getCurrentUnitOfType'](t[_0x2107db(0xba)][_0x2107db(0xc4)]);if(!_0x4c01c8)throw Error(_0x2107db(0xac));let _0x231db6=_0x4c01c8[_0x2107db(0xbd)](),_0x44af3a=this[_0x2107db(0xd3)]['getLiveShareCoordinatorSync'](_0x231db6);return(_0x219124=_0x44af3a==null?void 0x0:_0x44af3a[_0x2107db(0xcc)]())==null?e[_0x2107db(0xa9)][_0x2107db(0xb0)]:_0x219124;}[_0x3435a7(0xb5)](){const _0xa63f96=_0x3435a7;let _0x3a6961=this['_injector']['get'](t[_0xa63f96(0xbb)])[_0xa63f96(0xae)](t[_0xa63f96(0xba)][_0xa63f96(0xc4)]);if(!_0x3a6961)throw Error(_0xa63f96(0xac));let _0x32eb5a=_0x3a6961[_0xa63f96(0xbd)](),_0x1030c3=this[_0xa63f96(0xd3)]['getLiveShareCoordinatorSync'](_0x32eb5a);if(!_0x1030c3)throw Error(_0xa63f96(0xb9));_0x1030c3[_0xa63f96(0xb5)]();}['stopFollowing'](){const _0x3969cc=_0x3435a7;let _0xb2873d=this['_injector'][_0x3969cc(0xa7)](t[_0x3969cc(0xbb)])[_0x3969cc(0xae)](t[_0x3969cc(0xba)][_0x3969cc(0xc4)]);if(!_0xb2873d)throw Error('No\x20active\x20workbook\x20found.');let _0x59a9f9=_0xb2873d[_0x3969cc(0xbd)](),_0x116e3d=this[_0x3969cc(0xd3)]['getLiveShareCoordinatorSync'](_0x59a9f9);if(!_0x116e3d)throw Error(_0x3969cc(0xb9));_0x116e3d[_0x3969cc(0xd0)]();}['startPresenting'](){const _0x5f4087=_0x3435a7;let _0x3398f2=this['_injector']['get'](t[_0x5f4087(0xbb)])[_0x5f4087(0xae)](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0x3398f2)throw Error(_0x5f4087(0xac));let _0x425ac9=_0x3398f2[_0x5f4087(0xbd)](),_0x3b8b59=this['_liveShareController'][_0x5f4087(0xd1)](_0x425ac9);if(!_0x3b8b59)throw Error(_0x5f4087(0xb9));_0x3b8b59[_0x5f4087(0xc6)]();}[_0x3435a7(0xc7)](){const _0x1aa77d=_0x3435a7;let _0x2f6373=this['_injector'][_0x1aa77d(0xa7)](t['IUniverInstanceService'])[_0x1aa77d(0xae)](t[_0x1aa77d(0xba)][_0x1aa77d(0xc4)]);if(!_0x2f6373)throw Error('No\x20active\x20workbook\x20found.');let _0x275701=_0x2f6373[_0x1aa77d(0xbd)](),_0xf06c86=this[_0x1aa77d(0xd3)]['getLiveShareCoordinatorSync'](_0x275701);if(!_0xf06c86)throw Error(_0x1aa77d(0xb9));_0xf06c86[_0x1aa77d(0xc7)]();}};n[_0x3435a7(0xc3)][_0x3435a7(0xcd)](s);var c=class extends n[_0x3435a7(0xb2)]{get[_0x3435a7(0xb4)](){return e['LiveShareStatus'];}};n['FEnum'][_0x3435a7(0xcd)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x533ef0=_0x219b;(function(_0x519167,_0x9ec045){const _0x19fb52=_0x219b,_0x592149=_0x519167();while(!![]){try{const _0x57c773=-parseInt(_0x19fb52(0x125))/0x1*(-parseInt(_0x19fb52(0xa4))/0x2)+parseInt(_0x19fb52(0x85))/0x3+-parseInt(_0x19fb52(0xea))/0x4*(parseInt(_0x19fb52(0xa8))/0x5)+parseInt(_0x19fb52(0x133))/0x6+parseInt(_0x19fb52(0xa6))/0x7*(parseInt(_0x19fb52(0x138))/0x8)+-parseInt(_0x19fb52(0x96))/0x9+parseInt(_0x19fb52(0xa5))/0xa*(-parseInt(_0x19fb52(0x11b))/0xb);if(_0x57c773===_0x9ec045)break;else _0x592149['push'](_0x592149['shift']());}catch(_0x56bd7f){_0x592149['push'](_0x592149['shift']());}}}(_0x5411,0x8b7c4),Object[_0x533ef0(0x97)](exports,Symbol[_0x533ef0(0xaa)],{'value':_0x533ef0(0x127)}));let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`@univerjs/design`),r=require(`@univerjs/icons`),i=require(`react`),a=require(`@univerjs-pro/collaboration`),o=require(`@univerjs-pro/collaboration-client`),s=require(`@univerjs/sheets`),c=require(`rxjs`),l=require(`rxjs/operators`),u=require(`react/jsx-runtime`),d=require(`@univerjs/sheets-ui`);function _0x5411(){const _0x485f31=['toPrimitive','forEach','get','LIVESHARE_FETCH_OPERATIONS','set','36eIJFRi','4924970qyLhMM','2192197FsVwvw','getCurrentTypeOfUnit$','5YKAGSB','HEADER_MENU','toStringTag','button','LiveShareCoordinator','UNIVER_SHEET','ICommandService','LiveShareService','_liveShareService','UniverInstanceType','has','mutations','_collabSession','useObservable','SetZoomRatioOperation','InsertSheetMutation','Plugin','packageName','touchDependencies','not-following','stopPresenting','default','_stopPresenting','_presenter','current','dispose$','toDisposable','dispose','map','symbol','function','getMemberID','useDependency','LiveShareController','SessionStatus','PRESENTING','getValue','UNIVER_LIVE_SHARE_PLUGIN','sessionStatus$','SetWorksheetActiveOperation','delete','send','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','add','_startFollowing','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','LiveShareStatus','length','OFFLINE','params','_collabSessionService','DesktopLiveShareController','call','getOwnPropertyDescriptor','LIVESHARE_NEW_HOST','_mountLiveShare','IConfigService','You\x27are\x20offline.','then','_config','_beIdle','SAME_OPERATION_SHARE_INTERVAL','_startPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','3200476pNmDjj','Subject','unitId','asObservable','UniverCollaborationClientPlugin','jsx','getTypeOfUnitDisposed$','0.24.0','subscribe','Stop\x20presenting','onStarting','_sharedOperations','Dropdown','OPERATION','object','_commandDisposable','LIVESHARE_OPERATION','_handleOperation','_reporters','disposeWithMe','UNIVER_UNKNOWN','data','connectInjector','registerSharedOperation','jsxs','createInstance','getUnitId','useRef','unsubscribe','NOT_FOLLOWING','mergeOverrideWithDependencies','text','div','CollaborationSessionService','RxDisposable','_stopFollowing','You\x27re\x20following\x20the\x20presenter','unit','event$','registerComponent','_unitID','presenter','getTypeOfUnitAdded$','merge','ONLINE','complete','registerDependencies','BehaviorSubject','_injector','11ycOqhn','IUIPartsService','live-share.config','string','_handleTerminate','presenting','_configService','DisposableCollection','CollaborationEvent','getInitialStates','32919qSbmIT','_status','Module','_status$','prototype','getLiveShareCoordinatorSync','status$','tryStartPresenting','startFollowing','takeUntil','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewChangeSets','includes','find','3107370wFaVvg','decorate','offline','clsx','_commandService','8VwjiaF','pipe','_handleOffline','executeCommand','following','SetScrollOperation','Button','FOLLOWING','from','requireSession','idle','Inject','IUniverInstanceService','shouldShareOperation','onCommandExecuted','clear','@univerjs-pro/live-share','Fragment','_uiPartsService','registerInitialStateReporter','_startLiveShareCoordinator','NEW_CHANGESETS','LIVESHARE_TERMINATE','iterator','_handleNewHost','getLiveShareCoordinator','stringify','type','_init','1381107euUECu','_fetchOperations','parseProtocolChangeset','You\x27re\x20not\x20following\x20the\x20presenter','constructor','end','operations','useEffect','Start','throttleTime','Disposable','next','Injector','_entities','_univerInstanceService','Stop\x20following','useState','180261heOpMT','defineProperty','stopFollowing','init','_handleOnline','memberID','onRendered','CommandType','getConfig'];_0x5411=function(){return _0x485f31;};return _0x5411();}function f(_0x52e5d7){'@babel/helpers - typeof';const _0x3a6e42=_0x533ef0;return f=typeof Symbol==_0x3a6e42(0xc6)&&typeof Symbol[_0x3a6e42(0x7f)]==_0x3a6e42(0xc5)?function(_0x5afbbd){return typeof _0x5afbbd;}:function(_0x91c131){const _0x30aba9=_0x3a6e42;return _0x91c131&&typeof Symbol==_0x30aba9(0xc6)&&_0x91c131[_0x30aba9(0x89)]===Symbol&&_0x91c131!==Symbol[_0x30aba9(0x129)]?_0x30aba9(0xc5):typeof _0x91c131;},f(_0x52e5d7);}function p(_0x2f14d9,_0xb4db8a){const _0x54095e=_0x533ef0;if(f(_0x2f14d9)!='object'||!_0x2f14d9)return _0x2f14d9;var _0x1fed19=_0x2f14d9[Symbol[_0x54095e(0x9f)]];if(_0x1fed19!==void 0x0){var _0x2b24e1=_0x1fed19[_0x54095e(0xdd)](_0x2f14d9,_0xb4db8a||_0x54095e(0xbd));if(f(_0x2b24e1)!=_0x54095e(0xf8))return _0x2b24e1;throw TypeError(_0x54095e(0xd2));}return(_0xb4db8a===_0x54095e(0x11e)?String:Number)(_0x2f14d9);}function m(_0xa6ee1){const _0x19bb36=_0x533ef0;var _0x2db95e=p(_0xa6ee1,_0x19bb36(0x11e));return f(_0x2db95e)==_0x19bb36(0xc5)?_0x2db95e:_0x2db95e+'';}function h(_0x4da490,_0x28eac5,_0x47b0a7){return(_0x28eac5=m(_0x28eac5))in _0x4da490?Object['defineProperty'](_0x4da490,_0x28eac5,{'value':_0x47b0a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4da490[_0x28eac5]=_0x47b0a7,_0x4da490;}var g=class extends e[_0x533ef0(0x8f)]{constructor(..._0x3b7608){super(..._0x3b7608),h(this,'_sharedOperations',new Set()),h(this,'_reporters',new Set());}[_0x533ef0(0x101)](_0x42aa08){const _0x2c0280=_0x533ef0;return this[_0x2c0280(0xf5)][_0x2c0280(0xd3)](_0x42aa08),(0x0,e[_0x2c0280(0xc2)])(()=>this['_sharedOperations'][_0x2c0280(0xd0)](_0x42aa08));}[_0x533ef0(0x7b)](_0x5a9f4b){const _0x56a09a=_0x533ef0;return this[_0x56a09a(0xfc)][_0x56a09a(0xd3)](_0x5a9f4b),(0x0,e['toDisposable'])(()=>this[_0x56a09a(0xfc)]['delete'](_0x5a9f4b));}[_0x533ef0(0x75)](_0x1b8186){const _0x39b6c2=_0x533ef0;return this['_sharedOperations'][_0x39b6c2(0xb2)](_0x1b8186);}['getInitialStates'](_0x1ba842){const _0x81906b=_0x533ef0;return Array[_0x81906b(0x140)](this[_0x81906b(0xfc)])[_0x81906b(0xc4)](_0x2b10f9=>_0x2b10f9(_0x1ba842));}};function _(_0x1ce259,_0x46224b){return function(_0x1b6234,_0x122a97){_0x46224b(_0x1b6234,_0x122a97,_0x1ce259);};}function v(_0x5f195f,_0x2bcbb3,_0x78ecad,_0x10f505){const _0x17187b=_0x533ef0;var _0x4155f8=arguments[_0x17187b(0xd8)],_0x200f60=_0x4155f8<0x3?_0x2bcbb3:_0x10f505===null?_0x10f505=Object[_0x17187b(0xde)](_0x2bcbb3,_0x78ecad):_0x10f505,_0x3b48b0;if(typeof Reflect==_0x17187b(0xf8)&&typeof Reflect[_0x17187b(0x134)]==_0x17187b(0xc6))_0x200f60=Reflect[_0x17187b(0x134)](_0x5f195f,_0x2bcbb3,_0x78ecad,_0x10f505);else{for(var _0x3d5a6e=_0x5f195f[_0x17187b(0xd8)]-0x1;_0x3d5a6e>=0x0;_0x3d5a6e--)(_0x3b48b0=_0x5f195f[_0x3d5a6e])&&(_0x200f60=(_0x4155f8<0x3?_0x3b48b0(_0x200f60):_0x4155f8>0x3?_0x3b48b0(_0x2bcbb3,_0x78ecad,_0x200f60):_0x3b48b0(_0x2bcbb3,_0x78ecad))||_0x200f60);}return _0x4155f8>0x3&&_0x200f60&&Object[_0x17187b(0x97)](_0x2bcbb3,_0x78ecad,_0x200f60),_0x200f60;}let y=class extends e['RxDisposable']{constructor(_0x1def8b,_0x4055b9,_0x5cd14c){const _0x5551e8=_0x533ef0;super(),this['_univerInstanceService']=_0x1def8b,this['_injector']=_0x4055b9,this[_0x5551e8(0xdb)]=_0x5cd14c,h(this,_0x5551e8(0x92),new Map()),this[_0x5551e8(0x84)]();}async['getLiveShareCoordinator'](_0x40c90f){const _0x490cc8=_0x533ef0;return this['_entities'][_0x490cc8(0xb2)](_0x40c90f)||await this[_0x490cc8(0x7c)](_0x40c90f),this[_0x490cc8(0x92)][_0x490cc8(0xa1)](_0x40c90f);}[_0x533ef0(0x12a)](_0x4af140){const _0x50716f=_0x533ef0;var _0x38aa3e;return(_0x38aa3e=this[_0x50716f(0x92)][_0x50716f(0xa1)](_0x4af140))==null?null:_0x38aa3e;}[_0x533ef0(0x84)](){const _0x117ab6=_0x533ef0;this[_0x117ab6(0x93)][_0x117ab6(0x114)](e[_0x117ab6(0xb1)][_0x117ab6(0xad)])['pipe']((0x0,l[_0x117ab6(0x12e)])(this[_0x117ab6(0xc1)]))[_0x117ab6(0xf2)](async _0x3b70e6=>{const _0x3c005b=_0x117ab6;let _0x4994fa=_0x3b70e6[_0x3c005b(0x10f)][_0x3c005b(0x104)]();this['_entities'][_0x3c005b(0xb2)](_0x4994fa)||this[_0x3c005b(0x7c)](_0x4994fa);}),this[_0x117ab6(0x93)][_0x117ab6(0xf0)](e['UniverInstanceType'][_0x117ab6(0xad)])[_0x117ab6(0x139)]((0x0,l[_0x117ab6(0x12e)])(this[_0x117ab6(0xc1)]))['subscribe'](_0x3bf702=>{const _0xa7c665=_0x117ab6;let _0x3e0fad=_0x3bf702['getUnitId'](),_0x23464b=this['_entities'][_0xa7c665(0xa1)](_0x3e0fad);_0x23464b==null||_0x23464b[_0xa7c665(0xc3)]();});}async[_0x533ef0(0x7c)](_0x46e47d){const _0x10c69c=_0x533ef0;let _0x4945ae=await this['_collabSessionService'][_0x10c69c(0x141)](_0x46e47d),_0x1b6d07=this[_0x10c69c(0x11a)][_0x10c69c(0x103)](x,_0x46e47d,_0x4945ae);return _0x1b6d07[_0x10c69c(0x99)](),this[_0x10c69c(0x92)][_0x10c69c(0xa3)](_0x46e47d,_0x1b6d07),_0x1b6d07;}};y=v([_(0x0,e[_0x533ef0(0x144)]),_(0x1,(0x0,e[_0x533ef0(0x143)])(e['Injector'])),_(0x2,(0x0,e[_0x533ef0(0x143)])(o[_0x533ef0(0x10b)]))],y);let b=function(_0x5787cf){const _0x2c8f18=_0x533ef0;return _0x5787cf[_0x2c8f18(0xd9)]=_0x2c8f18(0x135),_0x5787cf[_0x2c8f18(0xe9)]=_0x2c8f18(0x142),_0x5787cf[_0x2c8f18(0x13f)]=_0x2c8f18(0x13c),_0x5787cf[_0x2c8f18(0x107)]=_0x2c8f18(0xbb),_0x5787cf[_0x2c8f18(0xcb)]=_0x2c8f18(0x120),_0x5787cf;}({}),x=class extends e[_0x533ef0(0x10c)]{get['_status'](){const _0x40b21a=_0x533ef0;return this['_status$'][_0x40b21a(0xcc)]();}constructor(_0x100a46,_0x131377,_0x1fec7d,_0x17d7ae,_0x2fccbb){const _0x2c6792=_0x533ef0;super(),this[_0x2c6792(0x112)]=_0x100a46,this[_0x2c6792(0xb4)]=_0x131377,this[_0x2c6792(0x121)]=_0x1fec7d,this[_0x2c6792(0xb0)]=_0x17d7ae,this[_0x2c6792(0x137)]=_0x2fccbb,h(this,_0x2c6792(0x128),new c[(_0x2c6792(0x119))](_0x2c6792(0x142))),h(this,'status$',this[_0x2c6792(0x128)][_0x2c6792(0xed)]()),h(this,'_init',!0x1),h(this,_0x2c6792(0xf9),null),h(this,_0x2c6792(0xbf),null);}[_0x533ef0(0xc3)](){const _0x2218f3=_0x533ef0;var _0x246f32;(_0x246f32=this['_commandDisposable'])==null||_0x246f32[_0x2218f3(0xc3)](),this[_0x2218f3(0x128)][_0x2218f3(0x90)](_0x2218f3(0x142)),this[_0x2218f3(0x128)][_0x2218f3(0x117)]();}['getStatus'](){const _0x137b52=_0x533ef0;return this[_0x137b52(0x126)];}[_0x533ef0(0x99)](){const _0xa29356=_0x533ef0;this[_0xa29356(0x84)]||(this[_0xa29356(0x84)]=!0x0,this[_0xa29356(0xb4)][_0xa29356(0xce)][_0xa29356(0x139)]((0x0,l[_0xa29356(0x12e)])(this[_0xa29356(0xc1)]))[_0xa29356(0xf2)](_0x4e44a6=>{const _0x32c583=_0xa29356;switch(_0x4e44a6){case o[_0x32c583(0xca)][_0x32c583(0xd9)]:this['_handleOffline']();break;case o[_0x32c583(0xca)][_0x32c583(0x116)]:this['_handleOnline']();break;default:}}),this[_0xa29356(0xb4)][_0xa29356(0x110)][_0xa29356(0x139)]((0x0,l[_0xa29356(0x12e)])(this[_0xa29356(0xc1)]))[_0xa29356(0xf2)](_0x55e901=>{const _0x203af4=_0xa29356;let {eventID:_0x522ea7}=_0x55e901;switch(_0x522ea7){case a[_0x203af4(0x123)][_0x203af4(0xdf)]:this[_0x203af4(0x80)](_0x55e901);break;case a[_0x203af4(0x123)][_0x203af4(0xfa)]:this[_0x203af4(0xfb)](_0x55e901);break;case a[_0x203af4(0x123)][_0x203af4(0x7e)]:this[_0x203af4(0x11f)]();break;case a[_0x203af4(0x123)][_0x203af4(0x7d)]:this[_0x203af4(0x130)](_0x55e901);break;default:}}));}[_0x533ef0(0x12c)](){const _0x4467f7=_0x533ef0;this['_collabSession'][_0x4467f7(0xd1)]({'eventID':a[_0x4467f7(0x123)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4467f7(0x112)],'userID':this['_collabSession']['getMemberID']()}},this[_0x4467f7(0x112)]);}[_0x533ef0(0xbc)](){const _0x19aa95=_0x533ef0;this[_0x19aa95(0x126)]===_0x19aa95(0x120)&&(this['_status$'][_0x19aa95(0x90)](_0x19aa95(0x142)),this[_0x19aa95(0xb4)][_0x19aa95(0xd1)]({'eventID':a[_0x19aa95(0x123)][_0x19aa95(0x7e)],'data':{'unitID':this[_0x19aa95(0x112)]}},this[_0x19aa95(0x112)]));}[_0x533ef0(0x12d)](){const _0xa06b12=_0x533ef0;this[_0xa06b12(0x126)]===_0xa06b12(0xbb)&&(this[_0xa06b12(0x128)][_0xa06b12(0x90)](_0xa06b12(0x13c)),this[_0xa06b12(0xd4)]());}[_0x533ef0(0x98)](){const _0x498f21=_0x533ef0;this[_0x498f21(0x126)]===_0x498f21(0x13c)&&this[_0x498f21(0x10d)]();}[_0x533ef0(0x80)](_0x27d367){const _0x37b81b=_0x533ef0;let {presenter:_0x28b365}=_0x27d367['data'],_0xc0cdb3=this[_0x37b81b(0xb4)][_0x37b81b(0xc7)]();this[_0x37b81b(0xbf)]=_0x28b365,_0x28b365===_0xc0cdb3?(this[_0x37b81b(0x10d)](),this[_0x37b81b(0xe7)]()):this['_status']!=='not-following'&&(this[_0x37b81b(0xbe)](),this[_0x37b81b(0xd4)]());}[_0x533ef0(0x86)](){const _0x27309c=_0x533ef0;let _0x86524e={'eventID':a[_0x27309c(0x123)][_0x27309c(0xa2)]};this[_0x27309c(0xb4)][_0x27309c(0xd1)](_0x86524e,this[_0x27309c(0x112)]);}[_0x533ef0(0x11f)](){const _0x8e4505=_0x533ef0;this[_0x8e4505(0xbf)]=null,this['_status']!==_0x8e4505(0x120)&&this[_0x8e4505(0xe5)]();}[_0x533ef0(0x130)](_0x5dac58){const _0x515b18=_0x533ef0;if(this[_0x515b18(0x126)]===_0x515b18(0x13c)&&this[_0x515b18(0xbf)]===_0x5dac58['data'][_0x515b18(0x9b)]){let _0x10fc60=(0x0,a[_0x515b18(0x87)])(_0x5dac58[_0x515b18(0xff)])[_0x515b18(0xb3)]['reverse']()[_0x515b18(0x132)](_0x1d45a3=>_0x1d45a3['id']===s[_0x515b18(0xb7)]['id']);if(_0x10fc60){let _0x2bf77b=_0x10fc60[_0x515b18(0xda)][_0x515b18(0xec)],_0xb5080f=_0x10fc60[_0x515b18(0xda)]['sheet']['id'];setTimeout(()=>{const _0x37f2e5=_0x515b18;this['_commandService'][_0x37f2e5(0x13b)](s['SetWorksheetActiveOperation']['id'],{'unitId':_0x2bf77b,'subUnitId':_0xb5080f},{'fromCollab':!0x0});});}}}[_0x533ef0(0xe7)](){const _0x41965b=_0x533ef0;var _0x247822;(_0x247822=this[_0x41965b(0xf9)])==null||_0x247822[_0x41965b(0xc3)](),this[_0x41965b(0x128)][_0x41965b(0x90)](_0x41965b(0x120));let _0x15c502=new Map(),_0x5a4345=this[_0x41965b(0xf9)]=new e[(_0x41965b(0x122))]();_0x5a4345['add']((0x0,e[_0x41965b(0xc2)])(()=>{const _0x30c190=_0x41965b;_0x15c502[_0x30c190(0xa0)](({subject:_0x3ea0ac,subscription:_0x45a97e})=>{const _0x26ab60=_0x30c190;_0x45a97e[_0x26ab60(0x106)](),_0x3ea0ac[_0x26ab60(0x117)]();}),_0x15c502[_0x30c190(0x77)]();})),_0x5a4345['add'](this[_0x41965b(0x137)][_0x41965b(0x76)](_0x5da1d0=>{const _0x28d0ab=_0x41965b;if(_0x5da1d0[_0x28d0ab(0x83)]!==e[_0x28d0ab(0x9d)][_0x28d0ab(0xf7)]||!this['_liveShareService'][_0x28d0ab(0x75)](_0x5da1d0['id']))return;let {id:_0x124f94}=_0x5da1d0,_0x4e5306;if(_0x15c502[_0x28d0ab(0xb2)](_0x124f94))_0x4e5306=_0x15c502['get'](_0x124f94)['subject'];else{var _0x2647d8;_0x4e5306=new c[(_0x28d0ab(0xeb))]();let _0x430876=_0x4e5306[_0x28d0ab(0x139)]((0x0,l[_0x28d0ab(0x8e)])((_0x2647d8=this[_0x28d0ab(0x121)][_0x28d0ab(0x9e)](_0x28d0ab(0xe6)))==null?0xc8:_0x2647d8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x28d0ab(0xf2)](_0x581b7f=>{const _0x5d4b78=_0x28d0ab;this[_0x5d4b78(0xb4)][_0x5d4b78(0xd1)]({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d4b78(0x112)],'operations':{[_0x581b7f['id']]:{'id':_0x581b7f['id'],'params':JSON[_0x5d4b78(0x82)](_0x581b7f[_0x5d4b78(0xda)])}}}},this[_0x5d4b78(0x112)]);});_0x15c502['set'](_0x124f94,{'subject':_0x4e5306,'subscription':_0x430876});}_0x4e5306[_0x28d0ab(0x90)](_0x5da1d0);})),this['_liveShareService'][_0x41965b(0x124)](this[_0x41965b(0x112)])[_0x41965b(0xa0)](_0x5c1dc7=>this[_0x41965b(0xb4)]['send']({'eventID':a['CollaborationEvent'][_0x41965b(0xfa)],'data':{'unitID':this[_0x41965b(0x112)],'operations':{[_0x5c1dc7['id']]:{'id':_0x5c1dc7['id'],'params':JSON[_0x41965b(0x82)](_0x5c1dc7[_0x41965b(0xda)])}}}},this[_0x41965b(0x112)]));}[_0x533ef0(0xbe)](){const _0x5c9f8c=_0x533ef0;var _0x40b809;this[_0x5c9f8c(0x128)]['next']('idle'),(_0x40b809=this[_0x5c9f8c(0xf9)])==null||_0x40b809[_0x5c9f8c(0xc3)](),this[_0x5c9f8c(0xf9)]=null;}['_startFollowing'](){const _0x5abe3a=_0x533ef0;var _0x4206f3;(_0x4206f3=this[_0x5abe3a(0xf9)])==null||_0x4206f3['dispose'](),this[_0x5abe3a(0x128)][_0x5abe3a(0x90)]('following');}[_0x533ef0(0xe5)](){const _0x51b3f5=_0x533ef0;var _0x34c456;this[_0x51b3f5(0x128)][_0x51b3f5(0x90)]('idle'),(_0x34c456=this['_commandDisposable'])==null||_0x34c456[_0x51b3f5(0xc3)](),this['_commandDisposable']=null;}[_0x533ef0(0x10d)](){const _0x1bb28c=_0x533ef0;var _0x12118f;this[_0x1bb28c(0x128)][_0x1bb28c(0x90)](_0x1bb28c(0xbb)),(_0x12118f=this[_0x1bb28c(0xf9)])==null||_0x12118f[_0x1bb28c(0xc3)]();}[_0x533ef0(0xfb)](_0x57c833){const _0xd966aa=_0x533ef0;if([_0xd966aa(0x120),_0xd966aa(0xbb),_0xd966aa(0x135)][_0xd966aa(0x131)](this[_0xd966aa(0x126)])||!_0x57c833['data'][_0xd966aa(0x113)]||_0x57c833[_0xd966aa(0xff)][_0xd966aa(0x113)]===this[_0xd966aa(0xb4)][_0xd966aa(0xc7)]())return;this[_0xd966aa(0x126)]==='idle'&&this[_0xd966aa(0xd4)]();let _0x184532=_0x57c833[_0xd966aa(0xff)][_0xd966aa(0x8b)];Object['values'](_0x184532)[_0xd966aa(0xa0)](_0x69678b=>{const _0x10b080=_0xd966aa;this[_0x10b080(0x137)][_0x10b080(0x13b)](_0x69678b['id'],_0x69678b[_0x10b080(0xda)]?JSON['parse'](_0x69678b[_0x10b080(0xda)]):null,{'fromCollab':!0x0});});}[_0x533ef0(0x13a)](){const _0x4e81f5=_0x533ef0;var _0x2fd860;this[_0x4e81f5(0x128)][_0x4e81f5(0x90)](_0x4e81f5(0x135)),(_0x2fd860=this[_0x4e81f5(0xf9)])==null||_0x2fd860[_0x4e81f5(0xc3)]();}[_0x533ef0(0x9a)](){const _0x2fc600=_0x533ef0;this['_status$'][_0x2fc600(0x90)](_0x2fc600(0x142)),this['_fetchOperations']();}};x=v([_(0x2,e['IConfigService']),_(0x3,(0x0,e['Inject'])(g)),_(0x4,e[_0x533ef0(0xae)])],x);function _0x219b(_0x1b55e1,_0x5a5e8b){_0x1b55e1=_0x1b55e1-0x75;const _0x54114d=_0x5411();let _0x219bdd=_0x54114d[_0x1b55e1];return _0x219bdd;}function S(){const _0x441272=_0x533ef0;let _0x55d2b3=(0x0,t['useDependency'])(y),_0x183daa=(0x0,t[_0x441272(0xc8)])(e[_0x441272(0x144)]),_0x525189=(0x0,t[_0x441272(0xb5)])(()=>_0x183daa[_0x441272(0xa7)](e[_0x441272(0xb1)][_0x441272(0xad)]),void 0x0,!0x1,[]),[_0x1517e0,_0x2f374e]=(0x0,i['useState'])(null),[_0x39750b,_0x4c8844]=(0x0,i[_0x441272(0x95)])('idle'),_0x360c35=(0x0,i[_0x441272(0x105)])(null);return(0x0,i[_0x441272(0x8c)])(()=>(_0x525189&&_0x55d2b3[_0x441272(0x81)](_0x525189[_0x441272(0x104)]())[_0x441272(0xe3)](_0x4d63ea=>{const _0x37bcea=_0x441272;_0x2f374e(_0x4d63ea),_0x360c35[_0x37bcea(0xc0)]=_0x4d63ea[_0x37bcea(0x12b)][_0x37bcea(0xf2)](_0x3b2fbd=>{_0x4c8844(_0x3b2fbd);});}),()=>{const _0x982ce6=_0x441272;var _0x50f7e9;(_0x50f7e9=_0x360c35[_0x982ce6(0xc0)])==null||_0x50f7e9['unsubscribe'](),_0x360c35[_0x982ce6(0xc0)]=null;}),[_0x525189,_0x55d2b3]),_0x1517e0?(0x0,u[_0x441272(0xef)])(n[_0x441272(0xf6)],{'align':_0x441272(0x8a),'disabled':_0x39750b==='offline','className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':(0x0,u[_0x441272(0xef)])(C,{'status':_0x39750b,'coordinator':_0x1517e0}),'children':(0x0,u[_0x441272(0xef)])(_0x441272(0xab),{'className':(0x0,n[_0x441272(0x136)])(_0x441272(0xe8),{'univer-cursor-not-allowed':_0x39750b===_0x441272(0x135),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39750b!=='offline'}),'type':_0x441272(0xab),'children':(0x0,u[_0x441272(0xef)])(r['LiveShareIcon'],{'className':'univer-size-4'})})}):null;}function C(_0x1df82c){const _0xc1d989=_0x533ef0;let {status:_0x4436cd,coordinator:_0x4a9930}=_0x1df82c;switch(_0x4436cd){case _0xc1d989(0x142):return(0x0,u[_0xc1d989(0xef)])(w,{'coordinator':_0x4a9930});case'following':return(0x0,u[_0xc1d989(0xef)])(T,{'coordinator':_0x4a9930});case _0xc1d989(0xbb):return(0x0,u[_0xc1d989(0xef)])(E,{'coordinator':_0x4a9930});case _0xc1d989(0x135):return(0x0,u[_0xc1d989(0xef)])(O,{});case _0xc1d989(0x120):return(0x0,u[_0xc1d989(0xef)])(D,{'coordinator':_0x4a9930});default:return null;}}function w(_0x3994a7){const _0x102329=_0x533ef0;let {coordinator:_0x549316}=_0x3994a7;return(0x0,u[_0x102329(0x102)])(u[_0x102329(0x79)],{'children':[(0x0,u[_0x102329(0xef)])(_0x102329(0x10a),{'className':_0x102329(0x12f),'children':_0x102329(0xd5)}),(0x0,u[_0x102329(0xef)])(n[_0x102329(0x13e)],{'onClick':()=>_0x549316['tryStartPresenting'](),'children':_0x102329(0x8d)})]});}function T(_0x5eccf5){const _0x14032a=_0x533ef0;let {coordinator:_0x6bca05}=_0x5eccf5;return(0x0,u[_0x14032a(0x102)])(u[_0x14032a(0x79)],{'children':[(0x0,u[_0x14032a(0xef)])(_0x14032a(0x10a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x14032a(0x10e)}),(0x0,u[_0x14032a(0xef)])(n['Button'],{'onClick':()=>_0x6bca05[_0x14032a(0x98)](),'children':_0x14032a(0x94)})]});}function E(_0x173b51){const _0x2a4a92=_0x533ef0;let {coordinator:_0x585eb2}=_0x173b51;return(0x0,u[_0x2a4a92(0x102)])(u[_0x2a4a92(0x79)],{'children':[(0x0,u[_0x2a4a92(0xef)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2a4a92(0x88)}),(0x0,u[_0x2a4a92(0xef)])(n[_0x2a4a92(0x13e)],{'variant':_0x2a4a92(0x109),'onClick':()=>_0x585eb2[_0x2a4a92(0x12d)](),'children':'Start\x20following'})]});}function D(_0x142394){const _0x430585=_0x533ef0;let {coordinator:_0x33b42c}=_0x142394;return(0x0,u['jsxs'])(u['Fragment'],{'children':[(0x0,u[_0x430585(0xef)])(_0x430585(0x10a),{'className':_0x430585(0x12f),'children':_0x430585(0xd6)}),(0x0,u['jsx'])(n['Button'],{'variant':_0x430585(0xbd),'onClick':()=>_0x33b42c[_0x430585(0xbc)](),'children':_0x430585(0xf3)})]});}function O(){const _0x526aa6=_0x533ef0;return(0x0,u[_0x526aa6(0xef)])(u[_0x526aa6(0x79)],{'children':_0x526aa6(0xe2)});}let k=class extends e[_0x533ef0(0x8f)]{constructor(_0x5bc13f,_0x3d553e){const _0xbcc56e=_0x533ef0;super(),this[_0xbcc56e(0x11a)]=_0x5bc13f,this[_0xbcc56e(0x7a)]=_0x3d553e,this[_0xbcc56e(0xe0)]();}[_0x533ef0(0xe0)](){const _0x320699=_0x533ef0;this[_0x320699(0xfd)](this['_uiPartsService'][_0x320699(0x111)](t['BuiltInUIPart'][_0x320699(0xa9)],()=>(0x0,t[_0x320699(0x100)])(S,this[_0x320699(0x11a)])));}};k=v([_(0x0,(0x0,e[_0x533ef0(0x143)])(e[_0x533ef0(0x91)])),_(0x1,t[_0x533ef0(0x11c)])],k);var A=_0x533ef0(0x78),j=_0x533ef0(0xf1);const M=_0x533ef0(0x11d);Symbol(M);const N={};let P=class extends e[_0x533ef0(0x8f)]{constructor(_0x503620){const _0x2fd352=_0x533ef0;super(),this['_liveShareService']=_0x503620,this[_0x2fd352(0x84)]();}[_0x533ef0(0x84)](){const _0x4c4586=_0x533ef0;[d[_0x4c4586(0xb6)]['id'],d[_0x4c4586(0x13d)]['id'],s[_0x4c4586(0xcf)]['id']][_0x4c4586(0xa0)](_0x205b13=>{const _0x4bf294=_0x4c4586;this['disposeWithMe'](this[_0x4bf294(0xb0)][_0x4bf294(0x101)](_0x205b13));});}};P=v([_(0x0,(0x0,e[_0x533ef0(0x143)])(g))],P);let F=class extends e[_0x533ef0(0xb8)]{constructor(_0x4c87f0=N,_0x2af784,_0x3201d2){const _0x23dd47=_0x533ef0;super(),this[_0x23dd47(0xe4)]=_0x4c87f0,this[_0x23dd47(0x11a)]=_0x2af784,this[_0x23dd47(0x121)]=_0x3201d2;let {..._0x5ecf54}=(0x0,e[_0x23dd47(0x115)])({},N,this[_0x23dd47(0xe4)]);this[_0x23dd47(0x121)]['setConfig'](M,_0x5ecf54);}[_0x533ef0(0xf4)](){const _0x17b33d=_0x533ef0;(0x0,e[_0x17b33d(0x118)])(this[_0x17b33d(0x11a)],(0x0,e[_0x17b33d(0x108)])([[g],[y],[P],[k]],this[_0x17b33d(0xe4)]['override'])),(0x0,e[_0x17b33d(0xba)])(this['_injector'],[[P]]);}[_0x533ef0(0x9c)](){const _0x7eeab=_0x533ef0;(0x0,e[_0x7eeab(0xba)])(this[_0x7eeab(0x11a)],[[k]]);}};h(F,_0x533ef0(0x83),e[_0x533ef0(0xb1)][_0x533ef0(0xfe)]),h(F,'pluginName',_0x533ef0(0xcd)),h(F,_0x533ef0(0xb9),A),h(F,'version',j),F=v([(0x0,e['DependentOn'])(o[_0x533ef0(0xee)]),_(0x1,(0x0,e['Inject'])(e[_0x533ef0(0x91)])),_(0x2,e[_0x533ef0(0xe1)])],F),Object[_0x533ef0(0x97)](exports,_0x533ef0(0xdc),{'enumerable':!0x0,'get':function(){return k;}}),exports['LiveShare']=S,Object[_0x533ef0(0x97)](exports,_0x533ef0(0xc9),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x533ef0(0x97)](exports,_0x533ef0(0xac),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x533ef0(0xaf)]=g,exports[_0x533ef0(0xd7)]=b,Object[_0x533ef0(0x97)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return F;}});
1
+ const _0x4acaa3=_0x5b02;(function(_0x120672,_0x2fa7f8){const _0x4b33f3=_0x5b02,_0x5cc22f=_0x120672();while(!![]){try{const _0x427277=parseInt(_0x4b33f3(0x1e5))/0x1*(-parseInt(_0x4b33f3(0x266))/0x2)+parseInt(_0x4b33f3(0x234))/0x3+-parseInt(_0x4b33f3(0x22d))/0x4*(parseInt(_0x4b33f3(0x1e2))/0x5)+parseInt(_0x4b33f3(0x28d))/0x6+parseInt(_0x4b33f3(0x1d8))/0x7*(parseInt(_0x4b33f3(0x293))/0x8)+parseInt(_0x4b33f3(0x211))/0x9+-parseInt(_0x4b33f3(0x273))/0xa*(parseInt(_0x4b33f3(0x209))/0xb);if(_0x427277===_0x2fa7f8)break;else _0x5cc22f['push'](_0x5cc22f['shift']());}catch(_0x11bcf6){_0x5cc22f['push'](_0x5cc22f['shift']());}}}(_0x3643,0x19999),Object[_0x4acaa3(0x1e7)](exports,Symbol[_0x4acaa3(0x229)],{'value':_0x4acaa3(0x22b)}));let e=require('@univerjs/core'),t=require('@univerjs/ui'),n=require('@univerjs/design'),r=require('@univerjs/icons'),i=require('react'),a=require('@univerjs-pro/collaboration'),o=require('@univerjs-pro/collaboration-client'),s=require('@univerjs/sheets'),c=require('rxjs'),l=require('rxjs/operators'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x4b5305){'@babel/helpers - typeof';const _0x2e96b2=_0x4acaa3;return f=typeof Symbol=='function'&&typeof Symbol[_0x2e96b2(0x201)]==_0x2e96b2(0x21c)?function(_0x81aa1c){return typeof _0x81aa1c;}:function(_0x3a34a5){const _0x204e84=_0x2e96b2;return _0x3a34a5&&typeof Symbol==_0x204e84(0x204)&&_0x3a34a5['constructor']===Symbol&&_0x3a34a5!==Symbol[_0x204e84(0x256)]?_0x204e84(0x21c):typeof _0x3a34a5;},f(_0x4b5305);}function p(_0x42efe8,_0x56dc0a){const _0x16c897=_0x4acaa3;if(f(_0x42efe8)!=_0x16c897(0x271)||!_0x42efe8)return _0x42efe8;var _0x352573=_0x42efe8[Symbol[_0x16c897(0x270)]];if(_0x352573!==void 0x0){var _0x330261=_0x352573[_0x16c897(0x1f8)](_0x42efe8,_0x56dc0a||'default');if(f(_0x330261)!=_0x16c897(0x271))return _0x330261;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x56dc0a===_0x16c897(0x216)?String:Number)(_0x42efe8);}function m(_0x3ef79f){const _0xa770b8=_0x4acaa3;var _0x2c5b8a=p(_0x3ef79f,_0xa770b8(0x216));return f(_0x2c5b8a)==_0xa770b8(0x21c)?_0x2c5b8a:_0x2c5b8a+'';}function h(_0x30edcb,_0x466013,_0x10708b){const _0x3f802f=_0x4acaa3;return(_0x466013=m(_0x466013))in _0x30edcb?Object[_0x3f802f(0x1e7)](_0x30edcb,_0x466013,{'value':_0x10708b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30edcb[_0x466013]=_0x10708b,_0x30edcb;}var g=class extends e[_0x4acaa3(0x239)]{constructor(..._0x2524d4){const _0x3bc63b=_0x4acaa3;super(..._0x2524d4),h(this,_0x3bc63b(0x20b),new Set()),h(this,_0x3bc63b(0x29f),new Set());}[_0x4acaa3(0x23a)](_0x4dfffd){const _0x14033d=_0x4acaa3;return this['_sharedOperations'][_0x14033d(0x29c)](_0x4dfffd),(0x0,e['toDisposable'])(()=>this[_0x14033d(0x20b)]['delete'](_0x4dfffd));}[_0x4acaa3(0x238)](_0x33a03a){const _0x46c887=_0x4acaa3;return this[_0x46c887(0x29f)][_0x46c887(0x29c)](_0x33a03a),(0x0,e[_0x46c887(0x1f5)])(()=>this[_0x46c887(0x29f)][_0x46c887(0x230)](_0x33a03a));}[_0x4acaa3(0x217)](_0x3de22c){const _0x204496=_0x4acaa3;return this[_0x204496(0x20b)][_0x204496(0x235)](_0x3de22c);}[_0x4acaa3(0x23f)](_0x375f60){const _0x4953dd=_0x4acaa3;return Array['from'](this[_0x4953dd(0x29f)])[_0x4953dd(0x1fd)](_0x19bf7b=>_0x19bf7b(_0x375f60));}};function _(_0x5b0a4f,_0x469069){return function(_0x515d13,_0x26425d){_0x469069(_0x515d13,_0x26425d,_0x5b0a4f);};}function v(_0x5b610a,_0x2d6387,_0x13f019,_0x472ebf){const _0x14c5e1=_0x4acaa3;var _0x2b8f9d=arguments[_0x14c5e1(0x1db)],_0x5e0518=_0x2b8f9d<0x3?_0x2d6387:_0x472ebf===null?_0x472ebf=Object[_0x14c5e1(0x263)](_0x2d6387,_0x13f019):_0x472ebf,_0x405157;if(typeof Reflect=='object'&&typeof Reflect[_0x14c5e1(0x268)]==_0x14c5e1(0x204))_0x5e0518=Reflect[_0x14c5e1(0x268)](_0x5b610a,_0x2d6387,_0x13f019,_0x472ebf);else{for(var _0x51f661=_0x5b610a[_0x14c5e1(0x1db)]-0x1;_0x51f661>=0x0;_0x51f661--)(_0x405157=_0x5b610a[_0x51f661])&&(_0x5e0518=(_0x2b8f9d<0x3?_0x405157(_0x5e0518):_0x2b8f9d>0x3?_0x405157(_0x2d6387,_0x13f019,_0x5e0518):_0x405157(_0x2d6387,_0x13f019))||_0x5e0518);}return _0x2b8f9d>0x3&&_0x5e0518&&Object[_0x14c5e1(0x1e7)](_0x2d6387,_0x13f019,_0x5e0518),_0x5e0518;}let y=class extends e['RxDisposable']{constructor(_0x1ec186,_0x4029ef,_0x4746f5){const _0x84d29d=_0x4acaa3;super(),this[_0x84d29d(0x265)]=_0x1ec186,this[_0x84d29d(0x27e)]=_0x4029ef,this[_0x84d29d(0x26b)]=_0x4746f5,h(this,'_entities',new Map()),this[_0x84d29d(0x24a)]();}async['getLiveShareCoordinator'](_0x9297bd){const _0x5079d0=_0x4acaa3;return this[_0x5079d0(0x21b)][_0x5079d0(0x235)](_0x9297bd)||await this['_startLiveShareCoordinator'](_0x9297bd),this[_0x5079d0(0x21b)][_0x5079d0(0x22a)](_0x9297bd);}[_0x4acaa3(0x25d)](_0x40da64){const _0x380f59=_0x4acaa3;var _0x25cd81;return(_0x25cd81=this[_0x380f59(0x21b)][_0x380f59(0x22a)](_0x40da64))==null?null:_0x25cd81;}['_init'](){const _0x4a3dcc=_0x4acaa3;this['_univerInstanceService'][_0x4a3dcc(0x1e0)](e[_0x4a3dcc(0x20d)][_0x4a3dcc(0x1ff)])['pipe']((0x0,l[_0x4a3dcc(0x299)])(this[_0x4a3dcc(0x240)]))[_0x4a3dcc(0x20f)](async _0x23cf0f=>{const _0x24ee8f=_0x4a3dcc;let _0x57f37b=_0x23cf0f[_0x24ee8f(0x202)]['getUnitId']();this[_0x24ee8f(0x21b)][_0x24ee8f(0x235)](_0x57f37b)||this['_startLiveShareCoordinator'](_0x57f37b);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](e[_0x4a3dcc(0x20d)]['UNIVER_SHEET'])[_0x4a3dcc(0x277)]((0x0,l[_0x4a3dcc(0x299)])(this[_0x4a3dcc(0x240)]))['subscribe'](_0x306967=>{const _0x105a74=_0x4a3dcc;let _0x4fb7fb=_0x306967[_0x105a74(0x24f)](),_0x451546=this[_0x105a74(0x21b)][_0x105a74(0x22a)](_0x4fb7fb);_0x451546==null||_0x451546[_0x105a74(0x280)]();});}async[_0x4acaa3(0x26e)](_0x5912d9){const _0x22ef98=_0x4acaa3;let _0x3544af=await this[_0x22ef98(0x26b)]['requireSession'](_0x5912d9),_0x5388f8=this[_0x22ef98(0x27e)][_0x22ef98(0x28e)](x,_0x5912d9,_0x3544af);return _0x5388f8['init'](),this['_entities'][_0x22ef98(0x246)](_0x5912d9,_0x5388f8),_0x5388f8;}};y=v([_(0x0,e[_0x4acaa3(0x27f)]),_(0x1,(0x0,e['Inject'])(e[_0x4acaa3(0x215)])),_(0x2,(0x0,e[_0x4acaa3(0x1ec)])(o[_0x4acaa3(0x24c)]))],y);let b=function(_0x2c45eb){const _0x522cb6=_0x4acaa3;return _0x2c45eb[_0x522cb6(0x286)]=_0x522cb6(0x1ea),_0x2c45eb[_0x522cb6(0x244)]=_0x522cb6(0x1fb),_0x2c45eb[_0x522cb6(0x1e1)]=_0x522cb6(0x1f9),_0x2c45eb[_0x522cb6(0x243)]=_0x522cb6(0x21d),_0x2c45eb[_0x522cb6(0x1f0)]=_0x522cb6(0x287),_0x2c45eb;}({}),x=class extends e[_0x4acaa3(0x255)]{get[_0x4acaa3(0x298)](){const _0x8d9abf=_0x4acaa3;return this[_0x8d9abf(0x1da)][_0x8d9abf(0x282)]();}constructor(_0x53212d,_0x1753d7,_0x220fc7,_0xb8d36a,_0x3893ce){const _0x193446=_0x4acaa3;super(),this['_unitID']=_0x53212d,this[_0x193446(0x222)]=_0x1753d7,this[_0x193446(0x21a)]=_0x220fc7,this[_0x193446(0x259)]=_0xb8d36a,this[_0x193446(0x22e)]=_0x3893ce,h(this,_0x193446(0x1da),new c[(_0x193446(0x214))]('idle')),h(this,_0x193446(0x249),this['_status$'][_0x193446(0x250)]()),h(this,_0x193446(0x24a),!0x1),h(this,_0x193446(0x226),null),h(this,'_presenter',null);}[_0x4acaa3(0x280)](){const _0x2d1771=_0x4acaa3;var _0x59e400;(_0x59e400=this['_commandDisposable'])==null||_0x59e400[_0x2d1771(0x280)](),this[_0x2d1771(0x1da)][_0x2d1771(0x28a)]('idle'),this['_status$'][_0x2d1771(0x281)]();}[_0x4acaa3(0x23d)](){const _0x4eced2=_0x4acaa3;return this[_0x4eced2(0x298)];}[_0x4acaa3(0x225)](){const _0x2630fd=_0x4acaa3;this['_init']||(this[_0x2630fd(0x24a)]=!0x0,this[_0x2630fd(0x222)][_0x2630fd(0x20c)][_0x2630fd(0x277)]((0x0,l[_0x2630fd(0x299)])(this[_0x2630fd(0x240)]))[_0x2630fd(0x20f)](_0x1f2f87=>{const _0x42a9a6=_0x2630fd;switch(_0x1f2f87){case o[_0x42a9a6(0x27a)][_0x42a9a6(0x286)]:this['_handleOffline']();break;case o[_0x42a9a6(0x27a)][_0x42a9a6(0x26a)]:this[_0x42a9a6(0x24b)]();break;default:}}),this[_0x2630fd(0x222)][_0x2630fd(0x23e)]['pipe']((0x0,l[_0x2630fd(0x299)])(this[_0x2630fd(0x240)]))[_0x2630fd(0x20f)](_0x106fd6=>{const _0x15fa9f=_0x2630fd;let {eventID:_0x1339bf}=_0x106fd6;switch(_0x1339bf){case a[_0x15fa9f(0x278)][_0x15fa9f(0x26c)]:this[_0x15fa9f(0x207)](_0x106fd6);break;case a[_0x15fa9f(0x278)][_0x15fa9f(0x237)]:this[_0x15fa9f(0x267)](_0x106fd6);break;case a[_0x15fa9f(0x278)]['LIVESHARE_TERMINATE']:this[_0x15fa9f(0x1fe)]();break;case a[_0x15fa9f(0x278)][_0x15fa9f(0x247)]:this[_0x15fa9f(0x251)](_0x106fd6);break;default:}}));}['tryStartPresenting'](){const _0x101315=_0x4acaa3;this[_0x101315(0x222)][_0x101315(0x1e9)]({'eventID':a[_0x101315(0x278)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x101315(0x269)],'userID':this[_0x101315(0x222)][_0x101315(0x1f7)]()}},this[_0x101315(0x269)]);}[_0x4acaa3(0x1ef)](){const _0xfa9dac=_0x4acaa3;this['_status']===_0xfa9dac(0x287)&&(this['_status$'][_0xfa9dac(0x28a)](_0xfa9dac(0x1fb)),this[_0xfa9dac(0x222)]['send']({'eventID':a['CollaborationEvent'][_0xfa9dac(0x252)],'data':{'unitID':this[_0xfa9dac(0x269)]}},this[_0xfa9dac(0x269)]));}[_0x4acaa3(0x1e3)](){const _0x3b1a9c=_0x4acaa3;this[_0x3b1a9c(0x298)]==='not-following'&&(this['_status$']['next'](_0x3b1a9c(0x1f9)),this[_0x3b1a9c(0x28f)]());}[_0x4acaa3(0x1dd)](){const _0x496610=_0x4acaa3;this[_0x496610(0x298)]===_0x496610(0x1f9)&&this[_0x496610(0x1f6)]();}[_0x4acaa3(0x207)](_0x20a70c){const _0xfc54d7=_0x4acaa3;let {presenter:_0x102316}=_0x20a70c[_0xfc54d7(0x22f)],_0x46cbad=this[_0xfc54d7(0x222)]['getMemberID']();this['_presenter']=_0x102316,_0x102316===_0x46cbad?(this[_0xfc54d7(0x1f6)](),this[_0xfc54d7(0x220)]()):this['_status']!=='not-following'&&(this[_0xfc54d7(0x212)](),this[_0xfc54d7(0x28f)]());}[_0x4acaa3(0x203)](){const _0x44d071=_0x4acaa3;let _0x3cb6d8={'eventID':a[_0x44d071(0x278)][_0x44d071(0x200)]};this[_0x44d071(0x222)][_0x44d071(0x1e9)](_0x3cb6d8,this[_0x44d071(0x269)]);}[_0x4acaa3(0x1fe)](){const _0x39b9f1=_0x4acaa3;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x39b9f1(0x227)]();}['_handleNewChangeSets'](_0x4b73e2){const _0x5341b9=_0x4acaa3;if(this[_0x5341b9(0x298)]==='following'&&this[_0x5341b9(0x21e)]===_0x4b73e2['data'][_0x5341b9(0x253)]){let _0x205ea9=(0x0,a[_0x5341b9(0x208)])(_0x4b73e2['data'])[_0x5341b9(0x1d9)][_0x5341b9(0x228)]()[_0x5341b9(0x260)](_0xbf3d4b=>_0xbf3d4b['id']===s[_0x5341b9(0x1dc)]['id']);if(_0x205ea9){let _0x23917c=_0x205ea9['params']['unitId'],_0x27c8b4=_0x205ea9[_0x5341b9(0x1ed)][_0x5341b9(0x213)]['id'];setTimeout(()=>{const _0x351654=_0x5341b9;this[_0x351654(0x22e)][_0x351654(0x22c)](s['SetWorksheetActiveOperation']['id'],{'unitId':_0x23917c,'subUnitId':_0x27c8b4},{'fromCollab':!0x0});});}}}[_0x4acaa3(0x220)](){const _0xbe7972=_0x4acaa3;var _0x4435ca;(_0x4435ca=this[_0xbe7972(0x226)])==null||_0x4435ca[_0xbe7972(0x280)](),this[_0xbe7972(0x1da)][_0xbe7972(0x28a)](_0xbe7972(0x287));let _0x14e01f=new Map(),_0xa6319e=this['_commandDisposable']=new e[(_0xbe7972(0x231))]();_0xa6319e[_0xbe7972(0x29c)]((0x0,e[_0xbe7972(0x1f5)])(()=>{const _0x167c80=_0xbe7972;_0x14e01f[_0x167c80(0x205)](({subject:_0x3139f2,subscription:_0x323c94})=>{const _0x24e3a3=_0x167c80;_0x323c94[_0x24e3a3(0x25b)](),_0x3139f2[_0x24e3a3(0x281)]();}),_0x14e01f['clear']();})),_0xa6319e[_0xbe7972(0x29c)](this[_0xbe7972(0x22e)][_0xbe7972(0x25f)](_0xa44d94=>{const _0x101836=_0xbe7972;if(_0xa44d94[_0x101836(0x276)]!==e['CommandType'][_0x101836(0x29e)]||!this['_liveShareService'][_0x101836(0x217)](_0xa44d94['id']))return;let {id:_0x6aaffb}=_0xa44d94,_0x43d25c;if(_0x14e01f[_0x101836(0x235)](_0x6aaffb))_0x43d25c=_0x14e01f['get'](_0x6aaffb)[_0x101836(0x26f)];else{var _0x2a1a60;_0x43d25c=new c[(_0x101836(0x275))]();let _0x22b2bf=_0x43d25c[_0x101836(0x277)]((0x0,l[_0x101836(0x1de)])((_0x2a1a60=this[_0x101836(0x21a)][_0x101836(0x262)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2a1a60,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x101836(0x20f)](_0x3a507a=>{const _0x10febb=_0x101836;this[_0x10febb(0x222)]['send']({'eventID':a['CollaborationEvent'][_0x10febb(0x237)],'data':{'unitID':this[_0x10febb(0x269)],'operations':{[_0x3a507a['id']]:{'id':_0x3a507a['id'],'params':JSON[_0x10febb(0x24d)](_0x3a507a[_0x10febb(0x1ed)])}}}},this[_0x10febb(0x269)]);});_0x14e01f[_0x101836(0x246)](_0x6aaffb,{'subject':_0x43d25c,'subscription':_0x22b2bf});}_0x43d25c[_0x101836(0x28a)](_0xa44d94);})),this[_0xbe7972(0x259)][_0xbe7972(0x23f)](this[_0xbe7972(0x269)])['forEach'](_0x323432=>this[_0xbe7972(0x222)]['send']({'eventID':a['CollaborationEvent'][_0xbe7972(0x237)],'data':{'unitID':this['_unitID'],'operations':{[_0x323432['id']]:{'id':_0x323432['id'],'params':JSON[_0xbe7972(0x24d)](_0x323432['params'])}}}},this['_unitID']));}[_0x4acaa3(0x212)](){const _0x495720=_0x4acaa3;var _0x419aba;this[_0x495720(0x1da)][_0x495720(0x28a)](_0x495720(0x1fb)),(_0x419aba=this[_0x495720(0x226)])==null||_0x419aba[_0x495720(0x280)](),this[_0x495720(0x226)]=null;}[_0x4acaa3(0x28f)](){const _0x5128cc=_0x4acaa3;var _0x5a1922;(_0x5a1922=this['_commandDisposable'])==null||_0x5a1922[_0x5128cc(0x280)](),this['_status$'][_0x5128cc(0x28a)](_0x5128cc(0x1f9));}[_0x4acaa3(0x227)](){const _0x1cc1e8=_0x4acaa3;var _0x17eef7;this[_0x1cc1e8(0x1da)][_0x1cc1e8(0x28a)](_0x1cc1e8(0x1fb)),(_0x17eef7=this[_0x1cc1e8(0x226)])==null||_0x17eef7[_0x1cc1e8(0x280)](),this['_commandDisposable']=null;}[_0x4acaa3(0x1f6)](){const _0x1f3a5d=_0x4acaa3;var _0x339ab7;this[_0x1f3a5d(0x1da)]['next'](_0x1f3a5d(0x21d)),(_0x339ab7=this['_commandDisposable'])==null||_0x339ab7[_0x1f3a5d(0x280)]();}['_handleOperation'](_0x462c80){const _0x553d6c=_0x4acaa3;if([_0x553d6c(0x287),_0x553d6c(0x21d),_0x553d6c(0x1ea)][_0x553d6c(0x291)](this['_status'])||!_0x462c80[_0x553d6c(0x22f)][_0x553d6c(0x27c)]||_0x462c80[_0x553d6c(0x22f)][_0x553d6c(0x27c)]===this['_collabSession'][_0x553d6c(0x1f7)]())return;this[_0x553d6c(0x298)]===_0x553d6c(0x1fb)&&this[_0x553d6c(0x28f)]();let _0x24f0ec=_0x462c80['data'][_0x553d6c(0x2a0)];Object[_0x553d6c(0x245)](_0x24f0ec)[_0x553d6c(0x205)](_0x331561=>{const _0x34645d=_0x553d6c;this[_0x34645d(0x22e)][_0x34645d(0x22c)](_0x331561['id'],_0x331561[_0x34645d(0x1ed)]?JSON[_0x34645d(0x1f3)](_0x331561['params']):null,{'fromCollab':!0x0});});}[_0x4acaa3(0x1fc)](){const _0x15b5ca=_0x4acaa3;var _0x569659;this['_status$'][_0x15b5ca(0x28a)](_0x15b5ca(0x1ea)),(_0x569659=this[_0x15b5ca(0x226)])==null||_0x569659[_0x15b5ca(0x280)]();}['_handleOnline'](){const _0xe8aaaa=_0x4acaa3;this['_status$'][_0xe8aaaa(0x28a)](_0xe8aaaa(0x1fb)),this[_0xe8aaaa(0x203)]();}};x=v([_(0x2,e[_0x4acaa3(0x274)]),_(0x3,(0x0,e[_0x4acaa3(0x1ec)])(g)),_(0x4,e[_0x4acaa3(0x297)])],x);function S(){const _0x4d0a2b=_0x4acaa3;let _0x5dc89f=(0x0,t['useDependency'])(y),_0x479d0d=(0x0,t[_0x4d0a2b(0x28b)])(e[_0x4d0a2b(0x27f)]),_0x39843f=(0x0,t[_0x4d0a2b(0x27d)])(()=>_0x479d0d[_0x4d0a2b(0x23c)](e[_0x4d0a2b(0x20d)][_0x4d0a2b(0x1ff)]),void 0x0,!0x1,[]),[_0x2d6999,_0x20c610]=(0x0,i['useState'])(null),[_0x101bd4,_0x4de317]=(0x0,i[_0x4d0a2b(0x25a)])(_0x4d0a2b(0x1fb)),_0x1143d1=(0x0,i[_0x4d0a2b(0x233)])(null);return(0x0,i['useEffect'])(()=>(_0x39843f&&_0x5dc89f[_0x4d0a2b(0x257)](_0x39843f['getUnitId']())[_0x4d0a2b(0x29b)](_0xcf86af=>{const _0x5b3bdb=_0x4d0a2b;_0x20c610(_0xcf86af),_0x1143d1['current']=_0xcf86af[_0x5b3bdb(0x249)][_0x5b3bdb(0x20f)](_0x3a4676=>{_0x4de317(_0x3a4676);});}),()=>{const _0xef44e5=_0x4d0a2b;var _0x13c9bd;(_0x13c9bd=_0x1143d1[_0xef44e5(0x210)])==null||_0x13c9bd[_0xef44e5(0x25b)](),_0x1143d1[_0xef44e5(0x210)]=null;}),[_0x39843f,_0x5dc89f]),_0x2d6999?(0x0,u['jsx'])(n[_0x4d0a2b(0x219)],{'align':_0x4d0a2b(0x27b),'disabled':_0x101bd4==='offline','className':_0x4d0a2b(0x29d),'overlay':(0x0,u['jsx'])(C,{'status':_0x101bd4,'coordinator':_0x2d6999}),'children':(0x0,u[_0x4d0a2b(0x248)])(_0x4d0a2b(0x25e),{'className':(0x0,n[_0x4d0a2b(0x289)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x101bd4===_0x4d0a2b(0x1ea),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x101bd4!==_0x4d0a2b(0x1ea)}),'type':'button','children':(0x0,u[_0x4d0a2b(0x248)])(r['LiveShareIcon'],{'className':_0x4d0a2b(0x241)})})}):null;}function C(_0x33c229){const _0x18b969=_0x4acaa3;let {status:_0x53f376,coordinator:_0x17466e}=_0x33c229;switch(_0x53f376){case _0x18b969(0x1fb):return(0x0,u[_0x18b969(0x248)])(w,{'coordinator':_0x17466e});case'following':return(0x0,u[_0x18b969(0x248)])(T,{'coordinator':_0x17466e});case _0x18b969(0x21d):return(0x0,u[_0x18b969(0x248)])(E,{'coordinator':_0x17466e});case'offline':return(0x0,u['jsx'])(O,{});case _0x18b969(0x287):return(0x0,u[_0x18b969(0x248)])(D,{'coordinator':_0x17466e});default:return null;}}function w(_0x5e8da6){const _0x2f9877=_0x4acaa3;let {coordinator:_0x57714f}=_0x5e8da6;return(0x0,u[_0x2f9877(0x254)])(u[_0x2f9877(0x1eb)],{'children':[(0x0,u[_0x2f9877(0x248)])(_0x2f9877(0x283),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2f9877(0x224)}),(0x0,u[_0x2f9877(0x248)])(n[_0x2f9877(0x1e6)],{'onClick':()=>_0x57714f[_0x2f9877(0x1ee)](),'children':'Start'})]});}function T(_0x2b9156){const _0x5ce81a=_0x4acaa3;let {coordinator:_0x11749e}=_0x2b9156;return(0x0,u['jsxs'])(u[_0x5ce81a(0x1eb)],{'children':[(0x0,u[_0x5ce81a(0x248)])('div',{'className':_0x5ce81a(0x288),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u[_0x5ce81a(0x248)])(n[_0x5ce81a(0x1e6)],{'onClick':()=>_0x11749e[_0x5ce81a(0x1dd)](),'children':_0x5ce81a(0x28c)})]});}function E(_0x4c4f2f){const _0x5501d6=_0x4acaa3;let {coordinator:_0x44cd2a}=_0x4c4f2f;return(0x0,u[_0x5501d6(0x254)])(u[_0x5501d6(0x1eb)],{'children':[(0x0,u['jsx'])(_0x5501d6(0x283),{'className':_0x5501d6(0x288),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x5501d6(0x248)])(n[_0x5501d6(0x1e6)],{'variant':_0x5501d6(0x29a),'onClick':()=>_0x44cd2a['startFollowing'](),'children':_0x5501d6(0x24e)})]});}function D(_0x3b470b){const _0x4798e7=_0x4acaa3;let {coordinator:_0x154ed9}=_0x3b470b;return(0x0,u[_0x4798e7(0x254)])(u[_0x4798e7(0x1eb)],{'children':[(0x0,u[_0x4798e7(0x248)])(_0x4798e7(0x283),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,u['jsx'])(n['Button'],{'variant':_0x4798e7(0x25c),'onClick':()=>_0x154ed9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function O(){const _0x4bd962=_0x4acaa3;return(0x0,u['jsx'])(u[_0x4bd962(0x1eb)],{'children':_0x4bd962(0x20a)});}let k=class extends e[_0x4acaa3(0x239)]{constructor(_0x54e0f3,_0x242333){const _0x5b8a38=_0x4acaa3;super(),this[_0x5b8a38(0x27e)]=_0x54e0f3,this[_0x5b8a38(0x21f)]=_0x242333,this[_0x5b8a38(0x232)]();}[_0x4acaa3(0x232)](){const _0x1aa8cd=_0x4acaa3;this[_0x1aa8cd(0x1df)](this[_0x1aa8cd(0x21f)][_0x1aa8cd(0x1f4)](t[_0x1aa8cd(0x20e)][_0x1aa8cd(0x279)],()=>(0x0,t[_0x1aa8cd(0x295)])(S,this[_0x1aa8cd(0x27e)])));}};k=v([_(0x0,(0x0,e[_0x4acaa3(0x1ec)])(e[_0x4acaa3(0x215)])),_(0x1,t[_0x4acaa3(0x1e4)])],k);function _0x5b02(_0x4907e6,_0x88bb96){_0x4907e6=_0x4907e6-0x1d8;const _0x3643e9=_0x3643();let _0x5b02c2=_0x3643e9[_0x4907e6];return _0x5b02c2;}var A=_0x4acaa3(0x26d),j=_0x4acaa3(0x264);const M={};let N=class extends e[_0x4acaa3(0x239)]{constructor(_0x2bd133){const _0xc9de70=_0x4acaa3;super(),this[_0xc9de70(0x259)]=_0x2bd133,this['_init']();}[_0x4acaa3(0x24a)](){const _0x17c658=_0x4acaa3;[d[_0x17c658(0x296)]['id'],d[_0x17c658(0x284)]['id'],s[_0x17c658(0x1fa)]['id']][_0x17c658(0x205)](_0x317fb7=>{const _0x39e163=_0x17c658;this[_0x39e163(0x1df)](this['_liveShareService'][_0x39e163(0x23a)](_0x317fb7));});}};function _0x3643(){const _0x1eb325=['Subject','type','pipe','CollaborationEvent','HEADER_MENU','SessionStatus','end','presenter','useObservable','_injector','IUniverInstanceService','dispose','complete','getValue','div','SetScrollOperation','_config','OFFLINE','presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','clsx','next','useDependency','Stop\x20following','977118rZuCHU','createInstance','_startFollowing','LiveShareStatus','includes','pluginName','8xVpHny','touchDependencies','connectInjector','SetZoomRatioOperation','ICommandService','_status','takeUntil','text','then','add','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','OPERATION','_reporters','operations','551831PRKgyw','mutations','_status$','length','InsertSheetMutation','stopFollowing','throttleTime','disposeWithMe','getTypeOfUnitAdded$','FOLLOWING','15dFvrbI','startFollowing','IUIPartsService','34ApzWBe','Button','defineProperty','mergeOverrideWithDependencies','send','offline','Fragment','Inject','params','tryStartPresenting','stopPresenting','PRESENTING','LiveShareCoordinator','registerDependencies','parse','registerComponent','toDisposable','_stopFollowing','getMemberID','call','following','SetWorksheetActiveOperation','idle','_handleOffline','map','_handleTerminate','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','iterator','unit','_fetchOperations','function','forEach','live-share.config','_handleNewHost','parseProtocolChangeset','11WoRBgS','You\x27are\x20offline.','_sharedOperations','sessionStatus$','UniverInstanceType','BuiltInUIPart','subscribe','current','947223pJMSyd','_stopPresenting','sheet','BehaviorSubject','Injector','string','shouldShareOperation','merge','Dropdown','_configService','_entities','symbol','not-following','_presenter','_uiPartsService','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','_collabSession','DesktopLiveShareController','Present\x20this\x20document','init','_commandDisposable','_beIdle','reverse','toStringTag','get','Module','executeCommand','196796pCCftN','_commandService','data','delete','DisposableCollection','_mountLiveShare','useRef','32337qXuwim','has','UniverLiveSharePlugin','LIVESHARE_OPERATION','registerInitialStateReporter','Disposable','registerSharedOperation','LiveShareService','getCurrentTypeOfUnit$','getStatus','event$','getInitialStates','dispose$','univer-size-4','LiveShareController','NOT_FOLLOWING','IDLE','values','set','NEW_CHANGESETS','jsx','status$','_init','_handleOnline','CollaborationSessionService','stringify','Start\x20following','getUnitId','asObservable','_handleNewChangeSets','LIVESHARE_TERMINATE','memberID','jsxs','RxDisposable','prototype','getLiveShareCoordinator','LiveShare','_liveShareService','useState','unsubscribe','default','getLiveShareCoordinatorSync','button','onCommandExecuted','find','UniverCollaborationClientPlugin','getConfig','getOwnPropertyDescriptor','0.25.0','_univerInstanceService','1506aHwFax','_handleOperation','decorate','_unitID','ONLINE','_collabSessionService','LIVESHARE_NEW_HOST','@univerjs-pro/live-share','_startLiveShareCoordinator','subject','toPrimitive','object','packageName','796560Engxff','IConfigService'];_0x3643=function(){return _0x1eb325;};return _0x3643();}N=v([_(0x0,(0x0,e[_0x4acaa3(0x1ec)])(g))],N);let P=class extends e['Plugin']{constructor(_0x23f7a4=M,_0x1236d2,_0x4de6e6){const _0x4391e1=_0x4acaa3;super(),this[_0x4391e1(0x285)]=_0x23f7a4,this[_0x4391e1(0x27e)]=_0x1236d2,this['_configService']=_0x4de6e6;let {..._0x517457}=(0x0,e[_0x4391e1(0x218)])({},M,this[_0x4391e1(0x285)]);this[_0x4391e1(0x21a)]['setConfig'](_0x4391e1(0x206),_0x517457);}['onStarting'](){const _0x4754e4=_0x4acaa3;(0x0,e[_0x4754e4(0x1f2)])(this['_injector'],(0x0,e[_0x4754e4(0x1e8)])([[g],[y],[N],[k]],this['_config']['override'])),(0x0,e[_0x4754e4(0x294)])(this[_0x4754e4(0x27e)],[[N]]);}['onRendered'](){const _0x369608=_0x4acaa3;(0x0,e[_0x369608(0x294)])(this[_0x369608(0x27e)],[[k]]);}};h(P,_0x4acaa3(0x276),e['UniverInstanceType']['UNIVER_UNKNOWN']),h(P,_0x4acaa3(0x292),_0x4acaa3(0x221)),h(P,_0x4acaa3(0x272),A),h(P,'version',j),P=v([(0x0,e['DependentOn'])(o[_0x4acaa3(0x261)]),_(0x1,(0x0,e['Inject'])(e[_0x4acaa3(0x215)])),_(0x2,e[_0x4acaa3(0x274)])],P),Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x223),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x4acaa3(0x258)]=S,Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x242),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x1f1),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x4acaa3(0x23b)]=g,exports[_0x4acaa3(0x290)]=b,Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x236),{'enumerable':!0x0,'get':function(){return P;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2b99c4=_0x4127;(function(_0x2dfac7,_0x46956c){const _0x1a42af=_0x4127,_0x41c05f=_0x2dfac7();while(!![]){try{const _0x4ceb61=-parseInt(_0x1a42af(0x92))/0x1*(-parseInt(_0x1a42af(0x85))/0x2)+parseInt(_0x1a42af(0x8e))/0x3*(parseInt(_0x1a42af(0x7d))/0x4)+-parseInt(_0x1a42af(0x98))/0x5+-parseInt(_0x1a42af(0x81))/0x6+-parseInt(_0x1a42af(0x95))/0x7+parseInt(_0x1a42af(0x99))/0x8*(-parseInt(_0x1a42af(0x88))/0x9)+parseInt(_0x1a42af(0x96))/0xa*(parseInt(_0x1a42af(0x76))/0xb);if(_0x4ceb61===_0x46956c)break;else _0x41c05f['push'](_0x41c05f['shift']());}catch(_0x400780){_0x41c05f['push'](_0x41c05f['shift']());}}}(_0x375d,0xbe311));import{LiveShareController as _0x5c080e,LiveShareStatus as _0x393b86}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x466ade,UniverInstanceType as _0x43acff}from'@univerjs/core';import{FEnum as _0x454fcc,FUniver as _0x2bb1ef}from'@univerjs/core/facade';function o(_0x58a6c6){'@babel/helpers - typeof';const _0x26b32f=_0x4127;return o=typeof Symbol==_0x26b32f(0x7c)&&typeof Symbol['iterator']=='symbol'?function(_0x2e8053){return typeof _0x2e8053;}:function(_0x2d2e15){const _0x327a45=_0x26b32f;return _0x2d2e15&&typeof Symbol=='function'&&_0x2d2e15[_0x327a45(0x8a)]===Symbol&&_0x2d2e15!==Symbol['prototype']?_0x327a45(0x86):typeof _0x2d2e15;},o(_0x58a6c6);}function s(_0x3195ec,_0x443e48){const _0x55f6f6=_0x4127;if(o(_0x3195ec)!=_0x55f6f6(0x78)||!_0x3195ec)return _0x3195ec;var _0x454f8f=_0x3195ec[Symbol[_0x55f6f6(0x7f)]];if(_0x454f8f!==void 0x0){var _0x55cdfc=_0x454f8f[_0x55f6f6(0x90)](_0x3195ec,_0x443e48||_0x55f6f6(0x83));if(o(_0x55cdfc)!=_0x55f6f6(0x78))return _0x55cdfc;throw TypeError(_0x55f6f6(0x9b));}return(_0x443e48===_0x55f6f6(0x8c)?String:Number)(_0x3195ec);}function c(_0x454972){const _0xcabb6b=_0x4127;var _0x50cb51=s(_0x454972,_0xcabb6b(0x8c));return o(_0x50cb51)==_0xcabb6b(0x86)?_0x50cb51:_0x50cb51+'';}function _0x4127(_0x2f3811,_0x2300e9){_0x2f3811=_0x2f3811-0x74;const _0x375dc6=_0x375d();let _0x4127c5=_0x375dc6[_0x2f3811];return _0x4127c5;}function l(_0x3d215d,_0x170832,_0x411da9){const _0x4c8e2d=_0x4127;return(_0x170832=c(_0x170832))in _0x3d215d?Object[_0x4c8e2d(0x8d)](_0x3d215d,_0x170832,{'value':_0x411da9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d215d[_0x170832]=_0x411da9,_0x3d215d;}var u=class extends _0x2bb1ef{constructor(..._0x24f388){super(..._0x24f388),l(this,'_liveShareController',void 0x0);}['_initialize'](_0x516b54){const _0x3334c6=_0x4127;this[_0x3334c6(0x75)]=_0x516b54[_0x3334c6(0x79)](_0x5c080e);}[_0x2b99c4(0x7b)](){const _0x156764=_0x2b99c4;var _0x22b1d4;let _0x394362=this['_injector'][_0x156764(0x79)](_0x466ade)['getCurrentUnitOfType'](_0x43acff[_0x156764(0x84)]);if(!_0x394362)throw Error(_0x156764(0x87));let _0x18ee74=_0x394362[_0x156764(0x82)](),_0x24aa04=this[_0x156764(0x75)][_0x156764(0x7e)](_0x18ee74);return(_0x22b1d4=_0x24aa04==null?void 0x0:_0x24aa04[_0x156764(0x80)]())==null?_0x393b86[_0x156764(0x9a)]:_0x22b1d4;}[_0x2b99c4(0x89)](){const _0x382580=_0x2b99c4;let _0x3a4637=this['_injector']['get'](_0x466ade)[_0x382580(0x77)](_0x43acff[_0x382580(0x84)]);if(!_0x3a4637)throw Error(_0x382580(0x87));let _0x5a63c3=_0x3a4637[_0x382580(0x82)](),_0x544cdf=this[_0x382580(0x75)][_0x382580(0x7e)](_0x5a63c3);if(!_0x544cdf)throw Error(_0x382580(0x8b));_0x544cdf[_0x382580(0x89)]();}[_0x2b99c4(0x7a)](){const _0x10e062=_0x2b99c4;let _0x2bb08d=this[_0x10e062(0x8f)][_0x10e062(0x79)](_0x466ade)[_0x10e062(0x77)](_0x43acff['UNIVER_SHEET']);if(!_0x2bb08d)throw Error(_0x10e062(0x87));let _0xaf535=_0x2bb08d[_0x10e062(0x82)](),_0x313a6b=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xaf535);if(!_0x313a6b)throw Error(_0x10e062(0x8b));_0x313a6b[_0x10e062(0x7a)]();}[_0x2b99c4(0x94)](){const _0x1063f5=_0x2b99c4;let _0x9ccbb8=this[_0x1063f5(0x8f)][_0x1063f5(0x79)](_0x466ade)[_0x1063f5(0x77)](_0x43acff[_0x1063f5(0x84)]);if(!_0x9ccbb8)throw Error('No\x20active\x20workbook\x20found.');let _0x8cb53=_0x9ccbb8[_0x1063f5(0x82)](),_0xd37551=this['_liveShareController'][_0x1063f5(0x7e)](_0x8cb53);if(!_0xd37551)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd37551[_0x1063f5(0x97)]();}[_0x2b99c4(0x93)](){const _0x1aa385=_0x2b99c4;let _0x17f76c=this[_0x1aa385(0x8f)][_0x1aa385(0x79)](_0x466ade)[_0x1aa385(0x77)](_0x43acff[_0x1aa385(0x84)]);if(!_0x17f76c)throw Error('No\x20active\x20workbook\x20found.');let _0x1f4350=_0x17f76c[_0x1aa385(0x82)](),_0x18a7ee=this[_0x1aa385(0x75)][_0x1aa385(0x7e)](_0x1f4350);if(!_0x18a7ee)throw Error(_0x1aa385(0x8b));_0x18a7ee['stopPresenting']();}};function _0x375d(){const _0x57ef33=['7015505MxDMzB','440088rxADDv','IDLE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatusEnum','_liveShareController','121VKiDZH','getCurrentUnitOfType','object','get','stopFollowing','getLiveShareStatus','function','192IIMkuk','getLiveShareCoordinatorSync','toPrimitive','getStatus','2151228BBzvqQ','getUnitId','default','UNIVER_SHEET','401818ykiyVb','symbol','No\x20active\x20workbook\x20found.','54fPVGWF','startFollowing','constructor','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','string','defineProperty','78753FJEMfP','_injector','call','extend','3kCEKYF','stopPresenting','startPresenting','4151203XPisOI','1455440IjoCew','tryStartPresenting'];_0x375d=function(){return _0x57ef33;};return _0x375d();}_0x2bb1ef[_0x2b99c4(0x91)](u);var d=class extends _0x454fcc{get[_0x2b99c4(0x74)](){return _0x393b86;}};_0x454fcc[_0x2b99c4(0x91)](d);export{};
1
+ const _0x479317=_0x465e;(function(_0x26affc,_0x503bbb){const _0x27347e=_0x465e,_0x3d9fcb=_0x26affc();while(!![]){try{const _0x4edb63=-parseInt(_0x27347e(0x11b))/0x1*(parseInt(_0x27347e(0x102))/0x2)+-parseInt(_0x27347e(0x112))/0x3*(parseInt(_0x27347e(0x111))/0x4)+parseInt(_0x27347e(0x117))/0x5*(-parseInt(_0x27347e(0x105))/0x6)+-parseInt(_0x27347e(0x10f))/0x7*(parseInt(_0x27347e(0x116))/0x8)+parseInt(_0x27347e(0x101))/0x9+-parseInt(_0x27347e(0x103))/0xa+parseInt(_0x27347e(0x127))/0xb*(parseInt(_0x27347e(0x11f))/0xc);if(_0x4edb63===_0x503bbb)break;else _0x3d9fcb['push'](_0x3d9fcb['shift']());}catch(_0x96f3e3){_0x3d9fcb['push'](_0x3d9fcb['shift']());}}}(_0x382a,0x80f05));import{LiveShareController as _0x28024b,LiveShareStatus as _0x588e6b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x2f1278,UniverInstanceType as _0x406c94}from'@univerjs/core';import{FEnum as _0x41621a,FUniver as _0x195e9f}from'@univerjs/core/facade';function o(_0x4d79f7){'@babel/helpers - typeof';const _0x34561e=_0x465e;return o=typeof Symbol==_0x34561e(0x126)&&typeof Symbol[_0x34561e(0x106)]==_0x34561e(0x123)?function(_0x49dcc5){return typeof _0x49dcc5;}:function(_0x14b427){const _0x246dfc=_0x34561e;return _0x14b427&&typeof Symbol==_0x246dfc(0x126)&&_0x14b427[_0x246dfc(0x119)]===Symbol&&_0x14b427!==Symbol['prototype']?_0x246dfc(0x123):typeof _0x14b427;},o(_0x4d79f7);}function s(_0x1efcc3,_0x4134f7){const _0x5a20e6=_0x465e;if(o(_0x1efcc3)!='object'||!_0x1efcc3)return _0x1efcc3;var _0x517c85=_0x1efcc3[Symbol[_0x5a20e6(0x10b)]];if(_0x517c85!==void 0x0){var _0x4a6c32=_0x517c85[_0x5a20e6(0x11c)](_0x1efcc3,_0x4134f7||'default');if(o(_0x4a6c32)!=_0x5a20e6(0x120))return _0x4a6c32;throw TypeError(_0x5a20e6(0x113));}return(_0x4134f7===_0x5a20e6(0x11a)?String:Number)(_0x1efcc3);}function c(_0x1a2066){const _0xfdeb88=_0x465e;var _0x1b37da=s(_0x1a2066,'string');return o(_0x1b37da)==_0xfdeb88(0x123)?_0x1b37da:_0x1b37da+'';}function _0x465e(_0x474c9e,_0x54d3a6){_0x474c9e=_0x474c9e-0xff;const _0x382ae5=_0x382a();let _0x465e85=_0x382ae5[_0x474c9e];return _0x465e85;}function l(_0x1880cb,_0x40b37f,_0x3ffddb){return(_0x40b37f=c(_0x40b37f))in _0x1880cb?Object['defineProperty'](_0x1880cb,_0x40b37f,{'value':_0x3ffddb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1880cb[_0x40b37f]=_0x3ffddb,_0x1880cb;}function _0x382a(){const _0x5b63cb=['stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','symbol','getStatus','getLiveShareStatus','function','236841GmTTae','_liveShareController','tryStartPresenting','1856394ObeVpo','1814734nVuvoy','22870nWIPsk','_injector','319038EeFnjt','iterator','UNIVER_SHEET','stopPresenting','get','getLiveShareCoordinatorSync','toPrimitive','startFollowing','LiveShareStatusEnum','_initialize','77ltOahK','extend','4YdhmgN','533073sFVFCn','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20active\x20workbook\x20found.','getUnitId','107320XBcqBh','50wKkMTZ','getCurrentUnitOfType','constructor','string','1EkTKvK','call','startPresenting','IDLE','1164rDtQow','object'];_0x382a=function(){return _0x5b63cb;};return _0x382a();}var u=class extends _0x195e9f{constructor(..._0x196698){const _0x313544=_0x465e;super(..._0x196698),l(this,_0x313544(0xff),void 0x0);}[_0x479317(0x10e)](_0x179031){const _0x4ade56=_0x479317;this[_0x4ade56(0xff)]=_0x179031['get'](_0x28024b);}[_0x479317(0x125)](){const _0x3f70e6=_0x479317;var _0x316a54;let _0x436d02=this[_0x3f70e6(0x104)][_0x3f70e6(0x109)](_0x2f1278)[_0x3f70e6(0x118)](_0x406c94['UNIVER_SHEET']);if(!_0x436d02)throw Error(_0x3f70e6(0x114));let _0x512262=_0x436d02[_0x3f70e6(0x115)](),_0x5a0cb5=this[_0x3f70e6(0xff)][_0x3f70e6(0x10a)](_0x512262);return(_0x316a54=_0x5a0cb5==null?void 0x0:_0x5a0cb5[_0x3f70e6(0x124)]())==null?_0x588e6b[_0x3f70e6(0x11e)]:_0x316a54;}[_0x479317(0x10c)](){const _0xf36b55=_0x479317;let _0x3b91c8=this[_0xf36b55(0x104)][_0xf36b55(0x109)](_0x2f1278)[_0xf36b55(0x118)](_0x406c94['UNIVER_SHEET']);if(!_0x3b91c8)throw Error(_0xf36b55(0x114));let _0x4f4feb=_0x3b91c8[_0xf36b55(0x115)](),_0x231e47=this[_0xf36b55(0xff)]['getLiveShareCoordinatorSync'](_0x4f4feb);if(!_0x231e47)throw Error(_0xf36b55(0x122));_0x231e47[_0xf36b55(0x10c)]();}[_0x479317(0x121)](){const _0x318964=_0x479317;let _0x2c9664=this['_injector']['get'](_0x2f1278)[_0x318964(0x118)](_0x406c94[_0x318964(0x107)]);if(!_0x2c9664)throw Error(_0x318964(0x114));let _0x48a1fb=_0x2c9664[_0x318964(0x115)](),_0x557416=this['_liveShareController'][_0x318964(0x10a)](_0x48a1fb);if(!_0x557416)throw Error(_0x318964(0x122));_0x557416['stopFollowing']();}[_0x479317(0x11d)](){const _0x18908d=_0x479317;let _0x255945=this[_0x18908d(0x104)][_0x18908d(0x109)](_0x2f1278)['getCurrentUnitOfType'](_0x406c94['UNIVER_SHEET']);if(!_0x255945)throw Error('No\x20active\x20workbook\x20found.');let _0x199978=_0x255945[_0x18908d(0x115)](),_0xe89591=this[_0x18908d(0xff)][_0x18908d(0x10a)](_0x199978);if(!_0xe89591)throw Error(_0x18908d(0x122));_0xe89591[_0x18908d(0x100)]();}[_0x479317(0x108)](){const _0x1e4ae6=_0x479317;let _0xe12b31=this[_0x1e4ae6(0x104)]['get'](_0x2f1278)[_0x1e4ae6(0x118)](_0x406c94[_0x1e4ae6(0x107)]);if(!_0xe12b31)throw Error(_0x1e4ae6(0x114));let _0x451da8=_0xe12b31[_0x1e4ae6(0x115)](),_0x1d6b81=this[_0x1e4ae6(0xff)][_0x1e4ae6(0x10a)](_0x451da8);if(!_0x1d6b81)throw Error(_0x1e4ae6(0x122));_0x1d6b81[_0x1e4ae6(0x108)]();}};_0x195e9f[_0x479317(0x110)](u);var d=class extends _0x41621a{get[_0x479317(0x10d)](){return _0x588e6b;}};_0x41621a['extend'](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x483488=_0x45b7;(function(_0x481774,_0x480832){const _0x4f141c=_0x45b7,_0xffc8be=_0x481774();while(!![]){try{const _0x464732=parseInt(_0x4f141c(0xef))/0x1+-parseInt(_0x4f141c(0x124))/0x2+parseInt(_0x4f141c(0x139))/0x3*(parseInt(_0x4f141c(0x123))/0x4)+parseInt(_0x4f141c(0x14f))/0x5*(-parseInt(_0x4f141c(0x119))/0x6)+parseInt(_0x4f141c(0x13b))/0x7+-parseInt(_0x4f141c(0x154))/0x8*(parseInt(_0x4f141c(0xf3))/0x9)+-parseInt(_0x4f141c(0x137))/0xa*(-parseInt(_0x4f141c(0x159))/0xb);if(_0x464732===_0x480832)break;else _0xffc8be['push'](_0xffc8be['shift']());}catch(_0x5a7e78){_0xffc8be['push'](_0xffc8be['shift']());}}}(_0x2fbf,0x8a5d2));import{CommandType as _0x458c45,DependentOn as _0x1240ac,Disposable as _0x25821d,DisposableCollection as _0x11b478,ICommandService as _0x24a679,IConfigService as _0x5bd473,IUniverInstanceService as _0x463264,Inject as _0x519b70,Injector as _0x1f8563,Plugin as _0x2e5f28,RxDisposable as _0x1dffe0,UniverInstanceType as _0x443dc4,merge as _0x2e9292,mergeOverrideWithDependencies as _0x13dc50,registerDependencies as _0x1030c8,toDisposable as _0xaaab04,touchDependencies as _0x56c0e1}from'@univerjs/core';import{BuiltInUIPart as _0x4a5288,IUIPartsService as _0xc74574,connectInjector as _0x39d05e,useDependency as _0x128025,useObservable as _0x407d3e}from'@univerjs/ui';import{Button as _0x21c6a6,Dropdown as _0x451c05,clsx as _0x3a2015}from'@univerjs/design';function _0x45b7(_0x312e5c,_0x320410){_0x312e5c=_0x312e5c-0xdb;const _0x2fbfc8=_0x2fbf();let _0x45b719=_0x2fbfc8[_0x312e5c];return _0x45b719;}import{LiveShareIcon as _0x1525d7}from'@univerjs/icons';import{useEffect as _0x34b418,useRef as _0x523753,useState as _0x2329c2}from'react';import{CollaborationEvent as _0x275d1f,parseProtocolChangeset as _0xaf2f9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59fd96,SessionStatus as _0xa36ca2,UniverCollaborationClientPlugin as _0x422184}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x594abb,SetWorksheetActiveOperation as _0x3e5ed1}from'@univerjs/sheets';import{BehaviorSubject as _0x4db554,Subject as _0x3e2cca}from'rxjs';import{takeUntil as _0xa626ba,throttleTime as _0x255e38}from'rxjs/operators';import{Fragment as _0x508d28,jsx as _0x2658fa,jsxs as _0x30d109}from'react/jsx-runtime';import{SetScrollOperation as _0x354a42,SetZoomRatioOperation as _0x33a400}from'@univerjs/sheets-ui';function L(_0x3f3d6e){'@babel/helpers - typeof';const _0x4e6e03=_0x45b7;return L=typeof Symbol==_0x4e6e03(0x10e)&&typeof Symbol[_0x4e6e03(0x12a)]==_0x4e6e03(0x109)?function(_0x32bbb2){return typeof _0x32bbb2;}:function(_0x189f7d){const _0x30815f=_0x4e6e03;return _0x189f7d&&typeof Symbol==_0x30815f(0x10e)&&_0x189f7d['constructor']===Symbol&&_0x189f7d!==Symbol[_0x30815f(0x107)]?_0x30815f(0x109):typeof _0x189f7d;},L(_0x3f3d6e);}function R(_0x3b740f,_0x3edc40){const _0x3ce480=_0x45b7;if(L(_0x3b740f)!=_0x3ce480(0x14c)||!_0x3b740f)return _0x3b740f;var _0x3bf1a4=_0x3b740f[Symbol[_0x3ce480(0xe7)]];if(_0x3bf1a4!==void 0x0){var _0x134a5f=_0x3bf1a4[_0x3ce480(0x143)](_0x3b740f,_0x3edc40||_0x3ce480(0xeb));if(L(_0x134a5f)!=_0x3ce480(0x14c))return _0x134a5f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3edc40===_0x3ce480(0x162)?String:Number)(_0x3b740f);}function z(_0x412bea){const _0x12b1b8=_0x45b7;var _0x17cfec=R(_0x412bea,_0x12b1b8(0x162));return L(_0x17cfec)=='symbol'?_0x17cfec:_0x17cfec+'';}function B(_0x20a5f2,_0x2c7e78,_0x3b0dc5){const _0x42ca67=_0x45b7;return(_0x2c7e78=z(_0x2c7e78))in _0x20a5f2?Object[_0x42ca67(0x140)](_0x20a5f2,_0x2c7e78,{'value':_0x3b0dc5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20a5f2[_0x2c7e78]=_0x3b0dc5,_0x20a5f2;}var V=class extends _0x25821d{constructor(..._0x1cf08b){const _0x167e1c=_0x45b7;super(..._0x1cf08b),B(this,_0x167e1c(0x105),new Set()),B(this,_0x167e1c(0x11e),new Set());}[_0x483488(0xe5)](_0x214e18){const _0x50e9f8=_0x483488;return this[_0x50e9f8(0x105)][_0x50e9f8(0x163)](_0x214e18),_0xaaab04(()=>this[_0x50e9f8(0x105)][_0x50e9f8(0x164)](_0x214e18));}[_0x483488(0xf8)](_0x3fe0dc){const _0x457405=_0x483488;return this['_reporters'][_0x457405(0x163)](_0x3fe0dc),_0xaaab04(()=>this[_0x457405(0x11e)][_0x457405(0x164)](_0x3fe0dc));}[_0x483488(0x160)](_0x4bf672){const _0x3a52de=_0x483488;return this[_0x3a52de(0x105)]['has'](_0x4bf672);}['getInitialStates'](_0x1e90c1){const _0x36408f=_0x483488;return Array['from'](this['_reporters'])[_0x36408f(0x135)](_0x20a44e=>_0x20a44e(_0x1e90c1));}};function H(_0x2f9d8e,_0x5d4695){return function(_0x881661,_0x5cd344){_0x5d4695(_0x881661,_0x5cd344,_0x2f9d8e);};}function U(_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1){const _0x562a82=_0x483488;var _0x495527=arguments[_0x562a82(0x152)],_0x4410d1=_0x495527<0x3?_0x1af699:_0x1ec3e1===null?_0x1ec3e1=Object['getOwnPropertyDescriptor'](_0x1af699,_0x2e9d79):_0x1ec3e1,_0x2803a5;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x562a82(0x10e))_0x4410d1=Reflect['decorate'](_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1);else{for(var _0xe3b8d=_0x247ab9[_0x562a82(0x152)]-0x1;_0xe3b8d>=0x0;_0xe3b8d--)(_0x2803a5=_0x247ab9[_0xe3b8d])&&(_0x4410d1=(_0x495527<0x3?_0x2803a5(_0x4410d1):_0x495527>0x3?_0x2803a5(_0x1af699,_0x2e9d79,_0x4410d1):_0x2803a5(_0x1af699,_0x2e9d79))||_0x4410d1);}return _0x495527>0x3&&_0x4410d1&&Object[_0x562a82(0x140)](_0x1af699,_0x2e9d79,_0x4410d1),_0x4410d1;}let W=class extends _0x1dffe0{constructor(_0x3cbb6b,_0x2853c9,_0x476c88){const _0x22e720=_0x483488;super(),this[_0x22e720(0x10d)]=_0x3cbb6b,this[_0x22e720(0x12e)]=_0x2853c9,this['_collabSessionService']=_0x476c88,B(this,_0x22e720(0x11d),new Map()),this[_0x22e720(0x15a)]();}async[_0x483488(0x117)](_0xba2a9){const _0x305924=_0x483488;return this[_0x305924(0x11d)][_0x305924(0x13c)](_0xba2a9)||await this['_startLiveShareCoordinator'](_0xba2a9),this['_entities']['get'](_0xba2a9);}[_0x483488(0xfd)](_0x471bca){const _0x1b40ee=_0x483488;var _0x4cf63b;return(_0x4cf63b=this[_0x1b40ee(0x11d)][_0x1b40ee(0x10a)](_0x471bca))==null?null:_0x4cf63b;}[_0x483488(0x15a)](){const _0x5bec5e=_0x483488;this['_univerInstanceService'][_0x5bec5e(0x165)](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))['subscribe'](async _0x315cf7=>{const _0x1c642f=_0x5bec5e;let _0x2a2abc=_0x315cf7['unit'][_0x1c642f(0xf7)]();this[_0x1c642f(0x11d)][_0x1c642f(0x13c)](_0x2a2abc)||this[_0x1c642f(0x12d)](_0x2a2abc);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))[_0x5bec5e(0x11f)](_0x418e3d=>{const _0x3df8c6=_0x5bec5e;let _0x5c9eda=_0x418e3d['getUnitId'](),_0x1dec7a=this[_0x3df8c6(0x11d)][_0x3df8c6(0x10a)](_0x5c9eda);_0x1dec7a==null||_0x1dec7a[_0x3df8c6(0x113)]();});}async[_0x483488(0x12d)](_0x518bed){const _0x3bc783=_0x483488;let _0x4be529=await this[_0x3bc783(0x112)]['requireSession'](_0x518bed),_0x5e329d=this['_injector']['createInstance'](K,_0x518bed,_0x4be529);return _0x5e329d[_0x3bc783(0x120)](),this[_0x3bc783(0x11d)][_0x3bc783(0xdf)](_0x518bed,_0x5e329d),_0x5e329d;}};W=U([H(0x0,_0x463264),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x519b70(_0x59fd96))],W);let G=function(_0x3cece8){const _0x316e52=_0x483488;return _0x3cece8[_0x316e52(0x14d)]=_0x316e52(0x115),_0x3cece8[_0x316e52(0xf1)]=_0x316e52(0xdd),_0x3cece8[_0x316e52(0xdb)]='following',_0x3cece8['NOT_FOLLOWING']=_0x316e52(0x11a),_0x3cece8[_0x316e52(0x108)]=_0x316e52(0xe6),_0x3cece8;}({}),K=class extends _0x1dffe0{get['_status'](){const _0x44f4c2=_0x483488;return this[_0x44f4c2(0x134)]['getValue']();}constructor(_0x42e687,_0x1f02ea,_0x4a0697,_0x2e5516,_0x328a2a){const _0x3ade14=_0x483488;super(),this['_unitID']=_0x42e687,this[_0x3ade14(0x104)]=_0x1f02ea,this['_configService']=_0x4a0697,this[_0x3ade14(0xfb)]=_0x2e5516,this[_0x3ade14(0x130)]=_0x328a2a,B(this,_0x3ade14(0x134),new _0x4db554(_0x3ade14(0xdd))),B(this,'status$',this[_0x3ade14(0x134)][_0x3ade14(0x129)]()),B(this,_0x3ade14(0x15a),!0x1),B(this,'_commandDisposable',null),B(this,'_presenter',null);}['dispose'](){const _0x731e6a=_0x483488;var _0x3d4fd0;(_0x3d4fd0=this[_0x731e6a(0x12b)])==null||_0x3d4fd0[_0x731e6a(0x113)](),this[_0x731e6a(0x134)][_0x731e6a(0x15b)](_0x731e6a(0xdd)),this[_0x731e6a(0x134)][_0x731e6a(0x14e)]();}[_0x483488(0x13a)](){return this['_status'];}[_0x483488(0x120)](){const _0x486997=_0x483488;this['_init']||(this[_0x486997(0x15a)]=!0x0,this[_0x486997(0x104)]['sessionStatus$'][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x5abeab=>{const _0x5860ad=_0x486997;switch(_0x5abeab){case _0xa36ca2[_0x5860ad(0x14d)]:this[_0x5860ad(0x151)]();break;case _0xa36ca2[_0x5860ad(0x11b)]:this[_0x5860ad(0x11c)]();break;default:}}),this[_0x486997(0x104)][_0x486997(0x142)][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x3e8753=>{const _0x2726e0=_0x486997;let {eventID:_0x15297d}=_0x3e8753;switch(_0x15297d){case _0x275d1f[_0x2726e0(0x126)]:this[_0x2726e0(0x16e)](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x148)]:this['_handleOperation'](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x12c)]:this['_handleTerminate']();break;case _0x275d1f[_0x2726e0(0x14a)]:this[_0x2726e0(0x16c)](_0x3e8753);break;default:}}));}[_0x483488(0xff)](){const _0x6e80e2=_0x483488;this[_0x6e80e2(0x104)][_0x6e80e2(0xf5)]({'eventID':_0x275d1f[_0x6e80e2(0x133)],'data':{'unitID':this['_unitID'],'userID':this[_0x6e80e2(0x104)][_0x6e80e2(0x121)]()}},this[_0x6e80e2(0xed)]);}[_0x483488(0x136)](){const _0x51a89a=_0x483488;this['_status']===_0x51a89a(0xe6)&&(this['_status$'][_0x51a89a(0x15b)](_0x51a89a(0xdd)),this['_collabSession'][_0x51a89a(0xf5)]({'eventID':_0x275d1f[_0x51a89a(0x12c)],'data':{'unitID':this[_0x51a89a(0xed)]}},this[_0x51a89a(0xed)]));}[_0x483488(0x155)](){const _0x1cd148=_0x483488;this[_0x1cd148(0x150)]===_0x1cd148(0x11a)&&(this['_status$'][_0x1cd148(0x15b)](_0x1cd148(0x167)),this[_0x1cd148(0x153)]());}['stopFollowing'](){const _0x267338=_0x483488;this[_0x267338(0x150)]===_0x267338(0x167)&&this['_stopFollowing']();}[_0x483488(0x16e)](_0x29354a){const _0x5a8e73=_0x483488;let {presenter:_0x31d773}=_0x29354a[_0x5a8e73(0x15e)],_0x1f914f=this['_collabSession']['getMemberID']();this[_0x5a8e73(0x138)]=_0x31d773,_0x31d773===_0x1f914f?(this[_0x5a8e73(0x10c)](),this['_startPresenting']()):this[_0x5a8e73(0x150)]!=='not-following'&&(this[_0x5a8e73(0x13e)](),this[_0x5a8e73(0x153)]());}['_fetchOperations'](){const _0x18e6a8=_0x483488;let _0x1647ab={'eventID':_0x275d1f[_0x18e6a8(0xee)]};this[_0x18e6a8(0x104)][_0x18e6a8(0xf5)](_0x1647ab,this[_0x18e6a8(0xed)]);}[_0x483488(0x16d)](){const _0x4546c6=_0x483488;this[_0x4546c6(0x138)]=null,this[_0x4546c6(0x150)]!=='presenting'&&this[_0x4546c6(0x169)]();}[_0x483488(0x16c)](_0x33cf5b){const _0x42f3f9=_0x483488;if(this['_status']===_0x42f3f9(0x167)&&this[_0x42f3f9(0x138)]===_0x33cf5b[_0x42f3f9(0x15e)][_0x42f3f9(0x125)]){let _0x335687=_0xaf2f9c(_0x33cf5b[_0x42f3f9(0x15e)])[_0x42f3f9(0xf6)][_0x42f3f9(0x116)]()[_0x42f3f9(0x15f)](_0x230023=>_0x230023['id']===_0x594abb['id']);if(_0x335687){let _0xb62741=_0x335687[_0x42f3f9(0x10b)][_0x42f3f9(0x13d)],_0x3122d2=_0x335687['params'][_0x42f3f9(0x168)]['id'];setTimeout(()=>{const _0x584661=_0x42f3f9;this['_commandService'][_0x584661(0x15d)](_0x3e5ed1['id'],{'unitId':_0xb62741,'subUnitId':_0x3122d2},{'fromCollab':!0x0});});}}}[_0x483488(0x103)](){const _0x5d974b=_0x483488;var _0x411ec8;(_0x411ec8=this[_0x5d974b(0x12b)])==null||_0x411ec8['dispose'](),this[_0x5d974b(0x134)][_0x5d974b(0x15b)](_0x5d974b(0xe6));let _0x5616b2=new Map(),_0x1bda74=this[_0x5d974b(0x12b)]=new _0x11b478();_0x1bda74['add'](_0xaaab04(()=>{const _0x5070a4=_0x5d974b;_0x5616b2[_0x5070a4(0xfa)](({subject:_0x5024d8,subscription:_0x11f265})=>{const _0x2be60c=_0x5070a4;_0x11f265[_0x2be60c(0x102)](),_0x5024d8[_0x2be60c(0x14e)]();}),_0x5616b2[_0x5070a4(0x149)]();})),_0x1bda74[_0x5d974b(0x163)](this[_0x5d974b(0x130)][_0x5d974b(0x101)](_0x19c86c=>{const _0x37efbf=_0x5d974b;if(_0x19c86c[_0x37efbf(0x118)]!==_0x458c45[_0x37efbf(0x156)]||!this[_0x37efbf(0xfb)][_0x37efbf(0x160)](_0x19c86c['id']))return;let {id:_0x3bc3e4}=_0x19c86c,_0x1536eb;if(_0x5616b2[_0x37efbf(0x13c)](_0x3bc3e4))_0x1536eb=_0x5616b2[_0x37efbf(0x10a)](_0x3bc3e4)[_0x37efbf(0x15c)];else{var _0x1ed284;_0x1536eb=new _0x3e2cca();let _0x59c8e4=_0x1536eb[_0x37efbf(0xfc)](_0x255e38((_0x1ed284=this[_0x37efbf(0x122)][_0x37efbf(0xe2)](_0x37efbf(0xe4)))==null?0xc8:_0x1ed284,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37efbf(0x11f)](_0x4deaca=>{const _0xd4647e=_0x37efbf;this[_0xd4647e(0x104)][_0xd4647e(0xf5)]({'eventID':_0x275d1f[_0xd4647e(0x148)],'data':{'unitID':this[_0xd4647e(0xed)],'operations':{[_0x4deaca['id']]:{'id':_0x4deaca['id'],'params':JSON[_0xd4647e(0x158)](_0x4deaca[_0xd4647e(0x10b)])}}}},this['_unitID']);});_0x5616b2['set'](_0x3bc3e4,{'subject':_0x1536eb,'subscription':_0x59c8e4});}_0x1536eb[_0x37efbf(0x15b)](_0x19c86c);})),this['_liveShareService'][_0x5d974b(0x170)](this[_0x5d974b(0xed)])[_0x5d974b(0xfa)](_0x54979c=>this[_0x5d974b(0x104)]['send']({'eventID':_0x275d1f[_0x5d974b(0x148)],'data':{'unitID':this['_unitID'],'operations':{[_0x54979c['id']]:{'id':_0x54979c['id'],'params':JSON[_0x5d974b(0x158)](_0x54979c['params'])}}}},this[_0x5d974b(0xed)]));}[_0x483488(0x13e)](){const _0x2525ec=_0x483488;var _0x4117b0;this[_0x2525ec(0x134)][_0x2525ec(0x15b)]('idle'),(_0x4117b0=this[_0x2525ec(0x12b)])==null||_0x4117b0[_0x2525ec(0x113)](),this['_commandDisposable']=null;}[_0x483488(0x153)](){const _0x56837e=_0x483488;var _0x1e68b0;(_0x1e68b0=this[_0x56837e(0x12b)])==null||_0x1e68b0[_0x56837e(0x113)](),this[_0x56837e(0x134)]['next'](_0x56837e(0x167));}[_0x483488(0x169)](){const _0x51a6df=_0x483488;var _0x2ec300;this[_0x51a6df(0x134)][_0x51a6df(0x15b)](_0x51a6df(0xdd)),(_0x2ec300=this['_commandDisposable'])==null||_0x2ec300[_0x51a6df(0x113)](),this[_0x51a6df(0x12b)]=null;}['_stopFollowing'](){const _0x126668=_0x483488;var _0x5bc21a;this[_0x126668(0x134)]['next'](_0x126668(0x11a)),(_0x5bc21a=this[_0x126668(0x12b)])==null||_0x5bc21a[_0x126668(0x113)]();}['_handleOperation'](_0x1fb62c){const _0x14d5a8=_0x483488;if([_0x14d5a8(0xe6),_0x14d5a8(0x11a),'offline'][_0x14d5a8(0xe0)](this[_0x14d5a8(0x150)])||!_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0xf4)]||_0x1fb62c['data'][_0x14d5a8(0xf4)]===this[_0x14d5a8(0x104)][_0x14d5a8(0x121)]())return;this['_status']===_0x14d5a8(0xdd)&&this[_0x14d5a8(0x153)]();let _0x4ca9de=_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0x157)];Object[_0x14d5a8(0x146)](_0x4ca9de)[_0x14d5a8(0xfa)](_0x45965c=>{const _0x13ff50=_0x14d5a8;this[_0x13ff50(0x130)][_0x13ff50(0x15d)](_0x45965c['id'],_0x45965c['params']?JSON[_0x13ff50(0x13f)](_0x45965c[_0x13ff50(0x10b)]):null,{'fromCollab':!0x0});});}[_0x483488(0x151)](){const _0x23845e=_0x483488;var _0x3aaad9;this[_0x23845e(0x134)][_0x23845e(0x15b)](_0x23845e(0x115)),(_0x3aaad9=this['_commandDisposable'])==null||_0x3aaad9[_0x23845e(0x113)]();}[_0x483488(0x11c)](){const _0x59d97b=_0x483488;this[_0x59d97b(0x134)]['next'](_0x59d97b(0xdd)),this[_0x59d97b(0x10f)]();}};K=U([H(0x2,_0x5bd473),H(0x3,_0x519b70(V)),H(0x4,_0x24a679)],K);function q(){const _0x45a13d=_0x483488;let _0x2df76a=_0x128025(W),_0x1baac4=_0x128025(_0x463264),_0xf2afa0=_0x407d3e(()=>_0x1baac4[_0x45a13d(0xde)](_0x443dc4[_0x45a13d(0x145)]),void 0x0,!0x1,[]),[_0x14f53a,_0x3595ab]=_0x2329c2(null),[_0x111ced,_0x19a5ad]=_0x2329c2(_0x45a13d(0xdd)),_0x59c95f=_0x523753(null);return _0x34b418(()=>(_0xf2afa0&&_0x2df76a['getLiveShareCoordinator'](_0xf2afa0[_0x45a13d(0xf7)]())[_0x45a13d(0x114)](_0x33b041=>{const _0x93cd89=_0x45a13d;_0x3595ab(_0x33b041),_0x59c95f[_0x93cd89(0x14b)]=_0x33b041['status$'][_0x93cd89(0x11f)](_0x11dc9f=>{_0x19a5ad(_0x11dc9f);});}),()=>{const _0x4c84f4=_0x45a13d;var _0x596fb7;(_0x596fb7=_0x59c95f[_0x4c84f4(0x14b)])==null||_0x596fb7[_0x4c84f4(0x102)](),_0x59c95f['current']=null;}),[_0xf2afa0,_0x2df76a]),_0x14f53a?_0x2658fa(_0x451c05,{'align':'end','disabled':_0x111ced===_0x45a13d(0x115),'className':_0x45a13d(0xe1),'overlay':_0x2658fa(ce,{'status':_0x111ced,'coordinator':_0x14f53a}),'children':_0x2658fa('button',{'className':_0x3a2015(_0x45a13d(0xf0),{'univer-cursor-not-allowed':_0x111ced===_0x45a13d(0x115),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x111ced!==_0x45a13d(0x115)}),'type':_0x45a13d(0xdc),'children':_0x2658fa(_0x1525d7,{'className':_0x45a13d(0x110)})})}):null;}function ce(_0x28c8f9){const _0x4e566d=_0x483488;let {status:_0x16a352,coordinator:_0xf0b1bb}=_0x28c8f9;switch(_0x16a352){case _0x4e566d(0xdd):return _0x2658fa(le,{'coordinator':_0xf0b1bb});case'following':return _0x2658fa(ue,{'coordinator':_0xf0b1bb});case _0x4e566d(0x11a):return _0x2658fa(de,{'coordinator':_0xf0b1bb});case'offline':return _0x2658fa(fe,{});case _0x4e566d(0xe6):return _0x2658fa(J,{'coordinator':_0xf0b1bb});default:return null;}}function le(_0x80a58a){const _0x5c7c45=_0x483488;let {coordinator:_0x2b3845}=_0x80a58a;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0x5c7c45(0x132),{'className':_0x5c7c45(0x161),'children':'Present\x20this\x20document'}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x2b3845[_0x5c7c45(0xff)](),'children':_0x5c7c45(0x147)})]});}function ue(_0x564e8f){const _0x35a5b8=_0x483488;let {coordinator:_0x827031}=_0x564e8f;return _0x30d109(_0x508d28,{'children':[_0x2658fa('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x35a5b8(0xfe)}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x827031['stopFollowing'](),'children':_0x35a5b8(0x16b)})]});}function de(_0x170b55){const _0xe1606c=_0x483488;let {coordinator:_0x5d22ad}=_0x170b55;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xe1606c(0x132),{'className':_0xe1606c(0x161),'children':_0xe1606c(0xe8)}),_0x2658fa(_0x21c6a6,{'variant':'text','onClick':()=>_0x5d22ad[_0xe1606c(0x155)](),'children':_0xe1606c(0x128)})]});}function J(_0x41b798){const _0xf5eb1c=_0x483488;let {coordinator:_0x4b5f83}=_0x41b798;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xf5eb1c(0x132),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2658fa(_0x21c6a6,{'variant':_0xf5eb1c(0xeb),'onClick':()=>_0x4b5f83[_0xf5eb1c(0x136)](),'children':'Stop\x20presenting'})]});}function fe(){const _0x205204=_0x483488;return _0x2658fa(_0x508d28,{'children':_0x205204(0x100)});}let Y=class extends _0x25821d{constructor(_0x3dd031,_0x5530ac){const _0x2ecf5b=_0x483488;super(),this['_injector']=_0x3dd031,this[_0x2ecf5b(0xf2)]=_0x5530ac,this[_0x2ecf5b(0x141)]();}[_0x483488(0x141)](){const _0x55b9ce=_0x483488;this[_0x55b9ce(0x111)](this[_0x55b9ce(0xf2)][_0x55b9ce(0x12f)](_0x4a5288['HEADER_MENU'],()=>_0x39d05e(q,this['_injector'])));}};Y=U([H(0x0,_0x519b70(_0x1f8563)),H(0x1,_0xc74574)],Y);function _0x2fbf(){const _0x2ba42e=['getLiveShareCoordinatorSync','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','You\x27are\x20offline.','onCommandExecuted','unsubscribe','_startPresenting','_collabSession','_sharedOperations','live-share.config','prototype','PRESENTING','symbol','get','params','_stopFollowing','_univerInstanceService','function','_fetchOperations','univer-size-4','disposeWithMe','_collabSessionService','dispose','then','offline','reverse','getLiveShareCoordinator','type','241356LZzSiW','not-following','ONLINE','_handleOnline','_entities','_reporters','subscribe','init','getMemberID','_configService','8FUhaIk','1259034iWvHjx','memberID','LIVESHARE_NEW_HOST','@univerjs-pro/live-share','Start\x20following','asObservable','iterator','_commandDisposable','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_injector','registerComponent','_commandService','override','div','LIVESHARE_REQUEST_HOST','_status$','map','stopPresenting','10TGKNyK','_presenter','710367ZMnfss','getStatus','2394672ADlDof','has','unitId','_stopPresenting','parse','defineProperty','_mountLiveShare','event$','call','0.24.0','UNIVER_SHEET','values','Start','LIVESHARE_OPERATION','clear','NEW_CHANGESETS','current','object','OFFLINE','complete','100FeflZT','_status','_handleOffline','length','_startFollowing','5891592nXfPay','startFollowing','OPERATION','operations','stringify','10360471ofBdeE','_init','next','subject','executeCommand','data','find','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','add','delete','getTypeOfUnitAdded$','pluginName','following','sheet','_beIdle','packageName','Stop\x20following','_handleNewChangeSets','_handleTerminate','_handleNewHost','version','getInitialStates','FOLLOWING','button','idle','getCurrentTypeOfUnit$','set','includes','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getConfig','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','presenting','toPrimitive','You\x27re\x20not\x20following\x20the\x20presenter','_config','setConfig','default','onRendered','_unitID','LIVESHARE_FETCH_OPERATIONS','979689diOGji','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','_uiPartsService','9lyjQpA','presenter','send','mutations','getUnitId','registerInitialStateReporter','dispose$','forEach','_liveShareService','pipe'];_0x2fbf=function(){return _0x2ba42e;};return _0x2fbf();}var pe=_0x483488(0x127),me=_0x483488(0x144);const X=_0x483488(0x106);Symbol(X);const Z={};let Q=class extends _0x25821d{constructor(_0x3f2a6e){const _0x452524=_0x483488;super(),this['_liveShareService']=_0x3f2a6e,this[_0x452524(0x15a)]();}[_0x483488(0x15a)](){[_0x33a400['id'],_0x354a42['id'],_0x3e5ed1['id']]['forEach'](_0x3ba871=>{const _0x198c4e=_0x45b7;this[_0x198c4e(0x111)](this['_liveShareService'][_0x198c4e(0xe5)](_0x3ba871));});}};Q=U([H(0x0,_0x519b70(V))],Q);let $=class extends _0x2e5f28{constructor(_0x5747a0=Z,_0x50d166,_0x268d60){const _0x16de18=_0x483488;super(),this['_config']=_0x5747a0,this[_0x16de18(0x12e)]=_0x50d166,this['_configService']=_0x268d60;let {..._0x1b2174}=_0x2e9292({},Z,this[_0x16de18(0xe9)]);this[_0x16de18(0x122)][_0x16de18(0xea)](X,_0x1b2174);}['onStarting'](){const _0x5d4903=_0x483488;_0x1030c8(this[_0x5d4903(0x12e)],_0x13dc50([[V],[W],[Q],[Y]],this[_0x5d4903(0xe9)][_0x5d4903(0x131)])),_0x56c0e1(this[_0x5d4903(0x12e)],[[Q]]);}[_0x483488(0xec)](){const _0x8b73ab=_0x483488;_0x56c0e1(this[_0x8b73ab(0x12e)],[[Y]]);}};B($,_0x483488(0x118),_0x443dc4[_0x483488(0xe3)]),B($,_0x483488(0x166),'UNIVER_LIVE_SHARE_PLUGIN'),B($,_0x483488(0x16a),pe),B($,_0x483488(0x16f),me),$=U([_0x1240ac(_0x422184),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x5bd473)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x4bfb65=_0x2290;(function(_0x38130e,_0x52ba00){const _0x1186c9=_0x2290,_0x574ec6=_0x38130e();while(!![]){try{const _0x41863a=parseInt(_0x1186c9(0x19e))/0x1+-parseInt(_0x1186c9(0x153))/0x2*(parseInt(_0x1186c9(0x16f))/0x3)+-parseInt(_0x1186c9(0x14d))/0x4+-parseInt(_0x1186c9(0x1b9))/0x5+-parseInt(_0x1186c9(0x16a))/0x6*(-parseInt(_0x1186c9(0x158))/0x7)+-parseInt(_0x1186c9(0x136))/0x8*(parseInt(_0x1186c9(0x1af))/0x9)+-parseInt(_0x1186c9(0x177))/0xa*(-parseInt(_0x1186c9(0x14b))/0xb);if(_0x41863a===_0x52ba00)break;else _0x574ec6['push'](_0x574ec6['shift']());}catch(_0x4f0dae){_0x574ec6['push'](_0x574ec6['shift']());}}}(_0x41da,0xadb29));import{CommandType as _0x19d177,DependentOn as _0x59b5e2,Disposable as _0x1ce4ab,DisposableCollection as _0x32b6cc,ICommandService as _0x34d8a7,IConfigService as _0x25496e,IUniverInstanceService as _0x4f09f7,Inject as _0x56773e,Injector as _0x51a301,Plugin as _0x1b359a,RxDisposable as _0x1a3ddb,UniverInstanceType as _0x7bf701,merge as _0x5bb40d,mergeOverrideWithDependencies as _0x250f7e,registerDependencies as _0x519864,toDisposable as _0x3bc937,touchDependencies as _0x4834f3}from'@univerjs/core';import{BuiltInUIPart as _0x342ffe,IUIPartsService as _0x27ea1c,connectInjector as _0x229861,useDependency as _0x4aae14,useObservable as _0x2f2a72}from'@univerjs/ui';import{Button as _0x2e3da7,Dropdown as _0x256d48,clsx as _0x16695f}from'@univerjs/design';import{LiveShareIcon as _0x279c39}from'@univerjs/icons';import{useEffect as _0x3b2091,useRef as _0x3b13ea,useState as _0x3a871b}from'react';import{CollaborationEvent as _0x13fab2,parseProtocolChangeset as _0x5034fc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3c4ea9,SessionStatus as _0x15ce3e,UniverCollaborationClientPlugin as _0x138c17}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5c83b9,SetWorksheetActiveOperation as _0x3bef8f}from'@univerjs/sheets';import{BehaviorSubject as _0x4610d5,Subject as _0x5f429a}from'rxjs';import{takeUntil as _0x264a65,throttleTime as _0x16b8ad}from'rxjs/operators';import{Fragment as _0x2f0b38,jsx as _0x5e0507,jsxs as _0x546f71}from'react/jsx-runtime';import{SetScrollOperation as _0x5abf17,SetZoomRatioOperation as _0x59b108}from'@univerjs/sheets-ui';function R(_0x2a1524){'@babel/helpers - typeof';const _0x5341fc=_0x2290;return R=typeof Symbol==_0x5341fc(0x147)&&typeof Symbol['iterator']=='symbol'?function(_0x425c03){return typeof _0x425c03;}:function(_0x1fc4ff){const _0x3eaa98=_0x5341fc;return _0x1fc4ff&&typeof Symbol==_0x3eaa98(0x147)&&_0x1fc4ff['constructor']===Symbol&&_0x1fc4ff!==Symbol[_0x3eaa98(0x18d)]?_0x3eaa98(0x159):typeof _0x1fc4ff;},R(_0x2a1524);}function z(_0x101c94,_0xbd8e4c){const _0x2031cd=_0x2290;if(R(_0x101c94)!='object'||!_0x101c94)return _0x101c94;var _0x2e139b=_0x101c94[Symbol[_0x2031cd(0x174)]];if(_0x2e139b!==void 0x0){var _0x4318e7=_0x2e139b['call'](_0x101c94,_0xbd8e4c||_0x2031cd(0x15f));if(R(_0x4318e7)!=_0x2031cd(0x19d))return _0x4318e7;throw TypeError(_0x2031cd(0x14f));}return(_0xbd8e4c==='string'?String:Number)(_0x101c94);}function B(_0xb11bdc){const _0x443b0d=_0x2290;var _0x518065=z(_0xb11bdc,_0x443b0d(0x15b));return R(_0x518065)=='symbol'?_0x518065:_0x518065+'';}function V(_0x3ca471,_0x499271,_0x3f6cce){const _0x205b8a=_0x2290;return(_0x499271=B(_0x499271))in _0x3ca471?Object[_0x205b8a(0x152)](_0x3ca471,_0x499271,{'value':_0x3f6cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ca471[_0x499271]=_0x3f6cce,_0x3ca471;}var H=class extends _0x1ce4ab{constructor(..._0x539b07){const _0x8269b0=_0x2290;super(..._0x539b07),V(this,'_sharedOperations',new Set()),V(this,_0x8269b0(0x14a),new Set());}['registerSharedOperation'](_0x28ed9c){const _0x5597fe=_0x2290;return this[_0x5597fe(0x155)]['add'](_0x28ed9c),_0x3bc937(()=>this[_0x5597fe(0x155)]['delete'](_0x28ed9c));}[_0x4bfb65(0x187)](_0x47d1c8){const _0x22aa2f=_0x4bfb65;return this[_0x22aa2f(0x14a)][_0x22aa2f(0x12d)](_0x47d1c8),_0x3bc937(()=>this[_0x22aa2f(0x14a)]['delete'](_0x47d1c8));}[_0x4bfb65(0x15d)](_0x412477){const _0x3c25a9=_0x4bfb65;return this[_0x3c25a9(0x155)][_0x3c25a9(0x170)](_0x412477);}[_0x4bfb65(0x146)](_0x3d3879){const _0x2096ab=_0x4bfb65;return Array[_0x2096ab(0x157)](this['_reporters'])[_0x2096ab(0x18a)](_0x53f955=>_0x53f955(_0x3d3879));}};function U(_0x474cb9,_0x30c562){return function(_0x5b3b51,_0x10e3a5){_0x30c562(_0x5b3b51,_0x10e3a5,_0x474cb9);};}function W(_0x19748c,_0x2c7c96,_0x447637,_0x272e45){const _0x4f229f=_0x4bfb65;var _0x515ddf=arguments[_0x4f229f(0x135)],_0x34c317=_0x515ddf<0x3?_0x2c7c96:_0x272e45===null?_0x272e45=Object[_0x4f229f(0x191)](_0x2c7c96,_0x447637):_0x272e45,_0x3c960c;if(typeof Reflect=='object'&&typeof Reflect[_0x4f229f(0x144)]==_0x4f229f(0x147))_0x34c317=Reflect[_0x4f229f(0x144)](_0x19748c,_0x2c7c96,_0x447637,_0x272e45);else{for(var _0x477e89=_0x19748c[_0x4f229f(0x135)]-0x1;_0x477e89>=0x0;_0x477e89--)(_0x3c960c=_0x19748c[_0x477e89])&&(_0x34c317=(_0x515ddf<0x3?_0x3c960c(_0x34c317):_0x515ddf>0x3?_0x3c960c(_0x2c7c96,_0x447637,_0x34c317):_0x3c960c(_0x2c7c96,_0x447637))||_0x34c317);}return _0x515ddf>0x3&&_0x34c317&&Object['defineProperty'](_0x2c7c96,_0x447637,_0x34c317),_0x34c317;}function _0x41da(){const _0x3b2379=['Stop\x20following','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','getStatus','includes','_status','_status$','_startLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','status$','_univerInstanceService','2763cWqBeO','Present\x20this\x20document','operations','params','_startFollowing','_unitID','unsubscribe','_uiPartsService','stopFollowing','getLiveShareCoordinator','3390370UUWlsD','forEach','current','dispose','LIVESHARE_FETCH_OPERATIONS','following','LIVESHARE_OPERATION','_configService','event$','add','not-following','live-share.config','LIVESHARE_REQUEST_HOST','type','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','pluginName','_entities','length','8784fJLvGx','memberID','stopPresenting','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinatorSync','_handleOnline','init','_presenter','_stopFollowing','disposeWithMe','0.25.0','UNIVER_SHEET','_liveShareService','decorate','_beIdle','getInitialStates','function','tryStartPresenting','_commandDisposable','_reporters','2179914wFynEy','getConfig','1407576bqAdTG','getTypeOfUnitDisposed$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','div','offline','defineProperty','754124sTQsrk','_handleNewChangeSets','_sharedOperations','NOT_FOLLOWING','from','7pxkwak','symbol','getUnitId','string','startFollowing','shouldShareOperation','_mountLiveShare','default','_handleOperation','set','send','pipe','dispose$','text','complete','setConfig','_collabSession','_collabSessionService','3121062VbFUgg','next','subscribe','getTypeOfUnitAdded$','PRESENTING','3FGxjnp','has','executeCommand','find','registerSharedOperation','toPrimitive','data','HEADER_MENU','30iPaxFT','UNIVER_LIVE_SHARE_PLUGIN','FOLLOWING','LIVESHARE_TERMINATE','reverse','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopPresenting','_injector','values','asObservable','_init','createInstance','presenting','then','_startPresenting','_commandService','registerInitialStateReporter','NEW_CHANGESETS','_fetchOperations','map','_config','requireSession','prototype','presenter','stringify','univer-mb-3\x20univer-w-full\x20univer-text-sm','getOwnPropertyDescriptor','get','button','sheet','getMemberID','registerComponent','idle','unit','OFFLINE','subject','UNIVER_UNKNOWN','IDLE','object','1340882VUXrLG','parse','onStarting','mutations','_handleNewHost','_handleOffline'];_0x41da=function(){return _0x3b2379;};return _0x41da();}let G=class extends _0x1a3ddb{constructor(_0x25b0f7,_0x1e18be,_0x30f611){const _0x2cee2a=_0x4bfb65;super(),this[_0x2cee2a(0x1ae)]=_0x25b0f7,this[_0x2cee2a(0x17e)]=_0x1e18be,this[_0x2cee2a(0x169)]=_0x30f611,V(this,_0x2cee2a(0x134),new Map()),this[_0x2cee2a(0x181)]();}async['getLiveShareCoordinator'](_0x104e9f){const _0x2cad5a=_0x4bfb65;return this[_0x2cad5a(0x134)][_0x2cad5a(0x170)](_0x104e9f)||await this[_0x2cad5a(0x1ab)](_0x104e9f),this['_entities'][_0x2cad5a(0x192)](_0x104e9f);}[_0x4bfb65(0x13b)](_0xa5236){const _0x6baff3=_0x4bfb65;var _0x2cb56a;return(_0x2cb56a=this[_0x6baff3(0x134)][_0x6baff3(0x192)](_0xa5236))==null?null:_0x2cb56a;}[_0x4bfb65(0x181)](){const _0x43e8d3=_0x4bfb65;this[_0x43e8d3(0x1ae)][_0x43e8d3(0x16d)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](async _0x25bc6e=>{const _0xe3be1b=_0x43e8d3;let _0x57b1df=_0x25bc6e[_0xe3be1b(0x198)]['getUnitId']();this[_0xe3be1b(0x134)][_0xe3be1b(0x170)](_0x57b1df)||this[_0xe3be1b(0x1ab)](_0x57b1df);}),this[_0x43e8d3(0x1ae)][_0x43e8d3(0x14e)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](_0xe09c49=>{const _0x597665=_0x43e8d3;let _0x45582d=_0xe09c49[_0x597665(0x15a)](),_0x578ec6=this[_0x597665(0x134)]['get'](_0x45582d);_0x578ec6==null||_0x578ec6[_0x597665(0x1bc)]();});}async[_0x4bfb65(0x1ab)](_0x4c900c){const _0x3faca5=_0x4bfb65;let _0x35a9ac=await this[_0x3faca5(0x169)][_0x3faca5(0x18c)](_0x4c900c),_0x8f180b=this[_0x3faca5(0x17e)][_0x3faca5(0x182)](q,_0x4c900c,_0x35a9ac);return _0x8f180b[_0x3faca5(0x13d)](),this[_0x3faca5(0x134)][_0x3faca5(0x161)](_0x4c900c,_0x8f180b),_0x8f180b;}};G=W([U(0x0,_0x4f09f7),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x56773e(_0x3c4ea9))],G);let K=function(_0x553144){const _0x71acf4=_0x4bfb65;return _0x553144[_0x71acf4(0x199)]=_0x71acf4(0x151),_0x553144[_0x71acf4(0x19c)]=_0x71acf4(0x197),_0x553144[_0x71acf4(0x179)]=_0x71acf4(0x1be),_0x553144[_0x71acf4(0x156)]='not-following',_0x553144[_0x71acf4(0x16e)]=_0x71acf4(0x183),_0x553144;}({}),q=class extends _0x1a3ddb{get[_0x4bfb65(0x1a9)](){const _0x5583b9=_0x4bfb65;return this[_0x5583b9(0x1aa)]['getValue']();}constructor(_0x44bda8,_0x368732,_0x37c925,_0x22b1b0,_0x34397c){const _0x113d22=_0x4bfb65;super(),this['_unitID']=_0x44bda8,this['_collabSession']=_0x368732,this[_0x113d22(0x1c0)]=_0x37c925,this[_0x113d22(0x143)]=_0x22b1b0,this[_0x113d22(0x186)]=_0x34397c,V(this,_0x113d22(0x1aa),new _0x4610d5('idle')),V(this,_0x113d22(0x1ad),this[_0x113d22(0x1aa)][_0x113d22(0x180)]()),V(this,_0x113d22(0x181),!0x1),V(this,'_commandDisposable',null),V(this,'_presenter',null);}['dispose'](){const _0x1e12bf=_0x4bfb65;var _0x900623;(_0x900623=this[_0x1e12bf(0x149)])==null||_0x900623[_0x1e12bf(0x1bc)](),this[_0x1e12bf(0x1aa)][_0x1e12bf(0x16b)]('idle'),this['_status$'][_0x1e12bf(0x166)]();}[_0x4bfb65(0x1a7)](){const _0x290313=_0x4bfb65;return this[_0x290313(0x1a9)];}[_0x4bfb65(0x13d)](){const _0x25d25e=_0x4bfb65;this[_0x25d25e(0x181)]||(this['_init']=!0x0,this[_0x25d25e(0x168)]['sessionStatus$'][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))['subscribe'](_0x2c01e3=>{const _0x20014b=_0x25d25e;switch(_0x2c01e3){case _0x15ce3e[_0x20014b(0x199)]:this[_0x20014b(0x1a3)]();break;case _0x15ce3e['ONLINE']:this[_0x20014b(0x13c)]();break;default:}}),this[_0x25d25e(0x168)][_0x25d25e(0x1c1)][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))[_0x25d25e(0x16c)](_0x498a23=>{const _0x36d04b=_0x25d25e;let {eventID:_0x56538d}=_0x498a23;switch(_0x56538d){case _0x13fab2['LIVESHARE_NEW_HOST']:this[_0x36d04b(0x1a2)](_0x498a23);break;case _0x13fab2['LIVESHARE_OPERATION']:this[_0x36d04b(0x160)](_0x498a23);break;case _0x13fab2[_0x36d04b(0x17a)]:this['_handleTerminate']();break;case _0x13fab2[_0x36d04b(0x188)]:this[_0x36d04b(0x154)](_0x498a23);break;default:}}));}[_0x4bfb65(0x148)](){const _0x52e11a=_0x4bfb65;this[_0x52e11a(0x168)][_0x52e11a(0x162)]({'eventID':_0x13fab2[_0x52e11a(0x130)],'data':{'unitID':this[_0x52e11a(0x1b4)],'userID':this[_0x52e11a(0x168)]['getMemberID']()}},this[_0x52e11a(0x1b4)]);}[_0x4bfb65(0x138)](){const _0x212eb0=_0x4bfb65;this[_0x212eb0(0x1a9)]===_0x212eb0(0x183)&&(this['_status$'][_0x212eb0(0x16b)](_0x212eb0(0x197)),this[_0x212eb0(0x168)][_0x212eb0(0x162)]({'eventID':_0x13fab2['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x212eb0(0x1b4)]));}[_0x4bfb65(0x15c)](){const _0x4e208c=_0x4bfb65;this[_0x4e208c(0x1a9)]===_0x4e208c(0x12e)&&(this[_0x4e208c(0x1aa)][_0x4e208c(0x16b)](_0x4e208c(0x1be)),this[_0x4e208c(0x1b3)]());}['stopFollowing'](){const _0x1ad6dd=_0x4bfb65;this[_0x1ad6dd(0x1a9)]===_0x1ad6dd(0x1be)&&this[_0x1ad6dd(0x13f)]();}[_0x4bfb65(0x1a2)](_0x3a2ef5){const _0x5db380=_0x4bfb65;let {presenter:_0x574917}=_0x3a2ef5[_0x5db380(0x175)],_0xcda10e=this['_collabSession'][_0x5db380(0x195)]();this[_0x5db380(0x13e)]=_0x574917,_0x574917===_0xcda10e?(this[_0x5db380(0x13f)](),this[_0x5db380(0x185)]()):this[_0x5db380(0x1a9)]!==_0x5db380(0x12e)&&(this[_0x5db380(0x17d)](),this['_startFollowing']());}[_0x4bfb65(0x189)](){const _0x43f052=_0x4bfb65;let _0x421978={'eventID':_0x13fab2[_0x43f052(0x1bd)]};this[_0x43f052(0x168)][_0x43f052(0x162)](_0x421978,this[_0x43f052(0x1b4)]);}['_handleTerminate'](){const _0x58ac23=_0x4bfb65;this[_0x58ac23(0x13e)]=null,this[_0x58ac23(0x1a9)]!==_0x58ac23(0x183)&&this[_0x58ac23(0x145)]();}[_0x4bfb65(0x154)](_0x31bffc){const _0x59116b=_0x4bfb65;if(this['_status']===_0x59116b(0x1be)&&this[_0x59116b(0x13e)]===_0x31bffc[_0x59116b(0x175)][_0x59116b(0x137)]){let _0x7a39f0=_0x5034fc(_0x31bffc[_0x59116b(0x175)])[_0x59116b(0x1a1)][_0x59116b(0x17b)]()[_0x59116b(0x172)](_0x3a37c3=>_0x3a37c3['id']===_0x5c83b9['id']);if(_0x7a39f0){let _0x26d748=_0x7a39f0[_0x59116b(0x1b2)]['unitId'],_0x1afc87=_0x7a39f0[_0x59116b(0x1b2)][_0x59116b(0x194)]['id'];setTimeout(()=>{const _0x2d3809=_0x59116b;this[_0x2d3809(0x186)]['executeCommand'](_0x3bef8f['id'],{'unitId':_0x26d748,'subUnitId':_0x1afc87},{'fromCollab':!0x0});});}}}[_0x4bfb65(0x185)](){const _0x5a1666=_0x4bfb65;var _0x39fb0a;(_0x39fb0a=this['_commandDisposable'])==null||_0x39fb0a[_0x5a1666(0x1bc)](),this[_0x5a1666(0x1aa)]['next']('presenting');let _0x1b1fb7=new Map(),_0x50dd89=this[_0x5a1666(0x149)]=new _0x32b6cc();_0x50dd89['add'](_0x3bc937(()=>{_0x1b1fb7['forEach'](({subject:_0x4cf126,subscription:_0x428f19})=>{const _0x303858=_0x2290;_0x428f19[_0x303858(0x1b5)](),_0x4cf126['complete']();}),_0x1b1fb7['clear']();})),_0x50dd89[_0x5a1666(0x12d)](this[_0x5a1666(0x186)]['onCommandExecuted'](_0x40d0e6=>{const _0x11e372=_0x5a1666;if(_0x40d0e6[_0x11e372(0x131)]!==_0x19d177['OPERATION']||!this[_0x11e372(0x143)][_0x11e372(0x15d)](_0x40d0e6['id']))return;let {id:_0x125e6e}=_0x40d0e6,_0x166778;if(_0x1b1fb7['has'](_0x125e6e))_0x166778=_0x1b1fb7[_0x11e372(0x192)](_0x125e6e)[_0x11e372(0x19a)];else{var _0x8a0057;_0x166778=new _0x5f429a();let _0x19d9a5=_0x166778['pipe'](_0x16b8ad((_0x8a0057=this[_0x11e372(0x1c0)][_0x11e372(0x14c)](_0x11e372(0x1a6)))==null?0xc8:_0x8a0057,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11e372(0x16c)](_0x4da033=>{const _0x1493f2=_0x11e372;this[_0x1493f2(0x168)][_0x1493f2(0x162)]({'eventID':_0x13fab2[_0x1493f2(0x1bf)],'data':{'unitID':this[_0x1493f2(0x1b4)],'operations':{[_0x4da033['id']]:{'id':_0x4da033['id'],'params':JSON['stringify'](_0x4da033[_0x1493f2(0x1b2)])}}}},this[_0x1493f2(0x1b4)]);});_0x1b1fb7['set'](_0x125e6e,{'subject':_0x166778,'subscription':_0x19d9a5});}_0x166778['next'](_0x40d0e6);})),this[_0x5a1666(0x143)]['getInitialStates'](this[_0x5a1666(0x1b4)])[_0x5a1666(0x1ba)](_0x373811=>this[_0x5a1666(0x168)][_0x5a1666(0x162)]({'eventID':_0x13fab2[_0x5a1666(0x1bf)],'data':{'unitID':this[_0x5a1666(0x1b4)],'operations':{[_0x373811['id']]:{'id':_0x373811['id'],'params':JSON[_0x5a1666(0x18f)](_0x373811[_0x5a1666(0x1b2)])}}}},this[_0x5a1666(0x1b4)]));}[_0x4bfb65(0x17d)](){const _0x227d47=_0x4bfb65;var _0x28363f;this[_0x227d47(0x1aa)][_0x227d47(0x16b)]('idle'),(_0x28363f=this[_0x227d47(0x149)])==null||_0x28363f[_0x227d47(0x1bc)](),this[_0x227d47(0x149)]=null;}[_0x4bfb65(0x1b3)](){const _0x1665ea=_0x4bfb65;var _0x28bc13;(_0x28bc13=this['_commandDisposable'])==null||_0x28bc13[_0x1665ea(0x1bc)](),this['_status$'][_0x1665ea(0x16b)]('following');}[_0x4bfb65(0x145)](){const _0x10c040=_0x4bfb65;var _0x1dc827;this[_0x10c040(0x1aa)][_0x10c040(0x16b)](_0x10c040(0x197)),(_0x1dc827=this[_0x10c040(0x149)])==null||_0x1dc827[_0x10c040(0x1bc)](),this[_0x10c040(0x149)]=null;}[_0x4bfb65(0x13f)](){const _0xc37d19=_0x4bfb65;var _0x14363b;this[_0xc37d19(0x1aa)][_0xc37d19(0x16b)](_0xc37d19(0x12e)),(_0x14363b=this[_0xc37d19(0x149)])==null||_0x14363b[_0xc37d19(0x1bc)]();}[_0x4bfb65(0x160)](_0x4d5f6f){const _0x128a36=_0x4bfb65;if([_0x128a36(0x183),_0x128a36(0x12e),_0x128a36(0x151)][_0x128a36(0x1a8)](this[_0x128a36(0x1a9)])||!_0x4d5f6f['data']['presenter']||_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x18e)]===this[_0x128a36(0x168)]['getMemberID']())return;this[_0x128a36(0x1a9)]==='idle'&&this[_0x128a36(0x1b3)]();let _0x4eb22e=_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x1b1)];Object[_0x128a36(0x17f)](_0x4eb22e)[_0x128a36(0x1ba)](_0x24f510=>{const _0x19545e=_0x128a36;this[_0x19545e(0x186)][_0x19545e(0x171)](_0x24f510['id'],_0x24f510['params']?JSON[_0x19545e(0x19f)](_0x24f510[_0x19545e(0x1b2)]):null,{'fromCollab':!0x0});});}[_0x4bfb65(0x1a3)](){const _0x46c67a=_0x4bfb65;var _0x3a08a2;this['_status$'][_0x46c67a(0x16b)](_0x46c67a(0x151)),(_0x3a08a2=this[_0x46c67a(0x149)])==null||_0x3a08a2[_0x46c67a(0x1bc)]();}[_0x4bfb65(0x13c)](){const _0xad2c8f=_0x4bfb65;this['_status$']['next'](_0xad2c8f(0x197)),this[_0xad2c8f(0x189)]();}};q=W([U(0x2,_0x25496e),U(0x3,_0x56773e(H)),U(0x4,_0x34d8a7)],q);function J(){const _0x2b336c=_0x4bfb65;let _0x536d64=_0x4aae14(G),_0x447395=_0x4aae14(_0x4f09f7),_0x30f598=_0x2f2a72(()=>_0x447395['getCurrentTypeOfUnit$'](_0x7bf701[_0x2b336c(0x142)]),void 0x0,!0x1,[]),[_0x36884e,_0x4e526d]=_0x3a871b(null),[_0x3e6134,_0x16fc35]=_0x3a871b(_0x2b336c(0x197)),_0xd5a0c3=_0x3b13ea(null);return _0x3b2091(()=>(_0x30f598&&_0x536d64[_0x2b336c(0x1b8)](_0x30f598[_0x2b336c(0x15a)]())[_0x2b336c(0x184)](_0x103eaa=>{const _0x4f9b48=_0x2b336c;_0x4e526d(_0x103eaa),_0xd5a0c3[_0x4f9b48(0x1bb)]=_0x103eaa[_0x4f9b48(0x1ad)]['subscribe'](_0x274dd1=>{_0x16fc35(_0x274dd1);});}),()=>{const _0x3621be=_0x2b336c;var _0x48eb2b;(_0x48eb2b=_0xd5a0c3[_0x3621be(0x1bb)])==null||_0x48eb2b[_0x3621be(0x1b5)](),_0xd5a0c3[_0x3621be(0x1bb)]=null;}),[_0x30f598,_0x536d64]),_0x36884e?_0x5e0507(_0x256d48,{'align':'end','disabled':_0x3e6134===_0x2b336c(0x151),'className':_0x2b336c(0x132),'overlay':_0x5e0507(se,{'status':_0x3e6134,'coordinator':_0x36884e}),'children':_0x5e0507(_0x2b336c(0x193),{'className':_0x16695f(_0x2b336c(0x17c),{'univer-cursor-not-allowed':_0x3e6134===_0x2b336c(0x151),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3e6134!=='offline'}),'type':'button','children':_0x5e0507(_0x279c39,{'className':'univer-size-4'})})}):null;}function se(_0x4c043c){const _0x225901=_0x4bfb65;let {status:_0x3bfe2e,coordinator:_0x10bbe5}=_0x4c043c;switch(_0x3bfe2e){case'idle':return _0x5e0507(ce,{'coordinator':_0x10bbe5});case'following':return _0x5e0507(le,{'coordinator':_0x10bbe5});case _0x225901(0x12e):return _0x5e0507(ue,{'coordinator':_0x10bbe5});case _0x225901(0x151):return _0x5e0507(de,{});case'presenting':return _0x5e0507(Y,{'coordinator':_0x10bbe5});default:return null;}}function ce(_0x2b5845){const _0xd66ce=_0x4bfb65;let {coordinator:_0x46b85b}=_0x2b5845;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0xd66ce(0x190),'children':_0xd66ce(0x1b0)}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x46b85b[_0xd66ce(0x148)](),'children':'Start'})]});}function le(_0x2ff54f){const _0x23dab1=_0x4bfb65;let {coordinator:_0x28a05c}=_0x2ff54f;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0x23dab1(0x190),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x28a05c[_0x23dab1(0x1b7)](),'children':_0x23dab1(0x1a4)})]});}function ue(_0x471ce3){const _0x5f1e26=_0x4bfb65;let {coordinator:_0x4bb366}=_0x471ce3;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x5f1e26(0x150),{'className':_0x5f1e26(0x190),'children':_0x5f1e26(0x1ac)}),_0x5e0507(_0x2e3da7,{'variant':_0x5f1e26(0x165),'onClick':()=>_0x4bb366[_0x5f1e26(0x15c)](),'children':_0x5f1e26(0x1a5)})]});}function Y(_0x26abfd){const _0x536f53=_0x4bfb65;let {coordinator:_0x24203f}=_0x26abfd;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x536f53(0x150),{'className':_0x536f53(0x190),'children':_0x536f53(0x13a)}),_0x5e0507(_0x2e3da7,{'variant':_0x536f53(0x15f),'onClick':()=>_0x24203f[_0x536f53(0x138)](),'children':'Stop\x20presenting'})]});}function de(){const _0x28505f=_0x4bfb65;return _0x5e0507(_0x2f0b38,{'children':_0x28505f(0x139)});}let X=class extends _0x1ce4ab{constructor(_0x472176,_0x40787e){const _0xbb4c8e=_0x4bfb65;super(),this[_0xbb4c8e(0x17e)]=_0x472176,this[_0xbb4c8e(0x1b6)]=_0x40787e,this['_mountLiveShare']();}[_0x4bfb65(0x15e)](){const _0x2c88d5=_0x4bfb65;this['disposeWithMe'](this[_0x2c88d5(0x1b6)][_0x2c88d5(0x196)](_0x342ffe[_0x2c88d5(0x176)],()=>_0x229861(J,this[_0x2c88d5(0x17e)])));}};X=W([U(0x0,_0x56773e(_0x51a301)),U(0x1,_0x27ea1c)],X);var fe='@univerjs-pro/live-share',pe=_0x4bfb65(0x141);function _0x2290(_0x22c53c,_0x46936c){_0x22c53c=_0x22c53c-0x12d;const _0x41da41=_0x41da();let _0x229021=_0x41da41[_0x22c53c];return _0x229021;}const Z={};let Q=class extends _0x1ce4ab{constructor(_0x294a46){const _0xd1a91c=_0x4bfb65;super(),this[_0xd1a91c(0x143)]=_0x294a46,this[_0xd1a91c(0x181)]();}[_0x4bfb65(0x181)](){[_0x59b108['id'],_0x5abf17['id'],_0x3bef8f['id']]['forEach'](_0x1c12c7=>{const _0x22e397=_0x2290;this[_0x22e397(0x140)](this[_0x22e397(0x143)][_0x22e397(0x173)](_0x1c12c7));});}};Q=W([U(0x0,_0x56773e(H))],Q);let $=class extends _0x1b359a{constructor(_0x183a8d=Z,_0x146c69,_0x3246fd){const _0x3a7986=_0x4bfb65;super(),this[_0x3a7986(0x18b)]=_0x183a8d,this['_injector']=_0x146c69,this['_configService']=_0x3246fd;let {..._0x5d1d2e}=_0x5bb40d({},Z,this[_0x3a7986(0x18b)]);this[_0x3a7986(0x1c0)][_0x3a7986(0x167)](_0x3a7986(0x12f),_0x5d1d2e);}[_0x4bfb65(0x1a0)](){const _0x50b75b=_0x4bfb65;_0x519864(this[_0x50b75b(0x17e)],_0x250f7e([[H],[G],[Q],[X]],this[_0x50b75b(0x18b)]['override'])),_0x4834f3(this[_0x50b75b(0x17e)],[[Q]]);}['onRendered'](){_0x4834f3(this['_injector'],[[X]]);}};V($,_0x4bfb65(0x131),_0x7bf701[_0x4bfb65(0x19b)]),V($,_0x4bfb65(0x133),_0x4bfb65(0x178)),V($,'packageName',fe),V($,'version',pe),$=W([_0x59b5e2(_0x138c17),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x25496e)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2b99c4=_0x4127;(function(_0x2dfac7,_0x46956c){const _0x1a42af=_0x4127,_0x41c05f=_0x2dfac7();while(!![]){try{const _0x4ceb61=-parseInt(_0x1a42af(0x92))/0x1*(-parseInt(_0x1a42af(0x85))/0x2)+parseInt(_0x1a42af(0x8e))/0x3*(parseInt(_0x1a42af(0x7d))/0x4)+-parseInt(_0x1a42af(0x98))/0x5+-parseInt(_0x1a42af(0x81))/0x6+-parseInt(_0x1a42af(0x95))/0x7+parseInt(_0x1a42af(0x99))/0x8*(-parseInt(_0x1a42af(0x88))/0x9)+parseInt(_0x1a42af(0x96))/0xa*(parseInt(_0x1a42af(0x76))/0xb);if(_0x4ceb61===_0x46956c)break;else _0x41c05f['push'](_0x41c05f['shift']());}catch(_0x400780){_0x41c05f['push'](_0x41c05f['shift']());}}}(_0x375d,0xbe311));import{LiveShareController as _0x5c080e,LiveShareStatus as _0x393b86}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x466ade,UniverInstanceType as _0x43acff}from'@univerjs/core';import{FEnum as _0x454fcc,FUniver as _0x2bb1ef}from'@univerjs/core/facade';function o(_0x58a6c6){'@babel/helpers - typeof';const _0x26b32f=_0x4127;return o=typeof Symbol==_0x26b32f(0x7c)&&typeof Symbol['iterator']=='symbol'?function(_0x2e8053){return typeof _0x2e8053;}:function(_0x2d2e15){const _0x327a45=_0x26b32f;return _0x2d2e15&&typeof Symbol=='function'&&_0x2d2e15[_0x327a45(0x8a)]===Symbol&&_0x2d2e15!==Symbol['prototype']?_0x327a45(0x86):typeof _0x2d2e15;},o(_0x58a6c6);}function s(_0x3195ec,_0x443e48){const _0x55f6f6=_0x4127;if(o(_0x3195ec)!=_0x55f6f6(0x78)||!_0x3195ec)return _0x3195ec;var _0x454f8f=_0x3195ec[Symbol[_0x55f6f6(0x7f)]];if(_0x454f8f!==void 0x0){var _0x55cdfc=_0x454f8f[_0x55f6f6(0x90)](_0x3195ec,_0x443e48||_0x55f6f6(0x83));if(o(_0x55cdfc)!=_0x55f6f6(0x78))return _0x55cdfc;throw TypeError(_0x55f6f6(0x9b));}return(_0x443e48===_0x55f6f6(0x8c)?String:Number)(_0x3195ec);}function c(_0x454972){const _0xcabb6b=_0x4127;var _0x50cb51=s(_0x454972,_0xcabb6b(0x8c));return o(_0x50cb51)==_0xcabb6b(0x86)?_0x50cb51:_0x50cb51+'';}function _0x4127(_0x2f3811,_0x2300e9){_0x2f3811=_0x2f3811-0x74;const _0x375dc6=_0x375d();let _0x4127c5=_0x375dc6[_0x2f3811];return _0x4127c5;}function l(_0x3d215d,_0x170832,_0x411da9){const _0x4c8e2d=_0x4127;return(_0x170832=c(_0x170832))in _0x3d215d?Object[_0x4c8e2d(0x8d)](_0x3d215d,_0x170832,{'value':_0x411da9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d215d[_0x170832]=_0x411da9,_0x3d215d;}var u=class extends _0x2bb1ef{constructor(..._0x24f388){super(..._0x24f388),l(this,'_liveShareController',void 0x0);}['_initialize'](_0x516b54){const _0x3334c6=_0x4127;this[_0x3334c6(0x75)]=_0x516b54[_0x3334c6(0x79)](_0x5c080e);}[_0x2b99c4(0x7b)](){const _0x156764=_0x2b99c4;var _0x22b1d4;let _0x394362=this['_injector'][_0x156764(0x79)](_0x466ade)['getCurrentUnitOfType'](_0x43acff[_0x156764(0x84)]);if(!_0x394362)throw Error(_0x156764(0x87));let _0x18ee74=_0x394362[_0x156764(0x82)](),_0x24aa04=this[_0x156764(0x75)][_0x156764(0x7e)](_0x18ee74);return(_0x22b1d4=_0x24aa04==null?void 0x0:_0x24aa04[_0x156764(0x80)]())==null?_0x393b86[_0x156764(0x9a)]:_0x22b1d4;}[_0x2b99c4(0x89)](){const _0x382580=_0x2b99c4;let _0x3a4637=this['_injector']['get'](_0x466ade)[_0x382580(0x77)](_0x43acff[_0x382580(0x84)]);if(!_0x3a4637)throw Error(_0x382580(0x87));let _0x5a63c3=_0x3a4637[_0x382580(0x82)](),_0x544cdf=this[_0x382580(0x75)][_0x382580(0x7e)](_0x5a63c3);if(!_0x544cdf)throw Error(_0x382580(0x8b));_0x544cdf[_0x382580(0x89)]();}[_0x2b99c4(0x7a)](){const _0x10e062=_0x2b99c4;let _0x2bb08d=this[_0x10e062(0x8f)][_0x10e062(0x79)](_0x466ade)[_0x10e062(0x77)](_0x43acff['UNIVER_SHEET']);if(!_0x2bb08d)throw Error(_0x10e062(0x87));let _0xaf535=_0x2bb08d[_0x10e062(0x82)](),_0x313a6b=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xaf535);if(!_0x313a6b)throw Error(_0x10e062(0x8b));_0x313a6b[_0x10e062(0x7a)]();}[_0x2b99c4(0x94)](){const _0x1063f5=_0x2b99c4;let _0x9ccbb8=this[_0x1063f5(0x8f)][_0x1063f5(0x79)](_0x466ade)[_0x1063f5(0x77)](_0x43acff[_0x1063f5(0x84)]);if(!_0x9ccbb8)throw Error('No\x20active\x20workbook\x20found.');let _0x8cb53=_0x9ccbb8[_0x1063f5(0x82)](),_0xd37551=this['_liveShareController'][_0x1063f5(0x7e)](_0x8cb53);if(!_0xd37551)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd37551[_0x1063f5(0x97)]();}[_0x2b99c4(0x93)](){const _0x1aa385=_0x2b99c4;let _0x17f76c=this[_0x1aa385(0x8f)][_0x1aa385(0x79)](_0x466ade)[_0x1aa385(0x77)](_0x43acff[_0x1aa385(0x84)]);if(!_0x17f76c)throw Error('No\x20active\x20workbook\x20found.');let _0x1f4350=_0x17f76c[_0x1aa385(0x82)](),_0x18a7ee=this[_0x1aa385(0x75)][_0x1aa385(0x7e)](_0x1f4350);if(!_0x18a7ee)throw Error(_0x1aa385(0x8b));_0x18a7ee['stopPresenting']();}};function _0x375d(){const _0x57ef33=['7015505MxDMzB','440088rxADDv','IDLE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatusEnum','_liveShareController','121VKiDZH','getCurrentUnitOfType','object','get','stopFollowing','getLiveShareStatus','function','192IIMkuk','getLiveShareCoordinatorSync','toPrimitive','getStatus','2151228BBzvqQ','getUnitId','default','UNIVER_SHEET','401818ykiyVb','symbol','No\x20active\x20workbook\x20found.','54fPVGWF','startFollowing','constructor','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','string','defineProperty','78753FJEMfP','_injector','call','extend','3kCEKYF','stopPresenting','startPresenting','4151203XPisOI','1455440IjoCew','tryStartPresenting'];_0x375d=function(){return _0x57ef33;};return _0x375d();}_0x2bb1ef[_0x2b99c4(0x91)](u);var d=class extends _0x454fcc{get[_0x2b99c4(0x74)](){return _0x393b86;}};_0x454fcc[_0x2b99c4(0x91)](d);export{};
1
+ const _0x479317=_0x465e;(function(_0x26affc,_0x503bbb){const _0x27347e=_0x465e,_0x3d9fcb=_0x26affc();while(!![]){try{const _0x4edb63=-parseInt(_0x27347e(0x11b))/0x1*(parseInt(_0x27347e(0x102))/0x2)+-parseInt(_0x27347e(0x112))/0x3*(parseInt(_0x27347e(0x111))/0x4)+parseInt(_0x27347e(0x117))/0x5*(-parseInt(_0x27347e(0x105))/0x6)+-parseInt(_0x27347e(0x10f))/0x7*(parseInt(_0x27347e(0x116))/0x8)+parseInt(_0x27347e(0x101))/0x9+-parseInt(_0x27347e(0x103))/0xa+parseInt(_0x27347e(0x127))/0xb*(parseInt(_0x27347e(0x11f))/0xc);if(_0x4edb63===_0x503bbb)break;else _0x3d9fcb['push'](_0x3d9fcb['shift']());}catch(_0x96f3e3){_0x3d9fcb['push'](_0x3d9fcb['shift']());}}}(_0x382a,0x80f05));import{LiveShareController as _0x28024b,LiveShareStatus as _0x588e6b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x2f1278,UniverInstanceType as _0x406c94}from'@univerjs/core';import{FEnum as _0x41621a,FUniver as _0x195e9f}from'@univerjs/core/facade';function o(_0x4d79f7){'@babel/helpers - typeof';const _0x34561e=_0x465e;return o=typeof Symbol==_0x34561e(0x126)&&typeof Symbol[_0x34561e(0x106)]==_0x34561e(0x123)?function(_0x49dcc5){return typeof _0x49dcc5;}:function(_0x14b427){const _0x246dfc=_0x34561e;return _0x14b427&&typeof Symbol==_0x246dfc(0x126)&&_0x14b427[_0x246dfc(0x119)]===Symbol&&_0x14b427!==Symbol['prototype']?_0x246dfc(0x123):typeof _0x14b427;},o(_0x4d79f7);}function s(_0x1efcc3,_0x4134f7){const _0x5a20e6=_0x465e;if(o(_0x1efcc3)!='object'||!_0x1efcc3)return _0x1efcc3;var _0x517c85=_0x1efcc3[Symbol[_0x5a20e6(0x10b)]];if(_0x517c85!==void 0x0){var _0x4a6c32=_0x517c85[_0x5a20e6(0x11c)](_0x1efcc3,_0x4134f7||'default');if(o(_0x4a6c32)!=_0x5a20e6(0x120))return _0x4a6c32;throw TypeError(_0x5a20e6(0x113));}return(_0x4134f7===_0x5a20e6(0x11a)?String:Number)(_0x1efcc3);}function c(_0x1a2066){const _0xfdeb88=_0x465e;var _0x1b37da=s(_0x1a2066,'string');return o(_0x1b37da)==_0xfdeb88(0x123)?_0x1b37da:_0x1b37da+'';}function _0x465e(_0x474c9e,_0x54d3a6){_0x474c9e=_0x474c9e-0xff;const _0x382ae5=_0x382a();let _0x465e85=_0x382ae5[_0x474c9e];return _0x465e85;}function l(_0x1880cb,_0x40b37f,_0x3ffddb){return(_0x40b37f=c(_0x40b37f))in _0x1880cb?Object['defineProperty'](_0x1880cb,_0x40b37f,{'value':_0x3ffddb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1880cb[_0x40b37f]=_0x3ffddb,_0x1880cb;}function _0x382a(){const _0x5b63cb=['stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','symbol','getStatus','getLiveShareStatus','function','236841GmTTae','_liveShareController','tryStartPresenting','1856394ObeVpo','1814734nVuvoy','22870nWIPsk','_injector','319038EeFnjt','iterator','UNIVER_SHEET','stopPresenting','get','getLiveShareCoordinatorSync','toPrimitive','startFollowing','LiveShareStatusEnum','_initialize','77ltOahK','extend','4YdhmgN','533073sFVFCn','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20active\x20workbook\x20found.','getUnitId','107320XBcqBh','50wKkMTZ','getCurrentUnitOfType','constructor','string','1EkTKvK','call','startPresenting','IDLE','1164rDtQow','object'];_0x382a=function(){return _0x5b63cb;};return _0x382a();}var u=class extends _0x195e9f{constructor(..._0x196698){const _0x313544=_0x465e;super(..._0x196698),l(this,_0x313544(0xff),void 0x0);}[_0x479317(0x10e)](_0x179031){const _0x4ade56=_0x479317;this[_0x4ade56(0xff)]=_0x179031['get'](_0x28024b);}[_0x479317(0x125)](){const _0x3f70e6=_0x479317;var _0x316a54;let _0x436d02=this[_0x3f70e6(0x104)][_0x3f70e6(0x109)](_0x2f1278)[_0x3f70e6(0x118)](_0x406c94['UNIVER_SHEET']);if(!_0x436d02)throw Error(_0x3f70e6(0x114));let _0x512262=_0x436d02[_0x3f70e6(0x115)](),_0x5a0cb5=this[_0x3f70e6(0xff)][_0x3f70e6(0x10a)](_0x512262);return(_0x316a54=_0x5a0cb5==null?void 0x0:_0x5a0cb5[_0x3f70e6(0x124)]())==null?_0x588e6b[_0x3f70e6(0x11e)]:_0x316a54;}[_0x479317(0x10c)](){const _0xf36b55=_0x479317;let _0x3b91c8=this[_0xf36b55(0x104)][_0xf36b55(0x109)](_0x2f1278)[_0xf36b55(0x118)](_0x406c94['UNIVER_SHEET']);if(!_0x3b91c8)throw Error(_0xf36b55(0x114));let _0x4f4feb=_0x3b91c8[_0xf36b55(0x115)](),_0x231e47=this[_0xf36b55(0xff)]['getLiveShareCoordinatorSync'](_0x4f4feb);if(!_0x231e47)throw Error(_0xf36b55(0x122));_0x231e47[_0xf36b55(0x10c)]();}[_0x479317(0x121)](){const _0x318964=_0x479317;let _0x2c9664=this['_injector']['get'](_0x2f1278)[_0x318964(0x118)](_0x406c94[_0x318964(0x107)]);if(!_0x2c9664)throw Error(_0x318964(0x114));let _0x48a1fb=_0x2c9664[_0x318964(0x115)](),_0x557416=this['_liveShareController'][_0x318964(0x10a)](_0x48a1fb);if(!_0x557416)throw Error(_0x318964(0x122));_0x557416['stopFollowing']();}[_0x479317(0x11d)](){const _0x18908d=_0x479317;let _0x255945=this[_0x18908d(0x104)][_0x18908d(0x109)](_0x2f1278)['getCurrentUnitOfType'](_0x406c94['UNIVER_SHEET']);if(!_0x255945)throw Error('No\x20active\x20workbook\x20found.');let _0x199978=_0x255945[_0x18908d(0x115)](),_0xe89591=this[_0x18908d(0xff)][_0x18908d(0x10a)](_0x199978);if(!_0xe89591)throw Error(_0x18908d(0x122));_0xe89591[_0x18908d(0x100)]();}[_0x479317(0x108)](){const _0x1e4ae6=_0x479317;let _0xe12b31=this[_0x1e4ae6(0x104)]['get'](_0x2f1278)[_0x1e4ae6(0x118)](_0x406c94[_0x1e4ae6(0x107)]);if(!_0xe12b31)throw Error(_0x1e4ae6(0x114));let _0x451da8=_0xe12b31[_0x1e4ae6(0x115)](),_0x1d6b81=this[_0x1e4ae6(0xff)][_0x1e4ae6(0x10a)](_0x451da8);if(!_0x1d6b81)throw Error(_0x1e4ae6(0x122));_0x1d6b81[_0x1e4ae6(0x108)]();}};_0x195e9f[_0x479317(0x110)](u);var d=class extends _0x41621a{get[_0x479317(0x10d)](){return _0x588e6b;}};_0x41621a['extend'](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x483488=_0x45b7;(function(_0x481774,_0x480832){const _0x4f141c=_0x45b7,_0xffc8be=_0x481774();while(!![]){try{const _0x464732=parseInt(_0x4f141c(0xef))/0x1+-parseInt(_0x4f141c(0x124))/0x2+parseInt(_0x4f141c(0x139))/0x3*(parseInt(_0x4f141c(0x123))/0x4)+parseInt(_0x4f141c(0x14f))/0x5*(-parseInt(_0x4f141c(0x119))/0x6)+parseInt(_0x4f141c(0x13b))/0x7+-parseInt(_0x4f141c(0x154))/0x8*(parseInt(_0x4f141c(0xf3))/0x9)+-parseInt(_0x4f141c(0x137))/0xa*(-parseInt(_0x4f141c(0x159))/0xb);if(_0x464732===_0x480832)break;else _0xffc8be['push'](_0xffc8be['shift']());}catch(_0x5a7e78){_0xffc8be['push'](_0xffc8be['shift']());}}}(_0x2fbf,0x8a5d2));import{CommandType as _0x458c45,DependentOn as _0x1240ac,Disposable as _0x25821d,DisposableCollection as _0x11b478,ICommandService as _0x24a679,IConfigService as _0x5bd473,IUniverInstanceService as _0x463264,Inject as _0x519b70,Injector as _0x1f8563,Plugin as _0x2e5f28,RxDisposable as _0x1dffe0,UniverInstanceType as _0x443dc4,merge as _0x2e9292,mergeOverrideWithDependencies as _0x13dc50,registerDependencies as _0x1030c8,toDisposable as _0xaaab04,touchDependencies as _0x56c0e1}from'@univerjs/core';import{BuiltInUIPart as _0x4a5288,IUIPartsService as _0xc74574,connectInjector as _0x39d05e,useDependency as _0x128025,useObservable as _0x407d3e}from'@univerjs/ui';import{Button as _0x21c6a6,Dropdown as _0x451c05,clsx as _0x3a2015}from'@univerjs/design';function _0x45b7(_0x312e5c,_0x320410){_0x312e5c=_0x312e5c-0xdb;const _0x2fbfc8=_0x2fbf();let _0x45b719=_0x2fbfc8[_0x312e5c];return _0x45b719;}import{LiveShareIcon as _0x1525d7}from'@univerjs/icons';import{useEffect as _0x34b418,useRef as _0x523753,useState as _0x2329c2}from'react';import{CollaborationEvent as _0x275d1f,parseProtocolChangeset as _0xaf2f9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59fd96,SessionStatus as _0xa36ca2,UniverCollaborationClientPlugin as _0x422184}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x594abb,SetWorksheetActiveOperation as _0x3e5ed1}from'@univerjs/sheets';import{BehaviorSubject as _0x4db554,Subject as _0x3e2cca}from'rxjs';import{takeUntil as _0xa626ba,throttleTime as _0x255e38}from'rxjs/operators';import{Fragment as _0x508d28,jsx as _0x2658fa,jsxs as _0x30d109}from'react/jsx-runtime';import{SetScrollOperation as _0x354a42,SetZoomRatioOperation as _0x33a400}from'@univerjs/sheets-ui';function L(_0x3f3d6e){'@babel/helpers - typeof';const _0x4e6e03=_0x45b7;return L=typeof Symbol==_0x4e6e03(0x10e)&&typeof Symbol[_0x4e6e03(0x12a)]==_0x4e6e03(0x109)?function(_0x32bbb2){return typeof _0x32bbb2;}:function(_0x189f7d){const _0x30815f=_0x4e6e03;return _0x189f7d&&typeof Symbol==_0x30815f(0x10e)&&_0x189f7d['constructor']===Symbol&&_0x189f7d!==Symbol[_0x30815f(0x107)]?_0x30815f(0x109):typeof _0x189f7d;},L(_0x3f3d6e);}function R(_0x3b740f,_0x3edc40){const _0x3ce480=_0x45b7;if(L(_0x3b740f)!=_0x3ce480(0x14c)||!_0x3b740f)return _0x3b740f;var _0x3bf1a4=_0x3b740f[Symbol[_0x3ce480(0xe7)]];if(_0x3bf1a4!==void 0x0){var _0x134a5f=_0x3bf1a4[_0x3ce480(0x143)](_0x3b740f,_0x3edc40||_0x3ce480(0xeb));if(L(_0x134a5f)!=_0x3ce480(0x14c))return _0x134a5f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3edc40===_0x3ce480(0x162)?String:Number)(_0x3b740f);}function z(_0x412bea){const _0x12b1b8=_0x45b7;var _0x17cfec=R(_0x412bea,_0x12b1b8(0x162));return L(_0x17cfec)=='symbol'?_0x17cfec:_0x17cfec+'';}function B(_0x20a5f2,_0x2c7e78,_0x3b0dc5){const _0x42ca67=_0x45b7;return(_0x2c7e78=z(_0x2c7e78))in _0x20a5f2?Object[_0x42ca67(0x140)](_0x20a5f2,_0x2c7e78,{'value':_0x3b0dc5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20a5f2[_0x2c7e78]=_0x3b0dc5,_0x20a5f2;}var V=class extends _0x25821d{constructor(..._0x1cf08b){const _0x167e1c=_0x45b7;super(..._0x1cf08b),B(this,_0x167e1c(0x105),new Set()),B(this,_0x167e1c(0x11e),new Set());}[_0x483488(0xe5)](_0x214e18){const _0x50e9f8=_0x483488;return this[_0x50e9f8(0x105)][_0x50e9f8(0x163)](_0x214e18),_0xaaab04(()=>this[_0x50e9f8(0x105)][_0x50e9f8(0x164)](_0x214e18));}[_0x483488(0xf8)](_0x3fe0dc){const _0x457405=_0x483488;return this['_reporters'][_0x457405(0x163)](_0x3fe0dc),_0xaaab04(()=>this[_0x457405(0x11e)][_0x457405(0x164)](_0x3fe0dc));}[_0x483488(0x160)](_0x4bf672){const _0x3a52de=_0x483488;return this[_0x3a52de(0x105)]['has'](_0x4bf672);}['getInitialStates'](_0x1e90c1){const _0x36408f=_0x483488;return Array['from'](this['_reporters'])[_0x36408f(0x135)](_0x20a44e=>_0x20a44e(_0x1e90c1));}};function H(_0x2f9d8e,_0x5d4695){return function(_0x881661,_0x5cd344){_0x5d4695(_0x881661,_0x5cd344,_0x2f9d8e);};}function U(_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1){const _0x562a82=_0x483488;var _0x495527=arguments[_0x562a82(0x152)],_0x4410d1=_0x495527<0x3?_0x1af699:_0x1ec3e1===null?_0x1ec3e1=Object['getOwnPropertyDescriptor'](_0x1af699,_0x2e9d79):_0x1ec3e1,_0x2803a5;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x562a82(0x10e))_0x4410d1=Reflect['decorate'](_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1);else{for(var _0xe3b8d=_0x247ab9[_0x562a82(0x152)]-0x1;_0xe3b8d>=0x0;_0xe3b8d--)(_0x2803a5=_0x247ab9[_0xe3b8d])&&(_0x4410d1=(_0x495527<0x3?_0x2803a5(_0x4410d1):_0x495527>0x3?_0x2803a5(_0x1af699,_0x2e9d79,_0x4410d1):_0x2803a5(_0x1af699,_0x2e9d79))||_0x4410d1);}return _0x495527>0x3&&_0x4410d1&&Object[_0x562a82(0x140)](_0x1af699,_0x2e9d79,_0x4410d1),_0x4410d1;}let W=class extends _0x1dffe0{constructor(_0x3cbb6b,_0x2853c9,_0x476c88){const _0x22e720=_0x483488;super(),this[_0x22e720(0x10d)]=_0x3cbb6b,this[_0x22e720(0x12e)]=_0x2853c9,this['_collabSessionService']=_0x476c88,B(this,_0x22e720(0x11d),new Map()),this[_0x22e720(0x15a)]();}async[_0x483488(0x117)](_0xba2a9){const _0x305924=_0x483488;return this[_0x305924(0x11d)][_0x305924(0x13c)](_0xba2a9)||await this['_startLiveShareCoordinator'](_0xba2a9),this['_entities']['get'](_0xba2a9);}[_0x483488(0xfd)](_0x471bca){const _0x1b40ee=_0x483488;var _0x4cf63b;return(_0x4cf63b=this[_0x1b40ee(0x11d)][_0x1b40ee(0x10a)](_0x471bca))==null?null:_0x4cf63b;}[_0x483488(0x15a)](){const _0x5bec5e=_0x483488;this['_univerInstanceService'][_0x5bec5e(0x165)](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))['subscribe'](async _0x315cf7=>{const _0x1c642f=_0x5bec5e;let _0x2a2abc=_0x315cf7['unit'][_0x1c642f(0xf7)]();this[_0x1c642f(0x11d)][_0x1c642f(0x13c)](_0x2a2abc)||this[_0x1c642f(0x12d)](_0x2a2abc);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))[_0x5bec5e(0x11f)](_0x418e3d=>{const _0x3df8c6=_0x5bec5e;let _0x5c9eda=_0x418e3d['getUnitId'](),_0x1dec7a=this[_0x3df8c6(0x11d)][_0x3df8c6(0x10a)](_0x5c9eda);_0x1dec7a==null||_0x1dec7a[_0x3df8c6(0x113)]();});}async[_0x483488(0x12d)](_0x518bed){const _0x3bc783=_0x483488;let _0x4be529=await this[_0x3bc783(0x112)]['requireSession'](_0x518bed),_0x5e329d=this['_injector']['createInstance'](K,_0x518bed,_0x4be529);return _0x5e329d[_0x3bc783(0x120)](),this[_0x3bc783(0x11d)][_0x3bc783(0xdf)](_0x518bed,_0x5e329d),_0x5e329d;}};W=U([H(0x0,_0x463264),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x519b70(_0x59fd96))],W);let G=function(_0x3cece8){const _0x316e52=_0x483488;return _0x3cece8[_0x316e52(0x14d)]=_0x316e52(0x115),_0x3cece8[_0x316e52(0xf1)]=_0x316e52(0xdd),_0x3cece8[_0x316e52(0xdb)]='following',_0x3cece8['NOT_FOLLOWING']=_0x316e52(0x11a),_0x3cece8[_0x316e52(0x108)]=_0x316e52(0xe6),_0x3cece8;}({}),K=class extends _0x1dffe0{get['_status'](){const _0x44f4c2=_0x483488;return this[_0x44f4c2(0x134)]['getValue']();}constructor(_0x42e687,_0x1f02ea,_0x4a0697,_0x2e5516,_0x328a2a){const _0x3ade14=_0x483488;super(),this['_unitID']=_0x42e687,this[_0x3ade14(0x104)]=_0x1f02ea,this['_configService']=_0x4a0697,this[_0x3ade14(0xfb)]=_0x2e5516,this[_0x3ade14(0x130)]=_0x328a2a,B(this,_0x3ade14(0x134),new _0x4db554(_0x3ade14(0xdd))),B(this,'status$',this[_0x3ade14(0x134)][_0x3ade14(0x129)]()),B(this,_0x3ade14(0x15a),!0x1),B(this,'_commandDisposable',null),B(this,'_presenter',null);}['dispose'](){const _0x731e6a=_0x483488;var _0x3d4fd0;(_0x3d4fd0=this[_0x731e6a(0x12b)])==null||_0x3d4fd0[_0x731e6a(0x113)](),this[_0x731e6a(0x134)][_0x731e6a(0x15b)](_0x731e6a(0xdd)),this[_0x731e6a(0x134)][_0x731e6a(0x14e)]();}[_0x483488(0x13a)](){return this['_status'];}[_0x483488(0x120)](){const _0x486997=_0x483488;this['_init']||(this[_0x486997(0x15a)]=!0x0,this[_0x486997(0x104)]['sessionStatus$'][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x5abeab=>{const _0x5860ad=_0x486997;switch(_0x5abeab){case _0xa36ca2[_0x5860ad(0x14d)]:this[_0x5860ad(0x151)]();break;case _0xa36ca2[_0x5860ad(0x11b)]:this[_0x5860ad(0x11c)]();break;default:}}),this[_0x486997(0x104)][_0x486997(0x142)][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x3e8753=>{const _0x2726e0=_0x486997;let {eventID:_0x15297d}=_0x3e8753;switch(_0x15297d){case _0x275d1f[_0x2726e0(0x126)]:this[_0x2726e0(0x16e)](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x148)]:this['_handleOperation'](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x12c)]:this['_handleTerminate']();break;case _0x275d1f[_0x2726e0(0x14a)]:this[_0x2726e0(0x16c)](_0x3e8753);break;default:}}));}[_0x483488(0xff)](){const _0x6e80e2=_0x483488;this[_0x6e80e2(0x104)][_0x6e80e2(0xf5)]({'eventID':_0x275d1f[_0x6e80e2(0x133)],'data':{'unitID':this['_unitID'],'userID':this[_0x6e80e2(0x104)][_0x6e80e2(0x121)]()}},this[_0x6e80e2(0xed)]);}[_0x483488(0x136)](){const _0x51a89a=_0x483488;this['_status']===_0x51a89a(0xe6)&&(this['_status$'][_0x51a89a(0x15b)](_0x51a89a(0xdd)),this['_collabSession'][_0x51a89a(0xf5)]({'eventID':_0x275d1f[_0x51a89a(0x12c)],'data':{'unitID':this[_0x51a89a(0xed)]}},this[_0x51a89a(0xed)]));}[_0x483488(0x155)](){const _0x1cd148=_0x483488;this[_0x1cd148(0x150)]===_0x1cd148(0x11a)&&(this['_status$'][_0x1cd148(0x15b)](_0x1cd148(0x167)),this[_0x1cd148(0x153)]());}['stopFollowing'](){const _0x267338=_0x483488;this[_0x267338(0x150)]===_0x267338(0x167)&&this['_stopFollowing']();}[_0x483488(0x16e)](_0x29354a){const _0x5a8e73=_0x483488;let {presenter:_0x31d773}=_0x29354a[_0x5a8e73(0x15e)],_0x1f914f=this['_collabSession']['getMemberID']();this[_0x5a8e73(0x138)]=_0x31d773,_0x31d773===_0x1f914f?(this[_0x5a8e73(0x10c)](),this['_startPresenting']()):this[_0x5a8e73(0x150)]!=='not-following'&&(this[_0x5a8e73(0x13e)](),this[_0x5a8e73(0x153)]());}['_fetchOperations'](){const _0x18e6a8=_0x483488;let _0x1647ab={'eventID':_0x275d1f[_0x18e6a8(0xee)]};this[_0x18e6a8(0x104)][_0x18e6a8(0xf5)](_0x1647ab,this[_0x18e6a8(0xed)]);}[_0x483488(0x16d)](){const _0x4546c6=_0x483488;this[_0x4546c6(0x138)]=null,this[_0x4546c6(0x150)]!=='presenting'&&this[_0x4546c6(0x169)]();}[_0x483488(0x16c)](_0x33cf5b){const _0x42f3f9=_0x483488;if(this['_status']===_0x42f3f9(0x167)&&this[_0x42f3f9(0x138)]===_0x33cf5b[_0x42f3f9(0x15e)][_0x42f3f9(0x125)]){let _0x335687=_0xaf2f9c(_0x33cf5b[_0x42f3f9(0x15e)])[_0x42f3f9(0xf6)][_0x42f3f9(0x116)]()[_0x42f3f9(0x15f)](_0x230023=>_0x230023['id']===_0x594abb['id']);if(_0x335687){let _0xb62741=_0x335687[_0x42f3f9(0x10b)][_0x42f3f9(0x13d)],_0x3122d2=_0x335687['params'][_0x42f3f9(0x168)]['id'];setTimeout(()=>{const _0x584661=_0x42f3f9;this['_commandService'][_0x584661(0x15d)](_0x3e5ed1['id'],{'unitId':_0xb62741,'subUnitId':_0x3122d2},{'fromCollab':!0x0});});}}}[_0x483488(0x103)](){const _0x5d974b=_0x483488;var _0x411ec8;(_0x411ec8=this[_0x5d974b(0x12b)])==null||_0x411ec8['dispose'](),this[_0x5d974b(0x134)][_0x5d974b(0x15b)](_0x5d974b(0xe6));let _0x5616b2=new Map(),_0x1bda74=this[_0x5d974b(0x12b)]=new _0x11b478();_0x1bda74['add'](_0xaaab04(()=>{const _0x5070a4=_0x5d974b;_0x5616b2[_0x5070a4(0xfa)](({subject:_0x5024d8,subscription:_0x11f265})=>{const _0x2be60c=_0x5070a4;_0x11f265[_0x2be60c(0x102)](),_0x5024d8[_0x2be60c(0x14e)]();}),_0x5616b2[_0x5070a4(0x149)]();})),_0x1bda74[_0x5d974b(0x163)](this[_0x5d974b(0x130)][_0x5d974b(0x101)](_0x19c86c=>{const _0x37efbf=_0x5d974b;if(_0x19c86c[_0x37efbf(0x118)]!==_0x458c45[_0x37efbf(0x156)]||!this[_0x37efbf(0xfb)][_0x37efbf(0x160)](_0x19c86c['id']))return;let {id:_0x3bc3e4}=_0x19c86c,_0x1536eb;if(_0x5616b2[_0x37efbf(0x13c)](_0x3bc3e4))_0x1536eb=_0x5616b2[_0x37efbf(0x10a)](_0x3bc3e4)[_0x37efbf(0x15c)];else{var _0x1ed284;_0x1536eb=new _0x3e2cca();let _0x59c8e4=_0x1536eb[_0x37efbf(0xfc)](_0x255e38((_0x1ed284=this[_0x37efbf(0x122)][_0x37efbf(0xe2)](_0x37efbf(0xe4)))==null?0xc8:_0x1ed284,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37efbf(0x11f)](_0x4deaca=>{const _0xd4647e=_0x37efbf;this[_0xd4647e(0x104)][_0xd4647e(0xf5)]({'eventID':_0x275d1f[_0xd4647e(0x148)],'data':{'unitID':this[_0xd4647e(0xed)],'operations':{[_0x4deaca['id']]:{'id':_0x4deaca['id'],'params':JSON[_0xd4647e(0x158)](_0x4deaca[_0xd4647e(0x10b)])}}}},this['_unitID']);});_0x5616b2['set'](_0x3bc3e4,{'subject':_0x1536eb,'subscription':_0x59c8e4});}_0x1536eb[_0x37efbf(0x15b)](_0x19c86c);})),this['_liveShareService'][_0x5d974b(0x170)](this[_0x5d974b(0xed)])[_0x5d974b(0xfa)](_0x54979c=>this[_0x5d974b(0x104)]['send']({'eventID':_0x275d1f[_0x5d974b(0x148)],'data':{'unitID':this['_unitID'],'operations':{[_0x54979c['id']]:{'id':_0x54979c['id'],'params':JSON[_0x5d974b(0x158)](_0x54979c['params'])}}}},this[_0x5d974b(0xed)]));}[_0x483488(0x13e)](){const _0x2525ec=_0x483488;var _0x4117b0;this[_0x2525ec(0x134)][_0x2525ec(0x15b)]('idle'),(_0x4117b0=this[_0x2525ec(0x12b)])==null||_0x4117b0[_0x2525ec(0x113)](),this['_commandDisposable']=null;}[_0x483488(0x153)](){const _0x56837e=_0x483488;var _0x1e68b0;(_0x1e68b0=this[_0x56837e(0x12b)])==null||_0x1e68b0[_0x56837e(0x113)](),this[_0x56837e(0x134)]['next'](_0x56837e(0x167));}[_0x483488(0x169)](){const _0x51a6df=_0x483488;var _0x2ec300;this[_0x51a6df(0x134)][_0x51a6df(0x15b)](_0x51a6df(0xdd)),(_0x2ec300=this['_commandDisposable'])==null||_0x2ec300[_0x51a6df(0x113)](),this[_0x51a6df(0x12b)]=null;}['_stopFollowing'](){const _0x126668=_0x483488;var _0x5bc21a;this[_0x126668(0x134)]['next'](_0x126668(0x11a)),(_0x5bc21a=this[_0x126668(0x12b)])==null||_0x5bc21a[_0x126668(0x113)]();}['_handleOperation'](_0x1fb62c){const _0x14d5a8=_0x483488;if([_0x14d5a8(0xe6),_0x14d5a8(0x11a),'offline'][_0x14d5a8(0xe0)](this[_0x14d5a8(0x150)])||!_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0xf4)]||_0x1fb62c['data'][_0x14d5a8(0xf4)]===this[_0x14d5a8(0x104)][_0x14d5a8(0x121)]())return;this['_status']===_0x14d5a8(0xdd)&&this[_0x14d5a8(0x153)]();let _0x4ca9de=_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0x157)];Object[_0x14d5a8(0x146)](_0x4ca9de)[_0x14d5a8(0xfa)](_0x45965c=>{const _0x13ff50=_0x14d5a8;this[_0x13ff50(0x130)][_0x13ff50(0x15d)](_0x45965c['id'],_0x45965c['params']?JSON[_0x13ff50(0x13f)](_0x45965c[_0x13ff50(0x10b)]):null,{'fromCollab':!0x0});});}[_0x483488(0x151)](){const _0x23845e=_0x483488;var _0x3aaad9;this[_0x23845e(0x134)][_0x23845e(0x15b)](_0x23845e(0x115)),(_0x3aaad9=this['_commandDisposable'])==null||_0x3aaad9[_0x23845e(0x113)]();}[_0x483488(0x11c)](){const _0x59d97b=_0x483488;this[_0x59d97b(0x134)]['next'](_0x59d97b(0xdd)),this[_0x59d97b(0x10f)]();}};K=U([H(0x2,_0x5bd473),H(0x3,_0x519b70(V)),H(0x4,_0x24a679)],K);function q(){const _0x45a13d=_0x483488;let _0x2df76a=_0x128025(W),_0x1baac4=_0x128025(_0x463264),_0xf2afa0=_0x407d3e(()=>_0x1baac4[_0x45a13d(0xde)](_0x443dc4[_0x45a13d(0x145)]),void 0x0,!0x1,[]),[_0x14f53a,_0x3595ab]=_0x2329c2(null),[_0x111ced,_0x19a5ad]=_0x2329c2(_0x45a13d(0xdd)),_0x59c95f=_0x523753(null);return _0x34b418(()=>(_0xf2afa0&&_0x2df76a['getLiveShareCoordinator'](_0xf2afa0[_0x45a13d(0xf7)]())[_0x45a13d(0x114)](_0x33b041=>{const _0x93cd89=_0x45a13d;_0x3595ab(_0x33b041),_0x59c95f[_0x93cd89(0x14b)]=_0x33b041['status$'][_0x93cd89(0x11f)](_0x11dc9f=>{_0x19a5ad(_0x11dc9f);});}),()=>{const _0x4c84f4=_0x45a13d;var _0x596fb7;(_0x596fb7=_0x59c95f[_0x4c84f4(0x14b)])==null||_0x596fb7[_0x4c84f4(0x102)](),_0x59c95f['current']=null;}),[_0xf2afa0,_0x2df76a]),_0x14f53a?_0x2658fa(_0x451c05,{'align':'end','disabled':_0x111ced===_0x45a13d(0x115),'className':_0x45a13d(0xe1),'overlay':_0x2658fa(ce,{'status':_0x111ced,'coordinator':_0x14f53a}),'children':_0x2658fa('button',{'className':_0x3a2015(_0x45a13d(0xf0),{'univer-cursor-not-allowed':_0x111ced===_0x45a13d(0x115),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x111ced!==_0x45a13d(0x115)}),'type':_0x45a13d(0xdc),'children':_0x2658fa(_0x1525d7,{'className':_0x45a13d(0x110)})})}):null;}function ce(_0x28c8f9){const _0x4e566d=_0x483488;let {status:_0x16a352,coordinator:_0xf0b1bb}=_0x28c8f9;switch(_0x16a352){case _0x4e566d(0xdd):return _0x2658fa(le,{'coordinator':_0xf0b1bb});case'following':return _0x2658fa(ue,{'coordinator':_0xf0b1bb});case _0x4e566d(0x11a):return _0x2658fa(de,{'coordinator':_0xf0b1bb});case'offline':return _0x2658fa(fe,{});case _0x4e566d(0xe6):return _0x2658fa(J,{'coordinator':_0xf0b1bb});default:return null;}}function le(_0x80a58a){const _0x5c7c45=_0x483488;let {coordinator:_0x2b3845}=_0x80a58a;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0x5c7c45(0x132),{'className':_0x5c7c45(0x161),'children':'Present\x20this\x20document'}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x2b3845[_0x5c7c45(0xff)](),'children':_0x5c7c45(0x147)})]});}function ue(_0x564e8f){const _0x35a5b8=_0x483488;let {coordinator:_0x827031}=_0x564e8f;return _0x30d109(_0x508d28,{'children':[_0x2658fa('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x35a5b8(0xfe)}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x827031['stopFollowing'](),'children':_0x35a5b8(0x16b)})]});}function de(_0x170b55){const _0xe1606c=_0x483488;let {coordinator:_0x5d22ad}=_0x170b55;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xe1606c(0x132),{'className':_0xe1606c(0x161),'children':_0xe1606c(0xe8)}),_0x2658fa(_0x21c6a6,{'variant':'text','onClick':()=>_0x5d22ad[_0xe1606c(0x155)](),'children':_0xe1606c(0x128)})]});}function J(_0x41b798){const _0xf5eb1c=_0x483488;let {coordinator:_0x4b5f83}=_0x41b798;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xf5eb1c(0x132),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2658fa(_0x21c6a6,{'variant':_0xf5eb1c(0xeb),'onClick':()=>_0x4b5f83[_0xf5eb1c(0x136)](),'children':'Stop\x20presenting'})]});}function fe(){const _0x205204=_0x483488;return _0x2658fa(_0x508d28,{'children':_0x205204(0x100)});}let Y=class extends _0x25821d{constructor(_0x3dd031,_0x5530ac){const _0x2ecf5b=_0x483488;super(),this['_injector']=_0x3dd031,this[_0x2ecf5b(0xf2)]=_0x5530ac,this[_0x2ecf5b(0x141)]();}[_0x483488(0x141)](){const _0x55b9ce=_0x483488;this[_0x55b9ce(0x111)](this[_0x55b9ce(0xf2)][_0x55b9ce(0x12f)](_0x4a5288['HEADER_MENU'],()=>_0x39d05e(q,this['_injector'])));}};Y=U([H(0x0,_0x519b70(_0x1f8563)),H(0x1,_0xc74574)],Y);function _0x2fbf(){const _0x2ba42e=['getLiveShareCoordinatorSync','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','You\x27are\x20offline.','onCommandExecuted','unsubscribe','_startPresenting','_collabSession','_sharedOperations','live-share.config','prototype','PRESENTING','symbol','get','params','_stopFollowing','_univerInstanceService','function','_fetchOperations','univer-size-4','disposeWithMe','_collabSessionService','dispose','then','offline','reverse','getLiveShareCoordinator','type','241356LZzSiW','not-following','ONLINE','_handleOnline','_entities','_reporters','subscribe','init','getMemberID','_configService','8FUhaIk','1259034iWvHjx','memberID','LIVESHARE_NEW_HOST','@univerjs-pro/live-share','Start\x20following','asObservable','iterator','_commandDisposable','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_injector','registerComponent','_commandService','override','div','LIVESHARE_REQUEST_HOST','_status$','map','stopPresenting','10TGKNyK','_presenter','710367ZMnfss','getStatus','2394672ADlDof','has','unitId','_stopPresenting','parse','defineProperty','_mountLiveShare','event$','call','0.24.0','UNIVER_SHEET','values','Start','LIVESHARE_OPERATION','clear','NEW_CHANGESETS','current','object','OFFLINE','complete','100FeflZT','_status','_handleOffline','length','_startFollowing','5891592nXfPay','startFollowing','OPERATION','operations','stringify','10360471ofBdeE','_init','next','subject','executeCommand','data','find','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','add','delete','getTypeOfUnitAdded$','pluginName','following','sheet','_beIdle','packageName','Stop\x20following','_handleNewChangeSets','_handleTerminate','_handleNewHost','version','getInitialStates','FOLLOWING','button','idle','getCurrentTypeOfUnit$','set','includes','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getConfig','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','presenting','toPrimitive','You\x27re\x20not\x20following\x20the\x20presenter','_config','setConfig','default','onRendered','_unitID','LIVESHARE_FETCH_OPERATIONS','979689diOGji','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','_uiPartsService','9lyjQpA','presenter','send','mutations','getUnitId','registerInitialStateReporter','dispose$','forEach','_liveShareService','pipe'];_0x2fbf=function(){return _0x2ba42e;};return _0x2fbf();}var pe=_0x483488(0x127),me=_0x483488(0x144);const X=_0x483488(0x106);Symbol(X);const Z={};let Q=class extends _0x25821d{constructor(_0x3f2a6e){const _0x452524=_0x483488;super(),this['_liveShareService']=_0x3f2a6e,this[_0x452524(0x15a)]();}[_0x483488(0x15a)](){[_0x33a400['id'],_0x354a42['id'],_0x3e5ed1['id']]['forEach'](_0x3ba871=>{const _0x198c4e=_0x45b7;this[_0x198c4e(0x111)](this['_liveShareService'][_0x198c4e(0xe5)](_0x3ba871));});}};Q=U([H(0x0,_0x519b70(V))],Q);let $=class extends _0x2e5f28{constructor(_0x5747a0=Z,_0x50d166,_0x268d60){const _0x16de18=_0x483488;super(),this['_config']=_0x5747a0,this[_0x16de18(0x12e)]=_0x50d166,this['_configService']=_0x268d60;let {..._0x1b2174}=_0x2e9292({},Z,this[_0x16de18(0xe9)]);this[_0x16de18(0x122)][_0x16de18(0xea)](X,_0x1b2174);}['onStarting'](){const _0x5d4903=_0x483488;_0x1030c8(this[_0x5d4903(0x12e)],_0x13dc50([[V],[W],[Q],[Y]],this[_0x5d4903(0xe9)][_0x5d4903(0x131)])),_0x56c0e1(this[_0x5d4903(0x12e)],[[Q]]);}[_0x483488(0xec)](){const _0x8b73ab=_0x483488;_0x56c0e1(this[_0x8b73ab(0x12e)],[[Y]]);}};B($,_0x483488(0x118),_0x443dc4[_0x483488(0xe3)]),B($,_0x483488(0x166),'UNIVER_LIVE_SHARE_PLUGIN'),B($,_0x483488(0x16a),pe),B($,_0x483488(0x16f),me),$=U([_0x1240ac(_0x422184),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x5bd473)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x4bfb65=_0x2290;(function(_0x38130e,_0x52ba00){const _0x1186c9=_0x2290,_0x574ec6=_0x38130e();while(!![]){try{const _0x41863a=parseInt(_0x1186c9(0x19e))/0x1+-parseInt(_0x1186c9(0x153))/0x2*(parseInt(_0x1186c9(0x16f))/0x3)+-parseInt(_0x1186c9(0x14d))/0x4+-parseInt(_0x1186c9(0x1b9))/0x5+-parseInt(_0x1186c9(0x16a))/0x6*(-parseInt(_0x1186c9(0x158))/0x7)+-parseInt(_0x1186c9(0x136))/0x8*(parseInt(_0x1186c9(0x1af))/0x9)+-parseInt(_0x1186c9(0x177))/0xa*(-parseInt(_0x1186c9(0x14b))/0xb);if(_0x41863a===_0x52ba00)break;else _0x574ec6['push'](_0x574ec6['shift']());}catch(_0x4f0dae){_0x574ec6['push'](_0x574ec6['shift']());}}}(_0x41da,0xadb29));import{CommandType as _0x19d177,DependentOn as _0x59b5e2,Disposable as _0x1ce4ab,DisposableCollection as _0x32b6cc,ICommandService as _0x34d8a7,IConfigService as _0x25496e,IUniverInstanceService as _0x4f09f7,Inject as _0x56773e,Injector as _0x51a301,Plugin as _0x1b359a,RxDisposable as _0x1a3ddb,UniverInstanceType as _0x7bf701,merge as _0x5bb40d,mergeOverrideWithDependencies as _0x250f7e,registerDependencies as _0x519864,toDisposable as _0x3bc937,touchDependencies as _0x4834f3}from'@univerjs/core';import{BuiltInUIPart as _0x342ffe,IUIPartsService as _0x27ea1c,connectInjector as _0x229861,useDependency as _0x4aae14,useObservable as _0x2f2a72}from'@univerjs/ui';import{Button as _0x2e3da7,Dropdown as _0x256d48,clsx as _0x16695f}from'@univerjs/design';import{LiveShareIcon as _0x279c39}from'@univerjs/icons';import{useEffect as _0x3b2091,useRef as _0x3b13ea,useState as _0x3a871b}from'react';import{CollaborationEvent as _0x13fab2,parseProtocolChangeset as _0x5034fc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3c4ea9,SessionStatus as _0x15ce3e,UniverCollaborationClientPlugin as _0x138c17}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5c83b9,SetWorksheetActiveOperation as _0x3bef8f}from'@univerjs/sheets';import{BehaviorSubject as _0x4610d5,Subject as _0x5f429a}from'rxjs';import{takeUntil as _0x264a65,throttleTime as _0x16b8ad}from'rxjs/operators';import{Fragment as _0x2f0b38,jsx as _0x5e0507,jsxs as _0x546f71}from'react/jsx-runtime';import{SetScrollOperation as _0x5abf17,SetZoomRatioOperation as _0x59b108}from'@univerjs/sheets-ui';function R(_0x2a1524){'@babel/helpers - typeof';const _0x5341fc=_0x2290;return R=typeof Symbol==_0x5341fc(0x147)&&typeof Symbol['iterator']=='symbol'?function(_0x425c03){return typeof _0x425c03;}:function(_0x1fc4ff){const _0x3eaa98=_0x5341fc;return _0x1fc4ff&&typeof Symbol==_0x3eaa98(0x147)&&_0x1fc4ff['constructor']===Symbol&&_0x1fc4ff!==Symbol[_0x3eaa98(0x18d)]?_0x3eaa98(0x159):typeof _0x1fc4ff;},R(_0x2a1524);}function z(_0x101c94,_0xbd8e4c){const _0x2031cd=_0x2290;if(R(_0x101c94)!='object'||!_0x101c94)return _0x101c94;var _0x2e139b=_0x101c94[Symbol[_0x2031cd(0x174)]];if(_0x2e139b!==void 0x0){var _0x4318e7=_0x2e139b['call'](_0x101c94,_0xbd8e4c||_0x2031cd(0x15f));if(R(_0x4318e7)!=_0x2031cd(0x19d))return _0x4318e7;throw TypeError(_0x2031cd(0x14f));}return(_0xbd8e4c==='string'?String:Number)(_0x101c94);}function B(_0xb11bdc){const _0x443b0d=_0x2290;var _0x518065=z(_0xb11bdc,_0x443b0d(0x15b));return R(_0x518065)=='symbol'?_0x518065:_0x518065+'';}function V(_0x3ca471,_0x499271,_0x3f6cce){const _0x205b8a=_0x2290;return(_0x499271=B(_0x499271))in _0x3ca471?Object[_0x205b8a(0x152)](_0x3ca471,_0x499271,{'value':_0x3f6cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ca471[_0x499271]=_0x3f6cce,_0x3ca471;}var H=class extends _0x1ce4ab{constructor(..._0x539b07){const _0x8269b0=_0x2290;super(..._0x539b07),V(this,'_sharedOperations',new Set()),V(this,_0x8269b0(0x14a),new Set());}['registerSharedOperation'](_0x28ed9c){const _0x5597fe=_0x2290;return this[_0x5597fe(0x155)]['add'](_0x28ed9c),_0x3bc937(()=>this[_0x5597fe(0x155)]['delete'](_0x28ed9c));}[_0x4bfb65(0x187)](_0x47d1c8){const _0x22aa2f=_0x4bfb65;return this[_0x22aa2f(0x14a)][_0x22aa2f(0x12d)](_0x47d1c8),_0x3bc937(()=>this[_0x22aa2f(0x14a)]['delete'](_0x47d1c8));}[_0x4bfb65(0x15d)](_0x412477){const _0x3c25a9=_0x4bfb65;return this[_0x3c25a9(0x155)][_0x3c25a9(0x170)](_0x412477);}[_0x4bfb65(0x146)](_0x3d3879){const _0x2096ab=_0x4bfb65;return Array[_0x2096ab(0x157)](this['_reporters'])[_0x2096ab(0x18a)](_0x53f955=>_0x53f955(_0x3d3879));}};function U(_0x474cb9,_0x30c562){return function(_0x5b3b51,_0x10e3a5){_0x30c562(_0x5b3b51,_0x10e3a5,_0x474cb9);};}function W(_0x19748c,_0x2c7c96,_0x447637,_0x272e45){const _0x4f229f=_0x4bfb65;var _0x515ddf=arguments[_0x4f229f(0x135)],_0x34c317=_0x515ddf<0x3?_0x2c7c96:_0x272e45===null?_0x272e45=Object[_0x4f229f(0x191)](_0x2c7c96,_0x447637):_0x272e45,_0x3c960c;if(typeof Reflect=='object'&&typeof Reflect[_0x4f229f(0x144)]==_0x4f229f(0x147))_0x34c317=Reflect[_0x4f229f(0x144)](_0x19748c,_0x2c7c96,_0x447637,_0x272e45);else{for(var _0x477e89=_0x19748c[_0x4f229f(0x135)]-0x1;_0x477e89>=0x0;_0x477e89--)(_0x3c960c=_0x19748c[_0x477e89])&&(_0x34c317=(_0x515ddf<0x3?_0x3c960c(_0x34c317):_0x515ddf>0x3?_0x3c960c(_0x2c7c96,_0x447637,_0x34c317):_0x3c960c(_0x2c7c96,_0x447637))||_0x34c317);}return _0x515ddf>0x3&&_0x34c317&&Object['defineProperty'](_0x2c7c96,_0x447637,_0x34c317),_0x34c317;}function _0x41da(){const _0x3b2379=['Stop\x20following','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','getStatus','includes','_status','_status$','_startLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','status$','_univerInstanceService','2763cWqBeO','Present\x20this\x20document','operations','params','_startFollowing','_unitID','unsubscribe','_uiPartsService','stopFollowing','getLiveShareCoordinator','3390370UUWlsD','forEach','current','dispose','LIVESHARE_FETCH_OPERATIONS','following','LIVESHARE_OPERATION','_configService','event$','add','not-following','live-share.config','LIVESHARE_REQUEST_HOST','type','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','pluginName','_entities','length','8784fJLvGx','memberID','stopPresenting','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinatorSync','_handleOnline','init','_presenter','_stopFollowing','disposeWithMe','0.25.0','UNIVER_SHEET','_liveShareService','decorate','_beIdle','getInitialStates','function','tryStartPresenting','_commandDisposable','_reporters','2179914wFynEy','getConfig','1407576bqAdTG','getTypeOfUnitDisposed$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','div','offline','defineProperty','754124sTQsrk','_handleNewChangeSets','_sharedOperations','NOT_FOLLOWING','from','7pxkwak','symbol','getUnitId','string','startFollowing','shouldShareOperation','_mountLiveShare','default','_handleOperation','set','send','pipe','dispose$','text','complete','setConfig','_collabSession','_collabSessionService','3121062VbFUgg','next','subscribe','getTypeOfUnitAdded$','PRESENTING','3FGxjnp','has','executeCommand','find','registerSharedOperation','toPrimitive','data','HEADER_MENU','30iPaxFT','UNIVER_LIVE_SHARE_PLUGIN','FOLLOWING','LIVESHARE_TERMINATE','reverse','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopPresenting','_injector','values','asObservable','_init','createInstance','presenting','then','_startPresenting','_commandService','registerInitialStateReporter','NEW_CHANGESETS','_fetchOperations','map','_config','requireSession','prototype','presenter','stringify','univer-mb-3\x20univer-w-full\x20univer-text-sm','getOwnPropertyDescriptor','get','button','sheet','getMemberID','registerComponent','idle','unit','OFFLINE','subject','UNIVER_UNKNOWN','IDLE','object','1340882VUXrLG','parse','onStarting','mutations','_handleNewHost','_handleOffline'];_0x41da=function(){return _0x3b2379;};return _0x41da();}let G=class extends _0x1a3ddb{constructor(_0x25b0f7,_0x1e18be,_0x30f611){const _0x2cee2a=_0x4bfb65;super(),this[_0x2cee2a(0x1ae)]=_0x25b0f7,this[_0x2cee2a(0x17e)]=_0x1e18be,this[_0x2cee2a(0x169)]=_0x30f611,V(this,_0x2cee2a(0x134),new Map()),this[_0x2cee2a(0x181)]();}async['getLiveShareCoordinator'](_0x104e9f){const _0x2cad5a=_0x4bfb65;return this[_0x2cad5a(0x134)][_0x2cad5a(0x170)](_0x104e9f)||await this[_0x2cad5a(0x1ab)](_0x104e9f),this['_entities'][_0x2cad5a(0x192)](_0x104e9f);}[_0x4bfb65(0x13b)](_0xa5236){const _0x6baff3=_0x4bfb65;var _0x2cb56a;return(_0x2cb56a=this[_0x6baff3(0x134)][_0x6baff3(0x192)](_0xa5236))==null?null:_0x2cb56a;}[_0x4bfb65(0x181)](){const _0x43e8d3=_0x4bfb65;this[_0x43e8d3(0x1ae)][_0x43e8d3(0x16d)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](async _0x25bc6e=>{const _0xe3be1b=_0x43e8d3;let _0x57b1df=_0x25bc6e[_0xe3be1b(0x198)]['getUnitId']();this[_0xe3be1b(0x134)][_0xe3be1b(0x170)](_0x57b1df)||this[_0xe3be1b(0x1ab)](_0x57b1df);}),this[_0x43e8d3(0x1ae)][_0x43e8d3(0x14e)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](_0xe09c49=>{const _0x597665=_0x43e8d3;let _0x45582d=_0xe09c49[_0x597665(0x15a)](),_0x578ec6=this[_0x597665(0x134)]['get'](_0x45582d);_0x578ec6==null||_0x578ec6[_0x597665(0x1bc)]();});}async[_0x4bfb65(0x1ab)](_0x4c900c){const _0x3faca5=_0x4bfb65;let _0x35a9ac=await this[_0x3faca5(0x169)][_0x3faca5(0x18c)](_0x4c900c),_0x8f180b=this[_0x3faca5(0x17e)][_0x3faca5(0x182)](q,_0x4c900c,_0x35a9ac);return _0x8f180b[_0x3faca5(0x13d)](),this[_0x3faca5(0x134)][_0x3faca5(0x161)](_0x4c900c,_0x8f180b),_0x8f180b;}};G=W([U(0x0,_0x4f09f7),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x56773e(_0x3c4ea9))],G);let K=function(_0x553144){const _0x71acf4=_0x4bfb65;return _0x553144[_0x71acf4(0x199)]=_0x71acf4(0x151),_0x553144[_0x71acf4(0x19c)]=_0x71acf4(0x197),_0x553144[_0x71acf4(0x179)]=_0x71acf4(0x1be),_0x553144[_0x71acf4(0x156)]='not-following',_0x553144[_0x71acf4(0x16e)]=_0x71acf4(0x183),_0x553144;}({}),q=class extends _0x1a3ddb{get[_0x4bfb65(0x1a9)](){const _0x5583b9=_0x4bfb65;return this[_0x5583b9(0x1aa)]['getValue']();}constructor(_0x44bda8,_0x368732,_0x37c925,_0x22b1b0,_0x34397c){const _0x113d22=_0x4bfb65;super(),this['_unitID']=_0x44bda8,this['_collabSession']=_0x368732,this[_0x113d22(0x1c0)]=_0x37c925,this[_0x113d22(0x143)]=_0x22b1b0,this[_0x113d22(0x186)]=_0x34397c,V(this,_0x113d22(0x1aa),new _0x4610d5('idle')),V(this,_0x113d22(0x1ad),this[_0x113d22(0x1aa)][_0x113d22(0x180)]()),V(this,_0x113d22(0x181),!0x1),V(this,'_commandDisposable',null),V(this,'_presenter',null);}['dispose'](){const _0x1e12bf=_0x4bfb65;var _0x900623;(_0x900623=this[_0x1e12bf(0x149)])==null||_0x900623[_0x1e12bf(0x1bc)](),this[_0x1e12bf(0x1aa)][_0x1e12bf(0x16b)]('idle'),this['_status$'][_0x1e12bf(0x166)]();}[_0x4bfb65(0x1a7)](){const _0x290313=_0x4bfb65;return this[_0x290313(0x1a9)];}[_0x4bfb65(0x13d)](){const _0x25d25e=_0x4bfb65;this[_0x25d25e(0x181)]||(this['_init']=!0x0,this[_0x25d25e(0x168)]['sessionStatus$'][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))['subscribe'](_0x2c01e3=>{const _0x20014b=_0x25d25e;switch(_0x2c01e3){case _0x15ce3e[_0x20014b(0x199)]:this[_0x20014b(0x1a3)]();break;case _0x15ce3e['ONLINE']:this[_0x20014b(0x13c)]();break;default:}}),this[_0x25d25e(0x168)][_0x25d25e(0x1c1)][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))[_0x25d25e(0x16c)](_0x498a23=>{const _0x36d04b=_0x25d25e;let {eventID:_0x56538d}=_0x498a23;switch(_0x56538d){case _0x13fab2['LIVESHARE_NEW_HOST']:this[_0x36d04b(0x1a2)](_0x498a23);break;case _0x13fab2['LIVESHARE_OPERATION']:this[_0x36d04b(0x160)](_0x498a23);break;case _0x13fab2[_0x36d04b(0x17a)]:this['_handleTerminate']();break;case _0x13fab2[_0x36d04b(0x188)]:this[_0x36d04b(0x154)](_0x498a23);break;default:}}));}[_0x4bfb65(0x148)](){const _0x52e11a=_0x4bfb65;this[_0x52e11a(0x168)][_0x52e11a(0x162)]({'eventID':_0x13fab2[_0x52e11a(0x130)],'data':{'unitID':this[_0x52e11a(0x1b4)],'userID':this[_0x52e11a(0x168)]['getMemberID']()}},this[_0x52e11a(0x1b4)]);}[_0x4bfb65(0x138)](){const _0x212eb0=_0x4bfb65;this[_0x212eb0(0x1a9)]===_0x212eb0(0x183)&&(this['_status$'][_0x212eb0(0x16b)](_0x212eb0(0x197)),this[_0x212eb0(0x168)][_0x212eb0(0x162)]({'eventID':_0x13fab2['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x212eb0(0x1b4)]));}[_0x4bfb65(0x15c)](){const _0x4e208c=_0x4bfb65;this[_0x4e208c(0x1a9)]===_0x4e208c(0x12e)&&(this[_0x4e208c(0x1aa)][_0x4e208c(0x16b)](_0x4e208c(0x1be)),this[_0x4e208c(0x1b3)]());}['stopFollowing'](){const _0x1ad6dd=_0x4bfb65;this[_0x1ad6dd(0x1a9)]===_0x1ad6dd(0x1be)&&this[_0x1ad6dd(0x13f)]();}[_0x4bfb65(0x1a2)](_0x3a2ef5){const _0x5db380=_0x4bfb65;let {presenter:_0x574917}=_0x3a2ef5[_0x5db380(0x175)],_0xcda10e=this['_collabSession'][_0x5db380(0x195)]();this[_0x5db380(0x13e)]=_0x574917,_0x574917===_0xcda10e?(this[_0x5db380(0x13f)](),this[_0x5db380(0x185)]()):this[_0x5db380(0x1a9)]!==_0x5db380(0x12e)&&(this[_0x5db380(0x17d)](),this['_startFollowing']());}[_0x4bfb65(0x189)](){const _0x43f052=_0x4bfb65;let _0x421978={'eventID':_0x13fab2[_0x43f052(0x1bd)]};this[_0x43f052(0x168)][_0x43f052(0x162)](_0x421978,this[_0x43f052(0x1b4)]);}['_handleTerminate'](){const _0x58ac23=_0x4bfb65;this[_0x58ac23(0x13e)]=null,this[_0x58ac23(0x1a9)]!==_0x58ac23(0x183)&&this[_0x58ac23(0x145)]();}[_0x4bfb65(0x154)](_0x31bffc){const _0x59116b=_0x4bfb65;if(this['_status']===_0x59116b(0x1be)&&this[_0x59116b(0x13e)]===_0x31bffc[_0x59116b(0x175)][_0x59116b(0x137)]){let _0x7a39f0=_0x5034fc(_0x31bffc[_0x59116b(0x175)])[_0x59116b(0x1a1)][_0x59116b(0x17b)]()[_0x59116b(0x172)](_0x3a37c3=>_0x3a37c3['id']===_0x5c83b9['id']);if(_0x7a39f0){let _0x26d748=_0x7a39f0[_0x59116b(0x1b2)]['unitId'],_0x1afc87=_0x7a39f0[_0x59116b(0x1b2)][_0x59116b(0x194)]['id'];setTimeout(()=>{const _0x2d3809=_0x59116b;this[_0x2d3809(0x186)]['executeCommand'](_0x3bef8f['id'],{'unitId':_0x26d748,'subUnitId':_0x1afc87},{'fromCollab':!0x0});});}}}[_0x4bfb65(0x185)](){const _0x5a1666=_0x4bfb65;var _0x39fb0a;(_0x39fb0a=this['_commandDisposable'])==null||_0x39fb0a[_0x5a1666(0x1bc)](),this[_0x5a1666(0x1aa)]['next']('presenting');let _0x1b1fb7=new Map(),_0x50dd89=this[_0x5a1666(0x149)]=new _0x32b6cc();_0x50dd89['add'](_0x3bc937(()=>{_0x1b1fb7['forEach'](({subject:_0x4cf126,subscription:_0x428f19})=>{const _0x303858=_0x2290;_0x428f19[_0x303858(0x1b5)](),_0x4cf126['complete']();}),_0x1b1fb7['clear']();})),_0x50dd89[_0x5a1666(0x12d)](this[_0x5a1666(0x186)]['onCommandExecuted'](_0x40d0e6=>{const _0x11e372=_0x5a1666;if(_0x40d0e6[_0x11e372(0x131)]!==_0x19d177['OPERATION']||!this[_0x11e372(0x143)][_0x11e372(0x15d)](_0x40d0e6['id']))return;let {id:_0x125e6e}=_0x40d0e6,_0x166778;if(_0x1b1fb7['has'](_0x125e6e))_0x166778=_0x1b1fb7[_0x11e372(0x192)](_0x125e6e)[_0x11e372(0x19a)];else{var _0x8a0057;_0x166778=new _0x5f429a();let _0x19d9a5=_0x166778['pipe'](_0x16b8ad((_0x8a0057=this[_0x11e372(0x1c0)][_0x11e372(0x14c)](_0x11e372(0x1a6)))==null?0xc8:_0x8a0057,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11e372(0x16c)](_0x4da033=>{const _0x1493f2=_0x11e372;this[_0x1493f2(0x168)][_0x1493f2(0x162)]({'eventID':_0x13fab2[_0x1493f2(0x1bf)],'data':{'unitID':this[_0x1493f2(0x1b4)],'operations':{[_0x4da033['id']]:{'id':_0x4da033['id'],'params':JSON['stringify'](_0x4da033[_0x1493f2(0x1b2)])}}}},this[_0x1493f2(0x1b4)]);});_0x1b1fb7['set'](_0x125e6e,{'subject':_0x166778,'subscription':_0x19d9a5});}_0x166778['next'](_0x40d0e6);})),this[_0x5a1666(0x143)]['getInitialStates'](this[_0x5a1666(0x1b4)])[_0x5a1666(0x1ba)](_0x373811=>this[_0x5a1666(0x168)][_0x5a1666(0x162)]({'eventID':_0x13fab2[_0x5a1666(0x1bf)],'data':{'unitID':this[_0x5a1666(0x1b4)],'operations':{[_0x373811['id']]:{'id':_0x373811['id'],'params':JSON[_0x5a1666(0x18f)](_0x373811[_0x5a1666(0x1b2)])}}}},this[_0x5a1666(0x1b4)]));}[_0x4bfb65(0x17d)](){const _0x227d47=_0x4bfb65;var _0x28363f;this[_0x227d47(0x1aa)][_0x227d47(0x16b)]('idle'),(_0x28363f=this[_0x227d47(0x149)])==null||_0x28363f[_0x227d47(0x1bc)](),this[_0x227d47(0x149)]=null;}[_0x4bfb65(0x1b3)](){const _0x1665ea=_0x4bfb65;var _0x28bc13;(_0x28bc13=this['_commandDisposable'])==null||_0x28bc13[_0x1665ea(0x1bc)](),this['_status$'][_0x1665ea(0x16b)]('following');}[_0x4bfb65(0x145)](){const _0x10c040=_0x4bfb65;var _0x1dc827;this[_0x10c040(0x1aa)][_0x10c040(0x16b)](_0x10c040(0x197)),(_0x1dc827=this[_0x10c040(0x149)])==null||_0x1dc827[_0x10c040(0x1bc)](),this[_0x10c040(0x149)]=null;}[_0x4bfb65(0x13f)](){const _0xc37d19=_0x4bfb65;var _0x14363b;this[_0xc37d19(0x1aa)][_0xc37d19(0x16b)](_0xc37d19(0x12e)),(_0x14363b=this[_0xc37d19(0x149)])==null||_0x14363b[_0xc37d19(0x1bc)]();}[_0x4bfb65(0x160)](_0x4d5f6f){const _0x128a36=_0x4bfb65;if([_0x128a36(0x183),_0x128a36(0x12e),_0x128a36(0x151)][_0x128a36(0x1a8)](this[_0x128a36(0x1a9)])||!_0x4d5f6f['data']['presenter']||_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x18e)]===this[_0x128a36(0x168)]['getMemberID']())return;this[_0x128a36(0x1a9)]==='idle'&&this[_0x128a36(0x1b3)]();let _0x4eb22e=_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x1b1)];Object[_0x128a36(0x17f)](_0x4eb22e)[_0x128a36(0x1ba)](_0x24f510=>{const _0x19545e=_0x128a36;this[_0x19545e(0x186)][_0x19545e(0x171)](_0x24f510['id'],_0x24f510['params']?JSON[_0x19545e(0x19f)](_0x24f510[_0x19545e(0x1b2)]):null,{'fromCollab':!0x0});});}[_0x4bfb65(0x1a3)](){const _0x46c67a=_0x4bfb65;var _0x3a08a2;this['_status$'][_0x46c67a(0x16b)](_0x46c67a(0x151)),(_0x3a08a2=this[_0x46c67a(0x149)])==null||_0x3a08a2[_0x46c67a(0x1bc)]();}[_0x4bfb65(0x13c)](){const _0xad2c8f=_0x4bfb65;this['_status$']['next'](_0xad2c8f(0x197)),this[_0xad2c8f(0x189)]();}};q=W([U(0x2,_0x25496e),U(0x3,_0x56773e(H)),U(0x4,_0x34d8a7)],q);function J(){const _0x2b336c=_0x4bfb65;let _0x536d64=_0x4aae14(G),_0x447395=_0x4aae14(_0x4f09f7),_0x30f598=_0x2f2a72(()=>_0x447395['getCurrentTypeOfUnit$'](_0x7bf701[_0x2b336c(0x142)]),void 0x0,!0x1,[]),[_0x36884e,_0x4e526d]=_0x3a871b(null),[_0x3e6134,_0x16fc35]=_0x3a871b(_0x2b336c(0x197)),_0xd5a0c3=_0x3b13ea(null);return _0x3b2091(()=>(_0x30f598&&_0x536d64[_0x2b336c(0x1b8)](_0x30f598[_0x2b336c(0x15a)]())[_0x2b336c(0x184)](_0x103eaa=>{const _0x4f9b48=_0x2b336c;_0x4e526d(_0x103eaa),_0xd5a0c3[_0x4f9b48(0x1bb)]=_0x103eaa[_0x4f9b48(0x1ad)]['subscribe'](_0x274dd1=>{_0x16fc35(_0x274dd1);});}),()=>{const _0x3621be=_0x2b336c;var _0x48eb2b;(_0x48eb2b=_0xd5a0c3[_0x3621be(0x1bb)])==null||_0x48eb2b[_0x3621be(0x1b5)](),_0xd5a0c3[_0x3621be(0x1bb)]=null;}),[_0x30f598,_0x536d64]),_0x36884e?_0x5e0507(_0x256d48,{'align':'end','disabled':_0x3e6134===_0x2b336c(0x151),'className':_0x2b336c(0x132),'overlay':_0x5e0507(se,{'status':_0x3e6134,'coordinator':_0x36884e}),'children':_0x5e0507(_0x2b336c(0x193),{'className':_0x16695f(_0x2b336c(0x17c),{'univer-cursor-not-allowed':_0x3e6134===_0x2b336c(0x151),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3e6134!=='offline'}),'type':'button','children':_0x5e0507(_0x279c39,{'className':'univer-size-4'})})}):null;}function se(_0x4c043c){const _0x225901=_0x4bfb65;let {status:_0x3bfe2e,coordinator:_0x10bbe5}=_0x4c043c;switch(_0x3bfe2e){case'idle':return _0x5e0507(ce,{'coordinator':_0x10bbe5});case'following':return _0x5e0507(le,{'coordinator':_0x10bbe5});case _0x225901(0x12e):return _0x5e0507(ue,{'coordinator':_0x10bbe5});case _0x225901(0x151):return _0x5e0507(de,{});case'presenting':return _0x5e0507(Y,{'coordinator':_0x10bbe5});default:return null;}}function ce(_0x2b5845){const _0xd66ce=_0x4bfb65;let {coordinator:_0x46b85b}=_0x2b5845;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0xd66ce(0x190),'children':_0xd66ce(0x1b0)}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x46b85b[_0xd66ce(0x148)](),'children':'Start'})]});}function le(_0x2ff54f){const _0x23dab1=_0x4bfb65;let {coordinator:_0x28a05c}=_0x2ff54f;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0x23dab1(0x190),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x28a05c[_0x23dab1(0x1b7)](),'children':_0x23dab1(0x1a4)})]});}function ue(_0x471ce3){const _0x5f1e26=_0x4bfb65;let {coordinator:_0x4bb366}=_0x471ce3;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x5f1e26(0x150),{'className':_0x5f1e26(0x190),'children':_0x5f1e26(0x1ac)}),_0x5e0507(_0x2e3da7,{'variant':_0x5f1e26(0x165),'onClick':()=>_0x4bb366[_0x5f1e26(0x15c)](),'children':_0x5f1e26(0x1a5)})]});}function Y(_0x26abfd){const _0x536f53=_0x4bfb65;let {coordinator:_0x24203f}=_0x26abfd;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x536f53(0x150),{'className':_0x536f53(0x190),'children':_0x536f53(0x13a)}),_0x5e0507(_0x2e3da7,{'variant':_0x536f53(0x15f),'onClick':()=>_0x24203f[_0x536f53(0x138)](),'children':'Stop\x20presenting'})]});}function de(){const _0x28505f=_0x4bfb65;return _0x5e0507(_0x2f0b38,{'children':_0x28505f(0x139)});}let X=class extends _0x1ce4ab{constructor(_0x472176,_0x40787e){const _0xbb4c8e=_0x4bfb65;super(),this[_0xbb4c8e(0x17e)]=_0x472176,this[_0xbb4c8e(0x1b6)]=_0x40787e,this['_mountLiveShare']();}[_0x4bfb65(0x15e)](){const _0x2c88d5=_0x4bfb65;this['disposeWithMe'](this[_0x2c88d5(0x1b6)][_0x2c88d5(0x196)](_0x342ffe[_0x2c88d5(0x176)],()=>_0x229861(J,this[_0x2c88d5(0x17e)])));}};X=W([U(0x0,_0x56773e(_0x51a301)),U(0x1,_0x27ea1c)],X);var fe='@univerjs-pro/live-share',pe=_0x4bfb65(0x141);function _0x2290(_0x22c53c,_0x46936c){_0x22c53c=_0x22c53c-0x12d;const _0x41da41=_0x41da();let _0x229021=_0x41da41[_0x22c53c];return _0x229021;}const Z={};let Q=class extends _0x1ce4ab{constructor(_0x294a46){const _0xd1a91c=_0x4bfb65;super(),this[_0xd1a91c(0x143)]=_0x294a46,this[_0xd1a91c(0x181)]();}[_0x4bfb65(0x181)](){[_0x59b108['id'],_0x5abf17['id'],_0x3bef8f['id']]['forEach'](_0x1c12c7=>{const _0x22e397=_0x2290;this[_0x22e397(0x140)](this[_0x22e397(0x143)][_0x22e397(0x173)](_0x1c12c7));});}};Q=W([U(0x0,_0x56773e(H))],Q);let $=class extends _0x1b359a{constructor(_0x183a8d=Z,_0x146c69,_0x3246fd){const _0x3a7986=_0x4bfb65;super(),this[_0x3a7986(0x18b)]=_0x183a8d,this['_injector']=_0x146c69,this['_configService']=_0x3246fd;let {..._0x5d1d2e}=_0x5bb40d({},Z,this[_0x3a7986(0x18b)]);this[_0x3a7986(0x1c0)][_0x3a7986(0x167)](_0x3a7986(0x12f),_0x5d1d2e);}[_0x4bfb65(0x1a0)](){const _0x50b75b=_0x4bfb65;_0x519864(this[_0x50b75b(0x17e)],_0x250f7e([[H],[G],[Q],[X]],this[_0x50b75b(0x18b)]['override'])),_0x4834f3(this[_0x50b75b(0x17e)],[[Q]]);}['onRendered'](){_0x4834f3(this['_injector'],[[X]]);}};V($,_0x4bfb65(0x131),_0x7bf701[_0x4bfb65(0x19b)]),V($,_0x4bfb65(0x133),_0x4bfb65(0x178)),V($,'packageName',fe),V($,'version',pe),$=W([_0x59b5e2(_0x138c17),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x25496e)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0xd62a(_0x2f4ad8,_0x2fcfd4){_0x2f4ad8=_0x2f4ad8-0x1b4;const _0x27959f=_0x2795();let _0xd62a2b=_0x27959f[_0x2f4ad8];return _0xd62a2b;}(function(_0x21a71e,_0x2fd725){const _0x3fb078=_0xd62a,_0x48445c=_0x21a71e();while(!![]){try{const _0x4e761a=parseInt(_0x3fb078(0x1d9))/0x1+-parseInt(_0x3fb078(0x1dd))/0x2*(-parseInt(_0x3fb078(0x1d1))/0x3)+parseInt(_0x3fb078(0x1bb))/0x4+-parseInt(_0x3fb078(0x1d6))/0x5+-parseInt(_0x3fb078(0x1c0))/0x6*(parseInt(_0x3fb078(0x1cf))/0x7)+-parseInt(_0x3fb078(0x1b6))/0x8*(-parseInt(_0x3fb078(0x1ba))/0x9)+parseInt(_0x3fb078(0x1e2))/0xa*(-parseInt(_0x3fb078(0x1da))/0xb);if(_0x4e761a===_0x2fd725)break;else _0x48445c['push'](_0x48445c['shift']());}catch(_0x413239){_0x48445c['push'](_0x48445c['shift']());}}}(_0x2795,0xd7f65),function(_0x452cb7,_0x403cae){const _0x2c7568=_0xd62a;typeof exports=='object'&&typeof module<'u'?_0x403cae(require(`@univerjs-pro/live-share`),require(`@univerjs/core`),require(`@univerjs/core/facade`)):typeof define==_0x2c7568(0x1e0)&&define['amd']?define([_0x2c7568(0x1d7),'@univerjs/core',_0x2c7568(0x1b4)],_0x403cae):(_0x452cb7=typeof globalThis<'u'?globalThis:_0x452cb7||self,_0x403cae(_0x452cb7[_0x2c7568(0x1c2)],_0x452cb7['UniverCore'],_0x452cb7['UniverCoreFacade']));}(this,function(_0x4e038d,_0x3819ef,_0x5e3b9f){const _0x1dcc1c=_0xd62a;function _0xe8b7ba(_0x5531a5){'@babel/helpers - typeof';const _0x148c5f=_0xd62a;return _0xe8b7ba=typeof Symbol==_0x148c5f(0x1e0)&&typeof Symbol[_0x148c5f(0x1c5)]==_0x148c5f(0x1b8)?function(_0x499793){return typeof _0x499793;}:function(_0x4ef2e6){const _0x258a1e=_0x148c5f;return _0x4ef2e6&&typeof Symbol=='function'&&_0x4ef2e6[_0x258a1e(0x1c1)]===Symbol&&_0x4ef2e6!==Symbol['prototype']?_0x258a1e(0x1b8):typeof _0x4ef2e6;},_0xe8b7ba(_0x5531a5);}function _0x22aa94(_0x561976,_0x34c6c8){const _0x2ad17d=_0xd62a;if(_0xe8b7ba(_0x561976)!=_0x2ad17d(0x1cd)||!_0x561976)return _0x561976;var _0x1423a5=_0x561976[Symbol[_0x2ad17d(0x1c7)]];if(_0x1423a5!==void 0x0){var _0x321cc0=_0x1423a5[_0x2ad17d(0x1ca)](_0x561976,_0x34c6c8||_0x2ad17d(0x1d8));if(_0xe8b7ba(_0x321cc0)!='object')return _0x321cc0;throw TypeError(_0x2ad17d(0x1c4));}return(_0x34c6c8===_0x2ad17d(0x1e1)?String:Number)(_0x561976);}function _0x203bc6(_0x2e641e){const _0x2dc885=_0xd62a;var _0x139805=_0x22aa94(_0x2e641e,_0x2dc885(0x1e1));return _0xe8b7ba(_0x139805)==_0x2dc885(0x1b8)?_0x139805:_0x139805+'';}function _0x26374c(_0x86b270,_0x83ba6b,_0x540358){const _0xeae346=_0xd62a;return(_0x83ba6b=_0x203bc6(_0x83ba6b))in _0x86b270?Object[_0xeae346(0x1c6)](_0x86b270,_0x83ba6b,{'value':_0x540358,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x86b270[_0x83ba6b]=_0x540358,_0x86b270;}var _0x239062=class extends _0x5e3b9f[_0x1dcc1c(0x1c9)]{constructor(..._0x4f262d){super(..._0x4f262d),_0x26374c(this,'_liveShareController',void 0x0);}[_0x1dcc1c(0x1b7)](_0x16eb08){const _0x1c682b=_0x1dcc1c;this[_0x1c682b(0x1d0)]=_0x16eb08[_0x1c682b(0x1bc)](_0x4e038d[_0x1c682b(0x1ce)]);}['getLiveShareStatus'](){const _0x4c686f=_0x1dcc1c;var _0x3de2df;let _0x33bbaa=this['_injector'][_0x4c686f(0x1bc)](_0x3819ef['IUniverInstanceService'])[_0x4c686f(0x1c8)](_0x3819ef[_0x4c686f(0x1bd)][_0x4c686f(0x1bf)]);if(!_0x33bbaa)throw Error('No\x20active\x20workbook\x20found.');let _0x231aed=_0x33bbaa['getUnitId'](),_0x42e5b7=this[_0x4c686f(0x1d0)][_0x4c686f(0x1db)](_0x231aed);return(_0x3de2df=_0x42e5b7==null?void 0x0:_0x42e5b7['getStatus']())==null?_0x4e038d[_0x4c686f(0x1dc)][_0x4c686f(0x1b9)]:_0x3de2df;}['startFollowing'](){const _0x133bd2=_0x1dcc1c;let _0x20bbeb=this[_0x133bd2(0x1d3)][_0x133bd2(0x1bc)](_0x3819ef['IUniverInstanceService'])[_0x133bd2(0x1c8)](_0x3819ef[_0x133bd2(0x1bd)][_0x133bd2(0x1bf)]);if(!_0x20bbeb)throw Error(_0x133bd2(0x1c3));let _0x5664ea=_0x20bbeb[_0x133bd2(0x1d4)](),_0x48494b=this[_0x133bd2(0x1d0)][_0x133bd2(0x1db)](_0x5664ea);if(!_0x48494b)throw Error(_0x133bd2(0x1be));_0x48494b[_0x133bd2(0x1d2)]();}[_0x1dcc1c(0x1cc)](){const _0x114b7f=_0x1dcc1c;let _0x5b5264=this['_injector']['get'](_0x3819ef[_0x114b7f(0x1df)])[_0x114b7f(0x1c8)](_0x3819ef[_0x114b7f(0x1bd)][_0x114b7f(0x1bf)]);if(!_0x5b5264)throw Error('No\x20active\x20workbook\x20found.');let _0x275233=_0x5b5264[_0x114b7f(0x1d4)](),_0x3d19af=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x275233);if(!_0x3d19af)throw Error(_0x114b7f(0x1be));_0x3d19af[_0x114b7f(0x1cc)]();}[_0x1dcc1c(0x1de)](){const _0x84a286=_0x1dcc1c;let _0x16ff7f=this[_0x84a286(0x1d3)][_0x84a286(0x1bc)](_0x3819ef[_0x84a286(0x1df)])[_0x84a286(0x1c8)](_0x3819ef['UniverInstanceType'][_0x84a286(0x1bf)]);if(!_0x16ff7f)throw Error(_0x84a286(0x1c3));let _0x5cba26=_0x16ff7f[_0x84a286(0x1d4)](),_0x438276=this[_0x84a286(0x1d0)]['getLiveShareCoordinatorSync'](_0x5cba26);if(!_0x438276)throw Error(_0x84a286(0x1be));_0x438276['tryStartPresenting']();}['stopPresenting'](){const _0x315151=_0x1dcc1c;let _0x1afaa4=this[_0x315151(0x1d3)][_0x315151(0x1bc)](_0x3819ef['IUniverInstanceService'])[_0x315151(0x1c8)](_0x3819ef['UniverInstanceType'][_0x315151(0x1bf)]);if(!_0x1afaa4)throw Error(_0x315151(0x1c3));let _0xbe8335=_0x1afaa4['getUnitId'](),_0x55cf02=this['_liveShareController'][_0x315151(0x1db)](_0xbe8335);if(!_0x55cf02)throw Error(_0x315151(0x1be));_0x55cf02[_0x315151(0x1b5)]();}};_0x5e3b9f['FUniver'][_0x1dcc1c(0x1d5)](_0x239062);var _0x2d2dae=class extends _0x5e3b9f['FEnum']{get['LiveShareStatusEnum'](){const _0x20e890=_0x1dcc1c;return _0x4e038d[_0x20e890(0x1dc)];}};_0x5e3b9f[_0x1dcc1c(0x1cb)]['extend'](_0x2d2dae);}));function _0x2795(){const _0x41ad21=['FEnum','stopFollowing','object','LiveShareController','9597wrQtBS','_liveShareController','9KYOyDI','startFollowing','_injector','getUnitId','extend','5698365FaIxkc','@univerjs-pro/live-share','default','1179565tlvRoo','26233702vTEuPc','getLiveShareCoordinatorSync','LiveShareStatus','856846MXLBSF','startPresenting','IUniverInstanceService','function','string','10CDnwad','@univerjs/core/facade','stopPresenting','1432pjOMLl','_initialize','symbol','IDLE','80613QSJNlP','1764328rewkOo','get','UniverInstanceType','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','438Fofxfh','constructor','UniverProLiveShare','No\x20active\x20workbook\x20found.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','iterator','defineProperty','toPrimitive','getCurrentUnitOfType','FUniver','call'];_0x2795=function(){return _0x41ad21;};return _0x2795();}
1
+ function _0x254a(_0x4398bb,_0x39daa6){_0x4398bb=_0x4398bb-0x136;const _0x3688ab=_0x3688();let _0x254a5e=_0x3688ab[_0x4398bb];return _0x254a5e;}(function(_0x2011ec,_0x4bcebf){const _0x294d8b=_0x254a,_0x3ed8ee=_0x2011ec();while(!![]){try{const _0x2186e7=parseInt(_0x294d8b(0x14c))/0x1+-parseInt(_0x294d8b(0x163))/0x2+-parseInt(_0x294d8b(0x153))/0x3*(parseInt(_0x294d8b(0x147))/0x4)+parseInt(_0x294d8b(0x161))/0x5*(-parseInt(_0x294d8b(0x146))/0x6)+parseInt(_0x294d8b(0x148))/0x7*(-parseInt(_0x294d8b(0x14d))/0x8)+parseInt(_0x294d8b(0x15c))/0x9*(parseInt(_0x294d8b(0x139))/0xa)+parseInt(_0x294d8b(0x15a))/0xb*(parseInt(_0x294d8b(0x157))/0xc);if(_0x2186e7===_0x4bcebf)break;else _0x3ed8ee['push'](_0x3ed8ee['shift']());}catch(_0x2acae7){_0x3ed8ee['push'](_0x3ed8ee['shift']());}}}(_0x3688,0x714b4),function(_0x502966,_0x1a3551){const _0xf2a5f4=_0x254a;typeof exports==_0xf2a5f4(0x165)&&typeof module<'u'?_0x1a3551(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0xf2a5f4(0x156)&&define[_0xf2a5f4(0x15d)]?define([_0xf2a5f4(0x167),_0xf2a5f4(0x160),_0xf2a5f4(0x138)],_0x1a3551):(_0x502966=typeof globalThis<'u'?globalThis:_0x502966||self,_0x1a3551(_0x502966[_0xf2a5f4(0x14e)],_0x502966[_0xf2a5f4(0x136)],_0x502966[_0xf2a5f4(0x164)]));}(this,function(_0x2cfe8d,_0x21e47d,_0x134e59){const _0x1f5a69=_0x254a;function _0x2a68c1(_0x278361){'@babel/helpers - typeof';const _0x664e62=_0x254a;return _0x2a68c1=typeof Symbol==_0x664e62(0x156)&&typeof Symbol['iterator']==_0x664e62(0x13f)?function(_0x421a69){return typeof _0x421a69;}:function(_0x3c8053){const _0x404560=_0x664e62;return _0x3c8053&&typeof Symbol==_0x404560(0x156)&&_0x3c8053['constructor']===Symbol&&_0x3c8053!==Symbol['prototype']?'symbol':typeof _0x3c8053;},_0x2a68c1(_0x278361);}function _0x37a729(_0x127828,_0x1bad93){const _0x31207c=_0x254a;if(_0x2a68c1(_0x127828)!=_0x31207c(0x165)||!_0x127828)return _0x127828;var _0x33280f=_0x127828[Symbol[_0x31207c(0x13c)]];if(_0x33280f!==void 0x0){var _0x223268=_0x33280f['call'](_0x127828,_0x1bad93||'default');if(_0x2a68c1(_0x223268)!='object')return _0x223268;throw TypeError(_0x31207c(0x151));}return(_0x1bad93==='string'?String:Number)(_0x127828);}function _0x1776bb(_0x577355){const _0x5874c1=_0x254a;var _0x1687f8=_0x37a729(_0x577355,_0x5874c1(0x162));return _0x2a68c1(_0x1687f8)==_0x5874c1(0x13f)?_0x1687f8:_0x1687f8+'';}function _0x296ae7(_0x933a96,_0x531355,_0x101936){const _0x44bd02=_0x254a;return(_0x531355=_0x1776bb(_0x531355))in _0x933a96?Object[_0x44bd02(0x141)](_0x933a96,_0x531355,{'value':_0x101936,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x933a96[_0x531355]=_0x101936,_0x933a96;}var _0xc6de91=class extends _0x134e59[_0x1f5a69(0x142)]{constructor(..._0xc30da0){const _0x156032=_0x1f5a69;super(..._0xc30da0),_0x296ae7(this,_0x156032(0x14a),void 0x0);}[_0x1f5a69(0x14f)](_0x306fe4){const _0x1f8c2b=_0x1f5a69;this[_0x1f8c2b(0x14a)]=_0x306fe4['get'](_0x2cfe8d[_0x1f8c2b(0x13b)]);}[_0x1f5a69(0x13e)](){const _0x342734=_0x1f5a69;var _0x29f4c3;let _0x21a66f=this[_0x342734(0x152)][_0x342734(0x150)](_0x21e47d[_0x342734(0x15f)])[_0x342734(0x149)](_0x21e47d[_0x342734(0x15b)][_0x342734(0x14b)]);if(!_0x21a66f)throw Error('No\x20active\x20workbook\x20found.');let _0xf6f4ea=_0x21a66f['getUnitId'](),_0x3ddca1=this[_0x342734(0x14a)][_0x342734(0x137)](_0xf6f4ea);return(_0x29f4c3=_0x3ddca1==null?void 0x0:_0x3ddca1[_0x342734(0x168)]())==null?_0x2cfe8d['LiveShareStatus'][_0x342734(0x154)]:_0x29f4c3;}['startFollowing'](){const _0x56c68e=_0x1f5a69;let _0x42f92e=this[_0x56c68e(0x152)][_0x56c68e(0x150)](_0x21e47d[_0x56c68e(0x15f)])['getCurrentUnitOfType'](_0x21e47d[_0x56c68e(0x15b)][_0x56c68e(0x14b)]);if(!_0x42f92e)throw Error(_0x56c68e(0x144));let _0x19a1b0=_0x42f92e[_0x56c68e(0x140)](),_0x5d12b5=this['_liveShareController'][_0x56c68e(0x137)](_0x19a1b0);if(!_0x5d12b5)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d12b5[_0x56c68e(0x155)]();}['stopFollowing'](){const _0x23f743=_0x1f5a69;let _0x492997=this[_0x23f743(0x152)][_0x23f743(0x150)](_0x21e47d[_0x23f743(0x15f)])[_0x23f743(0x149)](_0x21e47d[_0x23f743(0x15b)][_0x23f743(0x14b)]);if(!_0x492997)throw Error(_0x23f743(0x144));let _0x9019cc=_0x492997[_0x23f743(0x140)](),_0xbc03e4=this[_0x23f743(0x14a)][_0x23f743(0x137)](_0x9019cc);if(!_0xbc03e4)throw Error(_0x23f743(0x13a));_0xbc03e4[_0x23f743(0x159)]();}[_0x1f5a69(0x143)](){const _0x50bab2=_0x1f5a69;let _0x394fdc=this[_0x50bab2(0x152)][_0x50bab2(0x150)](_0x21e47d[_0x50bab2(0x15f)])['getCurrentUnitOfType'](_0x21e47d[_0x50bab2(0x15b)][_0x50bab2(0x14b)]);if(!_0x394fdc)throw Error(_0x50bab2(0x144));let _0x2382c2=_0x394fdc[_0x50bab2(0x140)](),_0x48a7a6=this[_0x50bab2(0x14a)][_0x50bab2(0x137)](_0x2382c2);if(!_0x48a7a6)throw Error(_0x50bab2(0x13a));_0x48a7a6[_0x50bab2(0x15e)]();}[_0x1f5a69(0x158)](){const _0x307684=_0x1f5a69;let _0x59a51f=this[_0x307684(0x152)]['get'](_0x21e47d[_0x307684(0x15f)])[_0x307684(0x149)](_0x21e47d[_0x307684(0x15b)][_0x307684(0x14b)]);if(!_0x59a51f)throw Error('No\x20active\x20workbook\x20found.');let _0x25f402=_0x59a51f[_0x307684(0x140)](),_0x83c4ad=this[_0x307684(0x14a)]['getLiveShareCoordinatorSync'](_0x25f402);if(!_0x83c4ad)throw Error(_0x307684(0x13a));_0x83c4ad[_0x307684(0x158)]();}};_0x134e59[_0x1f5a69(0x142)][_0x1f5a69(0x145)](_0xc6de91);var _0x2a3f2a=class extends _0x134e59['FEnum']{get['LiveShareStatusEnum'](){const _0x19b842=_0x1f5a69;return _0x2cfe8d[_0x19b842(0x166)];}};_0x134e59[_0x1f5a69(0x13d)]['extend'](_0x2a3f2a);}));function _0x3688(){const _0xf30291=['156aldAeF','14sBXtZx','getCurrentUnitOfType','_liveShareController','UNIVER_SHEET','67480tebcCp','2020312ghBgKp','UniverProLiveShare','_initialize','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_injector','20853CsSqNu','IDLE','startFollowing','function','12ZBqTOY','stopPresenting','stopFollowing','23805232OkkrRQ','UniverInstanceType','5337yBVeJK','amd','tryStartPresenting','IUniverInstanceService','@univerjs/core','155FTgnyV','string','1696246MiLHHr','UniverCoreFacade','object','LiveShareStatus','@univerjs-pro/live-share','getStatus','UniverCore','getLiveShareCoordinatorSync','@univerjs/core/facade','3490cfiIts','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareController','toPrimitive','FEnum','getLiveShareStatus','symbol','getUnitId','defineProperty','FUniver','startPresenting','No\x20active\x20workbook\x20found.','extend','67782TEiSqj'];_0x3688=function(){return _0xf30291;};return _0x3688();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x10d9(){const _0x43b98a=['SessionStatus','length','registerInitialStateReporter','_handleOperation','live-share.config','_commandService','_handleNewChangeSets','0.24.0','data','ICommandService','_presenter','_mountLiveShare','evenodd','operators','Present\x20this\x20document','_fetchOperations','SetScrollOperation','function','stringify','Button','getTypeOfUnitAdded$','BehaviorSubject','LiveShareCoordinator','forEach','Disposable','init','CollaborationEvent','useState','4026129LRmJUN','_liveShareService','getInitialStates','get','108941dTxMCp','prototype','merge','IUniverInstanceService','toString','forwardRef','_collabSession','93vTEnxH','_unitID','12vBOOEM','entries','react/jsx-runtime','url(#$1','jsxs','UniverSheets','object','LIVESHARE_OPERATION','currentColor','_beIdle','_status$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','executeCommand','UNIVER_UNKNOWN','packageName','Dropdown','xlink:href','call','trim','InsertSheetMutation','You\x27re\x20presenting\x20the\x20document','not-following','_handleOnline','next','live-share-icon','dispose','presenting','mask','decorate','_stopFollowing','DesktopLiveShareController','set','_init','add','unit','offline','toPrimitive','params','stopFollowing','parse','@univerjs/sheets-ui','toDisposable','useRef','_sharedOperations','UniverLiveSharePlugin','rxjs','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','27mGGsbz','defineProperty','LiveShare','You\x27re\x20following\x20the\x20presenter','getMemberID','includes','univer-mb-3\x20univer-w-full\x20univer-text-sm','PRESENTING','UNIVER_SHEET','idSuffix','getStatus','638341sMOsok','onCommandExecuted','4985hwTqIU','send','default','override','Stop\x20following','attrs','IConfigService','1805968IoqChr','stopPresenting','use','registerDependencies','Module','getUnitId','Start\x20following','onRendered','UNIVER_LIVE_SHARE_PLUGIN','subscribe','SetWorksheetActiveOperation','path','SetZoomRatioOperation','getLiveShareCoordinatorSync','1658DaArSX','LiveShareIcon','RxDisposable','pipe','_uiPartsService','1em','string','LiveShareController','children','_handleNewHost','symbol','registerComponent','connectInjector','@univerjs/ui','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_startPresenting','then','constructor','UniverSheetsUi','tag','following','UniverInstanceType','Injector','You\x27re\x20not\x20following\x20the\x20presenter','654yYiQDa','disposeWithMe','0\x200\x2017\x2017','shouldShareOperation','parseProtocolChangeset','event$','_status','clear','_entities','none','CommandType','_handleTerminate','requireSession','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','registerSharedOperation','touchDependencies','_handleOffline','has','_injector','assign','NEW_CHANGESETS','LiveShareService','end','map','unsubscribe','UniverUi','40NUweWr','UniverIcon','_commandDisposable','createElement','getCurrentTypeOfUnit$','asObservable','defIds','getLiveShareCoordinator','fill','@univerjs/design','jsx','Start','OPERATION','Plugin','_collabSessionService','onStarting','_stopPresenting','takeUntil','idle','UniverCollaborationClientPlugin','presenter','type','startFollowing','@univerjs-pro/collaboration','FOLLOWING','CollaborationSessionService','Inject','version','React','useDependency','_config','button','replace','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','useObservable','_reporters','Stop\x20presenting','throttleTime','LIVESHARE_TERMINATE','_startFollowing','1340JFokgb','div','DisposableCollection','defs','7561788QISCdE','sheet','useEffect','tryStartPresenting','_configService','delete','LiveShareStatus','pluginName','substring','iterator','exports','current','displayName','dispose$','Fragment','sessionStatus$'];_0x10d9=function(){return _0x43b98a;};return _0x10d9();}function _0x2c0c(_0x2ce9b9,_0x548b59){_0x2ce9b9=_0x2ce9b9-0x76;const _0x10d9f8=_0x10d9();let _0x2c0cb8=_0x10d9f8[_0x2ce9b9];return _0x2c0cb8;}(function(_0x5da03d,_0x47ec24){const _0x354a19=_0x2c0c,_0x33bffc=_0x5da03d();while(!![]){try{const _0x343bad=-parseInt(_0x354a19(0xfb))/0x1*(-parseInt(_0x354a19(0x14f))/0x2)+-parseInt(_0x354a19(0xf0))/0x3+parseInt(_0x354a19(0xc0))/0x4*(parseInt(_0x354a19(0x13a))/0x5)+parseInt(_0x354a19(0x7d))/0x6*(parseInt(_0x354a19(0xf4))/0x7)+parseInt(_0x354a19(0x141))/0x8*(-parseInt(_0x354a19(0x12d))/0x9)+parseInt(_0x354a19(0x97))/0xa*(parseInt(_0x354a19(0x138))/0xb)+-parseInt(_0x354a19(0xfd))/0xc*(-parseInt(_0x354a19(0xc4))/0xd);if(_0x343bad===_0x47ec24)break;else _0x33bffc['push'](_0x33bffc['shift']());}catch(_0x184fbf){_0x33bffc['push'](_0x33bffc['shift']());}}}(_0x10d9,0xdc35a),function(_0x4c9447,_0x6fbc39){const _0x297b64=_0x2c0c;typeof exports==_0x297b64(0x103)&&typeof module<'u'?_0x6fbc39(exports,require(`@univerjs/core`),require(`@univerjs/ui`),require(`@univerjs/design`),require(`react`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs/sheets`),require(`rxjs`),require(`rxjs/operators`),require(`react/jsx-runtime`),require(`@univerjs/sheets-ui`)):typeof define=='function'&&define['amd']?define([_0x297b64(0xce),'@univerjs/core',_0x297b64(0x15c),_0x297b64(0xa0),'react',_0x297b64(0xae),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0x297b64(0x12a),'rxjs/operators',_0x297b64(0xff),_0x297b64(0x125)],_0x6fbc39):(_0x4c9447=typeof globalThis<'u'?globalThis:_0x4c9447||self,_0x6fbc39(_0x4c9447['UniverProLiveShare']={},_0x4c9447['UniverCore'],_0x4c9447[_0x297b64(0x96)],_0x4c9447['UniverDesign'],_0x4c9447[_0x297b64(0xb3)],_0x4c9447['UniverProCollaboration'],_0x4c9447['UniverProCollaborationClient'],_0x4c9447[_0x297b64(0x102)],_0x4c9447[_0x297b64(0x12a)],_0x4c9447[_0x297b64(0x12a)][_0x297b64(0xe1)],_0x4c9447['React'],_0x4c9447[_0x297b64(0x77)]));}(this,function(_0x2f6fda,_0x3c016e,_0x113560,_0x23d37f,_0x5a8e64,_0x4a8d26,_0x30522a,_0x34724b,_0x553695,_0x33501d,_0x51b0f1,_0x169f6f){const _0x924102=_0x2c0c;Object['defineProperty'](_0x2f6fda,Symbol['toStringTag'],{'value':_0x924102(0x145)});function _0x394b8({ref:_0xb48a4b,..._0x4dbbce}){const _0x44ed82=_0x924102;let {icon:_0x4b2b66,id:_0x4b584c,className:_0x1077c6,extend:_0x4e84ca,..._0x2981e8}=_0x4dbbce,_0x3e1839=(_0x44ed82(0x12c)+_0x4b584c+'\x20'+(_0x1077c6||''))[_0x44ed82(0x10f)](),_0x15332f=(0x0,_0x5a8e64[_0x44ed82(0x127)])('_'+_0x3ced9b());return _0x36fb21(_0x4b2b66,''+_0x4b584c,{'defIds':_0x4b2b66[_0x44ed82(0x9d)],'idSuffix':_0x15332f['current']},{'ref':_0xb48a4b,'className':_0x3e1839,..._0x2981e8},_0x4e84ca);}function _0x36fb21(_0x237d03,_0x4f57d1,_0x107e5c,_0x1b4cb5,_0x54750d){const _0x5e4477=_0x924102;return(0x0,_0x5a8e64[_0x5e4477(0x9a)])(_0x237d03[_0x5e4477(0x78)],{'key':_0x4f57d1,..._0x17acfa(_0x237d03,_0x107e5c,_0x54750d),..._0x1b4cb5},(_0x139ba4(_0x237d03,_0x107e5c)[_0x5e4477(0x157)]||[])[_0x5e4477(0x94)]((_0x21f501,_0x1d8d77)=>_0x36fb21(_0x21f501,_0x4f57d1+'-'+_0x237d03[_0x5e4477(0x78)]+'-'+_0x1d8d77,_0x107e5c,void 0x0,_0x54750d)));}function _0x17acfa(_0xaf745c,_0x4fae74,_0x329079){const _0x5dedce=_0x924102;let _0x3a429e={..._0xaf745c[_0x5dedce(0x13f)]};_0x329079!=null&&_0x329079['colorChannel1']&&_0x3a429e[_0x5dedce(0x9f)]==='colorChannel1'&&(_0x3a429e['fill']=_0x329079['colorChannel1']),_0xaf745c[_0x5dedce(0x78)]===_0x5dedce(0x118)&&_0x3a429e['id']&&(_0x3a429e['id']+=_0x4fae74['idSuffix']),Object[_0x5dedce(0xfe)](_0x3a429e)[_0x5dedce(0xeb)](([_0x35a096,_0x2bb1a1])=>{const _0x1853c7=_0x5dedce;_0x35a096===_0x1853c7(0x118)&&typeof _0x2bb1a1==_0x1853c7(0x155)&&(_0x3a429e[_0x35a096]=_0x2bb1a1[_0x1853c7(0xb7)](/url\(#(.*)\)/,_0x1853c7(0x100)+_0x4fae74[_0x1853c7(0x136)]+')'));});let {defIds:_0xa514c9}=_0x4fae74;return!_0xa514c9||_0xa514c9['length']===0x0?_0x3a429e:(_0xaf745c[_0x5dedce(0x78)]===_0x5dedce(0x143)&&_0x3a429e[_0x5dedce(0x10d)]&&(_0x3a429e['xlink:href']+=_0x4fae74[_0x5dedce(0x136)]),Object[_0x5dedce(0xfe)](_0x3a429e)[_0x5dedce(0xeb)](([_0x409c9c,_0x581041])=>{const _0x1ccbc2=_0x5dedce;typeof _0x581041==_0x1ccbc2(0x155)&&(_0x3a429e[_0x409c9c]=_0x581041[_0x1ccbc2(0xb7)](/url\(#(.*)\)/,'url(#$1'+_0x4fae74[_0x1ccbc2(0x136)]+')'));}),_0x3a429e);}function _0x139ba4(_0x4119d5,_0x1e0758){const _0x14f14d=_0x924102;var _0x44dbd1;let {defIds:_0x4d7f1b}=_0x1e0758;return!_0x4d7f1b||_0x4d7f1b[_0x14f14d(0xd5)]===0x0?_0x4119d5:_0x4119d5[_0x14f14d(0x78)]===_0x14f14d(0xc3)&&(_0x44dbd1=_0x4119d5[_0x14f14d(0x157)])!=null&&_0x44dbd1[_0x14f14d(0xd5)]?{..._0x4119d5,'children':_0x4119d5[_0x14f14d(0x157)][_0x14f14d(0x94)](_0x361a50=>typeof _0x361a50['attrs']['id']=='string'&&_0x4d7f1b&&_0x4d7f1b[_0x14f14d(0x132)](_0x361a50[_0x14f14d(0x13f)]['id'])?{..._0x361a50,'attrs':{..._0x361a50['attrs'],'id':_0x361a50[_0x14f14d(0x13f)]['id']+_0x1e0758[_0x14f14d(0x136)]}}:_0x361a50)}:_0x4119d5;}function _0x3ced9b(){const _0x5830fe=_0x924102;return Math['random']()[_0x5830fe(0xf8)](0x24)[_0x5830fe(0xcc)](0x2,0x8);}_0x394b8[_0x924102(0xd0)]=_0x924102(0x98);let _0x268c37={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x924102(0x86),'viewBox':_0x924102(0x7f),'width':_0x924102(0x154),'height':_0x924102(0x154)},'children':[{'tag':_0x924102(0x14c),'attrs':{'fill':_0x924102(0x105),'d':_0x924102(0x8a)}},{'tag':_0x924102(0x14c),'attrs':{'fill':_0x924102(0x105),'d':_0x924102(0x15d),'fillRule':_0x924102(0xe0),'clipRule':_0x924102(0xe0)}}]},_0x2761b1=(0x0,_0x5a8e64[_0x924102(0xf9)])(function(_0x9c6fad,_0x4ff907){const _0x26d6f7=_0x924102;return(0x0,_0x5a8e64[_0x26d6f7(0x9a)])(_0x394b8,Object[_0x26d6f7(0x90)]({},_0x9c6fad,{'id':_0x26d6f7(0x115),'ref':_0x4ff907,'icon':_0x268c37}));});_0x2761b1[_0x924102(0xd0)]=_0x924102(0x150);function _0x9cf620(_0x29db50){'@babel/helpers - typeof';const _0x1c742a=_0x924102;return _0x9cf620=typeof Symbol=='function'&&typeof Symbol[_0x1c742a(0xcd)]==_0x1c742a(0x159)?function(_0x5a82a){return typeof _0x5a82a;}:function(_0x50778a){const _0x5c0a1d=_0x1c742a;return _0x50778a&&typeof Symbol=='function'&&_0x50778a[_0x5c0a1d(0x76)]===Symbol&&_0x50778a!==Symbol[_0x5c0a1d(0xf5)]?'symbol':typeof _0x50778a;},_0x9cf620(_0x29db50);}function _0x23bf01(_0xace39,_0x576619){const _0x290e4a=_0x924102;if(_0x9cf620(_0xace39)!=_0x290e4a(0x103)||!_0xace39)return _0xace39;var _0x587e69=_0xace39[Symbol[_0x290e4a(0x121)]];if(_0x587e69!==void 0x0){var _0x59b269=_0x587e69[_0x290e4a(0x10e)](_0xace39,_0x576619||_0x290e4a(0x13c));if(_0x9cf620(_0x59b269)!=_0x290e4a(0x103))return _0x59b269;throw TypeError(_0x290e4a(0xb9));}return(_0x576619===_0x290e4a(0x155)?String:Number)(_0xace39);}function _0x1652cb(_0x55e944){const _0x126d03=_0x924102;var _0x564450=_0x23bf01(_0x55e944,_0x126d03(0x155));return _0x9cf620(_0x564450)==_0x126d03(0x159)?_0x564450:_0x564450+'';}function _0x31e8bf(_0x15f795,_0x1f5a29,_0x51cc8e){const _0x2e6156=_0x924102;return(_0x1f5a29=_0x1652cb(_0x1f5a29))in _0x15f795?Object[_0x2e6156(0x12e)](_0x15f795,_0x1f5a29,{'value':_0x51cc8e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15f795[_0x1f5a29]=_0x51cc8e,_0x15f795;}var _0x3075f=class extends _0x3c016e[_0x924102(0xec)]{constructor(..._0x2694e9){const _0x551776=_0x924102;super(..._0x2694e9),_0x31e8bf(this,_0x551776(0x128),new Set()),_0x31e8bf(this,_0x551776(0xbb),new Set());}[_0x924102(0x8b)](_0x1eaf3e){const _0x59d3b0=_0x924102;return this[_0x59d3b0(0x128)][_0x59d3b0(0x11e)](_0x1eaf3e),(0x0,_0x3c016e[_0x59d3b0(0x126)])(()=>this[_0x59d3b0(0x128)][_0x59d3b0(0xc9)](_0x1eaf3e));}[_0x924102(0xd6)](_0x2d1423){const _0x1924ed=_0x924102;return this[_0x1924ed(0xbb)][_0x1924ed(0x11e)](_0x2d1423),(0x0,_0x3c016e[_0x1924ed(0x126)])(()=>this[_0x1924ed(0xbb)][_0x1924ed(0xc9)](_0x2d1423));}[_0x924102(0x80)](_0x22bc7e){const _0x40c243=_0x924102;return this[_0x40c243(0x128)][_0x40c243(0x8e)](_0x22bc7e);}[_0x924102(0xf2)](_0x4fa45e){const _0xab5dfa=_0x924102;return Array['from'](this[_0xab5dfa(0xbb)])['map'](_0x355627=>_0x355627(_0x4fa45e));}};function _0x25d98d(_0x45c098,_0x9baaad){return function(_0x1d791c,_0x51b694){_0x9baaad(_0x1d791c,_0x51b694,_0x45c098);};}function _0x3eb2da(_0x18e01f,_0xfd139e,_0x10b092,_0x548024){const _0x30df27=_0x924102;var _0x34ce20=arguments[_0x30df27(0xd5)],_0x486de6=_0x34ce20<0x3?_0xfd139e:_0x548024===null?_0x548024=Object['getOwnPropertyDescriptor'](_0xfd139e,_0x10b092):_0x548024,_0xb93fad;if(typeof Reflect==_0x30df27(0x103)&&typeof Reflect[_0x30df27(0x119)]==_0x30df27(0xe5))_0x486de6=Reflect[_0x30df27(0x119)](_0x18e01f,_0xfd139e,_0x10b092,_0x548024);else{for(var _0x4f934b=_0x18e01f[_0x30df27(0xd5)]-0x1;_0x4f934b>=0x0;_0x4f934b--)(_0xb93fad=_0x18e01f[_0x4f934b])&&(_0x486de6=(_0x34ce20<0x3?_0xb93fad(_0x486de6):_0x34ce20>0x3?_0xb93fad(_0xfd139e,_0x10b092,_0x486de6):_0xb93fad(_0xfd139e,_0x10b092))||_0x486de6);}return _0x34ce20>0x3&&_0x486de6&&Object['defineProperty'](_0xfd139e,_0x10b092,_0x486de6),_0x486de6;}let _0x4924bc=class extends _0x3c016e[_0x924102(0x151)]{constructor(_0x41ad4d,_0x241a5e,_0x74c85a){const _0x48a1ef=_0x924102;super(),this['_univerInstanceService']=_0x41ad4d,this[_0x48a1ef(0x8f)]=_0x241a5e,this['_collabSessionService']=_0x74c85a,_0x31e8bf(this,_0x48a1ef(0x85),new Map()),this['_init']();}async[_0x924102(0x9e)](_0x3eccfc){const _0x3565df=_0x924102;return this[_0x3565df(0x85)]['has'](_0x3eccfc)||await this[_0x3565df(0x12b)](_0x3eccfc),this[_0x3565df(0x85)][_0x3565df(0xf3)](_0x3eccfc);}[_0x924102(0x14e)](_0x94e78c){const _0x495d0a=_0x924102;var _0x5a1153;return(_0x5a1153=this['_entities'][_0x495d0a(0xf3)](_0x94e78c))==null?null:_0x5a1153;}[_0x924102(0x11d)](){const _0x440794=_0x924102;this['_univerInstanceService'][_0x440794(0xe8)](_0x3c016e[_0x440794(0x7a)][_0x440794(0x135)])[_0x440794(0x152)]((0x0,_0x33501d[_0x440794(0xa8)])(this['dispose$']))[_0x440794(0x14a)](async _0x4d1f96=>{const _0x3dafa9=_0x440794;let _0x596e19=_0x4d1f96[_0x3dafa9(0x11f)]['getUnitId']();this[_0x3dafa9(0x85)][_0x3dafa9(0x8e)](_0x596e19)||this[_0x3dafa9(0x12b)](_0x596e19);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3c016e[_0x440794(0x7a)][_0x440794(0x135)])[_0x440794(0x152)]((0x0,_0x33501d['takeUntil'])(this[_0x440794(0xd1)]))[_0x440794(0x14a)](_0x4d74ad=>{const _0x57d4cb=_0x440794;let _0x13e517=_0x4d74ad[_0x57d4cb(0x146)](),_0x33e58b=this[_0x57d4cb(0x85)][_0x57d4cb(0xf3)](_0x13e517);_0x33e58b==null||_0x33e58b['dispose']();});}async['_startLiveShareCoordinator'](_0x5ef7b7){const _0x46a621=_0x924102;let _0x531b04=await this[_0x46a621(0xa5)][_0x46a621(0x89)](_0x5ef7b7),_0x4a09f9=this['_injector']['createInstance'](_0x5a421d,_0x5ef7b7,_0x531b04);return _0x4a09f9[_0x46a621(0xed)](),this['_entities'][_0x46a621(0x11c)](_0x5ef7b7,_0x4a09f9),_0x4a09f9;}};_0x4924bc=_0x3eb2da([_0x25d98d(0x0,_0x3c016e[_0x924102(0xf7)]),_0x25d98d(0x1,(0x0,_0x3c016e['Inject'])(_0x3c016e[_0x924102(0x7b)])),_0x25d98d(0x2,(0x0,_0x3c016e[_0x924102(0xb1)])(_0x30522a[_0x924102(0xb0)]))],_0x4924bc);let _0x375343=function(_0x5e0336){const _0x2672c8=_0x924102;return _0x5e0336['OFFLINE']=_0x2672c8(0x120),_0x5e0336['IDLE']=_0x2672c8(0xa9),_0x5e0336[_0x2672c8(0xaf)]=_0x2672c8(0x79),_0x5e0336['NOT_FOLLOWING']=_0x2672c8(0x112),_0x5e0336[_0x2672c8(0x134)]=_0x2672c8(0x117),_0x5e0336;}({}),_0x5a421d=class extends _0x3c016e[_0x924102(0x151)]{get[_0x924102(0x83)](){const _0x5da228=_0x924102;return this[_0x5da228(0x107)]['getValue']();}constructor(_0x599fe1,_0x3c8156,_0xad8895,_0x19d0bb,_0x402fe1){const _0x14a805=_0x924102;super(),this['_unitID']=_0x599fe1,this[_0x14a805(0xfa)]=_0x3c8156,this[_0x14a805(0xc8)]=_0xad8895,this['_liveShareService']=_0x19d0bb,this['_commandService']=_0x402fe1,_0x31e8bf(this,_0x14a805(0x107),new _0x553695[(_0x14a805(0xe9))]('idle')),_0x31e8bf(this,'status$',this[_0x14a805(0x107)][_0x14a805(0x9c)]()),_0x31e8bf(this,_0x14a805(0x11d),!0x1),_0x31e8bf(this,_0x14a805(0x99),null),_0x31e8bf(this,_0x14a805(0xde),null);}[_0x924102(0x116)](){const _0xfbcb13=_0x924102;var _0x25799a;(_0x25799a=this['_commandDisposable'])==null||_0x25799a[_0xfbcb13(0x116)](),this[_0xfbcb13(0x107)][_0xfbcb13(0x114)](_0xfbcb13(0xa9)),this[_0xfbcb13(0x107)]['complete']();}[_0x924102(0x137)](){const _0x5950e5=_0x924102;return this[_0x5950e5(0x83)];}[_0x924102(0xed)](){const _0x59931c=_0x924102;this[_0x59931c(0x11d)]||(this[_0x59931c(0x11d)]=!0x0,this['_collabSession'][_0x59931c(0xd3)][_0x59931c(0x152)]((0x0,_0x33501d[_0x59931c(0xa8)])(this[_0x59931c(0xd1)]))[_0x59931c(0x14a)](_0x13224b=>{const _0x230904=_0x59931c;switch(_0x13224b){case _0x30522a['SessionStatus']['OFFLINE']:this[_0x230904(0x8d)]();break;case _0x30522a[_0x230904(0xd4)]['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x59931c(0xfa)][_0x59931c(0x82)][_0x59931c(0x152)]((0x0,_0x33501d[_0x59931c(0xa8)])(this[_0x59931c(0xd1)]))[_0x59931c(0x14a)](_0x581c3a=>{const _0x3b1d60=_0x59931c;let {eventID:_0x3eee49}=_0x581c3a;switch(_0x3eee49){case _0x4a8d26[_0x3b1d60(0xee)]['LIVESHARE_NEW_HOST']:this[_0x3b1d60(0x158)](_0x581c3a);break;case _0x4a8d26[_0x3b1d60(0xee)][_0x3b1d60(0x104)]:this[_0x3b1d60(0xd7)](_0x581c3a);break;case _0x4a8d26['CollaborationEvent'][_0x3b1d60(0xbe)]:this[_0x3b1d60(0x88)]();break;case _0x4a8d26[_0x3b1d60(0xee)][_0x3b1d60(0x91)]:this[_0x3b1d60(0xda)](_0x581c3a);break;default:}}));}[_0x924102(0xc7)](){const _0x4236b2=_0x924102;this[_0x4236b2(0xfa)][_0x4236b2(0x13b)]({'eventID':_0x4a8d26['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4236b2(0xfc)],'userID':this[_0x4236b2(0xfa)][_0x4236b2(0x131)]()}},this[_0x4236b2(0xfc)]);}[_0x924102(0x142)](){const _0xb56225=_0x924102;this[_0xb56225(0x83)]===_0xb56225(0x117)&&(this[_0xb56225(0x107)][_0xb56225(0x114)](_0xb56225(0xa9)),this['_collabSession'][_0xb56225(0x13b)]({'eventID':_0x4a8d26['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0xb56225(0xfc)]));}['startFollowing'](){const _0x5190cc=_0x924102;this['_status']==='not-following'&&(this['_status$'][_0x5190cc(0x114)](_0x5190cc(0x79)),this['_startFollowing']());}['stopFollowing'](){const _0x260c48=_0x924102;this[_0x260c48(0x83)]==='following'&&this[_0x260c48(0x11a)]();}[_0x924102(0x158)](_0x373297){const _0x560ba4=_0x924102;let {presenter:_0x3ae13b}=_0x373297[_0x560ba4(0xdc)],_0x488fc0=this[_0x560ba4(0xfa)][_0x560ba4(0x131)]();this['_presenter']=_0x3ae13b,_0x3ae13b===_0x488fc0?(this[_0x560ba4(0x11a)](),this[_0x560ba4(0x15e)]()):this['_status']!==_0x560ba4(0x112)&&(this[_0x560ba4(0xa7)](),this[_0x560ba4(0xbf)]());}[_0x924102(0xe3)](){const _0x5ff033=_0x924102;let _0x5bc304={'eventID':_0x4a8d26[_0x5ff033(0xee)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5ff033(0xfa)][_0x5ff033(0x13b)](_0x5bc304,this[_0x5ff033(0xfc)]);}[_0x924102(0x88)](){const _0x5440d7=_0x924102;this[_0x5440d7(0xde)]=null,this['_status']!==_0x5440d7(0x117)&&this[_0x5440d7(0x106)]();}[_0x924102(0xda)](_0x43e790){const _0x42577e=_0x924102;if(this[_0x42577e(0x83)]===_0x42577e(0x79)&&this['_presenter']===_0x43e790[_0x42577e(0xdc)]['memberID']){let _0x550068=(0x0,_0x4a8d26[_0x42577e(0x81)])(_0x43e790[_0x42577e(0xdc)])['mutations']['reverse']()['find'](_0x18dcfd=>_0x18dcfd['id']===_0x34724b[_0x42577e(0x110)]['id']);if(_0x550068){let _0x497fc1=_0x550068[_0x42577e(0x122)]['unitId'],_0x213528=_0x550068[_0x42577e(0x122)][_0x42577e(0xc5)]['id'];setTimeout(()=>{const _0x42ccce=_0x42577e;this[_0x42ccce(0xd9)]['executeCommand'](_0x34724b[_0x42ccce(0x14b)]['id'],{'unitId':_0x497fc1,'subUnitId':_0x213528},{'fromCollab':!0x0});});}}}[_0x924102(0x15e)](){const _0x4e2b43=_0x924102;var _0x56f8b3;(_0x56f8b3=this[_0x4e2b43(0x99)])==null||_0x56f8b3[_0x4e2b43(0x116)](),this[_0x4e2b43(0x107)]['next'](_0x4e2b43(0x117));let _0x19a312=new Map(),_0x24a182=this[_0x4e2b43(0x99)]=new _0x3c016e[(_0x4e2b43(0xc2))]();_0x24a182['add']((0x0,_0x3c016e[_0x4e2b43(0x126)])(()=>{const _0x3cf00c=_0x4e2b43;_0x19a312[_0x3cf00c(0xeb)](({subject:_0x2cdbca,subscription:_0xca6308})=>{_0xca6308['unsubscribe'](),_0x2cdbca['complete']();}),_0x19a312[_0x3cf00c(0x84)]();})),_0x24a182[_0x4e2b43(0x11e)](this[_0x4e2b43(0xd9)][_0x4e2b43(0x139)](_0x53186d=>{const _0x3ce9a7=_0x4e2b43;if(_0x53186d[_0x3ce9a7(0xac)]!==_0x3c016e[_0x3ce9a7(0x87)][_0x3ce9a7(0xa3)]||!this[_0x3ce9a7(0xf1)]['shouldShareOperation'](_0x53186d['id']))return;let {id:_0x39a2fc}=_0x53186d,_0x29a90c;if(_0x19a312[_0x3ce9a7(0x8e)](_0x39a2fc))_0x29a90c=_0x19a312['get'](_0x39a2fc)['subject'];else{var _0x255426;_0x29a90c=new _0x553695['Subject']();let _0x1bf701=_0x29a90c[_0x3ce9a7(0x152)]((0x0,_0x33501d[_0x3ce9a7(0xbd)])((_0x255426=this[_0x3ce9a7(0xc8)]['getConfig']('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x255426,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ce9a7(0x14a)](_0x47a845=>{const _0x9bc62d=_0x3ce9a7;this[_0x9bc62d(0xfa)]['send']({'eventID':_0x4a8d26[_0x9bc62d(0xee)][_0x9bc62d(0x104)],'data':{'unitID':this['_unitID'],'operations':{[_0x47a845['id']]:{'id':_0x47a845['id'],'params':JSON[_0x9bc62d(0xe6)](_0x47a845[_0x9bc62d(0x122)])}}}},this[_0x9bc62d(0xfc)]);});_0x19a312[_0x3ce9a7(0x11c)](_0x39a2fc,{'subject':_0x29a90c,'subscription':_0x1bf701});}_0x29a90c['next'](_0x53186d);})),this[_0x4e2b43(0xf1)]['getInitialStates'](this['_unitID'])['forEach'](_0x1d29fe=>this[_0x4e2b43(0xfa)][_0x4e2b43(0x13b)]({'eventID':_0x4a8d26['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4e2b43(0xfc)],'operations':{[_0x1d29fe['id']]:{'id':_0x1d29fe['id'],'params':JSON['stringify'](_0x1d29fe[_0x4e2b43(0x122)])}}}},this[_0x4e2b43(0xfc)]));}['_stopPresenting'](){const _0x30d520=_0x924102;var _0x9f4538;this[_0x30d520(0x107)][_0x30d520(0x114)]('idle'),(_0x9f4538=this['_commandDisposable'])==null||_0x9f4538[_0x30d520(0x116)](),this[_0x30d520(0x99)]=null;}[_0x924102(0xbf)](){const _0x26a5d2=_0x924102;var _0x27d13b;(_0x27d13b=this['_commandDisposable'])==null||_0x27d13b[_0x26a5d2(0x116)](),this[_0x26a5d2(0x107)]['next'](_0x26a5d2(0x79));}[_0x924102(0x106)](){const _0x1b433f=_0x924102;var _0x4bcf84;this[_0x1b433f(0x107)][_0x1b433f(0x114)]('idle'),(_0x4bcf84=this[_0x1b433f(0x99)])==null||_0x4bcf84[_0x1b433f(0x116)](),this[_0x1b433f(0x99)]=null;}[_0x924102(0x11a)](){const _0x1807c0=_0x924102;var _0x45bfa3;this[_0x1807c0(0x107)]['next'](_0x1807c0(0x112)),(_0x45bfa3=this[_0x1807c0(0x99)])==null||_0x45bfa3[_0x1807c0(0x116)]();}[_0x924102(0xd7)](_0x46d297){const _0x5eb990=_0x924102;if(['presenting','not-following',_0x5eb990(0x120)][_0x5eb990(0x132)](this['_status'])||!_0x46d297['data'][_0x5eb990(0xab)]||_0x46d297[_0x5eb990(0xdc)][_0x5eb990(0xab)]===this[_0x5eb990(0xfa)]['getMemberID']())return;this[_0x5eb990(0x83)]===_0x5eb990(0xa9)&&this[_0x5eb990(0xbf)]();let _0x66467=_0x46d297[_0x5eb990(0xdc)]['operations'];Object['values'](_0x66467)[_0x5eb990(0xeb)](_0x41fb2c=>{const _0x3e9f2a=_0x5eb990;this[_0x3e9f2a(0xd9)][_0x3e9f2a(0x109)](_0x41fb2c['id'],_0x41fb2c[_0x3e9f2a(0x122)]?JSON[_0x3e9f2a(0x124)](_0x41fb2c['params']):null,{'fromCollab':!0x0});});}[_0x924102(0x8d)](){const _0x1c41ba=_0x924102;var _0x3207c4;this[_0x1c41ba(0x107)][_0x1c41ba(0x114)](_0x1c41ba(0x120)),(_0x3207c4=this[_0x1c41ba(0x99)])==null||_0x3207c4['dispose']();}[_0x924102(0x113)](){const _0x5030e6=_0x924102;this[_0x5030e6(0x107)][_0x5030e6(0x114)](_0x5030e6(0xa9)),this[_0x5030e6(0xe3)]();}};_0x5a421d=_0x3eb2da([_0x25d98d(0x2,_0x3c016e[_0x924102(0x140)]),_0x25d98d(0x3,(0x0,_0x3c016e['Inject'])(_0x3075f)),_0x25d98d(0x4,_0x3c016e[_0x924102(0xdd)])],_0x5a421d);function _0x4a1d7b(){const _0x5d7654=_0x924102;let _0x2f4018=(0x0,_0x113560[_0x5d7654(0xb4)])(_0x4924bc),_0x3ccbb9=(0x0,_0x113560[_0x5d7654(0xb4)])(_0x3c016e[_0x5d7654(0xf7)]),_0x24b40b=(0x0,_0x113560[_0x5d7654(0xba)])(()=>_0x3ccbb9[_0x5d7654(0x9b)](_0x3c016e['UniverInstanceType'][_0x5d7654(0x135)]),void 0x0,!0x1,[]),[_0x258c4e,_0x1edfdc]=(0x0,_0x5a8e64[_0x5d7654(0xef)])(null),[_0x256938,_0xc09e51]=(0x0,_0x5a8e64['useState'])(_0x5d7654(0xa9)),_0x124953=(0x0,_0x5a8e64['useRef'])(null);return(0x0,_0x5a8e64[_0x5d7654(0xc6)])(()=>(_0x24b40b&&_0x2f4018[_0x5d7654(0x9e)](_0x24b40b['getUnitId']())[_0x5d7654(0x15f)](_0x10d93d=>{const _0x3928c0=_0x5d7654;_0x1edfdc(_0x10d93d),_0x124953[_0x3928c0(0xcf)]=_0x10d93d['status$']['subscribe'](_0x8d9d40=>{_0xc09e51(_0x8d9d40);});}),()=>{const _0x8a02ca=_0x5d7654;var _0x598740;(_0x598740=_0x124953[_0x8a02ca(0xcf)])==null||_0x598740[_0x8a02ca(0x95)](),_0x124953['current']=null;}),[_0x24b40b,_0x2f4018]),_0x258c4e?(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x23d37f[_0x5d7654(0x10c)],{'align':_0x5d7654(0x93),'disabled':_0x256938===_0x5d7654(0x120),'className':_0x5d7654(0x108),'overlay':(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x4fb0b2,{'status':_0x256938,'coordinator':_0x258c4e}),'children':(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x5d7654(0xb6),{'className':(0x0,_0x23d37f['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x256938===_0x5d7654(0x120),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x256938!==_0x5d7654(0x120)}),'type':_0x5d7654(0xb6),'children':(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x2761b1,{'className':'univer-size-4'})})}):null;}function _0x4fb0b2(_0x119d1b){const _0xe274ee=_0x924102;let {status:_0x7b69de,coordinator:_0x3091e7}=_0x119d1b;switch(_0x7b69de){case _0xe274ee(0xa9):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x48ae08,{'coordinator':_0x3091e7});case _0xe274ee(0x79):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x3a3d52,{'coordinator':_0x3091e7});case _0xe274ee(0x112):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x2ac329,{'coordinator':_0x3091e7});case'offline':return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x5038cb,{});case _0xe274ee(0x117):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x31107b,{'coordinator':_0x3091e7});default:return null;}}function _0x48ae08(_0x50591){const _0x4b5379=_0x924102;let {coordinator:_0x3fa9f9}=_0x50591;return(0x0,_0x51b0f1[_0x4b5379(0x101)])(_0x51b0f1[_0x4b5379(0xd2)],{'children':[(0x0,_0x51b0f1[_0x4b5379(0xa1)])('div',{'className':_0x4b5379(0x133),'children':_0x4b5379(0xe2)}),(0x0,_0x51b0f1[_0x4b5379(0xa1)])(_0x23d37f[_0x4b5379(0xe7)],{'onClick':()=>_0x3fa9f9['tryStartPresenting'](),'children':_0x4b5379(0xa2)})]});}function _0x3a3d52(_0x1834d0){const _0x32f3d4=_0x924102;let {coordinator:_0x3e5323}=_0x1834d0;return(0x0,_0x51b0f1['jsxs'])(_0x51b0f1[_0x32f3d4(0xd2)],{'children':[(0x0,_0x51b0f1[_0x32f3d4(0xa1)])(_0x32f3d4(0xc1),{'className':_0x32f3d4(0x133),'children':_0x32f3d4(0x130)}),(0x0,_0x51b0f1[_0x32f3d4(0xa1)])(_0x23d37f['Button'],{'onClick':()=>_0x3e5323[_0x32f3d4(0x123)](),'children':_0x32f3d4(0x13e)})]});}function _0x2ac329(_0x8c4204){const _0x355eeb=_0x924102;let {coordinator:_0x1664be}=_0x8c4204;return(0x0,_0x51b0f1[_0x355eeb(0x101)])(_0x51b0f1[_0x355eeb(0xd2)],{'children':[(0x0,_0x51b0f1[_0x355eeb(0xa1)])(_0x355eeb(0xc1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x355eeb(0x7c)}),(0x0,_0x51b0f1['jsx'])(_0x23d37f[_0x355eeb(0xe7)],{'variant':'text','onClick':()=>_0x1664be[_0x355eeb(0xad)](),'children':_0x355eeb(0x147)})]});}function _0x31107b(_0x2fb9dd){const _0x3b748d=_0x924102;let {coordinator:_0x1b73b1}=_0x2fb9dd;return(0x0,_0x51b0f1[_0x3b748d(0x101)])(_0x51b0f1[_0x3b748d(0xd2)],{'children':[(0x0,_0x51b0f1[_0x3b748d(0xa1)])('div',{'className':_0x3b748d(0x133),'children':_0x3b748d(0x111)}),(0x0,_0x51b0f1[_0x3b748d(0xa1)])(_0x23d37f[_0x3b748d(0xe7)],{'variant':'default','onClick':()=>_0x1b73b1[_0x3b748d(0x142)](),'children':_0x3b748d(0xbc)})]});}function _0x5038cb(){const _0x20b225=_0x924102;return(0x0,_0x51b0f1[_0x20b225(0xa1)])(_0x51b0f1[_0x20b225(0xd2)],{'children':'You\x27are\x20offline.'});}let _0x10c363=class extends _0x3c016e['Disposable']{constructor(_0x5d3bb9,_0x5e1829){const _0x9fa777=_0x924102;super(),this[_0x9fa777(0x8f)]=_0x5d3bb9,this[_0x9fa777(0x153)]=_0x5e1829,this[_0x9fa777(0xdf)]();}[_0x924102(0xdf)](){const _0xac5113=_0x924102;this[_0xac5113(0x7e)](this[_0xac5113(0x153)][_0xac5113(0x15a)](_0x113560['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,_0x113560[_0xac5113(0x15b)])(_0x4a1d7b,this[_0xac5113(0x8f)])));}};_0x10c363=_0x3eb2da([_0x25d98d(0x0,(0x0,_0x3c016e[_0x924102(0xb1)])(_0x3c016e[_0x924102(0x7b)])),_0x25d98d(0x1,_0x113560['IUIPartsService'])],_0x10c363);var _0x43d756='@univerjs-pro/live-share',_0x4a54ab=_0x924102(0xdb);let _0x4139ca=_0x924102(0xd8);Symbol(_0x4139ca);let _0x480e7a={},_0x5db4e9=class extends _0x3c016e['Disposable']{constructor(_0x3710c3){const _0x31ef28=_0x924102;super(),this[_0x31ef28(0xf1)]=_0x3710c3,this[_0x31ef28(0x11d)]();}[_0x924102(0x11d)](){const _0xb06a5a=_0x924102;[_0x169f6f[_0xb06a5a(0x14d)]['id'],_0x169f6f[_0xb06a5a(0xe4)]['id'],_0x34724b[_0xb06a5a(0x14b)]['id']][_0xb06a5a(0xeb)](_0x150cbc=>{const _0xb085e1=_0xb06a5a;this[_0xb085e1(0x7e)](this[_0xb085e1(0xf1)][_0xb085e1(0x8b)](_0x150cbc));});}};_0x5db4e9=_0x3eb2da([_0x25d98d(0x0,(0x0,_0x3c016e['Inject'])(_0x3075f))],_0x5db4e9);let _0x52157e=class extends _0x3c016e[_0x924102(0xa4)]{constructor(_0x1f6f7=_0x480e7a,_0x2c18ec,_0x2f9a6a){const _0x1fb7e5=_0x924102;super(),this['_config']=_0x1f6f7,this[_0x1fb7e5(0x8f)]=_0x2c18ec,this['_configService']=_0x2f9a6a;let {..._0x240167}=(0x0,_0x3c016e[_0x1fb7e5(0xf6)])({},_0x480e7a,this[_0x1fb7e5(0xb5)]);this[_0x1fb7e5(0xc8)][_0x1fb7e5(0xb8)](_0x4139ca,_0x240167);}[_0x924102(0xa6)](){const _0x2653aa=_0x924102;(0x0,_0x3c016e[_0x2653aa(0x144)])(this['_injector'],(0x0,_0x3c016e['mergeOverrideWithDependencies'])([[_0x3075f],[_0x4924bc],[_0x5db4e9],[_0x10c363]],this[_0x2653aa(0xb5)][_0x2653aa(0x13d)])),(0x0,_0x3c016e[_0x2653aa(0x8c)])(this[_0x2653aa(0x8f)],[[_0x5db4e9]]);}[_0x924102(0x148)](){(0x0,_0x3c016e['touchDependencies'])(this['_injector'],[[_0x10c363]]);}};_0x31e8bf(_0x52157e,'type',_0x3c016e[_0x924102(0x7a)][_0x924102(0x10a)]),_0x31e8bf(_0x52157e,_0x924102(0xcb),_0x924102(0x149)),_0x31e8bf(_0x52157e,_0x924102(0x10b),_0x43d756),_0x31e8bf(_0x52157e,_0x924102(0xb2),_0x4a54ab),_0x52157e=_0x3eb2da([(0x0,_0x3c016e['DependentOn'])(_0x30522a[_0x924102(0xaa)]),_0x25d98d(0x1,(0x0,_0x3c016e[_0x924102(0xb1)])(_0x3c016e[_0x924102(0x7b)])),_0x25d98d(0x2,_0x3c016e[_0x924102(0x140)])],_0x52157e),Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0x11b),{'enumerable':!0x0,'get':function(){return _0x10c363;}}),_0x2f6fda[_0x924102(0x12f)]=_0x4a1d7b,Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0x156),{'enumerable':!0x0,'get':function(){return _0x4924bc;}}),Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0xea),{'enumerable':!0x0,'get':function(){return _0x5a421d;}}),_0x2f6fda[_0x924102(0x92)]=_0x3075f,_0x2f6fda[_0x924102(0xca)]=_0x375343,Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0x129),{'enumerable':!0x0,'get':function(){return _0x52157e;}});}));
1
+ function _0x3ee8(){const _0xbdb4ac=['assign','url(#$1','LIVESHARE_NEW_HOST','LiveShareIcon','LIVESHARE_TERMINATE','dispose','UniverProCollaboration','send','UNIVER_LIVE_SHARE_PLUGIN','currentColor','You\x27re\x20presenting\x20the\x20document','LiveShareStatus','rxjs/operators','HEADER_MENU','offline','LiveShareController','from','UniverSheets','toStringTag','substring','presenter','UniverCore','svg','LiveShareService','_status$','_init','function','not-following','forEach','_handleOperation','random','attrs','throttleTime','_startLiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','clear','evenodd','createInstance','PRESENTING','You\x27are\x20offline.','LIVESHARE_OPERATION','Button','getStatus','registerSharedOperation','live-share-icon','event$','12105904QNbvTn','2755125EpohhT','_handleTerminate','iterator','defineProperty','_injector','values','DesktopLiveShareController','CollaborationEvent','0\x200\x2017\x2017','getInitialStates','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','_uiPartsService','UniverLiveSharePlugin','_stopPresenting','entries','useEffect','Dropdown','_beIdle','takeUntil','pluginName','@univerjs/core','7674265feQGyN','1em','operations','@univerjs/sheets-ui','InsertSheetMutation','tag','jsxs','40jnZmOg','has','IUniverInstanceService','_collabSession','BehaviorSubject','default','useDependency','React','_handleNewHost','Subject','_sharedOperations','FOLLOWING','onRendered','Inject','presenting','0.25.0','ICommandService','_unitID','NEW_CHANGESETS','@univerjs-pro/live-share','getTypeOfUnitAdded$','SetZoomRatioOperation','displayName','params','includes','replace','data','UNIVER_SHEET','find','Start\x20following','react/jsx-runtime','connectInjector','useRef','then','_config','CommandType','set','call','mutations','operators','You\x27re\x20not\x20following\x20the\x20presenter','version','pipe','useObservable','UniverProLiveShare','object','delete','Disposable','_reporters','unitId','jsx','_entities','_status','onStarting','LIVESHARE_REQUEST_HOST','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','path','_fetchOperations','tryStartPresenting','getCurrentTypeOfUnit$','getMemberID','useState','659166jwHIHo','LIVESHARE_FETCH_OPERATIONS','SetWorksheetActiveOperation','UniverUi','7535898CJZoxb','UNIVER_UNKNOWN','xlink:href','button','getTypeOfUnitDisposed$','onCommandExecuted','Stop\x20following','packageName','SessionStatus','getConfig','rxjs','_handleOnline','stopFollowing','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','unit','shouldShareOperation','_presenter','complete','Start','ONLINE','subscribe','defIds','registerDependencies','colorChannel1','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','1290230qhQWCm','decorate','_handleNewChangeSets','_commandDisposable','toPrimitive','@univerjs-pro/collaboration-client','exports','reverse','fill','mask','status$','length','next','_stopFollowing','UniverDesign','touchDependencies','sessionStatus$','unsubscribe','mergeOverrideWithDependencies','UniverInstanceType','startFollowing','add','following','parseProtocolChangeset','div','react','disposeWithMe','_handleOffline','getOwnPropertyDescriptor','init','BuiltInUIPart','map','_startFollowing','idle','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IConfigService','UniverProCollaborationClient','NOT_FOLLOWING','stringify','CollaborationSessionService','univerjs-icon\x20univerjs-icon-','toString','toDisposable','parse','21175rtfalu','Injector','string','end','use','OPERATION','UniverCollaborationClientPlugin','getUnitId','98ZxOTKN','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','DisposableCollection','type','_liveShareService','@univerjs/ui','_configService','_mountLiveShare','setConfig','getLiveShareCoordinator','RxDisposable','OFFLINE','current','Fragment','@univerjs-pro/collaboration','idSuffix','SetScrollOperation','4MgVbbJ','_univerInstanceService','children','Stop\x20presenting','amd','_commandService','clsx','symbol','dispose$'];_0x3ee8=function(){return _0xbdb4ac;};return _0x3ee8();}function _0x5a09(_0x5bd85f,_0x38759e){_0x5bd85f=_0x5bd85f-0xa5;const _0x3ee877=_0x3ee8();let _0x5a09ed=_0x3ee877[_0x5bd85f];return _0x5a09ed;}(function(_0x1f7a3d,_0x174bd7){const _0xdaea1f=_0x5a09,_0x121448=_0x1f7a3d();while(!![]){try{const _0x48dd5b=-parseInt(_0xdaea1f(0xbd))/0x1*(-parseInt(_0xdaea1f(0x12b))/0x2)+parseInt(_0xdaea1f(0x10e))/0x3+-parseInt(_0xdaea1f(0xd6))/0x4*(-parseInt(_0xdaea1f(0x124))/0x5)+parseInt(_0xdaea1f(0x169))/0x6*(-parseInt(_0xdaea1f(0xc5))/0x7)+-parseInt(_0xdaea1f(0x10d))/0x8+parseInt(_0xdaea1f(0x16d))/0x9+parseInt(_0xdaea1f(0x186))/0xa;if(_0x48dd5b===_0x174bd7)break;else _0x121448['push'](_0x121448['shift']());}catch(_0x3c6796){_0x121448['push'](_0x121448['shift']());}}}(_0x3ee8,0xc14e5),function(_0x53078d,_0x4a00d0){const _0x290b52=_0x5a09;typeof exports==_0x290b52(0x158)&&typeof module<'u'?_0x4a00d0(exports,require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x290b52(0xda)]?define([_0x290b52(0x18c),_0x290b52(0x123),_0x290b52(0xca),'@univerjs/design',_0x290b52(0xaa),_0x290b52(0xd3),_0x290b52(0x18b),'@univerjs/sheets',_0x290b52(0x177),_0x290b52(0xeb),_0x290b52(0x149),_0x290b52(0x127)],_0x4a00d0):(_0x53078d=typeof globalThis<'u'?globalThis:_0x53078d||self,_0x4a00d0(_0x53078d[_0x290b52(0x157)]={},_0x53078d[_0x290b52(0xf4)],_0x53078d[_0x290b52(0x16c)],_0x53078d[_0x290b52(0x194)],_0x53078d['React'],_0x53078d[_0x290b52(0xe5)],_0x53078d[_0x290b52(0xb5)],_0x53078d[_0x290b52(0xf0)],_0x53078d[_0x290b52(0x177)],_0x53078d['rxjs'][_0x290b52(0x152)],_0x53078d[_0x290b52(0x132)],_0x53078d['UniverSheetsUi']));}(this,function(_0x4a206c,_0x2e7bad,_0x51e529,_0x1fb8e8,_0x56d0c6,_0x47a740,_0x473c83,_0x10e3b7,_0x3c016f,_0x8ea80b,_0x3d6e13,_0x17de75){const _0x11a364=_0x5a09;Object[_0x11a364(0x111)](_0x4a206c,Symbol[_0x11a364(0xf1)],{'value':'Module'});function _0x36903c({ref:_0xdc673b,..._0x3991d3}){const _0x11197f=_0x11a364;let {icon:_0x45875b,id:_0x37704c,className:_0x27fccf,extend:_0x37bce4,..._0x247b9}=_0x3991d3,_0x26ae2c=(_0x11197f(0xb9)+_0x37704c+'\x20'+(_0x27fccf||''))['trim'](),_0x1c3a1f=(0x0,_0x56d0c6[_0x11197f(0x14b)])('_'+_0x36acdd());return _0x570777(_0x45875b,''+_0x37704c,{'defIds':_0x45875b[_0x11197f(0x182)],'idSuffix':_0x1c3a1f[_0x11197f(0xd1)]},{'ref':_0xdc673b,'className':_0x26ae2c,..._0x247b9},_0x37bce4);}function _0x570777(_0x4764b1,_0x4e5453,_0x1801fd,_0x3aa848,_0x437403){const _0x146a44=_0x11a364;return(0x0,_0x56d0c6['createElement'])(_0x4764b1['tag'],{'key':_0x4e5453,..._0x1c29b4(_0x4764b1,_0x1801fd,_0x437403),..._0x3aa848},(_0x7a751c(_0x4764b1,_0x1801fd)['children']||[])[_0x146a44(0xb0)]((_0x3e25fe,_0x2e762f)=>_0x570777(_0x3e25fe,_0x4e5453+'-'+_0x4764b1[_0x146a44(0x129)]+'-'+_0x2e762f,_0x1801fd,void 0x0,_0x437403)));}function _0x1c29b4(_0xcd012e,_0x369939,_0x38479a){const _0x262c20=_0x11a364;let _0x402057={..._0xcd012e['attrs']};_0x38479a!=null&&_0x38479a['colorChannel1']&&_0x402057[_0x262c20(0x18e)]==='colorChannel1'&&(_0x402057[_0x262c20(0x18e)]=_0x38479a[_0x262c20(0x184)]),_0xcd012e[_0x262c20(0x129)]==='mask'&&_0x402057['id']&&(_0x402057['id']+=_0x369939[_0x262c20(0xd4)]),Object[_0x262c20(0x11d)](_0x402057)[_0x262c20(0xfb)](([_0x2fdd96,_0x42b893])=>{const _0x46db3e=_0x262c20;_0x2fdd96===_0x46db3e(0x18f)&&typeof _0x42b893==_0x46db3e(0xbf)&&(_0x402057[_0x2fdd96]=_0x42b893[_0x46db3e(0x144)](/url\(#(.*)\)/,_0x46db3e(0xe0)+_0x369939[_0x46db3e(0xd4)]+')'));});let {defIds:_0x331020}=_0x369939;return!_0x331020||_0x331020[_0x262c20(0x191)]===0x0?_0x402057:(_0xcd012e[_0x262c20(0x129)]===_0x262c20(0xc1)&&_0x402057[_0x262c20(0x16f)]&&(_0x402057[_0x262c20(0x16f)]+=_0x369939[_0x262c20(0xd4)]),Object['entries'](_0x402057)[_0x262c20(0xfb)](([_0x49ab3a,_0x3177c8])=>{const _0x268e07=_0x262c20;typeof _0x3177c8==_0x268e07(0xbf)&&(_0x402057[_0x49ab3a]=_0x3177c8[_0x268e07(0x144)](/url\(#(.*)\)/,_0x268e07(0xe0)+_0x369939[_0x268e07(0xd4)]+')'));}),_0x402057);}function _0x7a751c(_0x3f0bb8,_0x52b1be){const _0x244326=_0x11a364;var _0x40f9ff;let {defIds:_0x265017}=_0x52b1be;return!_0x265017||_0x265017[_0x244326(0x191)]===0x0?_0x3f0bb8:_0x3f0bb8['tag']==='defs'&&(_0x40f9ff=_0x3f0bb8[_0x244326(0xd8)])!=null&&_0x40f9ff['length']?{..._0x3f0bb8,'children':_0x3f0bb8['children'][_0x244326(0xb0)](_0x2f2874=>typeof _0x2f2874[_0x244326(0xfe)]['id']==_0x244326(0xbf)&&_0x265017&&_0x265017[_0x244326(0x143)](_0x2f2874['attrs']['id'])?{..._0x2f2874,'attrs':{..._0x2f2874['attrs'],'id':_0x2f2874[_0x244326(0xfe)]['id']+_0x52b1be['idSuffix']}}:_0x2f2874)}:_0x3f0bb8;}function _0x36acdd(){const _0x4034d9=_0x11a364;return Math[_0x4034d9(0xfd)]()[_0x4034d9(0xba)](0x24)[_0x4034d9(0xf2)](0x2,0x8);}_0x36903c[_0x11a364(0x141)]='UniverIcon';let _0x1194e8={'tag':_0x11a364(0xf5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x11a364(0x116),'width':'1em','height':_0x11a364(0x125)},'children':[{'tag':'path','attrs':{'fill':_0x11a364(0xe8),'d':_0x11a364(0x162)}},{'tag':_0x11a364(0x163),'attrs':{'fill':_0x11a364(0xe8),'d':_0x11a364(0xc6),'fillRule':'evenodd','clipRule':_0x11a364(0x103)}}]},_0xe5d3f2=(0x0,_0x56d0c6['forwardRef'])(function(_0x383aaa,_0x5c5b54){const _0x181d62=_0x11a364;return(0x0,_0x56d0c6['createElement'])(_0x36903c,Object[_0x181d62(0xdf)]({},_0x383aaa,{'id':_0x181d62(0x10b),'ref':_0x5c5b54,'icon':_0x1194e8}));});_0xe5d3f2['displayName']=_0x11a364(0xe2);function _0x48899a(_0x135867){'@babel/helpers - typeof';const _0x8b9c1=_0x11a364;return _0x48899a=typeof Symbol==_0x8b9c1(0xf9)&&typeof Symbol[_0x8b9c1(0x110)]==_0x8b9c1(0xdd)?function(_0x2c9852){return typeof _0x2c9852;}:function(_0x2c8b0d){const _0x564e41=_0x8b9c1;return _0x2c8b0d&&typeof Symbol==_0x564e41(0xf9)&&_0x2c8b0d['constructor']===Symbol&&_0x2c8b0d!==Symbol['prototype']?_0x564e41(0xdd):typeof _0x2c8b0d;},_0x48899a(_0x135867);}function _0x13f7c6(_0x44d01a,_0x5c2031){const _0x181b3a=_0x11a364;if(_0x48899a(_0x44d01a)!=_0x181b3a(0x158)||!_0x44d01a)return _0x44d01a;var _0x47b3a6=_0x44d01a[Symbol[_0x181b3a(0x18a)]];if(_0x47b3a6!==void 0x0){var _0x332802=_0x47b3a6[_0x181b3a(0x150)](_0x44d01a,_0x5c2031||_0x181b3a(0x130));if(_0x48899a(_0x332802)!=_0x181b3a(0x158))return _0x332802;throw TypeError(_0x181b3a(0xb3));}return(_0x5c2031===_0x181b3a(0xbf)?String:Number)(_0x44d01a);}function _0x326d2b(_0x47ac6f){const _0x347993=_0x11a364;var _0x4e4204=_0x13f7c6(_0x47ac6f,_0x347993(0xbf));return _0x48899a(_0x4e4204)==_0x347993(0xdd)?_0x4e4204:_0x4e4204+'';}function _0x28317c(_0x49e134,_0x4a4cdf,_0x3ab6e3){const _0x5723d6=_0x11a364;return(_0x4a4cdf=_0x326d2b(_0x4a4cdf))in _0x49e134?Object[_0x5723d6(0x111)](_0x49e134,_0x4a4cdf,{'value':_0x3ab6e3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49e134[_0x4a4cdf]=_0x3ab6e3,_0x49e134;}var _0x225913=class extends _0x2e7bad['Disposable']{constructor(..._0x49a8f1){const _0x301a29=_0x11a364;super(..._0x49a8f1),_0x28317c(this,_0x301a29(0x135),new Set()),_0x28317c(this,_0x301a29(0x15b),new Set());}[_0x11a364(0x10a)](_0x1437d3){const _0x485613=_0x11a364;return this[_0x485613(0x135)][_0x485613(0xa6)](_0x1437d3),(0x0,_0x2e7bad['toDisposable'])(()=>this[_0x485613(0x135)][_0x485613(0x159)](_0x1437d3));}['registerInitialStateReporter'](_0x2c09fd){const _0x4d8a14=_0x11a364;return this[_0x4d8a14(0x15b)][_0x4d8a14(0xa6)](_0x2c09fd),(0x0,_0x2e7bad[_0x4d8a14(0xbb)])(()=>this[_0x4d8a14(0x15b)][_0x4d8a14(0x159)](_0x2c09fd));}[_0x11a364(0x17c)](_0x5333cc){const _0xcc84de=_0x11a364;return this['_sharedOperations'][_0xcc84de(0x12c)](_0x5333cc);}['getInitialStates'](_0x578a59){const _0x16811d=_0x11a364;return Array[_0x16811d(0xef)](this[_0x16811d(0x15b)])[_0x16811d(0xb0)](_0x3d0ef8=>_0x3d0ef8(_0x578a59));}};function _0x3f7fa2(_0x5f3416,_0x4a0517){return function(_0x2dc64c,_0x155056){_0x4a0517(_0x2dc64c,_0x155056,_0x5f3416);};}function _0x306afd(_0x47c638,_0x140798,_0x5227af,_0x2ebe54){const _0x13be94=_0x11a364;var _0x2127e4=arguments['length'],_0x22f812=_0x2127e4<0x3?_0x140798:_0x2ebe54===null?_0x2ebe54=Object[_0x13be94(0xad)](_0x140798,_0x5227af):_0x2ebe54,_0xde28ab;if(typeof Reflect==_0x13be94(0x158)&&typeof Reflect[_0x13be94(0x187)]==_0x13be94(0xf9))_0x22f812=Reflect[_0x13be94(0x187)](_0x47c638,_0x140798,_0x5227af,_0x2ebe54);else{for(var _0x47d97e=_0x47c638['length']-0x1;_0x47d97e>=0x0;_0x47d97e--)(_0xde28ab=_0x47c638[_0x47d97e])&&(_0x22f812=(_0x2127e4<0x3?_0xde28ab(_0x22f812):_0x2127e4>0x3?_0xde28ab(_0x140798,_0x5227af,_0x22f812):_0xde28ab(_0x140798,_0x5227af))||_0x22f812);}return _0x2127e4>0x3&&_0x22f812&&Object['defineProperty'](_0x140798,_0x5227af,_0x22f812),_0x22f812;}let _0x217326=class extends _0x2e7bad[_0x11a364(0xcf)]{constructor(_0x307907,_0x3f06db,_0x37d208){const _0x12cc17=_0x11a364;super(),this[_0x12cc17(0xd7)]=_0x307907,this[_0x12cc17(0x112)]=_0x3f06db,this['_collabSessionService']=_0x37d208,_0x28317c(this,_0x12cc17(0x15e),new Map()),this[_0x12cc17(0xf8)]();}async[_0x11a364(0xce)](_0x44c147){const _0x3f112e=_0x11a364;return this['_entities'][_0x3f112e(0x12c)](_0x44c147)||await this[_0x3f112e(0x100)](_0x44c147),this['_entities'][_0x3f112e(0x119)](_0x44c147);}['getLiveShareCoordinatorSync'](_0x2d1396){const _0x24b469=_0x11a364;var _0x54ceb8;return(_0x54ceb8=this[_0x24b469(0x15e)]['get'](_0x2d1396))==null?null:_0x54ceb8;}[_0x11a364(0xf8)](){const _0x3da985=_0x11a364;this[_0x3da985(0xd7)][_0x3da985(0x13f)](_0x2e7bad[_0x3da985(0x199)][_0x3da985(0x146)])['pipe']((0x0,_0x8ea80b[_0x3da985(0x121)])(this['dispose$']))[_0x3da985(0x181)](async _0x9041e0=>{const _0x2fa323=_0x3da985;let _0x5622e4=_0x9041e0[_0x2fa323(0x17b)][_0x2fa323(0xc4)]();this['_entities']['has'](_0x5622e4)||this['_startLiveShareCoordinator'](_0x5622e4);}),this['_univerInstanceService'][_0x3da985(0x171)](_0x2e7bad[_0x3da985(0x199)][_0x3da985(0x146)])[_0x3da985(0x155)]((0x0,_0x8ea80b['takeUntil'])(this[_0x3da985(0xde)]))['subscribe'](_0x3849b8=>{const _0x1c1bbb=_0x3da985;let _0xa073c0=_0x3849b8[_0x1c1bbb(0xc4)](),_0x5b7eeb=this[_0x1c1bbb(0x15e)]['get'](_0xa073c0);_0x5b7eeb==null||_0x5b7eeb['dispose']();});}async[_0x11a364(0x100)](_0x16a059){const _0x4970c5=_0x11a364;let _0x1321ff=await this['_collabSessionService']['requireSession'](_0x16a059),_0x1157c5=this[_0x4970c5(0x112)][_0x4970c5(0x104)](_0x1bb0fb,_0x16a059,_0x1321ff);return _0x1157c5[_0x4970c5(0xae)](),this[_0x4970c5(0x15e)][_0x4970c5(0x14f)](_0x16a059,_0x1157c5),_0x1157c5;}};_0x217326=_0x306afd([_0x3f7fa2(0x0,_0x2e7bad['IUniverInstanceService']),_0x3f7fa2(0x1,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x2e7bad[_0x11a364(0xbe)])),_0x3f7fa2(0x2,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x473c83[_0x11a364(0xb8)]))],_0x217326);let _0x3f762f=function(_0x409ee7){const _0x5cbb5c=_0x11a364;return _0x409ee7[_0x5cbb5c(0xd0)]=_0x5cbb5c(0xed),_0x409ee7['IDLE']=_0x5cbb5c(0xb2),_0x409ee7[_0x5cbb5c(0x136)]=_0x5cbb5c(0xa7),_0x409ee7[_0x5cbb5c(0xb6)]='not-following',_0x409ee7[_0x5cbb5c(0x105)]=_0x5cbb5c(0x139),_0x409ee7;}({}),_0x1bb0fb=class extends _0x2e7bad[_0x11a364(0xcf)]{get['_status'](){const _0xa8eea6=_0x11a364;return this[_0xa8eea6(0xf7)]['getValue']();}constructor(_0x563d7a,_0x2ec849,_0x5f0bbb,_0x3f4efd,_0x28154d){const _0x2f90de=_0x11a364;super(),this['_unitID']=_0x563d7a,this['_collabSession']=_0x2ec849,this[_0x2f90de(0xcb)]=_0x5f0bbb,this[_0x2f90de(0xc9)]=_0x3f4efd,this['_commandService']=_0x28154d,_0x28317c(this,_0x2f90de(0xf7),new _0x3c016f[(_0x2f90de(0x12f))](_0x2f90de(0xb2))),_0x28317c(this,_0x2f90de(0x190),this[_0x2f90de(0xf7)]['asObservable']()),_0x28317c(this,_0x2f90de(0xf8),!0x1),_0x28317c(this,_0x2f90de(0x189),null),_0x28317c(this,_0x2f90de(0x17d),null);}['dispose'](){const _0x41f6bc=_0x11a364;var _0xf4afbb;(_0xf4afbb=this[_0x41f6bc(0x189)])==null||_0xf4afbb[_0x41f6bc(0xe4)](),this[_0x41f6bc(0xf7)][_0x41f6bc(0x192)]('idle'),this[_0x41f6bc(0xf7)][_0x41f6bc(0x17e)]();}[_0x11a364(0x109)](){const _0x1baa39=_0x11a364;return this[_0x1baa39(0x15f)];}[_0x11a364(0xae)](){const _0x191b35=_0x11a364;this[_0x191b35(0xf8)]||(this['_init']=!0x0,this[_0x191b35(0x12e)][_0x191b35(0x196)]['pipe']((0x0,_0x8ea80b[_0x191b35(0x121)])(this[_0x191b35(0xde)]))['subscribe'](_0x3e4e3c=>{const _0x330236=_0x191b35;switch(_0x3e4e3c){case _0x473c83[_0x330236(0x175)][_0x330236(0xd0)]:this[_0x330236(0xac)]();break;case _0x473c83[_0x330236(0x175)][_0x330236(0x180)]:this['_handleOnline']();break;default:}}),this['_collabSession'][_0x191b35(0x10c)]['pipe']((0x0,_0x8ea80b[_0x191b35(0x121)])(this[_0x191b35(0xde)]))[_0x191b35(0x181)](_0x4f0e9b=>{const _0x10a581=_0x191b35;let {eventID:_0x4f5d8f}=_0x4f0e9b;switch(_0x4f5d8f){case _0x47a740[_0x10a581(0x115)][_0x10a581(0xe1)]:this[_0x10a581(0x133)](_0x4f0e9b);break;case _0x47a740[_0x10a581(0x115)][_0x10a581(0x107)]:this[_0x10a581(0xfc)](_0x4f0e9b);break;case _0x47a740[_0x10a581(0x115)][_0x10a581(0xe3)]:this[_0x10a581(0x10f)]();break;case _0x47a740[_0x10a581(0x115)][_0x10a581(0x13d)]:this[_0x10a581(0x188)](_0x4f0e9b);break;default:}}));}[_0x11a364(0x165)](){const _0x654dce=_0x11a364;this[_0x654dce(0x12e)][_0x654dce(0xe6)]({'eventID':_0x47a740[_0x654dce(0x115)][_0x654dce(0x161)],'data':{'unitID':this[_0x654dce(0x13c)],'userID':this[_0x654dce(0x12e)][_0x654dce(0x167)]()}},this[_0x654dce(0x13c)]);}['stopPresenting'](){const _0x16049c=_0x11a364;this[_0x16049c(0x15f)]===_0x16049c(0x139)&&(this[_0x16049c(0xf7)][_0x16049c(0x192)]('idle'),this[_0x16049c(0x12e)][_0x16049c(0xe6)]({'eventID':_0x47a740[_0x16049c(0x115)][_0x16049c(0xe3)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x11a364(0xa5)](){const _0x5d80a8=_0x11a364;this[_0x5d80a8(0x15f)]==='not-following'&&(this['_status$']['next'](_0x5d80a8(0xa7)),this[_0x5d80a8(0xb1)]());}['stopFollowing'](){const _0x4addc0=_0x11a364;this[_0x4addc0(0x15f)]===_0x4addc0(0xa7)&&this[_0x4addc0(0x193)]();}['_handleNewHost'](_0x9e952e){const _0x34e7dc=_0x11a364;let {presenter:_0x2a3832}=_0x9e952e[_0x34e7dc(0x145)],_0x4971b1=this[_0x34e7dc(0x12e)][_0x34e7dc(0x167)]();this['_presenter']=_0x2a3832,_0x2a3832===_0x4971b1?(this[_0x34e7dc(0x193)](),this['_startPresenting']()):this[_0x34e7dc(0x15f)]!==_0x34e7dc(0xfa)&&(this[_0x34e7dc(0x11c)](),this['_startFollowing']());}[_0x11a364(0x164)](){const _0x585fbc=_0x11a364;let _0x3ecc11={'eventID':_0x47a740[_0x585fbc(0x115)][_0x585fbc(0x16a)]};this['_collabSession']['send'](_0x3ecc11,this[_0x585fbc(0x13c)]);}[_0x11a364(0x10f)](){const _0x57ecf5=_0x11a364;this['_presenter']=null,this[_0x57ecf5(0x15f)]!==_0x57ecf5(0x139)&&this[_0x57ecf5(0x120)]();}[_0x11a364(0x188)](_0x669e02){const _0x20700b=_0x11a364;if(this[_0x20700b(0x15f)]==='following'&&this[_0x20700b(0x17d)]===_0x669e02[_0x20700b(0x145)]['memberID']){let _0x3ae28f=(0x0,_0x47a740[_0x20700b(0xa8)])(_0x669e02[_0x20700b(0x145)])[_0x20700b(0x151)][_0x20700b(0x18d)]()[_0x20700b(0x147)](_0x2fcddf=>_0x2fcddf['id']===_0x10e3b7[_0x20700b(0x128)]['id']);if(_0x3ae28f){let _0x5abc33=_0x3ae28f[_0x20700b(0x142)][_0x20700b(0x15c)],_0x49038f=_0x3ae28f[_0x20700b(0x142)]['sheet']['id'];setTimeout(()=>{const _0x78d98b=_0x20700b;this[_0x78d98b(0xdb)]['executeCommand'](_0x10e3b7[_0x78d98b(0x16b)]['id'],{'unitId':_0x5abc33,'subUnitId':_0x49038f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1ef1cf=_0x11a364;var _0x4e9d07;(_0x4e9d07=this[_0x1ef1cf(0x189)])==null||_0x4e9d07[_0x1ef1cf(0xe4)](),this[_0x1ef1cf(0xf7)][_0x1ef1cf(0x192)](_0x1ef1cf(0x139));let _0x48ca39=new Map(),_0x4c821f=this['_commandDisposable']=new _0x2e7bad[(_0x1ef1cf(0xc7))]();_0x4c821f[_0x1ef1cf(0xa6)]((0x0,_0x2e7bad[_0x1ef1cf(0xbb)])(()=>{const _0xf8971f=_0x1ef1cf;_0x48ca39['forEach'](({subject:_0x2fd709,subscription:_0x50f515})=>{const _0x318f52=_0x5a09;_0x50f515[_0x318f52(0x197)](),_0x2fd709[_0x318f52(0x17e)]();}),_0x48ca39[_0xf8971f(0x102)]();})),_0x4c821f[_0x1ef1cf(0xa6)](this[_0x1ef1cf(0xdb)][_0x1ef1cf(0x172)](_0x519c7f=>{const _0x561f64=_0x1ef1cf;if(_0x519c7f[_0x561f64(0xc8)]!==_0x2e7bad[_0x561f64(0x14e)][_0x561f64(0xc2)]||!this['_liveShareService']['shouldShareOperation'](_0x519c7f['id']))return;let {id:_0x5c46d5}=_0x519c7f,_0x4d3bce;if(_0x48ca39[_0x561f64(0x12c)](_0x5c46d5))_0x4d3bce=_0x48ca39[_0x561f64(0x119)](_0x5c46d5)['subject'];else{var _0x598da0;_0x4d3bce=new _0x3c016f[(_0x561f64(0x134))]();let _0x51545c=_0x4d3bce[_0x561f64(0x155)]((0x0,_0x8ea80b[_0x561f64(0xff)])((_0x598da0=this[_0x561f64(0xcb)][_0x561f64(0x176)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x598da0,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4b889f=>{const _0x137b79=_0x561f64;this[_0x137b79(0x12e)][_0x137b79(0xe6)]({'eventID':_0x47a740[_0x137b79(0x115)][_0x137b79(0x107)],'data':{'unitID':this[_0x137b79(0x13c)],'operations':{[_0x4b889f['id']]:{'id':_0x4b889f['id'],'params':JSON[_0x137b79(0xb7)](_0x4b889f[_0x137b79(0x142)])}}}},this[_0x137b79(0x13c)]);});_0x48ca39['set'](_0x5c46d5,{'subject':_0x4d3bce,'subscription':_0x51545c});}_0x4d3bce[_0x561f64(0x192)](_0x519c7f);})),this[_0x1ef1cf(0xc9)][_0x1ef1cf(0x117)](this[_0x1ef1cf(0x13c)])[_0x1ef1cf(0xfb)](_0x4cb24f=>this[_0x1ef1cf(0x12e)][_0x1ef1cf(0xe6)]({'eventID':_0x47a740[_0x1ef1cf(0x115)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1ef1cf(0x13c)],'operations':{[_0x4cb24f['id']]:{'id':_0x4cb24f['id'],'params':JSON[_0x1ef1cf(0xb7)](_0x4cb24f[_0x1ef1cf(0x142)])}}}},this[_0x1ef1cf(0x13c)]));}[_0x11a364(0x11c)](){const _0x46c132=_0x11a364;var _0x458727;this[_0x46c132(0xf7)][_0x46c132(0x192)](_0x46c132(0xb2)),(_0x458727=this[_0x46c132(0x189)])==null||_0x458727['dispose'](),this[_0x46c132(0x189)]=null;}['_startFollowing'](){const _0x5209fd=_0x11a364;var _0xd80dd;(_0xd80dd=this[_0x5209fd(0x189)])==null||_0xd80dd[_0x5209fd(0xe4)](),this['_status$'][_0x5209fd(0x192)](_0x5209fd(0xa7));}[_0x11a364(0x120)](){const _0x30132a=_0x11a364;var _0x343b35;this[_0x30132a(0xf7)]['next']('idle'),(_0x343b35=this[_0x30132a(0x189)])==null||_0x343b35[_0x30132a(0xe4)](),this['_commandDisposable']=null;}[_0x11a364(0x193)](){const _0x58bac8=_0x11a364;var _0x5addbd;this[_0x58bac8(0xf7)][_0x58bac8(0x192)](_0x58bac8(0xfa)),(_0x5addbd=this[_0x58bac8(0x189)])==null||_0x5addbd[_0x58bac8(0xe4)]();}[_0x11a364(0xfc)](_0x3fd86b){const _0x2ccdd7=_0x11a364;if([_0x2ccdd7(0x139),_0x2ccdd7(0xfa),_0x2ccdd7(0xed)][_0x2ccdd7(0x143)](this[_0x2ccdd7(0x15f)])||!_0x3fd86b[_0x2ccdd7(0x145)][_0x2ccdd7(0xf3)]||_0x3fd86b[_0x2ccdd7(0x145)]['presenter']===this[_0x2ccdd7(0x12e)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();let _0x28b58f=_0x3fd86b[_0x2ccdd7(0x145)][_0x2ccdd7(0x126)];Object[_0x2ccdd7(0x113)](_0x28b58f)[_0x2ccdd7(0xfb)](_0x201cfd=>{const _0x1485f3=_0x2ccdd7;this[_0x1485f3(0xdb)]['executeCommand'](_0x201cfd['id'],_0x201cfd[_0x1485f3(0x142)]?JSON[_0x1485f3(0xbc)](_0x201cfd[_0x1485f3(0x142)]):null,{'fromCollab':!0x0});});}[_0x11a364(0xac)](){const _0x341586=_0x11a364;var _0x157432;this[_0x341586(0xf7)][_0x341586(0x192)](_0x341586(0xed)),(_0x157432=this[_0x341586(0x189)])==null||_0x157432[_0x341586(0xe4)]();}[_0x11a364(0x178)](){const _0x53cf72=_0x11a364;this[_0x53cf72(0xf7)][_0x53cf72(0x192)]('idle'),this[_0x53cf72(0x164)]();}};_0x1bb0fb=_0x306afd([_0x3f7fa2(0x2,_0x2e7bad[_0x11a364(0xb4)]),_0x3f7fa2(0x3,(0x0,_0x2e7bad['Inject'])(_0x225913)),_0x3f7fa2(0x4,_0x2e7bad[_0x11a364(0x13b)])],_0x1bb0fb);function _0xdd9c28(){const _0xc820e6=_0x11a364;let _0x307687=(0x0,_0x51e529['useDependency'])(_0x217326),_0x1e079d=(0x0,_0x51e529[_0xc820e6(0x131)])(_0x2e7bad[_0xc820e6(0x12d)]),_0x4f0afb=(0x0,_0x51e529[_0xc820e6(0x156)])(()=>_0x1e079d[_0xc820e6(0x166)](_0x2e7bad[_0xc820e6(0x199)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3317a4,_0x2b108e]=(0x0,_0x56d0c6[_0xc820e6(0x168)])(null),[_0x38bc75,_0xb8f30c]=(0x0,_0x56d0c6['useState'])(_0xc820e6(0xb2)),_0x557491=(0x0,_0x56d0c6[_0xc820e6(0x14b)])(null);return(0x0,_0x56d0c6[_0xc820e6(0x11e)])(()=>(_0x4f0afb&&_0x307687[_0xc820e6(0xce)](_0x4f0afb[_0xc820e6(0xc4)]())[_0xc820e6(0x14c)](_0x12e104=>{const _0xc9c41e=_0xc820e6;_0x2b108e(_0x12e104),_0x557491[_0xc9c41e(0xd1)]=_0x12e104[_0xc9c41e(0x190)]['subscribe'](_0x2c1bd7=>{_0xb8f30c(_0x2c1bd7);});}),()=>{const _0xa80827=_0xc820e6;var _0x435a7f;(_0x435a7f=_0x557491[_0xa80827(0xd1)])==null||_0x435a7f[_0xa80827(0x197)](),_0x557491['current']=null;}),[_0x4f0afb,_0x307687]),_0x3317a4?(0x0,_0x3d6e13[_0xc820e6(0x15d)])(_0x1fb8e8[_0xc820e6(0x11f)],{'align':_0xc820e6(0xc0),'disabled':_0x38bc75==='offline','className':_0xc820e6(0x17a),'overlay':(0x0,_0x3d6e13[_0xc820e6(0x15d)])(_0x1dcad6,{'status':_0x38bc75,'coordinator':_0x3317a4}),'children':(0x0,_0x3d6e13[_0xc820e6(0x15d)])(_0xc820e6(0x170),{'className':(0x0,_0x1fb8e8[_0xc820e6(0xdc)])(_0xc820e6(0x185),{'univer-cursor-not-allowed':_0x38bc75==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38bc75!==_0xc820e6(0xed)}),'type':_0xc820e6(0x170),'children':(0x0,_0x3d6e13['jsx'])(_0xe5d3f2,{'className':'univer-size-4'})})}):null;}function _0x1dcad6(_0x149d6e){const _0x5a208c=_0x11a364;let {status:_0x1af880,coordinator:_0x362f22}=_0x149d6e;switch(_0x1af880){case _0x5a208c(0xb2):return(0x0,_0x3d6e13['jsx'])(_0x230f66,{'coordinator':_0x362f22});case _0x5a208c(0xa7):return(0x0,_0x3d6e13[_0x5a208c(0x15d)])(_0x1badf9,{'coordinator':_0x362f22});case _0x5a208c(0xfa):return(0x0,_0x3d6e13[_0x5a208c(0x15d)])(_0x44a827,{'coordinator':_0x362f22});case _0x5a208c(0xed):return(0x0,_0x3d6e13[_0x5a208c(0x15d)])(_0x2fe692,{});case _0x5a208c(0x139):return(0x0,_0x3d6e13['jsx'])(_0x4b6a5b,{'coordinator':_0x362f22});default:return null;}}function _0x230f66(_0x89242d){const _0x22846d=_0x11a364;let {coordinator:_0x155fb0}=_0x89242d;return(0x0,_0x3d6e13['jsxs'])(_0x3d6e13[_0x22846d(0xd2)],{'children':[(0x0,_0x3d6e13['jsx'])(_0x22846d(0xa9),{'className':_0x22846d(0x118),'children':'Present\x20this\x20document'}),(0x0,_0x3d6e13[_0x22846d(0x15d)])(_0x1fb8e8[_0x22846d(0x108)],{'onClick':()=>_0x155fb0[_0x22846d(0x165)](),'children':_0x22846d(0x17f)})]});}function _0x1badf9(_0x53206c){const _0x5eb99a=_0x11a364;let {coordinator:_0x306ee4}=_0x53206c;return(0x0,_0x3d6e13[_0x5eb99a(0x12a)])(_0x3d6e13[_0x5eb99a(0xd2)],{'children':[(0x0,_0x3d6e13['jsx'])(_0x5eb99a(0xa9),{'className':_0x5eb99a(0x118),'children':_0x5eb99a(0x101)}),(0x0,_0x3d6e13[_0x5eb99a(0x15d)])(_0x1fb8e8[_0x5eb99a(0x108)],{'onClick':()=>_0x306ee4[_0x5eb99a(0x179)](),'children':_0x5eb99a(0x173)})]});}function _0x44a827(_0x4c3913){const _0x297c18=_0x11a364;let {coordinator:_0x5c5537}=_0x4c3913;return(0x0,_0x3d6e13[_0x297c18(0x12a)])(_0x3d6e13[_0x297c18(0xd2)],{'children':[(0x0,_0x3d6e13['jsx'])('div',{'className':_0x297c18(0x118),'children':_0x297c18(0x153)}),(0x0,_0x3d6e13[_0x297c18(0x15d)])(_0x1fb8e8[_0x297c18(0x108)],{'variant':'text','onClick':()=>_0x5c5537[_0x297c18(0xa5)](),'children':_0x297c18(0x148)})]});}function _0x4b6a5b(_0x467ea9){const _0x3d04f3=_0x11a364;let {coordinator:_0x52f03b}=_0x467ea9;return(0x0,_0x3d6e13[_0x3d04f3(0x12a)])(_0x3d6e13[_0x3d04f3(0xd2)],{'children':[(0x0,_0x3d6e13[_0x3d04f3(0x15d)])(_0x3d04f3(0xa9),{'className':_0x3d04f3(0x118),'children':_0x3d04f3(0xe9)}),(0x0,_0x3d6e13['jsx'])(_0x1fb8e8['Button'],{'variant':_0x3d04f3(0x130),'onClick':()=>_0x52f03b['stopPresenting'](),'children':_0x3d04f3(0xd9)})]});}function _0x2fe692(){const _0x5ee8d7=_0x11a364;return(0x0,_0x3d6e13[_0x5ee8d7(0x15d)])(_0x3d6e13[_0x5ee8d7(0xd2)],{'children':_0x5ee8d7(0x106)});}let _0x149d2f=class extends _0x2e7bad[_0x11a364(0x15a)]{constructor(_0x4c2f89,_0x2d2806){const _0x1a9a1a=_0x11a364;super(),this[_0x1a9a1a(0x112)]=_0x4c2f89,this['_uiPartsService']=_0x2d2806,this[_0x1a9a1a(0xcc)]();}['_mountLiveShare'](){const _0x3f80bb=_0x11a364;this[_0x3f80bb(0xab)](this[_0x3f80bb(0x11a)]['registerComponent'](_0x51e529[_0x3f80bb(0xaf)][_0x3f80bb(0xec)],()=>(0x0,_0x51e529[_0x3f80bb(0x14a)])(_0xdd9c28,this[_0x3f80bb(0x112)])));}};_0x149d2f=_0x306afd([_0x3f7fa2(0x0,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x2e7bad['Injector'])),_0x3f7fa2(0x1,_0x51e529['IUIPartsService'])],_0x149d2f);var _0xa691cc=_0x11a364(0x13e),_0x457589=_0x11a364(0x13a);let _0x3fa4ec={},_0x4de94d=class extends _0x2e7bad[_0x11a364(0x15a)]{constructor(_0x4bddfa){const _0x276df6=_0x11a364;super(),this[_0x276df6(0xc9)]=_0x4bddfa,this[_0x276df6(0xf8)]();}[_0x11a364(0xf8)](){const _0x29ecb4=_0x11a364;[_0x17de75[_0x29ecb4(0x140)]['id'],_0x17de75[_0x29ecb4(0xd5)]['id'],_0x10e3b7[_0x29ecb4(0x16b)]['id']]['forEach'](_0x4b7ce9=>{const _0x3652a1=_0x29ecb4;this[_0x3652a1(0xab)](this[_0x3652a1(0xc9)]['registerSharedOperation'](_0x4b7ce9));});}};_0x4de94d=_0x306afd([_0x3f7fa2(0x0,(0x0,_0x2e7bad['Inject'])(_0x225913))],_0x4de94d);let _0xceb584=class extends _0x2e7bad['Plugin']{constructor(_0x31637c=_0x3fa4ec,_0x20e075,_0x464097){const _0x10e7c7=_0x11a364;super(),this['_config']=_0x31637c,this[_0x10e7c7(0x112)]=_0x20e075,this[_0x10e7c7(0xcb)]=_0x464097;let {..._0x1370a4}=(0x0,_0x2e7bad['merge'])({},_0x3fa4ec,this[_0x10e7c7(0x14d)]);this[_0x10e7c7(0xcb)][_0x10e7c7(0xcd)]('live-share.config',_0x1370a4);}[_0x11a364(0x160)](){const _0x10bec9=_0x11a364;(0x0,_0x2e7bad[_0x10bec9(0x183)])(this[_0x10bec9(0x112)],(0x0,_0x2e7bad[_0x10bec9(0x198)])([[_0x225913],[_0x217326],[_0x4de94d],[_0x149d2f]],this[_0x10bec9(0x14d)]['override'])),(0x0,_0x2e7bad[_0x10bec9(0x195)])(this['_injector'],[[_0x4de94d]]);}[_0x11a364(0x137)](){const _0x5b9570=_0x11a364;(0x0,_0x2e7bad[_0x5b9570(0x195)])(this[_0x5b9570(0x112)],[[_0x149d2f]]);}};_0x28317c(_0xceb584,_0x11a364(0xc8),_0x2e7bad[_0x11a364(0x199)][_0x11a364(0x16e)]),_0x28317c(_0xceb584,_0x11a364(0x122),_0x11a364(0xe7)),_0x28317c(_0xceb584,_0x11a364(0x174),_0xa691cc),_0x28317c(_0xceb584,_0x11a364(0x154),_0x457589),_0xceb584=_0x306afd([(0x0,_0x2e7bad['DependentOn'])(_0x473c83[_0x11a364(0xc3)]),_0x3f7fa2(0x1,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x2e7bad['Injector'])),_0x3f7fa2(0x2,_0x2e7bad[_0x11a364(0xb4)])],_0xceb584),Object[_0x11a364(0x111)](_0x4a206c,_0x11a364(0x114),{'enumerable':!0x0,'get':function(){return _0x149d2f;}}),_0x4a206c['LiveShare']=_0xdd9c28,Object[_0x11a364(0x111)](_0x4a206c,_0x11a364(0xee),{'enumerable':!0x0,'get':function(){return _0x217326;}}),Object[_0x11a364(0x111)](_0x4a206c,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0x1bb0fb;}}),_0x4a206c[_0x11a364(0xf6)]=_0x225913,_0x4a206c[_0x11a364(0xea)]=_0x3f762f,Object[_0x11a364(0x111)](_0x4a206c,_0x11a364(0x11b),{'enumerable':!0x0,'get':function(){return _0xceb584;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -63,13 +63,13 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "@univerjs/icons": "1.4.0",
66
- "@univerjs-pro/collaboration": "0.24.0",
67
- "@univerjs-pro/collaboration-client": "0.24.0",
68
- "@univerjs/core": "0.24.0",
69
- "@univerjs/sheets-ui": "0.24.0",
70
- "@univerjs/design": "0.24.0",
71
- "@univerjs/sheets": "0.24.0",
72
- "@univerjs/ui": "0.24.0"
66
+ "@univerjs-pro/collaboration": "0.25.0",
67
+ "@univerjs-pro/collaboration-client": "0.25.0",
68
+ "@univerjs/core": "0.25.0",
69
+ "@univerjs/design": "0.25.0",
70
+ "@univerjs/sheets": "0.25.0",
71
+ "@univerjs/sheets-ui": "0.25.0",
72
+ "@univerjs/ui": "0.25.0"
73
73
  },
74
74
  "devDependencies": {
75
75
  "postcss": "^8.5.14",
@@ -78,8 +78,8 @@
78
78
  "tailwindcss": "^3.4.17",
79
79
  "typescript": "^6.0.3",
80
80
  "vitest": "^4.1.6",
81
- "@univerjs-infra/shared": "0.24.0",
82
- "@univerjs/protocol": "0.24.0"
81
+ "@univerjs/protocol": "0.25.0",
82
+ "@univerjs-infra/shared": "0.25.0"
83
83
  },
84
84
  "scripts": {
85
85
  "test": "vitest run",