@univerjs-pro/live-share 0.13.0 → 0.14.0-insiders.20251227-b250a8d

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
- 'use strict';function _0x4578(_0x5435f5,_0x5edaf4){_0x5435f5=_0x5435f5-0x82;const _0x2bb06d=_0x2bb0();let _0x457803=_0x2bb06d[_0x5435f5];return _0x457803;}const _0x3a0534=_0x4578;(function(_0x490e11,_0x4048df){const _0x461d8d=_0x4578,_0x1fb0f3=_0x490e11();while(!![]){try{const _0x1a6064=-parseInt(_0x461d8d(0x97))/0x1*(parseInt(_0x461d8d(0x94))/0x2)+-parseInt(_0x461d8d(0x99))/0x3*(parseInt(_0x461d8d(0xaa))/0x4)+parseInt(_0x461d8d(0x8a))/0x5*(-parseInt(_0x461d8d(0x91))/0x6)+parseInt(_0x461d8d(0x9d))/0x7*(-parseInt(_0x461d8d(0xa4))/0x8)+parseInt(_0x461d8d(0x9f))/0x9+parseInt(_0x461d8d(0x8d))/0xa+parseInt(_0x461d8d(0x85))/0xb*(parseInt(_0x461d8d(0x96))/0xc);if(_0x1a6064===_0x4048df)break;else _0x1fb0f3['push'](_0x1fb0f3['shift']());}catch(_0x500b7e){_0x1fb0f3['push'](_0x1fb0f3['shift']());}}}(_0x2bb0,0xc6c0e));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x2bb0(){const _0x1e31ff=['148936jcRque','SetScrollOperation','PRESENTING','getLiveShareCoordinatorSync','stopPresenting','FEnum','4541336hqUMMQ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FRange','extend','startColumn','get','LiveShareStatusEnum','77jCAbpR','FUniver','startRow','LiveShareStatus','LiveShareController','1167410lRQGEs','executeCommand','getUnitId','697220qQiQAy','tryStartPresenting','getId','startFollowing','6zafRFB','stopFollowing','getActiveSheet','226lIjAyc','No\x20active\x20workbook\x20found.','4179372McPDuo','11864JzsHYi','startPresenting','3tPpMnU','getSheetId','_commandService','_injector','133DAxnRz','getStatus','12326184OiwveX','_initialize','getLiveShareStatus','getActiveWorkbook','IDLE'];_0x2bb0=function(){return _0x1e31ff;};return _0x2bb0();}class w extends d['FRange']{[_0x3a0534(0xa0)](_0x4c8468,_0xdde57b,_0xb6d44f,_0x424eb4,_0x3f3855){const _0x49e144=_0x3a0534,_0x11785d=_0x4c8468[_0x49e144(0x83)](n[_0x49e144(0x89)]),_0x148cb0=_0x4c8468[_0x49e144(0x83)](g['IRenderManagerService']),_0x172f0f=_0xdde57b['getUnitId'](),_0x1a4b7c=_0xdde57b[_0x49e144(0x93)](),_0x595112=_0x11785d[_0x49e144(0xa7)](_0x172f0f);(_0x595112==null?void 0x0:_0x595112[_0x49e144(0x9e)]())!==n[_0x49e144(0x88)][_0x49e144(0xa6)]||(_0xb6d44f[_0x49e144(0x9a)]()!==_0x1a4b7c[_0x49e144(0x9a)]()&&this[_0x49e144(0x9b)][_0x49e144(0x8b)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x172f0f,'subUnitId':_0xb6d44f['getSheetId']()}),!_0x148cb0['getRenderById'](_0x172f0f))||_0x3f3855['syncExecuteCommand'](f[_0x49e144(0xa5)]['id'],{'unitId':_0xdde57b[_0x49e144(0x8c)](),'sheetId':_0xb6d44f[_0x49e144(0x9a)](),'sheetViewStartRow':_0x424eb4[_0x49e144(0x87)],'sheetViewStartColumn':_0x424eb4[_0x49e144(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3a0534(0xac)][_0x3a0534(0xad)](w);class C extends a['FUniver']{[_0x3a0534(0xa1)](){const _0x1c9b5b=_0x3a0534;var _0x41a6ec,_0x4dbc46;const _0x40ac2c=this[_0x1c9b5b(0x9c)][_0x1c9b5b(0x83)](n[_0x1c9b5b(0x89)]),_0x263195=(_0x41a6ec=this[_0x1c9b5b(0xa2)]())==null?void 0x0:_0x41a6ec[_0x1c9b5b(0x8f)]();if(!_0x263195)throw new Error(_0x1c9b5b(0x95));const _0x1fcf2e=_0x40ac2c[_0x1c9b5b(0xa7)](_0x263195);return(_0x4dbc46=_0x1fcf2e==null?void 0x0:_0x1fcf2e[_0x1c9b5b(0x9e)]())!=null?_0x4dbc46:n[_0x1c9b5b(0x88)][_0x1c9b5b(0xa3)];}['startFollowing'](){const _0x1376d9=_0x3a0534;var _0x3ac2ad;const _0xa98aad=this[_0x1376d9(0x9c)][_0x1376d9(0x83)](n[_0x1376d9(0x89)]),_0x1f361f=(_0x3ac2ad=this['getActiveWorkbook']())==null?void 0x0:_0x3ac2ad[_0x1376d9(0x8f)]();if(!_0x1f361f)throw new Error('No\x20active\x20workbook\x20found.');const _0xc2497c=_0xa98aad[_0x1376d9(0xa7)](_0x1f361f);if(!_0xc2497c)throw new Error(_0x1376d9(0xab));_0xc2497c[_0x1376d9(0x90)]();}[_0x3a0534(0x92)](){const _0x74a32b=_0x3a0534;var _0x569c4d;const _0x5e4d09=this[_0x74a32b(0x9c)]['get'](n[_0x74a32b(0x89)]),_0x892f36=(_0x569c4d=this[_0x74a32b(0xa2)]())==null?void 0x0:_0x569c4d[_0x74a32b(0x8f)]();if(!_0x892f36)throw new Error('No\x20active\x20workbook\x20found.');const _0x21bc1c=_0x5e4d09[_0x74a32b(0xa7)](_0x892f36);if(!_0x21bc1c)throw new Error(_0x74a32b(0xab));_0x21bc1c[_0x74a32b(0x92)]();}[_0x3a0534(0x98)](){const _0x176271=_0x3a0534;var _0x28d397;const _0xce3cab=this['_injector'][_0x176271(0x83)](n[_0x176271(0x89)]),_0x4cc781=(_0x28d397=this[_0x176271(0xa2)]())==null?void 0x0:_0x28d397[_0x176271(0x8f)]();if(!_0x4cc781)throw new Error(_0x176271(0x95));const _0x408166=_0xce3cab[_0x176271(0xa7)](_0x4cc781);if(!_0x408166)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x408166[_0x176271(0x8e)]();}['stopPresenting'](){const _0x4a0a46=_0x3a0534;var _0x37b78e;const _0x37899d=this[_0x4a0a46(0x9c)][_0x4a0a46(0x83)](n[_0x4a0a46(0x89)]),_0x3556a0=(_0x37b78e=this[_0x4a0a46(0xa2)]())==null?void 0x0:_0x37b78e[_0x4a0a46(0x8f)]();if(!_0x3556a0)throw new Error('No\x20active\x20workbook\x20found.');const _0x1ce8ea=_0x37899d[_0x4a0a46(0xa7)](_0x3556a0);if(!_0x1ce8ea)throw new Error(_0x4a0a46(0xab));_0x1ce8ea[_0x4a0a46(0xa8)]();}}a[_0x3a0534(0x86)][_0x3a0534(0xad)](C);class L extends a[_0x3a0534(0xa9)]{get[_0x3a0534(0x84)](){const _0x47bf59=_0x3a0534;return n[_0x47bf59(0x88)];}}a['FEnum'][_0x3a0534(0xad)](L);
1
+ 'use strict';const _0x528172=_0x23f0;(function(_0x352f1c,_0x5bae7f){const _0x2b22c6=_0x23f0,_0x521a93=_0x352f1c();while(!![]){try{const _0x647de9=parseInt(_0x2b22c6(0x110))/0x1+-parseInt(_0x2b22c6(0x104))/0x2*(-parseInt(_0x2b22c6(0x112))/0x3)+-parseInt(_0x2b22c6(0x117))/0x4+-parseInt(_0x2b22c6(0x119))/0x5*(parseInt(_0x2b22c6(0x113))/0x6)+-parseInt(_0x2b22c6(0xf9))/0x7*(parseInt(_0x2b22c6(0x11c))/0x8)+-parseInt(_0x2b22c6(0x118))/0x9+parseInt(_0x2b22c6(0x10e))/0xa*(parseInt(_0x2b22c6(0x11a))/0xb);if(_0x647de9===_0x5bae7f)break;else _0x521a93['push'](_0x521a93['shift']());}catch(_0x1f08c9){_0x521a93['push'](_0x521a93['shift']());}}}(_0x2a0a,0x9a311));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x23f0(_0x5ddb34,_0x2b643b){_0x5ddb34=_0x5ddb34-0xf5;const _0x2a0a94=_0x2a0a();let _0x23f075=_0x2a0a94[_0x5ddb34];return _0x23f075;}function _0x2a0a(){const _0x32467c=['SetScrollOperation','getSheetId','startFollowing','LiveShareStatus','106270qdmrYc','SetWorksheetActiveOperation','_injector','getActiveWorkbook','getUnitId','PRESENTING','getLiveShareCoordinatorSync','FUniver','get','stopPresenting','7902650aBUGRL','LiveShareStatusEnum','931271bPLBvG','startColumn','45KruUzz','138YYLAUS','stopFollowing','executeCommand','getActiveSheet','1122072LJzWPa','7872777GoHhGd','134390fuxoZS','11zpCNIn','LiveShareController','856nuirZN','IRenderManagerService','FRange','_commandService','extend','getId','No\x20active\x20workbook\x20found.','7427hxXecV','getRenderById','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FEnum','getStatus','syncExecuteCommand'];_0x2a0a=function(){return _0x32467c;};return _0x2a0a();}class w extends d[_0x528172(0x11e)]{[_0x528172(0xfb)](_0xb57574,_0x97815d,_0x522e5b,_0x30219f,_0x12eacb){const _0x58fdfd=_0x528172,_0x426a63=_0xb57574[_0x58fdfd(0x10c)](n[_0x58fdfd(0x11b)]),_0x2eb494=_0xb57574[_0x58fdfd(0x10c)](g[_0x58fdfd(0x11d)]),_0x3d8bee=_0x97815d['getUnitId'](),_0x48edf5=_0x97815d[_0x58fdfd(0x116)](),_0x1d970b=_0x426a63[_0x58fdfd(0x10a)](_0x3d8bee);(_0x1d970b==null?void 0x0:_0x1d970b[_0x58fdfd(0xfe)]())!==n[_0x58fdfd(0x103)][_0x58fdfd(0x109)]||(_0x522e5b[_0x58fdfd(0x101)]()!==_0x48edf5[_0x58fdfd(0x101)]()&&this[_0x58fdfd(0xf5)][_0x58fdfd(0x115)](u[_0x58fdfd(0x105)]['id'],{'unitId':_0x3d8bee,'subUnitId':_0x522e5b[_0x58fdfd(0x101)]()}),!_0x2eb494[_0x58fdfd(0xfa)](_0x3d8bee))||_0x12eacb[_0x58fdfd(0xff)](f[_0x58fdfd(0x100)]['id'],{'unitId':_0x97815d[_0x58fdfd(0x108)](),'sheetId':_0x522e5b[_0x58fdfd(0x101)](),'sheetViewStartRow':_0x30219f['startRow'],'sheetViewStartColumn':_0x30219f[_0x58fdfd(0x111)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x528172(0x11e)][_0x528172(0xf6)](w);class C extends a[_0x528172(0x10b)]{['getLiveShareStatus'](){const _0x41e14d=_0x528172;var _0x28b627,_0x416f87;const _0x48fe6c=this['_injector'][_0x41e14d(0x10c)](n['LiveShareController']),_0x7536cd=(_0x28b627=this[_0x41e14d(0x107)]())==null?void 0x0:_0x28b627[_0x41e14d(0xf7)]();if(!_0x7536cd)throw new Error(_0x41e14d(0xf8));const _0x4c5c53=_0x48fe6c['getLiveShareCoordinatorSync'](_0x7536cd);return(_0x416f87=_0x4c5c53==null?void 0x0:_0x4c5c53['getStatus']())!=null?_0x416f87:n[_0x41e14d(0x103)]['IDLE'];}[_0x528172(0x102)](){const _0x16add9=_0x528172;var _0x139bf4;const _0x3648e4=this[_0x16add9(0x106)][_0x16add9(0x10c)](n[_0x16add9(0x11b)]),_0x231d85=(_0x139bf4=this[_0x16add9(0x107)]())==null?void 0x0:_0x139bf4[_0x16add9(0xf7)]();if(!_0x231d85)throw new Error('No\x20active\x20workbook\x20found.');const _0x388337=_0x3648e4['getLiveShareCoordinatorSync'](_0x231d85);if(!_0x388337)throw new Error(_0x16add9(0xfc));_0x388337[_0x16add9(0x102)]();}[_0x528172(0x114)](){const _0x1174cb=_0x528172;var _0x399735;const _0x17ae8f=this[_0x1174cb(0x106)]['get'](n[_0x1174cb(0x11b)]),_0x589a69=(_0x399735=this[_0x1174cb(0x107)]())==null?void 0x0:_0x399735['getId']();if(!_0x589a69)throw new Error('No\x20active\x20workbook\x20found.');const _0x2426bb=_0x17ae8f['getLiveShareCoordinatorSync'](_0x589a69);if(!_0x2426bb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2426bb[_0x1174cb(0x114)]();}['startPresenting'](){const _0x44f314=_0x528172;var _0x476a4f;const _0x4ab1dd=this[_0x44f314(0x106)]['get'](n['LiveShareController']),_0x346f89=(_0x476a4f=this[_0x44f314(0x107)]())==null?void 0x0:_0x476a4f[_0x44f314(0xf7)]();if(!_0x346f89)throw new Error('No\x20active\x20workbook\x20found.');const _0x478842=_0x4ab1dd[_0x44f314(0x10a)](_0x346f89);if(!_0x478842)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x478842['tryStartPresenting']();}[_0x528172(0x10d)](){const _0x1abf5e=_0x528172;var _0x3169f9;const _0x871971=this[_0x1abf5e(0x106)][_0x1abf5e(0x10c)](n[_0x1abf5e(0x11b)]),_0x2b6e23=(_0x3169f9=this['getActiveWorkbook']())==null?void 0x0:_0x3169f9['getId']();if(!_0x2b6e23)throw new Error(_0x1abf5e(0xf8));const _0x2fd5f8=_0x871971[_0x1abf5e(0x10a)](_0x2b6e23);if(!_0x2fd5f8)throw new Error(_0x1abf5e(0xfc));_0x2fd5f8[_0x1abf5e(0x10d)]();}}a['FUniver']['extend'](C);class L extends a[_0x528172(0xfd)]{get[_0x528172(0x10f)](){return n['LiveShareStatus'];}}a['FEnum'][_0x528172(0xf6)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x34e30e=_0x31cf;(function(_0x4dad24,_0x504108){const _0x5e274c=_0x31cf,_0x2e1aaf=_0x4dad24();while(!![]){try{const _0x128c52=-parseInt(_0x5e274c(0x17b))/0x1+-parseInt(_0x5e274c(0x154))/0x2*(-parseInt(_0x5e274c(0x19a))/0x3)+parseInt(_0x5e274c(0xfe))/0x4*(parseInt(_0x5e274c(0xfc))/0x5)+parseInt(_0x5e274c(0x162))/0x6+parseInt(_0x5e274c(0x13c))/0x7+parseInt(_0x5e274c(0x14e))/0x8*(-parseInt(_0x5e274c(0x1b7))/0x9)+-parseInt(_0x5e274c(0x102))/0xa;if(_0x128c52===_0x504108)break;else _0x2e1aaf['push'](_0x2e1aaf['shift']());}catch(_0x3de6bf){_0x2e1aaf['push'](_0x2e1aaf['shift']());}}}(_0x5d3c,0x88ae4));var T=Object[_0x34e30e(0x179)],U=(_0x544d50,_0x3a0f18,_0x1cac04)=>_0x3a0f18 in _0x544d50?T(_0x544d50,_0x3a0f18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cac04}):_0x544d50[_0x3a0f18]=_0x1cac04,_=(_0x4c68b9,_0x5a1fe4,_0x4064fd)=>U(_0x4c68b9,typeof _0x5a1fe4!=_0x34e30e(0x170)?_0x5a1fe4+'':_0x5a1fe4,_0x4064fd);Object[_0x34e30e(0x179)](exports,Symbol[_0x34e30e(0x156)],{'value':_0x34e30e(0x1ae)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x283cd1,..._0x5789c9}){const _0x139f0f=_0x34e30e,{icon:_0x17d2ca,id:_0x858077,className:_0x16d393,extend:_0x2e2c90,..._0x43d90f}=_0x5789c9,_0x29d474=(_0x139f0f(0x115)+_0x858077+'\x20'+(_0x16d393||''))[_0x139f0f(0x15b)](),_0x2b1bc=v[_0x139f0f(0x1ac)]('_'+H());return j(_0x17d2ca,''+_0x858077,{'defIds':_0x17d2ca[_0x139f0f(0x180)],'idSuffix':_0x2b1bc['current']},{'ref':_0x283cd1,'className':_0x29d474,..._0x43d90f},_0x2e2c90);}function j(_0x4cda76,_0x226ce3,_0x3cd317,_0x31e422,_0x7c7ad){const _0x4e77dc=_0x34e30e;return v[_0x4e77dc(0x10e)](_0x4cda76[_0x4e77dc(0x11c)],{'key':_0x226ce3,...y(_0x4cda76,_0x3cd317,_0x7c7ad),..._0x31e422},(F(_0x4cda76,_0x3cd317)['children']||[])['map']((_0x287b9c,_0x44d060)=>j(_0x287b9c,_0x226ce3+'-'+_0x4cda76[_0x4e77dc(0x11c)]+'-'+_0x44d060,_0x3cd317,void 0x0,_0x7c7ad)));}function _0x31cf(_0xc53084,_0x1153f0){_0xc53084=_0xc53084-0xe7;const _0x5d3c2b=_0x5d3c();let _0x31cf08=_0x5d3c2b[_0xc53084];return _0x31cf08;}function y(_0x2d557f,_0x495bf9,_0x1cb6d9){const _0x4096b9=_0x34e30e,_0x4ba0b9={..._0x2d557f[_0x4096b9(0xea)]};_0x1cb6d9!=null&&_0x1cb6d9[_0x4096b9(0x12f)]&&_0x4ba0b9[_0x4096b9(0x119)]===_0x4096b9(0x12f)&&(_0x4ba0b9[_0x4096b9(0x119)]=_0x1cb6d9[_0x4096b9(0x12f)]),_0x2d557f[_0x4096b9(0x11c)]===_0x4096b9(0x1b4)&&_0x4ba0b9['id']&&(_0x4ba0b9['id']=_0x4ba0b9['id']+_0x495bf9['idSuffix']),Object[_0x4096b9(0x13b)](_0x4ba0b9)[_0x4096b9(0x108)](([_0x230158,_0xd371d9])=>{const _0x2294eb=_0x4096b9;_0x230158===_0x2294eb(0x1b4)&&typeof _0xd371d9=='string'&&(_0x4ba0b9[_0x230158]=_0xd371d9[_0x2294eb(0x117)](/url\(#(.*)\)/,_0x2294eb(0x14f)+_0x495bf9['idSuffix']+')'));});const {defIds:_0x4faf56}=_0x495bf9;return!_0x4faf56||_0x4faf56[_0x4096b9(0x16b)]===0x0||(_0x2d557f['tag']==='use'&&_0x4ba0b9['xlink:href']&&(_0x4ba0b9['xlink:href']=_0x4ba0b9[_0x4096b9(0x132)]+_0x495bf9[_0x4096b9(0x157)]),Object[_0x4096b9(0x13b)](_0x4ba0b9)[_0x4096b9(0x108)](([_0x24e2f8,_0x1f4edf])=>{const _0x2430b2=_0x4096b9;typeof _0x1f4edf==_0x2430b2(0x130)&&(_0x4ba0b9[_0x24e2f8]=_0x1f4edf['replace'](/url\(#(.*)\)/,_0x2430b2(0x14f)+_0x495bf9[_0x2430b2(0x157)]+')'));})),_0x4ba0b9;}function F(_0x59eab5,_0x3962c4){const _0x312b85=_0x34e30e;var _0x31b5cf;const {defIds:_0x41e1e5}=_0x3962c4;return!_0x41e1e5||_0x41e1e5[_0x312b85(0x16b)]===0x0?_0x59eab5:_0x59eab5['tag']==='defs'&&((_0x31b5cf=_0x59eab5[_0x312b85(0x106)])!=null&&_0x31b5cf[_0x312b85(0x16b)])?{..._0x59eab5,'children':_0x59eab5[_0x312b85(0x106)][_0x312b85(0x13f)](_0x52270f=>typeof _0x52270f[_0x312b85(0xea)]['id']==_0x312b85(0x130)&&_0x41e1e5&&_0x41e1e5[_0x312b85(0x163)](_0x52270f[_0x312b85(0xea)]['id'])?{..._0x52270f,'attrs':{..._0x52270f['attrs'],'id':_0x52270f[_0x312b85(0xea)]['id']+_0x3962c4[_0x312b85(0x157)]}}:_0x52270f)}:_0x59eab5;}function H(){const _0x3d3657=_0x34e30e;return Math[_0x3d3657(0x10b)]()[_0x3d3657(0x126)](0x24)[_0x3d3657(0x142)](0x2,0x8);}x[_0x34e30e(0xf6)]='UniverIcon';const V={'tag':_0x34e30e(0x118),'attrs':{'xmlns':_0x34e30e(0x1a0),'fill':_0x34e30e(0x19e),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x34e30e(0x164)},'children':[{'tag':'path','attrs':{'fill':_0x34e30e(0x15e),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x34e30e(0xfa),'attrs':{'fill':_0x34e30e(0x15e),'d':_0x34e30e(0x1aa),'fillRule':_0x34e30e(0x13d),'clipRule':'evenodd'}}]},R=v[_0x34e30e(0x176)](function(_0x2f5895,_0x451c56){const _0x5e5fed=_0x34e30e;return v['createElement'](x,Object[_0x5e5fed(0x172)]({},_0x2f5895,{'id':_0x5e5fed(0x1a7),'ref':_0x451c56,'icon':V}));});R[_0x34e30e(0xf6)]=_0x34e30e(0xf1);class E extends o[_0x34e30e(0x17e)]{constructor(){const _0x20bf3f=_0x34e30e;super(...arguments),_(this,_0x20bf3f(0xf7),new Set()),_(this,_0x20bf3f(0x104),new Set());}[_0x34e30e(0x16e)](_0x35e5a7){const _0x36dbaa=_0x34e30e;return this[_0x36dbaa(0xf7)][_0x36dbaa(0xfd)](_0x35e5a7),o[_0x36dbaa(0x153)](()=>this[_0x36dbaa(0xf7)]['delete'](_0x35e5a7));}[_0x34e30e(0x1ab)](_0x11c47f){const _0x4a715f=_0x34e30e;return this[_0x4a715f(0x104)]['add'](_0x11c47f),o[_0x4a715f(0x153)](()=>this[_0x4a715f(0x104)][_0x4a715f(0x165)](_0x11c47f));}['shouldShareOperation'](_0x5eb652){const _0x4ac4bb=_0x34e30e;return this[_0x4ac4bb(0xf7)]['has'](_0x5eb652);}[_0x34e30e(0x15f)](_0x57a4fb){const _0x10cd45=_0x34e30e;return Array[_0x10cd45(0x103)](this[_0x10cd45(0x104)])['map'](_0x3b5ed0=>_0x3b5ed0(_0x57a4fb));}}var M=Object[_0x34e30e(0x14d)],P=(_0x15f372,_0x2bb8b5,_0x2f243f,_0x342ac6)=>{const _0x558d96=_0x34e30e;for(var _0x229629=_0x342ac6>0x1?void 0x0:_0x342ac6?M(_0x2bb8b5,_0x2f243f):_0x2bb8b5,_0x5bb303=_0x15f372[_0x558d96(0x16b)]-0x1,_0xb8aa4f;_0x5bb303>=0x0;_0x5bb303--)(_0xb8aa4f=_0x15f372[_0x5bb303])&&(_0x229629=_0xb8aa4f(_0x229629)||_0x229629);return _0x229629;},S=(_0x757bc7,_0xf84cd5)=>(_0x184c20,_0xed7b66)=>_0xf84cd5(_0x184c20,_0xed7b66,_0x757bc7);exports['LiveShareController']=class extends o[_0x34e30e(0x12c)]{constructor(_0x540fd0,_0x52ed60,_0x1c8ef5){const _0x4fe98d=_0x34e30e;super(),_(this,_0x4fe98d(0x181),new Map()),(this['_univerInstanceService']=_0x540fd0,this[_0x4fe98d(0x13a)]=_0x52ed60,this[_0x4fe98d(0xee)]=_0x1c8ef5,this['_init']());}async['getLiveShareCoordinator'](_0x5cd67e){const _0x497342=_0x34e30e;return this[_0x497342(0x181)][_0x497342(0x138)](_0x5cd67e)||await this['_startLiveShareCoordinator'](_0x5cd67e),this['_entities'][_0x497342(0x18b)](_0x5cd67e);}[_0x34e30e(0x10f)](_0x2782f2){const _0x569731=_0x34e30e;var _0x5c362a;return(_0x5c362a=this[_0x569731(0x181)][_0x569731(0x18b)](_0x2782f2))!=null?_0x5c362a:null;}[_0x34e30e(0x128)](){const _0x4b2e64=_0x34e30e;this[_0x4b2e64(0x111)][_0x4b2e64(0xf2)](o[_0x4b2e64(0xf0)][_0x4b2e64(0x183)])[_0x4b2e64(0x11a)](I[_0x4b2e64(0x15c)](this[_0x4b2e64(0x190)]))[_0x4b2e64(0x152)](async _0x27d79f=>{const _0x5cb819=_0x4b2e64,_0x229063=_0x27d79f[_0x5cb819(0x144)]();this[_0x5cb819(0x181)][_0x5cb819(0x138)](_0x229063)||this[_0x5cb819(0x151)](_0x229063);}),this['_univerInstanceService'][_0x4b2e64(0xef)](o[_0x4b2e64(0xf0)]['UNIVER_SHEET'])[_0x4b2e64(0x11a)](I[_0x4b2e64(0x15c)](this[_0x4b2e64(0x190)]))[_0x4b2e64(0x152)](_0x18a9cf=>{const _0x9c70cd=_0x4b2e64,_0xeb67bf=_0x18a9cf[_0x9c70cd(0x144)](),_0x255148=this[_0x9c70cd(0x181)][_0x9c70cd(0x18b)](_0xeb67bf);_0x255148==null||_0x255148['dispose']();});}async[_0x34e30e(0x151)](_0x511455){const _0x2561a7=_0x34e30e,_0x4654a8=await this['_collabSessionService']['requireSession'](_0x511455),_0x2fc231=this[_0x2561a7(0x13a)]['createInstance'](exports['LiveShareCoordinator'],_0x511455,_0x4654a8);return _0x2fc231[_0x2561a7(0xf9)](),this[_0x2561a7(0x181)][_0x2561a7(0x100)](_0x511455,_0x2fc231),_0x2fc231;}},exports[_0x34e30e(0x123)]=P([S(0x0,o[_0x34e30e(0x17c)]),S(0x1,o[_0x34e30e(0x12d)](o[_0x34e30e(0x1b0)])),S(0x2,o[_0x34e30e(0x12d)](b['CollaborationSessionService']))],exports['LiveShareController']);function _0x5d3c(){const _0x3b10cb=['getStatus','16688430NePasI','from','_reporters','getLiveShareCoordinator','children','executeCommand','forEach','_stopFollowing','live-share.config','random','_commandDisposable','_mountLiveShare','createElement','getLiveShareCoordinatorSync','Stop\x20following','_univerInstanceService','getCurrentTypeOfUnit$','_handleTerminate','Stop\x20presenting','univerjs-icon\x20univerjs-icon-','getConfig','replace','svg','fill','pipe','getMemberID','tag','You\x27are\x20offline.','IConfigService','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','useState','useObservable','Fragment','LiveShareController','current','Plugin','toString','CollaborationEvent','_init','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','BehaviorSubject','RxDisposable','Inject','Start\x20following','colorChannel1','string','UNIVER_UNKNOWN','xlink:href','SetWorksheetActiveOperation','presenting','text','onCommandExecuted','params','has','_startFollowing','_injector','entries','6924561LxxfYy','evenodd','InsertSheetMutation','map','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','substring','div','getUnitId','SAME_OPERATION_SHARE_INTERVAL','clsx','type','jsxs','DisposableCollection','ONLINE','offline','LiveShareStatus','getOwnPropertyDescriptor','80otEmHR','url(#$1','DependentOn','_startLiveShareCoordinator','subscribe','toDisposable','890374ECfzfL','IDLE','toStringTag','idSuffix','dispose','_handleOffline','next','trim','takeUntil','_startPresenting','currentColor','getInitialStates','registerDependencies','disposeWithMe','6457212yrCaYE','includes','1em','delete','following','_status','unsubscribe','_beIdle','_config','length','complete','memberID','registerSharedOperation','Subject','symbol','_unitID','assign','not-following','end','data','forwardRef','PRESENTING','OPERATION','defineProperty','_configService','809175QnXzyE','IUniverInstanceService','_fetchOperations','Disposable','clear','defIds','_entities','_handleOperation','UNIVER_SHEET','_liveShareService','LIVESHARE_TERMINATE','override','default','idle','getValue','_collabSession','get','useDependency','_status$','_handleNewHost','You\x27re\x20following\x20the\x20presenter','dispose$','presenter','BuiltInUIPart','LIVESHARE_FETCH_OPERATIONS','values','stringify','event$','DesktopLiveShareController','onStarting','SessionStatus','6vqKmqN','LiveShareService','connectInjector','_handleNewChangeSets','none','LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','jsx','_commandService','sessionStatus$','_presenter','_stopPresenting','Button','live-share-icon','Dropdown','UniverLiveSharePlugin','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','registerInitialStateReporter','useRef','setConfig','Module','pluginName','Injector','status$','stopPresenting','LiveShareCoordinator','mask','NOT_FOLLOWING','LIVESHARE_OPERATION','880191sTluYp','touchDependencies','unitId','reverse','OFFLINE','then','attrs','send','univer-size-4','tryStartPresenting','_collabSessionService','getTypeOfUnitDisposed$','UniverInstanceType','LiveShareIcon','getTypeOfUnitAdded$','mutations','SetScrollOperation','startFollowing','displayName','_sharedOperations','button','init','path','_handleOnline','295gNLDdU','add','71868gWAYoA','shouldShareOperation','set'];_0x5d3c=function(){return _0x3b10cb;};return _0x5d3c();}var u=(_0x3837b2=>(_0x3837b2[_0x34e30e(0xe8)]=_0x34e30e(0x14b),_0x3837b2[_0x34e30e(0x155)]='idle',_0x3837b2['FOLLOWING']=_0x34e30e(0x166),_0x3837b2[_0x34e30e(0x1b5)]='not-following',_0x3837b2['PRESENTING']=_0x34e30e(0x134),_0x3837b2))(u||{});const k=_0x34e30e(0x145),q=0xc8;exports[_0x34e30e(0x1b3)]=class extends o[_0x34e30e(0x12c)]{constructor(_0x11af28,_0xe949e5,_0x36c46a,_0x4efb5d,_0x667299){const _0x5a1a72=_0x34e30e;super(),_(this,_0x5a1a72(0x18d),new O[(_0x5a1a72(0x12b))](_0x5a1a72(0x188))),_(this,_0x5a1a72(0x1b1),this[_0x5a1a72(0x18d)]['asObservable']()),_(this,_0x5a1a72(0x128),!0x1),_(this,_0x5a1a72(0x10c),null),_(this,_0x5a1a72(0x1a4),null),(this[_0x5a1a72(0x171)]=_0x11af28,this[_0x5a1a72(0x18a)]=_0xe949e5,this[_0x5a1a72(0x17a)]=_0x36c46a,this[_0x5a1a72(0x184)]=_0x4efb5d,this[_0x5a1a72(0x1a2)]=_0x667299);}get[_0x34e30e(0x167)](){const _0x3fe131=_0x34e30e;return this[_0x3fe131(0x18d)][_0x3fe131(0x189)]();}['dispose'](){const _0x542374=_0x34e30e;var _0x3fa61d;(_0x3fa61d=this[_0x542374(0x10c)])==null||_0x3fa61d[_0x542374(0x158)](),this[_0x542374(0x18d)][_0x542374(0x15a)](_0x542374(0x188)),this[_0x542374(0x18d)][_0x542374(0x16c)]();}[_0x34e30e(0x101)](){const _0x113ad5=_0x34e30e;return this[_0x113ad5(0x167)];}[_0x34e30e(0xf9)](){const _0x26f9ac=_0x34e30e;this[_0x26f9ac(0x128)]||(this[_0x26f9ac(0x128)]=!0x0,this['_collabSession'][_0x26f9ac(0x1a3)]['pipe'](I[_0x26f9ac(0x15c)](this[_0x26f9ac(0x190)]))[_0x26f9ac(0x152)](_0x1dd333=>{const _0x12e13e=_0x26f9ac;switch(_0x1dd333){case b[_0x12e13e(0x199)][_0x12e13e(0xe8)]:this[_0x12e13e(0x159)]();break;case b[_0x12e13e(0x199)][_0x12e13e(0x14a)]:this['_handleOnline']();break;}}),this[_0x26f9ac(0x18a)][_0x26f9ac(0x196)][_0x26f9ac(0x11a)](I[_0x26f9ac(0x15c)](this[_0x26f9ac(0x190)]))[_0x26f9ac(0x152)](_0x181cb7=>{const _0x24cbf5=_0x26f9ac,{eventID:_0x223e7b}=_0x181cb7;switch(_0x223e7b){case d[_0x24cbf5(0x127)][_0x24cbf5(0x19f)]:this[_0x24cbf5(0x18e)](_0x181cb7);break;case d[_0x24cbf5(0x127)][_0x24cbf5(0x1b6)]:this['_handleOperation'](_0x181cb7);break;case d[_0x24cbf5(0x127)][_0x24cbf5(0x185)]:this['_handleTerminate']();break;case d['CollaborationEvent'][_0x24cbf5(0x129)]:this[_0x24cbf5(0x19d)](_0x181cb7);break;}}));}['tryStartPresenting'](){const _0x30eb52=_0x34e30e;this[_0x30eb52(0x18a)][_0x30eb52(0xeb)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x30eb52(0x171)],'userID':this[_0x30eb52(0x18a)][_0x30eb52(0x11b)]()}},this['_unitID']);}[_0x34e30e(0x1b2)](){const _0x28e836=_0x34e30e;this['_status']===_0x28e836(0x134)&&(this[_0x28e836(0x18d)][_0x28e836(0x15a)](_0x28e836(0x188)),this['_collabSession'][_0x28e836(0xeb)]({'eventID':d['CollaborationEvent'][_0x28e836(0x185)],'data':{'unitID':this[_0x28e836(0x171)]}},this[_0x28e836(0x171)]));}['startFollowing'](){const _0x1a7365=_0x34e30e;this[_0x1a7365(0x167)]===_0x1a7365(0x173)&&(this[_0x1a7365(0x18d)]['next'](_0x1a7365(0x166)),this[_0x1a7365(0x139)]());}['stopFollowing'](){const _0x177c2e=_0x34e30e;this['_status']==='following'&&this[_0x177c2e(0x109)]();}[_0x34e30e(0x18e)](_0x9e7d4d){const _0x15838f=_0x34e30e,{presenter:_0x2df9fb}=_0x9e7d4d[_0x15838f(0x175)],_0x44cc36=this[_0x15838f(0x18a)][_0x15838f(0x11b)]();this[_0x15838f(0x1a4)]=_0x2df9fb,_0x2df9fb===_0x44cc36?(this[_0x15838f(0x109)](),this[_0x15838f(0x15d)]()):this[_0x15838f(0x167)]!=='not-following'&&(this[_0x15838f(0x1a5)](),this[_0x15838f(0x139)]());}[_0x34e30e(0x17d)](){const _0x3b3d41=_0x34e30e,_0x2515cd={'eventID':d[_0x3b3d41(0x127)][_0x3b3d41(0x193)]};this[_0x3b3d41(0x18a)][_0x3b3d41(0xeb)](_0x2515cd,this[_0x3b3d41(0x171)]);}[_0x34e30e(0x113)](){const _0xb74107=_0x34e30e;this[_0xb74107(0x1a4)]=null,this[_0xb74107(0x167)]!==_0xb74107(0x134)&&this[_0xb74107(0x169)]();}[_0x34e30e(0x19d)](_0x118bd4){const _0xffed85=_0x34e30e;if(this[_0xffed85(0x167)]===_0xffed85(0x166)&&this[_0xffed85(0x1a4)]===_0x118bd4[_0xffed85(0x175)][_0xffed85(0x16d)]){const _0xbe1e12=d['parseProtocolChangeset'](_0x118bd4[_0xffed85(0x175)])[_0xffed85(0xf3)][_0xffed85(0xe7)]()['find'](_0x13f420=>_0x13f420['id']===C[_0xffed85(0x13e)]['id']);if(_0xbe1e12){const _0x54e9e6=_0xbe1e12[_0xffed85(0x137)][_0xffed85(0x1b9)],_0x36c88b=_0xbe1e12[_0xffed85(0x137)]['sheet']['id'];setTimeout(()=>{const _0x137a07=_0xffed85;this['_commandService'][_0x137a07(0x107)](C[_0x137a07(0x133)]['id'],{'unitId':_0x54e9e6,'subUnitId':_0x36c88b},{'fromCollab':!0x0});});}}}[_0x34e30e(0x15d)](){const _0x59f160=_0x34e30e;this[_0x59f160(0x18d)][_0x59f160(0x15a)]('presenting');const _0x1a9f6c=new Map(),_0x252a9f=this[_0x59f160(0x10c)]=new o[(_0x59f160(0x149))]();_0x252a9f[_0x59f160(0xfd)](o['toDisposable'](()=>{const _0x9d2464=_0x59f160;_0x1a9f6c[_0x9d2464(0x108)](_0x34eace=>_0x34eace['complete']()),_0x1a9f6c[_0x9d2464(0x17f)]();})),_0x252a9f[_0x59f160(0xfd)](this[_0x59f160(0x1a2)][_0x59f160(0x136)](_0x3ae62a=>{const _0x313966=_0x59f160;var _0x2e7aa3;if(_0x3ae62a[_0x313966(0x147)]!==o['CommandType'][_0x313966(0x178)]||!this['_liveShareService'][_0x313966(0xff)](_0x3ae62a['id']))return;const {id:_0xed34b5}=_0x3ae62a;let _0x10af5c;_0x1a9f6c[_0x313966(0x138)](_0xed34b5)?_0x10af5c=_0x1a9f6c[_0x313966(0x18b)](_0xed34b5):(_0x10af5c=new O[(_0x313966(0x16f))](),_0x1a9f6c['set'](_0xed34b5,_0x10af5c),_0x10af5c[_0x313966(0x11a)](I['throttleTime']((_0x2e7aa3=this[_0x313966(0x17a)][_0x313966(0x116)](k))!=null?_0x2e7aa3:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x313966(0x152)](_0xfd80e4=>{const _0x46dab1=_0x313966;this['_collabSession']['send']({'eventID':d['CollaborationEvent'][_0x46dab1(0x1b6)],'data':{'unitID':this[_0x46dab1(0x171)],'operations':{[_0xfd80e4['id']]:{'id':_0xfd80e4['id'],'params':JSON[_0x46dab1(0x195)](_0xfd80e4[_0x46dab1(0x137)])}}}},this['_unitID']);})),_0x10af5c[_0x313966(0x15a)](_0x3ae62a);})),this[_0x59f160(0x184)]['getInitialStates'](this[_0x59f160(0x171)])[_0x59f160(0x108)](_0x25221a=>this[_0x59f160(0x18a)][_0x59f160(0xeb)]({'eventID':d[_0x59f160(0x127)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x25221a['id']]:{'id':_0x25221a['id'],'params':JSON[_0x59f160(0x195)](_0x25221a[_0x59f160(0x137)])}}}},this[_0x59f160(0x171)]));}[_0x34e30e(0x1a5)](){const _0x5957d0=_0x34e30e;var _0x334ccd;this[_0x5957d0(0x18d)][_0x5957d0(0x15a)]('idle'),(_0x334ccd=this[_0x5957d0(0x10c)])==null||_0x334ccd[_0x5957d0(0x158)](),this[_0x5957d0(0x10c)]=null;}[_0x34e30e(0x139)](){const _0x5a576e=_0x34e30e;var _0x6cb1b3;(_0x6cb1b3=this[_0x5a576e(0x10c)])==null||_0x6cb1b3[_0x5a576e(0x158)](),this[_0x5a576e(0x18d)][_0x5a576e(0x15a)](_0x5a576e(0x166));}[_0x34e30e(0x169)](){const _0x5373e7=_0x34e30e;var _0x28fb05;this[_0x5373e7(0x18d)][_0x5373e7(0x15a)](_0x5373e7(0x188)),(_0x28fb05=this[_0x5373e7(0x10c)])==null||_0x28fb05[_0x5373e7(0x158)](),this[_0x5373e7(0x10c)]=null;}[_0x34e30e(0x109)](){const _0xbd9355=_0x34e30e;var _0x4ae210;this['_status$'][_0xbd9355(0x15a)]('not-following'),(_0x4ae210=this['_commandDisposable'])==null||_0x4ae210[_0xbd9355(0x158)]();}[_0x34e30e(0x182)](_0x258d97){const _0x93e743=_0x34e30e;if(['presenting',_0x93e743(0x173),_0x93e743(0x14b)]['includes'](this[_0x93e743(0x167)])||!_0x258d97[_0x93e743(0x175)][_0x93e743(0x191)]||_0x258d97[_0x93e743(0x175)][_0x93e743(0x191)]===this[_0x93e743(0x18a)][_0x93e743(0x11b)]())return;this[_0x93e743(0x167)]===_0x93e743(0x188)&&this['_startFollowing']();const _0xfe2aa6=_0x258d97[_0x93e743(0x175)][_0x93e743(0x141)];Object[_0x93e743(0x194)](_0xfe2aa6)[_0x93e743(0x108)](_0x4bb2fb=>{const _0x5a218d=_0x93e743;this[_0x5a218d(0x1a2)]['executeCommand'](_0x4bb2fb['id'],_0x4bb2fb[_0x5a218d(0x137)]?JSON['parse'](_0x4bb2fb[_0x5a218d(0x137)]):null,{'fromCollab':!0x0});});}[_0x34e30e(0x159)](){const _0x4b3ea4=_0x34e30e;var _0x5198cf;this[_0x4b3ea4(0x18d)][_0x4b3ea4(0x15a)](_0x4b3ea4(0x14b)),(_0x5198cf=this[_0x4b3ea4(0x10c)])==null||_0x5198cf[_0x4b3ea4(0x158)]();}[_0x34e30e(0xfb)](){const _0x567941=_0x34e30e;this[_0x567941(0x18d)][_0x567941(0x15a)](_0x567941(0x188)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x34e30e(0x11e)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0xe2942c=_0x34e30e,_0x1aabd0=p[_0xe2942c(0x18c)](exports[_0xe2942c(0x123)]),_0x296137=p['useDependency'](o[_0xe2942c(0x17c)]),_0x25fbaf=p[_0xe2942c(0x121)](()=>_0x296137[_0xe2942c(0x112)](o[_0xe2942c(0xf0)][_0xe2942c(0x183)]),void 0x0,!0x1,[]),[_0x3bc801,_0x4beee6]=v[_0xe2942c(0x120)](null),[_0x136ca0,_0x44ae27]=v[_0xe2942c(0x120)](u['IDLE']),_0x98072f=v[_0xe2942c(0x1ac)](null);return v['useEffect'](()=>(_0x25fbaf&&_0x1aabd0[_0xe2942c(0x105)](_0x25fbaf['getUnitId']())[_0xe2942c(0xe9)](_0x5b2c56=>{const _0x48e2c9=_0xe2942c;_0x4beee6(_0x5b2c56),_0x98072f[_0x48e2c9(0x124)]=_0x5b2c56[_0x48e2c9(0x1b1)][_0x48e2c9(0x152)](_0x1258c3=>{_0x44ae27(_0x1258c3);});}),()=>{const _0x5b11ff=_0xe2942c;var _0x50db71;(_0x50db71=_0x98072f[_0x5b11ff(0x124)])==null||_0x50db71[_0x5b11ff(0x168)](),_0x98072f[_0x5b11ff(0x124)]=null;}),[_0x25fbaf,_0x1aabd0]),_0x3bc801?l['jsx'](f[_0xe2942c(0x1a8)],{'align':_0xe2942c(0x174),'disabled':_0x136ca0===u[_0xe2942c(0xe8)],'className':_0xe2942c(0x11f),'overlay':l[_0xe2942c(0x1a1)](W,{'status':_0x136ca0,'coordinator':_0x3bc801}),'children':l[_0xe2942c(0x1a1)](_0xe2942c(0xf8),{'className':f[_0xe2942c(0x146)](_0xe2942c(0x12a),{'univer-cursor-not-allowed':_0x136ca0===u[_0xe2942c(0xe8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x136ca0!==u['OFFLINE']}),'type':_0xe2942c(0xf8),'children':l[_0xe2942c(0x1a1)](R,{'className':_0xe2942c(0xec)})})}):null;}function W(_0xcecab){const _0x44c63d=_0x34e30e,{status:_0x3cb28b,coordinator:_0x3315b7}=_0xcecab;switch(_0x3cb28b){case u['IDLE']:return l[_0x44c63d(0x1a1)](G,{'coordinator':_0x3315b7});case u['FOLLOWING']:return l[_0x44c63d(0x1a1)](B,{'coordinator':_0x3315b7});case u[_0x44c63d(0x1b5)]:return l[_0x44c63d(0x1a1)](Y,{'coordinator':_0x3315b7});case u[_0x44c63d(0xe8)]:return l[_0x44c63d(0x1a1)](J,{});case u[_0x44c63d(0x177)]:return l[_0x44c63d(0x1a1)](Z,{'coordinator':_0x3315b7});default:return null;}}function G(_0x1494a0){const _0x595c00=_0x34e30e,{coordinator:_0x578258}=_0x1494a0;return l[_0x595c00(0x148)](l[_0x595c00(0x122)],{'children':[l[_0x595c00(0x1a1)](_0x595c00(0x143),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l['jsx'](f['Button'],{'onClick':()=>_0x578258[_0x595c00(0xed)](),'children':'Start'})]});}function B(_0x5715c7){const _0x40ac55=_0x34e30e,{coordinator:_0x5dc03b}=_0x5715c7;return l['jsxs'](l[_0x40ac55(0x122)],{'children':[l[_0x40ac55(0x1a1)](_0x40ac55(0x143),{'className':_0x40ac55(0x140),'children':_0x40ac55(0x18f)}),l[_0x40ac55(0x1a1)](f[_0x40ac55(0x1a6)],{'onClick':()=>_0x5dc03b['stopFollowing'](),'children':_0x40ac55(0x110)})]});}function Y(_0x380457){const _0x276578=_0x34e30e,{coordinator:_0x4a55ea}=_0x380457;return l[_0x276578(0x148)](l[_0x276578(0x122)],{'children':[l[_0x276578(0x1a1)](_0x276578(0x143),{'className':_0x276578(0x140),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x276578(0x1a1)](f['Button'],{'variant':_0x276578(0x135),'onClick':()=>_0x4a55ea[_0x276578(0xf5)](),'children':_0x276578(0x12e)})]});}function Z(_0x5cc8a0){const _0x3fe948=_0x34e30e,{coordinator:_0x24a547}=_0x5cc8a0;return l['jsxs'](l[_0x3fe948(0x122)],{'children':[l['jsx'](_0x3fe948(0x143),{'className':_0x3fe948(0x140),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3fe948(0x1a1)](f[_0x3fe948(0x1a6)],{'variant':_0x3fe948(0x187),'onClick':()=>_0x24a547[_0x3fe948(0x1b2)](),'children':_0x3fe948(0x114)})]});}function J(){const _0x8629dd=_0x34e30e;return l[_0x8629dd(0x1a1)](l['Fragment'],{'children':_0x8629dd(0x11d)});}var K=Object[_0x34e30e(0x14d)],z=(_0x42a351,_0x506cd7,_0x248056,_0x3f5ab2)=>{const _0x180a26=_0x34e30e;for(var _0x46d223=_0x3f5ab2>0x1?void 0x0:_0x3f5ab2?K(_0x506cd7,_0x248056):_0x506cd7,_0x19abb4=_0x42a351[_0x180a26(0x16b)]-0x1,_0x457e85;_0x19abb4>=0x0;_0x19abb4--)(_0x457e85=_0x42a351[_0x19abb4])&&(_0x46d223=_0x457e85(_0x46d223)||_0x46d223);return _0x46d223;},L=(_0x5d8f2b,_0x4ec8a2)=>(_0x3926cf,_0x3fe64a)=>_0x4ec8a2(_0x3926cf,_0x3fe64a,_0x5d8f2b);exports[_0x34e30e(0x197)]=class extends o['Disposable']{constructor(_0x5dcdb6,_0xfd77e4){const _0x26dcc2=_0x34e30e;super(),this[_0x26dcc2(0x13a)]=_0x5dcdb6,this['_uiPartsService']=_0xfd77e4,this[_0x26dcc2(0x10d)]();}[_0x34e30e(0x10d)](){const _0x4d5890=_0x34e30e;this[_0x4d5890(0x161)](this['_uiPartsService']['registerComponent'](p[_0x4d5890(0x192)]['HEADER_MENU'],()=>p[_0x4d5890(0x19c)]($,this['_injector'])));}},exports[_0x34e30e(0x197)]=z([L(0x0,o['Inject'](o[_0x34e30e(0x1b0)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x34e30e(0x10a),w={};var X=Object[_0x34e30e(0x14d)],ee=(_0x297447,_0x7fe3b5,_0x12adbe,_0x205c53)=>{const _0x466bb6=_0x34e30e;for(var _0x25e8fe=_0x205c53>0x1?void 0x0:_0x205c53?X(_0x7fe3b5,_0x12adbe):_0x7fe3b5,_0x18e87e=_0x297447[_0x466bb6(0x16b)]-0x1,_0x38e4c3;_0x18e87e>=0x0;_0x18e87e--)(_0x38e4c3=_0x297447[_0x18e87e])&&(_0x25e8fe=_0x38e4c3(_0x25e8fe)||_0x25e8fe);return _0x25e8fe;},te=(_0x4e2d70,_0x1704e3)=>(_0x1f18ac,_0x15f2d6)=>_0x1704e3(_0x1f18ac,_0x15f2d6,_0x4e2d70);let m=class extends o[_0x34e30e(0x17e)]{constructor(_0xd0e5c8){const _0x5137cf=_0x34e30e;super(),this[_0x5137cf(0x184)]=_0xd0e5c8,this['_init']();}[_0x34e30e(0x128)](){const _0x33b1be=_0x34e30e;[D['SetZoomRatioOperation']['id'],D[_0x33b1be(0xf4)]['id'],C[_0x33b1be(0x133)]['id']]['forEach'](_0x5dc238=>{const _0x1e97f7=_0x33b1be;this[_0x1e97f7(0x161)](this[_0x1e97f7(0x184)][_0x1e97f7(0x16e)](_0x5dc238));});}};m=ee([te(0x0,o[_0x34e30e(0x12d)](E))],m);var ie=Object[_0x34e30e(0x179)],se=Object[_0x34e30e(0x14d)],ne=(_0x593bc3,_0x389c84,_0x41782b)=>_0x389c84 in _0x593bc3?ie(_0x593bc3,_0x389c84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41782b}):_0x593bc3[_0x389c84]=_0x41782b,re=(_0x146540,_0x330536,_0x18c15d,_0x4509d7)=>{for(var _0x35d12b=_0x4509d7>0x1?void 0x0:_0x4509d7?se(_0x330536,_0x18c15d):_0x330536,_0x540af5=_0x146540['length']-0x1,_0x44b5fe;_0x540af5>=0x0;_0x540af5--)(_0x44b5fe=_0x146540[_0x540af5])&&(_0x35d12b=_0x44b5fe(_0x35d12b)||_0x35d12b);return _0x35d12b;},N=(_0x499adc,_0x43f0af)=>(_0x38b7f0,_0x566437)=>_0x43f0af(_0x38b7f0,_0x566437,_0x499adc),A=(_0x34cddc,_0x47ab4a,_0x50c13d)=>ne(_0x34cddc,typeof _0x47ab4a!=_0x34e30e(0x170)?_0x47ab4a+'':_0x47ab4a,_0x50c13d);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x34e30e(0x1a9)]=class extends o[_0x34e30e(0x125)]{constructor(_0x47b802=w,_0x2ed751,_0xbc0bfc){const _0x1c8436=_0x34e30e;super(),this['_config']=_0x47b802,this[_0x1c8436(0x13a)]=_0x2ed751,this[_0x1c8436(0x17a)]=_0xbc0bfc;const {..._0x131c65}=o['merge']({},w,this[_0x1c8436(0x16a)]);this[_0x1c8436(0x17a)][_0x1c8436(0x1ad)](Q,_0x131c65);}[_0x34e30e(0x198)](){const _0x2356d8=_0x34e30e;o[_0x2356d8(0x160)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x2356d8(0x123)]],[m],[exports[_0x2356d8(0x197)]]],this['_config'][_0x2356d8(0x186)])),o['touchDependencies'](this[_0x2356d8(0x13a)],[[m]]);}['onRendered'](){const _0x4f0f9c=_0x34e30e;o[_0x4f0f9c(0x1b8)](this['_injector'],[[exports[_0x4f0f9c(0x197)]]]);}},A(exports[_0x34e30e(0x1a9)],_0x34e30e(0x147),o['UniverInstanceType'][_0x34e30e(0x131)]),A(exports[_0x34e30e(0x1a9)],_0x34e30e(0x1af),oe),exports[_0x34e30e(0x1a9)]=re([o[_0x34e30e(0x150)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x34e30e(0x12d)](o['Injector'])),N(0x2,o[_0x34e30e(0x11e)])],exports[_0x34e30e(0x1a9)]),exports['LiveShare']=$,exports[_0x34e30e(0x19b)]=E,exports[_0x34e30e(0x14c)]=u;
1
+ 'use strict';const _0x4c144d=_0x38ba;(function(_0x52f6af,_0x490b91){const _0x18de77=_0x38ba,_0x40b1e5=_0x52f6af();while(!![]){try{const _0x139fbb=parseInt(_0x18de77(0x28b))/0x1*(-parseInt(_0x18de77(0x224))/0x2)+parseInt(_0x18de77(0x1bb))/0x3+-parseInt(_0x18de77(0x23c))/0x4*(-parseInt(_0x18de77(0x1da))/0x5)+-parseInt(_0x18de77(0x254))/0x6*(parseInt(_0x18de77(0x24c))/0x7)+parseInt(_0x18de77(0x206))/0x8*(parseInt(_0x18de77(0x1c5))/0x9)+-parseInt(_0x18de77(0x1df))/0xa*(-parseInt(_0x18de77(0x1bc))/0xb)+parseInt(_0x18de77(0x255))/0xc*(-parseInt(_0x18de77(0x283))/0xd);if(_0x139fbb===_0x490b91)break;else _0x40b1e5['push'](_0x40b1e5['shift']());}catch(_0x40ebb8){_0x40b1e5['push'](_0x40b1e5['shift']());}}}(_0x334a,0x9bb2e));var T=Object['defineProperty'],U=(_0x372489,_0x1b5dac,_0x3834bb)=>_0x1b5dac in _0x372489?T(_0x372489,_0x1b5dac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3834bb}):_0x372489[_0x1b5dac]=_0x3834bb,_=(_0x339d8b,_0x5b6779,_0x4ca0f5)=>U(_0x339d8b,typeof _0x5b6779!=_0x4c144d(0x286)?_0x5b6779+'':_0x5b6779,_0x4ca0f5);Object['defineProperty'](exports,Symbol[_0x4c144d(0x208)],{'value':_0x4c144d(0x22e)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x38ba(_0x330d13,_0x28213c){_0x330d13=_0x330d13-0x1b8;const _0x334a5f=_0x334a();let _0x38ba48=_0x334a5f[_0x330d13];return _0x38ba48;}function x({ref:_0x350f7f,..._0x34316c}){const _0x23ef38=_0x4c144d,{icon:_0x1ff6ec,id:_0x1ac6fd,className:_0x2bf88e,extend:_0x3e98fe,..._0x45d2f8}=_0x34316c,_0x490e88=(_0x23ef38(0x268)+_0x1ac6fd+'\x20'+(_0x2bf88e||''))['trim'](),_0x51be12=v[_0x23ef38(0x205)]('_'+H());return j(_0x1ff6ec,''+_0x1ac6fd,{'defIds':_0x1ff6ec[_0x23ef38(0x235)],'idSuffix':_0x51be12['current']},{'ref':_0x350f7f,'className':_0x490e88,..._0x45d2f8},_0x3e98fe);}function j(_0x1b877d,_0x1508d5,_0x258bbb,_0x93af81,_0xe0ff8c){const _0x62c8f0=_0x4c144d;return v[_0x62c8f0(0x253)](_0x1b877d[_0x62c8f0(0x26a)],{'key':_0x1508d5,...y(_0x1b877d,_0x258bbb,_0xe0ff8c),..._0x93af81},(F(_0x1b877d,_0x258bbb)[_0x62c8f0(0x25e)]||[])['map']((_0x355630,_0x4abbea)=>j(_0x355630,_0x1508d5+'-'+_0x1b877d['tag']+'-'+_0x4abbea,_0x258bbb,void 0x0,_0xe0ff8c)));}function y(_0x3e81dc,_0xbacff4,_0x59d18b){const _0x1ff4fc=_0x4c144d,_0x160918={..._0x3e81dc[_0x1ff4fc(0x271)]};_0x59d18b!=null&&_0x59d18b['colorChannel1']&&_0x160918[_0x1ff4fc(0x1c4)]==='colorChannel1'&&(_0x160918[_0x1ff4fc(0x1c4)]=_0x59d18b['colorChannel1']),_0x3e81dc[_0x1ff4fc(0x26a)]===_0x1ff4fc(0x1b8)&&_0x160918['id']&&(_0x160918['id']=_0x160918['id']+_0xbacff4['idSuffix']),Object[_0x1ff4fc(0x1e9)](_0x160918)[_0x1ff4fc(0x1c3)](([_0x6e33ef,_0x25fef3])=>{const _0x1a4dd4=_0x1ff4fc;_0x6e33ef===_0x1a4dd4(0x1b8)&&typeof _0x25fef3==_0x1a4dd4(0x1ba)&&(_0x160918[_0x6e33ef]=_0x25fef3[_0x1a4dd4(0x1ec)](/url\(#(.*)\)/,'url(#$1'+_0xbacff4[_0x1a4dd4(0x204)]+')'));});const {defIds:_0x2f19b5}=_0xbacff4;return!_0x2f19b5||_0x2f19b5[_0x1ff4fc(0x232)]===0x0||(_0x3e81dc[_0x1ff4fc(0x26a)]===_0x1ff4fc(0x284)&&_0x160918[_0x1ff4fc(0x1db)]&&(_0x160918[_0x1ff4fc(0x1db)]=_0x160918[_0x1ff4fc(0x1db)]+_0xbacff4[_0x1ff4fc(0x204)]),Object['entries'](_0x160918)[_0x1ff4fc(0x1c3)](([_0x3abaf5,_0x32284a])=>{const _0x5a5cb5=_0x1ff4fc;typeof _0x32284a==_0x5a5cb5(0x1ba)&&(_0x160918[_0x3abaf5]=_0x32284a[_0x5a5cb5(0x1ec)](/url\(#(.*)\)/,_0x5a5cb5(0x1d6)+_0xbacff4[_0x5a5cb5(0x204)]+')'));})),_0x160918;}function F(_0x497c5e,_0x29fc4a){const _0x480671=_0x4c144d;var _0x3c9486;const {defIds:_0x4039a6}=_0x29fc4a;return!_0x4039a6||_0x4039a6['length']===0x0?_0x497c5e:_0x497c5e['tag']===_0x480671(0x233)&&((_0x3c9486=_0x497c5e[_0x480671(0x25e)])!=null&&_0x3c9486[_0x480671(0x232)])?{..._0x497c5e,'children':_0x497c5e[_0x480671(0x25e)][_0x480671(0x223)](_0x5a01a0=>typeof _0x5a01a0[_0x480671(0x271)]['id']==_0x480671(0x1ba)&&_0x4039a6&&_0x4039a6['includes'](_0x5a01a0['attrs']['id'])?{..._0x5a01a0,'attrs':{..._0x5a01a0[_0x480671(0x271)],'id':_0x5a01a0[_0x480671(0x271)]['id']+_0x29fc4a[_0x480671(0x204)]}}:_0x5a01a0)}:_0x497c5e;}function H(){const _0x3162c5=_0x4c144d;return Math[_0x3162c5(0x277)]()[_0x3162c5(0x218)](0x24)['substring'](0x2,0x8);}x[_0x4c144d(0x1dd)]=_0x4c144d(0x203);const V={'tag':_0x4c144d(0x26d),'attrs':{'xmlns':_0x4c144d(0x231),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x4c144d(0x1d8),'height':_0x4c144d(0x1d8)},'children':[{'tag':_0x4c144d(0x1f3),'attrs':{'fill':_0x4c144d(0x1d3),'d':_0x4c144d(0x1de)}},{'tag':_0x4c144d(0x1f3),'attrs':{'fill':_0x4c144d(0x1d3),'d':_0x4c144d(0x276),'fillRule':_0x4c144d(0x1fa),'clipRule':_0x4c144d(0x1fa)}}]},R=v[_0x4c144d(0x260)](function(_0x28c5f0,_0x435be3){const _0x2871e2=_0x4c144d;return v[_0x2871e2(0x253)](x,Object['assign']({},_0x28c5f0,{'id':_0x2871e2(0x211),'ref':_0x435be3,'icon':V}));});R['displayName']=_0x4c144d(0x1c7);class E extends o[_0x4c144d(0x27c)]{constructor(){const _0x5d114b=_0x4c144d;super(...arguments),_(this,_0x5d114b(0x213),new Set()),_(this,_0x5d114b(0x269),new Set());}['registerSharedOperation'](_0x31a16b){const _0x4016a5=_0x4c144d;return this[_0x4016a5(0x213)][_0x4016a5(0x282)](_0x31a16b),o['toDisposable'](()=>this[_0x4016a5(0x213)][_0x4016a5(0x28c)](_0x31a16b));}[_0x4c144d(0x244)](_0x1f0a0c){const _0xadb2f=_0x4c144d;return this[_0xadb2f(0x269)]['add'](_0x1f0a0c),o[_0xadb2f(0x1d1)](()=>this['_reporters']['delete'](_0x1f0a0c));}[_0x4c144d(0x1e0)](_0x3cefdb){const _0x318d1d=_0x4c144d;return this[_0x318d1d(0x213)][_0x318d1d(0x201)](_0x3cefdb);}[_0x4c144d(0x262)](_0x924b49){const _0x1d151b=_0x4c144d;return Array[_0x1d151b(0x1f0)](this[_0x1d151b(0x269)])[_0x1d151b(0x223)](_0x6837c0=>_0x6837c0(_0x924b49));}}var M=Object[_0x4c144d(0x285)],P=(_0x2d4688,_0x2dd462,_0x5167d1,_0x4a09f4)=>{const _0x2cd18c=_0x4c144d;for(var _0x5372db=_0x4a09f4>0x1?void 0x0:_0x4a09f4?M(_0x2dd462,_0x5167d1):_0x2dd462,_0xeb3719=_0x2d4688[_0x2cd18c(0x232)]-0x1,_0x5dedbc;_0xeb3719>=0x0;_0xeb3719--)(_0x5dedbc=_0x2d4688[_0xeb3719])&&(_0x5372db=_0x5dedbc(_0x5372db)||_0x5372db);return _0x5372db;},S=(_0x1b7351,_0x236383)=>(_0x333325,_0x24cda1)=>_0x236383(_0x333325,_0x24cda1,_0x1b7351);exports[_0x4c144d(0x26b)]=class extends o[_0x4c144d(0x26e)]{constructor(_0x9f02fa,_0x12cd2b,_0x38dad1){const _0x31dd78=_0x4c144d;super(),_(this,_0x31dd78(0x1d4),new Map()),(this['_univerInstanceService']=_0x9f02fa,this[_0x31dd78(0x24e)]=_0x12cd2b,this[_0x31dd78(0x1f4)]=_0x38dad1,this[_0x31dd78(0x24d)]());}async[_0x4c144d(0x1d2)](_0x47061c){const _0x1f6d08=_0x4c144d;return this[_0x1f6d08(0x1d4)]['has'](_0x47061c)||await this[_0x1f6d08(0x292)](_0x47061c),this[_0x1f6d08(0x1d4)][_0x1f6d08(0x22f)](_0x47061c);}[_0x4c144d(0x27d)](_0x11c86a){const _0x10e560=_0x4c144d;var _0xb9176b;return(_0xb9176b=this[_0x10e560(0x1d4)][_0x10e560(0x22f)](_0x11c86a))!=null?_0xb9176b:null;}[_0x4c144d(0x24d)](){const _0x2981fb=_0x4c144d;this[_0x2981fb(0x273)][_0x2981fb(0x27a)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x2981fb(0x21f)](I[_0x2981fb(0x291)](this[_0x2981fb(0x1d5)]))[_0x2981fb(0x21c)](async _0x401da0=>{const _0x292c2e=_0x2981fb,_0x34c65a=_0x401da0[_0x292c2e(0x216)]();this[_0x292c2e(0x1d4)]['has'](_0x34c65a)||this['_startLiveShareCoordinator'](_0x34c65a);}),this[_0x2981fb(0x273)][_0x2981fb(0x281)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x2981fb(0x21f)](I[_0x2981fb(0x291)](this[_0x2981fb(0x1d5)]))[_0x2981fb(0x21c)](_0xc44b5d=>{const _0x472469=_0x2981fb,_0x4a427a=_0xc44b5d[_0x472469(0x216)](),_0x17ea28=this[_0x472469(0x1d4)][_0x472469(0x22f)](_0x4a427a);_0x17ea28==null||_0x17ea28[_0x472469(0x1fd)]();});}async[_0x4c144d(0x292)](_0x27992b){const _0x4869f6=_0x4c144d,_0x3f1878=await this[_0x4869f6(0x1f4)][_0x4869f6(0x1f1)](_0x27992b),_0x519923=this[_0x4869f6(0x24e)][_0x4869f6(0x290)](exports[_0x4869f6(0x245)],_0x27992b,_0x3f1878);return _0x519923[_0x4869f6(0x289)](),this[_0x4869f6(0x1d4)][_0x4869f6(0x234)](_0x27992b,_0x519923),_0x519923;}},exports['LiveShareController']=P([S(0x0,o[_0x4c144d(0x25a)]),S(0x1,o['Inject'](o[_0x4c144d(0x1fe)])),S(0x2,o['Inject'](b[_0x4c144d(0x1c2)]))],exports['LiveShareController']);var u=(_0x410785=>(_0x410785[_0x4c144d(0x256)]='offline',_0x410785[_0x4c144d(0x1eb)]=_0x4c144d(0x1ed),_0x410785[_0x4c144d(0x251)]=_0x4c144d(0x25f),_0x410785[_0x4c144d(0x1e2)]='not-following',_0x410785[_0x4c144d(0x1c1)]=_0x4c144d(0x1e4),_0x410785))(u||{});const k=_0x4c144d(0x270),q=0xc8;exports[_0x4c144d(0x245)]=class extends o['RxDisposable']{constructor(_0x539f62,_0x25d8cf,_0x49d7d0,_0x1bd4bf,_0x2b55ef){const _0x110f7a=_0x4c144d;super(),_(this,_0x110f7a(0x226),new O[(_0x110f7a(0x22c))](_0x110f7a(0x1ed))),_(this,'status$',this[_0x110f7a(0x226)][_0x110f7a(0x225)]()),_(this,'_init',!0x1),_(this,_0x110f7a(0x28f),null),_(this,_0x110f7a(0x222),null),(this['_unitID']=_0x539f62,this[_0x110f7a(0x21a)]=_0x25d8cf,this[_0x110f7a(0x248)]=_0x49d7d0,this[_0x110f7a(0x219)]=_0x1bd4bf,this[_0x110f7a(0x1bf)]=_0x2b55ef);}get[_0x4c144d(0x27b)](){const _0x1ea73e=_0x4c144d;return this[_0x1ea73e(0x226)][_0x1ea73e(0x266)]();}[_0x4c144d(0x1fd)](){const _0x3d92da=_0x4c144d;var _0x1f095d;(_0x1f095d=this[_0x3d92da(0x28f)])==null||_0x1f095d[_0x3d92da(0x1fd)](),this[_0x3d92da(0x226)][_0x3d92da(0x250)](_0x3d92da(0x1ed)),this[_0x3d92da(0x226)][_0x3d92da(0x267)]();}['getStatus'](){const _0x1b1c21=_0x4c144d;return this[_0x1b1c21(0x27b)];}[_0x4c144d(0x289)](){const _0x4644e2=_0x4c144d;this[_0x4644e2(0x24d)]||(this[_0x4644e2(0x24d)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](I[_0x4644e2(0x291)](this[_0x4644e2(0x1d5)]))[_0x4644e2(0x21c)](_0xd89f59=>{const _0x2942f4=_0x4644e2;switch(_0xd89f59){case b[_0x2942f4(0x1e1)]['OFFLINE']:this['_handleOffline']();break;case b[_0x2942f4(0x1e1)][_0x2942f4(0x1ca)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x4644e2(0x20e)]['pipe'](I[_0x4644e2(0x291)](this[_0x4644e2(0x1d5)]))['subscribe'](_0xb8652f=>{const _0xfc8ac7=_0x4644e2,{eventID:_0x8c790e}=_0xb8652f;switch(_0x8c790e){case d[_0xfc8ac7(0x1f6)][_0xfc8ac7(0x1f2)]:this['_handleNewHost'](_0xb8652f);break;case d[_0xfc8ac7(0x1f6)][_0xfc8ac7(0x200)]:this[_0xfc8ac7(0x23b)](_0xb8652f);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0xfc8ac7(0x1e7)]();break;case d[_0xfc8ac7(0x1f6)]['NEW_CHANGESETS']:this[_0xfc8ac7(0x1c0)](_0xb8652f);break;}}));}[_0x4c144d(0x239)](){const _0x16db17=_0x4c144d;this[_0x16db17(0x21a)][_0x16db17(0x258)]({'eventID':d[_0x16db17(0x1f6)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x16db17(0x1e3)],'userID':this[_0x16db17(0x21a)]['getMemberID']()}},this['_unitID']);}[_0x4c144d(0x207)](){const _0x16e935=_0x4c144d;this[_0x16e935(0x27b)]==='presenting'&&(this[_0x16e935(0x226)]['next'](_0x16e935(0x1ed)),this[_0x16e935(0x21a)][_0x16e935(0x258)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x16e935(0x1e3)]}},this[_0x16e935(0x1e3)]));}['startFollowing'](){const _0x4198c1=_0x4c144d;this[_0x4198c1(0x27b)]===_0x4198c1(0x24a)&&(this[_0x4198c1(0x226)]['next'](_0x4198c1(0x25f)),this[_0x4198c1(0x23f)]());}[_0x4c144d(0x287)](){const _0x2ef4c9=_0x4c144d;this[_0x2ef4c9(0x27b)]===_0x2ef4c9(0x25f)&&this['_stopFollowing']();}[_0x4c144d(0x24f)](_0x41dae9){const _0x484f73=_0x4c144d,{presenter:_0x1f4bb8}=_0x41dae9[_0x484f73(0x1d9)],_0x2e985f=this[_0x484f73(0x21a)][_0x484f73(0x272)]();this[_0x484f73(0x222)]=_0x1f4bb8,_0x1f4bb8===_0x2e985f?(this['_stopFollowing'](),this[_0x484f73(0x228)]()):this[_0x484f73(0x27b)]!==_0x484f73(0x24a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x4c144d(0x1ef)](){const _0x3f074f=_0x4c144d,_0x3e1c6e={'eventID':d['CollaborationEvent'][_0x3f074f(0x23d)]};this[_0x3f074f(0x21a)][_0x3f074f(0x258)](_0x3e1c6e,this[_0x3f074f(0x1e3)]);}[_0x4c144d(0x1e7)](){const _0x3ea90c=_0x4c144d;this[_0x3ea90c(0x222)]=null,this['_status']!==_0x3ea90c(0x1e4)&&this[_0x3ea90c(0x215)]();}['_handleNewChangeSets'](_0x1bba6a){const _0x143d01=_0x4c144d;if(this[_0x143d01(0x27b)]===_0x143d01(0x25f)&&this[_0x143d01(0x222)]===_0x1bba6a[_0x143d01(0x1d9)][_0x143d01(0x1f5)]){const _0x58b5ed=d[_0x143d01(0x263)](_0x1bba6a[_0x143d01(0x1d9)])['mutations']['reverse']()['find'](_0xcfffc0=>_0xcfffc0['id']===C[_0x143d01(0x20b)]['id']);if(_0x58b5ed){const _0x591aaa=_0x58b5ed[_0x143d01(0x1ea)][_0x143d01(0x1cd)],_0x5deec7=_0x58b5ed[_0x143d01(0x1ea)][_0x143d01(0x1c8)]['id'];setTimeout(()=>{const _0x4bee75=_0x143d01;this[_0x4bee75(0x1bf)]['executeCommand'](C[_0x4bee75(0x28d)]['id'],{'unitId':_0x591aaa,'subUnitId':_0x5deec7},{'fromCollab':!0x0});});}}}[_0x4c144d(0x228)](){const _0x4ec3dc=_0x4c144d;this[_0x4ec3dc(0x226)][_0x4ec3dc(0x250)](_0x4ec3dc(0x1e4));const _0x14ddd1=new Map(),_0x21487e=this[_0x4ec3dc(0x28f)]=new o[(_0x4ec3dc(0x243))]();_0x21487e[_0x4ec3dc(0x282)](o[_0x4ec3dc(0x1d1)](()=>{const _0x242042=_0x4ec3dc;_0x14ddd1[_0x242042(0x1c3)](_0x12d286=>_0x12d286[_0x242042(0x267)]()),_0x14ddd1['clear']();})),_0x21487e[_0x4ec3dc(0x282)](this[_0x4ec3dc(0x1bf)][_0x4ec3dc(0x1e5)](_0x3e9d22=>{const _0x18c4f=_0x4ec3dc;var _0x3289d1;if(_0x3e9d22[_0x18c4f(0x1b9)]!==o[_0x18c4f(0x252)]['OPERATION']||!this['_liveShareService'][_0x18c4f(0x1e0)](_0x3e9d22['id']))return;const {id:_0x24e05b}=_0x3e9d22;let _0x2d6673;_0x14ddd1['has'](_0x24e05b)?_0x2d6673=_0x14ddd1[_0x18c4f(0x22f)](_0x24e05b):(_0x2d6673=new O[(_0x18c4f(0x1cf))](),_0x14ddd1[_0x18c4f(0x234)](_0x24e05b,_0x2d6673),_0x2d6673['pipe'](I[_0x18c4f(0x1f7)]((_0x3289d1=this['_configService']['getConfig'](k))!=null?_0x3289d1:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18c4f(0x21c)](_0x185ee4=>{const _0x17f02a=_0x18c4f;this[_0x17f02a(0x21a)][_0x17f02a(0x258)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x17f02a(0x1e3)],'operations':{[_0x185ee4['id']]:{'id':_0x185ee4['id'],'params':JSON[_0x17f02a(0x220)](_0x185ee4[_0x17f02a(0x1ea)])}}}},this[_0x17f02a(0x1e3)]);})),_0x2d6673[_0x18c4f(0x250)](_0x3e9d22);})),this[_0x4ec3dc(0x219)][_0x4ec3dc(0x262)](this['_unitID'])[_0x4ec3dc(0x1c3)](_0x185b04=>this[_0x4ec3dc(0x21a)][_0x4ec3dc(0x258)]({'eventID':d['CollaborationEvent'][_0x4ec3dc(0x200)],'data':{'unitID':this['_unitID'],'operations':{[_0x185b04['id']]:{'id':_0x185b04['id'],'params':JSON[_0x4ec3dc(0x220)](_0x185b04[_0x4ec3dc(0x1ea)])}}}},this['_unitID']));}[_0x4c144d(0x264)](){const _0xa9a15e=_0x4c144d;var _0x500228;this[_0xa9a15e(0x226)][_0xa9a15e(0x250)]('idle'),(_0x500228=this['_commandDisposable'])==null||_0x500228[_0xa9a15e(0x1fd)](),this[_0xa9a15e(0x28f)]=null;}[_0x4c144d(0x23f)](){const _0xd4f219=_0x4c144d;var _0x380d72;(_0x380d72=this[_0xd4f219(0x28f)])==null||_0x380d72[_0xd4f219(0x1fd)](),this[_0xd4f219(0x226)][_0xd4f219(0x250)]('following');}[_0x4c144d(0x215)](){const _0x4e4175=_0x4c144d;var _0x1b3462;this[_0x4e4175(0x226)][_0x4e4175(0x250)](_0x4e4175(0x1ed)),(_0x1b3462=this[_0x4e4175(0x28f)])==null||_0x1b3462[_0x4e4175(0x1fd)](),this[_0x4e4175(0x28f)]=null;}[_0x4c144d(0x280)](){const _0x5657e8=_0x4c144d;var _0x401e3f;this['_status$']['next']('not-following'),(_0x401e3f=this[_0x5657e8(0x28f)])==null||_0x401e3f[_0x5657e8(0x1fd)]();}[_0x4c144d(0x23b)](_0x10dd1d){const _0x3a5d68=_0x4c144d;if(['presenting',_0x3a5d68(0x24a),_0x3a5d68(0x279)]['includes'](this[_0x3a5d68(0x27b)])||!_0x10dd1d['data']['presenter']||_0x10dd1d[_0x3a5d68(0x1d9)][_0x3a5d68(0x1f9)]===this['_collabSession'][_0x3a5d68(0x272)]())return;this[_0x3a5d68(0x27b)]==='idle'&&this[_0x3a5d68(0x23f)]();const _0xde96=_0x10dd1d[_0x3a5d68(0x1d9)][_0x3a5d68(0x293)];Object[_0x3a5d68(0x27f)](_0xde96)[_0x3a5d68(0x1c3)](_0x4dbf77=>{const _0x32b3a1=_0x3a5d68;this[_0x32b3a1(0x1bf)]['executeCommand'](_0x4dbf77['id'],_0x4dbf77[_0x32b3a1(0x1ea)]?JSON[_0x32b3a1(0x209)](_0x4dbf77['params']):null,{'fromCollab':!0x0});});}[_0x4c144d(0x28a)](){const _0x4f1956=_0x4c144d;var _0x2c97dc;this['_status$'][_0x4f1956(0x250)](_0x4f1956(0x279)),(_0x2c97dc=this['_commandDisposable'])==null||_0x2c97dc['dispose']();}['_handleOnline'](){const _0x51ff22=_0x4c144d;this[_0x51ff22(0x226)]['next'](_0x51ff22(0x1ed)),this[_0x51ff22(0x1ef)]();}},exports[_0x4c144d(0x245)]=P([S(0x2,o[_0x4c144d(0x25b)]),S(0x3,o[_0x4c144d(0x227)](E)),S(0x4,o['ICommandService'])],exports[_0x4c144d(0x245)]);function $(){const _0x36a172=_0x4c144d,_0xda734d=p[_0x36a172(0x240)](exports[_0x36a172(0x26b)]),_0x3489df=p[_0x36a172(0x240)](o[_0x36a172(0x25a)]),_0x1f3c39=p['useObservable'](()=>_0x3489df[_0x36a172(0x21d)](o['UniverInstanceType'][_0x36a172(0x238)]),void 0x0,!0x1,[]),[_0x3d685c,_0x3a1b27]=v[_0x36a172(0x259)](null),[_0x124f9c,_0x238eb0]=v['useState'](u[_0x36a172(0x1eb)]),_0x3fd033=v[_0x36a172(0x205)](null);return v[_0x36a172(0x22a)](()=>(_0x1f3c39&&_0xda734d[_0x36a172(0x1d2)](_0x1f3c39[_0x36a172(0x216)]())[_0x36a172(0x217)](_0x9b1d13=>{const _0x3fb383=_0x36a172;_0x3a1b27(_0x9b1d13),_0x3fd033[_0x3fb383(0x25c)]=_0x9b1d13[_0x3fb383(0x23a)][_0x3fb383(0x21c)](_0x3991f8=>{_0x238eb0(_0x3991f8);});}),()=>{const _0x10c1d7=_0x36a172;var _0xdfce41;(_0xdfce41=_0x3fd033['current'])==null||_0xdfce41[_0x10c1d7(0x1bd)](),_0x3fd033[_0x10c1d7(0x25c)]=null;}),[_0x1f3c39,_0xda734d]),_0x3d685c?l[_0x36a172(0x1d0)](f[_0x36a172(0x26f)],{'align':_0x36a172(0x20f),'disabled':_0x124f9c===u[_0x36a172(0x256)],'className':_0x36a172(0x20a),'overlay':l[_0x36a172(0x1d0)](W,{'status':_0x124f9c,'coordinator':_0x3d685c}),'children':l[_0x36a172(0x1d0)]('button',{'className':f[_0x36a172(0x21b)](_0x36a172(0x241),{'univer-cursor-not-allowed':_0x124f9c===u[_0x36a172(0x256)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x124f9c!==u[_0x36a172(0x256)]}),'type':_0x36a172(0x23e),'children':l['jsx'](R,{'className':_0x36a172(0x22d)})})}):null;}function W(_0x4f637b){const _0x166255=_0x4c144d,{status:_0x4656b2,coordinator:_0x135c0e}=_0x4f637b;switch(_0x4656b2){case u[_0x166255(0x1eb)]:return l[_0x166255(0x1d0)](G,{'coordinator':_0x135c0e});case u[_0x166255(0x251)]:return l[_0x166255(0x1d0)](B,{'coordinator':_0x135c0e});case u[_0x166255(0x1e2)]:return l[_0x166255(0x1d0)](Y,{'coordinator':_0x135c0e});case u[_0x166255(0x256)]:return l[_0x166255(0x1d0)](J,{});case u[_0x166255(0x1c1)]:return l['jsx'](Z,{'coordinator':_0x135c0e});default:return null;}}function G(_0x3534c6){const _0x50bbe7=_0x4c144d,{coordinator:_0x9a692a}=_0x3534c6;return l[_0x50bbe7(0x257)](l[_0x50bbe7(0x261)],{'children':[l[_0x50bbe7(0x1d0)](_0x50bbe7(0x21e),{'className':_0x50bbe7(0x249),'children':_0x50bbe7(0x278)}),l['jsx'](f[_0x50bbe7(0x275)],{'onClick':()=>_0x9a692a[_0x50bbe7(0x239)](),'children':_0x50bbe7(0x20c)})]});}function B(_0x5aa6e4){const _0xd0f59a=_0x4c144d,{coordinator:_0x4221c3}=_0x5aa6e4;return l[_0xd0f59a(0x257)](l[_0xd0f59a(0x261)],{'children':[l[_0xd0f59a(0x1d0)](_0xd0f59a(0x21e),{'className':_0xd0f59a(0x249),'children':_0xd0f59a(0x265)}),l[_0xd0f59a(0x1d0)](f[_0xd0f59a(0x275)],{'onClick':()=>_0x4221c3[_0xd0f59a(0x287)](),'children':_0xd0f59a(0x1e8)})]});}function Y(_0x4d5789){const _0x3d6b02=_0x4c144d,{coordinator:_0x1b9f1a}=_0x4d5789;return l[_0x3d6b02(0x257)](l['Fragment'],{'children':[l['jsx'](_0x3d6b02(0x21e),{'className':_0x3d6b02(0x249),'children':_0x3d6b02(0x24b)}),l[_0x3d6b02(0x1d0)](f[_0x3d6b02(0x275)],{'variant':_0x3d6b02(0x1ff),'onClick':()=>_0x1b9f1a[_0x3d6b02(0x242)](),'children':_0x3d6b02(0x1be)})]});}function Z(_0x1c500d){const _0x4f540c=_0x4c144d,{coordinator:_0x1324ff}=_0x1c500d;return l[_0x4f540c(0x257)](l[_0x4f540c(0x261)],{'children':[l[_0x4f540c(0x1d0)](_0x4f540c(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4f540c(0x288)}),l[_0x4f540c(0x1d0)](f[_0x4f540c(0x275)],{'variant':_0x4f540c(0x1fc),'onClick':()=>_0x1324ff[_0x4f540c(0x207)](),'children':_0x4f540c(0x1e6)})]});}function J(){const _0x4e308f=_0x4c144d;return l[_0x4e308f(0x1d0)](l[_0x4e308f(0x261)],{'children':_0x4e308f(0x1d7)});}var K=Object[_0x4c144d(0x285)],z=(_0x46edb0,_0x355f5c,_0x40a00b,_0x38da8a)=>{for(var _0x9b5c1b=_0x38da8a>0x1?void 0x0:_0x38da8a?K(_0x355f5c,_0x40a00b):_0x355f5c,_0x3cb7f3=_0x46edb0['length']-0x1,_0x71e2d6;_0x3cb7f3>=0x0;_0x3cb7f3--)(_0x71e2d6=_0x46edb0[_0x3cb7f3])&&(_0x9b5c1b=_0x71e2d6(_0x9b5c1b)||_0x9b5c1b);return _0x9b5c1b;},L=(_0x5b57bd,_0x14d082)=>(_0x4d8c6f,_0x4c5364)=>_0x14d082(_0x4d8c6f,_0x4c5364,_0x5b57bd);exports['DesktopLiveShareController']=class extends o[_0x4c144d(0x27c)]{constructor(_0x3d90f3,_0x3fbfdc){const _0x2083fa=_0x4c144d;super(),this[_0x2083fa(0x24e)]=_0x3d90f3,this['_uiPartsService']=_0x3fbfdc,this[_0x2083fa(0x28e)]();}['_mountLiveShare'](){const _0x28e058=_0x4c144d;this[_0x28e058(0x1fb)](this[_0x28e058(0x22b)][_0x28e058(0x1c9)](p[_0x28e058(0x221)][_0x28e058(0x230)],()=>p[_0x28e058(0x1f8)]($,this[_0x28e058(0x24e)])));}},exports[_0x4c144d(0x26c)]=z([L(0x0,o[_0x4c144d(0x227)](o['Injector'])),L(0x1,p[_0x4c144d(0x212)])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object[_0x4c144d(0x285)],ee=(_0x31a7b2,_0x5a17fc,_0x461218,_0xd5de99)=>{for(var _0x1fc141=_0xd5de99>0x1?void 0x0:_0xd5de99?X(_0x5a17fc,_0x461218):_0x5a17fc,_0x1580c0=_0x31a7b2['length']-0x1,_0x58fb93;_0x1580c0>=0x0;_0x1580c0--)(_0x58fb93=_0x31a7b2[_0x1580c0])&&(_0x1fc141=_0x58fb93(_0x1fc141)||_0x1fc141);return _0x1fc141;},te=(_0x21c6f3,_0x456839)=>(_0x10008d,_0x498dfe)=>_0x456839(_0x10008d,_0x498dfe,_0x21c6f3);let m=class extends o[_0x4c144d(0x27c)]{constructor(_0x563315){const _0xd1d517=_0x4c144d;super(),this[_0xd1d517(0x219)]=_0x563315,this[_0xd1d517(0x24d)]();}[_0x4c144d(0x24d)](){const _0x449ef6=_0x4c144d;[D[_0x449ef6(0x274)]['id'],D[_0x449ef6(0x202)]['id'],C[_0x449ef6(0x28d)]['id']]['forEach'](_0x4124da=>{const _0x34c2e6=_0x449ef6;this['disposeWithMe'](this[_0x34c2e6(0x219)][_0x34c2e6(0x237)](_0x4124da));});}};m=ee([te(0x0,o['Inject'](E))],m);function _0x334a(){const _0x132a44=['SessionStatus','NOT_FOLLOWING','_unitID','presenting','onCommandExecuted','Stop\x20presenting','_handleTerminate','Stop\x20following','entries','params','IDLE','replace','idle','onStarting','_fetchOperations','from','requireSession','LIVESHARE_NEW_HOST','path','_collabSessionService','memberID','CollaborationEvent','throttleTime','connectInjector','presenter','evenodd','disposeWithMe','default','dispose','Injector','text','LIVESHARE_OPERATION','has','SetScrollOperation','UniverIcon','idSuffix','useRef','1575712qlEHon','stopPresenting','toStringTag','parse','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','InsertSheetMutation','Start','UNIVER_LIVE_SHARE_PLUGIN','event$','end','_config','live-share-icon','IUIPartsService','_sharedOperations','LiveShareStatus','_beIdle','getUnitId','then','toString','_liveShareService','_collabSession','clsx','subscribe','getCurrentTypeOfUnit$','div','pipe','stringify','BuiltInUIPart','_presenter','map','31138Uuaoio','asObservable','_status$','Inject','_startPresenting','LiveShareService','useEffect','_uiPartsService','BehaviorSubject','univer-size-4','Module','get','HEADER_MENU','http://www.w3.org/2000/svg','length','defs','set','defIds','UniverInstanceType','registerSharedOperation','UNIVER_SHEET','tryStartPresenting','status$','_handleOperation','1340sRMPwk','LIVESHARE_FETCH_OPERATIONS','button','_startFollowing','useDependency','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','startFollowing','DisposableCollection','registerInitialStateReporter','LiveShareCoordinator','Plugin','defineProperty','_configService','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','You\x27re\x20not\x20following\x20the\x20presenter','7mHYbbQ','_init','_injector','_handleNewHost','next','FOLLOWING','CommandType','createElement','2659110mICiKu','19860ytFWdQ','OFFLINE','jsxs','send','useState','IUniverInstanceService','IConfigService','current','merge','children','following','forwardRef','Fragment','getInitialStates','parseProtocolChangeset','_stopPresenting','You\x27re\x20following\x20the\x20presenter','getValue','complete','univerjs-icon\x20univerjs-icon-','_reporters','tag','LiveShareController','DesktopLiveShareController','svg','RxDisposable','Dropdown','SAME_OPERATION_SHARE_INTERVAL','attrs','getMemberID','_univerInstanceService','SetZoomRatioOperation','Button','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','random','Present\x20this\x20document','offline','getTypeOfUnitAdded$','_status','Disposable','getLiveShareCoordinatorSync','UniverLiveSharePlugin','values','_stopFollowing','getTypeOfUnitDisposed$','add','12545jQImRj','use','getOwnPropertyDescriptor','symbol','stopFollowing','You\x27re\x20presenting\x20the\x20document','init','_handleOffline','13YjPwzX','delete','SetWorksheetActiveOperation','_mountLiveShare','_commandDisposable','createInstance','takeUntil','_startLiveShareCoordinator','operations','mask','type','string','476652NGdFWb','1782gfVetS','unsubscribe','Start\x20following','_commandService','_handleNewChangeSets','PRESENTING','CollaborationSessionService','forEach','fill','45qDMZGZ','override','LiveShareIcon','sheet','registerComponent','ONLINE','pluginName','registerDependencies','unitId','touchDependencies','Subject','jsx','toDisposable','getLiveShareCoordinator','currentColor','_entities','dispose$','url(#$1','You\x27are\x20offline.','1em','data','11365HBMiFB','xlink:href','setConfig','displayName','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','60200dhAONP','shouldShareOperation'];_0x334a=function(){return _0x132a44;};return _0x334a();}var ie=Object[_0x4c144d(0x247)],se=Object[_0x4c144d(0x285)],ne=(_0x386038,_0x4ef535,_0x422ee8)=>_0x4ef535 in _0x386038?ie(_0x386038,_0x4ef535,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x422ee8}):_0x386038[_0x4ef535]=_0x422ee8,re=(_0x2013f5,_0x3d66d4,_0x23f418,_0x2fb3f9)=>{for(var _0x298176=_0x2fb3f9>0x1?void 0x0:_0x2fb3f9?se(_0x3d66d4,_0x23f418):_0x3d66d4,_0x4c3660=_0x2013f5['length']-0x1,_0x2bd513;_0x4c3660>=0x0;_0x4c3660--)(_0x2bd513=_0x2013f5[_0x4c3660])&&(_0x298176=_0x2bd513(_0x298176)||_0x298176);return _0x298176;},N=(_0x90897b,_0x49d488)=>(_0x347259,_0x5e25b4)=>_0x49d488(_0x347259,_0x5e25b4,_0x90897b),A=(_0x3b08e4,_0x1a596d,_0x39a5e7)=>ne(_0x3b08e4,typeof _0x1a596d!=_0x4c144d(0x286)?_0x1a596d+'':_0x1a596d,_0x39a5e7);const oe=_0x4c144d(0x20d);exports[_0x4c144d(0x27e)]=class extends o[_0x4c144d(0x246)]{constructor(_0x4c1c16=w,_0x357e80,_0x3a5ecc){const _0x5299d9=_0x4c144d;super(),this[_0x5299d9(0x210)]=_0x4c1c16,this[_0x5299d9(0x24e)]=_0x357e80,this[_0x5299d9(0x248)]=_0x3a5ecc;const {..._0x475569}=o[_0x5299d9(0x25d)]({},w,this['_config']);this[_0x5299d9(0x248)][_0x5299d9(0x1dc)](Q,_0x475569);}[_0x4c144d(0x1ee)](){const _0x5bfa51=_0x4c144d;o[_0x5bfa51(0x1cc)](this[_0x5bfa51(0x24e)],o['mergeOverrideWithDependencies']([[E],[exports[_0x5bfa51(0x26b)]],[m],[exports[_0x5bfa51(0x26c)]]],this['_config'][_0x5bfa51(0x1c6)])),o[_0x5bfa51(0x1ce)](this[_0x5bfa51(0x24e)],[[m]]);}['onRendered'](){const _0x5bb78e=_0x4c144d;o[_0x5bb78e(0x1ce)](this[_0x5bb78e(0x24e)],[[exports[_0x5bb78e(0x26c)]]]);}},A(exports[_0x4c144d(0x27e)],_0x4c144d(0x1b9),o[_0x4c144d(0x236)]['UNIVER_UNKNOWN']),A(exports[_0x4c144d(0x27e)],_0x4c144d(0x1cb),oe),exports[_0x4c144d(0x27e)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x4c144d(0x25b)])],exports[_0x4c144d(0x27e)]),exports['LiveShare']=$,exports[_0x4c144d(0x229)]=E,exports[_0x4c144d(0x214)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x38762c=_0x1322;(function(_0x4b3cb5,_0x4b032d){const _0x4b078e=_0x1322,_0x267d21=_0x4b3cb5();while(!![]){try{const _0xfcc7b9=-parseInt(_0x4b078e(0xaa))/0x1+parseInt(_0x4b078e(0xa6))/0x2*(parseInt(_0x4b078e(0xa1))/0x3)+-parseInt(_0x4b078e(0x8f))/0x4*(parseInt(_0x4b078e(0x8e))/0x5)+-parseInt(_0x4b078e(0xac))/0x6*(parseInt(_0x4b078e(0x9a))/0x7)+parseInt(_0x4b078e(0x97))/0x8+parseInt(_0x4b078e(0xab))/0x9*(parseInt(_0x4b078e(0xae))/0xa)+parseInt(_0x4b078e(0x91))/0xb*(-parseInt(_0x4b078e(0xad))/0xc);if(_0xfcc7b9===_0x4b032d)break;else _0x267d21['push'](_0x267d21['shift']());}catch(_0x522c58){_0x267d21['push'](_0x267d21['shift']());}}}(_0x40d8,0x569dc));import{LiveShareController as _0x24ed23,LiveShareStatus as _0x236572}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2eaba2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5c625f}from'@univerjs/sheets';import{SetScrollOperation as _0x3dd26c}from'@univerjs/sheets-ui';import{FRange as _0x197e81}from'@univerjs/sheets/facade';import{FUniver as _0x106cef,FEnum as _0x8f2951}from'@univerjs/core/facade';class I extends _0x197e81{[_0x38762c(0x92)](_0x467941,_0x1167d2,_0x538a1f,_0x41a628,_0x2d324e){const _0x47dc6b=_0x38762c,_0x251938=_0x467941[_0x47dc6b(0xa0)](_0x24ed23),_0x502f4b=_0x467941[_0x47dc6b(0xa0)](_0x2eaba2),_0x3d072a=_0x1167d2['getUnitId'](),_0x30d7ac=_0x1167d2['getActiveSheet'](),_0x330555=_0x251938['getLiveShareCoordinatorSync'](_0x3d072a);(_0x330555==null?void 0x0:_0x330555[_0x47dc6b(0x9c)]())!==_0x236572[_0x47dc6b(0xa2)]||(_0x538a1f[_0x47dc6b(0xa4)]()!==_0x30d7ac[_0x47dc6b(0xa4)]()&&this[_0x47dc6b(0x9e)][_0x47dc6b(0xaf)](_0x5c625f['id'],{'unitId':_0x3d072a,'subUnitId':_0x538a1f['getSheetId']()}),!_0x502f4b['getRenderById'](_0x3d072a))||_0x2d324e[_0x47dc6b(0x93)](_0x3dd26c['id'],{'unitId':_0x1167d2[_0x47dc6b(0xa3)](),'sheetId':_0x538a1f[_0x47dc6b(0xa4)](),'sheetViewStartRow':_0x41a628[_0x47dc6b(0x8d)],'sheetViewStartColumn':_0x41a628['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x197e81[_0x38762c(0x99)](I);class m extends _0x106cef{[_0x38762c(0x90)](){const _0x4d381a=_0x38762c;var _0x48ddc5,_0x1a2c3b;const _0x525263=this[_0x4d381a(0x96)]['get'](_0x24ed23),_0x47a1b0=(_0x48ddc5=this[_0x4d381a(0x9b)]())==null?void 0x0:_0x48ddc5['getId']();if(!_0x47a1b0)throw new Error(_0x4d381a(0x9d));const _0x19520e=_0x525263[_0x4d381a(0xa8)](_0x47a1b0);return(_0x1a2c3b=_0x19520e==null?void 0x0:_0x19520e[_0x4d381a(0x9c)]())!=null?_0x1a2c3b:_0x236572[_0x4d381a(0x98)];}[_0x38762c(0x95)](){const _0x987b92=_0x38762c;var _0x5dc8d8;const _0xaf7822=this[_0x987b92(0x96)]['get'](_0x24ed23),_0x409a30=(_0x5dc8d8=this[_0x987b92(0x9b)]())==null?void 0x0:_0x5dc8d8[_0x987b92(0x9f)]();if(!_0x409a30)throw new Error(_0x987b92(0x9d));const _0x1cda2a=_0xaf7822[_0x987b92(0xa8)](_0x409a30);if(!_0x1cda2a)throw new Error(_0x987b92(0x94));_0x1cda2a[_0x987b92(0x95)]();}[_0x38762c(0xb0)](){const _0x3c6bd8=_0x38762c;var _0x2638a9;const _0x459aae=this[_0x3c6bd8(0x96)]['get'](_0x24ed23),_0x222884=(_0x2638a9=this[_0x3c6bd8(0x9b)]())==null?void 0x0:_0x2638a9[_0x3c6bd8(0x9f)]();if(!_0x222884)throw new Error('No\x20active\x20workbook\x20found.');const _0x24a03c=_0x459aae[_0x3c6bd8(0xa8)](_0x222884);if(!_0x24a03c)throw new Error(_0x3c6bd8(0x94));_0x24a03c[_0x3c6bd8(0xb0)]();}[_0x38762c(0x8c)](){const _0x1fa591=_0x38762c;var _0x2e9f1e;const _0x445801=this[_0x1fa591(0x96)]['get'](_0x24ed23),_0xcaa8ba=(_0x2e9f1e=this[_0x1fa591(0x9b)]())==null?void 0x0:_0x2e9f1e[_0x1fa591(0x9f)]();if(!_0xcaa8ba)throw new Error(_0x1fa591(0x9d));const _0x2bd2ed=_0x445801[_0x1fa591(0xa8)](_0xcaa8ba);if(!_0x2bd2ed)throw new Error(_0x1fa591(0x94));_0x2bd2ed[_0x1fa591(0xa9)]();}['stopPresenting'](){const _0x11b4bd=_0x38762c;var _0x473022;const _0x222e1b=this[_0x11b4bd(0x96)][_0x11b4bd(0xa0)](_0x24ed23),_0x335f72=(_0x473022=this[_0x11b4bd(0x9b)]())==null?void 0x0:_0x473022['getId']();if(!_0x335f72)throw new Error(_0x11b4bd(0x9d));const _0x10709b=_0x222e1b[_0x11b4bd(0xa8)](_0x335f72);if(!_0x10709b)throw new Error(_0x11b4bd(0x94));_0x10709b[_0x11b4bd(0xa7)]();}}_0x106cef[_0x38762c(0x99)](m);class C extends _0x8f2951{get[_0x38762c(0xa5)](){return _0x236572;}}_0x8f2951['extend'](C);function _0x1322(_0x47da0c,_0xdfa40b){_0x47da0c=_0x47da0c-0x8c;const _0x40d801=_0x40d8();let _0x13227b=_0x40d801[_0x47da0c];return _0x13227b;}function _0x40d8(){const _0x233b69=['get','3AQafnO','PRESENTING','getUnitId','getSheetId','LiveShareStatusEnum','544924ZDvkNx','stopPresenting','getLiveShareCoordinatorSync','tryStartPresenting','658597jVHLwy','2084202FrUmfh','222yjbocB','12AmThGu','30bsGIxu','executeCommand','stopFollowing','startPresenting','startRow','975HLjyjm','5972UdXmqX','getLiveShareStatus','766832KosLMZ','_initialize','syncExecuteCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','_injector','4590000IOflAt','IDLE','extend','31542kvMcZM','getActiveWorkbook','getStatus','No\x20active\x20workbook\x20found.','_commandService','getId'];_0x40d8=function(){return _0x233b69;};return _0x40d8();}
1
+ const _0x1e8f1f=_0x1f0f;(function(_0x1b01e7,_0xa38448){const _0x5c530e=_0x1f0f,_0x387c55=_0x1b01e7();while(!![]){try{const _0x1fc632=parseInt(_0x5c530e(0x12e))/0x1*(parseInt(_0x5c530e(0x116))/0x2)+parseInt(_0x5c530e(0x113))/0x3*(-parseInt(_0x5c530e(0x11a))/0x4)+parseInt(_0x5c530e(0x123))/0x5*(parseInt(_0x5c530e(0x12c))/0x6)+parseInt(_0x5c530e(0x12a))/0x7*(-parseInt(_0x5c530e(0x11c))/0x8)+parseInt(_0x5c530e(0x122))/0x9+parseInt(_0x5c530e(0x127))/0xa+-parseInt(_0x5c530e(0x120))/0xb*(parseInt(_0x5c530e(0x12b))/0xc);if(_0x1fc632===_0xa38448)break;else _0x387c55['push'](_0x387c55['shift']());}catch(_0xa68b1e){_0x387c55['push'](_0x387c55['shift']());}}}(_0xe3a6,0x3a2dd));import{LiveShareController as _0x555575,LiveShareStatus as _0x509a3d}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x5ebb53}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x54b5cc}from'@univerjs/sheets';import{SetScrollOperation as _0x796c64}from'@univerjs/sheets-ui';import{FRange as _0xfd205b}from'@univerjs/sheets/facade';import{FUniver as _0x24e225,FEnum as _0x191941}from'@univerjs/core/facade';class I extends _0xfd205b{[_0x1e8f1f(0x125)](_0x318589,_0x16e4aa,_0x2cffa4,_0x576f9b,_0x4cfe96){const _0x10a500=_0x1e8f1f,_0x4248f7=_0x318589['get'](_0x555575),_0x4aada0=_0x318589[_0x10a500(0x11d)](_0x5ebb53),_0x2cb5cf=_0x16e4aa[_0x10a500(0x12d)](),_0x550d20=_0x16e4aa['getActiveSheet'](),_0x338b34=_0x4248f7[_0x10a500(0x10e)](_0x2cb5cf);(_0x338b34==null?void 0x0:_0x338b34[_0x10a500(0x129)]())!==_0x509a3d[_0x10a500(0x117)]||(_0x2cffa4[_0x10a500(0x11f)]()!==_0x550d20[_0x10a500(0x11f)]()&&this[_0x10a500(0x11b)][_0x10a500(0x121)](_0x54b5cc['id'],{'unitId':_0x2cb5cf,'subUnitId':_0x2cffa4[_0x10a500(0x11f)]()}),!_0x4aada0[_0x10a500(0x111)](_0x2cb5cf))||_0x4cfe96[_0x10a500(0x126)](_0x796c64['id'],{'unitId':_0x16e4aa[_0x10a500(0x12d)](),'sheetId':_0x2cffa4['getSheetId'](),'sheetViewStartRow':_0x576f9b['startRow'],'sheetViewStartColumn':_0x576f9b['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xfd205b['extend'](I);function _0xe3a6(){const _0x3891c2=['149688NYbsyx','222rYmZqc','getUnitId','11hbhYjj','startPresenting','startFollowing','getLiveShareCoordinatorSync','getId','No\x20active\x20workbook\x20found.','getRenderById','IDLE','246717yBZhJQ','_injector','getActiveWorkbook','46376fuklhv','PRESENTING','stopFollowing','getLiveShareStatus','4AEQyix','_commandService','30968gBcOhA','get','extend','getSheetId','297hWxCjt','executeCommand','2373660NHmbtm','35115MDcUUd','stopPresenting','_initialize','syncExecuteCommand','2309400tblLVE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','637dOPSFd'];_0xe3a6=function(){return _0x3891c2;};return _0xe3a6();}class m extends _0x24e225{[_0x1e8f1f(0x119)](){const _0x7dd01b=_0x1e8f1f;var _0x2ce2e,_0x5aeae4;const _0x51b3ac=this[_0x7dd01b(0x114)][_0x7dd01b(0x11d)](_0x555575),_0x16aa58=(_0x2ce2e=this[_0x7dd01b(0x115)]())==null?void 0x0:_0x2ce2e[_0x7dd01b(0x10f)]();if(!_0x16aa58)throw new Error('No\x20active\x20workbook\x20found.');const _0x199895=_0x51b3ac[_0x7dd01b(0x10e)](_0x16aa58);return(_0x5aeae4=_0x199895==null?void 0x0:_0x199895[_0x7dd01b(0x129)]())!=null?_0x5aeae4:_0x509a3d[_0x7dd01b(0x112)];}[_0x1e8f1f(0x10d)](){const _0x15db63=_0x1e8f1f;var _0x2321a4;const _0x4e1f99=this[_0x15db63(0x114)][_0x15db63(0x11d)](_0x555575),_0x3b887c=(_0x2321a4=this[_0x15db63(0x115)]())==null?void 0x0:_0x2321a4[_0x15db63(0x10f)]();if(!_0x3b887c)throw new Error(_0x15db63(0x110));const _0x28bc07=_0x4e1f99[_0x15db63(0x10e)](_0x3b887c);if(!_0x28bc07)throw new Error(_0x15db63(0x128));_0x28bc07['startFollowing']();}[_0x1e8f1f(0x118)](){const _0x288b23=_0x1e8f1f;var _0x1bc2e0;const _0x2cde7e=this[_0x288b23(0x114)][_0x288b23(0x11d)](_0x555575),_0x482946=(_0x1bc2e0=this[_0x288b23(0x115)]())==null?void 0x0:_0x1bc2e0['getId']();if(!_0x482946)throw new Error(_0x288b23(0x110));const _0x459cc4=_0x2cde7e[_0x288b23(0x10e)](_0x482946);if(!_0x459cc4)throw new Error(_0x288b23(0x128));_0x459cc4['stopFollowing']();}[_0x1e8f1f(0x12f)](){const _0x521abe=_0x1e8f1f;var _0x4e4f43;const _0x18d230=this[_0x521abe(0x114)][_0x521abe(0x11d)](_0x555575),_0x39c331=(_0x4e4f43=this[_0x521abe(0x115)]())==null?void 0x0:_0x4e4f43[_0x521abe(0x10f)]();if(!_0x39c331)throw new Error(_0x521abe(0x110));const _0x691d99=_0x18d230[_0x521abe(0x10e)](_0x39c331);if(!_0x691d99)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x691d99['tryStartPresenting']();}[_0x1e8f1f(0x124)](){const _0x3b412d=_0x1e8f1f;var _0x3b913e;const _0x4ae50f=this[_0x3b412d(0x114)][_0x3b412d(0x11d)](_0x555575),_0x4cadf7=(_0x3b913e=this['getActiveWorkbook']())==null?void 0x0:_0x3b913e['getId']();if(!_0x4cadf7)throw new Error(_0x3b412d(0x110));const _0x213eea=_0x4ae50f[_0x3b412d(0x10e)](_0x4cadf7);if(!_0x213eea)throw new Error(_0x3b412d(0x128));_0x213eea[_0x3b412d(0x124)]();}}_0x24e225[_0x1e8f1f(0x11e)](m);class C extends _0x191941{get['LiveShareStatusEnum'](){return _0x509a3d;}}function _0x1f0f(_0x32a3d7,_0x1d26bf){_0x32a3d7=_0x32a3d7-0x10d;const _0xe3a68d=_0xe3a6();let _0x1f0f1f=_0xe3a68d[_0x32a3d7];return _0x1f0f1f;}_0x191941[_0x1e8f1f(0x11e)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x288259=_0x33d3;(function(_0x367953,_0x55dc8c){const _0x5e37f9=_0x33d3,_0x3d88f2=_0x367953();while(!![]){try{const _0x16d529=-parseInt(_0x5e37f9(0x1bd))/0x1*(-parseInt(_0x5e37f9(0x207))/0x2)+-parseInt(_0x5e37f9(0x205))/0x3*(-parseInt(_0x5e37f9(0x200))/0x4)+-parseInt(_0x5e37f9(0x1eb))/0x5+-parseInt(_0x5e37f9(0x21c))/0x6+-parseInt(_0x5e37f9(0x226))/0x7*(parseInt(_0x5e37f9(0x1f4))/0x8)+-parseInt(_0x5e37f9(0x22e))/0x9*(parseInt(_0x5e37f9(0x1d9))/0xa)+parseInt(_0x5e37f9(0x1e0))/0xb*(parseInt(_0x5e37f9(0x1e2))/0xc);if(_0x16d529===_0x55dc8c)break;else _0x3d88f2['push'](_0x3d88f2['shift']());}catch(_0x69295a){_0x3d88f2['push'](_0x3d88f2['shift']());}}}(_0x5f16,0xa95f7));var J=Object[_0x288259(0x231)],K=(_0x455c85,_0x502859,_0x173dc6)=>_0x502859 in _0x455c85?J(_0x455c85,_0x502859,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x173dc6}):_0x455c85[_0x502859]=_0x173dc6,u=(_0x27b4b4,_0x3292f2,_0x36c817)=>K(_0x27b4b4,typeof _0x3292f2!=_0x288259(0x1b0)?_0x3292f2+'':_0x3292f2,_0x36c817);import{Disposable as _0x2f9266,toDisposable as _0x357616,IUniverInstanceService as _0x4b8f0b,Inject as _0x2ccce4,Injector as _0x38a60f,IConfigService as _0x292df9,ICommandService as _0xe319f4,RxDisposable as _0x1e8ae5,UniverInstanceType as _0x374271,DisposableCollection as _0x50ce28,CommandType as _0x419927,DependentOn as _0x553a41,Plugin as _0x3f1d3f,merge as _0x2eff68,registerDependencies as _0x28d75e,mergeOverrideWithDependencies as _0x965e10,touchDependencies as _0x5b4615}from'@univerjs/core';import{useDependency as _0x2cf9c5,useObservable as _0x57d739,IUIPartsService as _0x39de93,BuiltInUIPart as _0x367153,connectInjector as _0x4d0457}from'@univerjs/ui';import{jsx as _0x120c4b,jsxs as _0x18b69b,Fragment as _0x182287}from'react/jsx-runtime';import{Dropdown as _0x1c59e1,clsx as _0x4affc9,Button as _0x22c645}from'@univerjs/design';function _0x33d3(_0x33005b,_0x44790f){_0x33005b=_0x33005b-0x18f;const _0x5f1636=_0x5f16();let _0x33d3b9=_0x5f1636[_0x33005b];return _0x33d3b9;}import{useRef as _0x15d3aa,createElement as _0x350b00,forwardRef as _0xa9da7e,useState as _0x223824,useEffect as _0x365662}from'react';import{CollaborationEvent as _0x555910,parseProtocolChangeset as _0x3b7300}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x8e0700,SessionStatus as _0x2d2d85,UniverCollaborationClientPlugin as _0x5d8e2c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d46de,SetWorksheetActiveOperation as _0x3493cd}from'@univerjs/sheets';import{BehaviorSubject as _0x2fd282,Subject as _0x514c47}from'rxjs';import{takeUntil as _0x29691d,throttleTime as _0x4434ac}from'rxjs/operators';import{SetZoomRatioOperation as _0xc86880,SetScrollOperation as _0x184f42}from'@univerjs/sheets-ui';function k({ref:_0x33eda2,..._0x55b604}){const _0x44e87b=_0x288259,{icon:_0x10d8f6,id:_0x17c6ae,className:_0xbde572,extend:_0x146d76,..._0xd434da}=_0x55b604,_0x3217d1=(_0x44e87b(0x22b)+_0x17c6ae+'\x20'+(_0xbde572||''))[_0x44e87b(0x1bc)](),_0x3db8d7=_0x15d3aa('_'+Oe());return G(_0x10d8f6,''+_0x17c6ae,{'defIds':_0x10d8f6[_0x44e87b(0x1e9)],'idSuffix':_0x3db8d7[_0x44e87b(0x1a2)]},{'ref':_0x33eda2,'className':_0x3217d1,..._0xd434da},_0x146d76);}function G(_0xf936be,_0xefb038,_0x4d4633,_0x27420a,_0x2f6dd7){const _0x5a56fa=_0x288259;return _0x350b00(_0xf936be['tag'],{'key':_0xefb038,...be(_0xf936be,_0x4d4633,_0x2f6dd7),..._0x27420a},(Ee(_0xf936be,_0x4d4633)[_0x5a56fa(0x1c3)]||[])[_0x5a56fa(0x208)]((_0x4c5d5c,_0x18cc97)=>G(_0x4c5d5c,_0xefb038+'-'+_0xf936be[_0x5a56fa(0x1d3)]+'-'+_0x18cc97,_0x4d4633,void 0x0,_0x2f6dd7)));}function be(_0x1cc91b,_0x585765,_0x3cefc0){const _0x4cdb9e=_0x288259,_0x1ed481={..._0x1cc91b[_0x4cdb9e(0x20c)]};_0x3cefc0!=null&&_0x3cefc0['colorChannel1']&&_0x1ed481[_0x4cdb9e(0x1f9)]===_0x4cdb9e(0x1d5)&&(_0x1ed481[_0x4cdb9e(0x1f9)]=_0x3cefc0[_0x4cdb9e(0x1d5)]),_0x1cc91b[_0x4cdb9e(0x1d3)]===_0x4cdb9e(0x1b1)&&_0x1ed481['id']&&(_0x1ed481['id']=_0x1ed481['id']+_0x585765[_0x4cdb9e(0x233)]),Object[_0x4cdb9e(0x1a7)](_0x1ed481)[_0x4cdb9e(0x1b8)](([_0x7ec95c,_0x248034])=>{const _0x56f04a=_0x4cdb9e;_0x7ec95c==='mask'&&typeof _0x248034==_0x56f04a(0x1c6)&&(_0x1ed481[_0x7ec95c]=_0x248034[_0x56f04a(0x20a)](/url\(#(.*)\)/,_0x56f04a(0x1a3)+_0x585765[_0x56f04a(0x233)]+')'));});const {defIds:_0x4e730b}=_0x585765;return!_0x4e730b||_0x4e730b[_0x4cdb9e(0x1fe)]===0x0||(_0x1cc91b[_0x4cdb9e(0x1d3)]===_0x4cdb9e(0x234)&&_0x1ed481[_0x4cdb9e(0x219)]&&(_0x1ed481[_0x4cdb9e(0x219)]=_0x1ed481[_0x4cdb9e(0x219)]+_0x585765['idSuffix']),Object[_0x4cdb9e(0x1a7)](_0x1ed481)['forEach'](([_0x39a603,_0x5056a2])=>{const _0x39c72f=_0x4cdb9e;typeof _0x5056a2==_0x39c72f(0x1c6)&&(_0x1ed481[_0x39a603]=_0x5056a2[_0x39c72f(0x20a)](/url\(#(.*)\)/,_0x39c72f(0x1a3)+_0x585765['idSuffix']+')'));})),_0x1ed481;}function Ee(_0x3f4c76,_0x22017d){const _0x17406c=_0x288259;var _0x44c032;const {defIds:_0x352459}=_0x22017d;return!_0x352459||_0x352459[_0x17406c(0x1fe)]===0x0?_0x3f4c76:_0x3f4c76[_0x17406c(0x1d3)]===_0x17406c(0x220)&&((_0x44c032=_0x3f4c76['children'])!=null&&_0x44c032[_0x17406c(0x1fe)])?{..._0x3f4c76,'children':_0x3f4c76[_0x17406c(0x1c3)][_0x17406c(0x208)](_0x1ff9b0=>typeof _0x1ff9b0[_0x17406c(0x20c)]['id']==_0x17406c(0x1c6)&&_0x352459&&_0x352459['includes'](_0x1ff9b0['attrs']['id'])?{..._0x1ff9b0,'attrs':{..._0x1ff9b0[_0x17406c(0x20c)],'id':_0x1ff9b0[_0x17406c(0x20c)]['id']+_0x22017d[_0x17406c(0x233)]}}:_0x1ff9b0)}:_0x3f4c76;}function Oe(){const _0x25377a=_0x288259;return Math['random']()[_0x25377a(0x211)](0x24)[_0x25377a(0x191)](0x2,0x8);}k[_0x288259(0x197)]='UniverIcon';const we={'tag':_0x288259(0x210),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x288259(0x1b5),'width':_0x288259(0x1da),'height':_0x288259(0x1da)},'children':[{'tag':_0x288259(0x20d),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x288259(0x20d),'attrs':{'fill':'currentColor','d':_0x288259(0x237),'fillRule':'evenodd','clipRule':_0x288259(0x204)}}]},W=_0xa9da7e(function(_0x416c25,_0x1f2fc3){const _0xb17fc8=_0x288259;return _0x350b00(k,Object[_0xb17fc8(0x1a9)]({},_0x416c25,{'id':_0xb17fc8(0x20b),'ref':_0x1f2fc3,'icon':we}));});W['displayName']=_0x288259(0x1e6);class L extends _0x2f9266{constructor(){const _0x37307d=_0x288259;super(...arguments),u(this,_0x37307d(0x236),new Set()),u(this,_0x37307d(0x1ec),new Set());}[_0x288259(0x190)](_0x31dcd7){const _0x4557c4=_0x288259;return this[_0x4557c4(0x236)][_0x4557c4(0x18f)](_0x31dcd7),_0x357616(()=>this[_0x4557c4(0x236)][_0x4557c4(0x1ef)](_0x31dcd7));}['registerInitialStateReporter'](_0x3b3ed7){const _0xa54d35=_0x288259;return this[_0xa54d35(0x1ec)]['add'](_0x3b3ed7),_0x357616(()=>this[_0xa54d35(0x1ec)]['delete'](_0x3b3ed7));}[_0x288259(0x198)](_0x4630a5){const _0x5abafa=_0x288259;return this[_0x5abafa(0x236)][_0x5abafa(0x1aa)](_0x4630a5);}[_0x288259(0x1f8)](_0x2fa184){const _0x2e6d01=_0x288259;return Array[_0x2e6d01(0x19d)](this[_0x2e6d01(0x1ec)])[_0x2e6d01(0x208)](_0x8372f0=>_0x8372f0(_0x2fa184));}}var Ne=Object[_0x288259(0x218)],Y=(_0x56ca39,_0x5df9cb,_0x33643a,_0x3f65ad)=>{const _0x47250e=_0x288259;for(var _0x5ed2c6=_0x3f65ad>0x1?void 0x0:_0x3f65ad?Ne(_0x5df9cb,_0x33643a):_0x5df9cb,_0x2b25b5=_0x56ca39[_0x47250e(0x1fe)]-0x1,_0x18a69f;_0x2b25b5>=0x0;_0x2b25b5--)(_0x18a69f=_0x56ca39[_0x2b25b5])&&(_0x5ed2c6=_0x18a69f(_0x5ed2c6)||_0x5ed2c6);return _0x5ed2c6;},_=(_0x76c072,_0xf10aa)=>(_0x12cd8e,_0x30a995)=>_0xf10aa(_0x12cd8e,_0x30a995,_0x76c072);let S=class extends _0x1e8ae5{constructor(_0x3d6566,_0x17bc9c,_0x3a69ac){const _0x2d6e8d=_0x288259;super(),u(this,_0x2d6e8d(0x229),new Map()),(this[_0x2d6e8d(0x1e8)]=_0x3d6566,this['_injector']=_0x17bc9c,this[_0x2d6e8d(0x1bb)]=_0x3a69ac,this['_init']());}async['getLiveShareCoordinator'](_0x51818e){const _0x2ae6e6=_0x288259;return this[_0x2ae6e6(0x229)][_0x2ae6e6(0x1aa)](_0x51818e)||await this[_0x2ae6e6(0x1d8)](_0x51818e),this[_0x2ae6e6(0x229)][_0x2ae6e6(0x20f)](_0x51818e);}[_0x288259(0x1be)](_0x978332){const _0x313c8c=_0x288259;var _0x2cf19d;return(_0x2cf19d=this[_0x313c8c(0x229)][_0x313c8c(0x20f)](_0x978332))!=null?_0x2cf19d:null;}[_0x288259(0x1c0)](){const _0x5b6c4b=_0x288259;this[_0x5b6c4b(0x1e8)][_0x5b6c4b(0x1a0)](_0x374271[_0x5b6c4b(0x1d6)])['pipe'](_0x29691d(this['dispose$']))[_0x5b6c4b(0x1d0)](async _0x404cb9=>{const _0x59f579=_0x5b6c4b,_0x201f4d=_0x404cb9['getUnitId']();this[_0x59f579(0x229)][_0x59f579(0x1aa)](_0x201f4d)||this[_0x59f579(0x1d8)](_0x201f4d);}),this[_0x5b6c4b(0x1e8)][_0x5b6c4b(0x1db)](_0x374271[_0x5b6c4b(0x1d6)])[_0x5b6c4b(0x1fb)](_0x29691d(this[_0x5b6c4b(0x21b)]))['subscribe'](_0xc29fa9=>{const _0x4578e9=_0x5b6c4b,_0x443200=_0xc29fa9[_0x4578e9(0x1bf)](),_0x3c81a4=this[_0x4578e9(0x229)][_0x4578e9(0x20f)](_0x443200);_0x3c81a4==null||_0x3c81a4[_0x4578e9(0x1fd)]();});}async['_startLiveShareCoordinator'](_0x3a7fd0){const _0x464826=_0x288259,_0x3fce9c=await this[_0x464826(0x1bb)][_0x464826(0x1f1)](_0x3a7fd0),_0x235213=this[_0x464826(0x1dd)][_0x464826(0x235)](N,_0x3a7fd0,_0x3fce9c);return _0x235213[_0x464826(0x1e5)](),this[_0x464826(0x229)][_0x464826(0x1a8)](_0x3a7fd0,_0x235213),_0x235213;}};S=Y([_(0x0,_0x4b8f0b),_(0x1,_0x2ccce4(_0x38a60f)),_(0x2,_0x2ccce4(_0x8e0700))],S);var c=(_0x4bbe1b=>(_0x4bbe1b[_0x288259(0x1ad)]=_0x288259(0x194),_0x4bbe1b[_0x288259(0x213)]=_0x288259(0x232),_0x4bbe1b[_0x288259(0x202)]='following',_0x4bbe1b[_0x288259(0x21a)]='not-following',_0x4bbe1b['PRESENTING']=_0x288259(0x222),_0x4bbe1b))(c||{});const Ce=_0x288259(0x228),De=0xc8;let N=class extends _0x1e8ae5{constructor(_0x238eb6,_0x534c6c,_0x14e14d,_0x57f55e,_0x161068){const _0x444c30=_0x288259;super(),u(this,_0x444c30(0x1ee),new _0x2fd282(_0x444c30(0x232))),u(this,_0x444c30(0x223),this['_status$'][_0x444c30(0x1af)]()),u(this,'_init',!0x1),u(this,_0x444c30(0x1d4),null),u(this,_0x444c30(0x1f0),null),(this[_0x444c30(0x1cb)]=_0x238eb6,this[_0x444c30(0x203)]=_0x534c6c,this['_configService']=_0x14e14d,this['_liveShareService']=_0x57f55e,this[_0x444c30(0x1ba)]=_0x161068);}get[_0x288259(0x1c8)](){const _0x4a7690=_0x288259;return this[_0x4a7690(0x1ee)][_0x4a7690(0x225)]();}[_0x288259(0x1fd)](){const _0xec0031=_0x288259;var _0x559285;(_0x559285=this[_0xec0031(0x1d4)])==null||_0x559285[_0xec0031(0x1fd)](),this[_0xec0031(0x1ee)]['next']('idle'),this[_0xec0031(0x1ee)][_0xec0031(0x1d7)]();}[_0x288259(0x1ac)](){return this['_status'];}['init'](){const _0x30d302=_0x288259;this['_init']||(this[_0x30d302(0x1c0)]=!0x0,this[_0x30d302(0x203)][_0x30d302(0x195)][_0x30d302(0x1fb)](_0x29691d(this[_0x30d302(0x21b)]))['subscribe'](_0x367bef=>{const _0x2d0341=_0x30d302;switch(_0x367bef){case _0x2d2d85['OFFLINE']:this[_0x2d0341(0x1b9)]();break;case _0x2d2d85[_0x2d0341(0x1ce)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x30d302(0x224)]['pipe'](_0x29691d(this[_0x30d302(0x21b)]))[_0x30d302(0x1d0)](_0x103413=>{const _0x1f1aa5=_0x30d302,{eventID:_0x5d036d}=_0x103413;switch(_0x5d036d){case _0x555910[_0x1f1aa5(0x21e)]:this['_handleNewHost'](_0x103413);break;case _0x555910[_0x1f1aa5(0x1f5)]:this[_0x1f1aa5(0x221)](_0x103413);break;case _0x555910[_0x1f1aa5(0x1cc)]:this['_handleTerminate']();break;case _0x555910[_0x1f1aa5(0x1fc)]:this[_0x1f1aa5(0x212)](_0x103413);break;}}));}[_0x288259(0x1b7)](){const _0x1f01ce=_0x288259;this[_0x1f01ce(0x203)][_0x1f01ce(0x201)]({'eventID':_0x555910[_0x1f01ce(0x1a4)],'data':{'unitID':this['_unitID'],'userID':this[_0x1f01ce(0x203)]['getMemberID']()}},this[_0x1f01ce(0x1cb)]);}[_0x288259(0x1df)](){const _0x593f8a=_0x288259;this['_status']===_0x593f8a(0x222)&&(this[_0x593f8a(0x1ee)]['next']('idle'),this[_0x593f8a(0x203)][_0x593f8a(0x201)]({'eventID':_0x555910[_0x593f8a(0x1cc)],'data':{'unitID':this[_0x593f8a(0x1cb)]}},this[_0x593f8a(0x1cb)]));}[_0x288259(0x20e)](){const _0x17c16f=_0x288259;this[_0x17c16f(0x1c8)]===_0x17c16f(0x209)&&(this[_0x17c16f(0x1ee)][_0x17c16f(0x1dc)]('following'),this[_0x17c16f(0x22f)]());}[_0x288259(0x216)](){const _0x56fe15=_0x288259;this['_status']===_0x56fe15(0x1ea)&&this[_0x56fe15(0x22a)]();}[_0x288259(0x206)](_0x36c959){const _0x5eb3aa=_0x288259,{presenter:_0x2ed9c5}=_0x36c959['data'],_0xc72ae8=this[_0x5eb3aa(0x203)][_0x5eb3aa(0x1cf)]();this[_0x5eb3aa(0x1f0)]=_0x2ed9c5,_0x2ed9c5===_0xc72ae8?(this[_0x5eb3aa(0x22a)](),this[_0x5eb3aa(0x193)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x288259(0x214)](){const _0x4f0dec=_0x288259,_0x32c37a={'eventID':_0x555910[_0x4f0dec(0x21f)]};this['_collabSession'][_0x4f0dec(0x201)](_0x32c37a,this[_0x4f0dec(0x1cb)]);}[_0x288259(0x239)](){const _0x153376=_0x288259;this[_0x153376(0x1f0)]=null,this[_0x153376(0x1c8)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x36e0ca){const _0x25f2a5=_0x288259;if(this['_status']===_0x25f2a5(0x1ea)&&this[_0x25f2a5(0x1f0)]===_0x36e0ca[_0x25f2a5(0x1ed)][_0x25f2a5(0x19c)]){const _0x5ba717=_0x3b7300(_0x36e0ca[_0x25f2a5(0x1ed)])['mutations'][_0x25f2a5(0x1e1)]()['find'](_0x459aad=>_0x459aad['id']===_0x5d46de['id']);if(_0x5ba717){const _0x307f94=_0x5ba717[_0x25f2a5(0x1f7)][_0x25f2a5(0x23b)],_0x2908ca=_0x5ba717['params'][_0x25f2a5(0x1fa)]['id'];setTimeout(()=>{const _0xf95204=_0x25f2a5;this[_0xf95204(0x1ba)][_0xf95204(0x1c5)](_0x3493cd['id'],{'unitId':_0x307f94,'subUnitId':_0x2908ca},{'fromCollab':!0x0});});}}}[_0x288259(0x193)](){const _0x1c3e27=_0x288259;this[_0x1c3e27(0x1ee)][_0x1c3e27(0x1dc)](_0x1c3e27(0x222));const _0x478f22=new Map(),_0x275e18=this[_0x1c3e27(0x1d4)]=new _0x50ce28();_0x275e18[_0x1c3e27(0x18f)](_0x357616(()=>{const _0x40fcbc=_0x1c3e27;_0x478f22['forEach'](_0x25d5bb=>_0x25d5bb[_0x40fcbc(0x1d7)]()),_0x478f22[_0x40fcbc(0x1a5)]();})),_0x275e18[_0x1c3e27(0x18f)](this[_0x1c3e27(0x1ba)][_0x1c3e27(0x230)](_0x9c0a59=>{const _0x22527c=_0x1c3e27;var _0x190d6c;if(_0x9c0a59[_0x22527c(0x1c1)]!==_0x419927['OPERATION']||!this[_0x22527c(0x1b3)]['shouldShareOperation'](_0x9c0a59['id']))return;const {id:_0x60363b}=_0x9c0a59;let _0x33d8b6;_0x478f22[_0x22527c(0x1aa)](_0x60363b)?_0x33d8b6=_0x478f22[_0x22527c(0x20f)](_0x60363b):(_0x33d8b6=new _0x514c47(),_0x478f22['set'](_0x60363b,_0x33d8b6),_0x33d8b6[_0x22527c(0x1fb)](_0x4434ac((_0x190d6c=this[_0x22527c(0x238)][_0x22527c(0x22c)](Ce))!=null?_0x190d6c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x26e65d=>{const _0xeecc7a=_0x22527c;this['_collabSession'][_0xeecc7a(0x201)]({'eventID':_0x555910[_0xeecc7a(0x1f5)],'data':{'unitID':this[_0xeecc7a(0x1cb)],'operations':{[_0x26e65d['id']]:{'id':_0x26e65d['id'],'params':JSON[_0xeecc7a(0x1d1)](_0x26e65d[_0xeecc7a(0x1f7)])}}}},this[_0xeecc7a(0x1cb)]);})),_0x33d8b6[_0x22527c(0x1dc)](_0x9c0a59);})),this[_0x1c3e27(0x1b3)][_0x1c3e27(0x1f8)](this[_0x1c3e27(0x1cb)])[_0x1c3e27(0x1b8)](_0x4ce92a=>this[_0x1c3e27(0x203)][_0x1c3e27(0x201)]({'eventID':_0x555910['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4ce92a['id']]:{'id':_0x4ce92a['id'],'params':JSON['stringify'](_0x4ce92a[_0x1c3e27(0x1f7)])}}}},this[_0x1c3e27(0x1cb)]));}[_0x288259(0x1b4)](){const _0x4665c0=_0x288259;var _0x24c72b;this[_0x4665c0(0x1ee)][_0x4665c0(0x1dc)](_0x4665c0(0x232)),(_0x24c72b=this[_0x4665c0(0x1d4)])==null||_0x24c72b[_0x4665c0(0x1fd)](),this[_0x4665c0(0x1d4)]=null;}['_startFollowing'](){const _0x19b962=_0x288259;var _0x33d342;(_0x33d342=this['_commandDisposable'])==null||_0x33d342['dispose'](),this[_0x19b962(0x1ee)][_0x19b962(0x1dc)](_0x19b962(0x1ea));}[_0x288259(0x1f6)](){const _0x3b9b94=_0x288259;var _0xcbeccb;this[_0x3b9b94(0x1ee)][_0x3b9b94(0x1dc)](_0x3b9b94(0x232)),(_0xcbeccb=this[_0x3b9b94(0x1d4)])==null||_0xcbeccb[_0x3b9b94(0x1fd)](),this[_0x3b9b94(0x1d4)]=null;}[_0x288259(0x22a)](){const _0x5da14b=_0x288259;var _0x4c272e;this[_0x5da14b(0x1ee)][_0x5da14b(0x1dc)](_0x5da14b(0x209)),(_0x4c272e=this[_0x5da14b(0x1d4)])==null||_0x4c272e[_0x5da14b(0x1fd)]();}[_0x288259(0x221)](_0xafb528){const _0x31a66d=_0x288259;if([_0x31a66d(0x222),_0x31a66d(0x209),_0x31a66d(0x194)][_0x31a66d(0x227)](this[_0x31a66d(0x1c8)])||!_0xafb528[_0x31a66d(0x1ed)]['presenter']||_0xafb528[_0x31a66d(0x1ed)]['presenter']===this[_0x31a66d(0x203)][_0x31a66d(0x1cf)]())return;this[_0x31a66d(0x1c8)]==='idle'&&this['_startFollowing']();const _0x59c778=_0xafb528['data']['operations'];Object[_0x31a66d(0x215)](_0x59c778)['forEach'](_0x4d58aa=>{const _0x432061=_0x31a66d;this[_0x432061(0x1ba)]['executeCommand'](_0x4d58aa['id'],_0x4d58aa[_0x432061(0x1f7)]?JSON[_0x432061(0x1e4)](_0x4d58aa['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3754b6=_0x288259;var _0x10b501;this[_0x3754b6(0x1ee)][_0x3754b6(0x1dc)](_0x3754b6(0x194)),(_0x10b501=this[_0x3754b6(0x1d4)])==null||_0x10b501[_0x3754b6(0x1fd)]();}[_0x288259(0x22d)](){const _0x3c96ba=_0x288259;this['_status$'][_0x3c96ba(0x1dc)](_0x3c96ba(0x232)),this[_0x3c96ba(0x214)]();}};N=Y([_(0x2,_0x292df9),_(0x3,_0x2ccce4(L)),_(0x4,_0xe319f4)],N);function Le(){const _0x5dfa7e=_0x288259,_0x103b8e=_0x2cf9c5(S),_0x5c7e87=_0x2cf9c5(_0x4b8f0b),_0x433543=_0x57d739(()=>_0x5c7e87['getCurrentTypeOfUnit$'](_0x374271[_0x5dfa7e(0x1d6)]),void 0x0,!0x1,[]),[_0x5ec586,_0x3f6800]=_0x223824(null),[_0x56a1cf,_0x49f542]=_0x223824(c[_0x5dfa7e(0x213)]),_0x58f772=_0x15d3aa(null);return _0x365662(()=>(_0x433543&&_0x103b8e[_0x5dfa7e(0x1f3)](_0x433543['getUnitId']())[_0x5dfa7e(0x1a6)](_0x5a5bdc=>{const _0x1814b1=_0x5dfa7e;_0x3f6800(_0x5a5bdc),_0x58f772[_0x1814b1(0x1a2)]=_0x5a5bdc['status$'][_0x1814b1(0x1d0)](_0x108aaf=>{_0x49f542(_0x108aaf);});}),()=>{const _0x6491d2=_0x5dfa7e;var _0x1e20f4;(_0x1e20f4=_0x58f772[_0x6491d2(0x1a2)])==null||_0x1e20f4[_0x6491d2(0x1c7)](),_0x58f772[_0x6491d2(0x1a2)]=null;}),[_0x433543,_0x103b8e]),_0x5ec586?_0x120c4b(_0x1c59e1,{'align':_0x5dfa7e(0x1ab),'disabled':_0x56a1cf===c[_0x5dfa7e(0x1ad)],'className':_0x5dfa7e(0x192),'overlay':_0x120c4b(Re,{'status':_0x56a1cf,'coordinator':_0x5ec586}),'children':_0x120c4b('button',{'className':_0x4affc9('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x56a1cf===c[_0x5dfa7e(0x1ad)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56a1cf!==c[_0x5dfa7e(0x1ad)]}),'type':'button','children':_0x120c4b(W,{'className':_0x5dfa7e(0x1ca)})})}):null;}function Re(_0x5670a2){const _0x4afaf8=_0x288259,{status:_0x109fa5,coordinator:_0x27ab16}=_0x5670a2;switch(_0x109fa5){case c[_0x4afaf8(0x213)]:return _0x120c4b($e,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x202)]:return _0x120c4b(xe,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x21a)]:return _0x120c4b(Pe,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x1ad)]:return _0x120c4b(Te,{});case c[_0x4afaf8(0x217)]:return _0x120c4b(Ae,{'coordinator':_0x27ab16});default:return null;}}function $e(_0x377b24){const _0x5cb217=_0x288259,{coordinator:_0x30ecda}=_0x377b24;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x5cb217(0x1b6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cb217(0x1e3)}),_0x120c4b(_0x22c645,{'onClick':()=>_0x30ecda['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x279f75){const _0x3a7b8d=_0x288259,{coordinator:_0x3a96ec}=_0x279f75;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x3a7b8d(0x1b6),{'className':_0x3a7b8d(0x1e7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x120c4b(_0x22c645,{'onClick':()=>_0x3a96ec[_0x3a7b8d(0x216)](),'children':_0x3a7b8d(0x1f2)})]});}function Pe(_0x540f95){const _0x5bd04b=_0x288259,{coordinator:_0x2b3d0b}=_0x540f95;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x5bd04b(0x1b6),{'className':_0x5bd04b(0x1e7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x120c4b(_0x22c645,{'variant':'text','onClick':()=>_0x2b3d0b[_0x5bd04b(0x20e)](),'children':_0x5bd04b(0x1c4)})]});}function Ae(_0x5b5747){const _0x50ffc7=_0x288259,{coordinator:_0x269e83}=_0x5b5747;return _0x18b69b(_0x182287,{'children':[_0x120c4b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x50ffc7(0x1a1)}),_0x120c4b(_0x22c645,{'variant':_0x50ffc7(0x1b2),'onClick':()=>_0x269e83[_0x50ffc7(0x1df)](),'children':_0x50ffc7(0x1c9)})]});}function Te(){const _0x471c51=_0x288259;return _0x120c4b(_0x182287,{'children':_0x471c51(0x1ae)});}var Fe=Object[_0x288259(0x218)],He=(_0x597881,_0x2e0b7c,_0x359c89,_0x443b17)=>{const _0x3afbee=_0x288259;for(var _0x90b0f5=_0x443b17>0x1?void 0x0:_0x443b17?Fe(_0x2e0b7c,_0x359c89):_0x2e0b7c,_0x23e3fd=_0x597881[_0x3afbee(0x1fe)]-0x1,_0x464d32;_0x23e3fd>=0x0;_0x23e3fd--)(_0x464d32=_0x597881[_0x23e3fd])&&(_0x90b0f5=_0x464d32(_0x90b0f5)||_0x90b0f5);return _0x90b0f5;},A=(_0x4f2e1c,_0x410599)=>(_0x36348e,_0x4fdf10)=>_0x410599(_0x36348e,_0x4fdf10,_0x4f2e1c);let m=class extends _0x2f9266{constructor(_0x1e5014,_0x59f260){const _0x449ede=_0x288259;super(),this[_0x449ede(0x1dd)]=_0x1e5014,this[_0x449ede(0x1ff)]=_0x59f260,this['_mountLiveShare']();}[_0x288259(0x19a)](){const _0xef82cf=_0x288259;this[_0xef82cf(0x1d2)](this['_uiPartsService'][_0xef82cf(0x196)](_0x367153[_0xef82cf(0x1cd)],()=>_0x4d0457(Le,this[_0xef82cf(0x1dd)])));}};m=He([A(0x0,_0x2ccce4(_0x38a60f)),A(0x1,_0x39de93)],m);const ye=_0x288259(0x23a),T={};var Ue=Object[_0x288259(0x218)],Ve=(_0x41ff90,_0x44f3e5,_0x30d7ea,_0x4ce8b6)=>{const _0x303322=_0x288259;for(var _0x5134db=_0x4ce8b6>0x1?void 0x0:_0x4ce8b6?Ue(_0x44f3e5,_0x30d7ea):_0x44f3e5,_0x5510b2=_0x41ff90[_0x303322(0x1fe)]-0x1,_0x2d5093;_0x5510b2>=0x0;_0x5510b2--)(_0x2d5093=_0x41ff90[_0x5510b2])&&(_0x5134db=_0x2d5093(_0x5134db)||_0x5134db);return _0x5134db;},je=(_0x1d3aa0,_0x4008fa)=>(_0x3d222e,_0x37da56)=>_0x4008fa(_0x3d222e,_0x37da56,_0x1d3aa0);let I=class extends _0x2f9266{constructor(_0x3779ad){const _0x588b31=_0x288259;super(),this[_0x588b31(0x1b3)]=_0x3779ad,this[_0x588b31(0x1c0)]();}[_0x288259(0x1c0)](){[_0xc86880['id'],_0x184f42['id'],_0x3493cd['id']]['forEach'](_0x5ef7c9=>{const _0x378a43=_0x33d3;this[_0x378a43(0x1d2)](this[_0x378a43(0x1b3)]['registerSharedOperation'](_0x5ef7c9));});}};I=Ve([je(0x0,_0x2ccce4(L))],I);var Me=Object[_0x288259(0x231)],ke=Object[_0x288259(0x218)],Ge=(_0x32d307,_0x7762f9,_0x4b7b01)=>_0x7762f9 in _0x32d307?Me(_0x32d307,_0x7762f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b7b01}):_0x32d307[_0x7762f9]=_0x4b7b01,We=(_0x4a4a44,_0x45c9a3,_0x5d9a4d,_0x3acefe)=>{const _0x4a4d80=_0x288259;for(var _0x110a54=_0x3acefe>0x1?void 0x0:_0x3acefe?ke(_0x45c9a3,_0x5d9a4d):_0x45c9a3,_0x38cfec=_0x4a4a44[_0x4a4d80(0x1fe)]-0x1,_0x4efb6b;_0x38cfec>=0x0;_0x38cfec--)(_0x4efb6b=_0x4a4a44[_0x38cfec])&&(_0x110a54=_0x4efb6b(_0x110a54)||_0x110a54);return _0x110a54;},F=(_0x1cc800,_0x3c46c3)=>(_0x36cdac,_0x2dc82c)=>_0x3c46c3(_0x36cdac,_0x2dc82c,_0x1cc800),B=(_0x35f92a,_0x712dab,_0x44f472)=>Ge(_0x35f92a,typeof _0x712dab!=_0x288259(0x1b0)?_0x712dab+'':_0x712dab,_0x44f472);const Ye=_0x288259(0x19f);let b=class extends _0x3f1d3f{constructor(_0x1e511a=T,_0x32e59b,_0x9a80){const _0x3f389f=_0x288259;super(),this[_0x3f389f(0x21d)]=_0x1e511a,this['_injector']=_0x32e59b,this[_0x3f389f(0x238)]=_0x9a80;const {..._0x3df5d2}=_0x2eff68({},T,this['_config']);this[_0x3f389f(0x238)][_0x3f389f(0x1de)](ye,_0x3df5d2);}[_0x288259(0x19e)](){const _0x14d7c0=_0x288259;_0x28d75e(this[_0x14d7c0(0x1dd)],_0x965e10([[L],[S],[I],[m]],this[_0x14d7c0(0x21d)][_0x14d7c0(0x199)])),_0x5b4615(this[_0x14d7c0(0x1dd)],[[I]]);}[_0x288259(0x19b)](){_0x5b4615(this['_injector'],[[m]]);}};B(b,_0x288259(0x1c1),_0x374271['UNIVER_UNKNOWN']),B(b,_0x288259(0x1c2),Ye),b=We([_0x553a41(_0x5d8e2c),F(0x1,_0x2ccce4(_0x38a60f)),F(0x2,_0x292df9)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x5f16(){const _0x4c8d55=['univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','defIds','following','1728160kgIJXr','_reporters','data','_status$','delete','_presenter','requireSession','Stop\x20following','getLiveShareCoordinator','1111752ylGwec','LIVESHARE_OPERATION','_beIdle','params','getInitialStates','fill','sheet','pipe','NEW_CHANGESETS','dispose','length','_uiPartsService','36eVQPtP','send','FOLLOWING','_collabSession','evenodd','326181TmvmeI','_handleNewHost','2AQWkEx','map','not-following','replace','live-share-icon','attrs','path','startFollowing','get','svg','toString','_handleNewChangeSets','IDLE','_fetchOperations','values','stopFollowing','PRESENTING','getOwnPropertyDescriptor','xlink:href','NOT_FOLLOWING','dispose$','4456110hHKimL','_config','LIVESHARE_NEW_HOST','LIVESHARE_FETCH_OPERATIONS','defs','_handleOperation','presenting','status$','event$','getValue','7UDrFct','includes','SAME_OPERATION_SHARE_INTERVAL','_entities','_stopFollowing','univerjs-icon\x20univerjs-icon-','getConfig','_handleOnline','18CHblwZ','_startFollowing','onCommandExecuted','defineProperty','idle','idSuffix','use','createInstance','_sharedOperations','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','_configService','_handleTerminate','live-share.config','unitId','add','registerSharedOperation','substring','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','_startPresenting','offline','sessionStatus$','registerComponent','displayName','shouldShareOperation','override','_mountLiveShare','onRendered','memberID','from','onStarting','UNIVER_LIVE_SHARE_PLUGIN','getTypeOfUnitAdded$','You\x27re\x20presenting\x20the\x20document','current','url(#$1','LIVESHARE_REQUEST_HOST','clear','then','entries','set','assign','has','end','getStatus','OFFLINE','You\x27are\x20offline.','asObservable','symbol','mask','default','_liveShareService','_stopPresenting','0\x200\x2017\x2017','div','tryStartPresenting','forEach','_handleOffline','_commandService','_collabSessionService','trim','744855gXupYh','getLiveShareCoordinatorSync','getUnitId','_init','type','pluginName','children','Start\x20following','executeCommand','string','unsubscribe','_status','Stop\x20presenting','univer-size-4','_unitID','LIVESHARE_TERMINATE','HEADER_MENU','ONLINE','getMemberID','subscribe','stringify','disposeWithMe','tag','_commandDisposable','colorChannel1','UNIVER_SHEET','complete','_startLiveShareCoordinator','3981610OVuPAs','1em','getTypeOfUnitDisposed$','next','_injector','setConfig','stopPresenting','11HDWnoZ','reverse','11927532Losnhb','Present\x20this\x20document','parse','init','LiveShareIcon'];_0x5f16=function(){return _0x4c8d55;};return _0x5f16();}
1
+ const _0x1c78e4=_0x4fc5;(function(_0x448a29,_0x121f2b){const _0x5dde8a=_0x4fc5,_0x357d8b=_0x448a29();while(!![]){try{const _0x38840e=parseInt(_0x5dde8a(0x15a))/0x1+-parseInt(_0x5dde8a(0x1df))/0x2*(-parseInt(_0x5dde8a(0x157))/0x3)+parseInt(_0x5dde8a(0x16c))/0x4*(parseInt(_0x5dde8a(0x19e))/0x5)+parseInt(_0x5dde8a(0x1d2))/0x6+-parseInt(_0x5dde8a(0x1dd))/0x7*(parseInt(_0x5dde8a(0x14d))/0x8)+-parseInt(_0x5dde8a(0x1a8))/0x9+-parseInt(_0x5dde8a(0x1c2))/0xa;if(_0x38840e===_0x121f2b)break;else _0x357d8b['push'](_0x357d8b['shift']());}catch(_0x3c3497){_0x357d8b['push'](_0x357d8b['shift']());}}}(_0x2bfa,0xcfd87));var J=Object[_0x1c78e4(0x143)],K=(_0x47b0a7,_0x9727de,_0x191def)=>_0x9727de in _0x47b0a7?J(_0x47b0a7,_0x9727de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x191def}):_0x47b0a7[_0x9727de]=_0x191def,u=(_0x67648c,_0x17ae10,_0x49c1f0)=>K(_0x67648c,typeof _0x17ae10!=_0x1c78e4(0x1af)?_0x17ae10+'':_0x17ae10,_0x49c1f0);import{Disposable as _0x12154a,toDisposable as _0x5217c8,IUniverInstanceService as _0x5969d9,Inject as _0x1a6954,Injector as _0xdf7c04,IConfigService as _0x213343,ICommandService as _0xf26fa0,RxDisposable as _0x3f9973,UniverInstanceType as _0x8c38dc,DisposableCollection as _0x5309db,CommandType as _0x2b1f1c,DependentOn as _0x579b4c,Plugin as _0x32fdda,merge as _0x50f219,registerDependencies as _0x236b83,mergeOverrideWithDependencies as _0x4faafe,touchDependencies as _0x403cf0}from'@univerjs/core';import{useDependency as _0x12bce2,useObservable as _0x3246f2,IUIPartsService as _0x19d4b0,BuiltInUIPart as _0x4a91ef,connectInjector as _0x4d7dcf}from'@univerjs/ui';import{jsx as _0x1c423a,jsxs as _0x5c6e44,Fragment as _0x2cc6e1}from'react/jsx-runtime';import{Dropdown as _0x4e3f46,clsx as _0x25885e,Button as _0x595499}from'@univerjs/design';import{useRef as _0x1e6b39,createElement as _0x23e9b5,forwardRef as _0x4b44ea,useState as _0x3ec4cb,useEffect as _0x8b76d1}from'react';import{CollaborationEvent as _0x1ef809,parseProtocolChangeset as _0x399321}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x17ced7,SessionStatus as _0x4a028c,UniverCollaborationClientPlugin as _0x22ac1e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x190abd,SetWorksheetActiveOperation as _0x35566a}from'@univerjs/sheets';import{BehaviorSubject as _0xc4cd4f,Subject as _0x1c6f6d}from'rxjs';import{takeUntil as _0x57326a,throttleTime as _0x2b868b}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fa9e7,SetScrollOperation as _0x38d67b}from'@univerjs/sheets-ui';function k({ref:_0x5a1c23,..._0x70444a}){const _0x361a56=_0x1c78e4,{icon:_0x144016,id:_0x495a1f,className:_0x49b9e0,extend:_0x3e8568,..._0x546975}=_0x70444a,_0x2d12a5=('univerjs-icon\x20univerjs-icon-'+_0x495a1f+'\x20'+(_0x49b9e0||''))[_0x361a56(0x165)](),_0x4665c8=_0x1e6b39('_'+Oe());return G(_0x144016,''+_0x495a1f,{'defIds':_0x144016[_0x361a56(0x1e1)],'idSuffix':_0x4665c8['current']},{'ref':_0x5a1c23,'className':_0x2d12a5,..._0x546975},_0x3e8568);}function G(_0x23f191,_0x64e5dc,_0x1b2716,_0x4f08e5,_0x100598){const _0x1a5773=_0x1c78e4;return _0x23e9b5(_0x23f191[_0x1a5773(0x191)],{'key':_0x64e5dc,...be(_0x23f191,_0x1b2716,_0x100598),..._0x4f08e5},(Ee(_0x23f191,_0x1b2716)[_0x1a5773(0x1c3)]||[])[_0x1a5773(0x1bc)]((_0x16cac2,_0x486d48)=>G(_0x16cac2,_0x64e5dc+'-'+_0x23f191['tag']+'-'+_0x486d48,_0x1b2716,void 0x0,_0x100598)));}function be(_0x42aeaa,_0x7940e4,_0x2102e9){const _0x351d5d=_0x1c78e4,_0x58e5c1={..._0x42aeaa[_0x351d5d(0x1ad)]};_0x2102e9!=null&&_0x2102e9['colorChannel1']&&_0x58e5c1[_0x351d5d(0x1bd)]==='colorChannel1'&&(_0x58e5c1[_0x351d5d(0x1bd)]=_0x2102e9[_0x351d5d(0x1b8)]),_0x42aeaa[_0x351d5d(0x191)]===_0x351d5d(0x193)&&_0x58e5c1['id']&&(_0x58e5c1['id']=_0x58e5c1['id']+_0x7940e4['idSuffix']),Object['entries'](_0x58e5c1)[_0x351d5d(0x13f)](([_0x2fdc0d,_0x591549])=>{const _0x5035c9=_0x351d5d;_0x2fdc0d===_0x5035c9(0x193)&&typeof _0x591549==_0x5035c9(0x1dc)&&(_0x58e5c1[_0x2fdc0d]=_0x591549['replace'](/url\(#(.*)\)/,_0x5035c9(0x144)+_0x7940e4[_0x5035c9(0x160)]+')'));});const {defIds:_0x24f923}=_0x7940e4;return!_0x24f923||_0x24f923[_0x351d5d(0x195)]===0x0||(_0x42aeaa[_0x351d5d(0x191)]===_0x351d5d(0x183)&&_0x58e5c1[_0x351d5d(0x179)]&&(_0x58e5c1[_0x351d5d(0x179)]=_0x58e5c1[_0x351d5d(0x179)]+_0x7940e4[_0x351d5d(0x160)]),Object[_0x351d5d(0x13d)](_0x58e5c1)[_0x351d5d(0x13f)](([_0x507bdc,_0x1aa202])=>{const _0x103532=_0x351d5d;typeof _0x1aa202=='string'&&(_0x58e5c1[_0x507bdc]=_0x1aa202[_0x103532(0x177)](/url\(#(.*)\)/,'url(#$1'+_0x7940e4['idSuffix']+')'));})),_0x58e5c1;}function Ee(_0x33512f,_0x2fae61){const _0x3616b5=_0x1c78e4;var _0x16f4c3;const {defIds:_0x11d561}=_0x2fae61;return!_0x11d561||_0x11d561['length']===0x0?_0x33512f:_0x33512f[_0x3616b5(0x191)]===_0x3616b5(0x1c0)&&((_0x16f4c3=_0x33512f[_0x3616b5(0x1c3)])!=null&&_0x16f4c3[_0x3616b5(0x195)])?{..._0x33512f,'children':_0x33512f[_0x3616b5(0x1c3)][_0x3616b5(0x1bc)](_0x58d609=>typeof _0x58d609[_0x3616b5(0x1ad)]['id']==_0x3616b5(0x1dc)&&_0x11d561&&_0x11d561[_0x3616b5(0x198)](_0x58d609['attrs']['id'])?{..._0x58d609,'attrs':{..._0x58d609[_0x3616b5(0x1ad)],'id':_0x58d609[_0x3616b5(0x1ad)]['id']+_0x2fae61[_0x3616b5(0x160)]}}:_0x58d609)}:_0x33512f;}function Oe(){const _0x2c421c=_0x1c78e4;return Math[_0x2c421c(0x14e)]()['toString'](0x24)[_0x2c421c(0x14f)](0x2,0x8);}k[_0x1c78e4(0x150)]=_0x1c78e4(0x154);const we={'tag':_0x1c78e4(0x180),'attrs':{'xmlns':_0x1c78e4(0x1cb),'fill':_0x1c78e4(0x197),'viewBox':_0x1c78e4(0x1ca),'width':_0x1c78e4(0x1e0),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1c78e4(0x16e),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x1c78e4(0x19f),'attrs':{'fill':'currentColor','d':_0x1c78e4(0x1b4),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x4b44ea(function(_0x161205,_0x250f9a){const _0x556268=_0x1c78e4;return _0x23e9b5(k,Object[_0x556268(0x184)]({},_0x161205,{'id':'live-share-icon','ref':_0x250f9a,'icon':we}));});function _0x4fc5(_0x3b03fa,_0x2e9b8a){_0x3b03fa=_0x3b03fa-0x138;const _0x2bfa18=_0x2bfa();let _0x4fc5b5=_0x2bfa18[_0x3b03fa];return _0x4fc5b5;}W['displayName']=_0x1c78e4(0x156);class L extends _0x12154a{constructor(){const _0x211312=_0x1c78e4;super(...arguments),u(this,_0x211312(0x1a5),new Set()),u(this,_0x211312(0x140),new Set());}[_0x1c78e4(0x187)](_0x3a13b6){const _0x1fd176=_0x1c78e4;return this['_sharedOperations']['add'](_0x3a13b6),_0x5217c8(()=>this[_0x1fd176(0x1a5)][_0x1fd176(0x1ba)](_0x3a13b6));}[_0x1c78e4(0x1db)](_0xf2db90){const _0x236595=_0x1c78e4;return this['_reporters'][_0x236595(0x17c)](_0xf2db90),_0x5217c8(()=>this[_0x236595(0x140)][_0x236595(0x1ba)](_0xf2db90));}[_0x1c78e4(0x155)](_0x519d11){const _0x16827f=_0x1c78e4;return this[_0x16827f(0x1a5)][_0x16827f(0x172)](_0x519d11);}[_0x1c78e4(0x1b9)](_0x2de91e){const _0x3ac88e=_0x1c78e4;return Array[_0x3ac88e(0x1bb)](this[_0x3ac88e(0x140)])[_0x3ac88e(0x1bc)](_0x17b801=>_0x17b801(_0x2de91e));}}var Ne=Object[_0x1c78e4(0x162)],Y=(_0x4c3679,_0x4e41b6,_0x3dec2a,_0x482c9a)=>{const _0x2e80e4=_0x1c78e4;for(var _0x4e29b6=_0x482c9a>0x1?void 0x0:_0x482c9a?Ne(_0x4e41b6,_0x3dec2a):_0x4e41b6,_0x380140=_0x4c3679[_0x2e80e4(0x195)]-0x1,_0xede0b4;_0x380140>=0x0;_0x380140--)(_0xede0b4=_0x4c3679[_0x380140])&&(_0x4e29b6=_0xede0b4(_0x4e29b6)||_0x4e29b6);return _0x4e29b6;},_=(_0x4d1d34,_0x2203b9)=>(_0x29b77e,_0x5936d4)=>_0x2203b9(_0x29b77e,_0x5936d4,_0x4d1d34);let S=class extends _0x3f9973{constructor(_0x278a7e,_0x31f189,_0x5de18e){const _0x2c68db=_0x1c78e4;super(),u(this,'_entities',new Map()),(this[_0x2c68db(0x188)]=_0x278a7e,this['_injector']=_0x31f189,this[_0x2c68db(0x138)]=_0x5de18e,this[_0x2c68db(0x1b6)]());}async[_0x1c78e4(0x192)](_0x59b214){const _0x21e1e9=_0x1c78e4;return this[_0x21e1e9(0x17b)]['has'](_0x59b214)||await this[_0x21e1e9(0x1b7)](_0x59b214),this[_0x21e1e9(0x17b)][_0x21e1e9(0x19d)](_0x59b214);}['getLiveShareCoordinatorSync'](_0x1ba538){const _0x47d766=_0x1c78e4;var _0x449c8f;return(_0x449c8f=this[_0x47d766(0x17b)][_0x47d766(0x19d)](_0x1ba538))!=null?_0x449c8f:null;}['_init'](){const _0x50eec1=_0x1c78e4;this[_0x50eec1(0x188)][_0x50eec1(0x18a)](_0x8c38dc[_0x50eec1(0x1b3)])[_0x50eec1(0x151)](_0x57326a(this[_0x50eec1(0x1a4)]))[_0x50eec1(0x1a0)](async _0x3fb8c2=>{const _0x39bf2c=_0x50eec1,_0x262d12=_0x3fb8c2[_0x39bf2c(0x1be)]();this[_0x39bf2c(0x17b)][_0x39bf2c(0x172)](_0x262d12)||this['_startLiveShareCoordinator'](_0x262d12);}),this[_0x50eec1(0x188)][_0x50eec1(0x186)](_0x8c38dc['UNIVER_SHEET'])[_0x50eec1(0x151)](_0x57326a(this['dispose$']))[_0x50eec1(0x1a0)](_0x32b22a=>{const _0x158b00=_0x50eec1,_0x151186=_0x32b22a[_0x158b00(0x1be)](),_0x1563d6=this['_entities']['get'](_0x151186);_0x1563d6==null||_0x1563d6['dispose']();});}async[_0x1c78e4(0x1b7)](_0x2d26ad){const _0x1b5fb9=_0x1c78e4,_0x2edda0=await this[_0x1b5fb9(0x138)][_0x1b5fb9(0x17d)](_0x2d26ad),_0x22586b=this[_0x1b5fb9(0x168)][_0x1b5fb9(0x164)](N,_0x2d26ad,_0x2edda0);return _0x22586b['init'](),this['_entities']['set'](_0x2d26ad,_0x22586b),_0x22586b;}};S=Y([_(0x0,_0x5969d9),_(0x1,_0x1a6954(_0xdf7c04)),_(0x2,_0x1a6954(_0x17ced7))],S);var c=(_0x24c783=>(_0x24c783[_0x1c78e4(0x16a)]=_0x1c78e4(0x15b),_0x24c783['IDLE']='idle',_0x24c783[_0x1c78e4(0x1ae)]=_0x1c78e4(0x18c),_0x24c783[_0x1c78e4(0x17a)]='not-following',_0x24c783[_0x1c78e4(0x1d1)]=_0x1c78e4(0x13b),_0x24c783))(c||{});const Ce=_0x1c78e4(0x139),De=0xc8;let N=class extends _0x3f9973{constructor(_0x554e2f,_0x23894f,_0x73cbda,_0x69594c,_0x4d668d){const _0x2fec80=_0x1c78e4;super(),u(this,_0x2fec80(0x1e2),new _0xc4cd4f(_0x2fec80(0x141))),u(this,_0x2fec80(0x1b5),this[_0x2fec80(0x1e2)][_0x2fec80(0x1a6)]()),u(this,_0x2fec80(0x1b6),!0x1),u(this,_0x2fec80(0x1bf),null),u(this,_0x2fec80(0x13c),null),(this['_unitID']=_0x554e2f,this[_0x2fec80(0x14b)]=_0x23894f,this['_configService']=_0x73cbda,this[_0x2fec80(0x15f)]=_0x69594c,this[_0x2fec80(0x14c)]=_0x4d668d);}get['_status'](){const _0x4a6811=_0x1c78e4;return this[_0x4a6811(0x1e2)][_0x4a6811(0x13e)]();}[_0x1c78e4(0x1d3)](){const _0x802d10=_0x1c78e4;var _0x3bd303;(_0x3bd303=this[_0x802d10(0x1bf)])==null||_0x3bd303[_0x802d10(0x1d3)](),this[_0x802d10(0x1e2)][_0x802d10(0x1b1)](_0x802d10(0x141)),this[_0x802d10(0x1e2)][_0x802d10(0x171)]();}[_0x1c78e4(0x153)](){const _0x403747=_0x1c78e4;return this[_0x403747(0x1a7)];}[_0x1c78e4(0x1d8)](){const _0x4c0aae=_0x1c78e4;this[_0x4c0aae(0x1b6)]||(this[_0x4c0aae(0x1b6)]=!0x0,this[_0x4c0aae(0x14b)][_0x4c0aae(0x185)][_0x4c0aae(0x151)](_0x57326a(this[_0x4c0aae(0x1a4)]))[_0x4c0aae(0x1a0)](_0x401383=>{const _0x4e72e6=_0x4c0aae;switch(_0x401383){case _0x4a028c[_0x4e72e6(0x16a)]:this['_handleOffline']();break;case _0x4a028c[_0x4e72e6(0x17f)]:this['_handleOnline']();break;}}),this[_0x4c0aae(0x14b)][_0x4c0aae(0x15c)][_0x4c0aae(0x151)](_0x57326a(this[_0x4c0aae(0x1a4)]))[_0x4c0aae(0x1a0)](_0x1e38a8=>{const _0x5e9c49=_0x4c0aae,{eventID:_0x14971b}=_0x1e38a8;switch(_0x14971b){case _0x1ef809[_0x5e9c49(0x15e)]:this['_handleNewHost'](_0x1e38a8);break;case _0x1ef809[_0x5e9c49(0x16d)]:this[_0x5e9c49(0x1c4)](_0x1e38a8);break;case _0x1ef809['LIVESHARE_TERMINATE']:this[_0x5e9c49(0x1e3)]();break;case _0x1ef809[_0x5e9c49(0x1c5)]:this[_0x5e9c49(0x1c6)](_0x1e38a8);break;}}));}[_0x1c78e4(0x1e5)](){const _0x41d1e1=_0x1c78e4;this[_0x41d1e1(0x14b)][_0x41d1e1(0x176)]({'eventID':_0x1ef809[_0x41d1e1(0x1a3)],'data':{'unitID':this[_0x41d1e1(0x181)],'userID':this[_0x41d1e1(0x14b)][_0x41d1e1(0x148)]()}},this[_0x41d1e1(0x181)]);}[_0x1c78e4(0x161)](){const _0x440abd=_0x1c78e4;this[_0x440abd(0x1a7)]==='presenting'&&(this[_0x440abd(0x1e2)][_0x440abd(0x1b1)](_0x440abd(0x141)),this['_collabSession']['send']({'eventID':_0x1ef809[_0x440abd(0x1c9)],'data':{'unitID':this[_0x440abd(0x181)]}},this['_unitID']));}['startFollowing'](){const _0x4ac97a=_0x1c78e4;this['_status']===_0x4ac97a(0x1da)&&(this['_status$']['next']('following'),this['_startFollowing']());}[_0x1c78e4(0x1d0)](){const _0x1231b1=_0x1c78e4;this['_status']===_0x1231b1(0x18c)&&this[_0x1231b1(0x1b0)]();}['_handleNewHost'](_0x34d387){const _0x3a99cb=_0x1c78e4,{presenter:_0xbc7752}=_0x34d387[_0x3a99cb(0x1d9)],_0x34ab7c=this[_0x3a99cb(0x14b)][_0x3a99cb(0x148)]();this[_0x3a99cb(0x13c)]=_0xbc7752,_0xbc7752===_0x34ab7c?(this[_0x3a99cb(0x1b0)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0x3a99cb(0x1d6)](),this[_0x3a99cb(0x1a2)]());}[_0x1c78e4(0x196)](){const _0x1b62b9=_0x1c78e4,_0x1ced9d={'eventID':_0x1ef809[_0x1b62b9(0x1c7)]};this[_0x1b62b9(0x14b)][_0x1b62b9(0x176)](_0x1ced9d,this[_0x1b62b9(0x181)]);}[_0x1c78e4(0x1e3)](){const _0x74be2e=_0x1c78e4;this[_0x74be2e(0x13c)]=null,this[_0x74be2e(0x1a7)]!==_0x74be2e(0x13b)&&this[_0x74be2e(0x174)]();}[_0x1c78e4(0x1c6)](_0x1807be){const _0x583e90=_0x1c78e4;if(this['_status']===_0x583e90(0x18c)&&this[_0x583e90(0x13c)]===_0x1807be[_0x583e90(0x1d9)]['memberID']){const _0x3ec2dc=_0x399321(_0x1807be[_0x583e90(0x1d9)])['mutations'][_0x583e90(0x169)]()[_0x583e90(0x1ac)](_0x5181ef=>_0x5181ef['id']===_0x190abd['id']);if(_0x3ec2dc){const _0x13b796=_0x3ec2dc['params'][_0x583e90(0x166)],_0x4c5ac6=_0x3ec2dc['params'][_0x583e90(0x1de)]['id'];setTimeout(()=>{const _0x594c2b=_0x583e90;this[_0x594c2b(0x14c)][_0x594c2b(0x145)](_0x35566a['id'],{'unitId':_0x13b796,'subUnitId':_0x4c5ac6},{'fromCollab':!0x0});});}}}[_0x1c78e4(0x175)](){const _0x4ec94f=_0x1c78e4;this[_0x4ec94f(0x1e2)][_0x4ec94f(0x1b1)](_0x4ec94f(0x13b));const _0xcec87d=new Map(),_0xc722bc=this[_0x4ec94f(0x1bf)]=new _0x5309db();_0xc722bc[_0x4ec94f(0x17c)](_0x5217c8(()=>{const _0x54956a=_0x4ec94f;_0xcec87d[_0x54956a(0x13f)](_0x17fbca=>_0x17fbca['complete']()),_0xcec87d[_0x54956a(0x194)]();})),_0xc722bc[_0x4ec94f(0x17c)](this['_commandService'][_0x4ec94f(0x149)](_0x25a6e6=>{const _0x5e4aed=_0x4ec94f;var _0x378225;if(_0x25a6e6[_0x5e4aed(0x15d)]!==_0x2b1f1c[_0x5e4aed(0x146)]||!this['_liveShareService'][_0x5e4aed(0x155)](_0x25a6e6['id']))return;const {id:_0x17b5db}=_0x25a6e6;let _0x2ce684;_0xcec87d['has'](_0x17b5db)?_0x2ce684=_0xcec87d[_0x5e4aed(0x19d)](_0x17b5db):(_0x2ce684=new _0x1c6f6d(),_0xcec87d['set'](_0x17b5db,_0x2ce684),_0x2ce684['pipe'](_0x2b868b((_0x378225=this[_0x5e4aed(0x1ce)][_0x5e4aed(0x170)](Ce))!=null?_0x378225:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e4aed(0x1a0)](_0x5729a0=>{const _0x3ddaf6=_0x5e4aed;this[_0x3ddaf6(0x14b)][_0x3ddaf6(0x176)]({'eventID':_0x1ef809['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3ddaf6(0x181)],'operations':{[_0x5729a0['id']]:{'id':_0x5729a0['id'],'params':JSON['stringify'](_0x5729a0['params'])}}}},this[_0x3ddaf6(0x181)]);})),_0x2ce684[_0x5e4aed(0x1b1)](_0x25a6e6);})),this[_0x4ec94f(0x15f)][_0x4ec94f(0x1b9)](this[_0x4ec94f(0x181)])[_0x4ec94f(0x13f)](_0x57195f=>this[_0x4ec94f(0x14b)][_0x4ec94f(0x176)]({'eventID':_0x1ef809['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4ec94f(0x181)],'operations':{[_0x57195f['id']]:{'id':_0x57195f['id'],'params':JSON[_0x4ec94f(0x1a1)](_0x57195f['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x42a533=_0x1c78e4;var _0x19cb53;this[_0x42a533(0x1e2)][_0x42a533(0x1b1)](_0x42a533(0x141)),(_0x19cb53=this[_0x42a533(0x1bf)])==null||_0x19cb53[_0x42a533(0x1d3)](),this[_0x42a533(0x1bf)]=null;}['_startFollowing'](){const _0x221382=_0x1c78e4;var _0x2b8b4d;(_0x2b8b4d=this[_0x221382(0x1bf)])==null||_0x2b8b4d[_0x221382(0x1d3)](),this[_0x221382(0x1e2)][_0x221382(0x1b1)](_0x221382(0x18c));}[_0x1c78e4(0x174)](){const _0x2bec49=_0x1c78e4;var _0x5b0238;this[_0x2bec49(0x1e2)][_0x2bec49(0x1b1)](_0x2bec49(0x141)),(_0x5b0238=this[_0x2bec49(0x1bf)])==null||_0x5b0238[_0x2bec49(0x1d3)](),this[_0x2bec49(0x1bf)]=null;}[_0x1c78e4(0x1b0)](){const _0x10cf32=_0x1c78e4;var _0x26e9dd;this[_0x10cf32(0x1e2)][_0x10cf32(0x1b1)](_0x10cf32(0x1da)),(_0x26e9dd=this[_0x10cf32(0x1bf)])==null||_0x26e9dd['dispose']();}[_0x1c78e4(0x1c4)](_0x475ce6){const _0x14355d=_0x1c78e4;if([_0x14355d(0x13b),_0x14355d(0x1da),'offline'][_0x14355d(0x198)](this[_0x14355d(0x1a7)])||!_0x475ce6[_0x14355d(0x1d9)][_0x14355d(0x1a9)]||_0x475ce6['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x14355d(0x1a7)]==='idle'&&this[_0x14355d(0x1a2)]();const _0x3fa1a2=_0x475ce6[_0x14355d(0x1d9)][_0x14355d(0x17e)];Object[_0x14355d(0x173)](_0x3fa1a2)[_0x14355d(0x13f)](_0x3cf3a4=>{const _0x4b21ad=_0x14355d;this[_0x4b21ad(0x14c)][_0x4b21ad(0x145)](_0x3cf3a4['id'],_0x3cf3a4[_0x4b21ad(0x1ab)]?JSON[_0x4b21ad(0x167)](_0x3cf3a4[_0x4b21ad(0x1ab)]):null,{'fromCollab':!0x0});});}[_0x1c78e4(0x13a)](){const _0x21536c=_0x1c78e4;var _0x507040;this[_0x21536c(0x1e2)][_0x21536c(0x1b1)](_0x21536c(0x15b)),(_0x507040=this[_0x21536c(0x1bf)])==null||_0x507040['dispose']();}['_handleOnline'](){const _0x10188e=_0x1c78e4;this[_0x10188e(0x1e2)][_0x10188e(0x1b1)](_0x10188e(0x141)),this[_0x10188e(0x196)]();}};N=Y([_(0x2,_0x213343),_(0x3,_0x1a6954(L)),_(0x4,_0xf26fa0)],N);function Le(){const _0x391895=_0x1c78e4,_0x4a5b8e=_0x12bce2(S),_0xc55fef=_0x12bce2(_0x5969d9),_0x3a1c98=_0x3246f2(()=>_0xc55fef['getCurrentTypeOfUnit$'](_0x8c38dc[_0x391895(0x1b3)]),void 0x0,!0x1,[]),[_0x75fe52,_0x49d1b9]=_0x3ec4cb(null),[_0x393fbf,_0x5d5101]=_0x3ec4cb(c[_0x391895(0x152)]),_0x4f2d2b=_0x1e6b39(null);return _0x8b76d1(()=>(_0x3a1c98&&_0x4a5b8e[_0x391895(0x192)](_0x3a1c98[_0x391895(0x1be)]())['then'](_0x24a1fe=>{const _0x409186=_0x391895;_0x49d1b9(_0x24a1fe),_0x4f2d2b[_0x409186(0x18d)]=_0x24a1fe[_0x409186(0x1b5)][_0x409186(0x1a0)](_0x48c9da=>{_0x5d5101(_0x48c9da);});}),()=>{const _0x4045de=_0x391895;var _0x179886;(_0x179886=_0x4f2d2b[_0x4045de(0x18d)])==null||_0x179886['unsubscribe'](),_0x4f2d2b[_0x4045de(0x18d)]=null;}),[_0x3a1c98,_0x4a5b8e]),_0x75fe52?_0x1c423a(_0x4e3f46,{'align':_0x391895(0x1d5),'disabled':_0x393fbf===c[_0x391895(0x16a)],'className':_0x391895(0x16b),'overlay':_0x1c423a(Re,{'status':_0x393fbf,'coordinator':_0x75fe52}),'children':_0x1c423a(_0x391895(0x19c),{'className':_0x25885e(_0x391895(0x18b),{'univer-cursor-not-allowed':_0x393fbf===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x393fbf!==c[_0x391895(0x16a)]}),'type':_0x391895(0x19c),'children':_0x1c423a(W,{'className':_0x391895(0x1cf)})})}):null;}function Re(_0x154153){const _0x3a5a38=_0x1c78e4,{status:_0x32dde6,coordinator:_0x34d907}=_0x154153;switch(_0x32dde6){case c[_0x3a5a38(0x152)]:return _0x1c423a($e,{'coordinator':_0x34d907});case c[_0x3a5a38(0x1ae)]:return _0x1c423a(xe,{'coordinator':_0x34d907});case c[_0x3a5a38(0x17a)]:return _0x1c423a(Pe,{'coordinator':_0x34d907});case c[_0x3a5a38(0x16a)]:return _0x1c423a(Te,{});case c['PRESENTING']:return _0x1c423a(Ae,{'coordinator':_0x34d907});default:return null;}}function $e(_0x24e4e4){const _0x556cce=_0x1c78e4,{coordinator:_0x379b04}=_0x24e4e4;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a('div',{'className':_0x556cce(0x189),'children':_0x556cce(0x158)}),_0x1c423a(_0x595499,{'onClick':()=>_0x379b04[_0x556cce(0x1e5)](),'children':_0x556cce(0x1e4)})]});}function xe(_0x2b5853){const _0x532224=_0x1c78e4,{coordinator:_0x4024f0}=_0x2b5853;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x532224(0x18f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x532224(0x1aa)}),_0x1c423a(_0x595499,{'onClick':()=>_0x4024f0['stopFollowing'](),'children':_0x532224(0x1cc)})]});}function Pe(_0x13bb1b){const _0x168073=_0x1c78e4,{coordinator:_0x2702bc}=_0x13bb1b;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x168073(0x18f),{'className':_0x168073(0x189),'children':_0x168073(0x142)}),_0x1c423a(_0x595499,{'variant':_0x168073(0x163),'onClick':()=>_0x2702bc[_0x168073(0x14a)](),'children':_0x168073(0x1d4)})]});}function Ae(_0xcb17c6){const _0x4507c9=_0x1c78e4,{coordinator:_0x5b1cea}=_0xcb17c6;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x4507c9(0x18f),{'className':_0x4507c9(0x189),'children':_0x4507c9(0x1c8)}),_0x1c423a(_0x595499,{'variant':_0x4507c9(0x1cd),'onClick':()=>_0x5b1cea[_0x4507c9(0x161)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x214012=_0x1c78e4;return _0x1c423a(_0x2cc6e1,{'children':_0x214012(0x159)});}var Fe=Object[_0x1c78e4(0x162)],He=(_0x2ebc94,_0x442f7f,_0x1c1963,_0xd3cf2f)=>{for(var _0x3d1d6a=_0xd3cf2f>0x1?void 0x0:_0xd3cf2f?Fe(_0x442f7f,_0x1c1963):_0x442f7f,_0x4b8eca=_0x2ebc94['length']-0x1,_0x276d55;_0x4b8eca>=0x0;_0x4b8eca--)(_0x276d55=_0x2ebc94[_0x4b8eca])&&(_0x3d1d6a=_0x276d55(_0x3d1d6a)||_0x3d1d6a);return _0x3d1d6a;},A=(_0x17c2fd,_0x3e797c)=>(_0x4baab4,_0x339145)=>_0x3e797c(_0x4baab4,_0x339145,_0x17c2fd);function _0x2bfa(){const _0x370629=['idle','You\x27re\x20not\x20following\x20the\x20presenter','defineProperty','url(#$1','executeCommand','OPERATION','disposeWithMe','getMemberID','onCommandExecuted','startFollowing','_collabSession','_commandService','207496ZURbAi','random','substring','displayName','pipe','IDLE','getStatus','UniverIcon','shouldShareOperation','LiveShareIcon','17259wDVNeA','Present\x20this\x20document','You\x27are\x20offline.','1285531LBdasw','offline','event$','type','LIVESHARE_NEW_HOST','_liveShareService','idSuffix','stopPresenting','getOwnPropertyDescriptor','text','createInstance','trim','unitId','parse','_injector','reverse','OFFLINE','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','6464536HkpCgx','LIVESHARE_OPERATION','currentColor','pluginName','getConfig','complete','has','values','_beIdle','_startPresenting','send','replace','live-share.config','xlink:href','NOT_FOLLOWING','_entities','add','requireSession','operations','ONLINE','svg','_unitID','override','use','assign','sessionStatus$','getTypeOfUnitDisposed$','registerSharedOperation','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','current','onStarting','div','onRendered','tag','getLiveShareCoordinator','mask','clear','length','_fetchOperations','none','includes','_config','UNIVER_LIVE_SHARE_PLUGIN','_mountLiveShare','button','get','5kxPXWq','path','subscribe','stringify','_startFollowing','LIVESHARE_REQUEST_HOST','dispose$','_sharedOperations','asObservable','_status','15127407MCEYcO','presenter','You\x27re\x20following\x20the\x20presenter','params','find','attrs','FOLLOWING','symbol','_stopFollowing','next','_uiPartsService','UNIVER_SHEET','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','status$','_init','_startLiveShareCoordinator','colorChannel1','getInitialStates','delete','from','map','fill','getUnitId','_commandDisposable','defs','HEADER_MENU','2114950eozlqC','children','_handleOperation','NEW_CHANGESETS','_handleNewChangeSets','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20presenting\x20the\x20document','LIVESHARE_TERMINATE','0\x200\x2017\x2017','http://www.w3.org/2000/svg','Stop\x20following','default','_configService','univer-size-4','stopFollowing','PRESENTING','1427760BDiPRp','dispose','Start\x20following','end','_stopPresenting','UNIVER_UNKNOWN','init','data','not-following','registerInitialStateReporter','string','273lqRkfB','sheet','214Mzqvwm','1em','defIds','_status$','_handleTerminate','Start','tryStartPresenting','_collabSessionService','SAME_OPERATION_SHARE_INTERVAL','_handleOffline','presenting','_presenter','entries','getValue','forEach','_reporters'];_0x2bfa=function(){return _0x370629;};return _0x2bfa();}let m=class extends _0x12154a{constructor(_0x50877c,_0x30f152){const _0x1a2274=_0x1c78e4;super(),this['_injector']=_0x50877c,this['_uiPartsService']=_0x30f152,this[_0x1a2274(0x19b)]();}[_0x1c78e4(0x19b)](){const _0x58be3b=_0x1c78e4;this['disposeWithMe'](this[_0x58be3b(0x1b2)]['registerComponent'](_0x4a91ef[_0x58be3b(0x1c1)],()=>_0x4d7dcf(Le,this['_injector'])));}};m=He([A(0x0,_0x1a6954(_0xdf7c04)),A(0x1,_0x19d4b0)],m);const ye=_0x1c78e4(0x178),T={};var Ue=Object[_0x1c78e4(0x162)],Ve=(_0x48481b,_0x1005d2,_0x4429fc,_0x301b1b)=>{for(var _0x40aa05=_0x301b1b>0x1?void 0x0:_0x301b1b?Ue(_0x1005d2,_0x4429fc):_0x1005d2,_0x5a9b64=_0x48481b['length']-0x1,_0x3028e2;_0x5a9b64>=0x0;_0x5a9b64--)(_0x3028e2=_0x48481b[_0x5a9b64])&&(_0x40aa05=_0x3028e2(_0x40aa05)||_0x40aa05);return _0x40aa05;},je=(_0x3d3d2b,_0x48bdc5)=>(_0x580a2e,_0x562905)=>_0x48bdc5(_0x580a2e,_0x562905,_0x3d3d2b);let I=class extends _0x12154a{constructor(_0x2845db){const _0x3d9eb2=_0x1c78e4;super(),this['_liveShareService']=_0x2845db,this[_0x3d9eb2(0x1b6)]();}[_0x1c78e4(0x1b6)](){const _0x325a55=_0x1c78e4;[_0x2fa9e7['id'],_0x38d67b['id'],_0x35566a['id']][_0x325a55(0x13f)](_0x37a2fc=>{const _0x5cf9f8=_0x325a55;this[_0x5cf9f8(0x147)](this['_liveShareService'][_0x5cf9f8(0x187)](_0x37a2fc));});}};I=Ve([je(0x0,_0x1a6954(L))],I);var Me=Object[_0x1c78e4(0x143)],ke=Object[_0x1c78e4(0x162)],Ge=(_0x15d15b,_0x219cce,_0x1a936c)=>_0x219cce in _0x15d15b?Me(_0x15d15b,_0x219cce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a936c}):_0x15d15b[_0x219cce]=_0x1a936c,We=(_0x592f3b,_0x12a3ce,_0x477efc,_0x38c3e7)=>{const _0x46c106=_0x1c78e4;for(var _0x36cafc=_0x38c3e7>0x1?void 0x0:_0x38c3e7?ke(_0x12a3ce,_0x477efc):_0x12a3ce,_0x57fef8=_0x592f3b[_0x46c106(0x195)]-0x1,_0x344ce0;_0x57fef8>=0x0;_0x57fef8--)(_0x344ce0=_0x592f3b[_0x57fef8])&&(_0x36cafc=_0x344ce0(_0x36cafc)||_0x36cafc);return _0x36cafc;},F=(_0x474f80,_0x3bb347)=>(_0x366c82,_0x38ecff)=>_0x3bb347(_0x366c82,_0x38ecff,_0x474f80),B=(_0x3f08d2,_0x4c24b8,_0x39b0ea)=>Ge(_0x3f08d2,typeof _0x4c24b8!=_0x1c78e4(0x1af)?_0x4c24b8+'':_0x4c24b8,_0x39b0ea);const Ye=_0x1c78e4(0x19a);let b=class extends _0x32fdda{constructor(_0xe8b187=T,_0x3ff09a,_0x158bc1){const _0x384b07=_0x1c78e4;super(),this[_0x384b07(0x199)]=_0xe8b187,this['_injector']=_0x3ff09a,this['_configService']=_0x158bc1;const {..._0x54217b}=_0x50f219({},T,this[_0x384b07(0x199)]);this[_0x384b07(0x1ce)]['setConfig'](ye,_0x54217b);}[_0x1c78e4(0x18e)](){const _0x57b16d=_0x1c78e4;_0x236b83(this[_0x57b16d(0x168)],_0x4faafe([[L],[S],[I],[m]],this[_0x57b16d(0x199)][_0x57b16d(0x182)])),_0x403cf0(this['_injector'],[[I]]);}[_0x1c78e4(0x190)](){const _0x4e069f=_0x1c78e4;_0x403cf0(this[_0x4e069f(0x168)],[[m]]);}};B(b,'type',_0x8c38dc[_0x1c78e4(0x1d7)]),B(b,_0x1c78e4(0x16f),Ye),b=We([_0x579b4c(_0x22ac1e),F(0x1,_0x1a6954(_0xdf7c04)),F(0x2,_0x213343)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x38762c=_0x1322;(function(_0x4b3cb5,_0x4b032d){const _0x4b078e=_0x1322,_0x267d21=_0x4b3cb5();while(!![]){try{const _0xfcc7b9=-parseInt(_0x4b078e(0xaa))/0x1+parseInt(_0x4b078e(0xa6))/0x2*(parseInt(_0x4b078e(0xa1))/0x3)+-parseInt(_0x4b078e(0x8f))/0x4*(parseInt(_0x4b078e(0x8e))/0x5)+-parseInt(_0x4b078e(0xac))/0x6*(parseInt(_0x4b078e(0x9a))/0x7)+parseInt(_0x4b078e(0x97))/0x8+parseInt(_0x4b078e(0xab))/0x9*(parseInt(_0x4b078e(0xae))/0xa)+parseInt(_0x4b078e(0x91))/0xb*(-parseInt(_0x4b078e(0xad))/0xc);if(_0xfcc7b9===_0x4b032d)break;else _0x267d21['push'](_0x267d21['shift']());}catch(_0x522c58){_0x267d21['push'](_0x267d21['shift']());}}}(_0x40d8,0x569dc));import{LiveShareController as _0x24ed23,LiveShareStatus as _0x236572}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2eaba2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5c625f}from'@univerjs/sheets';import{SetScrollOperation as _0x3dd26c}from'@univerjs/sheets-ui';import{FRange as _0x197e81}from'@univerjs/sheets/facade';import{FUniver as _0x106cef,FEnum as _0x8f2951}from'@univerjs/core/facade';class I extends _0x197e81{[_0x38762c(0x92)](_0x467941,_0x1167d2,_0x538a1f,_0x41a628,_0x2d324e){const _0x47dc6b=_0x38762c,_0x251938=_0x467941[_0x47dc6b(0xa0)](_0x24ed23),_0x502f4b=_0x467941[_0x47dc6b(0xa0)](_0x2eaba2),_0x3d072a=_0x1167d2['getUnitId'](),_0x30d7ac=_0x1167d2['getActiveSheet'](),_0x330555=_0x251938['getLiveShareCoordinatorSync'](_0x3d072a);(_0x330555==null?void 0x0:_0x330555[_0x47dc6b(0x9c)]())!==_0x236572[_0x47dc6b(0xa2)]||(_0x538a1f[_0x47dc6b(0xa4)]()!==_0x30d7ac[_0x47dc6b(0xa4)]()&&this[_0x47dc6b(0x9e)][_0x47dc6b(0xaf)](_0x5c625f['id'],{'unitId':_0x3d072a,'subUnitId':_0x538a1f['getSheetId']()}),!_0x502f4b['getRenderById'](_0x3d072a))||_0x2d324e[_0x47dc6b(0x93)](_0x3dd26c['id'],{'unitId':_0x1167d2[_0x47dc6b(0xa3)](),'sheetId':_0x538a1f[_0x47dc6b(0xa4)](),'sheetViewStartRow':_0x41a628[_0x47dc6b(0x8d)],'sheetViewStartColumn':_0x41a628['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x197e81[_0x38762c(0x99)](I);class m extends _0x106cef{[_0x38762c(0x90)](){const _0x4d381a=_0x38762c;var _0x48ddc5,_0x1a2c3b;const _0x525263=this[_0x4d381a(0x96)]['get'](_0x24ed23),_0x47a1b0=(_0x48ddc5=this[_0x4d381a(0x9b)]())==null?void 0x0:_0x48ddc5['getId']();if(!_0x47a1b0)throw new Error(_0x4d381a(0x9d));const _0x19520e=_0x525263[_0x4d381a(0xa8)](_0x47a1b0);return(_0x1a2c3b=_0x19520e==null?void 0x0:_0x19520e[_0x4d381a(0x9c)]())!=null?_0x1a2c3b:_0x236572[_0x4d381a(0x98)];}[_0x38762c(0x95)](){const _0x987b92=_0x38762c;var _0x5dc8d8;const _0xaf7822=this[_0x987b92(0x96)]['get'](_0x24ed23),_0x409a30=(_0x5dc8d8=this[_0x987b92(0x9b)]())==null?void 0x0:_0x5dc8d8[_0x987b92(0x9f)]();if(!_0x409a30)throw new Error(_0x987b92(0x9d));const _0x1cda2a=_0xaf7822[_0x987b92(0xa8)](_0x409a30);if(!_0x1cda2a)throw new Error(_0x987b92(0x94));_0x1cda2a[_0x987b92(0x95)]();}[_0x38762c(0xb0)](){const _0x3c6bd8=_0x38762c;var _0x2638a9;const _0x459aae=this[_0x3c6bd8(0x96)]['get'](_0x24ed23),_0x222884=(_0x2638a9=this[_0x3c6bd8(0x9b)]())==null?void 0x0:_0x2638a9[_0x3c6bd8(0x9f)]();if(!_0x222884)throw new Error('No\x20active\x20workbook\x20found.');const _0x24a03c=_0x459aae[_0x3c6bd8(0xa8)](_0x222884);if(!_0x24a03c)throw new Error(_0x3c6bd8(0x94));_0x24a03c[_0x3c6bd8(0xb0)]();}[_0x38762c(0x8c)](){const _0x1fa591=_0x38762c;var _0x2e9f1e;const _0x445801=this[_0x1fa591(0x96)]['get'](_0x24ed23),_0xcaa8ba=(_0x2e9f1e=this[_0x1fa591(0x9b)]())==null?void 0x0:_0x2e9f1e[_0x1fa591(0x9f)]();if(!_0xcaa8ba)throw new Error(_0x1fa591(0x9d));const _0x2bd2ed=_0x445801[_0x1fa591(0xa8)](_0xcaa8ba);if(!_0x2bd2ed)throw new Error(_0x1fa591(0x94));_0x2bd2ed[_0x1fa591(0xa9)]();}['stopPresenting'](){const _0x11b4bd=_0x38762c;var _0x473022;const _0x222e1b=this[_0x11b4bd(0x96)][_0x11b4bd(0xa0)](_0x24ed23),_0x335f72=(_0x473022=this[_0x11b4bd(0x9b)]())==null?void 0x0:_0x473022['getId']();if(!_0x335f72)throw new Error(_0x11b4bd(0x9d));const _0x10709b=_0x222e1b[_0x11b4bd(0xa8)](_0x335f72);if(!_0x10709b)throw new Error(_0x11b4bd(0x94));_0x10709b[_0x11b4bd(0xa7)]();}}_0x106cef[_0x38762c(0x99)](m);class C extends _0x8f2951{get[_0x38762c(0xa5)](){return _0x236572;}}_0x8f2951['extend'](C);function _0x1322(_0x47da0c,_0xdfa40b){_0x47da0c=_0x47da0c-0x8c;const _0x40d801=_0x40d8();let _0x13227b=_0x40d801[_0x47da0c];return _0x13227b;}function _0x40d8(){const _0x233b69=['get','3AQafnO','PRESENTING','getUnitId','getSheetId','LiveShareStatusEnum','544924ZDvkNx','stopPresenting','getLiveShareCoordinatorSync','tryStartPresenting','658597jVHLwy','2084202FrUmfh','222yjbocB','12AmThGu','30bsGIxu','executeCommand','stopFollowing','startPresenting','startRow','975HLjyjm','5972UdXmqX','getLiveShareStatus','766832KosLMZ','_initialize','syncExecuteCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','_injector','4590000IOflAt','IDLE','extend','31542kvMcZM','getActiveWorkbook','getStatus','No\x20active\x20workbook\x20found.','_commandService','getId'];_0x40d8=function(){return _0x233b69;};return _0x40d8();}
1
+ const _0x1e8f1f=_0x1f0f;(function(_0x1b01e7,_0xa38448){const _0x5c530e=_0x1f0f,_0x387c55=_0x1b01e7();while(!![]){try{const _0x1fc632=parseInt(_0x5c530e(0x12e))/0x1*(parseInt(_0x5c530e(0x116))/0x2)+parseInt(_0x5c530e(0x113))/0x3*(-parseInt(_0x5c530e(0x11a))/0x4)+parseInt(_0x5c530e(0x123))/0x5*(parseInt(_0x5c530e(0x12c))/0x6)+parseInt(_0x5c530e(0x12a))/0x7*(-parseInt(_0x5c530e(0x11c))/0x8)+parseInt(_0x5c530e(0x122))/0x9+parseInt(_0x5c530e(0x127))/0xa+-parseInt(_0x5c530e(0x120))/0xb*(parseInt(_0x5c530e(0x12b))/0xc);if(_0x1fc632===_0xa38448)break;else _0x387c55['push'](_0x387c55['shift']());}catch(_0xa68b1e){_0x387c55['push'](_0x387c55['shift']());}}}(_0xe3a6,0x3a2dd));import{LiveShareController as _0x555575,LiveShareStatus as _0x509a3d}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x5ebb53}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x54b5cc}from'@univerjs/sheets';import{SetScrollOperation as _0x796c64}from'@univerjs/sheets-ui';import{FRange as _0xfd205b}from'@univerjs/sheets/facade';import{FUniver as _0x24e225,FEnum as _0x191941}from'@univerjs/core/facade';class I extends _0xfd205b{[_0x1e8f1f(0x125)](_0x318589,_0x16e4aa,_0x2cffa4,_0x576f9b,_0x4cfe96){const _0x10a500=_0x1e8f1f,_0x4248f7=_0x318589['get'](_0x555575),_0x4aada0=_0x318589[_0x10a500(0x11d)](_0x5ebb53),_0x2cb5cf=_0x16e4aa[_0x10a500(0x12d)](),_0x550d20=_0x16e4aa['getActiveSheet'](),_0x338b34=_0x4248f7[_0x10a500(0x10e)](_0x2cb5cf);(_0x338b34==null?void 0x0:_0x338b34[_0x10a500(0x129)]())!==_0x509a3d[_0x10a500(0x117)]||(_0x2cffa4[_0x10a500(0x11f)]()!==_0x550d20[_0x10a500(0x11f)]()&&this[_0x10a500(0x11b)][_0x10a500(0x121)](_0x54b5cc['id'],{'unitId':_0x2cb5cf,'subUnitId':_0x2cffa4[_0x10a500(0x11f)]()}),!_0x4aada0[_0x10a500(0x111)](_0x2cb5cf))||_0x4cfe96[_0x10a500(0x126)](_0x796c64['id'],{'unitId':_0x16e4aa[_0x10a500(0x12d)](),'sheetId':_0x2cffa4['getSheetId'](),'sheetViewStartRow':_0x576f9b['startRow'],'sheetViewStartColumn':_0x576f9b['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xfd205b['extend'](I);function _0xe3a6(){const _0x3891c2=['149688NYbsyx','222rYmZqc','getUnitId','11hbhYjj','startPresenting','startFollowing','getLiveShareCoordinatorSync','getId','No\x20active\x20workbook\x20found.','getRenderById','IDLE','246717yBZhJQ','_injector','getActiveWorkbook','46376fuklhv','PRESENTING','stopFollowing','getLiveShareStatus','4AEQyix','_commandService','30968gBcOhA','get','extend','getSheetId','297hWxCjt','executeCommand','2373660NHmbtm','35115MDcUUd','stopPresenting','_initialize','syncExecuteCommand','2309400tblLVE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','637dOPSFd'];_0xe3a6=function(){return _0x3891c2;};return _0xe3a6();}class m extends _0x24e225{[_0x1e8f1f(0x119)](){const _0x7dd01b=_0x1e8f1f;var _0x2ce2e,_0x5aeae4;const _0x51b3ac=this[_0x7dd01b(0x114)][_0x7dd01b(0x11d)](_0x555575),_0x16aa58=(_0x2ce2e=this[_0x7dd01b(0x115)]())==null?void 0x0:_0x2ce2e[_0x7dd01b(0x10f)]();if(!_0x16aa58)throw new Error('No\x20active\x20workbook\x20found.');const _0x199895=_0x51b3ac[_0x7dd01b(0x10e)](_0x16aa58);return(_0x5aeae4=_0x199895==null?void 0x0:_0x199895[_0x7dd01b(0x129)]())!=null?_0x5aeae4:_0x509a3d[_0x7dd01b(0x112)];}[_0x1e8f1f(0x10d)](){const _0x15db63=_0x1e8f1f;var _0x2321a4;const _0x4e1f99=this[_0x15db63(0x114)][_0x15db63(0x11d)](_0x555575),_0x3b887c=(_0x2321a4=this[_0x15db63(0x115)]())==null?void 0x0:_0x2321a4[_0x15db63(0x10f)]();if(!_0x3b887c)throw new Error(_0x15db63(0x110));const _0x28bc07=_0x4e1f99[_0x15db63(0x10e)](_0x3b887c);if(!_0x28bc07)throw new Error(_0x15db63(0x128));_0x28bc07['startFollowing']();}[_0x1e8f1f(0x118)](){const _0x288b23=_0x1e8f1f;var _0x1bc2e0;const _0x2cde7e=this[_0x288b23(0x114)][_0x288b23(0x11d)](_0x555575),_0x482946=(_0x1bc2e0=this[_0x288b23(0x115)]())==null?void 0x0:_0x1bc2e0['getId']();if(!_0x482946)throw new Error(_0x288b23(0x110));const _0x459cc4=_0x2cde7e[_0x288b23(0x10e)](_0x482946);if(!_0x459cc4)throw new Error(_0x288b23(0x128));_0x459cc4['stopFollowing']();}[_0x1e8f1f(0x12f)](){const _0x521abe=_0x1e8f1f;var _0x4e4f43;const _0x18d230=this[_0x521abe(0x114)][_0x521abe(0x11d)](_0x555575),_0x39c331=(_0x4e4f43=this[_0x521abe(0x115)]())==null?void 0x0:_0x4e4f43[_0x521abe(0x10f)]();if(!_0x39c331)throw new Error(_0x521abe(0x110));const _0x691d99=_0x18d230[_0x521abe(0x10e)](_0x39c331);if(!_0x691d99)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x691d99['tryStartPresenting']();}[_0x1e8f1f(0x124)](){const _0x3b412d=_0x1e8f1f;var _0x3b913e;const _0x4ae50f=this[_0x3b412d(0x114)][_0x3b412d(0x11d)](_0x555575),_0x4cadf7=(_0x3b913e=this['getActiveWorkbook']())==null?void 0x0:_0x3b913e['getId']();if(!_0x4cadf7)throw new Error(_0x3b412d(0x110));const _0x213eea=_0x4ae50f[_0x3b412d(0x10e)](_0x4cadf7);if(!_0x213eea)throw new Error(_0x3b412d(0x128));_0x213eea[_0x3b412d(0x124)]();}}_0x24e225[_0x1e8f1f(0x11e)](m);class C extends _0x191941{get['LiveShareStatusEnum'](){return _0x509a3d;}}function _0x1f0f(_0x32a3d7,_0x1d26bf){_0x32a3d7=_0x32a3d7-0x10d;const _0xe3a68d=_0xe3a6();let _0x1f0f1f=_0xe3a68d[_0x32a3d7];return _0x1f0f1f;}_0x191941[_0x1e8f1f(0x11e)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x288259=_0x33d3;(function(_0x367953,_0x55dc8c){const _0x5e37f9=_0x33d3,_0x3d88f2=_0x367953();while(!![]){try{const _0x16d529=-parseInt(_0x5e37f9(0x1bd))/0x1*(-parseInt(_0x5e37f9(0x207))/0x2)+-parseInt(_0x5e37f9(0x205))/0x3*(-parseInt(_0x5e37f9(0x200))/0x4)+-parseInt(_0x5e37f9(0x1eb))/0x5+-parseInt(_0x5e37f9(0x21c))/0x6+-parseInt(_0x5e37f9(0x226))/0x7*(parseInt(_0x5e37f9(0x1f4))/0x8)+-parseInt(_0x5e37f9(0x22e))/0x9*(parseInt(_0x5e37f9(0x1d9))/0xa)+parseInt(_0x5e37f9(0x1e0))/0xb*(parseInt(_0x5e37f9(0x1e2))/0xc);if(_0x16d529===_0x55dc8c)break;else _0x3d88f2['push'](_0x3d88f2['shift']());}catch(_0x69295a){_0x3d88f2['push'](_0x3d88f2['shift']());}}}(_0x5f16,0xa95f7));var J=Object[_0x288259(0x231)],K=(_0x455c85,_0x502859,_0x173dc6)=>_0x502859 in _0x455c85?J(_0x455c85,_0x502859,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x173dc6}):_0x455c85[_0x502859]=_0x173dc6,u=(_0x27b4b4,_0x3292f2,_0x36c817)=>K(_0x27b4b4,typeof _0x3292f2!=_0x288259(0x1b0)?_0x3292f2+'':_0x3292f2,_0x36c817);import{Disposable as _0x2f9266,toDisposable as _0x357616,IUniverInstanceService as _0x4b8f0b,Inject as _0x2ccce4,Injector as _0x38a60f,IConfigService as _0x292df9,ICommandService as _0xe319f4,RxDisposable as _0x1e8ae5,UniverInstanceType as _0x374271,DisposableCollection as _0x50ce28,CommandType as _0x419927,DependentOn as _0x553a41,Plugin as _0x3f1d3f,merge as _0x2eff68,registerDependencies as _0x28d75e,mergeOverrideWithDependencies as _0x965e10,touchDependencies as _0x5b4615}from'@univerjs/core';import{useDependency as _0x2cf9c5,useObservable as _0x57d739,IUIPartsService as _0x39de93,BuiltInUIPart as _0x367153,connectInjector as _0x4d0457}from'@univerjs/ui';import{jsx as _0x120c4b,jsxs as _0x18b69b,Fragment as _0x182287}from'react/jsx-runtime';import{Dropdown as _0x1c59e1,clsx as _0x4affc9,Button as _0x22c645}from'@univerjs/design';function _0x33d3(_0x33005b,_0x44790f){_0x33005b=_0x33005b-0x18f;const _0x5f1636=_0x5f16();let _0x33d3b9=_0x5f1636[_0x33005b];return _0x33d3b9;}import{useRef as _0x15d3aa,createElement as _0x350b00,forwardRef as _0xa9da7e,useState as _0x223824,useEffect as _0x365662}from'react';import{CollaborationEvent as _0x555910,parseProtocolChangeset as _0x3b7300}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x8e0700,SessionStatus as _0x2d2d85,UniverCollaborationClientPlugin as _0x5d8e2c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d46de,SetWorksheetActiveOperation as _0x3493cd}from'@univerjs/sheets';import{BehaviorSubject as _0x2fd282,Subject as _0x514c47}from'rxjs';import{takeUntil as _0x29691d,throttleTime as _0x4434ac}from'rxjs/operators';import{SetZoomRatioOperation as _0xc86880,SetScrollOperation as _0x184f42}from'@univerjs/sheets-ui';function k({ref:_0x33eda2,..._0x55b604}){const _0x44e87b=_0x288259,{icon:_0x10d8f6,id:_0x17c6ae,className:_0xbde572,extend:_0x146d76,..._0xd434da}=_0x55b604,_0x3217d1=(_0x44e87b(0x22b)+_0x17c6ae+'\x20'+(_0xbde572||''))[_0x44e87b(0x1bc)](),_0x3db8d7=_0x15d3aa('_'+Oe());return G(_0x10d8f6,''+_0x17c6ae,{'defIds':_0x10d8f6[_0x44e87b(0x1e9)],'idSuffix':_0x3db8d7[_0x44e87b(0x1a2)]},{'ref':_0x33eda2,'className':_0x3217d1,..._0xd434da},_0x146d76);}function G(_0xf936be,_0xefb038,_0x4d4633,_0x27420a,_0x2f6dd7){const _0x5a56fa=_0x288259;return _0x350b00(_0xf936be['tag'],{'key':_0xefb038,...be(_0xf936be,_0x4d4633,_0x2f6dd7),..._0x27420a},(Ee(_0xf936be,_0x4d4633)[_0x5a56fa(0x1c3)]||[])[_0x5a56fa(0x208)]((_0x4c5d5c,_0x18cc97)=>G(_0x4c5d5c,_0xefb038+'-'+_0xf936be[_0x5a56fa(0x1d3)]+'-'+_0x18cc97,_0x4d4633,void 0x0,_0x2f6dd7)));}function be(_0x1cc91b,_0x585765,_0x3cefc0){const _0x4cdb9e=_0x288259,_0x1ed481={..._0x1cc91b[_0x4cdb9e(0x20c)]};_0x3cefc0!=null&&_0x3cefc0['colorChannel1']&&_0x1ed481[_0x4cdb9e(0x1f9)]===_0x4cdb9e(0x1d5)&&(_0x1ed481[_0x4cdb9e(0x1f9)]=_0x3cefc0[_0x4cdb9e(0x1d5)]),_0x1cc91b[_0x4cdb9e(0x1d3)]===_0x4cdb9e(0x1b1)&&_0x1ed481['id']&&(_0x1ed481['id']=_0x1ed481['id']+_0x585765[_0x4cdb9e(0x233)]),Object[_0x4cdb9e(0x1a7)](_0x1ed481)[_0x4cdb9e(0x1b8)](([_0x7ec95c,_0x248034])=>{const _0x56f04a=_0x4cdb9e;_0x7ec95c==='mask'&&typeof _0x248034==_0x56f04a(0x1c6)&&(_0x1ed481[_0x7ec95c]=_0x248034[_0x56f04a(0x20a)](/url\(#(.*)\)/,_0x56f04a(0x1a3)+_0x585765[_0x56f04a(0x233)]+')'));});const {defIds:_0x4e730b}=_0x585765;return!_0x4e730b||_0x4e730b[_0x4cdb9e(0x1fe)]===0x0||(_0x1cc91b[_0x4cdb9e(0x1d3)]===_0x4cdb9e(0x234)&&_0x1ed481[_0x4cdb9e(0x219)]&&(_0x1ed481[_0x4cdb9e(0x219)]=_0x1ed481[_0x4cdb9e(0x219)]+_0x585765['idSuffix']),Object[_0x4cdb9e(0x1a7)](_0x1ed481)['forEach'](([_0x39a603,_0x5056a2])=>{const _0x39c72f=_0x4cdb9e;typeof _0x5056a2==_0x39c72f(0x1c6)&&(_0x1ed481[_0x39a603]=_0x5056a2[_0x39c72f(0x20a)](/url\(#(.*)\)/,_0x39c72f(0x1a3)+_0x585765['idSuffix']+')'));})),_0x1ed481;}function Ee(_0x3f4c76,_0x22017d){const _0x17406c=_0x288259;var _0x44c032;const {defIds:_0x352459}=_0x22017d;return!_0x352459||_0x352459[_0x17406c(0x1fe)]===0x0?_0x3f4c76:_0x3f4c76[_0x17406c(0x1d3)]===_0x17406c(0x220)&&((_0x44c032=_0x3f4c76['children'])!=null&&_0x44c032[_0x17406c(0x1fe)])?{..._0x3f4c76,'children':_0x3f4c76[_0x17406c(0x1c3)][_0x17406c(0x208)](_0x1ff9b0=>typeof _0x1ff9b0[_0x17406c(0x20c)]['id']==_0x17406c(0x1c6)&&_0x352459&&_0x352459['includes'](_0x1ff9b0['attrs']['id'])?{..._0x1ff9b0,'attrs':{..._0x1ff9b0[_0x17406c(0x20c)],'id':_0x1ff9b0[_0x17406c(0x20c)]['id']+_0x22017d[_0x17406c(0x233)]}}:_0x1ff9b0)}:_0x3f4c76;}function Oe(){const _0x25377a=_0x288259;return Math['random']()[_0x25377a(0x211)](0x24)[_0x25377a(0x191)](0x2,0x8);}k[_0x288259(0x197)]='UniverIcon';const we={'tag':_0x288259(0x210),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x288259(0x1b5),'width':_0x288259(0x1da),'height':_0x288259(0x1da)},'children':[{'tag':_0x288259(0x20d),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x288259(0x20d),'attrs':{'fill':'currentColor','d':_0x288259(0x237),'fillRule':'evenodd','clipRule':_0x288259(0x204)}}]},W=_0xa9da7e(function(_0x416c25,_0x1f2fc3){const _0xb17fc8=_0x288259;return _0x350b00(k,Object[_0xb17fc8(0x1a9)]({},_0x416c25,{'id':_0xb17fc8(0x20b),'ref':_0x1f2fc3,'icon':we}));});W['displayName']=_0x288259(0x1e6);class L extends _0x2f9266{constructor(){const _0x37307d=_0x288259;super(...arguments),u(this,_0x37307d(0x236),new Set()),u(this,_0x37307d(0x1ec),new Set());}[_0x288259(0x190)](_0x31dcd7){const _0x4557c4=_0x288259;return this[_0x4557c4(0x236)][_0x4557c4(0x18f)](_0x31dcd7),_0x357616(()=>this[_0x4557c4(0x236)][_0x4557c4(0x1ef)](_0x31dcd7));}['registerInitialStateReporter'](_0x3b3ed7){const _0xa54d35=_0x288259;return this[_0xa54d35(0x1ec)]['add'](_0x3b3ed7),_0x357616(()=>this[_0xa54d35(0x1ec)]['delete'](_0x3b3ed7));}[_0x288259(0x198)](_0x4630a5){const _0x5abafa=_0x288259;return this[_0x5abafa(0x236)][_0x5abafa(0x1aa)](_0x4630a5);}[_0x288259(0x1f8)](_0x2fa184){const _0x2e6d01=_0x288259;return Array[_0x2e6d01(0x19d)](this[_0x2e6d01(0x1ec)])[_0x2e6d01(0x208)](_0x8372f0=>_0x8372f0(_0x2fa184));}}var Ne=Object[_0x288259(0x218)],Y=(_0x56ca39,_0x5df9cb,_0x33643a,_0x3f65ad)=>{const _0x47250e=_0x288259;for(var _0x5ed2c6=_0x3f65ad>0x1?void 0x0:_0x3f65ad?Ne(_0x5df9cb,_0x33643a):_0x5df9cb,_0x2b25b5=_0x56ca39[_0x47250e(0x1fe)]-0x1,_0x18a69f;_0x2b25b5>=0x0;_0x2b25b5--)(_0x18a69f=_0x56ca39[_0x2b25b5])&&(_0x5ed2c6=_0x18a69f(_0x5ed2c6)||_0x5ed2c6);return _0x5ed2c6;},_=(_0x76c072,_0xf10aa)=>(_0x12cd8e,_0x30a995)=>_0xf10aa(_0x12cd8e,_0x30a995,_0x76c072);let S=class extends _0x1e8ae5{constructor(_0x3d6566,_0x17bc9c,_0x3a69ac){const _0x2d6e8d=_0x288259;super(),u(this,_0x2d6e8d(0x229),new Map()),(this[_0x2d6e8d(0x1e8)]=_0x3d6566,this['_injector']=_0x17bc9c,this[_0x2d6e8d(0x1bb)]=_0x3a69ac,this['_init']());}async['getLiveShareCoordinator'](_0x51818e){const _0x2ae6e6=_0x288259;return this[_0x2ae6e6(0x229)][_0x2ae6e6(0x1aa)](_0x51818e)||await this[_0x2ae6e6(0x1d8)](_0x51818e),this[_0x2ae6e6(0x229)][_0x2ae6e6(0x20f)](_0x51818e);}[_0x288259(0x1be)](_0x978332){const _0x313c8c=_0x288259;var _0x2cf19d;return(_0x2cf19d=this[_0x313c8c(0x229)][_0x313c8c(0x20f)](_0x978332))!=null?_0x2cf19d:null;}[_0x288259(0x1c0)](){const _0x5b6c4b=_0x288259;this[_0x5b6c4b(0x1e8)][_0x5b6c4b(0x1a0)](_0x374271[_0x5b6c4b(0x1d6)])['pipe'](_0x29691d(this['dispose$']))[_0x5b6c4b(0x1d0)](async _0x404cb9=>{const _0x59f579=_0x5b6c4b,_0x201f4d=_0x404cb9['getUnitId']();this[_0x59f579(0x229)][_0x59f579(0x1aa)](_0x201f4d)||this[_0x59f579(0x1d8)](_0x201f4d);}),this[_0x5b6c4b(0x1e8)][_0x5b6c4b(0x1db)](_0x374271[_0x5b6c4b(0x1d6)])[_0x5b6c4b(0x1fb)](_0x29691d(this[_0x5b6c4b(0x21b)]))['subscribe'](_0xc29fa9=>{const _0x4578e9=_0x5b6c4b,_0x443200=_0xc29fa9[_0x4578e9(0x1bf)](),_0x3c81a4=this[_0x4578e9(0x229)][_0x4578e9(0x20f)](_0x443200);_0x3c81a4==null||_0x3c81a4[_0x4578e9(0x1fd)]();});}async['_startLiveShareCoordinator'](_0x3a7fd0){const _0x464826=_0x288259,_0x3fce9c=await this[_0x464826(0x1bb)][_0x464826(0x1f1)](_0x3a7fd0),_0x235213=this[_0x464826(0x1dd)][_0x464826(0x235)](N,_0x3a7fd0,_0x3fce9c);return _0x235213[_0x464826(0x1e5)](),this[_0x464826(0x229)][_0x464826(0x1a8)](_0x3a7fd0,_0x235213),_0x235213;}};S=Y([_(0x0,_0x4b8f0b),_(0x1,_0x2ccce4(_0x38a60f)),_(0x2,_0x2ccce4(_0x8e0700))],S);var c=(_0x4bbe1b=>(_0x4bbe1b[_0x288259(0x1ad)]=_0x288259(0x194),_0x4bbe1b[_0x288259(0x213)]=_0x288259(0x232),_0x4bbe1b[_0x288259(0x202)]='following',_0x4bbe1b[_0x288259(0x21a)]='not-following',_0x4bbe1b['PRESENTING']=_0x288259(0x222),_0x4bbe1b))(c||{});const Ce=_0x288259(0x228),De=0xc8;let N=class extends _0x1e8ae5{constructor(_0x238eb6,_0x534c6c,_0x14e14d,_0x57f55e,_0x161068){const _0x444c30=_0x288259;super(),u(this,_0x444c30(0x1ee),new _0x2fd282(_0x444c30(0x232))),u(this,_0x444c30(0x223),this['_status$'][_0x444c30(0x1af)]()),u(this,'_init',!0x1),u(this,_0x444c30(0x1d4),null),u(this,_0x444c30(0x1f0),null),(this[_0x444c30(0x1cb)]=_0x238eb6,this[_0x444c30(0x203)]=_0x534c6c,this['_configService']=_0x14e14d,this['_liveShareService']=_0x57f55e,this[_0x444c30(0x1ba)]=_0x161068);}get[_0x288259(0x1c8)](){const _0x4a7690=_0x288259;return this[_0x4a7690(0x1ee)][_0x4a7690(0x225)]();}[_0x288259(0x1fd)](){const _0xec0031=_0x288259;var _0x559285;(_0x559285=this[_0xec0031(0x1d4)])==null||_0x559285[_0xec0031(0x1fd)](),this[_0xec0031(0x1ee)]['next']('idle'),this[_0xec0031(0x1ee)][_0xec0031(0x1d7)]();}[_0x288259(0x1ac)](){return this['_status'];}['init'](){const _0x30d302=_0x288259;this['_init']||(this[_0x30d302(0x1c0)]=!0x0,this[_0x30d302(0x203)][_0x30d302(0x195)][_0x30d302(0x1fb)](_0x29691d(this[_0x30d302(0x21b)]))['subscribe'](_0x367bef=>{const _0x2d0341=_0x30d302;switch(_0x367bef){case _0x2d2d85['OFFLINE']:this[_0x2d0341(0x1b9)]();break;case _0x2d2d85[_0x2d0341(0x1ce)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x30d302(0x224)]['pipe'](_0x29691d(this[_0x30d302(0x21b)]))[_0x30d302(0x1d0)](_0x103413=>{const _0x1f1aa5=_0x30d302,{eventID:_0x5d036d}=_0x103413;switch(_0x5d036d){case _0x555910[_0x1f1aa5(0x21e)]:this['_handleNewHost'](_0x103413);break;case _0x555910[_0x1f1aa5(0x1f5)]:this[_0x1f1aa5(0x221)](_0x103413);break;case _0x555910[_0x1f1aa5(0x1cc)]:this['_handleTerminate']();break;case _0x555910[_0x1f1aa5(0x1fc)]:this[_0x1f1aa5(0x212)](_0x103413);break;}}));}[_0x288259(0x1b7)](){const _0x1f01ce=_0x288259;this[_0x1f01ce(0x203)][_0x1f01ce(0x201)]({'eventID':_0x555910[_0x1f01ce(0x1a4)],'data':{'unitID':this['_unitID'],'userID':this[_0x1f01ce(0x203)]['getMemberID']()}},this[_0x1f01ce(0x1cb)]);}[_0x288259(0x1df)](){const _0x593f8a=_0x288259;this['_status']===_0x593f8a(0x222)&&(this[_0x593f8a(0x1ee)]['next']('idle'),this[_0x593f8a(0x203)][_0x593f8a(0x201)]({'eventID':_0x555910[_0x593f8a(0x1cc)],'data':{'unitID':this[_0x593f8a(0x1cb)]}},this[_0x593f8a(0x1cb)]));}[_0x288259(0x20e)](){const _0x17c16f=_0x288259;this[_0x17c16f(0x1c8)]===_0x17c16f(0x209)&&(this[_0x17c16f(0x1ee)][_0x17c16f(0x1dc)]('following'),this[_0x17c16f(0x22f)]());}[_0x288259(0x216)](){const _0x56fe15=_0x288259;this['_status']===_0x56fe15(0x1ea)&&this[_0x56fe15(0x22a)]();}[_0x288259(0x206)](_0x36c959){const _0x5eb3aa=_0x288259,{presenter:_0x2ed9c5}=_0x36c959['data'],_0xc72ae8=this[_0x5eb3aa(0x203)][_0x5eb3aa(0x1cf)]();this[_0x5eb3aa(0x1f0)]=_0x2ed9c5,_0x2ed9c5===_0xc72ae8?(this[_0x5eb3aa(0x22a)](),this[_0x5eb3aa(0x193)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x288259(0x214)](){const _0x4f0dec=_0x288259,_0x32c37a={'eventID':_0x555910[_0x4f0dec(0x21f)]};this['_collabSession'][_0x4f0dec(0x201)](_0x32c37a,this[_0x4f0dec(0x1cb)]);}[_0x288259(0x239)](){const _0x153376=_0x288259;this[_0x153376(0x1f0)]=null,this[_0x153376(0x1c8)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x36e0ca){const _0x25f2a5=_0x288259;if(this['_status']===_0x25f2a5(0x1ea)&&this[_0x25f2a5(0x1f0)]===_0x36e0ca[_0x25f2a5(0x1ed)][_0x25f2a5(0x19c)]){const _0x5ba717=_0x3b7300(_0x36e0ca[_0x25f2a5(0x1ed)])['mutations'][_0x25f2a5(0x1e1)]()['find'](_0x459aad=>_0x459aad['id']===_0x5d46de['id']);if(_0x5ba717){const _0x307f94=_0x5ba717[_0x25f2a5(0x1f7)][_0x25f2a5(0x23b)],_0x2908ca=_0x5ba717['params'][_0x25f2a5(0x1fa)]['id'];setTimeout(()=>{const _0xf95204=_0x25f2a5;this[_0xf95204(0x1ba)][_0xf95204(0x1c5)](_0x3493cd['id'],{'unitId':_0x307f94,'subUnitId':_0x2908ca},{'fromCollab':!0x0});});}}}[_0x288259(0x193)](){const _0x1c3e27=_0x288259;this[_0x1c3e27(0x1ee)][_0x1c3e27(0x1dc)](_0x1c3e27(0x222));const _0x478f22=new Map(),_0x275e18=this[_0x1c3e27(0x1d4)]=new _0x50ce28();_0x275e18[_0x1c3e27(0x18f)](_0x357616(()=>{const _0x40fcbc=_0x1c3e27;_0x478f22['forEach'](_0x25d5bb=>_0x25d5bb[_0x40fcbc(0x1d7)]()),_0x478f22[_0x40fcbc(0x1a5)]();})),_0x275e18[_0x1c3e27(0x18f)](this[_0x1c3e27(0x1ba)][_0x1c3e27(0x230)](_0x9c0a59=>{const _0x22527c=_0x1c3e27;var _0x190d6c;if(_0x9c0a59[_0x22527c(0x1c1)]!==_0x419927['OPERATION']||!this[_0x22527c(0x1b3)]['shouldShareOperation'](_0x9c0a59['id']))return;const {id:_0x60363b}=_0x9c0a59;let _0x33d8b6;_0x478f22[_0x22527c(0x1aa)](_0x60363b)?_0x33d8b6=_0x478f22[_0x22527c(0x20f)](_0x60363b):(_0x33d8b6=new _0x514c47(),_0x478f22['set'](_0x60363b,_0x33d8b6),_0x33d8b6[_0x22527c(0x1fb)](_0x4434ac((_0x190d6c=this[_0x22527c(0x238)][_0x22527c(0x22c)](Ce))!=null?_0x190d6c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x26e65d=>{const _0xeecc7a=_0x22527c;this['_collabSession'][_0xeecc7a(0x201)]({'eventID':_0x555910[_0xeecc7a(0x1f5)],'data':{'unitID':this[_0xeecc7a(0x1cb)],'operations':{[_0x26e65d['id']]:{'id':_0x26e65d['id'],'params':JSON[_0xeecc7a(0x1d1)](_0x26e65d[_0xeecc7a(0x1f7)])}}}},this[_0xeecc7a(0x1cb)]);})),_0x33d8b6[_0x22527c(0x1dc)](_0x9c0a59);})),this[_0x1c3e27(0x1b3)][_0x1c3e27(0x1f8)](this[_0x1c3e27(0x1cb)])[_0x1c3e27(0x1b8)](_0x4ce92a=>this[_0x1c3e27(0x203)][_0x1c3e27(0x201)]({'eventID':_0x555910['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4ce92a['id']]:{'id':_0x4ce92a['id'],'params':JSON['stringify'](_0x4ce92a[_0x1c3e27(0x1f7)])}}}},this[_0x1c3e27(0x1cb)]));}[_0x288259(0x1b4)](){const _0x4665c0=_0x288259;var _0x24c72b;this[_0x4665c0(0x1ee)][_0x4665c0(0x1dc)](_0x4665c0(0x232)),(_0x24c72b=this[_0x4665c0(0x1d4)])==null||_0x24c72b[_0x4665c0(0x1fd)](),this[_0x4665c0(0x1d4)]=null;}['_startFollowing'](){const _0x19b962=_0x288259;var _0x33d342;(_0x33d342=this['_commandDisposable'])==null||_0x33d342['dispose'](),this[_0x19b962(0x1ee)][_0x19b962(0x1dc)](_0x19b962(0x1ea));}[_0x288259(0x1f6)](){const _0x3b9b94=_0x288259;var _0xcbeccb;this[_0x3b9b94(0x1ee)][_0x3b9b94(0x1dc)](_0x3b9b94(0x232)),(_0xcbeccb=this[_0x3b9b94(0x1d4)])==null||_0xcbeccb[_0x3b9b94(0x1fd)](),this[_0x3b9b94(0x1d4)]=null;}[_0x288259(0x22a)](){const _0x5da14b=_0x288259;var _0x4c272e;this[_0x5da14b(0x1ee)][_0x5da14b(0x1dc)](_0x5da14b(0x209)),(_0x4c272e=this[_0x5da14b(0x1d4)])==null||_0x4c272e[_0x5da14b(0x1fd)]();}[_0x288259(0x221)](_0xafb528){const _0x31a66d=_0x288259;if([_0x31a66d(0x222),_0x31a66d(0x209),_0x31a66d(0x194)][_0x31a66d(0x227)](this[_0x31a66d(0x1c8)])||!_0xafb528[_0x31a66d(0x1ed)]['presenter']||_0xafb528[_0x31a66d(0x1ed)]['presenter']===this[_0x31a66d(0x203)][_0x31a66d(0x1cf)]())return;this[_0x31a66d(0x1c8)]==='idle'&&this['_startFollowing']();const _0x59c778=_0xafb528['data']['operations'];Object[_0x31a66d(0x215)](_0x59c778)['forEach'](_0x4d58aa=>{const _0x432061=_0x31a66d;this[_0x432061(0x1ba)]['executeCommand'](_0x4d58aa['id'],_0x4d58aa[_0x432061(0x1f7)]?JSON[_0x432061(0x1e4)](_0x4d58aa['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3754b6=_0x288259;var _0x10b501;this[_0x3754b6(0x1ee)][_0x3754b6(0x1dc)](_0x3754b6(0x194)),(_0x10b501=this[_0x3754b6(0x1d4)])==null||_0x10b501[_0x3754b6(0x1fd)]();}[_0x288259(0x22d)](){const _0x3c96ba=_0x288259;this['_status$'][_0x3c96ba(0x1dc)](_0x3c96ba(0x232)),this[_0x3c96ba(0x214)]();}};N=Y([_(0x2,_0x292df9),_(0x3,_0x2ccce4(L)),_(0x4,_0xe319f4)],N);function Le(){const _0x5dfa7e=_0x288259,_0x103b8e=_0x2cf9c5(S),_0x5c7e87=_0x2cf9c5(_0x4b8f0b),_0x433543=_0x57d739(()=>_0x5c7e87['getCurrentTypeOfUnit$'](_0x374271[_0x5dfa7e(0x1d6)]),void 0x0,!0x1,[]),[_0x5ec586,_0x3f6800]=_0x223824(null),[_0x56a1cf,_0x49f542]=_0x223824(c[_0x5dfa7e(0x213)]),_0x58f772=_0x15d3aa(null);return _0x365662(()=>(_0x433543&&_0x103b8e[_0x5dfa7e(0x1f3)](_0x433543['getUnitId']())[_0x5dfa7e(0x1a6)](_0x5a5bdc=>{const _0x1814b1=_0x5dfa7e;_0x3f6800(_0x5a5bdc),_0x58f772[_0x1814b1(0x1a2)]=_0x5a5bdc['status$'][_0x1814b1(0x1d0)](_0x108aaf=>{_0x49f542(_0x108aaf);});}),()=>{const _0x6491d2=_0x5dfa7e;var _0x1e20f4;(_0x1e20f4=_0x58f772[_0x6491d2(0x1a2)])==null||_0x1e20f4[_0x6491d2(0x1c7)](),_0x58f772[_0x6491d2(0x1a2)]=null;}),[_0x433543,_0x103b8e]),_0x5ec586?_0x120c4b(_0x1c59e1,{'align':_0x5dfa7e(0x1ab),'disabled':_0x56a1cf===c[_0x5dfa7e(0x1ad)],'className':_0x5dfa7e(0x192),'overlay':_0x120c4b(Re,{'status':_0x56a1cf,'coordinator':_0x5ec586}),'children':_0x120c4b('button',{'className':_0x4affc9('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x56a1cf===c[_0x5dfa7e(0x1ad)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56a1cf!==c[_0x5dfa7e(0x1ad)]}),'type':'button','children':_0x120c4b(W,{'className':_0x5dfa7e(0x1ca)})})}):null;}function Re(_0x5670a2){const _0x4afaf8=_0x288259,{status:_0x109fa5,coordinator:_0x27ab16}=_0x5670a2;switch(_0x109fa5){case c[_0x4afaf8(0x213)]:return _0x120c4b($e,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x202)]:return _0x120c4b(xe,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x21a)]:return _0x120c4b(Pe,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x1ad)]:return _0x120c4b(Te,{});case c[_0x4afaf8(0x217)]:return _0x120c4b(Ae,{'coordinator':_0x27ab16});default:return null;}}function $e(_0x377b24){const _0x5cb217=_0x288259,{coordinator:_0x30ecda}=_0x377b24;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x5cb217(0x1b6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cb217(0x1e3)}),_0x120c4b(_0x22c645,{'onClick':()=>_0x30ecda['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x279f75){const _0x3a7b8d=_0x288259,{coordinator:_0x3a96ec}=_0x279f75;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x3a7b8d(0x1b6),{'className':_0x3a7b8d(0x1e7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x120c4b(_0x22c645,{'onClick':()=>_0x3a96ec[_0x3a7b8d(0x216)](),'children':_0x3a7b8d(0x1f2)})]});}function Pe(_0x540f95){const _0x5bd04b=_0x288259,{coordinator:_0x2b3d0b}=_0x540f95;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x5bd04b(0x1b6),{'className':_0x5bd04b(0x1e7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x120c4b(_0x22c645,{'variant':'text','onClick':()=>_0x2b3d0b[_0x5bd04b(0x20e)](),'children':_0x5bd04b(0x1c4)})]});}function Ae(_0x5b5747){const _0x50ffc7=_0x288259,{coordinator:_0x269e83}=_0x5b5747;return _0x18b69b(_0x182287,{'children':[_0x120c4b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x50ffc7(0x1a1)}),_0x120c4b(_0x22c645,{'variant':_0x50ffc7(0x1b2),'onClick':()=>_0x269e83[_0x50ffc7(0x1df)](),'children':_0x50ffc7(0x1c9)})]});}function Te(){const _0x471c51=_0x288259;return _0x120c4b(_0x182287,{'children':_0x471c51(0x1ae)});}var Fe=Object[_0x288259(0x218)],He=(_0x597881,_0x2e0b7c,_0x359c89,_0x443b17)=>{const _0x3afbee=_0x288259;for(var _0x90b0f5=_0x443b17>0x1?void 0x0:_0x443b17?Fe(_0x2e0b7c,_0x359c89):_0x2e0b7c,_0x23e3fd=_0x597881[_0x3afbee(0x1fe)]-0x1,_0x464d32;_0x23e3fd>=0x0;_0x23e3fd--)(_0x464d32=_0x597881[_0x23e3fd])&&(_0x90b0f5=_0x464d32(_0x90b0f5)||_0x90b0f5);return _0x90b0f5;},A=(_0x4f2e1c,_0x410599)=>(_0x36348e,_0x4fdf10)=>_0x410599(_0x36348e,_0x4fdf10,_0x4f2e1c);let m=class extends _0x2f9266{constructor(_0x1e5014,_0x59f260){const _0x449ede=_0x288259;super(),this[_0x449ede(0x1dd)]=_0x1e5014,this[_0x449ede(0x1ff)]=_0x59f260,this['_mountLiveShare']();}[_0x288259(0x19a)](){const _0xef82cf=_0x288259;this[_0xef82cf(0x1d2)](this['_uiPartsService'][_0xef82cf(0x196)](_0x367153[_0xef82cf(0x1cd)],()=>_0x4d0457(Le,this[_0xef82cf(0x1dd)])));}};m=He([A(0x0,_0x2ccce4(_0x38a60f)),A(0x1,_0x39de93)],m);const ye=_0x288259(0x23a),T={};var Ue=Object[_0x288259(0x218)],Ve=(_0x41ff90,_0x44f3e5,_0x30d7ea,_0x4ce8b6)=>{const _0x303322=_0x288259;for(var _0x5134db=_0x4ce8b6>0x1?void 0x0:_0x4ce8b6?Ue(_0x44f3e5,_0x30d7ea):_0x44f3e5,_0x5510b2=_0x41ff90[_0x303322(0x1fe)]-0x1,_0x2d5093;_0x5510b2>=0x0;_0x5510b2--)(_0x2d5093=_0x41ff90[_0x5510b2])&&(_0x5134db=_0x2d5093(_0x5134db)||_0x5134db);return _0x5134db;},je=(_0x1d3aa0,_0x4008fa)=>(_0x3d222e,_0x37da56)=>_0x4008fa(_0x3d222e,_0x37da56,_0x1d3aa0);let I=class extends _0x2f9266{constructor(_0x3779ad){const _0x588b31=_0x288259;super(),this[_0x588b31(0x1b3)]=_0x3779ad,this[_0x588b31(0x1c0)]();}[_0x288259(0x1c0)](){[_0xc86880['id'],_0x184f42['id'],_0x3493cd['id']]['forEach'](_0x5ef7c9=>{const _0x378a43=_0x33d3;this[_0x378a43(0x1d2)](this[_0x378a43(0x1b3)]['registerSharedOperation'](_0x5ef7c9));});}};I=Ve([je(0x0,_0x2ccce4(L))],I);var Me=Object[_0x288259(0x231)],ke=Object[_0x288259(0x218)],Ge=(_0x32d307,_0x7762f9,_0x4b7b01)=>_0x7762f9 in _0x32d307?Me(_0x32d307,_0x7762f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b7b01}):_0x32d307[_0x7762f9]=_0x4b7b01,We=(_0x4a4a44,_0x45c9a3,_0x5d9a4d,_0x3acefe)=>{const _0x4a4d80=_0x288259;for(var _0x110a54=_0x3acefe>0x1?void 0x0:_0x3acefe?ke(_0x45c9a3,_0x5d9a4d):_0x45c9a3,_0x38cfec=_0x4a4a44[_0x4a4d80(0x1fe)]-0x1,_0x4efb6b;_0x38cfec>=0x0;_0x38cfec--)(_0x4efb6b=_0x4a4a44[_0x38cfec])&&(_0x110a54=_0x4efb6b(_0x110a54)||_0x110a54);return _0x110a54;},F=(_0x1cc800,_0x3c46c3)=>(_0x36cdac,_0x2dc82c)=>_0x3c46c3(_0x36cdac,_0x2dc82c,_0x1cc800),B=(_0x35f92a,_0x712dab,_0x44f472)=>Ge(_0x35f92a,typeof _0x712dab!=_0x288259(0x1b0)?_0x712dab+'':_0x712dab,_0x44f472);const Ye=_0x288259(0x19f);let b=class extends _0x3f1d3f{constructor(_0x1e511a=T,_0x32e59b,_0x9a80){const _0x3f389f=_0x288259;super(),this[_0x3f389f(0x21d)]=_0x1e511a,this['_injector']=_0x32e59b,this[_0x3f389f(0x238)]=_0x9a80;const {..._0x3df5d2}=_0x2eff68({},T,this['_config']);this[_0x3f389f(0x238)][_0x3f389f(0x1de)](ye,_0x3df5d2);}[_0x288259(0x19e)](){const _0x14d7c0=_0x288259;_0x28d75e(this[_0x14d7c0(0x1dd)],_0x965e10([[L],[S],[I],[m]],this[_0x14d7c0(0x21d)][_0x14d7c0(0x199)])),_0x5b4615(this[_0x14d7c0(0x1dd)],[[I]]);}[_0x288259(0x19b)](){_0x5b4615(this['_injector'],[[m]]);}};B(b,_0x288259(0x1c1),_0x374271['UNIVER_UNKNOWN']),B(b,_0x288259(0x1c2),Ye),b=We([_0x553a41(_0x5d8e2c),F(0x1,_0x2ccce4(_0x38a60f)),F(0x2,_0x292df9)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x5f16(){const _0x4c8d55=['univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','defIds','following','1728160kgIJXr','_reporters','data','_status$','delete','_presenter','requireSession','Stop\x20following','getLiveShareCoordinator','1111752ylGwec','LIVESHARE_OPERATION','_beIdle','params','getInitialStates','fill','sheet','pipe','NEW_CHANGESETS','dispose','length','_uiPartsService','36eVQPtP','send','FOLLOWING','_collabSession','evenodd','326181TmvmeI','_handleNewHost','2AQWkEx','map','not-following','replace','live-share-icon','attrs','path','startFollowing','get','svg','toString','_handleNewChangeSets','IDLE','_fetchOperations','values','stopFollowing','PRESENTING','getOwnPropertyDescriptor','xlink:href','NOT_FOLLOWING','dispose$','4456110hHKimL','_config','LIVESHARE_NEW_HOST','LIVESHARE_FETCH_OPERATIONS','defs','_handleOperation','presenting','status$','event$','getValue','7UDrFct','includes','SAME_OPERATION_SHARE_INTERVAL','_entities','_stopFollowing','univerjs-icon\x20univerjs-icon-','getConfig','_handleOnline','18CHblwZ','_startFollowing','onCommandExecuted','defineProperty','idle','idSuffix','use','createInstance','_sharedOperations','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','_configService','_handleTerminate','live-share.config','unitId','add','registerSharedOperation','substring','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','_startPresenting','offline','sessionStatus$','registerComponent','displayName','shouldShareOperation','override','_mountLiveShare','onRendered','memberID','from','onStarting','UNIVER_LIVE_SHARE_PLUGIN','getTypeOfUnitAdded$','You\x27re\x20presenting\x20the\x20document','current','url(#$1','LIVESHARE_REQUEST_HOST','clear','then','entries','set','assign','has','end','getStatus','OFFLINE','You\x27are\x20offline.','asObservable','symbol','mask','default','_liveShareService','_stopPresenting','0\x200\x2017\x2017','div','tryStartPresenting','forEach','_handleOffline','_commandService','_collabSessionService','trim','744855gXupYh','getLiveShareCoordinatorSync','getUnitId','_init','type','pluginName','children','Start\x20following','executeCommand','string','unsubscribe','_status','Stop\x20presenting','univer-size-4','_unitID','LIVESHARE_TERMINATE','HEADER_MENU','ONLINE','getMemberID','subscribe','stringify','disposeWithMe','tag','_commandDisposable','colorChannel1','UNIVER_SHEET','complete','_startLiveShareCoordinator','3981610OVuPAs','1em','getTypeOfUnitDisposed$','next','_injector','setConfig','stopPresenting','11HDWnoZ','reverse','11927532Losnhb','Present\x20this\x20document','parse','init','LiveShareIcon'];_0x5f16=function(){return _0x4c8d55;};return _0x5f16();}
1
+ const _0x1c78e4=_0x4fc5;(function(_0x448a29,_0x121f2b){const _0x5dde8a=_0x4fc5,_0x357d8b=_0x448a29();while(!![]){try{const _0x38840e=parseInt(_0x5dde8a(0x15a))/0x1+-parseInt(_0x5dde8a(0x1df))/0x2*(-parseInt(_0x5dde8a(0x157))/0x3)+parseInt(_0x5dde8a(0x16c))/0x4*(parseInt(_0x5dde8a(0x19e))/0x5)+parseInt(_0x5dde8a(0x1d2))/0x6+-parseInt(_0x5dde8a(0x1dd))/0x7*(parseInt(_0x5dde8a(0x14d))/0x8)+-parseInt(_0x5dde8a(0x1a8))/0x9+-parseInt(_0x5dde8a(0x1c2))/0xa;if(_0x38840e===_0x121f2b)break;else _0x357d8b['push'](_0x357d8b['shift']());}catch(_0x3c3497){_0x357d8b['push'](_0x357d8b['shift']());}}}(_0x2bfa,0xcfd87));var J=Object[_0x1c78e4(0x143)],K=(_0x47b0a7,_0x9727de,_0x191def)=>_0x9727de in _0x47b0a7?J(_0x47b0a7,_0x9727de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x191def}):_0x47b0a7[_0x9727de]=_0x191def,u=(_0x67648c,_0x17ae10,_0x49c1f0)=>K(_0x67648c,typeof _0x17ae10!=_0x1c78e4(0x1af)?_0x17ae10+'':_0x17ae10,_0x49c1f0);import{Disposable as _0x12154a,toDisposable as _0x5217c8,IUniverInstanceService as _0x5969d9,Inject as _0x1a6954,Injector as _0xdf7c04,IConfigService as _0x213343,ICommandService as _0xf26fa0,RxDisposable as _0x3f9973,UniverInstanceType as _0x8c38dc,DisposableCollection as _0x5309db,CommandType as _0x2b1f1c,DependentOn as _0x579b4c,Plugin as _0x32fdda,merge as _0x50f219,registerDependencies as _0x236b83,mergeOverrideWithDependencies as _0x4faafe,touchDependencies as _0x403cf0}from'@univerjs/core';import{useDependency as _0x12bce2,useObservable as _0x3246f2,IUIPartsService as _0x19d4b0,BuiltInUIPart as _0x4a91ef,connectInjector as _0x4d7dcf}from'@univerjs/ui';import{jsx as _0x1c423a,jsxs as _0x5c6e44,Fragment as _0x2cc6e1}from'react/jsx-runtime';import{Dropdown as _0x4e3f46,clsx as _0x25885e,Button as _0x595499}from'@univerjs/design';import{useRef as _0x1e6b39,createElement as _0x23e9b5,forwardRef as _0x4b44ea,useState as _0x3ec4cb,useEffect as _0x8b76d1}from'react';import{CollaborationEvent as _0x1ef809,parseProtocolChangeset as _0x399321}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x17ced7,SessionStatus as _0x4a028c,UniverCollaborationClientPlugin as _0x22ac1e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x190abd,SetWorksheetActiveOperation as _0x35566a}from'@univerjs/sheets';import{BehaviorSubject as _0xc4cd4f,Subject as _0x1c6f6d}from'rxjs';import{takeUntil as _0x57326a,throttleTime as _0x2b868b}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fa9e7,SetScrollOperation as _0x38d67b}from'@univerjs/sheets-ui';function k({ref:_0x5a1c23,..._0x70444a}){const _0x361a56=_0x1c78e4,{icon:_0x144016,id:_0x495a1f,className:_0x49b9e0,extend:_0x3e8568,..._0x546975}=_0x70444a,_0x2d12a5=('univerjs-icon\x20univerjs-icon-'+_0x495a1f+'\x20'+(_0x49b9e0||''))[_0x361a56(0x165)](),_0x4665c8=_0x1e6b39('_'+Oe());return G(_0x144016,''+_0x495a1f,{'defIds':_0x144016[_0x361a56(0x1e1)],'idSuffix':_0x4665c8['current']},{'ref':_0x5a1c23,'className':_0x2d12a5,..._0x546975},_0x3e8568);}function G(_0x23f191,_0x64e5dc,_0x1b2716,_0x4f08e5,_0x100598){const _0x1a5773=_0x1c78e4;return _0x23e9b5(_0x23f191[_0x1a5773(0x191)],{'key':_0x64e5dc,...be(_0x23f191,_0x1b2716,_0x100598),..._0x4f08e5},(Ee(_0x23f191,_0x1b2716)[_0x1a5773(0x1c3)]||[])[_0x1a5773(0x1bc)]((_0x16cac2,_0x486d48)=>G(_0x16cac2,_0x64e5dc+'-'+_0x23f191['tag']+'-'+_0x486d48,_0x1b2716,void 0x0,_0x100598)));}function be(_0x42aeaa,_0x7940e4,_0x2102e9){const _0x351d5d=_0x1c78e4,_0x58e5c1={..._0x42aeaa[_0x351d5d(0x1ad)]};_0x2102e9!=null&&_0x2102e9['colorChannel1']&&_0x58e5c1[_0x351d5d(0x1bd)]==='colorChannel1'&&(_0x58e5c1[_0x351d5d(0x1bd)]=_0x2102e9[_0x351d5d(0x1b8)]),_0x42aeaa[_0x351d5d(0x191)]===_0x351d5d(0x193)&&_0x58e5c1['id']&&(_0x58e5c1['id']=_0x58e5c1['id']+_0x7940e4['idSuffix']),Object['entries'](_0x58e5c1)[_0x351d5d(0x13f)](([_0x2fdc0d,_0x591549])=>{const _0x5035c9=_0x351d5d;_0x2fdc0d===_0x5035c9(0x193)&&typeof _0x591549==_0x5035c9(0x1dc)&&(_0x58e5c1[_0x2fdc0d]=_0x591549['replace'](/url\(#(.*)\)/,_0x5035c9(0x144)+_0x7940e4[_0x5035c9(0x160)]+')'));});const {defIds:_0x24f923}=_0x7940e4;return!_0x24f923||_0x24f923[_0x351d5d(0x195)]===0x0||(_0x42aeaa[_0x351d5d(0x191)]===_0x351d5d(0x183)&&_0x58e5c1[_0x351d5d(0x179)]&&(_0x58e5c1[_0x351d5d(0x179)]=_0x58e5c1[_0x351d5d(0x179)]+_0x7940e4[_0x351d5d(0x160)]),Object[_0x351d5d(0x13d)](_0x58e5c1)[_0x351d5d(0x13f)](([_0x507bdc,_0x1aa202])=>{const _0x103532=_0x351d5d;typeof _0x1aa202=='string'&&(_0x58e5c1[_0x507bdc]=_0x1aa202[_0x103532(0x177)](/url\(#(.*)\)/,'url(#$1'+_0x7940e4['idSuffix']+')'));})),_0x58e5c1;}function Ee(_0x33512f,_0x2fae61){const _0x3616b5=_0x1c78e4;var _0x16f4c3;const {defIds:_0x11d561}=_0x2fae61;return!_0x11d561||_0x11d561['length']===0x0?_0x33512f:_0x33512f[_0x3616b5(0x191)]===_0x3616b5(0x1c0)&&((_0x16f4c3=_0x33512f[_0x3616b5(0x1c3)])!=null&&_0x16f4c3[_0x3616b5(0x195)])?{..._0x33512f,'children':_0x33512f[_0x3616b5(0x1c3)][_0x3616b5(0x1bc)](_0x58d609=>typeof _0x58d609[_0x3616b5(0x1ad)]['id']==_0x3616b5(0x1dc)&&_0x11d561&&_0x11d561[_0x3616b5(0x198)](_0x58d609['attrs']['id'])?{..._0x58d609,'attrs':{..._0x58d609[_0x3616b5(0x1ad)],'id':_0x58d609[_0x3616b5(0x1ad)]['id']+_0x2fae61[_0x3616b5(0x160)]}}:_0x58d609)}:_0x33512f;}function Oe(){const _0x2c421c=_0x1c78e4;return Math[_0x2c421c(0x14e)]()['toString'](0x24)[_0x2c421c(0x14f)](0x2,0x8);}k[_0x1c78e4(0x150)]=_0x1c78e4(0x154);const we={'tag':_0x1c78e4(0x180),'attrs':{'xmlns':_0x1c78e4(0x1cb),'fill':_0x1c78e4(0x197),'viewBox':_0x1c78e4(0x1ca),'width':_0x1c78e4(0x1e0),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1c78e4(0x16e),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x1c78e4(0x19f),'attrs':{'fill':'currentColor','d':_0x1c78e4(0x1b4),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x4b44ea(function(_0x161205,_0x250f9a){const _0x556268=_0x1c78e4;return _0x23e9b5(k,Object[_0x556268(0x184)]({},_0x161205,{'id':'live-share-icon','ref':_0x250f9a,'icon':we}));});function _0x4fc5(_0x3b03fa,_0x2e9b8a){_0x3b03fa=_0x3b03fa-0x138;const _0x2bfa18=_0x2bfa();let _0x4fc5b5=_0x2bfa18[_0x3b03fa];return _0x4fc5b5;}W['displayName']=_0x1c78e4(0x156);class L extends _0x12154a{constructor(){const _0x211312=_0x1c78e4;super(...arguments),u(this,_0x211312(0x1a5),new Set()),u(this,_0x211312(0x140),new Set());}[_0x1c78e4(0x187)](_0x3a13b6){const _0x1fd176=_0x1c78e4;return this['_sharedOperations']['add'](_0x3a13b6),_0x5217c8(()=>this[_0x1fd176(0x1a5)][_0x1fd176(0x1ba)](_0x3a13b6));}[_0x1c78e4(0x1db)](_0xf2db90){const _0x236595=_0x1c78e4;return this['_reporters'][_0x236595(0x17c)](_0xf2db90),_0x5217c8(()=>this[_0x236595(0x140)][_0x236595(0x1ba)](_0xf2db90));}[_0x1c78e4(0x155)](_0x519d11){const _0x16827f=_0x1c78e4;return this[_0x16827f(0x1a5)][_0x16827f(0x172)](_0x519d11);}[_0x1c78e4(0x1b9)](_0x2de91e){const _0x3ac88e=_0x1c78e4;return Array[_0x3ac88e(0x1bb)](this[_0x3ac88e(0x140)])[_0x3ac88e(0x1bc)](_0x17b801=>_0x17b801(_0x2de91e));}}var Ne=Object[_0x1c78e4(0x162)],Y=(_0x4c3679,_0x4e41b6,_0x3dec2a,_0x482c9a)=>{const _0x2e80e4=_0x1c78e4;for(var _0x4e29b6=_0x482c9a>0x1?void 0x0:_0x482c9a?Ne(_0x4e41b6,_0x3dec2a):_0x4e41b6,_0x380140=_0x4c3679[_0x2e80e4(0x195)]-0x1,_0xede0b4;_0x380140>=0x0;_0x380140--)(_0xede0b4=_0x4c3679[_0x380140])&&(_0x4e29b6=_0xede0b4(_0x4e29b6)||_0x4e29b6);return _0x4e29b6;},_=(_0x4d1d34,_0x2203b9)=>(_0x29b77e,_0x5936d4)=>_0x2203b9(_0x29b77e,_0x5936d4,_0x4d1d34);let S=class extends _0x3f9973{constructor(_0x278a7e,_0x31f189,_0x5de18e){const _0x2c68db=_0x1c78e4;super(),u(this,'_entities',new Map()),(this[_0x2c68db(0x188)]=_0x278a7e,this['_injector']=_0x31f189,this[_0x2c68db(0x138)]=_0x5de18e,this[_0x2c68db(0x1b6)]());}async[_0x1c78e4(0x192)](_0x59b214){const _0x21e1e9=_0x1c78e4;return this[_0x21e1e9(0x17b)]['has'](_0x59b214)||await this[_0x21e1e9(0x1b7)](_0x59b214),this[_0x21e1e9(0x17b)][_0x21e1e9(0x19d)](_0x59b214);}['getLiveShareCoordinatorSync'](_0x1ba538){const _0x47d766=_0x1c78e4;var _0x449c8f;return(_0x449c8f=this[_0x47d766(0x17b)][_0x47d766(0x19d)](_0x1ba538))!=null?_0x449c8f:null;}['_init'](){const _0x50eec1=_0x1c78e4;this[_0x50eec1(0x188)][_0x50eec1(0x18a)](_0x8c38dc[_0x50eec1(0x1b3)])[_0x50eec1(0x151)](_0x57326a(this[_0x50eec1(0x1a4)]))[_0x50eec1(0x1a0)](async _0x3fb8c2=>{const _0x39bf2c=_0x50eec1,_0x262d12=_0x3fb8c2[_0x39bf2c(0x1be)]();this[_0x39bf2c(0x17b)][_0x39bf2c(0x172)](_0x262d12)||this['_startLiveShareCoordinator'](_0x262d12);}),this[_0x50eec1(0x188)][_0x50eec1(0x186)](_0x8c38dc['UNIVER_SHEET'])[_0x50eec1(0x151)](_0x57326a(this['dispose$']))[_0x50eec1(0x1a0)](_0x32b22a=>{const _0x158b00=_0x50eec1,_0x151186=_0x32b22a[_0x158b00(0x1be)](),_0x1563d6=this['_entities']['get'](_0x151186);_0x1563d6==null||_0x1563d6['dispose']();});}async[_0x1c78e4(0x1b7)](_0x2d26ad){const _0x1b5fb9=_0x1c78e4,_0x2edda0=await this[_0x1b5fb9(0x138)][_0x1b5fb9(0x17d)](_0x2d26ad),_0x22586b=this[_0x1b5fb9(0x168)][_0x1b5fb9(0x164)](N,_0x2d26ad,_0x2edda0);return _0x22586b['init'](),this['_entities']['set'](_0x2d26ad,_0x22586b),_0x22586b;}};S=Y([_(0x0,_0x5969d9),_(0x1,_0x1a6954(_0xdf7c04)),_(0x2,_0x1a6954(_0x17ced7))],S);var c=(_0x24c783=>(_0x24c783[_0x1c78e4(0x16a)]=_0x1c78e4(0x15b),_0x24c783['IDLE']='idle',_0x24c783[_0x1c78e4(0x1ae)]=_0x1c78e4(0x18c),_0x24c783[_0x1c78e4(0x17a)]='not-following',_0x24c783[_0x1c78e4(0x1d1)]=_0x1c78e4(0x13b),_0x24c783))(c||{});const Ce=_0x1c78e4(0x139),De=0xc8;let N=class extends _0x3f9973{constructor(_0x554e2f,_0x23894f,_0x73cbda,_0x69594c,_0x4d668d){const _0x2fec80=_0x1c78e4;super(),u(this,_0x2fec80(0x1e2),new _0xc4cd4f(_0x2fec80(0x141))),u(this,_0x2fec80(0x1b5),this[_0x2fec80(0x1e2)][_0x2fec80(0x1a6)]()),u(this,_0x2fec80(0x1b6),!0x1),u(this,_0x2fec80(0x1bf),null),u(this,_0x2fec80(0x13c),null),(this['_unitID']=_0x554e2f,this[_0x2fec80(0x14b)]=_0x23894f,this['_configService']=_0x73cbda,this[_0x2fec80(0x15f)]=_0x69594c,this[_0x2fec80(0x14c)]=_0x4d668d);}get['_status'](){const _0x4a6811=_0x1c78e4;return this[_0x4a6811(0x1e2)][_0x4a6811(0x13e)]();}[_0x1c78e4(0x1d3)](){const _0x802d10=_0x1c78e4;var _0x3bd303;(_0x3bd303=this[_0x802d10(0x1bf)])==null||_0x3bd303[_0x802d10(0x1d3)](),this[_0x802d10(0x1e2)][_0x802d10(0x1b1)](_0x802d10(0x141)),this[_0x802d10(0x1e2)][_0x802d10(0x171)]();}[_0x1c78e4(0x153)](){const _0x403747=_0x1c78e4;return this[_0x403747(0x1a7)];}[_0x1c78e4(0x1d8)](){const _0x4c0aae=_0x1c78e4;this[_0x4c0aae(0x1b6)]||(this[_0x4c0aae(0x1b6)]=!0x0,this[_0x4c0aae(0x14b)][_0x4c0aae(0x185)][_0x4c0aae(0x151)](_0x57326a(this[_0x4c0aae(0x1a4)]))[_0x4c0aae(0x1a0)](_0x401383=>{const _0x4e72e6=_0x4c0aae;switch(_0x401383){case _0x4a028c[_0x4e72e6(0x16a)]:this['_handleOffline']();break;case _0x4a028c[_0x4e72e6(0x17f)]:this['_handleOnline']();break;}}),this[_0x4c0aae(0x14b)][_0x4c0aae(0x15c)][_0x4c0aae(0x151)](_0x57326a(this[_0x4c0aae(0x1a4)]))[_0x4c0aae(0x1a0)](_0x1e38a8=>{const _0x5e9c49=_0x4c0aae,{eventID:_0x14971b}=_0x1e38a8;switch(_0x14971b){case _0x1ef809[_0x5e9c49(0x15e)]:this['_handleNewHost'](_0x1e38a8);break;case _0x1ef809[_0x5e9c49(0x16d)]:this[_0x5e9c49(0x1c4)](_0x1e38a8);break;case _0x1ef809['LIVESHARE_TERMINATE']:this[_0x5e9c49(0x1e3)]();break;case _0x1ef809[_0x5e9c49(0x1c5)]:this[_0x5e9c49(0x1c6)](_0x1e38a8);break;}}));}[_0x1c78e4(0x1e5)](){const _0x41d1e1=_0x1c78e4;this[_0x41d1e1(0x14b)][_0x41d1e1(0x176)]({'eventID':_0x1ef809[_0x41d1e1(0x1a3)],'data':{'unitID':this[_0x41d1e1(0x181)],'userID':this[_0x41d1e1(0x14b)][_0x41d1e1(0x148)]()}},this[_0x41d1e1(0x181)]);}[_0x1c78e4(0x161)](){const _0x440abd=_0x1c78e4;this[_0x440abd(0x1a7)]==='presenting'&&(this[_0x440abd(0x1e2)][_0x440abd(0x1b1)](_0x440abd(0x141)),this['_collabSession']['send']({'eventID':_0x1ef809[_0x440abd(0x1c9)],'data':{'unitID':this[_0x440abd(0x181)]}},this['_unitID']));}['startFollowing'](){const _0x4ac97a=_0x1c78e4;this['_status']===_0x4ac97a(0x1da)&&(this['_status$']['next']('following'),this['_startFollowing']());}[_0x1c78e4(0x1d0)](){const _0x1231b1=_0x1c78e4;this['_status']===_0x1231b1(0x18c)&&this[_0x1231b1(0x1b0)]();}['_handleNewHost'](_0x34d387){const _0x3a99cb=_0x1c78e4,{presenter:_0xbc7752}=_0x34d387[_0x3a99cb(0x1d9)],_0x34ab7c=this[_0x3a99cb(0x14b)][_0x3a99cb(0x148)]();this[_0x3a99cb(0x13c)]=_0xbc7752,_0xbc7752===_0x34ab7c?(this[_0x3a99cb(0x1b0)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0x3a99cb(0x1d6)](),this[_0x3a99cb(0x1a2)]());}[_0x1c78e4(0x196)](){const _0x1b62b9=_0x1c78e4,_0x1ced9d={'eventID':_0x1ef809[_0x1b62b9(0x1c7)]};this[_0x1b62b9(0x14b)][_0x1b62b9(0x176)](_0x1ced9d,this[_0x1b62b9(0x181)]);}[_0x1c78e4(0x1e3)](){const _0x74be2e=_0x1c78e4;this[_0x74be2e(0x13c)]=null,this[_0x74be2e(0x1a7)]!==_0x74be2e(0x13b)&&this[_0x74be2e(0x174)]();}[_0x1c78e4(0x1c6)](_0x1807be){const _0x583e90=_0x1c78e4;if(this['_status']===_0x583e90(0x18c)&&this[_0x583e90(0x13c)]===_0x1807be[_0x583e90(0x1d9)]['memberID']){const _0x3ec2dc=_0x399321(_0x1807be[_0x583e90(0x1d9)])['mutations'][_0x583e90(0x169)]()[_0x583e90(0x1ac)](_0x5181ef=>_0x5181ef['id']===_0x190abd['id']);if(_0x3ec2dc){const _0x13b796=_0x3ec2dc['params'][_0x583e90(0x166)],_0x4c5ac6=_0x3ec2dc['params'][_0x583e90(0x1de)]['id'];setTimeout(()=>{const _0x594c2b=_0x583e90;this[_0x594c2b(0x14c)][_0x594c2b(0x145)](_0x35566a['id'],{'unitId':_0x13b796,'subUnitId':_0x4c5ac6},{'fromCollab':!0x0});});}}}[_0x1c78e4(0x175)](){const _0x4ec94f=_0x1c78e4;this[_0x4ec94f(0x1e2)][_0x4ec94f(0x1b1)](_0x4ec94f(0x13b));const _0xcec87d=new Map(),_0xc722bc=this[_0x4ec94f(0x1bf)]=new _0x5309db();_0xc722bc[_0x4ec94f(0x17c)](_0x5217c8(()=>{const _0x54956a=_0x4ec94f;_0xcec87d[_0x54956a(0x13f)](_0x17fbca=>_0x17fbca['complete']()),_0xcec87d[_0x54956a(0x194)]();})),_0xc722bc[_0x4ec94f(0x17c)](this['_commandService'][_0x4ec94f(0x149)](_0x25a6e6=>{const _0x5e4aed=_0x4ec94f;var _0x378225;if(_0x25a6e6[_0x5e4aed(0x15d)]!==_0x2b1f1c[_0x5e4aed(0x146)]||!this['_liveShareService'][_0x5e4aed(0x155)](_0x25a6e6['id']))return;const {id:_0x17b5db}=_0x25a6e6;let _0x2ce684;_0xcec87d['has'](_0x17b5db)?_0x2ce684=_0xcec87d[_0x5e4aed(0x19d)](_0x17b5db):(_0x2ce684=new _0x1c6f6d(),_0xcec87d['set'](_0x17b5db,_0x2ce684),_0x2ce684['pipe'](_0x2b868b((_0x378225=this[_0x5e4aed(0x1ce)][_0x5e4aed(0x170)](Ce))!=null?_0x378225:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e4aed(0x1a0)](_0x5729a0=>{const _0x3ddaf6=_0x5e4aed;this[_0x3ddaf6(0x14b)][_0x3ddaf6(0x176)]({'eventID':_0x1ef809['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3ddaf6(0x181)],'operations':{[_0x5729a0['id']]:{'id':_0x5729a0['id'],'params':JSON['stringify'](_0x5729a0['params'])}}}},this[_0x3ddaf6(0x181)]);})),_0x2ce684[_0x5e4aed(0x1b1)](_0x25a6e6);})),this[_0x4ec94f(0x15f)][_0x4ec94f(0x1b9)](this[_0x4ec94f(0x181)])[_0x4ec94f(0x13f)](_0x57195f=>this[_0x4ec94f(0x14b)][_0x4ec94f(0x176)]({'eventID':_0x1ef809['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4ec94f(0x181)],'operations':{[_0x57195f['id']]:{'id':_0x57195f['id'],'params':JSON[_0x4ec94f(0x1a1)](_0x57195f['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x42a533=_0x1c78e4;var _0x19cb53;this[_0x42a533(0x1e2)][_0x42a533(0x1b1)](_0x42a533(0x141)),(_0x19cb53=this[_0x42a533(0x1bf)])==null||_0x19cb53[_0x42a533(0x1d3)](),this[_0x42a533(0x1bf)]=null;}['_startFollowing'](){const _0x221382=_0x1c78e4;var _0x2b8b4d;(_0x2b8b4d=this[_0x221382(0x1bf)])==null||_0x2b8b4d[_0x221382(0x1d3)](),this[_0x221382(0x1e2)][_0x221382(0x1b1)](_0x221382(0x18c));}[_0x1c78e4(0x174)](){const _0x2bec49=_0x1c78e4;var _0x5b0238;this[_0x2bec49(0x1e2)][_0x2bec49(0x1b1)](_0x2bec49(0x141)),(_0x5b0238=this[_0x2bec49(0x1bf)])==null||_0x5b0238[_0x2bec49(0x1d3)](),this[_0x2bec49(0x1bf)]=null;}[_0x1c78e4(0x1b0)](){const _0x10cf32=_0x1c78e4;var _0x26e9dd;this[_0x10cf32(0x1e2)][_0x10cf32(0x1b1)](_0x10cf32(0x1da)),(_0x26e9dd=this[_0x10cf32(0x1bf)])==null||_0x26e9dd['dispose']();}[_0x1c78e4(0x1c4)](_0x475ce6){const _0x14355d=_0x1c78e4;if([_0x14355d(0x13b),_0x14355d(0x1da),'offline'][_0x14355d(0x198)](this[_0x14355d(0x1a7)])||!_0x475ce6[_0x14355d(0x1d9)][_0x14355d(0x1a9)]||_0x475ce6['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x14355d(0x1a7)]==='idle'&&this[_0x14355d(0x1a2)]();const _0x3fa1a2=_0x475ce6[_0x14355d(0x1d9)][_0x14355d(0x17e)];Object[_0x14355d(0x173)](_0x3fa1a2)[_0x14355d(0x13f)](_0x3cf3a4=>{const _0x4b21ad=_0x14355d;this[_0x4b21ad(0x14c)][_0x4b21ad(0x145)](_0x3cf3a4['id'],_0x3cf3a4[_0x4b21ad(0x1ab)]?JSON[_0x4b21ad(0x167)](_0x3cf3a4[_0x4b21ad(0x1ab)]):null,{'fromCollab':!0x0});});}[_0x1c78e4(0x13a)](){const _0x21536c=_0x1c78e4;var _0x507040;this[_0x21536c(0x1e2)][_0x21536c(0x1b1)](_0x21536c(0x15b)),(_0x507040=this[_0x21536c(0x1bf)])==null||_0x507040['dispose']();}['_handleOnline'](){const _0x10188e=_0x1c78e4;this[_0x10188e(0x1e2)][_0x10188e(0x1b1)](_0x10188e(0x141)),this[_0x10188e(0x196)]();}};N=Y([_(0x2,_0x213343),_(0x3,_0x1a6954(L)),_(0x4,_0xf26fa0)],N);function Le(){const _0x391895=_0x1c78e4,_0x4a5b8e=_0x12bce2(S),_0xc55fef=_0x12bce2(_0x5969d9),_0x3a1c98=_0x3246f2(()=>_0xc55fef['getCurrentTypeOfUnit$'](_0x8c38dc[_0x391895(0x1b3)]),void 0x0,!0x1,[]),[_0x75fe52,_0x49d1b9]=_0x3ec4cb(null),[_0x393fbf,_0x5d5101]=_0x3ec4cb(c[_0x391895(0x152)]),_0x4f2d2b=_0x1e6b39(null);return _0x8b76d1(()=>(_0x3a1c98&&_0x4a5b8e[_0x391895(0x192)](_0x3a1c98[_0x391895(0x1be)]())['then'](_0x24a1fe=>{const _0x409186=_0x391895;_0x49d1b9(_0x24a1fe),_0x4f2d2b[_0x409186(0x18d)]=_0x24a1fe[_0x409186(0x1b5)][_0x409186(0x1a0)](_0x48c9da=>{_0x5d5101(_0x48c9da);});}),()=>{const _0x4045de=_0x391895;var _0x179886;(_0x179886=_0x4f2d2b[_0x4045de(0x18d)])==null||_0x179886['unsubscribe'](),_0x4f2d2b[_0x4045de(0x18d)]=null;}),[_0x3a1c98,_0x4a5b8e]),_0x75fe52?_0x1c423a(_0x4e3f46,{'align':_0x391895(0x1d5),'disabled':_0x393fbf===c[_0x391895(0x16a)],'className':_0x391895(0x16b),'overlay':_0x1c423a(Re,{'status':_0x393fbf,'coordinator':_0x75fe52}),'children':_0x1c423a(_0x391895(0x19c),{'className':_0x25885e(_0x391895(0x18b),{'univer-cursor-not-allowed':_0x393fbf===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x393fbf!==c[_0x391895(0x16a)]}),'type':_0x391895(0x19c),'children':_0x1c423a(W,{'className':_0x391895(0x1cf)})})}):null;}function Re(_0x154153){const _0x3a5a38=_0x1c78e4,{status:_0x32dde6,coordinator:_0x34d907}=_0x154153;switch(_0x32dde6){case c[_0x3a5a38(0x152)]:return _0x1c423a($e,{'coordinator':_0x34d907});case c[_0x3a5a38(0x1ae)]:return _0x1c423a(xe,{'coordinator':_0x34d907});case c[_0x3a5a38(0x17a)]:return _0x1c423a(Pe,{'coordinator':_0x34d907});case c[_0x3a5a38(0x16a)]:return _0x1c423a(Te,{});case c['PRESENTING']:return _0x1c423a(Ae,{'coordinator':_0x34d907});default:return null;}}function $e(_0x24e4e4){const _0x556cce=_0x1c78e4,{coordinator:_0x379b04}=_0x24e4e4;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a('div',{'className':_0x556cce(0x189),'children':_0x556cce(0x158)}),_0x1c423a(_0x595499,{'onClick':()=>_0x379b04[_0x556cce(0x1e5)](),'children':_0x556cce(0x1e4)})]});}function xe(_0x2b5853){const _0x532224=_0x1c78e4,{coordinator:_0x4024f0}=_0x2b5853;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x532224(0x18f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x532224(0x1aa)}),_0x1c423a(_0x595499,{'onClick':()=>_0x4024f0['stopFollowing'](),'children':_0x532224(0x1cc)})]});}function Pe(_0x13bb1b){const _0x168073=_0x1c78e4,{coordinator:_0x2702bc}=_0x13bb1b;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x168073(0x18f),{'className':_0x168073(0x189),'children':_0x168073(0x142)}),_0x1c423a(_0x595499,{'variant':_0x168073(0x163),'onClick':()=>_0x2702bc[_0x168073(0x14a)](),'children':_0x168073(0x1d4)})]});}function Ae(_0xcb17c6){const _0x4507c9=_0x1c78e4,{coordinator:_0x5b1cea}=_0xcb17c6;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x4507c9(0x18f),{'className':_0x4507c9(0x189),'children':_0x4507c9(0x1c8)}),_0x1c423a(_0x595499,{'variant':_0x4507c9(0x1cd),'onClick':()=>_0x5b1cea[_0x4507c9(0x161)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x214012=_0x1c78e4;return _0x1c423a(_0x2cc6e1,{'children':_0x214012(0x159)});}var Fe=Object[_0x1c78e4(0x162)],He=(_0x2ebc94,_0x442f7f,_0x1c1963,_0xd3cf2f)=>{for(var _0x3d1d6a=_0xd3cf2f>0x1?void 0x0:_0xd3cf2f?Fe(_0x442f7f,_0x1c1963):_0x442f7f,_0x4b8eca=_0x2ebc94['length']-0x1,_0x276d55;_0x4b8eca>=0x0;_0x4b8eca--)(_0x276d55=_0x2ebc94[_0x4b8eca])&&(_0x3d1d6a=_0x276d55(_0x3d1d6a)||_0x3d1d6a);return _0x3d1d6a;},A=(_0x17c2fd,_0x3e797c)=>(_0x4baab4,_0x339145)=>_0x3e797c(_0x4baab4,_0x339145,_0x17c2fd);function _0x2bfa(){const _0x370629=['idle','You\x27re\x20not\x20following\x20the\x20presenter','defineProperty','url(#$1','executeCommand','OPERATION','disposeWithMe','getMemberID','onCommandExecuted','startFollowing','_collabSession','_commandService','207496ZURbAi','random','substring','displayName','pipe','IDLE','getStatus','UniverIcon','shouldShareOperation','LiveShareIcon','17259wDVNeA','Present\x20this\x20document','You\x27are\x20offline.','1285531LBdasw','offline','event$','type','LIVESHARE_NEW_HOST','_liveShareService','idSuffix','stopPresenting','getOwnPropertyDescriptor','text','createInstance','trim','unitId','parse','_injector','reverse','OFFLINE','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','6464536HkpCgx','LIVESHARE_OPERATION','currentColor','pluginName','getConfig','complete','has','values','_beIdle','_startPresenting','send','replace','live-share.config','xlink:href','NOT_FOLLOWING','_entities','add','requireSession','operations','ONLINE','svg','_unitID','override','use','assign','sessionStatus$','getTypeOfUnitDisposed$','registerSharedOperation','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','current','onStarting','div','onRendered','tag','getLiveShareCoordinator','mask','clear','length','_fetchOperations','none','includes','_config','UNIVER_LIVE_SHARE_PLUGIN','_mountLiveShare','button','get','5kxPXWq','path','subscribe','stringify','_startFollowing','LIVESHARE_REQUEST_HOST','dispose$','_sharedOperations','asObservable','_status','15127407MCEYcO','presenter','You\x27re\x20following\x20the\x20presenter','params','find','attrs','FOLLOWING','symbol','_stopFollowing','next','_uiPartsService','UNIVER_SHEET','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','status$','_init','_startLiveShareCoordinator','colorChannel1','getInitialStates','delete','from','map','fill','getUnitId','_commandDisposable','defs','HEADER_MENU','2114950eozlqC','children','_handleOperation','NEW_CHANGESETS','_handleNewChangeSets','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20presenting\x20the\x20document','LIVESHARE_TERMINATE','0\x200\x2017\x2017','http://www.w3.org/2000/svg','Stop\x20following','default','_configService','univer-size-4','stopFollowing','PRESENTING','1427760BDiPRp','dispose','Start\x20following','end','_stopPresenting','UNIVER_UNKNOWN','init','data','not-following','registerInitialStateReporter','string','273lqRkfB','sheet','214Mzqvwm','1em','defIds','_status$','_handleTerminate','Start','tryStartPresenting','_collabSessionService','SAME_OPERATION_SHARE_INTERVAL','_handleOffline','presenting','_presenter','entries','getValue','forEach','_reporters'];_0x2bfa=function(){return _0x370629;};return _0x2bfa();}let m=class extends _0x12154a{constructor(_0x50877c,_0x30f152){const _0x1a2274=_0x1c78e4;super(),this['_injector']=_0x50877c,this['_uiPartsService']=_0x30f152,this[_0x1a2274(0x19b)]();}[_0x1c78e4(0x19b)](){const _0x58be3b=_0x1c78e4;this['disposeWithMe'](this[_0x58be3b(0x1b2)]['registerComponent'](_0x4a91ef[_0x58be3b(0x1c1)],()=>_0x4d7dcf(Le,this['_injector'])));}};m=He([A(0x0,_0x1a6954(_0xdf7c04)),A(0x1,_0x19d4b0)],m);const ye=_0x1c78e4(0x178),T={};var Ue=Object[_0x1c78e4(0x162)],Ve=(_0x48481b,_0x1005d2,_0x4429fc,_0x301b1b)=>{for(var _0x40aa05=_0x301b1b>0x1?void 0x0:_0x301b1b?Ue(_0x1005d2,_0x4429fc):_0x1005d2,_0x5a9b64=_0x48481b['length']-0x1,_0x3028e2;_0x5a9b64>=0x0;_0x5a9b64--)(_0x3028e2=_0x48481b[_0x5a9b64])&&(_0x40aa05=_0x3028e2(_0x40aa05)||_0x40aa05);return _0x40aa05;},je=(_0x3d3d2b,_0x48bdc5)=>(_0x580a2e,_0x562905)=>_0x48bdc5(_0x580a2e,_0x562905,_0x3d3d2b);let I=class extends _0x12154a{constructor(_0x2845db){const _0x3d9eb2=_0x1c78e4;super(),this['_liveShareService']=_0x2845db,this[_0x3d9eb2(0x1b6)]();}[_0x1c78e4(0x1b6)](){const _0x325a55=_0x1c78e4;[_0x2fa9e7['id'],_0x38d67b['id'],_0x35566a['id']][_0x325a55(0x13f)](_0x37a2fc=>{const _0x5cf9f8=_0x325a55;this[_0x5cf9f8(0x147)](this['_liveShareService'][_0x5cf9f8(0x187)](_0x37a2fc));});}};I=Ve([je(0x0,_0x1a6954(L))],I);var Me=Object[_0x1c78e4(0x143)],ke=Object[_0x1c78e4(0x162)],Ge=(_0x15d15b,_0x219cce,_0x1a936c)=>_0x219cce in _0x15d15b?Me(_0x15d15b,_0x219cce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a936c}):_0x15d15b[_0x219cce]=_0x1a936c,We=(_0x592f3b,_0x12a3ce,_0x477efc,_0x38c3e7)=>{const _0x46c106=_0x1c78e4;for(var _0x36cafc=_0x38c3e7>0x1?void 0x0:_0x38c3e7?ke(_0x12a3ce,_0x477efc):_0x12a3ce,_0x57fef8=_0x592f3b[_0x46c106(0x195)]-0x1,_0x344ce0;_0x57fef8>=0x0;_0x57fef8--)(_0x344ce0=_0x592f3b[_0x57fef8])&&(_0x36cafc=_0x344ce0(_0x36cafc)||_0x36cafc);return _0x36cafc;},F=(_0x474f80,_0x3bb347)=>(_0x366c82,_0x38ecff)=>_0x3bb347(_0x366c82,_0x38ecff,_0x474f80),B=(_0x3f08d2,_0x4c24b8,_0x39b0ea)=>Ge(_0x3f08d2,typeof _0x4c24b8!=_0x1c78e4(0x1af)?_0x4c24b8+'':_0x4c24b8,_0x39b0ea);const Ye=_0x1c78e4(0x19a);let b=class extends _0x32fdda{constructor(_0xe8b187=T,_0x3ff09a,_0x158bc1){const _0x384b07=_0x1c78e4;super(),this[_0x384b07(0x199)]=_0xe8b187,this['_injector']=_0x3ff09a,this['_configService']=_0x158bc1;const {..._0x54217b}=_0x50f219({},T,this[_0x384b07(0x199)]);this[_0x384b07(0x1ce)]['setConfig'](ye,_0x54217b);}[_0x1c78e4(0x18e)](){const _0x57b16d=_0x1c78e4;_0x236b83(this[_0x57b16d(0x168)],_0x4faafe([[L],[S],[I],[m]],this[_0x57b16d(0x199)][_0x57b16d(0x182)])),_0x403cf0(this['_injector'],[[I]]);}[_0x1c78e4(0x190)](){const _0x4e069f=_0x1c78e4;_0x403cf0(this[_0x4e069f(0x168)],[[m]]);}};B(b,'type',_0x8c38dc[_0x1c78e4(0x1d7)]),B(b,_0x1c78e4(0x16f),Ye),b=We([_0x579b4c(_0x22ac1e),F(0x1,_0x1a6954(_0xdf7c04)),F(0x2,_0x213343)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4571(_0x2039a8,_0x21ce6b){_0x2039a8=_0x2039a8-0x17f;const _0x542ea7=_0x542e();let _0x457152=_0x542ea7[_0x2039a8];return _0x457152;}(function(_0x3c37c2,_0x507be5){const _0x31636d=_0x4571,_0x1eaf41=_0x3c37c2();while(!![]){try{const _0x1a3928=parseInt(_0x31636d(0x1b3))/0x1+-parseInt(_0x31636d(0x193))/0x2+-parseInt(_0x31636d(0x186))/0x3+-parseInt(_0x31636d(0x1b2))/0x4+-parseInt(_0x31636d(0x18c))/0x5*(-parseInt(_0x31636d(0x19a))/0x6)+-parseInt(_0x31636d(0x18e))/0x7+parseInt(_0x31636d(0x181))/0x8;if(_0x1a3928===_0x507be5)break;else _0x1eaf41['push'](_0x1eaf41['shift']());}catch(_0x29f7c6){_0x1eaf41['push'](_0x1eaf41['shift']());}}}(_0x542e,0xc78a8),function(_0x46effe,_0x2f33c9){const _0x488ee8=_0x4571;typeof exports==_0x488ee8(0x1b0)&&typeof module<'u'?_0x2f33c9(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x488ee8(0x1a5)&&define[_0x488ee8(0x1ad)]?define(['@univerjs-pro/live-share',_0x488ee8(0x1ae),_0x488ee8(0x18d),'@univerjs/sheets-ui',_0x488ee8(0x182),_0x488ee8(0x191)],_0x2f33c9):(_0x46effe=typeof globalThis<'u'?globalThis:_0x46effe||self,_0x2f33c9(_0x46effe['UniverProLiveShare'],_0x46effe[_0x488ee8(0x194)],_0x46effe[_0x488ee8(0x18b)],_0x46effe[_0x488ee8(0x19c)],_0x46effe['UniverSheetsFacade'],_0x46effe[_0x488ee8(0x19f)]));}(this,function(_0xb44c2e,_0x216142,_0x4178a9,_0xf6248d,_0xf8334a,_0x36ba72){'use strict';const _0x330419=_0x4571;class _0x5d58c3 extends _0xf8334a['FRange']{[_0x330419(0x1aa)](_0x57b17d,_0x53200a,_0x5b4a58,_0x524261,_0x5d2117){const _0xffb163=_0x330419,_0x5851f2=_0x57b17d[_0xffb163(0x195)](_0xb44c2e[_0xffb163(0x1a4)]),_0x32fb9d=_0x57b17d['get'](_0x216142[_0xffb163(0x1ab)]),_0x52da9a=_0x53200a['getUnitId'](),_0x50141d=_0x53200a[_0xffb163(0x190)](),_0x279598=_0x5851f2[_0xffb163(0x1a6)](_0x52da9a);(_0x279598==null?void 0x0:_0x279598[_0xffb163(0x184)]())!==_0xb44c2e[_0xffb163(0x187)][_0xffb163(0x18a)]||(_0x5b4a58['getSheetId']()!==_0x50141d[_0xffb163(0x197)]()&&this[_0xffb163(0x19d)][_0xffb163(0x196)](_0x4178a9[_0xffb163(0x19b)]['id'],{'unitId':_0x52da9a,'subUnitId':_0x5b4a58[_0xffb163(0x197)]()}),!_0x32fb9d[_0xffb163(0x185)](_0x52da9a))||_0x5d2117[_0xffb163(0x1af)](_0xf6248d[_0xffb163(0x1a1)]['id'],{'unitId':_0x53200a[_0xffb163(0x1b1)](),'sheetId':_0x5b4a58[_0xffb163(0x197)](),'sheetViewStartRow':_0x524261[_0xffb163(0x180)],'sheetViewStartColumn':_0x524261[_0xffb163(0x17f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xf8334a[_0x330419(0x199)]['extend'](_0x5d58c3);class _0x3c3142 extends _0x36ba72[_0x330419(0x1ac)]{[_0x330419(0x189)](){const _0x216a13=_0x330419;var _0x44aabe,_0x34bd1f;const _0x1f8eff=this[_0x216a13(0x1b5)][_0x216a13(0x195)](_0xb44c2e[_0x216a13(0x1a4)]),_0x4bbfd8=(_0x44aabe=this['getActiveWorkbook']())==null?void 0x0:_0x44aabe[_0x216a13(0x188)]();if(!_0x4bbfd8)throw new Error(_0x216a13(0x1a9));const _0x1a8a3e=_0x1f8eff[_0x216a13(0x1a6)](_0x4bbfd8);return(_0x34bd1f=_0x1a8a3e==null?void 0x0:_0x1a8a3e[_0x216a13(0x184)]())!=null?_0x34bd1f:_0xb44c2e['LiveShareStatus'][_0x216a13(0x19e)];}[_0x330419(0x198)](){const _0x57b553=_0x330419;var _0x49c430;const _0x7c355e=this['_injector'][_0x57b553(0x195)](_0xb44c2e[_0x57b553(0x1a4)]),_0xed92a5=(_0x49c430=this[_0x57b553(0x18f)]())==null?void 0x0:_0x49c430[_0x57b553(0x188)]();if(!_0xed92a5)throw new Error(_0x57b553(0x1a9));const _0x4c5057=_0x7c355e[_0x57b553(0x1a6)](_0xed92a5);if(!_0x4c5057)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4c5057['startFollowing']();}[_0x330419(0x183)](){const _0x2dd3a3=_0x330419;var _0x2b9e6b;const _0x2c1221=this[_0x2dd3a3(0x1b5)][_0x2dd3a3(0x195)](_0xb44c2e[_0x2dd3a3(0x1a4)]),_0x460c15=(_0x2b9e6b=this[_0x2dd3a3(0x18f)]())==null?void 0x0:_0x2b9e6b['getId']();if(!_0x460c15)throw new Error(_0x2dd3a3(0x1a9));const _0x291a5d=_0x2c1221[_0x2dd3a3(0x1a6)](_0x460c15);if(!_0x291a5d)throw new Error(_0x2dd3a3(0x1a0));_0x291a5d[_0x2dd3a3(0x183)]();}[_0x330419(0x1a2)](){const _0x37fcc9=_0x330419;var _0x35666d;const _0x1a51e5=this[_0x37fcc9(0x1b5)]['get'](_0xb44c2e[_0x37fcc9(0x1a4)]),_0x1937ea=(_0x35666d=this[_0x37fcc9(0x18f)]())==null?void 0x0:_0x35666d['getId']();if(!_0x1937ea)throw new Error(_0x37fcc9(0x1a9));const _0x2a4d26=_0x1a51e5[_0x37fcc9(0x1a6)](_0x1937ea);if(!_0x2a4d26)throw new Error(_0x37fcc9(0x1a0));_0x2a4d26[_0x37fcc9(0x1b4)]();}[_0x330419(0x1a3)](){const _0x52219d=_0x330419;var _0x4737ab;const _0x3328f7=this[_0x52219d(0x1b5)][_0x52219d(0x195)](_0xb44c2e['LiveShareController']),_0x332fd2=(_0x4737ab=this['getActiveWorkbook']())==null?void 0x0:_0x4737ab['getId']();if(!_0x332fd2)throw new Error(_0x52219d(0x1a9));const _0x3d8de4=_0x3328f7[_0x52219d(0x1a6)](_0x332fd2);if(!_0x3d8de4)throw new Error(_0x52219d(0x1a0));_0x3d8de4['stopPresenting']();}}_0x36ba72[_0x330419(0x1ac)][_0x330419(0x192)](_0x3c3142);class _0x3990c3 extends _0x36ba72[_0x330419(0x1a8)]{get[_0x330419(0x1a7)](){const _0x23762e=_0x330419;return _0xb44c2e[_0x23762e(0x187)];}}_0x36ba72[_0x330419(0x1a8)][_0x330419(0x192)](_0x3990c3);}));function _0x542e(){const _0x322b26=['1154352RKyMgJ','369449yyCjTg','tryStartPresenting','_injector','startColumn','startRow','16439192mRmunL','@univerjs/sheets/facade','stopFollowing','getStatus','getRenderById','124278pTomgC','LiveShareStatus','getId','getLiveShareStatus','PRESENTING','UniverSheets','3734465SYxdib','@univerjs/sheets','4607589KUcAvm','getActiveWorkbook','getActiveSheet','@univerjs/core/facade','extend','2731360FQdvcD','UniverEngineRender','get','executeCommand','getSheetId','startFollowing','FRange','6dhFOOm','SetWorksheetActiveOperation','UniverSheetsUi','_commandService','IDLE','UniverCoreFacade','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','SetScrollOperation','startPresenting','stopPresenting','LiveShareController','function','getLiveShareCoordinatorSync','LiveShareStatusEnum','FEnum','No\x20active\x20workbook\x20found.','_initialize','IRenderManagerService','FUniver','amd','@univerjs/engine-render','syncExecuteCommand','object','getUnitId'];_0x542e=function(){return _0x322b26;};return _0x542e();}
1
+ function _0xc92a(){const _0x4eed83=['UniverCoreFacade','getStatus','LiveShareStatus','FEnum','_initialize','getId','getLiveShareCoordinatorSync','getRenderById','IDLE','getActiveSheet','PRESENTING','get','executeCommand','_commandService','296120puQvnJ','2763628luEEuk','42yRfPdH','getActiveWorkbook','object','1871040Iqpejc','syncExecuteCommand','amd','@univerjs/core/facade','UniverSheetsUi','getUnitId','UniverSheets','extend','3779100OCtrXp','startColumn','stopPresenting','455516nMzvWH','UniverProLiveShare','FRange','15833384cNpInY','UniverSheetsFacade','tryStartPresenting','startRow','LiveShareController','No\x20active\x20workbook\x20found.','IRenderManagerService','_injector','startFollowing','SetWorksheetActiveOperation','@univerjs/sheets/facade','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/sheets-ui','270408CruNQx'];_0xc92a=function(){return _0x4eed83;};return _0xc92a();}function _0x2554(_0x5d6a1f,_0x3e2793){_0x5d6a1f=_0x5d6a1f-0x15c;const _0xc92af1=_0xc92a();let _0x255486=_0xc92af1[_0x5d6a1f];return _0x255486;}(function(_0x6d8e1e,_0x239493){const _0x11345b=_0x2554,_0x54c1f4=_0x6d8e1e();while(!![]){try{const _0x208e9b=parseInt(_0x11345b(0x17d))/0x1+-parseInt(_0x11345b(0x15e))/0x2+-parseInt(_0x11345b(0x17f))/0x3*(-parseInt(_0x11345b(0x16e))/0x4)+parseInt(_0x11345b(0x18a))/0x5+parseInt(_0x11345b(0x182))/0x6+parseInt(_0x11345b(0x17e))/0x7+-parseInt(_0x11345b(0x161))/0x8;if(_0x208e9b===_0x239493)break;else _0x54c1f4['push'](_0x54c1f4['shift']());}catch(_0x382e71){_0x54c1f4['push'](_0x54c1f4['shift']());}}}(_0xc92a,0x799a1),function(_0x53deaf,_0x4e8839){const _0x35f6f8=_0x2554;typeof exports==_0x35f6f8(0x181)&&typeof module<'u'?_0x4e8839(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x35f6f8(0x184)]?define(['@univerjs-pro/live-share','@univerjs/engine-render','@univerjs/sheets',_0x35f6f8(0x16d),_0x35f6f8(0x16b),_0x35f6f8(0x185)],_0x4e8839):(_0x53deaf=typeof globalThis<'u'?globalThis:_0x53deaf||self,_0x4e8839(_0x53deaf[_0x35f6f8(0x15f)],_0x53deaf['UniverEngineRender'],_0x53deaf[_0x35f6f8(0x188)],_0x53deaf[_0x35f6f8(0x186)],_0x53deaf[_0x35f6f8(0x162)],_0x53deaf[_0x35f6f8(0x16f)]));}(this,function(_0x2495a7,_0x1a48d2,_0x47e1f1,_0x47468d,_0x877b41,_0x450051){'use strict';const _0x26823c=_0x2554;class _0x43e02d extends _0x877b41[_0x26823c(0x160)]{[_0x26823c(0x173)](_0x109f83,_0x3aff0d,_0x234404,_0x55c5dc,_0x18e49f){const _0x17c8dc=_0x26823c,_0x263905=_0x109f83[_0x17c8dc(0x17a)](_0x2495a7[_0x17c8dc(0x165)]),_0x48a72d=_0x109f83[_0x17c8dc(0x17a)](_0x1a48d2[_0x17c8dc(0x167)]),_0x265b6c=_0x3aff0d[_0x17c8dc(0x187)](),_0x29a9de=_0x3aff0d[_0x17c8dc(0x178)](),_0x544dc1=_0x263905[_0x17c8dc(0x175)](_0x265b6c);(_0x544dc1==null?void 0x0:_0x544dc1[_0x17c8dc(0x170)]())!==_0x2495a7[_0x17c8dc(0x171)][_0x17c8dc(0x179)]||(_0x234404['getSheetId']()!==_0x29a9de['getSheetId']()&&this[_0x17c8dc(0x17c)][_0x17c8dc(0x17b)](_0x47e1f1[_0x17c8dc(0x16a)]['id'],{'unitId':_0x265b6c,'subUnitId':_0x234404['getSheetId']()}),!_0x48a72d[_0x17c8dc(0x176)](_0x265b6c))||_0x18e49f[_0x17c8dc(0x183)](_0x47468d['SetScrollOperation']['id'],{'unitId':_0x3aff0d[_0x17c8dc(0x187)](),'sheetId':_0x234404['getSheetId'](),'sheetViewStartRow':_0x55c5dc[_0x17c8dc(0x164)],'sheetViewStartColumn':_0x55c5dc[_0x17c8dc(0x15c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x877b41['FRange']['extend'](_0x43e02d);class _0xe58e22 extends _0x450051['FUniver']{['getLiveShareStatus'](){const _0x496f32=_0x26823c;var _0x15730f,_0x9a1c55;const _0x3a730c=this[_0x496f32(0x168)][_0x496f32(0x17a)](_0x2495a7[_0x496f32(0x165)]),_0xc9e29b=(_0x15730f=this[_0x496f32(0x180)]())==null?void 0x0:_0x15730f[_0x496f32(0x174)]();if(!_0xc9e29b)throw new Error(_0x496f32(0x166));const _0x26ba42=_0x3a730c[_0x496f32(0x175)](_0xc9e29b);return(_0x9a1c55=_0x26ba42==null?void 0x0:_0x26ba42[_0x496f32(0x170)]())!=null?_0x9a1c55:_0x2495a7[_0x496f32(0x171)][_0x496f32(0x177)];}[_0x26823c(0x169)](){const _0x413ceb=_0x26823c;var _0x3360b8;const _0x4281e9=this[_0x413ceb(0x168)]['get'](_0x2495a7[_0x413ceb(0x165)]),_0x5cd369=(_0x3360b8=this[_0x413ceb(0x180)]())==null?void 0x0:_0x3360b8[_0x413ceb(0x174)]();if(!_0x5cd369)throw new Error('No\x20active\x20workbook\x20found.');const _0x3c154f=_0x4281e9[_0x413ceb(0x175)](_0x5cd369);if(!_0x3c154f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3c154f[_0x413ceb(0x169)]();}['stopFollowing'](){const _0x251e13=_0x26823c;var _0x8b50ec;const _0x2f78a8=this[_0x251e13(0x168)][_0x251e13(0x17a)](_0x2495a7['LiveShareController']),_0xe0ed2e=(_0x8b50ec=this['getActiveWorkbook']())==null?void 0x0:_0x8b50ec[_0x251e13(0x174)]();if(!_0xe0ed2e)throw new Error(_0x251e13(0x166));const _0xac30ed=_0x2f78a8[_0x251e13(0x175)](_0xe0ed2e);if(!_0xac30ed)throw new Error(_0x251e13(0x16c));_0xac30ed['stopFollowing']();}['startPresenting'](){const _0x3dc376=_0x26823c;var _0x4d9f6b;const _0x350369=this['_injector'][_0x3dc376(0x17a)](_0x2495a7[_0x3dc376(0x165)]),_0x5c6fb0=(_0x4d9f6b=this[_0x3dc376(0x180)]())==null?void 0x0:_0x4d9f6b[_0x3dc376(0x174)]();if(!_0x5c6fb0)throw new Error(_0x3dc376(0x166));const _0x545421=_0x350369['getLiveShareCoordinatorSync'](_0x5c6fb0);if(!_0x545421)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x545421[_0x3dc376(0x163)]();}['stopPresenting'](){const _0x2619d8=_0x26823c;var _0x2e1937;const _0x569481=this[_0x2619d8(0x168)][_0x2619d8(0x17a)](_0x2495a7['LiveShareController']),_0x1c9c09=(_0x2e1937=this[_0x2619d8(0x180)]())==null?void 0x0:_0x2e1937[_0x2619d8(0x174)]();if(!_0x1c9c09)throw new Error(_0x2619d8(0x166));const _0x31b080=_0x569481[_0x2619d8(0x175)](_0x1c9c09);if(!_0x31b080)throw new Error(_0x2619d8(0x16c));_0x31b080[_0x2619d8(0x15d)]();}}_0x450051['FUniver']['extend'](_0xe58e22);class _0xe02a8d extends _0x450051[_0x26823c(0x172)]{get['LiveShareStatusEnum'](){return _0x2495a7['LiveShareStatus'];}}_0x450051['FEnum'][_0x26823c(0x189)](_0xe02a8d);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xa5b8ee,_0x333a2a){const _0x4c9a0a=_0x3f98,_0x5c9227=_0xa5b8ee();while(!![]){try{const _0x54d220=-parseInt(_0x4c9a0a(0x117))/0x1*(parseInt(_0x4c9a0a(0xa1))/0x2)+-parseInt(_0x4c9a0a(0x15d))/0x3+parseInt(_0x4c9a0a(0xc3))/0x4*(-parseInt(_0x4c9a0a(0x9f))/0x5)+-parseInt(_0x4c9a0a(0xb7))/0x6+parseInt(_0x4c9a0a(0xc7))/0x7*(-parseInt(_0x4c9a0a(0x12b))/0x8)+parseInt(_0x4c9a0a(0x138))/0x9*(parseInt(_0x4c9a0a(0x125))/0xa)+parseInt(_0x4c9a0a(0x93))/0xb;if(_0x54d220===_0x333a2a)break;else _0x5c9227['push'](_0x5c9227['shift']());}catch(_0x15a4ee){_0x5c9227['push'](_0x5c9227['shift']());}}}(_0x5dc3,0x43c5e),function(_0x10ccba,_0x31d493){const _0x43628a=_0x3f98;typeof exports=='object'&&typeof module<'u'?_0x31d493(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x43628a(0x157)&&define[_0x43628a(0xe5)]?define(['exports','@univerjs/core',_0x43628a(0xd7),_0x43628a(0x153),_0x43628a(0x136),_0x43628a(0x12c),'@univerjs-pro/collaboration',_0x43628a(0xe7),'@univerjs/sheets','rxjs',_0x43628a(0xde),_0x43628a(0xb9)],_0x31d493):(_0x10ccba=typeof globalThis<'u'?globalThis:_0x10ccba||self,_0x31d493(_0x10ccba[_0x43628a(0x13a)]={},_0x10ccba[_0x43628a(0x102)],_0x10ccba['UniverUi'],_0x10ccba['React'],_0x10ccba[_0x43628a(0x146)],_0x10ccba[_0x43628a(0x148)],_0x10ccba['UniverProCollaboration'],_0x10ccba[_0x43628a(0x156)],_0x10ccba['UniverSheets'],_0x10ccba[_0x43628a(0x115)],_0x10ccba[_0x43628a(0x115)][_0x43628a(0xbf)],_0x10ccba[_0x43628a(0xf2)]));}(this,function(_0x784c83,_0x21d2bc,_0x2cd6f3,_0xa8e110,_0x8fc2ee,_0x4ab7b3,_0x5b59d7,_0x2a3a18,_0x1bab7d,_0x4144a4,_0x35ee97,_0xdc1aaa){'use strict';const _0x3a813a=_0x3f98;var _0x38fb5c=Object[_0x3a813a(0x143)],_0x3544c2=(_0x3b1a97,_0x408139,_0x4b796e)=>_0x408139 in _0x3b1a97?_0x38fb5c(_0x3b1a97,_0x408139,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b796e}):_0x3b1a97[_0x408139]=_0x4b796e,_0x2f63d4=(_0x26ed2c,_0x2949f,_0x4e393b)=>_0x3544c2(_0x26ed2c,typeof _0x2949f!=_0x3a813a(0x137)?_0x2949f+'':_0x2949f,_0x4e393b);function _0x1085bb({ref:_0x3c4c24,..._0x23c112}){const _0x33086b=_0x3a813a,{icon:_0x556ebe,id:_0x347a52,className:_0x53b64f,extend:_0x13c651,..._0x265409}=_0x23c112,_0x486681=('univerjs-icon\x20univerjs-icon-'+_0x347a52+'\x20'+(_0x53b64f||''))['trim'](),_0x24e542=_0x4ab7b3[_0x33086b(0xf9)]('_'+_0x531a0f());return _0x40c634(_0x556ebe,''+_0x347a52,{'defIds':_0x556ebe['defIds'],'idSuffix':_0x24e542[_0x33086b(0x108)]},{'ref':_0x3c4c24,'className':_0x486681,..._0x265409},_0x13c651);}function _0x40c634(_0x4c42a8,_0x1c61e3,_0x1cc5bb,_0x162141,_0x49a0d7){const _0x169fd2=_0x3a813a;return _0x4ab7b3[_0x169fd2(0xa7)](_0x4c42a8['tag'],{'key':_0x1c61e3,..._0x3a6f18(_0x4c42a8,_0x1cc5bb,_0x49a0d7),..._0x162141},(_0x4f8ea5(_0x4c42a8,_0x1cc5bb)[_0x169fd2(0xa3)]||[])[_0x169fd2(0x128)]((_0x3c58fe,_0x15c18e)=>_0x40c634(_0x3c58fe,_0x1c61e3+'-'+_0x4c42a8['tag']+'-'+_0x15c18e,_0x1cc5bb,void 0x0,_0x49a0d7)));}function _0x3a6f18(_0x5078bb,_0x43c983,_0x72e5a7){const _0x483bff=_0x3a813a,_0x32c11a={..._0x5078bb[_0x483bff(0xf7)]};_0x72e5a7!=null&&_0x72e5a7[_0x483bff(0x144)]&&_0x32c11a[_0x483bff(0x11c)]===_0x483bff(0x144)&&(_0x32c11a[_0x483bff(0x11c)]=_0x72e5a7[_0x483bff(0x144)]),_0x5078bb['tag']==='mask'&&_0x32c11a['id']&&(_0x32c11a['id']=_0x32c11a['id']+_0x43c983[_0x483bff(0xe3)]),Object['entries'](_0x32c11a)['forEach'](([_0x32f091,_0x34acaf])=>{const _0x6efe66=_0x483bff;_0x32f091===_0x6efe66(0x12e)&&typeof _0x34acaf==_0x6efe66(0x133)&&(_0x32c11a[_0x32f091]=_0x34acaf[_0x6efe66(0xab)](/url\(#(.*)\)/,'url(#$1'+_0x43c983['idSuffix']+')'));});const {defIds:_0xa4033a}=_0x43c983;return!_0xa4033a||_0xa4033a[_0x483bff(0xeb)]===0x0||(_0x5078bb['tag']===_0x483bff(0xcc)&&_0x32c11a[_0x483bff(0xd6)]&&(_0x32c11a[_0x483bff(0xd6)]=_0x32c11a['xlink:href']+_0x43c983['idSuffix']),Object['entries'](_0x32c11a)[_0x483bff(0x12d)](([_0x28fcc4,_0x1e8151])=>{const _0x4c3205=_0x483bff;typeof _0x1e8151==_0x4c3205(0x133)&&(_0x32c11a[_0x28fcc4]=_0x1e8151['replace'](/url\(#(.*)\)/,_0x4c3205(0x10b)+_0x43c983[_0x4c3205(0xe3)]+')'));})),_0x32c11a;}function _0x4f8ea5(_0x1868a9,_0x54f368){const _0x2757fa=_0x3a813a;var _0x2b99af;const {defIds:_0x50b443}=_0x54f368;return!_0x50b443||_0x50b443[_0x2757fa(0xeb)]===0x0?_0x1868a9:_0x1868a9[_0x2757fa(0x164)]===_0x2757fa(0xf5)&&((_0x2b99af=_0x1868a9[_0x2757fa(0xa3)])!=null&&_0x2b99af[_0x2757fa(0xeb)])?{..._0x1868a9,'children':_0x1868a9['children'][_0x2757fa(0x128)](_0x3476f3=>typeof _0x3476f3[_0x2757fa(0xf7)]['id']==_0x2757fa(0x133)&&_0x50b443&&_0x50b443[_0x2757fa(0xa6)](_0x3476f3[_0x2757fa(0xf7)]['id'])?{..._0x3476f3,'attrs':{..._0x3476f3[_0x2757fa(0xf7)],'id':_0x3476f3['attrs']['id']+_0x54f368['idSuffix']}}:_0x3476f3)}:_0x1868a9;}function _0x531a0f(){const _0x54e2c8=_0x3a813a;return Math['random']()[_0x54e2c8(0xb2)](0x24)[_0x54e2c8(0xd8)](0x2,0x8);}_0x1085bb[_0x3a813a(0xf3)]=_0x3a813a(0x132);const _0x71a2e5={'tag':_0x3a813a(0x13d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3a813a(0xbb),'viewBox':_0x3a813a(0x119),'width':'1em','height':_0x3a813a(0x147)},'children':[{'tag':_0x3a813a(0xcd),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3a813a(0xcd),'attrs':{'fill':_0x3a813a(0xa0),'d':_0x3a813a(0xa9),'fillRule':_0x3a813a(0x9b),'clipRule':_0x3a813a(0x9b)}}]},_0x565bb0=_0x4ab7b3[_0x3a813a(0x161)](function(_0xf98063,_0x53b0d4){const _0xe2c32a=_0x3a813a;return _0x4ab7b3[_0xe2c32a(0xa7)](_0x1085bb,Object['assign']({},_0xf98063,{'id':_0xe2c32a(0xc9),'ref':_0x53b0d4,'icon':_0x71a2e5}));});_0x565bb0[_0x3a813a(0xf3)]='LiveShareIcon';class _0x1319ac extends _0x21d2bc['Disposable']{constructor(){const _0x317b1d=_0x3a813a;super(...arguments),_0x2f63d4(this,'_sharedOperations',new Set()),_0x2f63d4(this,_0x317b1d(0xb0),new Set());}[_0x3a813a(0x14c)](_0x42b74f){const _0x2430e7=_0x3a813a;return this[_0x2430e7(0x124)][_0x2430e7(0xfe)](_0x42b74f),_0x21d2bc['toDisposable'](()=>this[_0x2430e7(0x124)][_0x2430e7(0x139)](_0x42b74f));}['registerInitialStateReporter'](_0x29f5df){const _0x55f895=_0x3a813a;return this['_reporters']['add'](_0x29f5df),_0x21d2bc[_0x55f895(0x154)](()=>this[_0x55f895(0xb0)][_0x55f895(0x139)](_0x29f5df));}[_0x3a813a(0x145)](_0x5a8083){const _0x1b6480=_0x3a813a;return this[_0x1b6480(0x124)][_0x1b6480(0x131)](_0x5a8083);}['getInitialStates'](_0x514e43){const _0x2209dc=_0x3a813a;return Array[_0x2209dc(0xe1)](this[_0x2209dc(0xb0)])['map'](_0x229a10=>_0x229a10(_0x514e43));}}var _0x5200b6=Object[_0x3a813a(0x13b)],_0x9b581b=(_0x59a0e4,_0x461502,_0x4aa74c,_0x38dfab)=>{const _0x27d238=_0x3a813a;for(var _0x17077e=_0x38dfab>0x1?void 0x0:_0x38dfab?_0x5200b6(_0x461502,_0x4aa74c):_0x461502,_0x56afaa=_0x59a0e4[_0x27d238(0xeb)]-0x1,_0x57fad6;_0x56afaa>=0x0;_0x56afaa--)(_0x57fad6=_0x59a0e4[_0x56afaa])&&(_0x17077e=_0x57fad6(_0x17077e)||_0x17077e);return _0x17077e;},_0x2c1587=(_0x77e526,_0x48f166)=>(_0x3aa77e,_0x31e112)=>_0x48f166(_0x3aa77e,_0x31e112,_0x77e526);_0x784c83['LiveShareController']=class extends _0x21d2bc[_0x3a813a(0x13c)]{constructor(_0x2b82b4,_0x8c2258,_0xfe4586){const _0x503492=_0x3a813a;super(),_0x2f63d4(this,'_entities',new Map()),(this[_0x503492(0xc4)]=_0x2b82b4,this[_0x503492(0x97)]=_0x8c2258,this[_0x503492(0xae)]=_0xfe4586,this[_0x503492(0x104)]());}async[_0x3a813a(0xa4)](_0x24e5bd){const _0x5bb719=_0x3a813a;return this[_0x5bb719(0xff)][_0x5bb719(0x131)](_0x24e5bd)||await this[_0x5bb719(0xf1)](_0x24e5bd),this['_entities']['get'](_0x24e5bd);}[_0x3a813a(0x92)](_0x5799db){const _0x3cca86=_0x3a813a;var _0x45204c;return(_0x45204c=this[_0x3cca86(0xff)]['get'](_0x5799db))!=null?_0x45204c:null;}[_0x3a813a(0x104)](){const _0x1b578c=_0x3a813a;this[_0x1b578c(0xc4)][_0x1b578c(0x10d)](_0x21d2bc[_0x1b578c(0xb4)][_0x1b578c(0x8c)])[_0x1b578c(0x166)](_0x35ee97['takeUntil'](this[_0x1b578c(0xbd)]))[_0x1b578c(0xda)](async _0x2d0b9c=>{const _0x2a4291=_0x1b578c,_0x13e5c9=_0x2d0b9c[_0x2a4291(0x142)]();this[_0x2a4291(0xff)][_0x2a4291(0x131)](_0x13e5c9)||this[_0x2a4291(0xf1)](_0x13e5c9);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x21d2bc['UniverInstanceType'][_0x1b578c(0x8c)])[_0x1b578c(0x166)](_0x35ee97[_0x1b578c(0x129)](this['dispose$']))['subscribe'](_0x298138=>{const _0x4fc2c5=_0x1b578c,_0x25e497=_0x298138['getUnitId'](),_0x357455=this[_0x4fc2c5(0xff)]['get'](_0x25e497);_0x357455==null||_0x357455[_0x4fc2c5(0xb6)]();});}async[_0x3a813a(0xf1)](_0x1a9808){const _0x532fc4=_0x3a813a,_0x3bbd08=await this[_0x532fc4(0xae)]['requireSession'](_0x1a9808),_0xa767f=this[_0x532fc4(0x97)][_0x532fc4(0x8f)](_0x784c83[_0x532fc4(0x140)],_0x1a9808,_0x3bbd08);return _0xa767f[_0x532fc4(0x159)](),this['_entities']['set'](_0x1a9808,_0xa767f),_0xa767f;}},_0x784c83['LiveShareController']=_0x9b581b([_0x2c1587(0x0,_0x21d2bc[_0x3a813a(0x152)]),_0x2c1587(0x1,_0x21d2bc[_0x3a813a(0x15e)](_0x21d2bc[_0x3a813a(0x14e)])),_0x2c1587(0x2,_0x21d2bc['Inject'](_0x2a3a18['CollaborationSessionService']))],_0x784c83['LiveShareController']);var _0x59ab26=(_0xd86f6b=>(_0xd86f6b['OFFLINE']='offline',_0xd86f6b[_0x3a813a(0x10c)]=_0x3a813a(0xef),_0xd86f6b[_0x3a813a(0x116)]='following',_0xd86f6b[_0x3a813a(0xdc)]=_0x3a813a(0xa8),_0xd86f6b[_0x3a813a(0x103)]='presenting',_0xd86f6b))(_0x59ab26||{});const _0x3bbd30=_0x3a813a(0x11b),_0x4f3e88=0xc8;_0x784c83['LiveShareCoordinator']=class extends _0x21d2bc[_0x3a813a(0x13c)]{constructor(_0x254dab,_0x2fc749,_0x46e980,_0xe71d57,_0x46a421){const _0xf75069=_0x3a813a;super(),_0x2f63d4(this,_0xf75069(0x10f),new _0x4144a4[(_0xf75069(0x151))]('idle')),_0x2f63d4(this,'status$',this['_status$'][_0xf75069(0x135)]()),_0x2f63d4(this,_0xf75069(0x104),!0x1),_0x2f63d4(this,_0xf75069(0x91),null),_0x2f63d4(this,_0xf75069(0xa2),null),(this[_0xf75069(0xb5)]=_0x254dab,this['_collabSession']=_0x2fc749,this['_configService']=_0x46e980,this['_liveShareService']=_0xe71d57,this[_0xf75069(0xfb)]=_0x46a421);}get[_0x3a813a(0x14f)](){const _0x208f00=_0x3a813a;return this[_0x208f00(0x10f)][_0x208f00(0x13f)]();}[_0x3a813a(0xb6)](){const _0x2b4199=_0x3a813a;var _0x4cc979;(_0x4cc979=this['_commandDisposable'])==null||_0x4cc979[_0x2b4199(0xb6)](),this[_0x2b4199(0x10f)][_0x2b4199(0x109)](_0x2b4199(0xef)),this[_0x2b4199(0x10f)]['complete']();}['getStatus'](){const _0x5a4e87=_0x3a813a;return this[_0x5a4e87(0x14f)];}[_0x3a813a(0x159)](){const _0x42f537=_0x3a813a;this[_0x42f537(0x104)]||(this[_0x42f537(0x104)]=!0x0,this['_collabSession'][_0x42f537(0x113)][_0x42f537(0x166)](_0x35ee97[_0x42f537(0x129)](this['dispose$']))[_0x42f537(0xda)](_0x19157d=>{const _0x1f3a15=_0x42f537;switch(_0x19157d){case _0x2a3a18[_0x1f3a15(0x155)][_0x1f3a15(0x111)]:this['_handleOffline']();break;case _0x2a3a18['SessionStatus']['ONLINE']:this['_handleOnline']();break;}}),this[_0x42f537(0xc2)][_0x42f537(0xc1)][_0x42f537(0x166)](_0x35ee97[_0x42f537(0x129)](this['dispose$']))['subscribe'](_0x37cd16=>{const _0x5b7794=_0x42f537,{eventID:_0x5cb56f}=_0x37cd16;switch(_0x5cb56f){case _0x5b59d7['CollaborationEvent'][_0x5b7794(0xbc)]:this[_0x5b7794(0x149)](_0x37cd16);break;case _0x5b59d7['CollaborationEvent'][_0x5b7794(0xee)]:this[_0x5b7794(0x11e)](_0x37cd16);break;case _0x5b59d7['CollaborationEvent'][_0x5b7794(0xac)]:this[_0x5b7794(0x90)]();break;case _0x5b59d7[_0x5b7794(0xe8)][_0x5b7794(0x130)]:this[_0x5b7794(0x141)](_0x37cd16);break;}}));}[_0x3a813a(0xaf)](){const _0x2e9652=_0x3a813a;this['_collabSession'][_0x2e9652(0xad)]({'eventID':_0x5b59d7['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2e9652(0xb5)],'userID':this[_0x2e9652(0xc2)]['getMemberID']()}},this[_0x2e9652(0xb5)]);}[_0x3a813a(0x112)](){const _0x34df14=_0x3a813a;this[_0x34df14(0x14f)]===_0x34df14(0xb1)&&(this[_0x34df14(0x10f)][_0x34df14(0x109)]('idle'),this['_collabSession'][_0x34df14(0xad)]({'eventID':_0x5b59d7[_0x34df14(0xe8)][_0x34df14(0xac)],'data':{'unitID':this[_0x34df14(0xb5)]}},this[_0x34df14(0xb5)]));}[_0x3a813a(0x110)](){const _0x21afed=_0x3a813a;this[_0x21afed(0x14f)]===_0x21afed(0xa8)&&(this[_0x21afed(0x10f)][_0x21afed(0x109)]('following'),this[_0x21afed(0xec)]());}[_0x3a813a(0xdb)](){const _0x4a134e=_0x3a813a;this[_0x4a134e(0x14f)]===_0x4a134e(0x15f)&&this['_stopFollowing']();}[_0x3a813a(0x149)](_0x45a29a){const _0x3045ed=_0x3a813a,{presenter:_0x18cf8b}=_0x45a29a['data'],_0x187fc5=this['_collabSession']['getMemberID']();this[_0x3045ed(0xa2)]=_0x18cf8b,_0x18cf8b===_0x187fc5?(this[_0x3045ed(0x9c)](),this['_startPresenting']()):this['_status']!==_0x3045ed(0xa8)&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){const _0x4f27fb=_0x3a813a,_0x3624da={'eventID':_0x5b59d7['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x4f27fb(0xad)](_0x3624da,this[_0x4f27fb(0xb5)]);}[_0x3a813a(0x90)](){const _0x32ab0d=_0x3a813a;this['_presenter']=null,this[_0x32ab0d(0x14f)]!=='presenting'&&this[_0x32ab0d(0x11f)]();}[_0x3a813a(0x141)](_0x750d1){const _0x13174e=_0x3a813a;if(this[_0x13174e(0x14f)]===_0x13174e(0x15f)&&this[_0x13174e(0xa2)]===_0x750d1[_0x13174e(0xd4)][_0x13174e(0xca)]){const _0x18705c=_0x5b59d7[_0x13174e(0xe4)](_0x750d1[_0x13174e(0xd4)])[_0x13174e(0xb8)][_0x13174e(0xaa)]()[_0x13174e(0x123)](_0x311b06=>_0x311b06['id']===_0x1bab7d[_0x13174e(0xfa)]['id']);if(_0x18705c){const _0xf06c83=_0x18705c[_0x13174e(0x15c)][_0x13174e(0x14d)],_0x497781=_0x18705c[_0x13174e(0x15c)][_0x13174e(0x94)]['id'];setTimeout(()=>{const _0x3ce911=_0x13174e;this[_0x3ce911(0xfb)][_0x3ce911(0xf8)](_0x1bab7d[_0x3ce911(0xf6)]['id'],{'unitId':_0xf06c83,'subUnitId':_0x497781},{'fromCollab':!0x0});});}}}[_0x3a813a(0x13e)](){const _0x5ce6e3=_0x3a813a;this[_0x5ce6e3(0x10f)]['next'](_0x5ce6e3(0xb1));const _0xbc68d6=new Map(),_0x2ad355=this[_0x5ce6e3(0x91)]=new _0x21d2bc[(_0x5ce6e3(0xd1))]();_0x2ad355[_0x5ce6e3(0xfe)](_0x21d2bc['toDisposable'](()=>{const _0x455275=_0x5ce6e3;_0xbc68d6['forEach'](_0x220efb=>_0x220efb[_0x455275(0x10a)]()),_0xbc68d6[_0x455275(0x105)]();})),_0x2ad355[_0x5ce6e3(0xfe)](this['_commandService'][_0x5ce6e3(0x100)](_0x5a7e7f=>{const _0x2ea09f=_0x5ce6e3;var _0x40085e;if(_0x5a7e7f[_0x2ea09f(0x121)]!==_0x21d2bc[_0x2ea09f(0x114)]['OPERATION']||!this[_0x2ea09f(0xa5)][_0x2ea09f(0x145)](_0x5a7e7f['id']))return;const {id:_0x4c1df7}=_0x5a7e7f;let _0x5c9ce1;_0xbc68d6[_0x2ea09f(0x131)](_0x4c1df7)?_0x5c9ce1=_0xbc68d6[_0x2ea09f(0xba)](_0x4c1df7):(_0x5c9ce1=new _0x4144a4['Subject'](),_0xbc68d6['set'](_0x4c1df7,_0x5c9ce1),_0x5c9ce1[_0x2ea09f(0x166)](_0x35ee97[_0x2ea09f(0xea)]((_0x40085e=this[_0x2ea09f(0xed)][_0x2ea09f(0x122)](_0x3bbd30))!=null?_0x40085e:_0x4f3e88,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ea09f(0xda)](_0x21d11d=>{const _0x3adb65=_0x2ea09f;this[_0x3adb65(0xc2)][_0x3adb65(0xad)]({'eventID':_0x5b59d7['CollaborationEvent'][_0x3adb65(0xee)],'data':{'unitID':this[_0x3adb65(0xb5)],'operations':{[_0x21d11d['id']]:{'id':_0x21d11d['id'],'params':JSON[_0x3adb65(0x101)](_0x21d11d['params'])}}}},this['_unitID']);})),_0x5c9ce1[_0x2ea09f(0x109)](_0x5a7e7f);})),this[_0x5ce6e3(0xa5)][_0x5ce6e3(0x165)](this[_0x5ce6e3(0xb5)])[_0x5ce6e3(0x12d)](_0x378b0d=>this[_0x5ce6e3(0xc2)][_0x5ce6e3(0xad)]({'eventID':_0x5b59d7[_0x5ce6e3(0xe8)][_0x5ce6e3(0xee)],'data':{'unitID':this[_0x5ce6e3(0xb5)],'operations':{[_0x378b0d['id']]:{'id':_0x378b0d['id'],'params':JSON['stringify'](_0x378b0d['params'])}}}},this[_0x5ce6e3(0xb5)]));}[_0x3a813a(0x95)](){const _0x22c3ee=_0x3a813a;var _0x66e144;this[_0x22c3ee(0x10f)][_0x22c3ee(0x109)](_0x22c3ee(0xef)),(_0x66e144=this['_commandDisposable'])==null||_0x66e144[_0x22c3ee(0xb6)](),this[_0x22c3ee(0x91)]=null;}[_0x3a813a(0xec)](){const _0x547537=_0x3a813a;var _0x290f31;(_0x290f31=this[_0x547537(0x91)])==null||_0x290f31['dispose'](),this[_0x547537(0x10f)][_0x547537(0x109)]('following');}[_0x3a813a(0x11f)](){const _0x1f2e52=_0x3a813a;var _0x1d1868;this['_status$'][_0x1f2e52(0x109)](_0x1f2e52(0xef)),(_0x1d1868=this[_0x1f2e52(0x91)])==null||_0x1d1868['dispose'](),this[_0x1f2e52(0x91)]=null;}[_0x3a813a(0x9c)](){const _0x5ad521=_0x3a813a;var _0x37b252;this[_0x5ad521(0x10f)][_0x5ad521(0x109)](_0x5ad521(0xa8)),(_0x37b252=this['_commandDisposable'])==null||_0x37b252['dispose']();}[_0x3a813a(0x11e)](_0x21b31b){const _0x299e49=_0x3a813a;if([_0x299e49(0xb1),_0x299e49(0xa8),'offline'][_0x299e49(0xa6)](this[_0x299e49(0x14f)])||!_0x21b31b[_0x299e49(0xd4)][_0x299e49(0xd9)]||_0x21b31b[_0x299e49(0xd4)][_0x299e49(0xd9)]===this[_0x299e49(0xc2)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x24718f=_0x21b31b[_0x299e49(0xd4)]['operations'];Object['values'](_0x24718f)[_0x299e49(0x12d)](_0x504df3=>{const _0x2dba4e=_0x299e49;this['_commandService'][_0x2dba4e(0xf8)](_0x504df3['id'],_0x504df3[_0x2dba4e(0x15c)]?JSON[_0x2dba4e(0x10e)](_0x504df3[_0x2dba4e(0x15c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x54e9bd=_0x3a813a;var _0x62fa5f;this[_0x54e9bd(0x10f)][_0x54e9bd(0x109)](_0x54e9bd(0x126)),(_0x62fa5f=this[_0x54e9bd(0x91)])==null||_0x62fa5f['dispose']();}[_0x3a813a(0xce)](){const _0x14f638=_0x3a813a;this[_0x14f638(0x10f)][_0x14f638(0x109)](_0x14f638(0xef)),this['_fetchOperations']();}},_0x784c83[_0x3a813a(0x140)]=_0x9b581b([_0x2c1587(0x2,_0x21d2bc[_0x3a813a(0x163)]),_0x2c1587(0x3,_0x21d2bc[_0x3a813a(0x15e)](_0x1319ac)),_0x2c1587(0x4,_0x21d2bc[_0x3a813a(0xfd)])],_0x784c83['LiveShareCoordinator']);function _0x49ae53(){const _0x49905c=_0x3a813a,_0x1975a4=_0x2cd6f3['useDependency'](_0x784c83[_0x49905c(0xc6)]),_0x26d86a=_0x2cd6f3[_0x49905c(0xe6)](_0x21d2bc[_0x49905c(0x152)]),_0x355ce8=_0x2cd6f3[_0x49905c(0x98)](()=>_0x26d86a[_0x49905c(0x9d)](_0x21d2bc[_0x49905c(0xb4)][_0x49905c(0x8c)]),void 0x0,!0x1,[]),[_0x1a161a,_0x30057f]=_0x4ab7b3[_0x49905c(0xf4)](null),[_0x2a4232,_0xf43d4b]=_0x4ab7b3['useState'](_0x59ab26['IDLE']),_0x3c7198=_0x4ab7b3[_0x49905c(0xf9)](null);return _0x4ab7b3['useEffect'](()=>(_0x355ce8&&_0x1975a4[_0x49905c(0xa4)](_0x355ce8[_0x49905c(0x142)]())[_0x49905c(0x8e)](_0x1c1507=>{const _0x51d04d=_0x49905c;_0x30057f(_0x1c1507),_0x3c7198['current']=_0x1c1507[_0x51d04d(0x11d)][_0x51d04d(0xda)](_0x1d614a=>{_0xf43d4b(_0x1d614a);});}),()=>{const _0x33b390=_0x49905c;var _0x420d1f;(_0x420d1f=_0x3c7198[_0x33b390(0x108)])==null||_0x420d1f[_0x33b390(0x14b)](),_0x3c7198[_0x33b390(0x108)]=null;}),[_0x355ce8,_0x1975a4]),_0x1a161a?_0xa8e110[_0x49905c(0xbe)](_0x8fc2ee[_0x49905c(0xd0)],{'align':'end','disabled':_0x2a4232===_0x59ab26['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0xa8e110[_0x49905c(0xbe)](_0x3391b4,{'status':_0x2a4232,'coordinator':_0x1a161a}),'children':_0xa8e110[_0x49905c(0xbe)]('button',{'className':_0x8fc2ee['clsx'](_0x49905c(0xc0),{'univer-cursor-not-allowed':_0x2a4232===_0x59ab26['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2a4232!==_0x59ab26[_0x49905c(0x111)]}),'type':_0x49905c(0xd5),'children':_0xa8e110[_0x49905c(0xbe)](_0x565bb0,{'className':_0x49905c(0x162)})})}):null;}function _0x3391b4(_0xa7824d){const _0x39b6c9=_0x3a813a,{status:_0x2d0ce1,coordinator:_0x16e588}=_0xa7824d;switch(_0x2d0ce1){case _0x59ab26[_0x39b6c9(0x10c)]:return _0xa8e110['jsx'](_0x56352f,{'coordinator':_0x16e588});case _0x59ab26[_0x39b6c9(0x116)]:return _0xa8e110[_0x39b6c9(0xbe)](_0x52a640,{'coordinator':_0x16e588});case _0x59ab26['NOT_FOLLOWING']:return _0xa8e110[_0x39b6c9(0xbe)](_0x5ab4c4,{'coordinator':_0x16e588});case _0x59ab26[_0x39b6c9(0x111)]:return _0xa8e110[_0x39b6c9(0xbe)](_0x30662d,{});case _0x59ab26[_0x39b6c9(0x103)]:return _0xa8e110[_0x39b6c9(0xbe)](_0x49e673,{'coordinator':_0x16e588});default:return null;}}function _0x56352f(_0x1963af){const _0x2c35fd=_0x3a813a,{coordinator:_0x478e4b}=_0x1963af;return _0xa8e110[_0x2c35fd(0xb3)](_0xa8e110[_0x2c35fd(0xd3)],{'children':[_0xa8e110['jsx'](_0x2c35fd(0xe9),{'className':_0x2c35fd(0x8d),'children':'Present\x20this\x20document'}),_0xa8e110[_0x2c35fd(0xbe)](_0x8fc2ee[_0x2c35fd(0x9a)],{'onClick':()=>_0x478e4b[_0x2c35fd(0xaf)](),'children':'Start'})]});}function _0x52a640(_0x5d57f5){const _0x184355=_0x3a813a,{coordinator:_0x4e61f1}=_0x5d57f5;return _0xa8e110[_0x184355(0xb3)](_0xa8e110[_0x184355(0xd3)],{'children':[_0xa8e110[_0x184355(0xbe)](_0x184355(0xe9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x184355(0x107)}),_0xa8e110[_0x184355(0xbe)](_0x8fc2ee['Button'],{'onClick':()=>_0x4e61f1[_0x184355(0xdb)](),'children':_0x184355(0xf0)})]});}function _0x5ab4c4(_0x51fe66){const _0x2614fb=_0x3a813a,{coordinator:_0x4a8667}=_0x51fe66;return _0xa8e110[_0x2614fb(0xb3)](_0xa8e110[_0x2614fb(0xd3)],{'children':[_0xa8e110['jsx'](_0x2614fb(0xe9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2614fb(0x99)}),_0xa8e110[_0x2614fb(0xbe)](_0x8fc2ee[_0x2614fb(0x9a)],{'variant':'text','onClick':()=>_0x4a8667['startFollowing'](),'children':'Start\x20following'})]});}function _0x49e673(_0x5a4cd6){const _0x92c3c=_0x3a813a,{coordinator:_0x3a061d}=_0x5a4cd6;return _0xa8e110[_0x92c3c(0xb3)](_0xa8e110[_0x92c3c(0xd3)],{'children':[_0xa8e110[_0x92c3c(0xbe)]('div',{'className':_0x92c3c(0x8d),'children':_0x92c3c(0xe2)}),_0xa8e110[_0x92c3c(0xbe)](_0x8fc2ee[_0x92c3c(0x9a)],{'variant':'default','onClick':()=>_0x3a061d[_0x92c3c(0x112)](),'children':'Stop\x20presenting'})]});}function _0x30662d(){const _0x5428a4=_0x3a813a;return _0xa8e110['jsx'](_0xa8e110[_0x5428a4(0xd3)],{'children':_0x5428a4(0x120)});}var _0x85a86a=Object[_0x3a813a(0x13b)],_0x242867=(_0x8e16ef,_0x22852e,_0x30d44c,_0x2814f0)=>{const _0x536117=_0x3a813a;for(var _0x23c456=_0x2814f0>0x1?void 0x0:_0x2814f0?_0x85a86a(_0x22852e,_0x30d44c):_0x22852e,_0x231dfd=_0x8e16ef[_0x536117(0xeb)]-0x1,_0x338dd9;_0x231dfd>=0x0;_0x231dfd--)(_0x338dd9=_0x8e16ef[_0x231dfd])&&(_0x23c456=_0x338dd9(_0x23c456)||_0x23c456);return _0x23c456;},_0x5816ac=(_0xc71453,_0x1e6e3d)=>(_0x599f50,_0x3c426a)=>_0x1e6e3d(_0x599f50,_0x3c426a,_0xc71453);_0x784c83[_0x3a813a(0x106)]=class extends _0x21d2bc[_0x3a813a(0xdd)]{constructor(_0x4a7b75,_0x3f8d8e){const _0x4de378=_0x3a813a;super(),this[_0x4de378(0x97)]=_0x4a7b75,this[_0x4de378(0x12a)]=_0x3f8d8e,this[_0x4de378(0x158)]();}[_0x3a813a(0x158)](){const _0x5a4088=_0x3a813a;this[_0x5a4088(0xcf)](this[_0x5a4088(0x12a)][_0x5a4088(0x160)](_0x2cd6f3[_0x5a4088(0xdf)]['HEADER_MENU'],()=>_0x2cd6f3['connectInjector'](_0x49ae53,this[_0x5a4088(0x97)])));}},_0x784c83[_0x3a813a(0x106)]=_0x242867([_0x5816ac(0x0,_0x21d2bc['Inject'](_0x21d2bc[_0x3a813a(0x14e)])),_0x5816ac(0x1,_0x2cd6f3[_0x3a813a(0x14a)])],_0x784c83['DesktopLiveShareController']);const _0x573de5=_0x3a813a(0x9e),_0x5adef7={};var _0x32033b=Object[_0x3a813a(0x13b)],_0x4da43d=(_0x415f55,_0x29d518,_0x336777,_0x264067)=>{for(var _0x26ca1b=_0x264067>0x1?void 0x0:_0x264067?_0x32033b(_0x29d518,_0x336777):_0x29d518,_0x3ee1ac=_0x415f55['length']-0x1,_0x25cfa5;_0x3ee1ac>=0x0;_0x3ee1ac--)(_0x25cfa5=_0x415f55[_0x3ee1ac])&&(_0x26ca1b=_0x25cfa5(_0x26ca1b)||_0x26ca1b);return _0x26ca1b;},_0x22ee5e=(_0x3a2ae4,_0x2f1b49)=>(_0x109721,_0x5c7a86)=>_0x2f1b49(_0x109721,_0x5c7a86,_0x3a2ae4);let _0x2b9b05=class extends _0x21d2bc[_0x3a813a(0xdd)]{constructor(_0x151982){const _0x142f8c=_0x3a813a;super(),this[_0x142f8c(0xa5)]=_0x151982,this['_init']();}[_0x3a813a(0x104)](){const _0xdf4ee=_0x3a813a;[_0xdc1aaa['SetZoomRatioOperation']['id'],_0xdc1aaa[_0xdf4ee(0x11a)]['id'],_0x1bab7d[_0xdf4ee(0xf6)]['id']][_0xdf4ee(0x12d)](_0x268008=>{const _0x264c47=_0xdf4ee;this[_0x264c47(0xcf)](this[_0x264c47(0xa5)][_0x264c47(0x14c)](_0x268008));});}};_0x2b9b05=_0x4da43d([_0x22ee5e(0x0,_0x21d2bc[_0x3a813a(0x15e)](_0x1319ac))],_0x2b9b05);var _0x358bf5=Object[_0x3a813a(0x143)],_0x162cf7=Object[_0x3a813a(0x13b)],_0x1c12c8=(_0x434a46,_0x381aa7,_0xe5515b)=>_0x381aa7 in _0x434a46?_0x358bf5(_0x434a46,_0x381aa7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe5515b}):_0x434a46[_0x381aa7]=_0xe5515b,_0x3da07a=(_0x3dcb40,_0x128638,_0x4c01c1,_0x5eff48)=>{for(var _0x28c33b=_0x5eff48>0x1?void 0x0:_0x5eff48?_0x162cf7(_0x128638,_0x4c01c1):_0x128638,_0x2f5c9c=_0x3dcb40['length']-0x1,_0x3fda82;_0x2f5c9c>=0x0;_0x2f5c9c--)(_0x3fda82=_0x3dcb40[_0x2f5c9c])&&(_0x28c33b=_0x3fda82(_0x28c33b)||_0x28c33b);return _0x28c33b;},_0xdea672=(_0x5c1606,_0x4a66c5)=>(_0x48daa7,_0x196d7f)=>_0x4a66c5(_0x48daa7,_0x196d7f,_0x5c1606),_0x45f1b4=(_0x5c2427,_0x2599b1,_0x44045e)=>_0x1c12c8(_0x5c2427,typeof _0x2599b1!='symbol'?_0x2599b1+'':_0x2599b1,_0x44045e);const _0x3ba7e2=_0x3a813a(0xcb);_0x784c83[_0x3a813a(0x127)]=class extends _0x21d2bc[_0x3a813a(0xfc)]{constructor(_0x4e6e02=_0x5adef7,_0x4aa605,_0x3b6c53){const _0x1557fa=_0x3a813a;super(),this['_config']=_0x4e6e02,this[_0x1557fa(0x97)]=_0x4aa605,this[_0x1557fa(0xed)]=_0x3b6c53;const {..._0x10b974}=_0x21d2bc[_0x1557fa(0x15b)]({},_0x5adef7,this[_0x1557fa(0xe0)]);this[_0x1557fa(0xed)][_0x1557fa(0x150)](_0x573de5,_0x10b974);}['onStarting'](){const _0x2f14b7=_0x3a813a;_0x21d2bc['registerDependencies'](this['_injector'],_0x21d2bc['mergeOverrideWithDependencies']([[_0x1319ac],[_0x784c83[_0x2f14b7(0xc6)]],[_0x2b9b05],[_0x784c83['DesktopLiveShareController']]],this[_0x2f14b7(0xe0)][_0x2f14b7(0xc5)])),_0x21d2bc['touchDependencies'](this['_injector'],[[_0x2b9b05]]);}[_0x3a813a(0x96)](){const _0x575112=_0x3a813a;_0x21d2bc['touchDependencies'](this['_injector'],[[_0x784c83[_0x575112(0x106)]]]);}},_0x45f1b4(_0x784c83[_0x3a813a(0x127)],'type',_0x21d2bc['UniverInstanceType'][_0x3a813a(0xd2)]),_0x45f1b4(_0x784c83['UniverLiveSharePlugin'],'pluginName',_0x3ba7e2),_0x784c83[_0x3a813a(0x127)]=_0x3da07a([_0x21d2bc[_0x3a813a(0x15a)](_0x2a3a18['UniverCollaborationClientPlugin']),_0xdea672(0x1,_0x21d2bc[_0x3a813a(0x15e)](_0x21d2bc['Injector'])),_0xdea672(0x2,_0x21d2bc[_0x3a813a(0x163)])],_0x784c83[_0x3a813a(0x127)]),_0x784c83[_0x3a813a(0x12f)]=_0x49ae53,_0x784c83[_0x3a813a(0xc8)]=_0x1319ac,_0x784c83[_0x3a813a(0x118)]=_0x59ab26,Object[_0x3a813a(0x143)](_0x784c83,Symbol[_0x3a813a(0x134)],{'value':'Module'});}));function _0x3f98(_0x1c31f0,_0xc1c173){_0x1c31f0=_0x1c31f0-0x8c;const _0x5dc3f7=_0x5dc3();let _0x3f9818=_0x5dc3f7[_0x1c31f0];return _0x3f9818;}function _0x5dc3(){const _0x428e65=['createInstance','_handleTerminate','_commandDisposable','getLiveShareCoordinatorSync','19203184GHFkaj','sheet','_stopPresenting','onRendered','_injector','useObservable','You\x27re\x20not\x20following\x20the\x20presenter','Button','evenodd','_stopFollowing','getCurrentTypeOfUnit$','live-share.config','315rRgvVz','currentColor','32182bxDMyp','_presenter','children','getLiveShareCoordinator','_liveShareService','includes','createElement','not-following','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','reverse','replace','LIVESHARE_TERMINATE','send','_collabSessionService','tryStartPresenting','_reporters','presenting','toString','jsxs','UniverInstanceType','_unitID','dispose','2118912snlBCf','mutations','@univerjs/sheets-ui','get','none','LIVESHARE_NEW_HOST','dispose$','jsx','operators','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','event$','_collabSession','32624NatcuD','_univerInstanceService','override','LiveShareController','9254BTdUCh','LiveShareService','live-share-icon','memberID','UNIVER_LIVE_SHARE_PLUGIN','use','path','_handleOnline','disposeWithMe','Dropdown','DisposableCollection','UNIVER_UNKNOWN','Fragment','data','button','xlink:href','@univerjs/ui','substring','presenter','subscribe','stopFollowing','NOT_FOLLOWING','Disposable','rxjs/operators','BuiltInUIPart','_config','from','You\x27re\x20presenting\x20the\x20document','idSuffix','parseProtocolChangeset','amd','useDependency','@univerjs-pro/collaboration-client','CollaborationEvent','div','throttleTime','length','_startFollowing','_configService','LIVESHARE_OPERATION','idle','Stop\x20following','_startLiveShareCoordinator','UniverSheetsUi','displayName','useState','defs','SetWorksheetActiveOperation','attrs','executeCommand','useRef','InsertSheetMutation','_commandService','Plugin','ICommandService','add','_entities','onCommandExecuted','stringify','UniverCore','PRESENTING','_init','clear','DesktopLiveShareController','You\x27re\x20following\x20the\x20presenter','current','next','complete','url(#$1','IDLE','getTypeOfUnitAdded$','parse','_status$','startFollowing','OFFLINE','stopPresenting','sessionStatus$','CommandType','rxjs','FOLLOWING','27DJPLPG','LiveShareStatus','0\x200\x2017\x2017','SetScrollOperation','SAME_OPERATION_SHARE_INTERVAL','fill','status$','_handleOperation','_beIdle','You\x27are\x20offline.','type','getConfig','find','_sharedOperations','3090qQhsXd','offline','UniverLiveSharePlugin','map','takeUntil','_uiPartsService','104cVdeqp','react','forEach','mask','LiveShare','NEW_CHANGESETS','has','UniverIcon','string','toStringTag','asObservable','@univerjs/design','symbol','2988luEQPW','delete','UniverProLiveShare','getOwnPropertyDescriptor','RxDisposable','svg','_startPresenting','getValue','LiveShareCoordinator','_handleNewChangeSets','getUnitId','defineProperty','colorChannel1','shouldShareOperation','UniverDesign','1em','React','_handleNewHost','IUIPartsService','unsubscribe','registerSharedOperation','unitId','Injector','_status','setConfig','BehaviorSubject','IUniverInstanceService','react/jsx-runtime','toDisposable','SessionStatus','UniverProCollaborationClient','function','_mountLiveShare','init','DependentOn','merge','params','756333UdwPwG','Inject','following','registerComponent','forwardRef','univer-size-4','IConfigService','tag','getInitialStates','pipe','UNIVER_SHEET','univer-mb-3\x20univer-w-full\x20univer-text-sm','then'];_0x5dc3=function(){return _0x428e65;};return _0x5dc3();}
1
+ function _0x13a2(_0x2f5e06,_0xecaebb){_0x2f5e06=_0x2f5e06-0x1d3;const _0x593bf0=_0x593b();let _0x13a2d5=_0x593bf0[_0x2f5e06];return _0x13a2d5;}(function(_0x5cd13b,_0x5eefc0){const _0x38a70f=_0x13a2,_0x21ee61=_0x5cd13b();while(!![]){try{const _0x2f3c95=parseInt(_0x38a70f(0x28e))/0x1+parseInt(_0x38a70f(0x253))/0x2*(parseInt(_0x38a70f(0x250))/0x3)+-parseInt(_0x38a70f(0x258))/0x4*(-parseInt(_0x38a70f(0x24f))/0x5)+parseInt(_0x38a70f(0x23c))/0x6*(parseInt(_0x38a70f(0x26a))/0x7)+parseInt(_0x38a70f(0x211))/0x8+-parseInt(_0x38a70f(0x205))/0x9+-parseInt(_0x38a70f(0x2a1))/0xa*(parseInt(_0x38a70f(0x23b))/0xb);if(_0x2f3c95===_0x5eefc0)break;else _0x21ee61['push'](_0x21ee61['shift']());}catch(_0x2919d1){_0x21ee61['push'](_0x21ee61['shift']());}}}(_0x593b,0xf3dc5),function(_0x4d8847,_0x4b6ce1){const _0xb09b3c=_0x13a2;typeof exports==_0xb09b3c(0x20b)&&typeof module<'u'?_0x4b6ce1(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0xb09b3c(0x1d3)&&define[_0xb09b3c(0x2b4)]?define([_0xb09b3c(0x1f8),_0xb09b3c(0x28d),_0xb09b3c(0x286),'react/jsx-runtime',_0xb09b3c(0x230),'react',_0xb09b3c(0x21f),_0xb09b3c(0x25e),_0xb09b3c(0x23d),_0xb09b3c(0x22c),'rxjs/operators',_0xb09b3c(0x234)],_0x4b6ce1):(_0x4d8847=typeof globalThis<'u'?globalThis:_0x4d8847||self,_0x4b6ce1(_0x4d8847[_0xb09b3c(0x1fe)]={},_0x4d8847[_0xb09b3c(0x212)],_0x4d8847[_0xb09b3c(0x2b6)],_0x4d8847['React'],_0x4d8847['UniverDesign'],_0x4d8847[_0xb09b3c(0x29f)],_0x4d8847[_0xb09b3c(0x2ac)],_0x4d8847[_0xb09b3c(0x1e9)],_0x4d8847[_0xb09b3c(0x262)],_0x4d8847['rxjs'],_0x4d8847[_0xb09b3c(0x22c)][_0xb09b3c(0x264)],_0x4d8847['UniverSheetsUi']));}(this,function(_0x33b5a1,_0x5242d0,_0x8f5423,_0x5a0919,_0x105ed1,_0x10af90,_0x6323e2,_0x54c375,_0x5c53f2,_0x1d196e,_0x16dc5c,_0x16ca3d){'use strict';const _0x6f7a83=_0x13a2;var _0x19dd59=Object[_0x6f7a83(0x265)],_0x31a3f4=(_0x352a1b,_0x11d53c,_0x36e17c)=>_0x11d53c in _0x352a1b?_0x19dd59(_0x352a1b,_0x11d53c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36e17c}):_0x352a1b[_0x11d53c]=_0x36e17c,_0x5c7a2b=(_0x512369,_0x503b6c,_0x29f0d7)=>_0x31a3f4(_0x512369,typeof _0x503b6c!=_0x6f7a83(0x243)?_0x503b6c+'':_0x503b6c,_0x29f0d7);function _0x522fde({ref:_0x19fd63,..._0x593b8a}){const _0xedf77e=_0x6f7a83,{icon:_0xe50f85,id:_0x517c01,className:_0x3850b5,extend:_0x29e3d3,..._0x4d1395}=_0x593b8a,_0x47526b=(_0xedf77e(0x27c)+_0x517c01+'\x20'+(_0x3850b5||''))[_0xedf77e(0x25d)](),_0xc2e4ad=_0x10af90[_0xedf77e(0x281)]('_'+_0x12a1f0());return _0x211b16(_0xe50f85,''+_0x517c01,{'defIds':_0xe50f85[_0xedf77e(0x245)],'idSuffix':_0xc2e4ad[_0xedf77e(0x216)]},{'ref':_0x19fd63,'className':_0x47526b,..._0x4d1395},_0x29e3d3);}function _0x211b16(_0x2446ff,_0x4ac7fc,_0x3e9bc0,_0x2bd6e1,_0xbcc832){const _0x2bc152=_0x6f7a83;return _0x10af90[_0x2bc152(0x229)](_0x2446ff[_0x2bc152(0x207)],{'key':_0x4ac7fc,..._0x4831ec(_0x2446ff,_0x3e9bc0,_0xbcc832),..._0x2bd6e1},(_0x56515c(_0x2446ff,_0x3e9bc0)['children']||[])[_0x2bc152(0x2a0)]((_0x437ffc,_0x11bbec)=>_0x211b16(_0x437ffc,_0x4ac7fc+'-'+_0x2446ff[_0x2bc152(0x207)]+'-'+_0x11bbec,_0x3e9bc0,void 0x0,_0xbcc832)));}function _0x4831ec(_0x146b5f,_0x325fb2,_0x5602ff){const _0x5a56e8=_0x6f7a83,_0x2d8300={..._0x146b5f['attrs']};_0x5602ff!=null&&_0x5602ff[_0x5a56e8(0x21b)]&&_0x2d8300[_0x5a56e8(0x2c1)]===_0x5a56e8(0x21b)&&(_0x2d8300[_0x5a56e8(0x2c1)]=_0x5602ff[_0x5a56e8(0x21b)]),_0x146b5f[_0x5a56e8(0x207)]===_0x5a56e8(0x288)&&_0x2d8300['id']&&(_0x2d8300['id']=_0x2d8300['id']+_0x325fb2['idSuffix']),Object[_0x5a56e8(0x1f5)](_0x2d8300)[_0x5a56e8(0x214)](([_0x578307,_0x2742e2])=>{const _0xc4b19f=_0x5a56e8;_0x578307==='mask'&&typeof _0x2742e2=='string'&&(_0x2d8300[_0x578307]=_0x2742e2[_0xc4b19f(0x21c)](/url\(#(.*)\)/,_0xc4b19f(0x206)+_0x325fb2[_0xc4b19f(0x1dd)]+')'));});const {defIds:_0x14e53d}=_0x325fb2;return!_0x14e53d||_0x14e53d['length']===0x0||(_0x146b5f[_0x5a56e8(0x207)]===_0x5a56e8(0x2a2)&&_0x2d8300[_0x5a56e8(0x24c)]&&(_0x2d8300[_0x5a56e8(0x24c)]=_0x2d8300['xlink:href']+_0x325fb2[_0x5a56e8(0x1dd)]),Object[_0x5a56e8(0x1f5)](_0x2d8300)[_0x5a56e8(0x214)](([_0x45f1ac,_0x2bc393])=>{const _0xfb79a4=_0x5a56e8;typeof _0x2bc393==_0xfb79a4(0x296)&&(_0x2d8300[_0x45f1ac]=_0x2bc393[_0xfb79a4(0x21c)](/url\(#(.*)\)/,_0xfb79a4(0x206)+_0x325fb2[_0xfb79a4(0x1dd)]+')'));})),_0x2d8300;}function _0x56515c(_0x2e1169,_0x345e61){const _0x211c26=_0x6f7a83;var _0x41f910;const {defIds:_0x5d9bfa}=_0x345e61;return!_0x5d9bfa||_0x5d9bfa['length']===0x0?_0x2e1169:_0x2e1169[_0x211c26(0x207)]===_0x211c26(0x2a4)&&((_0x41f910=_0x2e1169[_0x211c26(0x1dc)])!=null&&_0x41f910['length'])?{..._0x2e1169,'children':_0x2e1169[_0x211c26(0x1dc)]['map'](_0x404e62=>typeof _0x404e62['attrs']['id']=='string'&&_0x5d9bfa&&_0x5d9bfa[_0x211c26(0x20e)](_0x404e62['attrs']['id'])?{..._0x404e62,'attrs':{..._0x404e62[_0x211c26(0x22b)],'id':_0x404e62[_0x211c26(0x22b)]['id']+_0x345e61[_0x211c26(0x1dd)]}}:_0x404e62)}:_0x2e1169;}function _0x12a1f0(){const _0x249e3d=_0x6f7a83;return Math[_0x249e3d(0x20f)]()[_0x249e3d(0x1f9)](0x24)[_0x249e3d(0x27b)](0x2,0x8);}_0x522fde[_0x6f7a83(0x209)]='UniverIcon';const _0x1676e6={'tag':'svg','attrs':{'xmlns':_0x6f7a83(0x239),'fill':'none','viewBox':_0x6f7a83(0x247),'width':_0x6f7a83(0x248),'height':'1em'},'children':[{'tag':_0x6f7a83(0x24b),'attrs':{'fill':_0x6f7a83(0x252),'d':_0x6f7a83(0x1e4)}},{'tag':'path','attrs':{'fill':_0x6f7a83(0x252),'d':_0x6f7a83(0x1d4),'fillRule':_0x6f7a83(0x20d),'clipRule':_0x6f7a83(0x20d)}}]},_0x2b6e58=_0x10af90[_0x6f7a83(0x226)](function(_0x206641,_0x200b25){const _0x2a7a53=_0x6f7a83;return _0x10af90[_0x2a7a53(0x229)](_0x522fde,Object[_0x2a7a53(0x1f3)]({},_0x206641,{'id':_0x2a7a53(0x269),'ref':_0x200b25,'icon':_0x1676e6}));});_0x2b6e58['displayName']=_0x6f7a83(0x2ab);class _0x4fcb2d extends _0x5242d0[_0x6f7a83(0x259)]{constructor(){const _0x29b4a9=_0x6f7a83;super(...arguments),_0x5c7a2b(this,_0x29b4a9(0x267),new Set()),_0x5c7a2b(this,'_reporters',new Set());}[_0x6f7a83(0x2b3)](_0x3f1bd3){const _0xdc93a9=_0x6f7a83;return this[_0xdc93a9(0x267)][_0xdc93a9(0x290)](_0x3f1bd3),_0x5242d0[_0xdc93a9(0x2b5)](()=>this[_0xdc93a9(0x267)][_0xdc93a9(0x22f)](_0x3f1bd3));}[_0x6f7a83(0x293)](_0x35cb2e){const _0x514a3c=_0x6f7a83;return this['_reporters'][_0x514a3c(0x290)](_0x35cb2e),_0x5242d0['toDisposable'](()=>this[_0x514a3c(0x28b)][_0x514a3c(0x22f)](_0x35cb2e));}['shouldShareOperation'](_0x32b8aa){const _0xa11869=_0x6f7a83;return this[_0xa11869(0x267)][_0xa11869(0x276)](_0x32b8aa);}[_0x6f7a83(0x225)](_0x2c52a0){const _0xda7936=_0x6f7a83;return Array['from'](this[_0xda7936(0x28b)])[_0xda7936(0x2a0)](_0x30830e=>_0x30830e(_0x2c52a0));}}var _0x4aebbf=Object[_0x6f7a83(0x295)],_0xbcc4bb=(_0x30b274,_0x38dbae,_0x177f57,_0x5661d5)=>{const _0x360515=_0x6f7a83;for(var _0x1463af=_0x5661d5>0x1?void 0x0:_0x5661d5?_0x4aebbf(_0x38dbae,_0x177f57):_0x38dbae,_0x4fc2b3=_0x30b274[_0x360515(0x287)]-0x1,_0x2d405e;_0x4fc2b3>=0x0;_0x4fc2b3--)(_0x2d405e=_0x30b274[_0x4fc2b3])&&(_0x1463af=_0x2d405e(_0x1463af)||_0x1463af);return _0x1463af;},_0x1f6e37=(_0x4173ff,_0x23695d)=>(_0x3ed87a,_0x51d49c)=>_0x23695d(_0x3ed87a,_0x51d49c,_0x4173ff);_0x33b5a1['LiveShareController']=class extends _0x5242d0['RxDisposable']{constructor(_0xb6d598,_0x45bb8d,_0x4e3c3f){const _0xdd0dd=_0x6f7a83;super(),_0x5c7a2b(this,_0xdd0dd(0x1ea),new Map()),(this[_0xdd0dd(0x263)]=_0xb6d598,this[_0xdd0dd(0x21a)]=_0x45bb8d,this[_0xdd0dd(0x244)]=_0x4e3c3f,this[_0xdd0dd(0x1fd)]());}async[_0x6f7a83(0x2bd)](_0x3de806){const _0x1373c7=_0x6f7a83;return this[_0x1373c7(0x1ea)][_0x1373c7(0x276)](_0x3de806)||await this['_startLiveShareCoordinator'](_0x3de806),this['_entities'][_0x1373c7(0x21d)](_0x3de806);}[_0x6f7a83(0x232)](_0x297d60){const _0x33822a=_0x6f7a83;var _0x59b344;return(_0x59b344=this['_entities'][_0x33822a(0x21d)](_0x297d60))!=null?_0x59b344:null;}['_init'](){const _0x49387e=_0x6f7a83;this['_univerInstanceService'][_0x49387e(0x220)](_0x5242d0['UniverInstanceType'][_0x49387e(0x29b)])[_0x49387e(0x270)](_0x16dc5c[_0x49387e(0x2b0)](this[_0x49387e(0x29a)]))[_0x49387e(0x20a)](async _0x1c5bb3=>{const _0x54e560=_0x49387e,_0x5c7d2b=_0x1c5bb3['getUnitId']();this[_0x54e560(0x1ea)][_0x54e560(0x276)](_0x5c7d2b)||this['_startLiveShareCoordinator'](_0x5c7d2b);}),this[_0x49387e(0x263)][_0x49387e(0x26e)](_0x5242d0[_0x49387e(0x23e)]['UNIVER_SHEET'])[_0x49387e(0x270)](_0x16dc5c[_0x49387e(0x2b0)](this[_0x49387e(0x29a)]))['subscribe'](_0x4b1ba1=>{const _0x166450=_0x49387e,_0x327d97=_0x4b1ba1[_0x166450(0x1db)](),_0x5e08d2=this[_0x166450(0x1ea)][_0x166450(0x21d)](_0x327d97);_0x5e08d2==null||_0x5e08d2[_0x166450(0x25b)]();});}async[_0x6f7a83(0x224)](_0x18982a){const _0x3ffcb3=_0x6f7a83,_0x223e9b=await this['_collabSessionService'][_0x3ffcb3(0x271)](_0x18982a),_0x1de1a0=this[_0x3ffcb3(0x21a)][_0x3ffcb3(0x1e1)](_0x33b5a1[_0x3ffcb3(0x25a)],_0x18982a,_0x223e9b);return _0x1de1a0[_0x3ffcb3(0x1ed)](),this[_0x3ffcb3(0x1ea)][_0x3ffcb3(0x233)](_0x18982a,_0x1de1a0),_0x1de1a0;}},_0x33b5a1['LiveShareController']=_0xbcc4bb([_0x1f6e37(0x0,_0x5242d0[_0x6f7a83(0x238)]),_0x1f6e37(0x1,_0x5242d0[_0x6f7a83(0x2a8)](_0x5242d0[_0x6f7a83(0x2ae)])),_0x1f6e37(0x2,_0x5242d0['Inject'](_0x54c375[_0x6f7a83(0x1f4)]))],_0x33b5a1[_0x6f7a83(0x201)]);var _0x109ecb=(_0x58417c=>(_0x58417c[_0x6f7a83(0x2b9)]='offline',_0x58417c[_0x6f7a83(0x2c3)]=_0x6f7a83(0x222),_0x58417c['FOLLOWING']=_0x6f7a83(0x20c),_0x58417c[_0x6f7a83(0x219)]=_0x6f7a83(0x289),_0x58417c[_0x6f7a83(0x2bf)]=_0x6f7a83(0x1e8),_0x58417c))(_0x109ecb||{});const _0xb6d0f1=_0x6f7a83(0x272),_0x4e9dc5=0xc8;_0x33b5a1[_0x6f7a83(0x25a)]=class extends _0x5242d0[_0x6f7a83(0x1fb)]{constructor(_0x59e9b0,_0x3198ad,_0x44cf62,_0x24100b,_0x1b3af2){const _0x40c663=_0x6f7a83;super(),_0x5c7a2b(this,_0x40c663(0x277),new _0x1d196e['BehaviorSubject']('idle')),_0x5c7a2b(this,'status$',this['_status$'][_0x40c663(0x1fc)]()),_0x5c7a2b(this,_0x40c663(0x1fd),!0x1),_0x5c7a2b(this,_0x40c663(0x1ef),null),_0x5c7a2b(this,_0x40c663(0x210),null),(this['_unitID']=_0x59e9b0,this[_0x40c663(0x255)]=_0x3198ad,this[_0x40c663(0x2c5)]=_0x44cf62,this[_0x40c663(0x2c0)]=_0x24100b,this['_commandService']=_0x1b3af2);}get['_status'](){const _0x415b62=_0x6f7a83;return this[_0x415b62(0x277)][_0x415b62(0x1e7)]();}[_0x6f7a83(0x25b)](){const _0x65c0f6=_0x6f7a83;var _0x17771d;(_0x17771d=this[_0x65c0f6(0x1ef)])==null||_0x17771d[_0x65c0f6(0x25b)](),this[_0x65c0f6(0x277)]['next'](_0x65c0f6(0x222)),this[_0x65c0f6(0x277)][_0x65c0f6(0x2a9)]();}['getStatus'](){return this['_status'];}[_0x6f7a83(0x1ed)](){const _0x186ff5=_0x6f7a83;this[_0x186ff5(0x1fd)]||(this[_0x186ff5(0x1fd)]=!0x0,this['_collabSession'][_0x186ff5(0x266)][_0x186ff5(0x270)](_0x16dc5c[_0x186ff5(0x2b0)](this[_0x186ff5(0x29a)]))['subscribe'](_0x453542=>{const _0x1f3fc2=_0x186ff5;switch(_0x453542){case _0x54c375[_0x1f3fc2(0x29d)][_0x1f3fc2(0x2b9)]:this['_handleOffline']();break;case _0x54c375[_0x1f3fc2(0x29d)][_0x1f3fc2(0x2b8)]:this[_0x1f3fc2(0x251)]();break;}}),this['_collabSession'][_0x186ff5(0x228)][_0x186ff5(0x270)](_0x16dc5c[_0x186ff5(0x2b0)](this[_0x186ff5(0x29a)]))[_0x186ff5(0x20a)](_0x14ad3e=>{const _0x464027=_0x186ff5,{eventID:_0xd35df1}=_0x14ad3e;switch(_0xd35df1){case _0x6323e2['CollaborationEvent'][_0x464027(0x242)]:this[_0x464027(0x22e)](_0x14ad3e);break;case _0x6323e2[_0x464027(0x218)][_0x464027(0x29c)]:this['_handleOperation'](_0x14ad3e);break;case _0x6323e2[_0x464027(0x218)][_0x464027(0x2a5)]:this['_handleTerminate']();break;case _0x6323e2['CollaborationEvent'][_0x464027(0x237)]:this[_0x464027(0x1fa)](_0x14ad3e);break;}}));}[_0x6f7a83(0x26b)](){const _0x9dcdb1=_0x6f7a83;this['_collabSession'][_0x9dcdb1(0x1eb)]({'eventID':_0x6323e2[_0x9dcdb1(0x218)][_0x9dcdb1(0x1e5)],'data':{'unitID':this[_0x9dcdb1(0x282)],'userID':this[_0x9dcdb1(0x255)][_0x9dcdb1(0x292)]()}},this[_0x9dcdb1(0x282)]);}[_0x6f7a83(0x260)](){const _0x2b9422=_0x6f7a83;this[_0x2b9422(0x23a)]===_0x2b9422(0x1e8)&&(this[_0x2b9422(0x277)][_0x2b9422(0x2c2)](_0x2b9422(0x222)),this[_0x2b9422(0x255)][_0x2b9422(0x1eb)]({'eventID':_0x6323e2[_0x2b9422(0x218)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2b9422(0x282)]}},this[_0x2b9422(0x282)]));}[_0x6f7a83(0x275)](){const _0x1bd4f9=_0x6f7a83;this[_0x1bd4f9(0x23a)]==='not-following'&&(this[_0x1bd4f9(0x277)][_0x1bd4f9(0x2c2)](_0x1bd4f9(0x20c)),this['_startFollowing']());}[_0x6f7a83(0x1e2)](){const _0x33b0cb=_0x6f7a83;this[_0x33b0cb(0x23a)]==='following'&&this[_0x33b0cb(0x1f1)]();}[_0x6f7a83(0x22e)](_0x148e16){const _0xafcc0d=_0x6f7a83,{presenter:_0x4fe95c}=_0x148e16[_0xafcc0d(0x2be)],_0x1f6d63=this['_collabSession']['getMemberID']();this[_0xafcc0d(0x210)]=_0x4fe95c,_0x4fe95c===_0x1f6d63?(this[_0xafcc0d(0x1f1)](),this[_0xafcc0d(0x25f)]()):this[_0xafcc0d(0x23a)]!==_0xafcc0d(0x289)&&(this[_0xafcc0d(0x2af)](),this[_0xafcc0d(0x23f)]());}[_0x6f7a83(0x278)](){const _0x318ddb=_0x6f7a83,_0x52e969={'eventID':_0x6323e2[_0x318ddb(0x218)][_0x318ddb(0x24d)]};this['_collabSession']['send'](_0x52e969,this['_unitID']);}['_handleTerminate'](){const _0x33e6e4=_0x6f7a83;this[_0x33e6e4(0x210)]=null,this[_0x33e6e4(0x23a)]!=='presenting'&&this[_0x33e6e4(0x22a)]();}['_handleNewChangeSets'](_0xcb25bd){const _0x49ccd5=_0x6f7a83;if(this['_status']===_0x49ccd5(0x20c)&&this[_0x49ccd5(0x210)]===_0xcb25bd[_0x49ccd5(0x2be)][_0x49ccd5(0x291)]){const _0x14b22e=_0x6323e2['parseProtocolChangeset'](_0xcb25bd[_0x49ccd5(0x2be)])[_0x49ccd5(0x280)]['reverse']()[_0x49ccd5(0x2ba)](_0x50c963=>_0x50c963['id']===_0x5c53f2[_0x49ccd5(0x2a6)]['id']);if(_0x14b22e){const _0xb351ba=_0x14b22e[_0x49ccd5(0x2aa)]['unitId'],_0x3c8fd2=_0x14b22e[_0x49ccd5(0x2aa)]['sheet']['id'];setTimeout(()=>{const _0xf2ceb9=_0x49ccd5;this['_commandService'][_0xf2ceb9(0x28a)](_0x5c53f2[_0xf2ceb9(0x2a3)]['id'],{'unitId':_0xb351ba,'subUnitId':_0x3c8fd2},{'fromCollab':!0x0});});}}}[_0x6f7a83(0x25f)](){const _0x3a6c98=_0x6f7a83;this[_0x3a6c98(0x277)][_0x3a6c98(0x2c2)](_0x3a6c98(0x1e8));const _0x27095b=new Map(),_0x319712=this[_0x3a6c98(0x1ef)]=new _0x5242d0[(_0x3a6c98(0x261))]();_0x319712[_0x3a6c98(0x290)](_0x5242d0[_0x3a6c98(0x2b5)](()=>{const _0x1946f0=_0x3a6c98;_0x27095b[_0x1946f0(0x214)](_0x13a0de=>_0x13a0de[_0x1946f0(0x2a9)]()),_0x27095b[_0x1946f0(0x217)]();})),_0x319712[_0x3a6c98(0x290)](this[_0x3a6c98(0x26f)]['onCommandExecuted'](_0x117644=>{const _0x15da2e=_0x3a6c98;var _0x2c293d;if(_0x117644[_0x15da2e(0x1df)]!==_0x5242d0['CommandType'][_0x15da2e(0x221)]||!this[_0x15da2e(0x2c0)][_0x15da2e(0x236)](_0x117644['id']))return;const {id:_0x6ed755}=_0x117644;let _0x1b676d;_0x27095b['has'](_0x6ed755)?_0x1b676d=_0x27095b[_0x15da2e(0x21d)](_0x6ed755):(_0x1b676d=new _0x1d196e[(_0x15da2e(0x26c))](),_0x27095b[_0x15da2e(0x233)](_0x6ed755,_0x1b676d),_0x1b676d[_0x15da2e(0x270)](_0x16dc5c[_0x15da2e(0x223)]((_0x2c293d=this[_0x15da2e(0x2c5)][_0x15da2e(0x1d6)](_0xb6d0f1))!=null?_0x2c293d:_0x4e9dc5,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x15da2e(0x20a)](_0x480085=>{const _0x275e4c=_0x15da2e;this[_0x275e4c(0x255)][_0x275e4c(0x1eb)]({'eventID':_0x6323e2[_0x275e4c(0x218)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x275e4c(0x282)],'operations':{[_0x480085['id']]:{'id':_0x480085['id'],'params':JSON['stringify'](_0x480085['params'])}}}},this['_unitID']);})),_0x1b676d['next'](_0x117644);})),this['_liveShareService'][_0x3a6c98(0x225)](this[_0x3a6c98(0x282)])[_0x3a6c98(0x214)](_0x30b1d7=>this['_collabSession'][_0x3a6c98(0x1eb)]({'eventID':_0x6323e2[_0x3a6c98(0x218)][_0x3a6c98(0x29c)],'data':{'unitID':this['_unitID'],'operations':{[_0x30b1d7['id']]:{'id':_0x30b1d7['id'],'params':JSON[_0x3a6c98(0x1ee)](_0x30b1d7[_0x3a6c98(0x2aa)])}}}},this[_0x3a6c98(0x282)]));}[_0x6f7a83(0x2af)](){const _0x588613=_0x6f7a83;var _0x5c19ac;this[_0x588613(0x277)]['next'](_0x588613(0x222)),(_0x5c19ac=this[_0x588613(0x1ef)])==null||_0x5c19ac[_0x588613(0x25b)](),this[_0x588613(0x1ef)]=null;}[_0x6f7a83(0x23f)](){const _0x4e0625=_0x6f7a83;var _0x3fbb5b;(_0x3fbb5b=this[_0x4e0625(0x1ef)])==null||_0x3fbb5b['dispose'](),this['_status$'][_0x4e0625(0x2c2)](_0x4e0625(0x20c));}[_0x6f7a83(0x22a)](){const _0x526f12=_0x6f7a83;var _0x55d127;this[_0x526f12(0x277)][_0x526f12(0x2c2)](_0x526f12(0x222)),(_0x55d127=this[_0x526f12(0x1ef)])==null||_0x55d127[_0x526f12(0x25b)](),this[_0x526f12(0x1ef)]=null;}[_0x6f7a83(0x1f1)](){const _0x4175cc=_0x6f7a83;var _0x4effc4;this[_0x4175cc(0x277)]['next']('not-following'),(_0x4effc4=this[_0x4175cc(0x1ef)])==null||_0x4effc4['dispose']();}[_0x6f7a83(0x1e0)](_0x445716){const _0x4ba95c=_0x6f7a83;if(['presenting',_0x4ba95c(0x289),_0x4ba95c(0x298)][_0x4ba95c(0x20e)](this[_0x4ba95c(0x23a)])||!_0x445716[_0x4ba95c(0x2be)]['presenter']||_0x445716[_0x4ba95c(0x2be)][_0x4ba95c(0x1f6)]===this[_0x4ba95c(0x255)]['getMemberID']())return;this[_0x4ba95c(0x23a)]===_0x4ba95c(0x222)&&this[_0x4ba95c(0x23f)]();const _0x46ce63=_0x445716[_0x4ba95c(0x2be)][_0x4ba95c(0x249)];Object['values'](_0x46ce63)['forEach'](_0x1c7b7f=>{const _0x3bb97c=_0x4ba95c;this[_0x3bb97c(0x26f)][_0x3bb97c(0x28a)](_0x1c7b7f['id'],_0x1c7b7f[_0x3bb97c(0x2aa)]?JSON['parse'](_0x1c7b7f[_0x3bb97c(0x2aa)]):null,{'fromCollab':!0x0});});}[_0x6f7a83(0x297)](){const _0x3a36dd=_0x6f7a83;var _0x474c08;this['_status$']['next'](_0x3a36dd(0x298)),(_0x474c08=this[_0x3a36dd(0x1ef)])==null||_0x474c08['dispose']();}[_0x6f7a83(0x251)](){const _0x5e612c=_0x6f7a83;this[_0x5e612c(0x277)][_0x5e612c(0x2c2)](_0x5e612c(0x222)),this[_0x5e612c(0x278)]();}},_0x33b5a1['LiveShareCoordinator']=_0xbcc4bb([_0x1f6e37(0x2,_0x5242d0[_0x6f7a83(0x28f)]),_0x1f6e37(0x3,_0x5242d0[_0x6f7a83(0x2a8)](_0x4fcb2d)),_0x1f6e37(0x4,_0x5242d0[_0x6f7a83(0x27a)])],_0x33b5a1['LiveShareCoordinator']);function _0x47175b(){const _0x1308d2=_0x6f7a83,_0x20920b=_0x8f5423[_0x1308d2(0x203)](_0x33b5a1['LiveShareController']),_0x2f416b=_0x8f5423['useDependency'](_0x5242d0[_0x1308d2(0x238)]),_0x28f27f=_0x8f5423[_0x1308d2(0x231)](()=>_0x2f416b[_0x1308d2(0x202)](_0x5242d0[_0x1308d2(0x23e)][_0x1308d2(0x29b)]),void 0x0,!0x1,[]),[_0xfbcf83,_0x5052b4]=_0x10af90['useState'](null),[_0x2c7e20,_0x1128c1]=_0x10af90[_0x1308d2(0x294)](_0x109ecb['IDLE']),_0x56f2fc=_0x10af90['useRef'](null);return _0x10af90['useEffect'](()=>(_0x28f27f&&_0x20920b[_0x1308d2(0x2bd)](_0x28f27f['getUnitId']())[_0x1308d2(0x1d7)](_0x2fd237=>{const _0x4dc50e=_0x1308d2;_0x5052b4(_0x2fd237),_0x56f2fc[_0x4dc50e(0x216)]=_0x2fd237['status$'][_0x4dc50e(0x20a)](_0x3f7148=>{_0x1128c1(_0x3f7148);});}),()=>{const _0x16999c=_0x1308d2;var _0x29ffbb;(_0x29ffbb=_0x56f2fc[_0x16999c(0x216)])==null||_0x29ffbb[_0x16999c(0x24e)](),_0x56f2fc[_0x16999c(0x216)]=null;}),[_0x28f27f,_0x20920b]),_0xfbcf83?_0x5a0919['jsx'](_0x105ed1[_0x1308d2(0x2c4)],{'align':'end','disabled':_0x2c7e20===_0x109ecb[_0x1308d2(0x2b9)],'className':_0x1308d2(0x2b2),'overlay':_0x5a0919['jsx'](_0x3e142f,{'status':_0x2c7e20,'coordinator':_0xfbcf83}),'children':_0x5a0919[_0x1308d2(0x257)](_0x1308d2(0x2a7),{'className':_0x105ed1[_0x1308d2(0x1e3)](_0x1308d2(0x21e),{'univer-cursor-not-allowed':_0x2c7e20===_0x109ecb['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c7e20!==_0x109ecb[_0x1308d2(0x2b9)]}),'type':_0x1308d2(0x2a7),'children':_0x5a0919[_0x1308d2(0x257)](_0x2b6e58,{'className':_0x1308d2(0x273)})})}):null;}function _0x3e142f(_0x5d1b8c){const _0x2da750=_0x6f7a83,{status:_0x512f7d,coordinator:_0x5f5681}=_0x5d1b8c;switch(_0x512f7d){case _0x109ecb[_0x2da750(0x2c3)]:return _0x5a0919[_0x2da750(0x257)](_0x1a7521,{'coordinator':_0x5f5681});case _0x109ecb[_0x2da750(0x204)]:return _0x5a0919['jsx'](_0x30e04f,{'coordinator':_0x5f5681});case _0x109ecb[_0x2da750(0x219)]:return _0x5a0919[_0x2da750(0x257)](_0x5d39e3,{'coordinator':_0x5f5681});case _0x109ecb[_0x2da750(0x2b9)]:return _0x5a0919[_0x2da750(0x257)](_0xad3f0,{});case _0x109ecb[_0x2da750(0x2bf)]:return _0x5a0919[_0x2da750(0x257)](_0x4d3a35,{'coordinator':_0x5f5681});default:return null;}}function _0x1a7521(_0x16bb75){const _0x44a09c=_0x6f7a83,{coordinator:_0x49883b}=_0x16bb75;return _0x5a0919[_0x44a09c(0x29e)](_0x5a0919['Fragment'],{'children':[_0x5a0919['jsx']('div',{'className':_0x44a09c(0x1f2),'children':_0x44a09c(0x274)}),_0x5a0919[_0x44a09c(0x257)](_0x105ed1[_0x44a09c(0x26d)],{'onClick':()=>_0x49883b[_0x44a09c(0x26b)](),'children':_0x44a09c(0x254)})]});}function _0x30e04f(_0x2964ad){const _0x287cff=_0x6f7a83,{coordinator:_0x43ddfc}=_0x2964ad;return _0x5a0919[_0x287cff(0x29e)](_0x5a0919[_0x287cff(0x1da)],{'children':[_0x5a0919['jsx'](_0x287cff(0x208),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x287cff(0x1f0)}),_0x5a0919[_0x287cff(0x257)](_0x105ed1[_0x287cff(0x26d)],{'onClick':()=>_0x43ddfc[_0x287cff(0x1e2)](),'children':'Stop\x20following'})]});}function _0x5d39e3(_0x5109dc){const _0x1521a3=_0x6f7a83,{coordinator:_0x5fada0}=_0x5109dc;return _0x5a0919[_0x1521a3(0x29e)](_0x5a0919[_0x1521a3(0x1da)],{'children':[_0x5a0919['jsx'](_0x1521a3(0x208),{'className':_0x1521a3(0x1f2),'children':_0x1521a3(0x268)}),_0x5a0919[_0x1521a3(0x257)](_0x105ed1['Button'],{'variant':_0x1521a3(0x2bc),'onClick':()=>_0x5fada0[_0x1521a3(0x275)](),'children':_0x1521a3(0x27e)})]});}function _0x4d3a35(_0x51dd53){const _0x3f2ac2=_0x6f7a83,{coordinator:_0x272dc9}=_0x51dd53;return _0x5a0919['jsxs'](_0x5a0919['Fragment'],{'children':[_0x5a0919[_0x3f2ac2(0x257)](_0x3f2ac2(0x208),{'className':_0x3f2ac2(0x1f2),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x5a0919[_0x3f2ac2(0x257)](_0x105ed1['Button'],{'variant':'default','onClick':()=>_0x272dc9[_0x3f2ac2(0x260)](),'children':_0x3f2ac2(0x1de)})]});}function _0xad3f0(){const _0x2342c9=_0x6f7a83;return _0x5a0919[_0x2342c9(0x257)](_0x5a0919[_0x2342c9(0x1da)],{'children':_0x2342c9(0x2bb)});}var _0x416846=Object[_0x6f7a83(0x295)],_0x467172=(_0xb8febd,_0x2b9a64,_0x356c09,_0x5019d1)=>{const _0x38ad49=_0x6f7a83;for(var _0x1dc36e=_0x5019d1>0x1?void 0x0:_0x5019d1?_0x416846(_0x2b9a64,_0x356c09):_0x2b9a64,_0x2d0845=_0xb8febd[_0x38ad49(0x287)]-0x1,_0x5382f8;_0x2d0845>=0x0;_0x2d0845--)(_0x5382f8=_0xb8febd[_0x2d0845])&&(_0x1dc36e=_0x5382f8(_0x1dc36e)||_0x1dc36e);return _0x1dc36e;},_0x702670=(_0x4c45a9,_0xb48db0)=>(_0x3421ad,_0x13d7db)=>_0xb48db0(_0x3421ad,_0x13d7db,_0x4c45a9);_0x33b5a1['DesktopLiveShareController']=class extends _0x5242d0['Disposable']{constructor(_0x53289c,_0x232075){const _0x2e4033=_0x6f7a83;super(),this['_injector']=_0x53289c,this[_0x2e4033(0x285)]=_0x232075,this[_0x2e4033(0x27d)]();}['_mountLiveShare'](){const _0x35e63c=_0x6f7a83;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x8f5423[_0x35e63c(0x28c)][_0x35e63c(0x1d5)],()=>_0x8f5423[_0x35e63c(0x24a)](_0x47175b,this[_0x35e63c(0x21a)])));}},_0x33b5a1[_0x6f7a83(0x246)]=_0x467172([_0x702670(0x0,_0x5242d0[_0x6f7a83(0x2a8)](_0x5242d0['Injector'])),_0x702670(0x1,_0x8f5423[_0x6f7a83(0x27f)])],_0x33b5a1['DesktopLiveShareController']);const _0x50d14f=_0x6f7a83(0x1ec),_0x5e7809={};var _0x12a215=Object[_0x6f7a83(0x295)],_0x1c4fe1=(_0x22c59d,_0x1c9c27,_0x24aad8,_0x277f99)=>{const _0x3a1263=_0x6f7a83;for(var _0x426475=_0x277f99>0x1?void 0x0:_0x277f99?_0x12a215(_0x1c9c27,_0x24aad8):_0x1c9c27,_0x2735bf=_0x22c59d[_0x3a1263(0x287)]-0x1,_0x2a738c;_0x2735bf>=0x0;_0x2735bf--)(_0x2a738c=_0x22c59d[_0x2735bf])&&(_0x426475=_0x2a738c(_0x426475)||_0x426475);return _0x426475;},_0x45a4c7=(_0x2feb64,_0x423b99)=>(_0xb7965c,_0x2087ca)=>_0x423b99(_0xb7965c,_0x2087ca,_0x2feb64);let _0x429a58=class extends _0x5242d0[_0x6f7a83(0x259)]{constructor(_0x179819){const _0x2eba10=_0x6f7a83;super(),this[_0x2eba10(0x2c0)]=_0x179819,this['_init']();}[_0x6f7a83(0x1fd)](){const _0x363230=_0x6f7a83;[_0x16ca3d[_0x363230(0x2ad)]['id'],_0x16ca3d['SetScrollOperation']['id'],_0x5c53f2[_0x363230(0x2a3)]['id']][_0x363230(0x214)](_0x369148=>{const _0x3ca241=_0x363230;this[_0x3ca241(0x1f7)](this[_0x3ca241(0x2c0)][_0x3ca241(0x2b3)](_0x369148));});}};_0x429a58=_0x1c4fe1([_0x45a4c7(0x0,_0x5242d0[_0x6f7a83(0x2a8)](_0x4fcb2d))],_0x429a58);var _0x559f52=Object[_0x6f7a83(0x265)],_0x2420a4=Object[_0x6f7a83(0x295)],_0x1a9fb8=(_0x4d4c93,_0x25903e,_0x1d6343)=>_0x25903e in _0x4d4c93?_0x559f52(_0x4d4c93,_0x25903e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d6343}):_0x4d4c93[_0x25903e]=_0x1d6343,_0x48e543=(_0x5c9624,_0x581f8a,_0xeaf8ed,_0x4a5953)=>{for(var _0x198d3e=_0x4a5953>0x1?void 0x0:_0x4a5953?_0x2420a4(_0x581f8a,_0xeaf8ed):_0x581f8a,_0x269b3f=_0x5c9624['length']-0x1,_0x4ae2de;_0x269b3f>=0x0;_0x269b3f--)(_0x4ae2de=_0x5c9624[_0x269b3f])&&(_0x198d3e=_0x4ae2de(_0x198d3e)||_0x198d3e);return _0x198d3e;},_0x2dd713=(_0x41b0e0,_0x1be5fe)=>(_0x5c2ca1,_0x1720c3)=>_0x1be5fe(_0x5c2ca1,_0x1720c3,_0x41b0e0),_0x1d2e81=(_0x2e43e7,_0x47640a,_0x1c493a)=>_0x1a9fb8(_0x2e43e7,typeof _0x47640a!=_0x6f7a83(0x243)?_0x47640a+'':_0x47640a,_0x1c493a);const _0x284089=_0x6f7a83(0x1e6);_0x33b5a1[_0x6f7a83(0x22d)]=class extends _0x5242d0[_0x6f7a83(0x299)]{constructor(_0x452257=_0x5e7809,_0x2e081b,_0x30c6c6){const _0x578a51=_0x6f7a83;super(),this['_config']=_0x452257,this[_0x578a51(0x21a)]=_0x2e081b,this[_0x578a51(0x2c5)]=_0x30c6c6;const {..._0x52da88}=_0x5242d0[_0x578a51(0x2b1)]({},_0x5e7809,this['_config']);this[_0x578a51(0x2c5)][_0x578a51(0x279)](_0x50d14f,_0x52da88);}[_0x6f7a83(0x235)](){const _0x19a32f=_0x6f7a83;_0x5242d0[_0x19a32f(0x200)](this[_0x19a32f(0x21a)],_0x5242d0['mergeOverrideWithDependencies']([[_0x4fcb2d],[_0x33b5a1[_0x19a32f(0x201)]],[_0x429a58],[_0x33b5a1[_0x19a32f(0x246)]]],this[_0x19a32f(0x283)][_0x19a32f(0x227)])),_0x5242d0[_0x19a32f(0x1d8)](this['_injector'],[[_0x429a58]]);}[_0x6f7a83(0x284)](){const _0xf5cd19=_0x6f7a83;_0x5242d0[_0xf5cd19(0x1d8)](this[_0xf5cd19(0x21a)],[[_0x33b5a1[_0xf5cd19(0x246)]]]);}},_0x1d2e81(_0x33b5a1['UniverLiveSharePlugin'],_0x6f7a83(0x1df),_0x5242d0[_0x6f7a83(0x23e)][_0x6f7a83(0x1ff)]),_0x1d2e81(_0x33b5a1['UniverLiveSharePlugin'],_0x6f7a83(0x25c),_0x284089),_0x33b5a1[_0x6f7a83(0x22d)]=_0x48e543([_0x5242d0[_0x6f7a83(0x240)](_0x54c375[_0x6f7a83(0x213)]),_0x2dd713(0x1,_0x5242d0['Inject'](_0x5242d0['Injector'])),_0x2dd713(0x2,_0x5242d0[_0x6f7a83(0x28f)])],_0x33b5a1[_0x6f7a83(0x22d)]),_0x33b5a1[_0x6f7a83(0x215)]=_0x47175b,_0x33b5a1[_0x6f7a83(0x2b7)]=_0x4fcb2d,_0x33b5a1[_0x6f7a83(0x1d9)]=_0x109ecb,Object[_0x6f7a83(0x265)](_0x33b5a1,Symbol[_0x6f7a83(0x241)],{'value':_0x6f7a83(0x256)});}));function _0x593b(){const _0x89ce33=['complete','params','LiveShareIcon','UniverProCollaboration','SetZoomRatioOperation','Injector','_stopPresenting','takeUntil','merge','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','registerSharedOperation','amd','toDisposable','UniverUi','LiveShareService','ONLINE','OFFLINE','find','You\x27are\x20offline.','text','getLiveShareCoordinator','data','PRESENTING','_liveShareService','fill','next','IDLE','Dropdown','_configService','function','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','HEADER_MENU','getConfig','then','touchDependencies','LiveShareStatus','Fragment','getUnitId','children','idSuffix','Stop\x20presenting','type','_handleOperation','createInstance','stopFollowing','clsx','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','LIVESHARE_REQUEST_HOST','UNIVER_LIVE_SHARE_PLUGIN','getValue','presenting','UniverProCollaborationClient','_entities','send','live-share.config','init','stringify','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','assign','CollaborationSessionService','entries','presenter','disposeWithMe','exports','toString','_handleNewChangeSets','RxDisposable','asObservable','_init','UniverProLiveShare','UNIVER_UNKNOWN','registerDependencies','LiveShareController','getCurrentTypeOfUnit$','useDependency','FOLLOWING','2663946OcjreK','url(#$1','tag','div','displayName','subscribe','object','following','evenodd','includes','random','_presenter','2224496EEqOal','UniverCore','UniverCollaborationClientPlugin','forEach','LiveShare','current','clear','CollaborationEvent','NOT_FOLLOWING','_injector','colorChannel1','replace','get','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','@univerjs-pro/collaboration','getTypeOfUnitAdded$','OPERATION','idle','throttleTime','_startLiveShareCoordinator','getInitialStates','forwardRef','override','event$','createElement','_beIdle','attrs','rxjs','UniverLiveSharePlugin','_handleNewHost','delete','@univerjs/design','useObservable','getLiveShareCoordinatorSync','set','@univerjs/sheets-ui','onStarting','shouldShareOperation','NEW_CHANGESETS','IUniverInstanceService','http://www.w3.org/2000/svg','_status','154OySAmq','703362XqQdDG','@univerjs/sheets','UniverInstanceType','_startFollowing','DependentOn','toStringTag','LIVESHARE_NEW_HOST','symbol','_collabSessionService','defIds','DesktopLiveShareController','0\x200\x2017\x2017','1em','operations','connectInjector','path','xlink:href','LIVESHARE_FETCH_OPERATIONS','unsubscribe','5DVVGrC','1282797BgCQSz','_handleOnline','currentColor','6auAtRc','Start','_collabSession','Module','jsx','6028068jWmPMC','Disposable','LiveShareCoordinator','dispose','pluginName','trim','@univerjs-pro/collaboration-client','_startPresenting','stopPresenting','DisposableCollection','UniverSheets','_univerInstanceService','operators','defineProperty','sessionStatus$','_sharedOperations','You\x27re\x20not\x20following\x20the\x20presenter','live-share-icon','42UhfaCH','tryStartPresenting','Subject','Button','getTypeOfUnitDisposed$','_commandService','pipe','requireSession','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','Present\x20this\x20document','startFollowing','has','_status$','_fetchOperations','setConfig','ICommandService','substring','univerjs-icon\x20univerjs-icon-','_mountLiveShare','Start\x20following','IUIPartsService','mutations','useRef','_unitID','_config','onRendered','_uiPartsService','@univerjs/ui','length','mask','not-following','executeCommand','_reporters','BuiltInUIPart','@univerjs/core','1810017JKUHeI','IConfigService','add','memberID','getMemberID','registerInitialStateReporter','useState','getOwnPropertyDescriptor','string','_handleOffline','offline','Plugin','dispose$','UNIVER_SHEET','LIVESHARE_OPERATION','SessionStatus','jsxs','React','map','3061720zrguTE','use','SetWorksheetActiveOperation','defs','LIVESHARE_TERMINATE','InsertSheetMutation','button','Inject'];_0x593b=function(){return _0x89ce33;};return _0x593b();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.13.0",
3
+ "version": "0.14.0-insiders.20251227-b250a8d",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -56,15 +56,15 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/icons": "^1.0.2",
60
- "@univerjs/core": "0.13.0",
61
- "@univerjs-pro/collaboration": "0.13.0",
62
- "@univerjs-pro/collaboration-client": "0.13.0",
63
- "@univerjs/design": "0.13.0",
64
- "@univerjs/engine-render": "0.13.0",
65
- "@univerjs/sheets-ui": "0.13.0",
66
- "@univerjs/sheets": "0.13.0",
67
- "@univerjs/ui": "0.13.0"
59
+ "@univerjs/icons": "^1.1.0",
60
+ "@univerjs-pro/collaboration": "0.14.0-insiders.20251227-b250a8d",
61
+ "@univerjs-pro/collaboration-client": "0.14.0-insiders.20251227-b250a8d",
62
+ "@univerjs/design": "0.14.0-insiders.20251227-b250a8d",
63
+ "@univerjs/core": "0.14.0-insiders.20251227-b250a8d",
64
+ "@univerjs/sheets": "0.14.0-insiders.20251227-b250a8d",
65
+ "@univerjs/engine-render": "0.14.0-insiders.20251227-b250a8d",
66
+ "@univerjs/ui": "0.14.0-insiders.20251227-b250a8d",
67
+ "@univerjs/sheets-ui": "0.14.0-insiders.20251227-b250a8d"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,10 +72,10 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.2.7",
76
- "vitest": "^4.0.15",
77
- "@univerjs-infra/shared": "0.13.0",
78
- "@univerjs/protocol": "0.1.47"
75
+ "vite": "^7.3.0",
76
+ "vitest": "^4.0.16",
77
+ "@univerjs/protocol": "0.1.48",
78
+ "@univerjs-infra/shared": "0.14.0"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",