@univerjs-pro/live-share 0.8.1-nightly.202506171607 → 0.8.1-nightly.202506181607
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x466a9f=_0x5997;(function(_0x5aa950,_0x2a3f6d){var _0x507314=_0x5997,_0x2c2e40=_0x5aa950();while(!![]){try{var _0xdd64d7=-parseInt(_0x507314(0x148))/0x1*(-parseInt(_0x507314(0x160))/0x2)+-parseInt(_0x507314(0x154))/0x3*(parseInt(_0x507314(0x14d))/0x4)+parseInt(_0x507314(0xe8))/0x5+-parseInt(_0x507314(0x147))/0x6*(parseInt(_0x507314(0xe0))/0x7)+-parseInt(_0x507314(0x126))/0x8+-parseInt(_0x507314(0xcc))/0x9+parseInt(_0x507314(0x18f))/0xa;if(_0xdd64d7===_0x2a3f6d)break;else _0x2c2e40['push'](_0x2c2e40['shift']());}catch(_0x4eefef){_0x2c2e40['push'](_0x2c2e40['shift']());}}}(_0x2ee6,0x7c4e8));var U=Object['defineProperty'],F=(_0x3fe1f3,_0x4ceb71,_0x477c13)=>_0x4ceb71 in _0x3fe1f3?U(_0x3fe1f3,_0x4ceb71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x477c13}):_0x3fe1f3[_0x4ceb71]=_0x477c13,v=(_0x5e4c20,_0x23919b,_0x221f43)=>F(_0x5e4c20,typeof _0x23919b!=_0x466a9f(0x120)?_0x23919b+'':_0x23919b,_0x221f43);Object[_0x466a9f(0x19d)](exports,Symbol[_0x466a9f(0x163)],{'value':_0x466a9f(0x12f)});const m=require(_0x466a9f(0x1a6)),o=require(_0x466a9f(0x143)),C=require('@univerjs/sheets'),w=require(_0x466a9f(0x17b)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require(_0x466a9f(0x11e)),_=require(_0x466a9f(0x1a4)),D=require(_0x466a9f(0x117)),b=require(_0x466a9f(0x102)),$=_0x466a9f(0x144),x={};class O extends o['Disposable']{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0xd417cd){var _0x4afd2e=_0x466a9f;return this[_0x4afd2e(0x10f)][_0x4afd2e(0x173)](_0xd417cd),o[_0x4afd2e(0xe4)](()=>this[_0x4afd2e(0x10f)]['delete'](_0xd417cd));}[_0x466a9f(0xd9)](_0x2ffb03){var _0x58163e=_0x466a9f;return this[_0x58163e(0xe1)][_0x58163e(0x173)](_0x2ffb03),o['toDisposable'](()=>this[_0x58163e(0xe1)][_0x58163e(0xe5)](_0x2ffb03));}['shouldShareOperation'](_0x56eca3){var _0x25c829=_0x466a9f;return this[_0x25c829(0x10f)][_0x25c829(0x130)](_0x56eca3);}[_0x466a9f(0x141)](_0x2e3213){var _0x422008=_0x466a9f;return Array[_0x422008(0x1ae)](this['_reporters'])['map'](_0x5cb0bb=>_0x5cb0bb(_0x2e3213));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x2f66b0,_0xc6c40,_0x4560ea,_0x10daee)=>{var _0x234e75=_0x466a9f;for(var _0x94c825=_0x10daee>0x1?void 0x0:_0x10daee?H(_0xc6c40,_0x4560ea):_0xc6c40,_0x540df1=_0x2f66b0[_0x234e75(0x198)]-0x1,_0x51a8fb;_0x540df1>=0x0;_0x540df1--)(_0x51a8fb=_0x2f66b0[_0x540df1])&&(_0x94c825=_0x51a8fb(_0x94c825)||_0x94c825);return _0x94c825;},k=(_0x1d57cf,_0x10a738)=>(_0xf06280,_0x5ee9ff)=>_0x10a738(_0xf06280,_0x5ee9ff,_0x1d57cf);let E=class extends o['Disposable']{constructor(_0x135e06){var _0x33a4d5=_0x466a9f;super(),this[_0x33a4d5(0x131)]=_0x135e06,this['_init']();}[_0x466a9f(0x13c)](){var _0x511372=_0x466a9f;[w['SetZoomRatioOperation']['id'],w[_0x511372(0x184)]['id'],C['SetWorksheetActiveOperation']['id']][_0x511372(0x149)](_0x3e7a20=>{var _0x3e36fd=_0x511372;this[_0x3e36fd(0x150)](this[_0x3e36fd(0x131)]['registerSharedOperation'](_0x3e7a20));});}};E=V([k(0x0,o[_0x466a9f(0x182)](O))],E);var u=function(){var _0x3135e4=_0x466a9f;return u=Object[_0x3135e4(0xd7)]||function(_0x2273c7){var _0x5bad0f=_0x3135e4;for(var _0x1a423a,_0x25dc89=0x1,_0x2d0faf=arguments[_0x5bad0f(0x198)];_0x25dc89<_0x2d0faf;_0x25dc89++){_0x1a423a=arguments[_0x25dc89];for(var _0x29b376 in _0x1a423a)Object['prototype'][_0x5bad0f(0x136)]['call'](_0x1a423a,_0x29b376)&&(_0x2273c7[_0x29b376]=_0x1a423a[_0x29b376]);}return _0x2273c7;},u['apply'](this,arguments);},M=function(_0x470957,_0x2b6d23){var _0x5d0165=_0x466a9f,_0x581df7={};for(var _0x231356 in _0x470957)Object[_0x5d0165(0x16d)][_0x5d0165(0x136)][_0x5d0165(0xd3)](_0x470957,_0x231356)&&_0x2b6d23[_0x5d0165(0x18c)](_0x231356)<0x0&&(_0x581df7[_0x231356]=_0x470957[_0x231356]);if(_0x470957!=null&&typeof Object[_0x5d0165(0x199)]==_0x5d0165(0xd8)){for(var _0x3d319c=0x0,_0x231356=Object[_0x5d0165(0x199)](_0x470957);_0x3d319c<_0x231356[_0x5d0165(0x198)];_0x3d319c++)_0x2b6d23[_0x5d0165(0x18c)](_0x231356[_0x3d319c])<0x0&&Object[_0x5d0165(0x16d)][_0x5d0165(0xfd)][_0x5d0165(0xd3)](_0x470957,_0x231356[_0x3d319c])&&(_0x581df7[_0x231356[_0x3d319c]]=_0x470957[_0x231356[_0x3d319c]]);}return _0x581df7;},j=f[_0x466a9f(0xe9)](function(_0x464d76,_0x4da443){var _0x22c7d7=_0x466a9f,_0x577c87=_0x464d76['icon'],_0x2a96bc=_0x464d76['id'],_0x12fa39=_0x464d76['className'],_0x1c5a4a=_0x464d76['extend'],_0x3f1148=M(_0x464d76,[_0x22c7d7(0x194),'id',_0x22c7d7(0x119),_0x22c7d7(0xed)]),_0x4392d3=_0x22c7d7(0xfb)['concat'](_0x2a96bc,'\x20')[_0x22c7d7(0x1aa)](_0x12fa39||'')['trim'](),_0x51e9ad=f['useRef']('_'[_0x22c7d7(0x1aa)](G()));return y(_0x577c87,''[_0x22c7d7(0x1aa)](_0x2a96bc),{'defIds':_0x577c87[_0x22c7d7(0x14c)],'idSuffix':_0x51e9ad[_0x22c7d7(0xe3)]},u({'ref':_0x4da443,'className':_0x4392d3},_0x3f1148),_0x1c5a4a);});function y(_0x349ab6,_0x324e72,_0x248801,_0x3ad6cc,_0x2d888c){var _0x1d5c3f=_0x466a9f;return f[_0x1d5c3f(0x140)](_0x349ab6[_0x1d5c3f(0x170)],u(u({'key':_0x324e72},q(_0x349ab6,_0x248801,_0x2d888c)),_0x3ad6cc),(W(_0x349ab6,_0x248801)[_0x1d5c3f(0x15c)]||[])[_0x1d5c3f(0x172)](function(_0x4920fe,_0x5776c8){var _0x22bdf0=_0x1d5c3f;return y(_0x4920fe,''[_0x22bdf0(0x1aa)](_0x324e72,'-')[_0x22bdf0(0x1aa)](_0x349ab6[_0x22bdf0(0x170)],'-')[_0x22bdf0(0x1aa)](_0x5776c8),_0x248801,void 0x0,_0x2d888c);}));}function q(_0x31cea3,_0x56ab16,_0x3d22ab){var _0x3447b9=_0x466a9f,_0x5011be=u({},_0x31cea3[_0x3447b9(0xe2)]);_0x3d22ab!=null&&_0x3d22ab[_0x3447b9(0x196)]&&_0x5011be[_0x3447b9(0x137)]==='colorChannel1'&&(_0x5011be['fill']=_0x3d22ab['colorChannel1']),_0x31cea3['tag']==='mask'&&_0x5011be['id']&&(_0x5011be['id']=_0x5011be['id']+_0x56ab16[_0x3447b9(0xec)]),Object[_0x3447b9(0x168)](_0x5011be)['forEach'](function(_0x42d337){var _0x2b8d15=_0x3447b9,_0x10ef43=_0x42d337[0x0],_0x3f873d=_0x42d337[0x1];_0x10ef43===_0x2b8d15(0x167)&&typeof _0x3f873d==_0x2b8d15(0x189)&&(_0x5011be[_0x10ef43]=_0x3f873d[_0x2b8d15(0x15e)](/url\(#(.*)\)/,_0x2b8d15(0x156)[_0x2b8d15(0x1aa)](_0x56ab16[_0x2b8d15(0xec)],')')));});var _0x27c573=_0x56ab16[_0x3447b9(0x14c)];return!_0x27c573||_0x27c573[_0x3447b9(0x198)]===0x0||(_0x31cea3[_0x3447b9(0x170)]===_0x3447b9(0x187)&&_0x5011be[_0x3447b9(0x16a)]&&(_0x5011be[_0x3447b9(0x16a)]=_0x5011be[_0x3447b9(0x16a)]+_0x56ab16[_0x3447b9(0xec)]),Object[_0x3447b9(0x168)](_0x5011be)[_0x3447b9(0x149)](function(_0x4fc9c7){var _0x445fc7=_0x3447b9,_0x3a9cc6=_0x4fc9c7[0x0],_0x4d3b85=_0x4fc9c7[0x1];typeof _0x4d3b85==_0x445fc7(0x189)&&(_0x5011be[_0x3a9cc6]=_0x4d3b85[_0x445fc7(0x15e)](/url\(#(.*)\)/,'url(#$1'[_0x445fc7(0x1aa)](_0x56ab16[_0x445fc7(0xec)],')')));})),_0x5011be;}function W(_0x8aa5c,_0x3fc7dc){var _0x2745c0=_0x466a9f,_0x59aed3,_0x64056f=_0x3fc7dc['defIds'];return!_0x64056f||_0x64056f[_0x2745c0(0x198)]===0x0?_0x8aa5c:_0x8aa5c['tag']===_0x2745c0(0x1b7)&&(!((_0x59aed3=_0x8aa5c[_0x2745c0(0x15c)])===null||_0x59aed3===void 0x0)&&_0x59aed3[_0x2745c0(0x198)])?u(u({},_0x8aa5c),{'children':_0x8aa5c[_0x2745c0(0x15c)][_0x2745c0(0x172)](function(_0x29979d){var _0xd5ae6d=_0x2745c0;return typeof _0x29979d[_0xd5ae6d(0xe2)]['id']==_0xd5ae6d(0x189)&&_0x64056f&&_0x64056f[_0xd5ae6d(0x104)](_0x29979d['attrs']['id'])?u(u({},_0x29979d),{'attrs':u(u({},_0x29979d[_0xd5ae6d(0xe2)]),{'id':_0x29979d[_0xd5ae6d(0xe2)]['id']+_0x3fc7dc[_0xd5ae6d(0xec)]})}):_0x29979d;})}):_0x8aa5c;}function G(){var _0x38aeaf=_0x466a9f;return Math[_0x38aeaf(0x19f)]()[_0x38aeaf(0x1af)](0x24)[_0x38aeaf(0x165)](0x2,0x8);}j[_0x466a9f(0x18a)]=_0x466a9f(0x19b);var B={'tag':_0x466a9f(0x17a),'attrs':{'xmlns':_0x466a9f(0x1b6),'fill':_0x466a9f(0x17f),'viewBox':_0x466a9f(0x19e),'width':_0x466a9f(0x1b2),'height':_0x466a9f(0x1b2)},'children':[{'tag':_0x466a9f(0x17d),'attrs':{'fill':'currentColor','d':_0x466a9f(0xe6)}},{'tag':_0x466a9f(0x17d),'attrs':{'fill':_0x466a9f(0xcb),'d':_0x466a9f(0xff),'fillRule':'evenodd','clipRule':_0x466a9f(0x192)}}]},P=f[_0x466a9f(0xe9)](function(_0x46a2af,_0x94976f){var _0x587af1=_0x466a9f;return f[_0x587af1(0x140)](j,Object['assign']({},_0x46a2af,{'id':_0x587af1(0x103),'ref':_0x94976f,'icon':B}));});P[_0x466a9f(0x18a)]=_0x466a9f(0x11b);var Y=Object['getOwnPropertyDescriptor'],R=(_0x15b06e,_0xb089f8,_0x41952d,_0xb46ac3)=>{var _0x1f32e0=_0x466a9f;for(var _0x4cae1e=_0xb46ac3>0x1?void 0x0:_0xb46ac3?Y(_0xb089f8,_0x41952d):_0xb089f8,_0x1af37a=_0x15b06e[_0x1f32e0(0x198)]-0x1,_0x4fe284;_0x1af37a>=0x0;_0x1af37a--)(_0x4fe284=_0x15b06e[_0x1af37a])&&(_0x4cae1e=_0x4fe284(_0x4cae1e)||_0x4cae1e);return _0x4cae1e;},S=(_0x2c1dc4,_0x55dcdb)=>(_0x283f64,_0x2ed6e7)=>_0x55dcdb(_0x283f64,_0x2ed6e7,_0x2c1dc4);function _0x5997(_0x1a09af,_0x276e60){var _0x2ee661=_0x2ee6();return _0x5997=function(_0x5997f0,_0x2e4546){_0x5997f0=_0x5997f0-0xcb;var _0x1c6d7f=_0x2ee661[_0x5997f0];return _0x1c6d7f;},_0x5997(_0x1a09af,_0x276e60);}exports[_0x466a9f(0x122)]=class extends o[_0x466a9f(0x177)]{constructor(_0x2375ca,_0xff9636,_0x31ae45){var _0x1345de=_0x466a9f;super(),v(this,'_entities',new Map()),(this[_0x1345de(0xd1)]=_0x2375ca,this[_0x1345de(0xe7)]=_0xff9636,this[_0x1345de(0xfa)]=_0x31ae45,this[_0x1345de(0x13c)]());}async[_0x466a9f(0x12a)](_0x12ed30){var _0xdb6194=_0x466a9f;return this[_0xdb6194(0xf7)]['has'](_0x12ed30)||await this[_0xdb6194(0x164)](_0x12ed30),this[_0xdb6194(0xf7)][_0xdb6194(0x112)](_0x12ed30);}[_0x466a9f(0x13c)](){var _0x38e2a7=_0x466a9f;this[_0x38e2a7(0xd1)]['getTypeOfUnitAdded$'](o[_0x38e2a7(0xf6)]['UNIVER_SHEET'])[_0x38e2a7(0x1b1)](b[_0x38e2a7(0x11c)](this['dispose$']))[_0x38e2a7(0x125)](async _0x22085e=>{var _0x7fcf4=_0x38e2a7;const _0x3cd2c2=_0x22085e[_0x7fcf4(0x18b)]();this[_0x7fcf4(0xf7)][_0x7fcf4(0x130)](_0x3cd2c2)||this[_0x7fcf4(0x164)](_0x3cd2c2);}),this[_0x38e2a7(0xd1)][_0x38e2a7(0xd6)](o['UniverInstanceType']['UNIVER_SHEET'])['pipe'](b[_0x38e2a7(0x11c)](this['dispose$']))[_0x38e2a7(0x125)](_0x171bfa=>{var _0x47f5ec=_0x38e2a7;const _0x1ae43d=_0x171bfa[_0x47f5ec(0x18b)](),_0x2c206e=this['_entities'][_0x47f5ec(0x112)](_0x1ae43d);_0x2c206e==null||_0x2c206e['dispose']();});}async['_startLiveShareCoordinator'](_0x1c28ea){var _0x50336c=_0x466a9f;const _0x29488f=await this[_0x50336c(0xfa)][_0x50336c(0x15f)](_0x1c28ea),_0x554308=this['_injector'][_0x50336c(0x195)](exports[_0x50336c(0x13d)],_0x1c28ea,_0x29488f);return _0x554308[_0x50336c(0xf0)](),this[_0x50336c(0xf7)][_0x50336c(0x123)](_0x1c28ea,_0x554308),_0x554308;}},exports['LiveShareController']=R([S(0x0,o[_0x466a9f(0x190)]),S(0x1,o[_0x466a9f(0x182)](o['Injector'])),S(0x2,o['Inject'](m[_0x466a9f(0x157)]))],exports[_0x466a9f(0x122)]);var h=(_0x2f4afa=>(_0x2f4afa[_0x466a9f(0x13a)]=_0x466a9f(0x13f),_0x2f4afa[_0x466a9f(0xde)]=_0x466a9f(0x18e),_0x2f4afa[_0x466a9f(0x171)]=_0x466a9f(0x107),_0x2f4afa[_0x466a9f(0x19a)]=_0x466a9f(0x124),_0x2f4afa[_0x466a9f(0x10b)]='presenting',_0x2f4afa))(h||{});const Z=_0x466a9f(0x111),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x466a9f(0x177)]{constructor(_0x17691a,_0x2a7607,_0x275e58,_0x399d37,_0x1f24c5){var _0x4768ce=_0x466a9f;super(),v(this,_0x4768ce(0xcd),new D[(_0x4768ce(0x155))](_0x4768ce(0x18e))),v(this,'status$',this[_0x4768ce(0xcd)]['asObservable']()),v(this,_0x4768ce(0x13c),!0x1),v(this,_0x4768ce(0x174),null),v(this,'_presenter',null),(this['_unitID']=_0x17691a,this[_0x4768ce(0x135)]=_0x2a7607,this['_configService']=_0x275e58,this[_0x4768ce(0x131)]=_0x399d37,this[_0x4768ce(0x127)]=_0x1f24c5);}get[_0x466a9f(0x129)](){var _0x3fb022=_0x466a9f;return this[_0x3fb022(0xcd)][_0x3fb022(0x1b3)]();}['dispose'](){var _0x1555c3=_0x466a9f,_0x4dbd36;(_0x4dbd36=this[_0x1555c3(0x174)])==null||_0x4dbd36[_0x1555c3(0x14a)](),this[_0x1555c3(0xcd)][_0x1555c3(0x15b)](_0x1555c3(0x18e)),this['_status$'][_0x1555c3(0x114)]();}[_0x466a9f(0xf0)](){var _0x4e4a94=_0x466a9f;this[_0x4e4a94(0x13c)]||(this['_init']=!0x0,this[_0x4e4a94(0x135)][_0x4e4a94(0x16f)][_0x4e4a94(0x1b1)](b[_0x4e4a94(0x11c)](this[_0x4e4a94(0x178)]))[_0x4e4a94(0x125)](_0x3604a6=>{var _0x2b6e8c=_0x4e4a94;switch(_0x3604a6){case m[_0x2b6e8c(0x118)][_0x2b6e8c(0x13a)]:this[_0x2b6e8c(0xda)]();break;case m[_0x2b6e8c(0x118)][_0x2b6e8c(0xf5)]:this[_0x2b6e8c(0xd0)]();break;}}),this[_0x4e4a94(0x135)][_0x4e4a94(0x128)][_0x4e4a94(0x1b1)](b['takeUntil'](this[_0x4e4a94(0x178)]))['subscribe'](_0x5bdac5=>{var _0x305dfc=_0x4e4a94;const {eventID:_0x509c14}=_0x5bdac5;switch(_0x509c14){case _['CollaborationEvent'][_0x305dfc(0x15a)]:this['_handleNewHost'](_0x5bdac5);break;case _[_0x305dfc(0x1ab)][_0x305dfc(0x110)]:this[_0x305dfc(0x18d)](_0x5bdac5);break;case _[_0x305dfc(0x1ab)][_0x305dfc(0xeb)]:this[_0x305dfc(0x142)]();break;case _['CollaborationEvent']['NEW_CHANGESETS']:this[_0x305dfc(0x1a3)](_0x5bdac5);break;}}));}[_0x466a9f(0x1a9)](){var _0x178f5b=_0x466a9f;this[_0x178f5b(0x135)]['send']({'eventID':_[_0x178f5b(0x1ab)][_0x178f5b(0x10d)],'data':{'unitID':this[_0x178f5b(0x12b)],'userID':this[_0x178f5b(0x135)][_0x178f5b(0x1a2)]()}},this['_unitID']);}[_0x466a9f(0xf2)](){var _0x32542a=_0x466a9f;this[_0x32542a(0x129)]===_0x32542a(0x151)&&(this['_status$'][_0x32542a(0x15b)](_0x32542a(0x18e)),this['_collabSession'][_0x32542a(0x162)]({'eventID':_['CollaborationEvent'][_0x32542a(0xeb)],'data':{'unitID':this[_0x32542a(0x12b)]}},this['_unitID']));}[_0x466a9f(0xdb)](){var _0x2421da=_0x466a9f;this[_0x2421da(0x129)]===_0x2421da(0x124)&&(this['_status$'][_0x2421da(0x15b)]('following'),this[_0x2421da(0x13b)]());}[_0x466a9f(0x186)](){var _0x2e8184=_0x466a9f;this['_status']==='following'&&this[_0x2e8184(0x19c)]();}[_0x466a9f(0x10e)](_0x5e1f4d){var _0x2f503b=_0x466a9f;const {presenter:_0x1f1acd}=_0x5e1f4d[_0x2f503b(0x1b0)],_0x1632ca=this[_0x2f503b(0x135)][_0x2f503b(0x1a2)]();this[_0x2f503b(0xf9)]=_0x1f1acd,_0x1f1acd===_0x1632ca?(this[_0x2f503b(0x19c)](),this['_startPresenting']()):this[_0x2f503b(0x129)]!==_0x2f503b(0x124)&&(this[_0x2f503b(0xd4)](),this[_0x2f503b(0x13b)]());}[_0x466a9f(0x188)](){var _0x34e68e=_0x466a9f;const _0x30f2bf={'eventID':_['CollaborationEvent'][_0x34e68e(0xdc)]};this[_0x34e68e(0x135)][_0x34e68e(0x162)](_0x30f2bf,this[_0x34e68e(0x12b)]);}[_0x466a9f(0x142)](){var _0x12f394=_0x466a9f;this[_0x12f394(0xf9)]=null,this[_0x12f394(0x129)]!==_0x12f394(0x151)&&this[_0x12f394(0x106)]();}[_0x466a9f(0x1a3)](_0x574f3a){var _0x507a6d=_0x466a9f;if(this[_0x507a6d(0x129)]==='following'&&this[_0x507a6d(0xf9)]===_0x574f3a[_0x507a6d(0x1b0)][_0x507a6d(0x1a7)]){const _0x4f9173=_[_0x507a6d(0x109)](_0x574f3a[_0x507a6d(0x1b0)])[_0x507a6d(0x108)][_0x507a6d(0x15d)]()[_0x507a6d(0x17c)](_0x1ef326=>_0x1ef326['id']===C[_0x507a6d(0x1a1)]['id']);if(_0x4f9173){const _0x19ab1b=_0x4f9173[_0x507a6d(0x13e)][_0x507a6d(0x10a)],_0x47b81c=_0x4f9173['params'][_0x507a6d(0x100)]['id'];setTimeout(()=>{var _0x4ca170=_0x507a6d;this[_0x4ca170(0x127)][_0x4ca170(0x1ad)](C[_0x4ca170(0x16e)]['id'],{'unitId':_0x19ab1b,'subUnitId':_0x47b81c},{'fromCollab':!0x0});});}}}[_0x466a9f(0x11f)](){var _0x44562e=_0x466a9f;this['_status$'][_0x44562e(0x15b)]('presenting');const _0x1d3988=new Map(),_0x44c532=this[_0x44562e(0x174)]=new o[(_0x44562e(0x169))]();_0x44c532[_0x44562e(0x173)](o[_0x44562e(0xe4)](()=>{var _0x48a37c=_0x44562e;_0x1d3988[_0x48a37c(0x149)](_0xf7539=>_0xf7539[_0x48a37c(0x114)]()),_0x1d3988['clear']();})),_0x44c532[_0x44562e(0x173)](this[_0x44562e(0x127)][_0x44562e(0x179)](_0x2cf445=>{var _0x410812=_0x44562e,_0x100ad1;if(_0x2cf445['type']!==o[_0x410812(0x183)][_0x410812(0x153)]||!this['_liveShareService'][_0x410812(0xf4)](_0x2cf445['id']))return;const {id:_0x18ac46}=_0x2cf445;let _0x5c4074;_0x1d3988[_0x410812(0x130)](_0x18ac46)?_0x5c4074=_0x1d3988[_0x410812(0x112)](_0x18ac46):(_0x5c4074=new D[(_0x410812(0xce))](),_0x1d3988['set'](_0x18ac46,_0x5c4074),_0x5c4074['pipe'](b[_0x410812(0xd2)]((_0x100ad1=this[_0x410812(0x158)][_0x410812(0x1ac)](Z))!=null?_0x100ad1:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2fa01a=>{var _0x41a7fc=_0x410812;this['_collabSession'][_0x41a7fc(0x162)]({'eventID':_[_0x41a7fc(0x1ab)][_0x41a7fc(0x110)],'data':{'unitID':this[_0x41a7fc(0x12b)],'operations':{[_0x2fa01a['id']]:{'id':_0x2fa01a['id'],'params':JSON[_0x41a7fc(0x180)](_0x2fa01a['params'])}}}},this[_0x41a7fc(0x12b)]);})),_0x5c4074[_0x410812(0x15b)](_0x2cf445);})),this[_0x44562e(0x131)][_0x44562e(0x141)](this['_unitID'])[_0x44562e(0x149)](_0x5053aa=>this['_collabSession'][_0x44562e(0x162)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x44562e(0x12b)],'operations':{[_0x5053aa['id']]:{'id':_0x5053aa['id'],'params':JSON[_0x44562e(0x180)](_0x5053aa[_0x44562e(0x13e)])}}}},this[_0x44562e(0x12b)]));}[_0x466a9f(0xd4)](){var _0x260f00=_0x466a9f,_0x16af70;this[_0x260f00(0xcd)][_0x260f00(0x15b)]('idle'),(_0x16af70=this[_0x260f00(0x174)])==null||_0x16af70[_0x260f00(0x14a)](),this[_0x260f00(0x174)]=null;}['_startFollowing'](){var _0x40cd6d=_0x466a9f,_0x24770e;(_0x24770e=this[_0x40cd6d(0x174)])==null||_0x24770e['dispose'](),this['_status$']['next'](_0x40cd6d(0x107));}['_beIdle'](){var _0x402ab1=_0x466a9f,_0x2ea5b3;this[_0x402ab1(0xcd)][_0x402ab1(0x15b)](_0x402ab1(0x18e)),(_0x2ea5b3=this[_0x402ab1(0x174)])==null||_0x2ea5b3[_0x402ab1(0x14a)](),this[_0x402ab1(0x174)]=null;}['_stopFollowing'](){var _0x171d65=_0x466a9f,_0x4f5210;this[_0x171d65(0xcd)][_0x171d65(0x15b)](_0x171d65(0x124)),(_0x4f5210=this['_commandDisposable'])==null||_0x4f5210[_0x171d65(0x14a)]();}['_handleOperation'](_0x1acf04){var _0x577ef1=_0x466a9f;if(['presenting',_0x577ef1(0x124),_0x577ef1(0x13f)][_0x577ef1(0x104)](this[_0x577ef1(0x129)])||!_0x1acf04[_0x577ef1(0x1b0)][_0x577ef1(0x12d)]||_0x1acf04['data'][_0x577ef1(0x12d)]===this['_collabSession'][_0x577ef1(0x1a2)]())return;this['_status']==='idle'&&this[_0x577ef1(0x13b)]();const _0x35ad69=_0x1acf04[_0x577ef1(0x1b0)][_0x577ef1(0x132)];Object[_0x577ef1(0x16b)](_0x35ad69)[_0x577ef1(0x149)](_0x239924=>{var _0x567cb9=_0x577ef1;this[_0x567cb9(0x127)]['executeCommand'](_0x239924['id'],_0x239924[_0x567cb9(0x13e)]?JSON['parse'](_0x239924[_0x567cb9(0x13e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x584da0=_0x466a9f,_0xf933b3;this[_0x584da0(0xcd)][_0x584da0(0x15b)](_0x584da0(0x13f)),(_0xf933b3=this[_0x584da0(0x174)])==null||_0xf933b3[_0x584da0(0x14a)]();}[_0x466a9f(0xd0)](){var _0x526e8d=_0x466a9f;this['_status$'][_0x526e8d(0x15b)]('idle'),this[_0x526e8d(0x188)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x466a9f(0x11a)]),S(0x3,o[_0x466a9f(0x182)](O)),S(0x4,o[_0x466a9f(0x16c)])],exports[_0x466a9f(0x13d)]);function A(){var _0x3dae4c=_0x466a9f;const _0x51e07a=p['useDependency'](exports['LiveShareController']),_0x104843=p[_0x3dae4c(0x14b)](o[_0x3dae4c(0x190)]),_0x6967c=p['useObservable'](()=>_0x104843[_0x3dae4c(0xd5)](o[_0x3dae4c(0xf6)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1cd69f,_0x1786b5]=f[_0x3dae4c(0xdf)](null),[_0x1556bb,_0x720d5e]=f[_0x3dae4c(0xdf)](h['IDLE']),_0x11201f=f[_0x3dae4c(0x12e)](null);return f['useEffect'](()=>(_0x6967c&&_0x51e07a['getLiveShareCoordinator'](_0x6967c[_0x3dae4c(0x18b)]())['then'](_0x50beb3=>{var _0x168d64=_0x3dae4c;_0x1786b5(_0x50beb3),_0x11201f[_0x168d64(0xe3)]=_0x50beb3['status$'][_0x168d64(0x125)](_0xd5318c=>{_0x720d5e(_0xd5318c);});}),()=>{var _0x53dc68=_0x3dae4c,_0x413626;(_0x413626=_0x11201f[_0x53dc68(0xe3)])==null||_0x413626[_0x53dc68(0x12c)](),_0x11201f[_0x53dc68(0xe3)]=null;}),[_0x6967c,_0x51e07a]),_0x1cd69f?l['jsx'](g['Dropdown'],{'align':_0x3dae4c(0xfe),'disabled':_0x1556bb===h[_0x3dae4c(0x13a)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x3dae4c(0x116)](K,{'status':_0x1556bb,'coordinator':_0x1cd69f}),'children':l[_0x3dae4c(0x116)]('button',{'className':g['clsx'](_0x3dae4c(0xea),{'univer-cursor-not-allowed':_0x1556bb===h[_0x3dae4c(0x13a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1556bb!==h['OFFLINE']}),'type':'button','children':l[_0x3dae4c(0x116)](P,{'className':_0x3dae4c(0x1b4)})})}):null;}function K(_0x1253e1){var _0x1a3404=_0x466a9f;const {status:_0x5bfeca,coordinator:_0x582d89}=_0x1253e1;switch(_0x5bfeca){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x582d89});case h['FOLLOWING']:return l[_0x1a3404(0x116)](Q,{'coordinator':_0x582d89});case h[_0x1a3404(0x19a)]:return l[_0x1a3404(0x116)](X,{'coordinator':_0x582d89});case h[_0x1a3404(0x13a)]:return l[_0x1a3404(0x116)](te,{});case h[_0x1a3404(0x10b)]:return l[_0x1a3404(0x116)](ee,{'coordinator':_0x582d89});default:return null;}}function z(_0x505037){var _0x32f8b5=_0x466a9f;const {coordinator:_0x4c5adf}=_0x505037;return l[_0x32f8b5(0x145)](l[_0x32f8b5(0x146)],{'children':[l[_0x32f8b5(0x116)](_0x32f8b5(0x14e),{'className':_0x32f8b5(0x185),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x32f8b5(0x17e)],{'onClick':()=>_0x4c5adf[_0x32f8b5(0x1a9)](),'children':_0x32f8b5(0xf8)})]});}function Q(_0x53e815){var _0x458d52=_0x466a9f;const {coordinator:_0x5efbd2}=_0x53e815;return l[_0x458d52(0x145)](l['Fragment'],{'children':[l['jsx'](_0x458d52(0x14e),{'className':_0x458d52(0x185),'children':_0x458d52(0x181)}),l[_0x458d52(0x116)](g[_0x458d52(0x17e)],{'onClick':()=>_0x5efbd2['stopFollowing'](),'children':_0x458d52(0x105)})]});}function _0x2ee6(){var _0x4aa18a=['tag','FOLLOWING','map','add','_commandDisposable','_uiPartsService','registerDependencies','RxDisposable','dispose$','onCommandExecuted','svg','@univerjs/sheets-ui','find','path','Button','none','stringify','You\x27re\x20following\x20the\x20presenter','Inject','CommandType','SetScrollOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','use','_fetchOperations','string','displayName','getUnitId','indexOf','_handleOperation','idle','23001500chIRzm','IUniverInstanceService','Stop\x20presenting','evenodd','LiveShare','icon','createInstance','colorChannel1','setConfig','length','getOwnPropertySymbols','NOT_FOLLOWING','UniverIcon','_stopFollowing','defineProperty','0\x200\x2017\x2017','random','IUIPartsService','InsertSheetMutation','getMemberID','_handleNewChangeSets','@univerjs-pro/collaboration','Plugin','@univerjs-pro/collaboration-client','memberID','touchDependencies','tryStartPresenting','concat','CollaborationEvent','getConfig','executeCommand','from','toString','data','pipe','1em','getValue','univer-size-4','UniverLiveSharePlugin','http://www.w3.org/2000/svg','defs','currentColor','8592165BlOeyF','_status$','Subject','You\x27are\x20offline.','_handleOnline','_univerInstanceService','throttleTime','call','_stopPresenting','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','assign','function','registerInitialStateReporter','_handleOffline','startFollowing','LIVESHARE_FETCH_OPERATIONS','_config','IDLE','useState','1445689zFZDTy','_reporters','attrs','current','toDisposable','delete','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','_injector','1594105PEBEDQ','forwardRef','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','idSuffix','extend','DependentOn','UniverCollaborationClientPlugin','init','UNIVER_UNKNOWN','stopPresenting','type','shouldShareOperation','ONLINE','UniverInstanceType','_entities','Start','_presenter','_collabSessionService','univerjs-icon\x20univerjs-icon-','Disposable','propertyIsEnumerable','end','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','sheet','onStarting','rxjs/operators','live-share-icon','includes','Stop\x20following','_beIdle','following','mutations','parseProtocolChangeset','unitId','PRESENTING','LiveShareStatus','LIVESHARE_REQUEST_HOST','_handleNewHost','_sharedOperations','LIVESHARE_OPERATION','SAME_OPERATION_SHARE_INTERVAL','get','DesktopLiveShareController','complete','text','jsx','rxjs','SessionStatus','className','IConfigService','LiveShareIcon','takeUntil','BuiltInUIPart','react','_startPresenting','symbol','connectInjector','LiveShareController','set','not-following','subscribe','6014176kkIJLr','_commandService','event$','_status','getLiveShareCoordinator','_unitID','unsubscribe','presenter','useRef','Module','has','_liveShareService','operations','Start\x20following','_mountLiveShare','_collabSession','hasOwnProperty','fill','LiveShareService','onRendered','OFFLINE','_startFollowing','_init','LiveShareCoordinator','params','offline','createElement','getInitialStates','_handleTerminate','@univerjs/core','live-share.config','jsxs','Fragment','6zRVFIY','5Wwncjc','forEach','dispose','useDependency','defIds','3038488HWbNgu','div','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','presenting','You\x27re\x20not\x20following\x20the\x20presenter','OPERATION','3TpIgTi','BehaviorSubject','url(#$1','CollaborationSessionService','_configService','getOwnPropertyDescriptor','LIVESHARE_NEW_HOST','next','children','reverse','replace','requireSession','225118nTKkAI','override','send','toStringTag','_startLiveShareCoordinator','substring','Injector','mask','entries','DisposableCollection','xlink:href','values','ICommandService','prototype','SetWorksheetActiveOperation','sessionStatus$'];_0x2ee6=function(){return _0x4aa18a;};return _0x2ee6();}function X(_0x22f4fe){var _0x1ec70d=_0x466a9f;const {coordinator:_0x2c8d2b}=_0x22f4fe;return l['jsxs'](l[_0x1ec70d(0x146)],{'children':[l['jsx'](_0x1ec70d(0x14e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1ec70d(0x152)}),l[_0x1ec70d(0x116)](g[_0x1ec70d(0x17e)],{'variant':_0x1ec70d(0x115),'onClick':()=>_0x2c8d2b[_0x1ec70d(0xdb)](),'children':_0x1ec70d(0x133)})]});}function ee(_0x28a66e){var _0x871e51=_0x466a9f;const {coordinator:_0x279e1f}=_0x28a66e;return l[_0x871e51(0x145)](l[_0x871e51(0x146)],{'children':[l['jsx']('div',{'className':_0x871e51(0x185),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x871e51(0x116)](g[_0x871e51(0x17e)],{'variant':'default','onClick':()=>_0x279e1f['stopPresenting'](),'children':_0x871e51(0x191)})]});}function te(){var _0x27b9cf=_0x466a9f;return l[_0x27b9cf(0x116)](l[_0x27b9cf(0x146)],{'children':_0x27b9cf(0xcf)});}var ie=Object[_0x466a9f(0x159)],ne=(_0xd13e81,_0x5ba878,_0x2f186b,_0x42bcfc)=>{var _0x387e7d=_0x466a9f;for(var _0x29fb48=_0x42bcfc>0x1?void 0x0:_0x42bcfc?ie(_0x5ba878,_0x2f186b):_0x5ba878,_0x10e18b=_0xd13e81[_0x387e7d(0x198)]-0x1,_0x2554ae;_0x10e18b>=0x0;_0x10e18b--)(_0x2554ae=_0xd13e81[_0x10e18b])&&(_0x29fb48=_0x2554ae(_0x29fb48)||_0x29fb48);return _0x29fb48;},L=(_0x102e72,_0x188764)=>(_0x4d047b,_0x4005ea)=>_0x188764(_0x4d047b,_0x4005ea,_0x102e72);exports[_0x466a9f(0x113)]=class extends o[_0x466a9f(0xfc)]{constructor(_0x5b05d5,_0x1f29af){var _0x38bfec=_0x466a9f;super(),this[_0x38bfec(0xe7)]=_0x5b05d5,this[_0x38bfec(0x175)]=_0x1f29af,this[_0x38bfec(0x134)]();}[_0x466a9f(0x134)](){var _0x2ccde1=_0x466a9f;this[_0x2ccde1(0x150)](this['_uiPartsService']['registerComponent'](p[_0x2ccde1(0x11d)]['HEADER_MENU'],()=>p[_0x2ccde1(0x121)](A,this[_0x2ccde1(0xe7)])));}},exports[_0x466a9f(0x113)]=ne([L(0x0,o[_0x466a9f(0x182)](o[_0x466a9f(0x166)])),L(0x1,p[_0x466a9f(0x1a0)])],exports[_0x466a9f(0x113)]);var re=Object[_0x466a9f(0x19d)],se=Object[_0x466a9f(0x159)],oe=(_0x35958a,_0x6a6fda,_0x510909)=>_0x6a6fda in _0x35958a?re(_0x35958a,_0x6a6fda,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x510909}):_0x35958a[_0x6a6fda]=_0x510909,ae=(_0x1b958b,_0x4295f9,_0x8a1c78,_0x499580)=>{var _0x16d058=_0x466a9f;for(var _0xebdf83=_0x499580>0x1?void 0x0:_0x499580?se(_0x4295f9,_0x8a1c78):_0x4295f9,_0x57fcb3=_0x1b958b[_0x16d058(0x198)]-0x1,_0x3cafb3;_0x57fcb3>=0x0;_0x57fcb3--)(_0x3cafb3=_0x1b958b[_0x57fcb3])&&(_0xebdf83=_0x3cafb3(_0xebdf83)||_0xebdf83);return _0xebdf83;},N=(_0xbf61dc,_0x9f5a73)=>(_0x3e0dca,_0x467f2c)=>_0x9f5a73(_0x3e0dca,_0x467f2c,_0xbf61dc),T=(_0x1e2684,_0x50f9b7,_0x41f7a9)=>oe(_0x1e2684,typeof _0x50f9b7!=_0x466a9f(0x120)?_0x50f9b7+'':_0x50f9b7,_0x41f7a9);const le=_0x466a9f(0x14f);exports[_0x466a9f(0x1b5)]=class extends o[_0x466a9f(0x1a5)]{constructor(_0x1994b6=x,_0xb30ccb,_0x75e0d0){var _0x304e44=_0x466a9f;super(),this[_0x304e44(0xdd)]=_0x1994b6,this[_0x304e44(0xe7)]=_0xb30ccb,this['_configService']=_0x75e0d0;const {..._0x757394}=o['merge']({},x,this[_0x304e44(0xdd)]);this[_0x304e44(0x158)][_0x304e44(0x197)]($,_0x757394);}[_0x466a9f(0x101)](){var _0x3bcd1e=_0x466a9f;o[_0x3bcd1e(0x176)](this[_0x3bcd1e(0xe7)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x3bcd1e(0x113)]]],this[_0x3bcd1e(0xdd)][_0x3bcd1e(0x161)])),o[_0x3bcd1e(0x1a8)](this[_0x3bcd1e(0xe7)],[[E]]);}[_0x466a9f(0x139)](){var _0x2dc73f=_0x466a9f;o[_0x2dc73f(0x1a8)](this[_0x2dc73f(0xe7)],[[exports[_0x2dc73f(0x113)]]]);}},T(exports[_0x466a9f(0x1b5)],_0x466a9f(0xf3),o['UniverInstanceType'][_0x466a9f(0xf1)]),T(exports[_0x466a9f(0x1b5)],'pluginName',le),exports[_0x466a9f(0x1b5)]=ae([o[_0x466a9f(0xee)](m[_0x466a9f(0xef)]),N(0x1,o[_0x466a9f(0x182)](o[_0x466a9f(0x166)])),N(0x2,o[_0x466a9f(0x11a)])],exports[_0x466a9f(0x1b5)]),exports[_0x466a9f(0x193)]=A,exports[_0x466a9f(0x138)]=O,exports[_0x466a9f(0x10c)]=h;
|
|
1
|
+
'use strict';var _0x9d6b91=_0x43ed;(function(_0x33c04a,_0x31e847){var _0x127065=_0x43ed,_0x5e1777=_0x33c04a();while(!![]){try{var _0x28f702=-parseInt(_0x127065(0x218))/0x1+-parseInt(_0x127065(0x26a))/0x2*(-parseInt(_0x127065(0x272))/0x3)+parseInt(_0x127065(0x258))/0x4+parseInt(_0x127065(0x1c9))/0x5+-parseInt(_0x127065(0x26d))/0x6+-parseInt(_0x127065(0x27a))/0x7+parseInt(_0x127065(0x210))/0x8*(parseInt(_0x127065(0x1fe))/0x9);if(_0x28f702===_0x31e847)break;else _0x5e1777['push'](_0x5e1777['shift']());}catch(_0x22b219){_0x5e1777['push'](_0x5e1777['shift']());}}}(_0x52df,0x9b55b));var U=Object[_0x9d6b91(0x21e)],F=(_0x224d3f,_0x985bad,_0x1f88c6)=>_0x985bad in _0x224d3f?U(_0x224d3f,_0x985bad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f88c6}):_0x224d3f[_0x985bad]=_0x1f88c6,v=(_0x547ef9,_0x51edef,_0x3e5466)=>F(_0x547ef9,typeof _0x51edef!=_0x9d6b91(0x1cc)?_0x51edef+'':_0x51edef,_0x3e5466);Object[_0x9d6b91(0x21e)](exports,Symbol['toStringTag'],{'value':_0x9d6b91(0x24c)});const m=require('@univerjs-pro/collaboration-client'),o=require(_0x9d6b91(0x290)),C=require(_0x9d6b91(0x23d)),w=require('@univerjs/sheets-ui'),p=require(_0x9d6b91(0x22c)),l=require(_0x9d6b91(0x23c)),g=require(_0x9d6b91(0x217)),f=require(_0x9d6b91(0x207)),_=require(_0x9d6b91(0x26f)),D=require(_0x9d6b91(0x2a0)),b=require(_0x9d6b91(0x1bf)),$='live-share.config',x={};class O extends o[_0x9d6b91(0x29f)]{constructor(){var _0x5b7fad=_0x9d6b91;super(...arguments),v(this,_0x5b7fad(0x1d3),new Set()),v(this,_0x5b7fad(0x23b),new Set());}[_0x9d6b91(0x1cb)](_0x18b207){var _0x2cf747=_0x9d6b91;return this[_0x2cf747(0x1d3)][_0x2cf747(0x1d6)](_0x18b207),o[_0x2cf747(0x28d)](()=>this[_0x2cf747(0x1d3)][_0x2cf747(0x21f)](_0x18b207));}[_0x9d6b91(0x23f)](_0xa0feb8){var _0x4e5dfd=_0x9d6b91;return this[_0x4e5dfd(0x23b)]['add'](_0xa0feb8),o[_0x4e5dfd(0x28d)](()=>this[_0x4e5dfd(0x23b)]['delete'](_0xa0feb8));}[_0x9d6b91(0x273)](_0x25d87e){var _0x2c897b=_0x9d6b91;return this['_sharedOperations'][_0x2c897b(0x225)](_0x25d87e);}['getInitialStates'](_0xc5dd88){var _0x5d4335=_0x9d6b91;return Array[_0x5d4335(0x228)](this['_reporters'])[_0x5d4335(0x250)](_0x55963c=>_0x55963c(_0xc5dd88));}}var H=Object[_0x9d6b91(0x216)],V=(_0x539585,_0x79e2f7,_0x2f47aa,_0xd661fd)=>{var _0x20e6b9=_0x9d6b91;for(var _0x5d1f22=_0xd661fd>0x1?void 0x0:_0xd661fd?H(_0x79e2f7,_0x2f47aa):_0x79e2f7,_0x120347=_0x539585[_0x20e6b9(0x292)]-0x1,_0x47c9d6;_0x120347>=0x0;_0x120347--)(_0x47c9d6=_0x539585[_0x120347])&&(_0x5d1f22=_0x47c9d6(_0x5d1f22)||_0x5d1f22);return _0x5d1f22;},k=(_0x2e3cf1,_0x3f5432)=>(_0x16837c,_0x2b4bf8)=>_0x3f5432(_0x16837c,_0x2b4bf8,_0x2e3cf1);let E=class extends o[_0x9d6b91(0x29f)]{constructor(_0x6cc9e1){var _0x137a81=_0x9d6b91;super(),this['_liveShareService']=_0x6cc9e1,this[_0x137a81(0x248)]();}[_0x9d6b91(0x248)](){var _0x5b52bb=_0x9d6b91;[w[_0x5b52bb(0x1c8)]['id'],w[_0x5b52bb(0x28e)]['id'],C[_0x5b52bb(0x208)]['id']][_0x5b52bb(0x1c0)](_0x231010=>{var _0x203b55=_0x5b52bb;this[_0x203b55(0x206)](this[_0x203b55(0x1f5)][_0x203b55(0x1cb)](_0x231010));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x3d6661=_0x9d6b91;return u=Object[_0x3d6661(0x1bd)]||function(_0xbb4403){var _0x4c9022=_0x3d6661;for(var _0x1afa3a,_0x470bed=0x1,_0x43e5c2=arguments[_0x4c9022(0x292)];_0x470bed<_0x43e5c2;_0x470bed++){_0x1afa3a=arguments[_0x470bed];for(var _0x9b2491 in _0x1afa3a)Object['prototype'][_0x4c9022(0x291)]['call'](_0x1afa3a,_0x9b2491)&&(_0xbb4403[_0x9b2491]=_0x1afa3a[_0x9b2491]);}return _0xbb4403;},u[_0x3d6661(0x220)](this,arguments);},M=function(_0x38c2bb,_0x44876b){var _0x4cecb=_0x9d6b91,_0x5cfbe3={};for(var _0x2ac651 in _0x38c2bb)Object[_0x4cecb(0x277)]['hasOwnProperty'][_0x4cecb(0x29b)](_0x38c2bb,_0x2ac651)&&_0x44876b[_0x4cecb(0x1e2)](_0x2ac651)<0x0&&(_0x5cfbe3[_0x2ac651]=_0x38c2bb[_0x2ac651]);if(_0x38c2bb!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5f7d18=0x0,_0x2ac651=Object[_0x4cecb(0x1dd)](_0x38c2bb);_0x5f7d18<_0x2ac651[_0x4cecb(0x292)];_0x5f7d18++)_0x44876b[_0x4cecb(0x1e2)](_0x2ac651[_0x5f7d18])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x4cecb(0x29b)](_0x38c2bb,_0x2ac651[_0x5f7d18])&&(_0x5cfbe3[_0x2ac651[_0x5f7d18]]=_0x38c2bb[_0x2ac651[_0x5f7d18]]);}return _0x5cfbe3;},j=f[_0x9d6b91(0x1c3)](function(_0x40bb69,_0x9febcc){var _0x5777f8=_0x9d6b91,_0xf11072=_0x40bb69[_0x5777f8(0x28a)],_0x36bb76=_0x40bb69['id'],_0x1a6877=_0x40bb69[_0x5777f8(0x242)],_0x3689f6=_0x40bb69[_0x5777f8(0x294)],_0x26e167=M(_0x40bb69,[_0x5777f8(0x28a),'id',_0x5777f8(0x242),'extend']),_0x330dff='univerjs-icon\x20univerjs-icon-'[_0x5777f8(0x261)](_0x36bb76,'\x20')[_0x5777f8(0x261)](_0x1a6877||'')[_0x5777f8(0x253)](),_0x22411b=f[_0x5777f8(0x247)]('_'[_0x5777f8(0x261)](G()));return y(_0xf11072,''[_0x5777f8(0x261)](_0x36bb76),{'defIds':_0xf11072['defIds'],'idSuffix':_0x22411b[_0x5777f8(0x255)]},u({'ref':_0x9febcc,'className':_0x330dff},_0x26e167),_0x3689f6);});function y(_0x2e5f5e,_0x26dbb6,_0x37dc2d,_0x1cb665,_0x59dd1b){var _0x1cadb2=_0x9d6b91;return f[_0x1cadb2(0x1df)](_0x2e5f5e[_0x1cadb2(0x230)],u(u({'key':_0x26dbb6},q(_0x2e5f5e,_0x37dc2d,_0x59dd1b)),_0x1cb665),(W(_0x2e5f5e,_0x37dc2d)['children']||[])[_0x1cadb2(0x250)](function(_0x4cf8cd,_0x41f1a){var _0x19424c=_0x1cadb2;return y(_0x4cf8cd,''[_0x19424c(0x261)](_0x26dbb6,'-')[_0x19424c(0x261)](_0x2e5f5e[_0x19424c(0x230)],'-')[_0x19424c(0x261)](_0x41f1a),_0x37dc2d,void 0x0,_0x59dd1b);}));}function q(_0x407eca,_0x291161,_0x173f68){var _0x3e344b=_0x9d6b91,_0x44add5=u({},_0x407eca[_0x3e344b(0x270)]);_0x173f68!=null&&_0x173f68[_0x3e344b(0x28b)]&&_0x44add5[_0x3e344b(0x1f2)]===_0x3e344b(0x28b)&&(_0x44add5[_0x3e344b(0x1f2)]=_0x173f68[_0x3e344b(0x28b)]),_0x407eca['tag']===_0x3e344b(0x1f4)&&_0x44add5['id']&&(_0x44add5['id']=_0x44add5['id']+_0x291161[_0x3e344b(0x1e6)]),Object[_0x3e344b(0x1d5)](_0x44add5)[_0x3e344b(0x1c0)](function(_0x401d0d){var _0x55f135=_0x3e344b,_0x1a85f2=_0x401d0d[0x0],_0x5d996a=_0x401d0d[0x1];_0x1a85f2===_0x55f135(0x1f4)&&typeof _0x5d996a=='string'&&(_0x44add5[_0x1a85f2]=_0x5d996a[_0x55f135(0x264)](/url\(#(.*)\)/,'url(#$1'[_0x55f135(0x261)](_0x291161[_0x55f135(0x1e6)],')')));});var _0x1abb9e=_0x291161[_0x3e344b(0x25d)];return!_0x1abb9e||_0x1abb9e[_0x3e344b(0x292)]===0x0||(_0x407eca[_0x3e344b(0x230)]===_0x3e344b(0x2a1)&&_0x44add5[_0x3e344b(0x1f7)]&&(_0x44add5['xlink:href']=_0x44add5[_0x3e344b(0x1f7)]+_0x291161[_0x3e344b(0x1e6)]),Object[_0x3e344b(0x1d5)](_0x44add5)[_0x3e344b(0x1c0)](function(_0xa2ab1f){var _0x28cfbb=_0x3e344b,_0x5b3da2=_0xa2ab1f[0x0],_0x7e16d1=_0xa2ab1f[0x1];typeof _0x7e16d1==_0x28cfbb(0x1b3)&&(_0x44add5[_0x5b3da2]=_0x7e16d1[_0x28cfbb(0x264)](/url\(#(.*)\)/,_0x28cfbb(0x26c)[_0x28cfbb(0x261)](_0x291161[_0x28cfbb(0x1e6)],')')));})),_0x44add5;}function W(_0x1f7484,_0x5bc195){var _0x533529=_0x9d6b91,_0x22cf89,_0x24572f=_0x5bc195[_0x533529(0x25d)];return!_0x24572f||_0x24572f[_0x533529(0x292)]===0x0?_0x1f7484:_0x1f7484[_0x533529(0x230)]===_0x533529(0x1d4)&&(!((_0x22cf89=_0x1f7484[_0x533529(0x298)])===null||_0x22cf89===void 0x0)&&_0x22cf89[_0x533529(0x292)])?u(u({},_0x1f7484),{'children':_0x1f7484['children']['map'](function(_0x444d0b){var _0x1a81ae=_0x533529;return typeof _0x444d0b[_0x1a81ae(0x270)]['id']==_0x1a81ae(0x1b3)&&_0x24572f&&_0x24572f[_0x1a81ae(0x271)](_0x444d0b['attrs']['id'])?u(u({},_0x444d0b),{'attrs':u(u({},_0x444d0b[_0x1a81ae(0x270)]),{'id':_0x444d0b[_0x1a81ae(0x270)]['id']+_0x5bc195[_0x1a81ae(0x1e6)]})}):_0x444d0b;})}):_0x1f7484;}function G(){var _0x3900cc=_0x9d6b91;return Math[_0x3900cc(0x278)]()[_0x3900cc(0x281)](0x24)[_0x3900cc(0x1b6)](0x2,0x8);}j[_0x9d6b91(0x265)]=_0x9d6b91(0x21c);var B={'tag':'svg','attrs':{'xmlns':_0x9d6b91(0x20e),'fill':_0x9d6b91(0x1c1),'viewBox':_0x9d6b91(0x214),'width':_0x9d6b91(0x1ff),'height':_0x9d6b91(0x1ff)},'children':[{'tag':_0x9d6b91(0x285),'attrs':{'fill':_0x9d6b91(0x1f9),'d':_0x9d6b91(0x254)}},{'tag':_0x9d6b91(0x285),'attrs':{'fill':_0x9d6b91(0x1f9),'d':_0x9d6b91(0x222),'fillRule':_0x9d6b91(0x274),'clipRule':_0x9d6b91(0x274)}}]},P=f[_0x9d6b91(0x1c3)](function(_0x5957d1,_0x1f8def){var _0x4dee45=_0x9d6b91;return f['createElement'](j,Object[_0x4dee45(0x1bd)]({},_0x5957d1,{'id':_0x4dee45(0x256),'ref':_0x1f8def,'icon':B}));});P[_0x9d6b91(0x265)]=_0x9d6b91(0x234);var Y=Object[_0x9d6b91(0x216)],R=(_0x56c3cf,_0x395c5c,_0x427a6f,_0x80e23a)=>{var _0x306bc8=_0x9d6b91;for(var _0x5f75e0=_0x80e23a>0x1?void 0x0:_0x80e23a?Y(_0x395c5c,_0x427a6f):_0x395c5c,_0x479fec=_0x56c3cf[_0x306bc8(0x292)]-0x1,_0x5218ca;_0x479fec>=0x0;_0x479fec--)(_0x5218ca=_0x56c3cf[_0x479fec])&&(_0x5f75e0=_0x5218ca(_0x5f75e0)||_0x5f75e0);return _0x5f75e0;},S=(_0x541dda,_0x2c9c3b)=>(_0x4e98e1,_0x3384cd)=>_0x2c9c3b(_0x4e98e1,_0x3384cd,_0x541dda);function _0x52df(){var _0x2f1b02=['tag','not-following','LIVESHARE_TERMINATE','OFFLINE','LiveShareIcon','_status$','_config','type','startFollowing','_unitID','merge','_reporters','react/jsx-runtime','@univerjs/sheets','mutations','registerInitialStateReporter','following','getMemberID','className','_injector','stopFollowing','status$','presenting','useRef','_init','_handleOffline','_fetchOperations','Injector','Module','idle','Present\x20this\x20document','_startLiveShareCoordinator','map','touchDependencies','_collabSession','trim','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','current','live-share-icon','IUniverInstanceService','2363388WskCbi','_entities','get','useState','text','defIds','asObservable','getCurrentTypeOfUnit$','_configService','concat','LiveShareService','_presenter','replace','displayName','registerDependencies','getTypeOfUnitDisposed$','onRendered','event$','863538GxIrey','DisposableCollection','url(#$1','6802164ZaeOrZ','_stopPresenting','@univerjs-pro/collaboration','attrs','includes','3MdXqgU','shouldShareOperation','evenodd','NOT_FOLLOWING','DependentOn','prototype','random','UNIVER_UNKNOWN','8040312qsEiEn','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','_status','useEffect','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','executeCommand','toString','params','_handleNewHost','_uiPartsService','path','PRESENTING','CommandType','Inject','throttleTime','icon','colorChannel1','pipe','toDisposable','SetScrollOperation','dispose','@univerjs/core','hasOwnProperty','length','connectInjector','extend','clear','_handleOnline','Button','children','sessionStatus$','Dropdown','call','takeUntil','_collabSessionService','find','Disposable','rxjs','use','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','CollaborationEvent','string','HEADER_MENU','Stop\x20presenting','substring','DesktopLiveShareController','LIVESHARE_OPERATION','button','LiveShareCoordinator','useObservable','offline','assign','set','rxjs/operators','forEach','none','data','forwardRef','OPERATION','_startFollowing','LiveShare','You\x27are\x20offline.','SetZoomRatioOperation','2956915HpXPRX','then','registerSharedOperation','symbol','_handleOperation','default','IConfigService','onCommandExecuted','presenter','memberID','_sharedOperations','defs','entries','add','_beIdle','reverse','unitId','setConfig','getLiveShareCoordinator','useDependency','getOwnPropertySymbols','You\x27re\x20presenting\x20the\x20document','createElement','send','createInstance','indexOf','jsx','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','idSuffix','Fragment','_mountLiveShare','tryStartPresenting','_handleTerminate','_commandService','parseProtocolChangeset','Start\x20following','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','UNIVER_SHEET','clsx','fill','subscribe','mask','_liveShareService','FOLLOWING','xlink:href','_handleNewChangeSets','currentColor','getInitialStates','LiveShareStatus','stopPresenting','LiveShareController','48933ptQpQB','1em','LIVESHARE_REQUEST_HOST','UniverLiveSharePlugin','BehaviorSubject','unsubscribe','Stop\x20following','parse','disposeWithMe','react','SetWorksheetActiveOperation','Plugin','pluginName','jsxs','complete','init','http://www.w3.org/2000/svg','getValue','3504ycmuWY','LIVESHARE_NEW_HOST','getConfig','InsertSheetMutation','0\x200\x2017\x2017','Start','getOwnPropertyDescriptor','@univerjs/design','1076844XISdBt','onStarting','div','_commandDisposable','UniverIcon','_startPresenting','defineProperty','delete','apply','dispose$','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','NEW_CHANGESETS','next','has','stringify','SessionStatus','from','UniverInstanceType','IDLE','requireSession','@univerjs/ui','_stopFollowing','ICommandService','registerComponent'];_0x52df=function(){return _0x2f1b02;};return _0x52df();}exports[_0x9d6b91(0x1fd)]=class extends o['RxDisposable']{constructor(_0x1345d9,_0x57ed8a,_0x59fc46){var _0x3f6f82=_0x9d6b91;super(),v(this,_0x3f6f82(0x259),new Map()),(this[_0x3f6f82(0x1ef)]=_0x1345d9,this[_0x3f6f82(0x243)]=_0x57ed8a,this['_collabSessionService']=_0x59fc46,this[_0x3f6f82(0x248)]());}async[_0x9d6b91(0x1db)](_0x1ab2ff){var _0x263fed=_0x9d6b91;return this['_entities'][_0x263fed(0x225)](_0x1ab2ff)||await this[_0x263fed(0x24f)](_0x1ab2ff),this['_entities'][_0x263fed(0x25a)](_0x1ab2ff);}[_0x9d6b91(0x248)](){var _0x470ab1=_0x9d6b91;this[_0x470ab1(0x1ef)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x470ab1(0x1f0)])['pipe'](b[_0x470ab1(0x29c)](this[_0x470ab1(0x221)]))[_0x470ab1(0x1f3)](async _0x2f8d16=>{var _0x44d3fe=_0x470ab1;const _0x446de5=_0x2f8d16['getUnitId']();this['_entities']['has'](_0x446de5)||this[_0x44d3fe(0x24f)](_0x446de5);}),this[_0x470ab1(0x1ef)][_0x470ab1(0x267)](o[_0x470ab1(0x229)][_0x470ab1(0x1f0)])[_0x470ab1(0x28c)](b[_0x470ab1(0x29c)](this[_0x470ab1(0x221)]))[_0x470ab1(0x1f3)](_0x3b964b=>{var _0x4aa62f=_0x470ab1;const _0x246068=_0x3b964b[_0x4aa62f(0x1e5)](),_0x36f471=this[_0x4aa62f(0x259)]['get'](_0x246068);_0x36f471==null||_0x36f471['dispose']();});}async[_0x9d6b91(0x24f)](_0x28f0c7){var _0x4b174e=_0x9d6b91;const _0x41f12d=await this[_0x4b174e(0x29d)][_0x4b174e(0x22b)](_0x28f0c7),_0x15b3e6=this[_0x4b174e(0x243)][_0x4b174e(0x1e1)](exports[_0x4b174e(0x1ba)],_0x28f0c7,_0x41f12d);return _0x15b3e6[_0x4b174e(0x20d)](),this['_entities']['set'](_0x28f0c7,_0x15b3e6),_0x15b3e6;}},exports[_0x9d6b91(0x1fd)]=R([S(0x0,o[_0x9d6b91(0x257)]),S(0x1,o[_0x9d6b91(0x288)](o['Injector'])),S(0x2,o[_0x9d6b91(0x288)](m['CollaborationSessionService']))],exports[_0x9d6b91(0x1fd)]);var h=(_0x566847=>(_0x566847[_0x9d6b91(0x233)]=_0x9d6b91(0x1bc),_0x566847[_0x9d6b91(0x22a)]=_0x9d6b91(0x24d),_0x566847[_0x9d6b91(0x1f6)]=_0x9d6b91(0x240),_0x566847[_0x9d6b91(0x275)]=_0x9d6b91(0x231),_0x566847[_0x9d6b91(0x286)]=_0x9d6b91(0x246),_0x566847))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x19d53b,_0x1328ad,_0x150b68,_0x3f1db7,_0x772e87){var _0x460a30=_0x9d6b91;super(),v(this,_0x460a30(0x235),new D[(_0x460a30(0x202))](_0x460a30(0x24d))),v(this,'status$',this[_0x460a30(0x235)][_0x460a30(0x25e)]()),v(this,_0x460a30(0x248),!0x1),v(this,'_commandDisposable',null),v(this,_0x460a30(0x263),null),(this[_0x460a30(0x239)]=_0x19d53b,this[_0x460a30(0x252)]=_0x1328ad,this[_0x460a30(0x260)]=_0x150b68,this[_0x460a30(0x1f5)]=_0x3f1db7,this[_0x460a30(0x1eb)]=_0x772e87);}get[_0x9d6b91(0x27c)](){var _0x2e640b=_0x9d6b91;return this[_0x2e640b(0x235)][_0x2e640b(0x20f)]();}[_0x9d6b91(0x28f)](){var _0x3c149a=_0x9d6b91,_0x576b80;(_0x576b80=this[_0x3c149a(0x21b)])==null||_0x576b80[_0x3c149a(0x28f)](),this[_0x3c149a(0x235)][_0x3c149a(0x224)](_0x3c149a(0x24d)),this[_0x3c149a(0x235)][_0x3c149a(0x20c)]();}[_0x9d6b91(0x20d)](){var _0x5bbf99=_0x9d6b91;this['_init']||(this['_init']=!0x0,this[_0x5bbf99(0x252)][_0x5bbf99(0x299)][_0x5bbf99(0x28c)](b[_0x5bbf99(0x29c)](this[_0x5bbf99(0x221)]))[_0x5bbf99(0x1f3)](_0x31494b=>{var _0x2d7d80=_0x5bbf99;switch(_0x31494b){case m['SessionStatus']['OFFLINE']:this[_0x2d7d80(0x249)]();break;case m[_0x2d7d80(0x227)][_0x2d7d80(0x27f)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x5bbf99(0x269)][_0x5bbf99(0x28c)](b[_0x5bbf99(0x29c)](this['dispose$']))[_0x5bbf99(0x1f3)](_0x5a2842=>{var _0x30ef93=_0x5bbf99;const {eventID:_0xe1f1b8}=_0x5a2842;switch(_0xe1f1b8){case _[_0x30ef93(0x1b2)][_0x30ef93(0x211)]:this[_0x30ef93(0x283)](_0x5a2842);break;case _[_0x30ef93(0x1b2)][_0x30ef93(0x1b8)]:this[_0x30ef93(0x1cd)](_0x5a2842);break;case _[_0x30ef93(0x1b2)][_0x30ef93(0x232)]:this[_0x30ef93(0x1ea)]();break;case _[_0x30ef93(0x1b2)][_0x30ef93(0x223)]:this[_0x30ef93(0x1f8)](_0x5a2842);break;}}));}[_0x9d6b91(0x1e9)](){var _0x221523=_0x9d6b91;this['_collabSession']['send']({'eventID':_[_0x221523(0x1b2)][_0x221523(0x200)],'data':{'unitID':this[_0x221523(0x239)],'userID':this[_0x221523(0x252)]['getMemberID']()}},this[_0x221523(0x239)]);}[_0x9d6b91(0x1fc)](){var _0xa9847a=_0x9d6b91;this[_0xa9847a(0x27c)]==='presenting'&&(this[_0xa9847a(0x235)][_0xa9847a(0x224)](_0xa9847a(0x24d)),this[_0xa9847a(0x252)]['send']({'eventID':_[_0xa9847a(0x1b2)][_0xa9847a(0x232)],'data':{'unitID':this[_0xa9847a(0x239)]}},this[_0xa9847a(0x239)]));}[_0x9d6b91(0x238)](){var _0x2492fd=_0x9d6b91;this[_0x2492fd(0x27c)]===_0x2492fd(0x231)&&(this[_0x2492fd(0x235)][_0x2492fd(0x224)](_0x2492fd(0x240)),this[_0x2492fd(0x1c5)]());}[_0x9d6b91(0x244)](){var _0x309302=_0x9d6b91;this['_status']===_0x309302(0x240)&&this[_0x309302(0x22d)]();}[_0x9d6b91(0x283)](_0x26c01b){var _0x20472b=_0x9d6b91;const {presenter:_0x1ad43d}=_0x26c01b[_0x20472b(0x1c2)],_0x22d60e=this[_0x20472b(0x252)]['getMemberID']();this[_0x20472b(0x263)]=_0x1ad43d,_0x1ad43d===_0x22d60e?(this[_0x20472b(0x22d)](),this[_0x20472b(0x21d)]()):this['_status']!==_0x20472b(0x231)&&(this['_stopPresenting'](),this[_0x20472b(0x1c5)]());}[_0x9d6b91(0x24a)](){var _0x5a2ceb=_0x9d6b91;const _0x2d373f={'eventID':_[_0x5a2ceb(0x1b2)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5a2ceb(0x252)][_0x5a2ceb(0x1e0)](_0x2d373f,this[_0x5a2ceb(0x239)]);}[_0x9d6b91(0x1ea)](){var _0x45608b=_0x9d6b91;this[_0x45608b(0x263)]=null,this[_0x45608b(0x27c)]!==_0x45608b(0x246)&&this[_0x45608b(0x1d7)]();}[_0x9d6b91(0x1f8)](_0x3b9abc){var _0x410945=_0x9d6b91;if(this[_0x410945(0x27c)]===_0x410945(0x240)&&this[_0x410945(0x263)]===_0x3b9abc[_0x410945(0x1c2)][_0x410945(0x1d2)]){const _0x20b942=_[_0x410945(0x1ec)](_0x3b9abc[_0x410945(0x1c2)])[_0x410945(0x23e)][_0x410945(0x1d8)]()[_0x410945(0x29e)](_0xdab5ce=>_0xdab5ce['id']===C[_0x410945(0x213)]['id']);if(_0x20b942){const _0x1b8066=_0x20b942[_0x410945(0x282)][_0x410945(0x1d9)],_0x367b45=_0x20b942['params']['sheet']['id'];setTimeout(()=>{var _0x6de9e3=_0x410945;this[_0x6de9e3(0x1eb)]['executeCommand'](C[_0x6de9e3(0x208)]['id'],{'unitId':_0x1b8066,'subUnitId':_0x367b45},{'fromCollab':!0x0});});}}}[_0x9d6b91(0x21d)](){var _0x3e4afc=_0x9d6b91;this['_status$'][_0x3e4afc(0x224)](_0x3e4afc(0x246));const _0xd612b2=new Map(),_0x2c6704=this[_0x3e4afc(0x21b)]=new o[(_0x3e4afc(0x26b))]();_0x2c6704['add'](o['toDisposable'](()=>{var _0x3fa14e=_0x3e4afc;_0xd612b2[_0x3fa14e(0x1c0)](_0x5818a6=>_0x5818a6['complete']()),_0xd612b2[_0x3fa14e(0x295)]();})),_0x2c6704['add'](this[_0x3e4afc(0x1eb)][_0x3e4afc(0x1d0)](_0x36ee7d=>{var _0x534ca5=_0x3e4afc,_0x4b69f7;if(_0x36ee7d[_0x534ca5(0x237)]!==o[_0x534ca5(0x287)][_0x534ca5(0x1c4)]||!this[_0x534ca5(0x1f5)]['shouldShareOperation'](_0x36ee7d['id']))return;const {id:_0xbfe175}=_0x36ee7d;let _0x52a565;_0xd612b2[_0x534ca5(0x225)](_0xbfe175)?_0x52a565=_0xd612b2[_0x534ca5(0x25a)](_0xbfe175):(_0x52a565=new D['Subject'](),_0xd612b2[_0x534ca5(0x1be)](_0xbfe175,_0x52a565),_0x52a565[_0x534ca5(0x28c)](b[_0x534ca5(0x289)]((_0x4b69f7=this['_configService'][_0x534ca5(0x212)](Z))!=null?_0x4b69f7:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x534ca5(0x1f3)](_0x2e3661=>{var _0x1e393=_0x534ca5;this['_collabSession'][_0x1e393(0x1e0)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2e3661['id']]:{'id':_0x2e3661['id'],'params':JSON[_0x1e393(0x226)](_0x2e3661[_0x1e393(0x282)])}}}},this[_0x1e393(0x239)]);})),_0x52a565[_0x534ca5(0x224)](_0x36ee7d);})),this[_0x3e4afc(0x1f5)][_0x3e4afc(0x1fa)](this[_0x3e4afc(0x239)])[_0x3e4afc(0x1c0)](_0xa5599a=>this['_collabSession'][_0x3e4afc(0x1e0)]({'eventID':_[_0x3e4afc(0x1b2)][_0x3e4afc(0x1b8)],'data':{'unitID':this[_0x3e4afc(0x239)],'operations':{[_0xa5599a['id']]:{'id':_0xa5599a['id'],'params':JSON['stringify'](_0xa5599a['params'])}}}},this[_0x3e4afc(0x239)]));}[_0x9d6b91(0x26e)](){var _0x311d05=_0x9d6b91,_0x1252d8;this[_0x311d05(0x235)]['next'](_0x311d05(0x24d)),(_0x1252d8=this[_0x311d05(0x21b)])==null||_0x1252d8[_0x311d05(0x28f)](),this['_commandDisposable']=null;}[_0x9d6b91(0x1c5)](){var _0x3eab51=_0x9d6b91,_0x29e1b0;(_0x29e1b0=this['_commandDisposable'])==null||_0x29e1b0[_0x3eab51(0x28f)](),this[_0x3eab51(0x235)]['next'](_0x3eab51(0x240));}[_0x9d6b91(0x1d7)](){var _0x4f303e=_0x9d6b91,_0x165c6e;this[_0x4f303e(0x235)][_0x4f303e(0x224)](_0x4f303e(0x24d)),(_0x165c6e=this['_commandDisposable'])==null||_0x165c6e[_0x4f303e(0x28f)](),this[_0x4f303e(0x21b)]=null;}[_0x9d6b91(0x22d)](){var _0x2d0f3b=_0x9d6b91,_0x13d905;this[_0x2d0f3b(0x235)]['next'](_0x2d0f3b(0x231)),(_0x13d905=this[_0x2d0f3b(0x21b)])==null||_0x13d905[_0x2d0f3b(0x28f)]();}[_0x9d6b91(0x1cd)](_0x551d90){var _0x38a214=_0x9d6b91;if(['presenting',_0x38a214(0x231),_0x38a214(0x1bc)][_0x38a214(0x271)](this[_0x38a214(0x27c)])||!_0x551d90[_0x38a214(0x1c2)][_0x38a214(0x1d1)]||_0x551d90[_0x38a214(0x1c2)][_0x38a214(0x1d1)]===this[_0x38a214(0x252)][_0x38a214(0x241)]())return;this[_0x38a214(0x27c)]===_0x38a214(0x24d)&&this['_startFollowing']();const _0x49fed5=_0x551d90[_0x38a214(0x1c2)]['operations'];Object['values'](_0x49fed5)[_0x38a214(0x1c0)](_0x49b2ac=>{var _0x5c78f2=_0x38a214;this[_0x5c78f2(0x1eb)][_0x5c78f2(0x280)](_0x49b2ac['id'],_0x49b2ac['params']?JSON[_0x5c78f2(0x205)](_0x49b2ac[_0x5c78f2(0x282)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x5ef81a=_0x9d6b91,_0x44f661;this[_0x5ef81a(0x235)][_0x5ef81a(0x224)](_0x5ef81a(0x1bc)),(_0x44f661=this[_0x5ef81a(0x21b)])==null||_0x44f661['dispose']();}[_0x9d6b91(0x296)](){var _0x425949=_0x9d6b91;this[_0x425949(0x235)]['next'](_0x425949(0x24d)),this[_0x425949(0x24a)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x9d6b91(0x1cf)]),S(0x3,o[_0x9d6b91(0x288)](O)),S(0x4,o[_0x9d6b91(0x22e)])],exports[_0x9d6b91(0x1ba)]);function A(){var _0x1ea1f2=_0x9d6b91;const _0x19a191=p[_0x1ea1f2(0x1dc)](exports[_0x1ea1f2(0x1fd)]),_0x1b89d3=p[_0x1ea1f2(0x1dc)](o[_0x1ea1f2(0x257)]),_0x2e261c=p[_0x1ea1f2(0x1bb)](()=>_0x1b89d3[_0x1ea1f2(0x25f)](o[_0x1ea1f2(0x229)][_0x1ea1f2(0x1f0)]),void 0x0,!0x1,[]),[_0x5c6089,_0x31aa72]=f['useState'](null),[_0xaf9f70,_0x3371c8]=f[_0x1ea1f2(0x25b)](h[_0x1ea1f2(0x22a)]),_0x4f7301=f[_0x1ea1f2(0x247)](null);return f[_0x1ea1f2(0x27d)](()=>(_0x2e261c&&_0x19a191[_0x1ea1f2(0x1db)](_0x2e261c['getUnitId']())[_0x1ea1f2(0x1ca)](_0xe6e4ac=>{var _0x7d2f2b=_0x1ea1f2;_0x31aa72(_0xe6e4ac),_0x4f7301[_0x7d2f2b(0x255)]=_0xe6e4ac[_0x7d2f2b(0x245)]['subscribe'](_0x1ecce4=>{_0x3371c8(_0x1ecce4);});}),()=>{var _0x1a41bb=_0x1ea1f2,_0x121386;(_0x121386=_0x4f7301[_0x1a41bb(0x255)])==null||_0x121386[_0x1a41bb(0x203)](),_0x4f7301[_0x1a41bb(0x255)]=null;}),[_0x2e261c,_0x19a191]),_0x5c6089?l[_0x1ea1f2(0x1e3)](g[_0x1ea1f2(0x29a)],{'align':'end','disabled':_0xaf9f70===h[_0x1ea1f2(0x233)],'className':_0x1ea1f2(0x27b),'overlay':l['jsx'](K,{'status':_0xaf9f70,'coordinator':_0x5c6089}),'children':l[_0x1ea1f2(0x1e3)](_0x1ea1f2(0x1b9),{'className':g[_0x1ea1f2(0x1f1)](_0x1ea1f2(0x2a2),{'univer-cursor-not-allowed':_0xaf9f70===h[_0x1ea1f2(0x233)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xaf9f70!==h[_0x1ea1f2(0x233)]}),'type':'button','children':l[_0x1ea1f2(0x1e3)](P,{'className':'univer-size-4'})})}):null;}function K(_0x595e04){var _0x1bb7c4=_0x9d6b91;const {status:_0x7c4737,coordinator:_0x5d861d}=_0x595e04;switch(_0x7c4737){case h[_0x1bb7c4(0x22a)]:return l[_0x1bb7c4(0x1e3)](z,{'coordinator':_0x5d861d});case h[_0x1bb7c4(0x1f6)]:return l[_0x1bb7c4(0x1e3)](Q,{'coordinator':_0x5d861d});case h['NOT_FOLLOWING']:return l['jsx'](X,{'coordinator':_0x5d861d});case h[_0x1bb7c4(0x233)]:return l[_0x1bb7c4(0x1e3)](te,{});case h[_0x1bb7c4(0x286)]:return l['jsx'](ee,{'coordinator':_0x5d861d});default:return null;}}function z(_0x2e4072){var _0x2ff082=_0x9d6b91;const {coordinator:_0x4dbc00}=_0x2e4072;return l[_0x2ff082(0x20b)](l[_0x2ff082(0x1e7)],{'children':[l['jsx'](_0x2ff082(0x21a),{'className':_0x2ff082(0x27e),'children':_0x2ff082(0x24e)}),l[_0x2ff082(0x1e3)](g[_0x2ff082(0x297)],{'onClick':()=>_0x4dbc00[_0x2ff082(0x1e9)](),'children':_0x2ff082(0x215)})]});}function Q(_0x5b0342){var _0x4ea19a=_0x9d6b91;const {coordinator:_0x1898ec}=_0x5b0342;return l['jsxs'](l[_0x4ea19a(0x1e7)],{'children':[l[_0x4ea19a(0x1e3)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4ea19a(0x1ee)}),l[_0x4ea19a(0x1e3)](g['Button'],{'onClick':()=>_0x1898ec[_0x4ea19a(0x244)](),'children':_0x4ea19a(0x204)})]});}function _0x43ed(_0x7d133a,_0x162fd1){var _0x52df25=_0x52df();return _0x43ed=function(_0x43ed75,_0x58ac2a){_0x43ed75=_0x43ed75-0x1b2;var _0x17daf2=_0x52df25[_0x43ed75];return _0x17daf2;},_0x43ed(_0x7d133a,_0x162fd1);}function X(_0x3df449){var _0x330ea3=_0x9d6b91;const {coordinator:_0x325369}=_0x3df449;return l['jsxs'](l[_0x330ea3(0x1e7)],{'children':[l[_0x330ea3(0x1e3)](_0x330ea3(0x21a),{'className':_0x330ea3(0x27e),'children':_0x330ea3(0x1e4)}),l['jsx'](g[_0x330ea3(0x297)],{'variant':_0x330ea3(0x25c),'onClick':()=>_0x325369[_0x330ea3(0x238)](),'children':_0x330ea3(0x1ed)})]});}function ee(_0x1f69db){var _0x422d6a=_0x9d6b91;const {coordinator:_0x460c4e}=_0x1f69db;return l[_0x422d6a(0x20b)](l[_0x422d6a(0x1e7)],{'children':[l['jsx'](_0x422d6a(0x21a),{'className':_0x422d6a(0x27e),'children':_0x422d6a(0x1de)}),l[_0x422d6a(0x1e3)](g[_0x422d6a(0x297)],{'variant':_0x422d6a(0x1ce),'onClick':()=>_0x460c4e['stopPresenting'](),'children':_0x422d6a(0x1b5)})]});}function te(){var _0xe7d7c6=_0x9d6b91;return l[_0xe7d7c6(0x1e3)](l['Fragment'],{'children':_0xe7d7c6(0x1c7)});}var ie=Object[_0x9d6b91(0x216)],ne=(_0x3bd859,_0x2402d1,_0x2a7224,_0x3a9b37)=>{var _0x82525b=_0x9d6b91;for(var _0x542950=_0x3a9b37>0x1?void 0x0:_0x3a9b37?ie(_0x2402d1,_0x2a7224):_0x2402d1,_0x352a45=_0x3bd859[_0x82525b(0x292)]-0x1,_0x569af0;_0x352a45>=0x0;_0x352a45--)(_0x569af0=_0x3bd859[_0x352a45])&&(_0x542950=_0x569af0(_0x542950)||_0x542950);return _0x542950;},L=(_0x5159bd,_0x26c40c)=>(_0x2e4507,_0x90e087)=>_0x26c40c(_0x2e4507,_0x90e087,_0x5159bd);exports[_0x9d6b91(0x1b7)]=class extends o['Disposable']{constructor(_0x361953,_0x3acd10){var _0x41e601=_0x9d6b91;super(),this[_0x41e601(0x243)]=_0x361953,this[_0x41e601(0x284)]=_0x3acd10,this[_0x41e601(0x1e8)]();}[_0x9d6b91(0x1e8)](){var _0x1f0987=_0x9d6b91;this[_0x1f0987(0x206)](this['_uiPartsService'][_0x1f0987(0x22f)](p['BuiltInUIPart'][_0x1f0987(0x1b4)],()=>p[_0x1f0987(0x293)](A,this[_0x1f0987(0x243)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x9d6b91(0x288)](o[_0x9d6b91(0x24b)])),L(0x1,p['IUIPartsService'])],exports[_0x9d6b91(0x1b7)]);var re=Object[_0x9d6b91(0x21e)],se=Object[_0x9d6b91(0x216)],oe=(_0x551198,_0x351752,_0x3e55ee)=>_0x351752 in _0x551198?re(_0x551198,_0x351752,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e55ee}):_0x551198[_0x351752]=_0x3e55ee,ae=(_0x4c0173,_0x4b88cd,_0x2cd5dc,_0x1f7358)=>{var _0x4d19d2=_0x9d6b91;for(var _0x5503e4=_0x1f7358>0x1?void 0x0:_0x1f7358?se(_0x4b88cd,_0x2cd5dc):_0x4b88cd,_0xa21e9e=_0x4c0173[_0x4d19d2(0x292)]-0x1,_0x3c7b67;_0xa21e9e>=0x0;_0xa21e9e--)(_0x3c7b67=_0x4c0173[_0xa21e9e])&&(_0x5503e4=_0x3c7b67(_0x5503e4)||_0x5503e4);return _0x5503e4;},N=(_0x250a62,_0x19f7f1)=>(_0xd40993,_0x5e3d59)=>_0x19f7f1(_0xd40993,_0x5e3d59,_0x250a62),T=(_0x139a34,_0xdb0633,_0x41f2c1)=>oe(_0x139a34,typeof _0xdb0633!='symbol'?_0xdb0633+'':_0xdb0633,_0x41f2c1);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x9d6b91(0x201)]=class extends o[_0x9d6b91(0x209)]{constructor(_0x42c11d=x,_0x2d1437,_0x4ff154){var _0x434146=_0x9d6b91;super(),this[_0x434146(0x236)]=_0x42c11d,this[_0x434146(0x243)]=_0x2d1437,this[_0x434146(0x260)]=_0x4ff154;const {..._0x5e58f7}=o[_0x434146(0x23a)]({},x,this['_config']);this[_0x434146(0x260)][_0x434146(0x1da)]($,_0x5e58f7);}[_0x9d6b91(0x219)](){var _0x629478=_0x9d6b91;o[_0x629478(0x266)](this[_0x629478(0x243)],o['mergeOverrideWithDependencies']([[O],[exports[_0x629478(0x1fd)]],[E],[exports[_0x629478(0x1b7)]]],this[_0x629478(0x236)]['override'])),o['touchDependencies'](this[_0x629478(0x243)],[[E]]);}[_0x9d6b91(0x268)](){var _0x29d399=_0x9d6b91;o[_0x29d399(0x251)](this['_injector'],[[exports[_0x29d399(0x1b7)]]]);}},T(exports[_0x9d6b91(0x201)],'type',o[_0x9d6b91(0x229)][_0x9d6b91(0x279)]),T(exports[_0x9d6b91(0x201)],_0x9d6b91(0x20a),le),exports[_0x9d6b91(0x201)]=ae([o[_0x9d6b91(0x276)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x9d6b91(0x288)](o['Injector'])),N(0x2,o[_0x9d6b91(0x1cf)])],exports[_0x9d6b91(0x201)]),exports[_0x9d6b91(0x1c6)]=A,exports[_0x9d6b91(0x262)]=O,exports[_0x9d6b91(0x1fb)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x31198e=_0x30db;(function(_0xed52d5,_0x473d22){var _0x54ae83=_0x30db,_0x1098da=_0xed52d5();while(!![]){try{var _0x4c8fb0=parseInt(_0x54ae83(0x17b))/0x1+-parseInt(_0x54ae83(0x1b5))/0x2*(parseInt(_0x54ae83(0x1d2))/0x3)+-parseInt(_0x54ae83(0x1ba))/0x4+-parseInt(_0x54ae83(0x167))/0x5+-parseInt(_0x54ae83(0x143))/0x6+-parseInt(_0x54ae83(0x1a4))/0x7+parseInt(_0x54ae83(0x1cd))/0x8;if(_0x4c8fb0===_0x473d22)break;else _0x1098da['push'](_0x1098da['shift']());}catch(_0x27a0e5){_0x1098da['push'](_0x1098da['shift']());}}}(_0x4014,0xa6c93));var q=Object[_0x31198e(0x1b2)],z=(_0x3461eb,_0x7b6b31,_0x4978f0)=>_0x7b6b31 in _0x3461eb?q(_0x3461eb,_0x7b6b31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4978f0}):_0x3461eb[_0x7b6b31]=_0x4978f0,d=(_0x4154d7,_0x3dff64,_0x28f982)=>z(_0x4154d7,typeof _0x3dff64!=_0x31198e(0x1d3)?_0x3dff64+'':_0x3dff64,_0x28f982);import{CollaborationSessionService as _0x3797e6,SessionStatus as _0xbb74fd,UniverCollaborationClientPlugin as _0x40f314}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3039f2,toDisposable as _0x322b7a,Inject as _0x44183f,IUniverInstanceService as _0xa538ea,Injector as _0x59ff7b,IConfigService as _0x5ad91b,ICommandService as _0x1f2ab5,RxDisposable as _0x25d182,UniverInstanceType as _0x384d9f,DisposableCollection as _0x8826e3,CommandType as _0x5520f3,DependentOn as _0x5e6bbe,Plugin as _0x95d93e,merge as _0x46d38b,registerDependencies as _0x352343,mergeOverrideWithDependencies as _0x5ee3d2,touchDependencies as _0x3f2e03}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x45d30c,InsertSheetMutation as _0x182beb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x56f8dd,SetScrollOperation as _0x39acd7}from'@univerjs/sheets-ui';import{useDependency as _0x1bdc43,useObservable as _0x5068f5,IUIPartsService as _0x3210f0,BuiltInUIPart as _0x2a6ff0,connectInjector as _0x5a25e5}from'@univerjs/ui';import{jsx as _0x15aab4,jsxs as _0x346495,Fragment as _0x5b11db}from'react/jsx-runtime';import{Dropdown as _0x3cbf5d,clsx as _0x378b8b,Button as _0x225bf1}from'@univerjs/design';import{forwardRef as _0x35ed48,useRef as _0x3745a5,createElement as _0x15565a,useState as _0x3b70aa,useEffect as _0x3a4d4a}from'react';import{CollaborationEvent as _0x25e5a9,parseProtocolChangeset as _0x2b7d41}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x231456,Subject as _0x5b5f3e}from'rxjs';function _0x30db(_0x2b5ac1,_0xdadc39){var _0x4014f1=_0x4014();return _0x30db=function(_0x30db0c,_0x274aab){_0x30db0c=_0x30db0c-0x137;var _0x1887b8=_0x4014f1[_0x30db0c];return _0x1887b8;},_0x30db(_0x2b5ac1,_0xdadc39);}import{takeUntil as _0x3106b9,throttleTime as _0x21d466}from'rxjs/operators';const Oe=_0x31198e(0x1d0),T={};class L extends _0x3039f2{constructor(){var _0x2f49d2=_0x31198e;super(...arguments),d(this,_0x2f49d2(0x15a),new Set()),d(this,_0x2f49d2(0x1bd),new Set());}[_0x31198e(0x1d5)](_0x365283){var _0x36af5c=_0x31198e;return this['_sharedOperations'][_0x36af5c(0x1a2)](_0x365283),_0x322b7a(()=>this[_0x36af5c(0x15a)][_0x36af5c(0x16a)](_0x365283));}[_0x31198e(0x1db)](_0x576ac5){var _0x17f2be=_0x31198e;return this[_0x17f2be(0x1bd)][_0x17f2be(0x1a2)](_0x576ac5),_0x322b7a(()=>this[_0x17f2be(0x1bd)][_0x17f2be(0x16a)](_0x576ac5));}[_0x31198e(0x174)](_0x2d1832){var _0x563c9a=_0x31198e;return this['_sharedOperations'][_0x563c9a(0x173)](_0x2d1832);}[_0x31198e(0x17f)](_0xfb26cf){var _0x113f6e=_0x31198e;return Array['from'](this[_0x113f6e(0x1bd)])[_0x113f6e(0x1a7)](_0x598bc2=>_0x598bc2(_0xfb26cf));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x22e794,_0x9ad2b6,_0x200a03,_0x2996e7)=>{for(var _0x14cdbc=_0x2996e7>0x1?void 0x0:_0x2996e7?Ee(_0x9ad2b6,_0x200a03):_0x9ad2b6,_0x1d7526=_0x22e794['length']-0x1,_0x25e93e;_0x1d7526>=0x0;_0x1d7526--)(_0x25e93e=_0x22e794[_0x1d7526])&&(_0x14cdbc=_0x25e93e(_0x14cdbc)||_0x14cdbc);return _0x14cdbc;},Ne=(_0x2de2b2,_0x8669e9)=>(_0x70f1be,_0x248c2f)=>_0x8669e9(_0x70f1be,_0x248c2f,_0x2de2b2);let m=class extends _0x3039f2{constructor(_0x494c2e){var _0x5ed743=_0x31198e;super(),this[_0x5ed743(0x1b3)]=_0x494c2e,this[_0x5ed743(0x19e)]();}['_init'](){var _0x1fd796=_0x31198e;[_0x56f8dd['id'],_0x39acd7['id'],_0x45d30c['id']][_0x1fd796(0x198)](_0x4053f9=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x4053f9));});}};function _0x4014(){var _0x4c674b=['_sharedOperations','dispose$','_handleOnline','operations','mutations','prototype','fill','next','clear','live-share-icon','propertyIsEnumerable','getTypeOfUnitAdded$','attrs','635010wcKJpr','_commandService','LiveShareIcon','delete','currentColor','_status$','Start\x20following','getOwnPropertyDescriptor','text','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','then','has','shouldShareOperation','length','univerjs-icon\x20univerjs-icon-','defIds','tryStartPresenting','trim','_config','307382dfKnLy','OFFLINE','div','_startFollowing','getInitialStates','memberID','status$','setConfig','_unitID','_presenter','1em','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','set','pipe','HEADER_MENU','tag','dispose','_collabSessionService','getCurrentTypeOfUnit$','_handleNewChangeSets','0\x200\x2017\x2017','concat','call','idSuffix','mask','LIVESHARE_FETCH_OPERATIONS','idle','onStarting','forEach','following','_univerInstanceService','Present\x20this\x20document','IDLE','unitId','_init','getMemberID','startFollowing','PRESENTING','add','type','7111937TjIJpc','presenter','defs','map','stopPresenting','string','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','_handleOperation','UNIVER_SHEET','requireSession','FOLLOWING','extend','onRendered','defineProperty','_liveShareService','http://www.w3.org/2000/svg','549166HBgFUL','none','assign','ONLINE','univer-size-4','2863008ONuVEO','button','data','_reporters','_configService','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','_entities','displayName','getTypeOfUnitDisposed$','NEW_CHANGESETS','not-following','_startPresenting','Start','executeCommand','values','_handleTerminate','offline','subscribe','init','27622824CsdptJ','icon','current','live-share.config','get','6WSepWY','symbol','unsubscribe','registerSharedOperation','complete','NOT_FOLLOWING','_stopPresenting','UNIVER_UNKNOWN','indexOf','registerInitialStateReporter','override','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','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','getOwnPropertySymbols','includes','sheet','_status','_startLiveShareCoordinator','_handleNewHost','_stopFollowing','You\x27re\x20presenting\x20the\x20document','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','_handleOffline','svg','find','xlink:href','entries','_fetchOperations','_uiPartsService','reverse','presenting','colorChannel1','send','4015014BeOJQU','LIVESHARE_OPERATION','getConfig','stopFollowing','_injector','getValue','pluginName','toString','children','params','stringify','asObservable','apply','className','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_beIdle','UniverIcon','getUnitId','_commandDisposable','parse','evenodd','LIVESHARE_REQUEST_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x4014=function(){return _0x4c674b;};return _0x4014();}m=we([Ne(0x0,_0x44183f(L))],m);var c=function(){var _0x469d03=_0x31198e;return c=Object[_0x469d03(0x1b7)]||function(_0x2c039d){var _0x3b30a8=_0x469d03;for(var _0x2182d4,_0x29c714=0x1,_0x2f7ea8=arguments[_0x3b30a8(0x175)];_0x29c714<_0x2f7ea8;_0x29c714++){_0x2182d4=arguments[_0x29c714];for(var _0x44dc78 in _0x2182d4)Object[_0x3b30a8(0x15f)]['hasOwnProperty'][_0x3b30a8(0x192)](_0x2182d4,_0x44dc78)&&(_0x2c039d[_0x44dc78]=_0x2182d4[_0x44dc78]);}return _0x2c039d;},c[_0x469d03(0x14f)](this,arguments);},Ce=function(_0x17f5c1,_0x4d78f4){var _0x543fba=_0x31198e,_0x5c688a={};for(var _0x182bf0 in _0x17f5c1)Object[_0x543fba(0x15f)]['hasOwnProperty'][_0x543fba(0x192)](_0x17f5c1,_0x182bf0)&&_0x4d78f4[_0x543fba(0x1da)](_0x182bf0)<0x0&&(_0x5c688a[_0x182bf0]=_0x17f5c1[_0x182bf0]);if(_0x17f5c1!=null&&typeof Object[_0x543fba(0x1e0)]=='function'){for(var _0x348462=0x0,_0x182bf0=Object['getOwnPropertySymbols'](_0x17f5c1);_0x348462<_0x182bf0[_0x543fba(0x175)];_0x348462++)_0x4d78f4[_0x543fba(0x1da)](_0x182bf0[_0x348462])<0x0&&Object['prototype'][_0x543fba(0x164)]['call'](_0x17f5c1,_0x182bf0[_0x348462])&&(_0x5c688a[_0x182bf0[_0x348462]]=_0x17f5c1[_0x182bf0[_0x348462]]);}return _0x5c688a;},W=_0x35ed48(function(_0x939879,_0x3f12ec){var _0x3575da=_0x31198e,_0x15b519=_0x939879[_0x3575da(0x1ce)],_0x113ddc=_0x939879['id'],_0x45465c=_0x939879['className'],_0x38f5c5=_0x939879[_0x3575da(0x1b0)],_0x1acc17=Ce(_0x939879,[_0x3575da(0x1ce),'id',_0x3575da(0x150),_0x3575da(0x1b0)]),_0x563d2c=_0x3575da(0x176)['concat'](_0x113ddc,'\x20')[_0x3575da(0x191)](_0x45465c||'')[_0x3575da(0x179)](),_0x266c6d=_0x3745a5('_'['concat'](Le()));return Y(_0x15b519,''[_0x3575da(0x191)](_0x113ddc),{'defIds':_0x15b519[_0x3575da(0x177)],'idSuffix':_0x266c6d[_0x3575da(0x1cf)]},c({'ref':_0x3f12ec,'className':_0x563d2c},_0x1acc17),_0x38f5c5);});function Y(_0x1d3ee5,_0x5b7941,_0xa05807,_0x36525f,_0x9e122e){var _0x48bbb5=_0x31198e;return _0x15565a(_0x1d3ee5[_0x48bbb5(0x18b)],c(c({'key':_0x5b7941},De(_0x1d3ee5,_0xa05807,_0x9e122e)),_0x36525f),(xe(_0x1d3ee5,_0xa05807)[_0x48bbb5(0x14b)]||[])['map'](function(_0x47e4eb,_0x3de012){var _0x49cb2d=_0x48bbb5;return Y(_0x47e4eb,''[_0x49cb2d(0x191)](_0x5b7941,'-')['concat'](_0x1d3ee5[_0x49cb2d(0x18b)],'-')['concat'](_0x3de012),_0xa05807,void 0x0,_0x9e122e);}));}function De(_0x2fd1eb,_0x543afd,_0x3a54b3){var _0x7db80e=_0x31198e,_0x1c4cd3=c({},_0x2fd1eb['attrs']);_0x3a54b3!=null&&_0x3a54b3[_0x7db80e(0x141)]&&_0x1c4cd3['fill']===_0x7db80e(0x141)&&(_0x1c4cd3[_0x7db80e(0x160)]=_0x3a54b3[_0x7db80e(0x141)]),_0x2fd1eb[_0x7db80e(0x18b)]==='mask'&&_0x1c4cd3['id']&&(_0x1c4cd3['id']=_0x1c4cd3['id']+_0x543afd[_0x7db80e(0x193)]),Object[_0x7db80e(0x13c)](_0x1c4cd3)['forEach'](function(_0x68f6b5){var _0x504694=_0x7db80e,_0x27dd93=_0x68f6b5[0x0],_0x3f7b78=_0x68f6b5[0x1];_0x27dd93===_0x504694(0x194)&&typeof _0x3f7b78==_0x504694(0x1a9)&&(_0x1c4cd3[_0x27dd93]=_0x3f7b78['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x543afd[_0x504694(0x193)],')')));});var _0x418e55=_0x543afd[_0x7db80e(0x177)];return!_0x418e55||_0x418e55[_0x7db80e(0x175)]===0x0||(_0x2fd1eb['tag']==='use'&&_0x1c4cd3[_0x7db80e(0x13b)]&&(_0x1c4cd3[_0x7db80e(0x13b)]=_0x1c4cd3[_0x7db80e(0x13b)]+_0x543afd[_0x7db80e(0x193)]),Object['entries'](_0x1c4cd3)[_0x7db80e(0x198)](function(_0x2cbca2){var _0x265d09=_0x7db80e,_0x4bcb2b=_0x2cbca2[0x0],_0x10cba0=_0x2cbca2[0x1];typeof _0x10cba0=='string'&&(_0x1c4cd3[_0x4bcb2b]=_0x10cba0['replace'](/url\(#(.*)\)/,'url(#$1'[_0x265d09(0x191)](_0x543afd[_0x265d09(0x193)],')')));})),_0x1c4cd3;}function xe(_0x69e268,_0x48d728){var _0x3e0d7b=_0x31198e,_0x2de8f9,_0x6f3d14=_0x48d728[_0x3e0d7b(0x177)];return!_0x6f3d14||_0x6f3d14[_0x3e0d7b(0x175)]===0x0?_0x69e268:_0x69e268[_0x3e0d7b(0x18b)]===_0x3e0d7b(0x1a6)&&(!((_0x2de8f9=_0x69e268[_0x3e0d7b(0x14b)])===null||_0x2de8f9===void 0x0)&&_0x2de8f9[_0x3e0d7b(0x175)])?c(c({},_0x69e268),{'children':_0x69e268[_0x3e0d7b(0x14b)][_0x3e0d7b(0x1a7)](function(_0x5bf157){var _0x1b10ab=_0x3e0d7b;return typeof _0x5bf157[_0x1b10ab(0x166)]['id']==_0x1b10ab(0x1a9)&&_0x6f3d14&&_0x6f3d14[_0x1b10ab(0x1e1)](_0x5bf157[_0x1b10ab(0x166)]['id'])?c(c({},_0x5bf157),{'attrs':c(c({},_0x5bf157[_0x1b10ab(0x166)]),{'id':_0x5bf157['attrs']['id']+_0x48d728[_0x1b10ab(0x193)]})}):_0x5bf157;})}):_0x69e268;}function Le(){var _0x339947=_0x31198e;return Math['random']()[_0x339947(0x14a)](0x24)['substring'](0x2,0x8);}W[_0x31198e(0x1c1)]=_0x31198e(0x153);var ye={'tag':_0x31198e(0x139),'attrs':{'xmlns':_0x31198e(0x1b4),'fill':_0x31198e(0x1b6),'viewBox':_0x31198e(0x190),'width':_0x31198e(0x185),'height':_0x31198e(0x185)},'children':[{'tag':'path','attrs':{'fill':_0x31198e(0x16b),'d':_0x31198e(0x1df)}},{'tag':'path','attrs':{'fill':_0x31198e(0x16b),'d':_0x31198e(0x1bf),'fillRule':_0x31198e(0x157),'clipRule':'evenodd'}}]},B=_0x35ed48(function(_0x118fdf,_0x1439f6){var _0x343ea1=_0x31198e;return _0x15565a(W,Object[_0x343ea1(0x1b7)]({},_0x118fdf,{'id':_0x343ea1(0x163),'ref':_0x1439f6,'icon':ye}));});B[_0x31198e(0x1c1)]=_0x31198e(0x169);var Re=Object[_0x31198e(0x16e)],Z=(_0x32ed89,_0x69c933,_0x53a364,_0x3314b2)=>{for(var _0x2c66be=_0x3314b2>0x1?void 0x0:_0x3314b2?Re(_0x69c933,_0x53a364):_0x69c933,_0x35c3e1=_0x32ed89['length']-0x1,_0x56bc81;_0x35c3e1>=0x0;_0x35c3e1--)(_0x56bc81=_0x32ed89[_0x35c3e1])&&(_0x2c66be=_0x56bc81(_0x2c66be)||_0x2c66be);return _0x2c66be;},f=(_0x485c98,_0x16dd65)=>(_0xfb2e34,_0x59141a)=>_0x16dd65(_0xfb2e34,_0x59141a,_0x485c98);let I=class extends _0x25d182{constructor(_0x219269,_0x1d6ecd,_0x31c117){var _0x11d7b3=_0x31198e;super(),d(this,_0x11d7b3(0x1c0),new Map()),(this[_0x11d7b3(0x19a)]=_0x219269,this[_0x11d7b3(0x147)]=_0x1d6ecd,this['_collabSessionService']=_0x31c117,this[_0x11d7b3(0x19e)]());}async[_0x31198e(0x1de)](_0x1a7c6b){var _0x37cc77=_0x31198e;return this[_0x37cc77(0x1c0)][_0x37cc77(0x173)](_0x1a7c6b)||await this[_0x37cc77(0x1e4)](_0x1a7c6b),this[_0x37cc77(0x1c0)]['get'](_0x1a7c6b);}[_0x31198e(0x19e)](){var _0xe49bb3=_0x31198e;this['_univerInstanceService'][_0xe49bb3(0x165)](_0x384d9f[_0xe49bb3(0x1ad)])[_0xe49bb3(0x189)](_0x3106b9(this[_0xe49bb3(0x15b)]))[_0xe49bb3(0x1cb)](async _0x5a2bed=>{var _0xfa790b=_0xe49bb3;const _0x3ee190=_0x5a2bed[_0xfa790b(0x154)]();this[_0xfa790b(0x1c0)][_0xfa790b(0x173)](_0x3ee190)||this['_startLiveShareCoordinator'](_0x3ee190);}),this[_0xe49bb3(0x19a)][_0xe49bb3(0x1c2)](_0x384d9f[_0xe49bb3(0x1ad)])[_0xe49bb3(0x189)](_0x3106b9(this['dispose$']))[_0xe49bb3(0x1cb)](_0x42d38e=>{var _0xcf174=_0xe49bb3;const _0x5d817e=_0x42d38e[_0xcf174(0x154)](),_0x281491=this[_0xcf174(0x1c0)]['get'](_0x5d817e);_0x281491==null||_0x281491['dispose']();});}async[_0x31198e(0x1e4)](_0x2af52d){var _0x4e1990=_0x31198e;const _0x391200=await this[_0x4e1990(0x18d)][_0x4e1990(0x1ae)](_0x2af52d),_0x432ced=this[_0x4e1990(0x147)]['createInstance'](C,_0x2af52d,_0x391200);return _0x432ced[_0x4e1990(0x1cc)](),this[_0x4e1990(0x1c0)][_0x4e1990(0x188)](_0x2af52d,_0x432ced),_0x432ced;}};I=Z([f(0x0,_0xa538ea),f(0x1,_0x44183f(_0x59ff7b)),f(0x2,_0x44183f(_0x3797e6))],I);var h=(_0x3232cd=>(_0x3232cd[_0x31198e(0x17c)]=_0x31198e(0x1ca),_0x3232cd[_0x31198e(0x19c)]='idle',_0x3232cd[_0x31198e(0x1af)]=_0x31198e(0x199),_0x3232cd['NOT_FOLLOWING']=_0x31198e(0x1c4),_0x3232cd[_0x31198e(0x1a1)]=_0x31198e(0x140),_0x3232cd))(h||{});const Pe=_0x31198e(0x186),Ae=0xc8;let C=class extends _0x25d182{constructor(_0x59e35b,_0x2d85de,_0x18ca40,_0x1d23da,_0x3d9e4c){var _0x5e9c6a=_0x31198e;super(),d(this,_0x5e9c6a(0x16c),new _0x231456('idle')),d(this,_0x5e9c6a(0x181),this[_0x5e9c6a(0x16c)][_0x5e9c6a(0x14e)]()),d(this,_0x5e9c6a(0x19e),!0x1),d(this,_0x5e9c6a(0x155),null),d(this,_0x5e9c6a(0x184),null),(this['_unitID']=_0x59e35b,this[_0x5e9c6a(0x170)]=_0x2d85de,this[_0x5e9c6a(0x1be)]=_0x18ca40,this[_0x5e9c6a(0x1b3)]=_0x1d23da,this['_commandService']=_0x3d9e4c);}get[_0x31198e(0x1e3)](){var _0x24dc83=_0x31198e;return this['_status$'][_0x24dc83(0x148)]();}[_0x31198e(0x18c)](){var _0x5cee9c=_0x31198e,_0x3a56f0;(_0x3a56f0=this[_0x5cee9c(0x155)])==null||_0x3a56f0[_0x5cee9c(0x18c)](),this[_0x5cee9c(0x16c)]['next'](_0x5cee9c(0x196)),this[_0x5cee9c(0x16c)][_0x5cee9c(0x1d6)]();}[_0x31198e(0x1cc)](){var _0x5e8908=_0x31198e;this['_init']||(this['_init']=!0x0,this[_0x5e8908(0x170)]['sessionStatus$'][_0x5e8908(0x189)](_0x3106b9(this['dispose$']))[_0x5e8908(0x1cb)](_0x4f0ea7=>{var _0x3cbb36=_0x5e8908;switch(_0x4f0ea7){case _0xbb74fd[_0x3cbb36(0x17c)]:this['_handleOffline']();break;case _0xbb74fd[_0x3cbb36(0x1b8)]:this['_handleOnline']();break;}}),this[_0x5e8908(0x170)]['event$'][_0x5e8908(0x189)](_0x3106b9(this['dispose$']))[_0x5e8908(0x1cb)](_0x2a152d=>{var _0x37f555=_0x5e8908;const {eventID:_0x4d63f3}=_0x2a152d;switch(_0x4d63f3){case _0x25e5a9[_0x37f555(0x1ab)]:this[_0x37f555(0x1e5)](_0x2a152d);break;case _0x25e5a9['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2a152d);break;case _0x25e5a9[_0x37f555(0x1aa)]:this[_0x37f555(0x1c9)]();break;case _0x25e5a9[_0x37f555(0x1c3)]:this[_0x37f555(0x18f)](_0x2a152d);break;}}));}[_0x31198e(0x178)](){var _0x2951bc=_0x31198e;this[_0x2951bc(0x170)][_0x2951bc(0x142)]({'eventID':_0x25e5a9[_0x2951bc(0x158)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2951bc(0x19f)]()}},this[_0x2951bc(0x183)]);}[_0x31198e(0x1a8)](){var _0x538883=_0x31198e;this[_0x538883(0x1e3)]==='presenting'&&(this[_0x538883(0x16c)][_0x538883(0x161)](_0x538883(0x196)),this['_collabSession'][_0x538883(0x142)]({'eventID':_0x25e5a9[_0x538883(0x1aa)],'data':{'unitID':this[_0x538883(0x183)]}},this[_0x538883(0x183)]));}[_0x31198e(0x1a0)](){var _0x4b72ea=_0x31198e;this[_0x4b72ea(0x1e3)]==='not-following'&&(this[_0x4b72ea(0x16c)][_0x4b72ea(0x161)](_0x4b72ea(0x199)),this['_startFollowing']());}[_0x31198e(0x146)](){var _0x481b41=_0x31198e;this['_status']===_0x481b41(0x199)&&this[_0x481b41(0x1e6)]();}[_0x31198e(0x1e5)](_0x3d2c91){var _0x4c3e3d=_0x31198e;const {presenter:_0x1d111c}=_0x3d2c91[_0x4c3e3d(0x1bc)],_0x487473=this['_collabSession'][_0x4c3e3d(0x19f)]();this[_0x4c3e3d(0x184)]=_0x1d111c,_0x1d111c===_0x487473?(this[_0x4c3e3d(0x1e6)](),this[_0x4c3e3d(0x1c5)]()):this['_status']!==_0x4c3e3d(0x1c4)&&(this[_0x4c3e3d(0x1d8)](),this[_0x4c3e3d(0x17e)]());}[_0x31198e(0x13d)](){var _0x2d1520=_0x31198e;const _0x48f96d={'eventID':_0x25e5a9[_0x2d1520(0x195)]};this[_0x2d1520(0x170)][_0x2d1520(0x142)](_0x48f96d,this['_unitID']);}[_0x31198e(0x1c9)](){var _0x166412=_0x31198e;this['_presenter']=null,this[_0x166412(0x1e3)]!==_0x166412(0x140)&&this[_0x166412(0x152)]();}[_0x31198e(0x18f)](_0x432340){var _0x12c3bc=_0x31198e;if(this[_0x12c3bc(0x1e3)]===_0x12c3bc(0x199)&&this['_presenter']===_0x432340[_0x12c3bc(0x1bc)][_0x12c3bc(0x180)]){const _0x444890=_0x2b7d41(_0x432340['data'])[_0x12c3bc(0x15e)][_0x12c3bc(0x13f)]()[_0x12c3bc(0x13a)](_0x3031de=>_0x3031de['id']===_0x182beb['id']);if(_0x444890){const _0x2bd419=_0x444890[_0x12c3bc(0x14c)][_0x12c3bc(0x19d)],_0x7bcdb5=_0x444890[_0x12c3bc(0x14c)][_0x12c3bc(0x1e2)]['id'];setTimeout(()=>{var _0x4dd280=_0x12c3bc;this[_0x4dd280(0x168)][_0x4dd280(0x1c7)](_0x45d30c['id'],{'unitId':_0x2bd419,'subUnitId':_0x7bcdb5},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xe8a878=_0x31198e;this['_status$']['next'](_0xe8a878(0x140));const _0x4ec10d=new Map(),_0x4a21f1=this[_0xe8a878(0x155)]=new _0x8826e3();_0x4a21f1['add'](_0x322b7a(()=>{var _0x341c9c=_0xe8a878;_0x4ec10d[_0x341c9c(0x198)](_0xcb57a7=>_0xcb57a7[_0x341c9c(0x1d6)]()),_0x4ec10d[_0x341c9c(0x162)]();})),_0x4a21f1[_0xe8a878(0x1a2)](this[_0xe8a878(0x168)]['onCommandExecuted'](_0x3526f8=>{var _0x4a509d=_0xe8a878,_0x2b7e77;if(_0x3526f8['type']!==_0x5520f3['OPERATION']||!this[_0x4a509d(0x1b3)][_0x4a509d(0x174)](_0x3526f8['id']))return;const {id:_0x68a216}=_0x3526f8;let _0x5cdd59;_0x4ec10d[_0x4a509d(0x173)](_0x68a216)?_0x5cdd59=_0x4ec10d[_0x4a509d(0x1d1)](_0x68a216):(_0x5cdd59=new _0x5b5f3e(),_0x4ec10d[_0x4a509d(0x188)](_0x68a216,_0x5cdd59),_0x5cdd59[_0x4a509d(0x189)](_0x21d466((_0x2b7e77=this[_0x4a509d(0x1be)][_0x4a509d(0x145)](Pe))!=null?_0x2b7e77:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a509d(0x1cb)](_0x1c2ad1=>{var _0x480d0d=_0x4a509d;this[_0x480d0d(0x170)][_0x480d0d(0x142)]({'eventID':_0x25e5a9[_0x480d0d(0x144)],'data':{'unitID':this['_unitID'],'operations':{[_0x1c2ad1['id']]:{'id':_0x1c2ad1['id'],'params':JSON[_0x480d0d(0x14d)](_0x1c2ad1[_0x480d0d(0x14c)])}}}},this[_0x480d0d(0x183)]);})),_0x5cdd59[_0x4a509d(0x161)](_0x3526f8);})),this[_0xe8a878(0x1b3)]['getInitialStates'](this['_unitID'])[_0xe8a878(0x198)](_0x2bef31=>this[_0xe8a878(0x170)][_0xe8a878(0x142)]({'eventID':_0x25e5a9[_0xe8a878(0x144)],'data':{'unitID':this[_0xe8a878(0x183)],'operations':{[_0x2bef31['id']]:{'id':_0x2bef31['id'],'params':JSON['stringify'](_0x2bef31[_0xe8a878(0x14c)])}}}},this[_0xe8a878(0x183)]));}[_0x31198e(0x1d8)](){var _0x5d4a38=_0x31198e,_0x122c66;this[_0x5d4a38(0x16c)]['next'](_0x5d4a38(0x196)),(_0x122c66=this[_0x5d4a38(0x155)])==null||_0x122c66[_0x5d4a38(0x18c)](),this['_commandDisposable']=null;}[_0x31198e(0x17e)](){var _0x5685b0=_0x31198e,_0x33646b;(_0x33646b=this[_0x5685b0(0x155)])==null||_0x33646b[_0x5685b0(0x18c)](),this[_0x5685b0(0x16c)]['next']('following');}[_0x31198e(0x152)](){var _0x470ba6=_0x31198e,_0x465739;this[_0x470ba6(0x16c)][_0x470ba6(0x161)]('idle'),(_0x465739=this[_0x470ba6(0x155)])==null||_0x465739[_0x470ba6(0x18c)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5900ea=_0x31198e,_0x528159;this[_0x5900ea(0x16c)][_0x5900ea(0x161)](_0x5900ea(0x1c4)),(_0x528159=this[_0x5900ea(0x155)])==null||_0x528159[_0x5900ea(0x18c)]();}[_0x31198e(0x1ac)](_0x10e7bc){var _0x4894c3=_0x31198e;if([_0x4894c3(0x140),'not-following',_0x4894c3(0x1ca)][_0x4894c3(0x1e1)](this[_0x4894c3(0x1e3)])||!_0x10e7bc[_0x4894c3(0x1bc)][_0x4894c3(0x1a5)]||_0x10e7bc['data'][_0x4894c3(0x1a5)]===this[_0x4894c3(0x170)]['getMemberID']())return;this['_status']===_0x4894c3(0x196)&&this[_0x4894c3(0x17e)]();const _0xdf26ad=_0x10e7bc[_0x4894c3(0x1bc)][_0x4894c3(0x15d)];Object[_0x4894c3(0x1c8)](_0xdf26ad)[_0x4894c3(0x198)](_0x4ab220=>{var _0x32b62e=_0x4894c3;this['_commandService']['executeCommand'](_0x4ab220['id'],_0x4ab220['params']?JSON[_0x32b62e(0x156)](_0x4ab220[_0x32b62e(0x14c)]):null,{'fromCollab':!0x0});});}[_0x31198e(0x138)](){var _0x53a2fe=_0x31198e,_0x238252;this[_0x53a2fe(0x16c)][_0x53a2fe(0x161)](_0x53a2fe(0x1ca)),(_0x238252=this[_0x53a2fe(0x155)])==null||_0x238252[_0x53a2fe(0x18c)]();}[_0x31198e(0x15c)](){var _0x381c50=_0x31198e;this['_status$'][_0x381c50(0x161)](_0x381c50(0x196)),this[_0x381c50(0x13d)]();}};C=Z([f(0x2,_0x5ad91b),f(0x3,_0x44183f(L)),f(0x4,_0x1f2ab5)],C);function Te(){var _0x22cfea=_0x31198e;const _0xce3369=_0x1bdc43(I),_0x56216f=_0x1bdc43(_0xa538ea),_0x48c8fb=_0x5068f5(()=>_0x56216f[_0x22cfea(0x18e)](_0x384d9f['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x125df2,_0x1d1654]=_0x3b70aa(null),[_0x59d74f,_0x50f151]=_0x3b70aa(h[_0x22cfea(0x19c)]),_0x58eb84=_0x3745a5(null);return _0x3a4d4a(()=>(_0x48c8fb&&_0xce3369[_0x22cfea(0x1de)](_0x48c8fb[_0x22cfea(0x154)]())[_0x22cfea(0x172)](_0x109ec6=>{var _0x1eb9e1=_0x22cfea;_0x1d1654(_0x109ec6),_0x58eb84[_0x1eb9e1(0x1cf)]=_0x109ec6['status$'][_0x1eb9e1(0x1cb)](_0x38d64d=>{_0x50f151(_0x38d64d);});}),()=>{var _0x4cccea=_0x22cfea,_0x31bbbf;(_0x31bbbf=_0x58eb84[_0x4cccea(0x1cf)])==null||_0x31bbbf[_0x4cccea(0x1d4)](),_0x58eb84['current']=null;}),[_0x48c8fb,_0xce3369]),_0x125df2?_0x15aab4(_0x3cbf5d,{'align':'end','disabled':_0x59d74f===h[_0x22cfea(0x17c)],'className':_0x22cfea(0x137),'overlay':_0x15aab4($e,{'status':_0x59d74f,'coordinator':_0x125df2}),'children':_0x15aab4(_0x22cfea(0x1bb),{'className':_0x378b8b(_0x22cfea(0x151),{'univer-cursor-not-allowed':_0x59d74f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59d74f!==h[_0x22cfea(0x17c)]}),'type':_0x22cfea(0x1bb),'children':_0x15aab4(B,{'className':_0x22cfea(0x1b9)})})}):null;}function $e(_0x273b1c){var _0x170935=_0x31198e;const {status:_0x2258ba,coordinator:_0x535858}=_0x273b1c;switch(_0x2258ba){case h[_0x170935(0x19c)]:return _0x15aab4(Fe,{'coordinator':_0x535858});case h[_0x170935(0x1af)]:return _0x15aab4(He,{'coordinator':_0x535858});case h[_0x170935(0x1d7)]:return _0x15aab4(je,{'coordinator':_0x535858});case h[_0x170935(0x17c)]:return _0x15aab4(Ve,{});case h[_0x170935(0x1a1)]:return _0x15aab4(Ue,{'coordinator':_0x535858});default:return null;}}function Fe(_0x5eba7a){var _0x55a95d=_0x31198e;const {coordinator:_0x4841e7}=_0x5eba7a;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x55a95d(0x17d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x55a95d(0x19b)}),_0x15aab4(_0x225bf1,{'onClick':()=>_0x4841e7[_0x55a95d(0x178)](),'children':_0x55a95d(0x1c6)})]});}function He(_0x46482c){var _0x4747b1=_0x31198e;const {coordinator:_0x1d9a79}=_0x46482c;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x4747b1(0x17d),{'className':_0x4747b1(0x159),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x15aab4(_0x225bf1,{'onClick':()=>_0x1d9a79['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x20291c){var _0x5d87a1=_0x31198e;const {coordinator:_0x1b510c}=_0x20291c;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x5d87a1(0x17d),{'className':_0x5d87a1(0x159),'children':_0x5d87a1(0x171)}),_0x15aab4(_0x225bf1,{'variant':_0x5d87a1(0x16f),'onClick':()=>_0x1b510c[_0x5d87a1(0x1a0)](),'children':_0x5d87a1(0x16d)})]});}function Ue(_0x4015eb){var _0x12d97d=_0x31198e;const {coordinator:_0x4da420}=_0x4015eb;return _0x346495(_0x5b11db,{'children':[_0x15aab4('div',{'className':_0x12d97d(0x159),'children':_0x12d97d(0x1e7)}),_0x15aab4(_0x225bf1,{'variant':'default','onClick':()=>_0x4da420['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x15aab4(_0x5b11db,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x31198e(0x16e)],ke=(_0xc990f1,_0x12255d,_0x3c8ce0,_0x477b6a)=>{var _0x2c545f=_0x31198e;for(var _0x568556=_0x477b6a>0x1?void 0x0:_0x477b6a?Me(_0x12255d,_0x3c8ce0):_0x12255d,_0x3f2658=_0xc990f1[_0x2c545f(0x175)]-0x1,_0x45076f;_0x3f2658>=0x0;_0x3f2658--)(_0x45076f=_0xc990f1[_0x3f2658])&&(_0x568556=_0x45076f(_0x568556)||_0x568556);return _0x568556;},$=(_0x11e861,_0x33c6d0)=>(_0x220c4c,_0x3ed586)=>_0x33c6d0(_0x220c4c,_0x3ed586,_0x11e861);let b=class extends _0x3039f2{constructor(_0x2159d3,_0x513542){var _0x3485e7=_0x31198e;super(),this[_0x3485e7(0x147)]=_0x2159d3,this[_0x3485e7(0x13e)]=_0x513542,this[_0x3485e7(0x187)]();}[_0x31198e(0x187)](){var _0x58fe06=_0x31198e;this['disposeWithMe'](this[_0x58fe06(0x13e)]['registerComponent'](_0x2a6ff0[_0x58fe06(0x18a)],()=>_0x5a25e5(Te,this[_0x58fe06(0x147)])));}};b=ke([$(0x0,_0x44183f(_0x59ff7b)),$(0x1,_0x3210f0)],b);var Ge=Object[_0x31198e(0x1b2)],We=Object[_0x31198e(0x16e)],Ye=(_0x84819e,_0x116b02,_0xf3d972)=>_0x116b02 in _0x84819e?Ge(_0x84819e,_0x116b02,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf3d972}):_0x84819e[_0x116b02]=_0xf3d972,Be=(_0x5c772f,_0x4ab359,_0x5bfe46,_0xb6edb6)=>{var _0xe5dd9c=_0x31198e;for(var _0x3601bb=_0xb6edb6>0x1?void 0x0:_0xb6edb6?We(_0x4ab359,_0x5bfe46):_0x4ab359,_0x124836=_0x5c772f[_0xe5dd9c(0x175)]-0x1,_0x3b7604;_0x124836>=0x0;_0x124836--)(_0x3b7604=_0x5c772f[_0x124836])&&(_0x3601bb=_0x3b7604(_0x3601bb)||_0x3601bb);return _0x3601bb;},F=(_0x391319,_0x395c9e)=>(_0x224f67,_0x56d130)=>_0x395c9e(_0x224f67,_0x56d130,_0x391319),J=(_0x4b365e,_0x18f896,_0x87715f)=>Ye(_0x4b365e,typeof _0x18f896!=_0x31198e(0x1d3)?_0x18f896+'':_0x18f896,_0x87715f);const Ze=_0x31198e(0x1dd);let O=class extends _0x95d93e{constructor(_0x13202f=T,_0x2aeddd,_0xa5c3f1){var _0xd97a1c=_0x31198e;super(),this['_config']=_0x13202f,this[_0xd97a1c(0x147)]=_0x2aeddd,this['_configService']=_0xa5c3f1;const {..._0x5b1104}=_0x46d38b({},T,this['_config']);this[_0xd97a1c(0x1be)][_0xd97a1c(0x182)](Oe,_0x5b1104);}[_0x31198e(0x197)](){var _0x36e2d8=_0x31198e;_0x352343(this[_0x36e2d8(0x147)],_0x5ee3d2([[L],[I],[m],[b]],this[_0x36e2d8(0x17a)][_0x36e2d8(0x1dc)])),_0x3f2e03(this[_0x36e2d8(0x147)],[[m]]);}[_0x31198e(0x1b1)](){_0x3f2e03(this['_injector'],[[b]]);}};J(O,_0x31198e(0x1a3),_0x384d9f[_0x31198e(0x1d9)]),J(O,_0x31198e(0x149),Ze),O=Be([_0x5e6bbe(_0x40f314),F(0x1,_0x44183f(_0x59ff7b)),F(0x2,_0x5ad91b)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x413fd2=_0x2cc9;(function(_0x5b4813,_0xdc679c){var _0xc3d28f=_0x2cc9,_0x1c49be=_0x5b4813();while(!![]){try{var _0xc6cafd=parseInt(_0xc3d28f(0x241))/0x1*(parseInt(_0xc3d28f(0x1fb))/0x2)+parseInt(_0xc3d28f(0x201))/0x3*(parseInt(_0xc3d28f(0x1f2))/0x4)+-parseInt(_0xc3d28f(0x238))/0x5+parseInt(_0xc3d28f(0x25f))/0x6+-parseInt(_0xc3d28f(0x221))/0x7*(parseInt(_0xc3d28f(0x1e3))/0x8)+-parseInt(_0xc3d28f(0x1ed))/0x9+parseInt(_0xc3d28f(0x24c))/0xa;if(_0xc6cafd===_0xdc679c)break;else _0x1c49be['push'](_0x1c49be['shift']());}catch(_0x433505){_0x1c49be['push'](_0x1c49be['shift']());}}}(_0x26a2,0x6caa2));var q=Object[_0x413fd2(0x214)],z=(_0x52bfb2,_0x2d694d,_0x2df6f9)=>_0x2d694d in _0x52bfb2?q(_0x52bfb2,_0x2d694d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2df6f9}):_0x52bfb2[_0x2d694d]=_0x2df6f9,d=(_0x79e68c,_0x16f429,_0x257822)=>z(_0x79e68c,typeof _0x16f429!=_0x413fd2(0x20c)?_0x16f429+'':_0x16f429,_0x257822);import{CollaborationSessionService as _0x4bea65,SessionStatus as _0x28cf64,UniverCollaborationClientPlugin as _0x40879e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2d602a,toDisposable as _0x235983,Inject as _0x287324,IUniverInstanceService as _0x563054,Injector as _0x189459,IConfigService as _0x4addda,ICommandService as _0x4a5bf9,RxDisposable as _0x1b7a96,UniverInstanceType as _0x2369f2,DisposableCollection as _0x52dca9,CommandType as _0x1caa0b,DependentOn as _0x39d809,Plugin as _0x54894e,merge as _0x563c15,registerDependencies as _0x4b1d24,mergeOverrideWithDependencies as _0x38959d,touchDependencies as _0x4a7c72}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x587c83,InsertSheetMutation as _0x5d7e73}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x944e99,SetScrollOperation as _0x460232}from'@univerjs/sheets-ui';import{useDependency as _0x8c2502,useObservable as _0x54b49a,IUIPartsService as _0x2136ab,BuiltInUIPart as _0x120083,connectInjector as _0x38f68b}from'@univerjs/ui';import{jsx as _0x5b6f43,jsxs as _0x33eaea,Fragment as _0x5e9b05}from'react/jsx-runtime';import{Dropdown as _0x5da7d2,clsx as _0x4a52f6,Button as _0x4ec768}from'@univerjs/design';import{forwardRef as _0x5117a0,useRef as _0x56788e,createElement as _0x4101b7,useState as _0x393f14,useEffect as _0x569005}from'react';import{CollaborationEvent as _0x15f78f,parseProtocolChangeset as _0x525527}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x51ed42,Subject as _0x391242}from'rxjs';import{takeUntil as _0x960196,throttleTime as _0x3ef22c}from'rxjs/operators';const Oe=_0x413fd2(0x211),T={};class L extends _0x2d602a{constructor(){var _0x1631f5=_0x413fd2;super(...arguments),d(this,_0x1631f5(0x215),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x5be7aa){var _0x1e5040=_0x413fd2;return this['_sharedOperations'][_0x1e5040(0x1e6)](_0x5be7aa),_0x235983(()=>this[_0x1e5040(0x215)]['delete'](_0x5be7aa));}[_0x413fd2(0x244)](_0x1fd8f2){var _0x6b6945=_0x413fd2;return this[_0x6b6945(0x22e)]['add'](_0x1fd8f2),_0x235983(()=>this[_0x6b6945(0x22e)][_0x6b6945(0x21e)](_0x1fd8f2));}[_0x413fd2(0x23f)](_0x3e7832){var _0x1b79c7=_0x413fd2;return this['_sharedOperations'][_0x1b79c7(0x1d8)](_0x3e7832);}[_0x413fd2(0x245)](_0x439230){var _0x305883=_0x413fd2;return Array[_0x305883(0x212)](this[_0x305883(0x22e)])[_0x305883(0x263)](_0x1098aa=>_0x1098aa(_0x439230));}}var Ee=Object[_0x413fd2(0x252)],we=(_0x385e09,_0x2421dc,_0x5a0143,_0xd1c918)=>{var _0x37f6e3=_0x413fd2;for(var _0x139546=_0xd1c918>0x1?void 0x0:_0xd1c918?Ee(_0x2421dc,_0x5a0143):_0x2421dc,_0x568031=_0x385e09[_0x37f6e3(0x276)]-0x1,_0x56131f;_0x568031>=0x0;_0x568031--)(_0x56131f=_0x385e09[_0x568031])&&(_0x139546=_0x56131f(_0x139546)||_0x139546);return _0x139546;},Ne=(_0x57fa0e,_0xecd224)=>(_0x36ec41,_0x2a11c1)=>_0xecd224(_0x36ec41,_0x2a11c1,_0x57fa0e);function _0x26a2(){var _0x3514ee=['getValue','_stopPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','set','shouldShareOperation','getOwnPropertySymbols','241myPXcp','onStarting','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerInitialStateReporter','getInitialStates','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','startFollowing','forEach','current','substring','8695750RNtGJL','status$','NOT_FOLLOWING','icon','presenting','div','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','override','1em','FOLLOWING','apply','find','stopFollowing','end','_handleOperation','get','default','getLiveShareCoordinator','207966mruTWl','NEW_CHANGESETS','propertyIsEnumerable','_commandService','map','onRendered','sessionStatus$','fill','_status','children','setConfig','stringify','dispose','_stopFollowing','PRESENTING','string','dispose$','operations','displayName','random','svg','getMemberID','executeCommand','length','hasOwnProperty','xlink:href','asObservable','You\x27re\x20following\x20the\x20presenter','prototype','_status$','pipe','parse','Start','_handleTerminate','OFFLINE','evenodd','_handleNewHost','tryStartPresenting','replace','_handleNewChangeSets','presenter','_univerInstanceService','UNIVER_LIVE_SHARE_PLUGIN','getConfig','has','_liveShareService','live-share-icon','registerSharedOperation','getTypeOfUnitAdded$','entries','attrs','LiveShareIcon','clear','init','currentColor','8prJpmI','following','0\x200\x2017\x2017','add','type','_entities','subscribe','not-following','reverse','univer-size-4','3094704DSgROK','OPERATION','send','LIVESHARE_OPERATION','includes','8WlpMlr','unsubscribe','UniverIcon','idSuffix','_injector','indexOf','assign','_fetchOperations','toString','1116LzzebI','You\x27re\x20presenting\x20the\x20document','memberID','_beIdle','colorChannel1','_init','6057bMMERj','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','defs','extend','next','params','_collabSession','LIVESHARE_REQUEST_HOST','_collabSessionService','_handleOnline','concat','symbol','mask','_startFollowing','disposeWithMe','Stop\x20following','live-share.config','from','button','defineProperty','_sharedOperations','path','Stop\x20presenting','defIds','LIVESHARE_NEW_HOST','pluginName','IDLE','_config','_configService','delete','getTypeOfUnitDisposed$','getUnitId','1029854tYwjsI','data','UNIVER_SHEET','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','_presenter','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','LIVESHARE_TERMINATE','onCommandExecuted','_unitID','requireSession','complete','You\x27are\x20offline.','UNIVER_UNKNOWN','_reporters','LIVESHARE_FETCH_OPERATIONS','tag','call','_commandDisposable','_uiPartsService','_startPresenting','trim','offline','_mountLiveShare','533420nBqltQ','registerComponent','idle'];_0x26a2=function(){return _0x3514ee;};return _0x26a2();}let m=class extends _0x2d602a{constructor(_0x5dbebf){var _0x3d9b84=_0x413fd2;super(),this[_0x3d9b84(0x1d9)]=_0x5dbebf,this[_0x3d9b84(0x200)]();}[_0x413fd2(0x200)](){var _0x1871a6=_0x413fd2;[_0x944e99['id'],_0x460232['id'],_0x587c83['id']][_0x1871a6(0x249)](_0x319583=>{var _0x254fda=_0x1871a6;this[_0x254fda(0x20f)](this[_0x254fda(0x1d9)][_0x254fda(0x1db)](_0x319583));});}};m=we([Ne(0x0,_0x287324(L))],m);var c=function(){var _0x19a2e2=_0x413fd2;return c=Object['assign']||function(_0x307f8f){var _0x2e33c9=_0x2cc9;for(var _0x465f70,_0x4cf198=0x1,_0x101135=arguments[_0x2e33c9(0x276)];_0x4cf198<_0x101135;_0x4cf198++){_0x465f70=arguments[_0x4cf198];for(var _0x271c49 in _0x465f70)Object[_0x2e33c9(0x27b)][_0x2e33c9(0x277)][_0x2e33c9(0x231)](_0x465f70,_0x271c49)&&(_0x307f8f[_0x271c49]=_0x465f70[_0x271c49]);}return _0x307f8f;},c[_0x19a2e2(0x257)](this,arguments);},Ce=function(_0x30934e,_0x314508){var _0x5466ff=_0x413fd2,_0x5b2ab6={};for(var _0x1711c5 in _0x30934e)Object[_0x5466ff(0x27b)]['hasOwnProperty']['call'](_0x30934e,_0x1711c5)&&_0x314508[_0x5466ff(0x1f7)](_0x1711c5)<0x0&&(_0x5b2ab6[_0x1711c5]=_0x30934e[_0x1711c5]);if(_0x30934e!=null&&typeof Object[_0x5466ff(0x240)]=='function'){for(var _0x5e1eac=0x0,_0x1711c5=Object[_0x5466ff(0x240)](_0x30934e);_0x5e1eac<_0x1711c5[_0x5466ff(0x276)];_0x5e1eac++)_0x314508[_0x5466ff(0x1f7)](_0x1711c5[_0x5e1eac])<0x0&&Object['prototype'][_0x5466ff(0x261)][_0x5466ff(0x231)](_0x30934e,_0x1711c5[_0x5e1eac])&&(_0x5b2ab6[_0x1711c5[_0x5e1eac]]=_0x30934e[_0x1711c5[_0x5e1eac]]);}return _0x5b2ab6;},W=_0x5117a0(function(_0x25da1b,_0x596937){var _0x47e06b=_0x413fd2,_0x620019=_0x25da1b[_0x47e06b(0x24f)],_0x922d47=_0x25da1b['id'],_0x57a0c8=_0x25da1b['className'],_0x5be5fa=_0x25da1b[_0x47e06b(0x204)],_0x273387=Ce(_0x25da1b,[_0x47e06b(0x24f),'id','className','extend']),_0x1ef570='univerjs-icon\x20univerjs-icon-'['concat'](_0x922d47,'\x20')[_0x47e06b(0x20b)](_0x57a0c8||'')[_0x47e06b(0x235)](),_0x483c6b=_0x56788e('_'[_0x47e06b(0x20b)](Le()));return Y(_0x620019,''[_0x47e06b(0x20b)](_0x922d47),{'defIds':_0x620019[_0x47e06b(0x218)],'idSuffix':_0x483c6b[_0x47e06b(0x24a)]},c({'ref':_0x596937,'className':_0x1ef570},_0x273387),_0x5be5fa);});function Y(_0x4719ee,_0x1bf035,_0x579a86,_0x3835ed,_0x537304){var _0x433031=_0x413fd2;return _0x4101b7(_0x4719ee[_0x433031(0x230)],c(c({'key':_0x1bf035},De(_0x4719ee,_0x579a86,_0x537304)),_0x3835ed),(xe(_0x4719ee,_0x579a86)[_0x433031(0x268)]||[])[_0x433031(0x263)](function(_0x1fbf8d,_0x3ed443){var _0x4bcaa9=_0x433031;return Y(_0x1fbf8d,''['concat'](_0x1bf035,'-')[_0x4bcaa9(0x20b)](_0x4719ee[_0x4bcaa9(0x230)],'-')[_0x4bcaa9(0x20b)](_0x3ed443),_0x579a86,void 0x0,_0x537304);}));}function De(_0x2416b4,_0x13ab0a,_0x174f65){var _0x474a79=_0x413fd2,_0x23c633=c({},_0x2416b4[_0x474a79(0x1de)]);_0x174f65!=null&&_0x174f65[_0x474a79(0x1ff)]&&_0x23c633[_0x474a79(0x266)]==='colorChannel1'&&(_0x23c633[_0x474a79(0x266)]=_0x174f65[_0x474a79(0x1ff)]),_0x2416b4[_0x474a79(0x230)]==='mask'&&_0x23c633['id']&&(_0x23c633['id']=_0x23c633['id']+_0x13ab0a['idSuffix']),Object[_0x474a79(0x1dd)](_0x23c633)[_0x474a79(0x249)](function(_0x4785bc){var _0x432e6b=_0x474a79,_0x8e51e1=_0x4785bc[0x0],_0x1bc298=_0x4785bc[0x1];_0x8e51e1===_0x432e6b(0x20d)&&typeof _0x1bc298=='string'&&(_0x23c633[_0x8e51e1]=_0x1bc298['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x13ab0a['idSuffix'],')')));});var _0x5a3eb7=_0x13ab0a[_0x474a79(0x218)];return!_0x5a3eb7||_0x5a3eb7['length']===0x0||(_0x2416b4[_0x474a79(0x230)]==='use'&&_0x23c633[_0x474a79(0x278)]&&(_0x23c633[_0x474a79(0x278)]=_0x23c633['xlink:href']+_0x13ab0a[_0x474a79(0x1f5)]),Object[_0x474a79(0x1dd)](_0x23c633)[_0x474a79(0x249)](function(_0x501088){var _0x252752=_0x474a79,_0x43e30f=_0x501088[0x0],_0x2e36cb=_0x501088[0x1];typeof _0x2e36cb==_0x252752(0x26e)&&(_0x23c633[_0x43e30f]=_0x2e36cb[_0x252752(0x1d2)](/url\(#(.*)\)/,'url(#$1'[_0x252752(0x20b)](_0x13ab0a[_0x252752(0x1f5)],')')));})),_0x23c633;}function xe(_0x26583f,_0x59a209){var _0x389b5d=_0x413fd2,_0xba1686,_0x23586f=_0x59a209[_0x389b5d(0x218)];return!_0x23586f||_0x23586f[_0x389b5d(0x276)]===0x0?_0x26583f:_0x26583f[_0x389b5d(0x230)]===_0x389b5d(0x203)&&(!((_0xba1686=_0x26583f['children'])===null||_0xba1686===void 0x0)&&_0xba1686['length'])?c(c({},_0x26583f),{'children':_0x26583f[_0x389b5d(0x268)][_0x389b5d(0x263)](function(_0x56e8fe){var _0x1c4889=_0x389b5d;return typeof _0x56e8fe['attrs']['id']=='string'&&_0x23586f&&_0x23586f['includes'](_0x56e8fe[_0x1c4889(0x1de)]['id'])?c(c({},_0x56e8fe),{'attrs':c(c({},_0x56e8fe[_0x1c4889(0x1de)]),{'id':_0x56e8fe[_0x1c4889(0x1de)]['id']+_0x59a209['idSuffix']})}):_0x56e8fe;})}):_0x26583f;}function Le(){var _0x1227eb=_0x413fd2;return Math[_0x1227eb(0x272)]()[_0x1227eb(0x1fa)](0x24)[_0x1227eb(0x24b)](0x2,0x8);}W[_0x413fd2(0x271)]=_0x413fd2(0x1f4);function _0x2cc9(_0x539e60,_0x1a7bfb){var _0x26a2ed=_0x26a2();return _0x2cc9=function(_0x2cc9af,_0x1e39ff){_0x2cc9af=_0x2cc9af-0x1c9;var _0x530312=_0x26a2ed[_0x2cc9af];return _0x530312;},_0x2cc9(_0x539e60,_0x1a7bfb);}var ye={'tag':_0x413fd2(0x273),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x413fd2(0x1e5),'width':_0x413fd2(0x255),'height':_0x413fd2(0x255)},'children':[{'tag':_0x413fd2(0x216),'attrs':{'fill':_0x413fd2(0x1e2),'d':_0x413fd2(0x226)}},{'tag':_0x413fd2(0x216),'attrs':{'fill':'currentColor','d':_0x413fd2(0x224),'fillRule':_0x413fd2(0x1cf),'clipRule':'evenodd'}}]},B=_0x5117a0(function(_0x21daca,_0x21a51c){var _0x29ad47=_0x413fd2;return _0x4101b7(W,Object[_0x29ad47(0x1f8)]({},_0x21daca,{'id':_0x29ad47(0x1da),'ref':_0x21a51c,'icon':ye}));});B[_0x413fd2(0x271)]=_0x413fd2(0x1df);var Re=Object[_0x413fd2(0x252)],Z=(_0x5406ef,_0x2457f6,_0x5244c7,_0x3a9a87)=>{for(var _0x427baa=_0x3a9a87>0x1?void 0x0:_0x3a9a87?Re(_0x2457f6,_0x5244c7):_0x2457f6,_0x151c4d=_0x5406ef['length']-0x1,_0x5095d9;_0x151c4d>=0x0;_0x151c4d--)(_0x5095d9=_0x5406ef[_0x151c4d])&&(_0x427baa=_0x5095d9(_0x427baa)||_0x427baa);return _0x427baa;},f=(_0x5a2ada,_0x21e124)=>(_0x208add,_0x198533)=>_0x21e124(_0x208add,_0x198533,_0x5a2ada);let I=class extends _0x1b7a96{constructor(_0x2d9388,_0xdfa898,_0x5305eb){var _0x304786=_0x413fd2;super(),d(this,_0x304786(0x1e8),new Map()),(this['_univerInstanceService']=_0x2d9388,this[_0x304786(0x1f6)]=_0xdfa898,this[_0x304786(0x209)]=_0x5305eb,this[_0x304786(0x200)]());}async[_0x413fd2(0x25e)](_0x4e18d1){var _0x514382=_0x413fd2;return this[_0x514382(0x1e8)][_0x514382(0x1d8)](_0x4e18d1)||await this[_0x514382(0x246)](_0x4e18d1),this[_0x514382(0x1e8)][_0x514382(0x25c)](_0x4e18d1);}[_0x413fd2(0x200)](){var _0x4d8e6a=_0x413fd2;this['_univerInstanceService'][_0x4d8e6a(0x1dc)](_0x2369f2[_0x4d8e6a(0x223)])[_0x4d8e6a(0x1ca)](_0x960196(this[_0x4d8e6a(0x26f)]))[_0x4d8e6a(0x1e9)](async _0x5e2f8c=>{var _0xcff37e=_0x4d8e6a;const _0x109c6a=_0x5e2f8c['getUnitId']();this[_0xcff37e(0x1e8)][_0xcff37e(0x1d8)](_0x109c6a)||this[_0xcff37e(0x246)](_0x109c6a);}),this[_0x4d8e6a(0x1d5)][_0x4d8e6a(0x21f)](_0x2369f2[_0x4d8e6a(0x223)])[_0x4d8e6a(0x1ca)](_0x960196(this[_0x4d8e6a(0x26f)]))['subscribe'](_0x455143=>{var _0x10998d=_0x4d8e6a;const _0x1d7c4c=_0x455143[_0x10998d(0x220)](),_0x1201f2=this['_entities'][_0x10998d(0x25c)](_0x1d7c4c);_0x1201f2==null||_0x1201f2[_0x10998d(0x26b)]();});}async[_0x413fd2(0x246)](_0x4de9f1){var _0x102c77=_0x413fd2;const _0x5ae7bb=await this['_collabSessionService'][_0x102c77(0x22a)](_0x4de9f1),_0x58677d=this[_0x102c77(0x1f6)]['createInstance'](C,_0x4de9f1,_0x5ae7bb);return _0x58677d['init'](),this[_0x102c77(0x1e8)][_0x102c77(0x23e)](_0x4de9f1,_0x58677d),_0x58677d;}};I=Z([f(0x0,_0x563054),f(0x1,_0x287324(_0x189459)),f(0x2,_0x287324(_0x4bea65))],I);var h=(_0xec50d8=>(_0xec50d8[_0x413fd2(0x1ce)]='offline',_0xec50d8[_0x413fd2(0x21b)]=_0x413fd2(0x23a),_0xec50d8[_0x413fd2(0x256)]=_0x413fd2(0x1e4),_0xec50d8[_0x413fd2(0x24e)]=_0x413fd2(0x1ea),_0xec50d8['PRESENTING']=_0x413fd2(0x250),_0xec50d8))(h||{});const Pe=_0x413fd2(0x247),Ae=0xc8;let C=class extends _0x1b7a96{constructor(_0x1ed95b,_0x3d77fa,_0x2194ad,_0x68664b,_0x166285){var _0x56b9a9=_0x413fd2;super(),d(this,_0x56b9a9(0x1c9),new _0x51ed42('idle')),d(this,'status$',this['_status$'][_0x56b9a9(0x279)]()),d(this,'_init',!0x1),d(this,_0x56b9a9(0x232),null),d(this,_0x56b9a9(0x225),null),(this[_0x56b9a9(0x229)]=_0x1ed95b,this[_0x56b9a9(0x207)]=_0x3d77fa,this['_configService']=_0x2194ad,this[_0x56b9a9(0x1d9)]=_0x68664b,this['_commandService']=_0x166285);}get[_0x413fd2(0x267)](){var _0x12840a=_0x413fd2;return this['_status$'][_0x12840a(0x23b)]();}[_0x413fd2(0x26b)](){var _0x426688=_0x413fd2,_0x3f6066;(_0x3f6066=this[_0x426688(0x232)])==null||_0x3f6066[_0x426688(0x26b)](),this['_status$']['next'](_0x426688(0x23a)),this['_status$']['complete']();}[_0x413fd2(0x1e1)](){var _0x39df04=_0x413fd2;this[_0x39df04(0x200)]||(this['_init']=!0x0,this[_0x39df04(0x207)][_0x39df04(0x265)][_0x39df04(0x1ca)](_0x960196(this[_0x39df04(0x26f)]))['subscribe'](_0x4618a4=>{var _0x58b285=_0x39df04;switch(_0x4618a4){case _0x28cf64[_0x58b285(0x1ce)]:this['_handleOffline']();break;case _0x28cf64['ONLINE']:this[_0x58b285(0x20a)]();break;}}),this['_collabSession']['event$'][_0x39df04(0x1ca)](_0x960196(this[_0x39df04(0x26f)]))[_0x39df04(0x1e9)](_0x23358d=>{var _0x418dff=_0x39df04;const {eventID:_0x451d84}=_0x23358d;switch(_0x451d84){case _0x15f78f[_0x418dff(0x219)]:this[_0x418dff(0x1d0)](_0x23358d);break;case _0x15f78f[_0x418dff(0x1f0)]:this[_0x418dff(0x25b)](_0x23358d);break;case _0x15f78f[_0x418dff(0x227)]:this[_0x418dff(0x1cd)]();break;case _0x15f78f[_0x418dff(0x260)]:this[_0x418dff(0x1d3)](_0x23358d);break;}}));}[_0x413fd2(0x1d1)](){var _0x536a1b=_0x413fd2;this[_0x536a1b(0x207)][_0x536a1b(0x1ef)]({'eventID':_0x15f78f[_0x536a1b(0x208)],'data':{'unitID':this['_unitID'],'userID':this[_0x536a1b(0x207)][_0x536a1b(0x274)]()}},this[_0x536a1b(0x229)]);}['stopPresenting'](){var _0x40502a=_0x413fd2;this['_status']==='presenting'&&(this['_status$'][_0x40502a(0x205)](_0x40502a(0x23a)),this[_0x40502a(0x207)]['send']({'eventID':_0x15f78f[_0x40502a(0x227)],'data':{'unitID':this[_0x40502a(0x229)]}},this[_0x40502a(0x229)]));}[_0x413fd2(0x248)](){var _0x3306ab=_0x413fd2;this[_0x3306ab(0x267)]===_0x3306ab(0x1ea)&&(this['_status$'][_0x3306ab(0x205)]('following'),this[_0x3306ab(0x20e)]());}[_0x413fd2(0x259)](){var _0x30f5f8=_0x413fd2;this[_0x30f5f8(0x267)]==='following'&&this[_0x30f5f8(0x26c)]();}[_0x413fd2(0x1d0)](_0x1ca1c6){var _0x15d0c8=_0x413fd2;const {presenter:_0x32cad7}=_0x1ca1c6[_0x15d0c8(0x222)],_0x1d1a84=this['_collabSession'][_0x15d0c8(0x274)]();this[_0x15d0c8(0x225)]=_0x32cad7,_0x32cad7===_0x1d1a84?(this[_0x15d0c8(0x26c)](),this[_0x15d0c8(0x234)]()):this[_0x15d0c8(0x267)]!=='not-following'&&(this[_0x15d0c8(0x23c)](),this[_0x15d0c8(0x20e)]());}[_0x413fd2(0x1f9)](){var _0x4767df=_0x413fd2;const _0x3485d8={'eventID':_0x15f78f[_0x4767df(0x22f)]};this[_0x4767df(0x207)][_0x4767df(0x1ef)](_0x3485d8,this[_0x4767df(0x229)]);}[_0x413fd2(0x1cd)](){var _0x51675c=_0x413fd2;this[_0x51675c(0x225)]=null,this[_0x51675c(0x267)]!==_0x51675c(0x250)&&this[_0x51675c(0x1fe)]();}[_0x413fd2(0x1d3)](_0x5b1372){var _0x7cd90=_0x413fd2;if(this[_0x7cd90(0x267)]===_0x7cd90(0x1e4)&&this[_0x7cd90(0x225)]===_0x5b1372[_0x7cd90(0x222)][_0x7cd90(0x1fd)]){const _0x7d9516=_0x525527(_0x5b1372['data'])['mutations'][_0x7cd90(0x1eb)]()[_0x7cd90(0x258)](_0x5d0c1b=>_0x5d0c1b['id']===_0x5d7e73['id']);if(_0x7d9516){const _0x560694=_0x7d9516[_0x7cd90(0x206)]['unitId'],_0x266d75=_0x7d9516[_0x7cd90(0x206)]['sheet']['id'];setTimeout(()=>{var _0x5b498f=_0x7cd90;this['_commandService'][_0x5b498f(0x275)](_0x587c83['id'],{'unitId':_0x560694,'subUnitId':_0x266d75},{'fromCollab':!0x0});});}}}[_0x413fd2(0x234)](){var _0x3d6e3d=_0x413fd2;this[_0x3d6e3d(0x1c9)][_0x3d6e3d(0x205)]('presenting');const _0x26afef=new Map(),_0x3ed48d=this[_0x3d6e3d(0x232)]=new _0x52dca9();_0x3ed48d[_0x3d6e3d(0x1e6)](_0x235983(()=>{var _0x36f5f7=_0x3d6e3d;_0x26afef[_0x36f5f7(0x249)](_0x188d59=>_0x188d59[_0x36f5f7(0x22b)]()),_0x26afef[_0x36f5f7(0x1e0)]();})),_0x3ed48d[_0x3d6e3d(0x1e6)](this[_0x3d6e3d(0x262)][_0x3d6e3d(0x228)](_0x26326e=>{var _0x2b26e1=_0x3d6e3d,_0xab8531;if(_0x26326e['type']!==_0x1caa0b[_0x2b26e1(0x1ee)]||!this[_0x2b26e1(0x1d9)]['shouldShareOperation'](_0x26326e['id']))return;const {id:_0x1a72ec}=_0x26326e;let _0x3044a2;_0x26afef['has'](_0x1a72ec)?_0x3044a2=_0x26afef[_0x2b26e1(0x25c)](_0x1a72ec):(_0x3044a2=new _0x391242(),_0x26afef[_0x2b26e1(0x23e)](_0x1a72ec,_0x3044a2),_0x3044a2[_0x2b26e1(0x1ca)](_0x3ef22c((_0xab8531=this['_configService'][_0x2b26e1(0x1d7)](Pe))!=null?_0xab8531:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2b26e1(0x1e9)](_0x1c6459=>{var _0x51da18=_0x2b26e1;this[_0x51da18(0x207)][_0x51da18(0x1ef)]({'eventID':_0x15f78f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x51da18(0x229)],'operations':{[_0x1c6459['id']]:{'id':_0x1c6459['id'],'params':JSON[_0x51da18(0x26a)](_0x1c6459[_0x51da18(0x206)])}}}},this[_0x51da18(0x229)]);})),_0x3044a2[_0x2b26e1(0x205)](_0x26326e);})),this[_0x3d6e3d(0x1d9)][_0x3d6e3d(0x245)](this['_unitID'])[_0x3d6e3d(0x249)](_0x178ced=>this[_0x3d6e3d(0x207)]['send']({'eventID':_0x15f78f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3d6e3d(0x229)],'operations':{[_0x178ced['id']]:{'id':_0x178ced['id'],'params':JSON[_0x3d6e3d(0x26a)](_0x178ced[_0x3d6e3d(0x206)])}}}},this[_0x3d6e3d(0x229)]));}[_0x413fd2(0x23c)](){var _0x51651c=_0x413fd2,_0x2368c2;this['_status$'][_0x51651c(0x205)]('idle'),(_0x2368c2=this['_commandDisposable'])==null||_0x2368c2[_0x51651c(0x26b)](),this[_0x51651c(0x232)]=null;}[_0x413fd2(0x20e)](){var _0x219555=_0x413fd2,_0x2ae663;(_0x2ae663=this[_0x219555(0x232)])==null||_0x2ae663[_0x219555(0x26b)](),this['_status$'][_0x219555(0x205)](_0x219555(0x1e4));}['_beIdle'](){var _0x2904e7=_0x413fd2,_0x3e819b;this['_status$']['next'](_0x2904e7(0x23a)),(_0x3e819b=this[_0x2904e7(0x232)])==null||_0x3e819b[_0x2904e7(0x26b)](),this[_0x2904e7(0x232)]=null;}[_0x413fd2(0x26c)](){var _0x24abab=_0x413fd2,_0x12b6d9;this[_0x24abab(0x1c9)][_0x24abab(0x205)]('not-following'),(_0x12b6d9=this[_0x24abab(0x232)])==null||_0x12b6d9['dispose']();}['_handleOperation'](_0x3c6e84){var _0x1ccadf=_0x413fd2;if([_0x1ccadf(0x250),_0x1ccadf(0x1ea),_0x1ccadf(0x236)][_0x1ccadf(0x1f1)](this['_status'])||!_0x3c6e84['data'][_0x1ccadf(0x1d4)]||_0x3c6e84[_0x1ccadf(0x222)]['presenter']===this['_collabSession'][_0x1ccadf(0x274)]())return;this[_0x1ccadf(0x267)]===_0x1ccadf(0x23a)&&this['_startFollowing']();const _0x1a832d=_0x3c6e84[_0x1ccadf(0x222)][_0x1ccadf(0x270)];Object['values'](_0x1a832d)[_0x1ccadf(0x249)](_0x1e4672=>{var _0x3c2d18=_0x1ccadf;this[_0x3c2d18(0x262)][_0x3c2d18(0x275)](_0x1e4672['id'],_0x1e4672['params']?JSON[_0x3c2d18(0x1cb)](_0x1e4672[_0x3c2d18(0x206)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x48c54e=_0x413fd2,_0x32d5e4;this[_0x48c54e(0x1c9)][_0x48c54e(0x205)](_0x48c54e(0x236)),(_0x32d5e4=this[_0x48c54e(0x232)])==null||_0x32d5e4[_0x48c54e(0x26b)]();}[_0x413fd2(0x20a)](){var _0x2225e7=_0x413fd2;this[_0x2225e7(0x1c9)][_0x2225e7(0x205)](_0x2225e7(0x23a)),this[_0x2225e7(0x1f9)]();}};C=Z([f(0x2,_0x4addda),f(0x3,_0x287324(L)),f(0x4,_0x4a5bf9)],C);function Te(){var _0x3031c9=_0x413fd2;const _0x1cd765=_0x8c2502(I),_0x471c37=_0x8c2502(_0x563054),_0x4dbe8e=_0x54b49a(()=>_0x471c37['getCurrentTypeOfUnit$'](_0x2369f2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3bf703,_0x16f0fe]=_0x393f14(null),[_0x578e20,_0x3e89c3]=_0x393f14(h['IDLE']),_0x1dac74=_0x56788e(null);return _0x569005(()=>(_0x4dbe8e&&_0x1cd765['getLiveShareCoordinator'](_0x4dbe8e[_0x3031c9(0x220)]())['then'](_0x3f717d=>{var _0xcd2ad=_0x3031c9;_0x16f0fe(_0x3f717d),_0x1dac74[_0xcd2ad(0x24a)]=_0x3f717d[_0xcd2ad(0x24d)][_0xcd2ad(0x1e9)](_0x1859eb=>{_0x3e89c3(_0x1859eb);});}),()=>{var _0x1fae40=_0x3031c9,_0x5c5752;(_0x5c5752=_0x1dac74[_0x1fae40(0x24a)])==null||_0x5c5752[_0x1fae40(0x1f3)](),_0x1dac74[_0x1fae40(0x24a)]=null;}),[_0x4dbe8e,_0x1cd765]),_0x3bf703?_0x5b6f43(_0x5da7d2,{'align':_0x3031c9(0x25a),'disabled':_0x578e20===h[_0x3031c9(0x1ce)],'className':_0x3031c9(0x202),'overlay':_0x5b6f43($e,{'status':_0x578e20,'coordinator':_0x3bf703}),'children':_0x5b6f43(_0x3031c9(0x213),{'className':_0x4a52f6(_0x3031c9(0x23d),{'univer-cursor-not-allowed':_0x578e20===h[_0x3031c9(0x1ce)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x578e20!==h[_0x3031c9(0x1ce)]}),'type':_0x3031c9(0x213),'children':_0x5b6f43(B,{'className':_0x3031c9(0x1ec)})})}):null;}function $e(_0x3d1b35){var _0x35243e=_0x413fd2;const {status:_0x2b8910,coordinator:_0x1420f9}=_0x3d1b35;switch(_0x2b8910){case h['IDLE']:return _0x5b6f43(Fe,{'coordinator':_0x1420f9});case h[_0x35243e(0x256)]:return _0x5b6f43(He,{'coordinator':_0x1420f9});case h[_0x35243e(0x24e)]:return _0x5b6f43(je,{'coordinator':_0x1420f9});case h['OFFLINE']:return _0x5b6f43(Ve,{});case h[_0x35243e(0x26d)]:return _0x5b6f43(Ue,{'coordinator':_0x1420f9});default:return null;}}function Fe(_0x3be60c){var _0x58c388=_0x413fd2;const {coordinator:_0x3be33}=_0x3be60c;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x58c388(0x251),{'className':_0x58c388(0x243),'children':'Present\x20this\x20document'}),_0x5b6f43(_0x4ec768,{'onClick':()=>_0x3be33['tryStartPresenting'](),'children':_0x58c388(0x1cc)})]});}function He(_0x1faf9c){var _0x489da9=_0x413fd2;const {coordinator:_0x3bb2a6}=_0x1faf9c;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x489da9(0x251),{'className':_0x489da9(0x243),'children':_0x489da9(0x27a)}),_0x5b6f43(_0x4ec768,{'onClick':()=>_0x3bb2a6[_0x489da9(0x259)](),'children':_0x489da9(0x210)})]});}function je(_0x33c34f){var _0x55921f=_0x413fd2;const {coordinator:_0x46d324}=_0x33c34f;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x55921f(0x251),{'className':_0x55921f(0x243),'children':_0x55921f(0x253)}),_0x5b6f43(_0x4ec768,{'variant':'text','onClick':()=>_0x46d324[_0x55921f(0x248)](),'children':'Start\x20following'})]});}function Ue(_0x43327e){var _0x11c407=_0x413fd2;const {coordinator:_0x500267}=_0x43327e;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x11c407(0x251),{'className':_0x11c407(0x243),'children':_0x11c407(0x1fc)}),_0x5b6f43(_0x4ec768,{'variant':_0x11c407(0x25d),'onClick':()=>_0x500267['stopPresenting'](),'children':_0x11c407(0x217)})]});}function Ve(){var _0x47c3ce=_0x413fd2;return _0x5b6f43(_0x5e9b05,{'children':_0x47c3ce(0x22c)});}var Me=Object[_0x413fd2(0x252)],ke=(_0x20f3ee,_0x397115,_0x130fb8,_0x552d8a)=>{var _0x4dc284=_0x413fd2;for(var _0x426d7a=_0x552d8a>0x1?void 0x0:_0x552d8a?Me(_0x397115,_0x130fb8):_0x397115,_0x4b9728=_0x20f3ee[_0x4dc284(0x276)]-0x1,_0x233e6f;_0x4b9728>=0x0;_0x4b9728--)(_0x233e6f=_0x20f3ee[_0x4b9728])&&(_0x426d7a=_0x233e6f(_0x426d7a)||_0x426d7a);return _0x426d7a;},$=(_0x5aefe4,_0x34a6aa)=>(_0x2df8c8,_0x42c30d)=>_0x34a6aa(_0x2df8c8,_0x42c30d,_0x5aefe4);let b=class extends _0x2d602a{constructor(_0x21c864,_0x5b5487){var _0x294089=_0x413fd2;super(),this[_0x294089(0x1f6)]=_0x21c864,this[_0x294089(0x233)]=_0x5b5487,this[_0x294089(0x237)]();}[_0x413fd2(0x237)](){var _0x420a07=_0x413fd2;this[_0x420a07(0x20f)](this['_uiPartsService'][_0x420a07(0x239)](_0x120083['HEADER_MENU'],()=>_0x38f68b(Te,this[_0x420a07(0x1f6)])));}};b=ke([$(0x0,_0x287324(_0x189459)),$(0x1,_0x2136ab)],b);var Ge=Object[_0x413fd2(0x214)],We=Object[_0x413fd2(0x252)],Ye=(_0x30650f,_0x33f616,_0x2b5b40)=>_0x33f616 in _0x30650f?Ge(_0x30650f,_0x33f616,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b5b40}):_0x30650f[_0x33f616]=_0x2b5b40,Be=(_0x327f20,_0x43257d,_0x5cf717,_0x28b7f9)=>{var _0x5b499c=_0x413fd2;for(var _0x4173e7=_0x28b7f9>0x1?void 0x0:_0x28b7f9?We(_0x43257d,_0x5cf717):_0x43257d,_0x20c6de=_0x327f20[_0x5b499c(0x276)]-0x1,_0xae56c7;_0x20c6de>=0x0;_0x20c6de--)(_0xae56c7=_0x327f20[_0x20c6de])&&(_0x4173e7=_0xae56c7(_0x4173e7)||_0x4173e7);return _0x4173e7;},F=(_0x4cc83f,_0x293ca6)=>(_0x12728d,_0x234acb)=>_0x293ca6(_0x12728d,_0x234acb,_0x4cc83f),J=(_0x5bda39,_0x16912c,_0x2214a1)=>Ye(_0x5bda39,typeof _0x16912c!=_0x413fd2(0x20c)?_0x16912c+'':_0x16912c,_0x2214a1);const Ze=_0x413fd2(0x1d6);let O=class extends _0x54894e{constructor(_0x475c46=T,_0x5d25fe,_0x2c2f7f){var _0x302cf8=_0x413fd2;super(),this['_config']=_0x475c46,this[_0x302cf8(0x1f6)]=_0x5d25fe,this[_0x302cf8(0x21d)]=_0x2c2f7f;const {..._0x5590e7}=_0x563c15({},T,this[_0x302cf8(0x21c)]);this['_configService'][_0x302cf8(0x269)](Oe,_0x5590e7);}[_0x413fd2(0x242)](){var _0x3b0e2e=_0x413fd2;_0x4b1d24(this[_0x3b0e2e(0x1f6)],_0x38959d([[L],[I],[m],[b]],this['_config'][_0x3b0e2e(0x254)])),_0x4a7c72(this[_0x3b0e2e(0x1f6)],[[m]]);}[_0x413fd2(0x264)](){var _0x206d69=_0x413fd2;_0x4a7c72(this[_0x206d69(0x1f6)],[[b]]);}};J(O,_0x413fd2(0x1e7),_0x2369f2[_0x413fd2(0x22d)]),J(O,_0x413fd2(0x21a),Ze),O=Be([_0x39d809(_0x40879e),F(0x1,_0x287324(_0x189459)),F(0x2,_0x4addda)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x31198e=_0x30db;(function(_0xed52d5,_0x473d22){var _0x54ae83=_0x30db,_0x1098da=_0xed52d5();while(!![]){try{var _0x4c8fb0=parseInt(_0x54ae83(0x17b))/0x1+-parseInt(_0x54ae83(0x1b5))/0x2*(parseInt(_0x54ae83(0x1d2))/0x3)+-parseInt(_0x54ae83(0x1ba))/0x4+-parseInt(_0x54ae83(0x167))/0x5+-parseInt(_0x54ae83(0x143))/0x6+-parseInt(_0x54ae83(0x1a4))/0x7+parseInt(_0x54ae83(0x1cd))/0x8;if(_0x4c8fb0===_0x473d22)break;else _0x1098da['push'](_0x1098da['shift']());}catch(_0x27a0e5){_0x1098da['push'](_0x1098da['shift']());}}}(_0x4014,0xa6c93));var q=Object[_0x31198e(0x1b2)],z=(_0x3461eb,_0x7b6b31,_0x4978f0)=>_0x7b6b31 in _0x3461eb?q(_0x3461eb,_0x7b6b31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4978f0}):_0x3461eb[_0x7b6b31]=_0x4978f0,d=(_0x4154d7,_0x3dff64,_0x28f982)=>z(_0x4154d7,typeof _0x3dff64!=_0x31198e(0x1d3)?_0x3dff64+'':_0x3dff64,_0x28f982);import{CollaborationSessionService as _0x3797e6,SessionStatus as _0xbb74fd,UniverCollaborationClientPlugin as _0x40f314}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3039f2,toDisposable as _0x322b7a,Inject as _0x44183f,IUniverInstanceService as _0xa538ea,Injector as _0x59ff7b,IConfigService as _0x5ad91b,ICommandService as _0x1f2ab5,RxDisposable as _0x25d182,UniverInstanceType as _0x384d9f,DisposableCollection as _0x8826e3,CommandType as _0x5520f3,DependentOn as _0x5e6bbe,Plugin as _0x95d93e,merge as _0x46d38b,registerDependencies as _0x352343,mergeOverrideWithDependencies as _0x5ee3d2,touchDependencies as _0x3f2e03}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x45d30c,InsertSheetMutation as _0x182beb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x56f8dd,SetScrollOperation as _0x39acd7}from'@univerjs/sheets-ui';import{useDependency as _0x1bdc43,useObservable as _0x5068f5,IUIPartsService as _0x3210f0,BuiltInUIPart as _0x2a6ff0,connectInjector as _0x5a25e5}from'@univerjs/ui';import{jsx as _0x15aab4,jsxs as _0x346495,Fragment as _0x5b11db}from'react/jsx-runtime';import{Dropdown as _0x3cbf5d,clsx as _0x378b8b,Button as _0x225bf1}from'@univerjs/design';import{forwardRef as _0x35ed48,useRef as _0x3745a5,createElement as _0x15565a,useState as _0x3b70aa,useEffect as _0x3a4d4a}from'react';import{CollaborationEvent as _0x25e5a9,parseProtocolChangeset as _0x2b7d41}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x231456,Subject as _0x5b5f3e}from'rxjs';function _0x30db(_0x2b5ac1,_0xdadc39){var _0x4014f1=_0x4014();return _0x30db=function(_0x30db0c,_0x274aab){_0x30db0c=_0x30db0c-0x137;var _0x1887b8=_0x4014f1[_0x30db0c];return _0x1887b8;},_0x30db(_0x2b5ac1,_0xdadc39);}import{takeUntil as _0x3106b9,throttleTime as _0x21d466}from'rxjs/operators';const Oe=_0x31198e(0x1d0),T={};class L extends _0x3039f2{constructor(){var _0x2f49d2=_0x31198e;super(...arguments),d(this,_0x2f49d2(0x15a),new Set()),d(this,_0x2f49d2(0x1bd),new Set());}[_0x31198e(0x1d5)](_0x365283){var _0x36af5c=_0x31198e;return this['_sharedOperations'][_0x36af5c(0x1a2)](_0x365283),_0x322b7a(()=>this[_0x36af5c(0x15a)][_0x36af5c(0x16a)](_0x365283));}[_0x31198e(0x1db)](_0x576ac5){var _0x17f2be=_0x31198e;return this[_0x17f2be(0x1bd)][_0x17f2be(0x1a2)](_0x576ac5),_0x322b7a(()=>this[_0x17f2be(0x1bd)][_0x17f2be(0x16a)](_0x576ac5));}[_0x31198e(0x174)](_0x2d1832){var _0x563c9a=_0x31198e;return this['_sharedOperations'][_0x563c9a(0x173)](_0x2d1832);}[_0x31198e(0x17f)](_0xfb26cf){var _0x113f6e=_0x31198e;return Array['from'](this[_0x113f6e(0x1bd)])[_0x113f6e(0x1a7)](_0x598bc2=>_0x598bc2(_0xfb26cf));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x22e794,_0x9ad2b6,_0x200a03,_0x2996e7)=>{for(var _0x14cdbc=_0x2996e7>0x1?void 0x0:_0x2996e7?Ee(_0x9ad2b6,_0x200a03):_0x9ad2b6,_0x1d7526=_0x22e794['length']-0x1,_0x25e93e;_0x1d7526>=0x0;_0x1d7526--)(_0x25e93e=_0x22e794[_0x1d7526])&&(_0x14cdbc=_0x25e93e(_0x14cdbc)||_0x14cdbc);return _0x14cdbc;},Ne=(_0x2de2b2,_0x8669e9)=>(_0x70f1be,_0x248c2f)=>_0x8669e9(_0x70f1be,_0x248c2f,_0x2de2b2);let m=class extends _0x3039f2{constructor(_0x494c2e){var _0x5ed743=_0x31198e;super(),this[_0x5ed743(0x1b3)]=_0x494c2e,this[_0x5ed743(0x19e)]();}['_init'](){var _0x1fd796=_0x31198e;[_0x56f8dd['id'],_0x39acd7['id'],_0x45d30c['id']][_0x1fd796(0x198)](_0x4053f9=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x4053f9));});}};function _0x4014(){var _0x4c674b=['_sharedOperations','dispose$','_handleOnline','operations','mutations','prototype','fill','next','clear','live-share-icon','propertyIsEnumerable','getTypeOfUnitAdded$','attrs','635010wcKJpr','_commandService','LiveShareIcon','delete','currentColor','_status$','Start\x20following','getOwnPropertyDescriptor','text','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','then','has','shouldShareOperation','length','univerjs-icon\x20univerjs-icon-','defIds','tryStartPresenting','trim','_config','307382dfKnLy','OFFLINE','div','_startFollowing','getInitialStates','memberID','status$','setConfig','_unitID','_presenter','1em','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','set','pipe','HEADER_MENU','tag','dispose','_collabSessionService','getCurrentTypeOfUnit$','_handleNewChangeSets','0\x200\x2017\x2017','concat','call','idSuffix','mask','LIVESHARE_FETCH_OPERATIONS','idle','onStarting','forEach','following','_univerInstanceService','Present\x20this\x20document','IDLE','unitId','_init','getMemberID','startFollowing','PRESENTING','add','type','7111937TjIJpc','presenter','defs','map','stopPresenting','string','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','_handleOperation','UNIVER_SHEET','requireSession','FOLLOWING','extend','onRendered','defineProperty','_liveShareService','http://www.w3.org/2000/svg','549166HBgFUL','none','assign','ONLINE','univer-size-4','2863008ONuVEO','button','data','_reporters','_configService','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','_entities','displayName','getTypeOfUnitDisposed$','NEW_CHANGESETS','not-following','_startPresenting','Start','executeCommand','values','_handleTerminate','offline','subscribe','init','27622824CsdptJ','icon','current','live-share.config','get','6WSepWY','symbol','unsubscribe','registerSharedOperation','complete','NOT_FOLLOWING','_stopPresenting','UNIVER_UNKNOWN','indexOf','registerInitialStateReporter','override','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','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','getOwnPropertySymbols','includes','sheet','_status','_startLiveShareCoordinator','_handleNewHost','_stopFollowing','You\x27re\x20presenting\x20the\x20document','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','_handleOffline','svg','find','xlink:href','entries','_fetchOperations','_uiPartsService','reverse','presenting','colorChannel1','send','4015014BeOJQU','LIVESHARE_OPERATION','getConfig','stopFollowing','_injector','getValue','pluginName','toString','children','params','stringify','asObservable','apply','className','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_beIdle','UniverIcon','getUnitId','_commandDisposable','parse','evenodd','LIVESHARE_REQUEST_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x4014=function(){return _0x4c674b;};return _0x4014();}m=we([Ne(0x0,_0x44183f(L))],m);var c=function(){var _0x469d03=_0x31198e;return c=Object[_0x469d03(0x1b7)]||function(_0x2c039d){var _0x3b30a8=_0x469d03;for(var _0x2182d4,_0x29c714=0x1,_0x2f7ea8=arguments[_0x3b30a8(0x175)];_0x29c714<_0x2f7ea8;_0x29c714++){_0x2182d4=arguments[_0x29c714];for(var _0x44dc78 in _0x2182d4)Object[_0x3b30a8(0x15f)]['hasOwnProperty'][_0x3b30a8(0x192)](_0x2182d4,_0x44dc78)&&(_0x2c039d[_0x44dc78]=_0x2182d4[_0x44dc78]);}return _0x2c039d;},c[_0x469d03(0x14f)](this,arguments);},Ce=function(_0x17f5c1,_0x4d78f4){var _0x543fba=_0x31198e,_0x5c688a={};for(var _0x182bf0 in _0x17f5c1)Object[_0x543fba(0x15f)]['hasOwnProperty'][_0x543fba(0x192)](_0x17f5c1,_0x182bf0)&&_0x4d78f4[_0x543fba(0x1da)](_0x182bf0)<0x0&&(_0x5c688a[_0x182bf0]=_0x17f5c1[_0x182bf0]);if(_0x17f5c1!=null&&typeof Object[_0x543fba(0x1e0)]=='function'){for(var _0x348462=0x0,_0x182bf0=Object['getOwnPropertySymbols'](_0x17f5c1);_0x348462<_0x182bf0[_0x543fba(0x175)];_0x348462++)_0x4d78f4[_0x543fba(0x1da)](_0x182bf0[_0x348462])<0x0&&Object['prototype'][_0x543fba(0x164)]['call'](_0x17f5c1,_0x182bf0[_0x348462])&&(_0x5c688a[_0x182bf0[_0x348462]]=_0x17f5c1[_0x182bf0[_0x348462]]);}return _0x5c688a;},W=_0x35ed48(function(_0x939879,_0x3f12ec){var _0x3575da=_0x31198e,_0x15b519=_0x939879[_0x3575da(0x1ce)],_0x113ddc=_0x939879['id'],_0x45465c=_0x939879['className'],_0x38f5c5=_0x939879[_0x3575da(0x1b0)],_0x1acc17=Ce(_0x939879,[_0x3575da(0x1ce),'id',_0x3575da(0x150),_0x3575da(0x1b0)]),_0x563d2c=_0x3575da(0x176)['concat'](_0x113ddc,'\x20')[_0x3575da(0x191)](_0x45465c||'')[_0x3575da(0x179)](),_0x266c6d=_0x3745a5('_'['concat'](Le()));return Y(_0x15b519,''[_0x3575da(0x191)](_0x113ddc),{'defIds':_0x15b519[_0x3575da(0x177)],'idSuffix':_0x266c6d[_0x3575da(0x1cf)]},c({'ref':_0x3f12ec,'className':_0x563d2c},_0x1acc17),_0x38f5c5);});function Y(_0x1d3ee5,_0x5b7941,_0xa05807,_0x36525f,_0x9e122e){var _0x48bbb5=_0x31198e;return _0x15565a(_0x1d3ee5[_0x48bbb5(0x18b)],c(c({'key':_0x5b7941},De(_0x1d3ee5,_0xa05807,_0x9e122e)),_0x36525f),(xe(_0x1d3ee5,_0xa05807)[_0x48bbb5(0x14b)]||[])['map'](function(_0x47e4eb,_0x3de012){var _0x49cb2d=_0x48bbb5;return Y(_0x47e4eb,''[_0x49cb2d(0x191)](_0x5b7941,'-')['concat'](_0x1d3ee5[_0x49cb2d(0x18b)],'-')['concat'](_0x3de012),_0xa05807,void 0x0,_0x9e122e);}));}function De(_0x2fd1eb,_0x543afd,_0x3a54b3){var _0x7db80e=_0x31198e,_0x1c4cd3=c({},_0x2fd1eb['attrs']);_0x3a54b3!=null&&_0x3a54b3[_0x7db80e(0x141)]&&_0x1c4cd3['fill']===_0x7db80e(0x141)&&(_0x1c4cd3[_0x7db80e(0x160)]=_0x3a54b3[_0x7db80e(0x141)]),_0x2fd1eb[_0x7db80e(0x18b)]==='mask'&&_0x1c4cd3['id']&&(_0x1c4cd3['id']=_0x1c4cd3['id']+_0x543afd[_0x7db80e(0x193)]),Object[_0x7db80e(0x13c)](_0x1c4cd3)['forEach'](function(_0x68f6b5){var _0x504694=_0x7db80e,_0x27dd93=_0x68f6b5[0x0],_0x3f7b78=_0x68f6b5[0x1];_0x27dd93===_0x504694(0x194)&&typeof _0x3f7b78==_0x504694(0x1a9)&&(_0x1c4cd3[_0x27dd93]=_0x3f7b78['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x543afd[_0x504694(0x193)],')')));});var _0x418e55=_0x543afd[_0x7db80e(0x177)];return!_0x418e55||_0x418e55[_0x7db80e(0x175)]===0x0||(_0x2fd1eb['tag']==='use'&&_0x1c4cd3[_0x7db80e(0x13b)]&&(_0x1c4cd3[_0x7db80e(0x13b)]=_0x1c4cd3[_0x7db80e(0x13b)]+_0x543afd[_0x7db80e(0x193)]),Object['entries'](_0x1c4cd3)[_0x7db80e(0x198)](function(_0x2cbca2){var _0x265d09=_0x7db80e,_0x4bcb2b=_0x2cbca2[0x0],_0x10cba0=_0x2cbca2[0x1];typeof _0x10cba0=='string'&&(_0x1c4cd3[_0x4bcb2b]=_0x10cba0['replace'](/url\(#(.*)\)/,'url(#$1'[_0x265d09(0x191)](_0x543afd[_0x265d09(0x193)],')')));})),_0x1c4cd3;}function xe(_0x69e268,_0x48d728){var _0x3e0d7b=_0x31198e,_0x2de8f9,_0x6f3d14=_0x48d728[_0x3e0d7b(0x177)];return!_0x6f3d14||_0x6f3d14[_0x3e0d7b(0x175)]===0x0?_0x69e268:_0x69e268[_0x3e0d7b(0x18b)]===_0x3e0d7b(0x1a6)&&(!((_0x2de8f9=_0x69e268[_0x3e0d7b(0x14b)])===null||_0x2de8f9===void 0x0)&&_0x2de8f9[_0x3e0d7b(0x175)])?c(c({},_0x69e268),{'children':_0x69e268[_0x3e0d7b(0x14b)][_0x3e0d7b(0x1a7)](function(_0x5bf157){var _0x1b10ab=_0x3e0d7b;return typeof _0x5bf157[_0x1b10ab(0x166)]['id']==_0x1b10ab(0x1a9)&&_0x6f3d14&&_0x6f3d14[_0x1b10ab(0x1e1)](_0x5bf157[_0x1b10ab(0x166)]['id'])?c(c({},_0x5bf157),{'attrs':c(c({},_0x5bf157[_0x1b10ab(0x166)]),{'id':_0x5bf157['attrs']['id']+_0x48d728[_0x1b10ab(0x193)]})}):_0x5bf157;})}):_0x69e268;}function Le(){var _0x339947=_0x31198e;return Math['random']()[_0x339947(0x14a)](0x24)['substring'](0x2,0x8);}W[_0x31198e(0x1c1)]=_0x31198e(0x153);var ye={'tag':_0x31198e(0x139),'attrs':{'xmlns':_0x31198e(0x1b4),'fill':_0x31198e(0x1b6),'viewBox':_0x31198e(0x190),'width':_0x31198e(0x185),'height':_0x31198e(0x185)},'children':[{'tag':'path','attrs':{'fill':_0x31198e(0x16b),'d':_0x31198e(0x1df)}},{'tag':'path','attrs':{'fill':_0x31198e(0x16b),'d':_0x31198e(0x1bf),'fillRule':_0x31198e(0x157),'clipRule':'evenodd'}}]},B=_0x35ed48(function(_0x118fdf,_0x1439f6){var _0x343ea1=_0x31198e;return _0x15565a(W,Object[_0x343ea1(0x1b7)]({},_0x118fdf,{'id':_0x343ea1(0x163),'ref':_0x1439f6,'icon':ye}));});B[_0x31198e(0x1c1)]=_0x31198e(0x169);var Re=Object[_0x31198e(0x16e)],Z=(_0x32ed89,_0x69c933,_0x53a364,_0x3314b2)=>{for(var _0x2c66be=_0x3314b2>0x1?void 0x0:_0x3314b2?Re(_0x69c933,_0x53a364):_0x69c933,_0x35c3e1=_0x32ed89['length']-0x1,_0x56bc81;_0x35c3e1>=0x0;_0x35c3e1--)(_0x56bc81=_0x32ed89[_0x35c3e1])&&(_0x2c66be=_0x56bc81(_0x2c66be)||_0x2c66be);return _0x2c66be;},f=(_0x485c98,_0x16dd65)=>(_0xfb2e34,_0x59141a)=>_0x16dd65(_0xfb2e34,_0x59141a,_0x485c98);let I=class extends _0x25d182{constructor(_0x219269,_0x1d6ecd,_0x31c117){var _0x11d7b3=_0x31198e;super(),d(this,_0x11d7b3(0x1c0),new Map()),(this[_0x11d7b3(0x19a)]=_0x219269,this[_0x11d7b3(0x147)]=_0x1d6ecd,this['_collabSessionService']=_0x31c117,this[_0x11d7b3(0x19e)]());}async[_0x31198e(0x1de)](_0x1a7c6b){var _0x37cc77=_0x31198e;return this[_0x37cc77(0x1c0)][_0x37cc77(0x173)](_0x1a7c6b)||await this[_0x37cc77(0x1e4)](_0x1a7c6b),this[_0x37cc77(0x1c0)]['get'](_0x1a7c6b);}[_0x31198e(0x19e)](){var _0xe49bb3=_0x31198e;this['_univerInstanceService'][_0xe49bb3(0x165)](_0x384d9f[_0xe49bb3(0x1ad)])[_0xe49bb3(0x189)](_0x3106b9(this[_0xe49bb3(0x15b)]))[_0xe49bb3(0x1cb)](async _0x5a2bed=>{var _0xfa790b=_0xe49bb3;const _0x3ee190=_0x5a2bed[_0xfa790b(0x154)]();this[_0xfa790b(0x1c0)][_0xfa790b(0x173)](_0x3ee190)||this['_startLiveShareCoordinator'](_0x3ee190);}),this[_0xe49bb3(0x19a)][_0xe49bb3(0x1c2)](_0x384d9f[_0xe49bb3(0x1ad)])[_0xe49bb3(0x189)](_0x3106b9(this['dispose$']))[_0xe49bb3(0x1cb)](_0x42d38e=>{var _0xcf174=_0xe49bb3;const _0x5d817e=_0x42d38e[_0xcf174(0x154)](),_0x281491=this[_0xcf174(0x1c0)]['get'](_0x5d817e);_0x281491==null||_0x281491['dispose']();});}async[_0x31198e(0x1e4)](_0x2af52d){var _0x4e1990=_0x31198e;const _0x391200=await this[_0x4e1990(0x18d)][_0x4e1990(0x1ae)](_0x2af52d),_0x432ced=this[_0x4e1990(0x147)]['createInstance'](C,_0x2af52d,_0x391200);return _0x432ced[_0x4e1990(0x1cc)](),this[_0x4e1990(0x1c0)][_0x4e1990(0x188)](_0x2af52d,_0x432ced),_0x432ced;}};I=Z([f(0x0,_0xa538ea),f(0x1,_0x44183f(_0x59ff7b)),f(0x2,_0x44183f(_0x3797e6))],I);var h=(_0x3232cd=>(_0x3232cd[_0x31198e(0x17c)]=_0x31198e(0x1ca),_0x3232cd[_0x31198e(0x19c)]='idle',_0x3232cd[_0x31198e(0x1af)]=_0x31198e(0x199),_0x3232cd['NOT_FOLLOWING']=_0x31198e(0x1c4),_0x3232cd[_0x31198e(0x1a1)]=_0x31198e(0x140),_0x3232cd))(h||{});const Pe=_0x31198e(0x186),Ae=0xc8;let C=class extends _0x25d182{constructor(_0x59e35b,_0x2d85de,_0x18ca40,_0x1d23da,_0x3d9e4c){var _0x5e9c6a=_0x31198e;super(),d(this,_0x5e9c6a(0x16c),new _0x231456('idle')),d(this,_0x5e9c6a(0x181),this[_0x5e9c6a(0x16c)][_0x5e9c6a(0x14e)]()),d(this,_0x5e9c6a(0x19e),!0x1),d(this,_0x5e9c6a(0x155),null),d(this,_0x5e9c6a(0x184),null),(this['_unitID']=_0x59e35b,this[_0x5e9c6a(0x170)]=_0x2d85de,this[_0x5e9c6a(0x1be)]=_0x18ca40,this[_0x5e9c6a(0x1b3)]=_0x1d23da,this['_commandService']=_0x3d9e4c);}get[_0x31198e(0x1e3)](){var _0x24dc83=_0x31198e;return this['_status$'][_0x24dc83(0x148)]();}[_0x31198e(0x18c)](){var _0x5cee9c=_0x31198e,_0x3a56f0;(_0x3a56f0=this[_0x5cee9c(0x155)])==null||_0x3a56f0[_0x5cee9c(0x18c)](),this[_0x5cee9c(0x16c)]['next'](_0x5cee9c(0x196)),this[_0x5cee9c(0x16c)][_0x5cee9c(0x1d6)]();}[_0x31198e(0x1cc)](){var _0x5e8908=_0x31198e;this['_init']||(this['_init']=!0x0,this[_0x5e8908(0x170)]['sessionStatus$'][_0x5e8908(0x189)](_0x3106b9(this['dispose$']))[_0x5e8908(0x1cb)](_0x4f0ea7=>{var _0x3cbb36=_0x5e8908;switch(_0x4f0ea7){case _0xbb74fd[_0x3cbb36(0x17c)]:this['_handleOffline']();break;case _0xbb74fd[_0x3cbb36(0x1b8)]:this['_handleOnline']();break;}}),this[_0x5e8908(0x170)]['event$'][_0x5e8908(0x189)](_0x3106b9(this['dispose$']))[_0x5e8908(0x1cb)](_0x2a152d=>{var _0x37f555=_0x5e8908;const {eventID:_0x4d63f3}=_0x2a152d;switch(_0x4d63f3){case _0x25e5a9[_0x37f555(0x1ab)]:this[_0x37f555(0x1e5)](_0x2a152d);break;case _0x25e5a9['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2a152d);break;case _0x25e5a9[_0x37f555(0x1aa)]:this[_0x37f555(0x1c9)]();break;case _0x25e5a9[_0x37f555(0x1c3)]:this[_0x37f555(0x18f)](_0x2a152d);break;}}));}[_0x31198e(0x178)](){var _0x2951bc=_0x31198e;this[_0x2951bc(0x170)][_0x2951bc(0x142)]({'eventID':_0x25e5a9[_0x2951bc(0x158)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2951bc(0x19f)]()}},this[_0x2951bc(0x183)]);}[_0x31198e(0x1a8)](){var _0x538883=_0x31198e;this[_0x538883(0x1e3)]==='presenting'&&(this[_0x538883(0x16c)][_0x538883(0x161)](_0x538883(0x196)),this['_collabSession'][_0x538883(0x142)]({'eventID':_0x25e5a9[_0x538883(0x1aa)],'data':{'unitID':this[_0x538883(0x183)]}},this[_0x538883(0x183)]));}[_0x31198e(0x1a0)](){var _0x4b72ea=_0x31198e;this[_0x4b72ea(0x1e3)]==='not-following'&&(this[_0x4b72ea(0x16c)][_0x4b72ea(0x161)](_0x4b72ea(0x199)),this['_startFollowing']());}[_0x31198e(0x146)](){var _0x481b41=_0x31198e;this['_status']===_0x481b41(0x199)&&this[_0x481b41(0x1e6)]();}[_0x31198e(0x1e5)](_0x3d2c91){var _0x4c3e3d=_0x31198e;const {presenter:_0x1d111c}=_0x3d2c91[_0x4c3e3d(0x1bc)],_0x487473=this['_collabSession'][_0x4c3e3d(0x19f)]();this[_0x4c3e3d(0x184)]=_0x1d111c,_0x1d111c===_0x487473?(this[_0x4c3e3d(0x1e6)](),this[_0x4c3e3d(0x1c5)]()):this['_status']!==_0x4c3e3d(0x1c4)&&(this[_0x4c3e3d(0x1d8)](),this[_0x4c3e3d(0x17e)]());}[_0x31198e(0x13d)](){var _0x2d1520=_0x31198e;const _0x48f96d={'eventID':_0x25e5a9[_0x2d1520(0x195)]};this[_0x2d1520(0x170)][_0x2d1520(0x142)](_0x48f96d,this['_unitID']);}[_0x31198e(0x1c9)](){var _0x166412=_0x31198e;this['_presenter']=null,this[_0x166412(0x1e3)]!==_0x166412(0x140)&&this[_0x166412(0x152)]();}[_0x31198e(0x18f)](_0x432340){var _0x12c3bc=_0x31198e;if(this[_0x12c3bc(0x1e3)]===_0x12c3bc(0x199)&&this['_presenter']===_0x432340[_0x12c3bc(0x1bc)][_0x12c3bc(0x180)]){const _0x444890=_0x2b7d41(_0x432340['data'])[_0x12c3bc(0x15e)][_0x12c3bc(0x13f)]()[_0x12c3bc(0x13a)](_0x3031de=>_0x3031de['id']===_0x182beb['id']);if(_0x444890){const _0x2bd419=_0x444890[_0x12c3bc(0x14c)][_0x12c3bc(0x19d)],_0x7bcdb5=_0x444890[_0x12c3bc(0x14c)][_0x12c3bc(0x1e2)]['id'];setTimeout(()=>{var _0x4dd280=_0x12c3bc;this[_0x4dd280(0x168)][_0x4dd280(0x1c7)](_0x45d30c['id'],{'unitId':_0x2bd419,'subUnitId':_0x7bcdb5},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xe8a878=_0x31198e;this['_status$']['next'](_0xe8a878(0x140));const _0x4ec10d=new Map(),_0x4a21f1=this[_0xe8a878(0x155)]=new _0x8826e3();_0x4a21f1['add'](_0x322b7a(()=>{var _0x341c9c=_0xe8a878;_0x4ec10d[_0x341c9c(0x198)](_0xcb57a7=>_0xcb57a7[_0x341c9c(0x1d6)]()),_0x4ec10d[_0x341c9c(0x162)]();})),_0x4a21f1[_0xe8a878(0x1a2)](this[_0xe8a878(0x168)]['onCommandExecuted'](_0x3526f8=>{var _0x4a509d=_0xe8a878,_0x2b7e77;if(_0x3526f8['type']!==_0x5520f3['OPERATION']||!this[_0x4a509d(0x1b3)][_0x4a509d(0x174)](_0x3526f8['id']))return;const {id:_0x68a216}=_0x3526f8;let _0x5cdd59;_0x4ec10d[_0x4a509d(0x173)](_0x68a216)?_0x5cdd59=_0x4ec10d[_0x4a509d(0x1d1)](_0x68a216):(_0x5cdd59=new _0x5b5f3e(),_0x4ec10d[_0x4a509d(0x188)](_0x68a216,_0x5cdd59),_0x5cdd59[_0x4a509d(0x189)](_0x21d466((_0x2b7e77=this[_0x4a509d(0x1be)][_0x4a509d(0x145)](Pe))!=null?_0x2b7e77:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a509d(0x1cb)](_0x1c2ad1=>{var _0x480d0d=_0x4a509d;this[_0x480d0d(0x170)][_0x480d0d(0x142)]({'eventID':_0x25e5a9[_0x480d0d(0x144)],'data':{'unitID':this['_unitID'],'operations':{[_0x1c2ad1['id']]:{'id':_0x1c2ad1['id'],'params':JSON[_0x480d0d(0x14d)](_0x1c2ad1[_0x480d0d(0x14c)])}}}},this[_0x480d0d(0x183)]);})),_0x5cdd59[_0x4a509d(0x161)](_0x3526f8);})),this[_0xe8a878(0x1b3)]['getInitialStates'](this['_unitID'])[_0xe8a878(0x198)](_0x2bef31=>this[_0xe8a878(0x170)][_0xe8a878(0x142)]({'eventID':_0x25e5a9[_0xe8a878(0x144)],'data':{'unitID':this[_0xe8a878(0x183)],'operations':{[_0x2bef31['id']]:{'id':_0x2bef31['id'],'params':JSON['stringify'](_0x2bef31[_0xe8a878(0x14c)])}}}},this[_0xe8a878(0x183)]));}[_0x31198e(0x1d8)](){var _0x5d4a38=_0x31198e,_0x122c66;this[_0x5d4a38(0x16c)]['next'](_0x5d4a38(0x196)),(_0x122c66=this[_0x5d4a38(0x155)])==null||_0x122c66[_0x5d4a38(0x18c)](),this['_commandDisposable']=null;}[_0x31198e(0x17e)](){var _0x5685b0=_0x31198e,_0x33646b;(_0x33646b=this[_0x5685b0(0x155)])==null||_0x33646b[_0x5685b0(0x18c)](),this[_0x5685b0(0x16c)]['next']('following');}[_0x31198e(0x152)](){var _0x470ba6=_0x31198e,_0x465739;this[_0x470ba6(0x16c)][_0x470ba6(0x161)]('idle'),(_0x465739=this[_0x470ba6(0x155)])==null||_0x465739[_0x470ba6(0x18c)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5900ea=_0x31198e,_0x528159;this[_0x5900ea(0x16c)][_0x5900ea(0x161)](_0x5900ea(0x1c4)),(_0x528159=this[_0x5900ea(0x155)])==null||_0x528159[_0x5900ea(0x18c)]();}[_0x31198e(0x1ac)](_0x10e7bc){var _0x4894c3=_0x31198e;if([_0x4894c3(0x140),'not-following',_0x4894c3(0x1ca)][_0x4894c3(0x1e1)](this[_0x4894c3(0x1e3)])||!_0x10e7bc[_0x4894c3(0x1bc)][_0x4894c3(0x1a5)]||_0x10e7bc['data'][_0x4894c3(0x1a5)]===this[_0x4894c3(0x170)]['getMemberID']())return;this['_status']===_0x4894c3(0x196)&&this[_0x4894c3(0x17e)]();const _0xdf26ad=_0x10e7bc[_0x4894c3(0x1bc)][_0x4894c3(0x15d)];Object[_0x4894c3(0x1c8)](_0xdf26ad)[_0x4894c3(0x198)](_0x4ab220=>{var _0x32b62e=_0x4894c3;this['_commandService']['executeCommand'](_0x4ab220['id'],_0x4ab220['params']?JSON[_0x32b62e(0x156)](_0x4ab220[_0x32b62e(0x14c)]):null,{'fromCollab':!0x0});});}[_0x31198e(0x138)](){var _0x53a2fe=_0x31198e,_0x238252;this[_0x53a2fe(0x16c)][_0x53a2fe(0x161)](_0x53a2fe(0x1ca)),(_0x238252=this[_0x53a2fe(0x155)])==null||_0x238252[_0x53a2fe(0x18c)]();}[_0x31198e(0x15c)](){var _0x381c50=_0x31198e;this['_status$'][_0x381c50(0x161)](_0x381c50(0x196)),this[_0x381c50(0x13d)]();}};C=Z([f(0x2,_0x5ad91b),f(0x3,_0x44183f(L)),f(0x4,_0x1f2ab5)],C);function Te(){var _0x22cfea=_0x31198e;const _0xce3369=_0x1bdc43(I),_0x56216f=_0x1bdc43(_0xa538ea),_0x48c8fb=_0x5068f5(()=>_0x56216f[_0x22cfea(0x18e)](_0x384d9f['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x125df2,_0x1d1654]=_0x3b70aa(null),[_0x59d74f,_0x50f151]=_0x3b70aa(h[_0x22cfea(0x19c)]),_0x58eb84=_0x3745a5(null);return _0x3a4d4a(()=>(_0x48c8fb&&_0xce3369[_0x22cfea(0x1de)](_0x48c8fb[_0x22cfea(0x154)]())[_0x22cfea(0x172)](_0x109ec6=>{var _0x1eb9e1=_0x22cfea;_0x1d1654(_0x109ec6),_0x58eb84[_0x1eb9e1(0x1cf)]=_0x109ec6['status$'][_0x1eb9e1(0x1cb)](_0x38d64d=>{_0x50f151(_0x38d64d);});}),()=>{var _0x4cccea=_0x22cfea,_0x31bbbf;(_0x31bbbf=_0x58eb84[_0x4cccea(0x1cf)])==null||_0x31bbbf[_0x4cccea(0x1d4)](),_0x58eb84['current']=null;}),[_0x48c8fb,_0xce3369]),_0x125df2?_0x15aab4(_0x3cbf5d,{'align':'end','disabled':_0x59d74f===h[_0x22cfea(0x17c)],'className':_0x22cfea(0x137),'overlay':_0x15aab4($e,{'status':_0x59d74f,'coordinator':_0x125df2}),'children':_0x15aab4(_0x22cfea(0x1bb),{'className':_0x378b8b(_0x22cfea(0x151),{'univer-cursor-not-allowed':_0x59d74f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59d74f!==h[_0x22cfea(0x17c)]}),'type':_0x22cfea(0x1bb),'children':_0x15aab4(B,{'className':_0x22cfea(0x1b9)})})}):null;}function $e(_0x273b1c){var _0x170935=_0x31198e;const {status:_0x2258ba,coordinator:_0x535858}=_0x273b1c;switch(_0x2258ba){case h[_0x170935(0x19c)]:return _0x15aab4(Fe,{'coordinator':_0x535858});case h[_0x170935(0x1af)]:return _0x15aab4(He,{'coordinator':_0x535858});case h[_0x170935(0x1d7)]:return _0x15aab4(je,{'coordinator':_0x535858});case h[_0x170935(0x17c)]:return _0x15aab4(Ve,{});case h[_0x170935(0x1a1)]:return _0x15aab4(Ue,{'coordinator':_0x535858});default:return null;}}function Fe(_0x5eba7a){var _0x55a95d=_0x31198e;const {coordinator:_0x4841e7}=_0x5eba7a;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x55a95d(0x17d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x55a95d(0x19b)}),_0x15aab4(_0x225bf1,{'onClick':()=>_0x4841e7[_0x55a95d(0x178)](),'children':_0x55a95d(0x1c6)})]});}function He(_0x46482c){var _0x4747b1=_0x31198e;const {coordinator:_0x1d9a79}=_0x46482c;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x4747b1(0x17d),{'className':_0x4747b1(0x159),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x15aab4(_0x225bf1,{'onClick':()=>_0x1d9a79['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x20291c){var _0x5d87a1=_0x31198e;const {coordinator:_0x1b510c}=_0x20291c;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x5d87a1(0x17d),{'className':_0x5d87a1(0x159),'children':_0x5d87a1(0x171)}),_0x15aab4(_0x225bf1,{'variant':_0x5d87a1(0x16f),'onClick':()=>_0x1b510c[_0x5d87a1(0x1a0)](),'children':_0x5d87a1(0x16d)})]});}function Ue(_0x4015eb){var _0x12d97d=_0x31198e;const {coordinator:_0x4da420}=_0x4015eb;return _0x346495(_0x5b11db,{'children':[_0x15aab4('div',{'className':_0x12d97d(0x159),'children':_0x12d97d(0x1e7)}),_0x15aab4(_0x225bf1,{'variant':'default','onClick':()=>_0x4da420['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x15aab4(_0x5b11db,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x31198e(0x16e)],ke=(_0xc990f1,_0x12255d,_0x3c8ce0,_0x477b6a)=>{var _0x2c545f=_0x31198e;for(var _0x568556=_0x477b6a>0x1?void 0x0:_0x477b6a?Me(_0x12255d,_0x3c8ce0):_0x12255d,_0x3f2658=_0xc990f1[_0x2c545f(0x175)]-0x1,_0x45076f;_0x3f2658>=0x0;_0x3f2658--)(_0x45076f=_0xc990f1[_0x3f2658])&&(_0x568556=_0x45076f(_0x568556)||_0x568556);return _0x568556;},$=(_0x11e861,_0x33c6d0)=>(_0x220c4c,_0x3ed586)=>_0x33c6d0(_0x220c4c,_0x3ed586,_0x11e861);let b=class extends _0x3039f2{constructor(_0x2159d3,_0x513542){var _0x3485e7=_0x31198e;super(),this[_0x3485e7(0x147)]=_0x2159d3,this[_0x3485e7(0x13e)]=_0x513542,this[_0x3485e7(0x187)]();}[_0x31198e(0x187)](){var _0x58fe06=_0x31198e;this['disposeWithMe'](this[_0x58fe06(0x13e)]['registerComponent'](_0x2a6ff0[_0x58fe06(0x18a)],()=>_0x5a25e5(Te,this[_0x58fe06(0x147)])));}};b=ke([$(0x0,_0x44183f(_0x59ff7b)),$(0x1,_0x3210f0)],b);var Ge=Object[_0x31198e(0x1b2)],We=Object[_0x31198e(0x16e)],Ye=(_0x84819e,_0x116b02,_0xf3d972)=>_0x116b02 in _0x84819e?Ge(_0x84819e,_0x116b02,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf3d972}):_0x84819e[_0x116b02]=_0xf3d972,Be=(_0x5c772f,_0x4ab359,_0x5bfe46,_0xb6edb6)=>{var _0xe5dd9c=_0x31198e;for(var _0x3601bb=_0xb6edb6>0x1?void 0x0:_0xb6edb6?We(_0x4ab359,_0x5bfe46):_0x4ab359,_0x124836=_0x5c772f[_0xe5dd9c(0x175)]-0x1,_0x3b7604;_0x124836>=0x0;_0x124836--)(_0x3b7604=_0x5c772f[_0x124836])&&(_0x3601bb=_0x3b7604(_0x3601bb)||_0x3601bb);return _0x3601bb;},F=(_0x391319,_0x395c9e)=>(_0x224f67,_0x56d130)=>_0x395c9e(_0x224f67,_0x56d130,_0x391319),J=(_0x4b365e,_0x18f896,_0x87715f)=>Ye(_0x4b365e,typeof _0x18f896!=_0x31198e(0x1d3)?_0x18f896+'':_0x18f896,_0x87715f);const Ze=_0x31198e(0x1dd);let O=class extends _0x95d93e{constructor(_0x13202f=T,_0x2aeddd,_0xa5c3f1){var _0xd97a1c=_0x31198e;super(),this['_config']=_0x13202f,this[_0xd97a1c(0x147)]=_0x2aeddd,this['_configService']=_0xa5c3f1;const {..._0x5b1104}=_0x46d38b({},T,this['_config']);this[_0xd97a1c(0x1be)][_0xd97a1c(0x182)](Oe,_0x5b1104);}[_0x31198e(0x197)](){var _0x36e2d8=_0x31198e;_0x352343(this[_0x36e2d8(0x147)],_0x5ee3d2([[L],[I],[m],[b]],this[_0x36e2d8(0x17a)][_0x36e2d8(0x1dc)])),_0x3f2e03(this[_0x36e2d8(0x147)],[[m]]);}[_0x31198e(0x1b1)](){_0x3f2e03(this['_injector'],[[b]]);}};J(O,_0x31198e(0x1a3),_0x384d9f[_0x31198e(0x1d9)]),J(O,_0x31198e(0x149),Ze),O=Be([_0x5e6bbe(_0x40f314),F(0x1,_0x44183f(_0x59ff7b)),F(0x2,_0x5ad91b)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x413fd2=_0x2cc9;(function(_0x5b4813,_0xdc679c){var _0xc3d28f=_0x2cc9,_0x1c49be=_0x5b4813();while(!![]){try{var _0xc6cafd=parseInt(_0xc3d28f(0x241))/0x1*(parseInt(_0xc3d28f(0x1fb))/0x2)+parseInt(_0xc3d28f(0x201))/0x3*(parseInt(_0xc3d28f(0x1f2))/0x4)+-parseInt(_0xc3d28f(0x238))/0x5+parseInt(_0xc3d28f(0x25f))/0x6+-parseInt(_0xc3d28f(0x221))/0x7*(parseInt(_0xc3d28f(0x1e3))/0x8)+-parseInt(_0xc3d28f(0x1ed))/0x9+parseInt(_0xc3d28f(0x24c))/0xa;if(_0xc6cafd===_0xdc679c)break;else _0x1c49be['push'](_0x1c49be['shift']());}catch(_0x433505){_0x1c49be['push'](_0x1c49be['shift']());}}}(_0x26a2,0x6caa2));var q=Object[_0x413fd2(0x214)],z=(_0x52bfb2,_0x2d694d,_0x2df6f9)=>_0x2d694d in _0x52bfb2?q(_0x52bfb2,_0x2d694d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2df6f9}):_0x52bfb2[_0x2d694d]=_0x2df6f9,d=(_0x79e68c,_0x16f429,_0x257822)=>z(_0x79e68c,typeof _0x16f429!=_0x413fd2(0x20c)?_0x16f429+'':_0x16f429,_0x257822);import{CollaborationSessionService as _0x4bea65,SessionStatus as _0x28cf64,UniverCollaborationClientPlugin as _0x40879e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2d602a,toDisposable as _0x235983,Inject as _0x287324,IUniverInstanceService as _0x563054,Injector as _0x189459,IConfigService as _0x4addda,ICommandService as _0x4a5bf9,RxDisposable as _0x1b7a96,UniverInstanceType as _0x2369f2,DisposableCollection as _0x52dca9,CommandType as _0x1caa0b,DependentOn as _0x39d809,Plugin as _0x54894e,merge as _0x563c15,registerDependencies as _0x4b1d24,mergeOverrideWithDependencies as _0x38959d,touchDependencies as _0x4a7c72}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x587c83,InsertSheetMutation as _0x5d7e73}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x944e99,SetScrollOperation as _0x460232}from'@univerjs/sheets-ui';import{useDependency as _0x8c2502,useObservable as _0x54b49a,IUIPartsService as _0x2136ab,BuiltInUIPart as _0x120083,connectInjector as _0x38f68b}from'@univerjs/ui';import{jsx as _0x5b6f43,jsxs as _0x33eaea,Fragment as _0x5e9b05}from'react/jsx-runtime';import{Dropdown as _0x5da7d2,clsx as _0x4a52f6,Button as _0x4ec768}from'@univerjs/design';import{forwardRef as _0x5117a0,useRef as _0x56788e,createElement as _0x4101b7,useState as _0x393f14,useEffect as _0x569005}from'react';import{CollaborationEvent as _0x15f78f,parseProtocolChangeset as _0x525527}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x51ed42,Subject as _0x391242}from'rxjs';import{takeUntil as _0x960196,throttleTime as _0x3ef22c}from'rxjs/operators';const Oe=_0x413fd2(0x211),T={};class L extends _0x2d602a{constructor(){var _0x1631f5=_0x413fd2;super(...arguments),d(this,_0x1631f5(0x215),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x5be7aa){var _0x1e5040=_0x413fd2;return this['_sharedOperations'][_0x1e5040(0x1e6)](_0x5be7aa),_0x235983(()=>this[_0x1e5040(0x215)]['delete'](_0x5be7aa));}[_0x413fd2(0x244)](_0x1fd8f2){var _0x6b6945=_0x413fd2;return this[_0x6b6945(0x22e)]['add'](_0x1fd8f2),_0x235983(()=>this[_0x6b6945(0x22e)][_0x6b6945(0x21e)](_0x1fd8f2));}[_0x413fd2(0x23f)](_0x3e7832){var _0x1b79c7=_0x413fd2;return this['_sharedOperations'][_0x1b79c7(0x1d8)](_0x3e7832);}[_0x413fd2(0x245)](_0x439230){var _0x305883=_0x413fd2;return Array[_0x305883(0x212)](this[_0x305883(0x22e)])[_0x305883(0x263)](_0x1098aa=>_0x1098aa(_0x439230));}}var Ee=Object[_0x413fd2(0x252)],we=(_0x385e09,_0x2421dc,_0x5a0143,_0xd1c918)=>{var _0x37f6e3=_0x413fd2;for(var _0x139546=_0xd1c918>0x1?void 0x0:_0xd1c918?Ee(_0x2421dc,_0x5a0143):_0x2421dc,_0x568031=_0x385e09[_0x37f6e3(0x276)]-0x1,_0x56131f;_0x568031>=0x0;_0x568031--)(_0x56131f=_0x385e09[_0x568031])&&(_0x139546=_0x56131f(_0x139546)||_0x139546);return _0x139546;},Ne=(_0x57fa0e,_0xecd224)=>(_0x36ec41,_0x2a11c1)=>_0xecd224(_0x36ec41,_0x2a11c1,_0x57fa0e);function _0x26a2(){var _0x3514ee=['getValue','_stopPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','set','shouldShareOperation','getOwnPropertySymbols','241myPXcp','onStarting','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerInitialStateReporter','getInitialStates','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','startFollowing','forEach','current','substring','8695750RNtGJL','status$','NOT_FOLLOWING','icon','presenting','div','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','override','1em','FOLLOWING','apply','find','stopFollowing','end','_handleOperation','get','default','getLiveShareCoordinator','207966mruTWl','NEW_CHANGESETS','propertyIsEnumerable','_commandService','map','onRendered','sessionStatus$','fill','_status','children','setConfig','stringify','dispose','_stopFollowing','PRESENTING','string','dispose$','operations','displayName','random','svg','getMemberID','executeCommand','length','hasOwnProperty','xlink:href','asObservable','You\x27re\x20following\x20the\x20presenter','prototype','_status$','pipe','parse','Start','_handleTerminate','OFFLINE','evenodd','_handleNewHost','tryStartPresenting','replace','_handleNewChangeSets','presenter','_univerInstanceService','UNIVER_LIVE_SHARE_PLUGIN','getConfig','has','_liveShareService','live-share-icon','registerSharedOperation','getTypeOfUnitAdded$','entries','attrs','LiveShareIcon','clear','init','currentColor','8prJpmI','following','0\x200\x2017\x2017','add','type','_entities','subscribe','not-following','reverse','univer-size-4','3094704DSgROK','OPERATION','send','LIVESHARE_OPERATION','includes','8WlpMlr','unsubscribe','UniverIcon','idSuffix','_injector','indexOf','assign','_fetchOperations','toString','1116LzzebI','You\x27re\x20presenting\x20the\x20document','memberID','_beIdle','colorChannel1','_init','6057bMMERj','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','defs','extend','next','params','_collabSession','LIVESHARE_REQUEST_HOST','_collabSessionService','_handleOnline','concat','symbol','mask','_startFollowing','disposeWithMe','Stop\x20following','live-share.config','from','button','defineProperty','_sharedOperations','path','Stop\x20presenting','defIds','LIVESHARE_NEW_HOST','pluginName','IDLE','_config','_configService','delete','getTypeOfUnitDisposed$','getUnitId','1029854tYwjsI','data','UNIVER_SHEET','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','_presenter','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','LIVESHARE_TERMINATE','onCommandExecuted','_unitID','requireSession','complete','You\x27are\x20offline.','UNIVER_UNKNOWN','_reporters','LIVESHARE_FETCH_OPERATIONS','tag','call','_commandDisposable','_uiPartsService','_startPresenting','trim','offline','_mountLiveShare','533420nBqltQ','registerComponent','idle'];_0x26a2=function(){return _0x3514ee;};return _0x26a2();}let m=class extends _0x2d602a{constructor(_0x5dbebf){var _0x3d9b84=_0x413fd2;super(),this[_0x3d9b84(0x1d9)]=_0x5dbebf,this[_0x3d9b84(0x200)]();}[_0x413fd2(0x200)](){var _0x1871a6=_0x413fd2;[_0x944e99['id'],_0x460232['id'],_0x587c83['id']][_0x1871a6(0x249)](_0x319583=>{var _0x254fda=_0x1871a6;this[_0x254fda(0x20f)](this[_0x254fda(0x1d9)][_0x254fda(0x1db)](_0x319583));});}};m=we([Ne(0x0,_0x287324(L))],m);var c=function(){var _0x19a2e2=_0x413fd2;return c=Object['assign']||function(_0x307f8f){var _0x2e33c9=_0x2cc9;for(var _0x465f70,_0x4cf198=0x1,_0x101135=arguments[_0x2e33c9(0x276)];_0x4cf198<_0x101135;_0x4cf198++){_0x465f70=arguments[_0x4cf198];for(var _0x271c49 in _0x465f70)Object[_0x2e33c9(0x27b)][_0x2e33c9(0x277)][_0x2e33c9(0x231)](_0x465f70,_0x271c49)&&(_0x307f8f[_0x271c49]=_0x465f70[_0x271c49]);}return _0x307f8f;},c[_0x19a2e2(0x257)](this,arguments);},Ce=function(_0x30934e,_0x314508){var _0x5466ff=_0x413fd2,_0x5b2ab6={};for(var _0x1711c5 in _0x30934e)Object[_0x5466ff(0x27b)]['hasOwnProperty']['call'](_0x30934e,_0x1711c5)&&_0x314508[_0x5466ff(0x1f7)](_0x1711c5)<0x0&&(_0x5b2ab6[_0x1711c5]=_0x30934e[_0x1711c5]);if(_0x30934e!=null&&typeof Object[_0x5466ff(0x240)]=='function'){for(var _0x5e1eac=0x0,_0x1711c5=Object[_0x5466ff(0x240)](_0x30934e);_0x5e1eac<_0x1711c5[_0x5466ff(0x276)];_0x5e1eac++)_0x314508[_0x5466ff(0x1f7)](_0x1711c5[_0x5e1eac])<0x0&&Object['prototype'][_0x5466ff(0x261)][_0x5466ff(0x231)](_0x30934e,_0x1711c5[_0x5e1eac])&&(_0x5b2ab6[_0x1711c5[_0x5e1eac]]=_0x30934e[_0x1711c5[_0x5e1eac]]);}return _0x5b2ab6;},W=_0x5117a0(function(_0x25da1b,_0x596937){var _0x47e06b=_0x413fd2,_0x620019=_0x25da1b[_0x47e06b(0x24f)],_0x922d47=_0x25da1b['id'],_0x57a0c8=_0x25da1b['className'],_0x5be5fa=_0x25da1b[_0x47e06b(0x204)],_0x273387=Ce(_0x25da1b,[_0x47e06b(0x24f),'id','className','extend']),_0x1ef570='univerjs-icon\x20univerjs-icon-'['concat'](_0x922d47,'\x20')[_0x47e06b(0x20b)](_0x57a0c8||'')[_0x47e06b(0x235)](),_0x483c6b=_0x56788e('_'[_0x47e06b(0x20b)](Le()));return Y(_0x620019,''[_0x47e06b(0x20b)](_0x922d47),{'defIds':_0x620019[_0x47e06b(0x218)],'idSuffix':_0x483c6b[_0x47e06b(0x24a)]},c({'ref':_0x596937,'className':_0x1ef570},_0x273387),_0x5be5fa);});function Y(_0x4719ee,_0x1bf035,_0x579a86,_0x3835ed,_0x537304){var _0x433031=_0x413fd2;return _0x4101b7(_0x4719ee[_0x433031(0x230)],c(c({'key':_0x1bf035},De(_0x4719ee,_0x579a86,_0x537304)),_0x3835ed),(xe(_0x4719ee,_0x579a86)[_0x433031(0x268)]||[])[_0x433031(0x263)](function(_0x1fbf8d,_0x3ed443){var _0x4bcaa9=_0x433031;return Y(_0x1fbf8d,''['concat'](_0x1bf035,'-')[_0x4bcaa9(0x20b)](_0x4719ee[_0x4bcaa9(0x230)],'-')[_0x4bcaa9(0x20b)](_0x3ed443),_0x579a86,void 0x0,_0x537304);}));}function De(_0x2416b4,_0x13ab0a,_0x174f65){var _0x474a79=_0x413fd2,_0x23c633=c({},_0x2416b4[_0x474a79(0x1de)]);_0x174f65!=null&&_0x174f65[_0x474a79(0x1ff)]&&_0x23c633[_0x474a79(0x266)]==='colorChannel1'&&(_0x23c633[_0x474a79(0x266)]=_0x174f65[_0x474a79(0x1ff)]),_0x2416b4[_0x474a79(0x230)]==='mask'&&_0x23c633['id']&&(_0x23c633['id']=_0x23c633['id']+_0x13ab0a['idSuffix']),Object[_0x474a79(0x1dd)](_0x23c633)[_0x474a79(0x249)](function(_0x4785bc){var _0x432e6b=_0x474a79,_0x8e51e1=_0x4785bc[0x0],_0x1bc298=_0x4785bc[0x1];_0x8e51e1===_0x432e6b(0x20d)&&typeof _0x1bc298=='string'&&(_0x23c633[_0x8e51e1]=_0x1bc298['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x13ab0a['idSuffix'],')')));});var _0x5a3eb7=_0x13ab0a[_0x474a79(0x218)];return!_0x5a3eb7||_0x5a3eb7['length']===0x0||(_0x2416b4[_0x474a79(0x230)]==='use'&&_0x23c633[_0x474a79(0x278)]&&(_0x23c633[_0x474a79(0x278)]=_0x23c633['xlink:href']+_0x13ab0a[_0x474a79(0x1f5)]),Object[_0x474a79(0x1dd)](_0x23c633)[_0x474a79(0x249)](function(_0x501088){var _0x252752=_0x474a79,_0x43e30f=_0x501088[0x0],_0x2e36cb=_0x501088[0x1];typeof _0x2e36cb==_0x252752(0x26e)&&(_0x23c633[_0x43e30f]=_0x2e36cb[_0x252752(0x1d2)](/url\(#(.*)\)/,'url(#$1'[_0x252752(0x20b)](_0x13ab0a[_0x252752(0x1f5)],')')));})),_0x23c633;}function xe(_0x26583f,_0x59a209){var _0x389b5d=_0x413fd2,_0xba1686,_0x23586f=_0x59a209[_0x389b5d(0x218)];return!_0x23586f||_0x23586f[_0x389b5d(0x276)]===0x0?_0x26583f:_0x26583f[_0x389b5d(0x230)]===_0x389b5d(0x203)&&(!((_0xba1686=_0x26583f['children'])===null||_0xba1686===void 0x0)&&_0xba1686['length'])?c(c({},_0x26583f),{'children':_0x26583f[_0x389b5d(0x268)][_0x389b5d(0x263)](function(_0x56e8fe){var _0x1c4889=_0x389b5d;return typeof _0x56e8fe['attrs']['id']=='string'&&_0x23586f&&_0x23586f['includes'](_0x56e8fe[_0x1c4889(0x1de)]['id'])?c(c({},_0x56e8fe),{'attrs':c(c({},_0x56e8fe[_0x1c4889(0x1de)]),{'id':_0x56e8fe[_0x1c4889(0x1de)]['id']+_0x59a209['idSuffix']})}):_0x56e8fe;})}):_0x26583f;}function Le(){var _0x1227eb=_0x413fd2;return Math[_0x1227eb(0x272)]()[_0x1227eb(0x1fa)](0x24)[_0x1227eb(0x24b)](0x2,0x8);}W[_0x413fd2(0x271)]=_0x413fd2(0x1f4);function _0x2cc9(_0x539e60,_0x1a7bfb){var _0x26a2ed=_0x26a2();return _0x2cc9=function(_0x2cc9af,_0x1e39ff){_0x2cc9af=_0x2cc9af-0x1c9;var _0x530312=_0x26a2ed[_0x2cc9af];return _0x530312;},_0x2cc9(_0x539e60,_0x1a7bfb);}var ye={'tag':_0x413fd2(0x273),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x413fd2(0x1e5),'width':_0x413fd2(0x255),'height':_0x413fd2(0x255)},'children':[{'tag':_0x413fd2(0x216),'attrs':{'fill':_0x413fd2(0x1e2),'d':_0x413fd2(0x226)}},{'tag':_0x413fd2(0x216),'attrs':{'fill':'currentColor','d':_0x413fd2(0x224),'fillRule':_0x413fd2(0x1cf),'clipRule':'evenodd'}}]},B=_0x5117a0(function(_0x21daca,_0x21a51c){var _0x29ad47=_0x413fd2;return _0x4101b7(W,Object[_0x29ad47(0x1f8)]({},_0x21daca,{'id':_0x29ad47(0x1da),'ref':_0x21a51c,'icon':ye}));});B[_0x413fd2(0x271)]=_0x413fd2(0x1df);var Re=Object[_0x413fd2(0x252)],Z=(_0x5406ef,_0x2457f6,_0x5244c7,_0x3a9a87)=>{for(var _0x427baa=_0x3a9a87>0x1?void 0x0:_0x3a9a87?Re(_0x2457f6,_0x5244c7):_0x2457f6,_0x151c4d=_0x5406ef['length']-0x1,_0x5095d9;_0x151c4d>=0x0;_0x151c4d--)(_0x5095d9=_0x5406ef[_0x151c4d])&&(_0x427baa=_0x5095d9(_0x427baa)||_0x427baa);return _0x427baa;},f=(_0x5a2ada,_0x21e124)=>(_0x208add,_0x198533)=>_0x21e124(_0x208add,_0x198533,_0x5a2ada);let I=class extends _0x1b7a96{constructor(_0x2d9388,_0xdfa898,_0x5305eb){var _0x304786=_0x413fd2;super(),d(this,_0x304786(0x1e8),new Map()),(this['_univerInstanceService']=_0x2d9388,this[_0x304786(0x1f6)]=_0xdfa898,this[_0x304786(0x209)]=_0x5305eb,this[_0x304786(0x200)]());}async[_0x413fd2(0x25e)](_0x4e18d1){var _0x514382=_0x413fd2;return this[_0x514382(0x1e8)][_0x514382(0x1d8)](_0x4e18d1)||await this[_0x514382(0x246)](_0x4e18d1),this[_0x514382(0x1e8)][_0x514382(0x25c)](_0x4e18d1);}[_0x413fd2(0x200)](){var _0x4d8e6a=_0x413fd2;this['_univerInstanceService'][_0x4d8e6a(0x1dc)](_0x2369f2[_0x4d8e6a(0x223)])[_0x4d8e6a(0x1ca)](_0x960196(this[_0x4d8e6a(0x26f)]))[_0x4d8e6a(0x1e9)](async _0x5e2f8c=>{var _0xcff37e=_0x4d8e6a;const _0x109c6a=_0x5e2f8c['getUnitId']();this[_0xcff37e(0x1e8)][_0xcff37e(0x1d8)](_0x109c6a)||this[_0xcff37e(0x246)](_0x109c6a);}),this[_0x4d8e6a(0x1d5)][_0x4d8e6a(0x21f)](_0x2369f2[_0x4d8e6a(0x223)])[_0x4d8e6a(0x1ca)](_0x960196(this[_0x4d8e6a(0x26f)]))['subscribe'](_0x455143=>{var _0x10998d=_0x4d8e6a;const _0x1d7c4c=_0x455143[_0x10998d(0x220)](),_0x1201f2=this['_entities'][_0x10998d(0x25c)](_0x1d7c4c);_0x1201f2==null||_0x1201f2[_0x10998d(0x26b)]();});}async[_0x413fd2(0x246)](_0x4de9f1){var _0x102c77=_0x413fd2;const _0x5ae7bb=await this['_collabSessionService'][_0x102c77(0x22a)](_0x4de9f1),_0x58677d=this[_0x102c77(0x1f6)]['createInstance'](C,_0x4de9f1,_0x5ae7bb);return _0x58677d['init'](),this[_0x102c77(0x1e8)][_0x102c77(0x23e)](_0x4de9f1,_0x58677d),_0x58677d;}};I=Z([f(0x0,_0x563054),f(0x1,_0x287324(_0x189459)),f(0x2,_0x287324(_0x4bea65))],I);var h=(_0xec50d8=>(_0xec50d8[_0x413fd2(0x1ce)]='offline',_0xec50d8[_0x413fd2(0x21b)]=_0x413fd2(0x23a),_0xec50d8[_0x413fd2(0x256)]=_0x413fd2(0x1e4),_0xec50d8[_0x413fd2(0x24e)]=_0x413fd2(0x1ea),_0xec50d8['PRESENTING']=_0x413fd2(0x250),_0xec50d8))(h||{});const Pe=_0x413fd2(0x247),Ae=0xc8;let C=class extends _0x1b7a96{constructor(_0x1ed95b,_0x3d77fa,_0x2194ad,_0x68664b,_0x166285){var _0x56b9a9=_0x413fd2;super(),d(this,_0x56b9a9(0x1c9),new _0x51ed42('idle')),d(this,'status$',this['_status$'][_0x56b9a9(0x279)]()),d(this,'_init',!0x1),d(this,_0x56b9a9(0x232),null),d(this,_0x56b9a9(0x225),null),(this[_0x56b9a9(0x229)]=_0x1ed95b,this[_0x56b9a9(0x207)]=_0x3d77fa,this['_configService']=_0x2194ad,this[_0x56b9a9(0x1d9)]=_0x68664b,this['_commandService']=_0x166285);}get[_0x413fd2(0x267)](){var _0x12840a=_0x413fd2;return this['_status$'][_0x12840a(0x23b)]();}[_0x413fd2(0x26b)](){var _0x426688=_0x413fd2,_0x3f6066;(_0x3f6066=this[_0x426688(0x232)])==null||_0x3f6066[_0x426688(0x26b)](),this['_status$']['next'](_0x426688(0x23a)),this['_status$']['complete']();}[_0x413fd2(0x1e1)](){var _0x39df04=_0x413fd2;this[_0x39df04(0x200)]||(this['_init']=!0x0,this[_0x39df04(0x207)][_0x39df04(0x265)][_0x39df04(0x1ca)](_0x960196(this[_0x39df04(0x26f)]))['subscribe'](_0x4618a4=>{var _0x58b285=_0x39df04;switch(_0x4618a4){case _0x28cf64[_0x58b285(0x1ce)]:this['_handleOffline']();break;case _0x28cf64['ONLINE']:this[_0x58b285(0x20a)]();break;}}),this['_collabSession']['event$'][_0x39df04(0x1ca)](_0x960196(this[_0x39df04(0x26f)]))[_0x39df04(0x1e9)](_0x23358d=>{var _0x418dff=_0x39df04;const {eventID:_0x451d84}=_0x23358d;switch(_0x451d84){case _0x15f78f[_0x418dff(0x219)]:this[_0x418dff(0x1d0)](_0x23358d);break;case _0x15f78f[_0x418dff(0x1f0)]:this[_0x418dff(0x25b)](_0x23358d);break;case _0x15f78f[_0x418dff(0x227)]:this[_0x418dff(0x1cd)]();break;case _0x15f78f[_0x418dff(0x260)]:this[_0x418dff(0x1d3)](_0x23358d);break;}}));}[_0x413fd2(0x1d1)](){var _0x536a1b=_0x413fd2;this[_0x536a1b(0x207)][_0x536a1b(0x1ef)]({'eventID':_0x15f78f[_0x536a1b(0x208)],'data':{'unitID':this['_unitID'],'userID':this[_0x536a1b(0x207)][_0x536a1b(0x274)]()}},this[_0x536a1b(0x229)]);}['stopPresenting'](){var _0x40502a=_0x413fd2;this['_status']==='presenting'&&(this['_status$'][_0x40502a(0x205)](_0x40502a(0x23a)),this[_0x40502a(0x207)]['send']({'eventID':_0x15f78f[_0x40502a(0x227)],'data':{'unitID':this[_0x40502a(0x229)]}},this[_0x40502a(0x229)]));}[_0x413fd2(0x248)](){var _0x3306ab=_0x413fd2;this[_0x3306ab(0x267)]===_0x3306ab(0x1ea)&&(this['_status$'][_0x3306ab(0x205)]('following'),this[_0x3306ab(0x20e)]());}[_0x413fd2(0x259)](){var _0x30f5f8=_0x413fd2;this[_0x30f5f8(0x267)]==='following'&&this[_0x30f5f8(0x26c)]();}[_0x413fd2(0x1d0)](_0x1ca1c6){var _0x15d0c8=_0x413fd2;const {presenter:_0x32cad7}=_0x1ca1c6[_0x15d0c8(0x222)],_0x1d1a84=this['_collabSession'][_0x15d0c8(0x274)]();this[_0x15d0c8(0x225)]=_0x32cad7,_0x32cad7===_0x1d1a84?(this[_0x15d0c8(0x26c)](),this[_0x15d0c8(0x234)]()):this[_0x15d0c8(0x267)]!=='not-following'&&(this[_0x15d0c8(0x23c)](),this[_0x15d0c8(0x20e)]());}[_0x413fd2(0x1f9)](){var _0x4767df=_0x413fd2;const _0x3485d8={'eventID':_0x15f78f[_0x4767df(0x22f)]};this[_0x4767df(0x207)][_0x4767df(0x1ef)](_0x3485d8,this[_0x4767df(0x229)]);}[_0x413fd2(0x1cd)](){var _0x51675c=_0x413fd2;this[_0x51675c(0x225)]=null,this[_0x51675c(0x267)]!==_0x51675c(0x250)&&this[_0x51675c(0x1fe)]();}[_0x413fd2(0x1d3)](_0x5b1372){var _0x7cd90=_0x413fd2;if(this[_0x7cd90(0x267)]===_0x7cd90(0x1e4)&&this[_0x7cd90(0x225)]===_0x5b1372[_0x7cd90(0x222)][_0x7cd90(0x1fd)]){const _0x7d9516=_0x525527(_0x5b1372['data'])['mutations'][_0x7cd90(0x1eb)]()[_0x7cd90(0x258)](_0x5d0c1b=>_0x5d0c1b['id']===_0x5d7e73['id']);if(_0x7d9516){const _0x560694=_0x7d9516[_0x7cd90(0x206)]['unitId'],_0x266d75=_0x7d9516[_0x7cd90(0x206)]['sheet']['id'];setTimeout(()=>{var _0x5b498f=_0x7cd90;this['_commandService'][_0x5b498f(0x275)](_0x587c83['id'],{'unitId':_0x560694,'subUnitId':_0x266d75},{'fromCollab':!0x0});});}}}[_0x413fd2(0x234)](){var _0x3d6e3d=_0x413fd2;this[_0x3d6e3d(0x1c9)][_0x3d6e3d(0x205)]('presenting');const _0x26afef=new Map(),_0x3ed48d=this[_0x3d6e3d(0x232)]=new _0x52dca9();_0x3ed48d[_0x3d6e3d(0x1e6)](_0x235983(()=>{var _0x36f5f7=_0x3d6e3d;_0x26afef[_0x36f5f7(0x249)](_0x188d59=>_0x188d59[_0x36f5f7(0x22b)]()),_0x26afef[_0x36f5f7(0x1e0)]();})),_0x3ed48d[_0x3d6e3d(0x1e6)](this[_0x3d6e3d(0x262)][_0x3d6e3d(0x228)](_0x26326e=>{var _0x2b26e1=_0x3d6e3d,_0xab8531;if(_0x26326e['type']!==_0x1caa0b[_0x2b26e1(0x1ee)]||!this[_0x2b26e1(0x1d9)]['shouldShareOperation'](_0x26326e['id']))return;const {id:_0x1a72ec}=_0x26326e;let _0x3044a2;_0x26afef['has'](_0x1a72ec)?_0x3044a2=_0x26afef[_0x2b26e1(0x25c)](_0x1a72ec):(_0x3044a2=new _0x391242(),_0x26afef[_0x2b26e1(0x23e)](_0x1a72ec,_0x3044a2),_0x3044a2[_0x2b26e1(0x1ca)](_0x3ef22c((_0xab8531=this['_configService'][_0x2b26e1(0x1d7)](Pe))!=null?_0xab8531:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2b26e1(0x1e9)](_0x1c6459=>{var _0x51da18=_0x2b26e1;this[_0x51da18(0x207)][_0x51da18(0x1ef)]({'eventID':_0x15f78f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x51da18(0x229)],'operations':{[_0x1c6459['id']]:{'id':_0x1c6459['id'],'params':JSON[_0x51da18(0x26a)](_0x1c6459[_0x51da18(0x206)])}}}},this[_0x51da18(0x229)]);})),_0x3044a2[_0x2b26e1(0x205)](_0x26326e);})),this[_0x3d6e3d(0x1d9)][_0x3d6e3d(0x245)](this['_unitID'])[_0x3d6e3d(0x249)](_0x178ced=>this[_0x3d6e3d(0x207)]['send']({'eventID':_0x15f78f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3d6e3d(0x229)],'operations':{[_0x178ced['id']]:{'id':_0x178ced['id'],'params':JSON[_0x3d6e3d(0x26a)](_0x178ced[_0x3d6e3d(0x206)])}}}},this[_0x3d6e3d(0x229)]));}[_0x413fd2(0x23c)](){var _0x51651c=_0x413fd2,_0x2368c2;this['_status$'][_0x51651c(0x205)]('idle'),(_0x2368c2=this['_commandDisposable'])==null||_0x2368c2[_0x51651c(0x26b)](),this[_0x51651c(0x232)]=null;}[_0x413fd2(0x20e)](){var _0x219555=_0x413fd2,_0x2ae663;(_0x2ae663=this[_0x219555(0x232)])==null||_0x2ae663[_0x219555(0x26b)](),this['_status$'][_0x219555(0x205)](_0x219555(0x1e4));}['_beIdle'](){var _0x2904e7=_0x413fd2,_0x3e819b;this['_status$']['next'](_0x2904e7(0x23a)),(_0x3e819b=this[_0x2904e7(0x232)])==null||_0x3e819b[_0x2904e7(0x26b)](),this[_0x2904e7(0x232)]=null;}[_0x413fd2(0x26c)](){var _0x24abab=_0x413fd2,_0x12b6d9;this[_0x24abab(0x1c9)][_0x24abab(0x205)]('not-following'),(_0x12b6d9=this[_0x24abab(0x232)])==null||_0x12b6d9['dispose']();}['_handleOperation'](_0x3c6e84){var _0x1ccadf=_0x413fd2;if([_0x1ccadf(0x250),_0x1ccadf(0x1ea),_0x1ccadf(0x236)][_0x1ccadf(0x1f1)](this['_status'])||!_0x3c6e84['data'][_0x1ccadf(0x1d4)]||_0x3c6e84[_0x1ccadf(0x222)]['presenter']===this['_collabSession'][_0x1ccadf(0x274)]())return;this[_0x1ccadf(0x267)]===_0x1ccadf(0x23a)&&this['_startFollowing']();const _0x1a832d=_0x3c6e84[_0x1ccadf(0x222)][_0x1ccadf(0x270)];Object['values'](_0x1a832d)[_0x1ccadf(0x249)](_0x1e4672=>{var _0x3c2d18=_0x1ccadf;this[_0x3c2d18(0x262)][_0x3c2d18(0x275)](_0x1e4672['id'],_0x1e4672['params']?JSON[_0x3c2d18(0x1cb)](_0x1e4672[_0x3c2d18(0x206)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x48c54e=_0x413fd2,_0x32d5e4;this[_0x48c54e(0x1c9)][_0x48c54e(0x205)](_0x48c54e(0x236)),(_0x32d5e4=this[_0x48c54e(0x232)])==null||_0x32d5e4[_0x48c54e(0x26b)]();}[_0x413fd2(0x20a)](){var _0x2225e7=_0x413fd2;this[_0x2225e7(0x1c9)][_0x2225e7(0x205)](_0x2225e7(0x23a)),this[_0x2225e7(0x1f9)]();}};C=Z([f(0x2,_0x4addda),f(0x3,_0x287324(L)),f(0x4,_0x4a5bf9)],C);function Te(){var _0x3031c9=_0x413fd2;const _0x1cd765=_0x8c2502(I),_0x471c37=_0x8c2502(_0x563054),_0x4dbe8e=_0x54b49a(()=>_0x471c37['getCurrentTypeOfUnit$'](_0x2369f2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3bf703,_0x16f0fe]=_0x393f14(null),[_0x578e20,_0x3e89c3]=_0x393f14(h['IDLE']),_0x1dac74=_0x56788e(null);return _0x569005(()=>(_0x4dbe8e&&_0x1cd765['getLiveShareCoordinator'](_0x4dbe8e[_0x3031c9(0x220)]())['then'](_0x3f717d=>{var _0xcd2ad=_0x3031c9;_0x16f0fe(_0x3f717d),_0x1dac74[_0xcd2ad(0x24a)]=_0x3f717d[_0xcd2ad(0x24d)][_0xcd2ad(0x1e9)](_0x1859eb=>{_0x3e89c3(_0x1859eb);});}),()=>{var _0x1fae40=_0x3031c9,_0x5c5752;(_0x5c5752=_0x1dac74[_0x1fae40(0x24a)])==null||_0x5c5752[_0x1fae40(0x1f3)](),_0x1dac74[_0x1fae40(0x24a)]=null;}),[_0x4dbe8e,_0x1cd765]),_0x3bf703?_0x5b6f43(_0x5da7d2,{'align':_0x3031c9(0x25a),'disabled':_0x578e20===h[_0x3031c9(0x1ce)],'className':_0x3031c9(0x202),'overlay':_0x5b6f43($e,{'status':_0x578e20,'coordinator':_0x3bf703}),'children':_0x5b6f43(_0x3031c9(0x213),{'className':_0x4a52f6(_0x3031c9(0x23d),{'univer-cursor-not-allowed':_0x578e20===h[_0x3031c9(0x1ce)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x578e20!==h[_0x3031c9(0x1ce)]}),'type':_0x3031c9(0x213),'children':_0x5b6f43(B,{'className':_0x3031c9(0x1ec)})})}):null;}function $e(_0x3d1b35){var _0x35243e=_0x413fd2;const {status:_0x2b8910,coordinator:_0x1420f9}=_0x3d1b35;switch(_0x2b8910){case h['IDLE']:return _0x5b6f43(Fe,{'coordinator':_0x1420f9});case h[_0x35243e(0x256)]:return _0x5b6f43(He,{'coordinator':_0x1420f9});case h[_0x35243e(0x24e)]:return _0x5b6f43(je,{'coordinator':_0x1420f9});case h['OFFLINE']:return _0x5b6f43(Ve,{});case h[_0x35243e(0x26d)]:return _0x5b6f43(Ue,{'coordinator':_0x1420f9});default:return null;}}function Fe(_0x3be60c){var _0x58c388=_0x413fd2;const {coordinator:_0x3be33}=_0x3be60c;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x58c388(0x251),{'className':_0x58c388(0x243),'children':'Present\x20this\x20document'}),_0x5b6f43(_0x4ec768,{'onClick':()=>_0x3be33['tryStartPresenting'](),'children':_0x58c388(0x1cc)})]});}function He(_0x1faf9c){var _0x489da9=_0x413fd2;const {coordinator:_0x3bb2a6}=_0x1faf9c;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x489da9(0x251),{'className':_0x489da9(0x243),'children':_0x489da9(0x27a)}),_0x5b6f43(_0x4ec768,{'onClick':()=>_0x3bb2a6[_0x489da9(0x259)](),'children':_0x489da9(0x210)})]});}function je(_0x33c34f){var _0x55921f=_0x413fd2;const {coordinator:_0x46d324}=_0x33c34f;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x55921f(0x251),{'className':_0x55921f(0x243),'children':_0x55921f(0x253)}),_0x5b6f43(_0x4ec768,{'variant':'text','onClick':()=>_0x46d324[_0x55921f(0x248)](),'children':'Start\x20following'})]});}function Ue(_0x43327e){var _0x11c407=_0x413fd2;const {coordinator:_0x500267}=_0x43327e;return _0x33eaea(_0x5e9b05,{'children':[_0x5b6f43(_0x11c407(0x251),{'className':_0x11c407(0x243),'children':_0x11c407(0x1fc)}),_0x5b6f43(_0x4ec768,{'variant':_0x11c407(0x25d),'onClick':()=>_0x500267['stopPresenting'](),'children':_0x11c407(0x217)})]});}function Ve(){var _0x47c3ce=_0x413fd2;return _0x5b6f43(_0x5e9b05,{'children':_0x47c3ce(0x22c)});}var Me=Object[_0x413fd2(0x252)],ke=(_0x20f3ee,_0x397115,_0x130fb8,_0x552d8a)=>{var _0x4dc284=_0x413fd2;for(var _0x426d7a=_0x552d8a>0x1?void 0x0:_0x552d8a?Me(_0x397115,_0x130fb8):_0x397115,_0x4b9728=_0x20f3ee[_0x4dc284(0x276)]-0x1,_0x233e6f;_0x4b9728>=0x0;_0x4b9728--)(_0x233e6f=_0x20f3ee[_0x4b9728])&&(_0x426d7a=_0x233e6f(_0x426d7a)||_0x426d7a);return _0x426d7a;},$=(_0x5aefe4,_0x34a6aa)=>(_0x2df8c8,_0x42c30d)=>_0x34a6aa(_0x2df8c8,_0x42c30d,_0x5aefe4);let b=class extends _0x2d602a{constructor(_0x21c864,_0x5b5487){var _0x294089=_0x413fd2;super(),this[_0x294089(0x1f6)]=_0x21c864,this[_0x294089(0x233)]=_0x5b5487,this[_0x294089(0x237)]();}[_0x413fd2(0x237)](){var _0x420a07=_0x413fd2;this[_0x420a07(0x20f)](this['_uiPartsService'][_0x420a07(0x239)](_0x120083['HEADER_MENU'],()=>_0x38f68b(Te,this[_0x420a07(0x1f6)])));}};b=ke([$(0x0,_0x287324(_0x189459)),$(0x1,_0x2136ab)],b);var Ge=Object[_0x413fd2(0x214)],We=Object[_0x413fd2(0x252)],Ye=(_0x30650f,_0x33f616,_0x2b5b40)=>_0x33f616 in _0x30650f?Ge(_0x30650f,_0x33f616,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b5b40}):_0x30650f[_0x33f616]=_0x2b5b40,Be=(_0x327f20,_0x43257d,_0x5cf717,_0x28b7f9)=>{var _0x5b499c=_0x413fd2;for(var _0x4173e7=_0x28b7f9>0x1?void 0x0:_0x28b7f9?We(_0x43257d,_0x5cf717):_0x43257d,_0x20c6de=_0x327f20[_0x5b499c(0x276)]-0x1,_0xae56c7;_0x20c6de>=0x0;_0x20c6de--)(_0xae56c7=_0x327f20[_0x20c6de])&&(_0x4173e7=_0xae56c7(_0x4173e7)||_0x4173e7);return _0x4173e7;},F=(_0x4cc83f,_0x293ca6)=>(_0x12728d,_0x234acb)=>_0x293ca6(_0x12728d,_0x234acb,_0x4cc83f),J=(_0x5bda39,_0x16912c,_0x2214a1)=>Ye(_0x5bda39,typeof _0x16912c!=_0x413fd2(0x20c)?_0x16912c+'':_0x16912c,_0x2214a1);const Ze=_0x413fd2(0x1d6);let O=class extends _0x54894e{constructor(_0x475c46=T,_0x5d25fe,_0x2c2f7f){var _0x302cf8=_0x413fd2;super(),this['_config']=_0x475c46,this[_0x302cf8(0x1f6)]=_0x5d25fe,this[_0x302cf8(0x21d)]=_0x2c2f7f;const {..._0x5590e7}=_0x563c15({},T,this[_0x302cf8(0x21c)]);this['_configService'][_0x302cf8(0x269)](Oe,_0x5590e7);}[_0x413fd2(0x242)](){var _0x3b0e2e=_0x413fd2;_0x4b1d24(this[_0x3b0e2e(0x1f6)],_0x38959d([[L],[I],[m],[b]],this['_config'][_0x3b0e2e(0x254)])),_0x4a7c72(this[_0x3b0e2e(0x1f6)],[[m]]);}[_0x413fd2(0x264)](){var _0x206d69=_0x413fd2;_0x4a7c72(this[_0x206d69(0x1f6)],[[b]]);}};J(O,_0x413fd2(0x1e7),_0x2369f2[_0x413fd2(0x22d)]),J(O,_0x413fd2(0x21a),Ze),O=Be([_0x39d809(_0x40879e),F(0x1,_0x287324(_0x189459)),F(0x2,_0x4addda)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xf064(_0x455266,_0x100f08){var _0x494457=_0x4944();return _0xf064=function(_0xf064cc,_0x5d198a){_0xf064cc=_0xf064cc-0x124;var _0x5efebf=_0x494457[_0xf064cc];return _0x5efebf;},_0xf064(_0x455266,_0x100f08);}(function(_0x3bda4a,_0x22f41f){var _0x4de00e=_0xf064,_0x55ac12=_0x3bda4a();while(!![]){try{var _0x441b56=parseInt(_0x4de00e(0x177))/0x1*(parseInt(_0x4de00e(0x160))/0x2)+-parseInt(_0x4de00e(0x1b4))/0x3+parseInt(_0x4de00e(0x222))/0x4*(-parseInt(_0x4de00e(0x148))/0x5)+parseInt(_0x4de00e(0x1b0))/0x6*(parseInt(_0x4de00e(0x19f))/0x7)+-parseInt(_0x4de00e(0x218))/0x8*(parseInt(_0x4de00e(0x175))/0x9)+parseInt(_0x4de00e(0x12e))/0xa+parseInt(_0x4de00e(0x1c1))/0xb*(parseInt(_0x4de00e(0x1ff))/0xc);if(_0x441b56===_0x22f41f)break;else _0x55ac12['push'](_0x55ac12['shift']());}catch(_0x35061c){_0x55ac12['push'](_0x55ac12['shift']());}}}(_0x4944,0x75cd1),function(_0x2079e7,_0x75e601){var _0x4dfacd=_0xf064;typeof exports==_0x4dfacd(0x19b)&&typeof module<'u'?_0x75e601(exports,require(_0x4dfacd(0x201)),require('@univerjs/core'),require(_0x4dfacd(0x12c)),require(_0x4dfacd(0x1a0)),require(_0x4dfacd(0x16b)),require('react/jsx-runtime'),require(_0x4dfacd(0x184)),require('react'),require(_0x4dfacd(0x196)),require(_0x4dfacd(0x185)),require('rxjs/operators')):typeof define==_0x4dfacd(0x163)&&define[_0x4dfacd(0x1ce)]?define(['exports',_0x4dfacd(0x201),_0x4dfacd(0x13a),_0x4dfacd(0x12c),_0x4dfacd(0x1a0),'@univerjs/ui',_0x4dfacd(0x1c2),_0x4dfacd(0x184),_0x4dfacd(0x1d0),_0x4dfacd(0x196),_0x4dfacd(0x185),'rxjs/operators'],_0x75e601):(_0x2079e7=typeof globalThis<'u'?globalThis:_0x2079e7||self,_0x75e601(_0x2079e7[_0x4dfacd(0x1b1)]={},_0x2079e7[_0x4dfacd(0x13e)],_0x2079e7['UniverCore'],_0x2079e7[_0x4dfacd(0x20b)],_0x2079e7[_0x4dfacd(0x16c)],_0x2079e7[_0x4dfacd(0x12b)],_0x2079e7[_0x4dfacd(0x214)],_0x2079e7[_0x4dfacd(0x17a)],_0x2079e7[_0x4dfacd(0x214)],_0x2079e7[_0x4dfacd(0x20e)],_0x2079e7['rxjs'],_0x2079e7[_0x4dfacd(0x185)]['operators']));}(this,function(_0x5848de,_0x35345e,_0x5b051f,_0x55b262,_0x6df264,_0x323124,_0x581f33,_0x3c2d10,_0x238a88,_0xb00fc9,_0x4d9170,_0x103952){'use strict';var _0x44527d=_0xf064;var _0x108561=Object[_0x44527d(0x180)],_0x23b577=(_0x49aeb2,_0x17c725,_0x5f427d)=>_0x17c725 in _0x49aeb2?_0x108561(_0x49aeb2,_0x17c725,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f427d}):_0x49aeb2[_0x17c725]=_0x5f427d,_0x408819=(_0x4f0d42,_0x176fcb,_0x2fad3e)=>_0x23b577(_0x4f0d42,typeof _0x176fcb!=_0x44527d(0x1a7)?_0x176fcb+'':_0x176fcb,_0x2fad3e);const _0x1d2199=_0x44527d(0x200),_0xaec017={};class _0x5f1dbb extends _0x5b051f[_0x44527d(0x19e)]{constructor(){var _0x4d1914=_0x44527d;super(...arguments),_0x408819(this,_0x4d1914(0x146),new Set()),_0x408819(this,_0x4d1914(0x172),new Set());}['registerSharedOperation'](_0x513f32){var _0x4d7c9a=_0x44527d;return this['_sharedOperations'][_0x4d7c9a(0x1ec)](_0x513f32),_0x5b051f[_0x4d7c9a(0x1f0)](()=>this[_0x4d7c9a(0x146)]['delete'](_0x513f32));}[_0x44527d(0x203)](_0x48a051){var _0x8dae3=_0x44527d;return this[_0x8dae3(0x172)][_0x8dae3(0x1ec)](_0x48a051),_0x5b051f[_0x8dae3(0x1f0)](()=>this[_0x8dae3(0x172)][_0x8dae3(0x190)](_0x48a051));}[_0x44527d(0x138)](_0x5a9b91){var _0x1cd573=_0x44527d;return this['_sharedOperations'][_0x1cd573(0x1ae)](_0x5a9b91);}[_0x44527d(0x202)](_0x4efa65){var _0x3979f4=_0x44527d;return Array[_0x3979f4(0x17b)](this['_reporters'])[_0x3979f4(0x151)](_0x5b7ca3=>_0x5b7ca3(_0x4efa65));}}var _0x1ce212=Object[_0x44527d(0x1df)],_0x312a1e=(_0x232486,_0x1ba67,_0x5d1287,_0x764d4d)=>{for(var _0x2135ad=_0x764d4d>0x1?void 0x0:_0x764d4d?_0x1ce212(_0x1ba67,_0x5d1287):_0x1ba67,_0x6cff51=_0x232486['length']-0x1,_0x4da1d9;_0x6cff51>=0x0;_0x6cff51--)(_0x4da1d9=_0x232486[_0x6cff51])&&(_0x2135ad=_0x4da1d9(_0x2135ad)||_0x2135ad);return _0x2135ad;},_0x1e5a26=(_0x1c889b,_0x2b937c)=>(_0x89bbf1,_0x425230)=>_0x2b937c(_0x89bbf1,_0x425230,_0x1c889b);let _0x21e531=class extends _0x5b051f['Disposable']{constructor(_0x52d407){var _0x1675bf=_0x44527d;super(),this[_0x1675bf(0x13f)]=_0x52d407,this[_0x1675bf(0x143)]();}[_0x44527d(0x143)](){var _0x3c7737=_0x44527d;[_0x6df264[_0x3c7737(0x14b)]['id'],_0x6df264['SetScrollOperation']['id'],_0x55b262[_0x3c7737(0x1bd)]['id']][_0x3c7737(0x167)](_0x407696=>{var _0x2c272e=_0x3c7737;this[_0x2c272e(0x176)](this['_liveShareService'][_0x2c272e(0x1e4)](_0x407696));});}};_0x21e531=_0x312a1e([_0x1e5a26(0x0,_0x5b051f[_0x44527d(0x174)](_0x5f1dbb))],_0x21e531);var _0x276913=function(){var _0x140691=_0x44527d;return _0x276913=Object[_0x140691(0x1cd)]||function(_0x1b8ebb){var _0x5209ce=_0x140691;for(var _0x19b7d1,_0x70d03a=0x1,_0x347a99=arguments[_0x5209ce(0x1f2)];_0x70d03a<_0x347a99;_0x70d03a++){_0x19b7d1=arguments[_0x70d03a];for(var _0x48250c in _0x19b7d1)Object[_0x5209ce(0x14d)]['hasOwnProperty'][_0x5209ce(0x1ea)](_0x19b7d1,_0x48250c)&&(_0x1b8ebb[_0x48250c]=_0x19b7d1[_0x48250c]);}return _0x1b8ebb;},_0x276913[_0x140691(0x1e6)](this,arguments);},_0x3e991c=function(_0x19810f,_0x5373f4){var _0x72d964=_0x44527d,_0x55b24d={};for(var _0x54c00e in _0x19810f)Object[_0x72d964(0x14d)][_0x72d964(0x20a)][_0x72d964(0x1ea)](_0x19810f,_0x54c00e)&&_0x5373f4['indexOf'](_0x54c00e)<0x0&&(_0x55b24d[_0x54c00e]=_0x19810f[_0x54c00e]);if(_0x19810f!=null&&typeof Object[_0x72d964(0x1a6)]==_0x72d964(0x163)){for(var _0x121c72=0x0,_0x54c00e=Object[_0x72d964(0x1a6)](_0x19810f);_0x121c72<_0x54c00e[_0x72d964(0x1f2)];_0x121c72++)_0x5373f4[_0x72d964(0x1fc)](_0x54c00e[_0x121c72])<0x0&&Object[_0x72d964(0x14d)][_0x72d964(0x15f)]['call'](_0x19810f,_0x54c00e[_0x121c72])&&(_0x55b24d[_0x54c00e[_0x121c72]]=_0x19810f[_0x54c00e[_0x121c72]]);}return _0x55b24d;},_0x276f39=_0x238a88[_0x44527d(0x14e)](function(_0x40fbb4,_0x5d0db0){var _0x289fa0=_0x44527d,_0x16b776=_0x40fbb4[_0x289fa0(0x126)],_0x4843e9=_0x40fbb4['id'],_0x9b15aa=_0x40fbb4[_0x289fa0(0x1e2)],_0x4731df=_0x40fbb4[_0x289fa0(0x197)],_0x3e75f0=_0x3e991c(_0x40fbb4,['icon','id',_0x289fa0(0x1e2),_0x289fa0(0x197)]),_0x4070ac=_0x289fa0(0x14a)[_0x289fa0(0x20d)](_0x4843e9,'\x20')[_0x289fa0(0x20d)](_0x9b15aa||'')[_0x289fa0(0x1c3)](),_0x3e1032=_0x238a88[_0x289fa0(0x21e)]('_'[_0x289fa0(0x20d)](_0x3e96a1()));return _0x3f2747(_0x16b776,''[_0x289fa0(0x20d)](_0x4843e9),{'defIds':_0x16b776[_0x289fa0(0x142)],'idSuffix':_0x3e1032[_0x289fa0(0x21c)]},_0x276913({'ref':_0x5d0db0,'className':_0x4070ac},_0x3e75f0),_0x4731df);});function _0x3f2747(_0x3b2619,_0x1e8f06,_0x3d5a5e,_0xffcf49,_0x3279d0){var _0x122c05=_0x44527d;return _0x238a88['createElement'](_0x3b2619[_0x122c05(0x1b6)],_0x276913(_0x276913({'key':_0x1e8f06},_0x499c36(_0x3b2619,_0x3d5a5e,_0x3279d0)),_0xffcf49),(_0x295ea2(_0x3b2619,_0x3d5a5e)[_0x122c05(0x14f)]||[])[_0x122c05(0x151)](function(_0x27f58c,_0x3d574d){var _0x3bb24b=_0x122c05;return _0x3f2747(_0x27f58c,''[_0x3bb24b(0x20d)](_0x1e8f06,'-')[_0x3bb24b(0x20d)](_0x3b2619['tag'],'-')[_0x3bb24b(0x20d)](_0x3d574d),_0x3d5a5e,void 0x0,_0x3279d0);}));}function _0x499c36(_0x348cca,_0x3d2de4,_0x157682){var _0x14961b=_0x44527d,_0x3234dc=_0x276913({},_0x348cca[_0x14961b(0x16a)]);_0x157682!=null&&_0x157682['colorChannel1']&&_0x3234dc[_0x14961b(0x199)]===_0x14961b(0x152)&&(_0x3234dc[_0x14961b(0x199)]=_0x157682[_0x14961b(0x152)]),_0x348cca['tag']==='mask'&&_0x3234dc['id']&&(_0x3234dc['id']=_0x3234dc['id']+_0x3d2de4[_0x14961b(0x1ee)]),Object[_0x14961b(0x207)](_0x3234dc)[_0x14961b(0x167)](function(_0x555292){var _0x263b3d=_0x14961b,_0x39e8eb=_0x555292[0x0],_0x9f660d=_0x555292[0x1];_0x39e8eb===_0x263b3d(0x1b2)&&typeof _0x9f660d=='string'&&(_0x3234dc[_0x39e8eb]=_0x9f660d[_0x263b3d(0x171)](/url\(#(.*)\)/,_0x263b3d(0x206)['concat'](_0x3d2de4['idSuffix'],')')));});var _0x20be2e=_0x3d2de4[_0x14961b(0x142)];return!_0x20be2e||_0x20be2e[_0x14961b(0x1f2)]===0x0||(_0x348cca[_0x14961b(0x1b6)]==='use'&&_0x3234dc['xlink:href']&&(_0x3234dc['xlink:href']=_0x3234dc[_0x14961b(0x198)]+_0x3d2de4['idSuffix']),Object[_0x14961b(0x207)](_0x3234dc)[_0x14961b(0x167)](function(_0x522576){var _0x164fb8=_0x14961b,_0x992eb8=_0x522576[0x0],_0x3f4c30=_0x522576[0x1];typeof _0x3f4c30==_0x164fb8(0x187)&&(_0x3234dc[_0x992eb8]=_0x3f4c30[_0x164fb8(0x171)](/url\(#(.*)\)/,_0x164fb8(0x206)['concat'](_0x3d2de4['idSuffix'],')')));})),_0x3234dc;}function _0x295ea2(_0x5d48e3,_0x587c12){var _0x1987bf=_0x44527d,_0x2d471b,_0x177987=_0x587c12[_0x1987bf(0x142)];return!_0x177987||_0x177987[_0x1987bf(0x1f2)]===0x0?_0x5d48e3:_0x5d48e3[_0x1987bf(0x1b6)]==='defs'&&(!((_0x2d471b=_0x5d48e3[_0x1987bf(0x14f)])===null||_0x2d471b===void 0x0)&&_0x2d471b['length'])?_0x276913(_0x276913({},_0x5d48e3),{'children':_0x5d48e3[_0x1987bf(0x14f)]['map'](function(_0x25d9af){var _0x58de58=_0x1987bf;return typeof _0x25d9af[_0x58de58(0x16a)]['id']==_0x58de58(0x187)&&_0x177987&&_0x177987[_0x58de58(0x1aa)](_0x25d9af['attrs']['id'])?_0x276913(_0x276913({},_0x25d9af),{'attrs':_0x276913(_0x276913({},_0x25d9af[_0x58de58(0x16a)]),{'id':_0x25d9af[_0x58de58(0x16a)]['id']+_0x587c12[_0x58de58(0x1ee)]})}):_0x25d9af;})}):_0x5d48e3;}function _0x3e96a1(){var _0x60e611=_0x44527d;return Math['random']()[_0x60e611(0x1c9)](0x24)[_0x60e611(0x157)](0x2,0x8);}_0x276f39[_0x44527d(0x1fa)]=_0x44527d(0x18e);var _0x5172e0={'tag':'svg','attrs':{'xmlns':_0x44527d(0x1ac),'fill':_0x44527d(0x1a4),'viewBox':_0x44527d(0x1dd),'width':_0x44527d(0x1bb),'height':_0x44527d(0x1bb)},'children':[{'tag':_0x44527d(0x1e5),'attrs':{'fill':_0x44527d(0x212),'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':_0x44527d(0x1e5),'attrs':{'fill':'currentColor','d':_0x44527d(0x134),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x5eb312=_0x238a88[_0x44527d(0x14e)](function(_0x1c00c9,_0x33e3de){var _0x5636e3=_0x44527d;return _0x238a88[_0x5636e3(0x1be)](_0x276f39,Object['assign']({},_0x1c00c9,{'id':_0x5636e3(0x1cc),'ref':_0x33e3de,'icon':_0x5172e0}));});_0x5eb312['displayName']=_0x44527d(0x130);var _0x2dcf04=Object[_0x44527d(0x1df)],_0xb222d7=(_0x4a31ca,_0x24b63c,_0x1c28be,_0xfa7d6a)=>{var _0x46ef4d=_0x44527d;for(var _0x5118f5=_0xfa7d6a>0x1?void 0x0:_0xfa7d6a?_0x2dcf04(_0x24b63c,_0x1c28be):_0x24b63c,_0x1ee961=_0x4a31ca[_0x46ef4d(0x1f2)]-0x1,_0x57110f;_0x1ee961>=0x0;_0x1ee961--)(_0x57110f=_0x4a31ca[_0x1ee961])&&(_0x5118f5=_0x57110f(_0x5118f5)||_0x5118f5);return _0x5118f5;},_0x43040c=(_0x4f3c46,_0x43d52b)=>(_0x5c0d39,_0xa98435)=>_0x43d52b(_0x5c0d39,_0xa98435,_0x4f3c46);_0x5848de['LiveShareController']=class extends _0x5b051f[_0x44527d(0x1ca)]{constructor(_0x33ff25,_0x13d4c1,_0x23d1b8){var _0x3ae59f=_0x44527d;super(),_0x408819(this,_0x3ae59f(0x1e9),new Map()),(this['_univerInstanceService']=_0x33ff25,this[_0x3ae59f(0x1d6)]=_0x13d4c1,this[_0x3ae59f(0x1d4)]=_0x23d1b8,this[_0x3ae59f(0x143)]());}async[_0x44527d(0x16d)](_0x2dde17){var _0x1af230=_0x44527d;return this[_0x1af230(0x1e9)][_0x1af230(0x1ae)](_0x2dde17)||await this['_startLiveShareCoordinator'](_0x2dde17),this['_entities']['get'](_0x2dde17);}[_0x44527d(0x143)](){var _0x45bc6e=_0x44527d;this[_0x45bc6e(0x166)][_0x45bc6e(0x16e)](_0x5b051f['UniverInstanceType'][_0x45bc6e(0x153)])[_0x45bc6e(0x17d)](_0x103952['takeUntil'](this[_0x45bc6e(0x1f5)]))[_0x45bc6e(0x210)](async _0x10a32b=>{var _0x961296=_0x45bc6e;const _0x4d8d33=_0x10a32b[_0x961296(0x1c7)]();this[_0x961296(0x1e9)][_0x961296(0x1ae)](_0x4d8d33)||this[_0x961296(0x1dc)](_0x4d8d33);}),this[_0x45bc6e(0x166)][_0x45bc6e(0x1a5)](_0x5b051f[_0x45bc6e(0x1c5)][_0x45bc6e(0x153)])['pipe'](_0x103952[_0x45bc6e(0x1b9)](this[_0x45bc6e(0x1f5)]))[_0x45bc6e(0x210)](_0x3a37f1=>{var _0x2d7a6f=_0x45bc6e;const _0x57b176=_0x3a37f1['getUnitId'](),_0x1e6f55=this[_0x2d7a6f(0x1e9)][_0x2d7a6f(0x1cf)](_0x57b176);_0x1e6f55==null||_0x1e6f55['dispose']();});}async[_0x44527d(0x1dc)](_0x7d0ba9){var _0x248b58=_0x44527d;const _0x17384a=await this[_0x248b58(0x1d4)][_0x248b58(0x1a2)](_0x7d0ba9),_0x42923b=this[_0x248b58(0x1d6)][_0x248b58(0x21a)](_0x5848de[_0x248b58(0x147)],_0x7d0ba9,_0x17384a);return _0x42923b[_0x248b58(0x1a9)](),this[_0x248b58(0x1e9)][_0x248b58(0x140)](_0x7d0ba9,_0x42923b),_0x42923b;}},_0x5848de[_0x44527d(0x133)]=_0xb222d7([_0x43040c(0x0,_0x5b051f[_0x44527d(0x16f)]),_0x43040c(0x1,_0x5b051f[_0x44527d(0x174)](_0x5b051f[_0x44527d(0x154)])),_0x43040c(0x2,_0x5b051f[_0x44527d(0x174)](_0x35345e[_0x44527d(0x1a3)]))],_0x5848de[_0x44527d(0x133)]);var _0x5093ed=(_0x15216c=>(_0x15216c[_0x44527d(0x18d)]='offline',_0x15216c['IDLE']='idle',_0x15216c[_0x44527d(0x136)]=_0x44527d(0x17f),_0x15216c[_0x44527d(0x12a)]=_0x44527d(0x211),_0x15216c['PRESENTING']=_0x44527d(0x1a1),_0x15216c))(_0x5093ed||{});const _0x1608bf=_0x44527d(0x1f4),_0x3c9dbd=0xc8;_0x5848de[_0x44527d(0x147)]=class extends _0x5b051f['RxDisposable']{constructor(_0x2ff36c,_0x2ca1a2,_0x39e560,_0x484734,_0x2f832a){var _0x4c6287=_0x44527d;super(),_0x408819(this,_0x4c6287(0x1f8),new _0x4d9170[(_0x4c6287(0x1e8))]('idle')),_0x408819(this,'status$',this[_0x4c6287(0x1f8)][_0x4c6287(0x1a8)]()),_0x408819(this,_0x4c6287(0x143),!0x1),_0x408819(this,_0x4c6287(0x1d3),null),_0x408819(this,_0x4c6287(0x209),null),(this['_unitID']=_0x2ff36c,this[_0x4c6287(0x132)]=_0x2ca1a2,this[_0x4c6287(0x170)]=_0x39e560,this[_0x4c6287(0x13f)]=_0x484734,this[_0x4c6287(0x150)]=_0x2f832a);}get[_0x44527d(0x213)](){var _0x698cdb=_0x44527d;return this[_0x698cdb(0x1f8)][_0x698cdb(0x127)]();}['dispose'](){var _0x37dc16=_0x44527d,_0x4e213c;(_0x4e213c=this[_0x37dc16(0x1d3)])==null||_0x4e213c['dispose'](),this[_0x37dc16(0x1f8)]['next'](_0x37dc16(0x1d5)),this[_0x37dc16(0x1f8)][_0x37dc16(0x193)]();}[_0x44527d(0x1a9)](){var _0x1e4aff=_0x44527d;this['_init']||(this[_0x1e4aff(0x143)]=!0x0,this[_0x1e4aff(0x132)][_0x1e4aff(0x1f3)][_0x1e4aff(0x17d)](_0x103952[_0x1e4aff(0x1b9)](this[_0x1e4aff(0x1f5)]))[_0x1e4aff(0x210)](_0x2d718f=>{var _0x3142ce=_0x1e4aff;switch(_0x2d718f){case _0x35345e[_0x3142ce(0x162)][_0x3142ce(0x18d)]:this[_0x3142ce(0x169)]();break;case _0x35345e[_0x3142ce(0x162)][_0x3142ce(0x1f1)]:this[_0x3142ce(0x131)]();break;}}),this[_0x1e4aff(0x132)][_0x1e4aff(0x1f7)]['pipe'](_0x103952[_0x1e4aff(0x1b9)](this[_0x1e4aff(0x1f5)]))[_0x1e4aff(0x210)](_0x1c31f6=>{var _0x122ff3=_0x1e4aff;const {eventID:_0x3f4c38}=_0x1c31f6;switch(_0x3f4c38){case _0xb00fc9[_0x122ff3(0x141)][_0x122ff3(0x1ab)]:this[_0x122ff3(0x21d)](_0x1c31f6);break;case _0xb00fc9[_0x122ff3(0x141)]['LIVESHARE_OPERATION']:this[_0x122ff3(0x1c0)](_0x1c31f6);break;case _0xb00fc9[_0x122ff3(0x141)][_0x122ff3(0x125)]:this['_handleTerminate']();break;case _0xb00fc9[_0x122ff3(0x141)][_0x122ff3(0x21f)]:this[_0x122ff3(0x155)](_0x1c31f6);break;}}));}[_0x44527d(0x1e3)](){var _0x38b664=_0x44527d;this['_collabSession'][_0x38b664(0x216)]({'eventID':_0xb00fc9['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x38b664(0x186)],'userID':this[_0x38b664(0x132)][_0x38b664(0x13c)]()}},this[_0x38b664(0x186)]);}[_0x44527d(0x18a)](){var _0x4aa47b=_0x44527d;this['_status']==='presenting'&&(this[_0x4aa47b(0x1f8)][_0x4aa47b(0x156)](_0x4aa47b(0x1d5)),this[_0x4aa47b(0x132)]['send']({'eventID':_0xb00fc9['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4aa47b(0x186)]}},this[_0x4aa47b(0x186)]));}['startFollowing'](){var _0x4af77a=_0x44527d;this['_status']==='not-following'&&(this[_0x4af77a(0x1f8)][_0x4af77a(0x156)](_0x4af77a(0x17f)),this[_0x4af77a(0x1c8)]());}['stopFollowing'](){var _0x2884ed=_0x44527d;this['_status']===_0x2884ed(0x17f)&&this[_0x2884ed(0x15c)]();}[_0x44527d(0x21d)](_0x53de5e){var _0x5aab94=_0x44527d;const {presenter:_0x1ed7be}=_0x53de5e[_0x5aab94(0x1b7)],_0x30f762=this[_0x5aab94(0x132)][_0x5aab94(0x13c)]();this['_presenter']=_0x1ed7be,_0x1ed7be===_0x30f762?(this['_stopFollowing'](),this[_0x5aab94(0x1db)]()):this['_status']!==_0x5aab94(0x211)&&(this[_0x5aab94(0x1eb)](),this[_0x5aab94(0x1c8)]());}[_0x44527d(0x1d1)](){var _0x558563=_0x44527d;const _0x4f4867={'eventID':_0xb00fc9[_0x558563(0x141)][_0x558563(0x18c)]};this[_0x558563(0x132)][_0x558563(0x216)](_0x4f4867,this[_0x558563(0x186)]);}[_0x44527d(0x1b8)](){var _0x3c3151=_0x44527d;this[_0x3c3151(0x209)]=null,this[_0x3c3151(0x213)]!==_0x3c3151(0x1a1)&&this[_0x3c3151(0x1fe)]();}[_0x44527d(0x155)](_0x27cf0c){var _0x157f38=_0x44527d;if(this[_0x157f38(0x213)]==='following'&&this['_presenter']===_0x27cf0c[_0x157f38(0x1b7)][_0x157f38(0x128)]){const _0x48dbed=_0xb00fc9[_0x157f38(0x1fb)](_0x27cf0c[_0x157f38(0x1b7)])['mutations']['reverse']()['find'](_0x42de48=>_0x42de48['id']===_0x55b262[_0x157f38(0x1e7)]['id']);if(_0x48dbed){const _0x214cf0=_0x48dbed[_0x157f38(0x1f9)][_0x157f38(0x181)],_0xa76841=_0x48dbed[_0x157f38(0x1f9)]['sheet']['id'];setTimeout(()=>{var _0x301bf7=_0x157f38;this[_0x301bf7(0x150)][_0x301bf7(0x182)](_0x55b262['SetWorksheetActiveOperation']['id'],{'unitId':_0x214cf0,'subUnitId':_0xa76841},{'fromCollab':!0x0});});}}}[_0x44527d(0x1db)](){var _0x2779d6=_0x44527d;this[_0x2779d6(0x1f8)][_0x2779d6(0x156)](_0x2779d6(0x1a1));const _0x5acbe0=new Map(),_0x568a7f=this[_0x2779d6(0x1d3)]=new _0x5b051f[(_0x2779d6(0x205))]();_0x568a7f['add'](_0x5b051f[_0x2779d6(0x1f0)](()=>{var _0x9747e6=_0x2779d6;_0x5acbe0['forEach'](_0x4910bb=>_0x4910bb[_0x9747e6(0x193)]()),_0x5acbe0[_0x9747e6(0x221)]();})),_0x568a7f[_0x2779d6(0x1ec)](this[_0x2779d6(0x150)][_0x2779d6(0x20c)](_0x31f6c5=>{var _0x405fb5=_0x2779d6,_0x30904e;if(_0x31f6c5[_0x405fb5(0x15e)]!==_0x5b051f[_0x405fb5(0x1d9)][_0x405fb5(0x1cb)]||!this[_0x405fb5(0x13f)][_0x405fb5(0x138)](_0x31f6c5['id']))return;const {id:_0x56b8ee}=_0x31f6c5;let _0x2e6b01;_0x5acbe0[_0x405fb5(0x1ae)](_0x56b8ee)?_0x2e6b01=_0x5acbe0[_0x405fb5(0x1cf)](_0x56b8ee):(_0x2e6b01=new _0x4d9170[(_0x405fb5(0x165))](),_0x5acbe0[_0x405fb5(0x140)](_0x56b8ee,_0x2e6b01),_0x2e6b01[_0x405fb5(0x17d)](_0x103952[_0x405fb5(0x1bf)]((_0x30904e=this[_0x405fb5(0x170)]['getConfig'](_0x1608bf))!=null?_0x30904e:_0x3c9dbd,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x405fb5(0x210)](_0x3fd9cd=>{var _0x207b5f=_0x405fb5;this[_0x207b5f(0x132)][_0x207b5f(0x216)]({'eventID':_0xb00fc9[_0x207b5f(0x141)][_0x207b5f(0x208)],'data':{'unitID':this['_unitID'],'operations':{[_0x3fd9cd['id']]:{'id':_0x3fd9cd['id'],'params':JSON[_0x207b5f(0x21b)](_0x3fd9cd[_0x207b5f(0x1f9)])}}}},this[_0x207b5f(0x186)]);})),_0x2e6b01[_0x405fb5(0x156)](_0x31f6c5);})),this[_0x2779d6(0x13f)][_0x2779d6(0x202)](this[_0x2779d6(0x186)])['forEach'](_0x36e697=>this[_0x2779d6(0x132)][_0x2779d6(0x216)]({'eventID':_0xb00fc9[_0x2779d6(0x141)][_0x2779d6(0x208)],'data':{'unitID':this[_0x2779d6(0x186)],'operations':{[_0x36e697['id']]:{'id':_0x36e697['id'],'params':JSON['stringify'](_0x36e697[_0x2779d6(0x1f9)])}}}},this['_unitID']));}[_0x44527d(0x1eb)](){var _0x436eb0=_0x44527d,_0x1e9d68;this[_0x436eb0(0x1f8)][_0x436eb0(0x156)](_0x436eb0(0x1d5)),(_0x1e9d68=this[_0x436eb0(0x1d3)])==null||_0x1e9d68[_0x436eb0(0x1ed)](),this['_commandDisposable']=null;}[_0x44527d(0x1c8)](){var _0x1e06f4=_0x44527d,_0x2b88f9;(_0x2b88f9=this['_commandDisposable'])==null||_0x2b88f9['dispose'](),this[_0x1e06f4(0x1f8)][_0x1e06f4(0x156)](_0x1e06f4(0x17f));}['_beIdle'](){var _0x4cb088=_0x44527d,_0x47adae;this[_0x4cb088(0x1f8)][_0x4cb088(0x156)](_0x4cb088(0x1d5)),(_0x47adae=this[_0x4cb088(0x1d3)])==null||_0x47adae['dispose'](),this[_0x4cb088(0x1d3)]=null;}['_stopFollowing'](){var _0x283cbe=_0x44527d,_0x2709f7;this[_0x283cbe(0x1f8)][_0x283cbe(0x156)]('not-following'),(_0x2709f7=this[_0x283cbe(0x1d3)])==null||_0x2709f7[_0x283cbe(0x1ed)]();}['_handleOperation'](_0x27fa46){var _0x5b3e30=_0x44527d;if([_0x5b3e30(0x1a1),_0x5b3e30(0x211),_0x5b3e30(0x179)]['includes'](this[_0x5b3e30(0x213)])||!_0x27fa46['data'][_0x5b3e30(0x135)]||_0x27fa46[_0x5b3e30(0x1b7)][_0x5b3e30(0x135)]===this['_collabSession'][_0x5b3e30(0x13c)]())return;this[_0x5b3e30(0x213)]==='idle'&&this[_0x5b3e30(0x1c8)]();const _0x4d12ab=_0x27fa46[_0x5b3e30(0x1b7)][_0x5b3e30(0x1e1)];Object[_0x5b3e30(0x1c4)](_0x4d12ab)[_0x5b3e30(0x167)](_0x32116f=>{var _0x29f20b=_0x5b3e30;this[_0x29f20b(0x150)][_0x29f20b(0x182)](_0x32116f['id'],_0x32116f[_0x29f20b(0x1f9)]?JSON['parse'](_0x32116f['params']):null,{'fromCollab':!0x0});});}[_0x44527d(0x169)](){var _0x554a9c=_0x44527d,_0x135e4d;this[_0x554a9c(0x1f8)][_0x554a9c(0x156)]('offline'),(_0x135e4d=this[_0x554a9c(0x1d3)])==null||_0x135e4d['dispose']();}[_0x44527d(0x131)](){var _0x20e742=_0x44527d;this[_0x20e742(0x1f8)]['next'](_0x20e742(0x1d5)),this[_0x20e742(0x1d1)]();}},_0x5848de[_0x44527d(0x147)]=_0xb222d7([_0x43040c(0x2,_0x5b051f[_0x44527d(0x1f6)]),_0x43040c(0x3,_0x5b051f['Inject'](_0x5f1dbb)),_0x43040c(0x4,_0x5b051f[_0x44527d(0x1de)])],_0x5848de[_0x44527d(0x147)]);function _0x22d785(){var _0x468523=_0x44527d;const _0x1763e3=_0x323124[_0x468523(0x18f)](_0x5848de[_0x468523(0x133)]),_0x15748c=_0x323124[_0x468523(0x18f)](_0x5b051f[_0x468523(0x16f)]),_0x40b579=_0x323124['useObservable'](()=>_0x15748c[_0x468523(0x1ba)](_0x5b051f[_0x468523(0x1c5)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x48803d,_0x445798]=_0x238a88['useState'](null),[_0x51a996,_0x3b4300]=_0x238a88['useState'](_0x5093ed[_0x468523(0x1e0)]),_0x1b5f1e=_0x238a88[_0x468523(0x21e)](null);return _0x238a88['useEffect'](()=>(_0x40b579&&_0x1763e3[_0x468523(0x16d)](_0x40b579[_0x468523(0x1c7)]())[_0x468523(0x137)](_0x5a3aa1=>{var _0x189191=_0x468523;_0x445798(_0x5a3aa1),_0x1b5f1e['current']=_0x5a3aa1[_0x189191(0x1b3)]['subscribe'](_0x5c16f3=>{_0x3b4300(_0x5c16f3);});}),()=>{var _0x38a8c9=_0x468523,_0x56cdd5;(_0x56cdd5=_0x1b5f1e[_0x38a8c9(0x21c)])==null||_0x56cdd5[_0x38a8c9(0x204)](),_0x1b5f1e[_0x38a8c9(0x21c)]=null;}),[_0x40b579,_0x1763e3]),_0x48803d?_0x581f33[_0x468523(0x149)](_0x3c2d10[_0x468523(0x220)],{'align':_0x468523(0x168),'disabled':_0x51a996===_0x5093ed['OFFLINE'],'className':_0x468523(0x14c),'overlay':_0x581f33[_0x468523(0x149)](_0xf4dc93,{'status':_0x51a996,'coordinator':_0x48803d}),'children':_0x581f33['jsx'](_0x468523(0x189),{'className':_0x3c2d10[_0x468523(0x164)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x51a996===_0x5093ed['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51a996!==_0x5093ed[_0x468523(0x18d)]}),'type':_0x468523(0x189),'children':_0x581f33[_0x468523(0x149)](_0x5eb312,{'className':_0x468523(0x1fd)})})}):null;}function _0xf4dc93(_0x1d9538){var _0x1e8a3e=_0x44527d;const {status:_0x55c294,coordinator:_0x50c55b}=_0x1d9538;switch(_0x55c294){case _0x5093ed[_0x1e8a3e(0x1e0)]:return _0x581f33[_0x1e8a3e(0x149)](_0x263005,{'coordinator':_0x50c55b});case _0x5093ed[_0x1e8a3e(0x136)]:return _0x581f33[_0x1e8a3e(0x149)](_0x4edd73,{'coordinator':_0x50c55b});case _0x5093ed[_0x1e8a3e(0x12a)]:return _0x581f33[_0x1e8a3e(0x149)](_0x415480,{'coordinator':_0x50c55b});case _0x5093ed[_0x1e8a3e(0x18d)]:return _0x581f33['jsx'](_0x4de7dd,{});case _0x5093ed[_0x1e8a3e(0x17e)]:return _0x581f33[_0x1e8a3e(0x149)](_0x513bd7,{'coordinator':_0x50c55b});default:return null;}}function _0x263005(_0x56da51){var _0xa47145=_0x44527d;const {coordinator:_0x901244}=_0x56da51;return _0x581f33[_0xa47145(0x158)](_0x581f33['Fragment'],{'children':[_0x581f33[_0xa47145(0x149)](_0xa47145(0x194),{'className':_0xa47145(0x161),'children':_0xa47145(0x12d)}),_0x581f33[_0xa47145(0x149)](_0x3c2d10['Button'],{'onClick':()=>_0x901244[_0xa47145(0x1e3)](),'children':_0xa47145(0x1d2)})]});}function _0x4edd73(_0x459366){var _0x414d34=_0x44527d;const {coordinator:_0x2a837e}=_0x459366;return _0x581f33[_0x414d34(0x158)](_0x581f33['Fragment'],{'children':[_0x581f33[_0x414d34(0x149)](_0x414d34(0x194),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x581f33[_0x414d34(0x149)](_0x3c2d10[_0x414d34(0x191)],{'onClick':()=>_0x2a837e[_0x414d34(0x124)](),'children':_0x414d34(0x129)})]});}function _0x415480(_0x2434a0){var _0x510628=_0x44527d;const {coordinator:_0x3f2391}=_0x2434a0;return _0x581f33['jsxs'](_0x581f33['Fragment'],{'children':[_0x581f33['jsx'](_0x510628(0x194),{'className':_0x510628(0x161),'children':_0x510628(0x1af)}),_0x581f33[_0x510628(0x149)](_0x3c2d10[_0x510628(0x191)],{'variant':_0x510628(0x144),'onClick':()=>_0x3f2391[_0x510628(0x1d8)](),'children':_0x510628(0x19c)})]});}function _0x513bd7(_0x1b6095){var _0x51a011=_0x44527d;const {coordinator:_0x1c6c21}=_0x1b6095;return _0x581f33[_0x51a011(0x158)](_0x581f33[_0x51a011(0x13b)],{'children':[_0x581f33[_0x51a011(0x149)](_0x51a011(0x194),{'className':_0x51a011(0x161),'children':_0x51a011(0x18b)}),_0x581f33[_0x51a011(0x149)](_0x3c2d10[_0x51a011(0x191)],{'variant':_0x51a011(0x17c),'onClick':()=>_0x1c6c21['stopPresenting'](),'children':_0x51a011(0x217)})]});}function _0x4de7dd(){var _0x222897=_0x44527d;return _0x581f33['jsx'](_0x581f33[_0x222897(0x13b)],{'children':_0x222897(0x195)});}var _0x2bfc55=Object[_0x44527d(0x1df)],_0x24cf7e=(_0x6c72d6,_0x992ca,_0x3bddc2,_0x54b0a6)=>{for(var _0x51e35c=_0x54b0a6>0x1?void 0x0:_0x54b0a6?_0x2bfc55(_0x992ca,_0x3bddc2):_0x992ca,_0x5ecac0=_0x6c72d6['length']-0x1,_0x46b5fd;_0x5ecac0>=0x0;_0x5ecac0--)(_0x46b5fd=_0x6c72d6[_0x5ecac0])&&(_0x51e35c=_0x46b5fd(_0x51e35c)||_0x51e35c);return _0x51e35c;},_0x1ce3aa=(_0x2f603d,_0x224445)=>(_0x416ddd,_0x13fb0f)=>_0x224445(_0x416ddd,_0x13fb0f,_0x2f603d);_0x5848de[_0x44527d(0x1c6)]=class extends _0x5b051f['Disposable']{constructor(_0x54bcab,_0x2066f0){var _0x164eda=_0x44527d;super(),this[_0x164eda(0x1d6)]=_0x54bcab,this[_0x164eda(0x1da)]=_0x2066f0,this['_mountLiveShare']();}[_0x44527d(0x192)](){var _0x3f04f6=_0x44527d;this['disposeWithMe'](this[_0x3f04f6(0x1da)][_0x3f04f6(0x15a)](_0x323124[_0x3f04f6(0x178)][_0x3f04f6(0x219)],()=>_0x323124['connectInjector'](_0x22d785,this[_0x3f04f6(0x1d6)])));}},_0x5848de[_0x44527d(0x1c6)]=_0x24cf7e([_0x1ce3aa(0x0,_0x5b051f[_0x44527d(0x174)](_0x5b051f['Injector'])),_0x1ce3aa(0x1,_0x323124[_0x44527d(0x1bc)])],_0x5848de[_0x44527d(0x1c6)]);var _0x49377b=Object['defineProperty'],_0x5da5d9=Object[_0x44527d(0x1df)],_0x4e8dae=(_0x1a607c,_0x1bc48f,_0x470727)=>_0x1bc48f in _0x1a607c?_0x49377b(_0x1a607c,_0x1bc48f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x470727}):_0x1a607c[_0x1bc48f]=_0x470727,_0x1d1eb0=(_0x527e02,_0x4fe770,_0x34a2d5,_0x472618)=>{var _0x23b898=_0x44527d;for(var _0x3fa4a6=_0x472618>0x1?void 0x0:_0x472618?_0x5da5d9(_0x4fe770,_0x34a2d5):_0x4fe770,_0x55e1f0=_0x527e02[_0x23b898(0x1f2)]-0x1,_0x925b8d;_0x55e1f0>=0x0;_0x55e1f0--)(_0x925b8d=_0x527e02[_0x55e1f0])&&(_0x3fa4a6=_0x925b8d(_0x3fa4a6)||_0x3fa4a6);return _0x3fa4a6;},_0x4321c9=(_0x5b06c1,_0x422043)=>(_0x42ec90,_0x58db71)=>_0x422043(_0x42ec90,_0x58db71,_0x5b06c1),_0x37bedb=(_0x2c1313,_0x1421e8,_0x88533c)=>_0x4e8dae(_0x2c1313,typeof _0x1421e8!=_0x44527d(0x1a7)?_0x1421e8+'':_0x1421e8,_0x88533c);const _0x23a3dc=_0x44527d(0x159);_0x5848de[_0x44527d(0x1ef)]=class extends _0x5b051f[_0x44527d(0x215)]{constructor(_0x35c708=_0xaec017,_0x372313,_0x3abbe3){var _0x2055dc=_0x44527d;super(),this[_0x2055dc(0x1d7)]=_0x35c708,this[_0x2055dc(0x1d6)]=_0x372313,this[_0x2055dc(0x170)]=_0x3abbe3;const {..._0x158674}=_0x5b051f['merge']({},_0xaec017,this['_config']);this[_0x2055dc(0x170)][_0x2055dc(0x13d)](_0x1d2199,_0x158674);}[_0x44527d(0x12f)](){var _0x3e3c4e=_0x44527d;_0x5b051f[_0x3e3c4e(0x1b5)](this[_0x3e3c4e(0x1d6)],_0x5b051f['mergeOverrideWithDependencies']([[_0x5f1dbb],[_0x5848de[_0x3e3c4e(0x133)]],[_0x21e531],[_0x5848de[_0x3e3c4e(0x1c6)]]],this[_0x3e3c4e(0x1d7)][_0x3e3c4e(0x15b)])),_0x5b051f[_0x3e3c4e(0x188)](this['_injector'],[[_0x21e531]]);}[_0x44527d(0x173)](){var _0xd89bda=_0x44527d;_0x5b051f['touchDependencies'](this[_0xd89bda(0x1d6)],[[_0x5848de[_0xd89bda(0x1c6)]]]);}},_0x37bedb(_0x5848de[_0x44527d(0x1ef)],_0x44527d(0x15e),_0x5b051f[_0x44527d(0x1c5)][_0x44527d(0x20f)]),_0x37bedb(_0x5848de['UniverLiveSharePlugin'],'pluginName',_0x23a3dc),_0x5848de[_0x44527d(0x1ef)]=_0x1d1eb0([_0x5b051f[_0x44527d(0x1ad)](_0x35345e[_0x44527d(0x19a)]),_0x4321c9(0x1,_0x5b051f['Inject'](_0x5b051f[_0x44527d(0x154)])),_0x4321c9(0x2,_0x5b051f[_0x44527d(0x1f6)])],_0x5848de['UniverLiveSharePlugin']),_0x5848de[_0x44527d(0x145)]=_0x22d785,_0x5848de[_0x44527d(0x183)]=_0x5f1dbb,_0x5848de[_0x44527d(0x139)]=_0x5093ed,Object[_0x44527d(0x180)](_0x5848de,Symbol[_0x44527d(0x19d)],{'value':_0x44527d(0x15d)});}));function _0x4944(){var _0x2f5979=['univerjs-icon\x20univerjs-icon-','SetZoomRatioOperation','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','prototype','forwardRef','children','_commandService','map','colorChannel1','UNIVER_SHEET','Injector','_handleNewChangeSets','next','substring','jsxs','UNIVER_LIVE_SHARE_PLUGIN','registerComponent','override','_stopFollowing','Module','type','propertyIsEnumerable','2KJTeMl','univer-mb-3\x20univer-w-full\x20univer-text-sm','SessionStatus','function','clsx','Subject','_univerInstanceService','forEach','end','_handleOffline','attrs','@univerjs/ui','UniverSheetsUi','getLiveShareCoordinator','getTypeOfUnitAdded$','IUniverInstanceService','_configService','replace','_reporters','onRendered','Inject','9531EifYsX','disposeWithMe','300808nUfJxo','BuiltInUIPart','offline','UniverDesign','from','default','pipe','PRESENTING','following','defineProperty','unitId','executeCommand','LiveShareService','@univerjs/design','rxjs','_unitID','string','touchDependencies','button','stopPresenting','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','OFFLINE','UniverIcon','useDependency','delete','Button','_mountLiveShare','complete','div','You\x27are\x20offline.','@univerjs-pro/collaboration','extend','xlink:href','fill','UniverCollaborationClientPlugin','object','Start\x20following','toStringTag','Disposable','1295mFoDQe','@univerjs/sheets-ui','presenting','requireSession','CollaborationSessionService','none','getTypeOfUnitDisposed$','getOwnPropertySymbols','symbol','asObservable','init','includes','LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','DependentOn','has','You\x27re\x20not\x20following\x20the\x20presenter','16620qlPFsP','UniverProLiveShare','mask','status$','2695773ShNwkc','registerDependencies','tag','data','_handleTerminate','takeUntil','getCurrentTypeOfUnit$','1em','IUIPartsService','SetWorksheetActiveOperation','createElement','throttleTime','_handleOperation','37565jBzZEv','react/jsx-runtime','trim','values','UniverInstanceType','DesktopLiveShareController','getUnitId','_startFollowing','toString','RxDisposable','OPERATION','live-share-icon','assign','amd','get','react','_fetchOperations','Start','_commandDisposable','_collabSessionService','idle','_injector','_config','startFollowing','CommandType','_uiPartsService','_startPresenting','_startLiveShareCoordinator','0\x200\x2017\x2017','ICommandService','getOwnPropertyDescriptor','IDLE','operations','className','tryStartPresenting','registerSharedOperation','path','apply','InsertSheetMutation','BehaviorSubject','_entities','call','_stopPresenting','add','dispose','idSuffix','UniverLiveSharePlugin','toDisposable','ONLINE','length','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','dispose$','IConfigService','event$','_status$','params','displayName','parseProtocolChangeset','indexOf','univer-size-4','_beIdle','5844MxfIRV','live-share.config','@univerjs-pro/collaboration-client','getInitialStates','registerInitialStateReporter','unsubscribe','DisposableCollection','url(#$1','entries','LIVESHARE_OPERATION','_presenter','hasOwnProperty','UniverSheets','onCommandExecuted','concat','UniverProCollaboration','UNIVER_UNKNOWN','subscribe','not-following','currentColor','_status','React','Plugin','send','Stop\x20presenting','3112xdKceO','HEADER_MENU','createInstance','stringify','current','_handleNewHost','useRef','NEW_CHANGESETS','Dropdown','clear','760568QOjDOt','stopFollowing','LIVESHARE_TERMINATE','icon','getValue','memberID','Stop\x20following','NOT_FOLLOWING','UniverUi','@univerjs/sheets','Present\x20this\x20document','772600ARsKaz','onStarting','LiveShareIcon','_handleOnline','_collabSession','LiveShareController','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','presenter','FOLLOWING','then','shouldShareOperation','LiveShareStatus','@univerjs/core','Fragment','getMemberID','setConfig','UniverProCollaborationClient','_liveShareService','set','CollaborationEvent','defIds','_init','text','LiveShare','_sharedOperations','LiveShareCoordinator','20tjScJM','jsx'];_0x4944=function(){return _0x2f5979;};return _0x4944();}
|
|
1
|
+
function _0xceca(){var _0x53cdaa=['includes','operators','send','univer-size-4','current','div','Stop\x20following','complete','asObservable','1em','LIVESHARE_OPERATION','You\x27re\x20presenting\x20the\x20document','random','_status$','onStarting','onRendered','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','Inject','0\x200\x2017\x2017','@univerjs/ui','xlink:href','LiveShareIcon','defineProperty','696kYefOO','UniverUi','_handleOnline','getOwnPropertySymbols','UniverSheets','Button','Stop\x20presenting','SetZoomRatioOperation','22LKFygy','icon','function','rxjs/operators','_startFollowing','LiveShare','InsertSheetMutation','defIds','displayName','You\x27re\x20not\x20following\x20the\x20presenter','_presenter','forEach','_fetchOperations','_liveShareService','_startLiveShareCoordinator','BuiltInUIPart','get','_uiPartsService','You\x27are\x20offline.','DisposableCollection','exports','merge','_handleOperation','Subject','@univerjs/sheets-ui','94RjHUQP','UniverCollaborationClientPlugin','@univerjs/core','from','jsx','indexOf','subscribe','_sharedOperations','unitId','DesktopLiveShareController','getMemberID','set','LIVESHARE_REQUEST_HOST','onCommandExecuted','currentColor','RxDisposable','Plugin','connectInjector','Dropdown','IDLE','forwardRef','path','_commandService','univerjs-icon\x20univerjs-icon-','UNIVER_SHEET','shouldShareOperation','_configService','assign','presenter','React','following','dispose','getConfig','react/jsx-runtime','colorChannel1','throttleTime','string','mutations','tag','has','jsxs','SessionStatus','registerInitialStateReporter','parseProtocolChangeset','http://www.w3.org/2000/svg','prototype','dispose$','5305752eLXxgy','Start','setConfig','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getTypeOfUnitDisposed$','IConfigService','_mountLiveShare','UNIVER_UNKNOWN','button','LiveShareService','useDependency','@univerjs/design','registerSharedOperation','500970NiAsya','toDisposable','end','idSuffix','stopPresenting','pipe','_reporters','getUnitId','clear','entries','FOLLOWING','SetWorksheetActiveOperation','UniverProCollaborationClient','Fragment','trim','UniverCore','_injector','Injector','LiveShareCoordinator','getOwnPropertyDescriptor','delete','CollaborationEvent','symbol','stringify','svg','CommandType','then','getLiveShareCoordinator','reverse','6TuzOZr','add','sessionStatus$','Disposable','live-share.config','clsx','substring','takeUntil','useRef','@univerjs-pro/collaboration','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','default','idle','_commandDisposable','717890EgrOvf','_handleOffline','map','148454qCqYMB','startFollowing','offline','rxjs','LiveShareController','getInitialStates','createElement','UniverInstanceType','not-following','_unitID','executeCommand','replace','_startPresenting','fill','_handleNewHost','type','16710aJpnfc','UNIVER_LIVE_SHARE_PLUGIN','className','Present\x20this\x20document','tryStartPresenting','_init','pluginName','url(#$1','toString','OPERATION','UniverLiveSharePlugin','@univerjs-pro/collaboration-client','length','next','call','_entities','CollaborationSessionService','_collabSessionService','requireSession','_stopPresenting','1162516cJFVFQ','propertyIsEnumerable','status$','_handleNewChangeSets','children','params','LIVESHARE_TERMINATE','ICommandService','presenting','attrs','_config','sheet','_collabSession','hasOwnProperty','HEADER_MENU','_stopFollowing','8631uAXkIX','_status','mask','NOT_FOLLOWING','NEW_CHANGESETS','mergeOverrideWithDependencies','_beIdle','concat','IUniverInstanceService','react','UniverProCollaboration','extend','text','useState','UniverIcon','useObservable','getValue','_handleTerminate','_univerInstanceService','@univerjs/sheets','PRESENTING','live-share-icon','SetScrollOperation','UniverProLiveShare','touchDependencies','data','getCurrentTypeOfUnit$','OFFLINE','evenodd','amd'];_0xceca=function(){return _0x53cdaa;};return _0xceca();}function _0x12f7(_0x33c3b6,_0x148918){var _0xceca96=_0xceca();return _0x12f7=function(_0x12f731,_0x96bb2c){_0x12f731=_0x12f731-0xb9;var _0xe650fa=_0xceca96[_0x12f731];return _0xe650fa;},_0x12f7(_0x33c3b6,_0x148918);}(function(_0x26fed7,_0x57be41){var _0x5bf8f7=_0x12f7,_0x59c957=_0x26fed7();while(!![]){try{var _0xbc50c9=-parseInt(_0x5bf8f7(0xd3))/0x1+-parseInt(_0x5bf8f7(0x15e))/0x2*(parseInt(_0x5bf8f7(0xe3))/0x3)+parseInt(_0x5bf8f7(0xf7))/0x4+parseInt(_0x5bf8f7(0x19a))/0x5*(parseInt(_0x5bf8f7(0xc2))/0x6)+-parseInt(_0x5bf8f7(0x107))/0x7*(parseInt(_0x5bf8f7(0x13d))/0x8)+parseInt(_0x5bf8f7(0x18d))/0x9+-parseInt(_0x5bf8f7(0xd0))/0xa*(parseInt(_0x5bf8f7(0x145))/0xb);if(_0xbc50c9===_0x57be41)break;else _0x59c957['push'](_0x59c957['shift']());}catch(_0x258f8a){_0x59c957['push'](_0x59c957['shift']());}}}(_0xceca,0x4df1a),function(_0x51e5b1,_0x817353){var _0x16f2f6=_0x12f7;typeof exports=='object'&&typeof module<'u'?_0x817353(exports,require(_0x16f2f6(0xee)),require(_0x16f2f6(0x160)),require(_0x16f2f6(0x11a)),require(_0x16f2f6(0x15d)),require(_0x16f2f6(0x139)),require(_0x16f2f6(0x17f)),require(_0x16f2f6(0x198)),require(_0x16f2f6(0x110)),require(_0x16f2f6(0xcb)),require(_0x16f2f6(0xd6)),require(_0x16f2f6(0x148))):typeof define==_0x16f2f6(0x147)&&define[_0x16f2f6(0x124)]?define([_0x16f2f6(0x159),_0x16f2f6(0xee),_0x16f2f6(0x160),_0x16f2f6(0x11a),_0x16f2f6(0x15d),_0x16f2f6(0x139),_0x16f2f6(0x17f),_0x16f2f6(0x198),_0x16f2f6(0x110),_0x16f2f6(0xcb),_0x16f2f6(0xd6),'rxjs/operators'],_0x817353):(_0x51e5b1=typeof globalThis<'u'?globalThis:_0x51e5b1||self,_0x817353(_0x51e5b1[_0x16f2f6(0x11e)]={},_0x51e5b1[_0x16f2f6(0x1a6)],_0x51e5b1[_0x16f2f6(0x1a9)],_0x51e5b1[_0x16f2f6(0x141)],_0x51e5b1['UniverSheetsUi'],_0x51e5b1[_0x16f2f6(0x13e)],_0x51e5b1['React'],_0x51e5b1['UniverDesign'],_0x51e5b1[_0x16f2f6(0x17b)],_0x51e5b1[_0x16f2f6(0x111)],_0x51e5b1[_0x16f2f6(0xd6)],_0x51e5b1[_0x16f2f6(0xd6)][_0x16f2f6(0x126)]));}(this,function(_0x1abd0f,_0x4a416d,_0x5766ef,_0x11b35b,_0x4ec4a0,_0x40d51e,_0x134631,_0x3b938d,_0x42fe5d,_0x5d049f,_0x251619,_0x9db1d9){'use strict';var _0x2b9481=_0x12f7;var _0x15eecc=Object['defineProperty'],_0x1f1937=(_0x1077a2,_0x10154f,_0x357ddc)=>_0x10154f in _0x1077a2?_0x15eecc(_0x1077a2,_0x10154f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x357ddc}):_0x1077a2[_0x10154f]=_0x357ddc,_0x2e6a77=(_0x42400c,_0x3d58d3,_0x1969ca)=>_0x1f1937(_0x42400c,typeof _0x3d58d3!='symbol'?_0x3d58d3+'':_0x3d58d3,_0x1969ca);const _0x14cb19=_0x2b9481(0xc6),_0x5cd80b={};class _0x526444 extends _0x5766ef[_0x2b9481(0xc5)]{constructor(){super(...arguments),_0x2e6a77(this,'_sharedOperations',new Set()),_0x2e6a77(this,'_reporters',new Set());}[_0x2b9481(0x199)](_0x3970e3){var _0x4534bb=_0x2b9481;return this['_sharedOperations'][_0x4534bb(0xc3)](_0x3970e3),_0x5766ef[_0x4534bb(0x19b)](()=>this[_0x4534bb(0x165)]['delete'](_0x3970e3));}[_0x2b9481(0x188)](_0x427e03){var _0x1e565e=_0x2b9481;return this[_0x1e565e(0x1a0)][_0x1e565e(0xc3)](_0x427e03),_0x5766ef[_0x1e565e(0x19b)](()=>this['_reporters'][_0x1e565e(0xb9)](_0x427e03));}[_0x2b9481(0x177)](_0x370414){var _0x5c341d=_0x2b9481;return this[_0x5c341d(0x165)][_0x5c341d(0x185)](_0x370414);}[_0x2b9481(0xd8)](_0x2f1c75){var _0x39b3eb=_0x2b9481;return Array[_0x39b3eb(0x161)](this[_0x39b3eb(0x1a0)])[_0x39b3eb(0xd2)](_0x2f95c6=>_0x2f95c6(_0x2f1c75));}}var _0x48ab02=Object[_0x2b9481(0x1ad)],_0x1b496b=(_0x515999,_0xaaa631,_0x490f2c,_0x493655)=>{var _0x64041=_0x2b9481;for(var _0x484681=_0x493655>0x1?void 0x0:_0x493655?_0x48ab02(_0xaaa631,_0x490f2c):_0xaaa631,_0x75bae0=_0x515999[_0x64041(0xef)]-0x1,_0x56c70b;_0x75bae0>=0x0;_0x75bae0--)(_0x56c70b=_0x515999[_0x75bae0])&&(_0x484681=_0x56c70b(_0x484681)||_0x484681);return _0x484681;},_0x4a27d0=(_0x54aef6,_0x1de54d)=>(_0xa9b215,_0x28452b)=>_0x1de54d(_0xa9b215,_0x28452b,_0x54aef6);let _0x54c2ee=class extends _0x5766ef['Disposable']{constructor(_0x2f95fa){var _0x26ca2a=_0x2b9481;super(),this[_0x26ca2a(0x152)]=_0x2f95fa,this[_0x26ca2a(0xe8)]();}[_0x2b9481(0xe8)](){var _0x37f3db=_0x2b9481;[_0x4ec4a0[_0x37f3db(0x144)]['id'],_0x4ec4a0[_0x37f3db(0x11d)]['id'],_0x11b35b['SetWorksheetActiveOperation']['id']][_0x37f3db(0x150)](_0x1c9628=>{var _0x56ba68=_0x37f3db;this[_0x56ba68(0x136)](this[_0x56ba68(0x152)][_0x56ba68(0x199)](_0x1c9628));});}};_0x54c2ee=_0x1b496b([_0x4a27d0(0x0,_0x5766ef[_0x2b9481(0x137)](_0x526444))],_0x54c2ee);var _0x1e6282=function(){var _0x20a667=_0x2b9481;return _0x1e6282=Object[_0x20a667(0x179)]||function(_0x4a17f9){var _0x284170=_0x20a667;for(var _0x507199,_0x18d53f=0x1,_0x415d1a=arguments[_0x284170(0xef)];_0x18d53f<_0x415d1a;_0x18d53f++){_0x507199=arguments[_0x18d53f];for(var _0x567280 in _0x507199)Object[_0x284170(0x18b)][_0x284170(0x104)]['call'](_0x507199,_0x567280)&&(_0x4a17f9[_0x567280]=_0x507199[_0x567280]);}return _0x4a17f9;},_0x1e6282['apply'](this,arguments);},_0x58a0bb=function(_0x479cc9,_0x29a6d9){var _0x25d38c=_0x2b9481,_0x1d24a9={};for(var _0x408e77 in _0x479cc9)Object['prototype'][_0x25d38c(0x104)]['call'](_0x479cc9,_0x408e77)&&_0x29a6d9[_0x25d38c(0x163)](_0x408e77)<0x0&&(_0x1d24a9[_0x408e77]=_0x479cc9[_0x408e77]);if(_0x479cc9!=null&&typeof Object[_0x25d38c(0x140)]==_0x25d38c(0x147)){for(var _0x100aa2=0x0,_0x408e77=Object[_0x25d38c(0x140)](_0x479cc9);_0x100aa2<_0x408e77[_0x25d38c(0xef)];_0x100aa2++)_0x29a6d9[_0x25d38c(0x163)](_0x408e77[_0x100aa2])<0x0&&Object['prototype'][_0x25d38c(0xf8)][_0x25d38c(0xf1)](_0x479cc9,_0x408e77[_0x100aa2])&&(_0x1d24a9[_0x408e77[_0x100aa2]]=_0x479cc9[_0x408e77[_0x100aa2]]);}return _0x1d24a9;},_0x7eecb5=_0x42fe5d[_0x2b9481(0x172)](function(_0x5990d5,_0x10afdd){var _0x4c041d=_0x2b9481,_0x39d9a2=_0x5990d5['icon'],_0x36211b=_0x5990d5['id'],_0x5ea7a8=_0x5990d5['className'],_0xa1653c=_0x5990d5[_0x4c041d(0x112)],_0x1741ce=_0x58a0bb(_0x5990d5,[_0x4c041d(0x146),'id',_0x4c041d(0xe5),'extend']),_0xce4969=_0x4c041d(0x175)[_0x4c041d(0x10e)](_0x36211b,'\x20')[_0x4c041d(0x10e)](_0x5ea7a8||'')[_0x4c041d(0x1a8)](),_0xe36e48=_0x42fe5d[_0x4c041d(0xca)]('_'[_0x4c041d(0x10e)](_0x2aa9fe()));return _0x3c46d4(_0x39d9a2,''[_0x4c041d(0x10e)](_0x36211b),{'defIds':_0x39d9a2['defIds'],'idSuffix':_0xe36e48[_0x4c041d(0x129)]},_0x1e6282({'ref':_0x10afdd,'className':_0xce4969},_0x1741ce),_0xa1653c);});function _0x3c46d4(_0x1f5fd6,_0x2a5ce3,_0x2ffea8,_0x8eb1f2,_0x541621){var _0x55f918=_0x2b9481;return _0x42fe5d[_0x55f918(0xd9)](_0x1f5fd6[_0x55f918(0x184)],_0x1e6282(_0x1e6282({'key':_0x2a5ce3},_0x449aef(_0x1f5fd6,_0x2ffea8,_0x541621)),_0x8eb1f2),(_0x3a95aa(_0x1f5fd6,_0x2ffea8)[_0x55f918(0xfb)]||[])[_0x55f918(0xd2)](function(_0x4b5f47,_0x26c291){var _0x12b4cb=_0x55f918;return _0x3c46d4(_0x4b5f47,''[_0x12b4cb(0x10e)](_0x2a5ce3,'-')['concat'](_0x1f5fd6[_0x12b4cb(0x184)],'-')['concat'](_0x26c291),_0x2ffea8,void 0x0,_0x541621);}));}function _0x449aef(_0x4185cc,_0x48d9e9,_0x46d253){var _0x3c1c73=_0x2b9481,_0x394cbf=_0x1e6282({},_0x4185cc['attrs']);_0x46d253!=null&&_0x46d253[_0x3c1c73(0x180)]&&_0x394cbf['fill']===_0x3c1c73(0x180)&&(_0x394cbf[_0x3c1c73(0xe0)]=_0x46d253[_0x3c1c73(0x180)]),_0x4185cc[_0x3c1c73(0x184)]==='mask'&&_0x394cbf['id']&&(_0x394cbf['id']=_0x394cbf['id']+_0x48d9e9['idSuffix']),Object[_0x3c1c73(0x1a3)](_0x394cbf)[_0x3c1c73(0x150)](function(_0x2d7efc){var _0x31f327=_0x3c1c73,_0xd276df=_0x2d7efc[0x0],_0x439237=_0x2d7efc[0x1];_0xd276df===_0x31f327(0x109)&&typeof _0x439237==_0x31f327(0x182)&&(_0x394cbf[_0xd276df]=_0x439237[_0x31f327(0xde)](/url\(#(.*)\)/,'url(#$1'[_0x31f327(0x10e)](_0x48d9e9[_0x31f327(0x19d)],')')));});var _0x436710=_0x48d9e9[_0x3c1c73(0x14c)];return!_0x436710||_0x436710[_0x3c1c73(0xef)]===0x0||(_0x4185cc[_0x3c1c73(0x184)]==='use'&&_0x394cbf[_0x3c1c73(0x13a)]&&(_0x394cbf['xlink:href']=_0x394cbf[_0x3c1c73(0x13a)]+_0x48d9e9[_0x3c1c73(0x19d)]),Object[_0x3c1c73(0x1a3)](_0x394cbf)[_0x3c1c73(0x150)](function(_0x5b7ac4){var _0x5a0315=_0x3c1c73,_0x527f97=_0x5b7ac4[0x0],_0x1dc76d=_0x5b7ac4[0x1];typeof _0x1dc76d==_0x5a0315(0x182)&&(_0x394cbf[_0x527f97]=_0x1dc76d[_0x5a0315(0xde)](/url\(#(.*)\)/,_0x5a0315(0xea)['concat'](_0x48d9e9[_0x5a0315(0x19d)],')')));})),_0x394cbf;}function _0x3a95aa(_0x6c8ca,_0x19fea8){var _0x2e089a=_0x2b9481,_0x33ca85,_0x4f9255=_0x19fea8[_0x2e089a(0x14c)];return!_0x4f9255||_0x4f9255['length']===0x0?_0x6c8ca:_0x6c8ca[_0x2e089a(0x184)]==='defs'&&(!((_0x33ca85=_0x6c8ca['children'])===null||_0x33ca85===void 0x0)&&_0x33ca85[_0x2e089a(0xef)])?_0x1e6282(_0x1e6282({},_0x6c8ca),{'children':_0x6c8ca['children'][_0x2e089a(0xd2)](function(_0x3d5f14){var _0x108b2c=_0x2e089a;return typeof _0x3d5f14[_0x108b2c(0x100)]['id']==_0x108b2c(0x182)&&_0x4f9255&&_0x4f9255['includes'](_0x3d5f14[_0x108b2c(0x100)]['id'])?_0x1e6282(_0x1e6282({},_0x3d5f14),{'attrs':_0x1e6282(_0x1e6282({},_0x3d5f14[_0x108b2c(0x100)]),{'id':_0x3d5f14[_0x108b2c(0x100)]['id']+_0x19fea8['idSuffix']})}):_0x3d5f14;})}):_0x6c8ca;}function _0x2aa9fe(){var _0x49b4e1=_0x2b9481;return Math[_0x49b4e1(0x131)]()[_0x49b4e1(0xeb)](0x24)[_0x49b4e1(0xc8)](0x2,0x8);}_0x7eecb5['displayName']=_0x2b9481(0x115);var _0x57ca67={'tag':_0x2b9481(0xbd),'attrs':{'xmlns':_0x2b9481(0x18a),'fill':'none','viewBox':_0x2b9481(0x138),'width':_0x2b9481(0x12e),'height':'1em'},'children':[{'tag':_0x2b9481(0x173),'attrs':{'fill':_0x2b9481(0x16c),'d':_0x2b9481(0xcc)}},{'tag':_0x2b9481(0x173),'attrs':{'fill':_0x2b9481(0x16c),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x2b9481(0x123),'clipRule':_0x2b9481(0x123)}}]},_0x3c8585=_0x42fe5d['forwardRef'](function(_0x44c566,_0x219e08){var _0xca610a=_0x2b9481;return _0x42fe5d[_0xca610a(0xd9)](_0x7eecb5,Object[_0xca610a(0x179)]({},_0x44c566,{'id':_0xca610a(0x11c),'ref':_0x219e08,'icon':_0x57ca67}));});_0x3c8585[_0x2b9481(0x14d)]=_0x2b9481(0x13b);var _0x175efe=Object[_0x2b9481(0x1ad)],_0x2a54b9=(_0x5ac032,_0x212392,_0x6f03a,_0x24f315)=>{for(var _0x339cea=_0x24f315>0x1?void 0x0:_0x24f315?_0x175efe(_0x212392,_0x6f03a):_0x212392,_0x1531c7=_0x5ac032['length']-0x1,_0x4d6ea5;_0x1531c7>=0x0;_0x1531c7--)(_0x4d6ea5=_0x5ac032[_0x1531c7])&&(_0x339cea=_0x4d6ea5(_0x339cea)||_0x339cea);return _0x339cea;},_0x1ba595=(_0x2d6c00,_0x2aa6b5)=>(_0x1c1ae6,_0x3e8150)=>_0x2aa6b5(_0x1c1ae6,_0x3e8150,_0x2d6c00);_0x1abd0f['LiveShareController']=class extends _0x5766ef['RxDisposable']{constructor(_0x2e5a9e,_0x473a11,_0x1c304b){var _0x9c5deb=_0x2b9481;super(),_0x2e6a77(this,_0x9c5deb(0xf2),new Map()),(this['_univerInstanceService']=_0x2e5a9e,this['_injector']=_0x473a11,this[_0x9c5deb(0xf4)]=_0x1c304b,this[_0x9c5deb(0xe8)]());}async[_0x2b9481(0xc0)](_0x344fb8){var _0x1f4e4b=_0x2b9481;return this[_0x1f4e4b(0xf2)][_0x1f4e4b(0x185)](_0x344fb8)||await this[_0x1f4e4b(0x153)](_0x344fb8),this['_entities'][_0x1f4e4b(0x155)](_0x344fb8);}[_0x2b9481(0xe8)](){var _0x570700=_0x2b9481;this[_0x570700(0x119)]['getTypeOfUnitAdded$'](_0x5766ef[_0x570700(0xda)][_0x570700(0x176)])[_0x570700(0x19f)](_0x9db1d9[_0x570700(0xc9)](this[_0x570700(0x18c)]))[_0x570700(0x164)](async _0x3ddc15=>{var _0xe70503=_0x570700;const _0x51874b=_0x3ddc15[_0xe70503(0x1a1)]();this[_0xe70503(0xf2)][_0xe70503(0x185)](_0x51874b)||this[_0xe70503(0x153)](_0x51874b);}),this[_0x570700(0x119)][_0x570700(0x191)](_0x5766ef['UniverInstanceType'][_0x570700(0x176)])[_0x570700(0x19f)](_0x9db1d9['takeUntil'](this[_0x570700(0x18c)]))[_0x570700(0x164)](_0xe66a0d=>{var _0x3c67d5=_0x570700;const _0x1e6906=_0xe66a0d['getUnitId'](),_0xa80995=this['_entities'][_0x3c67d5(0x155)](_0x1e6906);_0xa80995==null||_0xa80995[_0x3c67d5(0x17d)]();});}async[_0x2b9481(0x153)](_0x173b17){var _0x484ad8=_0x2b9481;const _0x18f54f=await this[_0x484ad8(0xf4)][_0x484ad8(0xf5)](_0x173b17),_0x2e15fe=this[_0x484ad8(0x1aa)]['createInstance'](_0x1abd0f['LiveShareCoordinator'],_0x173b17,_0x18f54f);return _0x2e15fe['init'](),this['_entities']['set'](_0x173b17,_0x2e15fe),_0x2e15fe;}},_0x1abd0f[_0x2b9481(0xd7)]=_0x2a54b9([_0x1ba595(0x0,_0x5766ef[_0x2b9481(0x10f)]),_0x1ba595(0x1,_0x5766ef['Inject'](_0x5766ef['Injector'])),_0x1ba595(0x2,_0x5766ef[_0x2b9481(0x137)](_0x4a416d[_0x2b9481(0xf3)]))],_0x1abd0f[_0x2b9481(0xd7)]);var _0x1ab3d7=(_0x2528b2=>(_0x2528b2[_0x2b9481(0x122)]=_0x2b9481(0xd5),_0x2528b2[_0x2b9481(0x171)]=_0x2b9481(0xce),_0x2528b2['FOLLOWING']='following',_0x2528b2['NOT_FOLLOWING']='not-following',_0x2528b2[_0x2b9481(0x11b)]=_0x2b9481(0xff),_0x2528b2))(_0x1ab3d7||{});const _0x11196f='SAME_OPERATION_SHARE_INTERVAL',_0x2fec53=0xc8;_0x1abd0f[_0x2b9481(0x1ac)]=class extends _0x5766ef[_0x2b9481(0x16d)]{constructor(_0x123d7e,_0x4208bb,_0x2dbac1,_0x30e481,_0x69da64){var _0x1f3b06=_0x2b9481;super(),_0x2e6a77(this,_0x1f3b06(0x132),new _0x251619['BehaviorSubject'](_0x1f3b06(0xce))),_0x2e6a77(this,_0x1f3b06(0xf9),this['_status$'][_0x1f3b06(0x12d)]()),_0x2e6a77(this,_0x1f3b06(0xe8),!0x1),_0x2e6a77(this,_0x1f3b06(0xcf),null),_0x2e6a77(this,_0x1f3b06(0x14f),null),(this[_0x1f3b06(0xdc)]=_0x123d7e,this[_0x1f3b06(0x103)]=_0x4208bb,this[_0x1f3b06(0x178)]=_0x2dbac1,this['_liveShareService']=_0x30e481,this[_0x1f3b06(0x174)]=_0x69da64);}get[_0x2b9481(0x108)](){var _0x4b3e4b=_0x2b9481;return this[_0x4b3e4b(0x132)][_0x4b3e4b(0x117)]();}[_0x2b9481(0x17d)](){var _0x346d95=_0x2b9481,_0x5c650e;(_0x5c650e=this[_0x346d95(0xcf)])==null||_0x5c650e[_0x346d95(0x17d)](),this['_status$']['next'](_0x346d95(0xce)),this[_0x346d95(0x132)][_0x346d95(0x12c)]();}['init'](){var _0x5ae4cc=_0x2b9481;this[_0x5ae4cc(0xe8)]||(this[_0x5ae4cc(0xe8)]=!0x0,this[_0x5ae4cc(0x103)][_0x5ae4cc(0xc4)][_0x5ae4cc(0x19f)](_0x9db1d9[_0x5ae4cc(0xc9)](this[_0x5ae4cc(0x18c)]))[_0x5ae4cc(0x164)](_0x11f314=>{var _0x259c02=_0x5ae4cc;switch(_0x11f314){case _0x4a416d[_0x259c02(0x187)][_0x259c02(0x122)]:this[_0x259c02(0xd1)]();break;case _0x4a416d[_0x259c02(0x187)]['ONLINE']:this[_0x259c02(0x13f)]();break;}}),this['_collabSession']['event$'][_0x5ae4cc(0x19f)](_0x9db1d9[_0x5ae4cc(0xc9)](this['dispose$']))['subscribe'](_0x28d9c6=>{var _0x2a27b9=_0x5ae4cc;const {eventID:_0x435879}=_0x28d9c6;switch(_0x435879){case _0x5d049f[_0x2a27b9(0xba)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x28d9c6);break;case _0x5d049f[_0x2a27b9(0xba)][_0x2a27b9(0x12f)]:this[_0x2a27b9(0x15b)](_0x28d9c6);break;case _0x5d049f[_0x2a27b9(0xba)][_0x2a27b9(0xfd)]:this[_0x2a27b9(0x118)]();break;case _0x5d049f[_0x2a27b9(0xba)][_0x2a27b9(0x10b)]:this[_0x2a27b9(0xfa)](_0x28d9c6);break;}}));}['tryStartPresenting'](){var _0x3d734e=_0x2b9481;this[_0x3d734e(0x103)]['send']({'eventID':_0x5d049f['CollaborationEvent'][_0x3d734e(0x16a)],'data':{'unitID':this[_0x3d734e(0xdc)],'userID':this['_collabSession'][_0x3d734e(0x168)]()}},this['_unitID']);}[_0x2b9481(0x19e)](){var _0x40ad50=_0x2b9481;this[_0x40ad50(0x108)]==='presenting'&&(this[_0x40ad50(0x132)][_0x40ad50(0xf0)](_0x40ad50(0xce)),this['_collabSession'][_0x40ad50(0x127)]({'eventID':_0x5d049f[_0x40ad50(0xba)][_0x40ad50(0xfd)],'data':{'unitID':this[_0x40ad50(0xdc)]}},this[_0x40ad50(0xdc)]));}['startFollowing'](){var _0x13ca55=_0x2b9481;this[_0x13ca55(0x108)]===_0x13ca55(0xdb)&&(this[_0x13ca55(0x132)][_0x13ca55(0xf0)](_0x13ca55(0x17c)),this['_startFollowing']());}['stopFollowing'](){var _0x1526f0=_0x2b9481;this[_0x1526f0(0x108)]===_0x1526f0(0x17c)&&this[_0x1526f0(0x106)]();}[_0x2b9481(0xe1)](_0x2b44ca){var _0x666079=_0x2b9481;const {presenter:_0x938be4}=_0x2b44ca[_0x666079(0x120)],_0x3b5bfb=this['_collabSession'][_0x666079(0x168)]();this[_0x666079(0x14f)]=_0x938be4,_0x938be4===_0x3b5bfb?(this['_stopFollowing'](),this[_0x666079(0xdf)]()):this[_0x666079(0x108)]!=='not-following'&&(this['_stopPresenting'](),this[_0x666079(0x149)]());}[_0x2b9481(0x151)](){var _0xdc2f71=_0x2b9481;const _0x3531d9={'eventID':_0x5d049f[_0xdc2f71(0xba)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0xdc2f71(0x127)](_0x3531d9,this[_0xdc2f71(0xdc)]);}[_0x2b9481(0x118)](){var _0x6ef98d=_0x2b9481;this[_0x6ef98d(0x14f)]=null,this[_0x6ef98d(0x108)]!=='presenting'&&this['_beIdle']();}[_0x2b9481(0xfa)](_0x1b9cda){var _0x3bc97a=_0x2b9481;if(this['_status']==='following'&&this[_0x3bc97a(0x14f)]===_0x1b9cda[_0x3bc97a(0x120)]['memberID']){const _0x98ed26=_0x5d049f[_0x3bc97a(0x189)](_0x1b9cda[_0x3bc97a(0x120)])[_0x3bc97a(0x183)][_0x3bc97a(0xc1)]()['find'](_0x2993b2=>_0x2993b2['id']===_0x11b35b[_0x3bc97a(0x14b)]['id']);if(_0x98ed26){const _0x594209=_0x98ed26[_0x3bc97a(0xfc)][_0x3bc97a(0x166)],_0x1942f7=_0x98ed26[_0x3bc97a(0xfc)][_0x3bc97a(0x102)]['id'];setTimeout(()=>{var _0x43b6dc=_0x3bc97a;this[_0x43b6dc(0x174)][_0x43b6dc(0xdd)](_0x11b35b[_0x43b6dc(0x1a5)]['id'],{'unitId':_0x594209,'subUnitId':_0x1942f7},{'fromCollab':!0x0});});}}}[_0x2b9481(0xdf)](){var _0x28b226=_0x2b9481;this[_0x28b226(0x132)][_0x28b226(0xf0)](_0x28b226(0xff));const _0x1c8bf2=new Map(),_0x501975=this[_0x28b226(0xcf)]=new _0x5766ef[(_0x28b226(0x158))]();_0x501975[_0x28b226(0xc3)](_0x5766ef[_0x28b226(0x19b)](()=>{var _0x214548=_0x28b226;_0x1c8bf2[_0x214548(0x150)](_0x1e4aa0=>_0x1e4aa0[_0x214548(0x12c)]()),_0x1c8bf2[_0x214548(0x1a2)]();})),_0x501975['add'](this[_0x28b226(0x174)][_0x28b226(0x16b)](_0x11027e=>{var _0x593758=_0x28b226,_0x1056ac;if(_0x11027e[_0x593758(0xe2)]!==_0x5766ef[_0x593758(0xbe)][_0x593758(0xec)]||!this[_0x593758(0x152)]['shouldShareOperation'](_0x11027e['id']))return;const {id:_0x3d3c83}=_0x11027e;let _0x57a7bf;_0x1c8bf2[_0x593758(0x185)](_0x3d3c83)?_0x57a7bf=_0x1c8bf2['get'](_0x3d3c83):(_0x57a7bf=new _0x251619[(_0x593758(0x15c))](),_0x1c8bf2[_0x593758(0x169)](_0x3d3c83,_0x57a7bf),_0x57a7bf[_0x593758(0x19f)](_0x9db1d9[_0x593758(0x181)]((_0x1056ac=this['_configService'][_0x593758(0x17e)](_0x11196f))!=null?_0x1056ac:_0x2fec53,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x593758(0x164)](_0x22a642=>{var _0x415e8d=_0x593758;this[_0x415e8d(0x103)][_0x415e8d(0x127)]({'eventID':_0x5d049f[_0x415e8d(0xba)][_0x415e8d(0x12f)],'data':{'unitID':this[_0x415e8d(0xdc)],'operations':{[_0x22a642['id']]:{'id':_0x22a642['id'],'params':JSON[_0x415e8d(0xbc)](_0x22a642[_0x415e8d(0xfc)])}}}},this[_0x415e8d(0xdc)]);})),_0x57a7bf['next'](_0x11027e);})),this[_0x28b226(0x152)]['getInitialStates'](this[_0x28b226(0xdc)])[_0x28b226(0x150)](_0x23e24c=>this[_0x28b226(0x103)]['send']({'eventID':_0x5d049f['CollaborationEvent'][_0x28b226(0x12f)],'data':{'unitID':this[_0x28b226(0xdc)],'operations':{[_0x23e24c['id']]:{'id':_0x23e24c['id'],'params':JSON[_0x28b226(0xbc)](_0x23e24c[_0x28b226(0xfc)])}}}},this['_unitID']));}[_0x2b9481(0xf6)](){var _0x142e74=_0x2b9481,_0x253186;this[_0x142e74(0x132)][_0x142e74(0xf0)](_0x142e74(0xce)),(_0x253186=this[_0x142e74(0xcf)])==null||_0x253186[_0x142e74(0x17d)](),this['_commandDisposable']=null;}[_0x2b9481(0x149)](){var _0x4264b0=_0x2b9481,_0x542239;(_0x542239=this[_0x4264b0(0xcf)])==null||_0x542239['dispose'](),this[_0x4264b0(0x132)]['next'](_0x4264b0(0x17c));}[_0x2b9481(0x10d)](){var _0x27e7e6=_0x2b9481,_0x1027a5;this[_0x27e7e6(0x132)][_0x27e7e6(0xf0)]('idle'),(_0x1027a5=this[_0x27e7e6(0xcf)])==null||_0x1027a5[_0x27e7e6(0x17d)](),this[_0x27e7e6(0xcf)]=null;}['_stopFollowing'](){var _0x40df74=_0x2b9481,_0x3393a3;this[_0x40df74(0x132)][_0x40df74(0xf0)](_0x40df74(0xdb)),(_0x3393a3=this[_0x40df74(0xcf)])==null||_0x3393a3[_0x40df74(0x17d)]();}[_0x2b9481(0x15b)](_0x383f9f){var _0x193506=_0x2b9481;if(['presenting',_0x193506(0xdb),_0x193506(0xd5)][_0x193506(0x125)](this[_0x193506(0x108)])||!_0x383f9f[_0x193506(0x120)][_0x193506(0x17a)]||_0x383f9f[_0x193506(0x120)]['presenter']===this[_0x193506(0x103)][_0x193506(0x168)]())return;this[_0x193506(0x108)]===_0x193506(0xce)&&this[_0x193506(0x149)]();const _0x43077e=_0x383f9f[_0x193506(0x120)]['operations'];Object['values'](_0x43077e)[_0x193506(0x150)](_0x331a87=>{var _0x2eaf17=_0x193506;this['_commandService'][_0x2eaf17(0xdd)](_0x331a87['id'],_0x331a87[_0x2eaf17(0xfc)]?JSON['parse'](_0x331a87[_0x2eaf17(0xfc)]):null,{'fromCollab':!0x0});});}[_0x2b9481(0xd1)](){var _0x4792c3=_0x2b9481,_0x210fa8;this[_0x4792c3(0x132)][_0x4792c3(0xf0)](_0x4792c3(0xd5)),(_0x210fa8=this['_commandDisposable'])==null||_0x210fa8[_0x4792c3(0x17d)]();}[_0x2b9481(0x13f)](){var _0x3e9b14=_0x2b9481;this['_status$'][_0x3e9b14(0xf0)]('idle'),this[_0x3e9b14(0x151)]();}},_0x1abd0f[_0x2b9481(0x1ac)]=_0x2a54b9([_0x1ba595(0x2,_0x5766ef[_0x2b9481(0x192)]),_0x1ba595(0x3,_0x5766ef['Inject'](_0x526444)),_0x1ba595(0x4,_0x5766ef[_0x2b9481(0xfe)])],_0x1abd0f['LiveShareCoordinator']);function _0x72c79d(){var _0x33ecdf=_0x2b9481;const _0x239b8c=_0x40d51e[_0x33ecdf(0x197)](_0x1abd0f[_0x33ecdf(0xd7)]),_0x4b89c6=_0x40d51e[_0x33ecdf(0x197)](_0x5766ef[_0x33ecdf(0x10f)]),_0x422df1=_0x40d51e[_0x33ecdf(0x116)](()=>_0x4b89c6[_0x33ecdf(0x121)](_0x5766ef[_0x33ecdf(0xda)][_0x33ecdf(0x176)]),void 0x0,!0x1,[]),[_0x135fe1,_0x27aa43]=_0x42fe5d[_0x33ecdf(0x114)](null),[_0x36455e,_0x1425a4]=_0x42fe5d['useState'](_0x1ab3d7['IDLE']),_0x264d65=_0x42fe5d[_0x33ecdf(0xca)](null);return _0x42fe5d['useEffect'](()=>(_0x422df1&&_0x239b8c['getLiveShareCoordinator'](_0x422df1[_0x33ecdf(0x1a1)]())[_0x33ecdf(0xbf)](_0x5b65fb=>{_0x27aa43(_0x5b65fb),_0x264d65['current']=_0x5b65fb['status$']['subscribe'](_0x234139=>{_0x1425a4(_0x234139);});}),()=>{var _0x320ee2;(_0x320ee2=_0x264d65['current'])==null||_0x320ee2['unsubscribe'](),_0x264d65['current']=null;}),[_0x422df1,_0x239b8c]),_0x135fe1?_0x134631[_0x33ecdf(0x162)](_0x3b938d[_0x33ecdf(0x170)],{'align':_0x33ecdf(0x19c),'disabled':_0x36455e===_0x1ab3d7[_0x33ecdf(0x122)],'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':_0x134631[_0x33ecdf(0x162)](_0x5d2d73,{'status':_0x36455e,'coordinator':_0x135fe1}),'children':_0x134631['jsx'](_0x33ecdf(0x195),{'className':_0x3b938d[_0x33ecdf(0xc7)](_0x33ecdf(0x190),{'univer-cursor-not-allowed':_0x36455e===_0x1ab3d7['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x36455e!==_0x1ab3d7['OFFLINE']}),'type':_0x33ecdf(0x195),'children':_0x134631[_0x33ecdf(0x162)](_0x3c8585,{'className':_0x33ecdf(0x128)})})}):null;}function _0x5d2d73(_0x285a85){var _0x98f20c=_0x2b9481;const {status:_0x30bd77,coordinator:_0x2e4ad8}=_0x285a85;switch(_0x30bd77){case _0x1ab3d7[_0x98f20c(0x171)]:return _0x134631[_0x98f20c(0x162)](_0x3fa052,{'coordinator':_0x2e4ad8});case _0x1ab3d7[_0x98f20c(0x1a4)]:return _0x134631[_0x98f20c(0x162)](_0x1b9002,{'coordinator':_0x2e4ad8});case _0x1ab3d7[_0x98f20c(0x10a)]:return _0x134631[_0x98f20c(0x162)](_0x58a760,{'coordinator':_0x2e4ad8});case _0x1ab3d7['OFFLINE']:return _0x134631[_0x98f20c(0x162)](_0xbf3229,{});case _0x1ab3d7[_0x98f20c(0x11b)]:return _0x134631[_0x98f20c(0x162)](_0x7e42e8,{'coordinator':_0x2e4ad8});default:return null;}}function _0x3fa052(_0x5d7b93){var _0x5de3e4=_0x2b9481;const {coordinator:_0x314686}=_0x5d7b93;return _0x134631['jsxs'](_0x134631['Fragment'],{'children':[_0x134631[_0x5de3e4(0x162)](_0x5de3e4(0x12a),{'className':_0x5de3e4(0x135),'children':_0x5de3e4(0xe6)}),_0x134631[_0x5de3e4(0x162)](_0x3b938d[_0x5de3e4(0x142)],{'onClick':()=>_0x314686[_0x5de3e4(0xe7)](),'children':_0x5de3e4(0x18e)})]});}function _0x1b9002(_0x232eec){var _0x13821e=_0x2b9481;const {coordinator:_0x433014}=_0x232eec;return _0x134631[_0x13821e(0x186)](_0x134631['Fragment'],{'children':[_0x134631[_0x13821e(0x162)](_0x13821e(0x12a),{'className':_0x13821e(0x135),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x134631['jsx'](_0x3b938d[_0x13821e(0x142)],{'onClick':()=>_0x433014['stopFollowing'](),'children':_0x13821e(0x12b)})]});}function _0x58a760(_0x2cbf75){var _0x3d6e1e=_0x2b9481;const {coordinator:_0x233434}=_0x2cbf75;return _0x134631[_0x3d6e1e(0x186)](_0x134631[_0x3d6e1e(0x1a7)],{'children':[_0x134631[_0x3d6e1e(0x162)](_0x3d6e1e(0x12a),{'className':_0x3d6e1e(0x135),'children':_0x3d6e1e(0x14e)}),_0x134631[_0x3d6e1e(0x162)](_0x3b938d[_0x3d6e1e(0x142)],{'variant':_0x3d6e1e(0x113),'onClick':()=>_0x233434[_0x3d6e1e(0xd4)](),'children':'Start\x20following'})]});}function _0x7e42e8(_0xb1e76){var _0x436bb1=_0x2b9481;const {coordinator:_0xd6baaf}=_0xb1e76;return _0x134631[_0x436bb1(0x186)](_0x134631['Fragment'],{'children':[_0x134631['jsx'](_0x436bb1(0x12a),{'className':_0x436bb1(0x135),'children':_0x436bb1(0x130)}),_0x134631[_0x436bb1(0x162)](_0x3b938d[_0x436bb1(0x142)],{'variant':_0x436bb1(0xcd),'onClick':()=>_0xd6baaf[_0x436bb1(0x19e)](),'children':_0x436bb1(0x143)})]});}function _0xbf3229(){var _0x4240b7=_0x2b9481;return _0x134631[_0x4240b7(0x162)](_0x134631[_0x4240b7(0x1a7)],{'children':_0x4240b7(0x157)});}var _0x1143a0=Object[_0x2b9481(0x1ad)],_0x2bf8a4=(_0x4bcac1,_0x48bc0c,_0xd094fb,_0x1005aa)=>{var _0x599a42=_0x2b9481;for(var _0x1e3454=_0x1005aa>0x1?void 0x0:_0x1005aa?_0x1143a0(_0x48bc0c,_0xd094fb):_0x48bc0c,_0x3b7887=_0x4bcac1[_0x599a42(0xef)]-0x1,_0x1fcaf3;_0x3b7887>=0x0;_0x3b7887--)(_0x1fcaf3=_0x4bcac1[_0x3b7887])&&(_0x1e3454=_0x1fcaf3(_0x1e3454)||_0x1e3454);return _0x1e3454;},_0x51632d=(_0x6c4a8e,_0x1dbb9b)=>(_0x2f9022,_0x370f5b)=>_0x1dbb9b(_0x2f9022,_0x370f5b,_0x6c4a8e);_0x1abd0f[_0x2b9481(0x167)]=class extends _0x5766ef[_0x2b9481(0xc5)]{constructor(_0x1aaf69,_0x34f5c6){var _0x43027a=_0x2b9481;super(),this['_injector']=_0x1aaf69,this[_0x43027a(0x156)]=_0x34f5c6,this['_mountLiveShare']();}[_0x2b9481(0x193)](){var _0x5e08de=_0x2b9481;this[_0x5e08de(0x136)](this[_0x5e08de(0x156)]['registerComponent'](_0x40d51e[_0x5e08de(0x154)][_0x5e08de(0x105)],()=>_0x40d51e[_0x5e08de(0x16f)](_0x72c79d,this['_injector'])));}},_0x1abd0f[_0x2b9481(0x167)]=_0x2bf8a4([_0x51632d(0x0,_0x5766ef[_0x2b9481(0x137)](_0x5766ef[_0x2b9481(0x1ab)])),_0x51632d(0x1,_0x40d51e['IUIPartsService'])],_0x1abd0f[_0x2b9481(0x167)]);var _0x459af6=Object[_0x2b9481(0x13c)],_0x4ad8cd=Object[_0x2b9481(0x1ad)],_0xed0ab1=(_0x3c0b43,_0x4e497a,_0x162ca4)=>_0x4e497a in _0x3c0b43?_0x459af6(_0x3c0b43,_0x4e497a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x162ca4}):_0x3c0b43[_0x4e497a]=_0x162ca4,_0x214d42=(_0x2544bf,_0x3b7b71,_0x2cd518,_0x4787de)=>{var _0xeefdf8=_0x2b9481;for(var _0xb589b=_0x4787de>0x1?void 0x0:_0x4787de?_0x4ad8cd(_0x3b7b71,_0x2cd518):_0x3b7b71,_0x95e41f=_0x2544bf[_0xeefdf8(0xef)]-0x1,_0x2bf06d;_0x95e41f>=0x0;_0x95e41f--)(_0x2bf06d=_0x2544bf[_0x95e41f])&&(_0xb589b=_0x2bf06d(_0xb589b)||_0xb589b);return _0xb589b;},_0x711649=(_0x194074,_0xc0e6d2)=>(_0x1852ff,_0x1dcb6b)=>_0xc0e6d2(_0x1852ff,_0x1dcb6b,_0x194074),_0x42146e=(_0x200829,_0x3bccb4,_0x585cdd)=>_0xed0ab1(_0x200829,typeof _0x3bccb4!=_0x2b9481(0xbb)?_0x3bccb4+'':_0x3bccb4,_0x585cdd);const _0x4c8b53=_0x2b9481(0xe4);_0x1abd0f[_0x2b9481(0xed)]=class extends _0x5766ef[_0x2b9481(0x16e)]{constructor(_0x3a59cd=_0x5cd80b,_0x5ae4c8,_0x1355de){var _0x567656=_0x2b9481;super(),this[_0x567656(0x101)]=_0x3a59cd,this[_0x567656(0x1aa)]=_0x5ae4c8,this['_configService']=_0x1355de;const {..._0x29c58e}=_0x5766ef[_0x567656(0x15a)]({},_0x5cd80b,this['_config']);this['_configService'][_0x567656(0x18f)](_0x14cb19,_0x29c58e);}[_0x2b9481(0x133)](){var _0x3896b3=_0x2b9481;_0x5766ef['registerDependencies'](this[_0x3896b3(0x1aa)],_0x5766ef[_0x3896b3(0x10c)]([[_0x526444],[_0x1abd0f[_0x3896b3(0xd7)]],[_0x54c2ee],[_0x1abd0f['DesktopLiveShareController']]],this[_0x3896b3(0x101)]['override'])),_0x5766ef['touchDependencies'](this[_0x3896b3(0x1aa)],[[_0x54c2ee]]);}[_0x2b9481(0x134)](){var _0x1fc37d=_0x2b9481;_0x5766ef[_0x1fc37d(0x11f)](this['_injector'],[[_0x1abd0f['DesktopLiveShareController']]]);}},_0x42146e(_0x1abd0f[_0x2b9481(0xed)],_0x2b9481(0xe2),_0x5766ef['UniverInstanceType'][_0x2b9481(0x194)]),_0x42146e(_0x1abd0f[_0x2b9481(0xed)],_0x2b9481(0xe9),_0x4c8b53),_0x1abd0f['UniverLiveSharePlugin']=_0x214d42([_0x5766ef['DependentOn'](_0x4a416d[_0x2b9481(0x15f)]),_0x711649(0x1,_0x5766ef['Inject'](_0x5766ef[_0x2b9481(0x1ab)])),_0x711649(0x2,_0x5766ef[_0x2b9481(0x192)])],_0x1abd0f[_0x2b9481(0xed)]),_0x1abd0f[_0x2b9481(0x14a)]=_0x72c79d,_0x1abd0f[_0x2b9481(0x196)]=_0x526444,_0x1abd0f['LiveShareStatus']=_0x1ab3d7,Object[_0x2b9481(0x13c)](_0x1abd0f,Symbol['toStringTag'],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.1-nightly.
|
|
3
|
+
"version": "0.8.1-nightly.202506181607",
|
|
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.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.1-nightly.
|
|
51
|
-
"@univerjs/core": "0.8.1-nightly.
|
|
52
|
-
"@univerjs/design": "0.8.1-nightly.
|
|
53
|
-
"@univerjs/sheets": "0.8.1-nightly.
|
|
54
|
-
"@univerjs
|
|
55
|
-
"@univerjs/ui": "0.8.1-nightly.
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.8.1-nightly.202506181607",
|
|
51
|
+
"@univerjs/core": "0.8.1-nightly.202506181607",
|
|
52
|
+
"@univerjs/design": "0.8.1-nightly.202506181607",
|
|
53
|
+
"@univerjs/sheets-ui": "0.8.1-nightly.202506181607",
|
|
54
|
+
"@univerjs/sheets": "0.8.1-nightly.202506181607",
|
|
55
|
+
"@univerjs/ui": "0.8.1-nightly.202506181607",
|
|
56
|
+
"@univerjs-pro/collaboration": "0.8.1-nightly.202506181607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.5",
|