@univerjs-pro/live-share 0.25.1 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x41ae17=_0x3859;function _0x4707(){const _0x1c3a00=['3267432lsMXPv','16kupzFY','15995060jkEsFq','prototype','_liveShareController','FUniver','LiveShareStatusEnum','getUnitId','default','symbol','IUniverInstanceService','14024504Gzlbqt','getCurrentUnitOfType','No\x20active\x20workbook\x20found.','toPrimitive','_initialize','IDLE','_injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','defineProperty','getLiveShareStatus','1116035NvUgXK','call','318LvZKHC','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','stopFollowing','8069FdZLPG','733260xsslNb','1199MuRxCM','30tLmiWH','381168uycXkc','object','iterator','getStatus','getLiveShareCoordinatorSync','string','get','UniverInstanceType','extend','startPresenting','UNIVER_SHEET','FEnum','startFollowing','LiveShareStatus','7Aeenfi'];_0x4707=function(){return _0x1c3a00;};return _0x4707();}function _0x3859(_0x304c6b,_0x26e091){_0x304c6b=_0x304c6b-0xa4;const _0x4707af=_0x4707();let _0x38593f=_0x4707af[_0x304c6b];return _0x38593f;}(function(_0x158c3b,_0x5cd668){const _0x5b757a=_0x3859,_0x1acd7b=_0x158c3b();while(!![]){try{const _0x1a8dee=parseInt(_0x5b757a(0xc8))/0x1*(parseInt(_0x5b757a(0xc4))/0x2)+-parseInt(_0x5b757a(0xc9))/0x3*(-parseInt(_0x5b757a(0xad))/0x4)+-parseInt(_0x5b757a(0xc2))/0x5*(parseInt(_0x5b757a(0xcb))/0x6)+parseInt(_0x5b757a(0xab))/0x7*(-parseInt(_0x5b757a(0xb7))/0x8)+-parseInt(_0x5b757a(0xac))/0x9+-parseInt(_0x5b757a(0xae))/0xa+parseInt(_0x5b757a(0xca))/0xb*(parseInt(_0x5b757a(0xcc))/0xc);if(_0x1a8dee===_0x5cd668)break;else _0x1acd7b['push'](_0x1acd7b['shift']());}catch(_0x119766){_0x1acd7b['push'](_0x1acd7b['shift']());}}}(_0x4707,0xd998b));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x56a4d5){'@babel/helpers - typeof';const _0x29e1a1=_0x3859;return r=typeof Symbol==_0x29e1a1(0xbf)&&typeof Symbol[_0x29e1a1(0xce)]==_0x29e1a1(0xb5)?function(_0x36eb71){return typeof _0x36eb71;}:function(_0x50118f){const _0x1c5eec=_0x29e1a1;return _0x50118f&&typeof Symbol=='function'&&_0x50118f['constructor']===Symbol&&_0x50118f!==Symbol[_0x1c5eec(0xaf)]?_0x1c5eec(0xb5):typeof _0x50118f;},r(_0x56a4d5);}function i(_0x309404,_0x14884a){const _0x5c0748=_0x3859;if(r(_0x309404)!=_0x5c0748(0xcd)||!_0x309404)return _0x309404;var _0x273f57=_0x309404[Symbol[_0x5c0748(0xba)]];if(_0x273f57!==void 0x0){var _0x502c5d=_0x273f57[_0x5c0748(0xc3)](_0x309404,_0x14884a||_0x5c0748(0xb4));if(r(_0x502c5d)!=_0x5c0748(0xcd))return _0x502c5d;throw TypeError(_0x5c0748(0xbe));}return(_0x14884a==='string'?String:Number)(_0x309404);}function a(_0xc301c4){const _0x29c2f4=_0x3859;var _0x2800bb=i(_0xc301c4,_0x29c2f4(0xd1));return r(_0x2800bb)==_0x29c2f4(0xb5)?_0x2800bb:_0x2800bb+'';}function o(_0x14cc33,_0x52142f,_0x465d4b){const _0x29b2e4=_0x3859;return(_0x52142f=a(_0x52142f))in _0x14cc33?Object[_0x29b2e4(0xc0)](_0x14cc33,_0x52142f,{'value':_0x465d4b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14cc33[_0x52142f]=_0x465d4b,_0x14cc33;}var s=class extends n[_0x41ae17(0xb1)]{constructor(..._0x40f576){super(..._0x40f576),o(this,'_liveShareController',void 0x0);}[_0x41ae17(0xbb)](_0x37b86f){const _0x4e6d34=_0x41ae17;this['_liveShareController']=_0x37b86f[_0x4e6d34(0xd2)](e['LiveShareController']);}[_0x41ae17(0xc1)](){const _0xdd5cb0=_0x41ae17;var _0x2fca40;let _0x33ab9c=this[_0xdd5cb0(0xbd)][_0xdd5cb0(0xd2)](t['IUniverInstanceService'])[_0xdd5cb0(0xb8)](t[_0xdd5cb0(0xa4)][_0xdd5cb0(0xa7)]);if(!_0x33ab9c)throw Error(_0xdd5cb0(0xb9));let _0x524516=_0x33ab9c[_0xdd5cb0(0xb3)](),_0x22c787=this['_liveShareController'][_0xdd5cb0(0xd0)](_0x524516);return(_0x2fca40=_0x22c787==null?void 0x0:_0x22c787[_0xdd5cb0(0xcf)]())==null?e[_0xdd5cb0(0xaa)][_0xdd5cb0(0xbc)]:_0x2fca40;}[_0x41ae17(0xa9)](){const _0x1e83f8=_0x41ae17;let _0x737876=this[_0x1e83f8(0xbd)][_0x1e83f8(0xd2)](t[_0x1e83f8(0xb6)])[_0x1e83f8(0xb8)](t['UniverInstanceType'][_0x1e83f8(0xa7)]);if(!_0x737876)throw Error(_0x1e83f8(0xb9));let _0x5da298=_0x737876[_0x1e83f8(0xb3)](),_0x2c7c21=this[_0x1e83f8(0xb0)][_0x1e83f8(0xd0)](_0x5da298);if(!_0x2c7c21)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2c7c21[_0x1e83f8(0xa9)]();}['stopFollowing'](){const _0x46af77=_0x41ae17;let _0x1b17f0=this[_0x46af77(0xbd)]['get'](t[_0x46af77(0xb6)])[_0x46af77(0xb8)](t['UniverInstanceType'][_0x46af77(0xa7)]);if(!_0x1b17f0)throw Error(_0x46af77(0xb9));let _0x55b10d=_0x1b17f0['getUnitId'](),_0x1abb27=this[_0x46af77(0xb0)][_0x46af77(0xd0)](_0x55b10d);if(!_0x1abb27)throw Error(_0x46af77(0xc5));_0x1abb27[_0x46af77(0xc7)]();}[_0x41ae17(0xa6)](){const _0x48be25=_0x41ae17;let _0x2fc23d=this[_0x48be25(0xbd)][_0x48be25(0xd2)](t['IUniverInstanceService'])[_0x48be25(0xb8)](t['UniverInstanceType'][_0x48be25(0xa7)]);if(!_0x2fc23d)throw Error('No\x20active\x20workbook\x20found.');let _0x1c2190=_0x2fc23d[_0x48be25(0xb3)](),_0x17f9b7=this[_0x48be25(0xb0)][_0x48be25(0xd0)](_0x1c2190);if(!_0x17f9b7)throw Error(_0x48be25(0xc5));_0x17f9b7['tryStartPresenting']();}[_0x41ae17(0xc6)](){const _0x5307c5=_0x41ae17;let _0x321506=this[_0x5307c5(0xbd)]['get'](t[_0x5307c5(0xb6)])[_0x5307c5(0xb8)](t[_0x5307c5(0xa4)]['UNIVER_SHEET']);if(!_0x321506)throw Error('No\x20active\x20workbook\x20found.');let _0x12c9ce=_0x321506[_0x5307c5(0xb3)](),_0x4d627b=this[_0x5307c5(0xb0)][_0x5307c5(0xd0)](_0x12c9ce);if(!_0x4d627b)throw Error(_0x5307c5(0xc5));_0x4d627b['stopPresenting']();}};n[_0x41ae17(0xb1)][_0x41ae17(0xa5)](s);var c=class extends n[_0x41ae17(0xa8)]{get[_0x41ae17(0xb2)](){const _0x2bc515=_0x41ae17;return e[_0x2bc515(0xaa)];}};n[_0x41ae17(0xa8)][_0x41ae17(0xa5)](c);
1
+ const _0x3f36eb=_0x4965;(function(_0x11b93e,_0x424f16){const _0x4946b7=_0x4965,_0x1963ab=_0x11b93e();while(!![]){try{const _0x3b4b8d=parseInt(_0x4946b7(0xcf))/0x1*(parseInt(_0x4946b7(0xc5))/0x2)+-parseInt(_0x4946b7(0xd5))/0x3*(parseInt(_0x4946b7(0xd9))/0x4)+-parseInt(_0x4946b7(0xd2))/0x5*(-parseInt(_0x4946b7(0xc7))/0x6)+-parseInt(_0x4946b7(0xd6))/0x7+-parseInt(_0x4946b7(0xdd))/0x8*(parseInt(_0x4946b7(0xd0))/0x9)+-parseInt(_0x4946b7(0xc6))/0xa*(-parseInt(_0x4946b7(0xd1))/0xb)+parseInt(_0x4946b7(0xbd))/0xc;if(_0x3b4b8d===_0x424f16)break;else _0x1963ab['push'](_0x1963ab['shift']());}catch(_0x1462b7){_0x1963ab['push'](_0x1963ab['shift']());}}}(_0x25a5,0xbe679));function _0x25a5(){const _0x1c40b4=['3368729ZLPwgH','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','561424cvMNut','UNIVER_SHEET','extend','getStatus','2440ycJBth','symbol','startFollowing','toPrimitive','_injector','string','prototype','FEnum','FUniver','LiveShareController','_initialize','getCurrentUnitOfType','29755416Pzucyw','_liveShareController','object','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareStatus','get','constructor','IDLE','2IsAGia','1443230KPLoWX','2370LZwAJM','iterator','UniverInstanceType','call','getLiveShareCoordinatorSync','stopFollowing','No\x20active\x20workbook\x20found.','stopPresenting','832882GTSdej','37458qdcIjK','11kmsnSQ','4265WgrcXZ','IUniverInstanceService','getUnitId','27pFpDQD'];_0x25a5=function(){return _0x1c40b4;};return _0x25a5();}let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x79b084){'@babel/helpers - typeof';const _0x367476=_0x4965;return r=typeof Symbol==_0x367476(0xd7)&&typeof Symbol[_0x367476(0xc8)]==_0x367476(0xde)?function(_0x5f5325){return typeof _0x5f5325;}:function(_0x783dc8){const _0x3c8a95=_0x367476;return _0x783dc8&&typeof Symbol==_0x3c8a95(0xd7)&&_0x783dc8[_0x3c8a95(0xc3)]===Symbol&&_0x783dc8!==Symbol[_0x3c8a95(0xe3)]?'symbol':typeof _0x783dc8;},r(_0x79b084);}function i(_0x4fc191,_0x19c761){const _0xaf1d97=_0x4965;if(r(_0x4fc191)!=_0xaf1d97(0xbf)||!_0x4fc191)return _0x4fc191;var _0x4833ea=_0x4fc191[Symbol[_0xaf1d97(0xe0)]];if(_0x4833ea!==void 0x0){var _0x71b408=_0x4833ea[_0xaf1d97(0xca)](_0x4fc191,_0x19c761||'default');if(r(_0x71b408)!=_0xaf1d97(0xbf))return _0x71b408;throw TypeError(_0xaf1d97(0xd8));}return(_0x19c761===_0xaf1d97(0xe2)?String:Number)(_0x4fc191);}function a(_0xa79dd2){const _0x10b0f4=_0x4965;var _0x3216a9=i(_0xa79dd2,'string');return r(_0x3216a9)==_0x10b0f4(0xde)?_0x3216a9:_0x3216a9+'';}function o(_0x4d37ed,_0x5ba36d,_0x3d3335){return(_0x5ba36d=a(_0x5ba36d))in _0x4d37ed?Object['defineProperty'](_0x4d37ed,_0x5ba36d,{'value':_0x3d3335,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d37ed[_0x5ba36d]=_0x3d3335,_0x4d37ed;}var s=class extends n[_0x3f36eb(0xb9)]{constructor(..._0x3a00ad){const _0x230aa3=_0x3f36eb;super(..._0x3a00ad),o(this,_0x230aa3(0xbe),void 0x0);}[_0x3f36eb(0xbb)](_0x543aa2){const _0x3ba084=_0x3f36eb;this['_liveShareController']=_0x543aa2[_0x3ba084(0xc2)](e[_0x3ba084(0xba)]);}['getLiveShareStatus'](){const _0x3d6c41=_0x3f36eb;var _0x4922f7;let _0x569407=this['_injector']['get'](t[_0x3d6c41(0xd3)])[_0x3d6c41(0xbc)](t[_0x3d6c41(0xc9)]['UNIVER_SHEET']);if(!_0x569407)throw Error(_0x3d6c41(0xcd));let _0x485c23=_0x569407[_0x3d6c41(0xd4)](),_0x56d42f=this[_0x3d6c41(0xbe)]['getLiveShareCoordinatorSync'](_0x485c23);return(_0x4922f7=_0x56d42f==null?void 0x0:_0x56d42f[_0x3d6c41(0xdc)]())==null?e[_0x3d6c41(0xc1)][_0x3d6c41(0xc4)]:_0x4922f7;}[_0x3f36eb(0xdf)](){const _0x1ef158=_0x3f36eb;let _0x4da2d1=this[_0x1ef158(0xe1)][_0x1ef158(0xc2)](t[_0x1ef158(0xd3)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x1ef158(0xda)]);if(!_0x4da2d1)throw Error(_0x1ef158(0xcd));let _0x8b8f2e=_0x4da2d1[_0x1ef158(0xd4)](),_0x3dac73=this[_0x1ef158(0xbe)][_0x1ef158(0xcb)](_0x8b8f2e);if(!_0x3dac73)throw Error(_0x1ef158(0xc0));_0x3dac73['startFollowing']();}[_0x3f36eb(0xcc)](){const _0xd116af=_0x3f36eb;let _0x23941c=this[_0xd116af(0xe1)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t[_0xd116af(0xc9)]['UNIVER_SHEET']);if(!_0x23941c)throw Error(_0xd116af(0xcd));let _0x21166d=_0x23941c[_0xd116af(0xd4)](),_0x5e9370=this[_0xd116af(0xbe)][_0xd116af(0xcb)](_0x21166d);if(!_0x5e9370)throw Error(_0xd116af(0xc0));_0x5e9370[_0xd116af(0xcc)]();}['startPresenting'](){const _0x4a59a3=_0x3f36eb;let _0x28ca24=this[_0x4a59a3(0xe1)][_0x4a59a3(0xc2)](t[_0x4a59a3(0xd3)])[_0x4a59a3(0xbc)](t[_0x4a59a3(0xc9)][_0x4a59a3(0xda)]);if(!_0x28ca24)throw Error('No\x20active\x20workbook\x20found.');let _0x1e5637=_0x28ca24[_0x4a59a3(0xd4)](),_0x55c782=this['_liveShareController'][_0x4a59a3(0xcb)](_0x1e5637);if(!_0x55c782)throw Error(_0x4a59a3(0xc0));_0x55c782['tryStartPresenting']();}['stopPresenting'](){const _0x40e5ae=_0x3f36eb;let _0x300472=this['_injector']['get'](t[_0x40e5ae(0xd3)])[_0x40e5ae(0xbc)](t[_0x40e5ae(0xc9)][_0x40e5ae(0xda)]);if(!_0x300472)throw Error(_0x40e5ae(0xcd));let _0x2ffe28=_0x300472[_0x40e5ae(0xd4)](),_0x5aeaf9=this[_0x40e5ae(0xbe)]['getLiveShareCoordinatorSync'](_0x2ffe28);if(!_0x5aeaf9)throw Error(_0x40e5ae(0xc0));_0x5aeaf9[_0x40e5ae(0xce)]();}};n[_0x3f36eb(0xb9)][_0x3f36eb(0xdb)](s);var c=class extends n[_0x3f36eb(0xb8)]{get['LiveShareStatusEnum'](){const _0x5d378f=_0x3f36eb;return e[_0x5d378f(0xc1)];}};function _0x4965(_0x32e122,_0x5ba9f5){_0x32e122=_0x32e122-0xb8;const _0x25a5e8=_0x25a5();let _0x496570=_0x25a5e8[_0x32e122];return _0x496570;}n[_0x3f36eb(0xb8)][_0x3f36eb(0xdb)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2a6aa1=_0x1878;(function(_0x25c78e,_0xc9b328){const _0x3d481e=_0x1878,_0x571f4e=_0x25c78e();while(!![]){try{const _0x311999=-parseInt(_0x3d481e(0x1ee))/0x1*(parseInt(_0x3d481e(0x21d))/0x2)+parseInt(_0x3d481e(0x1f8))/0x3+-parseInt(_0x3d481e(0x1c3))/0x4*(-parseInt(_0x3d481e(0x1a8))/0x5)+-parseInt(_0x3d481e(0x178))/0x6*(-parseInt(_0x3d481e(0x1f1))/0x7)+-parseInt(_0x3d481e(0x1f4))/0x8*(-parseInt(_0x3d481e(0x20d))/0x9)+-parseInt(_0x3d481e(0x171))/0xa+-parseInt(_0x3d481e(0x1e6))/0xb;if(_0x311999===_0xc9b328)break;else _0x571f4e['push'](_0x571f4e['shift']());}catch(_0x276bfe){_0x571f4e['push'](_0x571f4e['shift']());}}}(_0x4b1b,0xb110a),Object[_0x2a6aa1(0x1a9)](exports,Symbol[_0x2a6aa1(0x211)],{'value':'Module'}));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(_0x89c5c7){'@babel/helpers - typeof';const _0x5066e5=_0x2a6aa1;return f=typeof Symbol==_0x5066e5(0x1ae)&&typeof Symbol['iterator']=='symbol'?function(_0x489c63){return typeof _0x489c63;}:function(_0xf15985){const _0x4a56f3=_0x5066e5;return _0xf15985&&typeof Symbol==_0x4a56f3(0x1ae)&&_0xf15985[_0x4a56f3(0x1a7)]===Symbol&&_0xf15985!==Symbol[_0x4a56f3(0x1b7)]?_0x4a56f3(0x1bd):typeof _0xf15985;},f(_0x89c5c7);}function p(_0x2cd95a,_0x461ed1){const _0x476c5f=_0x2a6aa1;if(f(_0x2cd95a)!=_0x476c5f(0x177)||!_0x2cd95a)return _0x2cd95a;var _0x39edcd=_0x2cd95a[Symbol['toPrimitive']];if(_0x39edcd!==void 0x0){var _0x2b83c5=_0x39edcd['call'](_0x2cd95a,_0x461ed1||_0x476c5f(0x199));if(f(_0x2b83c5)!=_0x476c5f(0x177))return _0x2b83c5;throw TypeError(_0x476c5f(0x1d0));}return(_0x461ed1===_0x476c5f(0x1ac)?String:Number)(_0x2cd95a);}function m(_0x36eec3){const _0x3f9c7a=_0x2a6aa1;var _0x488f11=p(_0x36eec3,'string');return f(_0x488f11)==_0x3f9c7a(0x1bd)?_0x488f11:_0x488f11+'';}function h(_0x4a0fda,_0x2bcfd4,_0x39c076){const _0x3bab8d=_0x2a6aa1;return(_0x2bcfd4=m(_0x2bcfd4))in _0x4a0fda?Object[_0x3bab8d(0x1a9)](_0x4a0fda,_0x2bcfd4,{'value':_0x39c076,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a0fda[_0x2bcfd4]=_0x39c076,_0x4a0fda;}var g=class extends e['Disposable']{constructor(..._0xde0a0a){const _0x4e761b=_0x2a6aa1;super(..._0xde0a0a),h(this,_0x4e761b(0x196),new Set()),h(this,_0x4e761b(0x1b4),new Set());}[_0x2a6aa1(0x19b)](_0x41d31d){const _0x329a28=_0x2a6aa1;return this[_0x329a28(0x196)]['add'](_0x41d31d),(0x0,e[_0x329a28(0x1d8)])(()=>this[_0x329a28(0x196)]['delete'](_0x41d31d));}[_0x2a6aa1(0x19d)](_0x1621c3){const _0xd7f301=_0x2a6aa1;return this[_0xd7f301(0x1b4)]['add'](_0x1621c3),(0x0,e['toDisposable'])(()=>this[_0xd7f301(0x1b4)][_0xd7f301(0x22b)](_0x1621c3));}[_0x2a6aa1(0x1ca)](_0x1c4d88){const _0x2bde57=_0x2a6aa1;return this[_0x2bde57(0x196)]['has'](_0x1c4d88);}[_0x2a6aa1(0x1e2)](_0x527fe4){const _0x5058b6=_0x2a6aa1;return Array[_0x5058b6(0x1fd)](this['_reporters'])[_0x5058b6(0x20f)](_0x29f414=>_0x29f414(_0x527fe4));}};function _(_0x597948,_0x1d1aef){return function(_0x1914c7,_0x5e6a29){_0x1d1aef(_0x1914c7,_0x5e6a29,_0x597948);};}function v(_0x5c7506,_0x30f46f,_0x1c453c,_0x471f78){const _0x1d11fc=_0x2a6aa1;var _0x596f83=arguments[_0x1d11fc(0x1c5)],_0x406bae=_0x596f83<0x3?_0x30f46f:_0x471f78===null?_0x471f78=Object[_0x1d11fc(0x1b1)](_0x30f46f,_0x1c453c):_0x471f78,_0x573ac3;if(typeof Reflect=='object'&&typeof Reflect[_0x1d11fc(0x1cd)]==_0x1d11fc(0x1ae))_0x406bae=Reflect[_0x1d11fc(0x1cd)](_0x5c7506,_0x30f46f,_0x1c453c,_0x471f78);else{for(var _0x153809=_0x5c7506[_0x1d11fc(0x1c5)]-0x1;_0x153809>=0x0;_0x153809--)(_0x573ac3=_0x5c7506[_0x153809])&&(_0x406bae=(_0x596f83<0x3?_0x573ac3(_0x406bae):_0x596f83>0x3?_0x573ac3(_0x30f46f,_0x1c453c,_0x406bae):_0x573ac3(_0x30f46f,_0x1c453c))||_0x406bae);}return _0x596f83>0x3&&_0x406bae&&Object[_0x1d11fc(0x1a9)](_0x30f46f,_0x1c453c,_0x406bae),_0x406bae;}let y=class extends e['RxDisposable']{constructor(_0x467a16,_0x586990,_0x5a036d){const _0x4df159=_0x2a6aa1;super(),this[_0x4df159(0x1e1)]=_0x467a16,this[_0x4df159(0x17a)]=_0x586990,this[_0x4df159(0x195)]=_0x5a036d,h(this,_0x4df159(0x184),new Map()),this[_0x4df159(0x20c)]();}async['getLiveShareCoordinator'](_0x41345e){const _0x5c49a4=_0x2a6aa1;return this[_0x5c49a4(0x184)]['has'](_0x41345e)||await this[_0x5c49a4(0x179)](_0x41345e),this['_entities'][_0x5c49a4(0x18b)](_0x41345e);}[_0x2a6aa1(0x18f)](_0x54c707){const _0x2a6f38=_0x2a6aa1;var _0x86db55;return(_0x86db55=this[_0x2a6f38(0x184)][_0x2a6f38(0x18b)](_0x54c707))==null?null:_0x86db55;}[_0x2a6aa1(0x20c)](){const _0x78e8a3=_0x2a6aa1;this[_0x78e8a3(0x1e1)][_0x78e8a3(0x1a1)](e['UniverInstanceType']['UNIVER_SHEET'])[_0x78e8a3(0x22e)]((0x0,l[_0x78e8a3(0x1eb)])(this[_0x78e8a3(0x1f6)]))[_0x78e8a3(0x1db)](async _0x3dfa8e=>{const _0x537027=_0x78e8a3;let _0x8bdc7d=_0x3dfa8e['unit'][_0x537027(0x22c)]();this[_0x537027(0x184)][_0x537027(0x1dd)](_0x8bdc7d)||this[_0x537027(0x179)](_0x8bdc7d);}),this['_univerInstanceService'][_0x78e8a3(0x1bf)](e[_0x78e8a3(0x221)][_0x78e8a3(0x1f7)])[_0x78e8a3(0x22e)]((0x0,l['takeUntil'])(this[_0x78e8a3(0x1f6)]))['subscribe'](_0x26a843=>{const _0x13f660=_0x78e8a3;let _0x2af9ff=_0x26a843['getUnitId'](),_0x28c976=this[_0x13f660(0x184)][_0x13f660(0x18b)](_0x2af9ff);_0x28c976==null||_0x28c976[_0x13f660(0x1ec)]();});}async[_0x2a6aa1(0x179)](_0x2f9a44){const _0x4aedb8=_0x2a6aa1;let _0x441ac5=await this['_collabSessionService'][_0x4aedb8(0x1cc)](_0x2f9a44),_0x485872=this['_injector'][_0x4aedb8(0x1d1)](x,_0x2f9a44,_0x441ac5);return _0x485872[_0x4aedb8(0x223)](),this[_0x4aedb8(0x184)][_0x4aedb8(0x222)](_0x2f9a44,_0x485872),_0x485872;}};y=v([_(0x0,e[_0x2a6aa1(0x1a5)]),_(0x1,(0x0,e[_0x2a6aa1(0x189)])(e[_0x2a6aa1(0x1cf)])),_(0x2,(0x0,e[_0x2a6aa1(0x189)])(o['CollaborationSessionService']))],y);let b=function(_0x525a2e){const _0x41e165=_0x2a6aa1;return _0x525a2e[_0x41e165(0x1d9)]=_0x41e165(0x1c6),_0x525a2e[_0x41e165(0x1de)]=_0x41e165(0x21b),_0x525a2e[_0x41e165(0x218)]=_0x41e165(0x1f3),_0x525a2e[_0x41e165(0x1d7)]=_0x41e165(0x1b5),_0x525a2e[_0x41e165(0x1c7)]='presenting',_0x525a2e;}({}),x=class extends e[_0x2a6aa1(0x1e4)]{get[_0x2a6aa1(0x1fb)](){const _0x135ab2=_0x2a6aa1;return this[_0x135ab2(0x17f)][_0x135ab2(0x176)]();}constructor(_0x2d5cce,_0x5ad87d,_0x242327,_0x242882,_0x1adf4e){const _0x5c7cdd=_0x2a6aa1;super(),this[_0x5c7cdd(0x1c1)]=_0x2d5cce,this[_0x5c7cdd(0x1a4)]=_0x5ad87d,this['_configService']=_0x242327,this[_0x5c7cdd(0x1b3)]=_0x242882,this['_commandService']=_0x1adf4e,h(this,_0x5c7cdd(0x17f),new c[(_0x5c7cdd(0x1b0))](_0x5c7cdd(0x21b))),h(this,'status$',this[_0x5c7cdd(0x17f)][_0x5c7cdd(0x1a6)]()),h(this,_0x5c7cdd(0x20c),!0x1),h(this,'_commandDisposable',null),h(this,_0x5c7cdd(0x202),null);}['dispose'](){const _0x10cc61=_0x2a6aa1;var _0x5609be;(_0x5609be=this[_0x10cc61(0x1f0)])==null||_0x5609be[_0x10cc61(0x1ec)](),this[_0x10cc61(0x17f)][_0x10cc61(0x193)](_0x10cc61(0x21b)),this[_0x10cc61(0x17f)]['complete']();}['getStatus'](){return this['_status'];}[_0x2a6aa1(0x223)](){const _0x319171=_0x2a6aa1;this[_0x319171(0x20c)]||(this['_init']=!0x0,this[_0x319171(0x1a4)]['sessionStatus$']['pipe']((0x0,l[_0x319171(0x1eb)])(this[_0x319171(0x1f6)]))[_0x319171(0x1db)](_0x58620a=>{const _0xb6a3b1=_0x319171;switch(_0x58620a){case o['SessionStatus']['OFFLINE']:this[_0xb6a3b1(0x1d4)]();break;case o[_0xb6a3b1(0x19c)][_0xb6a3b1(0x1e7)]:this[_0xb6a3b1(0x225)]();break;default:}}),this[_0x319171(0x1a4)][_0x319171(0x215)]['pipe']((0x0,l[_0x319171(0x1eb)])(this[_0x319171(0x1f6)]))[_0x319171(0x1db)](_0x5ccf5c=>{const _0x369cdc=_0x319171;let {eventID:_0x2789e9}=_0x5ccf5c;switch(_0x2789e9){case a[_0x369cdc(0x188)][_0x369cdc(0x1ef)]:this['_handleNewHost'](_0x5ccf5c);break;case a[_0x369cdc(0x188)][_0x369cdc(0x1c9)]:this['_handleOperation'](_0x5ccf5c);break;case a['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x369cdc(0x21c)]();break;case a[_0x369cdc(0x188)][_0x369cdc(0x1d2)]:this[_0x369cdc(0x1bb)](_0x5ccf5c);break;default:}}));}['tryStartPresenting'](){const _0x1b34d1=_0x2a6aa1;this[_0x1b34d1(0x1a4)][_0x1b34d1(0x1e8)]({'eventID':a[_0x1b34d1(0x188)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1b34d1(0x1c1)],'userID':this[_0x1b34d1(0x1a4)][_0x1b34d1(0x21a)]()}},this[_0x1b34d1(0x1c1)]);}[_0x2a6aa1(0x1a3)](){const _0x2ba4bf=_0x2a6aa1;this[_0x2ba4bf(0x1fb)]===_0x2ba4bf(0x224)&&(this[_0x2ba4bf(0x17f)]['next'](_0x2ba4bf(0x21b)),this['_collabSession'][_0x2ba4bf(0x1e8)]({'eventID':a['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2ba4bf(0x1c1)]}},this[_0x2ba4bf(0x1c1)]));}['startFollowing'](){const _0x5cd6cb=_0x2a6aa1;this[_0x5cd6cb(0x1fb)]===_0x5cd6cb(0x1b5)&&(this[_0x5cd6cb(0x17f)][_0x5cd6cb(0x193)](_0x5cd6cb(0x1f3)),this['_startFollowing']());}[_0x2a6aa1(0x22d)](){const _0x1f96d1=_0x2a6aa1;this['_status']===_0x1f96d1(0x1f3)&&this[_0x1f96d1(0x21f)]();}[_0x2a6aa1(0x192)](_0xb03af9){const _0x125710=_0x2a6aa1;let {presenter:_0x4e59ca}=_0xb03af9['data'],_0x302236=this[_0x125710(0x1a4)][_0x125710(0x21a)]();this[_0x125710(0x202)]=_0x4e59ca,_0x4e59ca===_0x302236?(this[_0x125710(0x21f)](),this[_0x125710(0x18c)]()):this[_0x125710(0x1fb)]!==_0x125710(0x1b5)&&(this[_0x125710(0x1d3)](),this[_0x125710(0x174)]());}[_0x2a6aa1(0x182)](){const _0x4f59fd=_0x2a6aa1;let _0x230b90={'eventID':a['CollaborationEvent'][_0x4f59fd(0x185)]};this[_0x4f59fd(0x1a4)][_0x4f59fd(0x1e8)](_0x230b90,this['_unitID']);}[_0x2a6aa1(0x21c)](){const _0x2efacc=_0x2a6aa1;this[_0x2efacc(0x202)]=null,this[_0x2efacc(0x1fb)]!==_0x2efacc(0x224)&&this[_0x2efacc(0x217)]();}[_0x2a6aa1(0x1bb)](_0x1d07cd){const _0x214a0a=_0x2a6aa1;if(this[_0x214a0a(0x1fb)]==='following'&&this[_0x214a0a(0x202)]===_0x1d07cd['data'][_0x214a0a(0x190)]){let _0x31ea5d=(0x0,a['parseProtocolChangeset'])(_0x1d07cd[_0x214a0a(0x209)])[_0x214a0a(0x197)][_0x214a0a(0x1b8)]()[_0x214a0a(0x1ed)](_0x190508=>_0x190508['id']===s[_0x214a0a(0x187)]['id']);if(_0x31ea5d){let _0x535a54=_0x31ea5d[_0x214a0a(0x17d)][_0x214a0a(0x1f2)],_0x5b59d7=_0x31ea5d[_0x214a0a(0x17d)]['sheet']['id'];setTimeout(()=>{const _0x5a1201=_0x214a0a;this['_commandService'][_0x5a1201(0x227)](s[_0x5a1201(0x17e)]['id'],{'unitId':_0x535a54,'subUnitId':_0x5b59d7},{'fromCollab':!0x0});});}}}[_0x2a6aa1(0x18c)](){const _0x150205=_0x2a6aa1;var _0x16a47e;(_0x16a47e=this[_0x150205(0x1f0)])==null||_0x16a47e[_0x150205(0x1ec)](),this[_0x150205(0x17f)][_0x150205(0x193)](_0x150205(0x224));let _0x9f4cb5=new Map(),_0x3b1844=this['_commandDisposable']=new e[(_0x150205(0x1c0))]();_0x3b1844[_0x150205(0x191)]((0x0,e[_0x150205(0x1d8)])(()=>{const _0x482e16=_0x150205;_0x9f4cb5[_0x482e16(0x172)](({subject:_0x34ba14,subscription:_0x1ee6b8})=>{const _0x593b61=_0x482e16;_0x1ee6b8[_0x593b61(0x183)](),_0x34ba14['complete']();}),_0x9f4cb5[_0x482e16(0x20a)]();})),_0x3b1844[_0x150205(0x191)](this[_0x150205(0x200)][_0x150205(0x1ce)](_0x59d296=>{const _0x5aea20=_0x150205;if(_0x59d296[_0x5aea20(0x229)]!==e['CommandType'][_0x5aea20(0x1ff)]||!this[_0x5aea20(0x1b3)][_0x5aea20(0x1ca)](_0x59d296['id']))return;let {id:_0x2c365e}=_0x59d296,_0x442dfc;if(_0x9f4cb5[_0x5aea20(0x1dd)](_0x2c365e))_0x442dfc=_0x9f4cb5[_0x5aea20(0x18b)](_0x2c365e)[_0x5aea20(0x1ab)];else{var _0x2a1984;_0x442dfc=new c['Subject']();let _0xa76041=_0x442dfc[_0x5aea20(0x22e)]((0x0,l[_0x5aea20(0x19a)])((_0x2a1984=this['_configService'][_0x5aea20(0x18a)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2a1984,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5aea20(0x1db)](_0x344830=>{const _0x5a406f=_0x5aea20;this['_collabSession']['send']({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5a406f(0x1c1)],'operations':{[_0x344830['id']]:{'id':_0x344830['id'],'params':JSON[_0x5a406f(0x228)](_0x344830[_0x5a406f(0x17d)])}}}},this[_0x5a406f(0x1c1)]);});_0x9f4cb5[_0x5aea20(0x222)](_0x2c365e,{'subject':_0x442dfc,'subscription':_0xa76041});}_0x442dfc[_0x5aea20(0x193)](_0x59d296);})),this['_liveShareService'][_0x150205(0x1e2)](this['_unitID'])[_0x150205(0x172)](_0xa00189=>this[_0x150205(0x1a4)][_0x150205(0x1e8)]({'eventID':a[_0x150205(0x188)][_0x150205(0x1c9)],'data':{'unitID':this['_unitID'],'operations':{[_0xa00189['id']]:{'id':_0xa00189['id'],'params':JSON[_0x150205(0x228)](_0xa00189[_0x150205(0x17d)])}}}},this[_0x150205(0x1c1)]));}[_0x2a6aa1(0x1d3)](){const _0x339401=_0x2a6aa1;var _0x4eb665;this[_0x339401(0x17f)][_0x339401(0x193)](_0x339401(0x21b)),(_0x4eb665=this[_0x339401(0x1f0)])==null||_0x4eb665['dispose'](),this[_0x339401(0x1f0)]=null;}[_0x2a6aa1(0x174)](){const _0x3b8d85=_0x2a6aa1;var _0x5f37c3;(_0x5f37c3=this[_0x3b8d85(0x1f0)])==null||_0x5f37c3[_0x3b8d85(0x1ec)](),this[_0x3b8d85(0x17f)][_0x3b8d85(0x193)](_0x3b8d85(0x1f3));}[_0x2a6aa1(0x217)](){const _0x531040=_0x2a6aa1;var _0x2ada3d;this['_status$'][_0x531040(0x193)](_0x531040(0x21b)),(_0x2ada3d=this[_0x531040(0x1f0)])==null||_0x2ada3d['dispose'](),this[_0x531040(0x1f0)]=null;}['_stopFollowing'](){const _0x3fe2fb=_0x2a6aa1;var _0x421d4b;this['_status$'][_0x3fe2fb(0x193)](_0x3fe2fb(0x1b5)),(_0x421d4b=this[_0x3fe2fb(0x1f0)])==null||_0x421d4b['dispose']();}['_handleOperation'](_0x41d822){const _0x2bdd15=_0x2a6aa1;if([_0x2bdd15(0x224),_0x2bdd15(0x1b5),_0x2bdd15(0x1c6)]['includes'](this['_status'])||!_0x41d822[_0x2bdd15(0x209)]['presenter']||_0x41d822[_0x2bdd15(0x209)]['presenter']===this['_collabSession'][_0x2bdd15(0x21a)]())return;this[_0x2bdd15(0x1fb)]===_0x2bdd15(0x21b)&&this[_0x2bdd15(0x174)]();let _0x32a294=_0x41d822[_0x2bdd15(0x209)]['operations'];Object['values'](_0x32a294)[_0x2bdd15(0x172)](_0xf9275c=>{const _0x45fef5=_0x2bdd15;this[_0x45fef5(0x200)][_0x45fef5(0x227)](_0xf9275c['id'],_0xf9275c[_0x45fef5(0x17d)]?JSON[_0x45fef5(0x19e)](_0xf9275c[_0x45fef5(0x17d)]):null,{'fromCollab':!0x0});});}[_0x2a6aa1(0x1d4)](){const _0x3cf985=_0x2a6aa1;var _0xfda53f;this[_0x3cf985(0x17f)]['next'](_0x3cf985(0x1c6)),(_0xfda53f=this[_0x3cf985(0x1f0)])==null||_0xfda53f['dispose']();}[_0x2a6aa1(0x225)](){const _0x253f26=_0x2a6aa1;this['_status$']['next'](_0x253f26(0x21b)),this[_0x253f26(0x182)]();}};x=v([_(0x2,e[_0x2a6aa1(0x186)]),_(0x3,(0x0,e[_0x2a6aa1(0x189)])(g)),_(0x4,e[_0x2a6aa1(0x1ea)])],x);function S(){const _0x1d0d3d=_0x2a6aa1;let _0x2a5f5b=(0x0,t['useDependency'])(y),_0x506ba0=(0x0,t[_0x1d0d3d(0x216)])(e[_0x1d0d3d(0x1a5)]),_0x569878=(0x0,t[_0x1d0d3d(0x198)])(()=>_0x506ba0[_0x1d0d3d(0x219)](e[_0x1d0d3d(0x221)][_0x1d0d3d(0x1f7)]),void 0x0,!0x1,[]),[_0x3aa62f,_0x53dd2c]=(0x0,i['useState'])(null),[_0x354ca2,_0x130c34]=(0x0,i[_0x1d0d3d(0x22a)])(_0x1d0d3d(0x21b)),_0x9ddb1b=(0x0,i['useRef'])(null);return(0x0,i['useEffect'])(()=>(_0x569878&&_0x2a5f5b[_0x1d0d3d(0x1f5)](_0x569878['getUnitId']())['then'](_0x4f3d42=>{const _0x476c3f=_0x1d0d3d;_0x53dd2c(_0x4f3d42),_0x9ddb1b[_0x476c3f(0x1c4)]=_0x4f3d42[_0x476c3f(0x1d5)][_0x476c3f(0x1db)](_0x508d81=>{_0x130c34(_0x508d81);});}),()=>{const _0x75909d=_0x1d0d3d;var _0x3e794d;(_0x3e794d=_0x9ddb1b['current'])==null||_0x3e794d['unsubscribe'](),_0x9ddb1b[_0x75909d(0x1c4)]=null;}),[_0x569878,_0x2a5f5b]),_0x3aa62f?(0x0,u[_0x1d0d3d(0x207)])(n[_0x1d0d3d(0x1a2)],{'align':_0x1d0d3d(0x203),'disabled':_0x354ca2===_0x1d0d3d(0x1c6),'className':_0x1d0d3d(0x175),'overlay':(0x0,u['jsx'])(C,{'status':_0x354ca2,'coordinator':_0x3aa62f}),'children':(0x0,u[_0x1d0d3d(0x207)])(_0x1d0d3d(0x1ad),{'className':(0x0,n[_0x1d0d3d(0x212)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x354ca2==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x354ca2!==_0x1d0d3d(0x1c6)}),'type':_0x1d0d3d(0x1ad),'children':(0x0,u['jsx'])(r[_0x1d0d3d(0x181)],{'className':_0x1d0d3d(0x1f9)})})}):null;}function C(_0x460016){const _0xf2cd4a=_0x2a6aa1;let {status:_0x1e75ee,coordinator:_0x541939}=_0x460016;switch(_0x1e75ee){case _0xf2cd4a(0x21b):return(0x0,u['jsx'])(w,{'coordinator':_0x541939});case _0xf2cd4a(0x1f3):return(0x0,u['jsx'])(T,{'coordinator':_0x541939});case _0xf2cd4a(0x1b5):return(0x0,u[_0xf2cd4a(0x207)])(E,{'coordinator':_0x541939});case _0xf2cd4a(0x1c6):return(0x0,u['jsx'])(O,{});case _0xf2cd4a(0x224):return(0x0,u['jsx'])(D,{'coordinator':_0x541939});default:return null;}}function w(_0x4be624){const _0x4d652b=_0x2a6aa1;let {coordinator:_0x4bee47}=_0x4be624;return(0x0,u[_0x4d652b(0x208)])(u[_0x4d652b(0x21e)],{'children':[(0x0,u[_0x4d652b(0x207)])(_0x4d652b(0x1aa),{'className':_0x4d652b(0x1c2),'children':_0x4d652b(0x226)}),(0x0,u[_0x4d652b(0x207)])(n['Button'],{'onClick':()=>_0x4bee47['tryStartPresenting'](),'children':_0x4d652b(0x1e3)})]});}function T(_0x3b18ca){const _0x44e64b=_0x2a6aa1;let {coordinator:_0x4abe44}=_0x3b18ca;return(0x0,u['jsxs'])(u[_0x44e64b(0x21e)],{'children':[(0x0,u['jsx'])(_0x44e64b(0x1aa),{'className':_0x44e64b(0x1c2),'children':_0x44e64b(0x173)}),(0x0,u['jsx'])(n[_0x44e64b(0x19f)],{'onClick':()=>_0x4abe44[_0x44e64b(0x22d)](),'children':_0x44e64b(0x214)})]});}function E(_0x107d95){const _0x3eb5aa=_0x2a6aa1;let {coordinator:_0x3f007e}=_0x107d95;return(0x0,u[_0x3eb5aa(0x208)])(u[_0x3eb5aa(0x21e)],{'children':[(0x0,u[_0x3eb5aa(0x207)])(_0x3eb5aa(0x1aa),{'className':_0x3eb5aa(0x1c2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x3eb5aa(0x207)])(n['Button'],{'variant':_0x3eb5aa(0x1ba),'onClick':()=>_0x3f007e[_0x3eb5aa(0x210)](),'children':'Start\x20following'})]});}function D(_0x8ed177){const _0x583276=_0x2a6aa1;let {coordinator:_0x4d490b}=_0x8ed177;return(0x0,u[_0x583276(0x208)])(u[_0x583276(0x21e)],{'children':[(0x0,u[_0x583276(0x207)])(_0x583276(0x1aa),{'className':_0x583276(0x1c2),'children':_0x583276(0x20e)}),(0x0,u[_0x583276(0x207)])(n[_0x583276(0x19f)],{'variant':_0x583276(0x199),'onClick':()=>_0x4d490b[_0x583276(0x1a3)](),'children':'Stop\x20presenting'})]});}function O(){const _0x8d0f1f=_0x2a6aa1;return(0x0,u['jsx'])(u[_0x8d0f1f(0x21e)],{'children':'You\x27are\x20offline.'});}let k=class extends e[_0x2a6aa1(0x1e9)]{constructor(_0xd1e325,_0x2a0112){const _0x142d1b=_0x2a6aa1;super(),this[_0x142d1b(0x17a)]=_0xd1e325,this[_0x142d1b(0x1fe)]=_0x2a0112,this[_0x142d1b(0x1da)]();}[_0x2a6aa1(0x1da)](){const _0x44caec=_0x2a6aa1;this[_0x44caec(0x220)](this[_0x44caec(0x1fe)][_0x44caec(0x1b2)](t[_0x44caec(0x20b)][_0x44caec(0x18d)],()=>(0x0,t['connectInjector'])(S,this[_0x44caec(0x17a)])));}};k=v([_(0x0,(0x0,e['Inject'])(e[_0x2a6aa1(0x1cf)])),_(0x1,t[_0x2a6aa1(0x205)])],k);function _0x4b1b(){const _0x1dd580=['subject','string','button','function','pluginName','BehaviorSubject','getOwnPropertyDescriptor','registerComponent','_liveShareService','_reporters','not-following','0.25.1','prototype','reverse','override','text','_handleNewChangeSets','mergeOverrideWithDependencies','symbol','live-share.config','getTypeOfUnitDisposed$','DisposableCollection','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','161084EWpetQ','current','length','offline','PRESENTING','Plugin','LIVESHARE_OPERATION','shouldShareOperation','LiveShareController','requireSession','decorate','onCommandExecuted','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','NEW_CHANGESETS','_stopPresenting','_handleOffline','status$','registerDependencies','NOT_FOLLOWING','toDisposable','OFFLINE','_mountLiveShare','subscribe','touchDependencies','has','IDLE','SetZoomRatioOperation','merge','_univerInstanceService','getInitialStates','Start','RxDisposable','LiveShareService','11012782ADfTJQ','ONLINE','send','Disposable','ICommandService','takeUntil','dispose','find','1416980CJfFNx','LIVESHARE_NEW_HOST','_commandDisposable','1817893HgGPrN','unitId','following','1394168jqwdKy','getLiveShareCoordinator','dispose$','UNIVER_SHEET','962739iQnpOr','univer-size-4','LiveShareStatus','_status','LiveShareCoordinator','from','_uiPartsService','OPERATION','_commandService','DependentOn','_presenter','end','UNIVER_LIVE_SHARE_PLUGIN','IUIPartsService','setConfig','jsx','jsxs','data','clear','BuiltInUIPart','_init','63KxnkGQ','You\x27re\x20presenting\x20the\x20document','map','startFollowing','toStringTag','clsx','version','Stop\x20following','event$','useDependency','_beIdle','FOLLOWING','getCurrentTypeOfUnit$','getMemberID','idle','_handleTerminate','2liAotl','Fragment','_stopFollowing','disposeWithMe','UniverInstanceType','set','init','presenting','_handleOnline','Present\x20this\x20document','executeCommand','stringify','type','useState','delete','getUnitId','stopFollowing','pipe','1027400AiLpTk','forEach','You\x27re\x20following\x20the\x20presenter','_startFollowing','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','getValue','object','18RKzSnP','_startLiveShareCoordinator','_injector','_configService','UniverCollaborationClientPlugin','params','SetWorksheetActiveOperation','_status$','UniverLiveSharePlugin','LiveShareIcon','_fetchOperations','unsubscribe','_entities','LIVESHARE_FETCH_OPERATIONS','IConfigService','InsertSheetMutation','CollaborationEvent','Inject','getConfig','get','_startPresenting','HEADER_MENU','UNIVER_UNKNOWN','getLiveShareCoordinatorSync','memberID','add','_handleNewHost','next','onRendered','_collabSessionService','_sharedOperations','mutations','useObservable','default','throttleTime','registerSharedOperation','SessionStatus','registerInitialStateReporter','parse','Button','_config','getTypeOfUnitAdded$','Dropdown','stopPresenting','_collabSession','IUniverInstanceService','asObservable','constructor','115oYeyAW','defineProperty','div'];_0x4b1b=function(){return _0x1dd580;};return _0x4b1b();}var A='@univerjs-pro/live-share',j=_0x2a6aa1(0x1b6);const M={};let N=class extends e['Disposable']{constructor(_0x538552){const _0x4e571a=_0x2a6aa1;super(),this[_0x4e571a(0x1b3)]=_0x538552,this[_0x4e571a(0x20c)]();}[_0x2a6aa1(0x20c)](){const _0x274772=_0x2a6aa1;[d[_0x274772(0x1df)]['id'],d['SetScrollOperation']['id'],s[_0x274772(0x17e)]['id']]['forEach'](_0x3068c1=>{const _0x2ef60f=_0x274772;this[_0x2ef60f(0x220)](this[_0x2ef60f(0x1b3)]['registerSharedOperation'](_0x3068c1));});}};N=v([_(0x0,(0x0,e['Inject'])(g))],N);function _0x1878(_0x5bfa1c,_0x14f4ae){_0x5bfa1c=_0x5bfa1c-0x171;const _0x4b1b2b=_0x4b1b();let _0x1878f9=_0x4b1b2b[_0x5bfa1c];return _0x1878f9;}let P=class extends e[_0x2a6aa1(0x1c8)]{constructor(_0x1c80af=M,_0x3a8f4a,_0x1501c9){const _0x28355b=_0x2a6aa1;super(),this[_0x28355b(0x1a0)]=_0x1c80af,this[_0x28355b(0x17a)]=_0x3a8f4a,this[_0x28355b(0x17b)]=_0x1501c9;let {..._0x57a5d2}=(0x0,e[_0x28355b(0x1e0)])({},M,this['_config']);this[_0x28355b(0x17b)][_0x28355b(0x206)](_0x28355b(0x1be),_0x57a5d2);}['onStarting'](){const _0x125fe1=_0x2a6aa1;(0x0,e[_0x125fe1(0x1d6)])(this[_0x125fe1(0x17a)],(0x0,e[_0x125fe1(0x1bc)])([[g],[y],[N],[k]],this[_0x125fe1(0x1a0)][_0x125fe1(0x1b9)])),(0x0,e['touchDependencies'])(this[_0x125fe1(0x17a)],[[N]]);}[_0x2a6aa1(0x194)](){const _0x2b0116=_0x2a6aa1;(0x0,e[_0x2b0116(0x1dc)])(this[_0x2b0116(0x17a)],[[k]]);}};h(P,_0x2a6aa1(0x229),e[_0x2a6aa1(0x221)][_0x2a6aa1(0x18e)]),h(P,_0x2a6aa1(0x1af),_0x2a6aa1(0x204)),h(P,'packageName',A),h(P,_0x2a6aa1(0x213),j),P=v([(0x0,e[_0x2a6aa1(0x201)])(o[_0x2a6aa1(0x17c)]),_(0x1,(0x0,e[_0x2a6aa1(0x189)])(e[_0x2a6aa1(0x1cf)])),_(0x2,e[_0x2a6aa1(0x186)])],P),Object[_0x2a6aa1(0x1a9)](exports,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return k;}}),exports['LiveShare']=S,Object['defineProperty'](exports,_0x2a6aa1(0x1cb),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x2a6aa1(0x1a9)](exports,_0x2a6aa1(0x1fc),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x2a6aa1(0x1e5)]=g,exports[_0x2a6aa1(0x1fa)]=b,Object['defineProperty'](exports,_0x2a6aa1(0x180),{'enumerable':!0x0,'get':function(){return P;}});
1
+ const _0x37f72d=_0x146a;function _0x285d(){const _0x1680be=['clsx','InsertSheetMutation','_startFollowing','LiveShareService','dispose','stopFollowing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getLiveShareCoordinatorSync','live-share.config','current','726OvneaL','parseProtocolChangeset','UNIVER_LIVE_SHARE_PLUGIN','send','clear','_entities','registerSharedOperation','1410332vtmNyZ','stringify','registerInitialStateReporter','data','_sharedOperations','LiveShareStatus','LIVESHARE_NEW_HOST','472beLZnq','getValue','Dropdown','symbol','21837TJrQDS','UNIVER_SHEET','default','setConfig','values','OFFLINE','_handleOffline','add','_fetchOperations','offline','_commandService','univer-size-4','sheet','CommandType','_init','presenter','presenting','CollaborationSessionService','object','getInitialStates','LiveShareController','DesktopLiveShareController','6REzQpU','onStarting','2ANPjnr','_collabSession','decorate','You\x27re\x20following\x20the\x20presenter','_commandDisposable','Start','iterator','version','startFollowing','ICommandService','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','status$','defineProperty','mutations','8230092xfaJUs','12344hIyYIx','_handleOperation','executeCommand','map','event$','unit','getStatus','stopPresenting','_stopPresenting','get','NEW_CHANGESETS','0.25.2','not-following','OPERATION','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation','div','_handleNewHost','@univerjs-pro/live-share','_status$','Inject','onRendered','throttleTime','Disposable','SAME_OPERATION_SHARE_INTERVAL','SetWorksheetActiveOperation','LiveShareIcon','1958435orgEjY','asObservable','getTypeOfUnitAdded$','sessionStatus$','_handleNewChangeSets','override','type','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','CollaborationEvent','jsx','disposeWithMe','NOT_FOLLOWING','operations','ONLINE','_beIdle','call','1422ATyBbV','prototype','getTypeOfUnitDisposed$','pluginName','subscribe','useEffect','UniverInstanceType','_univerInstanceService','_stopFollowing','_liveShareService','_reporters','BehaviorSubject','complete','createInstance','You\x27re\x20presenting\x20the\x20document','mergeOverrideWithDependencies','RxDisposable','dispose$','_injector','pipe','_mountLiveShare','getConfig','toDisposable','Fragment','_handleTerminate','takeUntil','getUnitId','UNIVER_UNKNOWN','function','_presenter','toStringTag','memberID','getOwnPropertyDescriptor','button','tryStartPresenting','Present\x20this\x20document','_unitID','jsxs','_uiPartsService','getLiveShareCoordinator','has','SessionStatus','onCommandExecuted','toPrimitive','LiveShare','IUIPartsService','init','constructor','_status','length','Start\x20following','next','idle','Plugin','SetZoomRatioOperation','_configService','LiveShareCoordinator','reverse','Module','LIVESHARE_OPERATION','_startLiveShareCoordinator','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','unsubscribe','parse','text','following','BuiltInUIPart','792527QQNxpc','You\x27are\x20offline.','registerDependencies','_startPresenting','useState','requireSession','touchDependencies','getCurrentTypeOfUnit$','33710YcNHQK','SetScrollOperation','connectInjector','_handleOnline','IDLE','getMemberID','LIVESHARE_TERMINATE','string','_collabSessionService','_config','merge','FOLLOWING','Button','IUniverInstanceService','packageName','Injector','delete','end'];_0x285d=function(){return _0x1680be;};return _0x285d();}(function(_0x547fbf,_0x2ffe27){const _0x4f8936=_0x146a,_0x5110a7=_0x547fbf();while(!![]){try{const _0x3ea6a0=-parseInt(_0x4f8936(0x220))/0x1*(parseInt(_0x4f8936(0x1a1))/0x2)+parseInt(_0x4f8936(0x189))/0x3*(parseInt(_0x4f8936(0x185))/0x4)+parseInt(_0x4f8936(0x1cb))/0x5*(parseInt(_0x4f8936(0x19f))/0x6)+parseInt(_0x4f8936(0x17e))/0x7+parseInt(_0x4f8936(0x1b0))/0x8*(parseInt(_0x4f8936(0x1db))/0x9)+parseInt(_0x4f8936(0x228))/0xa*(parseInt(_0x4f8936(0x244))/0xb)+-parseInt(_0x4f8936(0x1af))/0xc;if(_0x3ea6a0===_0x2ffe27)break;else _0x5110a7['push'](_0x5110a7['shift']());}catch(_0x49078a){_0x5110a7['push'](_0x5110a7['shift']());}}}(_0x285d,0x6b6bd),Object['defineProperty'](exports,Symbol[_0x37f72d(0x1f9)],{'value':_0x37f72d(0x215)}));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(_0x47f2b3){'@babel/helpers - typeof';const _0xb939b2=_0x37f72d;return f=typeof Symbol==_0xb939b2(0x1f7)&&typeof Symbol[_0xb939b2(0x1a7)]==_0xb939b2(0x188)?function(_0x4a2b84){return typeof _0x4a2b84;}:function(_0x2def89){const _0x525044=_0xb939b2;return _0x2def89&&typeof Symbol==_0x525044(0x1f7)&&_0x2def89[_0x525044(0x20a)]===Symbol&&_0x2def89!==Symbol[_0x525044(0x1dc)]?_0x525044(0x188):typeof _0x2def89;},f(_0x47f2b3);}function _0x146a(_0x8c9f55,_0x9b97e){_0x8c9f55=_0x8c9f55-0x179;const _0x285d98=_0x285d();let _0x146af0=_0x285d98[_0x8c9f55];return _0x146af0;}function p(_0x2045b5,_0x290f22){const _0x3e1828=_0x37f72d;if(f(_0x2045b5)!=_0x3e1828(0x19b)||!_0x2045b5)return _0x2045b5;var _0x437d10=_0x2045b5[Symbol[_0x3e1828(0x206)]];if(_0x437d10!==void 0x0){var _0x1104a9=_0x437d10[_0x3e1828(0x1da)](_0x2045b5,_0x290f22||_0x3e1828(0x18b));if(f(_0x1104a9)!=_0x3e1828(0x19b))return _0x1104a9;throw TypeError(_0x3e1828(0x240));}return(_0x290f22===_0x3e1828(0x22f)?String:Number)(_0x2045b5);}function m(_0x549fd1){const _0x1dedc5=_0x37f72d;var _0x597eda=p(_0x549fd1,_0x1dedc5(0x22f));return f(_0x597eda)==_0x1dedc5(0x188)?_0x597eda:_0x597eda+'';}function h(_0x4ae12e,_0x5f03ce,_0x331295){const _0x882ec8=_0x37f72d;return(_0x5f03ce=m(_0x5f03ce))in _0x4ae12e?Object[_0x882ec8(0x1ad)](_0x4ae12e,_0x5f03ce,{'value':_0x331295,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ae12e[_0x5f03ce]=_0x331295,_0x4ae12e;}var g=class extends e[_0x37f72d(0x1c7)]{constructor(..._0x518c75){const _0x5a5f21=_0x37f72d;super(..._0x518c75),h(this,_0x5a5f21(0x182),new Set()),h(this,_0x5a5f21(0x1e5),new Set());}[_0x37f72d(0x17d)](_0x10e721){const _0x18a931=_0x37f72d;return this[_0x18a931(0x182)][_0x18a931(0x190)](_0x10e721),(0x0,e[_0x18a931(0x1f1)])(()=>this[_0x18a931(0x182)][_0x18a931(0x238)](_0x10e721));}[_0x37f72d(0x180)](_0xb79067){const _0x12c147=_0x37f72d;return this[_0x12c147(0x1e5)][_0x12c147(0x190)](_0xb79067),(0x0,e[_0x12c147(0x1f1)])(()=>this[_0x12c147(0x1e5)]['delete'](_0xb79067));}[_0x37f72d(0x1bf)](_0x294d90){const _0x4d11d1=_0x37f72d;return this[_0x4d11d1(0x182)][_0x4d11d1(0x203)](_0x294d90);}[_0x37f72d(0x19c)](_0x58881a){const _0x559e36=_0x37f72d;return Array['from'](this[_0x559e36(0x1e5)])[_0x559e36(0x1b3)](_0x2e5a5b=>_0x2e5a5b(_0x58881a));}};function _(_0x88e4,_0x106363){return function(_0x11f3df,_0x341e38){_0x106363(_0x11f3df,_0x341e38,_0x88e4);};}function v(_0x513b15,_0x3bed6b,_0xadb18d,_0x1cb565){const _0xdb5c42=_0x37f72d;var _0x2642af=arguments[_0xdb5c42(0x20c)],_0x499d63=_0x2642af<0x3?_0x3bed6b:_0x1cb565===null?_0x1cb565=Object[_0xdb5c42(0x1fb)](_0x3bed6b,_0xadb18d):_0x1cb565,_0x1d134e;if(typeof Reflect==_0xdb5c42(0x19b)&&typeof Reflect[_0xdb5c42(0x1a3)]==_0xdb5c42(0x1f7))_0x499d63=Reflect[_0xdb5c42(0x1a3)](_0x513b15,_0x3bed6b,_0xadb18d,_0x1cb565);else{for(var _0x1c75cd=_0x513b15['length']-0x1;_0x1c75cd>=0x0;_0x1c75cd--)(_0x1d134e=_0x513b15[_0x1c75cd])&&(_0x499d63=(_0x2642af<0x3?_0x1d134e(_0x499d63):_0x2642af>0x3?_0x1d134e(_0x3bed6b,_0xadb18d,_0x499d63):_0x1d134e(_0x3bed6b,_0xadb18d))||_0x499d63);}return _0x2642af>0x3&&_0x499d63&&Object[_0xdb5c42(0x1ad)](_0x3bed6b,_0xadb18d,_0x499d63),_0x499d63;}let y=class extends e[_0x37f72d(0x1eb)]{constructor(_0x1fc102,_0x13f1c0,_0x3585cf){const _0x53cfea=_0x37f72d;super(),this[_0x53cfea(0x1e2)]=_0x1fc102,this[_0x53cfea(0x1ed)]=_0x13f1c0,this['_collabSessionService']=_0x3585cf,h(this,'_entities',new Map()),this['_init']();}async[_0x37f72d(0x202)](_0x2fbe34){const _0x24bfce=_0x37f72d;return this['_entities'][_0x24bfce(0x203)](_0x2fbe34)||await this['_startLiveShareCoordinator'](_0x2fbe34),this[_0x24bfce(0x17c)][_0x24bfce(0x1b9)](_0x2fbe34);}[_0x37f72d(0x241)](_0x19c1f2){const _0x4fbd9e=_0x37f72d;var _0x527d86;return(_0x527d86=this[_0x4fbd9e(0x17c)][_0x4fbd9e(0x1b9)](_0x19c1f2))==null?null:_0x527d86;}[_0x37f72d(0x197)](){const _0x79b4e0=_0x37f72d;this[_0x79b4e0(0x1e2)][_0x79b4e0(0x1cd)](e['UniverInstanceType'][_0x79b4e0(0x18a)])[_0x79b4e0(0x1ee)]((0x0,l[_0x79b4e0(0x1f4)])(this['dispose$']))[_0x79b4e0(0x1df)](async _0x1d68f8=>{const _0xfeb224=_0x79b4e0;let _0x1377c1=_0x1d68f8[_0xfeb224(0x1b5)][_0xfeb224(0x1f5)]();this[_0xfeb224(0x17c)]['has'](_0x1377c1)||this[_0xfeb224(0x217)](_0x1377c1);}),this[_0x79b4e0(0x1e2)][_0x79b4e0(0x1dd)](e[_0x79b4e0(0x1e1)][_0x79b4e0(0x18a)])[_0x79b4e0(0x1ee)]((0x0,l['takeUntil'])(this['dispose$']))[_0x79b4e0(0x1df)](_0x3b47d9=>{const _0x261f67=_0x79b4e0;let _0x5f14f3=_0x3b47d9[_0x261f67(0x1f5)](),_0x281b7d=this['_entities'][_0x261f67(0x1b9)](_0x5f14f3);_0x281b7d==null||_0x281b7d['dispose']();});}async[_0x37f72d(0x217)](_0x27e80e){const _0x1b324a=_0x37f72d;let _0x144610=await this[_0x1b324a(0x230)][_0x1b324a(0x225)](_0x27e80e),_0x526020=this['_injector'][_0x1b324a(0x1e8)](x,_0x27e80e,_0x144610);return _0x526020[_0x1b324a(0x209)](),this[_0x1b324a(0x17c)]['set'](_0x27e80e,_0x526020),_0x526020;}};y=v([_(0x0,e[_0x37f72d(0x235)]),_(0x1,(0x0,e['Inject'])(e[_0x37f72d(0x237)])),_(0x2,(0x0,e[_0x37f72d(0x1c4)])(o[_0x37f72d(0x19a)]))],y);let b=function(_0x239d6c){const _0x183994=_0x37f72d;return _0x239d6c['OFFLINE']='offline',_0x239d6c[_0x183994(0x22c)]=_0x183994(0x20f),_0x239d6c[_0x183994(0x233)]=_0x183994(0x21e),_0x239d6c[_0x183994(0x1d6)]=_0x183994(0x1bc),_0x239d6c['PRESENTING']='presenting',_0x239d6c;}({}),x=class extends e[_0x37f72d(0x1eb)]{get[_0x37f72d(0x20b)](){const _0x52c09b=_0x37f72d;return this[_0x52c09b(0x1c3)][_0x52c09b(0x186)]();}constructor(_0x390bd8,_0x4c407,_0x5d48ac,_0x5950f0,_0x361ac3){const _0x369cb6=_0x37f72d;super(),this[_0x369cb6(0x1ff)]=_0x390bd8,this[_0x369cb6(0x1a2)]=_0x4c407,this[_0x369cb6(0x212)]=_0x5d48ac,this['_liveShareService']=_0x5950f0,this[_0x369cb6(0x193)]=_0x361ac3,h(this,_0x369cb6(0x1c3),new c[(_0x369cb6(0x1e6))](_0x369cb6(0x20f))),h(this,_0x369cb6(0x1ac),this['_status$'][_0x369cb6(0x1cc)]()),h(this,_0x369cb6(0x197),!0x1),h(this,'_commandDisposable',null),h(this,_0x369cb6(0x1f8),null);}[_0x37f72d(0x23e)](){const _0x25adb0=_0x37f72d;var _0x58ec8b;(_0x58ec8b=this['_commandDisposable'])==null||_0x58ec8b[_0x25adb0(0x23e)](),this[_0x25adb0(0x1c3)][_0x25adb0(0x20e)](_0x25adb0(0x20f)),this[_0x25adb0(0x1c3)][_0x25adb0(0x1e7)]();}[_0x37f72d(0x1b6)](){return this['_status'];}[_0x37f72d(0x209)](){const _0x40c283=_0x37f72d;this['_init']||(this[_0x40c283(0x197)]=!0x0,this[_0x40c283(0x1a2)][_0x40c283(0x1ce)][_0x40c283(0x1ee)]((0x0,l['takeUntil'])(this[_0x40c283(0x1ec)]))['subscribe'](_0x16dbc2=>{const _0x3d94d6=_0x40c283;switch(_0x16dbc2){case o[_0x3d94d6(0x204)][_0x3d94d6(0x18e)]:this['_handleOffline']();break;case o['SessionStatus'][_0x3d94d6(0x1d8)]:this[_0x3d94d6(0x22b)]();break;default:}}),this[_0x40c283(0x1a2)][_0x40c283(0x1b4)]['pipe']((0x0,l[_0x40c283(0x1f4)])(this[_0x40c283(0x1ec)]))['subscribe'](_0x470b03=>{const _0x4630c2=_0x40c283;let {eventID:_0x1a3e59}=_0x470b03;switch(_0x1a3e59){case a[_0x4630c2(0x1d3)][_0x4630c2(0x184)]:this[_0x4630c2(0x1c1)](_0x470b03);break;case a['CollaborationEvent'][_0x4630c2(0x216)]:this[_0x4630c2(0x1b1)](_0x470b03);break;case a[_0x4630c2(0x1d3)][_0x4630c2(0x22e)]:this[_0x4630c2(0x1f3)]();break;case a[_0x4630c2(0x1d3)][_0x4630c2(0x1ba)]:this[_0x4630c2(0x1cf)](_0x470b03);break;default:}}));}[_0x37f72d(0x1fd)](){const _0x51cae5=_0x37f72d;this['_collabSession'][_0x51cae5(0x17a)]({'eventID':a[_0x51cae5(0x1d3)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x51cae5(0x22d)]()}},this['_unitID']);}[_0x37f72d(0x1b7)](){const _0x4cd7e1=_0x37f72d;this['_status']===_0x4cd7e1(0x199)&&(this[_0x4cd7e1(0x1c3)][_0x4cd7e1(0x20e)]('idle'),this[_0x4cd7e1(0x1a2)][_0x4cd7e1(0x17a)]({'eventID':a[_0x4cd7e1(0x1d3)][_0x4cd7e1(0x22e)],'data':{'unitID':this[_0x4cd7e1(0x1ff)]}},this[_0x4cd7e1(0x1ff)]));}[_0x37f72d(0x1a9)](){const _0xcd703=_0x37f72d;this[_0xcd703(0x20b)]==='not-following'&&(this[_0xcd703(0x1c3)][_0xcd703(0x20e)](_0xcd703(0x21e)),this[_0xcd703(0x23c)]());}[_0x37f72d(0x23f)](){const _0x3fb98d=_0x37f72d;this['_status']===_0x3fb98d(0x21e)&&this['_stopFollowing']();}['_handleNewHost'](_0x1e5dda){const _0x29993e=_0x37f72d;let {presenter:_0x43c62a}=_0x1e5dda[_0x29993e(0x181)],_0x8b1237=this[_0x29993e(0x1a2)][_0x29993e(0x22d)]();this[_0x29993e(0x1f8)]=_0x43c62a,_0x43c62a===_0x8b1237?(this[_0x29993e(0x1e3)](),this[_0x29993e(0x223)]()):this[_0x29993e(0x20b)]!=='not-following'&&(this[_0x29993e(0x1b8)](),this[_0x29993e(0x23c)]());}[_0x37f72d(0x191)](){const _0x5632c0=_0x37f72d;let _0x299575={'eventID':a[_0x5632c0(0x1d3)][_0x5632c0(0x1be)]};this[_0x5632c0(0x1a2)]['send'](_0x299575,this[_0x5632c0(0x1ff)]);}['_handleTerminate'](){const _0x1abd12=_0x37f72d;this[_0x1abd12(0x1f8)]=null,this[_0x1abd12(0x20b)]!==_0x1abd12(0x199)&&this[_0x1abd12(0x1d9)]();}[_0x37f72d(0x1cf)](_0x1dfcc0){const _0x13dcc7=_0x37f72d;if(this[_0x13dcc7(0x20b)]===_0x13dcc7(0x21e)&&this[_0x13dcc7(0x1f8)]===_0x1dfcc0[_0x13dcc7(0x181)][_0x13dcc7(0x1fa)]){let _0x2608e7=(0x0,a[_0x13dcc7(0x245)])(_0x1dfcc0[_0x13dcc7(0x181)])[_0x13dcc7(0x1ae)][_0x13dcc7(0x214)]()['find'](_0x56e836=>_0x56e836['id']===s[_0x13dcc7(0x23b)]['id']);if(_0x2608e7){let _0x2fdf34=_0x2608e7[_0x13dcc7(0x218)]['unitId'],_0x5d57e4=_0x2608e7[_0x13dcc7(0x218)][_0x13dcc7(0x195)]['id'];setTimeout(()=>{const _0x1759f6=_0x13dcc7;this['_commandService'][_0x1759f6(0x1b2)](s[_0x1759f6(0x1c9)]['id'],{'unitId':_0x2fdf34,'subUnitId':_0x5d57e4},{'fromCollab':!0x0});});}}}[_0x37f72d(0x223)](){const _0x3e6b69=_0x37f72d;var _0x2c05ac;(_0x2c05ac=this[_0x3e6b69(0x1a5)])==null||_0x2c05ac[_0x3e6b69(0x23e)](),this[_0x3e6b69(0x1c3)][_0x3e6b69(0x20e)](_0x3e6b69(0x199));let _0x318f39=new Map(),_0x12c433=this['_commandDisposable']=new e['DisposableCollection']();_0x12c433[_0x3e6b69(0x190)]((0x0,e['toDisposable'])(()=>{const _0x590632=_0x3e6b69;_0x318f39[_0x590632(0x21a)](({subject:_0x17b481,subscription:_0x1798c1})=>{const _0x11cf50=_0x590632;_0x1798c1[_0x11cf50(0x21b)](),_0x17b481[_0x11cf50(0x1e7)]();}),_0x318f39[_0x590632(0x17b)]();})),_0x12c433[_0x3e6b69(0x190)](this[_0x3e6b69(0x193)][_0x3e6b69(0x205)](_0x380c54=>{const _0x5a9fa9=_0x3e6b69;if(_0x380c54[_0x5a9fa9(0x1d1)]!==e[_0x5a9fa9(0x196)][_0x5a9fa9(0x1bd)]||!this['_liveShareService'][_0x5a9fa9(0x1bf)](_0x380c54['id']))return;let {id:_0x20da98}=_0x380c54,_0x2c57ed;if(_0x318f39[_0x5a9fa9(0x203)](_0x20da98))_0x2c57ed=_0x318f39[_0x5a9fa9(0x1b9)](_0x20da98)['subject'];else{var _0x205580;_0x2c57ed=new c['Subject']();let _0x3bcadd=_0x2c57ed['pipe']((0x0,l[_0x5a9fa9(0x1c6)])((_0x205580=this[_0x5a9fa9(0x212)][_0x5a9fa9(0x1f0)](_0x5a9fa9(0x1c8)))==null?0xc8:_0x205580,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a9fa9(0x1df)](_0x10a0a5=>{const _0x2f0fdb=_0x5a9fa9;this[_0x2f0fdb(0x1a2)][_0x2f0fdb(0x17a)]({'eventID':a[_0x2f0fdb(0x1d3)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2f0fdb(0x1ff)],'operations':{[_0x10a0a5['id']]:{'id':_0x10a0a5['id'],'params':JSON[_0x2f0fdb(0x17f)](_0x10a0a5[_0x2f0fdb(0x218)])}}}},this[_0x2f0fdb(0x1ff)]);});_0x318f39['set'](_0x20da98,{'subject':_0x2c57ed,'subscription':_0x3bcadd});}_0x2c57ed[_0x5a9fa9(0x20e)](_0x380c54);})),this['_liveShareService'][_0x3e6b69(0x19c)](this[_0x3e6b69(0x1ff)])[_0x3e6b69(0x21a)](_0x5aa2a2=>this['_collabSession'][_0x3e6b69(0x17a)]({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3e6b69(0x1ff)],'operations':{[_0x5aa2a2['id']]:{'id':_0x5aa2a2['id'],'params':JSON[_0x3e6b69(0x17f)](_0x5aa2a2['params'])}}}},this[_0x3e6b69(0x1ff)]));}[_0x37f72d(0x1b8)](){const _0x407fd3=_0x37f72d;var _0x18aba8;this[_0x407fd3(0x1c3)]['next'](_0x407fd3(0x20f)),(_0x18aba8=this[_0x407fd3(0x1a5)])==null||_0x18aba8[_0x407fd3(0x23e)](),this[_0x407fd3(0x1a5)]=null;}[_0x37f72d(0x23c)](){const _0x57bbc3=_0x37f72d;var _0x47e201;(_0x47e201=this[_0x57bbc3(0x1a5)])==null||_0x47e201['dispose'](),this['_status$'][_0x57bbc3(0x20e)](_0x57bbc3(0x21e));}[_0x37f72d(0x1d9)](){const _0x2ecec8=_0x37f72d;var _0x3039ab;this['_status$'][_0x2ecec8(0x20e)](_0x2ecec8(0x20f)),(_0x3039ab=this[_0x2ecec8(0x1a5)])==null||_0x3039ab[_0x2ecec8(0x23e)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x229da7=_0x37f72d;var _0x5a9ba2;this[_0x229da7(0x1c3)][_0x229da7(0x20e)](_0x229da7(0x1bc)),(_0x5a9ba2=this[_0x229da7(0x1a5)])==null||_0x5a9ba2['dispose']();}['_handleOperation'](_0x4ec14e){const _0x4ebf91=_0x37f72d;if([_0x4ebf91(0x199),'not-following','offline']['includes'](this[_0x4ebf91(0x20b)])||!_0x4ec14e[_0x4ebf91(0x181)]['presenter']||_0x4ec14e[_0x4ebf91(0x181)][_0x4ebf91(0x198)]===this['_collabSession'][_0x4ebf91(0x22d)]())return;this[_0x4ebf91(0x20b)]===_0x4ebf91(0x20f)&&this[_0x4ebf91(0x23c)]();let _0x4f3339=_0x4ec14e[_0x4ebf91(0x181)][_0x4ebf91(0x1d7)];Object[_0x4ebf91(0x18d)](_0x4f3339)[_0x4ebf91(0x21a)](_0x566d46=>{const _0x18d306=_0x4ebf91;this['_commandService']['executeCommand'](_0x566d46['id'],_0x566d46[_0x18d306(0x218)]?JSON[_0x18d306(0x21c)](_0x566d46[_0x18d306(0x218)]):null,{'fromCollab':!0x0});});}[_0x37f72d(0x18f)](){const _0x521409=_0x37f72d;var _0x1622c5;this['_status$'][_0x521409(0x20e)](_0x521409(0x192)),(_0x1622c5=this[_0x521409(0x1a5)])==null||_0x1622c5[_0x521409(0x23e)]();}['_handleOnline'](){const _0x5e5d8a=_0x37f72d;this[_0x5e5d8a(0x1c3)][_0x5e5d8a(0x20e)]('idle'),this[_0x5e5d8a(0x191)]();}};x=v([_(0x2,e['IConfigService']),_(0x3,(0x0,e[_0x37f72d(0x1c4)])(g)),_(0x4,e[_0x37f72d(0x1aa)])],x);function S(){const _0x5c9a78=_0x37f72d;let _0x37d411=(0x0,t['useDependency'])(y),_0x1629e4=(0x0,t['useDependency'])(e['IUniverInstanceService']),_0x290c0b=(0x0,t['useObservable'])(()=>_0x1629e4[_0x5c9a78(0x227)](e[_0x5c9a78(0x1e1)][_0x5c9a78(0x18a)]),void 0x0,!0x1,[]),[_0x12abdc,_0x4403f5]=(0x0,i[_0x5c9a78(0x224)])(null),[_0x13749a,_0x5baf8b]=(0x0,i[_0x5c9a78(0x224)])('idle'),_0xd89e60=(0x0,i['useRef'])(null);return(0x0,i[_0x5c9a78(0x1e0)])(()=>(_0x290c0b&&_0x37d411[_0x5c9a78(0x202)](_0x290c0b[_0x5c9a78(0x1f5)]())['then'](_0x567528=>{const _0x3bd082=_0x5c9a78;_0x4403f5(_0x567528),_0xd89e60[_0x3bd082(0x243)]=_0x567528[_0x3bd082(0x1ac)][_0x3bd082(0x1df)](_0x4b953c=>{_0x5baf8b(_0x4b953c);});}),()=>{const _0x46955f=_0x5c9a78;var _0x1d67eb;(_0x1d67eb=_0xd89e60[_0x46955f(0x243)])==null||_0x1d67eb[_0x46955f(0x21b)](),_0xd89e60['current']=null;}),[_0x290c0b,_0x37d411]),_0x12abdc?(0x0,u[_0x5c9a78(0x1d4)])(n[_0x5c9a78(0x187)],{'align':_0x5c9a78(0x239),'disabled':_0x13749a===_0x5c9a78(0x192),'className':_0x5c9a78(0x1ab),'overlay':(0x0,u['jsx'])(C,{'status':_0x13749a,'coordinator':_0x12abdc}),'children':(0x0,u['jsx'])('button',{'className':(0x0,n[_0x5c9a78(0x23a)])(_0x5c9a78(0x1d2),{'univer-cursor-not-allowed':_0x13749a===_0x5c9a78(0x192),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13749a!==_0x5c9a78(0x192)}),'type':_0x5c9a78(0x1fc),'children':(0x0,u[_0x5c9a78(0x1d4)])(r[_0x5c9a78(0x1ca)],{'className':_0x5c9a78(0x194)})})}):null;}function C(_0x48c4e6){const _0xd4fbc3=_0x37f72d;let {status:_0xa2b120,coordinator:_0x5a09ca}=_0x48c4e6;switch(_0xa2b120){case'idle':return(0x0,u[_0xd4fbc3(0x1d4)])(w,{'coordinator':_0x5a09ca});case _0xd4fbc3(0x21e):return(0x0,u['jsx'])(T,{'coordinator':_0x5a09ca});case _0xd4fbc3(0x1bc):return(0x0,u[_0xd4fbc3(0x1d4)])(E,{'coordinator':_0x5a09ca});case'offline':return(0x0,u[_0xd4fbc3(0x1d4)])(O,{});case _0xd4fbc3(0x199):return(0x0,u[_0xd4fbc3(0x1d4)])(D,{'coordinator':_0x5a09ca});default:return null;}}function w(_0x14b081){const _0x101f0c=_0x37f72d;let {coordinator:_0x16ed80}=_0x14b081;return(0x0,u['jsxs'])(u[_0x101f0c(0x1f2)],{'children':[(0x0,u[_0x101f0c(0x1d4)])(_0x101f0c(0x1c0),{'className':_0x101f0c(0x219),'children':_0x101f0c(0x1fe)}),(0x0,u['jsx'])(n[_0x101f0c(0x234)],{'onClick':()=>_0x16ed80[_0x101f0c(0x1fd)](),'children':_0x101f0c(0x1a6)})]});}function T(_0x3997e1){const _0xd1f1b4=_0x37f72d;let {coordinator:_0xdaab3c}=_0x3997e1;return(0x0,u[_0xd1f1b4(0x200)])(u['Fragment'],{'children':[(0x0,u[_0xd1f1b4(0x1d4)])(_0xd1f1b4(0x1c0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xd1f1b4(0x1a4)}),(0x0,u['jsx'])(n['Button'],{'onClick':()=>_0xdaab3c[_0xd1f1b4(0x23f)](),'children':'Stop\x20following'})]});}function E(_0x362aed){const _0x3ce776=_0x37f72d;let {coordinator:_0x30f6e3}=_0x362aed;return(0x0,u[_0x3ce776(0x200)])(u[_0x3ce776(0x1f2)],{'children':[(0x0,u[_0x3ce776(0x1d4)])(_0x3ce776(0x1c0),{'className':_0x3ce776(0x219),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u['jsx'])(n['Button'],{'variant':_0x3ce776(0x21d),'onClick':()=>_0x30f6e3[_0x3ce776(0x1a9)](),'children':_0x3ce776(0x20d)})]});}function D(_0x399db0){const _0x38cf22=_0x37f72d;let {coordinator:_0x1616cc}=_0x399db0;return(0x0,u[_0x38cf22(0x200)])(u['Fragment'],{'children':[(0x0,u[_0x38cf22(0x1d4)])('div',{'className':_0x38cf22(0x219),'children':_0x38cf22(0x1e9)}),(0x0,u[_0x38cf22(0x1d4)])(n[_0x38cf22(0x234)],{'variant':'default','onClick':()=>_0x1616cc[_0x38cf22(0x1b7)](),'children':'Stop\x20presenting'})]});}function O(){const _0x14e206=_0x37f72d;return(0x0,u[_0x14e206(0x1d4)])(u['Fragment'],{'children':_0x14e206(0x221)});}let k=class extends e[_0x37f72d(0x1c7)]{constructor(_0x43c4f8,_0x51f4d7){const _0x4f453e=_0x37f72d;super(),this[_0x4f453e(0x1ed)]=_0x43c4f8,this[_0x4f453e(0x201)]=_0x51f4d7,this[_0x4f453e(0x1ef)]();}['_mountLiveShare'](){const _0x567fad=_0x37f72d;this[_0x567fad(0x1d5)](this[_0x567fad(0x201)]['registerComponent'](t[_0x567fad(0x21f)]['HEADER_MENU'],()=>(0x0,t[_0x567fad(0x22a)])(S,this[_0x567fad(0x1ed)])));}};k=v([_(0x0,(0x0,e['Inject'])(e[_0x37f72d(0x237)])),_(0x1,t[_0x37f72d(0x208)])],k);var A=_0x37f72d(0x1c2),j=_0x37f72d(0x1bb);const M={};let N=class extends e[_0x37f72d(0x1c7)]{constructor(_0x11d265){super(),this['_liveShareService']=_0x11d265,this['_init']();}['_init'](){const _0x39d5ee=_0x37f72d;[d[_0x39d5ee(0x211)]['id'],d[_0x39d5ee(0x229)]['id'],s[_0x39d5ee(0x1c9)]['id']][_0x39d5ee(0x21a)](_0x300719=>{const _0x278024=_0x39d5ee;this['disposeWithMe'](this[_0x278024(0x1e4)][_0x278024(0x17d)](_0x300719));});}};N=v([_(0x0,(0x0,e[_0x37f72d(0x1c4)])(g))],N);let P=class extends e[_0x37f72d(0x210)]{constructor(_0x469baf=M,_0x368746,_0x4048b9){const _0x427115=_0x37f72d;super(),this[_0x427115(0x231)]=_0x469baf,this[_0x427115(0x1ed)]=_0x368746,this[_0x427115(0x212)]=_0x4048b9;let {..._0x810b3c}=(0x0,e[_0x427115(0x232)])({},M,this[_0x427115(0x231)]);this[_0x427115(0x212)][_0x427115(0x18c)](_0x427115(0x242),_0x810b3c);}[_0x37f72d(0x1a0)](){const _0x3ae653=_0x37f72d;(0x0,e[_0x3ae653(0x222)])(this[_0x3ae653(0x1ed)],(0x0,e[_0x3ae653(0x1ea)])([[g],[y],[N],[k]],this[_0x3ae653(0x231)][_0x3ae653(0x1d0)])),(0x0,e[_0x3ae653(0x226)])(this[_0x3ae653(0x1ed)],[[N]]);}[_0x37f72d(0x1c5)](){const _0x1eddf4=_0x37f72d;(0x0,e['touchDependencies'])(this[_0x1eddf4(0x1ed)],[[k]]);}};h(P,_0x37f72d(0x1d1),e[_0x37f72d(0x1e1)][_0x37f72d(0x1f6)]),h(P,_0x37f72d(0x1de),_0x37f72d(0x179)),h(P,_0x37f72d(0x236),A),h(P,_0x37f72d(0x1a8),j),P=v([(0x0,e['DependentOn'])(o['UniverCollaborationClientPlugin']),_(0x1,(0x0,e[_0x37f72d(0x1c4)])(e['Injector'])),_(0x2,e['IConfigService'])],P),Object['defineProperty'](exports,_0x37f72d(0x19e),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x37f72d(0x207)]=S,Object[_0x37f72d(0x1ad)](exports,_0x37f72d(0x19d),{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,_0x37f72d(0x213),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x37f72d(0x23d)]=g,exports[_0x37f72d(0x183)]=b,Object[_0x37f72d(0x1ad)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return P;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x303a(_0x52d751,_0x2ede3d){_0x52d751=_0x52d751-0x85;const _0x2fcba9=_0x2fcb();let _0x303a3a=_0x2fcba9[_0x52d751];return _0x303a3a;}const _0x15dec6=_0x303a;(function(_0x442712,_0x97fb7a){const _0x3ff7b4=_0x303a,_0x58e93c=_0x442712();while(!![]){try{const _0x53af9b=-parseInt(_0x3ff7b4(0x89))/0x1*(parseInt(_0x3ff7b4(0x94))/0x2)+-parseInt(_0x3ff7b4(0xa4))/0x3+parseInt(_0x3ff7b4(0x93))/0x4+parseInt(_0x3ff7b4(0xa5))/0x5+-parseInt(_0x3ff7b4(0x9e))/0x6+parseInt(_0x3ff7b4(0x85))/0x7*(parseInt(_0x3ff7b4(0xa7))/0x8)+parseInt(_0x3ff7b4(0x8d))/0x9;if(_0x53af9b===_0x97fb7a)break;else _0x58e93c['push'](_0x58e93c['shift']());}catch(_0x4c2baf){_0x58e93c['push'](_0x58e93c['shift']());}}}(_0x2fcb,0x86143));function _0x2fcb(){const _0x4f6fcd=['getCurrentUnitOfType','2655018YgQYHC','4587660RekjyL','get','8QFksfw','defineProperty','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','function','startFollowing','UNIVER_SHEET','3999205jENbWg','iterator','getLiveShareStatus','getLiveShareCoordinatorSync','944728qHkQbP','stopFollowing','call','_liveShareController','10568871jMMSjN','getStatus','default','_injector','tryStartPresenting','getUnitId','1275720CSdIbN','2tvPmNL','prototype','extend','string','No\x20active\x20workbook\x20found.','symbol','constructor','startPresenting','stopPresenting','toPrimitive','3619050TiQrAr','IDLE','LiveShareStatusEnum','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x2fcb=function(){return _0x4f6fcd;};return _0x2fcb();}import{LiveShareController as _0x29911a,LiveShareStatus as _0x2b9fc5}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x22a8d9,UniverInstanceType as _0x2cdea1}from'@univerjs/core';import{FEnum as _0x7b51a,FUniver as _0x3b0d47}from'@univerjs/core/facade';function o(_0x2d78a7){'@babel/helpers - typeof';const _0x254ff2=_0x303a;return o=typeof Symbol==_0x254ff2(0xaa)&&typeof Symbol[_0x254ff2(0x86)]=='symbol'?function(_0x356d32){return typeof _0x356d32;}:function(_0x5e0744){const _0x4054cb=_0x254ff2;return _0x5e0744&&typeof Symbol==_0x4054cb(0xaa)&&_0x5e0744[_0x4054cb(0x9a)]===Symbol&&_0x5e0744!==Symbol[_0x4054cb(0x95)]?_0x4054cb(0x99):typeof _0x5e0744;},o(_0x2d78a7);}function s(_0x4566c0,_0x1352b2){const _0x17af68=_0x303a;if(o(_0x4566c0)!=_0x17af68(0xa1)||!_0x4566c0)return _0x4566c0;var _0x21d2f2=_0x4566c0[Symbol[_0x17af68(0x9d)]];if(_0x21d2f2!==void 0x0){var _0x125675=_0x21d2f2[_0x17af68(0x8b)](_0x4566c0,_0x1352b2||_0x17af68(0x8f));if(o(_0x125675)!=_0x17af68(0xa1))return _0x125675;throw TypeError(_0x17af68(0xa2));}return(_0x1352b2===_0x17af68(0x97)?String:Number)(_0x4566c0);}function c(_0x597870){const _0x341463=_0x303a;var _0x10b68d=s(_0x597870,_0x341463(0x97));return o(_0x10b68d)==_0x341463(0x99)?_0x10b68d:_0x10b68d+'';}function l(_0x2d8e77,_0x290394,_0x3be3bc){const _0x37059c=_0x303a;return(_0x290394=c(_0x290394))in _0x2d8e77?Object[_0x37059c(0xa8)](_0x2d8e77,_0x290394,{'value':_0x3be3bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d8e77[_0x290394]=_0x3be3bc,_0x2d8e77;}var u=class extends _0x3b0d47{constructor(..._0x203974){const _0x422d64=_0x303a;super(..._0x203974),l(this,_0x422d64(0x8c),void 0x0);}['_initialize'](_0x7c795e){const _0x2d3553=_0x303a;this['_liveShareController']=_0x7c795e[_0x2d3553(0xa6)](_0x29911a);}[_0x15dec6(0x87)](){const _0x3973dd=_0x15dec6;var _0x4c5c58;let _0xad1859=this['_injector'][_0x3973dd(0xa6)](_0x22a8d9)[_0x3973dd(0xa3)](_0x2cdea1[_0x3973dd(0xac)]);if(!_0xad1859)throw Error('No\x20active\x20workbook\x20found.');let _0x185a76=_0xad1859[_0x3973dd(0x92)](),_0x17256c=this['_liveShareController'][_0x3973dd(0x88)](_0x185a76);return(_0x4c5c58=_0x17256c==null?void 0x0:_0x17256c[_0x3973dd(0x8e)]())==null?_0x2b9fc5[_0x3973dd(0x9f)]:_0x4c5c58;}[_0x15dec6(0xab)](){const _0x1651be=_0x15dec6;let _0x2281a3=this[_0x1651be(0x90)][_0x1651be(0xa6)](_0x22a8d9)[_0x1651be(0xa3)](_0x2cdea1[_0x1651be(0xac)]);if(!_0x2281a3)throw Error('No\x20active\x20workbook\x20found.');let _0x1d8bea=_0x2281a3['getUnitId'](),_0x4b599f=this[_0x1651be(0x8c)][_0x1651be(0x88)](_0x1d8bea);if(!_0x4b599f)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b599f[_0x1651be(0xab)]();}[_0x15dec6(0x8a)](){const _0x48887d=_0x15dec6;let _0xcd7b84=this[_0x48887d(0x90)][_0x48887d(0xa6)](_0x22a8d9)['getCurrentUnitOfType'](_0x2cdea1[_0x48887d(0xac)]);if(!_0xcd7b84)throw Error('No\x20active\x20workbook\x20found.');let _0x51b80f=_0xcd7b84['getUnitId'](),_0x34194d=this[_0x48887d(0x8c)]['getLiveShareCoordinatorSync'](_0x51b80f);if(!_0x34194d)throw Error(_0x48887d(0xa9));_0x34194d['stopFollowing']();}[_0x15dec6(0x9b)](){const _0x58989f=_0x15dec6;let _0x459276=this[_0x58989f(0x90)]['get'](_0x22a8d9)['getCurrentUnitOfType'](_0x2cdea1[_0x58989f(0xac)]);if(!_0x459276)throw Error(_0x58989f(0x98));let _0x44a772=_0x459276[_0x58989f(0x92)](),_0x16af71=this[_0x58989f(0x8c)][_0x58989f(0x88)](_0x44a772);if(!_0x16af71)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x16af71[_0x58989f(0x91)]();}['stopPresenting'](){const _0x174886=_0x15dec6;let _0x1ee611=this['_injector'][_0x174886(0xa6)](_0x22a8d9)[_0x174886(0xa3)](_0x2cdea1[_0x174886(0xac)]);if(!_0x1ee611)throw Error(_0x174886(0x98));let _0x51bb88=_0x1ee611['getUnitId'](),_0x13c16a=this[_0x174886(0x8c)][_0x174886(0x88)](_0x51bb88);if(!_0x13c16a)throw Error(_0x174886(0xa9));_0x13c16a[_0x174886(0x9c)]();}};_0x3b0d47['extend'](u);var d=class extends _0x7b51a{get[_0x15dec6(0xa0)](){return _0x2b9fc5;}};_0x7b51a[_0x15dec6(0x96)](d);export{};
1
+ function _0x4424(_0x3baef3,_0x206bac){_0x3baef3=_0x3baef3-0x13c;const _0x356a3a=_0x356a();let _0x442405=_0x356a3a[_0x3baef3];return _0x442405;}const _0x303069=_0x4424;(function(_0x158469,_0x1637b3){const _0x39df0b=_0x4424,_0x51d07a=_0x158469();while(!![]){try{const _0x2979c0=-parseInt(_0x39df0b(0x15f))/0x1+parseInt(_0x39df0b(0x15e))/0x2+-parseInt(_0x39df0b(0x157))/0x3*(parseInt(_0x39df0b(0x143))/0x4)+parseInt(_0x39df0b(0x144))/0x5+-parseInt(_0x39df0b(0x15a))/0x6+parseInt(_0x39df0b(0x14e))/0x7+parseInt(_0x39df0b(0x151))/0x8*(parseInt(_0x39df0b(0x153))/0x9);if(_0x2979c0===_0x1637b3)break;else _0x51d07a['push'](_0x51d07a['shift']());}catch(_0x3b4b07){_0x51d07a['push'](_0x51d07a['shift']());}}}(_0x356a,0x9452f));import{LiveShareController as _0x331175,LiveShareStatus as _0x1cbc7d}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x1fc3b0,UniverInstanceType as _0x566577}from'@univerjs/core';import{FEnum as _0x44b5ce,FUniver as _0x2e2563}from'@univerjs/core/facade';function o(_0x18ccf7){'@babel/helpers - typeof';const _0x55c532=_0x4424;return o=typeof Symbol==_0x55c532(0x159)&&typeof Symbol[_0x55c532(0x146)]==_0x55c532(0x14c)?function(_0x481534){return typeof _0x481534;}:function(_0x5d759b){const _0x138721=_0x55c532;return _0x5d759b&&typeof Symbol==_0x138721(0x159)&&_0x5d759b['constructor']===Symbol&&_0x5d759b!==Symbol[_0x138721(0x14b)]?_0x138721(0x14c):typeof _0x5d759b;},o(_0x18ccf7);}function s(_0x3ff0b4,_0x46cf3e){const _0x3e3e2d=_0x4424;if(o(_0x3ff0b4)!=_0x3e3e2d(0x155)||!_0x3ff0b4)return _0x3ff0b4;var _0x431eb3=_0x3ff0b4[Symbol[_0x3e3e2d(0x142)]];if(_0x431eb3!==void 0x0){var _0x30aaee=_0x431eb3[_0x3e3e2d(0x140)](_0x3ff0b4,_0x46cf3e||_0x3e3e2d(0x15d));if(o(_0x30aaee)!=_0x3e3e2d(0x155))return _0x30aaee;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x46cf3e===_0x3e3e2d(0x156)?String:Number)(_0x3ff0b4);}function c(_0x153bc2){const _0xfab395=_0x4424;var _0x17e489=s(_0x153bc2,_0xfab395(0x156));return o(_0x17e489)=='symbol'?_0x17e489:_0x17e489+'';}function _0x356a(){const _0x442a2c=['default','376466YDseIm','162104AWvKmV','_initialize','getUnitId','No\x20active\x20workbook\x20found.','stopPresenting','tryStartPresenting','stopFollowing','call','LiveShareStatusEnum','toPrimitive','3928eRZskS','3628075KAqUeV','get','iterator','startPresenting','startFollowing','_liveShareController','getCurrentUnitOfType','prototype','symbol','_injector','1532034dBdoTd','getLiveShareCoordinatorSync','extend','1026616BxqCLP','defineProperty','90AmKTFl','getStatus','object','string','3027yKbvdZ','IDLE','function','3933018ZvSlzx','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET'];_0x356a=function(){return _0x442a2c;};return _0x356a();}function l(_0x48251b,_0x82db64,_0x880cce){const _0x21f7b0=_0x4424;return(_0x82db64=c(_0x82db64))in _0x48251b?Object[_0x21f7b0(0x152)](_0x48251b,_0x82db64,{'value':_0x880cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48251b[_0x82db64]=_0x880cce,_0x48251b;}var u=class extends _0x2e2563{constructor(..._0xb14720){const _0x54d753=_0x4424;super(..._0xb14720),l(this,_0x54d753(0x149),void 0x0);}[_0x303069(0x160)](_0x5eca5e){this['_liveShareController']=_0x5eca5e['get'](_0x331175);}['getLiveShareStatus'](){const _0xc5a4c2=_0x303069;var _0xf0e7e8;let _0x1797d7=this[_0xc5a4c2(0x14d)][_0xc5a4c2(0x145)](_0x1fc3b0)[_0xc5a4c2(0x14a)](_0x566577[_0xc5a4c2(0x15c)]);if(!_0x1797d7)throw Error(_0xc5a4c2(0x13c));let _0x30bff9=_0x1797d7[_0xc5a4c2(0x161)](),_0x48f752=this['_liveShareController'][_0xc5a4c2(0x14f)](_0x30bff9);return(_0xf0e7e8=_0x48f752==null?void 0x0:_0x48f752[_0xc5a4c2(0x154)]())==null?_0x1cbc7d[_0xc5a4c2(0x158)]:_0xf0e7e8;}[_0x303069(0x148)](){const _0x493cbd=_0x303069;let _0x29b0a1=this[_0x493cbd(0x14d)][_0x493cbd(0x145)](_0x1fc3b0)[_0x493cbd(0x14a)](_0x566577[_0x493cbd(0x15c)]);if(!_0x29b0a1)throw Error(_0x493cbd(0x13c));let _0x362f91=_0x29b0a1['getUnitId'](),_0x1475cc=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x362f91);if(!_0x1475cc)throw Error(_0x493cbd(0x15b));_0x1475cc[_0x493cbd(0x148)]();}['stopFollowing'](){const _0x227acd=_0x303069;let _0x2a005f=this['_injector'][_0x227acd(0x145)](_0x1fc3b0)[_0x227acd(0x14a)](_0x566577[_0x227acd(0x15c)]);if(!_0x2a005f)throw Error(_0x227acd(0x13c));let _0x73981b=_0x2a005f[_0x227acd(0x161)](),_0x867f36=this[_0x227acd(0x149)][_0x227acd(0x14f)](_0x73981b);if(!_0x867f36)throw Error(_0x227acd(0x15b));_0x867f36[_0x227acd(0x13f)]();}[_0x303069(0x147)](){const _0x4d5b60=_0x303069;let _0x8653c6=this[_0x4d5b60(0x14d)][_0x4d5b60(0x145)](_0x1fc3b0)[_0x4d5b60(0x14a)](_0x566577['UNIVER_SHEET']);if(!_0x8653c6)throw Error('No\x20active\x20workbook\x20found.');let _0x47a60a=_0x8653c6[_0x4d5b60(0x161)](),_0x15bd4e=this['_liveShareController'][_0x4d5b60(0x14f)](_0x47a60a);if(!_0x15bd4e)throw Error(_0x4d5b60(0x15b));_0x15bd4e[_0x4d5b60(0x13e)]();}[_0x303069(0x13d)](){const _0x27f606=_0x303069;let _0x2c80be=this[_0x27f606(0x14d)][_0x27f606(0x145)](_0x1fc3b0)[_0x27f606(0x14a)](_0x566577[_0x27f606(0x15c)]);if(!_0x2c80be)throw Error('No\x20active\x20workbook\x20found.');let _0x1a7bdd=_0x2c80be[_0x27f606(0x161)](),_0x18fd5d=this[_0x27f606(0x149)][_0x27f606(0x14f)](_0x1a7bdd);if(!_0x18fd5d)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18fd5d['stopPresenting']();}};_0x2e2563[_0x303069(0x150)](u);var d=class extends _0x44b5ce{get[_0x303069(0x141)](){return _0x1cbc7d;}};_0x44b5ce[_0x303069(0x150)](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a51e2=_0x4f04;(function(_0x7c94c4,_0x9fd205){const _0x517d9e=_0x4f04,_0x11008d=_0x7c94c4();while(!![]){try{const _0x4b19f5=-parseInt(_0x517d9e(0x129))/0x1*(-parseInt(_0x517d9e(0x15b))/0x2)+-parseInt(_0x517d9e(0x13f))/0x3*(-parseInt(_0x517d9e(0x16e))/0x4)+parseInt(_0x517d9e(0x181))/0x5*(parseInt(_0x517d9e(0x189))/0x6)+parseInt(_0x517d9e(0x175))/0x7+-parseInt(_0x517d9e(0x17e))/0x8*(parseInt(_0x517d9e(0x112))/0x9)+-parseInt(_0x517d9e(0x139))/0xa+-parseInt(_0x517d9e(0x121))/0xb;if(_0x4b19f5===_0x9fd205)break;else _0x11008d['push'](_0x11008d['shift']());}catch(_0x2953e4){_0x11008d['push'](_0x11008d['shift']());}}}(_0x3355,0x832fa));import{CommandType as _0x7f38d3,DependentOn as _0x4c3c0f,Disposable as _0x4a49fb,DisposableCollection as _0x18665d,ICommandService as _0x3b1e83,IConfigService as _0x57549a,IUniverInstanceService as _0x4621f9,Inject as _0x3840c8,Injector as _0x368b3b,Plugin as _0x4e113b,RxDisposable as _0x1e9a11,UniverInstanceType as _0x17f2f1,merge as _0x5aed77,mergeOverrideWithDependencies as _0x168dbe,registerDependencies as _0x127fa5,toDisposable as _0x4d1eee,touchDependencies as _0x337d60}from'@univerjs/core';import{BuiltInUIPart as _0x377270,IUIPartsService as _0x2e12cf,connectInjector as _0x7d9cd6,useDependency as _0x47178f,useObservable as _0x557da8}from'@univerjs/ui';function _0x4f04(_0x57b70f,_0x541404){_0x57b70f=_0x57b70f-0x106;const _0x33556f=_0x3355();let _0x4f044c=_0x33556f[_0x57b70f];return _0x4f044c;}import{Button as _0x1c8cae,Dropdown as _0x8acd69,clsx as _0x59885a}from'@univerjs/design';import{LiveShareIcon as _0x22016b}from'@univerjs/icons';import{useEffect as _0xa54735,useRef as _0x18e2b4,useState as _0x358d85}from'react';import{CollaborationEvent as _0x190d08,parseProtocolChangeset as _0x426c25}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2d443c,SessionStatus as _0x193eec,UniverCollaborationClientPlugin as _0x9355f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x228261,SetWorksheetActiveOperation as _0x519c92}from'@univerjs/sheets';import{BehaviorSubject as _0x5a7d17,Subject as _0x574717}from'rxjs';import{takeUntil as _0x1bbe95,throttleTime as _0x409197}from'rxjs/operators';import{Fragment as _0x16c28a,jsx as _0xe94489,jsxs as _0x3b4390}from'react/jsx-runtime';import{SetScrollOperation as _0x13b133,SetZoomRatioOperation as _0x35525e}from'@univerjs/sheets-ui';function R(_0x40bae0){'@babel/helpers - typeof';const _0x2359fe=_0x4f04;return R=typeof Symbol==_0x2359fe(0x18b)&&typeof Symbol[_0x2359fe(0x120)]==_0x2359fe(0x194)?function(_0x145bbf){return typeof _0x145bbf;}:function(_0x524d37){const _0x45a1ad=_0x2359fe;return _0x524d37&&typeof Symbol=='function'&&_0x524d37[_0x45a1ad(0x179)]===Symbol&&_0x524d37!==Symbol[_0x45a1ad(0x143)]?_0x45a1ad(0x194):typeof _0x524d37;},R(_0x40bae0);}function z(_0x5e38e2,_0xd45460){const _0x3d6ea6=_0x4f04;if(R(_0x5e38e2)!=_0x3d6ea6(0x115)||!_0x5e38e2)return _0x5e38e2;var _0x580a8c=_0x5e38e2[Symbol['toPrimitive']];if(_0x580a8c!==void 0x0){var _0x1020fb=_0x580a8c[_0x3d6ea6(0x15d)](_0x5e38e2,_0xd45460||_0x3d6ea6(0x16b));if(R(_0x1020fb)!='object')return _0x1020fb;throw TypeError(_0x3d6ea6(0x165));}return(_0xd45460===_0x3d6ea6(0x197)?String:Number)(_0x5e38e2);}function B(_0x3058f0){var _0x56af65=z(_0x3058f0,'string');return R(_0x56af65)=='symbol'?_0x56af65:_0x56af65+'';}function V(_0x37da58,_0x440c93,_0x55f37b){return(_0x440c93=B(_0x440c93))in _0x37da58?Object['defineProperty'](_0x37da58,_0x440c93,{'value':_0x55f37b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37da58[_0x440c93]=_0x55f37b,_0x37da58;}var H=class extends _0x4a49fb{constructor(..._0x128230){const _0x195211=_0x4f04;super(..._0x128230),V(this,_0x195211(0x162),new Set()),V(this,_0x195211(0x196),new Set());}[_0x3a51e2(0x138)](_0x29075c){const _0x34ac9b=_0x3a51e2;return this['_sharedOperations']['add'](_0x29075c),_0x4d1eee(()=>this[_0x34ac9b(0x162)][_0x34ac9b(0x163)](_0x29075c));}[_0x3a51e2(0x166)](_0x26e81f){const _0x52e67d=_0x3a51e2;return this['_reporters']['add'](_0x26e81f),_0x4d1eee(()=>this[_0x52e67d(0x196)]['delete'](_0x26e81f));}[_0x3a51e2(0x133)](_0x3bc063){const _0x39f892=_0x3a51e2;return this[_0x39f892(0x162)][_0x39f892(0x14a)](_0x3bc063);}[_0x3a51e2(0x180)](_0x22d7e7){const _0x43d20c=_0x3a51e2;return Array[_0x43d20c(0x106)](this[_0x43d20c(0x196)])['map'](_0x3cfc32=>_0x3cfc32(_0x22d7e7));}};function U(_0x21ac22,_0x5300cb){return function(_0x333287,_0x5490a9){_0x5300cb(_0x333287,_0x5490a9,_0x21ac22);};}function W(_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba){const _0x5210b2=_0x3a51e2;var _0x1a58cb=arguments[_0x5210b2(0x155)],_0x32a8fc=_0x1a58cb<0x3?_0x32a2c4:_0x43f3ba===null?_0x43f3ba=Object[_0x5210b2(0x18a)](_0x32a2c4,_0x52d947):_0x43f3ba,_0x5f0cfb;if(typeof Reflect==_0x5210b2(0x115)&&typeof Reflect[_0x5210b2(0x18d)]==_0x5210b2(0x18b))_0x32a8fc=Reflect[_0x5210b2(0x18d)](_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba);else{for(var _0x1c3fe9=_0x435b2e[_0x5210b2(0x155)]-0x1;_0x1c3fe9>=0x0;_0x1c3fe9--)(_0x5f0cfb=_0x435b2e[_0x1c3fe9])&&(_0x32a8fc=(_0x1a58cb<0x3?_0x5f0cfb(_0x32a8fc):_0x1a58cb>0x3?_0x5f0cfb(_0x32a2c4,_0x52d947,_0x32a8fc):_0x5f0cfb(_0x32a2c4,_0x52d947))||_0x32a8fc);}return _0x1a58cb>0x3&&_0x32a8fc&&Object[_0x5210b2(0x17f)](_0x32a2c4,_0x52d947,_0x32a8fc),_0x32a8fc;}let G=class extends _0x1e9a11{constructor(_0x2d0d1b,_0x3c9550,_0x24da43){const _0xd924e6=_0x3a51e2;super(),this[_0xd924e6(0x12e)]=_0x2d0d1b,this[_0xd924e6(0x10e)]=_0x3c9550,this[_0xd924e6(0x110)]=_0x24da43,V(this,_0xd924e6(0x11c),new Map()),this[_0xd924e6(0x188)]();}async['getLiveShareCoordinator'](_0x19eded){const _0x552abb=_0x3a51e2;return this['_entities'][_0x552abb(0x14a)](_0x19eded)||await this[_0x552abb(0x11d)](_0x19eded),this[_0x552abb(0x11c)][_0x552abb(0x183)](_0x19eded);}[_0x3a51e2(0x134)](_0x5a9c67){const _0x31d597=_0x3a51e2;var _0x36e5c1;return(_0x36e5c1=this[_0x31d597(0x11c)][_0x31d597(0x183)](_0x5a9c67))==null?null:_0x36e5c1;}['_init'](){const _0x430e38=_0x3a51e2;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this[_0x430e38(0x191)]))[_0x430e38(0x19a)](async _0x8c48c7=>{const _0x4fca02=_0x430e38;let _0x389370=_0x8c48c7['unit']['getUnitId']();this['_entities'][_0x4fca02(0x14a)](_0x389370)||this['_startLiveShareCoordinator'](_0x389370);}),this[_0x430e38(0x12e)]['getTypeOfUnitDisposed$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this['dispose$']))[_0x430e38(0x19a)](_0x1b0592=>{const _0x219248=_0x430e38;let _0x154f02=_0x1b0592['getUnitId'](),_0x2763e1=this[_0x219248(0x11c)][_0x219248(0x183)](_0x154f02);_0x2763e1==null||_0x2763e1[_0x219248(0x13a)]();});}async[_0x3a51e2(0x11d)](_0x206541){const _0x4077cb=_0x3a51e2;let _0x299bd5=await this[_0x4077cb(0x110)][_0x4077cb(0x14c)](_0x206541),_0x23fb35=this[_0x4077cb(0x10e)][_0x4077cb(0x16d)](q,_0x206541,_0x299bd5);return _0x23fb35[_0x4077cb(0x11a)](),this['_entities'][_0x4077cb(0x192)](_0x206541,_0x23fb35),_0x23fb35;}};G=W([U(0x0,_0x4621f9),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x3840c8(_0x2d443c))],G);let K=function(_0x40e7e5){const _0x1707de=_0x3a51e2;return _0x40e7e5[_0x1707de(0x141)]='offline',_0x40e7e5[_0x1707de(0x117)]=_0x1707de(0x151),_0x40e7e5[_0x1707de(0x186)]=_0x1707de(0x160),_0x40e7e5[_0x1707de(0x150)]=_0x1707de(0x12a),_0x40e7e5[_0x1707de(0x154)]=_0x1707de(0x156),_0x40e7e5;}({}),q=class extends _0x1e9a11{get[_0x3a51e2(0x140)](){const _0x2b6524=_0x3a51e2;return this[_0x2b6524(0x17c)][_0x2b6524(0x18f)]();}constructor(_0x43e65f,_0x369a37,_0x393d64,_0x434708,_0x40b832){const _0x3e3032=_0x3a51e2;super(),this[_0x3e3032(0x164)]=_0x43e65f,this[_0x3e3032(0x119)]=_0x369a37,this['_configService']=_0x393d64,this[_0x3e3032(0x136)]=_0x434708,this[_0x3e3032(0x108)]=_0x40b832,V(this,_0x3e3032(0x17c),new _0x5a7d17(_0x3e3032(0x151))),V(this,_0x3e3032(0x12c),this['_status$']['asObservable']()),V(this,'_init',!0x1),V(this,_0x3e3032(0x116),null),V(this,_0x3e3032(0x10c),null);}[_0x3a51e2(0x13a)](){const _0x284d01=_0x3a51e2;var _0x5ab5ee;(_0x5ab5ee=this[_0x284d01(0x116)])==null||_0x5ab5ee[_0x284d01(0x13a)](),this['_status$'][_0x284d01(0x159)](_0x284d01(0x151)),this[_0x284d01(0x17c)][_0x284d01(0x12d)]();}[_0x3a51e2(0x170)](){const _0x35afb5=_0x3a51e2;return this[_0x35afb5(0x140)];}[_0x3a51e2(0x11a)](){const _0x41b569=_0x3a51e2;this[_0x41b569(0x188)]||(this[_0x41b569(0x188)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x1bbe95(this[_0x41b569(0x191)]))[_0x41b569(0x19a)](_0x4b2061=>{const _0x451f48=_0x41b569;switch(_0x4b2061){case _0x193eec['OFFLINE']:this[_0x451f48(0x124)]();break;case _0x193eec[_0x451f48(0x127)]:this[_0x451f48(0x152)]();break;default:}}),this['_collabSession'][_0x41b569(0x142)]['pipe'](_0x1bbe95(this['dispose$']))[_0x41b569(0x19a)](_0x4a7ee4=>{const _0x13c775=_0x41b569;let {eventID:_0x24563a}=_0x4a7ee4;switch(_0x24563a){case _0x190d08[_0x13c775(0x137)]:this[_0x13c775(0x195)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x114)]:this[_0x13c775(0x144)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x161)]:this['_handleTerminate']();break;case _0x190d08[_0x13c775(0x125)]:this[_0x13c775(0x123)](_0x4a7ee4);break;default:}}));}['tryStartPresenting'](){const _0x2d4d04=_0x3a51e2;this[_0x2d4d04(0x119)][_0x2d4d04(0x185)]({'eventID':_0x190d08['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x2d4d04(0x119)][_0x2d4d04(0x13c)]()}},this[_0x2d4d04(0x164)]);}[_0x3a51e2(0x146)](){const _0x10bfec=_0x3a51e2;this['_status']===_0x10bfec(0x156)&&(this[_0x10bfec(0x17c)][_0x10bfec(0x159)]('idle'),this[_0x10bfec(0x119)][_0x10bfec(0x185)]({'eventID':_0x190d08[_0x10bfec(0x161)],'data':{'unitID':this[_0x10bfec(0x164)]}},this[_0x10bfec(0x164)]));}[_0x3a51e2(0x171)](){const _0x11a72a=_0x3a51e2;this['_status']===_0x11a72a(0x12a)&&(this[_0x11a72a(0x17c)][_0x11a72a(0x159)](_0x11a72a(0x160)),this[_0x11a72a(0x187)]());}[_0x3a51e2(0x157)](){const _0x14eacd=_0x3a51e2;this[_0x14eacd(0x140)]===_0x14eacd(0x160)&&this['_stopFollowing']();}['_handleNewHost'](_0x1651f0){const _0x4dc404=_0x3a51e2;let {presenter:_0x1ecdee}=_0x1651f0[_0x4dc404(0x16f)],_0x5d5e28=this[_0x4dc404(0x119)][_0x4dc404(0x13c)]();this[_0x4dc404(0x10c)]=_0x1ecdee,_0x1ecdee===_0x5d5e28?(this[_0x4dc404(0x131)](),this[_0x4dc404(0x15a)]()):this[_0x4dc404(0x140)]!==_0x4dc404(0x12a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3a51e2(0x126)](){const _0x25250c=_0x3a51e2;let _0x590b56={'eventID':_0x190d08['LIVESHARE_FETCH_OPERATIONS']};this[_0x25250c(0x119)][_0x25250c(0x185)](_0x590b56,this[_0x25250c(0x164)]);}[_0x3a51e2(0x10d)](){const _0x13d2fb=_0x3a51e2;this['_presenter']=null,this[_0x13d2fb(0x140)]!==_0x13d2fb(0x156)&&this['_beIdle']();}[_0x3a51e2(0x123)](_0x163903){const _0x27382b=_0x3a51e2;if(this['_status']===_0x27382b(0x160)&&this[_0x27382b(0x10c)]===_0x163903[_0x27382b(0x16f)][_0x27382b(0x147)]){let _0x5b1cf6=_0x426c25(_0x163903[_0x27382b(0x16f)])[_0x27382b(0x173)][_0x27382b(0x14b)]()[_0x27382b(0x132)](_0x362b5a=>_0x362b5a['id']===_0x228261['id']);if(_0x5b1cf6){let _0x29c4b0=_0x5b1cf6[_0x27382b(0x130)][_0x27382b(0x17a)],_0x30543d=_0x5b1cf6[_0x27382b(0x130)]['sheet']['id'];setTimeout(()=>{const _0x1e70fe=_0x27382b;this[_0x1e70fe(0x108)][_0x1e70fe(0x128)](_0x519c92['id'],{'unitId':_0x29c4b0,'subUnitId':_0x30543d},{'fromCollab':!0x0});});}}}[_0x3a51e2(0x15a)](){const _0x34a16d=_0x3a51e2;var _0x463490;(_0x463490=this[_0x34a16d(0x116)])==null||_0x463490[_0x34a16d(0x13a)](),this[_0x34a16d(0x17c)][_0x34a16d(0x159)]('presenting');let _0x453ff6=new Map(),_0x3da532=this[_0x34a16d(0x116)]=new _0x18665d();_0x3da532[_0x34a16d(0x19c)](_0x4d1eee(()=>{const _0x232b80=_0x34a16d;_0x453ff6[_0x232b80(0x167)](({subject:_0x56c9e4,subscription:_0x41f52d})=>{const _0x170c8c=_0x232b80;_0x41f52d[_0x170c8c(0x16c)](),_0x56c9e4[_0x170c8c(0x12d)]();}),_0x453ff6[_0x232b80(0x198)]();})),_0x3da532[_0x34a16d(0x19c)](this[_0x34a16d(0x108)][_0x34a16d(0x190)](_0x3b026b=>{const _0x751393=_0x34a16d;if(_0x3b026b[_0x751393(0x13e)]!==_0x7f38d3[_0x751393(0x135)]||!this[_0x751393(0x136)][_0x751393(0x133)](_0x3b026b['id']))return;let {id:_0x278cb3}=_0x3b026b,_0x4db587;if(_0x453ff6[_0x751393(0x14a)](_0x278cb3))_0x4db587=_0x453ff6[_0x751393(0x183)](_0x278cb3)[_0x751393(0x11e)];else{var _0x465484;_0x4db587=new _0x574717();let _0x4fe22a=_0x4db587[_0x751393(0x10a)](_0x409197((_0x465484=this[_0x751393(0x15c)][_0x751393(0x145)](_0x751393(0x177)))==null?0xc8:_0x465484,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x751393(0x19a)](_0x76ef33=>{const _0x4b7ab0=_0x751393;this[_0x4b7ab0(0x119)][_0x4b7ab0(0x185)]({'eventID':_0x190d08[_0x4b7ab0(0x114)],'data':{'unitID':this[_0x4b7ab0(0x164)],'operations':{[_0x76ef33['id']]:{'id':_0x76ef33['id'],'params':JSON['stringify'](_0x76ef33['params'])}}}},this['_unitID']);});_0x453ff6[_0x751393(0x192)](_0x278cb3,{'subject':_0x4db587,'subscription':_0x4fe22a});}_0x4db587[_0x751393(0x159)](_0x3b026b);})),this['_liveShareService'][_0x34a16d(0x180)](this[_0x34a16d(0x164)])[_0x34a16d(0x167)](_0x45d99e=>this[_0x34a16d(0x119)]['send']({'eventID':_0x190d08['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34a16d(0x164)],'operations':{[_0x45d99e['id']]:{'id':_0x45d99e['id'],'params':JSON['stringify'](_0x45d99e['params'])}}}},this[_0x34a16d(0x164)]));}['_stopPresenting'](){const _0x32eb23=_0x3a51e2;var _0x99d5cc;this[_0x32eb23(0x17c)][_0x32eb23(0x159)](_0x32eb23(0x151)),(_0x99d5cc=this[_0x32eb23(0x116)])==null||_0x99d5cc[_0x32eb23(0x13a)](),this[_0x32eb23(0x116)]=null;}[_0x3a51e2(0x187)](){const _0x498ad6=_0x3a51e2;var _0x4528be;(_0x4528be=this[_0x498ad6(0x116)])==null||_0x4528be[_0x498ad6(0x13a)](),this[_0x498ad6(0x17c)][_0x498ad6(0x159)](_0x498ad6(0x160));}[_0x3a51e2(0x17d)](){const _0x53c94e=_0x3a51e2;var _0x1e18df;this[_0x53c94e(0x17c)][_0x53c94e(0x159)](_0x53c94e(0x151)),(_0x1e18df=this['_commandDisposable'])==null||_0x1e18df[_0x53c94e(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x52a6c5=_0x3a51e2;var _0xac56a2;this['_status$'][_0x52a6c5(0x159)](_0x52a6c5(0x12a)),(_0xac56a2=this[_0x52a6c5(0x116)])==null||_0xac56a2['dispose']();}['_handleOperation'](_0x1e233c){const _0xd56dba=_0x3a51e2;if([_0xd56dba(0x156),_0xd56dba(0x12a),'offline'][_0xd56dba(0x109)](this[_0xd56dba(0x140)])||!_0x1e233c['data'][_0xd56dba(0x18c)]||_0x1e233c['data'][_0xd56dba(0x18c)]===this[_0xd56dba(0x119)][_0xd56dba(0x13c)]())return;this[_0xd56dba(0x140)]===_0xd56dba(0x151)&&this[_0xd56dba(0x187)]();let _0x256ee3=_0x1e233c[_0xd56dba(0x16f)][_0xd56dba(0x14f)];Object[_0xd56dba(0x113)](_0x256ee3)[_0xd56dba(0x167)](_0x59a1d2=>{const _0x28a37d=_0xd56dba;this[_0x28a37d(0x108)][_0x28a37d(0x128)](_0x59a1d2['id'],_0x59a1d2[_0x28a37d(0x130)]?JSON['parse'](_0x59a1d2[_0x28a37d(0x130)]):null,{'fromCollab':!0x0});});}[_0x3a51e2(0x124)](){const _0x35c6c8=_0x3a51e2;var _0x2f56c5;this[_0x35c6c8(0x17c)]['next'](_0x35c6c8(0x122)),(_0x2f56c5=this[_0x35c6c8(0x116)])==null||_0x2f56c5[_0x35c6c8(0x13a)]();}['_handleOnline'](){const _0xd9627=_0x3a51e2;this[_0xd9627(0x17c)][_0xd9627(0x159)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x57549a),U(0x3,_0x3840c8(H)),U(0x4,_0x3b1e83)],q);function J(){const _0x41191f=_0x3a51e2;let _0x290dc9=_0x47178f(G),_0x592e87=_0x47178f(_0x4621f9),_0x17f05d=_0x557da8(()=>_0x592e87[_0x41191f(0x18e)](_0x17f2f1[_0x41191f(0x158)]),void 0x0,!0x1,[]),[_0xeea236,_0x431a25]=_0x358d85(null),[_0x147972,_0x44b26c]=_0x358d85(_0x41191f(0x151)),_0x2c68c2=_0x18e2b4(null);return _0xa54735(()=>(_0x17f05d&&_0x290dc9['getLiveShareCoordinator'](_0x17f05d[_0x41191f(0x19d)]())[_0x41191f(0x17b)](_0x320267=>{const _0x33307d=_0x41191f;_0x431a25(_0x320267),_0x2c68c2[_0x33307d(0x10b)]=_0x320267[_0x33307d(0x12c)][_0x33307d(0x19a)](_0x545bdc=>{_0x44b26c(_0x545bdc);});}),()=>{const _0x58820f=_0x41191f;var _0x5f5b83;(_0x5f5b83=_0x2c68c2[_0x58820f(0x10b)])==null||_0x5f5b83[_0x58820f(0x16c)](),_0x2c68c2['current']=null;}),[_0x17f05d,_0x290dc9]),_0xeea236?_0xe94489(_0x8acd69,{'align':_0x41191f(0x10f),'disabled':_0x147972===_0x41191f(0x122),'className':_0x41191f(0x15e),'overlay':_0xe94489(se,{'status':_0x147972,'coordinator':_0xeea236}),'children':_0xe94489(_0x41191f(0x14d),{'className':_0x59885a('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x147972===_0x41191f(0x122),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x147972!==_0x41191f(0x122)}),'type':_0x41191f(0x14d),'children':_0xe94489(_0x22016b,{'className':_0x41191f(0x193)})})}):null;}function se(_0x462768){const _0x22ba38=_0x3a51e2;let {status:_0x29f8d1,coordinator:_0x2e1208}=_0x462768;switch(_0x29f8d1){case'idle':return _0xe94489(ce,{'coordinator':_0x2e1208});case _0x22ba38(0x160):return _0xe94489(le,{'coordinator':_0x2e1208});case _0x22ba38(0x12a):return _0xe94489(ue,{'coordinator':_0x2e1208});case'offline':return _0xe94489(de,{});case _0x22ba38(0x156):return _0xe94489(Y,{'coordinator':_0x2e1208});default:return null;}}function ce(_0xe425ea){const _0x3ce838=_0x3a51e2;let {coordinator:_0x4cffe4}=_0xe425ea;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x3ce838(0x15f),{'className':_0x3ce838(0x19b),'children':_0x3ce838(0x118)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x4cffe4[_0x3ce838(0x12f)](),'children':_0x3ce838(0x176)})]});}function le(_0x4a0205){const _0x604d73=_0x3a51e2;let {coordinator:_0x569f56}=_0x4a0205;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x604d73(0x15f),{'className':_0x604d73(0x19b),'children':_0x604d73(0x182)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x569f56[_0x604d73(0x157)](),'children':'Stop\x20following'})]});}function ue(_0x13229f){const _0x597adc=_0x3a51e2;let {coordinator:_0x548d73}=_0x13229f;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x597adc(0x15f),{'className':_0x597adc(0x19b),'children':_0x597adc(0x11f)}),_0xe94489(_0x1c8cae,{'variant':_0x597adc(0x107),'onClick':()=>_0x548d73[_0x597adc(0x171)](),'children':'Start\x20following'})]});}function Y(_0x1288a1){const _0x23a5b8=_0x3a51e2;let {coordinator:_0x97b1e1}=_0x1288a1;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x23a5b8(0x15f),{'className':_0x23a5b8(0x19b),'children':_0x23a5b8(0x111)}),_0xe94489(_0x1c8cae,{'variant':_0x23a5b8(0x16b),'onClick':()=>_0x97b1e1[_0x23a5b8(0x146)](),'children':_0x23a5b8(0x172)})]});}function de(){const _0x645c71=_0x3a51e2;return _0xe94489(_0x16c28a,{'children':_0x645c71(0x153)});}let X=class extends _0x4a49fb{constructor(_0x1235b0,_0x4dffd6){const _0x2a95b2=_0x3a51e2;super(),this['_injector']=_0x1235b0,this[_0x2a95b2(0x169)]=_0x4dffd6,this[_0x2a95b2(0x11b)]();}[_0x3a51e2(0x11b)](){const _0x400b71=_0x3a51e2;this[_0x400b71(0x174)](this['_uiPartsService'][_0x400b71(0x13b)](_0x377270[_0x400b71(0x148)],()=>_0x7d9cd6(J,this['_injector'])));}};X=W([U(0x0,_0x3840c8(_0x368b3b)),U(0x1,_0x2e12cf)],X);var fe='@univerjs-pro/live-share',pe='0.25.1';function _0x3355(){const _0x445cda=['registerComponent','getMemberID','setConfig','type','2025663idGcpW','_status','OFFLINE','event$','prototype','_handleOperation','getConfig','stopPresenting','memberID','HEADER_MENU','onStarting','has','reverse','requireSession','button','_config','operations','NOT_FOLLOWING','idle','_handleOnline','You\x27are\x20offline.','PRESENTING','length','presenting','stopFollowing','UNIVER_SHEET','next','_startPresenting','1846eGkgmN','_configService','call','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','div','following','LIVESHARE_TERMINATE','_sharedOperations','delete','_unitID','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerInitialStateReporter','forEach','live-share.config','_uiPartsService','override','default','unsubscribe','createInstance','4rwIDrz','data','getStatus','startFollowing','Stop\x20presenting','mutations','disposeWithMe','4281753lrXCUB','Start','SAME_OPERATION_SHARE_INTERVAL','packageName','constructor','unitId','then','_status$','_beIdle','416560emdqXc','defineProperty','getInitialStates','45OIxCvk','You\x27re\x20following\x20the\x20presenter','get','version','send','FOLLOWING','_startFollowing','_init','551856fnNNXI','getOwnPropertyDescriptor','function','presenter','decorate','getCurrentTypeOfUnit$','getValue','onCommandExecuted','dispose$','set','univer-size-4','symbol','_handleNewHost','_reporters','string','clear','UNIVER_LIVE_SHARE_PLUGIN','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','getUnitId','from','text','_commandService','includes','pipe','current','_presenter','_handleTerminate','_injector','end','_collabSessionService','You\x27re\x20presenting\x20the\x20document','126hOOgSF','values','LIVESHARE_OPERATION','object','_commandDisposable','IDLE','Present\x20this\x20document','_collabSession','init','_mountLiveShare','_entities','_startLiveShareCoordinator','subject','You\x27re\x20not\x20following\x20the\x20presenter','iterator','15159276rXigCW','offline','_handleNewChangeSets','_handleOffline','NEW_CHANGESETS','_fetchOperations','ONLINE','executeCommand','859CQMnfw','not-following','pluginName','status$','complete','_univerInstanceService','tryStartPresenting','params','_stopFollowing','find','shouldShareOperation','getLiveShareCoordinatorSync','OPERATION','_liveShareService','LIVESHARE_NEW_HOST','registerSharedOperation','2631070jaWWIj','dispose'];_0x3355=function(){return _0x445cda;};return _0x3355();}const Z={};let Q=class extends _0x4a49fb{constructor(_0x351bd8){const _0x3106e4=_0x3a51e2;super(),this[_0x3106e4(0x136)]=_0x351bd8,this[_0x3106e4(0x188)]();}[_0x3a51e2(0x188)](){[_0x35525e['id'],_0x13b133['id'],_0x519c92['id']]['forEach'](_0x2e3836=>{const _0x5ab586=_0x4f04;this['disposeWithMe'](this[_0x5ab586(0x136)][_0x5ab586(0x138)](_0x2e3836));});}};Q=W([U(0x0,_0x3840c8(H))],Q);let $=class extends _0x4e113b{constructor(_0x21a659=Z,_0x51af84,_0x7c930f){const _0x3dd96d=_0x3a51e2;super(),this[_0x3dd96d(0x14e)]=_0x21a659,this['_injector']=_0x51af84,this[_0x3dd96d(0x15c)]=_0x7c930f;let {..._0xd57fa5}=_0x5aed77({},Z,this[_0x3dd96d(0x14e)]);this[_0x3dd96d(0x15c)][_0x3dd96d(0x13d)](_0x3dd96d(0x168),_0xd57fa5);}[_0x3a51e2(0x149)](){const _0x27b297=_0x3a51e2;_0x127fa5(this[_0x27b297(0x10e)],_0x168dbe([[H],[G],[Q],[X]],this[_0x27b297(0x14e)][_0x27b297(0x16a)])),_0x337d60(this[_0x27b297(0x10e)],[[Q]]);}['onRendered'](){_0x337d60(this['_injector'],[[X]]);}};V($,_0x3a51e2(0x13e),_0x17f2f1['UNIVER_UNKNOWN']),V($,_0x3a51e2(0x12b),_0x3a51e2(0x199)),V($,_0x3a51e2(0x178),fe),V($,_0x3a51e2(0x184),pe),$=W([_0x4c3c0f(_0x9355f0),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x57549a)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x16f6b4=_0x3742;(function(_0xbe56f4,_0x1323af){const _0x337c33=_0x3742,_0x3ee53b=_0xbe56f4();while(!![]){try{const _0x4acf15=-parseInt(_0x337c33(0x20a))/0x1*(parseInt(_0x337c33(0x251))/0x2)+-parseInt(_0x337c33(0x1f3))/0x3+-parseInt(_0x337c33(0x273))/0x4*(-parseInt(_0x337c33(0x22f))/0x5)+-parseInt(_0x337c33(0x26a))/0x6*(parseInt(_0x337c33(0x227))/0x7)+-parseInt(_0x337c33(0x252))/0x8*(-parseInt(_0x337c33(0x1e8))/0x9)+parseInt(_0x337c33(0x20f))/0xa*(-parseInt(_0x337c33(0x239))/0xb)+parseInt(_0x337c33(0x215))/0xc;if(_0x4acf15===_0x1323af)break;else _0x3ee53b['push'](_0x3ee53b['shift']());}catch(_0x12e516){_0x3ee53b['push'](_0x3ee53b['shift']());}}}(_0x2e62,0x24330));import{CommandType as _0x318eb4,DependentOn as _0x3dc140,Disposable as _0x4b5dc9,DisposableCollection as _0x10ec25,ICommandService as _0x4b9491,IConfigService as _0x46eafb,IUniverInstanceService as _0x4dd311,Inject as _0x4b6a05,Injector as _0x2d43c8,Plugin as _0x547cf5,RxDisposable as _0x246302,UniverInstanceType as _0xc09af2,merge as _0x26e587,mergeOverrideWithDependencies as _0x10dc75,registerDependencies as _0x58b3f9,toDisposable as _0x27d417,touchDependencies as _0x4ca10c}from'@univerjs/core';import{BuiltInUIPart as _0x17ec50,IUIPartsService as _0xf530cb,connectInjector as _0x432d78,useDependency as _0x29ecdc,useObservable as _0x41be19}from'@univerjs/ui';function _0x2e62(){const _0x15c915=['_startLiveShareCoordinator','complete','getUnitId','4178304Elrjye','send','_commandService','has','idle','_config','_collabSession','set','setConfig','@univerjs-pro/live-share','next','getOwnPropertyDescriptor','FOLLOWING','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopFollowing','getLiveShareCoordinator','OPERATION','1114505pXTXpA','live-share.config','_fetchOperations','packageName','_handleTerminate','call','Stop\x20presenting','button','215eebwBW','status$','_handleOnline','reverse','UNIVER_LIVE_SHARE_PLUGIN','operations','decorate','getStatus','length','disposeWithMe','11iGWBuj','get','_injector','requireSession','registerSharedOperation','dispose','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_presenter','registerComponent','function','getInitialStates','following','createInstance','getLiveShareCoordinatorSync','_collabSessionService','UNIVER_UNKNOWN','_beIdle','getTypeOfUnitAdded$','data','unsubscribe','_status','current','onCommandExecuted','unit','6NJZYuP','2370832KBJCbj','add','defineProperty','stopFollowing','end','symbol','getMemberID','type','_handleOffline','univer-size-4','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','presenting','params','_configService','LIVESHARE_REQUEST_HOST','executeCommand','0.25.2','getCurrentTypeOfUnit$','offline','object','_entities','iterator','6AqpmLx','version','_reporters','onStarting','getConfig','string','_startFollowing','onRendered','HEADER_MENU','692scnnix','_handleNewChangeSets','stopPresenting','LIVESHARE_FETCH_OPERATIONS','Start\x20following','_commandDisposable','event$','startFollowing','not-following','_univerInstanceService','_unitID','div','delete','memberID','_startPresenting','9wqNWdx','getValue','_init','asObservable','LIVESHARE_TERMINATE','clear','forEach','_handleOperation','mutations','ONLINE','default','407187CkDRqC','PRESENTING','find','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','prototype','_stopPresenting','_mountLiveShare','pipe','_handleNewHost','Start','presenter','subject','_liveShareService','shouldShareOperation','unitId','sheet','map','You\x27re\x20presenting\x20the\x20document','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','_status$','tryStartPresenting','values','51788HtkqSy','_uiPartsService','getTypeOfUnitDisposed$','UNIVER_SHEET','init','534050ZxqJLt','LIVESHARE_OPERATION','_sharedOperations'];_0x2e62=function(){return _0x15c915;};return _0x2e62();}import{Button as _0x2619a0,Dropdown as _0x3de5e2,clsx as _0x1e00b3}from'@univerjs/design';import{LiveShareIcon as _0x2b4902}from'@univerjs/icons';import{useEffect as _0x2a3129,useRef as _0x5bd35f,useState as _0x1c51b5}from'react';import{CollaborationEvent as _0x2cae52,parseProtocolChangeset as _0x396a82}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x319859,SessionStatus as _0x5e1c26,UniverCollaborationClientPlugin as _0x1faa0e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1274c5,SetWorksheetActiveOperation as _0x4dbd1e}from'@univerjs/sheets';import{BehaviorSubject as _0x3469e3,Subject as _0x4d991e}from'rxjs';import{takeUntil as _0x4753b7,throttleTime as _0x4c79ad}from'rxjs/operators';import{Fragment as _0x348ecc,jsx as _0x5c9867,jsxs as _0xd26927}from'react/jsx-runtime';import{SetScrollOperation as _0x212824,SetZoomRatioOperation as _0x986c73}from'@univerjs/sheets-ui';function R(_0x3e9e4f){'@babel/helpers - typeof';const _0x1872a4=_0x3742;return R=typeof Symbol==_0x1872a4(0x242)&&typeof Symbol[_0x1872a4(0x269)]=='symbol'?function(_0x3b8279){return typeof _0x3b8279;}:function(_0x16292e){const _0x1633d0=_0x1872a4;return _0x16292e&&typeof Symbol==_0x1633d0(0x242)&&_0x16292e['constructor']===Symbol&&_0x16292e!==Symbol[_0x1633d0(0x1f8)]?_0x1633d0(0x257):typeof _0x16292e;},R(_0x3e9e4f);}function z(_0x1b7305,_0x231901){const _0xe171e2=_0x3742;if(R(_0x1b7305)!=_0xe171e2(0x267)||!_0x1b7305)return _0x1b7305;var _0x4015ea=_0x1b7305[Symbol['toPrimitive']];if(_0x4015ea!==void 0x0){var _0x10c469=_0x4015ea[_0xe171e2(0x22c)](_0x1b7305,_0x231901||_0xe171e2(0x1f2));if(R(_0x10c469)!=_0xe171e2(0x267))return _0x10c469;throw TypeError(_0xe171e2(0x23f));}return(_0x231901===_0xe171e2(0x26f)?String:Number)(_0x1b7305);}function B(_0x3f25eb){const _0x24ed25=_0x3742;var _0x1d59d9=z(_0x3f25eb,_0x24ed25(0x26f));return R(_0x1d59d9)==_0x24ed25(0x257)?_0x1d59d9:_0x1d59d9+'';}function V(_0x252af2,_0x37e783,_0x13f43a){const _0x20e5e9=_0x3742;return(_0x37e783=B(_0x37e783))in _0x252af2?Object[_0x20e5e9(0x254)](_0x252af2,_0x37e783,{'value':_0x13f43a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x252af2[_0x37e783]=_0x13f43a,_0x252af2;}var H=class extends _0x4b5dc9{constructor(..._0x24b8e0){const _0x355109=_0x3742;super(..._0x24b8e0),V(this,_0x355109(0x211),new Set()),V(this,_0x355109(0x26c),new Set());}[_0x16f6b4(0x23d)](_0x4d4c37){const _0xb066e2=_0x16f6b4;return this['_sharedOperations'][_0xb066e2(0x253)](_0x4d4c37),_0x27d417(()=>this['_sharedOperations']['delete'](_0x4d4c37));}['registerInitialStateReporter'](_0x128bbc){const _0x4df97e=_0x16f6b4;return this[_0x4df97e(0x26c)][_0x4df97e(0x253)](_0x128bbc),_0x27d417(()=>this[_0x4df97e(0x26c)][_0x4df97e(0x27f)](_0x128bbc));}[_0x16f6b4(0x201)](_0x338c3d){const _0x93f989=_0x16f6b4;return this['_sharedOperations'][_0x93f989(0x218)](_0x338c3d);}['getInitialStates'](_0x1949df){const _0x15b3a2=_0x16f6b4;return Array['from'](this['_reporters'])[_0x15b3a2(0x204)](_0x5d5d48=>_0x5d5d48(_0x1949df));}};function U(_0x41d8d8,_0x4f02c7){return function(_0x2a5410,_0x297b16){_0x4f02c7(_0x2a5410,_0x297b16,_0x41d8d8);};}function W(_0x556e8b,_0x208c0b,_0xd3707f,_0x4e5d55){const _0x2358f9=_0x16f6b4;var _0x2664d2=arguments[_0x2358f9(0x237)],_0x53d012=_0x2664d2<0x3?_0x208c0b:_0x4e5d55===null?_0x4e5d55=Object[_0x2358f9(0x220)](_0x208c0b,_0xd3707f):_0x4e5d55,_0x2a2d17;if(typeof Reflect=='object'&&typeof Reflect[_0x2358f9(0x235)]==_0x2358f9(0x242))_0x53d012=Reflect['decorate'](_0x556e8b,_0x208c0b,_0xd3707f,_0x4e5d55);else{for(var _0x24007c=_0x556e8b[_0x2358f9(0x237)]-0x1;_0x24007c>=0x0;_0x24007c--)(_0x2a2d17=_0x556e8b[_0x24007c])&&(_0x53d012=(_0x2664d2<0x3?_0x2a2d17(_0x53d012):_0x2664d2>0x3?_0x2a2d17(_0x208c0b,_0xd3707f,_0x53d012):_0x2a2d17(_0x208c0b,_0xd3707f))||_0x53d012);}return _0x2664d2>0x3&&_0x53d012&&Object['defineProperty'](_0x208c0b,_0xd3707f,_0x53d012),_0x53d012;}let G=class extends _0x246302{constructor(_0x1d6ebd,_0x5cfe0a,_0x5bb5f6){const _0x3c5d68=_0x16f6b4;super(),this[_0x3c5d68(0x27c)]=_0x1d6ebd,this[_0x3c5d68(0x23b)]=_0x5cfe0a,this['_collabSessionService']=_0x5bb5f6,V(this,_0x3c5d68(0x268),new Map()),this[_0x3c5d68(0x1ea)]();}async['getLiveShareCoordinator'](_0xca9b28){const _0x22b13f=_0x16f6b4;return this[_0x22b13f(0x268)][_0x22b13f(0x218)](_0xca9b28)||await this['_startLiveShareCoordinator'](_0xca9b28),this[_0x22b13f(0x268)][_0x22b13f(0x23a)](_0xca9b28);}[_0x16f6b4(0x246)](_0x4c2a86){const _0x4bdec6=_0x16f6b4;var _0x367c89;return(_0x367c89=this[_0x4bdec6(0x268)]['get'](_0x4c2a86))==null?null:_0x367c89;}[_0x16f6b4(0x1ea)](){const _0x22f1ef=_0x16f6b4;this[_0x22f1ef(0x27c)][_0x22f1ef(0x24a)](_0xc09af2[_0x22f1ef(0x20d)])['pipe'](_0x4753b7(this[_0x22f1ef(0x1f7)]))[_0x22f1ef(0x222)](async _0x46ef61=>{const _0x4ecb41=_0x22f1ef;let _0x9bee9=_0x46ef61[_0x4ecb41(0x250)][_0x4ecb41(0x214)]();this['_entities']['has'](_0x9bee9)||this['_startLiveShareCoordinator'](_0x9bee9);}),this[_0x22f1ef(0x27c)][_0x22f1ef(0x20c)](_0xc09af2['UNIVER_SHEET'])[_0x22f1ef(0x1fb)](_0x4753b7(this[_0x22f1ef(0x1f7)]))[_0x22f1ef(0x222)](_0x150fdb=>{const _0x348bcb=_0x22f1ef;let _0x367776=_0x150fdb[_0x348bcb(0x214)](),_0x171bbc=this['_entities'][_0x348bcb(0x23a)](_0x367776);_0x171bbc==null||_0x171bbc[_0x348bcb(0x23e)]();});}async[_0x16f6b4(0x212)](_0x23be78){const _0x483707=_0x16f6b4;let _0x468fba=await this[_0x483707(0x247)][_0x483707(0x23c)](_0x23be78),_0x5179c0=this[_0x483707(0x23b)][_0x483707(0x245)](q,_0x23be78,_0x468fba);return _0x5179c0[_0x483707(0x20e)](),this[_0x483707(0x268)][_0x483707(0x21c)](_0x23be78,_0x5179c0),_0x5179c0;}};G=W([U(0x0,_0x4dd311),U(0x1,_0x4b6a05(_0x2d43c8)),U(0x2,_0x4b6a05(_0x319859))],G);let K=function(_0x347eee){const _0x34ecb8=_0x16f6b4;return _0x347eee[_0x34ecb8(0x25c)]='offline',_0x347eee['IDLE']=_0x34ecb8(0x219),_0x347eee[_0x34ecb8(0x221)]='following',_0x347eee['NOT_FOLLOWING']=_0x34ecb8(0x27b),_0x347eee[_0x34ecb8(0x1f4)]=_0x34ecb8(0x25f),_0x347eee;}({}),q=class extends _0x246302{get[_0x16f6b4(0x24d)](){const _0x59a97f=_0x16f6b4;return this[_0x59a97f(0x207)][_0x59a97f(0x1e9)]();}constructor(_0xea7a2,_0x44fcbc,_0x4e3e8c,_0x43c228,_0x4ee2bd){const _0x11b6d9=_0x16f6b4;super(),this[_0x11b6d9(0x27d)]=_0xea7a2,this[_0x11b6d9(0x21b)]=_0x44fcbc,this[_0x11b6d9(0x261)]=_0x4e3e8c,this[_0x11b6d9(0x200)]=_0x43c228,this[_0x11b6d9(0x217)]=_0x4ee2bd,V(this,_0x11b6d9(0x207),new _0x3469e3(_0x11b6d9(0x219))),V(this,_0x11b6d9(0x230),this['_status$'][_0x11b6d9(0x1eb)]()),V(this,'_init',!0x1),V(this,_0x11b6d9(0x278),null),V(this,_0x11b6d9(0x240),null);}[_0x16f6b4(0x23e)](){const _0x46d22a=_0x16f6b4;var _0x3b758c;(_0x3b758c=this[_0x46d22a(0x278)])==null||_0x3b758c['dispose'](),this[_0x46d22a(0x207)][_0x46d22a(0x21f)]('idle'),this[_0x46d22a(0x207)][_0x46d22a(0x213)]();}[_0x16f6b4(0x236)](){return this['_status'];}[_0x16f6b4(0x20e)](){const _0x1ec00a=_0x16f6b4;this[_0x1ec00a(0x1ea)]||(this[_0x1ec00a(0x1ea)]=!0x0,this[_0x1ec00a(0x21b)][_0x1ec00a(0x25e)][_0x1ec00a(0x1fb)](_0x4753b7(this['dispose$']))[_0x1ec00a(0x222)](_0x4f2427=>{const _0x1aeb31=_0x1ec00a;switch(_0x4f2427){case _0x5e1c26['OFFLINE']:this[_0x1aeb31(0x25a)]();break;case _0x5e1c26[_0x1aeb31(0x1f1)]:this[_0x1aeb31(0x231)]();break;default:}}),this[_0x1ec00a(0x21b)][_0x1ec00a(0x279)][_0x1ec00a(0x1fb)](_0x4753b7(this[_0x1ec00a(0x1f7)]))[_0x1ec00a(0x222)](_0x19281a=>{const _0x23e4c8=_0x1ec00a;let {eventID:_0x24942e}=_0x19281a;switch(_0x24942e){case _0x2cae52['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x19281a);break;case _0x2cae52[_0x23e4c8(0x210)]:this[_0x23e4c8(0x1ef)](_0x19281a);break;case _0x2cae52[_0x23e4c8(0x1ec)]:this[_0x23e4c8(0x22b)]();break;case _0x2cae52['NEW_CHANGESETS']:this[_0x23e4c8(0x274)](_0x19281a);break;default:}}));}[_0x16f6b4(0x208)](){const _0x2aa90c=_0x16f6b4;this['_collabSession'][_0x2aa90c(0x216)]({'eventID':_0x2cae52[_0x2aa90c(0x262)],'data':{'unitID':this[_0x2aa90c(0x27d)],'userID':this[_0x2aa90c(0x21b)][_0x2aa90c(0x258)]()}},this[_0x2aa90c(0x27d)]);}[_0x16f6b4(0x275)](){const _0x281895=_0x16f6b4;this[_0x281895(0x24d)]==='presenting'&&(this[_0x281895(0x207)]['next'](_0x281895(0x219)),this[_0x281895(0x21b)][_0x281895(0x216)]({'eventID':_0x2cae52[_0x281895(0x1ec)],'data':{'unitID':this[_0x281895(0x27d)]}},this[_0x281895(0x27d)]));}[_0x16f6b4(0x27a)](){const _0x4f4627=_0x16f6b4;this[_0x4f4627(0x24d)]===_0x4f4627(0x27b)&&(this[_0x4f4627(0x207)][_0x4f4627(0x21f)](_0x4f4627(0x244)),this[_0x4f4627(0x270)]());}[_0x16f6b4(0x255)](){const _0x2197dc=_0x16f6b4;this[_0x2197dc(0x24d)]===_0x2197dc(0x244)&&this[_0x2197dc(0x224)]();}[_0x16f6b4(0x1fc)](_0x338793){const _0x1893b5=_0x16f6b4;let {presenter:_0x5c9d4e}=_0x338793[_0x1893b5(0x24b)],_0x33f279=this['_collabSession'][_0x1893b5(0x258)]();this[_0x1893b5(0x240)]=_0x5c9d4e,_0x5c9d4e===_0x33f279?(this[_0x1893b5(0x224)](),this[_0x1893b5(0x1e7)]()):this['_status']!==_0x1893b5(0x27b)&&(this[_0x1893b5(0x1f9)](),this[_0x1893b5(0x270)]());}['_fetchOperations'](){const _0x468504=_0x16f6b4;let _0x14ca89={'eventID':_0x2cae52[_0x468504(0x276)]};this[_0x468504(0x21b)][_0x468504(0x216)](_0x14ca89,this[_0x468504(0x27d)]);}[_0x16f6b4(0x22b)](){const _0x9f602=_0x16f6b4;this[_0x9f602(0x240)]=null,this[_0x9f602(0x24d)]!==_0x9f602(0x25f)&&this[_0x9f602(0x249)]();}[_0x16f6b4(0x274)](_0x182347){const _0x2f79f1=_0x16f6b4;if(this[_0x2f79f1(0x24d)]===_0x2f79f1(0x244)&&this[_0x2f79f1(0x240)]===_0x182347[_0x2f79f1(0x24b)][_0x2f79f1(0x1e6)]){let _0x29ab7b=_0x396a82(_0x182347['data'])[_0x2f79f1(0x1f0)][_0x2f79f1(0x232)]()[_0x2f79f1(0x1f5)](_0x317f74=>_0x317f74['id']===_0x1274c5['id']);if(_0x29ab7b){let _0x4f5ce3=_0x29ab7b[_0x2f79f1(0x260)][_0x2f79f1(0x202)],_0x45d03e=_0x29ab7b['params'][_0x2f79f1(0x203)]['id'];setTimeout(()=>{const _0x34be81=_0x2f79f1;this[_0x34be81(0x217)][_0x34be81(0x263)](_0x4dbd1e['id'],{'unitId':_0x4f5ce3,'subUnitId':_0x45d03e},{'fromCollab':!0x0});});}}}[_0x16f6b4(0x1e7)](){const _0x12138e=_0x16f6b4;var _0x3b4740;(_0x3b4740=this[_0x12138e(0x278)])==null||_0x3b4740['dispose'](),this[_0x12138e(0x207)][_0x12138e(0x21f)](_0x12138e(0x25f));let _0x3214a1=new Map(),_0x3a141d=this[_0x12138e(0x278)]=new _0x10ec25();_0x3a141d['add'](_0x27d417(()=>{const _0x2fd1fd=_0x12138e;_0x3214a1[_0x2fd1fd(0x1ee)](({subject:_0x4ea995,subscription:_0x131f62})=>{const _0x54ee80=_0x2fd1fd;_0x131f62[_0x54ee80(0x24c)](),_0x4ea995[_0x54ee80(0x213)]();}),_0x3214a1[_0x2fd1fd(0x1ed)]();})),_0x3a141d[_0x12138e(0x253)](this[_0x12138e(0x217)][_0x12138e(0x24f)](_0x585c1e=>{const _0x4a75df=_0x12138e;if(_0x585c1e[_0x4a75df(0x259)]!==_0x318eb4[_0x4a75df(0x226)]||!this['_liveShareService']['shouldShareOperation'](_0x585c1e['id']))return;let {id:_0x1e7cb3}=_0x585c1e,_0x5d0b22;if(_0x3214a1[_0x4a75df(0x218)](_0x1e7cb3))_0x5d0b22=_0x3214a1[_0x4a75df(0x23a)](_0x1e7cb3)[_0x4a75df(0x1ff)];else{var _0x521465;_0x5d0b22=new _0x4d991e();let _0x59e029=_0x5d0b22[_0x4a75df(0x1fb)](_0x4c79ad((_0x521465=this['_configService'][_0x4a75df(0x26e)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x521465,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a75df(0x222)](_0x3606d9=>{const _0x1fd8b2=_0x4a75df;this[_0x1fd8b2(0x21b)][_0x1fd8b2(0x216)]({'eventID':_0x2cae52['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1fd8b2(0x27d)],'operations':{[_0x3606d9['id']]:{'id':_0x3606d9['id'],'params':JSON['stringify'](_0x3606d9['params'])}}}},this['_unitID']);});_0x3214a1['set'](_0x1e7cb3,{'subject':_0x5d0b22,'subscription':_0x59e029});}_0x5d0b22[_0x4a75df(0x21f)](_0x585c1e);})),this[_0x12138e(0x200)][_0x12138e(0x243)](this[_0x12138e(0x27d)])[_0x12138e(0x1ee)](_0x3d0df9=>this[_0x12138e(0x21b)][_0x12138e(0x216)]({'eventID':_0x2cae52[_0x12138e(0x210)],'data':{'unitID':this[_0x12138e(0x27d)],'operations':{[_0x3d0df9['id']]:{'id':_0x3d0df9['id'],'params':JSON['stringify'](_0x3d0df9[_0x12138e(0x260)])}}}},this[_0x12138e(0x27d)]));}[_0x16f6b4(0x1f9)](){const _0x73ad3d=_0x16f6b4;var _0x5d58c7;this[_0x73ad3d(0x207)][_0x73ad3d(0x21f)](_0x73ad3d(0x219)),(_0x5d58c7=this[_0x73ad3d(0x278)])==null||_0x5d58c7[_0x73ad3d(0x23e)](),this[_0x73ad3d(0x278)]=null;}[_0x16f6b4(0x270)](){const _0x5cbe0a=_0x16f6b4;var _0x47962c;(_0x47962c=this[_0x5cbe0a(0x278)])==null||_0x47962c[_0x5cbe0a(0x23e)](),this[_0x5cbe0a(0x207)][_0x5cbe0a(0x21f)](_0x5cbe0a(0x244));}[_0x16f6b4(0x249)](){const _0x1d139b=_0x16f6b4;var _0x5e6e0c;this['_status$']['next'](_0x1d139b(0x219)),(_0x5e6e0c=this[_0x1d139b(0x278)])==null||_0x5e6e0c['dispose'](),this[_0x1d139b(0x278)]=null;}['_stopFollowing'](){const _0x1c5035=_0x16f6b4;var _0x23e119;this['_status$'][_0x1c5035(0x21f)](_0x1c5035(0x27b)),(_0x23e119=this[_0x1c5035(0x278)])==null||_0x23e119['dispose']();}['_handleOperation'](_0x339c28){const _0x36f506=_0x16f6b4;if([_0x36f506(0x25f),'not-following','offline']['includes'](this['_status'])||!_0x339c28[_0x36f506(0x24b)][_0x36f506(0x1fe)]||_0x339c28[_0x36f506(0x24b)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x36f506(0x219)&&this[_0x36f506(0x270)]();let _0x46302c=_0x339c28['data'][_0x36f506(0x234)];Object[_0x36f506(0x209)](_0x46302c)['forEach'](_0x4befca=>{const _0x356e47=_0x36f506;this[_0x356e47(0x217)][_0x356e47(0x263)](_0x4befca['id'],_0x4befca[_0x356e47(0x260)]?JSON['parse'](_0x4befca[_0x356e47(0x260)]):null,{'fromCollab':!0x0});});}[_0x16f6b4(0x25a)](){const _0x39c7fa=_0x16f6b4;var _0xe6f605;this[_0x39c7fa(0x207)][_0x39c7fa(0x21f)]('offline'),(_0xe6f605=this[_0x39c7fa(0x278)])==null||_0xe6f605[_0x39c7fa(0x23e)]();}[_0x16f6b4(0x231)](){const _0x4a0064=_0x16f6b4;this[_0x4a0064(0x207)][_0x4a0064(0x21f)](_0x4a0064(0x219)),this[_0x4a0064(0x229)]();}};q=W([U(0x2,_0x46eafb),U(0x3,_0x4b6a05(H)),U(0x4,_0x4b9491)],q);function J(){const _0x1d0d87=_0x16f6b4;let _0x40471f=_0x29ecdc(G),_0x2ebc98=_0x29ecdc(_0x4dd311),_0x219b0f=_0x41be19(()=>_0x2ebc98[_0x1d0d87(0x265)](_0xc09af2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x29df55,_0xda225c]=_0x1c51b5(null),[_0x2924ce,_0x4d9eb1]=_0x1c51b5(_0x1d0d87(0x219)),_0x48da4b=_0x5bd35f(null);return _0x2a3129(()=>(_0x219b0f&&_0x40471f[_0x1d0d87(0x225)](_0x219b0f[_0x1d0d87(0x214)]())['then'](_0xb1f964=>{const _0xa6a2d9=_0x1d0d87;_0xda225c(_0xb1f964),_0x48da4b[_0xa6a2d9(0x24e)]=_0xb1f964[_0xa6a2d9(0x230)]['subscribe'](_0x4049e2=>{_0x4d9eb1(_0x4049e2);});}),()=>{const _0x2b3bee=_0x1d0d87;var _0x11b8e3;(_0x11b8e3=_0x48da4b[_0x2b3bee(0x24e)])==null||_0x11b8e3[_0x2b3bee(0x24c)](),_0x48da4b['current']=null;}),[_0x219b0f,_0x40471f]),_0x29df55?_0x5c9867(_0x3de5e2,{'align':_0x1d0d87(0x256),'disabled':_0x2924ce===_0x1d0d87(0x266),'className':_0x1d0d87(0x206),'overlay':_0x5c9867(se,{'status':_0x2924ce,'coordinator':_0x29df55}),'children':_0x5c9867(_0x1d0d87(0x22e),{'className':_0x1e00b3(_0x1d0d87(0x25d),{'univer-cursor-not-allowed':_0x2924ce===_0x1d0d87(0x266),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2924ce!==_0x1d0d87(0x266)}),'type':'button','children':_0x5c9867(_0x2b4902,{'className':_0x1d0d87(0x25b)})})}):null;}function se(_0x467be9){const _0x4d6a22=_0x16f6b4;let {status:_0x2cd5d4,coordinator:_0x46592f}=_0x467be9;switch(_0x2cd5d4){case _0x4d6a22(0x219):return _0x5c9867(ce,{'coordinator':_0x46592f});case _0x4d6a22(0x244):return _0x5c9867(le,{'coordinator':_0x46592f});case'not-following':return _0x5c9867(ue,{'coordinator':_0x46592f});case'offline':return _0x5c9867(de,{});case _0x4d6a22(0x25f):return _0x5c9867(Y,{'coordinator':_0x46592f});default:return null;}}function ce(_0x5e8103){const _0x4e0596=_0x16f6b4;let {coordinator:_0x3e8ade}=_0x5e8103;return _0xd26927(_0x348ecc,{'children':[_0x5c9867(_0x4e0596(0x27e),{'className':_0x4e0596(0x223),'children':'Present\x20this\x20document'}),_0x5c9867(_0x2619a0,{'onClick':()=>_0x3e8ade[_0x4e0596(0x208)](),'children':_0x4e0596(0x1fd)})]});}function le(_0x90c1d4){const _0x3f6913=_0x16f6b4;let {coordinator:_0x938efe}=_0x90c1d4;return _0xd26927(_0x348ecc,{'children':[_0x5c9867('div',{'className':_0x3f6913(0x223),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5c9867(_0x2619a0,{'onClick':()=>_0x938efe['stopFollowing'](),'children':'Stop\x20following'})]});}function ue(_0x1d9a12){const _0x164b03=_0x16f6b4;let {coordinator:_0x267752}=_0x1d9a12;return _0xd26927(_0x348ecc,{'children':[_0x5c9867('div',{'className':_0x164b03(0x223),'children':_0x164b03(0x1f6)}),_0x5c9867(_0x2619a0,{'variant':'text','onClick':()=>_0x267752[_0x164b03(0x27a)](),'children':_0x164b03(0x277)})]});}function Y(_0x17faf0){const _0x30f79a=_0x16f6b4;let {coordinator:_0x5d4fee}=_0x17faf0;return _0xd26927(_0x348ecc,{'children':[_0x5c9867(_0x30f79a(0x27e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x30f79a(0x205)}),_0x5c9867(_0x2619a0,{'variant':_0x30f79a(0x1f2),'onClick':()=>_0x5d4fee[_0x30f79a(0x275)](),'children':_0x30f79a(0x22d)})]});}function de(){return _0x5c9867(_0x348ecc,{'children':'You\x27are\x20offline.'});}function _0x3742(_0x4ee06f,_0x354a27){_0x4ee06f=_0x4ee06f-0x1e6;const _0x2e6279=_0x2e62();let _0x3742d7=_0x2e6279[_0x4ee06f];return _0x3742d7;}let X=class extends _0x4b5dc9{constructor(_0x2359b1,_0x1e5f00){const _0x350581=_0x16f6b4;super(),this[_0x350581(0x23b)]=_0x2359b1,this[_0x350581(0x20b)]=_0x1e5f00,this[_0x350581(0x1fa)]();}[_0x16f6b4(0x1fa)](){const _0x313462=_0x16f6b4;this[_0x313462(0x238)](this['_uiPartsService'][_0x313462(0x241)](_0x17ec50[_0x313462(0x272)],()=>_0x432d78(J,this[_0x313462(0x23b)])));}};X=W([U(0x0,_0x4b6a05(_0x2d43c8)),U(0x1,_0xf530cb)],X);var fe=_0x16f6b4(0x21e),pe=_0x16f6b4(0x264);const Z={};let Q=class extends _0x4b5dc9{constructor(_0x3c125e){const _0x5d5110=_0x16f6b4;super(),this[_0x5d5110(0x200)]=_0x3c125e,this[_0x5d5110(0x1ea)]();}['_init'](){const _0x4125d=_0x16f6b4;[_0x986c73['id'],_0x212824['id'],_0x4dbd1e['id']][_0x4125d(0x1ee)](_0x325094=>{const _0x4a1ff1=_0x4125d;this[_0x4a1ff1(0x238)](this['_liveShareService'][_0x4a1ff1(0x23d)](_0x325094));});}};Q=W([U(0x0,_0x4b6a05(H))],Q);let $=class extends _0x547cf5{constructor(_0x486e10=Z,_0x1c92f3,_0x552075){const _0x5f00ee=_0x16f6b4;super(),this['_config']=_0x486e10,this['_injector']=_0x1c92f3,this[_0x5f00ee(0x261)]=_0x552075;let {..._0xa4d04}=_0x26e587({},Z,this[_0x5f00ee(0x21a)]);this[_0x5f00ee(0x261)][_0x5f00ee(0x21d)](_0x5f00ee(0x228),_0xa4d04);}[_0x16f6b4(0x26d)](){const _0x17e6eb=_0x16f6b4;_0x58b3f9(this[_0x17e6eb(0x23b)],_0x10dc75([[H],[G],[Q],[X]],this[_0x17e6eb(0x21a)]['override'])),_0x4ca10c(this[_0x17e6eb(0x23b)],[[Q]]);}[_0x16f6b4(0x271)](){const _0x590c40=_0x16f6b4;_0x4ca10c(this[_0x590c40(0x23b)],[[X]]);}};V($,'type',_0xc09af2[_0x16f6b4(0x248)]),V($,'pluginName',_0x16f6b4(0x233)),V($,_0x16f6b4(0x22a),fe),V($,_0x16f6b4(0x26b),pe),$=W([_0x3dc140(_0x1faa0e),U(0x1,_0x4b6a05(_0x2d43c8)),U(0x2,_0x46eafb)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x303a(_0x52d751,_0x2ede3d){_0x52d751=_0x52d751-0x85;const _0x2fcba9=_0x2fcb();let _0x303a3a=_0x2fcba9[_0x52d751];return _0x303a3a;}const _0x15dec6=_0x303a;(function(_0x442712,_0x97fb7a){const _0x3ff7b4=_0x303a,_0x58e93c=_0x442712();while(!![]){try{const _0x53af9b=-parseInt(_0x3ff7b4(0x89))/0x1*(parseInt(_0x3ff7b4(0x94))/0x2)+-parseInt(_0x3ff7b4(0xa4))/0x3+parseInt(_0x3ff7b4(0x93))/0x4+parseInt(_0x3ff7b4(0xa5))/0x5+-parseInt(_0x3ff7b4(0x9e))/0x6+parseInt(_0x3ff7b4(0x85))/0x7*(parseInt(_0x3ff7b4(0xa7))/0x8)+parseInt(_0x3ff7b4(0x8d))/0x9;if(_0x53af9b===_0x97fb7a)break;else _0x58e93c['push'](_0x58e93c['shift']());}catch(_0x4c2baf){_0x58e93c['push'](_0x58e93c['shift']());}}}(_0x2fcb,0x86143));function _0x2fcb(){const _0x4f6fcd=['getCurrentUnitOfType','2655018YgQYHC','4587660RekjyL','get','8QFksfw','defineProperty','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','function','startFollowing','UNIVER_SHEET','3999205jENbWg','iterator','getLiveShareStatus','getLiveShareCoordinatorSync','944728qHkQbP','stopFollowing','call','_liveShareController','10568871jMMSjN','getStatus','default','_injector','tryStartPresenting','getUnitId','1275720CSdIbN','2tvPmNL','prototype','extend','string','No\x20active\x20workbook\x20found.','symbol','constructor','startPresenting','stopPresenting','toPrimitive','3619050TiQrAr','IDLE','LiveShareStatusEnum','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x2fcb=function(){return _0x4f6fcd;};return _0x2fcb();}import{LiveShareController as _0x29911a,LiveShareStatus as _0x2b9fc5}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x22a8d9,UniverInstanceType as _0x2cdea1}from'@univerjs/core';import{FEnum as _0x7b51a,FUniver as _0x3b0d47}from'@univerjs/core/facade';function o(_0x2d78a7){'@babel/helpers - typeof';const _0x254ff2=_0x303a;return o=typeof Symbol==_0x254ff2(0xaa)&&typeof Symbol[_0x254ff2(0x86)]=='symbol'?function(_0x356d32){return typeof _0x356d32;}:function(_0x5e0744){const _0x4054cb=_0x254ff2;return _0x5e0744&&typeof Symbol==_0x4054cb(0xaa)&&_0x5e0744[_0x4054cb(0x9a)]===Symbol&&_0x5e0744!==Symbol[_0x4054cb(0x95)]?_0x4054cb(0x99):typeof _0x5e0744;},o(_0x2d78a7);}function s(_0x4566c0,_0x1352b2){const _0x17af68=_0x303a;if(o(_0x4566c0)!=_0x17af68(0xa1)||!_0x4566c0)return _0x4566c0;var _0x21d2f2=_0x4566c0[Symbol[_0x17af68(0x9d)]];if(_0x21d2f2!==void 0x0){var _0x125675=_0x21d2f2[_0x17af68(0x8b)](_0x4566c0,_0x1352b2||_0x17af68(0x8f));if(o(_0x125675)!=_0x17af68(0xa1))return _0x125675;throw TypeError(_0x17af68(0xa2));}return(_0x1352b2===_0x17af68(0x97)?String:Number)(_0x4566c0);}function c(_0x597870){const _0x341463=_0x303a;var _0x10b68d=s(_0x597870,_0x341463(0x97));return o(_0x10b68d)==_0x341463(0x99)?_0x10b68d:_0x10b68d+'';}function l(_0x2d8e77,_0x290394,_0x3be3bc){const _0x37059c=_0x303a;return(_0x290394=c(_0x290394))in _0x2d8e77?Object[_0x37059c(0xa8)](_0x2d8e77,_0x290394,{'value':_0x3be3bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d8e77[_0x290394]=_0x3be3bc,_0x2d8e77;}var u=class extends _0x3b0d47{constructor(..._0x203974){const _0x422d64=_0x303a;super(..._0x203974),l(this,_0x422d64(0x8c),void 0x0);}['_initialize'](_0x7c795e){const _0x2d3553=_0x303a;this['_liveShareController']=_0x7c795e[_0x2d3553(0xa6)](_0x29911a);}[_0x15dec6(0x87)](){const _0x3973dd=_0x15dec6;var _0x4c5c58;let _0xad1859=this['_injector'][_0x3973dd(0xa6)](_0x22a8d9)[_0x3973dd(0xa3)](_0x2cdea1[_0x3973dd(0xac)]);if(!_0xad1859)throw Error('No\x20active\x20workbook\x20found.');let _0x185a76=_0xad1859[_0x3973dd(0x92)](),_0x17256c=this['_liveShareController'][_0x3973dd(0x88)](_0x185a76);return(_0x4c5c58=_0x17256c==null?void 0x0:_0x17256c[_0x3973dd(0x8e)]())==null?_0x2b9fc5[_0x3973dd(0x9f)]:_0x4c5c58;}[_0x15dec6(0xab)](){const _0x1651be=_0x15dec6;let _0x2281a3=this[_0x1651be(0x90)][_0x1651be(0xa6)](_0x22a8d9)[_0x1651be(0xa3)](_0x2cdea1[_0x1651be(0xac)]);if(!_0x2281a3)throw Error('No\x20active\x20workbook\x20found.');let _0x1d8bea=_0x2281a3['getUnitId'](),_0x4b599f=this[_0x1651be(0x8c)][_0x1651be(0x88)](_0x1d8bea);if(!_0x4b599f)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b599f[_0x1651be(0xab)]();}[_0x15dec6(0x8a)](){const _0x48887d=_0x15dec6;let _0xcd7b84=this[_0x48887d(0x90)][_0x48887d(0xa6)](_0x22a8d9)['getCurrentUnitOfType'](_0x2cdea1[_0x48887d(0xac)]);if(!_0xcd7b84)throw Error('No\x20active\x20workbook\x20found.');let _0x51b80f=_0xcd7b84['getUnitId'](),_0x34194d=this[_0x48887d(0x8c)]['getLiveShareCoordinatorSync'](_0x51b80f);if(!_0x34194d)throw Error(_0x48887d(0xa9));_0x34194d['stopFollowing']();}[_0x15dec6(0x9b)](){const _0x58989f=_0x15dec6;let _0x459276=this[_0x58989f(0x90)]['get'](_0x22a8d9)['getCurrentUnitOfType'](_0x2cdea1[_0x58989f(0xac)]);if(!_0x459276)throw Error(_0x58989f(0x98));let _0x44a772=_0x459276[_0x58989f(0x92)](),_0x16af71=this[_0x58989f(0x8c)][_0x58989f(0x88)](_0x44a772);if(!_0x16af71)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x16af71[_0x58989f(0x91)]();}['stopPresenting'](){const _0x174886=_0x15dec6;let _0x1ee611=this['_injector'][_0x174886(0xa6)](_0x22a8d9)[_0x174886(0xa3)](_0x2cdea1[_0x174886(0xac)]);if(!_0x1ee611)throw Error(_0x174886(0x98));let _0x51bb88=_0x1ee611['getUnitId'](),_0x13c16a=this[_0x174886(0x8c)][_0x174886(0x88)](_0x51bb88);if(!_0x13c16a)throw Error(_0x174886(0xa9));_0x13c16a[_0x174886(0x9c)]();}};_0x3b0d47['extend'](u);var d=class extends _0x7b51a{get[_0x15dec6(0xa0)](){return _0x2b9fc5;}};_0x7b51a[_0x15dec6(0x96)](d);export{};
1
+ function _0x4424(_0x3baef3,_0x206bac){_0x3baef3=_0x3baef3-0x13c;const _0x356a3a=_0x356a();let _0x442405=_0x356a3a[_0x3baef3];return _0x442405;}const _0x303069=_0x4424;(function(_0x158469,_0x1637b3){const _0x39df0b=_0x4424,_0x51d07a=_0x158469();while(!![]){try{const _0x2979c0=-parseInt(_0x39df0b(0x15f))/0x1+parseInt(_0x39df0b(0x15e))/0x2+-parseInt(_0x39df0b(0x157))/0x3*(parseInt(_0x39df0b(0x143))/0x4)+parseInt(_0x39df0b(0x144))/0x5+-parseInt(_0x39df0b(0x15a))/0x6+parseInt(_0x39df0b(0x14e))/0x7+parseInt(_0x39df0b(0x151))/0x8*(parseInt(_0x39df0b(0x153))/0x9);if(_0x2979c0===_0x1637b3)break;else _0x51d07a['push'](_0x51d07a['shift']());}catch(_0x3b4b07){_0x51d07a['push'](_0x51d07a['shift']());}}}(_0x356a,0x9452f));import{LiveShareController as _0x331175,LiveShareStatus as _0x1cbc7d}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x1fc3b0,UniverInstanceType as _0x566577}from'@univerjs/core';import{FEnum as _0x44b5ce,FUniver as _0x2e2563}from'@univerjs/core/facade';function o(_0x18ccf7){'@babel/helpers - typeof';const _0x55c532=_0x4424;return o=typeof Symbol==_0x55c532(0x159)&&typeof Symbol[_0x55c532(0x146)]==_0x55c532(0x14c)?function(_0x481534){return typeof _0x481534;}:function(_0x5d759b){const _0x138721=_0x55c532;return _0x5d759b&&typeof Symbol==_0x138721(0x159)&&_0x5d759b['constructor']===Symbol&&_0x5d759b!==Symbol[_0x138721(0x14b)]?_0x138721(0x14c):typeof _0x5d759b;},o(_0x18ccf7);}function s(_0x3ff0b4,_0x46cf3e){const _0x3e3e2d=_0x4424;if(o(_0x3ff0b4)!=_0x3e3e2d(0x155)||!_0x3ff0b4)return _0x3ff0b4;var _0x431eb3=_0x3ff0b4[Symbol[_0x3e3e2d(0x142)]];if(_0x431eb3!==void 0x0){var _0x30aaee=_0x431eb3[_0x3e3e2d(0x140)](_0x3ff0b4,_0x46cf3e||_0x3e3e2d(0x15d));if(o(_0x30aaee)!=_0x3e3e2d(0x155))return _0x30aaee;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x46cf3e===_0x3e3e2d(0x156)?String:Number)(_0x3ff0b4);}function c(_0x153bc2){const _0xfab395=_0x4424;var _0x17e489=s(_0x153bc2,_0xfab395(0x156));return o(_0x17e489)=='symbol'?_0x17e489:_0x17e489+'';}function _0x356a(){const _0x442a2c=['default','376466YDseIm','162104AWvKmV','_initialize','getUnitId','No\x20active\x20workbook\x20found.','stopPresenting','tryStartPresenting','stopFollowing','call','LiveShareStatusEnum','toPrimitive','3928eRZskS','3628075KAqUeV','get','iterator','startPresenting','startFollowing','_liveShareController','getCurrentUnitOfType','prototype','symbol','_injector','1532034dBdoTd','getLiveShareCoordinatorSync','extend','1026616BxqCLP','defineProperty','90AmKTFl','getStatus','object','string','3027yKbvdZ','IDLE','function','3933018ZvSlzx','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET'];_0x356a=function(){return _0x442a2c;};return _0x356a();}function l(_0x48251b,_0x82db64,_0x880cce){const _0x21f7b0=_0x4424;return(_0x82db64=c(_0x82db64))in _0x48251b?Object[_0x21f7b0(0x152)](_0x48251b,_0x82db64,{'value':_0x880cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48251b[_0x82db64]=_0x880cce,_0x48251b;}var u=class extends _0x2e2563{constructor(..._0xb14720){const _0x54d753=_0x4424;super(..._0xb14720),l(this,_0x54d753(0x149),void 0x0);}[_0x303069(0x160)](_0x5eca5e){this['_liveShareController']=_0x5eca5e['get'](_0x331175);}['getLiveShareStatus'](){const _0xc5a4c2=_0x303069;var _0xf0e7e8;let _0x1797d7=this[_0xc5a4c2(0x14d)][_0xc5a4c2(0x145)](_0x1fc3b0)[_0xc5a4c2(0x14a)](_0x566577[_0xc5a4c2(0x15c)]);if(!_0x1797d7)throw Error(_0xc5a4c2(0x13c));let _0x30bff9=_0x1797d7[_0xc5a4c2(0x161)](),_0x48f752=this['_liveShareController'][_0xc5a4c2(0x14f)](_0x30bff9);return(_0xf0e7e8=_0x48f752==null?void 0x0:_0x48f752[_0xc5a4c2(0x154)]())==null?_0x1cbc7d[_0xc5a4c2(0x158)]:_0xf0e7e8;}[_0x303069(0x148)](){const _0x493cbd=_0x303069;let _0x29b0a1=this[_0x493cbd(0x14d)][_0x493cbd(0x145)](_0x1fc3b0)[_0x493cbd(0x14a)](_0x566577[_0x493cbd(0x15c)]);if(!_0x29b0a1)throw Error(_0x493cbd(0x13c));let _0x362f91=_0x29b0a1['getUnitId'](),_0x1475cc=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x362f91);if(!_0x1475cc)throw Error(_0x493cbd(0x15b));_0x1475cc[_0x493cbd(0x148)]();}['stopFollowing'](){const _0x227acd=_0x303069;let _0x2a005f=this['_injector'][_0x227acd(0x145)](_0x1fc3b0)[_0x227acd(0x14a)](_0x566577[_0x227acd(0x15c)]);if(!_0x2a005f)throw Error(_0x227acd(0x13c));let _0x73981b=_0x2a005f[_0x227acd(0x161)](),_0x867f36=this[_0x227acd(0x149)][_0x227acd(0x14f)](_0x73981b);if(!_0x867f36)throw Error(_0x227acd(0x15b));_0x867f36[_0x227acd(0x13f)]();}[_0x303069(0x147)](){const _0x4d5b60=_0x303069;let _0x8653c6=this[_0x4d5b60(0x14d)][_0x4d5b60(0x145)](_0x1fc3b0)[_0x4d5b60(0x14a)](_0x566577['UNIVER_SHEET']);if(!_0x8653c6)throw Error('No\x20active\x20workbook\x20found.');let _0x47a60a=_0x8653c6[_0x4d5b60(0x161)](),_0x15bd4e=this['_liveShareController'][_0x4d5b60(0x14f)](_0x47a60a);if(!_0x15bd4e)throw Error(_0x4d5b60(0x15b));_0x15bd4e[_0x4d5b60(0x13e)]();}[_0x303069(0x13d)](){const _0x27f606=_0x303069;let _0x2c80be=this[_0x27f606(0x14d)][_0x27f606(0x145)](_0x1fc3b0)[_0x27f606(0x14a)](_0x566577[_0x27f606(0x15c)]);if(!_0x2c80be)throw Error('No\x20active\x20workbook\x20found.');let _0x1a7bdd=_0x2c80be[_0x27f606(0x161)](),_0x18fd5d=this[_0x27f606(0x149)][_0x27f606(0x14f)](_0x1a7bdd);if(!_0x18fd5d)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18fd5d['stopPresenting']();}};_0x2e2563[_0x303069(0x150)](u);var d=class extends _0x44b5ce{get[_0x303069(0x141)](){return _0x1cbc7d;}};_0x44b5ce[_0x303069(0x150)](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a51e2=_0x4f04;(function(_0x7c94c4,_0x9fd205){const _0x517d9e=_0x4f04,_0x11008d=_0x7c94c4();while(!![]){try{const _0x4b19f5=-parseInt(_0x517d9e(0x129))/0x1*(-parseInt(_0x517d9e(0x15b))/0x2)+-parseInt(_0x517d9e(0x13f))/0x3*(-parseInt(_0x517d9e(0x16e))/0x4)+parseInt(_0x517d9e(0x181))/0x5*(parseInt(_0x517d9e(0x189))/0x6)+parseInt(_0x517d9e(0x175))/0x7+-parseInt(_0x517d9e(0x17e))/0x8*(parseInt(_0x517d9e(0x112))/0x9)+-parseInt(_0x517d9e(0x139))/0xa+-parseInt(_0x517d9e(0x121))/0xb;if(_0x4b19f5===_0x9fd205)break;else _0x11008d['push'](_0x11008d['shift']());}catch(_0x2953e4){_0x11008d['push'](_0x11008d['shift']());}}}(_0x3355,0x832fa));import{CommandType as _0x7f38d3,DependentOn as _0x4c3c0f,Disposable as _0x4a49fb,DisposableCollection as _0x18665d,ICommandService as _0x3b1e83,IConfigService as _0x57549a,IUniverInstanceService as _0x4621f9,Inject as _0x3840c8,Injector as _0x368b3b,Plugin as _0x4e113b,RxDisposable as _0x1e9a11,UniverInstanceType as _0x17f2f1,merge as _0x5aed77,mergeOverrideWithDependencies as _0x168dbe,registerDependencies as _0x127fa5,toDisposable as _0x4d1eee,touchDependencies as _0x337d60}from'@univerjs/core';import{BuiltInUIPart as _0x377270,IUIPartsService as _0x2e12cf,connectInjector as _0x7d9cd6,useDependency as _0x47178f,useObservable as _0x557da8}from'@univerjs/ui';function _0x4f04(_0x57b70f,_0x541404){_0x57b70f=_0x57b70f-0x106;const _0x33556f=_0x3355();let _0x4f044c=_0x33556f[_0x57b70f];return _0x4f044c;}import{Button as _0x1c8cae,Dropdown as _0x8acd69,clsx as _0x59885a}from'@univerjs/design';import{LiveShareIcon as _0x22016b}from'@univerjs/icons';import{useEffect as _0xa54735,useRef as _0x18e2b4,useState as _0x358d85}from'react';import{CollaborationEvent as _0x190d08,parseProtocolChangeset as _0x426c25}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2d443c,SessionStatus as _0x193eec,UniverCollaborationClientPlugin as _0x9355f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x228261,SetWorksheetActiveOperation as _0x519c92}from'@univerjs/sheets';import{BehaviorSubject as _0x5a7d17,Subject as _0x574717}from'rxjs';import{takeUntil as _0x1bbe95,throttleTime as _0x409197}from'rxjs/operators';import{Fragment as _0x16c28a,jsx as _0xe94489,jsxs as _0x3b4390}from'react/jsx-runtime';import{SetScrollOperation as _0x13b133,SetZoomRatioOperation as _0x35525e}from'@univerjs/sheets-ui';function R(_0x40bae0){'@babel/helpers - typeof';const _0x2359fe=_0x4f04;return R=typeof Symbol==_0x2359fe(0x18b)&&typeof Symbol[_0x2359fe(0x120)]==_0x2359fe(0x194)?function(_0x145bbf){return typeof _0x145bbf;}:function(_0x524d37){const _0x45a1ad=_0x2359fe;return _0x524d37&&typeof Symbol=='function'&&_0x524d37[_0x45a1ad(0x179)]===Symbol&&_0x524d37!==Symbol[_0x45a1ad(0x143)]?_0x45a1ad(0x194):typeof _0x524d37;},R(_0x40bae0);}function z(_0x5e38e2,_0xd45460){const _0x3d6ea6=_0x4f04;if(R(_0x5e38e2)!=_0x3d6ea6(0x115)||!_0x5e38e2)return _0x5e38e2;var _0x580a8c=_0x5e38e2[Symbol['toPrimitive']];if(_0x580a8c!==void 0x0){var _0x1020fb=_0x580a8c[_0x3d6ea6(0x15d)](_0x5e38e2,_0xd45460||_0x3d6ea6(0x16b));if(R(_0x1020fb)!='object')return _0x1020fb;throw TypeError(_0x3d6ea6(0x165));}return(_0xd45460===_0x3d6ea6(0x197)?String:Number)(_0x5e38e2);}function B(_0x3058f0){var _0x56af65=z(_0x3058f0,'string');return R(_0x56af65)=='symbol'?_0x56af65:_0x56af65+'';}function V(_0x37da58,_0x440c93,_0x55f37b){return(_0x440c93=B(_0x440c93))in _0x37da58?Object['defineProperty'](_0x37da58,_0x440c93,{'value':_0x55f37b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37da58[_0x440c93]=_0x55f37b,_0x37da58;}var H=class extends _0x4a49fb{constructor(..._0x128230){const _0x195211=_0x4f04;super(..._0x128230),V(this,_0x195211(0x162),new Set()),V(this,_0x195211(0x196),new Set());}[_0x3a51e2(0x138)](_0x29075c){const _0x34ac9b=_0x3a51e2;return this['_sharedOperations']['add'](_0x29075c),_0x4d1eee(()=>this[_0x34ac9b(0x162)][_0x34ac9b(0x163)](_0x29075c));}[_0x3a51e2(0x166)](_0x26e81f){const _0x52e67d=_0x3a51e2;return this['_reporters']['add'](_0x26e81f),_0x4d1eee(()=>this[_0x52e67d(0x196)]['delete'](_0x26e81f));}[_0x3a51e2(0x133)](_0x3bc063){const _0x39f892=_0x3a51e2;return this[_0x39f892(0x162)][_0x39f892(0x14a)](_0x3bc063);}[_0x3a51e2(0x180)](_0x22d7e7){const _0x43d20c=_0x3a51e2;return Array[_0x43d20c(0x106)](this[_0x43d20c(0x196)])['map'](_0x3cfc32=>_0x3cfc32(_0x22d7e7));}};function U(_0x21ac22,_0x5300cb){return function(_0x333287,_0x5490a9){_0x5300cb(_0x333287,_0x5490a9,_0x21ac22);};}function W(_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba){const _0x5210b2=_0x3a51e2;var _0x1a58cb=arguments[_0x5210b2(0x155)],_0x32a8fc=_0x1a58cb<0x3?_0x32a2c4:_0x43f3ba===null?_0x43f3ba=Object[_0x5210b2(0x18a)](_0x32a2c4,_0x52d947):_0x43f3ba,_0x5f0cfb;if(typeof Reflect==_0x5210b2(0x115)&&typeof Reflect[_0x5210b2(0x18d)]==_0x5210b2(0x18b))_0x32a8fc=Reflect[_0x5210b2(0x18d)](_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba);else{for(var _0x1c3fe9=_0x435b2e[_0x5210b2(0x155)]-0x1;_0x1c3fe9>=0x0;_0x1c3fe9--)(_0x5f0cfb=_0x435b2e[_0x1c3fe9])&&(_0x32a8fc=(_0x1a58cb<0x3?_0x5f0cfb(_0x32a8fc):_0x1a58cb>0x3?_0x5f0cfb(_0x32a2c4,_0x52d947,_0x32a8fc):_0x5f0cfb(_0x32a2c4,_0x52d947))||_0x32a8fc);}return _0x1a58cb>0x3&&_0x32a8fc&&Object[_0x5210b2(0x17f)](_0x32a2c4,_0x52d947,_0x32a8fc),_0x32a8fc;}let G=class extends _0x1e9a11{constructor(_0x2d0d1b,_0x3c9550,_0x24da43){const _0xd924e6=_0x3a51e2;super(),this[_0xd924e6(0x12e)]=_0x2d0d1b,this[_0xd924e6(0x10e)]=_0x3c9550,this[_0xd924e6(0x110)]=_0x24da43,V(this,_0xd924e6(0x11c),new Map()),this[_0xd924e6(0x188)]();}async['getLiveShareCoordinator'](_0x19eded){const _0x552abb=_0x3a51e2;return this['_entities'][_0x552abb(0x14a)](_0x19eded)||await this[_0x552abb(0x11d)](_0x19eded),this[_0x552abb(0x11c)][_0x552abb(0x183)](_0x19eded);}[_0x3a51e2(0x134)](_0x5a9c67){const _0x31d597=_0x3a51e2;var _0x36e5c1;return(_0x36e5c1=this[_0x31d597(0x11c)][_0x31d597(0x183)](_0x5a9c67))==null?null:_0x36e5c1;}['_init'](){const _0x430e38=_0x3a51e2;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this[_0x430e38(0x191)]))[_0x430e38(0x19a)](async _0x8c48c7=>{const _0x4fca02=_0x430e38;let _0x389370=_0x8c48c7['unit']['getUnitId']();this['_entities'][_0x4fca02(0x14a)](_0x389370)||this['_startLiveShareCoordinator'](_0x389370);}),this[_0x430e38(0x12e)]['getTypeOfUnitDisposed$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this['dispose$']))[_0x430e38(0x19a)](_0x1b0592=>{const _0x219248=_0x430e38;let _0x154f02=_0x1b0592['getUnitId'](),_0x2763e1=this[_0x219248(0x11c)][_0x219248(0x183)](_0x154f02);_0x2763e1==null||_0x2763e1[_0x219248(0x13a)]();});}async[_0x3a51e2(0x11d)](_0x206541){const _0x4077cb=_0x3a51e2;let _0x299bd5=await this[_0x4077cb(0x110)][_0x4077cb(0x14c)](_0x206541),_0x23fb35=this[_0x4077cb(0x10e)][_0x4077cb(0x16d)](q,_0x206541,_0x299bd5);return _0x23fb35[_0x4077cb(0x11a)](),this['_entities'][_0x4077cb(0x192)](_0x206541,_0x23fb35),_0x23fb35;}};G=W([U(0x0,_0x4621f9),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x3840c8(_0x2d443c))],G);let K=function(_0x40e7e5){const _0x1707de=_0x3a51e2;return _0x40e7e5[_0x1707de(0x141)]='offline',_0x40e7e5[_0x1707de(0x117)]=_0x1707de(0x151),_0x40e7e5[_0x1707de(0x186)]=_0x1707de(0x160),_0x40e7e5[_0x1707de(0x150)]=_0x1707de(0x12a),_0x40e7e5[_0x1707de(0x154)]=_0x1707de(0x156),_0x40e7e5;}({}),q=class extends _0x1e9a11{get[_0x3a51e2(0x140)](){const _0x2b6524=_0x3a51e2;return this[_0x2b6524(0x17c)][_0x2b6524(0x18f)]();}constructor(_0x43e65f,_0x369a37,_0x393d64,_0x434708,_0x40b832){const _0x3e3032=_0x3a51e2;super(),this[_0x3e3032(0x164)]=_0x43e65f,this[_0x3e3032(0x119)]=_0x369a37,this['_configService']=_0x393d64,this[_0x3e3032(0x136)]=_0x434708,this[_0x3e3032(0x108)]=_0x40b832,V(this,_0x3e3032(0x17c),new _0x5a7d17(_0x3e3032(0x151))),V(this,_0x3e3032(0x12c),this['_status$']['asObservable']()),V(this,'_init',!0x1),V(this,_0x3e3032(0x116),null),V(this,_0x3e3032(0x10c),null);}[_0x3a51e2(0x13a)](){const _0x284d01=_0x3a51e2;var _0x5ab5ee;(_0x5ab5ee=this[_0x284d01(0x116)])==null||_0x5ab5ee[_0x284d01(0x13a)](),this['_status$'][_0x284d01(0x159)](_0x284d01(0x151)),this[_0x284d01(0x17c)][_0x284d01(0x12d)]();}[_0x3a51e2(0x170)](){const _0x35afb5=_0x3a51e2;return this[_0x35afb5(0x140)];}[_0x3a51e2(0x11a)](){const _0x41b569=_0x3a51e2;this[_0x41b569(0x188)]||(this[_0x41b569(0x188)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x1bbe95(this[_0x41b569(0x191)]))[_0x41b569(0x19a)](_0x4b2061=>{const _0x451f48=_0x41b569;switch(_0x4b2061){case _0x193eec['OFFLINE']:this[_0x451f48(0x124)]();break;case _0x193eec[_0x451f48(0x127)]:this[_0x451f48(0x152)]();break;default:}}),this['_collabSession'][_0x41b569(0x142)]['pipe'](_0x1bbe95(this['dispose$']))[_0x41b569(0x19a)](_0x4a7ee4=>{const _0x13c775=_0x41b569;let {eventID:_0x24563a}=_0x4a7ee4;switch(_0x24563a){case _0x190d08[_0x13c775(0x137)]:this[_0x13c775(0x195)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x114)]:this[_0x13c775(0x144)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x161)]:this['_handleTerminate']();break;case _0x190d08[_0x13c775(0x125)]:this[_0x13c775(0x123)](_0x4a7ee4);break;default:}}));}['tryStartPresenting'](){const _0x2d4d04=_0x3a51e2;this[_0x2d4d04(0x119)][_0x2d4d04(0x185)]({'eventID':_0x190d08['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x2d4d04(0x119)][_0x2d4d04(0x13c)]()}},this[_0x2d4d04(0x164)]);}[_0x3a51e2(0x146)](){const _0x10bfec=_0x3a51e2;this['_status']===_0x10bfec(0x156)&&(this[_0x10bfec(0x17c)][_0x10bfec(0x159)]('idle'),this[_0x10bfec(0x119)][_0x10bfec(0x185)]({'eventID':_0x190d08[_0x10bfec(0x161)],'data':{'unitID':this[_0x10bfec(0x164)]}},this[_0x10bfec(0x164)]));}[_0x3a51e2(0x171)](){const _0x11a72a=_0x3a51e2;this['_status']===_0x11a72a(0x12a)&&(this[_0x11a72a(0x17c)][_0x11a72a(0x159)](_0x11a72a(0x160)),this[_0x11a72a(0x187)]());}[_0x3a51e2(0x157)](){const _0x14eacd=_0x3a51e2;this[_0x14eacd(0x140)]===_0x14eacd(0x160)&&this['_stopFollowing']();}['_handleNewHost'](_0x1651f0){const _0x4dc404=_0x3a51e2;let {presenter:_0x1ecdee}=_0x1651f0[_0x4dc404(0x16f)],_0x5d5e28=this[_0x4dc404(0x119)][_0x4dc404(0x13c)]();this[_0x4dc404(0x10c)]=_0x1ecdee,_0x1ecdee===_0x5d5e28?(this[_0x4dc404(0x131)](),this[_0x4dc404(0x15a)]()):this[_0x4dc404(0x140)]!==_0x4dc404(0x12a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3a51e2(0x126)](){const _0x25250c=_0x3a51e2;let _0x590b56={'eventID':_0x190d08['LIVESHARE_FETCH_OPERATIONS']};this[_0x25250c(0x119)][_0x25250c(0x185)](_0x590b56,this[_0x25250c(0x164)]);}[_0x3a51e2(0x10d)](){const _0x13d2fb=_0x3a51e2;this['_presenter']=null,this[_0x13d2fb(0x140)]!==_0x13d2fb(0x156)&&this['_beIdle']();}[_0x3a51e2(0x123)](_0x163903){const _0x27382b=_0x3a51e2;if(this['_status']===_0x27382b(0x160)&&this[_0x27382b(0x10c)]===_0x163903[_0x27382b(0x16f)][_0x27382b(0x147)]){let _0x5b1cf6=_0x426c25(_0x163903[_0x27382b(0x16f)])[_0x27382b(0x173)][_0x27382b(0x14b)]()[_0x27382b(0x132)](_0x362b5a=>_0x362b5a['id']===_0x228261['id']);if(_0x5b1cf6){let _0x29c4b0=_0x5b1cf6[_0x27382b(0x130)][_0x27382b(0x17a)],_0x30543d=_0x5b1cf6[_0x27382b(0x130)]['sheet']['id'];setTimeout(()=>{const _0x1e70fe=_0x27382b;this[_0x1e70fe(0x108)][_0x1e70fe(0x128)](_0x519c92['id'],{'unitId':_0x29c4b0,'subUnitId':_0x30543d},{'fromCollab':!0x0});});}}}[_0x3a51e2(0x15a)](){const _0x34a16d=_0x3a51e2;var _0x463490;(_0x463490=this[_0x34a16d(0x116)])==null||_0x463490[_0x34a16d(0x13a)](),this[_0x34a16d(0x17c)][_0x34a16d(0x159)]('presenting');let _0x453ff6=new Map(),_0x3da532=this[_0x34a16d(0x116)]=new _0x18665d();_0x3da532[_0x34a16d(0x19c)](_0x4d1eee(()=>{const _0x232b80=_0x34a16d;_0x453ff6[_0x232b80(0x167)](({subject:_0x56c9e4,subscription:_0x41f52d})=>{const _0x170c8c=_0x232b80;_0x41f52d[_0x170c8c(0x16c)](),_0x56c9e4[_0x170c8c(0x12d)]();}),_0x453ff6[_0x232b80(0x198)]();})),_0x3da532[_0x34a16d(0x19c)](this[_0x34a16d(0x108)][_0x34a16d(0x190)](_0x3b026b=>{const _0x751393=_0x34a16d;if(_0x3b026b[_0x751393(0x13e)]!==_0x7f38d3[_0x751393(0x135)]||!this[_0x751393(0x136)][_0x751393(0x133)](_0x3b026b['id']))return;let {id:_0x278cb3}=_0x3b026b,_0x4db587;if(_0x453ff6[_0x751393(0x14a)](_0x278cb3))_0x4db587=_0x453ff6[_0x751393(0x183)](_0x278cb3)[_0x751393(0x11e)];else{var _0x465484;_0x4db587=new _0x574717();let _0x4fe22a=_0x4db587[_0x751393(0x10a)](_0x409197((_0x465484=this[_0x751393(0x15c)][_0x751393(0x145)](_0x751393(0x177)))==null?0xc8:_0x465484,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x751393(0x19a)](_0x76ef33=>{const _0x4b7ab0=_0x751393;this[_0x4b7ab0(0x119)][_0x4b7ab0(0x185)]({'eventID':_0x190d08[_0x4b7ab0(0x114)],'data':{'unitID':this[_0x4b7ab0(0x164)],'operations':{[_0x76ef33['id']]:{'id':_0x76ef33['id'],'params':JSON['stringify'](_0x76ef33['params'])}}}},this['_unitID']);});_0x453ff6[_0x751393(0x192)](_0x278cb3,{'subject':_0x4db587,'subscription':_0x4fe22a});}_0x4db587[_0x751393(0x159)](_0x3b026b);})),this['_liveShareService'][_0x34a16d(0x180)](this[_0x34a16d(0x164)])[_0x34a16d(0x167)](_0x45d99e=>this[_0x34a16d(0x119)]['send']({'eventID':_0x190d08['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34a16d(0x164)],'operations':{[_0x45d99e['id']]:{'id':_0x45d99e['id'],'params':JSON['stringify'](_0x45d99e['params'])}}}},this[_0x34a16d(0x164)]));}['_stopPresenting'](){const _0x32eb23=_0x3a51e2;var _0x99d5cc;this[_0x32eb23(0x17c)][_0x32eb23(0x159)](_0x32eb23(0x151)),(_0x99d5cc=this[_0x32eb23(0x116)])==null||_0x99d5cc[_0x32eb23(0x13a)](),this[_0x32eb23(0x116)]=null;}[_0x3a51e2(0x187)](){const _0x498ad6=_0x3a51e2;var _0x4528be;(_0x4528be=this[_0x498ad6(0x116)])==null||_0x4528be[_0x498ad6(0x13a)](),this[_0x498ad6(0x17c)][_0x498ad6(0x159)](_0x498ad6(0x160));}[_0x3a51e2(0x17d)](){const _0x53c94e=_0x3a51e2;var _0x1e18df;this[_0x53c94e(0x17c)][_0x53c94e(0x159)](_0x53c94e(0x151)),(_0x1e18df=this['_commandDisposable'])==null||_0x1e18df[_0x53c94e(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x52a6c5=_0x3a51e2;var _0xac56a2;this['_status$'][_0x52a6c5(0x159)](_0x52a6c5(0x12a)),(_0xac56a2=this[_0x52a6c5(0x116)])==null||_0xac56a2['dispose']();}['_handleOperation'](_0x1e233c){const _0xd56dba=_0x3a51e2;if([_0xd56dba(0x156),_0xd56dba(0x12a),'offline'][_0xd56dba(0x109)](this[_0xd56dba(0x140)])||!_0x1e233c['data'][_0xd56dba(0x18c)]||_0x1e233c['data'][_0xd56dba(0x18c)]===this[_0xd56dba(0x119)][_0xd56dba(0x13c)]())return;this[_0xd56dba(0x140)]===_0xd56dba(0x151)&&this[_0xd56dba(0x187)]();let _0x256ee3=_0x1e233c[_0xd56dba(0x16f)][_0xd56dba(0x14f)];Object[_0xd56dba(0x113)](_0x256ee3)[_0xd56dba(0x167)](_0x59a1d2=>{const _0x28a37d=_0xd56dba;this[_0x28a37d(0x108)][_0x28a37d(0x128)](_0x59a1d2['id'],_0x59a1d2[_0x28a37d(0x130)]?JSON['parse'](_0x59a1d2[_0x28a37d(0x130)]):null,{'fromCollab':!0x0});});}[_0x3a51e2(0x124)](){const _0x35c6c8=_0x3a51e2;var _0x2f56c5;this[_0x35c6c8(0x17c)]['next'](_0x35c6c8(0x122)),(_0x2f56c5=this[_0x35c6c8(0x116)])==null||_0x2f56c5[_0x35c6c8(0x13a)]();}['_handleOnline'](){const _0xd9627=_0x3a51e2;this[_0xd9627(0x17c)][_0xd9627(0x159)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x57549a),U(0x3,_0x3840c8(H)),U(0x4,_0x3b1e83)],q);function J(){const _0x41191f=_0x3a51e2;let _0x290dc9=_0x47178f(G),_0x592e87=_0x47178f(_0x4621f9),_0x17f05d=_0x557da8(()=>_0x592e87[_0x41191f(0x18e)](_0x17f2f1[_0x41191f(0x158)]),void 0x0,!0x1,[]),[_0xeea236,_0x431a25]=_0x358d85(null),[_0x147972,_0x44b26c]=_0x358d85(_0x41191f(0x151)),_0x2c68c2=_0x18e2b4(null);return _0xa54735(()=>(_0x17f05d&&_0x290dc9['getLiveShareCoordinator'](_0x17f05d[_0x41191f(0x19d)]())[_0x41191f(0x17b)](_0x320267=>{const _0x33307d=_0x41191f;_0x431a25(_0x320267),_0x2c68c2[_0x33307d(0x10b)]=_0x320267[_0x33307d(0x12c)][_0x33307d(0x19a)](_0x545bdc=>{_0x44b26c(_0x545bdc);});}),()=>{const _0x58820f=_0x41191f;var _0x5f5b83;(_0x5f5b83=_0x2c68c2[_0x58820f(0x10b)])==null||_0x5f5b83[_0x58820f(0x16c)](),_0x2c68c2['current']=null;}),[_0x17f05d,_0x290dc9]),_0xeea236?_0xe94489(_0x8acd69,{'align':_0x41191f(0x10f),'disabled':_0x147972===_0x41191f(0x122),'className':_0x41191f(0x15e),'overlay':_0xe94489(se,{'status':_0x147972,'coordinator':_0xeea236}),'children':_0xe94489(_0x41191f(0x14d),{'className':_0x59885a('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x147972===_0x41191f(0x122),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x147972!==_0x41191f(0x122)}),'type':_0x41191f(0x14d),'children':_0xe94489(_0x22016b,{'className':_0x41191f(0x193)})})}):null;}function se(_0x462768){const _0x22ba38=_0x3a51e2;let {status:_0x29f8d1,coordinator:_0x2e1208}=_0x462768;switch(_0x29f8d1){case'idle':return _0xe94489(ce,{'coordinator':_0x2e1208});case _0x22ba38(0x160):return _0xe94489(le,{'coordinator':_0x2e1208});case _0x22ba38(0x12a):return _0xe94489(ue,{'coordinator':_0x2e1208});case'offline':return _0xe94489(de,{});case _0x22ba38(0x156):return _0xe94489(Y,{'coordinator':_0x2e1208});default:return null;}}function ce(_0xe425ea){const _0x3ce838=_0x3a51e2;let {coordinator:_0x4cffe4}=_0xe425ea;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x3ce838(0x15f),{'className':_0x3ce838(0x19b),'children':_0x3ce838(0x118)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x4cffe4[_0x3ce838(0x12f)](),'children':_0x3ce838(0x176)})]});}function le(_0x4a0205){const _0x604d73=_0x3a51e2;let {coordinator:_0x569f56}=_0x4a0205;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x604d73(0x15f),{'className':_0x604d73(0x19b),'children':_0x604d73(0x182)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x569f56[_0x604d73(0x157)](),'children':'Stop\x20following'})]});}function ue(_0x13229f){const _0x597adc=_0x3a51e2;let {coordinator:_0x548d73}=_0x13229f;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x597adc(0x15f),{'className':_0x597adc(0x19b),'children':_0x597adc(0x11f)}),_0xe94489(_0x1c8cae,{'variant':_0x597adc(0x107),'onClick':()=>_0x548d73[_0x597adc(0x171)](),'children':'Start\x20following'})]});}function Y(_0x1288a1){const _0x23a5b8=_0x3a51e2;let {coordinator:_0x97b1e1}=_0x1288a1;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x23a5b8(0x15f),{'className':_0x23a5b8(0x19b),'children':_0x23a5b8(0x111)}),_0xe94489(_0x1c8cae,{'variant':_0x23a5b8(0x16b),'onClick':()=>_0x97b1e1[_0x23a5b8(0x146)](),'children':_0x23a5b8(0x172)})]});}function de(){const _0x645c71=_0x3a51e2;return _0xe94489(_0x16c28a,{'children':_0x645c71(0x153)});}let X=class extends _0x4a49fb{constructor(_0x1235b0,_0x4dffd6){const _0x2a95b2=_0x3a51e2;super(),this['_injector']=_0x1235b0,this[_0x2a95b2(0x169)]=_0x4dffd6,this[_0x2a95b2(0x11b)]();}[_0x3a51e2(0x11b)](){const _0x400b71=_0x3a51e2;this[_0x400b71(0x174)](this['_uiPartsService'][_0x400b71(0x13b)](_0x377270[_0x400b71(0x148)],()=>_0x7d9cd6(J,this['_injector'])));}};X=W([U(0x0,_0x3840c8(_0x368b3b)),U(0x1,_0x2e12cf)],X);var fe='@univerjs-pro/live-share',pe='0.25.1';function _0x3355(){const _0x445cda=['registerComponent','getMemberID','setConfig','type','2025663idGcpW','_status','OFFLINE','event$','prototype','_handleOperation','getConfig','stopPresenting','memberID','HEADER_MENU','onStarting','has','reverse','requireSession','button','_config','operations','NOT_FOLLOWING','idle','_handleOnline','You\x27are\x20offline.','PRESENTING','length','presenting','stopFollowing','UNIVER_SHEET','next','_startPresenting','1846eGkgmN','_configService','call','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','div','following','LIVESHARE_TERMINATE','_sharedOperations','delete','_unitID','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerInitialStateReporter','forEach','live-share.config','_uiPartsService','override','default','unsubscribe','createInstance','4rwIDrz','data','getStatus','startFollowing','Stop\x20presenting','mutations','disposeWithMe','4281753lrXCUB','Start','SAME_OPERATION_SHARE_INTERVAL','packageName','constructor','unitId','then','_status$','_beIdle','416560emdqXc','defineProperty','getInitialStates','45OIxCvk','You\x27re\x20following\x20the\x20presenter','get','version','send','FOLLOWING','_startFollowing','_init','551856fnNNXI','getOwnPropertyDescriptor','function','presenter','decorate','getCurrentTypeOfUnit$','getValue','onCommandExecuted','dispose$','set','univer-size-4','symbol','_handleNewHost','_reporters','string','clear','UNIVER_LIVE_SHARE_PLUGIN','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','getUnitId','from','text','_commandService','includes','pipe','current','_presenter','_handleTerminate','_injector','end','_collabSessionService','You\x27re\x20presenting\x20the\x20document','126hOOgSF','values','LIVESHARE_OPERATION','object','_commandDisposable','IDLE','Present\x20this\x20document','_collabSession','init','_mountLiveShare','_entities','_startLiveShareCoordinator','subject','You\x27re\x20not\x20following\x20the\x20presenter','iterator','15159276rXigCW','offline','_handleNewChangeSets','_handleOffline','NEW_CHANGESETS','_fetchOperations','ONLINE','executeCommand','859CQMnfw','not-following','pluginName','status$','complete','_univerInstanceService','tryStartPresenting','params','_stopFollowing','find','shouldShareOperation','getLiveShareCoordinatorSync','OPERATION','_liveShareService','LIVESHARE_NEW_HOST','registerSharedOperation','2631070jaWWIj','dispose'];_0x3355=function(){return _0x445cda;};return _0x3355();}const Z={};let Q=class extends _0x4a49fb{constructor(_0x351bd8){const _0x3106e4=_0x3a51e2;super(),this[_0x3106e4(0x136)]=_0x351bd8,this[_0x3106e4(0x188)]();}[_0x3a51e2(0x188)](){[_0x35525e['id'],_0x13b133['id'],_0x519c92['id']]['forEach'](_0x2e3836=>{const _0x5ab586=_0x4f04;this['disposeWithMe'](this[_0x5ab586(0x136)][_0x5ab586(0x138)](_0x2e3836));});}};Q=W([U(0x0,_0x3840c8(H))],Q);let $=class extends _0x4e113b{constructor(_0x21a659=Z,_0x51af84,_0x7c930f){const _0x3dd96d=_0x3a51e2;super(),this[_0x3dd96d(0x14e)]=_0x21a659,this['_injector']=_0x51af84,this[_0x3dd96d(0x15c)]=_0x7c930f;let {..._0xd57fa5}=_0x5aed77({},Z,this[_0x3dd96d(0x14e)]);this[_0x3dd96d(0x15c)][_0x3dd96d(0x13d)](_0x3dd96d(0x168),_0xd57fa5);}[_0x3a51e2(0x149)](){const _0x27b297=_0x3a51e2;_0x127fa5(this[_0x27b297(0x10e)],_0x168dbe([[H],[G],[Q],[X]],this[_0x27b297(0x14e)][_0x27b297(0x16a)])),_0x337d60(this[_0x27b297(0x10e)],[[Q]]);}['onRendered'](){_0x337d60(this['_injector'],[[X]]);}};V($,_0x3a51e2(0x13e),_0x17f2f1['UNIVER_UNKNOWN']),V($,_0x3a51e2(0x12b),_0x3a51e2(0x199)),V($,_0x3a51e2(0x178),fe),V($,_0x3a51e2(0x184),pe),$=W([_0x4c3c0f(_0x9355f0),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x57549a)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x16f6b4=_0x3742;(function(_0xbe56f4,_0x1323af){const _0x337c33=_0x3742,_0x3ee53b=_0xbe56f4();while(!![]){try{const _0x4acf15=-parseInt(_0x337c33(0x20a))/0x1*(parseInt(_0x337c33(0x251))/0x2)+-parseInt(_0x337c33(0x1f3))/0x3+-parseInt(_0x337c33(0x273))/0x4*(-parseInt(_0x337c33(0x22f))/0x5)+-parseInt(_0x337c33(0x26a))/0x6*(parseInt(_0x337c33(0x227))/0x7)+-parseInt(_0x337c33(0x252))/0x8*(-parseInt(_0x337c33(0x1e8))/0x9)+parseInt(_0x337c33(0x20f))/0xa*(-parseInt(_0x337c33(0x239))/0xb)+parseInt(_0x337c33(0x215))/0xc;if(_0x4acf15===_0x1323af)break;else _0x3ee53b['push'](_0x3ee53b['shift']());}catch(_0x12e516){_0x3ee53b['push'](_0x3ee53b['shift']());}}}(_0x2e62,0x24330));import{CommandType as _0x318eb4,DependentOn as _0x3dc140,Disposable as _0x4b5dc9,DisposableCollection as _0x10ec25,ICommandService as _0x4b9491,IConfigService as _0x46eafb,IUniverInstanceService as _0x4dd311,Inject as _0x4b6a05,Injector as _0x2d43c8,Plugin as _0x547cf5,RxDisposable as _0x246302,UniverInstanceType as _0xc09af2,merge as _0x26e587,mergeOverrideWithDependencies as _0x10dc75,registerDependencies as _0x58b3f9,toDisposable as _0x27d417,touchDependencies as _0x4ca10c}from'@univerjs/core';import{BuiltInUIPart as _0x17ec50,IUIPartsService as _0xf530cb,connectInjector as _0x432d78,useDependency as _0x29ecdc,useObservable as _0x41be19}from'@univerjs/ui';function _0x2e62(){const _0x15c915=['_startLiveShareCoordinator','complete','getUnitId','4178304Elrjye','send','_commandService','has','idle','_config','_collabSession','set','setConfig','@univerjs-pro/live-share','next','getOwnPropertyDescriptor','FOLLOWING','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopFollowing','getLiveShareCoordinator','OPERATION','1114505pXTXpA','live-share.config','_fetchOperations','packageName','_handleTerminate','call','Stop\x20presenting','button','215eebwBW','status$','_handleOnline','reverse','UNIVER_LIVE_SHARE_PLUGIN','operations','decorate','getStatus','length','disposeWithMe','11iGWBuj','get','_injector','requireSession','registerSharedOperation','dispose','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_presenter','registerComponent','function','getInitialStates','following','createInstance','getLiveShareCoordinatorSync','_collabSessionService','UNIVER_UNKNOWN','_beIdle','getTypeOfUnitAdded$','data','unsubscribe','_status','current','onCommandExecuted','unit','6NJZYuP','2370832KBJCbj','add','defineProperty','stopFollowing','end','symbol','getMemberID','type','_handleOffline','univer-size-4','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','presenting','params','_configService','LIVESHARE_REQUEST_HOST','executeCommand','0.25.2','getCurrentTypeOfUnit$','offline','object','_entities','iterator','6AqpmLx','version','_reporters','onStarting','getConfig','string','_startFollowing','onRendered','HEADER_MENU','692scnnix','_handleNewChangeSets','stopPresenting','LIVESHARE_FETCH_OPERATIONS','Start\x20following','_commandDisposable','event$','startFollowing','not-following','_univerInstanceService','_unitID','div','delete','memberID','_startPresenting','9wqNWdx','getValue','_init','asObservable','LIVESHARE_TERMINATE','clear','forEach','_handleOperation','mutations','ONLINE','default','407187CkDRqC','PRESENTING','find','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','prototype','_stopPresenting','_mountLiveShare','pipe','_handleNewHost','Start','presenter','subject','_liveShareService','shouldShareOperation','unitId','sheet','map','You\x27re\x20presenting\x20the\x20document','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','_status$','tryStartPresenting','values','51788HtkqSy','_uiPartsService','getTypeOfUnitDisposed$','UNIVER_SHEET','init','534050ZxqJLt','LIVESHARE_OPERATION','_sharedOperations'];_0x2e62=function(){return _0x15c915;};return _0x2e62();}import{Button as _0x2619a0,Dropdown as _0x3de5e2,clsx as _0x1e00b3}from'@univerjs/design';import{LiveShareIcon as _0x2b4902}from'@univerjs/icons';import{useEffect as _0x2a3129,useRef as _0x5bd35f,useState as _0x1c51b5}from'react';import{CollaborationEvent as _0x2cae52,parseProtocolChangeset as _0x396a82}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x319859,SessionStatus as _0x5e1c26,UniverCollaborationClientPlugin as _0x1faa0e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1274c5,SetWorksheetActiveOperation as _0x4dbd1e}from'@univerjs/sheets';import{BehaviorSubject as _0x3469e3,Subject as _0x4d991e}from'rxjs';import{takeUntil as _0x4753b7,throttleTime as _0x4c79ad}from'rxjs/operators';import{Fragment as _0x348ecc,jsx as _0x5c9867,jsxs as _0xd26927}from'react/jsx-runtime';import{SetScrollOperation as _0x212824,SetZoomRatioOperation as _0x986c73}from'@univerjs/sheets-ui';function R(_0x3e9e4f){'@babel/helpers - typeof';const _0x1872a4=_0x3742;return R=typeof Symbol==_0x1872a4(0x242)&&typeof Symbol[_0x1872a4(0x269)]=='symbol'?function(_0x3b8279){return typeof _0x3b8279;}:function(_0x16292e){const _0x1633d0=_0x1872a4;return _0x16292e&&typeof Symbol==_0x1633d0(0x242)&&_0x16292e['constructor']===Symbol&&_0x16292e!==Symbol[_0x1633d0(0x1f8)]?_0x1633d0(0x257):typeof _0x16292e;},R(_0x3e9e4f);}function z(_0x1b7305,_0x231901){const _0xe171e2=_0x3742;if(R(_0x1b7305)!=_0xe171e2(0x267)||!_0x1b7305)return _0x1b7305;var _0x4015ea=_0x1b7305[Symbol['toPrimitive']];if(_0x4015ea!==void 0x0){var _0x10c469=_0x4015ea[_0xe171e2(0x22c)](_0x1b7305,_0x231901||_0xe171e2(0x1f2));if(R(_0x10c469)!=_0xe171e2(0x267))return _0x10c469;throw TypeError(_0xe171e2(0x23f));}return(_0x231901===_0xe171e2(0x26f)?String:Number)(_0x1b7305);}function B(_0x3f25eb){const _0x24ed25=_0x3742;var _0x1d59d9=z(_0x3f25eb,_0x24ed25(0x26f));return R(_0x1d59d9)==_0x24ed25(0x257)?_0x1d59d9:_0x1d59d9+'';}function V(_0x252af2,_0x37e783,_0x13f43a){const _0x20e5e9=_0x3742;return(_0x37e783=B(_0x37e783))in _0x252af2?Object[_0x20e5e9(0x254)](_0x252af2,_0x37e783,{'value':_0x13f43a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x252af2[_0x37e783]=_0x13f43a,_0x252af2;}var H=class extends _0x4b5dc9{constructor(..._0x24b8e0){const _0x355109=_0x3742;super(..._0x24b8e0),V(this,_0x355109(0x211),new Set()),V(this,_0x355109(0x26c),new Set());}[_0x16f6b4(0x23d)](_0x4d4c37){const _0xb066e2=_0x16f6b4;return this['_sharedOperations'][_0xb066e2(0x253)](_0x4d4c37),_0x27d417(()=>this['_sharedOperations']['delete'](_0x4d4c37));}['registerInitialStateReporter'](_0x128bbc){const _0x4df97e=_0x16f6b4;return this[_0x4df97e(0x26c)][_0x4df97e(0x253)](_0x128bbc),_0x27d417(()=>this[_0x4df97e(0x26c)][_0x4df97e(0x27f)](_0x128bbc));}[_0x16f6b4(0x201)](_0x338c3d){const _0x93f989=_0x16f6b4;return this['_sharedOperations'][_0x93f989(0x218)](_0x338c3d);}['getInitialStates'](_0x1949df){const _0x15b3a2=_0x16f6b4;return Array['from'](this['_reporters'])[_0x15b3a2(0x204)](_0x5d5d48=>_0x5d5d48(_0x1949df));}};function U(_0x41d8d8,_0x4f02c7){return function(_0x2a5410,_0x297b16){_0x4f02c7(_0x2a5410,_0x297b16,_0x41d8d8);};}function W(_0x556e8b,_0x208c0b,_0xd3707f,_0x4e5d55){const _0x2358f9=_0x16f6b4;var _0x2664d2=arguments[_0x2358f9(0x237)],_0x53d012=_0x2664d2<0x3?_0x208c0b:_0x4e5d55===null?_0x4e5d55=Object[_0x2358f9(0x220)](_0x208c0b,_0xd3707f):_0x4e5d55,_0x2a2d17;if(typeof Reflect=='object'&&typeof Reflect[_0x2358f9(0x235)]==_0x2358f9(0x242))_0x53d012=Reflect['decorate'](_0x556e8b,_0x208c0b,_0xd3707f,_0x4e5d55);else{for(var _0x24007c=_0x556e8b[_0x2358f9(0x237)]-0x1;_0x24007c>=0x0;_0x24007c--)(_0x2a2d17=_0x556e8b[_0x24007c])&&(_0x53d012=(_0x2664d2<0x3?_0x2a2d17(_0x53d012):_0x2664d2>0x3?_0x2a2d17(_0x208c0b,_0xd3707f,_0x53d012):_0x2a2d17(_0x208c0b,_0xd3707f))||_0x53d012);}return _0x2664d2>0x3&&_0x53d012&&Object['defineProperty'](_0x208c0b,_0xd3707f,_0x53d012),_0x53d012;}let G=class extends _0x246302{constructor(_0x1d6ebd,_0x5cfe0a,_0x5bb5f6){const _0x3c5d68=_0x16f6b4;super(),this[_0x3c5d68(0x27c)]=_0x1d6ebd,this[_0x3c5d68(0x23b)]=_0x5cfe0a,this['_collabSessionService']=_0x5bb5f6,V(this,_0x3c5d68(0x268),new Map()),this[_0x3c5d68(0x1ea)]();}async['getLiveShareCoordinator'](_0xca9b28){const _0x22b13f=_0x16f6b4;return this[_0x22b13f(0x268)][_0x22b13f(0x218)](_0xca9b28)||await this['_startLiveShareCoordinator'](_0xca9b28),this[_0x22b13f(0x268)][_0x22b13f(0x23a)](_0xca9b28);}[_0x16f6b4(0x246)](_0x4c2a86){const _0x4bdec6=_0x16f6b4;var _0x367c89;return(_0x367c89=this[_0x4bdec6(0x268)]['get'](_0x4c2a86))==null?null:_0x367c89;}[_0x16f6b4(0x1ea)](){const _0x22f1ef=_0x16f6b4;this[_0x22f1ef(0x27c)][_0x22f1ef(0x24a)](_0xc09af2[_0x22f1ef(0x20d)])['pipe'](_0x4753b7(this[_0x22f1ef(0x1f7)]))[_0x22f1ef(0x222)](async _0x46ef61=>{const _0x4ecb41=_0x22f1ef;let _0x9bee9=_0x46ef61[_0x4ecb41(0x250)][_0x4ecb41(0x214)]();this['_entities']['has'](_0x9bee9)||this['_startLiveShareCoordinator'](_0x9bee9);}),this[_0x22f1ef(0x27c)][_0x22f1ef(0x20c)](_0xc09af2['UNIVER_SHEET'])[_0x22f1ef(0x1fb)](_0x4753b7(this[_0x22f1ef(0x1f7)]))[_0x22f1ef(0x222)](_0x150fdb=>{const _0x348bcb=_0x22f1ef;let _0x367776=_0x150fdb[_0x348bcb(0x214)](),_0x171bbc=this['_entities'][_0x348bcb(0x23a)](_0x367776);_0x171bbc==null||_0x171bbc[_0x348bcb(0x23e)]();});}async[_0x16f6b4(0x212)](_0x23be78){const _0x483707=_0x16f6b4;let _0x468fba=await this[_0x483707(0x247)][_0x483707(0x23c)](_0x23be78),_0x5179c0=this[_0x483707(0x23b)][_0x483707(0x245)](q,_0x23be78,_0x468fba);return _0x5179c0[_0x483707(0x20e)](),this[_0x483707(0x268)][_0x483707(0x21c)](_0x23be78,_0x5179c0),_0x5179c0;}};G=W([U(0x0,_0x4dd311),U(0x1,_0x4b6a05(_0x2d43c8)),U(0x2,_0x4b6a05(_0x319859))],G);let K=function(_0x347eee){const _0x34ecb8=_0x16f6b4;return _0x347eee[_0x34ecb8(0x25c)]='offline',_0x347eee['IDLE']=_0x34ecb8(0x219),_0x347eee[_0x34ecb8(0x221)]='following',_0x347eee['NOT_FOLLOWING']=_0x34ecb8(0x27b),_0x347eee[_0x34ecb8(0x1f4)]=_0x34ecb8(0x25f),_0x347eee;}({}),q=class extends _0x246302{get[_0x16f6b4(0x24d)](){const _0x59a97f=_0x16f6b4;return this[_0x59a97f(0x207)][_0x59a97f(0x1e9)]();}constructor(_0xea7a2,_0x44fcbc,_0x4e3e8c,_0x43c228,_0x4ee2bd){const _0x11b6d9=_0x16f6b4;super(),this[_0x11b6d9(0x27d)]=_0xea7a2,this[_0x11b6d9(0x21b)]=_0x44fcbc,this[_0x11b6d9(0x261)]=_0x4e3e8c,this[_0x11b6d9(0x200)]=_0x43c228,this[_0x11b6d9(0x217)]=_0x4ee2bd,V(this,_0x11b6d9(0x207),new _0x3469e3(_0x11b6d9(0x219))),V(this,_0x11b6d9(0x230),this['_status$'][_0x11b6d9(0x1eb)]()),V(this,'_init',!0x1),V(this,_0x11b6d9(0x278),null),V(this,_0x11b6d9(0x240),null);}[_0x16f6b4(0x23e)](){const _0x46d22a=_0x16f6b4;var _0x3b758c;(_0x3b758c=this[_0x46d22a(0x278)])==null||_0x3b758c['dispose'](),this[_0x46d22a(0x207)][_0x46d22a(0x21f)]('idle'),this[_0x46d22a(0x207)][_0x46d22a(0x213)]();}[_0x16f6b4(0x236)](){return this['_status'];}[_0x16f6b4(0x20e)](){const _0x1ec00a=_0x16f6b4;this[_0x1ec00a(0x1ea)]||(this[_0x1ec00a(0x1ea)]=!0x0,this[_0x1ec00a(0x21b)][_0x1ec00a(0x25e)][_0x1ec00a(0x1fb)](_0x4753b7(this['dispose$']))[_0x1ec00a(0x222)](_0x4f2427=>{const _0x1aeb31=_0x1ec00a;switch(_0x4f2427){case _0x5e1c26['OFFLINE']:this[_0x1aeb31(0x25a)]();break;case _0x5e1c26[_0x1aeb31(0x1f1)]:this[_0x1aeb31(0x231)]();break;default:}}),this[_0x1ec00a(0x21b)][_0x1ec00a(0x279)][_0x1ec00a(0x1fb)](_0x4753b7(this[_0x1ec00a(0x1f7)]))[_0x1ec00a(0x222)](_0x19281a=>{const _0x23e4c8=_0x1ec00a;let {eventID:_0x24942e}=_0x19281a;switch(_0x24942e){case _0x2cae52['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x19281a);break;case _0x2cae52[_0x23e4c8(0x210)]:this[_0x23e4c8(0x1ef)](_0x19281a);break;case _0x2cae52[_0x23e4c8(0x1ec)]:this[_0x23e4c8(0x22b)]();break;case _0x2cae52['NEW_CHANGESETS']:this[_0x23e4c8(0x274)](_0x19281a);break;default:}}));}[_0x16f6b4(0x208)](){const _0x2aa90c=_0x16f6b4;this['_collabSession'][_0x2aa90c(0x216)]({'eventID':_0x2cae52[_0x2aa90c(0x262)],'data':{'unitID':this[_0x2aa90c(0x27d)],'userID':this[_0x2aa90c(0x21b)][_0x2aa90c(0x258)]()}},this[_0x2aa90c(0x27d)]);}[_0x16f6b4(0x275)](){const _0x281895=_0x16f6b4;this[_0x281895(0x24d)]==='presenting'&&(this[_0x281895(0x207)]['next'](_0x281895(0x219)),this[_0x281895(0x21b)][_0x281895(0x216)]({'eventID':_0x2cae52[_0x281895(0x1ec)],'data':{'unitID':this[_0x281895(0x27d)]}},this[_0x281895(0x27d)]));}[_0x16f6b4(0x27a)](){const _0x4f4627=_0x16f6b4;this[_0x4f4627(0x24d)]===_0x4f4627(0x27b)&&(this[_0x4f4627(0x207)][_0x4f4627(0x21f)](_0x4f4627(0x244)),this[_0x4f4627(0x270)]());}[_0x16f6b4(0x255)](){const _0x2197dc=_0x16f6b4;this[_0x2197dc(0x24d)]===_0x2197dc(0x244)&&this[_0x2197dc(0x224)]();}[_0x16f6b4(0x1fc)](_0x338793){const _0x1893b5=_0x16f6b4;let {presenter:_0x5c9d4e}=_0x338793[_0x1893b5(0x24b)],_0x33f279=this['_collabSession'][_0x1893b5(0x258)]();this[_0x1893b5(0x240)]=_0x5c9d4e,_0x5c9d4e===_0x33f279?(this[_0x1893b5(0x224)](),this[_0x1893b5(0x1e7)]()):this['_status']!==_0x1893b5(0x27b)&&(this[_0x1893b5(0x1f9)](),this[_0x1893b5(0x270)]());}['_fetchOperations'](){const _0x468504=_0x16f6b4;let _0x14ca89={'eventID':_0x2cae52[_0x468504(0x276)]};this[_0x468504(0x21b)][_0x468504(0x216)](_0x14ca89,this[_0x468504(0x27d)]);}[_0x16f6b4(0x22b)](){const _0x9f602=_0x16f6b4;this[_0x9f602(0x240)]=null,this[_0x9f602(0x24d)]!==_0x9f602(0x25f)&&this[_0x9f602(0x249)]();}[_0x16f6b4(0x274)](_0x182347){const _0x2f79f1=_0x16f6b4;if(this[_0x2f79f1(0x24d)]===_0x2f79f1(0x244)&&this[_0x2f79f1(0x240)]===_0x182347[_0x2f79f1(0x24b)][_0x2f79f1(0x1e6)]){let _0x29ab7b=_0x396a82(_0x182347['data'])[_0x2f79f1(0x1f0)][_0x2f79f1(0x232)]()[_0x2f79f1(0x1f5)](_0x317f74=>_0x317f74['id']===_0x1274c5['id']);if(_0x29ab7b){let _0x4f5ce3=_0x29ab7b[_0x2f79f1(0x260)][_0x2f79f1(0x202)],_0x45d03e=_0x29ab7b['params'][_0x2f79f1(0x203)]['id'];setTimeout(()=>{const _0x34be81=_0x2f79f1;this[_0x34be81(0x217)][_0x34be81(0x263)](_0x4dbd1e['id'],{'unitId':_0x4f5ce3,'subUnitId':_0x45d03e},{'fromCollab':!0x0});});}}}[_0x16f6b4(0x1e7)](){const _0x12138e=_0x16f6b4;var _0x3b4740;(_0x3b4740=this[_0x12138e(0x278)])==null||_0x3b4740['dispose'](),this[_0x12138e(0x207)][_0x12138e(0x21f)](_0x12138e(0x25f));let _0x3214a1=new Map(),_0x3a141d=this[_0x12138e(0x278)]=new _0x10ec25();_0x3a141d['add'](_0x27d417(()=>{const _0x2fd1fd=_0x12138e;_0x3214a1[_0x2fd1fd(0x1ee)](({subject:_0x4ea995,subscription:_0x131f62})=>{const _0x54ee80=_0x2fd1fd;_0x131f62[_0x54ee80(0x24c)](),_0x4ea995[_0x54ee80(0x213)]();}),_0x3214a1[_0x2fd1fd(0x1ed)]();})),_0x3a141d[_0x12138e(0x253)](this[_0x12138e(0x217)][_0x12138e(0x24f)](_0x585c1e=>{const _0x4a75df=_0x12138e;if(_0x585c1e[_0x4a75df(0x259)]!==_0x318eb4[_0x4a75df(0x226)]||!this['_liveShareService']['shouldShareOperation'](_0x585c1e['id']))return;let {id:_0x1e7cb3}=_0x585c1e,_0x5d0b22;if(_0x3214a1[_0x4a75df(0x218)](_0x1e7cb3))_0x5d0b22=_0x3214a1[_0x4a75df(0x23a)](_0x1e7cb3)[_0x4a75df(0x1ff)];else{var _0x521465;_0x5d0b22=new _0x4d991e();let _0x59e029=_0x5d0b22[_0x4a75df(0x1fb)](_0x4c79ad((_0x521465=this['_configService'][_0x4a75df(0x26e)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x521465,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a75df(0x222)](_0x3606d9=>{const _0x1fd8b2=_0x4a75df;this[_0x1fd8b2(0x21b)][_0x1fd8b2(0x216)]({'eventID':_0x2cae52['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1fd8b2(0x27d)],'operations':{[_0x3606d9['id']]:{'id':_0x3606d9['id'],'params':JSON['stringify'](_0x3606d9['params'])}}}},this['_unitID']);});_0x3214a1['set'](_0x1e7cb3,{'subject':_0x5d0b22,'subscription':_0x59e029});}_0x5d0b22[_0x4a75df(0x21f)](_0x585c1e);})),this[_0x12138e(0x200)][_0x12138e(0x243)](this[_0x12138e(0x27d)])[_0x12138e(0x1ee)](_0x3d0df9=>this[_0x12138e(0x21b)][_0x12138e(0x216)]({'eventID':_0x2cae52[_0x12138e(0x210)],'data':{'unitID':this[_0x12138e(0x27d)],'operations':{[_0x3d0df9['id']]:{'id':_0x3d0df9['id'],'params':JSON['stringify'](_0x3d0df9[_0x12138e(0x260)])}}}},this[_0x12138e(0x27d)]));}[_0x16f6b4(0x1f9)](){const _0x73ad3d=_0x16f6b4;var _0x5d58c7;this[_0x73ad3d(0x207)][_0x73ad3d(0x21f)](_0x73ad3d(0x219)),(_0x5d58c7=this[_0x73ad3d(0x278)])==null||_0x5d58c7[_0x73ad3d(0x23e)](),this[_0x73ad3d(0x278)]=null;}[_0x16f6b4(0x270)](){const _0x5cbe0a=_0x16f6b4;var _0x47962c;(_0x47962c=this[_0x5cbe0a(0x278)])==null||_0x47962c[_0x5cbe0a(0x23e)](),this[_0x5cbe0a(0x207)][_0x5cbe0a(0x21f)](_0x5cbe0a(0x244));}[_0x16f6b4(0x249)](){const _0x1d139b=_0x16f6b4;var _0x5e6e0c;this['_status$']['next'](_0x1d139b(0x219)),(_0x5e6e0c=this[_0x1d139b(0x278)])==null||_0x5e6e0c['dispose'](),this[_0x1d139b(0x278)]=null;}['_stopFollowing'](){const _0x1c5035=_0x16f6b4;var _0x23e119;this['_status$'][_0x1c5035(0x21f)](_0x1c5035(0x27b)),(_0x23e119=this[_0x1c5035(0x278)])==null||_0x23e119['dispose']();}['_handleOperation'](_0x339c28){const _0x36f506=_0x16f6b4;if([_0x36f506(0x25f),'not-following','offline']['includes'](this['_status'])||!_0x339c28[_0x36f506(0x24b)][_0x36f506(0x1fe)]||_0x339c28[_0x36f506(0x24b)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x36f506(0x219)&&this[_0x36f506(0x270)]();let _0x46302c=_0x339c28['data'][_0x36f506(0x234)];Object[_0x36f506(0x209)](_0x46302c)['forEach'](_0x4befca=>{const _0x356e47=_0x36f506;this[_0x356e47(0x217)][_0x356e47(0x263)](_0x4befca['id'],_0x4befca[_0x356e47(0x260)]?JSON['parse'](_0x4befca[_0x356e47(0x260)]):null,{'fromCollab':!0x0});});}[_0x16f6b4(0x25a)](){const _0x39c7fa=_0x16f6b4;var _0xe6f605;this[_0x39c7fa(0x207)][_0x39c7fa(0x21f)]('offline'),(_0xe6f605=this[_0x39c7fa(0x278)])==null||_0xe6f605[_0x39c7fa(0x23e)]();}[_0x16f6b4(0x231)](){const _0x4a0064=_0x16f6b4;this[_0x4a0064(0x207)][_0x4a0064(0x21f)](_0x4a0064(0x219)),this[_0x4a0064(0x229)]();}};q=W([U(0x2,_0x46eafb),U(0x3,_0x4b6a05(H)),U(0x4,_0x4b9491)],q);function J(){const _0x1d0d87=_0x16f6b4;let _0x40471f=_0x29ecdc(G),_0x2ebc98=_0x29ecdc(_0x4dd311),_0x219b0f=_0x41be19(()=>_0x2ebc98[_0x1d0d87(0x265)](_0xc09af2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x29df55,_0xda225c]=_0x1c51b5(null),[_0x2924ce,_0x4d9eb1]=_0x1c51b5(_0x1d0d87(0x219)),_0x48da4b=_0x5bd35f(null);return _0x2a3129(()=>(_0x219b0f&&_0x40471f[_0x1d0d87(0x225)](_0x219b0f[_0x1d0d87(0x214)]())['then'](_0xb1f964=>{const _0xa6a2d9=_0x1d0d87;_0xda225c(_0xb1f964),_0x48da4b[_0xa6a2d9(0x24e)]=_0xb1f964[_0xa6a2d9(0x230)]['subscribe'](_0x4049e2=>{_0x4d9eb1(_0x4049e2);});}),()=>{const _0x2b3bee=_0x1d0d87;var _0x11b8e3;(_0x11b8e3=_0x48da4b[_0x2b3bee(0x24e)])==null||_0x11b8e3[_0x2b3bee(0x24c)](),_0x48da4b['current']=null;}),[_0x219b0f,_0x40471f]),_0x29df55?_0x5c9867(_0x3de5e2,{'align':_0x1d0d87(0x256),'disabled':_0x2924ce===_0x1d0d87(0x266),'className':_0x1d0d87(0x206),'overlay':_0x5c9867(se,{'status':_0x2924ce,'coordinator':_0x29df55}),'children':_0x5c9867(_0x1d0d87(0x22e),{'className':_0x1e00b3(_0x1d0d87(0x25d),{'univer-cursor-not-allowed':_0x2924ce===_0x1d0d87(0x266),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2924ce!==_0x1d0d87(0x266)}),'type':'button','children':_0x5c9867(_0x2b4902,{'className':_0x1d0d87(0x25b)})})}):null;}function se(_0x467be9){const _0x4d6a22=_0x16f6b4;let {status:_0x2cd5d4,coordinator:_0x46592f}=_0x467be9;switch(_0x2cd5d4){case _0x4d6a22(0x219):return _0x5c9867(ce,{'coordinator':_0x46592f});case _0x4d6a22(0x244):return _0x5c9867(le,{'coordinator':_0x46592f});case'not-following':return _0x5c9867(ue,{'coordinator':_0x46592f});case'offline':return _0x5c9867(de,{});case _0x4d6a22(0x25f):return _0x5c9867(Y,{'coordinator':_0x46592f});default:return null;}}function ce(_0x5e8103){const _0x4e0596=_0x16f6b4;let {coordinator:_0x3e8ade}=_0x5e8103;return _0xd26927(_0x348ecc,{'children':[_0x5c9867(_0x4e0596(0x27e),{'className':_0x4e0596(0x223),'children':'Present\x20this\x20document'}),_0x5c9867(_0x2619a0,{'onClick':()=>_0x3e8ade[_0x4e0596(0x208)](),'children':_0x4e0596(0x1fd)})]});}function le(_0x90c1d4){const _0x3f6913=_0x16f6b4;let {coordinator:_0x938efe}=_0x90c1d4;return _0xd26927(_0x348ecc,{'children':[_0x5c9867('div',{'className':_0x3f6913(0x223),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5c9867(_0x2619a0,{'onClick':()=>_0x938efe['stopFollowing'](),'children':'Stop\x20following'})]});}function ue(_0x1d9a12){const _0x164b03=_0x16f6b4;let {coordinator:_0x267752}=_0x1d9a12;return _0xd26927(_0x348ecc,{'children':[_0x5c9867('div',{'className':_0x164b03(0x223),'children':_0x164b03(0x1f6)}),_0x5c9867(_0x2619a0,{'variant':'text','onClick':()=>_0x267752[_0x164b03(0x27a)](),'children':_0x164b03(0x277)})]});}function Y(_0x17faf0){const _0x30f79a=_0x16f6b4;let {coordinator:_0x5d4fee}=_0x17faf0;return _0xd26927(_0x348ecc,{'children':[_0x5c9867(_0x30f79a(0x27e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x30f79a(0x205)}),_0x5c9867(_0x2619a0,{'variant':_0x30f79a(0x1f2),'onClick':()=>_0x5d4fee[_0x30f79a(0x275)](),'children':_0x30f79a(0x22d)})]});}function de(){return _0x5c9867(_0x348ecc,{'children':'You\x27are\x20offline.'});}function _0x3742(_0x4ee06f,_0x354a27){_0x4ee06f=_0x4ee06f-0x1e6;const _0x2e6279=_0x2e62();let _0x3742d7=_0x2e6279[_0x4ee06f];return _0x3742d7;}let X=class extends _0x4b5dc9{constructor(_0x2359b1,_0x1e5f00){const _0x350581=_0x16f6b4;super(),this[_0x350581(0x23b)]=_0x2359b1,this[_0x350581(0x20b)]=_0x1e5f00,this[_0x350581(0x1fa)]();}[_0x16f6b4(0x1fa)](){const _0x313462=_0x16f6b4;this[_0x313462(0x238)](this['_uiPartsService'][_0x313462(0x241)](_0x17ec50[_0x313462(0x272)],()=>_0x432d78(J,this[_0x313462(0x23b)])));}};X=W([U(0x0,_0x4b6a05(_0x2d43c8)),U(0x1,_0xf530cb)],X);var fe=_0x16f6b4(0x21e),pe=_0x16f6b4(0x264);const Z={};let Q=class extends _0x4b5dc9{constructor(_0x3c125e){const _0x5d5110=_0x16f6b4;super(),this[_0x5d5110(0x200)]=_0x3c125e,this[_0x5d5110(0x1ea)]();}['_init'](){const _0x4125d=_0x16f6b4;[_0x986c73['id'],_0x212824['id'],_0x4dbd1e['id']][_0x4125d(0x1ee)](_0x325094=>{const _0x4a1ff1=_0x4125d;this[_0x4a1ff1(0x238)](this['_liveShareService'][_0x4a1ff1(0x23d)](_0x325094));});}};Q=W([U(0x0,_0x4b6a05(H))],Q);let $=class extends _0x547cf5{constructor(_0x486e10=Z,_0x1c92f3,_0x552075){const _0x5f00ee=_0x16f6b4;super(),this['_config']=_0x486e10,this['_injector']=_0x1c92f3,this[_0x5f00ee(0x261)]=_0x552075;let {..._0xa4d04}=_0x26e587({},Z,this[_0x5f00ee(0x21a)]);this[_0x5f00ee(0x261)][_0x5f00ee(0x21d)](_0x5f00ee(0x228),_0xa4d04);}[_0x16f6b4(0x26d)](){const _0x17e6eb=_0x16f6b4;_0x58b3f9(this[_0x17e6eb(0x23b)],_0x10dc75([[H],[G],[Q],[X]],this[_0x17e6eb(0x21a)]['override'])),_0x4ca10c(this[_0x17e6eb(0x23b)],[[Q]]);}[_0x16f6b4(0x271)](){const _0x590c40=_0x16f6b4;_0x4ca10c(this[_0x590c40(0x23b)],[[X]]);}};V($,'type',_0xc09af2[_0x16f6b4(0x248)]),V($,'pluginName',_0x16f6b4(0x233)),V($,_0x16f6b4(0x22a),fe),V($,_0x16f6b4(0x26b),pe),$=W([_0x3dc140(_0x1faa0e),U(0x1,_0x4b6a05(_0x2d43c8)),U(0x2,_0x46eafb)],$);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 _0x41a5(_0x3f08b9,_0x45a34a){_0x3f08b9=_0x3f08b9-0x125;const _0x3cd80a=_0x3cd8();let _0x41a527=_0x3cd80a[_0x3f08b9];return _0x41a527;}(function(_0x4e3bac,_0x784db7){const _0x2a7a82=_0x41a5,_0x352935=_0x4e3bac();while(!![]){try{const _0x2b97cf=parseInt(_0x2a7a82(0x14e))/0x1*(parseInt(_0x2a7a82(0x14b))/0x2)+parseInt(_0x2a7a82(0x155))/0x3+-parseInt(_0x2a7a82(0x134))/0x4*(parseInt(_0x2a7a82(0x153))/0x5)+-parseInt(_0x2a7a82(0x127))/0x6*(-parseInt(_0x2a7a82(0x142))/0x7)+-parseInt(_0x2a7a82(0x149))/0x8*(-parseInt(_0x2a7a82(0x151))/0x9)+-parseInt(_0x2a7a82(0x12c))/0xa*(-parseInt(_0x2a7a82(0x12d))/0xb)+-parseInt(_0x2a7a82(0x133))/0xc;if(_0x2b97cf===_0x784db7)break;else _0x352935['push'](_0x352935['shift']());}catch(_0x482372){_0x352935['push'](_0x352935['shift']());}}}(_0x3cd8,0x31990),function(_0x213c16,_0x367b30){const _0xd20d31=_0x41a5;typeof exports=='object'&&typeof module<'u'?_0x367b30(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0xd20d31(0x143)&&define[_0xd20d31(0x146)]?define([_0xd20d31(0x13a),_0xd20d31(0x152),_0xd20d31(0x14a)],_0x367b30):(_0x213c16=typeof globalThis<'u'?globalThis:_0x213c16||self,_0x367b30(_0x213c16['UniverProLiveShare'],_0x213c16[_0xd20d31(0x145)],_0x213c16[_0xd20d31(0x135)]));}(this,function(_0x2436bd,_0x36405c,_0x3f8ff9){const _0x45f0d6=_0x41a5;function _0x104053(_0x41c209){'@babel/helpers - typeof';const _0x1c31f3=_0x41a5;return _0x104053=typeof Symbol==_0x1c31f3(0x143)&&typeof Symbol[_0x1c31f3(0x12b)]==_0x1c31f3(0x128)?function(_0x109d12){return typeof _0x109d12;}:function(_0x2ad003){const _0x3b8c3c=_0x1c31f3;return _0x2ad003&&typeof Symbol==_0x3b8c3c(0x143)&&_0x2ad003[_0x3b8c3c(0x126)]===Symbol&&_0x2ad003!==Symbol[_0x3b8c3c(0x12f)]?_0x3b8c3c(0x128):typeof _0x2ad003;},_0x104053(_0x41c209);}function _0x3a62f9(_0x27a966,_0xd459a){const _0x182350=_0x41a5;if(_0x104053(_0x27a966)!=_0x182350(0x148)||!_0x27a966)return _0x27a966;var _0x1d160c=_0x27a966[Symbol[_0x182350(0x14d)]];if(_0x1d160c!==void 0x0){var _0x3c130b=_0x1d160c['call'](_0x27a966,_0xd459a||_0x182350(0x13b));if(_0x104053(_0x3c130b)!=_0x182350(0x148))return _0x3c130b;throw TypeError(_0x182350(0x136));}return(_0xd459a===_0x182350(0x14f)?String:Number)(_0x27a966);}function _0x377564(_0x905ff5){const _0x3ffa4d=_0x41a5;var _0x37cdf5=_0x3a62f9(_0x905ff5,_0x3ffa4d(0x14f));return _0x104053(_0x37cdf5)==_0x3ffa4d(0x128)?_0x37cdf5:_0x37cdf5+'';}function _0x5068b3(_0x36f6cc,_0x435c38,_0xc0a88){const _0x47a53d=_0x41a5;return(_0x435c38=_0x377564(_0x435c38))in _0x36f6cc?Object[_0x47a53d(0x156)](_0x36f6cc,_0x435c38,{'value':_0xc0a88,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x36f6cc[_0x435c38]=_0xc0a88,_0x36f6cc;}var _0x3353fd=class extends _0x3f8ff9[_0x45f0d6(0x144)]{constructor(..._0x2cc771){const _0x36e973=_0x45f0d6;super(..._0x2cc771),_0x5068b3(this,_0x36e973(0x154),void 0x0);}[_0x45f0d6(0x13e)](_0x2d4569){const _0x440361=_0x45f0d6;this[_0x440361(0x154)]=_0x2d4569[_0x440361(0x125)](_0x2436bd[_0x440361(0x158)]);}[_0x45f0d6(0x140)](){const _0x57aa89=_0x45f0d6;var _0x59c786;let _0x1055f7=this[_0x57aa89(0x157)]['get'](_0x36405c[_0x57aa89(0x13f)])['getCurrentUnitOfType'](_0x36405c[_0x57aa89(0x141)]['UNIVER_SHEET']);if(!_0x1055f7)throw Error(_0x57aa89(0x129));let _0x10b9d8=_0x1055f7[_0x57aa89(0x132)](),_0xba13d4=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x10b9d8);return(_0x59c786=_0xba13d4==null?void 0x0:_0xba13d4['getStatus']())==null?_0x2436bd[_0x57aa89(0x130)]['IDLE']:_0x59c786;}[_0x45f0d6(0x159)](){const _0x5ee2c2=_0x45f0d6;let _0x10292e=this['_injector'][_0x5ee2c2(0x125)](_0x36405c['IUniverInstanceService'])[_0x5ee2c2(0x13c)](_0x36405c[_0x5ee2c2(0x141)][_0x5ee2c2(0x139)]);if(!_0x10292e)throw Error(_0x5ee2c2(0x129));let _0x22809c=_0x10292e[_0x5ee2c2(0x132)](),_0x30fccf=this[_0x5ee2c2(0x154)][_0x5ee2c2(0x13d)](_0x22809c);if(!_0x30fccf)throw Error(_0x5ee2c2(0x12a));_0x30fccf[_0x5ee2c2(0x159)]();}[_0x45f0d6(0x150)](){const _0x48fc18=_0x45f0d6;let _0x5f2f0d=this['_injector']['get'](_0x36405c[_0x48fc18(0x13f)])['getCurrentUnitOfType'](_0x36405c[_0x48fc18(0x141)]['UNIVER_SHEET']);if(!_0x5f2f0d)throw Error(_0x48fc18(0x129));let _0x1a3143=_0x5f2f0d[_0x48fc18(0x132)](),_0x1577f4=this[_0x48fc18(0x154)]['getLiveShareCoordinatorSync'](_0x1a3143);if(!_0x1577f4)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1577f4[_0x48fc18(0x150)]();}[_0x45f0d6(0x14c)](){const _0x5cc4c4=_0x45f0d6;let _0x1c5822=this[_0x5cc4c4(0x157)][_0x5cc4c4(0x125)](_0x36405c[_0x5cc4c4(0x13f)])[_0x5cc4c4(0x13c)](_0x36405c['UniverInstanceType']['UNIVER_SHEET']);if(!_0x1c5822)throw Error(_0x5cc4c4(0x129));let _0x59d0e3=_0x1c5822[_0x5cc4c4(0x132)](),_0x3179b7=this[_0x5cc4c4(0x154)][_0x5cc4c4(0x13d)](_0x59d0e3);if(!_0x3179b7)throw Error(_0x5cc4c4(0x12a));_0x3179b7[_0x5cc4c4(0x138)]();}[_0x45f0d6(0x147)](){const _0x3e6a71=_0x45f0d6;let _0x491120=this[_0x3e6a71(0x157)][_0x3e6a71(0x125)](_0x36405c[_0x3e6a71(0x13f)])['getCurrentUnitOfType'](_0x36405c[_0x3e6a71(0x141)]['UNIVER_SHEET']);if(!_0x491120)throw Error(_0x3e6a71(0x129));let _0xc6f9ba=_0x491120[_0x3e6a71(0x132)](),_0x42caf9=this[_0x3e6a71(0x154)][_0x3e6a71(0x13d)](_0xc6f9ba);if(!_0x42caf9)throw Error(_0x3e6a71(0x12a));_0x42caf9[_0x3e6a71(0x147)]();}};_0x3f8ff9[_0x45f0d6(0x144)][_0x45f0d6(0x137)](_0x3353fd);var _0x577716=class extends _0x3f8ff9[_0x45f0d6(0x12e)]{get[_0x45f0d6(0x131)](){const _0xca21b9=_0x45f0d6;return _0x2436bd[_0xca21b9(0x130)];}};_0x3f8ff9[_0x45f0d6(0x12e)]['extend'](_0x577716);}));function _0x3cd8(){const _0x4dda83=['46hOKunS','string','stopFollowing','45EOpjOi','@univerjs/core','120135RvFobH','_liveShareController','1080978MOQtTW','defineProperty','_injector','LiveShareController','startFollowing','get','constructor','6FSGMbB','symbol','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','iterator','1231710GQgYAX','33NYLEky','FEnum','prototype','LiveShareStatus','LiveShareStatusEnum','getUnitId','10161264CQPqHZ','36KHudSD','UniverCoreFacade','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','tryStartPresenting','UNIVER_SHEET','@univerjs-pro/live-share','default','getCurrentUnitOfType','getLiveShareCoordinatorSync','_initialize','IUniverInstanceService','getLiveShareStatus','UniverInstanceType','2707775ygSTSo','function','FUniver','UniverCore','amd','stopPresenting','object','155816WZNmZC','@univerjs/core/facade','2266oFleBM','startPresenting','toPrimitive'];_0x3cd8=function(){return _0x4dda83;};return _0x3cd8();}
1
+ function _0x2451(_0x4ee0c4,_0x3a07c9){_0x4ee0c4=_0x4ee0c4-0x90;const _0x3545c5=_0x3545();let _0x245154=_0x3545c5[_0x4ee0c4];return _0x245154;}function _0x3545(){const _0x1655e1=['8025705JchNJa','LiveShareStatus','stopFollowing','UNIVER_SHEET','UniverCore','UniverInstanceType','tryStartPresenting','getLiveShareStatus','1832luNXDS','LiveShareStatusEnum','amd','LiveShareController','No\x20active\x20workbook\x20found.','IDLE','710601tZifMj','3142616tNYYII','_injector','get','defineProperty','function','IUniverInstanceService','call','_initialize','@univerjs-pro/live-share','object','constructor','433015pLSVDh','startFollowing','5591770bebNoc','@univerjs/core','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FUniver','UniverCoreFacade','extend','_liveShareController','getUnitId','476rkfBmv','iterator','startPresenting','stopPresenting','getLiveShareCoordinatorSync','5937678XpsqUL','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','toPrimitive','getStatus','FEnum','10FwMRFc','prototype','string','UniverProLiveShare','getCurrentUnitOfType'];_0x3545=function(){return _0x1655e1;};return _0x3545();}(function(_0x1885d0,_0x2ac5c2){const _0x1e6568=_0x2451,_0x57db5f=_0x1885d0();while(!![]){try{const _0x3d1bb9=-parseInt(_0x1e6568(0x9e))/0x1+-parseInt(_0x1e6568(0xb2))/0x2*(parseInt(_0x1e6568(0x92))/0x3)+-parseInt(_0x1e6568(0x93))/0x4+parseInt(_0x1e6568(0xa0))/0x5+parseInt(_0x1e6568(0xad))/0x6+parseInt(_0x1e6568(0xa8))/0x7*(parseInt(_0x1e6568(0xbf))/0x8)+parseInt(_0x1e6568(0xb7))/0x9;if(_0x3d1bb9===_0x2ac5c2)break;else _0x57db5f['push'](_0x57db5f['shift']());}catch(_0x2cf5a3){_0x57db5f['push'](_0x57db5f['shift']());}}}(_0x3545,0x957b8),function(_0x43120e,_0x154c4){const _0x27591f=_0x2451;typeof exports==_0x27591f(0x9c)&&typeof module<'u'?_0x154c4(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x27591f(0x97)&&define[_0x27591f(0xc1)]?define([_0x27591f(0x9b),_0x27591f(0xa1),'@univerjs/core/facade'],_0x154c4):(_0x43120e=typeof globalThis<'u'?globalThis:_0x43120e||self,_0x154c4(_0x43120e[_0x27591f(0xb5)],_0x43120e[_0x27591f(0xbb)],_0x43120e[_0x27591f(0xa4)]));}(this,function(_0x14b6a8,_0x19e1bd,_0x12a291){const _0x3051cf=_0x2451;function _0x29d094(_0x31c4ce){'@babel/helpers - typeof';const _0x57d3ca=_0x2451;return _0x29d094=typeof Symbol==_0x57d3ca(0x97)&&typeof Symbol[_0x57d3ca(0xa9)]=='symbol'?function(_0x1cb138){return typeof _0x1cb138;}:function(_0x19afb6){const _0x5d8c3f=_0x57d3ca;return _0x19afb6&&typeof Symbol==_0x5d8c3f(0x97)&&_0x19afb6[_0x5d8c3f(0x9d)]===Symbol&&_0x19afb6!==Symbol[_0x5d8c3f(0xb3)]?'symbol':typeof _0x19afb6;},_0x29d094(_0x31c4ce);}function _0xe21148(_0x174fd6,_0x5e8f54){const _0x3f8a8d=_0x2451;if(_0x29d094(_0x174fd6)!='object'||!_0x174fd6)return _0x174fd6;var _0x4ffb03=_0x174fd6[Symbol[_0x3f8a8d(0xaf)]];if(_0x4ffb03!==void 0x0){var _0x1fe51a=_0x4ffb03[_0x3f8a8d(0x99)](_0x174fd6,_0x5e8f54||'default');if(_0x29d094(_0x1fe51a)!='object')return _0x1fe51a;throw TypeError(_0x3f8a8d(0xa2));}return(_0x5e8f54===_0x3f8a8d(0xb4)?String:Number)(_0x174fd6);}function _0x50d55c(_0x371f00){const _0x1e95ee=_0x2451;var _0x374e83=_0xe21148(_0x371f00,_0x1e95ee(0xb4));return _0x29d094(_0x374e83)=='symbol'?_0x374e83:_0x374e83+'';}function _0x353409(_0x2d31cc,_0x5ee287,_0x4cde6c){const _0x7a7e9c=_0x2451;return(_0x5ee287=_0x50d55c(_0x5ee287))in _0x2d31cc?Object[_0x7a7e9c(0x96)](_0x2d31cc,_0x5ee287,{'value':_0x4cde6c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d31cc[_0x5ee287]=_0x4cde6c,_0x2d31cc;}var _0x470818=class extends _0x12a291[_0x3051cf(0xa3)]{constructor(..._0x3f9e84){const _0x185701=_0x3051cf;super(..._0x3f9e84),_0x353409(this,_0x185701(0xa6),void 0x0);}[_0x3051cf(0x9a)](_0x39c093){const _0x4aeaba=_0x3051cf;this['_liveShareController']=_0x39c093[_0x4aeaba(0x95)](_0x14b6a8[_0x4aeaba(0xc2)]);}[_0x3051cf(0xbe)](){const _0x40fc8c=_0x3051cf;var _0x4db0bf;let _0x4b3699=this['_injector'][_0x40fc8c(0x95)](_0x19e1bd['IUniverInstanceService'])[_0x40fc8c(0xb6)](_0x19e1bd[_0x40fc8c(0xbc)][_0x40fc8c(0xba)]);if(!_0x4b3699)throw Error(_0x40fc8c(0x90));let _0x3e5e67=_0x4b3699[_0x40fc8c(0xa7)](),_0x5b6f68=this[_0x40fc8c(0xa6)][_0x40fc8c(0xac)](_0x3e5e67);return(_0x4db0bf=_0x5b6f68==null?void 0x0:_0x5b6f68[_0x40fc8c(0xb0)]())==null?_0x14b6a8[_0x40fc8c(0xb8)][_0x40fc8c(0x91)]:_0x4db0bf;}[_0x3051cf(0x9f)](){const _0x450582=_0x3051cf;let _0x5682e9=this['_injector'][_0x450582(0x95)](_0x19e1bd[_0x450582(0x98)])[_0x450582(0xb6)](_0x19e1bd['UniverInstanceType'][_0x450582(0xba)]);if(!_0x5682e9)throw Error('No\x20active\x20workbook\x20found.');let _0x14bea7=_0x5682e9[_0x450582(0xa7)](),_0x59e222=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x14bea7);if(!_0x59e222)throw Error(_0x450582(0xae));_0x59e222['startFollowing']();}['stopFollowing'](){const _0x2d66b2=_0x3051cf;let _0x41a0e2=this['_injector']['get'](_0x19e1bd[_0x2d66b2(0x98)])[_0x2d66b2(0xb6)](_0x19e1bd[_0x2d66b2(0xbc)]['UNIVER_SHEET']);if(!_0x41a0e2)throw Error('No\x20active\x20workbook\x20found.');let _0x1428f5=_0x41a0e2['getUnitId'](),_0x5d8eb6=this['_liveShareController'][_0x2d66b2(0xac)](_0x1428f5);if(!_0x5d8eb6)throw Error(_0x2d66b2(0xae));_0x5d8eb6[_0x2d66b2(0xb9)]();}[_0x3051cf(0xaa)](){const _0x243010=_0x3051cf;let _0x3d79fa=this['_injector'][_0x243010(0x95)](_0x19e1bd[_0x243010(0x98)])[_0x243010(0xb6)](_0x19e1bd[_0x243010(0xbc)][_0x243010(0xba)]);if(!_0x3d79fa)throw Error(_0x243010(0x90));let _0x5a4006=_0x3d79fa[_0x243010(0xa7)](),_0x1a341d=this[_0x243010(0xa6)][_0x243010(0xac)](_0x5a4006);if(!_0x1a341d)throw Error(_0x243010(0xae));_0x1a341d[_0x243010(0xbd)]();}['stopPresenting'](){const _0xe027c5=_0x3051cf;let _0x1edd29=this[_0xe027c5(0x94)]['get'](_0x19e1bd[_0xe027c5(0x98)])[_0xe027c5(0xb6)](_0x19e1bd['UniverInstanceType'][_0xe027c5(0xba)]);if(!_0x1edd29)throw Error(_0xe027c5(0x90));let _0x11c39d=_0x1edd29['getUnitId'](),_0x2211f9=this[_0xe027c5(0xa6)][_0xe027c5(0xac)](_0x11c39d);if(!_0x2211f9)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2211f9[_0xe027c5(0xab)]();}};_0x12a291[_0x3051cf(0xa3)][_0x3051cf(0xa5)](_0x470818);var _0xbba924=class extends _0x12a291[_0x3051cf(0xb1)]{get[_0x3051cf(0xc0)](){return _0x14b6a8['LiveShareStatus'];}};_0x12a291[_0x3051cf(0xb1)][_0x3051cf(0xa5)](_0xbba924);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4487(_0x535be6,_0x3a86a3){_0x535be6=_0x535be6-0x7e;const _0xb4a871=_0xb4a8();let _0x448758=_0xb4a871[_0x535be6];return _0x448758;}(function(_0x3a4b82,_0x50df29){const _0x4cc9cb=_0x4487,_0x2f44d3=_0x3a4b82();while(!![]){try{const _0x442307=-parseInt(_0x4cc9cb(0x148))/0x1*(parseInt(_0x4cc9cb(0x114))/0x2)+-parseInt(_0x4cc9cb(0xae))/0x3+-parseInt(_0x4cc9cb(0x137))/0x4*(-parseInt(_0x4cc9cb(0xd6))/0x5)+-parseInt(_0x4cc9cb(0xca))/0x6+-parseInt(_0x4cc9cb(0x159))/0x7*(parseInt(_0x4cc9cb(0xaa))/0x8)+-parseInt(_0x4cc9cb(0x153))/0x9+-parseInt(_0x4cc9cb(0xef))/0xa*(-parseInt(_0x4cc9cb(0x15d))/0xb);if(_0x442307===_0x50df29)break;else _0x2f44d3['push'](_0x2f44d3['shift']());}catch(_0x1e4482){_0x2f44d3['push'](_0x2f44d3['shift']());}}}(_0xb4a8,0x870af),function(_0x3a0a76,_0x150d49){const _0x3573b4=_0x4487;typeof exports==_0x3573b4(0xf8)&&typeof module<'u'?_0x150d49(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==_0x3573b4(0x132)&&define[_0x3573b4(0xd0)]?define([_0x3573b4(0xfb),_0x3573b4(0x98),_0x3573b4(0xfd),_0x3573b4(0x169),_0x3573b4(0x106),_0x3573b4(0xd7),_0x3573b4(0xa2),_0x3573b4(0xbe),_0x3573b4(0xbb),_0x3573b4(0xcb),_0x3573b4(0xd4),_0x3573b4(0x124)],_0x150d49):(_0x3a0a76=typeof globalThis<'u'?globalThis:_0x3a0a76||self,_0x150d49(_0x3a0a76['UniverProLiveShare']={},_0x3a0a76[_0x3573b4(0x117)],_0x3a0a76[_0x3573b4(0x12e)],_0x3a0a76[_0x3573b4(0x12b)],_0x3a0a76[_0x3573b4(0xfc)],_0x3a0a76[_0x3573b4(0xf6)],_0x3a0a76[_0x3573b4(0x123)],_0x3a0a76[_0x3573b4(0x8a)],_0x3a0a76[_0x3573b4(0xbb)],_0x3a0a76[_0x3573b4(0xbb)][_0x3573b4(0xc8)],_0x3a0a76['React'],_0x3a0a76[_0x3573b4(0xd8)]));}(this,function(_0x267332,_0x5d0cde,_0x2d834b,_0x28b9d4,_0x168f88,_0x51961d,_0x2d41d9,_0x4e0523,_0x418e8f,_0x4ebb2a,_0x38b09a,_0x522b82){const _0x21389e=_0x4487;Object[_0x21389e(0x93)](_0x267332,Symbol['toStringTag'],{'value':_0x21389e(0x9a)});function _0x2ed2e8({ref:_0x567275,..._0x4e66dd}){const _0x27fa71=_0x21389e;let {icon:_0x2f3905,id:_0x18b587,className:_0x5de2fb,extend:_0x4b6e38,..._0x2fb1b2}=_0x4e66dd,_0x3f2072=(_0x27fa71(0xe1)+_0x18b587+'\x20'+(_0x5de2fb||''))[_0x27fa71(0xde)](),_0x52a235=(0x0,_0x168f88[_0x27fa71(0xad)])('_'+_0x2a6f4a());return _0x13745e(_0x2f3905,''+_0x18b587,{'defIds':_0x2f3905[_0x27fa71(0x116)],'idSuffix':_0x52a235[_0x27fa71(0x158)]},{'ref':_0x567275,'className':_0x3f2072,..._0x2fb1b2},_0x4b6e38);}function _0x13745e(_0x267a7a,_0x23071d,_0x4d766c,_0x233885,_0x4e1753){const _0x4dd3b5=_0x21389e;return(0x0,_0x168f88[_0x4dd3b5(0x13f)])(_0x267a7a[_0x4dd3b5(0xcc)],{'key':_0x23071d,..._0x48fa28(_0x267a7a,_0x4d766c,_0x4e1753),..._0x233885},(_0x40b54e(_0x267a7a,_0x4d766c)[_0x4dd3b5(0x174)]||[])[_0x4dd3b5(0x92)]((_0x55e8a1,_0x12c916)=>_0x13745e(_0x55e8a1,_0x23071d+'-'+_0x267a7a['tag']+'-'+_0x12c916,_0x4d766c,void 0x0,_0x4e1753)));}function _0x48fa28(_0x591491,_0x18125d,_0x336183){const _0x3bab89=_0x21389e;let _0x5e6a5a={..._0x591491[_0x3bab89(0xd2)]};_0x336183!=null&&_0x336183[_0x3bab89(0x15a)]&&_0x5e6a5a[_0x3bab89(0x15f)]===_0x3bab89(0x15a)&&(_0x5e6a5a['fill']=_0x336183[_0x3bab89(0x15a)]),_0x591491[_0x3bab89(0xcc)]===_0x3bab89(0xce)&&_0x5e6a5a['id']&&(_0x5e6a5a['id']+=_0x18125d[_0x3bab89(0x168)]),Object[_0x3bab89(0x136)](_0x5e6a5a)[_0x3bab89(0x166)](([_0x31079d,_0x3d25ca])=>{const _0x3def35=_0x3bab89;_0x31079d===_0x3def35(0xce)&&typeof _0x3d25ca==_0x3def35(0x143)&&(_0x5e6a5a[_0x31079d]=_0x3d25ca[_0x3def35(0x105)](/url\(#(.*)\)/,_0x3def35(0x94)+_0x18125d['idSuffix']+')'));});let {defIds:_0x586c97}=_0x18125d;return!_0x586c97||_0x586c97['length']===0x0?_0x5e6a5a:(_0x591491[_0x3bab89(0xcc)]===_0x3bab89(0x155)&&_0x5e6a5a['xlink:href']&&(_0x5e6a5a[_0x3bab89(0x142)]+=_0x18125d[_0x3bab89(0x168)]),Object['entries'](_0x5e6a5a)['forEach'](([_0x52cc13,_0x9770d])=>{const _0x388fd6=_0x3bab89;typeof _0x9770d==_0x388fd6(0x143)&&(_0x5e6a5a[_0x52cc13]=_0x9770d[_0x388fd6(0x105)](/url\(#(.*)\)/,_0x388fd6(0x94)+_0x18125d[_0x388fd6(0x168)]+')'));}),_0x5e6a5a);}function _0x40b54e(_0x53f522,_0x25541f){const _0x295215=_0x21389e;var _0x9aa4a4;let {defIds:_0x25e9ca}=_0x25541f;return!_0x25e9ca||_0x25e9ca[_0x295215(0x8c)]===0x0?_0x53f522:_0x53f522[_0x295215(0xcc)]===_0x295215(0x147)&&(_0x9aa4a4=_0x53f522['children'])!=null&&_0x9aa4a4[_0x295215(0x8c)]?{..._0x53f522,'children':_0x53f522[_0x295215(0x174)][_0x295215(0x92)](_0xb233d3=>typeof _0xb233d3[_0x295215(0xd2)]['id']==_0x295215(0x143)&&_0x25e9ca&&_0x25e9ca[_0x295215(0x84)](_0xb233d3[_0x295215(0xd2)]['id'])?{..._0xb233d3,'attrs':{..._0xb233d3[_0x295215(0xd2)],'id':_0xb233d3[_0x295215(0xd2)]['id']+_0x25541f[_0x295215(0x168)]}}:_0xb233d3)}:_0x53f522;}function _0x2a6f4a(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x2ed2e8[_0x21389e(0x144)]=_0x21389e(0xbc);let _0x5c915b={'tag':_0x21389e(0xba),'attrs':{'xmlns':_0x21389e(0x108),'fill':_0x21389e(0x85),'viewBox':'0\x200\x2017\x2017','width':_0x21389e(0x145),'height':'1em'},'children':[{'tag':_0x21389e(0x95),'attrs':{'fill':_0x21389e(0x146),'d':_0x21389e(0x83)}},{'tag':_0x21389e(0x95),'attrs':{'fill':_0x21389e(0x146),'d':_0x21389e(0x150),'fillRule':'evenodd','clipRule':_0x21389e(0x10e)}}]},_0x28fca2=(0x0,_0x168f88['forwardRef'])(function(_0x3f4650,_0x38225c){const _0x36be41=_0x21389e;return(0x0,_0x168f88[_0x36be41(0x13f)])(_0x2ed2e8,Object['assign']({},_0x3f4650,{'id':_0x36be41(0x12a),'ref':_0x38225c,'icon':_0x5c915b}));});_0x28fca2[_0x21389e(0x144)]=_0x21389e(0x160);function _0x3b6e5b(_0xcb869e){'@babel/helpers - typeof';const _0x302f19=_0x21389e;return _0x3b6e5b=typeof Symbol==_0x302f19(0x132)&&typeof Symbol[_0x302f19(0xb5)]=='symbol'?function(_0x18db48){return typeof _0x18db48;}:function(_0x4cad8d){const _0x2ca6da=_0x302f19;return _0x4cad8d&&typeof Symbol=='function'&&_0x4cad8d[_0x2ca6da(0xa4)]===Symbol&&_0x4cad8d!==Symbol['prototype']?_0x2ca6da(0x80):typeof _0x4cad8d;},_0x3b6e5b(_0xcb869e);}function _0x35b973(_0x232f2e,_0x432f4a){const _0x44c069=_0x21389e;if(_0x3b6e5b(_0x232f2e)!=_0x44c069(0xf8)||!_0x232f2e)return _0x232f2e;var _0x28e6a2=_0x232f2e[Symbol[_0x44c069(0xb4)]];if(_0x28e6a2!==void 0x0){var _0x6da949=_0x28e6a2[_0x44c069(0x154)](_0x232f2e,_0x432f4a||_0x44c069(0xd1));if(_0x3b6e5b(_0x6da949)!='object')return _0x6da949;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x432f4a==='string'?String:Number)(_0x232f2e);}function _0x191f38(_0x5fff8f){const _0x5eed6c=_0x21389e;var _0x14fa23=_0x35b973(_0x5fff8f,_0x5eed6c(0x143));return _0x3b6e5b(_0x14fa23)=='symbol'?_0x14fa23:_0x14fa23+'';}function _0x527e54(_0x5a5d1c,_0x3c0bd2,_0x50c348){const _0x276b73=_0x21389e;return(_0x3c0bd2=_0x191f38(_0x3c0bd2))in _0x5a5d1c?Object[_0x276b73(0x93)](_0x5a5d1c,_0x3c0bd2,{'value':_0x50c348,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a5d1c[_0x3c0bd2]=_0x50c348,_0x5a5d1c;}var _0x2e5c0f=class extends _0x5d0cde[_0x21389e(0xf4)]{constructor(..._0x4f39ae){const _0x53091e=_0x21389e;super(..._0x4f39ae),_0x527e54(this,_0x53091e(0x14b),new Set()),_0x527e54(this,_0x53091e(0x141),new Set());}[_0x21389e(0xcf)](_0x52a473){const _0x3d4a4f=_0x21389e;return this[_0x3d4a4f(0x14b)][_0x3d4a4f(0x13b)](_0x52a473),(0x0,_0x5d0cde['toDisposable'])(()=>this[_0x3d4a4f(0x14b)][_0x3d4a4f(0x11a)](_0x52a473));}[_0x21389e(0x14d)](_0x2b11db){const _0x5ed2ab=_0x21389e;return this[_0x5ed2ab(0x141)][_0x5ed2ab(0x13b)](_0x2b11db),(0x0,_0x5d0cde[_0x5ed2ab(0xb8)])(()=>this[_0x5ed2ab(0x141)][_0x5ed2ab(0x11a)](_0x2b11db));}['shouldShareOperation'](_0x5dcfbf){const _0xe0909f=_0x21389e;return this[_0xe0909f(0x14b)][_0xe0909f(0x7e)](_0x5dcfbf);}[_0x21389e(0x152)](_0x368d59){const _0x361a13=_0x21389e;return Array[_0x361a13(0xfe)](this[_0x361a13(0x141)])[_0x361a13(0x92)](_0x51f610=>_0x51f610(_0x368d59));}};function _0x13e222(_0x316945,_0x580c9b){return function(_0x5501da,_0x2d4b8b){_0x580c9b(_0x5501da,_0x2d4b8b,_0x316945);};}function _0x3fc719(_0x20a2fa,_0x2f9924,_0x4b847e,_0x26058b){const _0xab739e=_0x21389e;var _0x5f181e=arguments[_0xab739e(0x8c)],_0x35d9e0=_0x5f181e<0x3?_0x2f9924:_0x26058b===null?_0x26058b=Object['getOwnPropertyDescriptor'](_0x2f9924,_0x4b847e):_0x26058b,_0x248902;if(typeof Reflect==_0xab739e(0xf8)&&typeof Reflect[_0xab739e(0xf5)]==_0xab739e(0x132))_0x35d9e0=Reflect[_0xab739e(0xf5)](_0x20a2fa,_0x2f9924,_0x4b847e,_0x26058b);else{for(var _0x221ca0=_0x20a2fa[_0xab739e(0x8c)]-0x1;_0x221ca0>=0x0;_0x221ca0--)(_0x248902=_0x20a2fa[_0x221ca0])&&(_0x35d9e0=(_0x5f181e<0x3?_0x248902(_0x35d9e0):_0x5f181e>0x3?_0x248902(_0x2f9924,_0x4b847e,_0x35d9e0):_0x248902(_0x2f9924,_0x4b847e))||_0x35d9e0);}return _0x5f181e>0x3&&_0x35d9e0&&Object[_0xab739e(0x93)](_0x2f9924,_0x4b847e,_0x35d9e0),_0x35d9e0;}let _0x5cd63a=class extends _0x5d0cde['RxDisposable']{constructor(_0x187333,_0x191029,_0x599a35){const _0xf6be0d=_0x21389e;super(),this[_0xf6be0d(0x12c)]=_0x187333,this['_injector']=_0x191029,this[_0xf6be0d(0x14e)]=_0x599a35,_0x527e54(this,_0xf6be0d(0xb7),new Map()),this[_0xf6be0d(0xf0)]();}async[_0x21389e(0xa7)](_0x1ce972){const _0x40c6cf=_0x21389e;return this['_entities'][_0x40c6cf(0x7e)](_0x1ce972)||await this[_0x40c6cf(0x129)](_0x1ce972),this['_entities']['get'](_0x1ce972);}[_0x21389e(0x107)](_0x312ca3){const _0x34bbc6=_0x21389e;var _0x36303c;return(_0x36303c=this[_0x34bbc6(0xb7)][_0x34bbc6(0x10a)](_0x312ca3))==null?null:_0x36303c;}[_0x21389e(0xf0)](){const _0x181924=_0x21389e;this[_0x181924(0x12c)][_0x181924(0xb0)](_0x5d0cde[_0x181924(0xe5)]['UNIVER_SHEET'])['pipe']((0x0,_0x4ebb2a[_0x181924(0x126)])(this[_0x181924(0xe8)]))[_0x181924(0x11f)](async _0x79d7c0=>{const _0x2f633d=_0x181924;let _0x551052=_0x79d7c0['unit'][_0x2f633d(0x121)]();this[_0x2f633d(0xb7)][_0x2f633d(0x7e)](_0x551052)||this[_0x2f633d(0x129)](_0x551052);}),this[_0x181924(0x12c)][_0x181924(0xa9)](_0x5d0cde[_0x181924(0xe5)]['UNIVER_SHEET'])['pipe']((0x0,_0x4ebb2a[_0x181924(0x126)])(this[_0x181924(0xe8)]))[_0x181924(0x11f)](_0x173644=>{const _0x37edf7=_0x181924;let _0x282d6b=_0x173644[_0x37edf7(0x121)](),_0x2af064=this['_entities'][_0x37edf7(0x10a)](_0x282d6b);_0x2af064==null||_0x2af064[_0x37edf7(0xfa)]();});}async['_startLiveShareCoordinator'](_0x205825){const _0x56e747=_0x21389e;let _0x435db6=await this[_0x56e747(0x14e)][_0x56e747(0x10d)](_0x205825),_0x406e05=this[_0x56e747(0xf3)][_0x56e747(0x87)](_0x1841b1,_0x205825,_0x435db6);return _0x406e05[_0x56e747(0x127)](),this[_0x56e747(0xb7)]['set'](_0x205825,_0x406e05),_0x406e05;}};_0x5cd63a=_0x3fc719([_0x13e222(0x0,_0x5d0cde[_0x21389e(0x162)]),_0x13e222(0x1,(0x0,_0x5d0cde['Inject'])(_0x5d0cde[_0x21389e(0x134)])),_0x13e222(0x2,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x2d41d9[_0x21389e(0x8e)]))],_0x5cd63a);let _0x24d389=function(_0x2f5a1f){const _0x5ba050=_0x21389e;return _0x2f5a1f[_0x5ba050(0x13d)]=_0x5ba050(0x10b),_0x2f5a1f[_0x5ba050(0xc6)]=_0x5ba050(0xc2),_0x2f5a1f[_0x5ba050(0x11d)]=_0x5ba050(0x101),_0x2f5a1f[_0x5ba050(0x122)]=_0x5ba050(0x139),_0x2f5a1f[_0x5ba050(0x9c)]=_0x5ba050(0x89),_0x2f5a1f;}({}),_0x1841b1=class extends _0x5d0cde[_0x21389e(0x16e)]{get[_0x21389e(0x10f)](){const _0x14468b=_0x21389e;return this[_0x14468b(0x161)]['getValue']();}constructor(_0x48b2ae,_0x49db33,_0x546632,_0x1b0045,_0x35c814){const _0x505c6e=_0x21389e;super(),this[_0x505c6e(0xac)]=_0x48b2ae,this[_0x505c6e(0xb2)]=_0x49db33,this['_configService']=_0x546632,this[_0x505c6e(0x13c)]=_0x1b0045,this['_commandService']=_0x35c814,_0x527e54(this,_0x505c6e(0x161),new _0x418e8f[(_0x505c6e(0x118))]('idle')),_0x527e54(this,_0x505c6e(0x173),this['_status$'][_0x505c6e(0xb1)]()),_0x527e54(this,'_init',!0x1),_0x527e54(this,_0x505c6e(0x8b),null),_0x527e54(this,_0x505c6e(0x12d),null);}['dispose'](){const _0x29a96f=_0x21389e;var _0x127bd6;(_0x127bd6=this['_commandDisposable'])==null||_0x127bd6[_0x29a96f(0xfa)](),this[_0x29a96f(0x161)][_0x29a96f(0x11b)]('idle'),this[_0x29a96f(0x161)][_0x29a96f(0x16c)]();}[_0x21389e(0x9f)](){const _0x171dfc=_0x21389e;return this[_0x171dfc(0x10f)];}[_0x21389e(0x127)](){const _0x3546b0=_0x21389e;this[_0x3546b0(0xf0)]||(this['_init']=!0x0,this[_0x3546b0(0xb2)][_0x3546b0(0x175)][_0x3546b0(0xab)]((0x0,_0x4ebb2a[_0x3546b0(0x126)])(this['dispose$']))[_0x3546b0(0x11f)](_0x5b2da0=>{const _0x5c28f6=_0x3546b0;switch(_0x5b2da0){case _0x2d41d9[_0x5c28f6(0x14f)][_0x5c28f6(0x13d)]:this['_handleOffline']();break;case _0x2d41d9[_0x5c28f6(0x14f)][_0x5c28f6(0x96)]:this[_0x5c28f6(0xbf)]();break;default:}}),this['_collabSession'][_0x3546b0(0xf9)][_0x3546b0(0xab)]((0x0,_0x4ebb2a[_0x3546b0(0x126)])(this[_0x3546b0(0xe8)]))[_0x3546b0(0x11f)](_0x3c8067=>{const _0x4e8687=_0x3546b0;let {eventID:_0x2ac588}=_0x3c8067;switch(_0x2ac588){case _0x51961d['CollaborationEvent'][_0x4e8687(0xf2)]:this[_0x4e8687(0xc7)](_0x3c8067);break;case _0x51961d[_0x4e8687(0x13e)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3c8067);break;case _0x51961d[_0x4e8687(0x13e)][_0x4e8687(0x167)]:this[_0x4e8687(0x102)]();break;case _0x51961d[_0x4e8687(0x13e)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3c8067);break;default:}}));}[_0x21389e(0xbd)](){const _0x3f55cc=_0x21389e;this[_0x3f55cc(0xb2)][_0x3f55cc(0xaf)]({'eventID':_0x51961d[_0x3f55cc(0x13e)][_0x3f55cc(0x14a)],'data':{'unitID':this['_unitID'],'userID':this[_0x3f55cc(0xb2)]['getMemberID']()}},this[_0x3f55cc(0xac)]);}[_0x21389e(0xff)](){const _0x62759c=_0x21389e;this['_status']===_0x62759c(0x89)&&(this['_status$'][_0x62759c(0x11b)](_0x62759c(0xc2)),this['_collabSession'][_0x62759c(0xaf)]({'eventID':_0x51961d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x62759c(0xac)]}},this[_0x62759c(0xac)]));}[_0x21389e(0xd9)](){const _0x2f31c5=_0x21389e;this[_0x2f31c5(0x10f)]===_0x2f31c5(0x139)&&(this[_0x2f31c5(0x161)][_0x2f31c5(0x11b)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x1e4c8e=_0x21389e;this[_0x1e4c8e(0x10f)]===_0x1e4c8e(0x101)&&this['_stopFollowing']();}['_handleNewHost'](_0x22d196){const _0xea7181=_0x21389e;let {presenter:_0x5774dd}=_0x22d196[_0xea7181(0x9d)],_0x13662a=this[_0xea7181(0xb2)]['getMemberID']();this[_0xea7181(0x12d)]=_0x5774dd,_0x5774dd===_0x13662a?(this[_0xea7181(0xe7)](),this['_startPresenting']()):this[_0xea7181(0x10f)]!=='not-following'&&(this[_0xea7181(0xc1)](),this[_0xea7181(0x149)]());}[_0x21389e(0xe4)](){const _0x3d2a7a=_0x21389e;let _0x5c00aa={'eventID':_0x51961d[_0x3d2a7a(0x13e)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3d2a7a(0xb2)][_0x3d2a7a(0xaf)](_0x5c00aa,this[_0x3d2a7a(0xac)]);}['_handleTerminate'](){const _0x55473f=_0x21389e;this[_0x55473f(0x12d)]=null,this[_0x55473f(0x10f)]!==_0x55473f(0x89)&&this[_0x55473f(0x113)]();}['_handleNewChangeSets'](_0x3a3fd9){const _0x21a974=_0x21389e;if(this['_status']===_0x21a974(0x101)&&this['_presenter']===_0x3a3fd9[_0x21a974(0x9d)][_0x21a974(0x15b)]){let _0x1e86b2=(0x0,_0x51961d[_0x21a974(0xa1)])(_0x3a3fd9['data'])[_0x21a974(0x16d)][_0x21a974(0x110)]()[_0x21a974(0x7f)](_0x56b0bc=>_0x56b0bc['id']===_0x4e0523[_0x21a974(0x109)]['id']);if(_0x1e86b2){let _0x5b7800=_0x1e86b2[_0x21a974(0x11c)]['unitId'],_0x329e00=_0x1e86b2[_0x21a974(0x11c)][_0x21a974(0x130)]['id'];setTimeout(()=>{const _0xf5ad7f=_0x21a974;this[_0xf5ad7f(0x8d)]['executeCommand'](_0x4e0523[_0xf5ad7f(0x156)]['id'],{'unitId':_0x5b7800,'subUnitId':_0x329e00},{'fromCollab':!0x0});});}}}[_0x21389e(0x119)](){const _0x59f95a=_0x21389e;var _0x4f5606;(_0x4f5606=this['_commandDisposable'])==null||_0x4f5606[_0x59f95a(0xfa)](),this[_0x59f95a(0x161)][_0x59f95a(0x11b)](_0x59f95a(0x89));let _0x408a03=new Map(),_0x2fd0f4=this[_0x59f95a(0x8b)]=new _0x5d0cde[(_0x59f95a(0x100))]();_0x2fd0f4[_0x59f95a(0x13b)]((0x0,_0x5d0cde[_0x59f95a(0xb8)])(()=>{const _0x4dbc3e=_0x59f95a;_0x408a03[_0x4dbc3e(0x166)](({subject:_0x3bd7b2,subscription:_0x3b1aef})=>{const _0x30af03=_0x4dbc3e;_0x3b1aef[_0x30af03(0xd5)](),_0x3bd7b2[_0x30af03(0x16c)]();}),_0x408a03[_0x4dbc3e(0x157)]();})),_0x2fd0f4[_0x59f95a(0x13b)](this[_0x59f95a(0x8d)]['onCommandExecuted'](_0x166d6d=>{const _0x2fef15=_0x59f95a;if(_0x166d6d[_0x2fef15(0x86)]!==_0x5d0cde[_0x2fef15(0x133)][_0x2fef15(0x9e)]||!this['_liveShareService'][_0x2fef15(0xee)](_0x166d6d['id']))return;let {id:_0x4cb69e}=_0x166d6d,_0x218128;if(_0x408a03[_0x2fef15(0x7e)](_0x4cb69e))_0x218128=_0x408a03[_0x2fef15(0x10a)](_0x4cb69e)[_0x2fef15(0xea)];else{var _0x65635c;_0x218128=new _0x418e8f[(_0x2fef15(0x13a))]();let _0x151d7c=_0x218128[_0x2fef15(0xab)]((0x0,_0x4ebb2a[_0x2fef15(0xf7)])((_0x65635c=this[_0x2fef15(0xb6)][_0x2fef15(0xa3)](_0x2fef15(0xa6)))==null?0xc8:_0x65635c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2fef15(0x11f)](_0x2c8985=>{const _0x3cd2a7=_0x2fef15;this[_0x3cd2a7(0xb2)][_0x3cd2a7(0xaf)]({'eventID':_0x51961d[_0x3cd2a7(0x13e)][_0x3cd2a7(0x172)],'data':{'unitID':this[_0x3cd2a7(0xac)],'operations':{[_0x2c8985['id']]:{'id':_0x2c8985['id'],'params':JSON['stringify'](_0x2c8985['params'])}}}},this[_0x3cd2a7(0xac)]);});_0x408a03['set'](_0x4cb69e,{'subject':_0x218128,'subscription':_0x151d7c});}_0x218128['next'](_0x166d6d);})),this[_0x59f95a(0x13c)][_0x59f95a(0x152)](this[_0x59f95a(0xac)])['forEach'](_0x2b9998=>this[_0x59f95a(0xb2)]['send']({'eventID':_0x51961d['CollaborationEvent'][_0x59f95a(0x172)],'data':{'unitID':this[_0x59f95a(0xac)],'operations':{[_0x2b9998['id']]:{'id':_0x2b9998['id'],'params':JSON[_0x59f95a(0x15c)](_0x2b9998[_0x59f95a(0x11c)])}}}},this[_0x59f95a(0xac)]));}[_0x21389e(0xc1)](){const _0x497672=_0x21389e;var _0x1e7b9d;this[_0x497672(0x161)]['next']('idle'),(_0x1e7b9d=this[_0x497672(0x8b)])==null||_0x1e7b9d[_0x497672(0xfa)](),this[_0x497672(0x8b)]=null;}['_startFollowing'](){const _0x1ff247=_0x21389e;var _0xfa3689;(_0xfa3689=this[_0x1ff247(0x8b)])==null||_0xfa3689['dispose'](),this[_0x1ff247(0x161)][_0x1ff247(0x11b)]('following');}[_0x21389e(0x113)](){const _0x521651=_0x21389e;var _0x35c140;this['_status$']['next'](_0x521651(0xc2)),(_0x35c140=this[_0x521651(0x8b)])==null||_0x35c140['dispose'](),this[_0x521651(0x8b)]=null;}[_0x21389e(0xe7)](){const _0x1db87d=_0x21389e;var _0x10ec28;this[_0x1db87d(0x161)]['next'](_0x1db87d(0x139)),(_0x10ec28=this['_commandDisposable'])==null||_0x10ec28[_0x1db87d(0xfa)]();}[_0x21389e(0xc3)](_0x32ea83){const _0x5495de=_0x21389e;if([_0x5495de(0x89),_0x5495de(0x139),'offline'][_0x5495de(0x84)](this['_status'])||!_0x32ea83[_0x5495de(0x9d)]['presenter']||_0x32ea83['data'][_0x5495de(0x88)]===this[_0x5495de(0xb2)][_0x5495de(0x90)]())return;this[_0x5495de(0x10f)]===_0x5495de(0xc2)&&this[_0x5495de(0x149)]();let _0x487206=_0x32ea83[_0x5495de(0x9d)][_0x5495de(0xc0)];Object[_0x5495de(0x112)](_0x487206)[_0x5495de(0x166)](_0x1fc1ad=>{const _0x110d29=_0x5495de;this['_commandService'][_0x110d29(0xc9)](_0x1fc1ad['id'],_0x1fc1ad[_0x110d29(0x11c)]?JSON[_0x110d29(0x103)](_0x1fc1ad[_0x110d29(0x11c)]):null,{'fromCollab':!0x0});});}[_0x21389e(0x170)](){const _0x3db8c2=_0x21389e;var _0x1868d8;this[_0x3db8c2(0x161)][_0x3db8c2(0x11b)](_0x3db8c2(0x10b)),(_0x1868d8=this[_0x3db8c2(0x8b)])==null||_0x1868d8[_0x3db8c2(0xfa)]();}[_0x21389e(0xbf)](){const _0x35fe07=_0x21389e;this['_status$'][_0x35fe07(0x11b)]('idle'),this[_0x35fe07(0xe4)]();}};_0x1841b1=_0x3fc719([_0x13e222(0x2,_0x5d0cde['IConfigService']),_0x13e222(0x3,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x2e5c0f)),_0x13e222(0x4,_0x5d0cde[_0x21389e(0xdb)])],_0x1841b1);function _0x4d1733(){const _0x30a7b0=_0x21389e;let _0x7ba00=(0x0,_0x2d834b[_0x30a7b0(0x111)])(_0x5cd63a),_0x5f23f4=(0x0,_0x2d834b[_0x30a7b0(0x111)])(_0x5d0cde[_0x30a7b0(0x162)]),_0x3daccd=(0x0,_0x2d834b[_0x30a7b0(0xe2)])(()=>_0x5f23f4['getCurrentTypeOfUnit$'](_0x5d0cde[_0x30a7b0(0xe5)][_0x30a7b0(0x16a)]),void 0x0,!0x1,[]),[_0x5b264d,_0x23a044]=(0x0,_0x168f88['useState'])(null),[_0x375c85,_0x2e982f]=(0x0,_0x168f88[_0x30a7b0(0x99)])(_0x30a7b0(0xc2)),_0x33f825=(0x0,_0x168f88[_0x30a7b0(0xad)])(null);return(0x0,_0x168f88['useEffect'])(()=>(_0x3daccd&&_0x7ba00[_0x30a7b0(0xa7)](_0x3daccd[_0x30a7b0(0x121)]())['then'](_0x16ca8d=>{const _0x1e3c50=_0x30a7b0;_0x23a044(_0x16ca8d),_0x33f825['current']=_0x16ca8d[_0x1e3c50(0x173)][_0x1e3c50(0x11f)](_0xa3f613=>{_0x2e982f(_0xa3f613);});}),()=>{const _0x97b8b5=_0x30a7b0;var _0x5e6fa0;(_0x5e6fa0=_0x33f825[_0x97b8b5(0x158)])==null||_0x5e6fa0['unsubscribe'](),_0x33f825['current']=null;}),[_0x3daccd,_0x7ba00]),_0x5b264d?(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x28b9d4['Dropdown'],{'align':_0x30a7b0(0xda),'disabled':_0x375c85===_0x30a7b0(0x10b),'className':_0x30a7b0(0xa0),'overlay':(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x312fb2,{'status':_0x375c85,'coordinator':_0x5b264d}),'children':(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x30a7b0(0x91),{'className':(0x0,_0x28b9d4[_0x30a7b0(0xdf)])(_0x30a7b0(0xed),{'univer-cursor-not-allowed':_0x375c85===_0x30a7b0(0x10b),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x375c85!==_0x30a7b0(0x10b)}),'type':_0x30a7b0(0x91),'children':(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x28fca2,{'className':_0x30a7b0(0x135)})})}):null;}function _0x312fb2(_0x2a143b){const _0x5c6bf8=_0x21389e;let {status:_0x475e20,coordinator:_0x2998e2}=_0x2a143b;switch(_0x475e20){case _0x5c6bf8(0xc2):return(0x0,_0x38b09a[_0x5c6bf8(0xe0)])(_0x28db49,{'coordinator':_0x2998e2});case'following':return(0x0,_0x38b09a[_0x5c6bf8(0xe0)])(_0x3f13a9,{'coordinator':_0x2998e2});case _0x5c6bf8(0x139):return(0x0,_0x38b09a['jsx'])(_0xd0bf7,{'coordinator':_0x2998e2});case _0x5c6bf8(0x10b):return(0x0,_0x38b09a['jsx'])(_0x1d8caf,{});case _0x5c6bf8(0x89):return(0x0,_0x38b09a[_0x5c6bf8(0xe0)])(_0x1457dd,{'coordinator':_0x2998e2});default:return null;}}function _0x28db49(_0x1e9820){const _0x122b7f=_0x21389e;let {coordinator:_0x5c02b9}=_0x1e9820;return(0x0,_0x38b09a[_0x122b7f(0x131)])(_0x38b09a['Fragment'],{'children':[(0x0,_0x38b09a[_0x122b7f(0xe0)])(_0x122b7f(0x11e),{'className':_0x122b7f(0xe9),'children':'Present\x20this\x20document'}),(0x0,_0x38b09a[_0x122b7f(0xe0)])(_0x28b9d4[_0x122b7f(0x128)],{'onClick':()=>_0x5c02b9['tryStartPresenting'](),'children':_0x122b7f(0x9b)})]});}function _0x3f13a9(_0x138cd1){const _0x423d95=_0x21389e;let {coordinator:_0x2408c0}=_0x138cd1;return(0x0,_0x38b09a['jsxs'])(_0x38b09a[_0x423d95(0x8f)],{'children':[(0x0,_0x38b09a[_0x423d95(0xe0)])(_0x423d95(0x11e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x423d95(0x16b)}),(0x0,_0x38b09a['jsx'])(_0x28b9d4[_0x423d95(0x128)],{'onClick':()=>_0x2408c0[_0x423d95(0xeb)](),'children':_0x423d95(0x163)})]});}function _0xd0bf7(_0x623ace){const _0x301408=_0x21389e;let {coordinator:_0x5e80d0}=_0x623ace;return(0x0,_0x38b09a['jsxs'])(_0x38b09a[_0x301408(0x8f)],{'children':[(0x0,_0x38b09a[_0x301408(0xe0)])('div',{'className':_0x301408(0xe9),'children':_0x301408(0x14c)}),(0x0,_0x38b09a['jsx'])(_0x28b9d4['Button'],{'variant':_0x301408(0x171),'onClick':()=>_0x5e80d0[_0x301408(0xd9)](),'children':_0x301408(0x164)})]});}function _0x1457dd(_0x1d5da0){const _0x10390a=_0x21389e;let {coordinator:_0x56229f}=_0x1d5da0;return(0x0,_0x38b09a[_0x10390a(0x131)])(_0x38b09a[_0x10390a(0x8f)],{'children':[(0x0,_0x38b09a[_0x10390a(0xe0)])(_0x10390a(0x11e),{'className':_0x10390a(0xe9),'children':_0x10390a(0xe3)}),(0x0,_0x38b09a[_0x10390a(0xe0)])(_0x28b9d4[_0x10390a(0x128)],{'variant':_0x10390a(0xd1),'onClick':()=>_0x56229f[_0x10390a(0xff)](),'children':'Stop\x20presenting'})]});}function _0x1d8caf(){const _0x45f9d2=_0x21389e;return(0x0,_0x38b09a[_0x45f9d2(0xe0)])(_0x38b09a['Fragment'],{'children':_0x45f9d2(0x120)});}let _0x3a9a8f=class extends _0x5d0cde[_0x21389e(0xf4)]{constructor(_0x29dd51,_0x5bda41){const _0x13527d=_0x21389e;super(),this[_0x13527d(0xf3)]=_0x29dd51,this[_0x13527d(0xe6)]=_0x5bda41,this['_mountLiveShare']();}[_0x21389e(0x97)](){const _0x503e6a=_0x21389e;this['disposeWithMe'](this[_0x503e6a(0xe6)][_0x503e6a(0x15e)](_0x2d834b[_0x503e6a(0x104)]['HEADER_MENU'],()=>(0x0,_0x2d834b['connectInjector'])(_0x4d1733,this[_0x503e6a(0xf3)])));}};_0x3a9a8f=_0x3fc719([_0x13e222(0x0,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x5d0cde[_0x21389e(0x134)])),_0x13e222(0x1,_0x2d834b[_0x21389e(0x81)])],_0x3a9a8f);var _0x24e7a3=_0x21389e(0xa8),_0x3231a4=_0x21389e(0xdc);let _0x211232={},_0x5fc1b=class extends _0x5d0cde[_0x21389e(0xf4)]{constructor(_0x97a05b){const _0x337823=_0x21389e;super(),this[_0x337823(0x13c)]=_0x97a05b,this[_0x337823(0xf0)]();}[_0x21389e(0xf0)](){const _0x2b6d43=_0x21389e;[_0x522b82[_0x2b6d43(0x138)]['id'],_0x522b82[_0x2b6d43(0x115)]['id'],_0x4e0523[_0x2b6d43(0x156)]['id']]['forEach'](_0x34497c=>{const _0x2ab33b=_0x2b6d43;this[_0x2ab33b(0xb9)](this[_0x2ab33b(0x13c)][_0x2ab33b(0xcf)](_0x34497c));});}};_0x5fc1b=_0x3fc719([_0x13e222(0x0,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x2e5c0f))],_0x5fc1b);let _0x3fd576=class extends _0x5d0cde['Plugin']{constructor(_0x24d2a8=_0x211232,_0x494b6e,_0x4c6d6d){const _0x5431ac=_0x21389e;super(),this[_0x5431ac(0x151)]=_0x24d2a8,this[_0x5431ac(0xf3)]=_0x494b6e,this[_0x5431ac(0xb6)]=_0x4c6d6d;let {..._0x2d7437}=(0x0,_0x5d0cde['merge'])({},_0x211232,this[_0x5431ac(0x151)]);this[_0x5431ac(0xb6)][_0x5431ac(0x82)]('live-share.config',_0x2d7437);}[_0x21389e(0x140)](){const _0x155484=_0x21389e;(0x0,_0x5d0cde['registerDependencies'])(this['_injector'],(0x0,_0x5d0cde[_0x155484(0x10c)])([[_0x2e5c0f],[_0x5cd63a],[_0x5fc1b],[_0x3a9a8f]],this[_0x155484(0x151)][_0x155484(0xb3)])),(0x0,_0x5d0cde[_0x155484(0x125)])(this[_0x155484(0xf3)],[[_0x5fc1b]]);}[_0x21389e(0x12f)](){const _0x42d5bc=_0x21389e;(0x0,_0x5d0cde['touchDependencies'])(this[_0x42d5bc(0xf3)],[[_0x3a9a8f]]);}};_0x527e54(_0x3fd576,_0x21389e(0x86),_0x5d0cde[_0x21389e(0xe5)][_0x21389e(0xa5)]),_0x527e54(_0x3fd576,'pluginName',_0x21389e(0xdd)),_0x527e54(_0x3fd576,_0x21389e(0x16f),_0x24e7a3),_0x527e54(_0x3fd576,'version',_0x3231a4),_0x3fd576=_0x3fc719([(0x0,_0x5d0cde[_0x21389e(0xd3)])(_0x2d41d9[_0x21389e(0xf1)]),_0x13e222(0x1,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x5d0cde[_0x21389e(0x134)])),_0x13e222(0x2,_0x5d0cde[_0x21389e(0xec)])],_0x3fd576),Object[_0x21389e(0x93)](_0x267332,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return _0x3a9a8f;}}),_0x267332[_0x21389e(0x165)]=_0x4d1733,Object[_0x21389e(0x93)](_0x267332,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x5cd63a;}}),Object[_0x21389e(0x93)](_0x267332,_0x21389e(0xcd),{'enumerable':!0x0,'get':function(){return _0x1841b1;}}),_0x267332['LiveShareService']=_0x2e5c0f,_0x267332['LiveShareStatus']=_0x24d389,Object[_0x21389e(0x93)](_0x267332,_0x21389e(0xc5),{'enumerable':!0x0,'get':function(){return _0x3fd576;}});}));function _0xb4a8(){const _0x496fd0=['mask','registerSharedOperation','amd','default','attrs','DependentOn','react/jsx-runtime','unsubscribe','9665DKDMkw','@univerjs-pro/collaboration','UniverSheetsUi','startFollowing','end','ICommandService','0.25.1','UNIVER_LIVE_SHARE_PLUGIN','trim','clsx','jsx','univerjs-icon\x20univerjs-icon-','useObservable','You\x27re\x20presenting\x20the\x20document','_fetchOperations','UniverInstanceType','_uiPartsService','_stopFollowing','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','subject','stopFollowing','IConfigService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','shouldShareOperation','51860tNeQBh','_init','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','_injector','Disposable','decorate','UniverProCollaboration','throttleTime','object','event$','dispose','exports','React','@univerjs/ui','from','stopPresenting','DisposableCollection','following','_handleTerminate','parse','BuiltInUIPart','replace','react','getLiveShareCoordinatorSync','http://www.w3.org/2000/svg','InsertSheetMutation','get','offline','mergeOverrideWithDependencies','requireSession','evenodd','_status','reverse','useDependency','values','_beIdle','3594EOqYFO','SetScrollOperation','defIds','UniverCore','BehaviorSubject','_startPresenting','delete','next','params','FOLLOWING','div','subscribe','You\x27are\x20offline.','getUnitId','NOT_FOLLOWING','UniverProCollaborationClient','@univerjs/sheets-ui','touchDependencies','takeUntil','init','Button','_startLiveShareCoordinator','live-share-icon','UniverDesign','_univerInstanceService','_presenter','UniverUi','onRendered','sheet','jsxs','function','CommandType','Injector','univer-size-4','entries','1368pRsgTz','SetZoomRatioOperation','not-following','Subject','add','_liveShareService','OFFLINE','CollaborationEvent','createElement','onStarting','_reporters','xlink:href','string','displayName','1em','currentColor','defs','381MydBdI','_startFollowing','LIVESHARE_REQUEST_HOST','_sharedOperations','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','_collabSessionService','SessionStatus','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','_config','getInitialStates','7171353gqeHBo','call','use','SetWorksheetActiveOperation','clear','current','182VypVIx','colorChannel1','memberID','stringify','7007XLvNmS','registerComponent','fill','LiveShareIcon','_status$','IUniverInstanceService','Stop\x20following','Start\x20following','LiveShare','forEach','LIVESHARE_TERMINATE','idSuffix','@univerjs/design','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','complete','mutations','RxDisposable','packageName','_handleOffline','text','LIVESHARE_OPERATION','status$','children','sessionStatus$','has','find','symbol','IUIPartsService','setConfig','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','includes','none','type','createInstance','presenter','presenting','UniverSheets','_commandDisposable','length','_commandService','CollaborationSessionService','Fragment','getMemberID','button','map','defineProperty','url(#$1','path','ONLINE','_mountLiveShare','@univerjs/core','useState','Module','Start','PRESENTING','data','OPERATION','getStatus','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','parseProtocolChangeset','@univerjs-pro/collaboration-client','getConfig','constructor','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','@univerjs-pro/live-share','getTypeOfUnitDisposed$','58096LDSUgR','pipe','_unitID','useRef','3217014ESYVlR','send','getTypeOfUnitAdded$','asObservable','_collabSession','override','toPrimitive','iterator','_configService','_entities','toDisposable','disposeWithMe','svg','rxjs','UniverIcon','tryStartPresenting','@univerjs/sheets','_handleOnline','operations','_stopPresenting','idle','_handleOperation','Inject','UniverLiveSharePlugin','IDLE','_handleNewHost','operators','executeCommand','4012854WBGIwL','rxjs/operators','tag','LiveShareCoordinator'];_0xb4a8=function(){return _0x496fd0;};return _0xb4a8();}
1
+ function _0xe994(){const _0x987662=['UniverProCollaborationClient','Stop\x20presenting','16uwKokI','children','_handleNewChangeSets','stopPresenting','Disposable','none','react','add','onCommandExecuted','@univerjs/sheets-ui','has','sheet','@univerjs/core','live-share.config','_liveShareService','values','xlink:href','unit','Fragment','stringify','getValue','DesktopLiveShareController','delete','UniverSheets','_reporters','_commandDisposable','clsx','params','type','_handleOffline','_configService','button','getLiveShareCoordinator','createInstance','svg','@univerjs-pro/live-share','BuiltInUIPart','registerComponent','6FzaYBX','find','Module','391535lseDbo','_injector','replace','pipe','_collabSessionService','getOwnPropertyDescriptor','_univerInstanceService','OFFLINE','displayName','getConfig','2228728wHrBlr','idle','connectInjector','defs','SessionStatus','UniverUi','@univerjs-pro/collaboration-client','reverse','You\x27re\x20following\x20the\x20presenter','Start','symbol','setConfig','packageName','UniverLiveSharePlugin','current','914946NqSoyx','IUIPartsService','_stopFollowing','registerSharedOperation','CollaborationSessionService','Subject','LIVESHARE_OPERATION','presenting','fill','attrs','jsx','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','assign','PRESENTING','UNIVER_SHEET','_handleOnline','url(#$1','iterator','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','UniverProLiveShare','React','not-following','send','LiveShareIcon','Button','IConfigService','_unitID','includes','memberID','get','shouldShareOperation','_status','_startLiveShareCoordinator','LiveShare','offline','div','subject','_config','react/jsx-runtime','14267220RXjDie','trim','SetWorksheetActiveOperation','constructor','LiveShareStatus','2301894mZLxpZ','complete','univerjs-icon\x20univerjs-icon-','default','amd','_entities','pluginName','sessionStatus$','entries','set','UniverDesign','decorate','idSuffix','createElement','jsxs','subscribe','_startPresenting','object','SAME_OPERATION_SHARE_INTERVAL','SetZoomRatioOperation','InsertSheetMutation','forEach','ONLINE','univer-size-4','call','Dropdown','status$','_commandService','FOLLOWING','path','disposeWithMe','then','defineProperty','dispose','parse','Stop\x20following','getInitialStates','function','use','defIds','21OpjYBD','unsubscribe','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','live-share-icon','prototype','colorChannel1','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','UniverCollaborationClientPlugin','0\x200\x2017\x2017','DependentOn','_init','length','operators','2691672oHTBEG','useRef','OPERATION','_startFollowing','presenter','unitId','asObservable','useDependency','toDisposable','following','@univerjs/sheets','string','_collabSession','requireSession','onRendered','IDLE','getMemberID','You\x27re\x20presenting\x20the\x20document','Start\x20following','699914sMCCXW','Plugin','rxjs/operators','DisposableCollection','1em','version','_handleOperation','init','_status$','tag','random','useEffect','Present\x20this\x20document','UniverIcon','_stopPresenting','CollaborationEvent','mask','executeCommand','rxjs','LIVESHARE_TERMINATE','SetScrollOperation','UniverSheetsUi','useObservable','toStringTag','@univerjs-pro/collaboration','_handleNewHost','UniverInstanceType','data','mutations','toString','toPrimitive','dispose$','Inject','startFollowing','forwardRef','UniverProCollaboration','_sharedOperations','0.25.2','stopFollowing','tryStartPresenting','operations','_presenter','@univerjs/ui','_mountLiveShare','getUnitId','map','_handleTerminate','@univerjs/design','_uiPartsService','ICommandService','useState','evenodd','Injector','IUniverInstanceService','getLiveShareCoordinatorSync','takeUntil','_fetchOperations','You\x27re\x20not\x20following\x20the\x20presenter','merge','clear'];_0xe994=function(){return _0x987662;};return _0xe994();}function _0x455a(_0x33051b,_0x270279){_0x33051b=_0x33051b-0x171;const _0xe9947f=_0xe994();let _0x455a22=_0xe9947f[_0x33051b];return _0x455a22;}(function(_0x29a234,_0x536987){const _0x5c52f9=_0x455a,_0x883938=_0x29a234();while(!![]){try{const _0x3d1220=parseInt(_0x5c52f9(0x1b4))/0x1+parseInt(_0x5c52f9(0x218))/0x2*(parseInt(_0x5c52f9(0x234))/0x3)+-parseInt(_0x5c52f9(0x1f2))/0x4*(parseInt(_0x5c52f9(0x21b))/0x5)+-parseInt(_0x5c52f9(0x1a1))/0x6+parseInt(_0x5c52f9(0x194))/0x7*(parseInt(_0x5c52f9(0x225))/0x8)+parseInt(_0x5c52f9(0x263))/0x9+-parseInt(_0x5c52f9(0x25e))/0xa;if(_0x3d1220===_0x536987)break;else _0x883938['push'](_0x883938['shift']());}catch(_0x29144b){_0x883938['push'](_0x883938['shift']());}}}(_0xe994,0x7e6cd),function(_0x1cec91,_0xbad4a6){const _0x192d5d=_0x455a;typeof exports==_0x192d5d(0x17d)&&typeof module<'u'?_0xbad4a6(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==_0x192d5d(0x191)&&define[_0x192d5d(0x267)]?define(['exports',_0x192d5d(0x1fe),_0x192d5d(0x1de),_0x192d5d(0x1e3),_0x192d5d(0x1f8),_0x192d5d(0x1cc),_0x192d5d(0x22b),_0x192d5d(0x1ab),_0x192d5d(0x1c6),_0x192d5d(0x1b6),_0x192d5d(0x25d),_0x192d5d(0x1fb)],_0xbad4a6):(_0x1cec91=typeof globalThis<'u'?globalThis:_0x1cec91||self,_0xbad4a6(_0x1cec91[_0x192d5d(0x24a)]={},_0x1cec91['UniverCore'],_0x1cec91[_0x192d5d(0x22a)],_0x1cec91[_0x192d5d(0x176)],_0x1cec91[_0x192d5d(0x24b)],_0x1cec91[_0x192d5d(0x1d7)],_0x1cec91[_0x192d5d(0x1f0)],_0x1cec91[_0x192d5d(0x209)],_0x1cec91[_0x192d5d(0x1c6)],_0x1cec91['rxjs'][_0x192d5d(0x1a0)],_0x1cec91[_0x192d5d(0x24b)],_0x1cec91[_0x192d5d(0x1c9)]));}(this,function(_0x274fe8,_0x13c583,_0x5888a3,_0xc721fb,_0x106904,_0xfdcfde,_0x339d47,_0x4e3dd1,_0x1be2fa,_0xc7e41,_0xc22266,_0x11f085){const _0x37f4aa=_0x455a;Object[_0x37f4aa(0x18c)](_0x274fe8,Symbol[_0x37f4aa(0x1cb)],{'value':_0x37f4aa(0x21a)});function _0x1e9677({ref:_0x4b86dc,..._0x1c3018}){const _0x6fc10d=_0x37f4aa;let {icon:_0x4d8f80,id:_0x4fec05,className:_0x1a57fb,extend:_0x53ec5f,..._0x4f3105}=_0x1c3018,_0x2f8e81=(_0x6fc10d(0x265)+_0x4fec05+'\x20'+(_0x1a57fb||''))[_0x6fc10d(0x25f)](),_0x58f1a4=(0x0,_0x106904[_0x6fc10d(0x1a2)])('_'+_0x37352e());return _0x3ea004(_0x4d8f80,''+_0x4fec05,{'defIds':_0x4d8f80[_0x6fc10d(0x193)],'idSuffix':_0x58f1a4[_0x6fc10d(0x233)]},{'ref':_0x4b86dc,'className':_0x2f8e81,..._0x4f3105},_0x53ec5f);}function _0x3ea004(_0x2516bf,_0x67311e,_0x5f5d7d,_0x387993,_0x5c3ff2){const _0x1c2b1d=_0x37f4aa;return(0x0,_0x106904['createElement'])(_0x2516bf[_0x1c2b1d(0x1bd)],{'key':_0x67311e,..._0x49daeb(_0x2516bf,_0x5f5d7d,_0x5c3ff2),..._0x387993},(_0x38f8cf(_0x2516bf,_0x5f5d7d)[_0x1c2b1d(0x1f3)]||[])[_0x1c2b1d(0x1e1)]((_0x31f2bd,_0x236b6f)=>_0x3ea004(_0x31f2bd,_0x67311e+'-'+_0x2516bf['tag']+'-'+_0x236b6f,_0x5f5d7d,void 0x0,_0x5c3ff2)));}function _0x49daeb(_0x18b0c0,_0x1a4704,_0x56e99c){const _0x3b6c1d=_0x37f4aa;let _0x51d369={..._0x18b0c0[_0x3b6c1d(0x23d)]};_0x56e99c!=null&&_0x56e99c[_0x3b6c1d(0x199)]&&_0x51d369[_0x3b6c1d(0x23c)]===_0x3b6c1d(0x199)&&(_0x51d369[_0x3b6c1d(0x23c)]=_0x56e99c[_0x3b6c1d(0x199)]),_0x18b0c0['tag']===_0x3b6c1d(0x1c4)&&_0x51d369['id']&&(_0x51d369['id']+=_0x1a4704['idSuffix']),Object[_0x3b6c1d(0x174)](_0x51d369)['forEach'](([_0x281098,_0x5e5f4f])=>{const _0x3985bf=_0x3b6c1d;_0x281098==='mask'&&typeof _0x5e5f4f=='string'&&(_0x51d369[_0x281098]=_0x5e5f4f['replace'](/url\(#(.*)\)/,_0x3985bf(0x244)+_0x1a4704[_0x3985bf(0x178)]+')'));});let {defIds:_0x3c0f3f}=_0x1a4704;return!_0x3c0f3f||_0x3c0f3f[_0x3b6c1d(0x19f)]===0x0?_0x51d369:(_0x18b0c0[_0x3b6c1d(0x1bd)]===_0x3b6c1d(0x192)&&_0x51d369[_0x3b6c1d(0x202)]&&(_0x51d369[_0x3b6c1d(0x202)]+=_0x1a4704[_0x3b6c1d(0x178)]),Object[_0x3b6c1d(0x174)](_0x51d369)['forEach'](([_0xe8b4fe,_0x592c49])=>{const _0x342603=_0x3b6c1d;typeof _0x592c49==_0x342603(0x1ac)&&(_0x51d369[_0xe8b4fe]=_0x592c49[_0x342603(0x21d)](/url\(#(.*)\)/,'url(#$1'+_0x1a4704[_0x342603(0x178)]+')'));}),_0x51d369);}function _0x38f8cf(_0x3137e4,_0x43be7f){const _0x48bd4d=_0x37f4aa;var _0x608920;let {defIds:_0x4560b9}=_0x43be7f;return!_0x4560b9||_0x4560b9[_0x48bd4d(0x19f)]===0x0?_0x3137e4:_0x3137e4[_0x48bd4d(0x1bd)]===_0x48bd4d(0x228)&&(_0x608920=_0x3137e4[_0x48bd4d(0x1f3)])!=null&&_0x608920[_0x48bd4d(0x19f)]?{..._0x3137e4,'children':_0x3137e4[_0x48bd4d(0x1f3)][_0x48bd4d(0x1e1)](_0x22ac37=>typeof _0x22ac37[_0x48bd4d(0x23d)]['id']==_0x48bd4d(0x1ac)&&_0x4560b9&&_0x4560b9['includes'](_0x22ac37[_0x48bd4d(0x23d)]['id'])?{..._0x22ac37,'attrs':{..._0x22ac37[_0x48bd4d(0x23d)],'id':_0x22ac37['attrs']['id']+_0x43be7f['idSuffix']}}:_0x22ac37)}:_0x3137e4;}function _0x37352e(){const _0x1be820=_0x37f4aa;return Math[_0x1be820(0x1be)]()[_0x1be820(0x1d1)](0x24)['substring'](0x2,0x8);}_0x1e9677['displayName']=_0x37f4aa(0x1c1);let _0x4eac57={'tag':_0x37f4aa(0x214),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x37f4aa(0x1f7),'viewBox':_0x37f4aa(0x19c),'width':_0x37f4aa(0x1b8),'height':'1em'},'children':[{'tag':_0x37f4aa(0x189),'attrs':{'fill':'currentColor','d':_0x37f4aa(0x196)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x37f4aa(0x19a),'fillRule':_0x37f4aa(0x1e7),'clipRule':_0x37f4aa(0x1e7)}}]},_0x352e05=(0x0,_0x106904[_0x37f4aa(0x1d6)])(function(_0x3940c2,_0x228c64){const _0x16c610=_0x37f4aa;return(0x0,_0x106904[_0x16c610(0x179)])(_0x1e9677,Object[_0x16c610(0x240)]({},_0x3940c2,{'id':_0x16c610(0x197),'ref':_0x228c64,'icon':_0x4eac57}));});_0x352e05[_0x37f4aa(0x223)]=_0x37f4aa(0x24e);function _0x1c7a31(_0x4edae5){'@babel/helpers - typeof';const _0x149c32=_0x37f4aa;return _0x1c7a31=typeof Symbol==_0x149c32(0x191)&&typeof Symbol[_0x149c32(0x245)]==_0x149c32(0x22f)?function(_0x1a8ddf){return typeof _0x1a8ddf;}:function(_0x6fdfd7){const _0x53f8fb=_0x149c32;return _0x6fdfd7&&typeof Symbol=='function'&&_0x6fdfd7[_0x53f8fb(0x261)]===Symbol&&_0x6fdfd7!==Symbol[_0x53f8fb(0x198)]?'symbol':typeof _0x6fdfd7;},_0x1c7a31(_0x4edae5);}function _0x59a3b3(_0x151fce,_0x3a6ec1){const _0x3163f5=_0x37f4aa;if(_0x1c7a31(_0x151fce)!='object'||!_0x151fce)return _0x151fce;var _0x46508b=_0x151fce[Symbol[_0x3163f5(0x1d2)]];if(_0x46508b!==void 0x0){var _0x2bd351=_0x46508b[_0x3163f5(0x184)](_0x151fce,_0x3a6ec1||_0x3163f5(0x266));if(_0x1c7a31(_0x2bd351)!=_0x3163f5(0x17d))return _0x2bd351;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3a6ec1==='string'?String:Number)(_0x151fce);}function _0x49cece(_0x57eb84){const _0x3b3aa7=_0x37f4aa;var _0x5af1f9=_0x59a3b3(_0x57eb84,_0x3b3aa7(0x1ac));return _0x1c7a31(_0x5af1f9)==_0x3b3aa7(0x22f)?_0x5af1f9:_0x5af1f9+'';}function _0x3e6b7c(_0x5ed25f,_0x5ac619,_0x3a9257){const _0x30c0d9=_0x37f4aa;return(_0x5ac619=_0x49cece(_0x5ac619))in _0x5ed25f?Object[_0x30c0d9(0x18c)](_0x5ed25f,_0x5ac619,{'value':_0x3a9257,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5ed25f[_0x5ac619]=_0x3a9257,_0x5ed25f;}var _0x1be41b=class extends _0x13c583['Disposable']{constructor(..._0x29b15c){super(..._0x29b15c),_0x3e6b7c(this,'_sharedOperations',new Set()),_0x3e6b7c(this,'_reporters',new Set());}[_0x37f4aa(0x237)](_0x3f8789){const _0x2110f7=_0x37f4aa;return this[_0x2110f7(0x1d8)][_0x2110f7(0x1f9)](_0x3f8789),(0x0,_0x13c583['toDisposable'])(()=>this[_0x2110f7(0x1d8)][_0x2110f7(0x208)](_0x3f8789));}['registerInitialStateReporter'](_0x10a6be){const _0x132cd2=_0x37f4aa;return this[_0x132cd2(0x20a)]['add'](_0x10a6be),(0x0,_0x13c583[_0x132cd2(0x1a9)])(()=>this[_0x132cd2(0x20a)][_0x132cd2(0x208)](_0x10a6be));}[_0x37f4aa(0x255)](_0x32808d){const _0x476a1a=_0x37f4aa;return this[_0x476a1a(0x1d8)][_0x476a1a(0x1fc)](_0x32808d);}[_0x37f4aa(0x190)](_0x520143){const _0x2e4097=_0x37f4aa;return Array['from'](this[_0x2e4097(0x20a)])[_0x2e4097(0x1e1)](_0x4c7534=>_0x4c7534(_0x520143));}};function _0x48abe6(_0x167820,_0x1f309c){return function(_0x19168e,_0x1b8946){_0x1f309c(_0x19168e,_0x1b8946,_0x167820);};}function _0x5a4a5f(_0x480c5d,_0x4c74cb,_0x5bc6a4,_0x4a406f){const _0x4703d3=_0x37f4aa;var _0x22cc1e=arguments[_0x4703d3(0x19f)],_0x14c186=_0x22cc1e<0x3?_0x4c74cb:_0x4a406f===null?_0x4a406f=Object[_0x4703d3(0x220)](_0x4c74cb,_0x5bc6a4):_0x4a406f,_0x588250;if(typeof Reflect==_0x4703d3(0x17d)&&typeof Reflect[_0x4703d3(0x177)]==_0x4703d3(0x191))_0x14c186=Reflect['decorate'](_0x480c5d,_0x4c74cb,_0x5bc6a4,_0x4a406f);else{for(var _0x205adf=_0x480c5d[_0x4703d3(0x19f)]-0x1;_0x205adf>=0x0;_0x205adf--)(_0x588250=_0x480c5d[_0x205adf])&&(_0x14c186=(_0x22cc1e<0x3?_0x588250(_0x14c186):_0x22cc1e>0x3?_0x588250(_0x4c74cb,_0x5bc6a4,_0x14c186):_0x588250(_0x4c74cb,_0x5bc6a4))||_0x14c186);}return _0x22cc1e>0x3&&_0x14c186&&Object[_0x4703d3(0x18c)](_0x4c74cb,_0x5bc6a4,_0x14c186),_0x14c186;}let _0x2b8d4a=class extends _0x13c583['RxDisposable']{constructor(_0x51e660,_0x3678ed,_0x16f326){const _0x4a44a7=_0x37f4aa;super(),this['_univerInstanceService']=_0x51e660,this['_injector']=_0x3678ed,this[_0x4a44a7(0x21f)]=_0x16f326,_0x3e6b7c(this,_0x4a44a7(0x171),new Map()),this[_0x4a44a7(0x19e)]();}async['getLiveShareCoordinator'](_0x701879){const _0x3acebb=_0x37f4aa;return this[_0x3acebb(0x171)][_0x3acebb(0x1fc)](_0x701879)||await this['_startLiveShareCoordinator'](_0x701879),this['_entities'][_0x3acebb(0x254)](_0x701879);}[_0x37f4aa(0x1ea)](_0x4a2778){const _0x1e0e2a=_0x37f4aa;var _0x264b8a;return(_0x264b8a=this[_0x1e0e2a(0x171)][_0x1e0e2a(0x254)](_0x4a2778))==null?null:_0x264b8a;}[_0x37f4aa(0x19e)](){const _0x7174da=_0x37f4aa;this[_0x7174da(0x221)]['getTypeOfUnitAdded$'](_0x13c583['UniverInstanceType']['UNIVER_SHEET'])[_0x7174da(0x21e)]((0x0,_0xc7e41['takeUntil'])(this[_0x7174da(0x1d3)]))['subscribe'](async _0x1ccc61=>{const _0x3ada53=_0x7174da;let _0xcafd77=_0x1ccc61[_0x3ada53(0x203)][_0x3ada53(0x1e0)]();this[_0x3ada53(0x171)][_0x3ada53(0x1fc)](_0xcafd77)||this['_startLiveShareCoordinator'](_0xcafd77);}),this[_0x7174da(0x221)][_0x7174da(0x249)](_0x13c583[_0x7174da(0x1ce)]['UNIVER_SHEET'])[_0x7174da(0x21e)]((0x0,_0xc7e41['takeUntil'])(this[_0x7174da(0x1d3)]))[_0x7174da(0x17b)](_0x28fe3a=>{const _0x50ca18=_0x7174da;let _0x2572e0=_0x28fe3a[_0x50ca18(0x1e0)](),_0x18095d=this[_0x50ca18(0x171)][_0x50ca18(0x254)](_0x2572e0);_0x18095d==null||_0x18095d[_0x50ca18(0x18d)]();});}async[_0x37f4aa(0x257)](_0x458e45){const _0xf81ff9=_0x37f4aa;let _0x48a3c6=await this[_0xf81ff9(0x21f)][_0xf81ff9(0x1ae)](_0x458e45),_0x1682e7=this['_injector'][_0xf81ff9(0x213)](_0x5c4420,_0x458e45,_0x48a3c6);return _0x1682e7[_0xf81ff9(0x1bb)](),this[_0xf81ff9(0x171)][_0xf81ff9(0x175)](_0x458e45,_0x1682e7),_0x1682e7;}};_0x2b8d4a=_0x5a4a5f([_0x48abe6(0x0,_0x13c583[_0x37f4aa(0x1e9)]),_0x48abe6(0x1,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x13c583[_0x37f4aa(0x1e8)])),_0x48abe6(0x2,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x339d47[_0x37f4aa(0x238)]))],_0x2b8d4a);let _0x23de74=function(_0xd4bedc){const _0x479a87=_0x37f4aa;return _0xd4bedc[_0x479a87(0x222)]=_0x479a87(0x259),_0xd4bedc[_0x479a87(0x1b0)]=_0x479a87(0x226),_0xd4bedc[_0x479a87(0x188)]=_0x479a87(0x1aa),_0xd4bedc['NOT_FOLLOWING']=_0x479a87(0x24c),_0xd4bedc[_0x479a87(0x241)]='presenting',_0xd4bedc;}({}),_0x5c4420=class extends _0x13c583['RxDisposable']{get[_0x37f4aa(0x256)](){const _0x18430f=_0x37f4aa;return this['_status$'][_0x18430f(0x206)]();}constructor(_0xbeb899,_0x27440a,_0x441623,_0x2b8640,_0x3428f6){const _0x3906e4=_0x37f4aa;super(),this[_0x3906e4(0x251)]=_0xbeb899,this[_0x3906e4(0x1ad)]=_0x27440a,this['_configService']=_0x441623,this['_liveShareService']=_0x2b8640,this['_commandService']=_0x3428f6,_0x3e6b7c(this,'_status$',new _0x1be2fa['BehaviorSubject']('idle')),_0x3e6b7c(this,'status$',this[_0x3906e4(0x1bc)][_0x3906e4(0x1a7)]()),_0x3e6b7c(this,'_init',!0x1),_0x3e6b7c(this,_0x3906e4(0x20b),null),_0x3e6b7c(this,'_presenter',null);}[_0x37f4aa(0x18d)](){const _0x5adac0=_0x37f4aa;var _0xdb629f;(_0xdb629f=this[_0x5adac0(0x20b)])==null||_0xdb629f[_0x5adac0(0x18d)](),this[_0x5adac0(0x1bc)][_0x5adac0(0x246)](_0x5adac0(0x226)),this[_0x5adac0(0x1bc)]['complete']();}['getStatus'](){const _0x2c60c7=_0x37f4aa;return this[_0x2c60c7(0x256)];}['init'](){const _0x323e0e=_0x37f4aa;this[_0x323e0e(0x19e)]||(this[_0x323e0e(0x19e)]=!0x0,this[_0x323e0e(0x1ad)][_0x323e0e(0x173)][_0x323e0e(0x21e)]((0x0,_0xc7e41[_0x323e0e(0x1eb)])(this['dispose$']))['subscribe'](_0x5288e9=>{const _0x65c1c7=_0x323e0e;switch(_0x5288e9){case _0x339d47['SessionStatus'][_0x65c1c7(0x222)]:this[_0x65c1c7(0x20f)]();break;case _0x339d47[_0x65c1c7(0x229)][_0x65c1c7(0x182)]:this[_0x65c1c7(0x243)]();break;default:}}),this[_0x323e0e(0x1ad)]['event$'][_0x323e0e(0x21e)]((0x0,_0xc7e41['takeUntil'])(this['dispose$']))[_0x323e0e(0x17b)](_0x3e055d=>{const _0x570637=_0x323e0e;let {eventID:_0x189276}=_0x3e055d;switch(_0x189276){case _0xfdcfde['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x570637(0x1cd)](_0x3e055d);break;case _0xfdcfde[_0x570637(0x1c3)]['LIVESHARE_OPERATION']:this[_0x570637(0x1ba)](_0x3e055d);break;case _0xfdcfde['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x570637(0x1e2)]();break;case _0xfdcfde[_0x570637(0x1c3)]['NEW_CHANGESETS']:this[_0x570637(0x1f4)](_0x3e055d);break;default:}}));}[_0x37f4aa(0x1db)](){const _0x3cf41b=_0x37f4aa;this['_collabSession'][_0x3cf41b(0x24d)]({'eventID':_0xfdcfde[_0x3cf41b(0x1c3)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3cf41b(0x251)],'userID':this[_0x3cf41b(0x1ad)][_0x3cf41b(0x1b1)]()}},this[_0x3cf41b(0x251)]);}['stopPresenting'](){const _0x36d573=_0x37f4aa;this[_0x36d573(0x256)]===_0x36d573(0x23b)&&(this[_0x36d573(0x1bc)][_0x36d573(0x246)](_0x36d573(0x226)),this[_0x36d573(0x1ad)]['send']({'eventID':_0xfdcfde[_0x36d573(0x1c3)][_0x36d573(0x1c7)],'data':{'unitID':this[_0x36d573(0x251)]}},this[_0x36d573(0x251)]));}[_0x37f4aa(0x1d5)](){const _0x3dfa8c=_0x37f4aa;this[_0x3dfa8c(0x256)]===_0x3dfa8c(0x24c)&&(this[_0x3dfa8c(0x1bc)][_0x3dfa8c(0x246)](_0x3dfa8c(0x1aa)),this['_startFollowing']());}[_0x37f4aa(0x1da)](){const _0x2f89c9=_0x37f4aa;this[_0x2f89c9(0x256)]==='following'&&this[_0x2f89c9(0x236)]();}[_0x37f4aa(0x1cd)](_0x15c0ad){const _0x204cce=_0x37f4aa;let {presenter:_0x4179ee}=_0x15c0ad['data'],_0x49853c=this[_0x204cce(0x1ad)][_0x204cce(0x1b1)]();this['_presenter']=_0x4179ee,_0x4179ee===_0x49853c?(this[_0x204cce(0x236)](),this[_0x204cce(0x17c)]()):this[_0x204cce(0x256)]!==_0x204cce(0x24c)&&(this[_0x204cce(0x1c2)](),this[_0x204cce(0x1a4)]());}[_0x37f4aa(0x1ec)](){const _0x5bb37f=_0x37f4aa;let _0x54013a={'eventID':_0xfdcfde[_0x5bb37f(0x1c3)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5bb37f(0x1ad)][_0x5bb37f(0x24d)](_0x54013a,this['_unitID']);}['_handleTerminate'](){this['_presenter']=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x37f4aa(0x1f4)](_0x369395){const _0x112f5e=_0x37f4aa;if(this[_0x112f5e(0x256)]==='following'&&this[_0x112f5e(0x1dd)]===_0x369395[_0x112f5e(0x1cf)][_0x112f5e(0x253)]){let _0x2c3c13=(0x0,_0xfdcfde['parseProtocolChangeset'])(_0x369395[_0x112f5e(0x1cf)])[_0x112f5e(0x1d0)][_0x112f5e(0x22c)]()[_0x112f5e(0x219)](_0x38ce4e=>_0x38ce4e['id']===_0x4e3dd1[_0x112f5e(0x180)]['id']);if(_0x2c3c13){let _0x241d1b=_0x2c3c13['params'][_0x112f5e(0x1a6)],_0x11ac50=_0x2c3c13[_0x112f5e(0x20d)][_0x112f5e(0x1fd)]['id'];setTimeout(()=>{const _0x3e8583=_0x112f5e;this[_0x3e8583(0x187)][_0x3e8583(0x1c5)](_0x4e3dd1['SetWorksheetActiveOperation']['id'],{'unitId':_0x241d1b,'subUnitId':_0x11ac50},{'fromCollab':!0x0});});}}}[_0x37f4aa(0x17c)](){const _0x979fab=_0x37f4aa;var _0x474e8d;(_0x474e8d=this[_0x979fab(0x20b)])==null||_0x474e8d['dispose'](),this[_0x979fab(0x1bc)][_0x979fab(0x246)](_0x979fab(0x23b));let _0x5de98a=new Map(),_0x25bc33=this[_0x979fab(0x20b)]=new _0x13c583[(_0x979fab(0x1b7))]();_0x25bc33[_0x979fab(0x1f9)]((0x0,_0x13c583['toDisposable'])(()=>{const _0x3a75ef=_0x979fab;_0x5de98a[_0x3a75ef(0x181)](({subject:_0x3580a1,subscription:_0x147db5})=>{const _0xd58c73=_0x3a75ef;_0x147db5[_0xd58c73(0x195)](),_0x3580a1[_0xd58c73(0x264)]();}),_0x5de98a[_0x3a75ef(0x1ef)]();})),_0x25bc33[_0x979fab(0x1f9)](this[_0x979fab(0x187)][_0x979fab(0x1fa)](_0x1effe4=>{const _0x4ee6d5=_0x979fab;if(_0x1effe4[_0x4ee6d5(0x20e)]!==_0x13c583['CommandType'][_0x4ee6d5(0x1a3)]||!this[_0x4ee6d5(0x200)][_0x4ee6d5(0x255)](_0x1effe4['id']))return;let {id:_0x28955e}=_0x1effe4,_0x10ccdb;if(_0x5de98a['has'](_0x28955e))_0x10ccdb=_0x5de98a[_0x4ee6d5(0x254)](_0x28955e)[_0x4ee6d5(0x25b)];else{var _0x38c083;_0x10ccdb=new _0x1be2fa[(_0x4ee6d5(0x239))]();let _0x1d369f=_0x10ccdb[_0x4ee6d5(0x21e)]((0x0,_0xc7e41['throttleTime'])((_0x38c083=this[_0x4ee6d5(0x210)][_0x4ee6d5(0x224)](_0x4ee6d5(0x17e)))==null?0xc8:_0x38c083,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ee6d5(0x17b)](_0x2ff117=>{const _0x1335d2=_0x4ee6d5;this[_0x1335d2(0x1ad)][_0x1335d2(0x24d)]({'eventID':_0xfdcfde[_0x1335d2(0x1c3)][_0x1335d2(0x23a)],'data':{'unitID':this['_unitID'],'operations':{[_0x2ff117['id']]:{'id':_0x2ff117['id'],'params':JSON[_0x1335d2(0x205)](_0x2ff117[_0x1335d2(0x20d)])}}}},this[_0x1335d2(0x251)]);});_0x5de98a[_0x4ee6d5(0x175)](_0x28955e,{'subject':_0x10ccdb,'subscription':_0x1d369f});}_0x10ccdb['next'](_0x1effe4);})),this[_0x979fab(0x200)][_0x979fab(0x190)](this[_0x979fab(0x251)])[_0x979fab(0x181)](_0x3dc176=>this[_0x979fab(0x1ad)][_0x979fab(0x24d)]({'eventID':_0xfdcfde['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x979fab(0x251)],'operations':{[_0x3dc176['id']]:{'id':_0x3dc176['id'],'params':JSON[_0x979fab(0x205)](_0x3dc176[_0x979fab(0x20d)])}}}},this[_0x979fab(0x251)]));}['_stopPresenting'](){const _0x183335=_0x37f4aa;var _0x13522e;this['_status$'][_0x183335(0x246)](_0x183335(0x226)),(_0x13522e=this[_0x183335(0x20b)])==null||_0x13522e['dispose'](),this[_0x183335(0x20b)]=null;}[_0x37f4aa(0x1a4)](){const _0x37574e=_0x37f4aa;var _0x2918d4;(_0x2918d4=this[_0x37574e(0x20b)])==null||_0x2918d4['dispose'](),this['_status$'][_0x37574e(0x246)](_0x37574e(0x1aa));}['_beIdle'](){const _0x33aecf=_0x37f4aa;var _0x43be0b;this[_0x33aecf(0x1bc)][_0x33aecf(0x246)](_0x33aecf(0x226)),(_0x43be0b=this[_0x33aecf(0x20b)])==null||_0x43be0b[_0x33aecf(0x18d)](),this['_commandDisposable']=null;}[_0x37f4aa(0x236)](){const _0xf6180c=_0x37f4aa;var _0xfa81ad;this['_status$'][_0xf6180c(0x246)](_0xf6180c(0x24c)),(_0xfa81ad=this['_commandDisposable'])==null||_0xfa81ad[_0xf6180c(0x18d)]();}[_0x37f4aa(0x1ba)](_0x47daeb){const _0x27913e=_0x37f4aa;if([_0x27913e(0x23b),_0x27913e(0x24c),'offline'][_0x27913e(0x252)](this[_0x27913e(0x256)])||!_0x47daeb['data'][_0x27913e(0x1a5)]||_0x47daeb[_0x27913e(0x1cf)][_0x27913e(0x1a5)]===this[_0x27913e(0x1ad)][_0x27913e(0x1b1)]())return;this['_status']==='idle'&&this[_0x27913e(0x1a4)]();let _0x4b88c0=_0x47daeb[_0x27913e(0x1cf)][_0x27913e(0x1dc)];Object[_0x27913e(0x201)](_0x4b88c0)[_0x27913e(0x181)](_0x5ea05c=>{const _0x27f978=_0x27913e;this[_0x27f978(0x187)][_0x27f978(0x1c5)](_0x5ea05c['id'],_0x5ea05c[_0x27f978(0x20d)]?JSON[_0x27f978(0x18e)](_0x5ea05c[_0x27f978(0x20d)]):null,{'fromCollab':!0x0});});}[_0x37f4aa(0x20f)](){const _0x327aa2=_0x37f4aa;var _0x292652;this['_status$'][_0x327aa2(0x246)](_0x327aa2(0x259)),(_0x292652=this['_commandDisposable'])==null||_0x292652[_0x327aa2(0x18d)]();}[_0x37f4aa(0x243)](){const _0x56f325=_0x37f4aa;this[_0x56f325(0x1bc)][_0x56f325(0x246)](_0x56f325(0x226)),this[_0x56f325(0x1ec)]();}};_0x5c4420=_0x5a4a5f([_0x48abe6(0x2,_0x13c583['IConfigService']),_0x48abe6(0x3,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x1be41b)),_0x48abe6(0x4,_0x13c583[_0x37f4aa(0x1e5)])],_0x5c4420);function _0x2fd837(){const _0x1d897f=_0x37f4aa;let _0x375e3d=(0x0,_0x5888a3['useDependency'])(_0x2b8d4a),_0x5e8ccc=(0x0,_0x5888a3[_0x1d897f(0x1a8)])(_0x13c583[_0x1d897f(0x1e9)]),_0x430b2e=(0x0,_0x5888a3[_0x1d897f(0x1ca)])(()=>_0x5e8ccc[_0x1d897f(0x248)](_0x13c583[_0x1d897f(0x1ce)][_0x1d897f(0x242)]),void 0x0,!0x1,[]),[_0x4a8b69,_0x5ed867]=(0x0,_0x106904['useState'])(null),[_0x32dc19,_0x413ed7]=(0x0,_0x106904[_0x1d897f(0x1e6)])(_0x1d897f(0x226)),_0x128d35=(0x0,_0x106904[_0x1d897f(0x1a2)])(null);return(0x0,_0x106904[_0x1d897f(0x1bf)])(()=>(_0x430b2e&&_0x375e3d[_0x1d897f(0x212)](_0x430b2e[_0x1d897f(0x1e0)]())[_0x1d897f(0x18b)](_0x2f29a2=>{const _0x4c8789=_0x1d897f;_0x5ed867(_0x2f29a2),_0x128d35[_0x4c8789(0x233)]=_0x2f29a2[_0x4c8789(0x186)]['subscribe'](_0x38fd92=>{_0x413ed7(_0x38fd92);});}),()=>{const _0x1a053c=_0x1d897f;var _0x280271;(_0x280271=_0x128d35[_0x1a053c(0x233)])==null||_0x280271[_0x1a053c(0x195)](),_0x128d35['current']=null;}),[_0x430b2e,_0x375e3d]),_0x4a8b69?(0x0,_0xc22266[_0x1d897f(0x23e)])(_0xc721fb[_0x1d897f(0x185)],{'align':'end','disabled':_0x32dc19===_0x1d897f(0x259),'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,_0xc22266['jsx'])(_0x35700c,{'status':_0x32dc19,'coordinator':_0x4a8b69}),'children':(0x0,_0xc22266[_0x1d897f(0x23e)])(_0x1d897f(0x211),{'className':(0x0,_0xc721fb[_0x1d897f(0x20c)])(_0x1d897f(0x23f),{'univer-cursor-not-allowed':_0x32dc19==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32dc19!==_0x1d897f(0x259)}),'type':_0x1d897f(0x211),'children':(0x0,_0xc22266['jsx'])(_0x352e05,{'className':_0x1d897f(0x183)})})}):null;}function _0x35700c(_0x5be421){const _0x309406=_0x37f4aa;let {status:_0x370a37,coordinator:_0x135a92}=_0x5be421;switch(_0x370a37){case'idle':return(0x0,_0xc22266[_0x309406(0x23e)])(_0x44cb0f,{'coordinator':_0x135a92});case _0x309406(0x1aa):return(0x0,_0xc22266[_0x309406(0x23e)])(_0x26694c,{'coordinator':_0x135a92});case'not-following':return(0x0,_0xc22266[_0x309406(0x23e)])(_0x4a0aa3,{'coordinator':_0x135a92});case _0x309406(0x259):return(0x0,_0xc22266['jsx'])(_0x35e35f,{});case'presenting':return(0x0,_0xc22266[_0x309406(0x23e)])(_0x2951d5,{'coordinator':_0x135a92});default:return null;}}function _0x44cb0f(_0x452832){const _0x12fc52=_0x37f4aa;let {coordinator:_0xf7f5ab}=_0x452832;return(0x0,_0xc22266[_0x12fc52(0x17a)])(_0xc22266['Fragment'],{'children':[(0x0,_0xc22266['jsx'])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x12fc52(0x1c0)}),(0x0,_0xc22266[_0x12fc52(0x23e)])(_0xc721fb[_0x12fc52(0x24f)],{'onClick':()=>_0xf7f5ab[_0x12fc52(0x1db)](),'children':_0x12fc52(0x22e)})]});}function _0x26694c(_0x24aab7){const _0x127287=_0x37f4aa;let {coordinator:_0x2d11af}=_0x24aab7;return(0x0,_0xc22266[_0x127287(0x17a)])(_0xc22266['Fragment'],{'children':[(0x0,_0xc22266[_0x127287(0x23e)])(_0x127287(0x25a),{'className':_0x127287(0x247),'children':_0x127287(0x22d)}),(0x0,_0xc22266[_0x127287(0x23e)])(_0xc721fb[_0x127287(0x24f)],{'onClick':()=>_0x2d11af[_0x127287(0x1da)](),'children':_0x127287(0x18f)})]});}function _0x4a0aa3(_0x16d273){const _0x293a0e=_0x37f4aa;let {coordinator:_0x19656d}=_0x16d273;return(0x0,_0xc22266[_0x293a0e(0x17a)])(_0xc22266[_0x293a0e(0x204)],{'children':[(0x0,_0xc22266[_0x293a0e(0x23e)])(_0x293a0e(0x25a),{'className':_0x293a0e(0x247),'children':_0x293a0e(0x1ed)}),(0x0,_0xc22266['jsx'])(_0xc721fb[_0x293a0e(0x24f)],{'variant':'text','onClick':()=>_0x19656d[_0x293a0e(0x1d5)](),'children':_0x293a0e(0x1b3)})]});}function _0x2951d5(_0x31d05a){const _0x141f5c=_0x37f4aa;let {coordinator:_0x5202b8}=_0x31d05a;return(0x0,_0xc22266[_0x141f5c(0x17a)])(_0xc22266[_0x141f5c(0x204)],{'children':[(0x0,_0xc22266['jsx'])(_0x141f5c(0x25a),{'className':_0x141f5c(0x247),'children':_0x141f5c(0x1b2)}),(0x0,_0xc22266[_0x141f5c(0x23e)])(_0xc721fb[_0x141f5c(0x24f)],{'variant':'default','onClick':()=>_0x5202b8[_0x141f5c(0x1f5)](),'children':_0x141f5c(0x1f1)})]});}function _0x35e35f(){const _0x423703=_0x37f4aa;return(0x0,_0xc22266[_0x423703(0x23e)])(_0xc22266[_0x423703(0x204)],{'children':'You\x27are\x20offline.'});}let _0x480833=class extends _0x13c583[_0x37f4aa(0x1f6)]{constructor(_0x2d1f39,_0x40d053){const _0x37b7a3=_0x37f4aa;super(),this[_0x37b7a3(0x21c)]=_0x2d1f39,this[_0x37b7a3(0x1e4)]=_0x40d053,this[_0x37b7a3(0x1df)]();}['_mountLiveShare'](){const _0x2e2950=_0x37f4aa;this[_0x2e2950(0x18a)](this['_uiPartsService'][_0x2e2950(0x217)](_0x5888a3[_0x2e2950(0x216)]['HEADER_MENU'],()=>(0x0,_0x5888a3[_0x2e2950(0x227)])(_0x2fd837,this[_0x2e2950(0x21c)])));}};_0x480833=_0x5a4a5f([_0x48abe6(0x0,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x13c583[_0x37f4aa(0x1e8)])),_0x48abe6(0x1,_0x5888a3[_0x37f4aa(0x235)])],_0x480833);var _0x1656a6=_0x37f4aa(0x215),_0x18d3ec=_0x37f4aa(0x1d9);let _0x232173={},_0x5ce678=class extends _0x13c583[_0x37f4aa(0x1f6)]{constructor(_0x4968dd){const _0x40aeb1=_0x37f4aa;super(),this[_0x40aeb1(0x200)]=_0x4968dd,this[_0x40aeb1(0x19e)]();}[_0x37f4aa(0x19e)](){const _0x4ff628=_0x37f4aa;[_0x11f085[_0x4ff628(0x17f)]['id'],_0x11f085[_0x4ff628(0x1c8)]['id'],_0x4e3dd1[_0x4ff628(0x260)]['id']][_0x4ff628(0x181)](_0x471882=>{const _0x357dce=_0x4ff628;this[_0x357dce(0x18a)](this['_liveShareService'][_0x357dce(0x237)](_0x471882));});}};_0x5ce678=_0x5a4a5f([_0x48abe6(0x0,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x1be41b))],_0x5ce678);let _0xb66c3f=class extends _0x13c583[_0x37f4aa(0x1b5)]{constructor(_0x3e7f56=_0x232173,_0x45b89f,_0x46de85){const _0x700c1=_0x37f4aa;super(),this[_0x700c1(0x25c)]=_0x3e7f56,this['_injector']=_0x45b89f,this[_0x700c1(0x210)]=_0x46de85;let {..._0x12440d}=(0x0,_0x13c583[_0x700c1(0x1ee)])({},_0x232173,this[_0x700c1(0x25c)]);this[_0x700c1(0x210)][_0x700c1(0x230)](_0x700c1(0x1ff),_0x12440d);}['onStarting'](){const _0x4d6f4f=_0x37f4aa;(0x0,_0x13c583['registerDependencies'])(this[_0x4d6f4f(0x21c)],(0x0,_0x13c583['mergeOverrideWithDependencies'])([[_0x1be41b],[_0x2b8d4a],[_0x5ce678],[_0x480833]],this[_0x4d6f4f(0x25c)]['override'])),(0x0,_0x13c583['touchDependencies'])(this[_0x4d6f4f(0x21c)],[[_0x5ce678]]);}[_0x37f4aa(0x1af)](){const _0x2fcb29=_0x37f4aa;(0x0,_0x13c583['touchDependencies'])(this[_0x2fcb29(0x21c)],[[_0x480833]]);}};_0x3e6b7c(_0xb66c3f,_0x37f4aa(0x20e),_0x13c583[_0x37f4aa(0x1ce)]['UNIVER_UNKNOWN']),_0x3e6b7c(_0xb66c3f,_0x37f4aa(0x172),'UNIVER_LIVE_SHARE_PLUGIN'),_0x3e6b7c(_0xb66c3f,_0x37f4aa(0x231),_0x1656a6),_0x3e6b7c(_0xb66c3f,_0x37f4aa(0x1b9),_0x18d3ec),_0xb66c3f=_0x5a4a5f([(0x0,_0x13c583[_0x37f4aa(0x19d)])(_0x339d47[_0x37f4aa(0x19b)]),_0x48abe6(0x1,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x13c583[_0x37f4aa(0x1e8)])),_0x48abe6(0x2,_0x13c583[_0x37f4aa(0x250)])],_0xb66c3f),Object[_0x37f4aa(0x18c)](_0x274fe8,_0x37f4aa(0x207),{'enumerable':!0x0,'get':function(){return _0x480833;}}),_0x274fe8[_0x37f4aa(0x258)]=_0x2fd837,Object['defineProperty'](_0x274fe8,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x2b8d4a;}}),Object['defineProperty'](_0x274fe8,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0x5c4420;}}),_0x274fe8['LiveShareService']=_0x1be41b,_0x274fe8[_0x37f4aa(0x262)]=_0x23de74,Object[_0x37f4aa(0x18c)](_0x274fe8,_0x37f4aa(0x232),{'enumerable':!0x0,'get':function(){return _0xb66c3f;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
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.25.1",
67
- "@univerjs-pro/collaboration-client": "0.25.1",
68
- "@univerjs/design": "0.25.1",
69
- "@univerjs/core": "0.25.1",
70
- "@univerjs/sheets": "0.25.1",
71
- "@univerjs/sheets-ui": "0.25.1",
72
- "@univerjs/ui": "0.25.1"
66
+ "@univerjs-pro/collaboration": "0.25.2",
67
+ "@univerjs-pro/collaboration-client": "0.25.2",
68
+ "@univerjs/core": "0.25.2",
69
+ "@univerjs/design": "0.25.2",
70
+ "@univerjs/sheets-ui": "0.25.2",
71
+ "@univerjs/sheets": "0.25.2",
72
+ "@univerjs/ui": "0.25.2"
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/protocol": "0.25.1",
82
- "@univerjs-infra/shared": "0.25.1"
81
+ "@univerjs-infra/shared": "0.25.2",
82
+ "@univerjs/protocol": "0.25.2"
83
83
  },
84
84
  "scripts": {
85
85
  "test": "vitest run",