@univerjs-pro/live-share 0.15.2-insiders.20260122-b1556b1 → 0.15.2-insiders.20260124-12fc7f0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4560ad=_0x339c;function _0x303e(){const _0x50e234=['FUniver','getLiveShareCoordinatorSync','204jpSFFh','symbol','defineProperty','298373VTynQP','479961pGiPOF','FEnum','tryStartPresenting','2jmojCt','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','35Dncthi','stopPresenting','getCurrentUnitOfType','startFollowing','9jwGhEi','223740aEQEVU','stopFollowing','10858270fKloYe','LiveShareStatus','UNIVER_SHEET','_liveShareController','IUniverInstanceService','366056FoXEQx','2181605JIjJFK','LiveShareController','_injector','No\x20active\x20workbook\x20found.','IDLE','getUnitId','6LpILOf','104kXmFqU','get','4qKdzCh','1710842hhCuBF','UniverInstanceType','_initialize'];_0x303e=function(){return _0x50e234;};return _0x303e();}function _0x339c(_0x2a926d,_0x2a6010){_0x2a926d=_0x2a926d-0x77;const _0x303e81=_0x303e();let _0x339c49=_0x303e81[_0x2a926d];return _0x339c49;}(function(_0x2c59ae,_0x2e45ae){const _0x5a239a=_0x339c,_0x3a6dd5=_0x2c59ae();while(!![]){try{const _0x1ca8d1=-parseInt(_0x5a239a(0x89))/0x1*(-parseInt(_0x5a239a(0x8d))/0x2)+-parseInt(_0x5a239a(0x8a))/0x3*(-parseInt(_0x5a239a(0x80))/0x4)+parseInt(_0x5a239a(0x77))/0x5*(parseInt(_0x5a239a(0x7d))/0x6)+parseInt(_0x5a239a(0x8f))/0x7*(parseInt(_0x5a239a(0x9b))/0x8)+-parseInt(_0x5a239a(0x93))/0x9*(-parseInt(_0x5a239a(0x96))/0xa)+parseInt(_0x5a239a(0x94))/0xb*(-parseInt(_0x5a239a(0x86))/0xc)+parseInt(_0x5a239a(0x7e))/0xd*(-parseInt(_0x5a239a(0x81))/0xe);if(_0x1ca8d1===_0x2e45ae)break;else _0x3a6dd5['push'](_0x3a6dd5['shift']());}catch(_0x5ee778){_0x3a6dd5['push'](_0x3a6dd5['shift']());}}}(_0x303e,0xd8481));var h=Object[_0x4560ad(0x88)],u=(_0x44f6e8,_0x16c2a0,_0x3fb687)=>_0x16c2a0 in _0x44f6e8?h(_0x44f6e8,_0x16c2a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fb687}):_0x44f6e8[_0x16c2a0]=_0x3fb687,S=(_0x1dbc95,_0x1b2f08,_0x4bd433)=>u(_0x1dbc95,typeof _0x1b2f08!=_0x4560ad(0x87)?_0x1b2f08+'':_0x1b2f08,_0x4bd433);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x4560ad(0x84)]{constructor(){super(...arguments),S(this,'_liveShareController');}[_0x4560ad(0x83)](_0x27632a){const _0x304ab7=_0x4560ad;this[_0x304ab7(0x99)]=_0x27632a['get'](s[_0x304ab7(0x78)]);}['getLiveShareStatus'](){const _0x36c1d2=_0x4560ad;var _0x227440;const _0x422488=this['_injector'][_0x36c1d2(0x7f)](n[_0x36c1d2(0x9a)])['getCurrentUnitOfType'](n['UniverInstanceType'][_0x36c1d2(0x98)]);if(!_0x422488)throw new Error(_0x36c1d2(0x7a));const _0x2221d1=_0x422488[_0x36c1d2(0x7c)](),_0x1983e1=this[_0x36c1d2(0x99)][_0x36c1d2(0x85)](_0x2221d1);return(_0x227440=_0x1983e1==null?void 0x0:_0x1983e1['getStatus']())!=null?_0x227440:s[_0x36c1d2(0x97)][_0x36c1d2(0x7b)];}[_0x4560ad(0x92)](){const _0xc9cd26=_0x4560ad,_0x691ef=this[_0xc9cd26(0x79)][_0xc9cd26(0x7f)](n[_0xc9cd26(0x9a)])[_0xc9cd26(0x91)](n[_0xc9cd26(0x82)][_0xc9cd26(0x98)]);if(!_0x691ef)throw new Error(_0xc9cd26(0x7a));const _0x31be0f=_0x691ef[_0xc9cd26(0x7c)](),_0x26de0b=this[_0xc9cd26(0x99)][_0xc9cd26(0x85)](_0x31be0f);if(!_0x26de0b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x26de0b['startFollowing']();}[_0x4560ad(0x95)](){const _0x5b8647=_0x4560ad,_0x4134a3=this[_0x5b8647(0x79)][_0x5b8647(0x7f)](n[_0x5b8647(0x9a)])[_0x5b8647(0x91)](n[_0x5b8647(0x82)]['UNIVER_SHEET']);if(!_0x4134a3)throw new Error(_0x5b8647(0x7a));const _0x39a8b0=_0x4134a3[_0x5b8647(0x7c)](),_0x374540=this[_0x5b8647(0x99)][_0x5b8647(0x85)](_0x39a8b0);if(!_0x374540)throw new Error(_0x5b8647(0x8e));_0x374540[_0x5b8647(0x95)]();}['startPresenting'](){const _0x513b48=_0x4560ad,_0x31cce6=this['_injector'][_0x513b48(0x7f)](n[_0x513b48(0x9a)])[_0x513b48(0x91)](n[_0x513b48(0x82)][_0x513b48(0x98)]);if(!_0x31cce6)throw new Error(_0x513b48(0x7a));const _0x1faf85=_0x31cce6['getUnitId'](),_0x223e5d=this[_0x513b48(0x99)][_0x513b48(0x85)](_0x1faf85);if(!_0x223e5d)throw new Error(_0x513b48(0x8e));_0x223e5d[_0x513b48(0x8c)]();}[_0x4560ad(0x90)](){const _0x2a86d7=_0x4560ad,_0x2b627a=this['_injector'][_0x2a86d7(0x7f)](n[_0x2a86d7(0x9a)])[_0x2a86d7(0x91)](n[_0x2a86d7(0x82)][_0x2a86d7(0x98)]);if(!_0x2b627a)throw new Error(_0x2a86d7(0x7a));const _0x51d5bc=_0x2b627a['getUnitId'](),_0x243e2b=this[_0x2a86d7(0x99)][_0x2a86d7(0x85)](_0x51d5bc);if(!_0x243e2b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x243e2b['stopPresenting']();}}c[_0x4560ad(0x84)]['extend'](I);class l extends c[_0x4560ad(0x8b)]{get['LiveShareStatusEnum'](){const _0x368ad3=_0x4560ad;return s[_0x368ad3(0x97)];}}c[_0x4560ad(0x8b)]['extend'](l);
1
+ 'use strict';const _0x1b2ffc=_0x21eb;(function(_0x2e2ce9,_0xbdcc7e){const _0xa6830e=_0x21eb,_0xf1a75d=_0x2e2ce9();while(!![]){try{const _0x33d9b4=-parseInt(_0xa6830e(0x1cb))/0x1*(-parseInt(_0xa6830e(0x1be))/0x2)+-parseInt(_0xa6830e(0x1b5))/0x3+-parseInt(_0xa6830e(0x1b6))/0x4+parseInt(_0xa6830e(0x1b3))/0x5+-parseInt(_0xa6830e(0x1ca))/0x6+-parseInt(_0xa6830e(0x1af))/0x7+parseInt(_0xa6830e(0x1b7))/0x8*(parseInt(_0xa6830e(0x1c7))/0x9);if(_0x33d9b4===_0xbdcc7e)break;else _0xf1a75d['push'](_0xf1a75d['shift']());}catch(_0xef4fbb){_0xf1a75d['push'](_0xf1a75d['shift']());}}}(_0x3320,0x9d587));var h=Object['defineProperty'],u=(_0x1ed7b7,_0x1c7129,_0x182872)=>_0x1c7129 in _0x1ed7b7?h(_0x1ed7b7,_0x1c7129,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x182872}):_0x1ed7b7[_0x1c7129]=_0x182872,S=(_0x2b33a7,_0x12968d,_0x496b06)=>u(_0x2b33a7,typeof _0x12968d!=_0x1b2ffc(0x1b0)?_0x12968d+'':_0x12968d,_0x496b06);function _0x21eb(_0x573c8f,_0x88376b){_0x573c8f=_0x573c8f-0x1aa;const _0x3320eb=_0x3320();let _0x21eb56=_0x3320eb[_0x573c8f];return _0x21eb56;}const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x1b2ffc(0x1ba)]{constructor(){const _0x2c7e5e=_0x1b2ffc;super(...arguments),S(this,_0x2c7e5e(0x1c8));}['_initialize'](_0x21838c){const _0x28105f=_0x1b2ffc;this[_0x28105f(0x1c8)]=_0x21838c[_0x28105f(0x1bf)](s[_0x28105f(0x1ac)]);}['getLiveShareStatus'](){const _0xc9f414=_0x1b2ffc;var _0x25faeb;const _0x546d06=this[_0xc9f414(0x1c1)][_0xc9f414(0x1bf)](n[_0xc9f414(0x1ae)])['getCurrentUnitOfType'](n[_0xc9f414(0x1c5)][_0xc9f414(0x1c6)]);if(!_0x546d06)throw new Error(_0xc9f414(0x1c0));const _0x3e66fd=_0x546d06[_0xc9f414(0x1ad)](),_0x203f25=this[_0xc9f414(0x1c8)][_0xc9f414(0x1b2)](_0x3e66fd);return(_0x25faeb=_0x203f25==null?void 0x0:_0x203f25[_0xc9f414(0x1b9)]())!=null?_0x25faeb:s[_0xc9f414(0x1bd)][_0xc9f414(0x1c2)];}[_0x1b2ffc(0x1c9)](){const _0x187f53=_0x1b2ffc,_0x2d080a=this['_injector'][_0x187f53(0x1bf)](n['IUniverInstanceService'])['getCurrentUnitOfType'](n['UniverInstanceType'][_0x187f53(0x1c6)]);if(!_0x2d080a)throw new Error('No\x20active\x20workbook\x20found.');const _0x1beb0d=_0x2d080a['getUnitId'](),_0x54c71a=this[_0x187f53(0x1c8)][_0x187f53(0x1b2)](_0x1beb0d);if(!_0x54c71a)throw new Error(_0x187f53(0x1b8));_0x54c71a[_0x187f53(0x1c9)]();}[_0x1b2ffc(0x1bc)](){const _0x3dc0fd=_0x1b2ffc,_0x377dda=this[_0x3dc0fd(0x1c1)]['get'](n[_0x3dc0fd(0x1ae)])[_0x3dc0fd(0x1bb)](n['UniverInstanceType'][_0x3dc0fd(0x1c6)]);if(!_0x377dda)throw new Error('No\x20active\x20workbook\x20found.');const _0xf66024=_0x377dda[_0x3dc0fd(0x1ad)](),_0x3eede3=this[_0x3dc0fd(0x1c8)][_0x3dc0fd(0x1b2)](_0xf66024);if(!_0x3eede3)throw new Error(_0x3dc0fd(0x1b8));_0x3eede3['stopFollowing']();}[_0x1b2ffc(0x1b1)](){const _0xc7ea90=_0x1b2ffc,_0x30c63b=this[_0xc7ea90(0x1c1)][_0xc7ea90(0x1bf)](n[_0xc7ea90(0x1ae)])['getCurrentUnitOfType'](n[_0xc7ea90(0x1c5)][_0xc7ea90(0x1c6)]);if(!_0x30c63b)throw new Error(_0xc7ea90(0x1c0));const _0xe66e78=_0x30c63b[_0xc7ea90(0x1ad)](),_0x3898aa=this['_liveShareController'][_0xc7ea90(0x1b2)](_0xe66e78);if(!_0x3898aa)throw new Error(_0xc7ea90(0x1b8));_0x3898aa[_0xc7ea90(0x1aa)]();}[_0x1b2ffc(0x1c4)](){const _0x45e519=_0x1b2ffc,_0x4990e2=this[_0x45e519(0x1c1)][_0x45e519(0x1bf)](n['IUniverInstanceService'])['getCurrentUnitOfType'](n[_0x45e519(0x1c5)][_0x45e519(0x1c6)]);if(!_0x4990e2)throw new Error(_0x45e519(0x1c0));const _0x2fbe06=_0x4990e2[_0x45e519(0x1ad)](),_0x48fe70=this[_0x45e519(0x1c8)][_0x45e519(0x1b2)](_0x2fbe06);if(!_0x48fe70)throw new Error(_0x45e519(0x1b8));_0x48fe70[_0x45e519(0x1c4)]();}}c['FUniver'][_0x1b2ffc(0x1b4)](I);class l extends c[_0x1b2ffc(0x1c3)]{get[_0x1b2ffc(0x1ab)](){const _0x23eaba=_0x1b2ffc;return s[_0x23eaba(0x1bd)];}}c[_0x1b2ffc(0x1c3)][_0x1b2ffc(0x1b4)](l);function _0x3320(){const _0x1e5342=['IDLE','FEnum','stopPresenting','UniverInstanceType','UNIVER_SHEET','5046021qyONqs','_liveShareController','startFollowing','942720RdynIX','448599yTrFoH','tryStartPresenting','LiveShareStatusEnum','LiveShareController','getUnitId','IUniverInstanceService','2828084BMnuNq','symbol','startPresenting','getLiveShareCoordinatorSync','1059730xBJzPp','extend','192204jOSxcN','4291460emIzBu','24LnRHgn','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','FUniver','getCurrentUnitOfType','stopFollowing','LiveShareStatus','2ZsFiOR','get','No\x20active\x20workbook\x20found.','_injector'];_0x3320=function(){return _0x1e5342;};return _0x3320();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1d9ea9=_0x139a;function _0x139a(_0x1f4d30,_0x56bfec){_0x1f4d30=_0x1f4d30-0x130;const _0x404a2a=_0x404a();let _0x139a5e=_0x404a2a[_0x1f4d30];return _0x139a5e;}(function(_0x4e002d,_0x4ae108){const _0xd9a285=_0x139a,_0x2ea1d1=_0x4e002d();while(!![]){try{const _0x53311e=-parseInt(_0xd9a285(0x17b))/0x1*(parseInt(_0xd9a285(0x1b3))/0x2)+parseInt(_0xd9a285(0x168))/0x3*(parseInt(_0xd9a285(0x1fe))/0x4)+-parseInt(_0xd9a285(0x1c5))/0x5*(parseInt(_0xd9a285(0x1f6))/0x6)+-parseInt(_0xd9a285(0x1b1))/0x7+-parseInt(_0xd9a285(0x1d6))/0x8+parseInt(_0xd9a285(0x16f))/0x9*(parseInt(_0xd9a285(0x1d4))/0xa)+parseInt(_0xd9a285(0x14a))/0xb*(parseInt(_0xd9a285(0x1c7))/0xc);if(_0x53311e===_0x4ae108)break;else _0x2ea1d1['push'](_0x2ea1d1['shift']());}catch(_0x2d17bf){_0x2ea1d1['push'](_0x2ea1d1['shift']());}}}(_0x404a,0x4983f));var T=Object[_0x1d9ea9(0x1d8)],U=(_0x803bd1,_0x374a56,_0x26a156)=>_0x374a56 in _0x803bd1?T(_0x803bd1,_0x374a56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a156}):_0x803bd1[_0x374a56]=_0x26a156,_=(_0x27bceb,_0x352a5b,_0x560837)=>U(_0x27bceb,typeof _0x352a5b!=_0x1d9ea9(0x205)?_0x352a5b+'':_0x352a5b,_0x560837);Object['defineProperty'](exports,Symbol[_0x1d9ea9(0x130)],{'value':'Module'});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:_0x1783df,..._0x5d601f}){const _0x29d143=_0x1d9ea9,{icon:_0x29a573,id:_0x3abc1a,className:_0x1cafbe,extend:_0x104f19,..._0x2e655a}=_0x5d601f,_0x218ffd=(_0x29d143(0x1ca)+_0x3abc1a+'\x20'+(_0x1cafbe||''))[_0x29d143(0x176)](),_0x15db80=v[_0x29d143(0x16d)]('_'+H());return j(_0x29a573,''+_0x3abc1a,{'defIds':_0x29a573[_0x29d143(0x1d1)],'idSuffix':_0x15db80[_0x29d143(0x1c6)]},{'ref':_0x1783df,'className':_0x218ffd,..._0x2e655a},_0x104f19);}function j(_0x372226,_0x1e0919,_0x1c0c62,_0x1f3495,_0x4cb9e5){const _0x32515c=_0x1d9ea9;return v[_0x32515c(0x1b2)](_0x372226[_0x32515c(0x13a)],{'key':_0x1e0919,...y(_0x372226,_0x1c0c62,_0x4cb9e5),..._0x1f3495},(F(_0x372226,_0x1c0c62)[_0x32515c(0x17a)]||[])[_0x32515c(0x1a1)]((_0x55f5fc,_0x1fba43)=>j(_0x55f5fc,_0x1e0919+'-'+_0x372226['tag']+'-'+_0x1fba43,_0x1c0c62,void 0x0,_0x4cb9e5)));}function y(_0x16e35f,_0x457de9,_0x471fbe){const _0x1946a8=_0x1d9ea9,_0x181eaa={..._0x16e35f[_0x1946a8(0x1c0)]};_0x471fbe!=null&&_0x471fbe[_0x1946a8(0x156)]&&_0x181eaa[_0x1946a8(0x186)]===_0x1946a8(0x156)&&(_0x181eaa['fill']=_0x471fbe[_0x1946a8(0x156)]),_0x16e35f[_0x1946a8(0x13a)]===_0x1946a8(0x1e2)&&_0x181eaa['id']&&(_0x181eaa['id']=_0x181eaa['id']+_0x457de9[_0x1946a8(0x1e0)]),Object['entries'](_0x181eaa)[_0x1946a8(0x207)](([_0x45e4fe,_0x42f3f4])=>{const _0xe109c9=_0x1946a8;_0x45e4fe==='mask'&&typeof _0x42f3f4==_0xe109c9(0x138)&&(_0x181eaa[_0x45e4fe]=_0x42f3f4[_0xe109c9(0x1da)](/url\(#(.*)\)/,_0xe109c9(0x1eb)+_0x457de9[_0xe109c9(0x1e0)]+')'));});const {defIds:_0x5c3bff}=_0x457de9;return!_0x5c3bff||_0x5c3bff[_0x1946a8(0x1e9)]===0x0||(_0x16e35f[_0x1946a8(0x13a)]==='use'&&_0x181eaa[_0x1946a8(0x1a8)]&&(_0x181eaa[_0x1946a8(0x1a8)]=_0x181eaa[_0x1946a8(0x1a8)]+_0x457de9[_0x1946a8(0x1e0)]),Object['entries'](_0x181eaa)[_0x1946a8(0x207)](([_0x40bd17,_0x391cab])=>{const _0xcbfc64=_0x1946a8;typeof _0x391cab==_0xcbfc64(0x138)&&(_0x181eaa[_0x40bd17]=_0x391cab[_0xcbfc64(0x1da)](/url\(#(.*)\)/,_0xcbfc64(0x1eb)+_0x457de9[_0xcbfc64(0x1e0)]+')'));})),_0x181eaa;}function F(_0x957d31,_0x243eb7){const _0x54a575=_0x1d9ea9;var _0x15b2fd;const {defIds:_0x56cf85}=_0x243eb7;return!_0x56cf85||_0x56cf85[_0x54a575(0x1e9)]===0x0?_0x957d31:_0x957d31[_0x54a575(0x13a)]===_0x54a575(0x1e3)&&((_0x15b2fd=_0x957d31[_0x54a575(0x17a)])!=null&&_0x15b2fd[_0x54a575(0x1e9)])?{..._0x957d31,'children':_0x957d31['children']['map'](_0x1391ca=>typeof _0x1391ca['attrs']['id']==_0x54a575(0x138)&&_0x56cf85&&_0x56cf85[_0x54a575(0x14f)](_0x1391ca[_0x54a575(0x1c0)]['id'])?{..._0x1391ca,'attrs':{..._0x1391ca[_0x54a575(0x1c0)],'id':_0x1391ca[_0x54a575(0x1c0)]['id']+_0x243eb7[_0x54a575(0x1e0)]}}:_0x1391ca)}:_0x957d31;}function H(){const _0x1a2c1f=_0x1d9ea9;return Math['random']()[_0x1a2c1f(0x174)](0x24)['substring'](0x2,0x8);}x[_0x1d9ea9(0x1a4)]=_0x1d9ea9(0x155);const V={'tag':'svg','attrs':{'xmlns':_0x1d9ea9(0x173),'fill':_0x1d9ea9(0x149),'viewBox':_0x1d9ea9(0x14d),'width':_0x1d9ea9(0x151),'height':'1em'},'children':[{'tag':_0x1d9ea9(0x163),'attrs':{'fill':_0x1d9ea9(0x18f),'d':_0x1d9ea9(0x146)}},{'tag':_0x1d9ea9(0x163),'attrs':{'fill':_0x1d9ea9(0x18f),'d':_0x1d9ea9(0x1e6),'fillRule':_0x1d9ea9(0x206),'clipRule':_0x1d9ea9(0x206)}}]},R=v[_0x1d9ea9(0x161)](function(_0x11ac3f,_0x4a62c2){const _0x2e8c2e=_0x1d9ea9;return v[_0x2e8c2e(0x1b2)](x,Object[_0x2e8c2e(0x15d)]({},_0x11ac3f,{'id':_0x2e8c2e(0x1c8),'ref':_0x4a62c2,'icon':V}));});R[_0x1d9ea9(0x1a4)]=_0x1d9ea9(0x15a);class E extends o[_0x1d9ea9(0x183)]{constructor(){const _0xf4510c=_0x1d9ea9;super(...arguments),_(this,_0xf4510c(0x1ac),new Set()),_(this,_0xf4510c(0x1cb),new Set());}['registerSharedOperation'](_0x16ebf6){const _0x4e3054=_0x1d9ea9;return this[_0x4e3054(0x1ac)][_0x4e3054(0x1d0)](_0x16ebf6),o[_0x4e3054(0x18b)](()=>this['_sharedOperations'][_0x4e3054(0x1d9)](_0x16ebf6));}[_0x1d9ea9(0x142)](_0xcb8417){const _0x4f586f=_0x1d9ea9;return this[_0x4f586f(0x1cb)][_0x4f586f(0x1d0)](_0xcb8417),o[_0x4f586f(0x18b)](()=>this[_0x4f586f(0x1cb)][_0x4f586f(0x1d9)](_0xcb8417));}[_0x1d9ea9(0x1bf)](_0x32a02c){const _0x4d2836=_0x1d9ea9;return this[_0x4d2836(0x1ac)][_0x4d2836(0x157)](_0x32a02c);}['getInitialStates'](_0x5c1c5e){const _0x1ec02d=_0x1d9ea9;return Array[_0x1ec02d(0x13c)](this[_0x1ec02d(0x1cb)])['map'](_0x3ecf36=>_0x3ecf36(_0x5c1c5e));}}var M=Object[_0x1d9ea9(0x162)],P=(_0x41558e,_0x3be231,_0x3e4d23,_0x3ea0e3)=>{const _0x23877e=_0x1d9ea9;for(var _0x1b1837=_0x3ea0e3>0x1?void 0x0:_0x3ea0e3?M(_0x3be231,_0x3e4d23):_0x3be231,_0x1a9e83=_0x41558e[_0x23877e(0x1e9)]-0x1,_0x131919;_0x1a9e83>=0x0;_0x1a9e83--)(_0x131919=_0x41558e[_0x1a9e83])&&(_0x1b1837=_0x131919(_0x1b1837)||_0x1b1837);return _0x1b1837;},S=(_0x2d8817,_0x5bc823)=>(_0xf20d72,_0x2786b4)=>_0x5bc823(_0xf20d72,_0x2786b4,_0x2d8817);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0xdab5e1,_0xd36f7a,_0x1a3cde){const _0x403018=_0x1d9ea9;super(),_(this,'_entities',new Map()),(this[_0x403018(0x154)]=_0xdab5e1,this[_0x403018(0x1b6)]=_0xd36f7a,this[_0x403018(0x172)]=_0x1a3cde,this[_0x403018(0x1ee)]());}async[_0x1d9ea9(0x20b)](_0x421e77){const _0x22519e=_0x1d9ea9;return this[_0x22519e(0x1dd)][_0x22519e(0x157)](_0x421e77)||await this['_startLiveShareCoordinator'](_0x421e77),this[_0x22519e(0x1dd)][_0x22519e(0x170)](_0x421e77);}['getLiveShareCoordinatorSync'](_0x27d6cd){const _0x2be595=_0x1d9ea9;var _0x32da45;return(_0x32da45=this[_0x2be595(0x1dd)]['get'](_0x27d6cd))!=null?_0x32da45:null;}[_0x1d9ea9(0x1ee)](){const _0x402d9a=_0x1d9ea9;this['_univerInstanceService'][_0x402d9a(0x18e)](o[_0x402d9a(0x188)]['UNIVER_SHEET'])[_0x402d9a(0x197)](I[_0x402d9a(0x1dc)](this['dispose$']))[_0x402d9a(0x1f3)](async _0x3ee5e0=>{const _0x55c5f0=_0x402d9a,_0x2a166f=_0x3ee5e0[_0x55c5f0(0x1db)]();this['_entities'][_0x55c5f0(0x157)](_0x2a166f)||this['_startLiveShareCoordinator'](_0x2a166f);}),this[_0x402d9a(0x154)][_0x402d9a(0x1ec)](o[_0x402d9a(0x188)][_0x402d9a(0x148)])[_0x402d9a(0x197)](I[_0x402d9a(0x1dc)](this[_0x402d9a(0x132)]))[_0x402d9a(0x1f3)](_0x553cb9=>{const _0x36b386=_0x402d9a,_0x1c510f=_0x553cb9[_0x36b386(0x1db)](),_0x500b31=this[_0x36b386(0x1dd)][_0x36b386(0x170)](_0x1c510f);_0x500b31==null||_0x500b31[_0x36b386(0x1f8)]();});}async['_startLiveShareCoordinator'](_0x5c14b5){const _0x4d745b=_0x1d9ea9,_0x148d83=await this['_collabSessionService'][_0x4d745b(0x1bc)](_0x5c14b5),_0x2f4b9=this[_0x4d745b(0x1b6)]['createInstance'](exports[_0x4d745b(0x18a)],_0x5c14b5,_0x148d83);return _0x2f4b9[_0x4d745b(0x164)](),this[_0x4d745b(0x1dd)][_0x4d745b(0x1f7)](_0x5c14b5,_0x2f4b9),_0x2f4b9;}},exports['LiveShareController']=P([S(0x0,o[_0x1d9ea9(0x15c)]),S(0x1,o[_0x1d9ea9(0x1d2)](o[_0x1d9ea9(0x20a)])),S(0x2,o[_0x1d9ea9(0x1d2)](b[_0x1d9ea9(0x140)]))],exports[_0x1d9ea9(0x1a9)]);var u=(_0x24d9f4=>(_0x24d9f4['OFFLINE']=_0x1d9ea9(0x13f),_0x24d9f4[_0x1d9ea9(0x152)]=_0x1d9ea9(0x141),_0x24d9f4[_0x1d9ea9(0x184)]='following',_0x24d9f4[_0x1d9ea9(0x143)]='not-following',_0x24d9f4['PRESENTING']=_0x1d9ea9(0x131),_0x24d9f4))(u||{});const k=_0x1d9ea9(0x1a0),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x1d9ea9(0x153)]{constructor(_0x23eacc,_0x68f8e0,_0x513299,_0xa9a534,_0x3d6ac9){const _0x34b660=_0x1d9ea9;super(),_(this,_0x34b660(0x196),new O[(_0x34b660(0x144))](_0x34b660(0x141))),_(this,'status$',this[_0x34b660(0x196)][_0x34b660(0x1e1)]()),_(this,_0x34b660(0x1ee),!0x1),_(this,_0x34b660(0x17d),null),_(this,'_presenter',null),(this[_0x34b660(0x190)]=_0x23eacc,this['_collabSession']=_0x68f8e0,this[_0x34b660(0x194)]=_0x513299,this[_0x34b660(0x1ce)]=_0xa9a534,this[_0x34b660(0x1bd)]=_0x3d6ac9);}get[_0x1d9ea9(0x150)](){const _0x5c583f=_0x1d9ea9;return this[_0x5c583f(0x196)][_0x5c583f(0x1f4)]();}['dispose'](){const _0x35a52f=_0x1d9ea9;var _0x2a62e6;(_0x2a62e6=this[_0x35a52f(0x17d)])==null||_0x2a62e6[_0x35a52f(0x1f8)](),this[_0x35a52f(0x196)][_0x35a52f(0x200)](_0x35a52f(0x141)),this[_0x35a52f(0x196)][_0x35a52f(0x204)]();}['getStatus'](){const _0x11450a=_0x1d9ea9;return this[_0x11450a(0x150)];}['init'](){const _0x55343b=_0x1d9ea9;this['_init']||(this[_0x55343b(0x1ee)]=!0x0,this[_0x55343b(0x13b)][_0x55343b(0x1cd)][_0x55343b(0x197)](I[_0x55343b(0x1dc)](this['dispose$']))[_0x55343b(0x1f3)](_0x246e8a=>{const _0x4ec0ad=_0x55343b;switch(_0x246e8a){case b[_0x4ec0ad(0x1d5)][_0x4ec0ad(0x177)]:this[_0x4ec0ad(0x1bb)]();break;case b[_0x4ec0ad(0x1d5)]['ONLINE']:this[_0x4ec0ad(0x203)]();break;}}),this['_collabSession']['event$'][_0x55343b(0x197)](I[_0x55343b(0x1dc)](this[_0x55343b(0x132)]))['subscribe'](_0x5c5b93=>{const _0x6a5396=_0x55343b,{eventID:_0x32e6e6}=_0x5c5b93;switch(_0x32e6e6){case d[_0x6a5396(0x187)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x5c5b93);break;case d[_0x6a5396(0x187)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x5c5b93);break;case d[_0x6a5396(0x187)][_0x6a5396(0x1e8)]:this[_0x6a5396(0x1ae)]();break;case d[_0x6a5396(0x187)][_0x6a5396(0x199)]:this['_handleNewChangeSets'](_0x5c5b93);break;}}));}['tryStartPresenting'](){const _0x3602ae=_0x1d9ea9;this[_0x3602ae(0x13b)][_0x3602ae(0x193)]({'eventID':d[_0x3602ae(0x187)][_0x3602ae(0x1e5)],'data':{'unitID':this['_unitID'],'userID':this[_0x3602ae(0x13b)][_0x3602ae(0x1c9)]()}},this[_0x3602ae(0x190)]);}[_0x1d9ea9(0x1a5)](){const _0x2fe1fb=_0x1d9ea9;this[_0x2fe1fb(0x150)]==='presenting'&&(this[_0x2fe1fb(0x196)][_0x2fe1fb(0x200)]('idle'),this[_0x2fe1fb(0x13b)][_0x2fe1fb(0x193)]({'eventID':d['CollaborationEvent'][_0x2fe1fb(0x1e8)],'data':{'unitID':this['_unitID']}},this[_0x2fe1fb(0x190)]));}['startFollowing'](){const _0x2b9622=_0x1d9ea9;this['_status']===_0x2b9622(0x1fb)&&(this['_status$']['next'](_0x2b9622(0x1e7)),this[_0x2b9622(0x133)]());}[_0x1d9ea9(0x1b9)](){const _0x1bcb11=_0x1d9ea9;this['_status']==='following'&&this[_0x1bcb11(0x18c)]();}['_handleNewHost'](_0x27e1b6){const _0x2e1cb2=_0x1d9ea9,{presenter:_0x429c2a}=_0x27e1b6[_0x2e1cb2(0x1f5)],_0x519fe8=this[_0x2e1cb2(0x13b)][_0x2e1cb2(0x1c9)]();this['_presenter']=_0x429c2a,_0x429c2a===_0x519fe8?(this[_0x2e1cb2(0x18c)](),this['_startPresenting']()):this[_0x2e1cb2(0x150)]!=='not-following'&&(this[_0x2e1cb2(0x209)](),this[_0x2e1cb2(0x133)]());}[_0x1d9ea9(0x165)](){const _0x45de6e=_0x1d9ea9,_0x145f13={'eventID':d[_0x45de6e(0x187)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x45de6e(0x13b)]['send'](_0x145f13,this['_unitID']);}[_0x1d9ea9(0x1ae)](){const _0x41b031=_0x1d9ea9;this[_0x41b031(0x1c3)]=null,this[_0x41b031(0x150)]!==_0x41b031(0x131)&&this[_0x41b031(0x1df)]();}['_handleNewChangeSets'](_0x4c889b){const _0x504432=_0x1d9ea9;if(this[_0x504432(0x150)]==='following'&&this[_0x504432(0x1c3)]===_0x4c889b['data'][_0x504432(0x139)]){const _0xd8cf6f=d['parseProtocolChangeset'](_0x4c889b['data'])[_0x504432(0x1f2)][_0x504432(0x16b)]()[_0x504432(0x1ad)](_0x3493d2=>_0x3493d2['id']===C[_0x504432(0x181)]['id']);if(_0xd8cf6f){const _0x1c1059=_0xd8cf6f['params'][_0x504432(0x1e4)],_0x544ee9=_0xd8cf6f[_0x504432(0x179)]['sheet']['id'];setTimeout(()=>{const _0x4d0c8f=_0x504432;this[_0x4d0c8f(0x1bd)][_0x4d0c8f(0x158)](C[_0x4d0c8f(0x1fa)]['id'],{'unitId':_0x1c1059,'subUnitId':_0x544ee9},{'fromCollab':!0x0});});}}}[_0x1d9ea9(0x1f9)](){const _0x2e70e9=_0x1d9ea9;this[_0x2e70e9(0x196)][_0x2e70e9(0x200)](_0x2e70e9(0x131));const _0xc58957=new Map(),_0x1da933=this['_commandDisposable']=new o['DisposableCollection']();_0x1da933[_0x2e70e9(0x1d0)](o['toDisposable'](()=>{const _0x2d3a60=_0x2e70e9;_0xc58957[_0x2d3a60(0x207)](_0x25a738=>_0x25a738[_0x2d3a60(0x204)]()),_0xc58957[_0x2d3a60(0x1ff)]();})),_0x1da933['add'](this[_0x2e70e9(0x1bd)][_0x2e70e9(0x1b5)](_0x51f2f6=>{const _0xda690b=_0x2e70e9;var _0x22131e;if(_0x51f2f6[_0xda690b(0x1af)]!==o[_0xda690b(0x13e)][_0xda690b(0x160)]||!this[_0xda690b(0x1ce)][_0xda690b(0x1bf)](_0x51f2f6['id']))return;const {id:_0x31f322}=_0x51f2f6;let _0xf9d13b;_0xc58957[_0xda690b(0x157)](_0x31f322)?_0xf9d13b=_0xc58957[_0xda690b(0x170)](_0x31f322):(_0xf9d13b=new O[(_0xda690b(0x135))](),_0xc58957[_0xda690b(0x1f7)](_0x31f322,_0xf9d13b),_0xf9d13b[_0xda690b(0x197)](I[_0xda690b(0x19a)]((_0x22131e=this['_configService'][_0xda690b(0x198)](k))!=null?_0x22131e:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xda690b(0x1f3)](_0x38fa7c=>{const _0x49446a=_0xda690b;this[_0x49446a(0x13b)][_0x49446a(0x193)]({'eventID':d[_0x49446a(0x187)][_0x49446a(0x1ea)],'data':{'unitID':this[_0x49446a(0x190)],'operations':{[_0x38fa7c['id']]:{'id':_0x38fa7c['id'],'params':JSON[_0x49446a(0x185)](_0x38fa7c[_0x49446a(0x179)])}}}},this[_0x49446a(0x190)]);})),_0xf9d13b[_0xda690b(0x200)](_0x51f2f6);})),this[_0x2e70e9(0x1ce)]['getInitialStates'](this[_0x2e70e9(0x190)])[_0x2e70e9(0x207)](_0x5f3e61=>this['_collabSession'][_0x2e70e9(0x193)]({'eventID':d[_0x2e70e9(0x187)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5f3e61['id']]:{'id':_0x5f3e61['id'],'params':JSON[_0x2e70e9(0x185)](_0x5f3e61['params'])}}}},this[_0x2e70e9(0x190)]));}['_stopPresenting'](){const _0x5eb832=_0x1d9ea9;var _0x5b5453;this[_0x5eb832(0x196)][_0x5eb832(0x200)](_0x5eb832(0x141)),(_0x5b5453=this[_0x5eb832(0x17d)])==null||_0x5b5453['dispose'](),this[_0x5eb832(0x17d)]=null;}[_0x1d9ea9(0x133)](){const _0x18c44b=_0x1d9ea9;var _0x2e2233;(_0x2e2233=this[_0x18c44b(0x17d)])==null||_0x2e2233[_0x18c44b(0x1f8)](),this[_0x18c44b(0x196)]['next']('following');}['_beIdle'](){const _0x3e834a=_0x1d9ea9;var _0x145bc8;this[_0x3e834a(0x196)][_0x3e834a(0x200)]('idle'),(_0x145bc8=this[_0x3e834a(0x17d)])==null||_0x145bc8[_0x3e834a(0x1f8)](),this[_0x3e834a(0x17d)]=null;}[_0x1d9ea9(0x18c)](){const _0x46673a=_0x1d9ea9;var _0x2fbb67;this[_0x46673a(0x196)]['next']('not-following'),(_0x2fbb67=this[_0x46673a(0x17d)])==null||_0x2fbb67['dispose']();}[_0x1d9ea9(0x208)](_0xad75f0){const _0x59e430=_0x1d9ea9;if(['presenting',_0x59e430(0x1fb),_0x59e430(0x13f)]['includes'](this[_0x59e430(0x150)])||!_0xad75f0[_0x59e430(0x1f5)][_0x59e430(0x1a2)]||_0xad75f0['data'][_0x59e430(0x1a2)]===this[_0x59e430(0x13b)]['getMemberID']())return;this['_status']===_0x59e430(0x141)&&this[_0x59e430(0x133)]();const _0x3da69b=_0xad75f0[_0x59e430(0x1f5)][_0x59e430(0x1ab)];Object[_0x59e430(0x19b)](_0x3da69b)['forEach'](_0x2ddac4=>{const _0x3c9ab8=_0x59e430;this['_commandService'][_0x3c9ab8(0x158)](_0x2ddac4['id'],_0x2ddac4[_0x3c9ab8(0x179)]?JSON['parse'](_0x2ddac4[_0x3c9ab8(0x179)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xb41015=_0x1d9ea9;var _0x468358;this['_status$'][_0xb41015(0x200)](_0xb41015(0x13f)),(_0x468358=this['_commandDisposable'])==null||_0x468358[_0xb41015(0x1f8)]();}[_0x1d9ea9(0x203)](){const _0x1ddb85=_0x1d9ea9;this[_0x1ddb85(0x196)]['next'](_0x1ddb85(0x141)),this[_0x1ddb85(0x165)]();}},exports[_0x1d9ea9(0x18a)]=P([S(0x2,o[_0x1d9ea9(0x15e)]),S(0x3,o[_0x1d9ea9(0x1d2)](E)),S(0x4,o[_0x1d9ea9(0x1f1)])],exports[_0x1d9ea9(0x18a)]);function $(){const _0x386be0=_0x1d9ea9,_0x6a9901=p['useDependency'](exports['LiveShareController']),_0x2c87f1=p[_0x386be0(0x17c)](o[_0x386be0(0x15c)]),_0x451a5b=p[_0x386be0(0x14c)](()=>_0x2c87f1[_0x386be0(0x1a6)](o['UniverInstanceType'][_0x386be0(0x148)]),void 0x0,!0x1,[]),[_0x17da5e,_0x2b7c88]=v[_0x386be0(0x15f)](null),[_0x560282,_0x332abf]=v['useState'](u[_0x386be0(0x152)]),_0x58155c=v['useRef'](null);return v[_0x386be0(0x1a7)](()=>(_0x451a5b&&_0x6a9901[_0x386be0(0x20b)](_0x451a5b[_0x386be0(0x1db)]())[_0x386be0(0x16c)](_0x3e3f50=>{const _0x542a39=_0x386be0;_0x2b7c88(_0x3e3f50),_0x58155c[_0x542a39(0x1c6)]=_0x3e3f50[_0x542a39(0x169)]['subscribe'](_0x4a9dd3=>{_0x332abf(_0x4a9dd3);});}),()=>{const _0x1801ef=_0x386be0;var _0x2391a1;(_0x2391a1=_0x58155c[_0x1801ef(0x1c6)])==null||_0x2391a1[_0x1801ef(0x1ed)](),_0x58155c[_0x1801ef(0x1c6)]=null;}),[_0x451a5b,_0x6a9901]),_0x17da5e?l[_0x386be0(0x201)](f[_0x386be0(0x15b)],{'align':_0x386be0(0x145),'disabled':_0x560282===u[_0x386be0(0x177)],'className':_0x386be0(0x192),'overlay':l[_0x386be0(0x201)](W,{'status':_0x560282,'coordinator':_0x17da5e}),'children':l[_0x386be0(0x201)](_0x386be0(0x189),{'className':f['clsx'](_0x386be0(0x180),{'univer-cursor-not-allowed':_0x560282===u[_0x386be0(0x177)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x560282!==u[_0x386be0(0x177)]}),'type':_0x386be0(0x189),'children':l[_0x386be0(0x201)](R,{'className':_0x386be0(0x1cf)})})}):null;}function W(_0x53333a){const _0x3f5bd9=_0x1d9ea9,{status:_0x38930c,coordinator:_0x4c5c28}=_0x53333a;switch(_0x38930c){case u[_0x3f5bd9(0x152)]:return l[_0x3f5bd9(0x201)](G,{'coordinator':_0x4c5c28});case u['FOLLOWING']:return l[_0x3f5bd9(0x201)](B,{'coordinator':_0x4c5c28});case u[_0x3f5bd9(0x143)]:return l[_0x3f5bd9(0x201)](Y,{'coordinator':_0x4c5c28});case u[_0x3f5bd9(0x177)]:return l[_0x3f5bd9(0x201)](J,{});case u[_0x3f5bd9(0x16e)]:return l['jsx'](Z,{'coordinator':_0x4c5c28});default:return null;}}function G(_0x3deab2){const _0x59f1dd=_0x1d9ea9,{coordinator:_0x5d5c12}=_0x3deab2;return l[_0x59f1dd(0x195)](l['Fragment'],{'children':[l[_0x59f1dd(0x201)](_0x59f1dd(0x147),{'className':_0x59f1dd(0x1b0),'children':_0x59f1dd(0x1fc)}),l[_0x59f1dd(0x201)](f[_0x59f1dd(0x1d7)],{'onClick':()=>_0x5d5c12[_0x59f1dd(0x17e)](),'children':_0x59f1dd(0x16a)})]});}function B(_0x27233b){const _0x4d30e1=_0x1d9ea9,{coordinator:_0x36dcab}=_0x27233b;return l[_0x4d30e1(0x195)](l[_0x4d30e1(0x136)],{'children':[l[_0x4d30e1(0x201)](_0x4d30e1(0x147),{'className':_0x4d30e1(0x1b0),'children':_0x4d30e1(0x1ef)}),l[_0x4d30e1(0x201)](f[_0x4d30e1(0x1d7)],{'onClick':()=>_0x36dcab[_0x4d30e1(0x1b9)](),'children':_0x4d30e1(0x18d)})]});}function Y(_0x7ec19e){const _0x5233d0=_0x1d9ea9,{coordinator:_0x566aec}=_0x7ec19e;return l[_0x5233d0(0x195)](l[_0x5233d0(0x136)],{'children':[l[_0x5233d0(0x201)](_0x5233d0(0x147),{'className':_0x5233d0(0x1b0),'children':_0x5233d0(0x17f)}),l[_0x5233d0(0x201)](f['Button'],{'variant':_0x5233d0(0x1de),'onClick':()=>_0x566aec[_0x5233d0(0x1d3)](),'children':_0x5233d0(0x19e)})]});}function Z(_0x4dc593){const _0x46d335=_0x1d9ea9,{coordinator:_0x3e8551}=_0x4dc593;return l[_0x46d335(0x195)](l[_0x46d335(0x136)],{'children':[l[_0x46d335(0x201)](_0x46d335(0x147),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x46d335(0x1b4)}),l[_0x46d335(0x201)](f[_0x46d335(0x1d7)],{'variant':_0x46d335(0x1b8),'onClick':()=>_0x3e8551['stopPresenting'](),'children':_0x46d335(0x159)})]});}function _0x404a(){const _0x3c68b6=['evenodd','forEach','_handleOperation','_stopPresenting','Injector','getLiveShareCoordinator','toStringTag','presenting','dispose$','_startFollowing','onRendered','Subject','Fragment','_mountLiveShare','string','memberID','tag','_collabSession','from','DependentOn','CommandType','offline','CollaborationSessionService','idle','registerInitialStateReporter','NOT_FOLLOWING','BehaviorSubject','end','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','div','UNIVER_SHEET','none','190663sIgAZT','HEADER_MENU','useObservable','0\x200\x2017\x2017','SetZoomRatioOperation','includes','_status','1em','IDLE','RxDisposable','_univerInstanceService','UniverIcon','colorChannel1','has','executeCommand','Stop\x20presenting','LiveShareIcon','Dropdown','IUniverInstanceService','assign','IConfigService','useState','OPERATION','forwardRef','getOwnPropertyDescriptor','path','init','_fetchOperations','LiveShare','registerDependencies','943683wxFJvD','status$','Start','reverse','then','useRef','PRESENTING','117405LswEia','get','UNIVER_UNKNOWN','_collabSessionService','http://www.w3.org/2000/svg','toString','registerComponent','trim','OFFLINE','touchDependencies','params','children','178819cPyRLB','useDependency','_commandDisposable','tryStartPresenting','You\x27re\x20not\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','InsertSheetMutation','onStarting','Disposable','FOLLOWING','stringify','fill','CollaborationEvent','UniverInstanceType','button','LiveShareCoordinator','toDisposable','_stopFollowing','Stop\x20following','getTypeOfUnitAdded$','currentColor','_unitID','_uiPartsService','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','send','_configService','jsxs','_status$','pipe','getConfig','NEW_CHANGESETS','throttleTime','values','setConfig','merge','Start\x20following','pluginName','SAME_OPERATION_SHARE_INTERVAL','map','presenter','disposeWithMe','displayName','stopPresenting','getCurrentTypeOfUnit$','useEffect','xlink:href','LiveShareController','IUIPartsService','operations','_sharedOperations','find','_handleTerminate','type','univer-mb-3\x20univer-w-full\x20univer-text-sm','1909117zGWrTU','createElement','2JLcmWP','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','_injector','mergeOverrideWithDependencies','default','stopFollowing','DesktopLiveShareController','_handleOffline','requireSession','_commandService','LiveShareStatus','shouldShareOperation','attrs','live-share.config','LiveShareService','_presenter','override','790boKrvt','current','348ObgQiQ','live-share-icon','getMemberID','univerjs-icon\x20univerjs-icon-','_reporters','UniverLiveSharePlugin','sessionStatus$','_liveShareService','univer-size-4','add','defIds','Inject','startFollowing','190pbwUkp','SessionStatus','703088HNxmdA','Button','defineProperty','delete','replace','getUnitId','takeUntil','_entities','text','_beIdle','idSuffix','asObservable','mask','defs','unitId','LIVESHARE_REQUEST_HOST','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','following','LIVESHARE_TERMINATE','length','LIVESHARE_OPERATION','url(#$1','getTypeOfUnitDisposed$','unsubscribe','_init','You\x27re\x20following\x20the\x20presenter','connectInjector','ICommandService','mutations','subscribe','getValue','data','8526UbhXJS','set','dispose','_startPresenting','SetWorksheetActiveOperation','not-following','Present\x20this\x20document','BuiltInUIPart','4vWBfoc','clear','next','jsx','_config','_handleOnline','complete','symbol'];_0x404a=function(){return _0x3c68b6;};return _0x404a();}function J(){const _0x2c93af=_0x1d9ea9;return l[_0x2c93af(0x201)](l[_0x2c93af(0x136)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x1d9ea9(0x162)],z=(_0x1f083b,_0x3d80a1,_0x31dedb,_0x504a83)=>{const _0x85d71=_0x1d9ea9;for(var _0x58a49b=_0x504a83>0x1?void 0x0:_0x504a83?K(_0x3d80a1,_0x31dedb):_0x3d80a1,_0x295c55=_0x1f083b[_0x85d71(0x1e9)]-0x1,_0x510b46;_0x295c55>=0x0;_0x295c55--)(_0x510b46=_0x1f083b[_0x295c55])&&(_0x58a49b=_0x510b46(_0x58a49b)||_0x58a49b);return _0x58a49b;},L=(_0x214abf,_0x508cd0)=>(_0x2d7008,_0x9141af)=>_0x508cd0(_0x2d7008,_0x9141af,_0x214abf);exports[_0x1d9ea9(0x1ba)]=class extends o['Disposable']{constructor(_0xb6d067,_0x23bb5d){const _0x598d94=_0x1d9ea9;super(),this['_injector']=_0xb6d067,this[_0x598d94(0x191)]=_0x23bb5d,this[_0x598d94(0x137)]();}[_0x1d9ea9(0x137)](){const _0xbb3e0d=_0x1d9ea9;this[_0xbb3e0d(0x1a3)](this[_0xbb3e0d(0x191)][_0xbb3e0d(0x175)](p[_0xbb3e0d(0x1fd)][_0xbb3e0d(0x14b)],()=>p[_0xbb3e0d(0x1f0)]($,this[_0xbb3e0d(0x1b6)])));}},exports[_0x1d9ea9(0x1ba)]=z([L(0x0,o[_0x1d9ea9(0x1d2)](o[_0x1d9ea9(0x20a)])),L(0x1,p[_0x1d9ea9(0x1aa)])],exports[_0x1d9ea9(0x1ba)]);const Q=_0x1d9ea9(0x1c1),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2b8ae3,_0x1cc3ad,_0x13aa54,_0x5c0370)=>{const _0x199312=_0x1d9ea9;for(var _0x46f392=_0x5c0370>0x1?void 0x0:_0x5c0370?X(_0x1cc3ad,_0x13aa54):_0x1cc3ad,_0x433e44=_0x2b8ae3[_0x199312(0x1e9)]-0x1,_0x23f852;_0x433e44>=0x0;_0x433e44--)(_0x23f852=_0x2b8ae3[_0x433e44])&&(_0x46f392=_0x23f852(_0x46f392)||_0x46f392);return _0x46f392;},te=(_0x34feef,_0x2c82ed)=>(_0x462c1e,_0x312d7a)=>_0x2c82ed(_0x462c1e,_0x312d7a,_0x34feef);let m=class extends o[_0x1d9ea9(0x183)]{constructor(_0x2d4ba0){const _0x58999e=_0x1d9ea9;super(),this[_0x58999e(0x1ce)]=_0x2d4ba0,this['_init']();}['_init'](){const _0x4344ce=_0x1d9ea9;[D[_0x4344ce(0x14e)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x9e750e=>{const _0x199851=_0x4344ce;this[_0x199851(0x1a3)](this[_0x199851(0x1ce)]['registerSharedOperation'](_0x9e750e));});}};m=ee([te(0x0,o[_0x1d9ea9(0x1d2)](E))],m);var ie=Object[_0x1d9ea9(0x1d8)],se=Object[_0x1d9ea9(0x162)],ne=(_0x1a5cd1,_0x3cfddd,_0x159661)=>_0x3cfddd in _0x1a5cd1?ie(_0x1a5cd1,_0x3cfddd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x159661}):_0x1a5cd1[_0x3cfddd]=_0x159661,re=(_0x15e96b,_0x16281f,_0x393d5c,_0x132b62)=>{const _0xfc5eb7=_0x1d9ea9;for(var _0x4fcb04=_0x132b62>0x1?void 0x0:_0x132b62?se(_0x16281f,_0x393d5c):_0x16281f,_0x594109=_0x15e96b[_0xfc5eb7(0x1e9)]-0x1,_0x77738b;_0x594109>=0x0;_0x594109--)(_0x77738b=_0x15e96b[_0x594109])&&(_0x4fcb04=_0x77738b(_0x4fcb04)||_0x4fcb04);return _0x4fcb04;},N=(_0x361b1e,_0xbf056c)=>(_0x5437cb,_0x51d2b5)=>_0xbf056c(_0x5437cb,_0x51d2b5,_0x361b1e),A=(_0xb89ff3,_0x42a7f0,_0x869994)=>ne(_0xb89ff3,typeof _0x42a7f0!=_0x1d9ea9(0x205)?_0x42a7f0+'':_0x42a7f0,_0x869994);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x1d9ea9(0x1cc)]=class extends o['Plugin']{constructor(_0x3a4ff3=w,_0x5cd3bd,_0x484915){const _0x2da7d8=_0x1d9ea9;super(),this['_config']=_0x3a4ff3,this['_injector']=_0x5cd3bd,this[_0x2da7d8(0x194)]=_0x484915;const {..._0x59be56}=o[_0x2da7d8(0x19d)]({},w,this[_0x2da7d8(0x202)]);this[_0x2da7d8(0x194)][_0x2da7d8(0x19c)](Q,_0x59be56);}[_0x1d9ea9(0x182)](){const _0x386494=_0x1d9ea9;o[_0x386494(0x167)](this['_injector'],o[_0x386494(0x1b7)]([[E],[exports['LiveShareController']],[m],[exports[_0x386494(0x1ba)]]],this[_0x386494(0x202)][_0x386494(0x1c4)])),o[_0x386494(0x178)](this[_0x386494(0x1b6)],[[m]]);}[_0x1d9ea9(0x134)](){const _0x380483=_0x1d9ea9;o['touchDependencies'](this[_0x380483(0x1b6)],[[exports[_0x380483(0x1ba)]]]);}},A(exports[_0x1d9ea9(0x1cc)],_0x1d9ea9(0x1af),o[_0x1d9ea9(0x188)][_0x1d9ea9(0x171)]),A(exports[_0x1d9ea9(0x1cc)],_0x1d9ea9(0x19f),oe),exports[_0x1d9ea9(0x1cc)]=re([o[_0x1d9ea9(0x13d)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x1d9ea9(0x1d2)](o['Injector'])),N(0x2,o[_0x1d9ea9(0x15e)])],exports[_0x1d9ea9(0x1cc)]),exports[_0x1d9ea9(0x166)]=$,exports[_0x1d9ea9(0x1c2)]=E,exports[_0x1d9ea9(0x1be)]=u;
1
+ 'use strict';const _0x279575=_0x5805;(function(_0x2d2ac5,_0x42244f){const _0x243989=_0x5805,_0x34ee6d=_0x2d2ac5();while(!![]){try{const _0x5d101b=-parseInt(_0x243989(0x134))/0x1+parseInt(_0x243989(0x14b))/0x2+-parseInt(_0x243989(0x13a))/0x3+parseInt(_0x243989(0x17a))/0x4+-parseInt(_0x243989(0x1a2))/0x5+-parseInt(_0x243989(0x1be))/0x6*(parseInt(_0x243989(0x15b))/0x7)+parseInt(_0x243989(0x199))/0x8;if(_0x5d101b===_0x42244f)break;else _0x34ee6d['push'](_0x34ee6d['shift']());}catch(_0x71724a){_0x34ee6d['push'](_0x34ee6d['shift']());}}}(_0x9fc9,0x5c40e));var T=Object['defineProperty'],U=(_0x4cac1f,_0x2b29aa,_0x540526)=>_0x2b29aa in _0x4cac1f?T(_0x4cac1f,_0x2b29aa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x540526}):_0x4cac1f[_0x2b29aa]=_0x540526,_=(_0x4b925e,_0x11f06c,_0x15eb19)=>U(_0x4b925e,typeof _0x11f06c!=_0x279575(0x1cc)?_0x11f06c+'':_0x11f06c,_0x15eb19);Object[_0x279575(0x173)](exports,Symbol[_0x279575(0x17e)],{'value':_0x279575(0x159)});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:_0x3fd5fd,..._0x2aee01}){const _0x251cb3=_0x279575,{icon:_0x261d8c,id:_0x283fe0,className:_0x27d8e9,extend:_0x45b867,..._0x3943c9}=_0x2aee01,_0x2396f6=(_0x251cb3(0x144)+_0x283fe0+'\x20'+(_0x27d8e9||''))[_0x251cb3(0x19f)](),_0x3b883e=v[_0x251cb3(0x1da)]('_'+H());return j(_0x261d8c,''+_0x283fe0,{'defIds':_0x261d8c['defIds'],'idSuffix':_0x3b883e['current']},{'ref':_0x3fd5fd,'className':_0x2396f6,..._0x3943c9},_0x45b867);}function j(_0x1e8a55,_0x557e33,_0xeb4b6f,_0x2779a6,_0x160bfd){const _0x80496e=_0x279575;return v[_0x80496e(0x1a7)](_0x1e8a55['tag'],{'key':_0x557e33,...y(_0x1e8a55,_0xeb4b6f,_0x160bfd),..._0x2779a6},(F(_0x1e8a55,_0xeb4b6f)[_0x80496e(0x19a)]||[])[_0x80496e(0x119)]((_0x32cd48,_0xe9cd1a)=>j(_0x32cd48,_0x557e33+'-'+_0x1e8a55[_0x80496e(0x186)]+'-'+_0xe9cd1a,_0xeb4b6f,void 0x0,_0x160bfd)));}function y(_0x11acb0,_0x3b10ea,_0x5d811f){const _0x5e4996=_0x279575,_0x5d50cc={..._0x11acb0['attrs']};_0x5d811f!=null&&_0x5d811f['colorChannel1']&&_0x5d50cc[_0x5e4996(0x110)]===_0x5e4996(0x12e)&&(_0x5d50cc[_0x5e4996(0x110)]=_0x5d811f[_0x5e4996(0x12e)]),_0x11acb0['tag']==='mask'&&_0x5d50cc['id']&&(_0x5d50cc['id']=_0x5d50cc['id']+_0x3b10ea[_0x5e4996(0x112)]),Object[_0x5e4996(0x150)](_0x5d50cc)[_0x5e4996(0x147)](([_0x5b89f9,_0x499de2])=>{const _0x2c86a7=_0x5e4996;_0x5b89f9===_0x2c86a7(0x1d6)&&typeof _0x499de2=='string'&&(_0x5d50cc[_0x5b89f9]=_0x499de2[_0x2c86a7(0x17b)](/url\(#(.*)\)/,_0x2c86a7(0x176)+_0x3b10ea[_0x2c86a7(0x112)]+')'));});const {defIds:_0x22fd32}=_0x3b10ea;return!_0x22fd32||_0x22fd32[_0x5e4996(0x16b)]===0x0||(_0x11acb0[_0x5e4996(0x186)]===_0x5e4996(0x10a)&&_0x5d50cc[_0x5e4996(0x190)]&&(_0x5d50cc['xlink:href']=_0x5d50cc[_0x5e4996(0x190)]+_0x3b10ea['idSuffix']),Object['entries'](_0x5d50cc)[_0x5e4996(0x147)](([_0x426255,_0x2216d4])=>{const _0x28b22c=_0x5e4996;typeof _0x2216d4==_0x28b22c(0x14d)&&(_0x5d50cc[_0x426255]=_0x2216d4[_0x28b22c(0x17b)](/url\(#(.*)\)/,'url(#$1'+_0x3b10ea[_0x28b22c(0x112)]+')'));})),_0x5d50cc;}function F(_0x59bd7d,_0x3cdad7){const _0xb9715f=_0x279575;var _0x14ee3d;const {defIds:_0x59cb95}=_0x3cdad7;return!_0x59cb95||_0x59cb95['length']===0x0?_0x59bd7d:_0x59bd7d[_0xb9715f(0x186)]===_0xb9715f(0x158)&&((_0x14ee3d=_0x59bd7d[_0xb9715f(0x19a)])!=null&&_0x14ee3d[_0xb9715f(0x16b)])?{..._0x59bd7d,'children':_0x59bd7d['children'][_0xb9715f(0x119)](_0x397dfc=>typeof _0x397dfc['attrs']['id']=='string'&&_0x59cb95&&_0x59cb95['includes'](_0x397dfc[_0xb9715f(0x163)]['id'])?{..._0x397dfc,'attrs':{..._0x397dfc[_0xb9715f(0x163)],'id':_0x397dfc[_0xb9715f(0x163)]['id']+_0x3cdad7[_0xb9715f(0x112)]}}:_0x397dfc)}:_0x59bd7d;}function H(){const _0x3d160b=_0x279575;return Math['random']()['toString'](0x24)[_0x3d160b(0x1b4)](0x2,0x8);}x[_0x279575(0x180)]=_0x279575(0x1a4);const V={'tag':'svg','attrs':{'xmlns':_0x279575(0x17c),'fill':_0x279575(0x1b2),'viewBox':_0x279575(0x16f),'width':'1em','height':_0x279575(0x1c0)},'children':[{'tag':_0x279575(0x185),'attrs':{'fill':_0x279575(0x15a),'d':_0x279575(0x139)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x279575(0x107),'fillRule':_0x279575(0x143),'clipRule':_0x279575(0x143)}}]},R=v[_0x279575(0x12d)](function(_0x57c21f,_0xaf83c8){const _0x5426bd=_0x279575;return v[_0x5426bd(0x1a7)](x,Object[_0x5426bd(0x156)]({},_0x57c21f,{'id':'live-share-icon','ref':_0xaf83c8,'icon':V}));});R[_0x279575(0x180)]='LiveShareIcon';class E extends o[_0x279575(0x162)]{constructor(){const _0x181305=_0x279575;super(...arguments),_(this,_0x181305(0x169),new Set()),_(this,_0x181305(0x1af),new Set());}[_0x279575(0x11d)](_0x51cb29){const _0xc9279b=_0x279575;return this['_sharedOperations']['add'](_0x51cb29),o[_0xc9279b(0x13e)](()=>this[_0xc9279b(0x169)][_0xc9279b(0x128)](_0x51cb29));}[_0x279575(0x1cb)](_0x5606b6){const _0x2119bf=_0x279575;return this[_0x2119bf(0x1af)]['add'](_0x5606b6),o[_0x2119bf(0x13e)](()=>this[_0x2119bf(0x1af)][_0x2119bf(0x128)](_0x5606b6));}[_0x279575(0x102)](_0x28556f){return this['_sharedOperations']['has'](_0x28556f);}[_0x279575(0x133)](_0x17cac3){const _0x5ef23e=_0x279575;return Array[_0x5ef23e(0x170)](this[_0x5ef23e(0x1af)])[_0x5ef23e(0x119)](_0x58758e=>_0x58758e(_0x17cac3));}}var M=Object[_0x279575(0x121)],P=(_0xec1c11,_0x356faf,_0x10b777,_0x4ae7e3)=>{const _0x147eed=_0x279575;for(var _0x141756=_0x4ae7e3>0x1?void 0x0:_0x4ae7e3?M(_0x356faf,_0x10b777):_0x356faf,_0x5aba2a=_0xec1c11[_0x147eed(0x16b)]-0x1,_0x22eefb;_0x5aba2a>=0x0;_0x5aba2a--)(_0x22eefb=_0xec1c11[_0x5aba2a])&&(_0x141756=_0x22eefb(_0x141756)||_0x141756);return _0x141756;},S=(_0xde6461,_0x60e8c1)=>(_0x21fe82,_0x38c6fe)=>_0x60e8c1(_0x21fe82,_0x38c6fe,_0xde6461);exports[_0x279575(0x129)]=class extends o['RxDisposable']{constructor(_0x336830,_0xf05112,_0x31e11d){const _0x1fe056=_0x279575;super(),_(this,_0x1fe056(0x16d),new Map()),(this[_0x1fe056(0x19b)]=_0x336830,this['_injector']=_0xf05112,this[_0x1fe056(0x151)]=_0x31e11d,this[_0x1fe056(0x1c6)]());}async[_0x279575(0x140)](_0x22e4b9){const _0x3d0fc2=_0x279575;return this[_0x3d0fc2(0x16d)][_0x3d0fc2(0x15f)](_0x22e4b9)||await this[_0x3d0fc2(0x184)](_0x22e4b9),this[_0x3d0fc2(0x16d)][_0x3d0fc2(0x11a)](_0x22e4b9);}[_0x279575(0x1ab)](_0x47abc0){const _0x2520f4=_0x279575;var _0x44a9ec;return(_0x44a9ec=this[_0x2520f4(0x16d)]['get'](_0x47abc0))!=null?_0x44a9ec:null;}['_init'](){const _0x1266b4=_0x279575;this['_univerInstanceService'][_0x1266b4(0x1a0)](o[_0x1266b4(0x1b6)][_0x1266b4(0x104)])[_0x1266b4(0x1bf)](I[_0x1266b4(0x1a6)](this[_0x1266b4(0x1c7)]))['subscribe'](async _0x1fefe9=>{const _0x166d2e=_0x1266b4,_0x56e14d=_0x1fefe9[_0x166d2e(0x153)]();this[_0x166d2e(0x16d)][_0x166d2e(0x15f)](_0x56e14d)||this[_0x166d2e(0x184)](_0x56e14d);}),this[_0x1266b4(0x19b)][_0x1266b4(0x148)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1266b4(0x1bf)](I['takeUntil'](this[_0x1266b4(0x1c7)]))[_0x1266b4(0x1ce)](_0x4b7b19=>{const _0x124244=_0x1266b4,_0x206b4b=_0x4b7b19[_0x124244(0x153)](),_0xfa7a53=this[_0x124244(0x16d)][_0x124244(0x11a)](_0x206b4b);_0xfa7a53==null||_0xfa7a53['dispose']();});}async[_0x279575(0x184)](_0x172320){const _0x1ee687=_0x279575,_0x207eac=await this['_collabSessionService']['requireSession'](_0x172320),_0x378bbb=this[_0x1ee687(0x197)][_0x1ee687(0x168)](exports[_0x1ee687(0x1d7)],_0x172320,_0x207eac);return _0x378bbb[_0x1ee687(0x181)](),this[_0x1ee687(0x16d)][_0x1ee687(0x116)](_0x172320,_0x378bbb),_0x378bbb;}},exports[_0x279575(0x129)]=P([S(0x0,o[_0x279575(0x193)]),S(0x1,o[_0x279575(0x1ba)](o['Injector'])),S(0x2,o['Inject'](b[_0x279575(0x105)]))],exports[_0x279575(0x129)]);var u=(_0x5c3875=>(_0x5c3875[_0x279575(0x14e)]=_0x279575(0x12f),_0x5c3875[_0x279575(0x1bd)]=_0x279575(0x1c1),_0x5c3875['FOLLOWING']=_0x279575(0x11e),_0x5c3875[_0x279575(0x174)]=_0x279575(0x16a),_0x5c3875[_0x279575(0x1d8)]=_0x279575(0x154),_0x5c3875))(u||{});const k=_0x279575(0x160),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x279575(0x1d1)]{constructor(_0x15ae33,_0x36c539,_0xb03927,_0x5c57c4,_0x59fe94){const _0x53410e=_0x279575;super(),_(this,_0x53410e(0x108),new O['BehaviorSubject'](_0x53410e(0x1c1))),_(this,_0x53410e(0x18f),this[_0x53410e(0x108)][_0x53410e(0x114)]()),_(this,'_init',!0x1),_(this,_0x53410e(0x122),null),_(this,'_presenter',null),(this[_0x53410e(0x191)]=_0x15ae33,this[_0x53410e(0x1ca)]=_0x36c539,this[_0x53410e(0x1cd)]=_0xb03927,this[_0x53410e(0x1b5)]=_0x5c57c4,this[_0x53410e(0x142)]=_0x59fe94);}get[_0x279575(0x1c5)](){const _0xedbe1e=_0x279575;return this[_0xedbe1e(0x108)][_0xedbe1e(0x15e)]();}[_0x279575(0x146)](){const _0x5ca915=_0x279575;var _0x41cfbb;(_0x41cfbb=this[_0x5ca915(0x122)])==null||_0x41cfbb[_0x5ca915(0x146)](),this[_0x5ca915(0x108)][_0x5ca915(0x118)](_0x5ca915(0x1c1)),this['_status$'][_0x5ca915(0x1b7)]();}[_0x279575(0x178)](){return this['_status'];}['init'](){const _0x5d6b8c=_0x279575;this['_init']||(this[_0x5d6b8c(0x1c6)]=!0x0,this[_0x5d6b8c(0x1ca)][_0x5d6b8c(0x1ac)][_0x5d6b8c(0x1bf)](I[_0x5d6b8c(0x1a6)](this[_0x5d6b8c(0x1c7)]))[_0x5d6b8c(0x1ce)](_0xfbe86c=>{const _0x445631=_0x5d6b8c;switch(_0xfbe86c){case b['SessionStatus']['OFFLINE']:this[_0x445631(0x175)]();break;case b[_0x445631(0x1c8)][_0x445631(0x10d)]:this['_handleOnline']();break;}}),this[_0x5d6b8c(0x1ca)][_0x5d6b8c(0x145)][_0x5d6b8c(0x1bf)](I[_0x5d6b8c(0x1a6)](this['dispose$']))[_0x5d6b8c(0x1ce)](_0x500b07=>{const _0x459b14=_0x5d6b8c,{eventID:_0x1d1e74}=_0x500b07;switch(_0x1d1e74){case d[_0x459b14(0x19e)][_0x459b14(0x126)]:this[_0x459b14(0x1d9)](_0x500b07);break;case d[_0x459b14(0x19e)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x500b07);break;case d[_0x459b14(0x19e)][_0x459b14(0x165)]:this[_0x459b14(0x10f)]();break;case d[_0x459b14(0x19e)][_0x459b14(0x18c)]:this[_0x459b14(0x155)](_0x500b07);break;}}));}[_0x279575(0x132)](){const _0x2bf693=_0x279575;this[_0x2bf693(0x1ca)][_0x2bf693(0x1cf)]({'eventID':d[_0x2bf693(0x19e)][_0x2bf693(0x17f)],'data':{'unitID':this[_0x2bf693(0x191)],'userID':this[_0x2bf693(0x1ca)][_0x2bf693(0x113)]()}},this[_0x2bf693(0x191)]);}['stopPresenting'](){const _0x512160=_0x279575;this['_status']===_0x512160(0x154)&&(this[_0x512160(0x108)][_0x512160(0x118)](_0x512160(0x1c1)),this['_collabSession']['send']({'eventID':d[_0x512160(0x19e)][_0x512160(0x165)],'data':{'unitID':this[_0x512160(0x191)]}},this[_0x512160(0x191)]));}['startFollowing'](){const _0x131bb0=_0x279575;this[_0x131bb0(0x1c5)]===_0x131bb0(0x16a)&&(this['_status$'][_0x131bb0(0x118)]('following'),this[_0x131bb0(0x1d3)]());}['stopFollowing'](){const _0x1cc581=_0x279575;this['_status']===_0x1cc581(0x11e)&&this[_0x1cc581(0x172)]();}[_0x279575(0x1d9)](_0xde8d3e){const _0x733d0a=_0x279575,{presenter:_0x40cbe1}=_0xde8d3e[_0x733d0a(0x16c)],_0x33daef=this[_0x733d0a(0x1ca)][_0x733d0a(0x113)]();this[_0x733d0a(0x1a8)]=_0x40cbe1,_0x40cbe1===_0x33daef?(this[_0x733d0a(0x172)](),this[_0x733d0a(0x18b)]()):this[_0x733d0a(0x1c5)]!=='not-following'&&(this[_0x733d0a(0x13c)](),this['_startFollowing']());}[_0x279575(0x1d5)](){const _0x4e8d51=_0x279575,_0x356f62={'eventID':d[_0x4e8d51(0x19e)][_0x4e8d51(0x19d)]};this[_0x4e8d51(0x1ca)]['send'](_0x356f62,this[_0x4e8d51(0x191)]);}['_handleTerminate'](){const _0x537ab1=_0x279575;this[_0x537ab1(0x1a8)]=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x279575(0x155)](_0x5daa5a){const _0x3305d2=_0x279575;if(this[_0x3305d2(0x1c5)]===_0x3305d2(0x11e)&&this[_0x3305d2(0x1a8)]===_0x5daa5a[_0x3305d2(0x16c)][_0x3305d2(0x18e)]){const _0x550c20=d['parseProtocolChangeset'](_0x5daa5a[_0x3305d2(0x16c)])[_0x3305d2(0x1b9)][_0x3305d2(0x166)]()[_0x3305d2(0x131)](_0x34d520=>_0x34d520['id']===C[_0x3305d2(0x149)]['id']);if(_0x550c20){const _0x31642b=_0x550c20['params'][_0x3305d2(0x14a)],_0xdabbd7=_0x550c20[_0x3305d2(0x11b)][_0x3305d2(0x161)]['id'];setTimeout(()=>{const _0x56f5b3=_0x3305d2;this[_0x56f5b3(0x142)][_0x56f5b3(0x1d4)](C[_0x56f5b3(0x14c)]['id'],{'unitId':_0x31642b,'subUnitId':_0xdabbd7},{'fromCollab':!0x0});});}}}[_0x279575(0x18b)](){const _0x498a95=_0x279575;this[_0x498a95(0x108)][_0x498a95(0x118)]('presenting');const _0x34b53f=new Map(),_0x5ed7a3=this[_0x498a95(0x122)]=new o['DisposableCollection']();_0x5ed7a3[_0x498a95(0x167)](o[_0x498a95(0x13e)](()=>{const _0x5836dc=_0x498a95;_0x34b53f[_0x5836dc(0x147)](_0x3e900e=>_0x3e900e[_0x5836dc(0x1b7)]()),_0x34b53f[_0x5836dc(0x1a5)]();})),_0x5ed7a3[_0x498a95(0x167)](this[_0x498a95(0x142)][_0x498a95(0x1b1)](_0x444f73=>{const _0x42fa92=_0x498a95;var _0xa7067a;if(_0x444f73[_0x42fa92(0x192)]!==o[_0x42fa92(0x13d)][_0x42fa92(0x15c)]||!this[_0x42fa92(0x1b5)][_0x42fa92(0x102)](_0x444f73['id']))return;const {id:_0x536d63}=_0x444f73;let _0x5f45bb;_0x34b53f[_0x42fa92(0x15f)](_0x536d63)?_0x5f45bb=_0x34b53f['get'](_0x536d63):(_0x5f45bb=new O[(_0x42fa92(0x120))](),_0x34b53f[_0x42fa92(0x116)](_0x536d63,_0x5f45bb),_0x5f45bb[_0x42fa92(0x1bf)](I['throttleTime']((_0xa7067a=this[_0x42fa92(0x1cd)][_0x42fa92(0x1a9)](k))!=null?_0xa7067a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x42fa92(0x1ce)](_0x3ebf02=>{const _0x2e3f02=_0x42fa92;this[_0x2e3f02(0x1ca)][_0x2e3f02(0x1cf)]({'eventID':d[_0x2e3f02(0x19e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2e3f02(0x191)],'operations':{[_0x3ebf02['id']]:{'id':_0x3ebf02['id'],'params':JSON[_0x2e3f02(0x11f)](_0x3ebf02[_0x2e3f02(0x11b)])}}}},this[_0x2e3f02(0x191)]);})),_0x5f45bb[_0x42fa92(0x118)](_0x444f73);})),this[_0x498a95(0x1b5)][_0x498a95(0x133)](this['_unitID'])[_0x498a95(0x147)](_0x5b29db=>this[_0x498a95(0x1ca)][_0x498a95(0x1cf)]({'eventID':d[_0x498a95(0x19e)][_0x498a95(0x16e)],'data':{'unitID':this[_0x498a95(0x191)],'operations':{[_0x5b29db['id']]:{'id':_0x5b29db['id'],'params':JSON[_0x498a95(0x11f)](_0x5b29db[_0x498a95(0x11b)])}}}},this['_unitID']));}[_0x279575(0x13c)](){const _0x3947fc=_0x279575;var _0x21ba1b;this[_0x3947fc(0x108)][_0x3947fc(0x118)](_0x3947fc(0x1c1)),(_0x21ba1b=this[_0x3947fc(0x122)])==null||_0x21ba1b['dispose'](),this[_0x3947fc(0x122)]=null;}[_0x279575(0x1d3)](){const _0x2ceb9f=_0x279575;var _0x5e214c;(_0x5e214c=this[_0x2ceb9f(0x122)])==null||_0x5e214c[_0x2ceb9f(0x146)](),this[_0x2ceb9f(0x108)]['next']('following');}[_0x279575(0x157)](){const _0x198e70=_0x279575;var _0x5e0b8b;this['_status$'][_0x198e70(0x118)](_0x198e70(0x1c1)),(_0x5e0b8b=this['_commandDisposable'])==null||_0x5e0b8b['dispose'](),this[_0x198e70(0x122)]=null;}['_stopFollowing'](){const _0x20c26b=_0x279575;var _0x5d8d99;this[_0x20c26b(0x108)][_0x20c26b(0x118)](_0x20c26b(0x16a)),(_0x5d8d99=this[_0x20c26b(0x122)])==null||_0x5d8d99[_0x20c26b(0x146)]();}['_handleOperation'](_0x495da7){const _0x2ef8e9=_0x279575;if([_0x2ef8e9(0x154),_0x2ef8e9(0x16a),'offline']['includes'](this['_status'])||!_0x495da7[_0x2ef8e9(0x16c)][_0x2ef8e9(0x12c)]||_0x495da7[_0x2ef8e9(0x16c)][_0x2ef8e9(0x12c)]===this[_0x2ef8e9(0x1ca)][_0x2ef8e9(0x113)]())return;this[_0x2ef8e9(0x1c5)]==='idle'&&this['_startFollowing']();const _0x3388f4=_0x495da7[_0x2ef8e9(0x16c)][_0x2ef8e9(0x10b)];Object[_0x2ef8e9(0x141)](_0x3388f4)[_0x2ef8e9(0x147)](_0x5f2d1c=>{const _0x2885b0=_0x2ef8e9;this['_commandService']['executeCommand'](_0x5f2d1c['id'],_0x5f2d1c[_0x2885b0(0x11b)]?JSON['parse'](_0x5f2d1c['params']):null,{'fromCollab':!0x0});});}[_0x279575(0x175)](){const _0x2f69b2=_0x279575;var _0x1681a4;this[_0x2f69b2(0x108)][_0x2f69b2(0x118)](_0x2f69b2(0x12f)),(_0x1681a4=this[_0x2f69b2(0x122)])==null||_0x1681a4[_0x2f69b2(0x146)]();}[_0x279575(0x196)](){const _0x427727=_0x279575;this[_0x427727(0x108)][_0x427727(0x118)](_0x427727(0x1c1)),this[_0x427727(0x1d5)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x279575(0x137)]),S(0x3,o[_0x279575(0x1ba)](E)),S(0x4,o[_0x279575(0x109)])],exports[_0x279575(0x1d7)]);function $(){const _0x38d478=_0x279575,_0x16a2b9=p[_0x38d478(0x1d0)](exports[_0x38d478(0x129)]),_0x217ddb=p[_0x38d478(0x1d0)](o['IUniverInstanceService']),_0x593cfb=p['useObservable'](()=>_0x217ddb[_0x38d478(0x1bc)](o[_0x38d478(0x1b6)][_0x38d478(0x104)]),void 0x0,!0x1,[]),[_0x5cba09,_0x576e96]=v['useState'](null),[_0x537aaf,_0x148612]=v[_0x38d478(0x123)](u[_0x38d478(0x1bd)]),_0x4a22c9=v['useRef'](null);return v[_0x38d478(0x1ae)](()=>(_0x593cfb&&_0x16a2b9[_0x38d478(0x140)](_0x593cfb[_0x38d478(0x153)]())[_0x38d478(0x14f)](_0x3403a9=>{const _0x4e9277=_0x38d478;_0x576e96(_0x3403a9),_0x4a22c9['current']=_0x3403a9[_0x4e9277(0x18f)][_0x4e9277(0x1ce)](_0x5533ad=>{_0x148612(_0x5533ad);});}),()=>{const _0x1df9ad=_0x38d478;var _0x402cf1;(_0x402cf1=_0x4a22c9[_0x1df9ad(0x12b)])==null||_0x402cf1[_0x1df9ad(0x19c)](),_0x4a22c9[_0x1df9ad(0x12b)]=null;}),[_0x593cfb,_0x16a2b9]),_0x5cba09?l[_0x38d478(0x10e)](f[_0x38d478(0x198)],{'align':_0x38d478(0x138),'disabled':_0x537aaf===u[_0x38d478(0x14e)],'className':_0x38d478(0x1ad),'overlay':l[_0x38d478(0x10e)](W,{'status':_0x537aaf,'coordinator':_0x5cba09}),'children':l[_0x38d478(0x10e)](_0x38d478(0x125),{'className':f[_0x38d478(0x135)](_0x38d478(0x177),{'univer-cursor-not-allowed':_0x537aaf===u[_0x38d478(0x14e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x537aaf!==u[_0x38d478(0x14e)]}),'type':_0x38d478(0x125),'children':l[_0x38d478(0x10e)](R,{'className':_0x38d478(0x117)})})}):null;}function W(_0x518634){const _0x3dc819=_0x279575,{status:_0x331077,coordinator:_0x41e942}=_0x518634;switch(_0x331077){case u[_0x3dc819(0x1bd)]:return l['jsx'](G,{'coordinator':_0x41e942});case u['FOLLOWING']:return l[_0x3dc819(0x10e)](B,{'coordinator':_0x41e942});case u[_0x3dc819(0x174)]:return l['jsx'](Y,{'coordinator':_0x41e942});case u['OFFLINE']:return l[_0x3dc819(0x10e)](J,{});case u['PRESENTING']:return l[_0x3dc819(0x10e)](Z,{'coordinator':_0x41e942});default:return null;}}function G(_0x22537d){const _0x46ecc5=_0x279575,{coordinator:_0x2c373b}=_0x22537d;return l[_0x46ecc5(0x1d2)](l['Fragment'],{'children':[l[_0x46ecc5(0x10e)](_0x46ecc5(0x188),{'className':_0x46ecc5(0x179),'children':'Present\x20this\x20document'}),l[_0x46ecc5(0x10e)](f[_0x46ecc5(0x171)],{'onClick':()=>_0x2c373b[_0x46ecc5(0x132)](),'children':'Start'})]});}function B(_0x2b71ce){const _0x18cd74=_0x279575,{coordinator:_0x305d23}=_0x2b71ce;return l[_0x18cd74(0x1d2)](l[_0x18cd74(0x12a)],{'children':[l['jsx'](_0x18cd74(0x188),{'className':_0x18cd74(0x179),'children':_0x18cd74(0x17d)}),l[_0x18cd74(0x10e)](f['Button'],{'onClick':()=>_0x305d23[_0x18cd74(0x1c2)](),'children':'Stop\x20following'})]});}function Y(_0x96bebc){const _0x583971=_0x279575,{coordinator:_0x1d08ba}=_0x96bebc;return l[_0x583971(0x1d2)](l[_0x583971(0x12a)],{'children':[l['jsx']('div',{'className':_0x583971(0x179),'children':_0x583971(0x103)}),l[_0x583971(0x10e)](f[_0x583971(0x171)],{'variant':_0x583971(0x189),'onClick':()=>_0x1d08ba[_0x583971(0x18d)](),'children':_0x583971(0x187)})]});}function Z(_0x515b0b){const _0xc66f8e=_0x279575,{coordinator:_0x9f0ce4}=_0x515b0b;return l[_0xc66f8e(0x1d2)](l[_0xc66f8e(0x12a)],{'children':[l[_0xc66f8e(0x10e)](_0xc66f8e(0x188),{'className':_0xc66f8e(0x179),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0xc66f8e(0x10e)](f['Button'],{'variant':_0xc66f8e(0x182),'onClick':()=>_0x9f0ce4['stopPresenting'](),'children':_0xc66f8e(0x13b)})]});}function _0x9fc9(){const _0x508d67=['UNIVER_SHEET','CollaborationSessionService','connectInjector','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','_status$','ICommandService','use','operations','onStarting','ONLINE','jsx','_handleTerminate','fill','onRendered','idSuffix','getMemberID','asObservable','SetScrollOperation','set','univer-size-4','next','map','get','params','setConfig','registerSharedOperation','following','stringify','Subject','getOwnPropertyDescriptor','_commandDisposable','useState','UniverCollaborationClientPlugin','button','LIVESHARE_NEW_HOST','You\x27are\x20offline.','delete','LiveShareController','Fragment','current','presenter','forwardRef','colorChannel1','offline','Injector','find','tryStartPresenting','getInitialStates','185314gojuLN','clsx','SetZoomRatioOperation','IConfigService','end','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','709815nxrAEl','Stop\x20presenting','_stopPresenting','CommandType','toDisposable','live-share.config','getLiveShareCoordinator','values','_commandService','evenodd','univerjs-icon\x20univerjs-icon-','event$','dispose','forEach','getTypeOfUnitDisposed$','InsertSheetMutation','unitId','1488730OLLfgk','SetWorksheetActiveOperation','string','OFFLINE','then','entries','_collabSessionService','DependentOn','getUnitId','presenting','_handleNewChangeSets','assign','_beIdle','defs','Module','currentColor','469vBNZPT','OPERATION','touchDependencies','getValue','has','SAME_OPERATION_SHARE_INTERVAL','sheet','Disposable','attrs','_uiPartsService','LIVESHARE_TERMINATE','reverse','add','createInstance','_sharedOperations','not-following','length','data','_entities','LIVESHARE_OPERATION','0\x200\x2017\x2017','from','Button','_stopFollowing','defineProperty','NOT_FOLLOWING','_handleOffline','url(#$1','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getStatus','univer-mb-3\x20univer-w-full\x20univer-text-sm','486340aWLtrx','replace','http://www.w3.org/2000/svg','You\x27re\x20following\x20the\x20presenter','toStringTag','LIVESHARE_REQUEST_HOST','displayName','init','default','mergeOverrideWithDependencies','_startLiveShareCoordinator','path','tag','Start\x20following','div','text','LiveShareService','_startPresenting','NEW_CHANGESETS','startFollowing','memberID','status$','xlink:href','_unitID','type','IUniverInstanceService','BuiltInUIPart','merge','_handleOnline','_injector','Dropdown','6650488wyWAzP','children','_univerInstanceService','unsubscribe','LIVESHARE_FETCH_OPERATIONS','CollaborationEvent','trim','getTypeOfUnitAdded$','_config','2854905BuypZR','DesktopLiveShareController','UniverIcon','clear','takeUntil','createElement','_presenter','getConfig','_mountLiveShare','getLiveShareCoordinatorSync','sessionStatus$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','useEffect','_reporters','HEADER_MENU','onCommandExecuted','none','registerDependencies','substring','_liveShareService','UniverInstanceType','complete','Plugin','mutations','Inject','IUIPartsService','getCurrentTypeOfUnit$','IDLE','29238FosjOo','pipe','1em','idle','stopFollowing','disposeWithMe','UniverLiveSharePlugin','_status','_init','dispose$','SessionStatus','LiveShareStatus','_collabSession','registerInitialStateReporter','symbol','_configService','subscribe','send','useDependency','RxDisposable','jsxs','_startFollowing','executeCommand','_fetchOperations','mask','LiveShareCoordinator','PRESENTING','_handleNewHost','useRef','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter'];_0x9fc9=function(){return _0x508d67;};return _0x9fc9();}function J(){const _0x5f20ab=_0x279575;return l['jsx'](l[_0x5f20ab(0x12a)],{'children':_0x5f20ab(0x127)});}var K=Object[_0x279575(0x121)],z=(_0x3627c3,_0xea69db,_0x46d655,_0x137bf6)=>{const _0x110958=_0x279575;for(var _0x32dc0a=_0x137bf6>0x1?void 0x0:_0x137bf6?K(_0xea69db,_0x46d655):_0xea69db,_0x45a898=_0x3627c3[_0x110958(0x16b)]-0x1,_0x9f61a9;_0x45a898>=0x0;_0x45a898--)(_0x9f61a9=_0x3627c3[_0x45a898])&&(_0x32dc0a=_0x9f61a9(_0x32dc0a)||_0x32dc0a);return _0x32dc0a;},L=(_0x15a870,_0xbcdc5f)=>(_0x3b1ccf,_0x355951)=>_0xbcdc5f(_0x3b1ccf,_0x355951,_0x15a870);exports[_0x279575(0x1a3)]=class extends o[_0x279575(0x162)]{constructor(_0x4f5ab0,_0x368fef){const _0x4ccfc4=_0x279575;super(),this[_0x4ccfc4(0x197)]=_0x4f5ab0,this[_0x4ccfc4(0x164)]=_0x368fef,this[_0x4ccfc4(0x1aa)]();}['_mountLiveShare'](){const _0xa5dae5=_0x279575;this[_0xa5dae5(0x1c3)](this[_0xa5dae5(0x164)]['registerComponent'](p[_0xa5dae5(0x194)][_0xa5dae5(0x1b0)],()=>p[_0xa5dae5(0x106)]($,this[_0xa5dae5(0x197)])));}},exports[_0x279575(0x1a3)]=z([L(0x0,o[_0x279575(0x1ba)](o[_0x279575(0x130)])),L(0x1,p[_0x279575(0x1bb)])],exports[_0x279575(0x1a3)]);const Q=_0x279575(0x13f),w={};var X=Object[_0x279575(0x121)],ee=(_0x388213,_0x46a8d2,_0x39b7d2,_0x239548)=>{const _0x2f096f=_0x279575;for(var _0x266e49=_0x239548>0x1?void 0x0:_0x239548?X(_0x46a8d2,_0x39b7d2):_0x46a8d2,_0x4259de=_0x388213[_0x2f096f(0x16b)]-0x1,_0x5305ff;_0x4259de>=0x0;_0x4259de--)(_0x5305ff=_0x388213[_0x4259de])&&(_0x266e49=_0x5305ff(_0x266e49)||_0x266e49);return _0x266e49;},te=(_0x5ca62b,_0xb10b9a)=>(_0x2063e4,_0x3b2ef0)=>_0xb10b9a(_0x2063e4,_0x3b2ef0,_0x5ca62b);let m=class extends o[_0x279575(0x162)]{constructor(_0x481f6e){super(),this['_liveShareService']=_0x481f6e,this['_init']();}[_0x279575(0x1c6)](){const _0x3e5d32=_0x279575;[D[_0x3e5d32(0x136)]['id'],D[_0x3e5d32(0x115)]['id'],C[_0x3e5d32(0x14c)]['id']][_0x3e5d32(0x147)](_0x35f2c7=>{const _0xb9121=_0x3e5d32;this[_0xb9121(0x1c3)](this[_0xb9121(0x1b5)][_0xb9121(0x11d)](_0x35f2c7));});}};m=ee([te(0x0,o[_0x279575(0x1ba)](E))],m);var ie=Object[_0x279575(0x173)],se=Object[_0x279575(0x121)],ne=(_0x34cf49,_0x5789ff,_0xbd5a41)=>_0x5789ff in _0x34cf49?ie(_0x34cf49,_0x5789ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbd5a41}):_0x34cf49[_0x5789ff]=_0xbd5a41,re=(_0x469b7d,_0x191403,_0x3c802c,_0x1ec331)=>{for(var _0x205f13=_0x1ec331>0x1?void 0x0:_0x1ec331?se(_0x191403,_0x3c802c):_0x191403,_0x2e1bb0=_0x469b7d['length']-0x1,_0x52dfdc;_0x2e1bb0>=0x0;_0x2e1bb0--)(_0x52dfdc=_0x469b7d[_0x2e1bb0])&&(_0x205f13=_0x52dfdc(_0x205f13)||_0x205f13);return _0x205f13;},N=(_0xaba125,_0x24a4fd)=>(_0x1d0d72,_0x3df6cc)=>_0x24a4fd(_0x1d0d72,_0x3df6cc,_0xaba125),A=(_0x5bf5ee,_0x472808,_0x163f0e)=>ne(_0x5bf5ee,typeof _0x472808!=_0x279575(0x1cc)?_0x472808+'':_0x472808,_0x163f0e);const oe='UNIVER_LIVE_SHARE_PLUGIN';function _0x5805(_0x1d9fd6,_0x184971){_0x1d9fd6=_0x1d9fd6-0x102;const _0x9fc96=_0x9fc9();let _0x58051c=_0x9fc96[_0x1d9fd6];return _0x58051c;}exports['UniverLiveSharePlugin']=class extends o[_0x279575(0x1b8)]{constructor(_0x13cd7d=w,_0x438d82,_0x2a10be){const _0x531c37=_0x279575;super(),this[_0x531c37(0x1a1)]=_0x13cd7d,this['_injector']=_0x438d82,this[_0x531c37(0x1cd)]=_0x2a10be;const {..._0x376dba}=o[_0x531c37(0x195)]({},w,this[_0x531c37(0x1a1)]);this[_0x531c37(0x1cd)][_0x531c37(0x11c)](Q,_0x376dba);}[_0x279575(0x10c)](){const _0xfd9a24=_0x279575;o[_0xfd9a24(0x1b3)](this[_0xfd9a24(0x197)],o[_0xfd9a24(0x183)]([[E],[exports[_0xfd9a24(0x129)]],[m],[exports[_0xfd9a24(0x1a3)]]],this[_0xfd9a24(0x1a1)]['override'])),o[_0xfd9a24(0x15d)](this[_0xfd9a24(0x197)],[[m]]);}[_0x279575(0x111)](){const _0x1a5c39=_0x279575;o[_0x1a5c39(0x15d)](this[_0x1a5c39(0x197)],[[exports['DesktopLiveShareController']]]);}},A(exports['UniverLiveSharePlugin'],_0x279575(0x192),o[_0x279575(0x1b6)]['UNIVER_UNKNOWN']),A(exports[_0x279575(0x1c4)],'pluginName',oe),exports[_0x279575(0x1c4)]=re([o[_0x279575(0x152)](b[_0x279575(0x124)]),N(0x1,o['Inject'](o[_0x279575(0x130)])),N(0x2,o[_0x279575(0x137)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports[_0x279575(0x18a)]=E,exports[_0x279575(0x1c9)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0xba1afe=_0x1575;(function(_0x238760,_0x2e3550){const _0x1d0baa=_0x1575,_0x4160ab=_0x238760();while(!![]){try{const _0x123a17=-parseInt(_0x1d0baa(0xfc))/0x1+parseInt(_0x1d0baa(0xfd))/0x2*(parseInt(_0x1d0baa(0x112))/0x3)+parseInt(_0x1d0baa(0x109))/0x4*(-parseInt(_0x1d0baa(0xfb))/0x5)+parseInt(_0x1d0baa(0x107))/0x6*(parseInt(_0x1d0baa(0x10e))/0x7)+parseInt(_0x1d0baa(0x10b))/0x8*(-parseInt(_0x1d0baa(0x103))/0x9)+parseInt(_0x1d0baa(0xfe))/0xa+parseInt(_0x1d0baa(0x105))/0xb;if(_0x123a17===_0x2e3550)break;else _0x4160ab['push'](_0x4160ab['shift']());}catch(_0x2a94e9){_0x4160ab['push'](_0x4160ab['shift']());}}}(_0x3050,0xbf777));var l=Object[_0xba1afe(0x10c)],w=(_0x135571,_0xab6bd6,_0xe1bd4c)=>_0xab6bd6 in _0x135571?l(_0x135571,_0xab6bd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1bd4c}):_0x135571[_0xab6bd6]=_0xe1bd4c,v=(_0x28711d,_0x5293fe,_0x1401ce)=>w(_0x28711d,typeof _0x5293fe!=_0xba1afe(0x114)?_0x5293fe+'':_0x5293fe,_0x1401ce);function _0x1575(_0x27819f,_0x41beae){_0x27819f=_0x27819f-0xfa;const _0x305017=_0x3050();let _0x1575c0=_0x305017[_0x27819f];return _0x1575c0;}function _0x3050(){const _0x2b0130=['_liveShareController','startFollowing','getLiveShareCoordinatorSync','20zOwBkI','239137Jpptex','2syNJtz','6159480NWdJzj','extend','tryStartPresenting','UNIVER_SHEET','get','3152853OHMhUX','stopFollowing','15673504gzEPgl','startPresenting','1009062AofoPm','stopPresenting','446588yHebts','No\x20active\x20workbook\x20found.','32KYZjDW','defineProperty','_injector','7lKHSpk','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','getCurrentUnitOfType','1986753iVkPuo','IDLE','symbol','getUnitId'];_0x3050=function(){return _0x2b0130;};return _0x3050();}import{LiveShareController as _0x368e14,LiveShareStatus as _0x197484}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x372a33,UniverInstanceType as _0x462e53}from'@univerjs/core';import{FUniver as _0x3fb83b,FEnum as _0x3235b8}from'@univerjs/core/facade';class g extends _0x3fb83b{constructor(){const _0x22202e=_0xba1afe;super(...arguments),v(this,_0x22202e(0x116));}['_initialize'](_0x237f06){const _0x3c3a3a=_0xba1afe;this[_0x3c3a3a(0x116)]=_0x237f06[_0x3c3a3a(0x102)](_0x368e14);}['getLiveShareStatus'](){const _0x22cdb4=_0xba1afe;var _0x57b6ec;const _0x13f37f=this[_0x22cdb4(0x10d)][_0x22cdb4(0x102)](_0x372a33)[_0x22cdb4(0x111)](_0x462e53['UNIVER_SHEET']);if(!_0x13f37f)throw new Error(_0x22cdb4(0x10a));const _0x8af84a=_0x13f37f[_0x22cdb4(0x115)](),_0x17bc84=this[_0x22cdb4(0x116)][_0x22cdb4(0xfa)](_0x8af84a);return(_0x57b6ec=_0x17bc84==null?void 0x0:_0x17bc84[_0x22cdb4(0x110)]())!=null?_0x57b6ec:_0x197484[_0x22cdb4(0x113)];}[_0xba1afe(0x117)](){const _0x135714=_0xba1afe,_0x154412=this['_injector'][_0x135714(0x102)](_0x372a33)['getCurrentUnitOfType'](_0x462e53['UNIVER_SHEET']);if(!_0x154412)throw new Error(_0x135714(0x10a));const _0xe62c89=_0x154412[_0x135714(0x115)](),_0x2c12fb=this['_liveShareController'][_0x135714(0xfa)](_0xe62c89);if(!_0x2c12fb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2c12fb[_0x135714(0x117)]();}[_0xba1afe(0x104)](){const _0x2827d9=_0xba1afe,_0x2ab2c1=this[_0x2827d9(0x10d)]['get'](_0x372a33)[_0x2827d9(0x111)](_0x462e53[_0x2827d9(0x101)]);if(!_0x2ab2c1)throw new Error(_0x2827d9(0x10a));const _0xc846d8=_0x2ab2c1[_0x2827d9(0x115)](),_0x439a8f=this[_0x2827d9(0x116)]['getLiveShareCoordinatorSync'](_0xc846d8);if(!_0x439a8f)throw new Error(_0x2827d9(0x10f));_0x439a8f[_0x2827d9(0x104)]();}[_0xba1afe(0x106)](){const _0x5ba1af=_0xba1afe,_0x660d34=this[_0x5ba1af(0x10d)][_0x5ba1af(0x102)](_0x372a33)[_0x5ba1af(0x111)](_0x462e53[_0x5ba1af(0x101)]);if(!_0x660d34)throw new Error(_0x5ba1af(0x10a));const _0x321573=_0x660d34[_0x5ba1af(0x115)](),_0x3fc79f=this[_0x5ba1af(0x116)][_0x5ba1af(0xfa)](_0x321573);if(!_0x3fc79f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3fc79f[_0x5ba1af(0x100)]();}[_0xba1afe(0x108)](){const _0x4f1831=_0xba1afe,_0x25d029=this[_0x4f1831(0x10d)]['get'](_0x372a33)[_0x4f1831(0x111)](_0x462e53[_0x4f1831(0x101)]);if(!_0x25d029)throw new Error(_0x4f1831(0x10a));const _0x2662de=_0x25d029['getUnitId'](),_0x5c9cf1=this[_0x4f1831(0x116)][_0x4f1831(0xfa)](_0x2662de);if(!_0x5c9cf1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5c9cf1['stopPresenting']();}}_0x3fb83b['extend'](g);class f extends _0x3235b8{get['LiveShareStatusEnum'](){return _0x197484;}}_0x3235b8[_0xba1afe(0xff)](f);
1
+ const _0x183ff5=_0x5c63;(function(_0x20a5b7,_0x3b2129){const _0x7ee24e=_0x5c63,_0x4c262f=_0x20a5b7();while(!![]){try{const _0x159354=parseInt(_0x7ee24e(0x1ec))/0x1+parseInt(_0x7ee24e(0x1f7))/0x2*(parseInt(_0x7ee24e(0x1e4))/0x3)+-parseInt(_0x7ee24e(0x1f6))/0x4+-parseInt(_0x7ee24e(0x1f0))/0x5+parseInt(_0x7ee24e(0x1f2))/0x6*(parseInt(_0x7ee24e(0x1fb))/0x7)+-parseInt(_0x7ee24e(0x1ef))/0x8+parseInt(_0x7ee24e(0x1ed))/0x9;if(_0x159354===_0x3b2129)break;else _0x4c262f['push'](_0x4c262f['shift']());}catch(_0x42d639){_0x4c262f['push'](_0x4c262f['shift']());}}}(_0xa445,0x22186));var l=Object[_0x183ff5(0x1f8)],w=(_0x18cb8e,_0x5a7f1f,_0x531632)=>_0x5a7f1f in _0x18cb8e?l(_0x18cb8e,_0x5a7f1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x531632}):_0x18cb8e[_0x5a7f1f]=_0x531632,v=(_0x3fe1bb,_0x42dc3c,_0x4791ad)=>w(_0x3fe1bb,typeof _0x42dc3c!=_0x183ff5(0x1e8)?_0x42dc3c+'':_0x42dc3c,_0x4791ad);function _0xa445(){const _0x2eaa24=['491520vFHGxA','IDLE','6246AFOdIb','getLiveShareCoordinatorSync','startPresenting','getLiveShareStatus','1002624fONdKo','482942nMGIpR','defineProperty','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getCurrentUnitOfType','161IoTlCE','stopFollowing','_liveShareController','UNIVER_SHEET','stopPresenting','3mAWiEF','_injector','get','extend','symbol','_initialize','getUnitId','No\x20active\x20workbook\x20found.','119461ciTbcy','2722842EfweHD','getStatus','1590392WFgOdb'];_0xa445=function(){return _0x2eaa24;};return _0xa445();}import{LiveShareController as _0x52685b,LiveShareStatus as _0x1079ea}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x393b4d,UniverInstanceType as _0x2abba2}from'@univerjs/core';import{FUniver as _0x4025d9,FEnum as _0x229f0d}from'@univerjs/core/facade';function _0x5c63(_0x431ffd,_0x460f1f){_0x431ffd=_0x431ffd-0x1e2;const _0xa445b9=_0xa445();let _0x5c6385=_0xa445b9[_0x431ffd];return _0x5c6385;}class g extends _0x4025d9{constructor(){super(...arguments),v(this,'_liveShareController');}[_0x183ff5(0x1e9)](_0x33cbe3){const _0x50d0a1=_0x183ff5;this[_0x50d0a1(0x1fd)]=_0x33cbe3[_0x50d0a1(0x1e6)](_0x52685b);}[_0x183ff5(0x1f5)](){const _0x52175a=_0x183ff5;var _0x2b3111;const _0xc9e977=this[_0x52175a(0x1e5)][_0x52175a(0x1e6)](_0x393b4d)['getCurrentUnitOfType'](_0x2abba2[_0x52175a(0x1e2)]);if(!_0xc9e977)throw new Error(_0x52175a(0x1eb));const _0x1f45c2=_0xc9e977[_0x52175a(0x1ea)](),_0x4db4d7=this[_0x52175a(0x1fd)][_0x52175a(0x1f3)](_0x1f45c2);return(_0x2b3111=_0x4db4d7==null?void 0x0:_0x4db4d7[_0x52175a(0x1ee)]())!=null?_0x2b3111:_0x1079ea[_0x52175a(0x1f1)];}['startFollowing'](){const _0x42e4d7=_0x183ff5,_0x547891=this[_0x42e4d7(0x1e5)][_0x42e4d7(0x1e6)](_0x393b4d)[_0x42e4d7(0x1fa)](_0x2abba2[_0x42e4d7(0x1e2)]);if(!_0x547891)throw new Error(_0x42e4d7(0x1eb));const _0x27def6=_0x547891[_0x42e4d7(0x1ea)](),_0x52de77=this[_0x42e4d7(0x1fd)][_0x42e4d7(0x1f3)](_0x27def6);if(!_0x52de77)throw new Error(_0x42e4d7(0x1f9));_0x52de77['startFollowing']();}[_0x183ff5(0x1fc)](){const _0x873171=_0x183ff5,_0xec440f=this[_0x873171(0x1e5)][_0x873171(0x1e6)](_0x393b4d)[_0x873171(0x1fa)](_0x2abba2[_0x873171(0x1e2)]);if(!_0xec440f)throw new Error(_0x873171(0x1eb));const _0x17735a=_0xec440f[_0x873171(0x1ea)](),_0x47683f=this[_0x873171(0x1fd)][_0x873171(0x1f3)](_0x17735a);if(!_0x47683f)throw new Error(_0x873171(0x1f9));_0x47683f[_0x873171(0x1fc)]();}[_0x183ff5(0x1f4)](){const _0x477811=_0x183ff5,_0x54b8e6=this[_0x477811(0x1e5)]['get'](_0x393b4d)[_0x477811(0x1fa)](_0x2abba2[_0x477811(0x1e2)]);if(!_0x54b8e6)throw new Error(_0x477811(0x1eb));const _0x1ee3e1=_0x54b8e6['getUnitId'](),_0x1ae65a=this[_0x477811(0x1fd)][_0x477811(0x1f3)](_0x1ee3e1);if(!_0x1ae65a)throw new Error(_0x477811(0x1f9));_0x1ae65a['tryStartPresenting']();}[_0x183ff5(0x1e3)](){const _0x8bac20=_0x183ff5,_0x183fd4=this[_0x8bac20(0x1e5)][_0x8bac20(0x1e6)](_0x393b4d)[_0x8bac20(0x1fa)](_0x2abba2[_0x8bac20(0x1e2)]);if(!_0x183fd4)throw new Error(_0x8bac20(0x1eb));const _0x5693a8=_0x183fd4['getUnitId'](),_0x5f5013=this['_liveShareController'][_0x8bac20(0x1f3)](_0x5693a8);if(!_0x5f5013)throw new Error(_0x8bac20(0x1f9));_0x5f5013['stopPresenting']();}}_0x4025d9['extend'](g);class f extends _0x229f0d{get['LiveShareStatusEnum'](){return _0x1079ea;}}_0x229f0d[_0x183ff5(0x1e7)](f);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1191b2=_0x3c6d;(function(_0x375322,_0x2ad210){const _0x4c8417=_0x3c6d,_0x4d5e73=_0x375322();while(!![]){try{const _0x39b03b=-parseInt(_0x4c8417(0x209))/0x1*(parseInt(_0x4c8417(0x198))/0x2)+parseInt(_0x4c8417(0x1a3))/0x3*(-parseInt(_0x4c8417(0x18e))/0x4)+parseInt(_0x4c8417(0x1d5))/0x5+-parseInt(_0x4c8417(0x19d))/0x6+parseInt(_0x4c8417(0x1ba))/0x7*(-parseInt(_0x4c8417(0x184))/0x8)+parseInt(_0x4c8417(0x1ea))/0x9+parseInt(_0x4c8417(0x1e6))/0xa;if(_0x39b03b===_0x2ad210)break;else _0x4d5e73['push'](_0x4d5e73['shift']());}catch(_0x546531){_0x4d5e73['push'](_0x4d5e73['shift']());}}}(_0x18ef,0x24b08));var J=Object['defineProperty'],K=(_0x45f795,_0x2a0594,_0x5601bc)=>_0x2a0594 in _0x45f795?J(_0x45f795,_0x2a0594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5601bc}):_0x45f795[_0x2a0594]=_0x5601bc,u=(_0x5e1d5e,_0x1c187b,_0x4de588)=>K(_0x5e1d5e,typeof _0x1c187b!='symbol'?_0x1c187b+'':_0x1c187b,_0x4de588);import{Disposable as _0x42f139,toDisposable as _0x1417df,IUniverInstanceService as _0x13599b,Inject as _0x52f490,Injector as _0xfcc158,IConfigService as _0x3b6203,ICommandService as _0x1133a0,RxDisposable as _0x12d579,UniverInstanceType as _0x52ac2b,DisposableCollection as _0x12bfa0,CommandType as _0x58cba0,DependentOn as _0x31ac97,Plugin as _0x597a77,merge as _0x8b45b2,registerDependencies as _0x277ea5,mergeOverrideWithDependencies as _0x1a5bcb,touchDependencies as _0x412fe3}from'@univerjs/core';import{useDependency as _0x13c131,useObservable as _0x4a22ff,IUIPartsService as _0x40fce5,BuiltInUIPart as _0x344c8b,connectInjector as _0x1f7308}from'@univerjs/ui';import{jsx as _0x23bdaf,jsxs as _0x3c669a,Fragment as _0x2260a2}from'react/jsx-runtime';import{Dropdown as _0xa5e188,clsx as _0x5bda25,Button as _0x229044}from'@univerjs/design';function _0x3c6d(_0x27138e,_0x1d89fc){_0x27138e=_0x27138e-0x166;const _0x18ef1e=_0x18ef();let _0x3c6d4a=_0x18ef1e[_0x27138e];return _0x3c6d4a;}import{useRef as _0x26e3e5,createElement as _0x2270b1,forwardRef as _0x229bee,useState as _0x4c8df0,useEffect as _0x2e70ea}from'react';import{CollaborationEvent as _0x54850e,parseProtocolChangeset as _0x4ea61e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46ad75,SessionStatus as _0x38f2a3,UniverCollaborationClientPlugin as _0x42c667}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x424699,SetWorksheetActiveOperation as _0x22d280}from'@univerjs/sheets';import{BehaviorSubject as _0x4ad1e3,Subject as _0x338e65}from'rxjs';import{takeUntil as _0x1096b2,throttleTime as _0x23d433}from'rxjs/operators';import{SetZoomRatioOperation as _0x2e5eb8,SetScrollOperation as _0x4c04a3}from'@univerjs/sheets-ui';function k({ref:_0x2db846,..._0x1d0a15}){const _0x38adde=_0x3c6d,{icon:_0xbcf763,id:_0x2c0994,className:_0x1076ad,extend:_0x5afb17,..._0x422897}=_0x1d0a15,_0x97ea70=(_0x38adde(0x206)+_0x2c0994+'\x20'+(_0x1076ad||''))[_0x38adde(0x210)](),_0x11f29b=_0x26e3e5('_'+Oe());return G(_0xbcf763,''+_0x2c0994,{'defIds':_0xbcf763['defIds'],'idSuffix':_0x11f29b[_0x38adde(0x1d3)]},{'ref':_0x2db846,'className':_0x97ea70,..._0x422897},_0x5afb17);}function G(_0x15c8f0,_0x5e405e,_0x110cda,_0x4befed,_0x56dbf2){const _0x1b87c2=_0x3c6d;return _0x2270b1(_0x15c8f0['tag'],{'key':_0x5e405e,...be(_0x15c8f0,_0x110cda,_0x56dbf2),..._0x4befed},(Ee(_0x15c8f0,_0x110cda)[_0x1b87c2(0x194)]||[])[_0x1b87c2(0x208)]((_0x2ed83d,_0x1e451f)=>G(_0x2ed83d,_0x5e405e+'-'+_0x15c8f0[_0x1b87c2(0x202)]+'-'+_0x1e451f,_0x110cda,void 0x0,_0x56dbf2)));}function be(_0x3c29c7,_0x5c62bc,_0x140ab5){const _0x4a5b06=_0x3c6d,_0x29b48c={..._0x3c29c7['attrs']};_0x140ab5!=null&&_0x140ab5[_0x4a5b06(0x1de)]&&_0x29b48c[_0x4a5b06(0x1dd)]===_0x4a5b06(0x1de)&&(_0x29b48c['fill']=_0x140ab5[_0x4a5b06(0x1de)]),_0x3c29c7[_0x4a5b06(0x202)]==='mask'&&_0x29b48c['id']&&(_0x29b48c['id']=_0x29b48c['id']+_0x5c62bc['idSuffix']),Object[_0x4a5b06(0x204)](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x1969da,_0x193e23])=>{const _0x5e0b39=_0x4a5b06;_0x1969da===_0x5e0b39(0x1fa)&&typeof _0x193e23==_0x5e0b39(0x200)&&(_0x29b48c[_0x1969da]=_0x193e23[_0x5e0b39(0x196)](/url\(#(.*)\)/,_0x5e0b39(0x1e8)+_0x5c62bc[_0x5e0b39(0x168)]+')'));});const {defIds:_0x3db7c}=_0x5c62bc;return!_0x3db7c||_0x3db7c[_0x4a5b06(0x1fc)]===0x0||(_0x3c29c7['tag']===_0x4a5b06(0x1be)&&_0x29b48c[_0x4a5b06(0x1d4)]&&(_0x29b48c['xlink:href']=_0x29b48c['xlink:href']+_0x5c62bc[_0x4a5b06(0x168)]),Object['entries'](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x31c1f0,_0x2737b2])=>{const _0x34a785=_0x4a5b06;typeof _0x2737b2==_0x34a785(0x200)&&(_0x29b48c[_0x31c1f0]=_0x2737b2['replace'](/url\(#(.*)\)/,_0x34a785(0x1e8)+_0x5c62bc[_0x34a785(0x168)]+')'));})),_0x29b48c;}function Ee(_0x108315,_0x9e1250){const _0xab565f=_0x3c6d;var _0x31520a;const {defIds:_0x4f0671}=_0x9e1250;return!_0x4f0671||_0x4f0671[_0xab565f(0x1fc)]===0x0?_0x108315:_0x108315[_0xab565f(0x202)]===_0xab565f(0x1e5)&&((_0x31520a=_0x108315[_0xab565f(0x194)])!=null&&_0x31520a[_0xab565f(0x1fc)])?{..._0x108315,'children':_0x108315[_0xab565f(0x194)][_0xab565f(0x208)](_0x449432=>typeof _0x449432[_0xab565f(0x1fe)]['id']=='string'&&_0x4f0671&&_0x4f0671[_0xab565f(0x1bf)](_0x449432[_0xab565f(0x1fe)]['id'])?{..._0x449432,'attrs':{..._0x449432[_0xab565f(0x1fe)],'id':_0x449432['attrs']['id']+_0x9e1250[_0xab565f(0x168)]}}:_0x449432)}:_0x108315;}function Oe(){const _0x47cf0e=_0x3c6d;return Math[_0x47cf0e(0x188)]()[_0x47cf0e(0x18a)](0x24)[_0x47cf0e(0x1ac)](0x2,0x8);}k[_0x1191b2(0x1ed)]=_0x1191b2(0x174);const we={'tag':_0x1191b2(0x16b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1191b2(0x1e3),'viewBox':'0\x200\x2017\x2017','width':_0x1191b2(0x192),'height':'1em'},'children':[{'tag':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'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':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'d':_0x1191b2(0x207),'fillRule':_0x1191b2(0x16d),'clipRule':'evenodd'}}]},W=_0x229bee(function(_0x55ce6c,_0x4f1fcb){return _0x2270b1(k,Object['assign']({},_0x55ce6c,{'id':'live-share-icon','ref':_0x4f1fcb,'icon':we}));});W['displayName']=_0x1191b2(0x1d6);class L extends _0x42f139{constructor(){const _0x345df2=_0x1191b2;super(...arguments),u(this,_0x345df2(0x1a1),new Set()),u(this,_0x345df2(0x1d2),new Set());}[_0x1191b2(0x19f)](_0x542655){const _0x3e75a3=_0x1191b2;return this[_0x3e75a3(0x1a1)][_0x3e75a3(0x1bb)](_0x542655),_0x1417df(()=>this['_sharedOperations'][_0x3e75a3(0x20f)](_0x542655));}['registerInitialStateReporter'](_0x476a63){const _0x15e42f=_0x1191b2;return this['_reporters'][_0x15e42f(0x1bb)](_0x476a63),_0x1417df(()=>this[_0x15e42f(0x1d2)][_0x15e42f(0x20f)](_0x476a63));}[_0x1191b2(0x17c)](_0x4118f1){const _0x5bc383=_0x1191b2;return this[_0x5bc383(0x1a1)][_0x5bc383(0x20c)](_0x4118f1);}[_0x1191b2(0x173)](_0xf020dc){const _0x76e158=_0x1191b2;return Array[_0x76e158(0x1c4)](this[_0x76e158(0x1d2)])[_0x76e158(0x208)](_0x226d29=>_0x226d29(_0xf020dc));}}var Ne=Object[_0x1191b2(0x1cb)],Y=(_0x495b86,_0x2aa9b8,_0x2f8e1f,_0x496a5b)=>{const _0x57a684=_0x1191b2;for(var _0x444968=_0x496a5b>0x1?void 0x0:_0x496a5b?Ne(_0x2aa9b8,_0x2f8e1f):_0x2aa9b8,_0x3dfa43=_0x495b86[_0x57a684(0x1fc)]-0x1,_0x5aecc4;_0x3dfa43>=0x0;_0x3dfa43--)(_0x5aecc4=_0x495b86[_0x3dfa43])&&(_0x444968=_0x5aecc4(_0x444968)||_0x444968);return _0x444968;},_=(_0x4d1ee7,_0x54bc9a)=>(_0x38f715,_0x390c40)=>_0x54bc9a(_0x38f715,_0x390c40,_0x4d1ee7);let S=class extends _0x12d579{constructor(_0x88e00b,_0x4298e1,_0x3d29e0){const _0x192423=_0x1191b2;super(),u(this,_0x192423(0x186),new Map()),(this[_0x192423(0x17f)]=_0x88e00b,this['_injector']=_0x4298e1,this['_collabSessionService']=_0x3d29e0,this[_0x192423(0x1ec)]());}async['getLiveShareCoordinator'](_0x59d1c3){const _0x1bb3ce=_0x1191b2;return this[_0x1bb3ce(0x186)][_0x1bb3ce(0x20c)](_0x59d1c3)||await this[_0x1bb3ce(0x1b3)](_0x59d1c3),this[_0x1bb3ce(0x186)][_0x1bb3ce(0x191)](_0x59d1c3);}[_0x1191b2(0x177)](_0x358ced){const _0x19f00e=_0x1191b2;var _0x32de33;return(_0x32de33=this[_0x19f00e(0x186)][_0x19f00e(0x191)](_0x358ced))!=null?_0x32de33:null;}['_init'](){const _0x453995=_0x1191b2;this['_univerInstanceService'][_0x453995(0x1d1)](_0x52ac2b[_0x453995(0x180)])['pipe'](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](async _0x49d54d=>{const _0x4c7ac7=_0x453995,_0x2e687c=_0x49d54d[_0x4c7ac7(0x1e2)]();this[_0x4c7ac7(0x186)][_0x4c7ac7(0x20c)](_0x2e687c)||this[_0x4c7ac7(0x1b3)](_0x2e687c);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x52ac2b[_0x453995(0x180)])[_0x453995(0x1e9)](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](_0x5d8709=>{const _0x3a8720=_0x453995,_0x4c1060=_0x5d8709['getUnitId'](),_0x346756=this[_0x3a8720(0x186)][_0x3a8720(0x191)](_0x4c1060);_0x346756==null||_0x346756[_0x3a8720(0x1eb)]();});}async[_0x1191b2(0x1b3)](_0x5e1e02){const _0x32c6f7=_0x1191b2,_0x1e17ab=await this['_collabSessionService'][_0x32c6f7(0x1da)](_0x5e1e02),_0x1346a3=this[_0x32c6f7(0x197)][_0x32c6f7(0x170)](N,_0x5e1e02,_0x1e17ab);return _0x1346a3['init'](),this[_0x32c6f7(0x186)][_0x32c6f7(0x1b2)](_0x5e1e02,_0x1346a3),_0x1346a3;}};S=Y([_(0x0,_0x13599b),_(0x1,_0x52f490(_0xfcc158)),_(0x2,_0x52f490(_0x46ad75))],S);var c=(_0xc68a38=>(_0xc68a38[_0x1191b2(0x1cc)]=_0x1191b2(0x1ee),_0xc68a38[_0x1191b2(0x20b)]=_0x1191b2(0x1cd),_0xc68a38[_0x1191b2(0x16e)]=_0x1191b2(0x1d8),_0xc68a38[_0x1191b2(0x1b0)]=_0x1191b2(0x201),_0xc68a38[_0x1191b2(0x1f9)]=_0x1191b2(0x1ae),_0xc68a38))(c||{});const Ce=_0x1191b2(0x17e),De=0xc8;let N=class extends _0x12d579{constructor(_0x38ee06,_0x293cfa,_0x227d3a,_0x38960d,_0x10dd83){const _0x509a71=_0x1191b2;super(),u(this,_0x509a71(0x1f2),new _0x4ad1e3(_0x509a71(0x1cd))),u(this,_0x509a71(0x178),this[_0x509a71(0x1f2)][_0x509a71(0x190)]()),u(this,_0x509a71(0x1ec),!0x1),u(this,_0x509a71(0x1e7),null),u(this,_0x509a71(0x171),null),(this[_0x509a71(0x1c9)]=_0x38ee06,this[_0x509a71(0x1bc)]=_0x293cfa,this[_0x509a71(0x16c)]=_0x227d3a,this['_liveShareService']=_0x38960d,this[_0x509a71(0x1e1)]=_0x10dd83);}get[_0x1191b2(0x1e4)](){const _0x3be8cc=_0x1191b2;return this[_0x3be8cc(0x1f2)][_0x3be8cc(0x1a5)]();}[_0x1191b2(0x1eb)](){const _0x3bf7f7=_0x1191b2;var _0x9559a8;(_0x9559a8=this[_0x3bf7f7(0x1e7)])==null||_0x9559a8[_0x3bf7f7(0x1eb)](),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1b1)]('idle'),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1ab)]();}[_0x1191b2(0x19b)](){const _0x17c770=_0x1191b2;return this[_0x17c770(0x1e4)];}[_0x1191b2(0x16a)](){const _0x986724=_0x1191b2;this[_0x986724(0x1ec)]||(this[_0x986724(0x1ec)]=!0x0,this['_collabSession'][_0x986724(0x17d)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x5061fc=>{const _0x114fed=_0x986724;switch(_0x5061fc){case _0x38f2a3[_0x114fed(0x1cc)]:this[_0x114fed(0x199)]();break;case _0x38f2a3[_0x114fed(0x1d0)]:this[_0x114fed(0x185)]();break;}}),this[_0x986724(0x1bc)][_0x986724(0x1a7)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x1b57e7=>{const _0x4154a3=_0x986724,{eventID:_0x3d71ee}=_0x1b57e7;switch(_0x3d71ee){case _0x54850e[_0x4154a3(0x20a)]:this[_0x4154a3(0x211)](_0x1b57e7);break;case _0x54850e[_0x4154a3(0x166)]:this[_0x4154a3(0x1f6)](_0x1b57e7);break;case _0x54850e['LIVESHARE_TERMINATE']:this[_0x4154a3(0x1b5)]();break;case _0x54850e[_0x4154a3(0x18d)]:this[_0x4154a3(0x1ef)](_0x1b57e7);break;}}));}[_0x1191b2(0x182)](){const _0x272cac=_0x1191b2;this[_0x272cac(0x1bc)][_0x272cac(0x1d9)]({'eventID':_0x54850e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x272cac(0x1c9)],'userID':this[_0x272cac(0x1bc)]['getMemberID']()}},this[_0x272cac(0x1c9)]);}[_0x1191b2(0x1c6)](){const _0x381341=_0x1191b2;this[_0x381341(0x1e4)]===_0x381341(0x1ae)&&(this['_status$'][_0x381341(0x1b1)]('idle'),this[_0x381341(0x1bc)][_0x381341(0x1d9)]({'eventID':_0x54850e['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x381341(0x1c9)]));}[_0x1191b2(0x1a6)](){const _0x53e064=_0x1191b2;this[_0x53e064(0x1e4)]===_0x53e064(0x201)&&(this[_0x53e064(0x1f2)][_0x53e064(0x1b1)]('following'),this[_0x53e064(0x20e)]());}[_0x1191b2(0x1b4)](){const _0x561b48=_0x1191b2;this[_0x561b48(0x1e4)]===_0x561b48(0x1d8)&&this[_0x561b48(0x1cf)]();}[_0x1191b2(0x211)](_0x35f29e){const _0x5b0cc6=_0x1191b2,{presenter:_0x7f9b81}=_0x35f29e[_0x5b0cc6(0x1bd)],_0x482ed1=this[_0x5b0cc6(0x1bc)][_0x5b0cc6(0x1ca)]();this['_presenter']=_0x7f9b81,_0x7f9b81===_0x482ed1?(this[_0x5b0cc6(0x1cf)](),this[_0x5b0cc6(0x175)]()):this[_0x5b0cc6(0x1e4)]!=='not-following'&&(this[_0x5b0cc6(0x172)](),this[_0x5b0cc6(0x20e)]());}['_fetchOperations'](){const _0x35b053=_0x1191b2,_0xd85293={'eventID':_0x54850e[_0x35b053(0x1db)]};this[_0x35b053(0x1bc)][_0x35b053(0x1d9)](_0xd85293,this[_0x35b053(0x1c9)]);}[_0x1191b2(0x1b5)](){const _0x1c81b9=_0x1191b2;this[_0x1c81b9(0x171)]=null,this[_0x1c81b9(0x1e4)]!==_0x1c81b9(0x1ae)&&this[_0x1c81b9(0x176)]();}[_0x1191b2(0x1ef)](_0x284dd7){const _0x887c70=_0x1191b2;if(this[_0x887c70(0x1e4)]===_0x887c70(0x1d8)&&this['_presenter']===_0x284dd7[_0x887c70(0x1bd)][_0x887c70(0x1c5)]){const _0x329ab8=_0x4ea61e(_0x284dd7[_0x887c70(0x1bd)])[_0x887c70(0x17a)][_0x887c70(0x1c2)]()[_0x887c70(0x195)](_0x2c1ee7=>_0x2c1ee7['id']===_0x424699['id']);if(_0x329ab8){const _0x49d467=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1b9)],_0x81f4b0=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1f8)]['id'];setTimeout(()=>{const _0x21dd88=_0x887c70;this[_0x21dd88(0x1e1)][_0x21dd88(0x1c3)](_0x22d280['id'],{'unitId':_0x49d467,'subUnitId':_0x81f4b0},{'fromCollab':!0x0});});}}}[_0x1191b2(0x175)](){const _0x36a5a0=_0x1191b2;this['_status$'][_0x36a5a0(0x1b1)](_0x36a5a0(0x1ae));const _0x43250b=new Map(),_0x22e6eb=this[_0x36a5a0(0x1e7)]=new _0x12bfa0();_0x22e6eb[_0x36a5a0(0x1bb)](_0x1417df(()=>{const _0x446eb7=_0x36a5a0;_0x43250b[_0x446eb7(0x1f5)](_0xe2b1a3=>_0xe2b1a3[_0x446eb7(0x1ab)]()),_0x43250b[_0x446eb7(0x189)]();})),_0x22e6eb['add'](this[_0x36a5a0(0x1e1)]['onCommandExecuted'](_0x258568=>{const _0x2c4ba8=_0x36a5a0;var _0x537d31;if(_0x258568[_0x2c4ba8(0x1fd)]!==_0x58cba0[_0x2c4ba8(0x181)]||!this['_liveShareService'][_0x2c4ba8(0x17c)](_0x258568['id']))return;const {id:_0x3f04f2}=_0x258568;let _0x55c0e4;_0x43250b['has'](_0x3f04f2)?_0x55c0e4=_0x43250b[_0x2c4ba8(0x191)](_0x3f04f2):(_0x55c0e4=new _0x338e65(),_0x43250b[_0x2c4ba8(0x1b2)](_0x3f04f2,_0x55c0e4),_0x55c0e4['pipe'](_0x23d433((_0x537d31=this['_configService'][_0x2c4ba8(0x1c1)](Ce))!=null?_0x537d31:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4ba8(0x1f1)](_0x5f4677=>{const _0x16abe5=_0x2c4ba8;this['_collabSession'][_0x16abe5(0x1d9)]({'eventID':_0x54850e[_0x16abe5(0x166)],'data':{'unitID':this[_0x16abe5(0x1c9)],'operations':{[_0x5f4677['id']]:{'id':_0x5f4677['id'],'params':JSON[_0x16abe5(0x1df)](_0x5f4677[_0x16abe5(0x193)])}}}},this[_0x16abe5(0x1c9)]);})),_0x55c0e4[_0x2c4ba8(0x1b1)](_0x258568);})),this[_0x36a5a0(0x16f)]['getInitialStates'](this[_0x36a5a0(0x1c9)])[_0x36a5a0(0x1f5)](_0x5607f5=>this[_0x36a5a0(0x1bc)][_0x36a5a0(0x1d9)]({'eventID':_0x54850e[_0x36a5a0(0x166)],'data':{'unitID':this['_unitID'],'operations':{[_0x5607f5['id']]:{'id':_0x5607f5['id'],'params':JSON[_0x36a5a0(0x1df)](_0x5607f5[_0x36a5a0(0x193)])}}}},this[_0x36a5a0(0x1c9)]));}[_0x1191b2(0x172)](){const _0x36bb17=_0x1191b2;var _0x246115;this['_status$'][_0x36bb17(0x1b1)](_0x36bb17(0x1cd)),(_0x246115=this[_0x36bb17(0x1e7)])==null||_0x246115[_0x36bb17(0x1eb)](),this[_0x36bb17(0x1e7)]=null;}[_0x1191b2(0x20e)](){const _0x338b3d=_0x1191b2;var _0x2b76a4;(_0x2b76a4=this[_0x338b3d(0x1e7)])==null||_0x2b76a4['dispose'](),this[_0x338b3d(0x1f2)][_0x338b3d(0x1b1)](_0x338b3d(0x1d8));}[_0x1191b2(0x176)](){const _0x42bd77=_0x1191b2;var _0x389e24;this[_0x42bd77(0x1f2)][_0x42bd77(0x1b1)](_0x42bd77(0x1cd)),(_0x389e24=this[_0x42bd77(0x1e7)])==null||_0x389e24[_0x42bd77(0x1eb)](),this[_0x42bd77(0x1e7)]=null;}[_0x1191b2(0x1cf)](){const _0x326b8c=_0x1191b2;var _0x172890;this[_0x326b8c(0x1f2)][_0x326b8c(0x1b1)](_0x326b8c(0x201)),(_0x172890=this[_0x326b8c(0x1e7)])==null||_0x172890[_0x326b8c(0x1eb)]();}[_0x1191b2(0x1f6)](_0x212d99){const _0x3d982d=_0x1191b2;if([_0x3d982d(0x1ae),_0x3d982d(0x201),_0x3d982d(0x1ee)]['includes'](this['_status'])||!_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1b6)]||_0x212d99['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3d982d(0x1e4)]===_0x3d982d(0x1cd)&&this[_0x3d982d(0x20e)]();const _0x5b4ed5=_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1e0)];Object[_0x3d982d(0x1f7)](_0x5b4ed5)['forEach'](_0x1ce5fd=>{const _0x2952b5=_0x3d982d;this[_0x2952b5(0x1e1)][_0x2952b5(0x1c3)](_0x1ce5fd['id'],_0x1ce5fd[_0x2952b5(0x193)]?JSON[_0x2952b5(0x1ce)](_0x1ce5fd[_0x2952b5(0x193)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3434ae=_0x1191b2;var _0x5040be;this['_status$'][_0x3434ae(0x1b1)](_0x3434ae(0x1ee)),(_0x5040be=this[_0x3434ae(0x1e7)])==null||_0x5040be['dispose']();}['_handleOnline'](){const _0x1ad42b=_0x1191b2;this[_0x1ad42b(0x1f2)][_0x1ad42b(0x1b1)](_0x1ad42b(0x1cd)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3b6203),_(0x3,_0x52f490(L)),_(0x4,_0x1133a0)],N);function _0x18ef(){const _0x2c07e1=['fill','colorChannel1','stringify','operations','_commandService','getUnitId','none','_status','defs','4569200XiUAfa','_commandDisposable','url(#$1','pipe','1588023xgFIcT','dispose','_init','displayName','offline','_handleNewChangeSets','You\x27re\x20not\x20following\x20the\x20presenter','subscribe','_status$','registerComponent','_uiPartsService','forEach','_handleOperation','values','sheet','PRESENTING','mask','setConfig','length','type','attrs','then','string','not-following','tag','pluginName','entries','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','univerjs-icon\x20univerjs-icon-','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','map','5191WjNups','LIVESHARE_NEW_HOST','IDLE','has','currentColor','_startFollowing','delete','trim','_handleNewHost','LIVESHARE_OPERATION','live-share.config','idSuffix','Start','init','svg','_configService','evenodd','FOLLOWING','_liveShareService','createInstance','_presenter','_stopPresenting','getInitialStates','UniverIcon','_startPresenting','_beIdle','getLiveShareCoordinatorSync','status$','div','mutations','unsubscribe','shouldShareOperation','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','UNIVER_SHEET','OPERATION','tryStartPresenting','Stop\x20presenting','553856mVrDyc','_handleOnline','_entities','_mountLiveShare','random','clear','toString','dispose$','_config','NEW_CHANGESETS','52ZweQzB','You\x27re\x20following\x20the\x20presenter','asObservable','get','1em','params','children','find','replace','_injector','18nInjSU','_handleOffline','univer-size-4','getStatus','UNIVER_UNKNOWN','549390GdTUZv','getLiveShareCoordinator','registerSharedOperation','onStarting','_sharedOperations','You\x27are\x20offline.','45732gZnCMh','HEADER_MENU','getValue','startFollowing','event$','defineProperty','button','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','complete','substring','getCurrentTypeOfUnit$','presenting','onRendered','NOT_FOLLOWING','next','set','_startLiveShareCoordinator','stopFollowing','_handleTerminate','presenter','override','Stop\x20following','unitId','21htOeON','add','_collabSession','data','use','includes','UNIVER_LIVE_SHARE_PLUGIN','getConfig','reverse','executeCommand','from','memberID','stopPresenting','path','Present\x20this\x20document','_unitID','getMemberID','getOwnPropertyDescriptor','OFFLINE','idle','parse','_stopFollowing','ONLINE','getTypeOfUnitAdded$','_reporters','current','xlink:href','305325bpcbWy','LiveShareIcon','end','following','send','requireSession','LIVESHARE_FETCH_OPERATIONS','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x18ef=function(){return _0x2c07e1;};return _0x18ef();}function Le(){const _0x3fc323=_0x1191b2,_0x5be799=_0x13c131(S),_0x29c354=_0x13c131(_0x13599b),_0x2130a8=_0x4a22ff(()=>_0x29c354[_0x3fc323(0x1ad)](_0x52ac2b['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x468fb7,_0x363d66]=_0x4c8df0(null),[_0x585c36,_0x8f7a2d]=_0x4c8df0(c['IDLE']),_0x13b400=_0x26e3e5(null);return _0x2e70ea(()=>(_0x2130a8&&_0x5be799[_0x3fc323(0x19e)](_0x2130a8[_0x3fc323(0x1e2)]())[_0x3fc323(0x1ff)](_0x5bb7fd=>{const _0xdf8946=_0x3fc323;_0x363d66(_0x5bb7fd),_0x13b400[_0xdf8946(0x1d3)]=_0x5bb7fd[_0xdf8946(0x178)]['subscribe'](_0x1a5505=>{_0x8f7a2d(_0x1a5505);});}),()=>{const _0x2794b0=_0x3fc323;var _0xd0e2c8;(_0xd0e2c8=_0x13b400[_0x2794b0(0x1d3)])==null||_0xd0e2c8[_0x2794b0(0x17b)](),_0x13b400[_0x2794b0(0x1d3)]=null;}),[_0x2130a8,_0x5be799]),_0x468fb7?_0x23bdaf(_0xa5e188,{'align':_0x3fc323(0x1d7),'disabled':_0x585c36===c[_0x3fc323(0x1cc)],'className':_0x3fc323(0x205),'overlay':_0x23bdaf(Re,{'status':_0x585c36,'coordinator':_0x468fb7}),'children':_0x23bdaf(_0x3fc323(0x1a9),{'className':_0x5bda25(_0x3fc323(0x1aa),{'univer-cursor-not-allowed':_0x585c36===c[_0x3fc323(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x585c36!==c[_0x3fc323(0x1cc)]}),'type':_0x3fc323(0x1a9),'children':_0x23bdaf(W,{'className':_0x3fc323(0x19a)})})}):null;}function Re(_0x4a220f){const _0x1c09ad=_0x1191b2,{status:_0x4cb5e6,coordinator:_0x103fd1}=_0x4a220f;switch(_0x4cb5e6){case c[_0x1c09ad(0x20b)]:return _0x23bdaf($e,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x16e)]:return _0x23bdaf(xe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1b0)]:return _0x23bdaf(Pe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1cc)]:return _0x23bdaf(Te,{});case c[_0x1c09ad(0x1f9)]:return _0x23bdaf(Ae,{'coordinator':_0x103fd1});default:return null;}}function $e(_0x41c802){const _0x310efb=_0x1191b2,{coordinator:_0x410a14}=_0x41c802;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x310efb(0x179),{'className':_0x310efb(0x1dc),'children':_0x310efb(0x1c8)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x410a14['tryStartPresenting'](),'children':_0x310efb(0x169)})]});}function xe(_0x480756){const _0x39a72a=_0x1191b2,{coordinator:_0x51204c}=_0x480756;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x39a72a(0x1dc),'children':_0x39a72a(0x18f)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x51204c[_0x39a72a(0x1b4)](),'children':_0x39a72a(0x1b8)})]});}function Pe(_0x11538d){const _0x523dae=_0x1191b2,{coordinator:_0x44e5c9}=_0x11538d;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x523dae(0x1dc),'children':_0x523dae(0x1f0)}),_0x23bdaf(_0x229044,{'variant':'text','onClick':()=>_0x44e5c9['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1a0e0f){const _0x1497a0=_0x1191b2,{coordinator:_0x29ba19}=_0x1a0e0f;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x1497a0(0x179),{'className':_0x1497a0(0x1dc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x23bdaf(_0x229044,{'variant':'default','onClick':()=>_0x29ba19[_0x1497a0(0x1c6)](),'children':_0x1497a0(0x183)})]});}function Te(){const _0x30693d=_0x1191b2;return _0x23bdaf(_0x2260a2,{'children':_0x30693d(0x1a2)});}var Fe=Object[_0x1191b2(0x1cb)],He=(_0x5ca343,_0x5b619b,_0x13067a,_0x3297af)=>{for(var _0x413a50=_0x3297af>0x1?void 0x0:_0x3297af?Fe(_0x5b619b,_0x13067a):_0x5b619b,_0x334f6c=_0x5ca343['length']-0x1,_0x14e78a;_0x334f6c>=0x0;_0x334f6c--)(_0x14e78a=_0x5ca343[_0x334f6c])&&(_0x413a50=_0x14e78a(_0x413a50)||_0x413a50);return _0x413a50;},A=(_0x23edb1,_0x466f95)=>(_0x1311a5,_0x268e25)=>_0x466f95(_0x1311a5,_0x268e25,_0x23edb1);let m=class extends _0x42f139{constructor(_0x4aea36,_0x330108){const _0x3bb5dc=_0x1191b2;super(),this[_0x3bb5dc(0x197)]=_0x4aea36,this[_0x3bb5dc(0x1f4)]=_0x330108,this[_0x3bb5dc(0x187)]();}[_0x1191b2(0x187)](){const _0x3041c6=_0x1191b2;this['disposeWithMe'](this[_0x3041c6(0x1f4)][_0x3041c6(0x1f3)](_0x344c8b[_0x3041c6(0x1a4)],()=>_0x1f7308(Le,this[_0x3041c6(0x197)])));}};m=He([A(0x0,_0x52f490(_0xfcc158)),A(0x1,_0x40fce5)],m);const ye=_0x1191b2(0x167),T={};var Ue=Object[_0x1191b2(0x1cb)],Ve=(_0x12e81c,_0x10d8ff,_0x4c1d34,_0x14a214)=>{const _0x5e97d3=_0x1191b2;for(var _0x32f752=_0x14a214>0x1?void 0x0:_0x14a214?Ue(_0x10d8ff,_0x4c1d34):_0x10d8ff,_0x3bb14c=_0x12e81c[_0x5e97d3(0x1fc)]-0x1,_0x111bb1;_0x3bb14c>=0x0;_0x3bb14c--)(_0x111bb1=_0x12e81c[_0x3bb14c])&&(_0x32f752=_0x111bb1(_0x32f752)||_0x32f752);return _0x32f752;},je=(_0x5ce6c1,_0x43bc64)=>(_0x20307b,_0x5a2e88)=>_0x43bc64(_0x20307b,_0x5a2e88,_0x5ce6c1);let I=class extends _0x42f139{constructor(_0x276cc9){const _0xdcceaf=_0x1191b2;super(),this[_0xdcceaf(0x16f)]=_0x276cc9,this[_0xdcceaf(0x1ec)]();}['_init'](){const _0x20c950=_0x1191b2;[_0x2e5eb8['id'],_0x4c04a3['id'],_0x22d280['id']][_0x20c950(0x1f5)](_0x4e1022=>{const _0x4ca05a=_0x20c950;this['disposeWithMe'](this[_0x4ca05a(0x16f)][_0x4ca05a(0x19f)](_0x4e1022));});}};I=Ve([je(0x0,_0x52f490(L))],I);var Me=Object[_0x1191b2(0x1a8)],ke=Object[_0x1191b2(0x1cb)],Ge=(_0x430524,_0x4c3d91,_0x2adbd6)=>_0x4c3d91 in _0x430524?Me(_0x430524,_0x4c3d91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2adbd6}):_0x430524[_0x4c3d91]=_0x2adbd6,We=(_0x4240b8,_0xe2fffc,_0x4b037f,_0x51f531)=>{const _0x247721=_0x1191b2;for(var _0x25052b=_0x51f531>0x1?void 0x0:_0x51f531?ke(_0xe2fffc,_0x4b037f):_0xe2fffc,_0x1411e3=_0x4240b8[_0x247721(0x1fc)]-0x1,_0x401bee;_0x1411e3>=0x0;_0x1411e3--)(_0x401bee=_0x4240b8[_0x1411e3])&&(_0x25052b=_0x401bee(_0x25052b)||_0x25052b);return _0x25052b;},F=(_0x22b2c0,_0x5a2661)=>(_0x375af8,_0x5beab9)=>_0x5a2661(_0x375af8,_0x5beab9,_0x22b2c0),B=(_0x403063,_0x516ba0,_0x2f7d83)=>Ge(_0x403063,typeof _0x516ba0!='symbol'?_0x516ba0+'':_0x516ba0,_0x2f7d83);const Ye=_0x1191b2(0x1c0);let b=class extends _0x597a77{constructor(_0x3e96e2=T,_0x452945,_0x3844ad){const _0x58b97e=_0x1191b2;super(),this[_0x58b97e(0x18c)]=_0x3e96e2,this[_0x58b97e(0x197)]=_0x452945,this[_0x58b97e(0x16c)]=_0x3844ad;const {..._0xde74f8}=_0x8b45b2({},T,this[_0x58b97e(0x18c)]);this['_configService'][_0x58b97e(0x1fb)](ye,_0xde74f8);}[_0x1191b2(0x1a0)](){const _0x3bc167=_0x1191b2;_0x277ea5(this[_0x3bc167(0x197)],_0x1a5bcb([[L],[S],[I],[m]],this[_0x3bc167(0x18c)][_0x3bc167(0x1b7)])),_0x412fe3(this[_0x3bc167(0x197)],[[I]]);}[_0x1191b2(0x1af)](){const _0x46bbf4=_0x1191b2;_0x412fe3(this[_0x46bbf4(0x197)],[[m]]);}};B(b,_0x1191b2(0x1fd),_0x52ac2b[_0x1191b2(0x19c)]),B(b,_0x1191b2(0x203),Ye),b=We([_0x31ac97(_0x42c667),F(0x1,_0x52f490(_0xfcc158)),F(0x2,_0x3b6203)],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 _0x35d9e9=_0x2a7c;(function(_0x2bb005,_0x460a4f){const _0x1fa35f=_0x2a7c,_0x4711d6=_0x2bb005();while(!![]){try{const _0x1239f2=parseInt(_0x1fa35f(0xa8))/0x1+parseInt(_0x1fa35f(0xae))/0x2+-parseInt(_0x1fa35f(0xcf))/0x3+parseInt(_0x1fa35f(0x99))/0x4+-parseInt(_0x1fa35f(0xc6))/0x5*(parseInt(_0x1fa35f(0xc5))/0x6)+parseInt(_0x1fa35f(0xde))/0x7*(-parseInt(_0x1fa35f(0xb7))/0x8)+parseInt(_0x1fa35f(0xa1))/0x9*(parseInt(_0x1fa35f(0xee))/0xa);if(_0x1239f2===_0x460a4f)break;else _0x4711d6['push'](_0x4711d6['shift']());}catch(_0x9d7843){_0x4711d6['push'](_0x4711d6['shift']());}}}(_0x5f0c,0xd327c));var J=Object[_0x35d9e9(0xa3)],K=(_0x1dfab8,_0x14446c,_0x3b7d52)=>_0x14446c in _0x1dfab8?J(_0x1dfab8,_0x14446c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b7d52}):_0x1dfab8[_0x14446c]=_0x3b7d52,u=(_0x4e487b,_0x23c1bd,_0x300cac)=>K(_0x4e487b,typeof _0x23c1bd!='symbol'?_0x23c1bd+'':_0x23c1bd,_0x300cac);import{Disposable as _0x59855c,toDisposable as _0x1c91a3,IUniverInstanceService as _0x71ffd,Inject as _0x2221d8,Injector as _0x1f291d,IConfigService as _0x4d4902,ICommandService as _0x41e10a,RxDisposable as _0x29d644,UniverInstanceType as _0x51d6f1,DisposableCollection as _0x5598f6,CommandType as _0x247639,DependentOn as _0x476a80,Plugin as _0x3fd390,merge as _0x47d277,registerDependencies as _0x4ce412,mergeOverrideWithDependencies as _0x4ddc40,touchDependencies as _0x269b3b}from'@univerjs/core';import{useDependency as _0x3da98e,useObservable as _0x4a59c5,IUIPartsService as _0x5c926c,BuiltInUIPart as _0x25440a,connectInjector as _0x68f671}from'@univerjs/ui';import{jsx as _0x3df5d3,jsxs as _0x879f1c,Fragment as _0x521211}from'react/jsx-runtime';import{Dropdown as _0x5a5b05,clsx as _0x5e9053,Button as _0x36810d}from'@univerjs/design';import{useRef as _0x45258b,createElement as _0x42e434,forwardRef as _0xa7990,useState as _0x35fc23,useEffect as _0x4a7e39}from'react';import{CollaborationEvent as _0x27a16f,parseProtocolChangeset as _0x381ef2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2622ad,SessionStatus as _0x5be8ca,UniverCollaborationClientPlugin as _0x3535e7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x9a593f,SetWorksheetActiveOperation as _0x4cc0de}from'@univerjs/sheets';import{BehaviorSubject as _0x51f5dc,Subject as _0x149954}from'rxjs';import{takeUntil as _0x24acb0,throttleTime as _0x1a12f4}from'rxjs/operators';import{SetZoomRatioOperation as _0x2138c0,SetScrollOperation as _0x56070b}from'@univerjs/sheets-ui';function k({ref:_0x33cfee,..._0x4f610a}){const _0x458603=_0x35d9e9,{icon:_0xc74975,id:_0x5cd622,className:_0x4460da,extend:_0x54b832,..._0x2435b1}=_0x4f610a,_0x651312=(_0x458603(0xb1)+_0x5cd622+'\x20'+(_0x4460da||''))['trim'](),_0x5da7da=_0x45258b('_'+Oe());return G(_0xc74975,''+_0x5cd622,{'defIds':_0xc74975[_0x458603(0x110)],'idSuffix':_0x5da7da[_0x458603(0x10a)]},{'ref':_0x33cfee,'className':_0x651312,..._0x2435b1},_0x54b832);}function G(_0x1d74a7,_0x1f1e54,_0x1115a9,_0x4af998,_0x1991f8){const _0x4d2e7a=_0x35d9e9;return _0x42e434(_0x1d74a7[_0x4d2e7a(0x117)],{'key':_0x1f1e54,...be(_0x1d74a7,_0x1115a9,_0x1991f8),..._0x4af998},(Ee(_0x1d74a7,_0x1115a9)[_0x4d2e7a(0xe1)]||[])['map']((_0x4adcc2,_0x41bfaa)=>G(_0x4adcc2,_0x1f1e54+'-'+_0x1d74a7['tag']+'-'+_0x41bfaa,_0x1115a9,void 0x0,_0x1991f8)));}function be(_0x1c73dd,_0x330f3b,_0x5f76f0){const _0x396bc9=_0x35d9e9,_0xf0fbaf={..._0x1c73dd[_0x396bc9(0xbb)]};_0x5f76f0!=null&&_0x5f76f0[_0x396bc9(0xc4)]&&_0xf0fbaf['fill']==='colorChannel1'&&(_0xf0fbaf[_0x396bc9(0xb4)]=_0x5f76f0[_0x396bc9(0xc4)]),_0x1c73dd['tag']===_0x396bc9(0xfc)&&_0xf0fbaf['id']&&(_0xf0fbaf['id']=_0xf0fbaf['id']+_0x330f3b[_0x396bc9(0xfb)]),Object[_0x396bc9(0xdb)](_0xf0fbaf)[_0x396bc9(0xbc)](([_0x2c411f,_0x429707])=>{const _0x138597=_0x396bc9;_0x2c411f===_0x138597(0xfc)&&typeof _0x429707==_0x138597(0xdd)&&(_0xf0fbaf[_0x2c411f]=_0x429707[_0x138597(0xa2)](/url\(#(.*)\)/,_0x138597(0x109)+_0x330f3b[_0x138597(0xfb)]+')'));});const {defIds:_0x2a1eeb}=_0x330f3b;return!_0x2a1eeb||_0x2a1eeb['length']===0x0||(_0x1c73dd['tag']===_0x396bc9(0xdf)&&_0xf0fbaf[_0x396bc9(0xfe)]&&(_0xf0fbaf[_0x396bc9(0xfe)]=_0xf0fbaf['xlink:href']+_0x330f3b[_0x396bc9(0xfb)]),Object[_0x396bc9(0xdb)](_0xf0fbaf)[_0x396bc9(0xbc)](([_0x467cb6,_0x4483e7])=>{const _0x128f61=_0x396bc9;typeof _0x4483e7=='string'&&(_0xf0fbaf[_0x467cb6]=_0x4483e7[_0x128f61(0xa2)](/url\(#(.*)\)/,_0x128f61(0x109)+_0x330f3b[_0x128f61(0xfb)]+')'));})),_0xf0fbaf;}function Ee(_0x3f5e69,_0x3683b4){const _0x52b0bb=_0x35d9e9;var _0x218f0d;const {defIds:_0x402456}=_0x3683b4;return!_0x402456||_0x402456[_0x52b0bb(0xba)]===0x0?_0x3f5e69:_0x3f5e69[_0x52b0bb(0x117)]===_0x52b0bb(0xd3)&&((_0x218f0d=_0x3f5e69[_0x52b0bb(0xe1)])!=null&&_0x218f0d['length'])?{..._0x3f5e69,'children':_0x3f5e69['children'][_0x52b0bb(0xfd)](_0x308438=>typeof _0x308438[_0x52b0bb(0xbb)]['id']==_0x52b0bb(0xdd)&&_0x402456&&_0x402456[_0x52b0bb(0xac)](_0x308438['attrs']['id'])?{..._0x308438,'attrs':{..._0x308438[_0x52b0bb(0xbb)],'id':_0x308438['attrs']['id']+_0x3683b4['idSuffix']}}:_0x308438)}:_0x3f5e69;}function Oe(){const _0x30e257=_0x35d9e9;return Math[_0x30e257(0xa4)]()[_0x30e257(0x119)](0x24)[_0x30e257(0xdc)](0x2,0x8);}k[_0x35d9e9(0x9d)]=_0x35d9e9(0xe9);const we={'tag':_0x35d9e9(0x121),'attrs':{'xmlns':_0x35d9e9(0x122),'fill':_0x35d9e9(0xb6),'viewBox':_0x35d9e9(0x11c),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x35d9e9(0xbf),'d':_0x35d9e9(0x125)}},{'tag':_0x35d9e9(0x11f),'attrs':{'fill':'currentColor','d':_0x35d9e9(0x10c),'fillRule':_0x35d9e9(0x10e),'clipRule':_0x35d9e9(0x10e)}}]},W=_0xa7990(function(_0x3881ee,_0x410593){const _0x1066ee=_0x35d9e9;return _0x42e434(k,Object[_0x1066ee(0xb9)]({},_0x3881ee,{'id':'live-share-icon','ref':_0x410593,'icon':we}));});W[_0x35d9e9(0x9d)]=_0x35d9e9(0xaa);class L extends _0x59855c{constructor(){const _0x375522=_0x35d9e9;super(...arguments),u(this,_0x375522(0xe8),new Set()),u(this,'_reporters',new Set());}[_0x35d9e9(0xf6)](_0x2f812d){const _0x340631=_0x35d9e9;return this[_0x340631(0xe8)][_0x340631(0x10b)](_0x2f812d),_0x1c91a3(()=>this[_0x340631(0xe8)][_0x340631(0xbd)](_0x2f812d));}['registerInitialStateReporter'](_0x22ced4){const _0x162814=_0x35d9e9;return this[_0x162814(0xf7)][_0x162814(0x10b)](_0x22ced4),_0x1c91a3(()=>this[_0x162814(0xf7)]['delete'](_0x22ced4));}['shouldShareOperation'](_0x2102a2){const _0x5b7c0d=_0x35d9e9;return this[_0x5b7c0d(0xe8)]['has'](_0x2102a2);}[_0x35d9e9(0x12c)](_0x3519e8){const _0x4f9bd5=_0x35d9e9;return Array['from'](this[_0x4f9bd5(0xf7)])['map'](_0x5200ec=>_0x5200ec(_0x3519e8));}}var Ne=Object[_0x35d9e9(0xd0)],Y=(_0x472cdf,_0x294c62,_0x2f2977,_0xf869b1)=>{const _0x156450=_0x35d9e9;for(var _0x526633=_0xf869b1>0x1?void 0x0:_0xf869b1?Ne(_0x294c62,_0x2f2977):_0x294c62,_0x4dd6cd=_0x472cdf[_0x156450(0xba)]-0x1,_0xbb9ee5;_0x4dd6cd>=0x0;_0x4dd6cd--)(_0xbb9ee5=_0x472cdf[_0x4dd6cd])&&(_0x526633=_0xbb9ee5(_0x526633)||_0x526633);return _0x526633;},_=(_0xf87c42,_0x58667f)=>(_0x3b1284,_0x7946d1)=>_0x58667f(_0x3b1284,_0x7946d1,_0xf87c42);let S=class extends _0x29d644{constructor(_0x3525d1,_0x4e3781,_0x46bb4e){const _0x1e4db9=_0x35d9e9;super(),u(this,'_entities',new Map()),(this[_0x1e4db9(0xb5)]=_0x3525d1,this[_0x1e4db9(0xc3)]=_0x4e3781,this[_0x1e4db9(0xd1)]=_0x46bb4e,this['_init']());}async[_0x35d9e9(0xab)](_0x2e46e8){const _0x2d6dc7=_0x35d9e9;return this[_0x2d6dc7(0xed)][_0x2d6dc7(0x118)](_0x2e46e8)||await this[_0x2d6dc7(0x124)](_0x2e46e8),this[_0x2d6dc7(0xed)][_0x2d6dc7(0xc1)](_0x2e46e8);}[_0x35d9e9(0x130)](_0x54b44a){const _0x27b042=_0x35d9e9;var _0x34c434;return(_0x34c434=this['_entities'][_0x27b042(0xc1)](_0x54b44a))!=null?_0x34c434:null;}[_0x35d9e9(0x11a)](){const _0x239d44=_0x35d9e9;this['_univerInstanceService'][_0x239d44(0xe0)](_0x51d6f1['UNIVER_SHEET'])[_0x239d44(0x96)](_0x24acb0(this[_0x239d44(0xda)]))['subscribe'](async _0x41deff=>{const _0x362acf=_0x239d44,_0x52452f=_0x41deff[_0x362acf(0x100)]();this[_0x362acf(0xed)][_0x362acf(0x118)](_0x52452f)||this[_0x362acf(0x124)](_0x52452f);}),this[_0x239d44(0xb5)][_0x239d44(0xef)](_0x51d6f1[_0x239d44(0x91)])[_0x239d44(0x96)](_0x24acb0(this[_0x239d44(0xda)]))[_0x239d44(0xa0)](_0xfe3166=>{const _0x1e7d84=_0x239d44,_0x20d27e=_0xfe3166['getUnitId'](),_0x167a64=this[_0x1e7d84(0xed)]['get'](_0x20d27e);_0x167a64==null||_0x167a64[_0x1e7d84(0xe5)]();});}async[_0x35d9e9(0x124)](_0x2651d7){const _0x7514d5=_0x35d9e9,_0x3a535c=await this[_0x7514d5(0xd1)][_0x7514d5(0xf2)](_0x2651d7),_0x31ba9e=this[_0x7514d5(0xc3)][_0x7514d5(0xf8)](N,_0x2651d7,_0x3a535c);return _0x31ba9e[_0x7514d5(0x11b)](),this[_0x7514d5(0xed)][_0x7514d5(0x10f)](_0x2651d7,_0x31ba9e),_0x31ba9e;}};S=Y([_(0x0,_0x71ffd),_(0x1,_0x2221d8(_0x1f291d)),_(0x2,_0x2221d8(_0x2622ad))],S);var c=(_0x4c138b=>(_0x4c138b[_0x35d9e9(0xc7)]=_0x35d9e9(0xc9),_0x4c138b['IDLE']=_0x35d9e9(0x93),_0x4c138b['FOLLOWING']=_0x35d9e9(0xe7),_0x4c138b['NOT_FOLLOWING']=_0x35d9e9(0x9c),_0x4c138b[_0x35d9e9(0x11e)]='presenting',_0x4c138b))(c||{});const Ce=_0x35d9e9(0xce),De=0xc8;let N=class extends _0x29d644{constructor(_0x1a0923,_0xda276d,_0x500eb8,_0x32d7c7,_0x244db7){const _0x34102a=_0x35d9e9;super(),u(this,_0x34102a(0xa9),new _0x51f5dc(_0x34102a(0x93))),u(this,'status$',this[_0x34102a(0xa9)]['asObservable']()),u(this,_0x34102a(0x11a),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x34102a(0x12b)]=_0x1a0923,this[_0x34102a(0x111)]=_0xda276d,this[_0x34102a(0x120)]=_0x500eb8,this[_0x34102a(0x9b)]=_0x32d7c7,this[_0x34102a(0xcb)]=_0x244db7);}get[_0x35d9e9(0x112)](){const _0x463f68=_0x35d9e9;return this[_0x463f68(0xa9)][_0x463f68(0x132)]();}[_0x35d9e9(0xe5)](){const _0x1ff2ee=_0x35d9e9;var _0x181e52;(_0x181e52=this[_0x1ff2ee(0xb2)])==null||_0x181e52[_0x1ff2ee(0xe5)](),this[_0x1ff2ee(0xa9)][_0x1ff2ee(0xb3)](_0x1ff2ee(0x93)),this['_status$']['complete']();}[_0x35d9e9(0x9e)](){const _0x48b415=_0x35d9e9;return this[_0x48b415(0x112)];}['init'](){const _0x18ada0=_0x35d9e9;this['_init']||(this[_0x18ada0(0x11a)]=!0x0,this[_0x18ada0(0x111)]['sessionStatus$'][_0x18ada0(0x96)](_0x24acb0(this[_0x18ada0(0xda)]))[_0x18ada0(0xa0)](_0xb9fc7d=>{const _0x30b161=_0x18ada0;switch(_0xb9fc7d){case _0x5be8ca['OFFLINE']:this[_0x30b161(0x97)]();break;case _0x5be8ca[_0x30b161(0x113)]:this[_0x30b161(0xe6)]();break;}}),this[_0x18ada0(0x111)]['event$'][_0x18ada0(0x96)](_0x24acb0(this['dispose$']))['subscribe'](_0x167b5f=>{const _0x4546ee=_0x18ada0,{eventID:_0x52a7fd}=_0x167b5f;switch(_0x52a7fd){case _0x27a16f[_0x4546ee(0x10d)]:this['_handleNewHost'](_0x167b5f);break;case _0x27a16f[_0x4546ee(0x12f)]:this['_handleOperation'](_0x167b5f);break;case _0x27a16f[_0x4546ee(0x12a)]:this['_handleTerminate']();break;case _0x27a16f['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x167b5f);break;}}));}[_0x35d9e9(0x126)](){const _0x24fa67=_0x35d9e9;this[_0x24fa67(0x111)][_0x24fa67(0xbe)]({'eventID':_0x27a16f[_0x24fa67(0x12d)],'data':{'unitID':this[_0x24fa67(0x12b)],'userID':this[_0x24fa67(0x111)][_0x24fa67(0xb0)]()}},this[_0x24fa67(0x12b)]);}[_0x35d9e9(0x103)](){const _0x1fb947=_0x35d9e9;this[_0x1fb947(0x112)]===_0x1fb947(0xea)&&(this[_0x1fb947(0xa9)]['next'](_0x1fb947(0x93)),this[_0x1fb947(0x111)][_0x1fb947(0xbe)]({'eventID':_0x27a16f[_0x1fb947(0x12a)],'data':{'unitID':this[_0x1fb947(0x12b)]}},this['_unitID']));}[_0x35d9e9(0x98)](){const _0x292e7c=_0x35d9e9;this['_status']===_0x292e7c(0x9c)&&(this['_status$'][_0x292e7c(0xb3)]('following'),this[_0x292e7c(0xff)]());}[_0x35d9e9(0xf0)](){const _0x218f24=_0x35d9e9;this[_0x218f24(0x112)]==='following'&&this[_0x218f24(0x108)]();}['_handleNewHost'](_0x50539d){const _0x2f128f=_0x35d9e9,{presenter:_0x339e0f}=_0x50539d[_0x2f128f(0xcd)],_0x36d0b2=this['_collabSession'][_0x2f128f(0xb0)]();this[_0x2f128f(0x92)]=_0x339e0f,_0x339e0f===_0x36d0b2?(this[_0x2f128f(0x108)](),this['_startPresenting']()):this['_status']!==_0x2f128f(0x9c)&&(this[_0x2f128f(0xc2)](),this[_0x2f128f(0xff)]());}['_fetchOperations'](){const _0x4a7e33=_0x35d9e9,_0x3e52e8={'eventID':_0x27a16f[_0x4a7e33(0xad)]};this[_0x4a7e33(0x111)]['send'](_0x3e52e8,this[_0x4a7e33(0x12b)]);}['_handleTerminate'](){const _0x4f3c0b=_0x35d9e9;this[_0x4f3c0b(0x92)]=null,this['_status']!==_0x4f3c0b(0xea)&&this[_0x4f3c0b(0x95)]();}['_handleNewChangeSets'](_0x48624f){const _0x331445=_0x35d9e9;if(this[_0x331445(0x112)]===_0x331445(0xe7)&&this[_0x331445(0x92)]===_0x48624f[_0x331445(0xcd)][_0x331445(0x9f)]){const _0x57abff=_0x381ef2(_0x48624f[_0x331445(0xcd)])[_0x331445(0x129)][_0x331445(0xfa)]()['find'](_0x3d32bc=>_0x3d32bc['id']===_0x9a593f['id']);if(_0x57abff){const _0x207c3a=_0x57abff[_0x331445(0xaf)][_0x331445(0x114)],_0x42fc1f=_0x57abff[_0x331445(0xaf)][_0x331445(0x107)]['id'];setTimeout(()=>{const _0x525022=_0x331445;this[_0x525022(0xcb)][_0x525022(0x101)](_0x4cc0de['id'],{'unitId':_0x207c3a,'subUnitId':_0x42fc1f},{'fromCollab':!0x0});});}}}[_0x35d9e9(0xec)](){const _0x9b5e2a=_0x35d9e9;this['_status$'][_0x9b5e2a(0xb3)]('presenting');const _0x3e7417=new Map(),_0x249a26=this[_0x9b5e2a(0xb2)]=new _0x5598f6();_0x249a26[_0x9b5e2a(0x10b)](_0x1c91a3(()=>{const _0x2ac501=_0x9b5e2a;_0x3e7417[_0x2ac501(0xbc)](_0x47dc37=>_0x47dc37['complete']()),_0x3e7417[_0x2ac501(0xf9)]();})),_0x249a26[_0x9b5e2a(0x10b)](this[_0x9b5e2a(0xcb)][_0x9b5e2a(0xd8)](_0x38b4c5=>{const _0x591edf=_0x9b5e2a;var _0x15e823;if(_0x38b4c5['type']!==_0x247639[_0x591edf(0xca)]||!this[_0x591edf(0x9b)][_0x591edf(0xd5)](_0x38b4c5['id']))return;const {id:_0x5a4fc6}=_0x38b4c5;let _0x1e8661;_0x3e7417[_0x591edf(0x118)](_0x5a4fc6)?_0x1e8661=_0x3e7417[_0x591edf(0xc1)](_0x5a4fc6):(_0x1e8661=new _0x149954(),_0x3e7417['set'](_0x5a4fc6,_0x1e8661),_0x1e8661[_0x591edf(0x96)](_0x1a12f4((_0x15e823=this[_0x591edf(0x120)]['getConfig'](Ce))!=null?_0x15e823:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x439bd5=>{const _0x3bd401=_0x591edf;this[_0x3bd401(0x111)][_0x3bd401(0xbe)]({'eventID':_0x27a16f[_0x3bd401(0x12f)],'data':{'unitID':this[_0x3bd401(0x12b)],'operations':{[_0x439bd5['id']]:{'id':_0x439bd5['id'],'params':JSON[_0x3bd401(0xd2)](_0x439bd5['params'])}}}},this[_0x3bd401(0x12b)]);})),_0x1e8661[_0x591edf(0xb3)](_0x38b4c5);})),this[_0x9b5e2a(0x9b)]['getInitialStates'](this['_unitID'])[_0x9b5e2a(0xbc)](_0x58b740=>this['_collabSession'][_0x9b5e2a(0xbe)]({'eventID':_0x27a16f[_0x9b5e2a(0x12f)],'data':{'unitID':this[_0x9b5e2a(0x12b)],'operations':{[_0x58b740['id']]:{'id':_0x58b740['id'],'params':JSON['stringify'](_0x58b740[_0x9b5e2a(0xaf)])}}}},this[_0x9b5e2a(0x12b)]));}[_0x35d9e9(0xc2)](){const _0x26ebc2=_0x35d9e9;var _0x1686e1;this[_0x26ebc2(0xa9)][_0x26ebc2(0xb3)](_0x26ebc2(0x93)),(_0x1686e1=this[_0x26ebc2(0xb2)])==null||_0x1686e1[_0x26ebc2(0xe5)](),this[_0x26ebc2(0xb2)]=null;}['_startFollowing'](){const _0x197408=_0x35d9e9;var _0xdc2e1b;(_0xdc2e1b=this[_0x197408(0xb2)])==null||_0xdc2e1b[_0x197408(0xe5)](),this[_0x197408(0xa9)][_0x197408(0xb3)](_0x197408(0xe7));}[_0x35d9e9(0x95)](){const _0x4aeab8=_0x35d9e9;var _0x2db3a1;this[_0x4aeab8(0xa9)][_0x4aeab8(0xb3)](_0x4aeab8(0x93)),(_0x2db3a1=this['_commandDisposable'])==null||_0x2db3a1[_0x4aeab8(0xe5)](),this[_0x4aeab8(0xb2)]=null;}[_0x35d9e9(0x108)](){const _0x25772f=_0x35d9e9;var _0x51e377;this['_status$'][_0x25772f(0xb3)](_0x25772f(0x9c)),(_0x51e377=this[_0x25772f(0xb2)])==null||_0x51e377[_0x25772f(0xe5)]();}['_handleOperation'](_0x328691){const _0x47c7f0=_0x35d9e9;if(['presenting',_0x47c7f0(0x9c),'offline']['includes'](this[_0x47c7f0(0x112)])||!_0x328691[_0x47c7f0(0xcd)][_0x47c7f0(0xf4)]||_0x328691[_0x47c7f0(0xcd)][_0x47c7f0(0xf4)]===this[_0x47c7f0(0x111)][_0x47c7f0(0xb0)]())return;this['_status']===_0x47c7f0(0x93)&&this['_startFollowing']();const _0x539a7b=_0x328691[_0x47c7f0(0xcd)]['operations'];Object[_0x47c7f0(0x123)](_0x539a7b)[_0x47c7f0(0xbc)](_0x4d8744=>{const _0x462d30=_0x47c7f0;this['_commandService']['executeCommand'](_0x4d8744['id'],_0x4d8744[_0x462d30(0xaf)]?JSON[_0x462d30(0x102)](_0x4d8744['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x377532=_0x35d9e9;var _0x51a0fb;this[_0x377532(0xa9)]['next'](_0x377532(0xc9)),(_0x51a0fb=this['_commandDisposable'])==null||_0x51a0fb[_0x377532(0xe5)]();}[_0x35d9e9(0xe6)](){const _0x29a564=_0x35d9e9;this[_0x29a564(0xa9)][_0x29a564(0xb3)](_0x29a564(0x93)),this[_0x29a564(0xeb)]();}};N=Y([_(0x2,_0x4d4902),_(0x3,_0x2221d8(L)),_(0x4,_0x41e10a)],N);function Le(){const _0x5bc7d8=_0x35d9e9,_0x465581=_0x3da98e(S),_0x7f5d38=_0x3da98e(_0x71ffd),_0xd4d6f9=_0x4a59c5(()=>_0x7f5d38[_0x5bc7d8(0x105)](_0x51d6f1[_0x5bc7d8(0x91)]),void 0x0,!0x1,[]),[_0x1a1c38,_0x3f6638]=_0x35fc23(null),[_0xd7627f,_0x5011be]=_0x35fc23(c[_0x5bc7d8(0xc0)]),_0x53e070=_0x45258b(null);return _0x4a7e39(()=>(_0xd4d6f9&&_0x465581['getLiveShareCoordinator'](_0xd4d6f9['getUnitId']())['then'](_0x1a8fe2=>{const _0x2e1a28=_0x5bc7d8;_0x3f6638(_0x1a8fe2),_0x53e070[_0x2e1a28(0x10a)]=_0x1a8fe2['status$'][_0x2e1a28(0xa0)](_0x537f60=>{_0x5011be(_0x537f60);});}),()=>{const _0x238ea4=_0x5bc7d8;var _0x47d86e;(_0x47d86e=_0x53e070['current'])==null||_0x47d86e[_0x238ea4(0xa5)](),_0x53e070[_0x238ea4(0x10a)]=null;}),[_0xd4d6f9,_0x465581]),_0x1a1c38?_0x3df5d3(_0x5a5b05,{'align':_0x5bc7d8(0xf1),'disabled':_0xd7627f===c[_0x5bc7d8(0xc7)],'className':_0x5bc7d8(0x128),'overlay':_0x3df5d3(Re,{'status':_0xd7627f,'coordinator':_0x1a1c38}),'children':_0x3df5d3('button',{'className':_0x5e9053('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xd7627f===c[_0x5bc7d8(0xc7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xd7627f!==c['OFFLINE']}),'type':'button','children':_0x3df5d3(W,{'className':_0x5bc7d8(0xe2)})})}):null;}function Re(_0x1b5587){const _0x521532=_0x35d9e9,{status:_0x50dc03,coordinator:_0x17f900}=_0x1b5587;switch(_0x50dc03){case c[_0x521532(0xc0)]:return _0x3df5d3($e,{'coordinator':_0x17f900});case c['FOLLOWING']:return _0x3df5d3(xe,{'coordinator':_0x17f900});case c[_0x521532(0xd7)]:return _0x3df5d3(Pe,{'coordinator':_0x17f900});case c['OFFLINE']:return _0x3df5d3(Te,{});case c[_0x521532(0x11e)]:return _0x3df5d3(Ae,{'coordinator':_0x17f900});default:return null;}}function $e(_0x599f27){const _0x352f2d=_0x35d9e9,{coordinator:_0xb79f4}=_0x599f27;return _0x879f1c(_0x521211,{'children':[_0x3df5d3(_0x352f2d(0x106),{'className':_0x352f2d(0xf3),'children':'Present\x20this\x20document'}),_0x3df5d3(_0x36810d,{'onClick':()=>_0xb79f4[_0x352f2d(0x126)](),'children':'Start'})]});}function xe(_0x3bbc8a){const _0x201fb5=_0x35d9e9,{coordinator:_0x522b4c}=_0x3bbc8a;return _0x879f1c(_0x521211,{'children':[_0x3df5d3(_0x201fb5(0x106),{'className':_0x201fb5(0xf3),'children':_0x201fb5(0xc8)}),_0x3df5d3(_0x36810d,{'onClick':()=>_0x522b4c[_0x201fb5(0xf0)](),'children':_0x201fb5(0x11d)})]});}function Pe(_0x17f6b2){const _0xdb006e=_0x35d9e9,{coordinator:_0x15b7f2}=_0x17f6b2;return _0x879f1c(_0x521211,{'children':[_0x3df5d3(_0xdb006e(0x106),{'className':_0xdb006e(0xf3),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3df5d3(_0x36810d,{'variant':_0xdb006e(0xd4),'onClick':()=>_0x15b7f2[_0xdb006e(0x98)](),'children':_0xdb006e(0xa7)})]});}function Ae(_0x3470d7){const _0x3f1aef=_0x35d9e9,{coordinator:_0x195134}=_0x3470d7;return _0x879f1c(_0x521211,{'children':[_0x3df5d3(_0x3f1aef(0x106),{'className':_0x3f1aef(0xf3),'children':_0x3f1aef(0x104)}),_0x3df5d3(_0x36810d,{'variant':'default','onClick':()=>_0x195134[_0x3f1aef(0x103)](),'children':_0x3f1aef(0xb8)})]});}function Te(){const _0x2aced7=_0x35d9e9;return _0x3df5d3(_0x521211,{'children':_0x2aced7(0x131)});}var Fe=Object[_0x35d9e9(0xd0)],He=(_0x989a7e,_0x44b788,_0x4ab212,_0x302d39)=>{const _0x512f23=_0x35d9e9;for(var _0x638353=_0x302d39>0x1?void 0x0:_0x302d39?Fe(_0x44b788,_0x4ab212):_0x44b788,_0xf09057=_0x989a7e[_0x512f23(0xba)]-0x1,_0x497758;_0xf09057>=0x0;_0xf09057--)(_0x497758=_0x989a7e[_0xf09057])&&(_0x638353=_0x497758(_0x638353)||_0x638353);return _0x638353;},A=(_0x3ed7f7,_0x56275f)=>(_0x2a1d52,_0x513c6e)=>_0x56275f(_0x2a1d52,_0x513c6e,_0x3ed7f7);let m=class extends _0x59855c{constructor(_0x1f1b71,_0x5b3eb9){const _0x329c61=_0x35d9e9;super(),this[_0x329c61(0xc3)]=_0x1f1b71,this[_0x329c61(0xe4)]=_0x5b3eb9,this[_0x329c61(0x127)]();}['_mountLiveShare'](){const _0x4e7f06=_0x35d9e9;this[_0x4e7f06(0x9a)](this[_0x4e7f06(0xe4)]['registerComponent'](_0x25440a[_0x4e7f06(0x116)],()=>_0x68f671(Le,this[_0x4e7f06(0xc3)])));}};function _0x5f0c(){const _0x1afb58=['Start\x20following','1573030RAeZhv','_status$','LiveShareIcon','getLiveShareCoordinator','includes','LIVESHARE_FETCH_OPERATIONS','1605000nxleOU','params','getMemberID','univerjs-icon\x20univerjs-icon-','_commandDisposable','next','fill','_univerInstanceService','none','40pAFAXW','Stop\x20presenting','assign','length','attrs','forEach','delete','send','currentColor','IDLE','get','_stopPresenting','_injector','colorChannel1','754638HXbHwH','30nLPGXs','OFFLINE','You\x27re\x20following\x20the\x20presenter','offline','OPERATION','_commandService','type','data','SAME_OPERATION_SHARE_INTERVAL','4131432xUrAlg','getOwnPropertyDescriptor','_collabSessionService','stringify','defs','text','shouldShareOperation','_config','NOT_FOLLOWING','onCommandExecuted','UNIVER_UNKNOWN','dispose$','entries','substring','string','1342376iCknva','use','getTypeOfUnitAdded$','children','univer-size-4','onRendered','_uiPartsService','dispose','_handleOnline','following','_sharedOperations','UniverIcon','presenting','_fetchOperations','_startPresenting','_entities','90jQEYer','getTypeOfUnitDisposed$','stopFollowing','end','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','presenter','symbol','registerSharedOperation','_reporters','createInstance','clear','reverse','idSuffix','mask','map','xlink:href','_startFollowing','getUnitId','executeCommand','parse','stopPresenting','You\x27re\x20presenting\x20the\x20document','getCurrentTypeOfUnit$','div','sheet','_stopFollowing','url(#$1','current','add','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','LIVESHARE_NEW_HOST','evenodd','set','defIds','_collabSession','_status','ONLINE','unitId','pluginName','HEADER_MENU','tag','has','toString','_init','init','0\x200\x2017\x2017','Stop\x20following','PRESENTING','path','_configService','svg','http://www.w3.org/2000/svg','values','_startLiveShareCoordinator','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','tryStartPresenting','_mountLiveShare','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','mutations','LIVESHARE_TERMINATE','_unitID','getInitialStates','LIVESHARE_REQUEST_HOST','setConfig','LIVESHARE_OPERATION','getLiveShareCoordinatorSync','You\x27are\x20offline.','getValue','UNIVER_SHEET','_presenter','idle','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','pipe','_handleOffline','startFollowing','1975924JCtmiQ','disposeWithMe','_liveShareService','not-following','displayName','getStatus','memberID','subscribe','1086003dhiBdz','replace','defineProperty','random','unsubscribe','override'];_0x5f0c=function(){return _0x1afb58;};return _0x5f0c();}m=He([A(0x0,_0x2221d8(_0x1f291d)),A(0x1,_0x5c926c)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x5cc5aa,_0x4fa110,_0x475f97,_0x192fd2)=>{const _0x5d2d0f=_0x35d9e9;for(var _0x5762bc=_0x192fd2>0x1?void 0x0:_0x192fd2?Ue(_0x4fa110,_0x475f97):_0x4fa110,_0x428a10=_0x5cc5aa[_0x5d2d0f(0xba)]-0x1,_0x2d3fcf;_0x428a10>=0x0;_0x428a10--)(_0x2d3fcf=_0x5cc5aa[_0x428a10])&&(_0x5762bc=_0x2d3fcf(_0x5762bc)||_0x5762bc);return _0x5762bc;},je=(_0x35cffa,_0x24c64c)=>(_0x2cb426,_0x3fe931)=>_0x24c64c(_0x2cb426,_0x3fe931,_0x35cffa);let I=class extends _0x59855c{constructor(_0x4de518){const _0x4f7595=_0x35d9e9;super(),this[_0x4f7595(0x9b)]=_0x4de518,this[_0x4f7595(0x11a)]();}[_0x35d9e9(0x11a)](){[_0x2138c0['id'],_0x56070b['id'],_0x4cc0de['id']]['forEach'](_0x2f985f=>{const _0x526b83=_0x2a7c;this[_0x526b83(0x9a)](this[_0x526b83(0x9b)][_0x526b83(0xf6)](_0x2f985f));});}};I=Ve([je(0x0,_0x2221d8(L))],I);var Me=Object[_0x35d9e9(0xa3)],ke=Object[_0x35d9e9(0xd0)],Ge=(_0x315931,_0xb2b8ad,_0x5d436e)=>_0xb2b8ad in _0x315931?Me(_0x315931,_0xb2b8ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d436e}):_0x315931[_0xb2b8ad]=_0x5d436e,We=(_0x4c597a,_0x1c2783,_0xbb5f64,_0x500ded)=>{const _0x431739=_0x35d9e9;for(var _0x50c162=_0x500ded>0x1?void 0x0:_0x500ded?ke(_0x1c2783,_0xbb5f64):_0x1c2783,_0x58585d=_0x4c597a[_0x431739(0xba)]-0x1,_0x187d79;_0x58585d>=0x0;_0x58585d--)(_0x187d79=_0x4c597a[_0x58585d])&&(_0x50c162=_0x187d79(_0x50c162)||_0x50c162);return _0x50c162;},F=(_0x15ea03,_0x23b4cc)=>(_0x345c9a,_0x1db656)=>_0x23b4cc(_0x345c9a,_0x1db656,_0x15ea03),B=(_0x420101,_0x373434,_0x27297a)=>Ge(_0x420101,typeof _0x373434!=_0x35d9e9(0xf5)?_0x373434+'':_0x373434,_0x27297a);const Ye=_0x35d9e9(0x94);let b=class extends _0x3fd390{constructor(_0x4141ef=T,_0x15d38b,_0x3bf548){const _0x295050=_0x35d9e9;super(),this[_0x295050(0xd6)]=_0x4141ef,this[_0x295050(0xc3)]=_0x15d38b,this['_configService']=_0x3bf548;const {..._0x308791}=_0x47d277({},T,this[_0x295050(0xd6)]);this[_0x295050(0x120)][_0x295050(0x12e)](ye,_0x308791);}['onStarting'](){const _0x4963dc=_0x35d9e9;_0x4ce412(this[_0x4963dc(0xc3)],_0x4ddc40([[L],[S],[I],[m]],this[_0x4963dc(0xd6)][_0x4963dc(0xa6)])),_0x269b3b(this['_injector'],[[I]]);}[_0x35d9e9(0xe3)](){_0x269b3b(this['_injector'],[[m]]);}};B(b,_0x35d9e9(0xcc),_0x51d6f1[_0x35d9e9(0xd9)]),B(b,_0x35d9e9(0x115),Ye),b=We([_0x476a80(_0x3535e7),F(0x1,_0x2221d8(_0x1f291d)),F(0x2,_0x4d4902)],b);function _0x2a7c(_0x128e4a,_0x4d14d9){_0x128e4a=_0x128e4a-0x91;const _0x5f0c5e=_0x5f0c();let _0x2a7ca4=_0x5f0c5e[_0x128e4a];return _0x2a7ca4;}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 _0xba1afe=_0x1575;(function(_0x238760,_0x2e3550){const _0x1d0baa=_0x1575,_0x4160ab=_0x238760();while(!![]){try{const _0x123a17=-parseInt(_0x1d0baa(0xfc))/0x1+parseInt(_0x1d0baa(0xfd))/0x2*(parseInt(_0x1d0baa(0x112))/0x3)+parseInt(_0x1d0baa(0x109))/0x4*(-parseInt(_0x1d0baa(0xfb))/0x5)+parseInt(_0x1d0baa(0x107))/0x6*(parseInt(_0x1d0baa(0x10e))/0x7)+parseInt(_0x1d0baa(0x10b))/0x8*(-parseInt(_0x1d0baa(0x103))/0x9)+parseInt(_0x1d0baa(0xfe))/0xa+parseInt(_0x1d0baa(0x105))/0xb;if(_0x123a17===_0x2e3550)break;else _0x4160ab['push'](_0x4160ab['shift']());}catch(_0x2a94e9){_0x4160ab['push'](_0x4160ab['shift']());}}}(_0x3050,0xbf777));var l=Object[_0xba1afe(0x10c)],w=(_0x135571,_0xab6bd6,_0xe1bd4c)=>_0xab6bd6 in _0x135571?l(_0x135571,_0xab6bd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1bd4c}):_0x135571[_0xab6bd6]=_0xe1bd4c,v=(_0x28711d,_0x5293fe,_0x1401ce)=>w(_0x28711d,typeof _0x5293fe!=_0xba1afe(0x114)?_0x5293fe+'':_0x5293fe,_0x1401ce);function _0x1575(_0x27819f,_0x41beae){_0x27819f=_0x27819f-0xfa;const _0x305017=_0x3050();let _0x1575c0=_0x305017[_0x27819f];return _0x1575c0;}function _0x3050(){const _0x2b0130=['_liveShareController','startFollowing','getLiveShareCoordinatorSync','20zOwBkI','239137Jpptex','2syNJtz','6159480NWdJzj','extend','tryStartPresenting','UNIVER_SHEET','get','3152853OHMhUX','stopFollowing','15673504gzEPgl','startPresenting','1009062AofoPm','stopPresenting','446588yHebts','No\x20active\x20workbook\x20found.','32KYZjDW','defineProperty','_injector','7lKHSpk','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','getCurrentUnitOfType','1986753iVkPuo','IDLE','symbol','getUnitId'];_0x3050=function(){return _0x2b0130;};return _0x3050();}import{LiveShareController as _0x368e14,LiveShareStatus as _0x197484}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x372a33,UniverInstanceType as _0x462e53}from'@univerjs/core';import{FUniver as _0x3fb83b,FEnum as _0x3235b8}from'@univerjs/core/facade';class g extends _0x3fb83b{constructor(){const _0x22202e=_0xba1afe;super(...arguments),v(this,_0x22202e(0x116));}['_initialize'](_0x237f06){const _0x3c3a3a=_0xba1afe;this[_0x3c3a3a(0x116)]=_0x237f06[_0x3c3a3a(0x102)](_0x368e14);}['getLiveShareStatus'](){const _0x22cdb4=_0xba1afe;var _0x57b6ec;const _0x13f37f=this[_0x22cdb4(0x10d)][_0x22cdb4(0x102)](_0x372a33)[_0x22cdb4(0x111)](_0x462e53['UNIVER_SHEET']);if(!_0x13f37f)throw new Error(_0x22cdb4(0x10a));const _0x8af84a=_0x13f37f[_0x22cdb4(0x115)](),_0x17bc84=this[_0x22cdb4(0x116)][_0x22cdb4(0xfa)](_0x8af84a);return(_0x57b6ec=_0x17bc84==null?void 0x0:_0x17bc84[_0x22cdb4(0x110)]())!=null?_0x57b6ec:_0x197484[_0x22cdb4(0x113)];}[_0xba1afe(0x117)](){const _0x135714=_0xba1afe,_0x154412=this['_injector'][_0x135714(0x102)](_0x372a33)['getCurrentUnitOfType'](_0x462e53['UNIVER_SHEET']);if(!_0x154412)throw new Error(_0x135714(0x10a));const _0xe62c89=_0x154412[_0x135714(0x115)](),_0x2c12fb=this['_liveShareController'][_0x135714(0xfa)](_0xe62c89);if(!_0x2c12fb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2c12fb[_0x135714(0x117)]();}[_0xba1afe(0x104)](){const _0x2827d9=_0xba1afe,_0x2ab2c1=this[_0x2827d9(0x10d)]['get'](_0x372a33)[_0x2827d9(0x111)](_0x462e53[_0x2827d9(0x101)]);if(!_0x2ab2c1)throw new Error(_0x2827d9(0x10a));const _0xc846d8=_0x2ab2c1[_0x2827d9(0x115)](),_0x439a8f=this[_0x2827d9(0x116)]['getLiveShareCoordinatorSync'](_0xc846d8);if(!_0x439a8f)throw new Error(_0x2827d9(0x10f));_0x439a8f[_0x2827d9(0x104)]();}[_0xba1afe(0x106)](){const _0x5ba1af=_0xba1afe,_0x660d34=this[_0x5ba1af(0x10d)][_0x5ba1af(0x102)](_0x372a33)[_0x5ba1af(0x111)](_0x462e53[_0x5ba1af(0x101)]);if(!_0x660d34)throw new Error(_0x5ba1af(0x10a));const _0x321573=_0x660d34[_0x5ba1af(0x115)](),_0x3fc79f=this[_0x5ba1af(0x116)][_0x5ba1af(0xfa)](_0x321573);if(!_0x3fc79f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3fc79f[_0x5ba1af(0x100)]();}[_0xba1afe(0x108)](){const _0x4f1831=_0xba1afe,_0x25d029=this[_0x4f1831(0x10d)]['get'](_0x372a33)[_0x4f1831(0x111)](_0x462e53[_0x4f1831(0x101)]);if(!_0x25d029)throw new Error(_0x4f1831(0x10a));const _0x2662de=_0x25d029['getUnitId'](),_0x5c9cf1=this[_0x4f1831(0x116)][_0x4f1831(0xfa)](_0x2662de);if(!_0x5c9cf1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5c9cf1['stopPresenting']();}}_0x3fb83b['extend'](g);class f extends _0x3235b8{get['LiveShareStatusEnum'](){return _0x197484;}}_0x3235b8[_0xba1afe(0xff)](f);
1
+ const _0x183ff5=_0x5c63;(function(_0x20a5b7,_0x3b2129){const _0x7ee24e=_0x5c63,_0x4c262f=_0x20a5b7();while(!![]){try{const _0x159354=parseInt(_0x7ee24e(0x1ec))/0x1+parseInt(_0x7ee24e(0x1f7))/0x2*(parseInt(_0x7ee24e(0x1e4))/0x3)+-parseInt(_0x7ee24e(0x1f6))/0x4+-parseInt(_0x7ee24e(0x1f0))/0x5+parseInt(_0x7ee24e(0x1f2))/0x6*(parseInt(_0x7ee24e(0x1fb))/0x7)+-parseInt(_0x7ee24e(0x1ef))/0x8+parseInt(_0x7ee24e(0x1ed))/0x9;if(_0x159354===_0x3b2129)break;else _0x4c262f['push'](_0x4c262f['shift']());}catch(_0x42d639){_0x4c262f['push'](_0x4c262f['shift']());}}}(_0xa445,0x22186));var l=Object[_0x183ff5(0x1f8)],w=(_0x18cb8e,_0x5a7f1f,_0x531632)=>_0x5a7f1f in _0x18cb8e?l(_0x18cb8e,_0x5a7f1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x531632}):_0x18cb8e[_0x5a7f1f]=_0x531632,v=(_0x3fe1bb,_0x42dc3c,_0x4791ad)=>w(_0x3fe1bb,typeof _0x42dc3c!=_0x183ff5(0x1e8)?_0x42dc3c+'':_0x42dc3c,_0x4791ad);function _0xa445(){const _0x2eaa24=['491520vFHGxA','IDLE','6246AFOdIb','getLiveShareCoordinatorSync','startPresenting','getLiveShareStatus','1002624fONdKo','482942nMGIpR','defineProperty','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getCurrentUnitOfType','161IoTlCE','stopFollowing','_liveShareController','UNIVER_SHEET','stopPresenting','3mAWiEF','_injector','get','extend','symbol','_initialize','getUnitId','No\x20active\x20workbook\x20found.','119461ciTbcy','2722842EfweHD','getStatus','1590392WFgOdb'];_0xa445=function(){return _0x2eaa24;};return _0xa445();}import{LiveShareController as _0x52685b,LiveShareStatus as _0x1079ea}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x393b4d,UniverInstanceType as _0x2abba2}from'@univerjs/core';import{FUniver as _0x4025d9,FEnum as _0x229f0d}from'@univerjs/core/facade';function _0x5c63(_0x431ffd,_0x460f1f){_0x431ffd=_0x431ffd-0x1e2;const _0xa445b9=_0xa445();let _0x5c6385=_0xa445b9[_0x431ffd];return _0x5c6385;}class g extends _0x4025d9{constructor(){super(...arguments),v(this,'_liveShareController');}[_0x183ff5(0x1e9)](_0x33cbe3){const _0x50d0a1=_0x183ff5;this[_0x50d0a1(0x1fd)]=_0x33cbe3[_0x50d0a1(0x1e6)](_0x52685b);}[_0x183ff5(0x1f5)](){const _0x52175a=_0x183ff5;var _0x2b3111;const _0xc9e977=this[_0x52175a(0x1e5)][_0x52175a(0x1e6)](_0x393b4d)['getCurrentUnitOfType'](_0x2abba2[_0x52175a(0x1e2)]);if(!_0xc9e977)throw new Error(_0x52175a(0x1eb));const _0x1f45c2=_0xc9e977[_0x52175a(0x1ea)](),_0x4db4d7=this[_0x52175a(0x1fd)][_0x52175a(0x1f3)](_0x1f45c2);return(_0x2b3111=_0x4db4d7==null?void 0x0:_0x4db4d7[_0x52175a(0x1ee)]())!=null?_0x2b3111:_0x1079ea[_0x52175a(0x1f1)];}['startFollowing'](){const _0x42e4d7=_0x183ff5,_0x547891=this[_0x42e4d7(0x1e5)][_0x42e4d7(0x1e6)](_0x393b4d)[_0x42e4d7(0x1fa)](_0x2abba2[_0x42e4d7(0x1e2)]);if(!_0x547891)throw new Error(_0x42e4d7(0x1eb));const _0x27def6=_0x547891[_0x42e4d7(0x1ea)](),_0x52de77=this[_0x42e4d7(0x1fd)][_0x42e4d7(0x1f3)](_0x27def6);if(!_0x52de77)throw new Error(_0x42e4d7(0x1f9));_0x52de77['startFollowing']();}[_0x183ff5(0x1fc)](){const _0x873171=_0x183ff5,_0xec440f=this[_0x873171(0x1e5)][_0x873171(0x1e6)](_0x393b4d)[_0x873171(0x1fa)](_0x2abba2[_0x873171(0x1e2)]);if(!_0xec440f)throw new Error(_0x873171(0x1eb));const _0x17735a=_0xec440f[_0x873171(0x1ea)](),_0x47683f=this[_0x873171(0x1fd)][_0x873171(0x1f3)](_0x17735a);if(!_0x47683f)throw new Error(_0x873171(0x1f9));_0x47683f[_0x873171(0x1fc)]();}[_0x183ff5(0x1f4)](){const _0x477811=_0x183ff5,_0x54b8e6=this[_0x477811(0x1e5)]['get'](_0x393b4d)[_0x477811(0x1fa)](_0x2abba2[_0x477811(0x1e2)]);if(!_0x54b8e6)throw new Error(_0x477811(0x1eb));const _0x1ee3e1=_0x54b8e6['getUnitId'](),_0x1ae65a=this[_0x477811(0x1fd)][_0x477811(0x1f3)](_0x1ee3e1);if(!_0x1ae65a)throw new Error(_0x477811(0x1f9));_0x1ae65a['tryStartPresenting']();}[_0x183ff5(0x1e3)](){const _0x8bac20=_0x183ff5,_0x183fd4=this[_0x8bac20(0x1e5)][_0x8bac20(0x1e6)](_0x393b4d)[_0x8bac20(0x1fa)](_0x2abba2[_0x8bac20(0x1e2)]);if(!_0x183fd4)throw new Error(_0x8bac20(0x1eb));const _0x5693a8=_0x183fd4['getUnitId'](),_0x5f5013=this['_liveShareController'][_0x8bac20(0x1f3)](_0x5693a8);if(!_0x5f5013)throw new Error(_0x8bac20(0x1f9));_0x5f5013['stopPresenting']();}}_0x4025d9['extend'](g);class f extends _0x229f0d{get['LiveShareStatusEnum'](){return _0x1079ea;}}_0x229f0d[_0x183ff5(0x1e7)](f);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1191b2=_0x3c6d;(function(_0x375322,_0x2ad210){const _0x4c8417=_0x3c6d,_0x4d5e73=_0x375322();while(!![]){try{const _0x39b03b=-parseInt(_0x4c8417(0x209))/0x1*(parseInt(_0x4c8417(0x198))/0x2)+parseInt(_0x4c8417(0x1a3))/0x3*(-parseInt(_0x4c8417(0x18e))/0x4)+parseInt(_0x4c8417(0x1d5))/0x5+-parseInt(_0x4c8417(0x19d))/0x6+parseInt(_0x4c8417(0x1ba))/0x7*(-parseInt(_0x4c8417(0x184))/0x8)+parseInt(_0x4c8417(0x1ea))/0x9+parseInt(_0x4c8417(0x1e6))/0xa;if(_0x39b03b===_0x2ad210)break;else _0x4d5e73['push'](_0x4d5e73['shift']());}catch(_0x546531){_0x4d5e73['push'](_0x4d5e73['shift']());}}}(_0x18ef,0x24b08));var J=Object['defineProperty'],K=(_0x45f795,_0x2a0594,_0x5601bc)=>_0x2a0594 in _0x45f795?J(_0x45f795,_0x2a0594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5601bc}):_0x45f795[_0x2a0594]=_0x5601bc,u=(_0x5e1d5e,_0x1c187b,_0x4de588)=>K(_0x5e1d5e,typeof _0x1c187b!='symbol'?_0x1c187b+'':_0x1c187b,_0x4de588);import{Disposable as _0x42f139,toDisposable as _0x1417df,IUniverInstanceService as _0x13599b,Inject as _0x52f490,Injector as _0xfcc158,IConfigService as _0x3b6203,ICommandService as _0x1133a0,RxDisposable as _0x12d579,UniverInstanceType as _0x52ac2b,DisposableCollection as _0x12bfa0,CommandType as _0x58cba0,DependentOn as _0x31ac97,Plugin as _0x597a77,merge as _0x8b45b2,registerDependencies as _0x277ea5,mergeOverrideWithDependencies as _0x1a5bcb,touchDependencies as _0x412fe3}from'@univerjs/core';import{useDependency as _0x13c131,useObservable as _0x4a22ff,IUIPartsService as _0x40fce5,BuiltInUIPart as _0x344c8b,connectInjector as _0x1f7308}from'@univerjs/ui';import{jsx as _0x23bdaf,jsxs as _0x3c669a,Fragment as _0x2260a2}from'react/jsx-runtime';import{Dropdown as _0xa5e188,clsx as _0x5bda25,Button as _0x229044}from'@univerjs/design';function _0x3c6d(_0x27138e,_0x1d89fc){_0x27138e=_0x27138e-0x166;const _0x18ef1e=_0x18ef();let _0x3c6d4a=_0x18ef1e[_0x27138e];return _0x3c6d4a;}import{useRef as _0x26e3e5,createElement as _0x2270b1,forwardRef as _0x229bee,useState as _0x4c8df0,useEffect as _0x2e70ea}from'react';import{CollaborationEvent as _0x54850e,parseProtocolChangeset as _0x4ea61e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x46ad75,SessionStatus as _0x38f2a3,UniverCollaborationClientPlugin as _0x42c667}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x424699,SetWorksheetActiveOperation as _0x22d280}from'@univerjs/sheets';import{BehaviorSubject as _0x4ad1e3,Subject as _0x338e65}from'rxjs';import{takeUntil as _0x1096b2,throttleTime as _0x23d433}from'rxjs/operators';import{SetZoomRatioOperation as _0x2e5eb8,SetScrollOperation as _0x4c04a3}from'@univerjs/sheets-ui';function k({ref:_0x2db846,..._0x1d0a15}){const _0x38adde=_0x3c6d,{icon:_0xbcf763,id:_0x2c0994,className:_0x1076ad,extend:_0x5afb17,..._0x422897}=_0x1d0a15,_0x97ea70=(_0x38adde(0x206)+_0x2c0994+'\x20'+(_0x1076ad||''))[_0x38adde(0x210)](),_0x11f29b=_0x26e3e5('_'+Oe());return G(_0xbcf763,''+_0x2c0994,{'defIds':_0xbcf763['defIds'],'idSuffix':_0x11f29b[_0x38adde(0x1d3)]},{'ref':_0x2db846,'className':_0x97ea70,..._0x422897},_0x5afb17);}function G(_0x15c8f0,_0x5e405e,_0x110cda,_0x4befed,_0x56dbf2){const _0x1b87c2=_0x3c6d;return _0x2270b1(_0x15c8f0['tag'],{'key':_0x5e405e,...be(_0x15c8f0,_0x110cda,_0x56dbf2),..._0x4befed},(Ee(_0x15c8f0,_0x110cda)[_0x1b87c2(0x194)]||[])[_0x1b87c2(0x208)]((_0x2ed83d,_0x1e451f)=>G(_0x2ed83d,_0x5e405e+'-'+_0x15c8f0[_0x1b87c2(0x202)]+'-'+_0x1e451f,_0x110cda,void 0x0,_0x56dbf2)));}function be(_0x3c29c7,_0x5c62bc,_0x140ab5){const _0x4a5b06=_0x3c6d,_0x29b48c={..._0x3c29c7['attrs']};_0x140ab5!=null&&_0x140ab5[_0x4a5b06(0x1de)]&&_0x29b48c[_0x4a5b06(0x1dd)]===_0x4a5b06(0x1de)&&(_0x29b48c['fill']=_0x140ab5[_0x4a5b06(0x1de)]),_0x3c29c7[_0x4a5b06(0x202)]==='mask'&&_0x29b48c['id']&&(_0x29b48c['id']=_0x29b48c['id']+_0x5c62bc['idSuffix']),Object[_0x4a5b06(0x204)](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x1969da,_0x193e23])=>{const _0x5e0b39=_0x4a5b06;_0x1969da===_0x5e0b39(0x1fa)&&typeof _0x193e23==_0x5e0b39(0x200)&&(_0x29b48c[_0x1969da]=_0x193e23[_0x5e0b39(0x196)](/url\(#(.*)\)/,_0x5e0b39(0x1e8)+_0x5c62bc[_0x5e0b39(0x168)]+')'));});const {defIds:_0x3db7c}=_0x5c62bc;return!_0x3db7c||_0x3db7c[_0x4a5b06(0x1fc)]===0x0||(_0x3c29c7['tag']===_0x4a5b06(0x1be)&&_0x29b48c[_0x4a5b06(0x1d4)]&&(_0x29b48c['xlink:href']=_0x29b48c['xlink:href']+_0x5c62bc[_0x4a5b06(0x168)]),Object['entries'](_0x29b48c)[_0x4a5b06(0x1f5)](([_0x31c1f0,_0x2737b2])=>{const _0x34a785=_0x4a5b06;typeof _0x2737b2==_0x34a785(0x200)&&(_0x29b48c[_0x31c1f0]=_0x2737b2['replace'](/url\(#(.*)\)/,_0x34a785(0x1e8)+_0x5c62bc[_0x34a785(0x168)]+')'));})),_0x29b48c;}function Ee(_0x108315,_0x9e1250){const _0xab565f=_0x3c6d;var _0x31520a;const {defIds:_0x4f0671}=_0x9e1250;return!_0x4f0671||_0x4f0671[_0xab565f(0x1fc)]===0x0?_0x108315:_0x108315[_0xab565f(0x202)]===_0xab565f(0x1e5)&&((_0x31520a=_0x108315[_0xab565f(0x194)])!=null&&_0x31520a[_0xab565f(0x1fc)])?{..._0x108315,'children':_0x108315[_0xab565f(0x194)][_0xab565f(0x208)](_0x449432=>typeof _0x449432[_0xab565f(0x1fe)]['id']=='string'&&_0x4f0671&&_0x4f0671[_0xab565f(0x1bf)](_0x449432[_0xab565f(0x1fe)]['id'])?{..._0x449432,'attrs':{..._0x449432[_0xab565f(0x1fe)],'id':_0x449432['attrs']['id']+_0x9e1250[_0xab565f(0x168)]}}:_0x449432)}:_0x108315;}function Oe(){const _0x47cf0e=_0x3c6d;return Math[_0x47cf0e(0x188)]()[_0x47cf0e(0x18a)](0x24)[_0x47cf0e(0x1ac)](0x2,0x8);}k[_0x1191b2(0x1ed)]=_0x1191b2(0x174);const we={'tag':_0x1191b2(0x16b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1191b2(0x1e3),'viewBox':'0\x200\x2017\x2017','width':_0x1191b2(0x192),'height':'1em'},'children':[{'tag':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'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':_0x1191b2(0x1c7),'attrs':{'fill':_0x1191b2(0x20d),'d':_0x1191b2(0x207),'fillRule':_0x1191b2(0x16d),'clipRule':'evenodd'}}]},W=_0x229bee(function(_0x55ce6c,_0x4f1fcb){return _0x2270b1(k,Object['assign']({},_0x55ce6c,{'id':'live-share-icon','ref':_0x4f1fcb,'icon':we}));});W['displayName']=_0x1191b2(0x1d6);class L extends _0x42f139{constructor(){const _0x345df2=_0x1191b2;super(...arguments),u(this,_0x345df2(0x1a1),new Set()),u(this,_0x345df2(0x1d2),new Set());}[_0x1191b2(0x19f)](_0x542655){const _0x3e75a3=_0x1191b2;return this[_0x3e75a3(0x1a1)][_0x3e75a3(0x1bb)](_0x542655),_0x1417df(()=>this['_sharedOperations'][_0x3e75a3(0x20f)](_0x542655));}['registerInitialStateReporter'](_0x476a63){const _0x15e42f=_0x1191b2;return this['_reporters'][_0x15e42f(0x1bb)](_0x476a63),_0x1417df(()=>this[_0x15e42f(0x1d2)][_0x15e42f(0x20f)](_0x476a63));}[_0x1191b2(0x17c)](_0x4118f1){const _0x5bc383=_0x1191b2;return this[_0x5bc383(0x1a1)][_0x5bc383(0x20c)](_0x4118f1);}[_0x1191b2(0x173)](_0xf020dc){const _0x76e158=_0x1191b2;return Array[_0x76e158(0x1c4)](this[_0x76e158(0x1d2)])[_0x76e158(0x208)](_0x226d29=>_0x226d29(_0xf020dc));}}var Ne=Object[_0x1191b2(0x1cb)],Y=(_0x495b86,_0x2aa9b8,_0x2f8e1f,_0x496a5b)=>{const _0x57a684=_0x1191b2;for(var _0x444968=_0x496a5b>0x1?void 0x0:_0x496a5b?Ne(_0x2aa9b8,_0x2f8e1f):_0x2aa9b8,_0x3dfa43=_0x495b86[_0x57a684(0x1fc)]-0x1,_0x5aecc4;_0x3dfa43>=0x0;_0x3dfa43--)(_0x5aecc4=_0x495b86[_0x3dfa43])&&(_0x444968=_0x5aecc4(_0x444968)||_0x444968);return _0x444968;},_=(_0x4d1ee7,_0x54bc9a)=>(_0x38f715,_0x390c40)=>_0x54bc9a(_0x38f715,_0x390c40,_0x4d1ee7);let S=class extends _0x12d579{constructor(_0x88e00b,_0x4298e1,_0x3d29e0){const _0x192423=_0x1191b2;super(),u(this,_0x192423(0x186),new Map()),(this[_0x192423(0x17f)]=_0x88e00b,this['_injector']=_0x4298e1,this['_collabSessionService']=_0x3d29e0,this[_0x192423(0x1ec)]());}async['getLiveShareCoordinator'](_0x59d1c3){const _0x1bb3ce=_0x1191b2;return this[_0x1bb3ce(0x186)][_0x1bb3ce(0x20c)](_0x59d1c3)||await this[_0x1bb3ce(0x1b3)](_0x59d1c3),this[_0x1bb3ce(0x186)][_0x1bb3ce(0x191)](_0x59d1c3);}[_0x1191b2(0x177)](_0x358ced){const _0x19f00e=_0x1191b2;var _0x32de33;return(_0x32de33=this[_0x19f00e(0x186)][_0x19f00e(0x191)](_0x358ced))!=null?_0x32de33:null;}['_init'](){const _0x453995=_0x1191b2;this['_univerInstanceService'][_0x453995(0x1d1)](_0x52ac2b[_0x453995(0x180)])['pipe'](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](async _0x49d54d=>{const _0x4c7ac7=_0x453995,_0x2e687c=_0x49d54d[_0x4c7ac7(0x1e2)]();this[_0x4c7ac7(0x186)][_0x4c7ac7(0x20c)](_0x2e687c)||this[_0x4c7ac7(0x1b3)](_0x2e687c);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x52ac2b[_0x453995(0x180)])[_0x453995(0x1e9)](_0x1096b2(this[_0x453995(0x18b)]))[_0x453995(0x1f1)](_0x5d8709=>{const _0x3a8720=_0x453995,_0x4c1060=_0x5d8709['getUnitId'](),_0x346756=this[_0x3a8720(0x186)][_0x3a8720(0x191)](_0x4c1060);_0x346756==null||_0x346756[_0x3a8720(0x1eb)]();});}async[_0x1191b2(0x1b3)](_0x5e1e02){const _0x32c6f7=_0x1191b2,_0x1e17ab=await this['_collabSessionService'][_0x32c6f7(0x1da)](_0x5e1e02),_0x1346a3=this[_0x32c6f7(0x197)][_0x32c6f7(0x170)](N,_0x5e1e02,_0x1e17ab);return _0x1346a3['init'](),this[_0x32c6f7(0x186)][_0x32c6f7(0x1b2)](_0x5e1e02,_0x1346a3),_0x1346a3;}};S=Y([_(0x0,_0x13599b),_(0x1,_0x52f490(_0xfcc158)),_(0x2,_0x52f490(_0x46ad75))],S);var c=(_0xc68a38=>(_0xc68a38[_0x1191b2(0x1cc)]=_0x1191b2(0x1ee),_0xc68a38[_0x1191b2(0x20b)]=_0x1191b2(0x1cd),_0xc68a38[_0x1191b2(0x16e)]=_0x1191b2(0x1d8),_0xc68a38[_0x1191b2(0x1b0)]=_0x1191b2(0x201),_0xc68a38[_0x1191b2(0x1f9)]=_0x1191b2(0x1ae),_0xc68a38))(c||{});const Ce=_0x1191b2(0x17e),De=0xc8;let N=class extends _0x12d579{constructor(_0x38ee06,_0x293cfa,_0x227d3a,_0x38960d,_0x10dd83){const _0x509a71=_0x1191b2;super(),u(this,_0x509a71(0x1f2),new _0x4ad1e3(_0x509a71(0x1cd))),u(this,_0x509a71(0x178),this[_0x509a71(0x1f2)][_0x509a71(0x190)]()),u(this,_0x509a71(0x1ec),!0x1),u(this,_0x509a71(0x1e7),null),u(this,_0x509a71(0x171),null),(this[_0x509a71(0x1c9)]=_0x38ee06,this[_0x509a71(0x1bc)]=_0x293cfa,this[_0x509a71(0x16c)]=_0x227d3a,this['_liveShareService']=_0x38960d,this[_0x509a71(0x1e1)]=_0x10dd83);}get[_0x1191b2(0x1e4)](){const _0x3be8cc=_0x1191b2;return this[_0x3be8cc(0x1f2)][_0x3be8cc(0x1a5)]();}[_0x1191b2(0x1eb)](){const _0x3bf7f7=_0x1191b2;var _0x9559a8;(_0x9559a8=this[_0x3bf7f7(0x1e7)])==null||_0x9559a8[_0x3bf7f7(0x1eb)](),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1b1)]('idle'),this[_0x3bf7f7(0x1f2)][_0x3bf7f7(0x1ab)]();}[_0x1191b2(0x19b)](){const _0x17c770=_0x1191b2;return this[_0x17c770(0x1e4)];}[_0x1191b2(0x16a)](){const _0x986724=_0x1191b2;this[_0x986724(0x1ec)]||(this[_0x986724(0x1ec)]=!0x0,this['_collabSession'][_0x986724(0x17d)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x5061fc=>{const _0x114fed=_0x986724;switch(_0x5061fc){case _0x38f2a3[_0x114fed(0x1cc)]:this[_0x114fed(0x199)]();break;case _0x38f2a3[_0x114fed(0x1d0)]:this[_0x114fed(0x185)]();break;}}),this[_0x986724(0x1bc)][_0x986724(0x1a7)][_0x986724(0x1e9)](_0x1096b2(this[_0x986724(0x18b)]))[_0x986724(0x1f1)](_0x1b57e7=>{const _0x4154a3=_0x986724,{eventID:_0x3d71ee}=_0x1b57e7;switch(_0x3d71ee){case _0x54850e[_0x4154a3(0x20a)]:this[_0x4154a3(0x211)](_0x1b57e7);break;case _0x54850e[_0x4154a3(0x166)]:this[_0x4154a3(0x1f6)](_0x1b57e7);break;case _0x54850e['LIVESHARE_TERMINATE']:this[_0x4154a3(0x1b5)]();break;case _0x54850e[_0x4154a3(0x18d)]:this[_0x4154a3(0x1ef)](_0x1b57e7);break;}}));}[_0x1191b2(0x182)](){const _0x272cac=_0x1191b2;this[_0x272cac(0x1bc)][_0x272cac(0x1d9)]({'eventID':_0x54850e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x272cac(0x1c9)],'userID':this[_0x272cac(0x1bc)]['getMemberID']()}},this[_0x272cac(0x1c9)]);}[_0x1191b2(0x1c6)](){const _0x381341=_0x1191b2;this[_0x381341(0x1e4)]===_0x381341(0x1ae)&&(this['_status$'][_0x381341(0x1b1)]('idle'),this[_0x381341(0x1bc)][_0x381341(0x1d9)]({'eventID':_0x54850e['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x381341(0x1c9)]));}[_0x1191b2(0x1a6)](){const _0x53e064=_0x1191b2;this[_0x53e064(0x1e4)]===_0x53e064(0x201)&&(this[_0x53e064(0x1f2)][_0x53e064(0x1b1)]('following'),this[_0x53e064(0x20e)]());}[_0x1191b2(0x1b4)](){const _0x561b48=_0x1191b2;this[_0x561b48(0x1e4)]===_0x561b48(0x1d8)&&this[_0x561b48(0x1cf)]();}[_0x1191b2(0x211)](_0x35f29e){const _0x5b0cc6=_0x1191b2,{presenter:_0x7f9b81}=_0x35f29e[_0x5b0cc6(0x1bd)],_0x482ed1=this[_0x5b0cc6(0x1bc)][_0x5b0cc6(0x1ca)]();this['_presenter']=_0x7f9b81,_0x7f9b81===_0x482ed1?(this[_0x5b0cc6(0x1cf)](),this[_0x5b0cc6(0x175)]()):this[_0x5b0cc6(0x1e4)]!=='not-following'&&(this[_0x5b0cc6(0x172)](),this[_0x5b0cc6(0x20e)]());}['_fetchOperations'](){const _0x35b053=_0x1191b2,_0xd85293={'eventID':_0x54850e[_0x35b053(0x1db)]};this[_0x35b053(0x1bc)][_0x35b053(0x1d9)](_0xd85293,this[_0x35b053(0x1c9)]);}[_0x1191b2(0x1b5)](){const _0x1c81b9=_0x1191b2;this[_0x1c81b9(0x171)]=null,this[_0x1c81b9(0x1e4)]!==_0x1c81b9(0x1ae)&&this[_0x1c81b9(0x176)]();}[_0x1191b2(0x1ef)](_0x284dd7){const _0x887c70=_0x1191b2;if(this[_0x887c70(0x1e4)]===_0x887c70(0x1d8)&&this['_presenter']===_0x284dd7[_0x887c70(0x1bd)][_0x887c70(0x1c5)]){const _0x329ab8=_0x4ea61e(_0x284dd7[_0x887c70(0x1bd)])[_0x887c70(0x17a)][_0x887c70(0x1c2)]()[_0x887c70(0x195)](_0x2c1ee7=>_0x2c1ee7['id']===_0x424699['id']);if(_0x329ab8){const _0x49d467=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1b9)],_0x81f4b0=_0x329ab8[_0x887c70(0x193)][_0x887c70(0x1f8)]['id'];setTimeout(()=>{const _0x21dd88=_0x887c70;this[_0x21dd88(0x1e1)][_0x21dd88(0x1c3)](_0x22d280['id'],{'unitId':_0x49d467,'subUnitId':_0x81f4b0},{'fromCollab':!0x0});});}}}[_0x1191b2(0x175)](){const _0x36a5a0=_0x1191b2;this['_status$'][_0x36a5a0(0x1b1)](_0x36a5a0(0x1ae));const _0x43250b=new Map(),_0x22e6eb=this[_0x36a5a0(0x1e7)]=new _0x12bfa0();_0x22e6eb[_0x36a5a0(0x1bb)](_0x1417df(()=>{const _0x446eb7=_0x36a5a0;_0x43250b[_0x446eb7(0x1f5)](_0xe2b1a3=>_0xe2b1a3[_0x446eb7(0x1ab)]()),_0x43250b[_0x446eb7(0x189)]();})),_0x22e6eb['add'](this[_0x36a5a0(0x1e1)]['onCommandExecuted'](_0x258568=>{const _0x2c4ba8=_0x36a5a0;var _0x537d31;if(_0x258568[_0x2c4ba8(0x1fd)]!==_0x58cba0[_0x2c4ba8(0x181)]||!this['_liveShareService'][_0x2c4ba8(0x17c)](_0x258568['id']))return;const {id:_0x3f04f2}=_0x258568;let _0x55c0e4;_0x43250b['has'](_0x3f04f2)?_0x55c0e4=_0x43250b[_0x2c4ba8(0x191)](_0x3f04f2):(_0x55c0e4=new _0x338e65(),_0x43250b[_0x2c4ba8(0x1b2)](_0x3f04f2,_0x55c0e4),_0x55c0e4['pipe'](_0x23d433((_0x537d31=this['_configService'][_0x2c4ba8(0x1c1)](Ce))!=null?_0x537d31:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4ba8(0x1f1)](_0x5f4677=>{const _0x16abe5=_0x2c4ba8;this['_collabSession'][_0x16abe5(0x1d9)]({'eventID':_0x54850e[_0x16abe5(0x166)],'data':{'unitID':this[_0x16abe5(0x1c9)],'operations':{[_0x5f4677['id']]:{'id':_0x5f4677['id'],'params':JSON[_0x16abe5(0x1df)](_0x5f4677[_0x16abe5(0x193)])}}}},this[_0x16abe5(0x1c9)]);})),_0x55c0e4[_0x2c4ba8(0x1b1)](_0x258568);})),this[_0x36a5a0(0x16f)]['getInitialStates'](this[_0x36a5a0(0x1c9)])[_0x36a5a0(0x1f5)](_0x5607f5=>this[_0x36a5a0(0x1bc)][_0x36a5a0(0x1d9)]({'eventID':_0x54850e[_0x36a5a0(0x166)],'data':{'unitID':this['_unitID'],'operations':{[_0x5607f5['id']]:{'id':_0x5607f5['id'],'params':JSON[_0x36a5a0(0x1df)](_0x5607f5[_0x36a5a0(0x193)])}}}},this[_0x36a5a0(0x1c9)]));}[_0x1191b2(0x172)](){const _0x36bb17=_0x1191b2;var _0x246115;this['_status$'][_0x36bb17(0x1b1)](_0x36bb17(0x1cd)),(_0x246115=this[_0x36bb17(0x1e7)])==null||_0x246115[_0x36bb17(0x1eb)](),this[_0x36bb17(0x1e7)]=null;}[_0x1191b2(0x20e)](){const _0x338b3d=_0x1191b2;var _0x2b76a4;(_0x2b76a4=this[_0x338b3d(0x1e7)])==null||_0x2b76a4['dispose'](),this[_0x338b3d(0x1f2)][_0x338b3d(0x1b1)](_0x338b3d(0x1d8));}[_0x1191b2(0x176)](){const _0x42bd77=_0x1191b2;var _0x389e24;this[_0x42bd77(0x1f2)][_0x42bd77(0x1b1)](_0x42bd77(0x1cd)),(_0x389e24=this[_0x42bd77(0x1e7)])==null||_0x389e24[_0x42bd77(0x1eb)](),this[_0x42bd77(0x1e7)]=null;}[_0x1191b2(0x1cf)](){const _0x326b8c=_0x1191b2;var _0x172890;this[_0x326b8c(0x1f2)][_0x326b8c(0x1b1)](_0x326b8c(0x201)),(_0x172890=this[_0x326b8c(0x1e7)])==null||_0x172890[_0x326b8c(0x1eb)]();}[_0x1191b2(0x1f6)](_0x212d99){const _0x3d982d=_0x1191b2;if([_0x3d982d(0x1ae),_0x3d982d(0x201),_0x3d982d(0x1ee)]['includes'](this['_status'])||!_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1b6)]||_0x212d99['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3d982d(0x1e4)]===_0x3d982d(0x1cd)&&this[_0x3d982d(0x20e)]();const _0x5b4ed5=_0x212d99[_0x3d982d(0x1bd)][_0x3d982d(0x1e0)];Object[_0x3d982d(0x1f7)](_0x5b4ed5)['forEach'](_0x1ce5fd=>{const _0x2952b5=_0x3d982d;this[_0x2952b5(0x1e1)][_0x2952b5(0x1c3)](_0x1ce5fd['id'],_0x1ce5fd[_0x2952b5(0x193)]?JSON[_0x2952b5(0x1ce)](_0x1ce5fd[_0x2952b5(0x193)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3434ae=_0x1191b2;var _0x5040be;this['_status$'][_0x3434ae(0x1b1)](_0x3434ae(0x1ee)),(_0x5040be=this[_0x3434ae(0x1e7)])==null||_0x5040be['dispose']();}['_handleOnline'](){const _0x1ad42b=_0x1191b2;this[_0x1ad42b(0x1f2)][_0x1ad42b(0x1b1)](_0x1ad42b(0x1cd)),this['_fetchOperations']();}};N=Y([_(0x2,_0x3b6203),_(0x3,_0x52f490(L)),_(0x4,_0x1133a0)],N);function _0x18ef(){const _0x2c07e1=['fill','colorChannel1','stringify','operations','_commandService','getUnitId','none','_status','defs','4569200XiUAfa','_commandDisposable','url(#$1','pipe','1588023xgFIcT','dispose','_init','displayName','offline','_handleNewChangeSets','You\x27re\x20not\x20following\x20the\x20presenter','subscribe','_status$','registerComponent','_uiPartsService','forEach','_handleOperation','values','sheet','PRESENTING','mask','setConfig','length','type','attrs','then','string','not-following','tag','pluginName','entries','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','univerjs-icon\x20univerjs-icon-','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','map','5191WjNups','LIVESHARE_NEW_HOST','IDLE','has','currentColor','_startFollowing','delete','trim','_handleNewHost','LIVESHARE_OPERATION','live-share.config','idSuffix','Start','init','svg','_configService','evenodd','FOLLOWING','_liveShareService','createInstance','_presenter','_stopPresenting','getInitialStates','UniverIcon','_startPresenting','_beIdle','getLiveShareCoordinatorSync','status$','div','mutations','unsubscribe','shouldShareOperation','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','UNIVER_SHEET','OPERATION','tryStartPresenting','Stop\x20presenting','553856mVrDyc','_handleOnline','_entities','_mountLiveShare','random','clear','toString','dispose$','_config','NEW_CHANGESETS','52ZweQzB','You\x27re\x20following\x20the\x20presenter','asObservable','get','1em','params','children','find','replace','_injector','18nInjSU','_handleOffline','univer-size-4','getStatus','UNIVER_UNKNOWN','549390GdTUZv','getLiveShareCoordinator','registerSharedOperation','onStarting','_sharedOperations','You\x27are\x20offline.','45732gZnCMh','HEADER_MENU','getValue','startFollowing','event$','defineProperty','button','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','complete','substring','getCurrentTypeOfUnit$','presenting','onRendered','NOT_FOLLOWING','next','set','_startLiveShareCoordinator','stopFollowing','_handleTerminate','presenter','override','Stop\x20following','unitId','21htOeON','add','_collabSession','data','use','includes','UNIVER_LIVE_SHARE_PLUGIN','getConfig','reverse','executeCommand','from','memberID','stopPresenting','path','Present\x20this\x20document','_unitID','getMemberID','getOwnPropertyDescriptor','OFFLINE','idle','parse','_stopFollowing','ONLINE','getTypeOfUnitAdded$','_reporters','current','xlink:href','305325bpcbWy','LiveShareIcon','end','following','send','requireSession','LIVESHARE_FETCH_OPERATIONS','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x18ef=function(){return _0x2c07e1;};return _0x18ef();}function Le(){const _0x3fc323=_0x1191b2,_0x5be799=_0x13c131(S),_0x29c354=_0x13c131(_0x13599b),_0x2130a8=_0x4a22ff(()=>_0x29c354[_0x3fc323(0x1ad)](_0x52ac2b['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x468fb7,_0x363d66]=_0x4c8df0(null),[_0x585c36,_0x8f7a2d]=_0x4c8df0(c['IDLE']),_0x13b400=_0x26e3e5(null);return _0x2e70ea(()=>(_0x2130a8&&_0x5be799[_0x3fc323(0x19e)](_0x2130a8[_0x3fc323(0x1e2)]())[_0x3fc323(0x1ff)](_0x5bb7fd=>{const _0xdf8946=_0x3fc323;_0x363d66(_0x5bb7fd),_0x13b400[_0xdf8946(0x1d3)]=_0x5bb7fd[_0xdf8946(0x178)]['subscribe'](_0x1a5505=>{_0x8f7a2d(_0x1a5505);});}),()=>{const _0x2794b0=_0x3fc323;var _0xd0e2c8;(_0xd0e2c8=_0x13b400[_0x2794b0(0x1d3)])==null||_0xd0e2c8[_0x2794b0(0x17b)](),_0x13b400[_0x2794b0(0x1d3)]=null;}),[_0x2130a8,_0x5be799]),_0x468fb7?_0x23bdaf(_0xa5e188,{'align':_0x3fc323(0x1d7),'disabled':_0x585c36===c[_0x3fc323(0x1cc)],'className':_0x3fc323(0x205),'overlay':_0x23bdaf(Re,{'status':_0x585c36,'coordinator':_0x468fb7}),'children':_0x23bdaf(_0x3fc323(0x1a9),{'className':_0x5bda25(_0x3fc323(0x1aa),{'univer-cursor-not-allowed':_0x585c36===c[_0x3fc323(0x1cc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x585c36!==c[_0x3fc323(0x1cc)]}),'type':_0x3fc323(0x1a9),'children':_0x23bdaf(W,{'className':_0x3fc323(0x19a)})})}):null;}function Re(_0x4a220f){const _0x1c09ad=_0x1191b2,{status:_0x4cb5e6,coordinator:_0x103fd1}=_0x4a220f;switch(_0x4cb5e6){case c[_0x1c09ad(0x20b)]:return _0x23bdaf($e,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x16e)]:return _0x23bdaf(xe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1b0)]:return _0x23bdaf(Pe,{'coordinator':_0x103fd1});case c[_0x1c09ad(0x1cc)]:return _0x23bdaf(Te,{});case c[_0x1c09ad(0x1f9)]:return _0x23bdaf(Ae,{'coordinator':_0x103fd1});default:return null;}}function $e(_0x41c802){const _0x310efb=_0x1191b2,{coordinator:_0x410a14}=_0x41c802;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x310efb(0x179),{'className':_0x310efb(0x1dc),'children':_0x310efb(0x1c8)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x410a14['tryStartPresenting'](),'children':_0x310efb(0x169)})]});}function xe(_0x480756){const _0x39a72a=_0x1191b2,{coordinator:_0x51204c}=_0x480756;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x39a72a(0x1dc),'children':_0x39a72a(0x18f)}),_0x23bdaf(_0x229044,{'onClick':()=>_0x51204c[_0x39a72a(0x1b4)](),'children':_0x39a72a(0x1b8)})]});}function Pe(_0x11538d){const _0x523dae=_0x1191b2,{coordinator:_0x44e5c9}=_0x11538d;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf('div',{'className':_0x523dae(0x1dc),'children':_0x523dae(0x1f0)}),_0x23bdaf(_0x229044,{'variant':'text','onClick':()=>_0x44e5c9['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1a0e0f){const _0x1497a0=_0x1191b2,{coordinator:_0x29ba19}=_0x1a0e0f;return _0x3c669a(_0x2260a2,{'children':[_0x23bdaf(_0x1497a0(0x179),{'className':_0x1497a0(0x1dc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x23bdaf(_0x229044,{'variant':'default','onClick':()=>_0x29ba19[_0x1497a0(0x1c6)](),'children':_0x1497a0(0x183)})]});}function Te(){const _0x30693d=_0x1191b2;return _0x23bdaf(_0x2260a2,{'children':_0x30693d(0x1a2)});}var Fe=Object[_0x1191b2(0x1cb)],He=(_0x5ca343,_0x5b619b,_0x13067a,_0x3297af)=>{for(var _0x413a50=_0x3297af>0x1?void 0x0:_0x3297af?Fe(_0x5b619b,_0x13067a):_0x5b619b,_0x334f6c=_0x5ca343['length']-0x1,_0x14e78a;_0x334f6c>=0x0;_0x334f6c--)(_0x14e78a=_0x5ca343[_0x334f6c])&&(_0x413a50=_0x14e78a(_0x413a50)||_0x413a50);return _0x413a50;},A=(_0x23edb1,_0x466f95)=>(_0x1311a5,_0x268e25)=>_0x466f95(_0x1311a5,_0x268e25,_0x23edb1);let m=class extends _0x42f139{constructor(_0x4aea36,_0x330108){const _0x3bb5dc=_0x1191b2;super(),this[_0x3bb5dc(0x197)]=_0x4aea36,this[_0x3bb5dc(0x1f4)]=_0x330108,this[_0x3bb5dc(0x187)]();}[_0x1191b2(0x187)](){const _0x3041c6=_0x1191b2;this['disposeWithMe'](this[_0x3041c6(0x1f4)][_0x3041c6(0x1f3)](_0x344c8b[_0x3041c6(0x1a4)],()=>_0x1f7308(Le,this[_0x3041c6(0x197)])));}};m=He([A(0x0,_0x52f490(_0xfcc158)),A(0x1,_0x40fce5)],m);const ye=_0x1191b2(0x167),T={};var Ue=Object[_0x1191b2(0x1cb)],Ve=(_0x12e81c,_0x10d8ff,_0x4c1d34,_0x14a214)=>{const _0x5e97d3=_0x1191b2;for(var _0x32f752=_0x14a214>0x1?void 0x0:_0x14a214?Ue(_0x10d8ff,_0x4c1d34):_0x10d8ff,_0x3bb14c=_0x12e81c[_0x5e97d3(0x1fc)]-0x1,_0x111bb1;_0x3bb14c>=0x0;_0x3bb14c--)(_0x111bb1=_0x12e81c[_0x3bb14c])&&(_0x32f752=_0x111bb1(_0x32f752)||_0x32f752);return _0x32f752;},je=(_0x5ce6c1,_0x43bc64)=>(_0x20307b,_0x5a2e88)=>_0x43bc64(_0x20307b,_0x5a2e88,_0x5ce6c1);let I=class extends _0x42f139{constructor(_0x276cc9){const _0xdcceaf=_0x1191b2;super(),this[_0xdcceaf(0x16f)]=_0x276cc9,this[_0xdcceaf(0x1ec)]();}['_init'](){const _0x20c950=_0x1191b2;[_0x2e5eb8['id'],_0x4c04a3['id'],_0x22d280['id']][_0x20c950(0x1f5)](_0x4e1022=>{const _0x4ca05a=_0x20c950;this['disposeWithMe'](this[_0x4ca05a(0x16f)][_0x4ca05a(0x19f)](_0x4e1022));});}};I=Ve([je(0x0,_0x52f490(L))],I);var Me=Object[_0x1191b2(0x1a8)],ke=Object[_0x1191b2(0x1cb)],Ge=(_0x430524,_0x4c3d91,_0x2adbd6)=>_0x4c3d91 in _0x430524?Me(_0x430524,_0x4c3d91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2adbd6}):_0x430524[_0x4c3d91]=_0x2adbd6,We=(_0x4240b8,_0xe2fffc,_0x4b037f,_0x51f531)=>{const _0x247721=_0x1191b2;for(var _0x25052b=_0x51f531>0x1?void 0x0:_0x51f531?ke(_0xe2fffc,_0x4b037f):_0xe2fffc,_0x1411e3=_0x4240b8[_0x247721(0x1fc)]-0x1,_0x401bee;_0x1411e3>=0x0;_0x1411e3--)(_0x401bee=_0x4240b8[_0x1411e3])&&(_0x25052b=_0x401bee(_0x25052b)||_0x25052b);return _0x25052b;},F=(_0x22b2c0,_0x5a2661)=>(_0x375af8,_0x5beab9)=>_0x5a2661(_0x375af8,_0x5beab9,_0x22b2c0),B=(_0x403063,_0x516ba0,_0x2f7d83)=>Ge(_0x403063,typeof _0x516ba0!='symbol'?_0x516ba0+'':_0x516ba0,_0x2f7d83);const Ye=_0x1191b2(0x1c0);let b=class extends _0x597a77{constructor(_0x3e96e2=T,_0x452945,_0x3844ad){const _0x58b97e=_0x1191b2;super(),this[_0x58b97e(0x18c)]=_0x3e96e2,this[_0x58b97e(0x197)]=_0x452945,this[_0x58b97e(0x16c)]=_0x3844ad;const {..._0xde74f8}=_0x8b45b2({},T,this[_0x58b97e(0x18c)]);this['_configService'][_0x58b97e(0x1fb)](ye,_0xde74f8);}[_0x1191b2(0x1a0)](){const _0x3bc167=_0x1191b2;_0x277ea5(this[_0x3bc167(0x197)],_0x1a5bcb([[L],[S],[I],[m]],this[_0x3bc167(0x18c)][_0x3bc167(0x1b7)])),_0x412fe3(this[_0x3bc167(0x197)],[[I]]);}[_0x1191b2(0x1af)](){const _0x46bbf4=_0x1191b2;_0x412fe3(this[_0x46bbf4(0x197)],[[m]]);}};B(b,_0x1191b2(0x1fd),_0x52ac2b[_0x1191b2(0x19c)]),B(b,_0x1191b2(0x203),Ye),b=We([_0x31ac97(_0x42c667),F(0x1,_0x52f490(_0xfcc158)),F(0x2,_0x3b6203)],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 _0x35d9e9=_0x2a7c;(function(_0x2bb005,_0x460a4f){const _0x1fa35f=_0x2a7c,_0x4711d6=_0x2bb005();while(!![]){try{const _0x1239f2=parseInt(_0x1fa35f(0xa8))/0x1+parseInt(_0x1fa35f(0xae))/0x2+-parseInt(_0x1fa35f(0xcf))/0x3+parseInt(_0x1fa35f(0x99))/0x4+-parseInt(_0x1fa35f(0xc6))/0x5*(parseInt(_0x1fa35f(0xc5))/0x6)+parseInt(_0x1fa35f(0xde))/0x7*(-parseInt(_0x1fa35f(0xb7))/0x8)+parseInt(_0x1fa35f(0xa1))/0x9*(parseInt(_0x1fa35f(0xee))/0xa);if(_0x1239f2===_0x460a4f)break;else _0x4711d6['push'](_0x4711d6['shift']());}catch(_0x9d7843){_0x4711d6['push'](_0x4711d6['shift']());}}}(_0x5f0c,0xd327c));var J=Object[_0x35d9e9(0xa3)],K=(_0x1dfab8,_0x14446c,_0x3b7d52)=>_0x14446c in _0x1dfab8?J(_0x1dfab8,_0x14446c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b7d52}):_0x1dfab8[_0x14446c]=_0x3b7d52,u=(_0x4e487b,_0x23c1bd,_0x300cac)=>K(_0x4e487b,typeof _0x23c1bd!='symbol'?_0x23c1bd+'':_0x23c1bd,_0x300cac);import{Disposable as _0x59855c,toDisposable as _0x1c91a3,IUniverInstanceService as _0x71ffd,Inject as _0x2221d8,Injector as _0x1f291d,IConfigService as _0x4d4902,ICommandService as _0x41e10a,RxDisposable as _0x29d644,UniverInstanceType as _0x51d6f1,DisposableCollection as _0x5598f6,CommandType as _0x247639,DependentOn as _0x476a80,Plugin as _0x3fd390,merge as _0x47d277,registerDependencies as _0x4ce412,mergeOverrideWithDependencies as _0x4ddc40,touchDependencies as _0x269b3b}from'@univerjs/core';import{useDependency as _0x3da98e,useObservable as _0x4a59c5,IUIPartsService as _0x5c926c,BuiltInUIPart as _0x25440a,connectInjector as _0x68f671}from'@univerjs/ui';import{jsx as _0x3df5d3,jsxs as _0x879f1c,Fragment as _0x521211}from'react/jsx-runtime';import{Dropdown as _0x5a5b05,clsx as _0x5e9053,Button as _0x36810d}from'@univerjs/design';import{useRef as _0x45258b,createElement as _0x42e434,forwardRef as _0xa7990,useState as _0x35fc23,useEffect as _0x4a7e39}from'react';import{CollaborationEvent as _0x27a16f,parseProtocolChangeset as _0x381ef2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2622ad,SessionStatus as _0x5be8ca,UniverCollaborationClientPlugin as _0x3535e7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x9a593f,SetWorksheetActiveOperation as _0x4cc0de}from'@univerjs/sheets';import{BehaviorSubject as _0x51f5dc,Subject as _0x149954}from'rxjs';import{takeUntil as _0x24acb0,throttleTime as _0x1a12f4}from'rxjs/operators';import{SetZoomRatioOperation as _0x2138c0,SetScrollOperation as _0x56070b}from'@univerjs/sheets-ui';function k({ref:_0x33cfee,..._0x4f610a}){const _0x458603=_0x35d9e9,{icon:_0xc74975,id:_0x5cd622,className:_0x4460da,extend:_0x54b832,..._0x2435b1}=_0x4f610a,_0x651312=(_0x458603(0xb1)+_0x5cd622+'\x20'+(_0x4460da||''))['trim'](),_0x5da7da=_0x45258b('_'+Oe());return G(_0xc74975,''+_0x5cd622,{'defIds':_0xc74975[_0x458603(0x110)],'idSuffix':_0x5da7da[_0x458603(0x10a)]},{'ref':_0x33cfee,'className':_0x651312,..._0x2435b1},_0x54b832);}function G(_0x1d74a7,_0x1f1e54,_0x1115a9,_0x4af998,_0x1991f8){const _0x4d2e7a=_0x35d9e9;return _0x42e434(_0x1d74a7[_0x4d2e7a(0x117)],{'key':_0x1f1e54,...be(_0x1d74a7,_0x1115a9,_0x1991f8),..._0x4af998},(Ee(_0x1d74a7,_0x1115a9)[_0x4d2e7a(0xe1)]||[])['map']((_0x4adcc2,_0x41bfaa)=>G(_0x4adcc2,_0x1f1e54+'-'+_0x1d74a7['tag']+'-'+_0x41bfaa,_0x1115a9,void 0x0,_0x1991f8)));}function be(_0x1c73dd,_0x330f3b,_0x5f76f0){const _0x396bc9=_0x35d9e9,_0xf0fbaf={..._0x1c73dd[_0x396bc9(0xbb)]};_0x5f76f0!=null&&_0x5f76f0[_0x396bc9(0xc4)]&&_0xf0fbaf['fill']==='colorChannel1'&&(_0xf0fbaf[_0x396bc9(0xb4)]=_0x5f76f0[_0x396bc9(0xc4)]),_0x1c73dd['tag']===_0x396bc9(0xfc)&&_0xf0fbaf['id']&&(_0xf0fbaf['id']=_0xf0fbaf['id']+_0x330f3b[_0x396bc9(0xfb)]),Object[_0x396bc9(0xdb)](_0xf0fbaf)[_0x396bc9(0xbc)](([_0x2c411f,_0x429707])=>{const _0x138597=_0x396bc9;_0x2c411f===_0x138597(0xfc)&&typeof _0x429707==_0x138597(0xdd)&&(_0xf0fbaf[_0x2c411f]=_0x429707[_0x138597(0xa2)](/url\(#(.*)\)/,_0x138597(0x109)+_0x330f3b[_0x138597(0xfb)]+')'));});const {defIds:_0x2a1eeb}=_0x330f3b;return!_0x2a1eeb||_0x2a1eeb['length']===0x0||(_0x1c73dd['tag']===_0x396bc9(0xdf)&&_0xf0fbaf[_0x396bc9(0xfe)]&&(_0xf0fbaf[_0x396bc9(0xfe)]=_0xf0fbaf['xlink:href']+_0x330f3b[_0x396bc9(0xfb)]),Object[_0x396bc9(0xdb)](_0xf0fbaf)[_0x396bc9(0xbc)](([_0x467cb6,_0x4483e7])=>{const _0x128f61=_0x396bc9;typeof _0x4483e7=='string'&&(_0xf0fbaf[_0x467cb6]=_0x4483e7[_0x128f61(0xa2)](/url\(#(.*)\)/,_0x128f61(0x109)+_0x330f3b[_0x128f61(0xfb)]+')'));})),_0xf0fbaf;}function Ee(_0x3f5e69,_0x3683b4){const _0x52b0bb=_0x35d9e9;var _0x218f0d;const {defIds:_0x402456}=_0x3683b4;return!_0x402456||_0x402456[_0x52b0bb(0xba)]===0x0?_0x3f5e69:_0x3f5e69[_0x52b0bb(0x117)]===_0x52b0bb(0xd3)&&((_0x218f0d=_0x3f5e69[_0x52b0bb(0xe1)])!=null&&_0x218f0d['length'])?{..._0x3f5e69,'children':_0x3f5e69['children'][_0x52b0bb(0xfd)](_0x308438=>typeof _0x308438[_0x52b0bb(0xbb)]['id']==_0x52b0bb(0xdd)&&_0x402456&&_0x402456[_0x52b0bb(0xac)](_0x308438['attrs']['id'])?{..._0x308438,'attrs':{..._0x308438[_0x52b0bb(0xbb)],'id':_0x308438['attrs']['id']+_0x3683b4['idSuffix']}}:_0x308438)}:_0x3f5e69;}function Oe(){const _0x30e257=_0x35d9e9;return Math[_0x30e257(0xa4)]()[_0x30e257(0x119)](0x24)[_0x30e257(0xdc)](0x2,0x8);}k[_0x35d9e9(0x9d)]=_0x35d9e9(0xe9);const we={'tag':_0x35d9e9(0x121),'attrs':{'xmlns':_0x35d9e9(0x122),'fill':_0x35d9e9(0xb6),'viewBox':_0x35d9e9(0x11c),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x35d9e9(0xbf),'d':_0x35d9e9(0x125)}},{'tag':_0x35d9e9(0x11f),'attrs':{'fill':'currentColor','d':_0x35d9e9(0x10c),'fillRule':_0x35d9e9(0x10e),'clipRule':_0x35d9e9(0x10e)}}]},W=_0xa7990(function(_0x3881ee,_0x410593){const _0x1066ee=_0x35d9e9;return _0x42e434(k,Object[_0x1066ee(0xb9)]({},_0x3881ee,{'id':'live-share-icon','ref':_0x410593,'icon':we}));});W[_0x35d9e9(0x9d)]=_0x35d9e9(0xaa);class L extends _0x59855c{constructor(){const _0x375522=_0x35d9e9;super(...arguments),u(this,_0x375522(0xe8),new Set()),u(this,'_reporters',new Set());}[_0x35d9e9(0xf6)](_0x2f812d){const _0x340631=_0x35d9e9;return this[_0x340631(0xe8)][_0x340631(0x10b)](_0x2f812d),_0x1c91a3(()=>this[_0x340631(0xe8)][_0x340631(0xbd)](_0x2f812d));}['registerInitialStateReporter'](_0x22ced4){const _0x162814=_0x35d9e9;return this[_0x162814(0xf7)][_0x162814(0x10b)](_0x22ced4),_0x1c91a3(()=>this[_0x162814(0xf7)]['delete'](_0x22ced4));}['shouldShareOperation'](_0x2102a2){const _0x5b7c0d=_0x35d9e9;return this[_0x5b7c0d(0xe8)]['has'](_0x2102a2);}[_0x35d9e9(0x12c)](_0x3519e8){const _0x4f9bd5=_0x35d9e9;return Array['from'](this[_0x4f9bd5(0xf7)])['map'](_0x5200ec=>_0x5200ec(_0x3519e8));}}var Ne=Object[_0x35d9e9(0xd0)],Y=(_0x472cdf,_0x294c62,_0x2f2977,_0xf869b1)=>{const _0x156450=_0x35d9e9;for(var _0x526633=_0xf869b1>0x1?void 0x0:_0xf869b1?Ne(_0x294c62,_0x2f2977):_0x294c62,_0x4dd6cd=_0x472cdf[_0x156450(0xba)]-0x1,_0xbb9ee5;_0x4dd6cd>=0x0;_0x4dd6cd--)(_0xbb9ee5=_0x472cdf[_0x4dd6cd])&&(_0x526633=_0xbb9ee5(_0x526633)||_0x526633);return _0x526633;},_=(_0xf87c42,_0x58667f)=>(_0x3b1284,_0x7946d1)=>_0x58667f(_0x3b1284,_0x7946d1,_0xf87c42);let S=class extends _0x29d644{constructor(_0x3525d1,_0x4e3781,_0x46bb4e){const _0x1e4db9=_0x35d9e9;super(),u(this,'_entities',new Map()),(this[_0x1e4db9(0xb5)]=_0x3525d1,this[_0x1e4db9(0xc3)]=_0x4e3781,this[_0x1e4db9(0xd1)]=_0x46bb4e,this['_init']());}async[_0x35d9e9(0xab)](_0x2e46e8){const _0x2d6dc7=_0x35d9e9;return this[_0x2d6dc7(0xed)][_0x2d6dc7(0x118)](_0x2e46e8)||await this[_0x2d6dc7(0x124)](_0x2e46e8),this[_0x2d6dc7(0xed)][_0x2d6dc7(0xc1)](_0x2e46e8);}[_0x35d9e9(0x130)](_0x54b44a){const _0x27b042=_0x35d9e9;var _0x34c434;return(_0x34c434=this['_entities'][_0x27b042(0xc1)](_0x54b44a))!=null?_0x34c434:null;}[_0x35d9e9(0x11a)](){const _0x239d44=_0x35d9e9;this['_univerInstanceService'][_0x239d44(0xe0)](_0x51d6f1['UNIVER_SHEET'])[_0x239d44(0x96)](_0x24acb0(this[_0x239d44(0xda)]))['subscribe'](async _0x41deff=>{const _0x362acf=_0x239d44,_0x52452f=_0x41deff[_0x362acf(0x100)]();this[_0x362acf(0xed)][_0x362acf(0x118)](_0x52452f)||this[_0x362acf(0x124)](_0x52452f);}),this[_0x239d44(0xb5)][_0x239d44(0xef)](_0x51d6f1[_0x239d44(0x91)])[_0x239d44(0x96)](_0x24acb0(this[_0x239d44(0xda)]))[_0x239d44(0xa0)](_0xfe3166=>{const _0x1e7d84=_0x239d44,_0x20d27e=_0xfe3166['getUnitId'](),_0x167a64=this[_0x1e7d84(0xed)]['get'](_0x20d27e);_0x167a64==null||_0x167a64[_0x1e7d84(0xe5)]();});}async[_0x35d9e9(0x124)](_0x2651d7){const _0x7514d5=_0x35d9e9,_0x3a535c=await this[_0x7514d5(0xd1)][_0x7514d5(0xf2)](_0x2651d7),_0x31ba9e=this[_0x7514d5(0xc3)][_0x7514d5(0xf8)](N,_0x2651d7,_0x3a535c);return _0x31ba9e[_0x7514d5(0x11b)](),this[_0x7514d5(0xed)][_0x7514d5(0x10f)](_0x2651d7,_0x31ba9e),_0x31ba9e;}};S=Y([_(0x0,_0x71ffd),_(0x1,_0x2221d8(_0x1f291d)),_(0x2,_0x2221d8(_0x2622ad))],S);var c=(_0x4c138b=>(_0x4c138b[_0x35d9e9(0xc7)]=_0x35d9e9(0xc9),_0x4c138b['IDLE']=_0x35d9e9(0x93),_0x4c138b['FOLLOWING']=_0x35d9e9(0xe7),_0x4c138b['NOT_FOLLOWING']=_0x35d9e9(0x9c),_0x4c138b[_0x35d9e9(0x11e)]='presenting',_0x4c138b))(c||{});const Ce=_0x35d9e9(0xce),De=0xc8;let N=class extends _0x29d644{constructor(_0x1a0923,_0xda276d,_0x500eb8,_0x32d7c7,_0x244db7){const _0x34102a=_0x35d9e9;super(),u(this,_0x34102a(0xa9),new _0x51f5dc(_0x34102a(0x93))),u(this,'status$',this[_0x34102a(0xa9)]['asObservable']()),u(this,_0x34102a(0x11a),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x34102a(0x12b)]=_0x1a0923,this[_0x34102a(0x111)]=_0xda276d,this[_0x34102a(0x120)]=_0x500eb8,this[_0x34102a(0x9b)]=_0x32d7c7,this[_0x34102a(0xcb)]=_0x244db7);}get[_0x35d9e9(0x112)](){const _0x463f68=_0x35d9e9;return this[_0x463f68(0xa9)][_0x463f68(0x132)]();}[_0x35d9e9(0xe5)](){const _0x1ff2ee=_0x35d9e9;var _0x181e52;(_0x181e52=this[_0x1ff2ee(0xb2)])==null||_0x181e52[_0x1ff2ee(0xe5)](),this[_0x1ff2ee(0xa9)][_0x1ff2ee(0xb3)](_0x1ff2ee(0x93)),this['_status$']['complete']();}[_0x35d9e9(0x9e)](){const _0x48b415=_0x35d9e9;return this[_0x48b415(0x112)];}['init'](){const _0x18ada0=_0x35d9e9;this['_init']||(this[_0x18ada0(0x11a)]=!0x0,this[_0x18ada0(0x111)]['sessionStatus$'][_0x18ada0(0x96)](_0x24acb0(this[_0x18ada0(0xda)]))[_0x18ada0(0xa0)](_0xb9fc7d=>{const _0x30b161=_0x18ada0;switch(_0xb9fc7d){case _0x5be8ca['OFFLINE']:this[_0x30b161(0x97)]();break;case _0x5be8ca[_0x30b161(0x113)]:this[_0x30b161(0xe6)]();break;}}),this[_0x18ada0(0x111)]['event$'][_0x18ada0(0x96)](_0x24acb0(this['dispose$']))['subscribe'](_0x167b5f=>{const _0x4546ee=_0x18ada0,{eventID:_0x52a7fd}=_0x167b5f;switch(_0x52a7fd){case _0x27a16f[_0x4546ee(0x10d)]:this['_handleNewHost'](_0x167b5f);break;case _0x27a16f[_0x4546ee(0x12f)]:this['_handleOperation'](_0x167b5f);break;case _0x27a16f[_0x4546ee(0x12a)]:this['_handleTerminate']();break;case _0x27a16f['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x167b5f);break;}}));}[_0x35d9e9(0x126)](){const _0x24fa67=_0x35d9e9;this[_0x24fa67(0x111)][_0x24fa67(0xbe)]({'eventID':_0x27a16f[_0x24fa67(0x12d)],'data':{'unitID':this[_0x24fa67(0x12b)],'userID':this[_0x24fa67(0x111)][_0x24fa67(0xb0)]()}},this[_0x24fa67(0x12b)]);}[_0x35d9e9(0x103)](){const _0x1fb947=_0x35d9e9;this[_0x1fb947(0x112)]===_0x1fb947(0xea)&&(this[_0x1fb947(0xa9)]['next'](_0x1fb947(0x93)),this[_0x1fb947(0x111)][_0x1fb947(0xbe)]({'eventID':_0x27a16f[_0x1fb947(0x12a)],'data':{'unitID':this[_0x1fb947(0x12b)]}},this['_unitID']));}[_0x35d9e9(0x98)](){const _0x292e7c=_0x35d9e9;this['_status']===_0x292e7c(0x9c)&&(this['_status$'][_0x292e7c(0xb3)]('following'),this[_0x292e7c(0xff)]());}[_0x35d9e9(0xf0)](){const _0x218f24=_0x35d9e9;this[_0x218f24(0x112)]==='following'&&this[_0x218f24(0x108)]();}['_handleNewHost'](_0x50539d){const _0x2f128f=_0x35d9e9,{presenter:_0x339e0f}=_0x50539d[_0x2f128f(0xcd)],_0x36d0b2=this['_collabSession'][_0x2f128f(0xb0)]();this[_0x2f128f(0x92)]=_0x339e0f,_0x339e0f===_0x36d0b2?(this[_0x2f128f(0x108)](),this['_startPresenting']()):this['_status']!==_0x2f128f(0x9c)&&(this[_0x2f128f(0xc2)](),this[_0x2f128f(0xff)]());}['_fetchOperations'](){const _0x4a7e33=_0x35d9e9,_0x3e52e8={'eventID':_0x27a16f[_0x4a7e33(0xad)]};this[_0x4a7e33(0x111)]['send'](_0x3e52e8,this[_0x4a7e33(0x12b)]);}['_handleTerminate'](){const _0x4f3c0b=_0x35d9e9;this[_0x4f3c0b(0x92)]=null,this['_status']!==_0x4f3c0b(0xea)&&this[_0x4f3c0b(0x95)]();}['_handleNewChangeSets'](_0x48624f){const _0x331445=_0x35d9e9;if(this[_0x331445(0x112)]===_0x331445(0xe7)&&this[_0x331445(0x92)]===_0x48624f[_0x331445(0xcd)][_0x331445(0x9f)]){const _0x57abff=_0x381ef2(_0x48624f[_0x331445(0xcd)])[_0x331445(0x129)][_0x331445(0xfa)]()['find'](_0x3d32bc=>_0x3d32bc['id']===_0x9a593f['id']);if(_0x57abff){const _0x207c3a=_0x57abff[_0x331445(0xaf)][_0x331445(0x114)],_0x42fc1f=_0x57abff[_0x331445(0xaf)][_0x331445(0x107)]['id'];setTimeout(()=>{const _0x525022=_0x331445;this[_0x525022(0xcb)][_0x525022(0x101)](_0x4cc0de['id'],{'unitId':_0x207c3a,'subUnitId':_0x42fc1f},{'fromCollab':!0x0});});}}}[_0x35d9e9(0xec)](){const _0x9b5e2a=_0x35d9e9;this['_status$'][_0x9b5e2a(0xb3)]('presenting');const _0x3e7417=new Map(),_0x249a26=this[_0x9b5e2a(0xb2)]=new _0x5598f6();_0x249a26[_0x9b5e2a(0x10b)](_0x1c91a3(()=>{const _0x2ac501=_0x9b5e2a;_0x3e7417[_0x2ac501(0xbc)](_0x47dc37=>_0x47dc37['complete']()),_0x3e7417[_0x2ac501(0xf9)]();})),_0x249a26[_0x9b5e2a(0x10b)](this[_0x9b5e2a(0xcb)][_0x9b5e2a(0xd8)](_0x38b4c5=>{const _0x591edf=_0x9b5e2a;var _0x15e823;if(_0x38b4c5['type']!==_0x247639[_0x591edf(0xca)]||!this[_0x591edf(0x9b)][_0x591edf(0xd5)](_0x38b4c5['id']))return;const {id:_0x5a4fc6}=_0x38b4c5;let _0x1e8661;_0x3e7417[_0x591edf(0x118)](_0x5a4fc6)?_0x1e8661=_0x3e7417[_0x591edf(0xc1)](_0x5a4fc6):(_0x1e8661=new _0x149954(),_0x3e7417['set'](_0x5a4fc6,_0x1e8661),_0x1e8661[_0x591edf(0x96)](_0x1a12f4((_0x15e823=this[_0x591edf(0x120)]['getConfig'](Ce))!=null?_0x15e823:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x439bd5=>{const _0x3bd401=_0x591edf;this[_0x3bd401(0x111)][_0x3bd401(0xbe)]({'eventID':_0x27a16f[_0x3bd401(0x12f)],'data':{'unitID':this[_0x3bd401(0x12b)],'operations':{[_0x439bd5['id']]:{'id':_0x439bd5['id'],'params':JSON[_0x3bd401(0xd2)](_0x439bd5['params'])}}}},this[_0x3bd401(0x12b)]);})),_0x1e8661[_0x591edf(0xb3)](_0x38b4c5);})),this[_0x9b5e2a(0x9b)]['getInitialStates'](this['_unitID'])[_0x9b5e2a(0xbc)](_0x58b740=>this['_collabSession'][_0x9b5e2a(0xbe)]({'eventID':_0x27a16f[_0x9b5e2a(0x12f)],'data':{'unitID':this[_0x9b5e2a(0x12b)],'operations':{[_0x58b740['id']]:{'id':_0x58b740['id'],'params':JSON['stringify'](_0x58b740[_0x9b5e2a(0xaf)])}}}},this[_0x9b5e2a(0x12b)]));}[_0x35d9e9(0xc2)](){const _0x26ebc2=_0x35d9e9;var _0x1686e1;this[_0x26ebc2(0xa9)][_0x26ebc2(0xb3)](_0x26ebc2(0x93)),(_0x1686e1=this[_0x26ebc2(0xb2)])==null||_0x1686e1[_0x26ebc2(0xe5)](),this[_0x26ebc2(0xb2)]=null;}['_startFollowing'](){const _0x197408=_0x35d9e9;var _0xdc2e1b;(_0xdc2e1b=this[_0x197408(0xb2)])==null||_0xdc2e1b[_0x197408(0xe5)](),this[_0x197408(0xa9)][_0x197408(0xb3)](_0x197408(0xe7));}[_0x35d9e9(0x95)](){const _0x4aeab8=_0x35d9e9;var _0x2db3a1;this[_0x4aeab8(0xa9)][_0x4aeab8(0xb3)](_0x4aeab8(0x93)),(_0x2db3a1=this['_commandDisposable'])==null||_0x2db3a1[_0x4aeab8(0xe5)](),this[_0x4aeab8(0xb2)]=null;}[_0x35d9e9(0x108)](){const _0x25772f=_0x35d9e9;var _0x51e377;this['_status$'][_0x25772f(0xb3)](_0x25772f(0x9c)),(_0x51e377=this[_0x25772f(0xb2)])==null||_0x51e377[_0x25772f(0xe5)]();}['_handleOperation'](_0x328691){const _0x47c7f0=_0x35d9e9;if(['presenting',_0x47c7f0(0x9c),'offline']['includes'](this[_0x47c7f0(0x112)])||!_0x328691[_0x47c7f0(0xcd)][_0x47c7f0(0xf4)]||_0x328691[_0x47c7f0(0xcd)][_0x47c7f0(0xf4)]===this[_0x47c7f0(0x111)][_0x47c7f0(0xb0)]())return;this['_status']===_0x47c7f0(0x93)&&this['_startFollowing']();const _0x539a7b=_0x328691[_0x47c7f0(0xcd)]['operations'];Object[_0x47c7f0(0x123)](_0x539a7b)[_0x47c7f0(0xbc)](_0x4d8744=>{const _0x462d30=_0x47c7f0;this['_commandService']['executeCommand'](_0x4d8744['id'],_0x4d8744[_0x462d30(0xaf)]?JSON[_0x462d30(0x102)](_0x4d8744['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x377532=_0x35d9e9;var _0x51a0fb;this[_0x377532(0xa9)]['next'](_0x377532(0xc9)),(_0x51a0fb=this['_commandDisposable'])==null||_0x51a0fb[_0x377532(0xe5)]();}[_0x35d9e9(0xe6)](){const _0x29a564=_0x35d9e9;this[_0x29a564(0xa9)][_0x29a564(0xb3)](_0x29a564(0x93)),this[_0x29a564(0xeb)]();}};N=Y([_(0x2,_0x4d4902),_(0x3,_0x2221d8(L)),_(0x4,_0x41e10a)],N);function Le(){const _0x5bc7d8=_0x35d9e9,_0x465581=_0x3da98e(S),_0x7f5d38=_0x3da98e(_0x71ffd),_0xd4d6f9=_0x4a59c5(()=>_0x7f5d38[_0x5bc7d8(0x105)](_0x51d6f1[_0x5bc7d8(0x91)]),void 0x0,!0x1,[]),[_0x1a1c38,_0x3f6638]=_0x35fc23(null),[_0xd7627f,_0x5011be]=_0x35fc23(c[_0x5bc7d8(0xc0)]),_0x53e070=_0x45258b(null);return _0x4a7e39(()=>(_0xd4d6f9&&_0x465581['getLiveShareCoordinator'](_0xd4d6f9['getUnitId']())['then'](_0x1a8fe2=>{const _0x2e1a28=_0x5bc7d8;_0x3f6638(_0x1a8fe2),_0x53e070[_0x2e1a28(0x10a)]=_0x1a8fe2['status$'][_0x2e1a28(0xa0)](_0x537f60=>{_0x5011be(_0x537f60);});}),()=>{const _0x238ea4=_0x5bc7d8;var _0x47d86e;(_0x47d86e=_0x53e070['current'])==null||_0x47d86e[_0x238ea4(0xa5)](),_0x53e070[_0x238ea4(0x10a)]=null;}),[_0xd4d6f9,_0x465581]),_0x1a1c38?_0x3df5d3(_0x5a5b05,{'align':_0x5bc7d8(0xf1),'disabled':_0xd7627f===c[_0x5bc7d8(0xc7)],'className':_0x5bc7d8(0x128),'overlay':_0x3df5d3(Re,{'status':_0xd7627f,'coordinator':_0x1a1c38}),'children':_0x3df5d3('button',{'className':_0x5e9053('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xd7627f===c[_0x5bc7d8(0xc7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xd7627f!==c['OFFLINE']}),'type':'button','children':_0x3df5d3(W,{'className':_0x5bc7d8(0xe2)})})}):null;}function Re(_0x1b5587){const _0x521532=_0x35d9e9,{status:_0x50dc03,coordinator:_0x17f900}=_0x1b5587;switch(_0x50dc03){case c[_0x521532(0xc0)]:return _0x3df5d3($e,{'coordinator':_0x17f900});case c['FOLLOWING']:return _0x3df5d3(xe,{'coordinator':_0x17f900});case c[_0x521532(0xd7)]:return _0x3df5d3(Pe,{'coordinator':_0x17f900});case c['OFFLINE']:return _0x3df5d3(Te,{});case c[_0x521532(0x11e)]:return _0x3df5d3(Ae,{'coordinator':_0x17f900});default:return null;}}function $e(_0x599f27){const _0x352f2d=_0x35d9e9,{coordinator:_0xb79f4}=_0x599f27;return _0x879f1c(_0x521211,{'children':[_0x3df5d3(_0x352f2d(0x106),{'className':_0x352f2d(0xf3),'children':'Present\x20this\x20document'}),_0x3df5d3(_0x36810d,{'onClick':()=>_0xb79f4[_0x352f2d(0x126)](),'children':'Start'})]});}function xe(_0x3bbc8a){const _0x201fb5=_0x35d9e9,{coordinator:_0x522b4c}=_0x3bbc8a;return _0x879f1c(_0x521211,{'children':[_0x3df5d3(_0x201fb5(0x106),{'className':_0x201fb5(0xf3),'children':_0x201fb5(0xc8)}),_0x3df5d3(_0x36810d,{'onClick':()=>_0x522b4c[_0x201fb5(0xf0)](),'children':_0x201fb5(0x11d)})]});}function Pe(_0x17f6b2){const _0xdb006e=_0x35d9e9,{coordinator:_0x15b7f2}=_0x17f6b2;return _0x879f1c(_0x521211,{'children':[_0x3df5d3(_0xdb006e(0x106),{'className':_0xdb006e(0xf3),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3df5d3(_0x36810d,{'variant':_0xdb006e(0xd4),'onClick':()=>_0x15b7f2[_0xdb006e(0x98)](),'children':_0xdb006e(0xa7)})]});}function Ae(_0x3470d7){const _0x3f1aef=_0x35d9e9,{coordinator:_0x195134}=_0x3470d7;return _0x879f1c(_0x521211,{'children':[_0x3df5d3(_0x3f1aef(0x106),{'className':_0x3f1aef(0xf3),'children':_0x3f1aef(0x104)}),_0x3df5d3(_0x36810d,{'variant':'default','onClick':()=>_0x195134[_0x3f1aef(0x103)](),'children':_0x3f1aef(0xb8)})]});}function Te(){const _0x2aced7=_0x35d9e9;return _0x3df5d3(_0x521211,{'children':_0x2aced7(0x131)});}var Fe=Object[_0x35d9e9(0xd0)],He=(_0x989a7e,_0x44b788,_0x4ab212,_0x302d39)=>{const _0x512f23=_0x35d9e9;for(var _0x638353=_0x302d39>0x1?void 0x0:_0x302d39?Fe(_0x44b788,_0x4ab212):_0x44b788,_0xf09057=_0x989a7e[_0x512f23(0xba)]-0x1,_0x497758;_0xf09057>=0x0;_0xf09057--)(_0x497758=_0x989a7e[_0xf09057])&&(_0x638353=_0x497758(_0x638353)||_0x638353);return _0x638353;},A=(_0x3ed7f7,_0x56275f)=>(_0x2a1d52,_0x513c6e)=>_0x56275f(_0x2a1d52,_0x513c6e,_0x3ed7f7);let m=class extends _0x59855c{constructor(_0x1f1b71,_0x5b3eb9){const _0x329c61=_0x35d9e9;super(),this[_0x329c61(0xc3)]=_0x1f1b71,this[_0x329c61(0xe4)]=_0x5b3eb9,this[_0x329c61(0x127)]();}['_mountLiveShare'](){const _0x4e7f06=_0x35d9e9;this[_0x4e7f06(0x9a)](this[_0x4e7f06(0xe4)]['registerComponent'](_0x25440a[_0x4e7f06(0x116)],()=>_0x68f671(Le,this[_0x4e7f06(0xc3)])));}};function _0x5f0c(){const _0x1afb58=['Start\x20following','1573030RAeZhv','_status$','LiveShareIcon','getLiveShareCoordinator','includes','LIVESHARE_FETCH_OPERATIONS','1605000nxleOU','params','getMemberID','univerjs-icon\x20univerjs-icon-','_commandDisposable','next','fill','_univerInstanceService','none','40pAFAXW','Stop\x20presenting','assign','length','attrs','forEach','delete','send','currentColor','IDLE','get','_stopPresenting','_injector','colorChannel1','754638HXbHwH','30nLPGXs','OFFLINE','You\x27re\x20following\x20the\x20presenter','offline','OPERATION','_commandService','type','data','SAME_OPERATION_SHARE_INTERVAL','4131432xUrAlg','getOwnPropertyDescriptor','_collabSessionService','stringify','defs','text','shouldShareOperation','_config','NOT_FOLLOWING','onCommandExecuted','UNIVER_UNKNOWN','dispose$','entries','substring','string','1342376iCknva','use','getTypeOfUnitAdded$','children','univer-size-4','onRendered','_uiPartsService','dispose','_handleOnline','following','_sharedOperations','UniverIcon','presenting','_fetchOperations','_startPresenting','_entities','90jQEYer','getTypeOfUnitDisposed$','stopFollowing','end','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','presenter','symbol','registerSharedOperation','_reporters','createInstance','clear','reverse','idSuffix','mask','map','xlink:href','_startFollowing','getUnitId','executeCommand','parse','stopPresenting','You\x27re\x20presenting\x20the\x20document','getCurrentTypeOfUnit$','div','sheet','_stopFollowing','url(#$1','current','add','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','LIVESHARE_NEW_HOST','evenodd','set','defIds','_collabSession','_status','ONLINE','unitId','pluginName','HEADER_MENU','tag','has','toString','_init','init','0\x200\x2017\x2017','Stop\x20following','PRESENTING','path','_configService','svg','http://www.w3.org/2000/svg','values','_startLiveShareCoordinator','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','tryStartPresenting','_mountLiveShare','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','mutations','LIVESHARE_TERMINATE','_unitID','getInitialStates','LIVESHARE_REQUEST_HOST','setConfig','LIVESHARE_OPERATION','getLiveShareCoordinatorSync','You\x27are\x20offline.','getValue','UNIVER_SHEET','_presenter','idle','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','pipe','_handleOffline','startFollowing','1975924JCtmiQ','disposeWithMe','_liveShareService','not-following','displayName','getStatus','memberID','subscribe','1086003dhiBdz','replace','defineProperty','random','unsubscribe','override'];_0x5f0c=function(){return _0x1afb58;};return _0x5f0c();}m=He([A(0x0,_0x2221d8(_0x1f291d)),A(0x1,_0x5c926c)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x5cc5aa,_0x4fa110,_0x475f97,_0x192fd2)=>{const _0x5d2d0f=_0x35d9e9;for(var _0x5762bc=_0x192fd2>0x1?void 0x0:_0x192fd2?Ue(_0x4fa110,_0x475f97):_0x4fa110,_0x428a10=_0x5cc5aa[_0x5d2d0f(0xba)]-0x1,_0x2d3fcf;_0x428a10>=0x0;_0x428a10--)(_0x2d3fcf=_0x5cc5aa[_0x428a10])&&(_0x5762bc=_0x2d3fcf(_0x5762bc)||_0x5762bc);return _0x5762bc;},je=(_0x35cffa,_0x24c64c)=>(_0x2cb426,_0x3fe931)=>_0x24c64c(_0x2cb426,_0x3fe931,_0x35cffa);let I=class extends _0x59855c{constructor(_0x4de518){const _0x4f7595=_0x35d9e9;super(),this[_0x4f7595(0x9b)]=_0x4de518,this[_0x4f7595(0x11a)]();}[_0x35d9e9(0x11a)](){[_0x2138c0['id'],_0x56070b['id'],_0x4cc0de['id']]['forEach'](_0x2f985f=>{const _0x526b83=_0x2a7c;this[_0x526b83(0x9a)](this[_0x526b83(0x9b)][_0x526b83(0xf6)](_0x2f985f));});}};I=Ve([je(0x0,_0x2221d8(L))],I);var Me=Object[_0x35d9e9(0xa3)],ke=Object[_0x35d9e9(0xd0)],Ge=(_0x315931,_0xb2b8ad,_0x5d436e)=>_0xb2b8ad in _0x315931?Me(_0x315931,_0xb2b8ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d436e}):_0x315931[_0xb2b8ad]=_0x5d436e,We=(_0x4c597a,_0x1c2783,_0xbb5f64,_0x500ded)=>{const _0x431739=_0x35d9e9;for(var _0x50c162=_0x500ded>0x1?void 0x0:_0x500ded?ke(_0x1c2783,_0xbb5f64):_0x1c2783,_0x58585d=_0x4c597a[_0x431739(0xba)]-0x1,_0x187d79;_0x58585d>=0x0;_0x58585d--)(_0x187d79=_0x4c597a[_0x58585d])&&(_0x50c162=_0x187d79(_0x50c162)||_0x50c162);return _0x50c162;},F=(_0x15ea03,_0x23b4cc)=>(_0x345c9a,_0x1db656)=>_0x23b4cc(_0x345c9a,_0x1db656,_0x15ea03),B=(_0x420101,_0x373434,_0x27297a)=>Ge(_0x420101,typeof _0x373434!=_0x35d9e9(0xf5)?_0x373434+'':_0x373434,_0x27297a);const Ye=_0x35d9e9(0x94);let b=class extends _0x3fd390{constructor(_0x4141ef=T,_0x15d38b,_0x3bf548){const _0x295050=_0x35d9e9;super(),this[_0x295050(0xd6)]=_0x4141ef,this[_0x295050(0xc3)]=_0x15d38b,this['_configService']=_0x3bf548;const {..._0x308791}=_0x47d277({},T,this[_0x295050(0xd6)]);this[_0x295050(0x120)][_0x295050(0x12e)](ye,_0x308791);}['onStarting'](){const _0x4963dc=_0x35d9e9;_0x4ce412(this[_0x4963dc(0xc3)],_0x4ddc40([[L],[S],[I],[m]],this[_0x4963dc(0xd6)][_0x4963dc(0xa6)])),_0x269b3b(this['_injector'],[[I]]);}[_0x35d9e9(0xe3)](){_0x269b3b(this['_injector'],[[m]]);}};B(b,_0x35d9e9(0xcc),_0x51d6f1[_0x35d9e9(0xd9)]),B(b,_0x35d9e9(0x115),Ye),b=We([_0x476a80(_0x3535e7),F(0x1,_0x2221d8(_0x1f291d)),F(0x2,_0x4d4902)],b);function _0x2a7c(_0x128e4a,_0x4d14d9){_0x128e4a=_0x128e4a-0x91;const _0x5f0c5e=_0x5f0c();let _0x2a7ca4=_0x5f0c5e[_0x128e4a];return _0x2a7ca4;}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 _0x1b2f(_0x16ac72,_0x17b1fa){_0x16ac72=_0x16ac72-0x1c6;const _0xef3301=_0xef33();let _0x1b2f00=_0xef3301[_0x16ac72];return _0x1b2f00;}(function(_0x4b8692,_0x4839c1){const _0x444cdf=_0x1b2f,_0x358157=_0x4b8692();while(!![]){try{const _0x2f2761=-parseInt(_0x444cdf(0x1e4))/0x1*(-parseInt(_0x444cdf(0x1d2))/0x2)+parseInt(_0x444cdf(0x1e5))/0x3+parseInt(_0x444cdf(0x1e6))/0x4*(parseInt(_0x444cdf(0x1ce))/0x5)+-parseInt(_0x444cdf(0x1f0))/0x6*(parseInt(_0x444cdf(0x1e9))/0x7)+-parseInt(_0x444cdf(0x1d8))/0x8+parseInt(_0x444cdf(0x1de))/0x9*(-parseInt(_0x444cdf(0x1ea))/0xa)+parseInt(_0x444cdf(0x1ec))/0xb;if(_0x2f2761===_0x4839c1)break;else _0x358157['push'](_0x358157['shift']());}catch(_0x44a70a){_0x358157['push'](_0x358157['shift']());}}}(_0xef33,0x66f38),function(_0x3132a1,_0x37967f){const _0x26f7e4=_0x1b2f;typeof exports=='object'&&typeof module<'u'?_0x37967f(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x26f7e4(0x1cc)&&define[_0x26f7e4(0x1db)]?define([_0x26f7e4(0x1d6),_0x26f7e4(0x1d9),_0x26f7e4(0x1d7)],_0x37967f):(_0x3132a1=typeof globalThis<'u'?globalThis:_0x3132a1||self,_0x37967f(_0x3132a1[_0x26f7e4(0x1da)],_0x3132a1[_0x26f7e4(0x1ee)],_0x3132a1[_0x26f7e4(0x1df)]));}(this,function(_0x10e21c,_0x36c8ce,_0x20bf55){'use strict';const _0x131bb3=_0x1b2f;var _0x573eb0=Object[_0x131bb3(0x1e2)],_0x3e61ac=(_0x546562,_0x25bd00,_0x48818d)=>_0x25bd00 in _0x546562?_0x573eb0(_0x546562,_0x25bd00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48818d}):_0x546562[_0x25bd00]=_0x48818d,_0x464a47=(_0x1d2850,_0x325902,_0x3ece79)=>_0x3e61ac(_0x1d2850,typeof _0x325902!=_0x131bb3(0x1cf)?_0x325902+'':_0x325902,_0x3ece79);class _0x49a55e extends _0x20bf55[_0x131bb3(0x1e0)]{constructor(){const _0x5d84cb=_0x131bb3;super(...arguments),_0x464a47(this,_0x5d84cb(0x1f1));}[_0x131bb3(0x1cd)](_0x4175cd){const _0x26df19=_0x131bb3;this[_0x26df19(0x1f1)]=_0x4175cd[_0x26df19(0x1d0)](_0x10e21c[_0x26df19(0x1e7)]);}['getLiveShareStatus'](){const _0x473a39=_0x131bb3;var _0xecedb;const _0x7ce27d=this[_0x473a39(0x1eb)][_0x473a39(0x1d0)](_0x36c8ce[_0x473a39(0x1d3)])[_0x473a39(0x1ed)](_0x36c8ce[_0x473a39(0x1ca)][_0x473a39(0x1c6)]);if(!_0x7ce27d)throw new Error(_0x473a39(0x1c7));const _0x7292a4=_0x7ce27d[_0x473a39(0x1dd)](),_0x36a09a=this['_liveShareController'][_0x473a39(0x1e8)](_0x7292a4);return(_0xecedb=_0x36a09a==null?void 0x0:_0x36a09a['getStatus']())!=null?_0xecedb:_0x10e21c[_0x473a39(0x1cb)][_0x473a39(0x1ef)];}[_0x131bb3(0x1d1)](){const _0x4bfb6e=_0x131bb3,_0x2ae002=this[_0x4bfb6e(0x1eb)][_0x4bfb6e(0x1d0)](_0x36c8ce['IUniverInstanceService'])[_0x4bfb6e(0x1ed)](_0x36c8ce[_0x4bfb6e(0x1ca)][_0x4bfb6e(0x1c6)]);if(!_0x2ae002)throw new Error(_0x4bfb6e(0x1c7));const _0x2ab482=_0x2ae002['getUnitId'](),_0x1549aa=this[_0x4bfb6e(0x1f1)][_0x4bfb6e(0x1e8)](_0x2ab482);if(!_0x1549aa)throw new Error(_0x4bfb6e(0x1c9));_0x1549aa[_0x4bfb6e(0x1d1)]();}['stopFollowing'](){const _0x1699c4=_0x131bb3,_0x90bd00=this[_0x1699c4(0x1eb)][_0x1699c4(0x1d0)](_0x36c8ce[_0x1699c4(0x1d3)])['getCurrentUnitOfType'](_0x36c8ce['UniverInstanceType'][_0x1699c4(0x1c6)]);if(!_0x90bd00)throw new Error(_0x1699c4(0x1c7));const _0x1ad299=_0x90bd00['getUnitId'](),_0x525c64=this['_liveShareController'][_0x1699c4(0x1e8)](_0x1ad299);if(!_0x525c64)throw new Error(_0x1699c4(0x1c9));_0x525c64[_0x1699c4(0x1c8)]();}[_0x131bb3(0x1d5)](){const _0x5b63ec=_0x131bb3,_0x5d64f2=this[_0x5b63ec(0x1eb)]['get'](_0x36c8ce['IUniverInstanceService'])[_0x5b63ec(0x1ed)](_0x36c8ce[_0x5b63ec(0x1ca)][_0x5b63ec(0x1c6)]);if(!_0x5d64f2)throw new Error(_0x5b63ec(0x1c7));const _0x2e6d33=_0x5d64f2['getUnitId'](),_0x1dcbd3=this['_liveShareController'][_0x5b63ec(0x1e8)](_0x2e6d33);if(!_0x1dcbd3)throw new Error(_0x5b63ec(0x1c9));_0x1dcbd3[_0x5b63ec(0x1d4)]();}[_0x131bb3(0x1dc)](){const _0x4c540a=_0x131bb3,_0x4d82b3=this[_0x4c540a(0x1eb)]['get'](_0x36c8ce['IUniverInstanceService'])[_0x4c540a(0x1ed)](_0x36c8ce[_0x4c540a(0x1ca)][_0x4c540a(0x1c6)]);if(!_0x4d82b3)throw new Error(_0x4c540a(0x1c7));const _0x296215=_0x4d82b3['getUnitId'](),_0x39aa1c=this[_0x4c540a(0x1f1)][_0x4c540a(0x1e8)](_0x296215);if(!_0x39aa1c)throw new Error(_0x4c540a(0x1c9));_0x39aa1c['stopPresenting']();}}_0x20bf55[_0x131bb3(0x1e0)][_0x131bb3(0x1e3)](_0x49a55e);class _0x8da196 extends _0x20bf55['FEnum']{get[_0x131bb3(0x1e1)](){const _0x177b32=_0x131bb3;return _0x10e21c[_0x177b32(0x1cb)];}}_0x20bf55['FEnum'][_0x131bb3(0x1e3)](_0x8da196);}));function _0xef33(){const _0x486ac8=['UniverCoreFacade','FUniver','LiveShareStatusEnum','defineProperty','extend','194433CwWMcH','208548Qyasdm','24DBnGtU','LiveShareController','getLiveShareCoordinatorSync','1310330BLdoaH','70hOcuIf','_injector','278773NAlbjB','getCurrentUnitOfType','UniverCore','IDLE','6PnFtfk','_liveShareController','UNIVER_SHEET','No\x20active\x20workbook\x20found.','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverInstanceType','LiveShareStatus','function','_initialize','596815XgtvWJ','symbol','get','startFollowing','2GziHkt','IUniverInstanceService','tryStartPresenting','startPresenting','@univerjs-pro/live-share','@univerjs/core/facade','1045912loYcqH','@univerjs/core','UniverProLiveShare','amd','stopPresenting','getUnitId','341811dzcKNL'];_0xef33=function(){return _0x486ac8;};return _0xef33();}
1
+ function _0x27f9(_0x4b36f5,_0x40d8de){_0x4b36f5=_0x4b36f5-0x1c4;const _0xa15f03=_0xa15f();let _0x27f989=_0xa15f03[_0x4b36f5];return _0x27f989;}(function(_0xfe2e80,_0x1b7dbb){const _0x2628fe=_0x27f9,_0x5ddc95=_0xfe2e80();while(!![]){try{const _0x590f06=-parseInt(_0x2628fe(0x1db))/0x1*(parseInt(_0x2628fe(0x1ed))/0x2)+-parseInt(_0x2628fe(0x1ef))/0x3*(parseInt(_0x2628fe(0x1e2))/0x4)+parseInt(_0x2628fe(0x1c9))/0x5*(-parseInt(_0x2628fe(0x1da))/0x6)+-parseInt(_0x2628fe(0x1cb))/0x7+-parseInt(_0x2628fe(0x1ce))/0x8*(-parseInt(_0x2628fe(0x1d6))/0x9)+parseInt(_0x2628fe(0x1dc))/0xa*(-parseInt(_0x2628fe(0x1c8))/0xb)+parseInt(_0x2628fe(0x1e9))/0xc;if(_0x590f06===_0x1b7dbb)break;else _0x5ddc95['push'](_0x5ddc95['shift']());}catch(_0x2fb528){_0x5ddc95['push'](_0x5ddc95['shift']());}}}(_0xa15f,0x87d0d),function(_0x366311,_0x311e29){const _0x3b4b73=_0x27f9;typeof exports==_0x3b4b73(0x1d9)&&typeof module<'u'?_0x311e29(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x3b4b73(0x1e7)&&define[_0x3b4b73(0x1c7)]?define([_0x3b4b73(0x1cd),'@univerjs/core',_0x3b4b73(0x1dd)],_0x311e29):(_0x366311=typeof globalThis<'u'?globalThis:_0x366311||self,_0x311e29(_0x366311[_0x3b4b73(0x1d3)],_0x366311['UniverCore'],_0x366311[_0x3b4b73(0x1ee)]));}(this,function(_0x2ee82b,_0x3d1964,_0x3cb310){'use strict';const _0x42282d=_0x27f9;var _0x4c23d3=Object[_0x42282d(0x1cc)],_0x2ab68b=(_0x1ab0b5,_0x2584b9,_0x234e67)=>_0x2584b9 in _0x1ab0b5?_0x4c23d3(_0x1ab0b5,_0x2584b9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x234e67}):_0x1ab0b5[_0x2584b9]=_0x234e67,_0x1e4de6=(_0x1662fe,_0x3355ab,_0x3dcd8f)=>_0x2ab68b(_0x1662fe,typeof _0x3355ab!='symbol'?_0x3355ab+'':_0x3355ab,_0x3dcd8f);class _0xad87cc extends _0x3cb310[_0x42282d(0x1e4)]{constructor(){const _0x520b5a=_0x42282d;super(...arguments),_0x1e4de6(this,_0x520b5a(0x1e3));}[_0x42282d(0x1df)](_0x402777){const _0x5a0ebd=_0x42282d;this[_0x5a0ebd(0x1e3)]=_0x402777[_0x5a0ebd(0x1e1)](_0x2ee82b[_0x5a0ebd(0x1e8)]);}['getLiveShareStatus'](){const _0x5bc1a9=_0x42282d;var _0x137162;const _0x5f01e7=this[_0x5bc1a9(0x1d5)][_0x5bc1a9(0x1e1)](_0x3d1964['IUniverInstanceService'])['getCurrentUnitOfType'](_0x3d1964[_0x5bc1a9(0x1e5)][_0x5bc1a9(0x1e0)]);if(!_0x5f01e7)throw new Error(_0x5bc1a9(0x1cf));const _0x5d1280=_0x5f01e7[_0x5bc1a9(0x1d4)](),_0x10bfee=this['_liveShareController'][_0x5bc1a9(0x1d7)](_0x5d1280);return(_0x137162=_0x10bfee==null?void 0x0:_0x10bfee[_0x5bc1a9(0x1d1)]())!=null?_0x137162:_0x2ee82b[_0x5bc1a9(0x1ec)][_0x5bc1a9(0x1c6)];}[_0x42282d(0x1c5)](){const _0x3b985c=_0x42282d,_0x1b55f8=this[_0x3b985c(0x1d5)]['get'](_0x3d1964[_0x3b985c(0x1ea)])[_0x3b985c(0x1d2)](_0x3d1964[_0x3b985c(0x1e5)][_0x3b985c(0x1e0)]);if(!_0x1b55f8)throw new Error(_0x3b985c(0x1cf));const _0x2373cf=_0x1b55f8['getUnitId'](),_0x36b091=this[_0x3b985c(0x1e3)][_0x3b985c(0x1d7)](_0x2373cf);if(!_0x36b091)throw new Error(_0x3b985c(0x1c4));_0x36b091['startFollowing']();}[_0x42282d(0x1d8)](){const _0xde2dbb=_0x42282d,_0x164b70=this[_0xde2dbb(0x1d5)][_0xde2dbb(0x1e1)](_0x3d1964[_0xde2dbb(0x1ea)])[_0xde2dbb(0x1d2)](_0x3d1964['UniverInstanceType'][_0xde2dbb(0x1e0)]);if(!_0x164b70)throw new Error(_0xde2dbb(0x1cf));const _0x71147e=_0x164b70[_0xde2dbb(0x1d4)](),_0x428291=this[_0xde2dbb(0x1e3)][_0xde2dbb(0x1d7)](_0x71147e);if(!_0x428291)throw new Error(_0xde2dbb(0x1c4));_0x428291['stopFollowing']();}[_0x42282d(0x1d0)](){const _0x5b7ef1=_0x42282d,_0x18cb81=this[_0x5b7ef1(0x1d5)]['get'](_0x3d1964[_0x5b7ef1(0x1ea)])[_0x5b7ef1(0x1d2)](_0x3d1964['UniverInstanceType']['UNIVER_SHEET']);if(!_0x18cb81)throw new Error('No\x20active\x20workbook\x20found.');const _0x2f190c=_0x18cb81[_0x5b7ef1(0x1d4)](),_0x1ea92a=this[_0x5b7ef1(0x1e3)][_0x5b7ef1(0x1d7)](_0x2f190c);if(!_0x1ea92a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1ea92a[_0x5b7ef1(0x1e6)]();}[_0x42282d(0x1ca)](){const _0x14d275=_0x42282d,_0x100825=this[_0x14d275(0x1d5)][_0x14d275(0x1e1)](_0x3d1964[_0x14d275(0x1ea)])['getCurrentUnitOfType'](_0x3d1964['UniverInstanceType'][_0x14d275(0x1e0)]);if(!_0x100825)throw new Error('No\x20active\x20workbook\x20found.');const _0x54aad9=_0x100825['getUnitId'](),_0x3de661=this[_0x14d275(0x1e3)]['getLiveShareCoordinatorSync'](_0x54aad9);if(!_0x3de661)throw new Error(_0x14d275(0x1c4));_0x3de661['stopPresenting']();}}_0x3cb310[_0x42282d(0x1e4)][_0x42282d(0x1eb)](_0xad87cc);class _0x179046 extends _0x3cb310[_0x42282d(0x1de)]{get['LiveShareStatusEnum'](){return _0x2ee82b['LiveShareStatus'];}}_0x3cb310[_0x42282d(0x1de)][_0x42282d(0x1eb)](_0x179046);}));function _0xa15f(){const _0x8479ad=['3fNTEkB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','IDLE','amd','22boSpOf','78820vnBRyG','stopPresenting','3040793askdUU','defineProperty','@univerjs-pro/live-share','48OGBykv','No\x20active\x20workbook\x20found.','startPresenting','getStatus','getCurrentUnitOfType','UniverProLiveShare','getUnitId','_injector','891873NUqtWA','getLiveShareCoordinatorSync','stopFollowing','object','282nzyJQs','113567LFTwJZ','1112110CUmHjk','@univerjs/core/facade','FEnum','_initialize','UNIVER_SHEET','get','1351820TXhGEn','_liveShareController','FUniver','UniverInstanceType','tryStartPresenting','function','LiveShareController','27182856ZeeexN','IUniverInstanceService','extend','LiveShareStatus','10CLejdt','UniverCoreFacade'];_0xa15f=function(){return _0x8479ad;};return _0xa15f();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4678fc,_0x533038){const _0x38525b=_0x5a6d,_0xcebde=_0x4678fc();while(!![]){try{const _0x24647d=parseInt(_0x38525b(0xe5))/0x1+-parseInt(_0x38525b(0xfc))/0x2*(parseInt(_0x38525b(0x17e))/0x3)+-parseInt(_0x38525b(0xb4))/0x4+-parseInt(_0x38525b(0x104))/0x5*(parseInt(_0x38525b(0x110))/0x6)+-parseInt(_0x38525b(0x179))/0x7*(parseInt(_0x38525b(0x122))/0x8)+parseInt(_0x38525b(0x139))/0x9*(parseInt(_0x38525b(0xbd))/0xa)+-parseInt(_0x38525b(0xe7))/0xb*(-parseInt(_0x38525b(0xaf))/0xc);if(_0x24647d===_0x533038)break;else _0xcebde['push'](_0xcebde['shift']());}catch(_0x574b97){_0xcebde['push'](_0xcebde['shift']());}}}(_0x4622,0x5288c),function(_0x5ca170,_0x3297e2){const _0x446a9b=_0x5a6d;typeof exports=='object'&&typeof module<'u'?_0x3297e2(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==_0x446a9b(0x107)&&define[_0x446a9b(0x12a)]?define([_0x446a9b(0x13a),_0x446a9b(0x146),_0x446a9b(0xb1),_0x446a9b(0x15d),_0x446a9b(0x11d),_0x446a9b(0x17f),_0x446a9b(0xfd),_0x446a9b(0xf7),_0x446a9b(0xb6),'rxjs',_0x446a9b(0xdb),_0x446a9b(0x105)],_0x3297e2):(_0x5ca170=typeof globalThis<'u'?globalThis:_0x5ca170||self,_0x3297e2(_0x5ca170['UniverProLiveShare']={},_0x5ca170[_0x446a9b(0x11b)],_0x5ca170[_0x446a9b(0x10f)],_0x5ca170[_0x446a9b(0x17a)],_0x5ca170[_0x446a9b(0xfb)],_0x5ca170[_0x446a9b(0x17a)],_0x5ca170['UniverProCollaboration'],_0x5ca170[_0x446a9b(0x13f)],_0x5ca170[_0x446a9b(0x121)],_0x5ca170[_0x446a9b(0xc6)],_0x5ca170['rxjs'][_0x446a9b(0xf5)],_0x5ca170[_0x446a9b(0x136)]));}(this,function(_0xb111cc,_0x4c6753,_0x462432,_0x1a7374,_0x17fd4c,_0x18d1ec,_0x4361d9,_0x5a4563,_0x57d05a,_0x3a52e9,_0x29a6c7,_0x290a03){'use strict';const _0x18f5c5=_0x5a6d;var _0x5b0c64=Object[_0x18f5c5(0x12f)],_0x2cdc91=(_0x3737f8,_0x587626,_0x14d572)=>_0x587626 in _0x3737f8?_0x5b0c64(_0x3737f8,_0x587626,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d572}):_0x3737f8[_0x587626]=_0x14d572,_0x3b8ef1=(_0xa67856,_0x3afa65,_0x50b938)=>_0x2cdc91(_0xa67856,typeof _0x3afa65!='symbol'?_0x3afa65+'':_0x3afa65,_0x50b938);function _0x22a2dc({ref:_0x483fa9,..._0x1a881a}){const _0x2ea157=_0x18f5c5,{icon:_0x4eb951,id:_0x171c6c,className:_0x5cb6c1,extend:_0x503a2b,..._0x90069c}=_0x1a881a,_0x20e750=(_0x2ea157(0xdf)+_0x171c6c+'\x20'+(_0x5cb6c1||''))[_0x2ea157(0x16e)](),_0x72926c=_0x18d1ec['useRef']('_'+_0x420418());return _0x24d52a(_0x4eb951,''+_0x171c6c,{'defIds':_0x4eb951[_0x2ea157(0x181)],'idSuffix':_0x72926c[_0x2ea157(0xe6)]},{'ref':_0x483fa9,'className':_0x20e750,..._0x90069c},_0x503a2b);}function _0x24d52a(_0x2e5f56,_0x229bad,_0x319a65,_0x581e67,_0x2cbcc4){const _0x42c150=_0x18f5c5;return _0x18d1ec[_0x42c150(0x135)](_0x2e5f56['tag'],{'key':_0x229bad,..._0x4efeb5(_0x2e5f56,_0x319a65,_0x2cbcc4),..._0x581e67},(_0x47ddd5(_0x2e5f56,_0x319a65)['children']||[])[_0x42c150(0x15c)]((_0x4411a8,_0x1f83e6)=>_0x24d52a(_0x4411a8,_0x229bad+'-'+_0x2e5f56['tag']+'-'+_0x1f83e6,_0x319a65,void 0x0,_0x2cbcc4)));}function _0x4efeb5(_0x30fe01,_0x3322a2,_0x1e1a72){const _0x2ef1dc=_0x18f5c5,_0x2b9095={..._0x30fe01['attrs']};_0x1e1a72!=null&&_0x1e1a72[_0x2ef1dc(0xc5)]&&_0x2b9095[_0x2ef1dc(0x170)]===_0x2ef1dc(0xc5)&&(_0x2b9095[_0x2ef1dc(0x170)]=_0x1e1a72['colorChannel1']),_0x30fe01[_0x2ef1dc(0x13c)]===_0x2ef1dc(0x180)&&_0x2b9095['id']&&(_0x2b9095['id']=_0x2b9095['id']+_0x3322a2[_0x2ef1dc(0x17c)]),Object['entries'](_0x2b9095)[_0x2ef1dc(0x109)](([_0x5bdb67,_0x14ebd5])=>{const _0x30761e=_0x2ef1dc;_0x5bdb67===_0x30761e(0x180)&&typeof _0x14ebd5==_0x30761e(0xb2)&&(_0x2b9095[_0x5bdb67]=_0x14ebd5[_0x30761e(0xfe)](/url\(#(.*)\)/,_0x30761e(0x101)+_0x3322a2['idSuffix']+')'));});const {defIds:_0xa673b}=_0x3322a2;return!_0xa673b||_0xa673b['length']===0x0||(_0x30fe01[_0x2ef1dc(0x13c)]==='use'&&_0x2b9095[_0x2ef1dc(0xcc)]&&(_0x2b9095[_0x2ef1dc(0xcc)]=_0x2b9095[_0x2ef1dc(0xcc)]+_0x3322a2[_0x2ef1dc(0x17c)]),Object[_0x2ef1dc(0x116)](_0x2b9095)['forEach'](([_0x958f44,_0x489871])=>{const _0x432dea=_0x2ef1dc;typeof _0x489871==_0x432dea(0xb2)&&(_0x2b9095[_0x958f44]=_0x489871[_0x432dea(0xfe)](/url\(#(.*)\)/,'url(#$1'+_0x3322a2['idSuffix']+')'));})),_0x2b9095;}function _0x47ddd5(_0x15ed73,_0x5bc13d){const _0x361999=_0x18f5c5;var _0x12d877;const {defIds:_0x404156}=_0x5bc13d;return!_0x404156||_0x404156[_0x361999(0x151)]===0x0?_0x15ed73:_0x15ed73[_0x361999(0x13c)]===_0x361999(0xd2)&&((_0x12d877=_0x15ed73[_0x361999(0xf2)])!=null&&_0x12d877[_0x361999(0x151)])?{..._0x15ed73,'children':_0x15ed73[_0x361999(0xf2)][_0x361999(0x15c)](_0x59d01a=>typeof _0x59d01a[_0x361999(0x163)]['id']==_0x361999(0xb2)&&_0x404156&&_0x404156[_0x361999(0x14f)](_0x59d01a['attrs']['id'])?{..._0x59d01a,'attrs':{..._0x59d01a[_0x361999(0x163)],'id':_0x59d01a[_0x361999(0x163)]['id']+_0x5bc13d['idSuffix']}}:_0x59d01a)}:_0x15ed73;}function _0x420418(){const _0x587dc9=_0x18f5c5;return Math['random']()[_0x587dc9(0x19d)](0x24)['substring'](0x2,0x8);}_0x22a2dc['displayName']='UniverIcon';const _0x370a10={'tag':_0x18f5c5(0x14d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x18f5c5(0x156),'viewBox':_0x18f5c5(0x162),'width':_0x18f5c5(0x143),'height':_0x18f5c5(0x143)},'children':[{'tag':_0x18f5c5(0xd8),'attrs':{'fill':'currentColor','d':_0x18f5c5(0xc8)}},{'tag':_0x18f5c5(0xd8),'attrs':{'fill':_0x18f5c5(0x118),'d':_0x18f5c5(0x18a),'fillRule':_0x18f5c5(0x14e),'clipRule':_0x18f5c5(0x14e)}}]},_0x24d395=_0x18d1ec['forwardRef'](function(_0x50413f,_0x2e8c63){const _0x574b18=_0x18f5c5;return _0x18d1ec['createElement'](_0x22a2dc,Object[_0x574b18(0xf1)]({},_0x50413f,{'id':_0x574b18(0xb0),'ref':_0x2e8c63,'icon':_0x370a10}));});_0x24d395[_0x18f5c5(0x11f)]=_0x18f5c5(0x159);class _0x3c7620 extends _0x4c6753['Disposable']{constructor(){const _0x527fb4=_0x18f5c5;super(...arguments),_0x3b8ef1(this,_0x527fb4(0x18d),new Set()),_0x3b8ef1(this,_0x527fb4(0x11a),new Set());}['registerSharedOperation'](_0x507721){const _0x353ab0=_0x18f5c5;return this[_0x353ab0(0x18d)][_0x353ab0(0x112)](_0x507721),_0x4c6753['toDisposable'](()=>this['_sharedOperations'][_0x353ab0(0x177)](_0x507721));}[_0x18f5c5(0xee)](_0x5d6d31){const _0x341641=_0x18f5c5;return this[_0x341641(0x11a)][_0x341641(0x112)](_0x5d6d31),_0x4c6753['toDisposable'](()=>this['_reporters'][_0x341641(0x177)](_0x5d6d31));}[_0x18f5c5(0x198)](_0x4b1b2b){const _0x28f4da=_0x18f5c5;return this[_0x28f4da(0x18d)][_0x28f4da(0x19a)](_0x4b1b2b);}[_0x18f5c5(0x108)](_0x52d5ee){const _0x448683=_0x18f5c5;return Array[_0x448683(0x14c)](this[_0x448683(0x11a)])['map'](_0x50e626=>_0x50e626(_0x52d5ee));}}var _0x3278d9=Object[_0x18f5c5(0x10a)],_0x2f2ace=(_0x5e1d53,_0x41c542,_0x19122d,_0x141976)=>{const _0x1a7c88=_0x18f5c5;for(var _0x40707c=_0x141976>0x1?void 0x0:_0x141976?_0x3278d9(_0x41c542,_0x19122d):_0x41c542,_0x644112=_0x5e1d53[_0x1a7c88(0x151)]-0x1,_0x5a504b;_0x644112>=0x0;_0x644112--)(_0x5a504b=_0x5e1d53[_0x644112])&&(_0x40707c=_0x5a504b(_0x40707c)||_0x40707c);return _0x40707c;},_0x210108=(_0x59cb3c,_0x1e4866)=>(_0x560e6c,_0x4cac2c)=>_0x1e4866(_0x560e6c,_0x4cac2c,_0x59cb3c);_0xb111cc[_0x18f5c5(0x175)]=class extends _0x4c6753['RxDisposable']{constructor(_0x5f6a4a,_0x31d724,_0x214ab7){const _0x10ead7=_0x18f5c5;super(),_0x3b8ef1(this,_0x10ead7(0xfa),new Map()),(this[_0x10ead7(0x114)]=_0x5f6a4a,this[_0x10ead7(0xed)]=_0x31d724,this['_collabSessionService']=_0x214ab7,this[_0x10ead7(0xe8)]());}async[_0x18f5c5(0x111)](_0x2d7027){const _0x4af5f6=_0x18f5c5;return this[_0x4af5f6(0xfa)]['has'](_0x2d7027)||await this[_0x4af5f6(0x140)](_0x2d7027),this['_entities']['get'](_0x2d7027);}[_0x18f5c5(0xf4)](_0x2f2a2e){const _0xef048f=_0x18f5c5;var _0x2b023f;return(_0x2b023f=this['_entities'][_0xef048f(0x150)](_0x2f2a2e))!=null?_0x2b023f:null;}[_0x18f5c5(0xe8)](){const _0x39f9d4=_0x18f5c5;this[_0x39f9d4(0x114)]['getTypeOfUnitAdded$'](_0x4c6753[_0x39f9d4(0x166)]['UNIVER_SHEET'])['pipe'](_0x29a6c7[_0x39f9d4(0x131)](this[_0x39f9d4(0x12e)]))[_0x39f9d4(0xd9)](async _0x440617=>{const _0x12463a=_0x39f9d4,_0x3a4d94=_0x440617[_0x12463a(0xd4)]();this[_0x12463a(0xfa)][_0x12463a(0x19a)](_0x3a4d94)||this[_0x12463a(0x140)](_0x3a4d94);}),this[_0x39f9d4(0x114)][_0x39f9d4(0xca)](_0x4c6753['UniverInstanceType'][_0x39f9d4(0x16d)])[_0x39f9d4(0xb9)](_0x29a6c7[_0x39f9d4(0x131)](this['dispose$']))[_0x39f9d4(0xd9)](_0x36d7f=>{const _0x5a6f1b=_0x39f9d4,_0x1ec7fc=_0x36d7f[_0x5a6f1b(0xd4)](),_0x16c6b4=this[_0x5a6f1b(0xfa)][_0x5a6f1b(0x150)](_0x1ec7fc);_0x16c6b4==null||_0x16c6b4['dispose']();});}async[_0x18f5c5(0x140)](_0x2568dc){const _0x2185ca=_0x18f5c5,_0x53c282=await this[_0x2185ca(0x12d)][_0x2185ca(0xe3)](_0x2568dc),_0x419ba2=this[_0x2185ca(0xed)][_0x2185ca(0x182)](_0xb111cc[_0x2185ca(0x183)],_0x2568dc,_0x53c282);return _0x419ba2[_0x2185ca(0x144)](),this[_0x2185ca(0xfa)][_0x2185ca(0x14b)](_0x2568dc,_0x419ba2),_0x419ba2;}},_0xb111cc[_0x18f5c5(0x175)]=_0x2f2ace([_0x210108(0x0,_0x4c6753[_0x18f5c5(0x165)]),_0x210108(0x1,_0x4c6753['Inject'](_0x4c6753[_0x18f5c5(0xf6)])),_0x210108(0x2,_0x4c6753[_0x18f5c5(0x141)](_0x5a4563[_0x18f5c5(0x103)]))],_0xb111cc['LiveShareController']);var _0x2850bb=(_0x29389a=>(_0x29389a['OFFLINE']=_0x18f5c5(0xbc),_0x29389a[_0x18f5c5(0x168)]='idle',_0x29389a[_0x18f5c5(0xc9)]=_0x18f5c5(0xad),_0x29389a[_0x18f5c5(0x18b)]=_0x18f5c5(0x152),_0x29389a[_0x18f5c5(0x173)]=_0x18f5c5(0x160),_0x29389a))(_0x2850bb||{});const _0x2da41f=_0x18f5c5(0x172),_0x40259b=0xc8;_0xb111cc[_0x18f5c5(0x183)]=class extends _0x4c6753[_0x18f5c5(0x197)]{constructor(_0x4f1578,_0x5e4d97,_0x221480,_0x2aecfb,_0x54a5a9){const _0x97bf0=_0x18f5c5;super(),_0x3b8ef1(this,_0x97bf0(0x13d),new _0x3a52e9[(_0x97bf0(0x157))]('idle')),_0x3b8ef1(this,_0x97bf0(0xf0),this[_0x97bf0(0x13d)][_0x97bf0(0x189)]()),_0x3b8ef1(this,_0x97bf0(0xe8),!0x1),_0x3b8ef1(this,_0x97bf0(0x12c),null),_0x3b8ef1(this,_0x97bf0(0x11e),null),(this[_0x97bf0(0x195)]=_0x4f1578,this[_0x97bf0(0x126)]=_0x5e4d97,this[_0x97bf0(0x14a)]=_0x221480,this['_liveShareService']=_0x2aecfb,this[_0x97bf0(0x169)]=_0x54a5a9);}get[_0x18f5c5(0xba)](){const _0x2330e0=_0x18f5c5;return this[_0x2330e0(0x13d)][_0x2330e0(0xd3)]();}[_0x18f5c5(0xc0)](){const _0x5fe829=_0x18f5c5;var _0x123bd2;(_0x123bd2=this[_0x5fe829(0x12c)])==null||_0x123bd2[_0x5fe829(0xc0)](),this['_status$'][_0x5fe829(0x19c)](_0x5fe829(0x19b)),this[_0x5fe829(0x13d)]['complete']();}[_0x18f5c5(0xd6)](){const _0x315cde=_0x18f5c5;return this[_0x315cde(0xba)];}[_0x18f5c5(0x144)](){const _0x33f23a=_0x18f5c5;this[_0x33f23a(0xe8)]||(this[_0x33f23a(0xe8)]=!0x0,this[_0x33f23a(0x126)][_0x33f23a(0xd0)][_0x33f23a(0xb9)](_0x29a6c7['takeUntil'](this[_0x33f23a(0x12e)]))['subscribe'](_0x5c9bcd=>{const _0x4870ef=_0x33f23a;switch(_0x5c9bcd){case _0x5a4563['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x5a4563['SessionStatus'][_0x4870ef(0x13e)]:this[_0x4870ef(0x142)]();break;}}),this[_0x33f23a(0x126)]['event$'][_0x33f23a(0xb9)](_0x29a6c7[_0x33f23a(0x131)](this['dispose$']))['subscribe'](_0x2bceb0=>{const _0x56b808=_0x33f23a,{eventID:_0x4b4a04}=_0x2bceb0;switch(_0x4b4a04){case _0x4361d9[_0x56b808(0xf9)][_0x56b808(0xe2)]:this[_0x56b808(0x128)](_0x2bceb0);break;case _0x4361d9[_0x56b808(0xf9)][_0x56b808(0xff)]:this['_handleOperation'](_0x2bceb0);break;case _0x4361d9['CollaborationEvent'][_0x56b808(0xcf)]:this['_handleTerminate']();break;case _0x4361d9[_0x56b808(0xf9)][_0x56b808(0x11c)]:this['_handleNewChangeSets'](_0x2bceb0);break;}}));}['tryStartPresenting'](){const _0x127aea=_0x18f5c5;this[_0x127aea(0x126)][_0x127aea(0xd5)]({'eventID':_0x4361d9[_0x127aea(0xf9)][_0x127aea(0x193)],'data':{'unitID':this[_0x127aea(0x195)],'userID':this[_0x127aea(0x126)][_0x127aea(0x16b)]()}},this['_unitID']);}[_0x18f5c5(0x15e)](){const _0x42cf39=_0x18f5c5;this[_0x42cf39(0xba)]==='presenting'&&(this['_status$'][_0x42cf39(0x19c)]('idle'),this['_collabSession'][_0x42cf39(0xd5)]({'eventID':_0x4361d9['CollaborationEvent'][_0x42cf39(0xcf)],'data':{'unitID':this[_0x42cf39(0x195)]}},this['_unitID']));}[_0x18f5c5(0x186)](){const _0x189f75=_0x18f5c5;this[_0x189f75(0xba)]===_0x189f75(0x152)&&(this['_status$'][_0x189f75(0x19c)](_0x189f75(0xad)),this[_0x189f75(0x16c)]());}['stopFollowing'](){const _0x5d06fc=_0x18f5c5;this['_status']===_0x5d06fc(0xad)&&this[_0x5d06fc(0x18f)]();}[_0x18f5c5(0x128)](_0x2423e8){const _0x5ef370=_0x18f5c5,{presenter:_0x103ad8}=_0x2423e8['data'],_0x273b38=this[_0x5ef370(0x126)][_0x5ef370(0x16b)]();this[_0x5ef370(0x11e)]=_0x103ad8,_0x103ad8===_0x273b38?(this[_0x5ef370(0x18f)](),this[_0x5ef370(0xc2)]()):this['_status']!==_0x5ef370(0x152)&&(this['_stopPresenting'](),this[_0x5ef370(0x16c)]());}['_fetchOperations'](){const _0x4752ef=_0x18f5c5,_0x3f55a8={'eventID':_0x4361d9[_0x4752ef(0xf9)][_0x4752ef(0xae)]};this[_0x4752ef(0x126)]['send'](_0x3f55a8,this['_unitID']);}['_handleTerminate'](){const _0xa086d6=_0x18f5c5;this[_0xa086d6(0x11e)]=null,this[_0xa086d6(0xba)]!==_0xa086d6(0x160)&&this[_0xa086d6(0xc1)]();}[_0x18f5c5(0xef)](_0x1f8ff2){const _0x5135bc=_0x18f5c5;if(this['_status']===_0x5135bc(0xad)&&this['_presenter']===_0x1f8ff2['data'][_0x5135bc(0xe4)]){const _0x21f5a5=_0x4361d9['parseProtocolChangeset'](_0x1f8ff2[_0x5135bc(0xf3)])[_0x5135bc(0x155)][_0x5135bc(0xeb)]()[_0x5135bc(0xec)](_0x4c8b46=>_0x4c8b46['id']===_0x57d05a[_0x5135bc(0xc4)]['id']);if(_0x21f5a5){const _0xfff753=_0x21f5a5['params'][_0x5135bc(0xbb)],_0x14166f=_0x21f5a5['params'][_0x5135bc(0x15f)]['id'];setTimeout(()=>{const _0x22d03d=_0x5135bc;this[_0x22d03d(0x169)][_0x22d03d(0x199)](_0x57d05a[_0x22d03d(0xb5)]['id'],{'unitId':_0xfff753,'subUnitId':_0x14166f},{'fromCollab':!0x0});});}}}[_0x18f5c5(0xc2)](){const _0x1cd883=_0x18f5c5;this['_status$'][_0x1cd883(0x19c)](_0x1cd883(0x160));const _0x483717=new Map(),_0x5f29e7=this['_commandDisposable']=new _0x4c6753[(_0x1cd883(0x158))]();_0x5f29e7[_0x1cd883(0x112)](_0x4c6753['toDisposable'](()=>{const _0x106e7f=_0x1cd883;_0x483717[_0x106e7f(0x109)](_0x2de76b=>_0x2de76b[_0x106e7f(0x191)]()),_0x483717[_0x106e7f(0x188)]();})),_0x5f29e7['add'](this[_0x1cd883(0x169)][_0x1cd883(0x153)](_0x282433=>{const _0x415fba=_0x1cd883;var _0x31adf1;if(_0x282433[_0x415fba(0x15a)]!==_0x4c6753[_0x415fba(0xd7)][_0x415fba(0x167)]||!this[_0x415fba(0x176)][_0x415fba(0x198)](_0x282433['id']))return;const {id:_0x815d36}=_0x282433;let _0x2b1f18;_0x483717[_0x415fba(0x19a)](_0x815d36)?_0x2b1f18=_0x483717[_0x415fba(0x150)](_0x815d36):(_0x2b1f18=new _0x3a52e9['Subject'](),_0x483717[_0x415fba(0x14b)](_0x815d36,_0x2b1f18),_0x2b1f18[_0x415fba(0xb9)](_0x29a6c7[_0x415fba(0x115)]((_0x31adf1=this[_0x415fba(0x14a)][_0x415fba(0xce)](_0x2da41f))!=null?_0x31adf1:_0x40259b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x415fba(0xd9)](_0x4e2693=>{const _0xee3880=_0x415fba;this[_0xee3880(0x126)][_0xee3880(0xd5)]({'eventID':_0x4361d9['CollaborationEvent'][_0xee3880(0xff)],'data':{'unitID':this[_0xee3880(0x195)],'operations':{[_0x4e2693['id']]:{'id':_0x4e2693['id'],'params':JSON[_0xee3880(0xbf)](_0x4e2693[_0xee3880(0xdd)])}}}},this[_0xee3880(0x195)]);})),_0x2b1f18[_0x415fba(0x19c)](_0x282433);})),this['_liveShareService'][_0x1cd883(0x108)](this['_unitID'])[_0x1cd883(0x109)](_0x3da5bb=>this['_collabSession']['send']({'eventID':_0x4361d9[_0x1cd883(0xf9)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1cd883(0x195)],'operations':{[_0x3da5bb['id']]:{'id':_0x3da5bb['id'],'params':JSON[_0x1cd883(0xbf)](_0x3da5bb[_0x1cd883(0xdd)])}}}},this['_unitID']));}[_0x18f5c5(0xb8)](){const _0xe47c76=_0x18f5c5;var _0x352f55;this[_0xe47c76(0x13d)]['next'](_0xe47c76(0x19b)),(_0x352f55=this[_0xe47c76(0x12c)])==null||_0x352f55[_0xe47c76(0xc0)](),this[_0xe47c76(0x12c)]=null;}[_0x18f5c5(0x16c)](){const _0x1c4c30=_0x18f5c5;var _0x92c3d2;(_0x92c3d2=this[_0x1c4c30(0x12c)])==null||_0x92c3d2[_0x1c4c30(0xc0)](),this[_0x1c4c30(0x13d)][_0x1c4c30(0x19c)](_0x1c4c30(0xad));}[_0x18f5c5(0xc1)](){const _0x4af6d0=_0x18f5c5;var _0x17d946;this['_status$'][_0x4af6d0(0x19c)](_0x4af6d0(0x19b)),(_0x17d946=this[_0x4af6d0(0x12c)])==null||_0x17d946['dispose'](),this[_0x4af6d0(0x12c)]=null;}[_0x18f5c5(0x18f)](){const _0xaa8544=_0x18f5c5;var _0x2227b9;this[_0xaa8544(0x13d)]['next'](_0xaa8544(0x152)),(_0x2227b9=this[_0xaa8544(0x12c)])==null||_0x2227b9[_0xaa8544(0xc0)]();}['_handleOperation'](_0x9f5619){const _0xcbf4a=_0x18f5c5;if(['presenting','not-following',_0xcbf4a(0xbc)][_0xcbf4a(0x14f)](this[_0xcbf4a(0xba)])||!_0x9f5619[_0xcbf4a(0xf3)]['presenter']||_0x9f5619[_0xcbf4a(0xf3)][_0xcbf4a(0x113)]===this['_collabSession'][_0xcbf4a(0x16b)]())return;this['_status']==='idle'&&this[_0xcbf4a(0x16c)]();const _0x5fb6db=_0x9f5619[_0xcbf4a(0xf3)]['operations'];Object[_0xcbf4a(0xc7)](_0x5fb6db)[_0xcbf4a(0x109)](_0x64e42a=>{const _0x30c86d=_0xcbf4a;this[_0x30c86d(0x169)][_0x30c86d(0x199)](_0x64e42a['id'],_0x64e42a[_0x30c86d(0xdd)]?JSON['parse'](_0x64e42a[_0x30c86d(0xdd)]):null,{'fromCollab':!0x0});});}[_0x18f5c5(0x102)](){const _0x3541ce=_0x18f5c5;var _0x2b7187;this['_status$'][_0x3541ce(0x19c)](_0x3541ce(0xbc)),(_0x2b7187=this[_0x3541ce(0x12c)])==null||_0x2b7187['dispose']();}['_handleOnline'](){const _0x4095bf=_0x18f5c5;this[_0x4095bf(0x13d)][_0x4095bf(0x19c)](_0x4095bf(0x19b)),this[_0x4095bf(0x10b)]();}},_0xb111cc['LiveShareCoordinator']=_0x2f2ace([_0x210108(0x2,_0x4c6753['IConfigService']),_0x210108(0x3,_0x4c6753[_0x18f5c5(0x141)](_0x3c7620)),_0x210108(0x4,_0x4c6753['ICommandService'])],_0xb111cc[_0x18f5c5(0x183)]);function _0x4e517b(){const _0x99798a=_0x18f5c5,_0x4e3530=_0x462432[_0x99798a(0x10d)](_0xb111cc[_0x99798a(0x175)]),_0x41c2f2=_0x462432['useDependency'](_0x4c6753[_0x99798a(0x165)]),_0x187f89=_0x462432[_0x99798a(0x196)](()=>_0x41c2f2[_0x99798a(0x178)](_0x4c6753[_0x99798a(0x166)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x51bd81,_0x1c477c]=_0x18d1ec[_0x99798a(0x119)](null),[_0x16b8ce,_0x465ec3]=_0x18d1ec[_0x99798a(0x119)](_0x2850bb[_0x99798a(0x168)]),_0xac22d4=_0x18d1ec[_0x99798a(0xc3)](null);return _0x18d1ec[_0x99798a(0x117)](()=>(_0x187f89&&_0x4e3530[_0x99798a(0x111)](_0x187f89[_0x99798a(0xd4)]())[_0x99798a(0x16f)](_0xa24730=>{const _0x44b86f=_0x99798a;_0x1c477c(_0xa24730),_0xac22d4[_0x44b86f(0xe6)]=_0xa24730[_0x44b86f(0xf0)][_0x44b86f(0xd9)](_0x2dc646=>{_0x465ec3(_0x2dc646);});}),()=>{const _0x1bd003=_0x99798a;var _0x1ed434;(_0x1ed434=_0xac22d4[_0x1bd003(0xe6)])==null||_0x1ed434[_0x1bd003(0x161)](),_0xac22d4[_0x1bd003(0xe6)]=null;}),[_0x187f89,_0x4e3530]),_0x51bd81?_0x1a7374[_0x99798a(0x190)](_0x17fd4c[_0x99798a(0xf8)],{'align':_0x99798a(0x125),'disabled':_0x16b8ce===_0x2850bb[_0x99798a(0xe1)],'className':_0x99798a(0x148),'overlay':_0x1a7374[_0x99798a(0x190)](_0x501ada,{'status':_0x16b8ce,'coordinator':_0x51bd81}),'children':_0x1a7374[_0x99798a(0x190)]('button',{'className':_0x17fd4c['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x16b8ce===_0x2850bb[_0x99798a(0xe1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x16b8ce!==_0x2850bb[_0x99798a(0xe1)]}),'type':_0x99798a(0x138),'children':_0x1a7374[_0x99798a(0x190)](_0x24d395,{'className':'univer-size-4'})})}):null;}function _0x501ada(_0x425410){const _0x50ecba=_0x18f5c5,{status:_0x5502ee,coordinator:_0x13d83c}=_0x425410;switch(_0x5502ee){case _0x2850bb[_0x50ecba(0x168)]:return _0x1a7374[_0x50ecba(0x190)](_0x90695,{'coordinator':_0x13d83c});case _0x2850bb[_0x50ecba(0xc9)]:return _0x1a7374[_0x50ecba(0x190)](_0x243c6d,{'coordinator':_0x13d83c});case _0x2850bb[_0x50ecba(0x18b)]:return _0x1a7374[_0x50ecba(0x190)](_0x39580d,{'coordinator':_0x13d83c});case _0x2850bb[_0x50ecba(0xe1)]:return _0x1a7374[_0x50ecba(0x190)](_0x2e427d,{});case _0x2850bb[_0x50ecba(0x173)]:return _0x1a7374[_0x50ecba(0x190)](_0xbf04f5,{'coordinator':_0x13d83c});default:return null;}}function _0x90695(_0x5b231c){const _0x43b5dd=_0x18f5c5,{coordinator:_0x2c38a7}=_0x5b231c;return _0x1a7374[_0x43b5dd(0x17b)](_0x1a7374[_0x43b5dd(0x18e)],{'children':[_0x1a7374[_0x43b5dd(0x190)](_0x43b5dd(0x17d),{'className':_0x43b5dd(0xb7),'children':_0x43b5dd(0xdc)}),_0x1a7374[_0x43b5dd(0x190)](_0x17fd4c[_0x43b5dd(0x147)],{'onClick':()=>_0x2c38a7['tryStartPresenting'](),'children':_0x43b5dd(0x18c)})]});}function _0x243c6d(_0x5c7593){const _0x3f6e17=_0x18f5c5,{coordinator:_0x181fc0}=_0x5c7593;return _0x1a7374[_0x3f6e17(0x17b)](_0x1a7374[_0x3f6e17(0x18e)],{'children':[_0x1a7374[_0x3f6e17(0x190)](_0x3f6e17(0x17d),{'className':_0x3f6e17(0xb7),'children':_0x3f6e17(0x132)}),_0x1a7374[_0x3f6e17(0x190)](_0x17fd4c[_0x3f6e17(0x147)],{'onClick':()=>_0x181fc0[_0x3f6e17(0xea)](),'children':_0x3f6e17(0x194)})]});}function _0x39580d(_0x2a0497){const _0x5980b9=_0x18f5c5,{coordinator:_0x49ce72}=_0x2a0497;return _0x1a7374[_0x5980b9(0x17b)](_0x1a7374['Fragment'],{'children':[_0x1a7374[_0x5980b9(0x190)]('div',{'className':_0x5980b9(0xb7),'children':_0x5980b9(0x120)}),_0x1a7374[_0x5980b9(0x190)](_0x17fd4c[_0x5980b9(0x147)],{'variant':'text','onClick':()=>_0x49ce72[_0x5980b9(0x186)](),'children':_0x5980b9(0x171)})]});}function _0xbf04f5(_0x2b62b7){const _0x2fed92=_0x18f5c5,{coordinator:_0x56c1ab}=_0x2b62b7;return _0x1a7374['jsxs'](_0x1a7374['Fragment'],{'children':[_0x1a7374[_0x2fed92(0x190)](_0x2fed92(0x17d),{'className':_0x2fed92(0xb7),'children':_0x2fed92(0xe9)}),_0x1a7374[_0x2fed92(0x190)](_0x17fd4c[_0x2fed92(0x147)],{'variant':'default','onClick':()=>_0x56c1ab[_0x2fed92(0x15e)](),'children':_0x2fed92(0x145)})]});}function _0x2e427d(){const _0x175e96=_0x18f5c5;return _0x1a7374[_0x175e96(0x190)](_0x1a7374[_0x175e96(0x18e)],{'children':_0x175e96(0xb3)});}var _0x2415d9=Object[_0x18f5c5(0x10a)],_0x33841a=(_0x5bd820,_0x3d078f,_0x2d58a0,_0x49e3f2)=>{const _0x26d071=_0x18f5c5;for(var _0x4d6a88=_0x49e3f2>0x1?void 0x0:_0x49e3f2?_0x2415d9(_0x3d078f,_0x2d58a0):_0x3d078f,_0x2ff254=_0x5bd820[_0x26d071(0x151)]-0x1,_0x2fbaab;_0x2ff254>=0x0;_0x2ff254--)(_0x2fbaab=_0x5bd820[_0x2ff254])&&(_0x4d6a88=_0x2fbaab(_0x4d6a88)||_0x4d6a88);return _0x4d6a88;},_0x54a7bc=(_0x482f2b,_0x285ea7)=>(_0x37ac69,_0x5a7a90)=>_0x285ea7(_0x37ac69,_0x5a7a90,_0x482f2b);_0xb111cc['DesktopLiveShareController']=class extends _0x4c6753[_0x18f5c5(0x134)]{constructor(_0x37673c,_0x3bee8b){const _0x5b85f6=_0x18f5c5;super(),this['_injector']=_0x37673c,this[_0x5b85f6(0x100)]=_0x3bee8b,this[_0x5b85f6(0x154)]();}[_0x18f5c5(0x154)](){const _0x1497ff=_0x18f5c5;this[_0x1497ff(0x12b)](this[_0x1497ff(0x100)][_0x1497ff(0x164)](_0x462432[_0x1497ff(0x184)][_0x1497ff(0x10c)],()=>_0x462432[_0x1497ff(0xde)](_0x4e517b,this[_0x1497ff(0xed)])));}},_0xb111cc[_0x18f5c5(0xcd)]=_0x33841a([_0x54a7bc(0x0,_0x4c6753[_0x18f5c5(0x141)](_0x4c6753['Injector'])),_0x54a7bc(0x1,_0x462432[_0x18f5c5(0x123)])],_0xb111cc['DesktopLiveShareController']);const _0x438c1a=_0x18f5c5(0x130),_0x22ade5={};var _0x16f195=Object[_0x18f5c5(0x10a)],_0x5dbf3e=(_0x3a6ae9,_0x1e4cb4,_0x52ced4,_0x1840eb)=>{const _0x1a22a8=_0x18f5c5;for(var _0x15357c=_0x1840eb>0x1?void 0x0:_0x1840eb?_0x16f195(_0x1e4cb4,_0x52ced4):_0x1e4cb4,_0x203ec3=_0x3a6ae9[_0x1a22a8(0x151)]-0x1,_0x530250;_0x203ec3>=0x0;_0x203ec3--)(_0x530250=_0x3a6ae9[_0x203ec3])&&(_0x15357c=_0x530250(_0x15357c)||_0x15357c);return _0x15357c;},_0x11b073=(_0x31046e,_0x37939e)=>(_0x45af68,_0x4590ec)=>_0x37939e(_0x45af68,_0x4590ec,_0x31046e);let _0x34efb6=class extends _0x4c6753[_0x18f5c5(0x134)]{constructor(_0x696e6c){const _0x7bbe25=_0x18f5c5;super(),this[_0x7bbe25(0x176)]=_0x696e6c,this[_0x7bbe25(0xe8)]();}[_0x18f5c5(0xe8)](){const _0x1adedf=_0x18f5c5;[_0x290a03[_0x1adedf(0x10e)]['id'],_0x290a03[_0x1adedf(0x192)]['id'],_0x57d05a['SetWorksheetActiveOperation']['id']][_0x1adedf(0x109)](_0x49ee1a=>{const _0x22da44=_0x1adedf;this['disposeWithMe'](this[_0x22da44(0x176)][_0x22da44(0x185)](_0x49ee1a));});}};_0x34efb6=_0x5dbf3e([_0x11b073(0x0,_0x4c6753['Inject'](_0x3c7620))],_0x34efb6);var _0x2e7e4f=Object['defineProperty'],_0x42533f=Object['getOwnPropertyDescriptor'],_0x3c3465=(_0x1f59fe,_0x554e0d,_0x3a39f6)=>_0x554e0d in _0x1f59fe?_0x2e7e4f(_0x1f59fe,_0x554e0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a39f6}):_0x1f59fe[_0x554e0d]=_0x3a39f6,_0x5e4889=(_0x20157c,_0x160eb9,_0x462d1e,_0x21dd5e)=>{const _0x9d0c1=_0x18f5c5;for(var _0x478705=_0x21dd5e>0x1?void 0x0:_0x21dd5e?_0x42533f(_0x160eb9,_0x462d1e):_0x160eb9,_0x16c5a2=_0x20157c[_0x9d0c1(0x151)]-0x1,_0x5b3021;_0x16c5a2>=0x0;_0x16c5a2--)(_0x5b3021=_0x20157c[_0x16c5a2])&&(_0x478705=_0x5b3021(_0x478705)||_0x478705);return _0x478705;},_0x11d38e=(_0x5532f4,_0x5effb5)=>(_0x36dddc,_0x2d6f67)=>_0x5effb5(_0x36dddc,_0x2d6f67,_0x5532f4),_0x431ee0=(_0x35e3d6,_0x284dc2,_0x418b01)=>_0x3c3465(_0x35e3d6,typeof _0x284dc2!=_0x18f5c5(0x106)?_0x284dc2+'':_0x284dc2,_0x418b01);const _0x1ed42f=_0x18f5c5(0x187);_0xb111cc[_0x18f5c5(0x174)]=class extends _0x4c6753[_0x18f5c5(0x137)]{constructor(_0x33ae53=_0x22ade5,_0x5ac544,_0x51b82f){const _0x166891=_0x18f5c5;super(),this['_config']=_0x33ae53,this['_injector']=_0x5ac544,this[_0x166891(0x14a)]=_0x51b82f;const {..._0xed28d3}=_0x4c6753[_0x166891(0x124)]({},_0x22ade5,this['_config']);this['_configService']['setConfig'](_0x438c1a,_0xed28d3);}['onStarting'](){const _0x2124c1=_0x18f5c5;_0x4c6753[_0x2124c1(0xe0)](this['_injector'],_0x4c6753[_0x2124c1(0x16a)]([[_0x3c7620],[_0xb111cc[_0x2124c1(0x175)]],[_0x34efb6],[_0xb111cc['DesktopLiveShareController']]],this[_0x2124c1(0x15b)][_0x2124c1(0xda)])),_0x4c6753[_0x2124c1(0x129)](this['_injector'],[[_0x34efb6]]);}[_0x18f5c5(0xbe)](){const _0x3aede3=_0x18f5c5;_0x4c6753[_0x3aede3(0x129)](this[_0x3aede3(0xed)],[[_0xb111cc['DesktopLiveShareController']]]);}},_0x431ee0(_0xb111cc['UniverLiveSharePlugin'],'type',_0x4c6753['UniverInstanceType'][_0x18f5c5(0x127)]),_0x431ee0(_0xb111cc[_0x18f5c5(0x174)],'pluginName',_0x1ed42f),_0xb111cc[_0x18f5c5(0x174)]=_0x5e4889([_0x4c6753[_0x18f5c5(0x133)](_0x5a4563[_0x18f5c5(0x13b)]),_0x11d38e(0x1,_0x4c6753[_0x18f5c5(0x141)](_0x4c6753['Injector'])),_0x11d38e(0x2,_0x4c6753['IConfigService'])],_0xb111cc['UniverLiveSharePlugin']),_0xb111cc[_0x18f5c5(0xcb)]=_0x4e517b,_0xb111cc['LiveShareService']=_0x3c7620,_0xb111cc['LiveShareStatus']=_0x2850bb,Object[_0x18f5c5(0x12f)](_0xb111cc,Symbol[_0x18f5c5(0x149)],{'value':_0x18f5c5(0xd1)});}));function _0x5a6d(_0x4fe3be,_0x5d7dfe){_0x4fe3be=_0x4fe3be-0xad;const _0x4622eb=_0x4622();let _0x5a6dff=_0x4622eb[_0x4fe3be];return _0x5a6dff;}function _0x4622(){const _0x2de368=['end','_collabSession','UNIVER_UNKNOWN','_handleNewHost','touchDependencies','amd','disposeWithMe','_commandDisposable','_collabSessionService','dispose$','defineProperty','live-share.config','takeUntil','You\x27re\x20following\x20the\x20presenter','DependentOn','Disposable','createElement','UniverSheetsUi','Plugin','button','18arwqlH','exports','UniverCollaborationClientPlugin','tag','_status$','ONLINE','UniverProCollaborationClient','_startLiveShareCoordinator','Inject','_handleOnline','1em','init','Stop\x20presenting','@univerjs/core','Button','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','toStringTag','_configService','set','from','svg','evenodd','includes','get','length','not-following','onCommandExecuted','_mountLiveShare','mutations','none','BehaviorSubject','DisposableCollection','LiveShareIcon','type','_config','map','react/jsx-runtime','stopPresenting','sheet','presenting','unsubscribe','0\x200\x2017\x2017','attrs','registerComponent','IUniverInstanceService','UniverInstanceType','OPERATION','IDLE','_commandService','mergeOverrideWithDependencies','getMemberID','_startFollowing','UNIVER_SHEET','trim','then','fill','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','PRESENTING','UniverLiveSharePlugin','LiveShareController','_liveShareService','delete','getCurrentTypeOfUnit$','28pnJFoU','React','jsxs','idSuffix','div','188919qVRZBN','react','mask','defIds','createInstance','LiveShareCoordinator','BuiltInUIPart','registerSharedOperation','startFollowing','UNIVER_LIVE_SHARE_PLUGIN','clear','asObservable','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','NOT_FOLLOWING','Start','_sharedOperations','Fragment','_stopFollowing','jsx','complete','SetScrollOperation','LIVESHARE_REQUEST_HOST','Stop\x20following','_unitID','useObservable','RxDisposable','shouldShareOperation','executeCommand','has','idle','next','toString','following','LIVESHARE_FETCH_OPERATIONS','96BjNfuc','live-share-icon','@univerjs/ui','string','You\x27are\x20offline.','655216fEDFFG','SetWorksheetActiveOperation','@univerjs/sheets','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','pipe','_status','unitId','offline','397370rhgaZD','onRendered','stringify','dispose','_beIdle','_startPresenting','useRef','InsertSheetMutation','colorChannel1','rxjs','values','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','FOLLOWING','getTypeOfUnitDisposed$','LiveShare','xlink:href','DesktopLiveShareController','getConfig','LIVESHARE_TERMINATE','sessionStatus$','Module','defs','getValue','getUnitId','send','getStatus','CommandType','path','subscribe','override','rxjs/operators','Present\x20this\x20document','params','connectInjector','univerjs-icon\x20univerjs-icon-','registerDependencies','OFFLINE','LIVESHARE_NEW_HOST','requireSession','memberID','55915eRpwDR','current','1443706tAbUtk','_init','You\x27re\x20presenting\x20the\x20document','stopFollowing','reverse','find','_injector','registerInitialStateReporter','_handleNewChangeSets','status$','assign','children','data','getLiveShareCoordinatorSync','operators','Injector','@univerjs-pro/collaboration-client','Dropdown','CollaborationEvent','_entities','UniverDesign','2CZvddr','@univerjs-pro/collaboration','replace','LIVESHARE_OPERATION','_uiPartsService','url(#$1','_handleOffline','CollaborationSessionService','772085IBXLkn','@univerjs/sheets-ui','symbol','function','getInitialStates','forEach','getOwnPropertyDescriptor','_fetchOperations','HEADER_MENU','useDependency','SetZoomRatioOperation','UniverUi','24nTUKYI','getLiveShareCoordinator','add','presenter','_univerInstanceService','throttleTime','entries','useEffect','currentColor','useState','_reporters','UniverCore','NEW_CHANGESETS','@univerjs/design','_presenter','displayName','You\x27re\x20not\x20following\x20the\x20presenter','UniverSheets','5704TRnneb','IUIPartsService','merge'];_0x4622=function(){return _0x2de368;};return _0x4622();}
1
+ function _0x4190(){const _0x1e3b84=['48839jsVTYn','mutations','NEW_CHANGESETS','connectInjector','sheet','LIVESHARE_TERMINATE','presenter','UniverSheetsUi','createElement','sessionStatus$','not-following','children','url(#$1','34084210FIvtay','operations','pipe','Dropdown','Stop\x20following','SetZoomRatioOperation','CommandType','Subject','jsx','dispose$','status$','LiveShareService','live-share-icon','@univerjs/design','SetScrollOperation','_injector','forEach','getOwnPropertyDescriptor','_startFollowing','get','takeUntil','759178zAqRnu','LiveShareCoordinator','20LNQbQL','_configService','use','startFollowing','SetWorksheetActiveOperation','mask','_uiPartsService','useEffect','operators','_stopPresenting','_univerInstanceService','send','clear','onCommandExecuted','end','getValue','_stopFollowing','CollaborationSessionService','_startPresenting','default','1em','BuiltInUIPart','button','add','_presenter','OPERATION','disposeWithMe','getMemberID','InsertSheetMutation','OFFLINE','_status$','div','3657096hbccUL','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IUniverInstanceService','dispose','set','ONLINE','subscribe','parse','UniverLiveSharePlugin','_collabSession','shouldShareOperation','registerSharedOperation','Start','current','next','random','_status','onRendered','_handleNewChangeSets','RxDisposable','UniverUi','replace','IConfigService','DisposableCollection','UniverSheets','xlink:href','then','react','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','onStarting','colorChannel1','getInitialStates','LIVESHARE_NEW_HOST','Button','1283324VQePgB','defineProperty','idle','presenting','_mountLiveShare','stringify','getCurrentTypeOfUnit$','FOLLOWING','memberID','clsx','CollaborationEvent','mergeOverrideWithDependencies','map','useRef','LIVESHARE_OPERATION','_handleOperation','_commandDisposable','following','init','11zzEMcl','getConfig','stopPresenting','idSuffix','string','@univerjs/ui','@univerjs/core','tryStartPresenting','svg','LIVESHARE_REQUEST_HOST','getLiveShareCoordinatorSync','_handleOnline','You\x27re\x20presenting\x20the\x20document','NOT_FOLLOWING','Plugin','_startLiveShareCoordinator','requireSession','toString','_liveShareService','merge','7505514AFnERW','HEADER_MENU','from','amd','DesktopLiveShareController','defs','substring','fill','_beIdle','text','live-share.config','none','getTypeOfUnitAdded$','@univerjs/sheets','registerInitialStateReporter','assign','params','_commandService','LiveShareStatus','You\x27re\x20not\x20following\x20the\x20presenter','47258wIHSlT','complete','useDependency','UniverProCollaborationClient','PRESENTING','Module','React','LiveShareController','Fragment','_sharedOperations','attrs','useState','type','_init','override','useObservable','IDLE','touchDependencies','getUnitId','displayName','_handleOffline','registerDependencies','UniverProCollaboration','Present\x20this\x20document','_reporters','tag','entries','LIVESHARE_FETCH_OPERATIONS','univer-mb-3\x20univer-w-full\x20univer-text-sm','Inject','rxjs','UniverInstanceType','event$','_config','unsubscribe','1192wwmgXv','registerComponent','throttleTime','function','_unitID','156CuGLVa','You\x27are\x20offline.','@univerjs-pro/collaboration','currentColor','0\x200\x2017\x2017','path','UNIVER_SHEET','SessionStatus','stopFollowing','Injector','offline','LiveShareIcon','jsxs','executeCommand','toDisposable','_handleNewHost','parseProtocolChangeset','_handleTerminate','trim','_entities','symbol','DependentOn','UniverProLiveShare','length','has','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','pluginName','UniverCore','find','getLiveShareCoordinator','data','_collabSessionService','Disposable','UniverDesign','delete'];_0x4190=function(){return _0x1e3b84;};return _0x4190();}function _0x566e(_0x4c5ef3,_0x5399b2){_0x4c5ef3=_0x4c5ef3-0x15c;const _0x419023=_0x4190();let _0x566eb4=_0x419023[_0x4c5ef3];return _0x566eb4;}(function(_0x272e44,_0x9c0949){const _0x1084fd=_0x566e,_0x23f0ce=_0x272e44();while(!![]){try{const _0x5bb7d6=parseInt(_0x1084fd(0x182))/0x1+-parseInt(_0x1084fd(0x201))/0x2*(parseInt(_0x1084fd(0x229))/0x3)+-parseInt(_0x1084fd(0x1c6))/0x4*(parseInt(_0x1084fd(0x184))/0x5)+-parseInt(_0x1084fd(0x1a4))/0x6+-parseInt(_0x1084fd(0x160))/0x7*(parseInt(_0x1084fd(0x224))/0x8)+parseInt(_0x1084fd(0x1ed))/0x9+parseInt(_0x1084fd(0x16d))/0xa*(parseInt(_0x1084fd(0x1d9))/0xb);if(_0x5bb7d6===_0x9c0949)break;else _0x23f0ce['push'](_0x23f0ce['shift']());}catch(_0x47b630){_0x23f0ce['push'](_0x23f0ce['shift']());}}}(_0x4190,0xcd2e8),function(_0x1b868d,_0x4a2fb4){const _0x1489e2=_0x566e;typeof exports=='object'&&typeof module<'u'?_0x4a2fb4(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==_0x1489e2(0x227)&&define[_0x1489e2(0x1f0)]?define(['exports',_0x1489e2(0x1df),_0x1489e2(0x1de),'react/jsx-runtime',_0x1489e2(0x17a),_0x1489e2(0x1bf),_0x1489e2(0x22b),'@univerjs-pro/collaboration-client',_0x1489e2(0x1fa),_0x1489e2(0x21f),'rxjs/operators','@univerjs/sheets-ui'],_0x4a2fb4):(_0x1b868d=typeof globalThis<'u'?globalThis:_0x1b868d||self,_0x4a2fb4(_0x1b868d[_0x1489e2(0x23f)]={},_0x1b868d[_0x1489e2(0x244)],_0x1b868d[_0x1489e2(0x1b8)],_0x1b868d[_0x1489e2(0x207)],_0x1b868d[_0x1489e2(0x15e)],_0x1b868d[_0x1489e2(0x207)],_0x1b868d[_0x1489e2(0x217)],_0x1b868d[_0x1489e2(0x204)],_0x1b868d[_0x1489e2(0x1bc)],_0x1b868d[_0x1489e2(0x21f)],_0x1b868d[_0x1489e2(0x21f)][_0x1489e2(0x18c)],_0x1b868d[_0x1489e2(0x167)]));}(this,function(_0x294b8c,_0x3373d2,_0x5a9cc3,_0x34a55e,_0x5e154a,_0x56b58b,_0x581a3e,_0x47e5c3,_0x9701dc,_0x52c4b2,_0x819983,_0xa1ef17){'use strict';const _0x11ae11=_0x566e;var _0x3fa43f=Object[_0x11ae11(0x1c7)],_0x576a95=(_0x29c7a6,_0x14a65f,_0x1c5973)=>_0x14a65f in _0x29c7a6?_0x3fa43f(_0x29c7a6,_0x14a65f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c5973}):_0x29c7a6[_0x14a65f]=_0x1c5973,_0x3f69c2=(_0x2061b6,_0x501515,_0x143fb4)=>_0x576a95(_0x2061b6,typeof _0x501515!=_0x11ae11(0x23d)?_0x501515+'':_0x501515,_0x143fb4);function _0x3f2af5({ref:_0x4f00c5,..._0x50720b}){const _0x3e80c3=_0x11ae11,{icon:_0x2aebe6,id:_0x2fe1d5,className:_0x1efc51,extend:_0x309c93,..._0x3e05d4}=_0x50720b,_0x1a02eb=('univerjs-icon\x20univerjs-icon-'+_0x2fe1d5+'\x20'+(_0x1efc51||''))[_0x3e80c3(0x23b)](),_0x411fca=_0x56b58b[_0x3e80c3(0x1d3)]('_'+_0x5b16f3());return _0x34ffde(_0x2aebe6,''+_0x2fe1d5,{'defIds':_0x2aebe6['defIds'],'idSuffix':_0x411fca[_0x3e80c3(0x1b1)]},{'ref':_0x4f00c5,'className':_0x1a02eb,..._0x3e05d4},_0x309c93);}function _0x34ffde(_0x3a2dc9,_0x1fb6db,_0x2af0e0,_0x25a488,_0x307142){const _0x201c8f=_0x11ae11;return _0x56b58b[_0x201c8f(0x168)](_0x3a2dc9[_0x201c8f(0x21a)],{'key':_0x1fb6db,..._0x223bef(_0x3a2dc9,_0x2af0e0,_0x307142),..._0x25a488},(_0x1e0f83(_0x3a2dc9,_0x2af0e0)['children']||[])[_0x201c8f(0x1d2)]((_0x58cbb9,_0x42e205)=>_0x34ffde(_0x58cbb9,_0x1fb6db+'-'+_0x3a2dc9['tag']+'-'+_0x42e205,_0x2af0e0,void 0x0,_0x307142)));}function _0x223bef(_0x3ef6b9,_0x27270a,_0x13ffae){const _0x17fede=_0x11ae11,_0x5bddf8={..._0x3ef6b9[_0x17fede(0x20b)]};_0x13ffae!=null&&_0x13ffae[_0x17fede(0x1c2)]&&_0x5bddf8[_0x17fede(0x1f4)]===_0x17fede(0x1c2)&&(_0x5bddf8[_0x17fede(0x1f4)]=_0x13ffae[_0x17fede(0x1c2)]),_0x3ef6b9[_0x17fede(0x21a)]===_0x17fede(0x189)&&_0x5bddf8['id']&&(_0x5bddf8['id']=_0x5bddf8['id']+_0x27270a[_0x17fede(0x1dc)]),Object[_0x17fede(0x21b)](_0x5bddf8)[_0x17fede(0x17d)](([_0x1574ef,_0x2ed78c])=>{const _0x473443=_0x17fede;_0x1574ef===_0x473443(0x189)&&typeof _0x2ed78c==_0x473443(0x1dd)&&(_0x5bddf8[_0x1574ef]=_0x2ed78c[_0x473443(0x1b9)](/url\(#(.*)\)/,_0x473443(0x16c)+_0x27270a[_0x473443(0x1dc)]+')'));});const {defIds:_0x1f3dff}=_0x27270a;return!_0x1f3dff||_0x1f3dff['length']===0x0||(_0x3ef6b9[_0x17fede(0x21a)]===_0x17fede(0x186)&&_0x5bddf8['xlink:href']&&(_0x5bddf8[_0x17fede(0x1bd)]=_0x5bddf8[_0x17fede(0x1bd)]+_0x27270a[_0x17fede(0x1dc)]),Object[_0x17fede(0x21b)](_0x5bddf8)[_0x17fede(0x17d)](([_0x40b59a,_0x648153])=>{const _0x22adb9=_0x17fede;typeof _0x648153==_0x22adb9(0x1dd)&&(_0x5bddf8[_0x40b59a]=_0x648153[_0x22adb9(0x1b9)](/url\(#(.*)\)/,_0x22adb9(0x16c)+_0x27270a[_0x22adb9(0x1dc)]+')'));})),_0x5bddf8;}function _0x1e0f83(_0x2d5dc1,_0x517427){const _0x2b31d1=_0x11ae11;var _0x13e674;const {defIds:_0x34dbc1}=_0x517427;return!_0x34dbc1||_0x34dbc1[_0x2b31d1(0x240)]===0x0?_0x2d5dc1:_0x2d5dc1[_0x2b31d1(0x21a)]===_0x2b31d1(0x1f2)&&((_0x13e674=_0x2d5dc1[_0x2b31d1(0x16b)])!=null&&_0x13e674[_0x2b31d1(0x240)])?{..._0x2d5dc1,'children':_0x2d5dc1[_0x2b31d1(0x16b)][_0x2b31d1(0x1d2)](_0x486576=>typeof _0x486576[_0x2b31d1(0x20b)]['id']==_0x2b31d1(0x1dd)&&_0x34dbc1&&_0x34dbc1['includes'](_0x486576[_0x2b31d1(0x20b)]['id'])?{..._0x486576,'attrs':{..._0x486576[_0x2b31d1(0x20b)],'id':_0x486576['attrs']['id']+_0x517427[_0x2b31d1(0x1dc)]}}:_0x486576)}:_0x2d5dc1;}function _0x5b16f3(){const _0x56f2af=_0x11ae11;return Math[_0x56f2af(0x1b3)]()[_0x56f2af(0x1ea)](0x24)[_0x56f2af(0x1f3)](0x2,0x8);}_0x3f2af5[_0x11ae11(0x214)]='UniverIcon';const _0x2f5920={'tag':_0x11ae11(0x1e1),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x11ae11(0x1f8),'viewBox':_0x11ae11(0x22d),'width':'1em','height':_0x11ae11(0x198)},'children':[{'tag':_0x11ae11(0x22e),'attrs':{'fill':_0x11ae11(0x22c),'d':_0x11ae11(0x242)}},{'tag':_0x11ae11(0x22e),'attrs':{'fill':_0x11ae11(0x22c),'d':_0x11ae11(0x1c0),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x347392=_0x56b58b['forwardRef'](function(_0x418ab1,_0x1c9d94){const _0x5dd1ff=_0x11ae11;return _0x56b58b[_0x5dd1ff(0x168)](_0x3f2af5,Object[_0x5dd1ff(0x1fc)]({},_0x418ab1,{'id':_0x5dd1ff(0x179),'ref':_0x1c9d94,'icon':_0x2f5920}));});_0x347392[_0x11ae11(0x214)]=_0x11ae11(0x234);class _0x2d11a6 extends _0x3373d2[_0x11ae11(0x15d)]{constructor(){const _0x35ac0f=_0x11ae11;super(...arguments),_0x3f69c2(this,_0x35ac0f(0x20a),new Set()),_0x3f69c2(this,_0x35ac0f(0x219),new Set());}[_0x11ae11(0x1af)](_0x1bea3e){const _0x237a06=_0x11ae11;return this['_sharedOperations']['add'](_0x1bea3e),_0x3373d2[_0x237a06(0x237)](()=>this[_0x237a06(0x20a)]['delete'](_0x1bea3e));}[_0x11ae11(0x1fb)](_0x4687ec){const _0x248376=_0x11ae11;return this[_0x248376(0x219)][_0x248376(0x19b)](_0x4687ec),_0x3373d2[_0x248376(0x237)](()=>this[_0x248376(0x219)][_0x248376(0x15f)](_0x4687ec));}[_0x11ae11(0x1ae)](_0x169f3f){const _0x271a79=_0x11ae11;return this[_0x271a79(0x20a)]['has'](_0x169f3f);}[_0x11ae11(0x1c3)](_0x105f47){const _0x164e45=_0x11ae11;return Array[_0x164e45(0x1ef)](this['_reporters'])[_0x164e45(0x1d2)](_0x1647dc=>_0x1647dc(_0x105f47));}}var _0x3c31dd=Object[_0x11ae11(0x17e)],_0x53e4bc=(_0x168b71,_0x5d45e2,_0x383770,_0x42a7b7)=>{const _0x3287a7=_0x11ae11;for(var _0x13e779=_0x42a7b7>0x1?void 0x0:_0x42a7b7?_0x3c31dd(_0x5d45e2,_0x383770):_0x5d45e2,_0x1e2be9=_0x168b71[_0x3287a7(0x240)]-0x1,_0x5b4748;_0x1e2be9>=0x0;_0x1e2be9--)(_0x5b4748=_0x168b71[_0x1e2be9])&&(_0x13e779=_0x5b4748(_0x13e779)||_0x13e779);return _0x13e779;},_0x3a2850=(_0x3abec7,_0x5671d8)=>(_0x52d970,_0x163f73)=>_0x5671d8(_0x52d970,_0x163f73,_0x3abec7);_0x294b8c[_0x11ae11(0x208)]=class extends _0x3373d2[_0x11ae11(0x1b7)]{constructor(_0x1133c0,_0x2c9aee,_0x32ecc5){const _0x21efae=_0x11ae11;super(),_0x3f69c2(this,_0x21efae(0x23c),new Map()),(this[_0x21efae(0x18e)]=_0x1133c0,this['_injector']=_0x2c9aee,this[_0x21efae(0x15c)]=_0x32ecc5,this['_init']());}async[_0x11ae11(0x246)](_0x232fca){const _0x8c43b7=_0x11ae11;return this[_0x8c43b7(0x23c)]['has'](_0x232fca)||await this[_0x8c43b7(0x1e8)](_0x232fca),this[_0x8c43b7(0x23c)][_0x8c43b7(0x180)](_0x232fca);}[_0x11ae11(0x1e3)](_0x1d5e31){const _0x17cd86=_0x11ae11;var _0x7346f5;return(_0x7346f5=this[_0x17cd86(0x23c)][_0x17cd86(0x180)](_0x1d5e31))!=null?_0x7346f5:null;}[_0x11ae11(0x20e)](){const _0x3eddf0=_0x11ae11;this['_univerInstanceService'][_0x3eddf0(0x1f9)](_0x3373d2['UniverInstanceType'][_0x3eddf0(0x22f)])['pipe'](_0x819983[_0x3eddf0(0x181)](this[_0x3eddf0(0x176)]))[_0x3eddf0(0x1aa)](async _0x4efc0d=>{const _0x38641b=_0x3eddf0,_0x1491e6=_0x4efc0d[_0x38641b(0x213)]();this[_0x38641b(0x23c)][_0x38641b(0x241)](_0x1491e6)||this['_startLiveShareCoordinator'](_0x1491e6);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3373d2[_0x3eddf0(0x220)][_0x3eddf0(0x22f)])[_0x3eddf0(0x16f)](_0x819983[_0x3eddf0(0x181)](this[_0x3eddf0(0x176)]))[_0x3eddf0(0x1aa)](_0x129d5e=>{const _0x19142b=_0x3eddf0,_0x364bcd=_0x129d5e[_0x19142b(0x213)](),_0x491edf=this[_0x19142b(0x23c)][_0x19142b(0x180)](_0x364bcd);_0x491edf==null||_0x491edf[_0x19142b(0x1a7)]();});}async[_0x11ae11(0x1e8)](_0xccc1d6){const _0x3ac586=_0x11ae11,_0x27740f=await this[_0x3ac586(0x15c)][_0x3ac586(0x1e9)](_0xccc1d6),_0x1664f4=this[_0x3ac586(0x17c)]['createInstance'](_0x294b8c[_0x3ac586(0x183)],_0xccc1d6,_0x27740f);return _0x1664f4[_0x3ac586(0x1d8)](),this[_0x3ac586(0x23c)][_0x3ac586(0x1a8)](_0xccc1d6,_0x1664f4),_0x1664f4;}},_0x294b8c[_0x11ae11(0x208)]=_0x53e4bc([_0x3a2850(0x0,_0x3373d2[_0x11ae11(0x1a6)]),_0x3a2850(0x1,_0x3373d2[_0x11ae11(0x21e)](_0x3373d2['Injector'])),_0x3a2850(0x2,_0x3373d2[_0x11ae11(0x21e)](_0x47e5c3[_0x11ae11(0x195)]))],_0x294b8c[_0x11ae11(0x208)]);var _0x134d68=(_0x525214=>(_0x525214['OFFLINE']=_0x11ae11(0x233),_0x525214[_0x11ae11(0x211)]=_0x11ae11(0x1c8),_0x525214[_0x11ae11(0x1cd)]=_0x11ae11(0x1d7),_0x525214[_0x11ae11(0x1e6)]=_0x11ae11(0x16a),_0x525214[_0x11ae11(0x205)]='presenting',_0x525214))(_0x134d68||{});const _0x32729b='SAME_OPERATION_SHARE_INTERVAL',_0x8818b0=0xc8;_0x294b8c[_0x11ae11(0x183)]=class extends _0x3373d2['RxDisposable']{constructor(_0x8db5d3,_0x48d4ad,_0x51e47e,_0x2ca4d4,_0xb30bc5){const _0x1e03dd=_0x11ae11;super(),_0x3f69c2(this,_0x1e03dd(0x1a2),new _0x52c4b2['BehaviorSubject'](_0x1e03dd(0x1c8))),_0x3f69c2(this,'status$',this[_0x1e03dd(0x1a2)]['asObservable']()),_0x3f69c2(this,_0x1e03dd(0x20e),!0x1),_0x3f69c2(this,_0x1e03dd(0x1d6),null),_0x3f69c2(this,'_presenter',null),(this[_0x1e03dd(0x228)]=_0x8db5d3,this['_collabSession']=_0x48d4ad,this[_0x1e03dd(0x185)]=_0x51e47e,this[_0x1e03dd(0x1eb)]=_0x2ca4d4,this[_0x1e03dd(0x1fe)]=_0xb30bc5);}get[_0x11ae11(0x1b4)](){const _0x499e88=_0x11ae11;return this[_0x499e88(0x1a2)][_0x499e88(0x193)]();}[_0x11ae11(0x1a7)](){const _0x3889ec=_0x11ae11;var _0x30b0cd;(_0x30b0cd=this[_0x3889ec(0x1d6)])==null||_0x30b0cd[_0x3889ec(0x1a7)](),this['_status$'][_0x3889ec(0x1b2)]('idle'),this[_0x3889ec(0x1a2)][_0x3889ec(0x202)]();}['getStatus'](){const _0x2b66b5=_0x11ae11;return this[_0x2b66b5(0x1b4)];}[_0x11ae11(0x1d8)](){const _0x56a060=_0x11ae11;this[_0x56a060(0x20e)]||(this[_0x56a060(0x20e)]=!0x0,this[_0x56a060(0x1ad)][_0x56a060(0x169)][_0x56a060(0x16f)](_0x819983[_0x56a060(0x181)](this[_0x56a060(0x176)]))[_0x56a060(0x1aa)](_0x2791de=>{const _0x129b5b=_0x56a060;switch(_0x2791de){case _0x47e5c3[_0x129b5b(0x230)][_0x129b5b(0x1a1)]:this[_0x129b5b(0x215)]();break;case _0x47e5c3['SessionStatus'][_0x129b5b(0x1a9)]:this[_0x129b5b(0x1e4)]();break;}}),this[_0x56a060(0x1ad)][_0x56a060(0x221)]['pipe'](_0x819983[_0x56a060(0x181)](this[_0x56a060(0x176)]))[_0x56a060(0x1aa)](_0x45c7cf=>{const _0xe37996=_0x56a060,{eventID:_0xa3f6fc}=_0x45c7cf;switch(_0xa3f6fc){case _0x581a3e['CollaborationEvent'][_0xe37996(0x1c4)]:this[_0xe37996(0x238)](_0x45c7cf);break;case _0x581a3e['CollaborationEvent'][_0xe37996(0x1d4)]:this[_0xe37996(0x1d5)](_0x45c7cf);break;case _0x581a3e['CollaborationEvent'][_0xe37996(0x165)]:this['_handleTerminate']();break;case _0x581a3e[_0xe37996(0x1d0)][_0xe37996(0x162)]:this[_0xe37996(0x1b6)](_0x45c7cf);break;}}));}[_0x11ae11(0x1e0)](){const _0x52bee1=_0x11ae11;this[_0x52bee1(0x1ad)][_0x52bee1(0x18f)]({'eventID':_0x581a3e['CollaborationEvent'][_0x52bee1(0x1e2)],'data':{'unitID':this['_unitID'],'userID':this[_0x52bee1(0x1ad)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x4cac5d=_0x11ae11;this[_0x4cac5d(0x1b4)]===_0x4cac5d(0x1c9)&&(this[_0x4cac5d(0x1a2)][_0x4cac5d(0x1b2)]('idle'),this['_collabSession'][_0x4cac5d(0x18f)]({'eventID':_0x581a3e['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4cac5d(0x228)]}},this[_0x4cac5d(0x228)]));}[_0x11ae11(0x187)](){const _0x35b6a7=_0x11ae11;this['_status']===_0x35b6a7(0x16a)&&(this['_status$'][_0x35b6a7(0x1b2)](_0x35b6a7(0x1d7)),this['_startFollowing']());}[_0x11ae11(0x231)](){const _0x20a5dd=_0x11ae11;this['_status']==='following'&&this[_0x20a5dd(0x194)]();}[_0x11ae11(0x238)](_0x33df03){const _0x420aaa=_0x11ae11,{presenter:_0x1c8bc6}=_0x33df03[_0x420aaa(0x247)],_0x4c4d7e=this['_collabSession'][_0x420aaa(0x19f)]();this[_0x420aaa(0x19c)]=_0x1c8bc6,_0x1c8bc6===_0x4c4d7e?(this[_0x420aaa(0x194)](),this['_startPresenting']()):this[_0x420aaa(0x1b4)]!==_0x420aaa(0x16a)&&(this[_0x420aaa(0x18d)](),this['_startFollowing']());}['_fetchOperations'](){const _0x1b0487=_0x11ae11,_0x4a4861={'eventID':_0x581a3e[_0x1b0487(0x1d0)][_0x1b0487(0x21c)]};this['_collabSession']['send'](_0x4a4861,this[_0x1b0487(0x228)]);}[_0x11ae11(0x23a)](){const _0x58e855=_0x11ae11;this[_0x58e855(0x19c)]=null,this[_0x58e855(0x1b4)]!==_0x58e855(0x1c9)&&this[_0x58e855(0x1f5)]();}[_0x11ae11(0x1b6)](_0x400933){const _0x4b7fe7=_0x11ae11;if(this[_0x4b7fe7(0x1b4)]===_0x4b7fe7(0x1d7)&&this[_0x4b7fe7(0x19c)]===_0x400933[_0x4b7fe7(0x247)][_0x4b7fe7(0x1ce)]){const _0x5b5529=_0x581a3e[_0x4b7fe7(0x239)](_0x400933['data'])[_0x4b7fe7(0x161)]['reverse']()[_0x4b7fe7(0x245)](_0x381e10=>_0x381e10['id']===_0x9701dc[_0x4b7fe7(0x1a0)]['id']);if(_0x5b5529){const _0x49b4dc=_0x5b5529[_0x4b7fe7(0x1fd)]['unitId'],_0x2f969b=_0x5b5529['params'][_0x4b7fe7(0x164)]['id'];setTimeout(()=>{const _0x1e30b4=_0x4b7fe7;this[_0x1e30b4(0x1fe)][_0x1e30b4(0x236)](_0x9701dc[_0x1e30b4(0x188)]['id'],{'unitId':_0x49b4dc,'subUnitId':_0x2f969b},{'fromCollab':!0x0});});}}}[_0x11ae11(0x196)](){const _0x420760=_0x11ae11;this[_0x420760(0x1a2)]['next'](_0x420760(0x1c9));const _0x5e8e57=new Map(),_0x41f2b1=this[_0x420760(0x1d6)]=new _0x3373d2[(_0x420760(0x1bb))]();_0x41f2b1[_0x420760(0x19b)](_0x3373d2[_0x420760(0x237)](()=>{const _0x20088d=_0x420760;_0x5e8e57[_0x20088d(0x17d)](_0x219035=>_0x219035[_0x20088d(0x202)]()),_0x5e8e57[_0x20088d(0x190)]();})),_0x41f2b1['add'](this['_commandService'][_0x420760(0x191)](_0x2481be=>{const _0x22b620=_0x420760;var _0x333ee0;if(_0x2481be['type']!==_0x3373d2[_0x22b620(0x173)][_0x22b620(0x19d)]||!this[_0x22b620(0x1eb)][_0x22b620(0x1ae)](_0x2481be['id']))return;const {id:_0x53b69c}=_0x2481be;let _0x2cd843;_0x5e8e57[_0x22b620(0x241)](_0x53b69c)?_0x2cd843=_0x5e8e57[_0x22b620(0x180)](_0x53b69c):(_0x2cd843=new _0x52c4b2[(_0x22b620(0x174))](),_0x5e8e57[_0x22b620(0x1a8)](_0x53b69c,_0x2cd843),_0x2cd843[_0x22b620(0x16f)](_0x819983[_0x22b620(0x226)]((_0x333ee0=this[_0x22b620(0x185)][_0x22b620(0x1da)](_0x32729b))!=null?_0x333ee0:_0x8818b0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x22b620(0x1aa)](_0xb2d7f8=>{const _0x5b74f9=_0x22b620;this['_collabSession'][_0x5b74f9(0x18f)]({'eventID':_0x581a3e['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xb2d7f8['id']]:{'id':_0xb2d7f8['id'],'params':JSON[_0x5b74f9(0x1cb)](_0xb2d7f8[_0x5b74f9(0x1fd)])}}}},this[_0x5b74f9(0x228)]);})),_0x2cd843[_0x22b620(0x1b2)](_0x2481be);})),this['_liveShareService'][_0x420760(0x1c3)](this[_0x420760(0x228)])[_0x420760(0x17d)](_0x548b58=>this['_collabSession'][_0x420760(0x18f)]({'eventID':_0x581a3e[_0x420760(0x1d0)][_0x420760(0x1d4)],'data':{'unitID':this['_unitID'],'operations':{[_0x548b58['id']]:{'id':_0x548b58['id'],'params':JSON[_0x420760(0x1cb)](_0x548b58[_0x420760(0x1fd)])}}}},this['_unitID']));}[_0x11ae11(0x18d)](){const _0x21164b=_0x11ae11;var _0x5a8dc7;this[_0x21164b(0x1a2)][_0x21164b(0x1b2)]('idle'),(_0x5a8dc7=this['_commandDisposable'])==null||_0x5a8dc7[_0x21164b(0x1a7)](),this[_0x21164b(0x1d6)]=null;}[_0x11ae11(0x17f)](){const _0x3a69b7=_0x11ae11;var _0x1fb420;(_0x1fb420=this[_0x3a69b7(0x1d6)])==null||_0x1fb420[_0x3a69b7(0x1a7)](),this[_0x3a69b7(0x1a2)][_0x3a69b7(0x1b2)]('following');}[_0x11ae11(0x1f5)](){const _0x26d7b7=_0x11ae11;var _0x4ae5e4;this[_0x26d7b7(0x1a2)][_0x26d7b7(0x1b2)](_0x26d7b7(0x1c8)),(_0x4ae5e4=this[_0x26d7b7(0x1d6)])==null||_0x4ae5e4[_0x26d7b7(0x1a7)](),this[_0x26d7b7(0x1d6)]=null;}[_0x11ae11(0x194)](){const _0xd501be=_0x11ae11;var _0x14cdfb;this['_status$'][_0xd501be(0x1b2)]('not-following'),(_0x14cdfb=this[_0xd501be(0x1d6)])==null||_0x14cdfb[_0xd501be(0x1a7)]();}[_0x11ae11(0x1d5)](_0x51ef89){const _0x86afb7=_0x11ae11;if([_0x86afb7(0x1c9),'not-following',_0x86afb7(0x233)]['includes'](this[_0x86afb7(0x1b4)])||!_0x51ef89[_0x86afb7(0x247)]['presenter']||_0x51ef89[_0x86afb7(0x247)][_0x86afb7(0x166)]===this['_collabSession']['getMemberID']())return;this[_0x86afb7(0x1b4)]==='idle'&&this[_0x86afb7(0x17f)]();const _0x41a38d=_0x51ef89['data'][_0x86afb7(0x16e)];Object['values'](_0x41a38d)[_0x86afb7(0x17d)](_0x11cb03=>{const _0x135891=_0x86afb7;this['_commandService'][_0x135891(0x236)](_0x11cb03['id'],_0x11cb03[_0x135891(0x1fd)]?JSON[_0x135891(0x1ab)](_0x11cb03[_0x135891(0x1fd)]):null,{'fromCollab':!0x0});});}[_0x11ae11(0x215)](){const _0x13cc02=_0x11ae11;var _0x2f03d0;this[_0x13cc02(0x1a2)][_0x13cc02(0x1b2)](_0x13cc02(0x233)),(_0x2f03d0=this['_commandDisposable'])==null||_0x2f03d0[_0x13cc02(0x1a7)]();}[_0x11ae11(0x1e4)](){const _0x415d1a=_0x11ae11;this[_0x415d1a(0x1a2)][_0x415d1a(0x1b2)](_0x415d1a(0x1c8)),this['_fetchOperations']();}},_0x294b8c[_0x11ae11(0x183)]=_0x53e4bc([_0x3a2850(0x2,_0x3373d2[_0x11ae11(0x1ba)]),_0x3a2850(0x3,_0x3373d2[_0x11ae11(0x21e)](_0x2d11a6)),_0x3a2850(0x4,_0x3373d2['ICommandService'])],_0x294b8c[_0x11ae11(0x183)]);function _0xc17e35(){const _0x3e4fd3=_0x11ae11,_0x454be6=_0x5a9cc3['useDependency'](_0x294b8c[_0x3e4fd3(0x208)]),_0x3613df=_0x5a9cc3[_0x3e4fd3(0x203)](_0x3373d2[_0x3e4fd3(0x1a6)]),_0x3708eb=_0x5a9cc3[_0x3e4fd3(0x210)](()=>_0x3613df[_0x3e4fd3(0x1cc)](_0x3373d2[_0x3e4fd3(0x220)][_0x3e4fd3(0x22f)]),void 0x0,!0x1,[]),[_0x37296f,_0x4e7e0e]=_0x56b58b[_0x3e4fd3(0x20c)](null),[_0x598b7c,_0x2a8f07]=_0x56b58b[_0x3e4fd3(0x20c)](_0x134d68['IDLE']),_0x1e9d41=_0x56b58b['useRef'](null);return _0x56b58b[_0x3e4fd3(0x18b)](()=>(_0x3708eb&&_0x454be6[_0x3e4fd3(0x246)](_0x3708eb[_0x3e4fd3(0x213)]())[_0x3e4fd3(0x1be)](_0x31f5db=>{const _0x1e664f=_0x3e4fd3;_0x4e7e0e(_0x31f5db),_0x1e9d41[_0x1e664f(0x1b1)]=_0x31f5db[_0x1e664f(0x177)][_0x1e664f(0x1aa)](_0x767b5d=>{_0x2a8f07(_0x767b5d);});}),()=>{const _0x405bbf=_0x3e4fd3;var _0x110e40;(_0x110e40=_0x1e9d41[_0x405bbf(0x1b1)])==null||_0x110e40[_0x405bbf(0x223)](),_0x1e9d41[_0x405bbf(0x1b1)]=null;}),[_0x3708eb,_0x454be6]),_0x37296f?_0x34a55e[_0x3e4fd3(0x175)](_0x5e154a[_0x3e4fd3(0x170)],{'align':_0x3e4fd3(0x192),'disabled':_0x598b7c===_0x134d68[_0x3e4fd3(0x1a1)],'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':_0x34a55e[_0x3e4fd3(0x175)](_0x495eb8,{'status':_0x598b7c,'coordinator':_0x37296f}),'children':_0x34a55e[_0x3e4fd3(0x175)](_0x3e4fd3(0x19a),{'className':_0x5e154a[_0x3e4fd3(0x1cf)](_0x3e4fd3(0x1a5),{'univer-cursor-not-allowed':_0x598b7c===_0x134d68[_0x3e4fd3(0x1a1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x598b7c!==_0x134d68[_0x3e4fd3(0x1a1)]}),'type':'button','children':_0x34a55e[_0x3e4fd3(0x175)](_0x347392,{'className':'univer-size-4'})})}):null;}function _0x495eb8(_0x5a73b1){const _0x138638=_0x11ae11,{status:_0x5bca03,coordinator:_0x4a143a}=_0x5a73b1;switch(_0x5bca03){case _0x134d68[_0x138638(0x211)]:return _0x34a55e[_0x138638(0x175)](_0x83fd0d,{'coordinator':_0x4a143a});case _0x134d68[_0x138638(0x1cd)]:return _0x34a55e[_0x138638(0x175)](_0x4c8706,{'coordinator':_0x4a143a});case _0x134d68[_0x138638(0x1e6)]:return _0x34a55e[_0x138638(0x175)](_0x3c7672,{'coordinator':_0x4a143a});case _0x134d68[_0x138638(0x1a1)]:return _0x34a55e[_0x138638(0x175)](_0x1fefbf,{});case _0x134d68[_0x138638(0x205)]:return _0x34a55e['jsx'](_0x2dc24f,{'coordinator':_0x4a143a});default:return null;}}function _0x83fd0d(_0x188e57){const _0x57f93b=_0x11ae11,{coordinator:_0x2eba59}=_0x188e57;return _0x34a55e[_0x57f93b(0x235)](_0x34a55e[_0x57f93b(0x209)],{'children':[_0x34a55e[_0x57f93b(0x175)](_0x57f93b(0x1a3),{'className':_0x57f93b(0x21d),'children':_0x57f93b(0x218)}),_0x34a55e[_0x57f93b(0x175)](_0x5e154a[_0x57f93b(0x1c5)],{'onClick':()=>_0x2eba59[_0x57f93b(0x1e0)](),'children':_0x57f93b(0x1b0)})]});}function _0x4c8706(_0x40ee52){const _0x40fec6=_0x11ae11,{coordinator:_0x1e9c8f}=_0x40ee52;return _0x34a55e['jsxs'](_0x34a55e[_0x40fec6(0x209)],{'children':[_0x34a55e[_0x40fec6(0x175)]('div',{'className':_0x40fec6(0x21d),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x34a55e['jsx'](_0x5e154a[_0x40fec6(0x1c5)],{'onClick':()=>_0x1e9c8f[_0x40fec6(0x231)](),'children':_0x40fec6(0x171)})]});}function _0x3c7672(_0x3b33e7){const _0x30d955=_0x11ae11,{coordinator:_0x10eca6}=_0x3b33e7;return _0x34a55e[_0x30d955(0x235)](_0x34a55e[_0x30d955(0x209)],{'children':[_0x34a55e[_0x30d955(0x175)](_0x30d955(0x1a3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x30d955(0x200)}),_0x34a55e[_0x30d955(0x175)](_0x5e154a[_0x30d955(0x1c5)],{'variant':_0x30d955(0x1f6),'onClick':()=>_0x10eca6['startFollowing'](),'children':'Start\x20following'})]});}function _0x2dc24f(_0x1b97d1){const _0x54713=_0x11ae11,{coordinator:_0x10db9a}=_0x1b97d1;return _0x34a55e['jsxs'](_0x34a55e[_0x54713(0x209)],{'children':[_0x34a55e[_0x54713(0x175)]('div',{'className':_0x54713(0x21d),'children':_0x54713(0x1e5)}),_0x34a55e['jsx'](_0x5e154a[_0x54713(0x1c5)],{'variant':_0x54713(0x197),'onClick':()=>_0x10db9a[_0x54713(0x1db)](),'children':'Stop\x20presenting'})]});}function _0x1fefbf(){const _0x3e2a58=_0x11ae11;return _0x34a55e[_0x3e2a58(0x175)](_0x34a55e[_0x3e2a58(0x209)],{'children':_0x3e2a58(0x22a)});}var _0x415dd9=Object[_0x11ae11(0x17e)],_0x1e63c8=(_0x4a66fb,_0x2f749a,_0x411f9e,_0x393fac)=>{const _0x223140=_0x11ae11;for(var _0x3300b0=_0x393fac>0x1?void 0x0:_0x393fac?_0x415dd9(_0x2f749a,_0x411f9e):_0x2f749a,_0x40e69a=_0x4a66fb[_0x223140(0x240)]-0x1,_0x34b4f6;_0x40e69a>=0x0;_0x40e69a--)(_0x34b4f6=_0x4a66fb[_0x40e69a])&&(_0x3300b0=_0x34b4f6(_0x3300b0)||_0x3300b0);return _0x3300b0;},_0x25ca84=(_0x3c031c,_0x2cd24f)=>(_0x2b3ccd,_0x4a354d)=>_0x2cd24f(_0x2b3ccd,_0x4a354d,_0x3c031c);_0x294b8c[_0x11ae11(0x1f1)]=class extends _0x3373d2[_0x11ae11(0x15d)]{constructor(_0x3de3b7,_0xfc8fdb){const _0x737efd=_0x11ae11;super(),this[_0x737efd(0x17c)]=_0x3de3b7,this[_0x737efd(0x18a)]=_0xfc8fdb,this[_0x737efd(0x1ca)]();}[_0x11ae11(0x1ca)](){const _0x246008=_0x11ae11;this[_0x246008(0x19e)](this[_0x246008(0x18a)][_0x246008(0x225)](_0x5a9cc3[_0x246008(0x199)][_0x246008(0x1ee)],()=>_0x5a9cc3[_0x246008(0x163)](_0xc17e35,this[_0x246008(0x17c)])));}},_0x294b8c[_0x11ae11(0x1f1)]=_0x1e63c8([_0x25ca84(0x0,_0x3373d2['Inject'](_0x3373d2[_0x11ae11(0x232)])),_0x25ca84(0x1,_0x5a9cc3['IUIPartsService'])],_0x294b8c[_0x11ae11(0x1f1)]);const _0x2828b5=_0x11ae11(0x1f7),_0x1eb251={};var _0x2af26c=Object[_0x11ae11(0x17e)],_0x403d71=(_0x1b88dd,_0x35fdb8,_0xd0973d,_0x132e02)=>{const _0x34d707=_0x11ae11;for(var _0x10cbaa=_0x132e02>0x1?void 0x0:_0x132e02?_0x2af26c(_0x35fdb8,_0xd0973d):_0x35fdb8,_0x43760b=_0x1b88dd[_0x34d707(0x240)]-0x1,_0x40928f;_0x43760b>=0x0;_0x43760b--)(_0x40928f=_0x1b88dd[_0x43760b])&&(_0x10cbaa=_0x40928f(_0x10cbaa)||_0x10cbaa);return _0x10cbaa;},_0x1bc8b8=(_0x3d0c1a,_0x9eb679)=>(_0xb9ccf,_0x49f1ce)=>_0x9eb679(_0xb9ccf,_0x49f1ce,_0x3d0c1a);let _0x1b25cf=class extends _0x3373d2[_0x11ae11(0x15d)]{constructor(_0x5ef9e9){const _0x3eb481=_0x11ae11;super(),this[_0x3eb481(0x1eb)]=_0x5ef9e9,this[_0x3eb481(0x20e)]();}[_0x11ae11(0x20e)](){const _0x1d9156=_0x11ae11;[_0xa1ef17[_0x1d9156(0x172)]['id'],_0xa1ef17[_0x1d9156(0x17b)]['id'],_0x9701dc[_0x1d9156(0x188)]['id']][_0x1d9156(0x17d)](_0x3ab7b4=>{const _0x5835fc=_0x1d9156;this[_0x5835fc(0x19e)](this[_0x5835fc(0x1eb)]['registerSharedOperation'](_0x3ab7b4));});}};_0x1b25cf=_0x403d71([_0x1bc8b8(0x0,_0x3373d2[_0x11ae11(0x21e)](_0x2d11a6))],_0x1b25cf);var _0x4ba42=Object[_0x11ae11(0x1c7)],_0xaad67c=Object[_0x11ae11(0x17e)],_0x7301df=(_0x2b1546,_0x3cbdee,_0x1418c4)=>_0x3cbdee in _0x2b1546?_0x4ba42(_0x2b1546,_0x3cbdee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1418c4}):_0x2b1546[_0x3cbdee]=_0x1418c4,_0x5a96bc=(_0x39baa8,_0x2e361e,_0x3622e3,_0x45d1f8)=>{const _0x177f84=_0x11ae11;for(var _0x51f55c=_0x45d1f8>0x1?void 0x0:_0x45d1f8?_0xaad67c(_0x2e361e,_0x3622e3):_0x2e361e,_0x1d2899=_0x39baa8[_0x177f84(0x240)]-0x1,_0x52a58c;_0x1d2899>=0x0;_0x1d2899--)(_0x52a58c=_0x39baa8[_0x1d2899])&&(_0x51f55c=_0x52a58c(_0x51f55c)||_0x51f55c);return _0x51f55c;},_0x19b909=(_0x1ac5d7,_0x47d1d5)=>(_0x5b6e77,_0x327d07)=>_0x47d1d5(_0x5b6e77,_0x327d07,_0x1ac5d7),_0x571e31=(_0x7d5459,_0x35a458,_0x250e51)=>_0x7301df(_0x7d5459,typeof _0x35a458!=_0x11ae11(0x23d)?_0x35a458+'':_0x35a458,_0x250e51);const _0x3bde1b='UNIVER_LIVE_SHARE_PLUGIN';_0x294b8c[_0x11ae11(0x1ac)]=class extends _0x3373d2[_0x11ae11(0x1e7)]{constructor(_0x1c359b=_0x1eb251,_0x53d3a2,_0x31ac1b){const _0x4e5cdd=_0x11ae11;super(),this[_0x4e5cdd(0x222)]=_0x1c359b,this[_0x4e5cdd(0x17c)]=_0x53d3a2,this[_0x4e5cdd(0x185)]=_0x31ac1b;const {..._0x4544fd}=_0x3373d2[_0x4e5cdd(0x1ec)]({},_0x1eb251,this[_0x4e5cdd(0x222)]);this[_0x4e5cdd(0x185)]['setConfig'](_0x2828b5,_0x4544fd);}[_0x11ae11(0x1c1)](){const _0x2f5d94=_0x11ae11;_0x3373d2[_0x2f5d94(0x216)](this['_injector'],_0x3373d2[_0x2f5d94(0x1d1)]([[_0x2d11a6],[_0x294b8c[_0x2f5d94(0x208)]],[_0x1b25cf],[_0x294b8c['DesktopLiveShareController']]],this['_config'][_0x2f5d94(0x20f)])),_0x3373d2['touchDependencies'](this[_0x2f5d94(0x17c)],[[_0x1b25cf]]);}[_0x11ae11(0x1b5)](){const _0x1c260e=_0x11ae11;_0x3373d2[_0x1c260e(0x212)](this[_0x1c260e(0x17c)],[[_0x294b8c[_0x1c260e(0x1f1)]]]);}},_0x571e31(_0x294b8c[_0x11ae11(0x1ac)],_0x11ae11(0x20d),_0x3373d2[_0x11ae11(0x220)]['UNIVER_UNKNOWN']),_0x571e31(_0x294b8c['UniverLiveSharePlugin'],_0x11ae11(0x243),_0x3bde1b),_0x294b8c[_0x11ae11(0x1ac)]=_0x5a96bc([_0x3373d2[_0x11ae11(0x23e)](_0x47e5c3['UniverCollaborationClientPlugin']),_0x19b909(0x1,_0x3373d2[_0x11ae11(0x21e)](_0x3373d2[_0x11ae11(0x232)])),_0x19b909(0x2,_0x3373d2[_0x11ae11(0x1ba)])],_0x294b8c[_0x11ae11(0x1ac)]),_0x294b8c['LiveShare']=_0xc17e35,_0x294b8c[_0x11ae11(0x178)]=_0x2d11a6,_0x294b8c[_0x11ae11(0x1ff)]=_0x134d68,Object[_0x11ae11(0x1c7)](_0x294b8c,Symbol['toStringTag'],{'value':_0x11ae11(0x206)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.2-insiders.20260122-b1556b1",
3
+ "version": "0.15.2-insiders.20260124-12fc7f0",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,13 +57,13 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.1",
60
- "@univerjs-pro/collaboration": "0.15.2-insiders.20260122-b1556b1",
61
- "@univerjs/design": "0.15.2-insiders.20260122-b1556b1",
62
- "@univerjs-pro/collaboration-client": "0.15.2-insiders.20260122-b1556b1",
63
- "@univerjs/core": "0.15.2-insiders.20260122-b1556b1",
64
- "@univerjs/sheets": "0.15.2-insiders.20260122-b1556b1",
65
- "@univerjs/sheets-ui": "0.15.2-insiders.20260122-b1556b1",
66
- "@univerjs/ui": "0.15.2-insiders.20260122-b1556b1"
60
+ "@univerjs-pro/collaboration": "0.15.2-insiders.20260124-12fc7f0",
61
+ "@univerjs/core": "0.15.2-insiders.20260124-12fc7f0",
62
+ "@univerjs-pro/collaboration-client": "0.15.2-insiders.20260124-12fc7f0",
63
+ "@univerjs/design": "0.15.2-insiders.20260124-12fc7f0",
64
+ "@univerjs/sheets": "0.15.2-insiders.20260124-12fc7f0",
65
+ "@univerjs/sheets-ui": "0.15.2-insiders.20260124-12fc7f0",
66
+ "@univerjs/ui": "0.15.2-insiders.20260124-12fc7f0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "postcss": "^8.5.6",
@@ -73,8 +73,8 @@
73
73
  "typescript": "^5.9.3",
74
74
  "vite": "^7.3.1",
75
75
  "vitest": "^4.0.16",
76
- "@univerjs-infra/shared": "0.15.2",
77
- "@univerjs/protocol": "0.1.48"
76
+ "@univerjs/protocol": "0.1.48",
77
+ "@univerjs-infra/shared": "0.15.2"
78
78
  },
79
79
  "scripts": {
80
80
  "test": "vitest run",