@univerjs-pro/live-share 0.12.1-nightly.202511221011 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- '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 _0x206163=_0x17f9;(function(_0x239d34,_0x5fb800){const _0x288322=_0x17f9,_0x26e7b1=_0x239d34();while(!![]){try{const _0x2300a4=-parseInt(_0x288322(0x98))/0x1+parseInt(_0x288322(0x8e))/0x2*(parseInt(_0x288322(0x9b))/0x3)+parseInt(_0x288322(0xad))/0x4*(-parseInt(_0x288322(0x9c))/0x5)+-parseInt(_0x288322(0xab))/0x6*(parseInt(_0x288322(0x9f))/0x7)+parseInt(_0x288322(0x92))/0x8+parseInt(_0x288322(0x94))/0x9+parseInt(_0x288322(0xa6))/0xa;if(_0x2300a4===_0x5fb800)break;else _0x26e7b1['push'](_0x26e7b1['shift']());}catch(_0x20c9b6){_0x26e7b1['push'](_0x26e7b1['shift']());}}}(_0x3615,0xea9a2));function _0x17f9(_0x10d357,_0x14ca3b){const _0x361567=_0x3615();return _0x17f9=function(_0x17f934,_0x15f5ce){_0x17f934=_0x17f934-0x8b;let _0x3348c8=_0x361567[_0x17f934];return _0x3348c8;},_0x17f9(_0x10d357,_0x14ca3b);}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']{[_0x206163(0x8c)](_0x35ab73,_0x524fe4,_0x299fd3,_0x5428b1,_0x5887a9){const _0x5a008e=_0x206163,_0x56f872=_0x35ab73[_0x5a008e(0x96)](n[_0x5a008e(0xa9)]),_0x8181c2=_0x35ab73[_0x5a008e(0x96)](g[_0x5a008e(0xac)]),_0x2eeced=_0x524fe4[_0x5a008e(0x9a)](),_0x53043c=_0x524fe4['getActiveSheet'](),_0x1bb8e3=_0x56f872[_0x5a008e(0xa8)](_0x2eeced);(_0x1bb8e3==null?void 0x0:_0x1bb8e3[_0x5a008e(0xa0)]())!==n[_0x5a008e(0x99)][_0x5a008e(0xa7)]||(_0x299fd3[_0x5a008e(0xb2)]()!==_0x53043c[_0x5a008e(0xb2)]()&&this[_0x5a008e(0x9d)]['executeCommand'](u[_0x5a008e(0x8d)]['id'],{'unitId':_0x2eeced,'subUnitId':_0x299fd3[_0x5a008e(0xb2)]()}),!_0x8181c2[_0x5a008e(0x8f)](_0x2eeced))||_0x5887a9['syncExecuteCommand'](f['SetScrollOperation']['id'],{'unitId':_0x524fe4['getUnitId'](),'sheetId':_0x299fd3[_0x5a008e(0xb2)](),'sheetViewStartRow':_0x5428b1[_0x5a008e(0x8b)],'sheetViewStartColumn':_0x5428b1['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x206163(0x9e)][_0x206163(0x91)](w);class C extends a[_0x206163(0xae)]{['getLiveShareStatus'](){const _0x343a69=_0x206163;var _0x3bbc9b,_0x7fe582;const _0x52028f=this[_0x343a69(0xaa)]['get'](n[_0x343a69(0xa9)]),_0x18c00e=(_0x3bbc9b=this[_0x343a69(0xa2)]())==null?void 0x0:_0x3bbc9b[_0x343a69(0xaf)]();if(!_0x18c00e)throw new Error('No\x20active\x20workbook\x20found.');const _0x17dc9a=_0x52028f[_0x343a69(0xa8)](_0x18c00e);return(_0x7fe582=_0x17dc9a==null?void 0x0:_0x17dc9a['getStatus']())!=null?_0x7fe582:n['LiveShareStatus'][_0x343a69(0xb1)];}['startFollowing'](){const _0x314834=_0x206163;var _0x40353b;const _0x3eded0=this[_0x314834(0xaa)]['get'](n[_0x314834(0xa9)]),_0xfe079d=(_0x40353b=this[_0x314834(0xa2)]())==null?void 0x0:_0x40353b[_0x314834(0xaf)]();if(!_0xfe079d)throw new Error('No\x20active\x20workbook\x20found.');const _0x4272fb=_0x3eded0[_0x314834(0xa8)](_0xfe079d);if(!_0x4272fb)throw new Error(_0x314834(0xa1));_0x4272fb[_0x314834(0xa3)]();}[_0x206163(0x95)](){const _0x4e83d6=_0x206163;var _0x56ef6e;const _0x5fff16=this['_injector'][_0x4e83d6(0x96)](n[_0x4e83d6(0xa9)]),_0x2d4ab7=(_0x56ef6e=this[_0x4e83d6(0xa2)]())==null?void 0x0:_0x56ef6e[_0x4e83d6(0xaf)]();if(!_0x2d4ab7)throw new Error(_0x4e83d6(0x93));const _0x7db04a=_0x5fff16[_0x4e83d6(0xa8)](_0x2d4ab7);if(!_0x7db04a)throw new Error(_0x4e83d6(0xa1));_0x7db04a[_0x4e83d6(0x95)]();}[_0x206163(0xb0)](){const _0x3d344d=_0x206163;var _0x25ce63;const _0x104cd7=this[_0x3d344d(0xaa)]['get'](n[_0x3d344d(0xa9)]),_0x3cd9b3=(_0x25ce63=this[_0x3d344d(0xa2)]())==null?void 0x0:_0x25ce63[_0x3d344d(0xaf)]();if(!_0x3cd9b3)throw new Error(_0x3d344d(0x93));const _0x3e4434=_0x104cd7[_0x3d344d(0xa8)](_0x3cd9b3);if(!_0x3e4434)throw new Error(_0x3d344d(0xa1));_0x3e4434[_0x3d344d(0xa4)]();}[_0x206163(0x97)](){const _0x402451=_0x206163;var _0x4c60c2;const _0x343b51=this[_0x402451(0xaa)][_0x402451(0x96)](n[_0x402451(0xa9)]),_0xf5d6dc=(_0x4c60c2=this[_0x402451(0xa2)]())==null?void 0x0:_0x4c60c2['getId']();if(!_0xf5d6dc)throw new Error(_0x402451(0x93));const _0x4e63eb=_0x343b51[_0x402451(0xa8)](_0xf5d6dc);if(!_0x4e63eb)throw new Error(_0x402451(0xa1));_0x4e63eb[_0x402451(0x97)]();}}a[_0x206163(0xae)]['extend'](C);class L extends a[_0x206163(0xa5)]{get[_0x206163(0x90)](){const _0x1def81=_0x206163;return n[_0x1def81(0x99)];}}a[_0x206163(0xa5)][_0x206163(0x91)](L);function _0x3615(){const _0x343477=['stopFollowing','get','stopPresenting','699660fGQcOj','LiveShareStatus','getUnitId','3jGmORq','4856415dRxKxm','_commandService','FRange','658MHoOnZ','getStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveWorkbook','startFollowing','tryStartPresenting','FEnum','25928410CdOWPZ','PRESENTING','getLiveShareCoordinatorSync','LiveShareController','_injector','65982yhrbOL','IRenderManagerService','4QwOyqp','FUniver','getId','startPresenting','IDLE','getSheetId','startRow','_initialize','SetWorksheetActiveOperation','242510kiLyYO','getRenderById','LiveShareStatusEnum','extend','5300176lYYtxV','No\x20active\x20workbook\x20found.','2600757rgDtfx'];_0x3615=function(){return _0x343477;};return _0x3615();}
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 _0x19c1ed=_0x2ce0;(function(_0x10082b,_0x577159){const _0x48a7c1=_0x2ce0,_0xd61210=_0x10082b();while(!![]){try{const _0x25f4cb=-parseInt(_0x48a7c1(0x1b1))/0x1+parseInt(_0x48a7c1(0x139))/0x2*(-parseInt(_0x48a7c1(0x13d))/0x3)+parseInt(_0x48a7c1(0x128))/0x4+-parseInt(_0x48a7c1(0x170))/0x5+-parseInt(_0x48a7c1(0x132))/0x6+-parseInt(_0x48a7c1(0xfb))/0x7+-parseInt(_0x48a7c1(0x138))/0x8*(-parseInt(_0x48a7c1(0xe7))/0x9);if(_0x25f4cb===_0x577159)break;else _0xd61210['push'](_0xd61210['shift']());}catch(_0x559769){_0xd61210['push'](_0xd61210['shift']());}}}(_0xe665,0xb9821));var T=Object['defineProperty'],U=(_0x4e3101,_0x4aa736,_0x283580)=>_0x4aa736 in _0x4e3101?T(_0x4e3101,_0x4aa736,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x283580}):_0x4e3101[_0x4aa736]=_0x283580,_=(_0x2e598,_0x58f20d,_0xbd3373)=>U(_0x2e598,typeof _0x58f20d!='symbol'?_0x58f20d+'':_0x58f20d,_0xbd3373);function _0xe665(){const _0x1d1b79=['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','operations','next','currentColor','useObservable','_status','status$','sessionStatus$','IUIPartsService','SetZoomRatioOperation','_handleTerminate','set','LiveShareCoordinator','BuiltInUIPart','getCurrentTypeOfUnit$','subscribe','PRESENTING','1205332PsxHpi','getTypeOfUnitDisposed$','get','touchDependencies','_collabSessionService','Start\x20following','_startFollowing','createElement','_reporters','OPERATION','4396872anwzRA','_configService','toString','dispose','presenting','_handleOperation','5336QjeTsz','219618ZypTBI','symbol','NOT_FOLLOWING','registerComponent','12eymAEz','stopPresenting','entries','Subject','not-following','path','_univerInstanceService','IUniverInstanceService','Disposable','LiveShareStatus','delete','current','mergeOverrideWithDependencies','HEADER_MENU','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','DependentOn','pipe','_startPresenting','univer-size-4','http://www.w3.org/2000/svg','_handleOffline','_stopPresenting','Button','length','executeCommand','none','string','_commandService','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','clsx','getConfig','getTypeOfUnitAdded$','parseProtocolChangeset','button','getStatus','replace','trim','IDLE','add','defs','url(#$1','tryStartPresenting','_init','colorChannel1','_stopFollowing','DesktopLiveShareController','toDisposable','following','offline','SetScrollOperation','5396920OZahyH','getMemberID','useRef','mutations','stringify','params','idSuffix','createInstance','complete','includes','find','div','FOLLOWING','pluginName','toStringTag','evenodd','CollaborationEvent','asObservable','Dropdown','_mountLiveShare','live-share-icon','CollaborationSessionService','Present\x20this\x20document','getLiveShareCoordinator','_commandDisposable','then','has','onRendered','idle','jsxs','Plugin','text','_beIdle','children','svg','UNIVER_LIVE_SHARE_PLUGIN','registerSharedOperation','sheet','You\x27are\x20offline.','displayName','defIds','type','dispose$','data','mask','memberID','Injector','UniverCollaborationClientPlugin','UNIVER_UNKNOWN','SetWorksheetActiveOperation','UniverLiveSharePlugin','_collabSession','map','_startLiveShareCoordinator','setConfig','jsx','Start','getOwnPropertyDescriptor','_handleNewHost','IConfigService','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','event$','end','takeUntil','77825iYvRIT','forwardRef','SessionStatus','1em','_fetchOperations','InsertSheetMutation','Stop\x20following','getInitialStates','requireSession','UniverInstanceType','CommandType','LiveShareIcon','startFollowing','live-share.config','_config','_presenter','forEach','DisposableCollection','_unitID','55863lrUVRr','SAME_OPERATION_SHARE_INTERVAL','values','presenter','assign','override','RxDisposable','You\x27re\x20following\x20the\x20presenter','tag','Module','useDependency','_status$','unitId','random','LIVESHARE_OPERATION','from','getValue','stopFollowing','_handleNewChangeSets','disposeWithMe','9466128aPPxXL','useState','fill','LiveShareController','UNIVER_SHEET','_handleOnline','parse','getUnitId','default','clear','You\x27re\x20not\x20following\x20the\x20presenter','reverse','_uiPartsService','NEW_CHANGESETS','LIVESHARE_REQUEST_HOST','send','Inject','_injector','UniverIcon','attrs','_liveShareService','Fragment','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_sharedOperations','_entities','xlink:href','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation'];_0xe665=function(){return _0x1d1b79;};return _0xe665();}Object['defineProperty'](exports,Symbol[_0x19c1ed(0x17e)],{'value':_0x19c1ed(0xf0)});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:_0x21e1bd,..._0x18c60f}){const _0x1b9d3d=_0x19c1ed,{icon:_0x1518b7,id:_0x1cdd82,className:_0x559fc0,extend:_0x2e96e9,..._0x1b551a}=_0x18c60f,_0x42d1e1=('univerjs-icon\x20univerjs-icon-'+_0x1cdd82+'\x20'+(_0x559fc0||''))[_0x1b9d3d(0x162)](),_0xb40d1c=v[_0x1b9d3d(0x172)]('_'+H());return j(_0x1518b7,''+_0x1cdd82,{'defIds':_0x1518b7[_0x1b9d3d(0x198)],'idSuffix':_0xb40d1c[_0x1b9d3d(0x148)]},{'ref':_0x21e1bd,'className':_0x42d1e1,..._0x1b551a},_0x2e96e9);}function j(_0x4c4af5,_0x2a1c47,_0x3018e8,_0x465182,_0x16ccbf){const _0x258294=_0x19c1ed;return v['createElement'](_0x4c4af5[_0x258294(0xef)],{'key':_0x2a1c47,...y(_0x4c4af5,_0x3018e8,_0x16ccbf),..._0x465182},(F(_0x4c4af5,_0x3018e8)[_0x258294(0x191)]||[])['map']((_0x3c8720,_0x594d0d)=>j(_0x3c8720,_0x2a1c47+'-'+_0x4c4af5[_0x258294(0xef)]+'-'+_0x594d0d,_0x3018e8,void 0x0,_0x16ccbf)));}function y(_0x46b8e6,_0x438a4c,_0xdb6ed9){const _0x4b9f8b=_0x19c1ed,_0x14db85={..._0x46b8e6[_0x4b9f8b(0x10e)]};_0xdb6ed9!=null&&_0xdb6ed9[_0x4b9f8b(0x169)]&&_0x14db85[_0x4b9f8b(0xfd)]===_0x4b9f8b(0x169)&&(_0x14db85[_0x4b9f8b(0xfd)]=_0xdb6ed9[_0x4b9f8b(0x169)]),_0x46b8e6[_0x4b9f8b(0xef)]===_0x4b9f8b(0x19c)&&_0x14db85['id']&&(_0x14db85['id']=_0x14db85['id']+_0x438a4c[_0x4b9f8b(0x176)]),Object[_0x4b9f8b(0x13f)](_0x14db85)[_0x4b9f8b(0xe4)](([_0x6df35f,_0xf2e27d])=>{const _0x9d8d3f=_0x4b9f8b;_0x6df35f===_0x9d8d3f(0x19c)&&typeof _0xf2e27d==_0x9d8d3f(0x158)&&(_0x14db85[_0x6df35f]=_0xf2e27d[_0x9d8d3f(0x161)](/url\(#(.*)\)/,_0x9d8d3f(0x166)+_0x438a4c[_0x9d8d3f(0x176)]+')'));});const {defIds:_0x51081c}=_0x438a4c;return!_0x51081c||_0x51081c['length']===0x0||(_0x46b8e6[_0x4b9f8b(0xef)]==='use'&&_0x14db85['xlink:href']&&(_0x14db85[_0x4b9f8b(0x114)]=_0x14db85[_0x4b9f8b(0x114)]+_0x438a4c[_0x4b9f8b(0x176)]),Object[_0x4b9f8b(0x13f)](_0x14db85)[_0x4b9f8b(0xe4)](([_0x17da11,_0x12497f])=>{const _0x2ce099=_0x4b9f8b;typeof _0x12497f==_0x2ce099(0x158)&&(_0x14db85[_0x17da11]=_0x12497f[_0x2ce099(0x161)](/url\(#(.*)\)/,_0x2ce099(0x166)+_0x438a4c['idSuffix']+')'));})),_0x14db85;}function F(_0x2371d4,_0xe95394){const _0x37d473=_0x19c1ed;var _0x99d3a;const {defIds:_0x1a64ec}=_0xe95394;return!_0x1a64ec||_0x1a64ec[_0x37d473(0x155)]===0x0?_0x2371d4:_0x2371d4[_0x37d473(0xef)]===_0x37d473(0x165)&&((_0x99d3a=_0x2371d4[_0x37d473(0x191)])!=null&&_0x99d3a[_0x37d473(0x155)])?{..._0x2371d4,'children':_0x2371d4[_0x37d473(0x191)]['map'](_0x1e8835=>typeof _0x1e8835['attrs']['id']==_0x37d473(0x158)&&_0x1a64ec&&_0x1a64ec[_0x37d473(0x179)](_0x1e8835[_0x37d473(0x10e)]['id'])?{..._0x1e8835,'attrs':{..._0x1e8835[_0x37d473(0x10e)],'id':_0x1e8835['attrs']['id']+_0xe95394[_0x37d473(0x176)]}}:_0x1e8835)}:_0x2371d4;}function H(){const _0x67e9c1=_0x19c1ed;return Math[_0x67e9c1(0xf4)]()[_0x67e9c1(0x134)](0x24)['substring'](0x2,0x8);}x['displayName']=_0x19c1ed(0x10d);const V={'tag':_0x19c1ed(0x192),'attrs':{'xmlns':_0x19c1ed(0x151),'fill':_0x19c1ed(0x157),'viewBox':'0\x200\x2017\x2017','width':_0x19c1ed(0x1b4),'height':_0x19c1ed(0x1b4)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x19c1ed(0x142),'attrs':{'fill':_0x19c1ed(0x11a),'d':_0x19c1ed(0x117),'fillRule':_0x19c1ed(0x17f),'clipRule':'evenodd'}}]},R=v[_0x19c1ed(0x1b2)](function(_0x8e8ffa,_0x1e02ef){const _0x169dbc=_0x19c1ed;return v[_0x169dbc(0x12f)](x,Object[_0x169dbc(0xeb)]({},_0x8e8ffa,{'id':_0x169dbc(0x184),'ref':_0x1e02ef,'icon':V}));});R[_0x19c1ed(0x197)]=_0x19c1ed(0xdf);class E extends o[_0x19c1ed(0x145)]{constructor(){const _0x4c96ba=_0x19c1ed;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x4c96ba(0x130),new Set());}[_0x19c1ed(0x194)](_0x47a896){const _0x10fa41=_0x19c1ed;return this['_sharedOperations'][_0x10fa41(0x164)](_0x47a896),o['toDisposable'](()=>this[_0x10fa41(0x112)][_0x10fa41(0x147)](_0x47a896));}['registerInitialStateReporter'](_0xaa77ac){const _0x285af7=_0x19c1ed;return this[_0x285af7(0x130)][_0x285af7(0x164)](_0xaa77ac),o[_0x285af7(0x16c)](()=>this[_0x285af7(0x130)][_0x285af7(0x147)](_0xaa77ac));}[_0x19c1ed(0x116)](_0x911cdb){const _0x49967a=_0x19c1ed;return this[_0x49967a(0x112)][_0x49967a(0x18a)](_0x911cdb);}[_0x19c1ed(0x1b8)](_0x4c2ebb){const _0x24c047=_0x19c1ed;return Array[_0x24c047(0xf6)](this[_0x24c047(0x130)])[_0x24c047(0x1a4)](_0x282feb=>_0x282feb(_0x4c2ebb));}}var M=Object[_0x19c1ed(0x1a9)],P=(_0x9d9e20,_0xd7bb20,_0x5e28e8,_0x52bd18)=>{const _0xb10128=_0x19c1ed;for(var _0x5504c3=_0x52bd18>0x1?void 0x0:_0x52bd18?M(_0xd7bb20,_0x5e28e8):_0xd7bb20,_0x190f03=_0x9d9e20[_0xb10128(0x155)]-0x1,_0x2c99b9;_0x190f03>=0x0;_0x190f03--)(_0x2c99b9=_0x9d9e20[_0x190f03])&&(_0x5504c3=_0x2c99b9(_0x5504c3)||_0x5504c3);return _0x5504c3;},S=(_0x197ee3,_0x3e8a1a)=>(_0xf5f769,_0x4948ef)=>_0x3e8a1a(_0xf5f769,_0x4948ef,_0x197ee3);exports[_0x19c1ed(0xfe)]=class extends o[_0x19c1ed(0xed)]{constructor(_0x37cb9c,_0x2c3ea0,_0x33e671){const _0x34f550=_0x19c1ed;super(),_(this,_0x34f550(0x113),new Map()),(this['_univerInstanceService']=_0x37cb9c,this[_0x34f550(0x10c)]=_0x2c3ea0,this[_0x34f550(0x12c)]=_0x33e671,this[_0x34f550(0x168)]());}async['getLiveShareCoordinator'](_0x1af079){const _0x182571=_0x19c1ed;return this[_0x182571(0x113)][_0x182571(0x18a)](_0x1af079)||await this['_startLiveShareCoordinator'](_0x1af079),this[_0x182571(0x113)][_0x182571(0x12a)](_0x1af079);}['getLiveShareCoordinatorSync'](_0x1914f0){const _0x319beb=_0x19c1ed;var _0x4d1638;return(_0x4d1638=this[_0x319beb(0x113)][_0x319beb(0x12a)](_0x1914f0))!=null?_0x4d1638:null;}[_0x19c1ed(0x168)](){const _0x4b5ec0=_0x19c1ed;this[_0x4b5ec0(0x143)][_0x4b5ec0(0x15d)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x4b5ec0(0x14e)](I[_0x4b5ec0(0x1b0)](this[_0x4b5ec0(0x19a)]))[_0x4b5ec0(0x126)](async _0xfc6849=>{const _0x4a8f21=_0x4b5ec0,_0x164d8b=_0xfc6849[_0x4a8f21(0x102)]();this['_entities']['has'](_0x164d8b)||this['_startLiveShareCoordinator'](_0x164d8b);}),this['_univerInstanceService'][_0x4b5ec0(0x129)](o['UniverInstanceType'][_0x4b5ec0(0xff)])[_0x4b5ec0(0x14e)](I[_0x4b5ec0(0x1b0)](this[_0x4b5ec0(0x19a)]))[_0x4b5ec0(0x126)](_0x311758=>{const _0x27e6de=_0x4b5ec0,_0x29d3bb=_0x311758[_0x27e6de(0x102)](),_0x1a41c1=this[_0x27e6de(0x113)][_0x27e6de(0x12a)](_0x29d3bb);_0x1a41c1==null||_0x1a41c1[_0x27e6de(0x135)]();});}async[_0x19c1ed(0x1a5)](_0x500af9){const _0x292b83=_0x19c1ed,_0x306a6f=await this[_0x292b83(0x12c)][_0x292b83(0x1b9)](_0x500af9),_0x1c18a1=this[_0x292b83(0x10c)][_0x292b83(0x177)](exports['LiveShareCoordinator'],_0x500af9,_0x306a6f);return _0x1c18a1['init'](),this[_0x292b83(0x113)]['set'](_0x500af9,_0x1c18a1),_0x1c18a1;}},exports[_0x19c1ed(0xfe)]=P([S(0x0,o[_0x19c1ed(0x144)]),S(0x1,o[_0x19c1ed(0x10b)](o[_0x19c1ed(0x19e)])),S(0x2,o[_0x19c1ed(0x10b)](b[_0x19c1ed(0x185)]))],exports['LiveShareController']);var u=(_0x1a0e5e=>(_0x1a0e5e[_0x19c1ed(0x1ad)]=_0x19c1ed(0x16e),_0x1a0e5e[_0x19c1ed(0x163)]='idle',_0x1a0e5e[_0x19c1ed(0x17c)]='following',_0x1a0e5e[_0x19c1ed(0x13b)]=_0x19c1ed(0x141),_0x1a0e5e[_0x19c1ed(0x127)]='presenting',_0x1a0e5e))(u||{});const k=_0x19c1ed(0xe8),q=0xc8;exports[_0x19c1ed(0x123)]=class extends o[_0x19c1ed(0xed)]{constructor(_0x5270b1,_0x45305f,_0x1a03cc,_0x10144a,_0x4b059d){const _0x70d380=_0x19c1ed;super(),_(this,_0x70d380(0xf2),new O['BehaviorSubject']('idle')),_(this,_0x70d380(0x11d),this[_0x70d380(0xf2)][_0x70d380(0x181)]()),_(this,'_init',!0x1),_(this,_0x70d380(0x188),null),_(this,_0x70d380(0xe3),null),(this[_0x70d380(0xe6)]=_0x5270b1,this[_0x70d380(0x1a3)]=_0x45305f,this[_0x70d380(0x133)]=_0x1a03cc,this[_0x70d380(0x10f)]=_0x10144a,this['_commandService']=_0x4b059d);}get[_0x19c1ed(0x11c)](){const _0x25ca0f=_0x19c1ed;return this[_0x25ca0f(0xf2)][_0x25ca0f(0xf7)]();}[_0x19c1ed(0x135)](){const _0x1eeebe=_0x19c1ed;var _0x476fde;(_0x476fde=this[_0x1eeebe(0x188)])==null||_0x476fde[_0x1eeebe(0x135)](),this[_0x1eeebe(0xf2)][_0x1eeebe(0x119)](_0x1eeebe(0x18c)),this[_0x1eeebe(0xf2)][_0x1eeebe(0x178)]();}[_0x19c1ed(0x160)](){const _0x581dac=_0x19c1ed;return this[_0x581dac(0x11c)];}['init'](){const _0x21790=_0x19c1ed;this[_0x21790(0x168)]||(this[_0x21790(0x168)]=!0x0,this[_0x21790(0x1a3)][_0x21790(0x11e)][_0x21790(0x14e)](I[_0x21790(0x1b0)](this[_0x21790(0x19a)]))['subscribe'](_0x1bd03b=>{const _0x3d9d66=_0x21790;switch(_0x1bd03b){case b[_0x3d9d66(0x1b3)][_0x3d9d66(0x1ad)]:this[_0x3d9d66(0x152)]();break;case b[_0x3d9d66(0x1b3)]['ONLINE']:this[_0x3d9d66(0x100)]();break;}}),this[_0x21790(0x1a3)][_0x21790(0x1ae)][_0x21790(0x14e)](I[_0x21790(0x1b0)](this['dispose$']))[_0x21790(0x126)](_0x2bec0d=>{const _0x5b2282=_0x21790,{eventID:_0x58fb28}=_0x2bec0d;switch(_0x58fb28){case d[_0x5b2282(0x180)][_0x5b2282(0x14c)]:this[_0x5b2282(0x1aa)](_0x2bec0d);break;case d[_0x5b2282(0x180)][_0x5b2282(0xf5)]:this[_0x5b2282(0x137)](_0x2bec0d);break;case d[_0x5b2282(0x180)][_0x5b2282(0x14b)]:this[_0x5b2282(0x121)]();break;case d['CollaborationEvent'][_0x5b2282(0x108)]:this['_handleNewChangeSets'](_0x2bec0d);break;}}));}[_0x19c1ed(0x167)](){const _0x1a6f0a=_0x19c1ed;this[_0x1a6f0a(0x1a3)][_0x1a6f0a(0x10a)]({'eventID':d[_0x1a6f0a(0x180)][_0x1a6f0a(0x109)],'data':{'unitID':this[_0x1a6f0a(0xe6)],'userID':this[_0x1a6f0a(0x1a3)][_0x1a6f0a(0x171)]()}},this[_0x1a6f0a(0xe6)]);}[_0x19c1ed(0x13e)](){const _0x559b52=_0x19c1ed;this[_0x559b52(0x11c)]==='presenting'&&(this['_status$'][_0x559b52(0x119)]('idle'),this[_0x559b52(0x1a3)]['send']({'eventID':d[_0x559b52(0x180)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x559b52(0xe6)]}},this['_unitID']));}['startFollowing'](){const _0x1662d9=_0x19c1ed;this[_0x1662d9(0x11c)]==='not-following'&&(this[_0x1662d9(0xf2)][_0x1662d9(0x119)](_0x1662d9(0x16d)),this['_startFollowing']());}[_0x19c1ed(0xf8)](){const _0x258c9f=_0x19c1ed;this['_status']===_0x258c9f(0x16d)&&this['_stopFollowing']();}[_0x19c1ed(0x1aa)](_0x1d86da){const _0x37af0c=_0x19c1ed,{presenter:_0x574773}=_0x1d86da['data'],_0x51493b=this[_0x37af0c(0x1a3)]['getMemberID']();this[_0x37af0c(0xe3)]=_0x574773,_0x574773===_0x51493b?(this[_0x37af0c(0x16a)](),this[_0x37af0c(0x14f)]()):this[_0x37af0c(0x11c)]!==_0x37af0c(0x141)&&(this[_0x37af0c(0x153)](),this[_0x37af0c(0x12e)]());}[_0x19c1ed(0x1b5)](){const _0xc94ba1=_0x19c1ed,_0x6669fa={'eventID':d['CollaborationEvent'][_0xc94ba1(0x115)]};this['_collabSession']['send'](_0x6669fa,this[_0xc94ba1(0xe6)]);}[_0x19c1ed(0x121)](){const _0x323bf7=_0x19c1ed;this[_0x323bf7(0xe3)]=null,this[_0x323bf7(0x11c)]!==_0x323bf7(0x136)&&this['_beIdle']();}[_0x19c1ed(0xf9)](_0x5e2d18){const _0x14c498=_0x19c1ed;if(this['_status']===_0x14c498(0x16d)&&this['_presenter']===_0x5e2d18[_0x14c498(0x19b)][_0x14c498(0x19d)]){const _0x36271c=d[_0x14c498(0x15e)](_0x5e2d18[_0x14c498(0x19b)])[_0x14c498(0x173)][_0x14c498(0x106)]()[_0x14c498(0x17a)](_0x46cc3f=>_0x46cc3f['id']===C[_0x14c498(0x1b6)]['id']);if(_0x36271c){const _0x400001=_0x36271c[_0x14c498(0x175)][_0x14c498(0xf3)],_0x48d857=_0x36271c[_0x14c498(0x175)][_0x14c498(0x195)]['id'];setTimeout(()=>{const _0x195a94=_0x14c498;this[_0x195a94(0x159)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x400001,'subUnitId':_0x48d857},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2d14b3=_0x19c1ed;this[_0x2d14b3(0xf2)][_0x2d14b3(0x119)](_0x2d14b3(0x136));const _0x281921=new Map(),_0x537264=this[_0x2d14b3(0x188)]=new o[(_0x2d14b3(0xe5))]();_0x537264['add'](o['toDisposable'](()=>{const _0x121b54=_0x2d14b3;_0x281921[_0x121b54(0xe4)](_0x45348b=>_0x45348b[_0x121b54(0x178)]()),_0x281921[_0x121b54(0x104)]();})),_0x537264[_0x2d14b3(0x164)](this[_0x2d14b3(0x159)]['onCommandExecuted'](_0xa3349a=>{const _0x2e6ea0=_0x2d14b3;var _0x456b14;if(_0xa3349a['type']!==o[_0x2e6ea0(0xde)][_0x2e6ea0(0x131)]||!this[_0x2e6ea0(0x10f)][_0x2e6ea0(0x116)](_0xa3349a['id']))return;const {id:_0x227312}=_0xa3349a;let _0x3df9c8;_0x281921[_0x2e6ea0(0x18a)](_0x227312)?_0x3df9c8=_0x281921[_0x2e6ea0(0x12a)](_0x227312):(_0x3df9c8=new O[(_0x2e6ea0(0x140))](),_0x281921[_0x2e6ea0(0x122)](_0x227312,_0x3df9c8),_0x3df9c8['pipe'](I['throttleTime']((_0x456b14=this[_0x2e6ea0(0x133)][_0x2e6ea0(0x15c)](k))!=null?_0x456b14:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e6ea0(0x126)](_0x1a3759=>{const _0x116689=_0x2e6ea0;this[_0x116689(0x1a3)][_0x116689(0x10a)]({'eventID':d[_0x116689(0x180)][_0x116689(0xf5)],'data':{'unitID':this['_unitID'],'operations':{[_0x1a3759['id']]:{'id':_0x1a3759['id'],'params':JSON[_0x116689(0x174)](_0x1a3759['params'])}}}},this['_unitID']);})),_0x3df9c8[_0x2e6ea0(0x119)](_0xa3349a);})),this[_0x2d14b3(0x10f)]['getInitialStates'](this['_unitID'])[_0x2d14b3(0xe4)](_0x4a60c4=>this[_0x2d14b3(0x1a3)][_0x2d14b3(0x10a)]({'eventID':d[_0x2d14b3(0x180)][_0x2d14b3(0xf5)],'data':{'unitID':this[_0x2d14b3(0xe6)],'operations':{[_0x4a60c4['id']]:{'id':_0x4a60c4['id'],'params':JSON[_0x2d14b3(0x174)](_0x4a60c4[_0x2d14b3(0x175)])}}}},this[_0x2d14b3(0xe6)]));}[_0x19c1ed(0x153)](){const _0x541660=_0x19c1ed;var _0x2ba16e;this[_0x541660(0xf2)][_0x541660(0x119)](_0x541660(0x18c)),(_0x2ba16e=this[_0x541660(0x188)])==null||_0x2ba16e[_0x541660(0x135)](),this[_0x541660(0x188)]=null;}[_0x19c1ed(0x12e)](){const _0x4b8816=_0x19c1ed;var _0x308751;(_0x308751=this[_0x4b8816(0x188)])==null||_0x308751[_0x4b8816(0x135)](),this['_status$'][_0x4b8816(0x119)](_0x4b8816(0x16d));}[_0x19c1ed(0x190)](){const _0x1d193c=_0x19c1ed;var _0x34a9c8;this[_0x1d193c(0xf2)]['next']('idle'),(_0x34a9c8=this['_commandDisposable'])==null||_0x34a9c8[_0x1d193c(0x135)](),this[_0x1d193c(0x188)]=null;}[_0x19c1ed(0x16a)](){const _0xe62904=_0x19c1ed;var _0x4a0541;this[_0xe62904(0xf2)][_0xe62904(0x119)](_0xe62904(0x141)),(_0x4a0541=this[_0xe62904(0x188)])==null||_0x4a0541[_0xe62904(0x135)]();}['_handleOperation'](_0x5e588c){const _0x169833=_0x19c1ed;if(['presenting',_0x169833(0x141),'offline']['includes'](this[_0x169833(0x11c)])||!_0x5e588c[_0x169833(0x19b)][_0x169833(0xea)]||_0x5e588c['data'][_0x169833(0xea)]===this[_0x169833(0x1a3)][_0x169833(0x171)]())return;this[_0x169833(0x11c)]===_0x169833(0x18c)&&this[_0x169833(0x12e)]();const _0x2eb00e=_0x5e588c[_0x169833(0x19b)][_0x169833(0x118)];Object[_0x169833(0xe9)](_0x2eb00e)[_0x169833(0xe4)](_0x258eb8=>{const _0x5c950a=_0x169833;this[_0x5c950a(0x159)][_0x5c950a(0x156)](_0x258eb8['id'],_0x258eb8['params']?JSON[_0x5c950a(0x101)](_0x258eb8[_0x5c950a(0x175)]):null,{'fromCollab':!0x0});});}[_0x19c1ed(0x152)](){const _0xd7bd35=_0x19c1ed;var _0x18217e;this[_0xd7bd35(0xf2)][_0xd7bd35(0x119)](_0xd7bd35(0x16e)),(_0x18217e=this[_0xd7bd35(0x188)])==null||_0x18217e['dispose']();}[_0x19c1ed(0x100)](){const _0x1b5195=_0x19c1ed;this[_0x1b5195(0xf2)][_0x1b5195(0x119)](_0x1b5195(0x18c)),this[_0x1b5195(0x1b5)]();}},exports[_0x19c1ed(0x123)]=P([S(0x2,o[_0x19c1ed(0x1ab)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0x8fe406=_0x19c1ed,_0xa30536=p['useDependency'](exports[_0x8fe406(0xfe)]),_0x4b9e33=p[_0x8fe406(0xf1)](o[_0x8fe406(0x144)]),_0x1e301b=p[_0x8fe406(0x11b)](()=>_0x4b9e33[_0x8fe406(0x125)](o[_0x8fe406(0xdd)][_0x8fe406(0xff)]),void 0x0,!0x1,[]),[_0x126d3c,_0x3b5c09]=v[_0x8fe406(0xfc)](null),[_0x1d814f,_0x28e255]=v[_0x8fe406(0xfc)](u['IDLE']),_0x4e7c14=v[_0x8fe406(0x172)](null);return v['useEffect'](()=>(_0x1e301b&&_0xa30536[_0x8fe406(0x187)](_0x1e301b['getUnitId']())[_0x8fe406(0x189)](_0x431c78=>{const _0x425734=_0x8fe406;_0x3b5c09(_0x431c78),_0x4e7c14[_0x425734(0x148)]=_0x431c78[_0x425734(0x11d)][_0x425734(0x126)](_0x37c84a=>{_0x28e255(_0x37c84a);});}),()=>{const _0x3cde62=_0x8fe406;var _0x677732;(_0x677732=_0x4e7c14[_0x3cde62(0x148)])==null||_0x677732['unsubscribe'](),_0x4e7c14['current']=null;}),[_0x1e301b,_0xa30536]),_0x126d3c?l[_0x8fe406(0x1a7)](f[_0x8fe406(0x182)],{'align':_0x8fe406(0x1af),'disabled':_0x1d814f===u[_0x8fe406(0x1ad)],'className':_0x8fe406(0x15a),'overlay':l[_0x8fe406(0x1a7)](W,{'status':_0x1d814f,'coordinator':_0x126d3c}),'children':l[_0x8fe406(0x1a7)](_0x8fe406(0x15f),{'className':f[_0x8fe406(0x15b)](_0x8fe406(0x111),{'univer-cursor-not-allowed':_0x1d814f===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d814f!==u[_0x8fe406(0x1ad)]}),'type':_0x8fe406(0x15f),'children':l[_0x8fe406(0x1a7)](R,{'className':_0x8fe406(0x150)})})}):null;}function _0x2ce0(_0x1f6ce6,_0x366f0a){const _0xe6656a=_0xe665();return _0x2ce0=function(_0x2ce08,_0x197117){_0x2ce08=_0x2ce08-0xdd;let _0x31bc7e=_0xe6656a[_0x2ce08];return _0x31bc7e;},_0x2ce0(_0x1f6ce6,_0x366f0a);}function W(_0x511dd6){const _0x3948e1=_0x19c1ed,{status:_0x244d98,coordinator:_0x2e2e55}=_0x511dd6;switch(_0x244d98){case u[_0x3948e1(0x163)]:return l['jsx'](G,{'coordinator':_0x2e2e55});case u['FOLLOWING']:return l[_0x3948e1(0x1a7)](B,{'coordinator':_0x2e2e55});case u[_0x3948e1(0x13b)]:return l[_0x3948e1(0x1a7)](Y,{'coordinator':_0x2e2e55});case u[_0x3948e1(0x1ad)]:return l[_0x3948e1(0x1a7)](J,{});case u[_0x3948e1(0x127)]:return l[_0x3948e1(0x1a7)](Z,{'coordinator':_0x2e2e55});default:return null;}}function G(_0x275bab){const _0x6f195a=_0x19c1ed,{coordinator:_0x13b9ef}=_0x275bab;return l[_0x6f195a(0x18d)](l['Fragment'],{'children':[l[_0x6f195a(0x1a7)](_0x6f195a(0x17b),{'className':_0x6f195a(0x1ac),'children':_0x6f195a(0x186)}),l[_0x6f195a(0x1a7)](f[_0x6f195a(0x154)],{'onClick':()=>_0x13b9ef[_0x6f195a(0x167)](),'children':_0x6f195a(0x1a8)})]});}function B(_0x583598){const _0x3baf0e=_0x19c1ed,{coordinator:_0x35e97f}=_0x583598;return l['jsxs'](l[_0x3baf0e(0x110)],{'children':[l[_0x3baf0e(0x1a7)](_0x3baf0e(0x17b),{'className':_0x3baf0e(0x1ac),'children':_0x3baf0e(0xee)}),l['jsx'](f[_0x3baf0e(0x154)],{'onClick':()=>_0x35e97f[_0x3baf0e(0xf8)](),'children':_0x3baf0e(0x1b7)})]});}function Y(_0x5c7774){const _0x554094=_0x19c1ed,{coordinator:_0x2bc7e9}=_0x5c7774;return l[_0x554094(0x18d)](l[_0x554094(0x110)],{'children':[l[_0x554094(0x1a7)](_0x554094(0x17b),{'className':_0x554094(0x1ac),'children':_0x554094(0x105)}),l['jsx'](f[_0x554094(0x154)],{'variant':_0x554094(0x18f),'onClick':()=>_0x2bc7e9[_0x554094(0xe0)](),'children':_0x554094(0x12d)})]});}function Z(_0xce33a6){const _0x65fba=_0x19c1ed,{coordinator:_0x4c6e3f}=_0xce33a6;return l[_0x65fba(0x18d)](l[_0x65fba(0x110)],{'children':[l[_0x65fba(0x1a7)]('div',{'className':_0x65fba(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](f[_0x65fba(0x154)],{'variant':_0x65fba(0x103),'onClick':()=>_0x4c6e3f[_0x65fba(0x13e)](),'children':'Stop\x20presenting'})]});}function J(){const _0x6494aa=_0x19c1ed;return l['jsx'](l[_0x6494aa(0x110)],{'children':_0x6494aa(0x196)});}var K=Object[_0x19c1ed(0x1a9)],z=(_0x2dda87,_0x48a72f,_0x5cfcfc,_0x524a16)=>{const _0x53ab04=_0x19c1ed;for(var _0x4f6ce3=_0x524a16>0x1?void 0x0:_0x524a16?K(_0x48a72f,_0x5cfcfc):_0x48a72f,_0x172061=_0x2dda87[_0x53ab04(0x155)]-0x1,_0x2a3b2a;_0x172061>=0x0;_0x172061--)(_0x2a3b2a=_0x2dda87[_0x172061])&&(_0x4f6ce3=_0x2a3b2a(_0x4f6ce3)||_0x4f6ce3);return _0x4f6ce3;},L=(_0x47ecd7,_0x11766c)=>(_0x171ed4,_0x55ee6f)=>_0x11766c(_0x171ed4,_0x55ee6f,_0x47ecd7);exports['DesktopLiveShareController']=class extends o[_0x19c1ed(0x145)]{constructor(_0x3a0753,_0x2d6a1b){const _0xac6bcc=_0x19c1ed;super(),this[_0xac6bcc(0x10c)]=_0x3a0753,this[_0xac6bcc(0x107)]=_0x2d6a1b,this[_0xac6bcc(0x183)]();}[_0x19c1ed(0x183)](){const _0x1ddd1f=_0x19c1ed;this[_0x1ddd1f(0xfa)](this[_0x1ddd1f(0x107)][_0x1ddd1f(0x13c)](p[_0x1ddd1f(0x124)][_0x1ddd1f(0x14a)],()=>p['connectInjector']($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x19c1ed(0x10b)](o['Injector'])),L(0x1,p[_0x19c1ed(0x11f)])],exports[_0x19c1ed(0x16b)]);const Q=_0x19c1ed(0xe1),w={};var X=Object[_0x19c1ed(0x1a9)],ee=(_0x1098f0,_0x227e5f,_0x4fd060,_0x10b824)=>{for(var _0x3bb3ec=_0x10b824>0x1?void 0x0:_0x10b824?X(_0x227e5f,_0x4fd060):_0x227e5f,_0x5cc1aa=_0x1098f0['length']-0x1,_0x3469d1;_0x5cc1aa>=0x0;_0x5cc1aa--)(_0x3469d1=_0x1098f0[_0x5cc1aa])&&(_0x3bb3ec=_0x3469d1(_0x3bb3ec)||_0x3bb3ec);return _0x3bb3ec;},te=(_0x28a81d,_0x2acb12)=>(_0x138cdd,_0x3c62da)=>_0x2acb12(_0x138cdd,_0x3c62da,_0x28a81d);let m=class extends o['Disposable']{constructor(_0x47d964){const _0x42fe72=_0x19c1ed;super(),this[_0x42fe72(0x10f)]=_0x47d964,this['_init']();}[_0x19c1ed(0x168)](){const _0x5e5a80=_0x19c1ed;[D[_0x5e5a80(0x120)]['id'],D[_0x5e5a80(0x16f)]['id'],C[_0x5e5a80(0x1a1)]['id']][_0x5e5a80(0xe4)](_0x304690=>{const _0x2acb1d=_0x5e5a80;this[_0x2acb1d(0xfa)](this[_0x2acb1d(0x10f)][_0x2acb1d(0x194)](_0x304690));});}};m=ee([te(0x0,o[_0x19c1ed(0x10b)](E))],m);var ie=Object['defineProperty'],se=Object[_0x19c1ed(0x1a9)],ne=(_0xfdabc1,_0x33a01e,_0x5179aa)=>_0x33a01e in _0xfdabc1?ie(_0xfdabc1,_0x33a01e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5179aa}):_0xfdabc1[_0x33a01e]=_0x5179aa,re=(_0x11b0e4,_0x1832b7,_0x3d6842,_0x36f2e8)=>{const _0x1e6c73=_0x19c1ed;for(var _0x4e10e1=_0x36f2e8>0x1?void 0x0:_0x36f2e8?se(_0x1832b7,_0x3d6842):_0x1832b7,_0x217aed=_0x11b0e4[_0x1e6c73(0x155)]-0x1,_0x49acb2;_0x217aed>=0x0;_0x217aed--)(_0x49acb2=_0x11b0e4[_0x217aed])&&(_0x4e10e1=_0x49acb2(_0x4e10e1)||_0x4e10e1);return _0x4e10e1;},N=(_0x2178a0,_0x5175a9)=>(_0x3b8a2f,_0x351f5f)=>_0x5175a9(_0x3b8a2f,_0x351f5f,_0x2178a0),A=(_0x8e6e9,_0x24d46f,_0x5aec50)=>ne(_0x8e6e9,typeof _0x24d46f!=_0x19c1ed(0x13a)?_0x24d46f+'':_0x24d46f,_0x5aec50);const oe=_0x19c1ed(0x193);exports[_0x19c1ed(0x1a2)]=class extends o[_0x19c1ed(0x18e)]{constructor(_0x245f2c=w,_0x5eef7f,_0x4e0bf0){const _0x4f71fc=_0x19c1ed;super(),this[_0x4f71fc(0xe2)]=_0x245f2c,this[_0x4f71fc(0x10c)]=_0x5eef7f,this[_0x4f71fc(0x133)]=_0x4e0bf0;const {..._0x1f58c1}=o['merge']({},w,this[_0x4f71fc(0xe2)]);this[_0x4f71fc(0x133)][_0x4f71fc(0x1a6)](Q,_0x1f58c1);}['onStarting'](){const _0x4697b9=_0x19c1ed;o['registerDependencies'](this['_injector'],o[_0x4697b9(0x149)]([[E],[exports[_0x4697b9(0xfe)]],[m],[exports[_0x4697b9(0x16b)]]],this[_0x4697b9(0xe2)][_0x4697b9(0xec)])),o[_0x4697b9(0x12b)](this[_0x4697b9(0x10c)],[[m]]);}[_0x19c1ed(0x18b)](){const _0x12eab6=_0x19c1ed;o[_0x12eab6(0x12b)](this[_0x12eab6(0x10c)],[[exports[_0x12eab6(0x16b)]]]);}},A(exports[_0x19c1ed(0x1a2)],_0x19c1ed(0x199),o['UniverInstanceType'][_0x19c1ed(0x1a0)]),A(exports[_0x19c1ed(0x1a2)],_0x19c1ed(0x17d),oe),exports[_0x19c1ed(0x1a2)]=re([o[_0x19c1ed(0x14d)](b[_0x19c1ed(0x19f)]),N(0x1,o[_0x19c1ed(0x10b)](o[_0x19c1ed(0x19e)])),N(0x2,o[_0x19c1ed(0x1ab)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x19c1ed(0x146)]=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 _0x4648f1=_0x325e;function _0x3468(){const _0x5d59c1=['getStatus','15921TwnmZe','executeCommand','extend','1942548LrGSwn','92244lUIfED','6930ffQmpO','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','get','_injector','getLiveShareCoordinatorSync','_initialize','tryStartPresenting','stopPresenting','getSheetId','getId','56zIqtGB','4184068wamPvx','getUnitId','37wUMELC','startRow','getRenderById','60hbomvd','startColumn','getActiveWorkbook','43943086AuZxJZ','getLiveShareStatus','stopFollowing','IDLE','_commandService','1512096zwowwR','LiveShareStatusEnum','634870xcinpU'];_0x3468=function(){return _0x5d59c1;};return _0x3468();}(function(_0x309c34,_0x20e27a){const _0x321ed6=_0x325e,_0x3269ea=_0x309c34();while(!![]){try{const _0x308032=-parseInt(_0x321ed6(0x17d))/0x1*(-parseInt(_0x321ed6(0x190))/0x2)+parseInt(_0x321ed6(0x18f))/0x3+parseInt(_0x321ed6(0x17b))/0x4+-parseInt(_0x321ed6(0x18a))/0x5*(parseInt(_0x321ed6(0x180))/0x6)+parseInt(_0x321ed6(0x17a))/0x7*(parseInt(_0x321ed6(0x188))/0x8)+parseInt(_0x321ed6(0x18c))/0x9*(parseInt(_0x321ed6(0x16e))/0xa)+-parseInt(_0x321ed6(0x183))/0xb;if(_0x308032===_0x20e27a)break;else _0x3269ea['push'](_0x3269ea['shift']());}catch(_0x303288){_0x3269ea['push'](_0x3269ea['shift']());}}}(_0x3468,0xd5416));import{LiveShareController as _0x351dda,LiveShareStatus as _0x65b6a5}from'@univerjs-pro/live-share';function _0x325e(_0x486581,_0x3beec4){const _0x34681c=_0x3468();return _0x325e=function(_0x325e8b,_0x20cc05){_0x325e8b=_0x325e8b-0x16e;let _0x412165=_0x34681c[_0x325e8b];return _0x412165;},_0x325e(_0x486581,_0x3beec4);}import{IRenderManagerService as _0x56edfb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x128df4}from'@univerjs/sheets';import{SetScrollOperation as _0x4c9be2}from'@univerjs/sheets-ui';import{FRange as _0x5a02c4}from'@univerjs/sheets/facade';import{FUniver as _0x2ca598,FEnum as _0xacc36f}from'@univerjs/core/facade';class I extends _0x5a02c4{[_0x4648f1(0x175)](_0x140018,_0x2c4b30,_0x25b7cf,_0x2cb8a4,_0x5b5921){const _0x1ff392=_0x4648f1,_0xec7c3a=_0x140018['get'](_0x351dda),_0x183a38=_0x140018['get'](_0x56edfb),_0x2aeef1=_0x2c4b30[_0x1ff392(0x17c)](),_0x3ed51c=_0x2c4b30['getActiveSheet'](),_0x2f151b=_0xec7c3a[_0x1ff392(0x174)](_0x2aeef1);(_0x2f151b==null?void 0x0:_0x2f151b['getStatus']())!==_0x65b6a5['PRESENTING']||(_0x25b7cf[_0x1ff392(0x178)]()!==_0x3ed51c[_0x1ff392(0x178)]()&&this[_0x1ff392(0x187)][_0x1ff392(0x18d)](_0x128df4['id'],{'unitId':_0x2aeef1,'subUnitId':_0x25b7cf[_0x1ff392(0x178)]()}),!_0x183a38[_0x1ff392(0x17f)](_0x2aeef1))||_0x5b5921[_0x1ff392(0x171)](_0x4c9be2['id'],{'unitId':_0x2c4b30[_0x1ff392(0x17c)](),'sheetId':_0x25b7cf['getSheetId'](),'sheetViewStartRow':_0x2cb8a4[_0x1ff392(0x17e)],'sheetViewStartColumn':_0x2cb8a4[_0x1ff392(0x181)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5a02c4['extend'](I);class m extends _0x2ca598{[_0x4648f1(0x184)](){const _0x2b552c=_0x4648f1;var _0x5187b5,_0xa4b566;const _0x49b250=this[_0x2b552c(0x173)][_0x2b552c(0x172)](_0x351dda),_0x2ce986=(_0x5187b5=this[_0x2b552c(0x182)]())==null?void 0x0:_0x5187b5[_0x2b552c(0x179)]();if(!_0x2ce986)throw new Error(_0x2b552c(0x16f));const _0x4132b1=_0x49b250[_0x2b552c(0x174)](_0x2ce986);return(_0xa4b566=_0x4132b1==null?void 0x0:_0x4132b1[_0x2b552c(0x18b)]())!=null?_0xa4b566:_0x65b6a5[_0x2b552c(0x186)];}['startFollowing'](){const _0x559ab7=_0x4648f1;var _0x54f8cf;const _0x6bc560=this[_0x559ab7(0x173)][_0x559ab7(0x172)](_0x351dda),_0x4c8c91=(_0x54f8cf=this[_0x559ab7(0x182)]())==null?void 0x0:_0x54f8cf[_0x559ab7(0x179)]();if(!_0x4c8c91)throw new Error(_0x559ab7(0x16f));const _0x529394=_0x6bc560[_0x559ab7(0x174)](_0x4c8c91);if(!_0x529394)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x529394['startFollowing']();}[_0x4648f1(0x185)](){const _0x178efe=_0x4648f1;var _0x555bdc;const _0x5dd584=this['_injector']['get'](_0x351dda),_0x1b5981=(_0x555bdc=this[_0x178efe(0x182)]())==null?void 0x0:_0x555bdc[_0x178efe(0x179)]();if(!_0x1b5981)throw new Error('No\x20active\x20workbook\x20found.');const _0x1672b7=_0x5dd584[_0x178efe(0x174)](_0x1b5981);if(!_0x1672b7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1672b7[_0x178efe(0x185)]();}['startPresenting'](){const _0x5c4feb=_0x4648f1;var _0x1fd458;const _0x1585b0=this['_injector'][_0x5c4feb(0x172)](_0x351dda),_0x1af546=(_0x1fd458=this[_0x5c4feb(0x182)]())==null?void 0x0:_0x1fd458[_0x5c4feb(0x179)]();if(!_0x1af546)throw new Error(_0x5c4feb(0x16f));const _0x7cf0e9=_0x1585b0[_0x5c4feb(0x174)](_0x1af546);if(!_0x7cf0e9)throw new Error(_0x5c4feb(0x170));_0x7cf0e9[_0x5c4feb(0x176)]();}[_0x4648f1(0x177)](){const _0x2e59f5=_0x4648f1;var _0x30d458;const _0x451aae=this[_0x2e59f5(0x173)][_0x2e59f5(0x172)](_0x351dda),_0xfb6b00=(_0x30d458=this[_0x2e59f5(0x182)]())==null?void 0x0:_0x30d458[_0x2e59f5(0x179)]();if(!_0xfb6b00)throw new Error(_0x2e59f5(0x16f));const _0x3d456a=_0x451aae['getLiveShareCoordinatorSync'](_0xfb6b00);if(!_0x3d456a)throw new Error(_0x2e59f5(0x170));_0x3d456a[_0x2e59f5(0x177)]();}}_0x2ca598[_0x4648f1(0x18e)](m);class C extends _0xacc36f{get[_0x4648f1(0x189)](){return _0x65b6a5;}}_0xacc36f[_0x4648f1(0x18e)](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 _0x480de2=_0x3214;(function(_0x5b4f45,_0x275d27){const _0x10c06c=_0x3214,_0x4efa24=_0x5b4f45();while(!![]){try{const _0x31c00a=-parseInt(_0x10c06c(0xbb))/0x1*(-parseInt(_0x10c06c(0x10f))/0x2)+-parseInt(_0x10c06c(0xda))/0x3+-parseInt(_0x10c06c(0xbd))/0x4+-parseInt(_0x10c06c(0x117))/0x5*(-parseInt(_0x10c06c(0xfc))/0x6)+parseInt(_0x10c06c(0x8c))/0x7*(-parseInt(_0x10c06c(0x84))/0x8)+-parseInt(_0x10c06c(0x121))/0x9+parseInt(_0x10c06c(0x92))/0xa*(parseInt(_0x10c06c(0xae))/0xb);if(_0x31c00a===_0x275d27)break;else _0x4efa24['push'](_0x4efa24['shift']());}catch(_0x37728f){_0x4efa24['push'](_0x4efa24['shift']());}}}(_0x4f88,0x81f47));var J=Object['defineProperty'],K=(_0x461ca2,_0x4fd856,_0x413d35)=>_0x4fd856 in _0x461ca2?J(_0x461ca2,_0x4fd856,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413d35}):_0x461ca2[_0x4fd856]=_0x413d35,u=(_0x5b1943,_0x3e3b9e,_0x253d78)=>K(_0x5b1943,typeof _0x3e3b9e!=_0x480de2(0x106)?_0x3e3b9e+'':_0x3e3b9e,_0x253d78);import{Disposable as _0x445766,toDisposable as _0x5b0e28,IUniverInstanceService as _0x59e319,Inject as _0x31d8e9,Injector as _0x4d1ef7,IConfigService as _0xea2396,ICommandService as _0x358f4b,RxDisposable as _0x22ff37,UniverInstanceType as _0x1e0e7d,DisposableCollection as _0xb8bf1f,CommandType as _0x2baff1,DependentOn as _0x2532bd,Plugin as _0x218f1f,merge as _0x477aae,registerDependencies as _0xaed711,mergeOverrideWithDependencies as _0xb0235f,touchDependencies as _0xd465dc}from'@univerjs/core';import{useDependency as _0x5b95cb,useObservable as _0x477adc,IUIPartsService as _0x1618ae,BuiltInUIPart as _0x589e20,connectInjector as _0x2bfcca}from'@univerjs/ui';import{jsx as _0x4f48f3,jsxs as _0x4070ad,Fragment as _0x5480f9}from'react/jsx-runtime';import{Dropdown as _0x43303b,clsx as _0x219d87,Button as _0x5f10a4}from'@univerjs/design';import{useRef as _0x2d1821,createElement as _0x4e41ac,forwardRef as _0x46ea63,useState as _0x3126fc,useEffect as _0x42fb54}from'react';import{CollaborationEvent as _0x5cbca8,parseProtocolChangeset as _0x432e75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x23bc86,SessionStatus as _0x1d465d,UniverCollaborationClientPlugin as _0x1e0ea8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29dcc9,SetWorksheetActiveOperation as _0x42d600}from'@univerjs/sheets';import{BehaviorSubject as _0x2d7f44,Subject as _0x35191d}from'rxjs';import{takeUntil as _0x227b42,throttleTime as _0x55381b}from'rxjs/operators';import{SetZoomRatioOperation as _0xee7cd,SetScrollOperation as _0x504137}from'@univerjs/sheets-ui';function k({ref:_0x1f377f,..._0x2b47fb}){const _0x59af70=_0x480de2,{icon:_0x39cd92,id:_0xa0f525,className:_0x4aa8ae,extend:_0x336fd9,..._0x504ac5}=_0x2b47fb,_0xbc87d8=(_0x59af70(0xa0)+_0xa0f525+'\x20'+(_0x4aa8ae||''))[_0x59af70(0xc9)](),_0x3ecab3=_0x2d1821('_'+Oe());return G(_0x39cd92,''+_0xa0f525,{'defIds':_0x39cd92['defIds'],'idSuffix':_0x3ecab3[_0x59af70(0x107)]},{'ref':_0x1f377f,'className':_0xbc87d8,..._0x504ac5},_0x336fd9);}function G(_0x8e1b9e,_0x4d9c84,_0x12c0b1,_0x4d9bee,_0x2a75a1){const _0x33094c=_0x480de2;return _0x4e41ac(_0x8e1b9e['tag'],{'key':_0x4d9c84,...be(_0x8e1b9e,_0x12c0b1,_0x2a75a1),..._0x4d9bee},(Ee(_0x8e1b9e,_0x12c0b1)[_0x33094c(0xb8)]||[])[_0x33094c(0x119)]((_0x451e06,_0x4c8de1)=>G(_0x451e06,_0x4d9c84+'-'+_0x8e1b9e[_0x33094c(0xf2)]+'-'+_0x4c8de1,_0x12c0b1,void 0x0,_0x2a75a1)));}function be(_0x16dc26,_0x2470f7,_0x4b0b64){const _0x37b053=_0x480de2,_0x3ba049={..._0x16dc26[_0x37b053(0xc5)]};_0x4b0b64!=null&&_0x4b0b64[_0x37b053(0xd9)]&&_0x3ba049[_0x37b053(0x112)]===_0x37b053(0xd9)&&(_0x3ba049['fill']=_0x4b0b64[_0x37b053(0xd9)]),_0x16dc26[_0x37b053(0xf2)]===_0x37b053(0xbe)&&_0x3ba049['id']&&(_0x3ba049['id']=_0x3ba049['id']+_0x2470f7['idSuffix']),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x5e987c,_0x16d5a5])=>{const _0x4f4e2b=_0x37b053;_0x5e987c==='mask'&&typeof _0x16d5a5==_0x4f4e2b(0x8f)&&(_0x3ba049[_0x5e987c]=_0x16d5a5[_0x4f4e2b(0xc4)](/url\(#(.*)\)/,_0x4f4e2b(0xaa)+_0x2470f7[_0x4f4e2b(0xef)]+')'));});const {defIds:_0x288fc2}=_0x2470f7;return!_0x288fc2||_0x288fc2[_0x37b053(0xbf)]===0x0||(_0x16dc26['tag']==='use'&&_0x3ba049[_0x37b053(0xab)]&&(_0x3ba049['xlink:href']=_0x3ba049['xlink:href']+_0x2470f7[_0x37b053(0xef)]),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x52a9f0,_0x2196f9])=>{const _0x2e47d9=_0x37b053;typeof _0x2196f9==_0x2e47d9(0x8f)&&(_0x3ba049[_0x52a9f0]=_0x2196f9[_0x2e47d9(0xc4)](/url\(#(.*)\)/,_0x2e47d9(0xaa)+_0x2470f7['idSuffix']+')'));})),_0x3ba049;}function _0x4f88(){const _0x44b2af=['univer-size-4','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','_fetchOperations','_commandService','pipe','getInitialStates','currentColor','end','LIVESHARE_NEW_HOST','registerComponent','_handleOnline','colorChannel1','2916078oYCONN','_status','Stop\x20following','_stopPresenting','You\x27re\x20presenting\x20the\x20document','path','_unitID','disposeWithMe','div','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','LIVESHARE_OPERATION','_status$','_liveShareService','Present\x20this\x20document','shouldShareOperation','has','Stop\x20presenting','UNIVER_SHEET','dispose$','PRESENTING','_startFollowing','idSuffix','UniverIcon','NEW_CHANGESETS','tag','LIVESHARE_TERMINATE','getLiveShareCoordinator','requireSession','_startPresenting','OFFLINE','LiveShareIcon','You\x27are\x20offline.','_configService','_univerInstanceService','28746NtXJEV','dispose','delete','idle','sessionStatus$','event$','_injector','getOwnPropertyDescriptor','none','IDLE','symbol','current','defineProperty','stopFollowing','HEADER_MENU','_handleOperation','setConfig','1em','_reporters','2638JazVTb','assign','defs','fill','type','subscribe','LIVESHARE_REQUEST_HOST','stringify','435lgdCCJ','_handleOffline','map','includes','entries','live-share-icon','forEach','_stopFollowing','_commandDisposable','following','8406279PXjokW','_startLiveShareCoordinator','getUnitId','executeCommand','toString','_uiPartsService','startFollowing','_init','37096NHKPto','init','onStarting','evenodd','_entities','presenting','_collabSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','287bLhYqU','OPERATION','live-share.config','string','Start\x20following','FOLLOWING','6230bZgPbI','_config','svg','send','_beIdle','Start','params','tryStartPresenting','not-following','getTypeOfUnitDisposed$','getConfig','getTypeOfUnitAdded$','sheet','data','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','pluginName','onCommandExecuted','get','next','_mountLiveShare','getLiveShareCoordinatorSync','complete','offline','url(#$1','xlink:href','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','40304BMcGXR','reverse','stopPresenting','add','NOT_FOLLOWING','displayName','_handleNewHost','unitId','registerSharedOperation','_handleTerminate','children','getMemberID','from','31pQmyzD','_sharedOperations','447636cnNcDg','mask','length','getValue','set','onRendered','asObservable','replace','attrs','presenter','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','getCurrentTypeOfUnit$','trim','SAME_OPERATION_SHARE_INTERVAL','override','_collabSession','status$'];_0x4f88=function(){return _0x44b2af;};return _0x4f88();}function Ee(_0x3b253d,_0x1a020c){const _0xb4951d=_0x480de2;var _0x253c02;const {defIds:_0x210575}=_0x1a020c;return!_0x210575||_0x210575['length']===0x0?_0x3b253d:_0x3b253d['tag']===_0xb4951d(0x111)&&((_0x253c02=_0x3b253d[_0xb4951d(0xb8)])!=null&&_0x253c02['length'])?{..._0x3b253d,'children':_0x3b253d[_0xb4951d(0xb8)][_0xb4951d(0x119)](_0xbea93e=>typeof _0xbea93e[_0xb4951d(0xc5)]['id']==_0xb4951d(0x8f)&&_0x210575&&_0x210575[_0xb4951d(0x11a)](_0xbea93e['attrs']['id'])?{..._0xbea93e,'attrs':{..._0xbea93e[_0xb4951d(0xc5)],'id':_0xbea93e[_0xb4951d(0xc5)]['id']+_0x1a020c[_0xb4951d(0xef)]}}:_0xbea93e)}:_0x3b253d;}function Oe(){const _0x18f0fe=_0x480de2;return Math['random']()[_0x18f0fe(0x80)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x480de2(0xf0);const we={'tag':_0x480de2(0x94),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x480de2(0x104),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x480de2(0x10d)},'children':[{'tag':_0x480de2(0xdf),'attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xcf)}},{'tag':'path','attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xe3),'fillRule':'evenodd','clipRule':_0x480de2(0x87)}}]},W=_0x46ea63(function(_0x3df12e,_0x413554){const _0x4cba78=_0x480de2;return _0x4e41ac(k,Object[_0x4cba78(0x110)]({},_0x3df12e,{'id':_0x4cba78(0x11c),'ref':_0x413554,'icon':we}));});W[_0x480de2(0xb3)]=_0x480de2(0xf8);class L extends _0x445766{constructor(){const _0x2f1256=_0x480de2;super(...arguments),u(this,_0x2f1256(0xbc),new Set()),u(this,_0x2f1256(0x10e),new Set());}['registerSharedOperation'](_0x9e9e4d){const _0x10aa7c=_0x480de2;return this['_sharedOperations'][_0x10aa7c(0xb1)](_0x9e9e4d),_0x5b0e28(()=>this[_0x10aa7c(0xbc)]['delete'](_0x9e9e4d));}['registerInitialStateReporter'](_0x260e19){const _0x2aecc4=_0x480de2;return this['_reporters'][_0x2aecc4(0xb1)](_0x260e19),_0x5b0e28(()=>this[_0x2aecc4(0x10e)][_0x2aecc4(0xfe)](_0x260e19));}['shouldShareOperation'](_0x2c5c2a){const _0x442917=_0x480de2;return this['_sharedOperations'][_0x442917(0xe9)](_0x2c5c2a);}['getInitialStates'](_0x1c0749){const _0x233238=_0x480de2;return Array[_0x233238(0xba)](this['_reporters'])[_0x233238(0x119)](_0x352188=>_0x352188(_0x1c0749));}}var Ne=Object[_0x480de2(0x103)],Y=(_0x478bc7,_0x580242,_0x5199e8,_0x1b7626)=>{const _0x58404b=_0x480de2;for(var _0x2b03cb=_0x1b7626>0x1?void 0x0:_0x1b7626?Ne(_0x580242,_0x5199e8):_0x580242,_0x49e4fc=_0x478bc7[_0x58404b(0xbf)]-0x1,_0x2a0e1e;_0x49e4fc>=0x0;_0x49e4fc--)(_0x2a0e1e=_0x478bc7[_0x49e4fc])&&(_0x2b03cb=_0x2a0e1e(_0x2b03cb)||_0x2b03cb);return _0x2b03cb;},_=(_0x1ee860,_0x48db45)=>(_0xa68f8c,_0x30646c)=>_0x48db45(_0xa68f8c,_0x30646c,_0x1ee860);let S=class extends _0x22ff37{constructor(_0x53007f,_0x36da91,_0x3de8a0){const _0x3824a1=_0x480de2;super(),u(this,_0x3824a1(0x88),new Map()),(this['_univerInstanceService']=_0x53007f,this['_injector']=_0x36da91,this[_0x3824a1(0x8a)]=_0x3de8a0,this['_init']());}async[_0x480de2(0xf4)](_0xdeef36){const _0x42f639=_0x480de2;return this[_0x42f639(0x88)][_0x42f639(0xe9)](_0xdeef36)||await this[_0x42f639(0x7d)](_0xdeef36),this[_0x42f639(0x88)][_0x42f639(0xa4)](_0xdeef36);}[_0x480de2(0xa7)](_0x3f6404){const _0x23f827=_0x480de2;var _0x1f01d4;return(_0x1f01d4=this['_entities'][_0x23f827(0xa4)](_0x3f6404))!=null?_0x1f01d4:null;}[_0x480de2(0x83)](){const _0x404733=_0x480de2;this[_0x404733(0xfb)][_0x404733(0x9d)](_0x1e0e7d[_0x404733(0xeb)])[_0x404733(0xd2)](_0x227b42(this['dispose$']))[_0x404733(0x114)](async _0x14f98f=>{const _0x25cae0=_0x404733,_0x5a31d4=_0x14f98f[_0x25cae0(0x7e)]();this['_entities'][_0x25cae0(0xe9)](_0x5a31d4)||this[_0x25cae0(0x7d)](_0x5a31d4);}),this['_univerInstanceService'][_0x404733(0x9b)](_0x1e0e7d[_0x404733(0xeb)])['pipe'](_0x227b42(this[_0x404733(0xec)]))[_0x404733(0x114)](_0x4d2dba=>{const _0x423f18=_0x404733,_0x66f1aa=_0x4d2dba[_0x423f18(0x7e)](),_0x1cc2c8=this[_0x423f18(0x88)]['get'](_0x66f1aa);_0x1cc2c8==null||_0x1cc2c8[_0x423f18(0xfd)]();});}async[_0x480de2(0x7d)](_0x23d24e){const _0x492e3a=_0x480de2,_0x56c05a=await this['_collabSessionService'][_0x492e3a(0xf5)](_0x23d24e),_0x1a44db=this[_0x492e3a(0x102)]['createInstance'](N,_0x23d24e,_0x56c05a);return _0x1a44db[_0x492e3a(0x85)](),this['_entities'][_0x492e3a(0xc1)](_0x23d24e,_0x1a44db),_0x1a44db;}};S=Y([_(0x0,_0x59e319),_(0x1,_0x31d8e9(_0x4d1ef7)),_(0x2,_0x31d8e9(_0x23bc86))],S);function _0x3214(_0x429c19,_0x580096){const _0x4f88eb=_0x4f88();return _0x3214=function(_0x32142e,_0x5e2814){_0x32142e=_0x32142e-0x7d;let _0x29b6e5=_0x4f88eb[_0x32142e];return _0x29b6e5;},_0x3214(_0x429c19,_0x580096);}var c=(_0x2250b0=>(_0x2250b0[_0x480de2(0xf7)]=_0x480de2(0xa9),_0x2250b0[_0x480de2(0x105)]=_0x480de2(0xff),_0x2250b0[_0x480de2(0x91)]=_0x480de2(0x120),_0x2250b0[_0x480de2(0xb2)]=_0x480de2(0x9a),_0x2250b0[_0x480de2(0xed)]='presenting',_0x2250b0))(c||{});const Ce=_0x480de2(0xca),De=0xc8;let N=class extends _0x22ff37{constructor(_0x3b1a1f,_0x17a899,_0x2677f2,_0x3f583b,_0x14b480){const _0x28d07f=_0x480de2;super(),u(this,'_status$',new _0x2d7f44('idle')),u(this,_0x28d07f(0xcd),this['_status$'][_0x28d07f(0xc3)]()),u(this,_0x28d07f(0x83),!0x1),u(this,_0x28d07f(0x11f),null),u(this,_0x28d07f(0xac),null),(this['_unitID']=_0x3b1a1f,this['_collabSession']=_0x17a899,this['_configService']=_0x2677f2,this[_0x28d07f(0xe6)]=_0x3f583b,this[_0x28d07f(0xd1)]=_0x14b480);}get['_status'](){const _0x1ac7d3=_0x480de2;return this[_0x1ac7d3(0xe5)][_0x1ac7d3(0xc0)]();}['dispose'](){const _0x5e09fc=_0x480de2;var _0x27a031;(_0x27a031=this['_commandDisposable'])==null||_0x27a031['dispose'](),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa5)](_0x5e09fc(0xff)),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa8)]();}['getStatus'](){const _0x5cdc36=_0x480de2;return this[_0x5cdc36(0xdb)];}[_0x480de2(0x85)](){const _0x4ed8f1=_0x480de2;this[_0x4ed8f1(0x83)]||(this[_0x4ed8f1(0x83)]=!0x0,this['_collabSession'][_0x4ed8f1(0x100)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x55d50c=>{const _0x385180=_0x4ed8f1;switch(_0x55d50c){case _0x1d465d['OFFLINE']:this['_handleOffline']();break;case _0x1d465d['ONLINE']:this[_0x385180(0xd8)]();break;}}),this[_0x4ed8f1(0xcc)][_0x4ed8f1(0x101)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x1de0f2=>{const _0x217b39=_0x4ed8f1,{eventID:_0x1bf5a4}=_0x1de0f2;switch(_0x1bf5a4){case _0x5cbca8[_0x217b39(0xd6)]:this[_0x217b39(0xb4)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xe4)]:this[_0x217b39(0x10b)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xf3)]:this[_0x217b39(0xb7)]();break;case _0x5cbca8[_0x217b39(0xf1)]:this['_handleNewChangeSets'](_0x1de0f2);break;}}));}[_0x480de2(0x99)](){const _0x1361b4=_0x480de2;this[_0x1361b4(0xcc)]['send']({'eventID':_0x5cbca8[_0x1361b4(0x115)],'data':{'unitID':this[_0x1361b4(0xe0)],'userID':this[_0x1361b4(0xcc)][_0x1361b4(0xb9)]()}},this['_unitID']);}[_0x480de2(0xb0)](){const _0x372e5c=_0x480de2;this[_0x372e5c(0xdb)]==='presenting'&&(this[_0x372e5c(0xe5)][_0x372e5c(0xa5)]('idle'),this[_0x372e5c(0xcc)][_0x372e5c(0x95)]({'eventID':_0x5cbca8[_0x372e5c(0xf3)],'data':{'unitID':this[_0x372e5c(0xe0)]}},this[_0x372e5c(0xe0)]));}[_0x480de2(0x82)](){const _0xc43a56=_0x480de2;this[_0xc43a56(0xdb)]===_0xc43a56(0x9a)&&(this[_0xc43a56(0xe5)]['next'](_0xc43a56(0x120)),this[_0xc43a56(0xee)]());}[_0x480de2(0x109)](){const _0x244dc1=_0x480de2;this['_status']===_0x244dc1(0x120)&&this[_0x244dc1(0x11e)]();}[_0x480de2(0xb4)](_0x5a0ec2){const _0x140271=_0x480de2,{presenter:_0x3208f0}=_0x5a0ec2['data'],_0x5bc018=this[_0x140271(0xcc)][_0x140271(0xb9)]();this[_0x140271(0xac)]=_0x3208f0,_0x3208f0===_0x5bc018?(this[_0x140271(0x11e)](),this[_0x140271(0xf6)]()):this[_0x140271(0xdb)]!==_0x140271(0x9a)&&(this[_0x140271(0xdd)](),this[_0x140271(0xee)]());}[_0x480de2(0xd0)](){const _0x5f54f6=_0x480de2,_0x4995df={'eventID':_0x5cbca8['LIVESHARE_FETCH_OPERATIONS']};this[_0x5f54f6(0xcc)][_0x5f54f6(0x95)](_0x4995df,this[_0x5f54f6(0xe0)]);}[_0x480de2(0xb7)](){const _0x49b11b=_0x480de2;this[_0x49b11b(0xac)]=null,this[_0x49b11b(0xdb)]!==_0x49b11b(0x89)&&this[_0x49b11b(0x96)]();}['_handleNewChangeSets'](_0x1b7096){const _0x153f42=_0x480de2;if(this[_0x153f42(0xdb)]===_0x153f42(0x120)&&this[_0x153f42(0xac)]===_0x1b7096['data']['memberID']){const _0x34503f=_0x432e75(_0x1b7096[_0x153f42(0x9f)])['mutations'][_0x153f42(0xaf)]()['find'](_0x7afcd8=>_0x7afcd8['id']===_0x29dcc9['id']);if(_0x34503f){const _0x4ba76b=_0x34503f[_0x153f42(0x98)][_0x153f42(0xb5)],_0x15dba1=_0x34503f[_0x153f42(0x98)][_0x153f42(0x9e)]['id'];setTimeout(()=>{const _0x2ecaf5=_0x153f42;this['_commandService'][_0x2ecaf5(0x7f)](_0x42d600['id'],{'unitId':_0x4ba76b,'subUnitId':_0x15dba1},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x177141=_0x480de2;this['_status$']['next'](_0x177141(0x89));const _0x39f6be=new Map(),_0x3ff90b=this['_commandDisposable']=new _0xb8bf1f();_0x3ff90b[_0x177141(0xb1)](_0x5b0e28(()=>{_0x39f6be['forEach'](_0x293cd6=>_0x293cd6['complete']()),_0x39f6be['clear']();})),_0x3ff90b[_0x177141(0xb1)](this[_0x177141(0xd1)][_0x177141(0xa3)](_0x381eea=>{const _0x4a017b=_0x177141;var _0x4c0798;if(_0x381eea[_0x4a017b(0x113)]!==_0x2baff1[_0x4a017b(0x8d)]||!this['_liveShareService'][_0x4a017b(0xe8)](_0x381eea['id']))return;const {id:_0x520a4d}=_0x381eea;let _0x4f3b76;_0x39f6be['has'](_0x520a4d)?_0x4f3b76=_0x39f6be[_0x4a017b(0xa4)](_0x520a4d):(_0x4f3b76=new _0x35191d(),_0x39f6be[_0x4a017b(0xc1)](_0x520a4d,_0x4f3b76),_0x4f3b76[_0x4a017b(0xd2)](_0x55381b((_0x4c0798=this['_configService'][_0x4a017b(0x9c)](Ce))!=null?_0x4c0798:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a017b(0x114)](_0x26fda9=>{const _0x3bd224=_0x4a017b;this[_0x3bd224(0xcc)]['send']({'eventID':_0x5cbca8[_0x3bd224(0xe4)],'data':{'unitID':this[_0x3bd224(0xe0)],'operations':{[_0x26fda9['id']]:{'id':_0x26fda9['id'],'params':JSON[_0x3bd224(0x116)](_0x26fda9[_0x3bd224(0x98)])}}}},this[_0x3bd224(0xe0)]);})),_0x4f3b76['next'](_0x381eea);})),this[_0x177141(0xe6)][_0x177141(0xd3)](this[_0x177141(0xe0)])[_0x177141(0x11d)](_0x21f65b=>this[_0x177141(0xcc)][_0x177141(0x95)]({'eventID':_0x5cbca8[_0x177141(0xe4)],'data':{'unitID':this[_0x177141(0xe0)],'operations':{[_0x21f65b['id']]:{'id':_0x21f65b['id'],'params':JSON[_0x177141(0x116)](_0x21f65b['params'])}}}},this[_0x177141(0xe0)]));}[_0x480de2(0xdd)](){const _0x4cf352=_0x480de2;var _0xbf5732;this[_0x4cf352(0xe5)][_0x4cf352(0xa5)](_0x4cf352(0xff)),(_0xbf5732=this[_0x4cf352(0x11f)])==null||_0xbf5732[_0x4cf352(0xfd)](),this['_commandDisposable']=null;}[_0x480de2(0xee)](){const _0x21eac1=_0x480de2;var _0x50bcac;(_0x50bcac=this['_commandDisposable'])==null||_0x50bcac[_0x21eac1(0xfd)](),this[_0x21eac1(0xe5)][_0x21eac1(0xa5)](_0x21eac1(0x120));}['_beIdle'](){const _0x2a0fd7=_0x480de2;var _0x24cd7a;this[_0x2a0fd7(0xe5)][_0x2a0fd7(0xa5)]('idle'),(_0x24cd7a=this[_0x2a0fd7(0x11f)])==null||_0x24cd7a[_0x2a0fd7(0xfd)](),this[_0x2a0fd7(0x11f)]=null;}[_0x480de2(0x11e)](){const _0x98543e=_0x480de2;var _0x4bf86b;this[_0x98543e(0xe5)][_0x98543e(0xa5)](_0x98543e(0x9a)),(_0x4bf86b=this[_0x98543e(0x11f)])==null||_0x4bf86b[_0x98543e(0xfd)]();}[_0x480de2(0x10b)](_0x58c3f4){const _0x3a4f0c=_0x480de2;if(['presenting',_0x3a4f0c(0x9a),_0x3a4f0c(0xa9)][_0x3a4f0c(0x11a)](this[_0x3a4f0c(0xdb)])||!_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]||_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]===this[_0x3a4f0c(0xcc)][_0x3a4f0c(0xb9)]())return;this[_0x3a4f0c(0xdb)]===_0x3a4f0c(0xff)&&this[_0x3a4f0c(0xee)]();const _0x2d886e=_0x58c3f4[_0x3a4f0c(0x9f)]['operations'];Object['values'](_0x2d886e)[_0x3a4f0c(0x11d)](_0x16922f=>{const _0x23ed7c=_0x3a4f0c;this['_commandService']['executeCommand'](_0x16922f['id'],_0x16922f[_0x23ed7c(0x98)]?JSON['parse'](_0x16922f[_0x23ed7c(0x98)]):null,{'fromCollab':!0x0});});}[_0x480de2(0x118)](){const _0x2a63a5=_0x480de2;var _0x5e25ed;this[_0x2a63a5(0xe5)][_0x2a63a5(0xa5)](_0x2a63a5(0xa9)),(_0x5e25ed=this[_0x2a63a5(0x11f)])==null||_0x5e25ed[_0x2a63a5(0xfd)]();}[_0x480de2(0xd8)](){const _0xc83cf5=_0x480de2;this[_0xc83cf5(0xe5)][_0xc83cf5(0xa5)](_0xc83cf5(0xff)),this[_0xc83cf5(0xd0)]();}};N=Y([_(0x2,_0xea2396),_(0x3,_0x31d8e9(L)),_(0x4,_0x358f4b)],N);function Le(){const _0xca5cec=_0x480de2,_0x15a293=_0x5b95cb(S),_0x4c337b=_0x5b95cb(_0x59e319),_0x3ab8b0=_0x477adc(()=>_0x4c337b[_0xca5cec(0xc8)](_0x1e0e7d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x43c7fc,_0x493cc2]=_0x3126fc(null),[_0x52d3b0,_0x34bd49]=_0x3126fc(c[_0xca5cec(0x105)]),_0x3e6863=_0x2d1821(null);return _0x42fb54(()=>(_0x3ab8b0&&_0x15a293[_0xca5cec(0xf4)](_0x3ab8b0[_0xca5cec(0x7e)]())['then'](_0x142b4d=>{const _0x55dda4=_0xca5cec;_0x493cc2(_0x142b4d),_0x3e6863[_0x55dda4(0x107)]=_0x142b4d[_0x55dda4(0xcd)][_0x55dda4(0x114)](_0x1375d4=>{_0x34bd49(_0x1375d4);});}),()=>{const _0x436328=_0xca5cec;var _0x4ea08b;(_0x4ea08b=_0x3e6863[_0x436328(0x107)])==null||_0x4ea08b['unsubscribe'](),_0x3e6863[_0x436328(0x107)]=null;}),[_0x3ab8b0,_0x15a293]),_0x43c7fc?_0x4f48f3(_0x43303b,{'align':_0xca5cec(0xd5),'disabled':_0x52d3b0===c[_0xca5cec(0xf7)],'className':_0xca5cec(0xc7),'overlay':_0x4f48f3(Re,{'status':_0x52d3b0,'coordinator':_0x43c7fc}),'children':_0x4f48f3('button',{'className':_0x219d87(_0xca5cec(0xad),{'univer-cursor-not-allowed':_0x52d3b0===c[_0xca5cec(0xf7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52d3b0!==c[_0xca5cec(0xf7)]}),'type':'button','children':_0x4f48f3(W,{'className':_0xca5cec(0xce)})})}):null;}function Re(_0x2ef174){const _0x277700=_0x480de2,{status:_0x2430bb,coordinator:_0x338fed}=_0x2ef174;switch(_0x2430bb){case c[_0x277700(0x105)]:return _0x4f48f3($e,{'coordinator':_0x338fed});case c[_0x277700(0x91)]:return _0x4f48f3(xe,{'coordinator':_0x338fed});case c[_0x277700(0xb2)]:return _0x4f48f3(Pe,{'coordinator':_0x338fed});case c[_0x277700(0xf7)]:return _0x4f48f3(Te,{});case c['PRESENTING']:return _0x4f48f3(Ae,{'coordinator':_0x338fed});default:return null;}}function $e(_0xfad782){const _0x5995a0=_0x480de2,{coordinator:_0x5ee935}=_0xfad782;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5995a0(0xe7)}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x5ee935['tryStartPresenting'](),'children':_0x5995a0(0x97)})]});}function xe(_0x4a7620){const _0x13e27f=_0x480de2,{coordinator:_0x541788}=_0x4a7620;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x13e27f(0xe2),{'className':_0x13e27f(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x541788['stopFollowing'](),'children':_0x13e27f(0xdc)})]});}function Pe(_0x185a58){const _0x400cfa=_0x480de2,{coordinator:_0xa38fab}=_0x185a58;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x400cfa(0xe2),{'className':_0x400cfa(0x8b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'variant':'text','onClick':()=>_0xa38fab[_0x400cfa(0x82)](),'children':_0x400cfa(0x90)})]});}function Ae(_0x14e769){const _0x49059d=_0x480de2,{coordinator:_0x393521}=_0x14e769;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x49059d(0xe2),{'className':_0x49059d(0x8b),'children':_0x49059d(0xde)}),_0x4f48f3(_0x5f10a4,{'variant':'default','onClick':()=>_0x393521[_0x49059d(0xb0)](),'children':_0x49059d(0xea)})]});}function Te(){const _0x35fc15=_0x480de2;return _0x4f48f3(_0x5480f9,{'children':_0x35fc15(0xf9)});}var Fe=Object[_0x480de2(0x103)],He=(_0xc389b6,_0x47ae8a,_0x4a2f48,_0x244129)=>{for(var _0x5e3960=_0x244129>0x1?void 0x0:_0x244129?Fe(_0x47ae8a,_0x4a2f48):_0x47ae8a,_0x54a047=_0xc389b6['length']-0x1,_0x19907b;_0x54a047>=0x0;_0x54a047--)(_0x19907b=_0xc389b6[_0x54a047])&&(_0x5e3960=_0x19907b(_0x5e3960)||_0x5e3960);return _0x5e3960;},A=(_0x12cc2f,_0x2cada1)=>(_0x41e21f,_0x613bb1)=>_0x2cada1(_0x41e21f,_0x613bb1,_0x12cc2f);let m=class extends _0x445766{constructor(_0x172e53,_0x4f79ea){const _0x1a884a=_0x480de2;super(),this[_0x1a884a(0x102)]=_0x172e53,this['_uiPartsService']=_0x4f79ea,this['_mountLiveShare']();}[_0x480de2(0xa6)](){const _0x5ae6c7=_0x480de2;this['disposeWithMe'](this[_0x5ae6c7(0x81)][_0x5ae6c7(0xd7)](_0x589e20[_0x5ae6c7(0x10a)],()=>_0x2bfcca(Le,this[_0x5ae6c7(0x102)])));}};m=He([A(0x0,_0x31d8e9(_0x4d1ef7)),A(0x1,_0x1618ae)],m);const ye=_0x480de2(0x8e),T={};var Ue=Object[_0x480de2(0x103)],Ve=(_0x249b57,_0x4669ab,_0x3ceaa9,_0xa47879)=>{const _0x14820b=_0x480de2;for(var _0x5a1957=_0xa47879>0x1?void 0x0:_0xa47879?Ue(_0x4669ab,_0x3ceaa9):_0x4669ab,_0xd5a94d=_0x249b57[_0x14820b(0xbf)]-0x1,_0x261a0a;_0xd5a94d>=0x0;_0xd5a94d--)(_0x261a0a=_0x249b57[_0xd5a94d])&&(_0x5a1957=_0x261a0a(_0x5a1957)||_0x5a1957);return _0x5a1957;},je=(_0x12cfd5,_0x4e7413)=>(_0x56a754,_0x9be823)=>_0x4e7413(_0x56a754,_0x9be823,_0x12cfd5);let I=class extends _0x445766{constructor(_0x3ba195){const _0x3b4077=_0x480de2;super(),this[_0x3b4077(0xe6)]=_0x3ba195,this[_0x3b4077(0x83)]();}[_0x480de2(0x83)](){const _0x146712=_0x480de2;[_0xee7cd['id'],_0x504137['id'],_0x42d600['id']][_0x146712(0x11d)](_0x4a77ef=>{const _0x505cfc=_0x146712;this[_0x505cfc(0xe1)](this[_0x505cfc(0xe6)][_0x505cfc(0xb6)](_0x4a77ef));});}};I=Ve([je(0x0,_0x31d8e9(L))],I);var Me=Object[_0x480de2(0x108)],ke=Object[_0x480de2(0x103)],Ge=(_0x3f3f64,_0x21c44a,_0x49d929)=>_0x21c44a in _0x3f3f64?Me(_0x3f3f64,_0x21c44a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d929}):_0x3f3f64[_0x21c44a]=_0x49d929,We=(_0x77c05d,_0x551572,_0x1732b4,_0x2c59c5)=>{const _0x170ee9=_0x480de2;for(var _0x1a3120=_0x2c59c5>0x1?void 0x0:_0x2c59c5?ke(_0x551572,_0x1732b4):_0x551572,_0xd600ef=_0x77c05d[_0x170ee9(0xbf)]-0x1,_0x500c05;_0xd600ef>=0x0;_0xd600ef--)(_0x500c05=_0x77c05d[_0xd600ef])&&(_0x1a3120=_0x500c05(_0x1a3120)||_0x1a3120);return _0x1a3120;},F=(_0x2901fb,_0x49a302)=>(_0x3613d9,_0x164f78)=>_0x49a302(_0x3613d9,_0x164f78,_0x2901fb),B=(_0x3a68c3,_0x176827,_0xb3ba0f)=>Ge(_0x3a68c3,typeof _0x176827!=_0x480de2(0x106)?_0x176827+'':_0x176827,_0xb3ba0f);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x218f1f{constructor(_0x1d5e66=T,_0x5d5c39,_0xc484d4){const _0x2d2aa6=_0x480de2;super(),this[_0x2d2aa6(0x93)]=_0x1d5e66,this[_0x2d2aa6(0x102)]=_0x5d5c39,this[_0x2d2aa6(0xfa)]=_0xc484d4;const {..._0x40ad25}=_0x477aae({},T,this[_0x2d2aa6(0x93)]);this[_0x2d2aa6(0xfa)][_0x2d2aa6(0x10c)](ye,_0x40ad25);}[_0x480de2(0x86)](){const _0x170149=_0x480de2;_0xaed711(this[_0x170149(0x102)],_0xb0235f([[L],[S],[I],[m]],this[_0x170149(0x93)][_0x170149(0xcb)])),_0xd465dc(this[_0x170149(0x102)],[[I]]);}[_0x480de2(0xc2)](){const _0x14c429=_0x480de2;_0xd465dc(this[_0x14c429(0x102)],[[m]]);}};B(b,'type',_0x1e0e7d[_0x480de2(0xa1)]),B(b,_0x480de2(0xa2),Ye),b=We([_0x2532bd(_0x1e0ea8),F(0x1,_0x31d8e9(_0x4d1ef7)),F(0x2,_0xea2396)],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 _0x4648f1=_0x325e;function _0x3468(){const _0x5d59c1=['getStatus','15921TwnmZe','executeCommand','extend','1942548LrGSwn','92244lUIfED','6930ffQmpO','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','get','_injector','getLiveShareCoordinatorSync','_initialize','tryStartPresenting','stopPresenting','getSheetId','getId','56zIqtGB','4184068wamPvx','getUnitId','37wUMELC','startRow','getRenderById','60hbomvd','startColumn','getActiveWorkbook','43943086AuZxJZ','getLiveShareStatus','stopFollowing','IDLE','_commandService','1512096zwowwR','LiveShareStatusEnum','634870xcinpU'];_0x3468=function(){return _0x5d59c1;};return _0x3468();}(function(_0x309c34,_0x20e27a){const _0x321ed6=_0x325e,_0x3269ea=_0x309c34();while(!![]){try{const _0x308032=-parseInt(_0x321ed6(0x17d))/0x1*(-parseInt(_0x321ed6(0x190))/0x2)+parseInt(_0x321ed6(0x18f))/0x3+parseInt(_0x321ed6(0x17b))/0x4+-parseInt(_0x321ed6(0x18a))/0x5*(parseInt(_0x321ed6(0x180))/0x6)+parseInt(_0x321ed6(0x17a))/0x7*(parseInt(_0x321ed6(0x188))/0x8)+parseInt(_0x321ed6(0x18c))/0x9*(parseInt(_0x321ed6(0x16e))/0xa)+-parseInt(_0x321ed6(0x183))/0xb;if(_0x308032===_0x20e27a)break;else _0x3269ea['push'](_0x3269ea['shift']());}catch(_0x303288){_0x3269ea['push'](_0x3269ea['shift']());}}}(_0x3468,0xd5416));import{LiveShareController as _0x351dda,LiveShareStatus as _0x65b6a5}from'@univerjs-pro/live-share';function _0x325e(_0x486581,_0x3beec4){const _0x34681c=_0x3468();return _0x325e=function(_0x325e8b,_0x20cc05){_0x325e8b=_0x325e8b-0x16e;let _0x412165=_0x34681c[_0x325e8b];return _0x412165;},_0x325e(_0x486581,_0x3beec4);}import{IRenderManagerService as _0x56edfb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x128df4}from'@univerjs/sheets';import{SetScrollOperation as _0x4c9be2}from'@univerjs/sheets-ui';import{FRange as _0x5a02c4}from'@univerjs/sheets/facade';import{FUniver as _0x2ca598,FEnum as _0xacc36f}from'@univerjs/core/facade';class I extends _0x5a02c4{[_0x4648f1(0x175)](_0x140018,_0x2c4b30,_0x25b7cf,_0x2cb8a4,_0x5b5921){const _0x1ff392=_0x4648f1,_0xec7c3a=_0x140018['get'](_0x351dda),_0x183a38=_0x140018['get'](_0x56edfb),_0x2aeef1=_0x2c4b30[_0x1ff392(0x17c)](),_0x3ed51c=_0x2c4b30['getActiveSheet'](),_0x2f151b=_0xec7c3a[_0x1ff392(0x174)](_0x2aeef1);(_0x2f151b==null?void 0x0:_0x2f151b['getStatus']())!==_0x65b6a5['PRESENTING']||(_0x25b7cf[_0x1ff392(0x178)]()!==_0x3ed51c[_0x1ff392(0x178)]()&&this[_0x1ff392(0x187)][_0x1ff392(0x18d)](_0x128df4['id'],{'unitId':_0x2aeef1,'subUnitId':_0x25b7cf[_0x1ff392(0x178)]()}),!_0x183a38[_0x1ff392(0x17f)](_0x2aeef1))||_0x5b5921[_0x1ff392(0x171)](_0x4c9be2['id'],{'unitId':_0x2c4b30[_0x1ff392(0x17c)](),'sheetId':_0x25b7cf['getSheetId'](),'sheetViewStartRow':_0x2cb8a4[_0x1ff392(0x17e)],'sheetViewStartColumn':_0x2cb8a4[_0x1ff392(0x181)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5a02c4['extend'](I);class m extends _0x2ca598{[_0x4648f1(0x184)](){const _0x2b552c=_0x4648f1;var _0x5187b5,_0xa4b566;const _0x49b250=this[_0x2b552c(0x173)][_0x2b552c(0x172)](_0x351dda),_0x2ce986=(_0x5187b5=this[_0x2b552c(0x182)]())==null?void 0x0:_0x5187b5[_0x2b552c(0x179)]();if(!_0x2ce986)throw new Error(_0x2b552c(0x16f));const _0x4132b1=_0x49b250[_0x2b552c(0x174)](_0x2ce986);return(_0xa4b566=_0x4132b1==null?void 0x0:_0x4132b1[_0x2b552c(0x18b)]())!=null?_0xa4b566:_0x65b6a5[_0x2b552c(0x186)];}['startFollowing'](){const _0x559ab7=_0x4648f1;var _0x54f8cf;const _0x6bc560=this[_0x559ab7(0x173)][_0x559ab7(0x172)](_0x351dda),_0x4c8c91=(_0x54f8cf=this[_0x559ab7(0x182)]())==null?void 0x0:_0x54f8cf[_0x559ab7(0x179)]();if(!_0x4c8c91)throw new Error(_0x559ab7(0x16f));const _0x529394=_0x6bc560[_0x559ab7(0x174)](_0x4c8c91);if(!_0x529394)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x529394['startFollowing']();}[_0x4648f1(0x185)](){const _0x178efe=_0x4648f1;var _0x555bdc;const _0x5dd584=this['_injector']['get'](_0x351dda),_0x1b5981=(_0x555bdc=this[_0x178efe(0x182)]())==null?void 0x0:_0x555bdc[_0x178efe(0x179)]();if(!_0x1b5981)throw new Error('No\x20active\x20workbook\x20found.');const _0x1672b7=_0x5dd584[_0x178efe(0x174)](_0x1b5981);if(!_0x1672b7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1672b7[_0x178efe(0x185)]();}['startPresenting'](){const _0x5c4feb=_0x4648f1;var _0x1fd458;const _0x1585b0=this['_injector'][_0x5c4feb(0x172)](_0x351dda),_0x1af546=(_0x1fd458=this[_0x5c4feb(0x182)]())==null?void 0x0:_0x1fd458[_0x5c4feb(0x179)]();if(!_0x1af546)throw new Error(_0x5c4feb(0x16f));const _0x7cf0e9=_0x1585b0[_0x5c4feb(0x174)](_0x1af546);if(!_0x7cf0e9)throw new Error(_0x5c4feb(0x170));_0x7cf0e9[_0x5c4feb(0x176)]();}[_0x4648f1(0x177)](){const _0x2e59f5=_0x4648f1;var _0x30d458;const _0x451aae=this[_0x2e59f5(0x173)][_0x2e59f5(0x172)](_0x351dda),_0xfb6b00=(_0x30d458=this[_0x2e59f5(0x182)]())==null?void 0x0:_0x30d458[_0x2e59f5(0x179)]();if(!_0xfb6b00)throw new Error(_0x2e59f5(0x16f));const _0x3d456a=_0x451aae['getLiveShareCoordinatorSync'](_0xfb6b00);if(!_0x3d456a)throw new Error(_0x2e59f5(0x170));_0x3d456a[_0x2e59f5(0x177)]();}}_0x2ca598[_0x4648f1(0x18e)](m);class C extends _0xacc36f{get[_0x4648f1(0x189)](){return _0x65b6a5;}}_0xacc36f[_0x4648f1(0x18e)](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 _0x480de2=_0x3214;(function(_0x5b4f45,_0x275d27){const _0x10c06c=_0x3214,_0x4efa24=_0x5b4f45();while(!![]){try{const _0x31c00a=-parseInt(_0x10c06c(0xbb))/0x1*(-parseInt(_0x10c06c(0x10f))/0x2)+-parseInt(_0x10c06c(0xda))/0x3+-parseInt(_0x10c06c(0xbd))/0x4+-parseInt(_0x10c06c(0x117))/0x5*(-parseInt(_0x10c06c(0xfc))/0x6)+parseInt(_0x10c06c(0x8c))/0x7*(-parseInt(_0x10c06c(0x84))/0x8)+-parseInt(_0x10c06c(0x121))/0x9+parseInt(_0x10c06c(0x92))/0xa*(parseInt(_0x10c06c(0xae))/0xb);if(_0x31c00a===_0x275d27)break;else _0x4efa24['push'](_0x4efa24['shift']());}catch(_0x37728f){_0x4efa24['push'](_0x4efa24['shift']());}}}(_0x4f88,0x81f47));var J=Object['defineProperty'],K=(_0x461ca2,_0x4fd856,_0x413d35)=>_0x4fd856 in _0x461ca2?J(_0x461ca2,_0x4fd856,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413d35}):_0x461ca2[_0x4fd856]=_0x413d35,u=(_0x5b1943,_0x3e3b9e,_0x253d78)=>K(_0x5b1943,typeof _0x3e3b9e!=_0x480de2(0x106)?_0x3e3b9e+'':_0x3e3b9e,_0x253d78);import{Disposable as _0x445766,toDisposable as _0x5b0e28,IUniverInstanceService as _0x59e319,Inject as _0x31d8e9,Injector as _0x4d1ef7,IConfigService as _0xea2396,ICommandService as _0x358f4b,RxDisposable as _0x22ff37,UniverInstanceType as _0x1e0e7d,DisposableCollection as _0xb8bf1f,CommandType as _0x2baff1,DependentOn as _0x2532bd,Plugin as _0x218f1f,merge as _0x477aae,registerDependencies as _0xaed711,mergeOverrideWithDependencies as _0xb0235f,touchDependencies as _0xd465dc}from'@univerjs/core';import{useDependency as _0x5b95cb,useObservable as _0x477adc,IUIPartsService as _0x1618ae,BuiltInUIPart as _0x589e20,connectInjector as _0x2bfcca}from'@univerjs/ui';import{jsx as _0x4f48f3,jsxs as _0x4070ad,Fragment as _0x5480f9}from'react/jsx-runtime';import{Dropdown as _0x43303b,clsx as _0x219d87,Button as _0x5f10a4}from'@univerjs/design';import{useRef as _0x2d1821,createElement as _0x4e41ac,forwardRef as _0x46ea63,useState as _0x3126fc,useEffect as _0x42fb54}from'react';import{CollaborationEvent as _0x5cbca8,parseProtocolChangeset as _0x432e75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x23bc86,SessionStatus as _0x1d465d,UniverCollaborationClientPlugin as _0x1e0ea8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29dcc9,SetWorksheetActiveOperation as _0x42d600}from'@univerjs/sheets';import{BehaviorSubject as _0x2d7f44,Subject as _0x35191d}from'rxjs';import{takeUntil as _0x227b42,throttleTime as _0x55381b}from'rxjs/operators';import{SetZoomRatioOperation as _0xee7cd,SetScrollOperation as _0x504137}from'@univerjs/sheets-ui';function k({ref:_0x1f377f,..._0x2b47fb}){const _0x59af70=_0x480de2,{icon:_0x39cd92,id:_0xa0f525,className:_0x4aa8ae,extend:_0x336fd9,..._0x504ac5}=_0x2b47fb,_0xbc87d8=(_0x59af70(0xa0)+_0xa0f525+'\x20'+(_0x4aa8ae||''))[_0x59af70(0xc9)](),_0x3ecab3=_0x2d1821('_'+Oe());return G(_0x39cd92,''+_0xa0f525,{'defIds':_0x39cd92['defIds'],'idSuffix':_0x3ecab3[_0x59af70(0x107)]},{'ref':_0x1f377f,'className':_0xbc87d8,..._0x504ac5},_0x336fd9);}function G(_0x8e1b9e,_0x4d9c84,_0x12c0b1,_0x4d9bee,_0x2a75a1){const _0x33094c=_0x480de2;return _0x4e41ac(_0x8e1b9e['tag'],{'key':_0x4d9c84,...be(_0x8e1b9e,_0x12c0b1,_0x2a75a1),..._0x4d9bee},(Ee(_0x8e1b9e,_0x12c0b1)[_0x33094c(0xb8)]||[])[_0x33094c(0x119)]((_0x451e06,_0x4c8de1)=>G(_0x451e06,_0x4d9c84+'-'+_0x8e1b9e[_0x33094c(0xf2)]+'-'+_0x4c8de1,_0x12c0b1,void 0x0,_0x2a75a1)));}function be(_0x16dc26,_0x2470f7,_0x4b0b64){const _0x37b053=_0x480de2,_0x3ba049={..._0x16dc26[_0x37b053(0xc5)]};_0x4b0b64!=null&&_0x4b0b64[_0x37b053(0xd9)]&&_0x3ba049[_0x37b053(0x112)]===_0x37b053(0xd9)&&(_0x3ba049['fill']=_0x4b0b64[_0x37b053(0xd9)]),_0x16dc26[_0x37b053(0xf2)]===_0x37b053(0xbe)&&_0x3ba049['id']&&(_0x3ba049['id']=_0x3ba049['id']+_0x2470f7['idSuffix']),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x5e987c,_0x16d5a5])=>{const _0x4f4e2b=_0x37b053;_0x5e987c==='mask'&&typeof _0x16d5a5==_0x4f4e2b(0x8f)&&(_0x3ba049[_0x5e987c]=_0x16d5a5[_0x4f4e2b(0xc4)](/url\(#(.*)\)/,_0x4f4e2b(0xaa)+_0x2470f7[_0x4f4e2b(0xef)]+')'));});const {defIds:_0x288fc2}=_0x2470f7;return!_0x288fc2||_0x288fc2[_0x37b053(0xbf)]===0x0||(_0x16dc26['tag']==='use'&&_0x3ba049[_0x37b053(0xab)]&&(_0x3ba049['xlink:href']=_0x3ba049['xlink:href']+_0x2470f7[_0x37b053(0xef)]),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x52a9f0,_0x2196f9])=>{const _0x2e47d9=_0x37b053;typeof _0x2196f9==_0x2e47d9(0x8f)&&(_0x3ba049[_0x52a9f0]=_0x2196f9[_0x2e47d9(0xc4)](/url\(#(.*)\)/,_0x2e47d9(0xaa)+_0x2470f7['idSuffix']+')'));})),_0x3ba049;}function _0x4f88(){const _0x44b2af=['univer-size-4','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','_fetchOperations','_commandService','pipe','getInitialStates','currentColor','end','LIVESHARE_NEW_HOST','registerComponent','_handleOnline','colorChannel1','2916078oYCONN','_status','Stop\x20following','_stopPresenting','You\x27re\x20presenting\x20the\x20document','path','_unitID','disposeWithMe','div','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','LIVESHARE_OPERATION','_status$','_liveShareService','Present\x20this\x20document','shouldShareOperation','has','Stop\x20presenting','UNIVER_SHEET','dispose$','PRESENTING','_startFollowing','idSuffix','UniverIcon','NEW_CHANGESETS','tag','LIVESHARE_TERMINATE','getLiveShareCoordinator','requireSession','_startPresenting','OFFLINE','LiveShareIcon','You\x27are\x20offline.','_configService','_univerInstanceService','28746NtXJEV','dispose','delete','idle','sessionStatus$','event$','_injector','getOwnPropertyDescriptor','none','IDLE','symbol','current','defineProperty','stopFollowing','HEADER_MENU','_handleOperation','setConfig','1em','_reporters','2638JazVTb','assign','defs','fill','type','subscribe','LIVESHARE_REQUEST_HOST','stringify','435lgdCCJ','_handleOffline','map','includes','entries','live-share-icon','forEach','_stopFollowing','_commandDisposable','following','8406279PXjokW','_startLiveShareCoordinator','getUnitId','executeCommand','toString','_uiPartsService','startFollowing','_init','37096NHKPto','init','onStarting','evenodd','_entities','presenting','_collabSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','287bLhYqU','OPERATION','live-share.config','string','Start\x20following','FOLLOWING','6230bZgPbI','_config','svg','send','_beIdle','Start','params','tryStartPresenting','not-following','getTypeOfUnitDisposed$','getConfig','getTypeOfUnitAdded$','sheet','data','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','pluginName','onCommandExecuted','get','next','_mountLiveShare','getLiveShareCoordinatorSync','complete','offline','url(#$1','xlink:href','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','40304BMcGXR','reverse','stopPresenting','add','NOT_FOLLOWING','displayName','_handleNewHost','unitId','registerSharedOperation','_handleTerminate','children','getMemberID','from','31pQmyzD','_sharedOperations','447636cnNcDg','mask','length','getValue','set','onRendered','asObservable','replace','attrs','presenter','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','getCurrentTypeOfUnit$','trim','SAME_OPERATION_SHARE_INTERVAL','override','_collabSession','status$'];_0x4f88=function(){return _0x44b2af;};return _0x4f88();}function Ee(_0x3b253d,_0x1a020c){const _0xb4951d=_0x480de2;var _0x253c02;const {defIds:_0x210575}=_0x1a020c;return!_0x210575||_0x210575['length']===0x0?_0x3b253d:_0x3b253d['tag']===_0xb4951d(0x111)&&((_0x253c02=_0x3b253d[_0xb4951d(0xb8)])!=null&&_0x253c02['length'])?{..._0x3b253d,'children':_0x3b253d[_0xb4951d(0xb8)][_0xb4951d(0x119)](_0xbea93e=>typeof _0xbea93e[_0xb4951d(0xc5)]['id']==_0xb4951d(0x8f)&&_0x210575&&_0x210575[_0xb4951d(0x11a)](_0xbea93e['attrs']['id'])?{..._0xbea93e,'attrs':{..._0xbea93e[_0xb4951d(0xc5)],'id':_0xbea93e[_0xb4951d(0xc5)]['id']+_0x1a020c[_0xb4951d(0xef)]}}:_0xbea93e)}:_0x3b253d;}function Oe(){const _0x18f0fe=_0x480de2;return Math['random']()[_0x18f0fe(0x80)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x480de2(0xf0);const we={'tag':_0x480de2(0x94),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x480de2(0x104),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x480de2(0x10d)},'children':[{'tag':_0x480de2(0xdf),'attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xcf)}},{'tag':'path','attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xe3),'fillRule':'evenodd','clipRule':_0x480de2(0x87)}}]},W=_0x46ea63(function(_0x3df12e,_0x413554){const _0x4cba78=_0x480de2;return _0x4e41ac(k,Object[_0x4cba78(0x110)]({},_0x3df12e,{'id':_0x4cba78(0x11c),'ref':_0x413554,'icon':we}));});W[_0x480de2(0xb3)]=_0x480de2(0xf8);class L extends _0x445766{constructor(){const _0x2f1256=_0x480de2;super(...arguments),u(this,_0x2f1256(0xbc),new Set()),u(this,_0x2f1256(0x10e),new Set());}['registerSharedOperation'](_0x9e9e4d){const _0x10aa7c=_0x480de2;return this['_sharedOperations'][_0x10aa7c(0xb1)](_0x9e9e4d),_0x5b0e28(()=>this[_0x10aa7c(0xbc)]['delete'](_0x9e9e4d));}['registerInitialStateReporter'](_0x260e19){const _0x2aecc4=_0x480de2;return this['_reporters'][_0x2aecc4(0xb1)](_0x260e19),_0x5b0e28(()=>this[_0x2aecc4(0x10e)][_0x2aecc4(0xfe)](_0x260e19));}['shouldShareOperation'](_0x2c5c2a){const _0x442917=_0x480de2;return this['_sharedOperations'][_0x442917(0xe9)](_0x2c5c2a);}['getInitialStates'](_0x1c0749){const _0x233238=_0x480de2;return Array[_0x233238(0xba)](this['_reporters'])[_0x233238(0x119)](_0x352188=>_0x352188(_0x1c0749));}}var Ne=Object[_0x480de2(0x103)],Y=(_0x478bc7,_0x580242,_0x5199e8,_0x1b7626)=>{const _0x58404b=_0x480de2;for(var _0x2b03cb=_0x1b7626>0x1?void 0x0:_0x1b7626?Ne(_0x580242,_0x5199e8):_0x580242,_0x49e4fc=_0x478bc7[_0x58404b(0xbf)]-0x1,_0x2a0e1e;_0x49e4fc>=0x0;_0x49e4fc--)(_0x2a0e1e=_0x478bc7[_0x49e4fc])&&(_0x2b03cb=_0x2a0e1e(_0x2b03cb)||_0x2b03cb);return _0x2b03cb;},_=(_0x1ee860,_0x48db45)=>(_0xa68f8c,_0x30646c)=>_0x48db45(_0xa68f8c,_0x30646c,_0x1ee860);let S=class extends _0x22ff37{constructor(_0x53007f,_0x36da91,_0x3de8a0){const _0x3824a1=_0x480de2;super(),u(this,_0x3824a1(0x88),new Map()),(this['_univerInstanceService']=_0x53007f,this['_injector']=_0x36da91,this[_0x3824a1(0x8a)]=_0x3de8a0,this['_init']());}async[_0x480de2(0xf4)](_0xdeef36){const _0x42f639=_0x480de2;return this[_0x42f639(0x88)][_0x42f639(0xe9)](_0xdeef36)||await this[_0x42f639(0x7d)](_0xdeef36),this[_0x42f639(0x88)][_0x42f639(0xa4)](_0xdeef36);}[_0x480de2(0xa7)](_0x3f6404){const _0x23f827=_0x480de2;var _0x1f01d4;return(_0x1f01d4=this['_entities'][_0x23f827(0xa4)](_0x3f6404))!=null?_0x1f01d4:null;}[_0x480de2(0x83)](){const _0x404733=_0x480de2;this[_0x404733(0xfb)][_0x404733(0x9d)](_0x1e0e7d[_0x404733(0xeb)])[_0x404733(0xd2)](_0x227b42(this['dispose$']))[_0x404733(0x114)](async _0x14f98f=>{const _0x25cae0=_0x404733,_0x5a31d4=_0x14f98f[_0x25cae0(0x7e)]();this['_entities'][_0x25cae0(0xe9)](_0x5a31d4)||this[_0x25cae0(0x7d)](_0x5a31d4);}),this['_univerInstanceService'][_0x404733(0x9b)](_0x1e0e7d[_0x404733(0xeb)])['pipe'](_0x227b42(this[_0x404733(0xec)]))[_0x404733(0x114)](_0x4d2dba=>{const _0x423f18=_0x404733,_0x66f1aa=_0x4d2dba[_0x423f18(0x7e)](),_0x1cc2c8=this[_0x423f18(0x88)]['get'](_0x66f1aa);_0x1cc2c8==null||_0x1cc2c8[_0x423f18(0xfd)]();});}async[_0x480de2(0x7d)](_0x23d24e){const _0x492e3a=_0x480de2,_0x56c05a=await this['_collabSessionService'][_0x492e3a(0xf5)](_0x23d24e),_0x1a44db=this[_0x492e3a(0x102)]['createInstance'](N,_0x23d24e,_0x56c05a);return _0x1a44db[_0x492e3a(0x85)](),this['_entities'][_0x492e3a(0xc1)](_0x23d24e,_0x1a44db),_0x1a44db;}};S=Y([_(0x0,_0x59e319),_(0x1,_0x31d8e9(_0x4d1ef7)),_(0x2,_0x31d8e9(_0x23bc86))],S);function _0x3214(_0x429c19,_0x580096){const _0x4f88eb=_0x4f88();return _0x3214=function(_0x32142e,_0x5e2814){_0x32142e=_0x32142e-0x7d;let _0x29b6e5=_0x4f88eb[_0x32142e];return _0x29b6e5;},_0x3214(_0x429c19,_0x580096);}var c=(_0x2250b0=>(_0x2250b0[_0x480de2(0xf7)]=_0x480de2(0xa9),_0x2250b0[_0x480de2(0x105)]=_0x480de2(0xff),_0x2250b0[_0x480de2(0x91)]=_0x480de2(0x120),_0x2250b0[_0x480de2(0xb2)]=_0x480de2(0x9a),_0x2250b0[_0x480de2(0xed)]='presenting',_0x2250b0))(c||{});const Ce=_0x480de2(0xca),De=0xc8;let N=class extends _0x22ff37{constructor(_0x3b1a1f,_0x17a899,_0x2677f2,_0x3f583b,_0x14b480){const _0x28d07f=_0x480de2;super(),u(this,'_status$',new _0x2d7f44('idle')),u(this,_0x28d07f(0xcd),this['_status$'][_0x28d07f(0xc3)]()),u(this,_0x28d07f(0x83),!0x1),u(this,_0x28d07f(0x11f),null),u(this,_0x28d07f(0xac),null),(this['_unitID']=_0x3b1a1f,this['_collabSession']=_0x17a899,this['_configService']=_0x2677f2,this[_0x28d07f(0xe6)]=_0x3f583b,this[_0x28d07f(0xd1)]=_0x14b480);}get['_status'](){const _0x1ac7d3=_0x480de2;return this[_0x1ac7d3(0xe5)][_0x1ac7d3(0xc0)]();}['dispose'](){const _0x5e09fc=_0x480de2;var _0x27a031;(_0x27a031=this['_commandDisposable'])==null||_0x27a031['dispose'](),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa5)](_0x5e09fc(0xff)),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa8)]();}['getStatus'](){const _0x5cdc36=_0x480de2;return this[_0x5cdc36(0xdb)];}[_0x480de2(0x85)](){const _0x4ed8f1=_0x480de2;this[_0x4ed8f1(0x83)]||(this[_0x4ed8f1(0x83)]=!0x0,this['_collabSession'][_0x4ed8f1(0x100)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x55d50c=>{const _0x385180=_0x4ed8f1;switch(_0x55d50c){case _0x1d465d['OFFLINE']:this['_handleOffline']();break;case _0x1d465d['ONLINE']:this[_0x385180(0xd8)]();break;}}),this[_0x4ed8f1(0xcc)][_0x4ed8f1(0x101)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x1de0f2=>{const _0x217b39=_0x4ed8f1,{eventID:_0x1bf5a4}=_0x1de0f2;switch(_0x1bf5a4){case _0x5cbca8[_0x217b39(0xd6)]:this[_0x217b39(0xb4)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xe4)]:this[_0x217b39(0x10b)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xf3)]:this[_0x217b39(0xb7)]();break;case _0x5cbca8[_0x217b39(0xf1)]:this['_handleNewChangeSets'](_0x1de0f2);break;}}));}[_0x480de2(0x99)](){const _0x1361b4=_0x480de2;this[_0x1361b4(0xcc)]['send']({'eventID':_0x5cbca8[_0x1361b4(0x115)],'data':{'unitID':this[_0x1361b4(0xe0)],'userID':this[_0x1361b4(0xcc)][_0x1361b4(0xb9)]()}},this['_unitID']);}[_0x480de2(0xb0)](){const _0x372e5c=_0x480de2;this[_0x372e5c(0xdb)]==='presenting'&&(this[_0x372e5c(0xe5)][_0x372e5c(0xa5)]('idle'),this[_0x372e5c(0xcc)][_0x372e5c(0x95)]({'eventID':_0x5cbca8[_0x372e5c(0xf3)],'data':{'unitID':this[_0x372e5c(0xe0)]}},this[_0x372e5c(0xe0)]));}[_0x480de2(0x82)](){const _0xc43a56=_0x480de2;this[_0xc43a56(0xdb)]===_0xc43a56(0x9a)&&(this[_0xc43a56(0xe5)]['next'](_0xc43a56(0x120)),this[_0xc43a56(0xee)]());}[_0x480de2(0x109)](){const _0x244dc1=_0x480de2;this['_status']===_0x244dc1(0x120)&&this[_0x244dc1(0x11e)]();}[_0x480de2(0xb4)](_0x5a0ec2){const _0x140271=_0x480de2,{presenter:_0x3208f0}=_0x5a0ec2['data'],_0x5bc018=this[_0x140271(0xcc)][_0x140271(0xb9)]();this[_0x140271(0xac)]=_0x3208f0,_0x3208f0===_0x5bc018?(this[_0x140271(0x11e)](),this[_0x140271(0xf6)]()):this[_0x140271(0xdb)]!==_0x140271(0x9a)&&(this[_0x140271(0xdd)](),this[_0x140271(0xee)]());}[_0x480de2(0xd0)](){const _0x5f54f6=_0x480de2,_0x4995df={'eventID':_0x5cbca8['LIVESHARE_FETCH_OPERATIONS']};this[_0x5f54f6(0xcc)][_0x5f54f6(0x95)](_0x4995df,this[_0x5f54f6(0xe0)]);}[_0x480de2(0xb7)](){const _0x49b11b=_0x480de2;this[_0x49b11b(0xac)]=null,this[_0x49b11b(0xdb)]!==_0x49b11b(0x89)&&this[_0x49b11b(0x96)]();}['_handleNewChangeSets'](_0x1b7096){const _0x153f42=_0x480de2;if(this[_0x153f42(0xdb)]===_0x153f42(0x120)&&this[_0x153f42(0xac)]===_0x1b7096['data']['memberID']){const _0x34503f=_0x432e75(_0x1b7096[_0x153f42(0x9f)])['mutations'][_0x153f42(0xaf)]()['find'](_0x7afcd8=>_0x7afcd8['id']===_0x29dcc9['id']);if(_0x34503f){const _0x4ba76b=_0x34503f[_0x153f42(0x98)][_0x153f42(0xb5)],_0x15dba1=_0x34503f[_0x153f42(0x98)][_0x153f42(0x9e)]['id'];setTimeout(()=>{const _0x2ecaf5=_0x153f42;this['_commandService'][_0x2ecaf5(0x7f)](_0x42d600['id'],{'unitId':_0x4ba76b,'subUnitId':_0x15dba1},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x177141=_0x480de2;this['_status$']['next'](_0x177141(0x89));const _0x39f6be=new Map(),_0x3ff90b=this['_commandDisposable']=new _0xb8bf1f();_0x3ff90b[_0x177141(0xb1)](_0x5b0e28(()=>{_0x39f6be['forEach'](_0x293cd6=>_0x293cd6['complete']()),_0x39f6be['clear']();})),_0x3ff90b[_0x177141(0xb1)](this[_0x177141(0xd1)][_0x177141(0xa3)](_0x381eea=>{const _0x4a017b=_0x177141;var _0x4c0798;if(_0x381eea[_0x4a017b(0x113)]!==_0x2baff1[_0x4a017b(0x8d)]||!this['_liveShareService'][_0x4a017b(0xe8)](_0x381eea['id']))return;const {id:_0x520a4d}=_0x381eea;let _0x4f3b76;_0x39f6be['has'](_0x520a4d)?_0x4f3b76=_0x39f6be[_0x4a017b(0xa4)](_0x520a4d):(_0x4f3b76=new _0x35191d(),_0x39f6be[_0x4a017b(0xc1)](_0x520a4d,_0x4f3b76),_0x4f3b76[_0x4a017b(0xd2)](_0x55381b((_0x4c0798=this['_configService'][_0x4a017b(0x9c)](Ce))!=null?_0x4c0798:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a017b(0x114)](_0x26fda9=>{const _0x3bd224=_0x4a017b;this[_0x3bd224(0xcc)]['send']({'eventID':_0x5cbca8[_0x3bd224(0xe4)],'data':{'unitID':this[_0x3bd224(0xe0)],'operations':{[_0x26fda9['id']]:{'id':_0x26fda9['id'],'params':JSON[_0x3bd224(0x116)](_0x26fda9[_0x3bd224(0x98)])}}}},this[_0x3bd224(0xe0)]);})),_0x4f3b76['next'](_0x381eea);})),this[_0x177141(0xe6)][_0x177141(0xd3)](this[_0x177141(0xe0)])[_0x177141(0x11d)](_0x21f65b=>this[_0x177141(0xcc)][_0x177141(0x95)]({'eventID':_0x5cbca8[_0x177141(0xe4)],'data':{'unitID':this[_0x177141(0xe0)],'operations':{[_0x21f65b['id']]:{'id':_0x21f65b['id'],'params':JSON[_0x177141(0x116)](_0x21f65b['params'])}}}},this[_0x177141(0xe0)]));}[_0x480de2(0xdd)](){const _0x4cf352=_0x480de2;var _0xbf5732;this[_0x4cf352(0xe5)][_0x4cf352(0xa5)](_0x4cf352(0xff)),(_0xbf5732=this[_0x4cf352(0x11f)])==null||_0xbf5732[_0x4cf352(0xfd)](),this['_commandDisposable']=null;}[_0x480de2(0xee)](){const _0x21eac1=_0x480de2;var _0x50bcac;(_0x50bcac=this['_commandDisposable'])==null||_0x50bcac[_0x21eac1(0xfd)](),this[_0x21eac1(0xe5)][_0x21eac1(0xa5)](_0x21eac1(0x120));}['_beIdle'](){const _0x2a0fd7=_0x480de2;var _0x24cd7a;this[_0x2a0fd7(0xe5)][_0x2a0fd7(0xa5)]('idle'),(_0x24cd7a=this[_0x2a0fd7(0x11f)])==null||_0x24cd7a[_0x2a0fd7(0xfd)](),this[_0x2a0fd7(0x11f)]=null;}[_0x480de2(0x11e)](){const _0x98543e=_0x480de2;var _0x4bf86b;this[_0x98543e(0xe5)][_0x98543e(0xa5)](_0x98543e(0x9a)),(_0x4bf86b=this[_0x98543e(0x11f)])==null||_0x4bf86b[_0x98543e(0xfd)]();}[_0x480de2(0x10b)](_0x58c3f4){const _0x3a4f0c=_0x480de2;if(['presenting',_0x3a4f0c(0x9a),_0x3a4f0c(0xa9)][_0x3a4f0c(0x11a)](this[_0x3a4f0c(0xdb)])||!_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]||_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]===this[_0x3a4f0c(0xcc)][_0x3a4f0c(0xb9)]())return;this[_0x3a4f0c(0xdb)]===_0x3a4f0c(0xff)&&this[_0x3a4f0c(0xee)]();const _0x2d886e=_0x58c3f4[_0x3a4f0c(0x9f)]['operations'];Object['values'](_0x2d886e)[_0x3a4f0c(0x11d)](_0x16922f=>{const _0x23ed7c=_0x3a4f0c;this['_commandService']['executeCommand'](_0x16922f['id'],_0x16922f[_0x23ed7c(0x98)]?JSON['parse'](_0x16922f[_0x23ed7c(0x98)]):null,{'fromCollab':!0x0});});}[_0x480de2(0x118)](){const _0x2a63a5=_0x480de2;var _0x5e25ed;this[_0x2a63a5(0xe5)][_0x2a63a5(0xa5)](_0x2a63a5(0xa9)),(_0x5e25ed=this[_0x2a63a5(0x11f)])==null||_0x5e25ed[_0x2a63a5(0xfd)]();}[_0x480de2(0xd8)](){const _0xc83cf5=_0x480de2;this[_0xc83cf5(0xe5)][_0xc83cf5(0xa5)](_0xc83cf5(0xff)),this[_0xc83cf5(0xd0)]();}};N=Y([_(0x2,_0xea2396),_(0x3,_0x31d8e9(L)),_(0x4,_0x358f4b)],N);function Le(){const _0xca5cec=_0x480de2,_0x15a293=_0x5b95cb(S),_0x4c337b=_0x5b95cb(_0x59e319),_0x3ab8b0=_0x477adc(()=>_0x4c337b[_0xca5cec(0xc8)](_0x1e0e7d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x43c7fc,_0x493cc2]=_0x3126fc(null),[_0x52d3b0,_0x34bd49]=_0x3126fc(c[_0xca5cec(0x105)]),_0x3e6863=_0x2d1821(null);return _0x42fb54(()=>(_0x3ab8b0&&_0x15a293[_0xca5cec(0xf4)](_0x3ab8b0[_0xca5cec(0x7e)]())['then'](_0x142b4d=>{const _0x55dda4=_0xca5cec;_0x493cc2(_0x142b4d),_0x3e6863[_0x55dda4(0x107)]=_0x142b4d[_0x55dda4(0xcd)][_0x55dda4(0x114)](_0x1375d4=>{_0x34bd49(_0x1375d4);});}),()=>{const _0x436328=_0xca5cec;var _0x4ea08b;(_0x4ea08b=_0x3e6863[_0x436328(0x107)])==null||_0x4ea08b['unsubscribe'](),_0x3e6863[_0x436328(0x107)]=null;}),[_0x3ab8b0,_0x15a293]),_0x43c7fc?_0x4f48f3(_0x43303b,{'align':_0xca5cec(0xd5),'disabled':_0x52d3b0===c[_0xca5cec(0xf7)],'className':_0xca5cec(0xc7),'overlay':_0x4f48f3(Re,{'status':_0x52d3b0,'coordinator':_0x43c7fc}),'children':_0x4f48f3('button',{'className':_0x219d87(_0xca5cec(0xad),{'univer-cursor-not-allowed':_0x52d3b0===c[_0xca5cec(0xf7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52d3b0!==c[_0xca5cec(0xf7)]}),'type':'button','children':_0x4f48f3(W,{'className':_0xca5cec(0xce)})})}):null;}function Re(_0x2ef174){const _0x277700=_0x480de2,{status:_0x2430bb,coordinator:_0x338fed}=_0x2ef174;switch(_0x2430bb){case c[_0x277700(0x105)]:return _0x4f48f3($e,{'coordinator':_0x338fed});case c[_0x277700(0x91)]:return _0x4f48f3(xe,{'coordinator':_0x338fed});case c[_0x277700(0xb2)]:return _0x4f48f3(Pe,{'coordinator':_0x338fed});case c[_0x277700(0xf7)]:return _0x4f48f3(Te,{});case c['PRESENTING']:return _0x4f48f3(Ae,{'coordinator':_0x338fed});default:return null;}}function $e(_0xfad782){const _0x5995a0=_0x480de2,{coordinator:_0x5ee935}=_0xfad782;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5995a0(0xe7)}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x5ee935['tryStartPresenting'](),'children':_0x5995a0(0x97)})]});}function xe(_0x4a7620){const _0x13e27f=_0x480de2,{coordinator:_0x541788}=_0x4a7620;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x13e27f(0xe2),{'className':_0x13e27f(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x541788['stopFollowing'](),'children':_0x13e27f(0xdc)})]});}function Pe(_0x185a58){const _0x400cfa=_0x480de2,{coordinator:_0xa38fab}=_0x185a58;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x400cfa(0xe2),{'className':_0x400cfa(0x8b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'variant':'text','onClick':()=>_0xa38fab[_0x400cfa(0x82)](),'children':_0x400cfa(0x90)})]});}function Ae(_0x14e769){const _0x49059d=_0x480de2,{coordinator:_0x393521}=_0x14e769;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x49059d(0xe2),{'className':_0x49059d(0x8b),'children':_0x49059d(0xde)}),_0x4f48f3(_0x5f10a4,{'variant':'default','onClick':()=>_0x393521[_0x49059d(0xb0)](),'children':_0x49059d(0xea)})]});}function Te(){const _0x35fc15=_0x480de2;return _0x4f48f3(_0x5480f9,{'children':_0x35fc15(0xf9)});}var Fe=Object[_0x480de2(0x103)],He=(_0xc389b6,_0x47ae8a,_0x4a2f48,_0x244129)=>{for(var _0x5e3960=_0x244129>0x1?void 0x0:_0x244129?Fe(_0x47ae8a,_0x4a2f48):_0x47ae8a,_0x54a047=_0xc389b6['length']-0x1,_0x19907b;_0x54a047>=0x0;_0x54a047--)(_0x19907b=_0xc389b6[_0x54a047])&&(_0x5e3960=_0x19907b(_0x5e3960)||_0x5e3960);return _0x5e3960;},A=(_0x12cc2f,_0x2cada1)=>(_0x41e21f,_0x613bb1)=>_0x2cada1(_0x41e21f,_0x613bb1,_0x12cc2f);let m=class extends _0x445766{constructor(_0x172e53,_0x4f79ea){const _0x1a884a=_0x480de2;super(),this[_0x1a884a(0x102)]=_0x172e53,this['_uiPartsService']=_0x4f79ea,this['_mountLiveShare']();}[_0x480de2(0xa6)](){const _0x5ae6c7=_0x480de2;this['disposeWithMe'](this[_0x5ae6c7(0x81)][_0x5ae6c7(0xd7)](_0x589e20[_0x5ae6c7(0x10a)],()=>_0x2bfcca(Le,this[_0x5ae6c7(0x102)])));}};m=He([A(0x0,_0x31d8e9(_0x4d1ef7)),A(0x1,_0x1618ae)],m);const ye=_0x480de2(0x8e),T={};var Ue=Object[_0x480de2(0x103)],Ve=(_0x249b57,_0x4669ab,_0x3ceaa9,_0xa47879)=>{const _0x14820b=_0x480de2;for(var _0x5a1957=_0xa47879>0x1?void 0x0:_0xa47879?Ue(_0x4669ab,_0x3ceaa9):_0x4669ab,_0xd5a94d=_0x249b57[_0x14820b(0xbf)]-0x1,_0x261a0a;_0xd5a94d>=0x0;_0xd5a94d--)(_0x261a0a=_0x249b57[_0xd5a94d])&&(_0x5a1957=_0x261a0a(_0x5a1957)||_0x5a1957);return _0x5a1957;},je=(_0x12cfd5,_0x4e7413)=>(_0x56a754,_0x9be823)=>_0x4e7413(_0x56a754,_0x9be823,_0x12cfd5);let I=class extends _0x445766{constructor(_0x3ba195){const _0x3b4077=_0x480de2;super(),this[_0x3b4077(0xe6)]=_0x3ba195,this[_0x3b4077(0x83)]();}[_0x480de2(0x83)](){const _0x146712=_0x480de2;[_0xee7cd['id'],_0x504137['id'],_0x42d600['id']][_0x146712(0x11d)](_0x4a77ef=>{const _0x505cfc=_0x146712;this[_0x505cfc(0xe1)](this[_0x505cfc(0xe6)][_0x505cfc(0xb6)](_0x4a77ef));});}};I=Ve([je(0x0,_0x31d8e9(L))],I);var Me=Object[_0x480de2(0x108)],ke=Object[_0x480de2(0x103)],Ge=(_0x3f3f64,_0x21c44a,_0x49d929)=>_0x21c44a in _0x3f3f64?Me(_0x3f3f64,_0x21c44a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d929}):_0x3f3f64[_0x21c44a]=_0x49d929,We=(_0x77c05d,_0x551572,_0x1732b4,_0x2c59c5)=>{const _0x170ee9=_0x480de2;for(var _0x1a3120=_0x2c59c5>0x1?void 0x0:_0x2c59c5?ke(_0x551572,_0x1732b4):_0x551572,_0xd600ef=_0x77c05d[_0x170ee9(0xbf)]-0x1,_0x500c05;_0xd600ef>=0x0;_0xd600ef--)(_0x500c05=_0x77c05d[_0xd600ef])&&(_0x1a3120=_0x500c05(_0x1a3120)||_0x1a3120);return _0x1a3120;},F=(_0x2901fb,_0x49a302)=>(_0x3613d9,_0x164f78)=>_0x49a302(_0x3613d9,_0x164f78,_0x2901fb),B=(_0x3a68c3,_0x176827,_0xb3ba0f)=>Ge(_0x3a68c3,typeof _0x176827!=_0x480de2(0x106)?_0x176827+'':_0x176827,_0xb3ba0f);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x218f1f{constructor(_0x1d5e66=T,_0x5d5c39,_0xc484d4){const _0x2d2aa6=_0x480de2;super(),this[_0x2d2aa6(0x93)]=_0x1d5e66,this[_0x2d2aa6(0x102)]=_0x5d5c39,this[_0x2d2aa6(0xfa)]=_0xc484d4;const {..._0x40ad25}=_0x477aae({},T,this[_0x2d2aa6(0x93)]);this[_0x2d2aa6(0xfa)][_0x2d2aa6(0x10c)](ye,_0x40ad25);}[_0x480de2(0x86)](){const _0x170149=_0x480de2;_0xaed711(this[_0x170149(0x102)],_0xb0235f([[L],[S],[I],[m]],this[_0x170149(0x93)][_0x170149(0xcb)])),_0xd465dc(this[_0x170149(0x102)],[[I]]);}[_0x480de2(0xc2)](){const _0x14c429=_0x480de2;_0xd465dc(this[_0x14c429(0x102)],[[m]]);}};B(b,'type',_0x1e0e7d[_0x480de2(0xa1)]),B(b,_0x480de2(0xa2),Ye),b=We([_0x2532bd(_0x1e0ea8),F(0x1,_0x31d8e9(_0x4d1ef7)),F(0x2,_0xea2396)],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 _0x1505(_0x7e48c9,_0x2f959d){const _0x525681=_0x5256();return _0x1505=function(_0x150598,_0x3b4891){_0x150598=_0x150598-0x6b;let _0x231736=_0x525681[_0x150598];return _0x231736;},_0x1505(_0x7e48c9,_0x2f959d);}(function(_0x4c313f,_0x3ebdf3){const _0x4de8b8=_0x1505,_0x4fa056=_0x4c313f();while(!![]){try{const _0x25e228=-parseInt(_0x4de8b8(0x70))/0x1*(parseInt(_0x4de8b8(0x8d))/0x2)+-parseInt(_0x4de8b8(0x8a))/0x3*(parseInt(_0x4de8b8(0x80))/0x4)+-parseInt(_0x4de8b8(0x9c))/0x5*(-parseInt(_0x4de8b8(0x75))/0x6)+parseInt(_0x4de8b8(0x90))/0x7*(parseInt(_0x4de8b8(0x74))/0x8)+-parseInt(_0x4de8b8(0x97))/0x9+-parseInt(_0x4de8b8(0x96))/0xa*(-parseInt(_0x4de8b8(0x7d))/0xb)+parseInt(_0x4de8b8(0x7c))/0xc;if(_0x25e228===_0x3ebdf3)break;else _0x4fa056['push'](_0x4fa056['shift']());}catch(_0x545814){_0x4fa056['push'](_0x4fa056['shift']());}}}(_0x5256,0x629ad),function(_0x3196d4,_0x1c5a76){const _0x5b5d2f=_0x1505;typeof exports=='object'&&typeof module<'u'?_0x1c5a76(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x5b5d2f(0x9b)]?define([_0x5b5d2f(0x86),'@univerjs/engine-render',_0x5b5d2f(0x8e),'@univerjs/sheets-ui',_0x5b5d2f(0x92),_0x5b5d2f(0x78)],_0x1c5a76):(_0x3196d4=typeof globalThis<'u'?globalThis:_0x3196d4||self,_0x1c5a76(_0x3196d4['UniverProLiveShare'],_0x3196d4[_0x5b5d2f(0x99)],_0x3196d4[_0x5b5d2f(0x81)],_0x3196d4[_0x5b5d2f(0x85)],_0x3196d4[_0x5b5d2f(0x89)],_0x3196d4['UniverCoreFacade']));}(this,function(_0x4c7ada,_0xbaf66b,_0x3e32a1,_0x3bdca8,_0x573904,_0xbe53ab){'use strict';const _0x7322ba=_0x1505;class _0x2d17d6 extends _0x573904[_0x7322ba(0x7e)]{['_initialize'](_0x3b9b4e,_0x31fdf0,_0x22252e,_0x32c199,_0x402875){const _0x99362d=_0x7322ba,_0x196e82=_0x3b9b4e[_0x99362d(0x7a)](_0x4c7ada[_0x99362d(0x7b)]),_0x388ba6=_0x3b9b4e[_0x99362d(0x7a)](_0xbaf66b[_0x99362d(0x6c)]),_0x4982d9=_0x31fdf0[_0x99362d(0x91)](),_0x40b362=_0x31fdf0['getActiveSheet'](),_0x4a0ced=_0x196e82['getLiveShareCoordinatorSync'](_0x4982d9);(_0x4a0ced==null?void 0x0:_0x4a0ced[_0x99362d(0x98)]())!==_0x4c7ada[_0x99362d(0x76)]['PRESENTING']||(_0x22252e['getSheetId']()!==_0x40b362[_0x99362d(0x6e)]()&&this[_0x99362d(0x7f)][_0x99362d(0x93)](_0x3e32a1[_0x99362d(0x79)]['id'],{'unitId':_0x4982d9,'subUnitId':_0x22252e['getSheetId']()}),!_0x388ba6['getRenderById'](_0x4982d9))||_0x402875[_0x99362d(0x71)](_0x3bdca8[_0x99362d(0x6f)]['id'],{'unitId':_0x31fdf0[_0x99362d(0x91)](),'sheetId':_0x22252e[_0x99362d(0x6e)](),'sheetViewStartRow':_0x32c199[_0x99362d(0x73)],'sheetViewStartColumn':_0x32c199['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x573904[_0x7322ba(0x7e)]['extend'](_0x2d17d6);class _0x37d2b7 extends _0xbe53ab[_0x7322ba(0x72)]{['getLiveShareStatus'](){const _0x314f00=_0x7322ba;var _0x397264,_0x1df74e;const _0x19285f=this[_0x314f00(0x84)][_0x314f00(0x7a)](_0x4c7ada[_0x314f00(0x7b)]),_0x4692d6=(_0x397264=this[_0x314f00(0x94)]())==null?void 0x0:_0x397264[_0x314f00(0x95)]();if(!_0x4692d6)throw new Error(_0x314f00(0x8f));const _0x24293d=_0x19285f[_0x314f00(0x9a)](_0x4692d6);return(_0x1df74e=_0x24293d==null?void 0x0:_0x24293d[_0x314f00(0x98)]())!=null?_0x1df74e:_0x4c7ada[_0x314f00(0x76)][_0x314f00(0x88)];}[_0x7322ba(0x6d)](){const _0x10319e=_0x7322ba;var _0x83dc02;const _0x48740f=this[_0x10319e(0x84)]['get'](_0x4c7ada['LiveShareController']),_0x2c6f32=(_0x83dc02=this[_0x10319e(0x94)]())==null?void 0x0:_0x83dc02['getId']();if(!_0x2c6f32)throw new Error(_0x10319e(0x8f));const _0x4c5aa5=_0x48740f['getLiveShareCoordinatorSync'](_0x2c6f32);if(!_0x4c5aa5)throw new Error(_0x10319e(0x77));_0x4c5aa5[_0x10319e(0x6d)]();}['stopFollowing'](){const _0x46248=_0x7322ba;var _0x2d222e;const _0x223a2c=this[_0x46248(0x84)]['get'](_0x4c7ada[_0x46248(0x7b)]),_0xbfc6c5=(_0x2d222e=this[_0x46248(0x94)]())==null?void 0x0:_0x2d222e['getId']();if(!_0xbfc6c5)throw new Error('No\x20active\x20workbook\x20found.');const _0x546f4e=_0x223a2c[_0x46248(0x9a)](_0xbfc6c5);if(!_0x546f4e)throw new Error(_0x46248(0x77));_0x546f4e[_0x46248(0x83)]();}[_0x7322ba(0x8b)](){const _0x3d0e64=_0x7322ba;var _0xf90ca6;const _0x115ec5=this[_0x3d0e64(0x84)][_0x3d0e64(0x7a)](_0x4c7ada[_0x3d0e64(0x7b)]),_0x2247be=(_0xf90ca6=this['getActiveWorkbook']())==null?void 0x0:_0xf90ca6[_0x3d0e64(0x95)]();if(!_0x2247be)throw new Error(_0x3d0e64(0x8f));const _0x5dc336=_0x115ec5[_0x3d0e64(0x9a)](_0x2247be);if(!_0x5dc336)throw new Error(_0x3d0e64(0x77));_0x5dc336[_0x3d0e64(0x6b)]();}[_0x7322ba(0x82)](){const _0x57d09b=_0x7322ba;var _0x2e7123;const _0x186c27=this[_0x57d09b(0x84)][_0x57d09b(0x7a)](_0x4c7ada[_0x57d09b(0x7b)]),_0x4ee31e=(_0x2e7123=this[_0x57d09b(0x94)]())==null?void 0x0:_0x2e7123[_0x57d09b(0x95)]();if(!_0x4ee31e)throw new Error(_0x57d09b(0x8f));const _0x289bd6=_0x186c27[_0x57d09b(0x9a)](_0x4ee31e);if(!_0x289bd6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x289bd6[_0x57d09b(0x82)]();}}_0xbe53ab[_0x7322ba(0x72)][_0x7322ba(0x8c)](_0x37d2b7);class _0x7e78d2 extends _0xbe53ab[_0x7322ba(0x87)]{get['LiveShareStatusEnum'](){return _0x4c7ada['LiveShareStatus'];}}_0xbe53ab[_0x7322ba(0x87)]['extend'](_0x7e78d2);}));function _0x5256(){const _0x3eaf3b=['3472vojQQw','getUnitId','@univerjs/sheets/facade','executeCommand','getActiveWorkbook','getId','20yZMBmP','3938319tNrRiC','getStatus','UniverEngineRender','getLiveShareCoordinatorSync','amd','6755eZixsc','tryStartPresenting','IRenderManagerService','startFollowing','getSheetId','SetScrollOperation','435545LeoKju','syncExecuteCommand','FUniver','startRow','1208SsVUBS','3570INxdIZ','LiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/core/facade','SetWorksheetActiveOperation','get','LiveShareController','1347816ivjZKy','3936361wVCLkG','FRange','_commandService','4iTXJus','UniverSheets','stopPresenting','stopFollowing','_injector','UniverSheetsUi','@univerjs-pro/live-share','FEnum','IDLE','UniverSheetsFacade','1289220wLmTAM','startPresenting','extend','2ktWznM','@univerjs/sheets','No\x20active\x20workbook\x20found.'];_0x5256=function(){return _0x3eaf3b;};return _0x5256();}
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 _0x1699(){const _0x4f9b76=['live-share-icon','registerComponent','substring','getConfig','LiveShareController','getCurrentTypeOfUnit$','map','unsubscribe','_startFollowing','CollaborationSessionService','_collabSessionService','forEach','ICommandService','_mountLiveShare','Start','SetZoomRatioOperation','LIVESHARE_NEW_HOST','Disposable','data','UniverDesign','_liveShareService','toStringTag','_injector','requireSession','getMemberID','1563890DkvwZo','string','colorChannel1','exports','React','tryStartPresenting','default','SetWorksheetActiveOperation','Start\x20following','You\x27are\x20offline.','Module','symbol','presenter','getInitialStates','div','_handleOperation','3156904usvbgF','4594820YNIOAm','next','BehaviorSubject','_commandDisposable','reverse','UNIVER_SHEET','_handleNewHost','FOLLOWING','set','Injector','end','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','IUniverInstanceService','IUIPartsService','5420130PASSIb','includes','_handleOnline','InsertSheetMutation','_startPresenting','tag','asObservable','init','2489247OuMgsA','use','memberID','none','get','useRef','You\x27re\x20following\x20the\x20presenter','RxDisposable','sessionStatus$','jsx','parse','DesktopLiveShareController','@univerjs-pro/collaboration-client','svg','_config','connectInjector','Present\x20this\x20document','displayName','Button','subscribe','amd','_stopPresenting','toDisposable','add','You\x27re\x20not\x20following\x20the\x20presenter','UniverCore','_entities','idSuffix','_reporters','Plugin','assign','LiveShare','toString','path','stopFollowing','UniverProLiveShare','send','6393443WnWlRp','current','clear','pipe','merge','touchDependencies','SAME_OPERATION_SHARE_INTERVAL','setConfig','LiveShareIcon','react/jsx-runtime','stringify','registerInitialStateReporter','LIVESHARE_OPERATION','following','currentColor','sheet','UniverCollaborationClientPlugin','_handleOffline','CollaborationEvent','evenodd','fill','_startLiveShareCoordinator','IConfigService','react','_configService','_unitID','event$','rxjs/operators','defineProperty','@univerjs/core','@univerjs/design','idle','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20presenting\x20the\x20document','parseProtocolChangeset','not-following','ONLINE','dispose','length','NOT_FOLLOWING','_collabSession','UniverSheetsUi','SessionStatus','_stopFollowing','getStatus','NEW_CHANGESETS','univer-size-4','getUnitId','Stop\x20presenting','override','_fetchOperations','startFollowing','getLiveShareCoordinatorSync','_presenter','mergeOverrideWithDependencies','replace','_handleTerminate','values','button','stopPresenting','random','getValue','find','_status$','defs','onCommandExecuted','delete','_beIdle','_handleNewChangeSets','attrs','UNIVER_LIVE_SHARE_PLUGIN','SetScrollOperation','1em','getLiveShareCoordinator','@univerjs-pro/collaboration','presenting','UniverInstanceType','Fragment','takeUntil','url(#$1','Dropdown','getTypeOfUnitAdded$','params','1vGMaQF','LIVESHARE_REQUEST_HOST','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','IDLE','object','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','type','registerDependencies','UniverIcon','throttleTime','OFFLINE','jsxs','@univerjs/ui','createInstance','OPERATION','UniverProCollaboration','_init','clsx','LIVESHARE_TERMINATE','status$','0\x200\x2017\x2017','createElement','LiveShareCoordinator','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','Inject','_commandService','_uiPartsService','useState','getOwnPropertyDescriptor','unitId','UniverSheets','http://www.w3.org/2000/svg','3307608TksVAb','operations','dispose$','from','children','useDependency','@univerjs/sheets','has','UniverLiveSharePlugin','_sharedOperations','UniverUi','xlink:href','PRESENTING','defIds','_univerInstanceService','_status','disposeWithMe','mask','UNIVER_UNKNOWN','onStarting','useObservable','offline','registerSharedOperation'];_0x1699=function(){return _0x4f9b76;};return _0x1699();}function _0x321c(_0x2398bc,_0x18cfbc){const _0x1699bc=_0x1699();return _0x321c=function(_0x321cb5,_0x44ccad){_0x321cb5=_0x321cb5-0xef;let _0x19672b=_0x1699bc[_0x321cb5];return _0x19672b;},_0x321c(_0x2398bc,_0x18cfbc);}(function(_0xc33571,_0x5f5c61){const _0x45abd3=_0x321c,_0x39d4ad=_0xc33571();while(!![]){try{const _0x51613f=-parseInt(_0x45abd3(0x101))/0x1*(parseInt(_0x45abd3(0x152))/0x2)+parseInt(_0x45abd3(0x179))/0x3+-parseInt(_0x45abd3(0x122))/0x4+-parseInt(_0x45abd3(0x163))/0x5+parseInt(_0x45abd3(0x171))/0x6+parseInt(_0x45abd3(0x19e))/0x7+parseInt(_0x45abd3(0x162))/0x8;if(_0x51613f===_0x5f5c61)break;else _0x39d4ad['push'](_0x39d4ad['shift']());}catch(_0x253bec){_0x39d4ad['push'](_0x39d4ad['shift']());}}}(_0x1699,0x7d4e7),function(_0x28542b,_0x436aa3){const _0x47c37d=_0x321c;typeof exports==_0x47c37d(0x106)&&typeof module<'u'?_0x436aa3(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=='function'&&define[_0x47c37d(0x18d)]?define([_0x47c37d(0x155),_0x47c37d(0x1bb),_0x47c37d(0x10e),_0x47c37d(0x1a7),_0x47c37d(0x1bc),_0x47c37d(0x1b5),_0x47c37d(0xf8),_0x47c37d(0x185),_0x47c37d(0x128),'rxjs',_0x47c37d(0x1b9),'@univerjs/sheets-ui'],_0x436aa3):(_0x28542b=typeof globalThis<'u'?globalThis:_0x28542b||self,_0x436aa3(_0x28542b[_0x47c37d(0x19c)]={},_0x28542b[_0x47c37d(0x192)],_0x28542b[_0x47c37d(0x12c)],_0x28542b[_0x47c37d(0x156)],_0x28542b[_0x47c37d(0x14c)],_0x28542b[_0x47c37d(0x156)],_0x28542b[_0x47c37d(0x111)],_0x28542b['UniverProCollaborationClient'],_0x28542b[_0x47c37d(0x120)],_0x28542b['rxjs'],_0x28542b['rxjs']['operators'],_0x28542b[_0x47c37d(0x1c7)]));}(this,function(_0x1aa668,_0x544c92,_0x4e5103,_0x135a27,_0x2666de,_0x51f070,_0x403454,_0x1171e0,_0x336bc0,_0x498c12,_0x3c3415,_0x4f2758){'use strict';const _0x27edfa=_0x321c;var _0x9ac266=Object[_0x27edfa(0x1ba)],_0x20f232=(_0x501b9c,_0x176e36,_0x34e5d4)=>_0x176e36 in _0x501b9c?_0x9ac266(_0x501b9c,_0x176e36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34e5d4}):_0x501b9c[_0x176e36]=_0x34e5d4,_0x428aec=(_0x300461,_0x4579cd,_0x3eb66d)=>_0x20f232(_0x300461,typeof _0x4579cd!='symbol'?_0x4579cd+'':_0x4579cd,_0x3eb66d);function _0xa2edf3({ref:_0x5aa3d2,..._0xa5d6c0}){const _0x5126d9=_0x27edfa,{icon:_0x1c6eee,id:_0xc58cec,className:_0x19bf42,extend:_0x277072,..._0x19f01e}=_0xa5d6c0,_0x1d037f=('univerjs-icon\x20univerjs-icon-'+_0xc58cec+'\x20'+(_0x19bf42||''))['trim'](),_0x434069=_0x51f070['useRef']('_'+_0x318637());return _0x2f6013(_0x1c6eee,''+_0xc58cec,{'defIds':_0x1c6eee[_0x5126d9(0x12f)],'idSuffix':_0x434069[_0x5126d9(0x19f)]},{'ref':_0x5aa3d2,'className':_0x1d037f,..._0x19f01e},_0x277072);}function _0x2f6013(_0x499117,_0x416309,_0x5505e3,_0x63a168,_0x3a1ef0){const _0x7c4b8=_0x27edfa;return _0x51f070[_0x7c4b8(0x117)](_0x499117[_0x7c4b8(0x176)],{'key':_0x416309,..._0x5dcaeb(_0x499117,_0x5505e3,_0x3a1ef0),..._0x63a168},(_0x375833(_0x499117,_0x5505e3)[_0x7c4b8(0x126)]||[])[_0x7c4b8(0x13f)]((_0x5efd08,_0x3d631d)=>_0x2f6013(_0x5efd08,_0x416309+'-'+_0x499117[_0x7c4b8(0x176)]+'-'+_0x3d631d,_0x5505e3,void 0x0,_0x3a1ef0)));}function _0x5dcaeb(_0xcd5580,_0x31f1f0,_0xd3d6eb){const _0x450198=_0x27edfa,_0x2e8c66={..._0xcd5580[_0x450198(0xf3)]};_0xd3d6eb!=null&&_0xd3d6eb[_0x450198(0x154)]&&_0x2e8c66[_0x450198(0x1b2)]===_0x450198(0x154)&&(_0x2e8c66[_0x450198(0x1b2)]=_0xd3d6eb[_0x450198(0x154)]),_0xcd5580[_0x450198(0x176)]===_0x450198(0x133)&&_0x2e8c66['id']&&(_0x2e8c66['id']=_0x2e8c66['id']+_0x31f1f0[_0x450198(0x194)]),Object['entries'](_0x2e8c66)[_0x450198(0x144)](([_0x482bfc,_0xa54c37])=>{const _0x45992f=_0x450198;_0x482bfc==='mask'&&typeof _0xa54c37==_0x45992f(0x153)&&(_0x2e8c66[_0x482bfc]=_0xa54c37['replace'](/url\(#(.*)\)/,_0x45992f(0xfd)+_0x31f1f0['idSuffix']+')'));});const {defIds:_0x1a01e9}=_0x31f1f0;return!_0x1a01e9||_0x1a01e9[_0x450198(0x1c4)]===0x0||(_0xcd5580[_0x450198(0x176)]===_0x450198(0x17a)&&_0x2e8c66[_0x450198(0x12d)]&&(_0x2e8c66[_0x450198(0x12d)]=_0x2e8c66[_0x450198(0x12d)]+_0x31f1f0[_0x450198(0x194)]),Object['entries'](_0x2e8c66)[_0x450198(0x144)](([_0x392525,_0x3b226f])=>{const _0x4ab063=_0x450198;typeof _0x3b226f==_0x4ab063(0x153)&&(_0x2e8c66[_0x392525]=_0x3b226f[_0x4ab063(0x1d5)](/url\(#(.*)\)/,_0x4ab063(0xfd)+_0x31f1f0[_0x4ab063(0x194)]+')'));})),_0x2e8c66;}function _0x375833(_0x126225,_0x2a3473){const _0x323f84=_0x27edfa;var _0x3f8467;const {defIds:_0x32421c}=_0x2a3473;return!_0x32421c||_0x32421c[_0x323f84(0x1c4)]===0x0?_0x126225:_0x126225[_0x323f84(0x176)]===_0x323f84(0x1de)&&((_0x3f8467=_0x126225[_0x323f84(0x126)])!=null&&_0x3f8467[_0x323f84(0x1c4)])?{..._0x126225,'children':_0x126225[_0x323f84(0x126)]['map'](_0x263281=>typeof _0x263281[_0x323f84(0xf3)]['id']==_0x323f84(0x153)&&_0x32421c&&_0x32421c[_0x323f84(0x172)](_0x263281[_0x323f84(0xf3)]['id'])?{..._0x263281,'attrs':{..._0x263281[_0x323f84(0xf3)],'id':_0x263281[_0x323f84(0xf3)]['id']+_0x2a3473[_0x323f84(0x194)]}}:_0x263281)}:_0x126225;}function _0x318637(){const _0x47db3d=_0x27edfa;return Math[_0x47db3d(0x1da)]()[_0x47db3d(0x199)](0x24)[_0x47db3d(0x13b)](0x2,0x8);}_0xa2edf3[_0x27edfa(0x18a)]=_0x27edfa(0x10a);const _0x2b3782={'tag':_0x27edfa(0x186),'attrs':{'xmlns':_0x27edfa(0x121),'fill':_0x27edfa(0x17c),'viewBox':_0x27edfa(0x116),'width':_0x27edfa(0xf6),'height':_0x27edfa(0xf6)},'children':[{'tag':_0x27edfa(0x19a),'attrs':{'fill':'currentColor','d':_0x27edfa(0x119)}},{'tag':_0x27edfa(0x19a),'attrs':{'fill':_0x27edfa(0x1ac),'d':_0x27edfa(0x107),'fillRule':_0x27edfa(0x1b1),'clipRule':_0x27edfa(0x1b1)}}]},_0x45b447=_0x51f070['forwardRef'](function(_0x3272e3,_0xe5e913){const _0x31e93e=_0x27edfa;return _0x51f070[_0x31e93e(0x117)](_0xa2edf3,Object[_0x31e93e(0x197)]({},_0x3272e3,{'id':_0x31e93e(0x139),'ref':_0xe5e913,'icon':_0x2b3782}));});_0x45b447[_0x27edfa(0x18a)]=_0x27edfa(0x1a6);class _0x181d67 extends _0x544c92[_0x27edfa(0x14a)]{constructor(){const _0x4c87a5=_0x27edfa;super(...arguments),_0x428aec(this,_0x4c87a5(0x12b),new Set()),_0x428aec(this,'_reporters',new Set());}['registerSharedOperation'](_0x584e88){const _0x3e3136=_0x27edfa;return this[_0x3e3136(0x12b)]['add'](_0x584e88),_0x544c92['toDisposable'](()=>this[_0x3e3136(0x12b)]['delete'](_0x584e88));}[_0x27edfa(0x1a9)](_0x5990f4){const _0x554765=_0x27edfa;return this['_reporters'][_0x554765(0x190)](_0x5990f4),_0x544c92[_0x554765(0x18f)](()=>this[_0x554765(0x195)][_0x554765(0xf0)](_0x5990f4));}['shouldShareOperation'](_0x32ff90){const _0x3c65a4=_0x27edfa;return this[_0x3c65a4(0x12b)][_0x3c65a4(0x129)](_0x32ff90);}[_0x27edfa(0x15f)](_0x4a7688){const _0x35625b=_0x27edfa;return Array[_0x35625b(0x125)](this[_0x35625b(0x195)])[_0x35625b(0x13f)](_0xc4eec6=>_0xc4eec6(_0x4a7688));}}var _0x12e594=Object[_0x27edfa(0x11e)],_0x2ebb4d=(_0x14dc1b,_0xae6aeb,_0x30ca5a,_0x464ec5)=>{const _0x100ab5=_0x27edfa;for(var _0x1fb579=_0x464ec5>0x1?void 0x0:_0x464ec5?_0x12e594(_0xae6aeb,_0x30ca5a):_0xae6aeb,_0x4362fb=_0x14dc1b[_0x100ab5(0x1c4)]-0x1,_0x41ecfb;_0x4362fb>=0x0;_0x4362fb--)(_0x41ecfb=_0x14dc1b[_0x4362fb])&&(_0x1fb579=_0x41ecfb(_0x1fb579)||_0x1fb579);return _0x1fb579;},_0x446061=(_0x10025f,_0x20abc4)=>(_0x56a4a1,_0x1b94a1)=>_0x20abc4(_0x56a4a1,_0x1b94a1,_0x10025f);_0x1aa668[_0x27edfa(0x13d)]=class extends _0x544c92[_0x27edfa(0x180)]{constructor(_0x4eaa3b,_0x294106,_0x343ab1){const _0xcfd275=_0x27edfa;super(),_0x428aec(this,_0xcfd275(0x193),new Map()),(this['_univerInstanceService']=_0x4eaa3b,this['_injector']=_0x294106,this[_0xcfd275(0x143)]=_0x343ab1,this[_0xcfd275(0x112)]());}async[_0x27edfa(0xf7)](_0x9cda37){const _0x558e32=_0x27edfa;return this[_0x558e32(0x193)][_0x558e32(0x129)](_0x9cda37)||await this['_startLiveShareCoordinator'](_0x9cda37),this[_0x558e32(0x193)][_0x558e32(0x17d)](_0x9cda37);}[_0x27edfa(0x1d2)](_0x1e2d5e){var _0x5afb7e;return(_0x5afb7e=this['_entities']['get'](_0x1e2d5e))!=null?_0x5afb7e:null;}[_0x27edfa(0x112)](){const _0xe385b=_0x27edfa;this[_0xe385b(0x130)][_0xe385b(0xff)](_0x544c92[_0xe385b(0xfa)][_0xe385b(0x168)])['pipe'](_0x3c3415[_0xe385b(0xfc)](this['dispose$']))[_0xe385b(0x18c)](async _0x27cf3b=>{const _0x46ca29=_0xe385b,_0x360390=_0x27cf3b[_0x46ca29(0x1cd)]();this[_0x46ca29(0x193)][_0x46ca29(0x129)](_0x360390)||this[_0x46ca29(0x1b3)](_0x360390);}),this[_0xe385b(0x130)]['getTypeOfUnitDisposed$'](_0x544c92[_0xe385b(0xfa)]['UNIVER_SHEET'])['pipe'](_0x3c3415['takeUntil'](this[_0xe385b(0x124)]))[_0xe385b(0x18c)](_0x50b3d7=>{const _0x2c4b5a=_0xe385b,_0x1fcb28=_0x50b3d7[_0x2c4b5a(0x1cd)](),_0x5d8692=this[_0x2c4b5a(0x193)][_0x2c4b5a(0x17d)](_0x1fcb28);_0x5d8692==null||_0x5d8692[_0x2c4b5a(0x1c3)]();});}async[_0x27edfa(0x1b3)](_0x2672bc){const _0xeabb24=_0x27edfa,_0x5dcfa8=await this[_0xeabb24(0x143)][_0xeabb24(0x150)](_0x2672bc),_0x559eeb=this['_injector'][_0xeabb24(0x10f)](_0x1aa668[_0xeabb24(0x118)],_0x2672bc,_0x5dcfa8);return _0x559eeb[_0xeabb24(0x178)](),this[_0xeabb24(0x193)][_0xeabb24(0x16b)](_0x2672bc,_0x559eeb),_0x559eeb;}},_0x1aa668[_0x27edfa(0x13d)]=_0x2ebb4d([_0x446061(0x0,_0x544c92[_0x27edfa(0x16f)]),_0x446061(0x1,_0x544c92['Inject'](_0x544c92[_0x27edfa(0x16c)])),_0x446061(0x2,_0x544c92[_0x27edfa(0x11a)](_0x1171e0[_0x27edfa(0x142)]))],_0x1aa668['LiveShareController']);var _0x345d0f=(_0x588301=>(_0x588301[_0x27edfa(0x10c)]=_0x27edfa(0x137),_0x588301[_0x27edfa(0x105)]='idle',_0x588301['FOLLOWING']='following',_0x588301['NOT_FOLLOWING']=_0x27edfa(0x1c1),_0x588301[_0x27edfa(0x12e)]=_0x27edfa(0xf9),_0x588301))(_0x345d0f||{});const _0x3b4949=_0x27edfa(0x1a4),_0x38a0b5=0xc8;_0x1aa668[_0x27edfa(0x118)]=class extends _0x544c92[_0x27edfa(0x180)]{constructor(_0x18f15a,_0x2c1d72,_0x36f581,_0x510df3,_0x36465a){const _0x2900fe=_0x27edfa;super(),_0x428aec(this,'_status$',new _0x498c12[(_0x2900fe(0x165))](_0x2900fe(0x1bd))),_0x428aec(this,_0x2900fe(0x115),this[_0x2900fe(0x1dd)][_0x2900fe(0x177)]()),_0x428aec(this,_0x2900fe(0x112),!0x1),_0x428aec(this,_0x2900fe(0x166),null),_0x428aec(this,'_presenter',null),(this[_0x2900fe(0x1b7)]=_0x18f15a,this['_collabSession']=_0x2c1d72,this['_configService']=_0x36f581,this[_0x2900fe(0x14d)]=_0x510df3,this[_0x2900fe(0x11b)]=_0x36465a);}get[_0x27edfa(0x131)](){const _0x593451=_0x27edfa;return this[_0x593451(0x1dd)][_0x593451(0x1db)]();}['dispose'](){const _0x47cab3=_0x27edfa;var _0x3faef4;(_0x3faef4=this[_0x47cab3(0x166)])==null||_0x3faef4[_0x47cab3(0x1c3)](),this[_0x47cab3(0x1dd)][_0x47cab3(0x164)](_0x47cab3(0x1bd)),this[_0x47cab3(0x1dd)]['complete']();}[_0x27edfa(0x1ca)](){const _0xfd218f=_0x27edfa;return this[_0xfd218f(0x131)];}[_0x27edfa(0x178)](){const _0x110003=_0x27edfa;this['_init']||(this[_0x110003(0x112)]=!0x0,this['_collabSession'][_0x110003(0x181)][_0x110003(0x1a1)](_0x3c3415['takeUntil'](this['dispose$']))[_0x110003(0x18c)](_0x28453f=>{const _0x27d048=_0x110003;switch(_0x28453f){case _0x1171e0['SessionStatus'][_0x27d048(0x10c)]:this['_handleOffline']();break;case _0x1171e0[_0x27d048(0x1c8)][_0x27d048(0x1c2)]:this[_0x27d048(0x173)]();break;}}),this[_0x110003(0x1c6)][_0x110003(0x1b8)][_0x110003(0x1a1)](_0x3c3415[_0x110003(0xfc)](this['dispose$']))[_0x110003(0x18c)](_0x4502c2=>{const _0x452553=_0x110003,{eventID:_0x8ae176}=_0x4502c2;switch(_0x8ae176){case _0x403454[_0x452553(0x1b0)][_0x452553(0x149)]:this[_0x452553(0x169)](_0x4502c2);break;case _0x403454[_0x452553(0x1b0)][_0x452553(0x1aa)]:this[_0x452553(0x161)](_0x4502c2);break;case _0x403454[_0x452553(0x1b0)]['LIVESHARE_TERMINATE']:this[_0x452553(0x1d6)]();break;case _0x403454['CollaborationEvent'][_0x452553(0x1cb)]:this['_handleNewChangeSets'](_0x4502c2);break;}}));}[_0x27edfa(0x157)](){const _0x25e2b5=_0x27edfa;this[_0x25e2b5(0x1c6)][_0x25e2b5(0x19d)]({'eventID':_0x403454['CollaborationEvent'][_0x25e2b5(0x102)],'data':{'unitID':this[_0x25e2b5(0x1b7)],'userID':this[_0x25e2b5(0x1c6)][_0x25e2b5(0x151)]()}},this[_0x25e2b5(0x1b7)]);}[_0x27edfa(0x1d9)](){const _0x3e5cae=_0x27edfa;this[_0x3e5cae(0x131)]==='presenting'&&(this[_0x3e5cae(0x1dd)]['next'](_0x3e5cae(0x1bd)),this['_collabSession'][_0x3e5cae(0x19d)]({'eventID':_0x403454[_0x3e5cae(0x1b0)][_0x3e5cae(0x114)],'data':{'unitID':this[_0x3e5cae(0x1b7)]}},this[_0x3e5cae(0x1b7)]));}[_0x27edfa(0x1d1)](){const _0x57881b=_0x27edfa;this[_0x57881b(0x131)]===_0x57881b(0x1c1)&&(this[_0x57881b(0x1dd)][_0x57881b(0x164)](_0x57881b(0x1ab)),this[_0x57881b(0x141)]());}[_0x27edfa(0x19b)](){const _0x27a977=_0x27edfa;this['_status']===_0x27a977(0x1ab)&&this[_0x27a977(0x1c9)]();}['_handleNewHost'](_0x4504c9){const _0x274b3e=_0x27edfa,{presenter:_0x5d2b12}=_0x4504c9[_0x274b3e(0x14b)],_0x11a346=this[_0x274b3e(0x1c6)]['getMemberID']();this[_0x274b3e(0x1d3)]=_0x5d2b12,_0x5d2b12===_0x11a346?(this[_0x274b3e(0x1c9)](),this[_0x274b3e(0x175)]()):this[_0x274b3e(0x131)]!==_0x274b3e(0x1c1)&&(this[_0x274b3e(0x18e)](),this['_startFollowing']());}[_0x27edfa(0x1d0)](){const _0xf420c7=_0x27edfa,_0x2de098={'eventID':_0x403454['CollaborationEvent'][_0xf420c7(0x1be)]};this[_0xf420c7(0x1c6)][_0xf420c7(0x19d)](_0x2de098,this[_0xf420c7(0x1b7)]);}[_0x27edfa(0x1d6)](){const _0x20f3a3=_0x27edfa;this[_0x20f3a3(0x1d3)]=null,this[_0x20f3a3(0x131)]!==_0x20f3a3(0xf9)&&this[_0x20f3a3(0xf1)]();}[_0x27edfa(0xf2)](_0x57d427){const _0x44d802=_0x27edfa;if(this[_0x44d802(0x131)]==='following'&&this[_0x44d802(0x1d3)]===_0x57d427[_0x44d802(0x14b)][_0x44d802(0x17b)]){const _0x4fc7b6=_0x403454[_0x44d802(0x1c0)](_0x57d427[_0x44d802(0x14b)])['mutations'][_0x44d802(0x167)]()[_0x44d802(0x1dc)](_0x40974d=>_0x40974d['id']===_0x336bc0[_0x44d802(0x174)]['id']);if(_0x4fc7b6){const _0x6708a=_0x4fc7b6[_0x44d802(0x100)][_0x44d802(0x11f)],_0x2d1793=_0x4fc7b6[_0x44d802(0x100)][_0x44d802(0x1ad)]['id'];setTimeout(()=>{const _0x2c4f68=_0x44d802;this[_0x2c4f68(0x11b)]['executeCommand'](_0x336bc0[_0x2c4f68(0x159)]['id'],{'unitId':_0x6708a,'subUnitId':_0x2d1793},{'fromCollab':!0x0});});}}}[_0x27edfa(0x175)](){const _0x1051fc=_0x27edfa;this[_0x1051fc(0x1dd)][_0x1051fc(0x164)](_0x1051fc(0xf9));const _0x19479a=new Map(),_0x358efe=this['_commandDisposable']=new _0x544c92['DisposableCollection']();_0x358efe[_0x1051fc(0x190)](_0x544c92[_0x1051fc(0x18f)](()=>{const _0x314c29=_0x1051fc;_0x19479a['forEach'](_0x5ee99d=>_0x5ee99d['complete']()),_0x19479a[_0x314c29(0x1a0)]();})),_0x358efe[_0x1051fc(0x190)](this[_0x1051fc(0x11b)][_0x1051fc(0xef)](_0x48e4f2=>{const _0x5967c4=_0x1051fc;var _0x676635;if(_0x48e4f2[_0x5967c4(0x108)]!==_0x544c92['CommandType'][_0x5967c4(0x110)]||!this[_0x5967c4(0x14d)]['shouldShareOperation'](_0x48e4f2['id']))return;const {id:_0x3cfced}=_0x48e4f2;let _0x524a8d;_0x19479a[_0x5967c4(0x129)](_0x3cfced)?_0x524a8d=_0x19479a[_0x5967c4(0x17d)](_0x3cfced):(_0x524a8d=new _0x498c12['Subject'](),_0x19479a['set'](_0x3cfced,_0x524a8d),_0x524a8d[_0x5967c4(0x1a1)](_0x3c3415[_0x5967c4(0x10b)]((_0x676635=this[_0x5967c4(0x1b6)][_0x5967c4(0x13c)](_0x3b4949))!=null?_0x676635:_0x38a0b5,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5967c4(0x18c)](_0x243cd3=>{const _0x3377c3=_0x5967c4;this[_0x3377c3(0x1c6)][_0x3377c3(0x19d)]({'eventID':_0x403454[_0x3377c3(0x1b0)][_0x3377c3(0x1aa)],'data':{'unitID':this[_0x3377c3(0x1b7)],'operations':{[_0x243cd3['id']]:{'id':_0x243cd3['id'],'params':JSON['stringify'](_0x243cd3[_0x3377c3(0x100)])}}}},this[_0x3377c3(0x1b7)]);})),_0x524a8d[_0x5967c4(0x164)](_0x48e4f2);})),this[_0x1051fc(0x14d)][_0x1051fc(0x15f)](this[_0x1051fc(0x1b7)])['forEach'](_0x4bf67a=>this['_collabSession']['send']({'eventID':_0x403454[_0x1051fc(0x1b0)][_0x1051fc(0x1aa)],'data':{'unitID':this[_0x1051fc(0x1b7)],'operations':{[_0x4bf67a['id']]:{'id':_0x4bf67a['id'],'params':JSON[_0x1051fc(0x1a8)](_0x4bf67a[_0x1051fc(0x100)])}}}},this[_0x1051fc(0x1b7)]));}['_stopPresenting'](){const _0x4d49e6=_0x27edfa;var _0x4e1c66;this[_0x4d49e6(0x1dd)]['next'](_0x4d49e6(0x1bd)),(_0x4e1c66=this[_0x4d49e6(0x166)])==null||_0x4e1c66['dispose'](),this[_0x4d49e6(0x166)]=null;}['_startFollowing'](){const _0x522ac0=_0x27edfa;var _0x23323f;(_0x23323f=this[_0x522ac0(0x166)])==null||_0x23323f[_0x522ac0(0x1c3)](),this[_0x522ac0(0x1dd)][_0x522ac0(0x164)](_0x522ac0(0x1ab));}[_0x27edfa(0xf1)](){const _0x224715=_0x27edfa;var _0x2112e9;this['_status$'][_0x224715(0x164)](_0x224715(0x1bd)),(_0x2112e9=this[_0x224715(0x166)])==null||_0x2112e9[_0x224715(0x1c3)](),this[_0x224715(0x166)]=null;}[_0x27edfa(0x1c9)](){const _0x2e4b95=_0x27edfa;var _0x507191;this[_0x2e4b95(0x1dd)][_0x2e4b95(0x164)](_0x2e4b95(0x1c1)),(_0x507191=this[_0x2e4b95(0x166)])==null||_0x507191['dispose']();}['_handleOperation'](_0x79ad69){const _0x3b73e5=_0x27edfa;if([_0x3b73e5(0xf9),_0x3b73e5(0x1c1),_0x3b73e5(0x137)]['includes'](this[_0x3b73e5(0x131)])||!_0x79ad69[_0x3b73e5(0x14b)][_0x3b73e5(0x15e)]||_0x79ad69['data'][_0x3b73e5(0x15e)]===this[_0x3b73e5(0x1c6)]['getMemberID']())return;this[_0x3b73e5(0x131)]===_0x3b73e5(0x1bd)&&this[_0x3b73e5(0x141)]();const _0x50de90=_0x79ad69['data'][_0x3b73e5(0x123)];Object[_0x3b73e5(0x1d7)](_0x50de90)['forEach'](_0x557862=>{const _0x40aa40=_0x3b73e5;this[_0x40aa40(0x11b)]['executeCommand'](_0x557862['id'],_0x557862[_0x40aa40(0x100)]?JSON[_0x40aa40(0x183)](_0x557862['params']):null,{'fromCollab':!0x0});});}[_0x27edfa(0x1af)](){const _0x50f722=_0x27edfa;var _0x57a45e;this[_0x50f722(0x1dd)]['next'](_0x50f722(0x137)),(_0x57a45e=this[_0x50f722(0x166)])==null||_0x57a45e['dispose']();}[_0x27edfa(0x173)](){const _0x30d865=_0x27edfa;this[_0x30d865(0x1dd)][_0x30d865(0x164)](_0x30d865(0x1bd)),this[_0x30d865(0x1d0)]();}},_0x1aa668[_0x27edfa(0x118)]=_0x2ebb4d([_0x446061(0x2,_0x544c92[_0x27edfa(0x1b4)]),_0x446061(0x3,_0x544c92['Inject'](_0x181d67)),_0x446061(0x4,_0x544c92[_0x27edfa(0x145)])],_0x1aa668[_0x27edfa(0x118)]);function _0x8c856f(){const _0xd4f43c=_0x27edfa,_0x526359=_0x4e5103[_0xd4f43c(0x127)](_0x1aa668[_0xd4f43c(0x13d)]),_0x1ea60e=_0x4e5103[_0xd4f43c(0x127)](_0x544c92[_0xd4f43c(0x16f)]),_0x461c7b=_0x4e5103[_0xd4f43c(0x136)](()=>_0x1ea60e[_0xd4f43c(0x13e)](_0x544c92['UniverInstanceType'][_0xd4f43c(0x168)]),void 0x0,!0x1,[]),[_0x1a6d44,_0x1d5566]=_0x51f070[_0xd4f43c(0x11d)](null),[_0x226fe9,_0x5dcb82]=_0x51f070[_0xd4f43c(0x11d)](_0x345d0f[_0xd4f43c(0x105)]),_0x5e8201=_0x51f070[_0xd4f43c(0x17e)](null);return _0x51f070['useEffect'](()=>(_0x461c7b&&_0x526359[_0xd4f43c(0xf7)](_0x461c7b[_0xd4f43c(0x1cd)]())['then'](_0x47a5b5=>{const _0x112bca=_0xd4f43c;_0x1d5566(_0x47a5b5),_0x5e8201[_0x112bca(0x19f)]=_0x47a5b5['status$'][_0x112bca(0x18c)](_0x3617dd=>{_0x5dcb82(_0x3617dd);});}),()=>{const _0x44d054=_0xd4f43c;var _0x1ddf02;(_0x1ddf02=_0x5e8201[_0x44d054(0x19f)])==null||_0x1ddf02[_0x44d054(0x140)](),_0x5e8201[_0x44d054(0x19f)]=null;}),[_0x461c7b,_0x526359]),_0x1a6d44?_0x135a27[_0xd4f43c(0x182)](_0x2666de[_0xd4f43c(0xfe)],{'align':_0xd4f43c(0x16d),'disabled':_0x226fe9===_0x345d0f['OFFLINE'],'className':_0xd4f43c(0x16e),'overlay':_0x135a27[_0xd4f43c(0x182)](_0x6677ff,{'status':_0x226fe9,'coordinator':_0x1a6d44}),'children':_0x135a27[_0xd4f43c(0x182)](_0xd4f43c(0x1d8),{'className':_0x2666de[_0xd4f43c(0x113)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x226fe9===_0x345d0f[_0xd4f43c(0x10c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x226fe9!==_0x345d0f[_0xd4f43c(0x10c)]}),'type':'button','children':_0x135a27[_0xd4f43c(0x182)](_0x45b447,{'className':_0xd4f43c(0x1cc)})})}):null;}function _0x6677ff(_0x3c40e1){const _0x5ba83b=_0x27edfa,{status:_0x1697e2,coordinator:_0x18610e}=_0x3c40e1;switch(_0x1697e2){case _0x345d0f[_0x5ba83b(0x105)]:return _0x135a27['jsx'](_0x4d4086,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x16a)]:return _0x135a27['jsx'](_0x1eb5c2,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x1c5)]:return _0x135a27[_0x5ba83b(0x182)](_0x310870,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x10c)]:return _0x135a27[_0x5ba83b(0x182)](_0x50b4dc,{});case _0x345d0f[_0x5ba83b(0x12e)]:return _0x135a27[_0x5ba83b(0x182)](_0x35127b,{'coordinator':_0x18610e});default:return null;}}function _0x4d4086(_0x4b7c6d){const _0xf4ea4f=_0x27edfa,{coordinator:_0x3123ca}=_0x4b7c6d;return _0x135a27[_0xf4ea4f(0x10d)](_0x135a27['Fragment'],{'children':[_0x135a27[_0xf4ea4f(0x182)](_0xf4ea4f(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xf4ea4f(0x189)}),_0x135a27[_0xf4ea4f(0x182)](_0x2666de[_0xf4ea4f(0x18b)],{'onClick':()=>_0x3123ca['tryStartPresenting'](),'children':_0xf4ea4f(0x147)})]});}function _0x1eb5c2(_0x3b0a7c){const _0x10120f=_0x27edfa,{coordinator:_0x47f664}=_0x3b0a7c;return _0x135a27[_0x10120f(0x10d)](_0x135a27['Fragment'],{'children':[_0x135a27[_0x10120f(0x182)](_0x10120f(0x160),{'className':_0x10120f(0x104),'children':_0x10120f(0x17f)}),_0x135a27[_0x10120f(0x182)](_0x2666de['Button'],{'onClick':()=>_0x47f664[_0x10120f(0x19b)](),'children':'Stop\x20following'})]});}function _0x310870(_0xf9c159){const _0x3aa904=_0x27edfa,{coordinator:_0x36cead}=_0xf9c159;return _0x135a27[_0x3aa904(0x10d)](_0x135a27[_0x3aa904(0xfb)],{'children':[_0x135a27['jsx'](_0x3aa904(0x160),{'className':_0x3aa904(0x104),'children':_0x3aa904(0x191)}),_0x135a27['jsx'](_0x2666de[_0x3aa904(0x18b)],{'variant':'text','onClick':()=>_0x36cead[_0x3aa904(0x1d1)](),'children':_0x3aa904(0x15a)})]});}function _0x35127b(_0x27889a){const _0x1e0292=_0x27edfa,{coordinator:_0x497251}=_0x27889a;return _0x135a27['jsxs'](_0x135a27['Fragment'],{'children':[_0x135a27[_0x1e0292(0x182)](_0x1e0292(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e0292(0x1bf)}),_0x135a27[_0x1e0292(0x182)](_0x2666de['Button'],{'variant':_0x1e0292(0x158),'onClick':()=>_0x497251[_0x1e0292(0x1d9)](),'children':_0x1e0292(0x1ce)})]});}function _0x50b4dc(){const _0x3e5e89=_0x27edfa;return _0x135a27[_0x3e5e89(0x182)](_0x135a27['Fragment'],{'children':_0x3e5e89(0x15b)});}var _0x557bf8=Object[_0x27edfa(0x11e)],_0x5cf6d3=(_0x4a00c1,_0xd1c378,_0x558e3e,_0x33ffa4)=>{const _0x3b37a0=_0x27edfa;for(var _0x5769a1=_0x33ffa4>0x1?void 0x0:_0x33ffa4?_0x557bf8(_0xd1c378,_0x558e3e):_0xd1c378,_0x3af4b6=_0x4a00c1[_0x3b37a0(0x1c4)]-0x1,_0x326b51;_0x3af4b6>=0x0;_0x3af4b6--)(_0x326b51=_0x4a00c1[_0x3af4b6])&&(_0x5769a1=_0x326b51(_0x5769a1)||_0x5769a1);return _0x5769a1;},_0x19f417=(_0x16063b,_0x1b3057)=>(_0x4f69ad,_0x35867a)=>_0x1b3057(_0x4f69ad,_0x35867a,_0x16063b);_0x1aa668['DesktopLiveShareController']=class extends _0x544c92[_0x27edfa(0x14a)]{constructor(_0x34668d,_0x5c718a){const _0x36a761=_0x27edfa;super(),this[_0x36a761(0x14f)]=_0x34668d,this[_0x36a761(0x11c)]=_0x5c718a,this[_0x36a761(0x146)]();}[_0x27edfa(0x146)](){const _0x3deaf1=_0x27edfa;this[_0x3deaf1(0x132)](this[_0x3deaf1(0x11c)][_0x3deaf1(0x13a)](_0x4e5103['BuiltInUIPart']['HEADER_MENU'],()=>_0x4e5103[_0x3deaf1(0x188)](_0x8c856f,this[_0x3deaf1(0x14f)])));}},_0x1aa668[_0x27edfa(0x184)]=_0x5cf6d3([_0x19f417(0x0,_0x544c92[_0x27edfa(0x11a)](_0x544c92[_0x27edfa(0x16c)])),_0x19f417(0x1,_0x4e5103[_0x27edfa(0x170)])],_0x1aa668[_0x27edfa(0x184)]);const _0x28dbf1='live-share.config',_0x4e0a9f={};var _0x2d9fb7=Object['getOwnPropertyDescriptor'],_0x42bd93=(_0x22c882,_0x829d1f,_0x2ceaf4,_0x31da85)=>{const _0x29be32=_0x27edfa;for(var _0xc480a7=_0x31da85>0x1?void 0x0:_0x31da85?_0x2d9fb7(_0x829d1f,_0x2ceaf4):_0x829d1f,_0x49afd4=_0x22c882[_0x29be32(0x1c4)]-0x1,_0x375e9d;_0x49afd4>=0x0;_0x49afd4--)(_0x375e9d=_0x22c882[_0x49afd4])&&(_0xc480a7=_0x375e9d(_0xc480a7)||_0xc480a7);return _0xc480a7;},_0x40fdb6=(_0x338ecb,_0x3b2b59)=>(_0x8f10ab,_0x41f795)=>_0x3b2b59(_0x8f10ab,_0x41f795,_0x338ecb);let _0x963f67=class extends _0x544c92[_0x27edfa(0x14a)]{constructor(_0x3a7dac){const _0x50bb06=_0x27edfa;super(),this[_0x50bb06(0x14d)]=_0x3a7dac,this[_0x50bb06(0x112)]();}[_0x27edfa(0x112)](){const _0x5cd289=_0x27edfa;[_0x4f2758[_0x5cd289(0x148)]['id'],_0x4f2758[_0x5cd289(0xf5)]['id'],_0x336bc0['SetWorksheetActiveOperation']['id']][_0x5cd289(0x144)](_0x345b4d=>{const _0xcef1cb=_0x5cd289;this[_0xcef1cb(0x132)](this[_0xcef1cb(0x14d)][_0xcef1cb(0x138)](_0x345b4d));});}};_0x963f67=_0x42bd93([_0x40fdb6(0x0,_0x544c92[_0x27edfa(0x11a)](_0x181d67))],_0x963f67);var _0x27a270=Object[_0x27edfa(0x1ba)],_0x5e476d=Object['getOwnPropertyDescriptor'],_0xa8ddab=(_0x42d122,_0x1d8274,_0x392d)=>_0x1d8274 in _0x42d122?_0x27a270(_0x42d122,_0x1d8274,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x392d}):_0x42d122[_0x1d8274]=_0x392d,_0xa3be9d=(_0x35f93e,_0x3f27b8,_0x31231a,_0x1c2588)=>{for(var _0x4ccd04=_0x1c2588>0x1?void 0x0:_0x1c2588?_0x5e476d(_0x3f27b8,_0x31231a):_0x3f27b8,_0x4ff977=_0x35f93e['length']-0x1,_0xea8e72;_0x4ff977>=0x0;_0x4ff977--)(_0xea8e72=_0x35f93e[_0x4ff977])&&(_0x4ccd04=_0xea8e72(_0x4ccd04)||_0x4ccd04);return _0x4ccd04;},_0x2c5e26=(_0x32aa1e,_0x41ac8a)=>(_0x4eb229,_0x240e67)=>_0x41ac8a(_0x4eb229,_0x240e67,_0x32aa1e),_0x4ea8dc=(_0x1eceef,_0x10f88a,_0x125d7b)=>_0xa8ddab(_0x1eceef,typeof _0x10f88a!=_0x27edfa(0x15d)?_0x10f88a+'':_0x10f88a,_0x125d7b);const _0x502067=_0x27edfa(0xf4);_0x1aa668['UniverLiveSharePlugin']=class extends _0x544c92[_0x27edfa(0x196)]{constructor(_0x34dbfa=_0x4e0a9f,_0x1f4a8a,_0x121ce7){const _0xa06059=_0x27edfa;super(),this['_config']=_0x34dbfa,this[_0xa06059(0x14f)]=_0x1f4a8a,this[_0xa06059(0x1b6)]=_0x121ce7;const {..._0x256ebb}=_0x544c92[_0xa06059(0x1a2)]({},_0x4e0a9f,this[_0xa06059(0x187)]);this[_0xa06059(0x1b6)][_0xa06059(0x1a5)](_0x28dbf1,_0x256ebb);}[_0x27edfa(0x135)](){const _0x5e7707=_0x27edfa;_0x544c92[_0x5e7707(0x109)](this[_0x5e7707(0x14f)],_0x544c92[_0x5e7707(0x1d4)]([[_0x181d67],[_0x1aa668['LiveShareController']],[_0x963f67],[_0x1aa668[_0x5e7707(0x184)]]],this[_0x5e7707(0x187)][_0x5e7707(0x1cf)])),_0x544c92[_0x5e7707(0x1a3)](this[_0x5e7707(0x14f)],[[_0x963f67]]);}['onRendered'](){const _0x519d67=_0x27edfa;_0x544c92[_0x519d67(0x1a3)](this['_injector'],[[_0x1aa668[_0x519d67(0x184)]]]);}},_0x4ea8dc(_0x1aa668['UniverLiveSharePlugin'],_0x27edfa(0x108),_0x544c92['UniverInstanceType'][_0x27edfa(0x134)]),_0x4ea8dc(_0x1aa668[_0x27edfa(0x12a)],_0x27edfa(0x103),_0x502067),_0x1aa668[_0x27edfa(0x12a)]=_0xa3be9d([_0x544c92['DependentOn'](_0x1171e0[_0x27edfa(0x1ae)]),_0x2c5e26(0x1,_0x544c92[_0x27edfa(0x11a)](_0x544c92['Injector'])),_0x2c5e26(0x2,_0x544c92[_0x27edfa(0x1b4)])],_0x1aa668[_0x27edfa(0x12a)]),_0x1aa668[_0x27edfa(0x198)]=_0x8c856f,_0x1aa668['LiveShareService']=_0x181d67,_0x1aa668['LiveShareStatus']=_0x345d0f,Object[_0x27edfa(0x1ba)](_0x1aa668,Symbol[_0x27edfa(0x14e)],{'value':_0x27edfa(0x15c)});}));
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",
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",
61
+ "@univerjs-pro/collaboration-client": "0.12.2",
62
+ "@univerjs/design": "0.12.2",
63
+ "@univerjs/core": "0.12.2",
64
+ "@univerjs/engine-render": "0.12.2",
65
+ "@univerjs/sheets": "0.12.2",
66
+ "@univerjs/sheets-ui": "0.12.2",
67
+ "@univerjs/ui": "0.12.2"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -74,8 +74,8 @@
74
74
  "typescript": "^5.9.3",
75
75
  "vite": "^7.2.2",
76
76
  "vitest": "^3.2.4",
77
- "@univerjs/protocol": "0.1.47",
78
- "@univerjs-infra/shared": "0.12.1"
77
+ "@univerjs-infra/shared": "0.12.2",
78
+ "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",