@univerjs-pro/live-share 0.10.5 → 0.10.6

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/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x3b2182=_0x4de9;(function(_0x277777,_0x29f4ce){var _0x273b63=_0x4de9,_0x3124a0=_0x277777();while(!![]){try{var _0xa709a9=parseInt(_0x273b63(0x127))/0x1+-parseInt(_0x273b63(0x11c))/0x2+parseInt(_0x273b63(0x165))/0x3*(-parseInt(_0x273b63(0x112))/0x4)+-parseInt(_0x273b63(0x198))/0x5*(parseInt(_0x273b63(0x17b))/0x6)+parseInt(_0x273b63(0xf6))/0x7+parseInt(_0x273b63(0x14f))/0x8+-parseInt(_0x273b63(0x1be))/0x9;if(_0xa709a9===_0x29f4ce)break;else _0x3124a0['push'](_0x3124a0['shift']());}catch(_0x3c5bbe){_0x3124a0['push'](_0x3124a0['shift']());}}}(_0x1f53,0xc19d8));var U=Object['defineProperty'],F=(_0x995f2c,_0x3aacff,_0x3b0177)=>_0x3aacff in _0x995f2c?U(_0x995f2c,_0x3aacff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b0177}):_0x995f2c[_0x3aacff]=_0x3b0177,v=(_0x4d546d,_0x1c58a2,_0x3fe0cd)=>F(_0x4d546d,typeof _0x1c58a2!=_0x3b2182(0xf1)?_0x1c58a2+'':_0x1c58a2,_0x3fe0cd);Object[_0x3b2182(0xfa)](exports,Symbol[_0x3b2182(0x159)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x1a6aab=_0x3b2182;return u=Object[_0x1a6aab(0x15f)]||function(_0x56b053){var _0x5bc5fe=_0x1a6aab;for(var _0x192c17,_0x137087=0x1,_0x4ae102=arguments[_0x5bc5fe(0x1c2)];_0x137087<_0x4ae102;_0x137087++){_0x192c17=arguments[_0x137087];for(var _0x114359 in _0x192c17)Object['prototype'][_0x5bc5fe(0x18a)][_0x5bc5fe(0x1a4)](_0x192c17,_0x114359)&&(_0x56b053[_0x114359]=_0x192c17[_0x114359]);}return _0x56b053;},u['apply'](this,arguments);},$=function(_0x57e446,_0x11743d){var _0xc8b071=_0x3b2182,_0x3e6083={};for(var _0x46e174 in _0x57e446)Object['prototype']['hasOwnProperty'][_0xc8b071(0x1a4)](_0x57e446,_0x46e174)&&_0x11743d[_0xc8b071(0x1af)](_0x46e174)<0x0&&(_0x3e6083[_0x46e174]=_0x57e446[_0x46e174]);if(_0x57e446!=null&&typeof Object[_0xc8b071(0x17e)]==_0xc8b071(0x1bc)){for(var _0x2b51d2=0x0,_0x46e174=Object[_0xc8b071(0x17e)](_0x57e446);_0x2b51d2<_0x46e174[_0xc8b071(0x1c2)];_0x2b51d2++)_0x11743d[_0xc8b071(0x1af)](_0x46e174[_0x2b51d2])<0x0&&Object[_0xc8b071(0x187)][_0xc8b071(0xf3)][_0xc8b071(0x1a4)](_0x57e446,_0x46e174[_0x2b51d2])&&(_0x3e6083[_0x46e174[_0x2b51d2]]=_0x57e446[_0x46e174[_0x2b51d2]]);}return _0x3e6083;},j=f['forwardRef'](function(_0x23796d,_0x311d2e){var _0x2adf57=_0x3b2182,_0x5c3ba9=_0x23796d['icon'],_0x13f0d3=_0x23796d['id'],_0x3485a5=_0x23796d['className'],_0x1dc698=_0x23796d[_0x2adf57(0x1ac)],_0x1bd4f1=$(_0x23796d,[_0x2adf57(0x11a),'id',_0x2adf57(0x144),_0x2adf57(0x1ac)]),_0x3a3675=_0x2adf57(0x132)['concat'](_0x13f0d3,'\x20')['concat'](_0x3485a5||'')['trim'](),_0x449883=f['useRef']('_'[_0x2adf57(0x19b)](k()));return y(_0x5c3ba9,''['concat'](_0x13f0d3),{'defIds':_0x5c3ba9[_0x2adf57(0x10d)],'idSuffix':_0x449883['current']},u({'ref':_0x311d2e,'className':_0x3a3675},_0x1bd4f1),_0x1dc698);});function y(_0x229d53,_0x4aa774,_0x5d29a4,_0x475846,_0x5bc974){var _0x4c0d53=_0x3b2182;return f[_0x4c0d53(0x1c0)](_0x229d53[_0x4c0d53(0x168)],u(u({'key':_0x4aa774},H(_0x229d53,_0x5d29a4,_0x5bc974)),_0x475846),(V(_0x229d53,_0x5d29a4)[_0x4c0d53(0x106)]||[])[_0x4c0d53(0x12b)](function(_0x535621,_0x320c3b){var _0x99e6cf=_0x4c0d53;return y(_0x535621,''[_0x99e6cf(0x19b)](_0x4aa774,'-')['concat'](_0x229d53[_0x99e6cf(0x168)],'-')[_0x99e6cf(0x19b)](_0x320c3b),_0x5d29a4,void 0x0,_0x5bc974);}));}function H(_0x41a842,_0x2e8e99,_0x1ec713){var _0x410610=_0x3b2182,_0x524a2f=u({},_0x41a842[_0x410610(0x1aa)]);_0x1ec713!=null&&_0x1ec713[_0x410610(0x11d)]&&_0x524a2f[_0x410610(0x142)]===_0x410610(0x11d)&&(_0x524a2f[_0x410610(0x142)]=_0x1ec713[_0x410610(0x11d)]),_0x41a842[_0x410610(0x168)]===_0x410610(0x1b3)&&_0x524a2f['id']&&(_0x524a2f['id']=_0x524a2f['id']+_0x2e8e99[_0x410610(0x117)]),Object[_0x410610(0x118)](_0x524a2f)['forEach'](function(_0x48b43b){var _0x24b0e4=_0x410610,_0x5d473d=_0x48b43b[0x0],_0x1ebcb3=_0x48b43b[0x1];_0x5d473d==='mask'&&typeof _0x1ebcb3=='string'&&(_0x524a2f[_0x5d473d]=_0x1ebcb3[_0x24b0e4(0x191)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2e8e99['idSuffix'],')')));});var _0x3b5bec=_0x2e8e99[_0x410610(0x10d)];return!_0x3b5bec||_0x3b5bec[_0x410610(0x1c2)]===0x0||(_0x41a842[_0x410610(0x168)]===_0x410610(0x1bf)&&_0x524a2f[_0x410610(0x1a6)]&&(_0x524a2f[_0x410610(0x1a6)]=_0x524a2f[_0x410610(0x1a6)]+_0x2e8e99[_0x410610(0x117)]),Object[_0x410610(0x118)](_0x524a2f)[_0x410610(0x170)](function(_0x2dc885){var _0x8763b5=_0x410610,_0x8fe29c=_0x2dc885[0x0],_0x23af6f=_0x2dc885[0x1];typeof _0x23af6f=='string'&&(_0x524a2f[_0x8fe29c]=_0x23af6f[_0x8763b5(0x191)](/url\(#(.*)\)/,_0x8763b5(0x13d)[_0x8763b5(0x19b)](_0x2e8e99[_0x8763b5(0x117)],')')));})),_0x524a2f;}function V(_0x373431,_0x5b90c9){var _0x132d27=_0x3b2182,_0x2b6361,_0x177db8=_0x5b90c9[_0x132d27(0x10d)];return!_0x177db8||_0x177db8[_0x132d27(0x1c2)]===0x0?_0x373431:_0x373431[_0x132d27(0x168)]===_0x132d27(0x141)&&(!((_0x2b6361=_0x373431[_0x132d27(0x106)])===null||_0x2b6361===void 0x0)&&_0x2b6361[_0x132d27(0x1c2)])?u(u({},_0x373431),{'children':_0x373431['children'][_0x132d27(0x12b)](function(_0x2d8216){var _0xd1c5ac=_0x132d27;return typeof _0x2d8216['attrs']['id']==_0xd1c5ac(0x17f)&&_0x177db8&&_0x177db8['includes'](_0x2d8216['attrs']['id'])?u(u({},_0x2d8216),{'attrs':u(u({},_0x2d8216['attrs']),{'id':_0x2d8216[_0xd1c5ac(0x1aa)]['id']+_0x5b90c9[_0xd1c5ac(0x117)]})}):_0x2d8216;})}):_0x373431;}function k(){var _0x126625=_0x3b2182;return Math[_0x126625(0x194)]()[_0x126625(0xf8)](0x24)[_0x126625(0x19c)](0x2,0x8);}j[_0x3b2182(0xfc)]=_0x3b2182(0x1ab);var M={'tag':_0x3b2182(0x1cf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3b2182(0x19a),'viewBox':_0x3b2182(0x178),'width':_0x3b2182(0x1a1),'height':_0x3b2182(0x1a1)},'children':[{'tag':_0x3b2182(0x1b8),'attrs':{'fill':_0x3b2182(0x136),'d':_0x3b2182(0x188)}},{'tag':_0x3b2182(0x1b8),'attrs':{'fill':_0x3b2182(0x136),'d':_0x3b2182(0x1cc),'fillRule':_0x3b2182(0x1a8),'clipRule':_0x3b2182(0x1a8)}}]},P=f[_0x3b2182(0xff)](function(_0x48f68a,_0x526f4a){var _0x2f4ad3=_0x3b2182;return f[_0x2f4ad3(0x1c0)](j,Object[_0x2f4ad3(0x15f)]({},_0x48f68a,{'id':_0x2f4ad3(0x158),'ref':_0x526f4a,'icon':M}));});P[_0x3b2182(0xfc)]=_0x3b2182(0xf0);class O extends o[_0x3b2182(0x19f)]{constructor(){var _0x50f0fd=_0x3b2182;super(...arguments),v(this,_0x50f0fd(0x18f),new Set()),v(this,_0x50f0fd(0x129),new Set());}[_0x3b2182(0x155)](_0x36d7f2){var _0x12270d=_0x3b2182;return this[_0x12270d(0x18f)][_0x12270d(0x14a)](_0x36d7f2),o[_0x12270d(0x1a2)](()=>this[_0x12270d(0x18f)][_0x12270d(0x1c4)](_0x36d7f2));}['registerInitialStateReporter'](_0x15ebd){var _0x4a2ea9=_0x3b2182;return this[_0x4a2ea9(0x129)][_0x4a2ea9(0x14a)](_0x15ebd),o[_0x4a2ea9(0x1a2)](()=>this['_reporters'][_0x4a2ea9(0x1c4)](_0x15ebd));}['shouldShareOperation'](_0x40cb82){var _0x2a6bac=_0x3b2182;return this[_0x2a6bac(0x18f)]['has'](_0x40cb82);}[_0x3b2182(0x196)](_0x6af324){var _0x286acf=_0x3b2182;return Array[_0x286acf(0x148)](this[_0x286acf(0x129)])[_0x286acf(0x12b)](_0x214d7e=>_0x214d7e(_0x6af324));}}var q=Object[_0x3b2182(0x10b)],R=(_0x1f91d5,_0x19468f,_0x1bb846,_0x4e9620)=>{var _0x36891a=_0x3b2182;for(var _0x39f57a=_0x4e9620>0x1?void 0x0:_0x4e9620?q(_0x19468f,_0x1bb846):_0x19468f,_0x423906=_0x1f91d5[_0x36891a(0x1c2)]-0x1,_0x4e14b6;_0x423906>=0x0;_0x423906--)(_0x4e14b6=_0x1f91d5[_0x423906])&&(_0x39f57a=_0x4e14b6(_0x39f57a)||_0x39f57a);return _0x39f57a;},S=(_0x649ef6,_0x2d402b)=>(_0x53ca8b,_0x1c21d6)=>_0x2d402b(_0x53ca8b,_0x1c21d6,_0x649ef6);exports['LiveShareController']=class extends o[_0x3b2182(0x101)]{constructor(_0x22473d,_0x287e9d,_0xf40df0){var _0x193819=_0x3b2182;super(),v(this,'_entities',new Map()),(this[_0x193819(0x1c8)]=_0x22473d,this['_injector']=_0x287e9d,this[_0x193819(0x16d)]=_0xf40df0,this[_0x193819(0xec)]());}async[_0x3b2182(0xfd)](_0x2b1097){var _0x674193=_0x3b2182;return this[_0x674193(0x177)]['has'](_0x2b1097)||await this[_0x674193(0x153)](_0x2b1097),this['_entities'][_0x674193(0x18d)](_0x2b1097);}['_init'](){var _0x326782=_0x3b2182;this[_0x326782(0x1c8)][_0x326782(0x1a3)](o[_0x326782(0x10f)][_0x326782(0x195)])[_0x326782(0x16a)](b[_0x326782(0x131)](this['dispose$']))[_0x326782(0x119)](async _0x57f131=>{const _0x3206ca=_0x57f131['getUnitId']();this['_entities']['has'](_0x3206ca)||this['_startLiveShareCoordinator'](_0x3206ca);}),this['_univerInstanceService'][_0x326782(0x171)](o[_0x326782(0x10f)][_0x326782(0x195)])[_0x326782(0x16a)](b[_0x326782(0x131)](this[_0x326782(0x156)]))[_0x326782(0x119)](_0x15578f=>{var _0x858222=_0x326782;const _0x1739be=_0x15578f[_0x858222(0x167)](),_0x129433=this[_0x858222(0x177)][_0x858222(0x18d)](_0x1739be);_0x129433==null||_0x129433[_0x858222(0x1b4)]();});}async['_startLiveShareCoordinator'](_0x2ed824){var _0x32d5ea=_0x3b2182;const _0x513350=await this['_collabSessionService'][_0x32d5ea(0xed)](_0x2ed824),_0x993805=this[_0x32d5ea(0x166)]['createInstance'](exports['LiveShareCoordinator'],_0x2ed824,_0x513350);return _0x993805[_0x32d5ea(0x1bd)](),this[_0x32d5ea(0x177)][_0x32d5ea(0x105)](_0x2ed824,_0x993805),_0x993805;}},exports[_0x3b2182(0x13b)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x3b2182(0x183)](o[_0x3b2182(0x13e)])),S(0x2,o[_0x3b2182(0x183)](m[_0x3b2182(0x100)]))],exports['LiveShareController']);var h=(_0x4e8b06=>(_0x4e8b06['OFFLINE']=_0x3b2182(0x14d),_0x4e8b06[_0x3b2182(0x130)]=_0x3b2182(0x12e),_0x4e8b06[_0x3b2182(0xee)]=_0x3b2182(0x199),_0x4e8b06[_0x3b2182(0x122)]='not-following',_0x4e8b06[_0x3b2182(0x1b7)]=_0x3b2182(0x11b),_0x4e8b06))(h||{});const W=_0x3b2182(0x11e),G=0xc8;exports['LiveShareCoordinator']=class extends o[_0x3b2182(0x101)]{constructor(_0x3369c8,_0x3adae,_0x4ee632,_0x1fc075,_0x423211){var _0x4f6c50=_0x3b2182;super(),v(this,'_status$',new w['BehaviorSubject'](_0x4f6c50(0x12e))),v(this,_0x4f6c50(0xfe),this[_0x4f6c50(0x151)][_0x4f6c50(0x186)]()),v(this,_0x4f6c50(0xec),!0x1),v(this,'_commandDisposable',null),v(this,_0x4f6c50(0x180),null),(this[_0x4f6c50(0x135)]=_0x3369c8,this['_collabSession']=_0x3adae,this[_0x4f6c50(0x181)]=_0x4ee632,this[_0x4f6c50(0x17d)]=_0x1fc075,this['_commandService']=_0x423211);}get[_0x3b2182(0x1c9)](){var _0x2b2dfc=_0x3b2182;return this['_status$'][_0x2b2dfc(0x13f)]();}[_0x3b2182(0x1b4)](){var _0x4b5a82=_0x3b2182,_0x4d635f;(_0x4d635f=this[_0x4b5a82(0x16f)])==null||_0x4d635f[_0x4b5a82(0x1b4)](),this[_0x4b5a82(0x151)][_0x4b5a82(0x111)](_0x4b5a82(0x12e)),this[_0x4b5a82(0x151)][_0x4b5a82(0x1c3)]();}[_0x3b2182(0x1bd)](){var _0x1cf591=_0x3b2182;this[_0x1cf591(0xec)]||(this[_0x1cf591(0xec)]=!0x0,this['_collabSession'][_0x1cf591(0x1a5)]['pipe'](b[_0x1cf591(0x131)](this['dispose$']))[_0x1cf591(0x119)](_0x4225bb=>{var _0x4d0985=_0x1cf591;switch(_0x4225bb){case m[_0x4d0985(0x1bb)][_0x4d0985(0x1ae)]:this[_0x4d0985(0xeb)]();break;case m['SessionStatus']['ONLINE']:this[_0x4d0985(0x176)]();break;}}),this[_0x1cf591(0x1b2)][_0x1cf591(0x147)][_0x1cf591(0x16a)](b[_0x1cf591(0x131)](this[_0x1cf591(0x156)]))[_0x1cf591(0x119)](_0x3f58bf=>{var _0x20cc24=_0x1cf591;const {eventID:_0x271db2}=_0x3f58bf;switch(_0x271db2){case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x20cc24(0x169)](_0x3f58bf);break;case _[_0x20cc24(0x193)][_0x20cc24(0x1cb)]:this[_0x20cc24(0x1b5)](_0x3f58bf);break;case _[_0x20cc24(0x193)]['LIVESHARE_TERMINATE']:this[_0x20cc24(0x1b9)]();break;case _[_0x20cc24(0x193)][_0x20cc24(0x15e)]:this[_0x20cc24(0x149)](_0x3f58bf);break;}}));}[_0x3b2182(0x133)](){var _0x203b2e=_0x3b2182;this[_0x203b2e(0x1b2)][_0x203b2e(0x19e)]({'eventID':_[_0x203b2e(0x193)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x203b2e(0x135)],'userID':this[_0x203b2e(0x1b2)][_0x203b2e(0x123)]()}},this[_0x203b2e(0x135)]);}[_0x3b2182(0x179)](){var _0xac9ed0=_0x3b2182;this[_0xac9ed0(0x1c9)]===_0xac9ed0(0x11b)&&(this[_0xac9ed0(0x151)][_0xac9ed0(0x111)](_0xac9ed0(0x12e)),this[_0xac9ed0(0x1b2)]['send']({'eventID':_[_0xac9ed0(0x193)][_0xac9ed0(0xf9)],'data':{'unitID':this[_0xac9ed0(0x135)]}},this[_0xac9ed0(0x135)]));}[_0x3b2182(0x104)](){var _0x1a1fce=_0x3b2182;this[_0x1a1fce(0x1c9)]===_0x1a1fce(0xea)&&(this[_0x1a1fce(0x151)]['next'](_0x1a1fce(0x199)),this[_0x1a1fce(0x16b)]());}[_0x3b2182(0x14b)](){var _0x22fa9c=_0x3b2182;this[_0x22fa9c(0x1c9)]===_0x22fa9c(0x199)&&this[_0x22fa9c(0x1c7)]();}['_handleNewHost'](_0x27a8e7){var _0x4b1610=_0x3b2182;const {presenter:_0x2667d5}=_0x27a8e7[_0x4b1610(0x175)],_0x15ff2a=this[_0x4b1610(0x1b2)][_0x4b1610(0x123)]();this[_0x4b1610(0x180)]=_0x2667d5,_0x2667d5===_0x15ff2a?(this[_0x4b1610(0x1c7)](),this[_0x4b1610(0x172)]()):this['_status']!==_0x4b1610(0xea)&&(this[_0x4b1610(0xf7)](),this[_0x4b1610(0x16b)]());}[_0x3b2182(0x13a)](){var _0x21cb63=_0x3b2182;const _0x391e0b={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x21cb63(0x1b2)]['send'](_0x391e0b,this[_0x21cb63(0x135)]);}[_0x3b2182(0x1b9)](){var _0x315445=_0x3b2182;this[_0x315445(0x180)]=null,this[_0x315445(0x1c9)]!==_0x315445(0x11b)&&this[_0x315445(0x143)]();}['_handleNewChangeSets'](_0x3b2d98){var _0x42eacd=_0x3b2182;if(this[_0x42eacd(0x1c9)]===_0x42eacd(0x199)&&this[_0x42eacd(0x180)]===_0x3b2d98[_0x42eacd(0x175)][_0x42eacd(0xf4)]){const _0x39f5d6=_[_0x42eacd(0x1c1)](_0x3b2d98[_0x42eacd(0x175)])[_0x42eacd(0x190)][_0x42eacd(0x1b6)]()[_0x42eacd(0x121)](_0x265027=>_0x265027['id']===C[_0x42eacd(0x12d)]['id']);if(_0x39f5d6){const _0x2db6d8=_0x39f5d6['params']['unitId'],_0x4e9f5e=_0x39f5d6[_0x42eacd(0x12a)][_0x42eacd(0x12c)]['id'];setTimeout(()=>{var _0x461478=_0x42eacd;this['_commandService']['executeCommand'](C[_0x461478(0x16e)]['id'],{'unitId':_0x2db6d8,'subUnitId':_0x4e9f5e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1475b8=_0x3b2182;this[_0x1475b8(0x151)][_0x1475b8(0x111)](_0x1475b8(0x11b));const _0x483b6f=new Map(),_0x4a313f=this[_0x1475b8(0x16f)]=new o[(_0x1475b8(0x1c6))]();_0x4a313f[_0x1475b8(0x14a)](o[_0x1475b8(0x1a2)](()=>{var _0x163933=_0x1475b8;_0x483b6f[_0x163933(0x170)](_0x3101b6=>_0x3101b6[_0x163933(0x1c3)]()),_0x483b6f[_0x163933(0x12f)]();})),_0x4a313f[_0x1475b8(0x14a)](this['_commandService'][_0x1475b8(0x174)](_0x5ec243=>{var _0x15eb5c=_0x1475b8,_0x1717f8;if(_0x5ec243[_0x15eb5c(0x164)]!==o[_0x15eb5c(0x152)]['OPERATION']||!this[_0x15eb5c(0x17d)][_0x15eb5c(0x19d)](_0x5ec243['id']))return;const {id:_0x30e0b2}=_0x5ec243;let _0xd1ead6;_0x483b6f[_0x15eb5c(0x126)](_0x30e0b2)?_0xd1ead6=_0x483b6f[_0x15eb5c(0x18d)](_0x30e0b2):(_0xd1ead6=new w[(_0x15eb5c(0x10a))](),_0x483b6f[_0x15eb5c(0x105)](_0x30e0b2,_0xd1ead6),_0xd1ead6[_0x15eb5c(0x16a)](b[_0x15eb5c(0x15d)]((_0x1717f8=this[_0x15eb5c(0x181)][_0x15eb5c(0x1b1)](W))!=null?_0x1717f8:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x15eb5c(0x119)](_0x5419f0=>{var _0x2e532c=_0x15eb5c;this[_0x2e532c(0x1b2)][_0x2e532c(0x19e)]({'eventID':_[_0x2e532c(0x193)][_0x2e532c(0x1cb)],'data':{'unitID':this[_0x2e532c(0x135)],'operations':{[_0x5419f0['id']]:{'id':_0x5419f0['id'],'params':JSON[_0x2e532c(0x10c)](_0x5419f0['params'])}}}},this[_0x2e532c(0x135)]);})),_0xd1ead6['next'](_0x5ec243);})),this[_0x1475b8(0x17d)]['getInitialStates'](this['_unitID'])[_0x1475b8(0x170)](_0x42d152=>this[_0x1475b8(0x1b2)][_0x1475b8(0x19e)]({'eventID':_['CollaborationEvent'][_0x1475b8(0x1cb)],'data':{'unitID':this[_0x1475b8(0x135)],'operations':{[_0x42d152['id']]:{'id':_0x42d152['id'],'params':JSON['stringify'](_0x42d152[_0x1475b8(0x12a)])}}}},this[_0x1475b8(0x135)]));}[_0x3b2182(0xf7)](){var _0x4ccd1c=_0x3b2182,_0x58a6cc;this['_status$'][_0x4ccd1c(0x111)](_0x4ccd1c(0x12e)),(_0x58a6cc=this['_commandDisposable'])==null||_0x58a6cc[_0x4ccd1c(0x1b4)](),this['_commandDisposable']=null;}[_0x3b2182(0x16b)](){var _0x1afd64=_0x3b2182,_0x17a9b8;(_0x17a9b8=this[_0x1afd64(0x16f)])==null||_0x17a9b8[_0x1afd64(0x1b4)](),this[_0x1afd64(0x151)][_0x1afd64(0x111)]('following');}[_0x3b2182(0x143)](){var _0x52dfdc=_0x3b2182,_0xc47484;this[_0x52dfdc(0x151)][_0x52dfdc(0x111)](_0x52dfdc(0x12e)),(_0xc47484=this['_commandDisposable'])==null||_0xc47484[_0x52dfdc(0x1b4)](),this['_commandDisposable']=null;}[_0x3b2182(0x1c7)](){var _0x4ef709=_0x3b2182,_0xa3e4f3;this[_0x4ef709(0x151)][_0x4ef709(0x111)](_0x4ef709(0xea)),(_0xa3e4f3=this[_0x4ef709(0x16f)])==null||_0xa3e4f3[_0x4ef709(0x1b4)]();}[_0x3b2182(0x1b5)](_0x11c54a){var _0x2db641=_0x3b2182;if(['presenting','not-following',_0x2db641(0x14d)][_0x2db641(0x157)](this[_0x2db641(0x1c9)])||!_0x11c54a['data'][_0x2db641(0x16c)]||_0x11c54a[_0x2db641(0x175)][_0x2db641(0x16c)]===this['_collabSession'][_0x2db641(0x123)]())return;this[_0x2db641(0x1c9)]===_0x2db641(0x12e)&&this[_0x2db641(0x16b)]();const _0x1d4d47=_0x11c54a[_0x2db641(0x175)][_0x2db641(0x150)];Object[_0x2db641(0x13c)](_0x1d4d47)['forEach'](_0x33ac03=>{var _0x3bf9cc=_0x2db641;this[_0x3bf9cc(0x197)]['executeCommand'](_0x33ac03['id'],_0x33ac03[_0x3bf9cc(0x12a)]?JSON[_0x3bf9cc(0x103)](_0x33ac03['params']):null,{'fromCollab':!0x0});});}[_0x3b2182(0xeb)](){var _0x3cd5f2=_0x3b2182,_0x4bacf8;this[_0x3cd5f2(0x151)][_0x3cd5f2(0x111)](_0x3cd5f2(0x14d)),(_0x4bacf8=this[_0x3cd5f2(0x16f)])==null||_0x4bacf8[_0x3cd5f2(0x1b4)]();}[_0x3b2182(0x176)](){var _0x482291=_0x3b2182;this[_0x482291(0x151)][_0x482291(0x111)]('idle'),this['_fetchOperations']();}},exports[_0x3b2182(0x113)]=R([S(0x2,o[_0x3b2182(0x1a0)]),S(0x3,o[_0x3b2182(0x183)](O)),S(0x4,o['ICommandService'])],exports[_0x3b2182(0x113)]);function A(){var _0x10b35f=_0x3b2182;const _0x3fc2dc=p[_0x10b35f(0x102)](exports['LiveShareController']),_0x2db3c9=p[_0x10b35f(0x102)](o[_0x10b35f(0x140)]),_0xf5dac2=p[_0x10b35f(0x163)](()=>_0x2db3c9['getCurrentTypeOfUnit$'](o[_0x10b35f(0x10f)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1eb6d6,_0x482636]=f['useState'](null),[_0x2e1ed9,_0x3967f7]=f[_0x10b35f(0x1ca)](h[_0x10b35f(0x130)]),_0x1fdfa5=f[_0x10b35f(0x110)](null);return f['useEffect'](()=>(_0xf5dac2&&_0x3fc2dc[_0x10b35f(0xfd)](_0xf5dac2[_0x10b35f(0x167)]())[_0x10b35f(0x125)](_0x3b3ccb=>{var _0x2b28bd=_0x10b35f;_0x482636(_0x3b3ccb),_0x1fdfa5[_0x2b28bd(0xef)]=_0x3b3ccb[_0x2b28bd(0xfe)][_0x2b28bd(0x119)](_0x154843=>{_0x3967f7(_0x154843);});}),()=>{var _0x1c7865=_0x10b35f,_0x31545d;(_0x31545d=_0x1fdfa5[_0x1c7865(0xef)])==null||_0x31545d[_0x1c7865(0x10e)](),_0x1fdfa5[_0x1c7865(0xef)]=null;}),[_0xf5dac2,_0x3fc2dc]),_0x1eb6d6?l[_0x10b35f(0x161)](g[_0x10b35f(0x134)],{'align':'end','disabled':_0x2e1ed9===h[_0x10b35f(0x1ae)],'className':_0x10b35f(0x154),'overlay':l[_0x10b35f(0x161)](B,{'status':_0x2e1ed9,'coordinator':_0x1eb6d6}),'children':l['jsx'](_0x10b35f(0x109),{'className':g[_0x10b35f(0x173)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2e1ed9===h[_0x10b35f(0x1ae)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e1ed9!==h['OFFLINE']}),'type':_0x10b35f(0x109),'children':l[_0x10b35f(0x161)](P,{'className':_0x10b35f(0x114)})})}):null;}function B(_0x2dc913){var _0x312635=_0x3b2182;const {status:_0x4171fd,coordinator:_0x5ec5de}=_0x2dc913;switch(_0x4171fd){case h[_0x312635(0x130)]:return l['jsx'](Y,{'coordinator':_0x5ec5de});case h[_0x312635(0xee)]:return l[_0x312635(0x161)](Z,{'coordinator':_0x5ec5de});case h['NOT_FOLLOWING']:return l[_0x312635(0x161)](J,{'coordinator':_0x5ec5de});case h['OFFLINE']:return l[_0x312635(0x161)](z,{});case h[_0x312635(0x1b7)]:return l[_0x312635(0x161)](K,{'coordinator':_0x5ec5de});default:return null;}}function Y(_0x5be6f8){var _0x5ed0db=_0x3b2182;const {coordinator:_0x14e292}=_0x5be6f8;return l[_0x5ed0db(0xfb)](l['Fragment'],{'children':[l['jsx'](_0x5ed0db(0x137),{'className':_0x5ed0db(0x18e),'children':_0x5ed0db(0x11f)}),l['jsx'](g['Button'],{'onClick':()=>_0x14e292[_0x5ed0db(0x133)](),'children':_0x5ed0db(0x145)})]});}function Z(_0x16bc77){var _0x1563dd=_0x3b2182;const {coordinator:_0x43813c}=_0x16bc77;return l['jsxs'](l['Fragment'],{'children':[l[_0x1563dd(0x161)](_0x1563dd(0x137),{'className':_0x1563dd(0x18e),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'onClick':()=>_0x43813c[_0x1563dd(0x14b)](),'children':_0x1563dd(0x14e)})]});}function J(_0xe91ce5){var _0x3b67ba=_0x3b2182;const {coordinator:_0x4856ec}=_0xe91ce5;return l[_0x3b67ba(0xfb)](l[_0x3b67ba(0x189)],{'children':[l[_0x3b67ba(0x161)](_0x3b67ba(0x137),{'className':_0x3b67ba(0x18e),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g[_0x3b67ba(0x17c)],{'variant':_0x3b67ba(0x1ad),'onClick':()=>_0x4856ec[_0x3b67ba(0x104)](),'children':_0x3b67ba(0x185)})]});}function K(_0x3defa3){var _0x386dc8=_0x3b2182;const {coordinator:_0xed9abf}=_0x3defa3;return l[_0x386dc8(0xfb)](l['Fragment'],{'children':[l[_0x386dc8(0x161)](_0x386dc8(0x137),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x386dc8(0x108)}),l[_0x386dc8(0x161)](g[_0x386dc8(0x17c)],{'variant':_0x386dc8(0x146),'onClick':()=>_0xed9abf[_0x386dc8(0x179)](),'children':_0x386dc8(0x18c)})]});}function z(){var _0x226b9a=_0x3b2182;return l[_0x226b9a(0x161)](l[_0x226b9a(0x189)],{'children':_0x226b9a(0x124)});}var Q=Object[_0x3b2182(0x10b)],X=(_0x1686c7,_0x48ac5f,_0xc87fe1,_0x5b242d)=>{for(var _0x41f996=_0x5b242d>0x1?void 0x0:_0x5b242d?Q(_0x48ac5f,_0xc87fe1):_0x48ac5f,_0x275ad2=_0x1686c7['length']-0x1,_0x192bc6;_0x275ad2>=0x0;_0x275ad2--)(_0x192bc6=_0x1686c7[_0x275ad2])&&(_0x41f996=_0x192bc6(_0x41f996)||_0x41f996);return _0x41f996;},x=(_0x761557,_0x580e38)=>(_0x393153,_0x258a9f)=>_0x580e38(_0x393153,_0x258a9f,_0x761557);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x1438e9,_0x16b4b3){var _0x29b62e=_0x3b2182;super(),this[_0x29b62e(0x166)]=_0x1438e9,this[_0x29b62e(0x1b0)]=_0x16b4b3,this['_mountLiveShare']();}[_0x3b2182(0x1a7)](){var _0x4afd66=_0x3b2182;this[_0x4afd66(0x15b)](this[_0x4afd66(0x1b0)][_0x4afd66(0x138)](p[_0x4afd66(0x1a9)][_0x4afd66(0x14c)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x3b2182(0x116)]=X([x(0x0,o[_0x3b2182(0x183)](o[_0x3b2182(0x13e)])),x(0x1,p['IUIPartsService'])],exports[_0x3b2182(0x116)]);const ee=_0x3b2182(0x17a),L={};var te=Object[_0x3b2182(0x10b)],ie=(_0x2f2ae2,_0x39ac08,_0x289cf3,_0x29ed0b)=>{var _0x2b629d=_0x3b2182;for(var _0x446641=_0x29ed0b>0x1?void 0x0:_0x29ed0b?te(_0x39ac08,_0x289cf3):_0x39ac08,_0x40ce3f=_0x2f2ae2[_0x2b629d(0x1c2)]-0x1,_0x581dea;_0x40ce3f>=0x0;_0x40ce3f--)(_0x581dea=_0x2f2ae2[_0x40ce3f])&&(_0x446641=_0x581dea(_0x446641)||_0x446641);return _0x446641;},ne=(_0x55cbaf,_0x581d95)=>(_0x69fb31,_0x2a7303)=>_0x581d95(_0x69fb31,_0x2a7303,_0x55cbaf);let E=class extends o[_0x3b2182(0x19f)]{constructor(_0x249746){var _0x35fe0c=_0x3b2182;super(),this[_0x35fe0c(0x17d)]=_0x249746,this[_0x35fe0c(0xec)]();}[_0x3b2182(0xec)](){var _0x57acc1=_0x3b2182;[D[_0x57acc1(0x15c)]['id'],D[_0x57acc1(0x1ba)]['id'],C['SetWorksheetActiveOperation']['id']][_0x57acc1(0x170)](_0x2f7358=>{var _0x40ea51=_0x57acc1;this[_0x40ea51(0x15b)](this['_liveShareService'][_0x40ea51(0x155)](_0x2f7358));});}};E=ie([ne(0x0,o['Inject'](O))],E);function _0x4de9(_0x2a5926,_0x45e3ae){var _0x1f5353=_0x1f53();return _0x4de9=function(_0x4de95a,_0x12eeca){_0x4de95a=_0x4de95a-0xea;var _0x2e70a0=_0x1f5353[_0x4de95a];return _0x2e70a0;},_0x4de9(_0x2a5926,_0x45e3ae);}var re=Object[_0x3b2182(0xfa)],se=Object[_0x3b2182(0x10b)],oe=(_0xd77a7f,_0x30511e,_0x1e6f51)=>_0x30511e in _0xd77a7f?re(_0xd77a7f,_0x30511e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e6f51}):_0xd77a7f[_0x30511e]=_0x1e6f51,ae=(_0x1d6061,_0x497854,_0x4e6e91,_0x22c0f9)=>{var _0x4633f5=_0x3b2182;for(var _0x47cc47=_0x22c0f9>0x1?void 0x0:_0x22c0f9?se(_0x497854,_0x4e6e91):_0x497854,_0x13de95=_0x1d6061[_0x4633f5(0x1c2)]-0x1,_0x36b788;_0x13de95>=0x0;_0x13de95--)(_0x36b788=_0x1d6061[_0x13de95])&&(_0x47cc47=_0x36b788(_0x47cc47)||_0x47cc47);return _0x47cc47;},N=(_0x14d405,_0xa82d21)=>(_0x4baa37,_0x5bcc1f)=>_0xa82d21(_0x4baa37,_0x5bcc1f,_0x14d405),T=(_0x2b354a,_0x5de71f,_0x4d74b5)=>oe(_0x2b354a,typeof _0x5de71f!=_0x3b2182(0xf1)?_0x5de71f+'':_0x5de71f,_0x4d74b5);function _0x1f53(){var _0x348feb=['_presenter','_configService','DependentOn','Inject','UNIVER_LIVE_SHARE_PLUGIN','Start\x20following','asObservable','prototype','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','Fragment','hasOwnProperty','override','Stop\x20presenting','get','univer-mb-3\x20univer-w-full\x20univer-text-sm','_sharedOperations','mutations','replace','UniverCollaborationClientPlugin','CollaborationEvent','random','UNIVER_SHEET','getInitialStates','_commandService','1329880obkTUK','following','none','concat','substring','shouldShareOperation','send','Disposable','IConfigService','1em','toDisposable','getTypeOfUnitAdded$','call','sessionStatus$','xlink:href','_mountLiveShare','evenodd','BuiltInUIPart','attrs','UniverIcon','extend','text','OFFLINE','indexOf','_uiPartsService','getConfig','_collabSession','mask','dispose','_handleOperation','reverse','PRESENTING','path','_handleTerminate','SetScrollOperation','SessionStatus','function','init','8989893iRVLhr','use','createElement','parseProtocolChangeset','length','complete','delete','merge','DisposableCollection','_stopFollowing','_univerInstanceService','_status','useState','LIVESHARE_OPERATION','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','UNIVER_UNKNOWN','setConfig','svg','not-following','_handleOffline','_init','requireSession','FOLLOWING','current','LiveShareIcon','symbol','LiveShareService','propertyIsEnumerable','memberID','pluginName','6119491BYNWRi','_stopPresenting','toString','LIVESHARE_TERMINATE','defineProperty','jsxs','displayName','getLiveShareCoordinator','status$','forwardRef','CollaborationSessionService','RxDisposable','useDependency','parse','startFollowing','set','children','touchDependencies','You\x27re\x20presenting\x20the\x20document','button','Subject','getOwnPropertyDescriptor','stringify','defIds','unsubscribe','UniverInstanceType','useRef','next','292llyOZI','LiveShareCoordinator','univer-size-4','mergeOverrideWithDependencies','DesktopLiveShareController','idSuffix','entries','subscribe','icon','presenting','133406xghDuo','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','Present\x20this\x20document','LiveShare','find','NOT_FOLLOWING','getMemberID','You\x27are\x20offline.','then','has','1190099EsugWP','LiveShareStatus','_reporters','params','map','sheet','InsertSheetMutation','idle','clear','IDLE','takeUntil','univerjs-icon\x20univerjs-icon-','tryStartPresenting','Dropdown','_unitID','currentColor','div','registerComponent','Plugin','_fetchOperations','LiveShareController','values','url(#$1','Injector','getValue','IUniverInstanceService','defs','fill','_beIdle','className','Start','default','event$','from','_handleNewChangeSets','add','stopFollowing','HEADER_MENU','offline','Stop\x20following','12271256KgesfM','operations','_status$','CommandType','_startLiveShareCoordinator','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','registerSharedOperation','dispose$','includes','live-share-icon','toStringTag','UniverLiveSharePlugin','disposeWithMe','SetZoomRatioOperation','throttleTime','NEW_CHANGESETS','assign','_config','jsx','onStarting','useObservable','type','49629LnePZh','_injector','getUnitId','tag','_handleNewHost','pipe','_startFollowing','presenter','_collabSessionService','SetWorksheetActiveOperation','_commandDisposable','forEach','getTypeOfUnitDisposed$','_startPresenting','clsx','onCommandExecuted','data','_handleOnline','_entities','0\x200\x2017\x2017','stopPresenting','live-share.config','12HPLxuZ','Button','_liveShareService','getOwnPropertySymbols','string'];_0x1f53=function(){return _0x348feb;};return _0x1f53();}const le=_0x3b2182(0x184);exports[_0x3b2182(0x15a)]=class extends o[_0x3b2182(0x139)]{constructor(_0x34d694=L,_0x1694aa,_0x35c61f){var _0x2760b9=_0x3b2182;super(),this[_0x2760b9(0x160)]=_0x34d694,this[_0x2760b9(0x166)]=_0x1694aa,this[_0x2760b9(0x181)]=_0x35c61f;const {..._0x307f3e}=o[_0x2760b9(0x1c5)]({},L,this['_config']);this[_0x2760b9(0x181)][_0x2760b9(0x1ce)](ee,_0x307f3e);}[_0x3b2182(0x162)](){var _0x50e7ba=_0x3b2182;o['registerDependencies'](this[_0x50e7ba(0x166)],o[_0x50e7ba(0x115)]([[O],[exports['LiveShareController']],[E],[exports['DesktopLiveShareController']]],this[_0x50e7ba(0x160)][_0x50e7ba(0x18b)])),o[_0x50e7ba(0x107)](this['_injector'],[[E]]);}['onRendered'](){var _0x4a010c=_0x3b2182;o['touchDependencies'](this[_0x4a010c(0x166)],[[exports[_0x4a010c(0x116)]]]);}},T(exports[_0x3b2182(0x15a)],_0x3b2182(0x164),o[_0x3b2182(0x10f)][_0x3b2182(0x1cd)]),T(exports[_0x3b2182(0x15a)],_0x3b2182(0xf5),le),exports[_0x3b2182(0x15a)]=ae([o[_0x3b2182(0x182)](m[_0x3b2182(0x192)]),N(0x1,o[_0x3b2182(0x183)](o[_0x3b2182(0x13e)])),N(0x2,o[_0x3b2182(0x1a0)])],exports['UniverLiveSharePlugin']),exports[_0x3b2182(0x120)]=A,exports[_0x3b2182(0xf2)]=O,exports[_0x3b2182(0x128)]=h;
1
+ 'use strict';var _0x477ba9=_0xb564;(function(_0x4fe548,_0x4a0aa2){var _0x23f6fb=_0xb564,_0x44843a=_0x4fe548();while(!![]){try{var _0x35244f=-parseInt(_0x23f6fb(0x21f))/0x1+parseInt(_0x23f6fb(0x1e6))/0x2+-parseInt(_0x23f6fb(0x206))/0x3*(-parseInt(_0x23f6fb(0x1ed))/0x4)+parseInt(_0x23f6fb(0x26a))/0x5*(-parseInt(_0x23f6fb(0x267))/0x6)+parseInt(_0x23f6fb(0x225))/0x7*(parseInt(_0x23f6fb(0x28b))/0x8)+-parseInt(_0x23f6fb(0x2ad))/0x9+-parseInt(_0x23f6fb(0x208))/0xa*(-parseInt(_0x23f6fb(0x254))/0xb);if(_0x35244f===_0x4a0aa2)break;else _0x44843a['push'](_0x44843a['shift']());}catch(_0x59c742){_0x44843a['push'](_0x44843a['shift']());}}}(_0x331b,0x6e9f3));var U=Object[_0x477ba9(0x264)],F=(_0x2b7ca7,_0x4b16a0,_0x1ffb1a)=>_0x4b16a0 in _0x2b7ca7?U(_0x2b7ca7,_0x4b16a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ffb1a}):_0x2b7ca7[_0x4b16a0]=_0x1ffb1a,v=(_0x1b5bbf,_0x6293e4,_0x135e39)=>F(_0x1b5bbf,typeof _0x6293e4!='symbol'?_0x6293e4+'':_0x6293e4,_0x135e39);Object[_0x477ba9(0x264)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x3bb1d7=_0x477ba9;return u=Object[_0x3bb1d7(0x283)]||function(_0xa3b9cc){var _0x1418af=_0x3bb1d7;for(var _0x4d04ed,_0x5f3185=0x1,_0x38d54e=arguments[_0x1418af(0x1fb)];_0x5f3185<_0x38d54e;_0x5f3185++){_0x4d04ed=arguments[_0x5f3185];for(var _0x31075b in _0x4d04ed)Object[_0x1418af(0x1e5)][_0x1418af(0x240)]['call'](_0x4d04ed,_0x31075b)&&(_0xa3b9cc[_0x31075b]=_0x4d04ed[_0x31075b]);}return _0xa3b9cc;},u[_0x3bb1d7(0x1fc)](this,arguments);},$=function(_0x2d6e51,_0x1883b7){var _0x242ccf=_0x477ba9,_0x2d0248={};for(var _0x163f2d in _0x2d6e51)Object[_0x242ccf(0x1e5)][_0x242ccf(0x240)][_0x242ccf(0x246)](_0x2d6e51,_0x163f2d)&&_0x1883b7[_0x242ccf(0x23b)](_0x163f2d)<0x0&&(_0x2d0248[_0x163f2d]=_0x2d6e51[_0x163f2d]);if(_0x2d6e51!=null&&typeof Object[_0x242ccf(0x1f9)]==_0x242ccf(0x292)){for(var _0x188b1c=0x0,_0x163f2d=Object[_0x242ccf(0x1f9)](_0x2d6e51);_0x188b1c<_0x163f2d['length'];_0x188b1c++)_0x1883b7[_0x242ccf(0x23b)](_0x163f2d[_0x188b1c])<0x0&&Object[_0x242ccf(0x1e5)]['propertyIsEnumerable'][_0x242ccf(0x246)](_0x2d6e51,_0x163f2d[_0x188b1c])&&(_0x2d0248[_0x163f2d[_0x188b1c]]=_0x2d6e51[_0x163f2d[_0x188b1c]]);}return _0x2d0248;},j=f['forwardRef'](function(_0x3d5318,_0x2cf074){var _0x2fc62f=_0x477ba9,_0x373db1=_0x3d5318['icon'],_0x3ded00=_0x3d5318['id'],_0x2e337c=_0x3d5318[_0x2fc62f(0x204)],_0x3ae24d=_0x3d5318[_0x2fc62f(0x22f)],_0x5b3b50=$(_0x3d5318,[_0x2fc62f(0x24a),'id','className',_0x2fc62f(0x22f)]),_0x5b2694=_0x2fc62f(0x24c)['concat'](_0x3ded00,'\x20')['concat'](_0x2e337c||'')[_0x2fc62f(0x263)](),_0x38cfd8=f[_0x2fc62f(0x286)]('_'[_0x2fc62f(0x20e)](k()));return y(_0x373db1,''[_0x2fc62f(0x20e)](_0x3ded00),{'defIds':_0x373db1['defIds'],'idSuffix':_0x38cfd8[_0x2fc62f(0x210)]},u({'ref':_0x2cf074,'className':_0x5b2694},_0x5b3b50),_0x3ae24d);});function y(_0x5d9ba8,_0x4454d7,_0x4bab29,_0x3126a8,_0xc7a8fd){var _0x11357c=_0x477ba9;return f[_0x11357c(0x1f2)](_0x5d9ba8['tag'],u(u({'key':_0x4454d7},H(_0x5d9ba8,_0x4bab29,_0xc7a8fd)),_0x3126a8),(V(_0x5d9ba8,_0x4bab29)[_0x11357c(0x20f)]||[])[_0x11357c(0x2a0)](function(_0x53da20,_0x573733){var _0x435ec9=_0x11357c;return y(_0x53da20,''[_0x435ec9(0x20e)](_0x4454d7,'-')[_0x435ec9(0x20e)](_0x5d9ba8[_0x435ec9(0x21e)],'-')['concat'](_0x573733),_0x4bab29,void 0x0,_0xc7a8fd);}));}function H(_0x1b8946,_0x1ca9ad,_0x8eab6d){var _0x40b1da=_0x477ba9,_0x75c9b0=u({},_0x1b8946[_0x40b1da(0x20a)]);_0x8eab6d!=null&&_0x8eab6d[_0x40b1da(0x201)]&&_0x75c9b0[_0x40b1da(0x255)]===_0x40b1da(0x201)&&(_0x75c9b0[_0x40b1da(0x255)]=_0x8eab6d['colorChannel1']),_0x1b8946['tag']===_0x40b1da(0x258)&&_0x75c9b0['id']&&(_0x75c9b0['id']=_0x75c9b0['id']+_0x1ca9ad[_0x40b1da(0x2a6)]),Object[_0x40b1da(0x27c)](_0x75c9b0)[_0x40b1da(0x28e)](function(_0xb9b7e){var _0x298b1e=_0x40b1da,_0x4887c8=_0xb9b7e[0x0],_0x4731c4=_0xb9b7e[0x1];_0x4887c8==='mask'&&typeof _0x4731c4=='string'&&(_0x75c9b0[_0x4887c8]=_0x4731c4[_0x298b1e(0x253)](/url\(#(.*)\)/,_0x298b1e(0x298)[_0x298b1e(0x20e)](_0x1ca9ad[_0x298b1e(0x2a6)],')')));});var _0x30c938=_0x1ca9ad[_0x40b1da(0x289)];return!_0x30c938||_0x30c938['length']===0x0||(_0x1b8946[_0x40b1da(0x21e)]===_0x40b1da(0x1e4)&&_0x75c9b0['xlink:href']&&(_0x75c9b0[_0x40b1da(0x29a)]=_0x75c9b0[_0x40b1da(0x29a)]+_0x1ca9ad['idSuffix']),Object[_0x40b1da(0x27c)](_0x75c9b0)[_0x40b1da(0x28e)](function(_0xaa4de9){var _0x377905=_0x40b1da,_0x3a39fb=_0xaa4de9[0x0],_0x31fd55=_0xaa4de9[0x1];typeof _0x31fd55==_0x377905(0x287)&&(_0x75c9b0[_0x3a39fb]=_0x31fd55[_0x377905(0x253)](/url\(#(.*)\)/,_0x377905(0x298)['concat'](_0x1ca9ad['idSuffix'],')')));})),_0x75c9b0;}function V(_0x550d3c,_0x84847){var _0x1ecd5b=_0x477ba9,_0x244907,_0x37aa4f=_0x84847[_0x1ecd5b(0x289)];return!_0x37aa4f||_0x37aa4f['length']===0x0?_0x550d3c:_0x550d3c[_0x1ecd5b(0x21e)]==='defs'&&(!((_0x244907=_0x550d3c[_0x1ecd5b(0x20f)])===null||_0x244907===void 0x0)&&_0x244907[_0x1ecd5b(0x1fb)])?u(u({},_0x550d3c),{'children':_0x550d3c[_0x1ecd5b(0x20f)]['map'](function(_0x4cd2d6){var _0x14cacb=_0x1ecd5b;return typeof _0x4cd2d6[_0x14cacb(0x20a)]['id']==_0x14cacb(0x287)&&_0x37aa4f&&_0x37aa4f[_0x14cacb(0x262)](_0x4cd2d6[_0x14cacb(0x20a)]['id'])?u(u({},_0x4cd2d6),{'attrs':u(u({},_0x4cd2d6[_0x14cacb(0x20a)]),{'id':_0x4cd2d6['attrs']['id']+_0x84847['idSuffix']})}):_0x4cd2d6;})}):_0x550d3c;}function k(){var _0x3cc032=_0x477ba9;return Math['random']()[_0x3cc032(0x244)](0x24)[_0x3cc032(0x23c)](0x2,0x8);}j[_0x477ba9(0x297)]='UniverIcon';var M={'tag':'svg','attrs':{'xmlns':_0x477ba9(0x250),'fill':_0x477ba9(0x1e2),'viewBox':_0x477ba9(0x207),'width':'1em','height':_0x477ba9(0x1db)},'children':[{'tag':_0x477ba9(0x1fe),'attrs':{'fill':_0x477ba9(0x245),'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':_0x477ba9(0x1fe),'attrs':{'fill':_0x477ba9(0x245),'d':_0x477ba9(0x1ec),'fillRule':_0x477ba9(0x2a2),'clipRule':_0x477ba9(0x2a2)}}]},P=f[_0x477ba9(0x1d6)](function(_0x30cb51,_0x2a6828){var _0x5cca35=_0x477ba9;return f[_0x5cca35(0x1f2)](j,Object[_0x5cca35(0x283)]({},_0x30cb51,{'id':_0x5cca35(0x251),'ref':_0x2a6828,'icon':M}));});P['displayName']=_0x477ba9(0x23d);function _0xb564(_0x475951,_0x4eccfa){var _0x331bca=_0x331b();return _0xb564=function(_0xb564c9,_0x108ea3){_0xb564c9=_0xb564c9-0x1d1;var _0x2d6b52=_0x331bca[_0xb564c9];return _0x2d6b52;},_0xb564(_0x475951,_0x4eccfa);}class O extends o[_0x477ba9(0x1f3)]{constructor(){var _0x35f2aa=_0x477ba9;super(...arguments),v(this,_0x35f2aa(0x26f),new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x44a531){var _0x238bba=_0x477ba9;return this[_0x238bba(0x26f)]['add'](_0x44a531),o['toDisposable'](()=>this[_0x238bba(0x26f)][_0x238bba(0x27b)](_0x44a531));}[_0x477ba9(0x221)](_0x11285d){var _0x3f591b=_0x477ba9;return this[_0x3f591b(0x24d)]['add'](_0x11285d),o[_0x3f591b(0x22e)](()=>this['_reporters'][_0x3f591b(0x27b)](_0x11285d));}[_0x477ba9(0x213)](_0xc2227e){return this['_sharedOperations']['has'](_0xc2227e);}[_0x477ba9(0x26e)](_0x38838d){return Array['from'](this['_reporters'])['map'](_0xe53264=>_0xe53264(_0x38838d));}}var q=Object[_0x477ba9(0x237)],R=(_0x142232,_0x412e43,_0x453576,_0x272b75)=>{var _0x38b741=_0x477ba9;for(var _0x50dcaa=_0x272b75>0x1?void 0x0:_0x272b75?q(_0x412e43,_0x453576):_0x412e43,_0x5797b5=_0x142232[_0x38b741(0x1fb)]-0x1,_0x4c1fbc;_0x5797b5>=0x0;_0x5797b5--)(_0x4c1fbc=_0x142232[_0x5797b5])&&(_0x50dcaa=_0x4c1fbc(_0x50dcaa)||_0x50dcaa);return _0x50dcaa;},S=(_0x5c6d62,_0x2f01ed)=>(_0x58f2d5,_0x7d2696)=>_0x2f01ed(_0x58f2d5,_0x7d2696,_0x5c6d62);exports[_0x477ba9(0x248)]=class extends o[_0x477ba9(0x28d)]{constructor(_0x1865e2,_0x485061,_0x23cb45){var _0x27b140=_0x477ba9;super(),v(this,_0x27b140(0x224),new Map()),(this['_univerInstanceService']=_0x1865e2,this[_0x27b140(0x1dd)]=_0x485061,this[_0x27b140(0x22b)]=_0x23cb45,this['_init']());}async[_0x477ba9(0x234)](_0x594095){var _0x3ceaaf=_0x477ba9;return this[_0x3ceaaf(0x224)][_0x3ceaaf(0x21c)](_0x594095)||await this[_0x3ceaaf(0x1fa)](_0x594095),this[_0x3ceaaf(0x224)][_0x3ceaaf(0x20c)](_0x594095);}[_0x477ba9(0x216)](){var _0x31f059=_0x477ba9;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x31f059(0x2a8)]['UNIVER_SHEET'])[_0x31f059(0x294)](b['takeUntil'](this[_0x31f059(0x238)]))[_0x31f059(0x293)](async _0x5a8e3a=>{var _0x5c7b8f=_0x31f059;const _0x219391=_0x5a8e3a['getUnitId']();this['_entities'][_0x5c7b8f(0x21c)](_0x219391)||this[_0x5c7b8f(0x1fa)](_0x219391);}),this[_0x31f059(0x1dc)][_0x31f059(0x22c)](o['UniverInstanceType'][_0x31f059(0x29c)])[_0x31f059(0x294)](b[_0x31f059(0x1ee)](this[_0x31f059(0x238)]))[_0x31f059(0x293)](_0x4b7b35=>{var _0x2253a9=_0x31f059;const _0x2f621a=_0x4b7b35[_0x2253a9(0x24b)](),_0x169734=this['_entities'][_0x2253a9(0x20c)](_0x2f621a);_0x169734==null||_0x169734[_0x2253a9(0x1f5)]();});}async['_startLiveShareCoordinator'](_0x5f3f2a){var _0x76a45=_0x477ba9;const _0x23a058=await this[_0x76a45(0x22b)][_0x76a45(0x1f8)](_0x5f3f2a),_0x5cba9a=this[_0x76a45(0x1dd)][_0x76a45(0x1e3)](exports[_0x76a45(0x23e)],_0x5f3f2a,_0x23a058);return _0x5cba9a[_0x76a45(0x23f)](),this[_0x76a45(0x224)]['set'](_0x5f3f2a,_0x5cba9a),_0x5cba9a;}},exports[_0x477ba9(0x248)]=R([S(0x0,o[_0x477ba9(0x256)]),S(0x1,o['Inject'](o[_0x477ba9(0x2ae)])),S(0x2,o[_0x477ba9(0x1eb)](m[_0x477ba9(0x1ef)]))],exports[_0x477ba9(0x248)]);var h=(_0xf36fc6=>(_0xf36fc6['OFFLINE']=_0x477ba9(0x279),_0xf36fc6['IDLE']='idle',_0xf36fc6[_0x477ba9(0x1f4)]='following',_0xf36fc6[_0x477ba9(0x2b1)]=_0x477ba9(0x284),_0xf36fc6['PRESENTING']='presenting',_0xf36fc6))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x477ba9(0x23e)]=class extends o['RxDisposable']{constructor(_0x487cf8,_0x3bea45,_0x3aecda,_0x453bc9,_0x5f1fc4){var _0x31856b=_0x477ba9;super(),v(this,'_status$',new w[(_0x31856b(0x2ab))](_0x31856b(0x230))),v(this,_0x31856b(0x25d),this['_status$'][_0x31856b(0x1fd)]()),v(this,_0x31856b(0x216),!0x1),v(this,_0x31856b(0x257),null),v(this,_0x31856b(0x21d),null),(this[_0x31856b(0x200)]=_0x487cf8,this['_collabSession']=_0x3bea45,this[_0x31856b(0x265)]=_0x3aecda,this[_0x31856b(0x22d)]=_0x453bc9,this[_0x31856b(0x26c)]=_0x5f1fc4);}get[_0x477ba9(0x2a1)](){var _0x3b28cd=_0x477ba9;return this['_status$'][_0x3b28cd(0x1ea)]();}['dispose'](){var _0x23a1c1=_0x477ba9,_0x451f81;(_0x451f81=this[_0x23a1c1(0x257)])==null||_0x451f81[_0x23a1c1(0x1f5)](),this[_0x23a1c1(0x220)][_0x23a1c1(0x243)](_0x23a1c1(0x230)),this[_0x23a1c1(0x220)][_0x23a1c1(0x280)]();}['init'](){var _0x5d0690=_0x477ba9;this[_0x5d0690(0x216)]||(this[_0x5d0690(0x216)]=!0x0,this[_0x5d0690(0x2a3)][_0x5d0690(0x266)]['pipe'](b[_0x5d0690(0x1ee)](this[_0x5d0690(0x238)]))['subscribe'](_0xc44c1d=>{var _0x51eb83=_0x5d0690;switch(_0xc44c1d){case m['SessionStatus'][_0x51eb83(0x1f0)]:this[_0x51eb83(0x274)]();break;case m['SessionStatus']['ONLINE']:this[_0x51eb83(0x25b)]();break;}}),this[_0x5d0690(0x2a3)][_0x5d0690(0x270)][_0x5d0690(0x294)](b['takeUntil'](this[_0x5d0690(0x238)]))[_0x5d0690(0x293)](_0x28f52b=>{var _0x913668=_0x5d0690;const {eventID:_0x306266}=_0x28f52b;switch(_0x306266){case _[_0x913668(0x203)][_0x913668(0x1da)]:this[_0x913668(0x295)](_0x28f52b);break;case _['CollaborationEvent'][_0x913668(0x25e)]:this[_0x913668(0x212)](_0x28f52b);break;case _[_0x913668(0x203)][_0x913668(0x290)]:this[_0x913668(0x259)]();break;case _[_0x913668(0x203)][_0x913668(0x269)]:this['_handleNewChangeSets'](_0x28f52b);break;}}));}[_0x477ba9(0x296)](){var _0x585f83=_0x477ba9;this['_collabSession'][_0x585f83(0x28a)]({'eventID':_[_0x585f83(0x203)][_0x585f83(0x228)],'data':{'unitID':this[_0x585f83(0x200)],'userID':this[_0x585f83(0x2a3)][_0x585f83(0x1d8)]()}},this[_0x585f83(0x200)]);}[_0x477ba9(0x26d)](){var _0x4b7f71=_0x477ba9;this['_status']===_0x4b7f71(0x1e9)&&(this[_0x4b7f71(0x220)][_0x4b7f71(0x243)]('idle'),this['_collabSession'][_0x4b7f71(0x28a)]({'eventID':_[_0x4b7f71(0x203)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x5dcbfe=_0x477ba9;this[_0x5dcbfe(0x2a1)]===_0x5dcbfe(0x284)&&(this['_status$'][_0x5dcbfe(0x243)](_0x5dcbfe(0x21a)),this[_0x5dcbfe(0x21b)]());}[_0x477ba9(0x227)](){var _0x3d0b7f=_0x477ba9;this[_0x3d0b7f(0x2a1)]===_0x3d0b7f(0x21a)&&this['_stopFollowing']();}[_0x477ba9(0x295)](_0x5d98d9){var _0x3d8df5=_0x477ba9;const {presenter:_0x2a5796}=_0x5d98d9[_0x3d8df5(0x260)],_0x2c36e8=this[_0x3d8df5(0x2a3)][_0x3d8df5(0x1d8)]();this[_0x3d8df5(0x21d)]=_0x2a5796,_0x2a5796===_0x2c36e8?(this[_0x3d8df5(0x272)](),this[_0x3d8df5(0x217)]()):this['_status']!==_0x3d8df5(0x284)&&(this[_0x3d8df5(0x1df)](),this[_0x3d8df5(0x21b)]());}[_0x477ba9(0x2aa)](){var _0x474624=_0x477ba9;const _0x1a572d={'eventID':_['CollaborationEvent'][_0x474624(0x1e0)]};this['_collabSession']['send'](_0x1a572d,this[_0x474624(0x200)]);}['_handleTerminate'](){var _0x47ac40=_0x477ba9;this[_0x47ac40(0x21d)]=null,this[_0x47ac40(0x2a1)]!==_0x47ac40(0x1e9)&&this[_0x47ac40(0x285)]();}[_0x477ba9(0x277)](_0x223d98){var _0x456375=_0x477ba9;if(this[_0x456375(0x2a1)]===_0x456375(0x21a)&&this['_presenter']===_0x223d98['data'][_0x456375(0x23a)]){const _0x114fa2=_[_0x456375(0x241)](_0x223d98[_0x456375(0x260)])[_0x456375(0x29e)][_0x456375(0x247)]()[_0x456375(0x1d2)](_0x479024=>_0x479024['id']===C['InsertSheetMutation']['id']);if(_0x114fa2){const _0x5d24e1=_0x114fa2[_0x456375(0x235)]['unitId'],_0x34a84d=_0x114fa2[_0x456375(0x235)]['sheet']['id'];setTimeout(()=>{var _0x3eea4d=_0x456375;this['_commandService'][_0x3eea4d(0x226)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5d24e1,'subUnitId':_0x34a84d},{'fromCollab':!0x0});});}}}[_0x477ba9(0x217)](){var _0x47bbd7=_0x477ba9;this[_0x47bbd7(0x220)][_0x47bbd7(0x243)](_0x47bbd7(0x1e9));const _0x5cf54c=new Map(),_0x49cdf2=this[_0x47bbd7(0x257)]=new o[(_0x47bbd7(0x20b))]();_0x49cdf2['add'](o['toDisposable'](()=>{var _0x3ebffb=_0x47bbd7;_0x5cf54c[_0x3ebffb(0x28e)](_0x3cf1ad=>_0x3cf1ad[_0x3ebffb(0x280)]()),_0x5cf54c[_0x3ebffb(0x28c)]();})),_0x49cdf2[_0x47bbd7(0x1de)](this[_0x47bbd7(0x26c)][_0x47bbd7(0x232)](_0x41fcf6=>{var _0x2abb2a=_0x47bbd7,_0x5b28bf;if(_0x41fcf6['type']!==o['CommandType'][_0x2abb2a(0x24f)]||!this['_liveShareService']['shouldShareOperation'](_0x41fcf6['id']))return;const {id:_0x1807af}=_0x41fcf6;let _0x1def17;_0x5cf54c[_0x2abb2a(0x21c)](_0x1807af)?_0x1def17=_0x5cf54c[_0x2abb2a(0x20c)](_0x1807af):(_0x1def17=new w[(_0x2abb2a(0x28f))](),_0x5cf54c[_0x2abb2a(0x2ac)](_0x1807af,_0x1def17),_0x1def17[_0x2abb2a(0x294)](b[_0x2abb2a(0x218)]((_0x5b28bf=this[_0x2abb2a(0x265)]['getConfig'](W))!=null?_0x5b28bf:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2abb2a(0x293)](_0x21c41c=>{var _0x10a4d9=_0x2abb2a;this[_0x10a4d9(0x2a3)][_0x10a4d9(0x28a)]({'eventID':_[_0x10a4d9(0x203)][_0x10a4d9(0x25e)],'data':{'unitID':this[_0x10a4d9(0x200)],'operations':{[_0x21c41c['id']]:{'id':_0x21c41c['id'],'params':JSON[_0x10a4d9(0x29f)](_0x21c41c[_0x10a4d9(0x235)])}}}},this[_0x10a4d9(0x200)]);})),_0x1def17[_0x2abb2a(0x243)](_0x41fcf6);})),this[_0x47bbd7(0x22d)][_0x47bbd7(0x26e)](this[_0x47bbd7(0x200)])[_0x47bbd7(0x28e)](_0x2d14af=>this[_0x47bbd7(0x2a3)][_0x47bbd7(0x28a)]({'eventID':_[_0x47bbd7(0x203)][_0x47bbd7(0x25e)],'data':{'unitID':this[_0x47bbd7(0x200)],'operations':{[_0x2d14af['id']]:{'id':_0x2d14af['id'],'params':JSON[_0x47bbd7(0x29f)](_0x2d14af['params'])}}}},this[_0x47bbd7(0x200)]));}['_stopPresenting'](){var _0x54b332=_0x477ba9,_0x3be7df;this[_0x54b332(0x220)][_0x54b332(0x243)](_0x54b332(0x230)),(_0x3be7df=this[_0x54b332(0x257)])==null||_0x3be7df['dispose'](),this[_0x54b332(0x257)]=null;}['_startFollowing'](){var _0x3b7001=_0x477ba9,_0x523204;(_0x523204=this[_0x3b7001(0x257)])==null||_0x523204[_0x3b7001(0x1f5)](),this[_0x3b7001(0x220)]['next']('following');}[_0x477ba9(0x285)](){var _0x11ca10=_0x477ba9,_0x2c4337;this[_0x11ca10(0x220)][_0x11ca10(0x243)](_0x11ca10(0x230)),(_0x2c4337=this['_commandDisposable'])==null||_0x2c4337[_0x11ca10(0x1f5)](),this[_0x11ca10(0x257)]=null;}[_0x477ba9(0x272)](){var _0x378a9b=_0x477ba9,_0x2c3613;this[_0x378a9b(0x220)][_0x378a9b(0x243)](_0x378a9b(0x284)),(_0x2c3613=this['_commandDisposable'])==null||_0x2c3613['dispose']();}[_0x477ba9(0x212)](_0x506c77){var _0x154bc7=_0x477ba9;if(['presenting',_0x154bc7(0x284),_0x154bc7(0x279)][_0x154bc7(0x262)](this['_status'])||!_0x506c77[_0x154bc7(0x260)][_0x154bc7(0x223)]||_0x506c77[_0x154bc7(0x260)][_0x154bc7(0x223)]===this[_0x154bc7(0x2a3)][_0x154bc7(0x1d8)]())return;this['_status']===_0x154bc7(0x230)&&this['_startFollowing']();const _0x47c6b8=_0x506c77['data']['operations'];Object[_0x154bc7(0x20d)](_0x47c6b8)[_0x154bc7(0x28e)](_0x4ee3cb=>{var _0x1f2d78=_0x154bc7;this['_commandService']['executeCommand'](_0x4ee3cb['id'],_0x4ee3cb[_0x1f2d78(0x235)]?JSON['parse'](_0x4ee3cb[_0x1f2d78(0x235)]):null,{'fromCollab':!0x0});});}[_0x477ba9(0x274)](){var _0x390dca=_0x477ba9,_0x51b0cd;this[_0x390dca(0x220)][_0x390dca(0x243)](_0x390dca(0x279)),(_0x51b0cd=this[_0x390dca(0x257)])==null||_0x51b0cd[_0x390dca(0x1f5)]();}[_0x477ba9(0x25b)](){var _0x590914=_0x477ba9;this['_status$'][_0x590914(0x243)](_0x590914(0x230)),this[_0x590914(0x2aa)]();}},exports[_0x477ba9(0x23e)]=R([S(0x2,o[_0x477ba9(0x215)]),S(0x3,o[_0x477ba9(0x1eb)](O)),S(0x4,o[_0x477ba9(0x202)])],exports['LiveShareCoordinator']);function _0x331b(){var _0x808cbc=['registerDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','forwardRef','UniverCollaborationClientPlugin','getMemberID','DesktopLiveShareController','LIVESHARE_NEW_HOST','1em','_univerInstanceService','_injector','add','_stopPresenting','LIVESHARE_FETCH_OPERATIONS','text','none','createInstance','use','prototype','1685244CQWExr','_mountLiveShare','Present\x20this\x20document','presenting','getValue','Inject','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','1573784UbQVhQ','takeUntil','CollaborationSessionService','OFFLINE','DependentOn','createElement','Disposable','FOLLOWING','dispose','registerComponent','getCurrentTypeOfUnit$','requireSession','getOwnPropertySymbols','_startLiveShareCoordinator','length','apply','asObservable','path','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','colorChannel1','ICommandService','CollaborationEvent','className','IDLE','6wzoZtC','0\x200\x2017\x2017','70hQlgjn','clsx','attrs','DisposableCollection','get','values','concat','children','current','jsx','_handleOperation','shouldShareOperation','Stop\x20following','IConfigService','_init','_startPresenting','throttleTime','HEADER_MENU','following','_startFollowing','has','_presenter','tag','289380nrjrPe','_status$','registerInitialStateReporter','useState','presenter','_entities','1167936sswBTn','executeCommand','stopFollowing','LIVESHARE_REQUEST_HOST','symbol','LiveShareService','_collabSessionService','getTypeOfUnitDisposed$','_liveShareService','toDisposable','extend','idle','You\x27are\x20offline.','onCommandExecuted','startFollowing','getLiveShareCoordinator','params','div','getOwnPropertyDescriptor','dispose$','end','memberID','indexOf','substring','LiveShareIcon','LiveShareCoordinator','init','hasOwnProperty','parseProtocolChangeset','Start','next','toString','currentColor','call','reverse','LiveShareController','Start\x20following','icon','getUnitId','univerjs-icon\x20univerjs-icon-','_reporters','_config','OPERATION','http://www.w3.org/2000/svg','live-share-icon','then','replace','403634tGkVsb','fill','IUniverInstanceService','_commandDisposable','mask','_handleTerminate','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','unsubscribe','status$','LIVESHARE_OPERATION','_uiPartsService','data','Button','includes','trim','defineProperty','_configService','sessionStatus$','1152636nOomJK','SetZoomRatioOperation','NEW_CHANGESETS','20uqRjNS','merge','_commandService','stopPresenting','getInitialStates','_sharedOperations','event$','useEffect','_stopFollowing','touchDependencies','_handleOffline','registerSharedOperation','live-share.config','_handleNewChangeSets','setConfig','offline','useObservable','delete','entries','UNIVER_UNKNOWN','mergeOverrideWithDependencies','default','complete','button','IUIPartsService','assign','not-following','_beIdle','useRef','string','onStarting','defIds','send','24JQKQyz','clear','RxDisposable','forEach','Subject','LIVESHARE_TERMINATE','PRESENTING','function','subscribe','pipe','_handleNewHost','tryStartPresenting','displayName','url(#$1','Fragment','xlink:href','SetWorksheetActiveOperation','UNIVER_SHEET','univer-size-4','mutations','stringify','map','_status','evenodd','_collabSession','type','LiveShareStatus','idSuffix','pluginName','UniverInstanceType','UniverLiveSharePlugin','_fetchOperations','BehaviorSubject','set','7884045YcEmiC','Injector','disposeWithMe','useDependency','NOT_FOLLOWING','onRendered','jsxs','find'];_0x331b=function(){return _0x808cbc;};return _0x331b();}function A(){var _0x3fb48e=_0x477ba9;const _0x20adc9=p[_0x3fb48e(0x2b0)](exports['LiveShareController']),_0xb306c8=p[_0x3fb48e(0x2b0)](o[_0x3fb48e(0x256)]),_0x484081=p[_0x3fb48e(0x27a)](()=>_0xb306c8[_0x3fb48e(0x1f7)](o[_0x3fb48e(0x2a8)][_0x3fb48e(0x29c)]),void 0x0,!0x1,[]),[_0xe8bd2a,_0x556dc1]=f[_0x3fb48e(0x222)](null),[_0x5b257a,_0x32eb7e]=f[_0x3fb48e(0x222)](h[_0x3fb48e(0x205)]),_0x1f7b68=f[_0x3fb48e(0x286)](null);return f[_0x3fb48e(0x271)](()=>(_0x484081&&_0x20adc9[_0x3fb48e(0x234)](_0x484081[_0x3fb48e(0x24b)]())[_0x3fb48e(0x252)](_0x4f94da=>{var _0x5af1c6=_0x3fb48e;_0x556dc1(_0x4f94da),_0x1f7b68[_0x5af1c6(0x210)]=_0x4f94da[_0x5af1c6(0x25d)][_0x5af1c6(0x293)](_0x176d6d=>{_0x32eb7e(_0x176d6d);});}),()=>{var _0xe15afd=_0x3fb48e,_0x4e99ec;(_0x4e99ec=_0x1f7b68['current'])==null||_0x4e99ec[_0xe15afd(0x25c)](),_0x1f7b68[_0xe15afd(0x210)]=null;}),[_0x484081,_0x20adc9]),_0xe8bd2a?l[_0x3fb48e(0x211)](g['Dropdown'],{'align':_0x3fb48e(0x239),'disabled':_0x5b257a===h[_0x3fb48e(0x1f0)],'className':_0x3fb48e(0x1d5),'overlay':l[_0x3fb48e(0x211)](B,{'status':_0x5b257a,'coordinator':_0xe8bd2a}),'children':l['jsx'](_0x3fb48e(0x281),{'className':g[_0x3fb48e(0x209)](_0x3fb48e(0x1d4),{'univer-cursor-not-allowed':_0x5b257a===h[_0x3fb48e(0x1f0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b257a!==h[_0x3fb48e(0x1f0)]}),'type':_0x3fb48e(0x281),'children':l[_0x3fb48e(0x211)](P,{'className':_0x3fb48e(0x29d)})})}):null;}function B(_0x5dc0f1){var _0x4be551=_0x477ba9;const {status:_0x25b82a,coordinator:_0x1ec372}=_0x5dc0f1;switch(_0x25b82a){case h[_0x4be551(0x205)]:return l['jsx'](Y,{'coordinator':_0x1ec372});case h['FOLLOWING']:return l[_0x4be551(0x211)](Z,{'coordinator':_0x1ec372});case h['NOT_FOLLOWING']:return l['jsx'](J,{'coordinator':_0x1ec372});case h['OFFLINE']:return l[_0x4be551(0x211)](z,{});case h[_0x4be551(0x291)]:return l['jsx'](K,{'coordinator':_0x1ec372});default:return null;}}function Y(_0x428df5){var _0x31d974=_0x477ba9;const {coordinator:_0x561d02}=_0x428df5;return l[_0x31d974(0x1d1)](l['Fragment'],{'children':[l['jsx'](_0x31d974(0x236),{'className':_0x31d974(0x1ff),'children':_0x31d974(0x1e8)}),l[_0x31d974(0x211)](g[_0x31d974(0x261)],{'onClick':()=>_0x561d02['tryStartPresenting'](),'children':_0x31d974(0x242)})]});}function Z(_0x597cba){var _0x2211f7=_0x477ba9;const {coordinator:_0x3324f7}=_0x597cba;return l[_0x2211f7(0x1d1)](l[_0x2211f7(0x299)],{'children':[l['jsx'](_0x2211f7(0x236),{'className':_0x2211f7(0x1ff),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x2211f7(0x211)](g['Button'],{'onClick':()=>_0x3324f7[_0x2211f7(0x227)](),'children':_0x2211f7(0x214)})]});}function J(_0x44bb18){var _0xb93d80=_0x477ba9;const {coordinator:_0x3a6d58}=_0x44bb18;return l[_0xb93d80(0x1d1)](l[_0xb93d80(0x299)],{'children':[l['jsx'](_0xb93d80(0x236),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g[_0xb93d80(0x261)],{'variant':_0xb93d80(0x1e1),'onClick':()=>_0x3a6d58[_0xb93d80(0x233)](),'children':_0xb93d80(0x249)})]});}function K(_0x1c31cc){var _0x2ffba6=_0x477ba9;const {coordinator:_0x283bec}=_0x1c31cc;return l[_0x2ffba6(0x1d1)](l[_0x2ffba6(0x299)],{'children':[l[_0x2ffba6(0x211)](_0x2ffba6(0x236),{'className':_0x2ffba6(0x1ff),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2ffba6(0x211)](g[_0x2ffba6(0x261)],{'variant':_0x2ffba6(0x27f),'onClick':()=>_0x283bec['stopPresenting'](),'children':'Stop\x20presenting'})]});}function z(){var _0x33e3b9=_0x477ba9;return l[_0x33e3b9(0x211)](l['Fragment'],{'children':_0x33e3b9(0x231)});}var Q=Object[_0x477ba9(0x237)],X=(_0x3e4611,_0x49f267,_0x1f61bd,_0xfb5fd)=>{var _0xf5ff30=_0x477ba9;for(var _0x1fdea7=_0xfb5fd>0x1?void 0x0:_0xfb5fd?Q(_0x49f267,_0x1f61bd):_0x49f267,_0x277cdb=_0x3e4611[_0xf5ff30(0x1fb)]-0x1,_0x57566f;_0x277cdb>=0x0;_0x277cdb--)(_0x57566f=_0x3e4611[_0x277cdb])&&(_0x1fdea7=_0x57566f(_0x1fdea7)||_0x1fdea7);return _0x1fdea7;},x=(_0x5dc0ba,_0x4b85bd)=>(_0x20c779,_0x874176)=>_0x4b85bd(_0x20c779,_0x874176,_0x5dc0ba);exports[_0x477ba9(0x1d9)]=class extends o['Disposable']{constructor(_0x331ce6,_0x1c1dc6){var _0x247a92=_0x477ba9;super(),this[_0x247a92(0x1dd)]=_0x331ce6,this[_0x247a92(0x25f)]=_0x1c1dc6,this[_0x247a92(0x1e7)]();}[_0x477ba9(0x1e7)](){var _0x5b83ab=_0x477ba9;this[_0x5b83ab(0x2af)](this[_0x5b83ab(0x25f)][_0x5b83ab(0x1f6)](p['BuiltInUIPart'][_0x5b83ab(0x219)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x477ba9(0x1d9)]=X([x(0x0,o['Inject'](o[_0x477ba9(0x2ae)])),x(0x1,p[_0x477ba9(0x282)])],exports[_0x477ba9(0x1d9)]);const ee=_0x477ba9(0x276),L={};var te=Object['getOwnPropertyDescriptor'],ie=(_0x1ff3e9,_0x9881d0,_0x4ddfd0,_0x31e476)=>{for(var _0x17baeb=_0x31e476>0x1?void 0x0:_0x31e476?te(_0x9881d0,_0x4ddfd0):_0x9881d0,_0x2ecd48=_0x1ff3e9['length']-0x1,_0x54ffa7;_0x2ecd48>=0x0;_0x2ecd48--)(_0x54ffa7=_0x1ff3e9[_0x2ecd48])&&(_0x17baeb=_0x54ffa7(_0x17baeb)||_0x17baeb);return _0x17baeb;},ne=(_0x4f6bd1,_0x3b02c9)=>(_0x2cb4ca,_0x59644d)=>_0x3b02c9(_0x2cb4ca,_0x59644d,_0x4f6bd1);let E=class extends o[_0x477ba9(0x1f3)]{constructor(_0x5321f){var _0x54441b=_0x477ba9;super(),this['_liveShareService']=_0x5321f,this[_0x54441b(0x216)]();}[_0x477ba9(0x216)](){var _0x5267f2=_0x477ba9;[D[_0x5267f2(0x268)]['id'],D['SetScrollOperation']['id'],C[_0x5267f2(0x29b)]['id']][_0x5267f2(0x28e)](_0x28315a=>{var _0x42bdb2=_0x5267f2;this[_0x42bdb2(0x2af)](this[_0x42bdb2(0x22d)][_0x42bdb2(0x275)](_0x28315a));});}};E=ie([ne(0x0,o[_0x477ba9(0x1eb)](O))],E);var re=Object[_0x477ba9(0x264)],se=Object[_0x477ba9(0x237)],oe=(_0x17ffff,_0x27f45a,_0x26d259)=>_0x27f45a in _0x17ffff?re(_0x17ffff,_0x27f45a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d259}):_0x17ffff[_0x27f45a]=_0x26d259,ae=(_0x57e127,_0x442a12,_0x43f0f5,_0xddf9e6)=>{for(var _0x148b07=_0xddf9e6>0x1?void 0x0:_0xddf9e6?se(_0x442a12,_0x43f0f5):_0x442a12,_0x3e50c9=_0x57e127['length']-0x1,_0x1c061c;_0x3e50c9>=0x0;_0x3e50c9--)(_0x1c061c=_0x57e127[_0x3e50c9])&&(_0x148b07=_0x1c061c(_0x148b07)||_0x148b07);return _0x148b07;},N=(_0x37c0f9,_0x4ee7be)=>(_0x229233,_0x54be87)=>_0x4ee7be(_0x229233,_0x54be87,_0x37c0f9),T=(_0x253be3,_0xeee31a,_0x49db45)=>oe(_0x253be3,typeof _0xeee31a!=_0x477ba9(0x229)?_0xeee31a+'':_0xeee31a,_0x49db45);const le=_0x477ba9(0x25a);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x26d4c2=L,_0x35ac52,_0x48d00d){var _0xda57cc=_0x477ba9;super(),this[_0xda57cc(0x24e)]=_0x26d4c2,this[_0xda57cc(0x1dd)]=_0x35ac52,this[_0xda57cc(0x265)]=_0x48d00d;const {..._0x207eaf}=o[_0xda57cc(0x26b)]({},L,this['_config']);this[_0xda57cc(0x265)][_0xda57cc(0x278)](ee,_0x207eaf);}[_0x477ba9(0x288)](){var _0x51b486=_0x477ba9;o[_0x51b486(0x1d3)](this[_0x51b486(0x1dd)],o[_0x51b486(0x27e)]([[O],[exports[_0x51b486(0x248)]],[E],[exports[_0x51b486(0x1d9)]]],this[_0x51b486(0x24e)]['override'])),o[_0x51b486(0x273)](this[_0x51b486(0x1dd)],[[E]]);}[_0x477ba9(0x2b2)](){var _0x4c193f=_0x477ba9;o[_0x4c193f(0x273)](this[_0x4c193f(0x1dd)],[[exports[_0x4c193f(0x1d9)]]]);}},T(exports[_0x477ba9(0x2a9)],_0x477ba9(0x2a4),o[_0x477ba9(0x2a8)][_0x477ba9(0x27d)]),T(exports[_0x477ba9(0x2a9)],_0x477ba9(0x2a7),le),exports[_0x477ba9(0x2a9)]=ae([o[_0x477ba9(0x1f1)](m[_0x477ba9(0x1d7)]),N(0x1,o[_0x477ba9(0x1eb)](o[_0x477ba9(0x2ae)])),N(0x2,o[_0x477ba9(0x215)])],exports[_0x477ba9(0x2a9)]),exports['LiveShare']=A,exports[_0x477ba9(0x22a)]=O,exports[_0x477ba9(0x2a5)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1219bd=_0x2a3c;(function(_0x20fb1d,_0x1eaf9d){var _0x115e0a=_0x2a3c,_0x2a0a54=_0x20fb1d();while(!![]){try{var _0x5d72cf=parseInt(_0x115e0a(0x1f7))/0x1*(parseInt(_0x115e0a(0x21f))/0x2)+parseInt(_0x115e0a(0x276))/0x3+parseInt(_0x115e0a(0x28e))/0x4+parseInt(_0x115e0a(0x27e))/0x5*(parseInt(_0x115e0a(0x246))/0x6)+-parseInt(_0x115e0a(0x2a0))/0x7+parseInt(_0x115e0a(0x20e))/0x8*(-parseInt(_0x115e0a(0x270))/0x9)+-parseInt(_0x115e0a(0x1f0))/0xa*(-parseInt(_0x115e0a(0x248))/0xb);if(_0x5d72cf===_0x1eaf9d)break;else _0x2a0a54['push'](_0x2a0a54['shift']());}catch(_0x4bc363){_0x2a0a54['push'](_0x2a0a54['shift']());}}}(_0x4ade,0x884e7));var q=Object[_0x1219bd(0x20a)],z=(_0x61cbc3,_0x2c256c,_0x139083)=>_0x2c256c in _0x61cbc3?q(_0x61cbc3,_0x2c256c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x139083}):_0x61cbc3[_0x2c256c]=_0x139083,d=(_0x30df8f,_0x45f644,_0x1ecccb)=>z(_0x30df8f,typeof _0x45f644!=_0x1219bd(0x237)?_0x45f644+'':_0x45f644,_0x1ecccb);import{Disposable as _0x42ef25,toDisposable as _0x3bb80b,IUniverInstanceService as _0x55d7f7,Inject as _0x38cb3e,Injector as _0xd745ac,IConfigService as _0xc6ee4c,ICommandService as _0xda8946,RxDisposable as _0x5c1c5a,UniverInstanceType as _0x514013,DisposableCollection as _0x5f0850,CommandType as _0x6d2769,DependentOn as _0x30903f,Plugin as _0x489cd9,merge as _0x4f4f30,registerDependencies as _0x48e9cc,mergeOverrideWithDependencies as _0x125399,touchDependencies as _0x37b76a}from'@univerjs/core';import{useDependency as _0x52392f,useObservable as _0x5a8172,IUIPartsService as _0x32e609,BuiltInUIPart as _0x369a21,connectInjector as _0x3694c2}from'@univerjs/ui';import{jsx as _0x4e371e,jsxs as _0x189e02,Fragment as _0x39e573}from'react/jsx-runtime';import{Dropdown as _0x5356c3,clsx as _0x5711fc,Button as _0x273b99}from'@univerjs/design';import{forwardRef as _0xd61998,useRef as _0x5745ef,createElement as _0x3e61fb,useState as _0x45cd4e,useEffect as _0xecf48d}from'react';import{CollaborationEvent as _0x3f586a,parseProtocolChangeset as _0x59f1d4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x60984,SessionStatus as _0x669b6a,UniverCollaborationClientPlugin as _0x19eb06}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2c54c1,SetWorksheetActiveOperation as _0x344d2b}from'@univerjs/sheets';import{BehaviorSubject as _0x2909c0,Subject as _0x5b75f6}from'rxjs';import{takeUntil as _0x271d24,throttleTime as _0x3dc073}from'rxjs/operators';import{SetZoomRatioOperation as _0x395408,SetScrollOperation as _0x392bb6}from'@univerjs/sheets-ui';var c=function(){var _0x4535bc=_0x1219bd;return c=Object['assign']||function(_0x31e478){var _0x4ef92c=_0x2a3c;for(var _0x56ff19,_0x397d17=0x1,_0x233da4=arguments[_0x4ef92c(0x24b)];_0x397d17<_0x233da4;_0x397d17++){_0x56ff19=arguments[_0x397d17];for(var _0x38ef80 in _0x56ff19)Object[_0x4ef92c(0x24c)]['hasOwnProperty'][_0x4ef92c(0x28c)](_0x56ff19,_0x38ef80)&&(_0x31e478[_0x38ef80]=_0x56ff19[_0x38ef80]);}return _0x31e478;},c[_0x4535bc(0x1f1)](this,arguments);},Oe=function(_0x24dbed,_0x5e0fa5){var _0x460545=_0x1219bd,_0x457647={};for(var _0x2d06a4 in _0x24dbed)Object[_0x460545(0x24c)]['hasOwnProperty'][_0x460545(0x28c)](_0x24dbed,_0x2d06a4)&&_0x5e0fa5[_0x460545(0x233)](_0x2d06a4)<0x0&&(_0x457647[_0x2d06a4]=_0x24dbed[_0x2d06a4]);if(_0x24dbed!=null&&typeof Object[_0x460545(0x22c)]==_0x460545(0x254)){for(var _0x4d279e=0x0,_0x2d06a4=Object[_0x460545(0x22c)](_0x24dbed);_0x4d279e<_0x2d06a4[_0x460545(0x24b)];_0x4d279e++)_0x5e0fa5['indexOf'](_0x2d06a4[_0x4d279e])<0x0&&Object[_0x460545(0x24c)][_0x460545(0x213)][_0x460545(0x28c)](_0x24dbed,_0x2d06a4[_0x4d279e])&&(_0x457647[_0x2d06a4[_0x4d279e]]=_0x24dbed[_0x2d06a4[_0x4d279e]]);}return _0x457647;},W=_0xd61998(function(_0xffaa32,_0x5e6d43){var _0x1d8989=_0x1219bd,_0x2e555a=_0xffaa32[_0x1d8989(0x251)],_0x18ca4e=_0xffaa32['id'],_0x2244f1=_0xffaa32[_0x1d8989(0x291)],_0x4a474e=_0xffaa32['extend'],_0x132d38=Oe(_0xffaa32,[_0x1d8989(0x251),'id','className','extend']),_0xe083a1=_0x1d8989(0x22e)['concat'](_0x18ca4e,'\x20')[_0x1d8989(0x1f5)](_0x2244f1||'')[_0x1d8989(0x277)](),_0x2ffcdc=_0x5745ef('_'['concat'](Ne()));return Y(_0x2e555a,''[_0x1d8989(0x1f5)](_0x18ca4e),{'defIds':_0x2e555a[_0x1d8989(0x275)],'idSuffix':_0x2ffcdc[_0x1d8989(0x271)]},c({'ref':_0x5e6d43,'className':_0xe083a1},_0x132d38),_0x4a474e);});function Y(_0x25ac95,_0x4eef07,_0x508d7f,_0x3494ee,_0x4c48cd){var _0x43f3c6=_0x1219bd;return _0x3e61fb(_0x25ac95[_0x43f3c6(0x255)],c(c({'key':_0x4eef07},Ee(_0x25ac95,_0x508d7f,_0x4c48cd)),_0x3494ee),(we(_0x25ac95,_0x508d7f)[_0x43f3c6(0x240)]||[])[_0x43f3c6(0x243)](function(_0x4ec9a4,_0x570aed){var _0x164281=_0x43f3c6;return Y(_0x4ec9a4,''[_0x164281(0x1f5)](_0x4eef07,'-')['concat'](_0x25ac95[_0x164281(0x255)],'-')[_0x164281(0x1f5)](_0x570aed),_0x508d7f,void 0x0,_0x4c48cd);}));}function Ee(_0x98ad37,_0x47453a,_0x35dfe8){var _0x8a6734=_0x1219bd,_0x3ebc4b=c({},_0x98ad37[_0x8a6734(0x257)]);_0x35dfe8!=null&&_0x35dfe8[_0x8a6734(0x269)]&&_0x3ebc4b[_0x8a6734(0x23d)]===_0x8a6734(0x269)&&(_0x3ebc4b[_0x8a6734(0x23d)]=_0x35dfe8['colorChannel1']),_0x98ad37[_0x8a6734(0x255)]===_0x8a6734(0x297)&&_0x3ebc4b['id']&&(_0x3ebc4b['id']=_0x3ebc4b['id']+_0x47453a['idSuffix']),Object['entries'](_0x3ebc4b)[_0x8a6734(0x22a)](function(_0x420eac){var _0x203118=_0x8a6734,_0x16a015=_0x420eac[0x0],_0x2e4789=_0x420eac[0x1];_0x16a015===_0x203118(0x297)&&typeof _0x2e4789==_0x203118(0x290)&&(_0x3ebc4b[_0x16a015]=_0x2e4789[_0x203118(0x224)](/url\(#(.*)\)/,_0x203118(0x225)[_0x203118(0x1f5)](_0x47453a[_0x203118(0x252)],')')));});var _0x8dfd0a=_0x47453a['defIds'];return!_0x8dfd0a||_0x8dfd0a['length']===0x0||(_0x98ad37[_0x8a6734(0x255)]==='use'&&_0x3ebc4b[_0x8a6734(0x1ef)]&&(_0x3ebc4b['xlink:href']=_0x3ebc4b[_0x8a6734(0x1ef)]+_0x47453a['idSuffix']),Object[_0x8a6734(0x215)](_0x3ebc4b)[_0x8a6734(0x22a)](function(_0x1a9715){var _0x2f402e=_0x8a6734,_0x45f3d0=_0x1a9715[0x0],_0x420d96=_0x1a9715[0x1];typeof _0x420d96==_0x2f402e(0x290)&&(_0x3ebc4b[_0x45f3d0]=_0x420d96['replace'](/url\(#(.*)\)/,_0x2f402e(0x225)[_0x2f402e(0x1f5)](_0x47453a[_0x2f402e(0x252)],')')));})),_0x3ebc4b;}function we(_0x130ba5,_0xd584fa){var _0x13a57b=_0x1219bd,_0x4ae8da,_0x1722e8=_0xd584fa[_0x13a57b(0x275)];return!_0x1722e8||_0x1722e8[_0x13a57b(0x24b)]===0x0?_0x130ba5:_0x130ba5[_0x13a57b(0x255)]===_0x13a57b(0x230)&&(!((_0x4ae8da=_0x130ba5['children'])===null||_0x4ae8da===void 0x0)&&_0x4ae8da[_0x13a57b(0x24b)])?c(c({},_0x130ba5),{'children':_0x130ba5['children'][_0x13a57b(0x243)](function(_0x1702b7){var _0xa1da2b=_0x13a57b;return typeof _0x1702b7[_0xa1da2b(0x257)]['id']==_0xa1da2b(0x290)&&_0x1722e8&&_0x1722e8[_0xa1da2b(0x256)](_0x1702b7[_0xa1da2b(0x257)]['id'])?c(c({},_0x1702b7),{'attrs':c(c({},_0x1702b7[_0xa1da2b(0x257)]),{'id':_0x1702b7[_0xa1da2b(0x257)]['id']+_0xd584fa[_0xa1da2b(0x252)]})}):_0x1702b7;})}):_0x130ba5;}function Ne(){var _0x551cb2=_0x1219bd;return Math[_0x551cb2(0x209)]()[_0x551cb2(0x272)](0x24)['substring'](0x2,0x8);}W[_0x1219bd(0x21a)]='UniverIcon';var Ce={'tag':_0x1219bd(0x205),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1219bd(0x264),'viewBox':_0x1219bd(0x26a),'width':_0x1219bd(0x263),'height':_0x1219bd(0x263)},'children':[{'tag':_0x1219bd(0x241),'attrs':{'fill':_0x1219bd(0x23a),'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':_0x1219bd(0x241),'attrs':{'fill':_0x1219bd(0x23a),'d':_0x1219bd(0x1f2),'fillRule':'evenodd','clipRule':_0x1219bd(0x26c)}}]},B=_0xd61998(function(_0x2361ef,_0x4dbbd7){var _0x10f1f1=_0x1219bd;return _0x3e61fb(W,Object['assign']({},_0x2361ef,{'id':_0x10f1f1(0x1f3),'ref':_0x4dbbd7,'icon':Ce}));});B[_0x1219bd(0x21a)]=_0x1219bd(0x249);class L extends _0x42ef25{constructor(){var _0x1cad71=_0x1219bd;super(...arguments),d(this,_0x1cad71(0x1fe),new Set()),d(this,_0x1cad71(0x223),new Set());}['registerSharedOperation'](_0x1528ca){var _0x4b1b26=_0x1219bd;return this['_sharedOperations'][_0x4b1b26(0x295)](_0x1528ca),_0x3bb80b(()=>this[_0x4b1b26(0x1fe)][_0x4b1b26(0x296)](_0x1528ca));}[_0x1219bd(0x25d)](_0x23f4c0){var _0x1c5c81=_0x1219bd;return this[_0x1c5c81(0x223)][_0x1c5c81(0x295)](_0x23f4c0),_0x3bb80b(()=>this[_0x1c5c81(0x223)][_0x1c5c81(0x296)](_0x23f4c0));}['shouldShareOperation'](_0x111a1e){var _0x367151=_0x1219bd;return this[_0x367151(0x1fe)][_0x367151(0x23c)](_0x111a1e);}['getInitialStates'](_0x273a29){var _0x78d2ae=_0x1219bd;return Array[_0x78d2ae(0x1fb)](this[_0x78d2ae(0x223)])['map'](_0xc09696=>_0xc09696(_0x273a29));}}var De=Object[_0x1219bd(0x23f)],Z=(_0x586103,_0x44669f,_0x23a00b,_0x15c3d5)=>{var _0x312a4e=_0x1219bd;for(var _0x1811e9=_0x15c3d5>0x1?void 0x0:_0x15c3d5?De(_0x44669f,_0x23a00b):_0x44669f,_0x1875ec=_0x586103[_0x312a4e(0x24b)]-0x1,_0x236503;_0x1875ec>=0x0;_0x1875ec--)(_0x236503=_0x586103[_0x1875ec])&&(_0x1811e9=_0x236503(_0x1811e9)||_0x1811e9);return _0x1811e9;},f=(_0x493e9e,_0x402ef7)=>(_0x21c21a,_0x4700fc)=>_0x402ef7(_0x21c21a,_0x4700fc,_0x493e9e);let m=class extends _0x5c1c5a{constructor(_0xd1a740,_0x29669d,_0xf22560){var _0x1ffaa6=_0x1219bd;super(),d(this,'_entities',new Map()),(this[_0x1ffaa6(0x1fd)]=_0xd1a740,this[_0x1ffaa6(0x218)]=_0x29669d,this[_0x1ffaa6(0x211)]=_0xf22560,this[_0x1ffaa6(0x287)]());}async[_0x1219bd(0x1f8)](_0x47aec7){var _0x2c6dd7=_0x1219bd;return this[_0x2c6dd7(0x28a)][_0x2c6dd7(0x23c)](_0x47aec7)||await this[_0x2c6dd7(0x25e)](_0x47aec7),this[_0x2c6dd7(0x28a)][_0x2c6dd7(0x201)](_0x47aec7);}['_init'](){var _0x54e57a=_0x1219bd;this[_0x54e57a(0x1fd)][_0x54e57a(0x281)](_0x514013['UNIVER_SHEET'])['pipe'](_0x271d24(this['dispose$']))[_0x54e57a(0x231)](async _0x558c11=>{var _0x583c2d=_0x54e57a;const _0x28e94b=_0x558c11[_0x583c2d(0x28f)]();this[_0x583c2d(0x28a)][_0x583c2d(0x23c)](_0x28e94b)||this['_startLiveShareCoordinator'](_0x28e94b);}),this[_0x54e57a(0x1fd)][_0x54e57a(0x266)](_0x514013[_0x54e57a(0x21c)])[_0x54e57a(0x27a)](_0x271d24(this['dispose$']))[_0x54e57a(0x231)](_0x99d520=>{var _0xa3b923=_0x54e57a;const _0x534e4d=_0x99d520[_0xa3b923(0x28f)](),_0x48c558=this[_0xa3b923(0x28a)][_0xa3b923(0x201)](_0x534e4d);_0x48c558==null||_0x48c558[_0xa3b923(0x1f4)]();});}async['_startLiveShareCoordinator'](_0x4292a4){var _0x23692e=_0x1219bd;const _0xa35197=await this['_collabSessionService'][_0x23692e(0x212)](_0x4292a4),_0xfb1fbb=this[_0x23692e(0x218)][_0x23692e(0x274)](C,_0x4292a4,_0xa35197);return _0xfb1fbb[_0x23692e(0x294)](),this[_0x23692e(0x28a)]['set'](_0x4292a4,_0xfb1fbb),_0xfb1fbb;}};m=Z([f(0x0,_0x55d7f7),f(0x1,_0x38cb3e(_0xd745ac)),f(0x2,_0x38cb3e(_0x60984))],m);var h=(_0x12e4aa=>(_0x12e4aa[_0x1219bd(0x22f)]=_0x1219bd(0x262),_0x12e4aa[_0x1219bd(0x25b)]=_0x1219bd(0x200),_0x12e4aa[_0x1219bd(0x273)]=_0x1219bd(0x21e),_0x12e4aa[_0x1219bd(0x24d)]=_0x1219bd(0x253),_0x12e4aa[_0x1219bd(0x217)]='presenting',_0x12e4aa))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x5c1c5a{constructor(_0x4d5b47,_0x405df6,_0x19f36b,_0x52d8b2,_0x2815b9){var _0x3a4006=_0x1219bd;super(),d(this,'_status$',new _0x2909c0('idle')),d(this,'status$',this[_0x3a4006(0x283)][_0x3a4006(0x220)]()),d(this,'_init',!0x1),d(this,_0x3a4006(0x299),null),d(this,_0x3a4006(0x1ee),null),(this[_0x3a4006(0x247)]=_0x4d5b47,this['_collabSession']=_0x405df6,this[_0x3a4006(0x214)]=_0x19f36b,this[_0x3a4006(0x280)]=_0x52d8b2,this[_0x3a4006(0x29f)]=_0x2815b9);}get[_0x1219bd(0x298)](){var _0x4ac353=_0x1219bd;return this[_0x4ac353(0x283)][_0x4ac353(0x235)]();}[_0x1219bd(0x1f4)](){var _0x3cbd1d=_0x1219bd,_0x5a569b;(_0x5a569b=this[_0x3cbd1d(0x299)])==null||_0x5a569b['dispose'](),this[_0x3cbd1d(0x283)][_0x3cbd1d(0x265)](_0x3cbd1d(0x200)),this['_status$']['complete']();}[_0x1219bd(0x294)](){var _0xab65f2=_0x1219bd;this['_init']||(this['_init']=!0x0,this[_0xab65f2(0x227)][_0xab65f2(0x25a)][_0xab65f2(0x27a)](_0x271d24(this['dispose$']))[_0xab65f2(0x231)](_0x5d99e1=>{var _0x5b3a23=_0xab65f2;switch(_0x5d99e1){case _0x669b6a[_0x5b3a23(0x22f)]:this['_handleOffline']();break;case _0x669b6a[_0x5b3a23(0x250)]:this[_0x5b3a23(0x259)]();break;}}),this['_collabSession'][_0xab65f2(0x22b)]['pipe'](_0x271d24(this[_0xab65f2(0x202)]))[_0xab65f2(0x231)](_0x2f4177=>{var _0x459d9f=_0xab65f2;const {eventID:_0x223469}=_0x2f4177;switch(_0x223469){case _0x3f586a['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2f4177);break;case _0x3f586a[_0x459d9f(0x20b)]:this[_0x459d9f(0x206)](_0x2f4177);break;case _0x3f586a['LIVESHARE_TERMINATE']:this[_0x459d9f(0x279)]();break;case _0x3f586a[_0x459d9f(0x22d)]:this['_handleNewChangeSets'](_0x2f4177);break;}}));}[_0x1219bd(0x222)](){var _0x27097c=_0x1219bd;this['_collabSession'][_0x27097c(0x219)]({'eventID':_0x3f586a[_0x27097c(0x26d)],'data':{'unitID':this[_0x27097c(0x247)],'userID':this[_0x27097c(0x227)]['getMemberID']()}},this[_0x27097c(0x247)]);}['stopPresenting'](){var _0x1dbc4f=_0x1219bd;this[_0x1dbc4f(0x298)]===_0x1dbc4f(0x20d)&&(this[_0x1dbc4f(0x283)]['next'](_0x1dbc4f(0x200)),this['_collabSession'][_0x1dbc4f(0x219)]({'eventID':_0x3f586a[_0x1dbc4f(0x29c)],'data':{'unitID':this[_0x1dbc4f(0x247)]}},this[_0x1dbc4f(0x247)]));}[_0x1219bd(0x1ff)](){var _0x515ff0=_0x1219bd;this[_0x515ff0(0x298)]==='not-following'&&(this[_0x515ff0(0x283)][_0x515ff0(0x265)](_0x515ff0(0x21e)),this[_0x515ff0(0x258)]());}[_0x1219bd(0x29a)](){var _0x51feeb=_0x1219bd;this[_0x51feeb(0x298)]===_0x51feeb(0x21e)&&this[_0x51feeb(0x1f6)]();}['_handleNewHost'](_0x1be1e1){var _0x204dfc=_0x1219bd;const {presenter:_0x5de8fe}=_0x1be1e1[_0x204dfc(0x289)],_0x4da62f=this[_0x204dfc(0x227)][_0x204dfc(0x268)]();this['_presenter']=_0x5de8fe,_0x5de8fe===_0x4da62f?(this[_0x204dfc(0x1f6)](),this[_0x204dfc(0x2a2)]()):this[_0x204dfc(0x298)]!==_0x204dfc(0x253)&&(this[_0x204dfc(0x229)](),this[_0x204dfc(0x258)]());}[_0x1219bd(0x29e)](){var _0x3f54eb=_0x1219bd;const _0x597034={'eventID':_0x3f586a[_0x3f54eb(0x1f9)]};this[_0x3f54eb(0x227)]['send'](_0x597034,this[_0x3f54eb(0x247)]);}[_0x1219bd(0x279)](){var _0x5de5be=_0x1219bd;this[_0x5de5be(0x1ee)]=null,this['_status']!==_0x5de5be(0x20d)&&this[_0x5de5be(0x210)]();}[_0x1219bd(0x23b)](_0x4f41ea){var _0x45dc62=_0x1219bd;if(this['_status']===_0x45dc62(0x21e)&&this[_0x45dc62(0x1ee)]===_0x4f41ea['data'][_0x45dc62(0x238)]){const _0x48536d=_0x59f1d4(_0x4f41ea[_0x45dc62(0x289)])[_0x45dc62(0x25f)][_0x45dc62(0x203)]()[_0x45dc62(0x27f)](_0x47c5c6=>_0x47c5c6['id']===_0x2c54c1['id']);if(_0x48536d){const _0x3c1370=_0x48536d[_0x45dc62(0x207)][_0x45dc62(0x28b)],_0x185a7a=_0x48536d[_0x45dc62(0x207)][_0x45dc62(0x21b)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x344d2b['id'],{'unitId':_0x3c1370,'subUnitId':_0x185a7a},{'fromCollab':!0x0});});}}}[_0x1219bd(0x2a2)](){var _0x5f2793=_0x1219bd;this['_status$'][_0x5f2793(0x265)](_0x5f2793(0x20d));const _0x2b905a=new Map(),_0x8248e2=this[_0x5f2793(0x299)]=new _0x5f0850();_0x8248e2['add'](_0x3bb80b(()=>{var _0x449cdf=_0x5f2793;_0x2b905a[_0x449cdf(0x22a)](_0x3a3a4f=>_0x3a3a4f[_0x449cdf(0x284)]()),_0x2b905a['clear']();})),_0x8248e2['add'](this[_0x5f2793(0x29f)]['onCommandExecuted'](_0x1cb88f=>{var _0x13a9c8=_0x5f2793,_0x22b1db;if(_0x1cb88f[_0x13a9c8(0x25c)]!==_0x6d2769[_0x13a9c8(0x232)]||!this[_0x13a9c8(0x280)][_0x13a9c8(0x285)](_0x1cb88f['id']))return;const {id:_0x455b5b}=_0x1cb88f;let _0x47f007;_0x2b905a['has'](_0x455b5b)?_0x47f007=_0x2b905a[_0x13a9c8(0x201)](_0x455b5b):(_0x47f007=new _0x5b75f6(),_0x2b905a[_0x13a9c8(0x21d)](_0x455b5b,_0x47f007),_0x47f007[_0x13a9c8(0x27a)](_0x3dc073((_0x22b1db=this[_0x13a9c8(0x214)][_0x13a9c8(0x208)](xe))!=null?_0x22b1db:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13a9c8(0x231)](_0x166201=>{var _0x29b92e=_0x13a9c8;this[_0x29b92e(0x227)][_0x29b92e(0x219)]({'eventID':_0x3f586a[_0x29b92e(0x20b)],'data':{'unitID':this[_0x29b92e(0x247)],'operations':{[_0x166201['id']]:{'id':_0x166201['id'],'params':JSON[_0x29b92e(0x286)](_0x166201[_0x29b92e(0x207)])}}}},this[_0x29b92e(0x247)]);})),_0x47f007[_0x13a9c8(0x265)](_0x1cb88f);})),this[_0x5f2793(0x280)][_0x5f2793(0x260)](this[_0x5f2793(0x247)])[_0x5f2793(0x22a)](_0x2a4cb5=>this[_0x5f2793(0x227)][_0x5f2793(0x219)]({'eventID':_0x3f586a[_0x5f2793(0x20b)],'data':{'unitID':this[_0x5f2793(0x247)],'operations':{[_0x2a4cb5['id']]:{'id':_0x2a4cb5['id'],'params':JSON[_0x5f2793(0x286)](_0x2a4cb5[_0x5f2793(0x207)])}}}},this['_unitID']));}[_0x1219bd(0x229)](){var _0x2df509=_0x1219bd,_0x563b71;this[_0x2df509(0x283)]['next']('idle'),(_0x563b71=this[_0x2df509(0x299)])==null||_0x563b71[_0x2df509(0x1f4)](),this[_0x2df509(0x299)]=null;}['_startFollowing'](){var _0x29fce4=_0x1219bd,_0x8c89de;(_0x8c89de=this[_0x29fce4(0x299)])==null||_0x8c89de[_0x29fce4(0x1f4)](),this[_0x29fce4(0x283)]['next'](_0x29fce4(0x21e));}['_beIdle'](){var _0x438a16=_0x1219bd,_0x5da5b6;this[_0x438a16(0x283)][_0x438a16(0x265)](_0x438a16(0x200)),(_0x5da5b6=this[_0x438a16(0x299)])==null||_0x5da5b6[_0x438a16(0x1f4)](),this[_0x438a16(0x299)]=null;}[_0x1219bd(0x1f6)](){var _0x2eda28=_0x1219bd,_0x1809ad;this[_0x2eda28(0x283)]['next'](_0x2eda28(0x253)),(_0x1809ad=this['_commandDisposable'])==null||_0x1809ad['dispose']();}['_handleOperation'](_0x18a147){var _0x58b568=_0x1219bd;if([_0x58b568(0x20d),_0x58b568(0x253),_0x58b568(0x262)][_0x58b568(0x256)](this[_0x58b568(0x298)])||!_0x18a147[_0x58b568(0x289)][_0x58b568(0x27d)]||_0x18a147['data'][_0x58b568(0x27d)]===this[_0x58b568(0x227)]['getMemberID']())return;this[_0x58b568(0x298)]==='idle'&&this[_0x58b568(0x258)]();const _0x1d7613=_0x18a147[_0x58b568(0x289)][_0x58b568(0x292)];Object['values'](_0x1d7613)[_0x58b568(0x22a)](_0x763d8f=>{var _0x3a113c=_0x58b568;this['_commandService'][_0x3a113c(0x24e)](_0x763d8f['id'],_0x763d8f['params']?JSON[_0x3a113c(0x23e)](_0x763d8f[_0x3a113c(0x207)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3a7071=_0x1219bd,_0x418b0c;this['_status$']['next'](_0x3a7071(0x262)),(_0x418b0c=this[_0x3a7071(0x299)])==null||_0x418b0c[_0x3a7071(0x1f4)]();}['_handleOnline'](){var _0x3c410a=_0x1219bd;this[_0x3c410a(0x283)][_0x3c410a(0x265)](_0x3c410a(0x200)),this[_0x3c410a(0x29e)]();}};C=Z([f(0x2,_0xc6ee4c),f(0x3,_0x38cb3e(L)),f(0x4,_0xda8946)],C);function ye(){var _0x3e448f=_0x1219bd;const _0x2e423d=_0x52392f(m),_0x2a419e=_0x52392f(_0x55d7f7),_0x4e0682=_0x5a8172(()=>_0x2a419e[_0x3e448f(0x27b)](_0x514013[_0x3e448f(0x21c)]),void 0x0,!0x1,[]),[_0x45fe71,_0x52726d]=_0x45cd4e(null),[_0x4de0a5,_0xa8798b]=_0x45cd4e(h['IDLE']),_0x4df9ae=_0x5745ef(null);return _0xecf48d(()=>(_0x4e0682&&_0x2e423d[_0x3e448f(0x1f8)](_0x4e0682['getUnitId']())[_0x3e448f(0x239)](_0x336f05=>{var _0x11f2d1=_0x3e448f;_0x52726d(_0x336f05),_0x4df9ae[_0x11f2d1(0x271)]=_0x336f05[_0x11f2d1(0x20f)][_0x11f2d1(0x231)](_0x4467af=>{_0xa8798b(_0x4467af);});}),()=>{var _0x29eb08=_0x3e448f,_0x13e210;(_0x13e210=_0x4df9ae[_0x29eb08(0x271)])==null||_0x13e210[_0x29eb08(0x245)](),_0x4df9ae[_0x29eb08(0x271)]=null;}),[_0x4e0682,_0x2e423d]),_0x45fe71?_0x4e371e(_0x5356c3,{'align':_0x3e448f(0x234),'disabled':_0x4de0a5===h[_0x3e448f(0x22f)],'className':_0x3e448f(0x27c),'overlay':_0x4e371e(Re,{'status':_0x4de0a5,'coordinator':_0x45fe71}),'children':_0x4e371e(_0x3e448f(0x26e),{'className':_0x5711fc(_0x3e448f(0x29d),{'univer-cursor-not-allowed':_0x4de0a5===h[_0x3e448f(0x22f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4de0a5!==h[_0x3e448f(0x22f)]}),'type':'button','children':_0x4e371e(B,{'className':_0x3e448f(0x26f)})})}):null;}function Re(_0x143958){var _0x5f4b56=_0x1219bd;const {status:_0x4c1257,coordinator:_0x189e49}=_0x143958;switch(_0x4c1257){case h[_0x5f4b56(0x25b)]:return _0x4e371e(Pe,{'coordinator':_0x189e49});case h[_0x5f4b56(0x273)]:return _0x4e371e(Ae,{'coordinator':_0x189e49});case h[_0x5f4b56(0x24d)]:return _0x4e371e(Te,{'coordinator':_0x189e49});case h[_0x5f4b56(0x22f)]:return _0x4e371e(Fe,{});case h[_0x5f4b56(0x217)]:return _0x4e371e($e,{'coordinator':_0x189e49});default:return null;}}function Pe(_0x259610){var _0x1042e4=_0x1219bd;const {coordinator:_0x2f6a26}=_0x259610;return _0x189e02(_0x39e573,{'children':[_0x4e371e(_0x1042e4(0x2a3),{'className':_0x1042e4(0x267),'children':_0x1042e4(0x28d)}),_0x4e371e(_0x273b99,{'onClick':()=>_0x2f6a26[_0x1042e4(0x222)](),'children':_0x1042e4(0x1fa)})]});}function Ae(_0x4e0cbe){var _0x24d783=_0x1219bd;const {coordinator:_0x34a911}=_0x4e0cbe;return _0x189e02(_0x39e573,{'children':[_0x4e371e(_0x24d783(0x2a3),{'className':_0x24d783(0x267),'children':_0x24d783(0x204)}),_0x4e371e(_0x273b99,{'onClick':()=>_0x34a911[_0x24d783(0x29a)](),'children':_0x24d783(0x24f)})]});}function Te(_0x2ee390){var _0x3a8ded=_0x1219bd;const {coordinator:_0x47639d}=_0x2ee390;return _0x189e02(_0x39e573,{'children':[_0x4e371e(_0x3a8ded(0x2a3),{'className':_0x3a8ded(0x267),'children':_0x3a8ded(0x2a1)}),_0x4e371e(_0x273b99,{'variant':_0x3a8ded(0x278),'onClick':()=>_0x47639d['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x3a11f4){var _0x161d8f=_0x1219bd;const {coordinator:_0x7e2038}=_0x3a11f4;return _0x189e02(_0x39e573,{'children':[_0x4e371e('div',{'className':_0x161d8f(0x267),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e371e(_0x273b99,{'variant':'default','onClick':()=>_0x7e2038[_0x161d8f(0x293)](),'children':_0x161d8f(0x26b)})]});}function _0x4ade(){var _0x45f6ce=['Stop\x20following','ONLINE','icon','idSuffix','not-following','function','tag','includes','attrs','_startFollowing','_handleOnline','sessionStatus$','IDLE','type','registerInitialStateReporter','_startLiveShareCoordinator','mutations','getInitialStates','_mountLiveShare','offline','1em','none','next','getTypeOfUnitDisposed$','univer-mb-3\x20univer-w-full\x20univer-text-sm','getMemberID','colorChannel1','0\x200\x2017\x2017','Stop\x20presenting','evenodd','LIVESHARE_REQUEST_HOST','button','univer-size-4','54252HkphLv','current','toString','FOLLOWING','createInstance','defIds','1880904EFDHou','trim','text','_handleTerminate','pipe','getCurrentTypeOfUnit$','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','presenter','770305GUtGWi','find','_liveShareService','getTypeOfUnitAdded$','registerComponent','_status$','complete','shouldShareOperation','stringify','_init','setConfig','data','_entities','unitId','call','Present\x20this\x20document','563308WPFegY','getUnitId','string','className','operations','stopPresenting','init','add','delete','mask','_status','_commandDisposable','stopFollowing','pluginName','LIVESHARE_TERMINATE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_fetchOperations','_commandService','4703755DXgbje','You\x27re\x20not\x20following\x20the\x20presenter','_startPresenting','div','_presenter','xlink:href','10GgXiXN','apply','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','live-share-icon','dispose','concat','_stopFollowing','1951xIgPuH','getLiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','Start','from','_config','_univerInstanceService','_sharedOperations','startFollowing','idle','get','dispose$','reverse','You\x27re\x20following\x20the\x20presenter','svg','_handleOperation','params','getConfig','random','defineProperty','LIVESHARE_OPERATION','live-share.config','presenting','136SPUoMQ','status$','_beIdle','_collabSessionService','requireSession','propertyIsEnumerable','_configService','entries','override','PRESENTING','_injector','send','displayName','sheet','UNIVER_SHEET','set','following','398tAwAqc','asObservable','disposeWithMe','tryStartPresenting','_reporters','replace','url(#$1','HEADER_MENU','_collabSession','onStarting','_stopPresenting','forEach','event$','getOwnPropertySymbols','NEW_CHANGESETS','univerjs-icon\x20univerjs-icon-','OFFLINE','defs','subscribe','OPERATION','indexOf','end','getValue','registerSharedOperation','symbol','memberID','then','currentColor','_handleNewChangeSets','has','fill','parse','getOwnPropertyDescriptor','children','path','onRendered','map','UNIVER_LIVE_SHARE_PLUGIN','unsubscribe','6wepbaq','_unitID','249117bBvlcm','LiveShareIcon','_uiPartsService','length','prototype','NOT_FOLLOWING','executeCommand'];_0x4ade=function(){return _0x45f6ce;};return _0x4ade();}function Fe(){return _0x4e371e(_0x39e573,{'children':'You\x27are\x20offline.'});}var He=Object[_0x1219bd(0x23f)],je=(_0x3b4d52,_0x595be3,_0x4f0d6a,_0x1cfa0c)=>{var _0x741a17=_0x1219bd;for(var _0x1e3d8b=_0x1cfa0c>0x1?void 0x0:_0x1cfa0c?He(_0x595be3,_0x4f0d6a):_0x595be3,_0x2f3f9a=_0x3b4d52[_0x741a17(0x24b)]-0x1,_0x42433f;_0x2f3f9a>=0x0;_0x2f3f9a--)(_0x42433f=_0x3b4d52[_0x2f3f9a])&&(_0x1e3d8b=_0x42433f(_0x1e3d8b)||_0x1e3d8b);return _0x1e3d8b;},T=(_0x61ed18,_0xb577fb)=>(_0x2dfa6b,_0x589c1d)=>_0xb577fb(_0x2dfa6b,_0x589c1d,_0x61ed18);let I=class extends _0x42ef25{constructor(_0x2a49fb,_0x5f22ce){var _0x4771ed=_0x1219bd;super(),this[_0x4771ed(0x218)]=_0x2a49fb,this[_0x4771ed(0x24a)]=_0x5f22ce,this[_0x4771ed(0x261)]();}['_mountLiveShare'](){var _0x3b063e=_0x1219bd;this[_0x3b063e(0x221)](this[_0x3b063e(0x24a)][_0x3b063e(0x282)](_0x369a21[_0x3b063e(0x226)],()=>_0x3694c2(ye,this[_0x3b063e(0x218)])));}};I=je([T(0x0,_0x38cb3e(_0xd745ac)),T(0x1,_0x32e609)],I);const Ue=_0x1219bd(0x20c),$={};var Ve=Object[_0x1219bd(0x23f)],Me=(_0x25192c,_0x4b3d61,_0x2eafbf,_0xa3d277)=>{for(var _0x5bbaa9=_0xa3d277>0x1?void 0x0:_0xa3d277?Ve(_0x4b3d61,_0x2eafbf):_0x4b3d61,_0x500698=_0x25192c['length']-0x1,_0x3d00e9;_0x500698>=0x0;_0x500698--)(_0x3d00e9=_0x25192c[_0x500698])&&(_0x5bbaa9=_0x3d00e9(_0x5bbaa9)||_0x5bbaa9);return _0x5bbaa9;},ke=(_0x16c1e6,_0x2c631e)=>(_0x3093d5,_0x57d11c)=>_0x2c631e(_0x3093d5,_0x57d11c,_0x16c1e6);let b=class extends _0x42ef25{constructor(_0x1783a6){var _0x55ce4f=_0x1219bd;super(),this[_0x55ce4f(0x280)]=_0x1783a6,this[_0x55ce4f(0x287)]();}['_init'](){[_0x395408['id'],_0x392bb6['id'],_0x344d2b['id']]['forEach'](_0x398b67=>{var _0x233c1b=_0x2a3c;this[_0x233c1b(0x221)](this[_0x233c1b(0x280)][_0x233c1b(0x236)](_0x398b67));});}};b=Me([ke(0x0,_0x38cb3e(L))],b);var Ge=Object[_0x1219bd(0x20a)],We=Object[_0x1219bd(0x23f)],Ye=(_0x4a0bb3,_0xca67ab,_0x392af7)=>_0xca67ab in _0x4a0bb3?Ge(_0x4a0bb3,_0xca67ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x392af7}):_0x4a0bb3[_0xca67ab]=_0x392af7,Be=(_0x310501,_0x1006be,_0xdb7480,_0x413d2b)=>{var _0x48a4ef=_0x1219bd;for(var _0x339c97=_0x413d2b>0x1?void 0x0:_0x413d2b?We(_0x1006be,_0xdb7480):_0x1006be,_0x44a9b3=_0x310501[_0x48a4ef(0x24b)]-0x1,_0x665418;_0x44a9b3>=0x0;_0x44a9b3--)(_0x665418=_0x310501[_0x44a9b3])&&(_0x339c97=_0x665418(_0x339c97)||_0x339c97);return _0x339c97;},F=(_0x5dfdc8,_0x1b34c6)=>(_0xdf58ef,_0x5acc0b)=>_0x1b34c6(_0xdf58ef,_0x5acc0b,_0x5dfdc8),J=(_0x8ebe37,_0x2fc0fd,_0x9091dc)=>Ye(_0x8ebe37,typeof _0x2fc0fd!=_0x1219bd(0x237)?_0x2fc0fd+'':_0x2fc0fd,_0x9091dc);const Ze=_0x1219bd(0x244);function _0x2a3c(_0x1734ff,_0x5d0b35){var _0x4ade3f=_0x4ade();return _0x2a3c=function(_0x2a3c7c,_0x1b6cef){_0x2a3c7c=_0x2a3c7c-0x1ee;var _0x1f08ce=_0x4ade3f[_0x2a3c7c];return _0x1f08ce;},_0x2a3c(_0x1734ff,_0x5d0b35);}let O=class extends _0x489cd9{constructor(_0x31f829=$,_0x2cd3ba,_0x229ace){var _0x3da53d=_0x1219bd;super(),this[_0x3da53d(0x1fc)]=_0x31f829,this[_0x3da53d(0x218)]=_0x2cd3ba,this[_0x3da53d(0x214)]=_0x229ace;const {..._0x40ed21}=_0x4f4f30({},$,this[_0x3da53d(0x1fc)]);this[_0x3da53d(0x214)][_0x3da53d(0x288)](Ue,_0x40ed21);}[_0x1219bd(0x228)](){var _0x153fc5=_0x1219bd;_0x48e9cc(this['_injector'],_0x125399([[L],[m],[b],[I]],this[_0x153fc5(0x1fc)][_0x153fc5(0x216)])),_0x37b76a(this['_injector'],[[b]]);}[_0x1219bd(0x242)](){_0x37b76a(this['_injector'],[[I]]);}};J(O,'type',_0x514013['UNIVER_UNKNOWN']),J(O,_0x1219bd(0x29b),Ze),O=Be([_0x30903f(_0x19eb06),F(0x1,_0x38cb3e(_0xd745ac)),F(0x2,_0xc6ee4c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x4211e9=_0x2067;(function(_0x5ccfc4,_0x3a9fbf){var _0x3257b2=_0x2067,_0x24c117=_0x5ccfc4();while(!![]){try{var _0x3b0903=parseInt(_0x3257b2(0x1c6))/0x1+parseInt(_0x3257b2(0x1eb))/0x2*(parseInt(_0x3257b2(0x1dc))/0x3)+-parseInt(_0x3257b2(0x1c7))/0x4*(-parseInt(_0x3257b2(0x232))/0x5)+parseInt(_0x3257b2(0x219))/0x6*(parseInt(_0x3257b2(0x1f3))/0x7)+-parseInt(_0x3257b2(0x1c2))/0x8*(-parseInt(_0x3257b2(0x1b1))/0x9)+parseInt(_0x3257b2(0x1e1))/0xa*(parseInt(_0x3257b2(0x1e7))/0xb)+-parseInt(_0x3257b2(0x1f7))/0xc*(parseInt(_0x3257b2(0x218))/0xd);if(_0x3b0903===_0x3a9fbf)break;else _0x24c117['push'](_0x24c117['shift']());}catch(_0x565eed){_0x24c117['push'](_0x24c117['shift']());}}}(_0x2983,0x55bb9));var q=Object[_0x4211e9(0x1a5)],z=(_0x147563,_0x35a5bf,_0x2c4d3e)=>_0x35a5bf in _0x147563?q(_0x147563,_0x35a5bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c4d3e}):_0x147563[_0x35a5bf]=_0x2c4d3e,d=(_0x258ffe,_0x4a2a0a,_0x5675f0)=>z(_0x258ffe,typeof _0x4a2a0a!=_0x4211e9(0x207)?_0x4a2a0a+'':_0x4a2a0a,_0x5675f0);import{Disposable as _0x4178b,toDisposable as _0x1905e1,IUniverInstanceService as _0x4e4916,Inject as _0x29823e,Injector as _0x4cbc28,IConfigService as _0x454454,ICommandService as _0x1f59fb,RxDisposable as _0x11260a,UniverInstanceType as _0x2e04d5,DisposableCollection as _0x30a3f7,CommandType as _0x3ef350,DependentOn as _0x462562,Plugin as _0x119c72,merge as _0x147e1f,registerDependencies as _0x16e757,mergeOverrideWithDependencies as _0x3cdfd6,touchDependencies as _0x108acc}from'@univerjs/core';import{useDependency as _0x34ce29,useObservable as _0x5eb324,IUIPartsService as _0x4b1b8f,BuiltInUIPart as _0x37ef0c,connectInjector as _0x36c2e2}from'@univerjs/ui';import{jsx as _0x478ffe,jsxs as _0x15f696,Fragment as _0xc7295}from'react/jsx-runtime';import{Dropdown as _0x3ee376,clsx as _0x3fe52f,Button as _0x2ec823}from'@univerjs/design';import{forwardRef as _0x5f09eb,useRef as _0x4b76f7,createElement as _0x4cd375,useState as _0x56e9c1,useEffect as _0x5005fd}from'react';import{CollaborationEvent as _0x5c2773,parseProtocolChangeset as _0x8769f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x11bb65,SessionStatus as _0x839685,UniverCollaborationClientPlugin as _0x7fa5df}from'@univerjs-pro/collaboration-client';function _0x2067(_0x31d6ac,_0x15ee94){var _0x298359=_0x2983();return _0x2067=function(_0x20678f,_0x28563c){_0x20678f=_0x20678f-0x189;var _0x2d6af7=_0x298359[_0x20678f];return _0x2d6af7;},_0x2067(_0x31d6ac,_0x15ee94);}import{InsertSheetMutation as _0x20e50f,SetWorksheetActiveOperation as _0x304fe7}from'@univerjs/sheets';function _0x2983(){var _0x1c9061=['_entities','currentColor','call','getOwnPropertyDescriptor','LiveShareIcon','attrs','onRendered','HEADER_MENU','disposeWithMe','svg','text','executeCommand','getLiveShareCoordinator','pipe','dispose$','38856dIMQQd','has','_stopPresenting','defs','484967vURxfJ','283708CJZbsV','LIVESHARE_TERMINATE','xlink:href','apply','Start','defIds','LIVESHARE_FETCH_OPERATIONS','forEach','get','getValue','substring','_presenter','_uiPartsService','registerInitialStateReporter','asObservable','registerComponent','unitId','use','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startLiveShareCoordinator','startFollowing','662034HHyrgZ','icon','idle','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','_injector','510mNvbOF','displayName','_configService','onStarting','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','61149pHZkLE','_handleOnline','_startFollowing','You\x27are\x20offline.','2RJDogU','operations','button','init','indexOf','NOT_FOLLOWING','_collabSession','current','4921bQarlL','getTypeOfUnitAdded$','assign','_config','12APdqIF','params','send','UNIVER_SHEET','add','status$','univerjs-icon\x20univerjs-icon-','_univerInstanceService','_beIdle','Stop\x20following','url(#$1','not-following','offline','fill','_startPresenting','className','symbol','default','stopPresenting','_commandService','PRESENTING','IDLE','_mountLiveShare','shouldShareOperation','live-share.config','_collabSessionService','hasOwnProperty','function','getOwnPropertySymbols','_stopFollowing','Present\x20this\x20document','tryStartPresenting','UNIVER_UNKNOWN','20508371gwHlUD','366NiyjBD','parse','includes','pluginName','_commandDisposable','prototype','find','delete','path','subscribe','_status$','_unitID','mutations','toString','getInitialStates','length','1em','colorChannel1','children','getMemberID','_handleTerminate','getTypeOfUnitDisposed$','getUnitId','_sharedOperations','from','30GqhXQB','map','registerSharedOperation','string','0\x200\x2017\x2017','_status','UniverIcon','_liveShareService','idSuffix','type','stringify','_fetchOperations','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','set','tag','entries','Start\x20following','_handleOffline','sheet','_init','presenter','none','ONLINE','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewHost','setConfig','complete','next','live-share-icon','You\x27re\x20presenting\x20the\x20document','presenting','div','_reporters','data','mask','univer-size-4','defineProperty','requireSession','OFFLINE','following','extend','stopFollowing','dispose','evenodd','concat','_handleOperation','LIVESHARE_REQUEST_HOST','sessionStatus$','873gRREoF','replace'];_0x2983=function(){return _0x1c9061;};return _0x2983();}import{BehaviorSubject as _0x31bb01,Subject as _0x4c84d6}from'rxjs';import{takeUntil as _0x574d5e,throttleTime as _0xee6e22}from'rxjs/operators';import{SetZoomRatioOperation as _0x4df299,SetScrollOperation as _0x346916}from'@univerjs/sheets-ui';var c=function(){var _0xaee1da=_0x4211e9;return c=Object['assign']||function(_0x40073c){var _0x41c284=_0x2067;for(var _0x582e04,_0x4e0114=0x1,_0x4a4f60=arguments[_0x41c284(0x228)];_0x4e0114<_0x4a4f60;_0x4e0114++){_0x582e04=arguments[_0x4e0114];for(var _0x409337 in _0x582e04)Object['prototype'][_0x41c284(0x211)][_0x41c284(0x1b5)](_0x582e04,_0x409337)&&(_0x40073c[_0x409337]=_0x582e04[_0x409337]);}return _0x40073c;},c[_0xaee1da(0x1ca)](this,arguments);},Oe=function(_0x3ef6e9,_0x177a3b){var _0x3e9fb3=_0x4211e9,_0x591dd9={};for(var _0x48530e in _0x3ef6e9)Object[_0x3e9fb3(0x21e)][_0x3e9fb3(0x211)][_0x3e9fb3(0x1b5)](_0x3ef6e9,_0x48530e)&&_0x177a3b[_0x3e9fb3(0x1ef)](_0x48530e)<0x0&&(_0x591dd9[_0x48530e]=_0x3ef6e9[_0x48530e]);if(_0x3ef6e9!=null&&typeof Object['getOwnPropertySymbols']==_0x3e9fb3(0x212)){for(var _0x13f473=0x0,_0x48530e=Object[_0x3e9fb3(0x213)](_0x3ef6e9);_0x13f473<_0x48530e[_0x3e9fb3(0x228)];_0x13f473++)_0x177a3b[_0x3e9fb3(0x1ef)](_0x48530e[_0x13f473])<0x0&&Object[_0x3e9fb3(0x21e)]['propertyIsEnumerable'][_0x3e9fb3(0x1b5)](_0x3ef6e9,_0x48530e[_0x13f473])&&(_0x591dd9[_0x48530e[_0x13f473]]=_0x3ef6e9[_0x48530e[_0x13f473]]);}return _0x591dd9;},W=_0x5f09eb(function(_0x5282cf,_0x4d8f54){var _0x39947d=_0x4211e9,_0xb26294=_0x5282cf['icon'],_0xc08dee=_0x5282cf['id'],_0x1821ed=_0x5282cf[_0x39947d(0x206)],_0x18ad76=_0x5282cf[_0x39947d(0x1a9)],_0x3d3063=Oe(_0x5282cf,[_0x39947d(0x1dd),'id',_0x39947d(0x206),_0x39947d(0x1a9)]),_0x331293=_0x39947d(0x1fd)[_0x39947d(0x1ad)](_0xc08dee,'\x20')[_0x39947d(0x1ad)](_0x1821ed||'')['trim'](),_0x596dbb=_0x4b76f7('_'['concat'](Ne()));return Y(_0xb26294,''['concat'](_0xc08dee),{'defIds':_0xb26294['defIds'],'idSuffix':_0x596dbb[_0x39947d(0x1f2)]},c({'ref':_0x4d8f54,'className':_0x331293},_0x3d3063),_0x18ad76);});function Y(_0x50e184,_0x1b46af,_0x12cf7a,_0xe0db3,_0x24f22c){var _0x218725=_0x4211e9;return _0x4cd375(_0x50e184['tag'],c(c({'key':_0x1b46af},Ee(_0x50e184,_0x12cf7a,_0x24f22c)),_0xe0db3),(we(_0x50e184,_0x12cf7a)[_0x218725(0x22b)]||[])[_0x218725(0x233)](function(_0x4805eb,_0x2477d1){var _0x4edaa0=_0x218725;return Y(_0x4805eb,''[_0x4edaa0(0x1ad)](_0x1b46af,'-')[_0x4edaa0(0x1ad)](_0x50e184[_0x4edaa0(0x18e)],'-')[_0x4edaa0(0x1ad)](_0x2477d1),_0x12cf7a,void 0x0,_0x24f22c);}));}function Ee(_0x55fab8,_0x33fce0,_0x19fa4a){var _0x47263e=_0x4211e9,_0x412574=c({},_0x55fab8[_0x47263e(0x1b8)]);_0x19fa4a!=null&&_0x19fa4a['colorChannel1']&&_0x412574[_0x47263e(0x204)]===_0x47263e(0x22a)&&(_0x412574[_0x47263e(0x204)]=_0x19fa4a[_0x47263e(0x22a)]),_0x55fab8[_0x47263e(0x18e)]==='mask'&&_0x412574['id']&&(_0x412574['id']=_0x412574['id']+_0x33fce0[_0x47263e(0x23a)]),Object[_0x47263e(0x18f)](_0x412574)[_0x47263e(0x1ce)](function(_0x404635){var _0x16e1ca=_0x47263e,_0x700361=_0x404635[0x0],_0x31eca8=_0x404635[0x1];_0x700361===_0x16e1ca(0x1a3)&&typeof _0x31eca8=='string'&&(_0x412574[_0x700361]=_0x31eca8[_0x16e1ca(0x1b2)](/url\(#(.*)\)/,_0x16e1ca(0x201)[_0x16e1ca(0x1ad)](_0x33fce0[_0x16e1ca(0x23a)],')')));});var _0x2859a2=_0x33fce0[_0x47263e(0x1cc)];return!_0x2859a2||_0x2859a2[_0x47263e(0x228)]===0x0||(_0x55fab8['tag']===_0x47263e(0x1d8)&&_0x412574['xlink:href']&&(_0x412574[_0x47263e(0x1c9)]=_0x412574[_0x47263e(0x1c9)]+_0x33fce0[_0x47263e(0x23a)]),Object[_0x47263e(0x18f)](_0x412574)['forEach'](function(_0x33d311){var _0x147b96=_0x47263e,_0x24e47f=_0x33d311[0x0],_0x3fa66c=_0x33d311[0x1];typeof _0x3fa66c==_0x147b96(0x235)&&(_0x412574[_0x24e47f]=_0x3fa66c[_0x147b96(0x1b2)](/url\(#(.*)\)/,'url(#$1'[_0x147b96(0x1ad)](_0x33fce0['idSuffix'],')')));})),_0x412574;}function we(_0x331832,_0x51a84e){var _0x588c59=_0x4211e9,_0x4eb5c0,_0x4b408b=_0x51a84e[_0x588c59(0x1cc)];return!_0x4b408b||_0x4b408b[_0x588c59(0x228)]===0x0?_0x331832:_0x331832[_0x588c59(0x18e)]===_0x588c59(0x1c5)&&(!((_0x4eb5c0=_0x331832[_0x588c59(0x22b)])===null||_0x4eb5c0===void 0x0)&&_0x4eb5c0['length'])?c(c({},_0x331832),{'children':_0x331832[_0x588c59(0x22b)][_0x588c59(0x233)](function(_0x1a0cff){var _0x26317d=_0x588c59;return typeof _0x1a0cff[_0x26317d(0x1b8)]['id']=='string'&&_0x4b408b&&_0x4b408b[_0x26317d(0x21b)](_0x1a0cff[_0x26317d(0x1b8)]['id'])?c(c({},_0x1a0cff),{'attrs':c(c({},_0x1a0cff[_0x26317d(0x1b8)]),{'id':_0x1a0cff['attrs']['id']+_0x51a84e[_0x26317d(0x23a)]})}):_0x1a0cff;})}):_0x331832;}function Ne(){var _0x3b9c11=_0x4211e9;return Math['random']()[_0x3b9c11(0x226)](0x24)[_0x3b9c11(0x1d1)](0x2,0x8);}W[_0x4211e9(0x1e2)]=_0x4211e9(0x238);var Ce={'tag':_0x4211e9(0x1bc),'attrs':{'xmlns':_0x4211e9(0x1e5),'fill':_0x4211e9(0x195),'viewBox':_0x4211e9(0x236),'width':_0x4211e9(0x229),'height':_0x4211e9(0x229)},'children':[{'tag':_0x4211e9(0x221),'attrs':{'fill':_0x4211e9(0x1b4),'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':_0x4211e9(0x221),'attrs':{'fill':_0x4211e9(0x1b4),'d':_0x4211e9(0x18c),'fillRule':_0x4211e9(0x1ac),'clipRule':_0x4211e9(0x1ac)}}]},B=_0x5f09eb(function(_0x231f76,_0x4eb1dd){var _0x441318=_0x4211e9;return _0x4cd375(W,Object[_0x441318(0x1f5)]({},_0x231f76,{'id':_0x441318(0x19d),'ref':_0x4eb1dd,'icon':Ce}));});B[_0x4211e9(0x1e2)]=_0x4211e9(0x1b7);class L extends _0x4178b{constructor(){var _0x1b9683=_0x4211e9;super(...arguments),d(this,_0x1b9683(0x230),new Set()),d(this,_0x1b9683(0x1a1),new Set());}[_0x4211e9(0x234)](_0x58ef9a){var _0x3f3fd7=_0x4211e9;return this[_0x3f3fd7(0x230)][_0x3f3fd7(0x1fb)](_0x58ef9a),_0x1905e1(()=>this[_0x3f3fd7(0x230)][_0x3f3fd7(0x220)](_0x58ef9a));}[_0x4211e9(0x1d4)](_0x595234){var _0x31abf9=_0x4211e9;return this[_0x31abf9(0x1a1)][_0x31abf9(0x1fb)](_0x595234),_0x1905e1(()=>this[_0x31abf9(0x1a1)]['delete'](_0x595234));}[_0x4211e9(0x20e)](_0x22296e){var _0x5a9489=_0x4211e9;return this[_0x5a9489(0x230)][_0x5a9489(0x1c3)](_0x22296e);}[_0x4211e9(0x227)](_0x3e40a3){var _0x1dbe38=_0x4211e9;return Array[_0x1dbe38(0x231)](this[_0x1dbe38(0x1a1)])[_0x1dbe38(0x233)](_0x211a6b=>_0x211a6b(_0x3e40a3));}}var De=Object[_0x4211e9(0x1b6)],Z=(_0x58e24e,_0x371f99,_0x16db68,_0x5463e0)=>{var _0x13942a=_0x4211e9;for(var _0xe8721d=_0x5463e0>0x1?void 0x0:_0x5463e0?De(_0x371f99,_0x16db68):_0x371f99,_0x26c400=_0x58e24e[_0x13942a(0x228)]-0x1,_0x356c80;_0x26c400>=0x0;_0x26c400--)(_0x356c80=_0x58e24e[_0x26c400])&&(_0xe8721d=_0x356c80(_0xe8721d)||_0xe8721d);return _0xe8721d;},f=(_0xd5c2bb,_0x45e4b6)=>(_0x5695b0,_0x8c7ef1)=>_0x45e4b6(_0x5695b0,_0x8c7ef1,_0xd5c2bb);let m=class extends _0x11260a{constructor(_0x1f7dc2,_0x35670e,_0x6d0845){var _0x5707b0=_0x4211e9;super(),d(this,_0x5707b0(0x1b3),new Map()),(this[_0x5707b0(0x1fe)]=_0x1f7dc2,this[_0x5707b0(0x1e0)]=_0x35670e,this[_0x5707b0(0x210)]=_0x6d0845,this['_init']());}async[_0x4211e9(0x1bf)](_0x5410fe){var _0x5f0379=_0x4211e9;return this[_0x5f0379(0x1b3)][_0x5f0379(0x1c3)](_0x5410fe)||await this['_startLiveShareCoordinator'](_0x5410fe),this['_entities'][_0x5f0379(0x1cf)](_0x5410fe);}['_init'](){var _0x26c467=_0x4211e9;this['_univerInstanceService'][_0x26c467(0x1f4)](_0x2e04d5['UNIVER_SHEET'])['pipe'](_0x574d5e(this[_0x26c467(0x1c1)]))[_0x26c467(0x222)](async _0x26c4f0=>{var _0x11d9de=_0x26c467;const _0x10df47=_0x26c4f0['getUnitId']();this[_0x11d9de(0x1b3)]['has'](_0x10df47)||this[_0x11d9de(0x1da)](_0x10df47);}),this[_0x26c467(0x1fe)][_0x26c467(0x22e)](_0x2e04d5[_0x26c467(0x1fa)])[_0x26c467(0x1c0)](_0x574d5e(this[_0x26c467(0x1c1)]))['subscribe'](_0x286c3f=>{var _0x397f42=_0x26c467;const _0x50a97a=_0x286c3f[_0x397f42(0x22f)](),_0x5388be=this['_entities'][_0x397f42(0x1cf)](_0x50a97a);_0x5388be==null||_0x5388be[_0x397f42(0x1ab)]();});}async['_startLiveShareCoordinator'](_0x2db63e){var _0x23b303=_0x4211e9;const _0x45be0c=await this['_collabSessionService'][_0x23b303(0x1a6)](_0x2db63e),_0x331acd=this[_0x23b303(0x1e0)]['createInstance'](C,_0x2db63e,_0x45be0c);return _0x331acd[_0x23b303(0x1ee)](),this[_0x23b303(0x1b3)][_0x23b303(0x18d)](_0x2db63e,_0x331acd),_0x331acd;}};m=Z([f(0x0,_0x4e4916),f(0x1,_0x29823e(_0x4cbc28)),f(0x2,_0x29823e(_0x11bb65))],m);var h=(_0x31cfc4=>(_0x31cfc4['OFFLINE']=_0x4211e9(0x203),_0x31cfc4['IDLE']=_0x4211e9(0x1de),_0x31cfc4['FOLLOWING']='following',_0x31cfc4[_0x4211e9(0x1f0)]=_0x4211e9(0x202),_0x31cfc4[_0x4211e9(0x20b)]='presenting',_0x31cfc4))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x11260a{constructor(_0x1138ca,_0x970feb,_0xfd094d,_0x44b456,_0x1e6448){var _0x3c0e98=_0x4211e9;super(),d(this,_0x3c0e98(0x223),new _0x31bb01(_0x3c0e98(0x1de))),d(this,_0x3c0e98(0x1fc),this[_0x3c0e98(0x223)][_0x3c0e98(0x1d5)]()),d(this,'_init',!0x1),d(this,_0x3c0e98(0x21d),null),d(this,_0x3c0e98(0x1d2),null),(this[_0x3c0e98(0x224)]=_0x1138ca,this[_0x3c0e98(0x1f1)]=_0x970feb,this[_0x3c0e98(0x1e3)]=_0xfd094d,this[_0x3c0e98(0x239)]=_0x44b456,this[_0x3c0e98(0x20a)]=_0x1e6448);}get[_0x4211e9(0x237)](){var _0x4aefb0=_0x4211e9;return this[_0x4aefb0(0x223)][_0x4aefb0(0x1d0)]();}[_0x4211e9(0x1ab)](){var _0x50d183=_0x4211e9,_0x4f82a6;(_0x4f82a6=this[_0x50d183(0x21d)])==null||_0x4f82a6[_0x50d183(0x1ab)](),this[_0x50d183(0x223)][_0x50d183(0x19c)](_0x50d183(0x1de)),this[_0x50d183(0x223)][_0x50d183(0x19b)]();}[_0x4211e9(0x1ee)](){var _0x2aa7f3=_0x4211e9;this['_init']||(this[_0x2aa7f3(0x193)]=!0x0,this[_0x2aa7f3(0x1f1)][_0x2aa7f3(0x1b0)][_0x2aa7f3(0x1c0)](_0x574d5e(this[_0x2aa7f3(0x1c1)]))[_0x2aa7f3(0x222)](_0x12d27c=>{var _0x1d4457=_0x2aa7f3;switch(_0x12d27c){case _0x839685[_0x1d4457(0x1a7)]:this[_0x1d4457(0x191)]();break;case _0x839685[_0x1d4457(0x196)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x2aa7f3(0x1c0)](_0x574d5e(this[_0x2aa7f3(0x1c1)]))['subscribe'](_0x64a67=>{var _0x59c515=_0x2aa7f3;const {eventID:_0x13163f}=_0x64a67;switch(_0x13163f){case _0x5c2773['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x64a67);break;case _0x5c2773['LIVESHARE_OPERATION']:this[_0x59c515(0x1ae)](_0x64a67);break;case _0x5c2773[_0x59c515(0x1c8)]:this[_0x59c515(0x22d)]();break;case _0x5c2773['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x64a67);break;}}));}['tryStartPresenting'](){var _0x2b245b=_0x4211e9;this['_collabSession']['send']({'eventID':_0x5c2773[_0x2b245b(0x1af)],'data':{'unitID':this[_0x2b245b(0x224)],'userID':this['_collabSession'][_0x2b245b(0x22c)]()}},this[_0x2b245b(0x224)]);}[_0x4211e9(0x209)](){var _0x146027=_0x4211e9;this[_0x146027(0x237)]==='presenting'&&(this[_0x146027(0x223)][_0x146027(0x19c)](_0x146027(0x1de)),this[_0x146027(0x1f1)][_0x146027(0x1f9)]({'eventID':_0x5c2773[_0x146027(0x1c8)],'data':{'unitID':this[_0x146027(0x224)]}},this[_0x146027(0x224)]));}['startFollowing'](){var _0x1fad91=_0x4211e9;this['_status']==='not-following'&&(this[_0x1fad91(0x223)][_0x1fad91(0x19c)]('following'),this[_0x1fad91(0x1e9)]());}[_0x4211e9(0x1aa)](){var _0x3ec898=_0x4211e9;this[_0x3ec898(0x237)]===_0x3ec898(0x1a8)&&this[_0x3ec898(0x214)]();}[_0x4211e9(0x199)](_0xeb88da){var _0xc01076=_0x4211e9;const {presenter:_0x11d950}=_0xeb88da[_0xc01076(0x1a2)],_0x1425e3=this[_0xc01076(0x1f1)][_0xc01076(0x22c)]();this[_0xc01076(0x1d2)]=_0x11d950,_0x11d950===_0x1425e3?(this[_0xc01076(0x214)](),this[_0xc01076(0x205)]()):this[_0xc01076(0x237)]!==_0xc01076(0x202)&&(this['_stopPresenting'](),this[_0xc01076(0x1e9)]());}[_0x4211e9(0x18b)](){var _0x1a20c2=_0x4211e9;const _0x597ffd={'eventID':_0x5c2773[_0x1a20c2(0x1cd)]};this[_0x1a20c2(0x1f1)][_0x1a20c2(0x1f9)](_0x597ffd,this[_0x1a20c2(0x224)]);}[_0x4211e9(0x22d)](){var _0x53fa31=_0x4211e9;this[_0x53fa31(0x1d2)]=null,this['_status']!==_0x53fa31(0x19f)&&this[_0x53fa31(0x1ff)]();}['_handleNewChangeSets'](_0x520984){var _0x3aadfb=_0x4211e9;if(this['_status']===_0x3aadfb(0x1a8)&&this[_0x3aadfb(0x1d2)]===_0x520984['data']['memberID']){const _0x4e81e4=_0x8769f7(_0x520984[_0x3aadfb(0x1a2)])[_0x3aadfb(0x225)]['reverse']()[_0x3aadfb(0x21f)](_0x48b215=>_0x48b215['id']===_0x20e50f['id']);if(_0x4e81e4){const _0x1701b5=_0x4e81e4['params'][_0x3aadfb(0x1d7)],_0x5183fd=_0x4e81e4[_0x3aadfb(0x1f8)][_0x3aadfb(0x192)]['id'];setTimeout(()=>{var _0x752db1=_0x3aadfb;this[_0x752db1(0x20a)][_0x752db1(0x1be)](_0x304fe7['id'],{'unitId':_0x1701b5,'subUnitId':_0x5183fd},{'fromCollab':!0x0});});}}}[_0x4211e9(0x205)](){var _0x5f571b=_0x4211e9;this[_0x5f571b(0x223)][_0x5f571b(0x19c)](_0x5f571b(0x19f));const _0x30229e=new Map(),_0x5e6dc5=this['_commandDisposable']=new _0x30a3f7();_0x5e6dc5[_0x5f571b(0x1fb)](_0x1905e1(()=>{var _0x304607=_0x5f571b;_0x30229e[_0x304607(0x1ce)](_0x39d2d5=>_0x39d2d5[_0x304607(0x19b)]()),_0x30229e['clear']();})),_0x5e6dc5[_0x5f571b(0x1fb)](this[_0x5f571b(0x20a)]['onCommandExecuted'](_0x50e719=>{var _0x38f1d9=_0x5f571b,_0x33ef18;if(_0x50e719[_0x38f1d9(0x189)]!==_0x3ef350['OPERATION']||!this['_liveShareService'][_0x38f1d9(0x20e)](_0x50e719['id']))return;const {id:_0x2f4eb8}=_0x50e719;let _0x422ceb;_0x30229e[_0x38f1d9(0x1c3)](_0x2f4eb8)?_0x422ceb=_0x30229e['get'](_0x2f4eb8):(_0x422ceb=new _0x4c84d6(),_0x30229e[_0x38f1d9(0x18d)](_0x2f4eb8,_0x422ceb),_0x422ceb['pipe'](_0xee6e22((_0x33ef18=this[_0x38f1d9(0x1e3)]['getConfig'](xe))!=null?_0x33ef18:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38f1d9(0x222)](_0x2513c3=>{var _0x4b29e9=_0x38f1d9;this['_collabSession']['send']({'eventID':_0x5c2773[_0x4b29e9(0x1e6)],'data':{'unitID':this[_0x4b29e9(0x224)],'operations':{[_0x2513c3['id']]:{'id':_0x2513c3['id'],'params':JSON[_0x4b29e9(0x18a)](_0x2513c3['params'])}}}},this[_0x4b29e9(0x224)]);})),_0x422ceb[_0x38f1d9(0x19c)](_0x50e719);})),this[_0x5f571b(0x239)][_0x5f571b(0x227)](this[_0x5f571b(0x224)])[_0x5f571b(0x1ce)](_0x116247=>this[_0x5f571b(0x1f1)][_0x5f571b(0x1f9)]({'eventID':_0x5c2773['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5f571b(0x224)],'operations':{[_0x116247['id']]:{'id':_0x116247['id'],'params':JSON[_0x5f571b(0x18a)](_0x116247['params'])}}}},this[_0x5f571b(0x224)]));}[_0x4211e9(0x1c4)](){var _0xc525b4=_0x4211e9,_0x7e594e;this[_0xc525b4(0x223)][_0xc525b4(0x19c)](_0xc525b4(0x1de)),(_0x7e594e=this[_0xc525b4(0x21d)])==null||_0x7e594e[_0xc525b4(0x1ab)](),this[_0xc525b4(0x21d)]=null;}[_0x4211e9(0x1e9)](){var _0x24c625=_0x4211e9,_0x4ef12e;(_0x4ef12e=this[_0x24c625(0x21d)])==null||_0x4ef12e[_0x24c625(0x1ab)](),this['_status$'][_0x24c625(0x19c)]('following');}[_0x4211e9(0x1ff)](){var _0x4346af=_0x4211e9,_0x5463f7;this['_status$'][_0x4346af(0x19c)](_0x4346af(0x1de)),(_0x5463f7=this['_commandDisposable'])==null||_0x5463f7[_0x4346af(0x1ab)](),this[_0x4346af(0x21d)]=null;}[_0x4211e9(0x214)](){var _0x5b291d=_0x4211e9,_0x2bbf12;this['_status$'][_0x5b291d(0x19c)](_0x5b291d(0x202)),(_0x2bbf12=this['_commandDisposable'])==null||_0x2bbf12[_0x5b291d(0x1ab)]();}['_handleOperation'](_0x2e4c14){var _0x13dfb2=_0x4211e9;if(['presenting',_0x13dfb2(0x202),'offline'][_0x13dfb2(0x21b)](this['_status'])||!_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x194)]||_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x194)]===this['_collabSession'][_0x13dfb2(0x22c)]())return;this[_0x13dfb2(0x237)]===_0x13dfb2(0x1de)&&this[_0x13dfb2(0x1e9)]();const _0x56b58a=_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x1ec)];Object['values'](_0x56b58a)[_0x13dfb2(0x1ce)](_0x5676e4=>{var _0x43ace8=_0x13dfb2;this[_0x43ace8(0x20a)]['executeCommand'](_0x5676e4['id'],_0x5676e4[_0x43ace8(0x1f8)]?JSON[_0x43ace8(0x21a)](_0x5676e4[_0x43ace8(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x4211e9(0x191)](){var _0x3e3ec6=_0x4211e9,_0x333f8b;this[_0x3e3ec6(0x223)][_0x3e3ec6(0x19c)](_0x3e3ec6(0x203)),(_0x333f8b=this[_0x3e3ec6(0x21d)])==null||_0x333f8b[_0x3e3ec6(0x1ab)]();}[_0x4211e9(0x1e8)](){var _0x851a74=_0x4211e9;this[_0x851a74(0x223)][_0x851a74(0x19c)](_0x851a74(0x1de)),this[_0x851a74(0x18b)]();}};C=Z([f(0x2,_0x454454),f(0x3,_0x29823e(L)),f(0x4,_0x1f59fb)],C);function ye(){var _0x2407f2=_0x4211e9;const _0x23995e=_0x34ce29(m),_0x1068a7=_0x34ce29(_0x4e4916),_0x24aa99=_0x5eb324(()=>_0x1068a7['getCurrentTypeOfUnit$'](_0x2e04d5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5baab2,_0x5df1cc]=_0x56e9c1(null),[_0x2557c7,_0x2a7937]=_0x56e9c1(h[_0x2407f2(0x20c)]),_0xe52120=_0x4b76f7(null);return _0x5005fd(()=>(_0x24aa99&&_0x23995e['getLiveShareCoordinator'](_0x24aa99[_0x2407f2(0x22f)]())['then'](_0x165de8=>{var _0x952f43=_0x2407f2;_0x5df1cc(_0x165de8),_0xe52120[_0x952f43(0x1f2)]=_0x165de8[_0x952f43(0x1fc)][_0x952f43(0x222)](_0xc6c851=>{_0x2a7937(_0xc6c851);});}),()=>{var _0x17518f=_0x2407f2,_0x27c3a4;(_0x27c3a4=_0xe52120[_0x17518f(0x1f2)])==null||_0x27c3a4[_0x17518f(0x197)](),_0xe52120[_0x17518f(0x1f2)]=null;}),[_0x24aa99,_0x23995e]),_0x5baab2?_0x478ffe(_0x3ee376,{'align':'end','disabled':_0x2557c7===h[_0x2407f2(0x1a7)],'className':_0x2407f2(0x1df),'overlay':_0x478ffe(Re,{'status':_0x2557c7,'coordinator':_0x5baab2}),'children':_0x478ffe(_0x2407f2(0x1ed),{'className':_0x3fe52f('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2557c7===h[_0x2407f2(0x1a7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2557c7!==h[_0x2407f2(0x1a7)]}),'type':_0x2407f2(0x1ed),'children':_0x478ffe(B,{'className':_0x2407f2(0x1a4)})})}):null;}function Re(_0x28b43b){var _0x1e8385=_0x4211e9;const {status:_0x43370e,coordinator:_0x1e3176}=_0x28b43b;switch(_0x43370e){case h['IDLE']:return _0x478ffe(Pe,{'coordinator':_0x1e3176});case h['FOLLOWING']:return _0x478ffe(Ae,{'coordinator':_0x1e3176});case h[_0x1e8385(0x1f0)]:return _0x478ffe(Te,{'coordinator':_0x1e3176});case h[_0x1e8385(0x1a7)]:return _0x478ffe(Fe,{});case h[_0x1e8385(0x20b)]:return _0x478ffe($e,{'coordinator':_0x1e3176});default:return null;}}function Pe(_0x28ad3c){var _0x5705f2=_0x4211e9;const {coordinator:_0x35452d}=_0x28ad3c;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x5705f2(0x1a0),{'className':_0x5705f2(0x1d9),'children':_0x5705f2(0x215)}),_0x478ffe(_0x2ec823,{'onClick':()=>_0x35452d[_0x5705f2(0x216)](),'children':_0x5705f2(0x1cb)})]});}function Ae(_0x2e52cb){var _0x11a763=_0x4211e9;const {coordinator:_0x59c989}=_0x2e52cb;return _0x15f696(_0xc7295,{'children':[_0x478ffe('div',{'className':_0x11a763(0x1d9),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x478ffe(_0x2ec823,{'onClick':()=>_0x59c989[_0x11a763(0x1aa)](),'children':_0x11a763(0x200)})]});}function Te(_0x302eb9){var _0x5325a9=_0x4211e9;const {coordinator:_0x2e77f6}=_0x302eb9;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x5325a9(0x1a0),{'className':_0x5325a9(0x1d9),'children':_0x5325a9(0x198)}),_0x478ffe(_0x2ec823,{'variant':_0x5325a9(0x1bd),'onClick':()=>_0x2e77f6[_0x5325a9(0x1db)](),'children':_0x5325a9(0x190)})]});}function $e(_0xbfdfdd){var _0x1ccb70=_0x4211e9;const {coordinator:_0x5a3578}=_0xbfdfdd;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x1ccb70(0x1a0),{'className':_0x1ccb70(0x1d9),'children':_0x1ccb70(0x19e)}),_0x478ffe(_0x2ec823,{'variant':_0x1ccb70(0x208),'onClick':()=>_0x5a3578[_0x1ccb70(0x209)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x2689e4=_0x4211e9;return _0x478ffe(_0xc7295,{'children':_0x2689e4(0x1ea)});}var He=Object[_0x4211e9(0x1b6)],je=(_0x5e2ab2,_0x108636,_0x1a0910,_0x3bf9b8)=>{var _0x4fcc65=_0x4211e9;for(var _0x588d08=_0x3bf9b8>0x1?void 0x0:_0x3bf9b8?He(_0x108636,_0x1a0910):_0x108636,_0x30d11c=_0x5e2ab2[_0x4fcc65(0x228)]-0x1,_0x2d6263;_0x30d11c>=0x0;_0x30d11c--)(_0x2d6263=_0x5e2ab2[_0x30d11c])&&(_0x588d08=_0x2d6263(_0x588d08)||_0x588d08);return _0x588d08;},T=(_0x648934,_0x410285)=>(_0x584ae5,_0x193f02)=>_0x410285(_0x584ae5,_0x193f02,_0x648934);let I=class extends _0x4178b{constructor(_0x10a498,_0x30fc7b){var _0x1b4d22=_0x4211e9;super(),this['_injector']=_0x10a498,this['_uiPartsService']=_0x30fc7b,this[_0x1b4d22(0x20d)]();}[_0x4211e9(0x20d)](){var _0x1108ff=_0x4211e9;this[_0x1108ff(0x1bb)](this[_0x1108ff(0x1d3)][_0x1108ff(0x1d6)](_0x37ef0c[_0x1108ff(0x1ba)],()=>_0x36c2e2(ye,this[_0x1108ff(0x1e0)])));}};I=je([T(0x0,_0x29823e(_0x4cbc28)),T(0x1,_0x4b1b8f)],I);const Ue=_0x4211e9(0x20f),$={};var Ve=Object[_0x4211e9(0x1b6)],Me=(_0x365cb2,_0x32fad2,_0x596884,_0x1a7da2)=>{var _0x3c2b21=_0x4211e9;for(var _0x35b54e=_0x1a7da2>0x1?void 0x0:_0x1a7da2?Ve(_0x32fad2,_0x596884):_0x32fad2,_0x16574b=_0x365cb2[_0x3c2b21(0x228)]-0x1,_0x1c2e71;_0x16574b>=0x0;_0x16574b--)(_0x1c2e71=_0x365cb2[_0x16574b])&&(_0x35b54e=_0x1c2e71(_0x35b54e)||_0x35b54e);return _0x35b54e;},ke=(_0x195866,_0x37d115)=>(_0xd4ffa3,_0x4ee49f)=>_0x37d115(_0xd4ffa3,_0x4ee49f,_0x195866);let b=class extends _0x4178b{constructor(_0x150931){var _0xb9ac09=_0x4211e9;super(),this[_0xb9ac09(0x239)]=_0x150931,this[_0xb9ac09(0x193)]();}['_init'](){var _0x18a05e=_0x4211e9;[_0x4df299['id'],_0x346916['id'],_0x304fe7['id']][_0x18a05e(0x1ce)](_0x310109=>{var _0x2326f=_0x18a05e;this[_0x2326f(0x1bb)](this['_liveShareService'][_0x2326f(0x234)](_0x310109));});}};b=Me([ke(0x0,_0x29823e(L))],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3216d4,_0x33da56,_0x3cb493)=>_0x33da56 in _0x3216d4?Ge(_0x3216d4,_0x33da56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cb493}):_0x3216d4[_0x33da56]=_0x3cb493,Be=(_0x4d11cf,_0x48d827,_0x2eacd9,_0x56d5dd)=>{var _0x659cb7=_0x4211e9;for(var _0x534d68=_0x56d5dd>0x1?void 0x0:_0x56d5dd?We(_0x48d827,_0x2eacd9):_0x48d827,_0x4f18fe=_0x4d11cf[_0x659cb7(0x228)]-0x1,_0x75b698;_0x4f18fe>=0x0;_0x4f18fe--)(_0x75b698=_0x4d11cf[_0x4f18fe])&&(_0x534d68=_0x75b698(_0x534d68)||_0x534d68);return _0x534d68;},F=(_0x5721ca,_0x5500bb)=>(_0x1b7fae,_0x2e5217)=>_0x5500bb(_0x1b7fae,_0x2e5217,_0x5721ca),J=(_0x4948a8,_0x2e1311,_0x1c3400)=>Ye(_0x4948a8,typeof _0x2e1311!=_0x4211e9(0x207)?_0x2e1311+'':_0x2e1311,_0x1c3400);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x119c72{constructor(_0x542dab=$,_0x6edcd4,_0x125cb8){var _0xbe4892=_0x4211e9;super(),this['_config']=_0x542dab,this[_0xbe4892(0x1e0)]=_0x6edcd4,this['_configService']=_0x125cb8;const {..._0x2f92a2}=_0x147e1f({},$,this['_config']);this[_0xbe4892(0x1e3)][_0xbe4892(0x19a)](Ue,_0x2f92a2);}[_0x4211e9(0x1e4)](){var _0x5c78c5=_0x4211e9;_0x16e757(this['_injector'],_0x3cdfd6([[L],[m],[b],[I]],this[_0x5c78c5(0x1f6)]['override'])),_0x108acc(this[_0x5c78c5(0x1e0)],[[b]]);}[_0x4211e9(0x1b9)](){var _0x22bc9e=_0x4211e9;_0x108acc(this[_0x22bc9e(0x1e0)],[[I]]);}};J(O,_0x4211e9(0x189),_0x2e04d5[_0x4211e9(0x217)]),J(O,_0x4211e9(0x21c),Ze),O=Be([_0x462562(_0x7fa5df),F(0x1,_0x29823e(_0x4cbc28)),F(0x2,_0x454454)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1219bd=_0x2a3c;(function(_0x20fb1d,_0x1eaf9d){var _0x115e0a=_0x2a3c,_0x2a0a54=_0x20fb1d();while(!![]){try{var _0x5d72cf=parseInt(_0x115e0a(0x1f7))/0x1*(parseInt(_0x115e0a(0x21f))/0x2)+parseInt(_0x115e0a(0x276))/0x3+parseInt(_0x115e0a(0x28e))/0x4+parseInt(_0x115e0a(0x27e))/0x5*(parseInt(_0x115e0a(0x246))/0x6)+-parseInt(_0x115e0a(0x2a0))/0x7+parseInt(_0x115e0a(0x20e))/0x8*(-parseInt(_0x115e0a(0x270))/0x9)+-parseInt(_0x115e0a(0x1f0))/0xa*(-parseInt(_0x115e0a(0x248))/0xb);if(_0x5d72cf===_0x1eaf9d)break;else _0x2a0a54['push'](_0x2a0a54['shift']());}catch(_0x4bc363){_0x2a0a54['push'](_0x2a0a54['shift']());}}}(_0x4ade,0x884e7));var q=Object[_0x1219bd(0x20a)],z=(_0x61cbc3,_0x2c256c,_0x139083)=>_0x2c256c in _0x61cbc3?q(_0x61cbc3,_0x2c256c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x139083}):_0x61cbc3[_0x2c256c]=_0x139083,d=(_0x30df8f,_0x45f644,_0x1ecccb)=>z(_0x30df8f,typeof _0x45f644!=_0x1219bd(0x237)?_0x45f644+'':_0x45f644,_0x1ecccb);import{Disposable as _0x42ef25,toDisposable as _0x3bb80b,IUniverInstanceService as _0x55d7f7,Inject as _0x38cb3e,Injector as _0xd745ac,IConfigService as _0xc6ee4c,ICommandService as _0xda8946,RxDisposable as _0x5c1c5a,UniverInstanceType as _0x514013,DisposableCollection as _0x5f0850,CommandType as _0x6d2769,DependentOn as _0x30903f,Plugin as _0x489cd9,merge as _0x4f4f30,registerDependencies as _0x48e9cc,mergeOverrideWithDependencies as _0x125399,touchDependencies as _0x37b76a}from'@univerjs/core';import{useDependency as _0x52392f,useObservable as _0x5a8172,IUIPartsService as _0x32e609,BuiltInUIPart as _0x369a21,connectInjector as _0x3694c2}from'@univerjs/ui';import{jsx as _0x4e371e,jsxs as _0x189e02,Fragment as _0x39e573}from'react/jsx-runtime';import{Dropdown as _0x5356c3,clsx as _0x5711fc,Button as _0x273b99}from'@univerjs/design';import{forwardRef as _0xd61998,useRef as _0x5745ef,createElement as _0x3e61fb,useState as _0x45cd4e,useEffect as _0xecf48d}from'react';import{CollaborationEvent as _0x3f586a,parseProtocolChangeset as _0x59f1d4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x60984,SessionStatus as _0x669b6a,UniverCollaborationClientPlugin as _0x19eb06}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2c54c1,SetWorksheetActiveOperation as _0x344d2b}from'@univerjs/sheets';import{BehaviorSubject as _0x2909c0,Subject as _0x5b75f6}from'rxjs';import{takeUntil as _0x271d24,throttleTime as _0x3dc073}from'rxjs/operators';import{SetZoomRatioOperation as _0x395408,SetScrollOperation as _0x392bb6}from'@univerjs/sheets-ui';var c=function(){var _0x4535bc=_0x1219bd;return c=Object['assign']||function(_0x31e478){var _0x4ef92c=_0x2a3c;for(var _0x56ff19,_0x397d17=0x1,_0x233da4=arguments[_0x4ef92c(0x24b)];_0x397d17<_0x233da4;_0x397d17++){_0x56ff19=arguments[_0x397d17];for(var _0x38ef80 in _0x56ff19)Object[_0x4ef92c(0x24c)]['hasOwnProperty'][_0x4ef92c(0x28c)](_0x56ff19,_0x38ef80)&&(_0x31e478[_0x38ef80]=_0x56ff19[_0x38ef80]);}return _0x31e478;},c[_0x4535bc(0x1f1)](this,arguments);},Oe=function(_0x24dbed,_0x5e0fa5){var _0x460545=_0x1219bd,_0x457647={};for(var _0x2d06a4 in _0x24dbed)Object[_0x460545(0x24c)]['hasOwnProperty'][_0x460545(0x28c)](_0x24dbed,_0x2d06a4)&&_0x5e0fa5[_0x460545(0x233)](_0x2d06a4)<0x0&&(_0x457647[_0x2d06a4]=_0x24dbed[_0x2d06a4]);if(_0x24dbed!=null&&typeof Object[_0x460545(0x22c)]==_0x460545(0x254)){for(var _0x4d279e=0x0,_0x2d06a4=Object[_0x460545(0x22c)](_0x24dbed);_0x4d279e<_0x2d06a4[_0x460545(0x24b)];_0x4d279e++)_0x5e0fa5['indexOf'](_0x2d06a4[_0x4d279e])<0x0&&Object[_0x460545(0x24c)][_0x460545(0x213)][_0x460545(0x28c)](_0x24dbed,_0x2d06a4[_0x4d279e])&&(_0x457647[_0x2d06a4[_0x4d279e]]=_0x24dbed[_0x2d06a4[_0x4d279e]]);}return _0x457647;},W=_0xd61998(function(_0xffaa32,_0x5e6d43){var _0x1d8989=_0x1219bd,_0x2e555a=_0xffaa32[_0x1d8989(0x251)],_0x18ca4e=_0xffaa32['id'],_0x2244f1=_0xffaa32[_0x1d8989(0x291)],_0x4a474e=_0xffaa32['extend'],_0x132d38=Oe(_0xffaa32,[_0x1d8989(0x251),'id','className','extend']),_0xe083a1=_0x1d8989(0x22e)['concat'](_0x18ca4e,'\x20')[_0x1d8989(0x1f5)](_0x2244f1||'')[_0x1d8989(0x277)](),_0x2ffcdc=_0x5745ef('_'['concat'](Ne()));return Y(_0x2e555a,''[_0x1d8989(0x1f5)](_0x18ca4e),{'defIds':_0x2e555a[_0x1d8989(0x275)],'idSuffix':_0x2ffcdc[_0x1d8989(0x271)]},c({'ref':_0x5e6d43,'className':_0xe083a1},_0x132d38),_0x4a474e);});function Y(_0x25ac95,_0x4eef07,_0x508d7f,_0x3494ee,_0x4c48cd){var _0x43f3c6=_0x1219bd;return _0x3e61fb(_0x25ac95[_0x43f3c6(0x255)],c(c({'key':_0x4eef07},Ee(_0x25ac95,_0x508d7f,_0x4c48cd)),_0x3494ee),(we(_0x25ac95,_0x508d7f)[_0x43f3c6(0x240)]||[])[_0x43f3c6(0x243)](function(_0x4ec9a4,_0x570aed){var _0x164281=_0x43f3c6;return Y(_0x4ec9a4,''[_0x164281(0x1f5)](_0x4eef07,'-')['concat'](_0x25ac95[_0x164281(0x255)],'-')[_0x164281(0x1f5)](_0x570aed),_0x508d7f,void 0x0,_0x4c48cd);}));}function Ee(_0x98ad37,_0x47453a,_0x35dfe8){var _0x8a6734=_0x1219bd,_0x3ebc4b=c({},_0x98ad37[_0x8a6734(0x257)]);_0x35dfe8!=null&&_0x35dfe8[_0x8a6734(0x269)]&&_0x3ebc4b[_0x8a6734(0x23d)]===_0x8a6734(0x269)&&(_0x3ebc4b[_0x8a6734(0x23d)]=_0x35dfe8['colorChannel1']),_0x98ad37[_0x8a6734(0x255)]===_0x8a6734(0x297)&&_0x3ebc4b['id']&&(_0x3ebc4b['id']=_0x3ebc4b['id']+_0x47453a['idSuffix']),Object['entries'](_0x3ebc4b)[_0x8a6734(0x22a)](function(_0x420eac){var _0x203118=_0x8a6734,_0x16a015=_0x420eac[0x0],_0x2e4789=_0x420eac[0x1];_0x16a015===_0x203118(0x297)&&typeof _0x2e4789==_0x203118(0x290)&&(_0x3ebc4b[_0x16a015]=_0x2e4789[_0x203118(0x224)](/url\(#(.*)\)/,_0x203118(0x225)[_0x203118(0x1f5)](_0x47453a[_0x203118(0x252)],')')));});var _0x8dfd0a=_0x47453a['defIds'];return!_0x8dfd0a||_0x8dfd0a['length']===0x0||(_0x98ad37[_0x8a6734(0x255)]==='use'&&_0x3ebc4b[_0x8a6734(0x1ef)]&&(_0x3ebc4b['xlink:href']=_0x3ebc4b[_0x8a6734(0x1ef)]+_0x47453a['idSuffix']),Object[_0x8a6734(0x215)](_0x3ebc4b)[_0x8a6734(0x22a)](function(_0x1a9715){var _0x2f402e=_0x8a6734,_0x45f3d0=_0x1a9715[0x0],_0x420d96=_0x1a9715[0x1];typeof _0x420d96==_0x2f402e(0x290)&&(_0x3ebc4b[_0x45f3d0]=_0x420d96['replace'](/url\(#(.*)\)/,_0x2f402e(0x225)[_0x2f402e(0x1f5)](_0x47453a[_0x2f402e(0x252)],')')));})),_0x3ebc4b;}function we(_0x130ba5,_0xd584fa){var _0x13a57b=_0x1219bd,_0x4ae8da,_0x1722e8=_0xd584fa[_0x13a57b(0x275)];return!_0x1722e8||_0x1722e8[_0x13a57b(0x24b)]===0x0?_0x130ba5:_0x130ba5[_0x13a57b(0x255)]===_0x13a57b(0x230)&&(!((_0x4ae8da=_0x130ba5['children'])===null||_0x4ae8da===void 0x0)&&_0x4ae8da[_0x13a57b(0x24b)])?c(c({},_0x130ba5),{'children':_0x130ba5['children'][_0x13a57b(0x243)](function(_0x1702b7){var _0xa1da2b=_0x13a57b;return typeof _0x1702b7[_0xa1da2b(0x257)]['id']==_0xa1da2b(0x290)&&_0x1722e8&&_0x1722e8[_0xa1da2b(0x256)](_0x1702b7[_0xa1da2b(0x257)]['id'])?c(c({},_0x1702b7),{'attrs':c(c({},_0x1702b7[_0xa1da2b(0x257)]),{'id':_0x1702b7[_0xa1da2b(0x257)]['id']+_0xd584fa[_0xa1da2b(0x252)]})}):_0x1702b7;})}):_0x130ba5;}function Ne(){var _0x551cb2=_0x1219bd;return Math[_0x551cb2(0x209)]()[_0x551cb2(0x272)](0x24)['substring'](0x2,0x8);}W[_0x1219bd(0x21a)]='UniverIcon';var Ce={'tag':_0x1219bd(0x205),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1219bd(0x264),'viewBox':_0x1219bd(0x26a),'width':_0x1219bd(0x263),'height':_0x1219bd(0x263)},'children':[{'tag':_0x1219bd(0x241),'attrs':{'fill':_0x1219bd(0x23a),'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':_0x1219bd(0x241),'attrs':{'fill':_0x1219bd(0x23a),'d':_0x1219bd(0x1f2),'fillRule':'evenodd','clipRule':_0x1219bd(0x26c)}}]},B=_0xd61998(function(_0x2361ef,_0x4dbbd7){var _0x10f1f1=_0x1219bd;return _0x3e61fb(W,Object['assign']({},_0x2361ef,{'id':_0x10f1f1(0x1f3),'ref':_0x4dbbd7,'icon':Ce}));});B[_0x1219bd(0x21a)]=_0x1219bd(0x249);class L extends _0x42ef25{constructor(){var _0x1cad71=_0x1219bd;super(...arguments),d(this,_0x1cad71(0x1fe),new Set()),d(this,_0x1cad71(0x223),new Set());}['registerSharedOperation'](_0x1528ca){var _0x4b1b26=_0x1219bd;return this['_sharedOperations'][_0x4b1b26(0x295)](_0x1528ca),_0x3bb80b(()=>this[_0x4b1b26(0x1fe)][_0x4b1b26(0x296)](_0x1528ca));}[_0x1219bd(0x25d)](_0x23f4c0){var _0x1c5c81=_0x1219bd;return this[_0x1c5c81(0x223)][_0x1c5c81(0x295)](_0x23f4c0),_0x3bb80b(()=>this[_0x1c5c81(0x223)][_0x1c5c81(0x296)](_0x23f4c0));}['shouldShareOperation'](_0x111a1e){var _0x367151=_0x1219bd;return this[_0x367151(0x1fe)][_0x367151(0x23c)](_0x111a1e);}['getInitialStates'](_0x273a29){var _0x78d2ae=_0x1219bd;return Array[_0x78d2ae(0x1fb)](this[_0x78d2ae(0x223)])['map'](_0xc09696=>_0xc09696(_0x273a29));}}var De=Object[_0x1219bd(0x23f)],Z=(_0x586103,_0x44669f,_0x23a00b,_0x15c3d5)=>{var _0x312a4e=_0x1219bd;for(var _0x1811e9=_0x15c3d5>0x1?void 0x0:_0x15c3d5?De(_0x44669f,_0x23a00b):_0x44669f,_0x1875ec=_0x586103[_0x312a4e(0x24b)]-0x1,_0x236503;_0x1875ec>=0x0;_0x1875ec--)(_0x236503=_0x586103[_0x1875ec])&&(_0x1811e9=_0x236503(_0x1811e9)||_0x1811e9);return _0x1811e9;},f=(_0x493e9e,_0x402ef7)=>(_0x21c21a,_0x4700fc)=>_0x402ef7(_0x21c21a,_0x4700fc,_0x493e9e);let m=class extends _0x5c1c5a{constructor(_0xd1a740,_0x29669d,_0xf22560){var _0x1ffaa6=_0x1219bd;super(),d(this,'_entities',new Map()),(this[_0x1ffaa6(0x1fd)]=_0xd1a740,this[_0x1ffaa6(0x218)]=_0x29669d,this[_0x1ffaa6(0x211)]=_0xf22560,this[_0x1ffaa6(0x287)]());}async[_0x1219bd(0x1f8)](_0x47aec7){var _0x2c6dd7=_0x1219bd;return this[_0x2c6dd7(0x28a)][_0x2c6dd7(0x23c)](_0x47aec7)||await this[_0x2c6dd7(0x25e)](_0x47aec7),this[_0x2c6dd7(0x28a)][_0x2c6dd7(0x201)](_0x47aec7);}['_init'](){var _0x54e57a=_0x1219bd;this[_0x54e57a(0x1fd)][_0x54e57a(0x281)](_0x514013['UNIVER_SHEET'])['pipe'](_0x271d24(this['dispose$']))[_0x54e57a(0x231)](async _0x558c11=>{var _0x583c2d=_0x54e57a;const _0x28e94b=_0x558c11[_0x583c2d(0x28f)]();this[_0x583c2d(0x28a)][_0x583c2d(0x23c)](_0x28e94b)||this['_startLiveShareCoordinator'](_0x28e94b);}),this[_0x54e57a(0x1fd)][_0x54e57a(0x266)](_0x514013[_0x54e57a(0x21c)])[_0x54e57a(0x27a)](_0x271d24(this['dispose$']))[_0x54e57a(0x231)](_0x99d520=>{var _0xa3b923=_0x54e57a;const _0x534e4d=_0x99d520[_0xa3b923(0x28f)](),_0x48c558=this[_0xa3b923(0x28a)][_0xa3b923(0x201)](_0x534e4d);_0x48c558==null||_0x48c558[_0xa3b923(0x1f4)]();});}async['_startLiveShareCoordinator'](_0x4292a4){var _0x23692e=_0x1219bd;const _0xa35197=await this['_collabSessionService'][_0x23692e(0x212)](_0x4292a4),_0xfb1fbb=this[_0x23692e(0x218)][_0x23692e(0x274)](C,_0x4292a4,_0xa35197);return _0xfb1fbb[_0x23692e(0x294)](),this[_0x23692e(0x28a)]['set'](_0x4292a4,_0xfb1fbb),_0xfb1fbb;}};m=Z([f(0x0,_0x55d7f7),f(0x1,_0x38cb3e(_0xd745ac)),f(0x2,_0x38cb3e(_0x60984))],m);var h=(_0x12e4aa=>(_0x12e4aa[_0x1219bd(0x22f)]=_0x1219bd(0x262),_0x12e4aa[_0x1219bd(0x25b)]=_0x1219bd(0x200),_0x12e4aa[_0x1219bd(0x273)]=_0x1219bd(0x21e),_0x12e4aa[_0x1219bd(0x24d)]=_0x1219bd(0x253),_0x12e4aa[_0x1219bd(0x217)]='presenting',_0x12e4aa))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x5c1c5a{constructor(_0x4d5b47,_0x405df6,_0x19f36b,_0x52d8b2,_0x2815b9){var _0x3a4006=_0x1219bd;super(),d(this,'_status$',new _0x2909c0('idle')),d(this,'status$',this[_0x3a4006(0x283)][_0x3a4006(0x220)]()),d(this,'_init',!0x1),d(this,_0x3a4006(0x299),null),d(this,_0x3a4006(0x1ee),null),(this[_0x3a4006(0x247)]=_0x4d5b47,this['_collabSession']=_0x405df6,this[_0x3a4006(0x214)]=_0x19f36b,this[_0x3a4006(0x280)]=_0x52d8b2,this[_0x3a4006(0x29f)]=_0x2815b9);}get[_0x1219bd(0x298)](){var _0x4ac353=_0x1219bd;return this[_0x4ac353(0x283)][_0x4ac353(0x235)]();}[_0x1219bd(0x1f4)](){var _0x3cbd1d=_0x1219bd,_0x5a569b;(_0x5a569b=this[_0x3cbd1d(0x299)])==null||_0x5a569b['dispose'](),this[_0x3cbd1d(0x283)][_0x3cbd1d(0x265)](_0x3cbd1d(0x200)),this['_status$']['complete']();}[_0x1219bd(0x294)](){var _0xab65f2=_0x1219bd;this['_init']||(this['_init']=!0x0,this[_0xab65f2(0x227)][_0xab65f2(0x25a)][_0xab65f2(0x27a)](_0x271d24(this['dispose$']))[_0xab65f2(0x231)](_0x5d99e1=>{var _0x5b3a23=_0xab65f2;switch(_0x5d99e1){case _0x669b6a[_0x5b3a23(0x22f)]:this['_handleOffline']();break;case _0x669b6a[_0x5b3a23(0x250)]:this[_0x5b3a23(0x259)]();break;}}),this['_collabSession'][_0xab65f2(0x22b)]['pipe'](_0x271d24(this[_0xab65f2(0x202)]))[_0xab65f2(0x231)](_0x2f4177=>{var _0x459d9f=_0xab65f2;const {eventID:_0x223469}=_0x2f4177;switch(_0x223469){case _0x3f586a['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2f4177);break;case _0x3f586a[_0x459d9f(0x20b)]:this[_0x459d9f(0x206)](_0x2f4177);break;case _0x3f586a['LIVESHARE_TERMINATE']:this[_0x459d9f(0x279)]();break;case _0x3f586a[_0x459d9f(0x22d)]:this['_handleNewChangeSets'](_0x2f4177);break;}}));}[_0x1219bd(0x222)](){var _0x27097c=_0x1219bd;this['_collabSession'][_0x27097c(0x219)]({'eventID':_0x3f586a[_0x27097c(0x26d)],'data':{'unitID':this[_0x27097c(0x247)],'userID':this[_0x27097c(0x227)]['getMemberID']()}},this[_0x27097c(0x247)]);}['stopPresenting'](){var _0x1dbc4f=_0x1219bd;this[_0x1dbc4f(0x298)]===_0x1dbc4f(0x20d)&&(this[_0x1dbc4f(0x283)]['next'](_0x1dbc4f(0x200)),this['_collabSession'][_0x1dbc4f(0x219)]({'eventID':_0x3f586a[_0x1dbc4f(0x29c)],'data':{'unitID':this[_0x1dbc4f(0x247)]}},this[_0x1dbc4f(0x247)]));}[_0x1219bd(0x1ff)](){var _0x515ff0=_0x1219bd;this[_0x515ff0(0x298)]==='not-following'&&(this[_0x515ff0(0x283)][_0x515ff0(0x265)](_0x515ff0(0x21e)),this[_0x515ff0(0x258)]());}[_0x1219bd(0x29a)](){var _0x51feeb=_0x1219bd;this[_0x51feeb(0x298)]===_0x51feeb(0x21e)&&this[_0x51feeb(0x1f6)]();}['_handleNewHost'](_0x1be1e1){var _0x204dfc=_0x1219bd;const {presenter:_0x5de8fe}=_0x1be1e1[_0x204dfc(0x289)],_0x4da62f=this[_0x204dfc(0x227)][_0x204dfc(0x268)]();this['_presenter']=_0x5de8fe,_0x5de8fe===_0x4da62f?(this[_0x204dfc(0x1f6)](),this[_0x204dfc(0x2a2)]()):this[_0x204dfc(0x298)]!==_0x204dfc(0x253)&&(this[_0x204dfc(0x229)](),this[_0x204dfc(0x258)]());}[_0x1219bd(0x29e)](){var _0x3f54eb=_0x1219bd;const _0x597034={'eventID':_0x3f586a[_0x3f54eb(0x1f9)]};this[_0x3f54eb(0x227)]['send'](_0x597034,this[_0x3f54eb(0x247)]);}[_0x1219bd(0x279)](){var _0x5de5be=_0x1219bd;this[_0x5de5be(0x1ee)]=null,this['_status']!==_0x5de5be(0x20d)&&this[_0x5de5be(0x210)]();}[_0x1219bd(0x23b)](_0x4f41ea){var _0x45dc62=_0x1219bd;if(this['_status']===_0x45dc62(0x21e)&&this[_0x45dc62(0x1ee)]===_0x4f41ea['data'][_0x45dc62(0x238)]){const _0x48536d=_0x59f1d4(_0x4f41ea[_0x45dc62(0x289)])[_0x45dc62(0x25f)][_0x45dc62(0x203)]()[_0x45dc62(0x27f)](_0x47c5c6=>_0x47c5c6['id']===_0x2c54c1['id']);if(_0x48536d){const _0x3c1370=_0x48536d[_0x45dc62(0x207)][_0x45dc62(0x28b)],_0x185a7a=_0x48536d[_0x45dc62(0x207)][_0x45dc62(0x21b)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x344d2b['id'],{'unitId':_0x3c1370,'subUnitId':_0x185a7a},{'fromCollab':!0x0});});}}}[_0x1219bd(0x2a2)](){var _0x5f2793=_0x1219bd;this['_status$'][_0x5f2793(0x265)](_0x5f2793(0x20d));const _0x2b905a=new Map(),_0x8248e2=this[_0x5f2793(0x299)]=new _0x5f0850();_0x8248e2['add'](_0x3bb80b(()=>{var _0x449cdf=_0x5f2793;_0x2b905a[_0x449cdf(0x22a)](_0x3a3a4f=>_0x3a3a4f[_0x449cdf(0x284)]()),_0x2b905a['clear']();})),_0x8248e2['add'](this[_0x5f2793(0x29f)]['onCommandExecuted'](_0x1cb88f=>{var _0x13a9c8=_0x5f2793,_0x22b1db;if(_0x1cb88f[_0x13a9c8(0x25c)]!==_0x6d2769[_0x13a9c8(0x232)]||!this[_0x13a9c8(0x280)][_0x13a9c8(0x285)](_0x1cb88f['id']))return;const {id:_0x455b5b}=_0x1cb88f;let _0x47f007;_0x2b905a['has'](_0x455b5b)?_0x47f007=_0x2b905a[_0x13a9c8(0x201)](_0x455b5b):(_0x47f007=new _0x5b75f6(),_0x2b905a[_0x13a9c8(0x21d)](_0x455b5b,_0x47f007),_0x47f007[_0x13a9c8(0x27a)](_0x3dc073((_0x22b1db=this[_0x13a9c8(0x214)][_0x13a9c8(0x208)](xe))!=null?_0x22b1db:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13a9c8(0x231)](_0x166201=>{var _0x29b92e=_0x13a9c8;this[_0x29b92e(0x227)][_0x29b92e(0x219)]({'eventID':_0x3f586a[_0x29b92e(0x20b)],'data':{'unitID':this[_0x29b92e(0x247)],'operations':{[_0x166201['id']]:{'id':_0x166201['id'],'params':JSON[_0x29b92e(0x286)](_0x166201[_0x29b92e(0x207)])}}}},this[_0x29b92e(0x247)]);})),_0x47f007[_0x13a9c8(0x265)](_0x1cb88f);})),this[_0x5f2793(0x280)][_0x5f2793(0x260)](this[_0x5f2793(0x247)])[_0x5f2793(0x22a)](_0x2a4cb5=>this[_0x5f2793(0x227)][_0x5f2793(0x219)]({'eventID':_0x3f586a[_0x5f2793(0x20b)],'data':{'unitID':this[_0x5f2793(0x247)],'operations':{[_0x2a4cb5['id']]:{'id':_0x2a4cb5['id'],'params':JSON[_0x5f2793(0x286)](_0x2a4cb5[_0x5f2793(0x207)])}}}},this['_unitID']));}[_0x1219bd(0x229)](){var _0x2df509=_0x1219bd,_0x563b71;this[_0x2df509(0x283)]['next']('idle'),(_0x563b71=this[_0x2df509(0x299)])==null||_0x563b71[_0x2df509(0x1f4)](),this[_0x2df509(0x299)]=null;}['_startFollowing'](){var _0x29fce4=_0x1219bd,_0x8c89de;(_0x8c89de=this[_0x29fce4(0x299)])==null||_0x8c89de[_0x29fce4(0x1f4)](),this[_0x29fce4(0x283)]['next'](_0x29fce4(0x21e));}['_beIdle'](){var _0x438a16=_0x1219bd,_0x5da5b6;this[_0x438a16(0x283)][_0x438a16(0x265)](_0x438a16(0x200)),(_0x5da5b6=this[_0x438a16(0x299)])==null||_0x5da5b6[_0x438a16(0x1f4)](),this[_0x438a16(0x299)]=null;}[_0x1219bd(0x1f6)](){var _0x2eda28=_0x1219bd,_0x1809ad;this[_0x2eda28(0x283)]['next'](_0x2eda28(0x253)),(_0x1809ad=this['_commandDisposable'])==null||_0x1809ad['dispose']();}['_handleOperation'](_0x18a147){var _0x58b568=_0x1219bd;if([_0x58b568(0x20d),_0x58b568(0x253),_0x58b568(0x262)][_0x58b568(0x256)](this[_0x58b568(0x298)])||!_0x18a147[_0x58b568(0x289)][_0x58b568(0x27d)]||_0x18a147['data'][_0x58b568(0x27d)]===this[_0x58b568(0x227)]['getMemberID']())return;this[_0x58b568(0x298)]==='idle'&&this[_0x58b568(0x258)]();const _0x1d7613=_0x18a147[_0x58b568(0x289)][_0x58b568(0x292)];Object['values'](_0x1d7613)[_0x58b568(0x22a)](_0x763d8f=>{var _0x3a113c=_0x58b568;this['_commandService'][_0x3a113c(0x24e)](_0x763d8f['id'],_0x763d8f['params']?JSON[_0x3a113c(0x23e)](_0x763d8f[_0x3a113c(0x207)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3a7071=_0x1219bd,_0x418b0c;this['_status$']['next'](_0x3a7071(0x262)),(_0x418b0c=this[_0x3a7071(0x299)])==null||_0x418b0c[_0x3a7071(0x1f4)]();}['_handleOnline'](){var _0x3c410a=_0x1219bd;this[_0x3c410a(0x283)][_0x3c410a(0x265)](_0x3c410a(0x200)),this[_0x3c410a(0x29e)]();}};C=Z([f(0x2,_0xc6ee4c),f(0x3,_0x38cb3e(L)),f(0x4,_0xda8946)],C);function ye(){var _0x3e448f=_0x1219bd;const _0x2e423d=_0x52392f(m),_0x2a419e=_0x52392f(_0x55d7f7),_0x4e0682=_0x5a8172(()=>_0x2a419e[_0x3e448f(0x27b)](_0x514013[_0x3e448f(0x21c)]),void 0x0,!0x1,[]),[_0x45fe71,_0x52726d]=_0x45cd4e(null),[_0x4de0a5,_0xa8798b]=_0x45cd4e(h['IDLE']),_0x4df9ae=_0x5745ef(null);return _0xecf48d(()=>(_0x4e0682&&_0x2e423d[_0x3e448f(0x1f8)](_0x4e0682['getUnitId']())[_0x3e448f(0x239)](_0x336f05=>{var _0x11f2d1=_0x3e448f;_0x52726d(_0x336f05),_0x4df9ae[_0x11f2d1(0x271)]=_0x336f05[_0x11f2d1(0x20f)][_0x11f2d1(0x231)](_0x4467af=>{_0xa8798b(_0x4467af);});}),()=>{var _0x29eb08=_0x3e448f,_0x13e210;(_0x13e210=_0x4df9ae[_0x29eb08(0x271)])==null||_0x13e210[_0x29eb08(0x245)](),_0x4df9ae[_0x29eb08(0x271)]=null;}),[_0x4e0682,_0x2e423d]),_0x45fe71?_0x4e371e(_0x5356c3,{'align':_0x3e448f(0x234),'disabled':_0x4de0a5===h[_0x3e448f(0x22f)],'className':_0x3e448f(0x27c),'overlay':_0x4e371e(Re,{'status':_0x4de0a5,'coordinator':_0x45fe71}),'children':_0x4e371e(_0x3e448f(0x26e),{'className':_0x5711fc(_0x3e448f(0x29d),{'univer-cursor-not-allowed':_0x4de0a5===h[_0x3e448f(0x22f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4de0a5!==h[_0x3e448f(0x22f)]}),'type':'button','children':_0x4e371e(B,{'className':_0x3e448f(0x26f)})})}):null;}function Re(_0x143958){var _0x5f4b56=_0x1219bd;const {status:_0x4c1257,coordinator:_0x189e49}=_0x143958;switch(_0x4c1257){case h[_0x5f4b56(0x25b)]:return _0x4e371e(Pe,{'coordinator':_0x189e49});case h[_0x5f4b56(0x273)]:return _0x4e371e(Ae,{'coordinator':_0x189e49});case h[_0x5f4b56(0x24d)]:return _0x4e371e(Te,{'coordinator':_0x189e49});case h[_0x5f4b56(0x22f)]:return _0x4e371e(Fe,{});case h[_0x5f4b56(0x217)]:return _0x4e371e($e,{'coordinator':_0x189e49});default:return null;}}function Pe(_0x259610){var _0x1042e4=_0x1219bd;const {coordinator:_0x2f6a26}=_0x259610;return _0x189e02(_0x39e573,{'children':[_0x4e371e(_0x1042e4(0x2a3),{'className':_0x1042e4(0x267),'children':_0x1042e4(0x28d)}),_0x4e371e(_0x273b99,{'onClick':()=>_0x2f6a26[_0x1042e4(0x222)](),'children':_0x1042e4(0x1fa)})]});}function Ae(_0x4e0cbe){var _0x24d783=_0x1219bd;const {coordinator:_0x34a911}=_0x4e0cbe;return _0x189e02(_0x39e573,{'children':[_0x4e371e(_0x24d783(0x2a3),{'className':_0x24d783(0x267),'children':_0x24d783(0x204)}),_0x4e371e(_0x273b99,{'onClick':()=>_0x34a911[_0x24d783(0x29a)](),'children':_0x24d783(0x24f)})]});}function Te(_0x2ee390){var _0x3a8ded=_0x1219bd;const {coordinator:_0x47639d}=_0x2ee390;return _0x189e02(_0x39e573,{'children':[_0x4e371e(_0x3a8ded(0x2a3),{'className':_0x3a8ded(0x267),'children':_0x3a8ded(0x2a1)}),_0x4e371e(_0x273b99,{'variant':_0x3a8ded(0x278),'onClick':()=>_0x47639d['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x3a11f4){var _0x161d8f=_0x1219bd;const {coordinator:_0x7e2038}=_0x3a11f4;return _0x189e02(_0x39e573,{'children':[_0x4e371e('div',{'className':_0x161d8f(0x267),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e371e(_0x273b99,{'variant':'default','onClick':()=>_0x7e2038[_0x161d8f(0x293)](),'children':_0x161d8f(0x26b)})]});}function _0x4ade(){var _0x45f6ce=['Stop\x20following','ONLINE','icon','idSuffix','not-following','function','tag','includes','attrs','_startFollowing','_handleOnline','sessionStatus$','IDLE','type','registerInitialStateReporter','_startLiveShareCoordinator','mutations','getInitialStates','_mountLiveShare','offline','1em','none','next','getTypeOfUnitDisposed$','univer-mb-3\x20univer-w-full\x20univer-text-sm','getMemberID','colorChannel1','0\x200\x2017\x2017','Stop\x20presenting','evenodd','LIVESHARE_REQUEST_HOST','button','univer-size-4','54252HkphLv','current','toString','FOLLOWING','createInstance','defIds','1880904EFDHou','trim','text','_handleTerminate','pipe','getCurrentTypeOfUnit$','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','presenter','770305GUtGWi','find','_liveShareService','getTypeOfUnitAdded$','registerComponent','_status$','complete','shouldShareOperation','stringify','_init','setConfig','data','_entities','unitId','call','Present\x20this\x20document','563308WPFegY','getUnitId','string','className','operations','stopPresenting','init','add','delete','mask','_status','_commandDisposable','stopFollowing','pluginName','LIVESHARE_TERMINATE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_fetchOperations','_commandService','4703755DXgbje','You\x27re\x20not\x20following\x20the\x20presenter','_startPresenting','div','_presenter','xlink:href','10GgXiXN','apply','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','live-share-icon','dispose','concat','_stopFollowing','1951xIgPuH','getLiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','Start','from','_config','_univerInstanceService','_sharedOperations','startFollowing','idle','get','dispose$','reverse','You\x27re\x20following\x20the\x20presenter','svg','_handleOperation','params','getConfig','random','defineProperty','LIVESHARE_OPERATION','live-share.config','presenting','136SPUoMQ','status$','_beIdle','_collabSessionService','requireSession','propertyIsEnumerable','_configService','entries','override','PRESENTING','_injector','send','displayName','sheet','UNIVER_SHEET','set','following','398tAwAqc','asObservable','disposeWithMe','tryStartPresenting','_reporters','replace','url(#$1','HEADER_MENU','_collabSession','onStarting','_stopPresenting','forEach','event$','getOwnPropertySymbols','NEW_CHANGESETS','univerjs-icon\x20univerjs-icon-','OFFLINE','defs','subscribe','OPERATION','indexOf','end','getValue','registerSharedOperation','symbol','memberID','then','currentColor','_handleNewChangeSets','has','fill','parse','getOwnPropertyDescriptor','children','path','onRendered','map','UNIVER_LIVE_SHARE_PLUGIN','unsubscribe','6wepbaq','_unitID','249117bBvlcm','LiveShareIcon','_uiPartsService','length','prototype','NOT_FOLLOWING','executeCommand'];_0x4ade=function(){return _0x45f6ce;};return _0x4ade();}function Fe(){return _0x4e371e(_0x39e573,{'children':'You\x27are\x20offline.'});}var He=Object[_0x1219bd(0x23f)],je=(_0x3b4d52,_0x595be3,_0x4f0d6a,_0x1cfa0c)=>{var _0x741a17=_0x1219bd;for(var _0x1e3d8b=_0x1cfa0c>0x1?void 0x0:_0x1cfa0c?He(_0x595be3,_0x4f0d6a):_0x595be3,_0x2f3f9a=_0x3b4d52[_0x741a17(0x24b)]-0x1,_0x42433f;_0x2f3f9a>=0x0;_0x2f3f9a--)(_0x42433f=_0x3b4d52[_0x2f3f9a])&&(_0x1e3d8b=_0x42433f(_0x1e3d8b)||_0x1e3d8b);return _0x1e3d8b;},T=(_0x61ed18,_0xb577fb)=>(_0x2dfa6b,_0x589c1d)=>_0xb577fb(_0x2dfa6b,_0x589c1d,_0x61ed18);let I=class extends _0x42ef25{constructor(_0x2a49fb,_0x5f22ce){var _0x4771ed=_0x1219bd;super(),this[_0x4771ed(0x218)]=_0x2a49fb,this[_0x4771ed(0x24a)]=_0x5f22ce,this[_0x4771ed(0x261)]();}['_mountLiveShare'](){var _0x3b063e=_0x1219bd;this[_0x3b063e(0x221)](this[_0x3b063e(0x24a)][_0x3b063e(0x282)](_0x369a21[_0x3b063e(0x226)],()=>_0x3694c2(ye,this[_0x3b063e(0x218)])));}};I=je([T(0x0,_0x38cb3e(_0xd745ac)),T(0x1,_0x32e609)],I);const Ue=_0x1219bd(0x20c),$={};var Ve=Object[_0x1219bd(0x23f)],Me=(_0x25192c,_0x4b3d61,_0x2eafbf,_0xa3d277)=>{for(var _0x5bbaa9=_0xa3d277>0x1?void 0x0:_0xa3d277?Ve(_0x4b3d61,_0x2eafbf):_0x4b3d61,_0x500698=_0x25192c['length']-0x1,_0x3d00e9;_0x500698>=0x0;_0x500698--)(_0x3d00e9=_0x25192c[_0x500698])&&(_0x5bbaa9=_0x3d00e9(_0x5bbaa9)||_0x5bbaa9);return _0x5bbaa9;},ke=(_0x16c1e6,_0x2c631e)=>(_0x3093d5,_0x57d11c)=>_0x2c631e(_0x3093d5,_0x57d11c,_0x16c1e6);let b=class extends _0x42ef25{constructor(_0x1783a6){var _0x55ce4f=_0x1219bd;super(),this[_0x55ce4f(0x280)]=_0x1783a6,this[_0x55ce4f(0x287)]();}['_init'](){[_0x395408['id'],_0x392bb6['id'],_0x344d2b['id']]['forEach'](_0x398b67=>{var _0x233c1b=_0x2a3c;this[_0x233c1b(0x221)](this[_0x233c1b(0x280)][_0x233c1b(0x236)](_0x398b67));});}};b=Me([ke(0x0,_0x38cb3e(L))],b);var Ge=Object[_0x1219bd(0x20a)],We=Object[_0x1219bd(0x23f)],Ye=(_0x4a0bb3,_0xca67ab,_0x392af7)=>_0xca67ab in _0x4a0bb3?Ge(_0x4a0bb3,_0xca67ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x392af7}):_0x4a0bb3[_0xca67ab]=_0x392af7,Be=(_0x310501,_0x1006be,_0xdb7480,_0x413d2b)=>{var _0x48a4ef=_0x1219bd;for(var _0x339c97=_0x413d2b>0x1?void 0x0:_0x413d2b?We(_0x1006be,_0xdb7480):_0x1006be,_0x44a9b3=_0x310501[_0x48a4ef(0x24b)]-0x1,_0x665418;_0x44a9b3>=0x0;_0x44a9b3--)(_0x665418=_0x310501[_0x44a9b3])&&(_0x339c97=_0x665418(_0x339c97)||_0x339c97);return _0x339c97;},F=(_0x5dfdc8,_0x1b34c6)=>(_0xdf58ef,_0x5acc0b)=>_0x1b34c6(_0xdf58ef,_0x5acc0b,_0x5dfdc8),J=(_0x8ebe37,_0x2fc0fd,_0x9091dc)=>Ye(_0x8ebe37,typeof _0x2fc0fd!=_0x1219bd(0x237)?_0x2fc0fd+'':_0x2fc0fd,_0x9091dc);const Ze=_0x1219bd(0x244);function _0x2a3c(_0x1734ff,_0x5d0b35){var _0x4ade3f=_0x4ade();return _0x2a3c=function(_0x2a3c7c,_0x1b6cef){_0x2a3c7c=_0x2a3c7c-0x1ee;var _0x1f08ce=_0x4ade3f[_0x2a3c7c];return _0x1f08ce;},_0x2a3c(_0x1734ff,_0x5d0b35);}let O=class extends _0x489cd9{constructor(_0x31f829=$,_0x2cd3ba,_0x229ace){var _0x3da53d=_0x1219bd;super(),this[_0x3da53d(0x1fc)]=_0x31f829,this[_0x3da53d(0x218)]=_0x2cd3ba,this[_0x3da53d(0x214)]=_0x229ace;const {..._0x40ed21}=_0x4f4f30({},$,this[_0x3da53d(0x1fc)]);this[_0x3da53d(0x214)][_0x3da53d(0x288)](Ue,_0x40ed21);}[_0x1219bd(0x228)](){var _0x153fc5=_0x1219bd;_0x48e9cc(this['_injector'],_0x125399([[L],[m],[b],[I]],this[_0x153fc5(0x1fc)][_0x153fc5(0x216)])),_0x37b76a(this['_injector'],[[b]]);}[_0x1219bd(0x242)](){_0x37b76a(this['_injector'],[[I]]);}};J(O,'type',_0x514013['UNIVER_UNKNOWN']),J(O,_0x1219bd(0x29b),Ze),O=Be([_0x30903f(_0x19eb06),F(0x1,_0x38cb3e(_0xd745ac)),F(0x2,_0xc6ee4c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x4211e9=_0x2067;(function(_0x5ccfc4,_0x3a9fbf){var _0x3257b2=_0x2067,_0x24c117=_0x5ccfc4();while(!![]){try{var _0x3b0903=parseInt(_0x3257b2(0x1c6))/0x1+parseInt(_0x3257b2(0x1eb))/0x2*(parseInt(_0x3257b2(0x1dc))/0x3)+-parseInt(_0x3257b2(0x1c7))/0x4*(-parseInt(_0x3257b2(0x232))/0x5)+parseInt(_0x3257b2(0x219))/0x6*(parseInt(_0x3257b2(0x1f3))/0x7)+-parseInt(_0x3257b2(0x1c2))/0x8*(-parseInt(_0x3257b2(0x1b1))/0x9)+parseInt(_0x3257b2(0x1e1))/0xa*(parseInt(_0x3257b2(0x1e7))/0xb)+-parseInt(_0x3257b2(0x1f7))/0xc*(parseInt(_0x3257b2(0x218))/0xd);if(_0x3b0903===_0x3a9fbf)break;else _0x24c117['push'](_0x24c117['shift']());}catch(_0x565eed){_0x24c117['push'](_0x24c117['shift']());}}}(_0x2983,0x55bb9));var q=Object[_0x4211e9(0x1a5)],z=(_0x147563,_0x35a5bf,_0x2c4d3e)=>_0x35a5bf in _0x147563?q(_0x147563,_0x35a5bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c4d3e}):_0x147563[_0x35a5bf]=_0x2c4d3e,d=(_0x258ffe,_0x4a2a0a,_0x5675f0)=>z(_0x258ffe,typeof _0x4a2a0a!=_0x4211e9(0x207)?_0x4a2a0a+'':_0x4a2a0a,_0x5675f0);import{Disposable as _0x4178b,toDisposable as _0x1905e1,IUniverInstanceService as _0x4e4916,Inject as _0x29823e,Injector as _0x4cbc28,IConfigService as _0x454454,ICommandService as _0x1f59fb,RxDisposable as _0x11260a,UniverInstanceType as _0x2e04d5,DisposableCollection as _0x30a3f7,CommandType as _0x3ef350,DependentOn as _0x462562,Plugin as _0x119c72,merge as _0x147e1f,registerDependencies as _0x16e757,mergeOverrideWithDependencies as _0x3cdfd6,touchDependencies as _0x108acc}from'@univerjs/core';import{useDependency as _0x34ce29,useObservable as _0x5eb324,IUIPartsService as _0x4b1b8f,BuiltInUIPart as _0x37ef0c,connectInjector as _0x36c2e2}from'@univerjs/ui';import{jsx as _0x478ffe,jsxs as _0x15f696,Fragment as _0xc7295}from'react/jsx-runtime';import{Dropdown as _0x3ee376,clsx as _0x3fe52f,Button as _0x2ec823}from'@univerjs/design';import{forwardRef as _0x5f09eb,useRef as _0x4b76f7,createElement as _0x4cd375,useState as _0x56e9c1,useEffect as _0x5005fd}from'react';import{CollaborationEvent as _0x5c2773,parseProtocolChangeset as _0x8769f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x11bb65,SessionStatus as _0x839685,UniverCollaborationClientPlugin as _0x7fa5df}from'@univerjs-pro/collaboration-client';function _0x2067(_0x31d6ac,_0x15ee94){var _0x298359=_0x2983();return _0x2067=function(_0x20678f,_0x28563c){_0x20678f=_0x20678f-0x189;var _0x2d6af7=_0x298359[_0x20678f];return _0x2d6af7;},_0x2067(_0x31d6ac,_0x15ee94);}import{InsertSheetMutation as _0x20e50f,SetWorksheetActiveOperation as _0x304fe7}from'@univerjs/sheets';function _0x2983(){var _0x1c9061=['_entities','currentColor','call','getOwnPropertyDescriptor','LiveShareIcon','attrs','onRendered','HEADER_MENU','disposeWithMe','svg','text','executeCommand','getLiveShareCoordinator','pipe','dispose$','38856dIMQQd','has','_stopPresenting','defs','484967vURxfJ','283708CJZbsV','LIVESHARE_TERMINATE','xlink:href','apply','Start','defIds','LIVESHARE_FETCH_OPERATIONS','forEach','get','getValue','substring','_presenter','_uiPartsService','registerInitialStateReporter','asObservable','registerComponent','unitId','use','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startLiveShareCoordinator','startFollowing','662034HHyrgZ','icon','idle','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','_injector','510mNvbOF','displayName','_configService','onStarting','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','61149pHZkLE','_handleOnline','_startFollowing','You\x27are\x20offline.','2RJDogU','operations','button','init','indexOf','NOT_FOLLOWING','_collabSession','current','4921bQarlL','getTypeOfUnitAdded$','assign','_config','12APdqIF','params','send','UNIVER_SHEET','add','status$','univerjs-icon\x20univerjs-icon-','_univerInstanceService','_beIdle','Stop\x20following','url(#$1','not-following','offline','fill','_startPresenting','className','symbol','default','stopPresenting','_commandService','PRESENTING','IDLE','_mountLiveShare','shouldShareOperation','live-share.config','_collabSessionService','hasOwnProperty','function','getOwnPropertySymbols','_stopFollowing','Present\x20this\x20document','tryStartPresenting','UNIVER_UNKNOWN','20508371gwHlUD','366NiyjBD','parse','includes','pluginName','_commandDisposable','prototype','find','delete','path','subscribe','_status$','_unitID','mutations','toString','getInitialStates','length','1em','colorChannel1','children','getMemberID','_handleTerminate','getTypeOfUnitDisposed$','getUnitId','_sharedOperations','from','30GqhXQB','map','registerSharedOperation','string','0\x200\x2017\x2017','_status','UniverIcon','_liveShareService','idSuffix','type','stringify','_fetchOperations','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','set','tag','entries','Start\x20following','_handleOffline','sheet','_init','presenter','none','ONLINE','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewHost','setConfig','complete','next','live-share-icon','You\x27re\x20presenting\x20the\x20document','presenting','div','_reporters','data','mask','univer-size-4','defineProperty','requireSession','OFFLINE','following','extend','stopFollowing','dispose','evenodd','concat','_handleOperation','LIVESHARE_REQUEST_HOST','sessionStatus$','873gRREoF','replace'];_0x2983=function(){return _0x1c9061;};return _0x2983();}import{BehaviorSubject as _0x31bb01,Subject as _0x4c84d6}from'rxjs';import{takeUntil as _0x574d5e,throttleTime as _0xee6e22}from'rxjs/operators';import{SetZoomRatioOperation as _0x4df299,SetScrollOperation as _0x346916}from'@univerjs/sheets-ui';var c=function(){var _0xaee1da=_0x4211e9;return c=Object['assign']||function(_0x40073c){var _0x41c284=_0x2067;for(var _0x582e04,_0x4e0114=0x1,_0x4a4f60=arguments[_0x41c284(0x228)];_0x4e0114<_0x4a4f60;_0x4e0114++){_0x582e04=arguments[_0x4e0114];for(var _0x409337 in _0x582e04)Object['prototype'][_0x41c284(0x211)][_0x41c284(0x1b5)](_0x582e04,_0x409337)&&(_0x40073c[_0x409337]=_0x582e04[_0x409337]);}return _0x40073c;},c[_0xaee1da(0x1ca)](this,arguments);},Oe=function(_0x3ef6e9,_0x177a3b){var _0x3e9fb3=_0x4211e9,_0x591dd9={};for(var _0x48530e in _0x3ef6e9)Object[_0x3e9fb3(0x21e)][_0x3e9fb3(0x211)][_0x3e9fb3(0x1b5)](_0x3ef6e9,_0x48530e)&&_0x177a3b[_0x3e9fb3(0x1ef)](_0x48530e)<0x0&&(_0x591dd9[_0x48530e]=_0x3ef6e9[_0x48530e]);if(_0x3ef6e9!=null&&typeof Object['getOwnPropertySymbols']==_0x3e9fb3(0x212)){for(var _0x13f473=0x0,_0x48530e=Object[_0x3e9fb3(0x213)](_0x3ef6e9);_0x13f473<_0x48530e[_0x3e9fb3(0x228)];_0x13f473++)_0x177a3b[_0x3e9fb3(0x1ef)](_0x48530e[_0x13f473])<0x0&&Object[_0x3e9fb3(0x21e)]['propertyIsEnumerable'][_0x3e9fb3(0x1b5)](_0x3ef6e9,_0x48530e[_0x13f473])&&(_0x591dd9[_0x48530e[_0x13f473]]=_0x3ef6e9[_0x48530e[_0x13f473]]);}return _0x591dd9;},W=_0x5f09eb(function(_0x5282cf,_0x4d8f54){var _0x39947d=_0x4211e9,_0xb26294=_0x5282cf['icon'],_0xc08dee=_0x5282cf['id'],_0x1821ed=_0x5282cf[_0x39947d(0x206)],_0x18ad76=_0x5282cf[_0x39947d(0x1a9)],_0x3d3063=Oe(_0x5282cf,[_0x39947d(0x1dd),'id',_0x39947d(0x206),_0x39947d(0x1a9)]),_0x331293=_0x39947d(0x1fd)[_0x39947d(0x1ad)](_0xc08dee,'\x20')[_0x39947d(0x1ad)](_0x1821ed||'')['trim'](),_0x596dbb=_0x4b76f7('_'['concat'](Ne()));return Y(_0xb26294,''['concat'](_0xc08dee),{'defIds':_0xb26294['defIds'],'idSuffix':_0x596dbb[_0x39947d(0x1f2)]},c({'ref':_0x4d8f54,'className':_0x331293},_0x3d3063),_0x18ad76);});function Y(_0x50e184,_0x1b46af,_0x12cf7a,_0xe0db3,_0x24f22c){var _0x218725=_0x4211e9;return _0x4cd375(_0x50e184['tag'],c(c({'key':_0x1b46af},Ee(_0x50e184,_0x12cf7a,_0x24f22c)),_0xe0db3),(we(_0x50e184,_0x12cf7a)[_0x218725(0x22b)]||[])[_0x218725(0x233)](function(_0x4805eb,_0x2477d1){var _0x4edaa0=_0x218725;return Y(_0x4805eb,''[_0x4edaa0(0x1ad)](_0x1b46af,'-')[_0x4edaa0(0x1ad)](_0x50e184[_0x4edaa0(0x18e)],'-')[_0x4edaa0(0x1ad)](_0x2477d1),_0x12cf7a,void 0x0,_0x24f22c);}));}function Ee(_0x55fab8,_0x33fce0,_0x19fa4a){var _0x47263e=_0x4211e9,_0x412574=c({},_0x55fab8[_0x47263e(0x1b8)]);_0x19fa4a!=null&&_0x19fa4a['colorChannel1']&&_0x412574[_0x47263e(0x204)]===_0x47263e(0x22a)&&(_0x412574[_0x47263e(0x204)]=_0x19fa4a[_0x47263e(0x22a)]),_0x55fab8[_0x47263e(0x18e)]==='mask'&&_0x412574['id']&&(_0x412574['id']=_0x412574['id']+_0x33fce0[_0x47263e(0x23a)]),Object[_0x47263e(0x18f)](_0x412574)[_0x47263e(0x1ce)](function(_0x404635){var _0x16e1ca=_0x47263e,_0x700361=_0x404635[0x0],_0x31eca8=_0x404635[0x1];_0x700361===_0x16e1ca(0x1a3)&&typeof _0x31eca8=='string'&&(_0x412574[_0x700361]=_0x31eca8[_0x16e1ca(0x1b2)](/url\(#(.*)\)/,_0x16e1ca(0x201)[_0x16e1ca(0x1ad)](_0x33fce0[_0x16e1ca(0x23a)],')')));});var _0x2859a2=_0x33fce0[_0x47263e(0x1cc)];return!_0x2859a2||_0x2859a2[_0x47263e(0x228)]===0x0||(_0x55fab8['tag']===_0x47263e(0x1d8)&&_0x412574['xlink:href']&&(_0x412574[_0x47263e(0x1c9)]=_0x412574[_0x47263e(0x1c9)]+_0x33fce0[_0x47263e(0x23a)]),Object[_0x47263e(0x18f)](_0x412574)['forEach'](function(_0x33d311){var _0x147b96=_0x47263e,_0x24e47f=_0x33d311[0x0],_0x3fa66c=_0x33d311[0x1];typeof _0x3fa66c==_0x147b96(0x235)&&(_0x412574[_0x24e47f]=_0x3fa66c[_0x147b96(0x1b2)](/url\(#(.*)\)/,'url(#$1'[_0x147b96(0x1ad)](_0x33fce0['idSuffix'],')')));})),_0x412574;}function we(_0x331832,_0x51a84e){var _0x588c59=_0x4211e9,_0x4eb5c0,_0x4b408b=_0x51a84e[_0x588c59(0x1cc)];return!_0x4b408b||_0x4b408b[_0x588c59(0x228)]===0x0?_0x331832:_0x331832[_0x588c59(0x18e)]===_0x588c59(0x1c5)&&(!((_0x4eb5c0=_0x331832[_0x588c59(0x22b)])===null||_0x4eb5c0===void 0x0)&&_0x4eb5c0['length'])?c(c({},_0x331832),{'children':_0x331832[_0x588c59(0x22b)][_0x588c59(0x233)](function(_0x1a0cff){var _0x26317d=_0x588c59;return typeof _0x1a0cff[_0x26317d(0x1b8)]['id']=='string'&&_0x4b408b&&_0x4b408b[_0x26317d(0x21b)](_0x1a0cff[_0x26317d(0x1b8)]['id'])?c(c({},_0x1a0cff),{'attrs':c(c({},_0x1a0cff[_0x26317d(0x1b8)]),{'id':_0x1a0cff['attrs']['id']+_0x51a84e[_0x26317d(0x23a)]})}):_0x1a0cff;})}):_0x331832;}function Ne(){var _0x3b9c11=_0x4211e9;return Math['random']()[_0x3b9c11(0x226)](0x24)[_0x3b9c11(0x1d1)](0x2,0x8);}W[_0x4211e9(0x1e2)]=_0x4211e9(0x238);var Ce={'tag':_0x4211e9(0x1bc),'attrs':{'xmlns':_0x4211e9(0x1e5),'fill':_0x4211e9(0x195),'viewBox':_0x4211e9(0x236),'width':_0x4211e9(0x229),'height':_0x4211e9(0x229)},'children':[{'tag':_0x4211e9(0x221),'attrs':{'fill':_0x4211e9(0x1b4),'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':_0x4211e9(0x221),'attrs':{'fill':_0x4211e9(0x1b4),'d':_0x4211e9(0x18c),'fillRule':_0x4211e9(0x1ac),'clipRule':_0x4211e9(0x1ac)}}]},B=_0x5f09eb(function(_0x231f76,_0x4eb1dd){var _0x441318=_0x4211e9;return _0x4cd375(W,Object[_0x441318(0x1f5)]({},_0x231f76,{'id':_0x441318(0x19d),'ref':_0x4eb1dd,'icon':Ce}));});B[_0x4211e9(0x1e2)]=_0x4211e9(0x1b7);class L extends _0x4178b{constructor(){var _0x1b9683=_0x4211e9;super(...arguments),d(this,_0x1b9683(0x230),new Set()),d(this,_0x1b9683(0x1a1),new Set());}[_0x4211e9(0x234)](_0x58ef9a){var _0x3f3fd7=_0x4211e9;return this[_0x3f3fd7(0x230)][_0x3f3fd7(0x1fb)](_0x58ef9a),_0x1905e1(()=>this[_0x3f3fd7(0x230)][_0x3f3fd7(0x220)](_0x58ef9a));}[_0x4211e9(0x1d4)](_0x595234){var _0x31abf9=_0x4211e9;return this[_0x31abf9(0x1a1)][_0x31abf9(0x1fb)](_0x595234),_0x1905e1(()=>this[_0x31abf9(0x1a1)]['delete'](_0x595234));}[_0x4211e9(0x20e)](_0x22296e){var _0x5a9489=_0x4211e9;return this[_0x5a9489(0x230)][_0x5a9489(0x1c3)](_0x22296e);}[_0x4211e9(0x227)](_0x3e40a3){var _0x1dbe38=_0x4211e9;return Array[_0x1dbe38(0x231)](this[_0x1dbe38(0x1a1)])[_0x1dbe38(0x233)](_0x211a6b=>_0x211a6b(_0x3e40a3));}}var De=Object[_0x4211e9(0x1b6)],Z=(_0x58e24e,_0x371f99,_0x16db68,_0x5463e0)=>{var _0x13942a=_0x4211e9;for(var _0xe8721d=_0x5463e0>0x1?void 0x0:_0x5463e0?De(_0x371f99,_0x16db68):_0x371f99,_0x26c400=_0x58e24e[_0x13942a(0x228)]-0x1,_0x356c80;_0x26c400>=0x0;_0x26c400--)(_0x356c80=_0x58e24e[_0x26c400])&&(_0xe8721d=_0x356c80(_0xe8721d)||_0xe8721d);return _0xe8721d;},f=(_0xd5c2bb,_0x45e4b6)=>(_0x5695b0,_0x8c7ef1)=>_0x45e4b6(_0x5695b0,_0x8c7ef1,_0xd5c2bb);let m=class extends _0x11260a{constructor(_0x1f7dc2,_0x35670e,_0x6d0845){var _0x5707b0=_0x4211e9;super(),d(this,_0x5707b0(0x1b3),new Map()),(this[_0x5707b0(0x1fe)]=_0x1f7dc2,this[_0x5707b0(0x1e0)]=_0x35670e,this[_0x5707b0(0x210)]=_0x6d0845,this['_init']());}async[_0x4211e9(0x1bf)](_0x5410fe){var _0x5f0379=_0x4211e9;return this[_0x5f0379(0x1b3)][_0x5f0379(0x1c3)](_0x5410fe)||await this['_startLiveShareCoordinator'](_0x5410fe),this['_entities'][_0x5f0379(0x1cf)](_0x5410fe);}['_init'](){var _0x26c467=_0x4211e9;this['_univerInstanceService'][_0x26c467(0x1f4)](_0x2e04d5['UNIVER_SHEET'])['pipe'](_0x574d5e(this[_0x26c467(0x1c1)]))[_0x26c467(0x222)](async _0x26c4f0=>{var _0x11d9de=_0x26c467;const _0x10df47=_0x26c4f0['getUnitId']();this[_0x11d9de(0x1b3)]['has'](_0x10df47)||this[_0x11d9de(0x1da)](_0x10df47);}),this[_0x26c467(0x1fe)][_0x26c467(0x22e)](_0x2e04d5[_0x26c467(0x1fa)])[_0x26c467(0x1c0)](_0x574d5e(this[_0x26c467(0x1c1)]))['subscribe'](_0x286c3f=>{var _0x397f42=_0x26c467;const _0x50a97a=_0x286c3f[_0x397f42(0x22f)](),_0x5388be=this['_entities'][_0x397f42(0x1cf)](_0x50a97a);_0x5388be==null||_0x5388be[_0x397f42(0x1ab)]();});}async['_startLiveShareCoordinator'](_0x2db63e){var _0x23b303=_0x4211e9;const _0x45be0c=await this['_collabSessionService'][_0x23b303(0x1a6)](_0x2db63e),_0x331acd=this[_0x23b303(0x1e0)]['createInstance'](C,_0x2db63e,_0x45be0c);return _0x331acd[_0x23b303(0x1ee)](),this[_0x23b303(0x1b3)][_0x23b303(0x18d)](_0x2db63e,_0x331acd),_0x331acd;}};m=Z([f(0x0,_0x4e4916),f(0x1,_0x29823e(_0x4cbc28)),f(0x2,_0x29823e(_0x11bb65))],m);var h=(_0x31cfc4=>(_0x31cfc4['OFFLINE']=_0x4211e9(0x203),_0x31cfc4['IDLE']=_0x4211e9(0x1de),_0x31cfc4['FOLLOWING']='following',_0x31cfc4[_0x4211e9(0x1f0)]=_0x4211e9(0x202),_0x31cfc4[_0x4211e9(0x20b)]='presenting',_0x31cfc4))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x11260a{constructor(_0x1138ca,_0x970feb,_0xfd094d,_0x44b456,_0x1e6448){var _0x3c0e98=_0x4211e9;super(),d(this,_0x3c0e98(0x223),new _0x31bb01(_0x3c0e98(0x1de))),d(this,_0x3c0e98(0x1fc),this[_0x3c0e98(0x223)][_0x3c0e98(0x1d5)]()),d(this,'_init',!0x1),d(this,_0x3c0e98(0x21d),null),d(this,_0x3c0e98(0x1d2),null),(this[_0x3c0e98(0x224)]=_0x1138ca,this[_0x3c0e98(0x1f1)]=_0x970feb,this[_0x3c0e98(0x1e3)]=_0xfd094d,this[_0x3c0e98(0x239)]=_0x44b456,this[_0x3c0e98(0x20a)]=_0x1e6448);}get[_0x4211e9(0x237)](){var _0x4aefb0=_0x4211e9;return this[_0x4aefb0(0x223)][_0x4aefb0(0x1d0)]();}[_0x4211e9(0x1ab)](){var _0x50d183=_0x4211e9,_0x4f82a6;(_0x4f82a6=this[_0x50d183(0x21d)])==null||_0x4f82a6[_0x50d183(0x1ab)](),this[_0x50d183(0x223)][_0x50d183(0x19c)](_0x50d183(0x1de)),this[_0x50d183(0x223)][_0x50d183(0x19b)]();}[_0x4211e9(0x1ee)](){var _0x2aa7f3=_0x4211e9;this['_init']||(this[_0x2aa7f3(0x193)]=!0x0,this[_0x2aa7f3(0x1f1)][_0x2aa7f3(0x1b0)][_0x2aa7f3(0x1c0)](_0x574d5e(this[_0x2aa7f3(0x1c1)]))[_0x2aa7f3(0x222)](_0x12d27c=>{var _0x1d4457=_0x2aa7f3;switch(_0x12d27c){case _0x839685[_0x1d4457(0x1a7)]:this[_0x1d4457(0x191)]();break;case _0x839685[_0x1d4457(0x196)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x2aa7f3(0x1c0)](_0x574d5e(this[_0x2aa7f3(0x1c1)]))['subscribe'](_0x64a67=>{var _0x59c515=_0x2aa7f3;const {eventID:_0x13163f}=_0x64a67;switch(_0x13163f){case _0x5c2773['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x64a67);break;case _0x5c2773['LIVESHARE_OPERATION']:this[_0x59c515(0x1ae)](_0x64a67);break;case _0x5c2773[_0x59c515(0x1c8)]:this[_0x59c515(0x22d)]();break;case _0x5c2773['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x64a67);break;}}));}['tryStartPresenting'](){var _0x2b245b=_0x4211e9;this['_collabSession']['send']({'eventID':_0x5c2773[_0x2b245b(0x1af)],'data':{'unitID':this[_0x2b245b(0x224)],'userID':this['_collabSession'][_0x2b245b(0x22c)]()}},this[_0x2b245b(0x224)]);}[_0x4211e9(0x209)](){var _0x146027=_0x4211e9;this[_0x146027(0x237)]==='presenting'&&(this[_0x146027(0x223)][_0x146027(0x19c)](_0x146027(0x1de)),this[_0x146027(0x1f1)][_0x146027(0x1f9)]({'eventID':_0x5c2773[_0x146027(0x1c8)],'data':{'unitID':this[_0x146027(0x224)]}},this[_0x146027(0x224)]));}['startFollowing'](){var _0x1fad91=_0x4211e9;this['_status']==='not-following'&&(this[_0x1fad91(0x223)][_0x1fad91(0x19c)]('following'),this[_0x1fad91(0x1e9)]());}[_0x4211e9(0x1aa)](){var _0x3ec898=_0x4211e9;this[_0x3ec898(0x237)]===_0x3ec898(0x1a8)&&this[_0x3ec898(0x214)]();}[_0x4211e9(0x199)](_0xeb88da){var _0xc01076=_0x4211e9;const {presenter:_0x11d950}=_0xeb88da[_0xc01076(0x1a2)],_0x1425e3=this[_0xc01076(0x1f1)][_0xc01076(0x22c)]();this[_0xc01076(0x1d2)]=_0x11d950,_0x11d950===_0x1425e3?(this[_0xc01076(0x214)](),this[_0xc01076(0x205)]()):this[_0xc01076(0x237)]!==_0xc01076(0x202)&&(this['_stopPresenting'](),this[_0xc01076(0x1e9)]());}[_0x4211e9(0x18b)](){var _0x1a20c2=_0x4211e9;const _0x597ffd={'eventID':_0x5c2773[_0x1a20c2(0x1cd)]};this[_0x1a20c2(0x1f1)][_0x1a20c2(0x1f9)](_0x597ffd,this[_0x1a20c2(0x224)]);}[_0x4211e9(0x22d)](){var _0x53fa31=_0x4211e9;this[_0x53fa31(0x1d2)]=null,this['_status']!==_0x53fa31(0x19f)&&this[_0x53fa31(0x1ff)]();}['_handleNewChangeSets'](_0x520984){var _0x3aadfb=_0x4211e9;if(this['_status']===_0x3aadfb(0x1a8)&&this[_0x3aadfb(0x1d2)]===_0x520984['data']['memberID']){const _0x4e81e4=_0x8769f7(_0x520984[_0x3aadfb(0x1a2)])[_0x3aadfb(0x225)]['reverse']()[_0x3aadfb(0x21f)](_0x48b215=>_0x48b215['id']===_0x20e50f['id']);if(_0x4e81e4){const _0x1701b5=_0x4e81e4['params'][_0x3aadfb(0x1d7)],_0x5183fd=_0x4e81e4[_0x3aadfb(0x1f8)][_0x3aadfb(0x192)]['id'];setTimeout(()=>{var _0x752db1=_0x3aadfb;this[_0x752db1(0x20a)][_0x752db1(0x1be)](_0x304fe7['id'],{'unitId':_0x1701b5,'subUnitId':_0x5183fd},{'fromCollab':!0x0});});}}}[_0x4211e9(0x205)](){var _0x5f571b=_0x4211e9;this[_0x5f571b(0x223)][_0x5f571b(0x19c)](_0x5f571b(0x19f));const _0x30229e=new Map(),_0x5e6dc5=this['_commandDisposable']=new _0x30a3f7();_0x5e6dc5[_0x5f571b(0x1fb)](_0x1905e1(()=>{var _0x304607=_0x5f571b;_0x30229e[_0x304607(0x1ce)](_0x39d2d5=>_0x39d2d5[_0x304607(0x19b)]()),_0x30229e['clear']();})),_0x5e6dc5[_0x5f571b(0x1fb)](this[_0x5f571b(0x20a)]['onCommandExecuted'](_0x50e719=>{var _0x38f1d9=_0x5f571b,_0x33ef18;if(_0x50e719[_0x38f1d9(0x189)]!==_0x3ef350['OPERATION']||!this['_liveShareService'][_0x38f1d9(0x20e)](_0x50e719['id']))return;const {id:_0x2f4eb8}=_0x50e719;let _0x422ceb;_0x30229e[_0x38f1d9(0x1c3)](_0x2f4eb8)?_0x422ceb=_0x30229e['get'](_0x2f4eb8):(_0x422ceb=new _0x4c84d6(),_0x30229e[_0x38f1d9(0x18d)](_0x2f4eb8,_0x422ceb),_0x422ceb['pipe'](_0xee6e22((_0x33ef18=this[_0x38f1d9(0x1e3)]['getConfig'](xe))!=null?_0x33ef18:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38f1d9(0x222)](_0x2513c3=>{var _0x4b29e9=_0x38f1d9;this['_collabSession']['send']({'eventID':_0x5c2773[_0x4b29e9(0x1e6)],'data':{'unitID':this[_0x4b29e9(0x224)],'operations':{[_0x2513c3['id']]:{'id':_0x2513c3['id'],'params':JSON[_0x4b29e9(0x18a)](_0x2513c3['params'])}}}},this[_0x4b29e9(0x224)]);})),_0x422ceb[_0x38f1d9(0x19c)](_0x50e719);})),this[_0x5f571b(0x239)][_0x5f571b(0x227)](this[_0x5f571b(0x224)])[_0x5f571b(0x1ce)](_0x116247=>this[_0x5f571b(0x1f1)][_0x5f571b(0x1f9)]({'eventID':_0x5c2773['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5f571b(0x224)],'operations':{[_0x116247['id']]:{'id':_0x116247['id'],'params':JSON[_0x5f571b(0x18a)](_0x116247['params'])}}}},this[_0x5f571b(0x224)]));}[_0x4211e9(0x1c4)](){var _0xc525b4=_0x4211e9,_0x7e594e;this[_0xc525b4(0x223)][_0xc525b4(0x19c)](_0xc525b4(0x1de)),(_0x7e594e=this[_0xc525b4(0x21d)])==null||_0x7e594e[_0xc525b4(0x1ab)](),this[_0xc525b4(0x21d)]=null;}[_0x4211e9(0x1e9)](){var _0x24c625=_0x4211e9,_0x4ef12e;(_0x4ef12e=this[_0x24c625(0x21d)])==null||_0x4ef12e[_0x24c625(0x1ab)](),this['_status$'][_0x24c625(0x19c)]('following');}[_0x4211e9(0x1ff)](){var _0x4346af=_0x4211e9,_0x5463f7;this['_status$'][_0x4346af(0x19c)](_0x4346af(0x1de)),(_0x5463f7=this['_commandDisposable'])==null||_0x5463f7[_0x4346af(0x1ab)](),this[_0x4346af(0x21d)]=null;}[_0x4211e9(0x214)](){var _0x5b291d=_0x4211e9,_0x2bbf12;this['_status$'][_0x5b291d(0x19c)](_0x5b291d(0x202)),(_0x2bbf12=this['_commandDisposable'])==null||_0x2bbf12[_0x5b291d(0x1ab)]();}['_handleOperation'](_0x2e4c14){var _0x13dfb2=_0x4211e9;if(['presenting',_0x13dfb2(0x202),'offline'][_0x13dfb2(0x21b)](this['_status'])||!_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x194)]||_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x194)]===this['_collabSession'][_0x13dfb2(0x22c)]())return;this[_0x13dfb2(0x237)]===_0x13dfb2(0x1de)&&this[_0x13dfb2(0x1e9)]();const _0x56b58a=_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x1ec)];Object['values'](_0x56b58a)[_0x13dfb2(0x1ce)](_0x5676e4=>{var _0x43ace8=_0x13dfb2;this[_0x43ace8(0x20a)]['executeCommand'](_0x5676e4['id'],_0x5676e4[_0x43ace8(0x1f8)]?JSON[_0x43ace8(0x21a)](_0x5676e4[_0x43ace8(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x4211e9(0x191)](){var _0x3e3ec6=_0x4211e9,_0x333f8b;this[_0x3e3ec6(0x223)][_0x3e3ec6(0x19c)](_0x3e3ec6(0x203)),(_0x333f8b=this[_0x3e3ec6(0x21d)])==null||_0x333f8b[_0x3e3ec6(0x1ab)]();}[_0x4211e9(0x1e8)](){var _0x851a74=_0x4211e9;this[_0x851a74(0x223)][_0x851a74(0x19c)](_0x851a74(0x1de)),this[_0x851a74(0x18b)]();}};C=Z([f(0x2,_0x454454),f(0x3,_0x29823e(L)),f(0x4,_0x1f59fb)],C);function ye(){var _0x2407f2=_0x4211e9;const _0x23995e=_0x34ce29(m),_0x1068a7=_0x34ce29(_0x4e4916),_0x24aa99=_0x5eb324(()=>_0x1068a7['getCurrentTypeOfUnit$'](_0x2e04d5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5baab2,_0x5df1cc]=_0x56e9c1(null),[_0x2557c7,_0x2a7937]=_0x56e9c1(h[_0x2407f2(0x20c)]),_0xe52120=_0x4b76f7(null);return _0x5005fd(()=>(_0x24aa99&&_0x23995e['getLiveShareCoordinator'](_0x24aa99[_0x2407f2(0x22f)]())['then'](_0x165de8=>{var _0x952f43=_0x2407f2;_0x5df1cc(_0x165de8),_0xe52120[_0x952f43(0x1f2)]=_0x165de8[_0x952f43(0x1fc)][_0x952f43(0x222)](_0xc6c851=>{_0x2a7937(_0xc6c851);});}),()=>{var _0x17518f=_0x2407f2,_0x27c3a4;(_0x27c3a4=_0xe52120[_0x17518f(0x1f2)])==null||_0x27c3a4[_0x17518f(0x197)](),_0xe52120[_0x17518f(0x1f2)]=null;}),[_0x24aa99,_0x23995e]),_0x5baab2?_0x478ffe(_0x3ee376,{'align':'end','disabled':_0x2557c7===h[_0x2407f2(0x1a7)],'className':_0x2407f2(0x1df),'overlay':_0x478ffe(Re,{'status':_0x2557c7,'coordinator':_0x5baab2}),'children':_0x478ffe(_0x2407f2(0x1ed),{'className':_0x3fe52f('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2557c7===h[_0x2407f2(0x1a7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2557c7!==h[_0x2407f2(0x1a7)]}),'type':_0x2407f2(0x1ed),'children':_0x478ffe(B,{'className':_0x2407f2(0x1a4)})})}):null;}function Re(_0x28b43b){var _0x1e8385=_0x4211e9;const {status:_0x43370e,coordinator:_0x1e3176}=_0x28b43b;switch(_0x43370e){case h['IDLE']:return _0x478ffe(Pe,{'coordinator':_0x1e3176});case h['FOLLOWING']:return _0x478ffe(Ae,{'coordinator':_0x1e3176});case h[_0x1e8385(0x1f0)]:return _0x478ffe(Te,{'coordinator':_0x1e3176});case h[_0x1e8385(0x1a7)]:return _0x478ffe(Fe,{});case h[_0x1e8385(0x20b)]:return _0x478ffe($e,{'coordinator':_0x1e3176});default:return null;}}function Pe(_0x28ad3c){var _0x5705f2=_0x4211e9;const {coordinator:_0x35452d}=_0x28ad3c;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x5705f2(0x1a0),{'className':_0x5705f2(0x1d9),'children':_0x5705f2(0x215)}),_0x478ffe(_0x2ec823,{'onClick':()=>_0x35452d[_0x5705f2(0x216)](),'children':_0x5705f2(0x1cb)})]});}function Ae(_0x2e52cb){var _0x11a763=_0x4211e9;const {coordinator:_0x59c989}=_0x2e52cb;return _0x15f696(_0xc7295,{'children':[_0x478ffe('div',{'className':_0x11a763(0x1d9),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x478ffe(_0x2ec823,{'onClick':()=>_0x59c989[_0x11a763(0x1aa)](),'children':_0x11a763(0x200)})]});}function Te(_0x302eb9){var _0x5325a9=_0x4211e9;const {coordinator:_0x2e77f6}=_0x302eb9;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x5325a9(0x1a0),{'className':_0x5325a9(0x1d9),'children':_0x5325a9(0x198)}),_0x478ffe(_0x2ec823,{'variant':_0x5325a9(0x1bd),'onClick':()=>_0x2e77f6[_0x5325a9(0x1db)](),'children':_0x5325a9(0x190)})]});}function $e(_0xbfdfdd){var _0x1ccb70=_0x4211e9;const {coordinator:_0x5a3578}=_0xbfdfdd;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x1ccb70(0x1a0),{'className':_0x1ccb70(0x1d9),'children':_0x1ccb70(0x19e)}),_0x478ffe(_0x2ec823,{'variant':_0x1ccb70(0x208),'onClick':()=>_0x5a3578[_0x1ccb70(0x209)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x2689e4=_0x4211e9;return _0x478ffe(_0xc7295,{'children':_0x2689e4(0x1ea)});}var He=Object[_0x4211e9(0x1b6)],je=(_0x5e2ab2,_0x108636,_0x1a0910,_0x3bf9b8)=>{var _0x4fcc65=_0x4211e9;for(var _0x588d08=_0x3bf9b8>0x1?void 0x0:_0x3bf9b8?He(_0x108636,_0x1a0910):_0x108636,_0x30d11c=_0x5e2ab2[_0x4fcc65(0x228)]-0x1,_0x2d6263;_0x30d11c>=0x0;_0x30d11c--)(_0x2d6263=_0x5e2ab2[_0x30d11c])&&(_0x588d08=_0x2d6263(_0x588d08)||_0x588d08);return _0x588d08;},T=(_0x648934,_0x410285)=>(_0x584ae5,_0x193f02)=>_0x410285(_0x584ae5,_0x193f02,_0x648934);let I=class extends _0x4178b{constructor(_0x10a498,_0x30fc7b){var _0x1b4d22=_0x4211e9;super(),this['_injector']=_0x10a498,this['_uiPartsService']=_0x30fc7b,this[_0x1b4d22(0x20d)]();}[_0x4211e9(0x20d)](){var _0x1108ff=_0x4211e9;this[_0x1108ff(0x1bb)](this[_0x1108ff(0x1d3)][_0x1108ff(0x1d6)](_0x37ef0c[_0x1108ff(0x1ba)],()=>_0x36c2e2(ye,this[_0x1108ff(0x1e0)])));}};I=je([T(0x0,_0x29823e(_0x4cbc28)),T(0x1,_0x4b1b8f)],I);const Ue=_0x4211e9(0x20f),$={};var Ve=Object[_0x4211e9(0x1b6)],Me=(_0x365cb2,_0x32fad2,_0x596884,_0x1a7da2)=>{var _0x3c2b21=_0x4211e9;for(var _0x35b54e=_0x1a7da2>0x1?void 0x0:_0x1a7da2?Ve(_0x32fad2,_0x596884):_0x32fad2,_0x16574b=_0x365cb2[_0x3c2b21(0x228)]-0x1,_0x1c2e71;_0x16574b>=0x0;_0x16574b--)(_0x1c2e71=_0x365cb2[_0x16574b])&&(_0x35b54e=_0x1c2e71(_0x35b54e)||_0x35b54e);return _0x35b54e;},ke=(_0x195866,_0x37d115)=>(_0xd4ffa3,_0x4ee49f)=>_0x37d115(_0xd4ffa3,_0x4ee49f,_0x195866);let b=class extends _0x4178b{constructor(_0x150931){var _0xb9ac09=_0x4211e9;super(),this[_0xb9ac09(0x239)]=_0x150931,this[_0xb9ac09(0x193)]();}['_init'](){var _0x18a05e=_0x4211e9;[_0x4df299['id'],_0x346916['id'],_0x304fe7['id']][_0x18a05e(0x1ce)](_0x310109=>{var _0x2326f=_0x18a05e;this[_0x2326f(0x1bb)](this['_liveShareService'][_0x2326f(0x234)](_0x310109));});}};b=Me([ke(0x0,_0x29823e(L))],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3216d4,_0x33da56,_0x3cb493)=>_0x33da56 in _0x3216d4?Ge(_0x3216d4,_0x33da56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cb493}):_0x3216d4[_0x33da56]=_0x3cb493,Be=(_0x4d11cf,_0x48d827,_0x2eacd9,_0x56d5dd)=>{var _0x659cb7=_0x4211e9;for(var _0x534d68=_0x56d5dd>0x1?void 0x0:_0x56d5dd?We(_0x48d827,_0x2eacd9):_0x48d827,_0x4f18fe=_0x4d11cf[_0x659cb7(0x228)]-0x1,_0x75b698;_0x4f18fe>=0x0;_0x4f18fe--)(_0x75b698=_0x4d11cf[_0x4f18fe])&&(_0x534d68=_0x75b698(_0x534d68)||_0x534d68);return _0x534d68;},F=(_0x5721ca,_0x5500bb)=>(_0x1b7fae,_0x2e5217)=>_0x5500bb(_0x1b7fae,_0x2e5217,_0x5721ca),J=(_0x4948a8,_0x2e1311,_0x1c3400)=>Ye(_0x4948a8,typeof _0x2e1311!=_0x4211e9(0x207)?_0x2e1311+'':_0x2e1311,_0x1c3400);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x119c72{constructor(_0x542dab=$,_0x6edcd4,_0x125cb8){var _0xbe4892=_0x4211e9;super(),this['_config']=_0x542dab,this[_0xbe4892(0x1e0)]=_0x6edcd4,this['_configService']=_0x125cb8;const {..._0x2f92a2}=_0x147e1f({},$,this['_config']);this[_0xbe4892(0x1e3)][_0xbe4892(0x19a)](Ue,_0x2f92a2);}[_0x4211e9(0x1e4)](){var _0x5c78c5=_0x4211e9;_0x16e757(this['_injector'],_0x3cdfd6([[L],[m],[b],[I]],this[_0x5c78c5(0x1f6)]['override'])),_0x108acc(this[_0x5c78c5(0x1e0)],[[b]]);}[_0x4211e9(0x1b9)](){var _0x22bc9e=_0x4211e9;_0x108acc(this[_0x22bc9e(0x1e0)],[[I]]);}};J(O,_0x4211e9(0x189),_0x2e04d5[_0x4211e9(0x217)]),J(O,_0x4211e9(0x21c),Ze),O=Be([_0x462562(_0x7fa5df),F(0x1,_0x29823e(_0x4cbc28)),F(0x2,_0x454454)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3065(_0x268d4d,_0x28e282){var _0xed0b25=_0xed0b();return _0x3065=function(_0x306557,_0x2befbb){_0x306557=_0x306557-0x128;var _0x2ebeaa=_0xed0b25[_0x306557];return _0x2ebeaa;},_0x3065(_0x268d4d,_0x28e282);}function _0xed0b(){var _0x30c2cf=['CollaborationSessionService','asObservable','extend','rxjs/operators','path','ICommandService','@univerjs/sheets-ui','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','IDLE','useRef','defineProperty','getConfig','_status$','children','subscribe','LiveShareService','react/jsx-runtime','LiveShareCoordinator','_collabSession','_sharedOperations','complete','override','onRendered','LIVESHARE_FETCH_OPERATIONS','substring','presenter','Dropdown','_handleTerminate','You\x27re\x20presenting\x20the\x20document','live-share-icon','find','_handleOnline','useEffect','delete','_univerInstanceService','disposeWithMe','1084500mEEgac','clear','DisposableCollection','Disposable','27uBEpMw','dispose','UNIVER_SHEET','SetZoomRatioOperation','setConfig','0\x200\x2017\x2017','forwardRef','none','data','url(#$1','Fragment','PRESENTING','className','You\x27are\x20offline.','createElement','CollaborationEvent','currentColor','get','requireSession','UniverSheets','fill','_collabSessionService','add','mergeOverrideWithDependencies','DesktopLiveShareController','button','forEach','_status','You\x27re\x20following\x20the\x20presenter','586008vaOsgl','_stopPresenting','IUniverInstanceService','422786mJcDqX','NEW_CHANGESETS','@univerjs-pro/collaboration-client','_commandDisposable','@univerjs/sheets','_injector','not-following','@univerjs/design','_uiPartsService','length','amd','RxDisposable','takeUntil','map','UniverInstanceType','_handleNewChangeSets','jsxs','getUnitId','hasOwnProperty','presenting','Present\x20this\x20document','send','random','evenodd','set','dispose$','_presenter','getCurrentTypeOfUnit$','propertyIsEnumerable','_init','SessionStatus','_fetchOperations','default','connectInjector','OPERATION','registerDependencies','init','toDisposable','attrs','_reporters','params','Injector','12pKnMxN','idle','getOwnPropertySymbols','IConfigService','getMemberID','status$','getOwnPropertyDescriptor','getTypeOfUnitAdded$','text','pipe','div','_handleOperation','_config','sheet','_startFollowing','LiveShareController','8583619aGdAhJ','718422WGLMDC','react','apply','unsubscribe','registerInitialStateReporter','onCommandExecuted','29875VSUGhY','getInitialStates','symbol','replace','105bcCuvL','throttleTime','has','FOLLOWING','_entities','Inject','SAME_OPERATION_SHARE_INTERVAL','UniverProCollaboration','parseProtocolChangeset','UniverDesign','Start\x20following','SetScrollOperation','shouldShareOperation','concat','@univerjs/ui','_startLiveShareCoordinator','operators','end','tag','OFFLINE','_commandService','offline','getTypeOfUnitDisposed$','_stopFollowing','jsx','_mountLiveShare','current','UniverIcon','LIVESHARE_REQUEST_HOST','useObservable','@univerjs/core','exports','UniverProLiveShare','SetWorksheetActiveOperation','type','UniverProCollaborationClient','1em','tryStartPresenting','icon','touchDependencies','stringify','clsx','indexOf','ONLINE','string','LIVESHARE_TERMINATE','262048wwZaeO','parse','BehaviorSubject','_unitID','CommandType','UniverLiveSharePlugin','then','sessionStatus$','UNIVER_LIVE_SHARE_PLUGIN','mutations','mask','stopFollowing','Stop\x20presenting','defIds','_handleOffline','entries','startFollowing','next','React','xlink:href','rxjs','idSuffix','prototype','colorChannel1','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShare','Stop\x20following','function','You\x27re\x20not\x20following\x20the\x20presenter','includes','_configService','2blnnTq','registerSharedOperation','useDependency','Button','_handleNewHost','getLiveShareCoordinator','live-share.config','1038oYqhPs','_liveShareService','operations','NOT_FOLLOWING','LIVESHARE_OPERATION','following','call','use','from','_beIdle','unitId','IUIPartsService','displayName'];_0xed0b=function(){return _0x30c2cf;};return _0xed0b();}(function(_0x459130,_0xe23059){var _0x3292f6=_0x3065,_0xfeac80=_0x459130();while(!![]){try{var _0x2eb23d=parseInt(_0x3292f6(0x20d))/0x1*(-parseInt(_0x3292f6(0x1b1))/0x2)+-parseInt(_0x3292f6(0x15a))/0x3*(-parseInt(_0x3292f6(0x149))/0x4)+parseInt(_0x3292f6(0x160))/0x5*(parseInt(_0x3292f6(0x1b8))/0x6)+parseInt(_0x3292f6(0x164))/0x7*(parseInt(_0x3292f6(0x192))/0x8)+parseInt(_0x3292f6(0x1ed))/0x9*(-parseInt(_0x3292f6(0x1e9))/0xa)+-parseInt(_0x3292f6(0x159))/0xb+parseInt(_0x3292f6(0x20a))/0xc;if(_0x2eb23d===_0xe23059)break;else _0xfeac80['push'](_0xfeac80['shift']());}catch(_0x274963){_0xfeac80['push'](_0xfeac80['shift']());}}}(_0xed0b,0xba79e),function(_0x39a6b9,_0x1bfd84){var _0x27d6bf=_0x3065;typeof exports=='object'&&typeof module<'u'?_0x1bfd84(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==_0x27d6bf(0x1ad)&&define[_0x27d6bf(0x129)]?define([_0x27d6bf(0x183),_0x27d6bf(0x182),_0x27d6bf(0x172),_0x27d6bf(0x1d5),_0x27d6bf(0x214),_0x27d6bf(0x15b),'@univerjs-pro/collaboration',_0x27d6bf(0x20f),_0x27d6bf(0x211),_0x27d6bf(0x1a6),_0x27d6bf(0x1c8),_0x27d6bf(0x1cb)],_0x1bfd84):(_0x39a6b9=typeof globalThis<'u'?globalThis:_0x39a6b9||self,_0x1bfd84(_0x39a6b9[_0x27d6bf(0x184)]={},_0x39a6b9['UniverCore'],_0x39a6b9['UniverUi'],_0x39a6b9[_0x27d6bf(0x1a4)],_0x39a6b9[_0x27d6bf(0x16d)],_0x39a6b9['React'],_0x39a6b9[_0x27d6bf(0x16b)],_0x39a6b9[_0x27d6bf(0x187)],_0x39a6b9[_0x27d6bf(0x200)],_0x39a6b9[_0x27d6bf(0x1a6)],_0x39a6b9[_0x27d6bf(0x1a6)][_0x27d6bf(0x174)],_0x39a6b9['UniverSheetsUi']));}(this,function(_0x37dde1,_0x264c6a,_0x27d656,_0x3ae493,_0x5ee3fa,_0x111dc7,_0x129ec3,_0x5c74f4,_0x295301,_0x31b505,_0x5968c0,_0x2e969f){'use strict';var _0x1b8e03=_0x3065;var _0x311827=Object[_0x1b8e03(0x1cf)],_0x1fbd1e=(_0x4dd810,_0xfb0e43,_0xb2dad1)=>_0xfb0e43 in _0x4dd810?_0x311827(_0x4dd810,_0xfb0e43,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb2dad1}):_0x4dd810[_0xfb0e43]=_0xb2dad1,_0x53b07a=(_0x363e39,_0x4aaf1a,_0x232a78)=>_0x1fbd1e(_0x363e39,typeof _0x4aaf1a!=_0x1b8e03(0x162)?_0x4aaf1a+'':_0x4aaf1a,_0x232a78),_0x2a7d53=function(){var _0x29f71b=_0x1b8e03;return _0x2a7d53=Object['assign']||function(_0x42998e){var _0x33df5a=_0x3065;for(var _0x54f5fb,_0x2181f0=0x1,_0x1aa654=arguments['length'];_0x2181f0<_0x1aa654;_0x2181f0++){_0x54f5fb=arguments[_0x2181f0];for(var _0x48eb81 in _0x54f5fb)Object[_0x33df5a(0x1a8)][_0x33df5a(0x131)]['call'](_0x54f5fb,_0x48eb81)&&(_0x42998e[_0x48eb81]=_0x54f5fb[_0x48eb81]);}return _0x42998e;},_0x2a7d53[_0x29f71b(0x15c)](this,arguments);},_0x1ae34d=function(_0x38142a,_0x288bc1){var _0x5725e8=_0x1b8e03,_0x10e882={};for(var _0x5484b1 in _0x38142a)Object[_0x5725e8(0x1a8)][_0x5725e8(0x131)][_0x5725e8(0x1be)](_0x38142a,_0x5484b1)&&_0x288bc1[_0x5725e8(0x18e)](_0x5484b1)<0x0&&(_0x10e882[_0x5484b1]=_0x38142a[_0x5484b1]);if(_0x38142a!=null&&typeof Object[_0x5725e8(0x14b)]==_0x5725e8(0x1ad)){for(var _0x5afe11=0x0,_0x5484b1=Object['getOwnPropertySymbols'](_0x38142a);_0x5afe11<_0x5484b1[_0x5725e8(0x128)];_0x5afe11++)_0x288bc1[_0x5725e8(0x18e)](_0x5484b1[_0x5afe11])<0x0&&Object[_0x5725e8(0x1a8)][_0x5725e8(0x13b)][_0x5725e8(0x1be)](_0x38142a,_0x5484b1[_0x5afe11])&&(_0x10e882[_0x5484b1[_0x5afe11]]=_0x38142a[_0x5484b1[_0x5afe11]]);}return _0x10e882;},_0x86b280=_0x111dc7[_0x1b8e03(0x1f3)](function(_0x5caea7,_0x15c787){var _0x25e40a=_0x1b8e03,_0x4cb1b3=_0x5caea7[_0x25e40a(0x18a)],_0x372a72=_0x5caea7['id'],_0x7d7c74=_0x5caea7[_0x25e40a(0x1f9)],_0x408815=_0x5caea7[_0x25e40a(0x1c7)],_0x25acfc=_0x1ae34d(_0x5caea7,[_0x25e40a(0x18a),'id','className','extend']),_0x56ab44='univerjs-icon\x20univerjs-icon-'[_0x25e40a(0x171)](_0x372a72,'\x20')[_0x25e40a(0x171)](_0x7d7c74||'')['trim'](),_0x32acab=_0x111dc7[_0x25e40a(0x1ce)]('_'[_0x25e40a(0x171)](_0x78222b()));return _0x14d318(_0x4cb1b3,''[_0x25e40a(0x171)](_0x372a72),{'defIds':_0x4cb1b3[_0x25e40a(0x19f)],'idSuffix':_0x32acab[_0x25e40a(0x17e)]},_0x2a7d53({'ref':_0x15c787,'className':_0x56ab44},_0x25acfc),_0x408815);});function _0x14d318(_0x5ea93f,_0x5d3545,_0xb50103,_0x1125d7,_0x519872){var _0x3aa15d=_0x1b8e03;return _0x111dc7[_0x3aa15d(0x1fb)](_0x5ea93f[_0x3aa15d(0x176)],_0x2a7d53(_0x2a7d53({'key':_0x5d3545},_0x7d0eb(_0x5ea93f,_0xb50103,_0x519872)),_0x1125d7),(_0xd54bec(_0x5ea93f,_0xb50103)[_0x3aa15d(0x1d2)]||[])[_0x3aa15d(0x12c)](function(_0x50c35c,_0x1851bc){var _0x1c2801=_0x3aa15d;return _0x14d318(_0x50c35c,''[_0x1c2801(0x171)](_0x5d3545,'-')['concat'](_0x5ea93f[_0x1c2801(0x176)],'-')[_0x1c2801(0x171)](_0x1851bc),_0xb50103,void 0x0,_0x519872);}));}function _0x7d0eb(_0x24cfa4,_0x45e3cd,_0x209c50){var _0x45f68b=_0x1b8e03,_0x1a8a7a=_0x2a7d53({},_0x24cfa4[_0x45f68b(0x145)]);_0x209c50!=null&&_0x209c50[_0x45f68b(0x1a9)]&&_0x1a8a7a[_0x45f68b(0x201)]===_0x45f68b(0x1a9)&&(_0x1a8a7a[_0x45f68b(0x201)]=_0x209c50[_0x45f68b(0x1a9)]),_0x24cfa4[_0x45f68b(0x176)]===_0x45f68b(0x19c)&&_0x1a8a7a['id']&&(_0x1a8a7a['id']=_0x1a8a7a['id']+_0x45e3cd[_0x45f68b(0x1a7)]),Object[_0x45f68b(0x1a1)](_0x1a8a7a)['forEach'](function(_0x571e7b){var _0x38fef0=_0x45f68b,_0x2944ee=_0x571e7b[0x0],_0xf7843a=_0x571e7b[0x1];_0x2944ee==='mask'&&typeof _0xf7843a=='string'&&(_0x1a8a7a[_0x2944ee]=_0xf7843a['replace'](/url\(#(.*)\)/,_0x38fef0(0x1f6)[_0x38fef0(0x171)](_0x45e3cd[_0x38fef0(0x1a7)],')')));});var _0x5d1407=_0x45e3cd[_0x45f68b(0x19f)];return!_0x5d1407||_0x5d1407[_0x45f68b(0x128)]===0x0||(_0x24cfa4[_0x45f68b(0x176)]===_0x45f68b(0x1bf)&&_0x1a8a7a[_0x45f68b(0x1a5)]&&(_0x1a8a7a[_0x45f68b(0x1a5)]=_0x1a8a7a[_0x45f68b(0x1a5)]+_0x45e3cd[_0x45f68b(0x1a7)]),Object[_0x45f68b(0x1a1)](_0x1a8a7a)[_0x45f68b(0x207)](function(_0x15d3f7){var _0x2be978=_0x45f68b,_0x2a1b8d=_0x15d3f7[0x0],_0x2ac2d1=_0x15d3f7[0x1];typeof _0x2ac2d1=='string'&&(_0x1a8a7a[_0x2a1b8d]=_0x2ac2d1[_0x2be978(0x163)](/url\(#(.*)\)/,_0x2be978(0x1f6)['concat'](_0x45e3cd[_0x2be978(0x1a7)],')')));})),_0x1a8a7a;}function _0xd54bec(_0x51fc5b,_0x233621){var _0xce592a=_0x1b8e03,_0x28c84e,_0x93627e=_0x233621[_0xce592a(0x19f)];return!_0x93627e||_0x93627e['length']===0x0?_0x51fc5b:_0x51fc5b[_0xce592a(0x176)]==='defs'&&(!((_0x28c84e=_0x51fc5b['children'])===null||_0x28c84e===void 0x0)&&_0x28c84e[_0xce592a(0x128)])?_0x2a7d53(_0x2a7d53({},_0x51fc5b),{'children':_0x51fc5b[_0xce592a(0x1d2)][_0xce592a(0x12c)](function(_0x14ea26){var _0xa181b6=_0xce592a;return typeof _0x14ea26[_0xa181b6(0x145)]['id']==_0xa181b6(0x190)&&_0x93627e&&_0x93627e[_0xa181b6(0x1af)](_0x14ea26[_0xa181b6(0x145)]['id'])?_0x2a7d53(_0x2a7d53({},_0x14ea26),{'attrs':_0x2a7d53(_0x2a7d53({},_0x14ea26[_0xa181b6(0x145)]),{'id':_0x14ea26[_0xa181b6(0x145)]['id']+_0x233621[_0xa181b6(0x1a7)]})}):_0x14ea26;})}):_0x51fc5b;}function _0x78222b(){var _0x3db4ab=_0x1b8e03;return Math[_0x3db4ab(0x135)]()['toString'](0x24)[_0x3db4ab(0x1dd)](0x2,0x8);}_0x86b280[_0x1b8e03(0x1c4)]=_0x1b8e03(0x17f);var _0x3f97c1={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1b8e03(0x1f4),'viewBox':_0x1b8e03(0x1f2),'width':_0x1b8e03(0x188),'height':'1em'},'children':[{'tag':_0x1b8e03(0x1c9),'attrs':{'fill':_0x1b8e03(0x1fd),'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':_0x1b8e03(0x1c9),'attrs':{'fill':_0x1b8e03(0x1fd),'d':_0x1b8e03(0x1cc),'fillRule':'evenodd','clipRule':_0x1b8e03(0x136)}}]},_0x5bde01=_0x111dc7[_0x1b8e03(0x1f3)](function(_0x1d8968,_0x51b3f3){var _0x338245=_0x1b8e03;return _0x111dc7[_0x338245(0x1fb)](_0x86b280,Object['assign']({},_0x1d8968,{'id':_0x338245(0x1e2),'ref':_0x51b3f3,'icon':_0x3f97c1}));});_0x5bde01[_0x1b8e03(0x1c4)]='LiveShareIcon';class _0x929dc1 extends _0x264c6a[_0x1b8e03(0x1ec)]{constructor(){var _0x26a2b1=_0x1b8e03;super(...arguments),_0x53b07a(this,_0x26a2b1(0x1d8),new Set()),_0x53b07a(this,_0x26a2b1(0x146),new Set());}[_0x1b8e03(0x1b2)](_0x3f517f){var _0x848e55=_0x1b8e03;return this[_0x848e55(0x1d8)][_0x848e55(0x203)](_0x3f517f),_0x264c6a[_0x848e55(0x144)](()=>this[_0x848e55(0x1d8)]['delete'](_0x3f517f));}[_0x1b8e03(0x15e)](_0x376e52){var _0x51aa66=_0x1b8e03;return this['_reporters'][_0x51aa66(0x203)](_0x376e52),_0x264c6a[_0x51aa66(0x144)](()=>this[_0x51aa66(0x146)][_0x51aa66(0x1e6)](_0x376e52));}[_0x1b8e03(0x170)](_0x37116e){var _0x5c3925=_0x1b8e03;return this[_0x5c3925(0x1d8)][_0x5c3925(0x166)](_0x37116e);}[_0x1b8e03(0x161)](_0x54b34d){var _0x1bce18=_0x1b8e03;return Array[_0x1bce18(0x1c0)](this[_0x1bce18(0x146)])[_0x1bce18(0x12c)](_0x32d3a8=>_0x32d3a8(_0x54b34d));}}var _0x4e506c=Object['getOwnPropertyDescriptor'],_0x25a336=(_0x13eb00,_0x1b79ab,_0x592f71,_0x2d5e4b)=>{var _0x1454b2=_0x1b8e03;for(var _0x2a3e2a=_0x2d5e4b>0x1?void 0x0:_0x2d5e4b?_0x4e506c(_0x1b79ab,_0x592f71):_0x1b79ab,_0xee715e=_0x13eb00[_0x1454b2(0x128)]-0x1,_0x204f85;_0xee715e>=0x0;_0xee715e--)(_0x204f85=_0x13eb00[_0xee715e])&&(_0x2a3e2a=_0x204f85(_0x2a3e2a)||_0x2a3e2a);return _0x2a3e2a;},_0x23bde2=(_0x14bba4,_0x10849c)=>(_0x450fc3,_0x10ba36)=>_0x10849c(_0x450fc3,_0x10ba36,_0x14bba4);_0x37dde1[_0x1b8e03(0x158)]=class extends _0x264c6a[_0x1b8e03(0x12a)]{constructor(_0xf47c5f,_0x5c2353,_0x546d09){var _0x1f1180=_0x1b8e03;super(),_0x53b07a(this,'_entities',new Map()),(this[_0x1f1180(0x1e7)]=_0xf47c5f,this[_0x1f1180(0x212)]=_0x5c2353,this[_0x1f1180(0x202)]=_0x546d09,this[_0x1f1180(0x13c)]());}async[_0x1b8e03(0x1b6)](_0x16bcc0){var _0x1b236b=_0x1b8e03;return this[_0x1b236b(0x168)][_0x1b236b(0x166)](_0x16bcc0)||await this[_0x1b236b(0x173)](_0x16bcc0),this[_0x1b236b(0x168)][_0x1b236b(0x1fe)](_0x16bcc0);}[_0x1b8e03(0x13c)](){var _0x95ec20=_0x1b8e03;this[_0x95ec20(0x1e7)][_0x95ec20(0x150)](_0x264c6a[_0x95ec20(0x12d)][_0x95ec20(0x1ef)])[_0x95ec20(0x152)](_0x5968c0[_0x95ec20(0x12b)](this['dispose$']))['subscribe'](async _0x400a7f=>{var _0x36bd24=_0x95ec20;const _0x40b6b7=_0x400a7f[_0x36bd24(0x130)]();this[_0x36bd24(0x168)]['has'](_0x40b6b7)||this[_0x36bd24(0x173)](_0x40b6b7);}),this['_univerInstanceService'][_0x95ec20(0x17a)](_0x264c6a[_0x95ec20(0x12d)][_0x95ec20(0x1ef)])['pipe'](_0x5968c0[_0x95ec20(0x12b)](this[_0x95ec20(0x138)]))[_0x95ec20(0x1d3)](_0x154b0e=>{var _0x533e1a=_0x95ec20;const _0x31f61a=_0x154b0e[_0x533e1a(0x130)](),_0x5b3944=this[_0x533e1a(0x168)]['get'](_0x31f61a);_0x5b3944==null||_0x5b3944[_0x533e1a(0x1ee)]();});}async[_0x1b8e03(0x173)](_0xc1f389){var _0x92cb5=_0x1b8e03;const _0x49dd62=await this[_0x92cb5(0x202)][_0x92cb5(0x1ff)](_0xc1f389),_0x99a353=this['_injector']['createInstance'](_0x37dde1[_0x92cb5(0x1d6)],_0xc1f389,_0x49dd62);return _0x99a353[_0x92cb5(0x143)](),this['_entities'][_0x92cb5(0x137)](_0xc1f389,_0x99a353),_0x99a353;}},_0x37dde1[_0x1b8e03(0x158)]=_0x25a336([_0x23bde2(0x0,_0x264c6a[_0x1b8e03(0x20c)]),_0x23bde2(0x1,_0x264c6a[_0x1b8e03(0x169)](_0x264c6a[_0x1b8e03(0x148)])),_0x23bde2(0x2,_0x264c6a[_0x1b8e03(0x169)](_0x5c74f4[_0x1b8e03(0x1c5)]))],_0x37dde1['LiveShareController']);var _0x43c763=(_0x46dc54=>(_0x46dc54[_0x1b8e03(0x177)]=_0x1b8e03(0x179),_0x46dc54['IDLE']=_0x1b8e03(0x14a),_0x46dc54[_0x1b8e03(0x167)]=_0x1b8e03(0x1bd),_0x46dc54[_0x1b8e03(0x1bb)]='not-following',_0x46dc54['PRESENTING']=_0x1b8e03(0x132),_0x46dc54))(_0x43c763||{});const _0x40df4f=_0x1b8e03(0x16a),_0x205f0d=0xc8;_0x37dde1[_0x1b8e03(0x1d6)]=class extends _0x264c6a[_0x1b8e03(0x12a)]{constructor(_0x1af641,_0x32110b,_0x4e9db8,_0x5271f0,_0x121908){var _0x2ad7bc=_0x1b8e03;super(),_0x53b07a(this,_0x2ad7bc(0x1d1),new _0x31b505[(_0x2ad7bc(0x194))](_0x2ad7bc(0x14a))),_0x53b07a(this,_0x2ad7bc(0x14e),this['_status$'][_0x2ad7bc(0x1c6)]()),_0x53b07a(this,'_init',!0x1),_0x53b07a(this,_0x2ad7bc(0x210),null),_0x53b07a(this,'_presenter',null),(this[_0x2ad7bc(0x195)]=_0x1af641,this[_0x2ad7bc(0x1d7)]=_0x32110b,this[_0x2ad7bc(0x1b0)]=_0x4e9db8,this[_0x2ad7bc(0x1b9)]=_0x5271f0,this[_0x2ad7bc(0x178)]=_0x121908);}get[_0x1b8e03(0x208)](){return this['_status$']['getValue']();}[_0x1b8e03(0x1ee)](){var _0x2d08ac=_0x1b8e03,_0x5bd302;(_0x5bd302=this[_0x2d08ac(0x210)])==null||_0x5bd302[_0x2d08ac(0x1ee)](),this[_0x2d08ac(0x1d1)][_0x2d08ac(0x1a3)]('idle'),this[_0x2d08ac(0x1d1)][_0x2d08ac(0x1d9)]();}['init'](){var _0x5bd7e5=_0x1b8e03;this['_init']||(this[_0x5bd7e5(0x13c)]=!0x0,this[_0x5bd7e5(0x1d7)][_0x5bd7e5(0x199)][_0x5bd7e5(0x152)](_0x5968c0[_0x5bd7e5(0x12b)](this['dispose$']))['subscribe'](_0xdc3991=>{var _0x5b3f8e=_0x5bd7e5;switch(_0xdc3991){case _0x5c74f4['SessionStatus'][_0x5b3f8e(0x177)]:this[_0x5b3f8e(0x1a0)]();break;case _0x5c74f4[_0x5b3f8e(0x13d)][_0x5b3f8e(0x18f)]:this[_0x5b3f8e(0x1e4)]();break;}}),this[_0x5bd7e5(0x1d7)]['event$']['pipe'](_0x5968c0[_0x5bd7e5(0x12b)](this[_0x5bd7e5(0x138)]))[_0x5bd7e5(0x1d3)](_0x447ef3=>{var _0x5ca42d=_0x5bd7e5;const {eventID:_0x2be307}=_0x447ef3;switch(_0x2be307){case _0x129ec3['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x5ca42d(0x1b5)](_0x447ef3);break;case _0x129ec3[_0x5ca42d(0x1fc)][_0x5ca42d(0x1bc)]:this[_0x5ca42d(0x154)](_0x447ef3);break;case _0x129ec3['CollaborationEvent'][_0x5ca42d(0x191)]:this[_0x5ca42d(0x1e0)]();break;case _0x129ec3[_0x5ca42d(0x1fc)][_0x5ca42d(0x20e)]:this[_0x5ca42d(0x12e)](_0x447ef3);break;}}));}[_0x1b8e03(0x189)](){var _0x6ac2b6=_0x1b8e03;this[_0x6ac2b6(0x1d7)][_0x6ac2b6(0x134)]({'eventID':_0x129ec3['CollaborationEvent'][_0x6ac2b6(0x180)],'data':{'unitID':this[_0x6ac2b6(0x195)],'userID':this[_0x6ac2b6(0x1d7)]['getMemberID']()}},this[_0x6ac2b6(0x195)]);}['stopPresenting'](){var _0x5962e4=_0x1b8e03;this[_0x5962e4(0x208)]===_0x5962e4(0x132)&&(this[_0x5962e4(0x1d1)][_0x5962e4(0x1a3)]('idle'),this['_collabSession']['send']({'eventID':_0x129ec3['CollaborationEvent'][_0x5962e4(0x191)],'data':{'unitID':this[_0x5962e4(0x195)]}},this['_unitID']));}[_0x1b8e03(0x1a2)](){var _0x551356=_0x1b8e03;this[_0x551356(0x208)]===_0x551356(0x213)&&(this[_0x551356(0x1d1)]['next']('following'),this[_0x551356(0x157)]());}[_0x1b8e03(0x19d)](){var _0x18b6ef=_0x1b8e03;this['_status']==='following'&&this[_0x18b6ef(0x17b)]();}['_handleNewHost'](_0x5a2172){var _0x562128=_0x1b8e03;const {presenter:_0x34027c}=_0x5a2172['data'],_0x5c990e=this[_0x562128(0x1d7)][_0x562128(0x14d)]();this['_presenter']=_0x34027c,_0x34027c===_0x5c990e?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x562128(0x208)]!=='not-following'&&(this[_0x562128(0x20b)](),this['_startFollowing']());}['_fetchOperations'](){var _0x24d2e0=_0x1b8e03;const _0x1430a7={'eventID':_0x129ec3[_0x24d2e0(0x1fc)][_0x24d2e0(0x1dc)]};this[_0x24d2e0(0x1d7)][_0x24d2e0(0x134)](_0x1430a7,this[_0x24d2e0(0x195)]);}[_0x1b8e03(0x1e0)](){var _0x37760e=_0x1b8e03;this[_0x37760e(0x139)]=null,this['_status']!==_0x37760e(0x132)&&this[_0x37760e(0x1c1)]();}[_0x1b8e03(0x12e)](_0x5a1b08){var _0x3d51a6=_0x1b8e03;if(this[_0x3d51a6(0x208)]===_0x3d51a6(0x1bd)&&this[_0x3d51a6(0x139)]===_0x5a1b08[_0x3d51a6(0x1f5)]['memberID']){const _0x15eb5b=_0x129ec3[_0x3d51a6(0x16c)](_0x5a1b08[_0x3d51a6(0x1f5)])[_0x3d51a6(0x19b)]['reverse']()[_0x3d51a6(0x1e3)](_0x514e1b=>_0x514e1b['id']===_0x295301['InsertSheetMutation']['id']);if(_0x15eb5b){const _0x4745db=_0x15eb5b[_0x3d51a6(0x147)][_0x3d51a6(0x1c2)],_0x384233=_0x15eb5b['params'][_0x3d51a6(0x156)]['id'];setTimeout(()=>{var _0x38220c=_0x3d51a6;this[_0x38220c(0x178)]['executeCommand'](_0x295301[_0x38220c(0x185)]['id'],{'unitId':_0x4745db,'subUnitId':_0x384233},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x8ab595=_0x1b8e03;this[_0x8ab595(0x1d1)]['next']('presenting');const _0x8df8aa=new Map(),_0x540a61=this[_0x8ab595(0x210)]=new _0x264c6a[(_0x8ab595(0x1eb))]();_0x540a61[_0x8ab595(0x203)](_0x264c6a['toDisposable'](()=>{var _0x4d21df=_0x8ab595;_0x8df8aa[_0x4d21df(0x207)](_0x5e413e=>_0x5e413e[_0x4d21df(0x1d9)]()),_0x8df8aa[_0x4d21df(0x1ea)]();})),_0x540a61[_0x8ab595(0x203)](this[_0x8ab595(0x178)][_0x8ab595(0x15f)](_0x3ab4d8=>{var _0x4aac12=_0x8ab595,_0x60e1ee;if(_0x3ab4d8[_0x4aac12(0x186)]!==_0x264c6a[_0x4aac12(0x196)][_0x4aac12(0x141)]||!this['_liveShareService'][_0x4aac12(0x170)](_0x3ab4d8['id']))return;const {id:_0x5ab848}=_0x3ab4d8;let _0x366d65;_0x8df8aa[_0x4aac12(0x166)](_0x5ab848)?_0x366d65=_0x8df8aa[_0x4aac12(0x1fe)](_0x5ab848):(_0x366d65=new _0x31b505['Subject'](),_0x8df8aa[_0x4aac12(0x137)](_0x5ab848,_0x366d65),_0x366d65['pipe'](_0x5968c0[_0x4aac12(0x165)]((_0x60e1ee=this['_configService'][_0x4aac12(0x1d0)](_0x40df4f))!=null?_0x60e1ee:_0x205f0d,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4d780a=>{var _0x93d15b=_0x4aac12;this[_0x93d15b(0x1d7)]['send']({'eventID':_0x129ec3[_0x93d15b(0x1fc)][_0x93d15b(0x1bc)],'data':{'unitID':this[_0x93d15b(0x195)],'operations':{[_0x4d780a['id']]:{'id':_0x4d780a['id'],'params':JSON[_0x93d15b(0x18c)](_0x4d780a['params'])}}}},this[_0x93d15b(0x195)]);})),_0x366d65[_0x4aac12(0x1a3)](_0x3ab4d8);})),this[_0x8ab595(0x1b9)][_0x8ab595(0x161)](this[_0x8ab595(0x195)])['forEach'](_0x30defe=>this[_0x8ab595(0x1d7)]['send']({'eventID':_0x129ec3[_0x8ab595(0x1fc)][_0x8ab595(0x1bc)],'data':{'unitID':this['_unitID'],'operations':{[_0x30defe['id']]:{'id':_0x30defe['id'],'params':JSON['stringify'](_0x30defe['params'])}}}},this[_0x8ab595(0x195)]));}[_0x1b8e03(0x20b)](){var _0x3b3b0a=_0x1b8e03,_0x5a8dec;this[_0x3b3b0a(0x1d1)][_0x3b3b0a(0x1a3)](_0x3b3b0a(0x14a)),(_0x5a8dec=this['_commandDisposable'])==null||_0x5a8dec['dispose'](),this['_commandDisposable']=null;}[_0x1b8e03(0x157)](){var _0x4e5b8d=_0x1b8e03,_0xa368ad;(_0xa368ad=this[_0x4e5b8d(0x210)])==null||_0xa368ad[_0x4e5b8d(0x1ee)](),this['_status$'][_0x4e5b8d(0x1a3)]('following');}['_beIdle'](){var _0x3c090e=_0x1b8e03,_0x13a3b3;this[_0x3c090e(0x1d1)][_0x3c090e(0x1a3)](_0x3c090e(0x14a)),(_0x13a3b3=this[_0x3c090e(0x210)])==null||_0x13a3b3[_0x3c090e(0x1ee)](),this[_0x3c090e(0x210)]=null;}['_stopFollowing'](){var _0x40ef67=_0x1b8e03,_0x397148;this[_0x40ef67(0x1d1)][_0x40ef67(0x1a3)](_0x40ef67(0x213)),(_0x397148=this[_0x40ef67(0x210)])==null||_0x397148[_0x40ef67(0x1ee)]();}[_0x1b8e03(0x154)](_0x4fcad2){var _0x30c062=_0x1b8e03;if([_0x30c062(0x132),_0x30c062(0x213),_0x30c062(0x179)][_0x30c062(0x1af)](this['_status'])||!_0x4fcad2[_0x30c062(0x1f5)][_0x30c062(0x1de)]||_0x4fcad2[_0x30c062(0x1f5)]['presenter']===this[_0x30c062(0x1d7)][_0x30c062(0x14d)]())return;this[_0x30c062(0x208)]===_0x30c062(0x14a)&&this[_0x30c062(0x157)]();const _0x2397ad=_0x4fcad2[_0x30c062(0x1f5)][_0x30c062(0x1ba)];Object['values'](_0x2397ad)[_0x30c062(0x207)](_0x43275c=>{var _0x3d8d75=_0x30c062;this[_0x3d8d75(0x178)]['executeCommand'](_0x43275c['id'],_0x43275c[_0x3d8d75(0x147)]?JSON[_0x3d8d75(0x193)](_0x43275c[_0x3d8d75(0x147)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x180d0a=_0x1b8e03,_0x3a8f3e;this[_0x180d0a(0x1d1)][_0x180d0a(0x1a3)](_0x180d0a(0x179)),(_0x3a8f3e=this[_0x180d0a(0x210)])==null||_0x3a8f3e[_0x180d0a(0x1ee)]();}[_0x1b8e03(0x1e4)](){var _0x5a618d=_0x1b8e03;this[_0x5a618d(0x1d1)][_0x5a618d(0x1a3)](_0x5a618d(0x14a)),this[_0x5a618d(0x13e)]();}},_0x37dde1[_0x1b8e03(0x1d6)]=_0x25a336([_0x23bde2(0x2,_0x264c6a[_0x1b8e03(0x14c)]),_0x23bde2(0x3,_0x264c6a[_0x1b8e03(0x169)](_0x929dc1)),_0x23bde2(0x4,_0x264c6a[_0x1b8e03(0x1ca)])],_0x37dde1[_0x1b8e03(0x1d6)]);function _0x1afbef(){var _0x3b0dfd=_0x1b8e03;const _0x247c11=_0x27d656[_0x3b0dfd(0x1b3)](_0x37dde1[_0x3b0dfd(0x158)]),_0x59b11a=_0x27d656[_0x3b0dfd(0x1b3)](_0x264c6a[_0x3b0dfd(0x20c)]),_0x156241=_0x27d656[_0x3b0dfd(0x181)](()=>_0x59b11a[_0x3b0dfd(0x13a)](_0x264c6a['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x588821,_0x2fe8b8]=_0x111dc7['useState'](null),[_0x6aded9,_0x3978ca]=_0x111dc7['useState'](_0x43c763[_0x3b0dfd(0x1cd)]),_0xd14f76=_0x111dc7[_0x3b0dfd(0x1ce)](null);return _0x111dc7[_0x3b0dfd(0x1e5)](()=>(_0x156241&&_0x247c11[_0x3b0dfd(0x1b6)](_0x156241[_0x3b0dfd(0x130)]())[_0x3b0dfd(0x198)](_0x1219c1=>{var _0x91bd91=_0x3b0dfd;_0x2fe8b8(_0x1219c1),_0xd14f76[_0x91bd91(0x17e)]=_0x1219c1[_0x91bd91(0x14e)][_0x91bd91(0x1d3)](_0x20801b=>{_0x3978ca(_0x20801b);});}),()=>{var _0x2f2a56=_0x3b0dfd,_0x4e9d99;(_0x4e9d99=_0xd14f76[_0x2f2a56(0x17e)])==null||_0x4e9d99[_0x2f2a56(0x15d)](),_0xd14f76[_0x2f2a56(0x17e)]=null;}),[_0x156241,_0x247c11]),_0x588821?_0x3ae493[_0x3b0dfd(0x17c)](_0x5ee3fa[_0x3b0dfd(0x1df)],{'align':_0x3b0dfd(0x175),'disabled':_0x6aded9===_0x43c763[_0x3b0dfd(0x177)],'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':_0x3ae493['jsx'](_0x3fb869,{'status':_0x6aded9,'coordinator':_0x588821}),'children':_0x3ae493['jsx'](_0x3b0dfd(0x206),{'className':_0x5ee3fa[_0x3b0dfd(0x18d)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x6aded9===_0x43c763['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x6aded9!==_0x43c763[_0x3b0dfd(0x177)]}),'type':_0x3b0dfd(0x206),'children':_0x3ae493[_0x3b0dfd(0x17c)](_0x5bde01,{'className':'univer-size-4'})})}):null;}function _0x3fb869(_0x4617f8){var _0x215643=_0x1b8e03;const {status:_0x4fdda2,coordinator:_0x1bcbe6}=_0x4617f8;switch(_0x4fdda2){case _0x43c763[_0x215643(0x1cd)]:return _0x3ae493['jsx'](_0x214675,{'coordinator':_0x1bcbe6});case _0x43c763[_0x215643(0x167)]:return _0x3ae493[_0x215643(0x17c)](_0x59f00d,{'coordinator':_0x1bcbe6});case _0x43c763[_0x215643(0x1bb)]:return _0x3ae493[_0x215643(0x17c)](_0x563b45,{'coordinator':_0x1bcbe6});case _0x43c763['OFFLINE']:return _0x3ae493[_0x215643(0x17c)](_0x30517f,{});case _0x43c763[_0x215643(0x1f8)]:return _0x3ae493['jsx'](_0x5e4ff6,{'coordinator':_0x1bcbe6});default:return null;}}function _0x214675(_0x1b8b8f){var _0x250c19=_0x1b8e03;const {coordinator:_0x2fb9e8}=_0x1b8b8f;return _0x3ae493['jsxs'](_0x3ae493[_0x250c19(0x1f7)],{'children':[_0x3ae493[_0x250c19(0x17c)](_0x250c19(0x153),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x250c19(0x133)}),_0x3ae493['jsx'](_0x5ee3fa[_0x250c19(0x1b4)],{'onClick':()=>_0x2fb9e8[_0x250c19(0x189)](),'children':'Start'})]});}function _0x59f00d(_0x567865){var _0xacf4b5=_0x1b8e03;const {coordinator:_0xa51486}=_0x567865;return _0x3ae493[_0xacf4b5(0x12f)](_0x3ae493[_0xacf4b5(0x1f7)],{'children':[_0x3ae493[_0xacf4b5(0x17c)]('div',{'className':_0xacf4b5(0x1aa),'children':_0xacf4b5(0x209)}),_0x3ae493[_0xacf4b5(0x17c)](_0x5ee3fa[_0xacf4b5(0x1b4)],{'onClick':()=>_0xa51486[_0xacf4b5(0x19d)](),'children':_0xacf4b5(0x1ac)})]});}function _0x563b45(_0x256189){var _0x38d136=_0x1b8e03;const {coordinator:_0x10af11}=_0x256189;return _0x3ae493[_0x38d136(0x12f)](_0x3ae493[_0x38d136(0x1f7)],{'children':[_0x3ae493[_0x38d136(0x17c)](_0x38d136(0x153),{'className':_0x38d136(0x1aa),'children':_0x38d136(0x1ae)}),_0x3ae493[_0x38d136(0x17c)](_0x5ee3fa[_0x38d136(0x1b4)],{'variant':_0x38d136(0x151),'onClick':()=>_0x10af11['startFollowing'](),'children':_0x38d136(0x16e)})]});}function _0x5e4ff6(_0x2b33fc){var _0x328652=_0x1b8e03;const {coordinator:_0x1ef666}=_0x2b33fc;return _0x3ae493[_0x328652(0x12f)](_0x3ae493[_0x328652(0x1f7)],{'children':[_0x3ae493[_0x328652(0x17c)](_0x328652(0x153),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x328652(0x1e1)}),_0x3ae493[_0x328652(0x17c)](_0x5ee3fa['Button'],{'variant':_0x328652(0x13f),'onClick':()=>_0x1ef666['stopPresenting'](),'children':_0x328652(0x19e)})]});}function _0x30517f(){var _0x35ffe3=_0x1b8e03;return _0x3ae493[_0x35ffe3(0x17c)](_0x3ae493[_0x35ffe3(0x1f7)],{'children':_0x35ffe3(0x1fa)});}var _0x29be5a=Object[_0x1b8e03(0x14f)],_0x24533f=(_0x362448,_0x2941f2,_0x57e129,_0x234ece)=>{var _0x3b821c=_0x1b8e03;for(var _0x3aad76=_0x234ece>0x1?void 0x0:_0x234ece?_0x29be5a(_0x2941f2,_0x57e129):_0x2941f2,_0x5a8c4b=_0x362448[_0x3b821c(0x128)]-0x1,_0x481ad7;_0x5a8c4b>=0x0;_0x5a8c4b--)(_0x481ad7=_0x362448[_0x5a8c4b])&&(_0x3aad76=_0x481ad7(_0x3aad76)||_0x3aad76);return _0x3aad76;},_0x365db1=(_0x3b2396,_0xc0da47)=>(_0x4237f7,_0x2d1a0e)=>_0xc0da47(_0x4237f7,_0x2d1a0e,_0x3b2396);_0x37dde1['DesktopLiveShareController']=class extends _0x264c6a['Disposable']{constructor(_0x1e6967,_0x4507f5){var _0x586171=_0x1b8e03;super(),this['_injector']=_0x1e6967,this[_0x586171(0x215)]=_0x4507f5,this['_mountLiveShare']();}[_0x1b8e03(0x17d)](){var _0x3539f9=_0x1b8e03;this[_0x3539f9(0x1e8)](this[_0x3539f9(0x215)]['registerComponent'](_0x27d656['BuiltInUIPart']['HEADER_MENU'],()=>_0x27d656[_0x3539f9(0x140)](_0x1afbef,this[_0x3539f9(0x212)])));}},_0x37dde1['DesktopLiveShareController']=_0x24533f([_0x365db1(0x0,_0x264c6a[_0x1b8e03(0x169)](_0x264c6a[_0x1b8e03(0x148)])),_0x365db1(0x1,_0x27d656[_0x1b8e03(0x1c3)])],_0x37dde1[_0x1b8e03(0x205)]);const _0x620ac3=_0x1b8e03(0x1b7),_0xa32172={};var _0x1664e2=Object['getOwnPropertyDescriptor'],_0x11da15=(_0x3d7787,_0x3e6b00,_0x55a334,_0x17fba9)=>{var _0x21d410=_0x1b8e03;for(var _0x4cd23a=_0x17fba9>0x1?void 0x0:_0x17fba9?_0x1664e2(_0x3e6b00,_0x55a334):_0x3e6b00,_0x25b739=_0x3d7787[_0x21d410(0x128)]-0x1,_0x1466f3;_0x25b739>=0x0;_0x25b739--)(_0x1466f3=_0x3d7787[_0x25b739])&&(_0x4cd23a=_0x1466f3(_0x4cd23a)||_0x4cd23a);return _0x4cd23a;},_0x754ec6=(_0x1e3ecf,_0x33031a)=>(_0x2c36b9,_0x34cd85)=>_0x33031a(_0x2c36b9,_0x34cd85,_0x1e3ecf);let _0x77b774=class extends _0x264c6a['Disposable']{constructor(_0xd06525){var _0x3d24f0=_0x1b8e03;super(),this[_0x3d24f0(0x1b9)]=_0xd06525,this[_0x3d24f0(0x13c)]();}[_0x1b8e03(0x13c)](){var _0x5751d7=_0x1b8e03;[_0x2e969f[_0x5751d7(0x1f0)]['id'],_0x2e969f[_0x5751d7(0x16f)]['id'],_0x295301[_0x5751d7(0x185)]['id']][_0x5751d7(0x207)](_0x129c38=>{var _0x5cca29=_0x5751d7;this[_0x5cca29(0x1e8)](this['_liveShareService']['registerSharedOperation'](_0x129c38));});}};_0x77b774=_0x11da15([_0x754ec6(0x0,_0x264c6a[_0x1b8e03(0x169)](_0x929dc1))],_0x77b774);var _0x5a9365=Object[_0x1b8e03(0x1cf)],_0xc383f6=Object[_0x1b8e03(0x14f)],_0x5379a7=(_0x3ca9b9,_0x2e82cf,_0x53a7a4)=>_0x2e82cf in _0x3ca9b9?_0x5a9365(_0x3ca9b9,_0x2e82cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53a7a4}):_0x3ca9b9[_0x2e82cf]=_0x53a7a4,_0x4ebc44=(_0x2bdb77,_0x2d193d,_0x24dd0c,_0x1eea91)=>{var _0x351c17=_0x1b8e03;for(var _0x154394=_0x1eea91>0x1?void 0x0:_0x1eea91?_0xc383f6(_0x2d193d,_0x24dd0c):_0x2d193d,_0x455944=_0x2bdb77[_0x351c17(0x128)]-0x1,_0x584804;_0x455944>=0x0;_0x455944--)(_0x584804=_0x2bdb77[_0x455944])&&(_0x154394=_0x584804(_0x154394)||_0x154394);return _0x154394;},_0xc8fcf3=(_0x43fd41,_0x5dab74)=>(_0x467571,_0x5c8166)=>_0x5dab74(_0x467571,_0x5c8166,_0x43fd41),_0x15249e=(_0x1dd6b0,_0x2e9340,_0x32d7c6)=>_0x5379a7(_0x1dd6b0,typeof _0x2e9340!=_0x1b8e03(0x162)?_0x2e9340+'':_0x2e9340,_0x32d7c6);const _0x10ac23=_0x1b8e03(0x19a);_0x37dde1[_0x1b8e03(0x197)]=class extends _0x264c6a['Plugin']{constructor(_0x29b82c=_0xa32172,_0x16c7f9,_0x1d06fc){var _0x38e56b=_0x1b8e03;super(),this[_0x38e56b(0x155)]=_0x29b82c,this[_0x38e56b(0x212)]=_0x16c7f9,this[_0x38e56b(0x1b0)]=_0x1d06fc;const {..._0x4d64e4}=_0x264c6a['merge']({},_0xa32172,this['_config']);this[_0x38e56b(0x1b0)][_0x38e56b(0x1f1)](_0x620ac3,_0x4d64e4);}['onStarting'](){var _0x44fdd6=_0x1b8e03;_0x264c6a[_0x44fdd6(0x142)](this[_0x44fdd6(0x212)],_0x264c6a[_0x44fdd6(0x204)]([[_0x929dc1],[_0x37dde1[_0x44fdd6(0x158)]],[_0x77b774],[_0x37dde1[_0x44fdd6(0x205)]]],this['_config'][_0x44fdd6(0x1da)])),_0x264c6a[_0x44fdd6(0x18b)](this[_0x44fdd6(0x212)],[[_0x77b774]]);}[_0x1b8e03(0x1db)](){var _0x4c4e0f=_0x1b8e03;_0x264c6a[_0x4c4e0f(0x18b)](this[_0x4c4e0f(0x212)],[[_0x37dde1[_0x4c4e0f(0x205)]]]);}},_0x15249e(_0x37dde1[_0x1b8e03(0x197)],'type',_0x264c6a[_0x1b8e03(0x12d)]['UNIVER_UNKNOWN']),_0x15249e(_0x37dde1[_0x1b8e03(0x197)],'pluginName',_0x10ac23),_0x37dde1[_0x1b8e03(0x197)]=_0x4ebc44([_0x264c6a['DependentOn'](_0x5c74f4['UniverCollaborationClientPlugin']),_0xc8fcf3(0x1,_0x264c6a['Inject'](_0x264c6a[_0x1b8e03(0x148)])),_0xc8fcf3(0x2,_0x264c6a[_0x1b8e03(0x14c)])],_0x37dde1[_0x1b8e03(0x197)]),_0x37dde1[_0x1b8e03(0x1ab)]=_0x1afbef,_0x37dde1[_0x1b8e03(0x1d4)]=_0x929dc1,_0x37dde1['LiveShareStatus']=_0x43c763,Object['defineProperty'](_0x37dde1,Symbol['toStringTag'],{'value':'Module'});}));
1
+ (function(_0x46f719,_0x1e7ed2){var _0x3d4df8=_0x374a,_0x3c98f7=_0x46f719();while(!![]){try{var _0x455eb7=-parseInt(_0x3d4df8(0x18c))/0x1+parseInt(_0x3d4df8(0x16e))/0x2*(-parseInt(_0x3d4df8(0x192))/0x3)+-parseInt(_0x3d4df8(0x1fd))/0x4+-parseInt(_0x3d4df8(0x1ec))/0x5+-parseInt(_0x3d4df8(0x20a))/0x6*(-parseInt(_0x3d4df8(0x20b))/0x7)+parseInt(_0x3d4df8(0x202))/0x8+parseInt(_0x3d4df8(0x14b))/0x9;if(_0x455eb7===_0x1e7ed2)break;else _0x3c98f7['push'](_0x3c98f7['shift']());}catch(_0x5dd231){_0x3c98f7['push'](_0x3c98f7['shift']());}}}(_0x4085,0x7119a),function(_0x3435e7,_0x3687db){var _0x429910=_0x374a;typeof exports==_0x429910(0x183)&&typeof module<'u'?_0x3687db(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==_0x429910(0x1fc)&&define[_0x429910(0x154)]?define([_0x429910(0x1d2),'@univerjs/core','@univerjs/ui','react/jsx-runtime','@univerjs/design','react','@univerjs-pro/collaboration',_0x429910(0x15b),_0x429910(0x1d4),'rxjs','rxjs/operators',_0x429910(0x1eb)],_0x3687db):(_0x3435e7=typeof globalThis<'u'?globalThis:_0x3435e7||self,_0x3687db(_0x3435e7[_0x429910(0x1a1)]={},_0x3435e7['UniverCore'],_0x3435e7['UniverUi'],_0x3435e7[_0x429910(0x200)],_0x3435e7[_0x429910(0x169)],_0x3435e7[_0x429910(0x200)],_0x3435e7[_0x429910(0x1ba)],_0x3435e7['UniverProCollaborationClient'],_0x3435e7[_0x429910(0x19d)],_0x3435e7[_0x429910(0x204)],_0x3435e7[_0x429910(0x204)][_0x429910(0x198)],_0x3435e7['UniverSheetsUi']));}(this,function(_0x282286,_0x524989,_0xd5901c,_0x21ee2b,_0x465bfe,_0x5b3961,_0x8a958e,_0x3dd07c,_0x3d486b,_0x58d28b,_0x3c7193,_0x318462){'use strict';var _0x12c4cc=_0x374a;var _0x1ff26c=Object[_0x12c4cc(0x179)],_0x2d5bb7=(_0x557203,_0x4de28f,_0x2a2b55)=>_0x4de28f in _0x557203?_0x1ff26c(_0x557203,_0x4de28f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a2b55}):_0x557203[_0x4de28f]=_0x2a2b55,_0x58f4cc=(_0x57839a,_0x458f66,_0x1eea5b)=>_0x2d5bb7(_0x57839a,typeof _0x458f66!=_0x12c4cc(0x1cb)?_0x458f66+'':_0x458f66,_0x1eea5b),_0x41c143=function(){var _0x52cb8e=_0x12c4cc;return _0x41c143=Object[_0x52cb8e(0x188)]||function(_0xfe8914){var _0x121f2f=_0x52cb8e;for(var _0x119e92,_0x38efdd=0x1,_0x533022=arguments[_0x121f2f(0x135)];_0x38efdd<_0x533022;_0x38efdd++){_0x119e92=arguments[_0x38efdd];for(var _0x24789f in _0x119e92)Object[_0x121f2f(0x1ad)][_0x121f2f(0x126)][_0x121f2f(0x160)](_0x119e92,_0x24789f)&&(_0xfe8914[_0x24789f]=_0x119e92[_0x24789f]);}return _0xfe8914;},_0x41c143[_0x52cb8e(0x141)](this,arguments);},_0x298b17=function(_0x4e8b9c,_0x214b68){var _0x2e9b6f=_0x12c4cc,_0x2a4e97={};for(var _0x1c008c in _0x4e8b9c)Object[_0x2e9b6f(0x1ad)][_0x2e9b6f(0x126)][_0x2e9b6f(0x160)](_0x4e8b9c,_0x1c008c)&&_0x214b68[_0x2e9b6f(0x16c)](_0x1c008c)<0x0&&(_0x2a4e97[_0x1c008c]=_0x4e8b9c[_0x1c008c]);if(_0x4e8b9c!=null&&typeof Object[_0x2e9b6f(0x182)]==_0x2e9b6f(0x1fc)){for(var _0x546e13=0x0,_0x1c008c=Object[_0x2e9b6f(0x182)](_0x4e8b9c);_0x546e13<_0x1c008c['length'];_0x546e13++)_0x214b68[_0x2e9b6f(0x16c)](_0x1c008c[_0x546e13])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x2e9b6f(0x160)](_0x4e8b9c,_0x1c008c[_0x546e13])&&(_0x2a4e97[_0x1c008c[_0x546e13]]=_0x4e8b9c[_0x1c008c[_0x546e13]]);}return _0x2a4e97;},_0x12dc84=_0x5b3961[_0x12c4cc(0x175)](function(_0x114d02,_0x16d92d){var _0x5e235a=_0x12c4cc,_0x2d0941=_0x114d02['icon'],_0x4dd0bf=_0x114d02['id'],_0x27a424=_0x114d02[_0x5e235a(0x1ef)],_0x2e5eeb=_0x114d02['extend'],_0x5002a2=_0x298b17(_0x114d02,[_0x5e235a(0x134),'id',_0x5e235a(0x1ef),_0x5e235a(0x17f)]),_0x525b='univerjs-icon\x20univerjs-icon-'[_0x5e235a(0x145)](_0x4dd0bf,'\x20')[_0x5e235a(0x145)](_0x27a424||'')[_0x5e235a(0x1d8)](),_0x3859a2=_0x5b3961['useRef']('_'['concat'](_0x144408()));return _0x33af4a(_0x2d0941,''[_0x5e235a(0x145)](_0x4dd0bf),{'defIds':_0x2d0941[_0x5e235a(0x184)],'idSuffix':_0x3859a2[_0x5e235a(0x148)]},_0x41c143({'ref':_0x16d92d,'className':_0x525b},_0x5002a2),_0x2e5eeb);});function _0x33af4a(_0x17812d,_0x5e73a1,_0x421c76,_0xf0b8b0,_0x5d211e){var _0x5a2d24=_0x12c4cc;return _0x5b3961[_0x5a2d24(0x12d)](_0x17812d['tag'],_0x41c143(_0x41c143({'key':_0x5e73a1},_0xb55774(_0x17812d,_0x421c76,_0x5d211e)),_0xf0b8b0),(_0x7cf50b(_0x17812d,_0x421c76)[_0x5a2d24(0x158)]||[])[_0x5a2d24(0x17d)](function(_0x43183f,_0x5e4813){var _0x469548=_0x5a2d24;return _0x33af4a(_0x43183f,''['concat'](_0x5e73a1,'-')[_0x469548(0x145)](_0x17812d[_0x469548(0x1f6)],'-')['concat'](_0x5e4813),_0x421c76,void 0x0,_0x5d211e);}));}function _0xb55774(_0x41c9a1,_0x195b8c,_0x2c502f){var _0x37b5b2=_0x12c4cc,_0x408979=_0x41c143({},_0x41c9a1[_0x37b5b2(0x193)]);_0x2c502f!=null&&_0x2c502f[_0x37b5b2(0x1b6)]&&_0x408979[_0x37b5b2(0x1a7)]===_0x37b5b2(0x1b6)&&(_0x408979[_0x37b5b2(0x1a7)]=_0x2c502f[_0x37b5b2(0x1b6)]),_0x41c9a1[_0x37b5b2(0x1f6)]==='mask'&&_0x408979['id']&&(_0x408979['id']=_0x408979['id']+_0x195b8c[_0x37b5b2(0x1e8)]),Object[_0x37b5b2(0x176)](_0x408979)['forEach'](function(_0x30fa3f){var _0x10e9f7=_0x37b5b2,_0x386971=_0x30fa3f[0x0],_0x1458f4=_0x30fa3f[0x1];_0x386971===_0x10e9f7(0x1a6)&&typeof _0x1458f4==_0x10e9f7(0x1c9)&&(_0x408979[_0x386971]=_0x1458f4[_0x10e9f7(0x206)](/url\(#(.*)\)/,_0x10e9f7(0x1c1)[_0x10e9f7(0x145)](_0x195b8c[_0x10e9f7(0x1e8)],')')));});var _0x1abe3b=_0x195b8c[_0x37b5b2(0x184)];return!_0x1abe3b||_0x1abe3b[_0x37b5b2(0x135)]===0x0||(_0x41c9a1['tag']===_0x37b5b2(0x163)&&_0x408979[_0x37b5b2(0x1bf)]&&(_0x408979[_0x37b5b2(0x1bf)]=_0x408979[_0x37b5b2(0x1bf)]+_0x195b8c[_0x37b5b2(0x1e8)]),Object['entries'](_0x408979)[_0x37b5b2(0x1e5)](function(_0x5732f9){var _0x1048f2=_0x37b5b2,_0x532cf2=_0x5732f9[0x0],_0x256bf0=_0x5732f9[0x1];typeof _0x256bf0=='string'&&(_0x408979[_0x532cf2]=_0x256bf0[_0x1048f2(0x206)](/url\(#(.*)\)/,_0x1048f2(0x1c1)[_0x1048f2(0x145)](_0x195b8c['idSuffix'],')')));})),_0x408979;}function _0x7cf50b(_0x5e3c16,_0x4dbfb2){var _0xf4763b=_0x12c4cc,_0x4f22a6,_0x3828e6=_0x4dbfb2['defIds'];return!_0x3828e6||_0x3828e6[_0xf4763b(0x135)]===0x0?_0x5e3c16:_0x5e3c16[_0xf4763b(0x1f6)]===_0xf4763b(0x1ca)&&(!((_0x4f22a6=_0x5e3c16[_0xf4763b(0x158)])===null||_0x4f22a6===void 0x0)&&_0x4f22a6[_0xf4763b(0x135)])?_0x41c143(_0x41c143({},_0x5e3c16),{'children':_0x5e3c16[_0xf4763b(0x158)][_0xf4763b(0x17d)](function(_0x175b02){var _0x1f90eb=_0xf4763b;return typeof _0x175b02['attrs']['id']==_0x1f90eb(0x1c9)&&_0x3828e6&&_0x3828e6[_0x1f90eb(0x170)](_0x175b02[_0x1f90eb(0x193)]['id'])?_0x41c143(_0x41c143({},_0x175b02),{'attrs':_0x41c143(_0x41c143({},_0x175b02[_0x1f90eb(0x193)]),{'id':_0x175b02[_0x1f90eb(0x193)]['id']+_0x4dbfb2['idSuffix']})}):_0x175b02;})}):_0x5e3c16;}function _0x144408(){var _0x34a54e=_0x12c4cc;return Math[_0x34a54e(0x1db)]()['toString'](0x24)[_0x34a54e(0x17a)](0x2,0x8);}_0x12dc84[_0x12c4cc(0x1ff)]=_0x12c4cc(0x19a);var _0x47a4b2={'tag':_0x12c4cc(0x18a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x12c4cc(0x172),'width':_0x12c4cc(0x1bb),'height':_0x12c4cc(0x1bb)},'children':[{'tag':_0x12c4cc(0x209),'attrs':{'fill':_0x12c4cc(0x1b8),'d':_0x12c4cc(0x197)}},{'tag':_0x12c4cc(0x209),'attrs':{'fill':_0x12c4cc(0x1b8),'d':_0x12c4cc(0x1de),'fillRule':_0x12c4cc(0x1aa),'clipRule':'evenodd'}}]},_0x41be7c=_0x5b3961[_0x12c4cc(0x175)](function(_0x16655a,_0x11db49){var _0x1b6018=_0x12c4cc;return _0x5b3961[_0x1b6018(0x12d)](_0x12dc84,Object['assign']({},_0x16655a,{'id':_0x1b6018(0x181),'ref':_0x11db49,'icon':_0x47a4b2}));});_0x41be7c['displayName']=_0x12c4cc(0x1be);class _0x547385 extends _0x524989['Disposable']{constructor(){var _0xbdf609=_0x12c4cc;super(...arguments),_0x58f4cc(this,'_sharedOperations',new Set()),_0x58f4cc(this,_0xbdf609(0x1ab),new Set());}[_0x12c4cc(0x156)](_0x307040){var _0x3c0094=_0x12c4cc;return this[_0x3c0094(0x1a9)][_0x3c0094(0x1dd)](_0x307040),_0x524989[_0x3c0094(0x185)](()=>this[_0x3c0094(0x1a9)][_0x3c0094(0x143)](_0x307040));}[_0x12c4cc(0x14d)](_0x3f8b28){var _0x980e0b=_0x12c4cc;return this[_0x980e0b(0x1ab)][_0x980e0b(0x1dd)](_0x3f8b28),_0x524989[_0x980e0b(0x185)](()=>this['_reporters'][_0x980e0b(0x143)](_0x3f8b28));}['shouldShareOperation'](_0x285e00){var _0x50993f=_0x12c4cc;return this[_0x50993f(0x1a9)][_0x50993f(0x173)](_0x285e00);}[_0x12c4cc(0x1c7)](_0x5266bd){var _0x560ecf=_0x12c4cc;return Array[_0x560ecf(0x20f)](this[_0x560ecf(0x1ab)])['map'](_0x6e3ce4=>_0x6e3ce4(_0x5266bd));}}var _0x20bff3=Object[_0x12c4cc(0x1d3)],_0x56e072=(_0x28922c,_0x1166f8,_0x3990b,_0x5417fa)=>{var _0x7b3388=_0x12c4cc;for(var _0x241821=_0x5417fa>0x1?void 0x0:_0x5417fa?_0x20bff3(_0x1166f8,_0x3990b):_0x1166f8,_0x2c1796=_0x28922c[_0x7b3388(0x135)]-0x1,_0x5d38d0;_0x2c1796>=0x0;_0x2c1796--)(_0x5d38d0=_0x28922c[_0x2c1796])&&(_0x241821=_0x5d38d0(_0x241821)||_0x241821);return _0x241821;},_0x59f97e=(_0x1c0a25,_0x5edf5f)=>(_0x4e60fd,_0x416bcf)=>_0x5edf5f(_0x4e60fd,_0x416bcf,_0x1c0a25);_0x282286[_0x12c4cc(0x1ed)]=class extends _0x524989[_0x12c4cc(0x164)]{constructor(_0x541c11,_0x489d2a,_0xe48490){var _0x306747=_0x12c4cc;super(),_0x58f4cc(this,_0x306747(0x19f),new Map()),(this[_0x306747(0x20d)]=_0x541c11,this['_injector']=_0x489d2a,this['_collabSessionService']=_0xe48490,this['_init']());}async['getLiveShareCoordinator'](_0x54a3f6){var _0x583ba1=_0x12c4cc;return this['_entities'][_0x583ba1(0x173)](_0x54a3f6)||await this[_0x583ba1(0x1b3)](_0x54a3f6),this[_0x583ba1(0x19f)][_0x583ba1(0x1f1)](_0x54a3f6);}['_init'](){var _0x7fcec9=_0x12c4cc;this[_0x7fcec9(0x20d)][_0x7fcec9(0x1c0)](_0x524989['UniverInstanceType'][_0x7fcec9(0x1a3)])[_0x7fcec9(0x127)](_0x3c7193[_0x7fcec9(0x1c5)](this['dispose$']))[_0x7fcec9(0x13a)](async _0x1ecef2=>{var _0x591d34=_0x7fcec9;const _0x4d5454=_0x1ecef2['getUnitId']();this[_0x591d34(0x19f)][_0x591d34(0x173)](_0x4d5454)||this['_startLiveShareCoordinator'](_0x4d5454);}),this[_0x7fcec9(0x20d)]['getTypeOfUnitDisposed$'](_0x524989[_0x7fcec9(0x1cd)][_0x7fcec9(0x1a3)])[_0x7fcec9(0x127)](_0x3c7193['takeUntil'](this[_0x7fcec9(0x137)]))[_0x7fcec9(0x13a)](_0x1cc028=>{var _0x2e046c=_0x7fcec9;const _0x31a67b=_0x1cc028[_0x2e046c(0x144)](),_0x6bcee2=this[_0x2e046c(0x19f)][_0x2e046c(0x1f1)](_0x31a67b);_0x6bcee2==null||_0x6bcee2['dispose']();});}async[_0x12c4cc(0x1b3)](_0x335f27){var _0x5e66f4=_0x12c4cc;const _0x3a86f4=await this['_collabSessionService'][_0x5e66f4(0x1a4)](_0x335f27),_0x1c9384=this[_0x5e66f4(0x208)][_0x5e66f4(0x1bc)](_0x282286[_0x5e66f4(0x1b5)],_0x335f27,_0x3a86f4);return _0x1c9384[_0x5e66f4(0x16a)](),this[_0x5e66f4(0x19f)]['set'](_0x335f27,_0x1c9384),_0x1c9384;}},_0x282286[_0x12c4cc(0x1ed)]=_0x56e072([_0x59f97e(0x0,_0x524989['IUniverInstanceService']),_0x59f97e(0x1,_0x524989[_0x12c4cc(0x16f)](_0x524989['Injector'])),_0x59f97e(0x2,_0x524989[_0x12c4cc(0x16f)](_0x3dd07c[_0x12c4cc(0x1f7)]))],_0x282286['LiveShareController']);var _0x55d2a7=(_0x350c46=>(_0x350c46[_0x12c4cc(0x151)]=_0x12c4cc(0x178),_0x350c46[_0x12c4cc(0x162)]='idle',_0x350c46[_0x12c4cc(0x1fb)]=_0x12c4cc(0x1cf),_0x350c46[_0x12c4cc(0x18b)]=_0x12c4cc(0x1af),_0x350c46[_0x12c4cc(0x1e9)]=_0x12c4cc(0x1e4),_0x350c46))(_0x55d2a7||{});const _0x177749=_0x12c4cc(0x194),_0x387356=0xc8;_0x282286[_0x12c4cc(0x1b5)]=class extends _0x524989['RxDisposable']{constructor(_0x40b26f,_0x1fc2a1,_0x20d0a5,_0x50f042,_0x379521){var _0x4602c7=_0x12c4cc;super(),_0x58f4cc(this,'_status$',new _0x58d28b[(_0x4602c7(0x1fa))](_0x4602c7(0x15c))),_0x58f4cc(this,_0x4602c7(0x149),this[_0x4602c7(0x1b9)][_0x4602c7(0x205)]()),_0x58f4cc(this,_0x4602c7(0x1d5),!0x1),_0x58f4cc(this,_0x4602c7(0x13d),null),_0x58f4cc(this,_0x4602c7(0x20c),null),(this[_0x4602c7(0x1b7)]=_0x40b26f,this[_0x4602c7(0x13c)]=_0x1fc2a1,this[_0x4602c7(0x1a5)]=_0x20d0a5,this[_0x4602c7(0x12b)]=_0x50f042,this[_0x4602c7(0x1d6)]=_0x379521);}get['_status'](){var _0x2bbe83=_0x12c4cc;return this['_status$'][_0x2bbe83(0x1f9)]();}[_0x12c4cc(0x17b)](){var _0x4511c2=_0x12c4cc,_0x2444d3;(_0x2444d3=this[_0x4511c2(0x13d)])==null||_0x2444d3[_0x4511c2(0x17b)](),this[_0x4511c2(0x1b9)][_0x4511c2(0x142)](_0x4511c2(0x15c)),this[_0x4511c2(0x1b9)][_0x4511c2(0x1ea)]();}[_0x12c4cc(0x16a)](){var _0x75e1d2=_0x12c4cc;this[_0x75e1d2(0x1d5)]||(this[_0x75e1d2(0x1d5)]=!0x0,this[_0x75e1d2(0x13c)]['sessionStatus$'][_0x75e1d2(0x127)](_0x3c7193[_0x75e1d2(0x1c5)](this[_0x75e1d2(0x137)]))[_0x75e1d2(0x13a)](_0x45fabc=>{var _0x47d1c8=_0x75e1d2;switch(_0x45fabc){case _0x3dd07c[_0x47d1c8(0x1ce)][_0x47d1c8(0x151)]:this['_handleOffline']();break;case _0x3dd07c[_0x47d1c8(0x1ce)][_0x47d1c8(0x1b4)]:this[_0x47d1c8(0x12e)]();break;}}),this['_collabSession'][_0x75e1d2(0x1b0)][_0x75e1d2(0x127)](_0x3c7193[_0x75e1d2(0x1c5)](this[_0x75e1d2(0x137)]))['subscribe'](_0x338bba=>{var _0x32a0e5=_0x75e1d2;const {eventID:_0xa948a1}=_0x338bba;switch(_0xa948a1){case _0x8a958e['CollaborationEvent'][_0x32a0e5(0x1e0)]:this[_0x32a0e5(0x1fe)](_0x338bba);break;case _0x8a958e['CollaborationEvent'][_0x32a0e5(0x168)]:this[_0x32a0e5(0x1f5)](_0x338bba);break;case _0x8a958e['CollaborationEvent'][_0x32a0e5(0x155)]:this[_0x32a0e5(0x1e1)]();break;case _0x8a958e[_0x32a0e5(0x167)][_0x32a0e5(0x140)]:this['_handleNewChangeSets'](_0x338bba);break;}}));}[_0x12c4cc(0x1c8)](){var _0x168d01=_0x12c4cc;this[_0x168d01(0x13c)][_0x168d01(0x15d)]({'eventID':_0x8a958e[_0x168d01(0x167)][_0x168d01(0x174)],'data':{'unitID':this[_0x168d01(0x1b7)],'userID':this[_0x168d01(0x13c)][_0x168d01(0x131)]()}},this[_0x168d01(0x1b7)]);}[_0x12c4cc(0x14f)](){var _0x29f26c=_0x12c4cc;this[_0x29f26c(0x1e6)]===_0x29f26c(0x1e4)&&(this[_0x29f26c(0x1b9)][_0x29f26c(0x142)](_0x29f26c(0x15c)),this[_0x29f26c(0x13c)]['send']({'eventID':_0x8a958e[_0x29f26c(0x167)][_0x29f26c(0x155)],'data':{'unitID':this['_unitID']}},this[_0x29f26c(0x1b7)]));}[_0x12c4cc(0x129)](){var _0x4e5a75=_0x12c4cc;this['_status']===_0x4e5a75(0x1af)&&(this[_0x4e5a75(0x1b9)]['next'](_0x4e5a75(0x1cf)),this[_0x4e5a75(0x1cc)]());}[_0x12c4cc(0x1f3)](){var _0x1be8fa=_0x12c4cc;this[_0x1be8fa(0x1e6)]===_0x1be8fa(0x1cf)&&this[_0x1be8fa(0x189)]();}['_handleNewHost'](_0x17aab2){var _0x43642b=_0x12c4cc;const {presenter:_0x57dfcc}=_0x17aab2[_0x43642b(0x15e)],_0x476352=this[_0x43642b(0x13c)][_0x43642b(0x131)]();this[_0x43642b(0x20c)]=_0x57dfcc,_0x57dfcc===_0x476352?(this['_stopFollowing'](),this[_0x43642b(0x211)]()):this['_status']!=='not-following'&&(this[_0x43642b(0x12c)](),this[_0x43642b(0x1cc)]());}['_fetchOperations'](){var _0x4d5202=_0x12c4cc;const _0x4ed123={'eventID':_0x8a958e[_0x4d5202(0x167)][_0x4d5202(0x1ee)]};this[_0x4d5202(0x13c)]['send'](_0x4ed123,this[_0x4d5202(0x1b7)]);}[_0x12c4cc(0x1e1)](){var _0x4295c3=_0x12c4cc;this[_0x4295c3(0x20c)]=null,this[_0x4295c3(0x1e6)]!==_0x4295c3(0x1e4)&&this[_0x4295c3(0x1c6)]();}['_handleNewChangeSets'](_0x1b68c4){var _0x55a92e=_0x12c4cc;if(this[_0x55a92e(0x1e6)]===_0x55a92e(0x1cf)&&this[_0x55a92e(0x20c)]===_0x1b68c4[_0x55a92e(0x15e)]['memberID']){const _0x3fbabd=_0x8a958e[_0x55a92e(0x19b)](_0x1b68c4[_0x55a92e(0x15e)])['mutations'][_0x55a92e(0x187)]()[_0x55a92e(0x1f0)](_0xe992a4=>_0xe992a4['id']===_0x3d486b[_0x55a92e(0x195)]['id']);if(_0x3fbabd){const _0x254dff=_0x3fbabd[_0x55a92e(0x18f)][_0x55a92e(0x1c3)],_0x37a55d=_0x3fbabd[_0x55a92e(0x18f)][_0x55a92e(0x1f4)]['id'];setTimeout(()=>{var _0x115fdc=_0x55a92e;this[_0x115fdc(0x1d6)][_0x115fdc(0x147)](_0x3d486b[_0x115fdc(0x17e)]['id'],{'unitId':_0x254dff,'subUnitId':_0x37a55d},{'fromCollab':!0x0});});}}}[_0x12c4cc(0x211)](){var _0x59f092=_0x12c4cc;this[_0x59f092(0x1b9)][_0x59f092(0x142)](_0x59f092(0x1e4));const _0x3d8b24=new Map(),_0x5f14e1=this['_commandDisposable']=new _0x524989[(_0x59f092(0x177))]();_0x5f14e1[_0x59f092(0x1dd)](_0x524989[_0x59f092(0x185)](()=>{var _0x2facaf=_0x59f092;_0x3d8b24[_0x2facaf(0x1e5)](_0x125f45=>_0x125f45[_0x2facaf(0x1ea)]()),_0x3d8b24[_0x2facaf(0x203)]();})),_0x5f14e1['add'](this[_0x59f092(0x1d6)][_0x59f092(0x171)](_0x16a171=>{var _0x5a8fa1=_0x59f092,_0x5126e0;if(_0x16a171[_0x5a8fa1(0x138)]!==_0x524989[_0x5a8fa1(0x1e3)]['OPERATION']||!this[_0x5a8fa1(0x12b)][_0x5a8fa1(0x13b)](_0x16a171['id']))return;const {id:_0x3bd8e9}=_0x16a171;let _0x296514;_0x3d8b24[_0x5a8fa1(0x173)](_0x3bd8e9)?_0x296514=_0x3d8b24[_0x5a8fa1(0x1f1)](_0x3bd8e9):(_0x296514=new _0x58d28b[(_0x5a8fa1(0x136))](),_0x3d8b24[_0x5a8fa1(0x1d7)](_0x3bd8e9,_0x296514),_0x296514[_0x5a8fa1(0x127)](_0x3c7193[_0x5a8fa1(0x213)]((_0x5126e0=this[_0x5a8fa1(0x1a5)][_0x5a8fa1(0x139)](_0x177749))!=null?_0x5126e0:_0x387356,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a8fa1(0x13a)](_0x2c207c=>{var _0x483298=_0x5a8fa1;this[_0x483298(0x13c)]['send']({'eventID':_0x8a958e['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2c207c['id']]:{'id':_0x2c207c['id'],'params':JSON[_0x483298(0x157)](_0x2c207c[_0x483298(0x18f)])}}}},this[_0x483298(0x1b7)]);})),_0x296514[_0x5a8fa1(0x142)](_0x16a171);})),this[_0x59f092(0x12b)]['getInitialStates'](this['_unitID'])[_0x59f092(0x1e5)](_0x2c094e=>this[_0x59f092(0x13c)]['send']({'eventID':_0x8a958e['CollaborationEvent'][_0x59f092(0x168)],'data':{'unitID':this[_0x59f092(0x1b7)],'operations':{[_0x2c094e['id']]:{'id':_0x2c094e['id'],'params':JSON['stringify'](_0x2c094e[_0x59f092(0x18f)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x316c75=_0x12c4cc,_0x26c32a;this['_status$'][_0x316c75(0x142)]('idle'),(_0x26c32a=this[_0x316c75(0x13d)])==null||_0x26c32a[_0x316c75(0x17b)](),this[_0x316c75(0x13d)]=null;}['_startFollowing'](){var _0x3d5fc3=_0x12c4cc,_0x566c72;(_0x566c72=this['_commandDisposable'])==null||_0x566c72[_0x3d5fc3(0x17b)](),this[_0x3d5fc3(0x1b9)]['next'](_0x3d5fc3(0x1cf));}[_0x12c4cc(0x1c6)](){var _0x5a2d06=_0x12c4cc,_0x277fcb;this['_status$'][_0x5a2d06(0x142)](_0x5a2d06(0x15c)),(_0x277fcb=this['_commandDisposable'])==null||_0x277fcb['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5e496e=_0x12c4cc,_0x321d21;this['_status$'][_0x5e496e(0x142)](_0x5e496e(0x1af)),(_0x321d21=this[_0x5e496e(0x13d)])==null||_0x321d21[_0x5e496e(0x17b)]();}[_0x12c4cc(0x1f5)](_0x4ea859){var _0x29eb9c=_0x12c4cc;if([_0x29eb9c(0x1e4),_0x29eb9c(0x1af),_0x29eb9c(0x178)]['includes'](this[_0x29eb9c(0x1e6)])||!_0x4ea859[_0x29eb9c(0x15e)][_0x29eb9c(0x1b2)]||_0x4ea859['data'][_0x29eb9c(0x1b2)]===this[_0x29eb9c(0x13c)][_0x29eb9c(0x131)]())return;this[_0x29eb9c(0x1e6)]===_0x29eb9c(0x15c)&&this[_0x29eb9c(0x1cc)]();const _0xf320c=_0x4ea859['data'][_0x29eb9c(0x166)];Object[_0x29eb9c(0x159)](_0xf320c)[_0x29eb9c(0x1e5)](_0x37c002=>{var _0x4f0924=_0x29eb9c;this[_0x4f0924(0x1d6)][_0x4f0924(0x147)](_0x37c002['id'],_0x37c002[_0x4f0924(0x18f)]?JSON[_0x4f0924(0x186)](_0x37c002[_0x4f0924(0x18f)]):null,{'fromCollab':!0x0});});}[_0x12c4cc(0x1c2)](){var _0x3e049c=_0x12c4cc,_0x2f6a95;this[_0x3e049c(0x1b9)][_0x3e049c(0x142)](_0x3e049c(0x178)),(_0x2f6a95=this[_0x3e049c(0x13d)])==null||_0x2f6a95[_0x3e049c(0x17b)]();}[_0x12c4cc(0x12e)](){var _0x2abb29=_0x12c4cc;this[_0x2abb29(0x1b9)]['next'](_0x2abb29(0x15c)),this[_0x2abb29(0x130)]();}},_0x282286[_0x12c4cc(0x1b5)]=_0x56e072([_0x59f97e(0x2,_0x524989[_0x12c4cc(0x146)]),_0x59f97e(0x3,_0x524989[_0x12c4cc(0x16f)](_0x547385)),_0x59f97e(0x4,_0x524989[_0x12c4cc(0x133)])],_0x282286[_0x12c4cc(0x1b5)]);function _0x441bf1(){var _0x200863=_0x12c4cc;const _0x4f6ba5=_0xd5901c[_0x200863(0x1bd)](_0x282286['LiveShareController']),_0x1d7323=_0xd5901c[_0x200863(0x1bd)](_0x524989[_0x200863(0x1da)]),_0x1ba249=_0xd5901c[_0x200863(0x17c)](()=>_0x1d7323['getCurrentTypeOfUnit$'](_0x524989['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x384749,_0x48a0d3]=_0x5b3961[_0x200863(0x1e7)](null),[_0x52fdee,_0xe499af]=_0x5b3961[_0x200863(0x1e7)](_0x55d2a7[_0x200863(0x162)]),_0x14188c=_0x5b3961[_0x200863(0x1a0)](null);return _0x5b3961[_0x200863(0x13e)](()=>(_0x1ba249&&_0x4f6ba5['getLiveShareCoordinator'](_0x1ba249[_0x200863(0x144)]())['then'](_0x17ffda=>{var _0x24e530=_0x200863;_0x48a0d3(_0x17ffda),_0x14188c[_0x24e530(0x148)]=_0x17ffda[_0x24e530(0x149)][_0x24e530(0x13a)](_0x14a35a=>{_0xe499af(_0x14a35a);});}),()=>{var _0x23c8a6=_0x200863,_0x19dbff;(_0x19dbff=_0x14188c[_0x23c8a6(0x148)])==null||_0x19dbff[_0x23c8a6(0x150)](),_0x14188c['current']=null;}),[_0x1ba249,_0x4f6ba5]),_0x384749?_0x21ee2b[_0x200863(0x1e2)](_0x465bfe['Dropdown'],{'align':_0x200863(0x1ac),'disabled':_0x52fdee===_0x55d2a7[_0x200863(0x151)],'className':_0x200863(0x16b),'overlay':_0x21ee2b[_0x200863(0x1e2)](_0x41b7d8,{'status':_0x52fdee,'coordinator':_0x384749}),'children':_0x21ee2b[_0x200863(0x1e2)](_0x200863(0x1d1),{'className':_0x465bfe[_0x200863(0x191)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x52fdee===_0x55d2a7[_0x200863(0x151)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52fdee!==_0x55d2a7[_0x200863(0x151)]}),'type':'button','children':_0x21ee2b['jsx'](_0x41be7c,{'className':_0x200863(0x1c4)})})}):null;}function _0x41b7d8(_0xb53f89){var _0x4761f6=_0x12c4cc;const {status:_0x52589a,coordinator:_0x56d825}=_0xb53f89;switch(_0x52589a){case _0x55d2a7[_0x4761f6(0x162)]:return _0x21ee2b[_0x4761f6(0x1e2)](_0x33869f,{'coordinator':_0x56d825});case _0x55d2a7[_0x4761f6(0x1fb)]:return _0x21ee2b[_0x4761f6(0x1e2)](_0x7bbb85,{'coordinator':_0x56d825});case _0x55d2a7[_0x4761f6(0x18b)]:return _0x21ee2b[_0x4761f6(0x1e2)](_0xf90dcc,{'coordinator':_0x56d825});case _0x55d2a7[_0x4761f6(0x151)]:return _0x21ee2b['jsx'](_0x510b6f,{});case _0x55d2a7[_0x4761f6(0x1e9)]:return _0x21ee2b[_0x4761f6(0x1e2)](_0x4adfb0,{'coordinator':_0x56d825});default:return null;}}function _0x33869f(_0x454ea7){var _0x4e7846=_0x12c4cc;const {coordinator:_0x52b322}=_0x454ea7;return _0x21ee2b[_0x4e7846(0x153)](_0x21ee2b[_0x4e7846(0x14e)],{'children':[_0x21ee2b['jsx'](_0x4e7846(0x14c),{'className':_0x4e7846(0x18d),'children':_0x4e7846(0x13f)}),_0x21ee2b[_0x4e7846(0x1e2)](_0x465bfe[_0x4e7846(0x1ae)],{'onClick':()=>_0x52b322[_0x4e7846(0x1c8)](),'children':'Start'})]});}function _0x7bbb85(_0x40dbd0){var _0x1dca65=_0x12c4cc;const {coordinator:_0x7502f3}=_0x40dbd0;return _0x21ee2b['jsxs'](_0x21ee2b[_0x1dca65(0x14e)],{'children':[_0x21ee2b['jsx'](_0x1dca65(0x14c),{'className':_0x1dca65(0x18d),'children':_0x1dca65(0x1d9)}),_0x21ee2b[_0x1dca65(0x1e2)](_0x465bfe[_0x1dca65(0x1ae)],{'onClick':()=>_0x7502f3[_0x1dca65(0x1f3)](),'children':_0x1dca65(0x207)})]});}function _0xf90dcc(_0x3a738c){var _0x38d11d=_0x12c4cc;const {coordinator:_0x21b0b6}=_0x3a738c;return _0x21ee2b[_0x38d11d(0x153)](_0x21ee2b[_0x38d11d(0x14e)],{'children':[_0x21ee2b['jsx'](_0x38d11d(0x14c),{'className':_0x38d11d(0x18d),'children':_0x38d11d(0x1a2)}),_0x21ee2b[_0x38d11d(0x1e2)](_0x465bfe['Button'],{'variant':'text','onClick':()=>_0x21b0b6[_0x38d11d(0x129)](),'children':'Start\x20following'})]});}function _0x4adfb0(_0x2f5d5d){var _0x5196d0=_0x12c4cc;const {coordinator:_0x5d39da}=_0x2f5d5d;return _0x21ee2b[_0x5196d0(0x153)](_0x21ee2b[_0x5196d0(0x14e)],{'children':[_0x21ee2b[_0x5196d0(0x1e2)](_0x5196d0(0x14c),{'className':_0x5196d0(0x18d),'children':_0x5196d0(0x1f8)}),_0x21ee2b[_0x5196d0(0x1e2)](_0x465bfe[_0x5196d0(0x1ae)],{'variant':_0x5196d0(0x1df),'onClick':()=>_0x5d39da['stopPresenting'](),'children':_0x5196d0(0x201)})]});}function _0x510b6f(){var _0x331107=_0x12c4cc;return _0x21ee2b[_0x331107(0x1e2)](_0x21ee2b[_0x331107(0x14e)],{'children':_0x331107(0x1a8)});}var _0x18649e=Object['getOwnPropertyDescriptor'],_0x140fc5=(_0x271d4c,_0x1ac5fd,_0x1d8502,_0x223376)=>{var _0x5c08f3=_0x12c4cc;for(var _0xf307a6=_0x223376>0x1?void 0x0:_0x223376?_0x18649e(_0x1ac5fd,_0x1d8502):_0x1ac5fd,_0x9ed6d8=_0x271d4c[_0x5c08f3(0x135)]-0x1,_0x3a4909;_0x9ed6d8>=0x0;_0x9ed6d8--)(_0x3a4909=_0x271d4c[_0x9ed6d8])&&(_0xf307a6=_0x3a4909(_0xf307a6)||_0xf307a6);return _0xf307a6;},_0x2d31bf=(_0x441b89,_0x3e478b)=>(_0x36f205,_0x16abeb)=>_0x3e478b(_0x36f205,_0x16abeb,_0x441b89);_0x282286[_0x12c4cc(0x20e)]=class extends _0x524989['Disposable']{constructor(_0x36bad1,_0x2d6aa6){var _0x362357=_0x12c4cc;super(),this[_0x362357(0x208)]=_0x36bad1,this[_0x362357(0x16d)]=_0x2d6aa6,this[_0x362357(0x1dc)]();}[_0x12c4cc(0x1dc)](){var _0x51ecaf=_0x12c4cc;this[_0x51ecaf(0x128)](this['_uiPartsService'][_0x51ecaf(0x1d0)](_0xd5901c[_0x51ecaf(0x18e)]['HEADER_MENU'],()=>_0xd5901c[_0x51ecaf(0x214)](_0x441bf1,this[_0x51ecaf(0x208)])));}},_0x282286['DesktopLiveShareController']=_0x140fc5([_0x2d31bf(0x0,_0x524989[_0x12c4cc(0x16f)](_0x524989[_0x12c4cc(0x190)])),_0x2d31bf(0x1,_0xd5901c[_0x12c4cc(0x199)])],_0x282286[_0x12c4cc(0x20e)]);const _0x55a5ae='live-share.config',_0x395352={};var _0x53e952=Object['getOwnPropertyDescriptor'],_0x311606=(_0x5a3bcd,_0x46b5c2,_0x3a3e67,_0x551e4a)=>{var _0x2d0ef0=_0x12c4cc;for(var _0x1b448c=_0x551e4a>0x1?void 0x0:_0x551e4a?_0x53e952(_0x46b5c2,_0x3a3e67):_0x46b5c2,_0x2b5d07=_0x5a3bcd[_0x2d0ef0(0x135)]-0x1,_0x29522b;_0x2b5d07>=0x0;_0x2b5d07--)(_0x29522b=_0x5a3bcd[_0x2b5d07])&&(_0x1b448c=_0x29522b(_0x1b448c)||_0x1b448c);return _0x1b448c;},_0x5532d1=(_0x208565,_0x52fd14)=>(_0x57c725,_0x394c7d)=>_0x52fd14(_0x57c725,_0x394c7d,_0x208565);let _0x59079a=class extends _0x524989[_0x12c4cc(0x1b1)]{constructor(_0x4234e0){var _0x50d4d3=_0x12c4cc;super(),this['_liveShareService']=_0x4234e0,this[_0x50d4d3(0x1d5)]();}[_0x12c4cc(0x1d5)](){var _0x29afc4=_0x12c4cc;[_0x318462['SetZoomRatioOperation']['id'],_0x318462[_0x29afc4(0x210)]['id'],_0x3d486b[_0x29afc4(0x17e)]['id']][_0x29afc4(0x1e5)](_0x170dba=>{var _0x1a4653=_0x29afc4;this[_0x1a4653(0x128)](this[_0x1a4653(0x12b)][_0x1a4653(0x156)](_0x170dba));});}};_0x59079a=_0x311606([_0x5532d1(0x0,_0x524989[_0x12c4cc(0x16f)](_0x547385))],_0x59079a);var _0x594f33=Object['defineProperty'],_0x23a5ea=Object[_0x12c4cc(0x1d3)],_0x53e256=(_0x5984e0,_0x461da7,_0x41c117)=>_0x461da7 in _0x5984e0?_0x594f33(_0x5984e0,_0x461da7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41c117}):_0x5984e0[_0x461da7]=_0x41c117,_0x2569ff=(_0x2a0f33,_0x51f44f,_0x1e0b9b,_0x174427)=>{for(var _0x2873d1=_0x174427>0x1?void 0x0:_0x174427?_0x23a5ea(_0x51f44f,_0x1e0b9b):_0x51f44f,_0x577664=_0x2a0f33['length']-0x1,_0x98c0f;_0x577664>=0x0;_0x577664--)(_0x98c0f=_0x2a0f33[_0x577664])&&(_0x2873d1=_0x98c0f(_0x2873d1)||_0x2873d1);return _0x2873d1;},_0x22e388=(_0x20a730,_0x59269e)=>(_0x195073,_0x3cd1b4)=>_0x59269e(_0x195073,_0x3cd1b4,_0x20a730),_0x52ad69=(_0x56577b,_0x104fca,_0x3c3dca)=>_0x53e256(_0x56577b,typeof _0x104fca!=_0x12c4cc(0x1cb)?_0x104fca+'':_0x104fca,_0x3c3dca);const _0x4baebc='UNIVER_LIVE_SHARE_PLUGIN';_0x282286['UniverLiveSharePlugin']=class extends _0x524989[_0x12c4cc(0x15f)]{constructor(_0x3e29c5=_0x395352,_0x5d9a75,_0x3466e2){var _0x7a8663=_0x12c4cc;super(),this[_0x7a8663(0x19c)]=_0x3e29c5,this[_0x7a8663(0x208)]=_0x5d9a75,this[_0x7a8663(0x1a5)]=_0x3466e2;const {..._0x86e51d}=_0x524989['merge']({},_0x395352,this[_0x7a8663(0x19c)]);this['_configService'][_0x7a8663(0x12a)](_0x55a5ae,_0x86e51d);}['onStarting'](){var _0x29cd33=_0x12c4cc;_0x524989[_0x29cd33(0x152)](this[_0x29cd33(0x208)],_0x524989['mergeOverrideWithDependencies']([[_0x547385],[_0x282286[_0x29cd33(0x1ed)]],[_0x59079a],[_0x282286[_0x29cd33(0x20e)]]],this[_0x29cd33(0x19c)][_0x29cd33(0x165)])),_0x524989['touchDependencies'](this[_0x29cd33(0x208)],[[_0x59079a]]);}[_0x12c4cc(0x161)](){var _0x1d5b1c=_0x12c4cc;_0x524989[_0x1d5b1c(0x14a)](this[_0x1d5b1c(0x208)],[[_0x282286[_0x1d5b1c(0x20e)]]]);}},_0x52ad69(_0x282286[_0x12c4cc(0x180)],'type',_0x524989['UniverInstanceType'][_0x12c4cc(0x19e)]),_0x52ad69(_0x282286[_0x12c4cc(0x180)],_0x12c4cc(0x196),_0x4baebc),_0x282286[_0x12c4cc(0x180)]=_0x2569ff([_0x524989[_0x12c4cc(0x15a)](_0x3dd07c['UniverCollaborationClientPlugin']),_0x22e388(0x1,_0x524989[_0x12c4cc(0x16f)](_0x524989['Injector'])),_0x22e388(0x2,_0x524989[_0x12c4cc(0x146)])],_0x282286[_0x12c4cc(0x180)]),_0x282286[_0x12c4cc(0x1f2)]=_0x441bf1,_0x282286[_0x12c4cc(0x12f)]=_0x547385,_0x282286[_0x12c4cc(0x132)]=_0x55d2a7,Object[_0x12c4cc(0x179)](_0x282286,Symbol[_0x12c4cc(0x212)],{'value':'Module'});}));function _0x374a(_0xfa316f,_0x419e50){var _0x4085c5=_0x4085();return _0x374a=function(_0x374a87,_0x38333f){_0x374a87=_0x374a87-0x126;var _0x1a136c=_0x4085c5[_0x374a87];return _0x1a136c;},_0x374a(_0xfa316f,_0x419e50);}function _0x4085(){var _0x45c096=['Stop\x20following','_injector','path','546UQyCGM','6181OIuXKm','_presenter','_univerInstanceService','DesktopLiveShareController','from','SetScrollOperation','_startPresenting','toStringTag','throttleTime','connectInjector','hasOwnProperty','pipe','disposeWithMe','startFollowing','setConfig','_liveShareService','_stopPresenting','createElement','_handleOnline','LiveShareService','_fetchOperations','getMemberID','LiveShareStatus','ICommandService','icon','length','Subject','dispose$','type','getConfig','subscribe','shouldShareOperation','_collabSession','_commandDisposable','useEffect','Present\x20this\x20document','NEW_CHANGESETS','apply','next','delete','getUnitId','concat','IConfigService','executeCommand','current','status$','touchDependencies','14667120oMQpQZ','div','registerInitialStateReporter','Fragment','stopPresenting','unsubscribe','OFFLINE','registerDependencies','jsxs','amd','LIVESHARE_TERMINATE','registerSharedOperation','stringify','children','values','DependentOn','@univerjs-pro/collaboration-client','idle','send','data','Plugin','call','onRendered','IDLE','use','RxDisposable','override','operations','CollaborationEvent','LIVESHARE_OPERATION','UniverDesign','init','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','indexOf','_uiPartsService','690994HYNmci','Inject','includes','onCommandExecuted','0\x200\x2017\x2017','has','LIVESHARE_REQUEST_HOST','forwardRef','entries','DisposableCollection','offline','defineProperty','substring','dispose','useObservable','map','SetWorksheetActiveOperation','extend','UniverLiveSharePlugin','live-share-icon','getOwnPropertySymbols','object','defIds','toDisposable','parse','reverse','assign','_stopFollowing','svg','NOT_FOLLOWING','256428hpOByG','univer-mb-3\x20univer-w-full\x20univer-text-sm','BuiltInUIPart','params','Injector','clsx','3aOMAgD','attrs','SAME_OPERATION_SHARE_INTERVAL','InsertSheetMutation','pluginName','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','operators','IUIPartsService','UniverIcon','parseProtocolChangeset','_config','UniverSheets','UNIVER_UNKNOWN','_entities','useRef','UniverProLiveShare','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_SHEET','requireSession','_configService','mask','fill','You\x27are\x20offline.','_sharedOperations','evenodd','_reporters','end','prototype','Button','not-following','event$','Disposable','presenter','_startLiveShareCoordinator','ONLINE','LiveShareCoordinator','colorChannel1','_unitID','currentColor','_status$','UniverProCollaboration','1em','createInstance','useDependency','LiveShareIcon','xlink:href','getTypeOfUnitAdded$','url(#$1','_handleOffline','unitId','univer-size-4','takeUntil','_beIdle','getInitialStates','tryStartPresenting','string','defs','symbol','_startFollowing','UniverInstanceType','SessionStatus','following','registerComponent','button','exports','getOwnPropertyDescriptor','@univerjs/sheets','_init','_commandService','set','trim','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','random','_mountLiveShare','add','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','default','LIVESHARE_NEW_HOST','_handleTerminate','jsx','CommandType','presenting','forEach','_status','useState','idSuffix','PRESENTING','complete','@univerjs/sheets-ui','4058390xJuZWE','LiveShareController','LIVESHARE_FETCH_OPERATIONS','className','find','get','LiveShare','stopFollowing','sheet','_handleOperation','tag','CollaborationSessionService','You\x27re\x20presenting\x20the\x20document','getValue','BehaviorSubject','FOLLOWING','function','3013988wuPRxd','_handleNewHost','displayName','React','Stop\x20presenting','7362600xeJLgb','clear','rxjs','asObservable','replace'];_0x4085=function(){return _0x45c096;};return _0x4085();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.6",
50
- "@univerjs-pro/collaboration": "0.10.5",
51
- "@univerjs-pro/collaboration-client": "0.10.5",
52
- "@univerjs/core": "0.10.5",
53
- "@univerjs/sheets": "0.10.5",
54
- "@univerjs/sheets-ui": "0.10.5",
55
- "@univerjs/design": "0.10.5",
56
- "@univerjs/ui": "0.10.5"
50
+ "@univerjs-pro/collaboration": "0.10.6",
51
+ "@univerjs-pro/collaboration-client": "0.10.6",
52
+ "@univerjs/core": "0.10.6",
53
+ "@univerjs/design": "0.10.6",
54
+ "@univerjs/sheets": "0.10.6",
55
+ "@univerjs/ui": "0.10.6",
56
+ "@univerjs/sheets-ui": "0.10.6"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -63,7 +63,7 @@
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^7.1.3",
65
65
  "vitest": "^3.2.4",
66
- "@univerjs-infra/shared": "0.10.5",
66
+ "@univerjs-infra/shared": "0.10.6",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {