@univerjs-pro/live-share 0.12.1-nightly.202511221011 → 0.12.2-experimental.20251129-0fa20cd

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 _0x25273f=_0x2d6d;(function(_0x309964,_0x2c0021){const _0x4a2027=_0x2d6d,_0x64488d=_0x309964();while(!![]){try{const _0x22176e=parseInt(_0x4a2027(0x140))/0x1*(-parseInt(_0x4a2027(0x14a))/0x2)+parseInt(_0x4a2027(0x14d))/0x3*(-parseInt(_0x4a2027(0x136))/0x4)+-parseInt(_0x4a2027(0x125))/0x5+-parseInt(_0x4a2027(0x149))/0x6+parseInt(_0x4a2027(0x127))/0x7*(parseInt(_0x4a2027(0x143))/0x8)+-parseInt(_0x4a2027(0x12c))/0x9+parseInt(_0x4a2027(0x129))/0xa;if(_0x22176e===_0x2c0021)break;else _0x64488d['push'](_0x64488d['shift']());}catch(_0x2ef181){_0x64488d['push'](_0x64488d['shift']());}}}(_0x310a,0x9e866));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[_0x25273f(0x145)]{[_0x25273f(0x13c)](_0x5dd1ce,_0x3731a5,_0x445884,_0x4c1d52,_0x3d4bf9){const _0x5d5bb6=_0x25273f,_0x5b69da=_0x5dd1ce['get'](n[_0x5d5bb6(0x130)]),_0x40284d=_0x5dd1ce['get'](g[_0x5d5bb6(0x14e)]),_0x3062fe=_0x3731a5[_0x5d5bb6(0x12b)](),_0x3f0e19=_0x3731a5[_0x5d5bb6(0x139)](),_0x5f3627=_0x5b69da[_0x5d5bb6(0x144)](_0x3062fe);(_0x5f3627==null?void 0x0:_0x5f3627[_0x5d5bb6(0x138)]())!==n[_0x5d5bb6(0x12f)][_0x5d5bb6(0x128)]||(_0x445884['getSheetId']()!==_0x3f0e19[_0x5d5bb6(0x135)]()&&this[_0x5d5bb6(0x132)][_0x5d5bb6(0x12d)](u[_0x5d5bb6(0x14b)]['id'],{'unitId':_0x3062fe,'subUnitId':_0x445884[_0x5d5bb6(0x135)]()}),!_0x40284d['getRenderById'](_0x3062fe))||_0x3d4bf9[_0x5d5bb6(0x134)](f[_0x5d5bb6(0x13b)]['id'],{'unitId':_0x3731a5['getUnitId'](),'sheetId':_0x445884[_0x5d5bb6(0x135)](),'sheetViewStartRow':_0x4c1d52[_0x5d5bb6(0x141)],'sheetViewStartColumn':_0x4c1d52[_0x5d5bb6(0x148)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x310a(){const _0x1adda5=['FRange','startPresenting','getLiveShareStatus','startColumn','6972oYtJGS','6SSFFtL','SetWorksheetActiveOperation','FEnum','3LuepFk','IRenderManagerService','_injector','506605dvFQnf','FUniver','2569Quqeds','PRESENTING','26222680cGAauM','tryStartPresenting','getUnitId','2383209XTlndU','executeCommand','getActiveWorkbook','LiveShareStatus','LiveShareController','extend','_commandService','get','syncExecuteCommand','getSheetId','3228268zUBesK','stopPresenting','getStatus','getActiveSheet','LiveShareStatusEnum','SetScrollOperation','_initialize','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','332382wwpFCd','startRow','getId','4328oNDYYg','getLiveShareCoordinatorSync'];_0x310a=function(){return _0x1adda5;};return _0x310a();}d[_0x25273f(0x145)][_0x25273f(0x131)](w);class C extends a[_0x25273f(0x126)]{[_0x25273f(0x147)](){const _0x486672=_0x25273f;var _0x2ae095,_0x440011;const _0x3303fb=this[_0x486672(0x14f)][_0x486672(0x133)](n[_0x486672(0x130)]),_0x1ecdc1=(_0x2ae095=this[_0x486672(0x12e)]())==null?void 0x0:_0x2ae095[_0x486672(0x142)]();if(!_0x1ecdc1)throw new Error(_0x486672(0x13d));const _0x2a70a4=_0x3303fb['getLiveShareCoordinatorSync'](_0x1ecdc1);return(_0x440011=_0x2a70a4==null?void 0x0:_0x2a70a4[_0x486672(0x138)]())!=null?_0x440011:n[_0x486672(0x12f)]['IDLE'];}[_0x25273f(0x13f)](){const _0x4b23f3=_0x25273f;var _0x3b4e00;const _0xf2e146=this[_0x4b23f3(0x14f)]['get'](n[_0x4b23f3(0x130)]),_0x52df30=(_0x3b4e00=this['getActiveWorkbook']())==null?void 0x0:_0x3b4e00[_0x4b23f3(0x142)]();if(!_0x52df30)throw new Error(_0x4b23f3(0x13d));const _0x162b4b=_0xf2e146['getLiveShareCoordinatorSync'](_0x52df30);if(!_0x162b4b)throw new Error(_0x4b23f3(0x13e));_0x162b4b[_0x4b23f3(0x13f)]();}['stopFollowing'](){const _0x27d8b6=_0x25273f;var _0x11a06a;const _0x5c9535=this['_injector'][_0x27d8b6(0x133)](n['LiveShareController']),_0x3ddc7c=(_0x11a06a=this[_0x27d8b6(0x12e)]())==null?void 0x0:_0x11a06a[_0x27d8b6(0x142)]();if(!_0x3ddc7c)throw new Error('No\x20active\x20workbook\x20found.');const _0x114c73=_0x5c9535[_0x27d8b6(0x144)](_0x3ddc7c);if(!_0x114c73)throw new Error(_0x27d8b6(0x13e));_0x114c73['stopFollowing']();}[_0x25273f(0x146)](){const _0x18c7ae=_0x25273f;var _0x2b8983;const _0x26ca04=this[_0x18c7ae(0x14f)]['get'](n[_0x18c7ae(0x130)]),_0x510c66=(_0x2b8983=this['getActiveWorkbook']())==null?void 0x0:_0x2b8983[_0x18c7ae(0x142)]();if(!_0x510c66)throw new Error('No\x20active\x20workbook\x20found.');const _0x36f615=_0x26ca04[_0x18c7ae(0x144)](_0x510c66);if(!_0x36f615)throw new Error(_0x18c7ae(0x13e));_0x36f615[_0x18c7ae(0x12a)]();}[_0x25273f(0x137)](){const _0x15ac09=_0x25273f;var _0x3fbd87;const _0x472ce4=this[_0x15ac09(0x14f)]['get'](n[_0x15ac09(0x130)]),_0x4ae473=(_0x3fbd87=this[_0x15ac09(0x12e)]())==null?void 0x0:_0x3fbd87['getId']();if(!_0x4ae473)throw new Error(_0x15ac09(0x13d));const _0x2fc0a0=_0x472ce4[_0x15ac09(0x144)](_0x4ae473);if(!_0x2fc0a0)throw new Error(_0x15ac09(0x13e));_0x2fc0a0['stopPresenting']();}}a[_0x25273f(0x126)][_0x25273f(0x131)](C);function _0x2d6d(_0x10ed08,_0x46d1bc){const _0x310af7=_0x310a();return _0x2d6d=function(_0x2d6d0d,_0x4291a7){_0x2d6d0d=_0x2d6d0d-0x125;let _0x4e6b6a=_0x310af7[_0x2d6d0d];return _0x4e6b6a;},_0x2d6d(_0x10ed08,_0x46d1bc);}class L extends a[_0x25273f(0x14c)]{get[_0x25273f(0x13a)](){return n['LiveShareStatus'];}}a['FEnum']['extend'](L);
1
+ 'use strict';const _0x1ac9f5=_0x5cc4;(function(_0x5531ad,_0x243eeb){const _0x31adda=_0x5cc4,_0x43c255=_0x5531ad();while(!![]){try{const _0x2092e5=parseInt(_0x31adda(0xed))/0x1+parseInt(_0x31adda(0xf0))/0x2*(parseInt(_0x31adda(0xde))/0x3)+parseInt(_0x31adda(0xda))/0x4*(-parseInt(_0x31adda(0xee))/0x5)+-parseInt(_0x31adda(0xe8))/0x6+-parseInt(_0x31adda(0xdc))/0x7*(parseInt(_0x31adda(0xd0))/0x8)+-parseInt(_0x31adda(0xe3))/0x9*(-parseInt(_0x31adda(0xe4))/0xa)+parseInt(_0x31adda(0xd8))/0xb;if(_0x2092e5===_0x243eeb)break;else _0x43c255['push'](_0x43c255['shift']());}catch(_0xdc161b){_0x43c255['push'](_0x43c255['shift']());}}}(_0x5b00,0xe1cf6));function _0x5cc4(_0x3589ad,_0x5c45e3){const _0x5b00e0=_0x5b00();return _0x5cc4=function(_0x5cc403,_0x366bdd){_0x5cc403=_0x5cc403-0xcf;let _0x2aaa71=_0x5b00e0[_0x5cc403];return _0x2aaa71;},_0x5cc4(_0x3589ad,_0x5c45e3);}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']{[_0x1ac9f5(0xf6)](_0x1b58c5,_0x755ab6,_0x2fa9cb,_0x44c4f5,_0xc86dd9){const _0x1cad31=_0x1ac9f5,_0x38b775=_0x1b58c5[_0x1cad31(0xd2)](n[_0x1cad31(0xe6)]),_0x209b80=_0x1b58c5[_0x1cad31(0xd2)](g['IRenderManagerService']),_0x3ba2c8=_0x755ab6[_0x1cad31(0xf1)](),_0x51b4e2=_0x755ab6['getActiveSheet'](),_0x4f696c=_0x38b775[_0x1cad31(0xea)](_0x3ba2c8);(_0x4f696c==null?void 0x0:_0x4f696c[_0x1cad31(0xe0)]())!==n['LiveShareStatus']['PRESENTING']||(_0x2fa9cb[_0x1cad31(0xd6)]()!==_0x51b4e2['getSheetId']()&&this['_commandService'][_0x1cad31(0xd5)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x3ba2c8,'subUnitId':_0x2fa9cb[_0x1cad31(0xd6)]()}),!_0x209b80[_0x1cad31(0xd7)](_0x3ba2c8))||_0xc86dd9['syncExecuteCommand'](f[_0x1cad31(0xd9)]['id'],{'unitId':_0x755ab6[_0x1cad31(0xf1)](),'sheetId':_0x2fa9cb['getSheetId'](),'sheetViewStartRow':_0x44c4f5[_0x1cad31(0xdf)],'sheetViewStartColumn':_0x44c4f5[_0x1cad31(0xe5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x1ac9f5(0xd3)][_0x1ac9f5(0xec)](w);class C extends a[_0x1ac9f5(0xd1)]{[_0x1ac9f5(0xdd)](){const _0x54170a=_0x1ac9f5;var _0x168220,_0x3f3443;const _0x2c18de=this[_0x54170a(0xeb)][_0x54170a(0xd2)](n['LiveShareController']),_0x3d6af7=(_0x168220=this[_0x54170a(0xd4)]())==null?void 0x0:_0x168220['getId']();if(!_0x3d6af7)throw new Error(_0x54170a(0xf5));const _0x3d048a=_0x2c18de[_0x54170a(0xea)](_0x3d6af7);return(_0x3f3443=_0x3d048a==null?void 0x0:_0x3d048a[_0x54170a(0xe0)]())!=null?_0x3f3443:n['LiveShareStatus'][_0x54170a(0xe2)];}['startFollowing'](){const _0x1434fd=_0x1ac9f5;var _0x19010b;const _0x2096a2=this[_0x1434fd(0xeb)]['get'](n[_0x1434fd(0xe6)]),_0x48e7df=(_0x19010b=this[_0x1434fd(0xd4)]())==null?void 0x0:_0x19010b[_0x1434fd(0xdb)]();if(!_0x48e7df)throw new Error(_0x1434fd(0xf5));const _0x1b9fea=_0x2096a2['getLiveShareCoordinatorSync'](_0x48e7df);if(!_0x1b9fea)throw new Error(_0x1434fd(0xe9));_0x1b9fea[_0x1434fd(0xf3)]();}[_0x1ac9f5(0xe7)](){const _0x862b73=_0x1ac9f5;var _0x978125;const _0x57d857=this[_0x862b73(0xeb)][_0x862b73(0xd2)](n[_0x862b73(0xe6)]),_0x28fe5a=(_0x978125=this[_0x862b73(0xd4)]())==null?void 0x0:_0x978125[_0x862b73(0xdb)]();if(!_0x28fe5a)throw new Error(_0x862b73(0xf5));const _0x2ea0cb=_0x57d857[_0x862b73(0xea)](_0x28fe5a);if(!_0x2ea0cb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2ea0cb[_0x862b73(0xe7)]();}[_0x1ac9f5(0xef)](){const _0x2e5332=_0x1ac9f5;var _0x2fb99d;const _0x2f5ef7=this[_0x2e5332(0xeb)][_0x2e5332(0xd2)](n[_0x2e5332(0xe6)]),_0x557872=(_0x2fb99d=this[_0x2e5332(0xd4)]())==null?void 0x0:_0x2fb99d[_0x2e5332(0xdb)]();if(!_0x557872)throw new Error(_0x2e5332(0xf5));const _0x1a5a79=_0x2f5ef7[_0x2e5332(0xea)](_0x557872);if(!_0x1a5a79)throw new Error(_0x2e5332(0xe9));_0x1a5a79['tryStartPresenting']();}['stopPresenting'](){const _0x35d344=_0x1ac9f5;var _0x39f3b4;const _0x594c0f=this[_0x35d344(0xeb)][_0x35d344(0xd2)](n[_0x35d344(0xe6)]),_0x18a0e5=(_0x39f3b4=this[_0x35d344(0xd4)]())==null?void 0x0:_0x39f3b4[_0x35d344(0xdb)]();if(!_0x18a0e5)throw new Error(_0x35d344(0xf5));const _0x5dddea=_0x594c0f[_0x35d344(0xea)](_0x18a0e5);if(!_0x5dddea)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5dddea[_0x35d344(0xf4)]();}}a[_0x1ac9f5(0xd1)][_0x1ac9f5(0xec)](C);class L extends a[_0x1ac9f5(0xcf)]{get[_0x1ac9f5(0xe1)](){const _0x3e4dd5=_0x1ac9f5;return n[_0x3e4dd5(0xf2)];}}function _0x5b00(){const _0x1bd522=['startColumn','LiveShareController','stopFollowing','4304514gvIbzM','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','_injector','extend','1182403lFQFZF','458315hmopgR','startPresenting','74FQzhSh','getUnitId','LiveShareStatus','startFollowing','stopPresenting','No\x20active\x20workbook\x20found.','_initialize','FEnum','31520wUAzXP','FUniver','get','FRange','getActiveWorkbook','executeCommand','getSheetId','getRenderById','14364845RHIgjQ','SetScrollOperation','80CsdmxE','getId','952iLhOxN','getLiveShareStatus','93999KdZXfz','startRow','getStatus','LiveShareStatusEnum','IDLE','1637181KYZIzH','20ZxCEXf'];_0x5b00=function(){return _0x1bd522;};return _0x5b00();}a[_0x1ac9f5(0xcf)]['extend'](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x335e3f=_0x4ce9;(function(_0x1f213b,_0x2f7dc3){const _0x13cd7e=_0x4ce9,_0x3de973=_0x1f213b();while(!![]){try{const _0x719123=-parseInt(_0x13cd7e(0x1a9))/0x1*(-parseInt(_0x13cd7e(0x190))/0x2)+parseInt(_0x13cd7e(0x1b3))/0x3*(-parseInt(_0x13cd7e(0x205))/0x4)+-parseInt(_0x13cd7e(0x1f5))/0x5+parseInt(_0x13cd7e(0x1f8))/0x6+parseInt(_0x13cd7e(0x185))/0x7+parseInt(_0x13cd7e(0x210))/0x8*(parseInt(_0x13cd7e(0x1f6))/0x9)+parseInt(_0x13cd7e(0x239))/0xa;if(_0x719123===_0x2f7dc3)break;else _0x3de973['push'](_0x3de973['shift']());}catch(_0x568a4e){_0x3de973['push'](_0x3de973['shift']());}}}(_0x55fa,0x43071));var T=Object[_0x335e3f(0x24d)],U=(_0x2cd3d3,_0x131624,_0x41c942)=>_0x131624 in _0x2cd3d3?T(_0x2cd3d3,_0x131624,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41c942}):_0x2cd3d3[_0x131624]=_0x41c942,_=(_0x37f5df,_0x4dc7da,_0x550fcb)=>U(_0x37f5df,typeof _0x4dc7da!='symbol'?_0x4dc7da+'':_0x4dc7da,_0x550fcb);Object[_0x335e3f(0x24d)](exports,Symbol[_0x335e3f(0x225)],{'value':_0x335e3f(0x1ca)});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:_0x235b61,..._0xedc5e5}){const _0x4813f1=_0x335e3f,{icon:_0x25aad0,id:_0x52807a,className:_0x5d445,extend:_0x103403,..._0x476106}=_0xedc5e5,_0x13ecf6=(_0x4813f1(0x1b6)+_0x52807a+'\x20'+(_0x5d445||''))['trim'](),_0x381514=v[_0x4813f1(0x1d2)]('_'+H());return j(_0x25aad0,''+_0x52807a,{'defIds':_0x25aad0[_0x4813f1(0x1f9)],'idSuffix':_0x381514[_0x4813f1(0x1fd)]},{'ref':_0x235b61,'className':_0x13ecf6,..._0x476106},_0x103403);}function j(_0x5aeb00,_0x273af2,_0x5edc70,_0x57df21,_0x203064){const _0x478dba=_0x335e3f;return v[_0x478dba(0x207)](_0x5aeb00['tag'],{'key':_0x273af2,...y(_0x5aeb00,_0x5edc70,_0x203064),..._0x57df21},(F(_0x5aeb00,_0x5edc70)[_0x478dba(0x1d4)]||[])[_0x478dba(0x1c7)]((_0x23f294,_0xf03b57)=>j(_0x23f294,_0x273af2+'-'+_0x5aeb00['tag']+'-'+_0xf03b57,_0x5edc70,void 0x0,_0x203064)));}function y(_0x1a3d80,_0x428fb6,_0x4bfffe){const _0x5b3ce9=_0x335e3f,_0x2bd2d2={..._0x1a3d80[_0x5b3ce9(0x23b)]};_0x4bfffe!=null&&_0x4bfffe['colorChannel1']&&_0x2bd2d2[_0x5b3ce9(0x192)]===_0x5b3ce9(0x200)&&(_0x2bd2d2[_0x5b3ce9(0x192)]=_0x4bfffe[_0x5b3ce9(0x200)]),_0x1a3d80[_0x5b3ce9(0x21b)]==='mask'&&_0x2bd2d2['id']&&(_0x2bd2d2['id']=_0x2bd2d2['id']+_0x428fb6[_0x5b3ce9(0x222)]),Object[_0x5b3ce9(0x1eb)](_0x2bd2d2)[_0x5b3ce9(0x1a6)](([_0x4ccbb8,_0x37a7db])=>{const _0x55d601=_0x5b3ce9;_0x4ccbb8===_0x55d601(0x1d3)&&typeof _0x37a7db==_0x55d601(0x1fa)&&(_0x2bd2d2[_0x4ccbb8]=_0x37a7db[_0x55d601(0x209)](/url\(#(.*)\)/,_0x55d601(0x1d8)+_0x428fb6[_0x55d601(0x222)]+')'));});const {defIds:_0x55819d}=_0x428fb6;return!_0x55819d||_0x55819d[_0x5b3ce9(0x238)]===0x0||(_0x1a3d80[_0x5b3ce9(0x21b)]===_0x5b3ce9(0x1e2)&&_0x2bd2d2[_0x5b3ce9(0x1ed)]&&(_0x2bd2d2[_0x5b3ce9(0x1ed)]=_0x2bd2d2[_0x5b3ce9(0x1ed)]+_0x428fb6['idSuffix']),Object[_0x5b3ce9(0x1eb)](_0x2bd2d2)[_0x5b3ce9(0x1a6)](([_0x4cc2a4,_0x3a1206])=>{const _0x1408e6=_0x5b3ce9;typeof _0x3a1206==_0x1408e6(0x1fa)&&(_0x2bd2d2[_0x4cc2a4]=_0x3a1206[_0x1408e6(0x209)](/url\(#(.*)\)/,'url(#$1'+_0x428fb6[_0x1408e6(0x222)]+')'));})),_0x2bd2d2;}function F(_0x5ed592,_0x4e52a6){const _0x3065fa=_0x335e3f;var _0x51209e;const {defIds:_0xe52c6a}=_0x4e52a6;return!_0xe52c6a||_0xe52c6a['length']===0x0?_0x5ed592:_0x5ed592[_0x3065fa(0x21b)]===_0x3065fa(0x1fb)&&((_0x51209e=_0x5ed592[_0x3065fa(0x1d4)])!=null&&_0x51209e[_0x3065fa(0x238)])?{..._0x5ed592,'children':_0x5ed592['children']['map'](_0x531733=>typeof _0x531733[_0x3065fa(0x23b)]['id']==_0x3065fa(0x1fa)&&_0xe52c6a&&_0xe52c6a['includes'](_0x531733[_0x3065fa(0x23b)]['id'])?{..._0x531733,'attrs':{..._0x531733['attrs'],'id':_0x531733[_0x3065fa(0x23b)]['id']+_0x4e52a6[_0x3065fa(0x222)]}}:_0x531733)}:_0x5ed592;}function H(){const _0x4fd351=_0x335e3f;return Math[_0x4fd351(0x202)]()[_0x4fd351(0x198)](0x24)[_0x4fd351(0x1cd)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x335e3f(0x1b0),'attrs':{'xmlns':_0x335e3f(0x1f2),'fill':_0x335e3f(0x218),'viewBox':_0x335e3f(0x237),'width':_0x335e3f(0x1ef),'height':_0x335e3f(0x1ef)},'children':[{'tag':_0x335e3f(0x193),'attrs':{'fill':_0x335e3f(0x219),'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':'currentColor','d':_0x335e3f(0x1a5),'fillRule':_0x335e3f(0x20e),'clipRule':'evenodd'}}]},R=v['forwardRef'](function(_0x4a463e,_0x2f099c){const _0x2d9aec=_0x335e3f;return v[_0x2d9aec(0x207)](x,Object[_0x2d9aec(0x24c)]({},_0x4a463e,{'id':_0x2d9aec(0x1c2),'ref':_0x2f099c,'icon':V}));});R[_0x335e3f(0x1ea)]=_0x335e3f(0x241);class E extends o['Disposable']{constructor(){const _0x343460=_0x335e3f;super(...arguments),_(this,_0x343460(0x1ab),new Set()),_(this,_0x343460(0x20d),new Set());}['registerSharedOperation'](_0x1a9390){const _0x5b1052=_0x335e3f;return this[_0x5b1052(0x1ab)][_0x5b1052(0x1da)](_0x1a9390),o['toDisposable'](()=>this[_0x5b1052(0x1ab)][_0x5b1052(0x206)](_0x1a9390));}[_0x335e3f(0x1be)](_0x4fad4d){const _0x226551=_0x335e3f;return this[_0x226551(0x20d)][_0x226551(0x1da)](_0x4fad4d),o[_0x226551(0x1e7)](()=>this['_reporters'][_0x226551(0x206)](_0x4fad4d));}[_0x335e3f(0x20a)](_0x30dfa2){const _0x7532e1=_0x335e3f;return this[_0x7532e1(0x1ab)][_0x7532e1(0x1aa)](_0x30dfa2);}[_0x335e3f(0x242)](_0x47cdec){const _0x12d038=_0x335e3f;return Array['from'](this[_0x12d038(0x20d)])[_0x12d038(0x1c7)](_0x1d4db6=>_0x1d4db6(_0x47cdec));}}var M=Object[_0x335e3f(0x19c)],P=(_0x35f868,_0x59d011,_0x15a52c,_0x14bdef)=>{const _0x4e351f=_0x335e3f;for(var _0xb43758=_0x14bdef>0x1?void 0x0:_0x14bdef?M(_0x59d011,_0x15a52c):_0x59d011,_0x579d5f=_0x35f868[_0x4e351f(0x238)]-0x1,_0x424a98;_0x579d5f>=0x0;_0x579d5f--)(_0x424a98=_0x35f868[_0x579d5f])&&(_0xb43758=_0x424a98(_0xb43758)||_0xb43758);return _0xb43758;},S=(_0x2073e8,_0x22ebae)=>(_0x2dc02f,_0x1fc569)=>_0x22ebae(_0x2dc02f,_0x1fc569,_0x2073e8);exports[_0x335e3f(0x18c)]=class extends o[_0x335e3f(0x19b)]{constructor(_0xc2d89c,_0x49229c,_0x1b0b51){const _0x11d212=_0x335e3f;super(),_(this,_0x11d212(0x1a4),new Map()),(this[_0x11d212(0x1a0)]=_0xc2d89c,this[_0x11d212(0x1e8)]=_0x49229c,this[_0x11d212(0x23e)]=_0x1b0b51,this[_0x11d212(0x1b4)]());}async[_0x335e3f(0x1f1)](_0x26eb28){const _0x431d5f=_0x335e3f;return this['_entities'][_0x431d5f(0x1aa)](_0x26eb28)||await this[_0x431d5f(0x19a)](_0x26eb28),this[_0x431d5f(0x1a4)][_0x431d5f(0x1bd)](_0x26eb28);}[_0x335e3f(0x1a7)](_0x3224c5){var _0x2c8259;return(_0x2c8259=this['_entities']['get'](_0x3224c5))!=null?_0x2c8259:null;}[_0x335e3f(0x1b4)](){const _0x3ad4f5=_0x335e3f;this[_0x3ad4f5(0x1a0)][_0x3ad4f5(0x196)](o[_0x3ad4f5(0x203)][_0x3ad4f5(0x247)])[_0x3ad4f5(0x201)](I[_0x3ad4f5(0x21f)](this[_0x3ad4f5(0x227)]))['subscribe'](async _0x2f1aee=>{const _0x44a92e=_0x3ad4f5,_0x122aa2=_0x2f1aee['getUnitId']();this[_0x44a92e(0x1a4)]['has'](_0x122aa2)||this[_0x44a92e(0x19a)](_0x122aa2);}),this['_univerInstanceService'][_0x3ad4f5(0x1d9)](o[_0x3ad4f5(0x203)][_0x3ad4f5(0x247)])['pipe'](I[_0x3ad4f5(0x21f)](this[_0x3ad4f5(0x227)]))[_0x3ad4f5(0x23f)](_0x4939c4=>{const _0x253aa5=_0x3ad4f5,_0xd0726d=_0x4939c4[_0x253aa5(0x1d5)](),_0x25f580=this[_0x253aa5(0x1a4)][_0x253aa5(0x1bd)](_0xd0726d);_0x25f580==null||_0x25f580[_0x253aa5(0x204)]();});}async[_0x335e3f(0x19a)](_0x1858e5){const _0x15ed20=_0x335e3f,_0xa54df1=await this[_0x15ed20(0x23e)][_0x15ed20(0x1e5)](_0x1858e5),_0x2ec1b5=this[_0x15ed20(0x1e8)][_0x15ed20(0x214)](exports[_0x15ed20(0x1de)],_0x1858e5,_0xa54df1);return _0x2ec1b5[_0x15ed20(0x1ac)](),this[_0x15ed20(0x1a4)][_0x15ed20(0x195)](_0x1858e5,_0x2ec1b5),_0x2ec1b5;}},exports[_0x335e3f(0x18c)]=P([S(0x0,o[_0x335e3f(0x236)]),S(0x1,o[_0x335e3f(0x1b9)](o[_0x335e3f(0x191)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports['LiveShareController']);var u=(_0x4bc884=>(_0x4bc884[_0x335e3f(0x18b)]=_0x335e3f(0x24b),_0x4bc884['IDLE']=_0x335e3f(0x250),_0x4bc884['FOLLOWING']=_0x335e3f(0x1d0),_0x4bc884[_0x335e3f(0x1bc)]=_0x335e3f(0x1ba),_0x4bc884[_0x335e3f(0x18a)]=_0x335e3f(0x1ec),_0x4bc884))(u||{});const k=_0x335e3f(0x1ad),q=0xc8;exports[_0x335e3f(0x1de)]=class extends o['RxDisposable']{constructor(_0xe3ad91,_0x57554e,_0xb923b1,_0xa96d27,_0x5c1134){const _0xe0ece4=_0x335e3f;super(),_(this,'_status$',new O['BehaviorSubject'](_0xe0ece4(0x250))),_(this,_0xe0ece4(0x1cb),this[_0xe0ece4(0x18e)]['asObservable']()),_(this,_0xe0ece4(0x1b4),!0x1),_(this,_0xe0ece4(0x24a),null),_(this,'_presenter',null),(this[_0xe0ece4(0x1d7)]=_0xe3ad91,this[_0xe0ece4(0x1c5)]=_0x57554e,this[_0xe0ece4(0x221)]=_0xb923b1,this[_0xe0ece4(0x1c1)]=_0xa96d27,this[_0xe0ece4(0x213)]=_0x5c1134);}get[_0x335e3f(0x1bf)](){const _0x435b6f=_0x335e3f;return this['_status$'][_0x435b6f(0x1e1)]();}['dispose'](){const _0x364cd1=_0x335e3f;var _0x438aa9;(_0x438aa9=this[_0x364cd1(0x24a)])==null||_0x438aa9[_0x364cd1(0x204)](),this[_0x364cd1(0x18e)][_0x364cd1(0x251)](_0x364cd1(0x250)),this[_0x364cd1(0x18e)][_0x364cd1(0x23c)]();}['getStatus'](){return this['_status'];}[_0x335e3f(0x1ac)](){const _0x4eac70=_0x335e3f;this[_0x4eac70(0x1b4)]||(this[_0x4eac70(0x1b4)]=!0x0,this['_collabSession']['sessionStatus$'][_0x4eac70(0x201)](I[_0x4eac70(0x21f)](this[_0x4eac70(0x227)]))[_0x4eac70(0x23f)](_0x3a07a5=>{const _0x560506=_0x4eac70;switch(_0x3a07a5){case b[_0x560506(0x22f)]['OFFLINE']:this[_0x560506(0x1ae)]();break;case b[_0x560506(0x22f)]['ONLINE']:this[_0x560506(0x1e0)]();break;}}),this[_0x4eac70(0x1c5)][_0x4eac70(0x1f4)][_0x4eac70(0x201)](I[_0x4eac70(0x21f)](this[_0x4eac70(0x227)]))[_0x4eac70(0x23f)](_0x1a0916=>{const _0x14d141=_0x4eac70,{eventID:_0x4094ca}=_0x1a0916;switch(_0x4094ca){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x14d141(0x248)](_0x1a0916);break;case d[_0x14d141(0x20c)][_0x14d141(0x1cc)]:this[_0x14d141(0x233)](_0x1a0916);break;case d[_0x14d141(0x20c)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this[_0x14d141(0x1dd)](_0x1a0916);break;}}));}[_0x335e3f(0x1ee)](){const _0x45a843=_0x335e3f;this[_0x45a843(0x1c5)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x45a843(0x1d7)],'userID':this[_0x45a843(0x1c5)][_0x45a843(0x1a2)]()}},this[_0x45a843(0x1d7)]);}[_0x335e3f(0x246)](){const _0x5a0e2d=_0x335e3f;this[_0x5a0e2d(0x1bf)]==='presenting'&&(this[_0x5a0e2d(0x18e)][_0x5a0e2d(0x251)](_0x5a0e2d(0x250)),this[_0x5a0e2d(0x1c5)][_0x5a0e2d(0x188)]({'eventID':d[_0x5a0e2d(0x20c)][_0x5a0e2d(0x1f0)],'data':{'unitID':this['_unitID']}},this[_0x5a0e2d(0x1d7)]));}['startFollowing'](){const _0x3877e3=_0x335e3f;this[_0x3877e3(0x1bf)]===_0x3877e3(0x1ba)&&(this['_status$']['next'](_0x3877e3(0x1d0)),this[_0x3877e3(0x215)]());}[_0x335e3f(0x244)](){const _0x394aec=_0x335e3f;this[_0x394aec(0x1bf)]===_0x394aec(0x1d0)&&this[_0x394aec(0x223)]();}[_0x335e3f(0x248)](_0x482973){const _0x1fcab6=_0x335e3f,{presenter:_0xd7bab8}=_0x482973['data'],_0x33c1b1=this[_0x1fcab6(0x1c5)]['getMemberID']();this[_0x1fcab6(0x24e)]=_0xd7bab8,_0xd7bab8===_0x33c1b1?(this[_0x1fcab6(0x223)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x1fcab6(0x215)]());}[_0x335e3f(0x1d1)](){const _0x3a75fb=_0x335e3f,_0x4d48de={'eventID':d[_0x3a75fb(0x20c)][_0x3a75fb(0x186)]};this[_0x3a75fb(0x1c5)]['send'](_0x4d48de,this[_0x3a75fb(0x1d7)]);}['_handleTerminate'](){const _0x812121=_0x335e3f;this[_0x812121(0x24e)]=null,this[_0x812121(0x1bf)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x24b0ba){const _0x5c0e1a=_0x335e3f;if(this[_0x5c0e1a(0x1bf)]==='following'&&this[_0x5c0e1a(0x24e)]===_0x24b0ba['data']['memberID']){const _0x1ddf77=d['parseProtocolChangeset'](_0x24b0ba[_0x5c0e1a(0x1b7)])['mutations']['reverse']()[_0x5c0e1a(0x1c8)](_0x37c75a=>_0x37c75a['id']===C[_0x5c0e1a(0x197)]['id']);if(_0x1ddf77){const _0x2ca69b=_0x1ddf77[_0x5c0e1a(0x21a)][_0x5c0e1a(0x1fe)],_0x489e2a=_0x1ddf77['params'][_0x5c0e1a(0x1b1)]['id'];setTimeout(()=>{const _0x15633a=_0x5c0e1a;this[_0x15633a(0x213)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2ca69b,'subUnitId':_0x489e2a},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x57086e=_0x335e3f;this[_0x57086e(0x18e)]['next'](_0x57086e(0x1ec));const _0x50711f=new Map(),_0x4ea4c7=this[_0x57086e(0x24a)]=new o[(_0x57086e(0x243))]();_0x4ea4c7[_0x57086e(0x1da)](o[_0x57086e(0x1e7)](()=>{const _0x15605c=_0x57086e;_0x50711f[_0x15605c(0x1a6)](_0x56436b=>_0x56436b['complete']()),_0x50711f['clear']();})),_0x4ea4c7[_0x57086e(0x1da)](this[_0x57086e(0x213)][_0x57086e(0x22a)](_0x3712c6=>{const _0x41ad4c=_0x57086e;var _0x3b04c9;if(_0x3712c6['type']!==o['CommandType'][_0x41ad4c(0x1c3)]||!this[_0x41ad4c(0x1c1)][_0x41ad4c(0x20a)](_0x3712c6['id']))return;const {id:_0x3e3221}=_0x3712c6;let _0x2a6281;_0x50711f[_0x41ad4c(0x1aa)](_0x3e3221)?_0x2a6281=_0x50711f[_0x41ad4c(0x1bd)](_0x3e3221):(_0x2a6281=new O[(_0x41ad4c(0x199))](),_0x50711f[_0x41ad4c(0x195)](_0x3e3221,_0x2a6281),_0x2a6281[_0x41ad4c(0x201)](I['throttleTime']((_0x3b04c9=this[_0x41ad4c(0x221)][_0x41ad4c(0x1f7)](k))!=null?_0x3b04c9:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x41ad4c(0x23f)](_0x333549=>{const _0x66f188=_0x41ad4c;this['_collabSession'][_0x66f188(0x188)]({'eventID':d[_0x66f188(0x20c)][_0x66f188(0x1cc)],'data':{'unitID':this[_0x66f188(0x1d7)],'operations':{[_0x333549['id']]:{'id':_0x333549['id'],'params':JSON[_0x66f188(0x230)](_0x333549[_0x66f188(0x21a)])}}}},this[_0x66f188(0x1d7)]);})),_0x2a6281[_0x41ad4c(0x251)](_0x3712c6);})),this['_liveShareService'][_0x57086e(0x242)](this[_0x57086e(0x1d7)])[_0x57086e(0x1a6)](_0x434d81=>this[_0x57086e(0x1c5)][_0x57086e(0x188)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57086e(0x1d7)],'operations':{[_0x434d81['id']]:{'id':_0x434d81['id'],'params':JSON[_0x57086e(0x230)](_0x434d81[_0x57086e(0x21a)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x2f750e=_0x335e3f;var _0x12341b;this[_0x2f750e(0x18e)][_0x2f750e(0x251)](_0x2f750e(0x250)),(_0x12341b=this[_0x2f750e(0x24a)])==null||_0x12341b[_0x2f750e(0x204)](),this['_commandDisposable']=null;}[_0x335e3f(0x215)](){const _0x15f641=_0x335e3f;var _0x4da1e6;(_0x4da1e6=this[_0x15f641(0x24a)])==null||_0x4da1e6[_0x15f641(0x204)](),this[_0x15f641(0x18e)][_0x15f641(0x251)](_0x15f641(0x1d0));}[_0x335e3f(0x234)](){const _0x57f77a=_0x335e3f;var _0x534cb9;this['_status$']['next'](_0x57f77a(0x250)),(_0x534cb9=this['_commandDisposable'])==null||_0x534cb9[_0x57f77a(0x204)](),this[_0x57f77a(0x24a)]=null;}['_stopFollowing'](){const _0x9b47d1=_0x335e3f;var _0x40739e;this[_0x9b47d1(0x18e)]['next'](_0x9b47d1(0x1ba)),(_0x40739e=this[_0x9b47d1(0x24a)])==null||_0x40739e[_0x9b47d1(0x204)]();}[_0x335e3f(0x233)](_0x53c5ae){const _0x59fcd0=_0x335e3f;if([_0x59fcd0(0x1ec),_0x59fcd0(0x1ba),_0x59fcd0(0x24b)][_0x59fcd0(0x1cf)](this[_0x59fcd0(0x1bf)])||!_0x53c5ae[_0x59fcd0(0x1b7)][_0x59fcd0(0x1c6)]||_0x53c5ae[_0x59fcd0(0x1b7)][_0x59fcd0(0x1c6)]===this[_0x59fcd0(0x1c5)][_0x59fcd0(0x1a2)]())return;this['_status']===_0x59fcd0(0x250)&&this[_0x59fcd0(0x215)]();const _0x3cb6d8=_0x53c5ae[_0x59fcd0(0x1b7)]['operations'];Object[_0x59fcd0(0x1df)](_0x3cb6d8)[_0x59fcd0(0x1a6)](_0x460078=>{const _0x565d19=_0x59fcd0;this['_commandService'][_0x565d19(0x211)](_0x460078['id'],_0x460078[_0x565d19(0x21a)]?JSON['parse'](_0x460078['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2deeaf=_0x335e3f;var _0x1d2678;this['_status$'][_0x2deeaf(0x251)](_0x2deeaf(0x24b)),(_0x1d2678=this[_0x2deeaf(0x24a)])==null||_0x1d2678[_0x2deeaf(0x204)]();}['_handleOnline'](){const _0x45bbb7=_0x335e3f;this['_status$'][_0x45bbb7(0x251)](_0x45bbb7(0x250)),this['_fetchOperations']();}},exports[_0x335e3f(0x1de)]=P([S(0x2,o[_0x335e3f(0x24f)]),S(0x3,o[_0x335e3f(0x1b9)](E)),S(0x4,o[_0x335e3f(0x1af)])],exports[_0x335e3f(0x1de)]);function $(){const _0x465c12=_0x335e3f,_0x58c52e=p[_0x465c12(0x1a8)](exports['LiveShareController']),_0x21e304=p[_0x465c12(0x1a8)](o[_0x465c12(0x236)]),_0x4b3c32=p[_0x465c12(0x1fc)](()=>_0x21e304[_0x465c12(0x19f)](o[_0x465c12(0x203)][_0x465c12(0x247)]),void 0x0,!0x1,[]),[_0x4847f0,_0xfb3b85]=v[_0x465c12(0x1f3)](null),[_0x519532,_0x45ba0f]=v['useState'](u[_0x465c12(0x217)]),_0x522bac=v[_0x465c12(0x1d2)](null);return v[_0x465c12(0x216)](()=>(_0x4b3c32&&_0x58c52e[_0x465c12(0x1f1)](_0x4b3c32[_0x465c12(0x1d5)]())[_0x465c12(0x21e)](_0x2bfbc9=>{const _0x27481a=_0x465c12;_0xfb3b85(_0x2bfbc9),_0x522bac[_0x27481a(0x1fd)]=_0x2bfbc9['status$'][_0x27481a(0x23f)](_0x5a6bcc=>{_0x45ba0f(_0x5a6bcc);});}),()=>{const _0x1f08b1=_0x465c12;var _0xe43714;(_0xe43714=_0x522bac[_0x1f08b1(0x1fd)])==null||_0xe43714[_0x1f08b1(0x232)](),_0x522bac[_0x1f08b1(0x1fd)]=null;}),[_0x4b3c32,_0x58c52e]),_0x4847f0?l[_0x465c12(0x1c4)](f[_0x465c12(0x1c0)],{'align':_0x465c12(0x1b2),'disabled':_0x519532===u[_0x465c12(0x18b)],'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':l[_0x465c12(0x1c4)](W,{'status':_0x519532,'coordinator':_0x4847f0}),'children':l[_0x465c12(0x1c4)](_0x465c12(0x245),{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x519532===u[_0x465c12(0x18b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x519532!==u[_0x465c12(0x18b)]}),'type':'button','children':l[_0x465c12(0x1c4)](R,{'className':_0x465c12(0x240)})})}):null;}function W(_0x4c50d7){const _0xfdbe9b=_0x335e3f,{status:_0x25dd6f,coordinator:_0x36f486}=_0x4c50d7;switch(_0x25dd6f){case u[_0xfdbe9b(0x217)]:return l[_0xfdbe9b(0x1c4)](G,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x21c)]:return l[_0xfdbe9b(0x1c4)](B,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x1bc)]:return l[_0xfdbe9b(0x1c4)](Y,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x18b)]:return l[_0xfdbe9b(0x1c4)](J,{});case u[_0xfdbe9b(0x18a)]:return l[_0xfdbe9b(0x1c4)](Z,{'coordinator':_0x36f486});default:return null;}}function G(_0x45cb02){const _0x1fee8e=_0x335e3f,{coordinator:_0x42716f}=_0x45cb02;return l[_0x1fee8e(0x1ce)](l[_0x1fee8e(0x189)],{'children':[l[_0x1fee8e(0x1c4)](_0x1fee8e(0x23a),{'className':_0x1fee8e(0x22c),'children':_0x1fee8e(0x231)}),l[_0x1fee8e(0x1c4)](f[_0x1fee8e(0x228)],{'onClick':()=>_0x42716f[_0x1fee8e(0x1ee)](),'children':_0x1fee8e(0x208)})]});}function B(_0x55981c){const _0xd213d9=_0x335e3f,{coordinator:_0x2354ae}=_0x55981c;return l[_0xd213d9(0x1ce)](l[_0xd213d9(0x189)],{'children':[l[_0xd213d9(0x1c4)]('div',{'className':_0xd213d9(0x22c),'children':_0xd213d9(0x235)}),l['jsx'](f[_0xd213d9(0x228)],{'onClick':()=>_0x2354ae[_0xd213d9(0x244)](),'children':_0xd213d9(0x18f)})]});}function Y(_0x3280fd){const _0x546db4=_0x335e3f,{coordinator:_0x3dd81d}=_0x3280fd;return l[_0x546db4(0x1ce)](l[_0x546db4(0x189)],{'children':[l[_0x546db4(0x1c4)](_0x546db4(0x23a),{'className':_0x546db4(0x22c),'children':_0x546db4(0x22e)}),l[_0x546db4(0x1c4)](f[_0x546db4(0x228)],{'variant':_0x546db4(0x20b),'onClick':()=>_0x3dd81d[_0x546db4(0x212)](),'children':_0x546db4(0x1e9)})]});}function Z(_0xf03ade){const _0x2a119e=_0x335e3f,{coordinator:_0x4ef572}=_0xf03ade;return l[_0x2a119e(0x1ce)](l[_0x2a119e(0x189)],{'children':[l[_0x2a119e(0x1c4)]('div',{'className':_0x2a119e(0x22c),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2a119e(0x1c4)](f[_0x2a119e(0x228)],{'variant':_0x2a119e(0x1b8),'onClick':()=>_0x4ef572['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x55fa(){const _0x195d24=['univer-mb-3\x20univer-w-full\x20univer-text-sm','type','You\x27re\x20not\x20following\x20the\x20presenter','SessionStatus','stringify','Present\x20this\x20document','unsubscribe','_handleOperation','_beIdle','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','0\x200\x2017\x2017','length','1222190NorTIN','div','attrs','complete','Disposable','_collabSessionService','subscribe','univer-size-4','LiveShareIcon','getInitialStates','DisposableCollection','stopFollowing','button','stopPresenting','UNIVER_SHEET','_handleNewHost','HEADER_MENU','_commandDisposable','offline','assign','defineProperty','_presenter','IConfigService','idle','next','UNIVER_LIVE_SHARE_PLUGIN','269871OMyEyY','LIVESHARE_FETCH_OPERATIONS','mergeOverrideWithDependencies','send','Fragment','PRESENTING','OFFLINE','LiveShareController','touchDependencies','_status$','Stop\x20following','2XOaOWc','Injector','fill','path','disposeWithMe','set','getTypeOfUnitAdded$','InsertSheetMutation','toString','Subject','_startLiveShareCoordinator','RxDisposable','getOwnPropertyDescriptor','registerSharedOperation','_config','getCurrentTypeOfUnit$','_univerInstanceService','SetWorksheetActiveOperation','getMemberID','live-share.config','_entities','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','forEach','getLiveShareCoordinatorSync','useDependency','52878RfgYDx','has','_sharedOperations','init','SAME_OPERATION_SHARE_INTERVAL','_handleOffline','ICommandService','svg','sheet','end','3LqTQOt','_init','_uiPartsService','univerjs-icon\x20univerjs-icon-','data','default','Inject','not-following','LiveShareService','NOT_FOLLOWING','get','registerInitialStateReporter','_status','Dropdown','_liveShareService','live-share-icon','OPERATION','jsx','_collabSession','presenter','map','find','_mountLiveShare','Module','status$','LIVESHARE_OPERATION','substring','jsxs','includes','following','_fetchOperations','useRef','mask','children','getUnitId','IUIPartsService','_unitID','url(#$1','getTypeOfUnitDisposed$','add','onRendered','setConfig','_handleNewChangeSets','LiveShareCoordinator','values','_handleOnline','getValue','use','connectInjector','DesktopLiveShareController','requireSession','override','toDisposable','_injector','Start\x20following','displayName','entries','presenting','xlink:href','tryStartPresenting','1em','LIVESHARE_TERMINATE','getLiveShareCoordinator','http://www.w3.org/2000/svg','useState','event$','2585380kokgNa','423QgGqTr','getConfig','1355262tjgijb','defIds','string','defs','useObservable','current','unitId','DependentOn','colorChannel1','pipe','random','UniverInstanceType','dispose','462412YwZBKR','delete','createElement','Start','replace','shouldShareOperation','text','CollaborationEvent','_reporters','evenodd','LiveShareStatus','79608UYDaam','executeCommand','startFollowing','_commandService','createInstance','_startFollowing','useEffect','IDLE','none','currentColor','params','tag','FOLLOWING','registerDependencies','then','takeUntil','UNIVER_UNKNOWN','_configService','idSuffix','_stopFollowing','UniverCollaborationClientPlugin','toStringTag','UniverLiveSharePlugin','dispose$','Button','symbol','onCommandExecuted','merge'];_0x55fa=function(){return _0x195d24;};return _0x55fa();}function J(){const _0x2a8be5=_0x335e3f;return l[_0x2a8be5(0x1c4)](l[_0x2a8be5(0x189)],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0xbc2349,_0x5cfb31,_0x14845,_0x57fe07)=>{const _0x4db956=_0x335e3f;for(var _0x6b3eca=_0x57fe07>0x1?void 0x0:_0x57fe07?K(_0x5cfb31,_0x14845):_0x5cfb31,_0x4ed0a5=_0xbc2349[_0x4db956(0x238)]-0x1,_0x51d53c;_0x4ed0a5>=0x0;_0x4ed0a5--)(_0x51d53c=_0xbc2349[_0x4ed0a5])&&(_0x6b3eca=_0x51d53c(_0x6b3eca)||_0x6b3eca);return _0x6b3eca;},L=(_0x260c27,_0x561f40)=>(_0x328910,_0x34c874)=>_0x561f40(_0x328910,_0x34c874,_0x260c27);exports[_0x335e3f(0x1e4)]=class extends o['Disposable']{constructor(_0x3aaa2d,_0x7558f0){const _0x2c64a9=_0x335e3f;super(),this[_0x2c64a9(0x1e8)]=_0x3aaa2d,this[_0x2c64a9(0x1b5)]=_0x7558f0,this[_0x2c64a9(0x1c9)]();}[_0x335e3f(0x1c9)](){const _0x3262bc=_0x335e3f;this[_0x3262bc(0x194)](this['_uiPartsService']['registerComponent'](p['BuiltInUIPart'][_0x3262bc(0x249)],()=>p[_0x3262bc(0x1e3)]($,this['_injector'])));}},exports[_0x335e3f(0x1e4)]=z([L(0x0,o[_0x335e3f(0x1b9)](o[_0x335e3f(0x191)])),L(0x1,p[_0x335e3f(0x1d6)])],exports['DesktopLiveShareController']);const Q=_0x335e3f(0x1a3),w={};function _0x4ce9(_0x30666b,_0x4dbdb3){const _0x55fa89=_0x55fa();return _0x4ce9=function(_0x4ce91e,_0x25f808){_0x4ce91e=_0x4ce91e-0x184;let _0x3deaeb=_0x55fa89[_0x4ce91e];return _0x3deaeb;},_0x4ce9(_0x30666b,_0x4dbdb3);}var X=Object[_0x335e3f(0x19c)],ee=(_0x9b829c,_0x211765,_0x2f86a1,_0x35ef56)=>{const _0x2f7c84=_0x335e3f;for(var _0x3880ac=_0x35ef56>0x1?void 0x0:_0x35ef56?X(_0x211765,_0x2f86a1):_0x211765,_0x2bc75a=_0x9b829c[_0x2f7c84(0x238)]-0x1,_0x4ebeb8;_0x2bc75a>=0x0;_0x2bc75a--)(_0x4ebeb8=_0x9b829c[_0x2bc75a])&&(_0x3880ac=_0x4ebeb8(_0x3880ac)||_0x3880ac);return _0x3880ac;},te=(_0x52aaa0,_0x4a3d0d)=>(_0x164af9,_0x587066)=>_0x4a3d0d(_0x164af9,_0x587066,_0x52aaa0);let m=class extends o[_0x335e3f(0x23d)]{constructor(_0x1822b7){const _0x1b9fc6=_0x335e3f;super(),this[_0x1b9fc6(0x1c1)]=_0x1822b7,this[_0x1b9fc6(0x1b4)]();}[_0x335e3f(0x1b4)](){const _0xe5129c=_0x335e3f;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0xe5129c(0x1a1)]['id']][_0xe5129c(0x1a6)](_0x1ec6b2=>{const _0xfcd2b1=_0xe5129c;this[_0xfcd2b1(0x194)](this[_0xfcd2b1(0x1c1)][_0xfcd2b1(0x19d)](_0x1ec6b2));});}};m=ee([te(0x0,o[_0x335e3f(0x1b9)](E))],m);var ie=Object[_0x335e3f(0x24d)],se=Object[_0x335e3f(0x19c)],ne=(_0x15a97b,_0x22879f,_0xe90704)=>_0x22879f in _0x15a97b?ie(_0x15a97b,_0x22879f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe90704}):_0x15a97b[_0x22879f]=_0xe90704,re=(_0x14641e,_0x21ded4,_0x34a455,_0xa2339d)=>{for(var _0x443db5=_0xa2339d>0x1?void 0x0:_0xa2339d?se(_0x21ded4,_0x34a455):_0x21ded4,_0xec3245=_0x14641e['length']-0x1,_0x41ccd3;_0xec3245>=0x0;_0xec3245--)(_0x41ccd3=_0x14641e[_0xec3245])&&(_0x443db5=_0x41ccd3(_0x443db5)||_0x443db5);return _0x443db5;},N=(_0x50944c,_0xf09363)=>(_0x13b97f,_0x487bba)=>_0xf09363(_0x13b97f,_0x487bba,_0x50944c),A=(_0x3db79a,_0x206f12,_0x146558)=>ne(_0x3db79a,typeof _0x206f12!=_0x335e3f(0x229)?_0x206f12+'':_0x206f12,_0x146558);const oe=_0x335e3f(0x184);exports[_0x335e3f(0x226)]=class extends o['Plugin']{constructor(_0x6aea2=w,_0x3c87af,_0x3e8a3d){const _0x33d785=_0x335e3f;super(),this[_0x33d785(0x19e)]=_0x6aea2,this[_0x33d785(0x1e8)]=_0x3c87af,this['_configService']=_0x3e8a3d;const {..._0x4acc32}=o[_0x33d785(0x22b)]({},w,this['_config']);this[_0x33d785(0x221)][_0x33d785(0x1dc)](Q,_0x4acc32);}['onStarting'](){const _0x149383=_0x335e3f;o[_0x149383(0x21d)](this[_0x149383(0x1e8)],o[_0x149383(0x187)]([[E],[exports[_0x149383(0x18c)]],[m],[exports[_0x149383(0x1e4)]]],this['_config'][_0x149383(0x1e6)])),o[_0x149383(0x18d)](this[_0x149383(0x1e8)],[[m]]);}[_0x335e3f(0x1db)](){const _0x4483c0=_0x335e3f;o[_0x4483c0(0x18d)](this[_0x4483c0(0x1e8)],[[exports[_0x4483c0(0x1e4)]]]);}},A(exports['UniverLiveSharePlugin'],_0x335e3f(0x22d),o[_0x335e3f(0x203)][_0x335e3f(0x220)]),A(exports[_0x335e3f(0x226)],'pluginName',oe),exports[_0x335e3f(0x226)]=re([o[_0x335e3f(0x1ff)](b[_0x335e3f(0x224)]),N(0x1,o[_0x335e3f(0x1b9)](o['Injector'])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports[_0x335e3f(0x1bb)]=E,exports[_0x335e3f(0x20f)]=u;
1
+ 'use strict';const _0x4cc6ca=_0x5812;(function(_0x3a457,_0x33467c){const _0x4b1aaf=_0x5812,_0x316d73=_0x3a457();while(!![]){try{const _0x180d6b=parseInt(_0x4b1aaf(0x229))/0x1+parseInt(_0x4b1aaf(0x1c8))/0x2*(-parseInt(_0x4b1aaf(0x172))/0x3)+parseInt(_0x4b1aaf(0x21d))/0x4*(parseInt(_0x4b1aaf(0x1f1))/0x5)+-parseInt(_0x4b1aaf(0x1c5))/0x6+parseInt(_0x4b1aaf(0x1b7))/0x7+parseInt(_0x4b1aaf(0x22d))/0x8+-parseInt(_0x4b1aaf(0x1aa))/0x9*(-parseInt(_0x4b1aaf(0x1bc))/0xa);if(_0x180d6b===_0x33467c)break;else _0x316d73['push'](_0x316d73['shift']());}catch(_0x214142){_0x316d73['push'](_0x316d73['shift']());}}}(_0x48e6,0xadfa8));function _0x48e6(){const _0x344c78=['registerSharedOperation','InsertSheetMutation','_commandDisposable','sheet','getTypeOfUnitDisposed$','registerDependencies','map','merge','ONLINE','getOwnPropertyDescriptor','mutations','forwardRef','_config','params','unitId','37809gIVCEf','throttleTime','operations','div','SAME_OPERATION_SHARE_INTERVAL','presenting','children','_handleOffline','live-share-icon','_beIdle','LIVESHARE_FETCH_OPERATIONS','stopPresenting','useState','2421356StYNMW','_commandService','getMemberID','tag','_collabSessionService','950FPSUkX','Disposable','presenter','useObservable','delete','toDisposable','Module','values','_stopPresenting','7510896TpkseI','_univerInstanceService','_handleNewHost','14wHwXLV','idle','xlink:href','_startFollowing','_handleNewChangeSets','Dropdown','memberID','LiveShare','You\x27re\x20following\x20the\x20presenter','not-following','add','LiveShareService','symbol','currentColor','DesktopLiveShareController','touchDependencies','Injector','Subject','text','Plugin','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose','IUIPartsService','UniverInstanceType','string','LIVESHARE_NEW_HOST','univerjs-icon\x20univerjs-icon-','IConfigService','unsubscribe','IDLE','NEW_CHANGESETS','_reporters','svg','getUnitId','NOT_FOLLOWING','shouldShareOperation','startFollowing','following','complete','stringify','5AcrQYd','idSuffix','defineProperty','tryStartPresenting','HEADER_MENU','assign','_init','evenodd','_mountLiveShare','url(#$1','displayName','useDependency','_handleOnline','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','getCurrentTypeOfUnit$','CollaborationSessionService','live-share.config','none','BehaviorSubject','parse','UNIVER_UNKNOWN','FOLLOWING','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','getConfig','path','next','colorChannel1','RxDisposable','_liveShareService','Stop\x20presenting','SetScrollOperation','fill','jsxs','_startPresenting','_status','OFFLINE','_handleOperation','dispose$','1em','includes','forEach','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','2676692AaDxCJ','attrs','pluginName','current','init','getLiveShareCoordinator','stopFollowing','Present\x20this\x20document','executeCommand','0\x200\x2017\x2017','mask','PRESENTING','486587CUzZKs','set','then','_uiPartsService','3310696tJfWIO','IUniverInstanceService','status$','SetZoomRatioOperation','LiveShareCoordinator','button','offline','has','reverse','BuiltInUIPart','LiveShareIcon','event$','UNIVER_LIVE_SHARE_PLUGIN','_sharedOperations','replace','type','Inject','DisposableCollection','override','_startLiveShareCoordinator','trim','getStatus','use','createElement','DependentOn','entries','Stop\x20following','_stopFollowing','CollaborationEvent','150072yZQdjU','getTypeOfUnitAdded$','jsx','setConfig','send','LIVESHARE_TERMINATE','onCommandExecuted','SessionStatus','pipe','LiveShareController','createInstance','subscribe','_entities','UNIVER_SHEET','Start\x20following','takeUntil','clsx','sessionStatus$','Fragment','substring','_configService','LiveShareStatus','_unitID','Button','UniverLiveSharePlugin','_collabSession','default','_status$','find','getInitialStates','mergeOverrideWithDependencies','connectInjector','defs','length','_injector','data','registerInitialStateReporter','getValue','disposeWithMe','SetWorksheetActiveOperation','useRef'];_0x48e6=function(){return _0x344c78;};return _0x48e6();}var T=Object[_0x4cc6ca(0x1f3)],U=(_0x1d28ca,_0x2ae161,_0x3d712a)=>_0x2ae161 in _0x1d28ca?T(_0x1d28ca,_0x2ae161,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d712a}):_0x1d28ca[_0x2ae161]=_0x3d712a,_=(_0x4255fa,_0x39360c,_0x5bc857)=>U(_0x4255fa,typeof _0x39360c!='symbol'?_0x39360c+'':_0x39360c,_0x5bc857);Object[_0x4cc6ca(0x1f3)](exports,Symbol['toStringTag'],{'value':_0x4cc6ca(0x1c2)});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:_0x491ba0,..._0x498e88}){const _0x107484=_0x4cc6ca,{icon:_0x3e4ad7,id:_0x5eb824,className:_0x5cebc2,extend:_0x629d5b,..._0x54fb9c}=_0x498e88,_0x7503b9=(_0x107484(0x1e3)+_0x5eb824+'\x20'+(_0x5cebc2||''))[_0x107484(0x169)](),_0x1fbb2b=v[_0x107484(0x19a)]('_'+H());return j(_0x3e4ad7,''+_0x5eb824,{'defIds':_0x3e4ad7['defIds'],'idSuffix':_0x1fbb2b[_0x107484(0x220)]},{'ref':_0x491ba0,'className':_0x7503b9,..._0x54fb9c},_0x629d5b);}function j(_0x2d513e,_0xef5416,_0x296a34,_0x391893,_0x2c5b23){const _0x52d685=_0x4cc6ca;return v[_0x52d685(0x16c)](_0x2d513e[_0x52d685(0x1ba)],{'key':_0xef5416,...y(_0x2d513e,_0x296a34,_0x2c5b23),..._0x391893},(F(_0x2d513e,_0x296a34)[_0x52d685(0x1b0)]||[])[_0x52d685(0x1a1)]((_0x508223,_0x1cf8a9)=>j(_0x508223,_0xef5416+'-'+_0x2d513e['tag']+'-'+_0x1cf8a9,_0x296a34,void 0x0,_0x2c5b23)));}function y(_0x3561f0,_0x1a475d,_0x1eb6c2){const _0x5bf8a7=_0x4cc6ca,_0x25801c={..._0x3561f0['attrs']};_0x1eb6c2!=null&&_0x1eb6c2[_0x5bf8a7(0x20d)]&&_0x25801c['fill']===_0x5bf8a7(0x20d)&&(_0x25801c[_0x5bf8a7(0x212)]=_0x1eb6c2[_0x5bf8a7(0x20d)]),_0x3561f0[_0x5bf8a7(0x1ba)]===_0x5bf8a7(0x227)&&_0x25801c['id']&&(_0x25801c['id']=_0x25801c['id']+_0x1a475d['idSuffix']),Object[_0x5bf8a7(0x16e)](_0x25801c)[_0x5bf8a7(0x21b)](([_0x149dca,_0x13e026])=>{const _0x50a19e=_0x5bf8a7;_0x149dca===_0x50a19e(0x227)&&typeof _0x13e026==_0x50a19e(0x1e1)&&(_0x25801c[_0x149dca]=_0x13e026[_0x50a19e(0x23b)](/url\(#(.*)\)/,_0x50a19e(0x1fa)+_0x1a475d[_0x50a19e(0x1f2)]+')'));});const {defIds:_0x1a3b40}=_0x1a475d;return!_0x1a3b40||_0x1a3b40[_0x5bf8a7(0x193)]===0x0||(_0x3561f0[_0x5bf8a7(0x1ba)]===_0x5bf8a7(0x16b)&&_0x25801c[_0x5bf8a7(0x1ca)]&&(_0x25801c['xlink:href']=_0x25801c['xlink:href']+_0x1a475d[_0x5bf8a7(0x1f2)]),Object[_0x5bf8a7(0x16e)](_0x25801c)[_0x5bf8a7(0x21b)](([_0xec86f9,_0x31332f])=>{const _0x51ab41=_0x5bf8a7;typeof _0x31332f==_0x51ab41(0x1e1)&&(_0x25801c[_0xec86f9]=_0x31332f[_0x51ab41(0x23b)](/url\(#(.*)\)/,_0x51ab41(0x1fa)+_0x1a475d['idSuffix']+')'));})),_0x25801c;}function F(_0x4fe128,_0x33e675){const _0x11fe04=_0x4cc6ca;var _0x1eae61;const {defIds:_0x1407ec}=_0x33e675;return!_0x1407ec||_0x1407ec['length']===0x0?_0x4fe128:_0x4fe128['tag']===_0x11fe04(0x192)&&((_0x1eae61=_0x4fe128[_0x11fe04(0x1b0)])!=null&&_0x1eae61[_0x11fe04(0x193)])?{..._0x4fe128,'children':_0x4fe128[_0x11fe04(0x1b0)][_0x11fe04(0x1a1)](_0x1fd0c4=>typeof _0x1fd0c4[_0x11fe04(0x21e)]['id']==_0x11fe04(0x1e1)&&_0x1407ec&&_0x1407ec[_0x11fe04(0x21a)](_0x1fd0c4[_0x11fe04(0x21e)]['id'])?{..._0x1fd0c4,'attrs':{..._0x1fd0c4[_0x11fe04(0x21e)],'id':_0x1fd0c4[_0x11fe04(0x21e)]['id']+_0x33e675['idSuffix']}}:_0x1fd0c4)}:_0x4fe128;}function H(){const _0x59329d=_0x4cc6ca;return Math['random']()['toString'](0x24)[_0x59329d(0x185)](0x2,0x8);}x[_0x4cc6ca(0x1fb)]='UniverIcon';const V={'tag':_0x4cc6ca(0x1e9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4cc6ca(0x203),'viewBox':_0x4cc6ca(0x226),'width':_0x4cc6ca(0x219),'height':'1em'},'children':[{'tag':_0x4cc6ca(0x20b),'attrs':{'fill':_0x4cc6ca(0x1d5),'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':_0x4cc6ca(0x20b),'attrs':{'fill':'currentColor','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':_0x4cc6ca(0x1f8),'clipRule':_0x4cc6ca(0x1f8)}}]},R=v[_0x4cc6ca(0x1a6)](function(_0x2db570,_0x2cae5e){const _0x4b825c=_0x4cc6ca;return v['createElement'](x,Object[_0x4b825c(0x1f6)]({},_0x2db570,{'id':_0x4b825c(0x1b2),'ref':_0x2cae5e,'icon':V}));});R[_0x4cc6ca(0x1fb)]=_0x4cc6ca(0x237);class E extends o[_0x4cc6ca(0x1bd)]{constructor(){const _0xbaabf0=_0x4cc6ca;super(...arguments),_(this,_0xbaabf0(0x23a),new Set()),_(this,_0xbaabf0(0x1e8),new Set());}[_0x4cc6ca(0x19b)](_0x72ee06){const _0x1bfcac=_0x4cc6ca;return this[_0x1bfcac(0x23a)][_0x1bfcac(0x1d2)](_0x72ee06),o['toDisposable'](()=>this[_0x1bfcac(0x23a)][_0x1bfcac(0x1c0)](_0x72ee06));}[_0x4cc6ca(0x196)](_0x5dcaee){const _0x565122=_0x4cc6ca;return this[_0x565122(0x1e8)]['add'](_0x5dcaee),o[_0x565122(0x1c1)](()=>this['_reporters'][_0x565122(0x1c0)](_0x5dcaee));}[_0x4cc6ca(0x1ec)](_0x5d34d8){const _0x1f1726=_0x4cc6ca;return this[_0x1f1726(0x23a)][_0x1f1726(0x234)](_0x5d34d8);}[_0x4cc6ca(0x18f)](_0x1329be){const _0x5b8694=_0x4cc6ca;return Array['from'](this[_0x5b8694(0x1e8)])[_0x5b8694(0x1a1)](_0x59df21=>_0x59df21(_0x1329be));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x2f4761,_0x1944bc,_0x16244d,_0x1b192c)=>{for(var _0x770b8e=_0x1b192c>0x1?void 0x0:_0x1b192c?M(_0x1944bc,_0x16244d):_0x1944bc,_0x1f2f18=_0x2f4761['length']-0x1,_0x216623;_0x1f2f18>=0x0;_0x1f2f18--)(_0x216623=_0x2f4761[_0x1f2f18])&&(_0x770b8e=_0x216623(_0x770b8e)||_0x770b8e);return _0x770b8e;},S=(_0x3643b2,_0x47270d)=>(_0x2c3251,_0x199c04)=>_0x47270d(_0x2c3251,_0x199c04,_0x3643b2);exports['LiveShareController']=class extends o[_0x4cc6ca(0x20e)]{constructor(_0x1f4fe4,_0x382ad8,_0x51ebd2){const _0xbdcf75=_0x4cc6ca;super(),_(this,'_entities',new Map()),(this['_univerInstanceService']=_0x1f4fe4,this[_0xbdcf75(0x194)]=_0x382ad8,this[_0xbdcf75(0x1bb)]=_0x51ebd2,this['_init']());}async[_0x4cc6ca(0x222)](_0x56098c){const _0x412d94=_0x4cc6ca;return this[_0x412d94(0x17e)]['has'](_0x56098c)||await this[_0x412d94(0x168)](_0x56098c),this['_entities'][_0x412d94(0x1ff)](_0x56098c);}['getLiveShareCoordinatorSync'](_0x529d45){const _0x99d85c=_0x4cc6ca;var _0x24efd1;return(_0x24efd1=this['_entities'][_0x99d85c(0x1ff)](_0x529d45))!=null?_0x24efd1:null;}[_0x4cc6ca(0x1f7)](){const _0x50c089=_0x4cc6ca;this[_0x50c089(0x1c6)][_0x50c089(0x173)](o[_0x50c089(0x1e0)][_0x50c089(0x17f)])[_0x50c089(0x17a)](I['takeUntil'](this['dispose$']))[_0x50c089(0x17d)](async _0x7ca45d=>{const _0x5175f4=_0x50c089,_0x40d391=_0x7ca45d['getUnitId']();this['_entities'][_0x5175f4(0x234)](_0x40d391)||this[_0x5175f4(0x168)](_0x40d391);}),this[_0x50c089(0x1c6)][_0x50c089(0x19f)](o['UniverInstanceType'][_0x50c089(0x17f)])[_0x50c089(0x17a)](I[_0x50c089(0x181)](this[_0x50c089(0x218)]))['subscribe'](_0x5a82e7=>{const _0x24030a=_0x50c089,_0x36eb89=_0x5a82e7[_0x24030a(0x1ea)](),_0x5e2dbe=this['_entities'][_0x24030a(0x1ff)](_0x36eb89);_0x5e2dbe==null||_0x5e2dbe['dispose']();});}async['_startLiveShareCoordinator'](_0x58f5c4){const _0x1c248a=_0x4cc6ca,_0x5b2e7d=await this[_0x1c248a(0x1bb)]['requireSession'](_0x58f5c4),_0x2869ac=this[_0x1c248a(0x194)][_0x1c248a(0x17c)](exports[_0x1c248a(0x231)],_0x58f5c4,_0x5b2e7d);return _0x2869ac[_0x1c248a(0x221)](),this[_0x1c248a(0x17e)][_0x1c248a(0x22a)](_0x58f5c4,_0x2869ac),_0x2869ac;}},exports[_0x4cc6ca(0x17b)]=P([S(0x0,o[_0x4cc6ca(0x22e)]),S(0x1,o[_0x4cc6ca(0x23d)](o[_0x4cc6ca(0x1d8)])),S(0x2,o[_0x4cc6ca(0x23d)](b[_0x4cc6ca(0x201)]))],exports[_0x4cc6ca(0x17b)]);var u=(_0x74dee8=>(_0x74dee8['OFFLINE']='offline',_0x74dee8[_0x4cc6ca(0x1e6)]='idle',_0x74dee8[_0x4cc6ca(0x207)]=_0x4cc6ca(0x1ee),_0x74dee8['NOT_FOLLOWING']='not-following',_0x74dee8['PRESENTING']=_0x4cc6ca(0x1af),_0x74dee8))(u||{});const k=_0x4cc6ca(0x1ae),q=0xc8;exports[_0x4cc6ca(0x231)]=class extends o[_0x4cc6ca(0x20e)]{constructor(_0x4cb8c6,_0x5a5a28,_0x29fb87,_0x55fc5e,_0x29f112){const _0x295a43=_0x4cc6ca;super(),_(this,_0x295a43(0x18d),new O[(_0x295a43(0x204))]('idle')),_(this,_0x295a43(0x22f),this[_0x295a43(0x18d)]['asObservable']()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this['_unitID']=_0x4cb8c6,this['_collabSession']=_0x5a5a28,this[_0x295a43(0x186)]=_0x29fb87,this[_0x295a43(0x20f)]=_0x55fc5e,this[_0x295a43(0x1b8)]=_0x29f112);}get[_0x4cc6ca(0x215)](){const _0x4c8634=_0x4cc6ca;return this['_status$'][_0x4c8634(0x197)]();}[_0x4cc6ca(0x1de)](){const _0x13df83=_0x4cc6ca;var _0x35cfcd;(_0x35cfcd=this[_0x13df83(0x19d)])==null||_0x35cfcd[_0x13df83(0x1de)](),this['_status$'][_0x13df83(0x20c)](_0x13df83(0x1c9)),this[_0x13df83(0x18d)][_0x13df83(0x1ef)]();}[_0x4cc6ca(0x16a)](){const _0x243903=_0x4cc6ca;return this[_0x243903(0x215)];}[_0x4cc6ca(0x221)](){const _0x54de3c=_0x4cc6ca;this[_0x54de3c(0x1f7)]||(this['_init']=!0x0,this['_collabSession'][_0x54de3c(0x183)][_0x54de3c(0x17a)](I['takeUntil'](this[_0x54de3c(0x218)]))[_0x54de3c(0x17d)](_0x368960=>{const _0x2f17c0=_0x54de3c;switch(_0x368960){case b['SessionStatus'][_0x2f17c0(0x216)]:this['_handleOffline']();break;case b[_0x2f17c0(0x179)][_0x2f17c0(0x1a3)]:this[_0x2f17c0(0x1fd)]();break;}}),this['_collabSession'][_0x54de3c(0x238)][_0x54de3c(0x17a)](I[_0x54de3c(0x181)](this[_0x54de3c(0x218)]))['subscribe'](_0x5d9a19=>{const _0x5a764a=_0x54de3c,{eventID:_0x19401a}=_0x5d9a19;switch(_0x19401a){case d[_0x5a764a(0x171)][_0x5a764a(0x1e2)]:this['_handleNewHost'](_0x5d9a19);break;case d[_0x5a764a(0x171)]['LIVESHARE_OPERATION']:this[_0x5a764a(0x217)](_0x5d9a19);break;case d[_0x5a764a(0x171)][_0x5a764a(0x177)]:this['_handleTerminate']();break;case d[_0x5a764a(0x171)][_0x5a764a(0x1e7)]:this[_0x5a764a(0x1cc)](_0x5d9a19);break;}}));}[_0x4cc6ca(0x1f4)](){const _0x2f3d58=_0x4cc6ca;this[_0x2f3d58(0x18b)][_0x2f3d58(0x176)]({'eventID':d[_0x2f3d58(0x171)][_0x2f3d58(0x209)],'data':{'unitID':this[_0x2f3d58(0x188)],'userID':this[_0x2f3d58(0x18b)][_0x2f3d58(0x1b9)]()}},this[_0x2f3d58(0x188)]);}[_0x4cc6ca(0x1b5)](){const _0x238150=_0x4cc6ca;this['_status']===_0x238150(0x1af)&&(this[_0x238150(0x18d)][_0x238150(0x20c)](_0x238150(0x1c9)),this[_0x238150(0x18b)][_0x238150(0x176)]({'eventID':d['CollaborationEvent'][_0x238150(0x177)],'data':{'unitID':this[_0x238150(0x188)]}},this[_0x238150(0x188)]));}[_0x4cc6ca(0x1ed)](){const _0x16d7bd=_0x4cc6ca;this['_status']===_0x16d7bd(0x1d1)&&(this[_0x16d7bd(0x18d)]['next'](_0x16d7bd(0x1ee)),this[_0x16d7bd(0x1cb)]());}[_0x4cc6ca(0x223)](){const _0x39bd0b=_0x4cc6ca;this[_0x39bd0b(0x215)]===_0x39bd0b(0x1ee)&&this[_0x39bd0b(0x170)]();}[_0x4cc6ca(0x1c7)](_0x53bd3a){const _0x167870=_0x4cc6ca,{presenter:_0x208296}=_0x53bd3a[_0x167870(0x195)],_0x2a7c7c=this[_0x167870(0x18b)][_0x167870(0x1b9)]();this['_presenter']=_0x208296,_0x208296===_0x2a7c7c?(this[_0x167870(0x170)](),this[_0x167870(0x214)]()):this[_0x167870(0x215)]!==_0x167870(0x1d1)&&(this[_0x167870(0x1c4)](),this[_0x167870(0x1cb)]());}['_fetchOperations'](){const _0xaef9ff=_0x4cc6ca,_0x4047e5={'eventID':d[_0xaef9ff(0x171)][_0xaef9ff(0x1b4)]};this[_0xaef9ff(0x18b)][_0xaef9ff(0x176)](_0x4047e5,this['_unitID']);}['_handleTerminate'](){const _0x1cc109=_0x4cc6ca;this[_0x1cc109(0x1dc)]=null,this[_0x1cc109(0x215)]!==_0x1cc109(0x1af)&&this[_0x1cc109(0x1b3)]();}[_0x4cc6ca(0x1cc)](_0x258079){const _0x4c0c3e=_0x4cc6ca;if(this[_0x4c0c3e(0x215)]===_0x4c0c3e(0x1ee)&&this[_0x4c0c3e(0x1dc)]===_0x258079[_0x4c0c3e(0x195)][_0x4c0c3e(0x1ce)]){const _0x4e8b22=d['parseProtocolChangeset'](_0x258079[_0x4c0c3e(0x195)])[_0x4c0c3e(0x1a5)][_0x4c0c3e(0x235)]()[_0x4c0c3e(0x18e)](_0x2ff7e2=>_0x2ff7e2['id']===C[_0x4c0c3e(0x19c)]['id']);if(_0x4e8b22){const _0x36f599=_0x4e8b22['params'][_0x4c0c3e(0x1a9)],_0x41ba4b=_0x4e8b22['params'][_0x4c0c3e(0x19e)]['id'];setTimeout(()=>{const _0x34f239=_0x4c0c3e;this[_0x34f239(0x1b8)][_0x34f239(0x225)](C[_0x34f239(0x199)]['id'],{'unitId':_0x36f599,'subUnitId':_0x41ba4b},{'fromCollab':!0x0});});}}}[_0x4cc6ca(0x214)](){const _0x5bb2dc=_0x4cc6ca;this['_status$'][_0x5bb2dc(0x20c)](_0x5bb2dc(0x1af));const _0x2f40bf=new Map(),_0x3eaa8d=this[_0x5bb2dc(0x19d)]=new o[(_0x5bb2dc(0x23e))]();_0x3eaa8d[_0x5bb2dc(0x1d2)](o[_0x5bb2dc(0x1c1)](()=>{const _0x553eb8=_0x5bb2dc;_0x2f40bf[_0x553eb8(0x21b)](_0xd546a1=>_0xd546a1[_0x553eb8(0x1ef)]()),_0x2f40bf['clear']();})),_0x3eaa8d[_0x5bb2dc(0x1d2)](this[_0x5bb2dc(0x1b8)][_0x5bb2dc(0x178)](_0x3a417d=>{const _0x502874=_0x5bb2dc;var _0x4306c4;if(_0x3a417d[_0x502874(0x23c)]!==o['CommandType']['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x3a417d['id']))return;const {id:_0x2e770d}=_0x3a417d;let _0xa7e931;_0x2f40bf[_0x502874(0x234)](_0x2e770d)?_0xa7e931=_0x2f40bf[_0x502874(0x1ff)](_0x2e770d):(_0xa7e931=new O[(_0x502874(0x1d9))](),_0x2f40bf['set'](_0x2e770d,_0xa7e931),_0xa7e931[_0x502874(0x17a)](I[_0x502874(0x1ab)]((_0x4306c4=this[_0x502874(0x186)][_0x502874(0x20a)](k))!=null?_0x4306c4:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x502874(0x17d)](_0x2f1981=>{const _0x1696ea=_0x502874;this[_0x1696ea(0x18b)][_0x1696ea(0x176)]({'eventID':d[_0x1696ea(0x171)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2f1981['id']]:{'id':_0x2f1981['id'],'params':JSON[_0x1696ea(0x1f0)](_0x2f1981[_0x1696ea(0x1a8)])}}}},this[_0x1696ea(0x188)]);})),_0xa7e931[_0x502874(0x20c)](_0x3a417d);})),this['_liveShareService'][_0x5bb2dc(0x18f)](this['_unitID'])['forEach'](_0x3803c0=>this['_collabSession'][_0x5bb2dc(0x176)]({'eventID':d[_0x5bb2dc(0x171)][_0x5bb2dc(0x208)],'data':{'unitID':this[_0x5bb2dc(0x188)],'operations':{[_0x3803c0['id']]:{'id':_0x3803c0['id'],'params':JSON[_0x5bb2dc(0x1f0)](_0x3803c0[_0x5bb2dc(0x1a8)])}}}},this[_0x5bb2dc(0x188)]));}[_0x4cc6ca(0x1c4)](){const _0x47f72b=_0x4cc6ca;var _0x277422;this['_status$']['next'](_0x47f72b(0x1c9)),(_0x277422=this[_0x47f72b(0x19d)])==null||_0x277422[_0x47f72b(0x1de)](),this[_0x47f72b(0x19d)]=null;}[_0x4cc6ca(0x1cb)](){const _0x32f386=_0x4cc6ca;var _0x122025;(_0x122025=this[_0x32f386(0x19d)])==null||_0x122025[_0x32f386(0x1de)](),this[_0x32f386(0x18d)][_0x32f386(0x20c)](_0x32f386(0x1ee));}[_0x4cc6ca(0x1b3)](){const _0x5cda15=_0x4cc6ca;var _0x29bfda;this[_0x5cda15(0x18d)]['next'](_0x5cda15(0x1c9)),(_0x29bfda=this[_0x5cda15(0x19d)])==null||_0x29bfda[_0x5cda15(0x1de)](),this[_0x5cda15(0x19d)]=null;}['_stopFollowing'](){const _0x1f9aca=_0x4cc6ca;var _0x371b40;this['_status$'][_0x1f9aca(0x20c)](_0x1f9aca(0x1d1)),(_0x371b40=this[_0x1f9aca(0x19d)])==null||_0x371b40['dispose']();}['_handleOperation'](_0x5e1a51){const _0x4fc819=_0x4cc6ca;if(['presenting',_0x4fc819(0x1d1),'offline'][_0x4fc819(0x21a)](this['_status'])||!_0x5e1a51[_0x4fc819(0x195)][_0x4fc819(0x1be)]||_0x5e1a51[_0x4fc819(0x195)][_0x4fc819(0x1be)]===this[_0x4fc819(0x18b)]['getMemberID']())return;this['_status']==='idle'&&this[_0x4fc819(0x1cb)]();const _0x1e1c8a=_0x5e1a51[_0x4fc819(0x195)][_0x4fc819(0x1ac)];Object[_0x4fc819(0x1c3)](_0x1e1c8a)[_0x4fc819(0x21b)](_0x52ba97=>{const _0x1f8064=_0x4fc819;this[_0x1f8064(0x1b8)]['executeCommand'](_0x52ba97['id'],_0x52ba97[_0x1f8064(0x1a8)]?JSON[_0x1f8064(0x205)](_0x52ba97[_0x1f8064(0x1a8)]):null,{'fromCollab':!0x0});});}[_0x4cc6ca(0x1b1)](){const _0x2d10eb=_0x4cc6ca;var _0x9131c5;this[_0x2d10eb(0x18d)][_0x2d10eb(0x20c)](_0x2d10eb(0x233)),(_0x9131c5=this[_0x2d10eb(0x19d)])==null||_0x9131c5[_0x2d10eb(0x1de)]();}['_handleOnline'](){const _0x52546c=_0x4cc6ca;this['_status$'][_0x52546c(0x20c)](_0x52546c(0x1c9)),this['_fetchOperations']();}},exports[_0x4cc6ca(0x231)]=P([S(0x2,o[_0x4cc6ca(0x1e4)]),S(0x3,o[_0x4cc6ca(0x23d)](E)),S(0x4,o['ICommandService'])],exports[_0x4cc6ca(0x231)]);function $(){const _0x3f4473=_0x4cc6ca,_0x19551c=p[_0x3f4473(0x1fc)](exports[_0x3f4473(0x17b)]),_0x691e47=p[_0x3f4473(0x1fc)](o['IUniverInstanceService']),_0x3004=p[_0x3f4473(0x1bf)](()=>_0x691e47[_0x3f4473(0x200)](o[_0x3f4473(0x1e0)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x599ba0,_0x1f2c7a]=v[_0x3f4473(0x1b6)](null),[_0x3f99f7,_0x18729]=v[_0x3f4473(0x1b6)](u['IDLE']),_0x51292d=v[_0x3f4473(0x19a)](null);return v['useEffect'](()=>(_0x3004&&_0x19551c['getLiveShareCoordinator'](_0x3004[_0x3f4473(0x1ea)]())[_0x3f4473(0x22b)](_0x21f597=>{const _0x9487c5=_0x3f4473;_0x1f2c7a(_0x21f597),_0x51292d[_0x9487c5(0x220)]=_0x21f597[_0x9487c5(0x22f)][_0x9487c5(0x17d)](_0xee09b2=>{_0x18729(_0xee09b2);});}),()=>{const _0x5a397c=_0x3f4473;var _0x5720ed;(_0x5720ed=_0x51292d[_0x5a397c(0x220)])==null||_0x5720ed[_0x5a397c(0x1e5)](),_0x51292d['current']=null;}),[_0x3004,_0x19551c]),_0x599ba0?l[_0x3f4473(0x174)](f[_0x3f4473(0x1cd)],{'align':'end','disabled':_0x3f99f7===u[_0x3f4473(0x216)],'className':_0x3f4473(0x21c),'overlay':l[_0x3f4473(0x174)](W,{'status':_0x3f99f7,'coordinator':_0x599ba0}),'children':l[_0x3f4473(0x174)](_0x3f4473(0x232),{'className':f[_0x3f4473(0x182)](_0x3f4473(0x1dd),{'univer-cursor-not-allowed':_0x3f99f7===u[_0x3f4473(0x216)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f99f7!==u[_0x3f4473(0x216)]}),'type':'button','children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x458d53){const _0x21f54b=_0x4cc6ca,{status:_0x3292e1,coordinator:_0x874fdb}=_0x458d53;switch(_0x3292e1){case u[_0x21f54b(0x1e6)]:return l[_0x21f54b(0x174)](G,{'coordinator':_0x874fdb});case u['FOLLOWING']:return l[_0x21f54b(0x174)](B,{'coordinator':_0x874fdb});case u[_0x21f54b(0x1eb)]:return l['jsx'](Y,{'coordinator':_0x874fdb});case u[_0x21f54b(0x216)]:return l['jsx'](J,{});case u[_0x21f54b(0x228)]:return l['jsx'](Z,{'coordinator':_0x874fdb});default:return null;}}function G(_0x10af61){const _0x36599e=_0x4cc6ca,{coordinator:_0x4da583}=_0x10af61;return l[_0x36599e(0x213)](l[_0x36599e(0x184)],{'children':[l[_0x36599e(0x174)](_0x36599e(0x1ad),{'className':_0x36599e(0x1fe),'children':_0x36599e(0x224)}),l[_0x36599e(0x174)](f['Button'],{'onClick':()=>_0x4da583[_0x36599e(0x1f4)](),'children':'Start'})]});}function B(_0x4daf79){const _0x584c3c=_0x4cc6ca,{coordinator:_0x29a2b9}=_0x4daf79;return l['jsxs'](l[_0x584c3c(0x184)],{'children':[l['jsx'](_0x584c3c(0x1ad),{'className':_0x584c3c(0x1fe),'children':_0x584c3c(0x1d0)}),l[_0x584c3c(0x174)](f['Button'],{'onClick':()=>_0x29a2b9[_0x584c3c(0x223)](),'children':_0x584c3c(0x16f)})]});}function Y(_0x3bd2ca){const _0x9fca71=_0x4cc6ca,{coordinator:_0x48731d}=_0x3bd2ca;return l[_0x9fca71(0x213)](l[_0x9fca71(0x184)],{'children':[l['jsx'](_0x9fca71(0x1ad),{'className':_0x9fca71(0x1fe),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](f['Button'],{'variant':_0x9fca71(0x1da),'onClick':()=>_0x48731d[_0x9fca71(0x1ed)](),'children':_0x9fca71(0x180)})]});}function Z(_0x54e60b){const _0xce5e8f=_0x4cc6ca,{coordinator:_0x2c7120}=_0x54e60b;return l['jsxs'](l[_0xce5e8f(0x184)],{'children':[l['jsx'](_0xce5e8f(0x1ad),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0xce5e8f(0x174)](f[_0xce5e8f(0x189)],{'variant':_0xce5e8f(0x18c),'onClick':()=>_0x2c7120[_0xce5e8f(0x1b5)](),'children':_0xce5e8f(0x210)})]});}function J(){const _0x4586b8=_0x4cc6ca;return l[_0x4586b8(0x174)](l['Fragment'],{'children':'You\x27are\x20offline.'});}function _0x5812(_0x1ccaa2,_0xa2bfb4){const _0x48e6d6=_0x48e6();return _0x5812=function(_0x581273,_0xc55876){_0x581273=_0x581273-0x168;let _0x2ec236=_0x48e6d6[_0x581273];return _0x2ec236;},_0x5812(_0x1ccaa2,_0xa2bfb4);}var K=Object[_0x4cc6ca(0x1a4)],z=(_0x4a0444,_0x4ceeee,_0x42aa0f,_0x267d31)=>{const _0xc2a99f=_0x4cc6ca;for(var _0x5126df=_0x267d31>0x1?void 0x0:_0x267d31?K(_0x4ceeee,_0x42aa0f):_0x4ceeee,_0x5cba44=_0x4a0444[_0xc2a99f(0x193)]-0x1,_0x442652;_0x5cba44>=0x0;_0x5cba44--)(_0x442652=_0x4a0444[_0x5cba44])&&(_0x5126df=_0x442652(_0x5126df)||_0x5126df);return _0x5126df;},L=(_0x33135a,_0x4ccf80)=>(_0x4a3c42,_0x2edfc9)=>_0x4ccf80(_0x4a3c42,_0x2edfc9,_0x33135a);exports[_0x4cc6ca(0x1d6)]=class extends o[_0x4cc6ca(0x1bd)]{constructor(_0x33413c,_0x14fed9){const _0x5483a2=_0x4cc6ca;super(),this[_0x5483a2(0x194)]=_0x33413c,this[_0x5483a2(0x22c)]=_0x14fed9,this[_0x5483a2(0x1f9)]();}[_0x4cc6ca(0x1f9)](){const _0x5f2516=_0x4cc6ca;this[_0x5f2516(0x198)](this[_0x5f2516(0x22c)]['registerComponent'](p[_0x5f2516(0x236)][_0x5f2516(0x1f5)],()=>p[_0x5f2516(0x191)]($,this['_injector'])));}},exports[_0x4cc6ca(0x1d6)]=z([L(0x0,o[_0x4cc6ca(0x23d)](o[_0x4cc6ca(0x1d8)])),L(0x1,p[_0x4cc6ca(0x1df)])],exports[_0x4cc6ca(0x1d6)]);const Q=_0x4cc6ca(0x202),w={};var X=Object[_0x4cc6ca(0x1a4)],ee=(_0x4c4a4d,_0x320252,_0x3a5469,_0x619358)=>{const _0x12ff38=_0x4cc6ca;for(var _0x3665eb=_0x619358>0x1?void 0x0:_0x619358?X(_0x320252,_0x3a5469):_0x320252,_0x54c7e6=_0x4c4a4d[_0x12ff38(0x193)]-0x1,_0x4aa8e3;_0x54c7e6>=0x0;_0x54c7e6--)(_0x4aa8e3=_0x4c4a4d[_0x54c7e6])&&(_0x3665eb=_0x4aa8e3(_0x3665eb)||_0x3665eb);return _0x3665eb;},te=(_0x1198f9,_0x53597e)=>(_0x5ed447,_0x53cd4d)=>_0x53597e(_0x5ed447,_0x53cd4d,_0x1198f9);let m=class extends o[_0x4cc6ca(0x1bd)]{constructor(_0x18e6ad){const _0x4f9629=_0x4cc6ca;super(),this[_0x4f9629(0x20f)]=_0x18e6ad,this[_0x4f9629(0x1f7)]();}['_init'](){const _0x591783=_0x4cc6ca;[D[_0x591783(0x230)]['id'],D[_0x591783(0x211)]['id'],C[_0x591783(0x199)]['id']]['forEach'](_0x32a9c5=>{const _0x19bcf8=_0x591783;this[_0x19bcf8(0x198)](this[_0x19bcf8(0x20f)][_0x19bcf8(0x19b)](_0x32a9c5));});}};m=ee([te(0x0,o[_0x4cc6ca(0x23d)](E))],m);var ie=Object[_0x4cc6ca(0x1f3)],se=Object['getOwnPropertyDescriptor'],ne=(_0x5355b7,_0x1465f6,_0x1fc4ae)=>_0x1465f6 in _0x5355b7?ie(_0x5355b7,_0x1465f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fc4ae}):_0x5355b7[_0x1465f6]=_0x1fc4ae,re=(_0x26b852,_0x29ab97,_0x1af0bd,_0x35fe03)=>{const _0x196bc2=_0x4cc6ca;for(var _0x35246b=_0x35fe03>0x1?void 0x0:_0x35fe03?se(_0x29ab97,_0x1af0bd):_0x29ab97,_0x190947=_0x26b852[_0x196bc2(0x193)]-0x1,_0xf6ba44;_0x190947>=0x0;_0x190947--)(_0xf6ba44=_0x26b852[_0x190947])&&(_0x35246b=_0xf6ba44(_0x35246b)||_0x35246b);return _0x35246b;},N=(_0x52bae5,_0x20d67c)=>(_0x2e40c9,_0x147180)=>_0x20d67c(_0x2e40c9,_0x147180,_0x52bae5),A=(_0x43e79c,_0x1c4332,_0x5d72c0)=>ne(_0x43e79c,typeof _0x1c4332!=_0x4cc6ca(0x1d4)?_0x1c4332+'':_0x1c4332,_0x5d72c0);const oe=_0x4cc6ca(0x239);exports[_0x4cc6ca(0x18a)]=class extends o[_0x4cc6ca(0x1db)]{constructor(_0x2e2b92=w,_0x32edd3,_0x1742a7){const _0x58a51c=_0x4cc6ca;super(),this['_config']=_0x2e2b92,this['_injector']=_0x32edd3,this[_0x58a51c(0x186)]=_0x1742a7;const {..._0x19bbbe}=o[_0x58a51c(0x1a2)]({},w,this['_config']);this[_0x58a51c(0x186)][_0x58a51c(0x175)](Q,_0x19bbbe);}['onStarting'](){const _0x69ab5d=_0x4cc6ca;o[_0x69ab5d(0x1a0)](this['_injector'],o[_0x69ab5d(0x190)]([[E],[exports[_0x69ab5d(0x17b)]],[m],[exports[_0x69ab5d(0x1d6)]]],this[_0x69ab5d(0x1a7)][_0x69ab5d(0x23f)])),o[_0x69ab5d(0x1d7)](this[_0x69ab5d(0x194)],[[m]]);}['onRendered'](){const _0x55b30a=_0x4cc6ca;o[_0x55b30a(0x1d7)](this['_injector'],[[exports[_0x55b30a(0x1d6)]]]);}},A(exports[_0x4cc6ca(0x18a)],'type',o[_0x4cc6ca(0x1e0)][_0x4cc6ca(0x206)]),A(exports[_0x4cc6ca(0x18a)],_0x4cc6ca(0x21f),oe),exports[_0x4cc6ca(0x18a)]=re([o[_0x4cc6ca(0x16d)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x4cc6ca(0x23d)](o[_0x4cc6ca(0x1d8)])),N(0x2,o[_0x4cc6ca(0x1e4)])],exports[_0x4cc6ca(0x18a)]),exports[_0x4cc6ca(0x1cf)]=$,exports[_0x4cc6ca(0x1d3)]=E,exports[_0x4cc6ca(0x187)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2b54dc=_0x1cda;(function(_0x4f436f,_0x5b0850){const _0x59851d=_0x1cda,_0x14bc6b=_0x4f436f();while(!![]){try{const _0xf4f163=-parseInt(_0x59851d(0x96))/0x1*(-parseInt(_0x59851d(0x9c))/0x2)+parseInt(_0x59851d(0xa8))/0x3+-parseInt(_0x59851d(0xa2))/0x4+-parseInt(_0x59851d(0x94))/0x5+parseInt(_0x59851d(0xa0))/0x6*(parseInt(_0x59851d(0x97))/0x7)+-parseInt(_0x59851d(0x98))/0x8+parseInt(_0x59851d(0xa6))/0x9*(parseInt(_0x59851d(0x90))/0xa);if(_0xf4f163===_0x5b0850)break;else _0x14bc6b['push'](_0x14bc6b['shift']());}catch(_0x2894bb){_0x14bc6b['push'](_0x14bc6b['shift']());}}}(_0x2c2f,0x8f628));import{LiveShareController as _0x360aa6,LiveShareStatus as _0x2921bd}from'@univerjs-pro/live-share';function _0x1cda(_0x4ef67,_0x42a305){const _0x2c2f4a=_0x2c2f();return _0x1cda=function(_0x1cda42,_0xc328cb){_0x1cda42=_0x1cda42-0x8f;let _0x3b7683=_0x2c2f4a[_0x1cda42];return _0x3b7683;},_0x1cda(_0x4ef67,_0x42a305);}import{IRenderManagerService as _0x5581eb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x11fd11}from'@univerjs/sheets';import{SetScrollOperation as _0x5c7015}from'@univerjs/sheets-ui';import{FRange as _0x3cbc29}from'@univerjs/sheets/facade';function _0x2c2f(){const _0x3116c7=['getLiveShareCoordinatorSync','304335PxgWHE','No\x20active\x20workbook\x20found.','2865159zdHbaL','stopPresenting','startRow','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getId','PRESENTING','120dztKlf','get','getSheetId','stopFollowing','5867370MvUzGJ','startPresenting','36502znEKnM','99001iSzQyU','8612216gRnrDL','startColumn','getActiveWorkbook','getActiveSheet','46gxUSiT','extend','_commandService','_injector','396kyImME','getLiveShareStatus','1186048WyfsOC','IDLE','getStatus'];_0x2c2f=function(){return _0x3116c7;};return _0x2c2f();}import{FUniver as _0x588fcb,FEnum as _0x1789a1}from'@univerjs/core/facade';class I extends _0x3cbc29{['_initialize'](_0x42495e,_0x555848,_0x1e6493,_0x59deac,_0x19cf00){const _0x477317=_0x1cda,_0x28b36e=_0x42495e[_0x477317(0x91)](_0x360aa6),_0x31b023=_0x42495e[_0x477317(0x91)](_0x5581eb),_0x3689f5=_0x555848[_0x477317(0xab)](),_0x1873dd=_0x555848[_0x477317(0x9b)](),_0x196b83=_0x28b36e[_0x477317(0xa5)](_0x3689f5);(_0x196b83==null?void 0x0:_0x196b83['getStatus']())!==_0x2921bd[_0x477317(0x8f)]||(_0x1e6493[_0x477317(0x92)]()!==_0x1873dd[_0x477317(0x92)]()&&this[_0x477317(0x9e)]['executeCommand'](_0x11fd11['id'],{'unitId':_0x3689f5,'subUnitId':_0x1e6493['getSheetId']()}),!_0x31b023['getRenderById'](_0x3689f5))||_0x19cf00['syncExecuteCommand'](_0x5c7015['id'],{'unitId':_0x555848[_0x477317(0xab)](),'sheetId':_0x1e6493['getSheetId'](),'sheetViewStartRow':_0x59deac[_0x477317(0xaa)],'sheetViewStartColumn':_0x59deac[_0x477317(0x99)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3cbc29[_0x2b54dc(0x9d)](I);class m extends _0x588fcb{[_0x2b54dc(0xa1)](){const _0x586947=_0x2b54dc;var _0x14a0d0,_0x213e21;const _0x48aa70=this['_injector'][_0x586947(0x91)](_0x360aa6),_0x8862f9=(_0x14a0d0=this['getActiveWorkbook']())==null?void 0x0:_0x14a0d0[_0x586947(0xae)]();if(!_0x8862f9)throw new Error('No\x20active\x20workbook\x20found.');const _0xda90e6=_0x48aa70[_0x586947(0xa5)](_0x8862f9);return(_0x213e21=_0xda90e6==null?void 0x0:_0xda90e6[_0x586947(0xa4)]())!=null?_0x213e21:_0x2921bd[_0x586947(0xa3)];}[_0x2b54dc(0xad)](){const _0x448248=_0x2b54dc;var _0x52c069;const _0xbf2cf6=this['_injector'][_0x448248(0x91)](_0x360aa6),_0x5b19c8=(_0x52c069=this[_0x448248(0x9a)]())==null?void 0x0:_0x52c069[_0x448248(0xae)]();if(!_0x5b19c8)throw new Error('No\x20active\x20workbook\x20found.');const _0x10207a=_0xbf2cf6['getLiveShareCoordinatorSync'](_0x5b19c8);if(!_0x10207a)throw new Error(_0x448248(0xac));_0x10207a[_0x448248(0xad)]();}[_0x2b54dc(0x93)](){const _0xa46f10=_0x2b54dc;var _0x44023a;const _0x27e4ba=this[_0xa46f10(0x9f)][_0xa46f10(0x91)](_0x360aa6),_0x348b1=(_0x44023a=this[_0xa46f10(0x9a)]())==null?void 0x0:_0x44023a[_0xa46f10(0xae)]();if(!_0x348b1)throw new Error(_0xa46f10(0xa7));const _0x7ffa37=_0x27e4ba[_0xa46f10(0xa5)](_0x348b1);if(!_0x7ffa37)throw new Error(_0xa46f10(0xac));_0x7ffa37[_0xa46f10(0x93)]();}[_0x2b54dc(0x95)](){const _0x46ba7e=_0x2b54dc;var _0x2c680c;const _0x15ebf7=this['_injector'][_0x46ba7e(0x91)](_0x360aa6),_0x32691f=(_0x2c680c=this[_0x46ba7e(0x9a)]())==null?void 0x0:_0x2c680c[_0x46ba7e(0xae)]();if(!_0x32691f)throw new Error(_0x46ba7e(0xa7));const _0x30e3ff=_0x15ebf7[_0x46ba7e(0xa5)](_0x32691f);if(!_0x30e3ff)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x30e3ff['tryStartPresenting']();}[_0x2b54dc(0xa9)](){const _0x5bae7a=_0x2b54dc;var _0x595c1e;const _0x83fc3b=this[_0x5bae7a(0x9f)]['get'](_0x360aa6),_0x49148d=(_0x595c1e=this['getActiveWorkbook']())==null?void 0x0:_0x595c1e[_0x5bae7a(0xae)]();if(!_0x49148d)throw new Error(_0x5bae7a(0xa7));const _0x30450b=_0x83fc3b[_0x5bae7a(0xa5)](_0x49148d);if(!_0x30450b)throw new Error(_0x5bae7a(0xac));_0x30450b[_0x5bae7a(0xa9)]();}}_0x588fcb['extend'](m);class C extends _0x1789a1{get['LiveShareStatusEnum'](){return _0x2921bd;}}_0x1789a1['extend'](C);
1
+ const _0x18338d=_0xb22d;(function(_0xfdbaf5,_0x3bc3fa){const _0x3c3549=_0xb22d,_0x5c80c2=_0xfdbaf5();while(!![]){try{const _0x584f9d=-parseInt(_0x3c3549(0x184))/0x1*(parseInt(_0x3c3549(0x18e))/0x2)+parseInt(_0x3c3549(0x19d))/0x3+-parseInt(_0x3c3549(0x18a))/0x4*(parseInt(_0x3c3549(0x18d))/0x5)+parseInt(_0x3c3549(0x187))/0x6+parseInt(_0x3c3549(0x196))/0x7*(-parseInt(_0x3c3549(0x19e))/0x8)+-parseInt(_0x3c3549(0x189))/0x9*(-parseInt(_0x3c3549(0x193))/0xa)+parseInt(_0x3c3549(0x19b))/0xb*(parseInt(_0x3c3549(0x1a4))/0xc);if(_0x584f9d===_0x3bc3fa)break;else _0x5c80c2['push'](_0x5c80c2['shift']());}catch(_0x1bacc5){_0x5c80c2['push'](_0x5c80c2['shift']());}}}(_0x19d3,0xa332e));import{LiveShareController as _0x449d35,LiveShareStatus as _0x296cc0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2a1c10}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xb9115a}from'@univerjs/sheets';import{SetScrollOperation as _0x2d2414}from'@univerjs/sheets-ui';import{FRange as _0x234974}from'@univerjs/sheets/facade';function _0xb22d(_0x4e835c,_0x2b420d){const _0x19d355=_0x19d3();return _0xb22d=function(_0xb22d33,_0x31ccd2){_0xb22d33=_0xb22d33-0x184;let _0x5ce084=_0x19d355[_0xb22d33];return _0x5ce084;},_0xb22d(_0x4e835c,_0x2b420d);}function _0x19d3(){const _0x5ea076=['extend','16020631zwYUgK','getSheetId','1647570BOUalM','737312RGmYTA','getId','_commandService','startPresenting','get','syncExecuteCommand','12LtRMIG','2hBfMcK','PRESENTING','startColumn','3614976vtUGVX','startFollowing','493821veDWOc','56PvNXOf','getStatus','_initialize','408405LGMEdE','995866KQNatx','_injector','getLiveShareCoordinatorSync','stopFollowing','stopPresenting','70ozVwPl','getRenderById','getActiveWorkbook','14JDWIfJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','tryStartPresenting','No\x20active\x20workbook\x20found.'];_0x19d3=function(){return _0x5ea076;};return _0x19d3();}import{FUniver as _0x10a831,FEnum as _0x2bf98d}from'@univerjs/core/facade';class I extends _0x234974{[_0x18338d(0x18c)](_0x5e8a27,_0x1b6211,_0x460c4f,_0x6a8f32,_0x15a8dc){const _0x5cee34=_0x18338d,_0x380fa1=_0x5e8a27[_0x5cee34(0x1a2)](_0x449d35),_0x45eea3=_0x5e8a27[_0x5cee34(0x1a2)](_0x2a1c10),_0x38a6e7=_0x1b6211['getUnitId'](),_0x8a948b=_0x1b6211['getActiveSheet'](),_0x2435d6=_0x380fa1[_0x5cee34(0x190)](_0x38a6e7);(_0x2435d6==null?void 0x0:_0x2435d6['getStatus']())!==_0x296cc0[_0x5cee34(0x185)]||(_0x460c4f[_0x5cee34(0x19c)]()!==_0x8a948b[_0x5cee34(0x19c)]()&&this[_0x5cee34(0x1a0)]['executeCommand'](_0xb9115a['id'],{'unitId':_0x38a6e7,'subUnitId':_0x460c4f[_0x5cee34(0x19c)]()}),!_0x45eea3[_0x5cee34(0x194)](_0x38a6e7))||_0x15a8dc[_0x5cee34(0x1a3)](_0x2d2414['id'],{'unitId':_0x1b6211['getUnitId'](),'sheetId':_0x460c4f['getSheetId'](),'sheetViewStartRow':_0x6a8f32['startRow'],'sheetViewStartColumn':_0x6a8f32[_0x5cee34(0x186)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x234974[_0x18338d(0x19a)](I);class m extends _0x10a831{['getLiveShareStatus'](){const _0x22727a=_0x18338d;var _0x15559d,_0x140454;const _0x12b4df=this[_0x22727a(0x18f)][_0x22727a(0x1a2)](_0x449d35),_0x26ac5d=(_0x15559d=this[_0x22727a(0x195)]())==null?void 0x0:_0x15559d[_0x22727a(0x19f)]();if(!_0x26ac5d)throw new Error(_0x22727a(0x199));const _0x4d923b=_0x12b4df[_0x22727a(0x190)](_0x26ac5d);return(_0x140454=_0x4d923b==null?void 0x0:_0x4d923b[_0x22727a(0x18b)]())!=null?_0x140454:_0x296cc0['IDLE'];}[_0x18338d(0x188)](){const _0x44e0a0=_0x18338d;var _0xa1bdf2;const _0x26f6fa=this[_0x44e0a0(0x18f)][_0x44e0a0(0x1a2)](_0x449d35),_0x914022=(_0xa1bdf2=this[_0x44e0a0(0x195)]())==null?void 0x0:_0xa1bdf2['getId']();if(!_0x914022)throw new Error(_0x44e0a0(0x199));const _0x31d249=_0x26f6fa[_0x44e0a0(0x190)](_0x914022);if(!_0x31d249)throw new Error(_0x44e0a0(0x197));_0x31d249['startFollowing']();}[_0x18338d(0x191)](){const _0x2018ff=_0x18338d;var _0x53737b;const _0x1505a4=this['_injector'][_0x2018ff(0x1a2)](_0x449d35),_0x2ffbb0=(_0x53737b=this[_0x2018ff(0x195)]())==null?void 0x0:_0x53737b[_0x2018ff(0x19f)]();if(!_0x2ffbb0)throw new Error('No\x20active\x20workbook\x20found.');const _0x329584=_0x1505a4[_0x2018ff(0x190)](_0x2ffbb0);if(!_0x329584)throw new Error(_0x2018ff(0x197));_0x329584[_0x2018ff(0x191)]();}[_0x18338d(0x1a1)](){const _0x3b5675=_0x18338d;var _0x48ab05;const _0x56de2b=this['_injector'][_0x3b5675(0x1a2)](_0x449d35),_0x58cefe=(_0x48ab05=this[_0x3b5675(0x195)]())==null?void 0x0:_0x48ab05[_0x3b5675(0x19f)]();if(!_0x58cefe)throw new Error(_0x3b5675(0x199));const _0xffbaa3=_0x56de2b[_0x3b5675(0x190)](_0x58cefe);if(!_0xffbaa3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xffbaa3[_0x3b5675(0x198)]();}[_0x18338d(0x192)](){const _0x2c8ddf=_0x18338d;var _0x54f9c1;const _0x276dc1=this[_0x2c8ddf(0x18f)][_0x2c8ddf(0x1a2)](_0x449d35),_0x370434=(_0x54f9c1=this[_0x2c8ddf(0x195)]())==null?void 0x0:_0x54f9c1[_0x2c8ddf(0x19f)]();if(!_0x370434)throw new Error('No\x20active\x20workbook\x20found.');const _0x5909b3=_0x276dc1['getLiveShareCoordinatorSync'](_0x370434);if(!_0x5909b3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5909b3[_0x2c8ddf(0x192)]();}}_0x10a831['extend'](m);class C extends _0x2bf98d{get['LiveShareStatusEnum'](){return _0x296cc0;}}_0x2bf98d['extend'](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x221811=_0x2e9a;(function(_0x153aa2,_0x53c9ad){const _0x469ad4=_0x2e9a,_0x2a42e1=_0x153aa2();while(!![]){try{const _0x5679d9=parseInt(_0x469ad4(0x134))/0x1*(parseInt(_0x469ad4(0x1b4))/0x2)+parseInt(_0x469ad4(0x150))/0x3+-parseInt(_0x469ad4(0x125))/0x4*(-parseInt(_0x469ad4(0x14d))/0x5)+-parseInt(_0x469ad4(0x15f))/0x6+-parseInt(_0x469ad4(0x187))/0x7+-parseInt(_0x469ad4(0x139))/0x8*(-parseInt(_0x469ad4(0x17d))/0x9)+-parseInt(_0x469ad4(0x165))/0xa;if(_0x5679d9===_0x53c9ad)break;else _0x2a42e1['push'](_0x2a42e1['shift']());}catch(_0x47c5ac){_0x2a42e1['push'](_0x2a42e1['shift']());}}}(_0x1745,0x81c6c));var J=Object[_0x221811(0x140)],K=(_0x54f9f1,_0x5442c9,_0x45d33c)=>_0x5442c9 in _0x54f9f1?J(_0x54f9f1,_0x5442c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45d33c}):_0x54f9f1[_0x5442c9]=_0x45d33c,u=(_0x4dda28,_0x35b8c8,_0x28d07c)=>K(_0x4dda28,typeof _0x35b8c8!=_0x221811(0x12b)?_0x35b8c8+'':_0x35b8c8,_0x28d07c);import{Disposable as _0x5584fb,toDisposable as _0x4e21f7,IUniverInstanceService as _0x34a265,Inject as _0x3b972f,Injector as _0x1e206d,IConfigService as _0x3c082e,ICommandService as _0x2a3810,RxDisposable as _0x317033,UniverInstanceType as _0x4fecd8,DisposableCollection as _0x38a87f,CommandType as _0x274666,DependentOn as _0x4ef44e,Plugin as _0x54e800,merge as _0x47f8b3,registerDependencies as _0x38128c,mergeOverrideWithDependencies as _0x28e201,touchDependencies as _0x441580}from'@univerjs/core';import{useDependency as _0x3ba771,useObservable as _0x382b15,IUIPartsService as _0x2df529,BuiltInUIPart as _0x39e9b0,connectInjector as _0x19746f}from'@univerjs/ui';import{jsx as _0x394112,jsxs as _0x35a790,Fragment as _0xf1c7f5}from'react/jsx-runtime';import{Dropdown as _0x195faf,clsx as _0x4a0fdb,Button as _0x4da62a}from'@univerjs/design';import{useRef as _0x3dea31,createElement as _0x5edcfb,forwardRef as _0x5a8e8f,useState as _0x20fc4e,useEffect as _0x300d05}from'react';import{CollaborationEvent as _0x3ec99e,parseProtocolChangeset as _0x40eca1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1839d1,SessionStatus as _0x3fee76,UniverCollaborationClientPlugin as _0x121829}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e444,SetWorksheetActiveOperation as _0x222c77}from'@univerjs/sheets';import{BehaviorSubject as _0x9a32b4,Subject as _0x4cfb70}from'rxjs';import{takeUntil as _0x3d7e87,throttleTime as _0x1bd794}from'rxjs/operators';function _0x2e9a(_0x14dfa5,_0x35b766){const _0x174502=_0x1745();return _0x2e9a=function(_0x2e9af7,_0x486621){_0x2e9af7=_0x2e9af7-0x124;let _0x1540c3=_0x174502[_0x2e9af7];return _0x1540c3;},_0x2e9a(_0x14dfa5,_0x35b766);}import{SetZoomRatioOperation as _0x3a61b7,SetScrollOperation as _0x1e8464}from'@univerjs/sheets-ui';function k({ref:_0x197e6c,..._0x5ca943}){const _0x207c92=_0x221811,{icon:_0x2f09c0,id:_0x8b262c,className:_0x17c9c3,extend:_0x24cdfe,..._0x239edd}=_0x5ca943,_0x306934=(_0x207c92(0x1ba)+_0x8b262c+'\x20'+(_0x17c9c3||''))[_0x207c92(0x169)](),_0xecd5c0=_0x3dea31('_'+Oe());return G(_0x2f09c0,''+_0x8b262c,{'defIds':_0x2f09c0['defIds'],'idSuffix':_0xecd5c0[_0x207c92(0x183)]},{'ref':_0x197e6c,'className':_0x306934,..._0x239edd},_0x24cdfe);}function G(_0x31c008,_0x3c106a,_0xedabbb,_0x5d2070,_0x3dd37a){const _0x5a8fc0=_0x221811;return _0x5edcfb(_0x31c008['tag'],{'key':_0x3c106a,...be(_0x31c008,_0xedabbb,_0x3dd37a),..._0x5d2070},(Ee(_0x31c008,_0xedabbb)['children']||[])['map']((_0x477eeb,_0x324de5)=>G(_0x477eeb,_0x3c106a+'-'+_0x31c008[_0x5a8fc0(0x18e)]+'-'+_0x324de5,_0xedabbb,void 0x0,_0x3dd37a)));}function be(_0x3b3564,_0x187141,_0x5bcc20){const _0x3e1c00=_0x221811,_0x3c1373={..._0x3b3564[_0x3e1c00(0x158)]};_0x5bcc20!=null&&_0x5bcc20[_0x3e1c00(0x17c)]&&_0x3c1373[_0x3e1c00(0x172)]==='colorChannel1'&&(_0x3c1373[_0x3e1c00(0x172)]=_0x5bcc20[_0x3e1c00(0x17c)]),_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x18f)&&_0x3c1373['id']&&(_0x3c1373['id']=_0x3c1373['id']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)[_0x3e1c00(0x13d)](([_0x3c7c5c,_0x1da6a6])=>{const _0x157bf4=_0x3e1c00;_0x3c7c5c===_0x157bf4(0x18f)&&typeof _0x1da6a6==_0x157bf4(0x192)&&(_0x3c1373[_0x3c7c5c]=_0x1da6a6[_0x157bf4(0x19f)](/url\(#(.*)\)/,_0x157bf4(0x166)+_0x187141[_0x157bf4(0x167)]+')'));});const {defIds:_0x22b32f}=_0x187141;return!_0x22b32f||_0x22b32f[_0x3e1c00(0x195)]===0x0||(_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x1cc)&&_0x3c1373[_0x3e1c00(0x1b3)]&&(_0x3c1373['xlink:href']=_0x3c1373['xlink:href']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)['forEach'](([_0x33755c,_0x2297f2])=>{const _0x545bfe=_0x3e1c00;typeof _0x2297f2==_0x545bfe(0x192)&&(_0x3c1373[_0x33755c]=_0x2297f2[_0x545bfe(0x19f)](/url\(#(.*)\)/,'url(#$1'+_0x187141[_0x545bfe(0x167)]+')'));})),_0x3c1373;}function Ee(_0x5a9411,_0x19eef7){const _0x350b86=_0x221811;var _0xbb3c2e;const {defIds:_0xa3863b}=_0x19eef7;return!_0xa3863b||_0xa3863b[_0x350b86(0x195)]===0x0?_0x5a9411:_0x5a9411[_0x350b86(0x18e)]===_0x350b86(0x149)&&((_0xbb3c2e=_0x5a9411[_0x350b86(0x145)])!=null&&_0xbb3c2e[_0x350b86(0x195)])?{..._0x5a9411,'children':_0x5a9411[_0x350b86(0x145)][_0x350b86(0x141)](_0x8212e7=>typeof _0x8212e7[_0x350b86(0x158)]['id']==_0x350b86(0x192)&&_0xa3863b&&_0xa3863b[_0x350b86(0x136)](_0x8212e7[_0x350b86(0x158)]['id'])?{..._0x8212e7,'attrs':{..._0x8212e7[_0x350b86(0x158)],'id':_0x8212e7[_0x350b86(0x158)]['id']+_0x19eef7[_0x350b86(0x167)]}}:_0x8212e7)}:_0x5a9411;}function Oe(){const _0x3670fe=_0x221811;return Math[_0x3670fe(0x1c6)]()[_0x3670fe(0x142)](0x24)[_0x3670fe(0x144)](0x2,0x8);}k[_0x221811(0x1a5)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x221811(0x184),'fill':_0x221811(0x178),'viewBox':_0x221811(0x1b0),'width':'1em','height':_0x221811(0x12d)},'children':[{'tag':_0x221811(0x153),'attrs':{'fill':_0x221811(0x1ad),'d':_0x221811(0x13c)}},{'tag':_0x221811(0x153),'attrs':{'fill':'currentColor','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':_0x221811(0x1b1),'clipRule':_0x221811(0x1b1)}}]},W=_0x5a8e8f(function(_0x20d022,_0x47731f){const _0x315b76=_0x221811;return _0x5edcfb(k,Object[_0x315b76(0x175)]({},_0x20d022,{'id':'live-share-icon','ref':_0x47731f,'icon':we}));});W[_0x221811(0x1a5)]=_0x221811(0x190);class L extends _0x5584fb{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x221811(0x1bc)](_0x5900df){const _0x5bc97f=_0x221811;return this[_0x5bc97f(0x1c8)]['add'](_0x5900df),_0x4e21f7(()=>this[_0x5bc97f(0x1c8)][_0x5bc97f(0x126)](_0x5900df));}[_0x221811(0x18d)](_0x375172){const _0x88761=_0x221811;return this[_0x88761(0x1b9)][_0x88761(0x1a9)](_0x375172),_0x4e21f7(()=>this[_0x88761(0x1b9)][_0x88761(0x126)](_0x375172));}[_0x221811(0x1a7)](_0x18d878){const _0x53d32f=_0x221811;return this[_0x53d32f(0x1c8)]['has'](_0x18d878);}['getInitialStates'](_0x5d176f){const _0x1eeed2=_0x221811;return Array[_0x1eeed2(0x1ce)](this['_reporters'])['map'](_0x2bb04e=>_0x2bb04e(_0x5d176f));}}var Ne=Object[_0x221811(0x156)],Y=(_0x287803,_0x18bfb1,_0x3a3c64,_0x95786)=>{const _0x9d8303=_0x221811;for(var _0x24231a=_0x95786>0x1?void 0x0:_0x95786?Ne(_0x18bfb1,_0x3a3c64):_0x18bfb1,_0x8d7260=_0x287803[_0x9d8303(0x195)]-0x1,_0x257dee;_0x8d7260>=0x0;_0x8d7260--)(_0x257dee=_0x287803[_0x8d7260])&&(_0x24231a=_0x257dee(_0x24231a)||_0x24231a);return _0x24231a;},_=(_0x42f5a8,_0x5bb8ea)=>(_0x5381dd,_0x3fb270)=>_0x5bb8ea(_0x5381dd,_0x3fb270,_0x42f5a8);let S=class extends _0x317033{constructor(_0x305ccb,_0x243345,_0x2d10b0){const _0x2a2f93=_0x221811;super(),u(this,_0x2a2f93(0x1be),new Map()),(this[_0x2a2f93(0x194)]=_0x305ccb,this['_injector']=_0x243345,this[_0x2a2f93(0x193)]=_0x2d10b0,this[_0x2a2f93(0x14c)]());}async['getLiveShareCoordinator'](_0x4a5180){const _0x43c5d3=_0x221811;return this[_0x43c5d3(0x1be)][_0x43c5d3(0x15e)](_0x4a5180)||await this[_0x43c5d3(0x17b)](_0x4a5180),this[_0x43c5d3(0x1be)][_0x43c5d3(0x1b5)](_0x4a5180);}[_0x221811(0x1a0)](_0x3f9228){const _0xaa81b6=_0x221811;var _0x30c53a;return(_0x30c53a=this[_0xaa81b6(0x1be)][_0xaa81b6(0x1b5)](_0x3f9228))!=null?_0x30c53a:null;}['_init'](){const _0x396051=_0x221811;this['_univerInstanceService'][_0x396051(0x127)](_0x4fecd8[_0x396051(0x1a3)])['pipe'](_0x3d7e87(this[_0x396051(0x146)]))[_0x396051(0x1bf)](async _0x342f0c=>{const _0xd58b8b=_0x396051,_0x412d57=_0x342f0c[_0xd58b8b(0x174)]();this[_0xd58b8b(0x1be)][_0xd58b8b(0x15e)](_0x412d57)||this[_0xd58b8b(0x17b)](_0x412d57);}),this[_0x396051(0x194)]['getTypeOfUnitDisposed$'](_0x4fecd8['UNIVER_SHEET'])[_0x396051(0x16d)](_0x3d7e87(this['dispose$']))[_0x396051(0x1bf)](_0x28aa88=>{const _0x503de2=_0x396051,_0x2aa132=_0x28aa88[_0x503de2(0x174)](),_0x28c133=this['_entities'][_0x503de2(0x1b5)](_0x2aa132);_0x28c133==null||_0x28c133[_0x503de2(0x177)]();});}async[_0x221811(0x17b)](_0x1586f5){const _0x21f7ba=_0x221811,_0xf8791d=await this['_collabSessionService']['requireSession'](_0x1586f5),_0x265bff=this['_injector']['createInstance'](N,_0x1586f5,_0xf8791d);return _0x265bff[_0x21f7ba(0x199)](),this[_0x21f7ba(0x1be)][_0x21f7ba(0x152)](_0x1586f5,_0x265bff),_0x265bff;}};function _0x1745(){const _0x59f379=['asObservable','180940pjanDM','delete','getTypeOfUnitAdded$','OFFLINE','mutations','_handleTerminate','symbol','Start\x20following','1em','startFollowing','unsubscribe','clear','unitId','_commandService','univer-size-4','447734GbjpvL','stringify','includes','_unitID','status$','16XTUvtF','_stopFollowing','live-share.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','forEach','_handleOffline','UNIVER_UNKNOWN','defineProperty','map','toString','FOLLOWING','substring','children','dispose$','values','following','defs','stopPresenting','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','_init','105YpEDMh','NEW_CHANGESETS','send','2099199niqjAe','registerComponent','set','path','presenter','presenting','getOwnPropertyDescriptor','_configService','attrs','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','memberID','getLiveShareCoordinator','_config','has','1474626oNDPyu','_liveShareService','parse','offline','disposeWithMe','sessionStatus$','16891970YTWKVJ','url(#$1','idSuffix','sheet','trim','_stopPresenting','getStatus','OPERATION','pipe','button','operations','LIVESHARE_TERMINATE','_commandDisposable','fill','text','getUnitId','assign','ONLINE','dispose','none','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','_startLiveShareCoordinator','colorChannel1','1110132JRRPZH','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','then','find','data','current','http://www.w3.org/2000/svg','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','2277100BSyuDF','_status$','getValue','Stop\x20following','next','_fetchOperations','registerInitialStateReporter','tag','mask','LiveShareIcon','_injector','string','_collabSessionService','_univerInstanceService','length','complete','setConfig','getConfig','init','_beIdle','params','_presenter','_status','not-following','replace','getLiveShareCoordinatorSync','IDLE','_startFollowing','UNIVER_SHEET','HEADER_MENU','displayName','pluginName','shouldShareOperation','reverse','add','executeCommand','entries','LIVESHARE_NEW_HOST','currentColor','PRESENTING','_handleOperation','0\x200\x2017\x2017','evenodd','idle','xlink:href','4seKHVT','get','You\x27re\x20following\x20the\x20presenter','onStarting','LIVESHARE_REQUEST_HOST','_reporters','univerjs-icon\x20univerjs-icon-','getMemberID','registerSharedOperation','Present\x20this\x20document','_entities','subscribe','_uiPartsService','_collabSession','_handleOnline','Start','NOT_FOLLOWING','end','random','_handleNewHost','_sharedOperations','_startPresenting','default','div','use','_handleNewChangeSets','from'];_0x1745=function(){return _0x59f379;};return _0x1745();}S=Y([_(0x0,_0x34a265),_(0x1,_0x3b972f(_0x1e206d)),_(0x2,_0x3b972f(_0x1839d1))],S);var c=(_0x4faa0d=>(_0x4faa0d[_0x221811(0x128)]=_0x221811(0x162),_0x4faa0d[_0x221811(0x1a1)]=_0x221811(0x1b2),_0x4faa0d[_0x221811(0x143)]=_0x221811(0x148),_0x4faa0d['NOT_FOLLOWING']=_0x221811(0x19e),_0x4faa0d[_0x221811(0x1ae)]=_0x221811(0x155),_0x4faa0d))(c||{});const Ce=_0x221811(0x159),De=0xc8;let N=class extends _0x317033{constructor(_0x4c19f4,_0x31c774,_0x23e67d,_0x2e7fb6,_0xfd22e8){const _0x146a8e=_0x221811;super(),u(this,_0x146a8e(0x188),new _0x9a32b4('idle')),u(this,'status$',this[_0x146a8e(0x188)][_0x146a8e(0x124)]()),u(this,'_init',!0x1),u(this,_0x146a8e(0x171),null),u(this,'_presenter',null),(this[_0x146a8e(0x137)]=_0x4c19f4,this['_collabSession']=_0x31c774,this[_0x146a8e(0x157)]=_0x23e67d,this[_0x146a8e(0x160)]=_0x2e7fb6,this[_0x146a8e(0x132)]=_0xfd22e8);}get[_0x221811(0x19d)](){const _0x51f3e1=_0x221811;return this['_status$'][_0x51f3e1(0x189)]();}[_0x221811(0x177)](){const _0x22fc4a=_0x221811;var _0x27df7a;(_0x27df7a=this[_0x22fc4a(0x171)])==null||_0x27df7a[_0x22fc4a(0x177)](),this[_0x22fc4a(0x188)][_0x22fc4a(0x18b)](_0x22fc4a(0x1b2)),this[_0x22fc4a(0x188)][_0x22fc4a(0x196)]();}[_0x221811(0x16b)](){const _0x1da97c=_0x221811;return this[_0x1da97c(0x19d)];}['init'](){const _0x5e119f=_0x221811;this[_0x5e119f(0x14c)]||(this[_0x5e119f(0x14c)]=!0x0,this['_collabSession'][_0x5e119f(0x164)][_0x5e119f(0x16d)](_0x3d7e87(this['dispose$']))['subscribe'](_0xc6020a=>{const _0x370db1=_0x5e119f;switch(_0xc6020a){case _0x3fee76[_0x370db1(0x128)]:this[_0x370db1(0x13e)]();break;case _0x3fee76[_0x370db1(0x176)]:this[_0x370db1(0x1c2)]();break;}}),this[_0x5e119f(0x1c1)]['event$'][_0x5e119f(0x16d)](_0x3d7e87(this[_0x5e119f(0x146)]))[_0x5e119f(0x1bf)](_0x240184=>{const _0x1ecede=_0x5e119f,{eventID:_0x5746fc}=_0x240184;switch(_0x5746fc){case _0x3ec99e[_0x1ecede(0x1ac)]:this[_0x1ecede(0x1c7)](_0x240184);break;case _0x3ec99e['LIVESHARE_OPERATION']:this['_handleOperation'](_0x240184);break;case _0x3ec99e[_0x1ecede(0x170)]:this[_0x1ecede(0x12a)]();break;case _0x3ec99e[_0x1ecede(0x14e)]:this[_0x1ecede(0x1cd)](_0x240184);break;}}));}['tryStartPresenting'](){const _0x365163=_0x221811;this[_0x365163(0x1c1)][_0x365163(0x14f)]({'eventID':_0x3ec99e[_0x365163(0x1b8)],'data':{'unitID':this[_0x365163(0x137)],'userID':this[_0x365163(0x1c1)][_0x365163(0x1bb)]()}},this[_0x365163(0x137)]);}[_0x221811(0x14a)](){const _0x186731=_0x221811;this[_0x186731(0x19d)]==='presenting'&&(this[_0x186731(0x188)][_0x186731(0x18b)](_0x186731(0x1b2)),this[_0x186731(0x1c1)][_0x186731(0x14f)]({'eventID':_0x3ec99e[_0x186731(0x170)],'data':{'unitID':this[_0x186731(0x137)]}},this[_0x186731(0x137)]));}[_0x221811(0x12e)](){const _0x59c1c6=_0x221811;this[_0x59c1c6(0x19d)]===_0x59c1c6(0x19e)&&(this['_status$']['next']('following'),this[_0x59c1c6(0x1a2)]());}[_0x221811(0x17f)](){const _0x3c87d7=_0x221811;this[_0x3c87d7(0x19d)]===_0x3c87d7(0x148)&&this[_0x3c87d7(0x13a)]();}[_0x221811(0x1c7)](_0x38774b){const _0x26147e=_0x221811,{presenter:_0x568de2}=_0x38774b[_0x26147e(0x182)],_0x1ee82b=this[_0x26147e(0x1c1)][_0x26147e(0x1bb)]();this[_0x26147e(0x19c)]=_0x568de2,_0x568de2===_0x1ee82b?(this[_0x26147e(0x13a)](),this[_0x26147e(0x1c9)]()):this[_0x26147e(0x19d)]!==_0x26147e(0x19e)&&(this[_0x26147e(0x16a)](),this['_startFollowing']());}[_0x221811(0x18c)](){const _0x26a97f=_0x221811,_0x4371d8={'eventID':_0x3ec99e[_0x26a97f(0x17a)]};this[_0x26a97f(0x1c1)]['send'](_0x4371d8,this[_0x26a97f(0x137)]);}[_0x221811(0x12a)](){const _0x2db4c0=_0x221811;this[_0x2db4c0(0x19c)]=null,this[_0x2db4c0(0x19d)]!==_0x2db4c0(0x155)&&this[_0x2db4c0(0x19a)]();}[_0x221811(0x1cd)](_0xab9e6a){const _0x6f32d8=_0x221811;if(this[_0x6f32d8(0x19d)]===_0x6f32d8(0x148)&&this[_0x6f32d8(0x19c)]===_0xab9e6a[_0x6f32d8(0x182)][_0x6f32d8(0x15b)]){const _0x583621=_0x40eca1(_0xab9e6a[_0x6f32d8(0x182)])[_0x6f32d8(0x129)][_0x6f32d8(0x1a8)]()[_0x6f32d8(0x181)](_0xc28a72=>_0xc28a72['id']===_0x52e444['id']);if(_0x583621){const _0x57156a=_0x583621[_0x6f32d8(0x19b)][_0x6f32d8(0x131)],_0x3ce4c3=_0x583621['params'][_0x6f32d8(0x168)]['id'];setTimeout(()=>{const _0x596f4e=_0x6f32d8;this[_0x596f4e(0x132)][_0x596f4e(0x1aa)](_0x222c77['id'],{'unitId':_0x57156a,'subUnitId':_0x3ce4c3},{'fromCollab':!0x0});});}}}[_0x221811(0x1c9)](){const _0x2db157=_0x221811;this[_0x2db157(0x188)]['next']('presenting');const _0x4200fd=new Map(),_0x48d81f=this['_commandDisposable']=new _0x38a87f();_0x48d81f[_0x2db157(0x1a9)](_0x4e21f7(()=>{const _0x584e59=_0x2db157;_0x4200fd[_0x584e59(0x13d)](_0x17bf45=>_0x17bf45['complete']()),_0x4200fd[_0x584e59(0x130)]();})),_0x48d81f[_0x2db157(0x1a9)](this['_commandService'][_0x2db157(0x185)](_0x3bcb07=>{const _0x52500f=_0x2db157;var _0x48bb29;if(_0x3bcb07['type']!==_0x274666[_0x52500f(0x16c)]||!this[_0x52500f(0x160)][_0x52500f(0x1a7)](_0x3bcb07['id']))return;const {id:_0x52ddee}=_0x3bcb07;let _0x354757;_0x4200fd[_0x52500f(0x15e)](_0x52ddee)?_0x354757=_0x4200fd[_0x52500f(0x1b5)](_0x52ddee):(_0x354757=new _0x4cfb70(),_0x4200fd[_0x52500f(0x152)](_0x52ddee,_0x354757),_0x354757[_0x52500f(0x16d)](_0x1bd794((_0x48bb29=this[_0x52500f(0x157)][_0x52500f(0x198)](Ce))!=null?_0x48bb29:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x52500f(0x1bf)](_0x9f13b9=>{const _0x1e65e7=_0x52500f;this[_0x1e65e7(0x1c1)][_0x1e65e7(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x9f13b9['id']]:{'id':_0x9f13b9['id'],'params':JSON[_0x1e65e7(0x135)](_0x9f13b9['params'])}}}},this[_0x1e65e7(0x137)]);})),_0x354757['next'](_0x3bcb07);})),this[_0x2db157(0x160)]['getInitialStates'](this[_0x2db157(0x137)])['forEach'](_0x492c05=>this[_0x2db157(0x1c1)][_0x2db157(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2db157(0x137)],'operations':{[_0x492c05['id']]:{'id':_0x492c05['id'],'params':JSON[_0x2db157(0x135)](_0x492c05['params'])}}}},this['_unitID']));}[_0x221811(0x16a)](){const _0x58f706=_0x221811;var _0x28dca8;this[_0x58f706(0x188)][_0x58f706(0x18b)](_0x58f706(0x1b2)),(_0x28dca8=this[_0x58f706(0x171)])==null||_0x28dca8[_0x58f706(0x177)](),this[_0x58f706(0x171)]=null;}['_startFollowing'](){const _0x3f181e=_0x221811;var _0x4a3511;(_0x4a3511=this[_0x3f181e(0x171)])==null||_0x4a3511['dispose'](),this[_0x3f181e(0x188)]['next']('following');}['_beIdle'](){const _0x3b987a=_0x221811;var _0x529286;this[_0x3b987a(0x188)][_0x3b987a(0x18b)](_0x3b987a(0x1b2)),(_0x529286=this['_commandDisposable'])==null||_0x529286['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xa80023=_0x221811;var _0x3265b9;this[_0xa80023(0x188)][_0xa80023(0x18b)](_0xa80023(0x19e)),(_0x3265b9=this[_0xa80023(0x171)])==null||_0x3265b9[_0xa80023(0x177)]();}[_0x221811(0x1af)](_0x2ef283){const _0x4ca27f=_0x221811;if([_0x4ca27f(0x155),_0x4ca27f(0x19e),_0x4ca27f(0x162)][_0x4ca27f(0x136)](this['_status'])||!_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]||_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]===this[_0x4ca27f(0x1c1)][_0x4ca27f(0x1bb)]())return;this[_0x4ca27f(0x19d)]===_0x4ca27f(0x1b2)&&this['_startFollowing']();const _0xaa10b1=_0x2ef283['data'][_0x4ca27f(0x16f)];Object[_0x4ca27f(0x147)](_0xaa10b1)[_0x4ca27f(0x13d)](_0x2d211e=>{const _0x4ba9d0=_0x4ca27f;this[_0x4ba9d0(0x132)][_0x4ba9d0(0x1aa)](_0x2d211e['id'],_0x2d211e['params']?JSON[_0x4ba9d0(0x161)](_0x2d211e[_0x4ba9d0(0x19b)]):null,{'fromCollab':!0x0});});}[_0x221811(0x13e)](){const _0x36d796=_0x221811;var _0x523e3f;this['_status$'][_0x36d796(0x18b)](_0x36d796(0x162)),(_0x523e3f=this[_0x36d796(0x171)])==null||_0x523e3f['dispose']();}[_0x221811(0x1c2)](){const _0x535ff5=_0x221811;this[_0x535ff5(0x188)][_0x535ff5(0x18b)]('idle'),this[_0x535ff5(0x18c)]();}};N=Y([_(0x2,_0x3c082e),_(0x3,_0x3b972f(L)),_(0x4,_0x2a3810)],N);function Le(){const _0x43a402=_0x221811,_0x26e912=_0x3ba771(S),_0x4dce2a=_0x3ba771(_0x34a265),_0x43f15e=_0x382b15(()=>_0x4dce2a['getCurrentTypeOfUnit$'](_0x4fecd8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1a9aed,_0x1d620a]=_0x20fc4e(null),[_0x1d9dc8,_0xf37569]=_0x20fc4e(c[_0x43a402(0x1a1)]),_0x8fea30=_0x3dea31(null);return _0x300d05(()=>(_0x43f15e&&_0x26e912[_0x43a402(0x15c)](_0x43f15e[_0x43a402(0x174)]())[_0x43a402(0x180)](_0x4eba86=>{const _0x50b8d6=_0x43a402;_0x1d620a(_0x4eba86),_0x8fea30[_0x50b8d6(0x183)]=_0x4eba86[_0x50b8d6(0x138)][_0x50b8d6(0x1bf)](_0x434bf9=>{_0xf37569(_0x434bf9);});}),()=>{const _0x358f3e=_0x43a402;var _0x5b15db;(_0x5b15db=_0x8fea30['current'])==null||_0x5b15db[_0x358f3e(0x12f)](),_0x8fea30[_0x358f3e(0x183)]=null;}),[_0x43f15e,_0x26e912]),_0x1a9aed?_0x394112(_0x195faf,{'align':_0x43a402(0x1c5),'disabled':_0x1d9dc8===c[_0x43a402(0x128)],'className':_0x43a402(0x14b),'overlay':_0x394112(Re,{'status':_0x1d9dc8,'coordinator':_0x1a9aed}),'children':_0x394112(_0x43a402(0x16e),{'className':_0x4a0fdb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1d9dc8===c[_0x43a402(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d9dc8!==c[_0x43a402(0x128)]}),'type':'button','children':_0x394112(W,{'className':_0x43a402(0x133)})})}):null;}function Re(_0x379975){const _0x501bf6=_0x221811,{status:_0xf6a4ed,coordinator:_0x4f14d6}=_0x379975;switch(_0xf6a4ed){case c[_0x501bf6(0x1a1)]:return _0x394112($e,{'coordinator':_0x4f14d6});case c['FOLLOWING']:return _0x394112(xe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x1c4)]:return _0x394112(Pe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x128)]:return _0x394112(Te,{});case c['PRESENTING']:return _0x394112(Ae,{'coordinator':_0x4f14d6});default:return null;}}function $e(_0x575fa9){const _0x11beaa=_0x221811,{coordinator:_0x5b9bcf}=_0x575fa9;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x11beaa(0x1cb),{'className':_0x11beaa(0x17e),'children':_0x11beaa(0x1bd)}),_0x394112(_0x4da62a,{'onClick':()=>_0x5b9bcf['tryStartPresenting'](),'children':_0x11beaa(0x1c3)})]});}function xe(_0x36f248){const _0x28450b=_0x221811,{coordinator:_0xdf4b47}=_0x36f248;return _0x35a790(_0xf1c7f5,{'children':[_0x394112('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28450b(0x1b6)}),_0x394112(_0x4da62a,{'onClick':()=>_0xdf4b47['stopFollowing'](),'children':_0x28450b(0x18a)})]});}function Pe(_0x57f701){const _0x8b5e25=_0x221811,{coordinator:_0x1762af}=_0x57f701;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x8b5e25(0x1cb),{'className':_0x8b5e25(0x17e),'children':_0x8b5e25(0x186)}),_0x394112(_0x4da62a,{'variant':_0x8b5e25(0x173),'onClick':()=>_0x1762af[_0x8b5e25(0x12e)](),'children':_0x8b5e25(0x12c)})]});}function Ae(_0x40a8aa){const _0x294155=_0x221811,{coordinator:_0x3b2972}=_0x40a8aa;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x294155(0x1cb),{'className':_0x294155(0x17e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x394112(_0x4da62a,{'variant':_0x294155(0x1ca),'onClick':()=>_0x3b2972['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x394112(_0xf1c7f5,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x35fae4,_0x3f93b4,_0x195de5,_0x11e290)=>{for(var _0x4de847=_0x11e290>0x1?void 0x0:_0x11e290?Fe(_0x3f93b4,_0x195de5):_0x3f93b4,_0x74d76b=_0x35fae4['length']-0x1,_0x4838c4;_0x74d76b>=0x0;_0x74d76b--)(_0x4838c4=_0x35fae4[_0x74d76b])&&(_0x4de847=_0x4838c4(_0x4de847)||_0x4de847);return _0x4de847;},A=(_0x52f16e,_0x553295)=>(_0x213c39,_0x1ab16b)=>_0x553295(_0x213c39,_0x1ab16b,_0x52f16e);let m=class extends _0x5584fb{constructor(_0x28f257,_0x4c0e58){const _0x4f80ab=_0x221811;super(),this[_0x4f80ab(0x191)]=_0x28f257,this['_uiPartsService']=_0x4c0e58,this[_0x4f80ab(0x15a)]();}[_0x221811(0x15a)](){const _0x287327=_0x221811;this[_0x287327(0x163)](this[_0x287327(0x1c0)][_0x287327(0x151)](_0x39e9b0[_0x287327(0x1a4)],()=>_0x19746f(Le,this['_injector'])));}};m=He([A(0x0,_0x3b972f(_0x1e206d)),A(0x1,_0x2df529)],m);const ye=_0x221811(0x13b),T={};var Ue=Object[_0x221811(0x156)],Ve=(_0x53c3a8,_0x36fd72,_0x5468a2,_0x34abac)=>{const _0x1fab97=_0x221811;for(var _0x32abaf=_0x34abac>0x1?void 0x0:_0x34abac?Ue(_0x36fd72,_0x5468a2):_0x36fd72,_0x1f375e=_0x53c3a8[_0x1fab97(0x195)]-0x1,_0x360244;_0x1f375e>=0x0;_0x1f375e--)(_0x360244=_0x53c3a8[_0x1f375e])&&(_0x32abaf=_0x360244(_0x32abaf)||_0x32abaf);return _0x32abaf;},je=(_0x45d15b,_0x5c189b)=>(_0x498899,_0x28088e)=>_0x5c189b(_0x498899,_0x28088e,_0x45d15b);let I=class extends _0x5584fb{constructor(_0xa67071){const _0x102e26=_0x221811;super(),this['_liveShareService']=_0xa67071,this[_0x102e26(0x14c)]();}[_0x221811(0x14c)](){[_0x3a61b7['id'],_0x1e8464['id'],_0x222c77['id']]['forEach'](_0x304360=>{const _0x4c14f1=_0x2e9a;this[_0x4c14f1(0x163)](this[_0x4c14f1(0x160)][_0x4c14f1(0x1bc)](_0x304360));});}};I=Ve([je(0x0,_0x3b972f(L))],I);var Me=Object[_0x221811(0x140)],ke=Object[_0x221811(0x156)],Ge=(_0x1699ed,_0x307fac,_0x32daaf)=>_0x307fac in _0x1699ed?Me(_0x1699ed,_0x307fac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32daaf}):_0x1699ed[_0x307fac]=_0x32daaf,We=(_0x544d81,_0x5843cb,_0x32db75,_0x35fed6)=>{const _0x3a252f=_0x221811;for(var _0x1377e5=_0x35fed6>0x1?void 0x0:_0x35fed6?ke(_0x5843cb,_0x32db75):_0x5843cb,_0x44480b=_0x544d81[_0x3a252f(0x195)]-0x1,_0x380dfc;_0x44480b>=0x0;_0x44480b--)(_0x380dfc=_0x544d81[_0x44480b])&&(_0x1377e5=_0x380dfc(_0x1377e5)||_0x1377e5);return _0x1377e5;},F=(_0x2c9782,_0x36fd95)=>(_0x427cb3,_0x344910)=>_0x36fd95(_0x427cb3,_0x344910,_0x2c9782),B=(_0x4bcd0e,_0x295c7f,_0x51efd5)=>Ge(_0x4bcd0e,typeof _0x295c7f!=_0x221811(0x12b)?_0x295c7f+'':_0x295c7f,_0x51efd5);const Ye=_0x221811(0x179);let b=class extends _0x54e800{constructor(_0x4965c7=T,_0x569af8,_0x2f65de){const _0x24a8a9=_0x221811;super(),this['_config']=_0x4965c7,this[_0x24a8a9(0x191)]=_0x569af8,this[_0x24a8a9(0x157)]=_0x2f65de;const {..._0x3d493f}=_0x47f8b3({},T,this[_0x24a8a9(0x15d)]);this['_configService'][_0x24a8a9(0x197)](ye,_0x3d493f);}[_0x221811(0x1b7)](){const _0x5f01fe=_0x221811;_0x38128c(this['_injector'],_0x28e201([[L],[S],[I],[m]],this[_0x5f01fe(0x15d)]['override'])),_0x441580(this[_0x5f01fe(0x191)],[[I]]);}['onRendered'](){const _0x4ac341=_0x221811;_0x441580(this[_0x4ac341(0x191)],[[m]]);}};B(b,'type',_0x4fecd8[_0x221811(0x13f)]),B(b,_0x221811(0x1a6),Ye),b=We([_0x4ef44e(_0x121829),F(0x1,_0x3b972f(_0x1e206d)),F(0x2,_0x3c082e)],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 _0x11b6eb=_0x54c5;(function(_0x418aa4,_0x46e2f9){const _0x3f6b1c=_0x54c5,_0x4edc84=_0x418aa4();while(!![]){try{const _0xeaee8d=parseInt(_0x3f6b1c(0x1d0))/0x1*(-parseInt(_0x3f6b1c(0x257))/0x2)+-parseInt(_0x3f6b1c(0x273))/0x3*(parseInt(_0x3f6b1c(0x207))/0x4)+parseInt(_0x3f6b1c(0x1d7))/0x5+parseInt(_0x3f6b1c(0x1ff))/0x6+parseInt(_0x3f6b1c(0x1fc))/0x7*(-parseInt(_0x3f6b1c(0x208))/0x8)+parseInt(_0x3f6b1c(0x21b))/0x9+parseInt(_0x3f6b1c(0x216))/0xa;if(_0xeaee8d===_0x46e2f9)break;else _0x4edc84['push'](_0x4edc84['shift']());}catch(_0x5ac5b5){_0x4edc84['push'](_0x4edc84['shift']());}}}(_0x1e4f,0x35a99));var J=Object[_0x11b6eb(0x262)],K=(_0x288cae,_0xf92ce1,_0x372a6b)=>_0xf92ce1 in _0x288cae?J(_0x288cae,_0xf92ce1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x372a6b}):_0x288cae[_0xf92ce1]=_0x372a6b,u=(_0x3f82ad,_0x1ae34f,_0x4aa1a0)=>K(_0x3f82ad,typeof _0x1ae34f!=_0x11b6eb(0x260)?_0x1ae34f+'':_0x1ae34f,_0x4aa1a0);import{Disposable as _0x1488b8,toDisposable as _0xc8298e,IUniverInstanceService as _0x41e0ae,Inject as _0x34997e,Injector as _0x172459,IConfigService as _0x586d2f,ICommandService as _0x43fef4,RxDisposable as _0x2a59c6,UniverInstanceType as _0x30dc91,DisposableCollection as _0x537ad0,CommandType as _0xf4e9d3,DependentOn as _0x1db9f3,Plugin as _0x4e2557,merge as _0x6531d9,registerDependencies as _0x5507b0,mergeOverrideWithDependencies as _0x350506,touchDependencies as _0x6327c4}from'@univerjs/core';import{useDependency as _0x138bea,useObservable as _0x5a2037,IUIPartsService as _0x274200,BuiltInUIPart as _0xe162dd,connectInjector as _0x437101}from'@univerjs/ui';import{jsx as _0x4d2be6,jsxs as _0x57c5c7,Fragment as _0xa0c774}from'react/jsx-runtime';import{Dropdown as _0xef8b71,clsx as _0x1b48c8,Button as _0x23cb3d}from'@univerjs/design';import{useRef as _0x2f0507,createElement as _0x4693a1,forwardRef as _0x2916ff,useState as _0x2af4b9,useEffect as _0x22d44a}from'react';import{CollaborationEvent as _0x22cfb1,parseProtocolChangeset as _0xcb2e04}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3926f7,SessionStatus as _0x442896,UniverCollaborationClientPlugin as _0x12ac27}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x49fa8f,SetWorksheetActiveOperation as _0x4b8267}from'@univerjs/sheets';import{BehaviorSubject as _0xdd1c4e,Subject as _0x1059fe}from'rxjs';import{takeUntil as _0x2d117c,throttleTime as _0x274690}from'rxjs/operators';import{SetZoomRatioOperation as _0x3a77e6,SetScrollOperation as _0x5e3f90}from'@univerjs/sheets-ui';function k({ref:_0x15ba60,..._0xcd5b24}){const _0x3f8236=_0x11b6eb,{icon:_0x39986c,id:_0x5337b6,className:_0x55ed26,extend:_0x229d37,..._0x593f1f}=_0xcd5b24,_0x11ffa4=(_0x3f8236(0x1d9)+_0x5337b6+'\x20'+(_0x55ed26||''))['trim'](),_0x3aed19=_0x2f0507('_'+Oe());return G(_0x39986c,''+_0x5337b6,{'defIds':_0x39986c['defIds'],'idSuffix':_0x3aed19[_0x3f8236(0x26f)]},{'ref':_0x15ba60,'className':_0x11ffa4,..._0x593f1f},_0x229d37);}function G(_0x136669,_0x5bc0d8,_0x286476,_0x41ac78,_0x844976){const _0x10e63f=_0x11b6eb;return _0x4693a1(_0x136669[_0x10e63f(0x23e)],{'key':_0x5bc0d8,...be(_0x136669,_0x286476,_0x844976),..._0x41ac78},(Ee(_0x136669,_0x286476)[_0x10e63f(0x22d)]||[])['map']((_0x293970,_0x151a35)=>G(_0x293970,_0x5bc0d8+'-'+_0x136669[_0x10e63f(0x23e)]+'-'+_0x151a35,_0x286476,void 0x0,_0x844976)));}function be(_0x536bd9,_0x128553,_0x2c7863){const _0x936f9=_0x11b6eb,_0x44b459={..._0x536bd9[_0x936f9(0x271)]};_0x2c7863!=null&&_0x2c7863[_0x936f9(0x211)]&&_0x44b459[_0x936f9(0x225)]===_0x936f9(0x211)&&(_0x44b459[_0x936f9(0x225)]=_0x2c7863['colorChannel1']),_0x536bd9['tag']==='mask'&&_0x44b459['id']&&(_0x44b459['id']=_0x44b459['id']+_0x128553['idSuffix']),Object[_0x936f9(0x227)](_0x44b459)['forEach'](([_0x47cdc9,_0x428db4])=>{const _0x32ac60=_0x936f9;_0x47cdc9==='mask'&&typeof _0x428db4=='string'&&(_0x44b459[_0x47cdc9]=_0x428db4[_0x32ac60(0x248)](/url\(#(.*)\)/,_0x32ac60(0x21d)+_0x128553[_0x32ac60(0x23c)]+')'));});const {defIds:_0x3c88cf}=_0x128553;return!_0x3c88cf||_0x3c88cf[_0x936f9(0x209)]===0x0||(_0x536bd9['tag']===_0x936f9(0x1f2)&&_0x44b459[_0x936f9(0x1ed)]&&(_0x44b459[_0x936f9(0x1ed)]=_0x44b459[_0x936f9(0x1ed)]+_0x128553[_0x936f9(0x23c)]),Object['entries'](_0x44b459)[_0x936f9(0x25e)](([_0x3826a4,_0x5e48a3])=>{const _0x158286=_0x936f9;typeof _0x5e48a3==_0x158286(0x20c)&&(_0x44b459[_0x3826a4]=_0x5e48a3[_0x158286(0x248)](/url\(#(.*)\)/,_0x158286(0x21d)+_0x128553[_0x158286(0x23c)]+')'));})),_0x44b459;}function Ee(_0x4b2588,_0x5c2cdf){const _0xd16ff0=_0x11b6eb;var _0xf4889a;const {defIds:_0x279f00}=_0x5c2cdf;return!_0x279f00||_0x279f00[_0xd16ff0(0x209)]===0x0?_0x4b2588:_0x4b2588[_0xd16ff0(0x23e)]===_0xd16ff0(0x1e4)&&((_0xf4889a=_0x4b2588[_0xd16ff0(0x22d)])!=null&&_0xf4889a[_0xd16ff0(0x209)])?{..._0x4b2588,'children':_0x4b2588[_0xd16ff0(0x22d)][_0xd16ff0(0x1d5)](_0x392b65=>typeof _0x392b65[_0xd16ff0(0x271)]['id']==_0xd16ff0(0x20c)&&_0x279f00&&_0x279f00['includes'](_0x392b65['attrs']['id'])?{..._0x392b65,'attrs':{..._0x392b65[_0xd16ff0(0x271)],'id':_0x392b65['attrs']['id']+_0x5c2cdf[_0xd16ff0(0x23c)]}}:_0x392b65)}:_0x4b2588;}function Oe(){const _0x15f411=_0x11b6eb;return Math['random']()[_0x15f411(0x251)](0x24)[_0x15f411(0x246)](0x2,0x8);}k[_0x11b6eb(0x21e)]=_0x11b6eb(0x1eb);const we={'tag':_0x11b6eb(0x252),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x11b6eb(0x1cd),'viewBox':_0x11b6eb(0x1ee),'width':_0x11b6eb(0x1ec),'height':_0x11b6eb(0x1ec)},'children':[{'tag':_0x11b6eb(0x272),'attrs':{'fill':_0x11b6eb(0x244),'d':_0x11b6eb(0x25b)}},{'tag':'path','attrs':{'fill':_0x11b6eb(0x244),'d':_0x11b6eb(0x223),'fillRule':'evenodd','clipRule':_0x11b6eb(0x1e5)}}]},W=_0x2916ff(function(_0x31f0eb,_0x114be7){const _0x6b71c6=_0x11b6eb;return _0x4693a1(k,Object[_0x6b71c6(0x275)]({},_0x31f0eb,{'id':_0x6b71c6(0x203),'ref':_0x114be7,'icon':we}));});W[_0x11b6eb(0x21e)]=_0x11b6eb(0x210);class L extends _0x1488b8{constructor(){const _0x187bea=_0x11b6eb;super(...arguments),u(this,_0x187bea(0x23d),new Set()),u(this,_0x187bea(0x229),new Set());}[_0x11b6eb(0x23f)](_0x158060){const _0x37a3b6=_0x11b6eb;return this['_sharedOperations'][_0x37a3b6(0x24c)](_0x158060),_0xc8298e(()=>this['_sharedOperations'][_0x37a3b6(0x218)](_0x158060));}[_0x11b6eb(0x240)](_0x40f42f){const _0x21980b=_0x11b6eb;return this['_reporters'][_0x21980b(0x24c)](_0x40f42f),_0xc8298e(()=>this[_0x21980b(0x229)][_0x21980b(0x218)](_0x40f42f));}['shouldShareOperation'](_0x52b18f){const _0x5a10ce=_0x11b6eb;return this['_sharedOperations'][_0x5a10ce(0x1d6)](_0x52b18f);}[_0x11b6eb(0x245)](_0xf39133){const _0x5f47e4=_0x11b6eb;return Array['from'](this[_0x5f47e4(0x229)])['map'](_0x4f7263=>_0x4f7263(_0xf39133));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x1d211f,_0x53137e,_0x55eb84,_0xa88252)=>{for(var _0x2fca2e=_0xa88252>0x1?void 0x0:_0xa88252?Ne(_0x53137e,_0x55eb84):_0x53137e,_0x189193=_0x1d211f['length']-0x1,_0x4c40b9;_0x189193>=0x0;_0x189193--)(_0x4c40b9=_0x1d211f[_0x189193])&&(_0x2fca2e=_0x4c40b9(_0x2fca2e)||_0x2fca2e);return _0x2fca2e;},_=(_0x15797f,_0x272207)=>(_0x3350f6,_0x91ac93)=>_0x272207(_0x3350f6,_0x91ac93,_0x15797f);let S=class extends _0x2a59c6{constructor(_0x5e6954,_0x255fd4,_0x5aa4ac){const _0x5bd724=_0x11b6eb;super(),u(this,_0x5bd724(0x242),new Map()),(this['_univerInstanceService']=_0x5e6954,this[_0x5bd724(0x26b)]=_0x255fd4,this[_0x5bd724(0x1f8)]=_0x5aa4ac,this['_init']());}async[_0x11b6eb(0x205)](_0x53bb06){const _0x36ee54=_0x11b6eb;return this['_entities'][_0x36ee54(0x1d6)](_0x53bb06)||await this['_startLiveShareCoordinator'](_0x53bb06),this[_0x36ee54(0x242)]['get'](_0x53bb06);}[_0x11b6eb(0x267)](_0x1759c4){const _0x2b7a3b=_0x11b6eb;var _0x2a7b48;return(_0x2a7b48=this['_entities'][_0x2b7a3b(0x270)](_0x1759c4))!=null?_0x2a7b48:null;}[_0x11b6eb(0x1dc)](){const _0x29d409=_0x11b6eb;this[_0x29d409(0x206)]['getTypeOfUnitAdded$'](_0x30dc91['UNIVER_SHEET'])['pipe'](_0x2d117c(this[_0x29d409(0x1f4)]))['subscribe'](async _0x1b26aa=>{const _0x520262=_0x29d409,_0xd0e9af=_0x1b26aa[_0x520262(0x1f9)]();this[_0x520262(0x242)][_0x520262(0x1d6)](_0xd0e9af)||this['_startLiveShareCoordinator'](_0xd0e9af);}),this[_0x29d409(0x206)][_0x29d409(0x231)](_0x30dc91[_0x29d409(0x24f)])['pipe'](_0x2d117c(this[_0x29d409(0x1f4)]))[_0x29d409(0x204)](_0x57738d=>{const _0x1a8037=_0x29d409,_0x4f3d71=_0x57738d['getUnitId'](),_0x50d797=this['_entities'][_0x1a8037(0x270)](_0x4f3d71);_0x50d797==null||_0x50d797['dispose']();});}async[_0x11b6eb(0x21c)](_0x12bd1e){const _0x27fe9c=_0x11b6eb,_0x5b541b=await this[_0x27fe9c(0x1f8)][_0x27fe9c(0x1e1)](_0x12bd1e),_0x28e7a5=this[_0x27fe9c(0x26b)][_0x27fe9c(0x202)](N,_0x12bd1e,_0x5b541b);return _0x28e7a5[_0x27fe9c(0x1dd)](),this[_0x27fe9c(0x242)][_0x27fe9c(0x26e)](_0x12bd1e,_0x28e7a5),_0x28e7a5;}};S=Y([_(0x0,_0x41e0ae),_(0x1,_0x34997e(_0x172459)),_(0x2,_0x34997e(_0x3926f7))],S);var c=(_0x26ecd0=>(_0x26ecd0[_0x11b6eb(0x247)]=_0x11b6eb(0x263),_0x26ecd0[_0x11b6eb(0x21f)]=_0x11b6eb(0x261),_0x26ecd0['FOLLOWING']=_0x11b6eb(0x228),_0x26ecd0[_0x11b6eb(0x237)]='not-following',_0x26ecd0[_0x11b6eb(0x26d)]=_0x11b6eb(0x1cf),_0x26ecd0))(c||{});function _0x1e4f(){const _0x14a054=['_config','asObservable','7336910zpOGuR','NEW_CHANGESETS','delete','_fetchOperations','LIVESHARE_OPERATION','559638FPbKuN','_startLiveShareCoordinator','url(#$1','displayName','IDLE','Stop\x20following','_collabSession','find','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','_handleTerminate','fill','then','entries','following','_reporters','pipe','_beIdle','dispose','children','event$','params','_mountLiveShare','getTypeOfUnitDisposed$','_status$','unitId','div','disposeWithMe','getMemberID','NOT_FOLLOWING','_stopFollowing','operations','_unitID','type','idSuffix','_sharedOperations','tag','registerSharedOperation','registerInitialStateReporter','data','_entities','live-share.config','currentColor','getInitialStates','substring','OFFLINE','replace','complete','You\x27are\x20offline.','stopFollowing','add','_stopPresenting','LIVESHARE_NEW_HOST','UNIVER_SHEET','_startPresenting','toString','svg','univer-size-4','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','includes','32698UFThGU','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_REQUEST_HOST','_startFollowing','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','pluginName','presenter','forEach','Start','symbol','idle','defineProperty','offline','stopPresenting','end','getStatus','getLiveShareCoordinatorSync','startFollowing','sessionStatus$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_injector','onCommandExecuted','PRESENTING','set','current','get','attrs','path','178371BQyFUy','stringify','assign','memberID','ONLINE','clear','registerComponent','none','_configService','presenting','25hUFxgX','button','getOwnPropertyDescriptor','getConfig','SAME_OPERATION_SHARE_INTERVAL','map','has','258075yynvPG','_uiPartsService','univerjs-icon\x20univerjs-icon-','not-following','parse','_init','init','_status','LIVESHARE_FETCH_OPERATIONS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','requireSession','executeCommand','_handleNewChangeSets','defs','evenodd','unsubscribe','_commandService','sheet','FOLLOWING','reverse','UniverIcon','1em','xlink:href','0\x200\x2017\x2017','_commandDisposable','onStarting','_liveShareService','use','default','dispose$','_handleOperation','send','tryStartPresenting','_collabSessionService','getUnitId','getCurrentTypeOfUnit$','univer-mb-3\x20univer-w-full\x20univer-text-sm','14GSxefv','status$','_handleNewHost','2267178CdIcsq','mutations','next','createInstance','live-share-icon','subscribe','getLiveShareCoordinator','_univerInstanceService','12jlXabr','1673816TcqAcD','length','UNIVER_UNKNOWN','Present\x20this\x20document','string','Stop\x20presenting','OPERATION','override','LiveShareIcon','colorChannel1','shouldShareOperation','LIVESHARE_TERMINATE'];_0x1e4f=function(){return _0x14a054;};return _0x1e4f();}const Ce=_0x11b6eb(0x1d4),De=0xc8;let N=class extends _0x2a59c6{constructor(_0x3df8e1,_0x5c69c2,_0x3a4a59,_0x4ff255,_0x4f8c0a){const _0x4a1d13=_0x11b6eb;super(),u(this,_0x4a1d13(0x232),new _0xdd1c4e(_0x4a1d13(0x261))),u(this,_0x4a1d13(0x1fd),this['_status$'][_0x4a1d13(0x215)]()),u(this,_0x4a1d13(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x4a1d13(0x254),null),(this[_0x4a1d13(0x23a)]=_0x3df8e1,this[_0x4a1d13(0x221)]=_0x5c69c2,this[_0x4a1d13(0x1ce)]=_0x3a4a59,this[_0x4a1d13(0x1f1)]=_0x4ff255,this[_0x4a1d13(0x1e7)]=_0x4f8c0a);}get[_0x11b6eb(0x1de)](){const _0x29ad33=_0x11b6eb;return this[_0x29ad33(0x232)]['getValue']();}['dispose'](){const _0x35ddfc=_0x11b6eb;var _0x16a093;(_0x16a093=this[_0x35ddfc(0x1ef)])==null||_0x16a093[_0x35ddfc(0x22c)](),this[_0x35ddfc(0x232)][_0x35ddfc(0x201)](_0x35ddfc(0x261)),this[_0x35ddfc(0x232)][_0x35ddfc(0x249)]();}[_0x11b6eb(0x266)](){const _0x44c87d=_0x11b6eb;return this[_0x44c87d(0x1de)];}[_0x11b6eb(0x1dd)](){const _0x368a34=_0x11b6eb;this['_init']||(this[_0x368a34(0x1dc)]=!0x0,this[_0x368a34(0x221)][_0x368a34(0x269)][_0x368a34(0x22a)](_0x2d117c(this[_0x368a34(0x1f4)]))[_0x368a34(0x204)](_0x4b1b8a=>{const _0xaff4f6=_0x368a34;switch(_0x4b1b8a){case _0x442896['OFFLINE']:this['_handleOffline']();break;case _0x442896[_0xaff4f6(0x1ca)]:this['_handleOnline']();break;}}),this[_0x368a34(0x221)][_0x368a34(0x22e)][_0x368a34(0x22a)](_0x2d117c(this['dispose$']))['subscribe'](_0x39d3c4=>{const _0x4ae8a7=_0x368a34,{eventID:_0x5ab451}=_0x39d3c4;switch(_0x5ab451){case _0x22cfb1[_0x4ae8a7(0x24e)]:this['_handleNewHost'](_0x39d3c4);break;case _0x22cfb1[_0x4ae8a7(0x21a)]:this['_handleOperation'](_0x39d3c4);break;case _0x22cfb1[_0x4ae8a7(0x213)]:this[_0x4ae8a7(0x224)]();break;case _0x22cfb1[_0x4ae8a7(0x217)]:this['_handleNewChangeSets'](_0x39d3c4);break;}}));}[_0x11b6eb(0x1f7)](){const _0x490fab=_0x11b6eb;this['_collabSession'][_0x490fab(0x1f6)]({'eventID':_0x22cfb1[_0x490fab(0x259)],'data':{'unitID':this['_unitID'],'userID':this[_0x490fab(0x221)]['getMemberID']()}},this[_0x490fab(0x23a)]);}[_0x11b6eb(0x264)](){const _0x4c0ff6=_0x11b6eb;this[_0x4c0ff6(0x1de)]===_0x4c0ff6(0x1cf)&&(this['_status$'][_0x4c0ff6(0x201)](_0x4c0ff6(0x261)),this[_0x4c0ff6(0x221)][_0x4c0ff6(0x1f6)]({'eventID':_0x22cfb1[_0x4c0ff6(0x213)],'data':{'unitID':this[_0x4c0ff6(0x23a)]}},this['_unitID']));}['startFollowing'](){const _0x904f6e=_0x11b6eb;this[_0x904f6e(0x1de)]===_0x904f6e(0x1da)&&(this[_0x904f6e(0x232)][_0x904f6e(0x201)](_0x904f6e(0x228)),this[_0x904f6e(0x25a)]());}[_0x11b6eb(0x24b)](){const _0x545b6a=_0x11b6eb;this[_0x545b6a(0x1de)]===_0x545b6a(0x228)&&this[_0x545b6a(0x238)]();}[_0x11b6eb(0x1fe)](_0x45d7b4){const _0x1c77e5=_0x11b6eb,{presenter:_0x4ea448}=_0x45d7b4[_0x1c77e5(0x241)],_0x5a4c1f=this[_0x1c77e5(0x221)][_0x1c77e5(0x236)]();this[_0x1c77e5(0x254)]=_0x4ea448,_0x4ea448===_0x5a4c1f?(this[_0x1c77e5(0x238)](),this[_0x1c77e5(0x250)]()):this['_status']!=='not-following'&&(this[_0x1c77e5(0x24d)](),this[_0x1c77e5(0x25a)]());}[_0x11b6eb(0x219)](){const _0x210f4e=_0x11b6eb,_0x5767d9={'eventID':_0x22cfb1[_0x210f4e(0x1df)]};this[_0x210f4e(0x221)][_0x210f4e(0x1f6)](_0x5767d9,this[_0x210f4e(0x23a)]);}[_0x11b6eb(0x224)](){const _0x591fec=_0x11b6eb;this[_0x591fec(0x254)]=null,this[_0x591fec(0x1de)]!=='presenting'&&this[_0x591fec(0x22b)]();}[_0x11b6eb(0x1e3)](_0x5e91b9){const _0x1b1542=_0x11b6eb;if(this[_0x1b1542(0x1de)]===_0x1b1542(0x228)&&this[_0x1b1542(0x254)]===_0x5e91b9[_0x1b1542(0x241)][_0x1b1542(0x276)]){const _0x3aa936=_0xcb2e04(_0x5e91b9[_0x1b1542(0x241)])[_0x1b1542(0x200)][_0x1b1542(0x1ea)]()[_0x1b1542(0x222)](_0xa478ed=>_0xa478ed['id']===_0x49fa8f['id']);if(_0x3aa936){const _0x56986b=_0x3aa936['params'][_0x1b1542(0x233)],_0x29bf7e=_0x3aa936[_0x1b1542(0x22f)][_0x1b1542(0x1e8)]['id'];setTimeout(()=>{const _0x28acb3=_0x1b1542;this[_0x28acb3(0x1e7)][_0x28acb3(0x1e2)](_0x4b8267['id'],{'unitId':_0x56986b,'subUnitId':_0x29bf7e},{'fromCollab':!0x0});});}}}[_0x11b6eb(0x250)](){const _0x14bb61=_0x11b6eb;this[_0x14bb61(0x232)]['next']('presenting');const _0x5bfa21=new Map(),_0x401fa4=this['_commandDisposable']=new _0x537ad0();_0x401fa4['add'](_0xc8298e(()=>{const _0x4a5654=_0x14bb61;_0x5bfa21[_0x4a5654(0x25e)](_0x55197b=>_0x55197b[_0x4a5654(0x249)]()),_0x5bfa21[_0x4a5654(0x1cb)]();})),_0x401fa4['add'](this[_0x14bb61(0x1e7)][_0x14bb61(0x26c)](_0x49858e=>{const _0x4e8731=_0x14bb61;var _0x2d2887;if(_0x49858e['type']!==_0xf4e9d3[_0x4e8731(0x20e)]||!this['_liveShareService'][_0x4e8731(0x212)](_0x49858e['id']))return;const {id:_0x58ef73}=_0x49858e;let _0x6261e;_0x5bfa21[_0x4e8731(0x1d6)](_0x58ef73)?_0x6261e=_0x5bfa21['get'](_0x58ef73):(_0x6261e=new _0x1059fe(),_0x5bfa21[_0x4e8731(0x26e)](_0x58ef73,_0x6261e),_0x6261e[_0x4e8731(0x22a)](_0x274690((_0x2d2887=this['_configService'][_0x4e8731(0x1d3)](Ce))!=null?_0x2d2887:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4e8731(0x204)](_0x3ac1cf=>{const _0x5c8042=_0x4e8731;this[_0x5c8042(0x221)]['send']({'eventID':_0x22cfb1[_0x5c8042(0x21a)],'data':{'unitID':this[_0x5c8042(0x23a)],'operations':{[_0x3ac1cf['id']]:{'id':_0x3ac1cf['id'],'params':JSON['stringify'](_0x3ac1cf[_0x5c8042(0x22f)])}}}},this[_0x5c8042(0x23a)]);})),_0x6261e['next'](_0x49858e);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x25bc6e=>this[_0x14bb61(0x221)][_0x14bb61(0x1f6)]({'eventID':_0x22cfb1[_0x14bb61(0x21a)],'data':{'unitID':this[_0x14bb61(0x23a)],'operations':{[_0x25bc6e['id']]:{'id':_0x25bc6e['id'],'params':JSON[_0x14bb61(0x274)](_0x25bc6e[_0x14bb61(0x22f)])}}}},this[_0x14bb61(0x23a)]));}[_0x11b6eb(0x24d)](){const _0x12a207=_0x11b6eb;var _0x1e822e;this[_0x12a207(0x232)][_0x12a207(0x201)](_0x12a207(0x261)),(_0x1e822e=this[_0x12a207(0x1ef)])==null||_0x1e822e[_0x12a207(0x22c)](),this['_commandDisposable']=null;}[_0x11b6eb(0x25a)](){const _0x3de75b=_0x11b6eb;var _0x440789;(_0x440789=this[_0x3de75b(0x1ef)])==null||_0x440789[_0x3de75b(0x22c)](),this[_0x3de75b(0x232)][_0x3de75b(0x201)]('following');}[_0x11b6eb(0x22b)](){const _0x32410f=_0x11b6eb;var _0x27c408;this[_0x32410f(0x232)][_0x32410f(0x201)](_0x32410f(0x261)),(_0x27c408=this[_0x32410f(0x1ef)])==null||_0x27c408['dispose'](),this[_0x32410f(0x1ef)]=null;}[_0x11b6eb(0x238)](){const _0x141240=_0x11b6eb;var _0x3dfd67;this[_0x141240(0x232)][_0x141240(0x201)](_0x141240(0x1da)),(_0x3dfd67=this[_0x141240(0x1ef)])==null||_0x3dfd67[_0x141240(0x22c)]();}[_0x11b6eb(0x1f5)](_0x3f5674){const _0x5a9bf9=_0x11b6eb;if([_0x5a9bf9(0x1cf),'not-following',_0x5a9bf9(0x263)][_0x5a9bf9(0x256)](this[_0x5a9bf9(0x1de)])||!_0x3f5674[_0x5a9bf9(0x241)][_0x5a9bf9(0x25d)]||_0x3f5674[_0x5a9bf9(0x241)]['presenter']===this[_0x5a9bf9(0x221)][_0x5a9bf9(0x236)]())return;this['_status']===_0x5a9bf9(0x261)&&this[_0x5a9bf9(0x25a)]();const _0x3a4158=_0x3f5674[_0x5a9bf9(0x241)][_0x5a9bf9(0x239)];Object['values'](_0x3a4158)[_0x5a9bf9(0x25e)](_0x10154e=>{const _0xc2d404=_0x5a9bf9;this[_0xc2d404(0x1e7)]['executeCommand'](_0x10154e['id'],_0x10154e[_0xc2d404(0x22f)]?JSON[_0xc2d404(0x1db)](_0x10154e['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x512728=_0x11b6eb;var _0x5d09aa;this[_0x512728(0x232)]['next'](_0x512728(0x263)),(_0x5d09aa=this['_commandDisposable'])==null||_0x5d09aa[_0x512728(0x22c)]();}['_handleOnline'](){const _0x3f59e2=_0x11b6eb;this[_0x3f59e2(0x232)][_0x3f59e2(0x201)](_0x3f59e2(0x261)),this['_fetchOperations']();}};N=Y([_(0x2,_0x586d2f),_(0x3,_0x34997e(L)),_(0x4,_0x43fef4)],N);function Le(){const _0x16c21c=_0x11b6eb,_0x4cec2a=_0x138bea(S),_0x471b54=_0x138bea(_0x41e0ae),_0x413690=_0x5a2037(()=>_0x471b54[_0x16c21c(0x1fa)](_0x30dc91[_0x16c21c(0x24f)]),void 0x0,!0x1,[]),[_0x242625,_0xebd6d2]=_0x2af4b9(null),[_0x31da5f,_0x3cb4e6]=_0x2af4b9(c['IDLE']),_0x139d59=_0x2f0507(null);return _0x22d44a(()=>(_0x413690&&_0x4cec2a[_0x16c21c(0x205)](_0x413690[_0x16c21c(0x1f9)]())[_0x16c21c(0x226)](_0x4efc0f=>{const _0x5324fd=_0x16c21c;_0xebd6d2(_0x4efc0f),_0x139d59[_0x5324fd(0x26f)]=_0x4efc0f[_0x5324fd(0x1fd)][_0x5324fd(0x204)](_0x2c4102=>{_0x3cb4e6(_0x2c4102);});}),()=>{const _0x4d2dba=_0x16c21c;var _0x51a3d3;(_0x51a3d3=_0x139d59['current'])==null||_0x51a3d3[_0x4d2dba(0x1e6)](),_0x139d59[_0x4d2dba(0x26f)]=null;}),[_0x413690,_0x4cec2a]),_0x242625?_0x4d2be6(_0xef8b71,{'align':_0x16c21c(0x265),'disabled':_0x31da5f===c[_0x16c21c(0x247)],'className':_0x16c21c(0x26a),'overlay':_0x4d2be6(Re,{'status':_0x31da5f,'coordinator':_0x242625}),'children':_0x4d2be6(_0x16c21c(0x1d1),{'className':_0x1b48c8(_0x16c21c(0x1e0),{'univer-cursor-not-allowed':_0x31da5f===c[_0x16c21c(0x247)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31da5f!==c[_0x16c21c(0x247)]}),'type':'button','children':_0x4d2be6(W,{'className':_0x16c21c(0x253)})})}):null;}function Re(_0x1a0cf1){const _0x379eda=_0x11b6eb,{status:_0x3f220c,coordinator:_0x2d6ce0}=_0x1a0cf1;switch(_0x3f220c){case c[_0x379eda(0x21f)]:return _0x4d2be6($e,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x1e9)]:return _0x4d2be6(xe,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x237)]:return _0x4d2be6(Pe,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x247)]:return _0x4d2be6(Te,{});case c[_0x379eda(0x26d)]:return _0x4d2be6(Ae,{'coordinator':_0x2d6ce0});default:return null;}}function $e(_0x590e4f){const _0x470752=_0x11b6eb,{coordinator:_0x230193}=_0x590e4f;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x470752(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x470752(0x20b)}),_0x4d2be6(_0x23cb3d,{'onClick':()=>_0x230193[_0x470752(0x1f7)](),'children':_0x470752(0x25f)})]});}function xe(_0x3ca136){const _0x275bb7=_0x11b6eb,{coordinator:_0x572915}=_0x3ca136;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x275bb7(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x4d2be6(_0x23cb3d,{'onClick':()=>_0x572915[_0x275bb7(0x24b)](),'children':_0x275bb7(0x220)})]});}function Pe(_0x589811){const _0x39732f=_0x11b6eb,{coordinator:_0x2b7e62}=_0x589811;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x39732f(0x234),{'className':_0x39732f(0x1fb),'children':_0x39732f(0x255)}),_0x4d2be6(_0x23cb3d,{'variant':'text','onClick':()=>_0x2b7e62[_0x39732f(0x268)](),'children':'Start\x20following'})]});}function Ae(_0x217d88){const _0x3f2db2=_0x11b6eb,{coordinator:_0x16fd5b}=_0x217d88;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x3f2db2(0x234),{'className':_0x3f2db2(0x1fb),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4d2be6(_0x23cb3d,{'variant':_0x3f2db2(0x1f3),'onClick':()=>_0x16fd5b[_0x3f2db2(0x264)](),'children':_0x3f2db2(0x20d)})]});}function Te(){const _0x38fd24=_0x11b6eb;return _0x4d2be6(_0xa0c774,{'children':_0x38fd24(0x24a)});}function _0x54c5(_0xe7a61e,_0x1aff34){const _0x1e4fad=_0x1e4f();return _0x54c5=function(_0x54c51c,_0x3f2c49){_0x54c51c=_0x54c51c-0x1ca;let _0x50767b=_0x1e4fad[_0x54c51c];return _0x50767b;},_0x54c5(_0xe7a61e,_0x1aff34);}var Fe=Object[_0x11b6eb(0x1d2)],He=(_0x38c998,_0x4ea12c,_0x32bc5d,_0x176234)=>{const _0x1aad53=_0x11b6eb;for(var _0x2e9d14=_0x176234>0x1?void 0x0:_0x176234?Fe(_0x4ea12c,_0x32bc5d):_0x4ea12c,_0x432a90=_0x38c998[_0x1aad53(0x209)]-0x1,_0x26e754;_0x432a90>=0x0;_0x432a90--)(_0x26e754=_0x38c998[_0x432a90])&&(_0x2e9d14=_0x26e754(_0x2e9d14)||_0x2e9d14);return _0x2e9d14;},A=(_0xa17375,_0x4a8e82)=>(_0x56bb98,_0x5eae5d)=>_0x4a8e82(_0x56bb98,_0x5eae5d,_0xa17375);let m=class extends _0x1488b8{constructor(_0x2945c9,_0x559605){const _0x359654=_0x11b6eb;super(),this[_0x359654(0x26b)]=_0x2945c9,this[_0x359654(0x1d8)]=_0x559605,this[_0x359654(0x230)]();}['_mountLiveShare'](){const _0x4bbbb7=_0x11b6eb;this['disposeWithMe'](this['_uiPartsService'][_0x4bbbb7(0x1cc)](_0xe162dd['HEADER_MENU'],()=>_0x437101(Le,this[_0x4bbbb7(0x26b)])));}};m=He([A(0x0,_0x34997e(_0x172459)),A(0x1,_0x274200)],m);const ye=_0x11b6eb(0x243),T={};var Ue=Object[_0x11b6eb(0x1d2)],Ve=(_0x411382,_0x2e8368,_0x52c4ba,_0xaebcd6)=>{const _0x28a6a1=_0x11b6eb;for(var _0x9360d9=_0xaebcd6>0x1?void 0x0:_0xaebcd6?Ue(_0x2e8368,_0x52c4ba):_0x2e8368,_0x2b0fd5=_0x411382[_0x28a6a1(0x209)]-0x1,_0x4bcfff;_0x2b0fd5>=0x0;_0x2b0fd5--)(_0x4bcfff=_0x411382[_0x2b0fd5])&&(_0x9360d9=_0x4bcfff(_0x9360d9)||_0x9360d9);return _0x9360d9;},je=(_0x22af56,_0x42b3dd)=>(_0x411372,_0x4c15e9)=>_0x42b3dd(_0x411372,_0x4c15e9,_0x22af56);let I=class extends _0x1488b8{constructor(_0x5822de){const _0x521c05=_0x11b6eb;super(),this[_0x521c05(0x1f1)]=_0x5822de,this['_init']();}[_0x11b6eb(0x1dc)](){const _0x4f1c9c=_0x11b6eb;[_0x3a77e6['id'],_0x5e3f90['id'],_0x4b8267['id']][_0x4f1c9c(0x25e)](_0x2ab669=>{const _0x21b666=_0x4f1c9c;this[_0x21b666(0x235)](this[_0x21b666(0x1f1)][_0x21b666(0x23f)](_0x2ab669));});}};I=Ve([je(0x0,_0x34997e(L))],I);var Me=Object[_0x11b6eb(0x262)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x37d6de,_0x73cce6,_0x53f01e)=>_0x73cce6 in _0x37d6de?Me(_0x37d6de,_0x73cce6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53f01e}):_0x37d6de[_0x73cce6]=_0x53f01e,We=(_0x4d4862,_0x2b1df5,_0x4179e8,_0x348e1a)=>{const _0x21f4eb=_0x11b6eb;for(var _0x48e571=_0x348e1a>0x1?void 0x0:_0x348e1a?ke(_0x2b1df5,_0x4179e8):_0x2b1df5,_0x4b5328=_0x4d4862[_0x21f4eb(0x209)]-0x1,_0x4db8c5;_0x4b5328>=0x0;_0x4b5328--)(_0x4db8c5=_0x4d4862[_0x4b5328])&&(_0x48e571=_0x4db8c5(_0x48e571)||_0x48e571);return _0x48e571;},F=(_0x468ae7,_0x4ecec)=>(_0x4f3af4,_0x1b9600)=>_0x4ecec(_0x4f3af4,_0x1b9600,_0x468ae7),B=(_0x117af5,_0x4af8be,_0x5b70e0)=>Ge(_0x117af5,typeof _0x4af8be!='symbol'?_0x4af8be+'':_0x4af8be,_0x5b70e0);const Ye=_0x11b6eb(0x258);let b=class extends _0x4e2557{constructor(_0x48756a=T,_0x5caf02,_0x4940e3){const _0x150edf=_0x11b6eb;super(),this[_0x150edf(0x214)]=_0x48756a,this[_0x150edf(0x26b)]=_0x5caf02,this[_0x150edf(0x1ce)]=_0x4940e3;const {..._0x9354b9}=_0x6531d9({},T,this[_0x150edf(0x214)]);this['_configService']['setConfig'](ye,_0x9354b9);}[_0x11b6eb(0x1f0)](){const _0x4af5fb=_0x11b6eb;_0x5507b0(this['_injector'],_0x350506([[L],[S],[I],[m]],this[_0x4af5fb(0x214)][_0x4af5fb(0x20f)])),_0x6327c4(this[_0x4af5fb(0x26b)],[[I]]);}['onRendered'](){_0x6327c4(this['_injector'],[[m]]);}};B(b,_0x11b6eb(0x23b),_0x30dc91[_0x11b6eb(0x20a)]),B(b,_0x11b6eb(0x25c),Ye),b=We([_0x1db9f3(_0x12ac27),F(0x1,_0x34997e(_0x172459)),F(0x2,_0x586d2f)],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 _0x2b54dc=_0x1cda;(function(_0x4f436f,_0x5b0850){const _0x59851d=_0x1cda,_0x14bc6b=_0x4f436f();while(!![]){try{const _0xf4f163=-parseInt(_0x59851d(0x96))/0x1*(-parseInt(_0x59851d(0x9c))/0x2)+parseInt(_0x59851d(0xa8))/0x3+-parseInt(_0x59851d(0xa2))/0x4+-parseInt(_0x59851d(0x94))/0x5+parseInt(_0x59851d(0xa0))/0x6*(parseInt(_0x59851d(0x97))/0x7)+-parseInt(_0x59851d(0x98))/0x8+parseInt(_0x59851d(0xa6))/0x9*(parseInt(_0x59851d(0x90))/0xa);if(_0xf4f163===_0x5b0850)break;else _0x14bc6b['push'](_0x14bc6b['shift']());}catch(_0x2894bb){_0x14bc6b['push'](_0x14bc6b['shift']());}}}(_0x2c2f,0x8f628));import{LiveShareController as _0x360aa6,LiveShareStatus as _0x2921bd}from'@univerjs-pro/live-share';function _0x1cda(_0x4ef67,_0x42a305){const _0x2c2f4a=_0x2c2f();return _0x1cda=function(_0x1cda42,_0xc328cb){_0x1cda42=_0x1cda42-0x8f;let _0x3b7683=_0x2c2f4a[_0x1cda42];return _0x3b7683;},_0x1cda(_0x4ef67,_0x42a305);}import{IRenderManagerService as _0x5581eb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x11fd11}from'@univerjs/sheets';import{SetScrollOperation as _0x5c7015}from'@univerjs/sheets-ui';import{FRange as _0x3cbc29}from'@univerjs/sheets/facade';function _0x2c2f(){const _0x3116c7=['getLiveShareCoordinatorSync','304335PxgWHE','No\x20active\x20workbook\x20found.','2865159zdHbaL','stopPresenting','startRow','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getId','PRESENTING','120dztKlf','get','getSheetId','stopFollowing','5867370MvUzGJ','startPresenting','36502znEKnM','99001iSzQyU','8612216gRnrDL','startColumn','getActiveWorkbook','getActiveSheet','46gxUSiT','extend','_commandService','_injector','396kyImME','getLiveShareStatus','1186048WyfsOC','IDLE','getStatus'];_0x2c2f=function(){return _0x3116c7;};return _0x2c2f();}import{FUniver as _0x588fcb,FEnum as _0x1789a1}from'@univerjs/core/facade';class I extends _0x3cbc29{['_initialize'](_0x42495e,_0x555848,_0x1e6493,_0x59deac,_0x19cf00){const _0x477317=_0x1cda,_0x28b36e=_0x42495e[_0x477317(0x91)](_0x360aa6),_0x31b023=_0x42495e[_0x477317(0x91)](_0x5581eb),_0x3689f5=_0x555848[_0x477317(0xab)](),_0x1873dd=_0x555848[_0x477317(0x9b)](),_0x196b83=_0x28b36e[_0x477317(0xa5)](_0x3689f5);(_0x196b83==null?void 0x0:_0x196b83['getStatus']())!==_0x2921bd[_0x477317(0x8f)]||(_0x1e6493[_0x477317(0x92)]()!==_0x1873dd[_0x477317(0x92)]()&&this[_0x477317(0x9e)]['executeCommand'](_0x11fd11['id'],{'unitId':_0x3689f5,'subUnitId':_0x1e6493['getSheetId']()}),!_0x31b023['getRenderById'](_0x3689f5))||_0x19cf00['syncExecuteCommand'](_0x5c7015['id'],{'unitId':_0x555848[_0x477317(0xab)](),'sheetId':_0x1e6493['getSheetId'](),'sheetViewStartRow':_0x59deac[_0x477317(0xaa)],'sheetViewStartColumn':_0x59deac[_0x477317(0x99)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3cbc29[_0x2b54dc(0x9d)](I);class m extends _0x588fcb{[_0x2b54dc(0xa1)](){const _0x586947=_0x2b54dc;var _0x14a0d0,_0x213e21;const _0x48aa70=this['_injector'][_0x586947(0x91)](_0x360aa6),_0x8862f9=(_0x14a0d0=this['getActiveWorkbook']())==null?void 0x0:_0x14a0d0[_0x586947(0xae)]();if(!_0x8862f9)throw new Error('No\x20active\x20workbook\x20found.');const _0xda90e6=_0x48aa70[_0x586947(0xa5)](_0x8862f9);return(_0x213e21=_0xda90e6==null?void 0x0:_0xda90e6[_0x586947(0xa4)]())!=null?_0x213e21:_0x2921bd[_0x586947(0xa3)];}[_0x2b54dc(0xad)](){const _0x448248=_0x2b54dc;var _0x52c069;const _0xbf2cf6=this['_injector'][_0x448248(0x91)](_0x360aa6),_0x5b19c8=(_0x52c069=this[_0x448248(0x9a)]())==null?void 0x0:_0x52c069[_0x448248(0xae)]();if(!_0x5b19c8)throw new Error('No\x20active\x20workbook\x20found.');const _0x10207a=_0xbf2cf6['getLiveShareCoordinatorSync'](_0x5b19c8);if(!_0x10207a)throw new Error(_0x448248(0xac));_0x10207a[_0x448248(0xad)]();}[_0x2b54dc(0x93)](){const _0xa46f10=_0x2b54dc;var _0x44023a;const _0x27e4ba=this[_0xa46f10(0x9f)][_0xa46f10(0x91)](_0x360aa6),_0x348b1=(_0x44023a=this[_0xa46f10(0x9a)]())==null?void 0x0:_0x44023a[_0xa46f10(0xae)]();if(!_0x348b1)throw new Error(_0xa46f10(0xa7));const _0x7ffa37=_0x27e4ba[_0xa46f10(0xa5)](_0x348b1);if(!_0x7ffa37)throw new Error(_0xa46f10(0xac));_0x7ffa37[_0xa46f10(0x93)]();}[_0x2b54dc(0x95)](){const _0x46ba7e=_0x2b54dc;var _0x2c680c;const _0x15ebf7=this['_injector'][_0x46ba7e(0x91)](_0x360aa6),_0x32691f=(_0x2c680c=this[_0x46ba7e(0x9a)]())==null?void 0x0:_0x2c680c[_0x46ba7e(0xae)]();if(!_0x32691f)throw new Error(_0x46ba7e(0xa7));const _0x30e3ff=_0x15ebf7[_0x46ba7e(0xa5)](_0x32691f);if(!_0x30e3ff)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x30e3ff['tryStartPresenting']();}[_0x2b54dc(0xa9)](){const _0x5bae7a=_0x2b54dc;var _0x595c1e;const _0x83fc3b=this[_0x5bae7a(0x9f)]['get'](_0x360aa6),_0x49148d=(_0x595c1e=this['getActiveWorkbook']())==null?void 0x0:_0x595c1e[_0x5bae7a(0xae)]();if(!_0x49148d)throw new Error(_0x5bae7a(0xa7));const _0x30450b=_0x83fc3b[_0x5bae7a(0xa5)](_0x49148d);if(!_0x30450b)throw new Error(_0x5bae7a(0xac));_0x30450b[_0x5bae7a(0xa9)]();}}_0x588fcb['extend'](m);class C extends _0x1789a1{get['LiveShareStatusEnum'](){return _0x2921bd;}}_0x1789a1['extend'](C);
1
+ const _0x18338d=_0xb22d;(function(_0xfdbaf5,_0x3bc3fa){const _0x3c3549=_0xb22d,_0x5c80c2=_0xfdbaf5();while(!![]){try{const _0x584f9d=-parseInt(_0x3c3549(0x184))/0x1*(parseInt(_0x3c3549(0x18e))/0x2)+parseInt(_0x3c3549(0x19d))/0x3+-parseInt(_0x3c3549(0x18a))/0x4*(parseInt(_0x3c3549(0x18d))/0x5)+parseInt(_0x3c3549(0x187))/0x6+parseInt(_0x3c3549(0x196))/0x7*(-parseInt(_0x3c3549(0x19e))/0x8)+-parseInt(_0x3c3549(0x189))/0x9*(-parseInt(_0x3c3549(0x193))/0xa)+parseInt(_0x3c3549(0x19b))/0xb*(parseInt(_0x3c3549(0x1a4))/0xc);if(_0x584f9d===_0x3bc3fa)break;else _0x5c80c2['push'](_0x5c80c2['shift']());}catch(_0x1bacc5){_0x5c80c2['push'](_0x5c80c2['shift']());}}}(_0x19d3,0xa332e));import{LiveShareController as _0x449d35,LiveShareStatus as _0x296cc0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2a1c10}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xb9115a}from'@univerjs/sheets';import{SetScrollOperation as _0x2d2414}from'@univerjs/sheets-ui';import{FRange as _0x234974}from'@univerjs/sheets/facade';function _0xb22d(_0x4e835c,_0x2b420d){const _0x19d355=_0x19d3();return _0xb22d=function(_0xb22d33,_0x31ccd2){_0xb22d33=_0xb22d33-0x184;let _0x5ce084=_0x19d355[_0xb22d33];return _0x5ce084;},_0xb22d(_0x4e835c,_0x2b420d);}function _0x19d3(){const _0x5ea076=['extend','16020631zwYUgK','getSheetId','1647570BOUalM','737312RGmYTA','getId','_commandService','startPresenting','get','syncExecuteCommand','12LtRMIG','2hBfMcK','PRESENTING','startColumn','3614976vtUGVX','startFollowing','493821veDWOc','56PvNXOf','getStatus','_initialize','408405LGMEdE','995866KQNatx','_injector','getLiveShareCoordinatorSync','stopFollowing','stopPresenting','70ozVwPl','getRenderById','getActiveWorkbook','14JDWIfJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','tryStartPresenting','No\x20active\x20workbook\x20found.'];_0x19d3=function(){return _0x5ea076;};return _0x19d3();}import{FUniver as _0x10a831,FEnum as _0x2bf98d}from'@univerjs/core/facade';class I extends _0x234974{[_0x18338d(0x18c)](_0x5e8a27,_0x1b6211,_0x460c4f,_0x6a8f32,_0x15a8dc){const _0x5cee34=_0x18338d,_0x380fa1=_0x5e8a27[_0x5cee34(0x1a2)](_0x449d35),_0x45eea3=_0x5e8a27[_0x5cee34(0x1a2)](_0x2a1c10),_0x38a6e7=_0x1b6211['getUnitId'](),_0x8a948b=_0x1b6211['getActiveSheet'](),_0x2435d6=_0x380fa1[_0x5cee34(0x190)](_0x38a6e7);(_0x2435d6==null?void 0x0:_0x2435d6['getStatus']())!==_0x296cc0[_0x5cee34(0x185)]||(_0x460c4f[_0x5cee34(0x19c)]()!==_0x8a948b[_0x5cee34(0x19c)]()&&this[_0x5cee34(0x1a0)]['executeCommand'](_0xb9115a['id'],{'unitId':_0x38a6e7,'subUnitId':_0x460c4f[_0x5cee34(0x19c)]()}),!_0x45eea3[_0x5cee34(0x194)](_0x38a6e7))||_0x15a8dc[_0x5cee34(0x1a3)](_0x2d2414['id'],{'unitId':_0x1b6211['getUnitId'](),'sheetId':_0x460c4f['getSheetId'](),'sheetViewStartRow':_0x6a8f32['startRow'],'sheetViewStartColumn':_0x6a8f32[_0x5cee34(0x186)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x234974[_0x18338d(0x19a)](I);class m extends _0x10a831{['getLiveShareStatus'](){const _0x22727a=_0x18338d;var _0x15559d,_0x140454;const _0x12b4df=this[_0x22727a(0x18f)][_0x22727a(0x1a2)](_0x449d35),_0x26ac5d=(_0x15559d=this[_0x22727a(0x195)]())==null?void 0x0:_0x15559d[_0x22727a(0x19f)]();if(!_0x26ac5d)throw new Error(_0x22727a(0x199));const _0x4d923b=_0x12b4df[_0x22727a(0x190)](_0x26ac5d);return(_0x140454=_0x4d923b==null?void 0x0:_0x4d923b[_0x22727a(0x18b)]())!=null?_0x140454:_0x296cc0['IDLE'];}[_0x18338d(0x188)](){const _0x44e0a0=_0x18338d;var _0xa1bdf2;const _0x26f6fa=this[_0x44e0a0(0x18f)][_0x44e0a0(0x1a2)](_0x449d35),_0x914022=(_0xa1bdf2=this[_0x44e0a0(0x195)]())==null?void 0x0:_0xa1bdf2['getId']();if(!_0x914022)throw new Error(_0x44e0a0(0x199));const _0x31d249=_0x26f6fa[_0x44e0a0(0x190)](_0x914022);if(!_0x31d249)throw new Error(_0x44e0a0(0x197));_0x31d249['startFollowing']();}[_0x18338d(0x191)](){const _0x2018ff=_0x18338d;var _0x53737b;const _0x1505a4=this['_injector'][_0x2018ff(0x1a2)](_0x449d35),_0x2ffbb0=(_0x53737b=this[_0x2018ff(0x195)]())==null?void 0x0:_0x53737b[_0x2018ff(0x19f)]();if(!_0x2ffbb0)throw new Error('No\x20active\x20workbook\x20found.');const _0x329584=_0x1505a4[_0x2018ff(0x190)](_0x2ffbb0);if(!_0x329584)throw new Error(_0x2018ff(0x197));_0x329584[_0x2018ff(0x191)]();}[_0x18338d(0x1a1)](){const _0x3b5675=_0x18338d;var _0x48ab05;const _0x56de2b=this['_injector'][_0x3b5675(0x1a2)](_0x449d35),_0x58cefe=(_0x48ab05=this[_0x3b5675(0x195)]())==null?void 0x0:_0x48ab05[_0x3b5675(0x19f)]();if(!_0x58cefe)throw new Error(_0x3b5675(0x199));const _0xffbaa3=_0x56de2b[_0x3b5675(0x190)](_0x58cefe);if(!_0xffbaa3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xffbaa3[_0x3b5675(0x198)]();}[_0x18338d(0x192)](){const _0x2c8ddf=_0x18338d;var _0x54f9c1;const _0x276dc1=this[_0x2c8ddf(0x18f)][_0x2c8ddf(0x1a2)](_0x449d35),_0x370434=(_0x54f9c1=this[_0x2c8ddf(0x195)]())==null?void 0x0:_0x54f9c1[_0x2c8ddf(0x19f)]();if(!_0x370434)throw new Error('No\x20active\x20workbook\x20found.');const _0x5909b3=_0x276dc1['getLiveShareCoordinatorSync'](_0x370434);if(!_0x5909b3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5909b3[_0x2c8ddf(0x192)]();}}_0x10a831['extend'](m);class C extends _0x2bf98d{get['LiveShareStatusEnum'](){return _0x296cc0;}}_0x2bf98d['extend'](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x221811=_0x2e9a;(function(_0x153aa2,_0x53c9ad){const _0x469ad4=_0x2e9a,_0x2a42e1=_0x153aa2();while(!![]){try{const _0x5679d9=parseInt(_0x469ad4(0x134))/0x1*(parseInt(_0x469ad4(0x1b4))/0x2)+parseInt(_0x469ad4(0x150))/0x3+-parseInt(_0x469ad4(0x125))/0x4*(-parseInt(_0x469ad4(0x14d))/0x5)+-parseInt(_0x469ad4(0x15f))/0x6+-parseInt(_0x469ad4(0x187))/0x7+-parseInt(_0x469ad4(0x139))/0x8*(-parseInt(_0x469ad4(0x17d))/0x9)+-parseInt(_0x469ad4(0x165))/0xa;if(_0x5679d9===_0x53c9ad)break;else _0x2a42e1['push'](_0x2a42e1['shift']());}catch(_0x47c5ac){_0x2a42e1['push'](_0x2a42e1['shift']());}}}(_0x1745,0x81c6c));var J=Object[_0x221811(0x140)],K=(_0x54f9f1,_0x5442c9,_0x45d33c)=>_0x5442c9 in _0x54f9f1?J(_0x54f9f1,_0x5442c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45d33c}):_0x54f9f1[_0x5442c9]=_0x45d33c,u=(_0x4dda28,_0x35b8c8,_0x28d07c)=>K(_0x4dda28,typeof _0x35b8c8!=_0x221811(0x12b)?_0x35b8c8+'':_0x35b8c8,_0x28d07c);import{Disposable as _0x5584fb,toDisposable as _0x4e21f7,IUniverInstanceService as _0x34a265,Inject as _0x3b972f,Injector as _0x1e206d,IConfigService as _0x3c082e,ICommandService as _0x2a3810,RxDisposable as _0x317033,UniverInstanceType as _0x4fecd8,DisposableCollection as _0x38a87f,CommandType as _0x274666,DependentOn as _0x4ef44e,Plugin as _0x54e800,merge as _0x47f8b3,registerDependencies as _0x38128c,mergeOverrideWithDependencies as _0x28e201,touchDependencies as _0x441580}from'@univerjs/core';import{useDependency as _0x3ba771,useObservable as _0x382b15,IUIPartsService as _0x2df529,BuiltInUIPart as _0x39e9b0,connectInjector as _0x19746f}from'@univerjs/ui';import{jsx as _0x394112,jsxs as _0x35a790,Fragment as _0xf1c7f5}from'react/jsx-runtime';import{Dropdown as _0x195faf,clsx as _0x4a0fdb,Button as _0x4da62a}from'@univerjs/design';import{useRef as _0x3dea31,createElement as _0x5edcfb,forwardRef as _0x5a8e8f,useState as _0x20fc4e,useEffect as _0x300d05}from'react';import{CollaborationEvent as _0x3ec99e,parseProtocolChangeset as _0x40eca1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1839d1,SessionStatus as _0x3fee76,UniverCollaborationClientPlugin as _0x121829}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e444,SetWorksheetActiveOperation as _0x222c77}from'@univerjs/sheets';import{BehaviorSubject as _0x9a32b4,Subject as _0x4cfb70}from'rxjs';import{takeUntil as _0x3d7e87,throttleTime as _0x1bd794}from'rxjs/operators';function _0x2e9a(_0x14dfa5,_0x35b766){const _0x174502=_0x1745();return _0x2e9a=function(_0x2e9af7,_0x486621){_0x2e9af7=_0x2e9af7-0x124;let _0x1540c3=_0x174502[_0x2e9af7];return _0x1540c3;},_0x2e9a(_0x14dfa5,_0x35b766);}import{SetZoomRatioOperation as _0x3a61b7,SetScrollOperation as _0x1e8464}from'@univerjs/sheets-ui';function k({ref:_0x197e6c,..._0x5ca943}){const _0x207c92=_0x221811,{icon:_0x2f09c0,id:_0x8b262c,className:_0x17c9c3,extend:_0x24cdfe,..._0x239edd}=_0x5ca943,_0x306934=(_0x207c92(0x1ba)+_0x8b262c+'\x20'+(_0x17c9c3||''))[_0x207c92(0x169)](),_0xecd5c0=_0x3dea31('_'+Oe());return G(_0x2f09c0,''+_0x8b262c,{'defIds':_0x2f09c0['defIds'],'idSuffix':_0xecd5c0[_0x207c92(0x183)]},{'ref':_0x197e6c,'className':_0x306934,..._0x239edd},_0x24cdfe);}function G(_0x31c008,_0x3c106a,_0xedabbb,_0x5d2070,_0x3dd37a){const _0x5a8fc0=_0x221811;return _0x5edcfb(_0x31c008['tag'],{'key':_0x3c106a,...be(_0x31c008,_0xedabbb,_0x3dd37a),..._0x5d2070},(Ee(_0x31c008,_0xedabbb)['children']||[])['map']((_0x477eeb,_0x324de5)=>G(_0x477eeb,_0x3c106a+'-'+_0x31c008[_0x5a8fc0(0x18e)]+'-'+_0x324de5,_0xedabbb,void 0x0,_0x3dd37a)));}function be(_0x3b3564,_0x187141,_0x5bcc20){const _0x3e1c00=_0x221811,_0x3c1373={..._0x3b3564[_0x3e1c00(0x158)]};_0x5bcc20!=null&&_0x5bcc20[_0x3e1c00(0x17c)]&&_0x3c1373[_0x3e1c00(0x172)]==='colorChannel1'&&(_0x3c1373[_0x3e1c00(0x172)]=_0x5bcc20[_0x3e1c00(0x17c)]),_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x18f)&&_0x3c1373['id']&&(_0x3c1373['id']=_0x3c1373['id']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)[_0x3e1c00(0x13d)](([_0x3c7c5c,_0x1da6a6])=>{const _0x157bf4=_0x3e1c00;_0x3c7c5c===_0x157bf4(0x18f)&&typeof _0x1da6a6==_0x157bf4(0x192)&&(_0x3c1373[_0x3c7c5c]=_0x1da6a6[_0x157bf4(0x19f)](/url\(#(.*)\)/,_0x157bf4(0x166)+_0x187141[_0x157bf4(0x167)]+')'));});const {defIds:_0x22b32f}=_0x187141;return!_0x22b32f||_0x22b32f[_0x3e1c00(0x195)]===0x0||(_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x1cc)&&_0x3c1373[_0x3e1c00(0x1b3)]&&(_0x3c1373['xlink:href']=_0x3c1373['xlink:href']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)['forEach'](([_0x33755c,_0x2297f2])=>{const _0x545bfe=_0x3e1c00;typeof _0x2297f2==_0x545bfe(0x192)&&(_0x3c1373[_0x33755c]=_0x2297f2[_0x545bfe(0x19f)](/url\(#(.*)\)/,'url(#$1'+_0x187141[_0x545bfe(0x167)]+')'));})),_0x3c1373;}function Ee(_0x5a9411,_0x19eef7){const _0x350b86=_0x221811;var _0xbb3c2e;const {defIds:_0xa3863b}=_0x19eef7;return!_0xa3863b||_0xa3863b[_0x350b86(0x195)]===0x0?_0x5a9411:_0x5a9411[_0x350b86(0x18e)]===_0x350b86(0x149)&&((_0xbb3c2e=_0x5a9411[_0x350b86(0x145)])!=null&&_0xbb3c2e[_0x350b86(0x195)])?{..._0x5a9411,'children':_0x5a9411[_0x350b86(0x145)][_0x350b86(0x141)](_0x8212e7=>typeof _0x8212e7[_0x350b86(0x158)]['id']==_0x350b86(0x192)&&_0xa3863b&&_0xa3863b[_0x350b86(0x136)](_0x8212e7[_0x350b86(0x158)]['id'])?{..._0x8212e7,'attrs':{..._0x8212e7[_0x350b86(0x158)],'id':_0x8212e7[_0x350b86(0x158)]['id']+_0x19eef7[_0x350b86(0x167)]}}:_0x8212e7)}:_0x5a9411;}function Oe(){const _0x3670fe=_0x221811;return Math[_0x3670fe(0x1c6)]()[_0x3670fe(0x142)](0x24)[_0x3670fe(0x144)](0x2,0x8);}k[_0x221811(0x1a5)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x221811(0x184),'fill':_0x221811(0x178),'viewBox':_0x221811(0x1b0),'width':'1em','height':_0x221811(0x12d)},'children':[{'tag':_0x221811(0x153),'attrs':{'fill':_0x221811(0x1ad),'d':_0x221811(0x13c)}},{'tag':_0x221811(0x153),'attrs':{'fill':'currentColor','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':_0x221811(0x1b1),'clipRule':_0x221811(0x1b1)}}]},W=_0x5a8e8f(function(_0x20d022,_0x47731f){const _0x315b76=_0x221811;return _0x5edcfb(k,Object[_0x315b76(0x175)]({},_0x20d022,{'id':'live-share-icon','ref':_0x47731f,'icon':we}));});W[_0x221811(0x1a5)]=_0x221811(0x190);class L extends _0x5584fb{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x221811(0x1bc)](_0x5900df){const _0x5bc97f=_0x221811;return this[_0x5bc97f(0x1c8)]['add'](_0x5900df),_0x4e21f7(()=>this[_0x5bc97f(0x1c8)][_0x5bc97f(0x126)](_0x5900df));}[_0x221811(0x18d)](_0x375172){const _0x88761=_0x221811;return this[_0x88761(0x1b9)][_0x88761(0x1a9)](_0x375172),_0x4e21f7(()=>this[_0x88761(0x1b9)][_0x88761(0x126)](_0x375172));}[_0x221811(0x1a7)](_0x18d878){const _0x53d32f=_0x221811;return this[_0x53d32f(0x1c8)]['has'](_0x18d878);}['getInitialStates'](_0x5d176f){const _0x1eeed2=_0x221811;return Array[_0x1eeed2(0x1ce)](this['_reporters'])['map'](_0x2bb04e=>_0x2bb04e(_0x5d176f));}}var Ne=Object[_0x221811(0x156)],Y=(_0x287803,_0x18bfb1,_0x3a3c64,_0x95786)=>{const _0x9d8303=_0x221811;for(var _0x24231a=_0x95786>0x1?void 0x0:_0x95786?Ne(_0x18bfb1,_0x3a3c64):_0x18bfb1,_0x8d7260=_0x287803[_0x9d8303(0x195)]-0x1,_0x257dee;_0x8d7260>=0x0;_0x8d7260--)(_0x257dee=_0x287803[_0x8d7260])&&(_0x24231a=_0x257dee(_0x24231a)||_0x24231a);return _0x24231a;},_=(_0x42f5a8,_0x5bb8ea)=>(_0x5381dd,_0x3fb270)=>_0x5bb8ea(_0x5381dd,_0x3fb270,_0x42f5a8);let S=class extends _0x317033{constructor(_0x305ccb,_0x243345,_0x2d10b0){const _0x2a2f93=_0x221811;super(),u(this,_0x2a2f93(0x1be),new Map()),(this[_0x2a2f93(0x194)]=_0x305ccb,this['_injector']=_0x243345,this[_0x2a2f93(0x193)]=_0x2d10b0,this[_0x2a2f93(0x14c)]());}async['getLiveShareCoordinator'](_0x4a5180){const _0x43c5d3=_0x221811;return this[_0x43c5d3(0x1be)][_0x43c5d3(0x15e)](_0x4a5180)||await this[_0x43c5d3(0x17b)](_0x4a5180),this[_0x43c5d3(0x1be)][_0x43c5d3(0x1b5)](_0x4a5180);}[_0x221811(0x1a0)](_0x3f9228){const _0xaa81b6=_0x221811;var _0x30c53a;return(_0x30c53a=this[_0xaa81b6(0x1be)][_0xaa81b6(0x1b5)](_0x3f9228))!=null?_0x30c53a:null;}['_init'](){const _0x396051=_0x221811;this['_univerInstanceService'][_0x396051(0x127)](_0x4fecd8[_0x396051(0x1a3)])['pipe'](_0x3d7e87(this[_0x396051(0x146)]))[_0x396051(0x1bf)](async _0x342f0c=>{const _0xd58b8b=_0x396051,_0x412d57=_0x342f0c[_0xd58b8b(0x174)]();this[_0xd58b8b(0x1be)][_0xd58b8b(0x15e)](_0x412d57)||this[_0xd58b8b(0x17b)](_0x412d57);}),this[_0x396051(0x194)]['getTypeOfUnitDisposed$'](_0x4fecd8['UNIVER_SHEET'])[_0x396051(0x16d)](_0x3d7e87(this['dispose$']))[_0x396051(0x1bf)](_0x28aa88=>{const _0x503de2=_0x396051,_0x2aa132=_0x28aa88[_0x503de2(0x174)](),_0x28c133=this['_entities'][_0x503de2(0x1b5)](_0x2aa132);_0x28c133==null||_0x28c133[_0x503de2(0x177)]();});}async[_0x221811(0x17b)](_0x1586f5){const _0x21f7ba=_0x221811,_0xf8791d=await this['_collabSessionService']['requireSession'](_0x1586f5),_0x265bff=this['_injector']['createInstance'](N,_0x1586f5,_0xf8791d);return _0x265bff[_0x21f7ba(0x199)](),this[_0x21f7ba(0x1be)][_0x21f7ba(0x152)](_0x1586f5,_0x265bff),_0x265bff;}};function _0x1745(){const _0x59f379=['asObservable','180940pjanDM','delete','getTypeOfUnitAdded$','OFFLINE','mutations','_handleTerminate','symbol','Start\x20following','1em','startFollowing','unsubscribe','clear','unitId','_commandService','univer-size-4','447734GbjpvL','stringify','includes','_unitID','status$','16XTUvtF','_stopFollowing','live-share.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','forEach','_handleOffline','UNIVER_UNKNOWN','defineProperty','map','toString','FOLLOWING','substring','children','dispose$','values','following','defs','stopPresenting','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','_init','105YpEDMh','NEW_CHANGESETS','send','2099199niqjAe','registerComponent','set','path','presenter','presenting','getOwnPropertyDescriptor','_configService','attrs','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','memberID','getLiveShareCoordinator','_config','has','1474626oNDPyu','_liveShareService','parse','offline','disposeWithMe','sessionStatus$','16891970YTWKVJ','url(#$1','idSuffix','sheet','trim','_stopPresenting','getStatus','OPERATION','pipe','button','operations','LIVESHARE_TERMINATE','_commandDisposable','fill','text','getUnitId','assign','ONLINE','dispose','none','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','_startLiveShareCoordinator','colorChannel1','1110132JRRPZH','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','then','find','data','current','http://www.w3.org/2000/svg','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','2277100BSyuDF','_status$','getValue','Stop\x20following','next','_fetchOperations','registerInitialStateReporter','tag','mask','LiveShareIcon','_injector','string','_collabSessionService','_univerInstanceService','length','complete','setConfig','getConfig','init','_beIdle','params','_presenter','_status','not-following','replace','getLiveShareCoordinatorSync','IDLE','_startFollowing','UNIVER_SHEET','HEADER_MENU','displayName','pluginName','shouldShareOperation','reverse','add','executeCommand','entries','LIVESHARE_NEW_HOST','currentColor','PRESENTING','_handleOperation','0\x200\x2017\x2017','evenodd','idle','xlink:href','4seKHVT','get','You\x27re\x20following\x20the\x20presenter','onStarting','LIVESHARE_REQUEST_HOST','_reporters','univerjs-icon\x20univerjs-icon-','getMemberID','registerSharedOperation','Present\x20this\x20document','_entities','subscribe','_uiPartsService','_collabSession','_handleOnline','Start','NOT_FOLLOWING','end','random','_handleNewHost','_sharedOperations','_startPresenting','default','div','use','_handleNewChangeSets','from'];_0x1745=function(){return _0x59f379;};return _0x1745();}S=Y([_(0x0,_0x34a265),_(0x1,_0x3b972f(_0x1e206d)),_(0x2,_0x3b972f(_0x1839d1))],S);var c=(_0x4faa0d=>(_0x4faa0d[_0x221811(0x128)]=_0x221811(0x162),_0x4faa0d[_0x221811(0x1a1)]=_0x221811(0x1b2),_0x4faa0d[_0x221811(0x143)]=_0x221811(0x148),_0x4faa0d['NOT_FOLLOWING']=_0x221811(0x19e),_0x4faa0d[_0x221811(0x1ae)]=_0x221811(0x155),_0x4faa0d))(c||{});const Ce=_0x221811(0x159),De=0xc8;let N=class extends _0x317033{constructor(_0x4c19f4,_0x31c774,_0x23e67d,_0x2e7fb6,_0xfd22e8){const _0x146a8e=_0x221811;super(),u(this,_0x146a8e(0x188),new _0x9a32b4('idle')),u(this,'status$',this[_0x146a8e(0x188)][_0x146a8e(0x124)]()),u(this,'_init',!0x1),u(this,_0x146a8e(0x171),null),u(this,'_presenter',null),(this[_0x146a8e(0x137)]=_0x4c19f4,this['_collabSession']=_0x31c774,this[_0x146a8e(0x157)]=_0x23e67d,this[_0x146a8e(0x160)]=_0x2e7fb6,this[_0x146a8e(0x132)]=_0xfd22e8);}get[_0x221811(0x19d)](){const _0x51f3e1=_0x221811;return this['_status$'][_0x51f3e1(0x189)]();}[_0x221811(0x177)](){const _0x22fc4a=_0x221811;var _0x27df7a;(_0x27df7a=this[_0x22fc4a(0x171)])==null||_0x27df7a[_0x22fc4a(0x177)](),this[_0x22fc4a(0x188)][_0x22fc4a(0x18b)](_0x22fc4a(0x1b2)),this[_0x22fc4a(0x188)][_0x22fc4a(0x196)]();}[_0x221811(0x16b)](){const _0x1da97c=_0x221811;return this[_0x1da97c(0x19d)];}['init'](){const _0x5e119f=_0x221811;this[_0x5e119f(0x14c)]||(this[_0x5e119f(0x14c)]=!0x0,this['_collabSession'][_0x5e119f(0x164)][_0x5e119f(0x16d)](_0x3d7e87(this['dispose$']))['subscribe'](_0xc6020a=>{const _0x370db1=_0x5e119f;switch(_0xc6020a){case _0x3fee76[_0x370db1(0x128)]:this[_0x370db1(0x13e)]();break;case _0x3fee76[_0x370db1(0x176)]:this[_0x370db1(0x1c2)]();break;}}),this[_0x5e119f(0x1c1)]['event$'][_0x5e119f(0x16d)](_0x3d7e87(this[_0x5e119f(0x146)]))[_0x5e119f(0x1bf)](_0x240184=>{const _0x1ecede=_0x5e119f,{eventID:_0x5746fc}=_0x240184;switch(_0x5746fc){case _0x3ec99e[_0x1ecede(0x1ac)]:this[_0x1ecede(0x1c7)](_0x240184);break;case _0x3ec99e['LIVESHARE_OPERATION']:this['_handleOperation'](_0x240184);break;case _0x3ec99e[_0x1ecede(0x170)]:this[_0x1ecede(0x12a)]();break;case _0x3ec99e[_0x1ecede(0x14e)]:this[_0x1ecede(0x1cd)](_0x240184);break;}}));}['tryStartPresenting'](){const _0x365163=_0x221811;this[_0x365163(0x1c1)][_0x365163(0x14f)]({'eventID':_0x3ec99e[_0x365163(0x1b8)],'data':{'unitID':this[_0x365163(0x137)],'userID':this[_0x365163(0x1c1)][_0x365163(0x1bb)]()}},this[_0x365163(0x137)]);}[_0x221811(0x14a)](){const _0x186731=_0x221811;this[_0x186731(0x19d)]==='presenting'&&(this[_0x186731(0x188)][_0x186731(0x18b)](_0x186731(0x1b2)),this[_0x186731(0x1c1)][_0x186731(0x14f)]({'eventID':_0x3ec99e[_0x186731(0x170)],'data':{'unitID':this[_0x186731(0x137)]}},this[_0x186731(0x137)]));}[_0x221811(0x12e)](){const _0x59c1c6=_0x221811;this[_0x59c1c6(0x19d)]===_0x59c1c6(0x19e)&&(this['_status$']['next']('following'),this[_0x59c1c6(0x1a2)]());}[_0x221811(0x17f)](){const _0x3c87d7=_0x221811;this[_0x3c87d7(0x19d)]===_0x3c87d7(0x148)&&this[_0x3c87d7(0x13a)]();}[_0x221811(0x1c7)](_0x38774b){const _0x26147e=_0x221811,{presenter:_0x568de2}=_0x38774b[_0x26147e(0x182)],_0x1ee82b=this[_0x26147e(0x1c1)][_0x26147e(0x1bb)]();this[_0x26147e(0x19c)]=_0x568de2,_0x568de2===_0x1ee82b?(this[_0x26147e(0x13a)](),this[_0x26147e(0x1c9)]()):this[_0x26147e(0x19d)]!==_0x26147e(0x19e)&&(this[_0x26147e(0x16a)](),this['_startFollowing']());}[_0x221811(0x18c)](){const _0x26a97f=_0x221811,_0x4371d8={'eventID':_0x3ec99e[_0x26a97f(0x17a)]};this[_0x26a97f(0x1c1)]['send'](_0x4371d8,this[_0x26a97f(0x137)]);}[_0x221811(0x12a)](){const _0x2db4c0=_0x221811;this[_0x2db4c0(0x19c)]=null,this[_0x2db4c0(0x19d)]!==_0x2db4c0(0x155)&&this[_0x2db4c0(0x19a)]();}[_0x221811(0x1cd)](_0xab9e6a){const _0x6f32d8=_0x221811;if(this[_0x6f32d8(0x19d)]===_0x6f32d8(0x148)&&this[_0x6f32d8(0x19c)]===_0xab9e6a[_0x6f32d8(0x182)][_0x6f32d8(0x15b)]){const _0x583621=_0x40eca1(_0xab9e6a[_0x6f32d8(0x182)])[_0x6f32d8(0x129)][_0x6f32d8(0x1a8)]()[_0x6f32d8(0x181)](_0xc28a72=>_0xc28a72['id']===_0x52e444['id']);if(_0x583621){const _0x57156a=_0x583621[_0x6f32d8(0x19b)][_0x6f32d8(0x131)],_0x3ce4c3=_0x583621['params'][_0x6f32d8(0x168)]['id'];setTimeout(()=>{const _0x596f4e=_0x6f32d8;this[_0x596f4e(0x132)][_0x596f4e(0x1aa)](_0x222c77['id'],{'unitId':_0x57156a,'subUnitId':_0x3ce4c3},{'fromCollab':!0x0});});}}}[_0x221811(0x1c9)](){const _0x2db157=_0x221811;this[_0x2db157(0x188)]['next']('presenting');const _0x4200fd=new Map(),_0x48d81f=this['_commandDisposable']=new _0x38a87f();_0x48d81f[_0x2db157(0x1a9)](_0x4e21f7(()=>{const _0x584e59=_0x2db157;_0x4200fd[_0x584e59(0x13d)](_0x17bf45=>_0x17bf45['complete']()),_0x4200fd[_0x584e59(0x130)]();})),_0x48d81f[_0x2db157(0x1a9)](this['_commandService'][_0x2db157(0x185)](_0x3bcb07=>{const _0x52500f=_0x2db157;var _0x48bb29;if(_0x3bcb07['type']!==_0x274666[_0x52500f(0x16c)]||!this[_0x52500f(0x160)][_0x52500f(0x1a7)](_0x3bcb07['id']))return;const {id:_0x52ddee}=_0x3bcb07;let _0x354757;_0x4200fd[_0x52500f(0x15e)](_0x52ddee)?_0x354757=_0x4200fd[_0x52500f(0x1b5)](_0x52ddee):(_0x354757=new _0x4cfb70(),_0x4200fd[_0x52500f(0x152)](_0x52ddee,_0x354757),_0x354757[_0x52500f(0x16d)](_0x1bd794((_0x48bb29=this[_0x52500f(0x157)][_0x52500f(0x198)](Ce))!=null?_0x48bb29:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x52500f(0x1bf)](_0x9f13b9=>{const _0x1e65e7=_0x52500f;this[_0x1e65e7(0x1c1)][_0x1e65e7(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x9f13b9['id']]:{'id':_0x9f13b9['id'],'params':JSON[_0x1e65e7(0x135)](_0x9f13b9['params'])}}}},this[_0x1e65e7(0x137)]);})),_0x354757['next'](_0x3bcb07);})),this[_0x2db157(0x160)]['getInitialStates'](this[_0x2db157(0x137)])['forEach'](_0x492c05=>this[_0x2db157(0x1c1)][_0x2db157(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2db157(0x137)],'operations':{[_0x492c05['id']]:{'id':_0x492c05['id'],'params':JSON[_0x2db157(0x135)](_0x492c05['params'])}}}},this['_unitID']));}[_0x221811(0x16a)](){const _0x58f706=_0x221811;var _0x28dca8;this[_0x58f706(0x188)][_0x58f706(0x18b)](_0x58f706(0x1b2)),(_0x28dca8=this[_0x58f706(0x171)])==null||_0x28dca8[_0x58f706(0x177)](),this[_0x58f706(0x171)]=null;}['_startFollowing'](){const _0x3f181e=_0x221811;var _0x4a3511;(_0x4a3511=this[_0x3f181e(0x171)])==null||_0x4a3511['dispose'](),this[_0x3f181e(0x188)]['next']('following');}['_beIdle'](){const _0x3b987a=_0x221811;var _0x529286;this[_0x3b987a(0x188)][_0x3b987a(0x18b)](_0x3b987a(0x1b2)),(_0x529286=this['_commandDisposable'])==null||_0x529286['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xa80023=_0x221811;var _0x3265b9;this[_0xa80023(0x188)][_0xa80023(0x18b)](_0xa80023(0x19e)),(_0x3265b9=this[_0xa80023(0x171)])==null||_0x3265b9[_0xa80023(0x177)]();}[_0x221811(0x1af)](_0x2ef283){const _0x4ca27f=_0x221811;if([_0x4ca27f(0x155),_0x4ca27f(0x19e),_0x4ca27f(0x162)][_0x4ca27f(0x136)](this['_status'])||!_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]||_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]===this[_0x4ca27f(0x1c1)][_0x4ca27f(0x1bb)]())return;this[_0x4ca27f(0x19d)]===_0x4ca27f(0x1b2)&&this['_startFollowing']();const _0xaa10b1=_0x2ef283['data'][_0x4ca27f(0x16f)];Object[_0x4ca27f(0x147)](_0xaa10b1)[_0x4ca27f(0x13d)](_0x2d211e=>{const _0x4ba9d0=_0x4ca27f;this[_0x4ba9d0(0x132)][_0x4ba9d0(0x1aa)](_0x2d211e['id'],_0x2d211e['params']?JSON[_0x4ba9d0(0x161)](_0x2d211e[_0x4ba9d0(0x19b)]):null,{'fromCollab':!0x0});});}[_0x221811(0x13e)](){const _0x36d796=_0x221811;var _0x523e3f;this['_status$'][_0x36d796(0x18b)](_0x36d796(0x162)),(_0x523e3f=this[_0x36d796(0x171)])==null||_0x523e3f['dispose']();}[_0x221811(0x1c2)](){const _0x535ff5=_0x221811;this[_0x535ff5(0x188)][_0x535ff5(0x18b)]('idle'),this[_0x535ff5(0x18c)]();}};N=Y([_(0x2,_0x3c082e),_(0x3,_0x3b972f(L)),_(0x4,_0x2a3810)],N);function Le(){const _0x43a402=_0x221811,_0x26e912=_0x3ba771(S),_0x4dce2a=_0x3ba771(_0x34a265),_0x43f15e=_0x382b15(()=>_0x4dce2a['getCurrentTypeOfUnit$'](_0x4fecd8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1a9aed,_0x1d620a]=_0x20fc4e(null),[_0x1d9dc8,_0xf37569]=_0x20fc4e(c[_0x43a402(0x1a1)]),_0x8fea30=_0x3dea31(null);return _0x300d05(()=>(_0x43f15e&&_0x26e912[_0x43a402(0x15c)](_0x43f15e[_0x43a402(0x174)]())[_0x43a402(0x180)](_0x4eba86=>{const _0x50b8d6=_0x43a402;_0x1d620a(_0x4eba86),_0x8fea30[_0x50b8d6(0x183)]=_0x4eba86[_0x50b8d6(0x138)][_0x50b8d6(0x1bf)](_0x434bf9=>{_0xf37569(_0x434bf9);});}),()=>{const _0x358f3e=_0x43a402;var _0x5b15db;(_0x5b15db=_0x8fea30['current'])==null||_0x5b15db[_0x358f3e(0x12f)](),_0x8fea30[_0x358f3e(0x183)]=null;}),[_0x43f15e,_0x26e912]),_0x1a9aed?_0x394112(_0x195faf,{'align':_0x43a402(0x1c5),'disabled':_0x1d9dc8===c[_0x43a402(0x128)],'className':_0x43a402(0x14b),'overlay':_0x394112(Re,{'status':_0x1d9dc8,'coordinator':_0x1a9aed}),'children':_0x394112(_0x43a402(0x16e),{'className':_0x4a0fdb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1d9dc8===c[_0x43a402(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d9dc8!==c[_0x43a402(0x128)]}),'type':'button','children':_0x394112(W,{'className':_0x43a402(0x133)})})}):null;}function Re(_0x379975){const _0x501bf6=_0x221811,{status:_0xf6a4ed,coordinator:_0x4f14d6}=_0x379975;switch(_0xf6a4ed){case c[_0x501bf6(0x1a1)]:return _0x394112($e,{'coordinator':_0x4f14d6});case c['FOLLOWING']:return _0x394112(xe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x1c4)]:return _0x394112(Pe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x128)]:return _0x394112(Te,{});case c['PRESENTING']:return _0x394112(Ae,{'coordinator':_0x4f14d6});default:return null;}}function $e(_0x575fa9){const _0x11beaa=_0x221811,{coordinator:_0x5b9bcf}=_0x575fa9;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x11beaa(0x1cb),{'className':_0x11beaa(0x17e),'children':_0x11beaa(0x1bd)}),_0x394112(_0x4da62a,{'onClick':()=>_0x5b9bcf['tryStartPresenting'](),'children':_0x11beaa(0x1c3)})]});}function xe(_0x36f248){const _0x28450b=_0x221811,{coordinator:_0xdf4b47}=_0x36f248;return _0x35a790(_0xf1c7f5,{'children':[_0x394112('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28450b(0x1b6)}),_0x394112(_0x4da62a,{'onClick':()=>_0xdf4b47['stopFollowing'](),'children':_0x28450b(0x18a)})]});}function Pe(_0x57f701){const _0x8b5e25=_0x221811,{coordinator:_0x1762af}=_0x57f701;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x8b5e25(0x1cb),{'className':_0x8b5e25(0x17e),'children':_0x8b5e25(0x186)}),_0x394112(_0x4da62a,{'variant':_0x8b5e25(0x173),'onClick':()=>_0x1762af[_0x8b5e25(0x12e)](),'children':_0x8b5e25(0x12c)})]});}function Ae(_0x40a8aa){const _0x294155=_0x221811,{coordinator:_0x3b2972}=_0x40a8aa;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x294155(0x1cb),{'className':_0x294155(0x17e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x394112(_0x4da62a,{'variant':_0x294155(0x1ca),'onClick':()=>_0x3b2972['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x394112(_0xf1c7f5,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x35fae4,_0x3f93b4,_0x195de5,_0x11e290)=>{for(var _0x4de847=_0x11e290>0x1?void 0x0:_0x11e290?Fe(_0x3f93b4,_0x195de5):_0x3f93b4,_0x74d76b=_0x35fae4['length']-0x1,_0x4838c4;_0x74d76b>=0x0;_0x74d76b--)(_0x4838c4=_0x35fae4[_0x74d76b])&&(_0x4de847=_0x4838c4(_0x4de847)||_0x4de847);return _0x4de847;},A=(_0x52f16e,_0x553295)=>(_0x213c39,_0x1ab16b)=>_0x553295(_0x213c39,_0x1ab16b,_0x52f16e);let m=class extends _0x5584fb{constructor(_0x28f257,_0x4c0e58){const _0x4f80ab=_0x221811;super(),this[_0x4f80ab(0x191)]=_0x28f257,this['_uiPartsService']=_0x4c0e58,this[_0x4f80ab(0x15a)]();}[_0x221811(0x15a)](){const _0x287327=_0x221811;this[_0x287327(0x163)](this[_0x287327(0x1c0)][_0x287327(0x151)](_0x39e9b0[_0x287327(0x1a4)],()=>_0x19746f(Le,this['_injector'])));}};m=He([A(0x0,_0x3b972f(_0x1e206d)),A(0x1,_0x2df529)],m);const ye=_0x221811(0x13b),T={};var Ue=Object[_0x221811(0x156)],Ve=(_0x53c3a8,_0x36fd72,_0x5468a2,_0x34abac)=>{const _0x1fab97=_0x221811;for(var _0x32abaf=_0x34abac>0x1?void 0x0:_0x34abac?Ue(_0x36fd72,_0x5468a2):_0x36fd72,_0x1f375e=_0x53c3a8[_0x1fab97(0x195)]-0x1,_0x360244;_0x1f375e>=0x0;_0x1f375e--)(_0x360244=_0x53c3a8[_0x1f375e])&&(_0x32abaf=_0x360244(_0x32abaf)||_0x32abaf);return _0x32abaf;},je=(_0x45d15b,_0x5c189b)=>(_0x498899,_0x28088e)=>_0x5c189b(_0x498899,_0x28088e,_0x45d15b);let I=class extends _0x5584fb{constructor(_0xa67071){const _0x102e26=_0x221811;super(),this['_liveShareService']=_0xa67071,this[_0x102e26(0x14c)]();}[_0x221811(0x14c)](){[_0x3a61b7['id'],_0x1e8464['id'],_0x222c77['id']]['forEach'](_0x304360=>{const _0x4c14f1=_0x2e9a;this[_0x4c14f1(0x163)](this[_0x4c14f1(0x160)][_0x4c14f1(0x1bc)](_0x304360));});}};I=Ve([je(0x0,_0x3b972f(L))],I);var Me=Object[_0x221811(0x140)],ke=Object[_0x221811(0x156)],Ge=(_0x1699ed,_0x307fac,_0x32daaf)=>_0x307fac in _0x1699ed?Me(_0x1699ed,_0x307fac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32daaf}):_0x1699ed[_0x307fac]=_0x32daaf,We=(_0x544d81,_0x5843cb,_0x32db75,_0x35fed6)=>{const _0x3a252f=_0x221811;for(var _0x1377e5=_0x35fed6>0x1?void 0x0:_0x35fed6?ke(_0x5843cb,_0x32db75):_0x5843cb,_0x44480b=_0x544d81[_0x3a252f(0x195)]-0x1,_0x380dfc;_0x44480b>=0x0;_0x44480b--)(_0x380dfc=_0x544d81[_0x44480b])&&(_0x1377e5=_0x380dfc(_0x1377e5)||_0x1377e5);return _0x1377e5;},F=(_0x2c9782,_0x36fd95)=>(_0x427cb3,_0x344910)=>_0x36fd95(_0x427cb3,_0x344910,_0x2c9782),B=(_0x4bcd0e,_0x295c7f,_0x51efd5)=>Ge(_0x4bcd0e,typeof _0x295c7f!=_0x221811(0x12b)?_0x295c7f+'':_0x295c7f,_0x51efd5);const Ye=_0x221811(0x179);let b=class extends _0x54e800{constructor(_0x4965c7=T,_0x569af8,_0x2f65de){const _0x24a8a9=_0x221811;super(),this['_config']=_0x4965c7,this[_0x24a8a9(0x191)]=_0x569af8,this[_0x24a8a9(0x157)]=_0x2f65de;const {..._0x3d493f}=_0x47f8b3({},T,this[_0x24a8a9(0x15d)]);this['_configService'][_0x24a8a9(0x197)](ye,_0x3d493f);}[_0x221811(0x1b7)](){const _0x5f01fe=_0x221811;_0x38128c(this['_injector'],_0x28e201([[L],[S],[I],[m]],this[_0x5f01fe(0x15d)]['override'])),_0x441580(this[_0x5f01fe(0x191)],[[I]]);}['onRendered'](){const _0x4ac341=_0x221811;_0x441580(this[_0x4ac341(0x191)],[[m]]);}};B(b,'type',_0x4fecd8[_0x221811(0x13f)]),B(b,_0x221811(0x1a6),Ye),b=We([_0x4ef44e(_0x121829),F(0x1,_0x3b972f(_0x1e206d)),F(0x2,_0x3c082e)],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 _0x11b6eb=_0x54c5;(function(_0x418aa4,_0x46e2f9){const _0x3f6b1c=_0x54c5,_0x4edc84=_0x418aa4();while(!![]){try{const _0xeaee8d=parseInt(_0x3f6b1c(0x1d0))/0x1*(-parseInt(_0x3f6b1c(0x257))/0x2)+-parseInt(_0x3f6b1c(0x273))/0x3*(parseInt(_0x3f6b1c(0x207))/0x4)+parseInt(_0x3f6b1c(0x1d7))/0x5+parseInt(_0x3f6b1c(0x1ff))/0x6+parseInt(_0x3f6b1c(0x1fc))/0x7*(-parseInt(_0x3f6b1c(0x208))/0x8)+parseInt(_0x3f6b1c(0x21b))/0x9+parseInt(_0x3f6b1c(0x216))/0xa;if(_0xeaee8d===_0x46e2f9)break;else _0x4edc84['push'](_0x4edc84['shift']());}catch(_0x5ac5b5){_0x4edc84['push'](_0x4edc84['shift']());}}}(_0x1e4f,0x35a99));var J=Object[_0x11b6eb(0x262)],K=(_0x288cae,_0xf92ce1,_0x372a6b)=>_0xf92ce1 in _0x288cae?J(_0x288cae,_0xf92ce1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x372a6b}):_0x288cae[_0xf92ce1]=_0x372a6b,u=(_0x3f82ad,_0x1ae34f,_0x4aa1a0)=>K(_0x3f82ad,typeof _0x1ae34f!=_0x11b6eb(0x260)?_0x1ae34f+'':_0x1ae34f,_0x4aa1a0);import{Disposable as _0x1488b8,toDisposable as _0xc8298e,IUniverInstanceService as _0x41e0ae,Inject as _0x34997e,Injector as _0x172459,IConfigService as _0x586d2f,ICommandService as _0x43fef4,RxDisposable as _0x2a59c6,UniverInstanceType as _0x30dc91,DisposableCollection as _0x537ad0,CommandType as _0xf4e9d3,DependentOn as _0x1db9f3,Plugin as _0x4e2557,merge as _0x6531d9,registerDependencies as _0x5507b0,mergeOverrideWithDependencies as _0x350506,touchDependencies as _0x6327c4}from'@univerjs/core';import{useDependency as _0x138bea,useObservable as _0x5a2037,IUIPartsService as _0x274200,BuiltInUIPart as _0xe162dd,connectInjector as _0x437101}from'@univerjs/ui';import{jsx as _0x4d2be6,jsxs as _0x57c5c7,Fragment as _0xa0c774}from'react/jsx-runtime';import{Dropdown as _0xef8b71,clsx as _0x1b48c8,Button as _0x23cb3d}from'@univerjs/design';import{useRef as _0x2f0507,createElement as _0x4693a1,forwardRef as _0x2916ff,useState as _0x2af4b9,useEffect as _0x22d44a}from'react';import{CollaborationEvent as _0x22cfb1,parseProtocolChangeset as _0xcb2e04}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3926f7,SessionStatus as _0x442896,UniverCollaborationClientPlugin as _0x12ac27}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x49fa8f,SetWorksheetActiveOperation as _0x4b8267}from'@univerjs/sheets';import{BehaviorSubject as _0xdd1c4e,Subject as _0x1059fe}from'rxjs';import{takeUntil as _0x2d117c,throttleTime as _0x274690}from'rxjs/operators';import{SetZoomRatioOperation as _0x3a77e6,SetScrollOperation as _0x5e3f90}from'@univerjs/sheets-ui';function k({ref:_0x15ba60,..._0xcd5b24}){const _0x3f8236=_0x11b6eb,{icon:_0x39986c,id:_0x5337b6,className:_0x55ed26,extend:_0x229d37,..._0x593f1f}=_0xcd5b24,_0x11ffa4=(_0x3f8236(0x1d9)+_0x5337b6+'\x20'+(_0x55ed26||''))['trim'](),_0x3aed19=_0x2f0507('_'+Oe());return G(_0x39986c,''+_0x5337b6,{'defIds':_0x39986c['defIds'],'idSuffix':_0x3aed19[_0x3f8236(0x26f)]},{'ref':_0x15ba60,'className':_0x11ffa4,..._0x593f1f},_0x229d37);}function G(_0x136669,_0x5bc0d8,_0x286476,_0x41ac78,_0x844976){const _0x10e63f=_0x11b6eb;return _0x4693a1(_0x136669[_0x10e63f(0x23e)],{'key':_0x5bc0d8,...be(_0x136669,_0x286476,_0x844976),..._0x41ac78},(Ee(_0x136669,_0x286476)[_0x10e63f(0x22d)]||[])['map']((_0x293970,_0x151a35)=>G(_0x293970,_0x5bc0d8+'-'+_0x136669[_0x10e63f(0x23e)]+'-'+_0x151a35,_0x286476,void 0x0,_0x844976)));}function be(_0x536bd9,_0x128553,_0x2c7863){const _0x936f9=_0x11b6eb,_0x44b459={..._0x536bd9[_0x936f9(0x271)]};_0x2c7863!=null&&_0x2c7863[_0x936f9(0x211)]&&_0x44b459[_0x936f9(0x225)]===_0x936f9(0x211)&&(_0x44b459[_0x936f9(0x225)]=_0x2c7863['colorChannel1']),_0x536bd9['tag']==='mask'&&_0x44b459['id']&&(_0x44b459['id']=_0x44b459['id']+_0x128553['idSuffix']),Object[_0x936f9(0x227)](_0x44b459)['forEach'](([_0x47cdc9,_0x428db4])=>{const _0x32ac60=_0x936f9;_0x47cdc9==='mask'&&typeof _0x428db4=='string'&&(_0x44b459[_0x47cdc9]=_0x428db4[_0x32ac60(0x248)](/url\(#(.*)\)/,_0x32ac60(0x21d)+_0x128553[_0x32ac60(0x23c)]+')'));});const {defIds:_0x3c88cf}=_0x128553;return!_0x3c88cf||_0x3c88cf[_0x936f9(0x209)]===0x0||(_0x536bd9['tag']===_0x936f9(0x1f2)&&_0x44b459[_0x936f9(0x1ed)]&&(_0x44b459[_0x936f9(0x1ed)]=_0x44b459[_0x936f9(0x1ed)]+_0x128553[_0x936f9(0x23c)]),Object['entries'](_0x44b459)[_0x936f9(0x25e)](([_0x3826a4,_0x5e48a3])=>{const _0x158286=_0x936f9;typeof _0x5e48a3==_0x158286(0x20c)&&(_0x44b459[_0x3826a4]=_0x5e48a3[_0x158286(0x248)](/url\(#(.*)\)/,_0x158286(0x21d)+_0x128553[_0x158286(0x23c)]+')'));})),_0x44b459;}function Ee(_0x4b2588,_0x5c2cdf){const _0xd16ff0=_0x11b6eb;var _0xf4889a;const {defIds:_0x279f00}=_0x5c2cdf;return!_0x279f00||_0x279f00[_0xd16ff0(0x209)]===0x0?_0x4b2588:_0x4b2588[_0xd16ff0(0x23e)]===_0xd16ff0(0x1e4)&&((_0xf4889a=_0x4b2588[_0xd16ff0(0x22d)])!=null&&_0xf4889a[_0xd16ff0(0x209)])?{..._0x4b2588,'children':_0x4b2588[_0xd16ff0(0x22d)][_0xd16ff0(0x1d5)](_0x392b65=>typeof _0x392b65[_0xd16ff0(0x271)]['id']==_0xd16ff0(0x20c)&&_0x279f00&&_0x279f00['includes'](_0x392b65['attrs']['id'])?{..._0x392b65,'attrs':{..._0x392b65[_0xd16ff0(0x271)],'id':_0x392b65['attrs']['id']+_0x5c2cdf[_0xd16ff0(0x23c)]}}:_0x392b65)}:_0x4b2588;}function Oe(){const _0x15f411=_0x11b6eb;return Math['random']()[_0x15f411(0x251)](0x24)[_0x15f411(0x246)](0x2,0x8);}k[_0x11b6eb(0x21e)]=_0x11b6eb(0x1eb);const we={'tag':_0x11b6eb(0x252),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x11b6eb(0x1cd),'viewBox':_0x11b6eb(0x1ee),'width':_0x11b6eb(0x1ec),'height':_0x11b6eb(0x1ec)},'children':[{'tag':_0x11b6eb(0x272),'attrs':{'fill':_0x11b6eb(0x244),'d':_0x11b6eb(0x25b)}},{'tag':'path','attrs':{'fill':_0x11b6eb(0x244),'d':_0x11b6eb(0x223),'fillRule':'evenodd','clipRule':_0x11b6eb(0x1e5)}}]},W=_0x2916ff(function(_0x31f0eb,_0x114be7){const _0x6b71c6=_0x11b6eb;return _0x4693a1(k,Object[_0x6b71c6(0x275)]({},_0x31f0eb,{'id':_0x6b71c6(0x203),'ref':_0x114be7,'icon':we}));});W[_0x11b6eb(0x21e)]=_0x11b6eb(0x210);class L extends _0x1488b8{constructor(){const _0x187bea=_0x11b6eb;super(...arguments),u(this,_0x187bea(0x23d),new Set()),u(this,_0x187bea(0x229),new Set());}[_0x11b6eb(0x23f)](_0x158060){const _0x37a3b6=_0x11b6eb;return this['_sharedOperations'][_0x37a3b6(0x24c)](_0x158060),_0xc8298e(()=>this['_sharedOperations'][_0x37a3b6(0x218)](_0x158060));}[_0x11b6eb(0x240)](_0x40f42f){const _0x21980b=_0x11b6eb;return this['_reporters'][_0x21980b(0x24c)](_0x40f42f),_0xc8298e(()=>this[_0x21980b(0x229)][_0x21980b(0x218)](_0x40f42f));}['shouldShareOperation'](_0x52b18f){const _0x5a10ce=_0x11b6eb;return this['_sharedOperations'][_0x5a10ce(0x1d6)](_0x52b18f);}[_0x11b6eb(0x245)](_0xf39133){const _0x5f47e4=_0x11b6eb;return Array['from'](this[_0x5f47e4(0x229)])['map'](_0x4f7263=>_0x4f7263(_0xf39133));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x1d211f,_0x53137e,_0x55eb84,_0xa88252)=>{for(var _0x2fca2e=_0xa88252>0x1?void 0x0:_0xa88252?Ne(_0x53137e,_0x55eb84):_0x53137e,_0x189193=_0x1d211f['length']-0x1,_0x4c40b9;_0x189193>=0x0;_0x189193--)(_0x4c40b9=_0x1d211f[_0x189193])&&(_0x2fca2e=_0x4c40b9(_0x2fca2e)||_0x2fca2e);return _0x2fca2e;},_=(_0x15797f,_0x272207)=>(_0x3350f6,_0x91ac93)=>_0x272207(_0x3350f6,_0x91ac93,_0x15797f);let S=class extends _0x2a59c6{constructor(_0x5e6954,_0x255fd4,_0x5aa4ac){const _0x5bd724=_0x11b6eb;super(),u(this,_0x5bd724(0x242),new Map()),(this['_univerInstanceService']=_0x5e6954,this[_0x5bd724(0x26b)]=_0x255fd4,this[_0x5bd724(0x1f8)]=_0x5aa4ac,this['_init']());}async[_0x11b6eb(0x205)](_0x53bb06){const _0x36ee54=_0x11b6eb;return this['_entities'][_0x36ee54(0x1d6)](_0x53bb06)||await this['_startLiveShareCoordinator'](_0x53bb06),this[_0x36ee54(0x242)]['get'](_0x53bb06);}[_0x11b6eb(0x267)](_0x1759c4){const _0x2b7a3b=_0x11b6eb;var _0x2a7b48;return(_0x2a7b48=this['_entities'][_0x2b7a3b(0x270)](_0x1759c4))!=null?_0x2a7b48:null;}[_0x11b6eb(0x1dc)](){const _0x29d409=_0x11b6eb;this[_0x29d409(0x206)]['getTypeOfUnitAdded$'](_0x30dc91['UNIVER_SHEET'])['pipe'](_0x2d117c(this[_0x29d409(0x1f4)]))['subscribe'](async _0x1b26aa=>{const _0x520262=_0x29d409,_0xd0e9af=_0x1b26aa[_0x520262(0x1f9)]();this[_0x520262(0x242)][_0x520262(0x1d6)](_0xd0e9af)||this['_startLiveShareCoordinator'](_0xd0e9af);}),this[_0x29d409(0x206)][_0x29d409(0x231)](_0x30dc91[_0x29d409(0x24f)])['pipe'](_0x2d117c(this[_0x29d409(0x1f4)]))[_0x29d409(0x204)](_0x57738d=>{const _0x1a8037=_0x29d409,_0x4f3d71=_0x57738d['getUnitId'](),_0x50d797=this['_entities'][_0x1a8037(0x270)](_0x4f3d71);_0x50d797==null||_0x50d797['dispose']();});}async[_0x11b6eb(0x21c)](_0x12bd1e){const _0x27fe9c=_0x11b6eb,_0x5b541b=await this[_0x27fe9c(0x1f8)][_0x27fe9c(0x1e1)](_0x12bd1e),_0x28e7a5=this[_0x27fe9c(0x26b)][_0x27fe9c(0x202)](N,_0x12bd1e,_0x5b541b);return _0x28e7a5[_0x27fe9c(0x1dd)](),this[_0x27fe9c(0x242)][_0x27fe9c(0x26e)](_0x12bd1e,_0x28e7a5),_0x28e7a5;}};S=Y([_(0x0,_0x41e0ae),_(0x1,_0x34997e(_0x172459)),_(0x2,_0x34997e(_0x3926f7))],S);var c=(_0x26ecd0=>(_0x26ecd0[_0x11b6eb(0x247)]=_0x11b6eb(0x263),_0x26ecd0[_0x11b6eb(0x21f)]=_0x11b6eb(0x261),_0x26ecd0['FOLLOWING']=_0x11b6eb(0x228),_0x26ecd0[_0x11b6eb(0x237)]='not-following',_0x26ecd0[_0x11b6eb(0x26d)]=_0x11b6eb(0x1cf),_0x26ecd0))(c||{});function _0x1e4f(){const _0x14a054=['_config','asObservable','7336910zpOGuR','NEW_CHANGESETS','delete','_fetchOperations','LIVESHARE_OPERATION','559638FPbKuN','_startLiveShareCoordinator','url(#$1','displayName','IDLE','Stop\x20following','_collabSession','find','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','_handleTerminate','fill','then','entries','following','_reporters','pipe','_beIdle','dispose','children','event$','params','_mountLiveShare','getTypeOfUnitDisposed$','_status$','unitId','div','disposeWithMe','getMemberID','NOT_FOLLOWING','_stopFollowing','operations','_unitID','type','idSuffix','_sharedOperations','tag','registerSharedOperation','registerInitialStateReporter','data','_entities','live-share.config','currentColor','getInitialStates','substring','OFFLINE','replace','complete','You\x27are\x20offline.','stopFollowing','add','_stopPresenting','LIVESHARE_NEW_HOST','UNIVER_SHEET','_startPresenting','toString','svg','univer-size-4','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','includes','32698UFThGU','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_REQUEST_HOST','_startFollowing','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','pluginName','presenter','forEach','Start','symbol','idle','defineProperty','offline','stopPresenting','end','getStatus','getLiveShareCoordinatorSync','startFollowing','sessionStatus$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_injector','onCommandExecuted','PRESENTING','set','current','get','attrs','path','178371BQyFUy','stringify','assign','memberID','ONLINE','clear','registerComponent','none','_configService','presenting','25hUFxgX','button','getOwnPropertyDescriptor','getConfig','SAME_OPERATION_SHARE_INTERVAL','map','has','258075yynvPG','_uiPartsService','univerjs-icon\x20univerjs-icon-','not-following','parse','_init','init','_status','LIVESHARE_FETCH_OPERATIONS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','requireSession','executeCommand','_handleNewChangeSets','defs','evenodd','unsubscribe','_commandService','sheet','FOLLOWING','reverse','UniverIcon','1em','xlink:href','0\x200\x2017\x2017','_commandDisposable','onStarting','_liveShareService','use','default','dispose$','_handleOperation','send','tryStartPresenting','_collabSessionService','getUnitId','getCurrentTypeOfUnit$','univer-mb-3\x20univer-w-full\x20univer-text-sm','14GSxefv','status$','_handleNewHost','2267178CdIcsq','mutations','next','createInstance','live-share-icon','subscribe','getLiveShareCoordinator','_univerInstanceService','12jlXabr','1673816TcqAcD','length','UNIVER_UNKNOWN','Present\x20this\x20document','string','Stop\x20presenting','OPERATION','override','LiveShareIcon','colorChannel1','shouldShareOperation','LIVESHARE_TERMINATE'];_0x1e4f=function(){return _0x14a054;};return _0x1e4f();}const Ce=_0x11b6eb(0x1d4),De=0xc8;let N=class extends _0x2a59c6{constructor(_0x3df8e1,_0x5c69c2,_0x3a4a59,_0x4ff255,_0x4f8c0a){const _0x4a1d13=_0x11b6eb;super(),u(this,_0x4a1d13(0x232),new _0xdd1c4e(_0x4a1d13(0x261))),u(this,_0x4a1d13(0x1fd),this['_status$'][_0x4a1d13(0x215)]()),u(this,_0x4a1d13(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x4a1d13(0x254),null),(this[_0x4a1d13(0x23a)]=_0x3df8e1,this[_0x4a1d13(0x221)]=_0x5c69c2,this[_0x4a1d13(0x1ce)]=_0x3a4a59,this[_0x4a1d13(0x1f1)]=_0x4ff255,this[_0x4a1d13(0x1e7)]=_0x4f8c0a);}get[_0x11b6eb(0x1de)](){const _0x29ad33=_0x11b6eb;return this[_0x29ad33(0x232)]['getValue']();}['dispose'](){const _0x35ddfc=_0x11b6eb;var _0x16a093;(_0x16a093=this[_0x35ddfc(0x1ef)])==null||_0x16a093[_0x35ddfc(0x22c)](),this[_0x35ddfc(0x232)][_0x35ddfc(0x201)](_0x35ddfc(0x261)),this[_0x35ddfc(0x232)][_0x35ddfc(0x249)]();}[_0x11b6eb(0x266)](){const _0x44c87d=_0x11b6eb;return this[_0x44c87d(0x1de)];}[_0x11b6eb(0x1dd)](){const _0x368a34=_0x11b6eb;this['_init']||(this[_0x368a34(0x1dc)]=!0x0,this[_0x368a34(0x221)][_0x368a34(0x269)][_0x368a34(0x22a)](_0x2d117c(this[_0x368a34(0x1f4)]))[_0x368a34(0x204)](_0x4b1b8a=>{const _0xaff4f6=_0x368a34;switch(_0x4b1b8a){case _0x442896['OFFLINE']:this['_handleOffline']();break;case _0x442896[_0xaff4f6(0x1ca)]:this['_handleOnline']();break;}}),this[_0x368a34(0x221)][_0x368a34(0x22e)][_0x368a34(0x22a)](_0x2d117c(this['dispose$']))['subscribe'](_0x39d3c4=>{const _0x4ae8a7=_0x368a34,{eventID:_0x5ab451}=_0x39d3c4;switch(_0x5ab451){case _0x22cfb1[_0x4ae8a7(0x24e)]:this['_handleNewHost'](_0x39d3c4);break;case _0x22cfb1[_0x4ae8a7(0x21a)]:this['_handleOperation'](_0x39d3c4);break;case _0x22cfb1[_0x4ae8a7(0x213)]:this[_0x4ae8a7(0x224)]();break;case _0x22cfb1[_0x4ae8a7(0x217)]:this['_handleNewChangeSets'](_0x39d3c4);break;}}));}[_0x11b6eb(0x1f7)](){const _0x490fab=_0x11b6eb;this['_collabSession'][_0x490fab(0x1f6)]({'eventID':_0x22cfb1[_0x490fab(0x259)],'data':{'unitID':this['_unitID'],'userID':this[_0x490fab(0x221)]['getMemberID']()}},this[_0x490fab(0x23a)]);}[_0x11b6eb(0x264)](){const _0x4c0ff6=_0x11b6eb;this[_0x4c0ff6(0x1de)]===_0x4c0ff6(0x1cf)&&(this['_status$'][_0x4c0ff6(0x201)](_0x4c0ff6(0x261)),this[_0x4c0ff6(0x221)][_0x4c0ff6(0x1f6)]({'eventID':_0x22cfb1[_0x4c0ff6(0x213)],'data':{'unitID':this[_0x4c0ff6(0x23a)]}},this['_unitID']));}['startFollowing'](){const _0x904f6e=_0x11b6eb;this[_0x904f6e(0x1de)]===_0x904f6e(0x1da)&&(this[_0x904f6e(0x232)][_0x904f6e(0x201)](_0x904f6e(0x228)),this[_0x904f6e(0x25a)]());}[_0x11b6eb(0x24b)](){const _0x545b6a=_0x11b6eb;this[_0x545b6a(0x1de)]===_0x545b6a(0x228)&&this[_0x545b6a(0x238)]();}[_0x11b6eb(0x1fe)](_0x45d7b4){const _0x1c77e5=_0x11b6eb,{presenter:_0x4ea448}=_0x45d7b4[_0x1c77e5(0x241)],_0x5a4c1f=this[_0x1c77e5(0x221)][_0x1c77e5(0x236)]();this[_0x1c77e5(0x254)]=_0x4ea448,_0x4ea448===_0x5a4c1f?(this[_0x1c77e5(0x238)](),this[_0x1c77e5(0x250)]()):this['_status']!=='not-following'&&(this[_0x1c77e5(0x24d)](),this[_0x1c77e5(0x25a)]());}[_0x11b6eb(0x219)](){const _0x210f4e=_0x11b6eb,_0x5767d9={'eventID':_0x22cfb1[_0x210f4e(0x1df)]};this[_0x210f4e(0x221)][_0x210f4e(0x1f6)](_0x5767d9,this[_0x210f4e(0x23a)]);}[_0x11b6eb(0x224)](){const _0x591fec=_0x11b6eb;this[_0x591fec(0x254)]=null,this[_0x591fec(0x1de)]!=='presenting'&&this[_0x591fec(0x22b)]();}[_0x11b6eb(0x1e3)](_0x5e91b9){const _0x1b1542=_0x11b6eb;if(this[_0x1b1542(0x1de)]===_0x1b1542(0x228)&&this[_0x1b1542(0x254)]===_0x5e91b9[_0x1b1542(0x241)][_0x1b1542(0x276)]){const _0x3aa936=_0xcb2e04(_0x5e91b9[_0x1b1542(0x241)])[_0x1b1542(0x200)][_0x1b1542(0x1ea)]()[_0x1b1542(0x222)](_0xa478ed=>_0xa478ed['id']===_0x49fa8f['id']);if(_0x3aa936){const _0x56986b=_0x3aa936['params'][_0x1b1542(0x233)],_0x29bf7e=_0x3aa936[_0x1b1542(0x22f)][_0x1b1542(0x1e8)]['id'];setTimeout(()=>{const _0x28acb3=_0x1b1542;this[_0x28acb3(0x1e7)][_0x28acb3(0x1e2)](_0x4b8267['id'],{'unitId':_0x56986b,'subUnitId':_0x29bf7e},{'fromCollab':!0x0});});}}}[_0x11b6eb(0x250)](){const _0x14bb61=_0x11b6eb;this[_0x14bb61(0x232)]['next']('presenting');const _0x5bfa21=new Map(),_0x401fa4=this['_commandDisposable']=new _0x537ad0();_0x401fa4['add'](_0xc8298e(()=>{const _0x4a5654=_0x14bb61;_0x5bfa21[_0x4a5654(0x25e)](_0x55197b=>_0x55197b[_0x4a5654(0x249)]()),_0x5bfa21[_0x4a5654(0x1cb)]();})),_0x401fa4['add'](this[_0x14bb61(0x1e7)][_0x14bb61(0x26c)](_0x49858e=>{const _0x4e8731=_0x14bb61;var _0x2d2887;if(_0x49858e['type']!==_0xf4e9d3[_0x4e8731(0x20e)]||!this['_liveShareService'][_0x4e8731(0x212)](_0x49858e['id']))return;const {id:_0x58ef73}=_0x49858e;let _0x6261e;_0x5bfa21[_0x4e8731(0x1d6)](_0x58ef73)?_0x6261e=_0x5bfa21['get'](_0x58ef73):(_0x6261e=new _0x1059fe(),_0x5bfa21[_0x4e8731(0x26e)](_0x58ef73,_0x6261e),_0x6261e[_0x4e8731(0x22a)](_0x274690((_0x2d2887=this['_configService'][_0x4e8731(0x1d3)](Ce))!=null?_0x2d2887:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4e8731(0x204)](_0x3ac1cf=>{const _0x5c8042=_0x4e8731;this[_0x5c8042(0x221)]['send']({'eventID':_0x22cfb1[_0x5c8042(0x21a)],'data':{'unitID':this[_0x5c8042(0x23a)],'operations':{[_0x3ac1cf['id']]:{'id':_0x3ac1cf['id'],'params':JSON['stringify'](_0x3ac1cf[_0x5c8042(0x22f)])}}}},this[_0x5c8042(0x23a)]);})),_0x6261e['next'](_0x49858e);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x25bc6e=>this[_0x14bb61(0x221)][_0x14bb61(0x1f6)]({'eventID':_0x22cfb1[_0x14bb61(0x21a)],'data':{'unitID':this[_0x14bb61(0x23a)],'operations':{[_0x25bc6e['id']]:{'id':_0x25bc6e['id'],'params':JSON[_0x14bb61(0x274)](_0x25bc6e[_0x14bb61(0x22f)])}}}},this[_0x14bb61(0x23a)]));}[_0x11b6eb(0x24d)](){const _0x12a207=_0x11b6eb;var _0x1e822e;this[_0x12a207(0x232)][_0x12a207(0x201)](_0x12a207(0x261)),(_0x1e822e=this[_0x12a207(0x1ef)])==null||_0x1e822e[_0x12a207(0x22c)](),this['_commandDisposable']=null;}[_0x11b6eb(0x25a)](){const _0x3de75b=_0x11b6eb;var _0x440789;(_0x440789=this[_0x3de75b(0x1ef)])==null||_0x440789[_0x3de75b(0x22c)](),this[_0x3de75b(0x232)][_0x3de75b(0x201)]('following');}[_0x11b6eb(0x22b)](){const _0x32410f=_0x11b6eb;var _0x27c408;this[_0x32410f(0x232)][_0x32410f(0x201)](_0x32410f(0x261)),(_0x27c408=this[_0x32410f(0x1ef)])==null||_0x27c408['dispose'](),this[_0x32410f(0x1ef)]=null;}[_0x11b6eb(0x238)](){const _0x141240=_0x11b6eb;var _0x3dfd67;this[_0x141240(0x232)][_0x141240(0x201)](_0x141240(0x1da)),(_0x3dfd67=this[_0x141240(0x1ef)])==null||_0x3dfd67[_0x141240(0x22c)]();}[_0x11b6eb(0x1f5)](_0x3f5674){const _0x5a9bf9=_0x11b6eb;if([_0x5a9bf9(0x1cf),'not-following',_0x5a9bf9(0x263)][_0x5a9bf9(0x256)](this[_0x5a9bf9(0x1de)])||!_0x3f5674[_0x5a9bf9(0x241)][_0x5a9bf9(0x25d)]||_0x3f5674[_0x5a9bf9(0x241)]['presenter']===this[_0x5a9bf9(0x221)][_0x5a9bf9(0x236)]())return;this['_status']===_0x5a9bf9(0x261)&&this[_0x5a9bf9(0x25a)]();const _0x3a4158=_0x3f5674[_0x5a9bf9(0x241)][_0x5a9bf9(0x239)];Object['values'](_0x3a4158)[_0x5a9bf9(0x25e)](_0x10154e=>{const _0xc2d404=_0x5a9bf9;this[_0xc2d404(0x1e7)]['executeCommand'](_0x10154e['id'],_0x10154e[_0xc2d404(0x22f)]?JSON[_0xc2d404(0x1db)](_0x10154e['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x512728=_0x11b6eb;var _0x5d09aa;this[_0x512728(0x232)]['next'](_0x512728(0x263)),(_0x5d09aa=this['_commandDisposable'])==null||_0x5d09aa[_0x512728(0x22c)]();}['_handleOnline'](){const _0x3f59e2=_0x11b6eb;this[_0x3f59e2(0x232)][_0x3f59e2(0x201)](_0x3f59e2(0x261)),this['_fetchOperations']();}};N=Y([_(0x2,_0x586d2f),_(0x3,_0x34997e(L)),_(0x4,_0x43fef4)],N);function Le(){const _0x16c21c=_0x11b6eb,_0x4cec2a=_0x138bea(S),_0x471b54=_0x138bea(_0x41e0ae),_0x413690=_0x5a2037(()=>_0x471b54[_0x16c21c(0x1fa)](_0x30dc91[_0x16c21c(0x24f)]),void 0x0,!0x1,[]),[_0x242625,_0xebd6d2]=_0x2af4b9(null),[_0x31da5f,_0x3cb4e6]=_0x2af4b9(c['IDLE']),_0x139d59=_0x2f0507(null);return _0x22d44a(()=>(_0x413690&&_0x4cec2a[_0x16c21c(0x205)](_0x413690[_0x16c21c(0x1f9)]())[_0x16c21c(0x226)](_0x4efc0f=>{const _0x5324fd=_0x16c21c;_0xebd6d2(_0x4efc0f),_0x139d59[_0x5324fd(0x26f)]=_0x4efc0f[_0x5324fd(0x1fd)][_0x5324fd(0x204)](_0x2c4102=>{_0x3cb4e6(_0x2c4102);});}),()=>{const _0x4d2dba=_0x16c21c;var _0x51a3d3;(_0x51a3d3=_0x139d59['current'])==null||_0x51a3d3[_0x4d2dba(0x1e6)](),_0x139d59[_0x4d2dba(0x26f)]=null;}),[_0x413690,_0x4cec2a]),_0x242625?_0x4d2be6(_0xef8b71,{'align':_0x16c21c(0x265),'disabled':_0x31da5f===c[_0x16c21c(0x247)],'className':_0x16c21c(0x26a),'overlay':_0x4d2be6(Re,{'status':_0x31da5f,'coordinator':_0x242625}),'children':_0x4d2be6(_0x16c21c(0x1d1),{'className':_0x1b48c8(_0x16c21c(0x1e0),{'univer-cursor-not-allowed':_0x31da5f===c[_0x16c21c(0x247)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31da5f!==c[_0x16c21c(0x247)]}),'type':'button','children':_0x4d2be6(W,{'className':_0x16c21c(0x253)})})}):null;}function Re(_0x1a0cf1){const _0x379eda=_0x11b6eb,{status:_0x3f220c,coordinator:_0x2d6ce0}=_0x1a0cf1;switch(_0x3f220c){case c[_0x379eda(0x21f)]:return _0x4d2be6($e,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x1e9)]:return _0x4d2be6(xe,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x237)]:return _0x4d2be6(Pe,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x247)]:return _0x4d2be6(Te,{});case c[_0x379eda(0x26d)]:return _0x4d2be6(Ae,{'coordinator':_0x2d6ce0});default:return null;}}function $e(_0x590e4f){const _0x470752=_0x11b6eb,{coordinator:_0x230193}=_0x590e4f;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x470752(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x470752(0x20b)}),_0x4d2be6(_0x23cb3d,{'onClick':()=>_0x230193[_0x470752(0x1f7)](),'children':_0x470752(0x25f)})]});}function xe(_0x3ca136){const _0x275bb7=_0x11b6eb,{coordinator:_0x572915}=_0x3ca136;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x275bb7(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x4d2be6(_0x23cb3d,{'onClick':()=>_0x572915[_0x275bb7(0x24b)](),'children':_0x275bb7(0x220)})]});}function Pe(_0x589811){const _0x39732f=_0x11b6eb,{coordinator:_0x2b7e62}=_0x589811;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x39732f(0x234),{'className':_0x39732f(0x1fb),'children':_0x39732f(0x255)}),_0x4d2be6(_0x23cb3d,{'variant':'text','onClick':()=>_0x2b7e62[_0x39732f(0x268)](),'children':'Start\x20following'})]});}function Ae(_0x217d88){const _0x3f2db2=_0x11b6eb,{coordinator:_0x16fd5b}=_0x217d88;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x3f2db2(0x234),{'className':_0x3f2db2(0x1fb),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4d2be6(_0x23cb3d,{'variant':_0x3f2db2(0x1f3),'onClick':()=>_0x16fd5b[_0x3f2db2(0x264)](),'children':_0x3f2db2(0x20d)})]});}function Te(){const _0x38fd24=_0x11b6eb;return _0x4d2be6(_0xa0c774,{'children':_0x38fd24(0x24a)});}function _0x54c5(_0xe7a61e,_0x1aff34){const _0x1e4fad=_0x1e4f();return _0x54c5=function(_0x54c51c,_0x3f2c49){_0x54c51c=_0x54c51c-0x1ca;let _0x50767b=_0x1e4fad[_0x54c51c];return _0x50767b;},_0x54c5(_0xe7a61e,_0x1aff34);}var Fe=Object[_0x11b6eb(0x1d2)],He=(_0x38c998,_0x4ea12c,_0x32bc5d,_0x176234)=>{const _0x1aad53=_0x11b6eb;for(var _0x2e9d14=_0x176234>0x1?void 0x0:_0x176234?Fe(_0x4ea12c,_0x32bc5d):_0x4ea12c,_0x432a90=_0x38c998[_0x1aad53(0x209)]-0x1,_0x26e754;_0x432a90>=0x0;_0x432a90--)(_0x26e754=_0x38c998[_0x432a90])&&(_0x2e9d14=_0x26e754(_0x2e9d14)||_0x2e9d14);return _0x2e9d14;},A=(_0xa17375,_0x4a8e82)=>(_0x56bb98,_0x5eae5d)=>_0x4a8e82(_0x56bb98,_0x5eae5d,_0xa17375);let m=class extends _0x1488b8{constructor(_0x2945c9,_0x559605){const _0x359654=_0x11b6eb;super(),this[_0x359654(0x26b)]=_0x2945c9,this[_0x359654(0x1d8)]=_0x559605,this[_0x359654(0x230)]();}['_mountLiveShare'](){const _0x4bbbb7=_0x11b6eb;this['disposeWithMe'](this['_uiPartsService'][_0x4bbbb7(0x1cc)](_0xe162dd['HEADER_MENU'],()=>_0x437101(Le,this[_0x4bbbb7(0x26b)])));}};m=He([A(0x0,_0x34997e(_0x172459)),A(0x1,_0x274200)],m);const ye=_0x11b6eb(0x243),T={};var Ue=Object[_0x11b6eb(0x1d2)],Ve=(_0x411382,_0x2e8368,_0x52c4ba,_0xaebcd6)=>{const _0x28a6a1=_0x11b6eb;for(var _0x9360d9=_0xaebcd6>0x1?void 0x0:_0xaebcd6?Ue(_0x2e8368,_0x52c4ba):_0x2e8368,_0x2b0fd5=_0x411382[_0x28a6a1(0x209)]-0x1,_0x4bcfff;_0x2b0fd5>=0x0;_0x2b0fd5--)(_0x4bcfff=_0x411382[_0x2b0fd5])&&(_0x9360d9=_0x4bcfff(_0x9360d9)||_0x9360d9);return _0x9360d9;},je=(_0x22af56,_0x42b3dd)=>(_0x411372,_0x4c15e9)=>_0x42b3dd(_0x411372,_0x4c15e9,_0x22af56);let I=class extends _0x1488b8{constructor(_0x5822de){const _0x521c05=_0x11b6eb;super(),this[_0x521c05(0x1f1)]=_0x5822de,this['_init']();}[_0x11b6eb(0x1dc)](){const _0x4f1c9c=_0x11b6eb;[_0x3a77e6['id'],_0x5e3f90['id'],_0x4b8267['id']][_0x4f1c9c(0x25e)](_0x2ab669=>{const _0x21b666=_0x4f1c9c;this[_0x21b666(0x235)](this[_0x21b666(0x1f1)][_0x21b666(0x23f)](_0x2ab669));});}};I=Ve([je(0x0,_0x34997e(L))],I);var Me=Object[_0x11b6eb(0x262)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x37d6de,_0x73cce6,_0x53f01e)=>_0x73cce6 in _0x37d6de?Me(_0x37d6de,_0x73cce6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53f01e}):_0x37d6de[_0x73cce6]=_0x53f01e,We=(_0x4d4862,_0x2b1df5,_0x4179e8,_0x348e1a)=>{const _0x21f4eb=_0x11b6eb;for(var _0x48e571=_0x348e1a>0x1?void 0x0:_0x348e1a?ke(_0x2b1df5,_0x4179e8):_0x2b1df5,_0x4b5328=_0x4d4862[_0x21f4eb(0x209)]-0x1,_0x4db8c5;_0x4b5328>=0x0;_0x4b5328--)(_0x4db8c5=_0x4d4862[_0x4b5328])&&(_0x48e571=_0x4db8c5(_0x48e571)||_0x48e571);return _0x48e571;},F=(_0x468ae7,_0x4ecec)=>(_0x4f3af4,_0x1b9600)=>_0x4ecec(_0x4f3af4,_0x1b9600,_0x468ae7),B=(_0x117af5,_0x4af8be,_0x5b70e0)=>Ge(_0x117af5,typeof _0x4af8be!='symbol'?_0x4af8be+'':_0x4af8be,_0x5b70e0);const Ye=_0x11b6eb(0x258);let b=class extends _0x4e2557{constructor(_0x48756a=T,_0x5caf02,_0x4940e3){const _0x150edf=_0x11b6eb;super(),this[_0x150edf(0x214)]=_0x48756a,this[_0x150edf(0x26b)]=_0x5caf02,this[_0x150edf(0x1ce)]=_0x4940e3;const {..._0x9354b9}=_0x6531d9({},T,this[_0x150edf(0x214)]);this['_configService']['setConfig'](ye,_0x9354b9);}[_0x11b6eb(0x1f0)](){const _0x4af5fb=_0x11b6eb;_0x5507b0(this['_injector'],_0x350506([[L],[S],[I],[m]],this[_0x4af5fb(0x214)][_0x4af5fb(0x20f)])),_0x6327c4(this[_0x4af5fb(0x26b)],[[I]]);}['onRendered'](){_0x6327c4(this['_injector'],[[m]]);}};B(b,_0x11b6eb(0x23b),_0x30dc91[_0x11b6eb(0x20a)]),B(b,_0x11b6eb(0x25c),Ye),b=We([_0x1db9f3(_0x12ac27),F(0x1,_0x34997e(_0x172459)),F(0x2,_0x586d2f)],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 _0x4118(_0x406fdc,_0x5da886){const _0xa21c9=_0xa21c();return _0x4118=function(_0x411889,_0x2da739){_0x411889=_0x411889-0x12e;let _0x458c22=_0xa21c9[_0x411889];return _0x458c22;},_0x4118(_0x406fdc,_0x5da886);}function _0xa21c(){const _0x3b729a=['@univerjs/core/facade','@univerjs/sheets/facade','FUniver','FRange','getActiveSheet','stopPresenting','tryStartPresenting','syncExecuteCommand','551824yaxQsM','968jmnOTJ','extend','396xbBsUa','getLiveShareCoordinatorSync','stopFollowing','function','amd','startColumn','No\x20active\x20workbook\x20found.','63MmOGLu','getActiveWorkbook','UniverProLiveShare','UniverSheetsUi','213790OVgmLB','310867JcrwaY','UniverSheetsFacade','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','startFollowing','22340GHpXIj','SetScrollOperation','getSheetId','getRenderById','LiveShareController','@univerjs/sheets','IDLE','4dGUcVE','FEnum','LiveShareStatusEnum','getStatus','@univerjs/engine-render','SetWorksheetActiveOperation','UniverEngineRender','getUnitId','getId','startPresenting','812484ikuFYy','3753462SFLqmh','executeCommand','PRESENTING','LiveShareStatus','@univerjs/sheets-ui','get','getLiveShareStatus','2098911eLFCsE','261sTPzUj','_commandService','_injector'];_0xa21c=function(){return _0x3b729a;};return _0xa21c();}(function(_0xee2166,_0x4c039b){const _0x29a63b=_0x4118,_0x4387a9=_0xee2166();while(!![]){try{const _0x4e67dd=-parseInt(_0x29a63b(0x14f))/0x1*(-parseInt(_0x29a63b(0x15b))/0x2)+parseInt(_0x29a63b(0x134))/0x3+parseInt(_0x29a63b(0x141))/0x4*(parseInt(_0x29a63b(0x154))/0x5)+parseInt(_0x29a63b(0x166))/0x6+parseInt(_0x29a63b(0x14a))/0x7*(parseInt(_0x29a63b(0x140))/0x8)+parseInt(_0x29a63b(0x135))/0x9*(-parseInt(_0x29a63b(0x14e))/0xa)+-parseInt(_0x29a63b(0x143))/0xb*(parseInt(_0x29a63b(0x165))/0xc);if(_0x4e67dd===_0x4c039b)break;else _0x4387a9['push'](_0x4387a9['shift']());}catch(_0x5e1093){_0x4387a9['push'](_0x4387a9['shift']());}}}(_0xa21c,0x906cb),function(_0x296337,_0xe9d1cd){const _0x58c7a8=_0x4118;typeof exports=='object'&&typeof module<'u'?_0xe9d1cd(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==_0x58c7a8(0x146)&&define[_0x58c7a8(0x147)]?define(['@univerjs-pro/live-share',_0x58c7a8(0x15f),_0x58c7a8(0x159),_0x58c7a8(0x131),_0x58c7a8(0x139),_0x58c7a8(0x138)],_0xe9d1cd):(_0x296337=typeof globalThis<'u'?globalThis:_0x296337||self,_0xe9d1cd(_0x296337[_0x58c7a8(0x14c)],_0x296337[_0x58c7a8(0x161)],_0x296337['UniverSheets'],_0x296337[_0x58c7a8(0x14d)],_0x296337[_0x58c7a8(0x150)],_0x296337['UniverCoreFacade']));}(this,function(_0x1eb9ca,_0x3f6a1a,_0x2f4f54,_0x51593f,_0x259d4b,_0x3e5b07){'use strict';const _0x20f96b=_0x4118;class _0x268daf extends _0x259d4b[_0x20f96b(0x13b)]{[_0x20f96b(0x152)](_0x38ea9d,_0x1d2620,_0x56578f,_0x57b0ff,_0xdd89d5){const _0x2dce06=_0x20f96b,_0x400f76=_0x38ea9d[_0x2dce06(0x132)](_0x1eb9ca['LiveShareController']),_0x855acd=_0x38ea9d[_0x2dce06(0x132)](_0x3f6a1a['IRenderManagerService']),_0x3add89=_0x1d2620[_0x2dce06(0x162)](),_0x16ef18=_0x1d2620[_0x2dce06(0x13c)](),_0x13c1d1=_0x400f76[_0x2dce06(0x144)](_0x3add89);(_0x13c1d1==null?void 0x0:_0x13c1d1[_0x2dce06(0x15e)]())!==_0x1eb9ca[_0x2dce06(0x130)][_0x2dce06(0x12f)]||(_0x56578f[_0x2dce06(0x156)]()!==_0x16ef18[_0x2dce06(0x156)]()&&this[_0x2dce06(0x136)][_0x2dce06(0x12e)](_0x2f4f54[_0x2dce06(0x160)]['id'],{'unitId':_0x3add89,'subUnitId':_0x56578f[_0x2dce06(0x156)]()}),!_0x855acd[_0x2dce06(0x157)](_0x3add89))||_0xdd89d5[_0x2dce06(0x13f)](_0x51593f[_0x2dce06(0x155)]['id'],{'unitId':_0x1d2620[_0x2dce06(0x162)](),'sheetId':_0x56578f[_0x2dce06(0x156)](),'sheetViewStartRow':_0x57b0ff['startRow'],'sheetViewStartColumn':_0x57b0ff[_0x2dce06(0x148)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x259d4b[_0x20f96b(0x13b)][_0x20f96b(0x142)](_0x268daf);class _0x5d72c2 extends _0x3e5b07[_0x20f96b(0x13a)]{[_0x20f96b(0x133)](){const _0x32a4bd=_0x20f96b;var _0x48d316,_0x4cb65b;const _0x4acfa3=this[_0x32a4bd(0x137)][_0x32a4bd(0x132)](_0x1eb9ca['LiveShareController']),_0x398e48=(_0x48d316=this[_0x32a4bd(0x14b)]())==null?void 0x0:_0x48d316[_0x32a4bd(0x163)]();if(!_0x398e48)throw new Error(_0x32a4bd(0x149));const _0x5aab5a=_0x4acfa3[_0x32a4bd(0x144)](_0x398e48);return(_0x4cb65b=_0x5aab5a==null?void 0x0:_0x5aab5a['getStatus']())!=null?_0x4cb65b:_0x1eb9ca[_0x32a4bd(0x130)][_0x32a4bd(0x15a)];}[_0x20f96b(0x153)](){const _0x36b1f3=_0x20f96b;var _0xe2e65a;const _0x154de9=this[_0x36b1f3(0x137)][_0x36b1f3(0x132)](_0x1eb9ca[_0x36b1f3(0x158)]),_0x4664b4=(_0xe2e65a=this[_0x36b1f3(0x14b)]())==null?void 0x0:_0xe2e65a[_0x36b1f3(0x163)]();if(!_0x4664b4)throw new Error(_0x36b1f3(0x149));const _0x2689ee=_0x154de9[_0x36b1f3(0x144)](_0x4664b4);if(!_0x2689ee)throw new Error(_0x36b1f3(0x151));_0x2689ee[_0x36b1f3(0x153)]();}[_0x20f96b(0x145)](){const _0x1b56af=_0x20f96b;var _0x34c32c;const _0x17722a=this[_0x1b56af(0x137)][_0x1b56af(0x132)](_0x1eb9ca[_0x1b56af(0x158)]),_0xffeb5b=(_0x34c32c=this[_0x1b56af(0x14b)]())==null?void 0x0:_0x34c32c[_0x1b56af(0x163)]();if(!_0xffeb5b)throw new Error(_0x1b56af(0x149));const _0x4faa36=_0x17722a[_0x1b56af(0x144)](_0xffeb5b);if(!_0x4faa36)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4faa36[_0x1b56af(0x145)]();}[_0x20f96b(0x164)](){const _0x38960b=_0x20f96b;var _0x5a2b5b;const _0x2f723d=this[_0x38960b(0x137)][_0x38960b(0x132)](_0x1eb9ca[_0x38960b(0x158)]),_0x437eda=(_0x5a2b5b=this[_0x38960b(0x14b)]())==null?void 0x0:_0x5a2b5b[_0x38960b(0x163)]();if(!_0x437eda)throw new Error('No\x20active\x20workbook\x20found.');const _0x1b99a9=_0x2f723d[_0x38960b(0x144)](_0x437eda);if(!_0x1b99a9)throw new Error(_0x38960b(0x151));_0x1b99a9[_0x38960b(0x13e)]();}[_0x20f96b(0x13d)](){const _0x3336b2=_0x20f96b;var _0x215e8d;const _0x20dc83=this['_injector']['get'](_0x1eb9ca[_0x3336b2(0x158)]),_0x2b5365=(_0x215e8d=this[_0x3336b2(0x14b)]())==null?void 0x0:_0x215e8d[_0x3336b2(0x163)]();if(!_0x2b5365)throw new Error(_0x3336b2(0x149));const _0x260b4=_0x20dc83['getLiveShareCoordinatorSync'](_0x2b5365);if(!_0x260b4)throw new Error(_0x3336b2(0x151));_0x260b4[_0x3336b2(0x13d)]();}}_0x3e5b07[_0x20f96b(0x13a)][_0x20f96b(0x142)](_0x5d72c2);class _0x2bba8f extends _0x3e5b07[_0x20f96b(0x15c)]{get[_0x20f96b(0x15d)](){return _0x1eb9ca['LiveShareStatus'];}}_0x3e5b07[_0x20f96b(0x15c)][_0x20f96b(0x142)](_0x2bba8f);}));
1
+ function _0x5bc0(_0x4d4b11,_0x47b717){const _0x3ab759=_0x3ab7();return _0x5bc0=function(_0x5bc06f,_0x567a11){_0x5bc06f=_0x5bc06f-0xeb;let _0x340318=_0x3ab759[_0x5bc06f];return _0x340318;},_0x5bc0(_0x4d4b11,_0x47b717);}function _0x3ab7(){const _0x26a31b=['startRow','getId','FRange','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','stopPresenting','getSheetId','6GnojUp','object','PRESENTING','IDLE','startFollowing','14215430FCEmni','_initialize','function','getLiveShareCoordinatorSync','UniverSheets','FUniver','7909480OKVeAJ','4466540dMuYCd','@univerjs-pro/live-share','LiveShareController','executeCommand','getActiveWorkbook','@univerjs/sheets-ui','9781828NuZbwY','amd','UniverSheetsFacade','722190rVNbHZ','getLiveShareStatus','IRenderManagerService','LiveShareStatusEnum','SetScrollOperation','_injector','FEnum','No\x20active\x20workbook\x20found.','stopFollowing','UniverEngineRender','SetWorksheetActiveOperation','extend','UniverCoreFacade','getRenderById','getStatus','UniverSheetsUi','1317394pNsUMU','9pzhGrj','@univerjs/sheets','getActiveSheet','3099124MQeHjW','3nbxggQ','LiveShareStatus','get','@univerjs/engine-render','syncExecuteCommand','@univerjs/sheets/facade','@univerjs/core/facade'];_0x3ab7=function(){return _0x26a31b;};return _0x3ab7();}(function(_0x2398d0,_0x1f6209){const _0x736215=_0x5bc0,_0x30adab=_0x2398d0();while(!![]){try{const _0x5a832f=-parseInt(_0x736215(0x11c))/0x1+parseInt(_0x736215(0x10c))/0x2+parseInt(_0x736215(0x121))/0x3*(parseInt(_0x736215(0x120))/0x4)+-parseInt(_0x736215(0x103))/0x5+parseInt(_0x736215(0xf7))/0x6*(parseInt(_0x736215(0x109))/0x7)+-parseInt(_0x736215(0x102))/0x8+parseInt(_0x736215(0x11d))/0x9*(parseInt(_0x736215(0xfc))/0xa);if(_0x5a832f===_0x1f6209)break;else _0x30adab['push'](_0x30adab['shift']());}catch(_0x36493e){_0x30adab['push'](_0x30adab['shift']());}}}(_0x3ab7,0xb86ec),function(_0x295982,_0x5a2d28){const _0x47566f=_0x5bc0;typeof exports==_0x47566f(0xf8)&&typeof module<'u'?_0x5a2d28(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==_0x47566f(0xfe)&&define[_0x47566f(0x10a)]?define([_0x47566f(0x104),_0x47566f(0xec),_0x47566f(0x11e),_0x47566f(0x108),_0x47566f(0xee),_0x47566f(0xef)],_0x5a2d28):(_0x295982=typeof globalThis<'u'?globalThis:_0x295982||self,_0x5a2d28(_0x295982['UniverProLiveShare'],_0x295982[_0x47566f(0x115)],_0x295982[_0x47566f(0x100)],_0x295982[_0x47566f(0x11b)],_0x295982[_0x47566f(0x10b)],_0x295982[_0x47566f(0x118)]));}(this,function(_0x5059bb,_0x1a894f,_0x5a55fd,_0xa2a80b,_0x2d32e4,_0x502093){'use strict';const _0xcbf0b4=_0x5bc0;class _0x3e9988 extends _0x2d32e4[_0xcbf0b4(0xf2)]{[_0xcbf0b4(0xfd)](_0x101d69,_0x1c9c68,_0x591e8a,_0x5b94db,_0x16c034){const _0x1d7af2=_0xcbf0b4,_0x5a02c3=_0x101d69[_0x1d7af2(0xeb)](_0x5059bb['LiveShareController']),_0x4c18aa=_0x101d69[_0x1d7af2(0xeb)](_0x1a894f[_0x1d7af2(0x10e)]),_0x27d810=_0x1c9c68[_0x1d7af2(0xf4)](),_0x1036d8=_0x1c9c68[_0x1d7af2(0x11f)](),_0x4ae747=_0x5a02c3[_0x1d7af2(0xff)](_0x27d810);(_0x4ae747==null?void 0x0:_0x4ae747[_0x1d7af2(0x11a)]())!==_0x5059bb[_0x1d7af2(0x122)][_0x1d7af2(0xf9)]||(_0x591e8a[_0x1d7af2(0xf6)]()!==_0x1036d8[_0x1d7af2(0xf6)]()&&this['_commandService'][_0x1d7af2(0x106)](_0x5a55fd[_0x1d7af2(0x116)]['id'],{'unitId':_0x27d810,'subUnitId':_0x591e8a[_0x1d7af2(0xf6)]()}),!_0x4c18aa[_0x1d7af2(0x119)](_0x27d810))||_0x16c034[_0x1d7af2(0xed)](_0xa2a80b[_0x1d7af2(0x110)]['id'],{'unitId':_0x1c9c68[_0x1d7af2(0xf4)](),'sheetId':_0x591e8a[_0x1d7af2(0xf6)](),'sheetViewStartRow':_0x5b94db[_0x1d7af2(0xf0)],'sheetViewStartColumn':_0x5b94db['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2d32e4[_0xcbf0b4(0xf2)][_0xcbf0b4(0x117)](_0x3e9988);class _0x515166 extends _0x502093[_0xcbf0b4(0x101)]{[_0xcbf0b4(0x10d)](){const _0x339b05=_0xcbf0b4;var _0x4c1eda,_0x254d7f;const _0xd8a389=this['_injector'][_0x339b05(0xeb)](_0x5059bb[_0x339b05(0x105)]),_0x1db2f6=(_0x4c1eda=this[_0x339b05(0x107)]())==null?void 0x0:_0x4c1eda['getId']();if(!_0x1db2f6)throw new Error(_0x339b05(0x113));const _0x33f42a=_0xd8a389[_0x339b05(0xff)](_0x1db2f6);return(_0x254d7f=_0x33f42a==null?void 0x0:_0x33f42a[_0x339b05(0x11a)]())!=null?_0x254d7f:_0x5059bb[_0x339b05(0x122)][_0x339b05(0xfa)];}[_0xcbf0b4(0xfb)](){const _0x1b7965=_0xcbf0b4;var _0x55326a;const _0x33c429=this['_injector'][_0x1b7965(0xeb)](_0x5059bb[_0x1b7965(0x105)]),_0x1fcc0b=(_0x55326a=this[_0x1b7965(0x107)]())==null?void 0x0:_0x55326a[_0x1b7965(0xf1)]();if(!_0x1fcc0b)throw new Error(_0x1b7965(0x113));const _0x24b4b2=_0x33c429[_0x1b7965(0xff)](_0x1fcc0b);if(!_0x24b4b2)throw new Error(_0x1b7965(0xf3));_0x24b4b2[_0x1b7965(0xfb)]();}['stopFollowing'](){const _0x2abdb5=_0xcbf0b4;var _0x208f03;const _0x29ff1e=this['_injector'][_0x2abdb5(0xeb)](_0x5059bb[_0x2abdb5(0x105)]),_0x42f31d=(_0x208f03=this[_0x2abdb5(0x107)]())==null?void 0x0:_0x208f03[_0x2abdb5(0xf1)]();if(!_0x42f31d)throw new Error(_0x2abdb5(0x113));const _0x217675=_0x29ff1e[_0x2abdb5(0xff)](_0x42f31d);if(!_0x217675)throw new Error(_0x2abdb5(0xf3));_0x217675[_0x2abdb5(0x114)]();}['startPresenting'](){const _0x5269ee=_0xcbf0b4;var _0x3a59cf;const _0x3a9a16=this[_0x5269ee(0x111)]['get'](_0x5059bb['LiveShareController']),_0x2b138f=(_0x3a59cf=this[_0x5269ee(0x107)]())==null?void 0x0:_0x3a59cf[_0x5269ee(0xf1)]();if(!_0x2b138f)throw new Error(_0x5269ee(0x113));const _0xc9df8e=_0x3a9a16[_0x5269ee(0xff)](_0x2b138f);if(!_0xc9df8e)throw new Error(_0x5269ee(0xf3));_0xc9df8e['tryStartPresenting']();}[_0xcbf0b4(0xf5)](){const _0x6e6545=_0xcbf0b4;var _0x5ea9eb;const _0x4389e1=this['_injector']['get'](_0x5059bb[_0x6e6545(0x105)]),_0x3b8a6a=(_0x5ea9eb=this['getActiveWorkbook']())==null?void 0x0:_0x5ea9eb['getId']();if(!_0x3b8a6a)throw new Error(_0x6e6545(0x113));const _0x74afb2=_0x4389e1[_0x6e6545(0xff)](_0x3b8a6a);if(!_0x74afb2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x74afb2[_0x6e6545(0xf5)]();}}_0x502093[_0xcbf0b4(0x101)][_0xcbf0b4(0x117)](_0x515166);class _0x2ea282 extends _0x502093['FEnum']{get[_0xcbf0b4(0x10f)](){const _0x16d627=_0xcbf0b4;return _0x5059bb[_0x16d627(0x122)];}}_0x502093[_0xcbf0b4(0x112)][_0xcbf0b4(0x117)](_0x2ea282);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5b39(){const _0x40d6f2=['LiveShareService','LiveShareIcon','_startFollowing','replace','colorChannel1','react','useRef','You\x27re\x20following\x20the\x20presenter','8904550wxNCjn','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','idSuffix','_handleOnline','DisposableCollection','includes','onStarting','_collabSessionService','useState','getInitialStates','SetWorksheetActiveOperation','mutations','connectInjector','_init','svg','path','data','Button','fill','get','_handleTerminate','attrs','presenting','current','CommandType','getTypeOfUnitAdded$','0\x200\x2017\x2017','add','UniverProCollaborationClient','_mountLiveShare','UniverInstanceType','getStatus','OFFLINE','toDisposable','_injector','LiveShareStatus','end','getOwnPropertyDescriptor','SessionStatus','_unitID','ONLINE','SetZoomRatioOperation','mask','Injector','send','IUniverInstanceService','react/jsx-runtime','2472348qUqGDB','Inject','getMemberID','Disposable','type','@univerjs/ui','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','rxjs/operators','length','offline','Dropdown','_uiPartsService','CollaborationSessionService','presenter','@univerjs-pro/collaboration','defs','tryStartPresenting','UniverCollaborationClientPlugin','Present\x20this\x20document','_handleNewHost','2594320rzfeww','createElement','_entities','subscribe','Start','Stop\x20following','init','disposeWithMe','shouldShareOperation','requireSession','_fetchOperations','jsxs','forwardRef','pluginName','_handleNewChangeSets','tag','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','text','startFollowing','unsubscribe','LIVESHARE_FETCH_OPERATIONS','dispose','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','LiveShareCoordinator','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','@univerjs-pro/collaboration-client','forEach','children','LIVESHARE_OPERATION','dispose$','UniverUi','executeCommand','stopPresenting','map','complete','sessionStatus$','function','_commandDisposable','_status','React','4lOuQTe','string','not-following','following','idle','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareController','UNIVER_SHEET','948846zlupfN','exports','InsertSheetMutation','parseProtocolChangeset','_collabSession','getTypeOfUnitDisposed$','UniverLiveSharePlugin','@univerjs/design','http://www.w3.org/2000/svg','live-share-icon','jsx','stopFollowing','PRESENTING','BehaviorSubject','_commandService','params','CollaborationEvent','_presenter','getValue','setConfig','You\x27are\x20offline.','has','LIVESHARE_TERMINATE','NOT_FOLLOWING','takeUntil','use','getLiveShareCoordinator','_handleOffline','univer-size-4','2260384oNVuAW','IConfigService','useObservable','RxDisposable','operations','FOLLOWING','_reporters','live-share.config','_liveShareService','displayName','stringify','_univerInstanceService','entries','touchDependencies','currentColor','set','1em','SetScrollOperation','defineProperty','21ASoUSy','@univerjs/sheets','DesktopLiveShareController','ICommandService','then','unitId','OPERATION','IDLE','getUnitId','amd','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_beIdle','pipe','Start\x20following','status$','UniverProCollaboration','UniverSheetsUi','BuiltInUIPart','_config','_status$','sheet','_handleOperation','rxjs','_sharedOperations','_stopFollowing','event$','onRendered','UNIVER_LIVE_SHARE_PLUGIN','useDependency','delete','onCommandExecuted','trim','@univerjs/sheets-ui','HEADER_MENU','next','div','UniverSheets','find','object','defIds','operators','Fragment','LIVESHARE_NEW_HOST','Plugin','7722702aMYpSI','DependentOn','reverse','_configService','IUIPartsService','registerComponent','@univerjs/core','UniverIcon','UniverDesign','1747631eFyxKL','button','_stopPresenting','registerSharedOperation','NEW_CHANGESETS'];_0x5b39=function(){return _0x40d6f2;};return _0x5b39();}function _0x1903(_0x3732c3,_0x6aeb50){const _0x5b395d=_0x5b39();return _0x1903=function(_0x1903bd,_0x544756){_0x1903bd=_0x1903bd-0x6a;let _0x13767f=_0x5b395d[_0x1903bd];return _0x13767f;},_0x1903(_0x3732c3,_0x6aeb50);}(function(_0x1bfe47,_0x4ffefb){const _0x394fab=_0x1903,_0x1ff624=_0x1bfe47();while(!![]){try{const _0x3f1d4f=parseInt(_0x394fab(0x9c))/0x1+-parseInt(_0x394fab(0x117))/0x2*(parseInt(_0x394fab(0x11f))/0x3)+-parseInt(_0x394fab(0x13c))/0x4+parseInt(_0x394fab(0xa9))/0x5+parseInt(_0x394fab(0xd9))/0x6+-parseInt(_0x394fab(0x14f))/0x7*(parseInt(_0x394fab(0xee))/0x8)+-parseInt(_0x394fab(0x93))/0x9;if(_0x3f1d4f===_0x4ffefb)break;else _0x1ff624['push'](_0x1ff624['shift']());}catch(_0x29873c){_0x1ff624['push'](_0x1ff624['shift']());}}}(_0x5b39,0xdea77),function(_0x3288f9,_0x2737c8){const _0x94c6c3=_0x1903;typeof exports==_0x94c6c3(0x8d)&&typeof module<'u'?_0x2737c8(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==_0x94c6c3(0x113)&&define[_0x94c6c3(0x6e)]?define([_0x94c6c3(0x120),_0x94c6c3(0x99),_0x94c6c3(0xde),_0x94c6c3(0xd8),_0x94c6c3(0x126),_0x94c6c3(0xa6),_0x94c6c3(0xe8),_0x94c6c3(0x108),_0x94c6c3(0x150),'rxjs',_0x94c6c3(0xe1),_0x94c6c3(0x87)],_0x2737c8):(_0x3288f9=typeof globalThis<'u'?globalThis:_0x3288f9||self,_0x2737c8(_0x3288f9['UniverProLiveShare']={},_0x3288f9['UniverCore'],_0x3288f9[_0x94c6c3(0x10d)],_0x3288f9[_0x94c6c3(0x116)],_0x3288f9[_0x94c6c3(0x9b)],_0x3288f9['React'],_0x3288f9[_0x94c6c3(0x76)],_0x3288f9[_0x94c6c3(0xc6)],_0x3288f9[_0x94c6c3(0x8b)],_0x3288f9[_0x94c6c3(0x7d)],_0x3288f9['rxjs'][_0x94c6c3(0x8f)],_0x3288f9[_0x94c6c3(0x77)]));}(this,function(_0x262252,_0x3cb17c,_0x404ca8,_0x265310,_0x51144a,_0x4a444c,_0x17a8ce,_0x3c93ca,_0x4db795,_0x2edef2,_0x18ed04,_0x1ac73e){'use strict';const _0x5f25e0=_0x1903;var _0x545e73=Object['defineProperty'],_0x24ccef=(_0x2776c4,_0x474e49,_0x2d95e9)=>_0x474e49 in _0x2776c4?_0x545e73(_0x2776c4,_0x474e49,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d95e9}):_0x2776c4[_0x474e49]=_0x2d95e9,_0x529b2e=(_0x33313b,_0x277aec,_0x767cf)=>_0x24ccef(_0x33313b,typeof _0x277aec!=_0x5f25e0(0xdf)?_0x277aec+'':_0x277aec,_0x767cf);function _0x2ffd11({ref:_0x2daaf6,..._0x2cdbf8}){const _0x350f1e=_0x5f25e0,{icon:_0x598827,id:_0x4bfd75,className:_0x4cbaa6,extend:_0x36e689,..._0x3d3ea1}=_0x2cdbf8,_0x4426eb=('univerjs-icon\x20univerjs-icon-'+_0x4bfd75+'\x20'+(_0x4cbaa6||''))[_0x350f1e(0x86)](),_0x1c2336=_0x4a444c['useRef']('_'+_0x3dcca3());return _0x253cfc(_0x598827,''+_0x4bfd75,{'defIds':_0x598827[_0x350f1e(0x8e)],'idSuffix':_0x1c2336['current']},{'ref':_0x2daaf6,'className':_0x4426eb,..._0x3d3ea1},_0x36e689);}function _0x253cfc(_0x451c54,_0x5576b8,_0x3923d0,_0x58b52e,_0x2ff4d0){const _0x1ce6aa=_0x5f25e0;return _0x4a444c[_0x1ce6aa(0xef)](_0x451c54[_0x1ce6aa(0xfd)],{'key':_0x5576b8,..._0x4fac99(_0x451c54,_0x3923d0,_0x2ff4d0),..._0x58b52e},(_0x3cf7fe(_0x451c54,_0x3923d0)[_0x1ce6aa(0x10a)]||[])[_0x1ce6aa(0x110)]((_0x5dab10,_0x2f74ba)=>_0x253cfc(_0x5dab10,_0x5576b8+'-'+_0x451c54[_0x1ce6aa(0xfd)]+'-'+_0x2f74ba,_0x3923d0,void 0x0,_0x2ff4d0)));}function _0x4fac99(_0x48f7a3,_0x4aadde,_0x6a4935){const _0x1c33a1=_0x5f25e0,_0x21a9a0={..._0x48f7a3[_0x1c33a1(0xbf)]};_0x6a4935!=null&&_0x6a4935[_0x1c33a1(0xa5)]&&_0x21a9a0[_0x1c33a1(0xbc)]===_0x1c33a1(0xa5)&&(_0x21a9a0[_0x1c33a1(0xbc)]=_0x6a4935[_0x1c33a1(0xa5)]),_0x48f7a3[_0x1c33a1(0xfd)]==='mask'&&_0x21a9a0['id']&&(_0x21a9a0['id']=_0x21a9a0['id']+_0x4aadde[_0x1c33a1(0xac)]),Object[_0x1c33a1(0x148)](_0x21a9a0)['forEach'](([_0x102c7f,_0x581c4f])=>{const _0x3a1cf9=_0x1c33a1;_0x102c7f===_0x3a1cf9(0xd4)&&typeof _0x581c4f=='string'&&(_0x21a9a0[_0x102c7f]=_0x581c4f[_0x3a1cf9(0xa4)](/url\(#(.*)\)/,'url(#$1'+_0x4aadde['idSuffix']+')'));});const {defIds:_0x2dfdc5}=_0x4aadde;return!_0x2dfdc5||_0x2dfdc5[_0x1c33a1(0xe2)]===0x0||(_0x48f7a3['tag']===_0x1c33a1(0x138)&&_0x21a9a0['xlink:href']&&(_0x21a9a0['xlink:href']=_0x21a9a0['xlink:href']+_0x4aadde[_0x1c33a1(0xac)]),Object[_0x1c33a1(0x148)](_0x21a9a0)[_0x1c33a1(0x109)](([_0x383783,_0x246af6])=>{const _0x6be342=_0x1c33a1;typeof _0x246af6=='string'&&(_0x21a9a0[_0x383783]=_0x246af6[_0x6be342(0xa4)](/url\(#(.*)\)/,'url(#$1'+_0x4aadde[_0x6be342(0xac)]+')'));})),_0x21a9a0;}function _0x3cf7fe(_0xa485e5,_0x2b0768){const _0x3ecfe2=_0x5f25e0;var _0x2d73ed;const {defIds:_0x331629}=_0x2b0768;return!_0x331629||_0x331629[_0x3ecfe2(0xe2)]===0x0?_0xa485e5:_0xa485e5[_0x3ecfe2(0xfd)]===_0x3ecfe2(0xe9)&&((_0x2d73ed=_0xa485e5[_0x3ecfe2(0x10a)])!=null&&_0x2d73ed['length'])?{..._0xa485e5,'children':_0xa485e5[_0x3ecfe2(0x10a)]['map'](_0xeb0ddf=>typeof _0xeb0ddf[_0x3ecfe2(0xbf)]['id']==_0x3ecfe2(0x118)&&_0x331629&&_0x331629[_0x3ecfe2(0xaf)](_0xeb0ddf[_0x3ecfe2(0xbf)]['id'])?{..._0xeb0ddf,'attrs':{..._0xeb0ddf[_0x3ecfe2(0xbf)],'id':_0xeb0ddf[_0x3ecfe2(0xbf)]['id']+_0x2b0768[_0x3ecfe2(0xac)]}}:_0xeb0ddf)}:_0xa485e5;}function _0x3dcca3(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x2ffd11[_0x5f25e0(0x145)]=_0x5f25e0(0x9a);const _0x25d6e4={'tag':_0x5f25e0(0xb8),'attrs':{'xmlns':_0x5f25e0(0x127),'fill':'none','viewBox':_0x5f25e0(0xc4),'width':_0x5f25e0(0x14c),'height':_0x5f25e0(0x14c)},'children':[{'tag':_0x5f25e0(0xb9),'attrs':{'fill':_0x5f25e0(0x14a),'d':_0x5f25e0(0xfe)}},{'tag':_0x5f25e0(0xb9),'attrs':{'fill':_0x5f25e0(0x14a),'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':'evenodd','clipRule':'evenodd'}}]},_0x591cf0=_0x4a444c[_0x5f25e0(0xfa)](function(_0x5e2075,_0x1bba69){const _0x269b51=_0x5f25e0;return _0x4a444c[_0x269b51(0xef)](_0x2ffd11,Object['assign']({},_0x5e2075,{'id':_0x269b51(0x128),'ref':_0x1bba69,'icon':_0x25d6e4}));});_0x591cf0[_0x5f25e0(0x145)]=_0x5f25e0(0xa2);class _0x426902 extends _0x3cb17c[_0x5f25e0(0xdc)]{constructor(){const _0x4546bb=_0x5f25e0;super(...arguments),_0x529b2e(this,'_sharedOperations',new Set()),_0x529b2e(this,_0x4546bb(0x142),new Set());}[_0x5f25e0(0x9f)](_0x2f1357){const _0x5d98a6=_0x5f25e0;return this[_0x5d98a6(0x7e)]['add'](_0x2f1357),_0x3cb17c[_0x5d98a6(0xcb)](()=>this[_0x5d98a6(0x7e)]['delete'](_0x2f1357));}['registerInitialStateReporter'](_0x3a605c){const _0x267f30=_0x5f25e0;return this[_0x267f30(0x142)][_0x267f30(0xc5)](_0x3a605c),_0x3cb17c[_0x267f30(0xcb)](()=>this['_reporters'][_0x267f30(0x84)](_0x3a605c));}[_0x5f25e0(0xf6)](_0x191b41){const _0x3a0218=_0x5f25e0;return this[_0x3a0218(0x7e)][_0x3a0218(0x134)](_0x191b41);}[_0x5f25e0(0xb3)](_0x5c6cbb){const _0x3ffecf=_0x5f25e0;return Array['from'](this[_0x3ffecf(0x142)])['map'](_0x245b55=>_0x245b55(_0x5c6cbb));}}var _0x1111f0=Object[_0x5f25e0(0xcf)],_0x275c2f=(_0x171ca5,_0x640c3a,_0x2f95f9,_0x4250a2)=>{const _0x41ce81=_0x5f25e0;for(var _0x290d6c=_0x4250a2>0x1?void 0x0:_0x4250a2?_0x1111f0(_0x640c3a,_0x2f95f9):_0x640c3a,_0x5ea9a0=_0x171ca5[_0x41ce81(0xe2)]-0x1,_0x1a84d3;_0x5ea9a0>=0x0;_0x5ea9a0--)(_0x1a84d3=_0x171ca5[_0x5ea9a0])&&(_0x290d6c=_0x1a84d3(_0x290d6c)||_0x290d6c);return _0x290d6c;},_0x9efa8f=(_0x54b3f7,_0x39d04f)=>(_0x5844e7,_0x2cc05e)=>_0x39d04f(_0x5844e7,_0x2cc05e,_0x54b3f7);_0x262252[_0x5f25e0(0x11d)]=class extends _0x3cb17c[_0x5f25e0(0x13f)]{constructor(_0x43c909,_0x565fa3,_0x1010ce){const _0x469fa8=_0x5f25e0;super(),_0x529b2e(this,_0x469fa8(0xf0),new Map()),(this[_0x469fa8(0x147)]=_0x43c909,this[_0x469fa8(0xcc)]=_0x565fa3,this[_0x469fa8(0xb1)]=_0x1010ce,this[_0x469fa8(0xb7)]());}async[_0x5f25e0(0x139)](_0x3f7c31){const _0x21ba7f=_0x5f25e0;return this[_0x21ba7f(0xf0)][_0x21ba7f(0x134)](_0x3f7c31)||await this[_0x21ba7f(0x107)](_0x3f7c31),this[_0x21ba7f(0xf0)]['get'](_0x3f7c31);}['getLiveShareCoordinatorSync'](_0x1fd24a){const _0x459b4c=_0x5f25e0;var _0x1614c1;return(_0x1614c1=this['_entities'][_0x459b4c(0xbd)](_0x1fd24a))!=null?_0x1614c1:null;}[_0x5f25e0(0xb7)](){const _0x1496bb=_0x5f25e0;this[_0x1496bb(0x147)][_0x1496bb(0xc3)](_0x3cb17c['UniverInstanceType'][_0x1496bb(0x11e)])[_0x1496bb(0x73)](_0x18ed04['takeUntil'](this[_0x1496bb(0x10c)]))[_0x1496bb(0xf1)](async _0x55605e=>{const _0x57950f=_0x1496bb,_0x4cd952=_0x55605e['getUnitId']();this[_0x57950f(0xf0)]['has'](_0x4cd952)||this[_0x57950f(0x107)](_0x4cd952);}),this['_univerInstanceService'][_0x1496bb(0x124)](_0x3cb17c[_0x1496bb(0xc8)][_0x1496bb(0x11e)])[_0x1496bb(0x73)](_0x18ed04[_0x1496bb(0x137)](this[_0x1496bb(0x10c)]))[_0x1496bb(0xf1)](_0x778022=>{const _0x4fedb5=_0x1496bb,_0xcbe6d1=_0x778022[_0x4fedb5(0x6d)](),_0x1e917e=this[_0x4fedb5(0xf0)][_0x4fedb5(0xbd)](_0xcbe6d1);_0x1e917e==null||_0x1e917e[_0x4fedb5(0x103)]();});}async[_0x5f25e0(0x107)](_0x3daba9){const _0x2b27da=_0x5f25e0,_0xd0fb72=await this['_collabSessionService'][_0x2b27da(0xf7)](_0x3daba9),_0x1d6e64=this[_0x2b27da(0xcc)]['createInstance'](_0x262252['LiveShareCoordinator'],_0x3daba9,_0xd0fb72);return _0x1d6e64['init'](),this[_0x2b27da(0xf0)]['set'](_0x3daba9,_0x1d6e64),_0x1d6e64;}},_0x262252['LiveShareController']=_0x275c2f([_0x9efa8f(0x0,_0x3cb17c[_0x5f25e0(0xd7)]),_0x9efa8f(0x1,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c['Injector'])),_0x9efa8f(0x2,_0x3cb17c[_0x5f25e0(0xda)](_0x3c93ca[_0x5f25e0(0xe6)]))],_0x262252['LiveShareController']);var _0x1e5c53=(_0x2444fb=>(_0x2444fb[_0x5f25e0(0xca)]=_0x5f25e0(0xe3),_0x2444fb['IDLE']=_0x5f25e0(0x11b),_0x2444fb[_0x5f25e0(0x141)]=_0x5f25e0(0x11a),_0x2444fb[_0x5f25e0(0x136)]=_0x5f25e0(0x119),_0x2444fb[_0x5f25e0(0x12b)]=_0x5f25e0(0xc0),_0x2444fb))(_0x1e5c53||{});const _0xc62f15=_0x5f25e0(0x70),_0x456c9f=0xc8;_0x262252[_0x5f25e0(0x105)]=class extends _0x3cb17c[_0x5f25e0(0x13f)]{constructor(_0x55506b,_0x19f8cd,_0x5c1604,_0x48d011,_0x223789){const _0x3f1421=_0x5f25e0;super(),_0x529b2e(this,_0x3f1421(0x7a),new _0x2edef2[(_0x3f1421(0x12c))](_0x3f1421(0x11b))),_0x529b2e(this,_0x3f1421(0x75),this[_0x3f1421(0x7a)]['asObservable']()),_0x529b2e(this,_0x3f1421(0xb7),!0x1),_0x529b2e(this,_0x3f1421(0x114),null),_0x529b2e(this,_0x3f1421(0x130),null),(this[_0x3f1421(0xd1)]=_0x55506b,this['_collabSession']=_0x19f8cd,this[_0x3f1421(0x96)]=_0x5c1604,this['_liveShareService']=_0x48d011,this[_0x3f1421(0x12d)]=_0x223789);}get[_0x5f25e0(0x115)](){const _0x51f5ca=_0x5f25e0;return this[_0x51f5ca(0x7a)][_0x51f5ca(0x131)]();}[_0x5f25e0(0x103)](){const _0xef862=_0x5f25e0;var _0x561980;(_0x561980=this[_0xef862(0x114)])==null||_0x561980[_0xef862(0x103)](),this[_0xef862(0x7a)][_0xef862(0x89)](_0xef862(0x11b)),this[_0xef862(0x7a)][_0xef862(0x111)]();}[_0x5f25e0(0xc9)](){const _0x25c014=_0x5f25e0;return this[_0x25c014(0x115)];}[_0x5f25e0(0xf4)](){const _0x2fa4b3=_0x5f25e0;this['_init']||(this[_0x2fa4b3(0xb7)]=!0x0,this[_0x2fa4b3(0x123)][_0x2fa4b3(0x112)][_0x2fa4b3(0x73)](_0x18ed04[_0x2fa4b3(0x137)](this[_0x2fa4b3(0x10c)]))['subscribe'](_0x21f16c=>{const _0x496b86=_0x2fa4b3;switch(_0x21f16c){case _0x3c93ca[_0x496b86(0xd0)][_0x496b86(0xca)]:this[_0x496b86(0x13a)]();break;case _0x3c93ca[_0x496b86(0xd0)][_0x496b86(0xd2)]:this[_0x496b86(0xad)]();break;}}),this[_0x2fa4b3(0x123)][_0x2fa4b3(0x80)][_0x2fa4b3(0x73)](_0x18ed04['takeUntil'](this[_0x2fa4b3(0x10c)]))[_0x2fa4b3(0xf1)](_0x527858=>{const _0x40a1a0=_0x2fa4b3,{eventID:_0x4ed0dd}=_0x527858;switch(_0x4ed0dd){case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0x91)]:this['_handleNewHost'](_0x527858);break;case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0x10b)]:this[_0x40a1a0(0x7c)](_0x527858);break;case _0x17a8ce['CollaborationEvent'][_0x40a1a0(0x135)]:this['_handleTerminate']();break;case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0xa0)]:this[_0x40a1a0(0xfc)](_0x527858);break;}}));}[_0x5f25e0(0xea)](){const _0x12e5ca=_0x5f25e0;this[_0x12e5ca(0x123)]['send']({'eventID':_0x17a8ce[_0x12e5ca(0x12f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x12e5ca(0x123)][_0x12e5ca(0xdb)]()}},this[_0x12e5ca(0xd1)]);}[_0x5f25e0(0x10f)](){const _0x177e4c=_0x5f25e0;this[_0x177e4c(0x115)]==='presenting'&&(this[_0x177e4c(0x7a)][_0x177e4c(0x89)](_0x177e4c(0x11b)),this[_0x177e4c(0x123)][_0x177e4c(0xd6)]({'eventID':_0x17a8ce[_0x177e4c(0x12f)][_0x177e4c(0x135)],'data':{'unitID':this[_0x177e4c(0xd1)]}},this[_0x177e4c(0xd1)]));}[_0x5f25e0(0x100)](){const _0x41e81d=_0x5f25e0;this[_0x41e81d(0x115)]===_0x41e81d(0x119)&&(this[_0x41e81d(0x7a)]['next'](_0x41e81d(0x11a)),this[_0x41e81d(0xa3)]());}[_0x5f25e0(0x12a)](){const _0x47e287=_0x5f25e0;this[_0x47e287(0x115)]===_0x47e287(0x11a)&&this[_0x47e287(0x7f)]();}[_0x5f25e0(0xed)](_0x337006){const _0x1e9671=_0x5f25e0,{presenter:_0x39358b}=_0x337006[_0x1e9671(0xba)],_0x272292=this[_0x1e9671(0x123)][_0x1e9671(0xdb)]();this[_0x1e9671(0x130)]=_0x39358b,_0x39358b===_0x272292?(this[_0x1e9671(0x7f)](),this[_0x1e9671(0x6f)]()):this[_0x1e9671(0x115)]!==_0x1e9671(0x119)&&(this[_0x1e9671(0x9e)](),this[_0x1e9671(0xa3)]());}[_0x5f25e0(0xf8)](){const _0x5a465a=_0x5f25e0,_0x427cba={'eventID':_0x17a8ce[_0x5a465a(0x12f)][_0x5a465a(0x102)]};this[_0x5a465a(0x123)]['send'](_0x427cba,this[_0x5a465a(0xd1)]);}[_0x5f25e0(0xbe)](){const _0x1868ff=_0x5f25e0;this[_0x1868ff(0x130)]=null,this['_status']!=='presenting'&&this[_0x1868ff(0x72)]();}[_0x5f25e0(0xfc)](_0x2be0f3){const _0xf6c492=_0x5f25e0;if(this[_0xf6c492(0x115)]===_0xf6c492(0x11a)&&this[_0xf6c492(0x130)]===_0x2be0f3[_0xf6c492(0xba)]['memberID']){const _0xbf2447=_0x17a8ce[_0xf6c492(0x122)](_0x2be0f3['data'])[_0xf6c492(0xb5)][_0xf6c492(0x95)]()[_0xf6c492(0x8c)](_0x508463=>_0x508463['id']===_0x4db795[_0xf6c492(0x121)]['id']);if(_0xbf2447){const _0x599f70=_0xbf2447[_0xf6c492(0x12e)][_0xf6c492(0x6a)],_0x1727fc=_0xbf2447[_0xf6c492(0x12e)][_0xf6c492(0x7b)]['id'];setTimeout(()=>{const _0x4264a6=_0xf6c492;this[_0x4264a6(0x12d)][_0x4264a6(0x10e)](_0x4db795[_0x4264a6(0xb4)]['id'],{'unitId':_0x599f70,'subUnitId':_0x1727fc},{'fromCollab':!0x0});});}}}[_0x5f25e0(0x6f)](){const _0x126113=_0x5f25e0;this[_0x126113(0x7a)][_0x126113(0x89)](_0x126113(0xc0));const _0x58285c=new Map(),_0x33925f=this['_commandDisposable']=new _0x3cb17c[(_0x126113(0xae))]();_0x33925f['add'](_0x3cb17c['toDisposable'](()=>{const _0x20e771=_0x126113;_0x58285c[_0x20e771(0x109)](_0x3700ad=>_0x3700ad['complete']()),_0x58285c['clear']();})),_0x33925f[_0x126113(0xc5)](this[_0x126113(0x12d)][_0x126113(0x85)](_0x41e6c3=>{const _0x1408c2=_0x126113;var _0x2aee3e;if(_0x41e6c3[_0x1408c2(0xdd)]!==_0x3cb17c[_0x1408c2(0xc2)][_0x1408c2(0x6b)]||!this['_liveShareService'][_0x1408c2(0xf6)](_0x41e6c3['id']))return;const {id:_0x5d7b81}=_0x41e6c3;let _0x5de883;_0x58285c[_0x1408c2(0x134)](_0x5d7b81)?_0x5de883=_0x58285c['get'](_0x5d7b81):(_0x5de883=new _0x2edef2['Subject'](),_0x58285c[_0x1408c2(0x14b)](_0x5d7b81,_0x5de883),_0x5de883['pipe'](_0x18ed04['throttleTime']((_0x2aee3e=this[_0x1408c2(0x96)]['getConfig'](_0xc62f15))!=null?_0x2aee3e:_0x456c9f,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1408c2(0xf1)](_0x22e384=>{const _0x34936b=_0x1408c2;this[_0x34936b(0x123)][_0x34936b(0xd6)]({'eventID':_0x17a8ce[_0x34936b(0x12f)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34936b(0xd1)],'operations':{[_0x22e384['id']]:{'id':_0x22e384['id'],'params':JSON[_0x34936b(0x146)](_0x22e384[_0x34936b(0x12e)])}}}},this[_0x34936b(0xd1)]);})),_0x5de883[_0x1408c2(0x89)](_0x41e6c3);})),this['_liveShareService'][_0x126113(0xb3)](this[_0x126113(0xd1)])[_0x126113(0x109)](_0x5de72d=>this[_0x126113(0x123)][_0x126113(0xd6)]({'eventID':_0x17a8ce[_0x126113(0x12f)][_0x126113(0x10b)],'data':{'unitID':this[_0x126113(0xd1)],'operations':{[_0x5de72d['id']]:{'id':_0x5de72d['id'],'params':JSON[_0x126113(0x146)](_0x5de72d[_0x126113(0x12e)])}}}},this[_0x126113(0xd1)]));}[_0x5f25e0(0x9e)](){const _0x1348f3=_0x5f25e0;var _0x24f639;this[_0x1348f3(0x7a)][_0x1348f3(0x89)]('idle'),(_0x24f639=this[_0x1348f3(0x114)])==null||_0x24f639[_0x1348f3(0x103)](),this['_commandDisposable']=null;}[_0x5f25e0(0xa3)](){const _0x15f697=_0x5f25e0;var _0x9627c7;(_0x9627c7=this['_commandDisposable'])==null||_0x9627c7[_0x15f697(0x103)](),this[_0x15f697(0x7a)][_0x15f697(0x89)](_0x15f697(0x11a));}[_0x5f25e0(0x72)](){const _0x26f735=_0x5f25e0;var _0x460f6d;this[_0x26f735(0x7a)][_0x26f735(0x89)](_0x26f735(0x11b)),(_0x460f6d=this[_0x26f735(0x114)])==null||_0x460f6d[_0x26f735(0x103)](),this[_0x26f735(0x114)]=null;}['_stopFollowing'](){const _0x3703e5=_0x5f25e0;var _0x156119;this[_0x3703e5(0x7a)][_0x3703e5(0x89)](_0x3703e5(0x119)),(_0x156119=this['_commandDisposable'])==null||_0x156119['dispose']();}[_0x5f25e0(0x7c)](_0x7b4a3){const _0x8c7db6=_0x5f25e0;if(['presenting',_0x8c7db6(0x119),_0x8c7db6(0xe3)][_0x8c7db6(0xaf)](this['_status'])||!_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0xe7)]||_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0xe7)]===this[_0x8c7db6(0x123)]['getMemberID']())return;this[_0x8c7db6(0x115)]===_0x8c7db6(0x11b)&&this[_0x8c7db6(0xa3)]();const _0x4c6c3b=_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0x140)];Object['values'](_0x4c6c3b)[_0x8c7db6(0x109)](_0x5f1862=>{const _0x314a8b=_0x8c7db6;this[_0x314a8b(0x12d)][_0x314a8b(0x10e)](_0x5f1862['id'],_0x5f1862['params']?JSON['parse'](_0x5f1862['params']):null,{'fromCollab':!0x0});});}[_0x5f25e0(0x13a)](){const _0xef360b=_0x5f25e0;var _0x4d843c;this[_0xef360b(0x7a)][_0xef360b(0x89)](_0xef360b(0xe3)),(_0x4d843c=this['_commandDisposable'])==null||_0x4d843c['dispose']();}[_0x5f25e0(0xad)](){const _0x516b71=_0x5f25e0;this[_0x516b71(0x7a)][_0x516b71(0x89)](_0x516b71(0x11b)),this[_0x516b71(0xf8)]();}},_0x262252[_0x5f25e0(0x105)]=_0x275c2f([_0x9efa8f(0x2,_0x3cb17c[_0x5f25e0(0x13d)]),_0x9efa8f(0x3,_0x3cb17c[_0x5f25e0(0xda)](_0x426902)),_0x9efa8f(0x4,_0x3cb17c[_0x5f25e0(0x152)])],_0x262252['LiveShareCoordinator']);function _0x1daf63(){const _0x429b1b=_0x5f25e0,_0x213fb6=_0x404ca8['useDependency'](_0x262252[_0x429b1b(0x11d)]),_0x182c27=_0x404ca8[_0x429b1b(0x83)](_0x3cb17c[_0x429b1b(0xd7)]),_0x5acdf2=_0x404ca8[_0x429b1b(0x13e)](()=>_0x182c27['getCurrentTypeOfUnit$'](_0x3cb17c['UniverInstanceType'][_0x429b1b(0x11e)]),void 0x0,!0x1,[]),[_0x5de0d8,_0x266787]=_0x4a444c['useState'](null),[_0x550941,_0x2688cd]=_0x4a444c[_0x429b1b(0xb2)](_0x1e5c53[_0x429b1b(0x6c)]),_0x3de193=_0x4a444c[_0x429b1b(0xa7)](null);return _0x4a444c['useEffect'](()=>(_0x5acdf2&&_0x213fb6[_0x429b1b(0x139)](_0x5acdf2[_0x429b1b(0x6d)]())[_0x429b1b(0x153)](_0xa5b34a=>{const _0x2dc0eb=_0x429b1b;_0x266787(_0xa5b34a),_0x3de193[_0x2dc0eb(0xc1)]=_0xa5b34a[_0x2dc0eb(0x75)][_0x2dc0eb(0xf1)](_0x2c3f19=>{_0x2688cd(_0x2c3f19);});}),()=>{const _0x3409d4=_0x429b1b;var _0x3ca729;(_0x3ca729=_0x3de193[_0x3409d4(0xc1)])==null||_0x3ca729[_0x3409d4(0x101)](),_0x3de193[_0x3409d4(0xc1)]=null;}),[_0x5acdf2,_0x213fb6]),_0x5de0d8?_0x265310[_0x429b1b(0x129)](_0x51144a[_0x429b1b(0xe4)],{'align':_0x429b1b(0xce),'disabled':_0x550941===_0x1e5c53[_0x429b1b(0xca)],'className':_0x429b1b(0x104),'overlay':_0x265310[_0x429b1b(0x129)](_0x5e6777,{'status':_0x550941,'coordinator':_0x5de0d8}),'children':_0x265310[_0x429b1b(0x129)](_0x429b1b(0x9d),{'className':_0x51144a['clsx'](_0x429b1b(0xaa),{'univer-cursor-not-allowed':_0x550941===_0x1e5c53['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550941!==_0x1e5c53[_0x429b1b(0xca)]}),'type':_0x429b1b(0x9d),'children':_0x265310[_0x429b1b(0x129)](_0x591cf0,{'className':_0x429b1b(0x13b)})})}):null;}function _0x5e6777(_0x3ca68a){const _0x325272=_0x5f25e0,{status:_0x2ddd4d,coordinator:_0x27e98b}=_0x3ca68a;switch(_0x2ddd4d){case _0x1e5c53[_0x325272(0x6c)]:return _0x265310[_0x325272(0x129)](_0x1a1731,{'coordinator':_0x27e98b});case _0x1e5c53['FOLLOWING']:return _0x265310['jsx'](_0x26406b,{'coordinator':_0x27e98b});case _0x1e5c53[_0x325272(0x136)]:return _0x265310[_0x325272(0x129)](_0x3bfb4f,{'coordinator':_0x27e98b});case _0x1e5c53[_0x325272(0xca)]:return _0x265310[_0x325272(0x129)](_0x3910b6,{});case _0x1e5c53[_0x325272(0x12b)]:return _0x265310[_0x325272(0x129)](_0x54d058,{'coordinator':_0x27e98b});default:return null;}}function _0x1a1731(_0x54d829){const _0x385a75=_0x5f25e0,{coordinator:_0x285988}=_0x54d829;return _0x265310[_0x385a75(0xf9)](_0x265310[_0x385a75(0x90)],{'children':[_0x265310[_0x385a75(0x129)](_0x385a75(0x8a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x385a75(0xec)}),_0x265310['jsx'](_0x51144a[_0x385a75(0xbb)],{'onClick':()=>_0x285988[_0x385a75(0xea)](),'children':_0x385a75(0xf2)})]});}function _0x26406b(_0x3f7e05){const _0x3dcf56=_0x5f25e0,{coordinator:_0x34cba1}=_0x3f7e05;return _0x265310['jsxs'](_0x265310[_0x3dcf56(0x90)],{'children':[_0x265310['jsx'](_0x3dcf56(0x8a),{'className':_0x3dcf56(0xe0),'children':_0x3dcf56(0xa8)}),_0x265310[_0x3dcf56(0x129)](_0x51144a['Button'],{'onClick':()=>_0x34cba1[_0x3dcf56(0x12a)](),'children':_0x3dcf56(0xf3)})]});}function _0x3bfb4f(_0x38e23d){const _0x39c2d9=_0x5f25e0,{coordinator:_0x47f112}=_0x38e23d;return _0x265310[_0x39c2d9(0xf9)](_0x265310[_0x39c2d9(0x90)],{'children':[_0x265310[_0x39c2d9(0x129)](_0x39c2d9(0x8a),{'className':_0x39c2d9(0xe0),'children':_0x39c2d9(0x11c)}),_0x265310['jsx'](_0x51144a[_0x39c2d9(0xbb)],{'variant':_0x39c2d9(0xff),'onClick':()=>_0x47f112['startFollowing'](),'children':_0x39c2d9(0x74)})]});}function _0x54d058(_0x48bda2){const _0x6a85d0=_0x5f25e0,{coordinator:_0x543e8f}=_0x48bda2;return _0x265310[_0x6a85d0(0xf9)](_0x265310[_0x6a85d0(0x90)],{'children':[_0x265310[_0x6a85d0(0x129)](_0x6a85d0(0x8a),{'className':_0x6a85d0(0xe0),'children':_0x6a85d0(0x106)}),_0x265310[_0x6a85d0(0x129)](_0x51144a[_0x6a85d0(0xbb)],{'variant':'default','onClick':()=>_0x543e8f[_0x6a85d0(0x10f)](),'children':'Stop\x20presenting'})]});}function _0x3910b6(){const _0x25e6d2=_0x5f25e0;return _0x265310[_0x25e6d2(0x129)](_0x265310['Fragment'],{'children':_0x25e6d2(0x133)});}var _0x120e70=Object['getOwnPropertyDescriptor'],_0x9aa85b=(_0x46492f,_0x529344,_0x4cd9bd,_0x5b7794)=>{const _0x23f408=_0x5f25e0;for(var _0xdc3a3d=_0x5b7794>0x1?void 0x0:_0x5b7794?_0x120e70(_0x529344,_0x4cd9bd):_0x529344,_0x3ab85b=_0x46492f[_0x23f408(0xe2)]-0x1,_0x4e291d;_0x3ab85b>=0x0;_0x3ab85b--)(_0x4e291d=_0x46492f[_0x3ab85b])&&(_0xdc3a3d=_0x4e291d(_0xdc3a3d)||_0xdc3a3d);return _0xdc3a3d;},_0x50d925=(_0x1436b2,_0x351f72)=>(_0x2acb6b,_0x18251d)=>_0x351f72(_0x2acb6b,_0x18251d,_0x1436b2);_0x262252[_0x5f25e0(0x151)]=class extends _0x3cb17c[_0x5f25e0(0xdc)]{constructor(_0x41ba22,_0x1b703f){const _0x4c132a=_0x5f25e0;super(),this[_0x4c132a(0xcc)]=_0x41ba22,this[_0x4c132a(0xe5)]=_0x1b703f,this[_0x4c132a(0xc7)]();}[_0x5f25e0(0xc7)](){const _0x432ad0=_0x5f25e0;this[_0x432ad0(0xf5)](this[_0x432ad0(0xe5)][_0x432ad0(0x98)](_0x404ca8[_0x432ad0(0x78)][_0x432ad0(0x88)],()=>_0x404ca8[_0x432ad0(0xb6)](_0x1daf63,this[_0x432ad0(0xcc)])));}},_0x262252[_0x5f25e0(0x151)]=_0x9aa85b([_0x50d925(0x0,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c[_0x5f25e0(0xd5)])),_0x50d925(0x1,_0x404ca8[_0x5f25e0(0x97)])],_0x262252[_0x5f25e0(0x151)]);const _0xafc072=_0x5f25e0(0x143),_0x4a3916={};var _0x129a62=Object[_0x5f25e0(0xcf)],_0x3820f5=(_0x1fdaf5,_0x35be0f,_0x587556,_0x2f35d2)=>{const _0x177eaf=_0x5f25e0;for(var _0x2e2116=_0x2f35d2>0x1?void 0x0:_0x2f35d2?_0x129a62(_0x35be0f,_0x587556):_0x35be0f,_0x3e90c3=_0x1fdaf5[_0x177eaf(0xe2)]-0x1,_0x4192d7;_0x3e90c3>=0x0;_0x3e90c3--)(_0x4192d7=_0x1fdaf5[_0x3e90c3])&&(_0x2e2116=_0x4192d7(_0x2e2116)||_0x2e2116);return _0x2e2116;},_0xd61be5=(_0x359691,_0x1dad63)=>(_0x23b2dd,_0x3df272)=>_0x1dad63(_0x23b2dd,_0x3df272,_0x359691);let _0x4d17a9=class extends _0x3cb17c['Disposable']{constructor(_0x8e7a53){const _0x31f3d3=_0x5f25e0;super(),this[_0x31f3d3(0x144)]=_0x8e7a53,this['_init']();}[_0x5f25e0(0xb7)](){const _0x3b361a=_0x5f25e0;[_0x1ac73e[_0x3b361a(0xd3)]['id'],_0x1ac73e[_0x3b361a(0x14d)]['id'],_0x4db795[_0x3b361a(0xb4)]['id']]['forEach'](_0xb5e7b=>{const _0xe183c=_0x3b361a;this[_0xe183c(0xf5)](this[_0xe183c(0x144)][_0xe183c(0x9f)](_0xb5e7b));});}};_0x4d17a9=_0x3820f5([_0xd61be5(0x0,_0x3cb17c[_0x5f25e0(0xda)](_0x426902))],_0x4d17a9);var _0x50f651=Object[_0x5f25e0(0x14e)],_0x214261=Object[_0x5f25e0(0xcf)],_0x4eba48=(_0x3fb559,_0x260fe7,_0x3810d9)=>_0x260fe7 in _0x3fb559?_0x50f651(_0x3fb559,_0x260fe7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3810d9}):_0x3fb559[_0x260fe7]=_0x3810d9,_0x352d85=(_0x28f9ea,_0x2719eb,_0x47b9fb,_0x30447f)=>{for(var _0x1125e8=_0x30447f>0x1?void 0x0:_0x30447f?_0x214261(_0x2719eb,_0x47b9fb):_0x2719eb,_0x416dc2=_0x28f9ea['length']-0x1,_0x39b494;_0x416dc2>=0x0;_0x416dc2--)(_0x39b494=_0x28f9ea[_0x416dc2])&&(_0x1125e8=_0x39b494(_0x1125e8)||_0x1125e8);return _0x1125e8;},_0x128a8b=(_0xe2a19c,_0x187cf7)=>(_0x455e98,_0x486dc0)=>_0x187cf7(_0x455e98,_0x486dc0,_0xe2a19c),_0x45d1f5=(_0x2a1145,_0x5f58e7,_0x1835c1)=>_0x4eba48(_0x2a1145,typeof _0x5f58e7!='symbol'?_0x5f58e7+'':_0x5f58e7,_0x1835c1);const _0x194a68=_0x5f25e0(0x82);_0x262252[_0x5f25e0(0x125)]=class extends _0x3cb17c[_0x5f25e0(0x92)]{constructor(_0x46f331=_0x4a3916,_0x235aeb,_0x322cfa){const _0x3dec22=_0x5f25e0;super(),this[_0x3dec22(0x79)]=_0x46f331,this['_injector']=_0x235aeb,this[_0x3dec22(0x96)]=_0x322cfa;const {..._0x489405}=_0x3cb17c['merge']({},_0x4a3916,this['_config']);this['_configService'][_0x3dec22(0x132)](_0xafc072,_0x489405);}[_0x5f25e0(0xb0)](){const _0x3035d8=_0x5f25e0;_0x3cb17c['registerDependencies'](this['_injector'],_0x3cb17c['mergeOverrideWithDependencies']([[_0x426902],[_0x262252[_0x3035d8(0x11d)]],[_0x4d17a9],[_0x262252[_0x3035d8(0x151)]]],this[_0x3035d8(0x79)]['override'])),_0x3cb17c[_0x3035d8(0x149)](this['_injector'],[[_0x4d17a9]]);}[_0x5f25e0(0x81)](){const _0x590da9=_0x5f25e0;_0x3cb17c[_0x590da9(0x149)](this[_0x590da9(0xcc)],[[_0x262252[_0x590da9(0x151)]]]);}},_0x45d1f5(_0x262252['UniverLiveSharePlugin'],_0x5f25e0(0xdd),_0x3cb17c[_0x5f25e0(0xc8)][_0x5f25e0(0x71)]),_0x45d1f5(_0x262252[_0x5f25e0(0x125)],_0x5f25e0(0xfb),_0x194a68),_0x262252['UniverLiveSharePlugin']=_0x352d85([_0x3cb17c[_0x5f25e0(0x94)](_0x3c93ca[_0x5f25e0(0xeb)]),_0x128a8b(0x1,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c[_0x5f25e0(0xd5)])),_0x128a8b(0x2,_0x3cb17c[_0x5f25e0(0x13d)])],_0x262252[_0x5f25e0(0x125)]),_0x262252['LiveShare']=_0x1daf63,_0x262252[_0x5f25e0(0xa1)]=_0x426902,_0x262252[_0x5f25e0(0xcd)]=_0x1e5c53,Object[_0x5f25e0(0x14e)](_0x262252,Symbol[_0x5f25e0(0xab)],{'value':'Module'});}));
1
+ (function(_0x3bb1d4,_0xfc04e9){const _0x353b2a=_0x207e,_0x94d0e5=_0x3bb1d4();while(!![]){try{const _0x5dd956=parseInt(_0x353b2a(0x2c3))/0x1+-parseInt(_0x353b2a(0x250))/0x2*(-parseInt(_0x353b2a(0x2cc))/0x3)+-parseInt(_0x353b2a(0x227))/0x4+-parseInt(_0x353b2a(0x2ab))/0x5+parseInt(_0x353b2a(0x219))/0x6+-parseInt(_0x353b2a(0x222))/0x7+parseInt(_0x353b2a(0x2cd))/0x8*(-parseInt(_0x353b2a(0x2c7))/0x9);if(_0x5dd956===_0xfc04e9)break;else _0x94d0e5['push'](_0x94d0e5['shift']());}catch(_0x58562a){_0x94d0e5['push'](_0x94d0e5['shift']());}}}(_0x3384,0x71569),function(_0x49bb0b,_0x3fcfc2){const _0x56a09d=_0x207e;typeof exports==_0x56a09d(0x298)&&typeof module<'u'?_0x3fcfc2(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==_0x56a09d(0x253)&&define[_0x56a09d(0x2ac)]?define(['exports',_0x56a09d(0x271),'@univerjs/ui',_0x56a09d(0x29b),'@univerjs/design',_0x56a09d(0x26f),_0x56a09d(0x2ad),_0x56a09d(0x230),_0x56a09d(0x27f),_0x56a09d(0x23d),_0x56a09d(0x209),_0x56a09d(0x2b7)],_0x3fcfc2):(_0x49bb0b=typeof globalThis<'u'?globalThis:_0x49bb0b||self,_0x3fcfc2(_0x49bb0b['UniverProLiveShare']={},_0x49bb0b['UniverCore'],_0x49bb0b[_0x56a09d(0x279)],_0x49bb0b[_0x56a09d(0x220)],_0x49bb0b[_0x56a09d(0x263)],_0x49bb0b[_0x56a09d(0x220)],_0x49bb0b[_0x56a09d(0x224)],_0x49bb0b[_0x56a09d(0x20e)],_0x49bb0b[_0x56a09d(0x276)],_0x49bb0b['rxjs'],_0x49bb0b['rxjs'][_0x56a09d(0x248)],_0x49bb0b['UniverSheetsUi']));}(this,function(_0x3489d5,_0xb5ae36,_0xc23a78,_0x14e61f,_0x3b0785,_0x4dd198,_0x73e55a,_0x5a862d,_0x45207c,_0x15c700,_0x3a846d,_0x4234cc){'use strict';const _0x5508b7=_0x207e;var _0x169ddd=Object[_0x5508b7(0x29a)],_0x3cc598=(_0x343796,_0x26eea0,_0x467fe4)=>_0x26eea0 in _0x343796?_0x169ddd(_0x343796,_0x26eea0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x467fe4}):_0x343796[_0x26eea0]=_0x467fe4,_0x5a0317=(_0x3784f7,_0xf96b3c,_0x57a444)=>_0x3cc598(_0x3784f7,typeof _0xf96b3c!=_0x5508b7(0x1f8)?_0xf96b3c+'':_0xf96b3c,_0x57a444);function _0x2db733({ref:_0x46d423,..._0x35286e}){const _0x3b585f=_0x5508b7,{icon:_0x356462,id:_0x35fa1f,className:_0x26c341,extend:_0x5314fb,..._0x252241}=_0x35286e,_0x267a9c=('univerjs-icon\x20univerjs-icon-'+_0x35fa1f+'\x20'+(_0x26c341||''))[_0x3b585f(0x1fe)](),_0x24ff9c=_0x4dd198[_0x3b585f(0x241)]('_'+_0x5b2387());return _0x219240(_0x356462,''+_0x35fa1f,{'defIds':_0x356462[_0x3b585f(0x2d2)],'idSuffix':_0x24ff9c[_0x3b585f(0x2c6)]},{'ref':_0x46d423,'className':_0x267a9c,..._0x252241},_0x5314fb);}function _0x219240(_0x489e3b,_0x2f86af,_0x33a68c,_0x4201ac,_0x3af69a){const _0x1fe379=_0x5508b7;return _0x4dd198[_0x1fe379(0x2b5)](_0x489e3b[_0x1fe379(0x2bf)],{'key':_0x2f86af,..._0x36d34f(_0x489e3b,_0x33a68c,_0x3af69a),..._0x4201ac},(_0x3c7d70(_0x489e3b,_0x33a68c)[_0x1fe379(0x265)]||[])[_0x1fe379(0x282)]((_0x450d84,_0x4cc24d)=>_0x219240(_0x450d84,_0x2f86af+'-'+_0x489e3b[_0x1fe379(0x2bf)]+'-'+_0x4cc24d,_0x33a68c,void 0x0,_0x3af69a)));}function _0x36d34f(_0x1109ef,_0x11d903,_0xec4ebe){const _0x33ea72=_0x5508b7,_0x1bfe27={..._0x1109ef[_0x33ea72(0x293)]};_0xec4ebe!=null&&_0xec4ebe[_0x33ea72(0x2ca)]&&_0x1bfe27[_0x33ea72(0x2be)]==='colorChannel1'&&(_0x1bfe27[_0x33ea72(0x2be)]=_0xec4ebe['colorChannel1']),_0x1109ef['tag']===_0x33ea72(0x29c)&&_0x1bfe27['id']&&(_0x1bfe27['id']=_0x1bfe27['id']+_0x11d903[_0x33ea72(0x246)]),Object[_0x33ea72(0x23e)](_0x1bfe27)['forEach'](([_0x11ac00,_0xc7d09e])=>{const _0x1c55d7=_0x33ea72;_0x11ac00===_0x1c55d7(0x29c)&&typeof _0xc7d09e==_0x1c55d7(0x274)&&(_0x1bfe27[_0x11ac00]=_0xc7d09e['replace'](/url\(#(.*)\)/,_0x1c55d7(0x2cf)+_0x11d903['idSuffix']+')'));});const {defIds:_0x24580e}=_0x11d903;return!_0x24580e||_0x24580e['length']===0x0||(_0x1109ef[_0x33ea72(0x2bf)]===_0x33ea72(0x21e)&&_0x1bfe27['xlink:href']&&(_0x1bfe27['xlink:href']=_0x1bfe27[_0x33ea72(0x2bb)]+_0x11d903[_0x33ea72(0x246)]),Object[_0x33ea72(0x23e)](_0x1bfe27)[_0x33ea72(0x272)](([_0x4ccc99,_0x134039])=>{const _0x388701=_0x33ea72;typeof _0x134039==_0x388701(0x274)&&(_0x1bfe27[_0x4ccc99]=_0x134039['replace'](/url\(#(.*)\)/,'url(#$1'+_0x11d903[_0x388701(0x246)]+')'));})),_0x1bfe27;}function _0x3c7d70(_0x3da28a,_0x439b93){const _0x4ab6d4=_0x5508b7;var _0x578251;const {defIds:_0x505ff4}=_0x439b93;return!_0x505ff4||_0x505ff4[_0x4ab6d4(0x244)]===0x0?_0x3da28a:_0x3da28a[_0x4ab6d4(0x2bf)]===_0x4ab6d4(0x285)&&((_0x578251=_0x3da28a[_0x4ab6d4(0x265)])!=null&&_0x578251[_0x4ab6d4(0x244)])?{..._0x3da28a,'children':_0x3da28a[_0x4ab6d4(0x265)][_0x4ab6d4(0x282)](_0x3a4bf9=>typeof _0x3a4bf9['attrs']['id']==_0x4ab6d4(0x274)&&_0x505ff4&&_0x505ff4['includes'](_0x3a4bf9[_0x4ab6d4(0x293)]['id'])?{..._0x3a4bf9,'attrs':{..._0x3a4bf9[_0x4ab6d4(0x293)],'id':_0x3a4bf9[_0x4ab6d4(0x293)]['id']+_0x439b93[_0x4ab6d4(0x246)]}}:_0x3a4bf9)}:_0x3da28a;}function _0x5b2387(){const _0x212530=_0x5508b7;return Math[_0x212530(0x297)]()[_0x212530(0x223)](0x24)[_0x212530(0x212)](0x2,0x8);}_0x2db733[_0x5508b7(0x24a)]=_0x5508b7(0x259);const _0x48430c={'tag':'svg','attrs':{'xmlns':_0x5508b7(0x260),'fill':_0x5508b7(0x281),'viewBox':_0x5508b7(0x238),'width':_0x5508b7(0x1f3),'height':_0x5508b7(0x1f3)},'children':[{'tag':_0x5508b7(0x23b),'attrs':{'fill':_0x5508b7(0x25b),'d':_0x5508b7(0x240)}},{'tag':'path','attrs':{'fill':_0x5508b7(0x25b),'d':_0x5508b7(0x20b),'fillRule':_0x5508b7(0x269),'clipRule':'evenodd'}}]},_0x3ebec7=_0x4dd198['forwardRef'](function(_0x8082fd,_0x457f94){const _0xf4b6d9=_0x5508b7;return _0x4dd198[_0xf4b6d9(0x2b5)](_0x2db733,Object[_0xf4b6d9(0x1fa)]({},_0x8082fd,{'id':'live-share-icon','ref':_0x457f94,'icon':_0x48430c}));});_0x3ebec7[_0x5508b7(0x24a)]='LiveShareIcon';class _0x14b749 extends _0xb5ae36[_0x5508b7(0x207)]{constructor(){const _0x40f594=_0x5508b7;super(...arguments),_0x5a0317(this,'_sharedOperations',new Set()),_0x5a0317(this,_0x40f594(0x226),new Set());}[_0x5508b7(0x273)](_0x2a8708){const _0x3540d1=_0x5508b7;return this[_0x3540d1(0x211)][_0x3540d1(0x24f)](_0x2a8708),_0xb5ae36[_0x3540d1(0x202)](()=>this[_0x3540d1(0x211)]['delete'](_0x2a8708));}['registerInitialStateReporter'](_0x4a43d1){const _0x2c820a=_0x5508b7;return this['_reporters']['add'](_0x4a43d1),_0xb5ae36[_0x2c820a(0x202)](()=>this[_0x2c820a(0x226)]['delete'](_0x4a43d1));}['shouldShareOperation'](_0x415f91){return this['_sharedOperations']['has'](_0x415f91);}['getInitialStates'](_0x2e1a6d){const _0x46a787=_0x5508b7;return Array[_0x46a787(0x24d)](this['_reporters'])[_0x46a787(0x282)](_0x26b2d7=>_0x26b2d7(_0x2e1a6d));}}var _0x57be60=Object[_0x5508b7(0x22d)],_0x235117=(_0x4531ff,_0xc91cb0,_0x5b7288,_0x31ae1a)=>{const _0x4fdab9=_0x5508b7;for(var _0x566123=_0x31ae1a>0x1?void 0x0:_0x31ae1a?_0x57be60(_0xc91cb0,_0x5b7288):_0xc91cb0,_0x23341d=_0x4531ff[_0x4fdab9(0x244)]-0x1,_0x472b6d;_0x23341d>=0x0;_0x23341d--)(_0x472b6d=_0x4531ff[_0x23341d])&&(_0x566123=_0x472b6d(_0x566123)||_0x566123);return _0x566123;},_0x10b05b=(_0xd06d6,_0x44cd00)=>(_0x710b84,_0x2b1148)=>_0x44cd00(_0x710b84,_0x2b1148,_0xd06d6);_0x3489d5[_0x5508b7(0x267)]=class extends _0xb5ae36[_0x5508b7(0x2aa)]{constructor(_0x21e481,_0x29a03d,_0x13d963){const _0x7f854c=_0x5508b7;super(),_0x5a0317(this,_0x7f854c(0x1ff),new Map()),(this[_0x7f854c(0x290)]=_0x21e481,this[_0x7f854c(0x256)]=_0x29a03d,this[_0x7f854c(0x215)]=_0x13d963,this[_0x7f854c(0x247)]());}async[_0x5508b7(0x2ce)](_0x2da5ad){const _0x4c38d8=_0x5508b7;return this[_0x4c38d8(0x1ff)][_0x4c38d8(0x235)](_0x2da5ad)||await this[_0x4c38d8(0x20f)](_0x2da5ad),this[_0x4c38d8(0x1ff)][_0x4c38d8(0x22b)](_0x2da5ad);}[_0x5508b7(0x21a)](_0x3344d4){const _0x3945d4=_0x5508b7;var _0x3b1028;return(_0x3b1028=this[_0x3945d4(0x1ff)][_0x3945d4(0x22b)](_0x3344d4))!=null?_0x3b1028:null;}[_0x5508b7(0x247)](){const _0x1e07cf=_0x5508b7;this[_0x1e07cf(0x290)][_0x1e07cf(0x205)](_0xb5ae36[_0x1e07cf(0x29f)][_0x1e07cf(0x2c2)])[_0x1e07cf(0x26d)](_0x3a846d[_0x1e07cf(0x26b)](this[_0x1e07cf(0x203)]))[_0x1e07cf(0x24e)](async _0x429349=>{const _0x36c2e4=_0x1e07cf,_0x451e9b=_0x429349['getUnitId']();this[_0x36c2e4(0x1ff)][_0x36c2e4(0x235)](_0x451e9b)||this[_0x36c2e4(0x20f)](_0x451e9b);}),this[_0x1e07cf(0x290)][_0x1e07cf(0x28c)](_0xb5ae36[_0x1e07cf(0x29f)][_0x1e07cf(0x2c2)])[_0x1e07cf(0x26d)](_0x3a846d[_0x1e07cf(0x26b)](this[_0x1e07cf(0x203)]))[_0x1e07cf(0x24e)](_0x39e42e=>{const _0x327988=_0x1e07cf,_0x1e505d=_0x39e42e[_0x327988(0x25e)](),_0x31d59e=this[_0x327988(0x1ff)][_0x327988(0x22b)](_0x1e505d);_0x31d59e==null||_0x31d59e[_0x327988(0x299)]();});}async[_0x5508b7(0x20f)](_0x1d12d8){const _0x1b416b=_0x5508b7,_0x41d031=await this['_collabSessionService'][_0x1b416b(0x216)](_0x1d12d8),_0x3a8ff6=this[_0x1b416b(0x256)][_0x1b416b(0x2af)](_0x3489d5[_0x1b416b(0x288)],_0x1d12d8,_0x41d031);return _0x3a8ff6[_0x1b416b(0x1f2)](),this[_0x1b416b(0x1ff)][_0x1b416b(0x2a2)](_0x1d12d8,_0x3a8ff6),_0x3a8ff6;}},_0x3489d5['LiveShareController']=_0x235117([_0x10b05b(0x0,_0xb5ae36[_0x5508b7(0x232)]),_0x10b05b(0x1,_0xb5ae36[_0x5508b7(0x25f)](_0xb5ae36[_0x5508b7(0x1f7)])),_0x10b05b(0x2,_0xb5ae36[_0x5508b7(0x25f)](_0x5a862d[_0x5508b7(0x2b6)]))],_0x3489d5[_0x5508b7(0x267)]);var _0x12bed9=(_0x29986d=>(_0x29986d['OFFLINE']=_0x5508b7(0x200),_0x29986d['IDLE']=_0x5508b7(0x21d),_0x29986d[_0x5508b7(0x201)]=_0x5508b7(0x296),_0x29986d[_0x5508b7(0x27c)]=_0x5508b7(0x234),_0x29986d[_0x5508b7(0x266)]=_0x5508b7(0x233),_0x29986d))(_0x12bed9||{});const _0x46bd8a=_0x5508b7(0x2b0),_0x1bc222=0xc8;_0x3489d5[_0x5508b7(0x288)]=class extends _0xb5ae36[_0x5508b7(0x2aa)]{constructor(_0x1deb8f,_0x334487,_0x3286b5,_0x1fc16b,_0x5ebcc6){const _0x445985=_0x5508b7;super(),_0x5a0317(this,_0x445985(0x20d),new _0x15c700['BehaviorSubject']('idle')),_0x5a0317(this,_0x445985(0x2d0),this[_0x445985(0x20d)]['asObservable']()),_0x5a0317(this,_0x445985(0x247),!0x1),_0x5a0317(this,_0x445985(0x2a8),null),_0x5a0317(this,_0x445985(0x2a9),null),(this[_0x445985(0x1f6)]=_0x1deb8f,this[_0x445985(0x23f)]=_0x334487,this[_0x445985(0x28e)]=_0x3286b5,this[_0x445985(0x21b)]=_0x1fc16b,this[_0x445985(0x28b)]=_0x5ebcc6);}get[_0x5508b7(0x28a)](){const _0x50d630=_0x5508b7;return this[_0x50d630(0x20d)]['getValue']();}[_0x5508b7(0x299)](){const _0x3bbd33=_0x5508b7;var _0x63e6b3;(_0x63e6b3=this[_0x3bbd33(0x2a8)])==null||_0x63e6b3[_0x3bbd33(0x299)](),this[_0x3bbd33(0x20d)]['next'](_0x3bbd33(0x21d)),this[_0x3bbd33(0x20d)][_0x3bbd33(0x2a0)]();}[_0x5508b7(0x1f9)](){const _0x157e19=_0x5508b7;return this[_0x157e19(0x28a)];}[_0x5508b7(0x1f2)](){const _0x2d538d=_0x5508b7;this[_0x2d538d(0x247)]||(this[_0x2d538d(0x247)]=!0x0,this[_0x2d538d(0x23f)][_0x2d538d(0x225)]['pipe'](_0x3a846d[_0x2d538d(0x26b)](this['dispose$']))[_0x2d538d(0x24e)](_0x506b42=>{const _0x35994b=_0x2d538d;switch(_0x506b42){case _0x5a862d[_0x35994b(0x254)][_0x35994b(0x270)]:this['_handleOffline']();break;case _0x5a862d['SessionStatus'][_0x35994b(0x29e)]:this[_0x35994b(0x210)]();break;}}),this[_0x2d538d(0x23f)][_0x2d538d(0x228)][_0x2d538d(0x26d)](_0x3a846d[_0x2d538d(0x26b)](this[_0x2d538d(0x203)]))[_0x2d538d(0x24e)](_0x2af886=>{const _0x3fe095=_0x2d538d,{eventID:_0x463fdc}=_0x2af886;switch(_0x463fdc){case _0x73e55a[_0x3fe095(0x206)][_0x3fe095(0x1f4)]:this[_0x3fe095(0x1fd)](_0x2af886);break;case _0x73e55a['CollaborationEvent'][_0x3fe095(0x2b2)]:this[_0x3fe095(0x2c1)](_0x2af886);break;case _0x73e55a[_0x3fe095(0x206)]['LIVESHARE_TERMINATE']:this[_0x3fe095(0x231)]();break;case _0x73e55a[_0x3fe095(0x206)][_0x3fe095(0x249)]:this[_0x3fe095(0x277)](_0x2af886);break;}}));}[_0x5508b7(0x2b3)](){const _0x4c5750=_0x5508b7;this['_collabSession'][_0x4c5750(0x27e)]({'eventID':_0x73e55a[_0x4c5750(0x206)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4c5750(0x1f6)],'userID':this['_collabSession'][_0x4c5750(0x1f5)]()}},this[_0x4c5750(0x1f6)]);}[_0x5508b7(0x213)](){const _0x50c044=_0x5508b7;this[_0x50c044(0x28a)]==='presenting'&&(this[_0x50c044(0x20d)][_0x50c044(0x28d)](_0x50c044(0x21d)),this[_0x50c044(0x23f)][_0x50c044(0x27e)]({'eventID':_0x73e55a[_0x50c044(0x206)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x50c044(0x1f6)]));}[_0x5508b7(0x284)](){const _0x3fbdc3=_0x5508b7;this[_0x3fbdc3(0x28a)]===_0x3fbdc3(0x234)&&(this['_status$'][_0x3fbdc3(0x28d)](_0x3fbdc3(0x296)),this['_startFollowing']());}[_0x5508b7(0x2c8)](){const _0x446d86=_0x5508b7;this[_0x446d86(0x28a)]===_0x446d86(0x296)&&this['_stopFollowing']();}[_0x5508b7(0x1fd)](_0x567610){const _0x34153f=_0x5508b7,{presenter:_0x4da660}=_0x567610['data'],_0x1080c1=this[_0x34153f(0x23f)][_0x34153f(0x1f5)]();this[_0x34153f(0x2a9)]=_0x4da660,_0x4da660===_0x1080c1?(this[_0x34153f(0x264)](),this[_0x34153f(0x221)]()):this[_0x34153f(0x28a)]!=='not-following'&&(this[_0x34153f(0x257)](),this[_0x34153f(0x2c9)]());}[_0x5508b7(0x2b4)](){const _0x22cca4=_0x5508b7,_0x31eaa0={'eventID':_0x73e55a['CollaborationEvent'][_0x22cca4(0x25c)]};this[_0x22cca4(0x23f)]['send'](_0x31eaa0,this[_0x22cca4(0x1f6)]);}['_handleTerminate'](){const _0x42d65c=_0x5508b7;this[_0x42d65c(0x2a9)]=null,this[_0x42d65c(0x28a)]!==_0x42d65c(0x233)&&this['_beIdle']();}[_0x5508b7(0x277)](_0x4a99b1){const _0x4def90=_0x5508b7;if(this[_0x4def90(0x28a)]===_0x4def90(0x296)&&this[_0x4def90(0x2a9)]===_0x4a99b1[_0x4def90(0x1fc)][_0x4def90(0x2a7)]){const _0x1aff91=_0x73e55a['parseProtocolChangeset'](_0x4a99b1[_0x4def90(0x1fc)])['mutations'][_0x4def90(0x287)]()['find'](_0x470aa7=>_0x470aa7['id']===_0x45207c['InsertSheetMutation']['id']);if(_0x1aff91){const _0x231e2d=_0x1aff91[_0x4def90(0x291)]['unitId'],_0x34ef90=_0x1aff91[_0x4def90(0x291)]['sheet']['id'];setTimeout(()=>{const _0x389fe7=_0x4def90;this['_commandService']['executeCommand'](_0x45207c[_0x389fe7(0x25a)]['id'],{'unitId':_0x231e2d,'subUnitId':_0x34ef90},{'fromCollab':!0x0});});}}}[_0x5508b7(0x221)](){const _0x2be37c=_0x5508b7;this['_status$']['next'](_0x2be37c(0x233));const _0x1e7ac0=new Map(),_0x5888cb=this[_0x2be37c(0x2a8)]=new _0xb5ae36['DisposableCollection']();_0x5888cb[_0x2be37c(0x24f)](_0xb5ae36[_0x2be37c(0x202)](()=>{const _0x31ac60=_0x2be37c;_0x1e7ac0['forEach'](_0x5c85e3=>_0x5c85e3[_0x31ac60(0x2a0)]()),_0x1e7ac0[_0x31ac60(0x2a1)]();})),_0x5888cb[_0x2be37c(0x24f)](this[_0x2be37c(0x28b)][_0x2be37c(0x245)](_0x5024bb=>{const _0x5146fb=_0x2be37c;var _0x3482bf;if(_0x5024bb[_0x5146fb(0x294)]!==_0xb5ae36[_0x5146fb(0x283)][_0x5146fb(0x243)]||!this['_liveShareService']['shouldShareOperation'](_0x5024bb['id']))return;const {id:_0x581a4f}=_0x5024bb;let _0x253e43;_0x1e7ac0['has'](_0x581a4f)?_0x253e43=_0x1e7ac0[_0x5146fb(0x22b)](_0x581a4f):(_0x253e43=new _0x15c700['Subject'](),_0x1e7ac0[_0x5146fb(0x2a2)](_0x581a4f,_0x253e43),_0x253e43[_0x5146fb(0x26d)](_0x3a846d[_0x5146fb(0x22e)]((_0x3482bf=this[_0x5146fb(0x28e)][_0x5146fb(0x2b8)](_0x46bd8a))!=null?_0x3482bf:_0x1bc222,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5146fb(0x24e)](_0x5d35b3=>{const _0x452d84=_0x5146fb;this[_0x452d84(0x23f)]['send']({'eventID':_0x73e55a[_0x452d84(0x206)][_0x452d84(0x2b2)],'data':{'unitID':this[_0x452d84(0x1f6)],'operations':{[_0x5d35b3['id']]:{'id':_0x5d35b3['id'],'params':JSON[_0x452d84(0x28f)](_0x5d35b3[_0x452d84(0x291)])}}}},this[_0x452d84(0x1f6)]);})),_0x253e43['next'](_0x5024bb);})),this[_0x2be37c(0x21b)][_0x2be37c(0x2c0)](this['_unitID'])[_0x2be37c(0x272)](_0x49b73e=>this['_collabSession'][_0x2be37c(0x27e)]({'eventID':_0x73e55a[_0x2be37c(0x206)][_0x2be37c(0x2b2)],'data':{'unitID':this[_0x2be37c(0x1f6)],'operations':{[_0x49b73e['id']]:{'id':_0x49b73e['id'],'params':JSON['stringify'](_0x49b73e['params'])}}}},this[_0x2be37c(0x1f6)]));}[_0x5508b7(0x257)](){const _0x19d74a=_0x5508b7;var _0x5b358d;this[_0x19d74a(0x20d)][_0x19d74a(0x28d)](_0x19d74a(0x21d)),(_0x5b358d=this['_commandDisposable'])==null||_0x5b358d[_0x19d74a(0x299)](),this[_0x19d74a(0x2a8)]=null;}['_startFollowing'](){const _0x46a981=_0x5508b7;var _0x5a77d8;(_0x5a77d8=this['_commandDisposable'])==null||_0x5a77d8[_0x46a981(0x299)](),this[_0x46a981(0x20d)][_0x46a981(0x28d)](_0x46a981(0x296));}['_beIdle'](){const _0x558570=_0x5508b7;var _0x2aef2d;this[_0x558570(0x20d)]['next'](_0x558570(0x21d)),(_0x2aef2d=this[_0x558570(0x2a8)])==null||_0x2aef2d[_0x558570(0x299)](),this[_0x558570(0x2a8)]=null;}['_stopFollowing'](){const _0x128501=_0x5508b7;var _0x4a21fd;this['_status$'][_0x128501(0x28d)](_0x128501(0x234)),(_0x4a21fd=this[_0x128501(0x2a8)])==null||_0x4a21fd[_0x128501(0x299)]();}[_0x5508b7(0x2c1)](_0x2e9b23){const _0x593f44=_0x5508b7;if([_0x593f44(0x233),'not-following',_0x593f44(0x200)][_0x593f44(0x29d)](this[_0x593f44(0x28a)])||!_0x2e9b23[_0x593f44(0x1fc)][_0x593f44(0x26c)]||_0x2e9b23[_0x593f44(0x1fc)][_0x593f44(0x26c)]===this['_collabSession'][_0x593f44(0x1f5)]())return;this[_0x593f44(0x28a)]===_0x593f44(0x21d)&&this[_0x593f44(0x2c9)]();const _0x3db20f=_0x2e9b23[_0x593f44(0x1fc)]['operations'];Object[_0x593f44(0x262)](_0x3db20f)[_0x593f44(0x272)](_0x1e041d=>{const _0x5a1fb8=_0x593f44;this['_commandService'][_0x5a1fb8(0x251)](_0x1e041d['id'],_0x1e041d['params']?JSON[_0x5a1fb8(0x280)](_0x1e041d['params']):null,{'fromCollab':!0x0});});}[_0x5508b7(0x236)](){const _0x43d1c2=_0x5508b7;var _0x5655db;this[_0x43d1c2(0x20d)][_0x43d1c2(0x28d)]('offline'),(_0x5655db=this[_0x43d1c2(0x2a8)])==null||_0x5655db['dispose']();}[_0x5508b7(0x210)](){const _0x84f4ae=_0x5508b7;this[_0x84f4ae(0x20d)][_0x84f4ae(0x28d)](_0x84f4ae(0x21d)),this[_0x84f4ae(0x2b4)]();}},_0x3489d5['LiveShareCoordinator']=_0x235117([_0x10b05b(0x2,_0xb5ae36['IConfigService']),_0x10b05b(0x3,_0xb5ae36[_0x5508b7(0x25f)](_0x14b749)),_0x10b05b(0x4,_0xb5ae36['ICommandService'])],_0x3489d5['LiveShareCoordinator']);function _0x36c6d3(){const _0x186215=_0x5508b7,_0x512f42=_0xc23a78[_0x186215(0x295)](_0x3489d5[_0x186215(0x267)]),_0x2be9f2=_0xc23a78[_0x186215(0x295)](_0xb5ae36[_0x186215(0x232)]),_0x2f107c=_0xc23a78['useObservable'](()=>_0x2be9f2[_0x186215(0x208)](_0xb5ae36['UniverInstanceType'][_0x186215(0x2c2)]),void 0x0,!0x1,[]),[_0x4cc3f9,_0x1d9c7d]=_0x4dd198[_0x186215(0x229)](null),[_0xa93b6,_0x5af1c6]=_0x4dd198[_0x186215(0x229)](_0x12bed9[_0x186215(0x239)]),_0x39a258=_0x4dd198[_0x186215(0x241)](null);return _0x4dd198[_0x186215(0x2ae)](()=>(_0x2f107c&&_0x512f42['getLiveShareCoordinator'](_0x2f107c[_0x186215(0x25e)]())[_0x186215(0x258)](_0x478b8c=>{const _0x31d9d1=_0x186215;_0x1d9c7d(_0x478b8c),_0x39a258[_0x31d9d1(0x2c6)]=_0x478b8c[_0x31d9d1(0x2d0)][_0x31d9d1(0x24e)](_0x1e6c65=>{_0x5af1c6(_0x1e6c65);});}),()=>{const _0x31d17c=_0x186215;var _0x867a02;(_0x867a02=_0x39a258[_0x31d17c(0x2c6)])==null||_0x867a02[_0x31d17c(0x2b1)](),_0x39a258['current']=null;}),[_0x2f107c,_0x512f42]),_0x4cc3f9?_0x14e61f[_0x186215(0x214)](_0x3b0785[_0x186215(0x292)],{'align':_0x186215(0x286),'disabled':_0xa93b6===_0x12bed9['OFFLINE'],'className':_0x186215(0x2cb),'overlay':_0x14e61f[_0x186215(0x214)](_0x1787f3,{'status':_0xa93b6,'coordinator':_0x4cc3f9}),'children':_0x14e61f[_0x186215(0x214)]('button',{'className':_0x3b0785['clsx'](_0x186215(0x20a),{'univer-cursor-not-allowed':_0xa93b6===_0x12bed9[_0x186215(0x270)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa93b6!==_0x12bed9['OFFLINE']}),'type':_0x186215(0x2a4),'children':_0x14e61f[_0x186215(0x214)](_0x3ebec7,{'className':_0x186215(0x23c)})})}):null;}function _0x1787f3(_0x230270){const _0x3dc62d=_0x5508b7,{status:_0x3b8986,coordinator:_0x29958c}=_0x230270;switch(_0x3b8986){case _0x12bed9['IDLE']:return _0x14e61f[_0x3dc62d(0x214)](_0x4934fe,{'coordinator':_0x29958c});case _0x12bed9[_0x3dc62d(0x201)]:return _0x14e61f[_0x3dc62d(0x214)](_0x40539b,{'coordinator':_0x29958c});case _0x12bed9[_0x3dc62d(0x27c)]:return _0x14e61f[_0x3dc62d(0x214)](_0x2e4366,{'coordinator':_0x29958c});case _0x12bed9[_0x3dc62d(0x270)]:return _0x14e61f[_0x3dc62d(0x214)](_0x26c778,{});case _0x12bed9['PRESENTING']:return _0x14e61f[_0x3dc62d(0x214)](_0x1c42d2,{'coordinator':_0x29958c});default:return null;}}function _0x4934fe(_0xe09fc9){const _0x23e91c=_0x5508b7,{coordinator:_0x425829}=_0xe09fc9;return _0x14e61f[_0x23e91c(0x22f)](_0x14e61f[_0x23e91c(0x20c)],{'children':[_0x14e61f['jsx'](_0x23e91c(0x21c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x23e91c(0x2b9)}),_0x14e61f['jsx'](_0x3b0785[_0x23e91c(0x218)],{'onClick':()=>_0x425829[_0x23e91c(0x2b3)](),'children':_0x23e91c(0x237)})]});}function _0x40539b(_0x15338d){const _0x5fc46e=_0x5508b7,{coordinator:_0x45c93d}=_0x15338d;return _0x14e61f[_0x5fc46e(0x22f)](_0x14e61f[_0x5fc46e(0x20c)],{'children':[_0x14e61f['jsx'](_0x5fc46e(0x21c),{'className':_0x5fc46e(0x217),'children':_0x5fc46e(0x242)}),_0x14e61f['jsx'](_0x3b0785[_0x5fc46e(0x218)],{'onClick':()=>_0x45c93d[_0x5fc46e(0x2c8)](),'children':_0x5fc46e(0x22c)})]});}function _0x2e4366(_0x447167){const _0x2d4dbc=_0x5508b7,{coordinator:_0x55c439}=_0x447167;return _0x14e61f[_0x2d4dbc(0x22f)](_0x14e61f[_0x2d4dbc(0x20c)],{'children':[_0x14e61f[_0x2d4dbc(0x214)](_0x2d4dbc(0x21c),{'className':_0x2d4dbc(0x217),'children':_0x2d4dbc(0x26e)}),_0x14e61f[_0x2d4dbc(0x214)](_0x3b0785['Button'],{'variant':_0x2d4dbc(0x275),'onClick':()=>_0x55c439[_0x2d4dbc(0x284)](),'children':'Start\x20following'})]});}function _0x1c42d2(_0x35797e){const _0x2803e4=_0x5508b7,{coordinator:_0x1d3a09}=_0x35797e;return _0x14e61f['jsxs'](_0x14e61f[_0x2803e4(0x20c)],{'children':[_0x14e61f[_0x2803e4(0x214)](_0x2803e4(0x21c),{'className':_0x2803e4(0x217),'children':_0x2803e4(0x1fb)}),_0x14e61f[_0x2803e4(0x214)](_0x3b0785[_0x2803e4(0x218)],{'variant':'default','onClick':()=>_0x1d3a09[_0x2803e4(0x213)](),'children':'Stop\x20presenting'})]});}function _0x26c778(){const _0x215033=_0x5508b7;return _0x14e61f['jsx'](_0x14e61f[_0x215033(0x20c)],{'children':_0x215033(0x24c)});}var _0xc64db6=Object[_0x5508b7(0x22d)],_0x3fee4a=(_0x57dc86,_0x1c938f,_0x2bd1ef,_0x48e3a5)=>{const _0x5c150b=_0x5508b7;for(var _0x13aecc=_0x48e3a5>0x1?void 0x0:_0x48e3a5?_0xc64db6(_0x1c938f,_0x2bd1ef):_0x1c938f,_0x4423db=_0x57dc86[_0x5c150b(0x244)]-0x1,_0x16115c;_0x4423db>=0x0;_0x4423db--)(_0x16115c=_0x57dc86[_0x4423db])&&(_0x13aecc=_0x16115c(_0x13aecc)||_0x13aecc);return _0x13aecc;},_0x59d630=(_0x5c2ff1,_0x1285d0)=>(_0x22934a,_0xb263d1)=>_0x1285d0(_0x22934a,_0xb263d1,_0x5c2ff1);_0x3489d5[_0x5508b7(0x2a5)]=class extends _0xb5ae36[_0x5508b7(0x207)]{constructor(_0x3ebe4e,_0x1fe932){const _0xbac7f2=_0x5508b7;super(),this['_injector']=_0x3ebe4e,this[_0xbac7f2(0x21f)]=_0x1fe932,this[_0xbac7f2(0x27a)]();}[_0x5508b7(0x27a)](){const _0x339889=_0x5508b7;this[_0x339889(0x26a)](this['_uiPartsService']['registerComponent'](_0xc23a78['BuiltInUIPart'][_0x339889(0x2ba)],()=>_0xc23a78[_0x339889(0x2a6)](_0x36c6d3,this[_0x339889(0x256)])));}},_0x3489d5[_0x5508b7(0x2a5)]=_0x3fee4a([_0x59d630(0x0,_0xb5ae36['Inject'](_0xb5ae36['Injector'])),_0x59d630(0x1,_0xc23a78['IUIPartsService'])],_0x3489d5[_0x5508b7(0x2a5)]);const _0x142e49=_0x5508b7(0x2c4),_0x2ee98f={};var _0x53adb4=Object['getOwnPropertyDescriptor'],_0x493590=(_0x3ed831,_0x27db9f,_0x34c5b6,_0x15df32)=>{const _0x145c0f=_0x5508b7;for(var _0x1ff8ba=_0x15df32>0x1?void 0x0:_0x15df32?_0x53adb4(_0x27db9f,_0x34c5b6):_0x27db9f,_0x3eeed5=_0x3ed831[_0x145c0f(0x244)]-0x1,_0x536944;_0x3eeed5>=0x0;_0x3eeed5--)(_0x536944=_0x3ed831[_0x3eeed5])&&(_0x1ff8ba=_0x536944(_0x1ff8ba)||_0x1ff8ba);return _0x1ff8ba;},_0x108661=(_0x306613,_0x40f802)=>(_0x333946,_0x45b7b1)=>_0x40f802(_0x333946,_0x45b7b1,_0x306613);let _0xa82539=class extends _0xb5ae36[_0x5508b7(0x207)]{constructor(_0x5cd6e1){const _0x211733=_0x5508b7;super(),this[_0x211733(0x21b)]=_0x5cd6e1,this[_0x211733(0x247)]();}[_0x5508b7(0x247)](){const _0x2c7f7c=_0x5508b7;[_0x4234cc[_0x2c7f7c(0x23a)]['id'],_0x4234cc['SetScrollOperation']['id'],_0x45207c[_0x2c7f7c(0x25a)]['id']][_0x2c7f7c(0x272)](_0x2e8105=>{const _0xb7f543=_0x2c7f7c;this[_0xb7f543(0x26a)](this[_0xb7f543(0x21b)][_0xb7f543(0x273)](_0x2e8105));});}};_0xa82539=_0x493590([_0x108661(0x0,_0xb5ae36[_0x5508b7(0x25f)](_0x14b749))],_0xa82539);var _0x407cde=Object[_0x5508b7(0x29a)],_0x128edf=Object[_0x5508b7(0x22d)],_0x22e401=(_0x14643e,_0x2627a0,_0x23e709)=>_0x2627a0 in _0x14643e?_0x407cde(_0x14643e,_0x2627a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23e709}):_0x14643e[_0x2627a0]=_0x23e709,_0x45351a=(_0x12d1b2,_0x120c8d,_0x252a96,_0x4c225d)=>{const _0x4e075f=_0x5508b7;for(var _0x5eaec4=_0x4c225d>0x1?void 0x0:_0x4c225d?_0x128edf(_0x120c8d,_0x252a96):_0x120c8d,_0x463503=_0x12d1b2[_0x4e075f(0x244)]-0x1,_0x247623;_0x463503>=0x0;_0x463503--)(_0x247623=_0x12d1b2[_0x463503])&&(_0x5eaec4=_0x247623(_0x5eaec4)||_0x5eaec4);return _0x5eaec4;},_0x4d1805=(_0x49b60f,_0x3a1a03)=>(_0x562da3,_0x1d07ec)=>_0x3a1a03(_0x562da3,_0x1d07ec,_0x49b60f),_0x1b3554=(_0x3f421b,_0x4cdc71,_0xc7bef7)=>_0x22e401(_0x3f421b,typeof _0x4cdc71!=_0x5508b7(0x1f8)?_0x4cdc71+'':_0x4cdc71,_0xc7bef7);const _0x29bdf4=_0x5508b7(0x2a3);_0x3489d5[_0x5508b7(0x289)]=class extends _0xb5ae36[_0x5508b7(0x278)]{constructor(_0x3fa3cc=_0x2ee98f,_0x49e36b,_0x2341c5){const _0x590630=_0x5508b7;super(),this[_0x590630(0x2d1)]=_0x3fa3cc,this['_injector']=_0x49e36b,this[_0x590630(0x28e)]=_0x2341c5;const {..._0x44d8ff}=_0xb5ae36[_0x590630(0x2bc)]({},_0x2ee98f,this['_config']);this[_0x590630(0x28e)]['setConfig'](_0x142e49,_0x44d8ff);}['onStarting'](){const _0x5dc768=_0x5508b7;_0xb5ae36[_0x5dc768(0x22a)](this[_0x5dc768(0x256)],_0xb5ae36[_0x5dc768(0x268)]([[_0x14b749],[_0x3489d5['LiveShareController']],[_0xa82539],[_0x3489d5[_0x5dc768(0x2a5)]]],this['_config']['override'])),_0xb5ae36[_0x5dc768(0x255)](this[_0x5dc768(0x256)],[[_0xa82539]]);}[_0x5508b7(0x25d)](){const _0x3773f=_0x5508b7;_0xb5ae36['touchDependencies'](this[_0x3773f(0x256)],[[_0x3489d5[_0x3773f(0x2a5)]]]);}},_0x1b3554(_0x3489d5['UniverLiveSharePlugin'],_0x5508b7(0x294),_0xb5ae36['UniverInstanceType'][_0x5508b7(0x204)]),_0x1b3554(_0x3489d5[_0x5508b7(0x289)],_0x5508b7(0x2bd),_0x29bdf4),_0x3489d5[_0x5508b7(0x289)]=_0x45351a([_0xb5ae36[_0x5508b7(0x27b)](_0x5a862d[_0x5508b7(0x2c5)]),_0x4d1805(0x1,_0xb5ae36[_0x5508b7(0x25f)](_0xb5ae36['Injector'])),_0x4d1805(0x2,_0xb5ae36[_0x5508b7(0x27d)])],_0x3489d5[_0x5508b7(0x289)]),_0x3489d5['LiveShare']=_0x36c6d3,_0x3489d5['LiveShareService']=_0x14b749,_0x3489d5[_0x5508b7(0x252)]=_0x12bed9,Object[_0x5508b7(0x29a)](_0x3489d5,Symbol[_0x5508b7(0x261)],{'value':_0x5508b7(0x24b)});}));function _0x207e(_0xa7e67f,_0x167e85){const _0x3384a3=_0x3384();return _0x207e=function(_0x207e0c,_0x5382aa){_0x207e0c=_0x207e0c-0x1f2;let _0x1c2d56=_0x3384a3[_0x207e0c];return _0x1c2d56;},_0x207e(_0xa7e67f,_0x167e85);}function _0x3384(){const _0x20afda=['add','1723082UsFrBO','executeCommand','LiveShareStatus','function','SessionStatus','touchDependencies','_injector','_stopPresenting','then','UniverIcon','SetWorksheetActiveOperation','currentColor','LIVESHARE_FETCH_OPERATIONS','onRendered','getUnitId','Inject','http://www.w3.org/2000/svg','toStringTag','values','UniverDesign','_stopFollowing','children','PRESENTING','LiveShareController','mergeOverrideWithDependencies','evenodd','disposeWithMe','takeUntil','presenter','pipe','You\x27re\x20not\x20following\x20the\x20presenter','react','OFFLINE','@univerjs/core','forEach','registerSharedOperation','string','text','UniverSheets','_handleNewChangeSets','Plugin','UniverUi','_mountLiveShare','DependentOn','NOT_FOLLOWING','IConfigService','send','@univerjs/sheets','parse','none','map','CommandType','startFollowing','defs','end','reverse','LiveShareCoordinator','UniverLiveSharePlugin','_status','_commandService','getTypeOfUnitDisposed$','next','_configService','stringify','_univerInstanceService','params','Dropdown','attrs','type','useDependency','following','random','object','dispose','defineProperty','react/jsx-runtime','mask','includes','ONLINE','UniverInstanceType','complete','clear','set','UNIVER_LIVE_SHARE_PLUGIN','button','DesktopLiveShareController','connectInjector','memberID','_commandDisposable','_presenter','RxDisposable','2550915jEIUeZ','amd','@univerjs-pro/collaboration','useEffect','createInstance','SAME_OPERATION_SHARE_INTERVAL','unsubscribe','LIVESHARE_OPERATION','tryStartPresenting','_fetchOperations','createElement','CollaborationSessionService','@univerjs/sheets-ui','getConfig','Present\x20this\x20document','HEADER_MENU','xlink:href','merge','pluginName','fill','tag','getInitialStates','_handleOperation','UNIVER_SHEET','851841eOsgkV','live-share.config','UniverCollaborationClientPlugin','current','9bjDOQF','stopFollowing','_startFollowing','colorChannel1','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','3kSEIMf','4357256oQkZcR','getLiveShareCoordinator','url(#$1','status$','_config','defIds','init','1em','LIVESHARE_NEW_HOST','getMemberID','_unitID','Injector','symbol','getStatus','assign','You\x27re\x20presenting\x20the\x20document','data','_handleNewHost','trim','_entities','offline','FOLLOWING','toDisposable','dispose$','UNIVER_UNKNOWN','getTypeOfUnitAdded$','CollaborationEvent','Disposable','getCurrentTypeOfUnit$','rxjs/operators','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','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','Fragment','_status$','UniverProCollaborationClient','_startLiveShareCoordinator','_handleOnline','_sharedOperations','substring','stopPresenting','jsx','_collabSessionService','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','Button','2846244knoqlG','getLiveShareCoordinatorSync','_liveShareService','div','idle','use','_uiPartsService','React','_startPresenting','3200771GvoZhJ','toString','UniverProCollaboration','sessionStatus$','_reporters','845720qqZhFx','event$','useState','registerDependencies','get','Stop\x20following','getOwnPropertyDescriptor','throttleTime','jsxs','@univerjs-pro/collaboration-client','_handleTerminate','IUniverInstanceService','presenting','not-following','has','_handleOffline','Start','0\x200\x2017\x2017','IDLE','SetZoomRatioOperation','path','univer-size-4','rxjs','entries','_collabSession','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','useRef','You\x27re\x20following\x20the\x20presenter','OPERATION','length','onCommandExecuted','idSuffix','_init','operators','NEW_CHANGESETS','displayName','Module','You\x27are\x20offline.','from','subscribe'];_0x3384=function(){return _0x20afda;};return _0x3384();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.12.1-nightly.202511221011",
3
+ "version": "0.12.2-experimental.20251129-0fa20cd",
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.12.1-nightly.202511221011",
61
- "@univerjs-pro/collaboration-client": "0.12.1-nightly.202511221011",
62
- "@univerjs/core": "0.12.1-nightly.202511221011",
63
- "@univerjs/design": "0.12.1-nightly.202511221011",
64
- "@univerjs/engine-render": "0.12.1-nightly.202511221011",
65
- "@univerjs/sheets": "0.12.1-nightly.202511221011",
66
- "@univerjs/sheets-ui": "0.12.1-nightly.202511221011",
67
- "@univerjs/ui": "0.12.1-nightly.202511221011"
60
+ "@univerjs-pro/collaboration": "0.12.2-experimental.20251129-0fa20cd",
61
+ "@univerjs-pro/collaboration-client": "0.12.2-experimental.20251129-0fa20cd",
62
+ "@univerjs/core": "0.12.2-experimental.20251129-0fa20cd",
63
+ "@univerjs/engine-render": "0.12.2-experimental.20251129-0fa20cd",
64
+ "@univerjs/design": "0.12.2-experimental.20251129-0fa20cd",
65
+ "@univerjs/sheets": "0.12.2-experimental.20251129-0fa20cd",
66
+ "@univerjs/ui": "0.12.2-experimental.20251129-0fa20cd",
67
+ "@univerjs/sheets-ui": "0.12.2-experimental.20251129-0fa20cd"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,10 +72,10 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.2.2",
76
- "vitest": "^3.2.4",
77
- "@univerjs/protocol": "0.1.47",
78
- "@univerjs-infra/shared": "0.12.1"
75
+ "vite": "^7.2.4",
76
+ "vitest": "^4.0.14",
77
+ "@univerjs-infra/shared": "0.12.2",
78
+ "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",