@univerjs-pro/live-share 0.15.0 → 0.15.1-insiders.20260117-8ce4a01

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 _0x4cb687=_0x5e58;function _0x5e58(_0x5682f1,_0x3b76fa){_0x5682f1=_0x5682f1-0x8e;const _0x22d0f0=_0x22d0();let _0x5e5898=_0x22d0f0[_0x5682f1];return _0x5e5898;}(function(_0x589435,_0x47955e){const _0x2f7335=_0x5e58,_0x89ff58=_0x589435();while(!![]){try{const _0x2460ac=parseInt(_0x2f7335(0xb7))/0x1*(parseInt(_0x2f7335(0xad))/0x2)+parseInt(_0x2f7335(0x96))/0x3*(-parseInt(_0x2f7335(0x9d))/0x4)+parseInt(_0x2f7335(0x93))/0x5*(-parseInt(_0x2f7335(0xae))/0x6)+-parseInt(_0x2f7335(0x92))/0x7+parseInt(_0x2f7335(0x8f))/0x8*(parseInt(_0x2f7335(0x91))/0x9)+-parseInt(_0x2f7335(0xa9))/0xa+parseInt(_0x2f7335(0xb8))/0xb*(parseInt(_0x2f7335(0xb2))/0xc);if(_0x2460ac===_0x47955e)break;else _0x89ff58['push'](_0x89ff58['shift']());}catch(_0x58f2dc){_0x89ff58['push'](_0x89ff58['shift']());}}}(_0x22d0,0x4b984));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x4cb687(0xa5)]{[_0x4cb687(0x95)](_0x123b1c,_0xa8bbb4,_0x54333b,_0x113f61,_0x298d19){const _0x172433=_0x4cb687,_0x10c9da=_0x123b1c[_0x172433(0x8e)](n[_0x172433(0x9b)]),_0x5afe23=_0x123b1c[_0x172433(0x8e)](g[_0x172433(0xac)]),_0x5d42aa=_0xa8bbb4[_0x172433(0xb5)](),_0x4ab35e=_0xa8bbb4[_0x172433(0x98)](),_0x4f2273=_0x10c9da[_0x172433(0xa4)](_0x5d42aa);(_0x4f2273==null?void 0x0:_0x4f2273[_0x172433(0xb3)]())!==n[_0x172433(0xb4)][_0x172433(0xb6)]||(_0x54333b[_0x172433(0x97)]()!==_0x4ab35e['getSheetId']()&&this[_0x172433(0xa8)][_0x172433(0xaf)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x5d42aa,'subUnitId':_0x54333b[_0x172433(0x97)]()}),!_0x5afe23['getRenderById'](_0x5d42aa))||_0x298d19['syncExecuteCommand'](f[_0x172433(0x99)]['id'],{'unitId':_0xa8bbb4['getUnitId'](),'sheetId':_0x54333b[_0x172433(0x97)](),'sheetViewStartRow':_0x113f61[_0x172433(0xb0)],'sheetViewStartColumn':_0x113f61[_0x172433(0x9a)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x4cb687(0xa5)][_0x4cb687(0xa1)](w);function _0x22d0(){const _0x444fda=['No\x20active\x20workbook\x20found.','5688KEHwyC','4029893sJexeB','2608835pbJolg','IDLE','_initialize','518961JOmpwc','getSheetId','getActiveSheet','SetScrollOperation','startColumn','LiveShareController','stopFollowing','12wkksxQ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','tryStartPresenting','LiveShareStatusEnum','extend','getActiveWorkbook','FUniver','getLiveShareCoordinatorSync','FRange','getId','stopPresenting','_commandService','934940dOBNYD','startFollowing','_injector','IRenderManagerService','2DsLLdH','6uDyCzL','executeCommand','startRow','getLiveShareStatus','6581340gkVZHg','getStatus','LiveShareStatus','getUnitId','PRESENTING','130270uouYNh','33cSviNu','get','3088atSEHI'];_0x22d0=function(){return _0x444fda;};return _0x22d0();}class C extends a[_0x4cb687(0xa3)]{[_0x4cb687(0xb1)](){const _0x2b8895=_0x4cb687;var _0xe08566,_0x2a276e;const _0x58ad9a=this[_0x2b8895(0xab)]['get'](n[_0x2b8895(0x9b)]),_0x6d0b0b=(_0xe08566=this['getActiveWorkbook']())==null?void 0x0:_0xe08566[_0x2b8895(0xa6)]();if(!_0x6d0b0b)throw new Error(_0x2b8895(0x90));const _0x483232=_0x58ad9a['getLiveShareCoordinatorSync'](_0x6d0b0b);return(_0x2a276e=_0x483232==null?void 0x0:_0x483232[_0x2b8895(0xb3)]())!=null?_0x2a276e:n[_0x2b8895(0xb4)][_0x2b8895(0x94)];}[_0x4cb687(0xaa)](){const _0x3ff438=_0x4cb687;var _0x21dc28;const _0x73c9bd=this['_injector'][_0x3ff438(0x8e)](n[_0x3ff438(0x9b)]),_0x19d8a7=(_0x21dc28=this[_0x3ff438(0xa2)]())==null?void 0x0:_0x21dc28[_0x3ff438(0xa6)]();if(!_0x19d8a7)throw new Error(_0x3ff438(0x90));const _0x236f55=_0x73c9bd['getLiveShareCoordinatorSync'](_0x19d8a7);if(!_0x236f55)throw new Error(_0x3ff438(0x9e));_0x236f55[_0x3ff438(0xaa)]();}[_0x4cb687(0x9c)](){const _0x14f350=_0x4cb687;var _0x512229;const _0x17b06c=this[_0x14f350(0xab)]['get'](n[_0x14f350(0x9b)]),_0x353d75=(_0x512229=this[_0x14f350(0xa2)]())==null?void 0x0:_0x512229['getId']();if(!_0x353d75)throw new Error(_0x14f350(0x90));const _0x462b7f=_0x17b06c['getLiveShareCoordinatorSync'](_0x353d75);if(!_0x462b7f)throw new Error(_0x14f350(0x9e));_0x462b7f[_0x14f350(0x9c)]();}['startPresenting'](){const _0x3c1acb=_0x4cb687;var _0x44657e;const _0x3ff41a=this[_0x3c1acb(0xab)]['get'](n[_0x3c1acb(0x9b)]),_0x39d68c=(_0x44657e=this[_0x3c1acb(0xa2)]())==null?void 0x0:_0x44657e[_0x3c1acb(0xa6)]();if(!_0x39d68c)throw new Error(_0x3c1acb(0x90));const _0x33f2a2=_0x3ff41a[_0x3c1acb(0xa4)](_0x39d68c);if(!_0x33f2a2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x33f2a2[_0x3c1acb(0x9f)]();}[_0x4cb687(0xa7)](){const _0x330731=_0x4cb687;var _0x2de424;const _0x128210=this[_0x330731(0xab)][_0x330731(0x8e)](n[_0x330731(0x9b)]),_0x2dbdba=(_0x2de424=this[_0x330731(0xa2)]())==null?void 0x0:_0x2de424[_0x330731(0xa6)]();if(!_0x2dbdba)throw new Error(_0x330731(0x90));const _0x6b4c25=_0x128210[_0x330731(0xa4)](_0x2dbdba);if(!_0x6b4c25)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x6b4c25['stopPresenting']();}}a[_0x4cb687(0xa3)]['extend'](C);class L extends a['FEnum']{get[_0x4cb687(0xa0)](){return n['LiveShareStatus'];}}a['FEnum']['extend'](L);
1
+ 'use strict';const _0xe86b2b=_0x33a9;(function(_0x3d3a3d,_0x505657){const _0x45db39=_0x33a9,_0x56589c=_0x3d3a3d();while(!![]){try{const _0x430ce6=-parseInt(_0x45db39(0x15b))/0x1+-parseInt(_0x45db39(0x159))/0x2+-parseInt(_0x45db39(0x163))/0x3*(parseInt(_0x45db39(0x161))/0x4)+parseInt(_0x45db39(0x15a))/0x5*(-parseInt(_0x45db39(0x168))/0x6)+parseInt(_0x45db39(0x164))/0x7+parseInt(_0x45db39(0x156))/0x8+-parseInt(_0x45db39(0x151))/0x9*(-parseInt(_0x45db39(0x155))/0xa);if(_0x430ce6===_0x505657)break;else _0x56589c['push'](_0x56589c['shift']());}catch(_0x3adde2){_0x56589c['push'](_0x56589c['shift']());}}}(_0x4879,0xe84bd));var h=Object['defineProperty'],u=(_0x32a7cd,_0x42b9fc,_0x13ef52)=>_0x42b9fc in _0x32a7cd?h(_0x32a7cd,_0x42b9fc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13ef52}):_0x32a7cd[_0x42b9fc]=_0x13ef52,S=(_0x5edb4a,_0x1b6006,_0x22a688)=>u(_0x5edb4a,typeof _0x1b6006!=_0xe86b2b(0x171)?_0x1b6006+'':_0x1b6006,_0x22a688);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0xe86b2b(0x16d)]{constructor(){const _0x54fd54=_0xe86b2b;super(...arguments),S(this,_0x54fd54(0x15f));}['_initialize'](_0x3c6fab){const _0x1d0bb6=_0xe86b2b;this['_liveShareController']=_0x3c6fab['get'](s[_0x1d0bb6(0x166)]);}[_0xe86b2b(0x16c)](){const _0x1f088f=_0xe86b2b;var _0x5a1ae6;const _0x578ebd=this[_0x1f088f(0x16e)]['get'](n[_0x1f088f(0x150)])[_0x1f088f(0x157)](n[_0x1f088f(0x160)]['UNIVER_SHEET']);if(!_0x578ebd)throw new Error(_0x1f088f(0x16f));const _0x4fba2c=_0x578ebd[_0x1f088f(0x16b)](),_0x530615=this[_0x1f088f(0x15f)][_0x1f088f(0x15c)](_0x4fba2c);return(_0x5a1ae6=_0x530615==null?void 0x0:_0x530615['getStatus']())!=null?_0x5a1ae6:s['LiveShareStatus'][_0x1f088f(0x15d)];}[_0xe86b2b(0x167)](){const _0x245550=_0xe86b2b,_0x29effd=this[_0x245550(0x16e)][_0x245550(0x165)](n[_0x245550(0x150)])[_0x245550(0x157)](n[_0x245550(0x160)]['UNIVER_SHEET']);if(!_0x29effd)throw new Error('No\x20active\x20workbook\x20found.');const _0x257978=_0x29effd[_0x245550(0x16b)](),_0xfec440=this[_0x245550(0x15f)][_0x245550(0x15c)](_0x257978);if(!_0xfec440)throw new Error(_0x245550(0x162));_0xfec440[_0x245550(0x167)]();}[_0xe86b2b(0x154)](){const _0x14b800=_0xe86b2b,_0x58d157=this[_0x14b800(0x16e)]['get'](n[_0x14b800(0x150)])[_0x14b800(0x157)](n['UniverInstanceType'][_0x14b800(0x153)]);if(!_0x58d157)throw new Error(_0x14b800(0x16f));const _0x1f705a=_0x58d157['getUnitId'](),_0x182474=this['_liveShareController'][_0x14b800(0x15c)](_0x1f705a);if(!_0x182474)throw new Error(_0x14b800(0x162));_0x182474[_0x14b800(0x154)]();}[_0xe86b2b(0x152)](){const _0x4101ed=_0xe86b2b,_0x235cbe=this[_0x4101ed(0x16e)][_0x4101ed(0x165)](n[_0x4101ed(0x150)])[_0x4101ed(0x157)](n['UniverInstanceType'][_0x4101ed(0x153)]);if(!_0x235cbe)throw new Error(_0x4101ed(0x16f));const _0x2de803=_0x235cbe[_0x4101ed(0x16b)](),_0x3f0da4=this[_0x4101ed(0x15f)]['getLiveShareCoordinatorSync'](_0x2de803);if(!_0x3f0da4)throw new Error(_0x4101ed(0x162));_0x3f0da4[_0x4101ed(0x14f)]();}[_0xe86b2b(0x15e)](){const _0x546f15=_0xe86b2b,_0x310703=this[_0x546f15(0x16e)][_0x546f15(0x165)](n['IUniverInstanceService'])[_0x546f15(0x157)](n[_0x546f15(0x160)][_0x546f15(0x153)]);if(!_0x310703)throw new Error('No\x20active\x20workbook\x20found.');const _0x4f3920=_0x310703[_0x546f15(0x16b)](),_0x5c3a3e=this[_0x546f15(0x15f)][_0x546f15(0x15c)](_0x4f3920);if(!_0x5c3a3e)throw new Error(_0x546f15(0x162));_0x5c3a3e[_0x546f15(0x15e)]();}}c[_0xe86b2b(0x16d)][_0xe86b2b(0x169)](I);function _0x33a9(_0x394d4a,_0x2d93ef){_0x394d4a=_0x394d4a-0x14f;const _0x4879ce=_0x4879();let _0x33a9e2=_0x4879ce[_0x394d4a];return _0x33a9e2;}class l extends c[_0xe86b2b(0x158)]{get[_0xe86b2b(0x170)](){const _0x1e3b3d=_0xe86b2b;return s[_0x1e3b3d(0x16a)];}}function _0x4879(){const _0x26499f=['2644611ozuYcH','1883413sDmgIi','get','LiveShareController','startFollowing','36pbWkUe','extend','LiveShareStatus','getUnitId','getLiveShareStatus','FUniver','_injector','No\x20active\x20workbook\x20found.','LiveShareStatusEnum','symbol','tryStartPresenting','IUniverInstanceService','7674741bowROo','startPresenting','UNIVER_SHEET','stopFollowing','70tMoLmY','2491736dnOUbC','getCurrentUnitOfType','FEnum','2011994paIdZE','1129265pGyOBX','1474095KHqLxr','getLiveShareCoordinatorSync','IDLE','stopPresenting','_liveShareController','UniverInstanceType','8vKrWQL','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x4879=function(){return _0x26499f;};return _0x4879();}c['FEnum']['extend'](l);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x534aff=_0x36be;(function(_0x3eb754,_0x33fde1){const _0xe8c95a=_0x36be,_0x1eae19=_0x3eb754();while(!![]){try{const _0x421b10=parseInt(_0xe8c95a(0x2a9))/0x1+-parseInt(_0xe8c95a(0x24f))/0x2+parseInt(_0xe8c95a(0x1f9))/0x3*(-parseInt(_0xe8c95a(0x257))/0x4)+-parseInt(_0xe8c95a(0x1fa))/0x5*(-parseInt(_0xe8c95a(0x21d))/0x6)+parseInt(_0xe8c95a(0x20b))/0x7*(-parseInt(_0xe8c95a(0x1d9))/0x8)+parseInt(_0xe8c95a(0x232))/0x9*(parseInt(_0xe8c95a(0x261))/0xa)+-parseInt(_0xe8c95a(0x1f4))/0xb*(-parseInt(_0xe8c95a(0x242))/0xc);if(_0x421b10===_0x33fde1)break;else _0x1eae19['push'](_0x1eae19['shift']());}catch(_0x22993d){_0x1eae19['push'](_0x1eae19['shift']());}}}(_0x4cad,0x30c50));var T=Object['defineProperty'],U=(_0x5eb883,_0x28d00c,_0x15c137)=>_0x28d00c in _0x5eb883?T(_0x5eb883,_0x28d00c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15c137}):_0x5eb883[_0x28d00c]=_0x15c137,_=(_0x24cfde,_0x37e6d5,_0x5bf264)=>U(_0x24cfde,typeof _0x37e6d5!=_0x534aff(0x210)?_0x37e6d5+'':_0x37e6d5,_0x5bf264);Object[_0x534aff(0x281)](exports,Symbol[_0x534aff(0x1e4)],{'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:_0x177101,..._0x77479f}){const _0x2fb7db=_0x534aff,{icon:_0xc2421f,id:_0x39e307,className:_0x41a4ec,extend:_0x37e29d,..._0x12d912}=_0x77479f,_0x86985=(_0x2fb7db(0x299)+_0x39e307+'\x20'+(_0x41a4ec||''))['trim'](),_0x3d73eb=v[_0x2fb7db(0x252)]('_'+H());return j(_0xc2421f,''+_0x39e307,{'defIds':_0xc2421f[_0x2fb7db(0x2aa)],'idSuffix':_0x3d73eb[_0x2fb7db(0x258)]},{'ref':_0x177101,'className':_0x86985,..._0x12d912},_0x37e29d);}function j(_0x1bf94e,_0x48ff3d,_0x1e2147,_0x5adcac,_0x476386){const _0x1cc0bf=_0x534aff;return v['createElement'](_0x1bf94e[_0x1cc0bf(0x22a)],{'key':_0x48ff3d,...y(_0x1bf94e,_0x1e2147,_0x476386),..._0x5adcac},(F(_0x1bf94e,_0x1e2147)[_0x1cc0bf(0x277)]||[])['map']((_0x100988,_0x455710)=>j(_0x100988,_0x48ff3d+'-'+_0x1bf94e[_0x1cc0bf(0x22a)]+'-'+_0x455710,_0x1e2147,void 0x0,_0x476386)));}function y(_0x4bc297,_0x541709,_0x1fafa6){const _0x15ebdc=_0x534aff,_0x4892a7={..._0x4bc297['attrs']};_0x1fafa6!=null&&_0x1fafa6[_0x15ebdc(0x29a)]&&_0x4892a7[_0x15ebdc(0x20f)]===_0x15ebdc(0x29a)&&(_0x4892a7['fill']=_0x1fafa6[_0x15ebdc(0x29a)]),_0x4bc297[_0x15ebdc(0x22a)]===_0x15ebdc(0x295)&&_0x4892a7['id']&&(_0x4892a7['id']=_0x4892a7['id']+_0x541709[_0x15ebdc(0x2a3)]),Object[_0x15ebdc(0x1d5)](_0x4892a7)[_0x15ebdc(0x251)](([_0x2314ee,_0x42eb1f])=>{const _0x576957=_0x15ebdc;_0x2314ee==='mask'&&typeof _0x42eb1f==_0x576957(0x2ae)&&(_0x4892a7[_0x2314ee]=_0x42eb1f[_0x576957(0x1ff)](/url\(#(.*)\)/,_0x576957(0x279)+_0x541709[_0x576957(0x2a3)]+')'));});const {defIds:_0x255fdf}=_0x541709;return!_0x255fdf||_0x255fdf[_0x15ebdc(0x23d)]===0x0||(_0x4bc297[_0x15ebdc(0x22a)]===_0x15ebdc(0x250)&&_0x4892a7['xlink:href']&&(_0x4892a7[_0x15ebdc(0x227)]=_0x4892a7['xlink:href']+_0x541709[_0x15ebdc(0x2a3)]),Object[_0x15ebdc(0x1d5)](_0x4892a7)['forEach'](([_0x153f29,_0x2956c3])=>{const _0x46a239=_0x15ebdc;typeof _0x2956c3==_0x46a239(0x2ae)&&(_0x4892a7[_0x153f29]=_0x2956c3[_0x46a239(0x1ff)](/url\(#(.*)\)/,_0x46a239(0x279)+_0x541709['idSuffix']+')'));})),_0x4892a7;}function F(_0x4cf099,_0x72d7d9){const _0x538603=_0x534aff;var _0x320c5d;const {defIds:_0x9ea59b}=_0x72d7d9;return!_0x9ea59b||_0x9ea59b[_0x538603(0x23d)]===0x0?_0x4cf099:_0x4cf099['tag']===_0x538603(0x2a8)&&((_0x320c5d=_0x4cf099['children'])!=null&&_0x320c5d[_0x538603(0x23d)])?{..._0x4cf099,'children':_0x4cf099[_0x538603(0x277)][_0x538603(0x278)](_0x23fbb7=>typeof _0x23fbb7[_0x538603(0x1d6)]['id']==_0x538603(0x2ae)&&_0x9ea59b&&_0x9ea59b[_0x538603(0x244)](_0x23fbb7['attrs']['id'])?{..._0x23fbb7,'attrs':{..._0x23fbb7[_0x538603(0x1d6)],'id':_0x23fbb7[_0x538603(0x1d6)]['id']+_0x72d7d9[_0x538603(0x2a3)]}}:_0x23fbb7)}:_0x4cf099;}function _0x36be(_0x507223,_0x459bd8){_0x507223=_0x507223-0x1cf;const _0x4cad12=_0x4cad();let _0x36beca=_0x4cad12[_0x507223];return _0x36beca;}function H(){const _0x27f9ef=_0x534aff;return Math[_0x27f9ef(0x216)]()['toString'](0x24)[_0x27f9ef(0x1e0)](0x2,0x8);}x[_0x534aff(0x25c)]=_0x534aff(0x224);const V={'tag':_0x534aff(0x268),'attrs':{'xmlns':_0x534aff(0x282),'fill':'none','viewBox':_0x534aff(0x25d),'width':_0x534aff(0x287),'height':_0x534aff(0x287)},'children':[{'tag':_0x534aff(0x274),'attrs':{'fill':_0x534aff(0x203),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x534aff(0x203),'d':_0x534aff(0x1fc),'fillRule':_0x534aff(0x27d),'clipRule':_0x534aff(0x27d)}}]},R=v[_0x534aff(0x22e)](function(_0x224927,_0x845312){const _0x2d0768=_0x534aff;return v[_0x2d0768(0x1d1)](x,Object[_0x2d0768(0x260)]({},_0x224927,{'id':_0x2d0768(0x26b),'ref':_0x845312,'icon':V}));});R[_0x534aff(0x25c)]=_0x534aff(0x1fb);class E extends o['Disposable']{constructor(){const _0x4150d6=_0x534aff;super(...arguments),_(this,_0x4150d6(0x256),new Set()),_(this,_0x4150d6(0x1ec),new Set());}[_0x534aff(0x26a)](_0x10ff02){const _0x3e16ed=_0x534aff;return this[_0x3e16ed(0x256)][_0x3e16ed(0x264)](_0x10ff02),o[_0x3e16ed(0x21f)](()=>this[_0x3e16ed(0x256)][_0x3e16ed(0x2ab)](_0x10ff02));}['registerInitialStateReporter'](_0x5d27ed){const _0x15288a=_0x534aff;return this[_0x15288a(0x1ec)][_0x15288a(0x264)](_0x5d27ed),o[_0x15288a(0x21f)](()=>this['_reporters']['delete'](_0x5d27ed));}[_0x534aff(0x201)](_0x3a9b86){const _0x58a67f=_0x534aff;return this[_0x58a67f(0x256)]['has'](_0x3a9b86);}[_0x534aff(0x259)](_0x46017f){const _0xdadaa9=_0x534aff;return Array[_0xdadaa9(0x208)](this[_0xdadaa9(0x1ec)])[_0xdadaa9(0x278)](_0x3c6c1f=>_0x3c6c1f(_0x46017f));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x2d9113,_0x15dba6,_0x27643d,_0xf25b06)=>{const _0x43bf71=_0x534aff;for(var _0x3d8e68=_0xf25b06>0x1?void 0x0:_0xf25b06?M(_0x15dba6,_0x27643d):_0x15dba6,_0x1d4077=_0x2d9113[_0x43bf71(0x23d)]-0x1,_0xf0cdc9;_0x1d4077>=0x0;_0x1d4077--)(_0xf0cdc9=_0x2d9113[_0x1d4077])&&(_0x3d8e68=_0xf0cdc9(_0x3d8e68)||_0x3d8e68);return _0x3d8e68;},S=(_0x3e491e,_0x1432d5)=>(_0x40be62,_0x3a9a3e)=>_0x1432d5(_0x40be62,_0x3a9a3e,_0x3e491e);exports[_0x534aff(0x2a6)]=class extends o[_0x534aff(0x2ac)]{constructor(_0x197272,_0x23a066,_0x19640d){const _0x441a97=_0x534aff;super(),_(this,_0x441a97(0x265),new Map()),(this['_univerInstanceService']=_0x197272,this['_injector']=_0x23a066,this['_collabSessionService']=_0x19640d,this[_0x441a97(0x26c)]());}async[_0x534aff(0x28e)](_0x145f93){const _0x3d392e=_0x534aff;return this[_0x3d392e(0x265)][_0x3d392e(0x200)](_0x145f93)||await this[_0x3d392e(0x23a)](_0x145f93),this[_0x3d392e(0x265)]['get'](_0x145f93);}[_0x534aff(0x206)](_0x450615){const _0x248313=_0x534aff;var _0x4e5b93;return(_0x4e5b93=this[_0x248313(0x265)][_0x248313(0x25e)](_0x450615))!=null?_0x4e5b93:null;}[_0x534aff(0x26c)](){const _0x5cde72=_0x534aff;this['_univerInstanceService'][_0x5cde72(0x24d)](o[_0x5cde72(0x2ad)][_0x5cde72(0x26d)])['pipe'](I[_0x5cde72(0x1f2)](this[_0x5cde72(0x22f)]))[_0x5cde72(0x239)](async _0x2eab3d=>{const _0x5c5820=_0x5cde72,_0x25d548=_0x2eab3d['getUnitId']();this[_0x5c5820(0x265)][_0x5c5820(0x200)](_0x25d548)||this[_0x5c5820(0x23a)](_0x25d548);}),this['_univerInstanceService'][_0x5cde72(0x1d4)](o[_0x5cde72(0x2ad)][_0x5cde72(0x26d)])[_0x5cde72(0x233)](I[_0x5cde72(0x1f2)](this[_0x5cde72(0x22f)]))[_0x5cde72(0x239)](_0x252071=>{const _0x157852=_0x5cde72,_0x171449=_0x252071[_0x157852(0x229)](),_0x3486d3=this[_0x157852(0x265)][_0x157852(0x25e)](_0x171449);_0x3486d3==null||_0x3486d3[_0x157852(0x220)]();});}async['_startLiveShareCoordinator'](_0x32ede2){const _0x360747=_0x534aff,_0x5265d1=await this['_collabSessionService']['requireSession'](_0x32ede2),_0x206dfc=this[_0x360747(0x255)]['createInstance'](exports[_0x360747(0x237)],_0x32ede2,_0x5265d1);return _0x206dfc[_0x360747(0x226)](),this[_0x360747(0x265)][_0x360747(0x1e9)](_0x32ede2,_0x206dfc),_0x206dfc;}},exports['LiveShareController']=P([S(0x0,o[_0x534aff(0x24b)]),S(0x1,o[_0x534aff(0x283)](o[_0x534aff(0x238)])),S(0x2,o[_0x534aff(0x283)](b[_0x534aff(0x1ed)]))],exports[_0x534aff(0x2a6)]);var u=(_0x297cce=>(_0x297cce['OFFLINE']=_0x534aff(0x273),_0x297cce[_0x534aff(0x29c)]=_0x534aff(0x296),_0x297cce[_0x534aff(0x21c)]=_0x534aff(0x1f8),_0x297cce['NOT_FOLLOWING']=_0x534aff(0x205),_0x297cce[_0x534aff(0x249)]=_0x534aff(0x2a5),_0x297cce))(u||{});const k=_0x534aff(0x24c),q=0xc8;exports[_0x534aff(0x237)]=class extends o[_0x534aff(0x2ac)]{constructor(_0x155908,_0x3388fb,_0x5e1fec,_0x1b798d,_0x198b53){const _0x1d42c5=_0x534aff;super(),_(this,'_status$',new O[(_0x1d42c5(0x223))](_0x1d42c5(0x296))),_(this,_0x1d42c5(0x21a),this['_status$'][_0x1d42c5(0x1ef)]()),_(this,_0x1d42c5(0x26c),!0x1),_(this,_0x1d42c5(0x1fd),null),_(this,_0x1d42c5(0x2a7),null),(this[_0x1d42c5(0x289)]=_0x155908,this[_0x1d42c5(0x247)]=_0x3388fb,this[_0x1d42c5(0x1dc)]=_0x5e1fec,this['_liveShareService']=_0x1b798d,this[_0x1d42c5(0x1d0)]=_0x198b53);}get[_0x534aff(0x228)](){const _0x243be4=_0x534aff;return this['_status$'][_0x243be4(0x22d)]();}[_0x534aff(0x220)](){const _0x32c43c=_0x534aff;var _0x564d63;(_0x564d63=this[_0x32c43c(0x1fd)])==null||_0x564d63['dispose'](),this['_status$'][_0x32c43c(0x21e)](_0x32c43c(0x296)),this[_0x32c43c(0x2a4)]['complete']();}[_0x534aff(0x285)](){const _0x44a67f=_0x534aff;return this[_0x44a67f(0x228)];}[_0x534aff(0x226)](){const _0x5d7899=_0x534aff;this['_init']||(this[_0x5d7899(0x26c)]=!0x0,this['_collabSession'][_0x5d7899(0x27a)]['pipe'](I[_0x5d7899(0x1f2)](this[_0x5d7899(0x22f)]))[_0x5d7899(0x239)](_0xe01611=>{const _0xd600f3=_0x5d7899;switch(_0xe01611){case b['SessionStatus'][_0xd600f3(0x236)]:this[_0xd600f3(0x213)]();break;case b[_0xd600f3(0x1d8)]['ONLINE']:this[_0xd600f3(0x1e8)]();break;}}),this[_0x5d7899(0x247)]['event$'][_0x5d7899(0x233)](I['takeUntil'](this['dispose$']))[_0x5d7899(0x239)](_0x4e46cf=>{const _0x1c5c21=_0x5d7899,{eventID:_0x342ac7}=_0x4e46cf;switch(_0x342ac7){case d[_0x1c5c21(0x1e2)][_0x1c5c21(0x1dd)]:this[_0x1c5c21(0x2a0)](_0x4e46cf);break;case d[_0x1c5c21(0x1e2)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x4e46cf);break;case d[_0x1c5c21(0x1e2)][_0x1c5c21(0x29d)]:this['_handleTerminate']();break;case d[_0x1c5c21(0x1e2)][_0x1c5c21(0x290)]:this[_0x1c5c21(0x29f)](_0x4e46cf);break;}}));}['tryStartPresenting'](){const _0x5c0523=_0x534aff;this[_0x5c0523(0x247)][_0x5c0523(0x292)]({'eventID':d['CollaborationEvent'][_0x5c0523(0x23b)],'data':{'unitID':this[_0x5c0523(0x289)],'userID':this[_0x5c0523(0x247)][_0x5c0523(0x27b)]()}},this[_0x5c0523(0x289)]);}['stopPresenting'](){const _0x41d7f2=_0x534aff;this[_0x41d7f2(0x228)]==='presenting'&&(this[_0x41d7f2(0x2a4)]['next']('idle'),this[_0x41d7f2(0x247)][_0x41d7f2(0x292)]({'eventID':d[_0x41d7f2(0x1e2)][_0x41d7f2(0x29d)],'data':{'unitID':this['_unitID']}},this[_0x41d7f2(0x289)]));}['startFollowing'](){const _0x24af54=_0x534aff;this[_0x24af54(0x228)]==='not-following'&&(this[_0x24af54(0x2a4)][_0x24af54(0x21e)](_0x24af54(0x1f8)),this['_startFollowing']());}[_0x534aff(0x1f0)](){const _0x7df104=_0x534aff;this['_status']===_0x7df104(0x1f8)&&this[_0x7df104(0x207)]();}[_0x534aff(0x2a0)](_0x30ac8d){const _0x1d2791=_0x534aff,{presenter:_0x3d04f3}=_0x30ac8d[_0x1d2791(0x1df)],_0x4748be=this['_collabSession'][_0x1d2791(0x27b)]();this[_0x1d2791(0x2a7)]=_0x3d04f3,_0x3d04f3===_0x4748be?(this[_0x1d2791(0x207)](),this[_0x1d2791(0x246)]()):this['_status']!==_0x1d2791(0x205)&&(this[_0x1d2791(0x231)](),this[_0x1d2791(0x28a)]());}[_0x534aff(0x28f)](){const _0x25a8b6=_0x534aff,_0x51a017={'eventID':d[_0x25a8b6(0x1e2)][_0x25a8b6(0x230)]};this[_0x25a8b6(0x247)][_0x25a8b6(0x292)](_0x51a017,this[_0x25a8b6(0x289)]);}[_0x534aff(0x211)](){const _0x995196=_0x534aff;this[_0x995196(0x2a7)]=null,this['_status']!==_0x995196(0x2a5)&&this['_beIdle']();}[_0x534aff(0x29f)](_0x33815a){const _0x66ffad=_0x534aff;if(this[_0x66ffad(0x228)]===_0x66ffad(0x1f8)&&this[_0x66ffad(0x2a7)]===_0x33815a[_0x66ffad(0x1df)][_0x66ffad(0x28c)]){const _0x3937df=d[_0x66ffad(0x29e)](_0x33815a[_0x66ffad(0x1df)])[_0x66ffad(0x217)][_0x66ffad(0x267)]()[_0x66ffad(0x235)](_0x3ec4cb=>_0x3ec4cb['id']===C[_0x66ffad(0x248)]['id']);if(_0x3937df){const _0x3fc5f4=_0x3937df[_0x66ffad(0x288)][_0x66ffad(0x271)],_0x5542c0=_0x3937df[_0x66ffad(0x288)][_0x66ffad(0x1f6)]['id'];setTimeout(()=>{const _0x49e9d4=_0x66ffad;this[_0x49e9d4(0x1d0)][_0x49e9d4(0x202)](C[_0x49e9d4(0x22b)]['id'],{'unitId':_0x3fc5f4,'subUnitId':_0x5542c0},{'fromCollab':!0x0});});}}}[_0x534aff(0x246)](){const _0xde67df=_0x534aff;this['_status$'][_0xde67df(0x21e)](_0xde67df(0x2a5));const _0x53e611=new Map(),_0x353201=this[_0xde67df(0x1fd)]=new o[(_0xde67df(0x23c))]();_0x353201[_0xde67df(0x264)](o[_0xde67df(0x21f)](()=>{const _0x15e612=_0xde67df;_0x53e611[_0x15e612(0x251)](_0x5bcbbb=>_0x5bcbbb[_0x15e612(0x1d7)]()),_0x53e611[_0x15e612(0x29b)]();})),_0x353201['add'](this[_0xde67df(0x1d0)][_0xde67df(0x1e5)](_0x3157ef=>{const _0x3a2dd7=_0xde67df;var _0x2433db;if(_0x3157ef[_0x3a2dd7(0x1fe)]!==o[_0x3a2dd7(0x293)][_0x3a2dd7(0x297)]||!this[_0x3a2dd7(0x28d)]['shouldShareOperation'](_0x3157ef['id']))return;const {id:_0x29c3c1}=_0x3157ef;let _0xd433d9;_0x53e611[_0x3a2dd7(0x200)](_0x29c3c1)?_0xd433d9=_0x53e611[_0x3a2dd7(0x25e)](_0x29c3c1):(_0xd433d9=new O['Subject'](),_0x53e611[_0x3a2dd7(0x1e9)](_0x29c3c1,_0xd433d9),_0xd433d9[_0x3a2dd7(0x233)](I[_0x3a2dd7(0x27f)]((_0x2433db=this['_configService'][_0x3a2dd7(0x225)](k))!=null?_0x2433db:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x10da20=>{const _0xcd85e4=_0x3a2dd7;this[_0xcd85e4(0x247)]['send']({'eventID':d[_0xcd85e4(0x1e2)][_0xcd85e4(0x1d3)],'data':{'unitID':this[_0xcd85e4(0x289)],'operations':{[_0x10da20['id']]:{'id':_0x10da20['id'],'params':JSON[_0xcd85e4(0x280)](_0x10da20['params'])}}}},this[_0xcd85e4(0x289)]);})),_0xd433d9[_0x3a2dd7(0x21e)](_0x3157ef);})),this['_liveShareService'][_0xde67df(0x259)](this[_0xde67df(0x289)])['forEach'](_0x392082=>this[_0xde67df(0x247)]['send']({'eventID':d[_0xde67df(0x1e2)][_0xde67df(0x1d3)],'data':{'unitID':this[_0xde67df(0x289)],'operations':{[_0x392082['id']]:{'id':_0x392082['id'],'params':JSON[_0xde67df(0x280)](_0x392082[_0xde67df(0x288)])}}}},this[_0xde67df(0x289)]));}[_0x534aff(0x231)](){const _0x592453=_0x534aff;var _0x5d4e57;this['_status$']['next'](_0x592453(0x296)),(_0x5d4e57=this[_0x592453(0x1fd)])==null||_0x5d4e57[_0x592453(0x220)](),this['_commandDisposable']=null;}[_0x534aff(0x28a)](){const _0x4ed299=_0x534aff;var _0x190ac2;(_0x190ac2=this[_0x4ed299(0x1fd)])==null||_0x190ac2[_0x4ed299(0x220)](),this[_0x4ed299(0x2a4)][_0x4ed299(0x21e)](_0x4ed299(0x1f8));}[_0x534aff(0x24a)](){const _0x284ab3=_0x534aff;var _0x16231c;this[_0x284ab3(0x2a4)][_0x284ab3(0x21e)](_0x284ab3(0x296)),(_0x16231c=this[_0x284ab3(0x1fd)])==null||_0x16231c['dispose'](),this[_0x284ab3(0x1fd)]=null;}['_stopFollowing'](){const _0x2c129a=_0x534aff;var _0x3e2620;this[_0x2c129a(0x2a4)][_0x2c129a(0x21e)]('not-following'),(_0x3e2620=this[_0x2c129a(0x1fd)])==null||_0x3e2620['dispose']();}[_0x534aff(0x1d2)](_0x5998a4){const _0x2dffe5=_0x534aff;if([_0x2dffe5(0x2a5),_0x2dffe5(0x205),_0x2dffe5(0x273)][_0x2dffe5(0x244)](this[_0x2dffe5(0x228)])||!_0x5998a4[_0x2dffe5(0x1df)][_0x2dffe5(0x243)]||_0x5998a4[_0x2dffe5(0x1df)][_0x2dffe5(0x243)]===this[_0x2dffe5(0x247)][_0x2dffe5(0x27b)]())return;this[_0x2dffe5(0x228)]===_0x2dffe5(0x296)&&this[_0x2dffe5(0x28a)]();const _0x42cb9=_0x5998a4[_0x2dffe5(0x1df)][_0x2dffe5(0x1db)];Object['values'](_0x42cb9)[_0x2dffe5(0x251)](_0x2b927c=>{const _0x501fff=_0x2dffe5;this[_0x501fff(0x1d0)][_0x501fff(0x202)](_0x2b927c['id'],_0x2b927c[_0x501fff(0x288)]?JSON[_0x501fff(0x1f1)](_0x2b927c[_0x501fff(0x288)]):null,{'fromCollab':!0x0});});}[_0x534aff(0x213)](){const _0x15631d=_0x534aff;var _0x258aaa;this[_0x15631d(0x2a4)]['next'](_0x15631d(0x273)),(_0x258aaa=this[_0x15631d(0x1fd)])==null||_0x258aaa[_0x15631d(0x220)]();}['_handleOnline'](){const _0x247e49=_0x534aff;this[_0x247e49(0x2a4)][_0x247e49(0x21e)](_0x247e49(0x296)),this[_0x247e49(0x28f)]();}},exports[_0x534aff(0x237)]=P([S(0x2,o[_0x534aff(0x291)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x534aff(0x1e7)])],exports[_0x534aff(0x237)]);function $(){const _0x2098a4=_0x534aff,_0x3e5711=p[_0x2098a4(0x218)](exports[_0x2098a4(0x2a6)]),_0x13edd2=p[_0x2098a4(0x218)](o['IUniverInstanceService']),_0x23aee7=p[_0x2098a4(0x284)](()=>_0x13edd2[_0x2098a4(0x20a)](o[_0x2098a4(0x2ad)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xa2513d,_0xb4db41]=v[_0x2098a4(0x1f7)](null),[_0x19956d,_0x5cb80f]=v[_0x2098a4(0x1f7)](u[_0x2098a4(0x29c)]),_0xa5dc19=v[_0x2098a4(0x252)](null);return v[_0x2098a4(0x215)](()=>(_0x23aee7&&_0x3e5711[_0x2098a4(0x28e)](_0x23aee7[_0x2098a4(0x229)]())[_0x2098a4(0x209)](_0x59251c=>{const _0x49dd6e=_0x2098a4;_0xb4db41(_0x59251c),_0xa5dc19[_0x49dd6e(0x258)]=_0x59251c[_0x49dd6e(0x21a)]['subscribe'](_0x5d438a=>{_0x5cb80f(_0x5d438a);});}),()=>{const _0x66b26f=_0x2098a4;var _0x49d287;(_0x49d287=_0xa5dc19[_0x66b26f(0x258)])==null||_0x49d287[_0x66b26f(0x25b)](),_0xa5dc19[_0x66b26f(0x258)]=null;}),[_0x23aee7,_0x3e5711]),_0xa2513d?l[_0x2098a4(0x269)](f['Dropdown'],{'align':_0x2098a4(0x222),'disabled':_0x19956d===u['OFFLINE'],'className':_0x2098a4(0x1f5),'overlay':l[_0x2098a4(0x269)](W,{'status':_0x19956d,'coordinator':_0xa2513d}),'children':l[_0x2098a4(0x269)](_0x2098a4(0x1f3),{'className':f['clsx'](_0x2098a4(0x22c),{'univer-cursor-not-allowed':_0x19956d===u[_0x2098a4(0x236)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x19956d!==u[_0x2098a4(0x236)]}),'type':_0x2098a4(0x1f3),'children':l[_0x2098a4(0x269)](R,{'className':_0x2098a4(0x20d)})})}):null;}function W(_0x45e14f){const _0x417392=_0x534aff,{status:_0xa9606e,coordinator:_0x2d66ea}=_0x45e14f;switch(_0xa9606e){case u[_0x417392(0x29c)]:return l[_0x417392(0x269)](G,{'coordinator':_0x2d66ea});case u[_0x417392(0x21c)]:return l[_0x417392(0x269)](B,{'coordinator':_0x2d66ea});case u[_0x417392(0x26f)]:return l['jsx'](Y,{'coordinator':_0x2d66ea});case u[_0x417392(0x236)]:return l[_0x417392(0x269)](J,{});case u[_0x417392(0x249)]:return l[_0x417392(0x269)](Z,{'coordinator':_0x2d66ea});default:return null;}}function G(_0xfd471){const _0x5a92c8=_0x534aff,{coordinator:_0x40649f}=_0xfd471;return l['jsxs'](l[_0x5a92c8(0x26e)],{'children':[l[_0x5a92c8(0x269)](_0x5a92c8(0x294),{'className':_0x5a92c8(0x212),'children':_0x5a92c8(0x214)}),l[_0x5a92c8(0x269)](f['Button'],{'onClick':()=>_0x40649f[_0x5a92c8(0x1ea)](),'children':'Start'})]});}function B(_0x1d32cc){const _0x40998b=_0x534aff,{coordinator:_0x25fffc}=_0x1d32cc;return l[_0x40998b(0x240)](l['Fragment'],{'children':[l[_0x40998b(0x269)](_0x40998b(0x294),{'className':_0x40998b(0x212),'children':_0x40998b(0x298)}),l[_0x40998b(0x269)](f[_0x40998b(0x221)],{'onClick':()=>_0x25fffc[_0x40998b(0x1f0)](),'children':'Stop\x20following'})]});}function Y(_0x14bf43){const _0x21ed3c=_0x534aff,{coordinator:_0xc0c4af}=_0x14bf43;return l['jsxs'](l['Fragment'],{'children':[l[_0x21ed3c(0x269)](_0x21ed3c(0x294),{'className':_0x21ed3c(0x212),'children':_0x21ed3c(0x25f)}),l[_0x21ed3c(0x269)](f[_0x21ed3c(0x221)],{'variant':_0x21ed3c(0x28b),'onClick':()=>_0xc0c4af['startFollowing'](),'children':_0x21ed3c(0x24e)})]});}function Z(_0x5d31d3){const _0x754f7d=_0x534aff,{coordinator:_0x302414}=_0x5d31d3;return l[_0x754f7d(0x240)](l[_0x754f7d(0x26e)],{'children':[l[_0x754f7d(0x269)](_0x754f7d(0x294),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x754f7d(0x1cf)}),l['jsx'](f[_0x754f7d(0x221)],{'variant':_0x754f7d(0x2a1),'onClick':()=>_0x302414[_0x754f7d(0x266)](),'children':_0x754f7d(0x23e)})]});}function J(){const _0x32f35d=_0x534aff;return l['jsx'](l[_0x32f35d(0x26e)],{'children':_0x32f35d(0x23f)});}var K=Object[_0x534aff(0x1ee)],z=(_0x3c05c7,_0x4cfdfa,_0x54e480,_0x566d26)=>{const _0x1851b2=_0x534aff;for(var _0x4e46b2=_0x566d26>0x1?void 0x0:_0x566d26?K(_0x4cfdfa,_0x54e480):_0x4cfdfa,_0x34c196=_0x3c05c7[_0x1851b2(0x23d)]-0x1,_0x41eb4a;_0x34c196>=0x0;_0x34c196--)(_0x41eb4a=_0x3c05c7[_0x34c196])&&(_0x4e46b2=_0x41eb4a(_0x4e46b2)||_0x4e46b2);return _0x4e46b2;},L=(_0x475a61,_0xb53797)=>(_0x3f9122,_0x36f162)=>_0xb53797(_0x3f9122,_0x36f162,_0x475a61);exports['DesktopLiveShareController']=class extends o[_0x534aff(0x272)]{constructor(_0x1136ef,_0xe924ae){const _0x231962=_0x534aff;super(),this[_0x231962(0x255)]=_0x1136ef,this['_uiPartsService']=_0xe924ae,this[_0x231962(0x276)]();}[_0x534aff(0x276)](){const _0x22473a=_0x534aff;this[_0x22473a(0x27c)](this[_0x22473a(0x1eb)][_0x22473a(0x25a)](p[_0x22473a(0x1e3)]['HEADER_MENU'],()=>p[_0x22473a(0x1de)]($,this[_0x22473a(0x255)])));}},exports[_0x534aff(0x262)]=z([L(0x0,o[_0x534aff(0x283)](o['Injector'])),L(0x1,p[_0x534aff(0x241)])],exports['DesktopLiveShareController']);const Q=_0x534aff(0x275),w={};var X=Object[_0x534aff(0x1ee)],ee=(_0x49cb32,_0x490186,_0x4990ae,_0x5c91e5)=>{const _0x557340=_0x534aff;for(var _0x30948d=_0x5c91e5>0x1?void 0x0:_0x5c91e5?X(_0x490186,_0x4990ae):_0x490186,_0x29da8b=_0x49cb32[_0x557340(0x23d)]-0x1,_0x1526c2;_0x29da8b>=0x0;_0x29da8b--)(_0x1526c2=_0x49cb32[_0x29da8b])&&(_0x30948d=_0x1526c2(_0x30948d)||_0x30948d);return _0x30948d;},te=(_0x2992fa,_0x22c898)=>(_0x1bccb6,_0x3767e9)=>_0x22c898(_0x1bccb6,_0x3767e9,_0x2992fa);let m=class extends o[_0x534aff(0x272)]{constructor(_0xe5ad07){const _0x4170ac=_0x534aff;super(),this['_liveShareService']=_0xe5ad07,this[_0x4170ac(0x26c)]();}[_0x534aff(0x26c)](){const _0x21d704=_0x534aff;[D[_0x21d704(0x286)]['id'],D[_0x21d704(0x219)]['id'],C[_0x21d704(0x22b)]['id']][_0x21d704(0x251)](_0x31c427=>{const _0x39fdaf=_0x21d704;this[_0x39fdaf(0x27c)](this[_0x39fdaf(0x28d)][_0x39fdaf(0x26a)](_0x31c427));});}};m=ee([te(0x0,o[_0x534aff(0x283)](E))],m);var ie=Object['defineProperty'],se=Object[_0x534aff(0x1ee)],ne=(_0x59920a,_0x369798,_0x4f8fe1)=>_0x369798 in _0x59920a?ie(_0x59920a,_0x369798,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f8fe1}):_0x59920a[_0x369798]=_0x4f8fe1,re=(_0x5e3fe3,_0x54e60d,_0x1b8f69,_0x33f7f9)=>{const _0x493c48=_0x534aff;for(var _0xea105b=_0x33f7f9>0x1?void 0x0:_0x33f7f9?se(_0x54e60d,_0x1b8f69):_0x54e60d,_0x4b894a=_0x5e3fe3[_0x493c48(0x23d)]-0x1,_0x5936ca;_0x4b894a>=0x0;_0x4b894a--)(_0x5936ca=_0x5e3fe3[_0x4b894a])&&(_0xea105b=_0x5936ca(_0xea105b)||_0xea105b);return _0xea105b;},N=(_0x443d23,_0x51c6bd)=>(_0x3c7f92,_0x298fa5)=>_0x51c6bd(_0x3c7f92,_0x298fa5,_0x443d23),A=(_0x42ca15,_0x3f16f6,_0x1bf021)=>ne(_0x42ca15,typeof _0x3f16f6!=_0x534aff(0x210)?_0x3f16f6+'':_0x3f16f6,_0x1bf021);const oe=_0x534aff(0x20c);exports[_0x534aff(0x254)]=class extends o[_0x534aff(0x270)]{constructor(_0x3817dd=w,_0x2130ba,_0x31ae53){const _0x3a06a1=_0x534aff;super(),this[_0x3a06a1(0x263)]=_0x3817dd,this['_injector']=_0x2130ba,this[_0x3a06a1(0x1dc)]=_0x31ae53;const {..._0x13e74e}=o[_0x3a06a1(0x1da)]({},w,this['_config']);this[_0x3a06a1(0x1dc)][_0x3a06a1(0x204)](Q,_0x13e74e);}[_0x534aff(0x245)](){const _0x4e5716=_0x534aff;o[_0x4e5716(0x21b)](this[_0x4e5716(0x255)],o[_0x4e5716(0x1e6)]([[E],[exports['LiveShareController']],[m],[exports[_0x4e5716(0x262)]]],this['_config']['override'])),o[_0x4e5716(0x27e)](this[_0x4e5716(0x255)],[[m]]);}['onRendered'](){const _0x514fb8=_0x534aff;o[_0x514fb8(0x27e)](this['_injector'],[[exports[_0x514fb8(0x262)]]]);}},A(exports['UniverLiveSharePlugin'],_0x534aff(0x1fe),o['UniverInstanceType'][_0x534aff(0x253)]),A(exports[_0x534aff(0x254)],_0x534aff(0x234),oe),exports[_0x534aff(0x254)]=re([o[_0x534aff(0x20e)](b['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x534aff(0x238)])),N(0x2,o[_0x534aff(0x291)])],exports[_0x534aff(0x254)]),exports[_0x534aff(0x2a2)]=$,exports['LiveShareService']=E,exports[_0x534aff(0x1e1)]=u;function _0x4cad(){const _0x182e6b=['getOwnPropertyDescriptor','asObservable','stopFollowing','parse','takeUntil','button','2211exFOWR','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','sheet','useState','following','579DqqbVm','20395KwQYwc','LiveShareIcon','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','_commandDisposable','type','replace','has','shouldShareOperation','executeCommand','currentColor','setConfig','not-following','getLiveShareCoordinatorSync','_stopFollowing','from','then','getCurrentTypeOfUnit$','959hcXVGF','UNIVER_LIVE_SHARE_PLUGIN','univer-size-4','DependentOn','fill','symbol','_handleTerminate','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOffline','Present\x20this\x20document','useEffect','random','mutations','useDependency','SetScrollOperation','status$','registerDependencies','FOLLOWING','60eCRLMH','next','toDisposable','dispose','Button','end','BehaviorSubject','UniverIcon','getConfig','init','xlink:href','_status','getUnitId','tag','SetWorksheetActiveOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getValue','forwardRef','dispose$','LIVESHARE_FETCH_OPERATIONS','_stopPresenting','9rBbRPI','pipe','pluginName','find','OFFLINE','LiveShareCoordinator','Injector','subscribe','_startLiveShareCoordinator','LIVESHARE_REQUEST_HOST','DisposableCollection','length','Stop\x20presenting','You\x27are\x20offline.','jsxs','IUIPartsService','22356wCQQwp','presenter','includes','onStarting','_startPresenting','_collabSession','InsertSheetMutation','PRESENTING','_beIdle','IUniverInstanceService','SAME_OPERATION_SHARE_INTERVAL','getTypeOfUnitAdded$','Start\x20following','158726cDQtao','use','forEach','useRef','UNIVER_UNKNOWN','UniverLiveSharePlugin','_injector','_sharedOperations','2584AdFhud','current','getInitialStates','registerComponent','unsubscribe','displayName','0\x200\x2017\x2017','get','You\x27re\x20not\x20following\x20the\x20presenter','assign','634910fzpTBt','DesktopLiveShareController','_config','add','_entities','stopPresenting','reverse','svg','jsx','registerSharedOperation','live-share-icon','_init','UNIVER_SHEET','Fragment','NOT_FOLLOWING','Plugin','unitId','Disposable','offline','path','live-share.config','_mountLiveShare','children','map','url(#$1','sessionStatus$','getMemberID','disposeWithMe','evenodd','touchDependencies','throttleTime','stringify','defineProperty','http://www.w3.org/2000/svg','Inject','useObservable','getStatus','SetZoomRatioOperation','1em','params','_unitID','_startFollowing','text','memberID','_liveShareService','getLiveShareCoordinator','_fetchOperations','NEW_CHANGESETS','IConfigService','send','CommandType','div','mask','idle','OPERATION','You\x27re\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','colorChannel1','clear','IDLE','LIVESHARE_TERMINATE','parseProtocolChangeset','_handleNewChangeSets','_handleNewHost','default','LiveShare','idSuffix','_status$','presenting','LiveShareController','_presenter','defs','110692yHEAik','defIds','delete','RxDisposable','UniverInstanceType','string','You\x27re\x20presenting\x20the\x20document','_commandService','createElement','_handleOperation','LIVESHARE_OPERATION','getTypeOfUnitDisposed$','entries','attrs','complete','SessionStatus','10840DXkMEd','merge','operations','_configService','LIVESHARE_NEW_HOST','connectInjector','data','substring','LiveShareStatus','CollaborationEvent','BuiltInUIPart','toStringTag','onCommandExecuted','mergeOverrideWithDependencies','ICommandService','_handleOnline','set','tryStartPresenting','_uiPartsService','_reporters','CollaborationSessionService'];_0x4cad=function(){return _0x182e6b;};return _0x4cad();}
1
+ 'use strict';function _0x5b23(){const _0x13848f=['mergeOverrideWithDependencies','override','url(#$1','IConfigService','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','path','merge','2763AStJFD','forwardRef','CommandType','Stop\x20presenting','entries','onStarting','_handleTerminate','PRESENTING','_beIdle','_stopFollowing','dispose','useRef','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','http://www.w3.org/2000/svg','Plugin','startFollowing','substring','string','1585872wYnmmV','div','Stop\x20following','Injector','_configService','177310qbZdBh','currentColor','LIVESHARE_OPERATION','_sharedOperations','LiveShareIcon','none','_unitID','params','button','createInstance','_handleOnline','xlink:href','InsertSheetMutation','IDLE','_liveShareService','disposeWithMe','delete','parseProtocolChangeset','executeCommand','event$','attrs','then','BuiltInUIPart','40swhVGj','Module','FOLLOWING','unitId','asObservable','throttleTime','_injector','following','_stopPresenting','type','_status$','tryStartPresenting','default','useState','SetZoomRatioOperation','CollaborationEvent','colorChannel1','toDisposable','OPERATION','takeUntil','1em','shouldShareOperation','UniverInstanceType','_handleOperation','svg','pluginName','fill','requireSession','includes','registerSharedOperation','RxDisposable','DesktopLiveShareController','set','NOT_FOLLOWING','registerInitialStateReporter','18110JKUWgL','LiveShare','LIVESHARE_NEW_HOST','Fragment','evenodd','univerjs-icon\x20univerjs-icon-','has','Present\x20this\x20document','defs','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','getInitialStates','forEach','UniverIcon','pipe','You\x27are\x20offline.','registerDependencies','idSuffix','toStringTag','LIVESHARE_TERMINATE','trim','_handleOffline','jsxs','getLiveShareCoordinatorSync','subscribe','replace','map','IUniverInstanceService','_status','mutations','not-following','_uiPartsService','_startPresenting','_commandService','_univerInstanceService','LiveShareCoordinator','text','HEADER_MENU','SetWorksheetActiveOperation','LIVESHARE_FETCH_OPERATIONS','current','values','You\x27re\x20presenting\x20the\x20document','send','tag','_startFollowing','Button','UniverLiveSharePlugin','_handleNewHost','stringify','_init','ONLINE','presenter','idle','CollaborationSessionService','Inject','IUIPartsService','find','OFFLINE','getOwnPropertyDescriptor','10hvGWQx','_presenter','toString','jsx','_mountLiveShare','next','UNIVER_SHEET','_reporters','live-share.config','UniverCollaborationClientPlugin','symbol','getLiveShareCoordinator','DependentOn','getValue','onRendered','status$','createElement','_collabSessionService','ICommandService','clear','useObservable','getConfig','get','getTypeOfUnitAdded$','use','LiveShareController','getUnitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','end','displayName','_collabSession','sheet','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','_commandDisposable','offline','LiveShareStatus','_handleNewChangeSets','add','getTypeOfUnitDisposed$','reverse','stopFollowing','645920jMxsnS','154461YksEdB','useDependency','getMemberID','SessionStatus','You\x27re\x20not\x20following\x20the\x20presenter','data','defineProperty','544420uLFaPs','length','_fetchOperations','presenting','children','_entities','getStatus','UNIVER_LIVE_SHARE_PLUGIN','connectInjector','parse','Subject','operations','2991xgOJIf','_startLiveShareCoordinator','mask','setConfig','0\x200\x2017\x2017','You\x27re\x20following\x20the\x20presenter','Start\x20following','complete','Disposable','random','defIds'];_0x5b23=function(){return _0x13848f;};return _0x5b23();}const _0x5e42ed=_0x33c8;(function(_0x258b1c,_0x4c98e1){const _0x1dbd88=_0x33c8,_0x4f0137=_0x258b1c();while(!![]){try{const _0x568def=parseInt(_0x1dbd88(0x10e))/0x1+parseInt(_0x1dbd88(0x162))/0x2*(parseInt(_0x1dbd88(0x121))/0x3)+parseInt(_0x1dbd88(0x115))/0x4*(-parseInt(_0x1dbd88(0xe3))/0x5)+-parseInt(_0x1dbd88(0x146))/0x6+parseInt(_0x1dbd88(0x14b))/0x7+-parseInt(_0x1dbd88(0x10d))/0x8+parseInt(_0x1dbd88(0x134))/0x9*(parseInt(_0x1dbd88(0x185))/0xa);if(_0x568def===_0x4c98e1)break;else _0x4f0137['push'](_0x4f0137['shift']());}catch(_0x4f4864){_0x4f0137['push'](_0x4f0137['shift']());}}}(_0x5b23,0x21cce));var T=Object[_0x5e42ed(0x114)],U=(_0x24e95d,_0x47afd5,_0x2081b8)=>_0x47afd5 in _0x24e95d?T(_0x24e95d,_0x47afd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2081b8}):_0x24e95d[_0x47afd5]=_0x2081b8,_=(_0xf7ea68,_0xece469,_0x12607f)=>U(_0xf7ea68,typeof _0xece469!=_0x5e42ed(0xed)?_0xece469+'':_0xece469,_0x12607f);Object[_0x5e42ed(0x114)](exports,Symbol[_0x5e42ed(0x196)],{'value':_0x5e42ed(0x163)});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:_0x10ccb5,..._0x287716}){const _0x37de8e=_0x5e42ed,{icon:_0x4162da,id:_0x1983c5,className:_0x3214b2,extend:_0x346b62,..._0x1beafd}=_0x287716,_0x19da49=(_0x37de8e(0x18a)+_0x1983c5+'\x20'+(_0x3214b2||''))[_0x37de8e(0x198)](),_0x586fd1=v[_0x37de8e(0x13f)]('_'+H());return j(_0x4162da,''+_0x1983c5,{'defIds':_0x4162da[_0x37de8e(0x12b)],'idSuffix':_0x586fd1['current']},{'ref':_0x10ccb5,'className':_0x19da49,..._0x1beafd},_0x346b62);}function j(_0x3f8709,_0x626f89,_0x5954c2,_0x188de7,_0x5d6224){const _0x2d405c=_0x5e42ed;return v['createElement'](_0x3f8709[_0x2d405c(0x1b0)],{'key':_0x626f89,...y(_0x3f8709,_0x5954c2,_0x5d6224),..._0x188de7},(F(_0x3f8709,_0x5954c2)[_0x2d405c(0x119)]||[])[_0x2d405c(0x19e)]((_0x5ced9a,_0xe381c0)=>j(_0x5ced9a,_0x626f89+'-'+_0x3f8709[_0x2d405c(0x1b0)]+'-'+_0xe381c0,_0x5954c2,void 0x0,_0x5d6224)));}function y(_0x3548b2,_0x503fbd,_0x224aeb){const _0x568e1a=_0x5e42ed,_0x43cbde={..._0x3548b2[_0x568e1a(0x15f)]};_0x224aeb!=null&&_0x224aeb[_0x568e1a(0x172)]&&_0x43cbde['fill']==='colorChannel1'&&(_0x43cbde[_0x568e1a(0x17c)]=_0x224aeb[_0x568e1a(0x172)]),_0x3548b2[_0x568e1a(0x1b0)]===_0x568e1a(0x123)&&_0x43cbde['id']&&(_0x43cbde['id']=_0x43cbde['id']+_0x503fbd[_0x568e1a(0x195)]),Object[_0x568e1a(0x138)](_0x43cbde)[_0x568e1a(0x190)](([_0xe23272,_0x427cce])=>{const _0x394e46=_0x568e1a;_0xe23272===_0x394e46(0x123)&&typeof _0x427cce==_0x394e46(0x145)&&(_0x43cbde[_0xe23272]=_0x427cce['replace'](/url\(#(.*)\)/,_0x394e46(0x12e)+_0x503fbd[_0x394e46(0x195)]+')'));});const {defIds:_0x332c4e}=_0x503fbd;return!_0x332c4e||_0x332c4e[_0x568e1a(0x116)]===0x0||(_0x3548b2[_0x568e1a(0x1b0)]===_0x568e1a(0xfb)&&_0x43cbde[_0x568e1a(0x156)]&&(_0x43cbde['xlink:href']=_0x43cbde['xlink:href']+_0x503fbd['idSuffix']),Object[_0x568e1a(0x138)](_0x43cbde)[_0x568e1a(0x190)](([_0x4a15b5,_0x43ac9b])=>{const _0x552e0d=_0x568e1a;typeof _0x43ac9b==_0x552e0d(0x145)&&(_0x43cbde[_0x4a15b5]=_0x43ac9b[_0x552e0d(0x19d)](/url\(#(.*)\)/,_0x552e0d(0x12e)+_0x503fbd[_0x552e0d(0x195)]+')'));})),_0x43cbde;}function F(_0x5b0a70,_0x73502c){const _0x570997=_0x5e42ed;var _0x812c86;const {defIds:_0x2f003a}=_0x73502c;return!_0x2f003a||_0x2f003a[_0x570997(0x116)]===0x0?_0x5b0a70:_0x5b0a70[_0x570997(0x1b0)]===_0x570997(0x18d)&&((_0x812c86=_0x5b0a70[_0x570997(0x119)])!=null&&_0x812c86[_0x570997(0x116)])?{..._0x5b0a70,'children':_0x5b0a70[_0x570997(0x119)]['map'](_0x3bf9b9=>typeof _0x3bf9b9[_0x570997(0x15f)]['id']==_0x570997(0x145)&&_0x2f003a&&_0x2f003a[_0x570997(0x17e)](_0x3bf9b9[_0x570997(0x15f)]['id'])?{..._0x3bf9b9,'attrs':{..._0x3bf9b9[_0x570997(0x15f)],'id':_0x3bf9b9[_0x570997(0x15f)]['id']+_0x73502c[_0x570997(0x195)]}}:_0x3bf9b9)}:_0x5b0a70;}function H(){const _0x5943aa=_0x5e42ed;return Math[_0x5943aa(0x12a)]()[_0x5943aa(0xe5)](0x24)[_0x5943aa(0x144)](0x2,0x8);}x[_0x5e42ed(0x100)]=_0x5e42ed(0x191);const V={'tag':_0x5e42ed(0x17a),'attrs':{'xmlns':_0x5e42ed(0x141),'fill':_0x5e42ed(0x150),'viewBox':_0x5e42ed(0x125),'width':_0x5e42ed(0x176),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x5e42ed(0x132),'attrs':{'fill':_0x5e42ed(0x14c),'d':_0x5e42ed(0x18e),'fillRule':_0x5e42ed(0x189),'clipRule':_0x5e42ed(0x189)}}]},R=v[_0x5e42ed(0x135)](function(_0x500da4,_0x197184){const _0x4090ec=_0x5e42ed;return v[_0x4090ec(0xf3)](x,Object['assign']({},_0x500da4,{'id':'live-share-icon','ref':_0x197184,'icon':V}));});R[_0x5e42ed(0x100)]=_0x5e42ed(0x14f);class E extends o[_0x5e42ed(0x129)]{constructor(){const _0x35b72e=_0x5e42ed;super(...arguments),_(this,_0x35b72e(0x14e),new Set()),_(this,'_reporters',new Set());}[_0x5e42ed(0x17f)](_0x42822f){const _0x56e896=_0x5e42ed;return this[_0x56e896(0x14e)][_0x56e896(0x109)](_0x42822f),o[_0x56e896(0x173)](()=>this['_sharedOperations'][_0x56e896(0x15b)](_0x42822f));}[_0x5e42ed(0x184)](_0x30d54e){const _0x3a199b=_0x5e42ed;return this[_0x3a199b(0xea)][_0x3a199b(0x109)](_0x30d54e),o[_0x3a199b(0x173)](()=>this[_0x3a199b(0xea)][_0x3a199b(0x15b)](_0x30d54e));}[_0x5e42ed(0x177)](_0x5c0049){const _0x5ca4ed=_0x5e42ed;return this[_0x5ca4ed(0x14e)]['has'](_0x5c0049);}[_0x5e42ed(0x18f)](_0x3e3d54){const _0x10ecf0=_0x5e42ed;return Array['from'](this[_0x10ecf0(0xea)])[_0x10ecf0(0x19e)](_0x1f7b9c=>_0x1f7b9c(_0x3e3d54));}}var M=Object[_0x5e42ed(0xe2)],P=(_0x48bc17,_0x4ab917,_0x3ec673,_0x3f5407)=>{const _0x263a45=_0x5e42ed;for(var _0x45fdc3=_0x3f5407>0x1?void 0x0:_0x3f5407?M(_0x4ab917,_0x3ec673):_0x4ab917,_0x42d0cf=_0x48bc17[_0x263a45(0x116)]-0x1,_0x50608a;_0x42d0cf>=0x0;_0x42d0cf--)(_0x50608a=_0x48bc17[_0x42d0cf])&&(_0x45fdc3=_0x50608a(_0x45fdc3)||_0x45fdc3);return _0x45fdc3;},S=(_0x968fff,_0x1b8aba)=>(_0x2eee97,_0x452f34)=>_0x1b8aba(_0x2eee97,_0x452f34,_0x968fff);exports[_0x5e42ed(0xfc)]=class extends o[_0x5e42ed(0x180)]{constructor(_0x4f5f77,_0x2e61a0,_0x24366e){const _0x18b683=_0x5e42ed;super(),_(this,_0x18b683(0x11a),new Map()),(this['_univerInstanceService']=_0x4f5f77,this[_0x18b683(0x168)]=_0x2e61a0,this[_0x18b683(0xf4)]=_0x24366e,this['_init']());}async[_0x5e42ed(0xee)](_0x577eac){const _0x125e77=_0x5e42ed;return this[_0x125e77(0x11a)][_0x125e77(0x18b)](_0x577eac)||await this['_startLiveShareCoordinator'](_0x577eac),this['_entities'][_0x125e77(0xf9)](_0x577eac);}[_0x5e42ed(0x19b)](_0x31e9f2){const _0x3e60a7=_0x5e42ed;var _0x11ef8f;return(_0x11ef8f=this[_0x3e60a7(0x11a)][_0x3e60a7(0xf9)](_0x31e9f2))!=null?_0x11ef8f:null;}[_0x5e42ed(0x1b6)](){const _0x4be73b=_0x5e42ed;this[_0x4be73b(0x1a6)][_0x4be73b(0xfa)](o['UniverInstanceType'][_0x4be73b(0xe9)])[_0x4be73b(0x192)](I[_0x4be73b(0x175)](this['dispose$']))[_0x4be73b(0x19c)](async _0x1ffc6e=>{const _0x2ed858=_0x4be73b,_0x3dd63b=_0x1ffc6e[_0x2ed858(0xfd)]();this[_0x2ed858(0x11a)][_0x2ed858(0x18b)](_0x3dd63b)||this[_0x2ed858(0x122)](_0x3dd63b);}),this['_univerInstanceService'][_0x4be73b(0x10a)](o[_0x4be73b(0x178)][_0x4be73b(0xe9)])['pipe'](I[_0x4be73b(0x175)](this['dispose$']))[_0x4be73b(0x19c)](_0x2d7ed7=>{const _0x6d3c52=_0x4be73b,_0xf2de7c=_0x2d7ed7[_0x6d3c52(0xfd)](),_0x20f9b9=this['_entities'][_0x6d3c52(0xf9)](_0xf2de7c);_0x20f9b9==null||_0x20f9b9[_0x6d3c52(0x13e)]();});}async[_0x5e42ed(0x122)](_0xdfdc1d){const _0x413e18=_0x5e42ed,_0x54078f=await this['_collabSessionService'][_0x413e18(0x17d)](_0xdfdc1d),_0xa03193=this[_0x413e18(0x168)][_0x413e18(0x154)](exports[_0x413e18(0x1a7)],_0xdfdc1d,_0x54078f);return _0xa03193['init'](),this[_0x413e18(0x11a)][_0x413e18(0x182)](_0xdfdc1d,_0xa03193),_0xa03193;}},exports[_0x5e42ed(0xfc)]=P([S(0x0,o[_0x5e42ed(0x19f)]),S(0x1,o[_0x5e42ed(0xde)](o[_0x5e42ed(0x149)])),S(0x2,o[_0x5e42ed(0xde)](b[_0x5e42ed(0xdd)]))],exports['LiveShareController']);var u=(_0x87fa61=>(_0x87fa61['OFFLINE']=_0x5e42ed(0x106),_0x87fa61[_0x5e42ed(0x158)]=_0x5e42ed(0x1b9),_0x87fa61[_0x5e42ed(0x164)]=_0x5e42ed(0x169),_0x87fa61['NOT_FOLLOWING']=_0x5e42ed(0x1a2),_0x87fa61[_0x5e42ed(0x13b)]=_0x5e42ed(0x118),_0x87fa61))(u||{});const k=_0x5e42ed(0x103),q=0xc8;exports[_0x5e42ed(0x1a7)]=class extends o[_0x5e42ed(0x180)]{constructor(_0x4fa179,_0x57b14e,_0x319ca8,_0x2025cd,_0x238112){const _0x39f265=_0x5e42ed;super(),_(this,_0x39f265(0x16c),new O['BehaviorSubject'](_0x39f265(0x1b9))),_(this,_0x39f265(0xf2),this['_status$'][_0x39f265(0x166)]()),_(this,'_init',!0x1),_(this,_0x39f265(0x105),null),_(this,_0x39f265(0xe4),null),(this['_unitID']=_0x4fa179,this[_0x39f265(0x101)]=_0x57b14e,this[_0x39f265(0x14a)]=_0x319ca8,this[_0x39f265(0x159)]=_0x2025cd,this[_0x39f265(0x1a5)]=_0x238112);}get['_status'](){const _0x5f9998=_0x5e42ed;return this[_0x5f9998(0x16c)][_0x5f9998(0xf0)]();}['dispose'](){const _0x167d29=_0x5e42ed;var _0x41e36f;(_0x41e36f=this[_0x167d29(0x105)])==null||_0x41e36f[_0x167d29(0x13e)](),this[_0x167d29(0x16c)]['next']('idle'),this['_status$'][_0x167d29(0x128)]();}[_0x5e42ed(0x11b)](){const _0x59f413=_0x5e42ed;return this[_0x59f413(0x1a0)];}['init'](){const _0x5d95b1=_0x5e42ed;this[_0x5d95b1(0x1b6)]||(this[_0x5d95b1(0x1b6)]=!0x0,this[_0x5d95b1(0x101)]['sessionStatus$'][_0x5d95b1(0x192)](I[_0x5d95b1(0x175)](this[_0x5d95b1(0x130)]))['subscribe'](_0x11b640=>{const _0x307f7d=_0x5d95b1;switch(_0x11b640){case b[_0x307f7d(0x111)][_0x307f7d(0xe1)]:this[_0x307f7d(0x199)]();break;case b[_0x307f7d(0x111)][_0x307f7d(0x1b7)]:this[_0x307f7d(0x155)]();break;}}),this['_collabSession'][_0x5d95b1(0x15e)][_0x5d95b1(0x192)](I[_0x5d95b1(0x175)](this[_0x5d95b1(0x130)]))['subscribe'](_0x343f3d=>{const _0xba9a45=_0x5d95b1,{eventID:_0x125482}=_0x343f3d;switch(_0x125482){case d[_0xba9a45(0x171)][_0xba9a45(0x187)]:this[_0xba9a45(0x1b4)](_0x343f3d);break;case d[_0xba9a45(0x171)]['LIVESHARE_OPERATION']:this[_0xba9a45(0x179)](_0x343f3d);break;case d[_0xba9a45(0x171)][_0xba9a45(0x197)]:this[_0xba9a45(0x13a)]();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x343f3d);break;}}));}[_0x5e42ed(0x16d)](){const _0x126f33=_0x5e42ed;this[_0x126f33(0x101)][_0x126f33(0x1af)]({'eventID':d[_0x126f33(0x171)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x126f33(0x151)],'userID':this[_0x126f33(0x101)][_0x126f33(0x110)]()}},this[_0x126f33(0x151)]);}['stopPresenting'](){const _0x2f532c=_0x5e42ed;this['_status']===_0x2f532c(0x118)&&(this[_0x2f532c(0x16c)]['next'](_0x2f532c(0x1b9)),this[_0x2f532c(0x101)][_0x2f532c(0x1af)]({'eventID':d[_0x2f532c(0x171)][_0x2f532c(0x197)],'data':{'unitID':this[_0x2f532c(0x151)]}},this[_0x2f532c(0x151)]));}[_0x5e42ed(0x143)](){const _0x39af1e=_0x5e42ed;this['_status']===_0x39af1e(0x1a2)&&(this[_0x39af1e(0x16c)][_0x39af1e(0xe8)](_0x39af1e(0x169)),this['_startFollowing']());}['stopFollowing'](){const _0x3a241a=_0x5e42ed;this[_0x3a241a(0x1a0)]==='following'&&this[_0x3a241a(0x13d)]();}[_0x5e42ed(0x1b4)](_0x54b7ba){const _0x17cc56=_0x5e42ed,{presenter:_0xa563c0}=_0x54b7ba[_0x17cc56(0x113)],_0x348547=this[_0x17cc56(0x101)]['getMemberID']();this[_0x17cc56(0xe4)]=_0xa563c0,_0xa563c0===_0x348547?(this[_0x17cc56(0x13d)](),this['_startPresenting']()):this[_0x17cc56(0x1a0)]!==_0x17cc56(0x1a2)&&(this[_0x17cc56(0x16a)](),this[_0x17cc56(0x1b1)]());}[_0x5e42ed(0x117)](){const _0x5ac5c7=_0x5e42ed,_0x488580={'eventID':d[_0x5ac5c7(0x171)][_0x5ac5c7(0x1ab)]};this[_0x5ac5c7(0x101)][_0x5ac5c7(0x1af)](_0x488580,this['_unitID']);}[_0x5e42ed(0x13a)](){const _0x250b12=_0x5e42ed;this[_0x250b12(0xe4)]=null,this[_0x250b12(0x1a0)]!==_0x250b12(0x118)&&this['_beIdle']();}[_0x5e42ed(0x108)](_0x35b3a1){const _0x47c4b3=_0x5e42ed;if(this[_0x47c4b3(0x1a0)]===_0x47c4b3(0x169)&&this[_0x47c4b3(0xe4)]===_0x35b3a1['data']['memberID']){const _0x2cd85b=d[_0x47c4b3(0x15c)](_0x35b3a1['data'])[_0x47c4b3(0x1a1)][_0x47c4b3(0x10b)]()[_0x47c4b3(0xe0)](_0xb16f8a=>_0xb16f8a['id']===C[_0x47c4b3(0x157)]['id']);if(_0x2cd85b){const _0x3a059e=_0x2cd85b[_0x47c4b3(0x152)][_0x47c4b3(0x165)],_0x1c82fd=_0x2cd85b[_0x47c4b3(0x152)][_0x47c4b3(0x102)]['id'];setTimeout(()=>{const _0x32aedb=_0x47c4b3;this['_commandService'][_0x32aedb(0x15d)](C[_0x32aedb(0x1aa)]['id'],{'unitId':_0x3a059e,'subUnitId':_0x1c82fd},{'fromCollab':!0x0});});}}}[_0x5e42ed(0x1a4)](){const _0x49b8dd=_0x5e42ed;this[_0x49b8dd(0x16c)]['next'](_0x49b8dd(0x118));const _0x13bf08=new Map(),_0x25872d=this[_0x49b8dd(0x105)]=new o['DisposableCollection']();_0x25872d[_0x49b8dd(0x109)](o['toDisposable'](()=>{const _0x3da12f=_0x49b8dd;_0x13bf08[_0x3da12f(0x190)](_0x241367=>_0x241367[_0x3da12f(0x128)]()),_0x13bf08[_0x3da12f(0xf6)]();})),_0x25872d[_0x49b8dd(0x109)](this[_0x49b8dd(0x1a5)]['onCommandExecuted'](_0x36fd1e=>{const _0x39dcc7=_0x49b8dd;var _0x2b4ad7;if(_0x36fd1e[_0x39dcc7(0x16b)]!==o[_0x39dcc7(0x136)][_0x39dcc7(0x174)]||!this[_0x39dcc7(0x159)][_0x39dcc7(0x177)](_0x36fd1e['id']))return;const {id:_0x522d40}=_0x36fd1e;let _0x59d224;_0x13bf08[_0x39dcc7(0x18b)](_0x522d40)?_0x59d224=_0x13bf08['get'](_0x522d40):(_0x59d224=new O[(_0x39dcc7(0x11f))](),_0x13bf08['set'](_0x522d40,_0x59d224),_0x59d224[_0x39dcc7(0x192)](I[_0x39dcc7(0x167)]((_0x2b4ad7=this[_0x39dcc7(0x14a)][_0x39dcc7(0xf8)](k))!=null?_0x2b4ad7:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x39dcc7(0x19c)](_0x49ae11=>{const _0x1d2b28=_0x39dcc7;this['_collabSession'][_0x1d2b28(0x1af)]({'eventID':d['CollaborationEvent'][_0x1d2b28(0x14d)],'data':{'unitID':this['_unitID'],'operations':{[_0x49ae11['id']]:{'id':_0x49ae11['id'],'params':JSON[_0x1d2b28(0x1b5)](_0x49ae11[_0x1d2b28(0x152)])}}}},this[_0x1d2b28(0x151)]);})),_0x59d224[_0x39dcc7(0xe8)](_0x36fd1e);})),this['_liveShareService'][_0x49b8dd(0x18f)](this[_0x49b8dd(0x151)])[_0x49b8dd(0x190)](_0x11afd2=>this['_collabSession']['send']({'eventID':d[_0x49b8dd(0x171)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x49b8dd(0x151)],'operations':{[_0x11afd2['id']]:{'id':_0x11afd2['id'],'params':JSON[_0x49b8dd(0x1b5)](_0x11afd2[_0x49b8dd(0x152)])}}}},this[_0x49b8dd(0x151)]));}['_stopPresenting'](){const _0x3ee11c=_0x5e42ed;var _0x3a72f5;this[_0x3ee11c(0x16c)]['next'](_0x3ee11c(0x1b9)),(_0x3a72f5=this[_0x3ee11c(0x105)])==null||_0x3a72f5['dispose'](),this[_0x3ee11c(0x105)]=null;}[_0x5e42ed(0x1b1)](){const _0x3572d3=_0x5e42ed;var _0x1c7276;(_0x1c7276=this[_0x3572d3(0x105)])==null||_0x1c7276[_0x3572d3(0x13e)](),this[_0x3572d3(0x16c)][_0x3572d3(0xe8)](_0x3572d3(0x169));}[_0x5e42ed(0x13c)](){const _0x44c4a2=_0x5e42ed;var _0x1d91d4;this['_status$'][_0x44c4a2(0xe8)](_0x44c4a2(0x1b9)),(_0x1d91d4=this[_0x44c4a2(0x105)])==null||_0x1d91d4['dispose'](),this[_0x44c4a2(0x105)]=null;}['_stopFollowing'](){const _0x1fa52b=_0x5e42ed;var _0x5cce69;this[_0x1fa52b(0x16c)][_0x1fa52b(0xe8)](_0x1fa52b(0x1a2)),(_0x5cce69=this['_commandDisposable'])==null||_0x5cce69[_0x1fa52b(0x13e)]();}[_0x5e42ed(0x179)](_0x3a8afb){const _0x2a0d45=_0x5e42ed;if([_0x2a0d45(0x118),_0x2a0d45(0x1a2),_0x2a0d45(0x106)][_0x2a0d45(0x17e)](this[_0x2a0d45(0x1a0)])||!_0x3a8afb[_0x2a0d45(0x113)][_0x2a0d45(0x1b8)]||_0x3a8afb[_0x2a0d45(0x113)][_0x2a0d45(0x1b8)]===this['_collabSession'][_0x2a0d45(0x110)]())return;this[_0x2a0d45(0x1a0)]===_0x2a0d45(0x1b9)&&this[_0x2a0d45(0x1b1)]();const _0x19de82=_0x3a8afb[_0x2a0d45(0x113)][_0x2a0d45(0x120)];Object[_0x2a0d45(0x1ad)](_0x19de82)['forEach'](_0x8983a0=>{const _0x419808=_0x2a0d45;this[_0x419808(0x1a5)][_0x419808(0x15d)](_0x8983a0['id'],_0x8983a0[_0x419808(0x152)]?JSON[_0x419808(0x11e)](_0x8983a0['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x33fb09=_0x5e42ed;var _0x4853f9;this[_0x33fb09(0x16c)]['next'](_0x33fb09(0x106)),(_0x4853f9=this['_commandDisposable'])==null||_0x4853f9['dispose']();}[_0x5e42ed(0x155)](){const _0x7c13b5=_0x5e42ed;this[_0x7c13b5(0x16c)]['next'](_0x7c13b5(0x1b9)),this[_0x7c13b5(0x117)]();}},exports[_0x5e42ed(0x1a7)]=P([S(0x2,o[_0x5e42ed(0x12f)]),S(0x3,o[_0x5e42ed(0xde)](E)),S(0x4,o[_0x5e42ed(0xf5)])],exports[_0x5e42ed(0x1a7)]);function $(){const _0x5c9acd=_0x5e42ed,_0x50ba8f=p[_0x5c9acd(0x10f)](exports[_0x5c9acd(0xfc)]),_0x5971b2=p['useDependency'](o[_0x5c9acd(0x19f)]),_0x135ca4=p[_0x5c9acd(0xf7)](()=>_0x5971b2['getCurrentTypeOfUnit$'](o[_0x5c9acd(0x178)][_0x5c9acd(0xe9)]),void 0x0,!0x1,[]),[_0x41dd96,_0x543358]=v[_0x5c9acd(0x16f)](null),[_0x198c7d,_0x1cc768]=v[_0x5c9acd(0x16f)](u[_0x5c9acd(0x158)]),_0x2fe516=v['useRef'](null);return v['useEffect'](()=>(_0x135ca4&&_0x50ba8f[_0x5c9acd(0xee)](_0x135ca4['getUnitId']())[_0x5c9acd(0x160)](_0x3c0075=>{const _0x59f4c5=_0x5c9acd;_0x543358(_0x3c0075),_0x2fe516[_0x59f4c5(0x1ac)]=_0x3c0075[_0x59f4c5(0xf2)][_0x59f4c5(0x19c)](_0x1f4a29=>{_0x1cc768(_0x1f4a29);});}),()=>{const _0x565f6b=_0x5c9acd;var _0xc96928;(_0xc96928=_0x2fe516[_0x565f6b(0x1ac)])==null||_0xc96928['unsubscribe'](),_0x2fe516[_0x565f6b(0x1ac)]=null;}),[_0x135ca4,_0x50ba8f]),_0x41dd96?l[_0x5c9acd(0xe6)](f['Dropdown'],{'align':_0x5c9acd(0xff),'disabled':_0x198c7d===u['OFFLINE'],'className':_0x5c9acd(0x140),'overlay':l[_0x5c9acd(0xe6)](W,{'status':_0x198c7d,'coordinator':_0x41dd96}),'children':l[_0x5c9acd(0xe6)]('button',{'className':f['clsx'](_0x5c9acd(0xfe),{'univer-cursor-not-allowed':_0x198c7d===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x198c7d!==u[_0x5c9acd(0xe1)]}),'type':_0x5c9acd(0x153),'children':l[_0x5c9acd(0xe6)](R,{'className':_0x5c9acd(0x104)})})}):null;}function W(_0xfcddb3){const _0x3d0fff=_0x5e42ed,{status:_0x4d1b30,coordinator:_0x36de9e}=_0xfcddb3;switch(_0x4d1b30){case u[_0x3d0fff(0x158)]:return l[_0x3d0fff(0xe6)](G,{'coordinator':_0x36de9e});case u[_0x3d0fff(0x164)]:return l[_0x3d0fff(0xe6)](B,{'coordinator':_0x36de9e});case u[_0x3d0fff(0x183)]:return l[_0x3d0fff(0xe6)](Y,{'coordinator':_0x36de9e});case u['OFFLINE']:return l['jsx'](J,{});case u[_0x3d0fff(0x13b)]:return l[_0x3d0fff(0xe6)](Z,{'coordinator':_0x36de9e});default:return null;}}function G(_0x498d95){const _0x1509b5=_0x5e42ed,{coordinator:_0x23b0d5}=_0x498d95;return l[_0x1509b5(0x19a)](l[_0x1509b5(0x188)],{'children':[l[_0x1509b5(0xe6)](_0x1509b5(0x147),{'className':_0x1509b5(0x131),'children':_0x1509b5(0x18c)}),l[_0x1509b5(0xe6)](f['Button'],{'onClick':()=>_0x23b0d5[_0x1509b5(0x16d)](),'children':'Start'})]});}function B(_0x3c4363){const _0x46eb73=_0x5e42ed,{coordinator:_0x106a5b}=_0x3c4363;return l['jsxs'](l[_0x46eb73(0x188)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x46eb73(0x126)}),l['jsx'](f[_0x46eb73(0x1b2)],{'onClick':()=>_0x106a5b[_0x46eb73(0x10c)](),'children':_0x46eb73(0x148)})]});}function Y(_0x47eabf){const _0x1b11e9=_0x5e42ed,{coordinator:_0x3423d7}=_0x47eabf;return l[_0x1b11e9(0x19a)](l[_0x1b11e9(0x188)],{'children':[l['jsx'](_0x1b11e9(0x147),{'className':_0x1b11e9(0x131),'children':_0x1b11e9(0x112)}),l[_0x1b11e9(0xe6)](f[_0x1b11e9(0x1b2)],{'variant':_0x1b11e9(0x1a8),'onClick':()=>_0x3423d7[_0x1b11e9(0x143)](),'children':_0x1b11e9(0x127)})]});}function Z(_0x3158fe){const _0x1f4313=_0x5e42ed,{coordinator:_0xc7927f}=_0x3158fe;return l['jsxs'](l[_0x1f4313(0x188)],{'children':[l[_0x1f4313(0xe6)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1f4313(0x1ae)}),l[_0x1f4313(0xe6)](f[_0x1f4313(0x1b2)],{'variant':_0x1f4313(0x16e),'onClick':()=>_0xc7927f['stopPresenting'](),'children':_0x1f4313(0x137)})]});}function J(){const _0x326975=_0x5e42ed;return l[_0x326975(0xe6)](l['Fragment'],{'children':_0x326975(0x193)});}var K=Object[_0x5e42ed(0xe2)],z=(_0x28418f,_0x2f3ed7,_0x481ed3,_0x176c8e)=>{const _0x3dcfc1=_0x5e42ed;for(var _0x2048ef=_0x176c8e>0x1?void 0x0:_0x176c8e?K(_0x2f3ed7,_0x481ed3):_0x2f3ed7,_0x4582f7=_0x28418f[_0x3dcfc1(0x116)]-0x1,_0x4a7aba;_0x4582f7>=0x0;_0x4582f7--)(_0x4a7aba=_0x28418f[_0x4582f7])&&(_0x2048ef=_0x4a7aba(_0x2048ef)||_0x2048ef);return _0x2048ef;},L=(_0x2fb81c,_0x1767c1)=>(_0x17ade8,_0x51b7af)=>_0x1767c1(_0x17ade8,_0x51b7af,_0x2fb81c);exports[_0x5e42ed(0x181)]=class extends o[_0x5e42ed(0x129)]{constructor(_0x13e425,_0x5da36d){const _0x5889c9=_0x5e42ed;super(),this[_0x5889c9(0x168)]=_0x13e425,this[_0x5889c9(0x1a3)]=_0x5da36d,this[_0x5889c9(0xe7)]();}[_0x5e42ed(0xe7)](){const _0x54e7fa=_0x5e42ed;this[_0x54e7fa(0x15a)](this['_uiPartsService']['registerComponent'](p[_0x54e7fa(0x161)][_0x54e7fa(0x1a9)],()=>p[_0x54e7fa(0x11d)]($,this[_0x54e7fa(0x168)])));}},exports[_0x5e42ed(0x181)]=z([L(0x0,o[_0x5e42ed(0xde)](o[_0x5e42ed(0x149)])),L(0x1,p[_0x5e42ed(0xdf)])],exports['DesktopLiveShareController']);const Q=_0x5e42ed(0xeb),w={};var X=Object[_0x5e42ed(0xe2)],ee=(_0x404471,_0xe26246,_0x28d529,_0x4e7230)=>{const _0xdff21f=_0x5e42ed;for(var _0x501c44=_0x4e7230>0x1?void 0x0:_0x4e7230?X(_0xe26246,_0x28d529):_0xe26246,_0x3ebd4e=_0x404471[_0xdff21f(0x116)]-0x1,_0x186a60;_0x3ebd4e>=0x0;_0x3ebd4e--)(_0x186a60=_0x404471[_0x3ebd4e])&&(_0x501c44=_0x186a60(_0x501c44)||_0x501c44);return _0x501c44;},te=(_0x4f5ffd,_0x589fcd)=>(_0x1def11,_0x148492)=>_0x589fcd(_0x1def11,_0x148492,_0x4f5ffd);let m=class extends o[_0x5e42ed(0x129)]{constructor(_0x4458fa){super(),this['_liveShareService']=_0x4458fa,this['_init']();}[_0x5e42ed(0x1b6)](){const _0x4553af=_0x5e42ed;[D[_0x4553af(0x170)]['id'],D['SetScrollOperation']['id'],C[_0x4553af(0x1aa)]['id']]['forEach'](_0x61779b=>{const _0x544d8c=_0x4553af;this[_0x544d8c(0x15a)](this[_0x544d8c(0x159)][_0x544d8c(0x17f)](_0x61779b));});}};m=ee([te(0x0,o[_0x5e42ed(0xde)](E))],m);var ie=Object['defineProperty'],se=Object[_0x5e42ed(0xe2)],ne=(_0x3bfd8a,_0x4d50d8,_0x111af8)=>_0x4d50d8 in _0x3bfd8a?ie(_0x3bfd8a,_0x4d50d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x111af8}):_0x3bfd8a[_0x4d50d8]=_0x111af8,re=(_0x5b6af5,_0x1d5f69,_0x4a24e2,_0x5281b7)=>{const _0x1ecb97=_0x5e42ed;for(var _0x12d659=_0x5281b7>0x1?void 0x0:_0x5281b7?se(_0x1d5f69,_0x4a24e2):_0x1d5f69,_0x319eb7=_0x5b6af5[_0x1ecb97(0x116)]-0x1,_0x4718cb;_0x319eb7>=0x0;_0x319eb7--)(_0x4718cb=_0x5b6af5[_0x319eb7])&&(_0x12d659=_0x4718cb(_0x12d659)||_0x12d659);return _0x12d659;},N=(_0x5dd489,_0x16873e)=>(_0x455428,_0xe5e6f5)=>_0x16873e(_0x455428,_0xe5e6f5,_0x5dd489),A=(_0x4223ae,_0x3d7ff4,_0x44d615)=>ne(_0x4223ae,typeof _0x3d7ff4!=_0x5e42ed(0xed)?_0x3d7ff4+'':_0x3d7ff4,_0x44d615);function _0x33c8(_0x265bbd,_0x464421){_0x265bbd=_0x265bbd-0xdd;const _0x5b2309=_0x5b23();let _0x33c865=_0x5b2309[_0x265bbd];return _0x33c865;}const oe=_0x5e42ed(0x11c);exports[_0x5e42ed(0x1b3)]=class extends o[_0x5e42ed(0x142)]{constructor(_0xe92fb6=w,_0x593076,_0x3143be){const _0x386a89=_0x5e42ed;super(),this['_config']=_0xe92fb6,this[_0x386a89(0x168)]=_0x593076,this[_0x386a89(0x14a)]=_0x3143be;const {..._0x3fea3d}=o[_0x386a89(0x133)]({},w,this['_config']);this['_configService'][_0x386a89(0x124)](Q,_0x3fea3d);}[_0x5e42ed(0x139)](){const _0x5d0348=_0x5e42ed;o[_0x5d0348(0x194)](this['_injector'],o[_0x5d0348(0x12c)]([[E],[exports[_0x5d0348(0xfc)]],[m],[exports['DesktopLiveShareController']]],this['_config'][_0x5d0348(0x12d)])),o['touchDependencies'](this[_0x5d0348(0x168)],[[m]]);}[_0x5e42ed(0xf1)](){const _0x82e74e=_0x5e42ed;o['touchDependencies'](this[_0x82e74e(0x168)],[[exports[_0x82e74e(0x181)]]]);}},A(exports[_0x5e42ed(0x1b3)],_0x5e42ed(0x16b),o[_0x5e42ed(0x178)]['UNIVER_UNKNOWN']),A(exports[_0x5e42ed(0x1b3)],_0x5e42ed(0x17b),oe),exports[_0x5e42ed(0x1b3)]=re([o[_0x5e42ed(0xef)](b[_0x5e42ed(0xec)]),N(0x1,o[_0x5e42ed(0xde)](o[_0x5e42ed(0x149)])),N(0x2,o[_0x5e42ed(0x12f)])],exports[_0x5e42ed(0x1b3)]),exports[_0x5e42ed(0x186)]=$,exports['LiveShareService']=E,exports[_0x5e42ed(0x107)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x2d98(_0x2553c3,_0x2b8c92){_0x2553c3=_0x2553c3-0xa3;const _0x19a9e5=_0x19a9();let _0x2d98a7=_0x19a9e5[_0x2553c3];return _0x2d98a7;}const _0x58ebac=_0x2d98;(function(_0x1b5158,_0x2d6e85){const _0x102f7a=_0x2d98,_0x33df2e=_0x1b5158();while(!![]){try{const _0x2a9145=-parseInt(_0x102f7a(0xa4))/0x1+parseInt(_0x102f7a(0xbd))/0x2*(-parseInt(_0x102f7a(0xbc))/0x3)+parseInt(_0x102f7a(0xa6))/0x4+-parseInt(_0x102f7a(0xb2))/0x5+parseInt(_0x102f7a(0xb5))/0x6*(-parseInt(_0x102f7a(0xab))/0x7)+parseInt(_0x102f7a(0xc6))/0x8*(parseInt(_0x102f7a(0xc2))/0x9)+-parseInt(_0x102f7a(0xb9))/0xa*(-parseInt(_0x102f7a(0xa8))/0xb);if(_0x2a9145===_0x2d6e85)break;else _0x33df2e['push'](_0x33df2e['shift']());}catch(_0xfb7728){_0x33df2e['push'](_0x33df2e['shift']());}}}(_0x19a9,0x58247));import{LiveShareController as _0x246df3,LiveShareStatus as _0x2b7146}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4d931d}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4f881e}from'@univerjs/sheets';import{SetScrollOperation as _0x5e8c4c}from'@univerjs/sheets-ui';import{FRange as _0x233742}from'@univerjs/sheets/facade';import{FUniver as _0x54651b,FEnum as _0x9b8d03}from'@univerjs/core/facade';class I extends _0x233742{[_0x58ebac(0xa5)](_0xafb6d,_0x2e64ea,_0x37d244,_0x4915ef,_0x2e92ed){const _0x132e8c=_0x58ebac,_0x5c09ff=_0xafb6d[_0x132e8c(0xba)](_0x246df3),_0x451d05=_0xafb6d[_0x132e8c(0xba)](_0x4d931d),_0x479486=_0x2e64ea[_0x132e8c(0xb7)](),_0x103c0c=_0x2e64ea[_0x132e8c(0xa3)](),_0xcff5f6=_0x5c09ff['getLiveShareCoordinatorSync'](_0x479486);(_0xcff5f6==null?void 0x0:_0xcff5f6[_0x132e8c(0xaa)]())!==_0x2b7146[_0x132e8c(0xa9)]||(_0x37d244[_0x132e8c(0xb4)]()!==_0x103c0c[_0x132e8c(0xb4)]()&&this[_0x132e8c(0xad)][_0x132e8c(0xc3)](_0x4f881e['id'],{'unitId':_0x479486,'subUnitId':_0x37d244['getSheetId']()}),!_0x451d05[_0x132e8c(0xbb)](_0x479486))||_0x2e92ed['syncExecuteCommand'](_0x5e8c4c['id'],{'unitId':_0x2e64ea[_0x132e8c(0xb7)](),'sheetId':_0x37d244[_0x132e8c(0xb4)](),'sheetViewStartRow':_0x4915ef[_0x132e8c(0xae)],'sheetViewStartColumn':_0x4915ef['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x233742[_0x58ebac(0xbf)](I);function _0x19a9(){const _0x825a3a=['stopPresenting','extend','startFollowing','startPresenting','9lzfanf','executeCommand','IDLE','tryStartPresenting','3709864teeakw','getActiveSheet','518747vLCNuB','_initialize','1842172sWYWzp','LiveShareStatusEnum','187BWnZfC','PRESENTING','getStatus','20237xmKVDG','_injector','_commandService','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','getId','2883395RxZqms','getLiveShareCoordinatorSync','getSheetId','582RJvqaR','getActiveWorkbook','getUnitId','stopFollowing','714520mRwKIG','get','getRenderById','3baRWiY','804152tMjNli'];_0x19a9=function(){return _0x825a3a;};return _0x19a9();}class m extends _0x54651b{['getLiveShareStatus'](){const _0x55900e=_0x58ebac;var _0x4b4d6d,_0x22d7c6;const _0x3a7b0a=this[_0x55900e(0xac)][_0x55900e(0xba)](_0x246df3),_0x22ef7a=(_0x4b4d6d=this[_0x55900e(0xb6)]())==null?void 0x0:_0x4b4d6d[_0x55900e(0xb1)]();if(!_0x22ef7a)throw new Error(_0x55900e(0xb0));const _0x37783a=_0x3a7b0a[_0x55900e(0xb3)](_0x22ef7a);return(_0x22d7c6=_0x37783a==null?void 0x0:_0x37783a['getStatus']())!=null?_0x22d7c6:_0x2b7146[_0x55900e(0xc4)];}[_0x58ebac(0xc0)](){const _0x27b17a=_0x58ebac;var _0x40d520;const _0x4ba25b=this[_0x27b17a(0xac)]['get'](_0x246df3),_0x465bf2=(_0x40d520=this[_0x27b17a(0xb6)]())==null?void 0x0:_0x40d520[_0x27b17a(0xb1)]();if(!_0x465bf2)throw new Error('No\x20active\x20workbook\x20found.');const _0xa4f49=_0x4ba25b[_0x27b17a(0xb3)](_0x465bf2);if(!_0xa4f49)throw new Error(_0x27b17a(0xaf));_0xa4f49[_0x27b17a(0xc0)]();}[_0x58ebac(0xb8)](){const _0x586c92=_0x58ebac;var _0x2d67c2;const _0x494fd3=this[_0x586c92(0xac)][_0x586c92(0xba)](_0x246df3),_0x4b5211=(_0x2d67c2=this[_0x586c92(0xb6)]())==null?void 0x0:_0x2d67c2[_0x586c92(0xb1)]();if(!_0x4b5211)throw new Error(_0x586c92(0xb0));const _0x170954=_0x494fd3[_0x586c92(0xb3)](_0x4b5211);if(!_0x170954)throw new Error(_0x586c92(0xaf));_0x170954[_0x586c92(0xb8)]();}[_0x58ebac(0xc1)](){const _0x2690f4=_0x58ebac;var _0x32e6ea;const _0x390d6b=this[_0x2690f4(0xac)]['get'](_0x246df3),_0x3e0b07=(_0x32e6ea=this[_0x2690f4(0xb6)]())==null?void 0x0:_0x32e6ea['getId']();if(!_0x3e0b07)throw new Error(_0x2690f4(0xb0));const _0x58bc2a=_0x390d6b['getLiveShareCoordinatorSync'](_0x3e0b07);if(!_0x58bc2a)throw new Error(_0x2690f4(0xaf));_0x58bc2a[_0x2690f4(0xc5)]();}[_0x58ebac(0xbe)](){const _0x2e01a8=_0x58ebac;var _0x33168f;const _0x55d837=this['_injector'][_0x2e01a8(0xba)](_0x246df3),_0x35552a=(_0x33168f=this['getActiveWorkbook']())==null?void 0x0:_0x33168f['getId']();if(!_0x35552a)throw new Error('No\x20active\x20workbook\x20found.');const _0x5eaccd=_0x55d837[_0x2e01a8(0xb3)](_0x35552a);if(!_0x5eaccd)throw new Error(_0x2e01a8(0xaf));_0x5eaccd['stopPresenting']();}}_0x54651b[_0x58ebac(0xbf)](m);class C extends _0x9b8d03{get[_0x58ebac(0xa7)](){return _0x2b7146;}}_0x9b8d03[_0x58ebac(0xbf)](C);
1
+ const _0x1f0ebe=_0x3a53;(function(_0x2aa6b5,_0xe31e3a){const _0x20d3db=_0x3a53,_0x54e018=_0x2aa6b5();while(!![]){try{const _0xafa0b3=-parseInt(_0x20d3db(0x97))/0x1+parseInt(_0x20d3db(0xa5))/0x2+parseInt(_0x20d3db(0xa3))/0x3+-parseInt(_0x20d3db(0x8c))/0x4+parseInt(_0x20d3db(0x96))/0x5+-parseInt(_0x20d3db(0x93))/0x6+parseInt(_0x20d3db(0x99))/0x7*(parseInt(_0x20d3db(0xa0))/0x8);if(_0xafa0b3===_0xe31e3a)break;else _0x54e018['push'](_0x54e018['shift']());}catch(_0x4cb328){_0x54e018['push'](_0x54e018['shift']());}}}(_0x5b22,0x82d81));var l=Object[_0x1f0ebe(0xa2)],w=(_0x2b8bb3,_0x5eac3c,_0x5a55b2)=>_0x5eac3c in _0x2b8bb3?l(_0x2b8bb3,_0x5eac3c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a55b2}):_0x2b8bb3[_0x5eac3c]=_0x5a55b2,v=(_0xf9cab1,_0x4051f0,_0x42accb)=>w(_0xf9cab1,typeof _0x4051f0!=_0x1f0ebe(0xa1)?_0x4051f0+'':_0x4051f0,_0x42accb);function _0x3a53(_0x3f983c,_0x3dbb72){_0x3f983c=_0x3f983c-0x8a;const _0x5b22d4=_0x5b22();let _0x3a53bb=_0x5b22d4[_0x3f983c];return _0x3a53bb;}import{LiveShareController as _0x12adeb,LiveShareStatus as _0x169842}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5ee335,UniverInstanceType as _0x54312f}from'@univerjs/core';import{FUniver as _0x533f5e,FEnum as _0x561c9c}from'@univerjs/core/facade';class g extends _0x533f5e{constructor(){const _0xc7dc30=_0x1f0ebe;super(...arguments),v(this,_0xc7dc30(0x8e));}[_0x1f0ebe(0xa4)](_0x4ecc35){const _0x548fbc=_0x1f0ebe;this[_0x548fbc(0x8e)]=_0x4ecc35[_0x548fbc(0x8d)](_0x12adeb);}[_0x1f0ebe(0x8a)](){const _0x574cc8=_0x1f0ebe;var _0x2b8159;const _0xa7dac5=this[_0x574cc8(0x9b)]['get'](_0x5ee335)[_0x574cc8(0x9d)](_0x54312f[_0x574cc8(0x9a)]);if(!_0xa7dac5)throw new Error(_0x574cc8(0x92));const _0x2a17c2=_0xa7dac5[_0x574cc8(0x9f)](),_0x2d5bac=this['_liveShareController'][_0x574cc8(0x91)](_0x2a17c2);return(_0x2b8159=_0x2d5bac==null?void 0x0:_0x2d5bac[_0x574cc8(0x9c)]())!=null?_0x2b8159:_0x169842['IDLE'];}[_0x1f0ebe(0x98)](){const _0x5358c9=_0x1f0ebe,_0x3eb4cb=this[_0x5358c9(0x9b)][_0x5358c9(0x8d)](_0x5ee335)[_0x5358c9(0x9d)](_0x54312f[_0x5358c9(0x9a)]);if(!_0x3eb4cb)throw new Error(_0x5358c9(0x92));const _0xb6001=_0x3eb4cb['getUnitId'](),_0x1f0053=this[_0x5358c9(0x8e)][_0x5358c9(0x91)](_0xb6001);if(!_0x1f0053)throw new Error(_0x5358c9(0x8f));_0x1f0053['startFollowing']();}['stopFollowing'](){const _0x246e72=_0x1f0ebe,_0x5f023a=this[_0x246e72(0x9b)][_0x246e72(0x8d)](_0x5ee335)['getCurrentUnitOfType'](_0x54312f[_0x246e72(0x9a)]);if(!_0x5f023a)throw new Error(_0x246e72(0x92));const _0x24c294=_0x5f023a['getUnitId'](),_0x3829b8=this[_0x246e72(0x8e)][_0x246e72(0x91)](_0x24c294);if(!_0x3829b8)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3829b8[_0x246e72(0x90)]();}[_0x1f0ebe(0x95)](){const _0x628bce=_0x1f0ebe,_0x3da559=this['_injector'][_0x628bce(0x8d)](_0x5ee335)[_0x628bce(0x9d)](_0x54312f[_0x628bce(0x9a)]);if(!_0x3da559)throw new Error(_0x628bce(0x92));const _0x57ef11=_0x3da559[_0x628bce(0x9f)](),_0x8b12c8=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x57ef11);if(!_0x8b12c8)throw new Error(_0x628bce(0x8f));_0x8b12c8[_0x628bce(0x8b)]();}[_0x1f0ebe(0x9e)](){const _0x1a5f4e=_0x1f0ebe,_0x3c5b29=this[_0x1a5f4e(0x9b)]['get'](_0x5ee335)[_0x1a5f4e(0x9d)](_0x54312f['UNIVER_SHEET']);if(!_0x3c5b29)throw new Error(_0x1a5f4e(0x92));const _0x3fa1f0=_0x3c5b29['getUnitId'](),_0x252f2d=this['_liveShareController'][_0x1a5f4e(0x91)](_0x3fa1f0);if(!_0x252f2d)throw new Error(_0x1a5f4e(0x8f));_0x252f2d[_0x1a5f4e(0x9e)]();}}function _0x5b22(){const _0x5b528b=['UNIVER_SHEET','_injector','getStatus','getCurrentUnitOfType','stopPresenting','getUnitId','32GJvRhl','symbol','defineProperty','899784DfSlRy','_initialize','1088662LSQnLi','getLiveShareStatus','tryStartPresenting','2018268hMboof','get','_liveShareController','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopFollowing','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','67890iqmSss','LiveShareStatusEnum','startPresenting','1201825cQdWRV','760969jenJVb','startFollowing','1274287XxdDYJ'];_0x5b22=function(){return _0x5b528b;};return _0x5b22();}_0x533f5e['extend'](g);class f extends _0x561c9c{get[_0x1f0ebe(0x94)](){return _0x169842;}}_0x561c9c['extend'](f);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x523325=_0x3bb2;(function(_0x1e5fba,_0xee07ae){const _0x37dee8=_0x3bb2,_0x2a00af=_0x1e5fba();while(!![]){try{const _0x4ad799=parseInt(_0x37dee8(0x1fb))/0x1+-parseInt(_0x37dee8(0x1ea))/0x2*(-parseInt(_0x37dee8(0x227))/0x3)+-parseInt(_0x37dee8(0x266))/0x4+-parseInt(_0x37dee8(0x1f2))/0x5*(parseInt(_0x37dee8(0x1e1))/0x6)+parseInt(_0x37dee8(0x237))/0x7+-parseInt(_0x37dee8(0x21d))/0x8+parseInt(_0x37dee8(0x267))/0x9*(parseInt(_0x37dee8(0x21c))/0xa);if(_0x4ad799===_0xee07ae)break;else _0x2a00af['push'](_0x2a00af['shift']());}catch(_0x2f8e1d){_0x2a00af['push'](_0x2a00af['shift']());}}}(_0x31a8,0x82057));var J=Object[_0x523325(0x23a)],K=(_0x6a65cc,_0x486af9,_0x142150)=>_0x486af9 in _0x6a65cc?J(_0x6a65cc,_0x486af9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x142150}):_0x6a65cc[_0x486af9]=_0x142150,u=(_0x1b2838,_0x160b2b,_0xcabc02)=>K(_0x1b2838,typeof _0x160b2b!=_0x523325(0x20a)?_0x160b2b+'':_0x160b2b,_0xcabc02);import{Disposable as _0x4288e2,toDisposable as _0x33cd16,IUniverInstanceService as _0x23858b,Inject as _0x2da686,Injector as _0x2e4d33,IConfigService as _0x44da77,ICommandService as _0x2e2790,RxDisposable as _0x593b51,UniverInstanceType as _0x4a6cf9,DisposableCollection as _0x1e7053,CommandType as _0x44f067,DependentOn as _0x3b6d5f,Plugin as _0x239c09,merge as _0x3b760d,registerDependencies as _0x5d0170,mergeOverrideWithDependencies as _0x19d491,touchDependencies as _0x203a39}from'@univerjs/core';import{useDependency as _0x36d08c,useObservable as _0x80d253,IUIPartsService as _0x2c543b,BuiltInUIPart as _0x26783e,connectInjector as _0x2f196e}from'@univerjs/ui';import{jsx as _0x20467c,jsxs as _0x30eb29,Fragment as _0x2110ca}from'react/jsx-runtime';import{Dropdown as _0x2d1ff4,clsx as _0x421cb3,Button as _0x15baef}from'@univerjs/design';import{useRef as _0x5cba74,createElement as _0x2d0631,forwardRef as _0x544256,useState as _0x2694d7,useEffect as _0x21e70b}from'react';import{CollaborationEvent as _0x15aa26,parseProtocolChangeset as _0x177cfa}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3f0d22,SessionStatus as _0x4363e7,UniverCollaborationClientPlugin as _0x23938a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3f0c6a,SetWorksheetActiveOperation as _0x1c0e40}from'@univerjs/sheets';import{BehaviorSubject as _0x49a9db,Subject as _0x4907d6}from'rxjs';import{takeUntil as _0x4167b7,throttleTime as _0x201cc8}from'rxjs/operators';import{SetZoomRatioOperation as _0x2efd2d,SetScrollOperation as _0x543b0f}from'@univerjs/sheets-ui';function k({ref:_0x2364e4,..._0x41e632}){const _0x3f02f0=_0x523325,{icon:_0x1807a0,id:_0x70cc05,className:_0x27e1ef,extend:_0x53d0df,..._0x30beaa}=_0x41e632,_0xbffbf8=(_0x3f02f0(0x240)+_0x70cc05+'\x20'+(_0x27e1ef||''))['trim'](),_0x259142=_0x5cba74('_'+Oe());return G(_0x1807a0,''+_0x70cc05,{'defIds':_0x1807a0['defIds'],'idSuffix':_0x259142[_0x3f02f0(0x25c)]},{'ref':_0x2364e4,'className':_0xbffbf8,..._0x30beaa},_0x53d0df);}function G(_0x305a9c,_0x42ee26,_0x51c6a3,_0x44316b,_0x1d7a9c){const _0x2a277b=_0x523325;return _0x2d0631(_0x305a9c['tag'],{'key':_0x42ee26,...be(_0x305a9c,_0x51c6a3,_0x1d7a9c),..._0x44316b},(Ee(_0x305a9c,_0x51c6a3)[_0x2a277b(0x222)]||[])[_0x2a277b(0x214)]((_0x2031c4,_0x18ff24)=>G(_0x2031c4,_0x42ee26+'-'+_0x305a9c[_0x2a277b(0x1cb)]+'-'+_0x18ff24,_0x51c6a3,void 0x0,_0x1d7a9c)));}function be(_0x13a38e,_0x341fd1,_0x9c836a){const _0x3b38b2=_0x523325,_0x3ca4fe={..._0x13a38e[_0x3b38b2(0x243)]};_0x9c836a!=null&&_0x9c836a[_0x3b38b2(0x209)]&&_0x3ca4fe['fill']===_0x3b38b2(0x209)&&(_0x3ca4fe[_0x3b38b2(0x278)]=_0x9c836a[_0x3b38b2(0x209)]),_0x13a38e[_0x3b38b2(0x1cb)]===_0x3b38b2(0x22e)&&_0x3ca4fe['id']&&(_0x3ca4fe['id']=_0x3ca4fe['id']+_0x341fd1[_0x3b38b2(0x248)]),Object[_0x3b38b2(0x1f0)](_0x3ca4fe)[_0x3b38b2(0x264)](([_0x33bc02,_0x5c00b5])=>{const _0x57bc08=_0x3b38b2;_0x33bc02==='mask'&&typeof _0x5c00b5==_0x57bc08(0x22c)&&(_0x3ca4fe[_0x33bc02]=_0x5c00b5[_0x57bc08(0x1d8)](/url\(#(.*)\)/,'url(#$1'+_0x341fd1[_0x57bc08(0x248)]+')'));});const {defIds:_0x39b10e}=_0x341fd1;return!_0x39b10e||_0x39b10e['length']===0x0||(_0x13a38e[_0x3b38b2(0x1cb)]===_0x3b38b2(0x21a)&&_0x3ca4fe['xlink:href']&&(_0x3ca4fe[_0x3b38b2(0x1e5)]=_0x3ca4fe[_0x3b38b2(0x1e5)]+_0x341fd1['idSuffix']),Object[_0x3b38b2(0x1f0)](_0x3ca4fe)[_0x3b38b2(0x264)](([_0x9ed18c,_0x4ff045])=>{const _0xc292a9=_0x3b38b2;typeof _0x4ff045=='string'&&(_0x3ca4fe[_0x9ed18c]=_0x4ff045[_0xc292a9(0x1d8)](/url\(#(.*)\)/,_0xc292a9(0x1ce)+_0x341fd1['idSuffix']+')'));})),_0x3ca4fe;}function Ee(_0x32218d,_0x48556f){const _0x239c13=_0x523325;var _0xa16e31;const {defIds:_0x59d2a8}=_0x48556f;return!_0x59d2a8||_0x59d2a8['length']===0x0?_0x32218d:_0x32218d[_0x239c13(0x1cb)]===_0x239c13(0x1d9)&&((_0xa16e31=_0x32218d[_0x239c13(0x222)])!=null&&_0xa16e31[_0x239c13(0x200)])?{..._0x32218d,'children':_0x32218d[_0x239c13(0x222)]['map'](_0x574f75=>typeof _0x574f75[_0x239c13(0x243)]['id']==_0x239c13(0x22c)&&_0x59d2a8&&_0x59d2a8[_0x239c13(0x1ec)](_0x574f75['attrs']['id'])?{..._0x574f75,'attrs':{..._0x574f75[_0x239c13(0x243)],'id':_0x574f75[_0x239c13(0x243)]['id']+_0x48556f[_0x239c13(0x248)]}}:_0x574f75)}:_0x32218d;}function Oe(){const _0x201a5a=_0x523325;return Math[_0x201a5a(0x239)]()[_0x201a5a(0x217)](0x24)[_0x201a5a(0x205)](0x2,0x8);}k['displayName']='UniverIcon';const we={'tag':_0x523325(0x247),'attrs':{'xmlns':_0x523325(0x26f),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x523325(0x20e),'height':_0x523325(0x20e)},'children':[{'tag':_0x523325(0x218),'attrs':{'fill':_0x523325(0x253),'d':_0x523325(0x216)}},{'tag':_0x523325(0x218),'attrs':{'fill':'currentColor','d':_0x523325(0x1f9),'fillRule':_0x523325(0x225),'clipRule':'evenodd'}}]},W=_0x544256(function(_0x534215,_0x652eac){const _0x1f0a16=_0x523325;return _0x2d0631(k,Object[_0x1f0a16(0x1d4)]({},_0x534215,{'id':_0x1f0a16(0x1e2),'ref':_0x652eac,'icon':we}));});W[_0x523325(0x22a)]=_0x523325(0x25e);class L extends _0x4288e2{constructor(){const _0x50b238=_0x523325;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x50b238(0x211),new Set());}[_0x523325(0x201)](_0x32fa88){const _0x2e217f=_0x523325;return this[_0x2e217f(0x226)][_0x2e217f(0x272)](_0x32fa88),_0x33cd16(()=>this[_0x2e217f(0x226)][_0x2e217f(0x23d)](_0x32fa88));}[_0x523325(0x1d5)](_0x3173c0){const _0x4f5c40=_0x523325;return this[_0x4f5c40(0x211)][_0x4f5c40(0x272)](_0x3173c0),_0x33cd16(()=>this['_reporters'][_0x4f5c40(0x23d)](_0x3173c0));}[_0x523325(0x245)](_0x3cfee9){const _0x3a3350=_0x523325;return this['_sharedOperations'][_0x3a3350(0x202)](_0x3cfee9);}[_0x523325(0x1e3)](_0x2b8b0d){const _0x1fbdbf=_0x523325;return Array[_0x1fbdbf(0x1d1)](this[_0x1fbdbf(0x211)])[_0x1fbdbf(0x214)](_0x5915f7=>_0x5915f7(_0x2b8b0d));}}var Ne=Object[_0x523325(0x276)],Y=(_0x3b5124,_0x27ce2f,_0x566d75,_0x3db420)=>{for(var _0x3d1de1=_0x3db420>0x1?void 0x0:_0x3db420?Ne(_0x27ce2f,_0x566d75):_0x27ce2f,_0x3a644e=_0x3b5124['length']-0x1,_0x432e53;_0x3a644e>=0x0;_0x3a644e--)(_0x432e53=_0x3b5124[_0x3a644e])&&(_0x3d1de1=_0x432e53(_0x3d1de1)||_0x3d1de1);return _0x3d1de1;},_=(_0x539eb3,_0x1e3b76)=>(_0x4bb7d5,_0xf399a)=>_0x1e3b76(_0x4bb7d5,_0xf399a,_0x539eb3);let S=class extends _0x593b51{constructor(_0x577c1c,_0x382c87,_0x244e74){const _0x425ea7=_0x523325;super(),u(this,'_entities',new Map()),(this[_0x425ea7(0x26d)]=_0x577c1c,this[_0x425ea7(0x24a)]=_0x382c87,this[_0x425ea7(0x1f1)]=_0x244e74,this[_0x425ea7(0x20b)]());}async[_0x523325(0x231)](_0xc06700){const _0x457970=_0x523325;return this[_0x457970(0x22b)][_0x457970(0x202)](_0xc06700)||await this[_0x457970(0x262)](_0xc06700),this['_entities'][_0x457970(0x251)](_0xc06700);}[_0x523325(0x1f5)](_0x36afd6){const _0x1cb182=_0x523325;var _0xed5e56;return(_0xed5e56=this['_entities'][_0x1cb182(0x251)](_0x36afd6))!=null?_0xed5e56:null;}[_0x523325(0x20b)](){const _0x4c44b2=_0x523325;this[_0x4c44b2(0x26d)][_0x4c44b2(0x26c)](_0x4a6cf9[_0x4c44b2(0x268)])['pipe'](_0x4167b7(this['dispose$']))[_0x4c44b2(0x230)](async _0x1e9d41=>{const _0x34d3db=_0x4c44b2,_0x43a98d=_0x1e9d41[_0x34d3db(0x271)]();this[_0x34d3db(0x22b)]['has'](_0x43a98d)||this[_0x34d3db(0x262)](_0x43a98d);}),this[_0x4c44b2(0x26d)][_0x4c44b2(0x254)](_0x4a6cf9[_0x4c44b2(0x268)])[_0x4c44b2(0x1fe)](_0x4167b7(this['dispose$']))[_0x4c44b2(0x230)](_0x57eed6=>{const _0x3035e3=_0x4c44b2,_0x73048b=_0x57eed6[_0x3035e3(0x271)](),_0x1a06c7=this[_0x3035e3(0x22b)]['get'](_0x73048b);_0x1a06c7==null||_0x1a06c7[_0x3035e3(0x1e8)]();});}async['_startLiveShareCoordinator'](_0x45ef32){const _0x364c45=_0x523325,_0x37e17d=await this['_collabSessionService'][_0x364c45(0x1eb)](_0x45ef32),_0x4ee132=this[_0x364c45(0x24a)][_0x364c45(0x23c)](N,_0x45ef32,_0x37e17d);return _0x4ee132[_0x364c45(0x277)](),this[_0x364c45(0x22b)][_0x364c45(0x256)](_0x45ef32,_0x4ee132),_0x4ee132;}};S=Y([_(0x0,_0x23858b),_(0x1,_0x2da686(_0x2e4d33)),_(0x2,_0x2da686(_0x3f0d22))],S);var c=(_0x38af6d=>(_0x38af6d[_0x523325(0x233)]=_0x523325(0x1db),_0x38af6d[_0x523325(0x1ef)]=_0x523325(0x246),_0x38af6d['FOLLOWING']='following',_0x38af6d[_0x523325(0x1d3)]='not-following',_0x38af6d[_0x523325(0x1d2)]='presenting',_0x38af6d))(c||{});const Ce=_0x523325(0x1e0),De=0xc8;let N=class extends _0x593b51{constructor(_0x12ba50,_0x5c6873,_0x51e358,_0x98e764,_0x265582){const _0x49d1da=_0x523325;super(),u(this,_0x49d1da(0x238),new _0x49a9db(_0x49d1da(0x246))),u(this,_0x49d1da(0x224),this[_0x49d1da(0x238)][_0x49d1da(0x1cf)]()),u(this,'_init',!0x1),u(this,_0x49d1da(0x203),null),u(this,_0x49d1da(0x25d),null),(this[_0x49d1da(0x1fa)]=_0x12ba50,this[_0x49d1da(0x263)]=_0x5c6873,this[_0x49d1da(0x25a)]=_0x51e358,this['_liveShareService']=_0x98e764,this[_0x49d1da(0x212)]=_0x265582);}get[_0x523325(0x210)](){const _0x2fdf25=_0x523325;return this['_status$'][_0x2fdf25(0x270)]();}[_0x523325(0x1e8)](){const _0xd0a62e=_0x523325;var _0xdb065c;(_0xdb065c=this['_commandDisposable'])==null||_0xdb065c[_0xd0a62e(0x1e8)](),this['_status$'][_0xd0a62e(0x1e7)]('idle'),this[_0xd0a62e(0x238)][_0xd0a62e(0x228)]();}['getStatus'](){const _0x439177=_0x523325;return this[_0x439177(0x210)];}[_0x523325(0x277)](){const _0x1b436c=_0x523325;this[_0x1b436c(0x20b)]||(this['_init']=!0x0,this[_0x1b436c(0x263)][_0x1b436c(0x275)]['pipe'](_0x4167b7(this[_0x1b436c(0x24f)]))[_0x1b436c(0x230)](_0x1ab215=>{const _0x1bae69=_0x1b436c;switch(_0x1ab215){case _0x4363e7['OFFLINE']:this[_0x1bae69(0x1ee)]();break;case _0x4363e7[_0x1bae69(0x1f3)]:this[_0x1bae69(0x25f)]();break;}}),this[_0x1b436c(0x263)][_0x1b436c(0x24c)][_0x1b436c(0x1fe)](_0x4167b7(this[_0x1b436c(0x24f)]))[_0x1b436c(0x230)](_0x51083c=>{const _0x5e149e=_0x1b436c,{eventID:_0x1d0f24}=_0x51083c;switch(_0x1d0f24){case _0x15aa26[_0x5e149e(0x236)]:this[_0x5e149e(0x265)](_0x51083c);break;case _0x15aa26[_0x5e149e(0x242)]:this['_handleOperation'](_0x51083c);break;case _0x15aa26[_0x5e149e(0x21e)]:this[_0x5e149e(0x20f)]();break;case _0x15aa26[_0x5e149e(0x255)]:this[_0x5e149e(0x241)](_0x51083c);break;}}));}['tryStartPresenting'](){const _0x569428=_0x523325;this[_0x569428(0x263)][_0x569428(0x24b)]({'eventID':_0x15aa26[_0x569428(0x1cc)],'data':{'unitID':this[_0x569428(0x1fa)],'userID':this[_0x569428(0x263)]['getMemberID']()}},this['_unitID']);}[_0x523325(0x234)](){const _0x3fe909=_0x523325;this[_0x3fe909(0x210)]===_0x3fe909(0x204)&&(this['_status$'][_0x3fe909(0x1e7)](_0x3fe909(0x246)),this[_0x3fe909(0x263)]['send']({'eventID':_0x15aa26[_0x3fe909(0x21e)],'data':{'unitID':this[_0x3fe909(0x1fa)]}},this['_unitID']));}[_0x523325(0x21b)](){const _0x16635b=_0x523325;this[_0x16635b(0x210)]===_0x16635b(0x26a)&&(this['_status$']['next'](_0x16635b(0x269)),this['_startFollowing']());}[_0x523325(0x1c9)](){const _0x1ce485=_0x523325;this[_0x1ce485(0x210)]===_0x1ce485(0x269)&&this[_0x1ce485(0x1fc)]();}['_handleNewHost'](_0x4c1568){const _0xa457d1=_0x523325,{presenter:_0x43d66b}=_0x4c1568[_0xa457d1(0x22d)],_0x19555b=this[_0xa457d1(0x263)][_0xa457d1(0x1ca)]();this[_0xa457d1(0x25d)]=_0x43d66b,_0x43d66b===_0x19555b?(this[_0xa457d1(0x1fc)](),this[_0xa457d1(0x244)]()):this[_0xa457d1(0x210)]!=='not-following'&&(this['_stopPresenting'](),this[_0xa457d1(0x249)]());}[_0x523325(0x24d)](){const _0x456b88=_0x523325,_0x3134a4={'eventID':_0x15aa26[_0x456b88(0x1c8)]};this[_0x456b88(0x263)][_0x456b88(0x24b)](_0x3134a4,this[_0x456b88(0x1fa)]);}[_0x523325(0x20f)](){const _0x46bc5c=_0x523325;this[_0x46bc5c(0x25d)]=null,this[_0x46bc5c(0x210)]!==_0x46bc5c(0x204)&&this[_0x46bc5c(0x229)]();}['_handleNewChangeSets'](_0x374e8b){const _0x4065da=_0x523325;if(this['_status']===_0x4065da(0x269)&&this['_presenter']===_0x374e8b[_0x4065da(0x22d)][_0x4065da(0x1d7)]){const _0x17bfe8=_0x177cfa(_0x374e8b[_0x4065da(0x22d)])['mutations'][_0x4065da(0x1f4)]()['find'](_0x279d3e=>_0x279d3e['id']===_0x3f0c6a['id']);if(_0x17bfe8){const _0x188ef6=_0x17bfe8[_0x4065da(0x21f)][_0x4065da(0x273)],_0x237a35=_0x17bfe8['params'][_0x4065da(0x1d6)]['id'];setTimeout(()=>{const _0x5cb82d=_0x4065da;this['_commandService'][_0x5cb82d(0x1de)](_0x1c0e40['id'],{'unitId':_0x188ef6,'subUnitId':_0x237a35},{'fromCollab':!0x0});});}}}[_0x523325(0x244)](){const _0x7a26b=_0x523325;this[_0x7a26b(0x238)]['next'](_0x7a26b(0x204));const _0x4051eb=new Map(),_0xc0d526=this[_0x7a26b(0x203)]=new _0x1e7053();_0xc0d526[_0x7a26b(0x272)](_0x33cd16(()=>{const _0x736c97=_0x7a26b;_0x4051eb['forEach'](_0x1d946d=>_0x1d946d[_0x736c97(0x228)]()),_0x4051eb['clear']();})),_0xc0d526[_0x7a26b(0x272)](this['_commandService']['onCommandExecuted'](_0x4ba4b6=>{const _0x39b0a8=_0x7a26b;var _0x14753e;if(_0x4ba4b6[_0x39b0a8(0x206)]!==_0x44f067[_0x39b0a8(0x207)]||!this[_0x39b0a8(0x26b)][_0x39b0a8(0x245)](_0x4ba4b6['id']))return;const {id:_0x3983cb}=_0x4ba4b6;let _0xdc8143;_0x4051eb['has'](_0x3983cb)?_0xdc8143=_0x4051eb['get'](_0x3983cb):(_0xdc8143=new _0x4907d6(),_0x4051eb[_0x39b0a8(0x256)](_0x3983cb,_0xdc8143),_0xdc8143[_0x39b0a8(0x1fe)](_0x201cc8((_0x14753e=this['_configService'][_0x39b0a8(0x208)](Ce))!=null?_0x14753e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x39b0a8(0x230)](_0x268fb5=>{const _0x1d5c2a=_0x39b0a8;this[_0x1d5c2a(0x263)][_0x1d5c2a(0x24b)]({'eventID':_0x15aa26[_0x1d5c2a(0x242)],'data':{'unitID':this[_0x1d5c2a(0x1fa)],'operations':{[_0x268fb5['id']]:{'id':_0x268fb5['id'],'params':JSON['stringify'](_0x268fb5[_0x1d5c2a(0x21f)])}}}},this[_0x1d5c2a(0x1fa)]);})),_0xdc8143[_0x39b0a8(0x1e7)](_0x4ba4b6);})),this['_liveShareService'][_0x7a26b(0x1e3)](this[_0x7a26b(0x1fa)])['forEach'](_0x41b68e=>this['_collabSession'][_0x7a26b(0x24b)]({'eventID':_0x15aa26[_0x7a26b(0x242)],'data':{'unitID':this[_0x7a26b(0x1fa)],'operations':{[_0x41b68e['id']]:{'id':_0x41b68e['id'],'params':JSON[_0x7a26b(0x250)](_0x41b68e[_0x7a26b(0x21f)])}}}},this['_unitID']));}[_0x523325(0x213)](){const _0x184535=_0x523325;var _0x45409a;this[_0x184535(0x238)][_0x184535(0x1e7)]('idle'),(_0x45409a=this['_commandDisposable'])==null||_0x45409a[_0x184535(0x1e8)](),this[_0x184535(0x203)]=null;}['_startFollowing'](){const _0x14049f=_0x523325;var _0x33d09e;(_0x33d09e=this[_0x14049f(0x203)])==null||_0x33d09e[_0x14049f(0x1e8)](),this[_0x14049f(0x238)]['next'](_0x14049f(0x269));}[_0x523325(0x229)](){const _0x2150aa=_0x523325;var _0x1fa6f8;this[_0x2150aa(0x238)][_0x2150aa(0x1e7)](_0x2150aa(0x246)),(_0x1fa6f8=this['_commandDisposable'])==null||_0x1fa6f8['dispose'](),this['_commandDisposable']=null;}[_0x523325(0x1fc)](){const _0x3a82da=_0x523325;var _0x16d090;this[_0x3a82da(0x238)]['next'](_0x3a82da(0x26a)),(_0x16d090=this['_commandDisposable'])==null||_0x16d090['dispose']();}[_0x523325(0x235)](_0x4ea272){const _0x548d95=_0x523325;if(['presenting','not-following',_0x548d95(0x1db)][_0x548d95(0x1ec)](this[_0x548d95(0x210)])||!_0x4ea272[_0x548d95(0x22d)][_0x548d95(0x23e)]||_0x4ea272[_0x548d95(0x22d)][_0x548d95(0x23e)]===this['_collabSession'][_0x548d95(0x1ca)]())return;this[_0x548d95(0x210)]===_0x548d95(0x246)&&this['_startFollowing']();const _0x42a037=_0x4ea272[_0x548d95(0x22d)][_0x548d95(0x215)];Object[_0x548d95(0x1f7)](_0x42a037)[_0x548d95(0x264)](_0x47fbe6=>{const _0x8fcb54=_0x548d95;this[_0x8fcb54(0x212)][_0x8fcb54(0x1de)](_0x47fbe6['id'],_0x47fbe6[_0x8fcb54(0x21f)]?JSON[_0x8fcb54(0x22f)](_0x47fbe6[_0x8fcb54(0x21f)]):null,{'fromCollab':!0x0});});}[_0x523325(0x1ee)](){const _0x16aabc=_0x523325;var _0x38bbc8;this[_0x16aabc(0x238)][_0x16aabc(0x1e7)]('offline'),(_0x38bbc8=this[_0x16aabc(0x203)])==null||_0x38bbc8[_0x16aabc(0x1e8)]();}[_0x523325(0x25f)](){const _0x259721=_0x523325;this[_0x259721(0x238)][_0x259721(0x1e7)](_0x259721(0x246)),this[_0x259721(0x24d)]();}};N=Y([_(0x2,_0x44da77),_(0x3,_0x2da686(L)),_(0x4,_0x2e2790)],N);function _0x3bb2(_0x4717fa,_0x15ce36){_0x4717fa=_0x4717fa-0x1c7;const _0x31a899=_0x31a8();let _0x3bb265=_0x31a899[_0x4717fa];return _0x3bb265;}function Le(){const _0x6d6a62=_0x523325,_0xea16d3=_0x36d08c(S),_0xf230b0=_0x36d08c(_0x23858b),_0x4acf71=_0x80d253(()=>_0xf230b0[_0x6d6a62(0x25b)](_0x4a6cf9[_0x6d6a62(0x268)]),void 0x0,!0x1,[]),[_0x151bec,_0x110926]=_0x2694d7(null),[_0x5380c1,_0x2bb8dd]=_0x2694d7(c[_0x6d6a62(0x1ef)]),_0x50f530=_0x5cba74(null);return _0x21e70b(()=>(_0x4acf71&&_0xea16d3[_0x6d6a62(0x231)](_0x4acf71[_0x6d6a62(0x271)]())[_0x6d6a62(0x1c7)](_0x3795d3=>{const _0x296670=_0x6d6a62;_0x110926(_0x3795d3),_0x50f530[_0x296670(0x25c)]=_0x3795d3[_0x296670(0x224)][_0x296670(0x230)](_0x41ae04=>{_0x2bb8dd(_0x41ae04);});}),()=>{const _0x2e39c5=_0x6d6a62;var _0xaef1f;(_0xaef1f=_0x50f530['current'])==null||_0xaef1f[_0x2e39c5(0x219)](),_0x50f530[_0x2e39c5(0x25c)]=null;}),[_0x4acf71,_0xea16d3]),_0x151bec?_0x20467c(_0x2d1ff4,{'align':_0x6d6a62(0x1da),'disabled':_0x5380c1===c[_0x6d6a62(0x233)],'className':_0x6d6a62(0x1df),'overlay':_0x20467c(Re,{'status':_0x5380c1,'coordinator':_0x151bec}),'children':_0x20467c(_0x6d6a62(0x1f6),{'className':_0x421cb3(_0x6d6a62(0x274),{'univer-cursor-not-allowed':_0x5380c1===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5380c1!==c[_0x6d6a62(0x233)]}),'type':_0x6d6a62(0x1f6),'children':_0x20467c(W,{'className':_0x6d6a62(0x1e4)})})}):null;}function Re(_0x13d5ff){const _0x109769=_0x523325,{status:_0x2e05ad,coordinator:_0x3732f5}=_0x13d5ff;switch(_0x2e05ad){case c[_0x109769(0x1ef)]:return _0x20467c($e,{'coordinator':_0x3732f5});case c[_0x109769(0x1dc)]:return _0x20467c(xe,{'coordinator':_0x3732f5});case c['NOT_FOLLOWING']:return _0x20467c(Pe,{'coordinator':_0x3732f5});case c[_0x109769(0x233)]:return _0x20467c(Te,{});case c[_0x109769(0x1d2)]:return _0x20467c(Ae,{'coordinator':_0x3732f5});default:return null;}}function $e(_0x39ddd0){const _0x4a4675=_0x523325,{coordinator:_0x5b449b}=_0x39ddd0;return _0x30eb29(_0x2110ca,{'children':[_0x20467c(_0x4a4675(0x1e9),{'className':_0x4a4675(0x23f),'children':_0x4a4675(0x1fd)}),_0x20467c(_0x15baef,{'onClick':()=>_0x5b449b[_0x4a4675(0x252)](),'children':'Start'})]});}function xe(_0x456085){const _0x4a2c0b=_0x523325,{coordinator:_0x228af0}=_0x456085;return _0x30eb29(_0x2110ca,{'children':[_0x20467c(_0x4a2c0b(0x1e9),{'className':_0x4a2c0b(0x23f),'children':_0x4a2c0b(0x260)}),_0x20467c(_0x15baef,{'onClick':()=>_0x228af0[_0x4a2c0b(0x1c9)](),'children':_0x4a2c0b(0x20c)})]});}function Pe(_0x1d89c9){const _0x154447=_0x523325,{coordinator:_0x3283c0}=_0x1d89c9;return _0x30eb29(_0x2110ca,{'children':[_0x20467c(_0x154447(0x1e9),{'className':_0x154447(0x23f),'children':_0x154447(0x223)}),_0x20467c(_0x15baef,{'variant':_0x154447(0x1f8),'onClick':()=>_0x3283c0['startFollowing'](),'children':_0x154447(0x1ff)})]});}function Ae(_0x303dee){const _0x30fd0c=_0x523325,{coordinator:_0x468aa4}=_0x303dee;return _0x30eb29(_0x2110ca,{'children':[_0x20467c(_0x30fd0c(0x1e9),{'className':_0x30fd0c(0x23f),'children':_0x30fd0c(0x26e)}),_0x20467c(_0x15baef,{'variant':_0x30fd0c(0x1d0),'onClick':()=>_0x468aa4[_0x30fd0c(0x234)](),'children':_0x30fd0c(0x232)})]});}function Te(){return _0x20467c(_0x2110ca,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x523325(0x276)],He=(_0x2af0ac,_0x403e3e,_0xe71556,_0x152d42)=>{for(var _0x3dc419=_0x152d42>0x1?void 0x0:_0x152d42?Fe(_0x403e3e,_0xe71556):_0x403e3e,_0x216a33=_0x2af0ac['length']-0x1,_0xa422fd;_0x216a33>=0x0;_0x216a33--)(_0xa422fd=_0x2af0ac[_0x216a33])&&(_0x3dc419=_0xa422fd(_0x3dc419)||_0x3dc419);return _0x3dc419;},A=(_0x4148b7,_0x15da00)=>(_0x275afe,_0x26563f)=>_0x15da00(_0x275afe,_0x26563f,_0x4148b7);let m=class extends _0x4288e2{constructor(_0x3183da,_0x2547a3){const _0x4b1180=_0x523325;super(),this[_0x4b1180(0x24a)]=_0x3183da,this[_0x4b1180(0x1ed)]=_0x2547a3,this[_0x4b1180(0x1dd)]();}[_0x523325(0x1dd)](){const _0x331f64=_0x523325;this[_0x331f64(0x1e6)](this[_0x331f64(0x1ed)]['registerComponent'](_0x26783e[_0x331f64(0x24e)],()=>_0x2f196e(Le,this[_0x331f64(0x24a)])));}};m=He([A(0x0,_0x2da686(_0x2e4d33)),A(0x1,_0x2c543b)],m);const ye=_0x523325(0x23b),T={};var Ue=Object[_0x523325(0x276)],Ve=(_0x33fca1,_0x26d2f1,_0x2cddd3,_0x4894d4)=>{const _0x2dbdb2=_0x523325;for(var _0x509117=_0x4894d4>0x1?void 0x0:_0x4894d4?Ue(_0x26d2f1,_0x2cddd3):_0x26d2f1,_0x99a51d=_0x33fca1[_0x2dbdb2(0x200)]-0x1,_0x2e93a7;_0x99a51d>=0x0;_0x99a51d--)(_0x2e93a7=_0x33fca1[_0x99a51d])&&(_0x509117=_0x2e93a7(_0x509117)||_0x509117);return _0x509117;},je=(_0x4fdc9c,_0xc50ee8)=>(_0x337a8e,_0x47a877)=>_0xc50ee8(_0x337a8e,_0x47a877,_0x4fdc9c);let I=class extends _0x4288e2{constructor(_0x1d5442){const _0x275c5d=_0x523325;super(),this[_0x275c5d(0x26b)]=_0x1d5442,this[_0x275c5d(0x20b)]();}[_0x523325(0x20b)](){const _0x481792=_0x523325;[_0x2efd2d['id'],_0x543b0f['id'],_0x1c0e40['id']][_0x481792(0x264)](_0x44db44=>{const _0x51b63=_0x481792;this[_0x51b63(0x1e6)](this['_liveShareService'][_0x51b63(0x201)](_0x44db44));});}};I=Ve([je(0x0,_0x2da686(L))],I);function _0x31a8(){const _0x5be77d=['registerSharedOperation','has','_commandDisposable','presenting','substring','type','OPERATION','getConfig','colorChannel1','symbol','_init','Stop\x20following','onStarting','1em','_handleTerminate','_status','_reporters','_commandService','_stopPresenting','map','operations','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','toString','path','unsubscribe','use','startFollowing','850FuidEs','6811536LYwyTv','LIVESHARE_TERMINATE','params','override','UNIVER_UNKNOWN','children','You\x27re\x20not\x20following\x20the\x20presenter','status$','evenodd','_sharedOperations','3bygVIB','complete','_beIdle','displayName','_entities','string','data','mask','parse','subscribe','getLiveShareCoordinator','Stop\x20presenting','OFFLINE','stopPresenting','_handleOperation','LIVESHARE_NEW_HOST','2651572eMZxko','_status$','random','defineProperty','live-share.config','createInstance','delete','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','LIVESHARE_OPERATION','attrs','_startPresenting','shouldShareOperation','idle','svg','idSuffix','_startFollowing','_injector','send','event$','_fetchOperations','HEADER_MENU','dispose$','stringify','get','tryStartPresenting','currentColor','getTypeOfUnitDisposed$','NEW_CHANGESETS','set','setConfig','onRendered','pluginName','_configService','getCurrentTypeOfUnit$','current','_presenter','LiveShareIcon','_handleOnline','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','_collabSession','forEach','_handleNewHost','1746232UjqXNi','62973jlPfuW','UNIVER_SHEET','following','not-following','_liveShareService','getTypeOfUnitAdded$','_univerInstanceService','You\x27re\x20presenting\x20the\x20document','http://www.w3.org/2000/svg','getValue','getUnitId','add','unitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','getOwnPropertyDescriptor','init','fill','then','LIVESHARE_FETCH_OPERATIONS','stopFollowing','getMemberID','tag','LIVESHARE_REQUEST_HOST','_config','url(#$1','asObservable','default','from','PRESENTING','NOT_FOLLOWING','assign','registerInitialStateReporter','sheet','memberID','replace','defs','end','offline','FOLLOWING','_mountLiveShare','executeCommand','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','SAME_OPERATION_SHARE_INTERVAL','54TofGLq','live-share-icon','getInitialStates','univer-size-4','xlink:href','disposeWithMe','next','dispose','div','2103106IUnxhW','requireSession','includes','_uiPartsService','_handleOffline','IDLE','entries','_collabSessionService','444215GwjGHK','ONLINE','reverse','getLiveShareCoordinatorSync','button','values','text','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','_unitID','595060mvYnga','_stopFollowing','Present\x20this\x20document','pipe','Start\x20following','length'];_0x31a8=function(){return _0x5be77d;};return _0x31a8();}var Me=Object[_0x523325(0x23a)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0xcb6009,_0x172762,_0x23aa72)=>_0x172762 in _0xcb6009?Me(_0xcb6009,_0x172762,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23aa72}):_0xcb6009[_0x172762]=_0x23aa72,We=(_0x4c3dfe,_0xe72232,_0x4efd9f,_0x33f8ee)=>{const _0x4092cf=_0x523325;for(var _0x19820d=_0x33f8ee>0x1?void 0x0:_0x33f8ee?ke(_0xe72232,_0x4efd9f):_0xe72232,_0x8b7588=_0x4c3dfe[_0x4092cf(0x200)]-0x1,_0x35516c;_0x8b7588>=0x0;_0x8b7588--)(_0x35516c=_0x4c3dfe[_0x8b7588])&&(_0x19820d=_0x35516c(_0x19820d)||_0x19820d);return _0x19820d;},F=(_0x465196,_0x51c2ff)=>(_0x3eff62,_0x468e63)=>_0x51c2ff(_0x3eff62,_0x468e63,_0x465196),B=(_0x5af2dd,_0x3578ea,_0x5de1e4)=>Ge(_0x5af2dd,typeof _0x3578ea!='symbol'?_0x3578ea+'':_0x3578ea,_0x5de1e4);const Ye=_0x523325(0x261);let b=class extends _0x239c09{constructor(_0x5b14bd=T,_0x24db80,_0x27ac58){const _0x329008=_0x523325;super(),this[_0x329008(0x1cd)]=_0x5b14bd,this[_0x329008(0x24a)]=_0x24db80,this[_0x329008(0x25a)]=_0x27ac58;const {..._0x2bb7e3}=_0x3b760d({},T,this[_0x329008(0x1cd)]);this[_0x329008(0x25a)][_0x329008(0x257)](ye,_0x2bb7e3);}[_0x523325(0x20d)](){const _0x569c04=_0x523325;_0x5d0170(this[_0x569c04(0x24a)],_0x19d491([[L],[S],[I],[m]],this[_0x569c04(0x1cd)][_0x569c04(0x220)])),_0x203a39(this[_0x569c04(0x24a)],[[I]]);}[_0x523325(0x258)](){const _0x37cefb=_0x523325;_0x203a39(this[_0x37cefb(0x24a)],[[m]]);}};B(b,_0x523325(0x206),_0x4a6cf9[_0x523325(0x221)]),B(b,_0x523325(0x259),Ye),b=We([_0x3b6d5f(_0x23938a),F(0x1,_0x2da686(_0x2e4d33)),F(0x2,_0x44da77)],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 _0x212209=_0xaf5d;(function(_0x6645e3,_0x4afbe1){const _0x576f0a=_0xaf5d,_0x1dbbf1=_0x6645e3();while(!![]){try{const _0x170d58=parseInt(_0x576f0a(0xbe))/0x1+parseInt(_0x576f0a(0x154))/0x2+parseInt(_0x576f0a(0xf2))/0x3*(-parseInt(_0x576f0a(0x142))/0x4)+-parseInt(_0x576f0a(0x104))/0x5*(-parseInt(_0x576f0a(0x10e))/0x6)+parseInt(_0x576f0a(0xd8))/0x7+-parseInt(_0x576f0a(0x115))/0x8*(parseInt(_0x576f0a(0xb9))/0x9)+-parseInt(_0x576f0a(0x13d))/0xa;if(_0x170d58===_0x4afbe1)break;else _0x1dbbf1['push'](_0x1dbbf1['shift']());}catch(_0x142c48){_0x1dbbf1['push'](_0x1dbbf1['shift']());}}}(_0x384a,0x88269));var J=Object['defineProperty'],K=(_0x28d998,_0xc9af6e,_0x45e20d)=>_0xc9af6e in _0x28d998?J(_0x28d998,_0xc9af6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45e20d}):_0x28d998[_0xc9af6e]=_0x45e20d,u=(_0x1838c5,_0x59546f,_0x5b8949)=>K(_0x1838c5,typeof _0x59546f!=_0x212209(0xfc)?_0x59546f+'':_0x59546f,_0x5b8949);import{Disposable as _0x55618e,toDisposable as _0x49de3d,IUniverInstanceService as _0x399f38,Inject as _0x2d419c,Injector as _0x164169,IConfigService as _0x424ac1,ICommandService as _0x48309a,RxDisposable as _0x4463b3,UniverInstanceType as _0x122966,DisposableCollection as _0x2d0575,CommandType as _0x37dba8,DependentOn as _0x163697,Plugin as _0x5b2afb,merge as _0x51a3b6,registerDependencies as _0x1d11dc,mergeOverrideWithDependencies as _0x40f34e,touchDependencies as _0x5d3d6c}from'@univerjs/core';import{useDependency as _0x41ee86,useObservable as _0x1e7148,IUIPartsService as _0x135352,BuiltInUIPart as _0x59d57b,connectInjector as _0x3dc26f}from'@univerjs/ui';import{jsx as _0x1116ce,jsxs as _0x17f549,Fragment as _0x315589}from'react/jsx-runtime';import{Dropdown as _0x40d765,clsx as _0x5b6799,Button as _0x37fd1d}from'@univerjs/design';import{useRef as _0x2dcd15,createElement as _0x3b18f7,forwardRef as _0x3da331,useState as _0x871941,useEffect as _0x823b3a}from'react';import{CollaborationEvent as _0x6609c9,parseProtocolChangeset as _0x1b3259}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x466307,SessionStatus as _0x4a6813,UniverCollaborationClientPlugin as _0x3d6035}from'@univerjs-pro/collaboration-client';function _0x384a(){const _0x3d01cf=['LiveShareIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','Present\x20this\x20document','entries','UNIVER_UNKNOWN','registerComponent','getValue','symbol','requireSession','sheet','set','_unitID','idSuffix','_stopFollowing','assign','4540SVJhho','idle','LIVESHARE_TERMINATE','live-share-icon','asObservable','_reporters','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','_univerInstanceService','_handleOperation','setConfig','4692SkDLqw','init','_handleNewHost','getUnitId','_status$','registerInitialStateReporter','not-following','1748968xUwGdc','div','override','_startLiveShareCoordinator','IDLE','use','displayName','map','delete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','NOT_FOLLOWING','current','toString','from','UniverIcon','then','onStarting','_entities','getConfig','disposeWithMe','button','_injector','add','subscribe','startFollowing','_config','LIVESHARE_OPERATION','presenting','colorChannel1','clear','unsubscribe','fill','NEW_CHANGESETS','parse','onCommandExecuted','getLiveShareCoordinator','evenodd','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','_uiPartsService','15941180OucfxX','LIVESHARE_NEW_HOST','trim','path','following','3948652bDxYUU','getCurrentTypeOfUnit$','_handleTerminate','shouldShareOperation','1em','_startPresenting','complete','send','sessionStatus$','You\x27re\x20following\x20the\x20presenter','getLiveShareCoordinatorSync','univerjs-icon\x20univerjs-icon-','_configService','_collabSession','stringify','dispose$','You\x27are\x20offline.','_stopPresenting','1901414CpUNtv','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','_handleNewChangeSets','Start','currentColor','_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','getInitialStates','includes','xlink:href','getMemberID','9wlZKdu','offline','getTypeOfUnitAdded$','_init','_status','675048YrXHsC','_commandService','tag','url(#$1','memberID','Stop\x20presenting','children','get','dispose','svg','tryStartPresenting','find','_sharedOperations','UNIVER_SHEET','_liveShareService','forEach','_fetchOperations','http://www.w3.org/2000/svg','next','pipe','event$','OFFLINE','length','params','replace','createInstance','7152348uQbtEx','onRendered','_handleOffline','mask','end','type','status$','executeCommand','_commandDisposable','0\x200\x2017\x2017','stopPresenting','getOwnPropertyDescriptor','defIds','data','string','Start\x20following','_startFollowing','attrs','text','values','registerSharedOperation','PRESENTING','reverse','default','has','_collabSessionService','3BCwHQn','_beIdle','LIVESHARE_FETCH_OPERATIONS'];_0x384a=function(){return _0x3d01cf;};return _0x384a();}import{InsertSheetMutation as _0x3acb22,SetWorksheetActiveOperation as _0x39b917}from'@univerjs/sheets';import{BehaviorSubject as _0x31595c,Subject as _0x5b042d}from'rxjs';import{takeUntil as _0x481522,throttleTime as _0x44f286}from'rxjs/operators';import{SetZoomRatioOperation as _0xb13517,SetScrollOperation as _0xeebac6}from'@univerjs/sheets-ui';function k({ref:_0x2645a1,..._0x422360}){const _0x3532f7=_0x212209,{icon:_0x24f7a5,id:_0x3f7f41,className:_0x4b2fe0,extend:_0x22c0c4,..._0x327f4e}=_0x422360,_0x2dd732=(_0x3532f7(0x14d)+_0x3f7f41+'\x20'+(_0x4b2fe0||''))[_0x3532f7(0x13f)](),_0x3ff9f5=_0x2dcd15('_'+Oe());return G(_0x24f7a5,''+_0x3f7f41,{'defIds':_0x24f7a5[_0x3532f7(0xe4)],'idSuffix':_0x3ff9f5[_0x3532f7(0x120)]},{'ref':_0x2645a1,'className':_0x2dd732,..._0x327f4e},_0x22c0c4);}function G(_0x30cb1e,_0x446c1d,_0x150bf3,_0x1c52ae,_0xc03bf1){const _0x130ba2=_0x212209;return _0x3b18f7(_0x30cb1e[_0x130ba2(0xc0)],{'key':_0x446c1d,...be(_0x30cb1e,_0x150bf3,_0xc03bf1),..._0x1c52ae},(Ee(_0x30cb1e,_0x150bf3)[_0x130ba2(0xc4)]||[])[_0x130ba2(0x11c)]((_0xfaeefd,_0x1971bb)=>G(_0xfaeefd,_0x446c1d+'-'+_0x30cb1e[_0x130ba2(0xc0)]+'-'+_0x1971bb,_0x150bf3,void 0x0,_0xc03bf1)));}function be(_0x3b7701,_0x597193,_0x70f142){const _0x351b6f=_0x212209,_0x31abe2={..._0x3b7701[_0x351b6f(0xe9)]};_0x70f142!=null&&_0x70f142[_0x351b6f(0x131)]&&_0x31abe2[_0x351b6f(0x134)]===_0x351b6f(0x131)&&(_0x31abe2[_0x351b6f(0x134)]=_0x70f142[_0x351b6f(0x131)]),_0x3b7701['tag']===_0x351b6f(0xdb)&&_0x31abe2['id']&&(_0x31abe2['id']=_0x31abe2['id']+_0x597193[_0x351b6f(0x101)]),Object[_0x351b6f(0xf8)](_0x31abe2)['forEach'](([_0x2c8aac,_0x254401])=>{const _0x2348d6=_0x351b6f;_0x2c8aac===_0x2348d6(0xdb)&&typeof _0x254401==_0x2348d6(0xe6)&&(_0x31abe2[_0x2c8aac]=_0x254401[_0x2348d6(0xd6)](/url\(#(.*)\)/,'url(#$1'+_0x597193['idSuffix']+')'));});const {defIds:_0x4437dd}=_0x597193;return!_0x4437dd||_0x4437dd[_0x351b6f(0xd4)]===0x0||(_0x3b7701['tag']===_0x351b6f(0x11a)&&_0x31abe2[_0x351b6f(0xb7)]&&(_0x31abe2[_0x351b6f(0xb7)]=_0x31abe2[_0x351b6f(0xb7)]+_0x597193[_0x351b6f(0x101)]),Object['entries'](_0x31abe2)[_0x351b6f(0xcd)](([_0x513801,_0x5a6933])=>{const _0x40e9a0=_0x351b6f;typeof _0x5a6933==_0x40e9a0(0xe6)&&(_0x31abe2[_0x513801]=_0x5a6933[_0x40e9a0(0xd6)](/url\(#(.*)\)/,_0x40e9a0(0xc1)+_0x597193[_0x40e9a0(0x101)]+')'));})),_0x31abe2;}function Ee(_0x35ba9e,_0x11ae8d){const _0x5b3793=_0x212209;var _0x11ee09;const {defIds:_0x127cc5}=_0x11ae8d;return!_0x127cc5||_0x127cc5[_0x5b3793(0xd4)]===0x0?_0x35ba9e:_0x35ba9e[_0x5b3793(0xc0)]==='defs'&&((_0x11ee09=_0x35ba9e[_0x5b3793(0xc4)])!=null&&_0x11ee09['length'])?{..._0x35ba9e,'children':_0x35ba9e[_0x5b3793(0xc4)][_0x5b3793(0x11c)](_0x3973fa=>typeof _0x3973fa[_0x5b3793(0xe9)]['id']==_0x5b3793(0xe6)&&_0x127cc5&&_0x127cc5['includes'](_0x3973fa[_0x5b3793(0xe9)]['id'])?{..._0x3973fa,'attrs':{..._0x3973fa[_0x5b3793(0xe9)],'id':_0x3973fa[_0x5b3793(0xe9)]['id']+_0x11ae8d[_0x5b3793(0x101)]}}:_0x3973fa)}:_0x35ba9e;}function Oe(){const _0x13d5a0=_0x212209;return Math['random']()[_0x13d5a0(0x121)](0x24)['substring'](0x2,0x8);}k[_0x212209(0x11b)]=_0x212209(0x123);const we={'tag':_0x212209(0xc7),'attrs':{'xmlns':_0x212209(0xcf),'fill':'none','viewBox':_0x212209(0xe1),'width':_0x212209(0x146),'height':_0x212209(0x146)},'children':[{'tag':_0x212209(0x140),'attrs':{'fill':_0x212209(0x158),'d':_0x212209(0x10a)}},{'tag':_0x212209(0x140),'attrs':{'fill':_0x212209(0x158),'d':_0x212209(0x155),'fillRule':_0x212209(0x139),'clipRule':_0x212209(0x139)}}]},W=_0x3da331(function(_0x5f3137,_0x326ca8){const _0x4d201b=_0x212209;return _0x3b18f7(k,Object[_0x4d201b(0x103)]({},_0x5f3137,{'id':_0x4d201b(0x107),'ref':_0x326ca8,'icon':we}));});W['displayName']=_0x212209(0xf5);class L extends _0x55618e{constructor(){const _0x140637=_0x212209;super(...arguments),u(this,_0x140637(0xca),new Set()),u(this,_0x140637(0x109),new Set());}['registerSharedOperation'](_0x5eb6de){const _0x596da5=_0x212209;return this[_0x596da5(0xca)][_0x596da5(0x12b)](_0x5eb6de),_0x49de3d(()=>this[_0x596da5(0xca)]['delete'](_0x5eb6de));}[_0x212209(0x113)](_0x59ef3a){const _0x15f9e4=_0x212209;return this[_0x15f9e4(0x109)][_0x15f9e4(0x12b)](_0x59ef3a),_0x49de3d(()=>this[_0x15f9e4(0x109)][_0x15f9e4(0x11d)](_0x59ef3a));}[_0x212209(0x145)](_0x3aba71){const _0x375381=_0x212209;return this[_0x375381(0xca)][_0x375381(0xf0)](_0x3aba71);}[_0x212209(0xb5)](_0x587b86){const _0x2abe67=_0x212209;return Array[_0x2abe67(0x122)](this[_0x2abe67(0x109)])[_0x2abe67(0x11c)](_0x4e6010=>_0x4e6010(_0x587b86));}}var Ne=Object[_0x212209(0xe3)],Y=(_0x33ec13,_0x2487e2,_0x59d65b,_0x133056)=>{const _0x140ba3=_0x212209;for(var _0x2aa16b=_0x133056>0x1?void 0x0:_0x133056?Ne(_0x2487e2,_0x59d65b):_0x2487e2,_0x2db541=_0x33ec13[_0x140ba3(0xd4)]-0x1,_0x29e2b6;_0x2db541>=0x0;_0x2db541--)(_0x29e2b6=_0x33ec13[_0x2db541])&&(_0x2aa16b=_0x29e2b6(_0x2aa16b)||_0x2aa16b);return _0x2aa16b;},_=(_0x11bfc9,_0x456b72)=>(_0x29331d,_0x1a1d74)=>_0x456b72(_0x29331d,_0x1a1d74,_0x11bfc9);let S=class extends _0x4463b3{constructor(_0x8a84bd,_0x5188a0,_0x3c8795){const _0x59c4ef=_0x212209;super(),u(this,_0x59c4ef(0x126),new Map()),(this[_0x59c4ef(0x10b)]=_0x8a84bd,this[_0x59c4ef(0x12a)]=_0x5188a0,this[_0x59c4ef(0xf1)]=_0x3c8795,this[_0x59c4ef(0xbc)]());}async[_0x212209(0x138)](_0x46faf5){const _0x4bd9cd=_0x212209;return this[_0x4bd9cd(0x126)][_0x4bd9cd(0xf0)](_0x46faf5)||await this[_0x4bd9cd(0x118)](_0x46faf5),this[_0x4bd9cd(0x126)]['get'](_0x46faf5);}[_0x212209(0x14c)](_0x1043dd){const _0x2ad063=_0x212209;var _0x16a870;return(_0x16a870=this[_0x2ad063(0x126)][_0x2ad063(0xc5)](_0x1043dd))!=null?_0x16a870:null;}['_init'](){const _0x2d4969=_0x212209;this[_0x2d4969(0x10b)][_0x2d4969(0xbb)](_0x122966['UNIVER_SHEET'])[_0x2d4969(0xd1)](_0x481522(this[_0x2d4969(0x151)]))['subscribe'](async _0x285979=>{const _0x5ac55d=_0x2d4969,_0x49929e=_0x285979[_0x5ac55d(0x111)]();this[_0x5ac55d(0x126)][_0x5ac55d(0xf0)](_0x49929e)||this['_startLiveShareCoordinator'](_0x49929e);}),this[_0x2d4969(0x10b)]['getTypeOfUnitDisposed$'](_0x122966['UNIVER_SHEET'])[_0x2d4969(0xd1)](_0x481522(this['dispose$']))[_0x2d4969(0x12c)](_0x2f466f=>{const _0x12ea79=_0x2d4969,_0x50721f=_0x2f466f['getUnitId'](),_0x467659=this[_0x12ea79(0x126)][_0x12ea79(0xc5)](_0x50721f);_0x467659==null||_0x467659['dispose']();});}async['_startLiveShareCoordinator'](_0x6ef9e5){const _0x3bf8c=_0x212209,_0x411eea=await this[_0x3bf8c(0xf1)][_0x3bf8c(0xfd)](_0x6ef9e5),_0x44fb8b=this[_0x3bf8c(0x12a)][_0x3bf8c(0xd7)](N,_0x6ef9e5,_0x411eea);return _0x44fb8b[_0x3bf8c(0x10f)](),this[_0x3bf8c(0x126)][_0x3bf8c(0xff)](_0x6ef9e5,_0x44fb8b),_0x44fb8b;}};S=Y([_(0x0,_0x399f38),_(0x1,_0x2d419c(_0x164169)),_(0x2,_0x2d419c(_0x466307))],S);var c=(_0x1b5a0f=>(_0x1b5a0f[_0x212209(0xd3)]=_0x212209(0xba),_0x1b5a0f['IDLE']=_0x212209(0x105),_0x1b5a0f['FOLLOWING']=_0x212209(0x141),_0x1b5a0f[_0x212209(0x11f)]=_0x212209(0x114),_0x1b5a0f[_0x212209(0xed)]=_0x212209(0x130),_0x1b5a0f))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4463b3{constructor(_0x45714e,_0x2d75be,_0x364172,_0x41fd1f,_0x1b1456){const _0x4150b1=_0x212209;super(),u(this,_0x4150b1(0x112),new _0x31595c('idle')),u(this,'status$',this['_status$'][_0x4150b1(0x108)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x4150b1(0x13a),null),(this[_0x4150b1(0x100)]=_0x45714e,this['_collabSession']=_0x2d75be,this[_0x4150b1(0x14e)]=_0x364172,this[_0x4150b1(0xcc)]=_0x41fd1f,this['_commandService']=_0x1b1456);}get[_0x212209(0xbd)](){const _0x6f2ef6=_0x212209;return this[_0x6f2ef6(0x112)][_0x6f2ef6(0xfb)]();}[_0x212209(0xc6)](){const _0x2f7ad6=_0x212209;var _0x5f48f3;(_0x5f48f3=this[_0x2f7ad6(0xe0)])==null||_0x5f48f3[_0x2f7ad6(0xc6)](),this[_0x2f7ad6(0x112)][_0x2f7ad6(0xd0)](_0x2f7ad6(0x105)),this[_0x2f7ad6(0x112)]['complete']();}['getStatus'](){const _0x2fb767=_0x212209;return this[_0x2fb767(0xbd)];}[_0x212209(0x10f)](){const _0x511e29=_0x212209;this[_0x511e29(0xbc)]||(this['_init']=!0x0,this[_0x511e29(0x14f)][_0x511e29(0x14a)][_0x511e29(0xd1)](_0x481522(this[_0x511e29(0x151)]))[_0x511e29(0x12c)](_0x295680=>{const _0x5dcf27=_0x511e29;switch(_0x295680){case _0x4a6813[_0x5dcf27(0xd3)]:this[_0x5dcf27(0xda)]();break;case _0x4a6813['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0x511e29(0xd2)][_0x511e29(0xd1)](_0x481522(this[_0x511e29(0x151)]))[_0x511e29(0x12c)](_0x2bf3da=>{const _0x3b7c99=_0x511e29,{eventID:_0x4385e4}=_0x2bf3da;switch(_0x4385e4){case _0x6609c9[_0x3b7c99(0x13e)]:this[_0x3b7c99(0x110)](_0x2bf3da);break;case _0x6609c9[_0x3b7c99(0x12f)]:this[_0x3b7c99(0x10c)](_0x2bf3da);break;case _0x6609c9[_0x3b7c99(0x106)]:this[_0x3b7c99(0x144)]();break;case _0x6609c9[_0x3b7c99(0x135)]:this[_0x3b7c99(0x156)](_0x2bf3da);break;}}));}['tryStartPresenting'](){const _0x214b67=_0x212209;this[_0x214b67(0x14f)][_0x214b67(0x149)]({'eventID':_0x6609c9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x214b67(0x100)],'userID':this['_collabSession']['getMemberID']()}},this[_0x214b67(0x100)]);}[_0x212209(0xe2)](){const _0x4fbf1e=_0x212209;this[_0x4fbf1e(0xbd)]===_0x4fbf1e(0x130)&&(this['_status$'][_0x4fbf1e(0xd0)](_0x4fbf1e(0x105)),this[_0x4fbf1e(0x14f)][_0x4fbf1e(0x149)]({'eventID':_0x6609c9[_0x4fbf1e(0x106)],'data':{'unitID':this['_unitID']}},this[_0x4fbf1e(0x100)]));}[_0x212209(0x12d)](){const _0x185a35=_0x212209;this[_0x185a35(0xbd)]===_0x185a35(0x114)&&(this['_status$'][_0x185a35(0xd0)](_0x185a35(0x141)),this[_0x185a35(0xe8)]());}['stopFollowing'](){const _0xf8cb6e=_0x212209;this[_0xf8cb6e(0xbd)]===_0xf8cb6e(0x141)&&this[_0xf8cb6e(0x102)]();}['_handleNewHost'](_0xda0b84){const _0x4a3aba=_0x212209,{presenter:_0x33fcdd}=_0xda0b84[_0x4a3aba(0xe5)],_0x1220b1=this[_0x4a3aba(0x14f)][_0x4a3aba(0xb8)]();this[_0x4a3aba(0x13a)]=_0x33fcdd,_0x33fcdd===_0x1220b1?(this['_stopFollowing'](),this[_0x4a3aba(0x147)]()):this[_0x4a3aba(0xbd)]!=='not-following'&&(this[_0x4a3aba(0x153)](),this[_0x4a3aba(0xe8)]());}[_0x212209(0xce)](){const _0x1d803d=_0x212209,_0x589e6d={'eventID':_0x6609c9[_0x1d803d(0xf4)]};this[_0x1d803d(0x14f)]['send'](_0x589e6d,this[_0x1d803d(0x100)]);}[_0x212209(0x144)](){const _0x319b94=_0x212209;this[_0x319b94(0x13a)]=null,this[_0x319b94(0xbd)]!==_0x319b94(0x130)&&this[_0x319b94(0xf3)]();}['_handleNewChangeSets'](_0x529315){const _0x204ad7=_0x212209;if(this['_status']===_0x204ad7(0x141)&&this[_0x204ad7(0x13a)]===_0x529315[_0x204ad7(0xe5)][_0x204ad7(0xc2)]){const _0x21459f=_0x1b3259(_0x529315[_0x204ad7(0xe5)])['mutations'][_0x204ad7(0xee)]()[_0x204ad7(0xc9)](_0x16b2ca=>_0x16b2ca['id']===_0x3acb22['id']);if(_0x21459f){const _0x492762=_0x21459f[_0x204ad7(0xd5)]['unitId'],_0x4c0504=_0x21459f[_0x204ad7(0xd5)][_0x204ad7(0xfe)]['id'];setTimeout(()=>{const _0xa00a93=_0x204ad7;this[_0xa00a93(0xbf)]['executeCommand'](_0x39b917['id'],{'unitId':_0x492762,'subUnitId':_0x4c0504},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x427e67=_0x212209;this[_0x427e67(0x112)][_0x427e67(0xd0)]('presenting');const _0x12554e=new Map(),_0x20209c=this['_commandDisposable']=new _0x2d0575();_0x20209c[_0x427e67(0x12b)](_0x49de3d(()=>{const _0x3a454b=_0x427e67;_0x12554e[_0x3a454b(0xcd)](_0x159d4c=>_0x159d4c[_0x3a454b(0x148)]()),_0x12554e[_0x3a454b(0x132)]();})),_0x20209c['add'](this[_0x427e67(0xbf)][_0x427e67(0x137)](_0x3d26aa=>{const _0x33595e=_0x427e67;var _0xd2a369;if(_0x3d26aa[_0x33595e(0xdd)]!==_0x37dba8['OPERATION']||!this[_0x33595e(0xcc)][_0x33595e(0x145)](_0x3d26aa['id']))return;const {id:_0x2fc450}=_0x3d26aa;let _0x3da9e1;_0x12554e[_0x33595e(0xf0)](_0x2fc450)?_0x3da9e1=_0x12554e['get'](_0x2fc450):(_0x3da9e1=new _0x5b042d(),_0x12554e['set'](_0x2fc450,_0x3da9e1),_0x3da9e1[_0x33595e(0xd1)](_0x44f286((_0xd2a369=this[_0x33595e(0x14e)][_0x33595e(0x127)](Ce))!=null?_0xd2a369:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x43f462=>{const _0x3ec4c1=_0x33595e;this[_0x3ec4c1(0x14f)][_0x3ec4c1(0x149)]({'eventID':_0x6609c9[_0x3ec4c1(0x12f)],'data':{'unitID':this['_unitID'],'operations':{[_0x43f462['id']]:{'id':_0x43f462['id'],'params':JSON['stringify'](_0x43f462['params'])}}}},this[_0x3ec4c1(0x100)]);})),_0x3da9e1['next'](_0x3d26aa);})),this[_0x427e67(0xcc)]['getInitialStates'](this[_0x427e67(0x100)])[_0x427e67(0xcd)](_0x2b76ea=>this[_0x427e67(0x14f)][_0x427e67(0x149)]({'eventID':_0x6609c9[_0x427e67(0x12f)],'data':{'unitID':this[_0x427e67(0x100)],'operations':{[_0x2b76ea['id']]:{'id':_0x2b76ea['id'],'params':JSON[_0x427e67(0x150)](_0x2b76ea[_0x427e67(0xd5)])}}}},this[_0x427e67(0x100)]));}[_0x212209(0x153)](){const _0x2f0849=_0x212209;var _0x313ce8;this[_0x2f0849(0x112)][_0x2f0849(0xd0)](_0x2f0849(0x105)),(_0x313ce8=this[_0x2f0849(0xe0)])==null||_0x313ce8['dispose'](),this[_0x2f0849(0xe0)]=null;}[_0x212209(0xe8)](){const _0xe615f7=_0x212209;var _0x34a80c;(_0x34a80c=this[_0xe615f7(0xe0)])==null||_0x34a80c[_0xe615f7(0xc6)](),this[_0xe615f7(0x112)][_0xe615f7(0xd0)](_0xe615f7(0x141));}['_beIdle'](){const _0x68bcbd=_0x212209;var _0x52fae6;this[_0x68bcbd(0x112)][_0x68bcbd(0xd0)]('idle'),(_0x52fae6=this[_0x68bcbd(0xe0)])==null||_0x52fae6[_0x68bcbd(0xc6)](),this[_0x68bcbd(0xe0)]=null;}[_0x212209(0x102)](){const _0x95fc82=_0x212209;var _0x211633;this[_0x95fc82(0x112)][_0x95fc82(0xd0)](_0x95fc82(0x114)),(_0x211633=this[_0x95fc82(0xe0)])==null||_0x211633['dispose']();}[_0x212209(0x10c)](_0x5e2e2d){const _0x13eef3=_0x212209;if(['presenting',_0x13eef3(0x114),_0x13eef3(0xba)][_0x13eef3(0xb6)](this[_0x13eef3(0xbd)])||!_0x5e2e2d[_0x13eef3(0xe5)]['presenter']||_0x5e2e2d[_0x13eef3(0xe5)]['presenter']===this[_0x13eef3(0x14f)][_0x13eef3(0xb8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xe05760=_0x5e2e2d[_0x13eef3(0xe5)]['operations'];Object[_0x13eef3(0xeb)](_0xe05760)[_0x13eef3(0xcd)](_0x38221c=>{const _0x256db7=_0x13eef3;this[_0x256db7(0xbf)][_0x256db7(0xdf)](_0x38221c['id'],_0x38221c[_0x256db7(0xd5)]?JSON[_0x256db7(0x136)](_0x38221c[_0x256db7(0xd5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3fe3c7=_0x212209;var _0x3488fe;this[_0x3fe3c7(0x112)][_0x3fe3c7(0xd0)](_0x3fe3c7(0xba)),(_0x3488fe=this[_0x3fe3c7(0xe0)])==null||_0x3488fe[_0x3fe3c7(0xc6)]();}['_handleOnline'](){const _0x2b9bb4=_0x212209;this[_0x2b9bb4(0x112)][_0x2b9bb4(0xd0)](_0x2b9bb4(0x105)),this['_fetchOperations']();}};N=Y([_(0x2,_0x424ac1),_(0x3,_0x2d419c(L)),_(0x4,_0x48309a)],N);function Le(){const _0xa0f88c=_0x212209,_0x56d1c0=_0x41ee86(S),_0x57cfcc=_0x41ee86(_0x399f38),_0x43424c=_0x1e7148(()=>_0x57cfcc[_0xa0f88c(0x143)](_0x122966[_0xa0f88c(0xcb)]),void 0x0,!0x1,[]),[_0x494772,_0x4ee001]=_0x871941(null),[_0x5bbf0f,_0x1cadc4]=_0x871941(c['IDLE']),_0x2abebb=_0x2dcd15(null);return _0x823b3a(()=>(_0x43424c&&_0x56d1c0[_0xa0f88c(0x138)](_0x43424c[_0xa0f88c(0x111)]())[_0xa0f88c(0x124)](_0x3acbce=>{const _0x89a18c=_0xa0f88c;_0x4ee001(_0x3acbce),_0x2abebb['current']=_0x3acbce[_0x89a18c(0xde)][_0x89a18c(0x12c)](_0x1b0956=>{_0x1cadc4(_0x1b0956);});}),()=>{const _0x3ac011=_0xa0f88c;var _0x436cfc;(_0x436cfc=_0x2abebb[_0x3ac011(0x120)])==null||_0x436cfc[_0x3ac011(0x133)](),_0x2abebb['current']=null;}),[_0x43424c,_0x56d1c0]),_0x494772?_0x1116ce(_0x40d765,{'align':_0xa0f88c(0xdc),'disabled':_0x5bbf0f===c[_0xa0f88c(0xd3)],'className':_0xa0f88c(0xb4),'overlay':_0x1116ce(Re,{'status':_0x5bbf0f,'coordinator':_0x494772}),'children':_0x1116ce(_0xa0f88c(0x129),{'className':_0x5b6799(_0xa0f88c(0x11e),{'univer-cursor-not-allowed':_0x5bbf0f===c[_0xa0f88c(0xd3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5bbf0f!==c[_0xa0f88c(0xd3)]}),'type':_0xa0f88c(0x129),'children':_0x1116ce(W,{'className':'univer-size-4'})})}):null;}function Re(_0x59e053){const _0x2423b0=_0x212209,{status:_0x54a23c,coordinator:_0x525c3f}=_0x59e053;switch(_0x54a23c){case c[_0x2423b0(0x119)]:return _0x1116ce($e,{'coordinator':_0x525c3f});case c['FOLLOWING']:return _0x1116ce(xe,{'coordinator':_0x525c3f});case c[_0x2423b0(0x11f)]:return _0x1116ce(Pe,{'coordinator':_0x525c3f});case c['OFFLINE']:return _0x1116ce(Te,{});case c[_0x2423b0(0xed)]:return _0x1116ce(Ae,{'coordinator':_0x525c3f});default:return null;}}function $e(_0x39691e){const _0x3633a4=_0x212209,{coordinator:_0x3ff40c}=_0x39691e;return _0x17f549(_0x315589,{'children':[_0x1116ce(_0x3633a4(0x116),{'className':_0x3633a4(0xf6),'children':_0x3633a4(0xf7)}),_0x1116ce(_0x37fd1d,{'onClick':()=>_0x3ff40c[_0x3633a4(0xc8)](),'children':_0x3633a4(0x157)})]});}function xe(_0x34ec7d){const _0x2836b2=_0x212209,{coordinator:_0x4dcd0f}=_0x34ec7d;return _0x17f549(_0x315589,{'children':[_0x1116ce(_0x2836b2(0x116),{'className':_0x2836b2(0xf6),'children':_0x2836b2(0x14b)}),_0x1116ce(_0x37fd1d,{'onClick':()=>_0x4dcd0f['stopFollowing'](),'children':'Stop\x20following'})]});}function Pe(_0x1d7899){const _0x4bc041=_0x212209,{coordinator:_0xfd916d}=_0x1d7899;return _0x17f549(_0x315589,{'children':[_0x1116ce('div',{'className':_0x4bc041(0xf6),'children':_0x4bc041(0x13b)}),_0x1116ce(_0x37fd1d,{'variant':_0x4bc041(0xea),'onClick':()=>_0xfd916d[_0x4bc041(0x12d)](),'children':_0x4bc041(0xe7)})]});}function _0xaf5d(_0x95f4ae,_0x441ed2){_0x95f4ae=_0x95f4ae-0xb3;const _0x384ae5=_0x384a();let _0xaf5d86=_0x384ae5[_0x95f4ae];return _0xaf5d86;}function Ae(_0x1c7874){const _0x35222c=_0x212209,{coordinator:_0x219081}=_0x1c7874;return _0x17f549(_0x315589,{'children':[_0x1116ce(_0x35222c(0x116),{'className':_0x35222c(0xf6),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x1116ce(_0x37fd1d,{'variant':_0x35222c(0xef),'onClick':()=>_0x219081[_0x35222c(0xe2)](),'children':_0x35222c(0xc3)})]});}function Te(){const _0x2b2d51=_0x212209;return _0x1116ce(_0x315589,{'children':_0x2b2d51(0x152)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x193af7,_0xe32e82,_0x2b8e60,_0x590e74)=>{const _0x72bce7=_0x212209;for(var _0x1a25e5=_0x590e74>0x1?void 0x0:_0x590e74?Fe(_0xe32e82,_0x2b8e60):_0xe32e82,_0xc7d74d=_0x193af7[_0x72bce7(0xd4)]-0x1,_0x22f634;_0xc7d74d>=0x0;_0xc7d74d--)(_0x22f634=_0x193af7[_0xc7d74d])&&(_0x1a25e5=_0x22f634(_0x1a25e5)||_0x1a25e5);return _0x1a25e5;},A=(_0x5e9ff5,_0x2bd29e)=>(_0x439b97,_0x2e6bb1)=>_0x2bd29e(_0x439b97,_0x2e6bb1,_0x5e9ff5);let m=class extends _0x55618e{constructor(_0x3940b7,_0x3eb98b){const _0x4ce1c5=_0x212209;super(),this[_0x4ce1c5(0x12a)]=_0x3940b7,this[_0x4ce1c5(0x13c)]=_0x3eb98b,this[_0x4ce1c5(0xb3)]();}[_0x212209(0xb3)](){const _0x569064=_0x212209;this[_0x569064(0x128)](this[_0x569064(0x13c)][_0x569064(0xfa)](_0x59d57b['HEADER_MENU'],()=>_0x3dc26f(Le,this[_0x569064(0x12a)])));}};m=He([A(0x0,_0x2d419c(_0x164169)),A(0x1,_0x135352)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x59a8ae,_0x1dfc4d,_0x438810,_0x107b73)=>{const _0x1dc2ca=_0x212209;for(var _0x23e481=_0x107b73>0x1?void 0x0:_0x107b73?Ue(_0x1dfc4d,_0x438810):_0x1dfc4d,_0x110fbb=_0x59a8ae[_0x1dc2ca(0xd4)]-0x1,_0x53ba83;_0x110fbb>=0x0;_0x110fbb--)(_0x53ba83=_0x59a8ae[_0x110fbb])&&(_0x23e481=_0x53ba83(_0x23e481)||_0x23e481);return _0x23e481;},je=(_0x5851aa,_0xba2d04)=>(_0x4ffac4,_0x5ba660)=>_0xba2d04(_0x4ffac4,_0x5ba660,_0x5851aa);let I=class extends _0x55618e{constructor(_0x441dab){const _0x1fb2a0=_0x212209;super(),this[_0x1fb2a0(0xcc)]=_0x441dab,this[_0x1fb2a0(0xbc)]();}['_init'](){const _0x1b511d=_0x212209;[_0xb13517['id'],_0xeebac6['id'],_0x39b917['id']][_0x1b511d(0xcd)](_0x9cddbd=>{const _0x25d193=_0x1b511d;this[_0x25d193(0x128)](this['_liveShareService'][_0x25d193(0xec)](_0x9cddbd));});}};I=Ve([je(0x0,_0x2d419c(L))],I);var Me=Object['defineProperty'],ke=Object[_0x212209(0xe3)],Ge=(_0x1481e8,_0x1e7ddf,_0x131cd1)=>_0x1e7ddf in _0x1481e8?Me(_0x1481e8,_0x1e7ddf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131cd1}):_0x1481e8[_0x1e7ddf]=_0x131cd1,We=(_0x4314f6,_0x59e6db,_0x1d05a3,_0x413495)=>{for(var _0x1b6340=_0x413495>0x1?void 0x0:_0x413495?ke(_0x59e6db,_0x1d05a3):_0x59e6db,_0x165a49=_0x4314f6['length']-0x1,_0x1d96a2;_0x165a49>=0x0;_0x165a49--)(_0x1d96a2=_0x4314f6[_0x165a49])&&(_0x1b6340=_0x1d96a2(_0x1b6340)||_0x1b6340);return _0x1b6340;},F=(_0xdb0df7,_0x4442f0)=>(_0x9dc101,_0x1b6d00)=>_0x4442f0(_0x9dc101,_0x1b6d00,_0xdb0df7),B=(_0x36f99d,_0x595ab3,_0x4e81e9)=>Ge(_0x36f99d,typeof _0x595ab3!=_0x212209(0xfc)?_0x595ab3+'':_0x595ab3,_0x4e81e9);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x5b2afb{constructor(_0x327ac7=T,_0x5e757f,_0x4810c9){const _0x1b5369=_0x212209;super(),this['_config']=_0x327ac7,this[_0x1b5369(0x12a)]=_0x5e757f,this['_configService']=_0x4810c9;const {..._0x46f431}=_0x51a3b6({},T,this[_0x1b5369(0x12e)]);this[_0x1b5369(0x14e)][_0x1b5369(0x10d)](ye,_0x46f431);}[_0x212209(0x125)](){const _0x387012=_0x212209;_0x1d11dc(this[_0x387012(0x12a)],_0x40f34e([[L],[S],[I],[m]],this['_config'][_0x387012(0x117)])),_0x5d3d6c(this[_0x387012(0x12a)],[[I]]);}[_0x212209(0xd9)](){const _0x8e09d3=_0x212209;_0x5d3d6c(this[_0x8e09d3(0x12a)],[[m]]);}};B(b,'type',_0x122966[_0x212209(0xf9)]),B(b,'pluginName',Ye),b=We([_0x163697(_0x3d6035),F(0x1,_0x2d419c(_0x164169)),F(0x2,_0x424ac1)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x2d98(_0x2553c3,_0x2b8c92){_0x2553c3=_0x2553c3-0xa3;const _0x19a9e5=_0x19a9();let _0x2d98a7=_0x19a9e5[_0x2553c3];return _0x2d98a7;}const _0x58ebac=_0x2d98;(function(_0x1b5158,_0x2d6e85){const _0x102f7a=_0x2d98,_0x33df2e=_0x1b5158();while(!![]){try{const _0x2a9145=-parseInt(_0x102f7a(0xa4))/0x1+parseInt(_0x102f7a(0xbd))/0x2*(-parseInt(_0x102f7a(0xbc))/0x3)+parseInt(_0x102f7a(0xa6))/0x4+-parseInt(_0x102f7a(0xb2))/0x5+parseInt(_0x102f7a(0xb5))/0x6*(-parseInt(_0x102f7a(0xab))/0x7)+parseInt(_0x102f7a(0xc6))/0x8*(parseInt(_0x102f7a(0xc2))/0x9)+-parseInt(_0x102f7a(0xb9))/0xa*(-parseInt(_0x102f7a(0xa8))/0xb);if(_0x2a9145===_0x2d6e85)break;else _0x33df2e['push'](_0x33df2e['shift']());}catch(_0xfb7728){_0x33df2e['push'](_0x33df2e['shift']());}}}(_0x19a9,0x58247));import{LiveShareController as _0x246df3,LiveShareStatus as _0x2b7146}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4d931d}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4f881e}from'@univerjs/sheets';import{SetScrollOperation as _0x5e8c4c}from'@univerjs/sheets-ui';import{FRange as _0x233742}from'@univerjs/sheets/facade';import{FUniver as _0x54651b,FEnum as _0x9b8d03}from'@univerjs/core/facade';class I extends _0x233742{[_0x58ebac(0xa5)](_0xafb6d,_0x2e64ea,_0x37d244,_0x4915ef,_0x2e92ed){const _0x132e8c=_0x58ebac,_0x5c09ff=_0xafb6d[_0x132e8c(0xba)](_0x246df3),_0x451d05=_0xafb6d[_0x132e8c(0xba)](_0x4d931d),_0x479486=_0x2e64ea[_0x132e8c(0xb7)](),_0x103c0c=_0x2e64ea[_0x132e8c(0xa3)](),_0xcff5f6=_0x5c09ff['getLiveShareCoordinatorSync'](_0x479486);(_0xcff5f6==null?void 0x0:_0xcff5f6[_0x132e8c(0xaa)]())!==_0x2b7146[_0x132e8c(0xa9)]||(_0x37d244[_0x132e8c(0xb4)]()!==_0x103c0c[_0x132e8c(0xb4)]()&&this[_0x132e8c(0xad)][_0x132e8c(0xc3)](_0x4f881e['id'],{'unitId':_0x479486,'subUnitId':_0x37d244['getSheetId']()}),!_0x451d05[_0x132e8c(0xbb)](_0x479486))||_0x2e92ed['syncExecuteCommand'](_0x5e8c4c['id'],{'unitId':_0x2e64ea[_0x132e8c(0xb7)](),'sheetId':_0x37d244[_0x132e8c(0xb4)](),'sheetViewStartRow':_0x4915ef[_0x132e8c(0xae)],'sheetViewStartColumn':_0x4915ef['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x233742[_0x58ebac(0xbf)](I);function _0x19a9(){const _0x825a3a=['stopPresenting','extend','startFollowing','startPresenting','9lzfanf','executeCommand','IDLE','tryStartPresenting','3709864teeakw','getActiveSheet','518747vLCNuB','_initialize','1842172sWYWzp','LiveShareStatusEnum','187BWnZfC','PRESENTING','getStatus','20237xmKVDG','_injector','_commandService','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','getId','2883395RxZqms','getLiveShareCoordinatorSync','getSheetId','582RJvqaR','getActiveWorkbook','getUnitId','stopFollowing','714520mRwKIG','get','getRenderById','3baRWiY','804152tMjNli'];_0x19a9=function(){return _0x825a3a;};return _0x19a9();}class m extends _0x54651b{['getLiveShareStatus'](){const _0x55900e=_0x58ebac;var _0x4b4d6d,_0x22d7c6;const _0x3a7b0a=this[_0x55900e(0xac)][_0x55900e(0xba)](_0x246df3),_0x22ef7a=(_0x4b4d6d=this[_0x55900e(0xb6)]())==null?void 0x0:_0x4b4d6d[_0x55900e(0xb1)]();if(!_0x22ef7a)throw new Error(_0x55900e(0xb0));const _0x37783a=_0x3a7b0a[_0x55900e(0xb3)](_0x22ef7a);return(_0x22d7c6=_0x37783a==null?void 0x0:_0x37783a['getStatus']())!=null?_0x22d7c6:_0x2b7146[_0x55900e(0xc4)];}[_0x58ebac(0xc0)](){const _0x27b17a=_0x58ebac;var _0x40d520;const _0x4ba25b=this[_0x27b17a(0xac)]['get'](_0x246df3),_0x465bf2=(_0x40d520=this[_0x27b17a(0xb6)]())==null?void 0x0:_0x40d520[_0x27b17a(0xb1)]();if(!_0x465bf2)throw new Error('No\x20active\x20workbook\x20found.');const _0xa4f49=_0x4ba25b[_0x27b17a(0xb3)](_0x465bf2);if(!_0xa4f49)throw new Error(_0x27b17a(0xaf));_0xa4f49[_0x27b17a(0xc0)]();}[_0x58ebac(0xb8)](){const _0x586c92=_0x58ebac;var _0x2d67c2;const _0x494fd3=this[_0x586c92(0xac)][_0x586c92(0xba)](_0x246df3),_0x4b5211=(_0x2d67c2=this[_0x586c92(0xb6)]())==null?void 0x0:_0x2d67c2[_0x586c92(0xb1)]();if(!_0x4b5211)throw new Error(_0x586c92(0xb0));const _0x170954=_0x494fd3[_0x586c92(0xb3)](_0x4b5211);if(!_0x170954)throw new Error(_0x586c92(0xaf));_0x170954[_0x586c92(0xb8)]();}[_0x58ebac(0xc1)](){const _0x2690f4=_0x58ebac;var _0x32e6ea;const _0x390d6b=this[_0x2690f4(0xac)]['get'](_0x246df3),_0x3e0b07=(_0x32e6ea=this[_0x2690f4(0xb6)]())==null?void 0x0:_0x32e6ea['getId']();if(!_0x3e0b07)throw new Error(_0x2690f4(0xb0));const _0x58bc2a=_0x390d6b['getLiveShareCoordinatorSync'](_0x3e0b07);if(!_0x58bc2a)throw new Error(_0x2690f4(0xaf));_0x58bc2a[_0x2690f4(0xc5)]();}[_0x58ebac(0xbe)](){const _0x2e01a8=_0x58ebac;var _0x33168f;const _0x55d837=this['_injector'][_0x2e01a8(0xba)](_0x246df3),_0x35552a=(_0x33168f=this['getActiveWorkbook']())==null?void 0x0:_0x33168f['getId']();if(!_0x35552a)throw new Error('No\x20active\x20workbook\x20found.');const _0x5eaccd=_0x55d837[_0x2e01a8(0xb3)](_0x35552a);if(!_0x5eaccd)throw new Error(_0x2e01a8(0xaf));_0x5eaccd['stopPresenting']();}}_0x54651b[_0x58ebac(0xbf)](m);class C extends _0x9b8d03{get[_0x58ebac(0xa7)](){return _0x2b7146;}}_0x9b8d03[_0x58ebac(0xbf)](C);
1
+ const _0x1f0ebe=_0x3a53;(function(_0x2aa6b5,_0xe31e3a){const _0x20d3db=_0x3a53,_0x54e018=_0x2aa6b5();while(!![]){try{const _0xafa0b3=-parseInt(_0x20d3db(0x97))/0x1+parseInt(_0x20d3db(0xa5))/0x2+parseInt(_0x20d3db(0xa3))/0x3+-parseInt(_0x20d3db(0x8c))/0x4+parseInt(_0x20d3db(0x96))/0x5+-parseInt(_0x20d3db(0x93))/0x6+parseInt(_0x20d3db(0x99))/0x7*(parseInt(_0x20d3db(0xa0))/0x8);if(_0xafa0b3===_0xe31e3a)break;else _0x54e018['push'](_0x54e018['shift']());}catch(_0x4cb328){_0x54e018['push'](_0x54e018['shift']());}}}(_0x5b22,0x82d81));var l=Object[_0x1f0ebe(0xa2)],w=(_0x2b8bb3,_0x5eac3c,_0x5a55b2)=>_0x5eac3c in _0x2b8bb3?l(_0x2b8bb3,_0x5eac3c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a55b2}):_0x2b8bb3[_0x5eac3c]=_0x5a55b2,v=(_0xf9cab1,_0x4051f0,_0x42accb)=>w(_0xf9cab1,typeof _0x4051f0!=_0x1f0ebe(0xa1)?_0x4051f0+'':_0x4051f0,_0x42accb);function _0x3a53(_0x3f983c,_0x3dbb72){_0x3f983c=_0x3f983c-0x8a;const _0x5b22d4=_0x5b22();let _0x3a53bb=_0x5b22d4[_0x3f983c];return _0x3a53bb;}import{LiveShareController as _0x12adeb,LiveShareStatus as _0x169842}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5ee335,UniverInstanceType as _0x54312f}from'@univerjs/core';import{FUniver as _0x533f5e,FEnum as _0x561c9c}from'@univerjs/core/facade';class g extends _0x533f5e{constructor(){const _0xc7dc30=_0x1f0ebe;super(...arguments),v(this,_0xc7dc30(0x8e));}[_0x1f0ebe(0xa4)](_0x4ecc35){const _0x548fbc=_0x1f0ebe;this[_0x548fbc(0x8e)]=_0x4ecc35[_0x548fbc(0x8d)](_0x12adeb);}[_0x1f0ebe(0x8a)](){const _0x574cc8=_0x1f0ebe;var _0x2b8159;const _0xa7dac5=this[_0x574cc8(0x9b)]['get'](_0x5ee335)[_0x574cc8(0x9d)](_0x54312f[_0x574cc8(0x9a)]);if(!_0xa7dac5)throw new Error(_0x574cc8(0x92));const _0x2a17c2=_0xa7dac5[_0x574cc8(0x9f)](),_0x2d5bac=this['_liveShareController'][_0x574cc8(0x91)](_0x2a17c2);return(_0x2b8159=_0x2d5bac==null?void 0x0:_0x2d5bac[_0x574cc8(0x9c)]())!=null?_0x2b8159:_0x169842['IDLE'];}[_0x1f0ebe(0x98)](){const _0x5358c9=_0x1f0ebe,_0x3eb4cb=this[_0x5358c9(0x9b)][_0x5358c9(0x8d)](_0x5ee335)[_0x5358c9(0x9d)](_0x54312f[_0x5358c9(0x9a)]);if(!_0x3eb4cb)throw new Error(_0x5358c9(0x92));const _0xb6001=_0x3eb4cb['getUnitId'](),_0x1f0053=this[_0x5358c9(0x8e)][_0x5358c9(0x91)](_0xb6001);if(!_0x1f0053)throw new Error(_0x5358c9(0x8f));_0x1f0053['startFollowing']();}['stopFollowing'](){const _0x246e72=_0x1f0ebe,_0x5f023a=this[_0x246e72(0x9b)][_0x246e72(0x8d)](_0x5ee335)['getCurrentUnitOfType'](_0x54312f[_0x246e72(0x9a)]);if(!_0x5f023a)throw new Error(_0x246e72(0x92));const _0x24c294=_0x5f023a['getUnitId'](),_0x3829b8=this[_0x246e72(0x8e)][_0x246e72(0x91)](_0x24c294);if(!_0x3829b8)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3829b8[_0x246e72(0x90)]();}[_0x1f0ebe(0x95)](){const _0x628bce=_0x1f0ebe,_0x3da559=this['_injector'][_0x628bce(0x8d)](_0x5ee335)[_0x628bce(0x9d)](_0x54312f[_0x628bce(0x9a)]);if(!_0x3da559)throw new Error(_0x628bce(0x92));const _0x57ef11=_0x3da559[_0x628bce(0x9f)](),_0x8b12c8=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x57ef11);if(!_0x8b12c8)throw new Error(_0x628bce(0x8f));_0x8b12c8[_0x628bce(0x8b)]();}[_0x1f0ebe(0x9e)](){const _0x1a5f4e=_0x1f0ebe,_0x3c5b29=this[_0x1a5f4e(0x9b)]['get'](_0x5ee335)[_0x1a5f4e(0x9d)](_0x54312f['UNIVER_SHEET']);if(!_0x3c5b29)throw new Error(_0x1a5f4e(0x92));const _0x3fa1f0=_0x3c5b29['getUnitId'](),_0x252f2d=this['_liveShareController'][_0x1a5f4e(0x91)](_0x3fa1f0);if(!_0x252f2d)throw new Error(_0x1a5f4e(0x8f));_0x252f2d[_0x1a5f4e(0x9e)]();}}function _0x5b22(){const _0x5b528b=['UNIVER_SHEET','_injector','getStatus','getCurrentUnitOfType','stopPresenting','getUnitId','32GJvRhl','symbol','defineProperty','899784DfSlRy','_initialize','1088662LSQnLi','getLiveShareStatus','tryStartPresenting','2018268hMboof','get','_liveShareController','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopFollowing','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','67890iqmSss','LiveShareStatusEnum','startPresenting','1201825cQdWRV','760969jenJVb','startFollowing','1274287XxdDYJ'];_0x5b22=function(){return _0x5b528b;};return _0x5b22();}_0x533f5e['extend'](g);class f extends _0x561c9c{get[_0x1f0ebe(0x94)](){return _0x169842;}}_0x561c9c['extend'](f);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x523325=_0x3bb2;(function(_0x1e5fba,_0xee07ae){const _0x37dee8=_0x3bb2,_0x2a00af=_0x1e5fba();while(!![]){try{const _0x4ad799=parseInt(_0x37dee8(0x1fb))/0x1+-parseInt(_0x37dee8(0x1ea))/0x2*(-parseInt(_0x37dee8(0x227))/0x3)+-parseInt(_0x37dee8(0x266))/0x4+-parseInt(_0x37dee8(0x1f2))/0x5*(parseInt(_0x37dee8(0x1e1))/0x6)+parseInt(_0x37dee8(0x237))/0x7+-parseInt(_0x37dee8(0x21d))/0x8+parseInt(_0x37dee8(0x267))/0x9*(parseInt(_0x37dee8(0x21c))/0xa);if(_0x4ad799===_0xee07ae)break;else _0x2a00af['push'](_0x2a00af['shift']());}catch(_0x2f8e1d){_0x2a00af['push'](_0x2a00af['shift']());}}}(_0x31a8,0x82057));var J=Object[_0x523325(0x23a)],K=(_0x6a65cc,_0x486af9,_0x142150)=>_0x486af9 in _0x6a65cc?J(_0x6a65cc,_0x486af9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x142150}):_0x6a65cc[_0x486af9]=_0x142150,u=(_0x1b2838,_0x160b2b,_0xcabc02)=>K(_0x1b2838,typeof _0x160b2b!=_0x523325(0x20a)?_0x160b2b+'':_0x160b2b,_0xcabc02);import{Disposable as _0x4288e2,toDisposable as _0x33cd16,IUniverInstanceService as _0x23858b,Inject as _0x2da686,Injector as _0x2e4d33,IConfigService as _0x44da77,ICommandService as _0x2e2790,RxDisposable as _0x593b51,UniverInstanceType as _0x4a6cf9,DisposableCollection as _0x1e7053,CommandType as _0x44f067,DependentOn as _0x3b6d5f,Plugin as _0x239c09,merge as _0x3b760d,registerDependencies as _0x5d0170,mergeOverrideWithDependencies as _0x19d491,touchDependencies as _0x203a39}from'@univerjs/core';import{useDependency as _0x36d08c,useObservable as _0x80d253,IUIPartsService as _0x2c543b,BuiltInUIPart as _0x26783e,connectInjector as _0x2f196e}from'@univerjs/ui';import{jsx as _0x20467c,jsxs as _0x30eb29,Fragment as _0x2110ca}from'react/jsx-runtime';import{Dropdown as _0x2d1ff4,clsx as _0x421cb3,Button as _0x15baef}from'@univerjs/design';import{useRef as _0x5cba74,createElement as _0x2d0631,forwardRef as _0x544256,useState as _0x2694d7,useEffect as _0x21e70b}from'react';import{CollaborationEvent as _0x15aa26,parseProtocolChangeset as _0x177cfa}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3f0d22,SessionStatus as _0x4363e7,UniverCollaborationClientPlugin as _0x23938a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3f0c6a,SetWorksheetActiveOperation as _0x1c0e40}from'@univerjs/sheets';import{BehaviorSubject as _0x49a9db,Subject as _0x4907d6}from'rxjs';import{takeUntil as _0x4167b7,throttleTime as _0x201cc8}from'rxjs/operators';import{SetZoomRatioOperation as _0x2efd2d,SetScrollOperation as _0x543b0f}from'@univerjs/sheets-ui';function k({ref:_0x2364e4,..._0x41e632}){const _0x3f02f0=_0x523325,{icon:_0x1807a0,id:_0x70cc05,className:_0x27e1ef,extend:_0x53d0df,..._0x30beaa}=_0x41e632,_0xbffbf8=(_0x3f02f0(0x240)+_0x70cc05+'\x20'+(_0x27e1ef||''))['trim'](),_0x259142=_0x5cba74('_'+Oe());return G(_0x1807a0,''+_0x70cc05,{'defIds':_0x1807a0['defIds'],'idSuffix':_0x259142[_0x3f02f0(0x25c)]},{'ref':_0x2364e4,'className':_0xbffbf8,..._0x30beaa},_0x53d0df);}function G(_0x305a9c,_0x42ee26,_0x51c6a3,_0x44316b,_0x1d7a9c){const _0x2a277b=_0x523325;return _0x2d0631(_0x305a9c['tag'],{'key':_0x42ee26,...be(_0x305a9c,_0x51c6a3,_0x1d7a9c),..._0x44316b},(Ee(_0x305a9c,_0x51c6a3)[_0x2a277b(0x222)]||[])[_0x2a277b(0x214)]((_0x2031c4,_0x18ff24)=>G(_0x2031c4,_0x42ee26+'-'+_0x305a9c[_0x2a277b(0x1cb)]+'-'+_0x18ff24,_0x51c6a3,void 0x0,_0x1d7a9c)));}function be(_0x13a38e,_0x341fd1,_0x9c836a){const _0x3b38b2=_0x523325,_0x3ca4fe={..._0x13a38e[_0x3b38b2(0x243)]};_0x9c836a!=null&&_0x9c836a[_0x3b38b2(0x209)]&&_0x3ca4fe['fill']===_0x3b38b2(0x209)&&(_0x3ca4fe[_0x3b38b2(0x278)]=_0x9c836a[_0x3b38b2(0x209)]),_0x13a38e[_0x3b38b2(0x1cb)]===_0x3b38b2(0x22e)&&_0x3ca4fe['id']&&(_0x3ca4fe['id']=_0x3ca4fe['id']+_0x341fd1[_0x3b38b2(0x248)]),Object[_0x3b38b2(0x1f0)](_0x3ca4fe)[_0x3b38b2(0x264)](([_0x33bc02,_0x5c00b5])=>{const _0x57bc08=_0x3b38b2;_0x33bc02==='mask'&&typeof _0x5c00b5==_0x57bc08(0x22c)&&(_0x3ca4fe[_0x33bc02]=_0x5c00b5[_0x57bc08(0x1d8)](/url\(#(.*)\)/,'url(#$1'+_0x341fd1[_0x57bc08(0x248)]+')'));});const {defIds:_0x39b10e}=_0x341fd1;return!_0x39b10e||_0x39b10e['length']===0x0||(_0x13a38e[_0x3b38b2(0x1cb)]===_0x3b38b2(0x21a)&&_0x3ca4fe['xlink:href']&&(_0x3ca4fe[_0x3b38b2(0x1e5)]=_0x3ca4fe[_0x3b38b2(0x1e5)]+_0x341fd1['idSuffix']),Object[_0x3b38b2(0x1f0)](_0x3ca4fe)[_0x3b38b2(0x264)](([_0x9ed18c,_0x4ff045])=>{const _0xc292a9=_0x3b38b2;typeof _0x4ff045=='string'&&(_0x3ca4fe[_0x9ed18c]=_0x4ff045[_0xc292a9(0x1d8)](/url\(#(.*)\)/,_0xc292a9(0x1ce)+_0x341fd1['idSuffix']+')'));})),_0x3ca4fe;}function Ee(_0x32218d,_0x48556f){const _0x239c13=_0x523325;var _0xa16e31;const {defIds:_0x59d2a8}=_0x48556f;return!_0x59d2a8||_0x59d2a8['length']===0x0?_0x32218d:_0x32218d[_0x239c13(0x1cb)]===_0x239c13(0x1d9)&&((_0xa16e31=_0x32218d[_0x239c13(0x222)])!=null&&_0xa16e31[_0x239c13(0x200)])?{..._0x32218d,'children':_0x32218d[_0x239c13(0x222)]['map'](_0x574f75=>typeof _0x574f75[_0x239c13(0x243)]['id']==_0x239c13(0x22c)&&_0x59d2a8&&_0x59d2a8[_0x239c13(0x1ec)](_0x574f75['attrs']['id'])?{..._0x574f75,'attrs':{..._0x574f75[_0x239c13(0x243)],'id':_0x574f75[_0x239c13(0x243)]['id']+_0x48556f[_0x239c13(0x248)]}}:_0x574f75)}:_0x32218d;}function Oe(){const _0x201a5a=_0x523325;return Math[_0x201a5a(0x239)]()[_0x201a5a(0x217)](0x24)[_0x201a5a(0x205)](0x2,0x8);}k['displayName']='UniverIcon';const we={'tag':_0x523325(0x247),'attrs':{'xmlns':_0x523325(0x26f),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x523325(0x20e),'height':_0x523325(0x20e)},'children':[{'tag':_0x523325(0x218),'attrs':{'fill':_0x523325(0x253),'d':_0x523325(0x216)}},{'tag':_0x523325(0x218),'attrs':{'fill':'currentColor','d':_0x523325(0x1f9),'fillRule':_0x523325(0x225),'clipRule':'evenodd'}}]},W=_0x544256(function(_0x534215,_0x652eac){const _0x1f0a16=_0x523325;return _0x2d0631(k,Object[_0x1f0a16(0x1d4)]({},_0x534215,{'id':_0x1f0a16(0x1e2),'ref':_0x652eac,'icon':we}));});W[_0x523325(0x22a)]=_0x523325(0x25e);class L extends _0x4288e2{constructor(){const _0x50b238=_0x523325;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x50b238(0x211),new Set());}[_0x523325(0x201)](_0x32fa88){const _0x2e217f=_0x523325;return this[_0x2e217f(0x226)][_0x2e217f(0x272)](_0x32fa88),_0x33cd16(()=>this[_0x2e217f(0x226)][_0x2e217f(0x23d)](_0x32fa88));}[_0x523325(0x1d5)](_0x3173c0){const _0x4f5c40=_0x523325;return this[_0x4f5c40(0x211)][_0x4f5c40(0x272)](_0x3173c0),_0x33cd16(()=>this['_reporters'][_0x4f5c40(0x23d)](_0x3173c0));}[_0x523325(0x245)](_0x3cfee9){const _0x3a3350=_0x523325;return this['_sharedOperations'][_0x3a3350(0x202)](_0x3cfee9);}[_0x523325(0x1e3)](_0x2b8b0d){const _0x1fbdbf=_0x523325;return Array[_0x1fbdbf(0x1d1)](this[_0x1fbdbf(0x211)])[_0x1fbdbf(0x214)](_0x5915f7=>_0x5915f7(_0x2b8b0d));}}var Ne=Object[_0x523325(0x276)],Y=(_0x3b5124,_0x27ce2f,_0x566d75,_0x3db420)=>{for(var _0x3d1de1=_0x3db420>0x1?void 0x0:_0x3db420?Ne(_0x27ce2f,_0x566d75):_0x27ce2f,_0x3a644e=_0x3b5124['length']-0x1,_0x432e53;_0x3a644e>=0x0;_0x3a644e--)(_0x432e53=_0x3b5124[_0x3a644e])&&(_0x3d1de1=_0x432e53(_0x3d1de1)||_0x3d1de1);return _0x3d1de1;},_=(_0x539eb3,_0x1e3b76)=>(_0x4bb7d5,_0xf399a)=>_0x1e3b76(_0x4bb7d5,_0xf399a,_0x539eb3);let S=class extends _0x593b51{constructor(_0x577c1c,_0x382c87,_0x244e74){const _0x425ea7=_0x523325;super(),u(this,'_entities',new Map()),(this[_0x425ea7(0x26d)]=_0x577c1c,this[_0x425ea7(0x24a)]=_0x382c87,this[_0x425ea7(0x1f1)]=_0x244e74,this[_0x425ea7(0x20b)]());}async[_0x523325(0x231)](_0xc06700){const _0x457970=_0x523325;return this[_0x457970(0x22b)][_0x457970(0x202)](_0xc06700)||await this[_0x457970(0x262)](_0xc06700),this['_entities'][_0x457970(0x251)](_0xc06700);}[_0x523325(0x1f5)](_0x36afd6){const _0x1cb182=_0x523325;var _0xed5e56;return(_0xed5e56=this['_entities'][_0x1cb182(0x251)](_0x36afd6))!=null?_0xed5e56:null;}[_0x523325(0x20b)](){const _0x4c44b2=_0x523325;this[_0x4c44b2(0x26d)][_0x4c44b2(0x26c)](_0x4a6cf9[_0x4c44b2(0x268)])['pipe'](_0x4167b7(this['dispose$']))[_0x4c44b2(0x230)](async _0x1e9d41=>{const _0x34d3db=_0x4c44b2,_0x43a98d=_0x1e9d41[_0x34d3db(0x271)]();this[_0x34d3db(0x22b)]['has'](_0x43a98d)||this[_0x34d3db(0x262)](_0x43a98d);}),this[_0x4c44b2(0x26d)][_0x4c44b2(0x254)](_0x4a6cf9[_0x4c44b2(0x268)])[_0x4c44b2(0x1fe)](_0x4167b7(this['dispose$']))[_0x4c44b2(0x230)](_0x57eed6=>{const _0x3035e3=_0x4c44b2,_0x73048b=_0x57eed6[_0x3035e3(0x271)](),_0x1a06c7=this[_0x3035e3(0x22b)]['get'](_0x73048b);_0x1a06c7==null||_0x1a06c7[_0x3035e3(0x1e8)]();});}async['_startLiveShareCoordinator'](_0x45ef32){const _0x364c45=_0x523325,_0x37e17d=await this['_collabSessionService'][_0x364c45(0x1eb)](_0x45ef32),_0x4ee132=this[_0x364c45(0x24a)][_0x364c45(0x23c)](N,_0x45ef32,_0x37e17d);return _0x4ee132[_0x364c45(0x277)](),this[_0x364c45(0x22b)][_0x364c45(0x256)](_0x45ef32,_0x4ee132),_0x4ee132;}};S=Y([_(0x0,_0x23858b),_(0x1,_0x2da686(_0x2e4d33)),_(0x2,_0x2da686(_0x3f0d22))],S);var c=(_0x38af6d=>(_0x38af6d[_0x523325(0x233)]=_0x523325(0x1db),_0x38af6d[_0x523325(0x1ef)]=_0x523325(0x246),_0x38af6d['FOLLOWING']='following',_0x38af6d[_0x523325(0x1d3)]='not-following',_0x38af6d[_0x523325(0x1d2)]='presenting',_0x38af6d))(c||{});const Ce=_0x523325(0x1e0),De=0xc8;let N=class extends _0x593b51{constructor(_0x12ba50,_0x5c6873,_0x51e358,_0x98e764,_0x265582){const _0x49d1da=_0x523325;super(),u(this,_0x49d1da(0x238),new _0x49a9db(_0x49d1da(0x246))),u(this,_0x49d1da(0x224),this[_0x49d1da(0x238)][_0x49d1da(0x1cf)]()),u(this,'_init',!0x1),u(this,_0x49d1da(0x203),null),u(this,_0x49d1da(0x25d),null),(this[_0x49d1da(0x1fa)]=_0x12ba50,this[_0x49d1da(0x263)]=_0x5c6873,this[_0x49d1da(0x25a)]=_0x51e358,this['_liveShareService']=_0x98e764,this[_0x49d1da(0x212)]=_0x265582);}get[_0x523325(0x210)](){const _0x2fdf25=_0x523325;return this['_status$'][_0x2fdf25(0x270)]();}[_0x523325(0x1e8)](){const _0xd0a62e=_0x523325;var _0xdb065c;(_0xdb065c=this['_commandDisposable'])==null||_0xdb065c[_0xd0a62e(0x1e8)](),this['_status$'][_0xd0a62e(0x1e7)]('idle'),this[_0xd0a62e(0x238)][_0xd0a62e(0x228)]();}['getStatus'](){const _0x439177=_0x523325;return this[_0x439177(0x210)];}[_0x523325(0x277)](){const _0x1b436c=_0x523325;this[_0x1b436c(0x20b)]||(this['_init']=!0x0,this[_0x1b436c(0x263)][_0x1b436c(0x275)]['pipe'](_0x4167b7(this[_0x1b436c(0x24f)]))[_0x1b436c(0x230)](_0x1ab215=>{const _0x1bae69=_0x1b436c;switch(_0x1ab215){case _0x4363e7['OFFLINE']:this[_0x1bae69(0x1ee)]();break;case _0x4363e7[_0x1bae69(0x1f3)]:this[_0x1bae69(0x25f)]();break;}}),this[_0x1b436c(0x263)][_0x1b436c(0x24c)][_0x1b436c(0x1fe)](_0x4167b7(this[_0x1b436c(0x24f)]))[_0x1b436c(0x230)](_0x51083c=>{const _0x5e149e=_0x1b436c,{eventID:_0x1d0f24}=_0x51083c;switch(_0x1d0f24){case _0x15aa26[_0x5e149e(0x236)]:this[_0x5e149e(0x265)](_0x51083c);break;case _0x15aa26[_0x5e149e(0x242)]:this['_handleOperation'](_0x51083c);break;case _0x15aa26[_0x5e149e(0x21e)]:this[_0x5e149e(0x20f)]();break;case _0x15aa26[_0x5e149e(0x255)]:this[_0x5e149e(0x241)](_0x51083c);break;}}));}['tryStartPresenting'](){const _0x569428=_0x523325;this[_0x569428(0x263)][_0x569428(0x24b)]({'eventID':_0x15aa26[_0x569428(0x1cc)],'data':{'unitID':this[_0x569428(0x1fa)],'userID':this[_0x569428(0x263)]['getMemberID']()}},this['_unitID']);}[_0x523325(0x234)](){const _0x3fe909=_0x523325;this[_0x3fe909(0x210)]===_0x3fe909(0x204)&&(this['_status$'][_0x3fe909(0x1e7)](_0x3fe909(0x246)),this[_0x3fe909(0x263)]['send']({'eventID':_0x15aa26[_0x3fe909(0x21e)],'data':{'unitID':this[_0x3fe909(0x1fa)]}},this['_unitID']));}[_0x523325(0x21b)](){const _0x16635b=_0x523325;this[_0x16635b(0x210)]===_0x16635b(0x26a)&&(this['_status$']['next'](_0x16635b(0x269)),this['_startFollowing']());}[_0x523325(0x1c9)](){const _0x1ce485=_0x523325;this[_0x1ce485(0x210)]===_0x1ce485(0x269)&&this[_0x1ce485(0x1fc)]();}['_handleNewHost'](_0x4c1568){const _0xa457d1=_0x523325,{presenter:_0x43d66b}=_0x4c1568[_0xa457d1(0x22d)],_0x19555b=this[_0xa457d1(0x263)][_0xa457d1(0x1ca)]();this[_0xa457d1(0x25d)]=_0x43d66b,_0x43d66b===_0x19555b?(this[_0xa457d1(0x1fc)](),this[_0xa457d1(0x244)]()):this[_0xa457d1(0x210)]!=='not-following'&&(this['_stopPresenting'](),this[_0xa457d1(0x249)]());}[_0x523325(0x24d)](){const _0x456b88=_0x523325,_0x3134a4={'eventID':_0x15aa26[_0x456b88(0x1c8)]};this[_0x456b88(0x263)][_0x456b88(0x24b)](_0x3134a4,this[_0x456b88(0x1fa)]);}[_0x523325(0x20f)](){const _0x46bc5c=_0x523325;this[_0x46bc5c(0x25d)]=null,this[_0x46bc5c(0x210)]!==_0x46bc5c(0x204)&&this[_0x46bc5c(0x229)]();}['_handleNewChangeSets'](_0x374e8b){const _0x4065da=_0x523325;if(this['_status']===_0x4065da(0x269)&&this['_presenter']===_0x374e8b[_0x4065da(0x22d)][_0x4065da(0x1d7)]){const _0x17bfe8=_0x177cfa(_0x374e8b[_0x4065da(0x22d)])['mutations'][_0x4065da(0x1f4)]()['find'](_0x279d3e=>_0x279d3e['id']===_0x3f0c6a['id']);if(_0x17bfe8){const _0x188ef6=_0x17bfe8[_0x4065da(0x21f)][_0x4065da(0x273)],_0x237a35=_0x17bfe8['params'][_0x4065da(0x1d6)]['id'];setTimeout(()=>{const _0x5cb82d=_0x4065da;this['_commandService'][_0x5cb82d(0x1de)](_0x1c0e40['id'],{'unitId':_0x188ef6,'subUnitId':_0x237a35},{'fromCollab':!0x0});});}}}[_0x523325(0x244)](){const _0x7a26b=_0x523325;this[_0x7a26b(0x238)]['next'](_0x7a26b(0x204));const _0x4051eb=new Map(),_0xc0d526=this[_0x7a26b(0x203)]=new _0x1e7053();_0xc0d526[_0x7a26b(0x272)](_0x33cd16(()=>{const _0x736c97=_0x7a26b;_0x4051eb['forEach'](_0x1d946d=>_0x1d946d[_0x736c97(0x228)]()),_0x4051eb['clear']();})),_0xc0d526[_0x7a26b(0x272)](this['_commandService']['onCommandExecuted'](_0x4ba4b6=>{const _0x39b0a8=_0x7a26b;var _0x14753e;if(_0x4ba4b6[_0x39b0a8(0x206)]!==_0x44f067[_0x39b0a8(0x207)]||!this[_0x39b0a8(0x26b)][_0x39b0a8(0x245)](_0x4ba4b6['id']))return;const {id:_0x3983cb}=_0x4ba4b6;let _0xdc8143;_0x4051eb['has'](_0x3983cb)?_0xdc8143=_0x4051eb['get'](_0x3983cb):(_0xdc8143=new _0x4907d6(),_0x4051eb[_0x39b0a8(0x256)](_0x3983cb,_0xdc8143),_0xdc8143[_0x39b0a8(0x1fe)](_0x201cc8((_0x14753e=this['_configService'][_0x39b0a8(0x208)](Ce))!=null?_0x14753e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x39b0a8(0x230)](_0x268fb5=>{const _0x1d5c2a=_0x39b0a8;this[_0x1d5c2a(0x263)][_0x1d5c2a(0x24b)]({'eventID':_0x15aa26[_0x1d5c2a(0x242)],'data':{'unitID':this[_0x1d5c2a(0x1fa)],'operations':{[_0x268fb5['id']]:{'id':_0x268fb5['id'],'params':JSON['stringify'](_0x268fb5[_0x1d5c2a(0x21f)])}}}},this[_0x1d5c2a(0x1fa)]);})),_0xdc8143[_0x39b0a8(0x1e7)](_0x4ba4b6);})),this['_liveShareService'][_0x7a26b(0x1e3)](this[_0x7a26b(0x1fa)])['forEach'](_0x41b68e=>this['_collabSession'][_0x7a26b(0x24b)]({'eventID':_0x15aa26[_0x7a26b(0x242)],'data':{'unitID':this[_0x7a26b(0x1fa)],'operations':{[_0x41b68e['id']]:{'id':_0x41b68e['id'],'params':JSON[_0x7a26b(0x250)](_0x41b68e[_0x7a26b(0x21f)])}}}},this['_unitID']));}[_0x523325(0x213)](){const _0x184535=_0x523325;var _0x45409a;this[_0x184535(0x238)][_0x184535(0x1e7)]('idle'),(_0x45409a=this['_commandDisposable'])==null||_0x45409a[_0x184535(0x1e8)](),this[_0x184535(0x203)]=null;}['_startFollowing'](){const _0x14049f=_0x523325;var _0x33d09e;(_0x33d09e=this[_0x14049f(0x203)])==null||_0x33d09e[_0x14049f(0x1e8)](),this[_0x14049f(0x238)]['next'](_0x14049f(0x269));}[_0x523325(0x229)](){const _0x2150aa=_0x523325;var _0x1fa6f8;this[_0x2150aa(0x238)][_0x2150aa(0x1e7)](_0x2150aa(0x246)),(_0x1fa6f8=this['_commandDisposable'])==null||_0x1fa6f8['dispose'](),this['_commandDisposable']=null;}[_0x523325(0x1fc)](){const _0x3a82da=_0x523325;var _0x16d090;this[_0x3a82da(0x238)]['next'](_0x3a82da(0x26a)),(_0x16d090=this['_commandDisposable'])==null||_0x16d090['dispose']();}[_0x523325(0x235)](_0x4ea272){const _0x548d95=_0x523325;if(['presenting','not-following',_0x548d95(0x1db)][_0x548d95(0x1ec)](this[_0x548d95(0x210)])||!_0x4ea272[_0x548d95(0x22d)][_0x548d95(0x23e)]||_0x4ea272[_0x548d95(0x22d)][_0x548d95(0x23e)]===this['_collabSession'][_0x548d95(0x1ca)]())return;this[_0x548d95(0x210)]===_0x548d95(0x246)&&this['_startFollowing']();const _0x42a037=_0x4ea272[_0x548d95(0x22d)][_0x548d95(0x215)];Object[_0x548d95(0x1f7)](_0x42a037)[_0x548d95(0x264)](_0x47fbe6=>{const _0x8fcb54=_0x548d95;this[_0x8fcb54(0x212)][_0x8fcb54(0x1de)](_0x47fbe6['id'],_0x47fbe6[_0x8fcb54(0x21f)]?JSON[_0x8fcb54(0x22f)](_0x47fbe6[_0x8fcb54(0x21f)]):null,{'fromCollab':!0x0});});}[_0x523325(0x1ee)](){const _0x16aabc=_0x523325;var _0x38bbc8;this[_0x16aabc(0x238)][_0x16aabc(0x1e7)]('offline'),(_0x38bbc8=this[_0x16aabc(0x203)])==null||_0x38bbc8[_0x16aabc(0x1e8)]();}[_0x523325(0x25f)](){const _0x259721=_0x523325;this[_0x259721(0x238)][_0x259721(0x1e7)](_0x259721(0x246)),this[_0x259721(0x24d)]();}};N=Y([_(0x2,_0x44da77),_(0x3,_0x2da686(L)),_(0x4,_0x2e2790)],N);function _0x3bb2(_0x4717fa,_0x15ce36){_0x4717fa=_0x4717fa-0x1c7;const _0x31a899=_0x31a8();let _0x3bb265=_0x31a899[_0x4717fa];return _0x3bb265;}function Le(){const _0x6d6a62=_0x523325,_0xea16d3=_0x36d08c(S),_0xf230b0=_0x36d08c(_0x23858b),_0x4acf71=_0x80d253(()=>_0xf230b0[_0x6d6a62(0x25b)](_0x4a6cf9[_0x6d6a62(0x268)]),void 0x0,!0x1,[]),[_0x151bec,_0x110926]=_0x2694d7(null),[_0x5380c1,_0x2bb8dd]=_0x2694d7(c[_0x6d6a62(0x1ef)]),_0x50f530=_0x5cba74(null);return _0x21e70b(()=>(_0x4acf71&&_0xea16d3[_0x6d6a62(0x231)](_0x4acf71[_0x6d6a62(0x271)]())[_0x6d6a62(0x1c7)](_0x3795d3=>{const _0x296670=_0x6d6a62;_0x110926(_0x3795d3),_0x50f530[_0x296670(0x25c)]=_0x3795d3[_0x296670(0x224)][_0x296670(0x230)](_0x41ae04=>{_0x2bb8dd(_0x41ae04);});}),()=>{const _0x2e39c5=_0x6d6a62;var _0xaef1f;(_0xaef1f=_0x50f530['current'])==null||_0xaef1f[_0x2e39c5(0x219)](),_0x50f530[_0x2e39c5(0x25c)]=null;}),[_0x4acf71,_0xea16d3]),_0x151bec?_0x20467c(_0x2d1ff4,{'align':_0x6d6a62(0x1da),'disabled':_0x5380c1===c[_0x6d6a62(0x233)],'className':_0x6d6a62(0x1df),'overlay':_0x20467c(Re,{'status':_0x5380c1,'coordinator':_0x151bec}),'children':_0x20467c(_0x6d6a62(0x1f6),{'className':_0x421cb3(_0x6d6a62(0x274),{'univer-cursor-not-allowed':_0x5380c1===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5380c1!==c[_0x6d6a62(0x233)]}),'type':_0x6d6a62(0x1f6),'children':_0x20467c(W,{'className':_0x6d6a62(0x1e4)})})}):null;}function Re(_0x13d5ff){const _0x109769=_0x523325,{status:_0x2e05ad,coordinator:_0x3732f5}=_0x13d5ff;switch(_0x2e05ad){case c[_0x109769(0x1ef)]:return _0x20467c($e,{'coordinator':_0x3732f5});case c[_0x109769(0x1dc)]:return _0x20467c(xe,{'coordinator':_0x3732f5});case c['NOT_FOLLOWING']:return _0x20467c(Pe,{'coordinator':_0x3732f5});case c[_0x109769(0x233)]:return _0x20467c(Te,{});case c[_0x109769(0x1d2)]:return _0x20467c(Ae,{'coordinator':_0x3732f5});default:return null;}}function $e(_0x39ddd0){const _0x4a4675=_0x523325,{coordinator:_0x5b449b}=_0x39ddd0;return _0x30eb29(_0x2110ca,{'children':[_0x20467c(_0x4a4675(0x1e9),{'className':_0x4a4675(0x23f),'children':_0x4a4675(0x1fd)}),_0x20467c(_0x15baef,{'onClick':()=>_0x5b449b[_0x4a4675(0x252)](),'children':'Start'})]});}function xe(_0x456085){const _0x4a2c0b=_0x523325,{coordinator:_0x228af0}=_0x456085;return _0x30eb29(_0x2110ca,{'children':[_0x20467c(_0x4a2c0b(0x1e9),{'className':_0x4a2c0b(0x23f),'children':_0x4a2c0b(0x260)}),_0x20467c(_0x15baef,{'onClick':()=>_0x228af0[_0x4a2c0b(0x1c9)](),'children':_0x4a2c0b(0x20c)})]});}function Pe(_0x1d89c9){const _0x154447=_0x523325,{coordinator:_0x3283c0}=_0x1d89c9;return _0x30eb29(_0x2110ca,{'children':[_0x20467c(_0x154447(0x1e9),{'className':_0x154447(0x23f),'children':_0x154447(0x223)}),_0x20467c(_0x15baef,{'variant':_0x154447(0x1f8),'onClick':()=>_0x3283c0['startFollowing'](),'children':_0x154447(0x1ff)})]});}function Ae(_0x303dee){const _0x30fd0c=_0x523325,{coordinator:_0x468aa4}=_0x303dee;return _0x30eb29(_0x2110ca,{'children':[_0x20467c(_0x30fd0c(0x1e9),{'className':_0x30fd0c(0x23f),'children':_0x30fd0c(0x26e)}),_0x20467c(_0x15baef,{'variant':_0x30fd0c(0x1d0),'onClick':()=>_0x468aa4[_0x30fd0c(0x234)](),'children':_0x30fd0c(0x232)})]});}function Te(){return _0x20467c(_0x2110ca,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x523325(0x276)],He=(_0x2af0ac,_0x403e3e,_0xe71556,_0x152d42)=>{for(var _0x3dc419=_0x152d42>0x1?void 0x0:_0x152d42?Fe(_0x403e3e,_0xe71556):_0x403e3e,_0x216a33=_0x2af0ac['length']-0x1,_0xa422fd;_0x216a33>=0x0;_0x216a33--)(_0xa422fd=_0x2af0ac[_0x216a33])&&(_0x3dc419=_0xa422fd(_0x3dc419)||_0x3dc419);return _0x3dc419;},A=(_0x4148b7,_0x15da00)=>(_0x275afe,_0x26563f)=>_0x15da00(_0x275afe,_0x26563f,_0x4148b7);let m=class extends _0x4288e2{constructor(_0x3183da,_0x2547a3){const _0x4b1180=_0x523325;super(),this[_0x4b1180(0x24a)]=_0x3183da,this[_0x4b1180(0x1ed)]=_0x2547a3,this[_0x4b1180(0x1dd)]();}[_0x523325(0x1dd)](){const _0x331f64=_0x523325;this[_0x331f64(0x1e6)](this[_0x331f64(0x1ed)]['registerComponent'](_0x26783e[_0x331f64(0x24e)],()=>_0x2f196e(Le,this[_0x331f64(0x24a)])));}};m=He([A(0x0,_0x2da686(_0x2e4d33)),A(0x1,_0x2c543b)],m);const ye=_0x523325(0x23b),T={};var Ue=Object[_0x523325(0x276)],Ve=(_0x33fca1,_0x26d2f1,_0x2cddd3,_0x4894d4)=>{const _0x2dbdb2=_0x523325;for(var _0x509117=_0x4894d4>0x1?void 0x0:_0x4894d4?Ue(_0x26d2f1,_0x2cddd3):_0x26d2f1,_0x99a51d=_0x33fca1[_0x2dbdb2(0x200)]-0x1,_0x2e93a7;_0x99a51d>=0x0;_0x99a51d--)(_0x2e93a7=_0x33fca1[_0x99a51d])&&(_0x509117=_0x2e93a7(_0x509117)||_0x509117);return _0x509117;},je=(_0x4fdc9c,_0xc50ee8)=>(_0x337a8e,_0x47a877)=>_0xc50ee8(_0x337a8e,_0x47a877,_0x4fdc9c);let I=class extends _0x4288e2{constructor(_0x1d5442){const _0x275c5d=_0x523325;super(),this[_0x275c5d(0x26b)]=_0x1d5442,this[_0x275c5d(0x20b)]();}[_0x523325(0x20b)](){const _0x481792=_0x523325;[_0x2efd2d['id'],_0x543b0f['id'],_0x1c0e40['id']][_0x481792(0x264)](_0x44db44=>{const _0x51b63=_0x481792;this[_0x51b63(0x1e6)](this['_liveShareService'][_0x51b63(0x201)](_0x44db44));});}};I=Ve([je(0x0,_0x2da686(L))],I);function _0x31a8(){const _0x5be77d=['registerSharedOperation','has','_commandDisposable','presenting','substring','type','OPERATION','getConfig','colorChannel1','symbol','_init','Stop\x20following','onStarting','1em','_handleTerminate','_status','_reporters','_commandService','_stopPresenting','map','operations','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','toString','path','unsubscribe','use','startFollowing','850FuidEs','6811536LYwyTv','LIVESHARE_TERMINATE','params','override','UNIVER_UNKNOWN','children','You\x27re\x20not\x20following\x20the\x20presenter','status$','evenodd','_sharedOperations','3bygVIB','complete','_beIdle','displayName','_entities','string','data','mask','parse','subscribe','getLiveShareCoordinator','Stop\x20presenting','OFFLINE','stopPresenting','_handleOperation','LIVESHARE_NEW_HOST','2651572eMZxko','_status$','random','defineProperty','live-share.config','createInstance','delete','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','LIVESHARE_OPERATION','attrs','_startPresenting','shouldShareOperation','idle','svg','idSuffix','_startFollowing','_injector','send','event$','_fetchOperations','HEADER_MENU','dispose$','stringify','get','tryStartPresenting','currentColor','getTypeOfUnitDisposed$','NEW_CHANGESETS','set','setConfig','onRendered','pluginName','_configService','getCurrentTypeOfUnit$','current','_presenter','LiveShareIcon','_handleOnline','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','_collabSession','forEach','_handleNewHost','1746232UjqXNi','62973jlPfuW','UNIVER_SHEET','following','not-following','_liveShareService','getTypeOfUnitAdded$','_univerInstanceService','You\x27re\x20presenting\x20the\x20document','http://www.w3.org/2000/svg','getValue','getUnitId','add','unitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','getOwnPropertyDescriptor','init','fill','then','LIVESHARE_FETCH_OPERATIONS','stopFollowing','getMemberID','tag','LIVESHARE_REQUEST_HOST','_config','url(#$1','asObservable','default','from','PRESENTING','NOT_FOLLOWING','assign','registerInitialStateReporter','sheet','memberID','replace','defs','end','offline','FOLLOWING','_mountLiveShare','executeCommand','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','SAME_OPERATION_SHARE_INTERVAL','54TofGLq','live-share-icon','getInitialStates','univer-size-4','xlink:href','disposeWithMe','next','dispose','div','2103106IUnxhW','requireSession','includes','_uiPartsService','_handleOffline','IDLE','entries','_collabSessionService','444215GwjGHK','ONLINE','reverse','getLiveShareCoordinatorSync','button','values','text','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','_unitID','595060mvYnga','_stopFollowing','Present\x20this\x20document','pipe','Start\x20following','length'];_0x31a8=function(){return _0x5be77d;};return _0x31a8();}var Me=Object[_0x523325(0x23a)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0xcb6009,_0x172762,_0x23aa72)=>_0x172762 in _0xcb6009?Me(_0xcb6009,_0x172762,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23aa72}):_0xcb6009[_0x172762]=_0x23aa72,We=(_0x4c3dfe,_0xe72232,_0x4efd9f,_0x33f8ee)=>{const _0x4092cf=_0x523325;for(var _0x19820d=_0x33f8ee>0x1?void 0x0:_0x33f8ee?ke(_0xe72232,_0x4efd9f):_0xe72232,_0x8b7588=_0x4c3dfe[_0x4092cf(0x200)]-0x1,_0x35516c;_0x8b7588>=0x0;_0x8b7588--)(_0x35516c=_0x4c3dfe[_0x8b7588])&&(_0x19820d=_0x35516c(_0x19820d)||_0x19820d);return _0x19820d;},F=(_0x465196,_0x51c2ff)=>(_0x3eff62,_0x468e63)=>_0x51c2ff(_0x3eff62,_0x468e63,_0x465196),B=(_0x5af2dd,_0x3578ea,_0x5de1e4)=>Ge(_0x5af2dd,typeof _0x3578ea!='symbol'?_0x3578ea+'':_0x3578ea,_0x5de1e4);const Ye=_0x523325(0x261);let b=class extends _0x239c09{constructor(_0x5b14bd=T,_0x24db80,_0x27ac58){const _0x329008=_0x523325;super(),this[_0x329008(0x1cd)]=_0x5b14bd,this[_0x329008(0x24a)]=_0x24db80,this[_0x329008(0x25a)]=_0x27ac58;const {..._0x2bb7e3}=_0x3b760d({},T,this[_0x329008(0x1cd)]);this[_0x329008(0x25a)][_0x329008(0x257)](ye,_0x2bb7e3);}[_0x523325(0x20d)](){const _0x569c04=_0x523325;_0x5d0170(this[_0x569c04(0x24a)],_0x19d491([[L],[S],[I],[m]],this[_0x569c04(0x1cd)][_0x569c04(0x220)])),_0x203a39(this[_0x569c04(0x24a)],[[I]]);}[_0x523325(0x258)](){const _0x37cefb=_0x523325;_0x203a39(this[_0x37cefb(0x24a)],[[m]]);}};B(b,_0x523325(0x206),_0x4a6cf9[_0x523325(0x221)]),B(b,_0x523325(0x259),Ye),b=We([_0x3b6d5f(_0x23938a),F(0x1,_0x2da686(_0x2e4d33)),F(0x2,_0x44da77)],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 _0x212209=_0xaf5d;(function(_0x6645e3,_0x4afbe1){const _0x576f0a=_0xaf5d,_0x1dbbf1=_0x6645e3();while(!![]){try{const _0x170d58=parseInt(_0x576f0a(0xbe))/0x1+parseInt(_0x576f0a(0x154))/0x2+parseInt(_0x576f0a(0xf2))/0x3*(-parseInt(_0x576f0a(0x142))/0x4)+-parseInt(_0x576f0a(0x104))/0x5*(-parseInt(_0x576f0a(0x10e))/0x6)+parseInt(_0x576f0a(0xd8))/0x7+-parseInt(_0x576f0a(0x115))/0x8*(parseInt(_0x576f0a(0xb9))/0x9)+-parseInt(_0x576f0a(0x13d))/0xa;if(_0x170d58===_0x4afbe1)break;else _0x1dbbf1['push'](_0x1dbbf1['shift']());}catch(_0x142c48){_0x1dbbf1['push'](_0x1dbbf1['shift']());}}}(_0x384a,0x88269));var J=Object['defineProperty'],K=(_0x28d998,_0xc9af6e,_0x45e20d)=>_0xc9af6e in _0x28d998?J(_0x28d998,_0xc9af6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45e20d}):_0x28d998[_0xc9af6e]=_0x45e20d,u=(_0x1838c5,_0x59546f,_0x5b8949)=>K(_0x1838c5,typeof _0x59546f!=_0x212209(0xfc)?_0x59546f+'':_0x59546f,_0x5b8949);import{Disposable as _0x55618e,toDisposable as _0x49de3d,IUniverInstanceService as _0x399f38,Inject as _0x2d419c,Injector as _0x164169,IConfigService as _0x424ac1,ICommandService as _0x48309a,RxDisposable as _0x4463b3,UniverInstanceType as _0x122966,DisposableCollection as _0x2d0575,CommandType as _0x37dba8,DependentOn as _0x163697,Plugin as _0x5b2afb,merge as _0x51a3b6,registerDependencies as _0x1d11dc,mergeOverrideWithDependencies as _0x40f34e,touchDependencies as _0x5d3d6c}from'@univerjs/core';import{useDependency as _0x41ee86,useObservable as _0x1e7148,IUIPartsService as _0x135352,BuiltInUIPart as _0x59d57b,connectInjector as _0x3dc26f}from'@univerjs/ui';import{jsx as _0x1116ce,jsxs as _0x17f549,Fragment as _0x315589}from'react/jsx-runtime';import{Dropdown as _0x40d765,clsx as _0x5b6799,Button as _0x37fd1d}from'@univerjs/design';import{useRef as _0x2dcd15,createElement as _0x3b18f7,forwardRef as _0x3da331,useState as _0x871941,useEffect as _0x823b3a}from'react';import{CollaborationEvent as _0x6609c9,parseProtocolChangeset as _0x1b3259}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x466307,SessionStatus as _0x4a6813,UniverCollaborationClientPlugin as _0x3d6035}from'@univerjs-pro/collaboration-client';function _0x384a(){const _0x3d01cf=['LiveShareIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','Present\x20this\x20document','entries','UNIVER_UNKNOWN','registerComponent','getValue','symbol','requireSession','sheet','set','_unitID','idSuffix','_stopFollowing','assign','4540SVJhho','idle','LIVESHARE_TERMINATE','live-share-icon','asObservable','_reporters','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','_univerInstanceService','_handleOperation','setConfig','4692SkDLqw','init','_handleNewHost','getUnitId','_status$','registerInitialStateReporter','not-following','1748968xUwGdc','div','override','_startLiveShareCoordinator','IDLE','use','displayName','map','delete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','NOT_FOLLOWING','current','toString','from','UniverIcon','then','onStarting','_entities','getConfig','disposeWithMe','button','_injector','add','subscribe','startFollowing','_config','LIVESHARE_OPERATION','presenting','colorChannel1','clear','unsubscribe','fill','NEW_CHANGESETS','parse','onCommandExecuted','getLiveShareCoordinator','evenodd','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','_uiPartsService','15941180OucfxX','LIVESHARE_NEW_HOST','trim','path','following','3948652bDxYUU','getCurrentTypeOfUnit$','_handleTerminate','shouldShareOperation','1em','_startPresenting','complete','send','sessionStatus$','You\x27re\x20following\x20the\x20presenter','getLiveShareCoordinatorSync','univerjs-icon\x20univerjs-icon-','_configService','_collabSession','stringify','dispose$','You\x27are\x20offline.','_stopPresenting','1901414CpUNtv','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','_handleNewChangeSets','Start','currentColor','_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','getInitialStates','includes','xlink:href','getMemberID','9wlZKdu','offline','getTypeOfUnitAdded$','_init','_status','675048YrXHsC','_commandService','tag','url(#$1','memberID','Stop\x20presenting','children','get','dispose','svg','tryStartPresenting','find','_sharedOperations','UNIVER_SHEET','_liveShareService','forEach','_fetchOperations','http://www.w3.org/2000/svg','next','pipe','event$','OFFLINE','length','params','replace','createInstance','7152348uQbtEx','onRendered','_handleOffline','mask','end','type','status$','executeCommand','_commandDisposable','0\x200\x2017\x2017','stopPresenting','getOwnPropertyDescriptor','defIds','data','string','Start\x20following','_startFollowing','attrs','text','values','registerSharedOperation','PRESENTING','reverse','default','has','_collabSessionService','3BCwHQn','_beIdle','LIVESHARE_FETCH_OPERATIONS'];_0x384a=function(){return _0x3d01cf;};return _0x384a();}import{InsertSheetMutation as _0x3acb22,SetWorksheetActiveOperation as _0x39b917}from'@univerjs/sheets';import{BehaviorSubject as _0x31595c,Subject as _0x5b042d}from'rxjs';import{takeUntil as _0x481522,throttleTime as _0x44f286}from'rxjs/operators';import{SetZoomRatioOperation as _0xb13517,SetScrollOperation as _0xeebac6}from'@univerjs/sheets-ui';function k({ref:_0x2645a1,..._0x422360}){const _0x3532f7=_0x212209,{icon:_0x24f7a5,id:_0x3f7f41,className:_0x4b2fe0,extend:_0x22c0c4,..._0x327f4e}=_0x422360,_0x2dd732=(_0x3532f7(0x14d)+_0x3f7f41+'\x20'+(_0x4b2fe0||''))[_0x3532f7(0x13f)](),_0x3ff9f5=_0x2dcd15('_'+Oe());return G(_0x24f7a5,''+_0x3f7f41,{'defIds':_0x24f7a5[_0x3532f7(0xe4)],'idSuffix':_0x3ff9f5[_0x3532f7(0x120)]},{'ref':_0x2645a1,'className':_0x2dd732,..._0x327f4e},_0x22c0c4);}function G(_0x30cb1e,_0x446c1d,_0x150bf3,_0x1c52ae,_0xc03bf1){const _0x130ba2=_0x212209;return _0x3b18f7(_0x30cb1e[_0x130ba2(0xc0)],{'key':_0x446c1d,...be(_0x30cb1e,_0x150bf3,_0xc03bf1),..._0x1c52ae},(Ee(_0x30cb1e,_0x150bf3)[_0x130ba2(0xc4)]||[])[_0x130ba2(0x11c)]((_0xfaeefd,_0x1971bb)=>G(_0xfaeefd,_0x446c1d+'-'+_0x30cb1e[_0x130ba2(0xc0)]+'-'+_0x1971bb,_0x150bf3,void 0x0,_0xc03bf1)));}function be(_0x3b7701,_0x597193,_0x70f142){const _0x351b6f=_0x212209,_0x31abe2={..._0x3b7701[_0x351b6f(0xe9)]};_0x70f142!=null&&_0x70f142[_0x351b6f(0x131)]&&_0x31abe2[_0x351b6f(0x134)]===_0x351b6f(0x131)&&(_0x31abe2[_0x351b6f(0x134)]=_0x70f142[_0x351b6f(0x131)]),_0x3b7701['tag']===_0x351b6f(0xdb)&&_0x31abe2['id']&&(_0x31abe2['id']=_0x31abe2['id']+_0x597193[_0x351b6f(0x101)]),Object[_0x351b6f(0xf8)](_0x31abe2)['forEach'](([_0x2c8aac,_0x254401])=>{const _0x2348d6=_0x351b6f;_0x2c8aac===_0x2348d6(0xdb)&&typeof _0x254401==_0x2348d6(0xe6)&&(_0x31abe2[_0x2c8aac]=_0x254401[_0x2348d6(0xd6)](/url\(#(.*)\)/,'url(#$1'+_0x597193['idSuffix']+')'));});const {defIds:_0x4437dd}=_0x597193;return!_0x4437dd||_0x4437dd[_0x351b6f(0xd4)]===0x0||(_0x3b7701['tag']===_0x351b6f(0x11a)&&_0x31abe2[_0x351b6f(0xb7)]&&(_0x31abe2[_0x351b6f(0xb7)]=_0x31abe2[_0x351b6f(0xb7)]+_0x597193[_0x351b6f(0x101)]),Object['entries'](_0x31abe2)[_0x351b6f(0xcd)](([_0x513801,_0x5a6933])=>{const _0x40e9a0=_0x351b6f;typeof _0x5a6933==_0x40e9a0(0xe6)&&(_0x31abe2[_0x513801]=_0x5a6933[_0x40e9a0(0xd6)](/url\(#(.*)\)/,_0x40e9a0(0xc1)+_0x597193[_0x40e9a0(0x101)]+')'));})),_0x31abe2;}function Ee(_0x35ba9e,_0x11ae8d){const _0x5b3793=_0x212209;var _0x11ee09;const {defIds:_0x127cc5}=_0x11ae8d;return!_0x127cc5||_0x127cc5[_0x5b3793(0xd4)]===0x0?_0x35ba9e:_0x35ba9e[_0x5b3793(0xc0)]==='defs'&&((_0x11ee09=_0x35ba9e[_0x5b3793(0xc4)])!=null&&_0x11ee09['length'])?{..._0x35ba9e,'children':_0x35ba9e[_0x5b3793(0xc4)][_0x5b3793(0x11c)](_0x3973fa=>typeof _0x3973fa[_0x5b3793(0xe9)]['id']==_0x5b3793(0xe6)&&_0x127cc5&&_0x127cc5['includes'](_0x3973fa[_0x5b3793(0xe9)]['id'])?{..._0x3973fa,'attrs':{..._0x3973fa[_0x5b3793(0xe9)],'id':_0x3973fa[_0x5b3793(0xe9)]['id']+_0x11ae8d[_0x5b3793(0x101)]}}:_0x3973fa)}:_0x35ba9e;}function Oe(){const _0x13d5a0=_0x212209;return Math['random']()[_0x13d5a0(0x121)](0x24)['substring'](0x2,0x8);}k[_0x212209(0x11b)]=_0x212209(0x123);const we={'tag':_0x212209(0xc7),'attrs':{'xmlns':_0x212209(0xcf),'fill':'none','viewBox':_0x212209(0xe1),'width':_0x212209(0x146),'height':_0x212209(0x146)},'children':[{'tag':_0x212209(0x140),'attrs':{'fill':_0x212209(0x158),'d':_0x212209(0x10a)}},{'tag':_0x212209(0x140),'attrs':{'fill':_0x212209(0x158),'d':_0x212209(0x155),'fillRule':_0x212209(0x139),'clipRule':_0x212209(0x139)}}]},W=_0x3da331(function(_0x5f3137,_0x326ca8){const _0x4d201b=_0x212209;return _0x3b18f7(k,Object[_0x4d201b(0x103)]({},_0x5f3137,{'id':_0x4d201b(0x107),'ref':_0x326ca8,'icon':we}));});W['displayName']=_0x212209(0xf5);class L extends _0x55618e{constructor(){const _0x140637=_0x212209;super(...arguments),u(this,_0x140637(0xca),new Set()),u(this,_0x140637(0x109),new Set());}['registerSharedOperation'](_0x5eb6de){const _0x596da5=_0x212209;return this[_0x596da5(0xca)][_0x596da5(0x12b)](_0x5eb6de),_0x49de3d(()=>this[_0x596da5(0xca)]['delete'](_0x5eb6de));}[_0x212209(0x113)](_0x59ef3a){const _0x15f9e4=_0x212209;return this[_0x15f9e4(0x109)][_0x15f9e4(0x12b)](_0x59ef3a),_0x49de3d(()=>this[_0x15f9e4(0x109)][_0x15f9e4(0x11d)](_0x59ef3a));}[_0x212209(0x145)](_0x3aba71){const _0x375381=_0x212209;return this[_0x375381(0xca)][_0x375381(0xf0)](_0x3aba71);}[_0x212209(0xb5)](_0x587b86){const _0x2abe67=_0x212209;return Array[_0x2abe67(0x122)](this[_0x2abe67(0x109)])[_0x2abe67(0x11c)](_0x4e6010=>_0x4e6010(_0x587b86));}}var Ne=Object[_0x212209(0xe3)],Y=(_0x33ec13,_0x2487e2,_0x59d65b,_0x133056)=>{const _0x140ba3=_0x212209;for(var _0x2aa16b=_0x133056>0x1?void 0x0:_0x133056?Ne(_0x2487e2,_0x59d65b):_0x2487e2,_0x2db541=_0x33ec13[_0x140ba3(0xd4)]-0x1,_0x29e2b6;_0x2db541>=0x0;_0x2db541--)(_0x29e2b6=_0x33ec13[_0x2db541])&&(_0x2aa16b=_0x29e2b6(_0x2aa16b)||_0x2aa16b);return _0x2aa16b;},_=(_0x11bfc9,_0x456b72)=>(_0x29331d,_0x1a1d74)=>_0x456b72(_0x29331d,_0x1a1d74,_0x11bfc9);let S=class extends _0x4463b3{constructor(_0x8a84bd,_0x5188a0,_0x3c8795){const _0x59c4ef=_0x212209;super(),u(this,_0x59c4ef(0x126),new Map()),(this[_0x59c4ef(0x10b)]=_0x8a84bd,this[_0x59c4ef(0x12a)]=_0x5188a0,this[_0x59c4ef(0xf1)]=_0x3c8795,this[_0x59c4ef(0xbc)]());}async[_0x212209(0x138)](_0x46faf5){const _0x4bd9cd=_0x212209;return this[_0x4bd9cd(0x126)][_0x4bd9cd(0xf0)](_0x46faf5)||await this[_0x4bd9cd(0x118)](_0x46faf5),this[_0x4bd9cd(0x126)]['get'](_0x46faf5);}[_0x212209(0x14c)](_0x1043dd){const _0x2ad063=_0x212209;var _0x16a870;return(_0x16a870=this[_0x2ad063(0x126)][_0x2ad063(0xc5)](_0x1043dd))!=null?_0x16a870:null;}['_init'](){const _0x2d4969=_0x212209;this[_0x2d4969(0x10b)][_0x2d4969(0xbb)](_0x122966['UNIVER_SHEET'])[_0x2d4969(0xd1)](_0x481522(this[_0x2d4969(0x151)]))['subscribe'](async _0x285979=>{const _0x5ac55d=_0x2d4969,_0x49929e=_0x285979[_0x5ac55d(0x111)]();this[_0x5ac55d(0x126)][_0x5ac55d(0xf0)](_0x49929e)||this['_startLiveShareCoordinator'](_0x49929e);}),this[_0x2d4969(0x10b)]['getTypeOfUnitDisposed$'](_0x122966['UNIVER_SHEET'])[_0x2d4969(0xd1)](_0x481522(this['dispose$']))[_0x2d4969(0x12c)](_0x2f466f=>{const _0x12ea79=_0x2d4969,_0x50721f=_0x2f466f['getUnitId'](),_0x467659=this[_0x12ea79(0x126)][_0x12ea79(0xc5)](_0x50721f);_0x467659==null||_0x467659['dispose']();});}async['_startLiveShareCoordinator'](_0x6ef9e5){const _0x3bf8c=_0x212209,_0x411eea=await this[_0x3bf8c(0xf1)][_0x3bf8c(0xfd)](_0x6ef9e5),_0x44fb8b=this[_0x3bf8c(0x12a)][_0x3bf8c(0xd7)](N,_0x6ef9e5,_0x411eea);return _0x44fb8b[_0x3bf8c(0x10f)](),this[_0x3bf8c(0x126)][_0x3bf8c(0xff)](_0x6ef9e5,_0x44fb8b),_0x44fb8b;}};S=Y([_(0x0,_0x399f38),_(0x1,_0x2d419c(_0x164169)),_(0x2,_0x2d419c(_0x466307))],S);var c=(_0x1b5a0f=>(_0x1b5a0f[_0x212209(0xd3)]=_0x212209(0xba),_0x1b5a0f['IDLE']=_0x212209(0x105),_0x1b5a0f['FOLLOWING']=_0x212209(0x141),_0x1b5a0f[_0x212209(0x11f)]=_0x212209(0x114),_0x1b5a0f[_0x212209(0xed)]=_0x212209(0x130),_0x1b5a0f))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4463b3{constructor(_0x45714e,_0x2d75be,_0x364172,_0x41fd1f,_0x1b1456){const _0x4150b1=_0x212209;super(),u(this,_0x4150b1(0x112),new _0x31595c('idle')),u(this,'status$',this['_status$'][_0x4150b1(0x108)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x4150b1(0x13a),null),(this[_0x4150b1(0x100)]=_0x45714e,this['_collabSession']=_0x2d75be,this[_0x4150b1(0x14e)]=_0x364172,this[_0x4150b1(0xcc)]=_0x41fd1f,this['_commandService']=_0x1b1456);}get[_0x212209(0xbd)](){const _0x6f2ef6=_0x212209;return this[_0x6f2ef6(0x112)][_0x6f2ef6(0xfb)]();}[_0x212209(0xc6)](){const _0x2f7ad6=_0x212209;var _0x5f48f3;(_0x5f48f3=this[_0x2f7ad6(0xe0)])==null||_0x5f48f3[_0x2f7ad6(0xc6)](),this[_0x2f7ad6(0x112)][_0x2f7ad6(0xd0)](_0x2f7ad6(0x105)),this[_0x2f7ad6(0x112)]['complete']();}['getStatus'](){const _0x2fb767=_0x212209;return this[_0x2fb767(0xbd)];}[_0x212209(0x10f)](){const _0x511e29=_0x212209;this[_0x511e29(0xbc)]||(this['_init']=!0x0,this[_0x511e29(0x14f)][_0x511e29(0x14a)][_0x511e29(0xd1)](_0x481522(this[_0x511e29(0x151)]))[_0x511e29(0x12c)](_0x295680=>{const _0x5dcf27=_0x511e29;switch(_0x295680){case _0x4a6813[_0x5dcf27(0xd3)]:this[_0x5dcf27(0xda)]();break;case _0x4a6813['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0x511e29(0xd2)][_0x511e29(0xd1)](_0x481522(this[_0x511e29(0x151)]))[_0x511e29(0x12c)](_0x2bf3da=>{const _0x3b7c99=_0x511e29,{eventID:_0x4385e4}=_0x2bf3da;switch(_0x4385e4){case _0x6609c9[_0x3b7c99(0x13e)]:this[_0x3b7c99(0x110)](_0x2bf3da);break;case _0x6609c9[_0x3b7c99(0x12f)]:this[_0x3b7c99(0x10c)](_0x2bf3da);break;case _0x6609c9[_0x3b7c99(0x106)]:this[_0x3b7c99(0x144)]();break;case _0x6609c9[_0x3b7c99(0x135)]:this[_0x3b7c99(0x156)](_0x2bf3da);break;}}));}['tryStartPresenting'](){const _0x214b67=_0x212209;this[_0x214b67(0x14f)][_0x214b67(0x149)]({'eventID':_0x6609c9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x214b67(0x100)],'userID':this['_collabSession']['getMemberID']()}},this[_0x214b67(0x100)]);}[_0x212209(0xe2)](){const _0x4fbf1e=_0x212209;this[_0x4fbf1e(0xbd)]===_0x4fbf1e(0x130)&&(this['_status$'][_0x4fbf1e(0xd0)](_0x4fbf1e(0x105)),this[_0x4fbf1e(0x14f)][_0x4fbf1e(0x149)]({'eventID':_0x6609c9[_0x4fbf1e(0x106)],'data':{'unitID':this['_unitID']}},this[_0x4fbf1e(0x100)]));}[_0x212209(0x12d)](){const _0x185a35=_0x212209;this[_0x185a35(0xbd)]===_0x185a35(0x114)&&(this['_status$'][_0x185a35(0xd0)](_0x185a35(0x141)),this[_0x185a35(0xe8)]());}['stopFollowing'](){const _0xf8cb6e=_0x212209;this[_0xf8cb6e(0xbd)]===_0xf8cb6e(0x141)&&this[_0xf8cb6e(0x102)]();}['_handleNewHost'](_0xda0b84){const _0x4a3aba=_0x212209,{presenter:_0x33fcdd}=_0xda0b84[_0x4a3aba(0xe5)],_0x1220b1=this[_0x4a3aba(0x14f)][_0x4a3aba(0xb8)]();this[_0x4a3aba(0x13a)]=_0x33fcdd,_0x33fcdd===_0x1220b1?(this['_stopFollowing'](),this[_0x4a3aba(0x147)]()):this[_0x4a3aba(0xbd)]!=='not-following'&&(this[_0x4a3aba(0x153)](),this[_0x4a3aba(0xe8)]());}[_0x212209(0xce)](){const _0x1d803d=_0x212209,_0x589e6d={'eventID':_0x6609c9[_0x1d803d(0xf4)]};this[_0x1d803d(0x14f)]['send'](_0x589e6d,this[_0x1d803d(0x100)]);}[_0x212209(0x144)](){const _0x319b94=_0x212209;this[_0x319b94(0x13a)]=null,this[_0x319b94(0xbd)]!==_0x319b94(0x130)&&this[_0x319b94(0xf3)]();}['_handleNewChangeSets'](_0x529315){const _0x204ad7=_0x212209;if(this['_status']===_0x204ad7(0x141)&&this[_0x204ad7(0x13a)]===_0x529315[_0x204ad7(0xe5)][_0x204ad7(0xc2)]){const _0x21459f=_0x1b3259(_0x529315[_0x204ad7(0xe5)])['mutations'][_0x204ad7(0xee)]()[_0x204ad7(0xc9)](_0x16b2ca=>_0x16b2ca['id']===_0x3acb22['id']);if(_0x21459f){const _0x492762=_0x21459f[_0x204ad7(0xd5)]['unitId'],_0x4c0504=_0x21459f[_0x204ad7(0xd5)][_0x204ad7(0xfe)]['id'];setTimeout(()=>{const _0xa00a93=_0x204ad7;this[_0xa00a93(0xbf)]['executeCommand'](_0x39b917['id'],{'unitId':_0x492762,'subUnitId':_0x4c0504},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x427e67=_0x212209;this[_0x427e67(0x112)][_0x427e67(0xd0)]('presenting');const _0x12554e=new Map(),_0x20209c=this['_commandDisposable']=new _0x2d0575();_0x20209c[_0x427e67(0x12b)](_0x49de3d(()=>{const _0x3a454b=_0x427e67;_0x12554e[_0x3a454b(0xcd)](_0x159d4c=>_0x159d4c[_0x3a454b(0x148)]()),_0x12554e[_0x3a454b(0x132)]();})),_0x20209c['add'](this[_0x427e67(0xbf)][_0x427e67(0x137)](_0x3d26aa=>{const _0x33595e=_0x427e67;var _0xd2a369;if(_0x3d26aa[_0x33595e(0xdd)]!==_0x37dba8['OPERATION']||!this[_0x33595e(0xcc)][_0x33595e(0x145)](_0x3d26aa['id']))return;const {id:_0x2fc450}=_0x3d26aa;let _0x3da9e1;_0x12554e[_0x33595e(0xf0)](_0x2fc450)?_0x3da9e1=_0x12554e['get'](_0x2fc450):(_0x3da9e1=new _0x5b042d(),_0x12554e['set'](_0x2fc450,_0x3da9e1),_0x3da9e1[_0x33595e(0xd1)](_0x44f286((_0xd2a369=this[_0x33595e(0x14e)][_0x33595e(0x127)](Ce))!=null?_0xd2a369:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x43f462=>{const _0x3ec4c1=_0x33595e;this[_0x3ec4c1(0x14f)][_0x3ec4c1(0x149)]({'eventID':_0x6609c9[_0x3ec4c1(0x12f)],'data':{'unitID':this['_unitID'],'operations':{[_0x43f462['id']]:{'id':_0x43f462['id'],'params':JSON['stringify'](_0x43f462['params'])}}}},this[_0x3ec4c1(0x100)]);})),_0x3da9e1['next'](_0x3d26aa);})),this[_0x427e67(0xcc)]['getInitialStates'](this[_0x427e67(0x100)])[_0x427e67(0xcd)](_0x2b76ea=>this[_0x427e67(0x14f)][_0x427e67(0x149)]({'eventID':_0x6609c9[_0x427e67(0x12f)],'data':{'unitID':this[_0x427e67(0x100)],'operations':{[_0x2b76ea['id']]:{'id':_0x2b76ea['id'],'params':JSON[_0x427e67(0x150)](_0x2b76ea[_0x427e67(0xd5)])}}}},this[_0x427e67(0x100)]));}[_0x212209(0x153)](){const _0x2f0849=_0x212209;var _0x313ce8;this[_0x2f0849(0x112)][_0x2f0849(0xd0)](_0x2f0849(0x105)),(_0x313ce8=this[_0x2f0849(0xe0)])==null||_0x313ce8['dispose'](),this[_0x2f0849(0xe0)]=null;}[_0x212209(0xe8)](){const _0xe615f7=_0x212209;var _0x34a80c;(_0x34a80c=this[_0xe615f7(0xe0)])==null||_0x34a80c[_0xe615f7(0xc6)](),this[_0xe615f7(0x112)][_0xe615f7(0xd0)](_0xe615f7(0x141));}['_beIdle'](){const _0x68bcbd=_0x212209;var _0x52fae6;this[_0x68bcbd(0x112)][_0x68bcbd(0xd0)]('idle'),(_0x52fae6=this[_0x68bcbd(0xe0)])==null||_0x52fae6[_0x68bcbd(0xc6)](),this[_0x68bcbd(0xe0)]=null;}[_0x212209(0x102)](){const _0x95fc82=_0x212209;var _0x211633;this[_0x95fc82(0x112)][_0x95fc82(0xd0)](_0x95fc82(0x114)),(_0x211633=this[_0x95fc82(0xe0)])==null||_0x211633['dispose']();}[_0x212209(0x10c)](_0x5e2e2d){const _0x13eef3=_0x212209;if(['presenting',_0x13eef3(0x114),_0x13eef3(0xba)][_0x13eef3(0xb6)](this[_0x13eef3(0xbd)])||!_0x5e2e2d[_0x13eef3(0xe5)]['presenter']||_0x5e2e2d[_0x13eef3(0xe5)]['presenter']===this[_0x13eef3(0x14f)][_0x13eef3(0xb8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xe05760=_0x5e2e2d[_0x13eef3(0xe5)]['operations'];Object[_0x13eef3(0xeb)](_0xe05760)[_0x13eef3(0xcd)](_0x38221c=>{const _0x256db7=_0x13eef3;this[_0x256db7(0xbf)][_0x256db7(0xdf)](_0x38221c['id'],_0x38221c[_0x256db7(0xd5)]?JSON[_0x256db7(0x136)](_0x38221c[_0x256db7(0xd5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3fe3c7=_0x212209;var _0x3488fe;this[_0x3fe3c7(0x112)][_0x3fe3c7(0xd0)](_0x3fe3c7(0xba)),(_0x3488fe=this[_0x3fe3c7(0xe0)])==null||_0x3488fe[_0x3fe3c7(0xc6)]();}['_handleOnline'](){const _0x2b9bb4=_0x212209;this[_0x2b9bb4(0x112)][_0x2b9bb4(0xd0)](_0x2b9bb4(0x105)),this['_fetchOperations']();}};N=Y([_(0x2,_0x424ac1),_(0x3,_0x2d419c(L)),_(0x4,_0x48309a)],N);function Le(){const _0xa0f88c=_0x212209,_0x56d1c0=_0x41ee86(S),_0x57cfcc=_0x41ee86(_0x399f38),_0x43424c=_0x1e7148(()=>_0x57cfcc[_0xa0f88c(0x143)](_0x122966[_0xa0f88c(0xcb)]),void 0x0,!0x1,[]),[_0x494772,_0x4ee001]=_0x871941(null),[_0x5bbf0f,_0x1cadc4]=_0x871941(c['IDLE']),_0x2abebb=_0x2dcd15(null);return _0x823b3a(()=>(_0x43424c&&_0x56d1c0[_0xa0f88c(0x138)](_0x43424c[_0xa0f88c(0x111)]())[_0xa0f88c(0x124)](_0x3acbce=>{const _0x89a18c=_0xa0f88c;_0x4ee001(_0x3acbce),_0x2abebb['current']=_0x3acbce[_0x89a18c(0xde)][_0x89a18c(0x12c)](_0x1b0956=>{_0x1cadc4(_0x1b0956);});}),()=>{const _0x3ac011=_0xa0f88c;var _0x436cfc;(_0x436cfc=_0x2abebb[_0x3ac011(0x120)])==null||_0x436cfc[_0x3ac011(0x133)](),_0x2abebb['current']=null;}),[_0x43424c,_0x56d1c0]),_0x494772?_0x1116ce(_0x40d765,{'align':_0xa0f88c(0xdc),'disabled':_0x5bbf0f===c[_0xa0f88c(0xd3)],'className':_0xa0f88c(0xb4),'overlay':_0x1116ce(Re,{'status':_0x5bbf0f,'coordinator':_0x494772}),'children':_0x1116ce(_0xa0f88c(0x129),{'className':_0x5b6799(_0xa0f88c(0x11e),{'univer-cursor-not-allowed':_0x5bbf0f===c[_0xa0f88c(0xd3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5bbf0f!==c[_0xa0f88c(0xd3)]}),'type':_0xa0f88c(0x129),'children':_0x1116ce(W,{'className':'univer-size-4'})})}):null;}function Re(_0x59e053){const _0x2423b0=_0x212209,{status:_0x54a23c,coordinator:_0x525c3f}=_0x59e053;switch(_0x54a23c){case c[_0x2423b0(0x119)]:return _0x1116ce($e,{'coordinator':_0x525c3f});case c['FOLLOWING']:return _0x1116ce(xe,{'coordinator':_0x525c3f});case c[_0x2423b0(0x11f)]:return _0x1116ce(Pe,{'coordinator':_0x525c3f});case c['OFFLINE']:return _0x1116ce(Te,{});case c[_0x2423b0(0xed)]:return _0x1116ce(Ae,{'coordinator':_0x525c3f});default:return null;}}function $e(_0x39691e){const _0x3633a4=_0x212209,{coordinator:_0x3ff40c}=_0x39691e;return _0x17f549(_0x315589,{'children':[_0x1116ce(_0x3633a4(0x116),{'className':_0x3633a4(0xf6),'children':_0x3633a4(0xf7)}),_0x1116ce(_0x37fd1d,{'onClick':()=>_0x3ff40c[_0x3633a4(0xc8)](),'children':_0x3633a4(0x157)})]});}function xe(_0x34ec7d){const _0x2836b2=_0x212209,{coordinator:_0x4dcd0f}=_0x34ec7d;return _0x17f549(_0x315589,{'children':[_0x1116ce(_0x2836b2(0x116),{'className':_0x2836b2(0xf6),'children':_0x2836b2(0x14b)}),_0x1116ce(_0x37fd1d,{'onClick':()=>_0x4dcd0f['stopFollowing'](),'children':'Stop\x20following'})]});}function Pe(_0x1d7899){const _0x4bc041=_0x212209,{coordinator:_0xfd916d}=_0x1d7899;return _0x17f549(_0x315589,{'children':[_0x1116ce('div',{'className':_0x4bc041(0xf6),'children':_0x4bc041(0x13b)}),_0x1116ce(_0x37fd1d,{'variant':_0x4bc041(0xea),'onClick':()=>_0xfd916d[_0x4bc041(0x12d)](),'children':_0x4bc041(0xe7)})]});}function _0xaf5d(_0x95f4ae,_0x441ed2){_0x95f4ae=_0x95f4ae-0xb3;const _0x384ae5=_0x384a();let _0xaf5d86=_0x384ae5[_0x95f4ae];return _0xaf5d86;}function Ae(_0x1c7874){const _0x35222c=_0x212209,{coordinator:_0x219081}=_0x1c7874;return _0x17f549(_0x315589,{'children':[_0x1116ce(_0x35222c(0x116),{'className':_0x35222c(0xf6),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x1116ce(_0x37fd1d,{'variant':_0x35222c(0xef),'onClick':()=>_0x219081[_0x35222c(0xe2)](),'children':_0x35222c(0xc3)})]});}function Te(){const _0x2b2d51=_0x212209;return _0x1116ce(_0x315589,{'children':_0x2b2d51(0x152)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x193af7,_0xe32e82,_0x2b8e60,_0x590e74)=>{const _0x72bce7=_0x212209;for(var _0x1a25e5=_0x590e74>0x1?void 0x0:_0x590e74?Fe(_0xe32e82,_0x2b8e60):_0xe32e82,_0xc7d74d=_0x193af7[_0x72bce7(0xd4)]-0x1,_0x22f634;_0xc7d74d>=0x0;_0xc7d74d--)(_0x22f634=_0x193af7[_0xc7d74d])&&(_0x1a25e5=_0x22f634(_0x1a25e5)||_0x1a25e5);return _0x1a25e5;},A=(_0x5e9ff5,_0x2bd29e)=>(_0x439b97,_0x2e6bb1)=>_0x2bd29e(_0x439b97,_0x2e6bb1,_0x5e9ff5);let m=class extends _0x55618e{constructor(_0x3940b7,_0x3eb98b){const _0x4ce1c5=_0x212209;super(),this[_0x4ce1c5(0x12a)]=_0x3940b7,this[_0x4ce1c5(0x13c)]=_0x3eb98b,this[_0x4ce1c5(0xb3)]();}[_0x212209(0xb3)](){const _0x569064=_0x212209;this[_0x569064(0x128)](this[_0x569064(0x13c)][_0x569064(0xfa)](_0x59d57b['HEADER_MENU'],()=>_0x3dc26f(Le,this[_0x569064(0x12a)])));}};m=He([A(0x0,_0x2d419c(_0x164169)),A(0x1,_0x135352)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x59a8ae,_0x1dfc4d,_0x438810,_0x107b73)=>{const _0x1dc2ca=_0x212209;for(var _0x23e481=_0x107b73>0x1?void 0x0:_0x107b73?Ue(_0x1dfc4d,_0x438810):_0x1dfc4d,_0x110fbb=_0x59a8ae[_0x1dc2ca(0xd4)]-0x1,_0x53ba83;_0x110fbb>=0x0;_0x110fbb--)(_0x53ba83=_0x59a8ae[_0x110fbb])&&(_0x23e481=_0x53ba83(_0x23e481)||_0x23e481);return _0x23e481;},je=(_0x5851aa,_0xba2d04)=>(_0x4ffac4,_0x5ba660)=>_0xba2d04(_0x4ffac4,_0x5ba660,_0x5851aa);let I=class extends _0x55618e{constructor(_0x441dab){const _0x1fb2a0=_0x212209;super(),this[_0x1fb2a0(0xcc)]=_0x441dab,this[_0x1fb2a0(0xbc)]();}['_init'](){const _0x1b511d=_0x212209;[_0xb13517['id'],_0xeebac6['id'],_0x39b917['id']][_0x1b511d(0xcd)](_0x9cddbd=>{const _0x25d193=_0x1b511d;this[_0x25d193(0x128)](this['_liveShareService'][_0x25d193(0xec)](_0x9cddbd));});}};I=Ve([je(0x0,_0x2d419c(L))],I);var Me=Object['defineProperty'],ke=Object[_0x212209(0xe3)],Ge=(_0x1481e8,_0x1e7ddf,_0x131cd1)=>_0x1e7ddf in _0x1481e8?Me(_0x1481e8,_0x1e7ddf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131cd1}):_0x1481e8[_0x1e7ddf]=_0x131cd1,We=(_0x4314f6,_0x59e6db,_0x1d05a3,_0x413495)=>{for(var _0x1b6340=_0x413495>0x1?void 0x0:_0x413495?ke(_0x59e6db,_0x1d05a3):_0x59e6db,_0x165a49=_0x4314f6['length']-0x1,_0x1d96a2;_0x165a49>=0x0;_0x165a49--)(_0x1d96a2=_0x4314f6[_0x165a49])&&(_0x1b6340=_0x1d96a2(_0x1b6340)||_0x1b6340);return _0x1b6340;},F=(_0xdb0df7,_0x4442f0)=>(_0x9dc101,_0x1b6d00)=>_0x4442f0(_0x9dc101,_0x1b6d00,_0xdb0df7),B=(_0x36f99d,_0x595ab3,_0x4e81e9)=>Ge(_0x36f99d,typeof _0x595ab3!=_0x212209(0xfc)?_0x595ab3+'':_0x595ab3,_0x4e81e9);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x5b2afb{constructor(_0x327ac7=T,_0x5e757f,_0x4810c9){const _0x1b5369=_0x212209;super(),this['_config']=_0x327ac7,this[_0x1b5369(0x12a)]=_0x5e757f,this['_configService']=_0x4810c9;const {..._0x46f431}=_0x51a3b6({},T,this[_0x1b5369(0x12e)]);this[_0x1b5369(0x14e)][_0x1b5369(0x10d)](ye,_0x46f431);}[_0x212209(0x125)](){const _0x387012=_0x212209;_0x1d11dc(this[_0x387012(0x12a)],_0x40f34e([[L],[S],[I],[m]],this['_config'][_0x387012(0x117)])),_0x5d3d6c(this[_0x387012(0x12a)],[[I]]);}[_0x212209(0xd9)](){const _0x8e09d3=_0x212209;_0x5d3d6c(this[_0x8e09d3(0x12a)],[[m]]);}};B(b,'type',_0x122966[_0x212209(0xf9)]),B(b,'pluginName',Ye),b=We([_0x163697(_0x3d6035),F(0x1,_0x2d419c(_0x164169)),F(0x2,_0x424ac1)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
@@ -1,3 +1,4 @@
1
+ import { Injector } from '@univerjs/core';
1
2
  import { LiveShareStatus } from '@univerjs-pro/live-share';
2
3
  import { FUniver } from '@univerjs/core/facade';
3
4
  /**
@@ -26,6 +27,8 @@ interface IFUniverLiveShareMixin {
26
27
  stopPresenting(): void;
27
28
  }
28
29
  export declare class FUniverLiveShareMixin extends FUniver implements IFUniverLiveShareMixin {
30
+ private _liveShareController;
31
+ _initialize(injector: Injector): void;
29
32
  getLiveShareStatus(): LiveShareStatus;
30
33
  startFollowing(): void;
31
34
  stopFollowing(): void;
@@ -1,3 +1,2 @@
1
- import './f-range';
2
1
  import './f-univer';
3
2
  import './f-enum';
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3db9b3,_0x2356ee){const _0x46618a=_0x40da,_0x59a498=_0x3db9b3();while(!![]){try{const _0x5623eb=parseInt(_0x46618a(0x15b))/0x1*(-parseInt(_0x46618a(0x14b))/0x2)+parseInt(_0x46618a(0x15c))/0x3+-parseInt(_0x46618a(0x16e))/0x4*(parseInt(_0x46618a(0x155))/0x5)+parseInt(_0x46618a(0x149))/0x6*(-parseInt(_0x46618a(0x16f))/0x7)+-parseInt(_0x46618a(0x14d))/0x8*(-parseInt(_0x46618a(0x15d))/0x9)+-parseInt(_0x46618a(0x151))/0xa*(-parseInt(_0x46618a(0x141))/0xb)+-parseInt(_0x46618a(0x165))/0xc*(-parseInt(_0x46618a(0x148))/0xd);if(_0x5623eb===_0x2356ee)break;else _0x59a498['push'](_0x59a498['shift']());}catch(_0x4c552e){_0x59a498['push'](_0x59a498['shift']());}}}(_0x528f,0x9f91b),function(_0xa785b6,_0x6b1391){const _0x1c3d63=_0x40da;typeof exports==_0x1c3d63(0x13e)&&typeof module<'u'?_0x6b1391(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x1c3d63(0x167)&&define[_0x1c3d63(0x139)]?define(['@univerjs-pro/live-share','@univerjs/engine-render',_0x1c3d63(0x156),_0x1c3d63(0x143),_0x1c3d63(0x159),_0x1c3d63(0x138)],_0x6b1391):(_0xa785b6=typeof globalThis<'u'?globalThis:_0xa785b6||self,_0x6b1391(_0xa785b6[_0x1c3d63(0x161)],_0xa785b6[_0x1c3d63(0x152)],_0xa785b6[_0x1c3d63(0x13f)],_0xa785b6[_0x1c3d63(0x169)],_0xa785b6[_0x1c3d63(0x14f)],_0xa785b6['UniverCoreFacade']));}(this,function(_0x555227,_0x1518de,_0x69c5e5,_0xbef7e2,_0x2ae06f,_0x585452){'use strict';const _0x55d04e=_0x40da;class _0x105915 extends _0x2ae06f[_0x55d04e(0x16c)]{[_0x55d04e(0x13d)](_0x231c11,_0xa45338,_0xf10955,_0x508ce1,_0x52f536){const _0x4c8e6a=_0x55d04e,_0x4249ff=_0x231c11['get'](_0x555227[_0x4c8e6a(0x16b)]),_0x56467b=_0x231c11[_0x4c8e6a(0x15a)](_0x1518de[_0x4c8e6a(0x163)]),_0x245061=_0xa45338[_0x4c8e6a(0x144)](),_0x3efacc=_0xa45338['getActiveSheet'](),_0x2fe3f9=_0x4249ff[_0x4c8e6a(0x16a)](_0x245061);(_0x2fe3f9==null?void 0x0:_0x2fe3f9['getStatus']())!==_0x555227[_0x4c8e6a(0x157)][_0x4c8e6a(0x15e)]||(_0xf10955[_0x4c8e6a(0x15f)]()!==_0x3efacc[_0x4c8e6a(0x15f)]()&&this[_0x4c8e6a(0x164)]['executeCommand'](_0x69c5e5[_0x4c8e6a(0x168)]['id'],{'unitId':_0x245061,'subUnitId':_0xf10955[_0x4c8e6a(0x15f)]()}),!_0x56467b[_0x4c8e6a(0x140)](_0x245061))||_0x52f536[_0x4c8e6a(0x142)](_0xbef7e2[_0x4c8e6a(0x145)]['id'],{'unitId':_0xa45338[_0x4c8e6a(0x144)](),'sheetId':_0xf10955[_0x4c8e6a(0x15f)](),'sheetViewStartRow':_0x508ce1[_0x4c8e6a(0x162)],'sheetViewStartColumn':_0x508ce1[_0x4c8e6a(0x146)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2ae06f[_0x55d04e(0x16c)][_0x55d04e(0x14e)](_0x105915);class _0x1c8043 extends _0x585452['FUniver']{['getLiveShareStatus'](){const _0x5c203a=_0x55d04e;var _0x3ef705,_0x3f66df;const _0x546766=this['_injector'][_0x5c203a(0x15a)](_0x555227[_0x5c203a(0x16b)]),_0x51cffe=(_0x3ef705=this[_0x5c203a(0x14c)]())==null?void 0x0:_0x3ef705[_0x5c203a(0x16d)]();if(!_0x51cffe)throw new Error(_0x5c203a(0x160));const _0x2c4927=_0x546766['getLiveShareCoordinatorSync'](_0x51cffe);return(_0x3f66df=_0x2c4927==null?void 0x0:_0x2c4927[_0x5c203a(0x153)]())!=null?_0x3f66df:_0x555227[_0x5c203a(0x157)][_0x5c203a(0x147)];}[_0x55d04e(0x154)](){const _0x299692=_0x55d04e;var _0x7047f7;const _0x481df2=this[_0x299692(0x13a)]['get'](_0x555227[_0x299692(0x16b)]),_0x8e319a=(_0x7047f7=this[_0x299692(0x14c)]())==null?void 0x0:_0x7047f7[_0x299692(0x16d)]();if(!_0x8e319a)throw new Error(_0x299692(0x160));const _0xe4921d=_0x481df2[_0x299692(0x16a)](_0x8e319a);if(!_0xe4921d)throw new Error(_0x299692(0x150));_0xe4921d[_0x299692(0x154)]();}[_0x55d04e(0x14a)](){const _0x2c5f81=_0x55d04e;var _0x3d6af5;const _0xb2cb84=this[_0x2c5f81(0x13a)][_0x2c5f81(0x15a)](_0x555227[_0x2c5f81(0x16b)]),_0x86fbd9=(_0x3d6af5=this['getActiveWorkbook']())==null?void 0x0:_0x3d6af5[_0x2c5f81(0x16d)]();if(!_0x86fbd9)throw new Error(_0x2c5f81(0x160));const _0x4543a0=_0xb2cb84[_0x2c5f81(0x16a)](_0x86fbd9);if(!_0x4543a0)throw new Error(_0x2c5f81(0x150));_0x4543a0['stopFollowing']();}[_0x55d04e(0x13c)](){const _0x158a1b=_0x55d04e;var _0x2f3a63;const _0x33637c=this[_0x158a1b(0x13a)][_0x158a1b(0x15a)](_0x555227[_0x158a1b(0x16b)]),_0x31768c=(_0x2f3a63=this['getActiveWorkbook']())==null?void 0x0:_0x2f3a63[_0x158a1b(0x16d)]();if(!_0x31768c)throw new Error(_0x158a1b(0x160));const _0x4d89c7=_0x33637c[_0x158a1b(0x16a)](_0x31768c);if(!_0x4d89c7)throw new Error(_0x158a1b(0x150));_0x4d89c7['tryStartPresenting']();}['stopPresenting'](){const _0x32dcbc=_0x55d04e;var _0x357ed4;const _0x2e35c0=this['_injector']['get'](_0x555227[_0x32dcbc(0x16b)]),_0x4cd953=(_0x357ed4=this['getActiveWorkbook']())==null?void 0x0:_0x357ed4[_0x32dcbc(0x16d)]();if(!_0x4cd953)throw new Error('No\x20active\x20workbook\x20found.');const _0x5570a4=_0x2e35c0[_0x32dcbc(0x16a)](_0x4cd953);if(!_0x5570a4)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5570a4[_0x32dcbc(0x166)]();}}_0x585452[_0x55d04e(0x13b)][_0x55d04e(0x14e)](_0x1c8043);class _0x4164ec extends _0x585452[_0x55d04e(0x158)]{get['LiveShareStatusEnum'](){const _0x570ea1=_0x55d04e;return _0x555227[_0x570ea1(0x157)];}}_0x585452[_0x55d04e(0x158)][_0x55d04e(0x14e)](_0x4164ec);}));function _0x40da(_0x16f368,_0x5c0903){_0x16f368=_0x16f368-0x138;const _0x528f26=_0x528f();let _0x40da47=_0x528f26[_0x16f368];return _0x40da47;}function _0x528f(){const _0xb5a914=['@univerjs/sheets-ui','getUnitId','SetScrollOperation','startColumn','IDLE','75283TxFUeT','1039404DzYJSF','stopFollowing','1706SkSqId','getActiveWorkbook','159528qFhCbH','extend','UniverSheetsFacade','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','375780VenKHa','UniverEngineRender','getStatus','startFollowing','2795ojXFAd','@univerjs/sheets','LiveShareStatus','FEnum','@univerjs/sheets/facade','get','971XetJxn','1307898UlcfbV','117OpaFRA','PRESENTING','getSheetId','No\x20active\x20workbook\x20found.','UniverProLiveShare','startRow','IRenderManagerService','_commandService','1992frmvgk','stopPresenting','function','SetWorksheetActiveOperation','UniverSheetsUi','getLiveShareCoordinatorSync','LiveShareController','FRange','getId','5388XHAreZ','7ylexxP','@univerjs/core/facade','amd','_injector','FUniver','startPresenting','_initialize','object','UniverSheets','getRenderById','220CHcoYf','syncExecuteCommand'];_0x528f=function(){return _0xb5a914;};return _0x528f();}
1
+ function _0x5ec5(){const _0x313c75=['startPresenting','LiveShareController','947172UUpFom','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IDLE','function','7XpIDYS','LiveShareStatusEnum','1812PomDhW','_injector','extend','145608MSoYjS','_liveShareController','getCurrentUnitOfType','UNIVER_SHEET','4004ZmeMQy','@univerjs-pro/live-share','68057ZcICee','getLiveShareStatus','24zcLphy','2785viMqms','No\x20active\x20workbook\x20found.','stopPresenting','UniverCore','getUnitId','startFollowing','4636722ucCbOh','getLiveShareCoordinatorSync','UniverInstanceType','@univerjs/core','object','defineProperty','IUniverInstanceService','amd','243jWTrmB','UniverProLiveShare','606RWhtgg','stopFollowing','LiveShareStatus','FEnum','16584841ZTXYrw','_initialize','get','2150LPmiNc','getStatus'];_0x5ec5=function(){return _0x313c75;};return _0x5ec5();}function _0x387c(_0x598a11,_0x5f1b6a){_0x598a11=_0x598a11-0xfb;const _0x5ec5b0=_0x5ec5();let _0x387c5c=_0x5ec5b0[_0x598a11];return _0x387c5c;}(function(_0x458701,_0x3ac344){const _0x2a1c2e=_0x387c,_0x5370a8=_0x458701();while(!![]){try{const _0xba3154=-parseInt(_0x2a1c2e(0x10d))/0x1*(parseInt(_0x2a1c2e(0x122))/0x2)+-parseInt(_0x2a1c2e(0x100))/0x3+parseInt(_0x2a1c2e(0x106))/0x4*(-parseInt(_0x2a1c2e(0x112))/0x5)+parseInt(_0x2a1c2e(0x118))/0x6*(-parseInt(_0x2a1c2e(0x104))/0x7)+parseInt(_0x2a1c2e(0x109))/0x8*(-parseInt(_0x2a1c2e(0x120))/0x9)+-parseInt(_0x2a1c2e(0xfc))/0xa*(-parseInt(_0x2a1c2e(0x10f))/0xb)+-parseInt(_0x2a1c2e(0x111))/0xc*(-parseInt(_0x2a1c2e(0x126))/0xd);if(_0xba3154===_0x3ac344)break;else _0x5370a8['push'](_0x5370a8['shift']());}catch(_0x49fb3d){_0x5370a8['push'](_0x5370a8['shift']());}}}(_0x5ec5,0xcc298),function(_0x2fed04,_0x3368ee){const _0x346c7c=_0x387c;typeof exports==_0x346c7c(0x11c)&&typeof module<'u'?_0x3368ee(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x346c7c(0x103)&&define[_0x346c7c(0x11f)]?define([_0x346c7c(0x10e),_0x346c7c(0x11b),'@univerjs/core/facade'],_0x3368ee):(_0x2fed04=typeof globalThis<'u'?globalThis:_0x2fed04||self,_0x3368ee(_0x2fed04[_0x346c7c(0x121)],_0x2fed04[_0x346c7c(0x115)],_0x2fed04['UniverCoreFacade']));}(this,function(_0x439d1c,_0x145173,_0x496b6c){'use strict';const _0x482754=_0x387c;var _0x34fd93=Object[_0x482754(0x11d)],_0x2cbe28=(_0x29a6c0,_0x3e9ba2,_0x34b7bf)=>_0x3e9ba2 in _0x29a6c0?_0x34fd93(_0x29a6c0,_0x3e9ba2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34b7bf}):_0x29a6c0[_0x3e9ba2]=_0x34b7bf,_0x268d82=(_0x184310,_0x146a7a,_0x4ebf41)=>_0x2cbe28(_0x184310,typeof _0x146a7a!='symbol'?_0x146a7a+'':_0x146a7a,_0x4ebf41);class _0x2600cf extends _0x496b6c['FUniver']{constructor(){const _0x4fdd83=_0x482754;super(...arguments),_0x268d82(this,_0x4fdd83(0x10a));}[_0x482754(0x127)](_0x2702d5){const _0x112ddc=_0x482754;this[_0x112ddc(0x10a)]=_0x2702d5[_0x112ddc(0xfb)](_0x439d1c[_0x112ddc(0xff)]);}[_0x482754(0x110)](){const _0x26e1bc=_0x482754;var _0x549c67;const _0x249cf2=this['_injector'][_0x26e1bc(0xfb)](_0x145173['IUniverInstanceService'])[_0x26e1bc(0x10b)](_0x145173[_0x26e1bc(0x11a)][_0x26e1bc(0x10c)]);if(!_0x249cf2)throw new Error(_0x26e1bc(0x113));const _0x2b980e=_0x249cf2[_0x26e1bc(0x116)](),_0xbe58a5=this['_liveShareController'][_0x26e1bc(0x119)](_0x2b980e);return(_0x549c67=_0xbe58a5==null?void 0x0:_0xbe58a5[_0x26e1bc(0xfd)]())!=null?_0x549c67:_0x439d1c[_0x26e1bc(0x124)][_0x26e1bc(0x102)];}[_0x482754(0x117)](){const _0x44b431=_0x482754,_0x1a1f37=this['_injector'][_0x44b431(0xfb)](_0x145173['IUniverInstanceService'])[_0x44b431(0x10b)](_0x145173[_0x44b431(0x11a)]['UNIVER_SHEET']);if(!_0x1a1f37)throw new Error(_0x44b431(0x113));const _0x4583c8=_0x1a1f37[_0x44b431(0x116)](),_0x410134=this['_liveShareController'][_0x44b431(0x119)](_0x4583c8);if(!_0x410134)throw new Error(_0x44b431(0x101));_0x410134[_0x44b431(0x117)]();}[_0x482754(0x123)](){const _0x8f54eb=_0x482754,_0x267de8=this[_0x8f54eb(0x107)]['get'](_0x145173[_0x8f54eb(0x11e)])['getCurrentUnitOfType'](_0x145173[_0x8f54eb(0x11a)][_0x8f54eb(0x10c)]);if(!_0x267de8)throw new Error(_0x8f54eb(0x113));const _0x38762b=_0x267de8[_0x8f54eb(0x116)](),_0x2eb153=this[_0x8f54eb(0x10a)]['getLiveShareCoordinatorSync'](_0x38762b);if(!_0x2eb153)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2eb153['stopFollowing']();}[_0x482754(0xfe)](){const _0x5eea95=_0x482754,_0x4c829e=this[_0x5eea95(0x107)]['get'](_0x145173[_0x5eea95(0x11e)])[_0x5eea95(0x10b)](_0x145173[_0x5eea95(0x11a)][_0x5eea95(0x10c)]);if(!_0x4c829e)throw new Error(_0x5eea95(0x113));const _0x5d2c02=_0x4c829e[_0x5eea95(0x116)](),_0x1b463c=this['_liveShareController'][_0x5eea95(0x119)](_0x5d2c02);if(!_0x1b463c)throw new Error(_0x5eea95(0x101));_0x1b463c['tryStartPresenting']();}['stopPresenting'](){const _0x596097=_0x482754,_0x45c27d=this[_0x596097(0x107)][_0x596097(0xfb)](_0x145173[_0x596097(0x11e)])[_0x596097(0x10b)](_0x145173['UniverInstanceType'][_0x596097(0x10c)]);if(!_0x45c27d)throw new Error(_0x596097(0x113));const _0x5efecd=_0x45c27d[_0x596097(0x116)](),_0x2993b2=this[_0x596097(0x10a)][_0x596097(0x119)](_0x5efecd);if(!_0x2993b2)throw new Error(_0x596097(0x101));_0x2993b2[_0x596097(0x114)]();}}_0x496b6c['FUniver']['extend'](_0x2600cf);class _0x468777 extends _0x496b6c[_0x482754(0x125)]{get[_0x482754(0x105)](){const _0x55d62d=_0x482754;return _0x439d1c[_0x55d62d(0x124)];}}_0x496b6c[_0x482754(0x125)][_0x482754(0x108)](_0x468777);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3107(_0x3b7e22,_0x58396f){_0x3b7e22=_0x3b7e22-0xf2;const _0x37cc55=_0x37cc();let _0x310756=_0x37cc55[_0x3b7e22];return _0x310756;}(function(_0x51d61d,_0xcced3c){const _0xb8ee18=_0x3107,_0x9c9b2e=_0x51d61d();while(!![]){try{const _0x50395f=-parseInt(_0xb8ee18(0x1cb))/0x1*(parseInt(_0xb8ee18(0xf4))/0x2)+parseInt(_0xb8ee18(0x11d))/0x3+-parseInt(_0xb8ee18(0x15d))/0x4*(parseInt(_0xb8ee18(0x1ba))/0x5)+parseInt(_0xb8ee18(0x134))/0x6+parseInt(_0xb8ee18(0x127))/0x7*(parseInt(_0xb8ee18(0x197))/0x8)+parseInt(_0xb8ee18(0x102))/0x9+-parseInt(_0xb8ee18(0x182))/0xa*(parseInt(_0xb8ee18(0x1a4))/0xb);if(_0x50395f===_0xcced3c)break;else _0x9c9b2e['push'](_0x9c9b2e['shift']());}catch(_0x62502f){_0x9c9b2e['push'](_0x9c9b2e['shift']());}}}(_0x37cc,0xeb96e),function(_0x2174a5,_0x55daaa){const _0x219809=_0x3107;typeof exports=='object'&&typeof module<'u'?_0x55daaa(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==_0x219809(0x13c)&&define[_0x219809(0x14e)]?define([_0x219809(0x143),'@univerjs/core',_0x219809(0x1c5),_0x219809(0x1b2),_0x219809(0x1cc),_0x219809(0x148),_0x219809(0x191),'@univerjs-pro/collaboration-client',_0x219809(0x17f),'rxjs',_0x219809(0x18f),_0x219809(0x1bd)],_0x55daaa):(_0x2174a5=typeof globalThis<'u'?globalThis:_0x2174a5||self,_0x55daaa(_0x2174a5[_0x219809(0x1be)]={},_0x2174a5['UniverCore'],_0x2174a5[_0x219809(0x103)],_0x2174a5[_0x219809(0xf9)],_0x2174a5['UniverDesign'],_0x2174a5['React'],_0x2174a5[_0x219809(0xfa)],_0x2174a5['UniverProCollaborationClient'],_0x2174a5[_0x219809(0xf5)],_0x2174a5['rxjs'],_0x2174a5[_0x219809(0x113)]['operators'],_0x2174a5[_0x219809(0x178)]));}(this,function(_0x35ab29,_0x5a140e,_0x267332,_0x6e4634,_0x429503,_0xf8699b,_0x429a23,_0x478fee,_0x52982c,_0x2db641,_0x9016cd,_0x426dfa){'use strict';const _0x451ecc=_0x3107;var _0x4e1612=Object[_0x451ecc(0x194)],_0x2a28a8=(_0x2aad64,_0x2e2442,_0x14a053)=>_0x2e2442 in _0x2aad64?_0x4e1612(_0x2aad64,_0x2e2442,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14a053}):_0x2aad64[_0x2e2442]=_0x14a053,_0x4a3433=(_0x7a15eb,_0x58ad19,_0x44910e)=>_0x2a28a8(_0x7a15eb,typeof _0x58ad19!=_0x451ecc(0x19f)?_0x58ad19+'':_0x58ad19,_0x44910e);function _0x23af71({ref:_0xa42723,..._0x474128}){const _0x4b654b=_0x451ecc,{icon:_0x361105,id:_0x51ce75,className:_0x1804da,extend:_0x126595,..._0x4cfdef}=_0x474128,_0x49b64d=(_0x4b654b(0xf2)+_0x51ce75+'\x20'+(_0x1804da||''))[_0x4b654b(0x176)](),_0x4b2dab=_0xf8699b[_0x4b654b(0xfc)]('_'+_0x41f90a());return _0x570270(_0x361105,''+_0x51ce75,{'defIds':_0x361105[_0x4b654b(0x1b5)],'idSuffix':_0x4b2dab[_0x4b654b(0x196)]},{'ref':_0xa42723,'className':_0x49b64d,..._0x4cfdef},_0x126595);}function _0x570270(_0x3814d5,_0x3d4547,_0x3e7c4f,_0x1f6b95,_0x3e9ede){const _0x4d0010=_0x451ecc;return _0xf8699b[_0x4d0010(0x1bf)](_0x3814d5[_0x4d0010(0x10c)],{'key':_0x3d4547,..._0x59eba3(_0x3814d5,_0x3e7c4f,_0x3e9ede),..._0x1f6b95},(_0x2d7385(_0x3814d5,_0x3e7c4f)['children']||[])[_0x4d0010(0x16d)]((_0x31b92a,_0x568a06)=>_0x570270(_0x31b92a,_0x3d4547+'-'+_0x3814d5[_0x4d0010(0x10c)]+'-'+_0x568a06,_0x3e7c4f,void 0x0,_0x3e9ede)));}function _0x59eba3(_0x28e9ab,_0x4066e4,_0x4787cb){const _0x2b324a=_0x451ecc,_0x1d526d={..._0x28e9ab[_0x2b324a(0x198)]};_0x4787cb!=null&&_0x4787cb[_0x2b324a(0x1cd)]&&_0x1d526d['fill']===_0x2b324a(0x1cd)&&(_0x1d526d[_0x2b324a(0x17d)]=_0x4787cb[_0x2b324a(0x1cd)]),_0x28e9ab[_0x2b324a(0x10c)]===_0x2b324a(0x126)&&_0x1d526d['id']&&(_0x1d526d['id']=_0x1d526d['id']+_0x4066e4['idSuffix']),Object[_0x2b324a(0x1b1)](_0x1d526d)[_0x2b324a(0x19d)](([_0x1f1e46,_0x277013])=>{const _0x252e28=_0x2b324a;_0x1f1e46==='mask'&&typeof _0x277013==_0x252e28(0x13b)&&(_0x1d526d[_0x1f1e46]=_0x277013[_0x252e28(0x149)](/url\(#(.*)\)/,'url(#$1'+_0x4066e4[_0x252e28(0x1a0)]+')'));});const {defIds:_0x40d9ec}=_0x4066e4;return!_0x40d9ec||_0x40d9ec['length']===0x0||(_0x28e9ab[_0x2b324a(0x10c)]===_0x2b324a(0x115)&&_0x1d526d['xlink:href']&&(_0x1d526d[_0x2b324a(0x161)]=_0x1d526d[_0x2b324a(0x161)]+_0x4066e4['idSuffix']),Object[_0x2b324a(0x1b1)](_0x1d526d)['forEach'](([_0x1c9750,_0x1ee0a0])=>{const _0x2edaad=_0x2b324a;typeof _0x1ee0a0==_0x2edaad(0x13b)&&(_0x1d526d[_0x1c9750]=_0x1ee0a0[_0x2edaad(0x149)](/url\(#(.*)\)/,_0x2edaad(0x10a)+_0x4066e4['idSuffix']+')'));})),_0x1d526d;}function _0x2d7385(_0x56d310,_0xb3faa4){const _0x570d76=_0x451ecc;var _0x197619;const {defIds:_0x4e04ca}=_0xb3faa4;return!_0x4e04ca||_0x4e04ca[_0x570d76(0x1ab)]===0x0?_0x56d310:_0x56d310[_0x570d76(0x10c)]===_0x570d76(0x12c)&&((_0x197619=_0x56d310[_0x570d76(0x11e)])!=null&&_0x197619[_0x570d76(0x1ab)])?{..._0x56d310,'children':_0x56d310[_0x570d76(0x11e)][_0x570d76(0x16d)](_0x17a091=>typeof _0x17a091[_0x570d76(0x198)]['id']==_0x570d76(0x13b)&&_0x4e04ca&&_0x4e04ca[_0x570d76(0x138)](_0x17a091['attrs']['id'])?{..._0x17a091,'attrs':{..._0x17a091[_0x570d76(0x198)],'id':_0x17a091[_0x570d76(0x198)]['id']+_0xb3faa4[_0x570d76(0x1a0)]}}:_0x17a091)}:_0x56d310;}function _0x41f90a(){const _0x32145f=_0x451ecc;return Math[_0x32145f(0xf6)]()[_0x32145f(0x192)](0x24)[_0x32145f(0xfb)](0x2,0x8);}_0x23af71[_0x451ecc(0x1a1)]='UniverIcon';const _0x306327={'tag':_0x451ecc(0x1dd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x451ecc(0x147),'width':_0x451ecc(0x11b),'height':'1em'},'children':[{'tag':_0x451ecc(0x195),'attrs':{'fill':_0x451ecc(0x13d),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x451ecc(0x13d),'d':_0x451ecc(0x10f),'fillRule':_0x451ecc(0x19a),'clipRule':_0x451ecc(0x19a)}}]},_0x56e0e=_0xf8699b[_0x451ecc(0x1da)](function(_0x411223,_0x39f812){const _0x15c4a3=_0x451ecc;return _0xf8699b[_0x15c4a3(0x1bf)](_0x23af71,Object['assign']({},_0x411223,{'id':_0x15c4a3(0x1d7),'ref':_0x39f812,'icon':_0x306327}));});_0x56e0e[_0x451ecc(0x1a1)]=_0x451ecc(0x107);class _0xda7745 extends _0x5a140e[_0x451ecc(0x1ae)]{constructor(){const _0xd351=_0x451ecc;super(...arguments),_0x4a3433(this,_0xd351(0x1ad),new Set()),_0x4a3433(this,'_reporters',new Set());}['registerSharedOperation'](_0x37e238){const _0x374b98=_0x451ecc;return this[_0x374b98(0x1ad)][_0x374b98(0x130)](_0x37e238),_0x5a140e['toDisposable'](()=>this[_0x374b98(0x1ad)][_0x374b98(0x19c)](_0x37e238));}[_0x451ecc(0x118)](_0x9a18f2){const _0x3a0552=_0x451ecc;return this['_reporters'][_0x3a0552(0x130)](_0x9a18f2),_0x5a140e[_0x3a0552(0x165)](()=>this['_reporters']['delete'](_0x9a18f2));}['shouldShareOperation'](_0x58560a){const _0x539bc0=_0x451ecc;return this[_0x539bc0(0x1ad)][_0x539bc0(0x162)](_0x58560a);}[_0x451ecc(0x1a3)](_0xf9714a){const _0x2353e0=_0x451ecc;return Array[_0x2353e0(0x17c)](this[_0x2353e0(0x1de)])[_0x2353e0(0x16d)](_0x10e662=>_0x10e662(_0xf9714a));}}var _0x24df1c=Object['getOwnPropertyDescriptor'],_0x35905c=(_0x4d47a,_0x9eedfe,_0x418185,_0x3c96f0)=>{for(var _0x470a45=_0x3c96f0>0x1?void 0x0:_0x3c96f0?_0x24df1c(_0x9eedfe,_0x418185):_0x9eedfe,_0x1b6070=_0x4d47a['length']-0x1,_0xcce2f2;_0x1b6070>=0x0;_0x1b6070--)(_0xcce2f2=_0x4d47a[_0x1b6070])&&(_0x470a45=_0xcce2f2(_0x470a45)||_0x470a45);return _0x470a45;},_0x2cbb9e=(_0x3b02b9,_0x487d01)=>(_0x4e4c5b,_0x51f1e0)=>_0x487d01(_0x4e4c5b,_0x51f1e0,_0x3b02b9);_0x35ab29[_0x451ecc(0x166)]=class extends _0x5a140e[_0x451ecc(0x1a7)]{constructor(_0xa1e5c4,_0x474ce0,_0xbf61d5){const _0x428c88=_0x451ecc;super(),_0x4a3433(this,_0x428c88(0x186),new Map()),(this['_univerInstanceService']=_0xa1e5c4,this['_injector']=_0x474ce0,this['_collabSessionService']=_0xbf61d5,this['_init']());}async[_0x451ecc(0x1d0)](_0x2fe75f){const _0x24889f=_0x451ecc;return this[_0x24889f(0x186)][_0x24889f(0x162)](_0x2fe75f)||await this[_0x24889f(0x12d)](_0x2fe75f),this[_0x24889f(0x186)][_0x24889f(0x128)](_0x2fe75f);}['getLiveShareCoordinatorSync'](_0x227080){const _0x4a51f4=_0x451ecc;var _0x4669d7;return(_0x4669d7=this[_0x4a51f4(0x186)][_0x4a51f4(0x128)](_0x227080))!=null?_0x4669d7:null;}[_0x451ecc(0x1a2)](){const _0x99a231=_0x451ecc;this[_0x99a231(0x12a)][_0x99a231(0x163)](_0x5a140e['UniverInstanceType']['UNIVER_SHEET'])[_0x99a231(0x123)](_0x9016cd[_0x99a231(0x154)](this[_0x99a231(0x1c9)]))[_0x99a231(0x140)](async _0x2ced11=>{const _0x4ce22b=_0x99a231,_0x564ca3=_0x2ced11[_0x4ce22b(0x151)]();this['_entities'][_0x4ce22b(0x162)](_0x564ca3)||this[_0x4ce22b(0x12d)](_0x564ca3);}),this[_0x99a231(0x12a)][_0x99a231(0x105)](_0x5a140e[_0x99a231(0x10d)][_0x99a231(0x152)])[_0x99a231(0x123)](_0x9016cd['takeUntil'](this[_0x99a231(0x1c9)]))[_0x99a231(0x140)](_0x3cf768=>{const _0x2a79b5=_0x99a231,_0x55b7e9=_0x3cf768[_0x2a79b5(0x151)](),_0x11144a=this[_0x2a79b5(0x186)]['get'](_0x55b7e9);_0x11144a==null||_0x11144a[_0x2a79b5(0x184)]();});}async[_0x451ecc(0x12d)](_0x28cd0c){const _0x48d80a=_0x451ecc,_0x3fa196=await this['_collabSessionService'][_0x48d80a(0x145)](_0x28cd0c),_0x595f02=this[_0x48d80a(0x136)]['createInstance'](_0x35ab29[_0x48d80a(0xf3)],_0x28cd0c,_0x3fa196);return _0x595f02['init'](),this[_0x48d80a(0x186)][_0x48d80a(0x18c)](_0x28cd0c,_0x595f02),_0x595f02;}},_0x35ab29[_0x451ecc(0x166)]=_0x35905c([_0x2cbb9e(0x0,_0x5a140e[_0x451ecc(0x124)]),_0x2cbb9e(0x1,_0x5a140e['Inject'](_0x5a140e[_0x451ecc(0x172)])),_0x2cbb9e(0x2,_0x5a140e[_0x451ecc(0x1d1)](_0x478fee[_0x451ecc(0x13f)]))],_0x35ab29[_0x451ecc(0x166)]);var _0x50e5fe=(_0x227d08=>(_0x227d08[_0x451ecc(0x122)]=_0x451ecc(0x16e),_0x227d08[_0x451ecc(0x13a)]=_0x451ecc(0x1c2),_0x227d08['FOLLOWING']=_0x451ecc(0x131),_0x227d08[_0x451ecc(0x12e)]=_0x451ecc(0x156),_0x227d08[_0x451ecc(0x164)]='presenting',_0x227d08))(_0x50e5fe||{});const _0x424a45=_0x451ecc(0x158),_0x2f4c9c=0xc8;_0x35ab29[_0x451ecc(0xf3)]=class extends _0x5a140e[_0x451ecc(0x1a7)]{constructor(_0x30cca7,_0x163773,_0x5a0a00,_0x4c2641,_0x13bd2e){const _0x176d51=_0x451ecc;super(),_0x4a3433(this,_0x176d51(0xf7),new _0x2db641[(_0x176d51(0x108))](_0x176d51(0x1c2))),_0x4a3433(this,_0x176d51(0x16c),this['_status$']['asObservable']()),_0x4a3433(this,_0x176d51(0x1a2),!0x1),_0x4a3433(this,_0x176d51(0x190),null),_0x4a3433(this,'_presenter',null),(this['_unitID']=_0x30cca7,this['_collabSession']=_0x163773,this[_0x176d51(0x106)]=_0x5a0a00,this['_liveShareService']=_0x4c2641,this['_commandService']=_0x13bd2e);}get[_0x451ecc(0x155)](){const _0x34ce08=_0x451ecc;return this[_0x34ce08(0xf7)][_0x34ce08(0x187)]();}[_0x451ecc(0x184)](){const _0x304e19=_0x451ecc;var _0x292f68;(_0x292f68=this[_0x304e19(0x190)])==null||_0x292f68[_0x304e19(0x184)](),this[_0x304e19(0xf7)]['next'](_0x304e19(0x1c2)),this[_0x304e19(0xf7)]['complete']();}['getStatus'](){return this['_status'];}[_0x451ecc(0x160)](){const _0x215196=_0x451ecc;this[_0x215196(0x1a2)]||(this[_0x215196(0x1a2)]=!0x0,this[_0x215196(0x117)][_0x215196(0x10b)][_0x215196(0x123)](_0x9016cd[_0x215196(0x154)](this[_0x215196(0x1c9)]))[_0x215196(0x140)](_0x45d6bf=>{const _0x586f8b=_0x215196;switch(_0x45d6bf){case _0x478fee['SessionStatus'][_0x586f8b(0x122)]:this[_0x586f8b(0x1b3)]();break;case _0x478fee[_0x586f8b(0x1d8)][_0x586f8b(0xff)]:this[_0x586f8b(0x169)]();break;}}),this[_0x215196(0x117)][_0x215196(0x181)]['pipe'](_0x9016cd[_0x215196(0x154)](this[_0x215196(0x1c9)]))[_0x215196(0x140)](_0x79d781=>{const _0x52e7af=_0x215196,{eventID:_0x67f8fb}=_0x79d781;switch(_0x67f8fb){case _0x429a23[_0x52e7af(0x14c)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x79d781);break;case _0x429a23[_0x52e7af(0x14c)][_0x52e7af(0x1e0)]:this[_0x52e7af(0x18b)](_0x79d781);break;case _0x429a23[_0x52e7af(0x14c)]['LIVESHARE_TERMINATE']:this[_0x52e7af(0x17b)]();break;case _0x429a23['CollaborationEvent']['NEW_CHANGESETS']:this[_0x52e7af(0x188)](_0x79d781);break;}}));}[_0x451ecc(0x1d4)](){const _0x2fdf79=_0x451ecc;this[_0x2fdf79(0x117)]['send']({'eventID':_0x429a23[_0x2fdf79(0x14c)][_0x2fdf79(0x173)],'data':{'unitID':this[_0x2fdf79(0x139)],'userID':this[_0x2fdf79(0x117)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x3c31ed=_0x451ecc;this[_0x3c31ed(0x155)]===_0x3c31ed(0x12f)&&(this[_0x3c31ed(0xf7)]['next'](_0x3c31ed(0x1c2)),this[_0x3c31ed(0x117)][_0x3c31ed(0x121)]({'eventID':_0x429a23[_0x3c31ed(0x14c)][_0x3c31ed(0x1bb)],'data':{'unitID':this['_unitID']}},this[_0x3c31ed(0x139)]));}['startFollowing'](){const _0x46a5bd=_0x451ecc;this[_0x46a5bd(0x155)]===_0x46a5bd(0x156)&&(this['_status$'][_0x46a5bd(0x193)](_0x46a5bd(0x131)),this['_startFollowing']());}[_0x451ecc(0x1b6)](){const _0x47e244=_0x451ecc;this[_0x47e244(0x155)]===_0x47e244(0x131)&&this[_0x47e244(0x1c3)]();}[_0x451ecc(0x129)](_0x1e06d6){const _0x5a84c3=_0x451ecc,{presenter:_0x5dd706}=_0x1e06d6[_0x5a84c3(0x1ca)],_0x4fd118=this[_0x5a84c3(0x117)][_0x5a84c3(0x141)]();this['_presenter']=_0x5dd706,_0x5dd706===_0x4fd118?(this['_stopFollowing'](),this[_0x5a84c3(0x170)]()):this['_status']!==_0x5a84c3(0x156)&&(this[_0x5a84c3(0x15e)](),this[_0x5a84c3(0x1c7)]());}[_0x451ecc(0x15b)](){const _0x3a0e96=_0x451ecc,_0x43801f={'eventID':_0x429a23[_0x3a0e96(0x14c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3a0e96(0x117)][_0x3a0e96(0x121)](_0x43801f,this['_unitID']);}[_0x451ecc(0x17b)](){const _0x4295ed=_0x451ecc;this[_0x4295ed(0x153)]=null,this[_0x4295ed(0x155)]!=='presenting'&&this[_0x4295ed(0x171)]();}['_handleNewChangeSets'](_0xf0c79a){const _0x244108=_0x451ecc;if(this[_0x244108(0x155)]===_0x244108(0x131)&&this['_presenter']===_0xf0c79a[_0x244108(0x1ca)][_0x244108(0x17a)]){const _0x5c6109=_0x429a23[_0x244108(0x14d)](_0xf0c79a[_0x244108(0x1ca)])[_0x244108(0x18a)][_0x244108(0x119)]()[_0x244108(0x104)](_0x2cea54=>_0x2cea54['id']===_0x52982c[_0x244108(0x135)]['id']);if(_0x5c6109){const _0x3348f4=_0x5c6109['params'][_0x244108(0x1aa)],_0xfa73e0=_0x5c6109[_0x244108(0x1c6)]['sheet']['id'];setTimeout(()=>{const _0xde2a12=_0x244108;this[_0xde2a12(0x1c8)][_0xde2a12(0x1c0)](_0x52982c[_0xde2a12(0x109)]['id'],{'unitId':_0x3348f4,'subUnitId':_0xfa73e0},{'fromCollab':!0x0});});}}}[_0x451ecc(0x170)](){const _0x2a801b=_0x451ecc;this[_0x2a801b(0xf7)][_0x2a801b(0x193)](_0x2a801b(0x12f));const _0x6e511f=new Map(),_0x31af26=this[_0x2a801b(0x190)]=new _0x5a140e[(_0x2a801b(0x174))]();_0x31af26['add'](_0x5a140e['toDisposable'](()=>{const _0x35e507=_0x2a801b;_0x6e511f[_0x35e507(0x19d)](_0x9d4d1e=>_0x9d4d1e[_0x35e507(0x11a)]()),_0x6e511f[_0x35e507(0x111)]();})),_0x31af26['add'](this[_0x2a801b(0x1c8)][_0x2a801b(0x1a8)](_0x50d6f5=>{const _0x2b6766=_0x2a801b;var _0x4807e4;if(_0x50d6f5[_0x2b6766(0xf8)]!==_0x5a140e[_0x2b6766(0x12b)][_0x2b6766(0x159)]||!this[_0x2b6766(0x1ac)][_0x2b6766(0x1b9)](_0x50d6f5['id']))return;const {id:_0x18ae6b}=_0x50d6f5;let _0x4874f9;_0x6e511f[_0x2b6766(0x162)](_0x18ae6b)?_0x4874f9=_0x6e511f[_0x2b6766(0x128)](_0x18ae6b):(_0x4874f9=new _0x2db641[(_0x2b6766(0x110))](),_0x6e511f['set'](_0x18ae6b,_0x4874f9),_0x4874f9[_0x2b6766(0x123)](_0x9016cd[_0x2b6766(0x16b)]((_0x4807e4=this[_0x2b6766(0x106)][_0x2b6766(0x18d)](_0x424a45))!=null?_0x4807e4:_0x2f4c9c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2b6766(0x140)](_0x2640de=>{const _0x26ec17=_0x2b6766;this[_0x26ec17(0x117)][_0x26ec17(0x121)]({'eventID':_0x429a23[_0x26ec17(0x14c)][_0x26ec17(0x1e0)],'data':{'unitID':this[_0x26ec17(0x139)],'operations':{[_0x2640de['id']]:{'id':_0x2640de['id'],'params':JSON[_0x26ec17(0x16a)](_0x2640de[_0x26ec17(0x1c6)])}}}},this[_0x26ec17(0x139)]);})),_0x4874f9[_0x2b6766(0x193)](_0x50d6f5);})),this[_0x2a801b(0x1ac)]['getInitialStates'](this['_unitID'])[_0x2a801b(0x19d)](_0x2716b6=>this[_0x2a801b(0x117)][_0x2a801b(0x121)]({'eventID':_0x429a23[_0x2a801b(0x14c)][_0x2a801b(0x1e0)],'data':{'unitID':this[_0x2a801b(0x139)],'operations':{[_0x2716b6['id']]:{'id':_0x2716b6['id'],'params':JSON[_0x2a801b(0x16a)](_0x2716b6[_0x2a801b(0x1c6)])}}}},this[_0x2a801b(0x139)]));}['_stopPresenting'](){const _0x532d13=_0x451ecc;var _0xae4a4f;this[_0x532d13(0xf7)][_0x532d13(0x193)](_0x532d13(0x1c2)),(_0xae4a4f=this[_0x532d13(0x190)])==null||_0xae4a4f[_0x532d13(0x184)](),this[_0x532d13(0x190)]=null;}['_startFollowing'](){const _0xb75abe=_0x451ecc;var _0x5d808b;(_0x5d808b=this[_0xb75abe(0x190)])==null||_0x5d808b[_0xb75abe(0x184)](),this[_0xb75abe(0xf7)][_0xb75abe(0x193)](_0xb75abe(0x131));}[_0x451ecc(0x171)](){const _0x16e679=_0x451ecc;var _0x2a9c3a;this[_0x16e679(0xf7)]['next'](_0x16e679(0x1c2)),(_0x2a9c3a=this[_0x16e679(0x190)])==null||_0x2a9c3a[_0x16e679(0x184)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xa93afc=_0x451ecc;var _0x20b24b;this['_status$'][_0xa93afc(0x193)]('not-following'),(_0x20b24b=this[_0xa93afc(0x190)])==null||_0x20b24b[_0xa93afc(0x184)]();}['_handleOperation'](_0x3ebd65){const _0x49cc4a=_0x451ecc;if([_0x49cc4a(0x12f),_0x49cc4a(0x156),_0x49cc4a(0x16e)][_0x49cc4a(0x138)](this[_0x49cc4a(0x155)])||!_0x3ebd65[_0x49cc4a(0x1ca)][_0x49cc4a(0x150)]||_0x3ebd65[_0x49cc4a(0x1ca)][_0x49cc4a(0x150)]===this[_0x49cc4a(0x117)][_0x49cc4a(0x141)]())return;this[_0x49cc4a(0x155)]==='idle'&&this[_0x49cc4a(0x1c7)]();const _0x12fa3a=_0x3ebd65[_0x49cc4a(0x1ca)][_0x49cc4a(0x14b)];Object[_0x49cc4a(0x114)](_0x12fa3a)[_0x49cc4a(0x19d)](_0x5f1e96=>{const _0x271c24=_0x49cc4a;this[_0x271c24(0x1c8)][_0x271c24(0x1c0)](_0x5f1e96['id'],_0x5f1e96['params']?JSON[_0x271c24(0x14a)](_0x5f1e96[_0x271c24(0x1c6)]):null,{'fromCollab':!0x0});});}[_0x451ecc(0x1b3)](){const _0x32039b=_0x451ecc;var _0xf1256d;this[_0x32039b(0xf7)][_0x32039b(0x193)](_0x32039b(0x16e)),(_0xf1256d=this[_0x32039b(0x190)])==null||_0xf1256d[_0x32039b(0x184)]();}['_handleOnline'](){const _0x4d7494=_0x451ecc;this['_status$'][_0x4d7494(0x193)](_0x4d7494(0x1c2)),this[_0x4d7494(0x15b)]();}},_0x35ab29[_0x451ecc(0xf3)]=_0x35905c([_0x2cbb9e(0x2,_0x5a140e['IConfigService']),_0x2cbb9e(0x3,_0x5a140e['Inject'](_0xda7745)),_0x2cbb9e(0x4,_0x5a140e[_0x451ecc(0x1df)])],_0x35ab29['LiveShareCoordinator']);function _0x3f8263(){const _0x593e86=_0x451ecc,_0x3f4006=_0x267332[_0x593e86(0x1a6)](_0x35ab29[_0x593e86(0x166)]),_0x18a6de=_0x267332['useDependency'](_0x5a140e[_0x593e86(0x124)]),_0x359aac=_0x267332[_0x593e86(0x183)](()=>_0x18a6de[_0x593e86(0x13e)](_0x5a140e['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4efb91,_0x186492]=_0xf8699b[_0x593e86(0x1dc)](null),[_0x21c1bc,_0x2a8147]=_0xf8699b[_0x593e86(0x1dc)](_0x50e5fe[_0x593e86(0x13a)]),_0x1a2397=_0xf8699b[_0x593e86(0xfc)](null);return _0xf8699b[_0x593e86(0x144)](()=>(_0x359aac&&_0x3f4006['getLiveShareCoordinator'](_0x359aac[_0x593e86(0x151)]())[_0x593e86(0x1c4)](_0x254691=>{const _0x49c593=_0x593e86;_0x186492(_0x254691),_0x1a2397[_0x49c593(0x196)]=_0x254691['status$'][_0x49c593(0x140)](_0x20b5a9=>{_0x2a8147(_0x20b5a9);});}),()=>{const _0x320e1a=_0x593e86;var _0x5e41ee;(_0x5e41ee=_0x1a2397[_0x320e1a(0x196)])==null||_0x5e41ee[_0x320e1a(0x1c1)](),_0x1a2397[_0x320e1a(0x196)]=null;}),[_0x359aac,_0x3f4006]),_0x4efb91?_0x6e4634[_0x593e86(0x167)](_0x429503['Dropdown'],{'align':_0x593e86(0x19e),'disabled':_0x21c1bc===_0x50e5fe[_0x593e86(0x122)],'className':_0x593e86(0x175),'overlay':_0x6e4634[_0x593e86(0x167)](_0x4bfbc7,{'status':_0x21c1bc,'coordinator':_0x4efb91}),'children':_0x6e4634['jsx'](_0x593e86(0x15f),{'className':_0x429503['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x21c1bc===_0x50e5fe[_0x593e86(0x122)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21c1bc!==_0x50e5fe[_0x593e86(0x122)]}),'type':_0x593e86(0x15f),'children':_0x6e4634[_0x593e86(0x167)](_0x56e0e,{'className':_0x593e86(0x142)})})}):null;}function _0x4bfbc7(_0x1eed5e){const _0x1e6f4a=_0x451ecc,{status:_0x273d43,coordinator:_0x546ed3}=_0x1eed5e;switch(_0x273d43){case _0x50e5fe[_0x1e6f4a(0x13a)]:return _0x6e4634[_0x1e6f4a(0x167)](_0x307f08,{'coordinator':_0x546ed3});case _0x50e5fe['FOLLOWING']:return _0x6e4634[_0x1e6f4a(0x167)](_0xea3c43,{'coordinator':_0x546ed3});case _0x50e5fe[_0x1e6f4a(0x12e)]:return _0x6e4634[_0x1e6f4a(0x167)](_0x3360a5,{'coordinator':_0x546ed3});case _0x50e5fe['OFFLINE']:return _0x6e4634[_0x1e6f4a(0x167)](_0x4367e6,{});case _0x50e5fe[_0x1e6f4a(0x164)]:return _0x6e4634[_0x1e6f4a(0x167)](_0x3d6998,{'coordinator':_0x546ed3});default:return null;}}function _0x307f08(_0x41823d){const _0x5305d0=_0x451ecc,{coordinator:_0x271306}=_0x41823d;return _0x6e4634['jsxs'](_0x6e4634[_0x5305d0(0x101)],{'children':[_0x6e4634[_0x5305d0(0x167)](_0x5305d0(0x137),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5305d0(0x1b4)}),_0x6e4634[_0x5305d0(0x167)](_0x429503[_0x5305d0(0x1b0)],{'onClick':()=>_0x271306[_0x5305d0(0x1d4)](),'children':_0x5305d0(0x1d3)})]});}function _0xea3c43(_0x38a8fb){const _0x305642=_0x451ecc,{coordinator:_0x178406}=_0x38a8fb;return _0x6e4634[_0x305642(0x15a)](_0x6e4634['Fragment'],{'children':[_0x6e4634[_0x305642(0x167)](_0x305642(0x137),{'className':_0x305642(0x1af),'children':_0x305642(0x11f)}),_0x6e4634[_0x305642(0x167)](_0x429503[_0x305642(0x1b0)],{'onClick':()=>_0x178406[_0x305642(0x1b6)](),'children':'Stop\x20following'})]});}function _0x3360a5(_0x2068ef){const _0x2cae0a=_0x451ecc,{coordinator:_0x432eb2}=_0x2068ef;return _0x6e4634['jsxs'](_0x6e4634[_0x2cae0a(0x101)],{'children':[_0x6e4634[_0x2cae0a(0x167)](_0x2cae0a(0x137),{'className':_0x2cae0a(0x1af),'children':_0x2cae0a(0x189)}),_0x6e4634['jsx'](_0x429503[_0x2cae0a(0x1b0)],{'variant':_0x2cae0a(0x179),'onClick':()=>_0x432eb2[_0x2cae0a(0x17e)](),'children':_0x2cae0a(0x1a9)})]});}function _0x3d6998(_0x41ac64){const _0x4f2f7f=_0x451ecc,{coordinator:_0x177b4e}=_0x41ac64;return _0x6e4634['jsxs'](_0x6e4634[_0x4f2f7f(0x101)],{'children':[_0x6e4634[_0x4f2f7f(0x167)](_0x4f2f7f(0x137),{'className':_0x4f2f7f(0x1af),'children':_0x4f2f7f(0x14f)}),_0x6e4634[_0x4f2f7f(0x167)](_0x429503[_0x4f2f7f(0x1b0)],{'variant':_0x4f2f7f(0x19b),'onClick':()=>_0x177b4e['stopPresenting'](),'children':_0x4f2f7f(0x16f)})]});}function _0x4367e6(){const _0x24eeb9=_0x451ecc;return _0x6e4634[_0x24eeb9(0x167)](_0x6e4634[_0x24eeb9(0x101)],{'children':_0x24eeb9(0x1e1)});}var _0x585c1f=Object['getOwnPropertyDescriptor'],_0x4c87db=(_0x2d8ee1,_0x1089eb,_0x23066e,_0x2e0287)=>{const _0xc37d88=_0x451ecc;for(var _0x23bbb0=_0x2e0287>0x1?void 0x0:_0x2e0287?_0x585c1f(_0x1089eb,_0x23066e):_0x1089eb,_0x4f2214=_0x2d8ee1[_0xc37d88(0x1ab)]-0x1,_0x1eec0c;_0x4f2214>=0x0;_0x4f2214--)(_0x1eec0c=_0x2d8ee1[_0x4f2214])&&(_0x23bbb0=_0x1eec0c(_0x23bbb0)||_0x23bbb0);return _0x23bbb0;},_0x26f085=(_0x2800c8,_0x2b9e13)=>(_0x22d23e,_0x4bd498)=>_0x2b9e13(_0x22d23e,_0x4bd498,_0x2800c8);_0x35ab29[_0x451ecc(0x168)]=class extends _0x5a140e[_0x451ecc(0x1ae)]{constructor(_0x54bc6c,_0x14bfff){const _0x35f70a=_0x451ecc;super(),this[_0x35f70a(0x136)]=_0x54bc6c,this['_uiPartsService']=_0x14bfff,this[_0x35f70a(0x11c)]();}[_0x451ecc(0x11c)](){const _0x28f145=_0x451ecc;this['disposeWithMe'](this[_0x28f145(0xfe)][_0x28f145(0x112)](_0x267332[_0x28f145(0x1b7)]['HEADER_MENU'],()=>_0x267332[_0x28f145(0x1d5)](_0x3f8263,this[_0x28f145(0x136)])));}},_0x35ab29[_0x451ecc(0x168)]=_0x4c87db([_0x26f085(0x0,_0x5a140e[_0x451ecc(0x1d1)](_0x5a140e[_0x451ecc(0x172)])),_0x26f085(0x1,_0x267332['IUIPartsService'])],_0x35ab29[_0x451ecc(0x168)]);const _0x5ef914=_0x451ecc(0x125),_0x2c6aeb={};var _0x4aa299=Object[_0x451ecc(0x1d2)],_0x47b788=(_0x130726,_0x24b5de,_0x45d495,_0x30878a)=>{const _0x15395c=_0x451ecc;for(var _0x36a7d2=_0x30878a>0x1?void 0x0:_0x30878a?_0x4aa299(_0x24b5de,_0x45d495):_0x24b5de,_0x3e6c4c=_0x130726[_0x15395c(0x1ab)]-0x1,_0x37db0e;_0x3e6c4c>=0x0;_0x3e6c4c--)(_0x37db0e=_0x130726[_0x3e6c4c])&&(_0x36a7d2=_0x37db0e(_0x36a7d2)||_0x36a7d2);return _0x36a7d2;},_0x54958d=(_0x585bdc,_0x3fc103)=>(_0x4e6913,_0x13068b)=>_0x3fc103(_0x4e6913,_0x13068b,_0x585bdc);let _0x4142da=class extends _0x5a140e[_0x451ecc(0x1ae)]{constructor(_0x561868){const _0x3ce90b=_0x451ecc;super(),this[_0x3ce90b(0x1ac)]=_0x561868,this['_init']();}[_0x451ecc(0x1a2)](){const _0x43c8fa=_0x451ecc;[_0x426dfa[_0x43c8fa(0x1b8)]['id'],_0x426dfa[_0x43c8fa(0x177)]['id'],_0x52982c[_0x43c8fa(0x109)]['id']][_0x43c8fa(0x19d)](_0x2606ba=>{const _0x4ce613=_0x43c8fa;this[_0x4ce613(0x132)](this[_0x4ce613(0x1ac)][_0x4ce613(0x180)](_0x2606ba));});}};_0x4142da=_0x47b788([_0x54958d(0x0,_0x5a140e[_0x451ecc(0x1d1)](_0xda7745))],_0x4142da);var _0x3e694f=Object['defineProperty'],_0x66e03e=Object['getOwnPropertyDescriptor'],_0x49e092=(_0x45ba0e,_0x204862,_0x36dac4)=>_0x204862 in _0x45ba0e?_0x3e694f(_0x45ba0e,_0x204862,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36dac4}):_0x45ba0e[_0x204862]=_0x36dac4,_0x529c40=(_0x3289f8,_0x4f8797,_0x440ab2,_0x14dd4a)=>{const _0x341535=_0x451ecc;for(var _0x65fa29=_0x14dd4a>0x1?void 0x0:_0x14dd4a?_0x66e03e(_0x4f8797,_0x440ab2):_0x4f8797,_0x241fbc=_0x3289f8[_0x341535(0x1ab)]-0x1,_0x6c8cb2;_0x241fbc>=0x0;_0x241fbc--)(_0x6c8cb2=_0x3289f8[_0x241fbc])&&(_0x65fa29=_0x6c8cb2(_0x65fa29)||_0x65fa29);return _0x65fa29;},_0xe0ad5b=(_0xca48d6,_0x54c7a3)=>(_0x3741c7,_0x4d377f)=>_0x54c7a3(_0x3741c7,_0x4d377f,_0xca48d6),_0x18951b=(_0x69e0d8,_0x2649aa,_0x58de5e)=>_0x49e092(_0x69e0d8,typeof _0x2649aa!='symbol'?_0x2649aa+'':_0x2649aa,_0x58de5e);const _0x741549=_0x451ecc(0x1a5);_0x35ab29[_0x451ecc(0x185)]=class extends _0x5a140e[_0x451ecc(0x1db)]{constructor(_0x18d51d=_0x2c6aeb,_0x1f6b3e,_0xe899cc){const _0x1c6cb2=_0x451ecc;super(),this['_config']=_0x18d51d,this[_0x1c6cb2(0x136)]=_0x1f6b3e,this[_0x1c6cb2(0x106)]=_0xe899cc;const {..._0x541061}=_0x5a140e[_0x1c6cb2(0x10e)]({},_0x2c6aeb,this[_0x1c6cb2(0x1ce)]);this['_configService'][_0x1c6cb2(0x146)](_0x5ef914,_0x541061);}[_0x451ecc(0xfd)](){const _0x47b45f=_0x451ecc;_0x5a140e[_0x47b45f(0x120)](this[_0x47b45f(0x136)],_0x5a140e[_0x47b45f(0x1d6)]([[_0xda7745],[_0x35ab29['LiveShareController']],[_0x4142da],[_0x35ab29[_0x47b45f(0x168)]]],this[_0x47b45f(0x1ce)][_0x47b45f(0x133)])),_0x5a140e['touchDependencies'](this[_0x47b45f(0x136)],[[_0x4142da]]);}['onRendered'](){const _0x54b2d1=_0x451ecc;_0x5a140e[_0x54b2d1(0x157)](this[_0x54b2d1(0x136)],[[_0x35ab29[_0x54b2d1(0x168)]]]);}},_0x18951b(_0x35ab29[_0x451ecc(0x185)],_0x451ecc(0xf8),_0x5a140e['UniverInstanceType'][_0x451ecc(0x100)]),_0x18951b(_0x35ab29['UniverLiveSharePlugin'],_0x451ecc(0x1d9),_0x741549),_0x35ab29['UniverLiveSharePlugin']=_0x529c40([_0x5a140e[_0x451ecc(0x15c)](_0x478fee[_0x451ecc(0x1bc)]),_0xe0ad5b(0x1,_0x5a140e[_0x451ecc(0x1d1)](_0x5a140e[_0x451ecc(0x172)])),_0xe0ad5b(0x2,_0x5a140e[_0x451ecc(0x199)])],_0x35ab29['UniverLiveSharePlugin']),_0x35ab29['LiveShare']=_0x3f8263,_0x35ab29[_0x451ecc(0x18e)]=_0xda7745,_0x35ab29[_0x451ecc(0x116)]=_0x50e5fe,Object[_0x451ecc(0x194)](_0x35ab29,Symbol[_0x451ecc(0x1cf)],{'value':'Module'});}));function _0x37cc(){const _0x1c4e2e=['random','_status$','type','React','UniverProCollaboration','substring','useRef','onStarting','_uiPartsService','ONLINE','UNIVER_UNKNOWN','Fragment','10825533MwAjIA','UniverUi','find','getTypeOfUnitDisposed$','_configService','LiveShareIcon','BehaviorSubject','SetWorksheetActiveOperation','url(#$1','sessionStatus$','tag','UniverInstanceType','merge','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','Subject','clear','registerComponent','rxjs','values','use','LiveShareStatus','_collabSession','registerInitialStateReporter','reverse','complete','1em','_mountLiveShare','3513303KMvDOQ','children','You\x27re\x20following\x20the\x20presenter','registerDependencies','send','OFFLINE','pipe','IUniverInstanceService','live-share.config','mask','35KBHnAo','get','_handleNewHost','_univerInstanceService','CommandType','defs','_startLiveShareCoordinator','NOT_FOLLOWING','presenting','add','following','disposeWithMe','override','995502AUgEcO','InsertSheetMutation','_injector','div','includes','_unitID','IDLE','string','function','currentColor','getCurrentTypeOfUnit$','CollaborationSessionService','subscribe','getMemberID','univer-size-4','exports','useEffect','requireSession','setConfig','0\x200\x2017\x2017','react','replace','parse','operations','CollaborationEvent','parseProtocolChangeset','amd','You\x27re\x20presenting\x20the\x20document','presenter','getUnitId','UNIVER_SHEET','_presenter','takeUntil','_status','not-following','touchDependencies','SAME_OPERATION_SHARE_INTERVAL','OPERATION','jsxs','_fetchOperations','DependentOn','4nTfgUG','_stopPresenting','button','init','xlink:href','has','getTypeOfUnitAdded$','PRESENTING','toDisposable','LiveShareController','jsx','DesktopLiveShareController','_handleOnline','stringify','throttleTime','status$','map','offline','Stop\x20presenting','_startPresenting','_beIdle','Injector','LIVESHARE_REQUEST_HOST','DisposableCollection','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','trim','SetScrollOperation','UniverSheetsUi','text','memberID','_handleTerminate','from','fill','startFollowing','@univerjs/sheets','registerSharedOperation','event$','4446250YhTOXz','useObservable','dispose','UniverLiveSharePlugin','_entities','getValue','_handleNewChangeSets','You\x27re\x20not\x20following\x20the\x20presenter','mutations','_handleOperation','set','getConfig','LiveShareService','rxjs/operators','_commandDisposable','@univerjs-pro/collaboration','toString','next','defineProperty','path','current','2262224BspWrG','attrs','IConfigService','evenodd','default','delete','forEach','end','symbol','idSuffix','displayName','_init','getInitialStates','66CTsiGL','UNIVER_LIVE_SHARE_PLUGIN','useDependency','RxDisposable','onCommandExecuted','Start\x20following','unitId','length','_liveShareService','_sharedOperations','Disposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','Button','entries','react/jsx-runtime','_handleOffline','Present\x20this\x20document','defIds','stopFollowing','BuiltInUIPart','SetZoomRatioOperation','shouldShareOperation','940340zgNeCt','LIVESHARE_TERMINATE','UniverCollaborationClientPlugin','@univerjs/sheets-ui','UniverProLiveShare','createElement','executeCommand','unsubscribe','idle','_stopFollowing','then','@univerjs/ui','params','_startFollowing','_commandService','dispose$','data','1cdJqkP','@univerjs/design','colorChannel1','_config','toStringTag','getLiveShareCoordinator','Inject','getOwnPropertyDescriptor','Start','tryStartPresenting','connectInjector','mergeOverrideWithDependencies','live-share-icon','SessionStatus','pluginName','forwardRef','Plugin','useState','svg','_reporters','ICommandService','LIVESHARE_OPERATION','You\x27are\x20offline.','univerjs-icon\x20univerjs-icon-','LiveShareCoordinator','265906nCHVxg','UniverSheets'];_0x37cc=function(){return _0x1c4e2e;};return _0x37cc();}
1
+ function _0x22ca(_0x2134fe,_0x31317a){_0x2134fe=_0x2134fe-0x183;const _0x526e92=_0x526e();let _0x22ca99=_0x526e92[_0x2134fe];return _0x22ca99;}(function(_0x4f896a,_0x23b3fc){const _0x3120cc=_0x22ca,_0x1b7dc5=_0x4f896a();while(!![]){try{const _0x3ed073=parseInt(_0x3120cc(0x1a2))/0x1+parseInt(_0x3120cc(0x1e1))/0x2+-parseInt(_0x3120cc(0x1de))/0x3*(-parseInt(_0x3120cc(0x222))/0x4)+parseInt(_0x3120cc(0x183))/0x5*(parseInt(_0x3120cc(0x229))/0x6)+-parseInt(_0x3120cc(0x199))/0x7*(parseInt(_0x3120cc(0x20e))/0x8)+-parseInt(_0x3120cc(0x20b))/0x9+-parseInt(_0x3120cc(0x225))/0xa;if(_0x3ed073===_0x23b3fc)break;else _0x1b7dc5['push'](_0x1b7dc5['shift']());}catch(_0x3da17e){_0x1b7dc5['push'](_0x1b7dc5['shift']());}}}(_0x526e,0xf3c9a),function(_0x1bfe9d,_0x2257de){const _0x417e6d=_0x22ca;typeof exports==_0x417e6d(0x21e)&&typeof module<'u'?_0x2257de(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x417e6d(0x1c9)]?define([_0x417e6d(0x1be),_0x417e6d(0x1a4),_0x417e6d(0x1db),_0x417e6d(0x22e),_0x417e6d(0x1b5),_0x417e6d(0x1c6),_0x417e6d(0x269),_0x417e6d(0x1b7),'@univerjs/sheets',_0x417e6d(0x242),_0x417e6d(0x26c),_0x417e6d(0x250)],_0x2257de):(_0x1bfe9d=typeof globalThis<'u'?globalThis:_0x1bfe9d||self,_0x2257de(_0x1bfe9d['UniverProLiveShare']={},_0x1bfe9d['UniverCore'],_0x1bfe9d['UniverUi'],_0x1bfe9d['React'],_0x1bfe9d[_0x417e6d(0x1f1)],_0x1bfe9d['React'],_0x1bfe9d[_0x417e6d(0x21d)],_0x1bfe9d[_0x417e6d(0x235)],_0x1bfe9d[_0x417e6d(0x19b)],_0x1bfe9d[_0x417e6d(0x242)],_0x1bfe9d[_0x417e6d(0x242)][_0x417e6d(0x1d9)],_0x1bfe9d['UniverSheetsUi']));}(this,function(_0x2e12ff,_0x6ad7d,_0x3e4b98,_0x357405,_0x5f562e,_0x4c700c,_0x5c8c92,_0x2176e1,_0x4dd25c,_0x55c269,_0x41a35d,_0x13469e){'use strict';const _0x1b9901=_0x22ca;var _0x45148f=Object[_0x1b9901(0x272)],_0xf42c2e=(_0x3f186f,_0x5e52d9,_0x14b839)=>_0x5e52d9 in _0x3f186f?_0x45148f(_0x3f186f,_0x5e52d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14b839}):_0x3f186f[_0x5e52d9]=_0x14b839,_0x2884bf=(_0x17123a,_0x28c935,_0x5a7843)=>_0xf42c2e(_0x17123a,typeof _0x28c935!=_0x1b9901(0x20c)?_0x28c935+'':_0x28c935,_0x5a7843);function _0x3f4445({ref:_0x2ab89c,..._0x37d5c6}){const _0x52b5c9=_0x1b9901,{icon:_0x1708d2,id:_0x39ee39,className:_0x5c1212,extend:_0x1c5d6e,..._0x1f0a1c}=_0x37d5c6,_0x4fc7fa=('univerjs-icon\x20univerjs-icon-'+_0x39ee39+'\x20'+(_0x5c1212||''))['trim'](),_0x58fcd5=_0x4c700c[_0x52b5c9(0x1eb)]('_'+_0x341416());return _0x41e465(_0x1708d2,''+_0x39ee39,{'defIds':_0x1708d2[_0x52b5c9(0x1cb)],'idSuffix':_0x58fcd5[_0x52b5c9(0x201)]},{'ref':_0x2ab89c,'className':_0x4fc7fa,..._0x1f0a1c},_0x1c5d6e);}function _0x41e465(_0x216b0c,_0x262284,_0x2e057b,_0x4e8979,_0xba0998){const _0x36d4d6=_0x1b9901;return _0x4c700c[_0x36d4d6(0x1fd)](_0x216b0c['tag'],{'key':_0x262284,..._0x5c45cf(_0x216b0c,_0x2e057b,_0xba0998),..._0x4e8979},(_0x2b26aa(_0x216b0c,_0x2e057b)[_0x36d4d6(0x1aa)]||[])[_0x36d4d6(0x1f2)]((_0x2c825a,_0x3b7d82)=>_0x41e465(_0x2c825a,_0x262284+'-'+_0x216b0c[_0x36d4d6(0x1ed)]+'-'+_0x3b7d82,_0x2e057b,void 0x0,_0xba0998)));}function _0x5c45cf(_0x39d90b,_0x11b80a,_0x447169){const _0x5e1ef9=_0x1b9901,_0x10ad6d={..._0x39d90b['attrs']};_0x447169!=null&&_0x447169[_0x5e1ef9(0x26e)]&&_0x10ad6d['fill']===_0x5e1ef9(0x26e)&&(_0x10ad6d[_0x5e1ef9(0x1d6)]=_0x447169['colorChannel1']),_0x39d90b[_0x5e1ef9(0x1ed)]==='mask'&&_0x10ad6d['id']&&(_0x10ad6d['id']=_0x10ad6d['id']+_0x11b80a[_0x5e1ef9(0x22b)]),Object[_0x5e1ef9(0x1a7)](_0x10ad6d)[_0x5e1ef9(0x237)](([_0x3337ff,_0x12387c])=>{const _0x331155=_0x5e1ef9;_0x3337ff===_0x331155(0x238)&&typeof _0x12387c=='string'&&(_0x10ad6d[_0x3337ff]=_0x12387c[_0x331155(0x258)](/url\(#(.*)\)/,_0x331155(0x1f9)+_0x11b80a['idSuffix']+')'));});const {defIds:_0x18734c}=_0x11b80a;return!_0x18734c||_0x18734c[_0x5e1ef9(0x1b8)]===0x0||(_0x39d90b[_0x5e1ef9(0x1ed)]==='use'&&_0x10ad6d[_0x5e1ef9(0x197)]&&(_0x10ad6d[_0x5e1ef9(0x197)]=_0x10ad6d['xlink:href']+_0x11b80a[_0x5e1ef9(0x22b)]),Object[_0x5e1ef9(0x1a7)](_0x10ad6d)[_0x5e1ef9(0x237)](([_0x4e019a,_0x4b53f3])=>{const _0x50f41b=_0x5e1ef9;typeof _0x4b53f3==_0x50f41b(0x24b)&&(_0x10ad6d[_0x4e019a]=_0x4b53f3[_0x50f41b(0x258)](/url\(#(.*)\)/,_0x50f41b(0x1f9)+_0x11b80a[_0x50f41b(0x22b)]+')'));})),_0x10ad6d;}function _0x2b26aa(_0x48b131,_0x2ecbb7){const _0x36d6f5=_0x1b9901;var _0x368ab8;const {defIds:_0x598911}=_0x2ecbb7;return!_0x598911||_0x598911[_0x36d6f5(0x1b8)]===0x0?_0x48b131:_0x48b131[_0x36d6f5(0x1ed)]===_0x36d6f5(0x1c4)&&((_0x368ab8=_0x48b131['children'])!=null&&_0x368ab8[_0x36d6f5(0x1b8)])?{..._0x48b131,'children':_0x48b131[_0x36d6f5(0x1aa)][_0x36d6f5(0x1f2)](_0x53ae67=>typeof _0x53ae67[_0x36d6f5(0x220)]['id']==_0x36d6f5(0x24b)&&_0x598911&&_0x598911[_0x36d6f5(0x262)](_0x53ae67[_0x36d6f5(0x220)]['id'])?{..._0x53ae67,'attrs':{..._0x53ae67['attrs'],'id':_0x53ae67[_0x36d6f5(0x220)]['id']+_0x2ecbb7['idSuffix']}}:_0x53ae67)}:_0x48b131;}function _0x341416(){const _0x3dd213=_0x1b9901;return Math[_0x3dd213(0x1d4)]()['toString'](0x24)[_0x3dd213(0x24d)](0x2,0x8);}_0x3f4445[_0x1b9901(0x1c7)]=_0x1b9901(0x1e5);const _0xc23d63={'tag':_0x1b9901(0x241),'attrs':{'xmlns':_0x1b9901(0x1d3),'fill':'none','viewBox':_0x1b9901(0x210),'width':'1em','height':_0x1b9901(0x1d0)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x1b9901(0x186),'attrs':{'fill':'currentColor','d':_0x1b9901(0x217),'fillRule':_0x1b9901(0x218),'clipRule':_0x1b9901(0x218)}}]},_0x32e7c5=_0x4c700c[_0x1b9901(0x19f)](function(_0x548650,_0x34220f){const _0xa0ebd3=_0x1b9901;return _0x4c700c[_0xa0ebd3(0x1fd)](_0x3f4445,Object[_0xa0ebd3(0x240)]({},_0x548650,{'id':_0xa0ebd3(0x1f4),'ref':_0x34220f,'icon':_0xc23d63}));});_0x32e7c5['displayName']=_0x1b9901(0x1ee);class _0x10e3ee extends _0x6ad7d[_0x1b9901(0x1f8)]{constructor(){const _0x54c46c=_0x1b9901;super(...arguments),_0x2884bf(this,'_sharedOperations',new Set()),_0x2884bf(this,_0x54c46c(0x224),new Set());}[_0x1b9901(0x21f)](_0x530261){const _0x5713c1=_0x1b9901;return this[_0x5713c1(0x18a)]['add'](_0x530261),_0x6ad7d['toDisposable'](()=>this['_sharedOperations'][_0x5713c1(0x1e2)](_0x530261));}[_0x1b9901(0x25b)](_0x41dfc0){const _0xa1a9b=_0x1b9901;return this[_0xa1a9b(0x224)][_0xa1a9b(0x1b3)](_0x41dfc0),_0x6ad7d[_0xa1a9b(0x246)](()=>this[_0xa1a9b(0x224)][_0xa1a9b(0x1e2)](_0x41dfc0));}['shouldShareOperation'](_0x2b59ce){const _0x5d6311=_0x1b9901;return this[_0x5d6311(0x18a)][_0x5d6311(0x19e)](_0x2b59ce);}['getInitialStates'](_0x1c46cb){const _0x35f292=_0x1b9901;return Array['from'](this['_reporters'])[_0x35f292(0x1f2)](_0x2bf88f=>_0x2bf88f(_0x1c46cb));}}var _0x4858dc=Object['getOwnPropertyDescriptor'],_0x5aca47=(_0x1b5afe,_0x26ae5a,_0x27b965,_0x2b9463)=>{const _0xe4244d=_0x1b9901;for(var _0x64ea09=_0x2b9463>0x1?void 0x0:_0x2b9463?_0x4858dc(_0x26ae5a,_0x27b965):_0x26ae5a,_0x5ea4fb=_0x1b5afe[_0xe4244d(0x1b8)]-0x1,_0x56d732;_0x5ea4fb>=0x0;_0x5ea4fb--)(_0x56d732=_0x1b5afe[_0x5ea4fb])&&(_0x64ea09=_0x56d732(_0x64ea09)||_0x64ea09);return _0x64ea09;},_0x27296e=(_0x43fd9f,_0x2e9a3b)=>(_0x4ae0c5,_0x4d0772)=>_0x2e9a3b(_0x4ae0c5,_0x4d0772,_0x43fd9f);_0x2e12ff[_0x1b9901(0x1cf)]=class extends _0x6ad7d['RxDisposable']{constructor(_0x4111b3,_0x365197,_0x1486d5){const _0x231855=_0x1b9901;super(),_0x2884bf(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4111b3,this[_0x231855(0x259)]=_0x365197,this[_0x231855(0x1e7)]=_0x1486d5,this[_0x231855(0x249)]());}async[_0x1b9901(0x1a8)](_0x3e49d9){const _0x167138=_0x1b9901;return this[_0x167138(0x219)][_0x167138(0x19e)](_0x3e49d9)||await this['_startLiveShareCoordinator'](_0x3e49d9),this[_0x167138(0x219)][_0x167138(0x24a)](_0x3e49d9);}['getLiveShareCoordinatorSync'](_0x230ded){const _0x3f7986=_0x1b9901;var _0x595c0c;return(_0x595c0c=this[_0x3f7986(0x219)][_0x3f7986(0x24a)](_0x230ded))!=null?_0x595c0c:null;}[_0x1b9901(0x249)](){const _0x434ba1=_0x1b9901;this[_0x434ba1(0x209)][_0x434ba1(0x266)](_0x6ad7d[_0x434ba1(0x252)][_0x434ba1(0x253)])[_0x434ba1(0x187)](_0x41a35d[_0x434ba1(0x192)](this[_0x434ba1(0x19d)]))[_0x434ba1(0x247)](async _0x1e5422=>{const _0x47e563=_0x434ba1,_0x3f7b8c=_0x1e5422[_0x47e563(0x221)]();this[_0x47e563(0x219)][_0x47e563(0x19e)](_0x3f7b8c)||this[_0x47e563(0x24e)](_0x3f7b8c);}),this[_0x434ba1(0x209)][_0x434ba1(0x188)](_0x6ad7d[_0x434ba1(0x252)]['UNIVER_SHEET'])['pipe'](_0x41a35d[_0x434ba1(0x192)](this[_0x434ba1(0x19d)]))[_0x434ba1(0x247)](_0x51bee3=>{const _0x1462fb=_0x434ba1,_0x456806=_0x51bee3['getUnitId'](),_0x579f79=this['_entities']['get'](_0x456806);_0x579f79==null||_0x579f79[_0x1462fb(0x228)]();});}async['_startLiveShareCoordinator'](_0x3cf9f2){const _0x31a7b3=_0x1b9901,_0x27bfd4=await this['_collabSessionService'][_0x31a7b3(0x271)](_0x3cf9f2),_0x6bf23c=this[_0x31a7b3(0x259)][_0x31a7b3(0x25a)](_0x2e12ff[_0x31a7b3(0x270)],_0x3cf9f2,_0x27bfd4);return _0x6bf23c[_0x31a7b3(0x25d)](),this[_0x31a7b3(0x219)][_0x31a7b3(0x1d2)](_0x3cf9f2,_0x6bf23c),_0x6bf23c;}},_0x2e12ff['LiveShareController']=_0x5aca47([_0x27296e(0x0,_0x6ad7d[_0x1b9901(0x1bd)]),_0x27296e(0x1,_0x6ad7d['Inject'](_0x6ad7d[_0x1b9901(0x206)])),_0x27296e(0x2,_0x6ad7d[_0x1b9901(0x1d7)](_0x2176e1[_0x1b9901(0x251)]))],_0x2e12ff[_0x1b9901(0x1cf)]);var _0x3c67ae=(_0x3f35a5=>(_0x3f35a5[_0x1b9901(0x1bc)]=_0x1b9901(0x18b),_0x3f35a5['IDLE']=_0x1b9901(0x1b4),_0x3f35a5[_0x1b9901(0x254)]='following',_0x3f35a5['NOT_FOLLOWING']=_0x1b9901(0x1a5),_0x3f35a5[_0x1b9901(0x26f)]=_0x1b9901(0x243),_0x3f35a5))(_0x3c67ae||{});const _0x586381=_0x1b9901(0x1c1),_0x2342f8=0xc8;_0x2e12ff['LiveShareCoordinator']=class extends _0x6ad7d[_0x1b9901(0x20d)]{constructor(_0x58b64e,_0x131cc0,_0x14dfae,_0x5c3564,_0x42fa96){const _0x402fcb=_0x1b9901;super(),_0x2884bf(this,'_status$',new _0x55c269[(_0x402fcb(0x26b))](_0x402fcb(0x1b4))),_0x2884bf(this,_0x402fcb(0x263),this[_0x402fcb(0x1ca)][_0x402fcb(0x23b)]()),_0x2884bf(this,_0x402fcb(0x249),!0x1),_0x2884bf(this,_0x402fcb(0x1ea),null),_0x2884bf(this,_0x402fcb(0x1ff),null),(this[_0x402fcb(0x22c)]=_0x58b64e,this['_collabSession']=_0x131cc0,this[_0x402fcb(0x1d8)]=_0x14dfae,this[_0x402fcb(0x26d)]=_0x5c3564,this[_0x402fcb(0x1bb)]=_0x42fa96);}get['_status'](){const _0x5eb261=_0x1b9901;return this[_0x5eb261(0x1ca)][_0x5eb261(0x244)]();}[_0x1b9901(0x228)](){const _0x256e93=_0x1b9901;var _0x3bbd8f;(_0x3bbd8f=this[_0x256e93(0x1ea)])==null||_0x3bbd8f[_0x256e93(0x228)](),this[_0x256e93(0x1ca)][_0x256e93(0x184)]('idle'),this['_status$'][_0x256e93(0x21b)]();}[_0x1b9901(0x245)](){return this['_status'];}[_0x1b9901(0x25d)](){const _0xea8de1=_0x1b9901;this[_0xea8de1(0x249)]||(this[_0xea8de1(0x249)]=!0x0,this['_collabSession'][_0xea8de1(0x214)][_0xea8de1(0x187)](_0x41a35d['takeUntil'](this[_0xea8de1(0x19d)]))[_0xea8de1(0x247)](_0xa4619d=>{const _0x3367b9=_0xea8de1;switch(_0xa4619d){case _0x2176e1[_0x3367b9(0x1e6)]['OFFLINE']:this['_handleOffline']();break;case _0x2176e1[_0x3367b9(0x1e6)][_0x3367b9(0x1c3)]:this[_0x3367b9(0x1cd)]();break;}}),this['_collabSession'][_0xea8de1(0x212)][_0xea8de1(0x187)](_0x41a35d[_0xea8de1(0x192)](this[_0xea8de1(0x19d)]))[_0xea8de1(0x247)](_0x273927=>{const _0x27b371=_0xea8de1,{eventID:_0x424550}=_0x273927;switch(_0x424550){case _0x5c8c92[_0x27b371(0x20a)][_0x27b371(0x1a3)]:this[_0x27b371(0x1ba)](_0x273927);break;case _0x5c8c92['CollaborationEvent'][_0x27b371(0x204)]:this['_handleOperation'](_0x273927);break;case _0x5c8c92[_0x27b371(0x20a)][_0x27b371(0x273)]:this[_0x27b371(0x226)]();break;case _0x5c8c92[_0x27b371(0x20a)][_0x27b371(0x20f)]:this[_0x27b371(0x213)](_0x273927);break;}}));}[_0x1b9901(0x233)](){const _0x2e828d=_0x1b9901;this[_0x2e828d(0x232)][_0x2e828d(0x1df)]({'eventID':_0x5c8c92['CollaborationEvent'][_0x2e828d(0x1f5)],'data':{'unitID':this[_0x2e828d(0x22c)],'userID':this['_collabSession'][_0x2e828d(0x190)]()}},this[_0x2e828d(0x22c)]);}['stopPresenting'](){const _0x4b1f98=_0x1b9901;this[_0x4b1f98(0x216)]==='presenting'&&(this[_0x4b1f98(0x1ca)][_0x4b1f98(0x184)]('idle'),this[_0x4b1f98(0x232)][_0x4b1f98(0x1df)]({'eventID':_0x5c8c92['CollaborationEvent'][_0x4b1f98(0x273)],'data':{'unitID':this[_0x4b1f98(0x22c)]}},this[_0x4b1f98(0x22c)]));}['startFollowing'](){const _0x5173ab=_0x1b9901;this[_0x5173ab(0x216)]==='not-following'&&(this[_0x5173ab(0x1ca)][_0x5173ab(0x184)](_0x5173ab(0x1c8)),this['_startFollowing']());}[_0x1b9901(0x18e)](){const _0x37e440=_0x1b9901;this['_status']===_0x37e440(0x1c8)&&this[_0x37e440(0x1dd)]();}['_handleNewHost'](_0x4a481c){const _0x5137b1=_0x1b9901,{presenter:_0x38a5c3}=_0x4a481c[_0x5137b1(0x239)],_0x4b8914=this['_collabSession'][_0x5137b1(0x190)]();this['_presenter']=_0x38a5c3,_0x38a5c3===_0x4b8914?(this[_0x5137b1(0x1dd)](),this[_0x5137b1(0x1fa)]()):this[_0x5137b1(0x216)]!==_0x5137b1(0x1a5)&&(this[_0x5137b1(0x223)](),this[_0x5137b1(0x215)]());}[_0x1b9901(0x23a)](){const _0x55f680=_0x1b9901,_0x2ef399={'eventID':_0x5c8c92[_0x55f680(0x20a)][_0x55f680(0x200)]};this[_0x55f680(0x232)]['send'](_0x2ef399,this[_0x55f680(0x22c)]);}[_0x1b9901(0x226)](){const _0x41b5e9=_0x1b9901;this[_0x41b5e9(0x1ff)]=null,this[_0x41b5e9(0x216)]!=='presenting'&&this[_0x41b5e9(0x25e)]();}[_0x1b9901(0x213)](_0x58d34e){const _0x3a831d=_0x1b9901;if(this[_0x3a831d(0x216)]==='following'&&this[_0x3a831d(0x1ff)]===_0x58d34e['data'][_0x3a831d(0x264)]){const _0x202193=_0x5c8c92[_0x3a831d(0x24c)](_0x58d34e['data'])['mutations'][_0x3a831d(0x25c)]()[_0x3a831d(0x1e3)](_0x202bc9=>_0x202bc9['id']===_0x4dd25c[_0x3a831d(0x1d5)]['id']);if(_0x202193){const _0x340e4b=_0x202193[_0x3a831d(0x23d)][_0x3a831d(0x261)],_0x186a83=_0x202193['params'][_0x3a831d(0x1fc)]['id'];setTimeout(()=>{const _0x3cd48a=_0x3a831d;this['_commandService'][_0x3cd48a(0x1ac)](_0x4dd25c[_0x3cd48a(0x24f)]['id'],{'unitId':_0x340e4b,'subUnitId':_0x186a83},{'fromCollab':!0x0});});}}}[_0x1b9901(0x1fa)](){const _0x3c062=_0x1b9901;this['_status$'][_0x3c062(0x184)](_0x3c062(0x243));const _0x3c5f8b=new Map(),_0x4411bb=this[_0x3c062(0x1ea)]=new _0x6ad7d[(_0x3c062(0x22f))]();_0x4411bb['add'](_0x6ad7d[_0x3c062(0x246)](()=>{const _0x24ceb9=_0x3c062;_0x3c5f8b['forEach'](_0x4b1037=>_0x4b1037[_0x24ceb9(0x21b)]()),_0x3c5f8b[_0x24ceb9(0x1af)]();})),_0x4411bb[_0x3c062(0x1b3)](this[_0x3c062(0x1bb)][_0x3c062(0x1c5)](_0x4c4d33=>{const _0x11a82b=_0x3c062;var _0x698cef;if(_0x4c4d33[_0x11a82b(0x1ab)]!==_0x6ad7d[_0x11a82b(0x257)][_0x11a82b(0x231)]||!this[_0x11a82b(0x26d)][_0x11a82b(0x1e9)](_0x4c4d33['id']))return;const {id:_0x1190a5}=_0x4c4d33;let _0x49cb04;_0x3c5f8b['has'](_0x1190a5)?_0x49cb04=_0x3c5f8b[_0x11a82b(0x24a)](_0x1190a5):(_0x49cb04=new _0x55c269[(_0x11a82b(0x1c0))](),_0x3c5f8b['set'](_0x1190a5,_0x49cb04),_0x49cb04[_0x11a82b(0x187)](_0x41a35d['throttleTime']((_0x698cef=this['_configService'][_0x11a82b(0x22d)](_0x586381))!=null?_0x698cef:_0x2342f8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11a82b(0x247)](_0x5cbd37=>{const _0x1c8382=_0x11a82b;this[_0x1c8382(0x232)]['send']({'eventID':_0x5c8c92[_0x1c8382(0x20a)][_0x1c8382(0x204)],'data':{'unitID':this[_0x1c8382(0x22c)],'operations':{[_0x5cbd37['id']]:{'id':_0x5cbd37['id'],'params':JSON[_0x1c8382(0x18d)](_0x5cbd37[_0x1c8382(0x23d)])}}}},this['_unitID']);})),_0x49cb04['next'](_0x4c4d33);})),this['_liveShareService'][_0x3c062(0x268)](this['_unitID'])[_0x3c062(0x237)](_0x551b2b=>this['_collabSession']['send']({'eventID':_0x5c8c92['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3c062(0x22c)],'operations':{[_0x551b2b['id']]:{'id':_0x551b2b['id'],'params':JSON[_0x3c062(0x18d)](_0x551b2b[_0x3c062(0x23d)])}}}},this[_0x3c062(0x22c)]));}['_stopPresenting'](){const _0x569712=_0x1b9901;var _0x35c5e5;this[_0x569712(0x1ca)][_0x569712(0x184)]('idle'),(_0x35c5e5=this[_0x569712(0x1ea)])==null||_0x35c5e5['dispose'](),this[_0x569712(0x1ea)]=null;}['_startFollowing'](){const _0x4d62ca=_0x1b9901;var _0x4526b0;(_0x4526b0=this[_0x4d62ca(0x1ea)])==null||_0x4526b0[_0x4d62ca(0x228)](),this['_status$'][_0x4d62ca(0x184)](_0x4d62ca(0x1c8));}['_beIdle'](){const _0x4b12d9=_0x1b9901;var _0x4de3ed;this['_status$'][_0x4b12d9(0x184)](_0x4b12d9(0x1b4)),(_0x4de3ed=this[_0x4b12d9(0x1ea)])==null||_0x4de3ed['dispose'](),this[_0x4b12d9(0x1ea)]=null;}[_0x1b9901(0x1dd)](){const _0x3b70f5=_0x1b9901;var _0x9879c7;this['_status$']['next']('not-following'),(_0x9879c7=this[_0x3b70f5(0x1ea)])==null||_0x9879c7[_0x3b70f5(0x228)]();}[_0x1b9901(0x230)](_0x13f52f){const _0x2a19a2=_0x1b9901;if([_0x2a19a2(0x243),_0x2a19a2(0x1a5),_0x2a19a2(0x18b)][_0x2a19a2(0x262)](this[_0x2a19a2(0x216)])||!_0x13f52f[_0x2a19a2(0x239)][_0x2a19a2(0x236)]||_0x13f52f[_0x2a19a2(0x239)][_0x2a19a2(0x236)]===this[_0x2a19a2(0x232)][_0x2a19a2(0x190)]())return;this[_0x2a19a2(0x216)]===_0x2a19a2(0x1b4)&&this[_0x2a19a2(0x215)]();const _0x160429=_0x13f52f[_0x2a19a2(0x239)][_0x2a19a2(0x1ce)];Object['values'](_0x160429)[_0x2a19a2(0x237)](_0x48f807=>{const _0x142b17=_0x2a19a2;this[_0x142b17(0x1bb)][_0x142b17(0x1ac)](_0x48f807['id'],_0x48f807[_0x142b17(0x23d)]?JSON[_0x142b17(0x21a)](_0x48f807[_0x142b17(0x23d)]):null,{'fromCollab':!0x0});});}[_0x1b9901(0x208)](){const _0x4043ba=_0x1b9901;var _0x1296ce;this['_status$'][_0x4043ba(0x184)]('offline'),(_0x1296ce=this[_0x4043ba(0x1ea)])==null||_0x1296ce['dispose']();}[_0x1b9901(0x1cd)](){const _0x5b085f=_0x1b9901;this[_0x5b085f(0x1ca)][_0x5b085f(0x184)](_0x5b085f(0x1b4)),this['_fetchOperations']();}},_0x2e12ff[_0x1b9901(0x270)]=_0x5aca47([_0x27296e(0x2,_0x6ad7d[_0x1b9901(0x195)]),_0x27296e(0x3,_0x6ad7d[_0x1b9901(0x1d7)](_0x10e3ee)),_0x27296e(0x4,_0x6ad7d[_0x1b9901(0x1ec)])],_0x2e12ff[_0x1b9901(0x270)]);function _0x3e0883(){const _0x14b6a0=_0x1b9901,_0x5cf38e=_0x3e4b98[_0x14b6a0(0x1f3)](_0x2e12ff[_0x14b6a0(0x1cf)]),_0x349121=_0x3e4b98[_0x14b6a0(0x1f3)](_0x6ad7d[_0x14b6a0(0x1bd)]),_0x5922f6=_0x3e4b98[_0x14b6a0(0x1fe)](()=>_0x349121[_0x14b6a0(0x196)](_0x6ad7d['UniverInstanceType'][_0x14b6a0(0x253)]),void 0x0,!0x1,[]),[_0x59ad9f,_0x20a9b0]=_0x4c700c['useState'](null),[_0x5c4940,_0xaf624f]=_0x4c700c[_0x14b6a0(0x1ef)](_0x3c67ae[_0x14b6a0(0x1f7)]),_0x22300e=_0x4c700c[_0x14b6a0(0x1eb)](null);return _0x4c700c[_0x14b6a0(0x18c)](()=>(_0x5922f6&&_0x5cf38e[_0x14b6a0(0x1a8)](_0x5922f6[_0x14b6a0(0x221)]())[_0x14b6a0(0x185)](_0x560886=>{const _0x7b3bec=_0x14b6a0;_0x20a9b0(_0x560886),_0x22300e[_0x7b3bec(0x201)]=_0x560886['status$']['subscribe'](_0x574884=>{_0xaf624f(_0x574884);});}),()=>{const _0x36ed70=_0x14b6a0;var _0x696603;(_0x696603=_0x22300e[_0x36ed70(0x201)])==null||_0x696603['unsubscribe'](),_0x22300e[_0x36ed70(0x201)]=null;}),[_0x5922f6,_0x5cf38e]),_0x59ad9f?_0x357405[_0x14b6a0(0x265)](_0x5f562e[_0x14b6a0(0x18f)],{'align':_0x14b6a0(0x227),'disabled':_0x5c4940===_0x3c67ae[_0x14b6a0(0x1bc)],'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':_0x357405[_0x14b6a0(0x265)](_0x39c7f2,{'status':_0x5c4940,'coordinator':_0x59ad9f}),'children':_0x357405[_0x14b6a0(0x265)]('button',{'className':_0x5f562e[_0x14b6a0(0x1a6)](_0x14b6a0(0x23e),{'univer-cursor-not-allowed':_0x5c4940===_0x3c67ae[_0x14b6a0(0x1bc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5c4940!==_0x3c67ae['OFFLINE']}),'type':_0x14b6a0(0x256),'children':_0x357405[_0x14b6a0(0x265)](_0x32e7c5,{'className':_0x14b6a0(0x1b2)})})}):null;}function _0x39c7f2(_0x390c49){const _0x204dac=_0x1b9901,{status:_0x30d7ca,coordinator:_0x32842f}=_0x390c49;switch(_0x30d7ca){case _0x3c67ae[_0x204dac(0x1f7)]:return _0x357405[_0x204dac(0x265)](_0x1eb07c,{'coordinator':_0x32842f});case _0x3c67ae[_0x204dac(0x254)]:return _0x357405[_0x204dac(0x265)](_0x341ba3,{'coordinator':_0x32842f});case _0x3c67ae['NOT_FOLLOWING']:return _0x357405[_0x204dac(0x265)](_0x533e05,{'coordinator':_0x32842f});case _0x3c67ae[_0x204dac(0x1bc)]:return _0x357405[_0x204dac(0x265)](_0x32a639,{});case _0x3c67ae[_0x204dac(0x26f)]:return _0x357405[_0x204dac(0x265)](_0x52c0b8,{'coordinator':_0x32842f});default:return null;}}function _0x1eb07c(_0x4037f3){const _0x1f9f44=_0x1b9901,{coordinator:_0x13cf08}=_0x4037f3;return _0x357405['jsxs'](_0x357405['Fragment'],{'children':[_0x357405[_0x1f9f44(0x265)]('div',{'className':_0x1f9f44(0x1cc),'children':_0x1f9f44(0x26a)}),_0x357405['jsx'](_0x5f562e[_0x1f9f44(0x1f6)],{'onClick':()=>_0x13cf08[_0x1f9f44(0x233)](),'children':_0x1f9f44(0x260)})]});}function _0x341ba3(_0x3c4e08){const _0x24e49f=_0x1b9901,{coordinator:_0x269ebb}=_0x3c4e08;return _0x357405[_0x24e49f(0x207)](_0x357405[_0x24e49f(0x1fb)],{'children':[_0x357405[_0x24e49f(0x265)](_0x24e49f(0x198),{'className':_0x24e49f(0x1cc),'children':_0x24e49f(0x1d1)}),_0x357405['jsx'](_0x5f562e[_0x24e49f(0x1f6)],{'onClick':()=>_0x269ebb[_0x24e49f(0x18e)](),'children':_0x24e49f(0x267)})]});}function _0x533e05(_0x3f8f78){const _0x593b75=_0x1b9901,{coordinator:_0x3c634f}=_0x3f8f78;return _0x357405[_0x593b75(0x207)](_0x357405[_0x593b75(0x1fb)],{'children':[_0x357405['jsx'](_0x593b75(0x198),{'className':_0x593b75(0x1cc),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x357405[_0x593b75(0x265)](_0x5f562e[_0x593b75(0x1f6)],{'variant':_0x593b75(0x23c),'onClick':()=>_0x3c634f[_0x593b75(0x193)](),'children':_0x593b75(0x19a)})]});}function _0x52c0b8(_0x1b2560){const _0x5c51ca=_0x1b9901,{coordinator:_0x1abdc3}=_0x1b2560;return _0x357405[_0x5c51ca(0x207)](_0x357405[_0x5c51ca(0x1fb)],{'children':[_0x357405['jsx'](_0x5c51ca(0x198),{'className':_0x5c51ca(0x1cc),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x357405[_0x5c51ca(0x265)](_0x5f562e[_0x5c51ca(0x1f6)],{'variant':_0x5c51ca(0x189),'onClick':()=>_0x1abdc3[_0x5c51ca(0x255)](),'children':_0x5c51ca(0x19c)})]});}function _0x32a639(){const _0x50ca41=_0x1b9901;return _0x357405[_0x50ca41(0x265)](_0x357405[_0x50ca41(0x1fb)],{'children':_0x50ca41(0x248)});}var _0xbe28db=Object['getOwnPropertyDescriptor'],_0x4b03f6=(_0x4c4797,_0x1de25e,_0x25165c,_0x3b5c1f)=>{for(var _0x612dcf=_0x3b5c1f>0x1?void 0x0:_0x3b5c1f?_0xbe28db(_0x1de25e,_0x25165c):_0x1de25e,_0x551211=_0x4c4797['length']-0x1,_0x29ee48;_0x551211>=0x0;_0x551211--)(_0x29ee48=_0x4c4797[_0x551211])&&(_0x612dcf=_0x29ee48(_0x612dcf)||_0x612dcf);return _0x612dcf;},_0x45bd6e=(_0x5e212a,_0x2fbaad)=>(_0x4c5462,_0x50f0fa)=>_0x2fbaad(_0x4c5462,_0x50f0fa,_0x5e212a);_0x2e12ff[_0x1b9901(0x1ae)]=class extends _0x6ad7d[_0x1b9901(0x1f8)]{constructor(_0x50d010,_0x32b679){const _0x4547e8=_0x1b9901;super(),this[_0x4547e8(0x259)]=_0x50d010,this[_0x4547e8(0x211)]=_0x32b679,this[_0x4547e8(0x1e0)]();}[_0x1b9901(0x1e0)](){const _0x5d9107=_0x1b9901;this[_0x5d9107(0x22a)](this[_0x5d9107(0x211)][_0x5d9107(0x21c)](_0x3e4b98[_0x5d9107(0x1ad)][_0x5d9107(0x1b1)],()=>_0x3e4b98['connectInjector'](_0x3e0883,this[_0x5d9107(0x259)])));}},_0x2e12ff[_0x1b9901(0x1ae)]=_0x4b03f6([_0x45bd6e(0x0,_0x6ad7d[_0x1b9901(0x1d7)](_0x6ad7d[_0x1b9901(0x206)])),_0x45bd6e(0x1,_0x3e4b98[_0x1b9901(0x1b6)])],_0x2e12ff[_0x1b9901(0x1ae)]);const _0x4cfd67=_0x1b9901(0x1a1),_0x2504b2={};var _0x559495=Object[_0x1b9901(0x205)],_0x354d40=(_0x19290f,_0x51cf51,_0x3703fa,_0x1b9717)=>{const _0x12bbb3=_0x1b9901;for(var _0x5683f2=_0x1b9717>0x1?void 0x0:_0x1b9717?_0x559495(_0x51cf51,_0x3703fa):_0x51cf51,_0x25f065=_0x19290f[_0x12bbb3(0x1b8)]-0x1,_0x139872;_0x25f065>=0x0;_0x25f065--)(_0x139872=_0x19290f[_0x25f065])&&(_0x5683f2=_0x139872(_0x5683f2)||_0x5683f2);return _0x5683f2;},_0x3ae911=(_0x41d94f,_0x39222f)=>(_0x570c9e,_0x466b57)=>_0x39222f(_0x570c9e,_0x466b57,_0x41d94f);let _0x43c337=class extends _0x6ad7d[_0x1b9901(0x1f8)]{constructor(_0xd3b1ec){const _0x44f8fd=_0x1b9901;super(),this[_0x44f8fd(0x26d)]=_0xd3b1ec,this['_init']();}['_init'](){const _0x321c14=_0x1b9901;[_0x13469e[_0x321c14(0x194)]['id'],_0x13469e['SetScrollOperation']['id'],_0x4dd25c[_0x321c14(0x24f)]['id']]['forEach'](_0x3cce2d=>{const _0x36b9e9=_0x321c14;this[_0x36b9e9(0x22a)](this['_liveShareService'][_0x36b9e9(0x21f)](_0x3cce2d));});}};_0x43c337=_0x354d40([_0x3ae911(0x0,_0x6ad7d[_0x1b9901(0x1d7)](_0x10e3ee))],_0x43c337);var _0x5491d9=Object[_0x1b9901(0x272)],_0x3b5300=Object[_0x1b9901(0x205)],_0x3e526e=(_0x5e357d,_0x5d3701,_0x18428c)=>_0x5d3701 in _0x5e357d?_0x5491d9(_0x5e357d,_0x5d3701,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18428c}):_0x5e357d[_0x5d3701]=_0x18428c,_0x58e9fb=(_0x1c638d,_0x361c76,_0x2799cb,_0x1e3ed7)=>{const _0x4fb27a=_0x1b9901;for(var _0x1cfae3=_0x1e3ed7>0x1?void 0x0:_0x1e3ed7?_0x3b5300(_0x361c76,_0x2799cb):_0x361c76,_0x5b4137=_0x1c638d[_0x4fb27a(0x1b8)]-0x1,_0x1edd75;_0x5b4137>=0x0;_0x5b4137--)(_0x1edd75=_0x1c638d[_0x5b4137])&&(_0x1cfae3=_0x1edd75(_0x1cfae3)||_0x1cfae3);return _0x1cfae3;},_0x13de93=(_0x2ee3e0,_0x2f6f3b)=>(_0x1f817d,_0x5d54d5)=>_0x2f6f3b(_0x1f817d,_0x5d54d5,_0x2ee3e0),_0x59e08a=(_0x41240c,_0x2f5252,_0x19e981)=>_0x3e526e(_0x41240c,typeof _0x2f5252!=_0x1b9901(0x20c)?_0x2f5252+'':_0x2f5252,_0x19e981);const _0x4c35d7=_0x1b9901(0x1dc);_0x2e12ff['UniverLiveSharePlugin']=class extends _0x6ad7d[_0x1b9901(0x1a9)]{constructor(_0x330e62=_0x2504b2,_0x2735f1,_0x24b3e8){const _0x5029bb=_0x1b9901;super(),this['_config']=_0x330e62,this['_injector']=_0x2735f1,this[_0x5029bb(0x1d8)]=_0x24b3e8;const {..._0x4f5589}=_0x6ad7d[_0x5029bb(0x25f)]({},_0x2504b2,this[_0x5029bb(0x1c2)]);this['_configService'][_0x5029bb(0x1e4)](_0x4cfd67,_0x4f5589);}[_0x1b9901(0x203)](){const _0x1186a7=_0x1b9901;_0x6ad7d[_0x1186a7(0x202)](this[_0x1186a7(0x259)],_0x6ad7d[_0x1186a7(0x1bf)]([[_0x10e3ee],[_0x2e12ff[_0x1186a7(0x1cf)]],[_0x43c337],[_0x2e12ff['DesktopLiveShareController']]],this[_0x1186a7(0x1c2)][_0x1186a7(0x1f0)])),_0x6ad7d[_0x1186a7(0x1da)](this[_0x1186a7(0x259)],[[_0x43c337]]);}[_0x1b9901(0x234)](){const _0x5221f3=_0x1b9901;_0x6ad7d[_0x5221f3(0x1da)](this[_0x5221f3(0x259)],[[_0x2e12ff['DesktopLiveShareController']]]);}},_0x59e08a(_0x2e12ff[_0x1b9901(0x1e8)],'type',_0x6ad7d[_0x1b9901(0x252)]['UNIVER_UNKNOWN']),_0x59e08a(_0x2e12ff[_0x1b9901(0x1e8)],'pluginName',_0x4c35d7),_0x2e12ff[_0x1b9901(0x1e8)]=_0x58e9fb([_0x6ad7d[_0x1b9901(0x1a0)](_0x2176e1['UniverCollaborationClientPlugin']),_0x13de93(0x1,_0x6ad7d[_0x1b9901(0x1d7)](_0x6ad7d['Injector'])),_0x13de93(0x2,_0x6ad7d[_0x1b9901(0x195)])],_0x2e12ff['UniverLiveSharePlugin']),_0x2e12ff[_0x1b9901(0x23f)]=_0x3e0883,_0x2e12ff[_0x1b9901(0x1b0)]=_0x10e3ee,_0x2e12ff[_0x1b9901(0x1b9)]=_0x3c67ae,Object[_0x1b9901(0x272)](_0x2e12ff,Symbol['toStringTag'],{'value':_0x1b9901(0x191)});}));function _0x526e(){const _0x2401de=['shouldShareOperation','_commandDisposable','useRef','ICommandService','tag','LiveShareIcon','useState','override','UniverDesign','map','useDependency','live-share-icon','LIVESHARE_REQUEST_HOST','Button','IDLE','Disposable','url(#$1','_startPresenting','Fragment','sheet','createElement','useObservable','_presenter','LIVESHARE_FETCH_OPERATIONS','current','registerDependencies','onStarting','LIVESHARE_OPERATION','getOwnPropertyDescriptor','Injector','jsxs','_handleOffline','_univerInstanceService','CollaborationEvent','12962313oYjNTE','symbol','RxDisposable','3149680MeGxkt','NEW_CHANGESETS','0\x200\x2017\x2017','_uiPartsService','event$','_handleNewChangeSets','sessionStatus$','_startFollowing','_status','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','evenodd','_entities','parse','complete','registerComponent','UniverProCollaboration','object','registerSharedOperation','attrs','getUnitId','36GAKJUm','_stopPresenting','_reporters','23303560okohue','_handleTerminate','end','dispose','66rUYMQJ','disposeWithMe','idSuffix','_unitID','getConfig','react/jsx-runtime','DisposableCollection','_handleOperation','OPERATION','_collabSession','tryStartPresenting','onRendered','UniverProCollaborationClient','presenter','forEach','mask','data','_fetchOperations','asObservable','text','params','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShare','assign','svg','rxjs','presenting','getValue','getStatus','toDisposable','subscribe','You\x27are\x20offline.','_init','get','string','parseProtocolChangeset','substring','_startLiveShareCoordinator','SetWorksheetActiveOperation','@univerjs/sheets-ui','CollaborationSessionService','UniverInstanceType','UNIVER_SHEET','FOLLOWING','stopPresenting','button','CommandType','replace','_injector','createInstance','registerInitialStateReporter','reverse','init','_beIdle','merge','Start','unitId','includes','status$','memberID','jsx','getTypeOfUnitAdded$','Stop\x20following','getInitialStates','@univerjs-pro/collaboration','Present\x20this\x20document','BehaviorSubject','rxjs/operators','_liveShareService','colorChannel1','PRESENTING','LiveShareCoordinator','requireSession','defineProperty','LIVESHARE_TERMINATE','700255JTdOdb','next','then','path','pipe','getTypeOfUnitDisposed$','default','_sharedOperations','offline','useEffect','stringify','stopFollowing','Dropdown','getMemberID','Module','takeUntil','startFollowing','SetZoomRatioOperation','IConfigService','getCurrentTypeOfUnit$','xlink:href','div','7igFOvX','Start\x20following','UniverSheets','Stop\x20presenting','dispose$','has','forwardRef','DependentOn','live-share.config','252891zICHSI','LIVESHARE_NEW_HOST','@univerjs/core','not-following','clsx','entries','getLiveShareCoordinator','Plugin','children','type','executeCommand','BuiltInUIPart','DesktopLiveShareController','clear','LiveShareService','HEADER_MENU','univer-size-4','add','idle','@univerjs/design','IUIPartsService','@univerjs-pro/collaboration-client','length','LiveShareStatus','_handleNewHost','_commandService','OFFLINE','IUniverInstanceService','exports','mergeOverrideWithDependencies','Subject','SAME_OPERATION_SHARE_INTERVAL','_config','ONLINE','defs','onCommandExecuted','react','displayName','following','amd','_status$','defIds','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOnline','operations','LiveShareController','1em','You\x27re\x20following\x20the\x20presenter','set','http://www.w3.org/2000/svg','random','InsertSheetMutation','fill','Inject','_configService','operators','touchDependencies','@univerjs/ui','UNIVER_LIVE_SHARE_PLUGIN','_stopFollowing','490881GGyGqM','send','_mountLiveShare','3793564WJaXXb','delete','find','setConfig','UniverIcon','SessionStatus','_collabSessionService','UniverLiveSharePlugin'];_0x526e=function(){return _0x2401de;};return _0x526e();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.0",
3
+ "version": "0.15.1-insiders.20260117-8ce4a01",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -56,15 +56,14 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/icons": "^1.1.0",
60
- "@univerjs-pro/collaboration-client": "0.15.0",
61
- "@univerjs/core": "0.15.0",
62
- "@univerjs/design": "0.15.0",
63
- "@univerjs/engine-render": "0.15.0",
64
- "@univerjs/sheets": "0.15.0",
65
- "@univerjs-pro/collaboration": "0.15.0",
66
- "@univerjs/ui": "0.15.0",
67
- "@univerjs/sheets-ui": "0.15.0"
59
+ "@univerjs/icons": "^1.1.1",
60
+ "@univerjs-pro/collaboration-client": "0.15.1-insiders.20260117-8ce4a01",
61
+ "@univerjs/design": "0.15.1-insiders.20260117-8ce4a01",
62
+ "@univerjs-pro/collaboration": "0.15.1-insiders.20260117-8ce4a01",
63
+ "@univerjs/sheets-ui": "0.15.1-insiders.20260117-8ce4a01",
64
+ "@univerjs/ui": "0.15.1-insiders.20260117-8ce4a01",
65
+ "@univerjs/sheets": "0.15.1-insiders.20260117-8ce4a01",
66
+ "@univerjs/core": "0.15.1-insiders.20260117-8ce4a01"
68
67
  },
69
68
  "devDependencies": {
70
69
  "postcss": "^8.5.6",
@@ -72,9 +71,9 @@
72
71
  "rxjs": "7.8.2",
73
72
  "tailwindcss": "^3.4.17",
74
73
  "typescript": "^5.9.3",
75
- "vite": "^7.3.0",
74
+ "vite": "^7.3.1",
76
75
  "vitest": "^4.0.16",
77
- "@univerjs-infra/shared": "0.15.0",
76
+ "@univerjs-infra/shared": "0.15.1",
78
77
  "@univerjs/protocol": "0.1.48"
79
78
  },
80
79
  "scripts": {
@@ -1,17 +0,0 @@
1
- import { ICommandService, Injector, IRange, Workbook, Worksheet } from '@univerjs/core';
2
- import { FRange } from '@univerjs/sheets/facade';
3
- /**
4
- * @ignore
5
- */
6
- export interface IFRangeLiveShareMixin {
7
- }
8
- /**
9
- * @ignore
10
- */
11
- export declare class FRangeLiveShareMixin extends FRange implements IFRangeLiveShareMixin {
12
- _initialize(injector: Injector, workbook: Workbook, worksheet: Worksheet, range: IRange, commandService: ICommandService): void;
13
- }
14
- declare module '@univerjs/sheets/facade' {
15
- interface FRange extends IFRangeLiveShareMixin {
16
- }
17
- }