@univerjs-pro/live-share 0.15.4 → 0.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x28bc(_0x3e7af3,_0xe0cf83){_0x3e7af3=_0x3e7af3-0x99;const _0x1a2922=_0x1a29();let _0x28bc01=_0x1a2922[_0x3e7af3];return _0x28bc01;}const _0x46e566=_0x28bc;(function(_0x5db04b,_0x1c13d7){const _0x32b5df=_0x28bc,_0x30a18a=_0x5db04b();while(!![]){try{const _0x402a52=parseInt(_0x32b5df(0xb3))/0x1*(parseInt(_0x32b5df(0xac))/0x2)+parseInt(_0x32b5df(0xa5))/0x3+-parseInt(_0x32b5df(0xaa))/0x4*(parseInt(_0x32b5df(0xa4))/0x5)+-parseInt(_0x32b5df(0xa8))/0x6+-parseInt(_0x32b5df(0x99))/0x7*(parseInt(_0x32b5df(0xb9))/0x8)+parseInt(_0x32b5df(0xaf))/0x9+-parseInt(_0x32b5df(0xa3))/0xa*(-parseInt(_0x32b5df(0x9e))/0xb);if(_0x402a52===_0x1c13d7)break;else _0x30a18a['push'](_0x30a18a['shift']());}catch(_0x500c44){_0x30a18a['push'](_0x30a18a['shift']());}}}(_0x1a29,0x80b45));var h=Object[_0x46e566(0xa6)],u=(_0x52525c,_0x2362ce,_0x96dce0)=>_0x2362ce in _0x52525c?h(_0x52525c,_0x2362ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x96dce0}):_0x52525c[_0x2362ce]=_0x96dce0,S=(_0x39d8b0,_0x37139a,_0x2a3d47)=>u(_0x39d8b0,typeof _0x37139a!='symbol'?_0x37139a+'':_0x37139a,_0x2a3d47);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x46e566(0xbd)]{constructor(){const _0x3dc989=_0x46e566;super(...arguments),S(this,_0x3dc989(0xbc));}[_0x46e566(0xba)](_0xcf265e){const _0x5ba229=_0x46e566;this[_0x5ba229(0xbc)]=_0xcf265e[_0x5ba229(0xb7)](s[_0x5ba229(0xa9)]);}[_0x46e566(0xa2)](){const _0x1201c8=_0x46e566;var _0x3802cb;const _0x521664=this[_0x1201c8(0xad)][_0x1201c8(0xb7)](n[_0x1201c8(0xae)])[_0x1201c8(0xbb)](n[_0x1201c8(0xb8)]['UNIVER_SHEET']);if(!_0x521664)throw new Error(_0x1201c8(0xa7));const _0x39670b=_0x521664[_0x1201c8(0x9d)](),_0x26ca4d=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x39670b);return(_0x3802cb=_0x26ca4d==null?void 0x0:_0x26ca4d[_0x1201c8(0xa1)]())!=null?_0x3802cb:s[_0x1201c8(0xb6)][_0x1201c8(0x9f)];}[_0x46e566(0xb1)](){const _0x47154b=_0x46e566,_0x1cc17a=this[_0x47154b(0xad)]['get'](n[_0x47154b(0xae)])[_0x47154b(0xbb)](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x1cc17a)throw new Error(_0x47154b(0xa7));const _0x1e618f=_0x1cc17a[_0x47154b(0x9d)](),_0x4c521b=this['_liveShareController'][_0x47154b(0xa0)](_0x1e618f);if(!_0x4c521b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4c521b['startFollowing']();}[_0x46e566(0x9b)](){const _0x398671=_0x46e566,_0x81c85=this[_0x398671(0xad)][_0x398671(0xb7)](n[_0x398671(0xae)])[_0x398671(0xbb)](n['UniverInstanceType'][_0x398671(0xb4)]);if(!_0x81c85)throw new Error(_0x398671(0xa7));const _0x2c03ec=_0x81c85[_0x398671(0x9d)](),_0x333776=this[_0x398671(0xbc)][_0x398671(0xa0)](_0x2c03ec);if(!_0x333776)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x333776[_0x398671(0x9b)]();}[_0x46e566(0xb5)](){const _0x272499=_0x46e566,_0x45a819=this['_injector'][_0x272499(0xb7)](n[_0x272499(0xae)])['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x45a819)throw new Error(_0x272499(0xa7));const _0x14ce11=_0x45a819['getUnitId'](),_0x18cc62=this[_0x272499(0xbc)][_0x272499(0xa0)](_0x14ce11);if(!_0x18cc62)throw new Error(_0x272499(0xab));_0x18cc62[_0x272499(0x9c)]();}[_0x46e566(0xb0)](){const _0x4a93e4=_0x46e566,_0x3299b9=this[_0x4a93e4(0xad)]['get'](n[_0x4a93e4(0xae)])[_0x4a93e4(0xbb)](n[_0x4a93e4(0xb8)][_0x4a93e4(0xb4)]);if(!_0x3299b9)throw new Error(_0x4a93e4(0xa7));const _0xe31a93=_0x3299b9['getUnitId'](),_0x35940d=this[_0x4a93e4(0xbc)][_0x4a93e4(0xa0)](_0xe31a93);if(!_0x35940d)throw new Error(_0x4a93e4(0xab));_0x35940d[_0x4a93e4(0xb0)]();}}c[_0x46e566(0xbd)][_0x46e566(0x9a)](I);class l extends c['FEnum']{get[_0x46e566(0xb2)](){return s['LiveShareStatus'];}}c['FEnum']['extend'](l);function _0x1a29(){const _0x36d58d=['getLiveShareCoordinatorSync','getStatus','getLiveShareStatus','50JgfSDC','5cqmhlO','1163040CKFUCM','defineProperty','No\x20active\x20workbook\x20found.','2522958WlJoSl','LiveShareController','2383980UdbORH','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','566ENmkeL','_injector','IUniverInstanceService','2730789YSwUPY','stopPresenting','startFollowing','LiveShareStatusEnum','3425WKIXvi','UNIVER_SHEET','startPresenting','LiveShareStatus','get','UniverInstanceType','133816IrFqOn','_initialize','getCurrentUnitOfType','_liveShareController','FUniver','70wLcEBD','extend','stopFollowing','tryStartPresenting','getUnitId','111221jgpQGv','IDLE'];_0x1a29=function(){return _0x36d58d;};return _0x1a29();}
1
+ 'use strict';const _0x54fb40=_0x2678;(function(_0x436f92,_0x505daa){const _0x4603a5=_0x2678,_0x2edf96=_0x436f92();while(!![]){try{const _0x12d60e=-parseInt(_0x4603a5(0x112))/0x1*(-parseInt(_0x4603a5(0x101))/0x2)+parseInt(_0x4603a5(0x106))/0x3*(parseInt(_0x4603a5(0x108))/0x4)+parseInt(_0x4603a5(0x113))/0x5+-parseInt(_0x4603a5(0x11c))/0x6+-parseInt(_0x4603a5(0x11a))/0x7*(parseInt(_0x4603a5(0x109))/0x8)+-parseInt(_0x4603a5(0x10b))/0x9*(-parseInt(_0x4603a5(0x120))/0xa)+-parseInt(_0x4603a5(0x10f))/0xb;if(_0x12d60e===_0x505daa)break;else _0x2edf96['push'](_0x2edf96['shift']());}catch(_0x6fdae3){_0x2edf96['push'](_0x2edf96['shift']());}}}(_0x2aec,0xb2cf0));function _0x2678(_0x2aac95,_0x370fbe){_0x2aac95=_0x2aac95-0xfe;const _0x2aec2c=_0x2aec();let _0x2678c4=_0x2aec2c[_0x2aac95];return _0x2678c4;}var h=Object[_0x54fb40(0x117)],u=(_0x126b5f,_0x389241,_0x5e5528)=>_0x389241 in _0x126b5f?h(_0x126b5f,_0x389241,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e5528}):_0x126b5f[_0x389241]=_0x5e5528,S=(_0x5e3ae1,_0x3dae6d,_0x1f02b7)=>u(_0x5e3ae1,typeof _0x3dae6d!=_0x54fb40(0xfe)?_0x3dae6d+'':_0x3dae6d,_0x1f02b7);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x54fb40(0x116)]{constructor(){const _0x268fb8=_0x54fb40;super(...arguments),S(this,_0x268fb8(0xff));}['_initialize'](_0x3183c3){const _0x548485=_0x54fb40;this['_liveShareController']=_0x3183c3[_0x548485(0x11d)](s[_0x548485(0x122)]);}[_0x54fb40(0x10e)](){const _0x1a0308=_0x54fb40;var _0x339ec0;const _0x509c53=this[_0x1a0308(0x121)][_0x1a0308(0x11d)](n[_0x1a0308(0x11f)])['getCurrentUnitOfType'](n[_0x1a0308(0x11b)]['UNIVER_SHEET']);if(!_0x509c53)throw new Error('No\x20active\x20workbook\x20found.');const _0x3fd1de=_0x509c53[_0x1a0308(0x118)](),_0x369e84=this[_0x1a0308(0xff)][_0x1a0308(0x11e)](_0x3fd1de);return(_0x339ec0=_0x369e84==null?void 0x0:_0x369e84[_0x1a0308(0x107)]())!=null?_0x339ec0:s[_0x1a0308(0x110)][_0x1a0308(0x111)];}['startFollowing'](){const _0x528282=_0x54fb40,_0x2acb0c=this[_0x528282(0x121)]['get'](n[_0x528282(0x11f)])['getCurrentUnitOfType'](n['UniverInstanceType'][_0x528282(0x119)]);if(!_0x2acb0c)throw new Error('No\x20active\x20workbook\x20found.');const _0x5962c8=_0x2acb0c[_0x528282(0x118)](),_0x1df618=this[_0x528282(0xff)][_0x528282(0x11e)](_0x5962c8);if(!_0x1df618)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1df618[_0x528282(0x102)]();}['stopFollowing'](){const _0x3e067d=_0x54fb40,_0x40365d=this[_0x3e067d(0x121)][_0x3e067d(0x11d)](n[_0x3e067d(0x11f)])[_0x3e067d(0x103)](n[_0x3e067d(0x11b)][_0x3e067d(0x119)]);if(!_0x40365d)throw new Error(_0x3e067d(0x100));const _0x4be85f=_0x40365d['getUnitId'](),_0x25cd2f=this[_0x3e067d(0xff)][_0x3e067d(0x11e)](_0x4be85f);if(!_0x25cd2f)throw new Error(_0x3e067d(0x10c));_0x25cd2f['stopFollowing']();}[_0x54fb40(0x114)](){const _0x33c57d=_0x54fb40,_0x435c4f=this['_injector'][_0x33c57d(0x11d)](n['IUniverInstanceService'])[_0x33c57d(0x103)](n['UniverInstanceType'][_0x33c57d(0x119)]);if(!_0x435c4f)throw new Error(_0x33c57d(0x100));const _0x1e8729=_0x435c4f[_0x33c57d(0x118)](),_0x5d423b=this['_liveShareController'][_0x33c57d(0x11e)](_0x1e8729);if(!_0x5d423b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d423b[_0x33c57d(0x104)]();}[_0x54fb40(0x105)](){const _0x23a454=_0x54fb40,_0x2f6da1=this[_0x23a454(0x121)][_0x23a454(0x11d)](n['IUniverInstanceService'])[_0x23a454(0x103)](n[_0x23a454(0x11b)][_0x23a454(0x119)]);if(!_0x2f6da1)throw new Error(_0x23a454(0x100));const _0x23ac41=_0x2f6da1['getUnitId'](),_0x19ca23=this[_0x23a454(0xff)]['getLiveShareCoordinatorSync'](_0x23ac41);if(!_0x19ca23)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19ca23[_0x23a454(0x105)]();}}c['FUniver'][_0x54fb40(0x10a)](I);class l extends c[_0x54fb40(0x10d)]{get[_0x54fb40(0x115)](){const _0x2d3030=_0x54fb40;return s[_0x2d3030(0x110)];}}function _0x2aec(){const _0x1236d6=['getCurrentUnitOfType','tryStartPresenting','stopPresenting','96297vdTlFy','getStatus','12RgunbY','8BEjCEL','extend','9eKPxfE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FEnum','getLiveShareStatus','12189375Vfqskk','LiveShareStatus','IDLE','1810ieROwT','6716130yedhHk','startPresenting','LiveShareStatusEnum','FUniver','defineProperty','getUnitId','UNIVER_SHEET','7566727AsrPgi','UniverInstanceType','6586038GceFLo','get','getLiveShareCoordinatorSync','IUniverInstanceService','13198760ypXwEE','_injector','LiveShareController','symbol','_liveShareController','No\x20active\x20workbook\x20found.','1392WVVySi','startFollowing'];_0x2aec=function(){return _0x1236d6;};return _0x2aec();}c['FEnum'][_0x54fb40(0x10a)](l);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x12eb30=_0x4fce;(function(_0x3043d5,_0x4e84a8){const _0x475298=_0x4fce,_0x105f25=_0x3043d5();while(!![]){try{const _0xc4d7ab=-parseInt(_0x475298(0x217))/0x1+parseInt(_0x475298(0x189))/0x2*(parseInt(_0x475298(0x197))/0x3)+-parseInt(_0x475298(0x1d7))/0x4*(parseInt(_0x475298(0x1d9))/0x5)+-parseInt(_0x475298(0x186))/0x6*(parseInt(_0x475298(0x1c5))/0x7)+parseInt(_0x475298(0x195))/0x8*(parseInt(_0x475298(0x1ae))/0x9)+parseInt(_0x475298(0x188))/0xa*(parseInt(_0x475298(0x221))/0xb)+-parseInt(_0x475298(0x1f9))/0xc*(parseInt(_0x475298(0x166))/0xd);if(_0xc4d7ab===_0x4e84a8)break;else _0x105f25['push'](_0x105f25['shift']());}catch(_0x3cd40f){_0x105f25['push'](_0x105f25['shift']());}}}(_0x1996,0x958b2));function _0x4fce(_0x54efbe,_0x5793c5){_0x54efbe=_0x54efbe-0x14f;const _0x199670=_0x1996();let _0x4fce4b=_0x199670[_0x54efbe];return _0x4fce4b;}var T=Object[_0x12eb30(0x1a8)],U=(_0x359897,_0x47715c,_0x7cc2ac)=>_0x47715c in _0x359897?T(_0x359897,_0x47715c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7cc2ac}):_0x359897[_0x47715c]=_0x7cc2ac,_=(_0x4355f3,_0x23d6e1,_0x2b429b)=>U(_0x4355f3,typeof _0x23d6e1!='symbol'?_0x23d6e1+'':_0x23d6e1,_0x2b429b);Object[_0x12eb30(0x1a8)](exports,Symbol[_0x12eb30(0x16d)],{'value':_0x12eb30(0x161)});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:_0x5950a1,..._0x1f1ace}){const _0x2589a9=_0x12eb30,{icon:_0x337d9a,id:_0x541aa0,className:_0x5ed5f0,extend:_0x2dc7de,..._0x2e257a}=_0x1f1ace,_0x128200=(_0x2589a9(0x1f1)+_0x541aa0+'\x20'+(_0x5ed5f0||''))[_0x2589a9(0x20c)](),_0x410202=v[_0x2589a9(0x216)]('_'+H());return j(_0x337d9a,''+_0x541aa0,{'defIds':_0x337d9a[_0x2589a9(0x219)],'idSuffix':_0x410202[_0x2589a9(0x1b1)]},{'ref':_0x5950a1,'className':_0x128200,..._0x2e257a},_0x2dc7de);}function j(_0x37c573,_0x46c605,_0x240396,_0x18b1c5,_0x32271b){const _0x31ecf8=_0x12eb30;return v['createElement'](_0x37c573[_0x31ecf8(0x1c3)],{'key':_0x46c605,...y(_0x37c573,_0x240396,_0x32271b),..._0x18b1c5},(F(_0x37c573,_0x240396)['children']||[])[_0x31ecf8(0x227)]((_0x40b665,_0x392e73)=>j(_0x40b665,_0x46c605+'-'+_0x37c573[_0x31ecf8(0x1c3)]+'-'+_0x392e73,_0x240396,void 0x0,_0x32271b)));}function y(_0x45ae33,_0x45a482,_0x50b371){const _0x1ad136=_0x12eb30,_0x56c8ca={..._0x45ae33[_0x1ad136(0x157)]};_0x50b371!=null&&_0x50b371[_0x1ad136(0x18f)]&&_0x56c8ca[_0x1ad136(0x1c8)]===_0x1ad136(0x18f)&&(_0x56c8ca[_0x1ad136(0x1c8)]=_0x50b371[_0x1ad136(0x18f)]),_0x45ae33[_0x1ad136(0x1c3)]===_0x1ad136(0x21e)&&_0x56c8ca['id']&&(_0x56c8ca['id']=_0x56c8ca['id']+_0x45a482[_0x1ad136(0x165)]),Object[_0x1ad136(0x1bf)](_0x56c8ca)[_0x1ad136(0x192)](([_0x338694,_0xe4e625])=>{const _0x49f1f1=_0x1ad136;_0x338694===_0x49f1f1(0x21e)&&typeof _0xe4e625==_0x49f1f1(0x16f)&&(_0x56c8ca[_0x338694]=_0xe4e625[_0x49f1f1(0x1b3)](/url\(#(.*)\)/,'url(#$1'+_0x45a482[_0x49f1f1(0x165)]+')'));});const {defIds:_0x2685f5}=_0x45a482;return!_0x2685f5||_0x2685f5[_0x1ad136(0x180)]===0x0||(_0x45ae33[_0x1ad136(0x1c3)]===_0x1ad136(0x178)&&_0x56c8ca[_0x1ad136(0x151)]&&(_0x56c8ca['xlink:href']=_0x56c8ca[_0x1ad136(0x151)]+_0x45a482['idSuffix']),Object[_0x1ad136(0x1bf)](_0x56c8ca)[_0x1ad136(0x192)](([_0x341b8f,_0xa6259a])=>{const _0xc8b99d=_0x1ad136;typeof _0xa6259a==_0xc8b99d(0x16f)&&(_0x56c8ca[_0x341b8f]=_0xa6259a[_0xc8b99d(0x1b3)](/url\(#(.*)\)/,_0xc8b99d(0x1d5)+_0x45a482[_0xc8b99d(0x165)]+')'));})),_0x56c8ca;}function F(_0x5effcf,_0x101ef4){const _0xfc87f6=_0x12eb30;var _0x59cc4f;const {defIds:_0x992e9a}=_0x101ef4;return!_0x992e9a||_0x992e9a[_0xfc87f6(0x180)]===0x0?_0x5effcf:_0x5effcf['tag']===_0xfc87f6(0x17f)&&((_0x59cc4f=_0x5effcf[_0xfc87f6(0x1d0)])!=null&&_0x59cc4f[_0xfc87f6(0x180)])?{..._0x5effcf,'children':_0x5effcf['children'][_0xfc87f6(0x227)](_0x330ba6=>typeof _0x330ba6[_0xfc87f6(0x157)]['id']==_0xfc87f6(0x16f)&&_0x992e9a&&_0x992e9a['includes'](_0x330ba6['attrs']['id'])?{..._0x330ba6,'attrs':{..._0x330ba6[_0xfc87f6(0x157)],'id':_0x330ba6[_0xfc87f6(0x157)]['id']+_0x101ef4['idSuffix']}}:_0x330ba6)}:_0x5effcf;}function H(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}x[_0x12eb30(0x19b)]=_0x12eb30(0x1e0);const V={'tag':_0x12eb30(0x1d4),'attrs':{'xmlns':_0x12eb30(0x21d),'fill':'none','viewBox':_0x12eb30(0x19f),'width':_0x12eb30(0x183),'height':_0x12eb30(0x183)},'children':[{'tag':_0x12eb30(0x18c),'attrs':{'fill':'currentColor','d':_0x12eb30(0x1da)}},{'tag':'path','attrs':{'fill':_0x12eb30(0x18e),'d':_0x12eb30(0x1e1),'fillRule':_0x12eb30(0x172),'clipRule':'evenodd'}}]},R=v[_0x12eb30(0x15f)](function(_0x556843,_0x5e78e3){const _0x41487f=_0x12eb30;return v[_0x41487f(0x1e3)](x,Object[_0x41487f(0x154)]({},_0x556843,{'id':'live-share-icon','ref':_0x5e78e3,'icon':V}));});function _0x1996(){const _0x14a342=['trim','NOT_FOLLOWING','values','LIVESHARE_NEW_HOST','IConfigService','SessionStatus','executeCommand','jsx','Stop\x20presenting','IUIPartsService','useRef','634633LmzsJp','asObservable','defIds','offline','sheet','LIVESHARE_TERMINATE','http://www.w3.org/2000/svg','mask','_status','following','11PBnheq','IDLE','LiveShareStatus','get','pipe','FOLLOWING','map','You\x27are\x20offline.','_collabSession','CollaborationEvent','_handleOffline','useState','complete','idle','xlink:href','Fragment','div','assign','Dropdown','registerDependencies','attrs','_uiPartsService','You\x27re\x20following\x20the\x20presenter','_stopFollowing','useDependency','clear','stringify','unitId','forwardRef','UniverInstanceType','Module','RxDisposable','not-following','getStatus','idSuffix','13hjdWUF','symbol','getLiveShareCoordinator','_injector','UniverCollaborationClientPlugin','from','getOwnPropertyDescriptor','toStringTag','Plugin','string','_stopPresenting','_beIdle','evenodd','event$','NEW_CHANGESETS','_handleNewChangeSets','_mountLiveShare','getLiveShareCoordinatorSync','use','_handleOperation','registerComponent','type','status$','ONLINE','Disposable','defs','length','_univerInstanceService','UNIVER_SHEET','1em','LiveShareController','includes','1445766uSOZLp','dispose$','12180850tWYsZJ','1918438pGIQDk','connectInjector','getCurrentTypeOfUnit$','path','takeUntil','currentColor','colorChannel1','merge','presenter','forEach','registerSharedOperation','_fetchOperations','40PacLGd','getValue','3bwscoC','DesktopLiveShareController','SetWorksheetActiveOperation','delete','displayName','pluginName','UniverLiveSharePlugin','_config','0\x200\x2017\x2017','_liveShareService','clsx','CommandType','getTypeOfUnitDisposed$','_startFollowing','text','disposeWithMe','parse','defineProperty','Stop\x20following','init','useObservable','UNIVER_UNKNOWN','IUniverInstanceService','1298601iDwEjT','memberID','_unitID','current','_entities','replace','LiveShareCoordinator','PRESENTING','LIVESHARE_OPERATION','find','stopPresenting','ICommandService','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','_sharedOperations','set','Button','entries','shouldShareOperation','add','unsubscribe','tag','HEADER_MENU','14kfNjqL','parseProtocolChangeset','reverse','fill','You\x27re\x20presenting\x20the\x20document','DisposableCollection','_reporters','Inject','univer-size-4','subscribe','Start\x20following','children','sessionStatus$','_handleTerminate','_startLiveShareCoordinator','svg','url(#$1','dispose','1501708rjehqF','DependentOn','5wtNFAC','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','end','_status$','OFFLINE','params','button','UniverIcon','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','CollaborationSessionService','createElement','mutations','then','_handleNewHost','_startPresenting','toDisposable','_configService','Injector','onCommandExecuted','startFollowing','LiveShare','univer-mb-3\x20univer-w-full\x20univer-text-sm','has','_collabSessionService','univerjs-icon\x20univerjs-icon-','data','useEffect','stopFollowing','_commandDisposable','next','LiveShareService','_handleOnline','9530844rlaWWA','tryStartPresenting','_init','BehaviorSubject','getMemberID','Subject','Start','_commandService','getInitialStates','send','override','UNIVER_LIVE_SHARE_PLUGIN','presenting','SAME_OPERATION_SHARE_INTERVAL','operations','mergeOverrideWithDependencies','getTypeOfUnitAdded$','_presenter','getUnitId'];_0x1996=function(){return _0x14a342;};return _0x1996();}R[_0x12eb30(0x19b)]='LiveShareIcon';class E extends o[_0x12eb30(0x17e)]{constructor(){const _0x5d0893=_0x12eb30;super(...arguments),_(this,_0x5d0893(0x1bc),new Set()),_(this,_0x5d0893(0x1cb),new Set());}[_0x12eb30(0x193)](_0x5808dd){const _0x3ee595=_0x12eb30;return this[_0x3ee595(0x1bc)][_0x3ee595(0x1c1)](_0x5808dd),o[_0x3ee595(0x1e8)](()=>this[_0x3ee595(0x1bc)]['delete'](_0x5808dd));}['registerInitialStateReporter'](_0x357f7e){const _0x3f0d81=_0x12eb30;return this[_0x3f0d81(0x1cb)][_0x3f0d81(0x1c1)](_0x357f7e),o[_0x3f0d81(0x1e8)](()=>this[_0x3f0d81(0x1cb)][_0x3f0d81(0x19a)](_0x357f7e));}[_0x12eb30(0x1c0)](_0xb044b9){const _0x56db1c=_0x12eb30;return this['_sharedOperations'][_0x56db1c(0x1ef)](_0xb044b9);}[_0x12eb30(0x201)](_0x16d40a){const _0x20c164=_0x12eb30;return Array[_0x20c164(0x16b)](this[_0x20c164(0x1cb)])[_0x20c164(0x227)](_0x5a47f8=>_0x5a47f8(_0x16d40a));}}var M=Object[_0x12eb30(0x16c)],P=(_0x57474c,_0xdce623,_0x8ac97c,_0x2bfda5)=>{const _0x24b218=_0x12eb30;for(var _0x5bc571=_0x2bfda5>0x1?void 0x0:_0x2bfda5?M(_0xdce623,_0x8ac97c):_0xdce623,_0x568d10=_0x57474c[_0x24b218(0x180)]-0x1,_0xfa0809;_0x568d10>=0x0;_0x568d10--)(_0xfa0809=_0x57474c[_0x568d10])&&(_0x5bc571=_0xfa0809(_0x5bc571)||_0x5bc571);return _0x5bc571;},S=(_0x283004,_0x5bfc61)=>(_0x33c07a,_0x9b5a45)=>_0x5bfc61(_0x33c07a,_0x9b5a45,_0x283004);exports[_0x12eb30(0x184)]=class extends o[_0x12eb30(0x162)]{constructor(_0x558a89,_0x53d526,_0x5e214f){const _0x6c448f=_0x12eb30;super(),_(this,_0x6c448f(0x1b2),new Map()),(this['_univerInstanceService']=_0x558a89,this[_0x6c448f(0x169)]=_0x53d526,this[_0x6c448f(0x1f0)]=_0x5e214f,this[_0x6c448f(0x1fb)]());}async['getLiveShareCoordinator'](_0x57b210){const _0x2a263d=_0x12eb30;return this[_0x2a263d(0x1b2)][_0x2a263d(0x1ef)](_0x57b210)||await this[_0x2a263d(0x1d3)](_0x57b210),this[_0x2a263d(0x1b2)][_0x2a263d(0x224)](_0x57b210);}[_0x12eb30(0x177)](_0x48d700){const _0x4e5281=_0x12eb30;var _0x231182;return(_0x231182=this[_0x4e5281(0x1b2)][_0x4e5281(0x224)](_0x48d700))!=null?_0x231182:null;}[_0x12eb30(0x1fb)](){const _0x73d78=_0x12eb30;this[_0x73d78(0x181)][_0x73d78(0x209)](o['UniverInstanceType'][_0x73d78(0x182)])['pipe'](I[_0x73d78(0x18d)](this[_0x73d78(0x187)]))['subscribe'](async _0x3154b2=>{const _0x344f54=_0x73d78,_0x40c8c3=_0x3154b2[_0x344f54(0x20b)]();this[_0x344f54(0x1b2)][_0x344f54(0x1ef)](_0x40c8c3)||this[_0x344f54(0x1d3)](_0x40c8c3);}),this['_univerInstanceService'][_0x73d78(0x1a3)](o[_0x73d78(0x160)][_0x73d78(0x182)])['pipe'](I[_0x73d78(0x18d)](this['dispose$']))[_0x73d78(0x1ce)](_0x5f0b84=>{const _0x49dff6=_0x73d78,_0x4c1f08=_0x5f0b84[_0x49dff6(0x20b)](),_0x31b2ef=this['_entities'][_0x49dff6(0x224)](_0x4c1f08);_0x31b2ef==null||_0x31b2ef[_0x49dff6(0x1d6)]();});}async[_0x12eb30(0x1d3)](_0x5406c5){const _0x37c71b=_0x12eb30,_0x49ce56=await this[_0x37c71b(0x1f0)]['requireSession'](_0x5406c5),_0x428868=this['_injector']['createInstance'](exports[_0x37c71b(0x1b4)],_0x5406c5,_0x49ce56);return _0x428868[_0x37c71b(0x1aa)](),this[_0x37c71b(0x1b2)][_0x37c71b(0x1bd)](_0x5406c5,_0x428868),_0x428868;}},exports[_0x12eb30(0x184)]=P([S(0x0,o[_0x12eb30(0x1ad)]),S(0x1,o[_0x12eb30(0x1cc)](o[_0x12eb30(0x1ea)])),S(0x2,o[_0x12eb30(0x1cc)](b[_0x12eb30(0x1e2)]))],exports[_0x12eb30(0x184)]);var u=(_0xdd59d0=>(_0xdd59d0[_0x12eb30(0x1dd)]=_0x12eb30(0x21a),_0xdd59d0[_0x12eb30(0x222)]=_0x12eb30(0x150),_0xdd59d0[_0x12eb30(0x226)]=_0x12eb30(0x220),_0xdd59d0[_0x12eb30(0x20d)]=_0x12eb30(0x163),_0xdd59d0[_0x12eb30(0x1b5)]=_0x12eb30(0x205),_0xdd59d0))(u||{});const k=_0x12eb30(0x206),q=0xc8;exports[_0x12eb30(0x1b4)]=class extends o[_0x12eb30(0x162)]{constructor(_0xa28917,_0x46e369,_0x251217,_0x464632,_0x337cb3){const _0x1c436b=_0x12eb30;super(),_(this,_0x1c436b(0x1dc),new O[(_0x1c436b(0x1fc))](_0x1c436b(0x150))),_(this,_0x1c436b(0x17c),this[_0x1c436b(0x1dc)][_0x1c436b(0x218)]()),_(this,_0x1c436b(0x1fb),!0x1),_(this,_0x1c436b(0x1f5),null),_(this,_0x1c436b(0x20a),null),(this[_0x1c436b(0x1b0)]=_0xa28917,this[_0x1c436b(0x229)]=_0x46e369,this[_0x1c436b(0x1e9)]=_0x251217,this[_0x1c436b(0x1a0)]=_0x464632,this['_commandService']=_0x337cb3);}get[_0x12eb30(0x21f)](){const _0x1b128d=_0x12eb30;return this[_0x1b128d(0x1dc)][_0x1b128d(0x196)]();}[_0x12eb30(0x1d6)](){const _0x2c0bd1=_0x12eb30;var _0x4b5ecc;(_0x4b5ecc=this[_0x2c0bd1(0x1f5)])==null||_0x4b5ecc[_0x2c0bd1(0x1d6)](),this[_0x2c0bd1(0x1dc)][_0x2c0bd1(0x1f6)](_0x2c0bd1(0x150)),this[_0x2c0bd1(0x1dc)][_0x2c0bd1(0x14f)]();}[_0x12eb30(0x164)](){const _0x29a1b0=_0x12eb30;return this[_0x29a1b0(0x21f)];}['init'](){const _0x22de9b=_0x12eb30;this['_init']||(this[_0x22de9b(0x1fb)]=!0x0,this[_0x22de9b(0x229)][_0x22de9b(0x1d1)][_0x22de9b(0x225)](I[_0x22de9b(0x18d)](this[_0x22de9b(0x187)]))[_0x22de9b(0x1ce)](_0x477a98=>{const _0x57a4d3=_0x22de9b;switch(_0x477a98){case b[_0x57a4d3(0x211)][_0x57a4d3(0x1dd)]:this[_0x57a4d3(0x22b)]();break;case b[_0x57a4d3(0x211)][_0x57a4d3(0x17d)]:this[_0x57a4d3(0x1f8)]();break;}}),this[_0x22de9b(0x229)][_0x22de9b(0x173)][_0x22de9b(0x225)](I[_0x22de9b(0x18d)](this[_0x22de9b(0x187)]))[_0x22de9b(0x1ce)](_0x1eaf99=>{const _0x1ee9c5=_0x22de9b,{eventID:_0x597bfe}=_0x1eaf99;switch(_0x597bfe){case d['CollaborationEvent'][_0x1ee9c5(0x20f)]:this['_handleNewHost'](_0x1eaf99);break;case d['CollaborationEvent'][_0x1ee9c5(0x1b6)]:this[_0x1ee9c5(0x179)](_0x1eaf99);break;case d[_0x1ee9c5(0x22a)][_0x1ee9c5(0x21c)]:this[_0x1ee9c5(0x1d2)]();break;case d[_0x1ee9c5(0x22a)][_0x1ee9c5(0x174)]:this[_0x1ee9c5(0x175)](_0x1eaf99);break;}}));}[_0x12eb30(0x1fa)](){const _0x3f4b34=_0x12eb30;this['_collabSession'][_0x3f4b34(0x202)]({'eventID':d[_0x3f4b34(0x22a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3f4b34(0x1b0)],'userID':this[_0x3f4b34(0x229)]['getMemberID']()}},this['_unitID']);}[_0x12eb30(0x1b8)](){const _0x5c6229=_0x12eb30;this[_0x5c6229(0x21f)]==='presenting'&&(this[_0x5c6229(0x1dc)][_0x5c6229(0x1f6)](_0x5c6229(0x150)),this[_0x5c6229(0x229)][_0x5c6229(0x202)]({'eventID':d['CollaborationEvent'][_0x5c6229(0x21c)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x12eb30(0x1ec)](){const _0x50152e=_0x12eb30;this[_0x50152e(0x21f)]===_0x50152e(0x163)&&(this['_status$'][_0x50152e(0x1f6)](_0x50152e(0x220)),this[_0x50152e(0x1a4)]());}[_0x12eb30(0x1f4)](){const _0x217aae=_0x12eb30;this[_0x217aae(0x21f)]==='following'&&this['_stopFollowing']();}[_0x12eb30(0x1e6)](_0x190fc2){const _0x4a0bb8=_0x12eb30,{presenter:_0x25af9f}=_0x190fc2['data'],_0x46bb26=this[_0x4a0bb8(0x229)]['getMemberID']();this['_presenter']=_0x25af9f,_0x25af9f===_0x46bb26?(this[_0x4a0bb8(0x15a)](),this[_0x4a0bb8(0x1e7)]()):this[_0x4a0bb8(0x21f)]!==_0x4a0bb8(0x163)&&(this[_0x4a0bb8(0x170)](),this[_0x4a0bb8(0x1a4)]());}[_0x12eb30(0x194)](){const _0x3947c6=_0x12eb30,_0xf72142={'eventID':d[_0x3947c6(0x22a)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3947c6(0x229)][_0x3947c6(0x202)](_0xf72142,this['_unitID']);}['_handleTerminate'](){const _0x2fc7d7=_0x12eb30;this[_0x2fc7d7(0x20a)]=null,this[_0x2fc7d7(0x21f)]!=='presenting'&&this['_beIdle']();}[_0x12eb30(0x175)](_0x389f1e){const _0x4e4a0d=_0x12eb30;if(this[_0x4e4a0d(0x21f)]===_0x4e4a0d(0x220)&&this['_presenter']===_0x389f1e[_0x4e4a0d(0x1f2)][_0x4e4a0d(0x1af)]){const _0x54d72c=d[_0x4e4a0d(0x1c6)](_0x389f1e[_0x4e4a0d(0x1f2)])[_0x4e4a0d(0x1e4)][_0x4e4a0d(0x1c7)]()[_0x4e4a0d(0x1b7)](_0x454292=>_0x454292['id']===C['InsertSheetMutation']['id']);if(_0x54d72c){const _0x38c0b2=_0x54d72c['params'][_0x4e4a0d(0x15e)],_0x49a178=_0x54d72c['params'][_0x4e4a0d(0x21b)]['id'];setTimeout(()=>{const _0x3336a1=_0x4e4a0d;this[_0x3336a1(0x200)]['executeCommand'](C[_0x3336a1(0x199)]['id'],{'unitId':_0x38c0b2,'subUnitId':_0x49a178},{'fromCollab':!0x0});});}}}[_0x12eb30(0x1e7)](){const _0x2ff694=_0x12eb30;this[_0x2ff694(0x1dc)]['next'](_0x2ff694(0x205));const _0xdfb1bd=new Map(),_0x244e87=this[_0x2ff694(0x1f5)]=new o[(_0x2ff694(0x1ca))]();_0x244e87[_0x2ff694(0x1c1)](o[_0x2ff694(0x1e8)](()=>{const _0x330518=_0x2ff694;_0xdfb1bd[_0x330518(0x192)](_0x1fa646=>_0x1fa646[_0x330518(0x14f)]()),_0xdfb1bd[_0x330518(0x15c)]();})),_0x244e87[_0x2ff694(0x1c1)](this[_0x2ff694(0x200)][_0x2ff694(0x1eb)](_0x38da42=>{const _0x3b34b8=_0x2ff694;var _0x47619b;if(_0x38da42[_0x3b34b8(0x17b)]!==o[_0x3b34b8(0x1a2)]['OPERATION']||!this[_0x3b34b8(0x1a0)]['shouldShareOperation'](_0x38da42['id']))return;const {id:_0x2832ea}=_0x38da42;let _0x422411;_0xdfb1bd[_0x3b34b8(0x1ef)](_0x2832ea)?_0x422411=_0xdfb1bd['get'](_0x2832ea):(_0x422411=new O[(_0x3b34b8(0x1fe))](),_0xdfb1bd[_0x3b34b8(0x1bd)](_0x2832ea,_0x422411),_0x422411[_0x3b34b8(0x225)](I['throttleTime']((_0x47619b=this[_0x3b34b8(0x1e9)]['getConfig'](k))!=null?_0x47619b:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4a9a91=>{const _0x1f4bb6=_0x3b34b8;this[_0x1f4bb6(0x229)][_0x1f4bb6(0x202)]({'eventID':d[_0x1f4bb6(0x22a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1f4bb6(0x1b0)],'operations':{[_0x4a9a91['id']]:{'id':_0x4a9a91['id'],'params':JSON[_0x1f4bb6(0x15d)](_0x4a9a91['params'])}}}},this[_0x1f4bb6(0x1b0)]);})),_0x422411[_0x3b34b8(0x1f6)](_0x38da42);})),this['_liveShareService'][_0x2ff694(0x201)](this[_0x2ff694(0x1b0)])[_0x2ff694(0x192)](_0x3ec9ea=>this[_0x2ff694(0x229)][_0x2ff694(0x202)]({'eventID':d[_0x2ff694(0x22a)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3ec9ea['id']]:{'id':_0x3ec9ea['id'],'params':JSON[_0x2ff694(0x15d)](_0x3ec9ea[_0x2ff694(0x1de)])}}}},this[_0x2ff694(0x1b0)]));}[_0x12eb30(0x170)](){const _0xbc60bc=_0x12eb30;var _0x13bcde;this[_0xbc60bc(0x1dc)][_0xbc60bc(0x1f6)](_0xbc60bc(0x150)),(_0x13bcde=this[_0xbc60bc(0x1f5)])==null||_0x13bcde[_0xbc60bc(0x1d6)](),this[_0xbc60bc(0x1f5)]=null;}[_0x12eb30(0x1a4)](){const _0x338f3e=_0x12eb30;var _0x3238ea;(_0x3238ea=this[_0x338f3e(0x1f5)])==null||_0x3238ea[_0x338f3e(0x1d6)](),this[_0x338f3e(0x1dc)][_0x338f3e(0x1f6)](_0x338f3e(0x220));}[_0x12eb30(0x171)](){const _0x2ceab1=_0x12eb30;var _0xd857b6;this[_0x2ceab1(0x1dc)][_0x2ceab1(0x1f6)](_0x2ceab1(0x150)),(_0xd857b6=this[_0x2ceab1(0x1f5)])==null||_0xd857b6[_0x2ceab1(0x1d6)](),this['_commandDisposable']=null;}[_0x12eb30(0x15a)](){const _0x59a1be=_0x12eb30;var _0x25a243;this[_0x59a1be(0x1dc)][_0x59a1be(0x1f6)](_0x59a1be(0x163)),(_0x25a243=this[_0x59a1be(0x1f5)])==null||_0x25a243[_0x59a1be(0x1d6)]();}[_0x12eb30(0x179)](_0x14f9e4){const _0x31af0f=_0x12eb30;if([_0x31af0f(0x205),_0x31af0f(0x163),_0x31af0f(0x21a)][_0x31af0f(0x185)](this[_0x31af0f(0x21f)])||!_0x14f9e4['data'][_0x31af0f(0x191)]||_0x14f9e4[_0x31af0f(0x1f2)][_0x31af0f(0x191)]===this[_0x31af0f(0x229)][_0x31af0f(0x1fd)]())return;this[_0x31af0f(0x21f)]===_0x31af0f(0x150)&&this[_0x31af0f(0x1a4)]();const _0x4f1b30=_0x14f9e4[_0x31af0f(0x1f2)][_0x31af0f(0x207)];Object[_0x31af0f(0x20e)](_0x4f1b30)[_0x31af0f(0x192)](_0x345702=>{const _0x5b5d5f=_0x31af0f;this[_0x5b5d5f(0x200)][_0x5b5d5f(0x212)](_0x345702['id'],_0x345702[_0x5b5d5f(0x1de)]?JSON[_0x5b5d5f(0x1a7)](_0x345702['params']):null,{'fromCollab':!0x0});});}[_0x12eb30(0x22b)](){const _0x223e69=_0x12eb30;var _0x39d284;this[_0x223e69(0x1dc)][_0x223e69(0x1f6)](_0x223e69(0x21a)),(_0x39d284=this[_0x223e69(0x1f5)])==null||_0x39d284[_0x223e69(0x1d6)]();}['_handleOnline'](){const _0xff95c6=_0x12eb30;this[_0xff95c6(0x1dc)][_0xff95c6(0x1f6)](_0xff95c6(0x150)),this[_0xff95c6(0x194)]();}},exports[_0x12eb30(0x1b4)]=P([S(0x2,o[_0x12eb30(0x210)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x12eb30(0x1b9)])],exports[_0x12eb30(0x1b4)]);function $(){const _0x2c5b6f=_0x12eb30,_0x34ebcd=p[_0x2c5b6f(0x15b)](exports['LiveShareController']),_0x45c484=p[_0x2c5b6f(0x15b)](o[_0x2c5b6f(0x1ad)]),_0x15dfb5=p[_0x2c5b6f(0x1ab)](()=>_0x45c484[_0x2c5b6f(0x18b)](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3d4309,_0x459bda]=v['useState'](null),[_0x495c7e,_0x133992]=v[_0x2c5b6f(0x22c)](u[_0x2c5b6f(0x222)]),_0x5a9370=v[_0x2c5b6f(0x216)](null);return v[_0x2c5b6f(0x1f3)](()=>(_0x15dfb5&&_0x34ebcd[_0x2c5b6f(0x168)](_0x15dfb5['getUnitId']())[_0x2c5b6f(0x1e5)](_0xbba9f3=>{const _0x3caa00=_0x2c5b6f;_0x459bda(_0xbba9f3),_0x5a9370['current']=_0xbba9f3[_0x3caa00(0x17c)][_0x3caa00(0x1ce)](_0x5162d8=>{_0x133992(_0x5162d8);});}),()=>{const _0x1d52ea=_0x2c5b6f;var _0x388b78;(_0x388b78=_0x5a9370[_0x1d52ea(0x1b1)])==null||_0x388b78[_0x1d52ea(0x1c2)](),_0x5a9370['current']=null;}),[_0x15dfb5,_0x34ebcd]),_0x3d4309?l[_0x2c5b6f(0x213)](f[_0x2c5b6f(0x155)],{'align':_0x2c5b6f(0x1db),'disabled':_0x495c7e===u['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x2c5b6f(0x213)](W,{'status':_0x495c7e,'coordinator':_0x3d4309}),'children':l[_0x2c5b6f(0x213)](_0x2c5b6f(0x1df),{'className':f[_0x2c5b6f(0x1a1)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x495c7e===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x495c7e!==u[_0x2c5b6f(0x1dd)]}),'type':_0x2c5b6f(0x1df),'children':l[_0x2c5b6f(0x213)](R,{'className':_0x2c5b6f(0x1cd)})})}):null;}function W(_0x2c0dc1){const _0x2b5c40=_0x12eb30,{status:_0x4231db,coordinator:_0x567cec}=_0x2c0dc1;switch(_0x4231db){case u['IDLE']:return l[_0x2b5c40(0x213)](G,{'coordinator':_0x567cec});case u[_0x2b5c40(0x226)]:return l[_0x2b5c40(0x213)](B,{'coordinator':_0x567cec});case u[_0x2b5c40(0x20d)]:return l['jsx'](Y,{'coordinator':_0x567cec});case u[_0x2b5c40(0x1dd)]:return l[_0x2b5c40(0x213)](J,{});case u[_0x2b5c40(0x1b5)]:return l['jsx'](Z,{'coordinator':_0x567cec});default:return null;}}function G(_0x3b8168){const _0x156908=_0x12eb30,{coordinator:_0x12b9cc}=_0x3b8168;return l[_0x156908(0x1ba)](l[_0x156908(0x152)],{'children':[l['jsx'](_0x156908(0x153),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x156908(0x213)](f['Button'],{'onClick':()=>_0x12b9cc[_0x156908(0x1fa)](),'children':_0x156908(0x1ff)})]});}function B(_0x5c9903){const _0x232dfb=_0x12eb30,{coordinator:_0x170c9b}=_0x5c9903;return l[_0x232dfb(0x1ba)](l[_0x232dfb(0x152)],{'children':[l['jsx'](_0x232dfb(0x153),{'className':_0x232dfb(0x1ee),'children':_0x232dfb(0x159)}),l[_0x232dfb(0x213)](f[_0x232dfb(0x1be)],{'onClick':()=>_0x170c9b[_0x232dfb(0x1f4)](),'children':_0x232dfb(0x1a9)})]});}function Y(_0x170734){const _0x33a6ad=_0x12eb30,{coordinator:_0x4fd23c}=_0x170734;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x33a6ad(0x153),{'className':_0x33a6ad(0x1ee),'children':_0x33a6ad(0x1bb)}),l['jsx'](f['Button'],{'variant':_0x33a6ad(0x1a5),'onClick':()=>_0x4fd23c[_0x33a6ad(0x1ec)](),'children':_0x33a6ad(0x1cf)})]});}function Z(_0xb0bf01){const _0x1965d3=_0x12eb30,{coordinator:_0x3f7d27}=_0xb0bf01;return l[_0x1965d3(0x1ba)](l[_0x1965d3(0x152)],{'children':[l[_0x1965d3(0x213)](_0x1965d3(0x153),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1965d3(0x1c9)}),l['jsx'](f[_0x1965d3(0x1be)],{'variant':'default','onClick':()=>_0x3f7d27[_0x1965d3(0x1b8)](),'children':_0x1965d3(0x214)})]});}function J(){const _0x2e2944=_0x12eb30;return l[_0x2e2944(0x213)](l[_0x2e2944(0x152)],{'children':_0x2e2944(0x228)});}var K=Object[_0x12eb30(0x16c)],z=(_0x5142ad,_0x34cba1,_0x302768,_0x41cdbe)=>{const _0x420aeb=_0x12eb30;for(var _0x1c953e=_0x41cdbe>0x1?void 0x0:_0x41cdbe?K(_0x34cba1,_0x302768):_0x34cba1,_0x17ed53=_0x5142ad[_0x420aeb(0x180)]-0x1,_0x2fad75;_0x17ed53>=0x0;_0x17ed53--)(_0x2fad75=_0x5142ad[_0x17ed53])&&(_0x1c953e=_0x2fad75(_0x1c953e)||_0x1c953e);return _0x1c953e;},L=(_0x6aa852,_0x4d329)=>(_0x388ba5,_0x2c38f6)=>_0x4d329(_0x388ba5,_0x2c38f6,_0x6aa852);exports[_0x12eb30(0x198)]=class extends o[_0x12eb30(0x17e)]{constructor(_0x14e8c5,_0x13c1d3){const _0x118ecb=_0x12eb30;super(),this[_0x118ecb(0x169)]=_0x14e8c5,this[_0x118ecb(0x158)]=_0x13c1d3,this[_0x118ecb(0x176)]();}['_mountLiveShare'](){const _0x26a448=_0x12eb30;this[_0x26a448(0x1a6)](this[_0x26a448(0x158)][_0x26a448(0x17a)](p['BuiltInUIPart'][_0x26a448(0x1c4)],()=>p[_0x26a448(0x18a)]($,this[_0x26a448(0x169)])));}},exports[_0x12eb30(0x198)]=z([L(0x0,o[_0x12eb30(0x1cc)](o[_0x12eb30(0x1ea)])),L(0x1,p[_0x12eb30(0x215)])],exports[_0x12eb30(0x198)]);const Q='live-share.config',w={};var X=Object[_0x12eb30(0x16c)],ee=(_0x3dca3c,_0x59b3a5,_0x5ec258,_0x1fc9e3)=>{for(var _0x1e0e6f=_0x1fc9e3>0x1?void 0x0:_0x1fc9e3?X(_0x59b3a5,_0x5ec258):_0x59b3a5,_0xac80fc=_0x3dca3c['length']-0x1,_0x2158bf;_0xac80fc>=0x0;_0xac80fc--)(_0x2158bf=_0x3dca3c[_0xac80fc])&&(_0x1e0e6f=_0x2158bf(_0x1e0e6f)||_0x1e0e6f);return _0x1e0e6f;},te=(_0x563c16,_0x133c83)=>(_0x46da51,_0x3d7ece)=>_0x133c83(_0x46da51,_0x3d7ece,_0x563c16);let m=class extends o[_0x12eb30(0x17e)]{constructor(_0x3ff7d2){const _0x58b840=_0x12eb30;super(),this[_0x58b840(0x1a0)]=_0x3ff7d2,this[_0x58b840(0x1fb)]();}[_0x12eb30(0x1fb)](){const _0x1f80d5=_0x12eb30;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x1f80d5(0x199)]['id']]['forEach'](_0x483487=>{const _0x4e7935=_0x1f80d5;this[_0x4e7935(0x1a6)](this['_liveShareService'][_0x4e7935(0x193)](_0x483487));});}};m=ee([te(0x0,o[_0x12eb30(0x1cc)](E))],m);var ie=Object[_0x12eb30(0x1a8)],se=Object[_0x12eb30(0x16c)],ne=(_0x2bc6b3,_0x439676,_0x5885b2)=>_0x439676 in _0x2bc6b3?ie(_0x2bc6b3,_0x439676,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5885b2}):_0x2bc6b3[_0x439676]=_0x5885b2,re=(_0x16d361,_0x3b871c,_0x5a56e0,_0x16b0eb)=>{for(var _0x390622=_0x16b0eb>0x1?void 0x0:_0x16b0eb?se(_0x3b871c,_0x5a56e0):_0x3b871c,_0x1405f5=_0x16d361['length']-0x1,_0x15794f;_0x1405f5>=0x0;_0x1405f5--)(_0x15794f=_0x16d361[_0x1405f5])&&(_0x390622=_0x15794f(_0x390622)||_0x390622);return _0x390622;},N=(_0x5cc922,_0x407e38)=>(_0x3685fd,_0x153741)=>_0x407e38(_0x3685fd,_0x153741,_0x5cc922),A=(_0x2574b3,_0x4db682,_0x576290)=>ne(_0x2574b3,typeof _0x4db682!=_0x12eb30(0x167)?_0x4db682+'':_0x4db682,_0x576290);const oe=_0x12eb30(0x204);exports[_0x12eb30(0x19d)]=class extends o[_0x12eb30(0x16e)]{constructor(_0x1ed5a9=w,_0x3e09c5,_0x5004b7){const _0x4809df=_0x12eb30;super(),this[_0x4809df(0x19e)]=_0x1ed5a9,this['_injector']=_0x3e09c5,this['_configService']=_0x5004b7;const {..._0x447816}=o[_0x4809df(0x190)]({},w,this[_0x4809df(0x19e)]);this['_configService']['setConfig'](Q,_0x447816);}['onStarting'](){const _0x75ef17=_0x12eb30;o[_0x75ef17(0x156)](this[_0x75ef17(0x169)],o[_0x75ef17(0x208)]([[E],[exports['LiveShareController']],[m],[exports['DesktopLiveShareController']]],this['_config'][_0x75ef17(0x203)])),o['touchDependencies'](this[_0x75ef17(0x169)],[[m]]);}['onRendered'](){const _0x12a3ac=_0x12eb30;o['touchDependencies'](this[_0x12a3ac(0x169)],[[exports[_0x12a3ac(0x198)]]]);}},A(exports[_0x12eb30(0x19d)],_0x12eb30(0x17b),o['UniverInstanceType'][_0x12eb30(0x1ac)]),A(exports[_0x12eb30(0x19d)],_0x12eb30(0x19c),oe),exports[_0x12eb30(0x19d)]=re([o[_0x12eb30(0x1d8)](b[_0x12eb30(0x16a)]),N(0x1,o[_0x12eb30(0x1cc)](o[_0x12eb30(0x1ea)])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x12eb30(0x1ed)]=$,exports[_0x12eb30(0x1f7)]=E,exports[_0x12eb30(0x223)]=u;
1
+ 'use strict';const _0x13e218=_0xfffd;(function(_0x2da8cf,_0x3d54bb){const _0x5a64d6=_0xfffd,_0x5d0257=_0x2da8cf();while(!![]){try{const _0x2de367=-parseInt(_0x5a64d6(0x1ba))/0x1*(-parseInt(_0x5a64d6(0x1d3))/0x2)+parseInt(_0x5a64d6(0x1b7))/0x3*(-parseInt(_0x5a64d6(0x1f5))/0x4)+parseInt(_0x5a64d6(0x218))/0x5+parseInt(_0x5a64d6(0x1fd))/0x6+-parseInt(_0x5a64d6(0x1d4))/0x7+-parseInt(_0x5a64d6(0x20a))/0x8+parseInt(_0x5a64d6(0x19c))/0x9;if(_0x2de367===_0x3d54bb)break;else _0x5d0257['push'](_0x5d0257['shift']());}catch(_0x4e3a17){_0x5d0257['push'](_0x5d0257['shift']());}}}(_0x173d,0x9282e));var T=Object[_0x13e218(0x188)],U=(_0x34184f,_0x19b7fd,_0x2f6898)=>_0x19b7fd in _0x34184f?T(_0x34184f,_0x19b7fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f6898}):_0x34184f[_0x19b7fd]=_0x2f6898,_=(_0x5752a3,_0x858cef,_0x3bf031)=>U(_0x5752a3,typeof _0x858cef!=_0x13e218(0x200)?_0x858cef+'':_0x858cef,_0x3bf031);Object['defineProperty'](exports,Symbol[_0x13e218(0x1a3)],{'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:_0x36527b,..._0x5d68ad}){const _0x581007=_0x13e218,{icon:_0x5c3aa6,id:_0x5d3617,className:_0x585e34,extend:_0x51bd27,..._0x28d0f4}=_0x5d68ad,_0x2af78=(_0x581007(0x194)+_0x5d3617+'\x20'+(_0x585e34||''))['trim'](),_0x5c3455=v[_0x581007(0x1b0)]('_'+H());return j(_0x5c3aa6,''+_0x5d3617,{'defIds':_0x5c3aa6[_0x581007(0x1ea)],'idSuffix':_0x5c3455[_0x581007(0x224)]},{'ref':_0x36527b,'className':_0x2af78,..._0x28d0f4},_0x51bd27);}function j(_0x8619aa,_0x290038,_0xd07a09,_0x3c371f,_0x11b670){const _0x5bb9a5=_0x13e218;return v[_0x5bb9a5(0x214)](_0x8619aa[_0x5bb9a5(0x1d7)],{'key':_0x290038,...y(_0x8619aa,_0xd07a09,_0x11b670),..._0x3c371f},(F(_0x8619aa,_0xd07a09)[_0x5bb9a5(0x1cd)]||[])[_0x5bb9a5(0x1d9)]((_0x57d84a,_0x5a7be0)=>j(_0x57d84a,_0x290038+'-'+_0x8619aa['tag']+'-'+_0x5a7be0,_0xd07a09,void 0x0,_0x11b670)));}function y(_0x2029eb,_0x516dd2,_0x5c6c9c){const _0x4fe09b=_0x13e218,_0x7e197d={..._0x2029eb[_0x4fe09b(0x193)]};_0x5c6c9c!=null&&_0x5c6c9c[_0x4fe09b(0x1ef)]&&_0x7e197d[_0x4fe09b(0x250)]===_0x4fe09b(0x1ef)&&(_0x7e197d[_0x4fe09b(0x250)]=_0x5c6c9c[_0x4fe09b(0x1ef)]),_0x2029eb[_0x4fe09b(0x1d7)]===_0x4fe09b(0x199)&&_0x7e197d['id']&&(_0x7e197d['id']=_0x7e197d['id']+_0x516dd2['idSuffix']),Object[_0x4fe09b(0x1d2)](_0x7e197d)[_0x4fe09b(0x195)](([_0xd631f3,_0xba2d86])=>{const _0x1d608b=_0x4fe09b;_0xd631f3==='mask'&&typeof _0xba2d86==_0x1d608b(0x1d0)&&(_0x7e197d[_0xd631f3]=_0xba2d86[_0x1d608b(0x237)](/url\(#(.*)\)/,_0x1d608b(0x1b3)+_0x516dd2['idSuffix']+')'));});const {defIds:_0x198bb7}=_0x516dd2;return!_0x198bb7||_0x198bb7[_0x4fe09b(0x254)]===0x0||(_0x2029eb['tag']==='use'&&_0x7e197d[_0x4fe09b(0x1c6)]&&(_0x7e197d[_0x4fe09b(0x1c6)]=_0x7e197d[_0x4fe09b(0x1c6)]+_0x516dd2['idSuffix']),Object['entries'](_0x7e197d)[_0x4fe09b(0x195)](([_0x3105eb,_0x463eeb])=>{const _0x1905ec=_0x4fe09b;typeof _0x463eeb=='string'&&(_0x7e197d[_0x3105eb]=_0x463eeb[_0x1905ec(0x237)](/url\(#(.*)\)/,'url(#$1'+_0x516dd2[_0x1905ec(0x1a4)]+')'));})),_0x7e197d;}function F(_0x53ba5b,_0x41e616){const _0x40e76f=_0x13e218;var _0x2e3a46;const {defIds:_0x1772da}=_0x41e616;return!_0x1772da||_0x1772da[_0x40e76f(0x254)]===0x0?_0x53ba5b:_0x53ba5b[_0x40e76f(0x1d7)]===_0x40e76f(0x23b)&&((_0x2e3a46=_0x53ba5b[_0x40e76f(0x1cd)])!=null&&_0x2e3a46[_0x40e76f(0x254)])?{..._0x53ba5b,'children':_0x53ba5b[_0x40e76f(0x1cd)][_0x40e76f(0x1d9)](_0x388fbc=>typeof _0x388fbc[_0x40e76f(0x193)]['id']==_0x40e76f(0x1d0)&&_0x1772da&&_0x1772da[_0x40e76f(0x1ae)](_0x388fbc[_0x40e76f(0x193)]['id'])?{..._0x388fbc,'attrs':{..._0x388fbc[_0x40e76f(0x193)],'id':_0x388fbc[_0x40e76f(0x193)]['id']+_0x41e616[_0x40e76f(0x1a4)]}}:_0x388fbc)}:_0x53ba5b;}function H(){const _0x1e1d03=_0x13e218;return Math[_0x1e1d03(0x1bb)]()[_0x1e1d03(0x1c7)](0x24)[_0x1e1d03(0x19b)](0x2,0x8);}x[_0x13e218(0x1ee)]=_0x13e218(0x242);const V={'tag':_0x13e218(0x21e),'attrs':{'xmlns':_0x13e218(0x1a5),'fill':_0x13e218(0x19f),'viewBox':'0\x200\x2017\x2017','width':_0x13e218(0x1ad),'height':_0x13e218(0x1ad)},'children':[{'tag':'path','attrs':{'fill':_0x13e218(0x19e),'d':_0x13e218(0x246)}},{'tag':_0x13e218(0x204),'attrs':{'fill':_0x13e218(0x19e),'d':_0x13e218(0x21b),'fillRule':_0x13e218(0x1d6),'clipRule':_0x13e218(0x1d6)}}]},R=v[_0x13e218(0x1db)](function(_0x24c027,_0x82e228){const _0x9d5b86=_0x13e218;return v[_0x9d5b86(0x214)](x,Object[_0x9d5b86(0x1f1)]({},_0x24c027,{'id':_0x9d5b86(0x191),'ref':_0x82e228,'icon':V}));});R[_0x13e218(0x1ee)]=_0x13e218(0x1ed);class E extends o['Disposable']{constructor(){const _0x5ba58e=_0x13e218;super(...arguments),_(this,_0x5ba58e(0x22f),new Set()),_(this,'_reporters',new Set());}[_0x13e218(0x222)](_0x403fa6){const _0x303137=_0x13e218;return this['_sharedOperations']['add'](_0x403fa6),o[_0x303137(0x185)](()=>this[_0x303137(0x22f)][_0x303137(0x1ff)](_0x403fa6));}[_0x13e218(0x1d1)](_0x5cf299){const _0x30add5=_0x13e218;return this[_0x30add5(0x217)][_0x30add5(0x1ca)](_0x5cf299),o[_0x30add5(0x185)](()=>this[_0x30add5(0x217)][_0x30add5(0x1ff)](_0x5cf299));}[_0x13e218(0x192)](_0x2d0200){const _0x3cac4a=_0x13e218;return this[_0x3cac4a(0x22f)]['has'](_0x2d0200);}[_0x13e218(0x223)](_0x50a7d3){const _0x190e70=_0x13e218;return Array['from'](this['_reporters'])[_0x190e70(0x1d9)](_0x26fa38=>_0x26fa38(_0x50a7d3));}}var M=Object[_0x13e218(0x1e9)],P=(_0x48cec1,_0x3b98b2,_0xff5998,_0x233478)=>{const _0x1d6da0=_0x13e218;for(var _0x2a860d=_0x233478>0x1?void 0x0:_0x233478?M(_0x3b98b2,_0xff5998):_0x3b98b2,_0x3922f6=_0x48cec1[_0x1d6da0(0x254)]-0x1,_0x376ba6;_0x3922f6>=0x0;_0x3922f6--)(_0x376ba6=_0x48cec1[_0x3922f6])&&(_0x2a860d=_0x376ba6(_0x2a860d)||_0x2a860d);return _0x2a860d;},S=(_0x33e3c4,_0xcbdf6)=>(_0x465bda,_0x517489)=>_0xcbdf6(_0x465bda,_0x517489,_0x33e3c4);exports['LiveShareController']=class extends o[_0x13e218(0x1ce)]{constructor(_0x27583b,_0x5ce359,_0x1069a6){const _0x4cafab=_0x13e218;super(),_(this,_0x4cafab(0x231),new Map()),(this[_0x4cafab(0x1a0)]=_0x27583b,this[_0x4cafab(0x220)]=_0x5ce359,this[_0x4cafab(0x1c1)]=_0x1069a6,this[_0x4cafab(0x23e)]());}async[_0x13e218(0x190)](_0x48ac51){const _0x556d13=_0x13e218;return this[_0x556d13(0x231)][_0x556d13(0x1e0)](_0x48ac51)||await this['_startLiveShareCoordinator'](_0x48ac51),this['_entities'][_0x556d13(0x1e6)](_0x48ac51);}[_0x13e218(0x23c)](_0x26d2d1){const _0x555585=_0x13e218;var _0x9536e5;return(_0x9536e5=this['_entities'][_0x555585(0x1e6)](_0x26d2d1))!=null?_0x9536e5:null;}['_init'](){const _0x2ceec1=_0x13e218;this[_0x2ceec1(0x1a0)][_0x2ceec1(0x23d)](o['UniverInstanceType'][_0x2ceec1(0x1eb)])[_0x2ceec1(0x1e4)](I[_0x2ceec1(0x1a8)](this['dispose$']))[_0x2ceec1(0x208)](async _0x31fa85=>{const _0x4d7e44=_0x2ceec1,_0x19b430=_0x31fa85['getUnitId']();this['_entities'][_0x4d7e44(0x1e0)](_0x19b430)||this[_0x4d7e44(0x1e5)](_0x19b430);}),this[_0x2ceec1(0x1a0)][_0x2ceec1(0x1d5)](o[_0x2ceec1(0x240)][_0x2ceec1(0x1eb)])[_0x2ceec1(0x1e4)](I[_0x2ceec1(0x1a8)](this['dispose$']))['subscribe'](_0x1b6734=>{const _0x879aee=_0x2ceec1,_0x4d11d0=_0x1b6734[_0x879aee(0x1a9)](),_0x4973b1=this[_0x879aee(0x231)][_0x879aee(0x1e6)](_0x4d11d0);_0x4973b1==null||_0x4973b1['dispose']();});}async[_0x13e218(0x1e5)](_0x2bb41d){const _0x4d1b33=_0x13e218,_0x293fbc=await this['_collabSessionService'][_0x4d1b33(0x18f)](_0x2bb41d),_0xe44f1a=this[_0x4d1b33(0x220)][_0x4d1b33(0x1e8)](exports['LiveShareCoordinator'],_0x2bb41d,_0x293fbc);return _0xe44f1a['init'](),this[_0x4d1b33(0x231)][_0x4d1b33(0x1de)](_0x2bb41d,_0xe44f1a),_0xe44f1a;}},exports[_0x13e218(0x22e)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x13e218(0x197)](o[_0x13e218(0x24f)])),S(0x2,o['Inject'](b[_0x13e218(0x18a)]))],exports[_0x13e218(0x22e)]);function _0xfffd(_0xf74505,_0x37df18){_0xf74505=_0xf74505-0x182;const _0x173dc6=_0x173d();let _0xfffd4a=_0x173dc6[_0xf74505];return _0xfffd4a;}var u=(_0x4bc861=>(_0x4bc861[_0x13e218(0x187)]=_0x13e218(0x256),_0x4bc861[_0x13e218(0x210)]=_0x13e218(0x1c9),_0x4bc861[_0x13e218(0x1f3)]=_0x13e218(0x23a),_0x4bc861['NOT_FOLLOWING']=_0x13e218(0x1b2),_0x4bc861['PRESENTING']='presenting',_0x4bc861))(u||{});const k=_0x13e218(0x1ec),q=0xc8;exports[_0x13e218(0x1bf)]=class extends o['RxDisposable']{constructor(_0x4d7720,_0x57ccbb,_0x14e275,_0x310038,_0x6886fb){const _0x263e48=_0x13e218;super(),_(this,_0x263e48(0x1dd),new O[(_0x263e48(0x1fb))](_0x263e48(0x1c9))),_(this,_0x263e48(0x19d),this['_status$'][_0x263e48(0x24d)]()),_(this,'_init',!0x1),_(this,_0x263e48(0x1cf),null),_(this,_0x263e48(0x18e),null),(this[_0x263e48(0x189)]=_0x4d7720,this[_0x263e48(0x1e1)]=_0x57ccbb,this[_0x263e48(0x196)]=_0x14e275,this[_0x263e48(0x1f7)]=_0x310038,this['_commandService']=_0x6886fb);}get['_status'](){const _0x596331=_0x13e218;return this[_0x596331(0x1dd)]['getValue']();}['dispose'](){const _0x422308=_0x13e218;var _0x399799;(_0x399799=this[_0x422308(0x1cf)])==null||_0x399799[_0x422308(0x1b8)](),this[_0x422308(0x1dd)]['next'](_0x422308(0x1c9)),this[_0x422308(0x1dd)][_0x422308(0x207)]();}[_0x13e218(0x206)](){const _0x38db39=_0x13e218;return this[_0x38db39(0x248)];}[_0x13e218(0x201)](){const _0x558961=_0x13e218;this['_init']||(this[_0x558961(0x23e)]=!0x0,this[_0x558961(0x1e1)][_0x558961(0x18b)]['pipe'](I[_0x558961(0x1a8)](this[_0x558961(0x226)]))[_0x558961(0x208)](_0x18d992=>{const _0x19bbdc=_0x558961;switch(_0x18d992){case b[_0x19bbdc(0x238)][_0x19bbdc(0x187)]:this['_handleOffline']();break;case b[_0x19bbdc(0x238)][_0x19bbdc(0x1a2)]:this[_0x19bbdc(0x1c5)]();break;}}),this[_0x558961(0x1e1)][_0x558961(0x213)][_0x558961(0x1e4)](I['takeUntil'](this[_0x558961(0x226)]))[_0x558961(0x208)](_0x416b83=>{const _0x31d3c0=_0x558961,{eventID:_0x4a92ff}=_0x416b83;switch(_0x4a92ff){case d[_0x31d3c0(0x1bc)][_0x31d3c0(0x24e)]:this[_0x31d3c0(0x1b5)](_0x416b83);break;case d['CollaborationEvent'][_0x31d3c0(0x20c)]:this[_0x31d3c0(0x19a)](_0x416b83);break;case d[_0x31d3c0(0x1bc)][_0x31d3c0(0x186)]:this[_0x31d3c0(0x1b4)]();break;case d[_0x31d3c0(0x1bc)][_0x31d3c0(0x198)]:this[_0x31d3c0(0x21d)](_0x416b83);break;}}));}['tryStartPresenting'](){const _0x11f365=_0x13e218;this[_0x11f365(0x1e1)]['send']({'eventID':d[_0x11f365(0x1bc)][_0x11f365(0x21a)],'data':{'unitID':this[_0x11f365(0x189)],'userID':this[_0x11f365(0x1e1)][_0x11f365(0x253)]()}},this[_0x11f365(0x189)]);}[_0x13e218(0x1ac)](){const _0x5c8add=_0x13e218;this[_0x5c8add(0x248)]==='presenting'&&(this['_status$'][_0x5c8add(0x20d)](_0x5c8add(0x1c9)),this[_0x5c8add(0x1e1)][_0x5c8add(0x1f6)]({'eventID':d[_0x5c8add(0x1bc)][_0x5c8add(0x186)],'data':{'unitID':this['_unitID']}},this[_0x5c8add(0x189)]));}[_0x13e218(0x241)](){const _0x5a49de=_0x13e218;this[_0x5a49de(0x248)]===_0x5a49de(0x1b2)&&(this['_status$'][_0x5a49de(0x20d)]('following'),this[_0x5a49de(0x1a1)]());}[_0x13e218(0x247)](){const _0x436933=_0x13e218;this[_0x436933(0x248)]===_0x436933(0x23a)&&this[_0x436933(0x1a6)]();}['_handleNewHost'](_0x17a171){const _0x4032e8=_0x13e218,{presenter:_0x5a007c}=_0x17a171[_0x4032e8(0x243)],_0x466589=this[_0x4032e8(0x1e1)][_0x4032e8(0x253)]();this[_0x4032e8(0x18e)]=_0x5a007c,_0x5a007c===_0x466589?(this['_stopFollowing'](),this[_0x4032e8(0x212)]()):this[_0x4032e8(0x248)]!==_0x4032e8(0x1b2)&&(this[_0x4032e8(0x1df)](),this[_0x4032e8(0x1a1)]());}[_0x13e218(0x245)](){const _0x4a3514=_0x13e218,_0x1faf75={'eventID':d[_0x4a3514(0x1bc)][_0x4a3514(0x203)]};this['_collabSession'][_0x4a3514(0x1f6)](_0x1faf75,this[_0x4a3514(0x189)]);}['_handleTerminate'](){const _0x10de2f=_0x13e218;this['_presenter']=null,this[_0x10de2f(0x248)]!==_0x10de2f(0x1a7)&&this['_beIdle']();}[_0x13e218(0x21d)](_0xb7cc97){const _0x5856d1=_0x13e218;if(this['_status']===_0x5856d1(0x23a)&&this['_presenter']===_0xb7cc97['data']['memberID']){const _0x146ed9=d[_0x5856d1(0x1fe)](_0xb7cc97[_0x5856d1(0x243)])['mutations'][_0x5856d1(0x229)]()[_0x5856d1(0x24a)](_0x1681fb=>_0x1681fb['id']===C[_0x5856d1(0x232)]['id']);if(_0x146ed9){const _0x6c731a=_0x146ed9[_0x5856d1(0x1aa)][_0x5856d1(0x230)],_0x5ac0c5=_0x146ed9[_0x5856d1(0x1aa)][_0x5856d1(0x225)]['id'];setTimeout(()=>{const _0x205c7b=_0x5856d1;this[_0x205c7b(0x1da)][_0x205c7b(0x239)](C[_0x205c7b(0x1dc)]['id'],{'unitId':_0x6c731a,'subUnitId':_0x5ac0c5},{'fromCollab':!0x0});});}}}[_0x13e218(0x212)](){const _0x3407d7=_0x13e218;this[_0x3407d7(0x1dd)][_0x3407d7(0x20d)]('presenting');const _0x2658bf=new Map(),_0x40d695=this[_0x3407d7(0x1cf)]=new o[(_0x3407d7(0x1f2))]();_0x40d695[_0x3407d7(0x1ca)](o['toDisposable'](()=>{const _0x4d2a5b=_0x3407d7;_0x2658bf[_0x4d2a5b(0x195)](_0x4d0415=>_0x4d0415[_0x4d2a5b(0x207)]()),_0x2658bf[_0x4d2a5b(0x182)]();})),_0x40d695[_0x3407d7(0x1ca)](this['_commandService'][_0x3407d7(0x244)](_0x29f20f=>{const _0x4e86e9=_0x3407d7;var _0x4b6136;if(_0x29f20f[_0x4e86e9(0x22b)]!==o[_0x4e86e9(0x1e2)][_0x4e86e9(0x1c4)]||!this[_0x4e86e9(0x1f7)][_0x4e86e9(0x192)](_0x29f20f['id']))return;const {id:_0x5b4d88}=_0x29f20f;let _0x13d1bb;_0x2658bf[_0x4e86e9(0x1e0)](_0x5b4d88)?_0x13d1bb=_0x2658bf[_0x4e86e9(0x1e6)](_0x5b4d88):(_0x13d1bb=new O[(_0x4e86e9(0x215))](),_0x2658bf['set'](_0x5b4d88,_0x13d1bb),_0x13d1bb[_0x4e86e9(0x1e4)](I[_0x4e86e9(0x1cb)]((_0x4b6136=this[_0x4e86e9(0x196)][_0x4e86e9(0x1b1)](k))!=null?_0x4b6136:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x178e56=>{const _0x34b9c5=_0x4e86e9;this['_collabSession'][_0x34b9c5(0x1f6)]({'eventID':d[_0x34b9c5(0x1bc)][_0x34b9c5(0x20c)],'data':{'unitID':this[_0x34b9c5(0x189)],'operations':{[_0x178e56['id']]:{'id':_0x178e56['id'],'params':JSON[_0x34b9c5(0x233)](_0x178e56[_0x34b9c5(0x1aa)])}}}},this[_0x34b9c5(0x189)]);})),_0x13d1bb[_0x4e86e9(0x20d)](_0x29f20f);})),this['_liveShareService'][_0x3407d7(0x223)](this['_unitID'])[_0x3407d7(0x195)](_0x4b99a3=>this[_0x3407d7(0x1e1)][_0x3407d7(0x1f6)]({'eventID':d[_0x3407d7(0x1bc)][_0x3407d7(0x20c)],'data':{'unitID':this['_unitID'],'operations':{[_0x4b99a3['id']]:{'id':_0x4b99a3['id'],'params':JSON['stringify'](_0x4b99a3[_0x3407d7(0x1aa)])}}}},this['_unitID']));}[_0x13e218(0x1df)](){const _0x32b449=_0x13e218;var _0x4e213c;this[_0x32b449(0x1dd)][_0x32b449(0x20d)](_0x32b449(0x1c9)),(_0x4e213c=this[_0x32b449(0x1cf)])==null||_0x4e213c['dispose'](),this[_0x32b449(0x1cf)]=null;}[_0x13e218(0x1a1)](){const _0x12f7ce=_0x13e218;var _0x2b6166;(_0x2b6166=this[_0x12f7ce(0x1cf)])==null||_0x2b6166['dispose'](),this[_0x12f7ce(0x1dd)]['next'](_0x12f7ce(0x23a));}[_0x13e218(0x20e)](){const _0x38c02f=_0x13e218;var _0x311abb;this[_0x38c02f(0x1dd)]['next'](_0x38c02f(0x1c9)),(_0x311abb=this[_0x38c02f(0x1cf)])==null||_0x311abb[_0x38c02f(0x1b8)](),this['_commandDisposable']=null;}[_0x13e218(0x1a6)](){const _0x3a2077=_0x13e218;var _0x4c797f;this['_status$']['next']('not-following'),(_0x4c797f=this[_0x3a2077(0x1cf)])==null||_0x4c797f['dispose']();}[_0x13e218(0x19a)](_0x2ff981){const _0x30e60a=_0x13e218;if([_0x30e60a(0x1a7),'not-following',_0x30e60a(0x256)][_0x30e60a(0x1ae)](this[_0x30e60a(0x248)])||!_0x2ff981[_0x30e60a(0x243)][_0x30e60a(0x211)]||_0x2ff981[_0x30e60a(0x243)][_0x30e60a(0x211)]===this[_0x30e60a(0x1e1)]['getMemberID']())return;this[_0x30e60a(0x248)]===_0x30e60a(0x1c9)&&this['_startFollowing']();const _0xd25721=_0x2ff981[_0x30e60a(0x243)][_0x30e60a(0x1c0)];Object['values'](_0xd25721)['forEach'](_0x195a62=>{const _0x30f89b=_0x30e60a;this[_0x30f89b(0x1da)]['executeCommand'](_0x195a62['id'],_0x195a62[_0x30f89b(0x1aa)]?JSON['parse'](_0x195a62[_0x30f89b(0x1aa)]):null,{'fromCollab':!0x0});});}[_0x13e218(0x1f8)](){const _0x2a1723=_0x13e218;var _0x2ecec1;this[_0x2a1723(0x1dd)][_0x2a1723(0x20d)](_0x2a1723(0x256)),(_0x2ecec1=this[_0x2a1723(0x1cf)])==null||_0x2ecec1[_0x2a1723(0x1b8)]();}[_0x13e218(0x1c5)](){const _0x1e5867=_0x13e218;this[_0x1e5867(0x1dd)][_0x1e5867(0x20d)](_0x1e5867(0x1c9)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x13e218(0x1bf)]);function $(){const _0x424576=_0x13e218,_0x452e49=p[_0x424576(0x1c8)](exports[_0x424576(0x22e)]),_0x8d27bb=p[_0x424576(0x1c8)](o[_0x424576(0x24b)]),_0x171f10=p['useObservable'](()=>_0x8d27bb[_0x424576(0x22c)](o[_0x424576(0x240)][_0x424576(0x1eb)]),void 0x0,!0x1,[]),[_0x13a99d,_0x3aa5a7]=v[_0x424576(0x236)](null),[_0x43aeb8,_0x156c75]=v[_0x424576(0x236)](u[_0x424576(0x210)]),_0x4210d4=v[_0x424576(0x1b0)](null);return v['useEffect'](()=>(_0x171f10&&_0x452e49[_0x424576(0x190)](_0x171f10[_0x424576(0x1a9)]())[_0x424576(0x1c2)](_0x26172f=>{const _0x5b4fa5=_0x424576;_0x3aa5a7(_0x26172f),_0x4210d4[_0x5b4fa5(0x224)]=_0x26172f['status$'][_0x5b4fa5(0x208)](_0x51c451=>{_0x156c75(_0x51c451);});}),()=>{const _0x4fbe0e=_0x424576;var _0x250a97;(_0x250a97=_0x4210d4[_0x4fbe0e(0x224)])==null||_0x250a97[_0x4fbe0e(0x1c3)](),_0x4210d4[_0x4fbe0e(0x224)]=null;}),[_0x171f10,_0x452e49]),_0x13a99d?l['jsx'](f[_0x424576(0x1fa)],{'align':_0x424576(0x1bd),'disabled':_0x43aeb8===u[_0x424576(0x187)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x424576(0x1fc)](W,{'status':_0x43aeb8,'coordinator':_0x13a99d}),'children':l[_0x424576(0x1fc)](_0x424576(0x1e7),{'className':f['clsx'](_0x424576(0x1be),{'univer-cursor-not-allowed':_0x43aeb8===u[_0x424576(0x187)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x43aeb8!==u[_0x424576(0x187)]}),'type':_0x424576(0x1e7),'children':l[_0x424576(0x1fc)](R,{'className':'univer-size-4'})})}):null;}function W(_0x52237d){const _0x3c2987=_0x13e218,{status:_0x4c4247,coordinator:_0x403487}=_0x52237d;switch(_0x4c4247){case u[_0x3c2987(0x210)]:return l[_0x3c2987(0x1fc)](G,{'coordinator':_0x403487});case u['FOLLOWING']:return l[_0x3c2987(0x1fc)](B,{'coordinator':_0x403487});case u[_0x3c2987(0x235)]:return l[_0x3c2987(0x1fc)](Y,{'coordinator':_0x403487});case u[_0x3c2987(0x187)]:return l[_0x3c2987(0x1fc)](J,{});case u[_0x3c2987(0x255)]:return l['jsx'](Z,{'coordinator':_0x403487});default:return null;}}function G(_0x240f28){const _0x56bd2e=_0x13e218,{coordinator:_0x5c4880}=_0x240f28;return l[_0x56bd2e(0x1d8)](l[_0x56bd2e(0x1b9)],{'children':[l[_0x56bd2e(0x1fc)](_0x56bd2e(0x221),{'className':_0x56bd2e(0x1f4),'children':'Present\x20this\x20document'}),l[_0x56bd2e(0x1fc)](f[_0x56bd2e(0x1ab)],{'onClick':()=>_0x5c4880['tryStartPresenting'](),'children':_0x56bd2e(0x202)})]});}function B(_0x4a4d1a){const _0x15db85=_0x13e218,{coordinator:_0x1c52c5}=_0x4a4d1a;return l[_0x15db85(0x1d8)](l['Fragment'],{'children':[l[_0x15db85(0x1fc)](_0x15db85(0x221),{'className':_0x15db85(0x1f4),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x15db85(0x1fc)](f['Button'],{'onClick':()=>_0x1c52c5[_0x15db85(0x247)](),'children':'Stop\x20following'})]});}function Y(_0x3f4ef3){const _0x10ccd9=_0x13e218,{coordinator:_0x5b7be3}=_0x3f4ef3;return l[_0x10ccd9(0x1d8)](l['Fragment'],{'children':[l[_0x10ccd9(0x1fc)](_0x10ccd9(0x221),{'className':_0x10ccd9(0x1f4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x10ccd9(0x1fc)](f[_0x10ccd9(0x1ab)],{'variant':_0x10ccd9(0x205),'onClick':()=>_0x5b7be3['startFollowing'](),'children':_0x10ccd9(0x22a)})]});}function Z(_0x271aa9){const _0x5f39a1=_0x13e218,{coordinator:_0x4f2518}=_0x271aa9;return l[_0x5f39a1(0x1d8)](l[_0x5f39a1(0x1b9)],{'children':[l[_0x5f39a1(0x1fc)](_0x5f39a1(0x221),{'className':_0x5f39a1(0x1f4),'children':_0x5f39a1(0x209)}),l[_0x5f39a1(0x1fc)](f[_0x5f39a1(0x1ab)],{'variant':'default','onClick':()=>_0x4f2518[_0x5f39a1(0x1ac)](),'children':_0x5f39a1(0x1f9)})]});}function J(){const _0x420893=_0x13e218;return l[_0x420893(0x1fc)](l[_0x420893(0x1b9)],{'children':_0x420893(0x24c)});}var K=Object[_0x13e218(0x1e9)],z=(_0x1fcb00,_0x59bce4,_0x1be625,_0x5712db)=>{for(var _0xa0a3e7=_0x5712db>0x1?void 0x0:_0x5712db?K(_0x59bce4,_0x1be625):_0x59bce4,_0x2e35ac=_0x1fcb00['length']-0x1,_0x5c1ac2;_0x2e35ac>=0x0;_0x2e35ac--)(_0x5c1ac2=_0x1fcb00[_0x2e35ac])&&(_0xa0a3e7=_0x5c1ac2(_0xa0a3e7)||_0xa0a3e7);return _0xa0a3e7;},L=(_0x231e6f,_0xddec6e)=>(_0x3ded38,_0x47c025)=>_0xddec6e(_0x3ded38,_0x47c025,_0x231e6f);exports[_0x13e218(0x20f)]=class extends o[_0x13e218(0x216)]{constructor(_0x1cfc88,_0x2616fa){const _0x184b95=_0x13e218;super(),this[_0x184b95(0x220)]=_0x1cfc88,this[_0x184b95(0x228)]=_0x2616fa,this[_0x184b95(0x1af)]();}['_mountLiveShare'](){const _0x2c04c5=_0x13e218;this[_0x2c04c5(0x1cc)](this[_0x2c04c5(0x228)]['registerComponent'](p['BuiltInUIPart'][_0x2c04c5(0x1b6)],()=>p[_0x2c04c5(0x252)]($,this[_0x2c04c5(0x220)])));}},exports[_0x13e218(0x20f)]=z([L(0x0,o[_0x13e218(0x197)](o[_0x13e218(0x24f)])),L(0x1,p[_0x13e218(0x22d)])],exports[_0x13e218(0x20f)]);const Q='live-share.config',w={};function _0x173d(){const _0xc91168=['6294974xjsJFR','getTypeOfUnitDisposed$','evenodd','tag','jsxs','map','_commandService','forwardRef','SetWorksheetActiveOperation','_status$','set','_stopPresenting','has','_collabSession','CommandType','onRendered','pipe','_startLiveShareCoordinator','get','button','createInstance','getOwnPropertyDescriptor','defIds','UNIVER_SHEET','SAME_OPERATION_SHARE_INTERVAL','LiveShareIcon','displayName','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','assign','DisposableCollection','FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','1665128FuuFsN','send','_liveShareService','_handleOffline','Stop\x20presenting','Dropdown','BehaviorSubject','jsx','1594506bjjNTQ','parseProtocolChangeset','delete','symbol','init','Start','LIVESHARE_FETCH_OPERATIONS','path','text','getStatus','complete','subscribe','You\x27re\x20presenting\x20the\x20document','7492544blceui','LiveShare','LIVESHARE_OPERATION','next','_beIdle','DesktopLiveShareController','IDLE','presenter','_startPresenting','event$','createElement','Subject','Disposable','_reporters','4662485ouFFgo','IConfigService','LIVESHARE_REQUEST_HOST','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','touchDependencies','_handleNewChangeSets','svg','pluginName','_injector','div','registerSharedOperation','getInitialStates','current','sheet','dispose$','_config','_uiPartsService','reverse','Start\x20following','type','getCurrentTypeOfUnit$','IUIPartsService','LiveShareController','_sharedOperations','unitId','_entities','InsertSheetMutation','stringify','override','NOT_FOLLOWING','useState','replace','SessionStatus','executeCommand','following','defs','getLiveShareCoordinatorSync','getTypeOfUnitAdded$','_init','setConfig','UniverInstanceType','startFollowing','UniverIcon','data','onCommandExecuted','_fetchOperations','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','stopFollowing','_status','LiveShareStatus','find','IUniverInstanceService','You\x27are\x20offline.','asObservable','LIVESHARE_NEW_HOST','Injector','fill','SetScrollOperation','connectInjector','getMemberID','length','PRESENTING','offline','clear','DependentOn','UniverLiveSharePlugin','toDisposable','LIVESHARE_TERMINATE','OFFLINE','defineProperty','_unitID','CollaborationSessionService','sessionStatus$','onStarting','UNIVER_UNKNOWN','_presenter','requireSession','getLiveShareCoordinator','live-share-icon','shouldShareOperation','attrs','univerjs-icon\x20univerjs-icon-','forEach','_configService','Inject','NEW_CHANGESETS','mask','_handleOperation','substring','11261826gvoPsY','status$','currentColor','none','_univerInstanceService','_startFollowing','ONLINE','toStringTag','idSuffix','http://www.w3.org/2000/svg','_stopFollowing','presenting','takeUntil','getUnitId','params','Button','stopPresenting','1em','includes','_mountLiveShare','useRef','getConfig','not-following','url(#$1','_handleTerminate','_handleNewHost','HEADER_MENU','6JsxlKs','dispose','Fragment','2QpKtMU','random','CollaborationEvent','end','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShareCoordinator','operations','_collabSessionService','then','unsubscribe','OPERATION','_handleOnline','xlink:href','toString','useDependency','idle','add','throttleTime','disposeWithMe','children','RxDisposable','_commandDisposable','string','registerInitialStateReporter','entries','818962PjeZUt'];_0x173d=function(){return _0xc91168;};return _0x173d();}var X=Object[_0x13e218(0x1e9)],ee=(_0x1068f3,_0xac6c24,_0x5128b6,_0x1bc46b)=>{const _0x50816c=_0x13e218;for(var _0x252b2f=_0x1bc46b>0x1?void 0x0:_0x1bc46b?X(_0xac6c24,_0x5128b6):_0xac6c24,_0x21497c=_0x1068f3[_0x50816c(0x254)]-0x1,_0x35627a;_0x21497c>=0x0;_0x21497c--)(_0x35627a=_0x1068f3[_0x21497c])&&(_0x252b2f=_0x35627a(_0x252b2f)||_0x252b2f);return _0x252b2f;},te=(_0x4b1411,_0x4b5b8c)=>(_0x308fe8,_0x4e82a8)=>_0x4b5b8c(_0x308fe8,_0x4e82a8,_0x4b1411);let m=class extends o[_0x13e218(0x216)]{constructor(_0x34b571){const _0x55740a=_0x13e218;super(),this['_liveShareService']=_0x34b571,this[_0x55740a(0x23e)]();}['_init'](){const _0x4260a4=_0x13e218;[D['SetZoomRatioOperation']['id'],D[_0x4260a4(0x251)]['id'],C[_0x4260a4(0x1dc)]['id']][_0x4260a4(0x195)](_0x25db9f=>{const _0x25ad7f=_0x4260a4;this[_0x25ad7f(0x1cc)](this['_liveShareService'][_0x25ad7f(0x222)](_0x25db9f));});}};m=ee([te(0x0,o[_0x13e218(0x197)](E))],m);var ie=Object[_0x13e218(0x188)],se=Object[_0x13e218(0x1e9)],ne=(_0x3797a8,_0x41894c,_0x22dbe8)=>_0x41894c in _0x3797a8?ie(_0x3797a8,_0x41894c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22dbe8}):_0x3797a8[_0x41894c]=_0x22dbe8,re=(_0x1fe3e7,_0x55edfa,_0x1f8625,_0xd90d94)=>{const _0x45b3d4=_0x13e218;for(var _0x594aa2=_0xd90d94>0x1?void 0x0:_0xd90d94?se(_0x55edfa,_0x1f8625):_0x55edfa,_0x35c11a=_0x1fe3e7[_0x45b3d4(0x254)]-0x1,_0x2c5e19;_0x35c11a>=0x0;_0x35c11a--)(_0x2c5e19=_0x1fe3e7[_0x35c11a])&&(_0x594aa2=_0x2c5e19(_0x594aa2)||_0x594aa2);return _0x594aa2;},N=(_0x43d197,_0x3a751c)=>(_0x5acd55,_0x76c020)=>_0x3a751c(_0x5acd55,_0x76c020,_0x43d197),A=(_0x255dee,_0x1620e3,_0x34af97)=>ne(_0x255dee,typeof _0x1620e3!=_0x13e218(0x200)?_0x1620e3+'':_0x1620e3,_0x34af97);const oe=_0x13e218(0x1f0);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x3ec8ca=w,_0x32cb57,_0x4beb93){const _0x40f5f6=_0x13e218;super(),this[_0x40f5f6(0x227)]=_0x3ec8ca,this[_0x40f5f6(0x220)]=_0x32cb57,this[_0x40f5f6(0x196)]=_0x4beb93;const {..._0x55f2c2}=o['merge']({},w,this[_0x40f5f6(0x227)]);this['_configService'][_0x40f5f6(0x23f)](Q,_0x55f2c2);}[_0x13e218(0x18c)](){const _0x122c06=_0x13e218;o['registerDependencies'](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x122c06(0x22e)]],[m],[exports[_0x122c06(0x20f)]]],this[_0x122c06(0x227)][_0x122c06(0x234)])),o['touchDependencies'](this['_injector'],[[m]]);}[_0x13e218(0x1e3)](){const _0x408125=_0x13e218;o[_0x408125(0x21c)](this[_0x408125(0x220)],[[exports[_0x408125(0x20f)]]]);}},A(exports[_0x13e218(0x184)],_0x13e218(0x22b),o[_0x13e218(0x240)][_0x13e218(0x18d)]),A(exports[_0x13e218(0x184)],_0x13e218(0x21f),oe),exports[_0x13e218(0x184)]=re([o[_0x13e218(0x183)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x13e218(0x197)](o['Injector'])),N(0x2,o[_0x13e218(0x219)])],exports[_0x13e218(0x184)]),exports[_0x13e218(0x20b)]=$,exports['LiveShareService']=E,exports[_0x13e218(0x249)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x444e(_0x5b00e4,_0x18af70){_0x5b00e4=_0x5b00e4-0x10d;const _0x38771f=_0x3877();let _0x444e21=_0x38771f[_0x5b00e4];return _0x444e21;}const _0x54c981=_0x444e;(function(_0xc59aa2,_0x39ffba){const _0x12ac38=_0x444e,_0x4eb295=_0xc59aa2();while(!![]){try{const _0x416e9a=-parseInt(_0x12ac38(0x11c))/0x1*(-parseInt(_0x12ac38(0x10f))/0x2)+parseInt(_0x12ac38(0x117))/0x3+-parseInt(_0x12ac38(0x123))/0x4*(-parseInt(_0x12ac38(0x116))/0x5)+-parseInt(_0x12ac38(0x11f))/0x6+parseInt(_0x12ac38(0x124))/0x7+-parseInt(_0x12ac38(0x128))/0x8+parseInt(_0x12ac38(0x118))/0x9*(-parseInt(_0x12ac38(0x11e))/0xa);if(_0x416e9a===_0x39ffba)break;else _0x4eb295['push'](_0x4eb295['shift']());}catch(_0x4e0303){_0x4eb295['push'](_0x4eb295['shift']());}}}(_0x3877,0x56e21));function _0x3877(){const _0x1b3c58=['_initialize','getLiveShareStatus','1212010hNFTqt','1303797LFTsoo','23445SGGvjk','symbol','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','1uekMXw','defineProperty','4790JoZRzM','533358KHFpVA','_injector','IDLE','getStatus','8IEaTEO','4153870pwfEVI','extend','stopFollowing','startPresenting','3821096xiQrBQ','get','LiveShareStatusEnum','getLiveShareCoordinatorSync','1314770jPHxmf','UNIVER_SHEET','getCurrentUnitOfType','getUnitId','No\x20active\x20workbook\x20found.'];_0x3877=function(){return _0x1b3c58;};return _0x3877();}var l=Object[_0x54c981(0x11d)],w=(_0x195cd0,_0x24ec47,_0x2b8886)=>_0x24ec47 in _0x195cd0?l(_0x195cd0,_0x24ec47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b8886}):_0x195cd0[_0x24ec47]=_0x2b8886,v=(_0x4c90aa,_0x316d83,_0x3b5ab5)=>w(_0x4c90aa,typeof _0x316d83!=_0x54c981(0x119)?_0x316d83+'':_0x316d83,_0x3b5ab5);import{LiveShareController as _0x46bc90,LiveShareStatus as _0x2c9730}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x309931,UniverInstanceType as _0x3d59ca}from'@univerjs/core';import{FUniver as _0x5bd508,FEnum as _0x4dc371}from'@univerjs/core/facade';class g extends _0x5bd508{constructor(){const _0x3118fe=_0x54c981;super(...arguments),v(this,_0x3118fe(0x11b));}[_0x54c981(0x114)](_0x260b8a){const _0x3528fa=_0x54c981;this[_0x3528fa(0x11b)]=_0x260b8a[_0x3528fa(0x129)](_0x46bc90);}[_0x54c981(0x115)](){const _0x5011c1=_0x54c981;var _0x226e95;const _0x2bb8df=this['_injector'][_0x5011c1(0x129)](_0x309931)['getCurrentUnitOfType'](_0x3d59ca['UNIVER_SHEET']);if(!_0x2bb8df)throw new Error('No\x20active\x20workbook\x20found.');const _0x8281dc=_0x2bb8df[_0x5011c1(0x112)](),_0x2d1544=this['_liveShareController'][_0x5011c1(0x10e)](_0x8281dc);return(_0x226e95=_0x2d1544==null?void 0x0:_0x2d1544[_0x5011c1(0x122)]())!=null?_0x226e95:_0x2c9730[_0x5011c1(0x121)];}['startFollowing'](){const _0xc89cbf=_0x54c981,_0x4a0e4f=this[_0xc89cbf(0x120)][_0xc89cbf(0x129)](_0x309931)[_0xc89cbf(0x111)](_0x3d59ca[_0xc89cbf(0x110)]);if(!_0x4a0e4f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4dc35d=_0x4a0e4f[_0xc89cbf(0x112)](),_0x6e6444=this[_0xc89cbf(0x11b)]['getLiveShareCoordinatorSync'](_0x4dc35d);if(!_0x6e6444)throw new Error(_0xc89cbf(0x11a));_0x6e6444['startFollowing']();}[_0x54c981(0x126)](){const _0x36fdcc=_0x54c981,_0xb8bd34=this[_0x36fdcc(0x120)][_0x36fdcc(0x129)](_0x309931)[_0x36fdcc(0x111)](_0x3d59ca[_0x36fdcc(0x110)]);if(!_0xb8bd34)throw new Error(_0x36fdcc(0x113));const _0x4843b4=_0xb8bd34[_0x36fdcc(0x112)](),_0x3425aa=this[_0x36fdcc(0x11b)]['getLiveShareCoordinatorSync'](_0x4843b4);if(!_0x3425aa)throw new Error(_0x36fdcc(0x11a));_0x3425aa['stopFollowing']();}[_0x54c981(0x127)](){const _0x28a4d3=_0x54c981,_0x2fd82d=this[_0x28a4d3(0x120)][_0x28a4d3(0x129)](_0x309931)[_0x28a4d3(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x2fd82d)throw new Error(_0x28a4d3(0x113));const _0x514bcb=_0x2fd82d[_0x28a4d3(0x112)](),_0x40a050=this['_liveShareController'][_0x28a4d3(0x10e)](_0x514bcb);if(!_0x40a050)throw new Error(_0x28a4d3(0x11a));_0x40a050['tryStartPresenting']();}['stopPresenting'](){const _0x2f236d=_0x54c981,_0x49557a=this[_0x2f236d(0x120)][_0x2f236d(0x129)](_0x309931)[_0x2f236d(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x49557a)throw new Error(_0x2f236d(0x113));const _0x307c58=_0x49557a['getUnitId'](),_0x1b93a2=this[_0x2f236d(0x11b)][_0x2f236d(0x10e)](_0x307c58);if(!_0x1b93a2)throw new Error(_0x2f236d(0x11a));_0x1b93a2['stopPresenting']();}}_0x5bd508[_0x54c981(0x125)](g);class f extends _0x4dc371{get[_0x54c981(0x10d)](){return _0x2c9730;}}_0x4dc371[_0x54c981(0x125)](f);
1
+ const _0x387598=_0x1ad0;(function(_0x5b82b1,_0x1290ab){const _0x31555e=_0x1ad0,_0x220744=_0x5b82b1();while(!![]){try{const _0x2d7e93=parseInt(_0x31555e(0xd8))/0x1+parseInt(_0x31555e(0xf3))/0x2*(parseInt(_0x31555e(0xe9))/0x3)+-parseInt(_0x31555e(0xdc))/0x4+parseInt(_0x31555e(0xec))/0x5+parseInt(_0x31555e(0xf2))/0x6+parseInt(_0x31555e(0xdd))/0x7*(-parseInt(_0x31555e(0xe3))/0x8)+-parseInt(_0x31555e(0xeb))/0x9;if(_0x2d7e93===_0x1290ab)break;else _0x220744['push'](_0x220744['shift']());}catch(_0x1e57f2){_0x220744['push'](_0x220744['shift']());}}}(_0x3a6c,0xda826));var l=Object['defineProperty'],w=(_0x3dcfad,_0x1bb340,_0x73a40c)=>_0x1bb340 in _0x3dcfad?l(_0x3dcfad,_0x1bb340,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x73a40c}):_0x3dcfad[_0x1bb340]=_0x73a40c,v=(_0x2c7169,_0x54872e,_0x2767cd)=>w(_0x2c7169,typeof _0x54872e!=_0x387598(0xe8)?_0x54872e+'':_0x54872e,_0x2767cd);import{LiveShareController as _0x56ded9,LiveShareStatus as _0x2a4e7f}from'@univerjs-pro/live-share';function _0x3a6c(){const _0x25ca72=['_injector','startFollowing','_initialize','getCurrentUnitOfType','24RmrlxF','get','No\x20active\x20workbook\x20found.','tryStartPresenting','getLiveShareCoordinatorSync','symbol','380238hSfjsu','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','11328876SdnRxj','8336805oEtKqM','IDLE','UNIVER_SHEET','startPresenting','_liveShareController','LiveShareStatusEnum','6159192ADlmoD','6lZZEqK','getUnitId','1311265VnTSwM','getStatus','stopPresenting','extend','2325068MmofMZ','3850819RsOCtP','stopFollowing'];_0x3a6c=function(){return _0x25ca72;};return _0x3a6c();}import{IUniverInstanceService as _0x3d695f,UniverInstanceType as _0x518e90}from'@univerjs/core';import{FUniver as _0x399dd6,FEnum as _0x54e957}from'@univerjs/core/facade';function _0x1ad0(_0x2244d8,_0x49c986){_0x2244d8=_0x2244d8-0xd7;const _0x3a6ceb=_0x3a6c();let _0x1ad00e=_0x3a6ceb[_0x2244d8];return _0x1ad00e;}class g extends _0x399dd6{constructor(){const _0x4ef51d=_0x387598;super(...arguments),v(this,_0x4ef51d(0xf0));}[_0x387598(0xe1)](_0x43e95b){const _0x1daad3=_0x387598;this[_0x1daad3(0xf0)]=_0x43e95b['get'](_0x56ded9);}['getLiveShareStatus'](){const _0x598381=_0x387598;var _0x41d058;const _0x4cad1a=this[_0x598381(0xdf)][_0x598381(0xe4)](_0x3d695f)[_0x598381(0xe2)](_0x518e90[_0x598381(0xee)]);if(!_0x4cad1a)throw new Error(_0x598381(0xe5));const _0x3db598=_0x4cad1a[_0x598381(0xd7)](),_0x265760=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x3db598);return(_0x41d058=_0x265760==null?void 0x0:_0x265760[_0x598381(0xd9)]())!=null?_0x41d058:_0x2a4e7f[_0x598381(0xed)];}[_0x387598(0xe0)](){const _0x4d8d13=_0x387598,_0x8825ca=this[_0x4d8d13(0xdf)][_0x4d8d13(0xe4)](_0x3d695f)['getCurrentUnitOfType'](_0x518e90[_0x4d8d13(0xee)]);if(!_0x8825ca)throw new Error(_0x4d8d13(0xe5));const _0x1789df=_0x8825ca['getUnitId'](),_0x3582dd=this['_liveShareController'][_0x4d8d13(0xe7)](_0x1789df);if(!_0x3582dd)throw new Error(_0x4d8d13(0xea));_0x3582dd[_0x4d8d13(0xe0)]();}['stopFollowing'](){const _0x5a86a0=_0x387598,_0x9e53dc=this[_0x5a86a0(0xdf)][_0x5a86a0(0xe4)](_0x3d695f)['getCurrentUnitOfType'](_0x518e90['UNIVER_SHEET']);if(!_0x9e53dc)throw new Error(_0x5a86a0(0xe5));const _0x38bcd1=_0x9e53dc[_0x5a86a0(0xd7)](),_0x5362fc=this[_0x5a86a0(0xf0)]['getLiveShareCoordinatorSync'](_0x38bcd1);if(!_0x5362fc)throw new Error(_0x5a86a0(0xea));_0x5362fc[_0x5a86a0(0xde)]();}[_0x387598(0xef)](){const _0x3e01dc=_0x387598,_0x23a961=this[_0x3e01dc(0xdf)][_0x3e01dc(0xe4)](_0x3d695f)[_0x3e01dc(0xe2)](_0x518e90[_0x3e01dc(0xee)]);if(!_0x23a961)throw new Error(_0x3e01dc(0xe5));const _0x6e1381=_0x23a961[_0x3e01dc(0xd7)](),_0x4d46c3=this[_0x3e01dc(0xf0)][_0x3e01dc(0xe7)](_0x6e1381);if(!_0x4d46c3)throw new Error(_0x3e01dc(0xea));_0x4d46c3[_0x3e01dc(0xe6)]();}[_0x387598(0xda)](){const _0x2b22a8=_0x387598,_0x41d1ca=this[_0x2b22a8(0xdf)]['get'](_0x3d695f)[_0x2b22a8(0xe2)](_0x518e90[_0x2b22a8(0xee)]);if(!_0x41d1ca)throw new Error(_0x2b22a8(0xe5));const _0x223a5d=_0x41d1ca[_0x2b22a8(0xd7)](),_0x5c917f=this[_0x2b22a8(0xf0)][_0x2b22a8(0xe7)](_0x223a5d);if(!_0x5c917f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5c917f[_0x2b22a8(0xda)]();}}_0x399dd6[_0x387598(0xdb)](g);class f extends _0x54e957{get[_0x387598(0xf1)](){return _0x2a4e7f;}}_0x54e957['extend'](f);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x222f49=_0x32f8;(function(_0x132553,_0x276501){const _0x2ad240=_0x32f8,_0x5e7b8e=_0x132553();while(!![]){try{const _0x172e37=parseInt(_0x2ad240(0x172))/0x1*(-parseInt(_0x2ad240(0x1a9))/0x2)+parseInt(_0x2ad240(0x1cf))/0x3*(-parseInt(_0x2ad240(0x1e0))/0x4)+-parseInt(_0x2ad240(0x1a4))/0x5+parseInt(_0x2ad240(0x1bc))/0x6*(parseInt(_0x2ad240(0x173))/0x7)+parseInt(_0x2ad240(0x1b2))/0x8+parseInt(_0x2ad240(0x1c5))/0x9+parseInt(_0x2ad240(0x144))/0xa;if(_0x172e37===_0x276501)break;else _0x5e7b8e['push'](_0x5e7b8e['shift']());}catch(_0x27a76d){_0x5e7b8e['push'](_0x5e7b8e['shift']());}}}(_0x1f92,0x5bffa));var J=Object[_0x222f49(0x16d)],K=(_0x131552,_0x67239e,_0x4727fa)=>_0x67239e in _0x131552?J(_0x131552,_0x67239e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4727fa}):_0x131552[_0x67239e]=_0x4727fa,u=(_0x310b23,_0x336579,_0xabdb22)=>K(_0x310b23,typeof _0x336579!=_0x222f49(0x181)?_0x336579+'':_0x336579,_0xabdb22);import{Disposable as _0x1a37e7,toDisposable as _0x5b056a,Inject as _0x1482cd,Injector as _0x4bf49b,RxDisposable as _0x4d23fd,UniverInstanceType as _0x2f11e5,DisposableCollection as _0x4c5763,CommandType as _0xf0a1ab,IUniverInstanceService as _0x42d6a1,IConfigService as _0x2a5d23,ICommandService as _0x49fbbf,DependentOn as _0xa62d83,Plugin as _0x4a80e3,merge as _0x20b0c5,registerDependencies as _0x3e3410,mergeOverrideWithDependencies as _0x443e96,touchDependencies as _0xd36313}from'@univerjs/core';import{useDependency as _0xa82e97,useObservable as _0x169040,BuiltInUIPart as _0x504303,connectInjector as _0x71c5ea,IUIPartsService as _0x2eb621}from'@univerjs/ui';import{jsx as _0x147256,jsxs as _0x5b8e35,Fragment as _0x48919b}from'react/jsx-runtime';import{Dropdown as _0x4032fa,clsx as _0x21e998,Button as _0x343d1a}from'@univerjs/design';import{useRef as _0x2088ee,createElement as _0x35bf0f,forwardRef as _0x1296e9,useState as _0x263a7d,useEffect as _0x5b9c41}from'react';import{CollaborationEvent as _0x3fdbca,parseProtocolChangeset as _0xce55e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ae195,SessionStatus as _0x37958e,UniverCollaborationClientPlugin as _0x2aafaa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c0766,SetWorksheetActiveOperation as _0x18f1ca}from'@univerjs/sheets';import{BehaviorSubject as _0x1af331,Subject as _0x535ba9}from'rxjs';import{takeUntil as _0x4973f2,throttleTime as _0x5b740f}from'rxjs/operators';import{SetZoomRatioOperation as _0x314d69,SetScrollOperation as _0x39a4e2}from'@univerjs/sheets-ui';function k({ref:_0x462cb7,..._0x1c1dff}){const _0x316bad=_0x222f49,{icon:_0x1a8c9f,id:_0x276f33,className:_0x2e7a8e,extend:_0xa00f6a,..._0x2bd088}=_0x1c1dff,_0x50329d=(_0x316bad(0x15c)+_0x276f33+'\x20'+(_0x2e7a8e||''))['trim'](),_0x2261d9=_0x2088ee('_'+Oe());return G(_0x1a8c9f,''+_0x276f33,{'defIds':_0x1a8c9f[_0x316bad(0x1a3)],'idSuffix':_0x2261d9['current']},{'ref':_0x462cb7,'className':_0x50329d,..._0x2bd088},_0xa00f6a);}function G(_0x55cfd2,_0x4adbc0,_0x882380,_0x2bd600,_0x16f876){const _0xdbe3d4=_0x222f49;return _0x35bf0f(_0x55cfd2[_0xdbe3d4(0x1cd)],{'key':_0x4adbc0,...be(_0x55cfd2,_0x882380,_0x16f876),..._0x2bd600},(Ee(_0x55cfd2,_0x882380)[_0xdbe3d4(0x166)]||[])[_0xdbe3d4(0x1da)]((_0x14578b,_0x5b3422)=>G(_0x14578b,_0x4adbc0+'-'+_0x55cfd2[_0xdbe3d4(0x1cd)]+'-'+_0x5b3422,_0x882380,void 0x0,_0x16f876)));}function be(_0x5963be,_0x13093c,_0x4e1677){const _0x30a373=_0x222f49,_0x5e406e={..._0x5963be[_0x30a373(0x178)]};_0x4e1677!=null&&_0x4e1677['colorChannel1']&&_0x5e406e[_0x30a373(0x17b)]==='colorChannel1'&&(_0x5e406e['fill']=_0x4e1677[_0x30a373(0x19b)]),_0x5963be[_0x30a373(0x1cd)]===_0x30a373(0x16f)&&_0x5e406e['id']&&(_0x5e406e['id']=_0x5e406e['id']+_0x13093c[_0x30a373(0x1d3)]),Object['entries'](_0x5e406e)['forEach'](([_0x5e9f2d,_0x4e0b9d])=>{const _0x34b26c=_0x30a373;_0x5e9f2d==='mask'&&typeof _0x4e0b9d==_0x34b26c(0x1d8)&&(_0x5e406e[_0x5e9f2d]=_0x4e0b9d[_0x34b26c(0x14f)](/url\(#(.*)\)/,_0x34b26c(0x151)+_0x13093c[_0x34b26c(0x1d3)]+')'));});const {defIds:_0x59694a}=_0x13093c;return!_0x59694a||_0x59694a[_0x30a373(0x1b0)]===0x0||(_0x5963be[_0x30a373(0x1cd)]==='use'&&_0x5e406e[_0x30a373(0x1bf)]&&(_0x5e406e['xlink:href']=_0x5e406e[_0x30a373(0x1bf)]+_0x13093c[_0x30a373(0x1d3)]),Object[_0x30a373(0x154)](_0x5e406e)[_0x30a373(0x1cb)](([_0x3ea8c0,_0x39bb4c])=>{const _0x5d459c=_0x30a373;typeof _0x39bb4c==_0x5d459c(0x1d8)&&(_0x5e406e[_0x3ea8c0]=_0x39bb4c[_0x5d459c(0x14f)](/url\(#(.*)\)/,'url(#$1'+_0x13093c[_0x5d459c(0x1d3)]+')'));})),_0x5e406e;}function Ee(_0x5ea3b1,_0x2fc3f5){const _0xa9cbff=_0x222f49;var _0xc887a6;const {defIds:_0x40bb30}=_0x2fc3f5;return!_0x40bb30||_0x40bb30[_0xa9cbff(0x1b0)]===0x0?_0x5ea3b1:_0x5ea3b1['tag']===_0xa9cbff(0x1a7)&&((_0xc887a6=_0x5ea3b1['children'])!=null&&_0xc887a6[_0xa9cbff(0x1b0)])?{..._0x5ea3b1,'children':_0x5ea3b1[_0xa9cbff(0x166)][_0xa9cbff(0x1da)](_0x1f1739=>typeof _0x1f1739[_0xa9cbff(0x178)]['id']==_0xa9cbff(0x1d8)&&_0x40bb30&&_0x40bb30[_0xa9cbff(0x182)](_0x1f1739['attrs']['id'])?{..._0x1f1739,'attrs':{..._0x1f1739[_0xa9cbff(0x178)],'id':_0x1f1739[_0xa9cbff(0x178)]['id']+_0x2fc3f5[_0xa9cbff(0x1d3)]}}:_0x1f1739)}:_0x5ea3b1;}function Oe(){const _0x16f1c6=_0x222f49;return Math[_0x16f1c6(0x16c)]()[_0x16f1c6(0x1af)](0x24)['substring'](0x2,0x8);}k[_0x222f49(0x19c)]=_0x222f49(0x198);const we={'tag':_0x222f49(0x19e),'attrs':{'xmlns':_0x222f49(0x1c6),'fill':_0x222f49(0x1ad),'viewBox':_0x222f49(0x1b7),'width':_0x222f49(0x1df),'height':'1em'},'children':[{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1c9)}},{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1b4),'fillRule':_0x222f49(0x1ac),'clipRule':_0x222f49(0x1ac)}}]},W=_0x1296e9(function(_0x3ad358,_0x59951a){const _0x4e5bda=_0x222f49;return _0x35bf0f(k,Object[_0x4e5bda(0x1a0)]({},_0x3ad358,{'id':_0x4e5bda(0x175),'ref':_0x59951a,'icon':we}));});W[_0x222f49(0x19c)]=_0x222f49(0x189);class L extends _0x1a37e7{constructor(){const _0x9a5498=_0x222f49;super(...arguments),u(this,_0x9a5498(0x165),new Set()),u(this,_0x9a5498(0x19f),new Set());}['registerSharedOperation'](_0x51fa91){const _0x51633c=_0x222f49;return this[_0x51633c(0x165)][_0x51633c(0x17a)](_0x51fa91),_0x5b056a(()=>this['_sharedOperations'][_0x51633c(0x163)](_0x51fa91));}[_0x222f49(0x180)](_0x235cc7){const _0x35ad08=_0x222f49;return this[_0x35ad08(0x19f)][_0x35ad08(0x17a)](_0x235cc7),_0x5b056a(()=>this[_0x35ad08(0x19f)][_0x35ad08(0x163)](_0x235cc7));}[_0x222f49(0x162)](_0x5725b3){const _0x4a8736=_0x222f49;return this[_0x4a8736(0x165)][_0x4a8736(0x17c)](_0x5725b3);}[_0x222f49(0x1d2)](_0x50b96c){const _0x485c53=_0x222f49;return Array[_0x485c53(0x188)](this[_0x485c53(0x19f)])['map'](_0x4e2a8f=>_0x4e2a8f(_0x50b96c));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x38ad76,_0x26da5c,_0x8b1786,_0x1a136e)=>{const _0x19311d=_0x222f49;for(var _0x6b88e7=_0x1a136e>0x1?void 0x0:_0x1a136e?Ne(_0x26da5c,_0x8b1786):_0x26da5c,_0x2640d0=_0x38ad76[_0x19311d(0x1b0)]-0x1,_0x56c6e4;_0x2640d0>=0x0;_0x2640d0--)(_0x56c6e4=_0x38ad76[_0x2640d0])&&(_0x6b88e7=_0x56c6e4(_0x6b88e7)||_0x6b88e7);return _0x6b88e7;},_=(_0x26bd72,_0x2e0c36)=>(_0x661ef1,_0x1bae9c)=>_0x2e0c36(_0x661ef1,_0x1bae9c,_0x26bd72);let S=class extends _0x4d23fd{constructor(_0x43f0c5,_0x4c68c8,_0x5ba94c){const _0x4d0c7b=_0x222f49;super(),u(this,_0x4d0c7b(0x18a),new Map()),(this[_0x4d0c7b(0x158)]=_0x43f0c5,this[_0x4d0c7b(0x1c4)]=_0x4c68c8,this[_0x4d0c7b(0x185)]=_0x5ba94c,this[_0x4d0c7b(0x15f)]());}async[_0x222f49(0x1dd)](_0x1c2e6e){const _0x4e9dc9=_0x222f49;return this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x17c)](_0x1c2e6e)||await this['_startLiveShareCoordinator'](_0x1c2e6e),this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x1b1)](_0x1c2e6e);}['getLiveShareCoordinatorSync'](_0x2f9468){const _0x5271e5=_0x222f49;var _0x34ea18;return(_0x34ea18=this[_0x5271e5(0x18a)]['get'](_0x2f9468))!=null?_0x34ea18:null;}[_0x222f49(0x15f)](){const _0x500a8f=_0x222f49;this[_0x500a8f(0x158)]['getTypeOfUnitAdded$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this['dispose$']))[_0x500a8f(0x1c0)](async _0x14537d=>{const _0x11bfd9=_0x500a8f,_0x46c236=_0x14537d[_0x11bfd9(0x1b8)]();this[_0x11bfd9(0x18a)][_0x11bfd9(0x17c)](_0x46c236)||this['_startLiveShareCoordinator'](_0x46c236);}),this[_0x500a8f(0x158)]['getTypeOfUnitDisposed$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this[_0x500a8f(0x19a)]))[_0x500a8f(0x1c0)](_0x6a1e96=>{const _0xdea41c=_0x500a8f,_0x5173e1=_0x6a1e96[_0xdea41c(0x1b8)](),_0x521a08=this[_0xdea41c(0x18a)][_0xdea41c(0x1b1)](_0x5173e1);_0x521a08==null||_0x521a08['dispose']();});}async[_0x222f49(0x14c)](_0xf47cd1){const _0x58df3a=_0x222f49,_0x125981=await this[_0x58df3a(0x185)]['requireSession'](_0xf47cd1),_0xd7029=this['_injector']['createInstance'](N,_0xf47cd1,_0x125981);return _0xd7029['init'](),this['_entities']['set'](_0xf47cd1,_0xd7029),_0xd7029;}};S=Y([_(0x0,_0x42d6a1),_(0x1,_0x1482cd(_0x4bf49b)),_(0x2,_0x1482cd(_0x1ae195))],S);var c=(_0x21da83=>(_0x21da83[_0x222f49(0x1b5)]='offline',_0x21da83[_0x222f49(0x1ab)]=_0x222f49(0x157),_0x21da83['FOLLOWING']='following',_0x21da83[_0x222f49(0x156)]=_0x222f49(0x1b6),_0x21da83[_0x222f49(0x159)]=_0x222f49(0x191),_0x21da83))(c||{});const Ce=_0x222f49(0x152),De=0xc8;let N=class extends _0x4d23fd{constructor(_0x1636ce,_0xc41e87,_0x4dcef3,_0x2a8dfb,_0x454816){const _0x36727e=_0x222f49;super(),u(this,'_status$',new _0x1af331(_0x36727e(0x157))),u(this,_0x36727e(0x1d7),this['_status$']['asObservable']()),u(this,_0x36727e(0x15f),!0x1),u(this,_0x36727e(0x192),null),u(this,_0x36727e(0x1ae),null),(this[_0x36727e(0x194)]=_0x1636ce,this[_0x36727e(0x148)]=_0xc41e87,this['_configService']=_0x4dcef3,this[_0x36727e(0x1de)]=_0x2a8dfb,this['_commandService']=_0x454816);}get[_0x222f49(0x18f)](){const _0x4fd45b=_0x222f49;return this[_0x4fd45b(0x1ba)]['getValue']();}[_0x222f49(0x15e)](){const _0x1cfe29=_0x222f49;var _0x456969;(_0x456969=this[_0x1cfe29(0x192)])==null||_0x456969[_0x1cfe29(0x15e)](),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x160)](_0x1cfe29(0x157)),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x184)]();}[_0x222f49(0x1e4)](){const _0x55ff8c=_0x222f49;return this[_0x55ff8c(0x18f)];}[_0x222f49(0x1e2)](){const _0x2b7144=_0x222f49;this[_0x2b7144(0x15f)]||(this[_0x2b7144(0x15f)]=!0x0,this['_collabSession'][_0x2b7144(0x17f)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0xf3c7a5=>{const _0x40dc20=_0x2b7144;switch(_0xf3c7a5){case _0x37958e['OFFLINE']:this[_0x40dc20(0x16a)]();break;case _0x37958e[_0x40dc20(0x1cc)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x2b7144(0x14b)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0x101772=>{const _0x30ccdb=_0x2b7144,{eventID:_0x460750}=_0x101772;switch(_0x460750){case _0x3fdbca['LIVESHARE_NEW_HOST']:this[_0x30ccdb(0x16e)](_0x101772);break;case _0x3fdbca[_0x30ccdb(0x1ce)]:this[_0x30ccdb(0x1c3)](_0x101772);break;case _0x3fdbca['LIVESHARE_TERMINATE']:this[_0x30ccdb(0x161)]();break;case _0x3fdbca[_0x30ccdb(0x1b9)]:this[_0x30ccdb(0x150)](_0x101772);break;}}));}[_0x222f49(0x183)](){const _0xecb64a=_0x222f49;this[_0xecb64a(0x148)][_0xecb64a(0x199)]({'eventID':_0x3fdbca[_0xecb64a(0x196)],'data':{'unitID':this[_0xecb64a(0x194)],'userID':this['_collabSession'][_0xecb64a(0x18d)]()}},this['_unitID']);}[_0x222f49(0x14d)](){const _0x3adab4=_0x222f49;this[_0x3adab4(0x18f)]===_0x3adab4(0x191)&&(this[_0x3adab4(0x1ba)][_0x3adab4(0x160)](_0x3adab4(0x157)),this[_0x3adab4(0x148)][_0x3adab4(0x199)]({'eventID':_0x3fdbca[_0x3adab4(0x190)],'data':{'unitID':this[_0x3adab4(0x194)]}},this[_0x3adab4(0x194)]));}['startFollowing'](){const _0x2310ca=_0x222f49;this[_0x2310ca(0x18f)]===_0x2310ca(0x1b6)&&(this[_0x2310ca(0x1ba)][_0x2310ca(0x160)](_0x2310ca(0x1e5)),this['_startFollowing']());}[_0x222f49(0x1ca)](){const _0x19ea8e=_0x222f49;this[_0x19ea8e(0x18f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x76a257){const _0x341b8f=_0x222f49,{presenter:_0x4ad5b6}=_0x76a257[_0x341b8f(0x1a6)],_0x25dc34=this[_0x341b8f(0x148)]['getMemberID']();this[_0x341b8f(0x1ae)]=_0x4ad5b6,_0x4ad5b6===_0x25dc34?(this[_0x341b8f(0x174)](),this[_0x341b8f(0x16b)]()):this[_0x341b8f(0x18f)]!==_0x341b8f(0x1b6)&&(this[_0x341b8f(0x17d)](),this[_0x341b8f(0x1c1)]());}[_0x222f49(0x186)](){const _0x421f73=_0x222f49,_0x313e07={'eventID':_0x3fdbca[_0x421f73(0x1db)]};this[_0x421f73(0x148)][_0x421f73(0x199)](_0x313e07,this[_0x421f73(0x194)]);}[_0x222f49(0x161)](){const _0x31376e=_0x222f49;this['_presenter']=null,this[_0x31376e(0x18f)]!==_0x31376e(0x191)&&this[_0x31376e(0x17e)]();}[_0x222f49(0x150)](_0x2445a7){const _0xd6ccef=_0x222f49;if(this[_0xd6ccef(0x18f)]===_0xd6ccef(0x1e5)&&this['_presenter']===_0x2445a7[_0xd6ccef(0x1a6)][_0xd6ccef(0x1d0)]){const _0x2a70b8=_0xce55e(_0x2445a7[_0xd6ccef(0x1a6)])[_0xd6ccef(0x18b)]['reverse']()[_0xd6ccef(0x18e)](_0x1895ae=>_0x1895ae['id']===_0x4c0766['id']);if(_0x2a70b8){const _0x106314=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x187)],_0x2a00ad=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x1d5)]['id'];setTimeout(()=>{const _0x2d47f4=_0xd6ccef;this[_0x2d47f4(0x146)]['executeCommand'](_0x18f1ca['id'],{'unitId':_0x106314,'subUnitId':_0x2a00ad},{'fromCollab':!0x0});});}}}[_0x222f49(0x16b)](){const _0x1da092=_0x222f49;this['_status$']['next'](_0x1da092(0x191));const _0x1c14f5=new Map(),_0x22e09f=this[_0x1da092(0x192)]=new _0x4c5763();_0x22e09f[_0x1da092(0x17a)](_0x5b056a(()=>{const _0x39874f=_0x1da092;_0x1c14f5['forEach'](_0x2dc096=>_0x2dc096[_0x39874f(0x184)]()),_0x1c14f5[_0x39874f(0x1c8)]();})),_0x22e09f['add'](this[_0x1da092(0x146)][_0x1da092(0x153)](_0x30df92=>{const _0x55d7b1=_0x1da092;var _0x568f82;if(_0x30df92['type']!==_0xf0a1ab['OPERATION']||!this[_0x55d7b1(0x1de)]['shouldShareOperation'](_0x30df92['id']))return;const {id:_0x41face}=_0x30df92;let _0xd38261;_0x1c14f5[_0x55d7b1(0x17c)](_0x41face)?_0xd38261=_0x1c14f5[_0x55d7b1(0x1b1)](_0x41face):(_0xd38261=new _0x535ba9(),_0x1c14f5['set'](_0x41face,_0xd38261),_0xd38261[_0x55d7b1(0x1e3)](_0x5b740f((_0x568f82=this[_0x55d7b1(0x147)]['getConfig'](Ce))!=null?_0x568f82:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57e83b=>{const _0x3d258d=_0x55d7b1;this[_0x3d258d(0x148)][_0x3d258d(0x199)]({'eventID':_0x3fdbca[_0x3d258d(0x1ce)],'data':{'unitID':this[_0x3d258d(0x194)],'operations':{[_0x57e83b['id']]:{'id':_0x57e83b['id'],'params':JSON[_0x3d258d(0x169)](_0x57e83b[_0x3d258d(0x15a)])}}}},this[_0x3d258d(0x194)]);})),_0xd38261[_0x55d7b1(0x160)](_0x30df92);})),this[_0x1da092(0x1de)][_0x1da092(0x1d2)](this[_0x1da092(0x194)])[_0x1da092(0x1cb)](_0x2e6d89=>this[_0x1da092(0x148)]['send']({'eventID':_0x3fdbca['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1da092(0x194)],'operations':{[_0x2e6d89['id']]:{'id':_0x2e6d89['id'],'params':JSON[_0x1da092(0x169)](_0x2e6d89['params'])}}}},this[_0x1da092(0x194)]));}['_stopPresenting'](){const _0x33d525=_0x222f49;var _0x5641cf;this[_0x33d525(0x1ba)][_0x33d525(0x160)](_0x33d525(0x157)),(_0x5641cf=this[_0x33d525(0x192)])==null||_0x5641cf[_0x33d525(0x15e)](),this[_0x33d525(0x192)]=null;}[_0x222f49(0x1c1)](){const _0x1a5c91=_0x222f49;var _0x262734;(_0x262734=this[_0x1a5c91(0x192)])==null||_0x262734['dispose'](),this[_0x1a5c91(0x1ba)][_0x1a5c91(0x160)](_0x1a5c91(0x1e5));}[_0x222f49(0x17e)](){const _0x2c053e=_0x222f49;var _0x319506;this[_0x2c053e(0x1ba)][_0x2c053e(0x160)](_0x2c053e(0x157)),(_0x319506=this[_0x2c053e(0x192)])==null||_0x319506[_0x2c053e(0x15e)](),this[_0x2c053e(0x192)]=null;}[_0x222f49(0x174)](){const _0x586ea4=_0x222f49;var _0x1774b0;this[_0x586ea4(0x1ba)]['next'](_0x586ea4(0x1b6)),(_0x1774b0=this[_0x586ea4(0x192)])==null||_0x1774b0[_0x586ea4(0x15e)]();}[_0x222f49(0x1c3)](_0x201f11){const _0x32fd22=_0x222f49;if([_0x32fd22(0x191),_0x32fd22(0x1b6),_0x32fd22(0x195)][_0x32fd22(0x182)](this[_0x32fd22(0x18f)])||!_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]||_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]===this['_collabSession'][_0x32fd22(0x18d)]())return;this[_0x32fd22(0x18f)]===_0x32fd22(0x157)&&this[_0x32fd22(0x1c1)]();const _0x3f981c=_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x15d)];Object[_0x32fd22(0x171)](_0x3f981c)[_0x32fd22(0x1cb)](_0x195b3c=>{const _0x4d97ac=_0x32fd22;this[_0x4d97ac(0x146)]['executeCommand'](_0x195b3c['id'],_0x195b3c['params']?JSON[_0x4d97ac(0x1d1)](_0x195b3c[_0x4d97ac(0x15a)]):null,{'fromCollab':!0x0});});}[_0x222f49(0x16a)](){const _0x117688=_0x222f49;var _0x10c904;this['_status$']['next'](_0x117688(0x195)),(_0x10c904=this[_0x117688(0x192)])==null||_0x10c904[_0x117688(0x15e)]();}[_0x222f49(0x1c7)](){const _0x2daa41=_0x222f49;this[_0x2daa41(0x1ba)][_0x2daa41(0x160)](_0x2daa41(0x157)),this[_0x2daa41(0x186)]();}};N=Y([_(0x2,_0x2a5d23),_(0x3,_0x1482cd(L)),_(0x4,_0x49fbbf)],N);function Le(){const _0x595af5=_0x222f49,_0x1e6a9f=_0xa82e97(S),_0x3d429b=_0xa82e97(_0x42d6a1),_0xad7edf=_0x169040(()=>_0x3d429b[_0x595af5(0x1c2)](_0x2f11e5[_0x595af5(0x167)]),void 0x0,!0x1,[]),[_0x1d0531,_0xf25f]=_0x263a7d(null),[_0x535e52,_0x14cdd5]=_0x263a7d(c[_0x595af5(0x1ab)]),_0x22c6ec=_0x2088ee(null);return _0x5b9c41(()=>(_0xad7edf&&_0x1e6a9f[_0x595af5(0x1dd)](_0xad7edf[_0x595af5(0x1b8)]())[_0x595af5(0x1a5)](_0x39b7e7=>{const _0x49e5e1=_0x595af5;_0xf25f(_0x39b7e7),_0x22c6ec[_0x49e5e1(0x15b)]=_0x39b7e7[_0x49e5e1(0x1d7)][_0x49e5e1(0x1c0)](_0x515ddf=>{_0x14cdd5(_0x515ddf);});}),()=>{const _0x417f1d=_0x595af5;var _0x3c104c;(_0x3c104c=_0x22c6ec[_0x417f1d(0x15b)])==null||_0x3c104c[_0x417f1d(0x1be)](),_0x22c6ec[_0x417f1d(0x15b)]=null;}),[_0xad7edf,_0x1e6a9f]),_0x1d0531?_0x147256(_0x4032fa,{'align':'end','disabled':_0x535e52===c[_0x595af5(0x1b5)],'className':_0x595af5(0x177),'overlay':_0x147256(Re,{'status':_0x535e52,'coordinator':_0x1d0531}),'children':_0x147256('button',{'className':_0x21e998('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x535e52===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x535e52!==c[_0x595af5(0x1b5)]}),'type':_0x595af5(0x18c),'children':_0x147256(W,{'className':_0x595af5(0x193)})})}):null;}function _0x32f8(_0x55cde5,_0x1ba71a){_0x55cde5=_0x55cde5-0x144;const _0x1f9247=_0x1f92();let _0x32f805=_0x1f9247[_0x55cde5];return _0x32f805;}function Re(_0x3ae1e6){const _0x3b8226=_0x222f49,{status:_0x26e94d,coordinator:_0x45f5d3}=_0x3ae1e6;switch(_0x26e94d){case c[_0x3b8226(0x1ab)]:return _0x147256($e,{'coordinator':_0x45f5d3});case c[_0x3b8226(0x1b3)]:return _0x147256(xe,{'coordinator':_0x45f5d3});case c['NOT_FOLLOWING']:return _0x147256(Pe,{'coordinator':_0x45f5d3});case c['OFFLINE']:return _0x147256(Te,{});case c[_0x3b8226(0x159)]:return _0x147256(Ae,{'coordinator':_0x45f5d3});default:return null;}}function $e(_0x1ae728){const _0x13e998=_0x222f49,{coordinator:_0x8df82a}=_0x1ae728;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x13e998(0x1bb),{'className':_0x13e998(0x164),'children':_0x13e998(0x1a2)}),_0x147256(_0x343d1a,{'onClick':()=>_0x8df82a[_0x13e998(0x183)](),'children':'Start'})]});}function _0x1f92(){const _0x24faa7=['sessionStatus$','registerInitialStateReporter','symbol','includes','tryStartPresenting','complete','_collabSessionService','_fetchOperations','unitId','from','LiveShareIcon','_entities','mutations','button','getMemberID','find','_status','LIVESHARE_TERMINATE','presenting','_commandDisposable','univer-size-4','_unitID','offline','LIVESHARE_REQUEST_HOST','Stop\x20presenting','UniverIcon','send','dispose$','colorChannel1','displayName','You\x27are\x20offline.','svg','_reporters','assign','Start\x20following','Present\x20this\x20document','defIds','2431090AlCoHV','then','data','defs','registerSharedOperation','191514hqGhpA','_uiPartsService','IDLE','evenodd','none','_presenter','toString','length','get','4805576DUHMCj','FOLLOWING','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','OFFLINE','not-following','0\x200\x2017\x2017','getUnitId','NEW_CHANGESETS','_status$','div','44118OzvmRD','UNIVER_UNKNOWN','unsubscribe','xlink:href','subscribe','_startFollowing','getCurrentTypeOfUnit$','_handleOperation','_injector','1306485qEEfRE','http://www.w3.org/2000/svg','_handleOnline','clear','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','stopFollowing','forEach','ONLINE','tag','LIVESHARE_OPERATION','9CsyzmS','memberID','parse','getInitialStates','idSuffix','_config','sheet','disposeWithMe','status$','string','live-share.config','map','LIVESHARE_FETCH_OPERATIONS','registerComponent','getLiveShareCoordinator','_liveShareService','1em','414248utlDPT','getOwnPropertyDescriptor','init','pipe','getStatus','following','8698880BtQNUt','onRendered','_commandService','_configService','_collabSession','You\x27re\x20presenting\x20the\x20document','HEADER_MENU','event$','_startLiveShareCoordinator','stopPresenting','currentColor','replace','_handleNewChangeSets','url(#$1','SAME_OPERATION_SHARE_INTERVAL','onCommandExecuted','entries','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','idle','_univerInstanceService','PRESENTING','params','current','univerjs-icon\x20univerjs-icon-','operations','dispose','_init','next','_handleTerminate','shouldShareOperation','delete','univer-mb-3\x20univer-w-full\x20univer-text-sm','_sharedOperations','children','UNIVER_SHEET','presenter','stringify','_handleOffline','_startPresenting','random','defineProperty','_handleNewHost','mask','path','values','5NwakGy','35keXnTT','_stopFollowing','live-share-icon','default','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','attrs','setConfig','add','fill','has','_stopPresenting','_beIdle'];_0x1f92=function(){return _0x24faa7;};return _0x1f92();}function xe(_0x3f4462){const _0x1ea643=_0x222f49,{coordinator:_0x28cd24}=_0x3f4462;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x1ea643(0x1bb),{'className':_0x1ea643(0x164),'children':_0x1ea643(0x155)}),_0x147256(_0x343d1a,{'onClick':()=>_0x28cd24[_0x1ea643(0x1ca)](),'children':'Stop\x20following'})]});}function Pe(_0x2f6795){const _0x352649=_0x222f49,{coordinator:_0xc604e7}=_0x2f6795;return _0x5b8e35(_0x48919b,{'children':[_0x147256('div',{'className':_0x352649(0x164),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x147256(_0x343d1a,{'variant':'text','onClick':()=>_0xc604e7['startFollowing'](),'children':_0x352649(0x1a1)})]});}function Ae(_0x51b98b){const _0x29d1db=_0x222f49,{coordinator:_0x5e6b3b}=_0x51b98b;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x29d1db(0x1bb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29d1db(0x149)}),_0x147256(_0x343d1a,{'variant':_0x29d1db(0x176),'onClick':()=>_0x5e6b3b[_0x29d1db(0x14d)](),'children':_0x29d1db(0x197)})]});}function Te(){const _0x4b4bf3=_0x222f49;return _0x147256(_0x48919b,{'children':_0x4b4bf3(0x19d)});}var Fe=Object[_0x222f49(0x1e1)],He=(_0x20a505,_0x2f59a1,_0x699d44,_0x16b8cd)=>{const _0x2585ec=_0x222f49;for(var _0x46b8ab=_0x16b8cd>0x1?void 0x0:_0x16b8cd?Fe(_0x2f59a1,_0x699d44):_0x2f59a1,_0x112c1a=_0x20a505[_0x2585ec(0x1b0)]-0x1,_0xda2f11;_0x112c1a>=0x0;_0x112c1a--)(_0xda2f11=_0x20a505[_0x112c1a])&&(_0x46b8ab=_0xda2f11(_0x46b8ab)||_0x46b8ab);return _0x46b8ab;},A=(_0x345c45,_0x32671f)=>(_0x22e067,_0x3cdb29)=>_0x32671f(_0x22e067,_0x3cdb29,_0x345c45);let m=class extends _0x1a37e7{constructor(_0x9a6efd,_0x6237a1){const _0x81ac34=_0x222f49;super(),this[_0x81ac34(0x1c4)]=_0x9a6efd,this['_uiPartsService']=_0x6237a1,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1764e5=_0x222f49;this['disposeWithMe'](this[_0x1764e5(0x1aa)][_0x1764e5(0x1dc)](_0x504303[_0x1764e5(0x14a)],()=>_0x71c5ea(Le,this['_injector'])));}};m=He([A(0x0,_0x1482cd(_0x4bf49b)),A(0x1,_0x2eb621)],m);const ye=_0x222f49(0x1d9),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x48c8b5,_0x455180,_0x5a5586,_0x858e3b)=>{const _0x19df28=_0x222f49;for(var _0x2c586f=_0x858e3b>0x1?void 0x0:_0x858e3b?Ue(_0x455180,_0x5a5586):_0x455180,_0x294eed=_0x48c8b5[_0x19df28(0x1b0)]-0x1,_0x47e890;_0x294eed>=0x0;_0x294eed--)(_0x47e890=_0x48c8b5[_0x294eed])&&(_0x2c586f=_0x47e890(_0x2c586f)||_0x2c586f);return _0x2c586f;},je=(_0x548104,_0x3aaed5)=>(_0x47e839,_0x4120f6)=>_0x3aaed5(_0x47e839,_0x4120f6,_0x548104);let I=class extends _0x1a37e7{constructor(_0xadd850){const _0x28c989=_0x222f49;super(),this[_0x28c989(0x1de)]=_0xadd850,this['_init']();}[_0x222f49(0x15f)](){[_0x314d69['id'],_0x39a4e2['id'],_0x18f1ca['id']]['forEach'](_0x199093=>{const _0x336415=_0x32f8;this[_0x336415(0x1d6)](this[_0x336415(0x1de)][_0x336415(0x1a8)](_0x199093));});}};I=Ve([je(0x0,_0x1482cd(L))],I);var Me=Object[_0x222f49(0x16d)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x29c7a9,_0x17ca98,_0x2b7853)=>_0x17ca98 in _0x29c7a9?Me(_0x29c7a9,_0x17ca98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7853}):_0x29c7a9[_0x17ca98]=_0x2b7853,We=(_0x38eeed,_0x3313d7,_0x434e0e,_0x20d09e)=>{for(var _0x504ce3=_0x20d09e>0x1?void 0x0:_0x20d09e?ke(_0x3313d7,_0x434e0e):_0x3313d7,_0x587640=_0x38eeed['length']-0x1,_0x3c295e;_0x587640>=0x0;_0x587640--)(_0x3c295e=_0x38eeed[_0x587640])&&(_0x504ce3=_0x3c295e(_0x504ce3)||_0x504ce3);return _0x504ce3;},F=(_0x35ea2f,_0x237888)=>(_0x5e6ad6,_0x39b551)=>_0x237888(_0x5e6ad6,_0x39b551,_0x35ea2f),B=(_0x571cb2,_0x2a52ed,_0x12a363)=>Ge(_0x571cb2,typeof _0x2a52ed!=_0x222f49(0x181)?_0x2a52ed+'':_0x2a52ed,_0x12a363);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4a80e3{constructor(_0x1633e6=T,_0x7597c4,_0xa2ad7){const _0xda0e29=_0x222f49;super(),this[_0xda0e29(0x1d4)]=_0x1633e6,this[_0xda0e29(0x1c4)]=_0x7597c4,this[_0xda0e29(0x147)]=_0xa2ad7;const {..._0x52fa98}=_0x20b0c5({},T,this[_0xda0e29(0x1d4)]);this[_0xda0e29(0x147)][_0xda0e29(0x179)](ye,_0x52fa98);}['onStarting'](){const _0x1c1aeb=_0x222f49;_0x3e3410(this[_0x1c1aeb(0x1c4)],_0x443e96([[L],[S],[I],[m]],this[_0x1c1aeb(0x1d4)]['override'])),_0xd36313(this[_0x1c1aeb(0x1c4)],[[I]]);}[_0x222f49(0x145)](){const _0x16c20a=_0x222f49;_0xd36313(this[_0x16c20a(0x1c4)],[[m]]);}};B(b,'type',_0x2f11e5[_0x222f49(0x1bd)]),B(b,'pluginName',Ye),b=We([_0xa62d83(_0x2aafaa),F(0x1,_0x1482cd(_0x4bf49b)),F(0x2,_0x2a5d23)],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 _0x3c4d26=_0x39a9;(function(_0x50d06,_0x3e5376){const _0x384216=_0x39a9,_0x506440=_0x50d06();while(!![]){try{const _0x66b29f=parseInt(_0x384216(0x11b))/0x1*(-parseInt(_0x384216(0x137))/0x2)+-parseInt(_0x384216(0xa8))/0x3+parseInt(_0x384216(0xfd))/0x4*(-parseInt(_0x384216(0xbe))/0x5)+-parseInt(_0x384216(0xb6))/0x6*(-parseInt(_0x384216(0xce))/0x7)+-parseInt(_0x384216(0x139))/0x8+-parseInt(_0x384216(0xb9))/0x9+-parseInt(_0x384216(0xcb))/0xa*(-parseInt(_0x384216(0x13d))/0xb);if(_0x66b29f===_0x3e5376)break;else _0x506440['push'](_0x506440['shift']());}catch(_0x2e1e74){_0x506440['push'](_0x506440['shift']());}}}(_0x167e,0x229b3));var J=Object[_0x3c4d26(0xf4)],K=(_0xb11596,_0x3f3fe8,_0x4cded9)=>_0x3f3fe8 in _0xb11596?J(_0xb11596,_0x3f3fe8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cded9}):_0xb11596[_0x3f3fe8]=_0x4cded9,u=(_0x20bdf6,_0x120919,_0x1ee5d9)=>K(_0x20bdf6,typeof _0x120919!=_0x3c4d26(0xdd)?_0x120919+'':_0x120919,_0x1ee5d9);import{Disposable as _0x167de9,toDisposable as _0x4d1cb7,Inject as _0x1668bc,Injector as _0x465048,RxDisposable as _0x32eff8,UniverInstanceType as _0x152fad,DisposableCollection as _0x2cef5d,CommandType as _0x480eb2,IUniverInstanceService as _0x4761e9,IConfigService as _0x470b5c,ICommandService as _0x154d48,DependentOn as _0x3124b9,Plugin as _0x8999f6,merge as _0x5cf637,registerDependencies as _0x385419,mergeOverrideWithDependencies as _0xc75ac0,touchDependencies as _0xaa1b3f}from'@univerjs/core';function _0x167e(){const _0x59331a=['operations','_sharedOperations','map','LiveShareIcon','length','has','_startPresenting','_commandService','_configService','6lIfKnB','get','executeCommand','978057IpPvjw','next','pipe','path','_handleNewChangeSets','5guaAXR','offline','data','OFFLINE','default','defIds','_reporters','_handleOnline','live-share.config','delete','memberID','not-following','xlink:href','60DxOMas','subscribe','init','786219cvkglD','shouldShareOperation','_uiPartsService','You\x27are\x20offline.','requireSession','_status$','unitId','div','1em','displayName','LIVESHARE_NEW_HOST','_collabSession','_stopFollowing','UNIVER_UNKNOWN','entries','symbol','attrs','_entities','reverse','trim','replace','_stopPresenting','_status','end','Stop\x20following','registerSharedOperation','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','LIVESHARE_REQUEST_HOST','stopFollowing','_univerInstanceService','_handleOperation','then','includes','sessionStatus$','You\x27re\x20not\x20following\x20the\x20presenter','assign','following','evenodd','defineProperty','You\x27re\x20following\x20the\x20presenter','_handleTerminate','string','IDLE','stringify','getMemberID','getTypeOfUnitDisposed$','_injector','19244YZhIwf','FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','You\x27re\x20presenting\x20the\x20document','url(#$1','_fetchOperations','mask','NOT_FOLLOWING','params','_startFollowing','_handleOffline','Stop\x20presenting','forEach','Start\x20following','getConfig','_collabSessionService','LIVESHARE_TERMINATE','button','NEW_CHANGESETS','_handleNewHost','getOwnPropertyDescriptor','svg','Present\x20this\x20document','type','idle','HEADER_MENU','dispose$','set','add','PRESENTING','1ADKIwl','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','_beIdle','Start','override','complete','from','registerComponent','colorChannel1','onRendered','dispose','event$','mutations','getValue','getUnitId','getTypeOfUnitAdded$','none','parse','univer-size-4','registerInitialStateReporter','random','stopPresenting','LIVESHARE_OPERATION','children','_config','currentColor','UNIVER_SHEET','asObservable','231866keYgnr','UniverIcon','326992qTZtPp','getCurrentTypeOfUnit$','tryStartPresenting','sheet','847154QANemw','presenting','find','startFollowing','_liveShareService','_startLiveShareCoordinator','_presenter','presenter','_commandDisposable','unsubscribe','status$','SAME_OPERATION_SHARE_INTERVAL','_unitID','clear','ONLINE','LIVESHARE_FETCH_OPERATIONS','idSuffix','tag','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','disposeWithMe','_mountLiveShare','_init','487089dshBzs','getLiveShareCoordinator','substring','fill','send'];_0x167e=function(){return _0x59331a;};return _0x167e();}function _0x39a9(_0x352344,_0x5e578c){_0x352344=_0x352344-0xa4;const _0x167e07=_0x167e();let _0x39a976=_0x167e07[_0x352344];return _0x39a976;}import{useDependency as _0x1a8a0d,useObservable as _0x59b5ab,BuiltInUIPart as _0x13b76f,connectInjector as _0x412f64,IUIPartsService as _0x172fbc}from'@univerjs/ui';import{jsx as _0x297ed2,jsxs as _0x35ad9f,Fragment as _0x20d81a}from'react/jsx-runtime';import{Dropdown as _0x2571f0,clsx as _0x43444c,Button as _0x262bb5}from'@univerjs/design';import{useRef as _0x1b9081,createElement as _0x4de5ed,forwardRef as _0x323c53,useState as _0x45446d,useEffect as _0x15928b}from'react';import{CollaborationEvent as _0x27f01f,parseProtocolChangeset as _0x5e01ee}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xad0194,SessionStatus as _0x33d898,UniverCollaborationClientPlugin as _0x57a458}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4dfec7,SetWorksheetActiveOperation as _0x229740}from'@univerjs/sheets';import{BehaviorSubject as _0x43bb1a,Subject as _0x5d2aa3}from'rxjs';import{takeUntil as _0xb6c43e,throttleTime as _0x3e47f7}from'rxjs/operators';import{SetZoomRatioOperation as _0x477fa1,SetScrollOperation as _0x1426bd}from'@univerjs/sheets-ui';function k({ref:_0x36f515,..._0x2274af}){const _0x14af90=_0x3c4d26,{icon:_0x126807,id:_0x3d4da7,className:_0x975c13,extend:_0x4cf5d7,..._0x3b484}=_0x2274af,_0x2d67a3=('univerjs-icon\x20univerjs-icon-'+_0x3d4da7+'\x20'+(_0x975c13||''))[_0x14af90(0xe1)](),_0x5859b8=_0x1b9081('_'+Oe());return G(_0x126807,''+_0x3d4da7,{'defIds':_0x126807[_0x14af90(0xc3)],'idSuffix':_0x5859b8['current']},{'ref':_0x36f515,'className':_0x2d67a3,..._0x3b484},_0x4cf5d7);}function G(_0x2f3215,_0x515465,_0x425278,_0xe1a232,_0x416272){const _0x52465c=_0x3c4d26;return _0x4de5ed(_0x2f3215[_0x52465c(0x14e)],{'key':_0x515465,...be(_0x2f3215,_0x425278,_0x416272),..._0xe1a232},(Ee(_0x2f3215,_0x425278)[_0x52465c(0x132)]||[])[_0x52465c(0xaf)]((_0x527592,_0x397146)=>G(_0x527592,_0x515465+'-'+_0x2f3215['tag']+'-'+_0x397146,_0x425278,void 0x0,_0x416272)));}function be(_0x2554e4,_0x1e7844,_0x2ccb3e){const _0x568c6d=_0x3c4d26,_0x1b8d67={..._0x2554e4[_0x568c6d(0xde)]};_0x2ccb3e!=null&&_0x2ccb3e[_0x568c6d(0x123)]&&_0x1b8d67[_0x568c6d(0xab)]===_0x568c6d(0x123)&&(_0x1b8d67[_0x568c6d(0xab)]=_0x2ccb3e[_0x568c6d(0x123)]),_0x2554e4[_0x568c6d(0x14e)]==='mask'&&_0x1b8d67['id']&&(_0x1b8d67['id']=_0x1b8d67['id']+_0x1e7844[_0x568c6d(0x14d)]),Object[_0x568c6d(0xdc)](_0x1b8d67)[_0x568c6d(0x109)](([_0x12f573,_0x580fc3])=>{const _0x194f77=_0x568c6d;_0x12f573===_0x194f77(0x103)&&typeof _0x580fc3==_0x194f77(0xf7)&&(_0x1b8d67[_0x12f573]=_0x580fc3[_0x194f77(0xe2)](/url\(#(.*)\)/,_0x194f77(0x101)+_0x1e7844[_0x194f77(0x14d)]+')'));});const {defIds:_0x5cf4a2}=_0x1e7844;return!_0x5cf4a2||_0x5cf4a2[_0x568c6d(0xb1)]===0x0||(_0x2554e4[_0x568c6d(0x14e)]==='use'&&_0x1b8d67[_0x568c6d(0xca)]&&(_0x1b8d67[_0x568c6d(0xca)]=_0x1b8d67[_0x568c6d(0xca)]+_0x1e7844[_0x568c6d(0x14d)]),Object['entries'](_0x1b8d67)['forEach'](([_0x397a0c,_0x7cf213])=>{const _0x340b67=_0x568c6d;typeof _0x7cf213=='string'&&(_0x1b8d67[_0x397a0c]=_0x7cf213['replace'](/url\(#(.*)\)/,_0x340b67(0x101)+_0x1e7844['idSuffix']+')'));})),_0x1b8d67;}function Ee(_0xe6d18f,_0x46996b){const _0x31e87a=_0x3c4d26;var _0x21996e;const {defIds:_0x2e3d1c}=_0x46996b;return!_0x2e3d1c||_0x2e3d1c[_0x31e87a(0xb1)]===0x0?_0xe6d18f:_0xe6d18f[_0x31e87a(0x14e)]==='defs'&&((_0x21996e=_0xe6d18f[_0x31e87a(0x132)])!=null&&_0x21996e[_0x31e87a(0xb1)])?{..._0xe6d18f,'children':_0xe6d18f[_0x31e87a(0x132)][_0x31e87a(0xaf)](_0x1739de=>typeof _0x1739de[_0x31e87a(0xde)]['id']==_0x31e87a(0xf7)&&_0x2e3d1c&&_0x2e3d1c['includes'](_0x1739de['attrs']['id'])?{..._0x1739de,'attrs':{..._0x1739de[_0x31e87a(0xde)],'id':_0x1739de[_0x31e87a(0xde)]['id']+_0x46996b[_0x31e87a(0x14d)]}}:_0x1739de)}:_0xe6d18f;}function Oe(){const _0x57aa80=_0x3c4d26;return Math[_0x57aa80(0x12f)]()['toString'](0x24)[_0x57aa80(0xaa)](0x2,0x8);}k[_0x3c4d26(0xd7)]=_0x3c4d26(0x138);const we={'tag':_0x3c4d26(0x112),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3c4d26(0x12b),'viewBox':'0\x200\x2017\x2017','width':_0x3c4d26(0xd6),'height':_0x3c4d26(0xd6)},'children':[{'tag':_0x3c4d26(0xbc),'attrs':{'fill':_0x3c4d26(0x134),'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':_0x3c4d26(0xbc),'attrs':{'fill':_0x3c4d26(0x134),'d':_0x3c4d26(0xe8),'fillRule':_0x3c4d26(0xf3),'clipRule':_0x3c4d26(0xf3)}}]},W=_0x323c53(function(_0x5323ff,_0x46a411){const _0x2ecd72=_0x3c4d26;return _0x4de5ed(k,Object[_0x2ecd72(0xf1)]({},_0x5323ff,{'id':'live-share-icon','ref':_0x46a411,'icon':we}));});W['displayName']=_0x3c4d26(0xb0);class L extends _0x167de9{constructor(){const _0x7a878d=_0x3c4d26;super(...arguments),u(this,_0x7a878d(0xae),new Set()),u(this,_0x7a878d(0xc4),new Set());}[_0x3c4d26(0xe7)](_0x4d74e8){const _0x301ea6=_0x3c4d26;return this[_0x301ea6(0xae)][_0x301ea6(0x119)](_0x4d74e8),_0x4d1cb7(()=>this[_0x301ea6(0xae)][_0x301ea6(0xc7)](_0x4d74e8));}[_0x3c4d26(0x12e)](_0x2f9417){const _0x446af2=_0x3c4d26;return this[_0x446af2(0xc4)][_0x446af2(0x119)](_0x2f9417),_0x4d1cb7(()=>this[_0x446af2(0xc4)]['delete'](_0x2f9417));}['shouldShareOperation'](_0x4d891f){const _0x186e7f=_0x3c4d26;return this[_0x186e7f(0xae)][_0x186e7f(0xb2)](_0x4d891f);}['getInitialStates'](_0x5309bd){const _0x30bdfc=_0x3c4d26;return Array[_0x30bdfc(0x121)](this['_reporters'])[_0x30bdfc(0xaf)](_0x5b987a=>_0x5b987a(_0x5309bd));}}var Ne=Object[_0x3c4d26(0x111)],Y=(_0x1dffc0,_0x5d1308,_0x6d22f7,_0x50fc08)=>{const _0x294c01=_0x3c4d26;for(var _0x1c7e1c=_0x50fc08>0x1?void 0x0:_0x50fc08?Ne(_0x5d1308,_0x6d22f7):_0x5d1308,_0x4e78b5=_0x1dffc0[_0x294c01(0xb1)]-0x1,_0x1c31b2;_0x4e78b5>=0x0;_0x4e78b5--)(_0x1c31b2=_0x1dffc0[_0x4e78b5])&&(_0x1c7e1c=_0x1c31b2(_0x1c7e1c)||_0x1c7e1c);return _0x1c7e1c;},_=(_0x51ae71,_0xe5df8a)=>(_0x128844,_0x4c4655)=>_0xe5df8a(_0x128844,_0x4c4655,_0x51ae71);let S=class extends _0x32eff8{constructor(_0x1130e7,_0x381ddb,_0x8134fa){const _0x3297f4=_0x3c4d26;super(),u(this,_0x3297f4(0xdf),new Map()),(this[_0x3297f4(0xeb)]=_0x1130e7,this[_0x3297f4(0xfc)]=_0x381ddb,this[_0x3297f4(0x10c)]=_0x8134fa,this['_init']());}async[_0x3c4d26(0xa9)](_0x4f68f7){const _0x319794=_0x3c4d26;return this['_entities'][_0x319794(0xb2)](_0x4f68f7)||await this[_0x319794(0x142)](_0x4f68f7),this['_entities']['get'](_0x4f68f7);}['getLiveShareCoordinatorSync'](_0x261442){const _0x2cac2c=_0x3c4d26;var _0x5a7770;return(_0x5a7770=this[_0x2cac2c(0xdf)][_0x2cac2c(0xb7)](_0x261442))!=null?_0x5a7770:null;}[_0x3c4d26(0xa7)](){const _0x28d80b=_0x3c4d26;this[_0x28d80b(0xeb)][_0x28d80b(0x12a)](_0x152fad[_0x28d80b(0x135)])[_0x28d80b(0xbb)](_0xb6c43e(this[_0x28d80b(0x117)]))[_0x28d80b(0xcc)](async _0x17f6ad=>{const _0x52315b=_0x28d80b,_0x1ddc06=_0x17f6ad['getUnitId']();this['_entities']['has'](_0x1ddc06)||this[_0x52315b(0x142)](_0x1ddc06);}),this[_0x28d80b(0xeb)][_0x28d80b(0xfb)](_0x152fad[_0x28d80b(0x135)])[_0x28d80b(0xbb)](_0xb6c43e(this['dispose$']))[_0x28d80b(0xcc)](_0x41d0d4=>{const _0x2918c1=_0x28d80b,_0xafe8b7=_0x41d0d4[_0x2918c1(0x129)](),_0x67f92b=this['_entities']['get'](_0xafe8b7);_0x67f92b==null||_0x67f92b[_0x2918c1(0x125)]();});}async['_startLiveShareCoordinator'](_0x59b2a2){const _0x4c2719=_0x3c4d26,_0x57853c=await this[_0x4c2719(0x10c)][_0x4c2719(0xd2)](_0x59b2a2),_0x35c996=this[_0x4c2719(0xfc)]['createInstance'](N,_0x59b2a2,_0x57853c);return _0x35c996[_0x4c2719(0xcd)](),this['_entities'][_0x4c2719(0x118)](_0x59b2a2,_0x35c996),_0x35c996;}};S=Y([_(0x0,_0x4761e9),_(0x1,_0x1668bc(_0x465048)),_(0x2,_0x1668bc(_0xad0194))],S);var c=(_0x324eee=>(_0x324eee[_0x3c4d26(0xc1)]='offline',_0x324eee[_0x3c4d26(0xf8)]=_0x3c4d26(0x115),_0x324eee[_0x3c4d26(0xfe)]=_0x3c4d26(0xf2),_0x324eee['NOT_FOLLOWING']=_0x3c4d26(0xc9),_0x324eee['PRESENTING']='presenting',_0x324eee))(c||{});const Ce=_0x3c4d26(0x148),De=0xc8;let N=class extends _0x32eff8{constructor(_0x55baff,_0x1611db,_0x108f5a,_0x1fe790,_0x1d08ce){const _0x5e2d5a=_0x3c4d26;super(),u(this,_0x5e2d5a(0xd3),new _0x43bb1a(_0x5e2d5a(0x115))),u(this,_0x5e2d5a(0x147),this[_0x5e2d5a(0xd3)][_0x5e2d5a(0x136)]()),u(this,_0x5e2d5a(0xa7),!0x1),u(this,_0x5e2d5a(0x145),null),u(this,_0x5e2d5a(0x143),null),(this[_0x5e2d5a(0x149)]=_0x55baff,this[_0x5e2d5a(0xd9)]=_0x1611db,this['_configService']=_0x108f5a,this[_0x5e2d5a(0x141)]=_0x1fe790,this['_commandService']=_0x1d08ce);}get[_0x3c4d26(0xe4)](){const _0x414847=_0x3c4d26;return this[_0x414847(0xd3)][_0x414847(0x128)]();}[_0x3c4d26(0x125)](){const _0x2e2a16=_0x3c4d26;var _0x490f93;(_0x490f93=this['_commandDisposable'])==null||_0x490f93[_0x2e2a16(0x125)](),this[_0x2e2a16(0xd3)][_0x2e2a16(0xba)]('idle'),this[_0x2e2a16(0xd3)][_0x2e2a16(0x120)]();}['getStatus'](){const _0x33dd97=_0x3c4d26;return this[_0x33dd97(0xe4)];}['init'](){const _0x347d6e=_0x3c4d26;this[_0x347d6e(0xa7)]||(this[_0x347d6e(0xa7)]=!0x0,this[_0x347d6e(0xd9)][_0x347d6e(0xef)][_0x347d6e(0xbb)](_0xb6c43e(this[_0x347d6e(0x117)]))[_0x347d6e(0xcc)](_0x510c85=>{const _0xc2cb89=_0x347d6e;switch(_0x510c85){case _0x33d898[_0xc2cb89(0xc1)]:this[_0xc2cb89(0x107)]();break;case _0x33d898[_0xc2cb89(0x14b)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x347d6e(0x126)][_0x347d6e(0xbb)](_0xb6c43e(this[_0x347d6e(0x117)]))[_0x347d6e(0xcc)](_0x14957e=>{const _0x32624b=_0x347d6e,{eventID:_0x465ac7}=_0x14957e;switch(_0x465ac7){case _0x27f01f[_0x32624b(0xd8)]:this[_0x32624b(0x110)](_0x14957e);break;case _0x27f01f['LIVESHARE_OPERATION']:this[_0x32624b(0xec)](_0x14957e);break;case _0x27f01f[_0x32624b(0x10d)]:this[_0x32624b(0xf6)]();break;case _0x27f01f[_0x32624b(0x10f)]:this[_0x32624b(0xbd)](_0x14957e);break;}}));}[_0x3c4d26(0x13b)](){const _0x5c06d7=_0x3c4d26;this[_0x5c06d7(0xd9)][_0x5c06d7(0xac)]({'eventID':_0x27f01f[_0x5c06d7(0xe9)],'data':{'unitID':this[_0x5c06d7(0x149)],'userID':this['_collabSession'][_0x5c06d7(0xfa)]()}},this[_0x5c06d7(0x149)]);}[_0x3c4d26(0x130)](){const _0x3e5788=_0x3c4d26;this['_status']===_0x3e5788(0x13e)&&(this[_0x3e5788(0xd3)][_0x3e5788(0xba)](_0x3e5788(0x115)),this['_collabSession'][_0x3e5788(0xac)]({'eventID':_0x27f01f['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e5788(0x149)]));}[_0x3c4d26(0x140)](){const _0x21b915=_0x3c4d26;this[_0x21b915(0xe4)]===_0x21b915(0xc9)&&(this[_0x21b915(0xd3)][_0x21b915(0xba)](_0x21b915(0xf2)),this[_0x21b915(0x106)]());}[_0x3c4d26(0xea)](){const _0x9e7676=_0x3c4d26;this[_0x9e7676(0xe4)]==='following'&&this[_0x9e7676(0xda)]();}[_0x3c4d26(0x110)](_0x2a2ea6){const _0x366d1e=_0x3c4d26,{presenter:_0x442af7}=_0x2a2ea6[_0x366d1e(0xc0)],_0x4d956e=this[_0x366d1e(0xd9)]['getMemberID']();this[_0x366d1e(0x143)]=_0x442af7,_0x442af7===_0x4d956e?(this[_0x366d1e(0xda)](),this[_0x366d1e(0xb3)]()):this['_status']!==_0x366d1e(0xc9)&&(this[_0x366d1e(0xe3)](),this[_0x366d1e(0x106)]());}[_0x3c4d26(0x102)](){const _0x4bda21=_0x3c4d26,_0x49ba97={'eventID':_0x27f01f[_0x4bda21(0x14c)]};this[_0x4bda21(0xd9)]['send'](_0x49ba97,this['_unitID']);}[_0x3c4d26(0xf6)](){const _0x4dc501=_0x3c4d26;this[_0x4dc501(0x143)]=null,this[_0x4dc501(0xe4)]!=='presenting'&&this[_0x4dc501(0x11d)]();}['_handleNewChangeSets'](_0x5bf6ea){const _0x555bc3=_0x3c4d26;if(this[_0x555bc3(0xe4)]===_0x555bc3(0xf2)&&this['_presenter']===_0x5bf6ea['data'][_0x555bc3(0xc8)]){const _0x238534=_0x5e01ee(_0x5bf6ea[_0x555bc3(0xc0)])[_0x555bc3(0x127)][_0x555bc3(0xe0)]()[_0x555bc3(0x13f)](_0x1076b8=>_0x1076b8['id']===_0x4dfec7['id']);if(_0x238534){const _0xf64127=_0x238534['params'][_0x555bc3(0xd4)],_0x3f9390=_0x238534['params'][_0x555bc3(0x13c)]['id'];setTimeout(()=>{const _0x543a0c=_0x555bc3;this['_commandService'][_0x543a0c(0xb8)](_0x229740['id'],{'unitId':_0xf64127,'subUnitId':_0x3f9390},{'fromCollab':!0x0});});}}}[_0x3c4d26(0xb3)](){const _0x3e71e4=_0x3c4d26;this[_0x3e71e4(0xd3)][_0x3e71e4(0xba)](_0x3e71e4(0x13e));const _0x2a88ac=new Map(),_0x4e1955=this[_0x3e71e4(0x145)]=new _0x2cef5d();_0x4e1955[_0x3e71e4(0x119)](_0x4d1cb7(()=>{const _0x5d5b78=_0x3e71e4;_0x2a88ac['forEach'](_0x1a6fbf=>_0x1a6fbf['complete']()),_0x2a88ac[_0x5d5b78(0x14a)]();})),_0x4e1955[_0x3e71e4(0x119)](this[_0x3e71e4(0xb4)]['onCommandExecuted'](_0x4f67a9=>{const _0x425d30=_0x3e71e4;var _0x3436a6;if(_0x4f67a9[_0x425d30(0x114)]!==_0x480eb2['OPERATION']||!this[_0x425d30(0x141)][_0x425d30(0xcf)](_0x4f67a9['id']))return;const {id:_0x2400b4}=_0x4f67a9;let _0x2dd10a;_0x2a88ac[_0x425d30(0xb2)](_0x2400b4)?_0x2dd10a=_0x2a88ac['get'](_0x2400b4):(_0x2dd10a=new _0x5d2aa3(),_0x2a88ac['set'](_0x2400b4,_0x2dd10a),_0x2dd10a[_0x425d30(0xbb)](_0x3e47f7((_0x3436a6=this[_0x425d30(0xb5)][_0x425d30(0x10b)](Ce))!=null?_0x3436a6:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x425d30(0xcc)](_0x230643=>{const _0x33f4b9=_0x425d30;this[_0x33f4b9(0xd9)][_0x33f4b9(0xac)]({'eventID':_0x27f01f[_0x33f4b9(0x131)],'data':{'unitID':this[_0x33f4b9(0x149)],'operations':{[_0x230643['id']]:{'id':_0x230643['id'],'params':JSON[_0x33f4b9(0xf9)](_0x230643['params'])}}}},this['_unitID']);})),_0x2dd10a['next'](_0x4f67a9);})),this['_liveShareService']['getInitialStates'](this[_0x3e71e4(0x149)])[_0x3e71e4(0x109)](_0x428b9c=>this[_0x3e71e4(0xd9)][_0x3e71e4(0xac)]({'eventID':_0x27f01f[_0x3e71e4(0x131)],'data':{'unitID':this[_0x3e71e4(0x149)],'operations':{[_0x428b9c['id']]:{'id':_0x428b9c['id'],'params':JSON[_0x3e71e4(0xf9)](_0x428b9c[_0x3e71e4(0x105)])}}}},this[_0x3e71e4(0x149)]));}[_0x3c4d26(0xe3)](){const _0x202bc7=_0x3c4d26;var _0x1f4d4f;this[_0x202bc7(0xd3)][_0x202bc7(0xba)]('idle'),(_0x1f4d4f=this['_commandDisposable'])==null||_0x1f4d4f[_0x202bc7(0x125)](),this[_0x202bc7(0x145)]=null;}[_0x3c4d26(0x106)](){const _0x9a383b=_0x3c4d26;var _0x49474d;(_0x49474d=this['_commandDisposable'])==null||_0x49474d[_0x9a383b(0x125)](),this['_status$'][_0x9a383b(0xba)]('following');}[_0x3c4d26(0x11d)](){const _0x3815ed=_0x3c4d26;var _0x50b522;this[_0x3815ed(0xd3)][_0x3815ed(0xba)](_0x3815ed(0x115)),(_0x50b522=this[_0x3815ed(0x145)])==null||_0x50b522[_0x3815ed(0x125)](),this[_0x3815ed(0x145)]=null;}[_0x3c4d26(0xda)](){const _0x272418=_0x3c4d26;var _0x33e63a;this['_status$'][_0x272418(0xba)]('not-following'),(_0x33e63a=this[_0x272418(0x145)])==null||_0x33e63a[_0x272418(0x125)]();}['_handleOperation'](_0x40a3f3){const _0xc53a88=_0x3c4d26;if(['presenting',_0xc53a88(0xc9),_0xc53a88(0xbf)][_0xc53a88(0xee)](this['_status'])||!_0x40a3f3[_0xc53a88(0xc0)][_0xc53a88(0x144)]||_0x40a3f3[_0xc53a88(0xc0)]['presenter']===this['_collabSession'][_0xc53a88(0xfa)]())return;this[_0xc53a88(0xe4)]==='idle'&&this[_0xc53a88(0x106)]();const _0x5acf65=_0x40a3f3[_0xc53a88(0xc0)][_0xc53a88(0xad)];Object['values'](_0x5acf65)[_0xc53a88(0x109)](_0x27fc08=>{const _0x2de8aa=_0xc53a88;this[_0x2de8aa(0xb4)][_0x2de8aa(0xb8)](_0x27fc08['id'],_0x27fc08[_0x2de8aa(0x105)]?JSON[_0x2de8aa(0x12c)](_0x27fc08[_0x2de8aa(0x105)]):null,{'fromCollab':!0x0});});}[_0x3c4d26(0x107)](){const _0x29ada2=_0x3c4d26;var _0x560c99;this[_0x29ada2(0xd3)][_0x29ada2(0xba)](_0x29ada2(0xbf)),(_0x560c99=this['_commandDisposable'])==null||_0x560c99[_0x29ada2(0x125)]();}[_0x3c4d26(0xc5)](){const _0xd9f80e=_0x3c4d26;this[_0xd9f80e(0xd3)][_0xd9f80e(0xba)](_0xd9f80e(0x115)),this[_0xd9f80e(0x102)]();}};N=Y([_(0x2,_0x470b5c),_(0x3,_0x1668bc(L)),_(0x4,_0x154d48)],N);function Le(){const _0x18b53d=_0x3c4d26,_0x48e45d=_0x1a8a0d(S),_0x1a1d3a=_0x1a8a0d(_0x4761e9),_0x515ad1=_0x59b5ab(()=>_0x1a1d3a[_0x18b53d(0x13a)](_0x152fad[_0x18b53d(0x135)]),void 0x0,!0x1,[]),[_0x34dc5e,_0x270499]=_0x45446d(null),[_0x137c28,_0x318fb4]=_0x45446d(c['IDLE']),_0x85a5e4=_0x1b9081(null);return _0x15928b(()=>(_0x515ad1&&_0x48e45d[_0x18b53d(0xa9)](_0x515ad1[_0x18b53d(0x129)]())[_0x18b53d(0xed)](_0x1295e4=>{const _0xbccb9c=_0x18b53d;_0x270499(_0x1295e4),_0x85a5e4[_0xbccb9c(0xa4)]=_0x1295e4[_0xbccb9c(0x147)][_0xbccb9c(0xcc)](_0x338496=>{_0x318fb4(_0x338496);});}),()=>{const _0x382495=_0x18b53d;var _0x3655a8;(_0x3655a8=_0x85a5e4[_0x382495(0xa4)])==null||_0x3655a8[_0x382495(0x146)](),_0x85a5e4['current']=null;}),[_0x515ad1,_0x48e45d]),_0x34dc5e?_0x297ed2(_0x2571f0,{'align':_0x18b53d(0xe5),'disabled':_0x137c28===c['OFFLINE'],'className':_0x18b53d(0x11c),'overlay':_0x297ed2(Re,{'status':_0x137c28,'coordinator':_0x34dc5e}),'children':_0x297ed2(_0x18b53d(0x10e),{'className':_0x43444c(_0x18b53d(0xff),{'univer-cursor-not-allowed':_0x137c28===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x137c28!==c['OFFLINE']}),'type':_0x18b53d(0x10e),'children':_0x297ed2(W,{'className':_0x18b53d(0x12d)})})}):null;}function Re(_0x3a612a){const _0x2078d4=_0x3c4d26,{status:_0x4a74cf,coordinator:_0xd31a3c}=_0x3a612a;switch(_0x4a74cf){case c[_0x2078d4(0xf8)]:return _0x297ed2($e,{'coordinator':_0xd31a3c});case c[_0x2078d4(0xfe)]:return _0x297ed2(xe,{'coordinator':_0xd31a3c});case c[_0x2078d4(0x104)]:return _0x297ed2(Pe,{'coordinator':_0xd31a3c});case c[_0x2078d4(0xc1)]:return _0x297ed2(Te,{});case c[_0x2078d4(0x11a)]:return _0x297ed2(Ae,{'coordinator':_0xd31a3c});default:return null;}}function $e(_0x542678){const _0x39a2f8=_0x3c4d26,{coordinator:_0x1a5542}=_0x542678;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x39a2f8(0xd5),{'className':_0x39a2f8(0x150),'children':_0x39a2f8(0x113)}),_0x297ed2(_0x262bb5,{'onClick':()=>_0x1a5542[_0x39a2f8(0x13b)](),'children':_0x39a2f8(0x11e)})]});}function xe(_0x5b52c6){const _0x2dfd0a=_0x3c4d26,{coordinator:_0x8ed1ea}=_0x5b52c6;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x2dfd0a(0xd5),{'className':_0x2dfd0a(0x150),'children':_0x2dfd0a(0xf5)}),_0x297ed2(_0x262bb5,{'onClick':()=>_0x8ed1ea['stopFollowing'](),'children':_0x2dfd0a(0xe6)})]});}function Pe(_0x43531d){const _0xe1135b=_0x3c4d26,{coordinator:_0x46a62b}=_0x43531d;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0xe1135b(0xd5),{'className':_0xe1135b(0x150),'children':_0xe1135b(0xf0)}),_0x297ed2(_0x262bb5,{'variant':_0xe1135b(0x14f),'onClick':()=>_0x46a62b[_0xe1135b(0x140)](),'children':_0xe1135b(0x10a)})]});}function Ae(_0x5b88bc){const _0x3b6018=_0x3c4d26,{coordinator:_0x5a4c6d}=_0x5b88bc;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x3b6018(0xd5),{'className':_0x3b6018(0x150),'children':_0x3b6018(0x100)}),_0x297ed2(_0x262bb5,{'variant':_0x3b6018(0xc2),'onClick':()=>_0x5a4c6d[_0x3b6018(0x130)](),'children':_0x3b6018(0x108)})]});}function Te(){const _0x4ad64f=_0x3c4d26;return _0x297ed2(_0x20d81a,{'children':_0x4ad64f(0xd1)});}var Fe=Object[_0x3c4d26(0x111)],He=(_0x53d57b,_0x497c25,_0x3c8ba5,_0x3476e1)=>{for(var _0x1fe884=_0x3476e1>0x1?void 0x0:_0x3476e1?Fe(_0x497c25,_0x3c8ba5):_0x497c25,_0xa70e93=_0x53d57b['length']-0x1,_0x251851;_0xa70e93>=0x0;_0xa70e93--)(_0x251851=_0x53d57b[_0xa70e93])&&(_0x1fe884=_0x251851(_0x1fe884)||_0x1fe884);return _0x1fe884;},A=(_0x1755e1,_0x4191fa)=>(_0x1f5d4b,_0x460ddf)=>_0x4191fa(_0x1f5d4b,_0x460ddf,_0x1755e1);let m=class extends _0x167de9{constructor(_0x4eda34,_0x2340ce){const _0x4ff14c=_0x3c4d26;super(),this[_0x4ff14c(0xfc)]=_0x4eda34,this[_0x4ff14c(0xd0)]=_0x2340ce,this['_mountLiveShare']();}[_0x3c4d26(0xa6)](){const _0x3e2761=_0x3c4d26;this[_0x3e2761(0xa5)](this[_0x3e2761(0xd0)][_0x3e2761(0x122)](_0x13b76f[_0x3e2761(0x116)],()=>_0x412f64(Le,this[_0x3e2761(0xfc)])));}};m=He([A(0x0,_0x1668bc(_0x465048)),A(0x1,_0x172fbc)],m);const ye=_0x3c4d26(0xc6),T={};var Ue=Object[_0x3c4d26(0x111)],Ve=(_0x38c75d,_0x2f2f86,_0x4db672,_0xdfa37)=>{const _0x2a9401=_0x3c4d26;for(var _0x230c07=_0xdfa37>0x1?void 0x0:_0xdfa37?Ue(_0x2f2f86,_0x4db672):_0x2f2f86,_0x4d6b0e=_0x38c75d[_0x2a9401(0xb1)]-0x1,_0x2954d2;_0x4d6b0e>=0x0;_0x4d6b0e--)(_0x2954d2=_0x38c75d[_0x4d6b0e])&&(_0x230c07=_0x2954d2(_0x230c07)||_0x230c07);return _0x230c07;},je=(_0x2761f8,_0x4220cd)=>(_0x461ee3,_0x58036a)=>_0x4220cd(_0x461ee3,_0x58036a,_0x2761f8);let I=class extends _0x167de9{constructor(_0x2a65d0){const _0x49ca69=_0x3c4d26;super(),this[_0x49ca69(0x141)]=_0x2a65d0,this[_0x49ca69(0xa7)]();}[_0x3c4d26(0xa7)](){const _0x52b65d=_0x3c4d26;[_0x477fa1['id'],_0x1426bd['id'],_0x229740['id']][_0x52b65d(0x109)](_0x44551a=>{const _0x3829a1=_0x52b65d;this['disposeWithMe'](this['_liveShareService'][_0x3829a1(0xe7)](_0x44551a));});}};I=Ve([je(0x0,_0x1668bc(L))],I);var Me=Object['defineProperty'],ke=Object[_0x3c4d26(0x111)],Ge=(_0x552387,_0x4a1693,_0xc41582)=>_0x4a1693 in _0x552387?Me(_0x552387,_0x4a1693,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc41582}):_0x552387[_0x4a1693]=_0xc41582,We=(_0x1c7235,_0x53ca88,_0x23f1e4,_0x337006)=>{const _0x55521c=_0x3c4d26;for(var _0x4bca3f=_0x337006>0x1?void 0x0:_0x337006?ke(_0x53ca88,_0x23f1e4):_0x53ca88,_0x318f02=_0x1c7235[_0x55521c(0xb1)]-0x1,_0x576d87;_0x318f02>=0x0;_0x318f02--)(_0x576d87=_0x1c7235[_0x318f02])&&(_0x4bca3f=_0x576d87(_0x4bca3f)||_0x4bca3f);return _0x4bca3f;},F=(_0x818b45,_0x2a99a3)=>(_0x13d330,_0x3c945f)=>_0x2a99a3(_0x13d330,_0x3c945f,_0x818b45),B=(_0x19c8c9,_0x1b64ec,_0x14ffa9)=>Ge(_0x19c8c9,typeof _0x1b64ec!='symbol'?_0x1b64ec+'':_0x1b64ec,_0x14ffa9);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x8999f6{constructor(_0x8fc644=T,_0x5c3784,_0x375c8a){const _0x310cb4=_0x3c4d26;super(),this[_0x310cb4(0x133)]=_0x8fc644,this[_0x310cb4(0xfc)]=_0x5c3784,this[_0x310cb4(0xb5)]=_0x375c8a;const {..._0x233474}=_0x5cf637({},T,this[_0x310cb4(0x133)]);this['_configService']['setConfig'](ye,_0x233474);}['onStarting'](){const _0x12a848=_0x3c4d26;_0x385419(this[_0x12a848(0xfc)],_0xc75ac0([[L],[S],[I],[m]],this[_0x12a848(0x133)][_0x12a848(0x11f)])),_0xaa1b3f(this['_injector'],[[I]]);}[_0x3c4d26(0x124)](){_0xaa1b3f(this['_injector'],[[m]]);}};B(b,_0x3c4d26(0x114),_0x152fad[_0x3c4d26(0xdb)]),B(b,'pluginName',Ye),b=We([_0x3124b9(_0x57a458),F(0x1,_0x1668bc(_0x465048)),F(0x2,_0x470b5c)],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 _0x444e(_0x5b00e4,_0x18af70){_0x5b00e4=_0x5b00e4-0x10d;const _0x38771f=_0x3877();let _0x444e21=_0x38771f[_0x5b00e4];return _0x444e21;}const _0x54c981=_0x444e;(function(_0xc59aa2,_0x39ffba){const _0x12ac38=_0x444e,_0x4eb295=_0xc59aa2();while(!![]){try{const _0x416e9a=-parseInt(_0x12ac38(0x11c))/0x1*(-parseInt(_0x12ac38(0x10f))/0x2)+parseInt(_0x12ac38(0x117))/0x3+-parseInt(_0x12ac38(0x123))/0x4*(-parseInt(_0x12ac38(0x116))/0x5)+-parseInt(_0x12ac38(0x11f))/0x6+parseInt(_0x12ac38(0x124))/0x7+-parseInt(_0x12ac38(0x128))/0x8+parseInt(_0x12ac38(0x118))/0x9*(-parseInt(_0x12ac38(0x11e))/0xa);if(_0x416e9a===_0x39ffba)break;else _0x4eb295['push'](_0x4eb295['shift']());}catch(_0x4e0303){_0x4eb295['push'](_0x4eb295['shift']());}}}(_0x3877,0x56e21));function _0x3877(){const _0x1b3c58=['_initialize','getLiveShareStatus','1212010hNFTqt','1303797LFTsoo','23445SGGvjk','symbol','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','1uekMXw','defineProperty','4790JoZRzM','533358KHFpVA','_injector','IDLE','getStatus','8IEaTEO','4153870pwfEVI','extend','stopFollowing','startPresenting','3821096xiQrBQ','get','LiveShareStatusEnum','getLiveShareCoordinatorSync','1314770jPHxmf','UNIVER_SHEET','getCurrentUnitOfType','getUnitId','No\x20active\x20workbook\x20found.'];_0x3877=function(){return _0x1b3c58;};return _0x3877();}var l=Object[_0x54c981(0x11d)],w=(_0x195cd0,_0x24ec47,_0x2b8886)=>_0x24ec47 in _0x195cd0?l(_0x195cd0,_0x24ec47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b8886}):_0x195cd0[_0x24ec47]=_0x2b8886,v=(_0x4c90aa,_0x316d83,_0x3b5ab5)=>w(_0x4c90aa,typeof _0x316d83!=_0x54c981(0x119)?_0x316d83+'':_0x316d83,_0x3b5ab5);import{LiveShareController as _0x46bc90,LiveShareStatus as _0x2c9730}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x309931,UniverInstanceType as _0x3d59ca}from'@univerjs/core';import{FUniver as _0x5bd508,FEnum as _0x4dc371}from'@univerjs/core/facade';class g extends _0x5bd508{constructor(){const _0x3118fe=_0x54c981;super(...arguments),v(this,_0x3118fe(0x11b));}[_0x54c981(0x114)](_0x260b8a){const _0x3528fa=_0x54c981;this[_0x3528fa(0x11b)]=_0x260b8a[_0x3528fa(0x129)](_0x46bc90);}[_0x54c981(0x115)](){const _0x5011c1=_0x54c981;var _0x226e95;const _0x2bb8df=this['_injector'][_0x5011c1(0x129)](_0x309931)['getCurrentUnitOfType'](_0x3d59ca['UNIVER_SHEET']);if(!_0x2bb8df)throw new Error('No\x20active\x20workbook\x20found.');const _0x8281dc=_0x2bb8df[_0x5011c1(0x112)](),_0x2d1544=this['_liveShareController'][_0x5011c1(0x10e)](_0x8281dc);return(_0x226e95=_0x2d1544==null?void 0x0:_0x2d1544[_0x5011c1(0x122)]())!=null?_0x226e95:_0x2c9730[_0x5011c1(0x121)];}['startFollowing'](){const _0xc89cbf=_0x54c981,_0x4a0e4f=this[_0xc89cbf(0x120)][_0xc89cbf(0x129)](_0x309931)[_0xc89cbf(0x111)](_0x3d59ca[_0xc89cbf(0x110)]);if(!_0x4a0e4f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4dc35d=_0x4a0e4f[_0xc89cbf(0x112)](),_0x6e6444=this[_0xc89cbf(0x11b)]['getLiveShareCoordinatorSync'](_0x4dc35d);if(!_0x6e6444)throw new Error(_0xc89cbf(0x11a));_0x6e6444['startFollowing']();}[_0x54c981(0x126)](){const _0x36fdcc=_0x54c981,_0xb8bd34=this[_0x36fdcc(0x120)][_0x36fdcc(0x129)](_0x309931)[_0x36fdcc(0x111)](_0x3d59ca[_0x36fdcc(0x110)]);if(!_0xb8bd34)throw new Error(_0x36fdcc(0x113));const _0x4843b4=_0xb8bd34[_0x36fdcc(0x112)](),_0x3425aa=this[_0x36fdcc(0x11b)]['getLiveShareCoordinatorSync'](_0x4843b4);if(!_0x3425aa)throw new Error(_0x36fdcc(0x11a));_0x3425aa['stopFollowing']();}[_0x54c981(0x127)](){const _0x28a4d3=_0x54c981,_0x2fd82d=this[_0x28a4d3(0x120)][_0x28a4d3(0x129)](_0x309931)[_0x28a4d3(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x2fd82d)throw new Error(_0x28a4d3(0x113));const _0x514bcb=_0x2fd82d[_0x28a4d3(0x112)](),_0x40a050=this['_liveShareController'][_0x28a4d3(0x10e)](_0x514bcb);if(!_0x40a050)throw new Error(_0x28a4d3(0x11a));_0x40a050['tryStartPresenting']();}['stopPresenting'](){const _0x2f236d=_0x54c981,_0x49557a=this[_0x2f236d(0x120)][_0x2f236d(0x129)](_0x309931)[_0x2f236d(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x49557a)throw new Error(_0x2f236d(0x113));const _0x307c58=_0x49557a['getUnitId'](),_0x1b93a2=this[_0x2f236d(0x11b)][_0x2f236d(0x10e)](_0x307c58);if(!_0x1b93a2)throw new Error(_0x2f236d(0x11a));_0x1b93a2['stopPresenting']();}}_0x5bd508[_0x54c981(0x125)](g);class f extends _0x4dc371{get[_0x54c981(0x10d)](){return _0x2c9730;}}_0x4dc371[_0x54c981(0x125)](f);
1
+ const _0x387598=_0x1ad0;(function(_0x5b82b1,_0x1290ab){const _0x31555e=_0x1ad0,_0x220744=_0x5b82b1();while(!![]){try{const _0x2d7e93=parseInt(_0x31555e(0xd8))/0x1+parseInt(_0x31555e(0xf3))/0x2*(parseInt(_0x31555e(0xe9))/0x3)+-parseInt(_0x31555e(0xdc))/0x4+parseInt(_0x31555e(0xec))/0x5+parseInt(_0x31555e(0xf2))/0x6+parseInt(_0x31555e(0xdd))/0x7*(-parseInt(_0x31555e(0xe3))/0x8)+-parseInt(_0x31555e(0xeb))/0x9;if(_0x2d7e93===_0x1290ab)break;else _0x220744['push'](_0x220744['shift']());}catch(_0x1e57f2){_0x220744['push'](_0x220744['shift']());}}}(_0x3a6c,0xda826));var l=Object['defineProperty'],w=(_0x3dcfad,_0x1bb340,_0x73a40c)=>_0x1bb340 in _0x3dcfad?l(_0x3dcfad,_0x1bb340,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x73a40c}):_0x3dcfad[_0x1bb340]=_0x73a40c,v=(_0x2c7169,_0x54872e,_0x2767cd)=>w(_0x2c7169,typeof _0x54872e!=_0x387598(0xe8)?_0x54872e+'':_0x54872e,_0x2767cd);import{LiveShareController as _0x56ded9,LiveShareStatus as _0x2a4e7f}from'@univerjs-pro/live-share';function _0x3a6c(){const _0x25ca72=['_injector','startFollowing','_initialize','getCurrentUnitOfType','24RmrlxF','get','No\x20active\x20workbook\x20found.','tryStartPresenting','getLiveShareCoordinatorSync','symbol','380238hSfjsu','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','11328876SdnRxj','8336805oEtKqM','IDLE','UNIVER_SHEET','startPresenting','_liveShareController','LiveShareStatusEnum','6159192ADlmoD','6lZZEqK','getUnitId','1311265VnTSwM','getStatus','stopPresenting','extend','2325068MmofMZ','3850819RsOCtP','stopFollowing'];_0x3a6c=function(){return _0x25ca72;};return _0x3a6c();}import{IUniverInstanceService as _0x3d695f,UniverInstanceType as _0x518e90}from'@univerjs/core';import{FUniver as _0x399dd6,FEnum as _0x54e957}from'@univerjs/core/facade';function _0x1ad0(_0x2244d8,_0x49c986){_0x2244d8=_0x2244d8-0xd7;const _0x3a6ceb=_0x3a6c();let _0x1ad00e=_0x3a6ceb[_0x2244d8];return _0x1ad00e;}class g extends _0x399dd6{constructor(){const _0x4ef51d=_0x387598;super(...arguments),v(this,_0x4ef51d(0xf0));}[_0x387598(0xe1)](_0x43e95b){const _0x1daad3=_0x387598;this[_0x1daad3(0xf0)]=_0x43e95b['get'](_0x56ded9);}['getLiveShareStatus'](){const _0x598381=_0x387598;var _0x41d058;const _0x4cad1a=this[_0x598381(0xdf)][_0x598381(0xe4)](_0x3d695f)[_0x598381(0xe2)](_0x518e90[_0x598381(0xee)]);if(!_0x4cad1a)throw new Error(_0x598381(0xe5));const _0x3db598=_0x4cad1a[_0x598381(0xd7)](),_0x265760=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x3db598);return(_0x41d058=_0x265760==null?void 0x0:_0x265760[_0x598381(0xd9)]())!=null?_0x41d058:_0x2a4e7f[_0x598381(0xed)];}[_0x387598(0xe0)](){const _0x4d8d13=_0x387598,_0x8825ca=this[_0x4d8d13(0xdf)][_0x4d8d13(0xe4)](_0x3d695f)['getCurrentUnitOfType'](_0x518e90[_0x4d8d13(0xee)]);if(!_0x8825ca)throw new Error(_0x4d8d13(0xe5));const _0x1789df=_0x8825ca['getUnitId'](),_0x3582dd=this['_liveShareController'][_0x4d8d13(0xe7)](_0x1789df);if(!_0x3582dd)throw new Error(_0x4d8d13(0xea));_0x3582dd[_0x4d8d13(0xe0)]();}['stopFollowing'](){const _0x5a86a0=_0x387598,_0x9e53dc=this[_0x5a86a0(0xdf)][_0x5a86a0(0xe4)](_0x3d695f)['getCurrentUnitOfType'](_0x518e90['UNIVER_SHEET']);if(!_0x9e53dc)throw new Error(_0x5a86a0(0xe5));const _0x38bcd1=_0x9e53dc[_0x5a86a0(0xd7)](),_0x5362fc=this[_0x5a86a0(0xf0)]['getLiveShareCoordinatorSync'](_0x38bcd1);if(!_0x5362fc)throw new Error(_0x5a86a0(0xea));_0x5362fc[_0x5a86a0(0xde)]();}[_0x387598(0xef)](){const _0x3e01dc=_0x387598,_0x23a961=this[_0x3e01dc(0xdf)][_0x3e01dc(0xe4)](_0x3d695f)[_0x3e01dc(0xe2)](_0x518e90[_0x3e01dc(0xee)]);if(!_0x23a961)throw new Error(_0x3e01dc(0xe5));const _0x6e1381=_0x23a961[_0x3e01dc(0xd7)](),_0x4d46c3=this[_0x3e01dc(0xf0)][_0x3e01dc(0xe7)](_0x6e1381);if(!_0x4d46c3)throw new Error(_0x3e01dc(0xea));_0x4d46c3[_0x3e01dc(0xe6)]();}[_0x387598(0xda)](){const _0x2b22a8=_0x387598,_0x41d1ca=this[_0x2b22a8(0xdf)]['get'](_0x3d695f)[_0x2b22a8(0xe2)](_0x518e90[_0x2b22a8(0xee)]);if(!_0x41d1ca)throw new Error(_0x2b22a8(0xe5));const _0x223a5d=_0x41d1ca[_0x2b22a8(0xd7)](),_0x5c917f=this[_0x2b22a8(0xf0)][_0x2b22a8(0xe7)](_0x223a5d);if(!_0x5c917f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5c917f[_0x2b22a8(0xda)]();}}_0x399dd6[_0x387598(0xdb)](g);class f extends _0x54e957{get[_0x387598(0xf1)](){return _0x2a4e7f;}}_0x54e957['extend'](f);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x222f49=_0x32f8;(function(_0x132553,_0x276501){const _0x2ad240=_0x32f8,_0x5e7b8e=_0x132553();while(!![]){try{const _0x172e37=parseInt(_0x2ad240(0x172))/0x1*(-parseInt(_0x2ad240(0x1a9))/0x2)+parseInt(_0x2ad240(0x1cf))/0x3*(-parseInt(_0x2ad240(0x1e0))/0x4)+-parseInt(_0x2ad240(0x1a4))/0x5+parseInt(_0x2ad240(0x1bc))/0x6*(parseInt(_0x2ad240(0x173))/0x7)+parseInt(_0x2ad240(0x1b2))/0x8+parseInt(_0x2ad240(0x1c5))/0x9+parseInt(_0x2ad240(0x144))/0xa;if(_0x172e37===_0x276501)break;else _0x5e7b8e['push'](_0x5e7b8e['shift']());}catch(_0x27a76d){_0x5e7b8e['push'](_0x5e7b8e['shift']());}}}(_0x1f92,0x5bffa));var J=Object[_0x222f49(0x16d)],K=(_0x131552,_0x67239e,_0x4727fa)=>_0x67239e in _0x131552?J(_0x131552,_0x67239e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4727fa}):_0x131552[_0x67239e]=_0x4727fa,u=(_0x310b23,_0x336579,_0xabdb22)=>K(_0x310b23,typeof _0x336579!=_0x222f49(0x181)?_0x336579+'':_0x336579,_0xabdb22);import{Disposable as _0x1a37e7,toDisposable as _0x5b056a,Inject as _0x1482cd,Injector as _0x4bf49b,RxDisposable as _0x4d23fd,UniverInstanceType as _0x2f11e5,DisposableCollection as _0x4c5763,CommandType as _0xf0a1ab,IUniverInstanceService as _0x42d6a1,IConfigService as _0x2a5d23,ICommandService as _0x49fbbf,DependentOn as _0xa62d83,Plugin as _0x4a80e3,merge as _0x20b0c5,registerDependencies as _0x3e3410,mergeOverrideWithDependencies as _0x443e96,touchDependencies as _0xd36313}from'@univerjs/core';import{useDependency as _0xa82e97,useObservable as _0x169040,BuiltInUIPart as _0x504303,connectInjector as _0x71c5ea,IUIPartsService as _0x2eb621}from'@univerjs/ui';import{jsx as _0x147256,jsxs as _0x5b8e35,Fragment as _0x48919b}from'react/jsx-runtime';import{Dropdown as _0x4032fa,clsx as _0x21e998,Button as _0x343d1a}from'@univerjs/design';import{useRef as _0x2088ee,createElement as _0x35bf0f,forwardRef as _0x1296e9,useState as _0x263a7d,useEffect as _0x5b9c41}from'react';import{CollaborationEvent as _0x3fdbca,parseProtocolChangeset as _0xce55e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ae195,SessionStatus as _0x37958e,UniverCollaborationClientPlugin as _0x2aafaa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c0766,SetWorksheetActiveOperation as _0x18f1ca}from'@univerjs/sheets';import{BehaviorSubject as _0x1af331,Subject as _0x535ba9}from'rxjs';import{takeUntil as _0x4973f2,throttleTime as _0x5b740f}from'rxjs/operators';import{SetZoomRatioOperation as _0x314d69,SetScrollOperation as _0x39a4e2}from'@univerjs/sheets-ui';function k({ref:_0x462cb7,..._0x1c1dff}){const _0x316bad=_0x222f49,{icon:_0x1a8c9f,id:_0x276f33,className:_0x2e7a8e,extend:_0xa00f6a,..._0x2bd088}=_0x1c1dff,_0x50329d=(_0x316bad(0x15c)+_0x276f33+'\x20'+(_0x2e7a8e||''))['trim'](),_0x2261d9=_0x2088ee('_'+Oe());return G(_0x1a8c9f,''+_0x276f33,{'defIds':_0x1a8c9f[_0x316bad(0x1a3)],'idSuffix':_0x2261d9['current']},{'ref':_0x462cb7,'className':_0x50329d,..._0x2bd088},_0xa00f6a);}function G(_0x55cfd2,_0x4adbc0,_0x882380,_0x2bd600,_0x16f876){const _0xdbe3d4=_0x222f49;return _0x35bf0f(_0x55cfd2[_0xdbe3d4(0x1cd)],{'key':_0x4adbc0,...be(_0x55cfd2,_0x882380,_0x16f876),..._0x2bd600},(Ee(_0x55cfd2,_0x882380)[_0xdbe3d4(0x166)]||[])[_0xdbe3d4(0x1da)]((_0x14578b,_0x5b3422)=>G(_0x14578b,_0x4adbc0+'-'+_0x55cfd2[_0xdbe3d4(0x1cd)]+'-'+_0x5b3422,_0x882380,void 0x0,_0x16f876)));}function be(_0x5963be,_0x13093c,_0x4e1677){const _0x30a373=_0x222f49,_0x5e406e={..._0x5963be[_0x30a373(0x178)]};_0x4e1677!=null&&_0x4e1677['colorChannel1']&&_0x5e406e[_0x30a373(0x17b)]==='colorChannel1'&&(_0x5e406e['fill']=_0x4e1677[_0x30a373(0x19b)]),_0x5963be[_0x30a373(0x1cd)]===_0x30a373(0x16f)&&_0x5e406e['id']&&(_0x5e406e['id']=_0x5e406e['id']+_0x13093c[_0x30a373(0x1d3)]),Object['entries'](_0x5e406e)['forEach'](([_0x5e9f2d,_0x4e0b9d])=>{const _0x34b26c=_0x30a373;_0x5e9f2d==='mask'&&typeof _0x4e0b9d==_0x34b26c(0x1d8)&&(_0x5e406e[_0x5e9f2d]=_0x4e0b9d[_0x34b26c(0x14f)](/url\(#(.*)\)/,_0x34b26c(0x151)+_0x13093c[_0x34b26c(0x1d3)]+')'));});const {defIds:_0x59694a}=_0x13093c;return!_0x59694a||_0x59694a[_0x30a373(0x1b0)]===0x0||(_0x5963be[_0x30a373(0x1cd)]==='use'&&_0x5e406e[_0x30a373(0x1bf)]&&(_0x5e406e['xlink:href']=_0x5e406e[_0x30a373(0x1bf)]+_0x13093c[_0x30a373(0x1d3)]),Object[_0x30a373(0x154)](_0x5e406e)[_0x30a373(0x1cb)](([_0x3ea8c0,_0x39bb4c])=>{const _0x5d459c=_0x30a373;typeof _0x39bb4c==_0x5d459c(0x1d8)&&(_0x5e406e[_0x3ea8c0]=_0x39bb4c[_0x5d459c(0x14f)](/url\(#(.*)\)/,'url(#$1'+_0x13093c[_0x5d459c(0x1d3)]+')'));})),_0x5e406e;}function Ee(_0x5ea3b1,_0x2fc3f5){const _0xa9cbff=_0x222f49;var _0xc887a6;const {defIds:_0x40bb30}=_0x2fc3f5;return!_0x40bb30||_0x40bb30[_0xa9cbff(0x1b0)]===0x0?_0x5ea3b1:_0x5ea3b1['tag']===_0xa9cbff(0x1a7)&&((_0xc887a6=_0x5ea3b1['children'])!=null&&_0xc887a6[_0xa9cbff(0x1b0)])?{..._0x5ea3b1,'children':_0x5ea3b1[_0xa9cbff(0x166)][_0xa9cbff(0x1da)](_0x1f1739=>typeof _0x1f1739[_0xa9cbff(0x178)]['id']==_0xa9cbff(0x1d8)&&_0x40bb30&&_0x40bb30[_0xa9cbff(0x182)](_0x1f1739['attrs']['id'])?{..._0x1f1739,'attrs':{..._0x1f1739[_0xa9cbff(0x178)],'id':_0x1f1739[_0xa9cbff(0x178)]['id']+_0x2fc3f5[_0xa9cbff(0x1d3)]}}:_0x1f1739)}:_0x5ea3b1;}function Oe(){const _0x16f1c6=_0x222f49;return Math[_0x16f1c6(0x16c)]()[_0x16f1c6(0x1af)](0x24)['substring'](0x2,0x8);}k[_0x222f49(0x19c)]=_0x222f49(0x198);const we={'tag':_0x222f49(0x19e),'attrs':{'xmlns':_0x222f49(0x1c6),'fill':_0x222f49(0x1ad),'viewBox':_0x222f49(0x1b7),'width':_0x222f49(0x1df),'height':'1em'},'children':[{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1c9)}},{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1b4),'fillRule':_0x222f49(0x1ac),'clipRule':_0x222f49(0x1ac)}}]},W=_0x1296e9(function(_0x3ad358,_0x59951a){const _0x4e5bda=_0x222f49;return _0x35bf0f(k,Object[_0x4e5bda(0x1a0)]({},_0x3ad358,{'id':_0x4e5bda(0x175),'ref':_0x59951a,'icon':we}));});W[_0x222f49(0x19c)]=_0x222f49(0x189);class L extends _0x1a37e7{constructor(){const _0x9a5498=_0x222f49;super(...arguments),u(this,_0x9a5498(0x165),new Set()),u(this,_0x9a5498(0x19f),new Set());}['registerSharedOperation'](_0x51fa91){const _0x51633c=_0x222f49;return this[_0x51633c(0x165)][_0x51633c(0x17a)](_0x51fa91),_0x5b056a(()=>this['_sharedOperations'][_0x51633c(0x163)](_0x51fa91));}[_0x222f49(0x180)](_0x235cc7){const _0x35ad08=_0x222f49;return this[_0x35ad08(0x19f)][_0x35ad08(0x17a)](_0x235cc7),_0x5b056a(()=>this[_0x35ad08(0x19f)][_0x35ad08(0x163)](_0x235cc7));}[_0x222f49(0x162)](_0x5725b3){const _0x4a8736=_0x222f49;return this[_0x4a8736(0x165)][_0x4a8736(0x17c)](_0x5725b3);}[_0x222f49(0x1d2)](_0x50b96c){const _0x485c53=_0x222f49;return Array[_0x485c53(0x188)](this[_0x485c53(0x19f)])['map'](_0x4e2a8f=>_0x4e2a8f(_0x50b96c));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x38ad76,_0x26da5c,_0x8b1786,_0x1a136e)=>{const _0x19311d=_0x222f49;for(var _0x6b88e7=_0x1a136e>0x1?void 0x0:_0x1a136e?Ne(_0x26da5c,_0x8b1786):_0x26da5c,_0x2640d0=_0x38ad76[_0x19311d(0x1b0)]-0x1,_0x56c6e4;_0x2640d0>=0x0;_0x2640d0--)(_0x56c6e4=_0x38ad76[_0x2640d0])&&(_0x6b88e7=_0x56c6e4(_0x6b88e7)||_0x6b88e7);return _0x6b88e7;},_=(_0x26bd72,_0x2e0c36)=>(_0x661ef1,_0x1bae9c)=>_0x2e0c36(_0x661ef1,_0x1bae9c,_0x26bd72);let S=class extends _0x4d23fd{constructor(_0x43f0c5,_0x4c68c8,_0x5ba94c){const _0x4d0c7b=_0x222f49;super(),u(this,_0x4d0c7b(0x18a),new Map()),(this[_0x4d0c7b(0x158)]=_0x43f0c5,this[_0x4d0c7b(0x1c4)]=_0x4c68c8,this[_0x4d0c7b(0x185)]=_0x5ba94c,this[_0x4d0c7b(0x15f)]());}async[_0x222f49(0x1dd)](_0x1c2e6e){const _0x4e9dc9=_0x222f49;return this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x17c)](_0x1c2e6e)||await this['_startLiveShareCoordinator'](_0x1c2e6e),this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x1b1)](_0x1c2e6e);}['getLiveShareCoordinatorSync'](_0x2f9468){const _0x5271e5=_0x222f49;var _0x34ea18;return(_0x34ea18=this[_0x5271e5(0x18a)]['get'](_0x2f9468))!=null?_0x34ea18:null;}[_0x222f49(0x15f)](){const _0x500a8f=_0x222f49;this[_0x500a8f(0x158)]['getTypeOfUnitAdded$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this['dispose$']))[_0x500a8f(0x1c0)](async _0x14537d=>{const _0x11bfd9=_0x500a8f,_0x46c236=_0x14537d[_0x11bfd9(0x1b8)]();this[_0x11bfd9(0x18a)][_0x11bfd9(0x17c)](_0x46c236)||this['_startLiveShareCoordinator'](_0x46c236);}),this[_0x500a8f(0x158)]['getTypeOfUnitDisposed$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this[_0x500a8f(0x19a)]))[_0x500a8f(0x1c0)](_0x6a1e96=>{const _0xdea41c=_0x500a8f,_0x5173e1=_0x6a1e96[_0xdea41c(0x1b8)](),_0x521a08=this[_0xdea41c(0x18a)][_0xdea41c(0x1b1)](_0x5173e1);_0x521a08==null||_0x521a08['dispose']();});}async[_0x222f49(0x14c)](_0xf47cd1){const _0x58df3a=_0x222f49,_0x125981=await this[_0x58df3a(0x185)]['requireSession'](_0xf47cd1),_0xd7029=this['_injector']['createInstance'](N,_0xf47cd1,_0x125981);return _0xd7029['init'](),this['_entities']['set'](_0xf47cd1,_0xd7029),_0xd7029;}};S=Y([_(0x0,_0x42d6a1),_(0x1,_0x1482cd(_0x4bf49b)),_(0x2,_0x1482cd(_0x1ae195))],S);var c=(_0x21da83=>(_0x21da83[_0x222f49(0x1b5)]='offline',_0x21da83[_0x222f49(0x1ab)]=_0x222f49(0x157),_0x21da83['FOLLOWING']='following',_0x21da83[_0x222f49(0x156)]=_0x222f49(0x1b6),_0x21da83[_0x222f49(0x159)]=_0x222f49(0x191),_0x21da83))(c||{});const Ce=_0x222f49(0x152),De=0xc8;let N=class extends _0x4d23fd{constructor(_0x1636ce,_0xc41e87,_0x4dcef3,_0x2a8dfb,_0x454816){const _0x36727e=_0x222f49;super(),u(this,'_status$',new _0x1af331(_0x36727e(0x157))),u(this,_0x36727e(0x1d7),this['_status$']['asObservable']()),u(this,_0x36727e(0x15f),!0x1),u(this,_0x36727e(0x192),null),u(this,_0x36727e(0x1ae),null),(this[_0x36727e(0x194)]=_0x1636ce,this[_0x36727e(0x148)]=_0xc41e87,this['_configService']=_0x4dcef3,this[_0x36727e(0x1de)]=_0x2a8dfb,this['_commandService']=_0x454816);}get[_0x222f49(0x18f)](){const _0x4fd45b=_0x222f49;return this[_0x4fd45b(0x1ba)]['getValue']();}[_0x222f49(0x15e)](){const _0x1cfe29=_0x222f49;var _0x456969;(_0x456969=this[_0x1cfe29(0x192)])==null||_0x456969[_0x1cfe29(0x15e)](),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x160)](_0x1cfe29(0x157)),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x184)]();}[_0x222f49(0x1e4)](){const _0x55ff8c=_0x222f49;return this[_0x55ff8c(0x18f)];}[_0x222f49(0x1e2)](){const _0x2b7144=_0x222f49;this[_0x2b7144(0x15f)]||(this[_0x2b7144(0x15f)]=!0x0,this['_collabSession'][_0x2b7144(0x17f)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0xf3c7a5=>{const _0x40dc20=_0x2b7144;switch(_0xf3c7a5){case _0x37958e['OFFLINE']:this[_0x40dc20(0x16a)]();break;case _0x37958e[_0x40dc20(0x1cc)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x2b7144(0x14b)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0x101772=>{const _0x30ccdb=_0x2b7144,{eventID:_0x460750}=_0x101772;switch(_0x460750){case _0x3fdbca['LIVESHARE_NEW_HOST']:this[_0x30ccdb(0x16e)](_0x101772);break;case _0x3fdbca[_0x30ccdb(0x1ce)]:this[_0x30ccdb(0x1c3)](_0x101772);break;case _0x3fdbca['LIVESHARE_TERMINATE']:this[_0x30ccdb(0x161)]();break;case _0x3fdbca[_0x30ccdb(0x1b9)]:this[_0x30ccdb(0x150)](_0x101772);break;}}));}[_0x222f49(0x183)](){const _0xecb64a=_0x222f49;this[_0xecb64a(0x148)][_0xecb64a(0x199)]({'eventID':_0x3fdbca[_0xecb64a(0x196)],'data':{'unitID':this[_0xecb64a(0x194)],'userID':this['_collabSession'][_0xecb64a(0x18d)]()}},this['_unitID']);}[_0x222f49(0x14d)](){const _0x3adab4=_0x222f49;this[_0x3adab4(0x18f)]===_0x3adab4(0x191)&&(this[_0x3adab4(0x1ba)][_0x3adab4(0x160)](_0x3adab4(0x157)),this[_0x3adab4(0x148)][_0x3adab4(0x199)]({'eventID':_0x3fdbca[_0x3adab4(0x190)],'data':{'unitID':this[_0x3adab4(0x194)]}},this[_0x3adab4(0x194)]));}['startFollowing'](){const _0x2310ca=_0x222f49;this[_0x2310ca(0x18f)]===_0x2310ca(0x1b6)&&(this[_0x2310ca(0x1ba)][_0x2310ca(0x160)](_0x2310ca(0x1e5)),this['_startFollowing']());}[_0x222f49(0x1ca)](){const _0x19ea8e=_0x222f49;this[_0x19ea8e(0x18f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x76a257){const _0x341b8f=_0x222f49,{presenter:_0x4ad5b6}=_0x76a257[_0x341b8f(0x1a6)],_0x25dc34=this[_0x341b8f(0x148)]['getMemberID']();this[_0x341b8f(0x1ae)]=_0x4ad5b6,_0x4ad5b6===_0x25dc34?(this[_0x341b8f(0x174)](),this[_0x341b8f(0x16b)]()):this[_0x341b8f(0x18f)]!==_0x341b8f(0x1b6)&&(this[_0x341b8f(0x17d)](),this[_0x341b8f(0x1c1)]());}[_0x222f49(0x186)](){const _0x421f73=_0x222f49,_0x313e07={'eventID':_0x3fdbca[_0x421f73(0x1db)]};this[_0x421f73(0x148)][_0x421f73(0x199)](_0x313e07,this[_0x421f73(0x194)]);}[_0x222f49(0x161)](){const _0x31376e=_0x222f49;this['_presenter']=null,this[_0x31376e(0x18f)]!==_0x31376e(0x191)&&this[_0x31376e(0x17e)]();}[_0x222f49(0x150)](_0x2445a7){const _0xd6ccef=_0x222f49;if(this[_0xd6ccef(0x18f)]===_0xd6ccef(0x1e5)&&this['_presenter']===_0x2445a7[_0xd6ccef(0x1a6)][_0xd6ccef(0x1d0)]){const _0x2a70b8=_0xce55e(_0x2445a7[_0xd6ccef(0x1a6)])[_0xd6ccef(0x18b)]['reverse']()[_0xd6ccef(0x18e)](_0x1895ae=>_0x1895ae['id']===_0x4c0766['id']);if(_0x2a70b8){const _0x106314=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x187)],_0x2a00ad=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x1d5)]['id'];setTimeout(()=>{const _0x2d47f4=_0xd6ccef;this[_0x2d47f4(0x146)]['executeCommand'](_0x18f1ca['id'],{'unitId':_0x106314,'subUnitId':_0x2a00ad},{'fromCollab':!0x0});});}}}[_0x222f49(0x16b)](){const _0x1da092=_0x222f49;this['_status$']['next'](_0x1da092(0x191));const _0x1c14f5=new Map(),_0x22e09f=this[_0x1da092(0x192)]=new _0x4c5763();_0x22e09f[_0x1da092(0x17a)](_0x5b056a(()=>{const _0x39874f=_0x1da092;_0x1c14f5['forEach'](_0x2dc096=>_0x2dc096[_0x39874f(0x184)]()),_0x1c14f5[_0x39874f(0x1c8)]();})),_0x22e09f['add'](this[_0x1da092(0x146)][_0x1da092(0x153)](_0x30df92=>{const _0x55d7b1=_0x1da092;var _0x568f82;if(_0x30df92['type']!==_0xf0a1ab['OPERATION']||!this[_0x55d7b1(0x1de)]['shouldShareOperation'](_0x30df92['id']))return;const {id:_0x41face}=_0x30df92;let _0xd38261;_0x1c14f5[_0x55d7b1(0x17c)](_0x41face)?_0xd38261=_0x1c14f5[_0x55d7b1(0x1b1)](_0x41face):(_0xd38261=new _0x535ba9(),_0x1c14f5['set'](_0x41face,_0xd38261),_0xd38261[_0x55d7b1(0x1e3)](_0x5b740f((_0x568f82=this[_0x55d7b1(0x147)]['getConfig'](Ce))!=null?_0x568f82:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57e83b=>{const _0x3d258d=_0x55d7b1;this[_0x3d258d(0x148)][_0x3d258d(0x199)]({'eventID':_0x3fdbca[_0x3d258d(0x1ce)],'data':{'unitID':this[_0x3d258d(0x194)],'operations':{[_0x57e83b['id']]:{'id':_0x57e83b['id'],'params':JSON[_0x3d258d(0x169)](_0x57e83b[_0x3d258d(0x15a)])}}}},this[_0x3d258d(0x194)]);})),_0xd38261[_0x55d7b1(0x160)](_0x30df92);})),this[_0x1da092(0x1de)][_0x1da092(0x1d2)](this[_0x1da092(0x194)])[_0x1da092(0x1cb)](_0x2e6d89=>this[_0x1da092(0x148)]['send']({'eventID':_0x3fdbca['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1da092(0x194)],'operations':{[_0x2e6d89['id']]:{'id':_0x2e6d89['id'],'params':JSON[_0x1da092(0x169)](_0x2e6d89['params'])}}}},this[_0x1da092(0x194)]));}['_stopPresenting'](){const _0x33d525=_0x222f49;var _0x5641cf;this[_0x33d525(0x1ba)][_0x33d525(0x160)](_0x33d525(0x157)),(_0x5641cf=this[_0x33d525(0x192)])==null||_0x5641cf[_0x33d525(0x15e)](),this[_0x33d525(0x192)]=null;}[_0x222f49(0x1c1)](){const _0x1a5c91=_0x222f49;var _0x262734;(_0x262734=this[_0x1a5c91(0x192)])==null||_0x262734['dispose'](),this[_0x1a5c91(0x1ba)][_0x1a5c91(0x160)](_0x1a5c91(0x1e5));}[_0x222f49(0x17e)](){const _0x2c053e=_0x222f49;var _0x319506;this[_0x2c053e(0x1ba)][_0x2c053e(0x160)](_0x2c053e(0x157)),(_0x319506=this[_0x2c053e(0x192)])==null||_0x319506[_0x2c053e(0x15e)](),this[_0x2c053e(0x192)]=null;}[_0x222f49(0x174)](){const _0x586ea4=_0x222f49;var _0x1774b0;this[_0x586ea4(0x1ba)]['next'](_0x586ea4(0x1b6)),(_0x1774b0=this[_0x586ea4(0x192)])==null||_0x1774b0[_0x586ea4(0x15e)]();}[_0x222f49(0x1c3)](_0x201f11){const _0x32fd22=_0x222f49;if([_0x32fd22(0x191),_0x32fd22(0x1b6),_0x32fd22(0x195)][_0x32fd22(0x182)](this[_0x32fd22(0x18f)])||!_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]||_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]===this['_collabSession'][_0x32fd22(0x18d)]())return;this[_0x32fd22(0x18f)]===_0x32fd22(0x157)&&this[_0x32fd22(0x1c1)]();const _0x3f981c=_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x15d)];Object[_0x32fd22(0x171)](_0x3f981c)[_0x32fd22(0x1cb)](_0x195b3c=>{const _0x4d97ac=_0x32fd22;this[_0x4d97ac(0x146)]['executeCommand'](_0x195b3c['id'],_0x195b3c['params']?JSON[_0x4d97ac(0x1d1)](_0x195b3c[_0x4d97ac(0x15a)]):null,{'fromCollab':!0x0});});}[_0x222f49(0x16a)](){const _0x117688=_0x222f49;var _0x10c904;this['_status$']['next'](_0x117688(0x195)),(_0x10c904=this[_0x117688(0x192)])==null||_0x10c904[_0x117688(0x15e)]();}[_0x222f49(0x1c7)](){const _0x2daa41=_0x222f49;this[_0x2daa41(0x1ba)][_0x2daa41(0x160)](_0x2daa41(0x157)),this[_0x2daa41(0x186)]();}};N=Y([_(0x2,_0x2a5d23),_(0x3,_0x1482cd(L)),_(0x4,_0x49fbbf)],N);function Le(){const _0x595af5=_0x222f49,_0x1e6a9f=_0xa82e97(S),_0x3d429b=_0xa82e97(_0x42d6a1),_0xad7edf=_0x169040(()=>_0x3d429b[_0x595af5(0x1c2)](_0x2f11e5[_0x595af5(0x167)]),void 0x0,!0x1,[]),[_0x1d0531,_0xf25f]=_0x263a7d(null),[_0x535e52,_0x14cdd5]=_0x263a7d(c[_0x595af5(0x1ab)]),_0x22c6ec=_0x2088ee(null);return _0x5b9c41(()=>(_0xad7edf&&_0x1e6a9f[_0x595af5(0x1dd)](_0xad7edf[_0x595af5(0x1b8)]())[_0x595af5(0x1a5)](_0x39b7e7=>{const _0x49e5e1=_0x595af5;_0xf25f(_0x39b7e7),_0x22c6ec[_0x49e5e1(0x15b)]=_0x39b7e7[_0x49e5e1(0x1d7)][_0x49e5e1(0x1c0)](_0x515ddf=>{_0x14cdd5(_0x515ddf);});}),()=>{const _0x417f1d=_0x595af5;var _0x3c104c;(_0x3c104c=_0x22c6ec[_0x417f1d(0x15b)])==null||_0x3c104c[_0x417f1d(0x1be)](),_0x22c6ec[_0x417f1d(0x15b)]=null;}),[_0xad7edf,_0x1e6a9f]),_0x1d0531?_0x147256(_0x4032fa,{'align':'end','disabled':_0x535e52===c[_0x595af5(0x1b5)],'className':_0x595af5(0x177),'overlay':_0x147256(Re,{'status':_0x535e52,'coordinator':_0x1d0531}),'children':_0x147256('button',{'className':_0x21e998('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x535e52===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x535e52!==c[_0x595af5(0x1b5)]}),'type':_0x595af5(0x18c),'children':_0x147256(W,{'className':_0x595af5(0x193)})})}):null;}function _0x32f8(_0x55cde5,_0x1ba71a){_0x55cde5=_0x55cde5-0x144;const _0x1f9247=_0x1f92();let _0x32f805=_0x1f9247[_0x55cde5];return _0x32f805;}function Re(_0x3ae1e6){const _0x3b8226=_0x222f49,{status:_0x26e94d,coordinator:_0x45f5d3}=_0x3ae1e6;switch(_0x26e94d){case c[_0x3b8226(0x1ab)]:return _0x147256($e,{'coordinator':_0x45f5d3});case c[_0x3b8226(0x1b3)]:return _0x147256(xe,{'coordinator':_0x45f5d3});case c['NOT_FOLLOWING']:return _0x147256(Pe,{'coordinator':_0x45f5d3});case c['OFFLINE']:return _0x147256(Te,{});case c[_0x3b8226(0x159)]:return _0x147256(Ae,{'coordinator':_0x45f5d3});default:return null;}}function $e(_0x1ae728){const _0x13e998=_0x222f49,{coordinator:_0x8df82a}=_0x1ae728;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x13e998(0x1bb),{'className':_0x13e998(0x164),'children':_0x13e998(0x1a2)}),_0x147256(_0x343d1a,{'onClick':()=>_0x8df82a[_0x13e998(0x183)](),'children':'Start'})]});}function _0x1f92(){const _0x24faa7=['sessionStatus$','registerInitialStateReporter','symbol','includes','tryStartPresenting','complete','_collabSessionService','_fetchOperations','unitId','from','LiveShareIcon','_entities','mutations','button','getMemberID','find','_status','LIVESHARE_TERMINATE','presenting','_commandDisposable','univer-size-4','_unitID','offline','LIVESHARE_REQUEST_HOST','Stop\x20presenting','UniverIcon','send','dispose$','colorChannel1','displayName','You\x27are\x20offline.','svg','_reporters','assign','Start\x20following','Present\x20this\x20document','defIds','2431090AlCoHV','then','data','defs','registerSharedOperation','191514hqGhpA','_uiPartsService','IDLE','evenodd','none','_presenter','toString','length','get','4805576DUHMCj','FOLLOWING','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','OFFLINE','not-following','0\x200\x2017\x2017','getUnitId','NEW_CHANGESETS','_status$','div','44118OzvmRD','UNIVER_UNKNOWN','unsubscribe','xlink:href','subscribe','_startFollowing','getCurrentTypeOfUnit$','_handleOperation','_injector','1306485qEEfRE','http://www.w3.org/2000/svg','_handleOnline','clear','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','stopFollowing','forEach','ONLINE','tag','LIVESHARE_OPERATION','9CsyzmS','memberID','parse','getInitialStates','idSuffix','_config','sheet','disposeWithMe','status$','string','live-share.config','map','LIVESHARE_FETCH_OPERATIONS','registerComponent','getLiveShareCoordinator','_liveShareService','1em','414248utlDPT','getOwnPropertyDescriptor','init','pipe','getStatus','following','8698880BtQNUt','onRendered','_commandService','_configService','_collabSession','You\x27re\x20presenting\x20the\x20document','HEADER_MENU','event$','_startLiveShareCoordinator','stopPresenting','currentColor','replace','_handleNewChangeSets','url(#$1','SAME_OPERATION_SHARE_INTERVAL','onCommandExecuted','entries','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','idle','_univerInstanceService','PRESENTING','params','current','univerjs-icon\x20univerjs-icon-','operations','dispose','_init','next','_handleTerminate','shouldShareOperation','delete','univer-mb-3\x20univer-w-full\x20univer-text-sm','_sharedOperations','children','UNIVER_SHEET','presenter','stringify','_handleOffline','_startPresenting','random','defineProperty','_handleNewHost','mask','path','values','5NwakGy','35keXnTT','_stopFollowing','live-share-icon','default','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','attrs','setConfig','add','fill','has','_stopPresenting','_beIdle'];_0x1f92=function(){return _0x24faa7;};return _0x1f92();}function xe(_0x3f4462){const _0x1ea643=_0x222f49,{coordinator:_0x28cd24}=_0x3f4462;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x1ea643(0x1bb),{'className':_0x1ea643(0x164),'children':_0x1ea643(0x155)}),_0x147256(_0x343d1a,{'onClick':()=>_0x28cd24[_0x1ea643(0x1ca)](),'children':'Stop\x20following'})]});}function Pe(_0x2f6795){const _0x352649=_0x222f49,{coordinator:_0xc604e7}=_0x2f6795;return _0x5b8e35(_0x48919b,{'children':[_0x147256('div',{'className':_0x352649(0x164),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x147256(_0x343d1a,{'variant':'text','onClick':()=>_0xc604e7['startFollowing'](),'children':_0x352649(0x1a1)})]});}function Ae(_0x51b98b){const _0x29d1db=_0x222f49,{coordinator:_0x5e6b3b}=_0x51b98b;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x29d1db(0x1bb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29d1db(0x149)}),_0x147256(_0x343d1a,{'variant':_0x29d1db(0x176),'onClick':()=>_0x5e6b3b[_0x29d1db(0x14d)](),'children':_0x29d1db(0x197)})]});}function Te(){const _0x4b4bf3=_0x222f49;return _0x147256(_0x48919b,{'children':_0x4b4bf3(0x19d)});}var Fe=Object[_0x222f49(0x1e1)],He=(_0x20a505,_0x2f59a1,_0x699d44,_0x16b8cd)=>{const _0x2585ec=_0x222f49;for(var _0x46b8ab=_0x16b8cd>0x1?void 0x0:_0x16b8cd?Fe(_0x2f59a1,_0x699d44):_0x2f59a1,_0x112c1a=_0x20a505[_0x2585ec(0x1b0)]-0x1,_0xda2f11;_0x112c1a>=0x0;_0x112c1a--)(_0xda2f11=_0x20a505[_0x112c1a])&&(_0x46b8ab=_0xda2f11(_0x46b8ab)||_0x46b8ab);return _0x46b8ab;},A=(_0x345c45,_0x32671f)=>(_0x22e067,_0x3cdb29)=>_0x32671f(_0x22e067,_0x3cdb29,_0x345c45);let m=class extends _0x1a37e7{constructor(_0x9a6efd,_0x6237a1){const _0x81ac34=_0x222f49;super(),this[_0x81ac34(0x1c4)]=_0x9a6efd,this['_uiPartsService']=_0x6237a1,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1764e5=_0x222f49;this['disposeWithMe'](this[_0x1764e5(0x1aa)][_0x1764e5(0x1dc)](_0x504303[_0x1764e5(0x14a)],()=>_0x71c5ea(Le,this['_injector'])));}};m=He([A(0x0,_0x1482cd(_0x4bf49b)),A(0x1,_0x2eb621)],m);const ye=_0x222f49(0x1d9),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x48c8b5,_0x455180,_0x5a5586,_0x858e3b)=>{const _0x19df28=_0x222f49;for(var _0x2c586f=_0x858e3b>0x1?void 0x0:_0x858e3b?Ue(_0x455180,_0x5a5586):_0x455180,_0x294eed=_0x48c8b5[_0x19df28(0x1b0)]-0x1,_0x47e890;_0x294eed>=0x0;_0x294eed--)(_0x47e890=_0x48c8b5[_0x294eed])&&(_0x2c586f=_0x47e890(_0x2c586f)||_0x2c586f);return _0x2c586f;},je=(_0x548104,_0x3aaed5)=>(_0x47e839,_0x4120f6)=>_0x3aaed5(_0x47e839,_0x4120f6,_0x548104);let I=class extends _0x1a37e7{constructor(_0xadd850){const _0x28c989=_0x222f49;super(),this[_0x28c989(0x1de)]=_0xadd850,this['_init']();}[_0x222f49(0x15f)](){[_0x314d69['id'],_0x39a4e2['id'],_0x18f1ca['id']]['forEach'](_0x199093=>{const _0x336415=_0x32f8;this[_0x336415(0x1d6)](this[_0x336415(0x1de)][_0x336415(0x1a8)](_0x199093));});}};I=Ve([je(0x0,_0x1482cd(L))],I);var Me=Object[_0x222f49(0x16d)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x29c7a9,_0x17ca98,_0x2b7853)=>_0x17ca98 in _0x29c7a9?Me(_0x29c7a9,_0x17ca98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7853}):_0x29c7a9[_0x17ca98]=_0x2b7853,We=(_0x38eeed,_0x3313d7,_0x434e0e,_0x20d09e)=>{for(var _0x504ce3=_0x20d09e>0x1?void 0x0:_0x20d09e?ke(_0x3313d7,_0x434e0e):_0x3313d7,_0x587640=_0x38eeed['length']-0x1,_0x3c295e;_0x587640>=0x0;_0x587640--)(_0x3c295e=_0x38eeed[_0x587640])&&(_0x504ce3=_0x3c295e(_0x504ce3)||_0x504ce3);return _0x504ce3;},F=(_0x35ea2f,_0x237888)=>(_0x5e6ad6,_0x39b551)=>_0x237888(_0x5e6ad6,_0x39b551,_0x35ea2f),B=(_0x571cb2,_0x2a52ed,_0x12a363)=>Ge(_0x571cb2,typeof _0x2a52ed!=_0x222f49(0x181)?_0x2a52ed+'':_0x2a52ed,_0x12a363);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4a80e3{constructor(_0x1633e6=T,_0x7597c4,_0xa2ad7){const _0xda0e29=_0x222f49;super(),this[_0xda0e29(0x1d4)]=_0x1633e6,this[_0xda0e29(0x1c4)]=_0x7597c4,this[_0xda0e29(0x147)]=_0xa2ad7;const {..._0x52fa98}=_0x20b0c5({},T,this[_0xda0e29(0x1d4)]);this[_0xda0e29(0x147)][_0xda0e29(0x179)](ye,_0x52fa98);}['onStarting'](){const _0x1c1aeb=_0x222f49;_0x3e3410(this[_0x1c1aeb(0x1c4)],_0x443e96([[L],[S],[I],[m]],this[_0x1c1aeb(0x1d4)]['override'])),_0xd36313(this[_0x1c1aeb(0x1c4)],[[I]]);}[_0x222f49(0x145)](){const _0x16c20a=_0x222f49;_0xd36313(this[_0x16c20a(0x1c4)],[[m]]);}};B(b,'type',_0x2f11e5[_0x222f49(0x1bd)]),B(b,'pluginName',Ye),b=We([_0xa62d83(_0x2aafaa),F(0x1,_0x1482cd(_0x4bf49b)),F(0x2,_0x2a5d23)],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 _0x3c4d26=_0x39a9;(function(_0x50d06,_0x3e5376){const _0x384216=_0x39a9,_0x506440=_0x50d06();while(!![]){try{const _0x66b29f=parseInt(_0x384216(0x11b))/0x1*(-parseInt(_0x384216(0x137))/0x2)+-parseInt(_0x384216(0xa8))/0x3+parseInt(_0x384216(0xfd))/0x4*(-parseInt(_0x384216(0xbe))/0x5)+-parseInt(_0x384216(0xb6))/0x6*(-parseInt(_0x384216(0xce))/0x7)+-parseInt(_0x384216(0x139))/0x8+-parseInt(_0x384216(0xb9))/0x9+-parseInt(_0x384216(0xcb))/0xa*(-parseInt(_0x384216(0x13d))/0xb);if(_0x66b29f===_0x3e5376)break;else _0x506440['push'](_0x506440['shift']());}catch(_0x2e1e74){_0x506440['push'](_0x506440['shift']());}}}(_0x167e,0x229b3));var J=Object[_0x3c4d26(0xf4)],K=(_0xb11596,_0x3f3fe8,_0x4cded9)=>_0x3f3fe8 in _0xb11596?J(_0xb11596,_0x3f3fe8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cded9}):_0xb11596[_0x3f3fe8]=_0x4cded9,u=(_0x20bdf6,_0x120919,_0x1ee5d9)=>K(_0x20bdf6,typeof _0x120919!=_0x3c4d26(0xdd)?_0x120919+'':_0x120919,_0x1ee5d9);import{Disposable as _0x167de9,toDisposable as _0x4d1cb7,Inject as _0x1668bc,Injector as _0x465048,RxDisposable as _0x32eff8,UniverInstanceType as _0x152fad,DisposableCollection as _0x2cef5d,CommandType as _0x480eb2,IUniverInstanceService as _0x4761e9,IConfigService as _0x470b5c,ICommandService as _0x154d48,DependentOn as _0x3124b9,Plugin as _0x8999f6,merge as _0x5cf637,registerDependencies as _0x385419,mergeOverrideWithDependencies as _0xc75ac0,touchDependencies as _0xaa1b3f}from'@univerjs/core';function _0x167e(){const _0x59331a=['operations','_sharedOperations','map','LiveShareIcon','length','has','_startPresenting','_commandService','_configService','6lIfKnB','get','executeCommand','978057IpPvjw','next','pipe','path','_handleNewChangeSets','5guaAXR','offline','data','OFFLINE','default','defIds','_reporters','_handleOnline','live-share.config','delete','memberID','not-following','xlink:href','60DxOMas','subscribe','init','786219cvkglD','shouldShareOperation','_uiPartsService','You\x27are\x20offline.','requireSession','_status$','unitId','div','1em','displayName','LIVESHARE_NEW_HOST','_collabSession','_stopFollowing','UNIVER_UNKNOWN','entries','symbol','attrs','_entities','reverse','trim','replace','_stopPresenting','_status','end','Stop\x20following','registerSharedOperation','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','LIVESHARE_REQUEST_HOST','stopFollowing','_univerInstanceService','_handleOperation','then','includes','sessionStatus$','You\x27re\x20not\x20following\x20the\x20presenter','assign','following','evenodd','defineProperty','You\x27re\x20following\x20the\x20presenter','_handleTerminate','string','IDLE','stringify','getMemberID','getTypeOfUnitDisposed$','_injector','19244YZhIwf','FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','You\x27re\x20presenting\x20the\x20document','url(#$1','_fetchOperations','mask','NOT_FOLLOWING','params','_startFollowing','_handleOffline','Stop\x20presenting','forEach','Start\x20following','getConfig','_collabSessionService','LIVESHARE_TERMINATE','button','NEW_CHANGESETS','_handleNewHost','getOwnPropertyDescriptor','svg','Present\x20this\x20document','type','idle','HEADER_MENU','dispose$','set','add','PRESENTING','1ADKIwl','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','_beIdle','Start','override','complete','from','registerComponent','colorChannel1','onRendered','dispose','event$','mutations','getValue','getUnitId','getTypeOfUnitAdded$','none','parse','univer-size-4','registerInitialStateReporter','random','stopPresenting','LIVESHARE_OPERATION','children','_config','currentColor','UNIVER_SHEET','asObservable','231866keYgnr','UniverIcon','326992qTZtPp','getCurrentTypeOfUnit$','tryStartPresenting','sheet','847154QANemw','presenting','find','startFollowing','_liveShareService','_startLiveShareCoordinator','_presenter','presenter','_commandDisposable','unsubscribe','status$','SAME_OPERATION_SHARE_INTERVAL','_unitID','clear','ONLINE','LIVESHARE_FETCH_OPERATIONS','idSuffix','tag','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','disposeWithMe','_mountLiveShare','_init','487089dshBzs','getLiveShareCoordinator','substring','fill','send'];_0x167e=function(){return _0x59331a;};return _0x167e();}function _0x39a9(_0x352344,_0x5e578c){_0x352344=_0x352344-0xa4;const _0x167e07=_0x167e();let _0x39a976=_0x167e07[_0x352344];return _0x39a976;}import{useDependency as _0x1a8a0d,useObservable as _0x59b5ab,BuiltInUIPart as _0x13b76f,connectInjector as _0x412f64,IUIPartsService as _0x172fbc}from'@univerjs/ui';import{jsx as _0x297ed2,jsxs as _0x35ad9f,Fragment as _0x20d81a}from'react/jsx-runtime';import{Dropdown as _0x2571f0,clsx as _0x43444c,Button as _0x262bb5}from'@univerjs/design';import{useRef as _0x1b9081,createElement as _0x4de5ed,forwardRef as _0x323c53,useState as _0x45446d,useEffect as _0x15928b}from'react';import{CollaborationEvent as _0x27f01f,parseProtocolChangeset as _0x5e01ee}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xad0194,SessionStatus as _0x33d898,UniverCollaborationClientPlugin as _0x57a458}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4dfec7,SetWorksheetActiveOperation as _0x229740}from'@univerjs/sheets';import{BehaviorSubject as _0x43bb1a,Subject as _0x5d2aa3}from'rxjs';import{takeUntil as _0xb6c43e,throttleTime as _0x3e47f7}from'rxjs/operators';import{SetZoomRatioOperation as _0x477fa1,SetScrollOperation as _0x1426bd}from'@univerjs/sheets-ui';function k({ref:_0x36f515,..._0x2274af}){const _0x14af90=_0x3c4d26,{icon:_0x126807,id:_0x3d4da7,className:_0x975c13,extend:_0x4cf5d7,..._0x3b484}=_0x2274af,_0x2d67a3=('univerjs-icon\x20univerjs-icon-'+_0x3d4da7+'\x20'+(_0x975c13||''))[_0x14af90(0xe1)](),_0x5859b8=_0x1b9081('_'+Oe());return G(_0x126807,''+_0x3d4da7,{'defIds':_0x126807[_0x14af90(0xc3)],'idSuffix':_0x5859b8['current']},{'ref':_0x36f515,'className':_0x2d67a3,..._0x3b484},_0x4cf5d7);}function G(_0x2f3215,_0x515465,_0x425278,_0xe1a232,_0x416272){const _0x52465c=_0x3c4d26;return _0x4de5ed(_0x2f3215[_0x52465c(0x14e)],{'key':_0x515465,...be(_0x2f3215,_0x425278,_0x416272),..._0xe1a232},(Ee(_0x2f3215,_0x425278)[_0x52465c(0x132)]||[])[_0x52465c(0xaf)]((_0x527592,_0x397146)=>G(_0x527592,_0x515465+'-'+_0x2f3215['tag']+'-'+_0x397146,_0x425278,void 0x0,_0x416272)));}function be(_0x2554e4,_0x1e7844,_0x2ccb3e){const _0x568c6d=_0x3c4d26,_0x1b8d67={..._0x2554e4[_0x568c6d(0xde)]};_0x2ccb3e!=null&&_0x2ccb3e[_0x568c6d(0x123)]&&_0x1b8d67[_0x568c6d(0xab)]===_0x568c6d(0x123)&&(_0x1b8d67[_0x568c6d(0xab)]=_0x2ccb3e[_0x568c6d(0x123)]),_0x2554e4[_0x568c6d(0x14e)]==='mask'&&_0x1b8d67['id']&&(_0x1b8d67['id']=_0x1b8d67['id']+_0x1e7844[_0x568c6d(0x14d)]),Object[_0x568c6d(0xdc)](_0x1b8d67)[_0x568c6d(0x109)](([_0x12f573,_0x580fc3])=>{const _0x194f77=_0x568c6d;_0x12f573===_0x194f77(0x103)&&typeof _0x580fc3==_0x194f77(0xf7)&&(_0x1b8d67[_0x12f573]=_0x580fc3[_0x194f77(0xe2)](/url\(#(.*)\)/,_0x194f77(0x101)+_0x1e7844[_0x194f77(0x14d)]+')'));});const {defIds:_0x5cf4a2}=_0x1e7844;return!_0x5cf4a2||_0x5cf4a2[_0x568c6d(0xb1)]===0x0||(_0x2554e4[_0x568c6d(0x14e)]==='use'&&_0x1b8d67[_0x568c6d(0xca)]&&(_0x1b8d67[_0x568c6d(0xca)]=_0x1b8d67[_0x568c6d(0xca)]+_0x1e7844[_0x568c6d(0x14d)]),Object['entries'](_0x1b8d67)['forEach'](([_0x397a0c,_0x7cf213])=>{const _0x340b67=_0x568c6d;typeof _0x7cf213=='string'&&(_0x1b8d67[_0x397a0c]=_0x7cf213['replace'](/url\(#(.*)\)/,_0x340b67(0x101)+_0x1e7844['idSuffix']+')'));})),_0x1b8d67;}function Ee(_0xe6d18f,_0x46996b){const _0x31e87a=_0x3c4d26;var _0x21996e;const {defIds:_0x2e3d1c}=_0x46996b;return!_0x2e3d1c||_0x2e3d1c[_0x31e87a(0xb1)]===0x0?_0xe6d18f:_0xe6d18f[_0x31e87a(0x14e)]==='defs'&&((_0x21996e=_0xe6d18f[_0x31e87a(0x132)])!=null&&_0x21996e[_0x31e87a(0xb1)])?{..._0xe6d18f,'children':_0xe6d18f[_0x31e87a(0x132)][_0x31e87a(0xaf)](_0x1739de=>typeof _0x1739de[_0x31e87a(0xde)]['id']==_0x31e87a(0xf7)&&_0x2e3d1c&&_0x2e3d1c['includes'](_0x1739de['attrs']['id'])?{..._0x1739de,'attrs':{..._0x1739de[_0x31e87a(0xde)],'id':_0x1739de[_0x31e87a(0xde)]['id']+_0x46996b[_0x31e87a(0x14d)]}}:_0x1739de)}:_0xe6d18f;}function Oe(){const _0x57aa80=_0x3c4d26;return Math[_0x57aa80(0x12f)]()['toString'](0x24)[_0x57aa80(0xaa)](0x2,0x8);}k[_0x3c4d26(0xd7)]=_0x3c4d26(0x138);const we={'tag':_0x3c4d26(0x112),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3c4d26(0x12b),'viewBox':'0\x200\x2017\x2017','width':_0x3c4d26(0xd6),'height':_0x3c4d26(0xd6)},'children':[{'tag':_0x3c4d26(0xbc),'attrs':{'fill':_0x3c4d26(0x134),'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':_0x3c4d26(0xbc),'attrs':{'fill':_0x3c4d26(0x134),'d':_0x3c4d26(0xe8),'fillRule':_0x3c4d26(0xf3),'clipRule':_0x3c4d26(0xf3)}}]},W=_0x323c53(function(_0x5323ff,_0x46a411){const _0x2ecd72=_0x3c4d26;return _0x4de5ed(k,Object[_0x2ecd72(0xf1)]({},_0x5323ff,{'id':'live-share-icon','ref':_0x46a411,'icon':we}));});W['displayName']=_0x3c4d26(0xb0);class L extends _0x167de9{constructor(){const _0x7a878d=_0x3c4d26;super(...arguments),u(this,_0x7a878d(0xae),new Set()),u(this,_0x7a878d(0xc4),new Set());}[_0x3c4d26(0xe7)](_0x4d74e8){const _0x301ea6=_0x3c4d26;return this[_0x301ea6(0xae)][_0x301ea6(0x119)](_0x4d74e8),_0x4d1cb7(()=>this[_0x301ea6(0xae)][_0x301ea6(0xc7)](_0x4d74e8));}[_0x3c4d26(0x12e)](_0x2f9417){const _0x446af2=_0x3c4d26;return this[_0x446af2(0xc4)][_0x446af2(0x119)](_0x2f9417),_0x4d1cb7(()=>this[_0x446af2(0xc4)]['delete'](_0x2f9417));}['shouldShareOperation'](_0x4d891f){const _0x186e7f=_0x3c4d26;return this[_0x186e7f(0xae)][_0x186e7f(0xb2)](_0x4d891f);}['getInitialStates'](_0x5309bd){const _0x30bdfc=_0x3c4d26;return Array[_0x30bdfc(0x121)](this['_reporters'])[_0x30bdfc(0xaf)](_0x5b987a=>_0x5b987a(_0x5309bd));}}var Ne=Object[_0x3c4d26(0x111)],Y=(_0x1dffc0,_0x5d1308,_0x6d22f7,_0x50fc08)=>{const _0x294c01=_0x3c4d26;for(var _0x1c7e1c=_0x50fc08>0x1?void 0x0:_0x50fc08?Ne(_0x5d1308,_0x6d22f7):_0x5d1308,_0x4e78b5=_0x1dffc0[_0x294c01(0xb1)]-0x1,_0x1c31b2;_0x4e78b5>=0x0;_0x4e78b5--)(_0x1c31b2=_0x1dffc0[_0x4e78b5])&&(_0x1c7e1c=_0x1c31b2(_0x1c7e1c)||_0x1c7e1c);return _0x1c7e1c;},_=(_0x51ae71,_0xe5df8a)=>(_0x128844,_0x4c4655)=>_0xe5df8a(_0x128844,_0x4c4655,_0x51ae71);let S=class extends _0x32eff8{constructor(_0x1130e7,_0x381ddb,_0x8134fa){const _0x3297f4=_0x3c4d26;super(),u(this,_0x3297f4(0xdf),new Map()),(this[_0x3297f4(0xeb)]=_0x1130e7,this[_0x3297f4(0xfc)]=_0x381ddb,this[_0x3297f4(0x10c)]=_0x8134fa,this['_init']());}async[_0x3c4d26(0xa9)](_0x4f68f7){const _0x319794=_0x3c4d26;return this['_entities'][_0x319794(0xb2)](_0x4f68f7)||await this[_0x319794(0x142)](_0x4f68f7),this['_entities']['get'](_0x4f68f7);}['getLiveShareCoordinatorSync'](_0x261442){const _0x2cac2c=_0x3c4d26;var _0x5a7770;return(_0x5a7770=this[_0x2cac2c(0xdf)][_0x2cac2c(0xb7)](_0x261442))!=null?_0x5a7770:null;}[_0x3c4d26(0xa7)](){const _0x28d80b=_0x3c4d26;this[_0x28d80b(0xeb)][_0x28d80b(0x12a)](_0x152fad[_0x28d80b(0x135)])[_0x28d80b(0xbb)](_0xb6c43e(this[_0x28d80b(0x117)]))[_0x28d80b(0xcc)](async _0x17f6ad=>{const _0x52315b=_0x28d80b,_0x1ddc06=_0x17f6ad['getUnitId']();this['_entities']['has'](_0x1ddc06)||this[_0x52315b(0x142)](_0x1ddc06);}),this[_0x28d80b(0xeb)][_0x28d80b(0xfb)](_0x152fad[_0x28d80b(0x135)])[_0x28d80b(0xbb)](_0xb6c43e(this['dispose$']))[_0x28d80b(0xcc)](_0x41d0d4=>{const _0x2918c1=_0x28d80b,_0xafe8b7=_0x41d0d4[_0x2918c1(0x129)](),_0x67f92b=this['_entities']['get'](_0xafe8b7);_0x67f92b==null||_0x67f92b[_0x2918c1(0x125)]();});}async['_startLiveShareCoordinator'](_0x59b2a2){const _0x4c2719=_0x3c4d26,_0x57853c=await this[_0x4c2719(0x10c)][_0x4c2719(0xd2)](_0x59b2a2),_0x35c996=this[_0x4c2719(0xfc)]['createInstance'](N,_0x59b2a2,_0x57853c);return _0x35c996[_0x4c2719(0xcd)](),this['_entities'][_0x4c2719(0x118)](_0x59b2a2,_0x35c996),_0x35c996;}};S=Y([_(0x0,_0x4761e9),_(0x1,_0x1668bc(_0x465048)),_(0x2,_0x1668bc(_0xad0194))],S);var c=(_0x324eee=>(_0x324eee[_0x3c4d26(0xc1)]='offline',_0x324eee[_0x3c4d26(0xf8)]=_0x3c4d26(0x115),_0x324eee[_0x3c4d26(0xfe)]=_0x3c4d26(0xf2),_0x324eee['NOT_FOLLOWING']=_0x3c4d26(0xc9),_0x324eee['PRESENTING']='presenting',_0x324eee))(c||{});const Ce=_0x3c4d26(0x148),De=0xc8;let N=class extends _0x32eff8{constructor(_0x55baff,_0x1611db,_0x108f5a,_0x1fe790,_0x1d08ce){const _0x5e2d5a=_0x3c4d26;super(),u(this,_0x5e2d5a(0xd3),new _0x43bb1a(_0x5e2d5a(0x115))),u(this,_0x5e2d5a(0x147),this[_0x5e2d5a(0xd3)][_0x5e2d5a(0x136)]()),u(this,_0x5e2d5a(0xa7),!0x1),u(this,_0x5e2d5a(0x145),null),u(this,_0x5e2d5a(0x143),null),(this[_0x5e2d5a(0x149)]=_0x55baff,this[_0x5e2d5a(0xd9)]=_0x1611db,this['_configService']=_0x108f5a,this[_0x5e2d5a(0x141)]=_0x1fe790,this['_commandService']=_0x1d08ce);}get[_0x3c4d26(0xe4)](){const _0x414847=_0x3c4d26;return this[_0x414847(0xd3)][_0x414847(0x128)]();}[_0x3c4d26(0x125)](){const _0x2e2a16=_0x3c4d26;var _0x490f93;(_0x490f93=this['_commandDisposable'])==null||_0x490f93[_0x2e2a16(0x125)](),this[_0x2e2a16(0xd3)][_0x2e2a16(0xba)]('idle'),this[_0x2e2a16(0xd3)][_0x2e2a16(0x120)]();}['getStatus'](){const _0x33dd97=_0x3c4d26;return this[_0x33dd97(0xe4)];}['init'](){const _0x347d6e=_0x3c4d26;this[_0x347d6e(0xa7)]||(this[_0x347d6e(0xa7)]=!0x0,this[_0x347d6e(0xd9)][_0x347d6e(0xef)][_0x347d6e(0xbb)](_0xb6c43e(this[_0x347d6e(0x117)]))[_0x347d6e(0xcc)](_0x510c85=>{const _0xc2cb89=_0x347d6e;switch(_0x510c85){case _0x33d898[_0xc2cb89(0xc1)]:this[_0xc2cb89(0x107)]();break;case _0x33d898[_0xc2cb89(0x14b)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x347d6e(0x126)][_0x347d6e(0xbb)](_0xb6c43e(this[_0x347d6e(0x117)]))[_0x347d6e(0xcc)](_0x14957e=>{const _0x32624b=_0x347d6e,{eventID:_0x465ac7}=_0x14957e;switch(_0x465ac7){case _0x27f01f[_0x32624b(0xd8)]:this[_0x32624b(0x110)](_0x14957e);break;case _0x27f01f['LIVESHARE_OPERATION']:this[_0x32624b(0xec)](_0x14957e);break;case _0x27f01f[_0x32624b(0x10d)]:this[_0x32624b(0xf6)]();break;case _0x27f01f[_0x32624b(0x10f)]:this[_0x32624b(0xbd)](_0x14957e);break;}}));}[_0x3c4d26(0x13b)](){const _0x5c06d7=_0x3c4d26;this[_0x5c06d7(0xd9)][_0x5c06d7(0xac)]({'eventID':_0x27f01f[_0x5c06d7(0xe9)],'data':{'unitID':this[_0x5c06d7(0x149)],'userID':this['_collabSession'][_0x5c06d7(0xfa)]()}},this[_0x5c06d7(0x149)]);}[_0x3c4d26(0x130)](){const _0x3e5788=_0x3c4d26;this['_status']===_0x3e5788(0x13e)&&(this[_0x3e5788(0xd3)][_0x3e5788(0xba)](_0x3e5788(0x115)),this['_collabSession'][_0x3e5788(0xac)]({'eventID':_0x27f01f['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e5788(0x149)]));}[_0x3c4d26(0x140)](){const _0x21b915=_0x3c4d26;this[_0x21b915(0xe4)]===_0x21b915(0xc9)&&(this[_0x21b915(0xd3)][_0x21b915(0xba)](_0x21b915(0xf2)),this[_0x21b915(0x106)]());}[_0x3c4d26(0xea)](){const _0x9e7676=_0x3c4d26;this[_0x9e7676(0xe4)]==='following'&&this[_0x9e7676(0xda)]();}[_0x3c4d26(0x110)](_0x2a2ea6){const _0x366d1e=_0x3c4d26,{presenter:_0x442af7}=_0x2a2ea6[_0x366d1e(0xc0)],_0x4d956e=this[_0x366d1e(0xd9)]['getMemberID']();this[_0x366d1e(0x143)]=_0x442af7,_0x442af7===_0x4d956e?(this[_0x366d1e(0xda)](),this[_0x366d1e(0xb3)]()):this['_status']!==_0x366d1e(0xc9)&&(this[_0x366d1e(0xe3)](),this[_0x366d1e(0x106)]());}[_0x3c4d26(0x102)](){const _0x4bda21=_0x3c4d26,_0x49ba97={'eventID':_0x27f01f[_0x4bda21(0x14c)]};this[_0x4bda21(0xd9)]['send'](_0x49ba97,this['_unitID']);}[_0x3c4d26(0xf6)](){const _0x4dc501=_0x3c4d26;this[_0x4dc501(0x143)]=null,this[_0x4dc501(0xe4)]!=='presenting'&&this[_0x4dc501(0x11d)]();}['_handleNewChangeSets'](_0x5bf6ea){const _0x555bc3=_0x3c4d26;if(this[_0x555bc3(0xe4)]===_0x555bc3(0xf2)&&this['_presenter']===_0x5bf6ea['data'][_0x555bc3(0xc8)]){const _0x238534=_0x5e01ee(_0x5bf6ea[_0x555bc3(0xc0)])[_0x555bc3(0x127)][_0x555bc3(0xe0)]()[_0x555bc3(0x13f)](_0x1076b8=>_0x1076b8['id']===_0x4dfec7['id']);if(_0x238534){const _0xf64127=_0x238534['params'][_0x555bc3(0xd4)],_0x3f9390=_0x238534['params'][_0x555bc3(0x13c)]['id'];setTimeout(()=>{const _0x543a0c=_0x555bc3;this['_commandService'][_0x543a0c(0xb8)](_0x229740['id'],{'unitId':_0xf64127,'subUnitId':_0x3f9390},{'fromCollab':!0x0});});}}}[_0x3c4d26(0xb3)](){const _0x3e71e4=_0x3c4d26;this[_0x3e71e4(0xd3)][_0x3e71e4(0xba)](_0x3e71e4(0x13e));const _0x2a88ac=new Map(),_0x4e1955=this[_0x3e71e4(0x145)]=new _0x2cef5d();_0x4e1955[_0x3e71e4(0x119)](_0x4d1cb7(()=>{const _0x5d5b78=_0x3e71e4;_0x2a88ac['forEach'](_0x1a6fbf=>_0x1a6fbf['complete']()),_0x2a88ac[_0x5d5b78(0x14a)]();})),_0x4e1955[_0x3e71e4(0x119)](this[_0x3e71e4(0xb4)]['onCommandExecuted'](_0x4f67a9=>{const _0x425d30=_0x3e71e4;var _0x3436a6;if(_0x4f67a9[_0x425d30(0x114)]!==_0x480eb2['OPERATION']||!this[_0x425d30(0x141)][_0x425d30(0xcf)](_0x4f67a9['id']))return;const {id:_0x2400b4}=_0x4f67a9;let _0x2dd10a;_0x2a88ac[_0x425d30(0xb2)](_0x2400b4)?_0x2dd10a=_0x2a88ac['get'](_0x2400b4):(_0x2dd10a=new _0x5d2aa3(),_0x2a88ac['set'](_0x2400b4,_0x2dd10a),_0x2dd10a[_0x425d30(0xbb)](_0x3e47f7((_0x3436a6=this[_0x425d30(0xb5)][_0x425d30(0x10b)](Ce))!=null?_0x3436a6:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x425d30(0xcc)](_0x230643=>{const _0x33f4b9=_0x425d30;this[_0x33f4b9(0xd9)][_0x33f4b9(0xac)]({'eventID':_0x27f01f[_0x33f4b9(0x131)],'data':{'unitID':this[_0x33f4b9(0x149)],'operations':{[_0x230643['id']]:{'id':_0x230643['id'],'params':JSON[_0x33f4b9(0xf9)](_0x230643['params'])}}}},this['_unitID']);})),_0x2dd10a['next'](_0x4f67a9);})),this['_liveShareService']['getInitialStates'](this[_0x3e71e4(0x149)])[_0x3e71e4(0x109)](_0x428b9c=>this[_0x3e71e4(0xd9)][_0x3e71e4(0xac)]({'eventID':_0x27f01f[_0x3e71e4(0x131)],'data':{'unitID':this[_0x3e71e4(0x149)],'operations':{[_0x428b9c['id']]:{'id':_0x428b9c['id'],'params':JSON[_0x3e71e4(0xf9)](_0x428b9c[_0x3e71e4(0x105)])}}}},this[_0x3e71e4(0x149)]));}[_0x3c4d26(0xe3)](){const _0x202bc7=_0x3c4d26;var _0x1f4d4f;this[_0x202bc7(0xd3)][_0x202bc7(0xba)]('idle'),(_0x1f4d4f=this['_commandDisposable'])==null||_0x1f4d4f[_0x202bc7(0x125)](),this[_0x202bc7(0x145)]=null;}[_0x3c4d26(0x106)](){const _0x9a383b=_0x3c4d26;var _0x49474d;(_0x49474d=this['_commandDisposable'])==null||_0x49474d[_0x9a383b(0x125)](),this['_status$'][_0x9a383b(0xba)]('following');}[_0x3c4d26(0x11d)](){const _0x3815ed=_0x3c4d26;var _0x50b522;this[_0x3815ed(0xd3)][_0x3815ed(0xba)](_0x3815ed(0x115)),(_0x50b522=this[_0x3815ed(0x145)])==null||_0x50b522[_0x3815ed(0x125)](),this[_0x3815ed(0x145)]=null;}[_0x3c4d26(0xda)](){const _0x272418=_0x3c4d26;var _0x33e63a;this['_status$'][_0x272418(0xba)]('not-following'),(_0x33e63a=this[_0x272418(0x145)])==null||_0x33e63a[_0x272418(0x125)]();}['_handleOperation'](_0x40a3f3){const _0xc53a88=_0x3c4d26;if(['presenting',_0xc53a88(0xc9),_0xc53a88(0xbf)][_0xc53a88(0xee)](this['_status'])||!_0x40a3f3[_0xc53a88(0xc0)][_0xc53a88(0x144)]||_0x40a3f3[_0xc53a88(0xc0)]['presenter']===this['_collabSession'][_0xc53a88(0xfa)]())return;this[_0xc53a88(0xe4)]==='idle'&&this[_0xc53a88(0x106)]();const _0x5acf65=_0x40a3f3[_0xc53a88(0xc0)][_0xc53a88(0xad)];Object['values'](_0x5acf65)[_0xc53a88(0x109)](_0x27fc08=>{const _0x2de8aa=_0xc53a88;this[_0x2de8aa(0xb4)][_0x2de8aa(0xb8)](_0x27fc08['id'],_0x27fc08[_0x2de8aa(0x105)]?JSON[_0x2de8aa(0x12c)](_0x27fc08[_0x2de8aa(0x105)]):null,{'fromCollab':!0x0});});}[_0x3c4d26(0x107)](){const _0x29ada2=_0x3c4d26;var _0x560c99;this[_0x29ada2(0xd3)][_0x29ada2(0xba)](_0x29ada2(0xbf)),(_0x560c99=this['_commandDisposable'])==null||_0x560c99[_0x29ada2(0x125)]();}[_0x3c4d26(0xc5)](){const _0xd9f80e=_0x3c4d26;this[_0xd9f80e(0xd3)][_0xd9f80e(0xba)](_0xd9f80e(0x115)),this[_0xd9f80e(0x102)]();}};N=Y([_(0x2,_0x470b5c),_(0x3,_0x1668bc(L)),_(0x4,_0x154d48)],N);function Le(){const _0x18b53d=_0x3c4d26,_0x48e45d=_0x1a8a0d(S),_0x1a1d3a=_0x1a8a0d(_0x4761e9),_0x515ad1=_0x59b5ab(()=>_0x1a1d3a[_0x18b53d(0x13a)](_0x152fad[_0x18b53d(0x135)]),void 0x0,!0x1,[]),[_0x34dc5e,_0x270499]=_0x45446d(null),[_0x137c28,_0x318fb4]=_0x45446d(c['IDLE']),_0x85a5e4=_0x1b9081(null);return _0x15928b(()=>(_0x515ad1&&_0x48e45d[_0x18b53d(0xa9)](_0x515ad1[_0x18b53d(0x129)]())[_0x18b53d(0xed)](_0x1295e4=>{const _0xbccb9c=_0x18b53d;_0x270499(_0x1295e4),_0x85a5e4[_0xbccb9c(0xa4)]=_0x1295e4[_0xbccb9c(0x147)][_0xbccb9c(0xcc)](_0x338496=>{_0x318fb4(_0x338496);});}),()=>{const _0x382495=_0x18b53d;var _0x3655a8;(_0x3655a8=_0x85a5e4[_0x382495(0xa4)])==null||_0x3655a8[_0x382495(0x146)](),_0x85a5e4['current']=null;}),[_0x515ad1,_0x48e45d]),_0x34dc5e?_0x297ed2(_0x2571f0,{'align':_0x18b53d(0xe5),'disabled':_0x137c28===c['OFFLINE'],'className':_0x18b53d(0x11c),'overlay':_0x297ed2(Re,{'status':_0x137c28,'coordinator':_0x34dc5e}),'children':_0x297ed2(_0x18b53d(0x10e),{'className':_0x43444c(_0x18b53d(0xff),{'univer-cursor-not-allowed':_0x137c28===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x137c28!==c['OFFLINE']}),'type':_0x18b53d(0x10e),'children':_0x297ed2(W,{'className':_0x18b53d(0x12d)})})}):null;}function Re(_0x3a612a){const _0x2078d4=_0x3c4d26,{status:_0x4a74cf,coordinator:_0xd31a3c}=_0x3a612a;switch(_0x4a74cf){case c[_0x2078d4(0xf8)]:return _0x297ed2($e,{'coordinator':_0xd31a3c});case c[_0x2078d4(0xfe)]:return _0x297ed2(xe,{'coordinator':_0xd31a3c});case c[_0x2078d4(0x104)]:return _0x297ed2(Pe,{'coordinator':_0xd31a3c});case c[_0x2078d4(0xc1)]:return _0x297ed2(Te,{});case c[_0x2078d4(0x11a)]:return _0x297ed2(Ae,{'coordinator':_0xd31a3c});default:return null;}}function $e(_0x542678){const _0x39a2f8=_0x3c4d26,{coordinator:_0x1a5542}=_0x542678;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x39a2f8(0xd5),{'className':_0x39a2f8(0x150),'children':_0x39a2f8(0x113)}),_0x297ed2(_0x262bb5,{'onClick':()=>_0x1a5542[_0x39a2f8(0x13b)](),'children':_0x39a2f8(0x11e)})]});}function xe(_0x5b52c6){const _0x2dfd0a=_0x3c4d26,{coordinator:_0x8ed1ea}=_0x5b52c6;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x2dfd0a(0xd5),{'className':_0x2dfd0a(0x150),'children':_0x2dfd0a(0xf5)}),_0x297ed2(_0x262bb5,{'onClick':()=>_0x8ed1ea['stopFollowing'](),'children':_0x2dfd0a(0xe6)})]});}function Pe(_0x43531d){const _0xe1135b=_0x3c4d26,{coordinator:_0x46a62b}=_0x43531d;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0xe1135b(0xd5),{'className':_0xe1135b(0x150),'children':_0xe1135b(0xf0)}),_0x297ed2(_0x262bb5,{'variant':_0xe1135b(0x14f),'onClick':()=>_0x46a62b[_0xe1135b(0x140)](),'children':_0xe1135b(0x10a)})]});}function Ae(_0x5b88bc){const _0x3b6018=_0x3c4d26,{coordinator:_0x5a4c6d}=_0x5b88bc;return _0x35ad9f(_0x20d81a,{'children':[_0x297ed2(_0x3b6018(0xd5),{'className':_0x3b6018(0x150),'children':_0x3b6018(0x100)}),_0x297ed2(_0x262bb5,{'variant':_0x3b6018(0xc2),'onClick':()=>_0x5a4c6d[_0x3b6018(0x130)](),'children':_0x3b6018(0x108)})]});}function Te(){const _0x4ad64f=_0x3c4d26;return _0x297ed2(_0x20d81a,{'children':_0x4ad64f(0xd1)});}var Fe=Object[_0x3c4d26(0x111)],He=(_0x53d57b,_0x497c25,_0x3c8ba5,_0x3476e1)=>{for(var _0x1fe884=_0x3476e1>0x1?void 0x0:_0x3476e1?Fe(_0x497c25,_0x3c8ba5):_0x497c25,_0xa70e93=_0x53d57b['length']-0x1,_0x251851;_0xa70e93>=0x0;_0xa70e93--)(_0x251851=_0x53d57b[_0xa70e93])&&(_0x1fe884=_0x251851(_0x1fe884)||_0x1fe884);return _0x1fe884;},A=(_0x1755e1,_0x4191fa)=>(_0x1f5d4b,_0x460ddf)=>_0x4191fa(_0x1f5d4b,_0x460ddf,_0x1755e1);let m=class extends _0x167de9{constructor(_0x4eda34,_0x2340ce){const _0x4ff14c=_0x3c4d26;super(),this[_0x4ff14c(0xfc)]=_0x4eda34,this[_0x4ff14c(0xd0)]=_0x2340ce,this['_mountLiveShare']();}[_0x3c4d26(0xa6)](){const _0x3e2761=_0x3c4d26;this[_0x3e2761(0xa5)](this[_0x3e2761(0xd0)][_0x3e2761(0x122)](_0x13b76f[_0x3e2761(0x116)],()=>_0x412f64(Le,this[_0x3e2761(0xfc)])));}};m=He([A(0x0,_0x1668bc(_0x465048)),A(0x1,_0x172fbc)],m);const ye=_0x3c4d26(0xc6),T={};var Ue=Object[_0x3c4d26(0x111)],Ve=(_0x38c75d,_0x2f2f86,_0x4db672,_0xdfa37)=>{const _0x2a9401=_0x3c4d26;for(var _0x230c07=_0xdfa37>0x1?void 0x0:_0xdfa37?Ue(_0x2f2f86,_0x4db672):_0x2f2f86,_0x4d6b0e=_0x38c75d[_0x2a9401(0xb1)]-0x1,_0x2954d2;_0x4d6b0e>=0x0;_0x4d6b0e--)(_0x2954d2=_0x38c75d[_0x4d6b0e])&&(_0x230c07=_0x2954d2(_0x230c07)||_0x230c07);return _0x230c07;},je=(_0x2761f8,_0x4220cd)=>(_0x461ee3,_0x58036a)=>_0x4220cd(_0x461ee3,_0x58036a,_0x2761f8);let I=class extends _0x167de9{constructor(_0x2a65d0){const _0x49ca69=_0x3c4d26;super(),this[_0x49ca69(0x141)]=_0x2a65d0,this[_0x49ca69(0xa7)]();}[_0x3c4d26(0xa7)](){const _0x52b65d=_0x3c4d26;[_0x477fa1['id'],_0x1426bd['id'],_0x229740['id']][_0x52b65d(0x109)](_0x44551a=>{const _0x3829a1=_0x52b65d;this['disposeWithMe'](this['_liveShareService'][_0x3829a1(0xe7)](_0x44551a));});}};I=Ve([je(0x0,_0x1668bc(L))],I);var Me=Object['defineProperty'],ke=Object[_0x3c4d26(0x111)],Ge=(_0x552387,_0x4a1693,_0xc41582)=>_0x4a1693 in _0x552387?Me(_0x552387,_0x4a1693,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc41582}):_0x552387[_0x4a1693]=_0xc41582,We=(_0x1c7235,_0x53ca88,_0x23f1e4,_0x337006)=>{const _0x55521c=_0x3c4d26;for(var _0x4bca3f=_0x337006>0x1?void 0x0:_0x337006?ke(_0x53ca88,_0x23f1e4):_0x53ca88,_0x318f02=_0x1c7235[_0x55521c(0xb1)]-0x1,_0x576d87;_0x318f02>=0x0;_0x318f02--)(_0x576d87=_0x1c7235[_0x318f02])&&(_0x4bca3f=_0x576d87(_0x4bca3f)||_0x4bca3f);return _0x4bca3f;},F=(_0x818b45,_0x2a99a3)=>(_0x13d330,_0x3c945f)=>_0x2a99a3(_0x13d330,_0x3c945f,_0x818b45),B=(_0x19c8c9,_0x1b64ec,_0x14ffa9)=>Ge(_0x19c8c9,typeof _0x1b64ec!='symbol'?_0x1b64ec+'':_0x1b64ec,_0x14ffa9);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x8999f6{constructor(_0x8fc644=T,_0x5c3784,_0x375c8a){const _0x310cb4=_0x3c4d26;super(),this[_0x310cb4(0x133)]=_0x8fc644,this[_0x310cb4(0xfc)]=_0x5c3784,this[_0x310cb4(0xb5)]=_0x375c8a;const {..._0x233474}=_0x5cf637({},T,this[_0x310cb4(0x133)]);this['_configService']['setConfig'](ye,_0x233474);}['onStarting'](){const _0x12a848=_0x3c4d26;_0x385419(this[_0x12a848(0xfc)],_0xc75ac0([[L],[S],[I],[m]],this[_0x12a848(0x133)][_0x12a848(0x11f)])),_0xaa1b3f(this['_injector'],[[I]]);}[_0x3c4d26(0x124)](){_0xaa1b3f(this['_injector'],[[m]]);}};B(b,_0x3c4d26(0x114),_0x152fad[_0x3c4d26(0xdb)]),B(b,'pluginName',Ye),b=We([_0x3124b9(_0x57a458),F(0x1,_0x1668bc(_0x465048)),F(0x2,_0x470b5c)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x28f5(_0x184df0,_0x3f185c){_0x184df0=_0x184df0-0xd5;const _0x235fb0=_0x235f();let _0x28f57f=_0x235fb0[_0x184df0];return _0x28f57f;}(function(_0xa2cf64,_0x1e4169){const _0x187cc1=_0x28f5,_0x25938c=_0xa2cf64();while(!![]){try{const _0x484a5e=parseInt(_0x187cc1(0xf3))/0x1+parseInt(_0x187cc1(0xdd))/0x2*(parseInt(_0x187cc1(0xe5))/0x3)+-parseInt(_0x187cc1(0xe6))/0x4+-parseInt(_0x187cc1(0xf7))/0x5*(parseInt(_0x187cc1(0xdb))/0x6)+parseInt(_0x187cc1(0xfd))/0x7+-parseInt(_0x187cc1(0xee))/0x8*(-parseInt(_0x187cc1(0xeb))/0x9)+parseInt(_0x187cc1(0xf5))/0xa;if(_0x484a5e===_0x1e4169)break;else _0x25938c['push'](_0x25938c['shift']());}catch(_0x5c05bd){_0x25938c['push'](_0x25938c['shift']());}}}(_0x235f,0xc4522),function(_0x3b3a65,_0x3bf6ab){const _0x51b025=_0x28f5;typeof exports==_0x51b025(0xe3)&&typeof module<'u'?_0x3bf6ab(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x51b025(0xf4)&&define['amd']?define([_0x51b025(0xd5),_0x51b025(0xed),'@univerjs/core/facade'],_0x3bf6ab):(_0x3b3a65=typeof globalThis<'u'?globalThis:_0x3b3a65||self,_0x3bf6ab(_0x3b3a65[_0x51b025(0xe7)],_0x3b3a65[_0x51b025(0xd9)],_0x3b3a65['UniverCoreFacade']));}(this,function(_0xa6f7af,_0x43f5f5,_0x1aed6b){'use strict';const _0x19077e=_0x28f5;var _0x2af0ae=Object[_0x19077e(0xde)],_0x413527=(_0x1147e2,_0x2a870f,_0x4aad46)=>_0x2a870f in _0x1147e2?_0x2af0ae(_0x1147e2,_0x2a870f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4aad46}):_0x1147e2[_0x2a870f]=_0x4aad46,_0x5f48db=(_0x54c6bf,_0x1e4804,_0x315b1c)=>_0x413527(_0x54c6bf,typeof _0x1e4804!=_0x19077e(0xe8)?_0x1e4804+'':_0x1e4804,_0x315b1c);class _0x38f409 extends _0x1aed6b['FUniver']{constructor(){const _0x3209f9=_0x19077e;super(...arguments),_0x5f48db(this,_0x3209f9(0xf0));}[_0x19077e(0xe2)](_0x58e9fa){const _0x3d8e3d=_0x19077e;this[_0x3d8e3d(0xf0)]=_0x58e9fa[_0x3d8e3d(0xf8)](_0xa6f7af[_0x3d8e3d(0xfc)]);}['getLiveShareStatus'](){const _0x3983e=_0x19077e;var _0x3c419e;const _0x41fe83=this['_injector'][_0x3983e(0xf8)](_0x43f5f5[_0x3983e(0xef)])[_0x3983e(0xe0)](_0x43f5f5['UniverInstanceType'][_0x3983e(0xf9)]);if(!_0x41fe83)throw new Error(_0x3983e(0xe9));const _0x5879bd=_0x41fe83[_0x3983e(0xf2)](),_0x5b73a8=this[_0x3983e(0xf0)][_0x3983e(0xf6)](_0x5879bd);return(_0x3c419e=_0x5b73a8==null?void 0x0:_0x5b73a8[_0x3983e(0xd7)]())!=null?_0x3c419e:_0xa6f7af[_0x3983e(0xdf)]['IDLE'];}[_0x19077e(0xe4)](){const _0xa60404=_0x19077e,_0x16e04f=this['_injector']['get'](_0x43f5f5[_0xa60404(0xef)])[_0xa60404(0xe0)](_0x43f5f5[_0xa60404(0xdc)]['UNIVER_SHEET']);if(!_0x16e04f)throw new Error(_0xa60404(0xe9));const _0x35758b=_0x16e04f[_0xa60404(0xf2)](),_0x1f2fe1=this[_0xa60404(0xf0)]['getLiveShareCoordinatorSync'](_0x35758b);if(!_0x1f2fe1)throw new Error(_0xa60404(0xfa));_0x1f2fe1[_0xa60404(0xe4)]();}['stopFollowing'](){const _0x54f086=_0x19077e,_0x37bb5d=this[_0x54f086(0xda)][_0x54f086(0xf8)](_0x43f5f5[_0x54f086(0xef)])[_0x54f086(0xe0)](_0x43f5f5[_0x54f086(0xdc)]['UNIVER_SHEET']);if(!_0x37bb5d)throw new Error(_0x54f086(0xe9));const _0x2fa20d=_0x37bb5d[_0x54f086(0xf2)](),_0x3e5fd3=this[_0x54f086(0xf0)][_0x54f086(0xf6)](_0x2fa20d);if(!_0x3e5fd3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3e5fd3[_0x54f086(0xd6)]();}[_0x19077e(0xf1)](){const _0x57d951=_0x19077e,_0x10a702=this[_0x57d951(0xda)][_0x57d951(0xf8)](_0x43f5f5['IUniverInstanceService'])[_0x57d951(0xe0)](_0x43f5f5[_0x57d951(0xdc)][_0x57d951(0xf9)]);if(!_0x10a702)throw new Error(_0x57d951(0xe9));const _0x9cbea4=_0x10a702['getUnitId'](),_0x494890=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x9cbea4);if(!_0x494890)throw new Error(_0x57d951(0xfa));_0x494890[_0x57d951(0xfe)]();}[_0x19077e(0xfb)](){const _0x1041b4=_0x19077e,_0x105b3c=this[_0x1041b4(0xda)][_0x1041b4(0xf8)](_0x43f5f5[_0x1041b4(0xef)])[_0x1041b4(0xe0)](_0x43f5f5[_0x1041b4(0xdc)][_0x1041b4(0xf9)]);if(!_0x105b3c)throw new Error(_0x1041b4(0xe9));const _0x33668d=_0x105b3c['getUnitId'](),_0x1219e6=this['_liveShareController'][_0x1041b4(0xf6)](_0x33668d);if(!_0x1219e6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1219e6[_0x1041b4(0xfb)]();}}_0x1aed6b[_0x19077e(0xea)]['extend'](_0x38f409);class _0x422807 extends _0x1aed6b[_0x19077e(0xec)]{get[_0x19077e(0xe1)](){return _0xa6f7af['LiveShareStatus'];}}_0x1aed6b[_0x19077e(0xec)][_0x19077e(0xd8)](_0x422807);}));function _0x235f(){const _0x4eb953=['20312980NMRnFs','getLiveShareCoordinatorSync','6185UwwLEb','get','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','LiveShareController','390782hQjBoj','tryStartPresenting','@univerjs-pro/live-share','stopFollowing','getStatus','extend','UniverCore','_injector','5838YWIbEQ','UniverInstanceType','26cBMWzb','defineProperty','LiveShareStatus','getCurrentUnitOfType','LiveShareStatusEnum','_initialize','object','startFollowing','50445rUiKTt','2323984eklsbL','UniverProLiveShare','symbol','No\x20active\x20workbook\x20found.','FUniver','380313vEznzp','FEnum','@univerjs/core','8mHtJVJ','IUniverInstanceService','_liveShareController','startPresenting','getUnitId','240751uxzKww','function'];_0x235f=function(){return _0x4eb953;};return _0x235f();}
1
+ function _0x4c2f(){const _0x1e5942=['@univerjs/core/facade','No\x20active\x20workbook\x20found.','extend','symbol','1505004JPQDcQ','85480dDuEvR','_injector','2636001ompxiw','@univerjs-pro/live-share','get','3965793fwXMtH','stopFollowing','2165296kOkwTh','40KsexWj','getLiveShareCoordinatorSync','IDLE','UniverProLiveShare','1369139oWkUmH','amd','stopPresenting','@univerjs/core','getUnitId','IUniverInstanceService','function','22858440QTNyve','defineProperty','30ZWEosY','UNIVER_SHEET','LiveShareController','LiveShareStatus','UniverCoreFacade','getStatus','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FEnum','FUniver','UniverInstanceType','132fvPwEQ','_liveShareController','getCurrentUnitOfType','UniverCore'];_0x4c2f=function(){return _0x1e5942;};return _0x4c2f();}function _0x38d2(_0x2599a5,_0x3e71d0){_0x2599a5=_0x2599a5-0xc9;const _0x4c2f86=_0x4c2f();let _0x38d289=_0x4c2f86[_0x2599a5];return _0x38d289;}(function(_0x49bc4f,_0xdf2656){const _0x2c0a22=_0x38d2,_0x2b522e=_0x49bc4f();while(!![]){try{const _0x5d17eb=-parseInt(_0x2c0a22(0xec))/0x1+parseInt(_0x2c0a22(0xdf))/0x2+parseInt(_0x2c0a22(0xe5))/0x3+-parseInt(_0x2c0a22(0xd7))/0x4*(parseInt(_0x2c0a22(0xe0))/0x5)+-parseInt(_0x2c0a22(0xcc))/0x6*(-parseInt(_0x2c0a22(0xe7))/0x7)+-parseInt(_0x2c0a22(0xe8))/0x8*(-parseInt(_0x2c0a22(0xe2))/0x9)+-parseInt(_0x2c0a22(0xca))/0xa;if(_0x5d17eb===_0xdf2656)break;else _0x2b522e['push'](_0x2b522e['shift']());}catch(_0xba75fb){_0x2b522e['push'](_0x2b522e['shift']());}}}(_0x4c2f,0xd383f),function(_0x465d7c,_0x1c0f6f){const _0x260162=_0x38d2;typeof exports=='object'&&typeof module<'u'?_0x1c0f6f(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x260162(0xc9)&&define[_0x260162(0xed)]?define([_0x260162(0xe3),_0x260162(0xef),_0x260162(0xdb)],_0x1c0f6f):(_0x465d7c=typeof globalThis<'u'?globalThis:_0x465d7c||self,_0x1c0f6f(_0x465d7c[_0x260162(0xeb)],_0x465d7c[_0x260162(0xda)],_0x465d7c[_0x260162(0xd0)]));}(this,function(_0x3c541b,_0x30cfad,_0x412860){'use strict';const _0xc7dbd=_0x38d2;var _0x15f87f=Object[_0xc7dbd(0xcb)],_0x5a84ab=(_0xd0197c,_0x2e9c92,_0x4a0edf)=>_0x2e9c92 in _0xd0197c?_0x15f87f(_0xd0197c,_0x2e9c92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a0edf}):_0xd0197c[_0x2e9c92]=_0x4a0edf,_0x14588c=(_0x5c0d3a,_0x4fdb3f,_0x400a6b)=>_0x5a84ab(_0x5c0d3a,typeof _0x4fdb3f!=_0xc7dbd(0xde)?_0x4fdb3f+'':_0x4fdb3f,_0x400a6b);class _0xca363f extends _0x412860[_0xc7dbd(0xd5)]{constructor(){const _0x235780=_0xc7dbd;super(...arguments),_0x14588c(this,_0x235780(0xd8));}['_initialize'](_0x29c64e){const _0x21a1db=_0xc7dbd;this[_0x21a1db(0xd8)]=_0x29c64e[_0x21a1db(0xe4)](_0x3c541b[_0x21a1db(0xce)]);}['getLiveShareStatus'](){const _0x5e0a18=_0xc7dbd;var _0x202440;const _0x290f2a=this[_0x5e0a18(0xe1)][_0x5e0a18(0xe4)](_0x30cfad[_0x5e0a18(0xf1)])[_0x5e0a18(0xd9)](_0x30cfad[_0x5e0a18(0xd6)][_0x5e0a18(0xcd)]);if(!_0x290f2a)throw new Error(_0x5e0a18(0xdc));const _0x411ad0=_0x290f2a['getUnitId'](),_0x500912=this['_liveShareController'][_0x5e0a18(0xe9)](_0x411ad0);return(_0x202440=_0x500912==null?void 0x0:_0x500912[_0x5e0a18(0xd1)]())!=null?_0x202440:_0x3c541b[_0x5e0a18(0xcf)][_0x5e0a18(0xea)];}[_0xc7dbd(0xd2)](){const _0x51043b=_0xc7dbd,_0x1be65c=this['_injector'][_0x51043b(0xe4)](_0x30cfad[_0x51043b(0xf1)])[_0x51043b(0xd9)](_0x30cfad[_0x51043b(0xd6)][_0x51043b(0xcd)]);if(!_0x1be65c)throw new Error(_0x51043b(0xdc));const _0x58937a=_0x1be65c[_0x51043b(0xf0)](),_0x2f4543=this['_liveShareController'][_0x51043b(0xe9)](_0x58937a);if(!_0x2f4543)throw new Error(_0x51043b(0xd3));_0x2f4543['startFollowing']();}[_0xc7dbd(0xe6)](){const _0x2f1125=_0xc7dbd,_0x50c659=this[_0x2f1125(0xe1)][_0x2f1125(0xe4)](_0x30cfad[_0x2f1125(0xf1)])[_0x2f1125(0xd9)](_0x30cfad[_0x2f1125(0xd6)][_0x2f1125(0xcd)]);if(!_0x50c659)throw new Error('No\x20active\x20workbook\x20found.');const _0x2f7acf=_0x50c659[_0x2f1125(0xf0)](),_0x679221=this[_0x2f1125(0xd8)]['getLiveShareCoordinatorSync'](_0x2f7acf);if(!_0x679221)throw new Error(_0x2f1125(0xd3));_0x679221[_0x2f1125(0xe6)]();}['startPresenting'](){const _0x2c3ed0=_0xc7dbd,_0x48eb54=this[_0x2c3ed0(0xe1)][_0x2c3ed0(0xe4)](_0x30cfad[_0x2c3ed0(0xf1)])['getCurrentUnitOfType'](_0x30cfad[_0x2c3ed0(0xd6)]['UNIVER_SHEET']);if(!_0x48eb54)throw new Error('No\x20active\x20workbook\x20found.');const _0x495403=_0x48eb54[_0x2c3ed0(0xf0)](),_0x33c335=this[_0x2c3ed0(0xd8)][_0x2c3ed0(0xe9)](_0x495403);if(!_0x33c335)throw new Error(_0x2c3ed0(0xd3));_0x33c335['tryStartPresenting']();}[_0xc7dbd(0xee)](){const _0x208fc0=_0xc7dbd,_0x3c4160=this[_0x208fc0(0xe1)][_0x208fc0(0xe4)](_0x30cfad[_0x208fc0(0xf1)])['getCurrentUnitOfType'](_0x30cfad[_0x208fc0(0xd6)][_0x208fc0(0xcd)]);if(!_0x3c4160)throw new Error(_0x208fc0(0xdc));const _0x2abba5=_0x3c4160['getUnitId'](),_0x1865ea=this[_0x208fc0(0xd8)][_0x208fc0(0xe9)](_0x2abba5);if(!_0x1865ea)throw new Error(_0x208fc0(0xd3));_0x1865ea[_0x208fc0(0xee)]();}}_0x412860[_0xc7dbd(0xd5)][_0xc7dbd(0xdd)](_0xca363f);class _0x54ad91 extends _0x412860['FEnum']{get['LiveShareStatusEnum'](){const _0x30dd74=_0xc7dbd;return _0x3c541b[_0x30dd74(0xcf)];}}_0x412860[_0xc7dbd(0xd4)][_0xc7dbd(0xdd)](_0x54ad91);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x25a5f1,_0x5ee2a0){const _0x201ab9=_0xf61e,_0x38baec=_0x25a5f1();while(!![]){try{const _0x34a655=parseInt(_0x201ab9(0x22d))/0x1*(-parseInt(_0x201ab9(0x26c))/0x2)+-parseInt(_0x201ab9(0x299))/0x3*(parseInt(_0x201ab9(0x256))/0x4)+parseInt(_0x201ab9(0x2a7))/0x5+-parseInt(_0x201ab9(0x208))/0x6+-parseInt(_0x201ab9(0x222))/0x7*(-parseInt(_0x201ab9(0x1c6))/0x8)+parseInt(_0x201ab9(0x28c))/0x9+-parseInt(_0x201ab9(0x27f))/0xa;if(_0x34a655===_0x5ee2a0)break;else _0x38baec['push'](_0x38baec['shift']());}catch(_0x415d9f){_0x38baec['push'](_0x38baec['shift']());}}}(_0x29b1,0xd7093),function(_0x458a04,_0x3f8ddf){const _0x2c40ce=_0xf61e;typeof exports==_0x2c40ce(0x210)&&typeof module<'u'?_0x3f8ddf(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==_0x2c40ce(0x23a)&&define[_0x2c40ce(0x28a)]?define([_0x2c40ce(0x288),'@univerjs/core','@univerjs/ui',_0x2c40ce(0x25d),_0x2c40ce(0x1bf),_0x2c40ce(0x1e4),_0x2c40ce(0x232),_0x2c40ce(0x1d4),'@univerjs/sheets',_0x2c40ce(0x1c4),_0x2c40ce(0x1ce),_0x2c40ce(0x1e9)],_0x3f8ddf):(_0x458a04=typeof globalThis<'u'?globalThis:_0x458a04||self,_0x3f8ddf(_0x458a04[_0x2c40ce(0x1f2)]={},_0x458a04[_0x2c40ce(0x1fe)],_0x458a04[_0x2c40ce(0x20a)],_0x458a04['React'],_0x458a04[_0x2c40ce(0x202)],_0x458a04[_0x2c40ce(0x207)],_0x458a04[_0x2c40ce(0x274)],_0x458a04[_0x2c40ce(0x1ec)],_0x458a04[_0x2c40ce(0x225)],_0x458a04[_0x2c40ce(0x1c4)],_0x458a04[_0x2c40ce(0x1c4)]['operators'],_0x458a04['UniverSheetsUi']));}(this,function(_0x23ec27,_0xca07eb,_0x1e8daf,_0x15af52,_0x342ef4,_0x9610cd,_0x4c8e7e,_0x54692a,_0x4e04ed,_0x11b20c,_0x46ba07,_0x14ee55){'use strict';const _0x5cf110=_0xf61e;var _0x2675bf=Object[_0x5cf110(0x22f)],_0x406f52=(_0x12c360,_0xf9a733,_0x34d84d)=>_0xf9a733 in _0x12c360?_0x2675bf(_0x12c360,_0xf9a733,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34d84d}):_0x12c360[_0xf9a733]=_0x34d84d,_0x17060a=(_0x220037,_0x3f9782,_0x4a082e)=>_0x406f52(_0x220037,typeof _0x3f9782!=_0x5cf110(0x1c0)?_0x3f9782+'':_0x3f9782,_0x4a082e);function _0x5c4b67({ref:_0xa409c6,..._0x48372f}){const _0x582d4e=_0x5cf110,{icon:_0x4dbada,id:_0x48c800,className:_0x47a455,extend:_0x8a9f3b,..._0x5625ec}=_0x48372f,_0x3006d5=(_0x582d4e(0x26a)+_0x48c800+'\x20'+(_0x47a455||''))[_0x582d4e(0x27e)](),_0x2df804=_0x9610cd[_0x582d4e(0x278)]('_'+_0x50aa13());return _0x450273(_0x4dbada,''+_0x48c800,{'defIds':_0x4dbada['defIds'],'idSuffix':_0x2df804[_0x582d4e(0x2a1)]},{'ref':_0xa409c6,'className':_0x3006d5,..._0x5625ec},_0x8a9f3b);}function _0x450273(_0x57086e,_0x44b1ec,_0x5a8eaa,_0x3a5579,_0x231daf){const _0x79af4=_0x5cf110;return _0x9610cd['createElement'](_0x57086e[_0x79af4(0x23c)],{'key':_0x44b1ec,..._0x5142da(_0x57086e,_0x5a8eaa,_0x231daf),..._0x3a5579},(_0x20ed56(_0x57086e,_0x5a8eaa)[_0x79af4(0x260)]||[])[_0x79af4(0x1cc)]((_0x4b5498,_0x229bb3)=>_0x450273(_0x4b5498,_0x44b1ec+'-'+_0x57086e[_0x79af4(0x23c)]+'-'+_0x229bb3,_0x5a8eaa,void 0x0,_0x231daf)));}function _0x5142da(_0x532f5e,_0xaa98bd,_0x11e88b){const _0x515516=_0x5cf110,_0x2b949b={..._0x532f5e['attrs']};_0x11e88b!=null&&_0x11e88b[_0x515516(0x28d)]&&_0x2b949b['fill']===_0x515516(0x28d)&&(_0x2b949b[_0x515516(0x29f)]=_0x11e88b[_0x515516(0x28d)]),_0x532f5e[_0x515516(0x23c)]==='mask'&&_0x2b949b['id']&&(_0x2b949b['id']=_0x2b949b['id']+_0xaa98bd[_0x515516(0x24a)]),Object['entries'](_0x2b949b)[_0x515516(0x273)](([_0x3c28c8,_0x50a9d8])=>{const _0xba718b=_0x515516;_0x3c28c8===_0xba718b(0x224)&&typeof _0x50a9d8==_0xba718b(0x2a3)&&(_0x2b949b[_0x3c28c8]=_0x50a9d8[_0xba718b(0x262)](/url\(#(.*)\)/,_0xba718b(0x237)+_0xaa98bd['idSuffix']+')'));});const {defIds:_0x50c15f}=_0xaa98bd;return!_0x50c15f||_0x50c15f[_0x515516(0x242)]===0x0||(_0x532f5e[_0x515516(0x23c)]===_0x515516(0x1f6)&&_0x2b949b['xlink:href']&&(_0x2b949b['xlink:href']=_0x2b949b[_0x515516(0x1e8)]+_0xaa98bd[_0x515516(0x24a)]),Object[_0x515516(0x26b)](_0x2b949b)['forEach'](([_0x51ac02,_0x462a2f])=>{const _0x52b64e=_0x515516;typeof _0x462a2f==_0x52b64e(0x2a3)&&(_0x2b949b[_0x51ac02]=_0x462a2f[_0x52b64e(0x262)](/url\(#(.*)\)/,_0x52b64e(0x237)+_0xaa98bd[_0x52b64e(0x24a)]+')'));})),_0x2b949b;}function _0x20ed56(_0x27f1e3,_0x255b24){const _0x421ae=_0x5cf110;var _0x2217ad;const {defIds:_0x35677c}=_0x255b24;return!_0x35677c||_0x35677c[_0x421ae(0x242)]===0x0?_0x27f1e3:_0x27f1e3['tag']===_0x421ae(0x1e3)&&((_0x2217ad=_0x27f1e3[_0x421ae(0x260)])!=null&&_0x2217ad[_0x421ae(0x242)])?{..._0x27f1e3,'children':_0x27f1e3[_0x421ae(0x260)][_0x421ae(0x1cc)](_0x5583a1=>typeof _0x5583a1[_0x421ae(0x21a)]['id']==_0x421ae(0x2a3)&&_0x35677c&&_0x35677c[_0x421ae(0x227)](_0x5583a1[_0x421ae(0x21a)]['id'])?{..._0x5583a1,'attrs':{..._0x5583a1[_0x421ae(0x21a)],'id':_0x5583a1[_0x421ae(0x21a)]['id']+_0x255b24[_0x421ae(0x24a)]}}:_0x5583a1)}:_0x27f1e3;}function _0x50aa13(){const _0x7bb693=_0x5cf110;return Math[_0x7bb693(0x1eb)]()['toString'](0x24)[_0x7bb693(0x1fb)](0x2,0x8);}_0x5c4b67['displayName']=_0x5cf110(0x1dc);const _0x43fcc5={'tag':_0x5cf110(0x235),'attrs':{'xmlns':_0x5cf110(0x1c3),'fill':'none','viewBox':_0x5cf110(0x24b),'width':_0x5cf110(0x244),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5cf110(0x233)}},{'tag':_0x5cf110(0x29c),'attrs':{'fill':_0x5cf110(0x255),'d':_0x5cf110(0x1fd),'fillRule':_0x5cf110(0x1d8),'clipRule':_0x5cf110(0x1d8)}}]},_0x3b017d=_0x9610cd[_0x5cf110(0x28e)](function(_0x47f382,_0x270bd4){const _0x491f7f=_0x5cf110;return _0x9610cd[_0x491f7f(0x1cd)](_0x5c4b67,Object[_0x491f7f(0x266)]({},_0x47f382,{'id':_0x491f7f(0x1e5),'ref':_0x270bd4,'icon':_0x43fcc5}));});_0x3b017d[_0x5cf110(0x226)]=_0x5cf110(0x1c2);class _0x3a905a extends _0xca07eb['Disposable']{constructor(){const _0x12a75e=_0x5cf110;super(...arguments),_0x17060a(this,_0x12a75e(0x1d6),new Set()),_0x17060a(this,'_reporters',new Set());}[_0x5cf110(0x265)](_0x4e6374){const _0xcf561b=_0x5cf110;return this['_sharedOperations'][_0xcf561b(0x2a2)](_0x4e6374),_0xca07eb[_0xcf561b(0x1fa)](()=>this[_0xcf561b(0x1d6)]['delete'](_0x4e6374));}[_0x5cf110(0x263)](_0x86728a){const _0x4c6017=_0x5cf110;return this[_0x4c6017(0x205)]['add'](_0x86728a),_0xca07eb[_0x4c6017(0x1fa)](()=>this[_0x4c6017(0x205)]['delete'](_0x86728a));}[_0x5cf110(0x25f)](_0x1d4349){const _0x16cc50=_0x5cf110;return this['_sharedOperations'][_0x16cc50(0x254)](_0x1d4349);}[_0x5cf110(0x228)](_0x13bced){const _0x217702=_0x5cf110;return Array[_0x217702(0x248)](this[_0x217702(0x205)])[_0x217702(0x1cc)](_0x334fd9=>_0x334fd9(_0x13bced));}}var _0x2c36bf=Object[_0x5cf110(0x1d7)],_0x52d0df=(_0x4f02df,_0x1c1b1a,_0xb3e0ed,_0x29340a)=>{const _0x4a3064=_0x5cf110;for(var _0xd50ba6=_0x29340a>0x1?void 0x0:_0x29340a?_0x2c36bf(_0x1c1b1a,_0xb3e0ed):_0x1c1b1a,_0x322193=_0x4f02df[_0x4a3064(0x242)]-0x1,_0x196a06;_0x322193>=0x0;_0x322193--)(_0x196a06=_0x4f02df[_0x322193])&&(_0xd50ba6=_0x196a06(_0xd50ba6)||_0xd50ba6);return _0xd50ba6;},_0x4353bc=(_0x1a3cd1,_0x4cbfcb)=>(_0x335ce7,_0x134bf1)=>_0x4cbfcb(_0x335ce7,_0x134bf1,_0x1a3cd1);_0x23ec27[_0x5cf110(0x1da)]=class extends _0xca07eb[_0x5cf110(0x270)]{constructor(_0x3ba277,_0x350f42,_0x48d231){const _0x38fa45=_0x5cf110;super(),_0x17060a(this,_0x38fa45(0x294),new Map()),(this['_univerInstanceService']=_0x3ba277,this[_0x38fa45(0x20d)]=_0x350f42,this['_collabSessionService']=_0x48d231,this[_0x38fa45(0x1d9)]());}async[_0x5cf110(0x1fc)](_0x47e71c){const _0xf85602=_0x5cf110;return this[_0xf85602(0x294)][_0xf85602(0x254)](_0x47e71c)||await this[_0xf85602(0x1f0)](_0x47e71c),this['_entities'][_0xf85602(0x1c8)](_0x47e71c);}['getLiveShareCoordinatorSync'](_0x49c7c1){const _0xb21a96=_0x5cf110;var _0x4c9704;return(_0x4c9704=this['_entities'][_0xb21a96(0x1c8)](_0x49c7c1))!=null?_0x4c9704:null;}[_0x5cf110(0x1d9)](){const _0x2af4ad=_0x5cf110;this[_0x2af4ad(0x1ef)][_0x2af4ad(0x221)](_0xca07eb[_0x2af4ad(0x201)][_0x2af4ad(0x1dd)])['pipe'](_0x46ba07[_0x2af4ad(0x298)](this[_0x2af4ad(0x26f)]))[_0x2af4ad(0x231)](async _0x25bc5e=>{const _0x1f6578=_0x2af4ad,_0x57203f=_0x25bc5e['getUnitId']();this['_entities'][_0x1f6578(0x254)](_0x57203f)||this[_0x1f6578(0x1f0)](_0x57203f);}),this[_0x2af4ad(0x1ef)][_0x2af4ad(0x2a8)](_0xca07eb[_0x2af4ad(0x201)][_0x2af4ad(0x1dd)])[_0x2af4ad(0x1d0)](_0x46ba07[_0x2af4ad(0x298)](this['dispose$']))['subscribe'](_0x49a77a=>{const _0xf9b585=_0x2af4ad,_0xc9092f=_0x49a77a[_0xf9b585(0x203)](),_0x1ff1a7=this[_0xf9b585(0x294)][_0xf9b585(0x1c8)](_0xc9092f);_0x1ff1a7==null||_0x1ff1a7[_0xf9b585(0x236)]();});}async[_0x5cf110(0x1f0)](_0x1682fc){const _0x1eba43=_0x5cf110,_0x3b83e5=await this[_0x1eba43(0x24c)][_0x1eba43(0x272)](_0x1682fc),_0x226a7a=this[_0x1eba43(0x20d)][_0x1eba43(0x22b)](_0x23ec27['LiveShareCoordinator'],_0x1682fc,_0x3b83e5);return _0x226a7a['init'](),this['_entities'][_0x1eba43(0x27c)](_0x1682fc,_0x226a7a),_0x226a7a;}},_0x23ec27[_0x5cf110(0x1da)]=_0x52d0df([_0x4353bc(0x0,_0xca07eb[_0x5cf110(0x238)]),_0x4353bc(0x1,_0xca07eb[_0x5cf110(0x253)](_0xca07eb[_0x5cf110(0x29a)])),_0x4353bc(0x2,_0xca07eb[_0x5cf110(0x253)](_0x54692a[_0x5cf110(0x220)]))],_0x23ec27[_0x5cf110(0x1da)]);var _0xaeb0d4=(_0x5421d5=>(_0x5421d5[_0x5cf110(0x229)]='offline',_0x5421d5[_0x5cf110(0x1d3)]='idle',_0x5421d5['FOLLOWING']='following',_0x5421d5['NOT_FOLLOWING']='not-following',_0x5421d5['PRESENTING']='presenting',_0x5421d5))(_0xaeb0d4||{});const _0x17cac1='SAME_OPERATION_SHARE_INTERVAL',_0x43f6ed=0xc8;_0x23ec27[_0x5cf110(0x275)]=class extends _0xca07eb[_0x5cf110(0x270)]{constructor(_0x20a24f,_0xec2cdf,_0x1cb027,_0x3454fb,_0xe7f611){const _0x20ebef=_0x5cf110;super(),_0x17060a(this,'_status$',new _0x11b20c[(_0x20ebef(0x26e))](_0x20ebef(0x26d))),_0x17060a(this,'status$',this[_0x20ebef(0x257)][_0x20ebef(0x2a6)]()),_0x17060a(this,'_init',!0x1),_0x17060a(this,_0x20ebef(0x285),null),_0x17060a(this,_0x20ebef(0x282),null),(this['_unitID']=_0x20a24f,this['_collabSession']=_0xec2cdf,this[_0x20ebef(0x216)]=_0x1cb027,this[_0x20ebef(0x1ed)]=_0x3454fb,this[_0x20ebef(0x251)]=_0xe7f611);}get['_status'](){const _0x17bf16=_0x5cf110;return this[_0x17bf16(0x257)][_0x17bf16(0x27d)]();}[_0x5cf110(0x236)](){const _0x5286a3=_0x5cf110;var _0x557312;(_0x557312=this[_0x5286a3(0x285)])==null||_0x557312[_0x5286a3(0x236)](),this[_0x5286a3(0x257)]['next'](_0x5286a3(0x26d)),this[_0x5286a3(0x257)][_0x5286a3(0x280)]();}[_0x5cf110(0x296)](){const _0x4e321f=_0x5cf110;return this[_0x4e321f(0x286)];}[_0x5cf110(0x27a)](){const _0x154274=_0x5cf110;this['_init']||(this['_init']=!0x0,this[_0x154274(0x25c)][_0x154274(0x29e)][_0x154274(0x1d0)](_0x46ba07[_0x154274(0x298)](this['dispose$']))[_0x154274(0x231)](_0x227de6=>{const _0x2918ee=_0x154274;switch(_0x227de6){case _0x54692a[_0x2918ee(0x25b)][_0x2918ee(0x229)]:this[_0x2918ee(0x2a5)]();break;case _0x54692a[_0x2918ee(0x25b)]['ONLINE']:this[_0x2918ee(0x271)]();break;}}),this[_0x154274(0x25c)][_0x154274(0x268)][_0x154274(0x1d0)](_0x46ba07[_0x154274(0x298)](this[_0x154274(0x26f)]))[_0x154274(0x231)](_0x290b48=>{const _0x48a2bc=_0x154274,{eventID:_0xd04a0b}=_0x290b48;switch(_0xd04a0b){case _0x4c8e7e[_0x48a2bc(0x21f)][_0x48a2bc(0x1db)]:this[_0x48a2bc(0x1be)](_0x290b48);break;case _0x4c8e7e[_0x48a2bc(0x21f)][_0x48a2bc(0x281)]:this[_0x48a2bc(0x246)](_0x290b48);break;case _0x4c8e7e[_0x48a2bc(0x21f)][_0x48a2bc(0x24d)]:this[_0x48a2bc(0x211)]();break;case _0x4c8e7e[_0x48a2bc(0x21f)]['NEW_CHANGESETS']:this[_0x48a2bc(0x247)](_0x290b48);break;}}));}['tryStartPresenting'](){const _0xde401d=_0x5cf110;this[_0xde401d(0x25c)][_0xde401d(0x219)]({'eventID':_0x4c8e7e[_0xde401d(0x21f)][_0xde401d(0x289)],'data':{'unitID':this[_0xde401d(0x21d)],'userID':this[_0xde401d(0x25c)][_0xde401d(0x283)]()}},this[_0xde401d(0x21d)]);}[_0x5cf110(0x25a)](){const _0x2998dc=_0x5cf110;this[_0x2998dc(0x286)]===_0x2998dc(0x290)&&(this[_0x2998dc(0x257)][_0x2998dc(0x23e)](_0x2998dc(0x26d)),this['_collabSession']['send']({'eventID':_0x4c8e7e[_0x2998dc(0x21f)][_0x2998dc(0x24d)],'data':{'unitID':this['_unitID']}},this[_0x2998dc(0x21d)]));}[_0x5cf110(0x241)](){const _0x1c9d2a=_0x5cf110;this[_0x1c9d2a(0x286)]==='not-following'&&(this[_0x1c9d2a(0x257)][_0x1c9d2a(0x23e)](_0x1c9d2a(0x1e2)),this['_startFollowing']());}[_0x5cf110(0x269)](){const _0x79612b=_0x5cf110;this[_0x79612b(0x286)]===_0x79612b(0x1e2)&&this[_0x79612b(0x218)]();}[_0x5cf110(0x1be)](_0x101772){const _0x5f0745=_0x5cf110,{presenter:_0x15b00b}=_0x101772[_0x5f0745(0x258)],_0xf01e1a=this[_0x5f0745(0x25c)]['getMemberID']();this[_0x5f0745(0x282)]=_0x15b00b,_0x15b00b===_0xf01e1a?(this[_0x5f0745(0x218)](),this[_0x5f0745(0x1f5)]()):this[_0x5f0745(0x286)]!==_0x5f0745(0x1e7)&&(this[_0x5f0745(0x1c7)](),this[_0x5f0745(0x240)]());}[_0x5cf110(0x1de)](){const _0x29da72=_0x5cf110,_0x358023={'eventID':_0x4c8e7e[_0x29da72(0x21f)][_0x29da72(0x287)]};this[_0x29da72(0x25c)][_0x29da72(0x219)](_0x358023,this[_0x29da72(0x21d)]);}[_0x5cf110(0x211)](){const _0xed917f=_0x5cf110;this[_0xed917f(0x282)]=null,this[_0xed917f(0x286)]!==_0xed917f(0x290)&&this[_0xed917f(0x252)]();}[_0x5cf110(0x247)](_0x9b8eaf){const _0x31b593=_0x5cf110;if(this['_status']==='following'&&this[_0x31b593(0x282)]===_0x9b8eaf[_0x31b593(0x258)][_0x31b593(0x277)]){const _0xecd6c0=_0x4c8e7e[_0x31b593(0x21e)](_0x9b8eaf[_0x31b593(0x258)])[_0x31b593(0x204)][_0x31b593(0x223)]()[_0x31b593(0x245)](_0x1f95e2=>_0x1f95e2['id']===_0x4e04ed[_0x31b593(0x23b)]['id']);if(_0xecd6c0){const _0x12e974=_0xecd6c0[_0x31b593(0x213)]['unitId'],_0x5cc125=_0xecd6c0['params'][_0x31b593(0x20b)]['id'];setTimeout(()=>{const _0x3fe0d2=_0x31b593;this['_commandService'][_0x3fe0d2(0x28f)](_0x4e04ed['SetWorksheetActiveOperation']['id'],{'unitId':_0x12e974,'subUnitId':_0x5cc125},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x48f3ac=_0x5cf110;this[_0x48f3ac(0x257)][_0x48f3ac(0x23e)](_0x48f3ac(0x290));const _0x408d8f=new Map(),_0xe3f142=this[_0x48f3ac(0x285)]=new _0xca07eb['DisposableCollection']();_0xe3f142[_0x48f3ac(0x2a2)](_0xca07eb[_0x48f3ac(0x1fa)](()=>{const _0x122f60=_0x48f3ac;_0x408d8f[_0x122f60(0x273)](_0x335511=>_0x335511[_0x122f60(0x280)]()),_0x408d8f[_0x122f60(0x284)]();})),_0xe3f142['add'](this[_0x48f3ac(0x251)]['onCommandExecuted'](_0x46fe50=>{const _0x8ef12d=_0x48f3ac;var _0x4a848e;if(_0x46fe50[_0x8ef12d(0x230)]!==_0xca07eb[_0x8ef12d(0x1ff)][_0x8ef12d(0x297)]||!this[_0x8ef12d(0x1ed)][_0x8ef12d(0x25f)](_0x46fe50['id']))return;const {id:_0xaa39c7}=_0x46fe50;let _0x2a36db;_0x408d8f[_0x8ef12d(0x254)](_0xaa39c7)?_0x2a36db=_0x408d8f['get'](_0xaa39c7):(_0x2a36db=new _0x11b20c[(_0x8ef12d(0x250))](),_0x408d8f[_0x8ef12d(0x27c)](_0xaa39c7,_0x2a36db),_0x2a36db[_0x8ef12d(0x1d0)](_0x46ba07['throttleTime']((_0x4a848e=this[_0x8ef12d(0x216)][_0x8ef12d(0x29b)](_0x17cac1))!=null?_0x4a848e:_0x43f6ed,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x8ef12d(0x231)](_0x439d47=>{const _0x5c9e39=_0x8ef12d;this[_0x5c9e39(0x25c)][_0x5c9e39(0x219)]({'eventID':_0x4c8e7e[_0x5c9e39(0x21f)][_0x5c9e39(0x281)],'data':{'unitID':this['_unitID'],'operations':{[_0x439d47['id']]:{'id':_0x439d47['id'],'params':JSON[_0x5c9e39(0x1d5)](_0x439d47[_0x5c9e39(0x213)])}}}},this[_0x5c9e39(0x21d)]);})),_0x2a36db[_0x8ef12d(0x23e)](_0x46fe50);})),this[_0x48f3ac(0x1ed)][_0x48f3ac(0x228)](this[_0x48f3ac(0x21d)])[_0x48f3ac(0x273)](_0x1172c2=>this[_0x48f3ac(0x25c)][_0x48f3ac(0x219)]({'eventID':_0x4c8e7e[_0x48f3ac(0x21f)][_0x48f3ac(0x281)],'data':{'unitID':this[_0x48f3ac(0x21d)],'operations':{[_0x1172c2['id']]:{'id':_0x1172c2['id'],'params':JSON['stringify'](_0x1172c2['params'])}}}},this[_0x48f3ac(0x21d)]));}[_0x5cf110(0x1c7)](){const _0x14f060=_0x5cf110;var _0x6aa7a3;this[_0x14f060(0x257)][_0x14f060(0x23e)](_0x14f060(0x26d)),(_0x6aa7a3=this[_0x14f060(0x285)])==null||_0x6aa7a3['dispose'](),this[_0x14f060(0x285)]=null;}[_0x5cf110(0x240)](){const _0x227506=_0x5cf110;var _0xa7b8ec;(_0xa7b8ec=this[_0x227506(0x285)])==null||_0xa7b8ec[_0x227506(0x236)](),this[_0x227506(0x257)]['next'](_0x227506(0x1e2));}['_beIdle'](){const _0x13888f=_0x5cf110;var _0x53bd30;this[_0x13888f(0x257)]['next'](_0x13888f(0x26d)),(_0x53bd30=this[_0x13888f(0x285)])==null||_0x53bd30[_0x13888f(0x236)](),this[_0x13888f(0x285)]=null;}[_0x5cf110(0x218)](){const _0x307a0a=_0x5cf110;var _0xd0e6fe;this[_0x307a0a(0x257)]['next'](_0x307a0a(0x1e7)),(_0xd0e6fe=this[_0x307a0a(0x285)])==null||_0xd0e6fe['dispose']();}[_0x5cf110(0x246)](_0x2345e9){const _0x51de06=_0x5cf110;if([_0x51de06(0x290),_0x51de06(0x1e7),'offline'][_0x51de06(0x227)](this[_0x51de06(0x286)])||!_0x2345e9[_0x51de06(0x258)][_0x51de06(0x1ea)]||_0x2345e9[_0x51de06(0x258)]['presenter']===this['_collabSession'][_0x51de06(0x283)]())return;this['_status']===_0x51de06(0x26d)&&this[_0x51de06(0x240)]();const _0x229ee5=_0x2345e9['data'][_0x51de06(0x276)];Object[_0x51de06(0x295)](_0x229ee5)['forEach'](_0x4f32a6=>{const _0x1c9892=_0x51de06;this[_0x1c9892(0x251)]['executeCommand'](_0x4f32a6['id'],_0x4f32a6[_0x1c9892(0x213)]?JSON['parse'](_0x4f32a6[_0x1c9892(0x213)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x20d97a=_0x5cf110;var _0x16836c;this[_0x20d97a(0x257)][_0x20d97a(0x23e)]('offline'),(_0x16836c=this[_0x20d97a(0x285)])==null||_0x16836c[_0x20d97a(0x236)]();}['_handleOnline'](){const _0x20f20b=_0x5cf110;this[_0x20f20b(0x257)]['next'](_0x20f20b(0x26d)),this[_0x20f20b(0x1de)]();}},_0x23ec27['LiveShareCoordinator']=_0x52d0df([_0x4353bc(0x2,_0xca07eb[_0x5cf110(0x261)]),_0x4353bc(0x3,_0xca07eb[_0x5cf110(0x253)](_0x3a905a)),_0x4353bc(0x4,_0xca07eb[_0x5cf110(0x249)])],_0x23ec27[_0x5cf110(0x275)]);function _0x103f34(){const _0xab5e84=_0x5cf110,_0xea4017=_0x1e8daf[_0xab5e84(0x279)](_0x23ec27[_0xab5e84(0x1da)]),_0x204db1=_0x1e8daf[_0xab5e84(0x279)](_0xca07eb['IUniverInstanceService']),_0x38abbf=_0x1e8daf[_0xab5e84(0x239)](()=>_0x204db1[_0xab5e84(0x212)](_0xca07eb[_0xab5e84(0x201)][_0xab5e84(0x1dd)]),void 0x0,!0x1,[]),[_0x52aace,_0x1e25b9]=_0x9610cd[_0xab5e84(0x1e0)](null),[_0x271209,_0x2f5214]=_0x9610cd['useState'](_0xaeb0d4['IDLE']),_0xa7d5be=_0x9610cd[_0xab5e84(0x278)](null);return _0x9610cd[_0xab5e84(0x1df)](()=>(_0x38abbf&&_0xea4017[_0xab5e84(0x1fc)](_0x38abbf['getUnitId']())['then'](_0x33aa41=>{const _0x3c2a99=_0xab5e84;_0x1e25b9(_0x33aa41),_0xa7d5be[_0x3c2a99(0x2a1)]=_0x33aa41[_0x3c2a99(0x2a0)]['subscribe'](_0x28df14=>{_0x2f5214(_0x28df14);});}),()=>{const _0x29250a=_0xab5e84;var _0x353159;(_0x353159=_0xa7d5be[_0x29250a(0x2a1)])==null||_0x353159['unsubscribe'](),_0xa7d5be[_0x29250a(0x2a1)]=null;}),[_0x38abbf,_0xea4017]),_0x52aace?_0x15af52[_0xab5e84(0x291)](_0x342ef4[_0xab5e84(0x21c)],{'align':_0xab5e84(0x1d2),'disabled':_0x271209===_0xaeb0d4[_0xab5e84(0x229)],'className':_0xab5e84(0x1e1),'overlay':_0x15af52[_0xab5e84(0x291)](_0x5052eb,{'status':_0x271209,'coordinator':_0x52aace}),'children':_0x15af52['jsx'](_0xab5e84(0x20e),{'className':_0x342ef4[_0xab5e84(0x209)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x271209===_0xaeb0d4['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x271209!==_0xaeb0d4[_0xab5e84(0x229)]}),'type':'button','children':_0x15af52[_0xab5e84(0x291)](_0x3b017d,{'className':_0xab5e84(0x1cb)})})}):null;}function _0x5052eb(_0x54b05c){const _0x2279d2=_0x5cf110,{status:_0x4d887c,coordinator:_0x5b6a71}=_0x54b05c;switch(_0x4d887c){case _0xaeb0d4['IDLE']:return _0x15af52['jsx'](_0xbf44df,{'coordinator':_0x5b6a71});case _0xaeb0d4['FOLLOWING']:return _0x15af52['jsx'](_0x4f3d8b,{'coordinator':_0x5b6a71});case _0xaeb0d4[_0x2279d2(0x28b)]:return _0x15af52[_0x2279d2(0x291)](_0xeb4a5,{'coordinator':_0x5b6a71});case _0xaeb0d4['OFFLINE']:return _0x15af52['jsx'](_0x4d2454,{});case _0xaeb0d4[_0x2279d2(0x22a)]:return _0x15af52['jsx'](_0x49dd93,{'coordinator':_0x5b6a71});default:return null;}}function _0xbf44df(_0x51e27d){const _0xe212a9=_0x5cf110,{coordinator:_0x22f933}=_0x51e27d;return _0x15af52[_0xe212a9(0x1f4)](_0x15af52[_0xe212a9(0x293)],{'children':[_0x15af52[_0xe212a9(0x291)](_0xe212a9(0x27b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xe212a9(0x1ca)}),_0x15af52[_0xe212a9(0x291)](_0x342ef4[_0xe212a9(0x264)],{'onClick':()=>_0x22f933[_0xe212a9(0x22c)](),'children':'Start'})]});}function _0x4f3d8b(_0x5bd091){const _0x49b5bc=_0x5cf110,{coordinator:_0x5cf21a}=_0x5bd091;return _0x15af52[_0x49b5bc(0x1f4)](_0x15af52[_0x49b5bc(0x293)],{'children':[_0x15af52[_0x49b5bc(0x291)](_0x49b5bc(0x27b),{'className':_0x49b5bc(0x1ee),'children':_0x49b5bc(0x24e)}),_0x15af52[_0x49b5bc(0x291)](_0x342ef4[_0x49b5bc(0x264)],{'onClick':()=>_0x5cf21a[_0x49b5bc(0x269)](),'children':_0x49b5bc(0x1f7)})]});}function _0xeb4a5(_0x506421){const _0x31877a=_0x5cf110,{coordinator:_0x4db131}=_0x506421;return _0x15af52[_0x31877a(0x1f4)](_0x15af52[_0x31877a(0x293)],{'children':[_0x15af52[_0x31877a(0x291)](_0x31877a(0x27b),{'className':_0x31877a(0x1ee),'children':_0x31877a(0x292)}),_0x15af52[_0x31877a(0x291)](_0x342ef4[_0x31877a(0x264)],{'variant':'text','onClick':()=>_0x4db131[_0x31877a(0x241)](),'children':_0x31877a(0x25e)})]});}function _0x49dd93(_0x5355d3){const _0x3df527=_0x5cf110,{coordinator:_0x2d32f6}=_0x5355d3;return _0x15af52[_0x3df527(0x1f4)](_0x15af52[_0x3df527(0x293)],{'children':[_0x15af52[_0x3df527(0x291)](_0x3df527(0x27b),{'className':_0x3df527(0x1ee),'children':_0x3df527(0x20c)}),_0x15af52[_0x3df527(0x291)](_0x342ef4['Button'],{'variant':_0x3df527(0x234),'onClick':()=>_0x2d32f6['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x4d2454(){const _0x323f59=_0x5cf110;return _0x15af52[_0x323f59(0x291)](_0x15af52[_0x323f59(0x293)],{'children':_0x323f59(0x1d1)});}var _0x3d60f7=Object[_0x5cf110(0x1d7)],_0x2b7111=(_0x1ea5c9,_0x389c25,_0x483a5a,_0x2f496a)=>{for(var _0x5cd3e2=_0x2f496a>0x1?void 0x0:_0x2f496a?_0x3d60f7(_0x389c25,_0x483a5a):_0x389c25,_0x4ce88e=_0x1ea5c9['length']-0x1,_0x40e681;_0x4ce88e>=0x0;_0x4ce88e--)(_0x40e681=_0x1ea5c9[_0x4ce88e])&&(_0x5cd3e2=_0x40e681(_0x5cd3e2)||_0x5cd3e2);return _0x5cd3e2;},_0x229ea2=(_0x1787f9,_0x472019)=>(_0x21a1c6,_0x57521b)=>_0x472019(_0x21a1c6,_0x57521b,_0x1787f9);_0x23ec27['DesktopLiveShareController']=class extends _0xca07eb[_0x5cf110(0x1c9)]{constructor(_0x3a04e3,_0x1a7d95){const _0x45dcc1=_0x5cf110;super(),this[_0x45dcc1(0x20d)]=_0x3a04e3,this['_uiPartsService']=_0x1a7d95,this[_0x45dcc1(0x206)]();}['_mountLiveShare'](){const _0x305004=_0x5cf110;this['disposeWithMe'](this[_0x305004(0x23f)]['registerComponent'](_0x1e8daf[_0x305004(0x243)][_0x305004(0x1e6)],()=>_0x1e8daf[_0x305004(0x1cf)](_0x103f34,this[_0x305004(0x20d)])));}},_0x23ec27[_0x5cf110(0x20f)]=_0x2b7111([_0x229ea2(0x0,_0xca07eb[_0x5cf110(0x253)](_0xca07eb[_0x5cf110(0x29a)])),_0x229ea2(0x1,_0x1e8daf[_0x5cf110(0x1c1)])],_0x23ec27['DesktopLiveShareController']);const _0x4969e8=_0x5cf110(0x2a4),_0x27b4c9={};var _0xe815dc=Object[_0x5cf110(0x1d7)],_0x2aa187=(_0x5e04d2,_0x23c955,_0x3d38e9,_0x3838a0)=>{const _0x5eb868=_0x5cf110;for(var _0x86e15b=_0x3838a0>0x1?void 0x0:_0x3838a0?_0xe815dc(_0x23c955,_0x3d38e9):_0x23c955,_0x5254f6=_0x5e04d2[_0x5eb868(0x242)]-0x1,_0x5ef077;_0x5254f6>=0x0;_0x5254f6--)(_0x5ef077=_0x5e04d2[_0x5254f6])&&(_0x86e15b=_0x5ef077(_0x86e15b)||_0x86e15b);return _0x86e15b;},_0x40b8c1=(_0x2813af,_0xbcd3c4)=>(_0x2c13d8,_0x3fcc60)=>_0xbcd3c4(_0x2c13d8,_0x3fcc60,_0x2813af);let _0x7fe0b8=class extends _0xca07eb[_0x5cf110(0x1c9)]{constructor(_0x38d4ac){const _0x34f1ac=_0x5cf110;super(),this['_liveShareService']=_0x38d4ac,this[_0x34f1ac(0x1d9)]();}[_0x5cf110(0x1d9)](){const _0x21cded=_0x5cf110;[_0x14ee55[_0x21cded(0x200)]['id'],_0x14ee55['SetScrollOperation']['id'],_0x4e04ed['SetWorksheetActiveOperation']['id']][_0x21cded(0x273)](_0x18de01=>{const _0x5b1f27=_0x21cded;this[_0x5b1f27(0x215)](this['_liveShareService'][_0x5b1f27(0x265)](_0x18de01));});}};_0x7fe0b8=_0x2aa187([_0x40b8c1(0x0,_0xca07eb['Inject'](_0x3a905a))],_0x7fe0b8);var _0x22048a=Object[_0x5cf110(0x22f)],_0x475edb=Object[_0x5cf110(0x1d7)],_0x383e68=(_0x4a6f74,_0x52b792,_0x5438be)=>_0x52b792 in _0x4a6f74?_0x22048a(_0x4a6f74,_0x52b792,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5438be}):_0x4a6f74[_0x52b792]=_0x5438be,_0xeacbc2=(_0x2e37af,_0x1d816b,_0x33c96b,_0x273a92)=>{const _0xedb46e=_0x5cf110;for(var _0x5343a6=_0x273a92>0x1?void 0x0:_0x273a92?_0x475edb(_0x1d816b,_0x33c96b):_0x1d816b,_0x2e19c5=_0x2e37af[_0xedb46e(0x242)]-0x1,_0x2f7a0f;_0x2e19c5>=0x0;_0x2e19c5--)(_0x2f7a0f=_0x2e37af[_0x2e19c5])&&(_0x5343a6=_0x2f7a0f(_0x5343a6)||_0x5343a6);return _0x5343a6;},_0x4a9630=(_0x2424d5,_0x5286db)=>(_0x5bd3f6,_0x20989c)=>_0x5286db(_0x5bd3f6,_0x20989c,_0x2424d5),_0x318246=(_0x49d6ed,_0x5d41d4,_0x505763)=>_0x383e68(_0x49d6ed,typeof _0x5d41d4!=_0x5cf110(0x1c0)?_0x5d41d4+'':_0x5d41d4,_0x505763);const _0x36d4d6=_0x5cf110(0x24f);_0x23ec27[_0x5cf110(0x21b)]=class extends _0xca07eb['Plugin']{constructor(_0x167ea5=_0x27b4c9,_0x5c774b,_0x20e594){const _0x318b34=_0x5cf110;super(),this[_0x318b34(0x217)]=_0x167ea5,this[_0x318b34(0x20d)]=_0x5c774b,this[_0x318b34(0x216)]=_0x20e594;const {..._0x10c2aa}=_0xca07eb['merge']({},_0x27b4c9,this['_config']);this[_0x318b34(0x216)][_0x318b34(0x267)](_0x4969e8,_0x10c2aa);}[_0x5cf110(0x1f9)](){const _0x513b00=_0x5cf110;_0xca07eb[_0x513b00(0x1f8)](this['_injector'],_0xca07eb[_0x513b00(0x214)]([[_0x3a905a],[_0x23ec27[_0x513b00(0x1da)]],[_0x7fe0b8],[_0x23ec27[_0x513b00(0x20f)]]],this['_config']['override'])),_0xca07eb[_0x513b00(0x29d)](this[_0x513b00(0x20d)],[[_0x7fe0b8]]);}['onRendered'](){const _0x1a1615=_0x5cf110;_0xca07eb[_0x1a1615(0x29d)](this[_0x1a1615(0x20d)],[[_0x23ec27[_0x1a1615(0x20f)]]]);}},_0x318246(_0x23ec27[_0x5cf110(0x21b)],_0x5cf110(0x230),_0xca07eb['UniverInstanceType'][_0x5cf110(0x22e)]),_0x318246(_0x23ec27['UniverLiveSharePlugin'],'pluginName',_0x36d4d6),_0x23ec27[_0x5cf110(0x21b)]=_0xeacbc2([_0xca07eb[_0x5cf110(0x259)](_0x54692a['UniverCollaborationClientPlugin']),_0x4a9630(0x1,_0xca07eb['Inject'](_0xca07eb[_0x5cf110(0x29a)])),_0x4a9630(0x2,_0xca07eb['IConfigService'])],_0x23ec27[_0x5cf110(0x21b)]),_0x23ec27[_0x5cf110(0x1f3)]=_0x103f34,_0x23ec27[_0x5cf110(0x23d)]=_0x3a905a,_0x23ec27[_0x5cf110(0x1c5)]=_0xaeb0d4,Object['defineProperty'](_0x23ec27,Symbol[_0x5cf110(0x1f1)],{'value':'Module'});}));function _0xf61e(_0x4ebb19,_0x176fba){_0x4ebb19=_0x4ebb19-0x1be;const _0x29b11c=_0x29b1();let _0xf61e41=_0x29b11c[_0x4ebb19];return _0xf61e41;}function _0x29b1(){const _0x3143f3=['toStringTag','UniverProLiveShare','LiveShare','jsxs','_startPresenting','use','Stop\x20following','registerDependencies','onStarting','toDisposable','substring','getLiveShareCoordinator','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','UniverCore','CommandType','SetZoomRatioOperation','UniverInstanceType','UniverDesign','getUnitId','mutations','_reporters','_mountLiveShare','React','107214znUZVC','clsx','UniverUi','sheet','You\x27re\x20presenting\x20the\x20document','_injector','button','DesktopLiveShareController','object','_handleTerminate','getCurrentTypeOfUnit$','params','mergeOverrideWithDependencies','disposeWithMe','_configService','_config','_stopFollowing','send','attrs','UniverLiveSharePlugin','Dropdown','_unitID','parseProtocolChangeset','CollaborationEvent','CollaborationSessionService','getTypeOfUnitAdded$','56469subtzP','reverse','mask','UniverSheets','displayName','includes','getInitialStates','OFFLINE','PRESENTING','createInstance','tryStartPresenting','995569Bkiqvi','UNIVER_UNKNOWN','defineProperty','type','subscribe','@univerjs-pro/collaboration','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','default','svg','dispose','url(#$1','IUniverInstanceService','useObservable','function','InsertSheetMutation','tag','LiveShareService','next','_uiPartsService','_startFollowing','startFollowing','length','BuiltInUIPart','1em','find','_handleOperation','_handleNewChangeSets','from','ICommandService','idSuffix','0\x200\x2017\x2017','_collabSessionService','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','Subject','_commandService','_beIdle','Inject','has','currentColor','1051604KUoIjf','_status$','data','DependentOn','stopPresenting','SessionStatus','_collabSession','react/jsx-runtime','Start\x20following','shouldShareOperation','children','IConfigService','replace','registerInitialStateReporter','Button','registerSharedOperation','assign','setConfig','event$','stopFollowing','univerjs-icon\x20univerjs-icon-','entries','2LrXhzv','idle','BehaviorSubject','dispose$','RxDisposable','_handleOnline','requireSession','forEach','UniverProCollaboration','LiveShareCoordinator','operations','memberID','useRef','useDependency','init','div','set','getValue','trim','2275310czGYjq','complete','LIVESHARE_OPERATION','_presenter','getMemberID','clear','_commandDisposable','_status','LIVESHARE_FETCH_OPERATIONS','exports','LIVESHARE_REQUEST_HOST','amd','NOT_FOLLOWING','12916359mTOetM','colorChannel1','forwardRef','executeCommand','presenting','jsx','You\x27re\x20not\x20following\x20the\x20presenter','Fragment','_entities','values','getStatus','OPERATION','takeUntil','18FDicXx','Injector','getConfig','path','touchDependencies','sessionStatus$','fill','status$','current','add','string','live-share.config','_handleOffline','asObservable','3051380OYEpUJ','getTypeOfUnitDisposed$','_handleNewHost','@univerjs/design','symbol','IUIPartsService','LiveShareIcon','http://www.w3.org/2000/svg','rxjs','LiveShareStatus','1640ftbibG','_stopPresenting','get','Disposable','Present\x20this\x20document','univer-size-4','map','createElement','rxjs/operators','connectInjector','pipe','You\x27are\x20offline.','end','IDLE','@univerjs-pro/collaboration-client','stringify','_sharedOperations','getOwnPropertyDescriptor','evenodd','_init','LiveShareController','LIVESHARE_NEW_HOST','UniverIcon','UNIVER_SHEET','_fetchOperations','useEffect','useState','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','following','defs','react','live-share-icon','HEADER_MENU','not-following','xlink:href','@univerjs/sheets-ui','presenter','random','UniverProCollaborationClient','_liveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','_startLiveShareCoordinator'];_0x29b1=function(){return _0x3143f3;};return _0x29b1();}
1
+ function _0x4046(){const _0x4ae159=['executeCommand','@univerjs/design','_entities','IConfigService','18blkFBV','Dropdown','merge','_status$','toDisposable','7PsLJch','_mountLiveShare','Injector','init','_unitID','requireSession','UNIVER_UNKNOWN','evenodd','complete','Subject','none','_univerInstanceService','map','UniverProCollaboration','@univerjs/core','_presenter','_stopFollowing','useState','div','registerSharedOperation','CollaborationSessionService','tag','IUniverInstanceService','5890072jlZfKl','get','_startFollowing','_sharedOperations','dispose','path','current','LIVESHARE_NEW_HOST','add','LiveShareIcon','startFollowing','svg','string','following','16008UBmyyH','subscribe','BuiltInUIPart','@univerjs/ui','Plugin','toStringTag','defineProperty','next','stringify','data','You\x27re\x20presenting\x20the\x20document','LiveShare','getMemberID','_config','Stop\x20following','xlink:href','_startLiveShareCoordinator','SetZoomRatioOperation','FOLLOWING','You\x27re\x20following\x20the\x20presenter','_stopPresenting','rxjs/operators','getValue','@univerjs/sheets','HEADER_MENU','1295wtCgcx','Module','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','createElement','UniverSheets','operations','_status','581322ooupWK','BehaviorSubject','function','registerComponent','presenter','set','UniverInstanceType','_fetchOperations','30rlHLDm','jsxs','SessionStatus','SetWorksheetActiveOperation','defIds','mutations','Start\x20following','getCurrentTypeOfUnit$','parseProtocolChangeset','IDLE','_handleNewChangeSets','mask','ONLINE','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','NOT_FOLLOWING','fill','getInitialStates','forEach','@univerjs/sheets-ui','unitId','asObservable','onCommandExecuted','_configService','reverse','IUIPartsService','univerjs-icon\x20univerjs-icon-','getLiveShareCoordinator','then','getTypeOfUnitDisposed$','touchDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','jsx','UniverSheetsUi','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','entries','NEW_CHANGESETS','ICommandService','throttleTime','exports','dispose$','random','univer-mb-3\x20univer-w-full\x20univer-text-sm','Fragment','_handleNewHost','Disposable','493264XQMyBA','getUnitId','http://www.w3.org/2000/svg','default','assign','_injector','_startPresenting','InsertSheetMutation','currentColor','UniverProCollaborationClient','UniverDesign','send','delete','Start','registerDependencies','end','use','SetScrollOperation','presenting','attrs','react/jsx-runtime','DependentOn','_commandService','You\x27re\x20not\x20following\x20the\x20presenter','event$','getTypeOfUnitAdded$','idle','unsubscribe','length','stopPresenting','params','_reporters','replace','LiveShareCoordinator','registerInitialStateReporter','onStarting','react','getStatus','has','10399741hrcxBd','useRef','_liveShareService','_collabSession','memberID','onRendered','not-following','children','UNIVER_SHEET','toString','OPERATION','sessionStatus$','takeUntil','useObservable','getOwnPropertyDescriptor','univer-size-4','trim','5151780zcZXsf','url(#$1','clsx','live-share.config','useEffect','LIVESHARE_REQUEST_HOST','DesktopLiveShareController','stopFollowing','Button','LIVESHARE_TERMINATE','includes','_commandDisposable','Inject','1em','React','button','6898zqWMRP','offline','_collabSessionService','LiveShareController','@univerjs-pro/collaboration-client','idSuffix','symbol','UniverLiveSharePlugin','PRESENTING','_uiPartsService','override','displayName','Present\x20this\x20document','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20presenting','_init','connectInjector','rxjs','_handleOffline','CollaborationEvent','shouldShareOperation','_handleOperation','amd','colorChannel1','LIVESHARE_OPERATION','parse','substring','forwardRef','type','pipe','live-share-icon','UniverCore','CommandType','OFFLINE','defs','_handleOnline','disposeWithMe'];_0x4046=function(){return _0x4ae159;};return _0x4046();}function _0xaf4b(_0x3a655c,_0x396046){_0x3a655c=_0x3a655c-0x92;const _0x4046bb=_0x4046();let _0xaf4b09=_0x4046bb[_0x3a655c];return _0xaf4b09;}(function(_0x57d1de,_0x1b3437){const _0x54761c=_0xaf4b,_0x1b6f0b=_0x57d1de();while(!![]){try{const _0x2c2a7b=-parseInt(_0x54761c(0x10e))/0x1+-parseInt(_0x54761c(0x9b))/0x2*(-parseInt(_0x54761c(0xc4))/0x3)+parseInt(_0x54761c(0x143))/0x4+-parseInt(_0x54761c(0x107))/0x5*(parseInt(_0x54761c(0xee))/0x6)+parseInt(_0x54761c(0xc9))/0x7*(-parseInt(_0x54761c(0xe0))/0x8)+-parseInt(_0x54761c(0x17b))/0x9+-parseInt(_0x54761c(0x116))/0xa*(-parseInt(_0x54761c(0x16a))/0xb);if(_0x2c2a7b===_0x1b3437)break;else _0x1b6f0b['push'](_0x1b6f0b['shift']());}catch(_0x478def){_0x1b6f0b['push'](_0x1b6f0b['shift']());}}}(_0x4046,0x617ba),function(_0x110550,_0x355d13){const _0x15f20f=_0xaf4b;typeof exports=='object'&&typeof module<'u'?_0x355d13(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==_0x15f20f(0x110)&&define[_0x15f20f(0xb1)]?define([_0x15f20f(0x13c),_0x15f20f(0xd7),_0x15f20f(0xf1),_0x15f20f(0x157),_0x15f20f(0xc1),_0x15f20f(0x167),'@univerjs-pro/collaboration',_0x15f20f(0x9f),_0x15f20f(0x105),_0x15f20f(0xac),_0x15f20f(0x103),_0x15f20f(0x128)],_0x355d13):(_0x110550=typeof globalThis<'u'?globalThis:_0x110550||self,_0x355d13(_0x110550['UniverProLiveShare']={},_0x110550[_0x15f20f(0xba)],_0x110550['UniverUi'],_0x110550[_0x15f20f(0x99)],_0x110550[_0x15f20f(0x14d)],_0x110550[_0x15f20f(0x99)],_0x110550[_0x15f20f(0xd6)],_0x110550[_0x15f20f(0x14c)],_0x110550[_0x15f20f(0x10b)],_0x110550[_0x15f20f(0xac)],_0x110550[_0x15f20f(0xac)]['operators'],_0x110550[_0x15f20f(0x136)]));}(this,function(_0x1aec62,_0x24482f,_0x3950cd,_0x5e2915,_0x219eb5,_0x353b41,_0x15647b,_0x48be26,_0x1dbb33,_0x28678f,_0x48039d,_0x399ddd){'use strict';const _0x564d5=_0xaf4b;var _0x2fc289=Object[_0x564d5(0xf4)],_0x3e7cf0=(_0x3bfeae,_0x3f8457,_0x2976fd)=>_0x3f8457 in _0x3bfeae?_0x2fc289(_0x3bfeae,_0x3f8457,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2976fd}):_0x3bfeae[_0x3f8457]=_0x2976fd,_0xbc5222=(_0x2bb89e,_0x5fa250,_0x3becbb)=>_0x3e7cf0(_0x2bb89e,typeof _0x5fa250!='symbol'?_0x5fa250+'':_0x5fa250,_0x3becbb);function _0xbe1459({ref:_0x379ed8,..._0x452669}){const _0x126b84=_0x564d5,{icon:_0x4a85ce,id:_0x1f3f3b,className:_0x40474f,extend:_0x343117,..._0x6cc2ff}=_0x452669,_0x2a85a3=(_0x126b84(0x12f)+_0x1f3f3b+'\x20'+(_0x40474f||''))[_0x126b84(0x17a)](),_0x5487f5=_0x353b41[_0x126b84(0x16b)]('_'+_0x38487e());return _0x1c9151(_0x4a85ce,''+_0x1f3f3b,{'defIds':_0x4a85ce[_0x126b84(0x11a)],'idSuffix':_0x5487f5[_0x126b84(0xe6)]},{'ref':_0x379ed8,'className':_0x2a85a3,..._0x6cc2ff},_0x343117);}function _0x1c9151(_0x50ef4f,_0x30c18f,_0x5a40f4,_0x51449e,_0xc97881){const _0xe2a692=_0x564d5;return _0x353b41[_0xe2a692(0x10a)](_0x50ef4f[_0xe2a692(0xde)],{'key':_0x30c18f,..._0x371ea4(_0x50ef4f,_0x5a40f4,_0xc97881),..._0x51449e},(_0x1ddcbc(_0x50ef4f,_0x5a40f4)[_0xe2a692(0x171)]||[])[_0xe2a692(0xd5)]((_0x2632b6,_0x528a42)=>_0x1c9151(_0x2632b6,_0x30c18f+'-'+_0x50ef4f['tag']+'-'+_0x528a42,_0x5a40f4,void 0x0,_0xc97881)));}function _0x371ea4(_0x11166c,_0x5a5c37,_0x384993){const _0xa6b715=_0x564d5,_0x2c7d47={..._0x11166c[_0xa6b715(0x156)]};_0x384993!=null&&_0x384993[_0xa6b715(0xb2)]&&_0x2c7d47['fill']==='colorChannel1'&&(_0x2c7d47[_0xa6b715(0x125)]=_0x384993[_0xa6b715(0xb2)]),_0x11166c['tag']===_0xa6b715(0x121)&&_0x2c7d47['id']&&(_0x2c7d47['id']=_0x2c7d47['id']+_0x5a5c37[_0xa6b715(0xa0)]),Object['entries'](_0x2c7d47)[_0xa6b715(0x127)](([_0x35ef24,_0x302d08])=>{const _0x2697f1=_0xa6b715;_0x35ef24===_0x2697f1(0x121)&&typeof _0x302d08==_0x2697f1(0xec)&&(_0x2c7d47[_0x35ef24]=_0x302d08[_0x2697f1(0x163)](/url\(#(.*)\)/,'url(#$1'+_0x5a5c37['idSuffix']+')'));});const {defIds:_0x3ec5cb}=_0x5a5c37;return!_0x3ec5cb||_0x3ec5cb[_0xa6b715(0x15f)]===0x0||(_0x11166c['tag']===_0xa6b715(0x153)&&_0x2c7d47[_0xa6b715(0xfd)]&&(_0x2c7d47[_0xa6b715(0xfd)]=_0x2c7d47['xlink:href']+_0x5a5c37[_0xa6b715(0xa0)]),Object[_0xa6b715(0x138)](_0x2c7d47)[_0xa6b715(0x127)](([_0x265770,_0x5067b8])=>{const _0x34dee2=_0xa6b715;typeof _0x5067b8==_0x34dee2(0xec)&&(_0x2c7d47[_0x265770]=_0x5067b8[_0x34dee2(0x163)](/url\(#(.*)\)/,_0x34dee2(0x17c)+_0x5a5c37[_0x34dee2(0xa0)]+')'));})),_0x2c7d47;}function _0x1ddcbc(_0x20e761,_0x3ba9f0){const _0x4d951d=_0x564d5;var _0x4afac3;const {defIds:_0x564195}=_0x3ba9f0;return!_0x564195||_0x564195[_0x4d951d(0x15f)]===0x0?_0x20e761:_0x20e761['tag']===_0x4d951d(0xbd)&&((_0x4afac3=_0x20e761['children'])!=null&&_0x4afac3[_0x4d951d(0x15f)])?{..._0x20e761,'children':_0x20e761['children'][_0x4d951d(0xd5)](_0x20bae9=>typeof _0x20bae9[_0x4d951d(0x156)]['id']==_0x4d951d(0xec)&&_0x564195&&_0x564195[_0x4d951d(0x95)](_0x20bae9['attrs']['id'])?{..._0x20bae9,'attrs':{..._0x20bae9['attrs'],'id':_0x20bae9[_0x4d951d(0x156)]['id']+_0x3ba9f0[_0x4d951d(0xa0)]}}:_0x20bae9)}:_0x20e761;}function _0x38487e(){const _0x7c73ff=_0x564d5;return Math[_0x7c73ff(0x13e)]()[_0x7c73ff(0x173)](0x24)[_0x7c73ff(0xb5)](0x2,0x8);}_0xbe1459[_0x564d5(0xa6)]='UniverIcon';const _0x4f9321={'tag':_0x564d5(0xeb),'attrs':{'xmlns':_0x564d5(0x145),'fill':_0x564d5(0xd3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x564d5(0x98)},'children':[{'tag':_0x564d5(0xe5),'attrs':{'fill':_0x564d5(0x14b),'d':_0x564d5(0x137)}},{'tag':_0x564d5(0xe5),'attrs':{'fill':'currentColor','d':_0x564d5(0x109),'fillRule':'evenodd','clipRule':_0x564d5(0xd0)}}]},_0x19f9d4=_0x353b41[_0x564d5(0xb6)](function(_0x1c3842,_0x3b0ff5){const _0x33165c=_0x564d5;return _0x353b41[_0x33165c(0x10a)](_0xbe1459,Object[_0x33165c(0x147)]({},_0x1c3842,{'id':_0x33165c(0xb9),'ref':_0x3b0ff5,'icon':_0x4f9321}));});_0x19f9d4[_0x564d5(0xa6)]=_0x564d5(0xe9);class _0x3420d5 extends _0x24482f[_0x564d5(0x142)]{constructor(){const _0x10becd=_0x564d5;super(...arguments),_0xbc5222(this,_0x10becd(0xe3),new Set()),_0xbc5222(this,_0x10becd(0x162),new Set());}[_0x564d5(0xdc)](_0x3364cb){const _0x1e8f18=_0x564d5;return this[_0x1e8f18(0xe3)][_0x1e8f18(0xe8)](_0x3364cb),_0x24482f[_0x1e8f18(0xc8)](()=>this[_0x1e8f18(0xe3)]['delete'](_0x3364cb));}[_0x564d5(0x165)](_0xf871d5){const _0x28a886=_0x564d5;return this['_reporters'][_0x28a886(0xe8)](_0xf871d5),_0x24482f[_0x28a886(0xc8)](()=>this['_reporters'][_0x28a886(0x14f)](_0xf871d5));}[_0x564d5(0xaf)](_0x547716){const _0x396aad=_0x564d5;return this[_0x396aad(0xe3)][_0x396aad(0x169)](_0x547716);}[_0x564d5(0x126)](_0x42a3b2){const _0x17361b=_0x564d5;return Array['from'](this[_0x17361b(0x162)])['map'](_0x255d65=>_0x255d65(_0x42a3b2));}}var _0x1569e4=Object['getOwnPropertyDescriptor'],_0x534561=(_0x3129b7,_0x175ace,_0x568cf8,_0x5c8b53)=>{const _0x477caa=_0x564d5;for(var _0x341c62=_0x5c8b53>0x1?void 0x0:_0x5c8b53?_0x1569e4(_0x175ace,_0x568cf8):_0x175ace,_0x5c2a19=_0x3129b7[_0x477caa(0x15f)]-0x1,_0x12201b;_0x5c2a19>=0x0;_0x5c2a19--)(_0x12201b=_0x3129b7[_0x5c2a19])&&(_0x341c62=_0x12201b(_0x341c62)||_0x341c62);return _0x341c62;},_0x358615=(_0x178341,_0xccfbc1)=>(_0x28fd6,_0x3177b2)=>_0xccfbc1(_0x28fd6,_0x3177b2,_0x178341);_0x1aec62[_0x564d5(0x9e)]=class extends _0x24482f['RxDisposable']{constructor(_0x247e0d,_0x4996fc,_0x20bf1d){const _0x2a916d=_0x564d5;super(),_0xbc5222(this,_0x2a916d(0xc2),new Map()),(this[_0x2a916d(0xd4)]=_0x247e0d,this[_0x2a916d(0x148)]=_0x4996fc,this[_0x2a916d(0x9d)]=_0x20bf1d,this[_0x2a916d(0xaa)]());}async[_0x564d5(0x130)](_0x1a5b1a){const _0x4b0d4d=_0x564d5;return this[_0x4b0d4d(0xc2)][_0x4b0d4d(0x169)](_0x1a5b1a)||await this['_startLiveShareCoordinator'](_0x1a5b1a),this[_0x4b0d4d(0xc2)][_0x4b0d4d(0xe1)](_0x1a5b1a);}['getLiveShareCoordinatorSync'](_0x13400c){const _0x27e7a5=_0x564d5;var _0x1d7a98;return(_0x1d7a98=this[_0x27e7a5(0xc2)]['get'](_0x13400c))!=null?_0x1d7a98:null;}[_0x564d5(0xaa)](){const _0x13c493=_0x564d5;this[_0x13c493(0xd4)][_0x13c493(0x15c)](_0x24482f[_0x13c493(0x114)][_0x13c493(0x172)])['pipe'](_0x48039d[_0x13c493(0x176)](this[_0x13c493(0x13d)]))['subscribe'](async _0x4f0300=>{const _0x796aed=_0x13c493,_0x899253=_0x4f0300[_0x796aed(0x144)]();this[_0x796aed(0xc2)]['has'](_0x899253)||this['_startLiveShareCoordinator'](_0x899253);}),this[_0x13c493(0xd4)][_0x13c493(0x132)](_0x24482f['UniverInstanceType'][_0x13c493(0x172)])[_0x13c493(0xb8)](_0x48039d[_0x13c493(0x176)](this['dispose$']))[_0x13c493(0xef)](_0x2b9446=>{const _0x483ff7=_0x13c493,_0x175174=_0x2b9446[_0x483ff7(0x144)](),_0x4cacc7=this[_0x483ff7(0xc2)][_0x483ff7(0xe1)](_0x175174);_0x4cacc7==null||_0x4cacc7[_0x483ff7(0xe4)]();});}async[_0x564d5(0xfe)](_0x17b1f0){const _0x62f9c1=_0x564d5,_0x5b3d48=await this[_0x62f9c1(0x9d)][_0x62f9c1(0xce)](_0x17b1f0),_0x16f3ea=this[_0x62f9c1(0x148)]['createInstance'](_0x1aec62['LiveShareCoordinator'],_0x17b1f0,_0x5b3d48);return _0x16f3ea[_0x62f9c1(0xcc)](),this[_0x62f9c1(0xc2)][_0x62f9c1(0x113)](_0x17b1f0,_0x16f3ea),_0x16f3ea;}},_0x1aec62[_0x564d5(0x9e)]=_0x534561([_0x358615(0x0,_0x24482f[_0x564d5(0xdf)]),_0x358615(0x1,_0x24482f['Inject'](_0x24482f['Injector'])),_0x358615(0x2,_0x24482f['Inject'](_0x48be26[_0x564d5(0xdd)]))],_0x1aec62[_0x564d5(0x9e)]);var _0x49eaf9=(_0x44dc6b=>(_0x44dc6b[_0x564d5(0xbc)]=_0x564d5(0x9c),_0x44dc6b[_0x564d5(0x11f)]=_0x564d5(0x15d),_0x44dc6b[_0x564d5(0x100)]=_0x564d5(0xed),_0x44dc6b[_0x564d5(0x124)]=_0x564d5(0x170),_0x44dc6b[_0x564d5(0xa3)]=_0x564d5(0x155),_0x44dc6b))(_0x49eaf9||{});const _0x1bccf2='SAME_OPERATION_SHARE_INTERVAL',_0x296c6a=0xc8;_0x1aec62[_0x564d5(0x164)]=class extends _0x24482f['RxDisposable']{constructor(_0x46b11e,_0x257b91,_0x29f4d3,_0x54c8d3,_0x227f13){const _0x5b9712=_0x564d5;super(),_0xbc5222(this,'_status$',new _0x28678f[(_0x5b9712(0x10f))]('idle')),_0xbc5222(this,'status$',this[_0x5b9712(0xc7)][_0x5b9712(0x12a)]()),_0xbc5222(this,_0x5b9712(0xaa),!0x1),_0xbc5222(this,_0x5b9712(0x96),null),_0xbc5222(this,_0x5b9712(0xd8),null),(this['_unitID']=_0x46b11e,this[_0x5b9712(0x16d)]=_0x257b91,this[_0x5b9712(0x12c)]=_0x29f4d3,this['_liveShareService']=_0x54c8d3,this[_0x5b9712(0x159)]=_0x227f13);}get[_0x564d5(0x10d)](){const _0x145ad7=_0x564d5;return this[_0x145ad7(0xc7)][_0x145ad7(0x104)]();}[_0x564d5(0xe4)](){const _0xf46d5e=_0x564d5;var _0x5a53e1;(_0x5a53e1=this[_0xf46d5e(0x96)])==null||_0x5a53e1['dispose'](),this[_0xf46d5e(0xc7)]['next'](_0xf46d5e(0x15d)),this[_0xf46d5e(0xc7)][_0xf46d5e(0xd1)]();}[_0x564d5(0x168)](){return this['_status'];}[_0x564d5(0xcc)](){const _0x2a191a=_0x564d5;this[_0x2a191a(0xaa)]||(this['_init']=!0x0,this['_collabSession'][_0x2a191a(0x175)][_0x2a191a(0xb8)](_0x48039d[_0x2a191a(0x176)](this[_0x2a191a(0x13d)]))[_0x2a191a(0xef)](_0x590cd5=>{const _0x13a388=_0x2a191a;switch(_0x590cd5){case _0x48be26[_0x13a388(0x118)][_0x13a388(0xbc)]:this[_0x13a388(0xad)]();break;case _0x48be26[_0x13a388(0x118)][_0x13a388(0x122)]:this[_0x13a388(0xbe)]();break;}}),this[_0x2a191a(0x16d)][_0x2a191a(0x15b)][_0x2a191a(0xb8)](_0x48039d[_0x2a191a(0x176)](this['dispose$']))[_0x2a191a(0xef)](_0x2392e9=>{const _0x58932f=_0x2a191a,{eventID:_0x412ad5}=_0x2392e9;switch(_0x412ad5){case _0x15647b[_0x58932f(0xae)][_0x58932f(0xe7)]:this[_0x58932f(0x141)](_0x2392e9);break;case _0x15647b[_0x58932f(0xae)][_0x58932f(0xb3)]:this[_0x58932f(0xb0)](_0x2392e9);break;case _0x15647b[_0x58932f(0xae)][_0x58932f(0x94)]:this['_handleTerminate']();break;case _0x15647b[_0x58932f(0xae)][_0x58932f(0x139)]:this[_0x58932f(0x120)](_0x2392e9);break;}}));}['tryStartPresenting'](){const _0x1d3b29=_0x564d5;this[_0x1d3b29(0x16d)][_0x1d3b29(0x14e)]({'eventID':_0x15647b[_0x1d3b29(0xae)][_0x1d3b29(0x180)],'data':{'unitID':this[_0x1d3b29(0xcd)],'userID':this[_0x1d3b29(0x16d)][_0x1d3b29(0xfa)]()}},this[_0x1d3b29(0xcd)]);}['stopPresenting'](){const _0x528d79=_0x564d5;this[_0x528d79(0x10d)]===_0x528d79(0x155)&&(this[_0x528d79(0xc7)]['next']('idle'),this[_0x528d79(0x16d)][_0x528d79(0x14e)]({'eventID':_0x15647b['CollaborationEvent'][_0x528d79(0x94)],'data':{'unitID':this[_0x528d79(0xcd)]}},this[_0x528d79(0xcd)]));}['startFollowing'](){const _0x542662=_0x564d5;this['_status']===_0x542662(0x170)&&(this[_0x542662(0xc7)][_0x542662(0xf5)](_0x542662(0xed)),this[_0x542662(0xe2)]());}[_0x564d5(0x92)](){const _0x409b7d=_0x564d5;this[_0x409b7d(0x10d)]===_0x409b7d(0xed)&&this[_0x409b7d(0xd9)]();}[_0x564d5(0x141)](_0x3e618b){const _0x86c7a8=_0x564d5,{presenter:_0x9457bd}=_0x3e618b[_0x86c7a8(0xf7)],_0x3fccbf=this['_collabSession'][_0x86c7a8(0xfa)]();this[_0x86c7a8(0xd8)]=_0x9457bd,_0x9457bd===_0x3fccbf?(this[_0x86c7a8(0xd9)](),this[_0x86c7a8(0x149)]()):this[_0x86c7a8(0x10d)]!==_0x86c7a8(0x170)&&(this[_0x86c7a8(0x102)](),this[_0x86c7a8(0xe2)]());}[_0x564d5(0x115)](){const _0x2f7023=_0x564d5,_0x3c208a={'eventID':_0x15647b[_0x2f7023(0xae)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2f7023(0x16d)][_0x2f7023(0x14e)](_0x3c208a,this[_0x2f7023(0xcd)]);}['_handleTerminate'](){const _0x393ea8=_0x564d5;this['_presenter']=null,this[_0x393ea8(0x10d)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x45eefa){const _0x53c116=_0x564d5;if(this[_0x53c116(0x10d)]===_0x53c116(0xed)&&this[_0x53c116(0xd8)]===_0x45eefa[_0x53c116(0xf7)][_0x53c116(0x16e)]){const _0x38dc41=_0x15647b[_0x53c116(0x11e)](_0x45eefa['data'])[_0x53c116(0x11b)][_0x53c116(0x12d)]()['find'](_0x2e0417=>_0x2e0417['id']===_0x1dbb33[_0x53c116(0x14a)]['id']);if(_0x38dc41){const _0x3f5d0a=_0x38dc41[_0x53c116(0x161)][_0x53c116(0x129)],_0xe7eacf=_0x38dc41[_0x53c116(0x161)]['sheet']['id'];setTimeout(()=>{const _0x491c9e=_0x53c116;this[_0x491c9e(0x159)][_0x491c9e(0xc0)](_0x1dbb33[_0x491c9e(0x119)]['id'],{'unitId':_0x3f5d0a,'subUnitId':_0xe7eacf},{'fromCollab':!0x0});});}}}[_0x564d5(0x149)](){const _0x4949a1=_0x564d5;this['_status$'][_0x4949a1(0xf5)](_0x4949a1(0x155));const _0x430a97=new Map(),_0x4ddce2=this[_0x4949a1(0x96)]=new _0x24482f['DisposableCollection']();_0x4ddce2[_0x4949a1(0xe8)](_0x24482f[_0x4949a1(0xc8)](()=>{const _0x51cd76=_0x4949a1;_0x430a97[_0x51cd76(0x127)](_0x5d380a=>_0x5d380a['complete']()),_0x430a97['clear']();})),_0x4ddce2[_0x4949a1(0xe8)](this[_0x4949a1(0x159)][_0x4949a1(0x12b)](_0x4fba60=>{const _0x5556d0=_0x4949a1;var _0x314eb9;if(_0x4fba60[_0x5556d0(0xb7)]!==_0x24482f[_0x5556d0(0xbb)][_0x5556d0(0x174)]||!this[_0x5556d0(0x16c)]['shouldShareOperation'](_0x4fba60['id']))return;const {id:_0x14414a}=_0x4fba60;let _0x1b2ea4;_0x430a97[_0x5556d0(0x169)](_0x14414a)?_0x1b2ea4=_0x430a97[_0x5556d0(0xe1)](_0x14414a):(_0x1b2ea4=new _0x28678f[(_0x5556d0(0xd2))](),_0x430a97['set'](_0x14414a,_0x1b2ea4),_0x1b2ea4[_0x5556d0(0xb8)](_0x48039d[_0x5556d0(0x13b)]((_0x314eb9=this['_configService']['getConfig'](_0x1bccf2))!=null?_0x314eb9:_0x296c6a,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5556d0(0xef)](_0x33a654=>{const _0x57bc6b=_0x5556d0;this['_collabSession'][_0x57bc6b(0x14e)]({'eventID':_0x15647b['CollaborationEvent'][_0x57bc6b(0xb3)],'data':{'unitID':this['_unitID'],'operations':{[_0x33a654['id']]:{'id':_0x33a654['id'],'params':JSON[_0x57bc6b(0xf6)](_0x33a654['params'])}}}},this[_0x57bc6b(0xcd)]);})),_0x1b2ea4[_0x5556d0(0xf5)](_0x4fba60);})),this[_0x4949a1(0x16c)][_0x4949a1(0x126)](this[_0x4949a1(0xcd)])[_0x4949a1(0x127)](_0x475b1a=>this[_0x4949a1(0x16d)][_0x4949a1(0x14e)]({'eventID':_0x15647b[_0x4949a1(0xae)][_0x4949a1(0xb3)],'data':{'unitID':this['_unitID'],'operations':{[_0x475b1a['id']]:{'id':_0x475b1a['id'],'params':JSON[_0x4949a1(0xf6)](_0x475b1a[_0x4949a1(0x161)])}}}},this[_0x4949a1(0xcd)]));}[_0x564d5(0x102)](){const _0x4868bb=_0x564d5;var _0x42ad3f;this[_0x4868bb(0xc7)][_0x4868bb(0xf5)](_0x4868bb(0x15d)),(_0x42ad3f=this[_0x4868bb(0x96)])==null||_0x42ad3f[_0x4868bb(0xe4)](),this[_0x4868bb(0x96)]=null;}['_startFollowing'](){const _0x11d1f5=_0x564d5;var _0x20a0a3;(_0x20a0a3=this[_0x11d1f5(0x96)])==null||_0x20a0a3[_0x11d1f5(0xe4)](),this['_status$'][_0x11d1f5(0xf5)](_0x11d1f5(0xed));}['_beIdle'](){const _0x4d13b8=_0x564d5;var _0x2d51b2;this[_0x4d13b8(0xc7)][_0x4d13b8(0xf5)](_0x4d13b8(0x15d)),(_0x2d51b2=this[_0x4d13b8(0x96)])==null||_0x2d51b2[_0x4d13b8(0xe4)](),this['_commandDisposable']=null;}[_0x564d5(0xd9)](){const _0x124b96=_0x564d5;var _0x46f73c;this[_0x124b96(0xc7)][_0x124b96(0xf5)](_0x124b96(0x170)),(_0x46f73c=this[_0x124b96(0x96)])==null||_0x46f73c[_0x124b96(0xe4)]();}['_handleOperation'](_0x44bb23){const _0xd29895=_0x564d5;if([_0xd29895(0x155),_0xd29895(0x170),_0xd29895(0x9c)][_0xd29895(0x95)](this[_0xd29895(0x10d)])||!_0x44bb23[_0xd29895(0xf7)]['presenter']||_0x44bb23['data'][_0xd29895(0x112)]===this[_0xd29895(0x16d)][_0xd29895(0xfa)]())return;this['_status']==='idle'&&this[_0xd29895(0xe2)]();const _0x139b1e=_0x44bb23['data'][_0xd29895(0x10c)];Object['values'](_0x139b1e)[_0xd29895(0x127)](_0x3731f7=>{const _0x1cc032=_0xd29895;this[_0x1cc032(0x159)][_0x1cc032(0xc0)](_0x3731f7['id'],_0x3731f7[_0x1cc032(0x161)]?JSON[_0x1cc032(0xb4)](_0x3731f7[_0x1cc032(0x161)]):null,{'fromCollab':!0x0});});}[_0x564d5(0xad)](){const _0x16e7a3=_0x564d5;var _0x38b276;this[_0x16e7a3(0xc7)]['next']('offline'),(_0x38b276=this[_0x16e7a3(0x96)])==null||_0x38b276['dispose']();}[_0x564d5(0xbe)](){const _0x20b29e=_0x564d5;this[_0x20b29e(0xc7)][_0x20b29e(0xf5)](_0x20b29e(0x15d)),this[_0x20b29e(0x115)]();}},_0x1aec62[_0x564d5(0x164)]=_0x534561([_0x358615(0x2,_0x24482f[_0x564d5(0xc3)]),_0x358615(0x3,_0x24482f['Inject'](_0x3420d5)),_0x358615(0x4,_0x24482f[_0x564d5(0x13a)])],_0x1aec62[_0x564d5(0x164)]);function _0x2456be(){const _0xed0743=_0x564d5,_0x2a7e2b=_0x3950cd['useDependency'](_0x1aec62[_0xed0743(0x9e)]),_0x1c2101=_0x3950cd['useDependency'](_0x24482f['IUniverInstanceService']),_0x418f0a=_0x3950cd[_0xed0743(0x177)](()=>_0x1c2101[_0xed0743(0x11d)](_0x24482f['UniverInstanceType'][_0xed0743(0x172)]),void 0x0,!0x1,[]),[_0x139ecf,_0xe18b40]=_0x353b41[_0xed0743(0xda)](null),[_0x226269,_0x4b580f]=_0x353b41[_0xed0743(0xda)](_0x49eaf9[_0xed0743(0x11f)]),_0x217470=_0x353b41['useRef'](null);return _0x353b41[_0xed0743(0x17f)](()=>(_0x418f0a&&_0x2a7e2b['getLiveShareCoordinator'](_0x418f0a[_0xed0743(0x144)]())[_0xed0743(0x131)](_0x4d0fc1=>{const _0x16789c=_0xed0743;_0xe18b40(_0x4d0fc1),_0x217470['current']=_0x4d0fc1['status$'][_0x16789c(0xef)](_0x525801=>{_0x4b580f(_0x525801);});}),()=>{const _0x399183=_0xed0743;var _0x1a10dc;(_0x1a10dc=_0x217470['current'])==null||_0x1a10dc[_0x399183(0x15e)](),_0x217470['current']=null;}),[_0x418f0a,_0x2a7e2b]),_0x139ecf?_0x5e2915[_0xed0743(0x135)](_0x219eb5[_0xed0743(0xc5)],{'align':_0xed0743(0x152),'disabled':_0x226269===_0x49eaf9[_0xed0743(0xbc)],'className':_0xed0743(0x123),'overlay':_0x5e2915[_0xed0743(0x135)](_0x3172d8,{'status':_0x226269,'coordinator':_0x139ecf}),'children':_0x5e2915[_0xed0743(0x135)](_0xed0743(0x9a),{'className':_0x219eb5[_0xed0743(0x17d)](_0xed0743(0x134),{'univer-cursor-not-allowed':_0x226269===_0x49eaf9['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x226269!==_0x49eaf9['OFFLINE']}),'type':'button','children':_0x5e2915[_0xed0743(0x135)](_0x19f9d4,{'className':_0xed0743(0x179)})})}):null;}function _0x3172d8(_0x53a6dd){const _0x27df22=_0x564d5,{status:_0x46e885,coordinator:_0x3483a5}=_0x53a6dd;switch(_0x46e885){case _0x49eaf9[_0x27df22(0x11f)]:return _0x5e2915[_0x27df22(0x135)](_0x114291,{'coordinator':_0x3483a5});case _0x49eaf9[_0x27df22(0x100)]:return _0x5e2915[_0x27df22(0x135)](_0x17bc70,{'coordinator':_0x3483a5});case _0x49eaf9[_0x27df22(0x124)]:return _0x5e2915[_0x27df22(0x135)](_0xab2ef2,{'coordinator':_0x3483a5});case _0x49eaf9[_0x27df22(0xbc)]:return _0x5e2915[_0x27df22(0x135)](_0x5b81bd,{});case _0x49eaf9['PRESENTING']:return _0x5e2915[_0x27df22(0x135)](_0x19c23f,{'coordinator':_0x3483a5});default:return null;}}function _0x114291(_0xd188ea){const _0x298ddc=_0x564d5,{coordinator:_0x578c8c}=_0xd188ea;return _0x5e2915[_0x298ddc(0x117)](_0x5e2915['Fragment'],{'children':[_0x5e2915[_0x298ddc(0x135)](_0x298ddc(0xdb),{'className':_0x298ddc(0x13f),'children':_0x298ddc(0xa7)}),_0x5e2915[_0x298ddc(0x135)](_0x219eb5[_0x298ddc(0x93)],{'onClick':()=>_0x578c8c['tryStartPresenting'](),'children':_0x298ddc(0x150)})]});}function _0x17bc70(_0x485a86){const _0xb9fdbb=_0x564d5,{coordinator:_0x226b13}=_0x485a86;return _0x5e2915['jsxs'](_0x5e2915[_0xb9fdbb(0x140)],{'children':[_0x5e2915[_0xb9fdbb(0x135)](_0xb9fdbb(0xdb),{'className':_0xb9fdbb(0x13f),'children':_0xb9fdbb(0x101)}),_0x5e2915['jsx'](_0x219eb5[_0xb9fdbb(0x93)],{'onClick':()=>_0x226b13[_0xb9fdbb(0x92)](),'children':_0xb9fdbb(0xfc)})]});}function _0xab2ef2(_0x53945d){const _0x105d6f=_0x564d5,{coordinator:_0x47d115}=_0x53945d;return _0x5e2915['jsxs'](_0x5e2915['Fragment'],{'children':[_0x5e2915[_0x105d6f(0x135)](_0x105d6f(0xdb),{'className':_0x105d6f(0x13f),'children':_0x105d6f(0x15a)}),_0x5e2915[_0x105d6f(0x135)](_0x219eb5[_0x105d6f(0x93)],{'variant':'text','onClick':()=>_0x47d115[_0x105d6f(0xea)](),'children':_0x105d6f(0x11c)})]});}function _0x19c23f(_0x3afbb9){const _0x1abc68=_0x564d5,{coordinator:_0x3273b2}=_0x3afbb9;return _0x5e2915[_0x1abc68(0x117)](_0x5e2915[_0x1abc68(0x140)],{'children':[_0x5e2915[_0x1abc68(0x135)](_0x1abc68(0xdb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1abc68(0xf8)}),_0x5e2915['jsx'](_0x219eb5[_0x1abc68(0x93)],{'variant':_0x1abc68(0x146),'onClick':()=>_0x3273b2[_0x1abc68(0x160)](),'children':_0x1abc68(0xa9)})]});}function _0x5b81bd(){const _0x3f1a9e=_0x564d5;return _0x5e2915[_0x3f1a9e(0x135)](_0x5e2915[_0x3f1a9e(0x140)],{'children':'You\x27are\x20offline.'});}var _0xae8db=Object[_0x564d5(0x178)],_0x55095a=(_0xbb3d00,_0x34fdf4,_0x1e1463,_0x3a4d3b)=>{for(var _0x1ae77d=_0x3a4d3b>0x1?void 0x0:_0x3a4d3b?_0xae8db(_0x34fdf4,_0x1e1463):_0x34fdf4,_0x3145b7=_0xbb3d00['length']-0x1,_0x2c34f6;_0x3145b7>=0x0;_0x3145b7--)(_0x2c34f6=_0xbb3d00[_0x3145b7])&&(_0x1ae77d=_0x2c34f6(_0x1ae77d)||_0x1ae77d);return _0x1ae77d;},_0x12a955=(_0x522bde,_0x1cad63)=>(_0x3cfc8c,_0x5c861b)=>_0x1cad63(_0x3cfc8c,_0x5c861b,_0x522bde);_0x1aec62[_0x564d5(0x181)]=class extends _0x24482f['Disposable']{constructor(_0x585584,_0x7b73e8){const _0x4fabba=_0x564d5;super(),this['_injector']=_0x585584,this[_0x4fabba(0xa4)]=_0x7b73e8,this[_0x4fabba(0xca)]();}[_0x564d5(0xca)](){const _0x2bc1b0=_0x564d5;this['disposeWithMe'](this[_0x2bc1b0(0xa4)][_0x2bc1b0(0x111)](_0x3950cd[_0x2bc1b0(0xf0)][_0x2bc1b0(0x106)],()=>_0x3950cd[_0x2bc1b0(0xab)](_0x2456be,this[_0x2bc1b0(0x148)])));}},_0x1aec62['DesktopLiveShareController']=_0x55095a([_0x12a955(0x0,_0x24482f[_0x564d5(0x97)](_0x24482f['Injector'])),_0x12a955(0x1,_0x3950cd[_0x564d5(0x12e)])],_0x1aec62[_0x564d5(0x181)]);const _0x371340=_0x564d5(0x17e),_0x2cdbea={};var _0x25a0e6=Object[_0x564d5(0x178)],_0x2c7b1e=(_0x2b8052,_0xc73ce1,_0x43caa6,_0x834f31)=>{for(var _0xe28a4c=_0x834f31>0x1?void 0x0:_0x834f31?_0x25a0e6(_0xc73ce1,_0x43caa6):_0xc73ce1,_0x3d7338=_0x2b8052['length']-0x1,_0x2b80dd;_0x3d7338>=0x0;_0x3d7338--)(_0x2b80dd=_0x2b8052[_0x3d7338])&&(_0xe28a4c=_0x2b80dd(_0xe28a4c)||_0xe28a4c);return _0xe28a4c;},_0x1304f6=(_0x4f03d6,_0x556e56)=>(_0x41f8a2,_0x1a2fe7)=>_0x556e56(_0x41f8a2,_0x1a2fe7,_0x4f03d6);let _0x19c03a=class extends _0x24482f['Disposable']{constructor(_0x33a898){const _0x2df521=_0x564d5;super(),this['_liveShareService']=_0x33a898,this[_0x2df521(0xaa)]();}[_0x564d5(0xaa)](){const _0x18cc16=_0x564d5;[_0x399ddd[_0x18cc16(0xff)]['id'],_0x399ddd[_0x18cc16(0x154)]['id'],_0x1dbb33[_0x18cc16(0x119)]['id']][_0x18cc16(0x127)](_0x5845d1=>{const _0x32df34=_0x18cc16;this[_0x32df34(0xbf)](this['_liveShareService'][_0x32df34(0xdc)](_0x5845d1));});}};_0x19c03a=_0x2c7b1e([_0x1304f6(0x0,_0x24482f['Inject'](_0x3420d5))],_0x19c03a);var _0x2f5ef5=Object[_0x564d5(0xf4)],_0x231a47=Object['getOwnPropertyDescriptor'],_0x124673=(_0x5351c2,_0x357436,_0x3f7f3a)=>_0x357436 in _0x5351c2?_0x2f5ef5(_0x5351c2,_0x357436,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f7f3a}):_0x5351c2[_0x357436]=_0x3f7f3a,_0x31856f=(_0x166c98,_0x92395f,_0x10ec4c,_0x30407a)=>{const _0x3b3275=_0x564d5;for(var _0x599c4b=_0x30407a>0x1?void 0x0:_0x30407a?_0x231a47(_0x92395f,_0x10ec4c):_0x92395f,_0x3422b0=_0x166c98[_0x3b3275(0x15f)]-0x1,_0x23b0f7;_0x3422b0>=0x0;_0x3422b0--)(_0x23b0f7=_0x166c98[_0x3422b0])&&(_0x599c4b=_0x23b0f7(_0x599c4b)||_0x599c4b);return _0x599c4b;},_0x404fd5=(_0x2dc082,_0x230b2c)=>(_0xdcf2aa,_0x3f2317)=>_0x230b2c(_0xdcf2aa,_0x3f2317,_0x2dc082),_0x4bac0a=(_0x2a1f30,_0x2f6e67,_0x50485c)=>_0x124673(_0x2a1f30,typeof _0x2f6e67!=_0x564d5(0xa1)?_0x2f6e67+'':_0x2f6e67,_0x50485c);const _0x2c861c=_0x564d5(0xa8);_0x1aec62[_0x564d5(0xa2)]=class extends _0x24482f[_0x564d5(0xf2)]{constructor(_0x458e6b=_0x2cdbea,_0x23d0e1,_0x5b04f0){const _0x146536=_0x564d5;super(),this['_config']=_0x458e6b,this[_0x146536(0x148)]=_0x23d0e1,this['_configService']=_0x5b04f0;const {..._0x519499}=_0x24482f[_0x146536(0xc6)]({},_0x2cdbea,this[_0x146536(0xfb)]);this['_configService']['setConfig'](_0x371340,_0x519499);}[_0x564d5(0x166)](){const _0x17d0a0=_0x564d5;_0x24482f[_0x17d0a0(0x151)](this['_injector'],_0x24482f['mergeOverrideWithDependencies']([[_0x3420d5],[_0x1aec62['LiveShareController']],[_0x19c03a],[_0x1aec62[_0x17d0a0(0x181)]]],this[_0x17d0a0(0xfb)][_0x17d0a0(0xa5)])),_0x24482f[_0x17d0a0(0x133)](this[_0x17d0a0(0x148)],[[_0x19c03a]]);}[_0x564d5(0x16f)](){const _0x55cd3c=_0x564d5;_0x24482f[_0x55cd3c(0x133)](this['_injector'],[[_0x1aec62['DesktopLiveShareController']]]);}},_0x4bac0a(_0x1aec62['UniverLiveSharePlugin'],_0x564d5(0xb7),_0x24482f['UniverInstanceType'][_0x564d5(0xcf)]),_0x4bac0a(_0x1aec62[_0x564d5(0xa2)],'pluginName',_0x2c861c),_0x1aec62[_0x564d5(0xa2)]=_0x31856f([_0x24482f[_0x564d5(0x158)](_0x48be26['UniverCollaborationClientPlugin']),_0x404fd5(0x1,_0x24482f['Inject'](_0x24482f[_0x564d5(0xcb)])),_0x404fd5(0x2,_0x24482f[_0x564d5(0xc3)])],_0x1aec62[_0x564d5(0xa2)]),_0x1aec62[_0x564d5(0xf9)]=_0x2456be,_0x1aec62['LiveShareService']=_0x3420d5,_0x1aec62['LiveShareStatus']=_0x49eaf9,Object[_0x564d5(0xf4)](_0x1aec62,Symbol[_0x564d5(0xf3)],{'value':_0x564d5(0x108)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.4",
3
+ "version": "0.15.5",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,13 +57,13 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.1",
60
- "@univerjs-pro/collaboration": "0.15.4",
61
- "@univerjs-pro/collaboration-client": "0.15.4",
62
- "@univerjs/design": "0.15.4",
63
- "@univerjs/core": "0.15.4",
64
- "@univerjs/sheets-ui": "0.15.4",
65
- "@univerjs/ui": "0.15.4",
66
- "@univerjs/sheets": "0.15.4"
60
+ "@univerjs-pro/collaboration": "0.15.5",
61
+ "@univerjs-pro/collaboration-client": "0.15.5",
62
+ "@univerjs/core": "0.15.5",
63
+ "@univerjs/design": "0.15.5",
64
+ "@univerjs/sheets": "0.15.5",
65
+ "@univerjs/sheets-ui": "0.15.5",
66
+ "@univerjs/ui": "0.15.5"
67
67
  },
68
68
  "devDependencies": {
69
69
  "postcss": "^8.5.6",
@@ -73,7 +73,7 @@
73
73
  "typescript": "^5.9.3",
74
74
  "vite": "^7.3.1",
75
75
  "vitest": "^4.0.18",
76
- "@univerjs-infra/shared": "0.15.4",
76
+ "@univerjs-infra/shared": "0.15.5",
77
77
  "@univerjs/protocol": "0.1.48"
78
78
  },
79
79
  "scripts": {