@univerjs-pro/live-share 0.15.0-insiders.20260107-3441c7a → 0.15.0-insiders.20260108-47c73e3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x3bb2(){const _0x68999=['_injector','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','836220BBsoWM','SetScrollOperation','startFollowing','FRange','14408MKfqoR','1177975sitrvk','getActiveWorkbook','extend','get','syncExecuteCommand','tryStartPresenting','303730LQiIqc','getId','FEnum','34859MmFQDN','getUnitId','stopFollowing','getSheetId','33468zZmirW','LiveShareStatusEnum','144RnzZQd','144222cZpldZ','startPresenting','LiveShareController','getStatus','startRow','FUniver','executeCommand','LiveShareStatus','No\x20active\x20workbook\x20found.'];_0x3bb2=function(){return _0x68999;};return _0x3bb2();}const _0x531d44=_0x5615;(function(_0x10a67a,_0x3f4810){const _0x110167=_0x5615,_0x39163a=_0x10a67a();while(!![]){try{const _0x22d1ac=parseInt(_0x110167(0x1f4))/0x1+-parseInt(_0x110167(0x207))/0x2+parseInt(_0x110167(0x1fa))/0x3*(parseInt(_0x110167(0x1f8))/0x4)+parseInt(_0x110167(0x1eb))/0x5+parseInt(_0x110167(0x1fb))/0x6+-parseInt(_0x110167(0x1f1))/0x7+-parseInt(_0x110167(0x1ea))/0x8;if(_0x22d1ac===_0x3f4810)break;else _0x39163a['push'](_0x39163a['shift']());}catch(_0x162d65){_0x39163a['push'](_0x39163a['shift']());}}}(_0x3bb2,0x38d66));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[_0x531d44(0x1e9)]{['_initialize'](_0x34e6ea,_0xf299e9,_0x5cdc1,_0x2c4fd4,_0x5ec672){const _0x32ce9e=_0x531d44,_0x70d915=_0x34e6ea[_0x32ce9e(0x1ee)](n[_0x32ce9e(0x1fd)]),_0x28b62d=_0x34e6ea[_0x32ce9e(0x1ee)](g['IRenderManagerService']),_0x468743=_0xf299e9['getUnitId'](),_0x2404d2=_0xf299e9['getActiveSheet'](),_0x35abc7=_0x70d915[_0x32ce9e(0x205)](_0x468743);(_0x35abc7==null?void 0x0:_0x35abc7['getStatus']())!==n['LiveShareStatus']['PRESENTING']||(_0x5cdc1['getSheetId']()!==_0x2404d2[_0x32ce9e(0x1f7)]()&&this['_commandService'][_0x32ce9e(0x201)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x468743,'subUnitId':_0x5cdc1[_0x32ce9e(0x1f7)]()}),!_0x28b62d['getRenderById'](_0x468743))||_0x5ec672[_0x32ce9e(0x1ef)](f[_0x32ce9e(0x208)]['id'],{'unitId':_0xf299e9[_0x32ce9e(0x1f5)](),'sheetId':_0x5cdc1['getSheetId'](),'sheetViewStartRow':_0x2c4fd4[_0x32ce9e(0x1ff)],'sheetViewStartColumn':_0x2c4fd4['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x531d44(0x1e9)][_0x531d44(0x1ed)](w);function _0x5615(_0xee5cc8,_0x982139){_0xee5cc8=_0xee5cc8-0x1e8;const _0x3bb2f0=_0x3bb2();let _0x5615a9=_0x3bb2f0[_0xee5cc8];return _0x5615a9;}class C extends a[_0x531d44(0x200)]{['getLiveShareStatus'](){const _0x175f46=_0x531d44;var _0x2d7aa9,_0x16c3e0;const _0x5b6d57=this[_0x175f46(0x204)][_0x175f46(0x1ee)](n[_0x175f46(0x1fd)]),_0x2b50ba=(_0x2d7aa9=this[_0x175f46(0x1ec)]())==null?void 0x0:_0x2d7aa9[_0x175f46(0x1f2)]();if(!_0x2b50ba)throw new Error('No\x20active\x20workbook\x20found.');const _0x220efc=_0x5b6d57['getLiveShareCoordinatorSync'](_0x2b50ba);return(_0x16c3e0=_0x220efc==null?void 0x0:_0x220efc[_0x175f46(0x1fe)]())!=null?_0x16c3e0:n[_0x175f46(0x202)]['IDLE'];}['startFollowing'](){const _0x47d04d=_0x531d44;var _0xe1db39;const _0x40c162=this[_0x47d04d(0x204)][_0x47d04d(0x1ee)](n['LiveShareController']),_0xac0a34=(_0xe1db39=this[_0x47d04d(0x1ec)]())==null?void 0x0:_0xe1db39[_0x47d04d(0x1f2)]();if(!_0xac0a34)throw new Error(_0x47d04d(0x203));const _0x1342b6=_0x40c162[_0x47d04d(0x205)](_0xac0a34);if(!_0x1342b6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1342b6[_0x47d04d(0x1e8)]();}[_0x531d44(0x1f6)](){const _0x2675d1=_0x531d44;var _0x34afed;const _0x117ac8=this['_injector'][_0x2675d1(0x1ee)](n[_0x2675d1(0x1fd)]),_0x26a53e=(_0x34afed=this[_0x2675d1(0x1ec)]())==null?void 0x0:_0x34afed[_0x2675d1(0x1f2)]();if(!_0x26a53e)throw new Error(_0x2675d1(0x203));const _0x1b23a3=_0x117ac8['getLiveShareCoordinatorSync'](_0x26a53e);if(!_0x1b23a3)throw new Error(_0x2675d1(0x206));_0x1b23a3[_0x2675d1(0x1f6)]();}[_0x531d44(0x1fc)](){const _0x2533a5=_0x531d44;var _0x2144fb;const _0x5692d9=this['_injector'][_0x2533a5(0x1ee)](n[_0x2533a5(0x1fd)]),_0x22a04f=(_0x2144fb=this[_0x2533a5(0x1ec)]())==null?void 0x0:_0x2144fb[_0x2533a5(0x1f2)]();if(!_0x22a04f)throw new Error(_0x2533a5(0x203));const _0x1de0be=_0x5692d9[_0x2533a5(0x205)](_0x22a04f);if(!_0x1de0be)throw new Error(_0x2533a5(0x206));_0x1de0be[_0x2533a5(0x1f0)]();}['stopPresenting'](){const _0x215a1e=_0x531d44;var _0x371e20;const _0x4893c8=this['_injector'][_0x215a1e(0x1ee)](n[_0x215a1e(0x1fd)]),_0x41adf9=(_0x371e20=this[_0x215a1e(0x1ec)]())==null?void 0x0:_0x371e20['getId']();if(!_0x41adf9)throw new Error(_0x215a1e(0x203));const _0xc15524=_0x4893c8[_0x215a1e(0x205)](_0x41adf9);if(!_0xc15524)throw new Error(_0x215a1e(0x206));_0xc15524['stopPresenting']();}}a[_0x531d44(0x200)][_0x531d44(0x1ed)](C);class L extends a[_0x531d44(0x1f3)]{get[_0x531d44(0x1f9)](){const _0xa08a3d=_0x531d44;return n[_0xa08a3d(0x202)];}}a[_0x531d44(0x1f3)][_0x531d44(0x1ed)](L);
1
+ 'use strict';const _0x1259c2=_0x128a;(function(_0x10b5c3,_0x39e9d8){const _0x24ccc3=_0x128a,_0x157c0a=_0x10b5c3();while(!![]){try{const _0x5d2e15=parseInt(_0x24ccc3(0x1d3))/0x1+-parseInt(_0x24ccc3(0x1de))/0x2*(-parseInt(_0x24ccc3(0x1c5))/0x3)+-parseInt(_0x24ccc3(0x1c2))/0x4+parseInt(_0x24ccc3(0x1bf))/0x5+-parseInt(_0x24ccc3(0x1cd))/0x6+parseInt(_0x24ccc3(0x1d0))/0x7*(parseInt(_0x24ccc3(0x1d9))/0x8)+-parseInt(_0x24ccc3(0x1c8))/0x9*(parseInt(_0x24ccc3(0x1cc))/0xa);if(_0x5d2e15===_0x39e9d8)break;else _0x157c0a['push'](_0x157c0a['shift']());}catch(_0xf2a444){_0x157c0a['push'](_0x157c0a['shift']());}}}(_0x4695,0x3fd83));function _0x4695(){const _0x499f35=['executeCommand','9219fuRiWN','getActiveSheet','LiveShareController','93SUMMbY','PRESENTING','stopFollowing','getId','syncExecuteCommand','extend','1928hcwNmn','getLiveShareCoordinatorSync','FUniver','getSheetId','getLiveShareStatus','1642kNxQwE','FRange','stopPresenting','tryStartPresenting','startRow','startFollowing','getRenderById','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','1573440VkTSQr','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveWorkbook','419752ImbOwH','IRenderManagerService','get','783ZWJLAm','IDLE','SetWorksheetActiveOperation','9lpPMtE','_initialize','getStatus','_injector','2348480YDhFHW','1470996SqdntB','LiveShareStatus'];_0x4695=function(){return _0x499f35;};return _0x4695();}function _0x128a(_0x2155f2,_0x10c032){_0x2155f2=_0x2155f2-0x1bc;const _0x469548=_0x4695();let _0x128ac3=_0x469548[_0x2155f2];return _0x128ac3;}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[_0x1259c2(0x1df)]{[_0x1259c2(0x1c9)](_0x8eec8d,_0x106ea5,_0x21a33d,_0x56cb86,_0x200f9c){const _0x507eea=_0x1259c2,_0x519425=_0x8eec8d[_0x507eea(0x1c4)](n[_0x507eea(0x1d2)]),_0xbc46a0=_0x8eec8d[_0x507eea(0x1c4)](g[_0x507eea(0x1c3)]),_0x539f7c=_0x106ea5['getUnitId'](),_0x311c5c=_0x106ea5[_0x507eea(0x1d1)](),_0x2612b7=_0x519425['getLiveShareCoordinatorSync'](_0x539f7c);(_0x2612b7==null?void 0x0:_0x2612b7[_0x507eea(0x1ca)]())!==n[_0x507eea(0x1ce)][_0x507eea(0x1d4)]||(_0x21a33d[_0x507eea(0x1dc)]()!==_0x311c5c[_0x507eea(0x1dc)]()&&this['_commandService'][_0x507eea(0x1cf)](u[_0x507eea(0x1c7)]['id'],{'unitId':_0x539f7c,'subUnitId':_0x21a33d['getSheetId']()}),!_0xbc46a0[_0x507eea(0x1bc)](_0x539f7c))||_0x200f9c[_0x507eea(0x1d7)](f['SetScrollOperation']['id'],{'unitId':_0x106ea5['getUnitId'](),'sheetId':_0x21a33d['getSheetId'](),'sheetViewStartRow':_0x56cb86[_0x507eea(0x1e2)],'sheetViewStartColumn':_0x56cb86['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x1259c2(0x1df)][_0x1259c2(0x1d8)](w);class C extends a[_0x1259c2(0x1db)]{[_0x1259c2(0x1dd)](){const _0x5e3b71=_0x1259c2;var _0x2d7de1,_0x4a76fa;const _0x23f6a0=this['_injector'][_0x5e3b71(0x1c4)](n[_0x5e3b71(0x1d2)]),_0x4bfa62=(_0x2d7de1=this['getActiveWorkbook']())==null?void 0x0:_0x2d7de1['getId']();if(!_0x4bfa62)throw new Error(_0x5e3b71(0x1be));const _0x1a49bf=_0x23f6a0[_0x5e3b71(0x1da)](_0x4bfa62);return(_0x4a76fa=_0x1a49bf==null?void 0x0:_0x1a49bf['getStatus']())!=null?_0x4a76fa:n[_0x5e3b71(0x1ce)][_0x5e3b71(0x1c6)];}[_0x1259c2(0x1e3)](){const _0x960f2d=_0x1259c2;var _0x11afe0;const _0x4ac7a9=this[_0x960f2d(0x1cb)][_0x960f2d(0x1c4)](n['LiveShareController']),_0x4ecc3f=(_0x11afe0=this['getActiveWorkbook']())==null?void 0x0:_0x11afe0[_0x960f2d(0x1d6)]();if(!_0x4ecc3f)throw new Error(_0x960f2d(0x1be));const _0x366988=_0x4ac7a9[_0x960f2d(0x1da)](_0x4ecc3f);if(!_0x366988)throw new Error(_0x960f2d(0x1c0));_0x366988[_0x960f2d(0x1e3)]();}[_0x1259c2(0x1d5)](){const _0x3ba272=_0x1259c2;var _0x50bb4c;const _0x4b3c0a=this[_0x3ba272(0x1cb)][_0x3ba272(0x1c4)](n[_0x3ba272(0x1d2)]),_0x3e5c11=(_0x50bb4c=this[_0x3ba272(0x1c1)]())==null?void 0x0:_0x50bb4c[_0x3ba272(0x1d6)]();if(!_0x3e5c11)throw new Error(_0x3ba272(0x1be));const _0x40d9fa=_0x4b3c0a['getLiveShareCoordinatorSync'](_0x3e5c11);if(!_0x40d9fa)throw new Error(_0x3ba272(0x1c0));_0x40d9fa[_0x3ba272(0x1d5)]();}['startPresenting'](){const _0x3a688f=_0x1259c2;var _0x52b283;const _0x195cec=this[_0x3a688f(0x1cb)][_0x3a688f(0x1c4)](n[_0x3a688f(0x1d2)]),_0x135530=(_0x52b283=this[_0x3a688f(0x1c1)]())==null?void 0x0:_0x52b283[_0x3a688f(0x1d6)]();if(!_0x135530)throw new Error('No\x20active\x20workbook\x20found.');const _0x3ac5bd=_0x195cec[_0x3a688f(0x1da)](_0x135530);if(!_0x3ac5bd)throw new Error(_0x3a688f(0x1c0));_0x3ac5bd[_0x3a688f(0x1e1)]();}[_0x1259c2(0x1e0)](){const _0x102e53=_0x1259c2;var _0x44f4dd;const _0x53c3c0=this[_0x102e53(0x1cb)][_0x102e53(0x1c4)](n[_0x102e53(0x1d2)]),_0x38cbfc=(_0x44f4dd=this[_0x102e53(0x1c1)]())==null?void 0x0:_0x44f4dd[_0x102e53(0x1d6)]();if(!_0x38cbfc)throw new Error(_0x102e53(0x1be));const _0x3a787f=_0x53c3c0[_0x102e53(0x1da)](_0x38cbfc);if(!_0x3a787f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3a787f[_0x102e53(0x1e0)]();}}a[_0x1259c2(0x1db)]['extend'](C);class L extends a['FEnum']{get[_0x1259c2(0x1bd)](){const _0x42b7a9=_0x1259c2;return n[_0x42b7a9(0x1ce)];}}a['FEnum'][_0x1259c2(0x1d8)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x6be33=_0x3402;(function(_0x2cce31,_0xb95da9){const _0x2e9f4a=_0x3402,_0x43f5f4=_0x2cce31();while(!![]){try{const _0x4d5c0e=parseInt(_0x2e9f4a(0x21e))/0x1+-parseInt(_0x2e9f4a(0x25a))/0x2*(parseInt(_0x2e9f4a(0x22f))/0x3)+parseInt(_0x2e9f4a(0x1da))/0x4+-parseInt(_0x2e9f4a(0x1d7))/0x5+parseInt(_0x2e9f4a(0x1bc))/0x6+-parseInt(_0x2e9f4a(0x1f9))/0x7*(parseInt(_0x2e9f4a(0x1b1))/0x8)+parseInt(_0x2e9f4a(0x1e1))/0x9*(parseInt(_0x2e9f4a(0x259))/0xa);if(_0x4d5c0e===_0xb95da9)break;else _0x43f5f4['push'](_0x43f5f4['shift']());}catch(_0x13894d){_0x43f5f4['push'](_0x43f5f4['shift']());}}}(_0x3ba1,0xc610e));var T=Object[_0x6be33(0x1c8)],U=(_0x4925d7,_0x4ada07,_0x452c42)=>_0x4ada07 in _0x4925d7?T(_0x4925d7,_0x4ada07,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x452c42}):_0x4925d7[_0x4ada07]=_0x452c42,_=(_0x2d0a01,_0x4c0bf6,_0xcf080f)=>U(_0x2d0a01,typeof _0x4c0bf6!=_0x6be33(0x23d)?_0x4c0bf6+'':_0x4c0bf6,_0xcf080f);Object[_0x6be33(0x1c8)](exports,Symbol[_0x6be33(0x220)],{'value':_0x6be33(0x1eb)});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:_0x11400b,..._0x31bf2d}){const _0x3c54b2=_0x6be33,{icon:_0x338229,id:_0x45e81d,className:_0x45a739,extend:_0x53a4ef,..._0x1f39e9}=_0x31bf2d,_0x3bec7a=(_0x3c54b2(0x1db)+_0x45e81d+'\x20'+(_0x45a739||''))['trim'](),_0xb5932d=v[_0x3c54b2(0x24f)]('_'+H());return j(_0x338229,''+_0x45e81d,{'defIds':_0x338229[_0x3c54b2(0x1de)],'idSuffix':_0xb5932d[_0x3c54b2(0x241)]},{'ref':_0x11400b,'className':_0x3bec7a,..._0x1f39e9},_0x53a4ef);}function j(_0x3dcc7e,_0xcdd5a0,_0x38c590,_0x194d06,_0x165d0d){const _0x573b2f=_0x6be33;return v[_0x573b2f(0x25c)](_0x3dcc7e['tag'],{'key':_0xcdd5a0,...y(_0x3dcc7e,_0x38c590,_0x165d0d),..._0x194d06},(F(_0x3dcc7e,_0x38c590)[_0x573b2f(0x1ca)]||[])[_0x573b2f(0x198)]((_0x23dfaf,_0x4080ba)=>j(_0x23dfaf,_0xcdd5a0+'-'+_0x3dcc7e[_0x573b2f(0x256)]+'-'+_0x4080ba,_0x38c590,void 0x0,_0x165d0d)));}function y(_0xedc04b,_0x2044be,_0x431cf1){const _0x10e20c=_0x6be33,_0x48eb95={..._0xedc04b[_0x10e20c(0x206)]};_0x431cf1!=null&&_0x431cf1['colorChannel1']&&_0x48eb95['fill']===_0x10e20c(0x207)&&(_0x48eb95[_0x10e20c(0x1fb)]=_0x431cf1[_0x10e20c(0x207)]),_0xedc04b[_0x10e20c(0x256)]===_0x10e20c(0x1b7)&&_0x48eb95['id']&&(_0x48eb95['id']=_0x48eb95['id']+_0x2044be['idSuffix']),Object[_0x10e20c(0x1a7)](_0x48eb95)[_0x10e20c(0x1a5)](([_0x18b9d5,_0x4664e1])=>{const _0x56df68=_0x10e20c;_0x18b9d5===_0x56df68(0x1b7)&&typeof _0x4664e1=='string'&&(_0x48eb95[_0x18b9d5]=_0x4664e1[_0x56df68(0x1d5)](/url\(#(.*)\)/,_0x56df68(0x22b)+_0x2044be['idSuffix']+')'));});const {defIds:_0x7f176a}=_0x2044be;return!_0x7f176a||_0x7f176a[_0x10e20c(0x267)]===0x0||(_0xedc04b[_0x10e20c(0x256)]===_0x10e20c(0x233)&&_0x48eb95[_0x10e20c(0x21b)]&&(_0x48eb95[_0x10e20c(0x21b)]=_0x48eb95['xlink:href']+_0x2044be[_0x10e20c(0x1ab)]),Object[_0x10e20c(0x1a7)](_0x48eb95)[_0x10e20c(0x1a5)](([_0x47578b,_0x22446b])=>{const _0x4a3df7=_0x10e20c;typeof _0x22446b==_0x4a3df7(0x235)&&(_0x48eb95[_0x47578b]=_0x22446b['replace'](/url\(#(.*)\)/,_0x4a3df7(0x22b)+_0x2044be[_0x4a3df7(0x1ab)]+')'));})),_0x48eb95;}function F(_0x117ccc,_0xa4abd1){const _0x1680c7=_0x6be33;var _0x4d93b2;const {defIds:_0xfee9aa}=_0xa4abd1;return!_0xfee9aa||_0xfee9aa[_0x1680c7(0x267)]===0x0?_0x117ccc:_0x117ccc[_0x1680c7(0x256)]===_0x1680c7(0x1fa)&&((_0x4d93b2=_0x117ccc['children'])!=null&&_0x4d93b2[_0x1680c7(0x267)])?{..._0x117ccc,'children':_0x117ccc[_0x1680c7(0x1ca)][_0x1680c7(0x198)](_0x3a07a9=>typeof _0x3a07a9['attrs']['id']==_0x1680c7(0x235)&&_0xfee9aa&&_0xfee9aa[_0x1680c7(0x197)](_0x3a07a9[_0x1680c7(0x206)]['id'])?{..._0x3a07a9,'attrs':{..._0x3a07a9['attrs'],'id':_0x3a07a9[_0x1680c7(0x206)]['id']+_0xa4abd1[_0x1680c7(0x1ab)]}}:_0x3a07a9)}:_0x117ccc;}function H(){const _0x5709db=_0x6be33;return Math[_0x5709db(0x1b2)]()['toString'](0x24)['substring'](0x2,0x8);}x[_0x6be33(0x232)]=_0x6be33(0x1c1);const V={'tag':_0x6be33(0x1dc),'attrs':{'xmlns':_0x6be33(0x205),'fill':_0x6be33(0x1b0),'viewBox':_0x6be33(0x237),'width':'1em','height':'1em'},'children':[{'tag':_0x6be33(0x1e5),'attrs':{'fill':_0x6be33(0x20f),'d':_0x6be33(0x211)}},{'tag':_0x6be33(0x1e5),'attrs':{'fill':_0x6be33(0x20f),'d':_0x6be33(0x1b5),'fillRule':_0x6be33(0x249),'clipRule':_0x6be33(0x249)}}]},R=v['forwardRef'](function(_0x547c5f,_0x1d5533){const _0x14b889=_0x6be33;return v[_0x14b889(0x25c)](x,Object[_0x14b889(0x1a6)]({},_0x547c5f,{'id':_0x14b889(0x1d6),'ref':_0x1d5533,'icon':V}));});R[_0x6be33(0x232)]=_0x6be33(0x1a0);class E extends o['Disposable']{constructor(){const _0x49b52c=_0x6be33;super(...arguments),_(this,_0x49b52c(0x247),new Set()),_(this,_0x49b52c(0x231),new Set());}[_0x6be33(0x1df)](_0x14a4ae){const _0x17f494=_0x6be33;return this[_0x17f494(0x247)]['add'](_0x14a4ae),o[_0x17f494(0x1c2)](()=>this['_sharedOperations']['delete'](_0x14a4ae));}['registerInitialStateReporter'](_0x65e003){const _0x2f5bc2=_0x6be33;return this[_0x2f5bc2(0x231)][_0x2f5bc2(0x1e3)](_0x65e003),o['toDisposable'](()=>this['_reporters'][_0x2f5bc2(0x1c7)](_0x65e003));}[_0x6be33(0x202)](_0x43fa10){const _0x259563=_0x6be33;return this[_0x259563(0x247)][_0x259563(0x20b)](_0x43fa10);}[_0x6be33(0x1f0)](_0x50456c){const _0xfd2584=_0x6be33;return Array['from'](this[_0xfd2584(0x231)])[_0xfd2584(0x198)](_0x17e0c6=>_0x17e0c6(_0x50456c));}}var M=Object[_0x6be33(0x253)],P=(_0x47a9c0,_0x5027b3,_0x34dcc4,_0x5924f4)=>{const _0x4ec086=_0x6be33;for(var _0x13f438=_0x5924f4>0x1?void 0x0:_0x5924f4?M(_0x5027b3,_0x34dcc4):_0x5027b3,_0x56b025=_0x47a9c0[_0x4ec086(0x267)]-0x1,_0x3bfeba;_0x56b025>=0x0;_0x56b025--)(_0x3bfeba=_0x47a9c0[_0x56b025])&&(_0x13f438=_0x3bfeba(_0x13f438)||_0x13f438);return _0x13f438;},S=(_0x560423,_0x18a963)=>(_0x17e7e0,_0x83732)=>_0x18a963(_0x17e7e0,_0x83732,_0x560423);exports[_0x6be33(0x1d4)]=class extends o[_0x6be33(0x26e)]{constructor(_0x260b0c,_0x531775,_0x16cec6){const _0x3ef5d2=_0x6be33;super(),_(this,_0x3ef5d2(0x1d0),new Map()),(this['_univerInstanceService']=_0x260b0c,this[_0x3ef5d2(0x1b9)]=_0x531775,this[_0x3ef5d2(0x1c9)]=_0x16cec6,this[_0x3ef5d2(0x239)]());}async[_0x6be33(0x22a)](_0x402faa){const _0x4f1b54=_0x6be33;return this[_0x4f1b54(0x1d0)][_0x4f1b54(0x20b)](_0x402faa)||await this[_0x4f1b54(0x213)](_0x402faa),this[_0x4f1b54(0x1d0)][_0x4f1b54(0x1c0)](_0x402faa);}['getLiveShareCoordinatorSync'](_0x274894){const _0x14677a=_0x6be33;var _0x919dc8;return(_0x919dc8=this[_0x14677a(0x1d0)]['get'](_0x274894))!=null?_0x919dc8:null;}[_0x6be33(0x239)](){const _0x56d708=_0x6be33;this[_0x56d708(0x1ff)][_0x56d708(0x23b)](o[_0x56d708(0x1cb)][_0x56d708(0x23a)])[_0x56d708(0x1fe)](I[_0x56d708(0x223)](this[_0x56d708(0x210)]))[_0x56d708(0x1ba)](async _0x3ac7dc=>{const _0x338428=_0x56d708,_0x345e1b=_0x3ac7dc[_0x338428(0x224)]();this[_0x338428(0x1d0)][_0x338428(0x20b)](_0x345e1b)||this[_0x338428(0x213)](_0x345e1b);}),this[_0x56d708(0x1ff)][_0x56d708(0x219)](o['UniverInstanceType'][_0x56d708(0x23a)])['pipe'](I[_0x56d708(0x223)](this[_0x56d708(0x210)]))[_0x56d708(0x1ba)](_0x317fea=>{const _0x2b1417=_0x56d708,_0x2ee220=_0x317fea[_0x2b1417(0x224)](),_0x498bac=this[_0x2b1417(0x1d0)][_0x2b1417(0x1c0)](_0x2ee220);_0x498bac==null||_0x498bac['dispose']();});}async[_0x6be33(0x213)](_0x150157){const _0x42f68c=_0x6be33,_0x2a4c47=await this[_0x42f68c(0x1c9)]['requireSession'](_0x150157),_0x427e65=this['_injector'][_0x42f68c(0x1bf)](exports[_0x42f68c(0x238)],_0x150157,_0x2a4c47);return _0x427e65[_0x42f68c(0x1a8)](),this[_0x42f68c(0x1d0)][_0x42f68c(0x1b6)](_0x150157,_0x427e65),_0x427e65;}},exports[_0x6be33(0x1d4)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x6be33(0x22e)](o[_0x6be33(0x25f)])),S(0x2,o[_0x6be33(0x22e)](b['CollaborationSessionService']))],exports[_0x6be33(0x1d4)]);var u=(_0x2a5809=>(_0x2a5809[_0x6be33(0x25e)]='offline',_0x2a5809[_0x6be33(0x201)]='idle',_0x2a5809[_0x6be33(0x266)]='following',_0x2a5809['NOT_FOLLOWING']=_0x6be33(0x21c),_0x2a5809[_0x6be33(0x21f)]=_0x6be33(0x240),_0x2a5809))(u||{});const k=_0x6be33(0x20d),q=0xc8;exports[_0x6be33(0x238)]=class extends o[_0x6be33(0x26e)]{constructor(_0x456554,_0x448d3d,_0x279232,_0x13182f,_0x562322){const _0x5df246=_0x6be33;super(),_(this,_0x5df246(0x1bd),new O[(_0x5df246(0x22c))](_0x5df246(0x196))),_(this,_0x5df246(0x1d1),this['_status$'][_0x5df246(0x1bb)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this['_unitID']=_0x456554,this[_0x5df246(0x1b3)]=_0x448d3d,this[_0x5df246(0x20e)]=_0x279232,this[_0x5df246(0x1ce)]=_0x13182f,this[_0x5df246(0x1f7)]=_0x562322);}get[_0x6be33(0x258)](){const _0xfe86d8=_0x6be33;return this[_0xfe86d8(0x1bd)][_0xfe86d8(0x1dd)]();}[_0x6be33(0x26d)](){const _0x1b8b4d=_0x6be33;var _0x3d195c;(_0x3d195c=this['_commandDisposable'])==null||_0x3d195c['dispose'](),this[_0x1b8b4d(0x1bd)][_0x1b8b4d(0x1e7)]('idle'),this[_0x1b8b4d(0x1bd)][_0x1b8b4d(0x1a4)]();}[_0x6be33(0x1fd)](){return this['_status'];}[_0x6be33(0x1a8)](){const _0x5f0ef9=_0x6be33;this[_0x5f0ef9(0x239)]||(this[_0x5f0ef9(0x239)]=!0x0,this[_0x5f0ef9(0x1b3)][_0x5f0ef9(0x1b8)][_0x5f0ef9(0x1fe)](I[_0x5f0ef9(0x223)](this[_0x5f0ef9(0x210)]))[_0x5f0ef9(0x1ba)](_0xfbe112=>{const _0x159379=_0x5f0ef9;switch(_0xfbe112){case b[_0x159379(0x215)][_0x159379(0x25e)]:this[_0x159379(0x1ec)]();break;case b[_0x159379(0x215)][_0x159379(0x1f8)]:this[_0x159379(0x24e)]();break;}}),this[_0x5f0ef9(0x1b3)]['event$']['pipe'](I[_0x5f0ef9(0x223)](this['dispose$']))[_0x5f0ef9(0x1ba)](_0x3d31ab=>{const _0x5c32f2=_0x5f0ef9,{eventID:_0x1f0ca2}=_0x3d31ab;switch(_0x1f0ca2){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x5c32f2(0x1f2)](_0x3d31ab);break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x1c4)]:this[_0x5c32f2(0x229)](_0x3d31ab);break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x244)]:this[_0x5c32f2(0x26a)]();break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x1f3)]:this[_0x5c32f2(0x1c3)](_0x3d31ab);break;}}));}[_0x6be33(0x1e2)](){const _0x1bd484=_0x6be33;this['_collabSession'][_0x1bd484(0x203)]({'eventID':d[_0x1bd484(0x236)][_0x1bd484(0x21d)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1bd484(0x19a)]()}},this[_0x1bd484(0x268)]);}[_0x6be33(0x264)](){const _0x215999=_0x6be33;this[_0x215999(0x258)]===_0x215999(0x240)&&(this[_0x215999(0x1bd)][_0x215999(0x1e7)]('idle'),this[_0x215999(0x1b3)][_0x215999(0x203)]({'eventID':d[_0x215999(0x236)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x215999(0x268)]));}['startFollowing'](){const _0x5c391b=_0x6be33;this[_0x5c391b(0x258)]==='not-following'&&(this['_status$'][_0x5c391b(0x1e7)]('following'),this['_startFollowing']());}[_0x6be33(0x225)](){const _0x2591cf=_0x6be33;this['_status']==='following'&&this[_0x2591cf(0x263)]();}[_0x6be33(0x1f2)](_0x310f69){const _0x50ab1c=_0x6be33,{presenter:_0x52b614}=_0x310f69['data'],_0x2255a0=this[_0x50ab1c(0x1b3)]['getMemberID']();this['_presenter']=_0x52b614,_0x52b614===_0x2255a0?(this[_0x50ab1c(0x263)](),this[_0x50ab1c(0x1ed)]()):this[_0x50ab1c(0x258)]!==_0x50ab1c(0x21c)&&(this[_0x50ab1c(0x1ee)](),this[_0x50ab1c(0x218)]());}[_0x6be33(0x1af)](){const _0x153f20=_0x6be33,_0x851603={'eventID':d[_0x153f20(0x236)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x153f20(0x1b3)][_0x153f20(0x203)](_0x851603,this['_unitID']);}[_0x6be33(0x26a)](){const _0xb021c4=_0x6be33;this['_presenter']=null,this[_0xb021c4(0x258)]!==_0xb021c4(0x240)&&this[_0xb021c4(0x1ae)]();}[_0x6be33(0x1c3)](_0x19bf1a){const _0x35aa1b=_0x6be33;if(this[_0x35aa1b(0x258)]===_0x35aa1b(0x257)&&this[_0x35aa1b(0x1a3)]===_0x19bf1a[_0x35aa1b(0x255)][_0x35aa1b(0x260)]){const _0x1c3451=d[_0x35aa1b(0x24c)](_0x19bf1a[_0x35aa1b(0x255)])[_0x35aa1b(0x25d)][_0x35aa1b(0x22d)]()['find'](_0x1223d0=>_0x1223d0['id']===C[_0x35aa1b(0x248)]['id']);if(_0x1c3451){const _0x56e10b=_0x1c3451[_0x35aa1b(0x1e8)][_0x35aa1b(0x204)],_0x2d311a=_0x1c3451[_0x35aa1b(0x1e8)][_0x35aa1b(0x216)]['id'];setTimeout(()=>{const _0xb02728=_0x35aa1b;this[_0xb02728(0x1f7)]['executeCommand'](C[_0xb02728(0x226)]['id'],{'unitId':_0x56e10b,'subUnitId':_0x2d311a},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x262ae6=_0x6be33;this[_0x262ae6(0x1bd)][_0x262ae6(0x1e7)](_0x262ae6(0x240));const _0x20dfd6=new Map(),_0x809032=this['_commandDisposable']=new o[(_0x262ae6(0x19d))]();_0x809032['add'](o[_0x262ae6(0x1c2)](()=>{const _0x458a2e=_0x262ae6;_0x20dfd6['forEach'](_0x34b1f2=>_0x34b1f2[_0x458a2e(0x1a4)]()),_0x20dfd6[_0x458a2e(0x24b)]();})),_0x809032['add'](this[_0x262ae6(0x1f7)][_0x262ae6(0x20c)](_0xbb99aa=>{const _0x26e6dc=_0x262ae6;var _0x3159fa;if(_0xbb99aa[_0x26e6dc(0x199)]!==o[_0x26e6dc(0x230)][_0x26e6dc(0x1a1)]||!this[_0x26e6dc(0x1ce)][_0x26e6dc(0x202)](_0xbb99aa['id']))return;const {id:_0x559ac3}=_0xbb99aa;let _0x375e43;_0x20dfd6[_0x26e6dc(0x20b)](_0x559ac3)?_0x375e43=_0x20dfd6['get'](_0x559ac3):(_0x375e43=new O[(_0x26e6dc(0x1e4))](),_0x20dfd6[_0x26e6dc(0x1b6)](_0x559ac3,_0x375e43),_0x375e43[_0x26e6dc(0x1fe)](I[_0x26e6dc(0x1e9)]((_0x3159fa=this['_configService'][_0x26e6dc(0x261)](k))!=null?_0x3159fa:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26e6dc(0x1ba)](_0x5dd222=>{const _0x324d20=_0x26e6dc;this[_0x324d20(0x1b3)][_0x324d20(0x203)]({'eventID':d[_0x324d20(0x236)][_0x324d20(0x1c4)],'data':{'unitID':this[_0x324d20(0x268)],'operations':{[_0x5dd222['id']]:{'id':_0x5dd222['id'],'params':JSON[_0x324d20(0x24a)](_0x5dd222[_0x324d20(0x1e8)])}}}},this[_0x324d20(0x268)]);})),_0x375e43['next'](_0xbb99aa);})),this['_liveShareService'][_0x262ae6(0x1f0)](this[_0x262ae6(0x268)])[_0x262ae6(0x1a5)](_0xc803c9=>this['_collabSession'][_0x262ae6(0x203)]({'eventID':d[_0x262ae6(0x236)][_0x262ae6(0x1c4)],'data':{'unitID':this[_0x262ae6(0x268)],'operations':{[_0xc803c9['id']]:{'id':_0xc803c9['id'],'params':JSON[_0x262ae6(0x24a)](_0xc803c9[_0x262ae6(0x1e8)])}}}},this[_0x262ae6(0x268)]));}[_0x6be33(0x1ee)](){const _0x37986c=_0x6be33;var _0x591079;this[_0x37986c(0x1bd)]['next'](_0x37986c(0x196)),(_0x591079=this[_0x37986c(0x1e6)])==null||_0x591079[_0x37986c(0x26d)](),this[_0x37986c(0x1e6)]=null;}[_0x6be33(0x218)](){const _0x349eb2=_0x6be33;var _0x4571c7;(_0x4571c7=this[_0x349eb2(0x1e6)])==null||_0x4571c7[_0x349eb2(0x26d)](),this['_status$'][_0x349eb2(0x1e7)](_0x349eb2(0x257));}[_0x6be33(0x1ae)](){const _0x5be756=_0x6be33;var _0xc02a95;this[_0x5be756(0x1bd)]['next'](_0x5be756(0x196)),(_0xc02a95=this[_0x5be756(0x1e6)])==null||_0xc02a95['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x47df77=_0x6be33;var _0x1db5ec;this['_status$'][_0x47df77(0x1e7)]('not-following'),(_0x1db5ec=this[_0x47df77(0x1e6)])==null||_0x1db5ec[_0x47df77(0x26d)]();}['_handleOperation'](_0x2e07b6){const _0x173d95=_0x6be33;if(['presenting',_0x173d95(0x21c),'offline']['includes'](this[_0x173d95(0x258)])||!_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x1f5)]||_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x1f5)]===this[_0x173d95(0x1b3)][_0x173d95(0x19a)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0x542531=_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x23e)];Object['values'](_0x542531)[_0x173d95(0x1a5)](_0x5a1db0=>{const _0x45b6e5=_0x173d95;this[_0x45b6e5(0x1f7)][_0x45b6e5(0x228)](_0x5a1db0['id'],_0x5a1db0[_0x45b6e5(0x1e8)]?JSON[_0x45b6e5(0x217)](_0x5a1db0[_0x45b6e5(0x1e8)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5133ff=_0x6be33;var _0x133b22;this[_0x5133ff(0x1bd)][_0x5133ff(0x1e7)](_0x5133ff(0x208)),(_0x133b22=this['_commandDisposable'])==null||_0x133b22[_0x5133ff(0x26d)]();}[_0x6be33(0x24e)](){const _0x4e60ba=_0x6be33;this['_status$'][_0x4e60ba(0x1e7)](_0x4e60ba(0x196)),this[_0x4e60ba(0x1af)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x6be33(0x26b)]),S(0x3,o[_0x6be33(0x22e)](E)),S(0x4,o[_0x6be33(0x209)])],exports[_0x6be33(0x238)]);function $(){const _0x122433=_0x6be33,_0x2ec90f=p['useDependency'](exports[_0x122433(0x1d4)]),_0x4d5101=p['useDependency'](o[_0x122433(0x20a)]),_0x506d65=p[_0x122433(0x265)](()=>_0x4d5101['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x122433(0x23a)]),void 0x0,!0x1,[]),[_0x1498e3,_0x5d54e6]=v[_0x122433(0x1b4)](null),[_0x1f930d,_0x586d4a]=v[_0x122433(0x1b4)](u[_0x122433(0x201)]),_0x24b11f=v[_0x122433(0x24f)](null);return v[_0x122433(0x222)](()=>(_0x506d65&&_0x2ec90f['getLiveShareCoordinator'](_0x506d65[_0x122433(0x224)]())[_0x122433(0x26c)](_0x41cbc3=>{const _0x27fcea=_0x122433;_0x5d54e6(_0x41cbc3),_0x24b11f[_0x27fcea(0x241)]=_0x41cbc3[_0x27fcea(0x1d1)][_0x27fcea(0x1ba)](_0x547617=>{_0x586d4a(_0x547617);});}),()=>{const _0x262f87=_0x122433;var _0x3df4e1;(_0x3df4e1=_0x24b11f[_0x262f87(0x241)])==null||_0x3df4e1[_0x262f87(0x1ad)](),_0x24b11f[_0x262f87(0x241)]=null;}),[_0x506d65,_0x2ec90f]),_0x1498e3?l[_0x122433(0x200)](f[_0x122433(0x1aa)],{'align':_0x122433(0x1ef),'disabled':_0x1f930d===u[_0x122433(0x25e)],'className':_0x122433(0x246),'overlay':l['jsx'](W,{'status':_0x1f930d,'coordinator':_0x1498e3}),'children':l[_0x122433(0x200)]('button',{'className':f['clsx'](_0x122433(0x214),{'univer-cursor-not-allowed':_0x1f930d===u[_0x122433(0x25e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f930d!==u['OFFLINE']}),'type':_0x122433(0x1ea),'children':l[_0x122433(0x200)](R,{'className':_0x122433(0x227)})})}):null;}function W(_0x39b859){const _0x4809b4=_0x6be33,{status:_0x370dc0,coordinator:_0x2aebb8}=_0x39b859;switch(_0x370dc0){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x266)]:return l[_0x4809b4(0x200)](B,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x21a)]:return l[_0x4809b4(0x200)](Y,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x25e)]:return l['jsx'](J,{});case u[_0x4809b4(0x21f)]:return l[_0x4809b4(0x200)](Z,{'coordinator':_0x2aebb8});default:return null;}}function G(_0xaff639){const _0x5cc1d8=_0x6be33,{coordinator:_0x57b2e9}=_0xaff639;return l[_0x5cc1d8(0x1cf)](l[_0x5cc1d8(0x254)],{'children':[l[_0x5cc1d8(0x200)](_0x5cc1d8(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cc1d8(0x269)}),l[_0x5cc1d8(0x200)](f[_0x5cc1d8(0x1cd)],{'onClick':()=>_0x57b2e9['tryStartPresenting'](),'children':_0x5cc1d8(0x1fc)})]});}function B(_0x50e192){const _0x1af003=_0x6be33,{coordinator:_0xd24b06}=_0x50e192;return l[_0x1af003(0x1cf)](l[_0x1af003(0x254)],{'children':[l[_0x1af003(0x200)](_0x1af003(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1af003(0x19c)}),l[_0x1af003(0x200)](f[_0x1af003(0x1cd)],{'onClick':()=>_0xd24b06['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x8a46c8){const _0x1d935c=_0x6be33,{coordinator:_0x213d73}=_0x8a46c8;return l['jsxs'](l[_0x1d935c(0x254)],{'children':[l[_0x1d935c(0x200)](_0x1d935c(0x1f4),{'className':_0x1d935c(0x24d),'children':_0x1d935c(0x1c5)}),l[_0x1d935c(0x200)](f[_0x1d935c(0x1cd)],{'variant':_0x1d935c(0x262),'onClick':()=>_0x213d73[_0x1d935c(0x1a9)](),'children':'Start\x20following'})]});}function Z(_0x26b027){const _0x565349=_0x6be33,{coordinator:_0x91572}=_0x26b027;return l[_0x565349(0x1cf)](l[_0x565349(0x254)],{'children':[l['jsx'](_0x565349(0x1f4),{'className':_0x565349(0x24d),'children':_0x565349(0x1f1)}),l[_0x565349(0x200)](f[_0x565349(0x1cd)],{'variant':'default','onClick':()=>_0x91572['stopPresenting'](),'children':_0x565349(0x1d2)})]});}function J(){const _0xf4db23=_0x6be33;return l[_0xf4db23(0x200)](l['Fragment'],{'children':_0xf4db23(0x251)});}var K=Object[_0x6be33(0x253)],z=(_0x103346,_0x4a6512,_0x3934e4,_0x5ab9cd)=>{const _0x285cb9=_0x6be33;for(var _0x5b0530=_0x5ab9cd>0x1?void 0x0:_0x5ab9cd?K(_0x4a6512,_0x3934e4):_0x4a6512,_0x20ff58=_0x103346[_0x285cb9(0x267)]-0x1,_0x108ef7;_0x20ff58>=0x0;_0x20ff58--)(_0x108ef7=_0x103346[_0x20ff58])&&(_0x5b0530=_0x108ef7(_0x5b0530)||_0x5b0530);return _0x5b0530;},L=(_0x4ef8c8,_0x2fbeef)=>(_0x1c7357,_0xb02dc2)=>_0x2fbeef(_0x1c7357,_0xb02dc2,_0x4ef8c8);exports[_0x6be33(0x1ac)]=class extends o[_0x6be33(0x1e0)]{constructor(_0x3a7ce1,_0x30618b){const _0x16af62=_0x6be33;super(),this[_0x16af62(0x1b9)]=_0x3a7ce1,this[_0x16af62(0x23c)]=_0x30618b,this[_0x16af62(0x1a2)]();}['_mountLiveShare'](){const _0x58c751=_0x6be33;this[_0x58c751(0x1d8)](this['_uiPartsService']['registerComponent'](p[_0x58c751(0x19e)][_0x58c751(0x250)],()=>p[_0x58c751(0x212)]($,this[_0x58c751(0x1b9)])));}},exports[_0x6be33(0x1ac)]=z([L(0x0,o[_0x6be33(0x22e)](o['Injector'])),L(0x1,p[_0x6be33(0x221)])],exports[_0x6be33(0x1ac)]);const Q=_0x6be33(0x234),w={};var X=Object[_0x6be33(0x253)],ee=(_0x2fa54a,_0x314da2,_0x26b71b,_0x38e100)=>{const _0x1d93cb=_0x6be33;for(var _0x2936d3=_0x38e100>0x1?void 0x0:_0x38e100?X(_0x314da2,_0x26b71b):_0x314da2,_0x37060c=_0x2fa54a[_0x1d93cb(0x267)]-0x1,_0x139792;_0x37060c>=0x0;_0x37060c--)(_0x139792=_0x2fa54a[_0x37060c])&&(_0x2936d3=_0x139792(_0x2936d3)||_0x2936d3);return _0x2936d3;},te=(_0x411ef3,_0x1d01a9)=>(_0x57d8b0,_0x5cff1a)=>_0x1d01a9(_0x57d8b0,_0x5cff1a,_0x411ef3);let m=class extends o['Disposable']{constructor(_0x2035f7){const _0x5c3da6=_0x6be33;super(),this[_0x5c3da6(0x1ce)]=_0x2035f7,this[_0x5c3da6(0x239)]();}[_0x6be33(0x239)](){const _0x5d164a=_0x6be33;[D['SetZoomRatioOperation']['id'],D[_0x5d164a(0x19b)]['id'],C[_0x5d164a(0x226)]['id']][_0x5d164a(0x1a5)](_0x52551b=>{const _0x550d38=_0x5d164a;this['disposeWithMe'](this[_0x550d38(0x1ce)]['registerSharedOperation'](_0x52551b));});}};function _0x3402(_0xfe1219,_0x270270){_0xfe1219=_0xfe1219-0x196;const _0x3ba128=_0x3ba1();let _0x3402a0=_0x3ba128[_0xfe1219];return _0x3402a0;}function _0x3ba1(){const _0x480d26=['delete','defineProperty','_collabSessionService','children','UniverInstanceType','_config','Button','_liveShareService','jsxs','_entities','status$','Stop\x20presenting','Plugin','LiveShareController','replace','live-share-icon','2307375kceSQN','disposeWithMe','onStarting','1402384vqOpOV','univerjs-icon\x20univerjs-icon-','svg','getValue','defIds','registerSharedOperation','Disposable','27rHGhid','tryStartPresenting','add','Subject','path','_commandDisposable','next','params','throttleTime','button','Module','_handleOffline','_startPresenting','_stopPresenting','end','getInitialStates','You\x27re\x20presenting\x20the\x20document','_handleNewHost','NEW_CHANGESETS','div','presenter','override','_commandService','ONLINE','182588wumlEE','defs','fill','Start','getStatus','pipe','_univerInstanceService','jsx','IDLE','shouldShareOperation','send','unitId','http://www.w3.org/2000/svg','attrs','colorChannel1','offline','ICommandService','IUniverInstanceService','has','onCommandExecuted','SAME_OPERATION_SHARE_INTERVAL','_configService','currentColor','dispose$','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','connectInjector','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SessionStatus','sheet','parse','_startFollowing','getTypeOfUnitDisposed$','NOT_FOLLOWING','xlink:href','not-following','LIVESHARE_REQUEST_HOST','897788zjUZvK','PRESENTING','toStringTag','IUIPartsService','useEffect','takeUntil','getUnitId','stopFollowing','SetWorksheetActiveOperation','univer-size-4','executeCommand','_handleOperation','getLiveShareCoordinator','url(#$1','BehaviorSubject','reverse','Inject','6VCzlND','CommandType','_reporters','displayName','use','live-share.config','string','CollaborationEvent','0\x200\x2017\x2017','LiveShareCoordinator','_init','UNIVER_SHEET','getTypeOfUnitAdded$','_uiPartsService','symbol','operations','onRendered','presenting','current','merge','UniverLiveSharePlugin','LIVESHARE_TERMINATE','touchDependencies','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','_sharedOperations','InsertSheetMutation','evenodd','stringify','clear','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOnline','useRef','HEADER_MENU','You\x27are\x20offline.','LiveShareService','getOwnPropertyDescriptor','Fragment','data','tag','following','_status','4196970pNMAwK','1538374brUKzO','registerDependencies','createElement','mutations','OFFLINE','Injector','memberID','getConfig','text','_stopFollowing','stopPresenting','useObservable','FOLLOWING','length','_unitID','Present\x20this\x20document','_handleTerminate','IConfigService','then','dispose','RxDisposable','idle','includes','map','type','getMemberID','SetScrollOperation','You\x27re\x20following\x20the\x20presenter','DisposableCollection','BuiltInUIPart','pluginName','LiveShareIcon','OPERATION','_mountLiveShare','_presenter','complete','forEach','assign','entries','init','startFollowing','Dropdown','idSuffix','DesktopLiveShareController','unsubscribe','_beIdle','_fetchOperations','none','88hQOkCk','random','_collabSession','useState','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','set','mask','sessionStatus$','_injector','subscribe','asObservable','3543456HpTrRZ','_status$','setConfig','createInstance','get','UniverIcon','toDisposable','_handleNewChangeSets','LIVESHARE_OPERATION','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x3ba1=function(){return _0x480d26;};return _0x3ba1();}m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x6be33(0x253)],ne=(_0x1a19d1,_0x4d8be3,_0x133a39)=>_0x4d8be3 in _0x1a19d1?ie(_0x1a19d1,_0x4d8be3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x133a39}):_0x1a19d1[_0x4d8be3]=_0x133a39,re=(_0x537699,_0x13d156,_0x576f10,_0x56c316)=>{const _0x5895c4=_0x6be33;for(var _0x2ba70e=_0x56c316>0x1?void 0x0:_0x56c316?se(_0x13d156,_0x576f10):_0x13d156,_0x49d266=_0x537699[_0x5895c4(0x267)]-0x1,_0x29c604;_0x49d266>=0x0;_0x49d266--)(_0x29c604=_0x537699[_0x49d266])&&(_0x2ba70e=_0x29c604(_0x2ba70e)||_0x2ba70e);return _0x2ba70e;},N=(_0x4c45a3,_0x22e876)=>(_0x4e2e03,_0x1a9bd7)=>_0x22e876(_0x4e2e03,_0x1a9bd7,_0x4c45a3),A=(_0x2f696e,_0xa563a3,_0xeacc20)=>ne(_0x2f696e,typeof _0xa563a3!=_0x6be33(0x23d)?_0xa563a3+'':_0xa563a3,_0xeacc20);const oe=_0x6be33(0x1c6);exports[_0x6be33(0x243)]=class extends o[_0x6be33(0x1d3)]{constructor(_0x42dcdb=w,_0x3e423e,_0x173e97){const _0x28573a=_0x6be33;super(),this['_config']=_0x42dcdb,this[_0x28573a(0x1b9)]=_0x3e423e,this[_0x28573a(0x20e)]=_0x173e97;const {..._0x27ed59}=o[_0x28573a(0x242)]({},w,this[_0x28573a(0x1cc)]);this[_0x28573a(0x20e)][_0x28573a(0x1be)](Q,_0x27ed59);}[_0x6be33(0x1d9)](){const _0x30d089=_0x6be33;o[_0x30d089(0x25b)](this[_0x30d089(0x1b9)],o['mergeOverrideWithDependencies']([[E],[exports[_0x30d089(0x1d4)]],[m],[exports[_0x30d089(0x1ac)]]],this[_0x30d089(0x1cc)][_0x30d089(0x1f6)])),o[_0x30d089(0x245)](this['_injector'],[[m]]);}[_0x6be33(0x23f)](){const _0x2cc9f8=_0x6be33;o['touchDependencies'](this[_0x2cc9f8(0x1b9)],[[exports['DesktopLiveShareController']]]);}},A(exports['UniverLiveSharePlugin'],_0x6be33(0x199),o[_0x6be33(0x1cb)]['UNIVER_UNKNOWN']),A(exports[_0x6be33(0x243)],_0x6be33(0x19f),oe),exports[_0x6be33(0x243)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x6be33(0x25f)])),N(0x2,o[_0x6be33(0x26b)])],exports[_0x6be33(0x243)]),exports['LiveShare']=$,exports[_0x6be33(0x252)]=E,exports['LiveShareStatus']=u;
1
+ 'use strict';const _0x526036=_0x20e8;function _0x5e92(){const _0x23bc99=['_collabSessionService','DesktopLiveShareController','LiveShare','_startPresenting','_commandService','_configService','live-share-icon','SessionStatus','IDLE','IUniverInstanceService','LIVESHARE_TERMINATE','getTypeOfUnitAdded$','_handleOnline','substring','onStarting','string','toStringTag','DependentOn','1em','stopPresenting','_stopPresenting','dispose$','path','http://www.w3.org/2000/svg','ONLINE','130rUvoVb','Stop\x20following','get','35408dQdcWj','event$','Plugin','clsx','813556UyRszk','UniverLiveSharePlugin','data','_mountLiveShare','_collabSession','div','LIVESHARE_OPERATION','getOwnPropertyDescriptor','defs','replace','xlink:href','getValue','8810934wIJVKS','setConfig','UNIVER_UNKNOWN','length','random','pipe','_liveShareService','_handleOperation','450yITfKB','params','map','defIds','startFollowing','send','parse','useRef','merge','takeUntil','url(#$1','UNIVER_SHEET','LIVESHARE_NEW_HOST','_startFollowing','complete','throttleTime','CollaborationEvent','_unitID','symbol','Module','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','LiveShareController','end','current','registerInitialStateReporter','Button','useObservable','default','getConfig','getLiveShareCoordinator','_startLiveShareCoordinator','entries','Disposable','NOT_FOLLOWING','delete','LiveShareService','getMemberID','idSuffix','unitId','not-following','fill','toString','svg','You\x27are\x20offline.','createInstance','none','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandDisposable','Dropdown','PRESENTING','has','init','FOLLOWING','847hQHxKh','operations','_univerInstanceService','subscribe','_init','status$','SetScrollOperation','Start','UNIVER_LIVE_SHARE_PLUGIN','IUIPartsService','children','_entities','SetWorksheetActiveOperation','requireSession','attrs','LiveShareStatus','_handleOffline','tag','idle','SetZoomRatioOperation','includes','next','_uiPartsService','DisposableCollection','presenting','_sharedOperations','_stopFollowing','useDependency','Injector','button','_config','Inject','offline','RxDisposable','You\x27re\x20not\x20following\x20the\x20presenter','useState','following','UniverInstanceType','You\x27re\x20presenting\x20the\x20document','_reporters','add','type','Subject','CollaborationSessionService','jsxs','disposeWithMe','univerjs-icon\x20univerjs-icon-','getInitialStates','reverse','_beIdle','BehaviorSubject','onCommandExecuted','UniverCollaborationClientPlugin','_fetchOperations','currentColor','getTypeOfUnitDisposed$','HEADER_MENU','_injector','defineProperty','forwardRef','_status$','ICommandService','SAME_OPERATION_SHARE_INTERVAL','37917QIgPXz','createElement','OFFLINE','assign','sessionStatus$','colorChannel1','pluginName','presenter','_handleNewChangeSets','mask','_status','trim','asObservable','forEach','IConfigService','jsx','registerDependencies','LiveShareIcon','mutations','0\x200\x2017\x2017','LIVESHARE_FETCH_OPERATIONS','75822NkkbST','dispose','20226gzlqjf','Fragment','shouldShareOperation','executeCommand','304zTKVuK','_presenter','useEffect','LiveShareCoordinator','_handleNewHost','getUnitId','registerSharedOperation','728652GgroAY'];_0x5e92=function(){return _0x23bc99;};return _0x5e92();}(function(_0x547325,_0x43dc98){const _0xb48a0b=_0x20e8,_0x512b9f=_0x547325();while(!![]){try{const _0x1de8c0=-parseInt(_0xb48a0b(0x216))/0x1+-parseInt(_0xb48a0b(0x1f5))/0x2+-parseInt(_0xb48a0b(0x1ea))/0x3*(-parseInt(_0xb48a0b(0x1ee))/0x4)+parseInt(_0xb48a0b(0x20f))/0x5*(-parseInt(_0xb48a0b(0x1e8))/0x6)+-parseInt(_0xb48a0b(0x194))/0x7*(-parseInt(_0xb48a0b(0x212))/0x8)+parseInt(_0xb48a0b(0x1d3))/0x9*(parseInt(_0xb48a0b(0x22a))/0xa)+parseInt(_0xb48a0b(0x222))/0xb;if(_0x1de8c0===_0x43dc98)break;else _0x512b9f['push'](_0x512b9f['shift']());}catch(_0x17dd68){_0x512b9f['push'](_0x512b9f['shift']());}}}(_0x5e92,0x81e69));var T=Object['defineProperty'],U=(_0x549e49,_0x5b6245,_0x19334b)=>_0x5b6245 in _0x549e49?T(_0x549e49,_0x5b6245,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19334b}):_0x549e49[_0x5b6245]=_0x19334b,_=(_0x6169f9,_0x5351c7,_0x2392b7)=>U(_0x6169f9,typeof _0x5351c7!=_0x526036(0x171)?_0x5351c7+'':_0x5351c7,_0x2392b7);Object[_0x526036(0x1ce)](exports,Symbol[_0x526036(0x206)],{'value':_0x526036(0x172)});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:_0x454848,..._0x367e0e}){const _0x1ebc69=_0x526036,{icon:_0xa058bf,id:_0x5a1179,className:_0x1f730f,extend:_0x2edaaf,..._0x3cfdf6}=_0x367e0e,_0x4e2c81=(_0x1ebc69(0x1c2)+_0x5a1179+'\x20'+(_0x1f730f||''))[_0x1ebc69(0x1de)](),_0x537bd6=v[_0x1ebc69(0x231)]('_'+H());return j(_0xa058bf,''+_0x5a1179,{'defIds':_0xa058bf[_0x1ebc69(0x22d)],'idSuffix':_0x537bd6[_0x1ebc69(0x176)]},{'ref':_0x454848,'className':_0x4e2c81,..._0x3cfdf6},_0x2edaaf);}function j(_0x40000d,_0x2c480e,_0x2547e9,_0x342daa,_0x3880ef){const _0x5c6777=_0x526036;return v[_0x5c6777(0x1d4)](_0x40000d[_0x5c6777(0x1a5)],{'key':_0x2c480e,...y(_0x40000d,_0x2547e9,_0x3880ef),..._0x342daa},(F(_0x40000d,_0x2547e9)[_0x5c6777(0x19e)]||[])[_0x5c6777(0x22c)]((_0x125668,_0x5924db)=>j(_0x125668,_0x2c480e+'-'+_0x40000d[_0x5c6777(0x1a5)]+'-'+_0x5924db,_0x2547e9,void 0x0,_0x3880ef)));}function y(_0x20de8b,_0xef55d3,_0x59e643){const _0x316434=_0x526036,_0x60ab8a={..._0x20de8b['attrs']};_0x59e643!=null&&_0x59e643[_0x316434(0x1d8)]&&_0x60ab8a[_0x316434(0x187)]===_0x316434(0x1d8)&&(_0x60ab8a[_0x316434(0x187)]=_0x59e643['colorChannel1']),_0x20de8b[_0x316434(0x1a5)]===_0x316434(0x1dc)&&_0x60ab8a['id']&&(_0x60ab8a['id']=_0x60ab8a['id']+_0xef55d3[_0x316434(0x184)]),Object[_0x316434(0x17e)](_0x60ab8a)['forEach'](([_0x4c4e85,_0x3be627])=>{const _0x460600=_0x316434;_0x4c4e85===_0x460600(0x1dc)&&typeof _0x3be627=='string'&&(_0x60ab8a[_0x4c4e85]=_0x3be627['replace'](/url\(#(.*)\)/,_0x460600(0x169)+_0xef55d3[_0x460600(0x184)]+')'));});const {defIds:_0x3591d8}=_0xef55d3;return!_0x3591d8||_0x3591d8[_0x316434(0x225)]===0x0||(_0x20de8b[_0x316434(0x1a5)]==='use'&&_0x60ab8a['xlink:href']&&(_0x60ab8a[_0x316434(0x220)]=_0x60ab8a[_0x316434(0x220)]+_0xef55d3[_0x316434(0x184)]),Object[_0x316434(0x17e)](_0x60ab8a)[_0x316434(0x1e0)](([_0x4be060,_0x32f5cc])=>{const _0x43047b=_0x316434;typeof _0x32f5cc==_0x43047b(0x205)&&(_0x60ab8a[_0x4be060]=_0x32f5cc[_0x43047b(0x21f)](/url\(#(.*)\)/,_0x43047b(0x169)+_0xef55d3[_0x43047b(0x184)]+')'));})),_0x60ab8a;}function F(_0x4e8236,_0x23b7b2){const _0x1bd695=_0x526036;var _0x4d2cf0;const {defIds:_0xf272e7}=_0x23b7b2;return!_0xf272e7||_0xf272e7[_0x1bd695(0x225)]===0x0?_0x4e8236:_0x4e8236[_0x1bd695(0x1a5)]===_0x1bd695(0x21e)&&((_0x4d2cf0=_0x4e8236['children'])!=null&&_0x4d2cf0[_0x1bd695(0x225)])?{..._0x4e8236,'children':_0x4e8236['children']['map'](_0x3c63ce=>typeof _0x3c63ce[_0x1bd695(0x1a2)]['id']=='string'&&_0xf272e7&&_0xf272e7[_0x1bd695(0x1a8)](_0x3c63ce[_0x1bd695(0x1a2)]['id'])?{..._0x3c63ce,'attrs':{..._0x3c63ce[_0x1bd695(0x1a2)],'id':_0x3c63ce[_0x1bd695(0x1a2)]['id']+_0x23b7b2[_0x1bd695(0x184)]}}:_0x3c63ce)}:_0x4e8236;}function H(){const _0x188a7a=_0x526036;return Math[_0x188a7a(0x226)]()[_0x188a7a(0x188)](0x24)[_0x188a7a(0x203)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x526036(0x189),'attrs':{'xmlns':_0x526036(0x20d),'fill':_0x526036(0x18c),'viewBox':_0x526036(0x1e6),'width':'1em','height':_0x526036(0x208)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x526036(0x173)}},{'tag':_0x526036(0x20c),'attrs':{'fill':_0x526036(0x1ca),'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'}}]},R=v[_0x526036(0x1cf)](function(_0x571e3c,_0x22fae8){const _0x193941=_0x526036;return v[_0x193941(0x1d4)](x,Object[_0x193941(0x1d6)]({},_0x571e3c,{'id':_0x193941(0x1fc),'ref':_0x22fae8,'icon':V}));});R['displayName']=_0x526036(0x1e4);class E extends o[_0x526036(0x17f)]{constructor(){const _0x3854f9=_0x526036;super(...arguments),_(this,_0x3854f9(0x1ad),new Set()),_(this,_0x3854f9(0x1bb),new Set());}['registerSharedOperation'](_0x3b0c98){const _0x32cf77=_0x526036;return this[_0x32cf77(0x1ad)][_0x32cf77(0x1bc)](_0x3b0c98),o['toDisposable'](()=>this[_0x32cf77(0x1ad)][_0x32cf77(0x181)](_0x3b0c98));}[_0x526036(0x177)](_0x17c0bd){const _0x576fd1=_0x526036;return this[_0x576fd1(0x1bb)][_0x576fd1(0x1bc)](_0x17c0bd),o['toDisposable'](()=>this[_0x576fd1(0x1bb)][_0x576fd1(0x181)](_0x17c0bd));}[_0x526036(0x1ec)](_0x7055b0){const _0x4f1a58=_0x526036;return this[_0x4f1a58(0x1ad)][_0x4f1a58(0x191)](_0x7055b0);}[_0x526036(0x1c3)](_0x21adb1){const _0x475a23=_0x526036;return Array['from'](this['_reporters'])[_0x475a23(0x22c)](_0x3a68b6=>_0x3a68b6(_0x21adb1));}}var M=Object[_0x526036(0x21d)],P=(_0x489f7d,_0x4080a5,_0x3e602e,_0x55d75d)=>{const _0x3135da=_0x526036;for(var _0x4a4f94=_0x55d75d>0x1?void 0x0:_0x55d75d?M(_0x4080a5,_0x3e602e):_0x4080a5,_0x5eca13=_0x489f7d[_0x3135da(0x225)]-0x1,_0x581c38;_0x5eca13>=0x0;_0x5eca13--)(_0x581c38=_0x489f7d[_0x5eca13])&&(_0x4a4f94=_0x581c38(_0x4a4f94)||_0x4a4f94);return _0x4a4f94;},S=(_0x3f792e,_0x2aad04)=>(_0x2e064b,_0x5ee46f)=>_0x2aad04(_0x2e064b,_0x5ee46f,_0x3f792e);exports['LiveShareController']=class extends o[_0x526036(0x1b5)]{constructor(_0x9c0a5d,_0x5f2ece,_0x403e26){const _0x3d5b28=_0x526036;super(),_(this,_0x3d5b28(0x19f),new Map()),(this[_0x3d5b28(0x196)]=_0x9c0a5d,this['_injector']=_0x5f2ece,this[_0x3d5b28(0x1f6)]=_0x403e26,this[_0x3d5b28(0x198)]());}async[_0x526036(0x17c)](_0x5d0177){const _0x1e9490=_0x526036;return this[_0x1e9490(0x19f)][_0x1e9490(0x191)](_0x5d0177)||await this[_0x1e9490(0x17d)](_0x5d0177),this[_0x1e9490(0x19f)][_0x1e9490(0x211)](_0x5d0177);}['getLiveShareCoordinatorSync'](_0x2a1219){const _0x109927=_0x526036;var _0x503436;return(_0x503436=this[_0x109927(0x19f)][_0x109927(0x211)](_0x2a1219))!=null?_0x503436:null;}[_0x526036(0x198)](){const _0x409dcb=_0x526036;this[_0x409dcb(0x196)][_0x409dcb(0x201)](o[_0x409dcb(0x1b9)][_0x409dcb(0x16a)])['pipe'](I[_0x409dcb(0x233)](this[_0x409dcb(0x20b)]))['subscribe'](async _0x8d7685=>{const _0x1e1ccb=_0x409dcb,_0x26d5cb=_0x8d7685[_0x1e1ccb(0x1f3)]();this[_0x1e1ccb(0x19f)][_0x1e1ccb(0x191)](_0x26d5cb)||this['_startLiveShareCoordinator'](_0x26d5cb);}),this['_univerInstanceService'][_0x409dcb(0x1cb)](o[_0x409dcb(0x1b9)]['UNIVER_SHEET'])[_0x409dcb(0x227)](I[_0x409dcb(0x233)](this[_0x409dcb(0x20b)]))[_0x409dcb(0x197)](_0x1a830c=>{const _0x5327d7=_0x409dcb,_0x50159d=_0x1a830c[_0x5327d7(0x1f3)](),_0x488c48=this[_0x5327d7(0x19f)][_0x5327d7(0x211)](_0x50159d);_0x488c48==null||_0x488c48[_0x5327d7(0x1e9)]();});}async[_0x526036(0x17d)](_0x38a62e){const _0x5c5b16=_0x526036,_0x4a00fc=await this[_0x5c5b16(0x1f6)][_0x5c5b16(0x1a1)](_0x38a62e),_0x39fec0=this[_0x5c5b16(0x1cd)][_0x5c5b16(0x18b)](exports['LiveShareCoordinator'],_0x38a62e,_0x4a00fc);return _0x39fec0['init'](),this[_0x5c5b16(0x19f)]['set'](_0x38a62e,_0x39fec0),_0x39fec0;}},exports[_0x526036(0x174)]=P([S(0x0,o[_0x526036(0x1ff)]),S(0x1,o[_0x526036(0x1b3)](o['Injector'])),S(0x2,o[_0x526036(0x1b3)](b[_0x526036(0x1bf)]))],exports['LiveShareController']);var u=(_0x3a5822=>(_0x3a5822[_0x526036(0x1d5)]=_0x526036(0x1b4),_0x3a5822[_0x526036(0x1fe)]=_0x526036(0x1a6),_0x3a5822[_0x526036(0x193)]=_0x526036(0x1b8),_0x3a5822[_0x526036(0x180)]=_0x526036(0x186),_0x3a5822[_0x526036(0x190)]=_0x526036(0x1ac),_0x3a5822))(u||{});const k=_0x526036(0x1d2),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x526036(0x1b5)]{constructor(_0x81d7ae,_0x2fdb29,_0x5784bb,_0x53dcb0,_0x58c700){const _0x59b344=_0x526036;super(),_(this,'_status$',new O[(_0x59b344(0x1c6))](_0x59b344(0x1a6))),_(this,'status$',this[_0x59b344(0x1d0)][_0x59b344(0x1df)]()),_(this,_0x59b344(0x198),!0x1),_(this,_0x59b344(0x18e),null),_(this,_0x59b344(0x1ef),null),(this[_0x59b344(0x170)]=_0x81d7ae,this[_0x59b344(0x21a)]=_0x2fdb29,this[_0x59b344(0x1fb)]=_0x5784bb,this[_0x59b344(0x228)]=_0x53dcb0,this[_0x59b344(0x1fa)]=_0x58c700);}get['_status'](){const _0x2617cc=_0x526036;return this['_status$'][_0x2617cc(0x221)]();}[_0x526036(0x1e9)](){const _0x1a8010=_0x526036;var _0x5ae805;(_0x5ae805=this[_0x1a8010(0x18e)])==null||_0x5ae805[_0x1a8010(0x1e9)](),this[_0x1a8010(0x1d0)][_0x1a8010(0x1a9)](_0x1a8010(0x1a6)),this[_0x1a8010(0x1d0)][_0x1a8010(0x16d)]();}['getStatus'](){const _0x2b2174=_0x526036;return this[_0x2b2174(0x1dd)];}[_0x526036(0x192)](){const _0x2b5129=_0x526036;this[_0x2b5129(0x198)]||(this[_0x2b5129(0x198)]=!0x0,this[_0x2b5129(0x21a)][_0x2b5129(0x1d7)][_0x2b5129(0x227)](I[_0x2b5129(0x233)](this[_0x2b5129(0x20b)]))['subscribe'](_0x17bdf5=>{const _0x58c999=_0x2b5129;switch(_0x17bdf5){case b[_0x58c999(0x1fd)][_0x58c999(0x1d5)]:this[_0x58c999(0x1a4)]();break;case b[_0x58c999(0x1fd)][_0x58c999(0x20e)]:this['_handleOnline']();break;}}),this[_0x2b5129(0x21a)][_0x2b5129(0x213)][_0x2b5129(0x227)](I[_0x2b5129(0x233)](this[_0x2b5129(0x20b)]))['subscribe'](_0x225faf=>{const _0x37987e=_0x2b5129,{eventID:_0x539828}=_0x225faf;switch(_0x539828){case d['CollaborationEvent'][_0x37987e(0x16b)]:this['_handleNewHost'](_0x225faf);break;case d[_0x37987e(0x16f)][_0x37987e(0x21c)]:this['_handleOperation'](_0x225faf);break;case d['CollaborationEvent'][_0x37987e(0x200)]:this['_handleTerminate']();break;case d[_0x37987e(0x16f)]['NEW_CHANGESETS']:this[_0x37987e(0x1db)](_0x225faf);break;}}));}['tryStartPresenting'](){const _0x5b5fc3=_0x526036;this[_0x5b5fc3(0x21a)][_0x5b5fc3(0x22f)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5b5fc3(0x170)],'userID':this['_collabSession'][_0x5b5fc3(0x183)]()}},this[_0x5b5fc3(0x170)]);}[_0x526036(0x209)](){const _0x1fa2a9=_0x526036;this['_status']===_0x1fa2a9(0x1ac)&&(this[_0x1fa2a9(0x1d0)][_0x1fa2a9(0x1a9)](_0x1fa2a9(0x1a6)),this[_0x1fa2a9(0x21a)][_0x1fa2a9(0x22f)]({'eventID':d['CollaborationEvent'][_0x1fa2a9(0x200)],'data':{'unitID':this['_unitID']}},this[_0x1fa2a9(0x170)]));}['startFollowing'](){const _0x60113e=_0x526036;this[_0x60113e(0x1dd)]===_0x60113e(0x186)&&(this[_0x60113e(0x1d0)][_0x60113e(0x1a9)](_0x60113e(0x1b8)),this[_0x60113e(0x16c)]());}['stopFollowing'](){const _0x306563=_0x526036;this[_0x306563(0x1dd)]===_0x306563(0x1b8)&&this[_0x306563(0x1ae)]();}[_0x526036(0x1f2)](_0x7298f4){const _0x4e6c6b=_0x526036,{presenter:_0x26b368}=_0x7298f4[_0x4e6c6b(0x218)],_0x163652=this[_0x4e6c6b(0x21a)][_0x4e6c6b(0x183)]();this[_0x4e6c6b(0x1ef)]=_0x26b368,_0x26b368===_0x163652?(this[_0x4e6c6b(0x1ae)](),this[_0x4e6c6b(0x1f9)]()):this[_0x4e6c6b(0x1dd)]!=='not-following'&&(this[_0x4e6c6b(0x20a)](),this[_0x4e6c6b(0x16c)]());}[_0x526036(0x1c9)](){const _0x128a78=_0x526036,_0x5e13c8={'eventID':d[_0x128a78(0x16f)][_0x128a78(0x1e7)]};this[_0x128a78(0x21a)][_0x128a78(0x22f)](_0x5e13c8,this[_0x128a78(0x170)]);}['_handleTerminate'](){const _0x2a57fd=_0x526036;this[_0x2a57fd(0x1ef)]=null,this[_0x2a57fd(0x1dd)]!==_0x2a57fd(0x1ac)&&this[_0x2a57fd(0x1c5)]();}[_0x526036(0x1db)](_0x4f7597){const _0x56ffab=_0x526036;if(this['_status']===_0x56ffab(0x1b8)&&this[_0x56ffab(0x1ef)]===_0x4f7597[_0x56ffab(0x218)]['memberID']){const _0x200c75=d['parseProtocolChangeset'](_0x4f7597['data'])[_0x56ffab(0x1e5)][_0x56ffab(0x1c4)]()['find'](_0x4b9c8f=>_0x4b9c8f['id']===C['InsertSheetMutation']['id']);if(_0x200c75){const _0x33d2da=_0x200c75['params'][_0x56ffab(0x185)],_0x2162d5=_0x200c75[_0x56ffab(0x22b)]['sheet']['id'];setTimeout(()=>{const _0x2c91bb=_0x56ffab;this[_0x2c91bb(0x1fa)][_0x2c91bb(0x1ed)](C[_0x2c91bb(0x1a0)]['id'],{'unitId':_0x33d2da,'subUnitId':_0x2162d5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x34788d=_0x526036;this[_0x34788d(0x1d0)][_0x34788d(0x1a9)](_0x34788d(0x1ac));const _0x2fc768=new Map(),_0xbb1713=this[_0x34788d(0x18e)]=new o[(_0x34788d(0x1ab))]();_0xbb1713[_0x34788d(0x1bc)](o['toDisposable'](()=>{const _0x31c84e=_0x34788d;_0x2fc768[_0x31c84e(0x1e0)](_0x446e9c=>_0x446e9c['complete']()),_0x2fc768['clear']();})),_0xbb1713[_0x34788d(0x1bc)](this[_0x34788d(0x1fa)][_0x34788d(0x1c7)](_0x46ecb5=>{const _0x4ada15=_0x34788d;var _0x1950d5;if(_0x46ecb5[_0x4ada15(0x1bd)]!==o['CommandType']['OPERATION']||!this[_0x4ada15(0x228)][_0x4ada15(0x1ec)](_0x46ecb5['id']))return;const {id:_0x3322d8}=_0x46ecb5;let _0x1a832a;_0x2fc768[_0x4ada15(0x191)](_0x3322d8)?_0x1a832a=_0x2fc768[_0x4ada15(0x211)](_0x3322d8):(_0x1a832a=new O[(_0x4ada15(0x1be))](),_0x2fc768['set'](_0x3322d8,_0x1a832a),_0x1a832a[_0x4ada15(0x227)](I[_0x4ada15(0x16e)]((_0x1950d5=this[_0x4ada15(0x1fb)][_0x4ada15(0x17b)](k))!=null?_0x1950d5:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ada15(0x197)](_0x43a239=>{const _0x20feb1=_0x4ada15;this[_0x20feb1(0x21a)]['send']({'eventID':d['CollaborationEvent'][_0x20feb1(0x21c)],'data':{'unitID':this[_0x20feb1(0x170)],'operations':{[_0x43a239['id']]:{'id':_0x43a239['id'],'params':JSON['stringify'](_0x43a239[_0x20feb1(0x22b)])}}}},this[_0x20feb1(0x170)]);})),_0x1a832a['next'](_0x46ecb5);})),this[_0x34788d(0x228)][_0x34788d(0x1c3)](this[_0x34788d(0x170)])['forEach'](_0x2fa0c5=>this[_0x34788d(0x21a)][_0x34788d(0x22f)]({'eventID':d[_0x34788d(0x16f)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2fa0c5['id']]:{'id':_0x2fa0c5['id'],'params':JSON['stringify'](_0x2fa0c5[_0x34788d(0x22b)])}}}},this[_0x34788d(0x170)]));}[_0x526036(0x20a)](){const _0x5509bb=_0x526036;var _0x5dcfc6;this[_0x5509bb(0x1d0)]['next'](_0x5509bb(0x1a6)),(_0x5dcfc6=this[_0x5509bb(0x18e)])==null||_0x5dcfc6['dispose'](),this['_commandDisposable']=null;}[_0x526036(0x16c)](){const _0x2f2a59=_0x526036;var _0x226313;(_0x226313=this[_0x2f2a59(0x18e)])==null||_0x226313[_0x2f2a59(0x1e9)](),this['_status$'][_0x2f2a59(0x1a9)](_0x2f2a59(0x1b8));}[_0x526036(0x1c5)](){const _0x260455=_0x526036;var _0x463ea4;this[_0x260455(0x1d0)][_0x260455(0x1a9)](_0x260455(0x1a6)),(_0x463ea4=this[_0x260455(0x18e)])==null||_0x463ea4[_0x260455(0x1e9)](),this['_commandDisposable']=null;}[_0x526036(0x1ae)](){const _0x235ac6=_0x526036;var _0x27c8b0;this[_0x235ac6(0x1d0)][_0x235ac6(0x1a9)](_0x235ac6(0x186)),(_0x27c8b0=this['_commandDisposable'])==null||_0x27c8b0[_0x235ac6(0x1e9)]();}[_0x526036(0x229)](_0x200f82){const _0x1c9893=_0x526036;if([_0x1c9893(0x1ac),_0x1c9893(0x186),'offline'][_0x1c9893(0x1a8)](this[_0x1c9893(0x1dd)])||!_0x200f82[_0x1c9893(0x218)][_0x1c9893(0x1da)]||_0x200f82[_0x1c9893(0x218)][_0x1c9893(0x1da)]===this[_0x1c9893(0x21a)][_0x1c9893(0x183)]())return;this[_0x1c9893(0x1dd)]===_0x1c9893(0x1a6)&&this[_0x1c9893(0x16c)]();const _0x63c23a=_0x200f82[_0x1c9893(0x218)][_0x1c9893(0x195)];Object['values'](_0x63c23a)['forEach'](_0x459838=>{const _0x2fdecc=_0x1c9893;this[_0x2fdecc(0x1fa)][_0x2fdecc(0x1ed)](_0x459838['id'],_0x459838[_0x2fdecc(0x22b)]?JSON[_0x2fdecc(0x230)](_0x459838[_0x2fdecc(0x22b)]):null,{'fromCollab':!0x0});});}[_0x526036(0x1a4)](){const _0x10c2c9=_0x526036;var _0x5a99c3;this[_0x10c2c9(0x1d0)][_0x10c2c9(0x1a9)](_0x10c2c9(0x1b4)),(_0x5a99c3=this[_0x10c2c9(0x18e)])==null||_0x5a99c3[_0x10c2c9(0x1e9)]();}[_0x526036(0x202)](){const _0xc2bbf=_0x526036;this[_0xc2bbf(0x1d0)]['next']('idle'),this['_fetchOperations']();}},exports[_0x526036(0x1f1)]=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x526036(0x1d1)])],exports[_0x526036(0x1f1)]);function $(){const _0x3e982b=_0x526036,_0x31ba79=p['useDependency'](exports[_0x3e982b(0x174)]),_0x16d944=p[_0x3e982b(0x1af)](o[_0x3e982b(0x1ff)]),_0x75132c=p[_0x3e982b(0x179)](()=>_0x16d944['getCurrentTypeOfUnit$'](o[_0x3e982b(0x1b9)][_0x3e982b(0x16a)]),void 0x0,!0x1,[]),[_0x41405a,_0x1211a6]=v[_0x3e982b(0x1b7)](null),[_0x172265,_0x5e6b18]=v[_0x3e982b(0x1b7)](u[_0x3e982b(0x1fe)]),_0x19a7fe=v[_0x3e982b(0x231)](null);return v[_0x3e982b(0x1f0)](()=>(_0x75132c&&_0x31ba79[_0x3e982b(0x17c)](_0x75132c[_0x3e982b(0x1f3)]())['then'](_0x121136=>{const _0x46ada4=_0x3e982b;_0x1211a6(_0x121136),_0x19a7fe[_0x46ada4(0x176)]=_0x121136[_0x46ada4(0x199)][_0x46ada4(0x197)](_0x561767=>{_0x5e6b18(_0x561767);});}),()=>{const _0x31ac38=_0x3e982b;var _0x6bc10f;(_0x6bc10f=_0x19a7fe['current'])==null||_0x6bc10f['unsubscribe'](),_0x19a7fe[_0x31ac38(0x176)]=null;}),[_0x75132c,_0x31ba79]),_0x41405a?l[_0x3e982b(0x1e2)](f[_0x3e982b(0x18f)],{'align':_0x3e982b(0x175),'disabled':_0x172265===u[_0x3e982b(0x1d5)],'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[_0x3e982b(0x1e2)](W,{'status':_0x172265,'coordinator':_0x41405a}),'children':l[_0x3e982b(0x1e2)]('button',{'className':f[_0x3e982b(0x215)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x172265===u[_0x3e982b(0x1d5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x172265!==u['OFFLINE']}),'type':_0x3e982b(0x1b1),'children':l[_0x3e982b(0x1e2)](R,{'className':'univer-size-4'})})}):null;}function W(_0x59c69a){const _0x18f662=_0x526036,{status:_0x490cc4,coordinator:_0x42f92b}=_0x59c69a;switch(_0x490cc4){case u[_0x18f662(0x1fe)]:return l[_0x18f662(0x1e2)](G,{'coordinator':_0x42f92b});case u[_0x18f662(0x193)]:return l[_0x18f662(0x1e2)](B,{'coordinator':_0x42f92b});case u[_0x18f662(0x180)]:return l[_0x18f662(0x1e2)](Y,{'coordinator':_0x42f92b});case u[_0x18f662(0x1d5)]:return l['jsx'](J,{});case u[_0x18f662(0x190)]:return l[_0x18f662(0x1e2)](Z,{'coordinator':_0x42f92b});default:return null;}}function G(_0x745c58){const _0x2f083d=_0x526036,{coordinator:_0x1ada63}=_0x745c58;return l[_0x2f083d(0x1c0)](l['Fragment'],{'children':[l['jsx'](_0x2f083d(0x21b),{'className':_0x2f083d(0x18d),'children':'Present\x20this\x20document'}),l[_0x2f083d(0x1e2)](f[_0x2f083d(0x178)],{'onClick':()=>_0x1ada63['tryStartPresenting'](),'children':_0x2f083d(0x19b)})]});}function B(_0x3abca2){const _0x1d1c6a=_0x526036,{coordinator:_0x1be69f}=_0x3abca2;return l[_0x1d1c6a(0x1c0)](l[_0x1d1c6a(0x1eb)],{'children':[l[_0x1d1c6a(0x1e2)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x1d1c6a(0x1e2)](f[_0x1d1c6a(0x178)],{'onClick':()=>_0x1be69f['stopFollowing'](),'children':_0x1d1c6a(0x210)})]});}function Y(_0x1e8f94){const _0x4b0f10=_0x526036,{coordinator:_0x20b3d0}=_0x1e8f94;return l[_0x4b0f10(0x1c0)](l[_0x4b0f10(0x1eb)],{'children':[l[_0x4b0f10(0x1e2)](_0x4b0f10(0x21b),{'className':_0x4b0f10(0x18d),'children':_0x4b0f10(0x1b6)}),l['jsx'](f['Button'],{'variant':'text','onClick':()=>_0x20b3d0[_0x4b0f10(0x22e)](),'children':'Start\x20following'})]});}function Z(_0x149f5f){const _0x1fa039=_0x526036,{coordinator:_0x3ec2df}=_0x149f5f;return l[_0x1fa039(0x1c0)](l[_0x1fa039(0x1eb)],{'children':[l[_0x1fa039(0x1e2)](_0x1fa039(0x21b),{'className':_0x1fa039(0x18d),'children':_0x1fa039(0x1ba)}),l[_0x1fa039(0x1e2)](f[_0x1fa039(0x178)],{'variant':_0x1fa039(0x17a),'onClick':()=>_0x3ec2df[_0x1fa039(0x209)](),'children':'Stop\x20presenting'})]});}function J(){const _0x273486=_0x526036;return l[_0x273486(0x1e2)](l[_0x273486(0x1eb)],{'children':_0x273486(0x18a)});}var K=Object[_0x526036(0x21d)],z=(_0xaa2a6c,_0x5112cc,_0x14cc21,_0xebfeb)=>{const _0x3d8e9d=_0x526036;for(var _0x3200e1=_0xebfeb>0x1?void 0x0:_0xebfeb?K(_0x5112cc,_0x14cc21):_0x5112cc,_0x517c01=_0xaa2a6c[_0x3d8e9d(0x225)]-0x1,_0x3e9a46;_0x517c01>=0x0;_0x517c01--)(_0x3e9a46=_0xaa2a6c[_0x517c01])&&(_0x3200e1=_0x3e9a46(_0x3200e1)||_0x3200e1);return _0x3200e1;},L=(_0x19969d,_0x5b8c5d)=>(_0x4575f7,_0x234b24)=>_0x5b8c5d(_0x4575f7,_0x234b24,_0x19969d);exports[_0x526036(0x1f7)]=class extends o['Disposable']{constructor(_0x1c3186,_0x150fe3){const _0xbf2000=_0x526036;super(),this[_0xbf2000(0x1cd)]=_0x1c3186,this[_0xbf2000(0x1aa)]=_0x150fe3,this[_0xbf2000(0x219)]();}[_0x526036(0x219)](){const _0x148134=_0x526036;this[_0x148134(0x1c1)](this[_0x148134(0x1aa)]['registerComponent'](p['BuiltInUIPart'][_0x148134(0x1cc)],()=>p['connectInjector']($,this[_0x148134(0x1cd)])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o[_0x526036(0x1b0)])),L(0x1,p[_0x526036(0x19d)])],exports['DesktopLiveShareController']);function _0x20e8(_0x199ea9,_0x3a160f){_0x199ea9=_0x199ea9-0x169;const _0x5e9278=_0x5e92();let _0x20e812=_0x5e9278[_0x199ea9];return _0x20e812;}const Q='live-share.config',w={};var X=Object[_0x526036(0x21d)],ee=(_0x5cc606,_0x56a4cc,_0x21cd94,_0x33b5ce)=>{const _0x125832=_0x526036;for(var _0x32c399=_0x33b5ce>0x1?void 0x0:_0x33b5ce?X(_0x56a4cc,_0x21cd94):_0x56a4cc,_0x1d12dc=_0x5cc606[_0x125832(0x225)]-0x1,_0xf1c481;_0x1d12dc>=0x0;_0x1d12dc--)(_0xf1c481=_0x5cc606[_0x1d12dc])&&(_0x32c399=_0xf1c481(_0x32c399)||_0x32c399);return _0x32c399;},te=(_0x4b7e59,_0x23e4b3)=>(_0x3be4b3,_0x41187d)=>_0x23e4b3(_0x3be4b3,_0x41187d,_0x4b7e59);let m=class extends o[_0x526036(0x17f)]{constructor(_0x4aa2b0){const _0x82d8b3=_0x526036;super(),this[_0x82d8b3(0x228)]=_0x4aa2b0,this[_0x82d8b3(0x198)]();}['_init'](){const _0x3dc30b=_0x526036;[D[_0x3dc30b(0x1a7)]['id'],D[_0x3dc30b(0x19a)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x119226=>{const _0x5802b5=_0x3dc30b;this['disposeWithMe'](this[_0x5802b5(0x228)][_0x5802b5(0x1f4)](_0x119226));});}};m=ee([te(0x0,o[_0x526036(0x1b3)](E))],m);var ie=Object['defineProperty'],se=Object[_0x526036(0x21d)],ne=(_0xbbfe96,_0x5d03c4,_0x130789)=>_0x5d03c4 in _0xbbfe96?ie(_0xbbfe96,_0x5d03c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x130789}):_0xbbfe96[_0x5d03c4]=_0x130789,re=(_0x49ee8d,_0x419a63,_0x44f550,_0x2903e4)=>{const _0x1d6771=_0x526036;for(var _0x38bff9=_0x2903e4>0x1?void 0x0:_0x2903e4?se(_0x419a63,_0x44f550):_0x419a63,_0x41f827=_0x49ee8d[_0x1d6771(0x225)]-0x1,_0x6f54af;_0x41f827>=0x0;_0x41f827--)(_0x6f54af=_0x49ee8d[_0x41f827])&&(_0x38bff9=_0x6f54af(_0x38bff9)||_0x38bff9);return _0x38bff9;},N=(_0x573718,_0x4eba6e)=>(_0x2603df,_0x621b2d)=>_0x4eba6e(_0x2603df,_0x621b2d,_0x573718),A=(_0x540245,_0x32d6c6,_0x1d052f)=>ne(_0x540245,typeof _0x32d6c6!=_0x526036(0x171)?_0x32d6c6+'':_0x32d6c6,_0x1d052f);const oe=_0x526036(0x19c);exports['UniverLiveSharePlugin']=class extends o[_0x526036(0x214)]{constructor(_0x910f4b=w,_0x3f4c77,_0x4d8c26){const _0x4638cd=_0x526036;super(),this[_0x4638cd(0x1b2)]=_0x910f4b,this[_0x4638cd(0x1cd)]=_0x3f4c77,this['_configService']=_0x4d8c26;const {..._0x158768}=o[_0x4638cd(0x232)]({},w,this[_0x4638cd(0x1b2)]);this[_0x4638cd(0x1fb)][_0x4638cd(0x223)](Q,_0x158768);}[_0x526036(0x204)](){const _0x6ba27=_0x526036;o[_0x6ba27(0x1e3)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x6ba27(0x174)]],[m],[exports[_0x6ba27(0x1f7)]]],this[_0x6ba27(0x1b2)]['override'])),o['touchDependencies'](this[_0x6ba27(0x1cd)],[[m]]);}['onRendered'](){const _0xac9830=_0x526036;o['touchDependencies'](this[_0xac9830(0x1cd)],[[exports[_0xac9830(0x1f7)]]]);}},A(exports[_0x526036(0x217)],'type',o['UniverInstanceType'][_0x526036(0x224)]),A(exports[_0x526036(0x217)],_0x526036(0x1d9),oe),exports[_0x526036(0x217)]=re([o[_0x526036(0x207)](b[_0x526036(0x1c8)]),N(0x1,o['Inject'](o[_0x526036(0x1b0)])),N(0x2,o[_0x526036(0x1e1)])],exports[_0x526036(0x217)]),exports[_0x526036(0x1f8)]=$,exports[_0x526036(0x182)]=E,exports[_0x526036(0x1a3)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2284b3=_0x2a73;(function(_0x331e0f,_0x56b98e){const _0x468944=_0x2a73,_0x3f687d=_0x331e0f();while(!![]){try{const _0x553d88=-parseInt(_0x468944(0x1ad))/0x1*(parseInt(_0x468944(0x1bd))/0x2)+-parseInt(_0x468944(0x1c3))/0x3*(parseInt(_0x468944(0x1b9))/0x4)+parseInt(_0x468944(0x1b4))/0x5+-parseInt(_0x468944(0x1b5))/0x6*(parseInt(_0x468944(0x1ab))/0x7)+parseInt(_0x468944(0x1aa))/0x8+-parseInt(_0x468944(0x1b3))/0x9+parseInt(_0x468944(0x1c0))/0xa*(parseInt(_0x468944(0x1bb))/0xb);if(_0x553d88===_0x56b98e)break;else _0x3f687d['push'](_0x3f687d['shift']());}catch(_0x411aed){_0x3f687d['push'](_0x3f687d['shift']());}}}(_0x5950,0x98b80));function _0x5950(){const _0x155d29=['_initialize','521496XBElMj','2942555LKLqkb','1685382eVzrrq','getSheetId','getActiveWorkbook','stopFollowing','92ZlyCab','startRow','550iULHjU','tryStartPresenting','229202xeVKqD','syncExecuteCommand','extend','178230qnVvLX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','87537kMrshX','startFollowing','_commandService','getStatus','getActiveSheet','getId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getRenderById','_injector','startColumn','getUnitId','6657824kXGzPq','21exHixp','IDLE','1XqgIIn','PRESENTING','startPresenting','executeCommand','get'];_0x5950=function(){return _0x155d29;};return _0x5950();}import{LiveShareController as _0x46f7e9,LiveShareStatus as _0x5f0174}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xe13cf2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x24c9fb}from'@univerjs/sheets';import{SetScrollOperation as _0x431eb8}from'@univerjs/sheets-ui';import{FRange as _0x4c30e7}from'@univerjs/sheets/facade';import{FUniver as _0x5cddf1,FEnum as _0x276510}from'@univerjs/core/facade';class I extends _0x4c30e7{[_0x2284b3(0x1b2)](_0x23c393,_0x582871,_0x1f15c7,_0x27f3bb,_0x128463){const _0x5ccaaa=_0x2284b3,_0x34d743=_0x23c393[_0x5ccaaa(0x1b1)](_0x46f7e9),_0x5f1fe7=_0x23c393[_0x5ccaaa(0x1b1)](_0xe13cf2),_0x393756=_0x582871[_0x5ccaaa(0x1ce)](),_0x3b8f65=_0x582871[_0x5ccaaa(0x1c7)](),_0x32f0c2=_0x34d743['getLiveShareCoordinatorSync'](_0x393756);(_0x32f0c2==null?void 0x0:_0x32f0c2['getStatus']())!==_0x5f0174[_0x5ccaaa(0x1ae)]||(_0x1f15c7['getSheetId']()!==_0x3b8f65['getSheetId']()&&this[_0x5ccaaa(0x1c5)][_0x5ccaaa(0x1b0)](_0x24c9fb['id'],{'unitId':_0x393756,'subUnitId':_0x1f15c7[_0x5ccaaa(0x1b6)]()}),!_0x5f1fe7[_0x5ccaaa(0x1cb)](_0x393756))||_0x128463[_0x5ccaaa(0x1be)](_0x431eb8['id'],{'unitId':_0x582871[_0x5ccaaa(0x1ce)](),'sheetId':_0x1f15c7[_0x5ccaaa(0x1b6)](),'sheetViewStartRow':_0x27f3bb[_0x5ccaaa(0x1ba)],'sheetViewStartColumn':_0x27f3bb[_0x5ccaaa(0x1cd)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4c30e7['extend'](I);class m extends _0x5cddf1{['getLiveShareStatus'](){const _0x132603=_0x2284b3;var _0x44b715,_0x2431e7;const _0x548618=this[_0x132603(0x1cc)][_0x132603(0x1b1)](_0x46f7e9),_0x3e76a9=(_0x44b715=this[_0x132603(0x1b7)]())==null?void 0x0:_0x44b715[_0x132603(0x1c8)]();if(!_0x3e76a9)throw new Error(_0x132603(0x1c1));const _0x48276d=_0x548618[_0x132603(0x1c2)](_0x3e76a9);return(_0x2431e7=_0x48276d==null?void 0x0:_0x48276d[_0x132603(0x1c6)]())!=null?_0x2431e7:_0x5f0174[_0x132603(0x1ac)];}[_0x2284b3(0x1c4)](){const _0x1dfcd5=_0x2284b3;var _0x5c972e;const _0x13b22f=this['_injector']['get'](_0x46f7e9),_0x1e1414=(_0x5c972e=this['getActiveWorkbook']())==null?void 0x0:_0x5c972e[_0x1dfcd5(0x1c8)]();if(!_0x1e1414)throw new Error(_0x1dfcd5(0x1c1));const _0x5bce7c=_0x13b22f[_0x1dfcd5(0x1c2)](_0x1e1414);if(!_0x5bce7c)throw new Error(_0x1dfcd5(0x1c9));_0x5bce7c['startFollowing']();}[_0x2284b3(0x1b8)](){const _0x15f16d=_0x2284b3;var _0x3b87cc;const _0x16117d=this[_0x15f16d(0x1cc)][_0x15f16d(0x1b1)](_0x46f7e9),_0x4eb8f8=(_0x3b87cc=this['getActiveWorkbook']())==null?void 0x0:_0x3b87cc['getId']();if(!_0x4eb8f8)throw new Error(_0x15f16d(0x1c1));const _0x224785=_0x16117d[_0x15f16d(0x1c2)](_0x4eb8f8);if(!_0x224785)throw new Error(_0x15f16d(0x1c9));_0x224785['stopFollowing']();}[_0x2284b3(0x1af)](){const _0x219fc7=_0x2284b3;var _0x3b517a;const _0x3f845c=this[_0x219fc7(0x1cc)][_0x219fc7(0x1b1)](_0x46f7e9),_0x462ac0=(_0x3b517a=this[_0x219fc7(0x1b7)]())==null?void 0x0:_0x3b517a[_0x219fc7(0x1c8)]();if(!_0x462ac0)throw new Error(_0x219fc7(0x1c1));const _0x3d594d=_0x3f845c[_0x219fc7(0x1c2)](_0x462ac0);if(!_0x3d594d)throw new Error(_0x219fc7(0x1c9));_0x3d594d[_0x219fc7(0x1bc)]();}[_0x2284b3(0x1ca)](){const _0x3d8d97=_0x2284b3;var _0x1aa3f4;const _0xa37566=this[_0x3d8d97(0x1cc)][_0x3d8d97(0x1b1)](_0x46f7e9),_0x1deada=(_0x1aa3f4=this[_0x3d8d97(0x1b7)]())==null?void 0x0:_0x1aa3f4[_0x3d8d97(0x1c8)]();if(!_0x1deada)throw new Error('No\x20active\x20workbook\x20found.');const _0x83508f=_0xa37566[_0x3d8d97(0x1c2)](_0x1deada);if(!_0x83508f)throw new Error(_0x3d8d97(0x1c9));_0x83508f[_0x3d8d97(0x1ca)]();}}_0x5cddf1[_0x2284b3(0x1bf)](m);class C extends _0x276510{get['LiveShareStatusEnum'](){return _0x5f0174;}}function _0x2a73(_0x41ea3a,_0x43dcfe){_0x41ea3a=_0x41ea3a-0x1aa;const _0x595010=_0x5950();let _0x2a73b1=_0x595010[_0x41ea3a];return _0x2a73b1;}_0x276510[_0x2284b3(0x1bf)](C);
1
+ const _0x3cf2eb=_0x25fd;(function(_0x3426c4,_0xc300d5){const _0x1b917e=_0x25fd,_0x52bd99=_0x3426c4();while(!![]){try{const _0x2ebdaa=parseInt(_0x1b917e(0xca))/0x1+parseInt(_0x1b917e(0xbf))/0x2+-parseInt(_0x1b917e(0xc1))/0x3+-parseInt(_0x1b917e(0xbe))/0x4*(parseInt(_0x1b917e(0xc7))/0x5)+parseInt(_0x1b917e(0xcc))/0x6+parseInt(_0x1b917e(0xb9))/0x7*(-parseInt(_0x1b917e(0xc8))/0x8)+-parseInt(_0x1b917e(0xcf))/0x9*(-parseInt(_0x1b917e(0xd0))/0xa);if(_0x2ebdaa===_0xc300d5)break;else _0x52bd99['push'](_0x52bd99['shift']());}catch(_0x1d1cb6){_0x52bd99['push'](_0x52bd99['shift']());}}}(_0x5ee6,0x5bd55));import{LiveShareController as _0x3a1fd5,LiveShareStatus as _0x77b83f}from'@univerjs-pro/live-share';function _0x5ee6(){const _0x2d767a=['getActiveSheet','stopPresenting','getSheetId','startRow','3135wEAthP','54976Vnupms','tryStartPresenting','519533jESrhi','getLiveShareStatus','1982910yISqTe','No\x20active\x20workbook\x20found.','get','368361ZJNXgJ','150slyQkK','getRenderById','_commandService','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','IDLE','getId','PRESENTING','LiveShareStatusEnum','stopFollowing','getLiveShareCoordinatorSync','434lgpIzs','getActiveWorkbook','extend','getStatus','startFollowing','4588gCyMwT','246794YxixNo','getUnitId','197904xEJQyR','syncExecuteCommand'];_0x5ee6=function(){return _0x2d767a;};return _0x5ee6();}import{IRenderManagerService as _0x375d36}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4be7a4}from'@univerjs/sheets';import{SetScrollOperation as _0x14c1d9}from'@univerjs/sheets-ui';import{FRange as _0xf46abf}from'@univerjs/sheets/facade';import{FUniver as _0x5a3a54,FEnum as _0x1a4f3f}from'@univerjs/core/facade';class I extends _0xf46abf{['_initialize'](_0x114ef4,_0x4d389a,_0x11b815,_0x1bfcba,_0x531be3){const _0x1daa41=_0x25fd,_0x377218=_0x114ef4[_0x1daa41(0xce)](_0x3a1fd5),_0x43d003=_0x114ef4[_0x1daa41(0xce)](_0x375d36),_0x1a6b58=_0x4d389a['getUnitId'](),_0x33a7a5=_0x4d389a[_0x1daa41(0xc3)](),_0x242f2c=_0x377218['getLiveShareCoordinatorSync'](_0x1a6b58);(_0x242f2c==null?void 0x0:_0x242f2c['getStatus']())!==_0x77b83f[_0x1daa41(0xb5)]||(_0x11b815[_0x1daa41(0xc5)]()!==_0x33a7a5[_0x1daa41(0xc5)]()&&this[_0x1daa41(0xd2)]['executeCommand'](_0x4be7a4['id'],{'unitId':_0x1a6b58,'subUnitId':_0x11b815[_0x1daa41(0xc5)]()}),!_0x43d003[_0x1daa41(0xd1)](_0x1a6b58))||_0x531be3[_0x1daa41(0xc2)](_0x14c1d9['id'],{'unitId':_0x4d389a[_0x1daa41(0xc0)](),'sheetId':_0x11b815[_0x1daa41(0xc5)](),'sheetViewStartRow':_0x1bfcba[_0x1daa41(0xc6)],'sheetViewStartColumn':_0x1bfcba[_0x1daa41(0xd5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xf46abf['extend'](I);class m extends _0x5a3a54{[_0x3cf2eb(0xcb)](){const _0xff1c3f=_0x3cf2eb;var _0x2ccf21,_0x181c46;const _0x1d2a53=this[_0xff1c3f(0xd3)][_0xff1c3f(0xce)](_0x3a1fd5),_0x273fb5=(_0x2ccf21=this['getActiveWorkbook']())==null?void 0x0:_0x2ccf21['getId']();if(!_0x273fb5)throw new Error(_0xff1c3f(0xcd));const _0xa59f44=_0x1d2a53[_0xff1c3f(0xb8)](_0x273fb5);return(_0x181c46=_0xa59f44==null?void 0x0:_0xa59f44[_0xff1c3f(0xbc)]())!=null?_0x181c46:_0x77b83f[_0xff1c3f(0xd6)];}['startFollowing'](){const _0x3c1928=_0x3cf2eb;var _0x539cdc;const _0x36da3b=this[_0x3c1928(0xd3)][_0x3c1928(0xce)](_0x3a1fd5),_0x166f01=(_0x539cdc=this['getActiveWorkbook']())==null?void 0x0:_0x539cdc[_0x3c1928(0xb4)]();if(!_0x166f01)throw new Error('No\x20active\x20workbook\x20found.');const _0x55a7dc=_0x36da3b['getLiveShareCoordinatorSync'](_0x166f01);if(!_0x55a7dc)throw new Error(_0x3c1928(0xd4));_0x55a7dc[_0x3c1928(0xbd)]();}['stopFollowing'](){const _0x54f288=_0x3cf2eb;var _0x13fd99;const _0x28ff65=this[_0x54f288(0xd3)][_0x54f288(0xce)](_0x3a1fd5),_0x494311=(_0x13fd99=this[_0x54f288(0xba)]())==null?void 0x0:_0x13fd99[_0x54f288(0xb4)]();if(!_0x494311)throw new Error('No\x20active\x20workbook\x20found.');const _0x141a13=_0x28ff65[_0x54f288(0xb8)](_0x494311);if(!_0x141a13)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x141a13[_0x54f288(0xb7)]();}['startPresenting'](){const _0x17c0e4=_0x3cf2eb;var _0x4cdf7b;const _0x93dff6=this[_0x17c0e4(0xd3)][_0x17c0e4(0xce)](_0x3a1fd5),_0x499c1b=(_0x4cdf7b=this['getActiveWorkbook']())==null?void 0x0:_0x4cdf7b['getId']();if(!_0x499c1b)throw new Error(_0x17c0e4(0xcd));const _0x38a621=_0x93dff6['getLiveShareCoordinatorSync'](_0x499c1b);if(!_0x38a621)throw new Error(_0x17c0e4(0xd4));_0x38a621[_0x17c0e4(0xc9)]();}[_0x3cf2eb(0xc4)](){const _0x12d925=_0x3cf2eb;var _0x149715;const _0x53e249=this[_0x12d925(0xd3)][_0x12d925(0xce)](_0x3a1fd5),_0x3b989c=(_0x149715=this[_0x12d925(0xba)]())==null?void 0x0:_0x149715[_0x12d925(0xb4)]();if(!_0x3b989c)throw new Error(_0x12d925(0xcd));const _0x4eaa7b=_0x53e249[_0x12d925(0xb8)](_0x3b989c);if(!_0x4eaa7b)throw new Error(_0x12d925(0xd4));_0x4eaa7b[_0x12d925(0xc4)]();}}_0x5a3a54[_0x3cf2eb(0xbb)](m);class C extends _0x1a4f3f{get[_0x3cf2eb(0xb6)](){return _0x77b83f;}}function _0x25fd(_0x228d1d,_0x100868){_0x228d1d=_0x228d1d-0xb4;const _0x5ee61f=_0x5ee6();let _0x25fd14=_0x5ee61f[_0x228d1d];return _0x25fd14;}_0x1a4f3f['extend'](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x40438e=_0x47cc;(function(_0x499a68,_0xa7184a){const _0x303d3a=_0x47cc,_0x466f16=_0x499a68();while(!![]){try{const _0x58db09=parseInt(_0x303d3a(0x1a3))/0x1+parseInt(_0x303d3a(0x15e))/0x2*(-parseInt(_0x303d3a(0x17c))/0x3)+-parseInt(_0x303d3a(0x1a6))/0x4+-parseInt(_0x303d3a(0x171))/0x5*(-parseInt(_0x303d3a(0x184))/0x6)+parseInt(_0x303d3a(0x115))/0x7*(-parseInt(_0x303d3a(0x12d))/0x8)+parseInt(_0x303d3a(0x17a))/0x9*(parseInt(_0x303d3a(0x135))/0xa)+-parseInt(_0x303d3a(0x11b))/0xb*(-parseInt(_0x303d3a(0x148))/0xc);if(_0x58db09===_0xa7184a)break;else _0x466f16['push'](_0x466f16['shift']());}catch(_0x2b506f){_0x466f16['push'](_0x466f16['shift']());}}}(_0x47f9,0x215dc));var J=Object[_0x40438e(0x190)],K=(_0x32c42a,_0x2ee3b7,_0x1301ae)=>_0x2ee3b7 in _0x32c42a?J(_0x32c42a,_0x2ee3b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1301ae}):_0x32c42a[_0x2ee3b7]=_0x1301ae,u=(_0x4a2c88,_0x53cecf,_0x4dd82c)=>K(_0x4a2c88,typeof _0x53cecf!=_0x40438e(0x14d)?_0x53cecf+'':_0x53cecf,_0x4dd82c);import{Disposable as _0x142380,toDisposable as _0x162835,IUniverInstanceService as _0x5a3693,Inject as _0x515096,Injector as _0x2eaef8,IConfigService as _0x18693d,ICommandService as _0x1b75b0,RxDisposable as _0x470f4e,UniverInstanceType as _0x24a06b,DisposableCollection as _0x557a96,CommandType as _0x54eed1,DependentOn as _0x120121,Plugin as _0x277eca,merge as _0x3187af,registerDependencies as _0x260ef6,mergeOverrideWithDependencies as _0x26d4c0,touchDependencies as _0x154532}from'@univerjs/core';import{useDependency as _0x54980e,useObservable as _0x2371ea,IUIPartsService as _0x13ef6b,BuiltInUIPart as _0x5427fd,connectInjector as _0x266a27}from'@univerjs/ui';import{jsx as _0x282781,jsxs as _0x1a3be5,Fragment as _0x2d1d5d}from'react/jsx-runtime';import{Dropdown as _0x45eb67,clsx as _0x2be6db,Button as _0x18eae9}from'@univerjs/design';import{useRef as _0x4f23fd,createElement as _0x4f1371,forwardRef as _0x905103,useState as _0x89ec1e,useEffect as _0x33dad}from'react';import{CollaborationEvent as _0x5527b9,parseProtocolChangeset as _0x14e3f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bde2f,SessionStatus as _0x1a4938,UniverCollaborationClientPlugin as _0xc0232f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x35c6e2,SetWorksheetActiveOperation as _0xcbc908}from'@univerjs/sheets';import{BehaviorSubject as _0x4119dd,Subject as _0x26010b}from'rxjs';import{takeUntil as _0x505794,throttleTime as _0x55e0fd}from'rxjs/operators';import{SetZoomRatioOperation as _0x1bfcb6,SetScrollOperation as _0x15a66d}from'@univerjs/sheets-ui';function _0x47cc(_0x2d80c3,_0x548e20){_0x2d80c3=_0x2d80c3-0x107;const _0x47f9b5=_0x47f9();let _0x47ccba=_0x47f9b5[_0x2d80c3];return _0x47ccba;}function k({ref:_0x4afa15,..._0x2c761a}){const _0x118ac2=_0x40438e,{icon:_0xa58156,id:_0x1c051b,className:_0x266745,extend:_0x3059ae,..._0x15b762}=_0x2c761a,_0x262b21=(_0x118ac2(0x168)+_0x1c051b+'\x20'+(_0x266745||''))[_0x118ac2(0x149)](),_0x3b8315=_0x4f23fd('_'+Oe());return G(_0xa58156,''+_0x1c051b,{'defIds':_0xa58156['defIds'],'idSuffix':_0x3b8315[_0x118ac2(0x1a1)]},{'ref':_0x4afa15,'className':_0x262b21,..._0x15b762},_0x3059ae);}function G(_0x173525,_0x1df7b1,_0x2f8904,_0x192443,_0x49dcc0){const _0x2bc951=_0x40438e;return _0x4f1371(_0x173525['tag'],{'key':_0x1df7b1,...be(_0x173525,_0x2f8904,_0x49dcc0),..._0x192443},(Ee(_0x173525,_0x2f8904)['children']||[])['map']((_0x3a1c6b,_0x424cde)=>G(_0x3a1c6b,_0x1df7b1+'-'+_0x173525[_0x2bc951(0x18f)]+'-'+_0x424cde,_0x2f8904,void 0x0,_0x49dcc0)));}function be(_0xd1fef3,_0x4cd31e,_0x58b7b7){const _0x4778d1=_0x40438e,_0x59adb9={..._0xd1fef3[_0x4778d1(0x144)]};_0x58b7b7!=null&&_0x58b7b7[_0x4778d1(0x19e)]&&_0x59adb9['fill']===_0x4778d1(0x19e)&&(_0x59adb9[_0x4778d1(0x152)]=_0x58b7b7[_0x4778d1(0x19e)]),_0xd1fef3[_0x4778d1(0x18f)]===_0x4778d1(0x127)&&_0x59adb9['id']&&(_0x59adb9['id']=_0x59adb9['id']+_0x4cd31e[_0x4778d1(0x18c)]),Object[_0x4778d1(0x10e)](_0x59adb9)[_0x4778d1(0x160)](([_0x565e85,_0x20a09e])=>{const _0xf6759f=_0x4778d1;_0x565e85===_0xf6759f(0x127)&&typeof _0x20a09e==_0xf6759f(0x155)&&(_0x59adb9[_0x565e85]=_0x20a09e[_0xf6759f(0x12f)](/url\(#(.*)\)/,'url(#$1'+_0x4cd31e['idSuffix']+')'));});const {defIds:_0xb065cc}=_0x4cd31e;return!_0xb065cc||_0xb065cc[_0x4778d1(0x188)]===0x0||(_0xd1fef3['tag']===_0x4778d1(0x15c)&&_0x59adb9['xlink:href']&&(_0x59adb9[_0x4778d1(0x12a)]=_0x59adb9[_0x4778d1(0x12a)]+_0x4cd31e['idSuffix']),Object['entries'](_0x59adb9)['forEach'](([_0xc0478b,_0x508f86])=>{const _0x4fda44=_0x4778d1;typeof _0x508f86=='string'&&(_0x59adb9[_0xc0478b]=_0x508f86[_0x4fda44(0x12f)](/url\(#(.*)\)/,_0x4fda44(0x113)+_0x4cd31e[_0x4fda44(0x18c)]+')'));})),_0x59adb9;}function Ee(_0xd16053,_0x49d430){const _0x1ce328=_0x40438e;var _0x6e0431;const {defIds:_0x3ce7bf}=_0x49d430;return!_0x3ce7bf||_0x3ce7bf['length']===0x0?_0xd16053:_0xd16053[_0x1ce328(0x18f)]===_0x1ce328(0x124)&&((_0x6e0431=_0xd16053[_0x1ce328(0x164)])!=null&&_0x6e0431[_0x1ce328(0x188)])?{..._0xd16053,'children':_0xd16053[_0x1ce328(0x164)][_0x1ce328(0x143)](_0x54efaf=>typeof _0x54efaf[_0x1ce328(0x144)]['id']=='string'&&_0x3ce7bf&&_0x3ce7bf[_0x1ce328(0x153)](_0x54efaf[_0x1ce328(0x144)]['id'])?{..._0x54efaf,'attrs':{..._0x54efaf[_0x1ce328(0x144)],'id':_0x54efaf[_0x1ce328(0x144)]['id']+_0x49d430[_0x1ce328(0x18c)]}}:_0x54efaf)}:_0xd16053;}function Oe(){const _0x35357b=_0x40438e;return Math['random']()[_0x35357b(0x13f)](0x24)[_0x35357b(0x192)](0x2,0x8);}k['displayName']=_0x40438e(0x142);const we={'tag':_0x40438e(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x40438e(0x110),'width':_0x40438e(0x151),'height':'1em'},'children':[{'tag':_0x40438e(0x14b),'attrs':{'fill':_0x40438e(0x134),'d':_0x40438e(0x131)}},{'tag':'path','attrs':{'fill':_0x40438e(0x134),'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':_0x40438e(0x11a),'clipRule':_0x40438e(0x11a)}}]},W=_0x905103(function(_0x481ac7,_0x879358){const _0x2777c2=_0x40438e;return _0x4f1371(k,Object[_0x2777c2(0x19d)]({},_0x481ac7,{'id':_0x2777c2(0x167),'ref':_0x879358,'icon':we}));});W[_0x40438e(0x14a)]='LiveShareIcon';class L extends _0x142380{constructor(){const _0x53d58f=_0x40438e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x53d58f(0x186),new Set());}[_0x40438e(0x10b)](_0x23f087){const _0x1ad192=_0x40438e;return this[_0x1ad192(0x18d)][_0x1ad192(0x165)](_0x23f087),_0x162835(()=>this[_0x1ad192(0x18d)][_0x1ad192(0x12c)](_0x23f087));}[_0x40438e(0x150)](_0x1fb63b){const _0x430a54=_0x40438e;return this[_0x430a54(0x186)][_0x430a54(0x165)](_0x1fb63b),_0x162835(()=>this[_0x430a54(0x186)]['delete'](_0x1fb63b));}[_0x40438e(0x139)](_0x59d2b2){const _0x3516cb=_0x40438e;return this[_0x3516cb(0x18d)][_0x3516cb(0x1a5)](_0x59d2b2);}[_0x40438e(0x197)](_0x5f28ea){const _0x5f24e7=_0x40438e;return Array['from'](this['_reporters'])[_0x5f24e7(0x143)](_0x36eb84=>_0x36eb84(_0x5f28ea));}}function _0x47f9(){const _0x4888e2=['stringify','Start','dispose$','pipe','startFollowing','event$','_collabSessionService','registerSharedOperation','HEADER_MENU','offline','entries','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','_configService','_handleNewHost','url(#$1','_init','3626dfOUwN','UNIVER_UNKNOWN','Start\x20following','_entities','FOLLOWING','evenodd','33KlJYZN','getMemberID','OFFLINE','stopPresenting','tryStartPresenting','_handleTerminate','dispose','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','defs','_handleOperation','getUnitId','mask','default','data','xlink:href','IDLE','delete','344cPKCiv','UNIVER_LIVE_SHARE_PLUGIN','replace','next','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','_presenter','sessionStatus$','currentColor','509050BdjslY','div','following','_startFollowing','shouldShareOperation','type','disposeWithMe','not-following','getValue','parse','toString','_univerInstanceService','LIVESHARE_OPERATION','UniverIcon','map','attrs','_status$','asObservable','send','657468HsLtBM','trim','displayName','path','UNIVER_SHEET','symbol','init','_status','registerInitialStateReporter','1em','fill','includes','get','string','unsubscribe','subscribe','stopFollowing','ONLINE','_stopPresenting','onStarting','use','status$','2kBwxhX','mutations','forEach','getStatus','getConfig','memberID','children','add','_unitID','live-share-icon','univerjs-icon\x20univerjs-icon-','complete','presenting','_liveShareService','pluginName','LIVESHARE_TERMINATE','_config','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','5kulALz','params','You\x27are\x20offline.','onCommandExecuted','registerComponent','svg','_handleNewChangeSets','getLiveShareCoordinator','_beIdle','9iYdcZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','353853ihXxyW','getOwnPropertyDescriptor','_commandDisposable','PRESENTING','presenter','_commandService','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','412266cbdoFb','executeCommand','_reporters','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','length','setConfig','set','onRendered','idSuffix','_sharedOperations','then','tag','defineProperty','_handleOnline','substring','_stopFollowing','idle','_startPresenting','button','getInitialStates','operations','Present\x20this\x20document','sheet','_mountLiveShare','_collabSession','assign','colorChannel1','unitId','_injector','current','getTypeOfUnitDisposed$','112651lWcUOv','getCurrentTypeOfUnit$','has','478964PdfCqP','NEW_CHANGESETS'];_0x47f9=function(){return _0x4888e2;};return _0x47f9();}var Ne=Object[_0x40438e(0x17d)],Y=(_0x4c888b,_0x11f570,_0x5228dc,_0x524ffe)=>{const _0x76b223=_0x40438e;for(var _0x28c625=_0x524ffe>0x1?void 0x0:_0x524ffe?Ne(_0x11f570,_0x5228dc):_0x11f570,_0x2bdc16=_0x4c888b[_0x76b223(0x188)]-0x1,_0x19ea95;_0x2bdc16>=0x0;_0x2bdc16--)(_0x19ea95=_0x4c888b[_0x2bdc16])&&(_0x28c625=_0x19ea95(_0x28c625)||_0x28c625);return _0x28c625;},_=(_0x3356bb,_0x1ab874)=>(_0x1b71bb,_0xdab50c)=>_0x1ab874(_0x1b71bb,_0xdab50c,_0x3356bb);let S=class extends _0x470f4e{constructor(_0x5aca0d,_0x54895f,_0x234351){const _0x2738da=_0x40438e;super(),u(this,'_entities',new Map()),(this[_0x2738da(0x140)]=_0x5aca0d,this['_injector']=_0x54895f,this[_0x2738da(0x10a)]=_0x234351,this[_0x2738da(0x114)]());}async[_0x40438e(0x178)](_0x412409){const _0x3fb7a4=_0x40438e;return this['_entities']['has'](_0x412409)||await this[_0x3fb7a4(0x122)](_0x412409),this[_0x3fb7a4(0x118)][_0x3fb7a4(0x154)](_0x412409);}['getLiveShareCoordinatorSync'](_0x35a51b){const _0x21a934=_0x40438e;var _0x28dbea;return(_0x28dbea=this[_0x21a934(0x118)][_0x21a934(0x154)](_0x35a51b))!=null?_0x28dbea:null;}[_0x40438e(0x114)](){const _0x3253f1=_0x40438e;this[_0x3253f1(0x140)]['getTypeOfUnitAdded$'](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this['dispose$']))[_0x3253f1(0x157)](async _0x1f8c57=>{const _0x4c5770=_0x3253f1,_0x2ee9ce=_0x1f8c57[_0x4c5770(0x126)]();this[_0x4c5770(0x118)][_0x4c5770(0x1a5)](_0x2ee9ce)||this['_startLiveShareCoordinator'](_0x2ee9ce);}),this[_0x3253f1(0x140)][_0x3253f1(0x1a2)](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this[_0x3253f1(0x1aa)]))[_0x3253f1(0x157)](_0x58f199=>{const _0x500a5b=_0x3253f1,_0x4ab110=_0x58f199['getUnitId'](),_0x162aa6=this[_0x500a5b(0x118)]['get'](_0x4ab110);_0x162aa6==null||_0x162aa6[_0x500a5b(0x121)]();});}async[_0x40438e(0x122)](_0x1b4687){const _0x332449=_0x40438e,_0x22feac=await this[_0x332449(0x10a)][_0x332449(0x16f)](_0x1b4687),_0x571083=this['_injector']['createInstance'](N,_0x1b4687,_0x22feac);return _0x571083['init'](),this[_0x332449(0x118)][_0x332449(0x18a)](_0x1b4687,_0x571083),_0x571083;}};S=Y([_(0x0,_0x5a3693),_(0x1,_0x515096(_0x2eaef8)),_(0x2,_0x515096(_0x3bde2f))],S);var c=(_0x3f43e7=>(_0x3f43e7['OFFLINE']=_0x40438e(0x10d),_0x3f43e7[_0x40438e(0x12b)]='idle',_0x3f43e7[_0x40438e(0x119)]='following',_0x3f43e7['NOT_FOLLOWING']=_0x40438e(0x13c),_0x3f43e7[_0x40438e(0x17f)]='presenting',_0x3f43e7))(c||{});const Ce=_0x40438e(0x123),De=0xc8;let N=class extends _0x470f4e{constructor(_0x42fa58,_0x56d566,_0xe9c346,_0x4c3f5b,_0x295bfc){const _0x4f97f9=_0x40438e;super(),u(this,_0x4f97f9(0x145),new _0x4119dd('idle')),u(this,_0x4f97f9(0x15d),this['_status$'][_0x4f97f9(0x146)]()),u(this,_0x4f97f9(0x114),!0x1),u(this,_0x4f97f9(0x17e),null),u(this,_0x4f97f9(0x132),null),(this[_0x4f97f9(0x166)]=_0x42fa58,this[_0x4f97f9(0x19c)]=_0x56d566,this[_0x4f97f9(0x111)]=_0xe9c346,this[_0x4f97f9(0x16b)]=_0x4c3f5b,this[_0x4f97f9(0x181)]=_0x295bfc);}get['_status'](){const _0x2fb33e=_0x40438e;return this[_0x2fb33e(0x145)][_0x2fb33e(0x13d)]();}[_0x40438e(0x121)](){const _0x45c693=_0x40438e;var _0x1cb889;(_0x1cb889=this[_0x45c693(0x17e)])==null||_0x1cb889[_0x45c693(0x121)](),this[_0x45c693(0x145)][_0x45c693(0x130)](_0x45c693(0x194)),this[_0x45c693(0x145)][_0x45c693(0x169)]();}[_0x40438e(0x161)](){const _0x46a17f=_0x40438e;return this[_0x46a17f(0x14f)];}[_0x40438e(0x14e)](){const _0x56f2d8=_0x40438e;this[_0x56f2d8(0x114)]||(this[_0x56f2d8(0x114)]=!0x0,this[_0x56f2d8(0x19c)][_0x56f2d8(0x133)][_0x56f2d8(0x107)](_0x505794(this[_0x56f2d8(0x1aa)]))[_0x56f2d8(0x157)](_0x1333f1=>{const _0x59bf20=_0x56f2d8;switch(_0x1333f1){case _0x1a4938['OFFLINE']:this['_handleOffline']();break;case _0x1a4938[_0x59bf20(0x159)]:this['_handleOnline']();break;}}),this[_0x56f2d8(0x19c)][_0x56f2d8(0x109)]['pipe'](_0x505794(this['dispose$']))[_0x56f2d8(0x157)](_0x4ea196=>{const _0x35e9bb=_0x56f2d8,{eventID:_0x65fbbc}=_0x4ea196;switch(_0x65fbbc){case _0x5527b9[_0x35e9bb(0x182)]:this[_0x35e9bb(0x112)](_0x4ea196);break;case _0x5527b9['LIVESHARE_OPERATION']:this[_0x35e9bb(0x125)](_0x4ea196);break;case _0x5527b9[_0x35e9bb(0x16d)]:this[_0x35e9bb(0x120)]();break;case _0x5527b9[_0x35e9bb(0x1a7)]:this['_handleNewChangeSets'](_0x4ea196);break;}}));}[_0x40438e(0x11f)](){const _0x49b2d9=_0x40438e;this[_0x49b2d9(0x19c)][_0x49b2d9(0x147)]({'eventID':_0x5527b9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49b2d9(0x166)],'userID':this[_0x49b2d9(0x19c)][_0x49b2d9(0x11c)]()}},this[_0x49b2d9(0x166)]);}['stopPresenting'](){const _0x3bc702=_0x40438e;this[_0x3bc702(0x14f)]===_0x3bc702(0x16a)&&(this[_0x3bc702(0x145)][_0x3bc702(0x130)](_0x3bc702(0x194)),this[_0x3bc702(0x19c)][_0x3bc702(0x147)]({'eventID':_0x5527b9[_0x3bc702(0x16d)],'data':{'unitID':this[_0x3bc702(0x166)]}},this[_0x3bc702(0x166)]));}[_0x40438e(0x108)](){const _0x3cf05a=_0x40438e;this['_status']===_0x3cf05a(0x13c)&&(this[_0x3cf05a(0x145)][_0x3cf05a(0x130)](_0x3cf05a(0x137)),this[_0x3cf05a(0x138)]());}[_0x40438e(0x158)](){const _0x5878a9=_0x40438e;this[_0x5878a9(0x14f)]===_0x5878a9(0x137)&&this[_0x5878a9(0x193)]();}['_handleNewHost'](_0xcb9d73){const _0x8d8012=_0x40438e,{presenter:_0x336bb7}=_0xcb9d73[_0x8d8012(0x129)],_0x22c428=this[_0x8d8012(0x19c)][_0x8d8012(0x11c)]();this[_0x8d8012(0x132)]=_0x336bb7,_0x336bb7===_0x22c428?(this[_0x8d8012(0x193)](),this['_startPresenting']()):this[_0x8d8012(0x14f)]!==_0x8d8012(0x13c)&&(this[_0x8d8012(0x15a)](),this[_0x8d8012(0x138)]());}['_fetchOperations'](){const _0x3a117a=_0x40438e,_0xe4c44={'eventID':_0x5527b9[_0x3a117a(0x10f)]};this['_collabSession']['send'](_0xe4c44,this[_0x3a117a(0x166)]);}['_handleTerminate'](){const _0x298517=_0x40438e;this[_0x298517(0x132)]=null,this['_status']!==_0x298517(0x16a)&&this['_beIdle']();}[_0x40438e(0x177)](_0x49c8b2){const _0x3b30d7=_0x40438e;if(this['_status']===_0x3b30d7(0x137)&&this[_0x3b30d7(0x132)]===_0x49c8b2[_0x3b30d7(0x129)][_0x3b30d7(0x163)]){const _0x3c557d=_0x14e3f7(_0x49c8b2[_0x3b30d7(0x129)])[_0x3b30d7(0x15f)]['reverse']()['find'](_0x5be341=>_0x5be341['id']===_0x35c6e2['id']);if(_0x3c557d){const _0x2ee0f8=_0x3c557d['params'][_0x3b30d7(0x19f)],_0x571796=_0x3c557d['params'][_0x3b30d7(0x19a)]['id'];setTimeout(()=>{const _0x774e56=_0x3b30d7;this[_0x774e56(0x181)]['executeCommand'](_0xcbc908['id'],{'unitId':_0x2ee0f8,'subUnitId':_0x571796},{'fromCollab':!0x0});});}}}[_0x40438e(0x195)](){const _0x1e57c9=_0x40438e;this[_0x1e57c9(0x145)][_0x1e57c9(0x130)](_0x1e57c9(0x16a));const _0x3bf156=new Map(),_0x11a84d=this['_commandDisposable']=new _0x557a96();_0x11a84d[_0x1e57c9(0x165)](_0x162835(()=>{const _0x31867d=_0x1e57c9;_0x3bf156[_0x31867d(0x160)](_0x4d6572=>_0x4d6572[_0x31867d(0x169)]()),_0x3bf156['clear']();})),_0x11a84d[_0x1e57c9(0x165)](this['_commandService'][_0x1e57c9(0x174)](_0x1493ad=>{const _0x2e0ccb=_0x1e57c9;var _0x46004e;if(_0x1493ad[_0x2e0ccb(0x13a)]!==_0x54eed1['OPERATION']||!this[_0x2e0ccb(0x16b)][_0x2e0ccb(0x139)](_0x1493ad['id']))return;const {id:_0x555b04}=_0x1493ad;let _0x2f357c;_0x3bf156['has'](_0x555b04)?_0x2f357c=_0x3bf156['get'](_0x555b04):(_0x2f357c=new _0x26010b(),_0x3bf156[_0x2e0ccb(0x18a)](_0x555b04,_0x2f357c),_0x2f357c['pipe'](_0x55e0fd((_0x46004e=this[_0x2e0ccb(0x111)][_0x2e0ccb(0x162)](Ce))!=null?_0x46004e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e0ccb(0x157)](_0x23275d=>{const _0x5692cc=_0x2e0ccb;this[_0x5692cc(0x19c)][_0x5692cc(0x147)]({'eventID':_0x5527b9[_0x5692cc(0x141)],'data':{'unitID':this[_0x5692cc(0x166)],'operations':{[_0x23275d['id']]:{'id':_0x23275d['id'],'params':JSON[_0x5692cc(0x1a8)](_0x23275d[_0x5692cc(0x172)])}}}},this[_0x5692cc(0x166)]);})),_0x2f357c[_0x2e0ccb(0x130)](_0x1493ad);})),this[_0x1e57c9(0x16b)][_0x1e57c9(0x197)](this[_0x1e57c9(0x166)])[_0x1e57c9(0x160)](_0x147df5=>this[_0x1e57c9(0x19c)][_0x1e57c9(0x147)]({'eventID':_0x5527b9[_0x1e57c9(0x141)],'data':{'unitID':this[_0x1e57c9(0x166)],'operations':{[_0x147df5['id']]:{'id':_0x147df5['id'],'params':JSON[_0x1e57c9(0x1a8)](_0x147df5['params'])}}}},this[_0x1e57c9(0x166)]));}[_0x40438e(0x15a)](){const _0xef736c=_0x40438e;var _0x595d01;this['_status$'][_0xef736c(0x130)](_0xef736c(0x194)),(_0x595d01=this[_0xef736c(0x17e)])==null||_0x595d01[_0xef736c(0x121)](),this['_commandDisposable']=null;}[_0x40438e(0x138)](){const _0x41ea4f=_0x40438e;var _0x5ad979;(_0x5ad979=this['_commandDisposable'])==null||_0x5ad979[_0x41ea4f(0x121)](),this[_0x41ea4f(0x145)][_0x41ea4f(0x130)](_0x41ea4f(0x137));}[_0x40438e(0x179)](){const _0x502f41=_0x40438e;var _0x2fb286;this[_0x502f41(0x145)][_0x502f41(0x130)]('idle'),(_0x2fb286=this[_0x502f41(0x17e)])==null||_0x2fb286[_0x502f41(0x121)](),this[_0x502f41(0x17e)]=null;}[_0x40438e(0x193)](){const _0x34b869=_0x40438e;var _0x29a306;this['_status$'][_0x34b869(0x130)](_0x34b869(0x13c)),(_0x29a306=this[_0x34b869(0x17e)])==null||_0x29a306[_0x34b869(0x121)]();}[_0x40438e(0x125)](_0xbd2e1a){const _0x407f16=_0x40438e;if([_0x407f16(0x16a),_0x407f16(0x13c),_0x407f16(0x10d)][_0x407f16(0x153)](this['_status'])||!_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x180)]||_0xbd2e1a['data'][_0x407f16(0x180)]===this[_0x407f16(0x19c)][_0x407f16(0x11c)]())return;this[_0x407f16(0x14f)]===_0x407f16(0x194)&&this[_0x407f16(0x138)]();const _0x2722c6=_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x198)];Object['values'](_0x2722c6)[_0x407f16(0x160)](_0x5f5ccd=>{const _0x57e662=_0x407f16;this[_0x57e662(0x181)][_0x57e662(0x185)](_0x5f5ccd['id'],_0x5f5ccd['params']?JSON[_0x57e662(0x13e)](_0x5f5ccd[_0x57e662(0x172)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x313e26=_0x40438e;var _0x2200d4;this['_status$'][_0x313e26(0x130)]('offline'),(_0x2200d4=this['_commandDisposable'])==null||_0x2200d4[_0x313e26(0x121)]();}[_0x40438e(0x191)](){const _0x1df844=_0x40438e;this[_0x1df844(0x145)][_0x1df844(0x130)](_0x1df844(0x194)),this['_fetchOperations']();}};N=Y([_(0x2,_0x18693d),_(0x3,_0x515096(L)),_(0x4,_0x1b75b0)],N);function Le(){const _0x22e9f1=_0x40438e,_0x48f933=_0x54980e(S),_0x2a1eb8=_0x54980e(_0x5a3693),_0x4fe1a9=_0x2371ea(()=>_0x2a1eb8[_0x22e9f1(0x1a4)](_0x24a06b[_0x22e9f1(0x14c)]),void 0x0,!0x1,[]),[_0x58aed3,_0x405f7a]=_0x89ec1e(null),[_0x568915,_0x58e9b0]=_0x89ec1e(c[_0x22e9f1(0x12b)]),_0x419775=_0x4f23fd(null);return _0x33dad(()=>(_0x4fe1a9&&_0x48f933['getLiveShareCoordinator'](_0x4fe1a9[_0x22e9f1(0x126)]())[_0x22e9f1(0x18e)](_0x374c0f=>{const _0x3c4f83=_0x22e9f1;_0x405f7a(_0x374c0f),_0x419775[_0x3c4f83(0x1a1)]=_0x374c0f[_0x3c4f83(0x15d)][_0x3c4f83(0x157)](_0x38cdce=>{_0x58e9b0(_0x38cdce);});}),()=>{const _0x330361=_0x22e9f1;var _0x4d4ebe;(_0x4d4ebe=_0x419775['current'])==null||_0x4d4ebe[_0x330361(0x156)](),_0x419775['current']=null;}),[_0x4fe1a9,_0x48f933]),_0x58aed3?_0x282781(_0x45eb67,{'align':'end','disabled':_0x568915===c[_0x22e9f1(0x11d)],'className':_0x22e9f1(0x187),'overlay':_0x282781(Re,{'status':_0x568915,'coordinator':_0x58aed3}),'children':_0x282781(_0x22e9f1(0x196),{'className':_0x2be6db(_0x22e9f1(0x170),{'univer-cursor-not-allowed':_0x568915===c[_0x22e9f1(0x11d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568915!==c['OFFLINE']}),'type':_0x22e9f1(0x196),'children':_0x282781(W,{'className':'univer-size-4'})})}):null;}function Re(_0x437467){const _0xaf73a4=_0x40438e,{status:_0xc7ed2f,coordinator:_0x177b7c}=_0x437467;switch(_0xc7ed2f){case c[_0xaf73a4(0x12b)]:return _0x282781($e,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x119)]:return _0x282781(xe,{'coordinator':_0x177b7c});case c['NOT_FOLLOWING']:return _0x282781(Pe,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x11d)]:return _0x282781(Te,{});case c[_0xaf73a4(0x17f)]:return _0x282781(Ae,{'coordinator':_0x177b7c});default:return null;}}function $e(_0x120ab4){const _0x162a68=_0x40438e,{coordinator:_0x203df8}=_0x120ab4;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x162a68(0x136),{'className':_0x162a68(0x17b),'children':_0x162a68(0x199)}),_0x282781(_0x18eae9,{'onClick':()=>_0x203df8[_0x162a68(0x11f)](),'children':_0x162a68(0x1a9)})]});}function xe(_0x46b877){const _0xd05436=_0x40438e,{coordinator:_0x43b589}=_0x46b877;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0xd05436(0x17b),'children':_0xd05436(0x183)}),_0x282781(_0x18eae9,{'onClick':()=>_0x43b589[_0xd05436(0x158)](),'children':'Stop\x20following'})]});}function Pe(_0x23d975){const _0x63f7a4=_0x40438e,{coordinator:_0x1a2993}=_0x23d975;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x63f7a4(0x136),{'className':_0x63f7a4(0x17b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x282781(_0x18eae9,{'variant':'text','onClick':()=>_0x1a2993[_0x63f7a4(0x108)](),'children':_0x63f7a4(0x117)})]});}function Ae(_0x2e9bdc){const _0x19c77d=_0x40438e,{coordinator:_0x5f5c03}=_0x2e9bdc;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0x19c77d(0x17b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x282781(_0x18eae9,{'variant':_0x19c77d(0x128),'onClick':()=>_0x5f5c03[_0x19c77d(0x11e)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a4dda=_0x40438e;return _0x282781(_0x2d1d5d,{'children':_0x1a4dda(0x173)});}var Fe=Object[_0x40438e(0x17d)],He=(_0xe36e06,_0x328326,_0xedbe7e,_0x1a4370)=>{for(var _0x405fd4=_0x1a4370>0x1?void 0x0:_0x1a4370?Fe(_0x328326,_0xedbe7e):_0x328326,_0x3bc04c=_0xe36e06['length']-0x1,_0x5503cc;_0x3bc04c>=0x0;_0x3bc04c--)(_0x5503cc=_0xe36e06[_0x3bc04c])&&(_0x405fd4=_0x5503cc(_0x405fd4)||_0x405fd4);return _0x405fd4;},A=(_0x3ab088,_0x426d4c)=>(_0x51cd35,_0x494648)=>_0x426d4c(_0x51cd35,_0x494648,_0x3ab088);let m=class extends _0x142380{constructor(_0x3be079,_0x59b39d){const _0x2daf53=_0x40438e;super(),this[_0x2daf53(0x1a0)]=_0x3be079,this['_uiPartsService']=_0x59b39d,this[_0x2daf53(0x19b)]();}['_mountLiveShare'](){const _0x229f65=_0x40438e;this[_0x229f65(0x13b)](this['_uiPartsService'][_0x229f65(0x175)](_0x5427fd[_0x229f65(0x10c)],()=>_0x266a27(Le,this[_0x229f65(0x1a0)])));}};m=He([A(0x0,_0x515096(_0x2eaef8)),A(0x1,_0x13ef6b)],m);const ye='live-share.config',T={};var Ue=Object[_0x40438e(0x17d)],Ve=(_0x47c872,_0x4d30bd,_0x9de0a7,_0x3752d3)=>{const _0x11f663=_0x40438e;for(var _0x42a8af=_0x3752d3>0x1?void 0x0:_0x3752d3?Ue(_0x4d30bd,_0x9de0a7):_0x4d30bd,_0x32da67=_0x47c872[_0x11f663(0x188)]-0x1,_0x15a074;_0x32da67>=0x0;_0x32da67--)(_0x15a074=_0x47c872[_0x32da67])&&(_0x42a8af=_0x15a074(_0x42a8af)||_0x42a8af);return _0x42a8af;},je=(_0x13edb2,_0x5be002)=>(_0x3620f0,_0x32c9d5)=>_0x5be002(_0x3620f0,_0x32c9d5,_0x13edb2);let I=class extends _0x142380{constructor(_0x270207){const _0x5b80cf=_0x40438e;super(),this['_liveShareService']=_0x270207,this[_0x5b80cf(0x114)]();}[_0x40438e(0x114)](){const _0x1a0f76=_0x40438e;[_0x1bfcb6['id'],_0x15a66d['id'],_0xcbc908['id']][_0x1a0f76(0x160)](_0x43f413=>{const _0x266d04=_0x1a0f76;this['disposeWithMe'](this[_0x266d04(0x16b)][_0x266d04(0x10b)](_0x43f413));});}};I=Ve([je(0x0,_0x515096(L))],I);var Me=Object[_0x40438e(0x190)],ke=Object[_0x40438e(0x17d)],Ge=(_0x72d1ae,_0x42e855,_0x3afd20)=>_0x42e855 in _0x72d1ae?Me(_0x72d1ae,_0x42e855,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afd20}):_0x72d1ae[_0x42e855]=_0x3afd20,We=(_0x5e1741,_0x2c0306,_0xaca0d9,_0x339251)=>{const _0x332944=_0x40438e;for(var _0x531e36=_0x339251>0x1?void 0x0:_0x339251?ke(_0x2c0306,_0xaca0d9):_0x2c0306,_0x26a81e=_0x5e1741[_0x332944(0x188)]-0x1,_0x581a77;_0x26a81e>=0x0;_0x26a81e--)(_0x581a77=_0x5e1741[_0x26a81e])&&(_0x531e36=_0x581a77(_0x531e36)||_0x531e36);return _0x531e36;},F=(_0x1cc530,_0x5974cc)=>(_0x8b6089,_0x2703b8)=>_0x5974cc(_0x8b6089,_0x2703b8,_0x1cc530),B=(_0x1d3557,_0x3c23f8,_0x16bddb)=>Ge(_0x1d3557,typeof _0x3c23f8!=_0x40438e(0x14d)?_0x3c23f8+'':_0x3c23f8,_0x16bddb);const Ye=_0x40438e(0x12e);let b=class extends _0x277eca{constructor(_0x595d93=T,_0x50ea94,_0x53ea49){const _0x4411b1=_0x40438e;super(),this['_config']=_0x595d93,this['_injector']=_0x50ea94,this['_configService']=_0x53ea49;const {..._0x2d8609}=_0x3187af({},T,this[_0x4411b1(0x16e)]);this['_configService'][_0x4411b1(0x189)](ye,_0x2d8609);}[_0x40438e(0x15b)](){const _0x7abc44=_0x40438e;_0x260ef6(this[_0x7abc44(0x1a0)],_0x26d4c0([[L],[S],[I],[m]],this[_0x7abc44(0x16e)]['override'])),_0x154532(this[_0x7abc44(0x1a0)],[[I]]);}[_0x40438e(0x18b)](){const _0x1f28ee=_0x40438e;_0x154532(this[_0x1f28ee(0x1a0)],[[m]]);}};B(b,_0x40438e(0x13a),_0x24a06b[_0x40438e(0x116)]),B(b,_0x40438e(0x16c),Ye),b=We([_0x120121(_0xc0232f),F(0x1,_0x515096(_0x2eaef8)),F(0x2,_0x18693d)],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 _0x37c48f=_0xe409;(function(_0xca09e3,_0x23be34){const _0x503460=_0xe409,_0xabed41=_0xca09e3();while(!![]){try{const _0x1b3726=parseInt(_0x503460(0x171))/0x1+-parseInt(_0x503460(0x1dd))/0x2+-parseInt(_0x503460(0x182))/0x3*(parseInt(_0x503460(0x1ed))/0x4)+parseInt(_0x503460(0x155))/0x5*(-parseInt(_0x503460(0x1a5))/0x6)+parseInt(_0x503460(0x15d))/0x7+-parseInt(_0x503460(0x16d))/0x8+-parseInt(_0x503460(0x18f))/0x9*(-parseInt(_0x503460(0x1d5))/0xa);if(_0x1b3726===_0x23be34)break;else _0xabed41['push'](_0xabed41['shift']());}catch(_0x3c4d11){_0xabed41['push'](_0xabed41['shift']());}}}(_0x33ed,0x571d8));var J=Object['defineProperty'],K=(_0x4f7e0a,_0x24e8b5,_0xe4ea7)=>_0x24e8b5 in _0x4f7e0a?J(_0x4f7e0a,_0x24e8b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe4ea7}):_0x4f7e0a[_0x24e8b5]=_0xe4ea7,u=(_0x2a9c80,_0x6b58ae,_0x256c56)=>K(_0x2a9c80,typeof _0x6b58ae!='symbol'?_0x6b58ae+'':_0x6b58ae,_0x256c56);import{Disposable as _0x56ac81,toDisposable as _0x14fed3,IUniverInstanceService as _0x3fde3e,Inject as _0x19be43,Injector as _0x26383e,IConfigService as _0x347dc0,ICommandService as _0x4afaea,RxDisposable as _0x46b3fc,UniverInstanceType as _0x339dac,DisposableCollection as _0x2d7a31,CommandType as _0x412c4e,DependentOn as _0x2d581b,Plugin as _0x541451,merge as _0x367c89,registerDependencies as _0x5a7450,mergeOverrideWithDependencies as _0x3edeed,touchDependencies as _0x427e11}from'@univerjs/core';import{useDependency as _0x3d5a42,useObservable as _0x38adb2,IUIPartsService as _0x5ded7e,BuiltInUIPart as _0x1d340b,connectInjector as _0x573695}from'@univerjs/ui';import{jsx as _0x1c493a,jsxs as _0x151147,Fragment as _0xc16d68}from'react/jsx-runtime';import{Dropdown as _0x271335,clsx as _0x4fc2f0,Button as _0x47c0d7}from'@univerjs/design';import{useRef as _0x43a44d,createElement as _0x9d760e,forwardRef as _0x5dd029,useState as _0x105361,useEffect as _0xf1fe}from'react';import{CollaborationEvent as _0xfbd7ce,parseProtocolChangeset as _0x3bd4cc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1eb5ad,SessionStatus as _0x2028a0,UniverCollaborationClientPlugin as _0x32695c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4662fb,SetWorksheetActiveOperation as _0x382fbd}from'@univerjs/sheets';import{BehaviorSubject as _0x22afaf,Subject as _0x4d5a8a}from'rxjs';import{takeUntil as _0x5c0ffb,throttleTime as _0x3d75be}from'rxjs/operators';import{SetZoomRatioOperation as _0x3e9230,SetScrollOperation as _0x10ff22}from'@univerjs/sheets-ui';function k({ref:_0x6a9a4b,..._0x6607ad}){const _0x3eb271=_0xe409,{icon:_0x3fc80f,id:_0x4f9876,className:_0x3da3d3,extend:_0xf6b093,..._0x2044a2}=_0x6607ad,_0x3cb262=('univerjs-icon\x20univerjs-icon-'+_0x4f9876+'\x20'+(_0x3da3d3||''))[_0x3eb271(0x179)](),_0x1ced54=_0x43a44d('_'+Oe());return G(_0x3fc80f,''+_0x4f9876,{'defIds':_0x3fc80f[_0x3eb271(0x1b1)],'idSuffix':_0x1ced54[_0x3eb271(0x163)]},{'ref':_0x6a9a4b,'className':_0x3cb262,..._0x2044a2},_0xf6b093);}function G(_0x21771a,_0xa9d86f,_0x3dc626,_0x5cd706,_0x6b83d0){const _0x1104eb=_0xe409;return _0x9d760e(_0x21771a[_0x1104eb(0x156)],{'key':_0xa9d86f,...be(_0x21771a,_0x3dc626,_0x6b83d0),..._0x5cd706},(Ee(_0x21771a,_0x3dc626)[_0x1104eb(0x1e5)]||[])['map']((_0x2324d8,_0x44da57)=>G(_0x2324d8,_0xa9d86f+'-'+_0x21771a[_0x1104eb(0x156)]+'-'+_0x44da57,_0x3dc626,void 0x0,_0x6b83d0)));}function be(_0x405bd8,_0x497cb1,_0x3c8e7a){const _0x5697c3=_0xe409,_0x19d15b={..._0x405bd8[_0x5697c3(0x17b)]};_0x3c8e7a!=null&&_0x3c8e7a[_0x5697c3(0x1bb)]&&_0x19d15b[_0x5697c3(0x1b3)]===_0x5697c3(0x1bb)&&(_0x19d15b[_0x5697c3(0x1b3)]=_0x3c8e7a[_0x5697c3(0x1bb)]),_0x405bd8[_0x5697c3(0x156)]==='mask'&&_0x19d15b['id']&&(_0x19d15b['id']=_0x19d15b['id']+_0x497cb1[_0x5697c3(0x185)]),Object[_0x5697c3(0x18d)](_0x19d15b)[_0x5697c3(0x184)](([_0x27af38,_0x434ca1])=>{const _0x2d16ee=_0x5697c3;_0x27af38===_0x2d16ee(0x1ef)&&typeof _0x434ca1==_0x2d16ee(0x1f0)&&(_0x19d15b[_0x27af38]=_0x434ca1[_0x2d16ee(0x1b6)](/url\(#(.*)\)/,_0x2d16ee(0x177)+_0x497cb1[_0x2d16ee(0x185)]+')'));});const {defIds:_0x3ef991}=_0x497cb1;return!_0x3ef991||_0x3ef991[_0x5697c3(0x18e)]===0x0||(_0x405bd8[_0x5697c3(0x156)]===_0x5697c3(0x19f)&&_0x19d15b['xlink:href']&&(_0x19d15b[_0x5697c3(0x170)]=_0x19d15b[_0x5697c3(0x170)]+_0x497cb1['idSuffix']),Object['entries'](_0x19d15b)[_0x5697c3(0x184)](([_0x1e16c5,_0xd1753c])=>{const _0x48282f=_0x5697c3;typeof _0xd1753c==_0x48282f(0x1f0)&&(_0x19d15b[_0x1e16c5]=_0xd1753c[_0x48282f(0x1b6)](/url\(#(.*)\)/,'url(#$1'+_0x497cb1[_0x48282f(0x185)]+')'));})),_0x19d15b;}function Ee(_0x5ecafc,_0xb0ff3d){const _0xaac6fc=_0xe409;var _0x1649af;const {defIds:_0x57fb24}=_0xb0ff3d;return!_0x57fb24||_0x57fb24[_0xaac6fc(0x18e)]===0x0?_0x5ecafc:_0x5ecafc['tag']===_0xaac6fc(0x19a)&&((_0x1649af=_0x5ecafc['children'])!=null&&_0x1649af[_0xaac6fc(0x18e)])?{..._0x5ecafc,'children':_0x5ecafc[_0xaac6fc(0x1e5)]['map'](_0x2097ed=>typeof _0x2097ed[_0xaac6fc(0x17b)]['id']==_0xaac6fc(0x1f0)&&_0x57fb24&&_0x57fb24['includes'](_0x2097ed[_0xaac6fc(0x17b)]['id'])?{..._0x2097ed,'attrs':{..._0x2097ed[_0xaac6fc(0x17b)],'id':_0x2097ed[_0xaac6fc(0x17b)]['id']+_0xb0ff3d[_0xaac6fc(0x185)]}}:_0x2097ed)}:_0x5ecafc;}function Oe(){const _0x4c634c=_0xe409;return Math['random']()['toString'](0x24)[_0x4c634c(0x18b)](0x2,0x8);}function _0x33ed(){const _0x4233a7=['_unitID','PRESENTING','type','executeCommand','get','1729788GBCzyd','Present\x20this\x20document','_handleOffline','getLiveShareCoordinator','_commandService','FOLLOWING','map','LIVESHARE_FETCH_OPERATIONS','1em','init','unsubscribe','then','defIds','getUnitId','fill','UNIVER_SHEET','getTypeOfUnitAdded$','replace','parse','evenodd','onRendered','_mountLiveShare','colorChannel1','path','LIVESHARE_OPERATION','sessionStatus$','_presenter','button','HEADER_MENU','_handleOnline','IDLE','currentColor','_configService','_injector','displayName','sheet','default','live-share.config','LiveShareIcon','has','requireSession','_startLiveShareCoordinator','_collabSession','NEW_CHANGESETS','_startPresenting','data','disposeWithMe','next','470eqiCep','_stopFollowing','_beIdle','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','dispose','247406IwrpSk','_collabSessionService','ONLINE','_entities','_config','onCommandExecuted','getLiveShareCoordinatorSync','_sharedOperations','children','stopFollowing','presenting','stringify','_handleNewChangeSets','univer-size-4','_status$','live-share-icon','196dIBLcj','Stop\x20following','mask','string','reverse','dispose$','UNIVER_UNKNOWN','unitId','_commandDisposable','clear','memberID','5OqqcmR','tag','registerSharedOperation','registerComponent','send','values','text','assign','3393236xuwqKQ','getInitialStates','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','presenter','stopPresenting','current','none','delete','getMemberID','_reporters','getOwnPropertyDescriptor','from','getConfig','div','getCurrentTypeOfUnit$','4386376grmqFS','setConfig','offline','xlink:href','285137PKrCMj','_fetchOperations','asObservable','set','_uiPartsService','_stopPresenting','url(#$1','http://www.w3.org/2000/svg','trim','add','attrs','You\x27re\x20following\x20the\x20presenter','_status','idle','defineProperty','Start\x20following','includes','41430gpasBe','createInstance','forEach','idSuffix','LIVESHARE_NEW_HOST','shouldShareOperation','_univerInstanceService','following','OFFLINE','substring','Start','entries','length','234369DfjfQR','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','_init','subscribe','_handleTerminate','startFollowing','_liveShareService','pipe','UNIVER_LIVE_SHARE_PLUGIN','operations','defs','complete','Stop\x20presenting','params','NOT_FOLLOWING','use'];_0x33ed=function(){return _0x4233a7;};return _0x33ed();}k[_0x37c48f(0x1c7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x37c48f(0x178),'fill':_0x37c48f(0x164),'viewBox':'0\x200\x2017\x2017','width':_0x37c48f(0x1ad),'height':'1em'},'children':[{'tag':_0x37c48f(0x1bc),'attrs':{'fill':_0x37c48f(0x1c4),'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':_0x37c48f(0x1c4),'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':_0x37c48f(0x1b8),'clipRule':'evenodd'}}]},W=_0x5dd029(function(_0x31e086,_0x8c82f6){const _0x3cad22=_0x37c48f;return _0x9d760e(k,Object[_0x3cad22(0x15c)]({},_0x31e086,{'id':_0x3cad22(0x1ec),'ref':_0x8c82f6,'icon':we}));});W[_0x37c48f(0x1c7)]=_0x37c48f(0x1cb);class L extends _0x56ac81{constructor(){const _0x4dd519=_0x37c48f;super(...arguments),u(this,_0x4dd519(0x1e4),new Set()),u(this,_0x4dd519(0x167),new Set());}[_0x37c48f(0x157)](_0x2c4f01){const _0x2a6c26=_0x37c48f;return this[_0x2a6c26(0x1e4)][_0x2a6c26(0x17a)](_0x2c4f01),_0x14fed3(()=>this[_0x2a6c26(0x1e4)][_0x2a6c26(0x165)](_0x2c4f01));}['registerInitialStateReporter'](_0x4d105b){const _0x7286ea=_0x37c48f;return this[_0x7286ea(0x167)][_0x7286ea(0x17a)](_0x4d105b),_0x14fed3(()=>this[_0x7286ea(0x167)][_0x7286ea(0x165)](_0x4d105b));}[_0x37c48f(0x187)](_0x2dfe0a){const _0x14cc4c=_0x37c48f;return this[_0x14cc4c(0x1e4)][_0x14cc4c(0x1cc)](_0x2dfe0a);}[_0x37c48f(0x15e)](_0xe3cf1a){const _0x37aea6=_0x37c48f;return Array[_0x37aea6(0x169)](this[_0x37aea6(0x167)])[_0x37aea6(0x1ab)](_0x35e6a2=>_0x35e6a2(_0xe3cf1a));}}var Ne=Object[_0x37c48f(0x168)],Y=(_0x123d7,_0x1484b4,_0x49d19f,_0x3c0cdd)=>{const _0x9ce59e=_0x37c48f;for(var _0x45c3b6=_0x3c0cdd>0x1?void 0x0:_0x3c0cdd?Ne(_0x1484b4,_0x49d19f):_0x1484b4,_0x3d5235=_0x123d7[_0x9ce59e(0x18e)]-0x1,_0x488a22;_0x3d5235>=0x0;_0x3d5235--)(_0x488a22=_0x123d7[_0x3d5235])&&(_0x45c3b6=_0x488a22(_0x45c3b6)||_0x45c3b6);return _0x45c3b6;},_=(_0x3839bc,_0x1b3d1b)=>(_0x32464c,_0x1ae4f3)=>_0x1b3d1b(_0x32464c,_0x1ae4f3,_0x3839bc);let S=class extends _0x46b3fc{constructor(_0x370983,_0xe71a93,_0x1f54c1){const _0x5a7010=_0x37c48f;super(),u(this,_0x5a7010(0x1e0),new Map()),(this[_0x5a7010(0x188)]=_0x370983,this['_injector']=_0xe71a93,this[_0x5a7010(0x1de)]=_0x1f54c1,this[_0x5a7010(0x192)]());}async[_0x37c48f(0x1a8)](_0xbaa191){const _0x5aac94=_0x37c48f;return this[_0x5aac94(0x1e0)][_0x5aac94(0x1cc)](_0xbaa191)||await this['_startLiveShareCoordinator'](_0xbaa191),this['_entities'][_0x5aac94(0x1a4)](_0xbaa191);}[_0x37c48f(0x1e3)](_0x1e78a2){const _0x1bd250=_0x37c48f;var _0x5ade84;return(_0x5ade84=this[_0x1bd250(0x1e0)][_0x1bd250(0x1a4)](_0x1e78a2))!=null?_0x5ade84:null;}[_0x37c48f(0x192)](){const _0x172b40=_0x37c48f;this['_univerInstanceService'][_0x172b40(0x1b5)](_0x339dac[_0x172b40(0x1b4)])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](async _0x12f299=>{const _0x1f164a=_0x172b40,_0x17e224=_0x12f299[_0x1f164a(0x1b2)]();this[_0x1f164a(0x1e0)][_0x1f164a(0x1cc)](_0x17e224)||this[_0x1f164a(0x1ce)](_0x17e224);}),this[_0x172b40(0x188)]['getTypeOfUnitDisposed$'](_0x339dac['UNIVER_SHEET'])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](_0x102a61=>{const _0x2e9cf2=_0x172b40,_0x56aa42=_0x102a61[_0x2e9cf2(0x1b2)](),_0x2b0201=this['_entities'][_0x2e9cf2(0x1a4)](_0x56aa42);_0x2b0201==null||_0x2b0201['dispose']();});}async[_0x37c48f(0x1ce)](_0x5b5fdf){const _0xd07fe1=_0x37c48f,_0x448e24=await this['_collabSessionService'][_0xd07fe1(0x1cd)](_0x5b5fdf),_0x2217ff=this[_0xd07fe1(0x1c6)][_0xd07fe1(0x183)](N,_0x5b5fdf,_0x448e24);return _0x2217ff['init'](),this['_entities'][_0xd07fe1(0x174)](_0x5b5fdf,_0x2217ff),_0x2217ff;}};S=Y([_(0x0,_0x3fde3e),_(0x1,_0x19be43(_0x26383e)),_(0x2,_0x19be43(_0x1eb5ad))],S);var c=(_0x39528e=>(_0x39528e[_0x37c48f(0x18a)]=_0x37c48f(0x16f),_0x39528e[_0x37c48f(0x1c3)]=_0x37c48f(0x17e),_0x39528e[_0x37c48f(0x1aa)]=_0x37c48f(0x189),_0x39528e[_0x37c48f(0x19e)]=_0x37c48f(0x191),_0x39528e[_0x37c48f(0x1a1)]=_0x37c48f(0x1e7),_0x39528e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x46b3fc{constructor(_0x24039b,_0x1907e1,_0x3d58c3,_0x471940,_0x78b654){const _0x4078f8=_0x37c48f;super(),u(this,_0x4078f8(0x1eb),new _0x22afaf(_0x4078f8(0x17e))),u(this,'status$',this[_0x4078f8(0x1eb)][_0x4078f8(0x173)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x4078f8(0x1bf),null),(this[_0x4078f8(0x1a0)]=_0x24039b,this[_0x4078f8(0x1cf)]=_0x1907e1,this[_0x4078f8(0x1c5)]=_0x3d58c3,this[_0x4078f8(0x196)]=_0x471940,this['_commandService']=_0x78b654);}get['_status'](){return this['_status$']['getValue']();}['dispose'](){const _0x3c9b6a=_0x37c48f;var _0x3004c1;(_0x3004c1=this[_0x3c9b6a(0x152)])==null||_0x3004c1[_0x3c9b6a(0x1dc)](),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x1d4)](_0x3c9b6a(0x17e)),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x19b)]();}['getStatus'](){const _0x434247=_0x37c48f;return this[_0x434247(0x17d)];}[_0x37c48f(0x1ae)](){const _0x582012=_0x37c48f;this[_0x582012(0x192)]||(this[_0x582012(0x192)]=!0x0,this[_0x582012(0x1cf)][_0x582012(0x1be)][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x474db0=>{const _0x3b3a2a=_0x582012;switch(_0x474db0){case _0x2028a0['OFFLINE']:this[_0x3b3a2a(0x1a7)]();break;case _0x2028a0[_0x3b3a2a(0x1df)]:this[_0x3b3a2a(0x1c2)]();break;}}),this[_0x582012(0x1cf)]['event$'][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x31de8c=>{const _0x5e9b77=_0x582012,{eventID:_0x506dec}=_0x31de8c;switch(_0x506dec){case _0xfbd7ce[_0x5e9b77(0x186)]:this[_0x5e9b77(0x15f)](_0x31de8c);break;case _0xfbd7ce['LIVESHARE_OPERATION']:this['_handleOperation'](_0x31de8c);break;case _0xfbd7ce[_0x5e9b77(0x1db)]:this['_handleTerminate']();break;case _0xfbd7ce[_0x5e9b77(0x1d0)]:this[_0x5e9b77(0x1e9)](_0x31de8c);break;}}));}[_0x37c48f(0x1d9)](){const _0x3eecda=_0x37c48f;this[_0x3eecda(0x1cf)]['send']({'eventID':_0xfbd7ce['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3eecda(0x1a0)],'userID':this[_0x3eecda(0x1cf)][_0x3eecda(0x166)]()}},this[_0x3eecda(0x1a0)]);}[_0x37c48f(0x162)](){const _0x5906ad=_0x37c48f;this[_0x5906ad(0x17d)]===_0x5906ad(0x1e7)&&(this[_0x5906ad(0x1eb)]['next'](_0x5906ad(0x17e)),this[_0x5906ad(0x1cf)][_0x5906ad(0x159)]({'eventID':_0xfbd7ce[_0x5906ad(0x1db)],'data':{'unitID':this[_0x5906ad(0x1a0)]}},this[_0x5906ad(0x1a0)]));}[_0x37c48f(0x195)](){const _0x10cb14=_0x37c48f;this[_0x10cb14(0x17d)]===_0x10cb14(0x191)&&(this[_0x10cb14(0x1eb)][_0x10cb14(0x1d4)]('following'),this['_startFollowing']());}[_0x37c48f(0x1e6)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x37c48f(0x15f)](_0x575056){const _0x452080=_0x37c48f,{presenter:_0x26a52b}=_0x575056[_0x452080(0x1d2)],_0x1ec058=this[_0x452080(0x1cf)][_0x452080(0x166)]();this['_presenter']=_0x26a52b,_0x26a52b===_0x1ec058?(this[_0x452080(0x1d6)](),this[_0x452080(0x1d1)]()):this['_status']!=='not-following'&&(this[_0x452080(0x176)](),this['_startFollowing']());}[_0x37c48f(0x172)](){const _0x26024b=_0x37c48f,_0x18a090={'eventID':_0xfbd7ce[_0x26024b(0x1ac)]};this[_0x26024b(0x1cf)][_0x26024b(0x159)](_0x18a090,this['_unitID']);}[_0x37c48f(0x194)](){const _0xa0f93=_0x37c48f;this[_0xa0f93(0x1bf)]=null,this['_status']!==_0xa0f93(0x1e7)&&this[_0xa0f93(0x1d7)]();}[_0x37c48f(0x1e9)](_0xf00b52){const _0x260620=_0x37c48f;if(this[_0x260620(0x17d)]===_0x260620(0x189)&&this[_0x260620(0x1bf)]===_0xf00b52[_0x260620(0x1d2)][_0x260620(0x154)]){const _0x53f7bf=_0x3bd4cc(_0xf00b52[_0x260620(0x1d2)])['mutations'][_0x260620(0x1f1)]()['find'](_0x5419f1=>_0x5419f1['id']===_0x4662fb['id']);if(_0x53f7bf){const _0x17a862=_0x53f7bf[_0x260620(0x19d)][_0x260620(0x1f4)],_0x12d9c8=_0x53f7bf['params'][_0x260620(0x1c8)]['id'];setTimeout(()=>{const _0x460506=_0x260620;this[_0x460506(0x1a9)][_0x460506(0x1a3)](_0x382fbd['id'],{'unitId':_0x17a862,'subUnitId':_0x12d9c8},{'fromCollab':!0x0});});}}}[_0x37c48f(0x1d1)](){const _0x1c754c=_0x37c48f;this[_0x1c754c(0x1eb)][_0x1c754c(0x1d4)](_0x1c754c(0x1e7));const _0x2a2428=new Map(),_0x2efb46=this[_0x1c754c(0x152)]=new _0x2d7a31();_0x2efb46[_0x1c754c(0x17a)](_0x14fed3(()=>{const _0x2aab58=_0x1c754c;_0x2a2428['forEach'](_0x5d25ad=>_0x5d25ad['complete']()),_0x2a2428[_0x2aab58(0x153)]();})),_0x2efb46[_0x1c754c(0x17a)](this[_0x1c754c(0x1a9)][_0x1c754c(0x1e2)](_0x454cc7=>{const _0x3e998b=_0x1c754c;var _0x5020ce;if(_0x454cc7['type']!==_0x412c4e['OPERATION']||!this['_liveShareService'][_0x3e998b(0x187)](_0x454cc7['id']))return;const {id:_0x313e1d}=_0x454cc7;let _0x1bca42;_0x2a2428[_0x3e998b(0x1cc)](_0x313e1d)?_0x1bca42=_0x2a2428['get'](_0x313e1d):(_0x1bca42=new _0x4d5a8a(),_0x2a2428[_0x3e998b(0x174)](_0x313e1d,_0x1bca42),_0x1bca42[_0x3e998b(0x197)](_0x3d75be((_0x5020ce=this[_0x3e998b(0x1c5)][_0x3e998b(0x16a)](Ce))!=null?_0x5020ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e998b(0x193)](_0x26576b=>{const _0x20d493=_0x3e998b;this[_0x20d493(0x1cf)][_0x20d493(0x159)]({'eventID':_0xfbd7ce[_0x20d493(0x1bd)],'data':{'unitID':this[_0x20d493(0x1a0)],'operations':{[_0x26576b['id']]:{'id':_0x26576b['id'],'params':JSON[_0x20d493(0x1e8)](_0x26576b[_0x20d493(0x19d)])}}}},this[_0x20d493(0x1a0)]);})),_0x1bca42[_0x3e998b(0x1d4)](_0x454cc7);})),this[_0x1c754c(0x196)][_0x1c754c(0x15e)](this[_0x1c754c(0x1a0)])[_0x1c754c(0x184)](_0x11a717=>this[_0x1c754c(0x1cf)][_0x1c754c(0x159)]({'eventID':_0xfbd7ce[_0x1c754c(0x1bd)],'data':{'unitID':this[_0x1c754c(0x1a0)],'operations':{[_0x11a717['id']]:{'id':_0x11a717['id'],'params':JSON['stringify'](_0x11a717['params'])}}}},this[_0x1c754c(0x1a0)]));}[_0x37c48f(0x176)](){const _0x4fa1ae=_0x37c48f;var _0x1e6b49;this[_0x4fa1ae(0x1eb)][_0x4fa1ae(0x1d4)](_0x4fa1ae(0x17e)),(_0x1e6b49=this[_0x4fa1ae(0x152)])==null||_0x1e6b49[_0x4fa1ae(0x1dc)](),this[_0x4fa1ae(0x152)]=null;}['_startFollowing'](){const _0x59deb8=_0x37c48f;var _0x20e2fd;(_0x20e2fd=this[_0x59deb8(0x152)])==null||_0x20e2fd[_0x59deb8(0x1dc)](),this['_status$'][_0x59deb8(0x1d4)](_0x59deb8(0x189));}['_beIdle'](){const _0xb90c9=_0x37c48f;var _0x97f99b;this['_status$'][_0xb90c9(0x1d4)](_0xb90c9(0x17e)),(_0x97f99b=this[_0xb90c9(0x152)])==null||_0x97f99b['dispose'](),this[_0xb90c9(0x152)]=null;}['_stopFollowing'](){const _0x2100ba=_0x37c48f;var _0x4dc1e1;this['_status$'][_0x2100ba(0x1d4)](_0x2100ba(0x191)),(_0x4dc1e1=this['_commandDisposable'])==null||_0x4dc1e1[_0x2100ba(0x1dc)]();}['_handleOperation'](_0x31017b){const _0x2637e2=_0x37c48f;if([_0x2637e2(0x1e7),_0x2637e2(0x191),'offline'][_0x2637e2(0x181)](this[_0x2637e2(0x17d)])||!_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]||_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]===this[_0x2637e2(0x1cf)][_0x2637e2(0x166)]())return;this[_0x2637e2(0x17d)]===_0x2637e2(0x17e)&&this['_startFollowing']();const _0x22448a=_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x199)];Object[_0x2637e2(0x15a)](_0x22448a)[_0x2637e2(0x184)](_0x27d47b=>{const _0x586c00=_0x2637e2;this[_0x586c00(0x1a9)][_0x586c00(0x1a3)](_0x27d47b['id'],_0x27d47b[_0x586c00(0x19d)]?JSON[_0x586c00(0x1b7)](_0x27d47b[_0x586c00(0x19d)]):null,{'fromCollab':!0x0});});}[_0x37c48f(0x1a7)](){const _0x329270=_0x37c48f;var _0x6f6b0a;this[_0x329270(0x1eb)][_0x329270(0x1d4)]('offline'),(_0x6f6b0a=this['_commandDisposable'])==null||_0x6f6b0a[_0x329270(0x1dc)]();}[_0x37c48f(0x1c2)](){const _0x4dcb9b=_0x37c48f;this[_0x4dcb9b(0x1eb)][_0x4dcb9b(0x1d4)]('idle'),this[_0x4dcb9b(0x172)]();}};N=Y([_(0x2,_0x347dc0),_(0x3,_0x19be43(L)),_(0x4,_0x4afaea)],N);function Le(){const _0x1ea1a8=_0x37c48f,_0x22966e=_0x3d5a42(S),_0x2236d8=_0x3d5a42(_0x3fde3e),_0x5cd4cb=_0x38adb2(()=>_0x2236d8[_0x1ea1a8(0x16c)](_0x339dac[_0x1ea1a8(0x1b4)]),void 0x0,!0x1,[]),[_0x1611cd,_0x217445]=_0x105361(null),[_0x55b7dd,_0x20ae94]=_0x105361(c[_0x1ea1a8(0x1c3)]),_0x315ebb=_0x43a44d(null);return _0xf1fe(()=>(_0x5cd4cb&&_0x22966e[_0x1ea1a8(0x1a8)](_0x5cd4cb['getUnitId']())[_0x1ea1a8(0x1b0)](_0x3c2aef=>{_0x217445(_0x3c2aef),_0x315ebb['current']=_0x3c2aef['status$']['subscribe'](_0x3e5d2d=>{_0x20ae94(_0x3e5d2d);});}),()=>{const _0x819182=_0x1ea1a8;var _0x258e73;(_0x258e73=_0x315ebb[_0x819182(0x163)])==null||_0x258e73[_0x819182(0x1af)](),_0x315ebb[_0x819182(0x163)]=null;}),[_0x5cd4cb,_0x22966e]),_0x1611cd?_0x1c493a(_0x271335,{'align':'end','disabled':_0x55b7dd===c[_0x1ea1a8(0x18a)],'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':_0x1c493a(Re,{'status':_0x55b7dd,'coordinator':_0x1611cd}),'children':_0x1c493a(_0x1ea1a8(0x1c0),{'className':_0x4fc2f0(_0x1ea1a8(0x1da),{'univer-cursor-not-allowed':_0x55b7dd===c[_0x1ea1a8(0x18a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x55b7dd!==c['OFFLINE']}),'type':_0x1ea1a8(0x1c0),'children':_0x1c493a(W,{'className':_0x1ea1a8(0x1ea)})})}):null;}function Re(_0x37a44d){const _0x147e21=_0x37c48f,{status:_0x4931d6,coordinator:_0x557276}=_0x37a44d;switch(_0x4931d6){case c[_0x147e21(0x1c3)]:return _0x1c493a($e,{'coordinator':_0x557276});case c[_0x147e21(0x1aa)]:return _0x1c493a(xe,{'coordinator':_0x557276});case c[_0x147e21(0x19e)]:return _0x1c493a(Pe,{'coordinator':_0x557276});case c['OFFLINE']:return _0x1c493a(Te,{});case c[_0x147e21(0x1a1)]:return _0x1c493a(Ae,{'coordinator':_0x557276});default:return null;}}function $e(_0x391410){const _0x40007c=_0x37c48f,{coordinator:_0x5774ff}=_0x391410;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x40007c(0x16b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40007c(0x1a6)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5774ff[_0x40007c(0x1d9)](),'children':_0x40007c(0x18c)})]});}function xe(_0xcdaabc){const _0x131849=_0x37c48f,{coordinator:_0x5a040e}=_0xcdaabc;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x131849(0x16b),{'className':_0x131849(0x190),'children':_0x131849(0x17c)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5a040e['stopFollowing'](),'children':_0x131849(0x1ee)})]});}function Pe(_0x1887a6){const _0x347485=_0x37c48f,{coordinator:_0x1a1a0b}=_0x1887a6;return _0x151147(_0xc16d68,{'children':[_0x1c493a('div',{'className':_0x347485(0x190),'children':_0x347485(0x160)}),_0x1c493a(_0x47c0d7,{'variant':_0x347485(0x15b),'onClick':()=>_0x1a1a0b[_0x347485(0x195)](),'children':_0x347485(0x180)})]});}function Ae(_0x412684){const _0x4e2d21=_0x37c48f,{coordinator:_0x1d6da3}=_0x412684;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x4e2d21(0x16b),{'className':_0x4e2d21(0x190),'children':_0x4e2d21(0x1d8)}),_0x1c493a(_0x47c0d7,{'variant':_0x4e2d21(0x1c9),'onClick':()=>_0x1d6da3['stopPresenting'](),'children':_0x4e2d21(0x19c)})]});}function Te(){return _0x1c493a(_0xc16d68,{'children':'You\x27are\x20offline.'});}function _0xe409(_0xaa3080,_0x1dee92){_0xaa3080=_0xaa3080-0x152;const _0x33ed51=_0x33ed();let _0xe409db=_0x33ed51[_0xaa3080];return _0xe409db;}var Fe=Object[_0x37c48f(0x168)],He=(_0x230e79,_0x12bf92,_0x2e8b43,_0x205585)=>{const _0x88815=_0x37c48f;for(var _0x20393d=_0x205585>0x1?void 0x0:_0x205585?Fe(_0x12bf92,_0x2e8b43):_0x12bf92,_0x13c93a=_0x230e79[_0x88815(0x18e)]-0x1,_0x13d586;_0x13c93a>=0x0;_0x13c93a--)(_0x13d586=_0x230e79[_0x13c93a])&&(_0x20393d=_0x13d586(_0x20393d)||_0x20393d);return _0x20393d;},A=(_0x10527a,_0x4d9110)=>(_0x4994de,_0x51e168)=>_0x4d9110(_0x4994de,_0x51e168,_0x10527a);let m=class extends _0x56ac81{constructor(_0x4bb6d3,_0x5d888e){const _0x58644e=_0x37c48f;super(),this[_0x58644e(0x1c6)]=_0x4bb6d3,this[_0x58644e(0x175)]=_0x5d888e,this[_0x58644e(0x1ba)]();}[_0x37c48f(0x1ba)](){const _0x47fac4=_0x37c48f;this[_0x47fac4(0x1d3)](this[_0x47fac4(0x175)][_0x47fac4(0x158)](_0x1d340b[_0x47fac4(0x1c1)],()=>_0x573695(Le,this[_0x47fac4(0x1c6)])));}};m=He([A(0x0,_0x19be43(_0x26383e)),A(0x1,_0x5ded7e)],m);const ye=_0x37c48f(0x1ca),T={};var Ue=Object[_0x37c48f(0x168)],Ve=(_0x540eb4,_0x2a9b18,_0x455760,_0x812682)=>{for(var _0x37e0d4=_0x812682>0x1?void 0x0:_0x812682?Ue(_0x2a9b18,_0x455760):_0x2a9b18,_0x1f81a3=_0x540eb4['length']-0x1,_0x1ca031;_0x1f81a3>=0x0;_0x1f81a3--)(_0x1ca031=_0x540eb4[_0x1f81a3])&&(_0x37e0d4=_0x1ca031(_0x37e0d4)||_0x37e0d4);return _0x37e0d4;},je=(_0x225310,_0x4a766c)=>(_0x4352a8,_0x7b2082)=>_0x4a766c(_0x4352a8,_0x7b2082,_0x225310);let I=class extends _0x56ac81{constructor(_0x1ca355){const _0x21146b=_0x37c48f;super(),this[_0x21146b(0x196)]=_0x1ca355,this['_init']();}['_init'](){const _0x1e41bd=_0x37c48f;[_0x3e9230['id'],_0x10ff22['id'],_0x382fbd['id']][_0x1e41bd(0x184)](_0x442392=>{const _0x5a4ee6=_0x1e41bd;this[_0x5a4ee6(0x1d3)](this['_liveShareService']['registerSharedOperation'](_0x442392));});}};I=Ve([je(0x0,_0x19be43(L))],I);var Me=Object[_0x37c48f(0x17f)],ke=Object[_0x37c48f(0x168)],Ge=(_0x4d96d2,_0x46dd97,_0x578493)=>_0x46dd97 in _0x4d96d2?Me(_0x4d96d2,_0x46dd97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x578493}):_0x4d96d2[_0x46dd97]=_0x578493,We=(_0x124c68,_0x4ea24f,_0x4db16c,_0x23dbd8)=>{const _0x16e381=_0x37c48f;for(var _0x4bbc4c=_0x23dbd8>0x1?void 0x0:_0x23dbd8?ke(_0x4ea24f,_0x4db16c):_0x4ea24f,_0x8b876f=_0x124c68[_0x16e381(0x18e)]-0x1,_0x1828b3;_0x8b876f>=0x0;_0x8b876f--)(_0x1828b3=_0x124c68[_0x8b876f])&&(_0x4bbc4c=_0x1828b3(_0x4bbc4c)||_0x4bbc4c);return _0x4bbc4c;},F=(_0x2ea2ad,_0x5bd073)=>(_0x23bb14,_0x3baa36)=>_0x5bd073(_0x23bb14,_0x3baa36,_0x2ea2ad),B=(_0x177243,_0x12ee22,_0x5f074d)=>Ge(_0x177243,typeof _0x12ee22!='symbol'?_0x12ee22+'':_0x12ee22,_0x5f074d);const Ye=_0x37c48f(0x198);let b=class extends _0x541451{constructor(_0x42ba05=T,_0x18530,_0x4a93fd){const _0x22037d=_0x37c48f;super(),this[_0x22037d(0x1e1)]=_0x42ba05,this[_0x22037d(0x1c6)]=_0x18530,this[_0x22037d(0x1c5)]=_0x4a93fd;const {..._0x28cc9a}=_0x367c89({},T,this[_0x22037d(0x1e1)]);this[_0x22037d(0x1c5)][_0x22037d(0x16e)](ye,_0x28cc9a);}['onStarting'](){const _0x66a57b=_0x37c48f;_0x5a7450(this[_0x66a57b(0x1c6)],_0x3edeed([[L],[S],[I],[m]],this['_config']['override'])),_0x427e11(this[_0x66a57b(0x1c6)],[[I]]);}[_0x37c48f(0x1b9)](){const _0x2a4dcb=_0x37c48f;_0x427e11(this[_0x2a4dcb(0x1c6)],[[m]]);}};B(b,_0x37c48f(0x1a2),_0x339dac[_0x37c48f(0x1f3)]),B(b,'pluginName',Ye),b=We([_0x2d581b(_0x32695c),F(0x1,_0x19be43(_0x26383e)),F(0x2,_0x347dc0)],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 _0x2284b3=_0x2a73;(function(_0x331e0f,_0x56b98e){const _0x468944=_0x2a73,_0x3f687d=_0x331e0f();while(!![]){try{const _0x553d88=-parseInt(_0x468944(0x1ad))/0x1*(parseInt(_0x468944(0x1bd))/0x2)+-parseInt(_0x468944(0x1c3))/0x3*(parseInt(_0x468944(0x1b9))/0x4)+parseInt(_0x468944(0x1b4))/0x5+-parseInt(_0x468944(0x1b5))/0x6*(parseInt(_0x468944(0x1ab))/0x7)+parseInt(_0x468944(0x1aa))/0x8+-parseInt(_0x468944(0x1b3))/0x9+parseInt(_0x468944(0x1c0))/0xa*(parseInt(_0x468944(0x1bb))/0xb);if(_0x553d88===_0x56b98e)break;else _0x3f687d['push'](_0x3f687d['shift']());}catch(_0x411aed){_0x3f687d['push'](_0x3f687d['shift']());}}}(_0x5950,0x98b80));function _0x5950(){const _0x155d29=['_initialize','521496XBElMj','2942555LKLqkb','1685382eVzrrq','getSheetId','getActiveWorkbook','stopFollowing','92ZlyCab','startRow','550iULHjU','tryStartPresenting','229202xeVKqD','syncExecuteCommand','extend','178230qnVvLX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','87537kMrshX','startFollowing','_commandService','getStatus','getActiveSheet','getId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getRenderById','_injector','startColumn','getUnitId','6657824kXGzPq','21exHixp','IDLE','1XqgIIn','PRESENTING','startPresenting','executeCommand','get'];_0x5950=function(){return _0x155d29;};return _0x5950();}import{LiveShareController as _0x46f7e9,LiveShareStatus as _0x5f0174}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xe13cf2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x24c9fb}from'@univerjs/sheets';import{SetScrollOperation as _0x431eb8}from'@univerjs/sheets-ui';import{FRange as _0x4c30e7}from'@univerjs/sheets/facade';import{FUniver as _0x5cddf1,FEnum as _0x276510}from'@univerjs/core/facade';class I extends _0x4c30e7{[_0x2284b3(0x1b2)](_0x23c393,_0x582871,_0x1f15c7,_0x27f3bb,_0x128463){const _0x5ccaaa=_0x2284b3,_0x34d743=_0x23c393[_0x5ccaaa(0x1b1)](_0x46f7e9),_0x5f1fe7=_0x23c393[_0x5ccaaa(0x1b1)](_0xe13cf2),_0x393756=_0x582871[_0x5ccaaa(0x1ce)](),_0x3b8f65=_0x582871[_0x5ccaaa(0x1c7)](),_0x32f0c2=_0x34d743['getLiveShareCoordinatorSync'](_0x393756);(_0x32f0c2==null?void 0x0:_0x32f0c2['getStatus']())!==_0x5f0174[_0x5ccaaa(0x1ae)]||(_0x1f15c7['getSheetId']()!==_0x3b8f65['getSheetId']()&&this[_0x5ccaaa(0x1c5)][_0x5ccaaa(0x1b0)](_0x24c9fb['id'],{'unitId':_0x393756,'subUnitId':_0x1f15c7[_0x5ccaaa(0x1b6)]()}),!_0x5f1fe7[_0x5ccaaa(0x1cb)](_0x393756))||_0x128463[_0x5ccaaa(0x1be)](_0x431eb8['id'],{'unitId':_0x582871[_0x5ccaaa(0x1ce)](),'sheetId':_0x1f15c7[_0x5ccaaa(0x1b6)](),'sheetViewStartRow':_0x27f3bb[_0x5ccaaa(0x1ba)],'sheetViewStartColumn':_0x27f3bb[_0x5ccaaa(0x1cd)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4c30e7['extend'](I);class m extends _0x5cddf1{['getLiveShareStatus'](){const _0x132603=_0x2284b3;var _0x44b715,_0x2431e7;const _0x548618=this[_0x132603(0x1cc)][_0x132603(0x1b1)](_0x46f7e9),_0x3e76a9=(_0x44b715=this[_0x132603(0x1b7)]())==null?void 0x0:_0x44b715[_0x132603(0x1c8)]();if(!_0x3e76a9)throw new Error(_0x132603(0x1c1));const _0x48276d=_0x548618[_0x132603(0x1c2)](_0x3e76a9);return(_0x2431e7=_0x48276d==null?void 0x0:_0x48276d[_0x132603(0x1c6)]())!=null?_0x2431e7:_0x5f0174[_0x132603(0x1ac)];}[_0x2284b3(0x1c4)](){const _0x1dfcd5=_0x2284b3;var _0x5c972e;const _0x13b22f=this['_injector']['get'](_0x46f7e9),_0x1e1414=(_0x5c972e=this['getActiveWorkbook']())==null?void 0x0:_0x5c972e[_0x1dfcd5(0x1c8)]();if(!_0x1e1414)throw new Error(_0x1dfcd5(0x1c1));const _0x5bce7c=_0x13b22f[_0x1dfcd5(0x1c2)](_0x1e1414);if(!_0x5bce7c)throw new Error(_0x1dfcd5(0x1c9));_0x5bce7c['startFollowing']();}[_0x2284b3(0x1b8)](){const _0x15f16d=_0x2284b3;var _0x3b87cc;const _0x16117d=this[_0x15f16d(0x1cc)][_0x15f16d(0x1b1)](_0x46f7e9),_0x4eb8f8=(_0x3b87cc=this['getActiveWorkbook']())==null?void 0x0:_0x3b87cc['getId']();if(!_0x4eb8f8)throw new Error(_0x15f16d(0x1c1));const _0x224785=_0x16117d[_0x15f16d(0x1c2)](_0x4eb8f8);if(!_0x224785)throw new Error(_0x15f16d(0x1c9));_0x224785['stopFollowing']();}[_0x2284b3(0x1af)](){const _0x219fc7=_0x2284b3;var _0x3b517a;const _0x3f845c=this[_0x219fc7(0x1cc)][_0x219fc7(0x1b1)](_0x46f7e9),_0x462ac0=(_0x3b517a=this[_0x219fc7(0x1b7)]())==null?void 0x0:_0x3b517a[_0x219fc7(0x1c8)]();if(!_0x462ac0)throw new Error(_0x219fc7(0x1c1));const _0x3d594d=_0x3f845c[_0x219fc7(0x1c2)](_0x462ac0);if(!_0x3d594d)throw new Error(_0x219fc7(0x1c9));_0x3d594d[_0x219fc7(0x1bc)]();}[_0x2284b3(0x1ca)](){const _0x3d8d97=_0x2284b3;var _0x1aa3f4;const _0xa37566=this[_0x3d8d97(0x1cc)][_0x3d8d97(0x1b1)](_0x46f7e9),_0x1deada=(_0x1aa3f4=this[_0x3d8d97(0x1b7)]())==null?void 0x0:_0x1aa3f4[_0x3d8d97(0x1c8)]();if(!_0x1deada)throw new Error('No\x20active\x20workbook\x20found.');const _0x83508f=_0xa37566[_0x3d8d97(0x1c2)](_0x1deada);if(!_0x83508f)throw new Error(_0x3d8d97(0x1c9));_0x83508f[_0x3d8d97(0x1ca)]();}}_0x5cddf1[_0x2284b3(0x1bf)](m);class C extends _0x276510{get['LiveShareStatusEnum'](){return _0x5f0174;}}function _0x2a73(_0x41ea3a,_0x43dcfe){_0x41ea3a=_0x41ea3a-0x1aa;const _0x595010=_0x5950();let _0x2a73b1=_0x595010[_0x41ea3a];return _0x2a73b1;}_0x276510[_0x2284b3(0x1bf)](C);
1
+ const _0x3cf2eb=_0x25fd;(function(_0x3426c4,_0xc300d5){const _0x1b917e=_0x25fd,_0x52bd99=_0x3426c4();while(!![]){try{const _0x2ebdaa=parseInt(_0x1b917e(0xca))/0x1+parseInt(_0x1b917e(0xbf))/0x2+-parseInt(_0x1b917e(0xc1))/0x3+-parseInt(_0x1b917e(0xbe))/0x4*(parseInt(_0x1b917e(0xc7))/0x5)+parseInt(_0x1b917e(0xcc))/0x6+parseInt(_0x1b917e(0xb9))/0x7*(-parseInt(_0x1b917e(0xc8))/0x8)+-parseInt(_0x1b917e(0xcf))/0x9*(-parseInt(_0x1b917e(0xd0))/0xa);if(_0x2ebdaa===_0xc300d5)break;else _0x52bd99['push'](_0x52bd99['shift']());}catch(_0x1d1cb6){_0x52bd99['push'](_0x52bd99['shift']());}}}(_0x5ee6,0x5bd55));import{LiveShareController as _0x3a1fd5,LiveShareStatus as _0x77b83f}from'@univerjs-pro/live-share';function _0x5ee6(){const _0x2d767a=['getActiveSheet','stopPresenting','getSheetId','startRow','3135wEAthP','54976Vnupms','tryStartPresenting','519533jESrhi','getLiveShareStatus','1982910yISqTe','No\x20active\x20workbook\x20found.','get','368361ZJNXgJ','150slyQkK','getRenderById','_commandService','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','IDLE','getId','PRESENTING','LiveShareStatusEnum','stopFollowing','getLiveShareCoordinatorSync','434lgpIzs','getActiveWorkbook','extend','getStatus','startFollowing','4588gCyMwT','246794YxixNo','getUnitId','197904xEJQyR','syncExecuteCommand'];_0x5ee6=function(){return _0x2d767a;};return _0x5ee6();}import{IRenderManagerService as _0x375d36}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4be7a4}from'@univerjs/sheets';import{SetScrollOperation as _0x14c1d9}from'@univerjs/sheets-ui';import{FRange as _0xf46abf}from'@univerjs/sheets/facade';import{FUniver as _0x5a3a54,FEnum as _0x1a4f3f}from'@univerjs/core/facade';class I extends _0xf46abf{['_initialize'](_0x114ef4,_0x4d389a,_0x11b815,_0x1bfcba,_0x531be3){const _0x1daa41=_0x25fd,_0x377218=_0x114ef4[_0x1daa41(0xce)](_0x3a1fd5),_0x43d003=_0x114ef4[_0x1daa41(0xce)](_0x375d36),_0x1a6b58=_0x4d389a['getUnitId'](),_0x33a7a5=_0x4d389a[_0x1daa41(0xc3)](),_0x242f2c=_0x377218['getLiveShareCoordinatorSync'](_0x1a6b58);(_0x242f2c==null?void 0x0:_0x242f2c['getStatus']())!==_0x77b83f[_0x1daa41(0xb5)]||(_0x11b815[_0x1daa41(0xc5)]()!==_0x33a7a5[_0x1daa41(0xc5)]()&&this[_0x1daa41(0xd2)]['executeCommand'](_0x4be7a4['id'],{'unitId':_0x1a6b58,'subUnitId':_0x11b815[_0x1daa41(0xc5)]()}),!_0x43d003[_0x1daa41(0xd1)](_0x1a6b58))||_0x531be3[_0x1daa41(0xc2)](_0x14c1d9['id'],{'unitId':_0x4d389a[_0x1daa41(0xc0)](),'sheetId':_0x11b815[_0x1daa41(0xc5)](),'sheetViewStartRow':_0x1bfcba[_0x1daa41(0xc6)],'sheetViewStartColumn':_0x1bfcba[_0x1daa41(0xd5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xf46abf['extend'](I);class m extends _0x5a3a54{[_0x3cf2eb(0xcb)](){const _0xff1c3f=_0x3cf2eb;var _0x2ccf21,_0x181c46;const _0x1d2a53=this[_0xff1c3f(0xd3)][_0xff1c3f(0xce)](_0x3a1fd5),_0x273fb5=(_0x2ccf21=this['getActiveWorkbook']())==null?void 0x0:_0x2ccf21['getId']();if(!_0x273fb5)throw new Error(_0xff1c3f(0xcd));const _0xa59f44=_0x1d2a53[_0xff1c3f(0xb8)](_0x273fb5);return(_0x181c46=_0xa59f44==null?void 0x0:_0xa59f44[_0xff1c3f(0xbc)]())!=null?_0x181c46:_0x77b83f[_0xff1c3f(0xd6)];}['startFollowing'](){const _0x3c1928=_0x3cf2eb;var _0x539cdc;const _0x36da3b=this[_0x3c1928(0xd3)][_0x3c1928(0xce)](_0x3a1fd5),_0x166f01=(_0x539cdc=this['getActiveWorkbook']())==null?void 0x0:_0x539cdc[_0x3c1928(0xb4)]();if(!_0x166f01)throw new Error('No\x20active\x20workbook\x20found.');const _0x55a7dc=_0x36da3b['getLiveShareCoordinatorSync'](_0x166f01);if(!_0x55a7dc)throw new Error(_0x3c1928(0xd4));_0x55a7dc[_0x3c1928(0xbd)]();}['stopFollowing'](){const _0x54f288=_0x3cf2eb;var _0x13fd99;const _0x28ff65=this[_0x54f288(0xd3)][_0x54f288(0xce)](_0x3a1fd5),_0x494311=(_0x13fd99=this[_0x54f288(0xba)]())==null?void 0x0:_0x13fd99[_0x54f288(0xb4)]();if(!_0x494311)throw new Error('No\x20active\x20workbook\x20found.');const _0x141a13=_0x28ff65[_0x54f288(0xb8)](_0x494311);if(!_0x141a13)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x141a13[_0x54f288(0xb7)]();}['startPresenting'](){const _0x17c0e4=_0x3cf2eb;var _0x4cdf7b;const _0x93dff6=this[_0x17c0e4(0xd3)][_0x17c0e4(0xce)](_0x3a1fd5),_0x499c1b=(_0x4cdf7b=this['getActiveWorkbook']())==null?void 0x0:_0x4cdf7b['getId']();if(!_0x499c1b)throw new Error(_0x17c0e4(0xcd));const _0x38a621=_0x93dff6['getLiveShareCoordinatorSync'](_0x499c1b);if(!_0x38a621)throw new Error(_0x17c0e4(0xd4));_0x38a621[_0x17c0e4(0xc9)]();}[_0x3cf2eb(0xc4)](){const _0x12d925=_0x3cf2eb;var _0x149715;const _0x53e249=this[_0x12d925(0xd3)][_0x12d925(0xce)](_0x3a1fd5),_0x3b989c=(_0x149715=this[_0x12d925(0xba)]())==null?void 0x0:_0x149715[_0x12d925(0xb4)]();if(!_0x3b989c)throw new Error(_0x12d925(0xcd));const _0x4eaa7b=_0x53e249[_0x12d925(0xb8)](_0x3b989c);if(!_0x4eaa7b)throw new Error(_0x12d925(0xd4));_0x4eaa7b[_0x12d925(0xc4)]();}}_0x5a3a54[_0x3cf2eb(0xbb)](m);class C extends _0x1a4f3f{get[_0x3cf2eb(0xb6)](){return _0x77b83f;}}function _0x25fd(_0x228d1d,_0x100868){_0x228d1d=_0x228d1d-0xb4;const _0x5ee61f=_0x5ee6();let _0x25fd14=_0x5ee61f[_0x228d1d];return _0x25fd14;}_0x1a4f3f['extend'](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x40438e=_0x47cc;(function(_0x499a68,_0xa7184a){const _0x303d3a=_0x47cc,_0x466f16=_0x499a68();while(!![]){try{const _0x58db09=parseInt(_0x303d3a(0x1a3))/0x1+parseInt(_0x303d3a(0x15e))/0x2*(-parseInt(_0x303d3a(0x17c))/0x3)+-parseInt(_0x303d3a(0x1a6))/0x4+-parseInt(_0x303d3a(0x171))/0x5*(-parseInt(_0x303d3a(0x184))/0x6)+parseInt(_0x303d3a(0x115))/0x7*(-parseInt(_0x303d3a(0x12d))/0x8)+parseInt(_0x303d3a(0x17a))/0x9*(parseInt(_0x303d3a(0x135))/0xa)+-parseInt(_0x303d3a(0x11b))/0xb*(-parseInt(_0x303d3a(0x148))/0xc);if(_0x58db09===_0xa7184a)break;else _0x466f16['push'](_0x466f16['shift']());}catch(_0x2b506f){_0x466f16['push'](_0x466f16['shift']());}}}(_0x47f9,0x215dc));var J=Object[_0x40438e(0x190)],K=(_0x32c42a,_0x2ee3b7,_0x1301ae)=>_0x2ee3b7 in _0x32c42a?J(_0x32c42a,_0x2ee3b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1301ae}):_0x32c42a[_0x2ee3b7]=_0x1301ae,u=(_0x4a2c88,_0x53cecf,_0x4dd82c)=>K(_0x4a2c88,typeof _0x53cecf!=_0x40438e(0x14d)?_0x53cecf+'':_0x53cecf,_0x4dd82c);import{Disposable as _0x142380,toDisposable as _0x162835,IUniverInstanceService as _0x5a3693,Inject as _0x515096,Injector as _0x2eaef8,IConfigService as _0x18693d,ICommandService as _0x1b75b0,RxDisposable as _0x470f4e,UniverInstanceType as _0x24a06b,DisposableCollection as _0x557a96,CommandType as _0x54eed1,DependentOn as _0x120121,Plugin as _0x277eca,merge as _0x3187af,registerDependencies as _0x260ef6,mergeOverrideWithDependencies as _0x26d4c0,touchDependencies as _0x154532}from'@univerjs/core';import{useDependency as _0x54980e,useObservable as _0x2371ea,IUIPartsService as _0x13ef6b,BuiltInUIPart as _0x5427fd,connectInjector as _0x266a27}from'@univerjs/ui';import{jsx as _0x282781,jsxs as _0x1a3be5,Fragment as _0x2d1d5d}from'react/jsx-runtime';import{Dropdown as _0x45eb67,clsx as _0x2be6db,Button as _0x18eae9}from'@univerjs/design';import{useRef as _0x4f23fd,createElement as _0x4f1371,forwardRef as _0x905103,useState as _0x89ec1e,useEffect as _0x33dad}from'react';import{CollaborationEvent as _0x5527b9,parseProtocolChangeset as _0x14e3f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bde2f,SessionStatus as _0x1a4938,UniverCollaborationClientPlugin as _0xc0232f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x35c6e2,SetWorksheetActiveOperation as _0xcbc908}from'@univerjs/sheets';import{BehaviorSubject as _0x4119dd,Subject as _0x26010b}from'rxjs';import{takeUntil as _0x505794,throttleTime as _0x55e0fd}from'rxjs/operators';import{SetZoomRatioOperation as _0x1bfcb6,SetScrollOperation as _0x15a66d}from'@univerjs/sheets-ui';function _0x47cc(_0x2d80c3,_0x548e20){_0x2d80c3=_0x2d80c3-0x107;const _0x47f9b5=_0x47f9();let _0x47ccba=_0x47f9b5[_0x2d80c3];return _0x47ccba;}function k({ref:_0x4afa15,..._0x2c761a}){const _0x118ac2=_0x40438e,{icon:_0xa58156,id:_0x1c051b,className:_0x266745,extend:_0x3059ae,..._0x15b762}=_0x2c761a,_0x262b21=(_0x118ac2(0x168)+_0x1c051b+'\x20'+(_0x266745||''))[_0x118ac2(0x149)](),_0x3b8315=_0x4f23fd('_'+Oe());return G(_0xa58156,''+_0x1c051b,{'defIds':_0xa58156['defIds'],'idSuffix':_0x3b8315[_0x118ac2(0x1a1)]},{'ref':_0x4afa15,'className':_0x262b21,..._0x15b762},_0x3059ae);}function G(_0x173525,_0x1df7b1,_0x2f8904,_0x192443,_0x49dcc0){const _0x2bc951=_0x40438e;return _0x4f1371(_0x173525['tag'],{'key':_0x1df7b1,...be(_0x173525,_0x2f8904,_0x49dcc0),..._0x192443},(Ee(_0x173525,_0x2f8904)['children']||[])['map']((_0x3a1c6b,_0x424cde)=>G(_0x3a1c6b,_0x1df7b1+'-'+_0x173525[_0x2bc951(0x18f)]+'-'+_0x424cde,_0x2f8904,void 0x0,_0x49dcc0)));}function be(_0xd1fef3,_0x4cd31e,_0x58b7b7){const _0x4778d1=_0x40438e,_0x59adb9={..._0xd1fef3[_0x4778d1(0x144)]};_0x58b7b7!=null&&_0x58b7b7[_0x4778d1(0x19e)]&&_0x59adb9['fill']===_0x4778d1(0x19e)&&(_0x59adb9[_0x4778d1(0x152)]=_0x58b7b7[_0x4778d1(0x19e)]),_0xd1fef3[_0x4778d1(0x18f)]===_0x4778d1(0x127)&&_0x59adb9['id']&&(_0x59adb9['id']=_0x59adb9['id']+_0x4cd31e[_0x4778d1(0x18c)]),Object[_0x4778d1(0x10e)](_0x59adb9)[_0x4778d1(0x160)](([_0x565e85,_0x20a09e])=>{const _0xf6759f=_0x4778d1;_0x565e85===_0xf6759f(0x127)&&typeof _0x20a09e==_0xf6759f(0x155)&&(_0x59adb9[_0x565e85]=_0x20a09e[_0xf6759f(0x12f)](/url\(#(.*)\)/,'url(#$1'+_0x4cd31e['idSuffix']+')'));});const {defIds:_0xb065cc}=_0x4cd31e;return!_0xb065cc||_0xb065cc[_0x4778d1(0x188)]===0x0||(_0xd1fef3['tag']===_0x4778d1(0x15c)&&_0x59adb9['xlink:href']&&(_0x59adb9[_0x4778d1(0x12a)]=_0x59adb9[_0x4778d1(0x12a)]+_0x4cd31e['idSuffix']),Object['entries'](_0x59adb9)['forEach'](([_0xc0478b,_0x508f86])=>{const _0x4fda44=_0x4778d1;typeof _0x508f86=='string'&&(_0x59adb9[_0xc0478b]=_0x508f86[_0x4fda44(0x12f)](/url\(#(.*)\)/,_0x4fda44(0x113)+_0x4cd31e[_0x4fda44(0x18c)]+')'));})),_0x59adb9;}function Ee(_0xd16053,_0x49d430){const _0x1ce328=_0x40438e;var _0x6e0431;const {defIds:_0x3ce7bf}=_0x49d430;return!_0x3ce7bf||_0x3ce7bf['length']===0x0?_0xd16053:_0xd16053[_0x1ce328(0x18f)]===_0x1ce328(0x124)&&((_0x6e0431=_0xd16053[_0x1ce328(0x164)])!=null&&_0x6e0431[_0x1ce328(0x188)])?{..._0xd16053,'children':_0xd16053[_0x1ce328(0x164)][_0x1ce328(0x143)](_0x54efaf=>typeof _0x54efaf[_0x1ce328(0x144)]['id']=='string'&&_0x3ce7bf&&_0x3ce7bf[_0x1ce328(0x153)](_0x54efaf[_0x1ce328(0x144)]['id'])?{..._0x54efaf,'attrs':{..._0x54efaf[_0x1ce328(0x144)],'id':_0x54efaf[_0x1ce328(0x144)]['id']+_0x49d430[_0x1ce328(0x18c)]}}:_0x54efaf)}:_0xd16053;}function Oe(){const _0x35357b=_0x40438e;return Math['random']()[_0x35357b(0x13f)](0x24)[_0x35357b(0x192)](0x2,0x8);}k['displayName']=_0x40438e(0x142);const we={'tag':_0x40438e(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x40438e(0x110),'width':_0x40438e(0x151),'height':'1em'},'children':[{'tag':_0x40438e(0x14b),'attrs':{'fill':_0x40438e(0x134),'d':_0x40438e(0x131)}},{'tag':'path','attrs':{'fill':_0x40438e(0x134),'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':_0x40438e(0x11a),'clipRule':_0x40438e(0x11a)}}]},W=_0x905103(function(_0x481ac7,_0x879358){const _0x2777c2=_0x40438e;return _0x4f1371(k,Object[_0x2777c2(0x19d)]({},_0x481ac7,{'id':_0x2777c2(0x167),'ref':_0x879358,'icon':we}));});W[_0x40438e(0x14a)]='LiveShareIcon';class L extends _0x142380{constructor(){const _0x53d58f=_0x40438e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x53d58f(0x186),new Set());}[_0x40438e(0x10b)](_0x23f087){const _0x1ad192=_0x40438e;return this[_0x1ad192(0x18d)][_0x1ad192(0x165)](_0x23f087),_0x162835(()=>this[_0x1ad192(0x18d)][_0x1ad192(0x12c)](_0x23f087));}[_0x40438e(0x150)](_0x1fb63b){const _0x430a54=_0x40438e;return this[_0x430a54(0x186)][_0x430a54(0x165)](_0x1fb63b),_0x162835(()=>this[_0x430a54(0x186)]['delete'](_0x1fb63b));}[_0x40438e(0x139)](_0x59d2b2){const _0x3516cb=_0x40438e;return this[_0x3516cb(0x18d)][_0x3516cb(0x1a5)](_0x59d2b2);}[_0x40438e(0x197)](_0x5f28ea){const _0x5f24e7=_0x40438e;return Array['from'](this['_reporters'])[_0x5f24e7(0x143)](_0x36eb84=>_0x36eb84(_0x5f28ea));}}function _0x47f9(){const _0x4888e2=['stringify','Start','dispose$','pipe','startFollowing','event$','_collabSessionService','registerSharedOperation','HEADER_MENU','offline','entries','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','_configService','_handleNewHost','url(#$1','_init','3626dfOUwN','UNIVER_UNKNOWN','Start\x20following','_entities','FOLLOWING','evenodd','33KlJYZN','getMemberID','OFFLINE','stopPresenting','tryStartPresenting','_handleTerminate','dispose','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','defs','_handleOperation','getUnitId','mask','default','data','xlink:href','IDLE','delete','344cPKCiv','UNIVER_LIVE_SHARE_PLUGIN','replace','next','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','_presenter','sessionStatus$','currentColor','509050BdjslY','div','following','_startFollowing','shouldShareOperation','type','disposeWithMe','not-following','getValue','parse','toString','_univerInstanceService','LIVESHARE_OPERATION','UniverIcon','map','attrs','_status$','asObservable','send','657468HsLtBM','trim','displayName','path','UNIVER_SHEET','symbol','init','_status','registerInitialStateReporter','1em','fill','includes','get','string','unsubscribe','subscribe','stopFollowing','ONLINE','_stopPresenting','onStarting','use','status$','2kBwxhX','mutations','forEach','getStatus','getConfig','memberID','children','add','_unitID','live-share-icon','univerjs-icon\x20univerjs-icon-','complete','presenting','_liveShareService','pluginName','LIVESHARE_TERMINATE','_config','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','5kulALz','params','You\x27are\x20offline.','onCommandExecuted','registerComponent','svg','_handleNewChangeSets','getLiveShareCoordinator','_beIdle','9iYdcZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','353853ihXxyW','getOwnPropertyDescriptor','_commandDisposable','PRESENTING','presenter','_commandService','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','412266cbdoFb','executeCommand','_reporters','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','length','setConfig','set','onRendered','idSuffix','_sharedOperations','then','tag','defineProperty','_handleOnline','substring','_stopFollowing','idle','_startPresenting','button','getInitialStates','operations','Present\x20this\x20document','sheet','_mountLiveShare','_collabSession','assign','colorChannel1','unitId','_injector','current','getTypeOfUnitDisposed$','112651lWcUOv','getCurrentTypeOfUnit$','has','478964PdfCqP','NEW_CHANGESETS'];_0x47f9=function(){return _0x4888e2;};return _0x47f9();}var Ne=Object[_0x40438e(0x17d)],Y=(_0x4c888b,_0x11f570,_0x5228dc,_0x524ffe)=>{const _0x76b223=_0x40438e;for(var _0x28c625=_0x524ffe>0x1?void 0x0:_0x524ffe?Ne(_0x11f570,_0x5228dc):_0x11f570,_0x2bdc16=_0x4c888b[_0x76b223(0x188)]-0x1,_0x19ea95;_0x2bdc16>=0x0;_0x2bdc16--)(_0x19ea95=_0x4c888b[_0x2bdc16])&&(_0x28c625=_0x19ea95(_0x28c625)||_0x28c625);return _0x28c625;},_=(_0x3356bb,_0x1ab874)=>(_0x1b71bb,_0xdab50c)=>_0x1ab874(_0x1b71bb,_0xdab50c,_0x3356bb);let S=class extends _0x470f4e{constructor(_0x5aca0d,_0x54895f,_0x234351){const _0x2738da=_0x40438e;super(),u(this,'_entities',new Map()),(this[_0x2738da(0x140)]=_0x5aca0d,this['_injector']=_0x54895f,this[_0x2738da(0x10a)]=_0x234351,this[_0x2738da(0x114)]());}async[_0x40438e(0x178)](_0x412409){const _0x3fb7a4=_0x40438e;return this['_entities']['has'](_0x412409)||await this[_0x3fb7a4(0x122)](_0x412409),this[_0x3fb7a4(0x118)][_0x3fb7a4(0x154)](_0x412409);}['getLiveShareCoordinatorSync'](_0x35a51b){const _0x21a934=_0x40438e;var _0x28dbea;return(_0x28dbea=this[_0x21a934(0x118)][_0x21a934(0x154)](_0x35a51b))!=null?_0x28dbea:null;}[_0x40438e(0x114)](){const _0x3253f1=_0x40438e;this[_0x3253f1(0x140)]['getTypeOfUnitAdded$'](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this['dispose$']))[_0x3253f1(0x157)](async _0x1f8c57=>{const _0x4c5770=_0x3253f1,_0x2ee9ce=_0x1f8c57[_0x4c5770(0x126)]();this[_0x4c5770(0x118)][_0x4c5770(0x1a5)](_0x2ee9ce)||this['_startLiveShareCoordinator'](_0x2ee9ce);}),this[_0x3253f1(0x140)][_0x3253f1(0x1a2)](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this[_0x3253f1(0x1aa)]))[_0x3253f1(0x157)](_0x58f199=>{const _0x500a5b=_0x3253f1,_0x4ab110=_0x58f199['getUnitId'](),_0x162aa6=this[_0x500a5b(0x118)]['get'](_0x4ab110);_0x162aa6==null||_0x162aa6[_0x500a5b(0x121)]();});}async[_0x40438e(0x122)](_0x1b4687){const _0x332449=_0x40438e,_0x22feac=await this[_0x332449(0x10a)][_0x332449(0x16f)](_0x1b4687),_0x571083=this['_injector']['createInstance'](N,_0x1b4687,_0x22feac);return _0x571083['init'](),this[_0x332449(0x118)][_0x332449(0x18a)](_0x1b4687,_0x571083),_0x571083;}};S=Y([_(0x0,_0x5a3693),_(0x1,_0x515096(_0x2eaef8)),_(0x2,_0x515096(_0x3bde2f))],S);var c=(_0x3f43e7=>(_0x3f43e7['OFFLINE']=_0x40438e(0x10d),_0x3f43e7[_0x40438e(0x12b)]='idle',_0x3f43e7[_0x40438e(0x119)]='following',_0x3f43e7['NOT_FOLLOWING']=_0x40438e(0x13c),_0x3f43e7[_0x40438e(0x17f)]='presenting',_0x3f43e7))(c||{});const Ce=_0x40438e(0x123),De=0xc8;let N=class extends _0x470f4e{constructor(_0x42fa58,_0x56d566,_0xe9c346,_0x4c3f5b,_0x295bfc){const _0x4f97f9=_0x40438e;super(),u(this,_0x4f97f9(0x145),new _0x4119dd('idle')),u(this,_0x4f97f9(0x15d),this['_status$'][_0x4f97f9(0x146)]()),u(this,_0x4f97f9(0x114),!0x1),u(this,_0x4f97f9(0x17e),null),u(this,_0x4f97f9(0x132),null),(this[_0x4f97f9(0x166)]=_0x42fa58,this[_0x4f97f9(0x19c)]=_0x56d566,this[_0x4f97f9(0x111)]=_0xe9c346,this[_0x4f97f9(0x16b)]=_0x4c3f5b,this[_0x4f97f9(0x181)]=_0x295bfc);}get['_status'](){const _0x2fb33e=_0x40438e;return this[_0x2fb33e(0x145)][_0x2fb33e(0x13d)]();}[_0x40438e(0x121)](){const _0x45c693=_0x40438e;var _0x1cb889;(_0x1cb889=this[_0x45c693(0x17e)])==null||_0x1cb889[_0x45c693(0x121)](),this[_0x45c693(0x145)][_0x45c693(0x130)](_0x45c693(0x194)),this[_0x45c693(0x145)][_0x45c693(0x169)]();}[_0x40438e(0x161)](){const _0x46a17f=_0x40438e;return this[_0x46a17f(0x14f)];}[_0x40438e(0x14e)](){const _0x56f2d8=_0x40438e;this[_0x56f2d8(0x114)]||(this[_0x56f2d8(0x114)]=!0x0,this[_0x56f2d8(0x19c)][_0x56f2d8(0x133)][_0x56f2d8(0x107)](_0x505794(this[_0x56f2d8(0x1aa)]))[_0x56f2d8(0x157)](_0x1333f1=>{const _0x59bf20=_0x56f2d8;switch(_0x1333f1){case _0x1a4938['OFFLINE']:this['_handleOffline']();break;case _0x1a4938[_0x59bf20(0x159)]:this['_handleOnline']();break;}}),this[_0x56f2d8(0x19c)][_0x56f2d8(0x109)]['pipe'](_0x505794(this['dispose$']))[_0x56f2d8(0x157)](_0x4ea196=>{const _0x35e9bb=_0x56f2d8,{eventID:_0x65fbbc}=_0x4ea196;switch(_0x65fbbc){case _0x5527b9[_0x35e9bb(0x182)]:this[_0x35e9bb(0x112)](_0x4ea196);break;case _0x5527b9['LIVESHARE_OPERATION']:this[_0x35e9bb(0x125)](_0x4ea196);break;case _0x5527b9[_0x35e9bb(0x16d)]:this[_0x35e9bb(0x120)]();break;case _0x5527b9[_0x35e9bb(0x1a7)]:this['_handleNewChangeSets'](_0x4ea196);break;}}));}[_0x40438e(0x11f)](){const _0x49b2d9=_0x40438e;this[_0x49b2d9(0x19c)][_0x49b2d9(0x147)]({'eventID':_0x5527b9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49b2d9(0x166)],'userID':this[_0x49b2d9(0x19c)][_0x49b2d9(0x11c)]()}},this[_0x49b2d9(0x166)]);}['stopPresenting'](){const _0x3bc702=_0x40438e;this[_0x3bc702(0x14f)]===_0x3bc702(0x16a)&&(this[_0x3bc702(0x145)][_0x3bc702(0x130)](_0x3bc702(0x194)),this[_0x3bc702(0x19c)][_0x3bc702(0x147)]({'eventID':_0x5527b9[_0x3bc702(0x16d)],'data':{'unitID':this[_0x3bc702(0x166)]}},this[_0x3bc702(0x166)]));}[_0x40438e(0x108)](){const _0x3cf05a=_0x40438e;this['_status']===_0x3cf05a(0x13c)&&(this[_0x3cf05a(0x145)][_0x3cf05a(0x130)](_0x3cf05a(0x137)),this[_0x3cf05a(0x138)]());}[_0x40438e(0x158)](){const _0x5878a9=_0x40438e;this[_0x5878a9(0x14f)]===_0x5878a9(0x137)&&this[_0x5878a9(0x193)]();}['_handleNewHost'](_0xcb9d73){const _0x8d8012=_0x40438e,{presenter:_0x336bb7}=_0xcb9d73[_0x8d8012(0x129)],_0x22c428=this[_0x8d8012(0x19c)][_0x8d8012(0x11c)]();this[_0x8d8012(0x132)]=_0x336bb7,_0x336bb7===_0x22c428?(this[_0x8d8012(0x193)](),this['_startPresenting']()):this[_0x8d8012(0x14f)]!==_0x8d8012(0x13c)&&(this[_0x8d8012(0x15a)](),this[_0x8d8012(0x138)]());}['_fetchOperations'](){const _0x3a117a=_0x40438e,_0xe4c44={'eventID':_0x5527b9[_0x3a117a(0x10f)]};this['_collabSession']['send'](_0xe4c44,this[_0x3a117a(0x166)]);}['_handleTerminate'](){const _0x298517=_0x40438e;this[_0x298517(0x132)]=null,this['_status']!==_0x298517(0x16a)&&this['_beIdle']();}[_0x40438e(0x177)](_0x49c8b2){const _0x3b30d7=_0x40438e;if(this['_status']===_0x3b30d7(0x137)&&this[_0x3b30d7(0x132)]===_0x49c8b2[_0x3b30d7(0x129)][_0x3b30d7(0x163)]){const _0x3c557d=_0x14e3f7(_0x49c8b2[_0x3b30d7(0x129)])[_0x3b30d7(0x15f)]['reverse']()['find'](_0x5be341=>_0x5be341['id']===_0x35c6e2['id']);if(_0x3c557d){const _0x2ee0f8=_0x3c557d['params'][_0x3b30d7(0x19f)],_0x571796=_0x3c557d['params'][_0x3b30d7(0x19a)]['id'];setTimeout(()=>{const _0x774e56=_0x3b30d7;this[_0x774e56(0x181)]['executeCommand'](_0xcbc908['id'],{'unitId':_0x2ee0f8,'subUnitId':_0x571796},{'fromCollab':!0x0});});}}}[_0x40438e(0x195)](){const _0x1e57c9=_0x40438e;this[_0x1e57c9(0x145)][_0x1e57c9(0x130)](_0x1e57c9(0x16a));const _0x3bf156=new Map(),_0x11a84d=this['_commandDisposable']=new _0x557a96();_0x11a84d[_0x1e57c9(0x165)](_0x162835(()=>{const _0x31867d=_0x1e57c9;_0x3bf156[_0x31867d(0x160)](_0x4d6572=>_0x4d6572[_0x31867d(0x169)]()),_0x3bf156['clear']();})),_0x11a84d[_0x1e57c9(0x165)](this['_commandService'][_0x1e57c9(0x174)](_0x1493ad=>{const _0x2e0ccb=_0x1e57c9;var _0x46004e;if(_0x1493ad[_0x2e0ccb(0x13a)]!==_0x54eed1['OPERATION']||!this[_0x2e0ccb(0x16b)][_0x2e0ccb(0x139)](_0x1493ad['id']))return;const {id:_0x555b04}=_0x1493ad;let _0x2f357c;_0x3bf156['has'](_0x555b04)?_0x2f357c=_0x3bf156['get'](_0x555b04):(_0x2f357c=new _0x26010b(),_0x3bf156[_0x2e0ccb(0x18a)](_0x555b04,_0x2f357c),_0x2f357c['pipe'](_0x55e0fd((_0x46004e=this[_0x2e0ccb(0x111)][_0x2e0ccb(0x162)](Ce))!=null?_0x46004e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e0ccb(0x157)](_0x23275d=>{const _0x5692cc=_0x2e0ccb;this[_0x5692cc(0x19c)][_0x5692cc(0x147)]({'eventID':_0x5527b9[_0x5692cc(0x141)],'data':{'unitID':this[_0x5692cc(0x166)],'operations':{[_0x23275d['id']]:{'id':_0x23275d['id'],'params':JSON[_0x5692cc(0x1a8)](_0x23275d[_0x5692cc(0x172)])}}}},this[_0x5692cc(0x166)]);})),_0x2f357c[_0x2e0ccb(0x130)](_0x1493ad);})),this[_0x1e57c9(0x16b)][_0x1e57c9(0x197)](this[_0x1e57c9(0x166)])[_0x1e57c9(0x160)](_0x147df5=>this[_0x1e57c9(0x19c)][_0x1e57c9(0x147)]({'eventID':_0x5527b9[_0x1e57c9(0x141)],'data':{'unitID':this[_0x1e57c9(0x166)],'operations':{[_0x147df5['id']]:{'id':_0x147df5['id'],'params':JSON[_0x1e57c9(0x1a8)](_0x147df5['params'])}}}},this[_0x1e57c9(0x166)]));}[_0x40438e(0x15a)](){const _0xef736c=_0x40438e;var _0x595d01;this['_status$'][_0xef736c(0x130)](_0xef736c(0x194)),(_0x595d01=this[_0xef736c(0x17e)])==null||_0x595d01[_0xef736c(0x121)](),this['_commandDisposable']=null;}[_0x40438e(0x138)](){const _0x41ea4f=_0x40438e;var _0x5ad979;(_0x5ad979=this['_commandDisposable'])==null||_0x5ad979[_0x41ea4f(0x121)](),this[_0x41ea4f(0x145)][_0x41ea4f(0x130)](_0x41ea4f(0x137));}[_0x40438e(0x179)](){const _0x502f41=_0x40438e;var _0x2fb286;this[_0x502f41(0x145)][_0x502f41(0x130)]('idle'),(_0x2fb286=this[_0x502f41(0x17e)])==null||_0x2fb286[_0x502f41(0x121)](),this[_0x502f41(0x17e)]=null;}[_0x40438e(0x193)](){const _0x34b869=_0x40438e;var _0x29a306;this['_status$'][_0x34b869(0x130)](_0x34b869(0x13c)),(_0x29a306=this[_0x34b869(0x17e)])==null||_0x29a306[_0x34b869(0x121)]();}[_0x40438e(0x125)](_0xbd2e1a){const _0x407f16=_0x40438e;if([_0x407f16(0x16a),_0x407f16(0x13c),_0x407f16(0x10d)][_0x407f16(0x153)](this['_status'])||!_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x180)]||_0xbd2e1a['data'][_0x407f16(0x180)]===this[_0x407f16(0x19c)][_0x407f16(0x11c)]())return;this[_0x407f16(0x14f)]===_0x407f16(0x194)&&this[_0x407f16(0x138)]();const _0x2722c6=_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x198)];Object['values'](_0x2722c6)[_0x407f16(0x160)](_0x5f5ccd=>{const _0x57e662=_0x407f16;this[_0x57e662(0x181)][_0x57e662(0x185)](_0x5f5ccd['id'],_0x5f5ccd['params']?JSON[_0x57e662(0x13e)](_0x5f5ccd[_0x57e662(0x172)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x313e26=_0x40438e;var _0x2200d4;this['_status$'][_0x313e26(0x130)]('offline'),(_0x2200d4=this['_commandDisposable'])==null||_0x2200d4[_0x313e26(0x121)]();}[_0x40438e(0x191)](){const _0x1df844=_0x40438e;this[_0x1df844(0x145)][_0x1df844(0x130)](_0x1df844(0x194)),this['_fetchOperations']();}};N=Y([_(0x2,_0x18693d),_(0x3,_0x515096(L)),_(0x4,_0x1b75b0)],N);function Le(){const _0x22e9f1=_0x40438e,_0x48f933=_0x54980e(S),_0x2a1eb8=_0x54980e(_0x5a3693),_0x4fe1a9=_0x2371ea(()=>_0x2a1eb8[_0x22e9f1(0x1a4)](_0x24a06b[_0x22e9f1(0x14c)]),void 0x0,!0x1,[]),[_0x58aed3,_0x405f7a]=_0x89ec1e(null),[_0x568915,_0x58e9b0]=_0x89ec1e(c[_0x22e9f1(0x12b)]),_0x419775=_0x4f23fd(null);return _0x33dad(()=>(_0x4fe1a9&&_0x48f933['getLiveShareCoordinator'](_0x4fe1a9[_0x22e9f1(0x126)]())[_0x22e9f1(0x18e)](_0x374c0f=>{const _0x3c4f83=_0x22e9f1;_0x405f7a(_0x374c0f),_0x419775[_0x3c4f83(0x1a1)]=_0x374c0f[_0x3c4f83(0x15d)][_0x3c4f83(0x157)](_0x38cdce=>{_0x58e9b0(_0x38cdce);});}),()=>{const _0x330361=_0x22e9f1;var _0x4d4ebe;(_0x4d4ebe=_0x419775['current'])==null||_0x4d4ebe[_0x330361(0x156)](),_0x419775['current']=null;}),[_0x4fe1a9,_0x48f933]),_0x58aed3?_0x282781(_0x45eb67,{'align':'end','disabled':_0x568915===c[_0x22e9f1(0x11d)],'className':_0x22e9f1(0x187),'overlay':_0x282781(Re,{'status':_0x568915,'coordinator':_0x58aed3}),'children':_0x282781(_0x22e9f1(0x196),{'className':_0x2be6db(_0x22e9f1(0x170),{'univer-cursor-not-allowed':_0x568915===c[_0x22e9f1(0x11d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568915!==c['OFFLINE']}),'type':_0x22e9f1(0x196),'children':_0x282781(W,{'className':'univer-size-4'})})}):null;}function Re(_0x437467){const _0xaf73a4=_0x40438e,{status:_0xc7ed2f,coordinator:_0x177b7c}=_0x437467;switch(_0xc7ed2f){case c[_0xaf73a4(0x12b)]:return _0x282781($e,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x119)]:return _0x282781(xe,{'coordinator':_0x177b7c});case c['NOT_FOLLOWING']:return _0x282781(Pe,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x11d)]:return _0x282781(Te,{});case c[_0xaf73a4(0x17f)]:return _0x282781(Ae,{'coordinator':_0x177b7c});default:return null;}}function $e(_0x120ab4){const _0x162a68=_0x40438e,{coordinator:_0x203df8}=_0x120ab4;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x162a68(0x136),{'className':_0x162a68(0x17b),'children':_0x162a68(0x199)}),_0x282781(_0x18eae9,{'onClick':()=>_0x203df8[_0x162a68(0x11f)](),'children':_0x162a68(0x1a9)})]});}function xe(_0x46b877){const _0xd05436=_0x40438e,{coordinator:_0x43b589}=_0x46b877;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0xd05436(0x17b),'children':_0xd05436(0x183)}),_0x282781(_0x18eae9,{'onClick':()=>_0x43b589[_0xd05436(0x158)](),'children':'Stop\x20following'})]});}function Pe(_0x23d975){const _0x63f7a4=_0x40438e,{coordinator:_0x1a2993}=_0x23d975;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x63f7a4(0x136),{'className':_0x63f7a4(0x17b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x282781(_0x18eae9,{'variant':'text','onClick':()=>_0x1a2993[_0x63f7a4(0x108)](),'children':_0x63f7a4(0x117)})]});}function Ae(_0x2e9bdc){const _0x19c77d=_0x40438e,{coordinator:_0x5f5c03}=_0x2e9bdc;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0x19c77d(0x17b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x282781(_0x18eae9,{'variant':_0x19c77d(0x128),'onClick':()=>_0x5f5c03[_0x19c77d(0x11e)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a4dda=_0x40438e;return _0x282781(_0x2d1d5d,{'children':_0x1a4dda(0x173)});}var Fe=Object[_0x40438e(0x17d)],He=(_0xe36e06,_0x328326,_0xedbe7e,_0x1a4370)=>{for(var _0x405fd4=_0x1a4370>0x1?void 0x0:_0x1a4370?Fe(_0x328326,_0xedbe7e):_0x328326,_0x3bc04c=_0xe36e06['length']-0x1,_0x5503cc;_0x3bc04c>=0x0;_0x3bc04c--)(_0x5503cc=_0xe36e06[_0x3bc04c])&&(_0x405fd4=_0x5503cc(_0x405fd4)||_0x405fd4);return _0x405fd4;},A=(_0x3ab088,_0x426d4c)=>(_0x51cd35,_0x494648)=>_0x426d4c(_0x51cd35,_0x494648,_0x3ab088);let m=class extends _0x142380{constructor(_0x3be079,_0x59b39d){const _0x2daf53=_0x40438e;super(),this[_0x2daf53(0x1a0)]=_0x3be079,this['_uiPartsService']=_0x59b39d,this[_0x2daf53(0x19b)]();}['_mountLiveShare'](){const _0x229f65=_0x40438e;this[_0x229f65(0x13b)](this['_uiPartsService'][_0x229f65(0x175)](_0x5427fd[_0x229f65(0x10c)],()=>_0x266a27(Le,this[_0x229f65(0x1a0)])));}};m=He([A(0x0,_0x515096(_0x2eaef8)),A(0x1,_0x13ef6b)],m);const ye='live-share.config',T={};var Ue=Object[_0x40438e(0x17d)],Ve=(_0x47c872,_0x4d30bd,_0x9de0a7,_0x3752d3)=>{const _0x11f663=_0x40438e;for(var _0x42a8af=_0x3752d3>0x1?void 0x0:_0x3752d3?Ue(_0x4d30bd,_0x9de0a7):_0x4d30bd,_0x32da67=_0x47c872[_0x11f663(0x188)]-0x1,_0x15a074;_0x32da67>=0x0;_0x32da67--)(_0x15a074=_0x47c872[_0x32da67])&&(_0x42a8af=_0x15a074(_0x42a8af)||_0x42a8af);return _0x42a8af;},je=(_0x13edb2,_0x5be002)=>(_0x3620f0,_0x32c9d5)=>_0x5be002(_0x3620f0,_0x32c9d5,_0x13edb2);let I=class extends _0x142380{constructor(_0x270207){const _0x5b80cf=_0x40438e;super(),this['_liveShareService']=_0x270207,this[_0x5b80cf(0x114)]();}[_0x40438e(0x114)](){const _0x1a0f76=_0x40438e;[_0x1bfcb6['id'],_0x15a66d['id'],_0xcbc908['id']][_0x1a0f76(0x160)](_0x43f413=>{const _0x266d04=_0x1a0f76;this['disposeWithMe'](this[_0x266d04(0x16b)][_0x266d04(0x10b)](_0x43f413));});}};I=Ve([je(0x0,_0x515096(L))],I);var Me=Object[_0x40438e(0x190)],ke=Object[_0x40438e(0x17d)],Ge=(_0x72d1ae,_0x42e855,_0x3afd20)=>_0x42e855 in _0x72d1ae?Me(_0x72d1ae,_0x42e855,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afd20}):_0x72d1ae[_0x42e855]=_0x3afd20,We=(_0x5e1741,_0x2c0306,_0xaca0d9,_0x339251)=>{const _0x332944=_0x40438e;for(var _0x531e36=_0x339251>0x1?void 0x0:_0x339251?ke(_0x2c0306,_0xaca0d9):_0x2c0306,_0x26a81e=_0x5e1741[_0x332944(0x188)]-0x1,_0x581a77;_0x26a81e>=0x0;_0x26a81e--)(_0x581a77=_0x5e1741[_0x26a81e])&&(_0x531e36=_0x581a77(_0x531e36)||_0x531e36);return _0x531e36;},F=(_0x1cc530,_0x5974cc)=>(_0x8b6089,_0x2703b8)=>_0x5974cc(_0x8b6089,_0x2703b8,_0x1cc530),B=(_0x1d3557,_0x3c23f8,_0x16bddb)=>Ge(_0x1d3557,typeof _0x3c23f8!=_0x40438e(0x14d)?_0x3c23f8+'':_0x3c23f8,_0x16bddb);const Ye=_0x40438e(0x12e);let b=class extends _0x277eca{constructor(_0x595d93=T,_0x50ea94,_0x53ea49){const _0x4411b1=_0x40438e;super(),this['_config']=_0x595d93,this['_injector']=_0x50ea94,this['_configService']=_0x53ea49;const {..._0x2d8609}=_0x3187af({},T,this[_0x4411b1(0x16e)]);this['_configService'][_0x4411b1(0x189)](ye,_0x2d8609);}[_0x40438e(0x15b)](){const _0x7abc44=_0x40438e;_0x260ef6(this[_0x7abc44(0x1a0)],_0x26d4c0([[L],[S],[I],[m]],this[_0x7abc44(0x16e)]['override'])),_0x154532(this[_0x7abc44(0x1a0)],[[I]]);}[_0x40438e(0x18b)](){const _0x1f28ee=_0x40438e;_0x154532(this[_0x1f28ee(0x1a0)],[[m]]);}};B(b,_0x40438e(0x13a),_0x24a06b[_0x40438e(0x116)]),B(b,_0x40438e(0x16c),Ye),b=We([_0x120121(_0xc0232f),F(0x1,_0x515096(_0x2eaef8)),F(0x2,_0x18693d)],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 _0x37c48f=_0xe409;(function(_0xca09e3,_0x23be34){const _0x503460=_0xe409,_0xabed41=_0xca09e3();while(!![]){try{const _0x1b3726=parseInt(_0x503460(0x171))/0x1+-parseInt(_0x503460(0x1dd))/0x2+-parseInt(_0x503460(0x182))/0x3*(parseInt(_0x503460(0x1ed))/0x4)+parseInt(_0x503460(0x155))/0x5*(-parseInt(_0x503460(0x1a5))/0x6)+parseInt(_0x503460(0x15d))/0x7+-parseInt(_0x503460(0x16d))/0x8+-parseInt(_0x503460(0x18f))/0x9*(-parseInt(_0x503460(0x1d5))/0xa);if(_0x1b3726===_0x23be34)break;else _0xabed41['push'](_0xabed41['shift']());}catch(_0x3c4d11){_0xabed41['push'](_0xabed41['shift']());}}}(_0x33ed,0x571d8));var J=Object['defineProperty'],K=(_0x4f7e0a,_0x24e8b5,_0xe4ea7)=>_0x24e8b5 in _0x4f7e0a?J(_0x4f7e0a,_0x24e8b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe4ea7}):_0x4f7e0a[_0x24e8b5]=_0xe4ea7,u=(_0x2a9c80,_0x6b58ae,_0x256c56)=>K(_0x2a9c80,typeof _0x6b58ae!='symbol'?_0x6b58ae+'':_0x6b58ae,_0x256c56);import{Disposable as _0x56ac81,toDisposable as _0x14fed3,IUniverInstanceService as _0x3fde3e,Inject as _0x19be43,Injector as _0x26383e,IConfigService as _0x347dc0,ICommandService as _0x4afaea,RxDisposable as _0x46b3fc,UniverInstanceType as _0x339dac,DisposableCollection as _0x2d7a31,CommandType as _0x412c4e,DependentOn as _0x2d581b,Plugin as _0x541451,merge as _0x367c89,registerDependencies as _0x5a7450,mergeOverrideWithDependencies as _0x3edeed,touchDependencies as _0x427e11}from'@univerjs/core';import{useDependency as _0x3d5a42,useObservable as _0x38adb2,IUIPartsService as _0x5ded7e,BuiltInUIPart as _0x1d340b,connectInjector as _0x573695}from'@univerjs/ui';import{jsx as _0x1c493a,jsxs as _0x151147,Fragment as _0xc16d68}from'react/jsx-runtime';import{Dropdown as _0x271335,clsx as _0x4fc2f0,Button as _0x47c0d7}from'@univerjs/design';import{useRef as _0x43a44d,createElement as _0x9d760e,forwardRef as _0x5dd029,useState as _0x105361,useEffect as _0xf1fe}from'react';import{CollaborationEvent as _0xfbd7ce,parseProtocolChangeset as _0x3bd4cc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1eb5ad,SessionStatus as _0x2028a0,UniverCollaborationClientPlugin as _0x32695c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4662fb,SetWorksheetActiveOperation as _0x382fbd}from'@univerjs/sheets';import{BehaviorSubject as _0x22afaf,Subject as _0x4d5a8a}from'rxjs';import{takeUntil as _0x5c0ffb,throttleTime as _0x3d75be}from'rxjs/operators';import{SetZoomRatioOperation as _0x3e9230,SetScrollOperation as _0x10ff22}from'@univerjs/sheets-ui';function k({ref:_0x6a9a4b,..._0x6607ad}){const _0x3eb271=_0xe409,{icon:_0x3fc80f,id:_0x4f9876,className:_0x3da3d3,extend:_0xf6b093,..._0x2044a2}=_0x6607ad,_0x3cb262=('univerjs-icon\x20univerjs-icon-'+_0x4f9876+'\x20'+(_0x3da3d3||''))[_0x3eb271(0x179)](),_0x1ced54=_0x43a44d('_'+Oe());return G(_0x3fc80f,''+_0x4f9876,{'defIds':_0x3fc80f[_0x3eb271(0x1b1)],'idSuffix':_0x1ced54[_0x3eb271(0x163)]},{'ref':_0x6a9a4b,'className':_0x3cb262,..._0x2044a2},_0xf6b093);}function G(_0x21771a,_0xa9d86f,_0x3dc626,_0x5cd706,_0x6b83d0){const _0x1104eb=_0xe409;return _0x9d760e(_0x21771a[_0x1104eb(0x156)],{'key':_0xa9d86f,...be(_0x21771a,_0x3dc626,_0x6b83d0),..._0x5cd706},(Ee(_0x21771a,_0x3dc626)[_0x1104eb(0x1e5)]||[])['map']((_0x2324d8,_0x44da57)=>G(_0x2324d8,_0xa9d86f+'-'+_0x21771a[_0x1104eb(0x156)]+'-'+_0x44da57,_0x3dc626,void 0x0,_0x6b83d0)));}function be(_0x405bd8,_0x497cb1,_0x3c8e7a){const _0x5697c3=_0xe409,_0x19d15b={..._0x405bd8[_0x5697c3(0x17b)]};_0x3c8e7a!=null&&_0x3c8e7a[_0x5697c3(0x1bb)]&&_0x19d15b[_0x5697c3(0x1b3)]===_0x5697c3(0x1bb)&&(_0x19d15b[_0x5697c3(0x1b3)]=_0x3c8e7a[_0x5697c3(0x1bb)]),_0x405bd8[_0x5697c3(0x156)]==='mask'&&_0x19d15b['id']&&(_0x19d15b['id']=_0x19d15b['id']+_0x497cb1[_0x5697c3(0x185)]),Object[_0x5697c3(0x18d)](_0x19d15b)[_0x5697c3(0x184)](([_0x27af38,_0x434ca1])=>{const _0x2d16ee=_0x5697c3;_0x27af38===_0x2d16ee(0x1ef)&&typeof _0x434ca1==_0x2d16ee(0x1f0)&&(_0x19d15b[_0x27af38]=_0x434ca1[_0x2d16ee(0x1b6)](/url\(#(.*)\)/,_0x2d16ee(0x177)+_0x497cb1[_0x2d16ee(0x185)]+')'));});const {defIds:_0x3ef991}=_0x497cb1;return!_0x3ef991||_0x3ef991[_0x5697c3(0x18e)]===0x0||(_0x405bd8[_0x5697c3(0x156)]===_0x5697c3(0x19f)&&_0x19d15b['xlink:href']&&(_0x19d15b[_0x5697c3(0x170)]=_0x19d15b[_0x5697c3(0x170)]+_0x497cb1['idSuffix']),Object['entries'](_0x19d15b)[_0x5697c3(0x184)](([_0x1e16c5,_0xd1753c])=>{const _0x48282f=_0x5697c3;typeof _0xd1753c==_0x48282f(0x1f0)&&(_0x19d15b[_0x1e16c5]=_0xd1753c[_0x48282f(0x1b6)](/url\(#(.*)\)/,'url(#$1'+_0x497cb1[_0x48282f(0x185)]+')'));})),_0x19d15b;}function Ee(_0x5ecafc,_0xb0ff3d){const _0xaac6fc=_0xe409;var _0x1649af;const {defIds:_0x57fb24}=_0xb0ff3d;return!_0x57fb24||_0x57fb24[_0xaac6fc(0x18e)]===0x0?_0x5ecafc:_0x5ecafc['tag']===_0xaac6fc(0x19a)&&((_0x1649af=_0x5ecafc['children'])!=null&&_0x1649af[_0xaac6fc(0x18e)])?{..._0x5ecafc,'children':_0x5ecafc[_0xaac6fc(0x1e5)]['map'](_0x2097ed=>typeof _0x2097ed[_0xaac6fc(0x17b)]['id']==_0xaac6fc(0x1f0)&&_0x57fb24&&_0x57fb24['includes'](_0x2097ed[_0xaac6fc(0x17b)]['id'])?{..._0x2097ed,'attrs':{..._0x2097ed[_0xaac6fc(0x17b)],'id':_0x2097ed[_0xaac6fc(0x17b)]['id']+_0xb0ff3d[_0xaac6fc(0x185)]}}:_0x2097ed)}:_0x5ecafc;}function Oe(){const _0x4c634c=_0xe409;return Math['random']()['toString'](0x24)[_0x4c634c(0x18b)](0x2,0x8);}function _0x33ed(){const _0x4233a7=['_unitID','PRESENTING','type','executeCommand','get','1729788GBCzyd','Present\x20this\x20document','_handleOffline','getLiveShareCoordinator','_commandService','FOLLOWING','map','LIVESHARE_FETCH_OPERATIONS','1em','init','unsubscribe','then','defIds','getUnitId','fill','UNIVER_SHEET','getTypeOfUnitAdded$','replace','parse','evenodd','onRendered','_mountLiveShare','colorChannel1','path','LIVESHARE_OPERATION','sessionStatus$','_presenter','button','HEADER_MENU','_handleOnline','IDLE','currentColor','_configService','_injector','displayName','sheet','default','live-share.config','LiveShareIcon','has','requireSession','_startLiveShareCoordinator','_collabSession','NEW_CHANGESETS','_startPresenting','data','disposeWithMe','next','470eqiCep','_stopFollowing','_beIdle','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','dispose','247406IwrpSk','_collabSessionService','ONLINE','_entities','_config','onCommandExecuted','getLiveShareCoordinatorSync','_sharedOperations','children','stopFollowing','presenting','stringify','_handleNewChangeSets','univer-size-4','_status$','live-share-icon','196dIBLcj','Stop\x20following','mask','string','reverse','dispose$','UNIVER_UNKNOWN','unitId','_commandDisposable','clear','memberID','5OqqcmR','tag','registerSharedOperation','registerComponent','send','values','text','assign','3393236xuwqKQ','getInitialStates','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','presenter','stopPresenting','current','none','delete','getMemberID','_reporters','getOwnPropertyDescriptor','from','getConfig','div','getCurrentTypeOfUnit$','4386376grmqFS','setConfig','offline','xlink:href','285137PKrCMj','_fetchOperations','asObservable','set','_uiPartsService','_stopPresenting','url(#$1','http://www.w3.org/2000/svg','trim','add','attrs','You\x27re\x20following\x20the\x20presenter','_status','idle','defineProperty','Start\x20following','includes','41430gpasBe','createInstance','forEach','idSuffix','LIVESHARE_NEW_HOST','shouldShareOperation','_univerInstanceService','following','OFFLINE','substring','Start','entries','length','234369DfjfQR','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','_init','subscribe','_handleTerminate','startFollowing','_liveShareService','pipe','UNIVER_LIVE_SHARE_PLUGIN','operations','defs','complete','Stop\x20presenting','params','NOT_FOLLOWING','use'];_0x33ed=function(){return _0x4233a7;};return _0x33ed();}k[_0x37c48f(0x1c7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x37c48f(0x178),'fill':_0x37c48f(0x164),'viewBox':'0\x200\x2017\x2017','width':_0x37c48f(0x1ad),'height':'1em'},'children':[{'tag':_0x37c48f(0x1bc),'attrs':{'fill':_0x37c48f(0x1c4),'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':_0x37c48f(0x1c4),'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':_0x37c48f(0x1b8),'clipRule':'evenodd'}}]},W=_0x5dd029(function(_0x31e086,_0x8c82f6){const _0x3cad22=_0x37c48f;return _0x9d760e(k,Object[_0x3cad22(0x15c)]({},_0x31e086,{'id':_0x3cad22(0x1ec),'ref':_0x8c82f6,'icon':we}));});W[_0x37c48f(0x1c7)]=_0x37c48f(0x1cb);class L extends _0x56ac81{constructor(){const _0x4dd519=_0x37c48f;super(...arguments),u(this,_0x4dd519(0x1e4),new Set()),u(this,_0x4dd519(0x167),new Set());}[_0x37c48f(0x157)](_0x2c4f01){const _0x2a6c26=_0x37c48f;return this[_0x2a6c26(0x1e4)][_0x2a6c26(0x17a)](_0x2c4f01),_0x14fed3(()=>this[_0x2a6c26(0x1e4)][_0x2a6c26(0x165)](_0x2c4f01));}['registerInitialStateReporter'](_0x4d105b){const _0x7286ea=_0x37c48f;return this[_0x7286ea(0x167)][_0x7286ea(0x17a)](_0x4d105b),_0x14fed3(()=>this[_0x7286ea(0x167)][_0x7286ea(0x165)](_0x4d105b));}[_0x37c48f(0x187)](_0x2dfe0a){const _0x14cc4c=_0x37c48f;return this[_0x14cc4c(0x1e4)][_0x14cc4c(0x1cc)](_0x2dfe0a);}[_0x37c48f(0x15e)](_0xe3cf1a){const _0x37aea6=_0x37c48f;return Array[_0x37aea6(0x169)](this[_0x37aea6(0x167)])[_0x37aea6(0x1ab)](_0x35e6a2=>_0x35e6a2(_0xe3cf1a));}}var Ne=Object[_0x37c48f(0x168)],Y=(_0x123d7,_0x1484b4,_0x49d19f,_0x3c0cdd)=>{const _0x9ce59e=_0x37c48f;for(var _0x45c3b6=_0x3c0cdd>0x1?void 0x0:_0x3c0cdd?Ne(_0x1484b4,_0x49d19f):_0x1484b4,_0x3d5235=_0x123d7[_0x9ce59e(0x18e)]-0x1,_0x488a22;_0x3d5235>=0x0;_0x3d5235--)(_0x488a22=_0x123d7[_0x3d5235])&&(_0x45c3b6=_0x488a22(_0x45c3b6)||_0x45c3b6);return _0x45c3b6;},_=(_0x3839bc,_0x1b3d1b)=>(_0x32464c,_0x1ae4f3)=>_0x1b3d1b(_0x32464c,_0x1ae4f3,_0x3839bc);let S=class extends _0x46b3fc{constructor(_0x370983,_0xe71a93,_0x1f54c1){const _0x5a7010=_0x37c48f;super(),u(this,_0x5a7010(0x1e0),new Map()),(this[_0x5a7010(0x188)]=_0x370983,this['_injector']=_0xe71a93,this[_0x5a7010(0x1de)]=_0x1f54c1,this[_0x5a7010(0x192)]());}async[_0x37c48f(0x1a8)](_0xbaa191){const _0x5aac94=_0x37c48f;return this[_0x5aac94(0x1e0)][_0x5aac94(0x1cc)](_0xbaa191)||await this['_startLiveShareCoordinator'](_0xbaa191),this['_entities'][_0x5aac94(0x1a4)](_0xbaa191);}[_0x37c48f(0x1e3)](_0x1e78a2){const _0x1bd250=_0x37c48f;var _0x5ade84;return(_0x5ade84=this[_0x1bd250(0x1e0)][_0x1bd250(0x1a4)](_0x1e78a2))!=null?_0x5ade84:null;}[_0x37c48f(0x192)](){const _0x172b40=_0x37c48f;this['_univerInstanceService'][_0x172b40(0x1b5)](_0x339dac[_0x172b40(0x1b4)])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](async _0x12f299=>{const _0x1f164a=_0x172b40,_0x17e224=_0x12f299[_0x1f164a(0x1b2)]();this[_0x1f164a(0x1e0)][_0x1f164a(0x1cc)](_0x17e224)||this[_0x1f164a(0x1ce)](_0x17e224);}),this[_0x172b40(0x188)]['getTypeOfUnitDisposed$'](_0x339dac['UNIVER_SHEET'])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](_0x102a61=>{const _0x2e9cf2=_0x172b40,_0x56aa42=_0x102a61[_0x2e9cf2(0x1b2)](),_0x2b0201=this['_entities'][_0x2e9cf2(0x1a4)](_0x56aa42);_0x2b0201==null||_0x2b0201['dispose']();});}async[_0x37c48f(0x1ce)](_0x5b5fdf){const _0xd07fe1=_0x37c48f,_0x448e24=await this['_collabSessionService'][_0xd07fe1(0x1cd)](_0x5b5fdf),_0x2217ff=this[_0xd07fe1(0x1c6)][_0xd07fe1(0x183)](N,_0x5b5fdf,_0x448e24);return _0x2217ff['init'](),this['_entities'][_0xd07fe1(0x174)](_0x5b5fdf,_0x2217ff),_0x2217ff;}};S=Y([_(0x0,_0x3fde3e),_(0x1,_0x19be43(_0x26383e)),_(0x2,_0x19be43(_0x1eb5ad))],S);var c=(_0x39528e=>(_0x39528e[_0x37c48f(0x18a)]=_0x37c48f(0x16f),_0x39528e[_0x37c48f(0x1c3)]=_0x37c48f(0x17e),_0x39528e[_0x37c48f(0x1aa)]=_0x37c48f(0x189),_0x39528e[_0x37c48f(0x19e)]=_0x37c48f(0x191),_0x39528e[_0x37c48f(0x1a1)]=_0x37c48f(0x1e7),_0x39528e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x46b3fc{constructor(_0x24039b,_0x1907e1,_0x3d58c3,_0x471940,_0x78b654){const _0x4078f8=_0x37c48f;super(),u(this,_0x4078f8(0x1eb),new _0x22afaf(_0x4078f8(0x17e))),u(this,'status$',this[_0x4078f8(0x1eb)][_0x4078f8(0x173)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x4078f8(0x1bf),null),(this[_0x4078f8(0x1a0)]=_0x24039b,this[_0x4078f8(0x1cf)]=_0x1907e1,this[_0x4078f8(0x1c5)]=_0x3d58c3,this[_0x4078f8(0x196)]=_0x471940,this['_commandService']=_0x78b654);}get['_status'](){return this['_status$']['getValue']();}['dispose'](){const _0x3c9b6a=_0x37c48f;var _0x3004c1;(_0x3004c1=this[_0x3c9b6a(0x152)])==null||_0x3004c1[_0x3c9b6a(0x1dc)](),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x1d4)](_0x3c9b6a(0x17e)),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x19b)]();}['getStatus'](){const _0x434247=_0x37c48f;return this[_0x434247(0x17d)];}[_0x37c48f(0x1ae)](){const _0x582012=_0x37c48f;this[_0x582012(0x192)]||(this[_0x582012(0x192)]=!0x0,this[_0x582012(0x1cf)][_0x582012(0x1be)][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x474db0=>{const _0x3b3a2a=_0x582012;switch(_0x474db0){case _0x2028a0['OFFLINE']:this[_0x3b3a2a(0x1a7)]();break;case _0x2028a0[_0x3b3a2a(0x1df)]:this[_0x3b3a2a(0x1c2)]();break;}}),this[_0x582012(0x1cf)]['event$'][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x31de8c=>{const _0x5e9b77=_0x582012,{eventID:_0x506dec}=_0x31de8c;switch(_0x506dec){case _0xfbd7ce[_0x5e9b77(0x186)]:this[_0x5e9b77(0x15f)](_0x31de8c);break;case _0xfbd7ce['LIVESHARE_OPERATION']:this['_handleOperation'](_0x31de8c);break;case _0xfbd7ce[_0x5e9b77(0x1db)]:this['_handleTerminate']();break;case _0xfbd7ce[_0x5e9b77(0x1d0)]:this[_0x5e9b77(0x1e9)](_0x31de8c);break;}}));}[_0x37c48f(0x1d9)](){const _0x3eecda=_0x37c48f;this[_0x3eecda(0x1cf)]['send']({'eventID':_0xfbd7ce['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3eecda(0x1a0)],'userID':this[_0x3eecda(0x1cf)][_0x3eecda(0x166)]()}},this[_0x3eecda(0x1a0)]);}[_0x37c48f(0x162)](){const _0x5906ad=_0x37c48f;this[_0x5906ad(0x17d)]===_0x5906ad(0x1e7)&&(this[_0x5906ad(0x1eb)]['next'](_0x5906ad(0x17e)),this[_0x5906ad(0x1cf)][_0x5906ad(0x159)]({'eventID':_0xfbd7ce[_0x5906ad(0x1db)],'data':{'unitID':this[_0x5906ad(0x1a0)]}},this[_0x5906ad(0x1a0)]));}[_0x37c48f(0x195)](){const _0x10cb14=_0x37c48f;this[_0x10cb14(0x17d)]===_0x10cb14(0x191)&&(this[_0x10cb14(0x1eb)][_0x10cb14(0x1d4)]('following'),this['_startFollowing']());}[_0x37c48f(0x1e6)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x37c48f(0x15f)](_0x575056){const _0x452080=_0x37c48f,{presenter:_0x26a52b}=_0x575056[_0x452080(0x1d2)],_0x1ec058=this[_0x452080(0x1cf)][_0x452080(0x166)]();this['_presenter']=_0x26a52b,_0x26a52b===_0x1ec058?(this[_0x452080(0x1d6)](),this[_0x452080(0x1d1)]()):this['_status']!=='not-following'&&(this[_0x452080(0x176)](),this['_startFollowing']());}[_0x37c48f(0x172)](){const _0x26024b=_0x37c48f,_0x18a090={'eventID':_0xfbd7ce[_0x26024b(0x1ac)]};this[_0x26024b(0x1cf)][_0x26024b(0x159)](_0x18a090,this['_unitID']);}[_0x37c48f(0x194)](){const _0xa0f93=_0x37c48f;this[_0xa0f93(0x1bf)]=null,this['_status']!==_0xa0f93(0x1e7)&&this[_0xa0f93(0x1d7)]();}[_0x37c48f(0x1e9)](_0xf00b52){const _0x260620=_0x37c48f;if(this[_0x260620(0x17d)]===_0x260620(0x189)&&this[_0x260620(0x1bf)]===_0xf00b52[_0x260620(0x1d2)][_0x260620(0x154)]){const _0x53f7bf=_0x3bd4cc(_0xf00b52[_0x260620(0x1d2)])['mutations'][_0x260620(0x1f1)]()['find'](_0x5419f1=>_0x5419f1['id']===_0x4662fb['id']);if(_0x53f7bf){const _0x17a862=_0x53f7bf[_0x260620(0x19d)][_0x260620(0x1f4)],_0x12d9c8=_0x53f7bf['params'][_0x260620(0x1c8)]['id'];setTimeout(()=>{const _0x460506=_0x260620;this[_0x460506(0x1a9)][_0x460506(0x1a3)](_0x382fbd['id'],{'unitId':_0x17a862,'subUnitId':_0x12d9c8},{'fromCollab':!0x0});});}}}[_0x37c48f(0x1d1)](){const _0x1c754c=_0x37c48f;this[_0x1c754c(0x1eb)][_0x1c754c(0x1d4)](_0x1c754c(0x1e7));const _0x2a2428=new Map(),_0x2efb46=this[_0x1c754c(0x152)]=new _0x2d7a31();_0x2efb46[_0x1c754c(0x17a)](_0x14fed3(()=>{const _0x2aab58=_0x1c754c;_0x2a2428['forEach'](_0x5d25ad=>_0x5d25ad['complete']()),_0x2a2428[_0x2aab58(0x153)]();})),_0x2efb46[_0x1c754c(0x17a)](this[_0x1c754c(0x1a9)][_0x1c754c(0x1e2)](_0x454cc7=>{const _0x3e998b=_0x1c754c;var _0x5020ce;if(_0x454cc7['type']!==_0x412c4e['OPERATION']||!this['_liveShareService'][_0x3e998b(0x187)](_0x454cc7['id']))return;const {id:_0x313e1d}=_0x454cc7;let _0x1bca42;_0x2a2428[_0x3e998b(0x1cc)](_0x313e1d)?_0x1bca42=_0x2a2428['get'](_0x313e1d):(_0x1bca42=new _0x4d5a8a(),_0x2a2428[_0x3e998b(0x174)](_0x313e1d,_0x1bca42),_0x1bca42[_0x3e998b(0x197)](_0x3d75be((_0x5020ce=this[_0x3e998b(0x1c5)][_0x3e998b(0x16a)](Ce))!=null?_0x5020ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e998b(0x193)](_0x26576b=>{const _0x20d493=_0x3e998b;this[_0x20d493(0x1cf)][_0x20d493(0x159)]({'eventID':_0xfbd7ce[_0x20d493(0x1bd)],'data':{'unitID':this[_0x20d493(0x1a0)],'operations':{[_0x26576b['id']]:{'id':_0x26576b['id'],'params':JSON[_0x20d493(0x1e8)](_0x26576b[_0x20d493(0x19d)])}}}},this[_0x20d493(0x1a0)]);})),_0x1bca42[_0x3e998b(0x1d4)](_0x454cc7);})),this[_0x1c754c(0x196)][_0x1c754c(0x15e)](this[_0x1c754c(0x1a0)])[_0x1c754c(0x184)](_0x11a717=>this[_0x1c754c(0x1cf)][_0x1c754c(0x159)]({'eventID':_0xfbd7ce[_0x1c754c(0x1bd)],'data':{'unitID':this[_0x1c754c(0x1a0)],'operations':{[_0x11a717['id']]:{'id':_0x11a717['id'],'params':JSON['stringify'](_0x11a717['params'])}}}},this[_0x1c754c(0x1a0)]));}[_0x37c48f(0x176)](){const _0x4fa1ae=_0x37c48f;var _0x1e6b49;this[_0x4fa1ae(0x1eb)][_0x4fa1ae(0x1d4)](_0x4fa1ae(0x17e)),(_0x1e6b49=this[_0x4fa1ae(0x152)])==null||_0x1e6b49[_0x4fa1ae(0x1dc)](),this[_0x4fa1ae(0x152)]=null;}['_startFollowing'](){const _0x59deb8=_0x37c48f;var _0x20e2fd;(_0x20e2fd=this[_0x59deb8(0x152)])==null||_0x20e2fd[_0x59deb8(0x1dc)](),this['_status$'][_0x59deb8(0x1d4)](_0x59deb8(0x189));}['_beIdle'](){const _0xb90c9=_0x37c48f;var _0x97f99b;this['_status$'][_0xb90c9(0x1d4)](_0xb90c9(0x17e)),(_0x97f99b=this[_0xb90c9(0x152)])==null||_0x97f99b['dispose'](),this[_0xb90c9(0x152)]=null;}['_stopFollowing'](){const _0x2100ba=_0x37c48f;var _0x4dc1e1;this['_status$'][_0x2100ba(0x1d4)](_0x2100ba(0x191)),(_0x4dc1e1=this['_commandDisposable'])==null||_0x4dc1e1[_0x2100ba(0x1dc)]();}['_handleOperation'](_0x31017b){const _0x2637e2=_0x37c48f;if([_0x2637e2(0x1e7),_0x2637e2(0x191),'offline'][_0x2637e2(0x181)](this[_0x2637e2(0x17d)])||!_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]||_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]===this[_0x2637e2(0x1cf)][_0x2637e2(0x166)]())return;this[_0x2637e2(0x17d)]===_0x2637e2(0x17e)&&this['_startFollowing']();const _0x22448a=_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x199)];Object[_0x2637e2(0x15a)](_0x22448a)[_0x2637e2(0x184)](_0x27d47b=>{const _0x586c00=_0x2637e2;this[_0x586c00(0x1a9)][_0x586c00(0x1a3)](_0x27d47b['id'],_0x27d47b[_0x586c00(0x19d)]?JSON[_0x586c00(0x1b7)](_0x27d47b[_0x586c00(0x19d)]):null,{'fromCollab':!0x0});});}[_0x37c48f(0x1a7)](){const _0x329270=_0x37c48f;var _0x6f6b0a;this[_0x329270(0x1eb)][_0x329270(0x1d4)]('offline'),(_0x6f6b0a=this['_commandDisposable'])==null||_0x6f6b0a[_0x329270(0x1dc)]();}[_0x37c48f(0x1c2)](){const _0x4dcb9b=_0x37c48f;this[_0x4dcb9b(0x1eb)][_0x4dcb9b(0x1d4)]('idle'),this[_0x4dcb9b(0x172)]();}};N=Y([_(0x2,_0x347dc0),_(0x3,_0x19be43(L)),_(0x4,_0x4afaea)],N);function Le(){const _0x1ea1a8=_0x37c48f,_0x22966e=_0x3d5a42(S),_0x2236d8=_0x3d5a42(_0x3fde3e),_0x5cd4cb=_0x38adb2(()=>_0x2236d8[_0x1ea1a8(0x16c)](_0x339dac[_0x1ea1a8(0x1b4)]),void 0x0,!0x1,[]),[_0x1611cd,_0x217445]=_0x105361(null),[_0x55b7dd,_0x20ae94]=_0x105361(c[_0x1ea1a8(0x1c3)]),_0x315ebb=_0x43a44d(null);return _0xf1fe(()=>(_0x5cd4cb&&_0x22966e[_0x1ea1a8(0x1a8)](_0x5cd4cb['getUnitId']())[_0x1ea1a8(0x1b0)](_0x3c2aef=>{_0x217445(_0x3c2aef),_0x315ebb['current']=_0x3c2aef['status$']['subscribe'](_0x3e5d2d=>{_0x20ae94(_0x3e5d2d);});}),()=>{const _0x819182=_0x1ea1a8;var _0x258e73;(_0x258e73=_0x315ebb[_0x819182(0x163)])==null||_0x258e73[_0x819182(0x1af)](),_0x315ebb[_0x819182(0x163)]=null;}),[_0x5cd4cb,_0x22966e]),_0x1611cd?_0x1c493a(_0x271335,{'align':'end','disabled':_0x55b7dd===c[_0x1ea1a8(0x18a)],'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':_0x1c493a(Re,{'status':_0x55b7dd,'coordinator':_0x1611cd}),'children':_0x1c493a(_0x1ea1a8(0x1c0),{'className':_0x4fc2f0(_0x1ea1a8(0x1da),{'univer-cursor-not-allowed':_0x55b7dd===c[_0x1ea1a8(0x18a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x55b7dd!==c['OFFLINE']}),'type':_0x1ea1a8(0x1c0),'children':_0x1c493a(W,{'className':_0x1ea1a8(0x1ea)})})}):null;}function Re(_0x37a44d){const _0x147e21=_0x37c48f,{status:_0x4931d6,coordinator:_0x557276}=_0x37a44d;switch(_0x4931d6){case c[_0x147e21(0x1c3)]:return _0x1c493a($e,{'coordinator':_0x557276});case c[_0x147e21(0x1aa)]:return _0x1c493a(xe,{'coordinator':_0x557276});case c[_0x147e21(0x19e)]:return _0x1c493a(Pe,{'coordinator':_0x557276});case c['OFFLINE']:return _0x1c493a(Te,{});case c[_0x147e21(0x1a1)]:return _0x1c493a(Ae,{'coordinator':_0x557276});default:return null;}}function $e(_0x391410){const _0x40007c=_0x37c48f,{coordinator:_0x5774ff}=_0x391410;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x40007c(0x16b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40007c(0x1a6)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5774ff[_0x40007c(0x1d9)](),'children':_0x40007c(0x18c)})]});}function xe(_0xcdaabc){const _0x131849=_0x37c48f,{coordinator:_0x5a040e}=_0xcdaabc;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x131849(0x16b),{'className':_0x131849(0x190),'children':_0x131849(0x17c)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5a040e['stopFollowing'](),'children':_0x131849(0x1ee)})]});}function Pe(_0x1887a6){const _0x347485=_0x37c48f,{coordinator:_0x1a1a0b}=_0x1887a6;return _0x151147(_0xc16d68,{'children':[_0x1c493a('div',{'className':_0x347485(0x190),'children':_0x347485(0x160)}),_0x1c493a(_0x47c0d7,{'variant':_0x347485(0x15b),'onClick':()=>_0x1a1a0b[_0x347485(0x195)](),'children':_0x347485(0x180)})]});}function Ae(_0x412684){const _0x4e2d21=_0x37c48f,{coordinator:_0x1d6da3}=_0x412684;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x4e2d21(0x16b),{'className':_0x4e2d21(0x190),'children':_0x4e2d21(0x1d8)}),_0x1c493a(_0x47c0d7,{'variant':_0x4e2d21(0x1c9),'onClick':()=>_0x1d6da3['stopPresenting'](),'children':_0x4e2d21(0x19c)})]});}function Te(){return _0x1c493a(_0xc16d68,{'children':'You\x27are\x20offline.'});}function _0xe409(_0xaa3080,_0x1dee92){_0xaa3080=_0xaa3080-0x152;const _0x33ed51=_0x33ed();let _0xe409db=_0x33ed51[_0xaa3080];return _0xe409db;}var Fe=Object[_0x37c48f(0x168)],He=(_0x230e79,_0x12bf92,_0x2e8b43,_0x205585)=>{const _0x88815=_0x37c48f;for(var _0x20393d=_0x205585>0x1?void 0x0:_0x205585?Fe(_0x12bf92,_0x2e8b43):_0x12bf92,_0x13c93a=_0x230e79[_0x88815(0x18e)]-0x1,_0x13d586;_0x13c93a>=0x0;_0x13c93a--)(_0x13d586=_0x230e79[_0x13c93a])&&(_0x20393d=_0x13d586(_0x20393d)||_0x20393d);return _0x20393d;},A=(_0x10527a,_0x4d9110)=>(_0x4994de,_0x51e168)=>_0x4d9110(_0x4994de,_0x51e168,_0x10527a);let m=class extends _0x56ac81{constructor(_0x4bb6d3,_0x5d888e){const _0x58644e=_0x37c48f;super(),this[_0x58644e(0x1c6)]=_0x4bb6d3,this[_0x58644e(0x175)]=_0x5d888e,this[_0x58644e(0x1ba)]();}[_0x37c48f(0x1ba)](){const _0x47fac4=_0x37c48f;this[_0x47fac4(0x1d3)](this[_0x47fac4(0x175)][_0x47fac4(0x158)](_0x1d340b[_0x47fac4(0x1c1)],()=>_0x573695(Le,this[_0x47fac4(0x1c6)])));}};m=He([A(0x0,_0x19be43(_0x26383e)),A(0x1,_0x5ded7e)],m);const ye=_0x37c48f(0x1ca),T={};var Ue=Object[_0x37c48f(0x168)],Ve=(_0x540eb4,_0x2a9b18,_0x455760,_0x812682)=>{for(var _0x37e0d4=_0x812682>0x1?void 0x0:_0x812682?Ue(_0x2a9b18,_0x455760):_0x2a9b18,_0x1f81a3=_0x540eb4['length']-0x1,_0x1ca031;_0x1f81a3>=0x0;_0x1f81a3--)(_0x1ca031=_0x540eb4[_0x1f81a3])&&(_0x37e0d4=_0x1ca031(_0x37e0d4)||_0x37e0d4);return _0x37e0d4;},je=(_0x225310,_0x4a766c)=>(_0x4352a8,_0x7b2082)=>_0x4a766c(_0x4352a8,_0x7b2082,_0x225310);let I=class extends _0x56ac81{constructor(_0x1ca355){const _0x21146b=_0x37c48f;super(),this[_0x21146b(0x196)]=_0x1ca355,this['_init']();}['_init'](){const _0x1e41bd=_0x37c48f;[_0x3e9230['id'],_0x10ff22['id'],_0x382fbd['id']][_0x1e41bd(0x184)](_0x442392=>{const _0x5a4ee6=_0x1e41bd;this[_0x5a4ee6(0x1d3)](this['_liveShareService']['registerSharedOperation'](_0x442392));});}};I=Ve([je(0x0,_0x19be43(L))],I);var Me=Object[_0x37c48f(0x17f)],ke=Object[_0x37c48f(0x168)],Ge=(_0x4d96d2,_0x46dd97,_0x578493)=>_0x46dd97 in _0x4d96d2?Me(_0x4d96d2,_0x46dd97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x578493}):_0x4d96d2[_0x46dd97]=_0x578493,We=(_0x124c68,_0x4ea24f,_0x4db16c,_0x23dbd8)=>{const _0x16e381=_0x37c48f;for(var _0x4bbc4c=_0x23dbd8>0x1?void 0x0:_0x23dbd8?ke(_0x4ea24f,_0x4db16c):_0x4ea24f,_0x8b876f=_0x124c68[_0x16e381(0x18e)]-0x1,_0x1828b3;_0x8b876f>=0x0;_0x8b876f--)(_0x1828b3=_0x124c68[_0x8b876f])&&(_0x4bbc4c=_0x1828b3(_0x4bbc4c)||_0x4bbc4c);return _0x4bbc4c;},F=(_0x2ea2ad,_0x5bd073)=>(_0x23bb14,_0x3baa36)=>_0x5bd073(_0x23bb14,_0x3baa36,_0x2ea2ad),B=(_0x177243,_0x12ee22,_0x5f074d)=>Ge(_0x177243,typeof _0x12ee22!='symbol'?_0x12ee22+'':_0x12ee22,_0x5f074d);const Ye=_0x37c48f(0x198);let b=class extends _0x541451{constructor(_0x42ba05=T,_0x18530,_0x4a93fd){const _0x22037d=_0x37c48f;super(),this[_0x22037d(0x1e1)]=_0x42ba05,this[_0x22037d(0x1c6)]=_0x18530,this[_0x22037d(0x1c5)]=_0x4a93fd;const {..._0x28cc9a}=_0x367c89({},T,this[_0x22037d(0x1e1)]);this[_0x22037d(0x1c5)][_0x22037d(0x16e)](ye,_0x28cc9a);}['onStarting'](){const _0x66a57b=_0x37c48f;_0x5a7450(this[_0x66a57b(0x1c6)],_0x3edeed([[L],[S],[I],[m]],this['_config']['override'])),_0x427e11(this[_0x66a57b(0x1c6)],[[I]]);}[_0x37c48f(0x1b9)](){const _0x2a4dcb=_0x37c48f;_0x427e11(this[_0x2a4dcb(0x1c6)],[[m]]);}};B(b,_0x37c48f(0x1a2),_0x339dac[_0x37c48f(0x1f3)]),B(b,'pluginName',Ye),b=We([_0x2d581b(_0x32695c),F(0x1,_0x19be43(_0x26383e)),F(0x2,_0x347dc0)],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 _0x184b(){const _0x1fb4c7=['24UEqPnX','_injector','UniverSheetsUi','function','3243033DIgpQF','extend','getUnitId','UniverSheetsFacade','getSheetId','FEnum','tryStartPresenting','startFollowing','1758044lxxGNt','6362DoZgAE','PRESENTING','UniverCoreFacade','getActiveWorkbook','startColumn','LiveShareStatusEnum','UniverSheets','15Xfqqhg','getLiveShareStatus','16635470xoUaEA','UniverEngineRender','@univerjs/core/facade','9004626JmgaBE','getId','object','getActiveSheet','getRenderById','3397179QUxurJ','@univerjs/engine-render','stopFollowing','_commandService','getLiveShareCoordinatorSync','LiveShareController','@univerjs/sheets-ui','FUniver','getStatus','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs-pro/live-share','@univerjs/sheets/facade','3956687IILJWX','IRenderManagerService','No\x20active\x20workbook\x20found.','stopPresenting','startPresenting','get','353SBcUdl','11tCQojR','LiveShareStatus'];_0x184b=function(){return _0x1fb4c7;};return _0x184b();}function _0x3177(_0x1025d1,_0x2f5974){_0x1025d1=_0x1025d1-0x133;const _0x184b86=_0x184b();let _0x31773d=_0x184b86[_0x1025d1];return _0x31773d;}(function(_0x38bec1,_0x13987a){const _0x5e3add=_0x3177,_0x4a558f=_0x38bec1();while(!![]){try{const _0x1addbe=parseInt(_0x5e3add(0x148))/0x1*(parseInt(_0x5e3add(0x158))/0x2)+parseInt(_0x5e3add(0x135))/0x3+-parseInt(_0x5e3add(0x157))/0x4*(-parseInt(_0x5e3add(0x15f))/0x5)+-parseInt(_0x5e3add(0x164))/0x6+-parseInt(_0x5e3add(0x142))/0x7+parseInt(_0x5e3add(0x14b))/0x8*(parseInt(_0x5e3add(0x14f))/0x9)+parseInt(_0x5e3add(0x161))/0xa*(-parseInt(_0x5e3add(0x149))/0xb);if(_0x1addbe===_0x13987a)break;else _0x4a558f['push'](_0x4a558f['shift']());}catch(_0x5de97b){_0x4a558f['push'](_0x4a558f['shift']());}}}(_0x184b,0xe1e57),function(_0x23b9af,_0x5ea572){const _0x1fa31a=_0x3177;typeof exports==_0x1fa31a(0x166)&&typeof module<'u'?_0x5ea572(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==_0x1fa31a(0x14e)&&define['amd']?define([_0x1fa31a(0x140),_0x1fa31a(0x136),'@univerjs/sheets',_0x1fa31a(0x13b),_0x1fa31a(0x141),_0x1fa31a(0x163)],_0x5ea572):(_0x23b9af=typeof globalThis<'u'?globalThis:_0x23b9af||self,_0x5ea572(_0x23b9af['UniverProLiveShare'],_0x23b9af[_0x1fa31a(0x162)],_0x23b9af[_0x1fa31a(0x15e)],_0x23b9af[_0x1fa31a(0x14d)],_0x23b9af[_0x1fa31a(0x152)],_0x23b9af[_0x1fa31a(0x15a)]));}(this,function(_0x356370,_0x45abd8,_0x3bc2de,_0x3a8b23,_0x3a08f6,_0x4fc22c){'use strict';const _0x437d23=_0x3177;class _0x1c052f extends _0x3a08f6['FRange']{['_initialize'](_0x49bdf9,_0x593056,_0x3d0a3b,_0x3e7ef2,_0x11267f){const _0x41a94a=_0x3177,_0x41c117=_0x49bdf9[_0x41a94a(0x147)](_0x356370[_0x41a94a(0x13a)]),_0x4c0895=_0x49bdf9[_0x41a94a(0x147)](_0x45abd8[_0x41a94a(0x143)]),_0x5255f9=_0x593056[_0x41a94a(0x151)](),_0x3c4003=_0x593056[_0x41a94a(0x133)](),_0x21a1ba=_0x41c117['getLiveShareCoordinatorSync'](_0x5255f9);(_0x21a1ba==null?void 0x0:_0x21a1ba['getStatus']())!==_0x356370[_0x41a94a(0x14a)][_0x41a94a(0x159)]||(_0x3d0a3b[_0x41a94a(0x153)]()!==_0x3c4003[_0x41a94a(0x153)]()&&this[_0x41a94a(0x138)]['executeCommand'](_0x3bc2de['SetWorksheetActiveOperation']['id'],{'unitId':_0x5255f9,'subUnitId':_0x3d0a3b['getSheetId']()}),!_0x4c0895[_0x41a94a(0x134)](_0x5255f9))||_0x11267f['syncExecuteCommand'](_0x3a8b23['SetScrollOperation']['id'],{'unitId':_0x593056[_0x41a94a(0x151)](),'sheetId':_0x3d0a3b[_0x41a94a(0x153)](),'sheetViewStartRow':_0x3e7ef2['startRow'],'sheetViewStartColumn':_0x3e7ef2[_0x41a94a(0x15c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3a08f6['FRange']['extend'](_0x1c052f);class _0x8a53b0 extends _0x4fc22c['FUniver']{[_0x437d23(0x160)](){const _0x7de63e=_0x437d23;var _0x5026b8,_0x3ff529;const _0x57f79a=this['_injector'][_0x7de63e(0x147)](_0x356370[_0x7de63e(0x13a)]),_0x16ca57=(_0x5026b8=this[_0x7de63e(0x15b)]())==null?void 0x0:_0x5026b8[_0x7de63e(0x165)]();if(!_0x16ca57)throw new Error(_0x7de63e(0x144));const _0x1327df=_0x57f79a[_0x7de63e(0x139)](_0x16ca57);return(_0x3ff529=_0x1327df==null?void 0x0:_0x1327df[_0x7de63e(0x13d)]())!=null?_0x3ff529:_0x356370[_0x7de63e(0x14a)][_0x7de63e(0x13e)];}[_0x437d23(0x156)](){const _0x4f0493=_0x437d23;var _0x3d85b4;const _0x40d2ad=this['_injector'][_0x4f0493(0x147)](_0x356370[_0x4f0493(0x13a)]),_0x4da09f=(_0x3d85b4=this[_0x4f0493(0x15b)]())==null?void 0x0:_0x3d85b4['getId']();if(!_0x4da09f)throw new Error(_0x4f0493(0x144));const _0x9ee365=_0x40d2ad[_0x4f0493(0x139)](_0x4da09f);if(!_0x9ee365)throw new Error(_0x4f0493(0x13f));_0x9ee365[_0x4f0493(0x156)]();}[_0x437d23(0x137)](){const _0x1acad3=_0x437d23;var _0x479f17;const _0x5c25ed=this[_0x1acad3(0x14c)]['get'](_0x356370[_0x1acad3(0x13a)]),_0xac21dc=(_0x479f17=this['getActiveWorkbook']())==null?void 0x0:_0x479f17[_0x1acad3(0x165)]();if(!_0xac21dc)throw new Error('No\x20active\x20workbook\x20found.');const _0x3bd355=_0x5c25ed['getLiveShareCoordinatorSync'](_0xac21dc);if(!_0x3bd355)throw new Error(_0x1acad3(0x13f));_0x3bd355[_0x1acad3(0x137)]();}[_0x437d23(0x146)](){const _0x574be5=_0x437d23;var _0xed8ec9;const _0x1c4b73=this[_0x574be5(0x14c)][_0x574be5(0x147)](_0x356370[_0x574be5(0x13a)]),_0x3d33f2=(_0xed8ec9=this[_0x574be5(0x15b)]())==null?void 0x0:_0xed8ec9[_0x574be5(0x165)]();if(!_0x3d33f2)throw new Error(_0x574be5(0x144));const _0x4ae96f=_0x1c4b73['getLiveShareCoordinatorSync'](_0x3d33f2);if(!_0x4ae96f)throw new Error(_0x574be5(0x13f));_0x4ae96f[_0x574be5(0x155)]();}[_0x437d23(0x145)](){const _0x1159ed=_0x437d23;var _0xfb8945;const _0x1e072e=this[_0x1159ed(0x14c)]['get'](_0x356370[_0x1159ed(0x13a)]),_0x5c1187=(_0xfb8945=this[_0x1159ed(0x15b)]())==null?void 0x0:_0xfb8945[_0x1159ed(0x165)]();if(!_0x5c1187)throw new Error(_0x1159ed(0x144));const _0x2f6ada=_0x1e072e[_0x1159ed(0x139)](_0x5c1187);if(!_0x2f6ada)throw new Error(_0x1159ed(0x13f));_0x2f6ada['stopPresenting']();}}_0x4fc22c[_0x437d23(0x13c)][_0x437d23(0x150)](_0x8a53b0);class _0x411215 extends _0x4fc22c[_0x437d23(0x154)]{get[_0x437d23(0x15d)](){return _0x356370['LiveShareStatus'];}}_0x4fc22c[_0x437d23(0x154)]['extend'](_0x411215);}));
1
+ (function(_0x351bb0,_0x5aa1d0){const _0x2201d3=_0x4625,_0xd07dfd=_0x351bb0();while(!![]){try{const _0x19a054=-parseInt(_0x2201d3(0x1b4))/0x1*(-parseInt(_0x2201d3(0x1c1))/0x2)+-parseInt(_0x2201d3(0x1c8))/0x3+parseInt(_0x2201d3(0x1cd))/0x4+parseInt(_0x2201d3(0x1b5))/0x5+parseInt(_0x2201d3(0x1b9))/0x6+-parseInt(_0x2201d3(0x1c2))/0x7*(parseInt(_0x2201d3(0x1b6))/0x8)+-parseInt(_0x2201d3(0x1ac))/0x9;if(_0x19a054===_0x5aa1d0)break;else _0xd07dfd['push'](_0xd07dfd['shift']());}catch(_0x21423f){_0xd07dfd['push'](_0xd07dfd['shift']());}}}(_0x116a,0xeb0a6),function(_0x520eb5,_0x68c8de){const _0x3a6024=_0x4625;typeof exports==_0x3a6024(0x1be)&&typeof module<'u'?_0x68c8de(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==_0x3a6024(0x1ae)&&define[_0x3a6024(0x1c7)]?define([_0x3a6024(0x1d2),_0x3a6024(0x1d8),_0x3a6024(0x1ce),_0x3a6024(0x1c6),'@univerjs/sheets/facade',_0x3a6024(0x1d0)],_0x68c8de):(_0x520eb5=typeof globalThis<'u'?globalThis:_0x520eb5||self,_0x68c8de(_0x520eb5[_0x3a6024(0x1ca)],_0x520eb5[_0x3a6024(0x1d6)],_0x520eb5[_0x3a6024(0x1a7)],_0x520eb5['UniverSheetsUi'],_0x520eb5[_0x3a6024(0x1aa)],_0x520eb5['UniverCoreFacade']));}(this,function(_0x536deb,_0x495ed0,_0x797dbf,_0x42d561,_0x133aaf,_0x1f9887){'use strict';const _0x582fd6=_0x4625;class _0x4b4201 extends _0x133aaf['FRange']{['_initialize'](_0x382676,_0x538d88,_0x11b598,_0x6b508c,_0x5b07dc){const _0x3b0840=_0x4625,_0x1d7d37=_0x382676['get'](_0x536deb[_0x3b0840(0x1d7)]),_0x1c2058=_0x382676['get'](_0x495ed0[_0x3b0840(0x1b2)]),_0x1702d5=_0x538d88[_0x3b0840(0x1b7)](),_0x4e7e34=_0x538d88[_0x3b0840(0x1c0)](),_0x25fa94=_0x1d7d37[_0x3b0840(0x1cf)](_0x1702d5);(_0x25fa94==null?void 0x0:_0x25fa94[_0x3b0840(0x1cb)]())!==_0x536deb['LiveShareStatus'][_0x3b0840(0x1da)]||(_0x11b598[_0x3b0840(0x1bc)]()!==_0x4e7e34[_0x3b0840(0x1bc)]()&&this[_0x3b0840(0x1cc)]['executeCommand'](_0x797dbf[_0x3b0840(0x1b1)]['id'],{'unitId':_0x1702d5,'subUnitId':_0x11b598[_0x3b0840(0x1bc)]()}),!_0x1c2058['getRenderById'](_0x1702d5))||_0x5b07dc[_0x3b0840(0x1b8)](_0x42d561[_0x3b0840(0x1c4)]['id'],{'unitId':_0x538d88['getUnitId'](),'sheetId':_0x11b598[_0x3b0840(0x1bc)](),'sheetViewStartRow':_0x6b508c[_0x3b0840(0x1ab)],'sheetViewStartColumn':_0x6b508c[_0x3b0840(0x1af)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x133aaf[_0x582fd6(0x1ba)]['extend'](_0x4b4201);class _0x25ae0d extends _0x1f9887[_0x582fd6(0x1d3)]{[_0x582fd6(0x1bf)](){const _0x5c2f76=_0x582fd6;var _0x486118,_0x421712;const _0x518d4a=this[_0x5c2f76(0x1a8)][_0x5c2f76(0x1c5)](_0x536deb[_0x5c2f76(0x1d7)]),_0x5da0b9=(_0x486118=this[_0x5c2f76(0x1b3)]())==null?void 0x0:_0x486118[_0x5c2f76(0x1c9)]();if(!_0x5da0b9)throw new Error('No\x20active\x20workbook\x20found.');const _0x572f88=_0x518d4a[_0x5c2f76(0x1cf)](_0x5da0b9);return(_0x421712=_0x572f88==null?void 0x0:_0x572f88[_0x5c2f76(0x1cb)]())!=null?_0x421712:_0x536deb['LiveShareStatus']['IDLE'];}[_0x582fd6(0x1d1)](){const _0x217bbd=_0x582fd6;var _0x4c08b6;const _0xf7aad6=this['_injector'][_0x217bbd(0x1c5)](_0x536deb[_0x217bbd(0x1d7)]),_0x58f272=(_0x4c08b6=this[_0x217bbd(0x1b3)]())==null?void 0x0:_0x4c08b6[_0x217bbd(0x1c9)]();if(!_0x58f272)throw new Error(_0x217bbd(0x1bb));const _0x2da593=_0xf7aad6['getLiveShareCoordinatorSync'](_0x58f272);if(!_0x2da593)throw new Error(_0x217bbd(0x1bd));_0x2da593[_0x217bbd(0x1d1)]();}[_0x582fd6(0x1d4)](){const _0x2ead18=_0x582fd6;var _0x2c2236;const _0x2a18d5=this['_injector']['get'](_0x536deb[_0x2ead18(0x1d7)]),_0x1d7d12=(_0x2c2236=this[_0x2ead18(0x1b3)]())==null?void 0x0:_0x2c2236[_0x2ead18(0x1c9)]();if(!_0x1d7d12)throw new Error(_0x2ead18(0x1bb));const _0x3301df=_0x2a18d5['getLiveShareCoordinatorSync'](_0x1d7d12);if(!_0x3301df)throw new Error(_0x2ead18(0x1bd));_0x3301df['stopFollowing']();}[_0x582fd6(0x1ad)](){const _0x38d986=_0x582fd6;var _0x11a337;const _0x5cc98f=this[_0x38d986(0x1a8)]['get'](_0x536deb[_0x38d986(0x1d7)]),_0x44e957=(_0x11a337=this[_0x38d986(0x1b3)]())==null?void 0x0:_0x11a337[_0x38d986(0x1c9)]();if(!_0x44e957)throw new Error(_0x38d986(0x1bb));const _0x342a7f=_0x5cc98f[_0x38d986(0x1cf)](_0x44e957);if(!_0x342a7f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x342a7f[_0x38d986(0x1d9)]();}['stopPresenting'](){const _0x37b041=_0x582fd6;var _0x2a4a24;const _0x3b52a3=this['_injector'][_0x37b041(0x1c5)](_0x536deb['LiveShareController']),_0x38d14d=(_0x2a4a24=this[_0x37b041(0x1b3)]())==null?void 0x0:_0x2a4a24[_0x37b041(0x1c9)]();if(!_0x38d14d)throw new Error(_0x37b041(0x1bb));const _0x4d2b42=_0x3b52a3['getLiveShareCoordinatorSync'](_0x38d14d);if(!_0x4d2b42)throw new Error(_0x37b041(0x1bd));_0x4d2b42[_0x37b041(0x1c3)]();}}_0x1f9887['FUniver'][_0x582fd6(0x1a9)](_0x25ae0d);class _0x5f2ea7 extends _0x1f9887['FEnum']{get['LiveShareStatusEnum'](){const _0xbaa14a=_0x582fd6;return _0x536deb[_0xbaa14a(0x1d5)];}}_0x1f9887[_0x582fd6(0x1b0)]['extend'](_0x5f2ea7);}));function _0x4625(_0x3eed7f,_0xe1264c){_0x3eed7f=_0x3eed7f-0x1a7;const _0x116a7a=_0x116a();let _0x4625fe=_0x116a7a[_0x3eed7f];return _0x4625fe;}function _0x116a(){const _0x1ea847=['@univerjs-pro/live-share','FUniver','stopFollowing','LiveShareStatus','UniverEngineRender','LiveShareController','@univerjs/engine-render','tryStartPresenting','PRESENTING','UniverSheets','_injector','extend','UniverSheetsFacade','startRow','24810669MvPARz','startPresenting','function','startColumn','FEnum','SetWorksheetActiveOperation','IRenderManagerService','getActiveWorkbook','6xyRWaj','9070785hEIvVs','8guRbmo','getUnitId','syncExecuteCommand','8670510Clhkzw','FRange','No\x20active\x20workbook\x20found.','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','object','getLiveShareStatus','getActiveSheet','313126iXdlUe','8874803kqApdm','stopPresenting','SetScrollOperation','get','@univerjs/sheets-ui','amd','2286477NLFbgl','getId','UniverProLiveShare','getStatus','_commandService','6203340yUoPUj','@univerjs/sheets','getLiveShareCoordinatorSync','@univerjs/core/facade','startFollowing'];_0x116a=function(){return _0x1ea847;};return _0x116a();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x256ba4,_0x1451a0){const _0xc91a9f=_0x50e4,_0x5e3335=_0x256ba4();while(!![]){try{const _0x2a778e=parseInt(_0xc91a9f(0x108))/0x1*(-parseInt(_0xc91a9f(0x1c5))/0x2)+parseInt(_0xc91a9f(0x11b))/0x3*(-parseInt(_0xc91a9f(0x1a5))/0x4)+-parseInt(_0xc91a9f(0x161))/0x5+-parseInt(_0xc91a9f(0x1a1))/0x6*(parseInt(_0xc91a9f(0x143))/0x7)+-parseInt(_0xc91a9f(0x13f))/0x8*(-parseInt(_0xc91a9f(0x107))/0x9)+parseInt(_0xc91a9f(0x126))/0xa+parseInt(_0xc91a9f(0x16e))/0xb;if(_0x2a778e===_0x1451a0)break;else _0x5e3335['push'](_0x5e3335['shift']());}catch(_0x267662){_0x5e3335['push'](_0x5e3335['shift']());}}}(_0x25fb,0x9be0f),function(_0x321a60,_0x1d77dd){const _0x830e2a=_0x50e4;typeof exports==_0x830e2a(0x1c1)&&typeof module<'u'?_0x1d77dd(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==_0x830e2a(0x15d)&&define['amd']?define([_0x830e2a(0x10f),_0x830e2a(0x11c),_0x830e2a(0x106),'react/jsx-runtime','@univerjs/design',_0x830e2a(0x147),_0x830e2a(0x124),_0x830e2a(0x1c6),_0x830e2a(0x1bb),_0x830e2a(0x116),_0x830e2a(0x122),_0x830e2a(0x170)],_0x1d77dd):(_0x321a60=typeof globalThis<'u'?globalThis:_0x321a60||self,_0x1d77dd(_0x321a60[_0x830e2a(0x1b0)]={},_0x321a60[_0x830e2a(0x15c)],_0x321a60[_0x830e2a(0x10e)],_0x321a60[_0x830e2a(0x103)],_0x321a60[_0x830e2a(0x1c0)],_0x321a60[_0x830e2a(0x103)],_0x321a60[_0x830e2a(0x132)],_0x321a60[_0x830e2a(0x1cb)],_0x321a60[_0x830e2a(0x10a)],_0x321a60[_0x830e2a(0x116)],_0x321a60['rxjs'][_0x830e2a(0xed)],_0x321a60['UniverSheetsUi']));}(this,function(_0x491357,_0x3cd3bb,_0x672739,_0x164c98,_0x29f95a,_0x29551b,_0x470106,_0x3f3ef9,_0x103de8,_0xb17181,_0x4f2afb,_0x405304){'use strict';const _0x36a365=_0x50e4;var _0x5d242e=Object[_0x36a365(0x130)],_0x577596=(_0x3e730f,_0x44c3e8,_0x4cafe0)=>_0x44c3e8 in _0x3e730f?_0x5d242e(_0x3e730f,_0x44c3e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cafe0}):_0x3e730f[_0x44c3e8]=_0x4cafe0,_0x5abcce=(_0x576cd5,_0x34e6ca,_0x104d7e)=>_0x577596(_0x576cd5,typeof _0x34e6ca!=_0x36a365(0x158)?_0x34e6ca+'':_0x34e6ca,_0x104d7e);function _0x2c7261({ref:_0x1c702c,..._0x3a3c8f}){const _0x1ac38f=_0x36a365,{icon:_0x3cdad0,id:_0x16bbd5,className:_0x57723d,extend:_0xe7b8bc,..._0x3fd566}=_0x3a3c8f,_0x3fe8ee=('univerjs-icon\x20univerjs-icon-'+_0x16bbd5+'\x20'+(_0x57723d||''))[_0x1ac38f(0x1a8)](),_0x3b92fb=_0x29551b[_0x1ac38f(0x181)]('_'+_0x501319());return _0x455187(_0x3cdad0,''+_0x16bbd5,{'defIds':_0x3cdad0[_0x1ac38f(0x17e)],'idSuffix':_0x3b92fb['current']},{'ref':_0x1c702c,'className':_0x3fe8ee,..._0x3fd566},_0xe7b8bc);}function _0x455187(_0x3ba8ef,_0x17ccd9,_0x3f6a02,_0x13bb5b,_0x5a082b){const _0x1cd4a5=_0x36a365;return _0x29551b[_0x1cd4a5(0x129)](_0x3ba8ef[_0x1cd4a5(0x155)],{'key':_0x17ccd9,..._0x16a26e(_0x3ba8ef,_0x3f6a02,_0x5a082b),..._0x13bb5b},(_0x3da627(_0x3ba8ef,_0x3f6a02)['children']||[])[_0x1cd4a5(0x1bd)]((_0x4aee43,_0x2a0c7e)=>_0x455187(_0x4aee43,_0x17ccd9+'-'+_0x3ba8ef[_0x1cd4a5(0x155)]+'-'+_0x2a0c7e,_0x3f6a02,void 0x0,_0x5a082b)));}function _0x16a26e(_0x306970,_0xdd763d,_0x312224){const _0x4d170d=_0x36a365,_0x350902={..._0x306970[_0x4d170d(0x1ae)]};_0x312224!=null&&_0x312224[_0x4d170d(0x1b2)]&&_0x350902['fill']===_0x4d170d(0x1b2)&&(_0x350902[_0x4d170d(0x183)]=_0x312224[_0x4d170d(0x1b2)]),_0x306970['tag']===_0x4d170d(0x1ca)&&_0x350902['id']&&(_0x350902['id']=_0x350902['id']+_0xdd763d[_0x4d170d(0x19c)]),Object[_0x4d170d(0x105)](_0x350902)['forEach'](([_0x3af791,_0x3654c3])=>{const _0x9b3a73=_0x4d170d;_0x3af791===_0x9b3a73(0x1ca)&&typeof _0x3654c3==_0x9b3a73(0x163)&&(_0x350902[_0x3af791]=_0x3654c3[_0x9b3a73(0x100)](/url\(#(.*)\)/,_0x9b3a73(0x13b)+_0xdd763d[_0x9b3a73(0x19c)]+')'));});const {defIds:_0x546e18}=_0xdd763d;return!_0x546e18||_0x546e18[_0x4d170d(0x117)]===0x0||(_0x306970[_0x4d170d(0x155)]===_0x4d170d(0xfc)&&_0x350902[_0x4d170d(0x16d)]&&(_0x350902[_0x4d170d(0x16d)]=_0x350902[_0x4d170d(0x16d)]+_0xdd763d[_0x4d170d(0x19c)]),Object[_0x4d170d(0x105)](_0x350902)[_0x4d170d(0xf9)](([_0x4fa374,_0x2f447c])=>{const _0xa24093=_0x4d170d;typeof _0x2f447c==_0xa24093(0x163)&&(_0x350902[_0x4fa374]=_0x2f447c[_0xa24093(0x100)](/url\(#(.*)\)/,_0xa24093(0x13b)+_0xdd763d[_0xa24093(0x19c)]+')'));})),_0x350902;}function _0x3da627(_0xa39da8,_0xcf1e1a){const _0x3a4cc9=_0x36a365;var _0x3b82c0;const {defIds:_0x491a59}=_0xcf1e1a;return!_0x491a59||_0x491a59[_0x3a4cc9(0x117)]===0x0?_0xa39da8:_0xa39da8[_0x3a4cc9(0x155)]===_0x3a4cc9(0x16a)&&((_0x3b82c0=_0xa39da8[_0x3a4cc9(0x1c8)])!=null&&_0x3b82c0[_0x3a4cc9(0x117)])?{..._0xa39da8,'children':_0xa39da8['children'][_0x3a4cc9(0x1bd)](_0x5cecc8=>typeof _0x5cecc8[_0x3a4cc9(0x1ae)]['id']==_0x3a4cc9(0x163)&&_0x491a59&&_0x491a59[_0x3a4cc9(0x142)](_0x5cecc8[_0x3a4cc9(0x1ae)]['id'])?{..._0x5cecc8,'attrs':{..._0x5cecc8[_0x3a4cc9(0x1ae)],'id':_0x5cecc8['attrs']['id']+_0xcf1e1a[_0x3a4cc9(0x19c)]}}:_0x5cecc8)}:_0xa39da8;}function _0x501319(){const _0x627ea6=_0x36a365;return Math[_0x627ea6(0x14f)]()[_0x627ea6(0x11e)](0x24)['substring'](0x2,0x8);}_0x2c7261[_0x36a365(0xf7)]=_0x36a365(0x153);const _0x790996={'tag':_0x36a365(0x120),'attrs':{'xmlns':_0x36a365(0x1ce),'fill':_0x36a365(0xf0),'viewBox':_0x36a365(0x1c4),'width':'1em','height':'1em'},'children':[{'tag':_0x36a365(0x1a4),'attrs':{'fill':'currentColor','d':_0x36a365(0xee)}},{'tag':_0x36a365(0x1a4),'attrs':{'fill':_0x36a365(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':_0x36a365(0x16f),'clipRule':_0x36a365(0x16f)}}]},_0x3bc5e6=_0x29551b[_0x36a365(0x190)](function(_0x5237ac,_0x5482bf){const _0x449a5b=_0x36a365;return _0x29551b[_0x449a5b(0x129)](_0x2c7261,Object[_0x449a5b(0x140)]({},_0x5237ac,{'id':'live-share-icon','ref':_0x5482bf,'icon':_0x790996}));});_0x3bc5e6['displayName']=_0x36a365(0x11a);class _0x18b732 extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(){const _0x77daa5=_0x36a365;super(...arguments),_0x5abcce(this,_0x77daa5(0x12f),new Set()),_0x5abcce(this,_0x77daa5(0x168),new Set());}['registerSharedOperation'](_0x32882c){const _0x4483b8=_0x36a365;return this[_0x4483b8(0x12f)][_0x4483b8(0x13d)](_0x32882c),_0x3cd3bb[_0x4483b8(0x1be)](()=>this[_0x4483b8(0x12f)]['delete'](_0x32882c));}['registerInitialStateReporter'](_0x3ab8e4){const _0x4a806a=_0x36a365;return this[_0x4a806a(0x168)][_0x4a806a(0x13d)](_0x3ab8e4),_0x3cd3bb['toDisposable'](()=>this[_0x4a806a(0x168)][_0x4a806a(0x10b)](_0x3ab8e4));}[_0x36a365(0xf2)](_0x1e46c5){const _0x1fc4c9=_0x36a365;return this[_0x1fc4c9(0x12f)][_0x1fc4c9(0x151)](_0x1e46c5);}[_0x36a365(0x15f)](_0xa7077f){const _0x2687fd=_0x36a365;return Array[_0x2687fd(0x16c)](this[_0x2687fd(0x168)])[_0x2687fd(0x1bd)](_0x484e46=>_0x484e46(_0xa7077f));}}var _0x5b837f=Object[_0x36a365(0x1cd)],_0xe9851c=(_0x5b1915,_0x43aef0,_0x18bfcd,_0x51de18)=>{for(var _0x430610=_0x51de18>0x1?void 0x0:_0x51de18?_0x5b837f(_0x43aef0,_0x18bfcd):_0x43aef0,_0x47ddc9=_0x5b1915['length']-0x1,_0x1bca34;_0x47ddc9>=0x0;_0x47ddc9--)(_0x1bca34=_0x5b1915[_0x47ddc9])&&(_0x430610=_0x1bca34(_0x430610)||_0x430610);return _0x430610;},_0x51da42=(_0x97ecb3,_0x35cbc6)=>(_0x6112f9,_0x4015a2)=>_0x35cbc6(_0x6112f9,_0x4015a2,_0x97ecb3);_0x491357[_0x36a365(0xf4)]=class extends _0x3cd3bb[_0x36a365(0x12d)]{constructor(_0x4e70f7,_0x1961d6,_0x31a690){const _0x2451c6=_0x36a365;super(),_0x5abcce(this,'_entities',new Map()),(this[_0x2451c6(0x167)]=_0x4e70f7,this[_0x2451c6(0x1af)]=_0x1961d6,this[_0x2451c6(0x162)]=_0x31a690,this[_0x2451c6(0x123)]());}async[_0x36a365(0x141)](_0x43e3ac){const _0x3478d7=_0x36a365;return this[_0x3478d7(0xfd)][_0x3478d7(0x151)](_0x43e3ac)||await this[_0x3478d7(0x1c7)](_0x43e3ac),this[_0x3478d7(0xfd)][_0x3478d7(0x10c)](_0x43e3ac);}['getLiveShareCoordinatorSync'](_0x27383d){const _0x116e48=_0x36a365;var _0x23d96d;return(_0x23d96d=this[_0x116e48(0xfd)][_0x116e48(0x10c)](_0x27383d))!=null?_0x23d96d:null;}[_0x36a365(0x123)](){const _0x49187a=_0x36a365;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3cd3bb[_0x49187a(0xf3)]['UNIVER_SHEET'])['pipe'](_0x4f2afb['takeUntil'](this[_0x49187a(0xf1)]))[_0x49187a(0x18a)](async _0x1f37ff=>{const _0x5f1ad2=_0x49187a,_0x28eafe=_0x1f37ff['getUnitId']();this['_entities'][_0x5f1ad2(0x151)](_0x28eafe)||this[_0x5f1ad2(0x1c7)](_0x28eafe);}),this[_0x49187a(0x167)][_0x49187a(0x199)](_0x3cd3bb['UniverInstanceType']['UNIVER_SHEET'])[_0x49187a(0x1cf)](_0x4f2afb[_0x49187a(0x17d)](this['dispose$']))[_0x49187a(0x18a)](_0x1e93b5=>{const _0x22bc33=_0x49187a,_0x5821d6=_0x1e93b5[_0x22bc33(0x1a6)](),_0x4a8ccd=this[_0x22bc33(0xfd)]['get'](_0x5821d6);_0x4a8ccd==null||_0x4a8ccd[_0x22bc33(0x15e)]();});}async[_0x36a365(0x1c7)](_0x13acf1){const _0x304867=_0x36a365,_0x4a6e03=await this[_0x304867(0x162)][_0x304867(0x156)](_0x13acf1),_0x3f8226=this['_injector'][_0x304867(0x19e)](_0x491357['LiveShareCoordinator'],_0x13acf1,_0x4a6e03);return _0x3f8226['init'](),this[_0x304867(0xfd)][_0x304867(0x18b)](_0x13acf1,_0x3f8226),_0x3f8226;}},_0x491357[_0x36a365(0xf4)]=_0xe9851c([_0x51da42(0x0,_0x3cd3bb[_0x36a365(0x1aa)]),_0x51da42(0x1,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x51da42(0x2,_0x3cd3bb[_0x36a365(0xff)](_0x3f3ef9[_0x36a365(0x13a)]))],_0x491357['LiveShareController']);var _0x3df07c=(_0x5ad58f=>(_0x5ad58f[_0x36a365(0x138)]='offline',_0x5ad58f[_0x36a365(0x135)]='idle',_0x5ad58f[_0x36a365(0x15a)]=_0x36a365(0xf5),_0x5ad58f[_0x36a365(0x17a)]=_0x36a365(0x193),_0x5ad58f['PRESENTING']='presenting',_0x5ad58f))(_0x3df07c||{});const _0x4de5d6=_0x36a365(0x11f),_0x5457f3=0xc8;_0x491357[_0x36a365(0x180)]=class extends _0x3cd3bb[_0x36a365(0x12d)]{constructor(_0x3ae48a,_0x154c2d,_0x3daef5,_0x3896b7,_0xee1013){const _0x105769=_0x36a365;super(),_0x5abcce(this,_0x105769(0x119),new _0xb17181['BehaviorSubject'](_0x105769(0x18c))),_0x5abcce(this,_0x105769(0x102),this[_0x105769(0x119)]['asObservable']()),_0x5abcce(this,_0x105769(0x123),!0x1),_0x5abcce(this,_0x105769(0x172),null),_0x5abcce(this,_0x105769(0x176),null),(this[_0x105769(0x1bf)]=_0x3ae48a,this[_0x105769(0x1b8)]=_0x154c2d,this['_configService']=_0x3daef5,this[_0x105769(0x1c3)]=_0x3896b7,this['_commandService']=_0xee1013);}get[_0x36a365(0x131)](){const _0x48d6c0=_0x36a365;return this[_0x48d6c0(0x119)]['getValue']();}[_0x36a365(0x15e)](){const _0x3a12c6=_0x36a365;var _0x5d6109;(_0x5d6109=this[_0x3a12c6(0x172)])==null||_0x5d6109['dispose'](),this[_0x3a12c6(0x119)][_0x3a12c6(0x1ab)](_0x3a12c6(0x18c)),this[_0x3a12c6(0x119)][_0x3a12c6(0x14d)]();}[_0x36a365(0x10d)](){const _0xd71700=_0x36a365;return this[_0xd71700(0x131)];}[_0x36a365(0x18e)](){const _0x18e200=_0x36a365;this[_0x18e200(0x123)]||(this[_0x18e200(0x123)]=!0x0,this[_0x18e200(0x1b8)]['sessionStatus$'][_0x18e200(0x1cf)](_0x4f2afb[_0x18e200(0x17d)](this[_0x18e200(0xf1)]))[_0x18e200(0x18a)](_0x44ffd8=>{const _0x49be6a=_0x18e200;switch(_0x44ffd8){case _0x3f3ef9[_0x49be6a(0x12c)]['OFFLINE']:this[_0x49be6a(0xf8)]();break;case _0x3f3ef9[_0x49be6a(0x12c)][_0x49be6a(0x12b)]:this[_0x49be6a(0x19d)]();break;}}),this[_0x18e200(0x1b8)][_0x18e200(0x11d)]['pipe'](_0x4f2afb[_0x18e200(0x17d)](this[_0x18e200(0xf1)]))[_0x18e200(0x18a)](_0x5971ec=>{const _0x542af9=_0x18e200,{eventID:_0x526d75}=_0x5971ec;switch(_0x526d75){case _0x470106[_0x542af9(0x19b)][_0x542af9(0x192)]:this[_0x542af9(0x14c)](_0x5971ec);break;case _0x470106[_0x542af9(0x19b)][_0x542af9(0x148)]:this[_0x542af9(0x160)](_0x5971ec);break;case _0x470106[_0x542af9(0x19b)][_0x542af9(0x17b)]:this[_0x542af9(0x152)]();break;case _0x470106[_0x542af9(0x19b)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5971ec);break;}}));}[_0x36a365(0x157)](){const _0x505909=_0x36a365;this[_0x505909(0x1b8)]['send']({'eventID':_0x470106[_0x505909(0x19b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x505909(0x1bf)],'userID':this[_0x505909(0x1b8)][_0x505909(0x1a3)]()}},this[_0x505909(0x1bf)]);}['stopPresenting'](){const _0x446196=_0x36a365;this[_0x446196(0x131)]===_0x446196(0x134)&&(this[_0x446196(0x119)][_0x446196(0x1ab)]('idle'),this[_0x446196(0x1b8)]['send']({'eventID':_0x470106[_0x446196(0x19b)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x446196(0x1bf)]}},this[_0x446196(0x1bf)]));}[_0x36a365(0xf6)](){const _0xfd5485=_0x36a365;this[_0xfd5485(0x131)]===_0xfd5485(0x193)&&(this['_status$'][_0xfd5485(0x1ab)]('following'),this[_0xfd5485(0x144)]());}[_0x36a365(0x1b6)](){const _0x4062be=_0x36a365;this[_0x4062be(0x131)]===_0x4062be(0xf5)&&this['_stopFollowing']();}['_handleNewHost'](_0x1804a9){const _0x156d3d=_0x36a365,{presenter:_0x3317a4}=_0x1804a9[_0x156d3d(0x184)],_0x37c5ab=this[_0x156d3d(0x1b8)][_0x156d3d(0x1a3)]();this[_0x156d3d(0x176)]=_0x3317a4,_0x3317a4===_0x37c5ab?(this[_0x156d3d(0x121)](),this[_0x156d3d(0x1bc)]()):this['_status']!==_0x156d3d(0x193)&&(this[_0x156d3d(0x14b)](),this[_0x156d3d(0x144)]());}[_0x36a365(0x115)](){const _0xc6c74=_0x36a365,_0x1eacd6={'eventID':_0x470106[_0xc6c74(0x19b)][_0xc6c74(0x1ad)]};this[_0xc6c74(0x1b8)][_0xc6c74(0x17f)](_0x1eacd6,this[_0xc6c74(0x1bf)]);}[_0x36a365(0x152)](){const _0x54c8a8=_0x36a365;this[_0x54c8a8(0x176)]=null,this[_0x54c8a8(0x131)]!==_0x54c8a8(0x134)&&this[_0x54c8a8(0x166)]();}['_handleNewChangeSets'](_0x50b2ee){const _0x5770bc=_0x36a365;if(this['_status']===_0x5770bc(0xf5)&&this[_0x5770bc(0x176)]===_0x50b2ee[_0x5770bc(0x184)][_0x5770bc(0x133)]){const _0x545722=_0x470106[_0x5770bc(0x136)](_0x50b2ee[_0x5770bc(0x184)])[_0x5770bc(0xef)]['reverse']()['find'](_0x6ed44d=>_0x6ed44d['id']===_0x103de8[_0x5770bc(0x19f)]['id']);if(_0x545722){const _0x273581=_0x545722[_0x5770bc(0x188)][_0x5770bc(0x15b)],_0x327320=_0x545722['params'][_0x5770bc(0x109)]['id'];setTimeout(()=>{const _0x48a24e=_0x5770bc;this['_commandService']['executeCommand'](_0x103de8[_0x48a24e(0x113)]['id'],{'unitId':_0x273581,'subUnitId':_0x327320},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1b0da3=_0x36a365;this['_status$'][_0x1b0da3(0x1ab)](_0x1b0da3(0x134));const _0x22926a=new Map(),_0x492ced=this['_commandDisposable']=new _0x3cd3bb[(_0x1b0da3(0x159))]();_0x492ced[_0x1b0da3(0x13d)](_0x3cd3bb[_0x1b0da3(0x1be)](()=>{const _0x9845df=_0x1b0da3;_0x22926a[_0x9845df(0xf9)](_0x1eeea7=>_0x1eeea7[_0x9845df(0x14d)]()),_0x22926a['clear']();})),_0x492ced[_0x1b0da3(0x13d)](this[_0x1b0da3(0x1a7)]['onCommandExecuted'](_0x58d0c7=>{const _0x5e53e3=_0x1b0da3;var _0x2c7631;if(_0x58d0c7[_0x5e53e3(0x194)]!==_0x3cd3bb[_0x5e53e3(0x196)][_0x5e53e3(0x19a)]||!this[_0x5e53e3(0x1c3)]['shouldShareOperation'](_0x58d0c7['id']))return;const {id:_0x1a87a6}=_0x58d0c7;let _0x2ec9c4;_0x22926a[_0x5e53e3(0x151)](_0x1a87a6)?_0x2ec9c4=_0x22926a[_0x5e53e3(0x10c)](_0x1a87a6):(_0x2ec9c4=new _0xb17181['Subject'](),_0x22926a[_0x5e53e3(0x18b)](_0x1a87a6,_0x2ec9c4),_0x2ec9c4[_0x5e53e3(0x1cf)](_0x4f2afb['throttleTime']((_0x2c7631=this['_configService']['getConfig'](_0x4de5d6))!=null?_0x2c7631:_0x5457f3,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x8ab933=>{const _0x19b41f=_0x5e53e3;this[_0x19b41f(0x1b8)][_0x19b41f(0x17f)]({'eventID':_0x470106[_0x19b41f(0x19b)][_0x19b41f(0x148)],'data':{'unitID':this[_0x19b41f(0x1bf)],'operations':{[_0x8ab933['id']]:{'id':_0x8ab933['id'],'params':JSON[_0x19b41f(0x175)](_0x8ab933['params'])}}}},this['_unitID']);})),_0x2ec9c4['next'](_0x58d0c7);})),this['_liveShareService'][_0x1b0da3(0x15f)](this[_0x1b0da3(0x1bf)])['forEach'](_0x553b3d=>this[_0x1b0da3(0x1b8)][_0x1b0da3(0x17f)]({'eventID':_0x470106['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x553b3d['id']]:{'id':_0x553b3d['id'],'params':JSON['stringify'](_0x553b3d['params'])}}}},this[_0x1b0da3(0x1bf)]));}[_0x36a365(0x14b)](){const _0x2e0d45=_0x36a365;var _0x41fa55;this[_0x2e0d45(0x119)][_0x2e0d45(0x1ab)](_0x2e0d45(0x18c)),(_0x41fa55=this[_0x2e0d45(0x172)])==null||_0x41fa55[_0x2e0d45(0x15e)](),this[_0x2e0d45(0x172)]=null;}[_0x36a365(0x144)](){const _0x1af7d8=_0x36a365;var _0x210495;(_0x210495=this['_commandDisposable'])==null||_0x210495['dispose'](),this[_0x1af7d8(0x119)]['next'](_0x1af7d8(0xf5));}[_0x36a365(0x166)](){const _0x45ec7b=_0x36a365;var _0x15190c;this[_0x45ec7b(0x119)][_0x45ec7b(0x1ab)](_0x45ec7b(0x18c)),(_0x15190c=this[_0x45ec7b(0x172)])==null||_0x15190c[_0x45ec7b(0x15e)](),this[_0x45ec7b(0x172)]=null;}['_stopFollowing'](){const _0x5accaa=_0x36a365;var _0x2e3b14;this[_0x5accaa(0x119)][_0x5accaa(0x1ab)](_0x5accaa(0x193)),(_0x2e3b14=this[_0x5accaa(0x172)])==null||_0x2e3b14['dispose']();}[_0x36a365(0x160)](_0x3f140e){const _0x4f70cd=_0x36a365;if([_0x4f70cd(0x134),'not-following',_0x4f70cd(0x186)][_0x4f70cd(0x142)](this[_0x4f70cd(0x131)])||!_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x191)]||_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x191)]===this[_0x4f70cd(0x1b8)]['getMemberID']())return;this[_0x4f70cd(0x131)]===_0x4f70cd(0x18c)&&this[_0x4f70cd(0x144)]();const _0x525bc2=_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x174)];Object[_0x4f70cd(0x104)](_0x525bc2)['forEach'](_0x5b083f=>{const _0x46bb14=_0x4f70cd;this[_0x46bb14(0x1a7)]['executeCommand'](_0x5b083f['id'],_0x5b083f[_0x46bb14(0x188)]?JSON[_0x46bb14(0x171)](_0x5b083f[_0x46bb14(0x188)]):null,{'fromCollab':!0x0});});}[_0x36a365(0xf8)](){const _0x5d9fbb=_0x36a365;var _0x2e1ba1;this[_0x5d9fbb(0x119)][_0x5d9fbb(0x1ab)](_0x5d9fbb(0x186)),(_0x2e1ba1=this[_0x5d9fbb(0x172)])==null||_0x2e1ba1['dispose']();}[_0x36a365(0x19d)](){const _0x2f0779=_0x36a365;this[_0x2f0779(0x119)][_0x2f0779(0x1ab)]('idle'),this['_fetchOperations']();}},_0x491357[_0x36a365(0x180)]=_0xe9851c([_0x51da42(0x2,_0x3cd3bb[_0x36a365(0x1b7)]),_0x51da42(0x3,_0x3cd3bb[_0x36a365(0xff)](_0x18b732)),_0x51da42(0x4,_0x3cd3bb[_0x36a365(0x1b3)])],_0x491357['LiveShareCoordinator']);function _0x2ea681(){const _0x467b8b=_0x36a365,_0xb886c5=_0x672739['useDependency'](_0x491357[_0x467b8b(0xf4)]),_0x454f7d=_0x672739[_0x467b8b(0x118)](_0x3cd3bb[_0x467b8b(0x1aa)]),_0x309003=_0x672739['useObservable'](()=>_0x454f7d[_0x467b8b(0x187)](_0x3cd3bb[_0x467b8b(0xf3)][_0x467b8b(0x13e)]),void 0x0,!0x1,[]),[_0x156559,_0x3d4952]=_0x29551b[_0x467b8b(0x182)](null),[_0xe1a51b,_0x257e7e]=_0x29551b['useState'](_0x3df07c[_0x467b8b(0x135)]),_0x2a0830=_0x29551b[_0x467b8b(0x181)](null);return _0x29551b[_0x467b8b(0x198)](()=>(_0x309003&&_0xb886c5[_0x467b8b(0x141)](_0x309003[_0x467b8b(0x1a6)]())[_0x467b8b(0x164)](_0x4b989d=>{const _0x46d4e5=_0x467b8b;_0x3d4952(_0x4b989d),_0x2a0830[_0x46d4e5(0x145)]=_0x4b989d[_0x46d4e5(0x102)]['subscribe'](_0x786c59=>{_0x257e7e(_0x786c59);});}),()=>{const _0x163108=_0x467b8b;var _0x43c0bd;(_0x43c0bd=_0x2a0830[_0x163108(0x145)])==null||_0x43c0bd['unsubscribe'](),_0x2a0830[_0x163108(0x145)]=null;}),[_0x309003,_0xb886c5]),_0x156559?_0x164c98[_0x467b8b(0x14e)](_0x29f95a[_0x467b8b(0x17c)],{'align':'end','disabled':_0xe1a51b===_0x3df07c[_0x467b8b(0x138)],'className':_0x467b8b(0x18f),'overlay':_0x164c98['jsx'](_0x25883b,{'status':_0xe1a51b,'coordinator':_0x156559}),'children':_0x164c98[_0x467b8b(0x14e)]('button',{'className':_0x29f95a['clsx'](_0x467b8b(0x114),{'univer-cursor-not-allowed':_0xe1a51b===_0x3df07c[_0x467b8b(0x138)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe1a51b!==_0x3df07c[_0x467b8b(0x138)]}),'type':_0x467b8b(0x1a2),'children':_0x164c98[_0x467b8b(0x14e)](_0x3bc5e6,{'className':_0x467b8b(0x101)})})}):null;}function _0x25883b(_0x283d9a){const _0x433a0a=_0x36a365,{status:_0x2e960a,coordinator:_0x3c9e62}=_0x283d9a;switch(_0x2e960a){case _0x3df07c[_0x433a0a(0x135)]:return _0x164c98[_0x433a0a(0x14e)](_0x2e699c,{'coordinator':_0x3c9e62});case _0x3df07c[_0x433a0a(0x15a)]:return _0x164c98['jsx'](_0xf279b1,{'coordinator':_0x3c9e62});case _0x3df07c[_0x433a0a(0x17a)]:return _0x164c98[_0x433a0a(0x14e)](_0x585135,{'coordinator':_0x3c9e62});case _0x3df07c['OFFLINE']:return _0x164c98[_0x433a0a(0x14e)](_0x237e8e,{});case _0x3df07c[_0x433a0a(0x189)]:return _0x164c98[_0x433a0a(0x14e)](_0x18f485,{'coordinator':_0x3c9e62});default:return null;}}function _0x2e699c(_0x58143d){const _0x5a32a1=_0x36a365,{coordinator:_0x2f0364}=_0x58143d;return _0x164c98[_0x5a32a1(0x197)](_0x164c98['Fragment'],{'children':[_0x164c98[_0x5a32a1(0x14e)](_0x5a32a1(0x12a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5a32a1(0x111)}),_0x164c98[_0x5a32a1(0x14e)](_0x29f95a['Button'],{'onClick':()=>_0x2f0364[_0x5a32a1(0x157)](),'children':'Start'})]});}function _0xf279b1(_0x41f3e4){const _0x56080d=_0x36a365,{coordinator:_0x5ee280}=_0x41f3e4;return _0x164c98[_0x56080d(0x197)](_0x164c98[_0x56080d(0x195)],{'children':[_0x164c98[_0x56080d(0x14e)](_0x56080d(0x12a),{'className':_0x56080d(0x1ac),'children':_0x56080d(0x127)}),_0x164c98[_0x56080d(0x14e)](_0x29f95a['Button'],{'onClick':()=>_0x5ee280[_0x56080d(0x1b6)](),'children':'Stop\x20following'})]});}function _0x585135(_0x8de4ab){const _0x4f3437=_0x36a365,{coordinator:_0x268243}=_0x8de4ab;return _0x164c98[_0x4f3437(0x197)](_0x164c98[_0x4f3437(0x195)],{'children':[_0x164c98['jsx'](_0x4f3437(0x12a),{'className':_0x4f3437(0x1ac),'children':_0x4f3437(0xfe)}),_0x164c98['jsx'](_0x29f95a['Button'],{'variant':'text','onClick':()=>_0x268243[_0x4f3437(0xf6)](),'children':_0x4f3437(0x154)})]});}function _0x18f485(_0x42792a){const _0x42631e=_0x36a365,{coordinator:_0x5f2e9a}=_0x42792a;return _0x164c98[_0x42631e(0x197)](_0x164c98['Fragment'],{'children':[_0x164c98[_0x42631e(0x14e)](_0x42631e(0x12a),{'className':_0x42631e(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x164c98['jsx'](_0x29f95a['Button'],{'variant':_0x42631e(0x165),'onClick':()=>_0x5f2e9a['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x237e8e(){const _0x2d85a9=_0x36a365;return _0x164c98[_0x2d85a9(0x14e)](_0x164c98[_0x2d85a9(0x195)],{'children':'You\x27are\x20offline.'});}var _0xcc146=Object[_0x36a365(0x1cd)],_0x225f4e=(_0x3d4020,_0x5b7b2c,_0x17fdd2,_0x354cac)=>{const _0xabc629=_0x36a365;for(var _0x134029=_0x354cac>0x1?void 0x0:_0x354cac?_0xcc146(_0x5b7b2c,_0x17fdd2):_0x5b7b2c,_0x24661a=_0x3d4020[_0xabc629(0x117)]-0x1,_0x2be5b6;_0x24661a>=0x0;_0x24661a--)(_0x2be5b6=_0x3d4020[_0x24661a])&&(_0x134029=_0x2be5b6(_0x134029)||_0x134029);return _0x134029;},_0x2d0621=(_0x9ae30b,_0x522add)=>(_0x309222,_0x5b72d3)=>_0x522add(_0x309222,_0x5b72d3,_0x9ae30b);_0x491357[_0x36a365(0x1cc)]=class extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(_0xbdd968,_0xb37d8a){const _0x44d3f2=_0x36a365;super(),this[_0x44d3f2(0x1af)]=_0xbdd968,this[_0x44d3f2(0x12e)]=_0xb37d8a,this['_mountLiveShare']();}[_0x36a365(0x1b5)](){const _0x576c09=_0x36a365;this[_0x576c09(0x125)](this[_0x576c09(0x12e)][_0x576c09(0x128)](_0x672739['BuiltInUIPart'][_0x576c09(0x110)],()=>_0x672739[_0x576c09(0x1b4)](_0x2ea681,this[_0x576c09(0x1af)])));}},_0x491357[_0x36a365(0x1cc)]=_0x225f4e([_0x2d0621(0x0,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x2d0621(0x1,_0x672739['IUIPartsService'])],_0x491357[_0x36a365(0x1cc)]);const _0x113052='live-share.config',_0x513162={};var _0x2e44b3=Object[_0x36a365(0x1cd)],_0xb50faa=(_0x55f961,_0x3e12f8,_0x114dad,_0x1323fa)=>{const _0x21a235=_0x36a365;for(var _0x2f4ecb=_0x1323fa>0x1?void 0x0:_0x1323fa?_0x2e44b3(_0x3e12f8,_0x114dad):_0x3e12f8,_0x2767dd=_0x55f961[_0x21a235(0x117)]-0x1,_0x51ce4d;_0x2767dd>=0x0;_0x2767dd--)(_0x51ce4d=_0x55f961[_0x2767dd])&&(_0x2f4ecb=_0x51ce4d(_0x2f4ecb)||_0x2f4ecb);return _0x2f4ecb;},_0xe4a308=(_0xb58d0f,_0x522bf4)=>(_0x2fdcf4,_0x257e87)=>_0x522bf4(_0x2fdcf4,_0x257e87,_0xb58d0f);let _0x4ffbd9=class extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(_0x4ca743){const _0xbb66fa=_0x36a365;super(),this[_0xbb66fa(0x1c3)]=_0x4ca743,this['_init']();}[_0x36a365(0x123)](){const _0x42ad04=_0x36a365;[_0x405304[_0x42ad04(0x13c)]['id'],_0x405304[_0x42ad04(0x146)]['id'],_0x103de8[_0x42ad04(0x113)]['id']]['forEach'](_0x29fb41=>{const _0x46cf32=_0x42ad04;this[_0x46cf32(0x125)](this['_liveShareService'][_0x46cf32(0x16b)](_0x29fb41));});}};_0x4ffbd9=_0xb50faa([_0xe4a308(0x0,_0x3cd3bb[_0x36a365(0xff)](_0x18b732))],_0x4ffbd9);var _0x38145c=Object[_0x36a365(0x130)],_0x54e80a=Object[_0x36a365(0x1cd)],_0x1c1cff=(_0x8137b2,_0x34e2b8,_0x3db8bf)=>_0x34e2b8 in _0x8137b2?_0x38145c(_0x8137b2,_0x34e2b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3db8bf}):_0x8137b2[_0x34e2b8]=_0x3db8bf,_0x4b6478=(_0x75f138,_0x224f53,_0x1da574,_0x7ea292)=>{const _0x51e164=_0x36a365;for(var _0x38d983=_0x7ea292>0x1?void 0x0:_0x7ea292?_0x54e80a(_0x224f53,_0x1da574):_0x224f53,_0x3ce49f=_0x75f138[_0x51e164(0x117)]-0x1,_0x984f87;_0x3ce49f>=0x0;_0x3ce49f--)(_0x984f87=_0x75f138[_0x3ce49f])&&(_0x38d983=_0x984f87(_0x38d983)||_0x38d983);return _0x38d983;},_0x3df10e=(_0x1fbee1,_0xef1bf2)=>(_0x4da6bd,_0x2e2596)=>_0xef1bf2(_0x4da6bd,_0x2e2596,_0x1fbee1),_0x1e8743=(_0x3c4514,_0x11a72d,_0x4889cd)=>_0x1c1cff(_0x3c4514,typeof _0x11a72d!=_0x36a365(0x158)?_0x11a72d+'':_0x11a72d,_0x4889cd);const _0x36851a=_0x36a365(0x150);_0x491357[_0x36a365(0x1ba)]=class extends _0x3cd3bb[_0x36a365(0x139)]{constructor(_0x4a6b27=_0x513162,_0x2d16d9,_0x145abd){const _0x25d5b8=_0x36a365;super(),this[_0x25d5b8(0x173)]=_0x4a6b27,this[_0x25d5b8(0x1af)]=_0x2d16d9,this[_0x25d5b8(0x112)]=_0x145abd;const {..._0x52d8a7}=_0x3cd3bb[_0x25d5b8(0x149)]({},_0x513162,this[_0x25d5b8(0x173)]);this['_configService'][_0x25d5b8(0x185)](_0x113052,_0x52d8a7);}[_0x36a365(0xfa)](){const _0x9bf4cd=_0x36a365;_0x3cd3bb[_0x9bf4cd(0x169)](this[_0x9bf4cd(0x1af)],_0x3cd3bb[_0x9bf4cd(0x137)]([[_0x18b732],[_0x491357[_0x9bf4cd(0xf4)]],[_0x4ffbd9],[_0x491357[_0x9bf4cd(0x1cc)]]],this['_config'][_0x9bf4cd(0x177)])),_0x3cd3bb[_0x9bf4cd(0x1c2)](this['_injector'],[[_0x4ffbd9]]);}[_0x36a365(0x179)](){const _0x3c33ae=_0x36a365;_0x3cd3bb[_0x3c33ae(0x1c2)](this[_0x3c33ae(0x1af)],[[_0x491357['DesktopLiveShareController']]]);}},_0x1e8743(_0x491357[_0x36a365(0x1ba)],'type',_0x3cd3bb[_0x36a365(0xf3)][_0x36a365(0x18d)]),_0x1e8743(_0x491357['UniverLiveSharePlugin'],_0x36a365(0x1a9),_0x36851a),_0x491357['UniverLiveSharePlugin']=_0x4b6478([_0x3cd3bb[_0x36a365(0x1b9)](_0x3f3ef9['UniverCollaborationClientPlugin']),_0x3df10e(0x1,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x3df10e(0x2,_0x3cd3bb[_0x36a365(0x1b7)])],_0x491357[_0x36a365(0x1ba)]),_0x491357[_0x36a365(0x1b1)]=_0x2ea681,_0x491357[_0x36a365(0x1c9)]=_0x18b732,_0x491357['LiveShareStatus']=_0x3df07c,Object[_0x36a365(0x130)](_0x491357,Symbol[_0x36a365(0x178)],{'value':'Module'});}));function _0x50e4(_0x4db43a,_0x1dfd64){_0x4db43a=_0x4db43a-0xed;const _0x25fbd1=_0x25fb();let _0x50e4e5=_0x25fbd1[_0x4db43a];return _0x50e4e5;}function _0x25fb(){const _0x5abef2=['evenodd','@univerjs/sheets-ui','parse','_commandDisposable','_config','operations','stringify','_presenter','override','toStringTag','onRendered','NOT_FOLLOWING','LIVESHARE_TERMINATE','Dropdown','takeUntil','defIds','send','LiveShareCoordinator','useRef','useState','fill','data','setConfig','offline','getCurrentTypeOfUnit$','params','PRESENTING','subscribe','set','idle','UNIVER_UNKNOWN','init','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','forwardRef','presenter','LIVESHARE_NEW_HOST','not-following','type','Fragment','CommandType','jsxs','useEffect','getTypeOfUnitDisposed$','OPERATION','CollaborationEvent','idSuffix','_handleOnline','createInstance','InsertSheetMutation','Disposable','5574ExEgkB','button','getMemberID','path','1516ZYTPdW','getUnitId','_commandService','trim','pluginName','IUniverInstanceService','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','attrs','_injector','UniverProLiveShare','LiveShare','colorChannel1','ICommandService','connectInjector','_mountLiveShare','stopFollowing','IConfigService','_collabSession','DependentOn','UniverLiveSharePlugin','@univerjs/sheets','_startPresenting','map','toDisposable','_unitID','UniverDesign','object','touchDependencies','_liveShareService','0\x200\x2017\x2017','22sPRvtz','@univerjs-pro/collaboration-client','_startLiveShareCoordinator','children','LiveShareService','mask','UniverProCollaborationClient','DesktopLiveShareController','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','pipe','operators','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','mutations','none','dispose$','shouldShareOperation','UniverInstanceType','LiveShareController','following','startFollowing','displayName','_handleOffline','forEach','onStarting','Injector','use','_entities','You\x27re\x20not\x20following\x20the\x20presenter','Inject','replace','univer-size-4','status$','React','values','entries','@univerjs/ui','41589xHqfkZ','26651leLUlM','sheet','UniverSheets','delete','get','getStatus','UniverUi','exports','HEADER_MENU','Present\x20this\x20document','_configService','SetWorksheetActiveOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_fetchOperations','rxjs','length','useDependency','_status$','LiveShareIcon','6423jsXNvm','@univerjs/core','event$','toString','SAME_OPERATION_SHARE_INTERVAL','svg','_stopFollowing','rxjs/operators','_init','@univerjs-pro/collaboration','disposeWithMe','11893980TkhqwN','You\x27re\x20following\x20the\x20presenter','registerComponent','createElement','div','ONLINE','SessionStatus','RxDisposable','_uiPartsService','_sharedOperations','defineProperty','_status','UniverProCollaboration','memberID','presenting','IDLE','parseProtocolChangeset','mergeOverrideWithDependencies','OFFLINE','Plugin','CollaborationSessionService','url(#$1','SetZoomRatioOperation','add','UNIVER_SHEET','1832TrCYPw','assign','getLiveShareCoordinator','includes','9429trzwPA','_startFollowing','current','SetScrollOperation','react','LIVESHARE_OPERATION','merge','currentColor','_stopPresenting','_handleNewHost','complete','jsx','random','UNIVER_LIVE_SHARE_PLUGIN','has','_handleTerminate','UniverIcon','Start\x20following','tag','requireSession','tryStartPresenting','symbol','DisposableCollection','FOLLOWING','unitId','UniverCore','function','dispose','getInitialStates','_handleOperation','1864995WGBKbF','_collabSessionService','string','then','default','_beIdle','_univerInstanceService','_reporters','registerDependencies','defs','registerSharedOperation','from','xlink:href','12318174mkJrMs'];_0x25fb=function(){return _0x5abef2;};return _0x25fb();}
1
+ function _0x9052(_0x1c12fb,_0x13524d){_0x1c12fb=_0x1c12fb-0x126;const _0x2f9cc0=_0x2f9c();let _0x90527b=_0x2f9cc0[_0x1c12fb];return _0x90527b;}(function(_0x19b239,_0x489bbd){const _0x5ebd20=_0x9052,_0x38ff74=_0x19b239();while(!![]){try{const _0x16e011=-parseInt(_0x5ebd20(0x191))/0x1+-parseInt(_0x5ebd20(0x204))/0x2*(-parseInt(_0x5ebd20(0x1a4))/0x3)+-parseInt(_0x5ebd20(0x198))/0x4+-parseInt(_0x5ebd20(0x14a))/0x5*(-parseInt(_0x5ebd20(0x1c4))/0x6)+-parseInt(_0x5ebd20(0x1db))/0x7+parseInt(_0x5ebd20(0x169))/0x8*(-parseInt(_0x5ebd20(0x148))/0x9)+parseInt(_0x5ebd20(0x134))/0xa;if(_0x16e011===_0x489bbd)break;else _0x38ff74['push'](_0x38ff74['shift']());}catch(_0x4bc5b8){_0x38ff74['push'](_0x38ff74['shift']());}}}(_0x2f9c,0x5b79e),function(_0x492156,_0x20b2fb){const _0x5cf0de=_0x9052;typeof exports==_0x5cf0de(0x1e9)&&typeof module<'u'?_0x20b2fb(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==_0x5cf0de(0x13e)&&define[_0x5cf0de(0x1f0)]?define(['exports',_0x5cf0de(0x129),_0x5cf0de(0x1c6),_0x5cf0de(0x1c8),'@univerjs/design',_0x5cf0de(0x1ec),_0x5cf0de(0x1d6),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0x5cf0de(0x1d5),_0x5cf0de(0x136),_0x5cf0de(0x1e8)],_0x20b2fb):(_0x492156=typeof globalThis<'u'?globalThis:_0x492156||self,_0x20b2fb(_0x492156['UniverProLiveShare']={},_0x492156['UniverCore'],_0x492156['UniverUi'],_0x492156[_0x5cf0de(0x193)],_0x492156['UniverDesign'],_0x492156[_0x5cf0de(0x193)],_0x492156[_0x5cf0de(0x13b)],_0x492156[_0x5cf0de(0x133)],_0x492156[_0x5cf0de(0x1ae)],_0x492156[_0x5cf0de(0x1d5)],_0x492156['rxjs'][_0x5cf0de(0x20c)],_0x492156[_0x5cf0de(0x152)]));}(this,function(_0x124aa4,_0x2e6932,_0x2124f8,_0x479a5c,_0x1b6253,_0x27bb21,_0x25a5e1,_0x21ff7a,_0x113b7d,_0x241a2b,_0x352fbc,_0x37f5a8){'use strict';const _0xff167c=_0x9052;var _0x2a0138=Object['defineProperty'],_0x12156b=(_0x5546d9,_0x36649e,_0x47773c)=>_0x36649e in _0x5546d9?_0x2a0138(_0x5546d9,_0x36649e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47773c}):_0x5546d9[_0x36649e]=_0x47773c,_0x4aa7f7=(_0x17cb18,_0x3bc3bf,_0xb9a8a0)=>_0x12156b(_0x17cb18,typeof _0x3bc3bf!=_0xff167c(0x1a2)?_0x3bc3bf+'':_0x3bc3bf,_0xb9a8a0);function _0x17d749({ref:_0x5d007f,..._0x1f99bb}){const _0x2ad43b=_0xff167c,{icon:_0x267217,id:_0x58c154,className:_0x2d6a58,extend:_0x589a63,..._0x45cfd6}=_0x1f99bb,_0x4b2f2a=(_0x2ad43b(0x1a0)+_0x58c154+'\x20'+(_0x2d6a58||''))[_0x2ad43b(0x172)](),_0x4c3890=_0x27bb21[_0x2ad43b(0x1fd)]('_'+_0x36960d());return _0x44cec6(_0x267217,''+_0x58c154,{'defIds':_0x267217[_0x2ad43b(0x1ad)],'idSuffix':_0x4c3890[_0x2ad43b(0x173)]},{'ref':_0x5d007f,'className':_0x4b2f2a,..._0x45cfd6},_0x589a63);}function _0x44cec6(_0x2c5117,_0x4b0cc9,_0x9a3701,_0x500d1f,_0x103d6f){const _0x2ca9d6=_0xff167c;return _0x27bb21[_0x2ca9d6(0x183)](_0x2c5117[_0x2ca9d6(0x150)],{'key':_0x4b0cc9,..._0xa85129(_0x2c5117,_0x9a3701,_0x103d6f),..._0x500d1f},(_0x9dc60c(_0x2c5117,_0x9a3701)[_0x2ca9d6(0x17b)]||[])['map']((_0x2743e6,_0x587f3b)=>_0x44cec6(_0x2743e6,_0x4b0cc9+'-'+_0x2c5117[_0x2ca9d6(0x150)]+'-'+_0x587f3b,_0x9a3701,void 0x0,_0x103d6f)));}function _0xa85129(_0x5e2ac9,_0x4de84f,_0x5643d4){const _0x4078a1=_0xff167c,_0x133622={..._0x5e2ac9['attrs']};_0x5643d4!=null&&_0x5643d4[_0x4078a1(0x1fc)]&&_0x133622[_0x4078a1(0x155)]==='colorChannel1'&&(_0x133622[_0x4078a1(0x155)]=_0x5643d4[_0x4078a1(0x1fc)]),_0x5e2ac9[_0x4078a1(0x150)]===_0x4078a1(0x1bb)&&_0x133622['id']&&(_0x133622['id']=_0x133622['id']+_0x4de84f[_0x4078a1(0x12e)]),Object[_0x4078a1(0x205)](_0x133622)[_0x4078a1(0x19e)](([_0x5b80b9,_0xc2780b])=>{const _0x1171d4=_0x4078a1;_0x5b80b9===_0x1171d4(0x1bb)&&typeof _0xc2780b==_0x1171d4(0x189)&&(_0x133622[_0x5b80b9]=_0xc2780b[_0x1171d4(0x1c0)](/url\(#(.*)\)/,_0x1171d4(0x184)+_0x4de84f[_0x1171d4(0x12e)]+')'));});const {defIds:_0x119b73}=_0x4de84f;return!_0x119b73||_0x119b73[_0x4078a1(0x19b)]===0x0||(_0x5e2ac9['tag']===_0x4078a1(0x199)&&_0x133622[_0x4078a1(0x1c5)]&&(_0x133622[_0x4078a1(0x1c5)]=_0x133622[_0x4078a1(0x1c5)]+_0x4de84f[_0x4078a1(0x12e)]),Object[_0x4078a1(0x205)](_0x133622)[_0x4078a1(0x19e)](([_0x317063,_0x364302])=>{const _0x1e5771=_0x4078a1;typeof _0x364302==_0x1e5771(0x189)&&(_0x133622[_0x317063]=_0x364302[_0x1e5771(0x1c0)](/url\(#(.*)\)/,_0x1e5771(0x184)+_0x4de84f[_0x1e5771(0x12e)]+')'));})),_0x133622;}function _0x9dc60c(_0xa05f7c,_0x22e11c){const _0x4aff54=_0xff167c;var _0x54e25e;const {defIds:_0x4c305a}=_0x22e11c;return!_0x4c305a||_0x4c305a[_0x4aff54(0x19b)]===0x0?_0xa05f7c:_0xa05f7c[_0x4aff54(0x150)]===_0x4aff54(0x181)&&((_0x54e25e=_0xa05f7c['children'])!=null&&_0x54e25e['length'])?{..._0xa05f7c,'children':_0xa05f7c['children']['map'](_0x4cc245=>typeof _0x4cc245[_0x4aff54(0x1b4)]['id']==_0x4aff54(0x189)&&_0x4c305a&&_0x4c305a[_0x4aff54(0x1a5)](_0x4cc245[_0x4aff54(0x1b4)]['id'])?{..._0x4cc245,'attrs':{..._0x4cc245[_0x4aff54(0x1b4)],'id':_0x4cc245[_0x4aff54(0x1b4)]['id']+_0x22e11c[_0x4aff54(0x12e)]}}:_0x4cc245)}:_0xa05f7c;}function _0x36960d(){const _0x39dfc7=_0xff167c;return Math[_0x39dfc7(0x12f)]()['toString'](0x24)[_0x39dfc7(0x1df)](0x2,0x8);}_0x17d749['displayName']=_0xff167c(0x16e);const _0x431634={'tag':_0xff167c(0x18c),'attrs':{'xmlns':_0xff167c(0x1e4),'fill':'none','viewBox':_0xff167c(0x149),'width':_0xff167c(0x167),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0xff167c(0x1e7),'d':_0xff167c(0x174)}},{'tag':_0xff167c(0x14f),'attrs':{'fill':'currentColor','d':_0xff167c(0x18f),'fillRule':_0xff167c(0x188),'clipRule':_0xff167c(0x188)}}]},_0x4b6f68=_0x27bb21[_0xff167c(0x1fe)](function(_0x43c13c,_0x7fb67f){const _0x582284=_0xff167c;return _0x27bb21['createElement'](_0x17d749,Object[_0x582284(0x1e1)]({},_0x43c13c,{'id':'live-share-icon','ref':_0x7fb67f,'icon':_0x431634}));});_0x4b6f68[_0xff167c(0x1a6)]='LiveShareIcon';class _0x91f7c9 extends _0x2e6932[_0xff167c(0x1b7)]{constructor(){const _0x368338=_0xff167c;super(...arguments),_0x4aa7f7(this,_0x368338(0x1a8),new Set()),_0x4aa7f7(this,_0x368338(0x147),new Set());}[_0xff167c(0x12a)](_0x215d02){const _0x15737d=_0xff167c;return this[_0x15737d(0x1a8)]['add'](_0x215d02),_0x2e6932['toDisposable'](()=>this['_sharedOperations'][_0x15737d(0x1af)](_0x215d02));}[_0xff167c(0x208)](_0x292d7f){const _0x1d419a=_0xff167c;return this[_0x1d419a(0x147)][_0x1d419a(0x165)](_0x292d7f),_0x2e6932[_0x1d419a(0x182)](()=>this[_0x1d419a(0x147)]['delete'](_0x292d7f));}['shouldShareOperation'](_0x23e3a4){const _0x10919a=_0xff167c;return this[_0x10919a(0x1a8)][_0x10919a(0x18a)](_0x23e3a4);}['getInitialStates'](_0x4e076e){return Array['from'](this['_reporters'])['map'](_0x4c505a=>_0x4c505a(_0x4e076e));}}var _0x32a6b7=Object[_0xff167c(0x160)],_0x212b37=(_0x791078,_0x334187,_0x505f31,_0x5b2841)=>{const _0x3abb97=_0xff167c;for(var _0x82a75=_0x5b2841>0x1?void 0x0:_0x5b2841?_0x32a6b7(_0x334187,_0x505f31):_0x334187,_0x41d96e=_0x791078[_0x3abb97(0x19b)]-0x1,_0x4bd210;_0x41d96e>=0x0;_0x41d96e--)(_0x4bd210=_0x791078[_0x41d96e])&&(_0x82a75=_0x4bd210(_0x82a75)||_0x82a75);return _0x82a75;},_0x4379c2=(_0x4f7dac,_0x5af90e)=>(_0x1a2c11,_0x33db49)=>_0x5af90e(_0x1a2c11,_0x33db49,_0x4f7dac);_0x124aa4[_0xff167c(0x19f)]=class extends _0x2e6932[_0xff167c(0x14c)]{constructor(_0x2efbce,_0xeb1310,_0x4f6f2a){const _0x4542e8=_0xff167c;super(),_0x4aa7f7(this,_0x4542e8(0x1f6),new Map()),(this[_0x4542e8(0x20a)]=_0x2efbce,this[_0x4542e8(0x186)]=_0xeb1310,this[_0x4542e8(0x15b)]=_0x4f6f2a,this[_0x4542e8(0x170)]());}async[_0xff167c(0x131)](_0x10a52a){const _0x4eebce=_0xff167c;return this[_0x4eebce(0x1f6)][_0x4eebce(0x18a)](_0x10a52a)||await this[_0x4eebce(0x1f8)](_0x10a52a),this[_0x4eebce(0x1f6)]['get'](_0x10a52a);}[_0xff167c(0x19d)](_0x2a9b88){const _0xc59744=_0xff167c;var _0x5b1919;return(_0x5b1919=this[_0xc59744(0x1f6)]['get'](_0x2a9b88))!=null?_0x5b1919:null;}[_0xff167c(0x170)](){const _0xb13e2c=_0xff167c;this[_0xb13e2c(0x20a)][_0xb13e2c(0x1d0)](_0x2e6932[_0xb13e2c(0x1ca)][_0xb13e2c(0x1ee)])[_0xb13e2c(0x190)](_0x352fbc[_0xb13e2c(0x176)](this[_0xb13e2c(0x1c3)]))[_0xb13e2c(0x1cd)](async _0x31b8b4=>{const _0x499a5e=_0xb13e2c,_0x5f0a10=_0x31b8b4[_0x499a5e(0x19c)]();this['_entities'][_0x499a5e(0x18a)](_0x5f0a10)||this[_0x499a5e(0x1f8)](_0x5f0a10);}),this[_0xb13e2c(0x20a)][_0xb13e2c(0x1e6)](_0x2e6932[_0xb13e2c(0x1ca)][_0xb13e2c(0x1ee)])[_0xb13e2c(0x190)](_0x352fbc['takeUntil'](this[_0xb13e2c(0x1c3)]))[_0xb13e2c(0x1cd)](_0x4957f2=>{const _0x105c00=_0xb13e2c,_0x3684b3=_0x4957f2['getUnitId'](),_0x45bad2=this[_0x105c00(0x1f6)]['get'](_0x3684b3);_0x45bad2==null||_0x45bad2[_0x105c00(0x1bd)]();});}async[_0xff167c(0x1f8)](_0xf30db7){const _0x3c571d=_0xff167c,_0x5a63e4=await this['_collabSessionService'][_0x3c571d(0x195)](_0xf30db7),_0x3f8354=this['_injector'][_0x3c571d(0x1b5)](_0x124aa4[_0x3c571d(0x141)],_0xf30db7,_0x5a63e4);return _0x3f8354[_0x3c571d(0x153)](),this['_entities'][_0x3c571d(0x194)](_0xf30db7,_0x3f8354),_0x3f8354;}},_0x124aa4[_0xff167c(0x19f)]=_0x212b37([_0x4379c2(0x0,_0x2e6932['IUniverInstanceService']),_0x4379c2(0x1,_0x2e6932[_0xff167c(0x1ed)](_0x2e6932[_0xff167c(0x1eb)])),_0x4379c2(0x2,_0x2e6932[_0xff167c(0x1ed)](_0x21ff7a['CollaborationSessionService']))],_0x124aa4[_0xff167c(0x19f)]);var _0x3960af=(_0x47f314=>(_0x47f314[_0xff167c(0x12c)]='offline',_0x47f314[_0xff167c(0x1f9)]=_0xff167c(0x1c2),_0x47f314['FOLLOWING']=_0xff167c(0x146),_0x47f314[_0xff167c(0x17c)]=_0xff167c(0x1c9),_0x47f314[_0xff167c(0x179)]='presenting',_0x47f314))(_0x3960af||{});const _0x4e7fe0=_0xff167c(0x1d2),_0x30cfe0=0xc8;_0x124aa4[_0xff167c(0x141)]=class extends _0x2e6932[_0xff167c(0x14c)]{constructor(_0xb0c605,_0x127c6f,_0x483a0a,_0x27bf4e,_0x3bc9f1){const _0x16fc74=_0xff167c;super(),_0x4aa7f7(this,_0x16fc74(0x126),new _0x241a2b[(_0x16fc74(0x1b9))](_0x16fc74(0x1c2))),_0x4aa7f7(this,_0x16fc74(0x177),this[_0x16fc74(0x126)][_0x16fc74(0x17d)]()),_0x4aa7f7(this,_0x16fc74(0x170),!0x1),_0x4aa7f7(this,_0x16fc74(0x151),null),_0x4aa7f7(this,'_presenter',null),(this[_0x16fc74(0x132)]=_0xb0c605,this[_0x16fc74(0x1dc)]=_0x127c6f,this[_0x16fc74(0x1ef)]=_0x483a0a,this[_0x16fc74(0x15c)]=_0x27bf4e,this[_0x16fc74(0x17a)]=_0x3bc9f1);}get[_0xff167c(0x164)](){const _0x45f3e9=_0xff167c;return this[_0x45f3e9(0x126)][_0x45f3e9(0x20d)]();}[_0xff167c(0x1bd)](){const _0x49aeef=_0xff167c;var _0x42fcab;(_0x42fcab=this[_0x49aeef(0x151)])==null||_0x42fcab[_0x49aeef(0x1bd)](),this[_0x49aeef(0x126)][_0x49aeef(0x17f)](_0x49aeef(0x1c2)),this[_0x49aeef(0x126)][_0x49aeef(0x128)]();}['getStatus'](){return this['_status'];}[_0xff167c(0x153)](){const _0x392008=_0xff167c;this[_0x392008(0x170)]||(this[_0x392008(0x170)]=!0x0,this[_0x392008(0x1dc)][_0x392008(0x196)][_0x392008(0x190)](_0x352fbc[_0x392008(0x176)](this[_0x392008(0x1c3)]))[_0x392008(0x1cd)](_0x32d2b6=>{const _0x414b47=_0x392008;switch(_0x32d2b6){case _0x21ff7a['SessionStatus'][_0x414b47(0x12c)]:this[_0x414b47(0x1c1)]();break;case _0x21ff7a[_0x414b47(0x156)][_0x414b47(0x209)]:this['_handleOnline']();break;}}),this[_0x392008(0x1dc)][_0x392008(0x16f)][_0x392008(0x190)](_0x352fbc[_0x392008(0x176)](this[_0x392008(0x1c3)]))[_0x392008(0x1cd)](_0x2f1ec5=>{const _0x203c82=_0x392008,{eventID:_0xa01515}=_0x2f1ec5;switch(_0xa01515){case _0x25a5e1['CollaborationEvent'][_0x203c82(0x1ac)]:this[_0x203c82(0x135)](_0x2f1ec5);break;case _0x25a5e1[_0x203c82(0x1ab)][_0x203c82(0x1b0)]:this['_handleOperation'](_0x2f1ec5);break;case _0x25a5e1[_0x203c82(0x1ab)][_0x203c82(0x1f2)]:this['_handleTerminate']();break;case _0x25a5e1[_0x203c82(0x1ab)][_0x203c82(0x1b8)]:this[_0x203c82(0x15f)](_0x2f1ec5);break;}}));}[_0xff167c(0x154)](){const _0x4002ad=_0xff167c;this['_collabSession'][_0x4002ad(0x1bf)]({'eventID':_0x25a5e1[_0x4002ad(0x1ab)][_0x4002ad(0x161)],'data':{'unitID':this[_0x4002ad(0x132)],'userID':this['_collabSession'][_0x4002ad(0x16c)]()}},this[_0x4002ad(0x132)]);}[_0xff167c(0x1c7)](){const _0x179481=_0xff167c;this['_status']==='presenting'&&(this[_0x179481(0x126)][_0x179481(0x17f)](_0x179481(0x1c2)),this['_collabSession'][_0x179481(0x1bf)]({'eventID':_0x25a5e1[_0x179481(0x1ab)][_0x179481(0x1f2)],'data':{'unitID':this['_unitID']}},this[_0x179481(0x132)]));}[_0xff167c(0x158)](){const _0xf6caac=_0xff167c;this[_0xf6caac(0x164)]==='not-following'&&(this[_0xf6caac(0x126)][_0xf6caac(0x17f)](_0xf6caac(0x146)),this[_0xf6caac(0x1a7)]());}['stopFollowing'](){const _0x5a5e5d=_0xff167c;this['_status']==='following'&&this[_0x5a5e5d(0x15d)]();}['_handleNewHost'](_0x39d721){const _0x49856d=_0xff167c,{presenter:_0x3312ef}=_0x39d721['data'],_0x2c93d1=this[_0x49856d(0x1dc)]['getMemberID']();this['_presenter']=_0x3312ef,_0x3312ef===_0x2c93d1?(this[_0x49856d(0x15d)](),this[_0x49856d(0x197)]()):this[_0x49856d(0x164)]!==_0x49856d(0x1c9)&&(this[_0x49856d(0x1e2)](),this['_startFollowing']());}[_0xff167c(0x1e5)](){const _0x5aab9c=_0xff167c,_0x79866e={'eventID':_0x25a5e1[_0x5aab9c(0x1ab)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5aab9c(0x1dc)][_0x5aab9c(0x1bf)](_0x79866e,this[_0x5aab9c(0x132)]);}[_0xff167c(0x1ce)](){const _0x382909=_0xff167c;this[_0x382909(0x1cb)]=null,this[_0x382909(0x164)]!==_0x382909(0x18e)&&this[_0x382909(0x1a3)]();}[_0xff167c(0x15f)](_0x55cb47){const _0x200cba=_0xff167c;if(this[_0x200cba(0x164)]===_0x200cba(0x146)&&this[_0x200cba(0x1cb)]===_0x55cb47[_0x200cba(0x1b6)]['memberID']){const _0x42df3d=_0x25a5e1[_0x200cba(0x14b)](_0x55cb47['data'])[_0x200cba(0x1d7)][_0x200cba(0x18b)]()['find'](_0x1ca576=>_0x1ca576['id']===_0x113b7d['InsertSheetMutation']['id']);if(_0x42df3d){const _0x379542=_0x42df3d[_0x200cba(0x1be)]['unitId'],_0x8ddbbd=_0x42df3d['params'][_0x200cba(0x1ea)]['id'];setTimeout(()=>{const _0x3d96d7=_0x200cba;this[_0x3d96d7(0x17a)]['executeCommand'](_0x113b7d[_0x3d96d7(0x1a9)]['id'],{'unitId':_0x379542,'subUnitId':_0x8ddbbd},{'fromCollab':!0x0});});}}}[_0xff167c(0x197)](){const _0x91ee5c=_0xff167c;this['_status$'][_0x91ee5c(0x17f)]('presenting');const _0x19a18a=new Map(),_0x5a1d25=this['_commandDisposable']=new _0x2e6932[(_0x91ee5c(0x1b1))]();_0x5a1d25[_0x91ee5c(0x165)](_0x2e6932[_0x91ee5c(0x182)](()=>{const _0x412d6f=_0x91ee5c;_0x19a18a['forEach'](_0x572a2d=>_0x572a2d[_0x412d6f(0x128)]()),_0x19a18a[_0x412d6f(0x16d)]();})),_0x5a1d25[_0x91ee5c(0x165)](this[_0x91ee5c(0x17a)]['onCommandExecuted'](_0x51b613=>{const _0x423f1f=_0x91ee5c;var _0x41b713;if(_0x51b613[_0x423f1f(0x159)]!==_0x2e6932[_0x423f1f(0x1f4)][_0x423f1f(0x19a)]||!this[_0x423f1f(0x15c)]['shouldShareOperation'](_0x51b613['id']))return;const {id:_0x34a7a5}=_0x51b613;let _0x22d293;_0x19a18a['has'](_0x34a7a5)?_0x22d293=_0x19a18a[_0x423f1f(0x178)](_0x34a7a5):(_0x22d293=new _0x241a2b['Subject'](),_0x19a18a['set'](_0x34a7a5,_0x22d293),_0x22d293[_0x423f1f(0x190)](_0x352fbc[_0x423f1f(0x144)]((_0x41b713=this[_0x423f1f(0x1ef)][_0x423f1f(0x1fb)](_0x4e7fe0))!=null?_0x41b713:_0x30cfe0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x423f1f(0x1cd)](_0x5267f6=>{const _0x16d84c=_0x423f1f;this['_collabSession'][_0x16d84c(0x1bf)]({'eventID':_0x25a5e1[_0x16d84c(0x1ab)][_0x16d84c(0x1b0)],'data':{'unitID':this[_0x16d84c(0x132)],'operations':{[_0x5267f6['id']]:{'id':_0x5267f6['id'],'params':JSON[_0x16d84c(0x1e3)](_0x5267f6[_0x16d84c(0x1be)])}}}},this[_0x16d84c(0x132)]);})),_0x22d293[_0x423f1f(0x17f)](_0x51b613);})),this[_0x91ee5c(0x15c)][_0x91ee5c(0x201)](this[_0x91ee5c(0x132)])[_0x91ee5c(0x19e)](_0x4a1b71=>this['_collabSession'][_0x91ee5c(0x1bf)]({'eventID':_0x25a5e1['CollaborationEvent'][_0x91ee5c(0x1b0)],'data':{'unitID':this[_0x91ee5c(0x132)],'operations':{[_0x4a1b71['id']]:{'id':_0x4a1b71['id'],'params':JSON[_0x91ee5c(0x1e3)](_0x4a1b71[_0x91ee5c(0x1be)])}}}},this[_0x91ee5c(0x132)]));}[_0xff167c(0x1e2)](){const _0x2750e1=_0xff167c;var _0x3898de;this['_status$']['next']('idle'),(_0x3898de=this[_0x2750e1(0x151)])==null||_0x3898de[_0x2750e1(0x1bd)](),this[_0x2750e1(0x151)]=null;}[_0xff167c(0x1a7)](){const _0x3a1104=_0xff167c;var _0x1bd966;(_0x1bd966=this[_0x3a1104(0x151)])==null||_0x1bd966[_0x3a1104(0x1bd)](),this['_status$'][_0x3a1104(0x17f)](_0x3a1104(0x146));}[_0xff167c(0x1a3)](){const _0x3e5e8d=_0xff167c;var _0x486c3c;this['_status$'][_0x3e5e8d(0x17f)](_0x3e5e8d(0x1c2)),(_0x486c3c=this[_0x3e5e8d(0x151)])==null||_0x486c3c[_0x3e5e8d(0x1bd)](),this[_0x3e5e8d(0x151)]=null;}[_0xff167c(0x15d)](){const _0x536b98=_0xff167c;var _0x4892c2;this['_status$'][_0x536b98(0x17f)]('not-following'),(_0x4892c2=this[_0x536b98(0x151)])==null||_0x4892c2['dispose']();}[_0xff167c(0x1f7)](_0x1199f5){const _0x3261b5=_0xff167c;if(['presenting',_0x3261b5(0x1c9),_0x3261b5(0x142)][_0x3261b5(0x1a5)](this[_0x3261b5(0x164)])||!_0x1199f5[_0x3261b5(0x1b6)][_0x3261b5(0x127)]||_0x1199f5[_0x3261b5(0x1b6)][_0x3261b5(0x127)]===this['_collabSession'][_0x3261b5(0x16c)]())return;this[_0x3261b5(0x164)]===_0x3261b5(0x1c2)&&this['_startFollowing']();const _0x2d7a3c=_0x1199f5['data'][_0x3261b5(0x13a)];Object['values'](_0x2d7a3c)[_0x3261b5(0x19e)](_0x38e0e9=>{const _0x54b79e=_0x3261b5;this[_0x54b79e(0x17a)][_0x54b79e(0x1d1)](_0x38e0e9['id'],_0x38e0e9[_0x54b79e(0x1be)]?JSON['parse'](_0x38e0e9[_0x54b79e(0x1be)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5b5888=_0xff167c;var _0x34bd52;this[_0x5b5888(0x126)][_0x5b5888(0x17f)]('offline'),(_0x34bd52=this[_0x5b5888(0x151)])==null||_0x34bd52[_0x5b5888(0x1bd)]();}[_0xff167c(0x14e)](){const _0x38a3ed=_0xff167c;this[_0x38a3ed(0x126)]['next'](_0x38a3ed(0x1c2)),this['_fetchOperations']();}},_0x124aa4[_0xff167c(0x141)]=_0x212b37([_0x4379c2(0x2,_0x2e6932['IConfigService']),_0x4379c2(0x3,_0x2e6932['Inject'](_0x91f7c9)),_0x4379c2(0x4,_0x2e6932[_0xff167c(0x13f)])],_0x124aa4[_0xff167c(0x141)]);function _0x1245b9(){const _0x3b9e82=_0xff167c,_0x578162=_0x2124f8[_0x3b9e82(0x1ff)](_0x124aa4[_0x3b9e82(0x19f)]),_0x57d449=_0x2124f8[_0x3b9e82(0x1ff)](_0x2e6932[_0x3b9e82(0x12b)]),_0x3d76c5=_0x2124f8[_0x3b9e82(0x202)](()=>_0x57d449[_0x3b9e82(0x157)](_0x2e6932[_0x3b9e82(0x1ca)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x27fc08,_0x46d9b8]=_0x27bb21[_0x3b9e82(0x180)](null),[_0x3316bb,_0x51f042]=_0x27bb21['useState'](_0x3960af[_0x3b9e82(0x1f9)]),_0x582cd9=_0x27bb21[_0x3b9e82(0x1fd)](null);return _0x27bb21[_0x3b9e82(0x1dd)](()=>(_0x3d76c5&&_0x578162[_0x3b9e82(0x131)](_0x3d76c5[_0x3b9e82(0x19c)]())['then'](_0x93b0ac=>{const _0x314eb4=_0x3b9e82;_0x46d9b8(_0x93b0ac),_0x582cd9[_0x314eb4(0x173)]=_0x93b0ac[_0x314eb4(0x177)][_0x314eb4(0x1cd)](_0x482bf2=>{_0x51f042(_0x482bf2);});}),()=>{const _0x41188b=_0x3b9e82;var _0x25bf46;(_0x25bf46=_0x582cd9[_0x41188b(0x173)])==null||_0x25bf46[_0x41188b(0x1d9)](),_0x582cd9['current']=null;}),[_0x3d76c5,_0x578162]),_0x27fc08?_0x479a5c['jsx'](_0x1b6253['Dropdown'],{'align':_0x3b9e82(0x1aa),'disabled':_0x3316bb===_0x3960af[_0x3b9e82(0x12c)],'className':_0x3b9e82(0x162),'overlay':_0x479a5c[_0x3b9e82(0x140)](_0x2fe7fd,{'status':_0x3316bb,'coordinator':_0x27fc08}),'children':_0x479a5c[_0x3b9e82(0x140)](_0x3b9e82(0x15a),{'className':_0x1b6253[_0x3b9e82(0x163)](_0x3b9e82(0x17e),{'univer-cursor-not-allowed':_0x3316bb===_0x3960af[_0x3b9e82(0x12c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3316bb!==_0x3960af[_0x3b9e82(0x12c)]}),'type':_0x3b9e82(0x15a),'children':_0x479a5c[_0x3b9e82(0x140)](_0x4b6f68,{'className':_0x3b9e82(0x1de)})})}):null;}function _0x2fe7fd(_0x58fd00){const _0x19b0a6=_0xff167c,{status:_0x42fbcc,coordinator:_0x8f0b62}=_0x58fd00;switch(_0x42fbcc){case _0x3960af[_0x19b0a6(0x1f9)]:return _0x479a5c[_0x19b0a6(0x140)](_0x21b95c,{'coordinator':_0x8f0b62});case _0x3960af['FOLLOWING']:return _0x479a5c[_0x19b0a6(0x140)](_0x51592b,{'coordinator':_0x8f0b62});case _0x3960af[_0x19b0a6(0x17c)]:return _0x479a5c[_0x19b0a6(0x140)](_0x5a680d,{'coordinator':_0x8f0b62});case _0x3960af[_0x19b0a6(0x12c)]:return _0x479a5c['jsx'](_0x30309f,{});case _0x3960af[_0x19b0a6(0x179)]:return _0x479a5c[_0x19b0a6(0x140)](_0x44be0d,{'coordinator':_0x8f0b62});default:return null;}}function _0x21b95c(_0x4f783e){const _0x158ba8=_0xff167c,{coordinator:_0x3c34f1}=_0x4f783e;return _0x479a5c[_0x158ba8(0x20b)](_0x479a5c[_0x158ba8(0x16a)],{'children':[_0x479a5c[_0x158ba8(0x140)](_0x158ba8(0x12d),{'className':_0x158ba8(0x207),'children':'Present\x20this\x20document'}),_0x479a5c['jsx'](_0x1b6253[_0x158ba8(0x18d)],{'onClick':()=>_0x3c34f1[_0x158ba8(0x154)](),'children':_0x158ba8(0x143)})]});}function _0x51592b(_0x33003f){const _0x3a7679=_0xff167c,{coordinator:_0x5df222}=_0x33003f;return _0x479a5c[_0x3a7679(0x20b)](_0x479a5c[_0x3a7679(0x16a)],{'children':[_0x479a5c[_0x3a7679(0x140)]('div',{'className':_0x3a7679(0x207),'children':_0x3a7679(0x13c)}),_0x479a5c[_0x3a7679(0x140)](_0x1b6253['Button'],{'onClick':()=>_0x5df222[_0x3a7679(0x1bc)](),'children':_0x3a7679(0x1cf)})]});}function _0x5a680d(_0x17c7ec){const _0x5e7236=_0xff167c,{coordinator:_0x121ced}=_0x17c7ec;return _0x479a5c[_0x5e7236(0x20b)](_0x479a5c['Fragment'],{'children':[_0x479a5c[_0x5e7236(0x140)](_0x5e7236(0x12d),{'className':_0x5e7236(0x207),'children':_0x5e7236(0x1e0)}),_0x479a5c[_0x5e7236(0x140)](_0x1b6253[_0x5e7236(0x18d)],{'variant':_0x5e7236(0x1cc),'onClick':()=>_0x121ced[_0x5e7236(0x158)](),'children':_0x5e7236(0x20e)})]});}function _0x44be0d(_0xf6aae6){const _0x2abc0a=_0xff167c,{coordinator:_0x2ae248}=_0xf6aae6;return _0x479a5c['jsxs'](_0x479a5c[_0x2abc0a(0x16a)],{'children':[_0x479a5c[_0x2abc0a(0x140)](_0x2abc0a(0x12d),{'className':_0x2abc0a(0x207),'children':_0x2abc0a(0x171)}),_0x479a5c[_0x2abc0a(0x140)](_0x1b6253[_0x2abc0a(0x18d)],{'variant':_0x2abc0a(0x1f1),'onClick':()=>_0x2ae248[_0x2abc0a(0x1c7)](),'children':_0x2abc0a(0x13d)})]});}function _0x30309f(){return _0x479a5c['jsx'](_0x479a5c['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x4fe67c=Object[_0xff167c(0x160)],_0x21d3ff=(_0x1f0fe0,_0x262210,_0xb34d2,_0x3d7149)=>{for(var _0xebbe25=_0x3d7149>0x1?void 0x0:_0x3d7149?_0x4fe67c(_0x262210,_0xb34d2):_0x262210,_0x2e7540=_0x1f0fe0['length']-0x1,_0x214ee0;_0x2e7540>=0x0;_0x2e7540--)(_0x214ee0=_0x1f0fe0[_0x2e7540])&&(_0xebbe25=_0x214ee0(_0xebbe25)||_0xebbe25);return _0xebbe25;},_0xbff61b=(_0x45b303,_0xaa3405)=>(_0x652b97,_0x1c1673)=>_0xaa3405(_0x652b97,_0x1c1673,_0x45b303);_0x124aa4[_0xff167c(0x1d3)]=class extends _0x2e6932[_0xff167c(0x1b7)]{constructor(_0x213579,_0x39a5e7){const _0x211b2d=_0xff167c;super(),this[_0x211b2d(0x186)]=_0x213579,this['_uiPartsService']=_0x39a5e7,this[_0x211b2d(0x1b3)]();}[_0xff167c(0x1b3)](){const _0x5cbc67=_0xff167c;this['disposeWithMe'](this[_0x5cbc67(0x1b2)][_0x5cbc67(0x1d4)](_0x2124f8[_0x5cbc67(0x1d8)][_0x5cbc67(0x203)],()=>_0x2124f8['connectInjector'](_0x1245b9,this[_0x5cbc67(0x186)])));}},_0x124aa4['DesktopLiveShareController']=_0x21d3ff([_0xbff61b(0x0,_0x2e6932[_0xff167c(0x1ed)](_0x2e6932['Injector'])),_0xbff61b(0x1,_0x2124f8[_0xff167c(0x168)])],_0x124aa4[_0xff167c(0x1d3)]);const _0x2be868=_0xff167c(0x1f3),_0x5f4f08={};var _0x4045d7=Object['getOwnPropertyDescriptor'],_0x2d5431=(_0x469d09,_0x54e0ad,_0x500a94,_0x25e0bb)=>{for(var _0x4d207d=_0x25e0bb>0x1?void 0x0:_0x25e0bb?_0x4045d7(_0x54e0ad,_0x500a94):_0x54e0ad,_0x2fcabf=_0x469d09['length']-0x1,_0x539e4e;_0x2fcabf>=0x0;_0x2fcabf--)(_0x539e4e=_0x469d09[_0x2fcabf])&&(_0x4d207d=_0x539e4e(_0x4d207d)||_0x4d207d);return _0x4d207d;},_0x472b04=(_0x43a2fc,_0xd07ee9)=>(_0x582d30,_0x408471)=>_0xd07ee9(_0x582d30,_0x408471,_0x43a2fc);let _0x1c348a=class extends _0x2e6932['Disposable']{constructor(_0x2f3c13){const _0x5c4e3b=_0xff167c;super(),this['_liveShareService']=_0x2f3c13,this[_0x5c4e3b(0x170)]();}['_init'](){const _0x5f407b=_0xff167c;[_0x37f5a8[_0x5f407b(0x1a1)]['id'],_0x37f5a8[_0x5f407b(0x187)]['id'],_0x113b7d[_0x5f407b(0x1a9)]['id']]['forEach'](_0x7fef13=>{const _0x17977e=_0x5f407b;this[_0x17977e(0x145)](this[_0x17977e(0x15c)][_0x17977e(0x12a)](_0x7fef13));});}};_0x1c348a=_0x2d5431([_0x472b04(0x0,_0x2e6932[_0xff167c(0x1ed)](_0x91f7c9))],_0x1c348a);var _0x34eef2=Object['defineProperty'],_0x2924f8=Object['getOwnPropertyDescriptor'],_0x5ec996=(_0x273783,_0x457954,_0x212dd3)=>_0x457954 in _0x273783?_0x34eef2(_0x273783,_0x457954,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x212dd3}):_0x273783[_0x457954]=_0x212dd3,_0x4c7219=(_0x1e511a,_0x255f4e,_0x36a4f0,_0x31e64d)=>{const _0xfaece2=_0xff167c;for(var _0x1b701c=_0x31e64d>0x1?void 0x0:_0x31e64d?_0x2924f8(_0x255f4e,_0x36a4f0):_0x255f4e,_0x3d009e=_0x1e511a[_0xfaece2(0x19b)]-0x1,_0x5bf5b3;_0x3d009e>=0x0;_0x3d009e--)(_0x5bf5b3=_0x1e511a[_0x3d009e])&&(_0x1b701c=_0x5bf5b3(_0x1b701c)||_0x1b701c);return _0x1b701c;},_0x4fae5d=(_0xfe56b8,_0x332b07)=>(_0x221e3a,_0x5e6229)=>_0x332b07(_0x221e3a,_0x5e6229,_0xfe56b8),_0x1eab69=(_0x1ca381,_0x552dd4,_0x49d00c)=>_0x5ec996(_0x1ca381,typeof _0x552dd4!=_0xff167c(0x1a2)?_0x552dd4+'':_0x552dd4,_0x49d00c);const _0x3aae4a=_0xff167c(0x175);_0x124aa4[_0xff167c(0x130)]=class extends _0x2e6932[_0xff167c(0x137)]{constructor(_0x43477f=_0x5f4f08,_0x34ba7d,_0x502d79){const _0x42dc86=_0xff167c;super(),this[_0x42dc86(0x1da)]=_0x43477f,this['_injector']=_0x34ba7d,this[_0x42dc86(0x1ef)]=_0x502d79;const {..._0x2f11ee}=_0x2e6932[_0x42dc86(0x1ba)]({},_0x5f4f08,this[_0x42dc86(0x1da)]);this[_0x42dc86(0x1ef)][_0x42dc86(0x200)](_0x2be868,_0x2f11ee);}['onStarting'](){const _0x3ed0a1=_0xff167c;_0x2e6932[_0x3ed0a1(0x138)](this[_0x3ed0a1(0x186)],_0x2e6932[_0x3ed0a1(0x15e)]([[_0x91f7c9],[_0x124aa4[_0x3ed0a1(0x19f)]],[_0x1c348a],[_0x124aa4[_0x3ed0a1(0x1d3)]]],this[_0x3ed0a1(0x1da)][_0x3ed0a1(0x206)])),_0x2e6932[_0x3ed0a1(0x1fa)](this[_0x3ed0a1(0x186)],[[_0x1c348a]]);}[_0xff167c(0x1f5)](){const _0x2ea001=_0xff167c;_0x2e6932['touchDependencies'](this[_0x2ea001(0x186)],[[_0x124aa4[_0x2ea001(0x1d3)]]]);}},_0x1eab69(_0x124aa4[_0xff167c(0x130)],_0xff167c(0x159),_0x2e6932[_0xff167c(0x1ca)]['UNIVER_UNKNOWN']),_0x1eab69(_0x124aa4[_0xff167c(0x130)],'pluginName',_0x3aae4a),_0x124aa4[_0xff167c(0x130)]=_0x4c7219([_0x2e6932[_0xff167c(0x139)](_0x21ff7a[_0xff167c(0x16b)]),_0x4fae5d(0x1,_0x2e6932[_0xff167c(0x1ed)](_0x2e6932[_0xff167c(0x1eb)])),_0x4fae5d(0x2,_0x2e6932[_0xff167c(0x166)])],_0x124aa4[_0xff167c(0x130)]),_0x124aa4[_0xff167c(0x185)]=_0x1245b9,_0x124aa4['LiveShareService']=_0x91f7c9,_0x124aa4[_0xff167c(0x192)]=_0x3960af,Object['defineProperty'](_0x124aa4,Symbol[_0xff167c(0x14d)],{'value':'Module'});}));function _0x2f9c(){const _0x320927=['next','useState','defs','toDisposable','createElement','url(#$1','LiveShare','_injector','SetScrollOperation','evenodd','string','has','reverse','svg','Button','presenting','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','pipe','136847XaemHF','LiveShareStatus','React','set','requireSession','sessionStatus$','_startPresenting','1174964uwnRxi','use','OPERATION','length','getUnitId','getLiveShareCoordinatorSync','forEach','LiveShareController','univerjs-icon\x20univerjs-icon-','SetZoomRatioOperation','symbol','_beIdle','9651BIiCaw','includes','displayName','_startFollowing','_sharedOperations','SetWorksheetActiveOperation','end','CollaborationEvent','LIVESHARE_NEW_HOST','defIds','UniverSheets','delete','LIVESHARE_OPERATION','DisposableCollection','_uiPartsService','_mountLiveShare','attrs','createInstance','data','Disposable','NEW_CHANGESETS','BehaviorSubject','merge','mask','stopFollowing','dispose','params','send','replace','_handleOffline','idle','dispose$','30wwRfmx','xlink:href','@univerjs/ui','stopPresenting','react/jsx-runtime','not-following','UniverInstanceType','_presenter','text','subscribe','_handleTerminate','Stop\x20following','getTypeOfUnitAdded$','executeCommand','SAME_OPERATION_SHARE_INTERVAL','DesktopLiveShareController','registerComponent','rxjs','@univerjs-pro/collaboration','mutations','BuiltInUIPart','unsubscribe','_config','2758693mNZqGX','_collabSession','useEffect','univer-size-4','substring','You\x27re\x20not\x20following\x20the\x20presenter','assign','_stopPresenting','stringify','http://www.w3.org/2000/svg','_fetchOperations','getTypeOfUnitDisposed$','currentColor','@univerjs/sheets-ui','object','sheet','Injector','react','Inject','UNIVER_SHEET','_configService','amd','default','LIVESHARE_TERMINATE','live-share.config','CommandType','onRendered','_entities','_handleOperation','_startLiveShareCoordinator','IDLE','touchDependencies','getConfig','colorChannel1','useRef','forwardRef','useDependency','setConfig','getInitialStates','useObservable','HEADER_MENU','282DzrJeF','entries','override','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerInitialStateReporter','ONLINE','_univerInstanceService','jsxs','operators','getValue','Start\x20following','_status$','presenter','complete','@univerjs/core','registerSharedOperation','IUniverInstanceService','OFFLINE','div','idSuffix','random','UniverLiveSharePlugin','getLiveShareCoordinator','_unitID','UniverProCollaborationClient','11570460lsDZKL','_handleNewHost','rxjs/operators','Plugin','registerDependencies','DependentOn','operations','UniverProCollaboration','You\x27re\x20following\x20the\x20presenter','Stop\x20presenting','function','ICommandService','jsx','LiveShareCoordinator','offline','Start','throttleTime','disposeWithMe','following','_reporters','2115PXIkSw','0\x200\x2017\x2017','11965ZWvdjy','parseProtocolChangeset','RxDisposable','toStringTag','_handleOnline','path','tag','_commandDisposable','UniverSheetsUi','init','tryStartPresenting','fill','SessionStatus','getCurrentTypeOfUnit$','startFollowing','type','button','_collabSessionService','_liveShareService','_stopFollowing','mergeOverrideWithDependencies','_handleNewChangeSets','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','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','_status','add','IConfigService','1em','IUIPartsService','14408QstkmJ','Fragment','UniverCollaborationClientPlugin','getMemberID','clear','UniverIcon','event$','_init','You\x27re\x20presenting\x20the\x20document','trim','current','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','UNIVER_LIVE_SHARE_PLUGIN','takeUntil','status$','get','PRESENTING','_commandService','children','NOT_FOLLOWING','asObservable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x2f9c=function(){return _0x320927;};return _0x2f9c();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.0-insiders.20260107-3441c7a",
3
+ "version": "0.15.0-insiders.20260108-47c73e3",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -56,15 +56,15 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/icons": "^1.1.0",
60
- "@univerjs-pro/collaboration": "0.15.0-insiders.20260107-3441c7a",
61
- "@univerjs-pro/collaboration-client": "0.15.0-insiders.20260107-3441c7a",
62
- "@univerjs/design": "0.15.0-insiders.20260107-3441c7a",
63
- "@univerjs/engine-render": "0.15.0-insiders.20260107-3441c7a",
64
- "@univerjs/core": "0.15.0-insiders.20260107-3441c7a",
65
- "@univerjs/sheets-ui": "0.15.0-insiders.20260107-3441c7a",
66
- "@univerjs/sheets": "0.15.0-insiders.20260107-3441c7a",
67
- "@univerjs/ui": "0.15.0-insiders.20260107-3441c7a"
59
+ "@univerjs/icons": "^1.1.1",
60
+ "@univerjs-pro/collaboration": "0.15.0-insiders.20260108-47c73e3",
61
+ "@univerjs-pro/collaboration-client": "0.15.0-insiders.20260108-47c73e3",
62
+ "@univerjs/design": "0.15.0-insiders.20260108-47c73e3",
63
+ "@univerjs/engine-render": "0.15.0-insiders.20260108-47c73e3",
64
+ "@univerjs/core": "0.15.0-insiders.20260108-47c73e3",
65
+ "@univerjs/sheets": "0.15.0-insiders.20260108-47c73e3",
66
+ "@univerjs/sheets-ui": "0.15.0-insiders.20260108-47c73e3",
67
+ "@univerjs/ui": "0.15.0-insiders.20260108-47c73e3"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,7 +72,7 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.3.0",
75
+ "vite": "^7.3.1",
76
76
  "vitest": "^4.0.16",
77
77
  "@univerjs/protocol": "0.1.48",
78
78
  "@univerjs-infra/shared": "0.15.0"