@univerjs-pro/live-share 0.10.13-nightly.202510290902 → 0.10.14

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';const _0x397744=_0x3f8c;function _0x4e36(){const _0x5c6ef6=['FUniver','2440EOtUqo','13858031vNEGNd','getSheetId','getStatus','LiveShareController','_commandService','stopFollowing','getUnitId','startRow','170Gozvqb','extend','PRESENTING','168516QnqJWS','tryStartPresenting','executeCommand','SetScrollOperation','getLiveShareStatus','_initialize','FEnum','204460tSBMem','getActiveWorkbook','startPresenting','getActiveSheet','get','getLiveShareCoordinatorSync','2236Oadeyv','106694QTProC','3055620wEWBvO','No\x20active\x20workbook\x20found.','startFollowing','startColumn','24MXbAiJ','9YvenQN','FRange','156345ejIFtg','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','IDLE','_injector','LiveShareStatus','getId'];_0x4e36=function(){return _0x5c6ef6;};return _0x4e36();}(function(_0x403a39,_0x385244){const _0xda8f2=_0x3f8c,_0x2b5bfe=_0x403a39();while(!![]){try{const _0x4416d=-parseInt(_0xda8f2(0xdc))/0x1+parseInt(_0xda8f2(0xcd))/0x2*(parseInt(_0xda8f2(0xda))/0x3)+-parseInt(_0xda8f2(0xd3))/0x4*(parseInt(_0xda8f2(0xe4))/0x5)+-parseInt(_0xda8f2(0xd5))/0x6+-parseInt(_0xda8f2(0xd4))/0x7*(parseInt(_0xda8f2(0xd9))/0x8)+-parseInt(_0xda8f2(0xc6))/0x9*(parseInt(_0xda8f2(0xc3))/0xa)+parseInt(_0xda8f2(0xe5))/0xb;if(_0x4416d===_0x385244)break;else _0x2b5bfe['push'](_0x2b5bfe['shift']());}catch(_0x38bf1c){_0x2b5bfe['push'](_0x2b5bfe['shift']());}}}(_0x4e36,0x40786));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[_0x397744(0xdb)]{[_0x397744(0xcb)](_0x2df147,_0x2a0fa1,_0x3fe84e,_0x7946e5,_0x51dbcd){const _0x422b36=_0x397744,_0x26a996=_0x2df147[_0x422b36(0xd1)](n[_0x422b36(0xe8)]),_0x1326d5=_0x2df147[_0x422b36(0xd1)](g['IRenderManagerService']),_0x379d38=_0x2a0fa1[_0x422b36(0xc1)](),_0x524392=_0x2a0fa1[_0x422b36(0xd0)](),_0x4284d6=_0x26a996[_0x422b36(0xd2)](_0x379d38);(_0x4284d6==null?void 0x0:_0x4284d6[_0x422b36(0xe7)]())!==n[_0x422b36(0xe1)][_0x422b36(0xc5)]||(_0x3fe84e[_0x422b36(0xe6)]()!==_0x524392[_0x422b36(0xe6)]()&&this[_0x422b36(0xe9)][_0x422b36(0xc8)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x379d38,'subUnitId':_0x3fe84e[_0x422b36(0xe6)]()}),!_0x1326d5['getRenderById'](_0x379d38))||_0x51dbcd[_0x422b36(0xde)](f[_0x422b36(0xc9)]['id'],{'unitId':_0x2a0fa1[_0x422b36(0xc1)](),'sheetId':_0x3fe84e[_0x422b36(0xe6)](),'sheetViewStartRow':_0x7946e5[_0x422b36(0xc2)],'sheetViewStartColumn':_0x7946e5[_0x422b36(0xd8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x397744(0xdb)][_0x397744(0xc4)](w);class C extends a[_0x397744(0xe3)]{[_0x397744(0xca)](){const _0x4cc0e5=_0x397744;var _0x19be7d,_0x405d84;const _0x18c478=this[_0x4cc0e5(0xe0)]['get'](n[_0x4cc0e5(0xe8)]),_0x5a3e5e=(_0x19be7d=this['getActiveWorkbook']())==null?void 0x0:_0x19be7d['getId']();if(!_0x5a3e5e)throw new Error(_0x4cc0e5(0xd6));const _0x4ff872=_0x18c478[_0x4cc0e5(0xd2)](_0x5a3e5e);return(_0x405d84=_0x4ff872==null?void 0x0:_0x4ff872['getStatus']())!=null?_0x405d84:n['LiveShareStatus'][_0x4cc0e5(0xdf)];}[_0x397744(0xd7)](){const _0x153e92=_0x397744;var _0xe14ca2;const _0x2cdf5e=this['_injector'][_0x153e92(0xd1)](n[_0x153e92(0xe8)]),_0x1c8c95=(_0xe14ca2=this[_0x153e92(0xce)]())==null?void 0x0:_0xe14ca2['getId']();if(!_0x1c8c95)throw new Error(_0x153e92(0xd6));const _0x52b5c4=_0x2cdf5e[_0x153e92(0xd2)](_0x1c8c95);if(!_0x52b5c4)throw new Error(_0x153e92(0xdd));_0x52b5c4[_0x153e92(0xd7)]();}['stopFollowing'](){const _0x5d0555=_0x397744;var _0x4a9968;const _0x144ddb=this[_0x5d0555(0xe0)][_0x5d0555(0xd1)](n[_0x5d0555(0xe8)]),_0x5892a3=(_0x4a9968=this[_0x5d0555(0xce)]())==null?void 0x0:_0x4a9968[_0x5d0555(0xe2)]();if(!_0x5892a3)throw new Error('No\x20active\x20workbook\x20found.');const _0x19a7d2=_0x144ddb['getLiveShareCoordinatorSync'](_0x5892a3);if(!_0x19a7d2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19a7d2[_0x5d0555(0xea)]();}[_0x397744(0xcf)](){const _0x4703dd=_0x397744;var _0x2bcc93;const _0x1a3162=this[_0x4703dd(0xe0)][_0x4703dd(0xd1)](n[_0x4703dd(0xe8)]),_0x53373b=(_0x2bcc93=this[_0x4703dd(0xce)]())==null?void 0x0:_0x2bcc93['getId']();if(!_0x53373b)throw new Error('No\x20active\x20workbook\x20found.');const _0x78f1ad=_0x1a3162['getLiveShareCoordinatorSync'](_0x53373b);if(!_0x78f1ad)throw new Error(_0x4703dd(0xdd));_0x78f1ad[_0x4703dd(0xc7)]();}['stopPresenting'](){const _0x3cd62f=_0x397744;var _0x289428;const _0xb39f9e=this[_0x3cd62f(0xe0)][_0x3cd62f(0xd1)](n[_0x3cd62f(0xe8)]),_0x534096=(_0x289428=this[_0x3cd62f(0xce)]())==null?void 0x0:_0x289428['getId']();if(!_0x534096)throw new Error(_0x3cd62f(0xd6));const _0x2aebe1=_0xb39f9e[_0x3cd62f(0xd2)](_0x534096);if(!_0x2aebe1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2aebe1['stopPresenting']();}}a[_0x397744(0xe3)][_0x397744(0xc4)](C);class L extends a[_0x397744(0xcc)]{get['LiveShareStatusEnum'](){const _0xffed7b=_0x397744;return n[_0xffed7b(0xe1)];}}function _0x3f8c(_0x279842,_0x5debce){const _0x4e3634=_0x4e36();return _0x3f8c=function(_0x3f8c9c,_0x17069e){_0x3f8c9c=_0x3f8c9c-0xc1;let _0x1a7c86=_0x4e3634[_0x3f8c9c];return _0x1a7c86;},_0x3f8c(_0x279842,_0x5debce);}a[_0x397744(0xcc)]['extend'](L);
1
+ 'use strict';const _0x28cc63=_0x522a;(function(_0x16fe3c,_0x2f72b6){const _0x112719=_0x522a,_0x5dbb23=_0x16fe3c();while(!![]){try{const _0x32720a=-parseInt(_0x112719(0x19a))/0x1+-parseInt(_0x112719(0x1a3))/0x2*(parseInt(_0x112719(0x1a0))/0x3)+parseInt(_0x112719(0x1a2))/0x4+parseInt(_0x112719(0x1a9))/0x5+parseInt(_0x112719(0x189))/0x6*(parseInt(_0x112719(0x192))/0x7)+-parseInt(_0x112719(0x193))/0x8+parseInt(_0x112719(0x194))/0x9*(parseInt(_0x112719(0x186))/0xa);if(_0x32720a===_0x2f72b6)break;else _0x5dbb23['push'](_0x5dbb23['shift']());}catch(_0x25e0b3){_0x5dbb23['push'](_0x5dbb23['shift']());}}}(_0x11af,0xf18f7));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['FRange']{[_0x28cc63(0x18a)](_0x146d4b,_0x1dec85,_0x321085,_0xaf0044,_0x5f3f6c){const _0x599f21=_0x28cc63,_0xdcffed=_0x146d4b[_0x599f21(0x19b)](n[_0x599f21(0x1a4)]),_0x2f9a72=_0x146d4b[_0x599f21(0x19b)](g[_0x599f21(0x1a1)]),_0x396a2f=_0x1dec85[_0x599f21(0x191)](),_0x18677c=_0x1dec85[_0x599f21(0x199)](),_0x552703=_0xdcffed[_0x599f21(0x1a8)](_0x396a2f);(_0x552703==null?void 0x0:_0x552703[_0x599f21(0x19f)]())!==n[_0x599f21(0x19d)][_0x599f21(0x198)]||(_0x321085[_0x599f21(0x18b)]()!==_0x18677c[_0x599f21(0x18b)]()&&this['_commandService']['executeCommand'](u[_0x599f21(0x197)]['id'],{'unitId':_0x396a2f,'subUnitId':_0x321085[_0x599f21(0x18b)]()}),!_0x2f9a72[_0x599f21(0x19e)](_0x396a2f))||_0x5f3f6c[_0x599f21(0x18f)](f[_0x599f21(0x188)]['id'],{'unitId':_0x1dec85[_0x599f21(0x191)](),'sheetId':_0x321085[_0x599f21(0x18b)](),'sheetViewStartRow':_0xaf0044[_0x599f21(0x195)],'sheetViewStartColumn':_0xaf0044['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x28cc63(0x187)][_0x28cc63(0x18c)](w);class C extends a[_0x28cc63(0x182)]{['getLiveShareStatus'](){const _0x5b1383=_0x28cc63;var _0x1f9301,_0x99284f;const _0x16d960=this[_0x5b1383(0x185)][_0x5b1383(0x19b)](n['LiveShareController']),_0x345809=(_0x1f9301=this[_0x5b1383(0x18d)]())==null?void 0x0:_0x1f9301[_0x5b1383(0x1a5)]();if(!_0x345809)throw new Error(_0x5b1383(0x183));const _0x2f3c7c=_0x16d960[_0x5b1383(0x1a8)](_0x345809);return(_0x99284f=_0x2f3c7c==null?void 0x0:_0x2f3c7c[_0x5b1383(0x19f)]())!=null?_0x99284f:n['LiveShareStatus'][_0x5b1383(0x19c)];}[_0x28cc63(0x180)](){const _0x5519fe=_0x28cc63;var _0x4f08a1;const _0x13c954=this[_0x5519fe(0x185)]['get'](n[_0x5519fe(0x1a4)]),_0x29117f=(_0x4f08a1=this[_0x5519fe(0x18d)]())==null?void 0x0:_0x4f08a1[_0x5519fe(0x1a5)]();if(!_0x29117f)throw new Error(_0x5519fe(0x183));const _0x4d33d7=_0x13c954[_0x5519fe(0x1a8)](_0x29117f);if(!_0x4d33d7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4d33d7['startFollowing']();}[_0x28cc63(0x1a6)](){const _0x38506f=_0x28cc63;var _0x56e23f;const _0x210e15=this[_0x38506f(0x185)][_0x38506f(0x19b)](n['LiveShareController']),_0x295bb7=(_0x56e23f=this['getActiveWorkbook']())==null?void 0x0:_0x56e23f[_0x38506f(0x1a5)]();if(!_0x295bb7)throw new Error(_0x38506f(0x183));const _0x2f79e9=_0x210e15['getLiveShareCoordinatorSync'](_0x295bb7);if(!_0x2f79e9)throw new Error(_0x38506f(0x196));_0x2f79e9[_0x38506f(0x1a6)]();}[_0x28cc63(0x184)](){const _0x54d53e=_0x28cc63;var _0x4f7e6f;const _0xafcaab=this[_0x54d53e(0x185)][_0x54d53e(0x19b)](n['LiveShareController']),_0x38f898=(_0x4f7e6f=this[_0x54d53e(0x18d)]())==null?void 0x0:_0x4f7e6f[_0x54d53e(0x1a5)]();if(!_0x38f898)throw new Error(_0x54d53e(0x183));const _0x796cc0=_0xafcaab[_0x54d53e(0x1a8)](_0x38f898);if(!_0x796cc0)throw new Error(_0x54d53e(0x196));_0x796cc0[_0x54d53e(0x18e)]();}[_0x28cc63(0x1a7)](){const _0x23ef8a=_0x28cc63;var _0x26e01b;const _0x236c35=this[_0x23ef8a(0x185)][_0x23ef8a(0x19b)](n[_0x23ef8a(0x1a4)]),_0x36a6e7=(_0x26e01b=this[_0x23ef8a(0x18d)]())==null?void 0x0:_0x26e01b[_0x23ef8a(0x1a5)]();if(!_0x36a6e7)throw new Error('No\x20active\x20workbook\x20found.');const _0xdc15fb=_0x236c35[_0x23ef8a(0x1a8)](_0x36a6e7);if(!_0xdc15fb)throw new Error(_0x23ef8a(0x196));_0xdc15fb[_0x23ef8a(0x1a7)]();}}function _0x522a(_0x7b0723,_0x4991d8){const _0x11af2b=_0x11af();return _0x522a=function(_0x522acc,_0x1c7ee4){_0x522acc=_0x522acc-0x180;let _0x324536=_0x11af2b[_0x522acc];return _0x324536;},_0x522a(_0x7b0723,_0x4991d8);}a[_0x28cc63(0x182)][_0x28cc63(0x18c)](C);function _0x11af(){const _0x3e4822=['FUniver','No\x20active\x20workbook\x20found.','startPresenting','_injector','2930zvjUWS','FRange','SetScrollOperation','9007698YnRtEx','_initialize','getSheetId','extend','getActiveWorkbook','tryStartPresenting','syncExecuteCommand','FEnum','getUnitId','7gaiUVH','2363920nPvBnv','22626tkDkOn','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','SetWorksheetActiveOperation','PRESENTING','getActiveSheet','954902kHLITM','get','IDLE','LiveShareStatus','getRenderById','getStatus','3051708LeFRJq','IRenderManagerService','468488HCnQvr','2uSEzSP','LiveShareController','getId','stopFollowing','stopPresenting','getLiveShareCoordinatorSync','4510260CjoFFo','startFollowing','LiveShareStatusEnum'];_0x11af=function(){return _0x3e4822;};return _0x11af();}class L extends a[_0x28cc63(0x190)]{get[_0x28cc63(0x181)](){const _0xaa1532=_0x28cc63;return n[_0xaa1532(0x19d)];}}a[_0x28cc63(0x190)]['extend'](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3f9ef0=_0x41cd;(function(_0x26b630,_0x2dc4dd){const _0x43877c=_0x41cd,_0x17b84c=_0x26b630();while(!![]){try{const _0x1d970c=parseInt(_0x43877c(0x135))/0x1+-parseInt(_0x43877c(0x188))/0x2+parseInt(_0x43877c(0x179))/0x3+-parseInt(_0x43877c(0x190))/0x4+-parseInt(_0x43877c(0x1a3))/0x5+-parseInt(_0x43877c(0x131))/0x6+parseInt(_0x43877c(0x158))/0x7;if(_0x1d970c===_0x2dc4dd)break;else _0x17b84c['push'](_0x17b84c['shift']());}catch(_0x380f36){_0x17b84c['push'](_0x17b84c['shift']());}}}(_0x118c,0x43629));function _0x41cd(_0x1c0f1e,_0x318581){const _0x118cc9=_0x118c();return _0x41cd=function(_0x41cd3f,_0x1fcc48){_0x41cd3f=_0x41cd3f-0x11d;let _0x23596d=_0x118cc9[_0x41cd3f];return _0x23596d;},_0x41cd(_0x1c0f1e,_0x318581);}var T=Object['defineProperty'],U=(_0x4ea5fa,_0x2ff388,_0x127c7e)=>_0x2ff388 in _0x4ea5fa?T(_0x4ea5fa,_0x2ff388,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x127c7e}):_0x4ea5fa[_0x2ff388]=_0x127c7e,_=(_0x387b01,_0x4711c6,_0x4bf803)=>U(_0x387b01,typeof _0x4711c6!=_0x3f9ef0(0x149)?_0x4711c6+'':_0x4711c6,_0x4bf803);Object[_0x3f9ef0(0x1b1)](exports,Symbol[_0x3f9ef0(0x1a2)],{'value':_0x3f9ef0(0x1ad)});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:_0x328080,..._0x1e84a9}){const _0x295526=_0x3f9ef0,{icon:_0x39b5c3,id:_0xc36f5e,className:_0x249ad7,extend:_0x4142cb,..._0x210f71}=_0x1e84a9,_0x165b2d=(_0x295526(0x1cd)+_0xc36f5e+'\x20'+(_0x249ad7||''))[_0x295526(0x1ef)](),_0x3dc11e=v[_0x295526(0x13b)]('_'+H());return j(_0x39b5c3,''+_0xc36f5e,{'defIds':_0x39b5c3[_0x295526(0x13f)],'idSuffix':_0x3dc11e['current']},{'ref':_0x328080,'className':_0x165b2d,..._0x210f71},_0x4142cb);}function j(_0x594671,_0x37e2cb,_0x3e3bab,_0x260657,_0x10ea39){const _0x45b61c=_0x3f9ef0;return v[_0x45b61c(0x136)](_0x594671[_0x45b61c(0x19b)],{'key':_0x37e2cb,...y(_0x594671,_0x3e3bab,_0x10ea39),..._0x260657},(F(_0x594671,_0x3e3bab)[_0x45b61c(0x15f)]||[])['map']((_0x32d6c9,_0x22cf90)=>j(_0x32d6c9,_0x37e2cb+'-'+_0x594671[_0x45b61c(0x19b)]+'-'+_0x22cf90,_0x3e3bab,void 0x0,_0x10ea39)));}function y(_0x45dfb4,_0x1824ad,_0x26f334){const _0x595b8b=_0x3f9ef0,_0x4327c9={..._0x45dfb4[_0x595b8b(0x1d8)]};_0x26f334!=null&&_0x26f334[_0x595b8b(0x14c)]&&_0x4327c9['fill']===_0x595b8b(0x14c)&&(_0x4327c9['fill']=_0x26f334[_0x595b8b(0x14c)]),_0x45dfb4['tag']===_0x595b8b(0x137)&&_0x4327c9['id']&&(_0x4327c9['id']=_0x4327c9['id']+_0x1824ad['idSuffix']),Object['entries'](_0x4327c9)[_0x595b8b(0x1e0)](([_0x15df46,_0x43cf6e])=>{const _0x3c0f2f=_0x595b8b;_0x15df46===_0x3c0f2f(0x137)&&typeof _0x43cf6e==_0x3c0f2f(0x154)&&(_0x4327c9[_0x15df46]=_0x43cf6e[_0x3c0f2f(0x1b6)](/url\(#(.*)\)/,_0x3c0f2f(0x1f2)+_0x1824ad[_0x3c0f2f(0x141)]+')'));});const {defIds:_0x23f317}=_0x1824ad;return!_0x23f317||_0x23f317[_0x595b8b(0x159)]===0x0||(_0x45dfb4[_0x595b8b(0x19b)]==='use'&&_0x4327c9[_0x595b8b(0x126)]&&(_0x4327c9[_0x595b8b(0x126)]=_0x4327c9['xlink:href']+_0x1824ad[_0x595b8b(0x141)]),Object[_0x595b8b(0x163)](_0x4327c9)[_0x595b8b(0x1e0)](([_0x4fcd72,_0x30de02])=>{const _0x34cb25=_0x595b8b;typeof _0x30de02==_0x34cb25(0x154)&&(_0x4327c9[_0x4fcd72]=_0x30de02[_0x34cb25(0x1b6)](/url\(#(.*)\)/,_0x34cb25(0x1f2)+_0x1824ad[_0x34cb25(0x141)]+')'));})),_0x4327c9;}function F(_0x3717d3,_0x85322f){const _0x24613b=_0x3f9ef0;var _0xd7d70e;const {defIds:_0x411daf}=_0x85322f;return!_0x411daf||_0x411daf['length']===0x0?_0x3717d3:_0x3717d3[_0x24613b(0x19b)]===_0x24613b(0x19d)&&((_0xd7d70e=_0x3717d3[_0x24613b(0x15f)])!=null&&_0xd7d70e['length'])?{..._0x3717d3,'children':_0x3717d3[_0x24613b(0x15f)][_0x24613b(0x14e)](_0x2cccac=>typeof _0x2cccac[_0x24613b(0x1d8)]['id']==_0x24613b(0x154)&&_0x411daf&&_0x411daf[_0x24613b(0x17d)](_0x2cccac[_0x24613b(0x1d8)]['id'])?{..._0x2cccac,'attrs':{..._0x2cccac[_0x24613b(0x1d8)],'id':_0x2cccac[_0x24613b(0x1d8)]['id']+_0x85322f[_0x24613b(0x141)]}}:_0x2cccac)}:_0x3717d3;}function H(){const _0x51210c=_0x3f9ef0;return Math[_0x51210c(0x1c5)]()['toString'](0x24)[_0x51210c(0x199)](0x2,0x8);}x['displayName']=_0x3f9ef0(0x1bb);const V={'tag':_0x3f9ef0(0x192),'attrs':{'xmlns':_0x3f9ef0(0x151),'fill':_0x3f9ef0(0x138),'viewBox':_0x3f9ef0(0x1a5),'width':'1em','height':_0x3f9ef0(0x193)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x3f9ef0(0x11e)}},{'tag':_0x3f9ef0(0x1e4),'attrs':{'fill':_0x3f9ef0(0x16f),'d':_0x3f9ef0(0x184),'fillRule':'evenodd','clipRule':_0x3f9ef0(0x1d2)}}]},R=v[_0x3f9ef0(0x1e7)](function(_0x5b4a94,_0x2d14a7){const _0x4726bf=_0x3f9ef0;return v['createElement'](x,Object[_0x4726bf(0x1bf)]({},_0x5b4a94,{'id':_0x4726bf(0x1ca),'ref':_0x2d14a7,'icon':V}));});R['displayName']=_0x3f9ef0(0x172);class E extends o[_0x3f9ef0(0x18c)]{constructor(){const _0x2b42a3=_0x3f9ef0;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x2b42a3(0x1c0),new Set());}[_0x3f9ef0(0x1d7)](_0x45fa15){const _0x42b82d=_0x3f9ef0;return this[_0x42b82d(0x171)][_0x42b82d(0x17e)](_0x45fa15),o[_0x42b82d(0x1f0)](()=>this[_0x42b82d(0x171)]['delete'](_0x45fa15));}[_0x3f9ef0(0x1dd)](_0x2d077c){const _0x31e8e4=_0x3f9ef0;return this[_0x31e8e4(0x1c0)][_0x31e8e4(0x17e)](_0x2d077c),o[_0x31e8e4(0x1f0)](()=>this[_0x31e8e4(0x1c0)][_0x31e8e4(0x16e)](_0x2d077c));}['shouldShareOperation'](_0x45ab8e){const _0x2766e6=_0x3f9ef0;return this[_0x2766e6(0x171)][_0x2766e6(0x17a)](_0x45ab8e);}[_0x3f9ef0(0x14b)](_0x2ff32b){const _0x3be564=_0x3f9ef0;return Array[_0x3be564(0x1c7)](this['_reporters'])['map'](_0x1dd30d=>_0x1dd30d(_0x2ff32b));}}var M=Object[_0x3f9ef0(0x1cb)],P=(_0x3ab9a4,_0x171558,_0x138f30,_0xe3343c)=>{const _0x4bdcd6=_0x3f9ef0;for(var _0x8d602d=_0xe3343c>0x1?void 0x0:_0xe3343c?M(_0x171558,_0x138f30):_0x171558,_0x4e0e34=_0x3ab9a4[_0x4bdcd6(0x159)]-0x1,_0x9e9d76;_0x4e0e34>=0x0;_0x4e0e34--)(_0x9e9d76=_0x3ab9a4[_0x4e0e34])&&(_0x8d602d=_0x9e9d76(_0x8d602d)||_0x8d602d);return _0x8d602d;},S=(_0x10eec0,_0xe47ee3)=>(_0x31faa7,_0x46ebcf)=>_0xe47ee3(_0x31faa7,_0x46ebcf,_0x10eec0);exports['LiveShareController']=class extends o[_0x3f9ef0(0x145)]{constructor(_0x39bc42,_0x10364c,_0x2a5d5b){const _0x3e6dc0=_0x3f9ef0;super(),_(this,_0x3e6dc0(0x139),new Map()),(this['_univerInstanceService']=_0x39bc42,this[_0x3e6dc0(0x174)]=_0x10364c,this[_0x3e6dc0(0x18e)]=_0x2a5d5b,this[_0x3e6dc0(0x1c4)]());}async[_0x3f9ef0(0x142)](_0x5e953b){const _0x25ba3e=_0x3f9ef0;return this[_0x25ba3e(0x139)][_0x25ba3e(0x17a)](_0x5e953b)||await this[_0x25ba3e(0x1e6)](_0x5e953b),this['_entities'][_0x25ba3e(0x1ea)](_0x5e953b);}['getLiveShareCoordinatorSync'](_0x1543df){const _0x39e3c4=_0x3f9ef0;var _0x5c7f52;return(_0x5c7f52=this[_0x39e3c4(0x139)][_0x39e3c4(0x1ea)](_0x1543df))!=null?_0x5c7f52:null;}[_0x3f9ef0(0x1c4)](){const _0x49587e=_0x3f9ef0;this[_0x49587e(0x1b4)]['getTypeOfUnitAdded$'](o[_0x49587e(0x1d9)][_0x49587e(0x167)])['pipe'](I[_0x49587e(0x1ab)](this['dispose$']))[_0x49587e(0x13a)](async _0x23d77c=>{const _0x2032bf=_0x49587e,_0x3d9235=_0x23d77c[_0x2032bf(0x166)]();this[_0x2032bf(0x139)][_0x2032bf(0x17a)](_0x3d9235)||this[_0x2032bf(0x1e6)](_0x3d9235);}),this[_0x49587e(0x1b4)]['getTypeOfUnitDisposed$'](o[_0x49587e(0x1d9)][_0x49587e(0x167)])[_0x49587e(0x1ee)](I['takeUntil'](this[_0x49587e(0x1be)]))['subscribe'](_0x156bdb=>{const _0xab3289=_0x49587e,_0x1aa659=_0x156bdb['getUnitId'](),_0x17e2fb=this[_0xab3289(0x139)][_0xab3289(0x1ea)](_0x1aa659);_0x17e2fb==null||_0x17e2fb[_0xab3289(0x1c1)]();});}async['_startLiveShareCoordinator'](_0x2cc52c){const _0x31cbc9=_0x3f9ef0,_0x1dd2a7=await this[_0x31cbc9(0x18e)]['requireSession'](_0x2cc52c),_0x4ceaa4=this[_0x31cbc9(0x174)][_0x31cbc9(0x1a1)](exports[_0x31cbc9(0x1db)],_0x2cc52c,_0x1dd2a7);return _0x4ceaa4[_0x31cbc9(0x1d6)](),this[_0x31cbc9(0x139)][_0x31cbc9(0x1af)](_0x2cc52c,_0x4ceaa4),_0x4ceaa4;}},exports[_0x3f9ef0(0x12a)]=P([S(0x0,o[_0x3f9ef0(0x1d3)]),S(0x1,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),S(0x2,o[_0x3f9ef0(0x1c8)](b['CollaborationSessionService']))],exports[_0x3f9ef0(0x12a)]);var u=(_0x4f8b04=>(_0x4f8b04[_0x3f9ef0(0x18d)]='offline',_0x4f8b04[_0x3f9ef0(0x178)]='idle',_0x4f8b04[_0x3f9ef0(0x195)]=_0x3f9ef0(0x120),_0x4f8b04[_0x3f9ef0(0x150)]=_0x3f9ef0(0x168),_0x4f8b04[_0x3f9ef0(0x197)]=_0x3f9ef0(0x169),_0x4f8b04))(u||{});const k=_0x3f9ef0(0x121),q=0xc8;function _0x118c(){const _0x3deef1=['LIVESHARE_TERMINATE','string','_beIdle','LIVESHARE_OPERATION','stopPresenting','3736873zncRyT','length','useEffect','unsubscribe','ONLINE','LIVESHARE_REQUEST_HOST','univer-size-4','children','end','SetZoomRatioOperation','button','entries','override','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getUnitId','UNIVER_SHEET','not-following','presenting','jsxs','merge','stopFollowing','parse','delete','currentColor','_presenter','_sharedOperations','LiveShareIcon','clear','_injector','DesktopLiveShareController','OPERATION','operations','IDLE','1221078XBzRZS','has','Subject','_fetchOperations','includes','add','Stop\x20presenting','stringify','getCurrentTypeOfUnit$','IConfigService','getMemberID','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','offline','_status$','SessionStatus','796258LrSXNs','_handleOffline','disposeWithMe','presenter','Disposable','OFFLINE','_collabSessionService','event$','256876IdENsB','UNIVER_LIVE_SHARE_PLUGIN','svg','1em','univer-mb-3\x20univer-w-full\x20univer-text-sm','FOLLOWING','NEW_CHANGESETS','PRESENTING','_status','substring','startFollowing','tag','InsertSheetMutation','defs','onCommandExecuted','onRendered','_commandDisposable','createInstance','toStringTag','2205075UomJFu','_startFollowing','0\x200\x2017\x2017','UNIVER_UNKNOWN','UniverLiveSharePlugin','You\x27re\x20not\x20following\x20the\x20presenter','You\x27re\x20presenting\x20the\x20document','Injector','takeUntil','_handleNewChangeSets','Module','LiveShare','set','_handleTerminate','defineProperty','find','mutations','_univerInstanceService','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','replace','div','default','type','idle','UniverIcon','_configService','_handleNewHost','dispose$','assign','_reporters','dispose','useState','send','_init','random','Present\x20this\x20document','from','Inject','unitId','live-share-icon','getOwnPropertyDescriptor','live-share.config','univerjs-icon\x20univerjs-icon-','Stop\x20following','_unitID','executeCommand','Start\x20following','evenodd','IUniverInstanceService','sheet','_config','init','registerSharedOperation','attrs','UniverInstanceType','_uiPartsService','LiveShareCoordinator','_liveShareService','registerInitialStateReporter','DependentOn','You\x27re\x20following\x20the\x20presenter','forEach','parseProtocolChangeset','HEADER_MENU','asObservable','path','_handleOperation','_startLiveShareCoordinator','forwardRef','data','text','get','pluginName','LiveShareService','Start','pipe','trim','toDisposable','_collabSession','url(#$1','BuiltInUIPart','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','Fragment','following','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','useObservable','_commandService','onStarting','xlink:href','setConfig','throttleTime','jsx','LiveShareController','touchDependencies','Button','tryStartPresenting','You\x27are\x20offline.','status$','_stopFollowing','1405716WAyZKc','getConfig','DisposableCollection','useDependency','472793yTxmAB','createElement','mask','none','_entities','subscribe','useRef','params','_handleOnline','SetScrollOperation','defIds','_startPresenting','idSuffix','getLiveShareCoordinator','current','SetWorksheetActiveOperation','RxDisposable','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','reverse','symbol','next','getInitialStates','colorChannel1','CollaborationEvent','map','registerDependencies','NOT_FOLLOWING','http://www.w3.org/2000/svg','_mountLiveShare'];_0x118c=function(){return _0x3deef1;};return _0x118c();}exports[_0x3f9ef0(0x1db)]=class extends o[_0x3f9ef0(0x145)]{constructor(_0x5a1811,_0x357a7b,_0x58f72f,_0x23777c,_0x47b8ed){const _0x1bf62b=_0x3f9ef0;super(),_(this,_0x1bf62b(0x186),new O['BehaviorSubject'](_0x1bf62b(0x1ba))),_(this,_0x1bf62b(0x12f),this[_0x1bf62b(0x186)][_0x1bf62b(0x1e3)]()),_(this,_0x1bf62b(0x1c4),!0x1),_(this,_0x1bf62b(0x1a0),null),_(this,_0x1bf62b(0x170),null),(this['_unitID']=_0x5a1811,this[_0x1bf62b(0x1f1)]=_0x357a7b,this[_0x1bf62b(0x1bc)]=_0x58f72f,this[_0x1bf62b(0x1dc)]=_0x23777c,this[_0x1bf62b(0x124)]=_0x47b8ed);}get[_0x3f9ef0(0x198)](){const _0x47f250=_0x3f9ef0;return this[_0x47f250(0x186)]['getValue']();}[_0x3f9ef0(0x1c1)](){const _0x3ba9bf=_0x3f9ef0;var _0x7fb619;(_0x7fb619=this[_0x3ba9bf(0x1a0)])==null||_0x7fb619[_0x3ba9bf(0x1c1)](),this[_0x3ba9bf(0x186)][_0x3ba9bf(0x14a)](_0x3ba9bf(0x1ba)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}['init'](){const _0x4cb1dc=_0x3f9ef0;this[_0x4cb1dc(0x1c4)]||(this['_init']=!0x0,this[_0x4cb1dc(0x1f1)]['sessionStatus$'][_0x4cb1dc(0x1ee)](I['takeUntil'](this[_0x4cb1dc(0x1be)]))[_0x4cb1dc(0x13a)](_0x3c08ee=>{const _0x3464f4=_0x4cb1dc;switch(_0x3c08ee){case b[_0x3464f4(0x187)]['OFFLINE']:this[_0x3464f4(0x189)]();break;case b[_0x3464f4(0x187)][_0x3464f4(0x15c)]:this[_0x3464f4(0x13d)]();break;}}),this[_0x4cb1dc(0x1f1)][_0x4cb1dc(0x18f)]['pipe'](I[_0x4cb1dc(0x1ab)](this[_0x4cb1dc(0x1be)]))[_0x4cb1dc(0x13a)](_0x54ab36=>{const _0x45b39d=_0x4cb1dc,{eventID:_0xbd4f51}=_0x54ab36;switch(_0xbd4f51){case d[_0x45b39d(0x14d)]['LIVESHARE_NEW_HOST']:this[_0x45b39d(0x1bd)](_0x54ab36);break;case d[_0x45b39d(0x14d)][_0x45b39d(0x156)]:this[_0x45b39d(0x1e5)](_0x54ab36);break;case d[_0x45b39d(0x14d)][_0x45b39d(0x153)]:this[_0x45b39d(0x1b0)]();break;case d[_0x45b39d(0x14d)][_0x45b39d(0x196)]:this[_0x45b39d(0x1ac)](_0x54ab36);break;}}));}[_0x3f9ef0(0x12d)](){const _0x14bb90=_0x3f9ef0;this[_0x14bb90(0x1f1)]['send']({'eventID':d[_0x14bb90(0x14d)][_0x14bb90(0x15d)],'data':{'unitID':this[_0x14bb90(0x1cf)],'userID':this[_0x14bb90(0x1f1)][_0x14bb90(0x183)]()}},this[_0x14bb90(0x1cf)]);}[_0x3f9ef0(0x157)](){const _0x2102c3=_0x3f9ef0;this[_0x2102c3(0x198)]===_0x2102c3(0x169)&&(this[_0x2102c3(0x186)][_0x2102c3(0x14a)](_0x2102c3(0x1ba)),this[_0x2102c3(0x1f1)][_0x2102c3(0x1c3)]({'eventID':d['CollaborationEvent'][_0x2102c3(0x153)],'data':{'unitID':this[_0x2102c3(0x1cf)]}},this[_0x2102c3(0x1cf)]));}[_0x3f9ef0(0x19a)](){const _0x2f5d4c=_0x3f9ef0;this[_0x2f5d4c(0x198)]===_0x2f5d4c(0x168)&&(this[_0x2f5d4c(0x186)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){this['_status']==='following'&&this['_stopFollowing']();}[_0x3f9ef0(0x1bd)](_0x22dddc){const _0x58e4b0=_0x3f9ef0,{presenter:_0x1f172f}=_0x22dddc['data'],_0x38cfe9=this[_0x58e4b0(0x1f1)][_0x58e4b0(0x183)]();this[_0x58e4b0(0x170)]=_0x1f172f,_0x1f172f===_0x38cfe9?(this[_0x58e4b0(0x130)](),this[_0x58e4b0(0x140)]()):this[_0x58e4b0(0x198)]!==_0x58e4b0(0x168)&&(this[_0x58e4b0(0x122)](),this[_0x58e4b0(0x1a4)]());}[_0x3f9ef0(0x17c)](){const _0x3808c6=_0x3f9ef0,_0x470652={'eventID':d[_0x3808c6(0x14d)][_0x3808c6(0x147)]};this[_0x3808c6(0x1f1)][_0x3808c6(0x1c3)](_0x470652,this[_0x3808c6(0x1cf)]);}[_0x3f9ef0(0x1b0)](){const _0x3e8ed4=_0x3f9ef0;this[_0x3e8ed4(0x170)]=null,this[_0x3e8ed4(0x198)]!==_0x3e8ed4(0x169)&&this[_0x3e8ed4(0x155)]();}[_0x3f9ef0(0x1ac)](_0x43e286){const _0x4d6a6e=_0x3f9ef0;if(this[_0x4d6a6e(0x198)]===_0x4d6a6e(0x120)&&this['_presenter']===_0x43e286[_0x4d6a6e(0x1e8)]['memberID']){const _0x207a68=d[_0x4d6a6e(0x1e1)](_0x43e286[_0x4d6a6e(0x1e8)])[_0x4d6a6e(0x1b3)][_0x4d6a6e(0x148)]()[_0x4d6a6e(0x1b2)](_0x26e496=>_0x26e496['id']===C[_0x4d6a6e(0x19c)]['id']);if(_0x207a68){const _0x63103a=_0x207a68[_0x4d6a6e(0x13c)][_0x4d6a6e(0x1c9)],_0x171129=_0x207a68[_0x4d6a6e(0x13c)][_0x4d6a6e(0x1d4)]['id'];setTimeout(()=>{const _0xb99f00=_0x4d6a6e;this[_0xb99f00(0x124)][_0xb99f00(0x1d0)](C[_0xb99f00(0x144)]['id'],{'unitId':_0x63103a,'subUnitId':_0x171129},{'fromCollab':!0x0});});}}}[_0x3f9ef0(0x140)](){const _0x39c7ca=_0x3f9ef0;this[_0x39c7ca(0x186)]['next'](_0x39c7ca(0x169));const _0x5846dd=new Map(),_0x2e32c3=this[_0x39c7ca(0x1a0)]=new o[(_0x39c7ca(0x133))]();_0x2e32c3['add'](o[_0x39c7ca(0x1f0)](()=>{const _0x531552=_0x39c7ca;_0x5846dd[_0x531552(0x1e0)](_0x48b80c=>_0x48b80c['complete']()),_0x5846dd[_0x531552(0x173)]();})),_0x2e32c3['add'](this[_0x39c7ca(0x124)][_0x39c7ca(0x19e)](_0x42f625=>{const _0x7004cc=_0x39c7ca;var _0x11ef4c;if(_0x42f625[_0x7004cc(0x1b9)]!==o['CommandType'][_0x7004cc(0x176)]||!this[_0x7004cc(0x1dc)]['shouldShareOperation'](_0x42f625['id']))return;const {id:_0x515622}=_0x42f625;let _0x39a939;_0x5846dd['has'](_0x515622)?_0x39a939=_0x5846dd['get'](_0x515622):(_0x39a939=new O[(_0x7004cc(0x17b))](),_0x5846dd[_0x7004cc(0x1af)](_0x515622,_0x39a939),_0x39a939[_0x7004cc(0x1ee)](I[_0x7004cc(0x128)]((_0x11ef4c=this[_0x7004cc(0x1bc)][_0x7004cc(0x132)](k))!=null?_0x11ef4c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7004cc(0x13a)](_0x3a4db4=>{const _0x1b75e0=_0x7004cc;this[_0x1b75e0(0x1f1)][_0x1b75e0(0x1c3)]({'eventID':d[_0x1b75e0(0x14d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1b75e0(0x1cf)],'operations':{[_0x3a4db4['id']]:{'id':_0x3a4db4['id'],'params':JSON['stringify'](_0x3a4db4[_0x1b75e0(0x13c)])}}}},this[_0x1b75e0(0x1cf)]);})),_0x39a939['next'](_0x42f625);})),this[_0x39c7ca(0x1dc)][_0x39c7ca(0x14b)](this[_0x39c7ca(0x1cf)])[_0x39c7ca(0x1e0)](_0x3faf6e=>this[_0x39c7ca(0x1f1)][_0x39c7ca(0x1c3)]({'eventID':d['CollaborationEvent'][_0x39c7ca(0x156)],'data':{'unitID':this[_0x39c7ca(0x1cf)],'operations':{[_0x3faf6e['id']]:{'id':_0x3faf6e['id'],'params':JSON[_0x39c7ca(0x180)](_0x3faf6e[_0x39c7ca(0x13c)])}}}},this[_0x39c7ca(0x1cf)]));}[_0x3f9ef0(0x122)](){const _0xde0960=_0x3f9ef0;var _0x55599f;this[_0xde0960(0x186)][_0xde0960(0x14a)]('idle'),(_0x55599f=this[_0xde0960(0x1a0)])==null||_0x55599f[_0xde0960(0x1c1)](),this[_0xde0960(0x1a0)]=null;}[_0x3f9ef0(0x1a4)](){const _0x3112bf=_0x3f9ef0;var _0x4966ad;(_0x4966ad=this[_0x3112bf(0x1a0)])==null||_0x4966ad[_0x3112bf(0x1c1)](),this[_0x3112bf(0x186)]['next']('following');}['_beIdle'](){const _0x3b2951=_0x3f9ef0;var _0x536881;this[_0x3b2951(0x186)][_0x3b2951(0x14a)](_0x3b2951(0x1ba)),(_0x536881=this['_commandDisposable'])==null||_0x536881['dispose'](),this[_0x3b2951(0x1a0)]=null;}['_stopFollowing'](){const _0x27112a=_0x3f9ef0;var _0x495cc8;this['_status$']['next'](_0x27112a(0x168)),(_0x495cc8=this[_0x27112a(0x1a0)])==null||_0x495cc8[_0x27112a(0x1c1)]();}['_handleOperation'](_0x3c4fc1){const _0x5e3265=_0x3f9ef0;if([_0x5e3265(0x169),_0x5e3265(0x168),_0x5e3265(0x185)][_0x5e3265(0x17d)](this['_status'])||!_0x3c4fc1['data'][_0x5e3265(0x18b)]||_0x3c4fc1[_0x5e3265(0x1e8)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x5e3265(0x198)]===_0x5e3265(0x1ba)&&this['_startFollowing']();const _0x29c7e1=_0x3c4fc1[_0x5e3265(0x1e8)][_0x5e3265(0x177)];Object['values'](_0x29c7e1)[_0x5e3265(0x1e0)](_0x5f2d50=>{const _0x78e2c7=_0x5e3265;this[_0x78e2c7(0x124)]['executeCommand'](_0x5f2d50['id'],_0x5f2d50[_0x78e2c7(0x13c)]?JSON[_0x78e2c7(0x16d)](_0x5f2d50[_0x78e2c7(0x13c)]):null,{'fromCollab':!0x0});});}[_0x3f9ef0(0x189)](){const _0x40d67b=_0x3f9ef0;var _0x52eb8b;this['_status$'][_0x40d67b(0x14a)](_0x40d67b(0x185)),(_0x52eb8b=this[_0x40d67b(0x1a0)])==null||_0x52eb8b[_0x40d67b(0x1c1)]();}[_0x3f9ef0(0x13d)](){const _0x587d67=_0x3f9ef0;this['_status$'][_0x587d67(0x14a)]('idle'),this[_0x587d67(0x17c)]();}},exports[_0x3f9ef0(0x1db)]=P([S(0x2,o[_0x3f9ef0(0x182)]),S(0x3,o[_0x3f9ef0(0x1c8)](E)),S(0x4,o['ICommandService'])],exports[_0x3f9ef0(0x1db)]);function $(){const _0x2304c4=_0x3f9ef0,_0x5b4e2d=p[_0x2304c4(0x134)](exports[_0x2304c4(0x12a)]),_0x2876ee=p[_0x2304c4(0x134)](o[_0x2304c4(0x1d3)]),_0x47a89d=p[_0x2304c4(0x123)](()=>_0x2876ee[_0x2304c4(0x181)](o[_0x2304c4(0x1d9)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x265346,_0x30a775]=v[_0x2304c4(0x1c2)](null),[_0x178fa0,_0x4cf485]=v[_0x2304c4(0x1c2)](u[_0x2304c4(0x178)]),_0x2c9e2b=v[_0x2304c4(0x13b)](null);return v[_0x2304c4(0x15a)](()=>(_0x47a89d&&_0x5b4e2d[_0x2304c4(0x142)](_0x47a89d[_0x2304c4(0x166)]())['then'](_0x570dd9=>{const _0x1fbdd2=_0x2304c4;_0x30a775(_0x570dd9),_0x2c9e2b[_0x1fbdd2(0x143)]=_0x570dd9['status$'][_0x1fbdd2(0x13a)](_0x2faae3=>{_0x4cf485(_0x2faae3);});}),()=>{const _0xb1b241=_0x2304c4;var _0x19bd5a;(_0x19bd5a=_0x2c9e2b[_0xb1b241(0x143)])==null||_0x19bd5a[_0xb1b241(0x15b)](),_0x2c9e2b['current']=null;}),[_0x47a89d,_0x5b4e2d]),_0x265346?l[_0x2304c4(0x129)](f['Dropdown'],{'align':_0x2304c4(0x160),'disabled':_0x178fa0===u[_0x2304c4(0x18d)],'className':_0x2304c4(0x1b5),'overlay':l[_0x2304c4(0x129)](W,{'status':_0x178fa0,'coordinator':_0x265346}),'children':l[_0x2304c4(0x129)](_0x2304c4(0x162),{'className':f['clsx'](_0x2304c4(0x165),{'univer-cursor-not-allowed':_0x178fa0===u[_0x2304c4(0x18d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x178fa0!==u['OFFLINE']}),'type':'button','children':l[_0x2304c4(0x129)](R,{'className':_0x2304c4(0x15e)})})}):null;}function W(_0x5d3478){const _0x3dc847=_0x3f9ef0,{status:_0xffb788,coordinator:_0x5bab2f}=_0x5d3478;switch(_0xffb788){case u['IDLE']:return l[_0x3dc847(0x129)](G,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x195)]:return l[_0x3dc847(0x129)](B,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x150)]:return l[_0x3dc847(0x129)](Y,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x18d)]:return l[_0x3dc847(0x129)](J,{});case u[_0x3dc847(0x197)]:return l[_0x3dc847(0x129)](Z,{'coordinator':_0x5bab2f});default:return null;}}function G(_0xcce522){const _0x37ca9c=_0x3f9ef0,{coordinator:_0xb6990e}=_0xcce522;return l[_0x37ca9c(0x16a)](l[_0x37ca9c(0x11f)],{'children':[l[_0x37ca9c(0x129)](_0x37ca9c(0x1b7),{'className':_0x37ca9c(0x194),'children':_0x37ca9c(0x1c6)}),l[_0x37ca9c(0x129)](f['Button'],{'onClick':()=>_0xb6990e['tryStartPresenting'](),'children':_0x37ca9c(0x1ed)})]});}function B(_0x1200d7){const _0x43cd7c=_0x3f9ef0,{coordinator:_0x3edf3f}=_0x1200d7;return l['jsxs'](l[_0x43cd7c(0x11f)],{'children':[l[_0x43cd7c(0x129)](_0x43cd7c(0x1b7),{'className':_0x43cd7c(0x194),'children':_0x43cd7c(0x1df)}),l[_0x43cd7c(0x129)](f['Button'],{'onClick':()=>_0x3edf3f[_0x43cd7c(0x16c)](),'children':_0x43cd7c(0x1ce)})]});}function Y(_0x2b5222){const _0x1cbe99=_0x3f9ef0,{coordinator:_0xfc5a52}=_0x2b5222;return l[_0x1cbe99(0x16a)](l[_0x1cbe99(0x11f)],{'children':[l[_0x1cbe99(0x129)](_0x1cbe99(0x1b7),{'className':_0x1cbe99(0x194),'children':_0x1cbe99(0x1a8)}),l[_0x1cbe99(0x129)](f['Button'],{'variant':_0x1cbe99(0x1e9),'onClick':()=>_0xfc5a52[_0x1cbe99(0x19a)](),'children':_0x1cbe99(0x1d1)})]});}function Z(_0x59d58f){const _0x266f83=_0x3f9ef0,{coordinator:_0x1663a1}=_0x59d58f;return l[_0x266f83(0x16a)](l[_0x266f83(0x11f)],{'children':[l['jsx'](_0x266f83(0x1b7),{'className':_0x266f83(0x194),'children':_0x266f83(0x1a9)}),l[_0x266f83(0x129)](f[_0x266f83(0x12c)],{'variant':_0x266f83(0x1b8),'onClick':()=>_0x1663a1['stopPresenting'](),'children':_0x266f83(0x17f)})]});}function J(){const _0x138aaf=_0x3f9ef0;return l[_0x138aaf(0x129)](l['Fragment'],{'children':_0x138aaf(0x12e)});}var K=Object[_0x3f9ef0(0x1cb)],z=(_0x43314f,_0xc08de,_0x224202,_0x1c125d)=>{const _0x1b63ed=_0x3f9ef0;for(var _0x2f8b20=_0x1c125d>0x1?void 0x0:_0x1c125d?K(_0xc08de,_0x224202):_0xc08de,_0x1d3030=_0x43314f[_0x1b63ed(0x159)]-0x1,_0x243922;_0x1d3030>=0x0;_0x1d3030--)(_0x243922=_0x43314f[_0x1d3030])&&(_0x2f8b20=_0x243922(_0x2f8b20)||_0x2f8b20);return _0x2f8b20;},L=(_0x49dc8d,_0x98dc32)=>(_0x5627b5,_0x2ccec6)=>_0x98dc32(_0x5627b5,_0x2ccec6,_0x49dc8d);exports[_0x3f9ef0(0x175)]=class extends o[_0x3f9ef0(0x18c)]{constructor(_0x4727ba,_0x5cc03a){const _0x5718e9=_0x3f9ef0;super(),this['_injector']=_0x4727ba,this[_0x5718e9(0x1da)]=_0x5cc03a,this[_0x5718e9(0x152)]();}[_0x3f9ef0(0x152)](){const _0x3bc7d4=_0x3f9ef0;this['disposeWithMe'](this[_0x3bc7d4(0x1da)]['registerComponent'](p[_0x3bc7d4(0x11d)][_0x3bc7d4(0x1e2)],()=>p['connectInjector']($,this[_0x3bc7d4(0x174)])));}},exports[_0x3f9ef0(0x175)]=z([L(0x0,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),L(0x1,p['IUIPartsService'])],exports[_0x3f9ef0(0x175)]);const Q=_0x3f9ef0(0x1cc),w={};var X=Object[_0x3f9ef0(0x1cb)],ee=(_0x4619ed,_0x36e557,_0x2d4b21,_0x4864b7)=>{const _0x1d1c50=_0x3f9ef0;for(var _0xeef38d=_0x4864b7>0x1?void 0x0:_0x4864b7?X(_0x36e557,_0x2d4b21):_0x36e557,_0x53918c=_0x4619ed[_0x1d1c50(0x159)]-0x1,_0x4ec25b;_0x53918c>=0x0;_0x53918c--)(_0x4ec25b=_0x4619ed[_0x53918c])&&(_0xeef38d=_0x4ec25b(_0xeef38d)||_0xeef38d);return _0xeef38d;},te=(_0x5ebcbc,_0x9fd85b)=>(_0x5b1f4f,_0x59f301)=>_0x9fd85b(_0x5b1f4f,_0x59f301,_0x5ebcbc);let m=class extends o[_0x3f9ef0(0x18c)]{constructor(_0x3314af){const _0x401823=_0x3f9ef0;super(),this[_0x401823(0x1dc)]=_0x3314af,this['_init']();}[_0x3f9ef0(0x1c4)](){const _0x2a97d2=_0x3f9ef0;[D[_0x2a97d2(0x161)]['id'],D[_0x2a97d2(0x13e)]['id'],C[_0x2a97d2(0x144)]['id']][_0x2a97d2(0x1e0)](_0x23a4c3=>{const _0x5543fe=_0x2a97d2;this[_0x5543fe(0x18a)](this[_0x5543fe(0x1dc)][_0x5543fe(0x1d7)](_0x23a4c3));});}};m=ee([te(0x0,o[_0x3f9ef0(0x1c8)](E))],m);var ie=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],ne=(_0x33c6d2,_0x5088a2,_0xf88ecc)=>_0x5088a2 in _0x33c6d2?ie(_0x33c6d2,_0x5088a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf88ecc}):_0x33c6d2[_0x5088a2]=_0xf88ecc,re=(_0x41b661,_0x3224fb,_0x34c372,_0x40df9b)=>{for(var _0x330cff=_0x40df9b>0x1?void 0x0:_0x40df9b?se(_0x3224fb,_0x34c372):_0x3224fb,_0x37d4fb=_0x41b661['length']-0x1,_0x17ddfd;_0x37d4fb>=0x0;_0x37d4fb--)(_0x17ddfd=_0x41b661[_0x37d4fb])&&(_0x330cff=_0x17ddfd(_0x330cff)||_0x330cff);return _0x330cff;},N=(_0xac2ab1,_0x391199)=>(_0x56bfdc,_0x41f998)=>_0x391199(_0x56bfdc,_0x41f998,_0xac2ab1),A=(_0x38d033,_0x37da3d,_0x4a3c1c)=>ne(_0x38d033,typeof _0x37da3d!=_0x3f9ef0(0x149)?_0x37da3d+'':_0x37da3d,_0x4a3c1c);const oe=_0x3f9ef0(0x191);exports[_0x3f9ef0(0x1a7)]=class extends o['Plugin']{constructor(_0x7ea5d3=w,_0x33039b,_0x1c94fc){const _0x2c69f7=_0x3f9ef0;super(),this[_0x2c69f7(0x1d5)]=_0x7ea5d3,this[_0x2c69f7(0x174)]=_0x33039b,this['_configService']=_0x1c94fc;const {..._0x8353a8}=o[_0x2c69f7(0x16b)]({},w,this[_0x2c69f7(0x1d5)]);this[_0x2c69f7(0x1bc)][_0x2c69f7(0x127)](Q,_0x8353a8);}[_0x3f9ef0(0x125)](){const _0x295a53=_0x3f9ef0;o[_0x295a53(0x14f)](this[_0x295a53(0x174)],o['mergeOverrideWithDependencies']([[E],[exports[_0x295a53(0x12a)]],[m],[exports[_0x295a53(0x175)]]],this[_0x295a53(0x1d5)][_0x295a53(0x164)])),o[_0x295a53(0x12b)](this['_injector'],[[m]]);}[_0x3f9ef0(0x19f)](){const _0x19aaf1=_0x3f9ef0;o[_0x19aaf1(0x12b)](this[_0x19aaf1(0x174)],[[exports[_0x19aaf1(0x175)]]]);}},A(exports[_0x3f9ef0(0x1a7)],_0x3f9ef0(0x1b9),o['UniverInstanceType'][_0x3f9ef0(0x1a6)]),A(exports['UniverLiveSharePlugin'],_0x3f9ef0(0x1eb),oe),exports[_0x3f9ef0(0x1a7)]=re([o[_0x3f9ef0(0x1de)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),N(0x2,o[_0x3f9ef0(0x182)])],exports['UniverLiveSharePlugin']),exports[_0x3f9ef0(0x1ae)]=$,exports[_0x3f9ef0(0x1ec)]=E,exports[_0x3f9ef0(0x146)]=u;
1
+ 'use strict';function _0x37d0(){const _0x1829a3=['values','LIVESHARE_NEW_HOST','UniverLiveSharePlugin','PRESENTING','requireSession','_handleOffline','throttleTime','delete','toDisposable','startFollowing','text','_init','_unitID','SetWorksheetActiveOperation','operations','Plugin','following','SessionStatus','colorChannel1','CollaborationEvent','createElement','UNIVER_SHEET','_stopFollowing','current','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOnline','24790XnIRhK','children','NEW_CHANGESETS','_commandService','offline','live-share-icon','mask','fill','_status$','stringify','666076aFIEqY','getInitialStates','add','clear','_commandDisposable','LIVESHARE_TERMINATE','defIds','589307oJByKr','includes','FOLLOWING','OFFLINE','getCurrentTypeOfUnit$','BuiltInUIPart','_collabSessionService','Module','get','currentColor','SetScrollOperation','symbol','Subject','getUnitId','forwardRef','sessionStatus$','SetZoomRatioOperation','memberID','idle','_startLiveShareCoordinator','registerSharedOperation','ONLINE','has','jsx','_fetchOperations','then','event$','useDependency','75964XYiBex','substring','You\x27re\x20not\x20following\x20the\x20presenter','_uiPartsService','string','UniverInstanceType','status$','useEffect','unitId','registerInitialStateReporter','_entities','button','presenting','6jJSkrt','BehaviorSubject','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','registerComponent','OPERATION','_reporters','_config','Fragment','map','_liveShareService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','UniverCollaborationClientPlugin','forEach','LiveShareStatus','onStarting','HEADER_MENU','toString','url(#$1','Inject','find','UNIVER_LIVE_SHARE_PLUGIN','getMemberID','setConfig','_status','553255ZxmTTC','stopPresenting','set','evenodd','_mountLiveShare','_collabSession','next','not-following','268624fuhIMS','Stop\x20presenting','merge','useRef','length','asObservable','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','connectInjector','198153FckElv','_presenter','complete','disposeWithMe','208mnBZTY','getLiveShareCoordinator','getValue','defs','defineProperty','mergeOverrideWithDependencies','_handleNewChangeSets','Disposable','getOwnPropertyDescriptor','_beIdle','entries','Button','Stop\x20following','UNIVER_UNKNOWN','getLiveShareCoordinatorSync','sheet','You\x27re\x20following\x20the\x20presenter','0\x200\x2017\x2017','IDLE','2277VsCPkD','pipe','IConfigService','presenter','getTypeOfUnitDisposed$','replace','DependentOn','_handleOperation','executeCommand','univer-size-4','ICommandService','data','LiveShareController','trim','useState','CommandType','getStatus','attrs','LiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','dispose','parse','SAME_OPERATION_SHARE_INTERVAL','univerjs-icon\x20univerjs-icon-','subscribe','RxDisposable','send','1em','takeUntil','path','Injector','div','registerDependencies','LiveShareIcon','dispose$','from','_stopPresenting','CollaborationSessionService','_univerInstanceService','createInstance','LiveShare','_configService','http://www.w3.org/2000/svg','DisposableCollection','You\x27are\x20offline.','onRendered','tag','Present\x20this\x20document','idSuffix','pluginName','onCommandExecuted','InsertSheetMutation','touchDependencies','DesktopLiveShareController','stopFollowing','displayName','mutations','You\x27re\x20presenting\x20the\x20document','jsxs','init','_sharedOperations','none','_handleTerminate','end','_startFollowing','params','type','reverse'];_0x37d0=function(){return _0x1829a3;};return _0x37d0();}const _0x392f9e=_0x4739;(function(_0x2b7e52,_0x3e6b18){const _0x402ee5=_0x4739,_0x2f6b9f=_0x2b7e52();while(!![]){try{const _0x443d94=parseInt(_0x402ee5(0x163))/0x1+parseInt(_0x402ee5(0x1ac))/0x2+parseInt(_0x402ee5(0x1b4))/0x3+-parseInt(_0x402ee5(0x15c))/0x4+-parseInt(_0x402ee5(0x1a4))/0x5*(-parseInt(_0x402ee5(0x18c))/0x6)+-parseInt(_0x402ee5(0x17f))/0x7*(-parseInt(_0x402ee5(0x1b8))/0x8)+parseInt(_0x402ee5(0xf4))/0x9*(-parseInt(_0x402ee5(0x152))/0xa);if(_0x443d94===_0x3e6b18)break;else _0x2f6b9f['push'](_0x2f6b9f['shift']());}catch(_0x3b59ce){_0x2f6b9f['push'](_0x2f6b9f['shift']());}}}(_0x37d0,0x5ee9f));var T=Object[_0x392f9e(0x1bc)],U=(_0x323ae1,_0x4fbfae,_0x1b84b4)=>_0x4fbfae in _0x323ae1?T(_0x323ae1,_0x4fbfae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b84b4}):_0x323ae1[_0x4fbfae]=_0x1b84b4,_=(_0x15ab11,_0xaa4127,_0xd4f95)=>U(_0x15ab11,typeof _0xaa4127!=_0x392f9e(0x16e)?_0xaa4127+'':_0xaa4127,_0xd4f95);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x392f9e(0x16a)});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:_0x21464d,..._0x5eeb77}){const _0x1129db=_0x392f9e,{icon:_0x1da564,id:_0x3aac3a,className:_0x2f46c4,extend:_0x1096b1,..._0x5297a6}=_0x5eeb77,_0xabc471=(_0x1129db(0x10b)+_0x3aac3a+'\x20'+(_0x2f46c4||''))[_0x1129db(0x101)](),_0x4f9d0e=v[_0x1129db(0x1af)]('_'+H());return j(_0x1da564,''+_0x3aac3a,{'defIds':_0x1da564[_0x1129db(0x162)],'idSuffix':_0x4f9d0e[_0x1129db(0x14f)]},{'ref':_0x21464d,'className':_0xabc471,..._0x5297a6},_0x1096b1);}function j(_0x51fb2b,_0x2ff63b,_0x131695,_0x219043,_0x4126e9){const _0x283271=_0x392f9e;return v[_0x283271(0x14c)](_0x51fb2b[_0x283271(0x122)],{'key':_0x2ff63b,...y(_0x51fb2b,_0x131695,_0x4126e9),..._0x219043},(F(_0x51fb2b,_0x131695)['children']||[])[_0x283271(0x194)]((_0x17c2cd,_0x299653)=>j(_0x17c2cd,_0x2ff63b+'-'+_0x51fb2b[_0x283271(0x122)]+'-'+_0x299653,_0x131695,void 0x0,_0x4126e9)));}function y(_0x2182df,_0x271bdf,_0x5ce5ec){const _0x429262=_0x392f9e,_0x2cfb8c={..._0x2182df[_0x429262(0x105)]};_0x5ce5ec!=null&&_0x5ce5ec['colorChannel1']&&_0x2cfb8c[_0x429262(0x159)]===_0x429262(0x14a)&&(_0x2cfb8c[_0x429262(0x159)]=_0x5ce5ec['colorChannel1']),_0x2182df[_0x429262(0x122)]===_0x429262(0x158)&&_0x2cfb8c['id']&&(_0x2cfb8c['id']=_0x2cfb8c['id']+_0x271bdf['idSuffix']),Object[_0x429262(0x1c2)](_0x2cfb8c)['forEach'](([_0x5c826b,_0x4385f7])=>{const _0x3f1bd4=_0x429262;_0x5c826b===_0x3f1bd4(0x158)&&typeof _0x4385f7==_0x3f1bd4(0x183)&&(_0x2cfb8c[_0x5c826b]=_0x4385f7['replace'](/url\(#(.*)\)/,_0x3f1bd4(0x19d)+_0x271bdf[_0x3f1bd4(0x124)]+')'));});const {defIds:_0x332c5e}=_0x271bdf;return!_0x332c5e||_0x332c5e[_0x429262(0x1b0)]===0x0||(_0x2182df[_0x429262(0x122)]==='use'&&_0x2cfb8c['xlink:href']&&(_0x2cfb8c['xlink:href']=_0x2cfb8c['xlink:href']+_0x271bdf[_0x429262(0x124)]),Object[_0x429262(0x1c2)](_0x2cfb8c)[_0x429262(0x198)](([_0xcd2884,_0x54d5bb])=>{const _0x397c6b=_0x429262;typeof _0x54d5bb=='string'&&(_0x2cfb8c[_0xcd2884]=_0x54d5bb[_0x397c6b(0xf9)](/url\(#(.*)\)/,_0x397c6b(0x19d)+_0x271bdf[_0x397c6b(0x124)]+')'));})),_0x2cfb8c;}function F(_0x478ebf,_0x2b2069){const _0x123e77=_0x392f9e;var _0x3e756e;const {defIds:_0x3b8286}=_0x2b2069;return!_0x3b8286||_0x3b8286['length']===0x0?_0x478ebf:_0x478ebf['tag']===_0x123e77(0x1bb)&&((_0x3e756e=_0x478ebf[_0x123e77(0x153)])!=null&&_0x3e756e[_0x123e77(0x1b0)])?{..._0x478ebf,'children':_0x478ebf[_0x123e77(0x153)][_0x123e77(0x194)](_0x4df7d0=>typeof _0x4df7d0[_0x123e77(0x105)]['id']=='string'&&_0x3b8286&&_0x3b8286['includes'](_0x4df7d0[_0x123e77(0x105)]['id'])?{..._0x4df7d0,'attrs':{..._0x4df7d0[_0x123e77(0x105)],'id':_0x4df7d0[_0x123e77(0x105)]['id']+_0x2b2069['idSuffix']}}:_0x4df7d0)}:_0x478ebf;}function H(){const _0x3b9547=_0x392f9e;return Math['random']()[_0x3b9547(0x19c)](0x24)[_0x3b9547(0x180)](0x2,0x8);}x[_0x392f9e(0x12b)]='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x392f9e(0x11e),'fill':_0x392f9e(0x131),'viewBox':_0x392f9e(0xf2),'width':_0x392f9e(0x10f),'height':'1em'},'children':[{'tag':_0x392f9e(0x111),'attrs':{'fill':_0x392f9e(0x16c),'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':_0x392f9e(0x111),'attrs':{'fill':_0x392f9e(0x16c),'d':_0x392f9e(0x196),'fillRule':_0x392f9e(0x1a7),'clipRule':_0x392f9e(0x1a7)}}]},R=v[_0x392f9e(0x171)](function(_0x21bda4,_0x49e407){const _0x5be590=_0x392f9e;return v[_0x5be590(0x14c)](x,Object['assign']({},_0x21bda4,{'id':_0x5be590(0x157),'ref':_0x49e407,'icon':V}));});R[_0x392f9e(0x12b)]=_0x392f9e(0x115);class E extends o[_0x392f9e(0x1bf)]{constructor(){const _0x11e917=_0x392f9e;super(...arguments),_(this,_0x11e917(0x130),new Set()),_(this,_0x11e917(0x191),new Set());}['registerSharedOperation'](_0x300ada){const _0x3b4d43=_0x392f9e;return this[_0x3b4d43(0x130)]['add'](_0x300ada),o[_0x3b4d43(0x140)](()=>this[_0x3b4d43(0x130)][_0x3b4d43(0x13f)](_0x300ada));}[_0x392f9e(0x188)](_0x8d30bd){const _0x7b1e06=_0x392f9e;return this[_0x7b1e06(0x191)][_0x7b1e06(0x15e)](_0x8d30bd),o[_0x7b1e06(0x140)](()=>this[_0x7b1e06(0x191)][_0x7b1e06(0x13f)](_0x8d30bd));}['shouldShareOperation'](_0x527e27){return this['_sharedOperations']['has'](_0x527e27);}['getInitialStates'](_0x2acb90){const _0x46fcab=_0x392f9e;return Array[_0x46fcab(0x117)](this[_0x46fcab(0x191)])['map'](_0x1c7d51=>_0x1c7d51(_0x2acb90));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x4e88aa,_0x26d286,_0x30234b,_0x200461)=>{for(var _0x29262e=_0x200461>0x1?void 0x0:_0x200461?M(_0x26d286,_0x30234b):_0x26d286,_0x5c5525=_0x4e88aa['length']-0x1,_0x1dd991;_0x5c5525>=0x0;_0x5c5525--)(_0x1dd991=_0x4e88aa[_0x5c5525])&&(_0x29262e=_0x1dd991(_0x29262e)||_0x29262e);return _0x29262e;},S=(_0x58b08e,_0x1a54d8)=>(_0x52e68c,_0x34c845)=>_0x1a54d8(_0x52e68c,_0x34c845,_0x58b08e);exports[_0x392f9e(0x100)]=class extends o[_0x392f9e(0x10d)]{constructor(_0x1c40e5,_0x1418a2,_0x3953fa){const _0x1eeae6=_0x392f9e;super(),_(this,'_entities',new Map()),(this[_0x1eeae6(0x11a)]=_0x1c40e5,this['_injector']=_0x1418a2,this['_collabSessionService']=_0x3953fa,this['_init']());}async[_0x392f9e(0x1b9)](_0x2ff8f0){const _0x1669e1=_0x392f9e;return this[_0x1669e1(0x189)][_0x1669e1(0x179)](_0x2ff8f0)||await this['_startLiveShareCoordinator'](_0x2ff8f0),this['_entities'][_0x1669e1(0x16b)](_0x2ff8f0);}[_0x392f9e(0xef)](_0x72f5b0){const _0x3be173=_0x392f9e;var _0x39c07d;return(_0x39c07d=this[_0x3be173(0x189)][_0x3be173(0x16b)](_0x72f5b0))!=null?_0x39c07d:null;}['_init'](){const _0x1b15c3=_0x392f9e;this[_0x1b15c3(0x11a)]['getTypeOfUnitAdded$'](o[_0x1b15c3(0x184)]['UNIVER_SHEET'])[_0x1b15c3(0xf5)](I[_0x1b15c3(0x110)](this[_0x1b15c3(0x116)]))['subscribe'](async _0x55564d=>{const _0x4af41a=_0x1b15c3,_0x33a8df=_0x55564d[_0x4af41a(0x170)]();this[_0x4af41a(0x189)]['has'](_0x33a8df)||this[_0x4af41a(0x176)](_0x33a8df);}),this[_0x1b15c3(0x11a)][_0x1b15c3(0xf8)](o[_0x1b15c3(0x184)][_0x1b15c3(0x14d)])[_0x1b15c3(0xf5)](I[_0x1b15c3(0x110)](this['dispose$']))[_0x1b15c3(0x10c)](_0x4fc19f=>{const _0x4b6d9f=_0x1b15c3,_0x10cf67=_0x4fc19f['getUnitId'](),_0x5f06e6=this[_0x4b6d9f(0x189)][_0x4b6d9f(0x16b)](_0x10cf67);_0x5f06e6==null||_0x5f06e6[_0x4b6d9f(0x108)]();});}async[_0x392f9e(0x176)](_0x4d24c6){const _0x1f81eb=_0x392f9e,_0x68d223=await this[_0x1f81eb(0x169)][_0x1f81eb(0x13c)](_0x4d24c6),_0x18c6ae=this['_injector'][_0x1f81eb(0x11b)](exports[_0x1f81eb(0x106)],_0x4d24c6,_0x68d223);return _0x18c6ae[_0x1f81eb(0x12f)](),this[_0x1f81eb(0x189)][_0x1f81eb(0x1a6)](_0x4d24c6,_0x18c6ae),_0x18c6ae;}},exports[_0x392f9e(0x100)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x392f9e(0x19e)](o[_0x392f9e(0x112)])),S(0x2,o[_0x392f9e(0x19e)](b[_0x392f9e(0x119)]))],exports['LiveShareController']);function _0x4739(_0x404e54,_0x3ce7ee){const _0x37d069=_0x37d0();return _0x4739=function(_0x4739be,_0x4d9136){_0x4739be=_0x4739be-0xef;let _0x42d89d=_0x37d069[_0x4739be];return _0x42d89d;},_0x4739(_0x404e54,_0x3ce7ee);}var u=(_0x17a0a4=>(_0x17a0a4[_0x392f9e(0x166)]=_0x392f9e(0x156),_0x17a0a4['IDLE']='idle',_0x17a0a4[_0x392f9e(0x165)]=_0x392f9e(0x148),_0x17a0a4['NOT_FOLLOWING']=_0x392f9e(0x1ab),_0x17a0a4[_0x392f9e(0x13b)]='presenting',_0x17a0a4))(u||{});const k=_0x392f9e(0x10a),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x392f9e(0x10d)]{constructor(_0x310bc4,_0x4bb4e9,_0x263c0c,_0x5267b1,_0x5acd83){const _0x2c9107=_0x392f9e;super(),_(this,'_status$',new O[(_0x2c9107(0x18d))](_0x2c9107(0x175))),_(this,_0x2c9107(0x185),this[_0x2c9107(0x15a)][_0x2c9107(0x1b1)]()),_(this,_0x2c9107(0x143),!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this[_0x2c9107(0x144)]=_0x310bc4,this[_0x2c9107(0x1a9)]=_0x4bb4e9,this[_0x2c9107(0x11d)]=_0x263c0c,this[_0x2c9107(0x195)]=_0x5267b1,this['_commandService']=_0x5acd83);}get['_status'](){const _0x306bde=_0x392f9e;return this['_status$'][_0x306bde(0x1ba)]();}[_0x392f9e(0x108)](){const _0x237290=_0x392f9e;var _0x573578;(_0x573578=this[_0x237290(0x160)])==null||_0x573578[_0x237290(0x108)](),this[_0x237290(0x15a)][_0x237290(0x1aa)](_0x237290(0x175)),this[_0x237290(0x15a)]['complete']();}[_0x392f9e(0x104)](){return this['_status'];}[_0x392f9e(0x12f)](){const _0x1b3392=_0x392f9e;this[_0x1b3392(0x143)]||(this[_0x1b3392(0x143)]=!0x0,this[_0x1b3392(0x1a9)][_0x1b3392(0x172)][_0x1b3392(0xf5)](I['takeUntil'](this['dispose$']))[_0x1b3392(0x10c)](_0x1e5a2f=>{const _0x17490e=_0x1b3392;switch(_0x1e5a2f){case b[_0x17490e(0x149)][_0x17490e(0x166)]:this[_0x17490e(0x13d)]();break;case b[_0x17490e(0x149)][_0x17490e(0x178)]:this[_0x17490e(0x151)]();break;}}),this[_0x1b3392(0x1a9)][_0x1b3392(0x17d)][_0x1b3392(0xf5)](I[_0x1b3392(0x110)](this[_0x1b3392(0x116)]))[_0x1b3392(0x10c)](_0x4e1186=>{const _0x340393=_0x1b3392,{eventID:_0x5c81f3}=_0x4e1186;switch(_0x5c81f3){case d[_0x340393(0x14b)][_0x340393(0x139)]:this['_handleNewHost'](_0x4e1186);break;case d[_0x340393(0x14b)]['LIVESHARE_OPERATION']:this[_0x340393(0xfb)](_0x4e1186);break;case d[_0x340393(0x14b)][_0x340393(0x161)]:this[_0x340393(0x132)]();break;case d[_0x340393(0x14b)][_0x340393(0x154)]:this[_0x340393(0x1be)](_0x4e1186);break;}}));}['tryStartPresenting'](){const _0x1811cb=_0x392f9e;this['_collabSession']['send']({'eventID':d[_0x1811cb(0x14b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1811cb(0x144)],'userID':this[_0x1811cb(0x1a9)][_0x1811cb(0x1a1)]()}},this[_0x1811cb(0x144)]);}[_0x392f9e(0x1a5)](){const _0x269774=_0x392f9e;this[_0x269774(0x1a3)]==='presenting'&&(this[_0x269774(0x15a)][_0x269774(0x1aa)]('idle'),this[_0x269774(0x1a9)][_0x269774(0x10e)]({'eventID':d[_0x269774(0x14b)][_0x269774(0x161)],'data':{'unitID':this[_0x269774(0x144)]}},this[_0x269774(0x144)]));}[_0x392f9e(0x141)](){const _0x1b1ad2=_0x392f9e;this[_0x1b1ad2(0x1a3)]===_0x1b1ad2(0x1ab)&&(this[_0x1b1ad2(0x15a)][_0x1b1ad2(0x1aa)](_0x1b1ad2(0x148)),this[_0x1b1ad2(0x134)]());}[_0x392f9e(0x12a)](){const _0x432c63=_0x392f9e;this['_status']===_0x432c63(0x148)&&this[_0x432c63(0x14e)]();}['_handleNewHost'](_0x52ec99){const _0x459e9d=_0x392f9e,{presenter:_0x2f39c8}=_0x52ec99[_0x459e9d(0xff)],_0x1e8fd6=this[_0x459e9d(0x1a9)]['getMemberID']();this[_0x459e9d(0x1b5)]=_0x2f39c8,_0x2f39c8===_0x1e8fd6?(this[_0x459e9d(0x14e)](),this['_startPresenting']()):this[_0x459e9d(0x1a3)]!==_0x459e9d(0x1ab)&&(this[_0x459e9d(0x118)](),this[_0x459e9d(0x134)]());}['_fetchOperations'](){const _0xacd352=_0x392f9e,_0x2eb32a={'eventID':d[_0xacd352(0x14b)][_0xacd352(0x107)]};this[_0xacd352(0x1a9)]['send'](_0x2eb32a,this['_unitID']);}['_handleTerminate'](){const _0x4a0131=_0x392f9e;this[_0x4a0131(0x1b5)]=null,this[_0x4a0131(0x1a3)]!==_0x4a0131(0x18b)&&this[_0x4a0131(0x1c1)]();}[_0x392f9e(0x1be)](_0xc023c0){const _0x37e1d9=_0x392f9e;if(this['_status']===_0x37e1d9(0x148)&&this[_0x37e1d9(0x1b5)]===_0xc023c0[_0x37e1d9(0xff)][_0x37e1d9(0x174)]){const _0x5e4487=d['parseProtocolChangeset'](_0xc023c0['data'])[_0x37e1d9(0x12c)][_0x37e1d9(0x137)]()[_0x37e1d9(0x19f)](_0x4e3129=>_0x4e3129['id']===C[_0x37e1d9(0x127)]['id']);if(_0x5e4487){const _0x58ffa7=_0x5e4487[_0x37e1d9(0x135)][_0x37e1d9(0x187)],_0x5c6a4c=_0x5e4487['params'][_0x37e1d9(0xf0)]['id'];setTimeout(()=>{const _0x4f25d5=_0x37e1d9;this['_commandService']['executeCommand'](C[_0x4f25d5(0x145)]['id'],{'unitId':_0x58ffa7,'subUnitId':_0x5c6a4c},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1875a1=_0x392f9e;this[_0x1875a1(0x15a)][_0x1875a1(0x1aa)](_0x1875a1(0x18b));const _0x149ecf=new Map(),_0x33505c=this[_0x1875a1(0x160)]=new o[(_0x1875a1(0x11f))]();_0x33505c['add'](o[_0x1875a1(0x140)](()=>{const _0x38c235=_0x1875a1;_0x149ecf['forEach'](_0x111416=>_0x111416[_0x38c235(0x1b6)]()),_0x149ecf[_0x38c235(0x15f)]();})),_0x33505c['add'](this['_commandService'][_0x1875a1(0x126)](_0x38372e=>{const _0x5e2d15=_0x1875a1;var _0x49b885;if(_0x38372e[_0x5e2d15(0x136)]!==o[_0x5e2d15(0x103)][_0x5e2d15(0x190)]||!this[_0x5e2d15(0x195)]['shouldShareOperation'](_0x38372e['id']))return;const {id:_0x25e504}=_0x38372e;let _0x3bea52;_0x149ecf[_0x5e2d15(0x179)](_0x25e504)?_0x3bea52=_0x149ecf[_0x5e2d15(0x16b)](_0x25e504):(_0x3bea52=new O[(_0x5e2d15(0x16f))](),_0x149ecf[_0x5e2d15(0x1a6)](_0x25e504,_0x3bea52),_0x3bea52['pipe'](I[_0x5e2d15(0x13e)]((_0x49b885=this[_0x5e2d15(0x11d)]['getConfig'](k))!=null?_0x49b885:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e2d15(0x10c)](_0x260313=>{const _0x16bc96=_0x5e2d15;this['_collabSession'][_0x16bc96(0x10e)]({'eventID':d[_0x16bc96(0x14b)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x16bc96(0x144)],'operations':{[_0x260313['id']]:{'id':_0x260313['id'],'params':JSON['stringify'](_0x260313[_0x16bc96(0x135)])}}}},this['_unitID']);})),_0x3bea52['next'](_0x38372e);})),this[_0x1875a1(0x195)][_0x1875a1(0x15d)](this[_0x1875a1(0x144)])[_0x1875a1(0x198)](_0x348f47=>this[_0x1875a1(0x1a9)][_0x1875a1(0x10e)]({'eventID':d[_0x1875a1(0x14b)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1875a1(0x144)],'operations':{[_0x348f47['id']]:{'id':_0x348f47['id'],'params':JSON[_0x1875a1(0x15b)](_0x348f47[_0x1875a1(0x135)])}}}},this[_0x1875a1(0x144)]));}[_0x392f9e(0x118)](){const _0x5319d9=_0x392f9e;var _0x1b3d1f;this[_0x5319d9(0x15a)]['next'](_0x5319d9(0x175)),(_0x1b3d1f=this['_commandDisposable'])==null||_0x1b3d1f[_0x5319d9(0x108)](),this['_commandDisposable']=null;}[_0x392f9e(0x134)](){const _0x6a8b=_0x392f9e;var _0x5c83c1;(_0x5c83c1=this[_0x6a8b(0x160)])==null||_0x5c83c1['dispose'](),this[_0x6a8b(0x15a)]['next'](_0x6a8b(0x148));}[_0x392f9e(0x1c1)](){const _0x128175=_0x392f9e;var _0x36bb0a;this[_0x128175(0x15a)][_0x128175(0x1aa)](_0x128175(0x175)),(_0x36bb0a=this[_0x128175(0x160)])==null||_0x36bb0a[_0x128175(0x108)](),this['_commandDisposable']=null;}[_0x392f9e(0x14e)](){const _0x7441c9=_0x392f9e;var _0x421874;this[_0x7441c9(0x15a)][_0x7441c9(0x1aa)](_0x7441c9(0x1ab)),(_0x421874=this[_0x7441c9(0x160)])==null||_0x421874['dispose']();}[_0x392f9e(0xfb)](_0x52e65c){const _0x450508=_0x392f9e;if([_0x450508(0x18b),'not-following',_0x450508(0x156)][_0x450508(0x164)](this['_status'])||!_0x52e65c['data']['presenter']||_0x52e65c['data'][_0x450508(0xf7)]===this['_collabSession']['getMemberID']())return;this[_0x450508(0x1a3)]===_0x450508(0x175)&&this[_0x450508(0x134)]();const _0x45c7db=_0x52e65c['data'][_0x450508(0x146)];Object[_0x450508(0x138)](_0x45c7db)['forEach'](_0xe6b0af=>{const _0x1a66cd=_0x450508;this[_0x1a66cd(0x155)][_0x1a66cd(0xfc)](_0xe6b0af['id'],_0xe6b0af[_0x1a66cd(0x135)]?JSON[_0x1a66cd(0x109)](_0xe6b0af[_0x1a66cd(0x135)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x40e98f=_0x392f9e;var _0x20d7db;this[_0x40e98f(0x15a)][_0x40e98f(0x1aa)](_0x40e98f(0x156)),(_0x20d7db=this['_commandDisposable'])==null||_0x20d7db[_0x40e98f(0x108)]();}[_0x392f9e(0x151)](){const _0x29753f=_0x392f9e;this[_0x29753f(0x15a)][_0x29753f(0x1aa)](_0x29753f(0x175)),this[_0x29753f(0x17b)]();}},exports[_0x392f9e(0x106)]=P([S(0x2,o[_0x392f9e(0xf6)]),S(0x3,o[_0x392f9e(0x19e)](E)),S(0x4,o[_0x392f9e(0xfe)])],exports[_0x392f9e(0x106)]);function $(){const _0x1feb9f=_0x392f9e,_0x5c85dc=p[_0x1feb9f(0x17e)](exports[_0x1feb9f(0x100)]),_0x3761d2=p['useDependency'](o['IUniverInstanceService']),_0x5b4742=p['useObservable'](()=>_0x3761d2[_0x1feb9f(0x167)](o[_0x1feb9f(0x184)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x31938d,_0xd6aa13]=v[_0x1feb9f(0x102)](null),[_0x47d1d0,_0x31188f]=v[_0x1feb9f(0x102)](u[_0x1feb9f(0xf3)]),_0x422d3b=v[_0x1feb9f(0x1af)](null);return v[_0x1feb9f(0x186)](()=>(_0x5b4742&&_0x5c85dc[_0x1feb9f(0x1b9)](_0x5b4742[_0x1feb9f(0x170)]())[_0x1feb9f(0x17c)](_0x309ce5=>{const _0x4bf643=_0x1feb9f;_0xd6aa13(_0x309ce5),_0x422d3b['current']=_0x309ce5[_0x4bf643(0x185)]['subscribe'](_0x3c8de2=>{_0x31188f(_0x3c8de2);});}),()=>{const _0x506c4d=_0x1feb9f;var _0x591f59;(_0x591f59=_0x422d3b[_0x506c4d(0x14f)])==null||_0x591f59['unsubscribe'](),_0x422d3b['current']=null;}),[_0x5b4742,_0x5c85dc]),_0x31938d?l[_0x1feb9f(0x17a)](f['Dropdown'],{'align':_0x1feb9f(0x133),'disabled':_0x47d1d0===u[_0x1feb9f(0x166)],'className':_0x1feb9f(0x1b2),'overlay':l[_0x1feb9f(0x17a)](W,{'status':_0x47d1d0,'coordinator':_0x31938d}),'children':l[_0x1feb9f(0x17a)](_0x1feb9f(0x18a),{'className':f['clsx'](_0x1feb9f(0x18e),{'univer-cursor-not-allowed':_0x47d1d0===u[_0x1feb9f(0x166)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47d1d0!==u['OFFLINE']}),'type':'button','children':l[_0x1feb9f(0x17a)](R,{'className':_0x1feb9f(0xfd)})})}):null;}function W(_0x18a86b){const _0x3947f4=_0x392f9e,{status:_0x4a9ed1,coordinator:_0x59b391}=_0x18a86b;switch(_0x4a9ed1){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x59b391});case u['FOLLOWING']:return l[_0x3947f4(0x17a)](B,{'coordinator':_0x59b391});case u['NOT_FOLLOWING']:return l[_0x3947f4(0x17a)](Y,{'coordinator':_0x59b391});case u['OFFLINE']:return l[_0x3947f4(0x17a)](J,{});case u['PRESENTING']:return l[_0x3947f4(0x17a)](Z,{'coordinator':_0x59b391});default:return null;}}function G(_0x20c712){const _0x294473=_0x392f9e,{coordinator:_0x16c885}=_0x20c712;return l[_0x294473(0x12e)](l[_0x294473(0x193)],{'children':[l[_0x294473(0x17a)](_0x294473(0x113),{'className':_0x294473(0x150),'children':_0x294473(0x123)}),l[_0x294473(0x17a)](f[_0x294473(0x1c3)],{'onClick':()=>_0x16c885['tryStartPresenting'](),'children':'Start'})]});}function B(_0x27c375){const _0x12e893=_0x392f9e,{coordinator:_0x462d2c}=_0x27c375;return l['jsxs'](l['Fragment'],{'children':[l[_0x12e893(0x17a)](_0x12e893(0x113),{'className':_0x12e893(0x150),'children':_0x12e893(0xf1)}),l[_0x12e893(0x17a)](f[_0x12e893(0x1c3)],{'onClick':()=>_0x462d2c[_0x12e893(0x12a)](),'children':_0x12e893(0x1c4)})]});}function Y(_0x48a08d){const _0x7bd56b=_0x392f9e,{coordinator:_0x1baa50}=_0x48a08d;return l[_0x7bd56b(0x12e)](l[_0x7bd56b(0x193)],{'children':[l[_0x7bd56b(0x17a)]('div',{'className':_0x7bd56b(0x150),'children':_0x7bd56b(0x181)}),l[_0x7bd56b(0x17a)](f[_0x7bd56b(0x1c3)],{'variant':_0x7bd56b(0x142),'onClick':()=>_0x1baa50[_0x7bd56b(0x141)](),'children':'Start\x20following'})]});}function Z(_0x456a0e){const _0x3e4886=_0x392f9e,{coordinator:_0x15f3bf}=_0x456a0e;return l[_0x3e4886(0x12e)](l['Fragment'],{'children':[l[_0x3e4886(0x17a)](_0x3e4886(0x113),{'className':_0x3e4886(0x150),'children':_0x3e4886(0x12d)}),l[_0x3e4886(0x17a)](f[_0x3e4886(0x1c3)],{'variant':'default','onClick':()=>_0x15f3bf[_0x3e4886(0x1a5)](),'children':_0x3e4886(0x1ad)})]});}function J(){const _0x2466ce=_0x392f9e;return l[_0x2466ce(0x17a)](l[_0x2466ce(0x193)],{'children':_0x2466ce(0x120)});}var K=Object[_0x392f9e(0x1c0)],z=(_0x304f98,_0x5d2cce,_0x4a5b93,_0x567203)=>{const _0x1e25b3=_0x392f9e;for(var _0x253e95=_0x567203>0x1?void 0x0:_0x567203?K(_0x5d2cce,_0x4a5b93):_0x5d2cce,_0x4e0b8d=_0x304f98[_0x1e25b3(0x1b0)]-0x1,_0x10aced;_0x4e0b8d>=0x0;_0x4e0b8d--)(_0x10aced=_0x304f98[_0x4e0b8d])&&(_0x253e95=_0x10aced(_0x253e95)||_0x253e95);return _0x253e95;},L=(_0x59b68f,_0x4f4f09)=>(_0x249b26,_0x90b473)=>_0x4f4f09(_0x249b26,_0x90b473,_0x59b68f);exports[_0x392f9e(0x129)]=class extends o[_0x392f9e(0x1bf)]{constructor(_0xc1f73d,_0x57c585){const _0x3266a6=_0x392f9e;super(),this['_injector']=_0xc1f73d,this[_0x3266a6(0x182)]=_0x57c585,this[_0x3266a6(0x1a8)]();}[_0x392f9e(0x1a8)](){const _0x8c450c=_0x392f9e;this[_0x8c450c(0x1b7)](this['_uiPartsService'][_0x8c450c(0x18f)](p[_0x8c450c(0x168)][_0x8c450c(0x19b)],()=>p[_0x8c450c(0x1b3)]($,this['_injector'])));}},exports[_0x392f9e(0x129)]=z([L(0x0,o['Inject'](o[_0x392f9e(0x112)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object[_0x392f9e(0x1c0)],ee=(_0x5ce4d8,_0x2c888b,_0x5a8d2e,_0x1eb0de)=>{const _0x4429f4=_0x392f9e;for(var _0x2ccb1e=_0x1eb0de>0x1?void 0x0:_0x1eb0de?X(_0x2c888b,_0x5a8d2e):_0x2c888b,_0x23e41e=_0x5ce4d8[_0x4429f4(0x1b0)]-0x1,_0x15a88f;_0x23e41e>=0x0;_0x23e41e--)(_0x15a88f=_0x5ce4d8[_0x23e41e])&&(_0x2ccb1e=_0x15a88f(_0x2ccb1e)||_0x2ccb1e);return _0x2ccb1e;},te=(_0xf0ba7b,_0x3115b6)=>(_0x4a6225,_0x56bcde)=>_0x3115b6(_0x4a6225,_0x56bcde,_0xf0ba7b);let m=class extends o['Disposable']{constructor(_0x5b8752){const _0x2459b4=_0x392f9e;super(),this[_0x2459b4(0x195)]=_0x5b8752,this[_0x2459b4(0x143)]();}[_0x392f9e(0x143)](){const _0x19efe1=_0x392f9e;[D[_0x19efe1(0x173)]['id'],D[_0x19efe1(0x16d)]['id'],C[_0x19efe1(0x145)]['id']][_0x19efe1(0x198)](_0x313153=>{const _0x1d7942=_0x19efe1;this[_0x1d7942(0x1b7)](this[_0x1d7942(0x195)][_0x1d7942(0x177)](_0x313153));});}};m=ee([te(0x0,o[_0x392f9e(0x19e)](E))],m);var ie=Object[_0x392f9e(0x1bc)],se=Object[_0x392f9e(0x1c0)],ne=(_0x5b1721,_0x4892f4,_0x50a190)=>_0x4892f4 in _0x5b1721?ie(_0x5b1721,_0x4892f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50a190}):_0x5b1721[_0x4892f4]=_0x50a190,re=(_0x13be44,_0x4e3be6,_0x5a446c,_0x354c26)=>{const _0x3da293=_0x392f9e;for(var _0x2af01c=_0x354c26>0x1?void 0x0:_0x354c26?se(_0x4e3be6,_0x5a446c):_0x4e3be6,_0x458502=_0x13be44[_0x3da293(0x1b0)]-0x1,_0x857c28;_0x458502>=0x0;_0x458502--)(_0x857c28=_0x13be44[_0x458502])&&(_0x2af01c=_0x857c28(_0x2af01c)||_0x2af01c);return _0x2af01c;},N=(_0x2613cd,_0x136fd2)=>(_0x237582,_0x33704f)=>_0x136fd2(_0x237582,_0x33704f,_0x2613cd),A=(_0x1c7e0e,_0x17ba42,_0x24c8c8)=>ne(_0x1c7e0e,typeof _0x17ba42!=_0x392f9e(0x16e)?_0x17ba42+'':_0x17ba42,_0x24c8c8);const oe=_0x392f9e(0x1a0);exports[_0x392f9e(0x13a)]=class extends o[_0x392f9e(0x147)]{constructor(_0x56999d=w,_0x4d2844,_0x302f98){const _0x6272d5=_0x392f9e;super(),this[_0x6272d5(0x192)]=_0x56999d,this['_injector']=_0x4d2844,this[_0x6272d5(0x11d)]=_0x302f98;const {..._0x47b21e}=o[_0x6272d5(0x1ae)]({},w,this[_0x6272d5(0x192)]);this['_configService'][_0x6272d5(0x1a2)](Q,_0x47b21e);}[_0x392f9e(0x19a)](){const _0x1f2134=_0x392f9e;o[_0x1f2134(0x114)](this['_injector'],o[_0x1f2134(0x1bd)]([[E],[exports[_0x1f2134(0x100)]],[m],[exports[_0x1f2134(0x129)]]],this[_0x1f2134(0x192)]['override'])),o[_0x1f2134(0x128)](this['_injector'],[[m]]);}[_0x392f9e(0x121)](){const _0x4d29b2=_0x392f9e;o['touchDependencies'](this['_injector'],[[exports[_0x4d29b2(0x129)]]]);}},A(exports[_0x392f9e(0x13a)],_0x392f9e(0x136),o[_0x392f9e(0x184)][_0x392f9e(0x1c5)]),A(exports[_0x392f9e(0x13a)],_0x392f9e(0x125),oe),exports['UniverLiveSharePlugin']=re([o[_0x392f9e(0xfa)](b[_0x392f9e(0x197)]),N(0x1,o['Inject'](o[_0x392f9e(0x112)])),N(0x2,o[_0x392f9e(0xf6)])],exports[_0x392f9e(0x13a)]),exports[_0x392f9e(0x11c)]=$,exports['LiveShareService']=E,exports[_0x392f9e(0x199)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x35d540=_0x8ed9;function _0x8ed9(_0x18e553,_0x40c48c){const _0x45b37e=_0x45b3();return _0x8ed9=function(_0x8ed973,_0x5a1839){_0x8ed973=_0x8ed973-0x74;let _0x442873=_0x45b37e[_0x8ed973];return _0x442873;},_0x8ed9(_0x18e553,_0x40c48c);}(function(_0x3baa97,_0x230a0f){const _0x476629=_0x8ed9,_0x596a6a=_0x3baa97();while(!![]){try{const _0x5f3735=-parseInt(_0x476629(0x81))/0x1*(parseInt(_0x476629(0x8e))/0x2)+parseInt(_0x476629(0x8b))/0x3+-parseInt(_0x476629(0x80))/0x4*(parseInt(_0x476629(0x8a))/0x5)+-parseInt(_0x476629(0x74))/0x6*(-parseInt(_0x476629(0x86))/0x7)+-parseInt(_0x476629(0x85))/0x8+-parseInt(_0x476629(0x7b))/0x9+parseInt(_0x476629(0x78))/0xa;if(_0x5f3735===_0x230a0f)break;else _0x596a6a['push'](_0x596a6a['shift']());}catch(_0x511684){_0x596a6a['push'](_0x596a6a['shift']());}}}(_0x45b3,0xcab61));import{LiveShareController as _0x56f255,LiveShareStatus as _0x2d291f}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x19b6ba}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4c8332}from'@univerjs/sheets';function _0x45b3(){const _0x35a370=['getStatus','getActiveWorkbook','157566sPSDEQ','getId','_injector','No\x20active\x20workbook\x20found.','_initialize','PRESENTING','stopFollowing','66aSiJgO','getLiveShareCoordinatorSync','get','getActiveSheet','34356490OGavfO','executeCommand','getSheetId','8002665hBfmzV','startFollowing','syncExecuteCommand','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','4PBkpGP','1cXgPVO','startColumn','getUnitId','startRow','4959400MqBjkZ','17647zUuuAy','extend','getLiveShareStatus','_commandService','5739235qNQadL','307995UwCsPZ'];_0x45b3=function(){return _0x35a370;};return _0x45b3();}import{SetScrollOperation as _0x569b43}from'@univerjs/sheets-ui';import{FRange as _0x18699d}from'@univerjs/sheets/facade';import{FUniver as _0x54bc5e,FEnum as _0x50b179}from'@univerjs/core/facade';class I extends _0x18699d{[_0x35d540(0x92)](_0x32eb68,_0x3b3e60,_0x3b9778,_0x17a405,_0x3ab682){const _0xe000e6=_0x35d540,_0x59ad5c=_0x32eb68[_0xe000e6(0x76)](_0x56f255),_0x1a26d5=_0x32eb68['get'](_0x19b6ba),_0x237f4d=_0x3b3e60[_0xe000e6(0x83)](),_0x3eab62=_0x3b3e60[_0xe000e6(0x77)](),_0x1aa3d=_0x59ad5c['getLiveShareCoordinatorSync'](_0x237f4d);(_0x1aa3d==null?void 0x0:_0x1aa3d['getStatus']())!==_0x2d291f[_0xe000e6(0x93)]||(_0x3b9778[_0xe000e6(0x7a)]()!==_0x3eab62[_0xe000e6(0x7a)]()&&this[_0xe000e6(0x89)][_0xe000e6(0x79)](_0x4c8332['id'],{'unitId':_0x237f4d,'subUnitId':_0x3b9778[_0xe000e6(0x7a)]()}),!_0x1a26d5['getRenderById'](_0x237f4d))||_0x3ab682[_0xe000e6(0x7d)](_0x569b43['id'],{'unitId':_0x3b3e60[_0xe000e6(0x83)](),'sheetId':_0x3b9778[_0xe000e6(0x7a)](),'sheetViewStartRow':_0x17a405[_0xe000e6(0x84)],'sheetViewStartColumn':_0x17a405[_0xe000e6(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x18699d[_0x35d540(0x87)](I);class m extends _0x54bc5e{[_0x35d540(0x88)](){const _0x453c27=_0x35d540;var _0x565b0d,_0x40aafc;const _0x2c62c8=this[_0x453c27(0x90)]['get'](_0x56f255),_0x573131=(_0x565b0d=this[_0x453c27(0x8d)]())==null?void 0x0:_0x565b0d[_0x453c27(0x8f)]();if(!_0x573131)throw new Error(_0x453c27(0x91));const _0x44e31c=_0x2c62c8['getLiveShareCoordinatorSync'](_0x573131);return(_0x40aafc=_0x44e31c==null?void 0x0:_0x44e31c[_0x453c27(0x8c)]())!=null?_0x40aafc:_0x2d291f['IDLE'];}['startFollowing'](){const _0x1a8429=_0x35d540;var _0x137ffe;const _0x203ae0=this['_injector'][_0x1a8429(0x76)](_0x56f255),_0x2b04b2=(_0x137ffe=this[_0x1a8429(0x8d)]())==null?void 0x0:_0x137ffe[_0x1a8429(0x8f)]();if(!_0x2b04b2)throw new Error(_0x1a8429(0x91));const _0x1f9858=_0x203ae0[_0x1a8429(0x75)](_0x2b04b2);if(!_0x1f9858)throw new Error(_0x1a8429(0x7f));_0x1f9858[_0x1a8429(0x7c)]();}[_0x35d540(0x94)](){const _0x250e48=_0x35d540;var _0x2c6085;const _0x1d38fd=this[_0x250e48(0x90)][_0x250e48(0x76)](_0x56f255),_0x2f6536=(_0x2c6085=this[_0x250e48(0x8d)]())==null?void 0x0:_0x2c6085[_0x250e48(0x8f)]();if(!_0x2f6536)throw new Error('No\x20active\x20workbook\x20found.');const _0x537df3=_0x1d38fd[_0x250e48(0x75)](_0x2f6536);if(!_0x537df3)throw new Error(_0x250e48(0x7f));_0x537df3[_0x250e48(0x94)]();}['startPresenting'](){const _0x2329c6=_0x35d540;var _0x540ce1;const _0x5b17b0=this[_0x2329c6(0x90)][_0x2329c6(0x76)](_0x56f255),_0x259973=(_0x540ce1=this[_0x2329c6(0x8d)]())==null?void 0x0:_0x540ce1['getId']();if(!_0x259973)throw new Error('No\x20active\x20workbook\x20found.');const _0x13c037=_0x5b17b0[_0x2329c6(0x75)](_0x259973);if(!_0x13c037)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13c037['tryStartPresenting']();}[_0x35d540(0x7e)](){const _0x3724ba=_0x35d540;var _0x57901f;const _0x8aa731=this[_0x3724ba(0x90)]['get'](_0x56f255),_0x5c5031=(_0x57901f=this[_0x3724ba(0x8d)]())==null?void 0x0:_0x57901f[_0x3724ba(0x8f)]();if(!_0x5c5031)throw new Error(_0x3724ba(0x91));const _0x650a5a=_0x8aa731[_0x3724ba(0x75)](_0x5c5031);if(!_0x650a5a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x650a5a[_0x3724ba(0x7e)]();}}_0x54bc5e[_0x35d540(0x87)](m);class C extends _0x50b179{get['LiveShareStatusEnum'](){return _0x2d291f;}}_0x50b179['extend'](C);
1
+ function _0x1c49(_0x35a73c,_0x3d7167){const _0x39957d=_0x3995();return _0x1c49=function(_0x1c49c7,_0x338363){_0x1c49c7=_0x1c49c7-0xb8;let _0x11c51a=_0x39957d[_0x1c49c7];return _0x11c51a;},_0x1c49(_0x35a73c,_0x3d7167);}const _0x385ee5=_0x1c49;(function(_0x5c8676,_0x1bfe50){const _0x31c4ad=_0x1c49,_0x3dc571=_0x5c8676();while(!![]){try{const _0x4893a7=-parseInt(_0x31c4ad(0xc6))/0x1*(-parseInt(_0x31c4ad(0xce))/0x2)+-parseInt(_0x31c4ad(0xd1))/0x3*(-parseInt(_0x31c4ad(0xbd))/0x4)+-parseInt(_0x31c4ad(0xc9))/0x5*(parseInt(_0x31c4ad(0xd6))/0x6)+parseInt(_0x31c4ad(0xc2))/0x7*(-parseInt(_0x31c4ad(0xd0))/0x8)+-parseInt(_0x31c4ad(0xb9))/0x9*(parseInt(_0x31c4ad(0xc0))/0xa)+parseInt(_0x31c4ad(0xd4))/0xb+parseInt(_0x31c4ad(0xd7))/0xc;if(_0x4893a7===_0x1bfe50)break;else _0x3dc571['push'](_0x3dc571['shift']());}catch(_0x42ea04){_0x3dc571['push'](_0x3dc571['shift']());}}}(_0x3995,0xcca92));import{LiveShareController as _0x3c4784,LiveShareStatus as _0x28e52a}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x117b23}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x9893b1}from'@univerjs/sheets';import{SetScrollOperation as _0x35c931}from'@univerjs/sheets-ui';import{FRange as _0x2e72a3}from'@univerjs/sheets/facade';function _0x3995(){const _0x49b7a7=['48WxRdOK','3gqcnzB','getUnitId','No\x20active\x20workbook\x20found.','1716594YFeIpn','get','208122lnTlNn','3980124fLhzXk','getRenderById','startPresenting','9kRlIuD','stopFollowing','getId','getLiveShareCoordinatorSync','4596932BDJhhk','_injector','getSheetId','6123710xXuAPh','_commandService','1113119KRczoE','startFollowing','_initialize','stopPresenting','21dCigQf','getActiveWorkbook','extend','60EYtiHh','syncExecuteCommand','getStatus','getActiveSheet','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','112766vzdusu','PRESENTING'];_0x3995=function(){return _0x49b7a7;};return _0x3995();}import{FUniver as _0x570aa0,FEnum as _0x479bf3}from'@univerjs/core/facade';class I extends _0x2e72a3{[_0x385ee5(0xc4)](_0x10aeed,_0x49c341,_0x2bbaa6,_0x3e0d01,_0x2fe5be){const _0x452a81=_0x385ee5,_0x2854ee=_0x10aeed['get'](_0x3c4784),_0x4f8dc3=_0x10aeed[_0x452a81(0xd5)](_0x117b23),_0x30ad2f=_0x49c341['getUnitId'](),_0x45cfe7=_0x49c341[_0x452a81(0xcc)](),_0x29e214=_0x2854ee[_0x452a81(0xbc)](_0x30ad2f);(_0x29e214==null?void 0x0:_0x29e214[_0x452a81(0xcb)]())!==_0x28e52a[_0x452a81(0xcf)]||(_0x2bbaa6['getSheetId']()!==_0x45cfe7[_0x452a81(0xbf)]()&&this[_0x452a81(0xc1)]['executeCommand'](_0x9893b1['id'],{'unitId':_0x30ad2f,'subUnitId':_0x2bbaa6['getSheetId']()}),!_0x4f8dc3[_0x452a81(0xd8)](_0x30ad2f))||_0x2fe5be[_0x452a81(0xca)](_0x35c931['id'],{'unitId':_0x49c341[_0x452a81(0xd2)](),'sheetId':_0x2bbaa6[_0x452a81(0xbf)](),'sheetViewStartRow':_0x3e0d01['startRow'],'sheetViewStartColumn':_0x3e0d01['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2e72a3[_0x385ee5(0xc8)](I);class m extends _0x570aa0{['getLiveShareStatus'](){const _0x11a0f6=_0x385ee5;var _0x59bc77,_0x241738;const _0x427b2d=this[_0x11a0f6(0xbe)][_0x11a0f6(0xd5)](_0x3c4784),_0xb4a6fd=(_0x59bc77=this[_0x11a0f6(0xc7)]())==null?void 0x0:_0x59bc77[_0x11a0f6(0xbb)]();if(!_0xb4a6fd)throw new Error(_0x11a0f6(0xd3));const _0x17fbb4=_0x427b2d[_0x11a0f6(0xbc)](_0xb4a6fd);return(_0x241738=_0x17fbb4==null?void 0x0:_0x17fbb4[_0x11a0f6(0xcb)]())!=null?_0x241738:_0x28e52a['IDLE'];}[_0x385ee5(0xc3)](){const _0x16c878=_0x385ee5;var _0x45f675;const _0x2c004d=this[_0x16c878(0xbe)][_0x16c878(0xd5)](_0x3c4784),_0x5cbc0e=(_0x45f675=this['getActiveWorkbook']())==null?void 0x0:_0x45f675[_0x16c878(0xbb)]();if(!_0x5cbc0e)throw new Error('No\x20active\x20workbook\x20found.');const _0x2d0c35=_0x2c004d['getLiveShareCoordinatorSync'](_0x5cbc0e);if(!_0x2d0c35)throw new Error(_0x16c878(0xcd));_0x2d0c35[_0x16c878(0xc3)]();}[_0x385ee5(0xba)](){const _0x30b557=_0x385ee5;var _0xbf38e8;const _0x5d4c5e=this[_0x30b557(0xbe)][_0x30b557(0xd5)](_0x3c4784),_0x223473=(_0xbf38e8=this[_0x30b557(0xc7)]())==null?void 0x0:_0xbf38e8[_0x30b557(0xbb)]();if(!_0x223473)throw new Error(_0x30b557(0xd3));const _0x60664c=_0x5d4c5e['getLiveShareCoordinatorSync'](_0x223473);if(!_0x60664c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x60664c[_0x30b557(0xba)]();}[_0x385ee5(0xb8)](){const _0x286b3c=_0x385ee5;var _0x101f7e;const _0x38ed9e=this['_injector'][_0x286b3c(0xd5)](_0x3c4784),_0x5bba9f=(_0x101f7e=this['getActiveWorkbook']())==null?void 0x0:_0x101f7e[_0x286b3c(0xbb)]();if(!_0x5bba9f)throw new Error(_0x286b3c(0xd3));const _0x13a25e=_0x38ed9e[_0x286b3c(0xbc)](_0x5bba9f);if(!_0x13a25e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13a25e['tryStartPresenting']();}[_0x385ee5(0xc5)](){const _0x7727a8=_0x385ee5;var _0x3290a3;const _0x30ea03=this['_injector'][_0x7727a8(0xd5)](_0x3c4784),_0x5f590f=(_0x3290a3=this[_0x7727a8(0xc7)]())==null?void 0x0:_0x3290a3[_0x7727a8(0xbb)]();if(!_0x5f590f)throw new Error(_0x7727a8(0xd3));const _0x36df00=_0x30ea03[_0x7727a8(0xbc)](_0x5f590f);if(!_0x36df00)throw new Error(_0x7727a8(0xcd));_0x36df00['stopPresenting']();}}_0x570aa0['extend'](m);class C extends _0x479bf3{get['LiveShareStatusEnum'](){return _0x28e52a;}}_0x479bf3['extend'](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ff471=_0x7fae;(function(_0x67af08,_0x235412){const _0x359b7c=_0x7fae,_0x47dddf=_0x67af08();while(!![]){try{const _0x30b74c=-parseInt(_0x359b7c(0x23b))/0x1*(-parseInt(_0x359b7c(0x209))/0x2)+-parseInt(_0x359b7c(0x1c2))/0x3*(parseInt(_0x359b7c(0x1d9))/0x4)+parseInt(_0x359b7c(0x248))/0x5*(-parseInt(_0x359b7c(0x1cc))/0x6)+parseInt(_0x359b7c(0x20b))/0x7+-parseInt(_0x359b7c(0x21b))/0x8+-parseInt(_0x359b7c(0x1dd))/0x9+parseInt(_0x359b7c(0x1e9))/0xa;if(_0x30b74c===_0x235412)break;else _0x47dddf['push'](_0x47dddf['shift']());}catch(_0x41425f){_0x47dddf['push'](_0x47dddf['shift']());}}}(_0x5570,0xb8c28));var J=Object[_0x1ff471(0x240)],K=(_0x2bd2c8,_0x35c835,_0x534633)=>_0x35c835 in _0x2bd2c8?J(_0x2bd2c8,_0x35c835,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534633}):_0x2bd2c8[_0x35c835]=_0x534633,u=(_0x48cfe1,_0xde295,_0x4bdd67)=>K(_0x48cfe1,typeof _0xde295!=_0x1ff471(0x1d4)?_0xde295+'':_0xde295,_0x4bdd67);import{Disposable as _0x5efc82,toDisposable as _0x40b029,IUniverInstanceService as _0x407f4a,Inject as _0x530cef,Injector as _0x342037,IConfigService as _0x495339,ICommandService as _0x244e30,RxDisposable as _0x27b7ba,UniverInstanceType as _0x391209,DisposableCollection as _0x4ea11a,CommandType as _0x3c20aa,DependentOn as _0x148bca,Plugin as _0x41c584,merge as _0x2c2112,registerDependencies as _0x5a0d1b,mergeOverrideWithDependencies as _0x5a4f61,touchDependencies as _0x2d8b65}from'@univerjs/core';import{useDependency as _0x11f1e0,useObservable as _0x1e059b,IUIPartsService as _0x5b30b3,BuiltInUIPart as _0x25f8f5,connectInjector as _0x33fbbf}from'@univerjs/ui';import{jsx as _0x44ff08,jsxs as _0xdeaf32,Fragment as _0x47942b}from'react/jsx-runtime';import{Dropdown as _0x21ed3d,clsx as _0x70919e,Button as _0x4f7539}from'@univerjs/design';import{useRef as _0x4576d0,createElement as _0x241ac0,forwardRef as _0x197dd8,useState as _0x155574,useEffect as _0x5bfbc0}from'react';import{CollaborationEvent as _0xb1447,parseProtocolChangeset as _0x331d5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x57c410,SessionStatus as _0x2ea114,UniverCollaborationClientPlugin as _0x18c6f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x38f5e0,SetWorksheetActiveOperation as _0x5c8388}from'@univerjs/sheets';import{BehaviorSubject as _0x3757b0,Subject as _0x5667a6}from'rxjs';import{takeUntil as _0x1eb310,throttleTime as _0x193b30}from'rxjs/operators';import{SetZoomRatioOperation as _0x55628f,SetScrollOperation as _0x3efdd7}from'@univerjs/sheets-ui';function k({ref:_0x54d3c3,..._0x588c5f}){const _0x442a32=_0x1ff471,{icon:_0x3a593f,id:_0x52a812,className:_0x2b9ded,extend:_0x5d9e52,..._0xc787dc}=_0x588c5f,_0x302977=(_0x442a32(0x1db)+_0x52a812+'\x20'+(_0x2b9ded||''))[_0x442a32(0x1f3)](),_0x2773f6=_0x4576d0('_'+Oe());return G(_0x3a593f,''+_0x52a812,{'defIds':_0x3a593f[_0x442a32(0x1be)],'idSuffix':_0x2773f6[_0x442a32(0x1fc)]},{'ref':_0x54d3c3,'className':_0x302977,..._0xc787dc},_0x5d9e52);}function G(_0x26cd31,_0x51c6a2,_0x103abe,_0x974482,_0x4d40f3){const _0x16ef69=_0x1ff471;return _0x241ac0(_0x26cd31['tag'],{'key':_0x51c6a2,...be(_0x26cd31,_0x103abe,_0x4d40f3),..._0x974482},(Ee(_0x26cd31,_0x103abe)[_0x16ef69(0x1e8)]||[])['map']((_0x3decb9,_0xcda044)=>G(_0x3decb9,_0x51c6a2+'-'+_0x26cd31['tag']+'-'+_0xcda044,_0x103abe,void 0x0,_0x4d40f3)));}function be(_0x2f444c,_0x13f485,_0x51387c){const _0x17eb68=_0x1ff471,_0x324824={..._0x2f444c[_0x17eb68(0x1b3)]};_0x51387c!=null&&_0x51387c[_0x17eb68(0x1a9)]&&_0x324824[_0x17eb68(0x238)]===_0x17eb68(0x1a9)&&(_0x324824[_0x17eb68(0x238)]=_0x51387c[_0x17eb68(0x1a9)]),_0x2f444c[_0x17eb68(0x213)]==='mask'&&_0x324824['id']&&(_0x324824['id']=_0x324824['id']+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x5ddc4a,_0x4f10f4])=>{const _0x2c57c8=_0x17eb68;_0x5ddc4a==='mask'&&typeof _0x4f10f4==_0x2c57c8(0x239)&&(_0x324824[_0x5ddc4a]=_0x4f10f4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x2c57c8(0x211)]+')'));});const {defIds:_0x19bfd7}=_0x13f485;return!_0x19bfd7||_0x19bfd7[_0x17eb68(0x233)]===0x0||(_0x2f444c[_0x17eb68(0x213)]===_0x17eb68(0x223)&&_0x324824[_0x17eb68(0x1f9)]&&(_0x324824[_0x17eb68(0x1f9)]=_0x324824[_0x17eb68(0x1f9)]+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x4fbe80,_0x44586b])=>{const _0x1491e5=_0x17eb68;typeof _0x44586b==_0x1491e5(0x239)&&(_0x324824[_0x4fbe80]=_0x44586b[_0x1491e5(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x1491e5(0x211)]+')'));})),_0x324824;}function Ee(_0x40f6af,_0xe39401){const _0x16df81=_0x1ff471;var _0x304159;const {defIds:_0x53abff}=_0xe39401;return!_0x53abff||_0x53abff[_0x16df81(0x233)]===0x0?_0x40f6af:_0x40f6af[_0x16df81(0x213)]==='defs'&&((_0x304159=_0x40f6af[_0x16df81(0x1e8)])!=null&&_0x304159[_0x16df81(0x233)])?{..._0x40f6af,'children':_0x40f6af[_0x16df81(0x1e8)][_0x16df81(0x1ab)](_0x2955b0=>typeof _0x2955b0[_0x16df81(0x1b3)]['id']==_0x16df81(0x239)&&_0x53abff&&_0x53abff[_0x16df81(0x1cd)](_0x2955b0[_0x16df81(0x1b3)]['id'])?{..._0x2955b0,'attrs':{..._0x2955b0[_0x16df81(0x1b3)],'id':_0x2955b0['attrs']['id']+_0xe39401['idSuffix']}}:_0x2955b0)}:_0x40f6af;}function Oe(){const _0x3058eb=_0x1ff471;return Math[_0x3058eb(0x1ea)]()[_0x3058eb(0x1a4)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1ff471(0x20f);const we={'tag':_0x1ff471(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1ff471(0x1ca),'viewBox':_0x1ff471(0x1f2),'width':_0x1ff471(0x1c8),'height':_0x1ff471(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'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':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':_0x1ff471(0x1d3),'fillRule':_0x1ff471(0x21e),'clipRule':'evenodd'}}]},W=_0x197dd8(function(_0x1a2eaf,_0x3f0300){const _0x515e7e=_0x1ff471;return _0x241ac0(k,Object[_0x515e7e(0x1c1)]({},_0x1a2eaf,{'id':_0x515e7e(0x1c0),'ref':_0x3f0300,'icon':we}));});W['displayName']=_0x1ff471(0x1f7);class L extends _0x5efc82{constructor(){const _0x598f4d=_0x1ff471;super(...arguments),u(this,_0x598f4d(0x1fa),new Set()),u(this,'_reporters',new Set());}['registerSharedOperation'](_0x5e6e0a){const _0x36c790=_0x1ff471;return this['_sharedOperations']['add'](_0x5e6e0a),_0x40b029(()=>this['_sharedOperations'][_0x36c790(0x227)](_0x5e6e0a));}[_0x1ff471(0x1b0)](_0x1bf75a){const _0x22ed6a=_0x1ff471;return this[_0x22ed6a(0x1d2)][_0x22ed6a(0x21a)](_0x1bf75a),_0x40b029(()=>this['_reporters'][_0x22ed6a(0x227)](_0x1bf75a));}[_0x1ff471(0x1ff)](_0x30d843){const _0x444cec=_0x1ff471;return this[_0x444cec(0x1fa)][_0x444cec(0x222)](_0x30d843);}[_0x1ff471(0x1a6)](_0x26d9cd){const _0x12b772=_0x1ff471;return Array[_0x12b772(0x1a7)](this[_0x12b772(0x1d2)])[_0x12b772(0x1ab)](_0x16b419=>_0x16b419(_0x26d9cd));}}var Ne=Object[_0x1ff471(0x1c4)],Y=(_0x19fe3a,_0x147680,_0x34b2f9,_0x1d65c6)=>{const _0x302b59=_0x1ff471;for(var _0x3b5c18=_0x1d65c6>0x1?void 0x0:_0x1d65c6?Ne(_0x147680,_0x34b2f9):_0x147680,_0x4fe29e=_0x19fe3a[_0x302b59(0x233)]-0x1,_0x377afb;_0x4fe29e>=0x0;_0x4fe29e--)(_0x377afb=_0x19fe3a[_0x4fe29e])&&(_0x3b5c18=_0x377afb(_0x3b5c18)||_0x3b5c18);return _0x3b5c18;},_=(_0x346bd6,_0x42fa7c)=>(_0x3bdd66,_0x1146b9)=>_0x42fa7c(_0x3bdd66,_0x1146b9,_0x346bd6);let S=class extends _0x27b7ba{constructor(_0x570829,_0x20eb27,_0xef5d28){const _0x25f2e2=_0x1ff471;super(),u(this,_0x25f2e2(0x1e6),new Map()),(this[_0x25f2e2(0x1fd)]=_0x570829,this[_0x25f2e2(0x1ed)]=_0x20eb27,this[_0x25f2e2(0x1d7)]=_0xef5d28,this[_0x25f2e2(0x1c9)]());}async[_0x1ff471(0x22a)](_0x3ba235){const _0x1e084b=_0x1ff471;return this[_0x1e084b(0x1e6)]['has'](_0x3ba235)||await this[_0x1e084b(0x1fe)](_0x3ba235),this[_0x1e084b(0x1e6)][_0x1e084b(0x1a5)](_0x3ba235);}[_0x1ff471(0x220)](_0xc0e10c){const _0xec5ee5=_0x1ff471;var _0x1e1988;return(_0x1e1988=this[_0xec5ee5(0x1e6)][_0xec5ee5(0x1a5)](_0xc0e10c))!=null?_0x1e1988:null;}[_0x1ff471(0x1c9)](){const _0x4f2120=_0x1ff471;this[_0x4f2120(0x1fd)]['getTypeOfUnitAdded$'](_0x391209[_0x4f2120(0x234)])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](async _0x329f88=>{const _0x5f31fe=_0x4f2120,_0x4b15cf=_0x329f88[_0x5f31fe(0x212)]();this[_0x5f31fe(0x1e6)][_0x5f31fe(0x222)](_0x4b15cf)||this[_0x5f31fe(0x1fe)](_0x4b15cf);}),this[_0x4f2120(0x1fd)][_0x4f2120(0x1de)](_0x391209['UNIVER_SHEET'])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](_0x5bcc72=>{const _0xb0c83f=_0x4f2120,_0xba9db7=_0x5bcc72[_0xb0c83f(0x212)](),_0x4106f5=this[_0xb0c83f(0x1e6)]['get'](_0xba9db7);_0x4106f5==null||_0x4106f5['dispose']();});}async['_startLiveShareCoordinator'](_0x5d8ac4){const _0xeb6207=_0x1ff471,_0x5439d8=await this[_0xeb6207(0x1d7)]['requireSession'](_0x5d8ac4),_0x35d44b=this[_0xeb6207(0x1ed)][_0xeb6207(0x1e2)](N,_0x5d8ac4,_0x5439d8);return _0x35d44b['init'](),this[_0xeb6207(0x1e6)][_0xeb6207(0x214)](_0x5d8ac4,_0x35d44b),_0x35d44b;}};S=Y([_(0x0,_0x407f4a),_(0x1,_0x530cef(_0x342037)),_(0x2,_0x530cef(_0x57c410))],S);var c=(_0x4adbe8=>(_0x4adbe8[_0x1ff471(0x1a2)]=_0x1ff471(0x243),_0x4adbe8['IDLE']='idle',_0x4adbe8[_0x1ff471(0x1b6)]=_0x1ff471(0x21f),_0x4adbe8['NOT_FOLLOWING']=_0x1ff471(0x244),_0x4adbe8[_0x1ff471(0x21c)]=_0x1ff471(0x230),_0x4adbe8))(c||{});const Ce=_0x1ff471(0x1d5),De=0xc8;let N=class extends _0x27b7ba{constructor(_0x4b9732,_0x1fc442,_0x129c59,_0x310a79,_0x16863c){const _0x5b4e4e=_0x1ff471;super(),u(this,_0x5b4e4e(0x23f),new _0x3757b0(_0x5b4e4e(0x1b5))),u(this,'status$',this[_0x5b4e4e(0x23f)]['asObservable']()),u(this,_0x5b4e4e(0x1c9),!0x1),u(this,'_commandDisposable',null),u(this,_0x5b4e4e(0x1a3),null),(this[_0x5b4e4e(0x210)]=_0x4b9732,this[_0x5b4e4e(0x22b)]=_0x1fc442,this['_configService']=_0x129c59,this[_0x5b4e4e(0x1ae)]=_0x310a79,this[_0x5b4e4e(0x228)]=_0x16863c);}get['_status'](){const _0x4afec2=_0x1ff471;return this[_0x4afec2(0x23f)][_0x4afec2(0x217)]();}[_0x1ff471(0x1aa)](){const _0x490e09=_0x1ff471;var _0x1537bf;(_0x1537bf=this[_0x490e09(0x1d1)])==null||_0x1537bf['dispose'](),this[_0x490e09(0x23f)][_0x490e09(0x202)]('idle'),this[_0x490e09(0x23f)]['complete']();}[_0x1ff471(0x246)](){const _0x5ca0e9=_0x1ff471;return this[_0x5ca0e9(0x229)];}[_0x1ff471(0x204)](){const _0xeafc37=_0x1ff471;this['_init']||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0xeafc37(0x1d0)](_0x1eb310(this['dispose$']))[_0xeafc37(0x1eb)](_0x98d964=>{const _0x208f2e=_0xeafc37;switch(_0x98d964){case _0x2ea114[_0x208f2e(0x1a2)]:this[_0x208f2e(0x1bc)]();break;case _0x2ea114[_0x208f2e(0x20d)]:this[_0x208f2e(0x1b7)]();break;}}),this[_0xeafc37(0x22b)][_0xeafc37(0x23e)][_0xeafc37(0x1d0)](_0x1eb310(this[_0xeafc37(0x237)]))[_0xeafc37(0x1eb)](_0x57590c=>{const _0x5e2632=_0xeafc37,{eventID:_0x4e82df}=_0x57590c;switch(_0x4e82df){case _0xb1447['LIVESHARE_NEW_HOST']:this[_0x5e2632(0x1f6)](_0x57590c);break;case _0xb1447['LIVESHARE_OPERATION']:this[_0x5e2632(0x221)](_0x57590c);break;case _0xb1447['LIVESHARE_TERMINATE']:this[_0x5e2632(0x218)]();break;case _0xb1447[_0x5e2632(0x242)]:this['_handleNewChangeSets'](_0x57590c);break;}}));}['tryStartPresenting'](){const _0x22b46b=_0x1ff471;this[_0x22b46b(0x22b)]['send']({'eventID':_0xb1447[_0x22b46b(0x215)],'data':{'unitID':this[_0x22b46b(0x210)],'userID':this[_0x22b46b(0x22b)][_0x22b46b(0x232)]()}},this[_0x22b46b(0x210)]);}['stopPresenting'](){const _0x454ee6=_0x1ff471;this[_0x454ee6(0x229)]===_0x454ee6(0x230)&&(this[_0x454ee6(0x23f)]['next'](_0x454ee6(0x1b5)),this[_0x454ee6(0x22b)][_0x454ee6(0x22c)]({'eventID':_0xb1447[_0x454ee6(0x1f0)],'data':{'unitID':this[_0x454ee6(0x210)]}},this['_unitID']));}[_0x1ff471(0x1e3)](){const _0x216134=_0x1ff471;this[_0x216134(0x229)]===_0x216134(0x244)&&(this[_0x216134(0x23f)][_0x216134(0x202)](_0x216134(0x21f)),this['_startFollowing']());}[_0x1ff471(0x200)](){const _0x1e6a64=_0x1ff471;this['_status']===_0x1e6a64(0x21f)&&this[_0x1e6a64(0x1c6)]();}['_handleNewHost'](_0x485a12){const _0x103ddb=_0x1ff471,{presenter:_0x50273e}=_0x485a12['data'],_0xb41cf5=this['_collabSession'][_0x103ddb(0x232)]();this['_presenter']=_0x50273e,_0x50273e===_0xb41cf5?(this[_0x103ddb(0x1c6)](),this[_0x103ddb(0x219)]()):this[_0x103ddb(0x229)]!==_0x103ddb(0x244)&&(this[_0x103ddb(0x1b2)](),this[_0x103ddb(0x1e1)]());}[_0x1ff471(0x1c5)](){const _0x192748=_0x1ff471,_0x2cdf5d={'eventID':_0xb1447[_0x192748(0x21d)]};this['_collabSession'][_0x192748(0x22c)](_0x2cdf5d,this[_0x192748(0x210)]);}[_0x1ff471(0x218)](){const _0x4a5074=_0x1ff471;this['_presenter']=null,this['_status']!==_0x4a5074(0x230)&&this[_0x4a5074(0x1ac)]();}[_0x1ff471(0x1cb)](_0x4ee193){const _0x3dfc98=_0x1ff471;if(this['_status']==='following'&&this[_0x3dfc98(0x1a3)]===_0x4ee193[_0x3dfc98(0x1ef)][_0x3dfc98(0x22d)]){const _0x1861ce=_0x331d5a(_0x4ee193['data'])[_0x3dfc98(0x249)]['reverse']()[_0x3dfc98(0x20c)](_0x10d34=>_0x10d34['id']===_0x38f5e0['id']);if(_0x1861ce){const _0x5859e8=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1e7)],_0x21b363=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1d8)]['id'];setTimeout(()=>{const _0x478ec3=_0x3dfc98;this[_0x478ec3(0x228)][_0x478ec3(0x23a)](_0x5c8388['id'],{'unitId':_0x5859e8,'subUnitId':_0x21b363},{'fromCollab':!0x0});});}}}[_0x1ff471(0x219)](){const _0x488fec=_0x1ff471;this[_0x488fec(0x23f)][_0x488fec(0x202)]('presenting');const _0x2d6ee2=new Map(),_0x21ce20=this[_0x488fec(0x1d1)]=new _0x4ea11a();_0x21ce20['add'](_0x40b029(()=>{const _0x4a657b=_0x488fec;_0x2d6ee2[_0x4a657b(0x1ad)](_0x437cae=>_0x437cae[_0x4a657b(0x203)]()),_0x2d6ee2[_0x4a657b(0x20e)]();})),_0x21ce20[_0x488fec(0x21a)](this['_commandService'][_0x488fec(0x23c)](_0x4ffe17=>{const _0x5f4ba5=_0x488fec;var _0x7cf43b;if(_0x4ffe17[_0x5f4ba5(0x1b9)]!==_0x3c20aa[_0x5f4ba5(0x1e0)]||!this['_liveShareService'][_0x5f4ba5(0x1ff)](_0x4ffe17['id']))return;const {id:_0x5821aa}=_0x4ffe17;let _0x5ab94f;_0x2d6ee2[_0x5f4ba5(0x222)](_0x5821aa)?_0x5ab94f=_0x2d6ee2[_0x5f4ba5(0x1a5)](_0x5821aa):(_0x5ab94f=new _0x5667a6(),_0x2d6ee2[_0x5f4ba5(0x214)](_0x5821aa,_0x5ab94f),_0x5ab94f[_0x5f4ba5(0x1d0)](_0x193b30((_0x7cf43b=this[_0x5f4ba5(0x1b8)][_0x5f4ba5(0x224)](Ce))!=null?_0x7cf43b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5f4ba5(0x1eb)](_0x417165=>{const _0x3feb3b=_0x5f4ba5;this[_0x3feb3b(0x22b)]['send']({'eventID':_0xb1447[_0x3feb3b(0x1cf)],'data':{'unitID':this[_0x3feb3b(0x210)],'operations':{[_0x417165['id']]:{'id':_0x417165['id'],'params':JSON[_0x3feb3b(0x225)](_0x417165[_0x3feb3b(0x1bb)])}}}},this[_0x3feb3b(0x210)]);})),_0x5ab94f[_0x5f4ba5(0x202)](_0x4ffe17);})),this[_0x488fec(0x1ae)][_0x488fec(0x1a6)](this['_unitID'])[_0x488fec(0x1ad)](_0x407797=>this[_0x488fec(0x22b)][_0x488fec(0x22c)]({'eventID':_0xb1447[_0x488fec(0x1cf)],'data':{'unitID':this[_0x488fec(0x210)],'operations':{[_0x407797['id']]:{'id':_0x407797['id'],'params':JSON[_0x488fec(0x225)](_0x407797['params'])}}}},this[_0x488fec(0x210)]));}[_0x1ff471(0x1b2)](){const _0x3499b0=_0x1ff471;var _0x5e2876;this[_0x3499b0(0x23f)][_0x3499b0(0x202)](_0x3499b0(0x1b5)),(_0x5e2876=this['_commandDisposable'])==null||_0x5e2876[_0x3499b0(0x1aa)](),this['_commandDisposable']=null;}[_0x1ff471(0x1e1)](){const _0x5ca5fa=_0x1ff471;var _0x40e911;(_0x40e911=this[_0x5ca5fa(0x1d1)])==null||_0x40e911[_0x5ca5fa(0x1aa)](),this[_0x5ca5fa(0x23f)][_0x5ca5fa(0x202)](_0x5ca5fa(0x21f));}[_0x1ff471(0x1ac)](){const _0x372a77=_0x1ff471;var _0x45999a;this[_0x372a77(0x23f)][_0x372a77(0x202)](_0x372a77(0x1b5)),(_0x45999a=this[_0x372a77(0x1d1)])==null||_0x45999a[_0x372a77(0x1aa)](),this[_0x372a77(0x1d1)]=null;}[_0x1ff471(0x1c6)](){const _0x3ca668=_0x1ff471;var _0x183a59;this[_0x3ca668(0x23f)]['next'](_0x3ca668(0x244)),(_0x183a59=this[_0x3ca668(0x1d1)])==null||_0x183a59['dispose']();}[_0x1ff471(0x221)](_0x14f9a9){const _0x56de70=_0x1ff471;if([_0x56de70(0x230),_0x56de70(0x244),_0x56de70(0x243)][_0x56de70(0x1cd)](this[_0x56de70(0x229)])||!_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1df)]||_0x14f9a9[_0x56de70(0x1ef)]['presenter']===this[_0x56de70(0x22b)][_0x56de70(0x232)]())return;this[_0x56de70(0x229)]===_0x56de70(0x1b5)&&this[_0x56de70(0x1e1)]();const _0x256a7d=_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1e4)];Object[_0x56de70(0x1dc)](_0x256a7d)['forEach'](_0x1098a5=>{const _0x829016=_0x56de70;this[_0x829016(0x228)]['executeCommand'](_0x1098a5['id'],_0x1098a5['params']?JSON['parse'](_0x1098a5[_0x829016(0x1bb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4503d7=_0x1ff471;var _0x11193f;this[_0x4503d7(0x23f)][_0x4503d7(0x202)](_0x4503d7(0x243)),(_0x11193f=this[_0x4503d7(0x1d1)])==null||_0x11193f['dispose']();}['_handleOnline'](){const _0x25027b=_0x1ff471;this[_0x25027b(0x23f)][_0x25027b(0x202)](_0x25027b(0x1b5)),this[_0x25027b(0x1c5)]();}};N=Y([_(0x2,_0x495339),_(0x3,_0x530cef(L)),_(0x4,_0x244e30)],N);function Le(){const _0x360dd8=_0x1ff471,_0x480058=_0x11f1e0(S),_0x30294c=_0x11f1e0(_0x407f4a),_0x3103a8=_0x1e059b(()=>_0x30294c[_0x360dd8(0x1b4)](_0x391209['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fd68c,_0x220472]=_0x155574(null),[_0x56c686,_0x178780]=_0x155574(c[_0x360dd8(0x201)]),_0xef2c91=_0x4576d0(null);return _0x5bfbc0(()=>(_0x3103a8&&_0x480058[_0x360dd8(0x22a)](_0x3103a8['getUnitId']())[_0x360dd8(0x23d)](_0x4a1edd=>{const _0x5e08dd=_0x360dd8;_0x220472(_0x4a1edd),_0xef2c91[_0x5e08dd(0x1fc)]=_0x4a1edd[_0x5e08dd(0x1ce)][_0x5e08dd(0x1eb)](_0x21c8ae=>{_0x178780(_0x21c8ae);});}),()=>{const _0x286259=_0x360dd8;var _0xb4bd9a;(_0xb4bd9a=_0xef2c91[_0x286259(0x1fc)])==null||_0xb4bd9a[_0x286259(0x1bd)](),_0xef2c91[_0x286259(0x1fc)]=null;}),[_0x3103a8,_0x480058]),_0x3fd68c?_0x44ff08(_0x21ed3d,{'align':_0x360dd8(0x1f5),'disabled':_0x56c686===c[_0x360dd8(0x1a2)],'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':_0x44ff08(Re,{'status':_0x56c686,'coordinator':_0x3fd68c}),'children':_0x44ff08(_0x360dd8(0x1c7),{'className':_0x70919e(_0x360dd8(0x236),{'univer-cursor-not-allowed':_0x56c686===c[_0x360dd8(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56c686!==c[_0x360dd8(0x1a2)]}),'type':_0x360dd8(0x1c7),'children':_0x44ff08(W,{'className':_0x360dd8(0x205)})})}):null;}function Re(_0x28e239){const _0x39cc04=_0x1ff471,{status:_0x11d2b3,coordinator:_0x3cf1e7}=_0x28e239;switch(_0x11d2b3){case c[_0x39cc04(0x201)]:return _0x44ff08($e,{'coordinator':_0x3cf1e7});case c['FOLLOWING']:return _0x44ff08(xe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a8)]:return _0x44ff08(Pe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a2)]:return _0x44ff08(Te,{});case c[_0x39cc04(0x21c)]:return _0x44ff08(Ae,{'coordinator':_0x3cf1e7});default:return null;}}function $e(_0x424685){const _0x367646=_0x1ff471,{coordinator:_0x2e5116}=_0x424685;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x367646(0x241),{'className':_0x367646(0x1b1),'children':_0x367646(0x235)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x2e5116[_0x367646(0x1f1)](),'children':'Start'})]});}function xe(_0x2e1c24){const _0x4fa2e6=_0x1ff471,{coordinator:_0x54c7c5}=_0x2e1c24;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x4fa2e6(0x241),{'className':_0x4fa2e6(0x1b1),'children':_0x4fa2e6(0x208)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x54c7c5['stopFollowing'](),'children':_0x4fa2e6(0x1f8)})]});}function Pe(_0x2e475d){const _0x523dff=_0x1ff471,{coordinator:_0x448d74}=_0x2e475d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x523dff(0x241),{'className':_0x523dff(0x1b1),'children':_0x523dff(0x1af)}),_0x44ff08(_0x4f7539,{'variant':_0x523dff(0x226),'onClick':()=>_0x448d74[_0x523dff(0x1e3)](),'children':_0x523dff(0x1ec)})]});}function Ae(_0x5f022d){const _0x89213b=_0x1ff471,{coordinator:_0x3a058c}=_0x5f022d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08('div',{'className':_0x89213b(0x1b1),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x44ff08(_0x4f7539,{'variant':_0x89213b(0x207),'onClick':()=>_0x3a058c['stopPresenting'](),'children':_0x89213b(0x231)})]});}function Te(){return _0x44ff08(_0x47942b,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x1ff471(0x1c4)],He=(_0x2f8122,_0x524e5f,_0x361076,_0x36454d)=>{for(var _0x4c0982=_0x36454d>0x1?void 0x0:_0x36454d?Fe(_0x524e5f,_0x361076):_0x524e5f,_0x371a1a=_0x2f8122['length']-0x1,_0x65146f;_0x371a1a>=0x0;_0x371a1a--)(_0x65146f=_0x2f8122[_0x371a1a])&&(_0x4c0982=_0x65146f(_0x4c0982)||_0x4c0982);return _0x4c0982;},A=(_0x275cf4,_0xd2ddea)=>(_0x1c3e8e,_0x198788)=>_0xd2ddea(_0x1c3e8e,_0x198788,_0x275cf4);function _0x7fae(_0x3fcfbd,_0x1f6936){const _0x557056=_0x5570();return _0x7fae=function(_0x7fae7c,_0x38b49c){_0x7fae7c=_0x7fae7c-0x1a2;let _0x5cda0d=_0x557056[_0x7fae7c];return _0x5cda0d;},_0x7fae(_0x3fcfbd,_0x1f6936);}let m=class extends _0x5efc82{constructor(_0x205e68,_0x419cec){const _0x1d14f7=_0x1ff471;super(),this[_0x1d14f7(0x1ed)]=_0x205e68,this[_0x1d14f7(0x247)]=_0x419cec,this[_0x1d14f7(0x206)]();}['_mountLiveShare'](){const _0x54f196=_0x1ff471;this[_0x54f196(0x1c3)](this[_0x54f196(0x247)][_0x54f196(0x1ba)](_0x25f8f5[_0x54f196(0x1f4)],()=>_0x33fbbf(Le,this['_injector'])));}};function _0x5570(){const _0x40f71a=['_stopFollowing','button','1em','_init','none','_handleNewChangeSets','6PLIzZJ','includes','status$','LIVESHARE_OPERATION','pipe','_commandDisposable','_reporters','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','symbol','SAME_OPERATION_SHARE_INTERVAL','replace','_collabSessionService','sheet','4PhrxBd','onRendered','univerjs-icon\x20univerjs-icon-','values','11830554bUmnuc','getTypeOfUnitDisposed$','presenter','OPERATION','_startFollowing','createInstance','startFollowing','operations','override','_entities','unitId','children','28307970NfiiNQ','random','subscribe','Start\x20following','_injector','registerSharedOperation','data','LIVESHARE_TERMINATE','tryStartPresenting','0\x200\x2017\x2017','trim','HEADER_MENU','end','_handleNewHost','LiveShareIcon','Stop\x20following','xlink:href','_sharedOperations','currentColor','current','_univerInstanceService','_startLiveShareCoordinator','shouldShareOperation','stopFollowing','IDLE','next','complete','init','univer-size-4','_mountLiveShare','default','You\x27re\x20following\x20the\x20presenter','2DonwDo','UNIVER_LIVE_SHARE_PLUGIN','9211230eKNjPG','find','ONLINE','clear','UniverIcon','_unitID','idSuffix','getUnitId','tag','set','LIVESHARE_REQUEST_HOST','entries','getValue','_handleTerminate','_startPresenting','add','7099752pkzOlA','PRESENTING','LIVESHARE_FETCH_OPERATIONS','evenodd','following','getLiveShareCoordinatorSync','_handleOperation','has','use','getConfig','stringify','text','delete','_commandService','_status','getLiveShareCoordinator','_collabSession','send','memberID','setConfig','_config','presenting','Stop\x20presenting','getMemberID','length','UNIVER_SHEET','Present\x20this\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','fill','string','executeCommand','567211CHxsmP','onCommandExecuted','then','event$','_status$','defineProperty','div','NEW_CHANGESETS','offline','not-following','onStarting','getStatus','_uiPartsService','5036170qrStPd','mutations','UNIVER_UNKNOWN','OFFLINE','_presenter','toString','get','getInitialStates','from','NOT_FOLLOWING','colorChannel1','dispose','map','_beIdle','forEach','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','attrs','getCurrentTypeOfUnit$','idle','FOLLOWING','_handleOnline','_configService','type','registerComponent','params','_handleOffline','unsubscribe','defIds','svg','live-share-icon','assign','2243739giwFqR','disposeWithMe','getOwnPropertyDescriptor','_fetchOperations'];_0x5570=function(){return _0x40f71a;};return _0x5570();}m=He([A(0x0,_0x530cef(_0x342037)),A(0x1,_0x5b30b3)],m);const ye='live-share.config',T={};var Ue=Object[_0x1ff471(0x1c4)],Ve=(_0x12667a,_0x4ebed6,_0x7838cc,_0xb0d144)=>{const _0x1495e5=_0x1ff471;for(var _0x520462=_0xb0d144>0x1?void 0x0:_0xb0d144?Ue(_0x4ebed6,_0x7838cc):_0x4ebed6,_0x21e448=_0x12667a[_0x1495e5(0x233)]-0x1,_0x4c7d42;_0x21e448>=0x0;_0x21e448--)(_0x4c7d42=_0x12667a[_0x21e448])&&(_0x520462=_0x4c7d42(_0x520462)||_0x520462);return _0x520462;},je=(_0x4a23d7,_0x367f06)=>(_0x552ec3,_0x15a8de)=>_0x367f06(_0x552ec3,_0x15a8de,_0x4a23d7);let I=class extends _0x5efc82{constructor(_0x3db742){const _0x46d09d=_0x1ff471;super(),this[_0x46d09d(0x1ae)]=_0x3db742,this[_0x46d09d(0x1c9)]();}[_0x1ff471(0x1c9)](){const _0x35b521=_0x1ff471;[_0x55628f['id'],_0x3efdd7['id'],_0x5c8388['id']][_0x35b521(0x1ad)](_0x5a0e25=>{const _0x2fc9c8=_0x35b521;this[_0x2fc9c8(0x1c3)](this[_0x2fc9c8(0x1ae)][_0x2fc9c8(0x1ee)](_0x5a0e25));});}};I=Ve([je(0x0,_0x530cef(L))],I);var Me=Object['defineProperty'],ke=Object[_0x1ff471(0x1c4)],Ge=(_0xfd20bc,_0x40da0c,_0x2633de)=>_0x40da0c in _0xfd20bc?Me(_0xfd20bc,_0x40da0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2633de}):_0xfd20bc[_0x40da0c]=_0x2633de,We=(_0x55b24f,_0x3d18f4,_0x529083,_0x109f13)=>{for(var _0x4094fc=_0x109f13>0x1?void 0x0:_0x109f13?ke(_0x3d18f4,_0x529083):_0x3d18f4,_0x92aaa0=_0x55b24f['length']-0x1,_0x5cc2ca;_0x92aaa0>=0x0;_0x92aaa0--)(_0x5cc2ca=_0x55b24f[_0x92aaa0])&&(_0x4094fc=_0x5cc2ca(_0x4094fc)||_0x4094fc);return _0x4094fc;},F=(_0x6757ab,_0x3f8d09)=>(_0x163397,_0x1447a7)=>_0x3f8d09(_0x163397,_0x1447a7,_0x6757ab),B=(_0x51fc9a,_0x5d0a91,_0x24eba7)=>Ge(_0x51fc9a,typeof _0x5d0a91!=_0x1ff471(0x1d4)?_0x5d0a91+'':_0x5d0a91,_0x24eba7);const Ye=_0x1ff471(0x20a);let b=class extends _0x41c584{constructor(_0x589e7f=T,_0x3a749b,_0x3e0ea5){const _0x4dbeeb=_0x1ff471;super(),this['_config']=_0x589e7f,this[_0x4dbeeb(0x1ed)]=_0x3a749b,this[_0x4dbeeb(0x1b8)]=_0x3e0ea5;const {..._0x2051f2}=_0x2c2112({},T,this[_0x4dbeeb(0x22f)]);this[_0x4dbeeb(0x1b8)][_0x4dbeeb(0x22e)](ye,_0x2051f2);}[_0x1ff471(0x245)](){const _0x1ee846=_0x1ff471;_0x5a0d1b(this[_0x1ee846(0x1ed)],_0x5a4f61([[L],[S],[I],[m]],this[_0x1ee846(0x22f)][_0x1ee846(0x1e5)])),_0x2d8b65(this['_injector'],[[I]]);}[_0x1ff471(0x1da)](){_0x2d8b65(this['_injector'],[[m]]);}};B(b,'type',_0x391209[_0x1ff471(0x24a)]),B(b,'pluginName',Ye),b=We([_0x148bca(_0x18c6f0),F(0x1,_0x530cef(_0x342037)),F(0x2,_0x495339)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0x2c17bd=_0x6dcd;(function(_0x46eab9,_0x3f9f6e){const _0x372050=_0x6dcd,_0x163203=_0x46eab9();while(!![]){try{const _0x2f00ac=-parseInt(_0x372050(0x1f7))/0x1+parseInt(_0x372050(0x266))/0x2*(parseInt(_0x372050(0x1e7))/0x3)+-parseInt(_0x372050(0x246))/0x4*(-parseInt(_0x372050(0x218))/0x5)+-parseInt(_0x372050(0x21c))/0x6*(-parseInt(_0x372050(0x1e5))/0x7)+-parseInt(_0x372050(0x1ff))/0x8*(-parseInt(_0x372050(0x1dd))/0x9)+parseInt(_0x372050(0x1fe))/0xa+-parseInt(_0x372050(0x1d4))/0xb;if(_0x2f00ac===_0x3f9f6e)break;else _0x163203['push'](_0x163203['shift']());}catch(_0x4a332d){_0x163203['push'](_0x163203['shift']());}}}(_0xae52,0x2ddb1));var J=Object['defineProperty'],K=(_0x35970c,_0x3ab2be,_0x4465cc)=>_0x3ab2be in _0x35970c?J(_0x35970c,_0x3ab2be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4465cc}):_0x35970c[_0x3ab2be]=_0x4465cc,u=(_0x22a061,_0x191ca2,_0x191e6c)=>K(_0x22a061,typeof _0x191ca2!=_0x2c17bd(0x1d3)?_0x191ca2+'':_0x191ca2,_0x191e6c);import{Disposable as _0x340cc7,toDisposable as _0x1aa50a,IUniverInstanceService as _0x9a2b99,Inject as _0xb91b10,Injector as _0x13efe5,IConfigService as _0x45ac9b,ICommandService as _0x147916,RxDisposable as _0x1729a0,UniverInstanceType as _0x45889c,DisposableCollection as _0x4a90c4,CommandType as _0x4010de,DependentOn as _0x1c6ccb,Plugin as _0x24270d,merge as _0x51df76,registerDependencies as _0x312d92,mergeOverrideWithDependencies as _0x43af49,touchDependencies as _0x5199da}from'@univerjs/core';import{useDependency as _0x1bfba8,useObservable as _0x206e01,IUIPartsService as _0x2066c5,BuiltInUIPart as _0x1bd2e1,connectInjector as _0x33bb9e}from'@univerjs/ui';import{jsx as _0x76a09b,jsxs as _0x490d08,Fragment as _0x1c44c8}from'react/jsx-runtime';import{Dropdown as _0x39b390,clsx as _0x3e4a67,Button as _0x2cafee}from'@univerjs/design';import{useRef as _0x470657,createElement as _0x690b7e,forwardRef as _0x22f24d,useState as _0x14fd36,useEffect as _0x23e84d}from'react';import{CollaborationEvent as _0x51a117,parseProtocolChangeset as _0x1db3a1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x228d40,SessionStatus as _0x79de65,UniverCollaborationClientPlugin as _0x172e42}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x288a71,SetWorksheetActiveOperation as _0x411a50}from'@univerjs/sheets';import{BehaviorSubject as _0x530a32,Subject as _0x517350}from'rxjs';import{takeUntil as _0x1f1c93,throttleTime as _0x3d7821}from'rxjs/operators';import{SetZoomRatioOperation as _0x3270d8,SetScrollOperation as _0x552a0c}from'@univerjs/sheets-ui';function k({ref:_0x1df001,..._0x513bb3}){const _0x354358=_0x2c17bd,{icon:_0x41d999,id:_0x3a64c2,className:_0x2ad4d2,extend:_0x401ca8,..._0x35a9d5}=_0x513bb3,_0x357d63=(_0x354358(0x249)+_0x3a64c2+'\x20'+(_0x2ad4d2||''))[_0x354358(0x22e)](),_0x3bd686=_0x470657('_'+Oe());return G(_0x41d999,''+_0x3a64c2,{'defIds':_0x41d999[_0x354358(0x21d)],'idSuffix':_0x3bd686['current']},{'ref':_0x1df001,'className':_0x357d63,..._0x35a9d5},_0x401ca8);}function G(_0x5a6ee8,_0x586d64,_0xada4dc,_0x3ebb1f,_0x4a6f3f){const _0x5e05ae=_0x2c17bd;return _0x690b7e(_0x5a6ee8[_0x5e05ae(0x273)],{'key':_0x586d64,...be(_0x5a6ee8,_0xada4dc,_0x4a6f3f),..._0x3ebb1f},(Ee(_0x5a6ee8,_0xada4dc)['children']||[])[_0x5e05ae(0x22d)]((_0x30a27b,_0x3c71c4)=>G(_0x30a27b,_0x586d64+'-'+_0x5a6ee8[_0x5e05ae(0x273)]+'-'+_0x3c71c4,_0xada4dc,void 0x0,_0x4a6f3f)));}function be(_0x4f137d,_0xa6c78e,_0x437c49){const _0x4b4d1f=_0x2c17bd,_0x44902f={..._0x4f137d[_0x4b4d1f(0x1f5)]};_0x437c49!=null&&_0x437c49[_0x4b4d1f(0x268)]&&_0x44902f[_0x4b4d1f(0x217)]===_0x4b4d1f(0x268)&&(_0x44902f[_0x4b4d1f(0x217)]=_0x437c49['colorChannel1']),_0x4f137d[_0x4b4d1f(0x273)]==='mask'&&_0x44902f['id']&&(_0x44902f['id']=_0x44902f['id']+_0xa6c78e[_0x4b4d1f(0x23e)]),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x40353a,_0x11371d])=>{const _0x2d2c9b=_0x4b4d1f;_0x40353a===_0x2d2c9b(0x210)&&typeof _0x11371d==_0x2d2c9b(0x25e)&&(_0x44902f[_0x40353a]=_0x11371d[_0x2d2c9b(0x1f8)](/url\(#(.*)\)/,'url(#$1'+_0xa6c78e[_0x2d2c9b(0x23e)]+')'));});const {defIds:_0xf09bbc}=_0xa6c78e;return!_0xf09bbc||_0xf09bbc[_0x4b4d1f(0x225)]===0x0||(_0x4f137d[_0x4b4d1f(0x273)]===_0x4b4d1f(0x275)&&_0x44902f[_0x4b4d1f(0x24a)]&&(_0x44902f[_0x4b4d1f(0x24a)]=_0x44902f[_0x4b4d1f(0x24a)]+_0xa6c78e['idSuffix']),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x19d350,_0x1d4ae8])=>{const _0x5d1565=_0x4b4d1f;typeof _0x1d4ae8==_0x5d1565(0x25e)&&(_0x44902f[_0x19d350]=_0x1d4ae8[_0x5d1565(0x1f8)](/url\(#(.*)\)/,_0x5d1565(0x1f1)+_0xa6c78e['idSuffix']+')'));})),_0x44902f;}function Ee(_0x2e1a6f,_0x2ad328){const _0x3fa413=_0x2c17bd;var _0x37c9f4;const {defIds:_0x5bc420}=_0x2ad328;return!_0x5bc420||_0x5bc420[_0x3fa413(0x225)]===0x0?_0x2e1a6f:_0x2e1a6f[_0x3fa413(0x273)]===_0x3fa413(0x226)&&((_0x37c9f4=_0x2e1a6f['children'])!=null&&_0x37c9f4[_0x3fa413(0x225)])?{..._0x2e1a6f,'children':_0x2e1a6f[_0x3fa413(0x243)][_0x3fa413(0x22d)](_0x28888b=>typeof _0x28888b[_0x3fa413(0x1f5)]['id']==_0x3fa413(0x25e)&&_0x5bc420&&_0x5bc420['includes'](_0x28888b[_0x3fa413(0x1f5)]['id'])?{..._0x28888b,'attrs':{..._0x28888b['attrs'],'id':_0x28888b[_0x3fa413(0x1f5)]['id']+_0x2ad328['idSuffix']}}:_0x28888b)}:_0x2e1a6f;}function Oe(){const _0xaf154c=_0x2c17bd;return Math['random']()[_0xaf154c(0x1d5)](0x24)[_0xaf154c(0x265)](0x2,0x8);}k[_0x2c17bd(0x23c)]='UniverIcon';const we={'tag':_0x2c17bd(0x1dc),'attrs':{'xmlns':_0x2c17bd(0x25f),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2c17bd(0x271),'height':_0x2c17bd(0x271)},'children':[{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'d':_0x2c17bd(0x1fa)}},{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'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':_0x2c17bd(0x20c),'clipRule':'evenodd'}}]},W=_0x22f24d(function(_0x50414d,_0x4ebea5){return _0x690b7e(k,Object['assign']({},_0x50414d,{'id':'live-share-icon','ref':_0x4ebea5,'icon':we}));});W[_0x2c17bd(0x23c)]=_0x2c17bd(0x211);class L extends _0x340cc7{constructor(){const _0x2435a6=_0x2c17bd;super(...arguments),u(this,_0x2435a6(0x24f),new Set()),u(this,_0x2435a6(0x205),new Set());}[_0x2c17bd(0x20e)](_0x41c0a5){const _0x5a6bdc=_0x2c17bd;return this[_0x5a6bdc(0x24f)]['add'](_0x41c0a5),_0x1aa50a(()=>this[_0x5a6bdc(0x24f)][_0x5a6bdc(0x1d7)](_0x41c0a5));}[_0x2c17bd(0x248)](_0x5176f0){const _0x482477=_0x2c17bd;return this[_0x482477(0x205)][_0x482477(0x255)](_0x5176f0),_0x1aa50a(()=>this[_0x482477(0x205)]['delete'](_0x5176f0));}[_0x2c17bd(0x203)](_0x24d258){const _0x1e2684=_0x2c17bd;return this[_0x1e2684(0x24f)][_0x1e2684(0x22a)](_0x24d258);}[_0x2c17bd(0x257)](_0x5d77de){const _0x390056=_0x2c17bd;return Array[_0x390056(0x26a)](this['_reporters'])[_0x390056(0x22d)](_0x507a8f=>_0x507a8f(_0x5d77de));}}var Ne=Object[_0x2c17bd(0x214)],Y=(_0xd80162,_0x315b46,_0x520114,_0x5ac254)=>{const _0x45e54d=_0x2c17bd;for(var _0x3eb9d6=_0x5ac254>0x1?void 0x0:_0x5ac254?Ne(_0x315b46,_0x520114):_0x315b46,_0x42a071=_0xd80162[_0x45e54d(0x225)]-0x1,_0xa5d9a5;_0x42a071>=0x0;_0x42a071--)(_0xa5d9a5=_0xd80162[_0x42a071])&&(_0x3eb9d6=_0xa5d9a5(_0x3eb9d6)||_0x3eb9d6);return _0x3eb9d6;},_=(_0x5357c8,_0x5e2084)=>(_0x5a230b,_0x2bacba)=>_0x5e2084(_0x5a230b,_0x2bacba,_0x5357c8);let S=class extends _0x1729a0{constructor(_0x2d5315,_0x37abb6,_0x107b1f){const _0x58a46a=_0x2c17bd;super(),u(this,'_entities',new Map()),(this[_0x58a46a(0x20a)]=_0x2d5315,this[_0x58a46a(0x1d8)]=_0x37abb6,this['_collabSessionService']=_0x107b1f,this[_0x58a46a(0x1e1)]());}async[_0x2c17bd(0x1ed)](_0x4a21eb){const _0x147a9a=_0x2c17bd;return this[_0x147a9a(0x1e3)][_0x147a9a(0x22a)](_0x4a21eb)||await this[_0x147a9a(0x25c)](_0x4a21eb),this['_entities'][_0x147a9a(0x23d)](_0x4a21eb);}[_0x2c17bd(0x267)](_0x570ee6){const _0x57bc53=_0x2c17bd;var _0x1e4954;return(_0x1e4954=this[_0x57bc53(0x1e3)][_0x57bc53(0x23d)](_0x570ee6))!=null?_0x1e4954:null;}['_init'](){const _0x4e1f10=_0x2c17bd;this[_0x4e1f10(0x20a)][_0x4e1f10(0x24d)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](async _0x485fc2=>{const _0x545891=_0x4e1f10,_0x47768c=_0x485fc2[_0x545891(0x274)]();this[_0x545891(0x1e3)][_0x545891(0x22a)](_0x47768c)||this[_0x545891(0x25c)](_0x47768c);}),this[_0x4e1f10(0x20a)][_0x4e1f10(0x1df)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](_0x321e9a=>{const _0x31af76=_0x4e1f10,_0x22d47a=_0x321e9a[_0x31af76(0x274)](),_0x2ed8ce=this[_0x31af76(0x1e3)][_0x31af76(0x23d)](_0x22d47a);_0x2ed8ce==null||_0x2ed8ce[_0x31af76(0x241)]();});}async[_0x2c17bd(0x25c)](_0x15653a){const _0x5d7f3a=_0x2c17bd,_0x5f2b47=await this[_0x5d7f3a(0x22b)][_0x5d7f3a(0x23b)](_0x15653a),_0x46bd9b=this['_injector']['createInstance'](N,_0x15653a,_0x5f2b47);return _0x46bd9b[_0x5d7f3a(0x216)](),this[_0x5d7f3a(0x1e3)][_0x5d7f3a(0x1d1)](_0x15653a,_0x46bd9b),_0x46bd9b;}};S=Y([_(0x0,_0x9a2b99),_(0x1,_0xb91b10(_0x13efe5)),_(0x2,_0xb91b10(_0x228d40))],S);var c=(_0x48bffd=>(_0x48bffd[_0x2c17bd(0x1ef)]=_0x2c17bd(0x261),_0x48bffd[_0x2c17bd(0x26c)]=_0x2c17bd(0x201),_0x48bffd[_0x2c17bd(0x258)]=_0x2c17bd(0x253),_0x48bffd['NOT_FOLLOWING']=_0x2c17bd(0x212),_0x48bffd[_0x2c17bd(0x22f)]='presenting',_0x48bffd))(c||{});const Ce=_0x2c17bd(0x24e),De=0xc8;let N=class extends _0x1729a0{constructor(_0x421a24,_0x1d4fe7,_0x4e4a9e,_0x58778c,_0x255ad6){const _0x5cdd7f=_0x2c17bd;super(),u(this,_0x5cdd7f(0x204),new _0x530a32(_0x5cdd7f(0x201))),u(this,_0x5cdd7f(0x1d2),this[_0x5cdd7f(0x204)][_0x5cdd7f(0x26e)]()),u(this,_0x5cdd7f(0x1e1),!0x1),u(this,_0x5cdd7f(0x264),null),u(this,_0x5cdd7f(0x1e8),null),(this[_0x5cdd7f(0x202)]=_0x421a24,this['_collabSession']=_0x1d4fe7,this[_0x5cdd7f(0x220)]=_0x4e4a9e,this[_0x5cdd7f(0x236)]=_0x58778c,this[_0x5cdd7f(0x238)]=_0x255ad6);}get['_status'](){const _0x566241=_0x2c17bd;return this[_0x566241(0x204)][_0x566241(0x260)]();}[_0x2c17bd(0x241)](){const _0x2d9d0b=_0x2c17bd;var _0x21417d;(_0x21417d=this[_0x2d9d0b(0x264)])==null||_0x21417d[_0x2d9d0b(0x241)](),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x270)](_0x2d9d0b(0x201)),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x1d9)]();}[_0x2c17bd(0x1ec)](){const _0x58033f=_0x2c17bd;return this[_0x58033f(0x1da)];}[_0x2c17bd(0x216)](){const _0x31733a=_0x2c17bd;this[_0x31733a(0x1e1)]||(this[_0x31733a(0x1e1)]=!0x0,this['_collabSession'][_0x31733a(0x26f)][_0x31733a(0x1f6)](_0x1f1c93(this[_0x31733a(0x1e2)]))['subscribe'](_0x17ec45=>{const _0x38dc57=_0x31733a;switch(_0x17ec45){case _0x79de65[_0x38dc57(0x1ef)]:this['_handleOffline']();break;case _0x79de65[_0x38dc57(0x25d)]:this['_handleOnline']();break;}}),this[_0x31733a(0x26d)][_0x31733a(0x208)][_0x31733a(0x1f6)](_0x1f1c93(this['dispose$']))[_0x31733a(0x232)](_0x88aae0=>{const _0x1932c0=_0x31733a,{eventID:_0x449af1}=_0x88aae0;switch(_0x449af1){case _0x51a117['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x88aae0);break;case _0x51a117[_0x1932c0(0x240)]:this[_0x1932c0(0x215)](_0x88aae0);break;case _0x51a117['LIVESHARE_TERMINATE']:this[_0x1932c0(0x26b)]();break;case _0x51a117[_0x1932c0(0x231)]:this[_0x1932c0(0x207)](_0x88aae0);break;}}));}['tryStartPresenting'](){const _0x907710=_0x2c17bd;this[_0x907710(0x26d)]['send']({'eventID':_0x51a117[_0x907710(0x1fb)],'data':{'unitID':this[_0x907710(0x202)],'userID':this[_0x907710(0x26d)]['getMemberID']()}},this[_0x907710(0x202)]);}[_0x2c17bd(0x1f0)](){const _0x2aa2f9=_0x2c17bd;this[_0x2aa2f9(0x1da)]==='presenting'&&(this[_0x2aa2f9(0x204)][_0x2aa2f9(0x270)](_0x2aa2f9(0x201)),this[_0x2aa2f9(0x26d)][_0x2aa2f9(0x1f4)]({'eventID':_0x51a117[_0x2aa2f9(0x239)],'data':{'unitID':this[_0x2aa2f9(0x202)]}},this[_0x2aa2f9(0x202)]));}[_0x2c17bd(0x1fc)](){const _0x2d5d72=_0x2c17bd;this['_status']===_0x2d5d72(0x212)&&(this[_0x2d5d72(0x204)][_0x2d5d72(0x270)](_0x2d5d72(0x253)),this[_0x2d5d72(0x224)]());}[_0x2c17bd(0x1f3)](){const _0x2fed31=_0x2c17bd;this[_0x2fed31(0x1da)]===_0x2fed31(0x253)&&this[_0x2fed31(0x1e4)]();}['_handleNewHost'](_0x27a1d2){const _0x2ce34b=_0x2c17bd,{presenter:_0xc8a672}=_0x27a1d2[_0x2ce34b(0x237)],_0x4d8d36=this[_0x2ce34b(0x26d)]['getMemberID']();this[_0x2ce34b(0x1e8)]=_0xc8a672,_0xc8a672===_0x4d8d36?(this[_0x2ce34b(0x1e4)](),this[_0x2ce34b(0x227)]()):this[_0x2ce34b(0x1da)]!==_0x2ce34b(0x212)&&(this[_0x2ce34b(0x206)](),this[_0x2ce34b(0x224)]());}['_fetchOperations'](){const _0x1af4a7=_0x2c17bd,_0x299498={'eventID':_0x51a117[_0x1af4a7(0x25a)]};this[_0x1af4a7(0x26d)]['send'](_0x299498,this['_unitID']);}[_0x2c17bd(0x26b)](){const _0x30f54e=_0x2c17bd;this['_presenter']=null,this[_0x30f54e(0x1da)]!==_0x30f54e(0x20f)&&this[_0x30f54e(0x233)]();}[_0x2c17bd(0x207)](_0x4b0354){const _0x20ad2c=_0x2c17bd;if(this[_0x20ad2c(0x1da)]===_0x20ad2c(0x253)&&this[_0x20ad2c(0x1e8)]===_0x4b0354[_0x20ad2c(0x237)]['memberID']){const _0x22b7b6=_0x1db3a1(_0x4b0354[_0x20ad2c(0x237)])[_0x20ad2c(0x20d)][_0x20ad2c(0x21e)]()[_0x20ad2c(0x230)](_0x41a9c3=>_0x41a9c3['id']===_0x288a71['id']);if(_0x22b7b6){const _0x2e5be3=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1eb)],_0xd40381=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1fd)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x411a50['id'],{'unitId':_0x2e5be3,'subUnitId':_0xd40381},{'fromCollab':!0x0});});}}}[_0x2c17bd(0x227)](){const _0xe68353=_0x2c17bd;this[_0xe68353(0x204)][_0xe68353(0x270)](_0xe68353(0x20f));const _0x1a9045=new Map(),_0x22dea8=this[_0xe68353(0x264)]=new _0x4a90c4();_0x22dea8[_0xe68353(0x255)](_0x1aa50a(()=>{const _0x8cb478=_0xe68353;_0x1a9045[_0x8cb478(0x252)](_0x56aa2e=>_0x56aa2e[_0x8cb478(0x1d9)]()),_0x1a9045[_0x8cb478(0x1ea)]();})),_0x22dea8[_0xe68353(0x255)](this[_0xe68353(0x238)]['onCommandExecuted'](_0x49a0a8=>{const _0x4f78af=_0xe68353;var _0x7947c;if(_0x49a0a8[_0x4f78af(0x228)]!==_0x4010de['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x49a0a8['id']))return;const {id:_0x59e605}=_0x49a0a8;let _0x14ad6a;_0x1a9045['has'](_0x59e605)?_0x14ad6a=_0x1a9045['get'](_0x59e605):(_0x14ad6a=new _0x517350(),_0x1a9045['set'](_0x59e605,_0x14ad6a),_0x14ad6a[_0x4f78af(0x1f6)](_0x3d7821((_0x7947c=this['_configService']['getConfig'](Ce))!=null?_0x7947c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1ebcd3=>{const _0x35dfa8=_0x4f78af;this[_0x35dfa8(0x26d)][_0x35dfa8(0x1f4)]({'eventID':_0x51a117[_0x35dfa8(0x240)],'data':{'unitID':this[_0x35dfa8(0x202)],'operations':{[_0x1ebcd3['id']]:{'id':_0x1ebcd3['id'],'params':JSON[_0x35dfa8(0x1d6)](_0x1ebcd3[_0x35dfa8(0x1e9)])}}}},this[_0x35dfa8(0x202)]);})),_0x14ad6a[_0x4f78af(0x270)](_0x49a0a8);})),this[_0xe68353(0x236)][_0xe68353(0x257)](this[_0xe68353(0x202)])[_0xe68353(0x252)](_0x525933=>this[_0xe68353(0x26d)]['send']({'eventID':_0x51a117[_0xe68353(0x240)],'data':{'unitID':this[_0xe68353(0x202)],'operations':{[_0x525933['id']]:{'id':_0x525933['id'],'params':JSON[_0xe68353(0x1d6)](_0x525933[_0xe68353(0x1e9)])}}}},this[_0xe68353(0x202)]));}['_stopPresenting'](){const _0x1d9168=_0x2c17bd;var _0x24528a;this[_0x1d9168(0x204)]['next'](_0x1d9168(0x201)),(_0x24528a=this[_0x1d9168(0x264)])==null||_0x24528a[_0x1d9168(0x241)](),this[_0x1d9168(0x264)]=null;}[_0x2c17bd(0x224)](){const _0x3f915e=_0x2c17bd;var _0x61c514;(_0x61c514=this[_0x3f915e(0x264)])==null||_0x61c514['dispose'](),this['_status$'][_0x3f915e(0x270)]('following');}[_0x2c17bd(0x233)](){const _0x2c2b0b=_0x2c17bd;var _0x39c84b;this['_status$']['next'](_0x2c2b0b(0x201)),(_0x39c84b=this[_0x2c2b0b(0x264)])==null||_0x39c84b[_0x2c2b0b(0x241)](),this[_0x2c2b0b(0x264)]=null;}[_0x2c17bd(0x1e4)](){const _0x573324=_0x2c17bd;var _0x1b4944;this[_0x573324(0x204)][_0x573324(0x270)](_0x573324(0x212)),(_0x1b4944=this[_0x573324(0x264)])==null||_0x1b4944[_0x573324(0x241)]();}[_0x2c17bd(0x215)](_0x1e99cb){const _0x1cf79c=_0x2c17bd;if([_0x1cf79c(0x20f),_0x1cf79c(0x212),_0x1cf79c(0x261)][_0x1cf79c(0x213)](this[_0x1cf79c(0x1da)])||!_0x1e99cb[_0x1cf79c(0x237)]['presenter']||_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x24b)]===this['_collabSession']['getMemberID']())return;this[_0x1cf79c(0x1da)]==='idle'&&this[_0x1cf79c(0x224)]();const _0x7cb88f=_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x20b)];Object[_0x1cf79c(0x25b)](_0x7cb88f)[_0x1cf79c(0x252)](_0xb6fb73=>{const _0x50a750=_0x1cf79c;this[_0x50a750(0x238)][_0x50a750(0x1e6)](_0xb6fb73['id'],_0xb6fb73[_0x50a750(0x1e9)]?JSON[_0x50a750(0x234)](_0xb6fb73[_0x50a750(0x1e9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x41055d=_0x2c17bd;var _0x1c4063;this[_0x41055d(0x204)][_0x41055d(0x270)](_0x41055d(0x261)),(_0x1c4063=this[_0x41055d(0x264)])==null||_0x1c4063['dispose']();}[_0x2c17bd(0x269)](){const _0x5ba351=_0x2c17bd;this['_status$'][_0x5ba351(0x270)](_0x5ba351(0x201)),this[_0x5ba351(0x256)]();}};N=Y([_(0x2,_0x45ac9b),_(0x3,_0xb91b10(L)),_(0x4,_0x147916)],N);function Le(){const _0x18e79c=_0x2c17bd,_0x1dd162=_0x1bfba8(S),_0x4a51aa=_0x1bfba8(_0x9a2b99),_0x1cd3f6=_0x206e01(()=>_0x4a51aa[_0x18e79c(0x1f2)](_0x45889c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3a132f,_0x30e72d]=_0x14fd36(null),[_0x3c8a80,_0x39aeef]=_0x14fd36(c[_0x18e79c(0x26c)]),_0x5d719f=_0x470657(null);return _0x23e84d(()=>(_0x1cd3f6&&_0x1dd162[_0x18e79c(0x1ed)](_0x1cd3f6[_0x18e79c(0x274)]())['then'](_0x512a61=>{const _0x193bf1=_0x18e79c;_0x30e72d(_0x512a61),_0x5d719f[_0x193bf1(0x272)]=_0x512a61[_0x193bf1(0x1d2)][_0x193bf1(0x232)](_0xaa4c7b=>{_0x39aeef(_0xaa4c7b);});}),()=>{const _0xbe3200=_0x18e79c;var _0x6f1578;(_0x6f1578=_0x5d719f[_0xbe3200(0x272)])==null||_0x6f1578['unsubscribe'](),_0x5d719f[_0xbe3200(0x272)]=null;}),[_0x1cd3f6,_0x1dd162]),_0x3a132f?_0x76a09b(_0x39b390,{'align':_0x18e79c(0x22c),'disabled':_0x3c8a80===c[_0x18e79c(0x1ef)],'className':_0x18e79c(0x221),'overlay':_0x76a09b(Re,{'status':_0x3c8a80,'coordinator':_0x3a132f}),'children':_0x76a09b('button',{'className':_0x3e4a67('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c8a80===c[_0x18e79c(0x1ef)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c8a80!==c['OFFLINE']}),'type':_0x18e79c(0x254),'children':_0x76a09b(W,{'className':_0x18e79c(0x222)})})}):null;}function Re(_0x3a55a0){const _0x45fef2=_0x2c17bd,{status:_0x32baff,coordinator:_0x53e42a}=_0x3a55a0;switch(_0x32baff){case c[_0x45fef2(0x26c)]:return _0x76a09b($e,{'coordinator':_0x53e42a});case c[_0x45fef2(0x258)]:return _0x76a09b(xe,{'coordinator':_0x53e42a});case c['NOT_FOLLOWING']:return _0x76a09b(Pe,{'coordinator':_0x53e42a});case c['OFFLINE']:return _0x76a09b(Te,{});case c[_0x45fef2(0x22f)]:return _0x76a09b(Ae,{'coordinator':_0x53e42a});default:return null;}}function $e(_0x50a119){const _0x17f16b=_0x2c17bd,{coordinator:_0x4dd261}=_0x50a119;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x17f16b(0x21f),{'className':_0x17f16b(0x1db),'children':_0x17f16b(0x21a)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x4dd261[_0x17f16b(0x209)](),'children':'Start'})]});}function xe(_0x3e1b1a){const _0x48b8e3=_0x2c17bd,{coordinator:_0x1b8c91}=_0x3e1b1a;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b('div',{'className':_0x48b8e3(0x1db),'children':_0x48b8e3(0x259)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x1b8c91[_0x48b8e3(0x1f3)](),'children':_0x48b8e3(0x223)})]});}function Pe(_0x182e79){const _0x173f14=_0x2c17bd,{coordinator:_0x4b774b}=_0x182e79;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x173f14(0x21f),{'className':_0x173f14(0x1db),'children':_0x173f14(0x245)}),_0x76a09b(_0x2cafee,{'variant':_0x173f14(0x200),'onClick':()=>_0x4b774b[_0x173f14(0x1fc)](),'children':'Start\x20following'})]});}function Ae(_0x214adf){const _0x2cf4c8=_0x2c17bd,{coordinator:_0x2ef842}=_0x214adf;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x2cf4c8(0x21f),{'className':_0x2cf4c8(0x1db),'children':_0x2cf4c8(0x242)}),_0x76a09b(_0x2cafee,{'variant':_0x2cf4c8(0x250),'onClick':()=>_0x2ef842[_0x2cf4c8(0x1f0)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a7d3b=_0x2c17bd;return _0x76a09b(_0x1c44c8,{'children':_0x1a7d3b(0x24c)});}var Fe=Object[_0x2c17bd(0x214)],He=(_0x1bb9b2,_0x5b183a,_0x2c02d7,_0x19aaed)=>{const _0x44d7bb=_0x2c17bd;for(var _0x38898e=_0x19aaed>0x1?void 0x0:_0x19aaed?Fe(_0x5b183a,_0x2c02d7):_0x5b183a,_0x16e70c=_0x1bb9b2[_0x44d7bb(0x225)]-0x1,_0x2d18c0;_0x16e70c>=0x0;_0x16e70c--)(_0x2d18c0=_0x1bb9b2[_0x16e70c])&&(_0x38898e=_0x2d18c0(_0x38898e)||_0x38898e);return _0x38898e;},A=(_0x5d6fbc,_0x537193)=>(_0x114252,_0x52e674)=>_0x537193(_0x114252,_0x52e674,_0x5d6fbc);let m=class extends _0x340cc7{constructor(_0x339511,_0x36757c){const _0x26e2ce=_0x2c17bd;super(),this[_0x26e2ce(0x1d8)]=_0x339511,this['_uiPartsService']=_0x36757c,this[_0x26e2ce(0x262)]();}[_0x2c17bd(0x262)](){const _0x4207e1=_0x2c17bd;this['disposeWithMe'](this[_0x4207e1(0x21b)][_0x4207e1(0x263)](_0x1bd2e1['HEADER_MENU'],()=>_0x33bb9e(Le,this['_injector'])));}};function _0x6dcd(_0x4e732e,_0xc26307){const _0xae527a=_0xae52();return _0x6dcd=function(_0x6dcde7,_0x39503b){_0x6dcde7=_0x6dcde7-0x1d1;let _0x4315be=_0xae527a[_0x6dcde7];return _0x4315be;},_0x6dcd(_0x4e732e,_0xc26307);}m=He([A(0x0,_0xb91b10(_0x13efe5)),A(0x1,_0x2066c5)],m);const ye=_0x2c17bd(0x235),T={};function _0xae52(){const _0x40ee8b=['_commandService','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','requireSession','displayName','get','idSuffix','onStarting','LIVESHARE_OPERATION','dispose','You\x27re\x20presenting\x20the\x20document','children','override','You\x27re\x20not\x20following\x20the\x20presenter','778388HjjhZk','UNIVER_UNKNOWN','registerInitialStateReporter','univerjs-icon\x20univerjs-icon-','xlink:href','presenter','You\x27are\x20offline.','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','default','defineProperty','forEach','following','button','add','_fetchOperations','getInitialStates','FOLLOWING','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','values','_startLiveShareCoordinator','ONLINE','string','http://www.w3.org/2000/svg','getValue','offline','_mountLiveShare','registerComponent','_commandDisposable','substring','4IaNogR','getLiveShareCoordinatorSync','colorChannel1','_handleOnline','from','_handleTerminate','IDLE','_collabSession','asObservable','sessionStatus$','next','1em','current','tag','getUnitId','use','set','status$','symbol','4297007InuhqR','toString','stringify','delete','_injector','complete','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','18nIahkE','UNIVER_SHEET','getTypeOfUnitDisposed$','entries','_init','dispose$','_entities','_stopFollowing','280PuBcim','executeCommand','302898cZIFaY','_presenter','params','clear','unitId','getStatus','getLiveShareCoordinator','currentColor','OFFLINE','stopPresenting','url(#$1','getCurrentTypeOfUnit$','stopFollowing','send','attrs','pipe','176396MgLtAD','replace','_config','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_REQUEST_HOST','startFollowing','sheet','475990AnLsXP','463080ilZrEI','text','idle','_unitID','shouldShareOperation','_status$','_reporters','_stopPresenting','_handleNewChangeSets','event$','tryStartPresenting','_univerInstanceService','operations','evenodd','mutations','registerSharedOperation','presenting','mask','LiveShareIcon','not-following','includes','getOwnPropertyDescriptor','_handleOperation','init','fill','5SHPAQV','path','Present\x20this\x20document','_uiPartsService','29244SHabli','defIds','reverse','div','_configService','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','univer-size-4','Stop\x20following','_startFollowing','length','defs','_startPresenting','type','setConfig','has','_collabSessionService','end','map','trim','PRESENTING','find','NEW_CHANGESETS','subscribe','_beIdle','parse','live-share.config','_liveShareService','data'];_0xae52=function(){return _0x40ee8b;};return _0xae52();}var Ue=Object[_0x2c17bd(0x214)],Ve=(_0x217ad0,_0x224ef1,_0x34314d,_0x7bd26a)=>{for(var _0x137332=_0x7bd26a>0x1?void 0x0:_0x7bd26a?Ue(_0x224ef1,_0x34314d):_0x224ef1,_0x33d2fe=_0x217ad0['length']-0x1,_0x29934a;_0x33d2fe>=0x0;_0x33d2fe--)(_0x29934a=_0x217ad0[_0x33d2fe])&&(_0x137332=_0x29934a(_0x137332)||_0x137332);return _0x137332;},je=(_0x4c8e1e,_0xcf5ea2)=>(_0x5df688,_0x35e3c5)=>_0xcf5ea2(_0x5df688,_0x35e3c5,_0x4c8e1e);let I=class extends _0x340cc7{constructor(_0x2b07e9){const _0x3e2627=_0x2c17bd;super(),this['_liveShareService']=_0x2b07e9,this[_0x3e2627(0x1e1)]();}['_init'](){const _0x199b69=_0x2c17bd;[_0x3270d8['id'],_0x552a0c['id'],_0x411a50['id']][_0x199b69(0x252)](_0xe6353c=>{const _0x4b0121=_0x199b69;this['disposeWithMe'](this[_0x4b0121(0x236)]['registerSharedOperation'](_0xe6353c));});}};I=Ve([je(0x0,_0xb91b10(L))],I);var Me=Object[_0x2c17bd(0x251)],ke=Object[_0x2c17bd(0x214)],Ge=(_0x2c8443,_0x481ed6,_0x435fe3)=>_0x481ed6 in _0x2c8443?Me(_0x2c8443,_0x481ed6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435fe3}):_0x2c8443[_0x481ed6]=_0x435fe3,We=(_0x46b691,_0xee6291,_0x3cab60,_0x4e6182)=>{const _0x255d72=_0x2c17bd;for(var _0x91af07=_0x4e6182>0x1?void 0x0:_0x4e6182?ke(_0xee6291,_0x3cab60):_0xee6291,_0x7391f2=_0x46b691[_0x255d72(0x225)]-0x1,_0x5944a1;_0x7391f2>=0x0;_0x7391f2--)(_0x5944a1=_0x46b691[_0x7391f2])&&(_0x91af07=_0x5944a1(_0x91af07)||_0x91af07);return _0x91af07;},F=(_0x4043e1,_0x31c920)=>(_0x489a54,_0x290d7e)=>_0x31c920(_0x489a54,_0x290d7e,_0x4043e1),B=(_0x3c6a58,_0x5e6dde,_0x41706a)=>Ge(_0x3c6a58,typeof _0x5e6dde!=_0x2c17bd(0x1d3)?_0x5e6dde+'':_0x5e6dde,_0x41706a);const Ye=_0x2c17bd(0x23a);let b=class extends _0x24270d{constructor(_0x20754a=T,_0x5f3d9b,_0x25e57d){const _0x15807a=_0x2c17bd;super(),this[_0x15807a(0x1f9)]=_0x20754a,this[_0x15807a(0x1d8)]=_0x5f3d9b,this[_0x15807a(0x220)]=_0x25e57d;const {..._0x40acd5}=_0x51df76({},T,this[_0x15807a(0x1f9)]);this[_0x15807a(0x220)][_0x15807a(0x229)](ye,_0x40acd5);}[_0x2c17bd(0x23f)](){const _0x1064ca=_0x2c17bd;_0x312d92(this[_0x1064ca(0x1d8)],_0x43af49([[L],[S],[I],[m]],this[_0x1064ca(0x1f9)][_0x1064ca(0x244)])),_0x5199da(this[_0x1064ca(0x1d8)],[[I]]);}['onRendered'](){const _0x37eac9=_0x2c17bd;_0x5199da(this[_0x37eac9(0x1d8)],[[m]]);}};B(b,'type',_0x45889c[_0x2c17bd(0x247)]),B(b,'pluginName',Ye),b=We([_0x1c6ccb(_0x172e42),F(0x1,_0xb91b10(_0x13efe5)),F(0x2,_0x45ac9b)],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 _0x35d540=_0x8ed9;function _0x8ed9(_0x18e553,_0x40c48c){const _0x45b37e=_0x45b3();return _0x8ed9=function(_0x8ed973,_0x5a1839){_0x8ed973=_0x8ed973-0x74;let _0x442873=_0x45b37e[_0x8ed973];return _0x442873;},_0x8ed9(_0x18e553,_0x40c48c);}(function(_0x3baa97,_0x230a0f){const _0x476629=_0x8ed9,_0x596a6a=_0x3baa97();while(!![]){try{const _0x5f3735=-parseInt(_0x476629(0x81))/0x1*(parseInt(_0x476629(0x8e))/0x2)+parseInt(_0x476629(0x8b))/0x3+-parseInt(_0x476629(0x80))/0x4*(parseInt(_0x476629(0x8a))/0x5)+-parseInt(_0x476629(0x74))/0x6*(-parseInt(_0x476629(0x86))/0x7)+-parseInt(_0x476629(0x85))/0x8+-parseInt(_0x476629(0x7b))/0x9+parseInt(_0x476629(0x78))/0xa;if(_0x5f3735===_0x230a0f)break;else _0x596a6a['push'](_0x596a6a['shift']());}catch(_0x511684){_0x596a6a['push'](_0x596a6a['shift']());}}}(_0x45b3,0xcab61));import{LiveShareController as _0x56f255,LiveShareStatus as _0x2d291f}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x19b6ba}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4c8332}from'@univerjs/sheets';function _0x45b3(){const _0x35a370=['getStatus','getActiveWorkbook','157566sPSDEQ','getId','_injector','No\x20active\x20workbook\x20found.','_initialize','PRESENTING','stopFollowing','66aSiJgO','getLiveShareCoordinatorSync','get','getActiveSheet','34356490OGavfO','executeCommand','getSheetId','8002665hBfmzV','startFollowing','syncExecuteCommand','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','4PBkpGP','1cXgPVO','startColumn','getUnitId','startRow','4959400MqBjkZ','17647zUuuAy','extend','getLiveShareStatus','_commandService','5739235qNQadL','307995UwCsPZ'];_0x45b3=function(){return _0x35a370;};return _0x45b3();}import{SetScrollOperation as _0x569b43}from'@univerjs/sheets-ui';import{FRange as _0x18699d}from'@univerjs/sheets/facade';import{FUniver as _0x54bc5e,FEnum as _0x50b179}from'@univerjs/core/facade';class I extends _0x18699d{[_0x35d540(0x92)](_0x32eb68,_0x3b3e60,_0x3b9778,_0x17a405,_0x3ab682){const _0xe000e6=_0x35d540,_0x59ad5c=_0x32eb68[_0xe000e6(0x76)](_0x56f255),_0x1a26d5=_0x32eb68['get'](_0x19b6ba),_0x237f4d=_0x3b3e60[_0xe000e6(0x83)](),_0x3eab62=_0x3b3e60[_0xe000e6(0x77)](),_0x1aa3d=_0x59ad5c['getLiveShareCoordinatorSync'](_0x237f4d);(_0x1aa3d==null?void 0x0:_0x1aa3d['getStatus']())!==_0x2d291f[_0xe000e6(0x93)]||(_0x3b9778[_0xe000e6(0x7a)]()!==_0x3eab62[_0xe000e6(0x7a)]()&&this[_0xe000e6(0x89)][_0xe000e6(0x79)](_0x4c8332['id'],{'unitId':_0x237f4d,'subUnitId':_0x3b9778[_0xe000e6(0x7a)]()}),!_0x1a26d5['getRenderById'](_0x237f4d))||_0x3ab682[_0xe000e6(0x7d)](_0x569b43['id'],{'unitId':_0x3b3e60[_0xe000e6(0x83)](),'sheetId':_0x3b9778[_0xe000e6(0x7a)](),'sheetViewStartRow':_0x17a405[_0xe000e6(0x84)],'sheetViewStartColumn':_0x17a405[_0xe000e6(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x18699d[_0x35d540(0x87)](I);class m extends _0x54bc5e{[_0x35d540(0x88)](){const _0x453c27=_0x35d540;var _0x565b0d,_0x40aafc;const _0x2c62c8=this[_0x453c27(0x90)]['get'](_0x56f255),_0x573131=(_0x565b0d=this[_0x453c27(0x8d)]())==null?void 0x0:_0x565b0d[_0x453c27(0x8f)]();if(!_0x573131)throw new Error(_0x453c27(0x91));const _0x44e31c=_0x2c62c8['getLiveShareCoordinatorSync'](_0x573131);return(_0x40aafc=_0x44e31c==null?void 0x0:_0x44e31c[_0x453c27(0x8c)]())!=null?_0x40aafc:_0x2d291f['IDLE'];}['startFollowing'](){const _0x1a8429=_0x35d540;var _0x137ffe;const _0x203ae0=this['_injector'][_0x1a8429(0x76)](_0x56f255),_0x2b04b2=(_0x137ffe=this[_0x1a8429(0x8d)]())==null?void 0x0:_0x137ffe[_0x1a8429(0x8f)]();if(!_0x2b04b2)throw new Error(_0x1a8429(0x91));const _0x1f9858=_0x203ae0[_0x1a8429(0x75)](_0x2b04b2);if(!_0x1f9858)throw new Error(_0x1a8429(0x7f));_0x1f9858[_0x1a8429(0x7c)]();}[_0x35d540(0x94)](){const _0x250e48=_0x35d540;var _0x2c6085;const _0x1d38fd=this[_0x250e48(0x90)][_0x250e48(0x76)](_0x56f255),_0x2f6536=(_0x2c6085=this[_0x250e48(0x8d)]())==null?void 0x0:_0x2c6085[_0x250e48(0x8f)]();if(!_0x2f6536)throw new Error('No\x20active\x20workbook\x20found.');const _0x537df3=_0x1d38fd[_0x250e48(0x75)](_0x2f6536);if(!_0x537df3)throw new Error(_0x250e48(0x7f));_0x537df3[_0x250e48(0x94)]();}['startPresenting'](){const _0x2329c6=_0x35d540;var _0x540ce1;const _0x5b17b0=this[_0x2329c6(0x90)][_0x2329c6(0x76)](_0x56f255),_0x259973=(_0x540ce1=this[_0x2329c6(0x8d)]())==null?void 0x0:_0x540ce1['getId']();if(!_0x259973)throw new Error('No\x20active\x20workbook\x20found.');const _0x13c037=_0x5b17b0[_0x2329c6(0x75)](_0x259973);if(!_0x13c037)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13c037['tryStartPresenting']();}[_0x35d540(0x7e)](){const _0x3724ba=_0x35d540;var _0x57901f;const _0x8aa731=this[_0x3724ba(0x90)]['get'](_0x56f255),_0x5c5031=(_0x57901f=this[_0x3724ba(0x8d)]())==null?void 0x0:_0x57901f[_0x3724ba(0x8f)]();if(!_0x5c5031)throw new Error(_0x3724ba(0x91));const _0x650a5a=_0x8aa731[_0x3724ba(0x75)](_0x5c5031);if(!_0x650a5a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x650a5a[_0x3724ba(0x7e)]();}}_0x54bc5e[_0x35d540(0x87)](m);class C extends _0x50b179{get['LiveShareStatusEnum'](){return _0x2d291f;}}_0x50b179['extend'](C);
1
+ function _0x1c49(_0x35a73c,_0x3d7167){const _0x39957d=_0x3995();return _0x1c49=function(_0x1c49c7,_0x338363){_0x1c49c7=_0x1c49c7-0xb8;let _0x11c51a=_0x39957d[_0x1c49c7];return _0x11c51a;},_0x1c49(_0x35a73c,_0x3d7167);}const _0x385ee5=_0x1c49;(function(_0x5c8676,_0x1bfe50){const _0x31c4ad=_0x1c49,_0x3dc571=_0x5c8676();while(!![]){try{const _0x4893a7=-parseInt(_0x31c4ad(0xc6))/0x1*(-parseInt(_0x31c4ad(0xce))/0x2)+-parseInt(_0x31c4ad(0xd1))/0x3*(-parseInt(_0x31c4ad(0xbd))/0x4)+-parseInt(_0x31c4ad(0xc9))/0x5*(parseInt(_0x31c4ad(0xd6))/0x6)+parseInt(_0x31c4ad(0xc2))/0x7*(-parseInt(_0x31c4ad(0xd0))/0x8)+-parseInt(_0x31c4ad(0xb9))/0x9*(parseInt(_0x31c4ad(0xc0))/0xa)+parseInt(_0x31c4ad(0xd4))/0xb+parseInt(_0x31c4ad(0xd7))/0xc;if(_0x4893a7===_0x1bfe50)break;else _0x3dc571['push'](_0x3dc571['shift']());}catch(_0x42ea04){_0x3dc571['push'](_0x3dc571['shift']());}}}(_0x3995,0xcca92));import{LiveShareController as _0x3c4784,LiveShareStatus as _0x28e52a}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x117b23}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x9893b1}from'@univerjs/sheets';import{SetScrollOperation as _0x35c931}from'@univerjs/sheets-ui';import{FRange as _0x2e72a3}from'@univerjs/sheets/facade';function _0x3995(){const _0x49b7a7=['48WxRdOK','3gqcnzB','getUnitId','No\x20active\x20workbook\x20found.','1716594YFeIpn','get','208122lnTlNn','3980124fLhzXk','getRenderById','startPresenting','9kRlIuD','stopFollowing','getId','getLiveShareCoordinatorSync','4596932BDJhhk','_injector','getSheetId','6123710xXuAPh','_commandService','1113119KRczoE','startFollowing','_initialize','stopPresenting','21dCigQf','getActiveWorkbook','extend','60EYtiHh','syncExecuteCommand','getStatus','getActiveSheet','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','112766vzdusu','PRESENTING'];_0x3995=function(){return _0x49b7a7;};return _0x3995();}import{FUniver as _0x570aa0,FEnum as _0x479bf3}from'@univerjs/core/facade';class I extends _0x2e72a3{[_0x385ee5(0xc4)](_0x10aeed,_0x49c341,_0x2bbaa6,_0x3e0d01,_0x2fe5be){const _0x452a81=_0x385ee5,_0x2854ee=_0x10aeed['get'](_0x3c4784),_0x4f8dc3=_0x10aeed[_0x452a81(0xd5)](_0x117b23),_0x30ad2f=_0x49c341['getUnitId'](),_0x45cfe7=_0x49c341[_0x452a81(0xcc)](),_0x29e214=_0x2854ee[_0x452a81(0xbc)](_0x30ad2f);(_0x29e214==null?void 0x0:_0x29e214[_0x452a81(0xcb)]())!==_0x28e52a[_0x452a81(0xcf)]||(_0x2bbaa6['getSheetId']()!==_0x45cfe7[_0x452a81(0xbf)]()&&this[_0x452a81(0xc1)]['executeCommand'](_0x9893b1['id'],{'unitId':_0x30ad2f,'subUnitId':_0x2bbaa6['getSheetId']()}),!_0x4f8dc3[_0x452a81(0xd8)](_0x30ad2f))||_0x2fe5be[_0x452a81(0xca)](_0x35c931['id'],{'unitId':_0x49c341[_0x452a81(0xd2)](),'sheetId':_0x2bbaa6[_0x452a81(0xbf)](),'sheetViewStartRow':_0x3e0d01['startRow'],'sheetViewStartColumn':_0x3e0d01['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2e72a3[_0x385ee5(0xc8)](I);class m extends _0x570aa0{['getLiveShareStatus'](){const _0x11a0f6=_0x385ee5;var _0x59bc77,_0x241738;const _0x427b2d=this[_0x11a0f6(0xbe)][_0x11a0f6(0xd5)](_0x3c4784),_0xb4a6fd=(_0x59bc77=this[_0x11a0f6(0xc7)]())==null?void 0x0:_0x59bc77[_0x11a0f6(0xbb)]();if(!_0xb4a6fd)throw new Error(_0x11a0f6(0xd3));const _0x17fbb4=_0x427b2d[_0x11a0f6(0xbc)](_0xb4a6fd);return(_0x241738=_0x17fbb4==null?void 0x0:_0x17fbb4[_0x11a0f6(0xcb)]())!=null?_0x241738:_0x28e52a['IDLE'];}[_0x385ee5(0xc3)](){const _0x16c878=_0x385ee5;var _0x45f675;const _0x2c004d=this[_0x16c878(0xbe)][_0x16c878(0xd5)](_0x3c4784),_0x5cbc0e=(_0x45f675=this['getActiveWorkbook']())==null?void 0x0:_0x45f675[_0x16c878(0xbb)]();if(!_0x5cbc0e)throw new Error('No\x20active\x20workbook\x20found.');const _0x2d0c35=_0x2c004d['getLiveShareCoordinatorSync'](_0x5cbc0e);if(!_0x2d0c35)throw new Error(_0x16c878(0xcd));_0x2d0c35[_0x16c878(0xc3)]();}[_0x385ee5(0xba)](){const _0x30b557=_0x385ee5;var _0xbf38e8;const _0x5d4c5e=this[_0x30b557(0xbe)][_0x30b557(0xd5)](_0x3c4784),_0x223473=(_0xbf38e8=this[_0x30b557(0xc7)]())==null?void 0x0:_0xbf38e8[_0x30b557(0xbb)]();if(!_0x223473)throw new Error(_0x30b557(0xd3));const _0x60664c=_0x5d4c5e['getLiveShareCoordinatorSync'](_0x223473);if(!_0x60664c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x60664c[_0x30b557(0xba)]();}[_0x385ee5(0xb8)](){const _0x286b3c=_0x385ee5;var _0x101f7e;const _0x38ed9e=this['_injector'][_0x286b3c(0xd5)](_0x3c4784),_0x5bba9f=(_0x101f7e=this['getActiveWorkbook']())==null?void 0x0:_0x101f7e[_0x286b3c(0xbb)]();if(!_0x5bba9f)throw new Error(_0x286b3c(0xd3));const _0x13a25e=_0x38ed9e[_0x286b3c(0xbc)](_0x5bba9f);if(!_0x13a25e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x13a25e['tryStartPresenting']();}[_0x385ee5(0xc5)](){const _0x7727a8=_0x385ee5;var _0x3290a3;const _0x30ea03=this['_injector'][_0x7727a8(0xd5)](_0x3c4784),_0x5f590f=(_0x3290a3=this[_0x7727a8(0xc7)]())==null?void 0x0:_0x3290a3[_0x7727a8(0xbb)]();if(!_0x5f590f)throw new Error(_0x7727a8(0xd3));const _0x36df00=_0x30ea03[_0x7727a8(0xbc)](_0x5f590f);if(!_0x36df00)throw new Error(_0x7727a8(0xcd));_0x36df00['stopPresenting']();}}_0x570aa0['extend'](m);class C extends _0x479bf3{get['LiveShareStatusEnum'](){return _0x28e52a;}}_0x479bf3['extend'](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ff471=_0x7fae;(function(_0x67af08,_0x235412){const _0x359b7c=_0x7fae,_0x47dddf=_0x67af08();while(!![]){try{const _0x30b74c=-parseInt(_0x359b7c(0x23b))/0x1*(-parseInt(_0x359b7c(0x209))/0x2)+-parseInt(_0x359b7c(0x1c2))/0x3*(parseInt(_0x359b7c(0x1d9))/0x4)+parseInt(_0x359b7c(0x248))/0x5*(-parseInt(_0x359b7c(0x1cc))/0x6)+parseInt(_0x359b7c(0x20b))/0x7+-parseInt(_0x359b7c(0x21b))/0x8+-parseInt(_0x359b7c(0x1dd))/0x9+parseInt(_0x359b7c(0x1e9))/0xa;if(_0x30b74c===_0x235412)break;else _0x47dddf['push'](_0x47dddf['shift']());}catch(_0x41425f){_0x47dddf['push'](_0x47dddf['shift']());}}}(_0x5570,0xb8c28));var J=Object[_0x1ff471(0x240)],K=(_0x2bd2c8,_0x35c835,_0x534633)=>_0x35c835 in _0x2bd2c8?J(_0x2bd2c8,_0x35c835,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534633}):_0x2bd2c8[_0x35c835]=_0x534633,u=(_0x48cfe1,_0xde295,_0x4bdd67)=>K(_0x48cfe1,typeof _0xde295!=_0x1ff471(0x1d4)?_0xde295+'':_0xde295,_0x4bdd67);import{Disposable as _0x5efc82,toDisposable as _0x40b029,IUniverInstanceService as _0x407f4a,Inject as _0x530cef,Injector as _0x342037,IConfigService as _0x495339,ICommandService as _0x244e30,RxDisposable as _0x27b7ba,UniverInstanceType as _0x391209,DisposableCollection as _0x4ea11a,CommandType as _0x3c20aa,DependentOn as _0x148bca,Plugin as _0x41c584,merge as _0x2c2112,registerDependencies as _0x5a0d1b,mergeOverrideWithDependencies as _0x5a4f61,touchDependencies as _0x2d8b65}from'@univerjs/core';import{useDependency as _0x11f1e0,useObservable as _0x1e059b,IUIPartsService as _0x5b30b3,BuiltInUIPart as _0x25f8f5,connectInjector as _0x33fbbf}from'@univerjs/ui';import{jsx as _0x44ff08,jsxs as _0xdeaf32,Fragment as _0x47942b}from'react/jsx-runtime';import{Dropdown as _0x21ed3d,clsx as _0x70919e,Button as _0x4f7539}from'@univerjs/design';import{useRef as _0x4576d0,createElement as _0x241ac0,forwardRef as _0x197dd8,useState as _0x155574,useEffect as _0x5bfbc0}from'react';import{CollaborationEvent as _0xb1447,parseProtocolChangeset as _0x331d5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x57c410,SessionStatus as _0x2ea114,UniverCollaborationClientPlugin as _0x18c6f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x38f5e0,SetWorksheetActiveOperation as _0x5c8388}from'@univerjs/sheets';import{BehaviorSubject as _0x3757b0,Subject as _0x5667a6}from'rxjs';import{takeUntil as _0x1eb310,throttleTime as _0x193b30}from'rxjs/operators';import{SetZoomRatioOperation as _0x55628f,SetScrollOperation as _0x3efdd7}from'@univerjs/sheets-ui';function k({ref:_0x54d3c3,..._0x588c5f}){const _0x442a32=_0x1ff471,{icon:_0x3a593f,id:_0x52a812,className:_0x2b9ded,extend:_0x5d9e52,..._0xc787dc}=_0x588c5f,_0x302977=(_0x442a32(0x1db)+_0x52a812+'\x20'+(_0x2b9ded||''))[_0x442a32(0x1f3)](),_0x2773f6=_0x4576d0('_'+Oe());return G(_0x3a593f,''+_0x52a812,{'defIds':_0x3a593f[_0x442a32(0x1be)],'idSuffix':_0x2773f6[_0x442a32(0x1fc)]},{'ref':_0x54d3c3,'className':_0x302977,..._0xc787dc},_0x5d9e52);}function G(_0x26cd31,_0x51c6a2,_0x103abe,_0x974482,_0x4d40f3){const _0x16ef69=_0x1ff471;return _0x241ac0(_0x26cd31['tag'],{'key':_0x51c6a2,...be(_0x26cd31,_0x103abe,_0x4d40f3),..._0x974482},(Ee(_0x26cd31,_0x103abe)[_0x16ef69(0x1e8)]||[])['map']((_0x3decb9,_0xcda044)=>G(_0x3decb9,_0x51c6a2+'-'+_0x26cd31['tag']+'-'+_0xcda044,_0x103abe,void 0x0,_0x4d40f3)));}function be(_0x2f444c,_0x13f485,_0x51387c){const _0x17eb68=_0x1ff471,_0x324824={..._0x2f444c[_0x17eb68(0x1b3)]};_0x51387c!=null&&_0x51387c[_0x17eb68(0x1a9)]&&_0x324824[_0x17eb68(0x238)]===_0x17eb68(0x1a9)&&(_0x324824[_0x17eb68(0x238)]=_0x51387c[_0x17eb68(0x1a9)]),_0x2f444c[_0x17eb68(0x213)]==='mask'&&_0x324824['id']&&(_0x324824['id']=_0x324824['id']+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x5ddc4a,_0x4f10f4])=>{const _0x2c57c8=_0x17eb68;_0x5ddc4a==='mask'&&typeof _0x4f10f4==_0x2c57c8(0x239)&&(_0x324824[_0x5ddc4a]=_0x4f10f4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x2c57c8(0x211)]+')'));});const {defIds:_0x19bfd7}=_0x13f485;return!_0x19bfd7||_0x19bfd7[_0x17eb68(0x233)]===0x0||(_0x2f444c[_0x17eb68(0x213)]===_0x17eb68(0x223)&&_0x324824[_0x17eb68(0x1f9)]&&(_0x324824[_0x17eb68(0x1f9)]=_0x324824[_0x17eb68(0x1f9)]+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x4fbe80,_0x44586b])=>{const _0x1491e5=_0x17eb68;typeof _0x44586b==_0x1491e5(0x239)&&(_0x324824[_0x4fbe80]=_0x44586b[_0x1491e5(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x1491e5(0x211)]+')'));})),_0x324824;}function Ee(_0x40f6af,_0xe39401){const _0x16df81=_0x1ff471;var _0x304159;const {defIds:_0x53abff}=_0xe39401;return!_0x53abff||_0x53abff[_0x16df81(0x233)]===0x0?_0x40f6af:_0x40f6af[_0x16df81(0x213)]==='defs'&&((_0x304159=_0x40f6af[_0x16df81(0x1e8)])!=null&&_0x304159[_0x16df81(0x233)])?{..._0x40f6af,'children':_0x40f6af[_0x16df81(0x1e8)][_0x16df81(0x1ab)](_0x2955b0=>typeof _0x2955b0[_0x16df81(0x1b3)]['id']==_0x16df81(0x239)&&_0x53abff&&_0x53abff[_0x16df81(0x1cd)](_0x2955b0[_0x16df81(0x1b3)]['id'])?{..._0x2955b0,'attrs':{..._0x2955b0[_0x16df81(0x1b3)],'id':_0x2955b0['attrs']['id']+_0xe39401['idSuffix']}}:_0x2955b0)}:_0x40f6af;}function Oe(){const _0x3058eb=_0x1ff471;return Math[_0x3058eb(0x1ea)]()[_0x3058eb(0x1a4)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1ff471(0x20f);const we={'tag':_0x1ff471(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1ff471(0x1ca),'viewBox':_0x1ff471(0x1f2),'width':_0x1ff471(0x1c8),'height':_0x1ff471(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'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':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':_0x1ff471(0x1d3),'fillRule':_0x1ff471(0x21e),'clipRule':'evenodd'}}]},W=_0x197dd8(function(_0x1a2eaf,_0x3f0300){const _0x515e7e=_0x1ff471;return _0x241ac0(k,Object[_0x515e7e(0x1c1)]({},_0x1a2eaf,{'id':_0x515e7e(0x1c0),'ref':_0x3f0300,'icon':we}));});W['displayName']=_0x1ff471(0x1f7);class L extends _0x5efc82{constructor(){const _0x598f4d=_0x1ff471;super(...arguments),u(this,_0x598f4d(0x1fa),new Set()),u(this,'_reporters',new Set());}['registerSharedOperation'](_0x5e6e0a){const _0x36c790=_0x1ff471;return this['_sharedOperations']['add'](_0x5e6e0a),_0x40b029(()=>this['_sharedOperations'][_0x36c790(0x227)](_0x5e6e0a));}[_0x1ff471(0x1b0)](_0x1bf75a){const _0x22ed6a=_0x1ff471;return this[_0x22ed6a(0x1d2)][_0x22ed6a(0x21a)](_0x1bf75a),_0x40b029(()=>this['_reporters'][_0x22ed6a(0x227)](_0x1bf75a));}[_0x1ff471(0x1ff)](_0x30d843){const _0x444cec=_0x1ff471;return this[_0x444cec(0x1fa)][_0x444cec(0x222)](_0x30d843);}[_0x1ff471(0x1a6)](_0x26d9cd){const _0x12b772=_0x1ff471;return Array[_0x12b772(0x1a7)](this[_0x12b772(0x1d2)])[_0x12b772(0x1ab)](_0x16b419=>_0x16b419(_0x26d9cd));}}var Ne=Object[_0x1ff471(0x1c4)],Y=(_0x19fe3a,_0x147680,_0x34b2f9,_0x1d65c6)=>{const _0x302b59=_0x1ff471;for(var _0x3b5c18=_0x1d65c6>0x1?void 0x0:_0x1d65c6?Ne(_0x147680,_0x34b2f9):_0x147680,_0x4fe29e=_0x19fe3a[_0x302b59(0x233)]-0x1,_0x377afb;_0x4fe29e>=0x0;_0x4fe29e--)(_0x377afb=_0x19fe3a[_0x4fe29e])&&(_0x3b5c18=_0x377afb(_0x3b5c18)||_0x3b5c18);return _0x3b5c18;},_=(_0x346bd6,_0x42fa7c)=>(_0x3bdd66,_0x1146b9)=>_0x42fa7c(_0x3bdd66,_0x1146b9,_0x346bd6);let S=class extends _0x27b7ba{constructor(_0x570829,_0x20eb27,_0xef5d28){const _0x25f2e2=_0x1ff471;super(),u(this,_0x25f2e2(0x1e6),new Map()),(this[_0x25f2e2(0x1fd)]=_0x570829,this[_0x25f2e2(0x1ed)]=_0x20eb27,this[_0x25f2e2(0x1d7)]=_0xef5d28,this[_0x25f2e2(0x1c9)]());}async[_0x1ff471(0x22a)](_0x3ba235){const _0x1e084b=_0x1ff471;return this[_0x1e084b(0x1e6)]['has'](_0x3ba235)||await this[_0x1e084b(0x1fe)](_0x3ba235),this[_0x1e084b(0x1e6)][_0x1e084b(0x1a5)](_0x3ba235);}[_0x1ff471(0x220)](_0xc0e10c){const _0xec5ee5=_0x1ff471;var _0x1e1988;return(_0x1e1988=this[_0xec5ee5(0x1e6)][_0xec5ee5(0x1a5)](_0xc0e10c))!=null?_0x1e1988:null;}[_0x1ff471(0x1c9)](){const _0x4f2120=_0x1ff471;this[_0x4f2120(0x1fd)]['getTypeOfUnitAdded$'](_0x391209[_0x4f2120(0x234)])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](async _0x329f88=>{const _0x5f31fe=_0x4f2120,_0x4b15cf=_0x329f88[_0x5f31fe(0x212)]();this[_0x5f31fe(0x1e6)][_0x5f31fe(0x222)](_0x4b15cf)||this[_0x5f31fe(0x1fe)](_0x4b15cf);}),this[_0x4f2120(0x1fd)][_0x4f2120(0x1de)](_0x391209['UNIVER_SHEET'])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](_0x5bcc72=>{const _0xb0c83f=_0x4f2120,_0xba9db7=_0x5bcc72[_0xb0c83f(0x212)](),_0x4106f5=this[_0xb0c83f(0x1e6)]['get'](_0xba9db7);_0x4106f5==null||_0x4106f5['dispose']();});}async['_startLiveShareCoordinator'](_0x5d8ac4){const _0xeb6207=_0x1ff471,_0x5439d8=await this[_0xeb6207(0x1d7)]['requireSession'](_0x5d8ac4),_0x35d44b=this[_0xeb6207(0x1ed)][_0xeb6207(0x1e2)](N,_0x5d8ac4,_0x5439d8);return _0x35d44b['init'](),this[_0xeb6207(0x1e6)][_0xeb6207(0x214)](_0x5d8ac4,_0x35d44b),_0x35d44b;}};S=Y([_(0x0,_0x407f4a),_(0x1,_0x530cef(_0x342037)),_(0x2,_0x530cef(_0x57c410))],S);var c=(_0x4adbe8=>(_0x4adbe8[_0x1ff471(0x1a2)]=_0x1ff471(0x243),_0x4adbe8['IDLE']='idle',_0x4adbe8[_0x1ff471(0x1b6)]=_0x1ff471(0x21f),_0x4adbe8['NOT_FOLLOWING']=_0x1ff471(0x244),_0x4adbe8[_0x1ff471(0x21c)]=_0x1ff471(0x230),_0x4adbe8))(c||{});const Ce=_0x1ff471(0x1d5),De=0xc8;let N=class extends _0x27b7ba{constructor(_0x4b9732,_0x1fc442,_0x129c59,_0x310a79,_0x16863c){const _0x5b4e4e=_0x1ff471;super(),u(this,_0x5b4e4e(0x23f),new _0x3757b0(_0x5b4e4e(0x1b5))),u(this,'status$',this[_0x5b4e4e(0x23f)]['asObservable']()),u(this,_0x5b4e4e(0x1c9),!0x1),u(this,'_commandDisposable',null),u(this,_0x5b4e4e(0x1a3),null),(this[_0x5b4e4e(0x210)]=_0x4b9732,this[_0x5b4e4e(0x22b)]=_0x1fc442,this['_configService']=_0x129c59,this[_0x5b4e4e(0x1ae)]=_0x310a79,this[_0x5b4e4e(0x228)]=_0x16863c);}get['_status'](){const _0x4afec2=_0x1ff471;return this[_0x4afec2(0x23f)][_0x4afec2(0x217)]();}[_0x1ff471(0x1aa)](){const _0x490e09=_0x1ff471;var _0x1537bf;(_0x1537bf=this[_0x490e09(0x1d1)])==null||_0x1537bf['dispose'](),this[_0x490e09(0x23f)][_0x490e09(0x202)]('idle'),this[_0x490e09(0x23f)]['complete']();}[_0x1ff471(0x246)](){const _0x5ca0e9=_0x1ff471;return this[_0x5ca0e9(0x229)];}[_0x1ff471(0x204)](){const _0xeafc37=_0x1ff471;this['_init']||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0xeafc37(0x1d0)](_0x1eb310(this['dispose$']))[_0xeafc37(0x1eb)](_0x98d964=>{const _0x208f2e=_0xeafc37;switch(_0x98d964){case _0x2ea114[_0x208f2e(0x1a2)]:this[_0x208f2e(0x1bc)]();break;case _0x2ea114[_0x208f2e(0x20d)]:this[_0x208f2e(0x1b7)]();break;}}),this[_0xeafc37(0x22b)][_0xeafc37(0x23e)][_0xeafc37(0x1d0)](_0x1eb310(this[_0xeafc37(0x237)]))[_0xeafc37(0x1eb)](_0x57590c=>{const _0x5e2632=_0xeafc37,{eventID:_0x4e82df}=_0x57590c;switch(_0x4e82df){case _0xb1447['LIVESHARE_NEW_HOST']:this[_0x5e2632(0x1f6)](_0x57590c);break;case _0xb1447['LIVESHARE_OPERATION']:this[_0x5e2632(0x221)](_0x57590c);break;case _0xb1447['LIVESHARE_TERMINATE']:this[_0x5e2632(0x218)]();break;case _0xb1447[_0x5e2632(0x242)]:this['_handleNewChangeSets'](_0x57590c);break;}}));}['tryStartPresenting'](){const _0x22b46b=_0x1ff471;this[_0x22b46b(0x22b)]['send']({'eventID':_0xb1447[_0x22b46b(0x215)],'data':{'unitID':this[_0x22b46b(0x210)],'userID':this[_0x22b46b(0x22b)][_0x22b46b(0x232)]()}},this[_0x22b46b(0x210)]);}['stopPresenting'](){const _0x454ee6=_0x1ff471;this[_0x454ee6(0x229)]===_0x454ee6(0x230)&&(this[_0x454ee6(0x23f)]['next'](_0x454ee6(0x1b5)),this[_0x454ee6(0x22b)][_0x454ee6(0x22c)]({'eventID':_0xb1447[_0x454ee6(0x1f0)],'data':{'unitID':this[_0x454ee6(0x210)]}},this['_unitID']));}[_0x1ff471(0x1e3)](){const _0x216134=_0x1ff471;this[_0x216134(0x229)]===_0x216134(0x244)&&(this[_0x216134(0x23f)][_0x216134(0x202)](_0x216134(0x21f)),this['_startFollowing']());}[_0x1ff471(0x200)](){const _0x1e6a64=_0x1ff471;this['_status']===_0x1e6a64(0x21f)&&this[_0x1e6a64(0x1c6)]();}['_handleNewHost'](_0x485a12){const _0x103ddb=_0x1ff471,{presenter:_0x50273e}=_0x485a12['data'],_0xb41cf5=this['_collabSession'][_0x103ddb(0x232)]();this['_presenter']=_0x50273e,_0x50273e===_0xb41cf5?(this[_0x103ddb(0x1c6)](),this[_0x103ddb(0x219)]()):this[_0x103ddb(0x229)]!==_0x103ddb(0x244)&&(this[_0x103ddb(0x1b2)](),this[_0x103ddb(0x1e1)]());}[_0x1ff471(0x1c5)](){const _0x192748=_0x1ff471,_0x2cdf5d={'eventID':_0xb1447[_0x192748(0x21d)]};this['_collabSession'][_0x192748(0x22c)](_0x2cdf5d,this[_0x192748(0x210)]);}[_0x1ff471(0x218)](){const _0x4a5074=_0x1ff471;this['_presenter']=null,this['_status']!==_0x4a5074(0x230)&&this[_0x4a5074(0x1ac)]();}[_0x1ff471(0x1cb)](_0x4ee193){const _0x3dfc98=_0x1ff471;if(this['_status']==='following'&&this[_0x3dfc98(0x1a3)]===_0x4ee193[_0x3dfc98(0x1ef)][_0x3dfc98(0x22d)]){const _0x1861ce=_0x331d5a(_0x4ee193['data'])[_0x3dfc98(0x249)]['reverse']()[_0x3dfc98(0x20c)](_0x10d34=>_0x10d34['id']===_0x38f5e0['id']);if(_0x1861ce){const _0x5859e8=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1e7)],_0x21b363=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1d8)]['id'];setTimeout(()=>{const _0x478ec3=_0x3dfc98;this[_0x478ec3(0x228)][_0x478ec3(0x23a)](_0x5c8388['id'],{'unitId':_0x5859e8,'subUnitId':_0x21b363},{'fromCollab':!0x0});});}}}[_0x1ff471(0x219)](){const _0x488fec=_0x1ff471;this[_0x488fec(0x23f)][_0x488fec(0x202)]('presenting');const _0x2d6ee2=new Map(),_0x21ce20=this[_0x488fec(0x1d1)]=new _0x4ea11a();_0x21ce20['add'](_0x40b029(()=>{const _0x4a657b=_0x488fec;_0x2d6ee2[_0x4a657b(0x1ad)](_0x437cae=>_0x437cae[_0x4a657b(0x203)]()),_0x2d6ee2[_0x4a657b(0x20e)]();})),_0x21ce20[_0x488fec(0x21a)](this['_commandService'][_0x488fec(0x23c)](_0x4ffe17=>{const _0x5f4ba5=_0x488fec;var _0x7cf43b;if(_0x4ffe17[_0x5f4ba5(0x1b9)]!==_0x3c20aa[_0x5f4ba5(0x1e0)]||!this['_liveShareService'][_0x5f4ba5(0x1ff)](_0x4ffe17['id']))return;const {id:_0x5821aa}=_0x4ffe17;let _0x5ab94f;_0x2d6ee2[_0x5f4ba5(0x222)](_0x5821aa)?_0x5ab94f=_0x2d6ee2[_0x5f4ba5(0x1a5)](_0x5821aa):(_0x5ab94f=new _0x5667a6(),_0x2d6ee2[_0x5f4ba5(0x214)](_0x5821aa,_0x5ab94f),_0x5ab94f[_0x5f4ba5(0x1d0)](_0x193b30((_0x7cf43b=this[_0x5f4ba5(0x1b8)][_0x5f4ba5(0x224)](Ce))!=null?_0x7cf43b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5f4ba5(0x1eb)](_0x417165=>{const _0x3feb3b=_0x5f4ba5;this[_0x3feb3b(0x22b)]['send']({'eventID':_0xb1447[_0x3feb3b(0x1cf)],'data':{'unitID':this[_0x3feb3b(0x210)],'operations':{[_0x417165['id']]:{'id':_0x417165['id'],'params':JSON[_0x3feb3b(0x225)](_0x417165[_0x3feb3b(0x1bb)])}}}},this[_0x3feb3b(0x210)]);})),_0x5ab94f[_0x5f4ba5(0x202)](_0x4ffe17);})),this[_0x488fec(0x1ae)][_0x488fec(0x1a6)](this['_unitID'])[_0x488fec(0x1ad)](_0x407797=>this[_0x488fec(0x22b)][_0x488fec(0x22c)]({'eventID':_0xb1447[_0x488fec(0x1cf)],'data':{'unitID':this[_0x488fec(0x210)],'operations':{[_0x407797['id']]:{'id':_0x407797['id'],'params':JSON[_0x488fec(0x225)](_0x407797['params'])}}}},this[_0x488fec(0x210)]));}[_0x1ff471(0x1b2)](){const _0x3499b0=_0x1ff471;var _0x5e2876;this[_0x3499b0(0x23f)][_0x3499b0(0x202)](_0x3499b0(0x1b5)),(_0x5e2876=this['_commandDisposable'])==null||_0x5e2876[_0x3499b0(0x1aa)](),this['_commandDisposable']=null;}[_0x1ff471(0x1e1)](){const _0x5ca5fa=_0x1ff471;var _0x40e911;(_0x40e911=this[_0x5ca5fa(0x1d1)])==null||_0x40e911[_0x5ca5fa(0x1aa)](),this[_0x5ca5fa(0x23f)][_0x5ca5fa(0x202)](_0x5ca5fa(0x21f));}[_0x1ff471(0x1ac)](){const _0x372a77=_0x1ff471;var _0x45999a;this[_0x372a77(0x23f)][_0x372a77(0x202)](_0x372a77(0x1b5)),(_0x45999a=this[_0x372a77(0x1d1)])==null||_0x45999a[_0x372a77(0x1aa)](),this[_0x372a77(0x1d1)]=null;}[_0x1ff471(0x1c6)](){const _0x3ca668=_0x1ff471;var _0x183a59;this[_0x3ca668(0x23f)]['next'](_0x3ca668(0x244)),(_0x183a59=this[_0x3ca668(0x1d1)])==null||_0x183a59['dispose']();}[_0x1ff471(0x221)](_0x14f9a9){const _0x56de70=_0x1ff471;if([_0x56de70(0x230),_0x56de70(0x244),_0x56de70(0x243)][_0x56de70(0x1cd)](this[_0x56de70(0x229)])||!_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1df)]||_0x14f9a9[_0x56de70(0x1ef)]['presenter']===this[_0x56de70(0x22b)][_0x56de70(0x232)]())return;this[_0x56de70(0x229)]===_0x56de70(0x1b5)&&this[_0x56de70(0x1e1)]();const _0x256a7d=_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1e4)];Object[_0x56de70(0x1dc)](_0x256a7d)['forEach'](_0x1098a5=>{const _0x829016=_0x56de70;this[_0x829016(0x228)]['executeCommand'](_0x1098a5['id'],_0x1098a5['params']?JSON['parse'](_0x1098a5[_0x829016(0x1bb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4503d7=_0x1ff471;var _0x11193f;this[_0x4503d7(0x23f)][_0x4503d7(0x202)](_0x4503d7(0x243)),(_0x11193f=this[_0x4503d7(0x1d1)])==null||_0x11193f['dispose']();}['_handleOnline'](){const _0x25027b=_0x1ff471;this[_0x25027b(0x23f)][_0x25027b(0x202)](_0x25027b(0x1b5)),this[_0x25027b(0x1c5)]();}};N=Y([_(0x2,_0x495339),_(0x3,_0x530cef(L)),_(0x4,_0x244e30)],N);function Le(){const _0x360dd8=_0x1ff471,_0x480058=_0x11f1e0(S),_0x30294c=_0x11f1e0(_0x407f4a),_0x3103a8=_0x1e059b(()=>_0x30294c[_0x360dd8(0x1b4)](_0x391209['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fd68c,_0x220472]=_0x155574(null),[_0x56c686,_0x178780]=_0x155574(c[_0x360dd8(0x201)]),_0xef2c91=_0x4576d0(null);return _0x5bfbc0(()=>(_0x3103a8&&_0x480058[_0x360dd8(0x22a)](_0x3103a8['getUnitId']())[_0x360dd8(0x23d)](_0x4a1edd=>{const _0x5e08dd=_0x360dd8;_0x220472(_0x4a1edd),_0xef2c91[_0x5e08dd(0x1fc)]=_0x4a1edd[_0x5e08dd(0x1ce)][_0x5e08dd(0x1eb)](_0x21c8ae=>{_0x178780(_0x21c8ae);});}),()=>{const _0x286259=_0x360dd8;var _0xb4bd9a;(_0xb4bd9a=_0xef2c91[_0x286259(0x1fc)])==null||_0xb4bd9a[_0x286259(0x1bd)](),_0xef2c91[_0x286259(0x1fc)]=null;}),[_0x3103a8,_0x480058]),_0x3fd68c?_0x44ff08(_0x21ed3d,{'align':_0x360dd8(0x1f5),'disabled':_0x56c686===c[_0x360dd8(0x1a2)],'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':_0x44ff08(Re,{'status':_0x56c686,'coordinator':_0x3fd68c}),'children':_0x44ff08(_0x360dd8(0x1c7),{'className':_0x70919e(_0x360dd8(0x236),{'univer-cursor-not-allowed':_0x56c686===c[_0x360dd8(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56c686!==c[_0x360dd8(0x1a2)]}),'type':_0x360dd8(0x1c7),'children':_0x44ff08(W,{'className':_0x360dd8(0x205)})})}):null;}function Re(_0x28e239){const _0x39cc04=_0x1ff471,{status:_0x11d2b3,coordinator:_0x3cf1e7}=_0x28e239;switch(_0x11d2b3){case c[_0x39cc04(0x201)]:return _0x44ff08($e,{'coordinator':_0x3cf1e7});case c['FOLLOWING']:return _0x44ff08(xe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a8)]:return _0x44ff08(Pe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a2)]:return _0x44ff08(Te,{});case c[_0x39cc04(0x21c)]:return _0x44ff08(Ae,{'coordinator':_0x3cf1e7});default:return null;}}function $e(_0x424685){const _0x367646=_0x1ff471,{coordinator:_0x2e5116}=_0x424685;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x367646(0x241),{'className':_0x367646(0x1b1),'children':_0x367646(0x235)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x2e5116[_0x367646(0x1f1)](),'children':'Start'})]});}function xe(_0x2e1c24){const _0x4fa2e6=_0x1ff471,{coordinator:_0x54c7c5}=_0x2e1c24;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x4fa2e6(0x241),{'className':_0x4fa2e6(0x1b1),'children':_0x4fa2e6(0x208)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x54c7c5['stopFollowing'](),'children':_0x4fa2e6(0x1f8)})]});}function Pe(_0x2e475d){const _0x523dff=_0x1ff471,{coordinator:_0x448d74}=_0x2e475d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x523dff(0x241),{'className':_0x523dff(0x1b1),'children':_0x523dff(0x1af)}),_0x44ff08(_0x4f7539,{'variant':_0x523dff(0x226),'onClick':()=>_0x448d74[_0x523dff(0x1e3)](),'children':_0x523dff(0x1ec)})]});}function Ae(_0x5f022d){const _0x89213b=_0x1ff471,{coordinator:_0x3a058c}=_0x5f022d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08('div',{'className':_0x89213b(0x1b1),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x44ff08(_0x4f7539,{'variant':_0x89213b(0x207),'onClick':()=>_0x3a058c['stopPresenting'](),'children':_0x89213b(0x231)})]});}function Te(){return _0x44ff08(_0x47942b,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x1ff471(0x1c4)],He=(_0x2f8122,_0x524e5f,_0x361076,_0x36454d)=>{for(var _0x4c0982=_0x36454d>0x1?void 0x0:_0x36454d?Fe(_0x524e5f,_0x361076):_0x524e5f,_0x371a1a=_0x2f8122['length']-0x1,_0x65146f;_0x371a1a>=0x0;_0x371a1a--)(_0x65146f=_0x2f8122[_0x371a1a])&&(_0x4c0982=_0x65146f(_0x4c0982)||_0x4c0982);return _0x4c0982;},A=(_0x275cf4,_0xd2ddea)=>(_0x1c3e8e,_0x198788)=>_0xd2ddea(_0x1c3e8e,_0x198788,_0x275cf4);function _0x7fae(_0x3fcfbd,_0x1f6936){const _0x557056=_0x5570();return _0x7fae=function(_0x7fae7c,_0x38b49c){_0x7fae7c=_0x7fae7c-0x1a2;let _0x5cda0d=_0x557056[_0x7fae7c];return _0x5cda0d;},_0x7fae(_0x3fcfbd,_0x1f6936);}let m=class extends _0x5efc82{constructor(_0x205e68,_0x419cec){const _0x1d14f7=_0x1ff471;super(),this[_0x1d14f7(0x1ed)]=_0x205e68,this[_0x1d14f7(0x247)]=_0x419cec,this[_0x1d14f7(0x206)]();}['_mountLiveShare'](){const _0x54f196=_0x1ff471;this[_0x54f196(0x1c3)](this[_0x54f196(0x247)][_0x54f196(0x1ba)](_0x25f8f5[_0x54f196(0x1f4)],()=>_0x33fbbf(Le,this['_injector'])));}};function _0x5570(){const _0x40f71a=['_stopFollowing','button','1em','_init','none','_handleNewChangeSets','6PLIzZJ','includes','status$','LIVESHARE_OPERATION','pipe','_commandDisposable','_reporters','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','symbol','SAME_OPERATION_SHARE_INTERVAL','replace','_collabSessionService','sheet','4PhrxBd','onRendered','univerjs-icon\x20univerjs-icon-','values','11830554bUmnuc','getTypeOfUnitDisposed$','presenter','OPERATION','_startFollowing','createInstance','startFollowing','operations','override','_entities','unitId','children','28307970NfiiNQ','random','subscribe','Start\x20following','_injector','registerSharedOperation','data','LIVESHARE_TERMINATE','tryStartPresenting','0\x200\x2017\x2017','trim','HEADER_MENU','end','_handleNewHost','LiveShareIcon','Stop\x20following','xlink:href','_sharedOperations','currentColor','current','_univerInstanceService','_startLiveShareCoordinator','shouldShareOperation','stopFollowing','IDLE','next','complete','init','univer-size-4','_mountLiveShare','default','You\x27re\x20following\x20the\x20presenter','2DonwDo','UNIVER_LIVE_SHARE_PLUGIN','9211230eKNjPG','find','ONLINE','clear','UniverIcon','_unitID','idSuffix','getUnitId','tag','set','LIVESHARE_REQUEST_HOST','entries','getValue','_handleTerminate','_startPresenting','add','7099752pkzOlA','PRESENTING','LIVESHARE_FETCH_OPERATIONS','evenodd','following','getLiveShareCoordinatorSync','_handleOperation','has','use','getConfig','stringify','text','delete','_commandService','_status','getLiveShareCoordinator','_collabSession','send','memberID','setConfig','_config','presenting','Stop\x20presenting','getMemberID','length','UNIVER_SHEET','Present\x20this\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','fill','string','executeCommand','567211CHxsmP','onCommandExecuted','then','event$','_status$','defineProperty','div','NEW_CHANGESETS','offline','not-following','onStarting','getStatus','_uiPartsService','5036170qrStPd','mutations','UNIVER_UNKNOWN','OFFLINE','_presenter','toString','get','getInitialStates','from','NOT_FOLLOWING','colorChannel1','dispose','map','_beIdle','forEach','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','attrs','getCurrentTypeOfUnit$','idle','FOLLOWING','_handleOnline','_configService','type','registerComponent','params','_handleOffline','unsubscribe','defIds','svg','live-share-icon','assign','2243739giwFqR','disposeWithMe','getOwnPropertyDescriptor','_fetchOperations'];_0x5570=function(){return _0x40f71a;};return _0x5570();}m=He([A(0x0,_0x530cef(_0x342037)),A(0x1,_0x5b30b3)],m);const ye='live-share.config',T={};var Ue=Object[_0x1ff471(0x1c4)],Ve=(_0x12667a,_0x4ebed6,_0x7838cc,_0xb0d144)=>{const _0x1495e5=_0x1ff471;for(var _0x520462=_0xb0d144>0x1?void 0x0:_0xb0d144?Ue(_0x4ebed6,_0x7838cc):_0x4ebed6,_0x21e448=_0x12667a[_0x1495e5(0x233)]-0x1,_0x4c7d42;_0x21e448>=0x0;_0x21e448--)(_0x4c7d42=_0x12667a[_0x21e448])&&(_0x520462=_0x4c7d42(_0x520462)||_0x520462);return _0x520462;},je=(_0x4a23d7,_0x367f06)=>(_0x552ec3,_0x15a8de)=>_0x367f06(_0x552ec3,_0x15a8de,_0x4a23d7);let I=class extends _0x5efc82{constructor(_0x3db742){const _0x46d09d=_0x1ff471;super(),this[_0x46d09d(0x1ae)]=_0x3db742,this[_0x46d09d(0x1c9)]();}[_0x1ff471(0x1c9)](){const _0x35b521=_0x1ff471;[_0x55628f['id'],_0x3efdd7['id'],_0x5c8388['id']][_0x35b521(0x1ad)](_0x5a0e25=>{const _0x2fc9c8=_0x35b521;this[_0x2fc9c8(0x1c3)](this[_0x2fc9c8(0x1ae)][_0x2fc9c8(0x1ee)](_0x5a0e25));});}};I=Ve([je(0x0,_0x530cef(L))],I);var Me=Object['defineProperty'],ke=Object[_0x1ff471(0x1c4)],Ge=(_0xfd20bc,_0x40da0c,_0x2633de)=>_0x40da0c in _0xfd20bc?Me(_0xfd20bc,_0x40da0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2633de}):_0xfd20bc[_0x40da0c]=_0x2633de,We=(_0x55b24f,_0x3d18f4,_0x529083,_0x109f13)=>{for(var _0x4094fc=_0x109f13>0x1?void 0x0:_0x109f13?ke(_0x3d18f4,_0x529083):_0x3d18f4,_0x92aaa0=_0x55b24f['length']-0x1,_0x5cc2ca;_0x92aaa0>=0x0;_0x92aaa0--)(_0x5cc2ca=_0x55b24f[_0x92aaa0])&&(_0x4094fc=_0x5cc2ca(_0x4094fc)||_0x4094fc);return _0x4094fc;},F=(_0x6757ab,_0x3f8d09)=>(_0x163397,_0x1447a7)=>_0x3f8d09(_0x163397,_0x1447a7,_0x6757ab),B=(_0x51fc9a,_0x5d0a91,_0x24eba7)=>Ge(_0x51fc9a,typeof _0x5d0a91!=_0x1ff471(0x1d4)?_0x5d0a91+'':_0x5d0a91,_0x24eba7);const Ye=_0x1ff471(0x20a);let b=class extends _0x41c584{constructor(_0x589e7f=T,_0x3a749b,_0x3e0ea5){const _0x4dbeeb=_0x1ff471;super(),this['_config']=_0x589e7f,this[_0x4dbeeb(0x1ed)]=_0x3a749b,this[_0x4dbeeb(0x1b8)]=_0x3e0ea5;const {..._0x2051f2}=_0x2c2112({},T,this[_0x4dbeeb(0x22f)]);this[_0x4dbeeb(0x1b8)][_0x4dbeeb(0x22e)](ye,_0x2051f2);}[_0x1ff471(0x245)](){const _0x1ee846=_0x1ff471;_0x5a0d1b(this[_0x1ee846(0x1ed)],_0x5a4f61([[L],[S],[I],[m]],this[_0x1ee846(0x22f)][_0x1ee846(0x1e5)])),_0x2d8b65(this['_injector'],[[I]]);}[_0x1ff471(0x1da)](){_0x2d8b65(this['_injector'],[[m]]);}};B(b,'type',_0x391209[_0x1ff471(0x24a)]),B(b,'pluginName',Ye),b=We([_0x148bca(_0x18c6f0),F(0x1,_0x530cef(_0x342037)),F(0x2,_0x495339)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0x2c17bd=_0x6dcd;(function(_0x46eab9,_0x3f9f6e){const _0x372050=_0x6dcd,_0x163203=_0x46eab9();while(!![]){try{const _0x2f00ac=-parseInt(_0x372050(0x1f7))/0x1+parseInt(_0x372050(0x266))/0x2*(parseInt(_0x372050(0x1e7))/0x3)+-parseInt(_0x372050(0x246))/0x4*(-parseInt(_0x372050(0x218))/0x5)+-parseInt(_0x372050(0x21c))/0x6*(-parseInt(_0x372050(0x1e5))/0x7)+-parseInt(_0x372050(0x1ff))/0x8*(-parseInt(_0x372050(0x1dd))/0x9)+parseInt(_0x372050(0x1fe))/0xa+-parseInt(_0x372050(0x1d4))/0xb;if(_0x2f00ac===_0x3f9f6e)break;else _0x163203['push'](_0x163203['shift']());}catch(_0x4a332d){_0x163203['push'](_0x163203['shift']());}}}(_0xae52,0x2ddb1));var J=Object['defineProperty'],K=(_0x35970c,_0x3ab2be,_0x4465cc)=>_0x3ab2be in _0x35970c?J(_0x35970c,_0x3ab2be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4465cc}):_0x35970c[_0x3ab2be]=_0x4465cc,u=(_0x22a061,_0x191ca2,_0x191e6c)=>K(_0x22a061,typeof _0x191ca2!=_0x2c17bd(0x1d3)?_0x191ca2+'':_0x191ca2,_0x191e6c);import{Disposable as _0x340cc7,toDisposable as _0x1aa50a,IUniverInstanceService as _0x9a2b99,Inject as _0xb91b10,Injector as _0x13efe5,IConfigService as _0x45ac9b,ICommandService as _0x147916,RxDisposable as _0x1729a0,UniverInstanceType as _0x45889c,DisposableCollection as _0x4a90c4,CommandType as _0x4010de,DependentOn as _0x1c6ccb,Plugin as _0x24270d,merge as _0x51df76,registerDependencies as _0x312d92,mergeOverrideWithDependencies as _0x43af49,touchDependencies as _0x5199da}from'@univerjs/core';import{useDependency as _0x1bfba8,useObservable as _0x206e01,IUIPartsService as _0x2066c5,BuiltInUIPart as _0x1bd2e1,connectInjector as _0x33bb9e}from'@univerjs/ui';import{jsx as _0x76a09b,jsxs as _0x490d08,Fragment as _0x1c44c8}from'react/jsx-runtime';import{Dropdown as _0x39b390,clsx as _0x3e4a67,Button as _0x2cafee}from'@univerjs/design';import{useRef as _0x470657,createElement as _0x690b7e,forwardRef as _0x22f24d,useState as _0x14fd36,useEffect as _0x23e84d}from'react';import{CollaborationEvent as _0x51a117,parseProtocolChangeset as _0x1db3a1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x228d40,SessionStatus as _0x79de65,UniverCollaborationClientPlugin as _0x172e42}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x288a71,SetWorksheetActiveOperation as _0x411a50}from'@univerjs/sheets';import{BehaviorSubject as _0x530a32,Subject as _0x517350}from'rxjs';import{takeUntil as _0x1f1c93,throttleTime as _0x3d7821}from'rxjs/operators';import{SetZoomRatioOperation as _0x3270d8,SetScrollOperation as _0x552a0c}from'@univerjs/sheets-ui';function k({ref:_0x1df001,..._0x513bb3}){const _0x354358=_0x2c17bd,{icon:_0x41d999,id:_0x3a64c2,className:_0x2ad4d2,extend:_0x401ca8,..._0x35a9d5}=_0x513bb3,_0x357d63=(_0x354358(0x249)+_0x3a64c2+'\x20'+(_0x2ad4d2||''))[_0x354358(0x22e)](),_0x3bd686=_0x470657('_'+Oe());return G(_0x41d999,''+_0x3a64c2,{'defIds':_0x41d999[_0x354358(0x21d)],'idSuffix':_0x3bd686['current']},{'ref':_0x1df001,'className':_0x357d63,..._0x35a9d5},_0x401ca8);}function G(_0x5a6ee8,_0x586d64,_0xada4dc,_0x3ebb1f,_0x4a6f3f){const _0x5e05ae=_0x2c17bd;return _0x690b7e(_0x5a6ee8[_0x5e05ae(0x273)],{'key':_0x586d64,...be(_0x5a6ee8,_0xada4dc,_0x4a6f3f),..._0x3ebb1f},(Ee(_0x5a6ee8,_0xada4dc)['children']||[])[_0x5e05ae(0x22d)]((_0x30a27b,_0x3c71c4)=>G(_0x30a27b,_0x586d64+'-'+_0x5a6ee8[_0x5e05ae(0x273)]+'-'+_0x3c71c4,_0xada4dc,void 0x0,_0x4a6f3f)));}function be(_0x4f137d,_0xa6c78e,_0x437c49){const _0x4b4d1f=_0x2c17bd,_0x44902f={..._0x4f137d[_0x4b4d1f(0x1f5)]};_0x437c49!=null&&_0x437c49[_0x4b4d1f(0x268)]&&_0x44902f[_0x4b4d1f(0x217)]===_0x4b4d1f(0x268)&&(_0x44902f[_0x4b4d1f(0x217)]=_0x437c49['colorChannel1']),_0x4f137d[_0x4b4d1f(0x273)]==='mask'&&_0x44902f['id']&&(_0x44902f['id']=_0x44902f['id']+_0xa6c78e[_0x4b4d1f(0x23e)]),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x40353a,_0x11371d])=>{const _0x2d2c9b=_0x4b4d1f;_0x40353a===_0x2d2c9b(0x210)&&typeof _0x11371d==_0x2d2c9b(0x25e)&&(_0x44902f[_0x40353a]=_0x11371d[_0x2d2c9b(0x1f8)](/url\(#(.*)\)/,'url(#$1'+_0xa6c78e[_0x2d2c9b(0x23e)]+')'));});const {defIds:_0xf09bbc}=_0xa6c78e;return!_0xf09bbc||_0xf09bbc[_0x4b4d1f(0x225)]===0x0||(_0x4f137d[_0x4b4d1f(0x273)]===_0x4b4d1f(0x275)&&_0x44902f[_0x4b4d1f(0x24a)]&&(_0x44902f[_0x4b4d1f(0x24a)]=_0x44902f[_0x4b4d1f(0x24a)]+_0xa6c78e['idSuffix']),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x19d350,_0x1d4ae8])=>{const _0x5d1565=_0x4b4d1f;typeof _0x1d4ae8==_0x5d1565(0x25e)&&(_0x44902f[_0x19d350]=_0x1d4ae8[_0x5d1565(0x1f8)](/url\(#(.*)\)/,_0x5d1565(0x1f1)+_0xa6c78e['idSuffix']+')'));})),_0x44902f;}function Ee(_0x2e1a6f,_0x2ad328){const _0x3fa413=_0x2c17bd;var _0x37c9f4;const {defIds:_0x5bc420}=_0x2ad328;return!_0x5bc420||_0x5bc420[_0x3fa413(0x225)]===0x0?_0x2e1a6f:_0x2e1a6f[_0x3fa413(0x273)]===_0x3fa413(0x226)&&((_0x37c9f4=_0x2e1a6f['children'])!=null&&_0x37c9f4[_0x3fa413(0x225)])?{..._0x2e1a6f,'children':_0x2e1a6f[_0x3fa413(0x243)][_0x3fa413(0x22d)](_0x28888b=>typeof _0x28888b[_0x3fa413(0x1f5)]['id']==_0x3fa413(0x25e)&&_0x5bc420&&_0x5bc420['includes'](_0x28888b[_0x3fa413(0x1f5)]['id'])?{..._0x28888b,'attrs':{..._0x28888b['attrs'],'id':_0x28888b[_0x3fa413(0x1f5)]['id']+_0x2ad328['idSuffix']}}:_0x28888b)}:_0x2e1a6f;}function Oe(){const _0xaf154c=_0x2c17bd;return Math['random']()[_0xaf154c(0x1d5)](0x24)[_0xaf154c(0x265)](0x2,0x8);}k[_0x2c17bd(0x23c)]='UniverIcon';const we={'tag':_0x2c17bd(0x1dc),'attrs':{'xmlns':_0x2c17bd(0x25f),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2c17bd(0x271),'height':_0x2c17bd(0x271)},'children':[{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'d':_0x2c17bd(0x1fa)}},{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'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':_0x2c17bd(0x20c),'clipRule':'evenodd'}}]},W=_0x22f24d(function(_0x50414d,_0x4ebea5){return _0x690b7e(k,Object['assign']({},_0x50414d,{'id':'live-share-icon','ref':_0x4ebea5,'icon':we}));});W[_0x2c17bd(0x23c)]=_0x2c17bd(0x211);class L extends _0x340cc7{constructor(){const _0x2435a6=_0x2c17bd;super(...arguments),u(this,_0x2435a6(0x24f),new Set()),u(this,_0x2435a6(0x205),new Set());}[_0x2c17bd(0x20e)](_0x41c0a5){const _0x5a6bdc=_0x2c17bd;return this[_0x5a6bdc(0x24f)]['add'](_0x41c0a5),_0x1aa50a(()=>this[_0x5a6bdc(0x24f)][_0x5a6bdc(0x1d7)](_0x41c0a5));}[_0x2c17bd(0x248)](_0x5176f0){const _0x482477=_0x2c17bd;return this[_0x482477(0x205)][_0x482477(0x255)](_0x5176f0),_0x1aa50a(()=>this[_0x482477(0x205)]['delete'](_0x5176f0));}[_0x2c17bd(0x203)](_0x24d258){const _0x1e2684=_0x2c17bd;return this[_0x1e2684(0x24f)][_0x1e2684(0x22a)](_0x24d258);}[_0x2c17bd(0x257)](_0x5d77de){const _0x390056=_0x2c17bd;return Array[_0x390056(0x26a)](this['_reporters'])[_0x390056(0x22d)](_0x507a8f=>_0x507a8f(_0x5d77de));}}var Ne=Object[_0x2c17bd(0x214)],Y=(_0xd80162,_0x315b46,_0x520114,_0x5ac254)=>{const _0x45e54d=_0x2c17bd;for(var _0x3eb9d6=_0x5ac254>0x1?void 0x0:_0x5ac254?Ne(_0x315b46,_0x520114):_0x315b46,_0x42a071=_0xd80162[_0x45e54d(0x225)]-0x1,_0xa5d9a5;_0x42a071>=0x0;_0x42a071--)(_0xa5d9a5=_0xd80162[_0x42a071])&&(_0x3eb9d6=_0xa5d9a5(_0x3eb9d6)||_0x3eb9d6);return _0x3eb9d6;},_=(_0x5357c8,_0x5e2084)=>(_0x5a230b,_0x2bacba)=>_0x5e2084(_0x5a230b,_0x2bacba,_0x5357c8);let S=class extends _0x1729a0{constructor(_0x2d5315,_0x37abb6,_0x107b1f){const _0x58a46a=_0x2c17bd;super(),u(this,'_entities',new Map()),(this[_0x58a46a(0x20a)]=_0x2d5315,this[_0x58a46a(0x1d8)]=_0x37abb6,this['_collabSessionService']=_0x107b1f,this[_0x58a46a(0x1e1)]());}async[_0x2c17bd(0x1ed)](_0x4a21eb){const _0x147a9a=_0x2c17bd;return this[_0x147a9a(0x1e3)][_0x147a9a(0x22a)](_0x4a21eb)||await this[_0x147a9a(0x25c)](_0x4a21eb),this['_entities'][_0x147a9a(0x23d)](_0x4a21eb);}[_0x2c17bd(0x267)](_0x570ee6){const _0x57bc53=_0x2c17bd;var _0x1e4954;return(_0x1e4954=this[_0x57bc53(0x1e3)][_0x57bc53(0x23d)](_0x570ee6))!=null?_0x1e4954:null;}['_init'](){const _0x4e1f10=_0x2c17bd;this[_0x4e1f10(0x20a)][_0x4e1f10(0x24d)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](async _0x485fc2=>{const _0x545891=_0x4e1f10,_0x47768c=_0x485fc2[_0x545891(0x274)]();this[_0x545891(0x1e3)][_0x545891(0x22a)](_0x47768c)||this[_0x545891(0x25c)](_0x47768c);}),this[_0x4e1f10(0x20a)][_0x4e1f10(0x1df)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](_0x321e9a=>{const _0x31af76=_0x4e1f10,_0x22d47a=_0x321e9a[_0x31af76(0x274)](),_0x2ed8ce=this[_0x31af76(0x1e3)][_0x31af76(0x23d)](_0x22d47a);_0x2ed8ce==null||_0x2ed8ce[_0x31af76(0x241)]();});}async[_0x2c17bd(0x25c)](_0x15653a){const _0x5d7f3a=_0x2c17bd,_0x5f2b47=await this[_0x5d7f3a(0x22b)][_0x5d7f3a(0x23b)](_0x15653a),_0x46bd9b=this['_injector']['createInstance'](N,_0x15653a,_0x5f2b47);return _0x46bd9b[_0x5d7f3a(0x216)](),this[_0x5d7f3a(0x1e3)][_0x5d7f3a(0x1d1)](_0x15653a,_0x46bd9b),_0x46bd9b;}};S=Y([_(0x0,_0x9a2b99),_(0x1,_0xb91b10(_0x13efe5)),_(0x2,_0xb91b10(_0x228d40))],S);var c=(_0x48bffd=>(_0x48bffd[_0x2c17bd(0x1ef)]=_0x2c17bd(0x261),_0x48bffd[_0x2c17bd(0x26c)]=_0x2c17bd(0x201),_0x48bffd[_0x2c17bd(0x258)]=_0x2c17bd(0x253),_0x48bffd['NOT_FOLLOWING']=_0x2c17bd(0x212),_0x48bffd[_0x2c17bd(0x22f)]='presenting',_0x48bffd))(c||{});const Ce=_0x2c17bd(0x24e),De=0xc8;let N=class extends _0x1729a0{constructor(_0x421a24,_0x1d4fe7,_0x4e4a9e,_0x58778c,_0x255ad6){const _0x5cdd7f=_0x2c17bd;super(),u(this,_0x5cdd7f(0x204),new _0x530a32(_0x5cdd7f(0x201))),u(this,_0x5cdd7f(0x1d2),this[_0x5cdd7f(0x204)][_0x5cdd7f(0x26e)]()),u(this,_0x5cdd7f(0x1e1),!0x1),u(this,_0x5cdd7f(0x264),null),u(this,_0x5cdd7f(0x1e8),null),(this[_0x5cdd7f(0x202)]=_0x421a24,this['_collabSession']=_0x1d4fe7,this[_0x5cdd7f(0x220)]=_0x4e4a9e,this[_0x5cdd7f(0x236)]=_0x58778c,this[_0x5cdd7f(0x238)]=_0x255ad6);}get['_status'](){const _0x566241=_0x2c17bd;return this[_0x566241(0x204)][_0x566241(0x260)]();}[_0x2c17bd(0x241)](){const _0x2d9d0b=_0x2c17bd;var _0x21417d;(_0x21417d=this[_0x2d9d0b(0x264)])==null||_0x21417d[_0x2d9d0b(0x241)](),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x270)](_0x2d9d0b(0x201)),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x1d9)]();}[_0x2c17bd(0x1ec)](){const _0x58033f=_0x2c17bd;return this[_0x58033f(0x1da)];}[_0x2c17bd(0x216)](){const _0x31733a=_0x2c17bd;this[_0x31733a(0x1e1)]||(this[_0x31733a(0x1e1)]=!0x0,this['_collabSession'][_0x31733a(0x26f)][_0x31733a(0x1f6)](_0x1f1c93(this[_0x31733a(0x1e2)]))['subscribe'](_0x17ec45=>{const _0x38dc57=_0x31733a;switch(_0x17ec45){case _0x79de65[_0x38dc57(0x1ef)]:this['_handleOffline']();break;case _0x79de65[_0x38dc57(0x25d)]:this['_handleOnline']();break;}}),this[_0x31733a(0x26d)][_0x31733a(0x208)][_0x31733a(0x1f6)](_0x1f1c93(this['dispose$']))[_0x31733a(0x232)](_0x88aae0=>{const _0x1932c0=_0x31733a,{eventID:_0x449af1}=_0x88aae0;switch(_0x449af1){case _0x51a117['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x88aae0);break;case _0x51a117[_0x1932c0(0x240)]:this[_0x1932c0(0x215)](_0x88aae0);break;case _0x51a117['LIVESHARE_TERMINATE']:this[_0x1932c0(0x26b)]();break;case _0x51a117[_0x1932c0(0x231)]:this[_0x1932c0(0x207)](_0x88aae0);break;}}));}['tryStartPresenting'](){const _0x907710=_0x2c17bd;this[_0x907710(0x26d)]['send']({'eventID':_0x51a117[_0x907710(0x1fb)],'data':{'unitID':this[_0x907710(0x202)],'userID':this[_0x907710(0x26d)]['getMemberID']()}},this[_0x907710(0x202)]);}[_0x2c17bd(0x1f0)](){const _0x2aa2f9=_0x2c17bd;this[_0x2aa2f9(0x1da)]==='presenting'&&(this[_0x2aa2f9(0x204)][_0x2aa2f9(0x270)](_0x2aa2f9(0x201)),this[_0x2aa2f9(0x26d)][_0x2aa2f9(0x1f4)]({'eventID':_0x51a117[_0x2aa2f9(0x239)],'data':{'unitID':this[_0x2aa2f9(0x202)]}},this[_0x2aa2f9(0x202)]));}[_0x2c17bd(0x1fc)](){const _0x2d5d72=_0x2c17bd;this['_status']===_0x2d5d72(0x212)&&(this[_0x2d5d72(0x204)][_0x2d5d72(0x270)](_0x2d5d72(0x253)),this[_0x2d5d72(0x224)]());}[_0x2c17bd(0x1f3)](){const _0x2fed31=_0x2c17bd;this[_0x2fed31(0x1da)]===_0x2fed31(0x253)&&this[_0x2fed31(0x1e4)]();}['_handleNewHost'](_0x27a1d2){const _0x2ce34b=_0x2c17bd,{presenter:_0xc8a672}=_0x27a1d2[_0x2ce34b(0x237)],_0x4d8d36=this[_0x2ce34b(0x26d)]['getMemberID']();this[_0x2ce34b(0x1e8)]=_0xc8a672,_0xc8a672===_0x4d8d36?(this[_0x2ce34b(0x1e4)](),this[_0x2ce34b(0x227)]()):this[_0x2ce34b(0x1da)]!==_0x2ce34b(0x212)&&(this[_0x2ce34b(0x206)](),this[_0x2ce34b(0x224)]());}['_fetchOperations'](){const _0x1af4a7=_0x2c17bd,_0x299498={'eventID':_0x51a117[_0x1af4a7(0x25a)]};this[_0x1af4a7(0x26d)]['send'](_0x299498,this['_unitID']);}[_0x2c17bd(0x26b)](){const _0x30f54e=_0x2c17bd;this['_presenter']=null,this[_0x30f54e(0x1da)]!==_0x30f54e(0x20f)&&this[_0x30f54e(0x233)]();}[_0x2c17bd(0x207)](_0x4b0354){const _0x20ad2c=_0x2c17bd;if(this[_0x20ad2c(0x1da)]===_0x20ad2c(0x253)&&this[_0x20ad2c(0x1e8)]===_0x4b0354[_0x20ad2c(0x237)]['memberID']){const _0x22b7b6=_0x1db3a1(_0x4b0354[_0x20ad2c(0x237)])[_0x20ad2c(0x20d)][_0x20ad2c(0x21e)]()[_0x20ad2c(0x230)](_0x41a9c3=>_0x41a9c3['id']===_0x288a71['id']);if(_0x22b7b6){const _0x2e5be3=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1eb)],_0xd40381=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1fd)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x411a50['id'],{'unitId':_0x2e5be3,'subUnitId':_0xd40381},{'fromCollab':!0x0});});}}}[_0x2c17bd(0x227)](){const _0xe68353=_0x2c17bd;this[_0xe68353(0x204)][_0xe68353(0x270)](_0xe68353(0x20f));const _0x1a9045=new Map(),_0x22dea8=this[_0xe68353(0x264)]=new _0x4a90c4();_0x22dea8[_0xe68353(0x255)](_0x1aa50a(()=>{const _0x8cb478=_0xe68353;_0x1a9045[_0x8cb478(0x252)](_0x56aa2e=>_0x56aa2e[_0x8cb478(0x1d9)]()),_0x1a9045[_0x8cb478(0x1ea)]();})),_0x22dea8[_0xe68353(0x255)](this[_0xe68353(0x238)]['onCommandExecuted'](_0x49a0a8=>{const _0x4f78af=_0xe68353;var _0x7947c;if(_0x49a0a8[_0x4f78af(0x228)]!==_0x4010de['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x49a0a8['id']))return;const {id:_0x59e605}=_0x49a0a8;let _0x14ad6a;_0x1a9045['has'](_0x59e605)?_0x14ad6a=_0x1a9045['get'](_0x59e605):(_0x14ad6a=new _0x517350(),_0x1a9045['set'](_0x59e605,_0x14ad6a),_0x14ad6a[_0x4f78af(0x1f6)](_0x3d7821((_0x7947c=this['_configService']['getConfig'](Ce))!=null?_0x7947c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1ebcd3=>{const _0x35dfa8=_0x4f78af;this[_0x35dfa8(0x26d)][_0x35dfa8(0x1f4)]({'eventID':_0x51a117[_0x35dfa8(0x240)],'data':{'unitID':this[_0x35dfa8(0x202)],'operations':{[_0x1ebcd3['id']]:{'id':_0x1ebcd3['id'],'params':JSON[_0x35dfa8(0x1d6)](_0x1ebcd3[_0x35dfa8(0x1e9)])}}}},this[_0x35dfa8(0x202)]);})),_0x14ad6a[_0x4f78af(0x270)](_0x49a0a8);})),this[_0xe68353(0x236)][_0xe68353(0x257)](this[_0xe68353(0x202)])[_0xe68353(0x252)](_0x525933=>this[_0xe68353(0x26d)]['send']({'eventID':_0x51a117[_0xe68353(0x240)],'data':{'unitID':this[_0xe68353(0x202)],'operations':{[_0x525933['id']]:{'id':_0x525933['id'],'params':JSON[_0xe68353(0x1d6)](_0x525933[_0xe68353(0x1e9)])}}}},this[_0xe68353(0x202)]));}['_stopPresenting'](){const _0x1d9168=_0x2c17bd;var _0x24528a;this[_0x1d9168(0x204)]['next'](_0x1d9168(0x201)),(_0x24528a=this[_0x1d9168(0x264)])==null||_0x24528a[_0x1d9168(0x241)](),this[_0x1d9168(0x264)]=null;}[_0x2c17bd(0x224)](){const _0x3f915e=_0x2c17bd;var _0x61c514;(_0x61c514=this[_0x3f915e(0x264)])==null||_0x61c514['dispose'](),this['_status$'][_0x3f915e(0x270)]('following');}[_0x2c17bd(0x233)](){const _0x2c2b0b=_0x2c17bd;var _0x39c84b;this['_status$']['next'](_0x2c2b0b(0x201)),(_0x39c84b=this[_0x2c2b0b(0x264)])==null||_0x39c84b[_0x2c2b0b(0x241)](),this[_0x2c2b0b(0x264)]=null;}[_0x2c17bd(0x1e4)](){const _0x573324=_0x2c17bd;var _0x1b4944;this[_0x573324(0x204)][_0x573324(0x270)](_0x573324(0x212)),(_0x1b4944=this[_0x573324(0x264)])==null||_0x1b4944[_0x573324(0x241)]();}[_0x2c17bd(0x215)](_0x1e99cb){const _0x1cf79c=_0x2c17bd;if([_0x1cf79c(0x20f),_0x1cf79c(0x212),_0x1cf79c(0x261)][_0x1cf79c(0x213)](this[_0x1cf79c(0x1da)])||!_0x1e99cb[_0x1cf79c(0x237)]['presenter']||_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x24b)]===this['_collabSession']['getMemberID']())return;this[_0x1cf79c(0x1da)]==='idle'&&this[_0x1cf79c(0x224)]();const _0x7cb88f=_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x20b)];Object[_0x1cf79c(0x25b)](_0x7cb88f)[_0x1cf79c(0x252)](_0xb6fb73=>{const _0x50a750=_0x1cf79c;this[_0x50a750(0x238)][_0x50a750(0x1e6)](_0xb6fb73['id'],_0xb6fb73[_0x50a750(0x1e9)]?JSON[_0x50a750(0x234)](_0xb6fb73[_0x50a750(0x1e9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x41055d=_0x2c17bd;var _0x1c4063;this[_0x41055d(0x204)][_0x41055d(0x270)](_0x41055d(0x261)),(_0x1c4063=this[_0x41055d(0x264)])==null||_0x1c4063['dispose']();}[_0x2c17bd(0x269)](){const _0x5ba351=_0x2c17bd;this['_status$'][_0x5ba351(0x270)](_0x5ba351(0x201)),this[_0x5ba351(0x256)]();}};N=Y([_(0x2,_0x45ac9b),_(0x3,_0xb91b10(L)),_(0x4,_0x147916)],N);function Le(){const _0x18e79c=_0x2c17bd,_0x1dd162=_0x1bfba8(S),_0x4a51aa=_0x1bfba8(_0x9a2b99),_0x1cd3f6=_0x206e01(()=>_0x4a51aa[_0x18e79c(0x1f2)](_0x45889c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3a132f,_0x30e72d]=_0x14fd36(null),[_0x3c8a80,_0x39aeef]=_0x14fd36(c[_0x18e79c(0x26c)]),_0x5d719f=_0x470657(null);return _0x23e84d(()=>(_0x1cd3f6&&_0x1dd162[_0x18e79c(0x1ed)](_0x1cd3f6[_0x18e79c(0x274)]())['then'](_0x512a61=>{const _0x193bf1=_0x18e79c;_0x30e72d(_0x512a61),_0x5d719f[_0x193bf1(0x272)]=_0x512a61[_0x193bf1(0x1d2)][_0x193bf1(0x232)](_0xaa4c7b=>{_0x39aeef(_0xaa4c7b);});}),()=>{const _0xbe3200=_0x18e79c;var _0x6f1578;(_0x6f1578=_0x5d719f[_0xbe3200(0x272)])==null||_0x6f1578['unsubscribe'](),_0x5d719f[_0xbe3200(0x272)]=null;}),[_0x1cd3f6,_0x1dd162]),_0x3a132f?_0x76a09b(_0x39b390,{'align':_0x18e79c(0x22c),'disabled':_0x3c8a80===c[_0x18e79c(0x1ef)],'className':_0x18e79c(0x221),'overlay':_0x76a09b(Re,{'status':_0x3c8a80,'coordinator':_0x3a132f}),'children':_0x76a09b('button',{'className':_0x3e4a67('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c8a80===c[_0x18e79c(0x1ef)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c8a80!==c['OFFLINE']}),'type':_0x18e79c(0x254),'children':_0x76a09b(W,{'className':_0x18e79c(0x222)})})}):null;}function Re(_0x3a55a0){const _0x45fef2=_0x2c17bd,{status:_0x32baff,coordinator:_0x53e42a}=_0x3a55a0;switch(_0x32baff){case c[_0x45fef2(0x26c)]:return _0x76a09b($e,{'coordinator':_0x53e42a});case c[_0x45fef2(0x258)]:return _0x76a09b(xe,{'coordinator':_0x53e42a});case c['NOT_FOLLOWING']:return _0x76a09b(Pe,{'coordinator':_0x53e42a});case c['OFFLINE']:return _0x76a09b(Te,{});case c[_0x45fef2(0x22f)]:return _0x76a09b(Ae,{'coordinator':_0x53e42a});default:return null;}}function $e(_0x50a119){const _0x17f16b=_0x2c17bd,{coordinator:_0x4dd261}=_0x50a119;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x17f16b(0x21f),{'className':_0x17f16b(0x1db),'children':_0x17f16b(0x21a)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x4dd261[_0x17f16b(0x209)](),'children':'Start'})]});}function xe(_0x3e1b1a){const _0x48b8e3=_0x2c17bd,{coordinator:_0x1b8c91}=_0x3e1b1a;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b('div',{'className':_0x48b8e3(0x1db),'children':_0x48b8e3(0x259)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x1b8c91[_0x48b8e3(0x1f3)](),'children':_0x48b8e3(0x223)})]});}function Pe(_0x182e79){const _0x173f14=_0x2c17bd,{coordinator:_0x4b774b}=_0x182e79;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x173f14(0x21f),{'className':_0x173f14(0x1db),'children':_0x173f14(0x245)}),_0x76a09b(_0x2cafee,{'variant':_0x173f14(0x200),'onClick':()=>_0x4b774b[_0x173f14(0x1fc)](),'children':'Start\x20following'})]});}function Ae(_0x214adf){const _0x2cf4c8=_0x2c17bd,{coordinator:_0x2ef842}=_0x214adf;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x2cf4c8(0x21f),{'className':_0x2cf4c8(0x1db),'children':_0x2cf4c8(0x242)}),_0x76a09b(_0x2cafee,{'variant':_0x2cf4c8(0x250),'onClick':()=>_0x2ef842[_0x2cf4c8(0x1f0)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a7d3b=_0x2c17bd;return _0x76a09b(_0x1c44c8,{'children':_0x1a7d3b(0x24c)});}var Fe=Object[_0x2c17bd(0x214)],He=(_0x1bb9b2,_0x5b183a,_0x2c02d7,_0x19aaed)=>{const _0x44d7bb=_0x2c17bd;for(var _0x38898e=_0x19aaed>0x1?void 0x0:_0x19aaed?Fe(_0x5b183a,_0x2c02d7):_0x5b183a,_0x16e70c=_0x1bb9b2[_0x44d7bb(0x225)]-0x1,_0x2d18c0;_0x16e70c>=0x0;_0x16e70c--)(_0x2d18c0=_0x1bb9b2[_0x16e70c])&&(_0x38898e=_0x2d18c0(_0x38898e)||_0x38898e);return _0x38898e;},A=(_0x5d6fbc,_0x537193)=>(_0x114252,_0x52e674)=>_0x537193(_0x114252,_0x52e674,_0x5d6fbc);let m=class extends _0x340cc7{constructor(_0x339511,_0x36757c){const _0x26e2ce=_0x2c17bd;super(),this[_0x26e2ce(0x1d8)]=_0x339511,this['_uiPartsService']=_0x36757c,this[_0x26e2ce(0x262)]();}[_0x2c17bd(0x262)](){const _0x4207e1=_0x2c17bd;this['disposeWithMe'](this[_0x4207e1(0x21b)][_0x4207e1(0x263)](_0x1bd2e1['HEADER_MENU'],()=>_0x33bb9e(Le,this['_injector'])));}};function _0x6dcd(_0x4e732e,_0xc26307){const _0xae527a=_0xae52();return _0x6dcd=function(_0x6dcde7,_0x39503b){_0x6dcde7=_0x6dcde7-0x1d1;let _0x4315be=_0xae527a[_0x6dcde7];return _0x4315be;},_0x6dcd(_0x4e732e,_0xc26307);}m=He([A(0x0,_0xb91b10(_0x13efe5)),A(0x1,_0x2066c5)],m);const ye=_0x2c17bd(0x235),T={};function _0xae52(){const _0x40ee8b=['_commandService','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','requireSession','displayName','get','idSuffix','onStarting','LIVESHARE_OPERATION','dispose','You\x27re\x20presenting\x20the\x20document','children','override','You\x27re\x20not\x20following\x20the\x20presenter','778388HjjhZk','UNIVER_UNKNOWN','registerInitialStateReporter','univerjs-icon\x20univerjs-icon-','xlink:href','presenter','You\x27are\x20offline.','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','default','defineProperty','forEach','following','button','add','_fetchOperations','getInitialStates','FOLLOWING','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','values','_startLiveShareCoordinator','ONLINE','string','http://www.w3.org/2000/svg','getValue','offline','_mountLiveShare','registerComponent','_commandDisposable','substring','4IaNogR','getLiveShareCoordinatorSync','colorChannel1','_handleOnline','from','_handleTerminate','IDLE','_collabSession','asObservable','sessionStatus$','next','1em','current','tag','getUnitId','use','set','status$','symbol','4297007InuhqR','toString','stringify','delete','_injector','complete','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','18nIahkE','UNIVER_SHEET','getTypeOfUnitDisposed$','entries','_init','dispose$','_entities','_stopFollowing','280PuBcim','executeCommand','302898cZIFaY','_presenter','params','clear','unitId','getStatus','getLiveShareCoordinator','currentColor','OFFLINE','stopPresenting','url(#$1','getCurrentTypeOfUnit$','stopFollowing','send','attrs','pipe','176396MgLtAD','replace','_config','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_REQUEST_HOST','startFollowing','sheet','475990AnLsXP','463080ilZrEI','text','idle','_unitID','shouldShareOperation','_status$','_reporters','_stopPresenting','_handleNewChangeSets','event$','tryStartPresenting','_univerInstanceService','operations','evenodd','mutations','registerSharedOperation','presenting','mask','LiveShareIcon','not-following','includes','getOwnPropertyDescriptor','_handleOperation','init','fill','5SHPAQV','path','Present\x20this\x20document','_uiPartsService','29244SHabli','defIds','reverse','div','_configService','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','univer-size-4','Stop\x20following','_startFollowing','length','defs','_startPresenting','type','setConfig','has','_collabSessionService','end','map','trim','PRESENTING','find','NEW_CHANGESETS','subscribe','_beIdle','parse','live-share.config','_liveShareService','data'];_0xae52=function(){return _0x40ee8b;};return _0xae52();}var Ue=Object[_0x2c17bd(0x214)],Ve=(_0x217ad0,_0x224ef1,_0x34314d,_0x7bd26a)=>{for(var _0x137332=_0x7bd26a>0x1?void 0x0:_0x7bd26a?Ue(_0x224ef1,_0x34314d):_0x224ef1,_0x33d2fe=_0x217ad0['length']-0x1,_0x29934a;_0x33d2fe>=0x0;_0x33d2fe--)(_0x29934a=_0x217ad0[_0x33d2fe])&&(_0x137332=_0x29934a(_0x137332)||_0x137332);return _0x137332;},je=(_0x4c8e1e,_0xcf5ea2)=>(_0x5df688,_0x35e3c5)=>_0xcf5ea2(_0x5df688,_0x35e3c5,_0x4c8e1e);let I=class extends _0x340cc7{constructor(_0x2b07e9){const _0x3e2627=_0x2c17bd;super(),this['_liveShareService']=_0x2b07e9,this[_0x3e2627(0x1e1)]();}['_init'](){const _0x199b69=_0x2c17bd;[_0x3270d8['id'],_0x552a0c['id'],_0x411a50['id']][_0x199b69(0x252)](_0xe6353c=>{const _0x4b0121=_0x199b69;this['disposeWithMe'](this[_0x4b0121(0x236)]['registerSharedOperation'](_0xe6353c));});}};I=Ve([je(0x0,_0xb91b10(L))],I);var Me=Object[_0x2c17bd(0x251)],ke=Object[_0x2c17bd(0x214)],Ge=(_0x2c8443,_0x481ed6,_0x435fe3)=>_0x481ed6 in _0x2c8443?Me(_0x2c8443,_0x481ed6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435fe3}):_0x2c8443[_0x481ed6]=_0x435fe3,We=(_0x46b691,_0xee6291,_0x3cab60,_0x4e6182)=>{const _0x255d72=_0x2c17bd;for(var _0x91af07=_0x4e6182>0x1?void 0x0:_0x4e6182?ke(_0xee6291,_0x3cab60):_0xee6291,_0x7391f2=_0x46b691[_0x255d72(0x225)]-0x1,_0x5944a1;_0x7391f2>=0x0;_0x7391f2--)(_0x5944a1=_0x46b691[_0x7391f2])&&(_0x91af07=_0x5944a1(_0x91af07)||_0x91af07);return _0x91af07;},F=(_0x4043e1,_0x31c920)=>(_0x489a54,_0x290d7e)=>_0x31c920(_0x489a54,_0x290d7e,_0x4043e1),B=(_0x3c6a58,_0x5e6dde,_0x41706a)=>Ge(_0x3c6a58,typeof _0x5e6dde!=_0x2c17bd(0x1d3)?_0x5e6dde+'':_0x5e6dde,_0x41706a);const Ye=_0x2c17bd(0x23a);let b=class extends _0x24270d{constructor(_0x20754a=T,_0x5f3d9b,_0x25e57d){const _0x15807a=_0x2c17bd;super(),this[_0x15807a(0x1f9)]=_0x20754a,this[_0x15807a(0x1d8)]=_0x5f3d9b,this[_0x15807a(0x220)]=_0x25e57d;const {..._0x40acd5}=_0x51df76({},T,this[_0x15807a(0x1f9)]);this[_0x15807a(0x220)][_0x15807a(0x229)](ye,_0x40acd5);}[_0x2c17bd(0x23f)](){const _0x1064ca=_0x2c17bd;_0x312d92(this[_0x1064ca(0x1d8)],_0x43af49([[L],[S],[I],[m]],this[_0x1064ca(0x1f9)][_0x1064ca(0x244)])),_0x5199da(this[_0x1064ca(0x1d8)],[[I]]);}['onRendered'](){const _0x37eac9=_0x2c17bd;_0x5199da(this[_0x37eac9(0x1d8)],[[m]]);}};B(b,'type',_0x45889c[_0x2c17bd(0x247)]),B(b,'pluginName',Ye),b=We([_0x1c6ccb(_0x172e42),F(0x1,_0xb91b10(_0x13efe5)),F(0x2,_0x45ac9b)],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(_0xb8513f,_0x5c2c9a){const _0x39bf04=_0x2144,_0x527e9f=_0xb8513f();while(!![]){try{const _0x174af6=-parseInt(_0x39bf04(0x84))/0x1*(-parseInt(_0x39bf04(0x9c))/0x2)+parseInt(_0x39bf04(0x94))/0x3*(-parseInt(_0x39bf04(0x92))/0x4)+-parseInt(_0x39bf04(0x8b))/0x5+-parseInt(_0x39bf04(0x7f))/0x6*(parseInt(_0x39bf04(0x70))/0x7)+-parseInt(_0x39bf04(0x7a))/0x8+parseInt(_0x39bf04(0x7b))/0x9+parseInt(_0x39bf04(0x98))/0xa*(parseInt(_0x39bf04(0x68))/0xb);if(_0x174af6===_0x5c2c9a)break;else _0x527e9f['push'](_0x527e9f['shift']());}catch(_0x4c3797){_0x527e9f['push'](_0x527e9f['shift']());}}}(_0x3237,0x8d404),function(_0x32bc3c,_0x582827){const _0x34cd1=_0x2144;typeof exports=='object'&&typeof module<'u'?_0x582827(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==_0x34cd1(0x9d)&&define[_0x34cd1(0x7e)]?define([_0x34cd1(0x96),_0x34cd1(0x72),'@univerjs/sheets',_0x34cd1(0x76),_0x34cd1(0x66),_0x34cd1(0x6a)],_0x582827):(_0x32bc3c=typeof globalThis<'u'?globalThis:_0x32bc3c||self,_0x582827(_0x32bc3c[_0x34cd1(0x77)],_0x32bc3c[_0x34cd1(0x9a)],_0x32bc3c[_0x34cd1(0x81)],_0x32bc3c[_0x34cd1(0x88)],_0x32bc3c['UniverSheetsFacade'],_0x32bc3c[_0x34cd1(0x80)]));}(this,function(_0x2749f0,_0x46e997,_0x3a8326,_0x2a4215,_0x44351d,_0x5b2c1a){'use strict';const _0x5e02e4=_0x2144;class _0x25d5bc extends _0x44351d[_0x5e02e4(0x75)]{[_0x5e02e4(0x73)](_0x5a2d7f,_0x286038,_0x27072f,_0x5aaad9,_0x3636a7){const _0xcec275=_0x5e02e4,_0x580f26=_0x5a2d7f[_0xcec275(0x78)](_0x2749f0[_0xcec275(0x91)]),_0x3bc7d4=_0x5a2d7f['get'](_0x46e997[_0xcec275(0x6e)]),_0x4cf7ee=_0x286038['getUnitId'](),_0x2e8be8=_0x286038[_0xcec275(0x7c)](),_0x4c4cd4=_0x580f26['getLiveShareCoordinatorSync'](_0x4cf7ee);(_0x4c4cd4==null?void 0x0:_0x4c4cd4['getStatus']())!==_0x2749f0[_0xcec275(0x8d)]['PRESENTING']||(_0x27072f['getSheetId']()!==_0x2e8be8[_0xcec275(0x90)]()&&this[_0xcec275(0x83)][_0xcec275(0x6f)](_0x3a8326[_0xcec275(0x82)]['id'],{'unitId':_0x4cf7ee,'subUnitId':_0x27072f[_0xcec275(0x90)]()}),!_0x3bc7d4[_0xcec275(0x93)](_0x4cf7ee))||_0x3636a7[_0xcec275(0x97)](_0x2a4215['SetScrollOperation']['id'],{'unitId':_0x286038['getUnitId'](),'sheetId':_0x27072f['getSheetId'](),'sheetViewStartRow':_0x5aaad9[_0xcec275(0x67)],'sheetViewStartColumn':_0x5aaad9[_0xcec275(0x85)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x44351d[_0x5e02e4(0x75)][_0x5e02e4(0x95)](_0x25d5bc);class _0x485338 extends _0x5b2c1a['FUniver']{[_0x5e02e4(0x6d)](){const _0x54950c=_0x5e02e4;var _0x12ba32,_0x27c742;const _0x194610=this[_0x54950c(0x6c)]['get'](_0x2749f0['LiveShareController']),_0x573c39=(_0x12ba32=this[_0x54950c(0x86)]())==null?void 0x0:_0x12ba32[_0x54950c(0x89)]();if(!_0x573c39)throw new Error(_0x54950c(0x79));const _0x4e2231=_0x194610[_0x54950c(0x6b)](_0x573c39);return(_0x27c742=_0x4e2231==null?void 0x0:_0x4e2231[_0x54950c(0x69)]())!=null?_0x27c742:_0x2749f0[_0x54950c(0x8d)][_0x54950c(0x8a)];}[_0x5e02e4(0x9b)](){const _0xa2b391=_0x5e02e4;var _0x229cc7;const _0x5ab752=this[_0xa2b391(0x6c)][_0xa2b391(0x78)](_0x2749f0['LiveShareController']),_0x5e4012=(_0x229cc7=this['getActiveWorkbook']())==null?void 0x0:_0x229cc7[_0xa2b391(0x89)]();if(!_0x5e4012)throw new Error(_0xa2b391(0x79));const _0x431f83=_0x5ab752[_0xa2b391(0x6b)](_0x5e4012);if(!_0x431f83)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x431f83[_0xa2b391(0x9b)]();}[_0x5e02e4(0x7d)](){const _0x17b1c8=_0x5e02e4;var _0x146ffb;const _0x50cca0=this[_0x17b1c8(0x6c)][_0x17b1c8(0x78)](_0x2749f0[_0x17b1c8(0x91)]),_0x5afbaa=(_0x146ffb=this['getActiveWorkbook']())==null?void 0x0:_0x146ffb[_0x17b1c8(0x89)]();if(!_0x5afbaa)throw new Error(_0x17b1c8(0x79));const _0x26eb6c=_0x50cca0[_0x17b1c8(0x6b)](_0x5afbaa);if(!_0x26eb6c)throw new Error(_0x17b1c8(0x87));_0x26eb6c['stopFollowing']();}[_0x5e02e4(0x71)](){const _0x4f2b52=_0x5e02e4;var _0x46eb7b;const _0x33c5f5=this[_0x4f2b52(0x6c)][_0x4f2b52(0x78)](_0x2749f0['LiveShareController']),_0x2b851c=(_0x46eb7b=this['getActiveWorkbook']())==null?void 0x0:_0x46eb7b['getId']();if(!_0x2b851c)throw new Error(_0x4f2b52(0x79));const _0x221aeb=_0x33c5f5[_0x4f2b52(0x6b)](_0x2b851c);if(!_0x221aeb)throw new Error(_0x4f2b52(0x87));_0x221aeb[_0x4f2b52(0x74)]();}[_0x5e02e4(0x8e)](){const _0x4c4b18=_0x5e02e4;var _0x380df7;const _0x90b47=this[_0x4c4b18(0x6c)][_0x4c4b18(0x78)](_0x2749f0[_0x4c4b18(0x91)]),_0x185af0=(_0x380df7=this[_0x4c4b18(0x86)]())==null?void 0x0:_0x380df7[_0x4c4b18(0x89)]();if(!_0x185af0)throw new Error('No\x20active\x20workbook\x20found.');const _0x285656=_0x90b47[_0x4c4b18(0x6b)](_0x185af0);if(!_0x285656)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x285656['stopPresenting']();}}_0x5b2c1a[_0x5e02e4(0x8c)][_0x5e02e4(0x95)](_0x485338);class _0x554e5a extends _0x5b2c1a[_0x5e02e4(0x99)]{get[_0x5e02e4(0x8f)](){const _0x54ac1b=_0x5e02e4;return _0x2749f0[_0x54ac1b(0x8d)];}}_0x5b2c1a[_0x5e02e4(0x99)][_0x5e02e4(0x95)](_0x554e5a);}));function _0x2144(_0x1e3a26,_0x360ce4){const _0x3237c1=_0x3237();return _0x2144=function(_0x214440,_0x2d2b75){_0x214440=_0x214440-0x66;let _0xf50ff8=_0x3237c1[_0x214440];return _0xf50ff8;},_0x2144(_0x1e3a26,_0x360ce4);}function _0x3237(){const _0x5e566f=['25137178rayIID','getStatus','@univerjs/core/facade','getLiveShareCoordinatorSync','_injector','getLiveShareStatus','IRenderManagerService','executeCommand','273wpTNnL','startPresenting','@univerjs/engine-render','_initialize','tryStartPresenting','FRange','@univerjs/sheets-ui','UniverProLiveShare','get','No\x20active\x20workbook\x20found.','4645016sDINBf','4943439uPlrcZ','getActiveSheet','stopFollowing','amd','164292KeXwgk','UniverCoreFacade','UniverSheets','SetWorksheetActiveOperation','_commandService','109579wGjHgn','startColumn','getActiveWorkbook','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverSheetsUi','getId','IDLE','5374020SShCbD','FUniver','LiveShareStatus','stopPresenting','LiveShareStatusEnum','getSheetId','LiveShareController','108956UKYCxd','getRenderById','33WzCndv','extend','@univerjs-pro/live-share','syncExecuteCommand','10lloZRs','FEnum','UniverEngineRender','startFollowing','14AMhHST','function','@univerjs/sheets/facade','startRow'];_0x3237=function(){return _0x5e566f;};return _0x3237();}
1
+ (function(_0x17032f,_0x80f66e){const _0xd820f5=_0x2a8f,_0x11f3f6=_0x17032f();while(!![]){try{const _0x21146f=-parseInt(_0xd820f5(0xbf))/0x1+-parseInt(_0xd820f5(0xaa))/0x2*(parseInt(_0xd820f5(0xd6))/0x3)+parseInt(_0xd820f5(0xcc))/0x4*(-parseInt(_0xd820f5(0xce))/0x5)+-parseInt(_0xd820f5(0xd1))/0x6+-parseInt(_0xd820f5(0xb9))/0x7+parseInt(_0xd820f5(0xca))/0x8*(-parseInt(_0xd820f5(0xe0))/0x9)+parseInt(_0xd820f5(0xd9))/0xa;if(_0x21146f===_0x80f66e)break;else _0x11f3f6['push'](_0x11f3f6['shift']());}catch(_0x2b8ca9){_0x11f3f6['push'](_0x11f3f6['shift']());}}}(_0x5690,0xea9bc),function(_0x23cadb,_0x23a61e){const _0x159e75=_0x2a8f;typeof exports==_0x159e75(0xdb)&&typeof module<'u'?_0x23a61e(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==_0x159e75(0xcd)&&define['amd']?define([_0x159e75(0xc7),_0x159e75(0xc0),_0x159e75(0xbc),_0x159e75(0xbb),_0x159e75(0xba),_0x159e75(0xdf)],_0x23a61e):(_0x23cadb=typeof globalThis<'u'?globalThis:_0x23cadb||self,_0x23a61e(_0x23cadb[_0x159e75(0xc1)],_0x23cadb['UniverEngineRender'],_0x23cadb[_0x159e75(0xbe)],_0x23cadb[_0x159e75(0xb3)],_0x23cadb[_0x159e75(0xd8)],_0x23cadb['UniverCoreFacade']));}(this,function(_0x1270a2,_0x4982f0,_0x175776,_0x5ca673,_0x3ddf9e,_0x25aca4){'use strict';const _0x4b97c8=_0x2a8f;class _0x5f3d0a extends _0x3ddf9e[_0x4b97c8(0xd2)]{['_initialize'](_0x176164,_0x25a5f3,_0x519bba,_0x1d4d42,_0x409a19){const _0xf21868=_0x4b97c8,_0x79d68e=_0x176164[_0xf21868(0xc4)](_0x1270a2[_0xf21868(0xc2)]),_0x1190cb=_0x176164['get'](_0x4982f0[_0xf21868(0xc9)]),_0x21c4c0=_0x25a5f3['getUnitId'](),_0x61a84=_0x25a5f3[_0xf21868(0xc8)](),_0x3401e7=_0x79d68e[_0xf21868(0xc3)](_0x21c4c0);(_0x3401e7==null?void 0x0:_0x3401e7[_0xf21868(0xb4)]())!==_0x1270a2[_0xf21868(0xbd)]['PRESENTING']||(_0x519bba[_0xf21868(0xac)]()!==_0x61a84[_0xf21868(0xac)]()&&this[_0xf21868(0xae)][_0xf21868(0xab)](_0x175776[_0xf21868(0xb5)]['id'],{'unitId':_0x21c4c0,'subUnitId':_0x519bba[_0xf21868(0xac)]()}),!_0x1190cb[_0xf21868(0xb6)](_0x21c4c0))||_0x409a19[_0xf21868(0xd7)](_0x5ca673[_0xf21868(0xd0)]['id'],{'unitId':_0x25a5f3[_0xf21868(0xb2)](),'sheetId':_0x519bba[_0xf21868(0xac)](),'sheetViewStartRow':_0x1d4d42[_0xf21868(0xda)],'sheetViewStartColumn':_0x1d4d42[_0xf21868(0xaf)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3ddf9e[_0x4b97c8(0xd2)][_0x4b97c8(0xdc)](_0x5f3d0a);class _0x16a1da extends _0x25aca4[_0x4b97c8(0xb1)]{[_0x4b97c8(0xc5)](){const _0x792a65=_0x4b97c8;var _0x265058,_0x25b8fb;const _0x105f42=this[_0x792a65(0xd5)]['get'](_0x1270a2[_0x792a65(0xc2)]),_0xa107a3=(_0x265058=this[_0x792a65(0xad)]())==null?void 0x0:_0x265058[_0x792a65(0xe1)]();if(!_0xa107a3)throw new Error('No\x20active\x20workbook\x20found.');const _0x223dbc=_0x105f42[_0x792a65(0xc3)](_0xa107a3);return(_0x25b8fb=_0x223dbc==null?void 0x0:_0x223dbc[_0x792a65(0xb4)]())!=null?_0x25b8fb:_0x1270a2[_0x792a65(0xbd)][_0x792a65(0xd4)];}[_0x4b97c8(0xd3)](){const _0x3e88e4=_0x4b97c8;var _0x84d1b4;const _0x20e92f=this[_0x3e88e4(0xd5)][_0x3e88e4(0xc4)](_0x1270a2[_0x3e88e4(0xc2)]),_0x4aceaf=(_0x84d1b4=this[_0x3e88e4(0xad)]())==null?void 0x0:_0x84d1b4[_0x3e88e4(0xe1)]();if(!_0x4aceaf)throw new Error(_0x3e88e4(0xdd));const _0x578d43=_0x20e92f[_0x3e88e4(0xc3)](_0x4aceaf);if(!_0x578d43)throw new Error(_0x3e88e4(0xc6));_0x578d43[_0x3e88e4(0xd3)]();}[_0x4b97c8(0xcb)](){const _0x2806c7=_0x4b97c8;var _0x2de1b2;const _0x47dd1c=this[_0x2806c7(0xd5)][_0x2806c7(0xc4)](_0x1270a2[_0x2806c7(0xc2)]),_0xc04527=(_0x2de1b2=this[_0x2806c7(0xad)]())==null?void 0x0:_0x2de1b2[_0x2806c7(0xe1)]();if(!_0xc04527)throw new Error(_0x2806c7(0xdd));const _0x3deb9c=_0x47dd1c[_0x2806c7(0xc3)](_0xc04527);if(!_0x3deb9c)throw new Error(_0x2806c7(0xc6));_0x3deb9c['stopFollowing']();}[_0x4b97c8(0xb0)](){const _0x202c19=_0x4b97c8;var _0x46173f;const _0x3576f1=this[_0x202c19(0xd5)][_0x202c19(0xc4)](_0x1270a2['LiveShareController']),_0x57955a=(_0x46173f=this['getActiveWorkbook']())==null?void 0x0:_0x46173f['getId']();if(!_0x57955a)throw new Error(_0x202c19(0xdd));const _0x5bc437=_0x3576f1[_0x202c19(0xc3)](_0x57955a);if(!_0x5bc437)throw new Error(_0x202c19(0xc6));_0x5bc437[_0x202c19(0xb7)]();}[_0x4b97c8(0xde)](){const _0x29cfd0=_0x4b97c8;var _0xc71ee;const _0x14904f=this[_0x29cfd0(0xd5)]['get'](_0x1270a2['LiveShareController']),_0x22cfe2=(_0xc71ee=this[_0x29cfd0(0xad)]())==null?void 0x0:_0xc71ee[_0x29cfd0(0xe1)]();if(!_0x22cfe2)throw new Error('No\x20active\x20workbook\x20found.');const _0x2e39cd=_0x14904f['getLiveShareCoordinatorSync'](_0x22cfe2);if(!_0x2e39cd)throw new Error(_0x29cfd0(0xc6));_0x2e39cd[_0x29cfd0(0xde)]();}}_0x25aca4[_0x4b97c8(0xb1)]['extend'](_0x16a1da);class _0x1752c8 extends _0x25aca4['FEnum']{get[_0x4b97c8(0xcf)](){const _0x18d45e=_0x4b97c8;return _0x1270a2[_0x18d45e(0xbd)];}}_0x25aca4[_0x4b97c8(0xb8)]['extend'](_0x1752c8);}));function _0x2a8f(_0x48bab0,_0x32070a){const _0x5690c2=_0x5690();return _0x2a8f=function(_0x2a8f47,_0xb6d50c){_0x2a8f47=_0x2a8f47-0xaa;let _0x4f2416=_0x5690c2[_0x2a8f47];return _0x4f2416;},_0x2a8f(_0x48bab0,_0x32070a);}function _0x5690(){const _0x723d37=['getId','3746168FREKVx','executeCommand','getSheetId','getActiveWorkbook','_commandService','startColumn','startPresenting','FUniver','getUnitId','UniverSheetsUi','getStatus','SetWorksheetActiveOperation','getRenderById','tryStartPresenting','FEnum','7711543lefSfx','@univerjs/sheets/facade','@univerjs/sheets-ui','@univerjs/sheets','LiveShareStatus','UniverSheets','698758fUSWsa','@univerjs/engine-render','UniverProLiveShare','LiveShareController','getLiveShareCoordinatorSync','get','getLiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs-pro/live-share','getActiveSheet','IRenderManagerService','8872rBjXEO','stopFollowing','29384rcySUm','function','1055sfVbeH','LiveShareStatusEnum','SetScrollOperation','1144992fQtrZM','FRange','startFollowing','IDLE','_injector','3bexUGe','syncExecuteCommand','UniverSheetsFacade','73855840nzLpdc','startRow','object','extend','No\x20active\x20workbook\x20found.','stopPresenting','@univerjs/core/facade','8199JcMswX'];_0x5690=function(){return _0x723d37;};return _0x5690();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x161b(_0x1dbaf4,_0x3f0613){const _0x4552ac=_0x4552();return _0x161b=function(_0x161bb5,_0x407708){_0x161bb5=_0x161bb5-0x170;let _0x4363d5=_0x4552ac[_0x161bb5];return _0x4363d5;},_0x161b(_0x1dbaf4,_0x3f0613);}function _0x4552(){const _0x546c9a=['PRESENTING','displayName','onCommandExecuted','executeCommand','none','_liveShareService','885fSmqUe','BehaviorSubject','_presenter','LIVESHARE_NEW_HOST','DesktopLiveShareController','_commandDisposable','SetWorksheetActiveOperation','_mountLiveShare','status$','UniverSheetsUi','FOLLOWING','clear','671qXwNzI','@univerjs/core','LiveShareStatus','171LwpKtW','LiveShare','idSuffix','56412VFmRmV','_collabSession','throttleTime','Inject','defIds','SAME_OPERATION_SHARE_INTERVAL','@univerjs/ui','_handleNewChangeSets','@univerjs-pro/collaboration','rxjs/operators','memberID','colorChannel1','type','mergeOverrideWithDependencies','attrs','LIVESHARE_OPERATION','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','jsx','toString','125NkJyCB','@univerjs/sheets','sheet','UniverLiveSharePlugin','univer-mb-3\x20univer-w-full\x20univer-text-sm','getCurrentTypeOfUnit$','registerDependencies','defineProperty','HEADER_MENU','_entities','amd','fill','set','useState','Present\x20this\x20document','_startPresenting','operators','registerComponent','override','tryStartPresenting','params','_config','currentColor','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','useDependency','getTypeOfUnitAdded$','takeUntil','getStatus','OFFLINE','IConfigService','shouldShareOperation','IUIPartsService','pluginName','delete','clsx','http://www.w3.org/2000/svg','CollaborationSessionService','react/jsx-runtime','dispose$','DependentOn','evenodd','14rEiPTB','_collabSessionService','event$','find','presenting','subscribe','RxDisposable','send','mutations','_stopPresenting','_sharedOperations','registerSharedOperation','101GwGrNe','getOwnPropertyDescriptor','toStringTag','_unitID','path','getLiveShareCoordinatorSync','_handleOnline','touchDependencies','UniverCollaborationClientPlugin','148290jNCRcQ','NOT_FOLLOWING','_handleOffline','jsxs','offline','idle','_injector','symbol','LIVESHARE_TERMINATE','React','_startLiveShareCoordinator','get','parse','56kpNdCl','text','assign','next','UniverIcon','pipe','disposeWithMe','2495103EdfGZb','toDisposable','Module','ICommandService','stringify','svg','add','UniverSheets','react','rxjs','IDLE','complete','1em','SetScrollOperation','_commandService','live-share.config','_reporters','Stop\x20presenting','getValue','end','Dropdown','Start\x20following','0\x200\x2017\x2017','_configService','replace','string','dispose','init','_startFollowing','has','@univerjs/design','@univerjs-pro/collaboration-client','default','onRendered','map','button','_handleTerminate','You\x27re\x20not\x20following\x20the\x20presenter','_univerInstanceService','asObservable','current','_fetchOperations','xlink:href','mask','forwardRef','createElement','Fragment','_beIdle','Plugin','forEach','You\x27re\x20following\x20the\x20presenter','63749kXfDjR','LiveShareController','getLiveShareCoordinator','Disposable','NEW_CHANGESETS','getMemberID','live-share-icon','getUnitId','stopFollowing','requireSession','UniverInstanceType','BuiltInUIPart','createInstance','@univerjs/sheets-ui','UniverProCollaboration','tag','div','UNIVER_SHEET','operations','function','includes','DisposableCollection','startFollowing','entries','random','OPERATION','onStarting','setConfig','not-following','You\x27are\x20offline.','_status$','connectInjector','UniverProLiveShare','use','_init','Injector','values','_stopFollowing','trim','data','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','UniverProCollaborationClient','_status','_uiPartsService','UniverDesign','CollaborationEvent','LiveShareCoordinator','children','defs','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','useRef','length','useEffect','2458LfaQDc','getConfig','4492qjRCYQ','CommandType','UNIVER_UNKNOWN','InsertSheetMutation','36996XXKHSl','url(#$1','LIVESHARE_FETCH_OPERATIONS'];_0x4552=function(){return _0x546c9a;};return _0x4552();}(function(_0x2f6a00,_0xf9b080){const _0x4f14a7=_0x161b,_0x465fe3=_0x2f6a00();while(!![]){try{const _0x4efc34=parseInt(_0x4f14a7(0x184))/0x1*(parseInt(_0x4f14a7(0x20a))/0x2)+-parseInt(_0x4f14a7(0x219))/0x3*(-parseInt(_0x4f14a7(0x20c))/0x4)+-parseInt(_0x4f14a7(0x23e))/0x5*(-parseInt(_0x4f14a7(0x210))/0x6)+parseInt(_0x4f14a7(0x1d4))/0x7*(-parseInt(_0x4f14a7(0x19a))/0x8)+-parseInt(_0x4f14a7(0x228))/0x9*(parseInt(_0x4f14a7(0x18d))/0xa)+-parseInt(_0x4f14a7(0x225))/0xb*(parseInt(_0x4f14a7(0x22b))/0xc)+parseInt(_0x4f14a7(0x1a1))/0xd*(parseInt(_0x4f14a7(0x178))/0xe);if(_0x4efc34===_0xf9b080)break;else _0x465fe3['push'](_0x465fe3['shift']());}catch(_0x1623d5){_0x465fe3['push'](_0x465fe3['shift']());}}}(_0x4552,0x29512),function(_0x3c3bd0,_0x3866ae){const _0x5d5dda=_0x161b;typeof exports=='object'&&typeof module<'u'?_0x3866ae(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==_0x5d5dda(0x1e7)&&define[_0x5d5dda(0x248)]?define(['exports',_0x5d5dda(0x226),_0x5d5dda(0x231),_0x5d5dda(0x174),_0x5d5dda(0x1bf),_0x5d5dda(0x1a9),_0x5d5dda(0x233),_0x5d5dda(0x1c0),_0x5d5dda(0x23f),'rxjs',_0x5d5dda(0x234),_0x5d5dda(0x1e1)],_0x3866ae):(_0x3c3bd0=typeof globalThis<'u'?globalThis:_0x3c3bd0||self,_0x3866ae(_0x3c3bd0[_0x5d5dda(0x1f4)]={},_0x3c3bd0['UniverCore'],_0x3c3bd0['UniverUi'],_0x3c3bd0['React'],_0x3c3bd0[_0x5d5dda(0x201)],_0x3c3bd0[_0x5d5dda(0x196)],_0x3c3bd0[_0x5d5dda(0x1e2)],_0x3c3bd0[_0x5d5dda(0x1fe)],_0x3c3bd0[_0x5d5dda(0x1a8)],_0x3c3bd0[_0x5d5dda(0x1aa)],_0x3c3bd0[_0x5d5dda(0x1aa)][_0x5d5dda(0x24e)],_0x3c3bd0[_0x5d5dda(0x222)]));}(this,function(_0x2491c7,_0x4042ad,_0xb7e494,_0x487dbc,_0x1656cf,_0x284080,_0x15dce3,_0x1c5d61,_0x1b9810,_0x301d6d,_0x53bd07,_0x5dafdd){'use strict';const _0xe07925=_0x161b;var _0x5ac212=Object[_0xe07925(0x245)],_0x2c39bd=(_0x27ad98,_0x3050a4,_0x24b607)=>_0x3050a4 in _0x27ad98?_0x5ac212(_0x27ad98,_0x3050a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24b607}):_0x27ad98[_0x3050a4]=_0x24b607,_0x2b73de=(_0x59a309,_0x252e74,_0x4fafbe)=>_0x2c39bd(_0x59a309,typeof _0x252e74!=_0xe07925(0x194)?_0x252e74+'':_0x252e74,_0x4fafbe);function _0x4b1ba9({ref:_0x5983d5,..._0x5a1d5d}){const _0x20edaf=_0xe07925,{icon:_0x49236d,id:_0x352701,className:_0x2567f0,extend:_0x55a75d,..._0x1953c8}=_0x5a1d5d,_0x5a4480=('univerjs-icon\x20univerjs-icon-'+_0x352701+'\x20'+(_0x2567f0||''))[_0x20edaf(0x1fa)](),_0x27fda2=_0x284080[_0x20edaf(0x207)]('_'+_0x4f9bdc());return _0x353424(_0x49236d,''+_0x352701,{'defIds':_0x49236d[_0x20edaf(0x22f)],'idSuffix':_0x27fda2[_0x20edaf(0x1c9)]},{'ref':_0x5983d5,'className':_0x5a4480,..._0x1953c8},_0x55a75d);}function _0x353424(_0x57db41,_0x5b4b4f,_0x42d6a2,_0x5c62fd,_0x2f0612){const _0x272a27=_0xe07925;return _0x284080[_0x272a27(0x1ce)](_0x57db41[_0x272a27(0x1e3)],{'key':_0x5b4b4f,..._0x47b9fd(_0x57db41,_0x42d6a2,_0x2f0612),..._0x5c62fd},(_0x131415(_0x57db41,_0x42d6a2)[_0x272a27(0x204)]||[])[_0x272a27(0x1c3)]((_0xe13379,_0x410000)=>_0x353424(_0xe13379,_0x5b4b4f+'-'+_0x57db41[_0x272a27(0x1e3)]+'-'+_0x410000,_0x42d6a2,void 0x0,_0x2f0612)));}function _0x47b9fd(_0x315a14,_0x311eeb,_0x38ef44){const _0x5df7d6=_0xe07925,_0x466af4={..._0x315a14[_0x5df7d6(0x239)]};_0x38ef44!=null&&_0x38ef44['colorChannel1']&&_0x466af4[_0x5df7d6(0x249)]===_0x5df7d6(0x236)&&(_0x466af4[_0x5df7d6(0x249)]=_0x38ef44[_0x5df7d6(0x236)]),_0x315a14[_0x5df7d6(0x1e3)]===_0x5df7d6(0x1cc)&&_0x466af4['id']&&(_0x466af4['id']=_0x466af4['id']+_0x311eeb[_0x5df7d6(0x22a)]),Object[_0x5df7d6(0x1eb)](_0x466af4)['forEach'](([_0x332d3a,_0x30cf8f])=>{const _0x3bcbc7=_0x5df7d6;_0x332d3a===_0x3bcbc7(0x1cc)&&typeof _0x30cf8f=='string'&&(_0x466af4[_0x332d3a]=_0x30cf8f['replace'](/url\(#(.*)\)/,_0x3bcbc7(0x211)+_0x311eeb[_0x3bcbc7(0x22a)]+')'));});const {defIds:_0x4f6957}=_0x311eeb;return!_0x4f6957||_0x4f6957[_0x5df7d6(0x208)]===0x0||(_0x315a14['tag']===_0x5df7d6(0x1f5)&&_0x466af4[_0x5df7d6(0x1cb)]&&(_0x466af4['xlink:href']=_0x466af4[_0x5df7d6(0x1cb)]+_0x311eeb[_0x5df7d6(0x22a)]),Object[_0x5df7d6(0x1eb)](_0x466af4)[_0x5df7d6(0x1d2)](([_0x4e1edb,_0x10d3f9])=>{const _0x44ecbf=_0x5df7d6;typeof _0x10d3f9==_0x44ecbf(0x1ba)&&(_0x466af4[_0x4e1edb]=_0x10d3f9[_0x44ecbf(0x1b9)](/url\(#(.*)\)/,_0x44ecbf(0x211)+_0x311eeb[_0x44ecbf(0x22a)]+')'));})),_0x466af4;}function _0x131415(_0x50566f,_0x3641fd){const _0x44d6c6=_0xe07925;var _0x116a62;const {defIds:_0x477488}=_0x3641fd;return!_0x477488||_0x477488['length']===0x0?_0x50566f:_0x50566f[_0x44d6c6(0x1e3)]===_0x44d6c6(0x205)&&((_0x116a62=_0x50566f[_0x44d6c6(0x204)])!=null&&_0x116a62[_0x44d6c6(0x208)])?{..._0x50566f,'children':_0x50566f['children'][_0x44d6c6(0x1c3)](_0x16fc6b=>typeof _0x16fc6b[_0x44d6c6(0x239)]['id']=='string'&&_0x477488&&_0x477488[_0x44d6c6(0x1e8)](_0x16fc6b[_0x44d6c6(0x239)]['id'])?{..._0x16fc6b,'attrs':{..._0x16fc6b[_0x44d6c6(0x239)],'id':_0x16fc6b['attrs']['id']+_0x3641fd[_0x44d6c6(0x22a)]}}:_0x16fc6b)}:_0x50566f;}function _0x4f9bdc(){const _0x474af0=_0xe07925;return Math[_0x474af0(0x1ec)]()[_0x474af0(0x23d)](0x24)['substring'](0x2,0x8);}_0x4b1ba9[_0xe07925(0x214)]=_0xe07925(0x19e);const _0x4931fd={'tag':_0xe07925(0x1a6),'attrs':{'xmlns':_0xe07925(0x172),'fill':_0xe07925(0x217),'viewBox':_0xe07925(0x1b7),'width':_0xe07925(0x1ad),'height':_0xe07925(0x1ad)},'children':[{'tag':_0xe07925(0x188),'attrs':{'fill':_0xe07925(0x254),'d':_0xe07925(0x23b)}},{'tag':_0xe07925(0x188),'attrs':{'fill':_0xe07925(0x254),'d':_0xe07925(0x1fd),'fillRule':'evenodd','clipRule':_0xe07925(0x177)}}]},_0x4eee83=_0x284080[_0xe07925(0x1cd)](function(_0x11eb02,_0x16ea42){const _0x478e7c=_0xe07925;return _0x284080[_0x478e7c(0x1ce)](_0x4b1ba9,Object[_0x478e7c(0x19c)]({},_0x11eb02,{'id':_0x478e7c(0x1da),'ref':_0x16ea42,'icon':_0x4931fd}));});_0x4eee83[_0xe07925(0x214)]='LiveShareIcon';class _0x349095 extends _0x4042ad[_0xe07925(0x1d7)]{constructor(){const _0x24a0b5=_0xe07925;super(...arguments),_0x2b73de(this,'_sharedOperations',new Set()),_0x2b73de(this,_0x24a0b5(0x1b1),new Set());}[_0xe07925(0x183)](_0x49bb4a){const _0x326be5=_0xe07925;return this['_sharedOperations'][_0x326be5(0x1a7)](_0x49bb4a),_0x4042ad[_0x326be5(0x1a2)](()=>this[_0x326be5(0x182)]['delete'](_0x49bb4a));}['registerInitialStateReporter'](_0x3f5bd0){const _0x160754=_0xe07925;return this[_0x160754(0x1b1)][_0x160754(0x1a7)](_0x3f5bd0),_0x4042ad[_0x160754(0x1a2)](()=>this[_0x160754(0x1b1)][_0x160754(0x170)](_0x3f5bd0));}[_0xe07925(0x25d)](_0x505b49){const _0xf95b4f=_0xe07925;return this[_0xf95b4f(0x182)][_0xf95b4f(0x1be)](_0x505b49);}['getInitialStates'](_0x5eaa43){const _0x363788=_0xe07925;return Array['from'](this[_0x363788(0x1b1)])['map'](_0x5a37e5=>_0x5a37e5(_0x5eaa43));}}var _0x14874e=Object[_0xe07925(0x185)],_0x2507fd=(_0x57586b,_0x57f2ce,_0x337c3b,_0x4afa70)=>{const _0x5c33f9=_0xe07925;for(var _0x22b41d=_0x4afa70>0x1?void 0x0:_0x4afa70?_0x14874e(_0x57f2ce,_0x337c3b):_0x57f2ce,_0x1373fe=_0x57586b[_0x5c33f9(0x208)]-0x1,_0x12ff93;_0x1373fe>=0x0;_0x1373fe--)(_0x12ff93=_0x57586b[_0x1373fe])&&(_0x22b41d=_0x12ff93(_0x22b41d)||_0x22b41d);return _0x22b41d;},_0x3586da=(_0x306d1a,_0x5d141e)=>(_0x20e10c,_0xff81b2)=>_0x5d141e(_0x20e10c,_0xff81b2,_0x306d1a);_0x2491c7[_0xe07925(0x1d5)]=class extends _0x4042ad[_0xe07925(0x17e)]{constructor(_0x66ae9,_0x207b91,_0x372d17){const _0x1bfd0a=_0xe07925;super(),_0x2b73de(this,_0x1bfd0a(0x247),new Map()),(this[_0x1bfd0a(0x1c7)]=_0x66ae9,this[_0x1bfd0a(0x193)]=_0x207b91,this[_0x1bfd0a(0x179)]=_0x372d17,this[_0x1bfd0a(0x1f6)]());}async['getLiveShareCoordinator'](_0x282a21){const _0x3e82cd=_0xe07925;return this[_0x3e82cd(0x247)][_0x3e82cd(0x1be)](_0x282a21)||await this[_0x3e82cd(0x197)](_0x282a21),this[_0x3e82cd(0x247)][_0x3e82cd(0x198)](_0x282a21);}[_0xe07925(0x189)](_0x271b36){const _0x2da313=_0xe07925;var _0x20b8d7;return(_0x20b8d7=this[_0x2da313(0x247)][_0x2da313(0x198)](_0x271b36))!=null?_0x20b8d7:null;}[_0xe07925(0x1f6)](){const _0x451f49=_0xe07925;this['_univerInstanceService'][_0x451f49(0x258)](_0x4042ad[_0x451f49(0x1de)]['UNIVER_SHEET'])['pipe'](_0x53bd07[_0x451f49(0x259)](this['dispose$']))['subscribe'](async _0x56a978=>{const _0x217198=_0x451f49,_0x2002e7=_0x56a978[_0x217198(0x1db)]();this[_0x217198(0x247)][_0x217198(0x1be)](_0x2002e7)||this[_0x217198(0x197)](_0x2002e7);}),this[_0x451f49(0x1c7)]['getTypeOfUnitDisposed$'](_0x4042ad[_0x451f49(0x1de)][_0x451f49(0x1e5)])[_0x451f49(0x19f)](_0x53bd07[_0x451f49(0x259)](this[_0x451f49(0x175)]))[_0x451f49(0x17d)](_0x53db28=>{const _0x2f6fe5=_0x451f49,_0x3880d7=_0x53db28[_0x2f6fe5(0x1db)](),_0x276077=this['_entities'][_0x2f6fe5(0x198)](_0x3880d7);_0x276077==null||_0x276077['dispose']();});}async[_0xe07925(0x197)](_0x4ffc50){const _0x4ddd44=_0xe07925,_0x42482d=await this['_collabSessionService'][_0x4ddd44(0x1dd)](_0x4ffc50),_0x470cf0=this[_0x4ddd44(0x193)][_0x4ddd44(0x1e0)](_0x2491c7[_0x4ddd44(0x203)],_0x4ffc50,_0x42482d);return _0x470cf0[_0x4ddd44(0x1bc)](),this[_0x4ddd44(0x247)][_0x4ddd44(0x24a)](_0x4ffc50,_0x470cf0),_0x470cf0;}},_0x2491c7['LiveShareController']=_0x2507fd([_0x3586da(0x0,_0x4042ad['IUniverInstanceService']),_0x3586da(0x1,_0x4042ad[_0xe07925(0x22e)](_0x4042ad[_0xe07925(0x1f7)])),_0x3586da(0x2,_0x4042ad[_0xe07925(0x22e)](_0x1c5d61[_0xe07925(0x173)]))],_0x2491c7[_0xe07925(0x1d5)]);var _0x4ab54e=(_0x5cd261=>(_0x5cd261['OFFLINE']=_0xe07925(0x191),_0x5cd261['IDLE']=_0xe07925(0x192),_0x5cd261[_0xe07925(0x223)]=_0xe07925(0x1fc),_0x5cd261[_0xe07925(0x18e)]='not-following',_0x5cd261[_0xe07925(0x213)]=_0xe07925(0x17c),_0x5cd261))(_0x4ab54e||{});const _0x27ee9f=_0xe07925(0x230),_0x1aeee1=0xc8;_0x2491c7[_0xe07925(0x203)]=class extends _0x4042ad[_0xe07925(0x17e)]{constructor(_0x2cad67,_0x6336b9,_0x321583,_0x6a3c57,_0x168fe1){const _0x412856=_0xe07925;super(),_0x2b73de(this,_0x412856(0x1f2),new _0x301d6d[(_0x412856(0x21a))](_0x412856(0x192))),_0x2b73de(this,_0x412856(0x221),this['_status$'][_0x412856(0x1c8)]()),_0x2b73de(this,_0x412856(0x1f6),!0x1),_0x2b73de(this,'_commandDisposable',null),_0x2b73de(this,_0x412856(0x21b),null),(this[_0x412856(0x187)]=_0x2cad67,this['_collabSession']=_0x6336b9,this[_0x412856(0x1b8)]=_0x321583,this[_0x412856(0x218)]=_0x6a3c57,this['_commandService']=_0x168fe1);}get[_0xe07925(0x1ff)](){const _0x1d3d52=_0xe07925;return this[_0x1d3d52(0x1f2)][_0x1d3d52(0x1b3)]();}[_0xe07925(0x1bb)](){const _0x5bd4f9=_0xe07925;var _0x592452;(_0x592452=this[_0x5bd4f9(0x21e)])==null||_0x592452['dispose'](),this['_status$'][_0x5bd4f9(0x19d)](_0x5bd4f9(0x192)),this['_status$'][_0x5bd4f9(0x1ac)]();}[_0xe07925(0x25a)](){const _0x176309=_0xe07925;return this[_0x176309(0x1ff)];}['init'](){const _0x3fbc76=_0xe07925;this[_0x3fbc76(0x1f6)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0x3fbc76(0x19f)](_0x53bd07[_0x3fbc76(0x259)](this['dispose$']))[_0x3fbc76(0x17d)](_0x3a32fa=>{const _0x1ef024=_0x3fbc76;switch(_0x3a32fa){case _0x1c5d61['SessionStatus'][_0x1ef024(0x25b)]:this['_handleOffline']();break;case _0x1c5d61['SessionStatus']['ONLINE']:this['_handleOnline']();break;}}),this[_0x3fbc76(0x22c)][_0x3fbc76(0x17a)][_0x3fbc76(0x19f)](_0x53bd07[_0x3fbc76(0x259)](this['dispose$']))[_0x3fbc76(0x17d)](_0x24ad10=>{const _0x204dde=_0x3fbc76,{eventID:_0x5c5919}=_0x24ad10;switch(_0x5c5919){case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x21c)]:this['_handleNewHost'](_0x24ad10);break;case _0x15dce3[_0x204dde(0x202)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x24ad10);break;case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x195)]:this[_0x204dde(0x1c5)]();break;case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x1d8)]:this[_0x204dde(0x232)](_0x24ad10);break;}}));}[_0xe07925(0x251)](){const _0x115eed=_0xe07925;this[_0x115eed(0x22c)][_0x115eed(0x17f)]({'eventID':_0x15dce3['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x115eed(0x187)],'userID':this[_0x115eed(0x22c)][_0x115eed(0x1d9)]()}},this['_unitID']);}['stopPresenting'](){const _0x2d0dc5=_0xe07925;this['_status']===_0x2d0dc5(0x17c)&&(this[_0x2d0dc5(0x1f2)][_0x2d0dc5(0x19d)](_0x2d0dc5(0x192)),this[_0x2d0dc5(0x22c)]['send']({'eventID':_0x15dce3[_0x2d0dc5(0x202)][_0x2d0dc5(0x195)],'data':{'unitID':this[_0x2d0dc5(0x187)]}},this[_0x2d0dc5(0x187)]));}[_0xe07925(0x1ea)](){const _0x37a45c=_0xe07925;this[_0x37a45c(0x1ff)]===_0x37a45c(0x1f0)&&(this[_0x37a45c(0x1f2)]['next'](_0x37a45c(0x1fc)),this[_0x37a45c(0x1bd)]());}[_0xe07925(0x1dc)](){const _0x411713=_0xe07925;this[_0x411713(0x1ff)]===_0x411713(0x1fc)&&this[_0x411713(0x1f9)]();}['_handleNewHost'](_0x429f9b){const _0x289e3c=_0xe07925,{presenter:_0x6b2ccb}=_0x429f9b['data'],_0x3a9d01=this[_0x289e3c(0x22c)][_0x289e3c(0x1d9)]();this[_0x289e3c(0x21b)]=_0x6b2ccb,_0x6b2ccb===_0x3a9d01?(this[_0x289e3c(0x1f9)](),this[_0x289e3c(0x24d)]()):this[_0x289e3c(0x1ff)]!==_0x289e3c(0x1f0)&&(this[_0x289e3c(0x181)](),this['_startFollowing']());}[_0xe07925(0x1ca)](){const _0x5eb70e=_0xe07925,_0x27a228={'eventID':_0x15dce3[_0x5eb70e(0x202)][_0x5eb70e(0x212)]};this['_collabSession']['send'](_0x27a228,this[_0x5eb70e(0x187)]);}[_0xe07925(0x1c5)](){const _0x2bad8f=_0xe07925;this['_presenter']=null,this[_0x2bad8f(0x1ff)]!==_0x2bad8f(0x17c)&&this[_0x2bad8f(0x1d0)]();}[_0xe07925(0x232)](_0x5ab55d){const _0x10fbbd=_0xe07925;if(this['_status']==='following'&&this[_0x10fbbd(0x21b)]===_0x5ab55d[_0x10fbbd(0x1fb)][_0x10fbbd(0x235)]){const _0x128ece=_0x15dce3['parseProtocolChangeset'](_0x5ab55d[_0x10fbbd(0x1fb)])[_0x10fbbd(0x180)]['reverse']()[_0x10fbbd(0x17b)](_0x170207=>_0x170207['id']===_0x1b9810[_0x10fbbd(0x20f)]['id']);if(_0x128ece){const _0x104279=_0x128ece[_0x10fbbd(0x252)]['unitId'],_0x813733=_0x128ece[_0x10fbbd(0x252)][_0x10fbbd(0x240)]['id'];setTimeout(()=>{const _0x55fb7d=_0x10fbbd;this[_0x55fb7d(0x1af)][_0x55fb7d(0x216)](_0x1b9810[_0x55fb7d(0x21f)]['id'],{'unitId':_0x104279,'subUnitId':_0x813733},{'fromCollab':!0x0});});}}}[_0xe07925(0x24d)](){const _0x2aa383=_0xe07925;this[_0x2aa383(0x1f2)][_0x2aa383(0x19d)]('presenting');const _0x732286=new Map(),_0x1d47f6=this[_0x2aa383(0x21e)]=new _0x4042ad[(_0x2aa383(0x1e9))]();_0x1d47f6[_0x2aa383(0x1a7)](_0x4042ad[_0x2aa383(0x1a2)](()=>{const _0x401b91=_0x2aa383;_0x732286[_0x401b91(0x1d2)](_0x228533=>_0x228533[_0x401b91(0x1ac)]()),_0x732286[_0x401b91(0x224)]();})),_0x1d47f6[_0x2aa383(0x1a7)](this[_0x2aa383(0x1af)][_0x2aa383(0x215)](_0x209d2b=>{const _0x149227=_0x2aa383;var _0x4f79bf;if(_0x209d2b[_0x149227(0x237)]!==_0x4042ad[_0x149227(0x20d)][_0x149227(0x1ed)]||!this[_0x149227(0x218)][_0x149227(0x25d)](_0x209d2b['id']))return;const {id:_0x2de7f6}=_0x209d2b;let _0x5f2f2a;_0x732286[_0x149227(0x1be)](_0x2de7f6)?_0x5f2f2a=_0x732286[_0x149227(0x198)](_0x2de7f6):(_0x5f2f2a=new _0x301d6d['Subject'](),_0x732286[_0x149227(0x24a)](_0x2de7f6,_0x5f2f2a),_0x5f2f2a[_0x149227(0x19f)](_0x53bd07[_0x149227(0x22d)]((_0x4f79bf=this['_configService'][_0x149227(0x20b)](_0x27ee9f))!=null?_0x4f79bf:_0x1aeee1,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x149227(0x17d)](_0xb0b402=>{const _0x2d89b1=_0x149227;this['_collabSession']['send']({'eventID':_0x15dce3[_0x2d89b1(0x202)][_0x2d89b1(0x23a)],'data':{'unitID':this[_0x2d89b1(0x187)],'operations':{[_0xb0b402['id']]:{'id':_0xb0b402['id'],'params':JSON['stringify'](_0xb0b402[_0x2d89b1(0x252)])}}}},this[_0x2d89b1(0x187)]);})),_0x5f2f2a[_0x149227(0x19d)](_0x209d2b);})),this[_0x2aa383(0x218)]['getInitialStates'](this[_0x2aa383(0x187)])[_0x2aa383(0x1d2)](_0x288743=>this['_collabSession'][_0x2aa383(0x17f)]({'eventID':_0x15dce3[_0x2aa383(0x202)][_0x2aa383(0x23a)],'data':{'unitID':this['_unitID'],'operations':{[_0x288743['id']]:{'id':_0x288743['id'],'params':JSON[_0x2aa383(0x1a5)](_0x288743['params'])}}}},this['_unitID']));}[_0xe07925(0x181)](){const _0x36eea6=_0xe07925;var _0x5115ee;this[_0x36eea6(0x1f2)][_0x36eea6(0x19d)](_0x36eea6(0x192)),(_0x5115ee=this['_commandDisposable'])==null||_0x5115ee[_0x36eea6(0x1bb)](),this[_0x36eea6(0x21e)]=null;}['_startFollowing'](){const _0x2f5180=_0xe07925;var _0x50d6f4;(_0x50d6f4=this[_0x2f5180(0x21e)])==null||_0x50d6f4[_0x2f5180(0x1bb)](),this['_status$']['next'](_0x2f5180(0x1fc));}[_0xe07925(0x1d0)](){const _0x1a5cea=_0xe07925;var _0x337a64;this[_0x1a5cea(0x1f2)][_0x1a5cea(0x19d)]('idle'),(_0x337a64=this[_0x1a5cea(0x21e)])==null||_0x337a64[_0x1a5cea(0x1bb)](),this['_commandDisposable']=null;}[_0xe07925(0x1f9)](){const _0x48d364=_0xe07925;var _0x5d190c;this['_status$'][_0x48d364(0x19d)](_0x48d364(0x1f0)),(_0x5d190c=this[_0x48d364(0x21e)])==null||_0x5d190c[_0x48d364(0x1bb)]();}['_handleOperation'](_0x2109cd){const _0x3b55f0=_0xe07925;if([_0x3b55f0(0x17c),_0x3b55f0(0x1f0),_0x3b55f0(0x191)][_0x3b55f0(0x1e8)](this[_0x3b55f0(0x1ff)])||!_0x2109cd[_0x3b55f0(0x1fb)]['presenter']||_0x2109cd[_0x3b55f0(0x1fb)]['presenter']===this[_0x3b55f0(0x22c)][_0x3b55f0(0x1d9)]())return;this[_0x3b55f0(0x1ff)]===_0x3b55f0(0x192)&&this[_0x3b55f0(0x1bd)]();const _0x505fd2=_0x2109cd[_0x3b55f0(0x1fb)][_0x3b55f0(0x1e6)];Object[_0x3b55f0(0x1f8)](_0x505fd2)['forEach'](_0x564078=>{const _0x3d8290=_0x3b55f0;this[_0x3d8290(0x1af)][_0x3d8290(0x216)](_0x564078['id'],_0x564078[_0x3d8290(0x252)]?JSON[_0x3d8290(0x199)](_0x564078[_0x3d8290(0x252)]):null,{'fromCollab':!0x0});});}[_0xe07925(0x18f)](){const _0x36ad8b=_0xe07925;var _0x165f89;this[_0x36ad8b(0x1f2)]['next'](_0x36ad8b(0x191)),(_0x165f89=this[_0x36ad8b(0x21e)])==null||_0x165f89[_0x36ad8b(0x1bb)]();}[_0xe07925(0x18a)](){const _0x3d30a6=_0xe07925;this[_0x3d30a6(0x1f2)]['next']('idle'),this[_0x3d30a6(0x1ca)]();}},_0x2491c7[_0xe07925(0x203)]=_0x2507fd([_0x3586da(0x2,_0x4042ad[_0xe07925(0x25c)]),_0x3586da(0x3,_0x4042ad['Inject'](_0x349095)),_0x3586da(0x4,_0x4042ad[_0xe07925(0x1a4)])],_0x2491c7[_0xe07925(0x203)]);function _0xada477(){const _0x4d7d32=_0xe07925,_0x24243a=_0xb7e494[_0x4d7d32(0x257)](_0x2491c7[_0x4d7d32(0x1d5)]),_0xdea182=_0xb7e494[_0x4d7d32(0x257)](_0x4042ad['IUniverInstanceService']),_0x440939=_0xb7e494['useObservable'](()=>_0xdea182[_0x4d7d32(0x243)](_0x4042ad[_0x4d7d32(0x1de)][_0x4d7d32(0x1e5)]),void 0x0,!0x1,[]),[_0x5b2160,_0x5d5a6e]=_0x284080[_0x4d7d32(0x24b)](null),[_0x820bd9,_0xc36e6a]=_0x284080[_0x4d7d32(0x24b)](_0x4ab54e[_0x4d7d32(0x1ab)]),_0x17b997=_0x284080[_0x4d7d32(0x207)](null);return _0x284080[_0x4d7d32(0x209)](()=>(_0x440939&&_0x24243a[_0x4d7d32(0x1d6)](_0x440939[_0x4d7d32(0x1db)]())['then'](_0x5bf23a=>{const _0x5a8ac5=_0x4d7d32;_0x5d5a6e(_0x5bf23a),_0x17b997['current']=_0x5bf23a[_0x5a8ac5(0x221)][_0x5a8ac5(0x17d)](_0x285668=>{_0xc36e6a(_0x285668);});}),()=>{const _0x3a609c=_0x4d7d32;var _0x15fa81;(_0x15fa81=_0x17b997[_0x3a609c(0x1c9)])==null||_0x15fa81['unsubscribe'](),_0x17b997[_0x3a609c(0x1c9)]=null;}),[_0x440939,_0x24243a]),_0x5b2160?_0x487dbc[_0x4d7d32(0x23c)](_0x1656cf[_0x4d7d32(0x1b5)],{'align':_0x4d7d32(0x1b4),'disabled':_0x820bd9===_0x4ab54e[_0x4d7d32(0x25b)],'className':_0x4d7d32(0x206),'overlay':_0x487dbc[_0x4d7d32(0x23c)](_0x28bf40,{'status':_0x820bd9,'coordinator':_0x5b2160}),'children':_0x487dbc['jsx'](_0x4d7d32(0x1c4),{'className':_0x1656cf[_0x4d7d32(0x171)](_0x4d7d32(0x255),{'univer-cursor-not-allowed':_0x820bd9===_0x4ab54e[_0x4d7d32(0x25b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x820bd9!==_0x4ab54e[_0x4d7d32(0x25b)]}),'type':'button','children':_0x487dbc[_0x4d7d32(0x23c)](_0x4eee83,{'className':'univer-size-4'})})}):null;}function _0x28bf40(_0x35f5bd){const _0x4cab20=_0xe07925,{status:_0x4635c9,coordinator:_0x386e6a}=_0x35f5bd;switch(_0x4635c9){case _0x4ab54e[_0x4cab20(0x1ab)]:return _0x487dbc['jsx'](_0x3ea79c,{'coordinator':_0x386e6a});case _0x4ab54e['FOLLOWING']:return _0x487dbc[_0x4cab20(0x23c)](_0x54ed8f,{'coordinator':_0x386e6a});case _0x4ab54e[_0x4cab20(0x18e)]:return _0x487dbc['jsx'](_0x148116,{'coordinator':_0x386e6a});case _0x4ab54e[_0x4cab20(0x25b)]:return _0x487dbc[_0x4cab20(0x23c)](_0x5bf57d,{});case _0x4ab54e['PRESENTING']:return _0x487dbc[_0x4cab20(0x23c)](_0x2fad0c,{'coordinator':_0x386e6a});default:return null;}}function _0x3ea79c(_0x449b2c){const _0x69dae0=_0xe07925,{coordinator:_0x3c1e38}=_0x449b2c;return _0x487dbc['jsxs'](_0x487dbc[_0x69dae0(0x1cf)],{'children':[_0x487dbc[_0x69dae0(0x23c)](_0x69dae0(0x1e4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x69dae0(0x24c)}),_0x487dbc[_0x69dae0(0x23c)](_0x1656cf[_0x69dae0(0x256)],{'onClick':()=>_0x3c1e38[_0x69dae0(0x251)](),'children':'Start'})]});}function _0x54ed8f(_0x2ce661){const _0x57eb1f=_0xe07925,{coordinator:_0x49184f}=_0x2ce661;return _0x487dbc['jsxs'](_0x487dbc[_0x57eb1f(0x1cf)],{'children':[_0x487dbc['jsx'](_0x57eb1f(0x1e4),{'className':_0x57eb1f(0x242),'children':_0x57eb1f(0x1d3)}),_0x487dbc[_0x57eb1f(0x23c)](_0x1656cf[_0x57eb1f(0x256)],{'onClick':()=>_0x49184f['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x148116(_0x238bff){const _0x375fdb=_0xe07925,{coordinator:_0x2e6e19}=_0x238bff;return _0x487dbc['jsxs'](_0x487dbc[_0x375fdb(0x1cf)],{'children':[_0x487dbc['jsx'](_0x375fdb(0x1e4),{'className':_0x375fdb(0x242),'children':_0x375fdb(0x1c6)}),_0x487dbc[_0x375fdb(0x23c)](_0x1656cf['Button'],{'variant':_0x375fdb(0x19b),'onClick':()=>_0x2e6e19['startFollowing'](),'children':_0x375fdb(0x1b6)})]});}function _0x2fad0c(_0x280695){const _0x3ce87e=_0xe07925,{coordinator:_0xe3b3a3}=_0x280695;return _0x487dbc[_0x3ce87e(0x190)](_0x487dbc['Fragment'],{'children':[_0x487dbc[_0x3ce87e(0x23c)]('div',{'className':_0x3ce87e(0x242),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x487dbc[_0x3ce87e(0x23c)](_0x1656cf[_0x3ce87e(0x256)],{'variant':_0x3ce87e(0x1c1),'onClick':()=>_0xe3b3a3['stopPresenting'](),'children':_0x3ce87e(0x1b2)})]});}function _0x5bf57d(){const _0x1fb1f2=_0xe07925;return _0x487dbc['jsx'](_0x487dbc[_0x1fb1f2(0x1cf)],{'children':_0x1fb1f2(0x1f1)});}var _0x466f5b=Object[_0xe07925(0x185)],_0x490d4f=(_0x3b5480,_0x592390,_0x52b8ef,_0x518fb8)=>{const _0x360a67=_0xe07925;for(var _0x11232d=_0x518fb8>0x1?void 0x0:_0x518fb8?_0x466f5b(_0x592390,_0x52b8ef):_0x592390,_0x25a230=_0x3b5480[_0x360a67(0x208)]-0x1,_0x509efe;_0x25a230>=0x0;_0x25a230--)(_0x509efe=_0x3b5480[_0x25a230])&&(_0x11232d=_0x509efe(_0x11232d)||_0x11232d);return _0x11232d;},_0x451176=(_0x41f50e,_0x403f21)=>(_0x9ceb36,_0x1500d7)=>_0x403f21(_0x9ceb36,_0x1500d7,_0x41f50e);_0x2491c7[_0xe07925(0x21d)]=class extends _0x4042ad['Disposable']{constructor(_0x2d8321,_0x21c899){const _0x43765c=_0xe07925;super(),this[_0x43765c(0x193)]=_0x2d8321,this[_0x43765c(0x200)]=_0x21c899,this[_0x43765c(0x220)]();}[_0xe07925(0x220)](){const _0x35c349=_0xe07925;this[_0x35c349(0x1a0)](this['_uiPartsService'][_0x35c349(0x24f)](_0xb7e494[_0x35c349(0x1df)][_0x35c349(0x246)],()=>_0xb7e494[_0x35c349(0x1f3)](_0xada477,this[_0x35c349(0x193)])));}},_0x2491c7[_0xe07925(0x21d)]=_0x490d4f([_0x451176(0x0,_0x4042ad[_0xe07925(0x22e)](_0x4042ad[_0xe07925(0x1f7)])),_0x451176(0x1,_0xb7e494[_0xe07925(0x25e)])],_0x2491c7[_0xe07925(0x21d)]);const _0x3a1824=_0xe07925(0x1b0),_0x4d63f7={};var _0x4592a9=Object[_0xe07925(0x185)],_0x33b70b=(_0x4ec50d,_0x4aadc3,_0x261332,_0x23d25f)=>{const _0x2ec74f=_0xe07925;for(var _0x59b293=_0x23d25f>0x1?void 0x0:_0x23d25f?_0x4592a9(_0x4aadc3,_0x261332):_0x4aadc3,_0x575bdf=_0x4ec50d[_0x2ec74f(0x208)]-0x1,_0x2c7e35;_0x575bdf>=0x0;_0x575bdf--)(_0x2c7e35=_0x4ec50d[_0x575bdf])&&(_0x59b293=_0x2c7e35(_0x59b293)||_0x59b293);return _0x59b293;},_0x5d85f0=(_0x22be98,_0x64087)=>(_0x4f80d7,_0x5907ac)=>_0x64087(_0x4f80d7,_0x5907ac,_0x22be98);let _0x491240=class extends _0x4042ad[_0xe07925(0x1d7)]{constructor(_0x131648){const _0x98eb08=_0xe07925;super(),this[_0x98eb08(0x218)]=_0x131648,this['_init']();}[_0xe07925(0x1f6)](){const _0x54c90d=_0xe07925;[_0x5dafdd['SetZoomRatioOperation']['id'],_0x5dafdd[_0x54c90d(0x1ae)]['id'],_0x1b9810[_0x54c90d(0x21f)]['id']][_0x54c90d(0x1d2)](_0x21ddfa=>{const _0x37d204=_0x54c90d;this['disposeWithMe'](this[_0x37d204(0x218)]['registerSharedOperation'](_0x21ddfa));});}};_0x491240=_0x33b70b([_0x5d85f0(0x0,_0x4042ad[_0xe07925(0x22e)](_0x349095))],_0x491240);var _0x50eedc=Object[_0xe07925(0x245)],_0x2dfd36=Object[_0xe07925(0x185)],_0x199b14=(_0x1368ed,_0x5558f9,_0x3dac72)=>_0x5558f9 in _0x1368ed?_0x50eedc(_0x1368ed,_0x5558f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dac72}):_0x1368ed[_0x5558f9]=_0x3dac72,_0x336e50=(_0x114c5b,_0x33f618,_0x38295b,_0x5880e7)=>{for(var _0x2d3a74=_0x5880e7>0x1?void 0x0:_0x5880e7?_0x2dfd36(_0x33f618,_0x38295b):_0x33f618,_0x3c2fc1=_0x114c5b['length']-0x1,_0x55be7a;_0x3c2fc1>=0x0;_0x3c2fc1--)(_0x55be7a=_0x114c5b[_0x3c2fc1])&&(_0x2d3a74=_0x55be7a(_0x2d3a74)||_0x2d3a74);return _0x2d3a74;},_0x3e368d=(_0x5af0d2,_0xf6c673)=>(_0x5c8860,_0xae139b)=>_0xf6c673(_0x5c8860,_0xae139b,_0x5af0d2),_0x580314=(_0x299eac,_0x53e3bc,_0x474830)=>_0x199b14(_0x299eac,typeof _0x53e3bc!=_0xe07925(0x194)?_0x53e3bc+'':_0x53e3bc,_0x474830);const _0x12967c='UNIVER_LIVE_SHARE_PLUGIN';_0x2491c7[_0xe07925(0x241)]=class extends _0x4042ad[_0xe07925(0x1d1)]{constructor(_0x69262=_0x4d63f7,_0x3f8430,_0x5dc628){const _0x421fb6=_0xe07925;super(),this[_0x421fb6(0x253)]=_0x69262,this[_0x421fb6(0x193)]=_0x3f8430,this[_0x421fb6(0x1b8)]=_0x5dc628;const {..._0x3502c5}=_0x4042ad['merge']({},_0x4d63f7,this[_0x421fb6(0x253)]);this[_0x421fb6(0x1b8)][_0x421fb6(0x1ef)](_0x3a1824,_0x3502c5);}[_0xe07925(0x1ee)](){const _0x4c0b47=_0xe07925;_0x4042ad[_0x4c0b47(0x244)](this[_0x4c0b47(0x193)],_0x4042ad[_0x4c0b47(0x238)]([[_0x349095],[_0x2491c7[_0x4c0b47(0x1d5)]],[_0x491240],[_0x2491c7[_0x4c0b47(0x21d)]]],this[_0x4c0b47(0x253)][_0x4c0b47(0x250)])),_0x4042ad[_0x4c0b47(0x18b)](this['_injector'],[[_0x491240]]);}[_0xe07925(0x1c2)](){const _0x361819=_0xe07925;_0x4042ad[_0x361819(0x18b)](this[_0x361819(0x193)],[[_0x2491c7[_0x361819(0x21d)]]]);}},_0x580314(_0x2491c7[_0xe07925(0x241)],_0xe07925(0x237),_0x4042ad[_0xe07925(0x1de)][_0xe07925(0x20e)]),_0x580314(_0x2491c7[_0xe07925(0x241)],_0xe07925(0x25f),_0x12967c),_0x2491c7['UniverLiveSharePlugin']=_0x336e50([_0x4042ad[_0xe07925(0x176)](_0x1c5d61[_0xe07925(0x18c)]),_0x3e368d(0x1,_0x4042ad['Inject'](_0x4042ad[_0xe07925(0x1f7)])),_0x3e368d(0x2,_0x4042ad[_0xe07925(0x25c)])],_0x2491c7['UniverLiveSharePlugin']),_0x2491c7[_0xe07925(0x229)]=_0xada477,_0x2491c7['LiveShareService']=_0x349095,_0x2491c7[_0xe07925(0x227)]=_0x4ab54e,Object['defineProperty'](_0x2491c7,Symbol[_0xe07925(0x186)],{'value':_0xe07925(0x1a3)});}));
1
+ function _0x23e3(){const _0x2d6a6b=['forEach','_handleTerminate','toDisposable','defs','UniverProCollaboration','9998800YuDZkO','dispose$','displayName','_fetchOperations','_handleOnline','onCommandExecuted','IUIPartsService','asObservable','getCurrentTypeOfUnit$','override','SessionStatus','xlink:href','136248zrGtCv','useObservable','operators','Button','@univerjs/sheets','FOLLOWING','stopFollowing','@univerjs-pro/collaboration','You\x27re\x20following\x20the\x20presenter','path','_commandService','parseProtocolChangeset','fill','random','assign','_unitID','pluginName','_config','mask','react/jsx-runtime','clear','LIVESHARE_NEW_HOST','LIVESHARE_REQUEST_HOST','CommandType','offline','stopPresenting','DesktopLiveShareController','getOwnPropertyDescriptor','Stop\x20following','params','@univerjs-pro/collaboration-client','_mountLiveShare','trim','toStringTag','set','857859PjJBhI','getMemberID','jsxs','LIVESHARE_TERMINATE','RxDisposable','clsx','subscribe','registerSharedOperation','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','currentColor','78qTaOAH','registerDependencies','_startPresenting','_configService','replace','amd','LiveShareCoordinator','_liveShareService','default','colorChannel1','attrs','1311644ZRZdWi','not-following','UNIVER_UNKNOWN','getLiveShareCoordinatorSync','merge','Subject','useDependency','0\x200\x2017\x2017','_handleNewChangeSets','UniverInstanceType','ONLINE','DependentOn','touchDependencies','onRendered','UniverCollaborationClientPlugin','reverse','status$','includes','dispose','sessionStatus$','mutations','from','button','setConfig','values','_entities','ICommandService','LiveShare','LIVESHARE_FETCH_OPERATIONS','unsubscribe','DisposableCollection','_beIdle','defineProperty','send','@univerjs/design','CollaborationEvent','univer-size-4','_status$','_stopFollowing','idle','Start\x20following','rxjs/operators','_startFollowing','next','_handleOffline','UniverSheets','getStatus','then','react','_reporters','UniverSheetsUi','tryStartPresenting','createInstance','operations','takeUntil','use','_handleNewHost','_commandDisposable','_status','entries','42aWmCsv','univerjs-icon\x20univerjs-icon-','UniverLiveSharePlugin','UniverProCollaborationClient','presenter','stringify','useRef','HEADER_MENU','get','data','UniverIcon','1124307Hisxat','throttleTime','@univerjs/core','url(#$1','has','sheet','getTypeOfUnitAdded$','IUniverInstanceService','BuiltInUIPart','exports','_injector','_univerInstanceService','_collabSession','useEffect','LIVESHARE_OPERATION','BehaviorSubject','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','defIds','following','UniverProLiveShare','_sharedOperations','presenting','shouldShareOperation','NOT_FOLLOWING','pipe','executeCommand','startFollowing','http://www.w3.org/2000/svg','InsertSheetMutation','createElement','evenodd','_collabSessionService','_init','jsx','_startLiveShareCoordinator','string','LiveShareStatus','getLiveShareCoordinator','Dropdown','add','mergeOverrideWithDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','Disposable','idSuffix','OFFLINE','complete','useState','current','UNIVER_SHEET','@univerjs/ui','Stop\x20presenting','div','init','map','15224iBbdhw','children','rxjs','_presenter','Inject','length','994610loRHYS','getUnitId','Fragment','object','tag','getInitialStates','function','symbol','24NjZNtb','delete','UniverDesign','forwardRef','IDLE','getConfig','Injector','1em','disposeWithMe','_stopPresenting','_handleOperation','requireSession','IConfigService','LiveShareController'];_0x23e3=function(){return _0x2d6a6b;};return _0x23e3();}function _0x4e29(_0x3706fb,_0x4e0811){const _0x23e353=_0x23e3();return _0x4e29=function(_0x4e29f6,_0x4e3256){_0x4e29f6=_0x4e29f6-0xd6;let _0x28594e=_0x23e353[_0x4e29f6];return _0x28594e;},_0x4e29(_0x3706fb,_0x4e0811);}(function(_0x55e389,_0x264835){const _0x43b961=_0x4e29,_0x2abc04=_0x55e389();while(!![]){try{const _0x256747=-parseInt(_0x43b961(0x115))/0x1*(-parseInt(_0x43b961(0x1b6))/0x2)+-parseInt(_0x43b961(0x165))/0x3+parseInt(_0x43b961(0x17a))/0x4+parseInt(_0x43b961(0x11b))/0x5+-parseInt(_0x43b961(0x16f))/0x6*(-parseInt(_0x43b961(0x142))/0x7)+-parseInt(_0x43b961(0x123))/0x8*(-parseInt(_0x43b961(0xdb))/0x9)+-parseInt(_0x43b961(0x136))/0xa;if(_0x256747===_0x264835)break;else _0x2abc04['push'](_0x2abc04['shift']());}catch(_0x1431f7){_0x2abc04['push'](_0x2abc04['shift']());}}}(_0x23e3,0x2e059),function(_0x3346dd,_0xb3e22b){const _0x38428a=_0x4e29;typeof exports==_0x38428a(0x11e)&&typeof module<'u'?_0xb3e22b(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==_0x38428a(0x121)&&define[_0x38428a(0x174)]?define([_0x38428a(0xe4),_0x38428a(0xdd),_0x38428a(0x110),_0x38428a(0x155),_0x38428a(0x19c),_0x38428a(0x1aa),_0x38428a(0x149),_0x38428a(0x160),_0x38428a(0x146),_0x38428a(0x117),_0x38428a(0x1a3),'@univerjs/sheets-ui'],_0xb3e22b):(_0x3346dd=typeof globalThis<'u'?globalThis:_0x3346dd||self,_0xb3e22b(_0x3346dd[_0x38428a(0xf0)]={},_0x3346dd['UniverCore'],_0x3346dd['UniverUi'],_0x3346dd['React'],_0x3346dd[_0x38428a(0x125)],_0x3346dd['React'],_0x3346dd[_0x38428a(0x135)],_0x3346dd[_0x38428a(0x1b9)],_0x3346dd[_0x38428a(0x1a7)],_0x3346dd[_0x38428a(0x117)],_0x3346dd[_0x38428a(0x117)][_0x38428a(0x144)],_0x3346dd[_0x38428a(0x1ac)]));}(this,function(_0x25a97d,_0x34f908,_0x4d5594,_0x4a72e8,_0x2657de,_0x14a001,_0x2d822a,_0x3bbabe,_0x1aef0b,_0x108c51,_0x4c4e05,_0x1661c8){'use strict';const _0x962b26=_0x4e29;var _0x59f3fb=Object['defineProperty'],_0x2b0435=(_0x172921,_0x5be9b6,_0x188a12)=>_0x5be9b6 in _0x172921?_0x59f3fb(_0x172921,_0x5be9b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x188a12}):_0x172921[_0x5be9b6]=_0x188a12,_0x3d2603=(_0x4f7e38,_0x28bf37,_0x2d637b)=>_0x2b0435(_0x4f7e38,typeof _0x28bf37!=_0x962b26(0x122)?_0x28bf37+'':_0x28bf37,_0x2d637b);function _0x21b439({ref:_0x2f9245,..._0x4bfc14}){const _0x23a133=_0x962b26,{icon:_0x21bdef,id:_0x5718a9,className:_0x4cf0e2,extend:_0x44809f,..._0x3dbb6a}=_0x4bfc14,_0x2d5c6a=(_0x23a133(0x1b7)+_0x5718a9+'\x20'+(_0x4cf0e2||''))[_0x23a133(0x162)](),_0x224529=_0x14a001[_0x23a133(0xd6)]('_'+_0x1a3272());return _0x57c17a(_0x21bdef,''+_0x5718a9,{'defIds':_0x21bdef[_0x23a133(0xee)],'idSuffix':_0x224529[_0x23a133(0x10e)]},{'ref':_0x2f9245,'className':_0x2d5c6a,..._0x3dbb6a},_0x44809f);}function _0x57c17a(_0x52fe5c,_0x3f5622,_0x489fd3,_0x3f8bc3,_0x8d3f3a){const _0xac9107=_0x962b26;return _0x14a001[_0xac9107(0xfa)](_0x52fe5c[_0xac9107(0x11f)],{'key':_0x3f5622,..._0x3aefc8(_0x52fe5c,_0x489fd3,_0x8d3f3a),..._0x3f8bc3},(_0x183444(_0x52fe5c,_0x489fd3)[_0xac9107(0x116)]||[])[_0xac9107(0x114)]((_0x364bd2,_0x3d649c)=>_0x57c17a(_0x364bd2,_0x3f5622+'-'+_0x52fe5c[_0xac9107(0x11f)]+'-'+_0x3d649c,_0x489fd3,void 0x0,_0x8d3f3a)));}function _0x3aefc8(_0x4bdf89,_0x3addf6,_0x24bffa){const _0x2d7ea3=_0x962b26,_0xa29419={..._0x4bdf89[_0x2d7ea3(0x179)]};_0x24bffa!=null&&_0x24bffa[_0x2d7ea3(0x178)]&&_0xa29419['fill']===_0x2d7ea3(0x178)&&(_0xa29419[_0x2d7ea3(0x14e)]=_0x24bffa['colorChannel1']),_0x4bdf89[_0x2d7ea3(0x11f)]===_0x2d7ea3(0x154)&&_0xa29419['id']&&(_0xa29419['id']=_0xa29419['id']+_0x3addf6[_0x2d7ea3(0x10a)]),Object[_0x2d7ea3(0x1b5)](_0xa29419)[_0x2d7ea3(0x131)](([_0x3c6461,_0x5977de])=>{const _0x499e92=_0x2d7ea3;_0x3c6461===_0x499e92(0x154)&&typeof _0x5977de==_0x499e92(0x100)&&(_0xa29419[_0x3c6461]=_0x5977de[_0x499e92(0x173)](/url\(#(.*)\)/,_0x499e92(0xde)+_0x3addf6['idSuffix']+')'));});const {defIds:_0x263047}=_0x3addf6;return!_0x263047||_0x263047[_0x2d7ea3(0x11a)]===0x0||(_0x4bdf89[_0x2d7ea3(0x11f)]===_0x2d7ea3(0x1b1)&&_0xa29419[_0x2d7ea3(0x141)]&&(_0xa29419[_0x2d7ea3(0x141)]=_0xa29419[_0x2d7ea3(0x141)]+_0x3addf6[_0x2d7ea3(0x10a)]),Object[_0x2d7ea3(0x1b5)](_0xa29419)[_0x2d7ea3(0x131)](([_0x4be1ff,_0x3989f5])=>{const _0x107c1a=_0x2d7ea3;typeof _0x3989f5==_0x107c1a(0x100)&&(_0xa29419[_0x4be1ff]=_0x3989f5[_0x107c1a(0x173)](/url\(#(.*)\)/,_0x107c1a(0xde)+_0x3addf6['idSuffix']+')'));})),_0xa29419;}function _0x183444(_0x359951,_0x484b01){const _0x34380f=_0x962b26;var _0x583e56;const {defIds:_0x24c6ee}=_0x484b01;return!_0x24c6ee||_0x24c6ee[_0x34380f(0x11a)]===0x0?_0x359951:_0x359951[_0x34380f(0x11f)]===_0x34380f(0x134)&&((_0x583e56=_0x359951[_0x34380f(0x116)])!=null&&_0x583e56['length'])?{..._0x359951,'children':_0x359951['children'][_0x34380f(0x114)](_0x2b924f=>typeof _0x2b924f[_0x34380f(0x179)]['id']==_0x34380f(0x100)&&_0x24c6ee&&_0x24c6ee[_0x34380f(0x18b)](_0x2b924f['attrs']['id'])?{..._0x2b924f,'attrs':{..._0x2b924f[_0x34380f(0x179)],'id':_0x2b924f[_0x34380f(0x179)]['id']+_0x484b01[_0x34380f(0x10a)]}}:_0x2b924f)}:_0x359951;}function _0x1a3272(){const _0x4d45c9=_0x962b26;return Math[_0x4d45c9(0x14f)]()['toString'](0x24)['substring'](0x2,0x8);}_0x21b439[_0x962b26(0x138)]=_0x962b26(0xda);const _0x2ff253={'tag':'svg','attrs':{'xmlns':_0x962b26(0xf8),'fill':'none','viewBox':_0x962b26(0x181),'width':'1em','height':_0x962b26(0x12a)},'children':[{'tag':'path','attrs':{'fill':_0x962b26(0x16e),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x962b26(0x14b),'attrs':{'fill':'currentColor','d':_0x962b26(0x16d),'fillRule':_0x962b26(0xfb),'clipRule':'evenodd'}}]},_0x260691=_0x14a001[_0x962b26(0x126)](function(_0x50be8d,_0x8c4aa5){const _0x527441=_0x962b26;return _0x14a001[_0x527441(0xfa)](_0x21b439,Object[_0x527441(0x150)]({},_0x50be8d,{'id':'live-share-icon','ref':_0x8c4aa5,'icon':_0x2ff253}));});_0x260691[_0x962b26(0x138)]='LiveShareIcon';class _0xa8cdd extends _0x34f908[_0x962b26(0x109)]{constructor(){const _0x230df8=_0x962b26;super(...arguments),_0x3d2603(this,_0x230df8(0xf1),new Set()),_0x3d2603(this,_0x230df8(0x1ab),new Set());}[_0x962b26(0x16c)](_0x2fba21){const _0x5c8a26=_0x962b26;return this[_0x5c8a26(0xf1)][_0x5c8a26(0x104)](_0x2fba21),_0x34f908[_0x5c8a26(0x133)](()=>this[_0x5c8a26(0xf1)]['delete'](_0x2fba21));}[_0x962b26(0xed)](_0x3c147f){const _0x5b8b10=_0x962b26;return this[_0x5b8b10(0x1ab)]['add'](_0x3c147f),_0x34f908[_0x5b8b10(0x133)](()=>this['_reporters'][_0x5b8b10(0x124)](_0x3c147f));}[_0x962b26(0xf3)](_0x386210){const _0x3e7774=_0x962b26;return this['_sharedOperations'][_0x3e7774(0xdf)](_0x386210);}[_0x962b26(0x120)](_0x2c52dd){const _0x353985=_0x962b26;return Array[_0x353985(0x18f)](this[_0x353985(0x1ab)])[_0x353985(0x114)](_0x443cd6=>_0x443cd6(_0x2c52dd));}}var _0x30c0a9=Object[_0x962b26(0x15d)],_0x1a686d=(_0x1a77c8,_0x406e15,_0x18e961,_0x2b7872)=>{const _0x3b6623=_0x962b26;for(var _0x21dca7=_0x2b7872>0x1?void 0x0:_0x2b7872?_0x30c0a9(_0x406e15,_0x18e961):_0x406e15,_0x9f483c=_0x1a77c8[_0x3b6623(0x11a)]-0x1,_0xb3600d;_0x9f483c>=0x0;_0x9f483c--)(_0xb3600d=_0x1a77c8[_0x9f483c])&&(_0x21dca7=_0xb3600d(_0x21dca7)||_0x21dca7);return _0x21dca7;},_0x36127e=(_0x478253,_0x282f61)=>(_0x238a76,_0x2b1713)=>_0x282f61(_0x238a76,_0x2b1713,_0x478253);_0x25a97d[_0x962b26(0x130)]=class extends _0x34f908[_0x962b26(0x169)]{constructor(_0x163b97,_0x356ee1,_0x467259){const _0xc5a9a3=_0x962b26;super(),_0x3d2603(this,_0xc5a9a3(0x193),new Map()),(this[_0xc5a9a3(0xe6)]=_0x163b97,this[_0xc5a9a3(0xe5)]=_0x356ee1,this[_0xc5a9a3(0xfc)]=_0x467259,this[_0xc5a9a3(0xfd)]());}async[_0x962b26(0x102)](_0x16f9aa){const _0x5892df=_0x962b26;return this[_0x5892df(0x193)][_0x5892df(0xdf)](_0x16f9aa)||await this['_startLiveShareCoordinator'](_0x16f9aa),this[_0x5892df(0x193)][_0x5892df(0xd8)](_0x16f9aa);}[_0x962b26(0x17d)](_0x5d7730){const _0x13865e=_0x962b26;var _0xa6fdcf;return(_0xa6fdcf=this[_0x13865e(0x193)][_0x13865e(0xd8)](_0x5d7730))!=null?_0xa6fdcf:null;}[_0x962b26(0xfd)](){const _0x4472cc=_0x962b26;this[_0x4472cc(0xe6)][_0x4472cc(0xe1)](_0x34f908['UniverInstanceType'][_0x4472cc(0x10f)])[_0x4472cc(0xf5)](_0x4c4e05[_0x4472cc(0x1b0)](this[_0x4472cc(0x137)]))[_0x4472cc(0x16b)](async _0x34d7fc=>{const _0x1322e7=_0x4472cc,_0x3b44c8=_0x34d7fc[_0x1322e7(0x11c)]();this[_0x1322e7(0x193)][_0x1322e7(0xdf)](_0x3b44c8)||this[_0x1322e7(0xff)](_0x3b44c8);}),this[_0x4472cc(0xe6)][_0x4472cc(0xeb)](_0x34f908[_0x4472cc(0x183)][_0x4472cc(0x10f)])[_0x4472cc(0xf5)](_0x4c4e05[_0x4472cc(0x1b0)](this['dispose$']))[_0x4472cc(0x16b)](_0x113435=>{const _0xc25261=_0x4472cc,_0x2f593f=_0x113435[_0xc25261(0x11c)](),_0x5e3fa6=this[_0xc25261(0x193)][_0xc25261(0xd8)](_0x2f593f);_0x5e3fa6==null||_0x5e3fa6[_0xc25261(0x18c)]();});}async['_startLiveShareCoordinator'](_0x177298){const _0x291f93=_0x962b26,_0x4e002f=await this['_collabSessionService'][_0x291f93(0x12e)](_0x177298),_0x52125e=this[_0x291f93(0xe5)][_0x291f93(0x1ae)](_0x25a97d[_0x291f93(0x175)],_0x177298,_0x4e002f);return _0x52125e['init'](),this['_entities'][_0x291f93(0x164)](_0x177298,_0x52125e),_0x52125e;}},_0x25a97d[_0x962b26(0x130)]=_0x1a686d([_0x36127e(0x0,_0x34f908[_0x962b26(0xe2)]),_0x36127e(0x1,_0x34f908[_0x962b26(0x119)](_0x34f908['Injector'])),_0x36127e(0x2,_0x34f908[_0x962b26(0x119)](_0x3bbabe['CollaborationSessionService']))],_0x25a97d[_0x962b26(0x130)]);var _0x320925=(_0x4b2fbd=>(_0x4b2fbd[_0x962b26(0x10b)]=_0x962b26(0x15a),_0x4b2fbd[_0x962b26(0x127)]=_0x962b26(0x1a1),_0x4b2fbd[_0x962b26(0x147)]='following',_0x4b2fbd[_0x962b26(0xf4)]=_0x962b26(0x17b),_0x4b2fbd['PRESENTING']=_0x962b26(0xf2),_0x4b2fbd))(_0x320925||{});const _0x110334='SAME_OPERATION_SHARE_INTERVAL',_0x22030d=0xc8;_0x25a97d['LiveShareCoordinator']=class extends _0x34f908[_0x962b26(0x169)]{constructor(_0x2242eb,_0x47418b,_0x6f6ea0,_0xc56cc5,_0x234040){const _0x226422=_0x962b26;super(),_0x3d2603(this,'_status$',new _0x108c51[(_0x226422(0xea))](_0x226422(0x1a1))),_0x3d2603(this,_0x226422(0x18a),this[_0x226422(0x19f)][_0x226422(0x13d)]()),_0x3d2603(this,_0x226422(0xfd),!0x1),_0x3d2603(this,_0x226422(0x1b3),null),_0x3d2603(this,_0x226422(0x118),null),(this[_0x226422(0x151)]=_0x2242eb,this['_collabSession']=_0x47418b,this[_0x226422(0x172)]=_0x6f6ea0,this[_0x226422(0x176)]=_0xc56cc5,this[_0x226422(0x14c)]=_0x234040);}get[_0x962b26(0x1b4)](){const _0x5f4b18=_0x962b26;return this[_0x5f4b18(0x19f)]['getValue']();}[_0x962b26(0x18c)](){const _0x555283=_0x962b26;var _0x15eeef;(_0x15eeef=this[_0x555283(0x1b3)])==null||_0x15eeef[_0x555283(0x18c)](),this['_status$'][_0x555283(0x1a5)](_0x555283(0x1a1)),this[_0x555283(0x19f)][_0x555283(0x10c)]();}[_0x962b26(0x1a8)](){return this['_status'];}[_0x962b26(0x113)](){const _0x2fbe9e=_0x962b26;this[_0x2fbe9e(0xfd)]||(this[_0x2fbe9e(0xfd)]=!0x0,this[_0x2fbe9e(0xe7)][_0x2fbe9e(0x18d)][_0x2fbe9e(0xf5)](_0x4c4e05['takeUntil'](this[_0x2fbe9e(0x137)]))[_0x2fbe9e(0x16b)](_0x3127da=>{const _0x15f941=_0x2fbe9e;switch(_0x3127da){case _0x3bbabe['SessionStatus']['OFFLINE']:this[_0x15f941(0x1a6)]();break;case _0x3bbabe[_0x15f941(0x140)][_0x15f941(0x184)]:this[_0x15f941(0x13a)]();break;}}),this[_0x2fbe9e(0xe7)]['event$'][_0x2fbe9e(0xf5)](_0x4c4e05[_0x2fbe9e(0x1b0)](this[_0x2fbe9e(0x137)]))[_0x2fbe9e(0x16b)](_0x83cb4e=>{const _0x2d260f=_0x2fbe9e,{eventID:_0x2a9e1b}=_0x83cb4e;switch(_0x2a9e1b){case _0x2d822a['CollaborationEvent'][_0x2d260f(0x157)]:this[_0x2d260f(0x1b2)](_0x83cb4e);break;case _0x2d822a[_0x2d260f(0x19d)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x83cb4e);break;case _0x2d822a[_0x2d260f(0x19d)][_0x2d260f(0x168)]:this[_0x2d260f(0x132)]();break;case _0x2d822a[_0x2d260f(0x19d)]['NEW_CHANGESETS']:this[_0x2d260f(0x182)](_0x83cb4e);break;}}));}[_0x962b26(0x1ad)](){const _0x540eb3=_0x962b26;this[_0x540eb3(0xe7)]['send']({'eventID':_0x2d822a[_0x540eb3(0x19d)][_0x540eb3(0x158)],'data':{'unitID':this['_unitID'],'userID':this[_0x540eb3(0xe7)][_0x540eb3(0x166)]()}},this[_0x540eb3(0x151)]);}[_0x962b26(0x15b)](){const _0x4c5933=_0x962b26;this[_0x4c5933(0x1b4)]==='presenting'&&(this[_0x4c5933(0x19f)][_0x4c5933(0x1a5)](_0x4c5933(0x1a1)),this[_0x4c5933(0xe7)]['send']({'eventID':_0x2d822a['CollaborationEvent'][_0x4c5933(0x168)],'data':{'unitID':this['_unitID']}},this[_0x4c5933(0x151)]));}[_0x962b26(0xf7)](){const _0x543b44=_0x962b26;this['_status']===_0x543b44(0x17b)&&(this[_0x543b44(0x19f)][_0x543b44(0x1a5)](_0x543b44(0xef)),this[_0x543b44(0x1a4)]());}[_0x962b26(0x148)](){const _0x17aa12=_0x962b26;this[_0x17aa12(0x1b4)]===_0x17aa12(0xef)&&this[_0x17aa12(0x1a0)]();}[_0x962b26(0x1b2)](_0x4ef4ff){const _0x516e02=_0x962b26,{presenter:_0x11d7f0}=_0x4ef4ff[_0x516e02(0xd9)],_0x583f22=this[_0x516e02(0xe7)]['getMemberID']();this[_0x516e02(0x118)]=_0x11d7f0,_0x11d7f0===_0x583f22?(this['_stopFollowing'](),this[_0x516e02(0x171)]()):this[_0x516e02(0x1b4)]!==_0x516e02(0x17b)&&(this['_stopPresenting'](),this[_0x516e02(0x1a4)]());}[_0x962b26(0x139)](){const _0x51a1bc=_0x962b26,_0x57aa7a={'eventID':_0x2d822a[_0x51a1bc(0x19d)][_0x51a1bc(0x196)]};this[_0x51a1bc(0xe7)][_0x51a1bc(0x19b)](_0x57aa7a,this[_0x51a1bc(0x151)]);}[_0x962b26(0x132)](){const _0x56f1fd=_0x962b26;this[_0x56f1fd(0x118)]=null,this[_0x56f1fd(0x1b4)]!==_0x56f1fd(0xf2)&&this[_0x56f1fd(0x199)]();}[_0x962b26(0x182)](_0x3bb4a8){const _0x4ea16d=_0x962b26;if(this[_0x4ea16d(0x1b4)]==='following'&&this['_presenter']===_0x3bb4a8[_0x4ea16d(0xd9)]['memberID']){const _0x5d1bdb=_0x2d822a[_0x4ea16d(0x14d)](_0x3bb4a8[_0x4ea16d(0xd9)])[_0x4ea16d(0x18e)][_0x4ea16d(0x189)]()['find'](_0x42aa8f=>_0x42aa8f['id']===_0x1aef0b[_0x4ea16d(0xf9)]['id']);if(_0x5d1bdb){const _0x42d7e7=_0x5d1bdb[_0x4ea16d(0x15f)]['unitId'],_0xb8ae0f=_0x5d1bdb[_0x4ea16d(0x15f)][_0x4ea16d(0xe0)]['id'];setTimeout(()=>{const _0x2d0fa5=_0x4ea16d;this[_0x2d0fa5(0x14c)][_0x2d0fa5(0xf6)](_0x1aef0b['SetWorksheetActiveOperation']['id'],{'unitId':_0x42d7e7,'subUnitId':_0xb8ae0f},{'fromCollab':!0x0});});}}}[_0x962b26(0x171)](){const _0x327233=_0x962b26;this[_0x327233(0x19f)]['next'](_0x327233(0xf2));const _0x63377a=new Map(),_0x1620c3=this['_commandDisposable']=new _0x34f908[(_0x327233(0x198))]();_0x1620c3['add'](_0x34f908[_0x327233(0x133)](()=>{const _0x5a52b2=_0x327233;_0x63377a['forEach'](_0x1715f0=>_0x1715f0[_0x5a52b2(0x10c)]()),_0x63377a[_0x5a52b2(0x156)]();})),_0x1620c3['add'](this[_0x327233(0x14c)][_0x327233(0x13b)](_0xd4a45d=>{const _0x3480bd=_0x327233;var _0x3988c8;if(_0xd4a45d['type']!==_0x34f908[_0x3480bd(0x159)]['OPERATION']||!this['_liveShareService'][_0x3480bd(0xf3)](_0xd4a45d['id']))return;const {id:_0x3d5f2f}=_0xd4a45d;let _0x191337;_0x63377a[_0x3480bd(0xdf)](_0x3d5f2f)?_0x191337=_0x63377a['get'](_0x3d5f2f):(_0x191337=new _0x108c51[(_0x3480bd(0x17f))](),_0x63377a[_0x3480bd(0x164)](_0x3d5f2f,_0x191337),_0x191337['pipe'](_0x4c4e05[_0x3480bd(0xdc)]((_0x3988c8=this[_0x3480bd(0x172)][_0x3480bd(0x128)](_0x110334))!=null?_0x3988c8:_0x22030d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3480bd(0x16b)](_0x18bc7c=>{const _0x5dc1b7=_0x3480bd;this[_0x5dc1b7(0xe7)][_0x5dc1b7(0x19b)]({'eventID':_0x2d822a[_0x5dc1b7(0x19d)][_0x5dc1b7(0xe9)],'data':{'unitID':this['_unitID'],'operations':{[_0x18bc7c['id']]:{'id':_0x18bc7c['id'],'params':JSON[_0x5dc1b7(0x1bb)](_0x18bc7c[_0x5dc1b7(0x15f)])}}}},this[_0x5dc1b7(0x151)]);})),_0x191337[_0x3480bd(0x1a5)](_0xd4a45d);})),this[_0x327233(0x176)][_0x327233(0x120)](this[_0x327233(0x151)])[_0x327233(0x131)](_0x5d324d=>this[_0x327233(0xe7)]['send']({'eventID':_0x2d822a[_0x327233(0x19d)][_0x327233(0xe9)],'data':{'unitID':this[_0x327233(0x151)],'operations':{[_0x5d324d['id']]:{'id':_0x5d324d['id'],'params':JSON[_0x327233(0x1bb)](_0x5d324d['params'])}}}},this[_0x327233(0x151)]));}[_0x962b26(0x12c)](){const _0x4acab6=_0x962b26;var _0x1bc82f;this[_0x4acab6(0x19f)][_0x4acab6(0x1a5)](_0x4acab6(0x1a1)),(_0x1bc82f=this[_0x4acab6(0x1b3)])==null||_0x1bc82f['dispose'](),this[_0x4acab6(0x1b3)]=null;}['_startFollowing'](){const _0x203d88=_0x962b26;var _0x3afba7;(_0x3afba7=this[_0x203d88(0x1b3)])==null||_0x3afba7[_0x203d88(0x18c)](),this['_status$'][_0x203d88(0x1a5)](_0x203d88(0xef));}[_0x962b26(0x199)](){const _0x3d793f=_0x962b26;var _0x5b78b7;this[_0x3d793f(0x19f)][_0x3d793f(0x1a5)](_0x3d793f(0x1a1)),(_0x5b78b7=this[_0x3d793f(0x1b3)])==null||_0x5b78b7[_0x3d793f(0x18c)](),this['_commandDisposable']=null;}[_0x962b26(0x1a0)](){const _0x40c65d=_0x962b26;var _0x48df97;this['_status$'][_0x40c65d(0x1a5)](_0x40c65d(0x17b)),(_0x48df97=this[_0x40c65d(0x1b3)])==null||_0x48df97[_0x40c65d(0x18c)]();}[_0x962b26(0x12d)](_0x23801c){const _0x2712bd=_0x962b26;if([_0x2712bd(0xf2),_0x2712bd(0x17b),_0x2712bd(0x15a)][_0x2712bd(0x18b)](this[_0x2712bd(0x1b4)])||!_0x23801c[_0x2712bd(0xd9)][_0x2712bd(0x1ba)]||_0x23801c[_0x2712bd(0xd9)]['presenter']===this['_collabSession'][_0x2712bd(0x166)]())return;this[_0x2712bd(0x1b4)]===_0x2712bd(0x1a1)&&this['_startFollowing']();const _0x2b66a2=_0x23801c['data'][_0x2712bd(0x1af)];Object[_0x2712bd(0x192)](_0x2b66a2)[_0x2712bd(0x131)](_0x1ba74e=>{const _0x33e9d4=_0x2712bd;this[_0x33e9d4(0x14c)][_0x33e9d4(0xf6)](_0x1ba74e['id'],_0x1ba74e[_0x33e9d4(0x15f)]?JSON['parse'](_0x1ba74e[_0x33e9d4(0x15f)]):null,{'fromCollab':!0x0});});}[_0x962b26(0x1a6)](){const _0x13c36d=_0x962b26;var _0x93dbe1;this[_0x13c36d(0x19f)]['next'](_0x13c36d(0x15a)),(_0x93dbe1=this[_0x13c36d(0x1b3)])==null||_0x93dbe1[_0x13c36d(0x18c)]();}[_0x962b26(0x13a)](){const _0x470d6e=_0x962b26;this['_status$'][_0x470d6e(0x1a5)](_0x470d6e(0x1a1)),this['_fetchOperations']();}},_0x25a97d['LiveShareCoordinator']=_0x1a686d([_0x36127e(0x2,_0x34f908[_0x962b26(0x12f)]),_0x36127e(0x3,_0x34f908[_0x962b26(0x119)](_0xa8cdd)),_0x36127e(0x4,_0x34f908[_0x962b26(0x194)])],_0x25a97d[_0x962b26(0x175)]);function _0x548691(){const _0x342f1b=_0x962b26,_0x4293f4=_0x4d5594['useDependency'](_0x25a97d[_0x342f1b(0x130)]),_0x1cb1d6=_0x4d5594[_0x342f1b(0x180)](_0x34f908[_0x342f1b(0xe2)]),_0x43a814=_0x4d5594[_0x342f1b(0x143)](()=>_0x1cb1d6[_0x342f1b(0x13e)](_0x34f908[_0x342f1b(0x183)][_0x342f1b(0x10f)]),void 0x0,!0x1,[]),[_0x41f40d,_0x53140e]=_0x14a001[_0x342f1b(0x10d)](null),[_0x3b02aa,_0x4899a4]=_0x14a001[_0x342f1b(0x10d)](_0x320925['IDLE']),_0x5b18aa=_0x14a001[_0x342f1b(0xd6)](null);return _0x14a001[_0x342f1b(0xe8)](()=>(_0x43a814&&_0x4293f4[_0x342f1b(0x102)](_0x43a814['getUnitId']())[_0x342f1b(0x1a9)](_0x18adb1=>{const _0x124b40=_0x342f1b;_0x53140e(_0x18adb1),_0x5b18aa[_0x124b40(0x10e)]=_0x18adb1[_0x124b40(0x18a)][_0x124b40(0x16b)](_0x40090b=>{_0x4899a4(_0x40090b);});}),()=>{const _0x1ec40c=_0x342f1b;var _0x11e87e;(_0x11e87e=_0x5b18aa[_0x1ec40c(0x10e)])==null||_0x11e87e[_0x1ec40c(0x197)](),_0x5b18aa[_0x1ec40c(0x10e)]=null;}),[_0x43a814,_0x4293f4]),_0x41f40d?_0x4a72e8['jsx'](_0x2657de[_0x342f1b(0x103)],{'align':'end','disabled':_0x3b02aa===_0x320925[_0x342f1b(0x10b)],'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':_0x4a72e8[_0x342f1b(0xfe)](_0xf1391a,{'status':_0x3b02aa,'coordinator':_0x41f40d}),'children':_0x4a72e8['jsx'](_0x342f1b(0x190),{'className':_0x2657de[_0x342f1b(0x16a)](_0x342f1b(0x106),{'univer-cursor-not-allowed':_0x3b02aa===_0x320925[_0x342f1b(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b02aa!==_0x320925[_0x342f1b(0x10b)]}),'type':_0x342f1b(0x190),'children':_0x4a72e8[_0x342f1b(0xfe)](_0x260691,{'className':_0x342f1b(0x19e)})})}):null;}function _0xf1391a(_0x2eb071){const _0x1d985b=_0x962b26,{status:_0x468b28,coordinator:_0x4cf8b5}=_0x2eb071;switch(_0x468b28){case _0x320925[_0x1d985b(0x127)]:return _0x4a72e8[_0x1d985b(0xfe)](_0x45b850,{'coordinator':_0x4cf8b5});case _0x320925[_0x1d985b(0x147)]:return _0x4a72e8[_0x1d985b(0xfe)](_0x2515fc,{'coordinator':_0x4cf8b5});case _0x320925['NOT_FOLLOWING']:return _0x4a72e8[_0x1d985b(0xfe)](_0x282b59,{'coordinator':_0x4cf8b5});case _0x320925[_0x1d985b(0x10b)]:return _0x4a72e8[_0x1d985b(0xfe)](_0x1598f2,{});case _0x320925['PRESENTING']:return _0x4a72e8[_0x1d985b(0xfe)](_0x7e160a,{'coordinator':_0x4cf8b5});default:return null;}}function _0x45b850(_0x2fb9d0){const _0x10dc7e=_0x962b26,{coordinator:_0x57ad32}=_0x2fb9d0;return _0x4a72e8['jsxs'](_0x4a72e8['Fragment'],{'children':[_0x4a72e8['jsx'](_0x10dc7e(0x112),{'className':_0x10dc7e(0x107),'children':'Present\x20this\x20document'}),_0x4a72e8[_0x10dc7e(0xfe)](_0x2657de[_0x10dc7e(0x145)],{'onClick':()=>_0x57ad32[_0x10dc7e(0x1ad)](),'children':'Start'})]});}function _0x2515fc(_0x3b9774){const _0x3b11d8=_0x962b26,{coordinator:_0x2d9fba}=_0x3b9774;return _0x4a72e8['jsxs'](_0x4a72e8[_0x3b11d8(0x11d)],{'children':[_0x4a72e8[_0x3b11d8(0xfe)](_0x3b11d8(0x112),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3b11d8(0x14a)}),_0x4a72e8['jsx'](_0x2657de[_0x3b11d8(0x145)],{'onClick':()=>_0x2d9fba[_0x3b11d8(0x148)](),'children':_0x3b11d8(0x15e)})]});}function _0x282b59(_0x50f802){const _0xa8fb03=_0x962b26,{coordinator:_0x5be460}=_0x50f802;return _0x4a72e8[_0xa8fb03(0x167)](_0x4a72e8[_0xa8fb03(0x11d)],{'children':[_0x4a72e8[_0xa8fb03(0xfe)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xa8fb03(0xec)}),_0x4a72e8[_0xa8fb03(0xfe)](_0x2657de['Button'],{'variant':'text','onClick':()=>_0x5be460[_0xa8fb03(0xf7)](),'children':_0xa8fb03(0x1a2)})]});}function _0x7e160a(_0x3563e8){const _0x1e5456=_0x962b26,{coordinator:_0x4268a6}=_0x3563e8;return _0x4a72e8[_0x1e5456(0x167)](_0x4a72e8[_0x1e5456(0x11d)],{'children':[_0x4a72e8[_0x1e5456(0xfe)](_0x1e5456(0x112),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e5456(0x108)}),_0x4a72e8[_0x1e5456(0xfe)](_0x2657de['Button'],{'variant':_0x1e5456(0x177),'onClick':()=>_0x4268a6[_0x1e5456(0x15b)](),'children':_0x1e5456(0x111)})]});}function _0x1598f2(){const _0x530fd1=_0x962b26;return _0x4a72e8['jsx'](_0x4a72e8[_0x530fd1(0x11d)],{'children':'You\x27are\x20offline.'});}var _0x22276f=Object['getOwnPropertyDescriptor'],_0x16a17d=(_0x50ee53,_0x4a33c5,_0x4c7a6e,_0x337141)=>{const _0x182021=_0x962b26;for(var _0x3fa331=_0x337141>0x1?void 0x0:_0x337141?_0x22276f(_0x4a33c5,_0x4c7a6e):_0x4a33c5,_0x244d14=_0x50ee53[_0x182021(0x11a)]-0x1,_0x3dd4f8;_0x244d14>=0x0;_0x244d14--)(_0x3dd4f8=_0x50ee53[_0x244d14])&&(_0x3fa331=_0x3dd4f8(_0x3fa331)||_0x3fa331);return _0x3fa331;},_0x5ab00a=(_0x29d06e,_0x2b153d)=>(_0x36722f,_0x18ee91)=>_0x2b153d(_0x36722f,_0x18ee91,_0x29d06e);_0x25a97d['DesktopLiveShareController']=class extends _0x34f908['Disposable']{constructor(_0x35fc32,_0x513599){const _0x4c819c=_0x962b26;super(),this[_0x4c819c(0xe5)]=_0x35fc32,this['_uiPartsService']=_0x513599,this[_0x4c819c(0x161)]();}[_0x962b26(0x161)](){const _0x152e66=_0x962b26;this[_0x152e66(0x12b)](this['_uiPartsService']['registerComponent'](_0x4d5594[_0x152e66(0xe3)][_0x152e66(0xd7)],()=>_0x4d5594['connectInjector'](_0x548691,this['_injector'])));}},_0x25a97d[_0x962b26(0x15c)]=_0x16a17d([_0x5ab00a(0x0,_0x34f908[_0x962b26(0x119)](_0x34f908[_0x962b26(0x129)])),_0x5ab00a(0x1,_0x4d5594[_0x962b26(0x13c)])],_0x25a97d[_0x962b26(0x15c)]);const _0x57aa68='live-share.config',_0x43f128={};var _0x9ad926=Object[_0x962b26(0x15d)],_0x59d2a6=(_0x2bc867,_0x526247,_0x3c377c,_0x51f670)=>{const _0x47c38e=_0x962b26;for(var _0x2fc581=_0x51f670>0x1?void 0x0:_0x51f670?_0x9ad926(_0x526247,_0x3c377c):_0x526247,_0x31cf91=_0x2bc867[_0x47c38e(0x11a)]-0x1,_0x521d2c;_0x31cf91>=0x0;_0x31cf91--)(_0x521d2c=_0x2bc867[_0x31cf91])&&(_0x2fc581=_0x521d2c(_0x2fc581)||_0x2fc581);return _0x2fc581;},_0x405d2e=(_0x32c534,_0x169538)=>(_0x270846,_0x4006f5)=>_0x169538(_0x270846,_0x4006f5,_0x32c534);let _0x1e580c=class extends _0x34f908[_0x962b26(0x109)]{constructor(_0x47e43b){const _0x224075=_0x962b26;super(),this[_0x224075(0x176)]=_0x47e43b,this[_0x224075(0xfd)]();}['_init'](){const _0x50e9ee=_0x962b26;[_0x1661c8['SetZoomRatioOperation']['id'],_0x1661c8['SetScrollOperation']['id'],_0x1aef0b['SetWorksheetActiveOperation']['id']][_0x50e9ee(0x131)](_0x5a8043=>{const _0x1cebbf=_0x50e9ee;this[_0x1cebbf(0x12b)](this[_0x1cebbf(0x176)][_0x1cebbf(0x16c)](_0x5a8043));});}};_0x1e580c=_0x59d2a6([_0x405d2e(0x0,_0x34f908[_0x962b26(0x119)](_0xa8cdd))],_0x1e580c);var _0x29f613=Object[_0x962b26(0x19a)],_0x2c88cd=Object['getOwnPropertyDescriptor'],_0x46c276=(_0x4276aa,_0x1b3e50,_0x205c65)=>_0x1b3e50 in _0x4276aa?_0x29f613(_0x4276aa,_0x1b3e50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x205c65}):_0x4276aa[_0x1b3e50]=_0x205c65,_0x2bcb16=(_0x3768e8,_0x5ef6a8,_0x4c1379,_0x5734d3)=>{const _0x3b32e4=_0x962b26;for(var _0x430a74=_0x5734d3>0x1?void 0x0:_0x5734d3?_0x2c88cd(_0x5ef6a8,_0x4c1379):_0x5ef6a8,_0x565322=_0x3768e8[_0x3b32e4(0x11a)]-0x1,_0x5138a3;_0x565322>=0x0;_0x565322--)(_0x5138a3=_0x3768e8[_0x565322])&&(_0x430a74=_0x5138a3(_0x430a74)||_0x430a74);return _0x430a74;},_0x27db3b=(_0x29d035,_0x10e428)=>(_0x51b2db,_0x204f0a)=>_0x10e428(_0x51b2db,_0x204f0a,_0x29d035),_0x12d3a3=(_0x304c1c,_0x2dec14,_0x52d5e2)=>_0x46c276(_0x304c1c,typeof _0x2dec14!='symbol'?_0x2dec14+'':_0x2dec14,_0x52d5e2);const _0x13b69d='UNIVER_LIVE_SHARE_PLUGIN';_0x25a97d[_0x962b26(0x1b8)]=class extends _0x34f908['Plugin']{constructor(_0x169540=_0x43f128,_0xf97f66,_0x5c4a59){const _0x14df53=_0x962b26;super(),this[_0x14df53(0x153)]=_0x169540,this['_injector']=_0xf97f66,this[_0x14df53(0x172)]=_0x5c4a59;const {..._0x4017ad}=_0x34f908[_0x14df53(0x17e)]({},_0x43f128,this['_config']);this[_0x14df53(0x172)][_0x14df53(0x191)](_0x57aa68,_0x4017ad);}['onStarting'](){const _0x532ffe=_0x962b26;_0x34f908[_0x532ffe(0x170)](this[_0x532ffe(0xe5)],_0x34f908[_0x532ffe(0x105)]([[_0xa8cdd],[_0x25a97d[_0x532ffe(0x130)]],[_0x1e580c],[_0x25a97d[_0x532ffe(0x15c)]]],this[_0x532ffe(0x153)][_0x532ffe(0x13f)])),_0x34f908['touchDependencies'](this[_0x532ffe(0xe5)],[[_0x1e580c]]);}[_0x962b26(0x187)](){const _0x174ecb=_0x962b26;_0x34f908[_0x174ecb(0x186)](this['_injector'],[[_0x25a97d[_0x174ecb(0x15c)]]]);}},_0x12d3a3(_0x25a97d[_0x962b26(0x1b8)],'type',_0x34f908[_0x962b26(0x183)][_0x962b26(0x17c)]),_0x12d3a3(_0x25a97d[_0x962b26(0x1b8)],_0x962b26(0x152),_0x13b69d),_0x25a97d[_0x962b26(0x1b8)]=_0x2bcb16([_0x34f908[_0x962b26(0x185)](_0x3bbabe[_0x962b26(0x188)]),_0x27db3b(0x1,_0x34f908[_0x962b26(0x119)](_0x34f908[_0x962b26(0x129)])),_0x27db3b(0x2,_0x34f908['IConfigService'])],_0x25a97d['UniverLiveSharePlugin']),_0x25a97d[_0x962b26(0x195)]=_0x548691,_0x25a97d['LiveShareService']=_0xa8cdd,_0x25a97d[_0x962b26(0x101)]=_0x320925,Object[_0x962b26(0x19a)](_0x25a97d,Symbol[_0x962b26(0x163)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.13-nightly.202510290902",
3
+ "version": "0.10.14",
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-pro/collaboration": "0.10.13-nightly.202510290902",
61
- "@univerjs-pro/collaboration-client": "0.10.13-nightly.202510290902",
62
- "@univerjs/design": "0.10.13-nightly.202510290902",
63
- "@univerjs/engine-render": "0.10.13-nightly.202510290902",
64
- "@univerjs/core": "0.10.13-nightly.202510290902",
65
- "@univerjs/sheets": "0.10.13-nightly.202510290902",
66
- "@univerjs/sheets-ui": "0.10.13-nightly.202510290902",
67
- "@univerjs/ui": "0.10.13-nightly.202510290902"
60
+ "@univerjs-pro/collaboration-client": "0.10.14",
61
+ "@univerjs/core": "0.10.14",
62
+ "@univerjs/sheets": "0.10.14",
63
+ "@univerjs-pro/collaboration": "0.10.14",
64
+ "@univerjs/ui": "0.10.14",
65
+ "@univerjs/sheets-ui": "0.10.14",
66
+ "@univerjs/design": "0.10.14",
67
+ "@univerjs/engine-render": "0.10.14"
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.1.12",
76
76
  "vitest": "^3.2.4",
77
- "@univerjs-infra/shared": "0.10.13",
77
+ "@univerjs-infra/shared": "0.10.14",
78
78
  "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {