@univerjs-pro/live-share 0.13.0 → 0.14.0-insiders.20251222-4efcfbb

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 _0x403aa7=_0x11ce;(function(_0x35775c,_0x53336c){const _0x50d272=_0x11ce,_0x27ee27=_0x35775c();while(!![]){try{const _0x330918=-parseInt(_0x50d272(0x111))/0x1*(-parseInt(_0x50d272(0x101))/0x2)+-parseInt(_0x50d272(0x127))/0x3*(parseInt(_0x50d272(0x10b))/0x4)+-parseInt(_0x50d272(0x125))/0x5*(parseInt(_0x50d272(0x112))/0x6)+-parseInt(_0x50d272(0x110))/0x7*(parseInt(_0x50d272(0x11f))/0x8)+-parseInt(_0x50d272(0x109))/0x9+-parseInt(_0x50d272(0xfe))/0xa+parseInt(_0x50d272(0x107))/0xb*(parseInt(_0x50d272(0x119))/0xc);if(_0x330918===_0x53336c)break;else _0x27ee27['push'](_0x27ee27['shift']());}catch(_0x66a222){_0x27ee27['push'](_0x27ee27['shift']());}}}(_0x4568,0x4065c));function _0x4568(){const _0x2f67a0=['IDLE','2119230KBySNW','SetScrollOperation','92796NiQLWX','FRange','startFollowing','extend','FEnum','2078678fATNCq','2433WJeYGk','114906EgoVei','IRenderManagerService','FUniver','stopPresenting','getActiveSheet','LiveShareController','getUnitId','5426904CRyxfX','getSheetId','startPresenting','getId','startColumn','PRESENTING','8AIkDXF','getLiveShareCoordinatorSync','LiveShareStatusEnum','_injector','getActiveWorkbook','stopFollowing','35SVeQmF','getLiveShareStatus','3YvwydV','syncExecuteCommand','LiveShareStatus','459190Dicjuo','No\x20active\x20workbook\x20found.','get','78peujsv','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startRow','getStatus','tryStartPresenting','executeCommand','22uVttSg'];_0x4568=function(){return _0x2f67a0;};return _0x4568();}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');class w extends d[_0x403aa7(0x10c)]{['_initialize'](_0x172380,_0x9a4963,_0x30966d,_0x4753a2,_0xf700bf){const _0x42feda=_0x403aa7,_0xc0751f=_0x172380['get'](n[_0x42feda(0x117)]),_0x1f5c04=_0x172380[_0x42feda(0x100)](g[_0x42feda(0x113)]),_0x357d49=_0x9a4963[_0x42feda(0x118)](),_0x3a5184=_0x9a4963[_0x42feda(0x116)](),_0x5d2a80=_0xc0751f[_0x42feda(0x120)](_0x357d49);(_0x5d2a80==null?void 0x0:_0x5d2a80['getStatus']())!==n[_0x42feda(0xfd)][_0x42feda(0x11e)]||(_0x30966d[_0x42feda(0x11a)]()!==_0x3a5184[_0x42feda(0x11a)]()&&this['_commandService'][_0x42feda(0x106)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x357d49,'subUnitId':_0x30966d[_0x42feda(0x11a)]()}),!_0x1f5c04['getRenderById'](_0x357d49))||_0xf700bf[_0x42feda(0xfc)](f[_0x42feda(0x10a)]['id'],{'unitId':_0x9a4963['getUnitId'](),'sheetId':_0x30966d[_0x42feda(0x11a)](),'sheetViewStartRow':_0x4753a2[_0x42feda(0x103)],'sheetViewStartColumn':_0x4753a2[_0x42feda(0x11d)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x403aa7(0x10c)][_0x403aa7(0x10e)](w);function _0x11ce(_0x1a0e7e,_0x144256){_0x1a0e7e=_0x1a0e7e-0xfc;const _0x456828=_0x4568();let _0x11cef5=_0x456828[_0x1a0e7e];return _0x11cef5;}class C extends a[_0x403aa7(0x114)]{[_0x403aa7(0x126)](){const _0x47d3dc=_0x403aa7;var _0x49e15e,_0x49f857;const _0x5d4c24=this[_0x47d3dc(0x122)][_0x47d3dc(0x100)](n[_0x47d3dc(0x117)]),_0x3559fd=(_0x49e15e=this[_0x47d3dc(0x123)]())==null?void 0x0:_0x49e15e[_0x47d3dc(0x11c)]();if(!_0x3559fd)throw new Error('No\x20active\x20workbook\x20found.');const _0x3cdfcf=_0x5d4c24[_0x47d3dc(0x120)](_0x3559fd);return(_0x49f857=_0x3cdfcf==null?void 0x0:_0x3cdfcf[_0x47d3dc(0x104)]())!=null?_0x49f857:n['LiveShareStatus'][_0x47d3dc(0x108)];}['startFollowing'](){const _0x1f3214=_0x403aa7;var _0xc4c81c;const _0x34884a=this[_0x1f3214(0x122)][_0x1f3214(0x100)](n['LiveShareController']),_0x3cd23b=(_0xc4c81c=this[_0x1f3214(0x123)]())==null?void 0x0:_0xc4c81c[_0x1f3214(0x11c)]();if(!_0x3cd23b)throw new Error(_0x1f3214(0xff));const _0x3d7992=_0x34884a[_0x1f3214(0x120)](_0x3cd23b);if(!_0x3d7992)throw new Error(_0x1f3214(0x102));_0x3d7992[_0x1f3214(0x10d)]();}['stopFollowing'](){const _0x5932fc=_0x403aa7;var _0x47fec4;const _0x5cf497=this[_0x5932fc(0x122)][_0x5932fc(0x100)](n['LiveShareController']),_0x278da2=(_0x47fec4=this[_0x5932fc(0x123)]())==null?void 0x0:_0x47fec4[_0x5932fc(0x11c)]();if(!_0x278da2)throw new Error(_0x5932fc(0xff));const _0x7d33bf=_0x5cf497[_0x5932fc(0x120)](_0x278da2);if(!_0x7d33bf)throw new Error(_0x5932fc(0x102));_0x7d33bf[_0x5932fc(0x124)]();}[_0x403aa7(0x11b)](){const _0x47a89b=_0x403aa7;var _0xe1ba2c;const _0x4058d4=this['_injector'][_0x47a89b(0x100)](n[_0x47a89b(0x117)]),_0x31b0f9=(_0xe1ba2c=this[_0x47a89b(0x123)]())==null?void 0x0:_0xe1ba2c[_0x47a89b(0x11c)]();if(!_0x31b0f9)throw new Error(_0x47a89b(0xff));const _0x4ff67e=_0x4058d4[_0x47a89b(0x120)](_0x31b0f9);if(!_0x4ff67e)throw new Error(_0x47a89b(0x102));_0x4ff67e[_0x47a89b(0x105)]();}[_0x403aa7(0x115)](){const _0x44af46=_0x403aa7;var _0xc5d278;const _0xbf03d=this[_0x44af46(0x122)][_0x44af46(0x100)](n['LiveShareController']),_0x72de94=(_0xc5d278=this['getActiveWorkbook']())==null?void 0x0:_0xc5d278[_0x44af46(0x11c)]();if(!_0x72de94)throw new Error('No\x20active\x20workbook\x20found.');const _0x1dcc22=_0xbf03d[_0x44af46(0x120)](_0x72de94);if(!_0x1dcc22)throw new Error(_0x44af46(0x102));_0x1dcc22[_0x44af46(0x115)]();}}a[_0x403aa7(0x114)][_0x403aa7(0x10e)](C);class L extends a['FEnum']{get[_0x403aa7(0x121)](){const _0x1c75ea=_0x403aa7;return n[_0x1c75ea(0xfd)];}}a[_0x403aa7(0x10f)][_0x403aa7(0x10e)](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 _0x4d6cd7=_0x14b0;(function(_0x1ac771,_0x5efa2a){const _0x317f10=_0x14b0,_0x144496=_0x1ac771();while(!![]){try{const _0x5163fb=parseInt(_0x317f10(0x1c3))/0x1+parseInt(_0x317f10(0x228))/0x2+-parseInt(_0x317f10(0x19a))/0x3+-parseInt(_0x317f10(0x18f))/0x4*(-parseInt(_0x317f10(0x1dc))/0x5)+-parseInt(_0x317f10(0x1a3))/0x6*(parseInt(_0x317f10(0x23c))/0x7)+-parseInt(_0x317f10(0x1a6))/0x8+-parseInt(_0x317f10(0x1e4))/0x9*(-parseInt(_0x317f10(0x22f))/0xa);if(_0x5163fb===_0x5efa2a)break;else _0x144496['push'](_0x144496['shift']());}catch(_0x284621){_0x144496['push'](_0x144496['shift']());}}}(_0x35c5,0x6e887));var T=Object[_0x4d6cd7(0x245)],U=(_0x2542f7,_0x3dbddf,_0x56ca51)=>_0x3dbddf in _0x2542f7?T(_0x2542f7,_0x3dbddf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56ca51}):_0x2542f7[_0x3dbddf]=_0x56ca51,_=(_0x503609,_0x2cf5ed,_0x26ff33)=>U(_0x503609,typeof _0x2cf5ed!=_0x4d6cd7(0x1d6)?_0x2cf5ed+'':_0x2cf5ed,_0x26ff33);Object[_0x4d6cd7(0x245)](exports,Symbol[_0x4d6cd7(0x197)],{'value':_0x4d6cd7(0x1d8)});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:_0x95e7ab,..._0x2318e5}){const _0x274b05=_0x4d6cd7,{icon:_0x4a01bf,id:_0x142bba,className:_0x1669a7,extend:_0x3827fa,..._0x1eeefa}=_0x2318e5,_0x27da1f=(_0x274b05(0x196)+_0x142bba+'\x20'+(_0x1669a7||''))['trim'](),_0x20b9bb=v[_0x274b05(0x20b)]('_'+H());return j(_0x4a01bf,''+_0x142bba,{'defIds':_0x4a01bf['defIds'],'idSuffix':_0x20b9bb[_0x274b05(0x201)]},{'ref':_0x95e7ab,'className':_0x27da1f,..._0x1eeefa},_0x3827fa);}function j(_0x29bd86,_0x56ddf3,_0x1cb32e,_0x40ae0b,_0x1788b4){const _0x1c3143=_0x4d6cd7;return v[_0x1c3143(0x198)](_0x29bd86['tag'],{'key':_0x56ddf3,...y(_0x29bd86,_0x1cb32e,_0x1788b4),..._0x40ae0b},(F(_0x29bd86,_0x1cb32e)[_0x1c3143(0x20f)]||[])['map']((_0x571bd6,_0x5429ed)=>j(_0x571bd6,_0x56ddf3+'-'+_0x29bd86['tag']+'-'+_0x5429ed,_0x1cb32e,void 0x0,_0x1788b4)));}function y(_0x1cb451,_0xad133f,_0x4ef970){const _0x381152=_0x4d6cd7,_0x54fb1={..._0x1cb451[_0x381152(0x202)]};_0x4ef970!=null&&_0x4ef970[_0x381152(0x1f9)]&&_0x54fb1['fill']===_0x381152(0x1f9)&&(_0x54fb1[_0x381152(0x1a2)]=_0x4ef970[_0x381152(0x1f9)]),_0x1cb451[_0x381152(0x21d)]===_0x381152(0x1eb)&&_0x54fb1['id']&&(_0x54fb1['id']=_0x54fb1['id']+_0xad133f[_0x381152(0x191)]),Object[_0x381152(0x24c)](_0x54fb1)[_0x381152(0x229)](([_0x414d84,_0x36ca37])=>{const _0x3aac61=_0x381152;_0x414d84===_0x3aac61(0x1eb)&&typeof _0x36ca37==_0x3aac61(0x1f0)&&(_0x54fb1[_0x414d84]=_0x36ca37[_0x3aac61(0x209)](/url\(#(.*)\)/,_0x3aac61(0x1fb)+_0xad133f[_0x3aac61(0x191)]+')'));});const {defIds:_0x5174ad}=_0xad133f;return!_0x5174ad||_0x5174ad['length']===0x0||(_0x1cb451[_0x381152(0x21d)]===_0x381152(0x246)&&_0x54fb1['xlink:href']&&(_0x54fb1[_0x381152(0x216)]=_0x54fb1[_0x381152(0x216)]+_0xad133f[_0x381152(0x191)]),Object[_0x381152(0x24c)](_0x54fb1)['forEach'](([_0x327876,_0x2a4f58])=>{const _0x35c35a=_0x381152;typeof _0x2a4f58==_0x35c35a(0x1f0)&&(_0x54fb1[_0x327876]=_0x2a4f58[_0x35c35a(0x209)](/url\(#(.*)\)/,'url(#$1'+_0xad133f[_0x35c35a(0x191)]+')'));})),_0x54fb1;}function F(_0x84d2bf,_0x42d126){const _0x571c92=_0x4d6cd7;var _0x3f204b;const {defIds:_0x1b0915}=_0x42d126;return!_0x1b0915||_0x1b0915['length']===0x0?_0x84d2bf:_0x84d2bf[_0x571c92(0x21d)]==='defs'&&((_0x3f204b=_0x84d2bf[_0x571c92(0x20f)])!=null&&_0x3f204b[_0x571c92(0x1b7)])?{..._0x84d2bf,'children':_0x84d2bf[_0x571c92(0x20f)][_0x571c92(0x23f)](_0x125528=>typeof _0x125528[_0x571c92(0x202)]['id']==_0x571c92(0x1f0)&&_0x1b0915&&_0x1b0915[_0x571c92(0x244)](_0x125528[_0x571c92(0x202)]['id'])?{..._0x125528,'attrs':{..._0x125528[_0x571c92(0x202)],'id':_0x125528['attrs']['id']+_0x42d126[_0x571c92(0x191)]}}:_0x125528)}:_0x84d2bf;}function H(){const _0x50b02e=_0x4d6cd7;return Math[_0x50b02e(0x1ed)]()['toString'](0x24)[_0x50b02e(0x20c)](0x2,0x8);}x[_0x4d6cd7(0x224)]='UniverIcon';const V={'tag':_0x4d6cd7(0x210),'attrs':{'xmlns':_0x4d6cd7(0x206),'fill':'none','viewBox':_0x4d6cd7(0x1ef),'width':_0x4d6cd7(0x1bc),'height':_0x4d6cd7(0x1bc)},'children':[{'tag':_0x4d6cd7(0x1b1),'attrs':{'fill':_0x4d6cd7(0x24e),'d':_0x4d6cd7(0x22c)}},{'tag':_0x4d6cd7(0x1b1),'attrs':{'fill':_0x4d6cd7(0x24e),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x4d6cd7(0x24d),'clipRule':_0x4d6cd7(0x24d)}}]},R=v['forwardRef'](function(_0x1ea91c,_0x208bcb){const _0x230513=_0x4d6cd7;return v[_0x230513(0x198)](x,Object[_0x230513(0x24a)]({},_0x1ea91c,{'id':'live-share-icon','ref':_0x208bcb,'icon':V}));});function _0x35c5(){const _0x1ca64b=['_handleOnline','useState','OPERATION','delete','useObservable','registerComponent','send','_univerInstanceService','parse','live-share.config','UniverLiveSharePlugin','UNIVER_SHEET','symbol','Injector','Module','disposeWithMe','getOwnPropertyDescriptor','_status$','5TLszGE','getUnitId','_commandDisposable','type','jsx','executeCommand','requireSession','get','45uOTpPh','NOT_FOLLOWING','_handleOffline','clsx','not-following','_uiPartsService','complete','mask','Fragment','random','takeUntil','0\x200\x2017\x2017','string','mergeOverrideWithDependencies','set','_unitID','_startFollowing','default','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onCommandExecuted','status$','colorChannel1','LiveShareStatus','url(#$1','OFFLINE','onStarting','Button','_collabSession','getCurrentTypeOfUnit$','current','attrs','_reporters','UNIVER_UNKNOWN','useEffect','http://www.w3.org/2000/svg','idle','parseProtocolChangeset','replace','_startLiveShareCoordinator','useRef','substring','LIVESHARE_NEW_HOST','reverse','children','svg','getLiveShareCoordinator','_handleNewChangeSets','CommandType','UniverInstanceType','throttleTime','xlink:href','_stopFollowing','IUniverInstanceService','following','_handleOperation','asObservable','SetZoomRatioOperation','tag','jsxs','next','stopPresenting','then','touchDependencies','createInstance','displayName','sheet','stringify','_liveShareService','1003096vWuVGS','forEach','add','Disposable','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','_startPresenting','getStatus','2545800vcRTqv','_handleNewHost','getLiveShareCoordinatorSync','SAME_OPERATION_SHARE_INTERVAL','Present\x20this\x20document','toDisposable','startFollowing','Start\x20following','SessionStatus','_entities','button','pluginName','stopFollowing','916195mYwNLS','has','_collabSessionService','map','shouldShareOperation','data','subscribe','univer-size-4','includes','defineProperty','use','dispose$','UNIVER_LIVE_SHARE_PLUGIN','from','assign','SetWorksheetActiveOperation','entries','evenodd','currentColor','Start','LiveShareIcon','params','presenter','Plugin','_status','_injector','RxDisposable','LIVESHARE_OPERATION','UniverCollaborationClientPlugin','You\x27are\x20offline.','getMemberID','unsubscribe','getValue','find','_stopPresenting','DesktopLiveShareController','tryStartPresenting','pipe','offline','454988wGcbyL','presenting','idSuffix','LiveShareController','_presenter','InsertSheetMutation','HEADER_MENU','univerjs-icon\x20univerjs-icon-','toStringTag','createElement','init','2586570yRfgBW','LiveShareCoordinator','PRESENTING','dispose','Subject','Stop\x20presenting','setConfig','_commandService','fill','18SLAqUs','univer-mb-3\x20univer-w-full\x20univer-text-sm','Inject','1955880QrxGnO','unitId','CollaborationSessionService','div','clear','_handleTerminate','getInitialStates','merge','registerSharedOperation','IConfigService','ICommandService','path','onRendered','_mountLiveShare','_sharedOperations','IDLE','LiveShareService','length','_init','operations','FOLLOWING','_fetchOperations','1em','memberID','CollaborationEvent','useDependency','SetScrollOperation','You\x27re\x20presenting\x20the\x20document','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','63878KfOFpP','connectInjector','_config','sessionStatus$','_configService','text','You\x27re\x20following\x20the\x20presenter'];_0x35c5=function(){return _0x1ca64b;};return _0x35c5();}R[_0x4d6cd7(0x224)]=_0x4d6cd7(0x250);class E extends o[_0x4d6cd7(0x22b)]{constructor(){const _0xccf56=_0x4d6cd7;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0xccf56(0x203),new Set());}[_0x4d6cd7(0x1ae)](_0x7651a5){const _0x5d6d2=_0x4d6cd7;return this[_0x5d6d2(0x1b4)]['add'](_0x7651a5),o[_0x5d6d2(0x234)](()=>this[_0x5d6d2(0x1b4)][_0x5d6d2(0x1cd)](_0x7651a5));}['registerInitialStateReporter'](_0x3018dc){const _0x1201e5=_0x4d6cd7;return this[_0x1201e5(0x203)][_0x1201e5(0x22a)](_0x3018dc),o['toDisposable'](()=>this[_0x1201e5(0x203)][_0x1201e5(0x1cd)](_0x3018dc));}[_0x4d6cd7(0x240)](_0x4bf140){const _0x4d5e72=_0x4d6cd7;return this[_0x4d5e72(0x1b4)][_0x4d5e72(0x23d)](_0x4bf140);}['getInitialStates'](_0x257148){const _0x3d4836=_0x4d6cd7;return Array[_0x3d4836(0x249)](this[_0x3d4836(0x203)])[_0x3d4836(0x23f)](_0xf89f16=>_0xf89f16(_0x257148));}}var M=Object[_0x4d6cd7(0x1da)],P=(_0x142957,_0x474d45,_0xe10c59,_0x4d2897)=>{const _0x425117=_0x4d6cd7;for(var _0x341266=_0x4d2897>0x1?void 0x0:_0x4d2897?M(_0x474d45,_0xe10c59):_0x474d45,_0x5c908d=_0x142957[_0x425117(0x1b7)]-0x1,_0x5c445b;_0x5c908d>=0x0;_0x5c908d--)(_0x5c445b=_0x142957[_0x5c908d])&&(_0x341266=_0x5c445b(_0x341266)||_0x341266);return _0x341266;},S=(_0x539ac9,_0x1c2e9c)=>(_0x53f0f8,_0x41160d)=>_0x1c2e9c(_0x53f0f8,_0x41160d,_0x539ac9);exports['LiveShareController']=class extends o[_0x4d6cd7(0x256)]{constructor(_0x1c0802,_0x1313c2,_0x1f033c){const _0x2a4995=_0x4d6cd7;super(),_(this,_0x2a4995(0x238),new Map()),(this[_0x2a4995(0x1d1)]=_0x1c0802,this['_injector']=_0x1313c2,this[_0x2a4995(0x23e)]=_0x1f033c,this[_0x2a4995(0x1b8)]());}async[_0x4d6cd7(0x211)](_0x3b2521){const _0x1281a2=_0x4d6cd7;return this[_0x1281a2(0x238)][_0x1281a2(0x23d)](_0x3b2521)||await this['_startLiveShareCoordinator'](_0x3b2521),this[_0x1281a2(0x238)][_0x1281a2(0x1e3)](_0x3b2521);}[_0x4d6cd7(0x231)](_0xf46f7d){const _0x473afd=_0x4d6cd7;var _0x210982;return(_0x210982=this[_0x473afd(0x238)][_0x473afd(0x1e3)](_0xf46f7d))!=null?_0x210982:null;}[_0x4d6cd7(0x1b8)](){const _0x1e94f2=_0x4d6cd7;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1e94f2(0x18d)](I[_0x1e94f2(0x1ee)](this[_0x1e94f2(0x247)]))[_0x1e94f2(0x242)](async _0xb51f9d=>{const _0x33f01c=_0x1e94f2,_0x3cd3fb=_0xb51f9d[_0x33f01c(0x1dd)]();this['_entities']['has'](_0x3cd3fb)||this[_0x33f01c(0x20a)](_0x3cd3fb);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x1e94f2(0x214)]['UNIVER_SHEET'])['pipe'](I[_0x1e94f2(0x1ee)](this[_0x1e94f2(0x247)]))[_0x1e94f2(0x242)](_0x338f2f=>{const _0x1a6d81=_0x1e94f2,_0x449722=_0x338f2f[_0x1a6d81(0x1dd)](),_0x317228=this[_0x1a6d81(0x238)][_0x1a6d81(0x1e3)](_0x449722);_0x317228==null||_0x317228['dispose']();});}async['_startLiveShareCoordinator'](_0x87f07a){const _0x22f2fb=_0x4d6cd7,_0x27727c=await this['_collabSessionService'][_0x22f2fb(0x1e2)](_0x87f07a),_0x446008=this['_injector'][_0x22f2fb(0x223)](exports[_0x22f2fb(0x19b)],_0x87f07a,_0x27727c);return _0x446008[_0x22f2fb(0x199)](),this[_0x22f2fb(0x238)]['set'](_0x87f07a,_0x446008),_0x446008;}},exports[_0x4d6cd7(0x192)]=P([S(0x0,o[_0x4d6cd7(0x218)]),S(0x1,o[_0x4d6cd7(0x1a5)](o[_0x4d6cd7(0x1d7)])),S(0x2,o[_0x4d6cd7(0x1a5)](b[_0x4d6cd7(0x1a8)]))],exports[_0x4d6cd7(0x192)]);var u=(_0x9fa077=>(_0x9fa077['OFFLINE']=_0x4d6cd7(0x18e),_0x9fa077[_0x4d6cd7(0x1b5)]='idle',_0x9fa077['FOLLOWING']=_0x4d6cd7(0x219),_0x9fa077[_0x4d6cd7(0x1e5)]=_0x4d6cd7(0x1e8),_0x9fa077[_0x4d6cd7(0x19c)]=_0x4d6cd7(0x190),_0x9fa077))(u||{});const k=_0x4d6cd7(0x232),q=0xc8;exports[_0x4d6cd7(0x19b)]=class extends o[_0x4d6cd7(0x256)]{constructor(_0x3c57d4,_0x1b5898,_0x42d6f4,_0x116ce9,_0x5272d8){const _0x4d2583=_0x4d6cd7;super(),_(this,_0x4d2583(0x1db),new O['BehaviorSubject'](_0x4d2583(0x207))),_(this,_0x4d2583(0x1f8),this['_status$'][_0x4d2583(0x21b)]()),_(this,_0x4d2583(0x1b8),!0x1),_(this,'_commandDisposable',null),_(this,_0x4d2583(0x193),null),(this[_0x4d2583(0x1f3)]=_0x3c57d4,this[_0x4d2583(0x1ff)]=_0x1b5898,this[_0x4d2583(0x1c7)]=_0x42d6f4,this['_liveShareService']=_0x116ce9,this[_0x4d2583(0x1a1)]=_0x5272d8);}get[_0x4d6cd7(0x254)](){const _0x347bd9=_0x4d6cd7;return this['_status$'][_0x347bd9(0x188)]();}[_0x4d6cd7(0x19d)](){const _0x3374e5=_0x4d6cd7;var _0x53e345;(_0x53e345=this[_0x3374e5(0x1de)])==null||_0x53e345[_0x3374e5(0x19d)](),this[_0x3374e5(0x1db)][_0x3374e5(0x21f)](_0x3374e5(0x207)),this[_0x3374e5(0x1db)][_0x3374e5(0x1ea)]();}[_0x4d6cd7(0x22e)](){const _0xdffdb=_0x4d6cd7;return this[_0xdffdb(0x254)];}[_0x4d6cd7(0x199)](){const _0x4d64b8=_0x4d6cd7;this[_0x4d64b8(0x1b8)]||(this[_0x4d64b8(0x1b8)]=!0x0,this[_0x4d64b8(0x1ff)][_0x4d64b8(0x1c6)]['pipe'](I[_0x4d64b8(0x1ee)](this[_0x4d64b8(0x247)]))[_0x4d64b8(0x242)](_0x32cdaf=>{const _0x3b5682=_0x4d64b8;switch(_0x32cdaf){case b[_0x3b5682(0x237)][_0x3b5682(0x1fc)]:this[_0x3b5682(0x1e6)]();break;case b[_0x3b5682(0x237)]['ONLINE']:this[_0x3b5682(0x1ca)]();break;}}),this[_0x4d64b8(0x1ff)]['event$'][_0x4d64b8(0x18d)](I[_0x4d64b8(0x1ee)](this[_0x4d64b8(0x247)]))[_0x4d64b8(0x242)](_0x5fa8c8=>{const _0x5d063a=_0x4d64b8,{eventID:_0x48df9a}=_0x5fa8c8;switch(_0x48df9a){case d[_0x5d063a(0x1be)][_0x5d063a(0x20d)]:this[_0x5d063a(0x230)](_0x5fa8c8);break;case d[_0x5d063a(0x1be)]['LIVESHARE_OPERATION']:this[_0x5d063a(0x21a)](_0x5fa8c8);break;case d[_0x5d063a(0x1be)]['LIVESHARE_TERMINATE']:this[_0x5d063a(0x1ab)]();break;case d[_0x5d063a(0x1be)]['NEW_CHANGESETS']:this[_0x5d063a(0x212)](_0x5fa8c8);break;}}));}[_0x4d6cd7(0x18c)](){const _0x3512a6=_0x4d6cd7;this['_collabSession'][_0x3512a6(0x1d0)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3512a6(0x1f3)],'userID':this[_0x3512a6(0x1ff)][_0x3512a6(0x186)]()}},this[_0x3512a6(0x1f3)]);}['stopPresenting'](){const _0x829851=_0x4d6cd7;this[_0x829851(0x254)]===_0x829851(0x190)&&(this['_status$'][_0x829851(0x21f)]('idle'),this['_collabSession'][_0x829851(0x1d0)]({'eventID':d[_0x829851(0x1be)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x829851(0x1f3)]}},this[_0x829851(0x1f3)]));}['startFollowing'](){const _0x2d42b7=_0x4d6cd7;this[_0x2d42b7(0x254)]===_0x2d42b7(0x1e8)&&(this[_0x2d42b7(0x1db)][_0x2d42b7(0x21f)]('following'),this[_0x2d42b7(0x1f4)]());}['stopFollowing'](){const _0x4ccf70=_0x4d6cd7;this[_0x4ccf70(0x254)]===_0x4ccf70(0x219)&&this['_stopFollowing']();}[_0x4d6cd7(0x230)](_0x4174b3){const _0x35029b=_0x4d6cd7,{presenter:_0x542836}=_0x4174b3[_0x35029b(0x241)],_0x2d2dfc=this[_0x35029b(0x1ff)][_0x35029b(0x186)]();this[_0x35029b(0x193)]=_0x542836,_0x542836===_0x2d2dfc?(this[_0x35029b(0x217)](),this[_0x35029b(0x22d)]()):this[_0x35029b(0x254)]!=='not-following'&&(this[_0x35029b(0x18a)](),this[_0x35029b(0x1f4)]());}[_0x4d6cd7(0x1bb)](){const _0x4254d6=_0x4d6cd7,_0x16950b={'eventID':d['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4254d6(0x1ff)][_0x4254d6(0x1d0)](_0x16950b,this['_unitID']);}[_0x4d6cd7(0x1ab)](){const _0x4e74bc=_0x4d6cd7;this[_0x4e74bc(0x193)]=null,this[_0x4e74bc(0x254)]!==_0x4e74bc(0x190)&&this['_beIdle']();}[_0x4d6cd7(0x212)](_0x1df01e){const _0xb13cae=_0x4d6cd7;if(this[_0xb13cae(0x254)]===_0xb13cae(0x219)&&this[_0xb13cae(0x193)]===_0x1df01e[_0xb13cae(0x241)][_0xb13cae(0x1bd)]){const _0x2dbc7c=d[_0xb13cae(0x208)](_0x1df01e[_0xb13cae(0x241)])['mutations'][_0xb13cae(0x20e)]()[_0xb13cae(0x189)](_0x1e0f97=>_0x1e0f97['id']===C[_0xb13cae(0x194)]['id']);if(_0x2dbc7c){const _0x29f75e=_0x2dbc7c[_0xb13cae(0x251)][_0xb13cae(0x1a7)],_0x2895f8=_0x2dbc7c[_0xb13cae(0x251)][_0xb13cae(0x225)]['id'];setTimeout(()=>{const _0x367ed8=_0xb13cae;this[_0x367ed8(0x1a1)][_0x367ed8(0x1e1)](C[_0x367ed8(0x24b)]['id'],{'unitId':_0x29f75e,'subUnitId':_0x2895f8},{'fromCollab':!0x0});});}}}[_0x4d6cd7(0x22d)](){const _0x356df7=_0x4d6cd7;this[_0x356df7(0x1db)][_0x356df7(0x21f)]('presenting');const _0x4860d0=new Map(),_0x268d5f=this[_0x356df7(0x1de)]=new o['DisposableCollection']();_0x268d5f[_0x356df7(0x22a)](o[_0x356df7(0x234)](()=>{const _0x4f0d14=_0x356df7;_0x4860d0[_0x4f0d14(0x229)](_0x4b7969=>_0x4b7969[_0x4f0d14(0x1ea)]()),_0x4860d0[_0x4f0d14(0x1aa)]();})),_0x268d5f[_0x356df7(0x22a)](this[_0x356df7(0x1a1)][_0x356df7(0x1f7)](_0x5c9182=>{const _0x3a51fd=_0x356df7;var _0x364a0e;if(_0x5c9182['type']!==o[_0x3a51fd(0x213)][_0x3a51fd(0x1cc)]||!this['_liveShareService'][_0x3a51fd(0x240)](_0x5c9182['id']))return;const {id:_0x3d941d}=_0x5c9182;let _0x5862b;_0x4860d0[_0x3a51fd(0x23d)](_0x3d941d)?_0x5862b=_0x4860d0[_0x3a51fd(0x1e3)](_0x3d941d):(_0x5862b=new O[(_0x3a51fd(0x19e))](),_0x4860d0[_0x3a51fd(0x1f2)](_0x3d941d,_0x5862b),_0x5862b[_0x3a51fd(0x18d)](I[_0x3a51fd(0x215)]((_0x364a0e=this[_0x3a51fd(0x1c7)]['getConfig'](k))!=null?_0x364a0e:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3a51fd(0x242)](_0x20b761=>{const _0x110519=_0x3a51fd;this[_0x110519(0x1ff)][_0x110519(0x1d0)]({'eventID':d[_0x110519(0x1be)][_0x110519(0x257)],'data':{'unitID':this[_0x110519(0x1f3)],'operations':{[_0x20b761['id']]:{'id':_0x20b761['id'],'params':JSON[_0x110519(0x226)](_0x20b761['params'])}}}},this[_0x110519(0x1f3)]);})),_0x5862b[_0x3a51fd(0x21f)](_0x5c9182);})),this[_0x356df7(0x227)][_0x356df7(0x1ac)](this[_0x356df7(0x1f3)])['forEach'](_0x322181=>this['_collabSession'][_0x356df7(0x1d0)]({'eventID':d[_0x356df7(0x1be)][_0x356df7(0x257)],'data':{'unitID':this[_0x356df7(0x1f3)],'operations':{[_0x322181['id']]:{'id':_0x322181['id'],'params':JSON['stringify'](_0x322181['params'])}}}},this[_0x356df7(0x1f3)]));}[_0x4d6cd7(0x18a)](){const _0x28f290=_0x4d6cd7;var _0x4e1306;this[_0x28f290(0x1db)][_0x28f290(0x21f)](_0x28f290(0x207)),(_0x4e1306=this[_0x28f290(0x1de)])==null||_0x4e1306[_0x28f290(0x19d)](),this[_0x28f290(0x1de)]=null;}[_0x4d6cd7(0x1f4)](){const _0x16efe2=_0x4d6cd7;var _0x22209d;(_0x22209d=this[_0x16efe2(0x1de)])==null||_0x22209d[_0x16efe2(0x19d)](),this[_0x16efe2(0x1db)][_0x16efe2(0x21f)](_0x16efe2(0x219));}['_beIdle'](){const _0xec81b1=_0x4d6cd7;var _0x456554;this['_status$'][_0xec81b1(0x21f)](_0xec81b1(0x207)),(_0x456554=this[_0xec81b1(0x1de)])==null||_0x456554[_0xec81b1(0x19d)](),this[_0xec81b1(0x1de)]=null;}[_0x4d6cd7(0x217)](){const _0x4311a4=_0x4d6cd7;var _0xf72444;this['_status$'][_0x4311a4(0x21f)](_0x4311a4(0x1e8)),(_0xf72444=this[_0x4311a4(0x1de)])==null||_0xf72444[_0x4311a4(0x19d)]();}[_0x4d6cd7(0x21a)](_0x1bfb61){const _0x4224f6=_0x4d6cd7;if([_0x4224f6(0x190),_0x4224f6(0x1e8),_0x4224f6(0x18e)]['includes'](this['_status'])||!_0x1bfb61[_0x4224f6(0x241)][_0x4224f6(0x252)]||_0x1bfb61[_0x4224f6(0x241)][_0x4224f6(0x252)]===this['_collabSession']['getMemberID']())return;this[_0x4224f6(0x254)]===_0x4224f6(0x207)&&this['_startFollowing']();const _0x4436dc=_0x1bfb61['data'][_0x4224f6(0x1b9)];Object['values'](_0x4436dc)[_0x4224f6(0x229)](_0x3ef00b=>{const _0x4f9fe2=_0x4224f6;this[_0x4f9fe2(0x1a1)][_0x4f9fe2(0x1e1)](_0x3ef00b['id'],_0x3ef00b[_0x4f9fe2(0x251)]?JSON[_0x4f9fe2(0x1d2)](_0x3ef00b[_0x4f9fe2(0x251)]):null,{'fromCollab':!0x0});});}[_0x4d6cd7(0x1e6)](){const _0x5d15f0=_0x4d6cd7;var _0x1b750d;this[_0x5d15f0(0x1db)][_0x5d15f0(0x21f)]('offline'),(_0x1b750d=this[_0x5d15f0(0x1de)])==null||_0x1b750d['dispose']();}['_handleOnline'](){const _0x3cf325=_0x4d6cd7;this['_status$']['next'](_0x3cf325(0x207)),this[_0x3cf325(0x1bb)]();}},exports[_0x4d6cd7(0x19b)]=P([S(0x2,o[_0x4d6cd7(0x1af)]),S(0x3,o[_0x4d6cd7(0x1a5)](E)),S(0x4,o[_0x4d6cd7(0x1b0)])],exports['LiveShareCoordinator']);function $(){const _0x1f92cf=_0x4d6cd7,_0x529ede=p['useDependency'](exports[_0x1f92cf(0x192)]),_0x20ed28=p[_0x1f92cf(0x1bf)](o[_0x1f92cf(0x218)]),_0x4f2c67=p[_0x1f92cf(0x1ce)](()=>_0x20ed28[_0x1f92cf(0x200)](o[_0x1f92cf(0x214)][_0x1f92cf(0x1d5)]),void 0x0,!0x1,[]),[_0x2ea9e9,_0x5b972f]=v[_0x1f92cf(0x1cb)](null),[_0x4f7014,_0x330599]=v[_0x1f92cf(0x1cb)](u[_0x1f92cf(0x1b5)]),_0x1b9a21=v[_0x1f92cf(0x20b)](null);return v[_0x1f92cf(0x205)](()=>(_0x4f2c67&&_0x529ede[_0x1f92cf(0x211)](_0x4f2c67[_0x1f92cf(0x1dd)]())[_0x1f92cf(0x221)](_0x11000c=>{const _0x48640c=_0x1f92cf;_0x5b972f(_0x11000c),_0x1b9a21['current']=_0x11000c[_0x48640c(0x1f8)][_0x48640c(0x242)](_0x4a7dd1=>{_0x330599(_0x4a7dd1);});}),()=>{const _0x431320=_0x1f92cf;var _0x3c135b;(_0x3c135b=_0x1b9a21[_0x431320(0x201)])==null||_0x3c135b[_0x431320(0x187)](),_0x1b9a21[_0x431320(0x201)]=null;}),[_0x4f2c67,_0x529ede]),_0x2ea9e9?l[_0x1f92cf(0x1e0)](f['Dropdown'],{'align':'end','disabled':_0x4f7014===u[_0x1f92cf(0x1fc)],'className':_0x1f92cf(0x1c2),'overlay':l[_0x1f92cf(0x1e0)](W,{'status':_0x4f7014,'coordinator':_0x2ea9e9}),'children':l['jsx'](_0x1f92cf(0x239),{'className':f[_0x1f92cf(0x1e7)](_0x1f92cf(0x1f6),{'univer-cursor-not-allowed':_0x4f7014===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f7014!==u[_0x1f92cf(0x1fc)]}),'type':'button','children':l[_0x1f92cf(0x1e0)](R,{'className':_0x1f92cf(0x243)})})}):null;}function W(_0x511a13){const _0x458ed8=_0x4d6cd7,{status:_0x3fd435,coordinator:_0x2b1114}=_0x511a13;switch(_0x3fd435){case u[_0x458ed8(0x1b5)]:return l['jsx'](G,{'coordinator':_0x2b1114});case u[_0x458ed8(0x1ba)]:return l[_0x458ed8(0x1e0)](B,{'coordinator':_0x2b1114});case u[_0x458ed8(0x1e5)]:return l[_0x458ed8(0x1e0)](Y,{'coordinator':_0x2b1114});case u[_0x458ed8(0x1fc)]:return l['jsx'](J,{});case u[_0x458ed8(0x19c)]:return l[_0x458ed8(0x1e0)](Z,{'coordinator':_0x2b1114});default:return null;}}function G(_0x356f12){const _0x433520=_0x4d6cd7,{coordinator:_0x4f5d04}=_0x356f12;return l[_0x433520(0x21e)](l['Fragment'],{'children':[l[_0x433520(0x1e0)](_0x433520(0x1a9),{'className':_0x433520(0x1a4),'children':_0x433520(0x233)}),l[_0x433520(0x1e0)](f[_0x433520(0x1fe)],{'onClick':()=>_0x4f5d04[_0x433520(0x18c)](),'children':_0x433520(0x24f)})]});}function B(_0x342848){const _0x210719=_0x4d6cd7,{coordinator:_0x5d7782}=_0x342848;return l[_0x210719(0x21e)](l[_0x210719(0x1ec)],{'children':[l[_0x210719(0x1e0)]('div',{'className':_0x210719(0x1a4),'children':_0x210719(0x1c9)}),l[_0x210719(0x1e0)](f['Button'],{'onClick':()=>_0x5d7782[_0x210719(0x23b)](),'children':'Stop\x20following'})]});}function Y(_0x582684){const _0x4f134b=_0x4d6cd7,{coordinator:_0x2d0487}=_0x582684;return l[_0x4f134b(0x21e)](l['Fragment'],{'children':[l[_0x4f134b(0x1e0)]('div',{'className':_0x4f134b(0x1a4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x4f134b(0x1e0)](f[_0x4f134b(0x1fe)],{'variant':_0x4f134b(0x1c8),'onClick':()=>_0x2d0487[_0x4f134b(0x235)](),'children':_0x4f134b(0x236)})]});}function Z(_0x23cb22){const _0x5923d2=_0x4d6cd7,{coordinator:_0x4db20a}=_0x23cb22;return l[_0x5923d2(0x21e)](l['Fragment'],{'children':[l[_0x5923d2(0x1e0)](_0x5923d2(0x1a9),{'className':_0x5923d2(0x1a4),'children':_0x5923d2(0x1c1)}),l[_0x5923d2(0x1e0)](f['Button'],{'variant':_0x5923d2(0x1f5),'onClick':()=>_0x4db20a[_0x5923d2(0x220)](),'children':_0x5923d2(0x19f)})]});}function J(){const _0x3acd0f=_0x4d6cd7;return l[_0x3acd0f(0x1e0)](l[_0x3acd0f(0x1ec)],{'children':_0x3acd0f(0x185)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x1670cb,_0x534598,_0x171c9e,_0x20b657)=>{const _0x4413bc=_0x4d6cd7;for(var _0x4ad980=_0x20b657>0x1?void 0x0:_0x20b657?K(_0x534598,_0x171c9e):_0x534598,_0x4decea=_0x1670cb[_0x4413bc(0x1b7)]-0x1,_0x55e60e;_0x4decea>=0x0;_0x4decea--)(_0x55e60e=_0x1670cb[_0x4decea])&&(_0x4ad980=_0x55e60e(_0x4ad980)||_0x4ad980);return _0x4ad980;},L=(_0x187728,_0x311674)=>(_0x50d65a,_0x49693b)=>_0x311674(_0x50d65a,_0x49693b,_0x187728);exports[_0x4d6cd7(0x18b)]=class extends o[_0x4d6cd7(0x22b)]{constructor(_0x58cf1b,_0x4a7f83){const _0xdc855b=_0x4d6cd7;super(),this['_injector']=_0x58cf1b,this[_0xdc855b(0x1e9)]=_0x4a7f83,this[_0xdc855b(0x1b3)]();}[_0x4d6cd7(0x1b3)](){const _0x482f6b=_0x4d6cd7;this[_0x482f6b(0x1d9)](this[_0x482f6b(0x1e9)][_0x482f6b(0x1cf)](p['BuiltInUIPart'][_0x482f6b(0x195)],()=>p[_0x482f6b(0x1c4)]($,this[_0x482f6b(0x255)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x4d6cd7(0x1a5)](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x4d6cd7(0x18b)]);const Q=_0x4d6cd7(0x1d3),w={};var X=Object[_0x4d6cd7(0x1da)],ee=(_0x13a9a9,_0x3c69e6,_0x54a58c,_0x2ffcb8)=>{const _0x3e2bbd=_0x4d6cd7;for(var _0x20b714=_0x2ffcb8>0x1?void 0x0:_0x2ffcb8?X(_0x3c69e6,_0x54a58c):_0x3c69e6,_0x5344bc=_0x13a9a9[_0x3e2bbd(0x1b7)]-0x1,_0x22de94;_0x5344bc>=0x0;_0x5344bc--)(_0x22de94=_0x13a9a9[_0x5344bc])&&(_0x20b714=_0x22de94(_0x20b714)||_0x20b714);return _0x20b714;},te=(_0x4f4a00,_0x43542c)=>(_0x2a6b14,_0x394bca)=>_0x43542c(_0x2a6b14,_0x394bca,_0x4f4a00);let m=class extends o[_0x4d6cd7(0x22b)]{constructor(_0x249f89){const _0x4a949b=_0x4d6cd7;super(),this[_0x4a949b(0x227)]=_0x249f89,this[_0x4a949b(0x1b8)]();}[_0x4d6cd7(0x1b8)](){const _0xff1d91=_0x4d6cd7;[D[_0xff1d91(0x21c)]['id'],D[_0xff1d91(0x1c0)]['id'],C['SetWorksheetActiveOperation']['id']][_0xff1d91(0x229)](_0x542e88=>{const _0x5d48b8=_0xff1d91;this['disposeWithMe'](this[_0x5d48b8(0x227)]['registerSharedOperation'](_0x542e88));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x4d6cd7(0x245)],se=Object[_0x4d6cd7(0x1da)],ne=(_0x50f975,_0x30e938,_0x3c6185)=>_0x30e938 in _0x50f975?ie(_0x50f975,_0x30e938,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c6185}):_0x50f975[_0x30e938]=_0x3c6185,re=(_0x55151e,_0x3709f8,_0x55813f,_0x2dd6de)=>{for(var _0x32de60=_0x2dd6de>0x1?void 0x0:_0x2dd6de?se(_0x3709f8,_0x55813f):_0x3709f8,_0x25dd1c=_0x55151e['length']-0x1,_0x5b40c7;_0x25dd1c>=0x0;_0x25dd1c--)(_0x5b40c7=_0x55151e[_0x25dd1c])&&(_0x32de60=_0x5b40c7(_0x32de60)||_0x32de60);return _0x32de60;},N=(_0x418843,_0x1e5a3e)=>(_0x4277f7,_0x92861f)=>_0x1e5a3e(_0x4277f7,_0x92861f,_0x418843),A=(_0x1b9444,_0x37e014,_0x2ee4db)=>ne(_0x1b9444,typeof _0x37e014!='symbol'?_0x37e014+'':_0x37e014,_0x2ee4db);const oe=_0x4d6cd7(0x248);function _0x14b0(_0x31f1b5,_0x5576b9){_0x31f1b5=_0x31f1b5-0x185;const _0x35c573=_0x35c5();let _0x14b06b=_0x35c573[_0x31f1b5];return _0x14b06b;}exports[_0x4d6cd7(0x1d4)]=class extends o[_0x4d6cd7(0x253)]{constructor(_0x33027b=w,_0xab9016,_0x531931){const _0x539094=_0x4d6cd7;super(),this['_config']=_0x33027b,this[_0x539094(0x255)]=_0xab9016,this[_0x539094(0x1c7)]=_0x531931;const {..._0x23297f}=o[_0x539094(0x1ad)]({},w,this[_0x539094(0x1c5)]);this[_0x539094(0x1c7)][_0x539094(0x1a0)](Q,_0x23297f);}[_0x4d6cd7(0x1fd)](){const _0x2bb466=_0x4d6cd7;o['registerDependencies'](this[_0x2bb466(0x255)],o[_0x2bb466(0x1f1)]([[E],[exports[_0x2bb466(0x192)]],[m],[exports[_0x2bb466(0x18b)]]],this[_0x2bb466(0x1c5)]['override'])),o[_0x2bb466(0x222)](this['_injector'],[[m]]);}[_0x4d6cd7(0x1b2)](){const _0xad854f=_0x4d6cd7;o[_0xad854f(0x222)](this[_0xad854f(0x255)],[[exports[_0xad854f(0x18b)]]]);}},A(exports['UniverLiveSharePlugin'],_0x4d6cd7(0x1df),o[_0x4d6cd7(0x214)][_0x4d6cd7(0x204)]),A(exports[_0x4d6cd7(0x1d4)],_0x4d6cd7(0x23a),oe),exports[_0x4d6cd7(0x1d4)]=re([o['DependentOn'](b[_0x4d6cd7(0x258)]),N(0x1,o[_0x4d6cd7(0x1a5)](o[_0x4d6cd7(0x1d7)])),N(0x2,o[_0x4d6cd7(0x1af)])],exports[_0x4d6cd7(0x1d4)]),exports['LiveShare']=$,exports[_0x4d6cd7(0x1b6)]=E,exports[_0x4d6cd7(0x1fa)]=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 _0x13475b=_0x306e;(function(_0x20ba27,_0x12b028){const _0x41ffaa=_0x306e,_0x184059=_0x20ba27();while(!![]){try{const _0x1f2a57=parseInt(_0x41ffaa(0xf1))/0x1*(-parseInt(_0x41ffaa(0x110))/0x2)+parseInt(_0x41ffaa(0x102))/0x3*(-parseInt(_0x41ffaa(0xf0))/0x4)+parseInt(_0x41ffaa(0xf2))/0x5*(-parseInt(_0x41ffaa(0x10b))/0x6)+parseInt(_0x41ffaa(0x112))/0x7*(-parseInt(_0x41ffaa(0xfd))/0x8)+parseInt(_0x41ffaa(0x10d))/0x9+parseInt(_0x41ffaa(0xf3))/0xa*(parseInt(_0x41ffaa(0x109))/0xb)+parseInt(_0x41ffaa(0xff))/0xc*(parseInt(_0x41ffaa(0x113))/0xd);if(_0x1f2a57===_0x12b028)break;else _0x184059['push'](_0x184059['shift']());}catch(_0x32dac7){_0x184059['push'](_0x184059['shift']());}}}(_0x583d,0x630f1));import{LiveShareController as _0x3bb719,LiveShareStatus as _0x2a6fbe}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x13e804}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xa6e7d9}from'@univerjs/sheets';import{SetScrollOperation as _0x2e8aa1}from'@univerjs/sheets-ui';import{FRange as _0x550479}from'@univerjs/sheets/facade';function _0x583d(){const _0x478507=['409346pxwFVm','11978135AZwUPG','No\x20active\x20workbook\x20found.','97592lwZLfP','6KueuBD','5SDvkUP','11810LZhtnk','startFollowing','getLiveShareCoordinatorSync','extend','getActiveWorkbook','_injector','LiveShareStatusEnum','getUnitId','get','stopFollowing','80ohbYBP','syncExecuteCommand','12ErZXAF','IDLE','_initialize','69RXmnRj','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','tryStartPresenting','getActiveSheet','startColumn','startRow','5951yKOLau','PRESENTING','999276nnBdaZ','getId','1577619rxlwdx','getStatus','stopPresenting','5794QtfCkP','getSheetId'];_0x583d=function(){return _0x478507;};return _0x583d();}import{FUniver as _0x31d568,FEnum as _0x377e49}from'@univerjs/core/facade';class I extends _0x550479{[_0x13475b(0x101)](_0xcf0cc7,_0x9e4934,_0x191abe,_0x615cc1,_0x2f8c7d){const _0x2173b8=_0x13475b,_0x3ffaa7=_0xcf0cc7[_0x2173b8(0xfb)](_0x3bb719),_0xcfbdb4=_0xcf0cc7[_0x2173b8(0xfb)](_0x13e804),_0x1c87bf=_0x9e4934[_0x2173b8(0xfa)](),_0x305cbd=_0x9e4934[_0x2173b8(0x106)](),_0x284f68=_0x3ffaa7[_0x2173b8(0xf5)](_0x1c87bf);(_0x284f68==null?void 0x0:_0x284f68[_0x2173b8(0x10e)]())!==_0x2a6fbe[_0x2173b8(0x10a)]||(_0x191abe['getSheetId']()!==_0x305cbd[_0x2173b8(0x111)]()&&this['_commandService']['executeCommand'](_0xa6e7d9['id'],{'unitId':_0x1c87bf,'subUnitId':_0x191abe[_0x2173b8(0x111)]()}),!_0xcfbdb4['getRenderById'](_0x1c87bf))||_0x2f8c7d[_0x2173b8(0xfe)](_0x2e8aa1['id'],{'unitId':_0x9e4934[_0x2173b8(0xfa)](),'sheetId':_0x191abe[_0x2173b8(0x111)](),'sheetViewStartRow':_0x615cc1[_0x2173b8(0x108)],'sheetViewStartColumn':_0x615cc1[_0x2173b8(0x107)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x550479['extend'](I);class m extends _0x31d568{[_0x13475b(0x104)](){const _0x3f46dc=_0x13475b;var _0x4a7e70,_0x95ae5d;const _0x98ae25=this['_injector'][_0x3f46dc(0xfb)](_0x3bb719),_0x5c3bfc=(_0x4a7e70=this[_0x3f46dc(0xf7)]())==null?void 0x0:_0x4a7e70[_0x3f46dc(0x10c)]();if(!_0x5c3bfc)throw new Error('No\x20active\x20workbook\x20found.');const _0x38a727=_0x98ae25[_0x3f46dc(0xf5)](_0x5c3bfc);return(_0x95ae5d=_0x38a727==null?void 0x0:_0x38a727[_0x3f46dc(0x10e)]())!=null?_0x95ae5d:_0x2a6fbe[_0x3f46dc(0x100)];}[_0x13475b(0xf4)](){const _0x1a317f=_0x13475b;var _0x393c3b;const _0x4d321c=this[_0x1a317f(0xf8)][_0x1a317f(0xfb)](_0x3bb719),_0x28cd87=(_0x393c3b=this[_0x1a317f(0xf7)]())==null?void 0x0:_0x393c3b[_0x1a317f(0x10c)]();if(!_0x28cd87)throw new Error(_0x1a317f(0xef));const _0x4866f0=_0x4d321c['getLiveShareCoordinatorSync'](_0x28cd87);if(!_0x4866f0)throw new Error(_0x1a317f(0x103));_0x4866f0[_0x1a317f(0xf4)]();}[_0x13475b(0xfc)](){const _0x21850f=_0x13475b;var _0x43dc54;const _0x247b78=this['_injector'][_0x21850f(0xfb)](_0x3bb719),_0x2d8597=(_0x43dc54=this['getActiveWorkbook']())==null?void 0x0:_0x43dc54[_0x21850f(0x10c)]();if(!_0x2d8597)throw new Error(_0x21850f(0xef));const _0x4e393f=_0x247b78[_0x21850f(0xf5)](_0x2d8597);if(!_0x4e393f)throw new Error(_0x21850f(0x103));_0x4e393f[_0x21850f(0xfc)]();}['startPresenting'](){const _0xd16700=_0x13475b;var _0x170c89;const _0x60246d=this[_0xd16700(0xf8)][_0xd16700(0xfb)](_0x3bb719),_0x12c631=(_0x170c89=this[_0xd16700(0xf7)]())==null?void 0x0:_0x170c89[_0xd16700(0x10c)]();if(!_0x12c631)throw new Error(_0xd16700(0xef));const _0x347c39=_0x60246d[_0xd16700(0xf5)](_0x12c631);if(!_0x347c39)throw new Error(_0xd16700(0x103));_0x347c39[_0xd16700(0x105)]();}[_0x13475b(0x10f)](){const _0x8e6609=_0x13475b;var _0x5cd5e5;const _0x472d65=this[_0x8e6609(0xf8)][_0x8e6609(0xfb)](_0x3bb719),_0x3359f5=(_0x5cd5e5=this[_0x8e6609(0xf7)]())==null?void 0x0:_0x5cd5e5[_0x8e6609(0x10c)]();if(!_0x3359f5)throw new Error(_0x8e6609(0xef));const _0x4a0045=_0x472d65[_0x8e6609(0xf5)](_0x3359f5);if(!_0x4a0045)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4a0045[_0x8e6609(0x10f)]();}}_0x31d568['extend'](m);class C extends _0x377e49{get[_0x13475b(0xf9)](){return _0x2a6fbe;}}function _0x306e(_0x1834ae,_0x109aae){_0x1834ae=_0x1834ae-0xef;const _0x583da7=_0x583d();let _0x306e42=_0x583da7[_0x1834ae];return _0x306e42;}_0x377e49[_0x13475b(0xf6)](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 _0x5b5861=_0xa334;(function(_0x940b76,_0x3e06cd){const _0x5ddba1=_0xa334,_0x2712bc=_0x940b76();while(!![]){try{const _0x44ae39=parseInt(_0x5ddba1(0x1c3))/0x1*(parseInt(_0x5ddba1(0x1ef))/0x2)+-parseInt(_0x5ddba1(0x1a2))/0x3*(-parseInt(_0x5ddba1(0x1c7))/0x4)+-parseInt(_0x5ddba1(0x21a))/0x5+parseInt(_0x5ddba1(0x198))/0x6+parseInt(_0x5ddba1(0x1ff))/0x7+parseInt(_0x5ddba1(0x223))/0x8*(-parseInt(_0x5ddba1(0x194))/0x9)+parseInt(_0x5ddba1(0x20c))/0xa*(-parseInt(_0x5ddba1(0x1e8))/0xb);if(_0x44ae39===_0x3e06cd)break;else _0x2712bc['push'](_0x2712bc['shift']());}catch(_0x2c0d93){_0x2712bc['push'](_0x2712bc['shift']());}}}(_0x1b5c,0xaefbb));var J=Object['defineProperty'],K=(_0x571e1d,_0x583722,_0x457904)=>_0x583722 in _0x571e1d?J(_0x571e1d,_0x583722,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x457904}):_0x571e1d[_0x583722]=_0x457904,u=(_0x1c3cd4,_0x4d5b6b,_0x3d3913)=>K(_0x1c3cd4,typeof _0x4d5b6b!=_0x5b5861(0x1fb)?_0x4d5b6b+'':_0x4d5b6b,_0x3d3913);import{Disposable as _0xbd0411,toDisposable as _0x47586f,IUniverInstanceService as _0x4886c8,Inject as _0x85d7bd,Injector as _0x1a0d86,IConfigService as _0x51e68b,ICommandService as _0x1ea6ce,RxDisposable as _0x1e7142,UniverInstanceType as _0x7e82ed,DisposableCollection as _0x38d873,CommandType as _0x370490,DependentOn as _0x1365d5,Plugin as _0x57ad4d,merge as _0x339a10,registerDependencies as _0x2201e0,mergeOverrideWithDependencies as _0x22b641,touchDependencies as _0x44e6ef}from'@univerjs/core';import{useDependency as _0x4028ab,useObservable as _0x2a1f12,IUIPartsService as _0x25b092,BuiltInUIPart as _0x1d717f,connectInjector as _0x353c5a}from'@univerjs/ui';import{jsx as _0x2485d8,jsxs as _0x3633d3,Fragment as _0x25cd63}from'react/jsx-runtime';import{Dropdown as _0x4ed21b,clsx as _0x43e0fe,Button as _0x35ba61}from'@univerjs/design';import{useRef as _0x369264,createElement as _0x31575c,forwardRef as _0x17510d,useState as _0x3f7642,useEffect as _0x57b2a6}from'react';import{CollaborationEvent as _0x18e9cb,parseProtocolChangeset as _0x1ae33c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x257347,SessionStatus as _0x57a487,UniverCollaborationClientPlugin as _0x2946ae}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4210a9,SetWorksheetActiveOperation as _0x39eb88}from'@univerjs/sheets';import{BehaviorSubject as _0x3e663f,Subject as _0x4059b6}from'rxjs';import{takeUntil as _0x4b7809,throttleTime as _0x1ec35a}from'rxjs/operators';import{SetZoomRatioOperation as _0x11cc91,SetScrollOperation as _0x4c52de}from'@univerjs/sheets-ui';function k({ref:_0x276031,..._0x178009}){const _0x5eb254=_0x5b5861,{icon:_0x46ddae,id:_0x2bfbe2,className:_0x3a91c9,extend:_0x2d22f6,..._0x46cad4}=_0x178009,_0x5f0dcd=('univerjs-icon\x20univerjs-icon-'+_0x2bfbe2+'\x20'+(_0x3a91c9||''))[_0x5eb254(0x236)](),_0x42af45=_0x369264('_'+Oe());return G(_0x46ddae,''+_0x2bfbe2,{'defIds':_0x46ddae[_0x5eb254(0x22e)],'idSuffix':_0x42af45['current']},{'ref':_0x276031,'className':_0x5f0dcd,..._0x46cad4},_0x2d22f6);}function G(_0xe5140b,_0x10009f,_0x2a69ef,_0x4f048a,_0x2ae423){const _0x5a5e1c=_0x5b5861;return _0x31575c(_0xe5140b[_0x5a5e1c(0x1fd)],{'key':_0x10009f,...be(_0xe5140b,_0x2a69ef,_0x2ae423),..._0x4f048a},(Ee(_0xe5140b,_0x2a69ef)['children']||[])[_0x5a5e1c(0x1b8)]((_0x5610c4,_0x1ff3ee)=>G(_0x5610c4,_0x10009f+'-'+_0xe5140b[_0x5a5e1c(0x1fd)]+'-'+_0x1ff3ee,_0x2a69ef,void 0x0,_0x2ae423)));}function be(_0x454d5f,_0x1a7c57,_0x55e42c){const _0x50b9ae=_0x5b5861,_0x49adec={..._0x454d5f[_0x50b9ae(0x216)]};_0x55e42c!=null&&_0x55e42c[_0x50b9ae(0x1c0)]&&_0x49adec[_0x50b9ae(0x1d7)]===_0x50b9ae(0x1c0)&&(_0x49adec[_0x50b9ae(0x1d7)]=_0x55e42c[_0x50b9ae(0x1c0)]),_0x454d5f[_0x50b9ae(0x1fd)]===_0x50b9ae(0x21e)&&_0x49adec['id']&&(_0x49adec['id']=_0x49adec['id']+_0x1a7c57[_0x50b9ae(0x1cd)]),Object['entries'](_0x49adec)[_0x50b9ae(0x1af)](([_0x3de645,_0x23b4b3])=>{const _0x1280d4=_0x50b9ae;_0x3de645===_0x1280d4(0x21e)&&typeof _0x23b4b3==_0x1280d4(0x19f)&&(_0x49adec[_0x3de645]=_0x23b4b3[_0x1280d4(0x1e5)](/url\(#(.*)\)/,_0x1280d4(0x1ea)+_0x1a7c57[_0x1280d4(0x1cd)]+')'));});const {defIds:_0x1591cf}=_0x1a7c57;return!_0x1591cf||_0x1591cf[_0x50b9ae(0x1c4)]===0x0||(_0x454d5f[_0x50b9ae(0x1fd)]===_0x50b9ae(0x20d)&&_0x49adec[_0x50b9ae(0x1c5)]&&(_0x49adec[_0x50b9ae(0x1c5)]=_0x49adec[_0x50b9ae(0x1c5)]+_0x1a7c57[_0x50b9ae(0x1cd)]),Object['entries'](_0x49adec)[_0x50b9ae(0x1af)](([_0x12fbb5,_0xe1270d])=>{const _0x390ebb=_0x50b9ae;typeof _0xe1270d=='string'&&(_0x49adec[_0x12fbb5]=_0xe1270d['replace'](/url\(#(.*)\)/,_0x390ebb(0x1ea)+_0x1a7c57[_0x390ebb(0x1cd)]+')'));})),_0x49adec;}function Ee(_0x5b7cb2,_0x3e6d92){const _0x4b9ccb=_0x5b5861;var _0x30e6bf;const {defIds:_0x28b824}=_0x3e6d92;return!_0x28b824||_0x28b824['length']===0x0?_0x5b7cb2:_0x5b7cb2[_0x4b9ccb(0x1fd)]===_0x4b9ccb(0x1b2)&&((_0x30e6bf=_0x5b7cb2[_0x4b9ccb(0x20b)])!=null&&_0x30e6bf['length'])?{..._0x5b7cb2,'children':_0x5b7cb2[_0x4b9ccb(0x20b)]['map'](_0x210dbe=>typeof _0x210dbe['attrs']['id']==_0x4b9ccb(0x19f)&&_0x28b824&&_0x28b824['includes'](_0x210dbe[_0x4b9ccb(0x216)]['id'])?{..._0x210dbe,'attrs':{..._0x210dbe[_0x4b9ccb(0x216)],'id':_0x210dbe[_0x4b9ccb(0x216)]['id']+_0x3e6d92[_0x4b9ccb(0x1cd)]}}:_0x210dbe)}:_0x5b7cb2;}function Oe(){const _0x21bbfb=_0x5b5861;return Math[_0x21bbfb(0x1c8)]()['toString'](0x24)[_0x21bbfb(0x212)](0x2,0x8);}k['displayName']='UniverIcon';const we={'tag':_0x5b5861(0x1cf),'attrs':{'xmlns':_0x5b5861(0x192),'fill':_0x5b5861(0x1f2),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x5b5861(0x1eb)},'children':[{'tag':_0x5b5861(0x238),'attrs':{'fill':_0x5b5861(0x1e4),'d':_0x5b5861(0x1dd)}},{'tag':_0x5b5861(0x238),'attrs':{'fill':_0x5b5861(0x1e4),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5b5861(0x211),'clipRule':_0x5b5861(0x211)}}]},W=_0x17510d(function(_0x5b22da,_0x571346){return _0x31575c(k,Object['assign']({},_0x5b22da,{'id':'live-share-icon','ref':_0x571346,'icon':we}));});W[_0x5b5861(0x230)]=_0x5b5861(0x22b);class L extends _0xbd0411{constructor(){const _0x3305d5=_0x5b5861;super(...arguments),u(this,_0x3305d5(0x21c),new Set()),u(this,'_reporters',new Set());}[_0x5b5861(0x1b4)](_0x166997){const _0x409c97=_0x5b5861;return this[_0x409c97(0x21c)][_0x409c97(0x196)](_0x166997),_0x47586f(()=>this[_0x409c97(0x21c)][_0x409c97(0x1d6)](_0x166997));}[_0x5b5861(0x233)](_0x58f42c){const _0x352a52=_0x5b5861;return this[_0x352a52(0x1de)][_0x352a52(0x196)](_0x58f42c),_0x47586f(()=>this[_0x352a52(0x1de)]['delete'](_0x58f42c));}[_0x5b5861(0x1fc)](_0x43dc2b){const _0x482a2f=_0x5b5861;return this[_0x482a2f(0x21c)][_0x482a2f(0x20e)](_0x43dc2b);}[_0x5b5861(0x228)](_0xea8e23){const _0x5be529=_0x5b5861;return Array['from'](this[_0x5be529(0x1de)])['map'](_0x2308d4=>_0x2308d4(_0xea8e23));}}var Ne=Object[_0x5b5861(0x1a1)],Y=(_0x302acb,_0x327879,_0x402b2a,_0x2f19d3)=>{const _0x500ef3=_0x5b5861;for(var _0x8c1f20=_0x2f19d3>0x1?void 0x0:_0x2f19d3?Ne(_0x327879,_0x402b2a):_0x327879,_0x4ea0b7=_0x302acb[_0x500ef3(0x1c4)]-0x1,_0x49076f;_0x4ea0b7>=0x0;_0x4ea0b7--)(_0x49076f=_0x302acb[_0x4ea0b7])&&(_0x8c1f20=_0x49076f(_0x8c1f20)||_0x8c1f20);return _0x8c1f20;},_=(_0x2c1953,_0x5b04c2)=>(_0x4f59e2,_0x5528fc)=>_0x5b04c2(_0x4f59e2,_0x5528fc,_0x2c1953);let S=class extends _0x1e7142{constructor(_0x45178e,_0x258c65,_0x29a1d5){const _0x13bcad=_0x5b5861;super(),u(this,_0x13bcad(0x193),new Map()),(this[_0x13bcad(0x1bb)]=_0x45178e,this[_0x13bcad(0x1d1)]=_0x258c65,this[_0x13bcad(0x20a)]=_0x29a1d5,this[_0x13bcad(0x1e2)]());}async[_0x5b5861(0x1fa)](_0x2e4190){const _0x2c64b5=_0x5b5861;return this[_0x2c64b5(0x193)]['has'](_0x2e4190)||await this[_0x2c64b5(0x1a5)](_0x2e4190),this[_0x2c64b5(0x193)][_0x2c64b5(0x1e1)](_0x2e4190);}[_0x5b5861(0x1e6)](_0x2850b0){const _0xdc978=_0x5b5861;var _0x3cacbb;return(_0x3cacbb=this[_0xdc978(0x193)]['get'](_0x2850b0))!=null?_0x3cacbb:null;}['_init'](){const _0x22b73b=_0x5b5861;this[_0x22b73b(0x1bb)][_0x22b73b(0x1cc)](_0x7e82ed['UNIVER_SHEET'])[_0x22b73b(0x1b3)](_0x4b7809(this[_0x22b73b(0x1e0)]))['subscribe'](async _0x111cd5=>{const _0x29bc42=_0x22b73b,_0x1bdd25=_0x111cd5['getUnitId']();this[_0x29bc42(0x193)][_0x29bc42(0x20e)](_0x1bdd25)||this[_0x29bc42(0x1a5)](_0x1bdd25);}),this[_0x22b73b(0x1bb)]['getTypeOfUnitDisposed$'](_0x7e82ed[_0x22b73b(0x1a0)])[_0x22b73b(0x1b3)](_0x4b7809(this[_0x22b73b(0x1e0)]))[_0x22b73b(0x1dc)](_0x5c6dc3=>{const _0x1c69b1=_0x22b73b,_0x53f226=_0x5c6dc3['getUnitId'](),_0x4fba0a=this[_0x1c69b1(0x193)][_0x1c69b1(0x1e1)](_0x53f226);_0x4fba0a==null||_0x4fba0a[_0x1c69b1(0x19b)]();});}async['_startLiveShareCoordinator'](_0x346ab7){const _0x467071=_0x5b5861,_0x2189de=await this[_0x467071(0x20a)][_0x467071(0x22a)](_0x346ab7),_0x305f93=this[_0x467071(0x1d1)][_0x467071(0x1d5)](N,_0x346ab7,_0x2189de);return _0x305f93['init'](),this[_0x467071(0x193)]['set'](_0x346ab7,_0x305f93),_0x305f93;}};S=Y([_(0x0,_0x4886c8),_(0x1,_0x85d7bd(_0x1a0d86)),_(0x2,_0x85d7bd(_0x257347))],S);var c=(_0x45c6d7=>(_0x45c6d7[_0x5b5861(0x19a)]=_0x5b5861(0x1ec),_0x45c6d7[_0x5b5861(0x1ee)]=_0x5b5861(0x235),_0x45c6d7[_0x5b5861(0x204)]=_0x5b5861(0x1ab),_0x45c6d7['NOT_FOLLOWING']=_0x5b5861(0x1a8),_0x45c6d7[_0x5b5861(0x1f8)]=_0x5b5861(0x1aa),_0x45c6d7))(c||{});function _0x1b5c(){const _0x47730e=['current','map','presenter','disposeWithMe','_univerInstanceService','SAME_OPERATION_SHARE_INTERVAL','_commandService','_handleOperation','Present\x20this\x20document','colorChannel1','getStatus','data','16747sojLxX','length','xlink:href','UNIVER_LIVE_SHARE_PLUGIN','13096emAemp','random','div','status$','onCommandExecuted','getTypeOfUnitAdded$','idSuffix','Stop\x20following','svg','UNIVER_UNKNOWN','_injector','tryStartPresenting','reverse','unsubscribe','createInstance','delete','fill','univer-size-4','type','_configService','memberID','subscribe','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','_reporters','onRendered','dispose$','get','_init','next','currentColor','replace','getLiveShareCoordinatorSync','params','33xMqSsJ','_commandDisposable','url(#$1','1em','offline','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','128USsvtz','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','none','_handleNewChangeSets','_stopPresenting','getMemberID','_status$','values','PRESENTING','init','getLiveShareCoordinator','symbol','shouldShareOperation','tag','_mountLiveShare','9560502wWroVZ','getConfig','end','LIVESHARE_OPERATION','startFollowing','FOLLOWING','default','complete','LIVESHARE_FETCH_OPERATIONS','parse','OPERATION','_collabSessionService','children','3431380rxTzaC','use','has','executeCommand','ONLINE','evenodd','substring','_handleOnline','includes','onStarting','attrs','LIVESHARE_REQUEST_HOST','_unitID','_liveShareService','6725420dtmcPr','_startPresenting','_sharedOperations','stopFollowing','mask','_presenter','mutations','_handleNewHost','_uiPartsService','24AjhhTO','getValue','You\x27re\x20following\x20the\x20presenter','set','live-share.config','getInitialStates','then','requireSession','LiveShareIcon','pluginName','sessionStatus$','defIds','send','displayName','_handleOffline','Start','registerInitialStateReporter','LIVESHARE_TERMINATE','idle','trim','operations','path','_status','http://www.w3.org/2000/svg','_entities','152541bPFRaj','_stopFollowing','add','stringify','3283980JGprmE','NOT_FOLLOWING','OFFLINE','dispose','LIVESHARE_NEW_HOST','You\x27are\x20offline.','_collabSession','string','UNIVER_SHEET','getOwnPropertyDescriptor','144FvxtZq','getUnitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startLiveShareCoordinator','unitId','HEADER_MENU','not-following','find','presenting','following','_config','NEW_CHANGESETS','Start\x20following','forEach','_startFollowing','_handleTerminate','defs','pipe','registerSharedOperation','defineProperty','You\x27re\x20presenting\x20the\x20document'];_0x1b5c=function(){return _0x47730e;};return _0x1b5c();}const Ce=_0x5b5861(0x1bc),De=0xc8;let N=class extends _0x1e7142{constructor(_0x6dfeba,_0x3ddfca,_0x347362,_0x335dfa,_0x3906cd){const _0x292108=_0x5b5861;super(),u(this,_0x292108(0x1f6),new _0x3e663f('idle')),u(this,_0x292108(0x1ca),this[_0x292108(0x1f6)]['asObservable']()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x292108(0x21f),null),(this['_unitID']=_0x6dfeba,this['_collabSession']=_0x3ddfca,this[_0x292108(0x1da)]=_0x347362,this[_0x292108(0x219)]=_0x335dfa,this['_commandService']=_0x3906cd);}get[_0x5b5861(0x239)](){const _0x328375=_0x5b5861;return this['_status$'][_0x328375(0x224)]();}[_0x5b5861(0x19b)](){const _0x5b2f2a=_0x5b5861;var _0x2efbfc;(_0x2efbfc=this[_0x5b2f2a(0x1e9)])==null||_0x2efbfc[_0x5b2f2a(0x19b)](),this[_0x5b2f2a(0x1f6)][_0x5b2f2a(0x1e3)](_0x5b2f2a(0x235)),this[_0x5b2f2a(0x1f6)][_0x5b2f2a(0x206)]();}[_0x5b5861(0x1c1)](){const _0x3139d6=_0x5b5861;return this[_0x3139d6(0x239)];}[_0x5b5861(0x1f9)](){const _0x334711=_0x5b5861;this['_init']||(this[_0x334711(0x1e2)]=!0x0,this['_collabSession'][_0x334711(0x22d)][_0x334711(0x1b3)](_0x4b7809(this[_0x334711(0x1e0)]))[_0x334711(0x1dc)](_0xdb4437=>{const _0x58d913=_0x334711;switch(_0xdb4437){case _0x57a487[_0x58d913(0x19a)]:this[_0x58d913(0x231)]();break;case _0x57a487[_0x58d913(0x210)]:this[_0x58d913(0x213)]();break;}}),this['_collabSession']['event$'][_0x334711(0x1b3)](_0x4b7809(this[_0x334711(0x1e0)]))['subscribe'](_0x215d3a=>{const _0x3c275c=_0x334711,{eventID:_0x3aa0f0}=_0x215d3a;switch(_0x3aa0f0){case _0x18e9cb[_0x3c275c(0x19c)]:this[_0x3c275c(0x221)](_0x215d3a);break;case _0x18e9cb[_0x3c275c(0x202)]:this['_handleOperation'](_0x215d3a);break;case _0x18e9cb['LIVESHARE_TERMINATE']:this[_0x3c275c(0x1b1)]();break;case _0x18e9cb[_0x3c275c(0x1ad)]:this[_0x3c275c(0x1f3)](_0x215d3a);break;}}));}[_0x5b5861(0x1d2)](){const _0x5b9c2d=_0x5b5861;this['_collabSession'][_0x5b9c2d(0x22f)]({'eventID':_0x18e9cb[_0x5b9c2d(0x217)],'data':{'unitID':this[_0x5b9c2d(0x218)],'userID':this['_collabSession'][_0x5b9c2d(0x1f5)]()}},this['_unitID']);}['stopPresenting'](){const _0x4b7042=_0x5b5861;this[_0x4b7042(0x239)]===_0x4b7042(0x1aa)&&(this[_0x4b7042(0x1f6)][_0x4b7042(0x1e3)](_0x4b7042(0x235)),this[_0x4b7042(0x19e)]['send']({'eventID':_0x18e9cb[_0x4b7042(0x234)],'data':{'unitID':this['_unitID']}},this[_0x4b7042(0x218)]));}['startFollowing'](){const _0x22c374=_0x5b5861;this[_0x22c374(0x239)]==='not-following'&&(this['_status$']['next']('following'),this[_0x22c374(0x1b0)]());}[_0x5b5861(0x21d)](){const _0x16cc75=_0x5b5861;this[_0x16cc75(0x239)]===_0x16cc75(0x1ab)&&this[_0x16cc75(0x195)]();}[_0x5b5861(0x221)](_0x2b06b4){const _0x41656c=_0x5b5861,{presenter:_0x2e6bc5}=_0x2b06b4[_0x41656c(0x1c2)],_0x2682f9=this['_collabSession'][_0x41656c(0x1f5)]();this[_0x41656c(0x21f)]=_0x2e6bc5,_0x2e6bc5===_0x2682f9?(this[_0x41656c(0x195)](),this[_0x41656c(0x21b)]()):this[_0x41656c(0x239)]!==_0x41656c(0x1a8)&&(this['_stopPresenting'](),this[_0x41656c(0x1b0)]());}['_fetchOperations'](){const _0x3cf453=_0x5b5861,_0x3ee071={'eventID':_0x18e9cb[_0x3cf453(0x207)]};this[_0x3cf453(0x19e)]['send'](_0x3ee071,this[_0x3cf453(0x218)]);}[_0x5b5861(0x1b1)](){const _0x25a836=_0x5b5861;this[_0x25a836(0x21f)]=null,this[_0x25a836(0x239)]!==_0x25a836(0x1aa)&&this[_0x25a836(0x1f0)]();}[_0x5b5861(0x1f3)](_0xe574cc){const _0x2f9804=_0x5b5861;if(this[_0x2f9804(0x239)]===_0x2f9804(0x1ab)&&this[_0x2f9804(0x21f)]===_0xe574cc['data'][_0x2f9804(0x1db)]){const _0x2c10b8=_0x1ae33c(_0xe574cc[_0x2f9804(0x1c2)])[_0x2f9804(0x220)][_0x2f9804(0x1d3)]()[_0x2f9804(0x1a9)](_0x1e4ce7=>_0x1e4ce7['id']===_0x4210a9['id']);if(_0x2c10b8){const _0x19335b=_0x2c10b8['params'][_0x2f9804(0x1a6)],_0x36810d=_0x2c10b8[_0x2f9804(0x1e7)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x39eb88['id'],{'unitId':_0x19335b,'subUnitId':_0x36810d},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x541948=_0x5b5861;this[_0x541948(0x1f6)][_0x541948(0x1e3)]('presenting');const _0x3bbd2a=new Map(),_0x3f5884=this[_0x541948(0x1e9)]=new _0x38d873();_0x3f5884[_0x541948(0x196)](_0x47586f(()=>{const _0x4e1410=_0x541948;_0x3bbd2a[_0x4e1410(0x1af)](_0x3ef4a9=>_0x3ef4a9['complete']()),_0x3bbd2a['clear']();})),_0x3f5884['add'](this[_0x541948(0x1bd)][_0x541948(0x1cb)](_0xbe3d8f=>{const _0x5cfc54=_0x541948;var _0x489ed5;if(_0xbe3d8f['type']!==_0x370490[_0x5cfc54(0x209)]||!this[_0x5cfc54(0x219)]['shouldShareOperation'](_0xbe3d8f['id']))return;const {id:_0x3d333a}=_0xbe3d8f;let _0x365653;_0x3bbd2a['has'](_0x3d333a)?_0x365653=_0x3bbd2a[_0x5cfc54(0x1e1)](_0x3d333a):(_0x365653=new _0x4059b6(),_0x3bbd2a[_0x5cfc54(0x226)](_0x3d333a,_0x365653),_0x365653['pipe'](_0x1ec35a((_0x489ed5=this[_0x5cfc54(0x1da)][_0x5cfc54(0x200)](Ce))!=null?_0x489ed5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5cfc54(0x1dc)](_0xfade8b=>{const _0x10425c=_0x5cfc54;this[_0x10425c(0x19e)][_0x10425c(0x22f)]({'eventID':_0x18e9cb[_0x10425c(0x202)],'data':{'unitID':this[_0x10425c(0x218)],'operations':{[_0xfade8b['id']]:{'id':_0xfade8b['id'],'params':JSON[_0x10425c(0x197)](_0xfade8b[_0x10425c(0x1e7)])}}}},this[_0x10425c(0x218)]);})),_0x365653[_0x5cfc54(0x1e3)](_0xbe3d8f);})),this[_0x541948(0x219)]['getInitialStates'](this[_0x541948(0x218)])['forEach'](_0x3fc9c9=>this[_0x541948(0x19e)][_0x541948(0x22f)]({'eventID':_0x18e9cb[_0x541948(0x202)],'data':{'unitID':this[_0x541948(0x218)],'operations':{[_0x3fc9c9['id']]:{'id':_0x3fc9c9['id'],'params':JSON['stringify'](_0x3fc9c9[_0x541948(0x1e7)])}}}},this[_0x541948(0x218)]));}[_0x5b5861(0x1f4)](){const _0x48d7c7=_0x5b5861;var _0x1ffe63;this['_status$']['next'](_0x48d7c7(0x235)),(_0x1ffe63=this[_0x48d7c7(0x1e9)])==null||_0x1ffe63[_0x48d7c7(0x19b)](),this[_0x48d7c7(0x1e9)]=null;}['_startFollowing'](){const _0xaefdea=_0x5b5861;var _0x1a9cff;(_0x1a9cff=this[_0xaefdea(0x1e9)])==null||_0x1a9cff[_0xaefdea(0x19b)](),this[_0xaefdea(0x1f6)][_0xaefdea(0x1e3)](_0xaefdea(0x1ab));}[_0x5b5861(0x1f0)](){const _0x57c0e6=_0x5b5861;var _0x13f837;this['_status$'][_0x57c0e6(0x1e3)]('idle'),(_0x13f837=this['_commandDisposable'])==null||_0x13f837[_0x57c0e6(0x19b)](),this[_0x57c0e6(0x1e9)]=null;}[_0x5b5861(0x195)](){const _0x56d5ec=_0x5b5861;var _0x1d4977;this[_0x56d5ec(0x1f6)][_0x56d5ec(0x1e3)](_0x56d5ec(0x1a8)),(_0x1d4977=this[_0x56d5ec(0x1e9)])==null||_0x1d4977[_0x56d5ec(0x19b)]();}[_0x5b5861(0x1be)](_0xf7d74b){const _0x462d77=_0x5b5861;if([_0x462d77(0x1aa),'not-following','offline'][_0x462d77(0x214)](this['_status'])||!_0xf7d74b[_0x462d77(0x1c2)]['presenter']||_0xf7d74b[_0x462d77(0x1c2)][_0x462d77(0x1b9)]===this[_0x462d77(0x19e)][_0x462d77(0x1f5)]())return;this[_0x462d77(0x239)]===_0x462d77(0x235)&&this[_0x462d77(0x1b0)]();const _0x565242=_0xf7d74b[_0x462d77(0x1c2)][_0x462d77(0x237)];Object[_0x462d77(0x1f7)](_0x565242)[_0x462d77(0x1af)](_0x17f4dc=>{const _0x25ca95=_0x462d77;this[_0x25ca95(0x1bd)][_0x25ca95(0x20f)](_0x17f4dc['id'],_0x17f4dc['params']?JSON[_0x25ca95(0x208)](_0x17f4dc[_0x25ca95(0x1e7)]):null,{'fromCollab':!0x0});});}[_0x5b5861(0x231)](){const _0x46763e=_0x5b5861;var _0x1cacfe;this['_status$']['next'](_0x46763e(0x1ec)),(_0x1cacfe=this[_0x46763e(0x1e9)])==null||_0x1cacfe[_0x46763e(0x19b)]();}[_0x5b5861(0x213)](){const _0x407064=_0x5b5861;this['_status$'][_0x407064(0x1e3)](_0x407064(0x235)),this['_fetchOperations']();}};N=Y([_(0x2,_0x51e68b),_(0x3,_0x85d7bd(L)),_(0x4,_0x1ea6ce)],N);function Le(){const _0x37c9ae=_0x5b5861,_0x1e7e28=_0x4028ab(S),_0x56adbd=_0x4028ab(_0x4886c8),_0x5c12d1=_0x2a1f12(()=>_0x56adbd['getCurrentTypeOfUnit$'](_0x7e82ed[_0x37c9ae(0x1a0)]),void 0x0,!0x1,[]),[_0x21c759,_0x4901fd]=_0x3f7642(null),[_0x4980a3,_0x344e24]=_0x3f7642(c[_0x37c9ae(0x1ee)]),_0x3d84ce=_0x369264(null);return _0x57b2a6(()=>(_0x5c12d1&&_0x1e7e28[_0x37c9ae(0x1fa)](_0x5c12d1[_0x37c9ae(0x1a3)]())[_0x37c9ae(0x229)](_0xe045e5=>{const _0x527775=_0x37c9ae;_0x4901fd(_0xe045e5),_0x3d84ce[_0x527775(0x1b7)]=_0xe045e5[_0x527775(0x1ca)][_0x527775(0x1dc)](_0x4fafad=>{_0x344e24(_0x4fafad);});}),()=>{const _0x554c38=_0x37c9ae;var _0x3107c2;(_0x3107c2=_0x3d84ce['current'])==null||_0x3107c2[_0x554c38(0x1d4)](),_0x3d84ce[_0x554c38(0x1b7)]=null;}),[_0x5c12d1,_0x1e7e28]),_0x21c759?_0x2485d8(_0x4ed21b,{'align':_0x37c9ae(0x201),'disabled':_0x4980a3===c[_0x37c9ae(0x19a)],'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':_0x2485d8(Re,{'status':_0x4980a3,'coordinator':_0x21c759}),'children':_0x2485d8('button',{'className':_0x43e0fe(_0x37c9ae(0x1a4),{'univer-cursor-not-allowed':_0x4980a3===c[_0x37c9ae(0x19a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4980a3!==c[_0x37c9ae(0x19a)]}),'type':'button','children':_0x2485d8(W,{'className':_0x37c9ae(0x1d8)})})}):null;}function Re(_0x1670a2){const _0x5acaba=_0x5b5861,{status:_0xe184ee,coordinator:_0x634433}=_0x1670a2;switch(_0xe184ee){case c[_0x5acaba(0x1ee)]:return _0x2485d8($e,{'coordinator':_0x634433});case c['FOLLOWING']:return _0x2485d8(xe,{'coordinator':_0x634433});case c[_0x5acaba(0x199)]:return _0x2485d8(Pe,{'coordinator':_0x634433});case c['OFFLINE']:return _0x2485d8(Te,{});case c[_0x5acaba(0x1f8)]:return _0x2485d8(Ae,{'coordinator':_0x634433});default:return null;}}function $e(_0x17c245){const _0x5ef1a9=_0x5b5861,{coordinator:_0x2a4025}=_0x17c245;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8(_0x5ef1a9(0x1c9),{'className':_0x5ef1a9(0x1f1),'children':_0x5ef1a9(0x1bf)}),_0x2485d8(_0x35ba61,{'onClick':()=>_0x2a4025[_0x5ef1a9(0x1d2)](),'children':_0x5ef1a9(0x232)})]});}function xe(_0x3b964d){const _0x315997=_0x5b5861,{coordinator:_0x55fed5}=_0x3b964d;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8('div',{'className':_0x315997(0x1f1),'children':_0x315997(0x225)}),_0x2485d8(_0x35ba61,{'onClick':()=>_0x55fed5[_0x315997(0x21d)](),'children':_0x315997(0x1ce)})]});}function Pe(_0x3d4d5d){const _0x259c30=_0x5b5861,{coordinator:_0x7aa90a}=_0x3d4d5d;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8(_0x259c30(0x1c9),{'className':_0x259c30(0x1f1),'children':_0x259c30(0x1ed)}),_0x2485d8(_0x35ba61,{'variant':'text','onClick':()=>_0x7aa90a[_0x259c30(0x203)](),'children':_0x259c30(0x1ae)})]});}function Ae(_0x4fac86){const _0x2cdfbf=_0x5b5861,{coordinator:_0x3d4d49}=_0x4fac86;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8('div',{'className':_0x2cdfbf(0x1f1),'children':_0x2cdfbf(0x1b6)}),_0x2485d8(_0x35ba61,{'variant':_0x2cdfbf(0x205),'onClick':()=>_0x3d4d49['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x2c30e3=_0x5b5861;return _0x2485d8(_0x25cd63,{'children':_0x2c30e3(0x19d)});}var Fe=Object[_0x5b5861(0x1a1)],He=(_0x3a2c04,_0x501f60,_0x1d8caf,_0x5eac4c)=>{const _0x20282e=_0x5b5861;for(var _0x14718d=_0x5eac4c>0x1?void 0x0:_0x5eac4c?Fe(_0x501f60,_0x1d8caf):_0x501f60,_0x41c796=_0x3a2c04[_0x20282e(0x1c4)]-0x1,_0x5e736d;_0x41c796>=0x0;_0x41c796--)(_0x5e736d=_0x3a2c04[_0x41c796])&&(_0x14718d=_0x5e736d(_0x14718d)||_0x14718d);return _0x14718d;},A=(_0x10ecb3,_0x1ca439)=>(_0x5d59fb,_0x533c08)=>_0x1ca439(_0x5d59fb,_0x533c08,_0x10ecb3);let m=class extends _0xbd0411{constructor(_0x25a528,_0x3eda7e){const _0x4a53a0=_0x5b5861;super(),this['_injector']=_0x25a528,this[_0x4a53a0(0x222)]=_0x3eda7e,this[_0x4a53a0(0x1fe)]();}[_0x5b5861(0x1fe)](){const _0x5298b4=_0x5b5861;this[_0x5298b4(0x1ba)](this[_0x5298b4(0x222)]['registerComponent'](_0x1d717f[_0x5298b4(0x1a7)],()=>_0x353c5a(Le,this[_0x5298b4(0x1d1)])));}};m=He([A(0x0,_0x85d7bd(_0x1a0d86)),A(0x1,_0x25b092)],m);const ye=_0x5b5861(0x227),T={};var Ue=Object[_0x5b5861(0x1a1)],Ve=(_0x56dc2e,_0x4c7355,_0x47345d,_0x22f5f6)=>{for(var _0x5234b6=_0x22f5f6>0x1?void 0x0:_0x22f5f6?Ue(_0x4c7355,_0x47345d):_0x4c7355,_0x20bb5f=_0x56dc2e['length']-0x1,_0x107414;_0x20bb5f>=0x0;_0x20bb5f--)(_0x107414=_0x56dc2e[_0x20bb5f])&&(_0x5234b6=_0x107414(_0x5234b6)||_0x5234b6);return _0x5234b6;},je=(_0xbd846d,_0x2cf4df)=>(_0xe5ad6d,_0xdabbaa)=>_0x2cf4df(_0xe5ad6d,_0xdabbaa,_0xbd846d);let I=class extends _0xbd0411{constructor(_0x2b79a4){const _0x374144=_0x5b5861;super(),this[_0x374144(0x219)]=_0x2b79a4,this[_0x374144(0x1e2)]();}[_0x5b5861(0x1e2)](){const _0x139a05=_0x5b5861;[_0x11cc91['id'],_0x4c52de['id'],_0x39eb88['id']][_0x139a05(0x1af)](_0x529b3d=>{const _0x47f1f3=_0x139a05;this[_0x47f1f3(0x1ba)](this[_0x47f1f3(0x219)]['registerSharedOperation'](_0x529b3d));});}};function _0xa334(_0x5ce1d0,_0xe67869){_0x5ce1d0=_0x5ce1d0-0x192;const _0x1b5c29=_0x1b5c();let _0xa3348c=_0x1b5c29[_0x5ce1d0];return _0xa3348c;}I=Ve([je(0x0,_0x85d7bd(L))],I);var Me=Object[_0x5b5861(0x1b5)],ke=Object[_0x5b5861(0x1a1)],Ge=(_0x111328,_0x4c459b,_0x5e3a7b)=>_0x4c459b in _0x111328?Me(_0x111328,_0x4c459b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e3a7b}):_0x111328[_0x4c459b]=_0x5e3a7b,We=(_0x20f138,_0x33db63,_0x50f866,_0x148ef0)=>{const _0x2b5cad=_0x5b5861;for(var _0x32b944=_0x148ef0>0x1?void 0x0:_0x148ef0?ke(_0x33db63,_0x50f866):_0x33db63,_0x4cfc81=_0x20f138[_0x2b5cad(0x1c4)]-0x1,_0x31ba2e;_0x4cfc81>=0x0;_0x4cfc81--)(_0x31ba2e=_0x20f138[_0x4cfc81])&&(_0x32b944=_0x31ba2e(_0x32b944)||_0x32b944);return _0x32b944;},F=(_0x57221a,_0x358b54)=>(_0x586c80,_0x23cf9b)=>_0x358b54(_0x586c80,_0x23cf9b,_0x57221a),B=(_0x5886f6,_0x34c042,_0x881c93)=>Ge(_0x5886f6,typeof _0x34c042!='symbol'?_0x34c042+'':_0x34c042,_0x881c93);const Ye=_0x5b5861(0x1c6);let b=class extends _0x57ad4d{constructor(_0x1e74b7=T,_0x5f4ece,_0x17189d){const _0x7e9389=_0x5b5861;super(),this[_0x7e9389(0x1ac)]=_0x1e74b7,this[_0x7e9389(0x1d1)]=_0x5f4ece,this[_0x7e9389(0x1da)]=_0x17189d;const {..._0x4cc3a9}=_0x339a10({},T,this[_0x7e9389(0x1ac)]);this[_0x7e9389(0x1da)]['setConfig'](ye,_0x4cc3a9);}[_0x5b5861(0x215)](){const _0x5014fb=_0x5b5861;_0x2201e0(this[_0x5014fb(0x1d1)],_0x22b641([[L],[S],[I],[m]],this[_0x5014fb(0x1ac)]['override'])),_0x44e6ef(this[_0x5014fb(0x1d1)],[[I]]);}[_0x5b5861(0x1df)](){const _0x17cef4=_0x5b5861;_0x44e6ef(this[_0x17cef4(0x1d1)],[[m]]);}};B(b,_0x5b5861(0x1d9),_0x7e82ed[_0x5b5861(0x1d0)]),B(b,_0x5b5861(0x22c),Ye),b=We([_0x1365d5(_0x2946ae),F(0x1,_0x85d7bd(_0x1a0d86)),F(0x2,_0x51e68b)],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 _0x13475b=_0x306e;(function(_0x20ba27,_0x12b028){const _0x41ffaa=_0x306e,_0x184059=_0x20ba27();while(!![]){try{const _0x1f2a57=parseInt(_0x41ffaa(0xf1))/0x1*(-parseInt(_0x41ffaa(0x110))/0x2)+parseInt(_0x41ffaa(0x102))/0x3*(-parseInt(_0x41ffaa(0xf0))/0x4)+parseInt(_0x41ffaa(0xf2))/0x5*(-parseInt(_0x41ffaa(0x10b))/0x6)+parseInt(_0x41ffaa(0x112))/0x7*(-parseInt(_0x41ffaa(0xfd))/0x8)+parseInt(_0x41ffaa(0x10d))/0x9+parseInt(_0x41ffaa(0xf3))/0xa*(parseInt(_0x41ffaa(0x109))/0xb)+parseInt(_0x41ffaa(0xff))/0xc*(parseInt(_0x41ffaa(0x113))/0xd);if(_0x1f2a57===_0x12b028)break;else _0x184059['push'](_0x184059['shift']());}catch(_0x32dac7){_0x184059['push'](_0x184059['shift']());}}}(_0x583d,0x630f1));import{LiveShareController as _0x3bb719,LiveShareStatus as _0x2a6fbe}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x13e804}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xa6e7d9}from'@univerjs/sheets';import{SetScrollOperation as _0x2e8aa1}from'@univerjs/sheets-ui';import{FRange as _0x550479}from'@univerjs/sheets/facade';function _0x583d(){const _0x478507=['409346pxwFVm','11978135AZwUPG','No\x20active\x20workbook\x20found.','97592lwZLfP','6KueuBD','5SDvkUP','11810LZhtnk','startFollowing','getLiveShareCoordinatorSync','extend','getActiveWorkbook','_injector','LiveShareStatusEnum','getUnitId','get','stopFollowing','80ohbYBP','syncExecuteCommand','12ErZXAF','IDLE','_initialize','69RXmnRj','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','tryStartPresenting','getActiveSheet','startColumn','startRow','5951yKOLau','PRESENTING','999276nnBdaZ','getId','1577619rxlwdx','getStatus','stopPresenting','5794QtfCkP','getSheetId'];_0x583d=function(){return _0x478507;};return _0x583d();}import{FUniver as _0x31d568,FEnum as _0x377e49}from'@univerjs/core/facade';class I extends _0x550479{[_0x13475b(0x101)](_0xcf0cc7,_0x9e4934,_0x191abe,_0x615cc1,_0x2f8c7d){const _0x2173b8=_0x13475b,_0x3ffaa7=_0xcf0cc7[_0x2173b8(0xfb)](_0x3bb719),_0xcfbdb4=_0xcf0cc7[_0x2173b8(0xfb)](_0x13e804),_0x1c87bf=_0x9e4934[_0x2173b8(0xfa)](),_0x305cbd=_0x9e4934[_0x2173b8(0x106)](),_0x284f68=_0x3ffaa7[_0x2173b8(0xf5)](_0x1c87bf);(_0x284f68==null?void 0x0:_0x284f68[_0x2173b8(0x10e)]())!==_0x2a6fbe[_0x2173b8(0x10a)]||(_0x191abe['getSheetId']()!==_0x305cbd[_0x2173b8(0x111)]()&&this['_commandService']['executeCommand'](_0xa6e7d9['id'],{'unitId':_0x1c87bf,'subUnitId':_0x191abe[_0x2173b8(0x111)]()}),!_0xcfbdb4['getRenderById'](_0x1c87bf))||_0x2f8c7d[_0x2173b8(0xfe)](_0x2e8aa1['id'],{'unitId':_0x9e4934[_0x2173b8(0xfa)](),'sheetId':_0x191abe[_0x2173b8(0x111)](),'sheetViewStartRow':_0x615cc1[_0x2173b8(0x108)],'sheetViewStartColumn':_0x615cc1[_0x2173b8(0x107)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x550479['extend'](I);class m extends _0x31d568{[_0x13475b(0x104)](){const _0x3f46dc=_0x13475b;var _0x4a7e70,_0x95ae5d;const _0x98ae25=this['_injector'][_0x3f46dc(0xfb)](_0x3bb719),_0x5c3bfc=(_0x4a7e70=this[_0x3f46dc(0xf7)]())==null?void 0x0:_0x4a7e70[_0x3f46dc(0x10c)]();if(!_0x5c3bfc)throw new Error('No\x20active\x20workbook\x20found.');const _0x38a727=_0x98ae25[_0x3f46dc(0xf5)](_0x5c3bfc);return(_0x95ae5d=_0x38a727==null?void 0x0:_0x38a727[_0x3f46dc(0x10e)]())!=null?_0x95ae5d:_0x2a6fbe[_0x3f46dc(0x100)];}[_0x13475b(0xf4)](){const _0x1a317f=_0x13475b;var _0x393c3b;const _0x4d321c=this[_0x1a317f(0xf8)][_0x1a317f(0xfb)](_0x3bb719),_0x28cd87=(_0x393c3b=this[_0x1a317f(0xf7)]())==null?void 0x0:_0x393c3b[_0x1a317f(0x10c)]();if(!_0x28cd87)throw new Error(_0x1a317f(0xef));const _0x4866f0=_0x4d321c['getLiveShareCoordinatorSync'](_0x28cd87);if(!_0x4866f0)throw new Error(_0x1a317f(0x103));_0x4866f0[_0x1a317f(0xf4)]();}[_0x13475b(0xfc)](){const _0x21850f=_0x13475b;var _0x43dc54;const _0x247b78=this['_injector'][_0x21850f(0xfb)](_0x3bb719),_0x2d8597=(_0x43dc54=this['getActiveWorkbook']())==null?void 0x0:_0x43dc54[_0x21850f(0x10c)]();if(!_0x2d8597)throw new Error(_0x21850f(0xef));const _0x4e393f=_0x247b78[_0x21850f(0xf5)](_0x2d8597);if(!_0x4e393f)throw new Error(_0x21850f(0x103));_0x4e393f[_0x21850f(0xfc)]();}['startPresenting'](){const _0xd16700=_0x13475b;var _0x170c89;const _0x60246d=this[_0xd16700(0xf8)][_0xd16700(0xfb)](_0x3bb719),_0x12c631=(_0x170c89=this[_0xd16700(0xf7)]())==null?void 0x0:_0x170c89[_0xd16700(0x10c)]();if(!_0x12c631)throw new Error(_0xd16700(0xef));const _0x347c39=_0x60246d[_0xd16700(0xf5)](_0x12c631);if(!_0x347c39)throw new Error(_0xd16700(0x103));_0x347c39[_0xd16700(0x105)]();}[_0x13475b(0x10f)](){const _0x8e6609=_0x13475b;var _0x5cd5e5;const _0x472d65=this[_0x8e6609(0xf8)][_0x8e6609(0xfb)](_0x3bb719),_0x3359f5=(_0x5cd5e5=this[_0x8e6609(0xf7)]())==null?void 0x0:_0x5cd5e5[_0x8e6609(0x10c)]();if(!_0x3359f5)throw new Error(_0x8e6609(0xef));const _0x4a0045=_0x472d65[_0x8e6609(0xf5)](_0x3359f5);if(!_0x4a0045)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4a0045[_0x8e6609(0x10f)]();}}_0x31d568['extend'](m);class C extends _0x377e49{get[_0x13475b(0xf9)](){return _0x2a6fbe;}}function _0x306e(_0x1834ae,_0x109aae){_0x1834ae=_0x1834ae-0xef;const _0x583da7=_0x583d();let _0x306e42=_0x583da7[_0x1834ae];return _0x306e42;}_0x377e49[_0x13475b(0xf6)](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 _0x5b5861=_0xa334;(function(_0x940b76,_0x3e06cd){const _0x5ddba1=_0xa334,_0x2712bc=_0x940b76();while(!![]){try{const _0x44ae39=parseInt(_0x5ddba1(0x1c3))/0x1*(parseInt(_0x5ddba1(0x1ef))/0x2)+-parseInt(_0x5ddba1(0x1a2))/0x3*(-parseInt(_0x5ddba1(0x1c7))/0x4)+-parseInt(_0x5ddba1(0x21a))/0x5+parseInt(_0x5ddba1(0x198))/0x6+parseInt(_0x5ddba1(0x1ff))/0x7+parseInt(_0x5ddba1(0x223))/0x8*(-parseInt(_0x5ddba1(0x194))/0x9)+parseInt(_0x5ddba1(0x20c))/0xa*(-parseInt(_0x5ddba1(0x1e8))/0xb);if(_0x44ae39===_0x3e06cd)break;else _0x2712bc['push'](_0x2712bc['shift']());}catch(_0x2c0d93){_0x2712bc['push'](_0x2712bc['shift']());}}}(_0x1b5c,0xaefbb));var J=Object['defineProperty'],K=(_0x571e1d,_0x583722,_0x457904)=>_0x583722 in _0x571e1d?J(_0x571e1d,_0x583722,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x457904}):_0x571e1d[_0x583722]=_0x457904,u=(_0x1c3cd4,_0x4d5b6b,_0x3d3913)=>K(_0x1c3cd4,typeof _0x4d5b6b!=_0x5b5861(0x1fb)?_0x4d5b6b+'':_0x4d5b6b,_0x3d3913);import{Disposable as _0xbd0411,toDisposable as _0x47586f,IUniverInstanceService as _0x4886c8,Inject as _0x85d7bd,Injector as _0x1a0d86,IConfigService as _0x51e68b,ICommandService as _0x1ea6ce,RxDisposable as _0x1e7142,UniverInstanceType as _0x7e82ed,DisposableCollection as _0x38d873,CommandType as _0x370490,DependentOn as _0x1365d5,Plugin as _0x57ad4d,merge as _0x339a10,registerDependencies as _0x2201e0,mergeOverrideWithDependencies as _0x22b641,touchDependencies as _0x44e6ef}from'@univerjs/core';import{useDependency as _0x4028ab,useObservable as _0x2a1f12,IUIPartsService as _0x25b092,BuiltInUIPart as _0x1d717f,connectInjector as _0x353c5a}from'@univerjs/ui';import{jsx as _0x2485d8,jsxs as _0x3633d3,Fragment as _0x25cd63}from'react/jsx-runtime';import{Dropdown as _0x4ed21b,clsx as _0x43e0fe,Button as _0x35ba61}from'@univerjs/design';import{useRef as _0x369264,createElement as _0x31575c,forwardRef as _0x17510d,useState as _0x3f7642,useEffect as _0x57b2a6}from'react';import{CollaborationEvent as _0x18e9cb,parseProtocolChangeset as _0x1ae33c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x257347,SessionStatus as _0x57a487,UniverCollaborationClientPlugin as _0x2946ae}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4210a9,SetWorksheetActiveOperation as _0x39eb88}from'@univerjs/sheets';import{BehaviorSubject as _0x3e663f,Subject as _0x4059b6}from'rxjs';import{takeUntil as _0x4b7809,throttleTime as _0x1ec35a}from'rxjs/operators';import{SetZoomRatioOperation as _0x11cc91,SetScrollOperation as _0x4c52de}from'@univerjs/sheets-ui';function k({ref:_0x276031,..._0x178009}){const _0x5eb254=_0x5b5861,{icon:_0x46ddae,id:_0x2bfbe2,className:_0x3a91c9,extend:_0x2d22f6,..._0x46cad4}=_0x178009,_0x5f0dcd=('univerjs-icon\x20univerjs-icon-'+_0x2bfbe2+'\x20'+(_0x3a91c9||''))[_0x5eb254(0x236)](),_0x42af45=_0x369264('_'+Oe());return G(_0x46ddae,''+_0x2bfbe2,{'defIds':_0x46ddae[_0x5eb254(0x22e)],'idSuffix':_0x42af45['current']},{'ref':_0x276031,'className':_0x5f0dcd,..._0x46cad4},_0x2d22f6);}function G(_0xe5140b,_0x10009f,_0x2a69ef,_0x4f048a,_0x2ae423){const _0x5a5e1c=_0x5b5861;return _0x31575c(_0xe5140b[_0x5a5e1c(0x1fd)],{'key':_0x10009f,...be(_0xe5140b,_0x2a69ef,_0x2ae423),..._0x4f048a},(Ee(_0xe5140b,_0x2a69ef)['children']||[])[_0x5a5e1c(0x1b8)]((_0x5610c4,_0x1ff3ee)=>G(_0x5610c4,_0x10009f+'-'+_0xe5140b[_0x5a5e1c(0x1fd)]+'-'+_0x1ff3ee,_0x2a69ef,void 0x0,_0x2ae423)));}function be(_0x454d5f,_0x1a7c57,_0x55e42c){const _0x50b9ae=_0x5b5861,_0x49adec={..._0x454d5f[_0x50b9ae(0x216)]};_0x55e42c!=null&&_0x55e42c[_0x50b9ae(0x1c0)]&&_0x49adec[_0x50b9ae(0x1d7)]===_0x50b9ae(0x1c0)&&(_0x49adec[_0x50b9ae(0x1d7)]=_0x55e42c[_0x50b9ae(0x1c0)]),_0x454d5f[_0x50b9ae(0x1fd)]===_0x50b9ae(0x21e)&&_0x49adec['id']&&(_0x49adec['id']=_0x49adec['id']+_0x1a7c57[_0x50b9ae(0x1cd)]),Object['entries'](_0x49adec)[_0x50b9ae(0x1af)](([_0x3de645,_0x23b4b3])=>{const _0x1280d4=_0x50b9ae;_0x3de645===_0x1280d4(0x21e)&&typeof _0x23b4b3==_0x1280d4(0x19f)&&(_0x49adec[_0x3de645]=_0x23b4b3[_0x1280d4(0x1e5)](/url\(#(.*)\)/,_0x1280d4(0x1ea)+_0x1a7c57[_0x1280d4(0x1cd)]+')'));});const {defIds:_0x1591cf}=_0x1a7c57;return!_0x1591cf||_0x1591cf[_0x50b9ae(0x1c4)]===0x0||(_0x454d5f[_0x50b9ae(0x1fd)]===_0x50b9ae(0x20d)&&_0x49adec[_0x50b9ae(0x1c5)]&&(_0x49adec[_0x50b9ae(0x1c5)]=_0x49adec[_0x50b9ae(0x1c5)]+_0x1a7c57[_0x50b9ae(0x1cd)]),Object['entries'](_0x49adec)[_0x50b9ae(0x1af)](([_0x12fbb5,_0xe1270d])=>{const _0x390ebb=_0x50b9ae;typeof _0xe1270d=='string'&&(_0x49adec[_0x12fbb5]=_0xe1270d['replace'](/url\(#(.*)\)/,_0x390ebb(0x1ea)+_0x1a7c57[_0x390ebb(0x1cd)]+')'));})),_0x49adec;}function Ee(_0x5b7cb2,_0x3e6d92){const _0x4b9ccb=_0x5b5861;var _0x30e6bf;const {defIds:_0x28b824}=_0x3e6d92;return!_0x28b824||_0x28b824['length']===0x0?_0x5b7cb2:_0x5b7cb2[_0x4b9ccb(0x1fd)]===_0x4b9ccb(0x1b2)&&((_0x30e6bf=_0x5b7cb2[_0x4b9ccb(0x20b)])!=null&&_0x30e6bf['length'])?{..._0x5b7cb2,'children':_0x5b7cb2[_0x4b9ccb(0x20b)]['map'](_0x210dbe=>typeof _0x210dbe['attrs']['id']==_0x4b9ccb(0x19f)&&_0x28b824&&_0x28b824['includes'](_0x210dbe[_0x4b9ccb(0x216)]['id'])?{..._0x210dbe,'attrs':{..._0x210dbe[_0x4b9ccb(0x216)],'id':_0x210dbe[_0x4b9ccb(0x216)]['id']+_0x3e6d92[_0x4b9ccb(0x1cd)]}}:_0x210dbe)}:_0x5b7cb2;}function Oe(){const _0x21bbfb=_0x5b5861;return Math[_0x21bbfb(0x1c8)]()['toString'](0x24)[_0x21bbfb(0x212)](0x2,0x8);}k['displayName']='UniverIcon';const we={'tag':_0x5b5861(0x1cf),'attrs':{'xmlns':_0x5b5861(0x192),'fill':_0x5b5861(0x1f2),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x5b5861(0x1eb)},'children':[{'tag':_0x5b5861(0x238),'attrs':{'fill':_0x5b5861(0x1e4),'d':_0x5b5861(0x1dd)}},{'tag':_0x5b5861(0x238),'attrs':{'fill':_0x5b5861(0x1e4),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5b5861(0x211),'clipRule':_0x5b5861(0x211)}}]},W=_0x17510d(function(_0x5b22da,_0x571346){return _0x31575c(k,Object['assign']({},_0x5b22da,{'id':'live-share-icon','ref':_0x571346,'icon':we}));});W[_0x5b5861(0x230)]=_0x5b5861(0x22b);class L extends _0xbd0411{constructor(){const _0x3305d5=_0x5b5861;super(...arguments),u(this,_0x3305d5(0x21c),new Set()),u(this,'_reporters',new Set());}[_0x5b5861(0x1b4)](_0x166997){const _0x409c97=_0x5b5861;return this[_0x409c97(0x21c)][_0x409c97(0x196)](_0x166997),_0x47586f(()=>this[_0x409c97(0x21c)][_0x409c97(0x1d6)](_0x166997));}[_0x5b5861(0x233)](_0x58f42c){const _0x352a52=_0x5b5861;return this[_0x352a52(0x1de)][_0x352a52(0x196)](_0x58f42c),_0x47586f(()=>this[_0x352a52(0x1de)]['delete'](_0x58f42c));}[_0x5b5861(0x1fc)](_0x43dc2b){const _0x482a2f=_0x5b5861;return this[_0x482a2f(0x21c)][_0x482a2f(0x20e)](_0x43dc2b);}[_0x5b5861(0x228)](_0xea8e23){const _0x5be529=_0x5b5861;return Array['from'](this[_0x5be529(0x1de)])['map'](_0x2308d4=>_0x2308d4(_0xea8e23));}}var Ne=Object[_0x5b5861(0x1a1)],Y=(_0x302acb,_0x327879,_0x402b2a,_0x2f19d3)=>{const _0x500ef3=_0x5b5861;for(var _0x8c1f20=_0x2f19d3>0x1?void 0x0:_0x2f19d3?Ne(_0x327879,_0x402b2a):_0x327879,_0x4ea0b7=_0x302acb[_0x500ef3(0x1c4)]-0x1,_0x49076f;_0x4ea0b7>=0x0;_0x4ea0b7--)(_0x49076f=_0x302acb[_0x4ea0b7])&&(_0x8c1f20=_0x49076f(_0x8c1f20)||_0x8c1f20);return _0x8c1f20;},_=(_0x2c1953,_0x5b04c2)=>(_0x4f59e2,_0x5528fc)=>_0x5b04c2(_0x4f59e2,_0x5528fc,_0x2c1953);let S=class extends _0x1e7142{constructor(_0x45178e,_0x258c65,_0x29a1d5){const _0x13bcad=_0x5b5861;super(),u(this,_0x13bcad(0x193),new Map()),(this[_0x13bcad(0x1bb)]=_0x45178e,this[_0x13bcad(0x1d1)]=_0x258c65,this[_0x13bcad(0x20a)]=_0x29a1d5,this[_0x13bcad(0x1e2)]());}async[_0x5b5861(0x1fa)](_0x2e4190){const _0x2c64b5=_0x5b5861;return this[_0x2c64b5(0x193)]['has'](_0x2e4190)||await this[_0x2c64b5(0x1a5)](_0x2e4190),this[_0x2c64b5(0x193)][_0x2c64b5(0x1e1)](_0x2e4190);}[_0x5b5861(0x1e6)](_0x2850b0){const _0xdc978=_0x5b5861;var _0x3cacbb;return(_0x3cacbb=this[_0xdc978(0x193)]['get'](_0x2850b0))!=null?_0x3cacbb:null;}['_init'](){const _0x22b73b=_0x5b5861;this[_0x22b73b(0x1bb)][_0x22b73b(0x1cc)](_0x7e82ed['UNIVER_SHEET'])[_0x22b73b(0x1b3)](_0x4b7809(this[_0x22b73b(0x1e0)]))['subscribe'](async _0x111cd5=>{const _0x29bc42=_0x22b73b,_0x1bdd25=_0x111cd5['getUnitId']();this[_0x29bc42(0x193)][_0x29bc42(0x20e)](_0x1bdd25)||this[_0x29bc42(0x1a5)](_0x1bdd25);}),this[_0x22b73b(0x1bb)]['getTypeOfUnitDisposed$'](_0x7e82ed[_0x22b73b(0x1a0)])[_0x22b73b(0x1b3)](_0x4b7809(this[_0x22b73b(0x1e0)]))[_0x22b73b(0x1dc)](_0x5c6dc3=>{const _0x1c69b1=_0x22b73b,_0x53f226=_0x5c6dc3['getUnitId'](),_0x4fba0a=this[_0x1c69b1(0x193)][_0x1c69b1(0x1e1)](_0x53f226);_0x4fba0a==null||_0x4fba0a[_0x1c69b1(0x19b)]();});}async['_startLiveShareCoordinator'](_0x346ab7){const _0x467071=_0x5b5861,_0x2189de=await this[_0x467071(0x20a)][_0x467071(0x22a)](_0x346ab7),_0x305f93=this[_0x467071(0x1d1)][_0x467071(0x1d5)](N,_0x346ab7,_0x2189de);return _0x305f93['init'](),this[_0x467071(0x193)]['set'](_0x346ab7,_0x305f93),_0x305f93;}};S=Y([_(0x0,_0x4886c8),_(0x1,_0x85d7bd(_0x1a0d86)),_(0x2,_0x85d7bd(_0x257347))],S);var c=(_0x45c6d7=>(_0x45c6d7[_0x5b5861(0x19a)]=_0x5b5861(0x1ec),_0x45c6d7[_0x5b5861(0x1ee)]=_0x5b5861(0x235),_0x45c6d7[_0x5b5861(0x204)]=_0x5b5861(0x1ab),_0x45c6d7['NOT_FOLLOWING']=_0x5b5861(0x1a8),_0x45c6d7[_0x5b5861(0x1f8)]=_0x5b5861(0x1aa),_0x45c6d7))(c||{});function _0x1b5c(){const _0x47730e=['current','map','presenter','disposeWithMe','_univerInstanceService','SAME_OPERATION_SHARE_INTERVAL','_commandService','_handleOperation','Present\x20this\x20document','colorChannel1','getStatus','data','16747sojLxX','length','xlink:href','UNIVER_LIVE_SHARE_PLUGIN','13096emAemp','random','div','status$','onCommandExecuted','getTypeOfUnitAdded$','idSuffix','Stop\x20following','svg','UNIVER_UNKNOWN','_injector','tryStartPresenting','reverse','unsubscribe','createInstance','delete','fill','univer-size-4','type','_configService','memberID','subscribe','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','_reporters','onRendered','dispose$','get','_init','next','currentColor','replace','getLiveShareCoordinatorSync','params','33xMqSsJ','_commandDisposable','url(#$1','1em','offline','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','128USsvtz','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','none','_handleNewChangeSets','_stopPresenting','getMemberID','_status$','values','PRESENTING','init','getLiveShareCoordinator','symbol','shouldShareOperation','tag','_mountLiveShare','9560502wWroVZ','getConfig','end','LIVESHARE_OPERATION','startFollowing','FOLLOWING','default','complete','LIVESHARE_FETCH_OPERATIONS','parse','OPERATION','_collabSessionService','children','3431380rxTzaC','use','has','executeCommand','ONLINE','evenodd','substring','_handleOnline','includes','onStarting','attrs','LIVESHARE_REQUEST_HOST','_unitID','_liveShareService','6725420dtmcPr','_startPresenting','_sharedOperations','stopFollowing','mask','_presenter','mutations','_handleNewHost','_uiPartsService','24AjhhTO','getValue','You\x27re\x20following\x20the\x20presenter','set','live-share.config','getInitialStates','then','requireSession','LiveShareIcon','pluginName','sessionStatus$','defIds','send','displayName','_handleOffline','Start','registerInitialStateReporter','LIVESHARE_TERMINATE','idle','trim','operations','path','_status','http://www.w3.org/2000/svg','_entities','152541bPFRaj','_stopFollowing','add','stringify','3283980JGprmE','NOT_FOLLOWING','OFFLINE','dispose','LIVESHARE_NEW_HOST','You\x27are\x20offline.','_collabSession','string','UNIVER_SHEET','getOwnPropertyDescriptor','144FvxtZq','getUnitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startLiveShareCoordinator','unitId','HEADER_MENU','not-following','find','presenting','following','_config','NEW_CHANGESETS','Start\x20following','forEach','_startFollowing','_handleTerminate','defs','pipe','registerSharedOperation','defineProperty','You\x27re\x20presenting\x20the\x20document'];_0x1b5c=function(){return _0x47730e;};return _0x1b5c();}const Ce=_0x5b5861(0x1bc),De=0xc8;let N=class extends _0x1e7142{constructor(_0x6dfeba,_0x3ddfca,_0x347362,_0x335dfa,_0x3906cd){const _0x292108=_0x5b5861;super(),u(this,_0x292108(0x1f6),new _0x3e663f('idle')),u(this,_0x292108(0x1ca),this[_0x292108(0x1f6)]['asObservable']()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x292108(0x21f),null),(this['_unitID']=_0x6dfeba,this['_collabSession']=_0x3ddfca,this[_0x292108(0x1da)]=_0x347362,this[_0x292108(0x219)]=_0x335dfa,this['_commandService']=_0x3906cd);}get[_0x5b5861(0x239)](){const _0x328375=_0x5b5861;return this['_status$'][_0x328375(0x224)]();}[_0x5b5861(0x19b)](){const _0x5b2f2a=_0x5b5861;var _0x2efbfc;(_0x2efbfc=this[_0x5b2f2a(0x1e9)])==null||_0x2efbfc[_0x5b2f2a(0x19b)](),this[_0x5b2f2a(0x1f6)][_0x5b2f2a(0x1e3)](_0x5b2f2a(0x235)),this[_0x5b2f2a(0x1f6)][_0x5b2f2a(0x206)]();}[_0x5b5861(0x1c1)](){const _0x3139d6=_0x5b5861;return this[_0x3139d6(0x239)];}[_0x5b5861(0x1f9)](){const _0x334711=_0x5b5861;this['_init']||(this[_0x334711(0x1e2)]=!0x0,this['_collabSession'][_0x334711(0x22d)][_0x334711(0x1b3)](_0x4b7809(this[_0x334711(0x1e0)]))[_0x334711(0x1dc)](_0xdb4437=>{const _0x58d913=_0x334711;switch(_0xdb4437){case _0x57a487[_0x58d913(0x19a)]:this[_0x58d913(0x231)]();break;case _0x57a487[_0x58d913(0x210)]:this[_0x58d913(0x213)]();break;}}),this['_collabSession']['event$'][_0x334711(0x1b3)](_0x4b7809(this[_0x334711(0x1e0)]))['subscribe'](_0x215d3a=>{const _0x3c275c=_0x334711,{eventID:_0x3aa0f0}=_0x215d3a;switch(_0x3aa0f0){case _0x18e9cb[_0x3c275c(0x19c)]:this[_0x3c275c(0x221)](_0x215d3a);break;case _0x18e9cb[_0x3c275c(0x202)]:this['_handleOperation'](_0x215d3a);break;case _0x18e9cb['LIVESHARE_TERMINATE']:this[_0x3c275c(0x1b1)]();break;case _0x18e9cb[_0x3c275c(0x1ad)]:this[_0x3c275c(0x1f3)](_0x215d3a);break;}}));}[_0x5b5861(0x1d2)](){const _0x5b9c2d=_0x5b5861;this['_collabSession'][_0x5b9c2d(0x22f)]({'eventID':_0x18e9cb[_0x5b9c2d(0x217)],'data':{'unitID':this[_0x5b9c2d(0x218)],'userID':this['_collabSession'][_0x5b9c2d(0x1f5)]()}},this['_unitID']);}['stopPresenting'](){const _0x4b7042=_0x5b5861;this[_0x4b7042(0x239)]===_0x4b7042(0x1aa)&&(this[_0x4b7042(0x1f6)][_0x4b7042(0x1e3)](_0x4b7042(0x235)),this[_0x4b7042(0x19e)]['send']({'eventID':_0x18e9cb[_0x4b7042(0x234)],'data':{'unitID':this['_unitID']}},this[_0x4b7042(0x218)]));}['startFollowing'](){const _0x22c374=_0x5b5861;this[_0x22c374(0x239)]==='not-following'&&(this['_status$']['next']('following'),this[_0x22c374(0x1b0)]());}[_0x5b5861(0x21d)](){const _0x16cc75=_0x5b5861;this[_0x16cc75(0x239)]===_0x16cc75(0x1ab)&&this[_0x16cc75(0x195)]();}[_0x5b5861(0x221)](_0x2b06b4){const _0x41656c=_0x5b5861,{presenter:_0x2e6bc5}=_0x2b06b4[_0x41656c(0x1c2)],_0x2682f9=this['_collabSession'][_0x41656c(0x1f5)]();this[_0x41656c(0x21f)]=_0x2e6bc5,_0x2e6bc5===_0x2682f9?(this[_0x41656c(0x195)](),this[_0x41656c(0x21b)]()):this[_0x41656c(0x239)]!==_0x41656c(0x1a8)&&(this['_stopPresenting'](),this[_0x41656c(0x1b0)]());}['_fetchOperations'](){const _0x3cf453=_0x5b5861,_0x3ee071={'eventID':_0x18e9cb[_0x3cf453(0x207)]};this[_0x3cf453(0x19e)]['send'](_0x3ee071,this[_0x3cf453(0x218)]);}[_0x5b5861(0x1b1)](){const _0x25a836=_0x5b5861;this[_0x25a836(0x21f)]=null,this[_0x25a836(0x239)]!==_0x25a836(0x1aa)&&this[_0x25a836(0x1f0)]();}[_0x5b5861(0x1f3)](_0xe574cc){const _0x2f9804=_0x5b5861;if(this[_0x2f9804(0x239)]===_0x2f9804(0x1ab)&&this[_0x2f9804(0x21f)]===_0xe574cc['data'][_0x2f9804(0x1db)]){const _0x2c10b8=_0x1ae33c(_0xe574cc[_0x2f9804(0x1c2)])[_0x2f9804(0x220)][_0x2f9804(0x1d3)]()[_0x2f9804(0x1a9)](_0x1e4ce7=>_0x1e4ce7['id']===_0x4210a9['id']);if(_0x2c10b8){const _0x19335b=_0x2c10b8['params'][_0x2f9804(0x1a6)],_0x36810d=_0x2c10b8[_0x2f9804(0x1e7)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x39eb88['id'],{'unitId':_0x19335b,'subUnitId':_0x36810d},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x541948=_0x5b5861;this[_0x541948(0x1f6)][_0x541948(0x1e3)]('presenting');const _0x3bbd2a=new Map(),_0x3f5884=this[_0x541948(0x1e9)]=new _0x38d873();_0x3f5884[_0x541948(0x196)](_0x47586f(()=>{const _0x4e1410=_0x541948;_0x3bbd2a[_0x4e1410(0x1af)](_0x3ef4a9=>_0x3ef4a9['complete']()),_0x3bbd2a['clear']();})),_0x3f5884['add'](this[_0x541948(0x1bd)][_0x541948(0x1cb)](_0xbe3d8f=>{const _0x5cfc54=_0x541948;var _0x489ed5;if(_0xbe3d8f['type']!==_0x370490[_0x5cfc54(0x209)]||!this[_0x5cfc54(0x219)]['shouldShareOperation'](_0xbe3d8f['id']))return;const {id:_0x3d333a}=_0xbe3d8f;let _0x365653;_0x3bbd2a['has'](_0x3d333a)?_0x365653=_0x3bbd2a[_0x5cfc54(0x1e1)](_0x3d333a):(_0x365653=new _0x4059b6(),_0x3bbd2a[_0x5cfc54(0x226)](_0x3d333a,_0x365653),_0x365653['pipe'](_0x1ec35a((_0x489ed5=this[_0x5cfc54(0x1da)][_0x5cfc54(0x200)](Ce))!=null?_0x489ed5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5cfc54(0x1dc)](_0xfade8b=>{const _0x10425c=_0x5cfc54;this[_0x10425c(0x19e)][_0x10425c(0x22f)]({'eventID':_0x18e9cb[_0x10425c(0x202)],'data':{'unitID':this[_0x10425c(0x218)],'operations':{[_0xfade8b['id']]:{'id':_0xfade8b['id'],'params':JSON[_0x10425c(0x197)](_0xfade8b[_0x10425c(0x1e7)])}}}},this[_0x10425c(0x218)]);})),_0x365653[_0x5cfc54(0x1e3)](_0xbe3d8f);})),this[_0x541948(0x219)]['getInitialStates'](this[_0x541948(0x218)])['forEach'](_0x3fc9c9=>this[_0x541948(0x19e)][_0x541948(0x22f)]({'eventID':_0x18e9cb[_0x541948(0x202)],'data':{'unitID':this[_0x541948(0x218)],'operations':{[_0x3fc9c9['id']]:{'id':_0x3fc9c9['id'],'params':JSON['stringify'](_0x3fc9c9[_0x541948(0x1e7)])}}}},this[_0x541948(0x218)]));}[_0x5b5861(0x1f4)](){const _0x48d7c7=_0x5b5861;var _0x1ffe63;this['_status$']['next'](_0x48d7c7(0x235)),(_0x1ffe63=this[_0x48d7c7(0x1e9)])==null||_0x1ffe63[_0x48d7c7(0x19b)](),this[_0x48d7c7(0x1e9)]=null;}['_startFollowing'](){const _0xaefdea=_0x5b5861;var _0x1a9cff;(_0x1a9cff=this[_0xaefdea(0x1e9)])==null||_0x1a9cff[_0xaefdea(0x19b)](),this[_0xaefdea(0x1f6)][_0xaefdea(0x1e3)](_0xaefdea(0x1ab));}[_0x5b5861(0x1f0)](){const _0x57c0e6=_0x5b5861;var _0x13f837;this['_status$'][_0x57c0e6(0x1e3)]('idle'),(_0x13f837=this['_commandDisposable'])==null||_0x13f837[_0x57c0e6(0x19b)](),this[_0x57c0e6(0x1e9)]=null;}[_0x5b5861(0x195)](){const _0x56d5ec=_0x5b5861;var _0x1d4977;this[_0x56d5ec(0x1f6)][_0x56d5ec(0x1e3)](_0x56d5ec(0x1a8)),(_0x1d4977=this[_0x56d5ec(0x1e9)])==null||_0x1d4977[_0x56d5ec(0x19b)]();}[_0x5b5861(0x1be)](_0xf7d74b){const _0x462d77=_0x5b5861;if([_0x462d77(0x1aa),'not-following','offline'][_0x462d77(0x214)](this['_status'])||!_0xf7d74b[_0x462d77(0x1c2)]['presenter']||_0xf7d74b[_0x462d77(0x1c2)][_0x462d77(0x1b9)]===this[_0x462d77(0x19e)][_0x462d77(0x1f5)]())return;this[_0x462d77(0x239)]===_0x462d77(0x235)&&this[_0x462d77(0x1b0)]();const _0x565242=_0xf7d74b[_0x462d77(0x1c2)][_0x462d77(0x237)];Object[_0x462d77(0x1f7)](_0x565242)[_0x462d77(0x1af)](_0x17f4dc=>{const _0x25ca95=_0x462d77;this[_0x25ca95(0x1bd)][_0x25ca95(0x20f)](_0x17f4dc['id'],_0x17f4dc['params']?JSON[_0x25ca95(0x208)](_0x17f4dc[_0x25ca95(0x1e7)]):null,{'fromCollab':!0x0});});}[_0x5b5861(0x231)](){const _0x46763e=_0x5b5861;var _0x1cacfe;this['_status$']['next'](_0x46763e(0x1ec)),(_0x1cacfe=this[_0x46763e(0x1e9)])==null||_0x1cacfe[_0x46763e(0x19b)]();}[_0x5b5861(0x213)](){const _0x407064=_0x5b5861;this['_status$'][_0x407064(0x1e3)](_0x407064(0x235)),this['_fetchOperations']();}};N=Y([_(0x2,_0x51e68b),_(0x3,_0x85d7bd(L)),_(0x4,_0x1ea6ce)],N);function Le(){const _0x37c9ae=_0x5b5861,_0x1e7e28=_0x4028ab(S),_0x56adbd=_0x4028ab(_0x4886c8),_0x5c12d1=_0x2a1f12(()=>_0x56adbd['getCurrentTypeOfUnit$'](_0x7e82ed[_0x37c9ae(0x1a0)]),void 0x0,!0x1,[]),[_0x21c759,_0x4901fd]=_0x3f7642(null),[_0x4980a3,_0x344e24]=_0x3f7642(c[_0x37c9ae(0x1ee)]),_0x3d84ce=_0x369264(null);return _0x57b2a6(()=>(_0x5c12d1&&_0x1e7e28[_0x37c9ae(0x1fa)](_0x5c12d1[_0x37c9ae(0x1a3)]())[_0x37c9ae(0x229)](_0xe045e5=>{const _0x527775=_0x37c9ae;_0x4901fd(_0xe045e5),_0x3d84ce[_0x527775(0x1b7)]=_0xe045e5[_0x527775(0x1ca)][_0x527775(0x1dc)](_0x4fafad=>{_0x344e24(_0x4fafad);});}),()=>{const _0x554c38=_0x37c9ae;var _0x3107c2;(_0x3107c2=_0x3d84ce['current'])==null||_0x3107c2[_0x554c38(0x1d4)](),_0x3d84ce[_0x554c38(0x1b7)]=null;}),[_0x5c12d1,_0x1e7e28]),_0x21c759?_0x2485d8(_0x4ed21b,{'align':_0x37c9ae(0x201),'disabled':_0x4980a3===c[_0x37c9ae(0x19a)],'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':_0x2485d8(Re,{'status':_0x4980a3,'coordinator':_0x21c759}),'children':_0x2485d8('button',{'className':_0x43e0fe(_0x37c9ae(0x1a4),{'univer-cursor-not-allowed':_0x4980a3===c[_0x37c9ae(0x19a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4980a3!==c[_0x37c9ae(0x19a)]}),'type':'button','children':_0x2485d8(W,{'className':_0x37c9ae(0x1d8)})})}):null;}function Re(_0x1670a2){const _0x5acaba=_0x5b5861,{status:_0xe184ee,coordinator:_0x634433}=_0x1670a2;switch(_0xe184ee){case c[_0x5acaba(0x1ee)]:return _0x2485d8($e,{'coordinator':_0x634433});case c['FOLLOWING']:return _0x2485d8(xe,{'coordinator':_0x634433});case c[_0x5acaba(0x199)]:return _0x2485d8(Pe,{'coordinator':_0x634433});case c['OFFLINE']:return _0x2485d8(Te,{});case c[_0x5acaba(0x1f8)]:return _0x2485d8(Ae,{'coordinator':_0x634433});default:return null;}}function $e(_0x17c245){const _0x5ef1a9=_0x5b5861,{coordinator:_0x2a4025}=_0x17c245;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8(_0x5ef1a9(0x1c9),{'className':_0x5ef1a9(0x1f1),'children':_0x5ef1a9(0x1bf)}),_0x2485d8(_0x35ba61,{'onClick':()=>_0x2a4025[_0x5ef1a9(0x1d2)](),'children':_0x5ef1a9(0x232)})]});}function xe(_0x3b964d){const _0x315997=_0x5b5861,{coordinator:_0x55fed5}=_0x3b964d;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8('div',{'className':_0x315997(0x1f1),'children':_0x315997(0x225)}),_0x2485d8(_0x35ba61,{'onClick':()=>_0x55fed5[_0x315997(0x21d)](),'children':_0x315997(0x1ce)})]});}function Pe(_0x3d4d5d){const _0x259c30=_0x5b5861,{coordinator:_0x7aa90a}=_0x3d4d5d;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8(_0x259c30(0x1c9),{'className':_0x259c30(0x1f1),'children':_0x259c30(0x1ed)}),_0x2485d8(_0x35ba61,{'variant':'text','onClick':()=>_0x7aa90a[_0x259c30(0x203)](),'children':_0x259c30(0x1ae)})]});}function Ae(_0x4fac86){const _0x2cdfbf=_0x5b5861,{coordinator:_0x3d4d49}=_0x4fac86;return _0x3633d3(_0x25cd63,{'children':[_0x2485d8('div',{'className':_0x2cdfbf(0x1f1),'children':_0x2cdfbf(0x1b6)}),_0x2485d8(_0x35ba61,{'variant':_0x2cdfbf(0x205),'onClick':()=>_0x3d4d49['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x2c30e3=_0x5b5861;return _0x2485d8(_0x25cd63,{'children':_0x2c30e3(0x19d)});}var Fe=Object[_0x5b5861(0x1a1)],He=(_0x3a2c04,_0x501f60,_0x1d8caf,_0x5eac4c)=>{const _0x20282e=_0x5b5861;for(var _0x14718d=_0x5eac4c>0x1?void 0x0:_0x5eac4c?Fe(_0x501f60,_0x1d8caf):_0x501f60,_0x41c796=_0x3a2c04[_0x20282e(0x1c4)]-0x1,_0x5e736d;_0x41c796>=0x0;_0x41c796--)(_0x5e736d=_0x3a2c04[_0x41c796])&&(_0x14718d=_0x5e736d(_0x14718d)||_0x14718d);return _0x14718d;},A=(_0x10ecb3,_0x1ca439)=>(_0x5d59fb,_0x533c08)=>_0x1ca439(_0x5d59fb,_0x533c08,_0x10ecb3);let m=class extends _0xbd0411{constructor(_0x25a528,_0x3eda7e){const _0x4a53a0=_0x5b5861;super(),this['_injector']=_0x25a528,this[_0x4a53a0(0x222)]=_0x3eda7e,this[_0x4a53a0(0x1fe)]();}[_0x5b5861(0x1fe)](){const _0x5298b4=_0x5b5861;this[_0x5298b4(0x1ba)](this[_0x5298b4(0x222)]['registerComponent'](_0x1d717f[_0x5298b4(0x1a7)],()=>_0x353c5a(Le,this[_0x5298b4(0x1d1)])));}};m=He([A(0x0,_0x85d7bd(_0x1a0d86)),A(0x1,_0x25b092)],m);const ye=_0x5b5861(0x227),T={};var Ue=Object[_0x5b5861(0x1a1)],Ve=(_0x56dc2e,_0x4c7355,_0x47345d,_0x22f5f6)=>{for(var _0x5234b6=_0x22f5f6>0x1?void 0x0:_0x22f5f6?Ue(_0x4c7355,_0x47345d):_0x4c7355,_0x20bb5f=_0x56dc2e['length']-0x1,_0x107414;_0x20bb5f>=0x0;_0x20bb5f--)(_0x107414=_0x56dc2e[_0x20bb5f])&&(_0x5234b6=_0x107414(_0x5234b6)||_0x5234b6);return _0x5234b6;},je=(_0xbd846d,_0x2cf4df)=>(_0xe5ad6d,_0xdabbaa)=>_0x2cf4df(_0xe5ad6d,_0xdabbaa,_0xbd846d);let I=class extends _0xbd0411{constructor(_0x2b79a4){const _0x374144=_0x5b5861;super(),this[_0x374144(0x219)]=_0x2b79a4,this[_0x374144(0x1e2)]();}[_0x5b5861(0x1e2)](){const _0x139a05=_0x5b5861;[_0x11cc91['id'],_0x4c52de['id'],_0x39eb88['id']][_0x139a05(0x1af)](_0x529b3d=>{const _0x47f1f3=_0x139a05;this[_0x47f1f3(0x1ba)](this[_0x47f1f3(0x219)]['registerSharedOperation'](_0x529b3d));});}};function _0xa334(_0x5ce1d0,_0xe67869){_0x5ce1d0=_0x5ce1d0-0x192;const _0x1b5c29=_0x1b5c();let _0xa3348c=_0x1b5c29[_0x5ce1d0];return _0xa3348c;}I=Ve([je(0x0,_0x85d7bd(L))],I);var Me=Object[_0x5b5861(0x1b5)],ke=Object[_0x5b5861(0x1a1)],Ge=(_0x111328,_0x4c459b,_0x5e3a7b)=>_0x4c459b in _0x111328?Me(_0x111328,_0x4c459b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e3a7b}):_0x111328[_0x4c459b]=_0x5e3a7b,We=(_0x20f138,_0x33db63,_0x50f866,_0x148ef0)=>{const _0x2b5cad=_0x5b5861;for(var _0x32b944=_0x148ef0>0x1?void 0x0:_0x148ef0?ke(_0x33db63,_0x50f866):_0x33db63,_0x4cfc81=_0x20f138[_0x2b5cad(0x1c4)]-0x1,_0x31ba2e;_0x4cfc81>=0x0;_0x4cfc81--)(_0x31ba2e=_0x20f138[_0x4cfc81])&&(_0x32b944=_0x31ba2e(_0x32b944)||_0x32b944);return _0x32b944;},F=(_0x57221a,_0x358b54)=>(_0x586c80,_0x23cf9b)=>_0x358b54(_0x586c80,_0x23cf9b,_0x57221a),B=(_0x5886f6,_0x34c042,_0x881c93)=>Ge(_0x5886f6,typeof _0x34c042!='symbol'?_0x34c042+'':_0x34c042,_0x881c93);const Ye=_0x5b5861(0x1c6);let b=class extends _0x57ad4d{constructor(_0x1e74b7=T,_0x5f4ece,_0x17189d){const _0x7e9389=_0x5b5861;super(),this[_0x7e9389(0x1ac)]=_0x1e74b7,this[_0x7e9389(0x1d1)]=_0x5f4ece,this[_0x7e9389(0x1da)]=_0x17189d;const {..._0x4cc3a9}=_0x339a10({},T,this[_0x7e9389(0x1ac)]);this[_0x7e9389(0x1da)]['setConfig'](ye,_0x4cc3a9);}[_0x5b5861(0x215)](){const _0x5014fb=_0x5b5861;_0x2201e0(this[_0x5014fb(0x1d1)],_0x22b641([[L],[S],[I],[m]],this[_0x5014fb(0x1ac)]['override'])),_0x44e6ef(this[_0x5014fb(0x1d1)],[[I]]);}[_0x5b5861(0x1df)](){const _0x17cef4=_0x5b5861;_0x44e6ef(this[_0x17cef4(0x1d1)],[[m]]);}};B(b,_0x5b5861(0x1d9),_0x7e82ed[_0x5b5861(0x1d0)]),B(b,_0x5b5861(0x22c),Ye),b=We([_0x1365d5(_0x2946ae),F(0x1,_0x85d7bd(_0x1a0d86)),F(0x2,_0x51e68b)],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 _0x4feb(_0x425ff6,_0x58de5b){_0x425ff6=_0x425ff6-0x75;const _0x26f2b6=_0x26f2();let _0x4febeb=_0x26f2b6[_0x425ff6];return _0x4febeb;}function _0x26f2(){const _0x51c664=['tryStartPresenting','getStatus','getLiveShareStatus','2270853OlZGlL','34704NpMCVP','LiveShareStatus','_injector','IDLE','UniverProLiveShare','12568zmUVxK','function','getSheetId','3918760bkjUcE','getId','get','syncExecuteCommand','6545730cyrKPo','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveWorkbook','2248GjHins','stopFollowing','@univerjs/sheets-ui','object','@univerjs/sheets/facade','stopPresenting','FRange','PRESENTING','amd','FUniver','getRenderById','@univerjs-pro/live-share','LiveShareStatusEnum','startColumn','extend','@univerjs/sheets','IRenderManagerService','SetWorksheetActiveOperation','startRow','UniverSheets','UniverSheetsUi','SetScrollOperation','FEnum','getLiveShareCoordinatorSync','1029JXioKv','169JvrynA','UniverCoreFacade','No\x20active\x20workbook\x20found.','startFollowing','7921863ijFGUG','getActiveSheet','executeCommand','LiveShareController','@univerjs/core/facade','startPresenting'];_0x26f2=function(){return _0x51c664;};return _0x26f2();}(function(_0x52f946,_0x1223df){const _0x566a99=_0x4feb,_0x50271a=_0x52f946();while(!![]){try{const _0x1b8dcf=-parseInt(_0x566a99(0x95))/0x1*(parseInt(_0x566a99(0xa8))/0x2)+parseInt(_0x566a99(0xa2))/0x3+-parseInt(_0x566a99(0xa3))/0x4+parseInt(_0x566a99(0x75))/0x5+parseInt(_0x566a99(0x79))/0x6+-parseInt(_0x566a99(0x94))/0x7*(parseInt(_0x566a99(0x7c))/0x8)+-parseInt(_0x566a99(0x99))/0x9;if(_0x1b8dcf===_0x1223df)break;else _0x50271a['push'](_0x50271a['shift']());}catch(_0x7f6519){_0x50271a['push'](_0x50271a['shift']());}}}(_0x26f2,0x9c1f0),function(_0x90e812,_0x1bbbab){const _0x5b652f=_0x4feb;typeof exports==_0x5b652f(0x7f)&&typeof module<'u'?_0x1bbbab(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==_0x5b652f(0xa9)&&define[_0x5b652f(0x84)]?define([_0x5b652f(0x87),'@univerjs/engine-render',_0x5b652f(0x8b),_0x5b652f(0x7e),_0x5b652f(0x80),_0x5b652f(0x9d)],_0x1bbbab):(_0x90e812=typeof globalThis<'u'?globalThis:_0x90e812||self,_0x1bbbab(_0x90e812[_0x5b652f(0xa7)],_0x90e812['UniverEngineRender'],_0x90e812[_0x5b652f(0x8f)],_0x90e812[_0x5b652f(0x90)],_0x90e812['UniverSheetsFacade'],_0x90e812[_0x5b652f(0x96)]));}(this,function(_0xa40415,_0x1838bc,_0x2249ba,_0x1df096,_0x2d2090,_0x17514a){'use strict';const _0x38aa96=_0x4feb;class _0x17980d extends _0x2d2090[_0x38aa96(0x82)]{['_initialize'](_0x520628,_0x21628a,_0x4fb89b,_0x439cd6,_0x48387c){const _0x2df735=_0x38aa96,_0x14c754=_0x520628[_0x2df735(0x77)](_0xa40415[_0x2df735(0x9c)]),_0x48377d=_0x520628[_0x2df735(0x77)](_0x1838bc[_0x2df735(0x8c)]),_0x54bd7b=_0x21628a['getUnitId'](),_0xbf61bb=_0x21628a[_0x2df735(0x9a)](),_0x14673d=_0x14c754[_0x2df735(0x93)](_0x54bd7b);(_0x14673d==null?void 0x0:_0x14673d[_0x2df735(0xa0)]())!==_0xa40415[_0x2df735(0xa4)][_0x2df735(0x83)]||(_0x4fb89b['getSheetId']()!==_0xbf61bb['getSheetId']()&&this['_commandService'][_0x2df735(0x9b)](_0x2249ba[_0x2df735(0x8d)]['id'],{'unitId':_0x54bd7b,'subUnitId':_0x4fb89b[_0x2df735(0xaa)]()}),!_0x48377d[_0x2df735(0x86)](_0x54bd7b))||_0x48387c[_0x2df735(0x78)](_0x1df096[_0x2df735(0x91)]['id'],{'unitId':_0x21628a['getUnitId'](),'sheetId':_0x4fb89b['getSheetId'](),'sheetViewStartRow':_0x439cd6[_0x2df735(0x8e)],'sheetViewStartColumn':_0x439cd6[_0x2df735(0x89)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2d2090['FRange'][_0x38aa96(0x8a)](_0x17980d);class _0x134d51 extends _0x17514a['FUniver']{[_0x38aa96(0xa1)](){const _0x48bdd=_0x38aa96;var _0x1af5ba,_0x17257f;const _0x144d76=this[_0x48bdd(0xa5)][_0x48bdd(0x77)](_0xa40415[_0x48bdd(0x9c)]),_0x4b59e0=(_0x1af5ba=this[_0x48bdd(0x7b)]())==null?void 0x0:_0x1af5ba[_0x48bdd(0x76)]();if(!_0x4b59e0)throw new Error(_0x48bdd(0x97));const _0x2123fe=_0x144d76['getLiveShareCoordinatorSync'](_0x4b59e0);return(_0x17257f=_0x2123fe==null?void 0x0:_0x2123fe[_0x48bdd(0xa0)]())!=null?_0x17257f:_0xa40415['LiveShareStatus'][_0x48bdd(0xa6)];}[_0x38aa96(0x98)](){const _0x4cc470=_0x38aa96;var _0x51be51;const _0x400b9f=this[_0x4cc470(0xa5)][_0x4cc470(0x77)](_0xa40415['LiveShareController']),_0x4313d6=(_0x51be51=this[_0x4cc470(0x7b)]())==null?void 0x0:_0x51be51[_0x4cc470(0x76)]();if(!_0x4313d6)throw new Error(_0x4cc470(0x97));const _0x158b6f=_0x400b9f[_0x4cc470(0x93)](_0x4313d6);if(!_0x158b6f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x158b6f[_0x4cc470(0x98)]();}[_0x38aa96(0x7d)](){const _0x186b21=_0x38aa96;var _0x4bad21;const _0x1e83f2=this[_0x186b21(0xa5)][_0x186b21(0x77)](_0xa40415[_0x186b21(0x9c)]),_0x3a11f6=(_0x4bad21=this[_0x186b21(0x7b)]())==null?void 0x0:_0x4bad21[_0x186b21(0x76)]();if(!_0x3a11f6)throw new Error('No\x20active\x20workbook\x20found.');const _0x505923=_0x1e83f2['getLiveShareCoordinatorSync'](_0x3a11f6);if(!_0x505923)throw new Error(_0x186b21(0x7a));_0x505923[_0x186b21(0x7d)]();}[_0x38aa96(0x9e)](){const _0xef7b9f=_0x38aa96;var _0x53431d;const _0x268195=this[_0xef7b9f(0xa5)][_0xef7b9f(0x77)](_0xa40415['LiveShareController']),_0x3059f8=(_0x53431d=this[_0xef7b9f(0x7b)]())==null?void 0x0:_0x53431d[_0xef7b9f(0x76)]();if(!_0x3059f8)throw new Error(_0xef7b9f(0x97));const _0x25eb5f=_0x268195[_0xef7b9f(0x93)](_0x3059f8);if(!_0x25eb5f)throw new Error(_0xef7b9f(0x7a));_0x25eb5f[_0xef7b9f(0x9f)]();}['stopPresenting'](){const _0x205a3d=_0x38aa96;var _0x3eec89;const _0x20e485=this[_0x205a3d(0xa5)][_0x205a3d(0x77)](_0xa40415[_0x205a3d(0x9c)]),_0x4550e=(_0x3eec89=this[_0x205a3d(0x7b)]())==null?void 0x0:_0x3eec89[_0x205a3d(0x76)]();if(!_0x4550e)throw new Error(_0x205a3d(0x97));const _0x22cc2b=_0x20e485['getLiveShareCoordinatorSync'](_0x4550e);if(!_0x22cc2b)throw new Error(_0x205a3d(0x7a));_0x22cc2b[_0x205a3d(0x81)]();}}_0x17514a[_0x38aa96(0x85)]['extend'](_0x134d51);class _0x2125d3 extends _0x17514a[_0x38aa96(0x92)]{get[_0x38aa96(0x88)](){const _0x3e7a13=_0x38aa96;return _0xa40415[_0x3e7a13(0xa4)];}}_0x17514a[_0x38aa96(0x92)][_0x38aa96(0x8a)](_0x2125d3);}));
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 _0x54c7(_0x374854,_0x3c16f0){_0x374854=_0x374854-0x1ab;const _0x97dc45=_0x97dc();let _0x54c752=_0x97dc45[_0x374854];return _0x54c752;}function _0x97dc(){const _0x5d29ff=['following','get','LIVESHARE_FETCH_OPERATIONS','mutations','type','@univerjs/core','SessionStatus','subscribe','BehaviorSubject','idle','svg','operations','clsx','ICommandService','@univerjs-pro/collaboration-client','includes','_handleNewHost','getValue','DisposableCollection','forEach','SetWorksheetActiveOperation','27ptgdPs','reverse','clear','LIVESHARE_OPERATION','LIVESHARE_NEW_HOST','_handleTerminate','throttleTime','offline','registerComponent','string','useState','colorChannel1','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','assign','_collabSession','react','merge','UniverInstanceType','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','You\x27re\x20following\x20the\x20presenter','UNIVER_UNKNOWN','getStatus','CommandType','replace','toDisposable','1em','getMemberID','_stopPresenting','_reporters','LIVESHARE_REQUEST_HOST','univer-size-4','_handleOperation','_beIdle','_injector','@univerjs/ui','3482128JMnPvw','DesktopLiveShareController','onStarting','send','_mountLiveShare','IUniverInstanceService','live-share.config','638748RGjffK','DependentOn','stringify','requireSession','substring','has','UniverCore','onCommandExecuted','_startLiveShareCoordinator','getConfig','Disposable','init','displayName','unitId','_startPresenting','FOLLOWING','_handleOffline','toStringTag','not-following','shouldShareOperation','LiveShareIcon','_entities','xlink:href','createElement','parse','Start','startFollowing','UNIVER_SHEET','defIds','executeCommand','Fragment','dispose','_status$','react/jsx-runtime','UniverProCollaborationClient','348061olQLWc','21449626CXjPYt','_init','_liveShareService','_commandDisposable','_stopFollowing','UniverLiveSharePlugin','none','evenodd','85MafPnI','entries','_collabSessionService','SetScrollOperation','parseProtocolChangeset','defs','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','UniverProLiveShare','data','OFFLINE','Module','LiveShare','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','children','currentColor','amd','defineProperty','text','IConfigService','default','attrs','operators','Button','LiveShareController','UniverSheetsUi','Injector','12qNaMGh','length','asObservable','values','tag','IDLE','Plugin','@univerjs/sheets-ui','getUnitId','getTypeOfUnitDisposed$','disposeWithMe','map','use','UniverSheets','jsxs','next','fill','registerSharedOperation','NOT_FOLLOWING','_status','takeUntil','_sharedOperations','_unitID','sessionStatus$','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','1137770kxDebL','RxDisposable','BuiltInUIPart','end','Stop\x20following','stopPresenting','SAME_OPERATION_SHARE_INTERVAL','random','Dropdown','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','status$','@univerjs/design','LiveShareStatus','useObservable','3NaHQkL','from','sheet','presenter','univerjs-icon\x20univerjs-icon-','rxjs','HEADER_MENU','_configService','SetZoomRatioOperation','registerInitialStateReporter','48GGJDDn','ONLINE','_presenter','http://www.w3.org/2000/svg','connectInjector','delete','touchDependencies','dispose$','event$','pipe','live-share-icon','object','path','Inject','button','set','unsubscribe','PRESENTING','_commandService','jsx','React','_startFollowing','mask','getOwnPropertyDescriptor','_univerInstanceService','useDependency','pluginName','Present\x20this\x20document','_handleOnline','complete','function','Start\x20following','_handleNewChangeSets','_config','You\x27are\x20offline.','presenting','then','stopFollowing','mergeOverrideWithDependencies','params','tryStartPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','symbol','NEW_CHANGESETS','UniverUi','CollaborationEvent','CollaborationSessionService','LIVESHARE_TERMINATE','UniverDesign','5158570dgqJxo','LiveShareCoordinator','setConfig','idSuffix','useRef','current','memberID','add','277932pcujFz','find'];_0x97dc=function(){return _0x5d29ff;};return _0x97dc();}(function(_0x18a842,_0x2740ab){const _0x3a4016=_0x54c7,_0x23897e=_0x18a842();while(!![]){try{const _0x14a467=-parseInt(_0x3a4016(0x291))/0x1+-parseInt(_0x3a4016(0x1fc))/0x2*(parseInt(_0x3a4016(0x20b))/0x3)+-parseInt(_0x3a4016(0x24f))/0x4*(parseInt(_0x3a4016(0x1c8))/0x5)+parseInt(_0x3a4016(0x215))/0x6*(parseInt(_0x3a4016(0x1bf))/0x7)+parseInt(_0x3a4016(0x28a))/0x8*(parseInt(_0x3a4016(0x266))/0x9)+-parseInt(_0x3a4016(0x247))/0xa+-parseInt(_0x3a4016(0x1c0))/0xb*(-parseInt(_0x3a4016(0x1e3))/0xc);if(_0x14a467===_0x2740ab)break;else _0x23897e['push'](_0x23897e['shift']());}catch(_0x313ff8){_0x23897e['push'](_0x23897e['shift']());}}}(_0x97dc,0xb6d2f),function(_0x3d96ca,_0x2acecb){const _0x5ee5c0=_0x54c7;typeof exports==_0x5ee5c0(0x220)&&typeof module<'u'?_0x2acecb(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==_0x5ee5c0(0x233)&&define[_0x5ee5c0(0x1d8)]?define(['exports',_0x5ee5c0(0x256),_0x5ee5c0(0x289),_0x5ee5c0(0x1bd),_0x5ee5c0(0x208),_0x5ee5c0(0x275),'@univerjs-pro/collaboration',_0x5ee5c0(0x25f),'@univerjs/sheets',_0x5ee5c0(0x210),'rxjs/operators',_0x5ee5c0(0x1ea)],_0x2acecb):(_0x3d96ca=typeof globalThis<'u'?globalThis:_0x3d96ca||self,_0x2acecb(_0x3d96ca[_0x5ee5c0(0x1d0)]={},_0x3d96ca[_0x5ee5c0(0x297)],_0x3d96ca[_0x5ee5c0(0x242)],_0x3d96ca[_0x5ee5c0(0x229)],_0x3d96ca[_0x5ee5c0(0x246)],_0x3d96ca['React'],_0x3d96ca['UniverProCollaboration'],_0x3d96ca[_0x5ee5c0(0x1be)],_0x3d96ca[_0x5ee5c0(0x1f0)],_0x3d96ca[_0x5ee5c0(0x210)],_0x3d96ca[_0x5ee5c0(0x210)][_0x5ee5c0(0x1de)],_0x3d96ca[_0x5ee5c0(0x1e1)]));}(this,function(_0x3f9af7,_0x564dbf,_0x589989,_0x4e54a3,_0x37249e,_0x250ede,_0x3f336e,_0x59c35a,_0x3ee16,_0x41c691,_0x59d6d0,_0x46d7a9){'use strict';const _0x10d9ff=_0x54c7;var _0x5ae4f2=Object[_0x10d9ff(0x1d9)],_0x270629=(_0x800c27,_0x3082cd,_0x3fa28e)=>_0x3082cd in _0x800c27?_0x5ae4f2(_0x800c27,_0x3082cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fa28e}):_0x800c27[_0x3082cd]=_0x3fa28e,_0x30a44a=(_0x440f23,_0x44f531,_0x5c293b)=>_0x270629(_0x440f23,typeof _0x44f531!=_0x10d9ff(0x240)?_0x44f531+'':_0x44f531,_0x5c293b);function _0x3cce3b({ref:_0x5a1f93,..._0x4b2db3}){const _0x5a1355=_0x10d9ff,{icon:_0x11a877,id:_0xf302cd,className:_0x3ddcd8,extend:_0x27515e,..._0x523b01}=_0x4b2db3,_0x15b449=(_0x5a1355(0x20f)+_0xf302cd+'\x20'+(_0x3ddcd8||''))['trim'](),_0x3eaa16=_0x250ede[_0x5a1355(0x24b)]('_'+_0x1b67b3());return _0xe1085c(_0x11a877,''+_0xf302cd,{'defIds':_0x11a877[_0x5a1355(0x1b8)],'idSuffix':_0x3eaa16[_0x5a1355(0x24c)]},{'ref':_0x5a1f93,'className':_0x15b449,..._0x523b01},_0x27515e);}function _0xe1085c(_0x150653,_0x369247,_0x1ad34f,_0x48e13e,_0x2558e7){const _0x1dcf1a=_0x10d9ff;return _0x250ede[_0x1dcf1a(0x1b3)](_0x150653['tag'],{'key':_0x369247,..._0x509cbd(_0x150653,_0x1ad34f,_0x2558e7),..._0x48e13e},(_0x417779(_0x150653,_0x1ad34f)['children']||[])[_0x1dcf1a(0x1ee)]((_0x1af1e8,_0x14fa86)=>_0xe1085c(_0x1af1e8,_0x369247+'-'+_0x150653[_0x1dcf1a(0x1e7)]+'-'+_0x14fa86,_0x1ad34f,void 0x0,_0x2558e7)));}function _0x509cbd(_0x3c73af,_0x1254cf,_0x41843b){const _0x40a77e=_0x10d9ff,_0x46d4db={..._0x3c73af[_0x40a77e(0x1dd)]};_0x41843b!=null&&_0x41843b[_0x40a77e(0x271)]&&_0x46d4db[_0x40a77e(0x1f3)]===_0x40a77e(0x271)&&(_0x46d4db['fill']=_0x41843b['colorChannel1']),_0x3c73af[_0x40a77e(0x1e7)]===_0x40a77e(0x22b)&&_0x46d4db['id']&&(_0x46d4db['id']=_0x46d4db['id']+_0x1254cf[_0x40a77e(0x24a)]),Object[_0x40a77e(0x1c9)](_0x46d4db)['forEach'](([_0x1f6d72,_0x451a6b])=>{const _0x306951=_0x40a77e;_0x1f6d72===_0x306951(0x22b)&&typeof _0x451a6b==_0x306951(0x26f)&&(_0x46d4db[_0x1f6d72]=_0x451a6b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1254cf[_0x306951(0x24a)]+')'));});const {defIds:_0x795c20}=_0x1254cf;return!_0x795c20||_0x795c20['length']===0x0||(_0x3c73af[_0x40a77e(0x1e7)]===_0x40a77e(0x1ef)&&_0x46d4db[_0x40a77e(0x1b2)]&&(_0x46d4db[_0x40a77e(0x1b2)]=_0x46d4db[_0x40a77e(0x1b2)]+_0x1254cf[_0x40a77e(0x24a)]),Object[_0x40a77e(0x1c9)](_0x46d4db)[_0x40a77e(0x264)](([_0x442d85,_0x5c8e78])=>{const _0x4d05da=_0x40a77e;typeof _0x5c8e78==_0x4d05da(0x26f)&&(_0x46d4db[_0x442d85]=_0x5c8e78[_0x4d05da(0x27e)](/url\(#(.*)\)/,'url(#$1'+_0x1254cf[_0x4d05da(0x24a)]+')'));})),_0x46d4db;}function _0x417779(_0x35ccf7,_0x9ecc1d){const _0xdeccae=_0x10d9ff;var _0x1b7356;const {defIds:_0x18a387}=_0x9ecc1d;return!_0x18a387||_0x18a387[_0xdeccae(0x1e4)]===0x0?_0x35ccf7:_0x35ccf7[_0xdeccae(0x1e7)]===_0xdeccae(0x1cd)&&((_0x1b7356=_0x35ccf7[_0xdeccae(0x1d6)])!=null&&_0x1b7356[_0xdeccae(0x1e4)])?{..._0x35ccf7,'children':_0x35ccf7[_0xdeccae(0x1d6)][_0xdeccae(0x1ee)](_0x1646fd=>typeof _0x1646fd[_0xdeccae(0x1dd)]['id']==_0xdeccae(0x26f)&&_0x18a387&&_0x18a387[_0xdeccae(0x260)](_0x1646fd[_0xdeccae(0x1dd)]['id'])?{..._0x1646fd,'attrs':{..._0x1646fd[_0xdeccae(0x1dd)],'id':_0x1646fd[_0xdeccae(0x1dd)]['id']+_0x9ecc1d[_0xdeccae(0x24a)]}}:_0x1646fd)}:_0x35ccf7;}function _0x1b67b3(){const _0x28d91f=_0x10d9ff;return Math[_0x28d91f(0x203)]()['toString'](0x24)[_0x28d91f(0x295)](0x2,0x8);}_0x3cce3b[_0x10d9ff(0x29d)]='UniverIcon';const _0x470533={'tag':_0x10d9ff(0x25b),'attrs':{'xmlns':_0x10d9ff(0x218),'fill':_0x10d9ff(0x1c6),'viewBox':'0\x200\x2017\x2017','width':_0x10d9ff(0x280),'height':_0x10d9ff(0x280)},'children':[{'tag':_0x10d9ff(0x221),'attrs':{'fill':_0x10d9ff(0x1d7),'d':_0x10d9ff(0x272)}},{'tag':_0x10d9ff(0x221),'attrs':{'fill':'currentColor','d':_0x10d9ff(0x1d5),'fillRule':_0x10d9ff(0x1c7),'clipRule':_0x10d9ff(0x1c7)}}]},_0x217a46=_0x250ede['forwardRef'](function(_0x3bebb6,_0x572fb5){const _0x1102d0=_0x10d9ff;return _0x250ede[_0x1102d0(0x1b3)](_0x3cce3b,Object[_0x1102d0(0x273)]({},_0x3bebb6,{'id':_0x1102d0(0x21f),'ref':_0x572fb5,'icon':_0x470533}));});_0x217a46[_0x10d9ff(0x29d)]=_0x10d9ff(0x1b0);class _0xe80a23 extends _0x564dbf[_0x10d9ff(0x29b)]{constructor(){const _0x35d831=_0x10d9ff;super(...arguments),_0x30a44a(this,_0x35d831(0x1f8),new Set()),_0x30a44a(this,'_reporters',new Set());}[_0x10d9ff(0x1f4)](_0x2c0f67){const _0x4df50f=_0x10d9ff;return this['_sharedOperations'][_0x4df50f(0x24e)](_0x2c0f67),_0x564dbf[_0x4df50f(0x27f)](()=>this[_0x4df50f(0x1f8)][_0x4df50f(0x21a)](_0x2c0f67));}[_0x10d9ff(0x214)](_0x572766){const _0x4e596c=_0x10d9ff;return this[_0x4e596c(0x283)][_0x4e596c(0x24e)](_0x572766),_0x564dbf['toDisposable'](()=>this['_reporters']['delete'](_0x572766));}[_0x10d9ff(0x1af)](_0x42b1b2){const _0x15a59e=_0x10d9ff;return this[_0x15a59e(0x1f8)]['has'](_0x42b1b2);}['getInitialStates'](_0x194693){const _0xcd6b44=_0x10d9ff;return Array[_0xcd6b44(0x20c)](this[_0xcd6b44(0x283)])[_0xcd6b44(0x1ee)](_0x4a4433=>_0x4a4433(_0x194693));}}var _0x41aadc=Object[_0x10d9ff(0x22c)],_0x502f50=(_0x576e4c,_0x2619f6,_0x5f0af2,_0x4fa9c7)=>{const _0x24ed37=_0x10d9ff;for(var _0xc4eb97=_0x4fa9c7>0x1?void 0x0:_0x4fa9c7?_0x41aadc(_0x2619f6,_0x5f0af2):_0x2619f6,_0x37af90=_0x576e4c[_0x24ed37(0x1e4)]-0x1,_0x1e589e;_0x37af90>=0x0;_0x37af90--)(_0x1e589e=_0x576e4c[_0x37af90])&&(_0xc4eb97=_0x1e589e(_0xc4eb97)||_0xc4eb97);return _0xc4eb97;},_0x3f4fbf=(_0x38a43f,_0x4f0dbc)=>(_0x973392,_0x4605e6)=>_0x4f0dbc(_0x973392,_0x4605e6,_0x38a43f);_0x3f9af7[_0x10d9ff(0x1e0)]=class extends _0x564dbf['RxDisposable']{constructor(_0x60c535,_0x21ca6f,_0x2a8ed8){const _0x159ba1=_0x10d9ff;super(),_0x30a44a(this,_0x159ba1(0x1b1),new Map()),(this[_0x159ba1(0x22d)]=_0x60c535,this[_0x159ba1(0x288)]=_0x21ca6f,this[_0x159ba1(0x1ca)]=_0x2a8ed8,this['_init']());}async['getLiveShareCoordinator'](_0x578f27){const _0x5edc66=_0x10d9ff;return this['_entities'][_0x5edc66(0x296)](_0x578f27)||await this['_startLiveShareCoordinator'](_0x578f27),this[_0x5edc66(0x1b1)][_0x5edc66(0x252)](_0x578f27);}['getLiveShareCoordinatorSync'](_0x2932df){const _0x22340c=_0x10d9ff;var _0x21490b;return(_0x21490b=this[_0x22340c(0x1b1)][_0x22340c(0x252)](_0x2932df))!=null?_0x21490b:null;}['_init'](){const _0x3cb190=_0x10d9ff;this[_0x3cb190(0x22d)]['getTypeOfUnitAdded$'](_0x564dbf[_0x3cb190(0x277)]['UNIVER_SHEET'])[_0x3cb190(0x21e)](_0x59d6d0[_0x3cb190(0x1f7)](this[_0x3cb190(0x21c)]))[_0x3cb190(0x258)](async _0x12b8d6=>{const _0x2b8baf=_0x3cb190,_0x39b43c=_0x12b8d6[_0x2b8baf(0x1eb)]();this[_0x2b8baf(0x1b1)][_0x2b8baf(0x296)](_0x39b43c)||this[_0x2b8baf(0x299)](_0x39b43c);}),this[_0x3cb190(0x22d)][_0x3cb190(0x1ec)](_0x564dbf['UniverInstanceType'][_0x3cb190(0x1b7)])[_0x3cb190(0x21e)](_0x59d6d0[_0x3cb190(0x1f7)](this[_0x3cb190(0x21c)]))[_0x3cb190(0x258)](_0x20fcb1=>{const _0x2e0e2c=_0x3cb190,_0x17f75c=_0x20fcb1['getUnitId'](),_0x3d8c60=this[_0x2e0e2c(0x1b1)][_0x2e0e2c(0x252)](_0x17f75c);_0x3d8c60==null||_0x3d8c60[_0x2e0e2c(0x1bb)]();});}async[_0x10d9ff(0x299)](_0x1441cc){const _0x45a4b6=_0x10d9ff,_0x46d272=await this[_0x45a4b6(0x1ca)][_0x45a4b6(0x294)](_0x1441cc),_0x13e628=this[_0x45a4b6(0x288)][_0x45a4b6(0x278)](_0x3f9af7['LiveShareCoordinator'],_0x1441cc,_0x46d272);return _0x13e628[_0x45a4b6(0x29c)](),this[_0x45a4b6(0x1b1)][_0x45a4b6(0x224)](_0x1441cc,_0x13e628),_0x13e628;}},_0x3f9af7[_0x10d9ff(0x1e0)]=_0x502f50([_0x3f4fbf(0x0,_0x564dbf['IUniverInstanceService']),_0x3f4fbf(0x1,_0x564dbf[_0x10d9ff(0x222)](_0x564dbf[_0x10d9ff(0x1e2)])),_0x3f4fbf(0x2,_0x564dbf[_0x10d9ff(0x222)](_0x59c35a[_0x10d9ff(0x244)]))],_0x3f9af7[_0x10d9ff(0x1e0)]);var _0x5d6112=(_0x4ec478=>(_0x4ec478[_0x10d9ff(0x1d2)]=_0x10d9ff(0x26d),_0x4ec478[_0x10d9ff(0x1e8)]=_0x10d9ff(0x25a),_0x4ec478[_0x10d9ff(0x1ab)]=_0x10d9ff(0x251),_0x4ec478[_0x10d9ff(0x1f5)]='not-following',_0x4ec478[_0x10d9ff(0x226)]=_0x10d9ff(0x238),_0x4ec478))(_0x5d6112||{});const _0x10aa0a=_0x10d9ff(0x202),_0x140b4d=0xc8;_0x3f9af7[_0x10d9ff(0x248)]=class extends _0x564dbf[_0x10d9ff(0x1fd)]{constructor(_0x1b7dfd,_0x104a6b,_0x39d635,_0x6be438,_0xdc9354){const _0x1e0d6a=_0x10d9ff;super(),_0x30a44a(this,_0x1e0d6a(0x1bc),new _0x41c691[(_0x1e0d6a(0x259))](_0x1e0d6a(0x25a))),_0x30a44a(this,'status$',this[_0x1e0d6a(0x1bc)][_0x1e0d6a(0x1e5)]()),_0x30a44a(this,_0x1e0d6a(0x1c1),!0x1),_0x30a44a(this,'_commandDisposable',null),_0x30a44a(this,_0x1e0d6a(0x217),null),(this[_0x1e0d6a(0x1f9)]=_0x1b7dfd,this[_0x1e0d6a(0x274)]=_0x104a6b,this[_0x1e0d6a(0x212)]=_0x39d635,this[_0x1e0d6a(0x1c2)]=_0x6be438,this['_commandService']=_0xdc9354);}get['_status'](){const _0x433783=_0x10d9ff;return this[_0x433783(0x1bc)][_0x433783(0x262)]();}[_0x10d9ff(0x1bb)](){const _0x232adf=_0x10d9ff;var _0x4e0f52;(_0x4e0f52=this['_commandDisposable'])==null||_0x4e0f52[_0x232adf(0x1bb)](),this[_0x232adf(0x1bc)][_0x232adf(0x1f2)](_0x232adf(0x25a)),this[_0x232adf(0x1bc)][_0x232adf(0x232)]();}[_0x10d9ff(0x27c)](){return this['_status'];}['init'](){const _0x550530=_0x10d9ff;this[_0x550530(0x1c1)]||(this[_0x550530(0x1c1)]=!0x0,this['_collabSession'][_0x550530(0x1fa)][_0x550530(0x21e)](_0x59d6d0[_0x550530(0x1f7)](this['dispose$']))['subscribe'](_0xfcce46=>{const _0x592156=_0x550530;switch(_0xfcce46){case _0x59c35a[_0x592156(0x257)][_0x592156(0x1d2)]:this[_0x592156(0x1ac)]();break;case _0x59c35a[_0x592156(0x257)][_0x592156(0x216)]:this['_handleOnline']();break;}}),this[_0x550530(0x274)][_0x550530(0x21d)][_0x550530(0x21e)](_0x59d6d0[_0x550530(0x1f7)](this[_0x550530(0x21c)]))[_0x550530(0x258)](_0x6d0839=>{const _0x50c922=_0x550530,{eventID:_0x3d66ae}=_0x6d0839;switch(_0x3d66ae){case _0x3f336e['CollaborationEvent'][_0x50c922(0x26a)]:this[_0x50c922(0x261)](_0x6d0839);break;case _0x3f336e['CollaborationEvent'][_0x50c922(0x269)]:this[_0x50c922(0x286)](_0x6d0839);break;case _0x3f336e[_0x50c922(0x243)][_0x50c922(0x245)]:this[_0x50c922(0x26b)]();break;case _0x3f336e['CollaborationEvent'][_0x50c922(0x241)]:this[_0x50c922(0x235)](_0x6d0839);break;}}));}[_0x10d9ff(0x23d)](){const _0x29cfa6=_0x10d9ff;this['_collabSession'][_0x29cfa6(0x28d)]({'eventID':_0x3f336e['CollaborationEvent'][_0x29cfa6(0x284)],'data':{'unitID':this[_0x29cfa6(0x1f9)],'userID':this[_0x29cfa6(0x274)][_0x29cfa6(0x281)]()}},this[_0x29cfa6(0x1f9)]);}['stopPresenting'](){const _0x50d67e=_0x10d9ff;this[_0x50d67e(0x1f6)]===_0x50d67e(0x238)&&(this['_status$'][_0x50d67e(0x1f2)]('idle'),this[_0x50d67e(0x274)][_0x50d67e(0x28d)]({'eventID':_0x3f336e[_0x50d67e(0x243)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x50d67e(0x1f9)]));}[_0x10d9ff(0x1b6)](){const _0x1a2239=_0x10d9ff;this['_status']==='not-following'&&(this[_0x1a2239(0x1bc)][_0x1a2239(0x1f2)]('following'),this[_0x1a2239(0x22a)]());}['stopFollowing'](){const _0x3543b0=_0x10d9ff;this[_0x3543b0(0x1f6)]===_0x3543b0(0x251)&&this[_0x3543b0(0x1c4)]();}[_0x10d9ff(0x261)](_0x4a428d){const _0x8e0e69=_0x10d9ff,{presenter:_0x269d67}=_0x4a428d[_0x8e0e69(0x1d1)],_0x326a64=this[_0x8e0e69(0x274)]['getMemberID']();this['_presenter']=_0x269d67,_0x269d67===_0x326a64?(this['_stopFollowing'](),this[_0x8e0e69(0x29f)]()):this[_0x8e0e69(0x1f6)]!==_0x8e0e69(0x1ae)&&(this[_0x8e0e69(0x282)](),this[_0x8e0e69(0x22a)]());}['_fetchOperations'](){const _0x102642=_0x10d9ff,_0x56fce5={'eventID':_0x3f336e['CollaborationEvent'][_0x102642(0x253)]};this['_collabSession'][_0x102642(0x28d)](_0x56fce5,this[_0x102642(0x1f9)]);}[_0x10d9ff(0x26b)](){const _0x284461=_0x10d9ff;this['_presenter']=null,this[_0x284461(0x1f6)]!==_0x284461(0x238)&&this[_0x284461(0x287)]();}[_0x10d9ff(0x235)](_0x330484){const _0x513d5e=_0x10d9ff;if(this[_0x513d5e(0x1f6)]===_0x513d5e(0x251)&&this['_presenter']===_0x330484['data'][_0x513d5e(0x24d)]){const _0x3f3b18=_0x3f336e[_0x513d5e(0x1cc)](_0x330484[_0x513d5e(0x1d1)])[_0x513d5e(0x254)][_0x513d5e(0x267)]()[_0x513d5e(0x250)](_0x1efb5f=>_0x1efb5f['id']===_0x3ee16['InsertSheetMutation']['id']);if(_0x3f3b18){const _0x482cdf=_0x3f3b18[_0x513d5e(0x23c)][_0x513d5e(0x29e)],_0x417ded=_0x3f3b18[_0x513d5e(0x23c)][_0x513d5e(0x20d)]['id'];setTimeout(()=>{const _0x2ee0f6=_0x513d5e;this[_0x2ee0f6(0x227)][_0x2ee0f6(0x1b9)](_0x3ee16[_0x2ee0f6(0x265)]['id'],{'unitId':_0x482cdf,'subUnitId':_0x417ded},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3d9523=_0x10d9ff;this['_status$'][_0x3d9523(0x1f2)](_0x3d9523(0x238));const _0x24dce1=new Map(),_0x1054c8=this[_0x3d9523(0x1c3)]=new _0x564dbf[(_0x3d9523(0x263))]();_0x1054c8[_0x3d9523(0x24e)](_0x564dbf['toDisposable'](()=>{const _0x1f954e=_0x3d9523;_0x24dce1[_0x1f954e(0x264)](_0x50bac7=>_0x50bac7[_0x1f954e(0x232)]()),_0x24dce1[_0x1f954e(0x268)]();})),_0x1054c8[_0x3d9523(0x24e)](this[_0x3d9523(0x227)][_0x3d9523(0x298)](_0xb7d30a=>{const _0x524b83=_0x3d9523;var _0x3e4999;if(_0xb7d30a[_0x524b83(0x255)]!==_0x564dbf[_0x524b83(0x27d)][_0x524b83(0x1cf)]||!this[_0x524b83(0x1c2)]['shouldShareOperation'](_0xb7d30a['id']))return;const {id:_0x3729ac}=_0xb7d30a;let _0x504dd3;_0x24dce1[_0x524b83(0x296)](_0x3729ac)?_0x504dd3=_0x24dce1[_0x524b83(0x252)](_0x3729ac):(_0x504dd3=new _0x41c691['Subject'](),_0x24dce1[_0x524b83(0x224)](_0x3729ac,_0x504dd3),_0x504dd3[_0x524b83(0x21e)](_0x59d6d0[_0x524b83(0x26c)]((_0x3e4999=this[_0x524b83(0x212)][_0x524b83(0x29a)](_0x10aa0a))!=null?_0x3e4999:_0x140b4d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x524b83(0x258)](_0x3489b0=>{const _0x33e35d=_0x524b83;this[_0x33e35d(0x274)][_0x33e35d(0x28d)]({'eventID':_0x3f336e[_0x33e35d(0x243)][_0x33e35d(0x269)],'data':{'unitID':this[_0x33e35d(0x1f9)],'operations':{[_0x3489b0['id']]:{'id':_0x3489b0['id'],'params':JSON[_0x33e35d(0x293)](_0x3489b0[_0x33e35d(0x23c)])}}}},this[_0x33e35d(0x1f9)]);})),_0x504dd3[_0x524b83(0x1f2)](_0xb7d30a);})),this[_0x3d9523(0x1c2)]['getInitialStates'](this[_0x3d9523(0x1f9)])['forEach'](_0x41ec59=>this[_0x3d9523(0x274)][_0x3d9523(0x28d)]({'eventID':_0x3f336e[_0x3d9523(0x243)][_0x3d9523(0x269)],'data':{'unitID':this[_0x3d9523(0x1f9)],'operations':{[_0x41ec59['id']]:{'id':_0x41ec59['id'],'params':JSON[_0x3d9523(0x293)](_0x41ec59[_0x3d9523(0x23c)])}}}},this[_0x3d9523(0x1f9)]));}[_0x10d9ff(0x282)](){const _0xa26525=_0x10d9ff;var _0x42630b;this[_0xa26525(0x1bc)][_0xa26525(0x1f2)](_0xa26525(0x25a)),(_0x42630b=this[_0xa26525(0x1c3)])==null||_0x42630b[_0xa26525(0x1bb)](),this[_0xa26525(0x1c3)]=null;}[_0x10d9ff(0x22a)](){const _0x3ac4a9=_0x10d9ff;var _0x3335ca;(_0x3335ca=this[_0x3ac4a9(0x1c3)])==null||_0x3335ca[_0x3ac4a9(0x1bb)](),this[_0x3ac4a9(0x1bc)][_0x3ac4a9(0x1f2)](_0x3ac4a9(0x251));}[_0x10d9ff(0x287)](){const _0x55417e=_0x10d9ff;var _0x46b0ae;this['_status$']['next'](_0x55417e(0x25a)),(_0x46b0ae=this[_0x55417e(0x1c3)])==null||_0x46b0ae[_0x55417e(0x1bb)](),this[_0x55417e(0x1c3)]=null;}['_stopFollowing'](){const _0x10c5ba=_0x10d9ff;var _0x1cd7f6;this[_0x10c5ba(0x1bc)]['next'](_0x10c5ba(0x1ae)),(_0x1cd7f6=this['_commandDisposable'])==null||_0x1cd7f6[_0x10c5ba(0x1bb)]();}[_0x10d9ff(0x286)](_0x1f9269){const _0x1dda5b=_0x10d9ff;if([_0x1dda5b(0x238),'not-following','offline'][_0x1dda5b(0x260)](this['_status'])||!_0x1f9269[_0x1dda5b(0x1d1)][_0x1dda5b(0x20e)]||_0x1f9269[_0x1dda5b(0x1d1)][_0x1dda5b(0x20e)]===this[_0x1dda5b(0x274)]['getMemberID']())return;this['_status']===_0x1dda5b(0x25a)&&this['_startFollowing']();const _0x5bd68a=_0x1f9269[_0x1dda5b(0x1d1)][_0x1dda5b(0x25c)];Object[_0x1dda5b(0x1e6)](_0x5bd68a)['forEach'](_0x37c0a6=>{const _0x4f2481=_0x1dda5b;this[_0x4f2481(0x227)][_0x4f2481(0x1b9)](_0x37c0a6['id'],_0x37c0a6[_0x4f2481(0x23c)]?JSON[_0x4f2481(0x1b4)](_0x37c0a6[_0x4f2481(0x23c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xe4534a=_0x10d9ff;var _0x5cf15c;this[_0xe4534a(0x1bc)][_0xe4534a(0x1f2)]('offline'),(_0x5cf15c=this['_commandDisposable'])==null||_0x5cf15c[_0xe4534a(0x1bb)]();}[_0x10d9ff(0x231)](){const _0x5953c7=_0x10d9ff;this[_0x5953c7(0x1bc)][_0x5953c7(0x1f2)](_0x5953c7(0x25a)),this['_fetchOperations']();}},_0x3f9af7[_0x10d9ff(0x248)]=_0x502f50([_0x3f4fbf(0x2,_0x564dbf[_0x10d9ff(0x1db)]),_0x3f4fbf(0x3,_0x564dbf[_0x10d9ff(0x222)](_0xe80a23)),_0x3f4fbf(0x4,_0x564dbf[_0x10d9ff(0x25e)])],_0x3f9af7[_0x10d9ff(0x248)]);function _0x32b63f(){const _0x7a71d4=_0x10d9ff,_0x455756=_0x589989[_0x7a71d4(0x22e)](_0x3f9af7[_0x7a71d4(0x1e0)]),_0x504c56=_0x589989[_0x7a71d4(0x22e)](_0x564dbf[_0x7a71d4(0x28f)]),_0x527b8d=_0x589989[_0x7a71d4(0x20a)](()=>_0x504c56['getCurrentTypeOfUnit$'](_0x564dbf[_0x7a71d4(0x277)][_0x7a71d4(0x1b7)]),void 0x0,!0x1,[]),[_0x234601,_0x4b2d21]=_0x250ede[_0x7a71d4(0x270)](null),[_0x53e251,_0x42c70e]=_0x250ede[_0x7a71d4(0x270)](_0x5d6112[_0x7a71d4(0x1e8)]),_0x24a151=_0x250ede[_0x7a71d4(0x24b)](null);return _0x250ede['useEffect'](()=>(_0x527b8d&&_0x455756['getLiveShareCoordinator'](_0x527b8d[_0x7a71d4(0x1eb)]())[_0x7a71d4(0x239)](_0x1d7a23=>{const _0x5b6183=_0x7a71d4;_0x4b2d21(_0x1d7a23),_0x24a151['current']=_0x1d7a23[_0x5b6183(0x207)][_0x5b6183(0x258)](_0x19ec6b=>{_0x42c70e(_0x19ec6b);});}),()=>{const _0x9bd9c5=_0x7a71d4;var _0xa80b46;(_0xa80b46=_0x24a151[_0x9bd9c5(0x24c)])==null||_0xa80b46[_0x9bd9c5(0x225)](),_0x24a151[_0x9bd9c5(0x24c)]=null;}),[_0x527b8d,_0x455756]),_0x234601?_0x4e54a3['jsx'](_0x37249e[_0x7a71d4(0x204)],{'align':_0x7a71d4(0x1ff),'disabled':_0x53e251===_0x5d6112['OFFLINE'],'className':_0x7a71d4(0x1fb),'overlay':_0x4e54a3[_0x7a71d4(0x228)](_0x260811,{'status':_0x53e251,'coordinator':_0x234601}),'children':_0x4e54a3['jsx'](_0x7a71d4(0x223),{'className':_0x37249e[_0x7a71d4(0x25d)](_0x7a71d4(0x1ce),{'univer-cursor-not-allowed':_0x53e251===_0x5d6112[_0x7a71d4(0x1d2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53e251!==_0x5d6112[_0x7a71d4(0x1d2)]}),'type':_0x7a71d4(0x223),'children':_0x4e54a3[_0x7a71d4(0x228)](_0x217a46,{'className':_0x7a71d4(0x285)})})}):null;}function _0x260811(_0x437499){const _0x4f954b=_0x10d9ff,{status:_0x431fd7,coordinator:_0x286142}=_0x437499;switch(_0x431fd7){case _0x5d6112['IDLE']:return _0x4e54a3[_0x4f954b(0x228)](_0x1dc777,{'coordinator':_0x286142});case _0x5d6112[_0x4f954b(0x1ab)]:return _0x4e54a3['jsx'](_0x18b07c,{'coordinator':_0x286142});case _0x5d6112[_0x4f954b(0x1f5)]:return _0x4e54a3['jsx'](_0x3e3c0c,{'coordinator':_0x286142});case _0x5d6112[_0x4f954b(0x1d2)]:return _0x4e54a3[_0x4f954b(0x228)](_0x3f00d7,{});case _0x5d6112[_0x4f954b(0x226)]:return _0x4e54a3['jsx'](_0x259ee3,{'coordinator':_0x286142});default:return null;}}function _0x1dc777(_0x40840c){const _0x318b24=_0x10d9ff,{coordinator:_0x373a02}=_0x40840c;return _0x4e54a3[_0x318b24(0x1f1)](_0x4e54a3['Fragment'],{'children':[_0x4e54a3[_0x318b24(0x228)](_0x318b24(0x23f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x318b24(0x230)}),_0x4e54a3[_0x318b24(0x228)](_0x37249e['Button'],{'onClick':()=>_0x373a02[_0x318b24(0x23d)](),'children':_0x318b24(0x1b5)})]});}function _0x18b07c(_0x4cf2fb){const _0x59b3b6=_0x10d9ff,{coordinator:_0x1250fc}=_0x4cf2fb;return _0x4e54a3[_0x59b3b6(0x1f1)](_0x4e54a3['Fragment'],{'children':[_0x4e54a3['jsx'](_0x59b3b6(0x23f),{'className':_0x59b3b6(0x23e),'children':_0x59b3b6(0x27a)}),_0x4e54a3[_0x59b3b6(0x228)](_0x37249e['Button'],{'onClick':()=>_0x1250fc[_0x59b3b6(0x23a)](),'children':_0x59b3b6(0x200)})]});}function _0x3e3c0c(_0x2af91f){const _0x5a155b=_0x10d9ff,{coordinator:_0x33dfdc}=_0x2af91f;return _0x4e54a3[_0x5a155b(0x1f1)](_0x4e54a3['Fragment'],{'children':[_0x4e54a3[_0x5a155b(0x228)](_0x5a155b(0x23f),{'className':_0x5a155b(0x23e),'children':_0x5a155b(0x279)}),_0x4e54a3['jsx'](_0x37249e[_0x5a155b(0x1df)],{'variant':_0x5a155b(0x1da),'onClick':()=>_0x33dfdc[_0x5a155b(0x1b6)](),'children':_0x5a155b(0x234)})]});}function _0x259ee3(_0x70dccd){const _0x47ceeb=_0x10d9ff,{coordinator:_0x596c24}=_0x70dccd;return _0x4e54a3[_0x47ceeb(0x1f1)](_0x4e54a3[_0x47ceeb(0x1ba)],{'children':[_0x4e54a3[_0x47ceeb(0x228)](_0x47ceeb(0x23f),{'className':_0x47ceeb(0x23e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e54a3['jsx'](_0x37249e[_0x47ceeb(0x1df)],{'variant':_0x47ceeb(0x1dc),'onClick':()=>_0x596c24[_0x47ceeb(0x201)](),'children':'Stop\x20presenting'})]});}function _0x3f00d7(){const _0x2f907e=_0x10d9ff;return _0x4e54a3[_0x2f907e(0x228)](_0x4e54a3[_0x2f907e(0x1ba)],{'children':_0x2f907e(0x237)});}var _0x4d3d49=Object[_0x10d9ff(0x22c)],_0x1ed5a8=(_0x32ba27,_0x242cd0,_0x55df6d,_0x24447b)=>{const _0x3d3124=_0x10d9ff;for(var _0x1accca=_0x24447b>0x1?void 0x0:_0x24447b?_0x4d3d49(_0x242cd0,_0x55df6d):_0x242cd0,_0x2a5fcb=_0x32ba27[_0x3d3124(0x1e4)]-0x1,_0x4d1e9b;_0x2a5fcb>=0x0;_0x2a5fcb--)(_0x4d1e9b=_0x32ba27[_0x2a5fcb])&&(_0x1accca=_0x4d1e9b(_0x1accca)||_0x1accca);return _0x1accca;},_0x3610de=(_0x1a2e09,_0x504675)=>(_0x370838,_0x2562fc)=>_0x504675(_0x370838,_0x2562fc,_0x1a2e09);_0x3f9af7[_0x10d9ff(0x28b)]=class extends _0x564dbf[_0x10d9ff(0x29b)]{constructor(_0x3fe001,_0x17af81){const _0x460dd7=_0x10d9ff;super(),this[_0x460dd7(0x288)]=_0x3fe001,this[_0x460dd7(0x206)]=_0x17af81,this['_mountLiveShare']();}[_0x10d9ff(0x28e)](){const _0x4cf0bc=_0x10d9ff;this[_0x4cf0bc(0x1ed)](this[_0x4cf0bc(0x206)][_0x4cf0bc(0x26e)](_0x589989[_0x4cf0bc(0x1fe)][_0x4cf0bc(0x211)],()=>_0x589989[_0x4cf0bc(0x219)](_0x32b63f,this[_0x4cf0bc(0x288)])));}},_0x3f9af7[_0x10d9ff(0x28b)]=_0x1ed5a8([_0x3610de(0x0,_0x564dbf[_0x10d9ff(0x222)](_0x564dbf[_0x10d9ff(0x1e2)])),_0x3610de(0x1,_0x589989['IUIPartsService'])],_0x3f9af7[_0x10d9ff(0x28b)]);const _0x1c522b=_0x10d9ff(0x290),_0x20efc6={};var _0x3bb152=Object['getOwnPropertyDescriptor'],_0x23bb29=(_0x4f241f,_0x2f8c39,_0x46ebab,_0xc177de)=>{for(var _0x37112e=_0xc177de>0x1?void 0x0:_0xc177de?_0x3bb152(_0x2f8c39,_0x46ebab):_0x2f8c39,_0x54ae7b=_0x4f241f['length']-0x1,_0x4d99a2;_0x54ae7b>=0x0;_0x54ae7b--)(_0x4d99a2=_0x4f241f[_0x54ae7b])&&(_0x37112e=_0x4d99a2(_0x37112e)||_0x37112e);return _0x37112e;},_0x3bf3d0=(_0x47234a,_0x5109cb)=>(_0x4f42e2,_0x3fab91)=>_0x5109cb(_0x4f42e2,_0x3fab91,_0x47234a);let _0x1dd6cd=class extends _0x564dbf[_0x10d9ff(0x29b)]{constructor(_0xdb29cb){const _0x5b91ab=_0x10d9ff;super(),this['_liveShareService']=_0xdb29cb,this[_0x5b91ab(0x1c1)]();}[_0x10d9ff(0x1c1)](){const _0xba6750=_0x10d9ff;[_0x46d7a9[_0xba6750(0x213)]['id'],_0x46d7a9[_0xba6750(0x1cb)]['id'],_0x3ee16[_0xba6750(0x265)]['id']][_0xba6750(0x264)](_0x375158=>{const _0x5dc052=_0xba6750;this['disposeWithMe'](this[_0x5dc052(0x1c2)][_0x5dc052(0x1f4)](_0x375158));});}};_0x1dd6cd=_0x23bb29([_0x3bf3d0(0x0,_0x564dbf[_0x10d9ff(0x222)](_0xe80a23))],_0x1dd6cd);var _0x4cb857=Object[_0x10d9ff(0x1d9)],_0x5cc89e=Object[_0x10d9ff(0x22c)],_0x17a3da=(_0x3ea6cd,_0x1e2217,_0x2bab3b)=>_0x1e2217 in _0x3ea6cd?_0x4cb857(_0x3ea6cd,_0x1e2217,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bab3b}):_0x3ea6cd[_0x1e2217]=_0x2bab3b,_0x254053=(_0x47b2ba,_0x6b2e6b,_0x1ae9b8,_0x1da4f3)=>{for(var _0x1bec39=_0x1da4f3>0x1?void 0x0:_0x1da4f3?_0x5cc89e(_0x6b2e6b,_0x1ae9b8):_0x6b2e6b,_0x373403=_0x47b2ba['length']-0x1,_0x1e05ac;_0x373403>=0x0;_0x373403--)(_0x1e05ac=_0x47b2ba[_0x373403])&&(_0x1bec39=_0x1e05ac(_0x1bec39)||_0x1bec39);return _0x1bec39;},_0x338003=(_0x42b9f3,_0x397f26)=>(_0x2c9756,_0x3533b5)=>_0x397f26(_0x2c9756,_0x3533b5,_0x42b9f3),_0x36b36e=(_0x251972,_0xdc35b8,_0x58b33b)=>_0x17a3da(_0x251972,typeof _0xdc35b8!=_0x10d9ff(0x240)?_0xdc35b8+'':_0xdc35b8,_0x58b33b);const _0xe42568=_0x10d9ff(0x205);_0x3f9af7[_0x10d9ff(0x1c5)]=class extends _0x564dbf[_0x10d9ff(0x1e9)]{constructor(_0x2b57e3=_0x20efc6,_0x31c562,_0x5a2eb7){const _0x4169f5=_0x10d9ff;super(),this['_config']=_0x2b57e3,this[_0x4169f5(0x288)]=_0x31c562,this[_0x4169f5(0x212)]=_0x5a2eb7;const {..._0x32e4f6}=_0x564dbf[_0x4169f5(0x276)]({},_0x20efc6,this[_0x4169f5(0x236)]);this[_0x4169f5(0x212)][_0x4169f5(0x249)](_0x1c522b,_0x32e4f6);}[_0x10d9ff(0x28c)](){const _0x2235d8=_0x10d9ff;_0x564dbf['registerDependencies'](this[_0x2235d8(0x288)],_0x564dbf[_0x2235d8(0x23b)]([[_0xe80a23],[_0x3f9af7[_0x2235d8(0x1e0)]],[_0x1dd6cd],[_0x3f9af7['DesktopLiveShareController']]],this['_config']['override'])),_0x564dbf[_0x2235d8(0x21b)](this['_injector'],[[_0x1dd6cd]]);}['onRendered'](){const _0x4ff960=_0x10d9ff;_0x564dbf[_0x4ff960(0x21b)](this[_0x4ff960(0x288)],[[_0x3f9af7[_0x4ff960(0x28b)]]]);}},_0x36b36e(_0x3f9af7[_0x10d9ff(0x1c5)],_0x10d9ff(0x255),_0x564dbf[_0x10d9ff(0x277)][_0x10d9ff(0x27b)]),_0x36b36e(_0x3f9af7['UniverLiveSharePlugin'],_0x10d9ff(0x22f),_0xe42568),_0x3f9af7[_0x10d9ff(0x1c5)]=_0x254053([_0x564dbf[_0x10d9ff(0x292)](_0x59c35a['UniverCollaborationClientPlugin']),_0x338003(0x1,_0x564dbf[_0x10d9ff(0x222)](_0x564dbf['Injector'])),_0x338003(0x2,_0x564dbf[_0x10d9ff(0x1db)])],_0x3f9af7[_0x10d9ff(0x1c5)]),_0x3f9af7[_0x10d9ff(0x1d4)]=_0x32b63f,_0x3f9af7['LiveShareService']=_0xe80a23,_0x3f9af7[_0x10d9ff(0x209)]=_0x5d6112,Object[_0x10d9ff(0x1d9)](_0x3f9af7,Symbol[_0x10d9ff(0x1ad)],{'value':_0x10d9ff(0x1d3)});}));
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.20251222-4efcfbb",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
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"
60
+ "@univerjs-pro/collaboration": "0.14.0-insiders.20251222-4efcfbb",
61
+ "@univerjs/core": "0.14.0-insiders.20251222-4efcfbb",
62
+ "@univerjs/design": "0.14.0-insiders.20251222-4efcfbb",
63
+ "@univerjs-pro/collaboration-client": "0.14.0-insiders.20251222-4efcfbb",
64
+ "@univerjs/engine-render": "0.14.0-insiders.20251222-4efcfbb",
65
+ "@univerjs/sheets": "0.14.0-insiders.20251222-4efcfbb",
66
+ "@univerjs/sheets-ui": "0.14.0-insiders.20251222-4efcfbb",
67
+ "@univerjs/ui": "0.14.0-insiders.20251222-4efcfbb"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -74,7 +74,7 @@
74
74
  "typescript": "^5.9.3",
75
75
  "vite": "^7.2.7",
76
76
  "vitest": "^4.0.15",
77
- "@univerjs-infra/shared": "0.13.0",
77
+ "@univerjs-infra/shared": "0.14.0",
78
78
  "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {