@univerjs-pro/live-share 0.8.0-nightly.202506061607 → 0.8.0-nightly.202506081606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x1ca2b5=_0x4c69;(function(_0x565f36,_0x196611){var _0x3ba70c=_0x4c69,_0xe4bc65=_0x565f36();while(!![]){try{var _0x1734b8=parseInt(_0x3ba70c(0x1da))/0x1+-parseInt(_0x3ba70c(0x20d))/0x2+parseInt(_0x3ba70c(0x1ab))/0x3+-parseInt(_0x3ba70c(0x184))/0x4+parseInt(_0x3ba70c(0x1de))/0x5*(parseInt(_0x3ba70c(0x1a1))/0x6)+-parseInt(_0x3ba70c(0x237))/0x7*(parseInt(_0x3ba70c(0x21f))/0x8)+parseInt(_0x3ba70c(0x214))/0x9;if(_0x1734b8===_0x196611)break;else _0xe4bc65['push'](_0xe4bc65['shift']());}catch(_0x4e72dd){_0xe4bc65['push'](_0xe4bc65['shift']());}}}(_0x5d2c,0x5a12f));var U=Object[_0x1ca2b5(0x185)],F=(_0x35db83,_0xcc967a,_0x59ac7a)=>_0xcc967a in _0x35db83?U(_0x35db83,_0xcc967a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59ac7a}):_0x35db83[_0xcc967a]=_0x59ac7a,v=(_0x1253da,_0x3ba618,_0x37f3e2)=>F(_0x1253da,typeof _0x3ba618!=_0x1ca2b5(0x21a)?_0x3ba618+'':_0x3ba618,_0x37f3e2);Object[_0x1ca2b5(0x185)](exports,Symbol[_0x1ca2b5(0x1b9)],{'value':_0x1ca2b5(0x1ef)});function _0x4c69(_0x145e6e,_0x50c68f){var _0x5d2ceb=_0x5d2c();return _0x4c69=function(_0x4c6977,_0x188199){_0x4c6977=_0x4c6977-0x167;var _0x54e83a=_0x5d2ceb[_0x4c6977];return _0x54e83a;},_0x4c69(_0x145e6e,_0x50c68f);}const m=require('@univerjs-pro/collaboration-client'),o=require(_0x1ca2b5(0x1a9)),C=require(_0x1ca2b5(0x1c9)),w=require('@univerjs/sheets-ui'),p=require(_0x1ca2b5(0x1d3)),l=require(_0x1ca2b5(0x1ad)),g=require(_0x1ca2b5(0x205)),f=require(_0x1ca2b5(0x208)),_=require(_0x1ca2b5(0x242)),D=require(_0x1ca2b5(0x1f0)),b=require(_0x1ca2b5(0x1c7)),$=_0x1ca2b5(0x18e),x={};class O extends o[_0x1ca2b5(0x1df)]{constructor(){var _0x32d9aa=_0x1ca2b5;super(...arguments),v(this,_0x32d9aa(0x212),new Set()),v(this,_0x32d9aa(0x1a3),new Set());}['registerSharedOperation'](_0x34cfbf){var _0x397e84=_0x1ca2b5;return this['_sharedOperations']['add'](_0x34cfbf),o['toDisposable'](()=>this['_sharedOperations'][_0x397e84(0x1a7)](_0x34cfbf));}[_0x1ca2b5(0x21b)](_0x1c814e){var _0x5523e0=_0x1ca2b5;return this[_0x5523e0(0x1a3)]['add'](_0x1c814e),o['toDisposable'](()=>this[_0x5523e0(0x1a3)][_0x5523e0(0x1a7)](_0x1c814e));}[_0x1ca2b5(0x24b)](_0x346194){var _0x3bd888=_0x1ca2b5;return this[_0x3bd888(0x212)]['has'](_0x346194);}[_0x1ca2b5(0x17b)](_0x50f4c3){var _0x7add91=_0x1ca2b5;return Array[_0x7add91(0x1e7)](this[_0x7add91(0x1a3)])['map'](_0xa3cabf=>_0xa3cabf(_0x50f4c3));}}var H=Object[_0x1ca2b5(0x209)],V=(_0x186aac,_0xfb0ae4,_0x20433b,_0x1dd9b0)=>{var _0x3ae611=_0x1ca2b5;for(var _0x2351c0=_0x1dd9b0>0x1?void 0x0:_0x1dd9b0?H(_0xfb0ae4,_0x20433b):_0xfb0ae4,_0x54c58f=_0x186aac[_0x3ae611(0x1d7)]-0x1,_0x495251;_0x54c58f>=0x0;_0x54c58f--)(_0x495251=_0x186aac[_0x54c58f])&&(_0x2351c0=_0x495251(_0x2351c0)||_0x2351c0);return _0x2351c0;},k=(_0x314d37,_0x5c6415)=>(_0xd9666b,_0x409c18)=>_0x5c6415(_0xd9666b,_0x409c18,_0x314d37);let E=class extends o[_0x1ca2b5(0x1df)]{constructor(_0x50177a){var _0x18a69e=_0x1ca2b5;super(),this['_liveShareService']=_0x50177a,this[_0x18a69e(0x23c)]();}['_init'](){var _0x1825e7=_0x1ca2b5;[w[_0x1825e7(0x1fa)]['id'],w[_0x1825e7(0x1e6)]['id'],C[_0x1825e7(0x245)]['id']][_0x1825e7(0x1d9)](_0x1ea1d8=>{var _0x56afae=_0x1825e7;this['disposeWithMe'](this[_0x56afae(0x18f)][_0x56afae(0x1bf)](_0x1ea1d8));});}};E=V([k(0x0,o[_0x1ca2b5(0x1e1)](O))],E);var u=function(){var _0x20f87c=_0x1ca2b5;return u=Object[_0x20f87c(0x217)]||function(_0x329e69){var _0x5521cb=_0x20f87c;for(var _0xe85b0e,_0xac0632=0x1,_0xd27667=arguments[_0x5521cb(0x1d7)];_0xac0632<_0xd27667;_0xac0632++){_0xe85b0e=arguments[_0xac0632];for(var _0x25e334 in _0xe85b0e)Object[_0x5521cb(0x23b)]['hasOwnProperty'][_0x5521cb(0x1b0)](_0xe85b0e,_0x25e334)&&(_0x329e69[_0x25e334]=_0xe85b0e[_0x25e334]);}return _0x329e69;},u[_0x20f87c(0x1aa)](this,arguments);},M=function(_0x1b78d5,_0x55440b){var _0x1a8dce=_0x1ca2b5,_0x20aff3={};for(var _0x4fae88 in _0x1b78d5)Object[_0x1a8dce(0x23b)][_0x1a8dce(0x238)][_0x1a8dce(0x1b0)](_0x1b78d5,_0x4fae88)&&_0x55440b[_0x1a8dce(0x188)](_0x4fae88)<0x0&&(_0x20aff3[_0x4fae88]=_0x1b78d5[_0x4fae88]);if(_0x1b78d5!=null&&typeof Object[_0x1a8dce(0x1af)]=='function'){for(var _0x16ca91=0x0,_0x4fae88=Object[_0x1a8dce(0x1af)](_0x1b78d5);_0x16ca91<_0x4fae88[_0x1a8dce(0x1d7)];_0x16ca91++)_0x55440b['indexOf'](_0x4fae88[_0x16ca91])<0x0&&Object[_0x1a8dce(0x23b)][_0x1a8dce(0x243)][_0x1a8dce(0x1b0)](_0x1b78d5,_0x4fae88[_0x16ca91])&&(_0x20aff3[_0x4fae88[_0x16ca91]]=_0x1b78d5[_0x4fae88[_0x16ca91]]);}return _0x20aff3;},j=f[_0x1ca2b5(0x172)](function(_0x2abf13,_0x50c5e9){var _0x46f0dc=_0x1ca2b5,_0x32bcce=_0x2abf13[_0x46f0dc(0x1be)],_0x35f2ce=_0x2abf13['id'],_0x2f3332=_0x2abf13['className'],_0x304804=_0x2abf13['extend'],_0x2161f3=M(_0x2abf13,[_0x46f0dc(0x1be),'id','className',_0x46f0dc(0x1e9)]),_0x4a7817=_0x46f0dc(0x1ee)[_0x46f0dc(0x16d)](_0x35f2ce,'\x20')[_0x46f0dc(0x16d)](_0x2f3332||'')['trim'](),_0x137ec4=f[_0x46f0dc(0x1ba)]('_'['concat'](G()));return y(_0x32bcce,''[_0x46f0dc(0x16d)](_0x35f2ce),{'defIds':_0x32bcce[_0x46f0dc(0x1bc)],'idSuffix':_0x137ec4[_0x46f0dc(0x247)]},u({'ref':_0x50c5e9,'className':_0x4a7817},_0x2161f3),_0x304804);});function y(_0x3632c5,_0x397f36,_0x63a24b,_0x11601d,_0x370a4f){var _0x84f01c=_0x1ca2b5;return f[_0x84f01c(0x250)](_0x3632c5[_0x84f01c(0x17c)],u(u({'key':_0x397f36},q(_0x3632c5,_0x63a24b,_0x370a4f)),_0x11601d),(W(_0x3632c5,_0x63a24b)['children']||[])[_0x84f01c(0x239)](function(_0x3f6b35,_0x23f4d9){var _0x13b297=_0x84f01c;return y(_0x3f6b35,''[_0x13b297(0x16d)](_0x397f36,'-')[_0x13b297(0x16d)](_0x3632c5['tag'],'-')[_0x13b297(0x16d)](_0x23f4d9),_0x63a24b,void 0x0,_0x370a4f);}));}function q(_0x26c02b,_0x80f0b9,_0x587c33){var _0x57dfb2=_0x1ca2b5,_0x4d8f74=u({},_0x26c02b[_0x57dfb2(0x1b2)]);_0x587c33!=null&&_0x587c33[_0x57dfb2(0x23e)]&&_0x4d8f74[_0x57dfb2(0x1a0)]==='colorChannel1'&&(_0x4d8f74[_0x57dfb2(0x1a0)]=_0x587c33[_0x57dfb2(0x23e)]),_0x26c02b[_0x57dfb2(0x17c)]===_0x57dfb2(0x187)&&_0x4d8f74['id']&&(_0x4d8f74['id']=_0x4d8f74['id']+_0x80f0b9['idSuffix']),Object['entries'](_0x4d8f74)[_0x57dfb2(0x1d9)](function(_0x27b889){var _0x54ab6d=_0x57dfb2,_0xc00e2b=_0x27b889[0x0],_0x5a2fe3=_0x27b889[0x1];_0xc00e2b==='mask'&&typeof _0x5a2fe3==_0x54ab6d(0x203)&&(_0x4d8f74[_0xc00e2b]=_0x5a2fe3[_0x54ab6d(0x1ff)](/url\(#(.*)\)/,_0x54ab6d(0x1f8)[_0x54ab6d(0x16d)](_0x80f0b9['idSuffix'],')')));});var _0x403ec3=_0x80f0b9['defIds'];return!_0x403ec3||_0x403ec3['length']===0x0||(_0x26c02b[_0x57dfb2(0x17c)]===_0x57dfb2(0x1d6)&&_0x4d8f74[_0x57dfb2(0x20b)]&&(_0x4d8f74[_0x57dfb2(0x20b)]=_0x4d8f74[_0x57dfb2(0x20b)]+_0x80f0b9['idSuffix']),Object[_0x57dfb2(0x200)](_0x4d8f74)[_0x57dfb2(0x1d9)](function(_0x1ae02b){var _0x453d36=_0x57dfb2,_0x324659=_0x1ae02b[0x0],_0x3fa241=_0x1ae02b[0x1];typeof _0x3fa241==_0x453d36(0x203)&&(_0x4d8f74[_0x324659]=_0x3fa241[_0x453d36(0x1ff)](/url\(#(.*)\)/,_0x453d36(0x1f8)[_0x453d36(0x16d)](_0x80f0b9[_0x453d36(0x17e)],')')));})),_0x4d8f74;}function W(_0x2b3534,_0x304d57){var _0x10a934=_0x1ca2b5,_0x2d4d51,_0x5a84e5=_0x304d57[_0x10a934(0x1bc)];return!_0x5a84e5||_0x5a84e5[_0x10a934(0x1d7)]===0x0?_0x2b3534:_0x2b3534[_0x10a934(0x17c)]==='defs'&&(!((_0x2d4d51=_0x2b3534[_0x10a934(0x196)])===null||_0x2d4d51===void 0x0)&&_0x2d4d51[_0x10a934(0x1d7)])?u(u({},_0x2b3534),{'children':_0x2b3534[_0x10a934(0x196)][_0x10a934(0x239)](function(_0x4d2f64){var _0x57e10b=_0x10a934;return typeof _0x4d2f64['attrs']['id']=='string'&&_0x5a84e5&&_0x5a84e5[_0x57e10b(0x232)](_0x4d2f64[_0x57e10b(0x1b2)]['id'])?u(u({},_0x4d2f64),{'attrs':u(u({},_0x4d2f64['attrs']),{'id':_0x4d2f64[_0x57e10b(0x1b2)]['id']+_0x304d57[_0x57e10b(0x17e)]})}):_0x4d2f64;})}):_0x2b3534;}function G(){var _0x35d2c4=_0x1ca2b5;return Math[_0x35d2c4(0x22c)]()[_0x35d2c4(0x1f5)](0x24)['substring'](0x2,0x8);}j[_0x1ca2b5(0x24f)]=_0x1ca2b5(0x1bb);var B={'tag':_0x1ca2b5(0x226),'attrs':{'xmlns':_0x1ca2b5(0x17a),'fill':'none','viewBox':_0x1ca2b5(0x18b),'width':'1em','height':_0x1ca2b5(0x17d)},'children':[{'tag':_0x1ca2b5(0x24c),'attrs':{'fill':_0x1ca2b5(0x24e),'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':_0x1ca2b5(0x24c),'attrs':{'fill':'currentColor','d':_0x1ca2b5(0x20a),'fillRule':_0x1ca2b5(0x1c6),'clipRule':_0x1ca2b5(0x1c6)}}]},P=f['forwardRef'](function(_0x234503,_0x5d9201){var _0x4c74b6=_0x1ca2b5;return f[_0x4c74b6(0x250)](j,Object['assign']({},_0x234503,{'id':_0x4c74b6(0x1fe),'ref':_0x5d9201,'icon':B}));});P[_0x1ca2b5(0x24f)]='LiveShareIcon';var Y=Object[_0x1ca2b5(0x209)],R=(_0x35acf0,_0x4db777,_0x47fd2b,_0x13fbbe)=>{var _0x501199=_0x1ca2b5;for(var _0x33c13f=_0x13fbbe>0x1?void 0x0:_0x13fbbe?Y(_0x4db777,_0x47fd2b):_0x4db777,_0x537da5=_0x35acf0[_0x501199(0x1d7)]-0x1,_0x25ff9c;_0x537da5>=0x0;_0x537da5--)(_0x25ff9c=_0x35acf0[_0x537da5])&&(_0x33c13f=_0x25ff9c(_0x33c13f)||_0x33c13f);return _0x33c13f;},S=(_0x410220,_0x15791d)=>(_0x1ec5b5,_0x15bca2)=>_0x15791d(_0x1ec5b5,_0x15bca2,_0x410220);exports[_0x1ca2b5(0x18a)]=class extends o[_0x1ca2b5(0x235)]{constructor(_0x2bf10d,_0x26ad31,_0x15e71f){var _0x52d65b=_0x1ca2b5;super(),v(this,_0x52d65b(0x176),new Map()),(this[_0x52d65b(0x1ae)]=_0x2bf10d,this[_0x52d65b(0x234)]=_0x26ad31,this[_0x52d65b(0x171)]=_0x15e71f,this[_0x52d65b(0x23c)]());}async['getLiveShareCoordinator'](_0x355bd7){var _0x31c201=_0x1ca2b5;return this[_0x31c201(0x176)][_0x31c201(0x218)](_0x355bd7)||await this[_0x31c201(0x1f6)](_0x355bd7),this[_0x31c201(0x176)][_0x31c201(0x1fb)](_0x355bd7);}['_init'](){var _0x384d7c=_0x1ca2b5;this[_0x384d7c(0x1ae)]['getTypeOfUnitAdded$'](o[_0x384d7c(0x216)][_0x384d7c(0x206)])[_0x384d7c(0x198)](b[_0x384d7c(0x177)](this[_0x384d7c(0x173)]))[_0x384d7c(0x1e8)](async _0x292d24=>{var _0xae7f2a=_0x384d7c;const _0xd91c06=_0x292d24[_0xae7f2a(0x195)]();this[_0xae7f2a(0x176)][_0xae7f2a(0x218)](_0xd91c06)||this[_0xae7f2a(0x1f6)](_0xd91c06);}),this[_0x384d7c(0x1ae)]['getTypeOfUnitDisposed$'](o[_0x384d7c(0x216)][_0x384d7c(0x206)])['pipe'](b[_0x384d7c(0x177)](this[_0x384d7c(0x173)]))['subscribe'](_0x482775=>{var _0x667d42=_0x384d7c;const _0x82836b=_0x482775[_0x667d42(0x195)](),_0x3e9b11=this['_entities'][_0x667d42(0x1fb)](_0x82836b);_0x3e9b11==null||_0x3e9b11[_0x667d42(0x1a2)]();});}async[_0x1ca2b5(0x1f6)](_0x2de61c){var _0x486d93=_0x1ca2b5;const _0x3eb7b8=await this['_collabSessionService'][_0x486d93(0x1a5)](_0x2de61c),_0x4a53e8=this['_injector'][_0x486d93(0x253)](exports[_0x486d93(0x221)],_0x2de61c,_0x3eb7b8);return _0x4a53e8['init'](),this[_0x486d93(0x176)][_0x486d93(0x1db)](_0x2de61c,_0x4a53e8),_0x4a53e8;}},exports[_0x1ca2b5(0x18a)]=R([S(0x0,o[_0x1ca2b5(0x213)]),S(0x1,o['Inject'](o[_0x1ca2b5(0x1a4)])),S(0x2,o[_0x1ca2b5(0x1e1)](m[_0x1ca2b5(0x167)]))],exports[_0x1ca2b5(0x18a)]);var h=(_0x139ef8=>(_0x139ef8['OFFLINE']=_0x1ca2b5(0x233),_0x139ef8[_0x1ca2b5(0x236)]=_0x1ca2b5(0x1dd),_0x139ef8[_0x1ca2b5(0x240)]='following',_0x139ef8['NOT_FOLLOWING']=_0x1ca2b5(0x1ce),_0x139ef8['PRESENTING']='presenting',_0x139ef8))(h||{});const Z=_0x1ca2b5(0x19e),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x1ca2b5(0x235)]{constructor(_0x4f31b8,_0x2ee93d,_0x576c75,_0x2ba8bf,_0x3ad18c){var _0x3805e0=_0x1ca2b5;super(),v(this,_0x3805e0(0x189),new D[(_0x3805e0(0x244))](_0x3805e0(0x1dd))),v(this,_0x3805e0(0x1b6),this[_0x3805e0(0x189)]['asObservable']()),v(this,_0x3805e0(0x23c),!0x1),v(this,'_commandDisposable',null),v(this,_0x3805e0(0x24a),null),(this[_0x3805e0(0x23f)]=_0x4f31b8,this[_0x3805e0(0x225)]=_0x2ee93d,this[_0x3805e0(0x1ca)]=_0x576c75,this['_liveShareService']=_0x2ba8bf,this[_0x3805e0(0x1c3)]=_0x3ad18c);}get[_0x1ca2b5(0x211)](){var _0x5c6685=_0x1ca2b5;return this[_0x5c6685(0x189)][_0x5c6685(0x18c)]();}['dispose'](){var _0x49d8e0=_0x1ca2b5,_0x31f3b3;(_0x31f3b3=this[_0x49d8e0(0x1a8)])==null||_0x31f3b3['dispose'](),this[_0x49d8e0(0x189)][_0x49d8e0(0x22d)](_0x49d8e0(0x1dd)),this[_0x49d8e0(0x189)][_0x49d8e0(0x1c8)]();}['init'](){var _0x2b189d=_0x1ca2b5;this['_init']||(this[_0x2b189d(0x23c)]=!0x0,this[_0x2b189d(0x225)][_0x2b189d(0x210)][_0x2b189d(0x198)](b[_0x2b189d(0x177)](this['dispose$']))['subscribe'](_0x7f2d65=>{var _0x195f89=_0x2b189d;switch(_0x7f2d65){case m['SessionStatus'][_0x195f89(0x193)]:this[_0x195f89(0x19a)]();break;case m[_0x195f89(0x1e3)]['ONLINE']:this[_0x195f89(0x228)]();break;}}),this[_0x2b189d(0x225)][_0x2b189d(0x1cc)][_0x2b189d(0x198)](b['takeUntil'](this[_0x2b189d(0x173)]))['subscribe'](_0x48f280=>{var _0x5e253d=_0x2b189d;const {eventID:_0x2deb61}=_0x48f280;switch(_0x2deb61){case _[_0x5e253d(0x227)][_0x5e253d(0x186)]:this[_0x5e253d(0x169)](_0x48f280);break;case _['CollaborationEvent'][_0x5e253d(0x19c)]:this[_0x5e253d(0x202)](_0x48f280);break;case _[_0x5e253d(0x227)][_0x5e253d(0x197)]:this[_0x5e253d(0x207)]();break;case _[_0x5e253d(0x227)]['NEW_CHANGESETS']:this[_0x5e253d(0x251)](_0x48f280);break;}}));}[_0x1ca2b5(0x1cd)](){var _0xc8681e=_0x1ca2b5;this[_0xc8681e(0x225)][_0xc8681e(0x194)]({'eventID':_[_0xc8681e(0x227)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xc8681e(0x23f)],'userID':this['_collabSession'][_0xc8681e(0x1f2)]()}},this[_0xc8681e(0x23f)]);}[_0x1ca2b5(0x20e)](){var _0x3d1c0f=_0x1ca2b5;this[_0x3d1c0f(0x211)]==='presenting'&&(this[_0x3d1c0f(0x189)]['next'](_0x3d1c0f(0x1dd)),this['_collabSession'][_0x3d1c0f(0x194)]({'eventID':_[_0x3d1c0f(0x227)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3d1c0f(0x23f)]}},this[_0x3d1c0f(0x23f)]));}[_0x1ca2b5(0x1cf)](){var _0x564662=_0x1ca2b5;this[_0x564662(0x211)]===_0x564662(0x1ce)&&(this[_0x564662(0x189)][_0x564662(0x22d)]('following'),this[_0x564662(0x1b8)]());}[_0x1ca2b5(0x23d)](){var _0x301976=_0x1ca2b5;this['_status']===_0x301976(0x224)&&this['_stopFollowing']();}[_0x1ca2b5(0x169)](_0x155817){var _0xcb78cd=_0x1ca2b5;const {presenter:_0x4b5597}=_0x155817['data'],_0x170367=this['_collabSession'][_0xcb78cd(0x1f2)]();this[_0xcb78cd(0x24a)]=_0x4b5597,_0x4b5597===_0x170367?(this[_0xcb78cd(0x229)](),this[_0xcb78cd(0x1eb)]()):this[_0xcb78cd(0x211)]!=='not-following'&&(this[_0xcb78cd(0x1ac)](),this[_0xcb78cd(0x1b8)]());}['_fetchOperations'](){var _0x469bef=_0x1ca2b5;const _0x22e5fe={'eventID':_[_0x469bef(0x227)][_0x469bef(0x1fc)]};this[_0x469bef(0x225)][_0x469bef(0x194)](_0x22e5fe,this[_0x469bef(0x23f)]);}['_handleTerminate'](){var _0x3ac3d3=_0x1ca2b5;this[_0x3ac3d3(0x24a)]=null,this[_0x3ac3d3(0x211)]!==_0x3ac3d3(0x248)&&this[_0x3ac3d3(0x24d)]();}[_0x1ca2b5(0x251)](_0x129ec6){var _0x144e1c=_0x1ca2b5;if(this['_status']===_0x144e1c(0x224)&&this[_0x144e1c(0x24a)]===_0x129ec6[_0x144e1c(0x20c)][_0x144e1c(0x1d4)]){const _0x507eb7=_[_0x144e1c(0x181)](_0x129ec6[_0x144e1c(0x20c)])[_0x144e1c(0x191)][_0x144e1c(0x231)]()[_0x144e1c(0x201)](_0x210582=>_0x210582['id']===C[_0x144e1c(0x1d2)]['id']);if(_0x507eb7){const _0x3f3a23=_0x507eb7[_0x144e1c(0x1f4)][_0x144e1c(0x1bd)],_0x5b166d=_0x507eb7['params'][_0x144e1c(0x1ed)]['id'];setTimeout(()=>{var _0xef7a6f=_0x144e1c;this[_0xef7a6f(0x1c3)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x3f3a23,'subUnitId':_0x5b166d},{'fromCollab':!0x0});});}}}[_0x1ca2b5(0x1eb)](){var _0xa60888=_0x1ca2b5;this['_status$'][_0xa60888(0x22d)]('presenting');const _0x4f583d=new Map(),_0x16b6bd=this[_0xa60888(0x1a8)]=new o[(_0xa60888(0x1f3))]();_0x16b6bd[_0xa60888(0x1b7)](o[_0xa60888(0x20f)](()=>{var _0x589baa=_0xa60888;_0x4f583d[_0x589baa(0x1d9)](_0x16871d=>_0x16871d['complete']()),_0x4f583d[_0x589baa(0x1d5)]();})),_0x16b6bd[_0xa60888(0x1b7)](this[_0xa60888(0x1c3)][_0xa60888(0x1cb)](_0x520449=>{var _0x513962=_0xa60888,_0xde70b4;if(_0x520449[_0x513962(0x1dc)]!==o[_0x513962(0x1f1)][_0x513962(0x199)]||!this[_0x513962(0x18f)][_0x513962(0x24b)](_0x520449['id']))return;const {id:_0x364f6c}=_0x520449;let _0x21bcfa;_0x4f583d[_0x513962(0x218)](_0x364f6c)?_0x21bcfa=_0x4f583d[_0x513962(0x1fb)](_0x364f6c):(_0x21bcfa=new D[(_0x513962(0x1e5))](),_0x4f583d[_0x513962(0x1db)](_0x364f6c,_0x21bcfa),_0x21bcfa[_0x513962(0x198)](b['throttleTime']((_0xde70b4=this[_0x513962(0x1ca)][_0x513962(0x21e)](Z))!=null?_0xde70b4:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1af3b1=>{var _0x27a356=_0x513962;this[_0x27a356(0x225)]['send']({'eventID':_['CollaborationEvent'][_0x27a356(0x19c)],'data':{'unitID':this[_0x27a356(0x23f)],'operations':{[_0x1af3b1['id']]:{'id':_0x1af3b1['id'],'params':JSON[_0x27a356(0x215)](_0x1af3b1['params'])}}}},this[_0x27a356(0x23f)]);})),_0x21bcfa[_0x513962(0x22d)](_0x520449);})),this['_liveShareService'][_0xa60888(0x17b)](this[_0xa60888(0x23f)])['forEach'](_0x23a232=>this['_collabSession'][_0xa60888(0x194)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xa60888(0x23f)],'operations':{[_0x23a232['id']]:{'id':_0x23a232['id'],'params':JSON[_0xa60888(0x215)](_0x23a232[_0xa60888(0x1f4)])}}}},this[_0xa60888(0x23f)]));}[_0x1ca2b5(0x1ac)](){var _0x108f0c=_0x1ca2b5,_0x2d5846;this[_0x108f0c(0x189)][_0x108f0c(0x22d)](_0x108f0c(0x1dd)),(_0x2d5846=this[_0x108f0c(0x1a8)])==null||_0x2d5846[_0x108f0c(0x1a2)](),this[_0x108f0c(0x1a8)]=null;}[_0x1ca2b5(0x1b8)](){var _0x50fc34=_0x1ca2b5,_0x30664f;(_0x30664f=this[_0x50fc34(0x1a8)])==null||_0x30664f[_0x50fc34(0x1a2)](),this[_0x50fc34(0x189)][_0x50fc34(0x22d)]('following');}[_0x1ca2b5(0x24d)](){var _0x48ed49=_0x1ca2b5,_0x19020b;this[_0x48ed49(0x189)][_0x48ed49(0x22d)](_0x48ed49(0x1dd)),(_0x19020b=this['_commandDisposable'])==null||_0x19020b[_0x48ed49(0x1a2)](),this['_commandDisposable']=null;}[_0x1ca2b5(0x229)](){var _0x50d0bb=_0x1ca2b5,_0x76f2c9;this['_status$'][_0x50d0bb(0x22d)](_0x50d0bb(0x1ce)),(_0x76f2c9=this[_0x50d0bb(0x1a8)])==null||_0x76f2c9[_0x50d0bb(0x1a2)]();}[_0x1ca2b5(0x202)](_0x3e4087){var _0x2c36e0=_0x1ca2b5;if([_0x2c36e0(0x248),_0x2c36e0(0x1ce),_0x2c36e0(0x233)][_0x2c36e0(0x232)](this['_status'])||!_0x3e4087[_0x2c36e0(0x20c)][_0x2c36e0(0x16b)]||_0x3e4087[_0x2c36e0(0x20c)][_0x2c36e0(0x16b)]===this[_0x2c36e0(0x225)][_0x2c36e0(0x1f2)]())return;this[_0x2c36e0(0x211)]==='idle'&&this[_0x2c36e0(0x1b8)]();const _0x171fd0=_0x3e4087[_0x2c36e0(0x20c)][_0x2c36e0(0x19d)];Object[_0x2c36e0(0x246)](_0x171fd0)['forEach'](_0xa23b18=>{var _0x4adf33=_0x2c36e0;this['_commandService'][_0x4adf33(0x17f)](_0xa23b18['id'],_0xa23b18[_0x4adf33(0x1f4)]?JSON['parse'](_0xa23b18['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xbe8e2d=_0x1ca2b5,_0x1de619;this[_0xbe8e2d(0x189)]['next'](_0xbe8e2d(0x233)),(_0x1de619=this[_0xbe8e2d(0x1a8)])==null||_0x1de619['dispose']();}[_0x1ca2b5(0x228)](){var _0x5f39fe=_0x1ca2b5;this[_0x5f39fe(0x189)][_0x5f39fe(0x22d)](_0x5f39fe(0x1dd)),this[_0x5f39fe(0x204)]();}},exports[_0x1ca2b5(0x221)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0x1ca2b5(0x221)]);function A(){var _0x302e18=_0x1ca2b5;const _0x27110f=p['useDependency'](exports[_0x302e18(0x18a)]),_0x4419f9=p[_0x302e18(0x179)](o[_0x302e18(0x213)]),_0x2d8213=p[_0x302e18(0x16a)](()=>_0x4419f9[_0x302e18(0x1d8)](o[_0x302e18(0x216)][_0x302e18(0x206)]),void 0x0,!0x1,[]),[_0x26a11a,_0x13cf47]=f[_0x302e18(0x230)](null),[_0x296c4e,_0x3c7ca1]=f[_0x302e18(0x230)](h['IDLE']),_0x34c91c=f[_0x302e18(0x1ba)](null);return f[_0x302e18(0x19f)](()=>(_0x2d8213&&_0x27110f[_0x302e18(0x249)](_0x2d8213[_0x302e18(0x195)]())[_0x302e18(0x241)](_0x4aa37a=>{var _0x199182=_0x302e18;_0x13cf47(_0x4aa37a),_0x34c91c[_0x199182(0x247)]=_0x4aa37a[_0x199182(0x1b6)][_0x199182(0x1e8)](_0x2a743b=>{_0x3c7ca1(_0x2a743b);});}),()=>{var _0x4cdec3=_0x302e18,_0x857a62;(_0x857a62=_0x34c91c[_0x4cdec3(0x247)])==null||_0x857a62['unsubscribe'](),_0x34c91c[_0x4cdec3(0x247)]=null;}),[_0x2d8213,_0x27110f]),_0x26a11a?l[_0x302e18(0x18d)](g[_0x302e18(0x22a)],{'align':_0x302e18(0x1b5),'disabled':_0x296c4e===h['OFFLINE'],'className':_0x302e18(0x1a6),'overlay':l[_0x302e18(0x18d)](K,{'status':_0x296c4e,'coordinator':_0x26a11a}),'children':l[_0x302e18(0x18d)](_0x302e18(0x22f),{'className':g[_0x302e18(0x1c2)](_0x302e18(0x1e2),{'univer-cursor-not-allowed':_0x296c4e===h[_0x302e18(0x193)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x296c4e!==h['OFFLINE']}),'type':'button','children':l[_0x302e18(0x18d)](P,{'className':_0x302e18(0x1c0)})})}):null;}function K(_0x58da69){var _0x1b0594=_0x1ca2b5;const {status:_0x3e419c,coordinator:_0x1e626b}=_0x58da69;switch(_0x3e419c){case h[_0x1b0594(0x236)]:return l[_0x1b0594(0x18d)](z,{'coordinator':_0x1e626b});case h[_0x1b0594(0x240)]:return l[_0x1b0594(0x18d)](Q,{'coordinator':_0x1e626b});case h[_0x1b0594(0x1ec)]:return l['jsx'](X,{'coordinator':_0x1e626b});case h[_0x1b0594(0x193)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0x1b0594(0x18d)](ee,{'coordinator':_0x1e626b});default:return null;}}function z(_0x2c59c7){var _0x2488f3=_0x1ca2b5;const {coordinator:_0x53eaa5}=_0x2c59c7;return l[_0x2488f3(0x222)](l[_0x2488f3(0x16c)],{'children':[l[_0x2488f3(0x18d)]('div',{'className':_0x2488f3(0x223),'children':_0x2488f3(0x168)}),l[_0x2488f3(0x18d)](g[_0x2488f3(0x170)],{'onClick':()=>_0x53eaa5[_0x2488f3(0x1cd)](),'children':_0x2488f3(0x1c1)})]});}function Q(_0x4ffb57){var _0x7fd885=_0x1ca2b5;const {coordinator:_0x484d0b}=_0x4ffb57;return l['jsxs'](l[_0x7fd885(0x16c)],{'children':[l[_0x7fd885(0x18d)](_0x7fd885(0x174),{'className':_0x7fd885(0x223),'children':_0x7fd885(0x16e)}),l[_0x7fd885(0x18d)](g[_0x7fd885(0x170)],{'onClick':()=>_0x484d0b['stopFollowing'](),'children':_0x7fd885(0x182)})]});}function X(_0x45f545){var _0x2e21b5=_0x1ca2b5;const {coordinator:_0x400cab}=_0x45f545;return l[_0x2e21b5(0x222)](l['Fragment'],{'children':[l[_0x2e21b5(0x18d)](_0x2e21b5(0x174),{'className':_0x2e21b5(0x223),'children':_0x2e21b5(0x175)}),l[_0x2e21b5(0x18d)](g[_0x2e21b5(0x170)],{'variant':'text','onClick':()=>_0x400cab[_0x2e21b5(0x1cf)](),'children':'Start\x20following'})]});}function ee(_0x2161c0){var _0x2d30a3=_0x1ca2b5;const {coordinator:_0xf10527}=_0x2161c0;return l[_0x2d30a3(0x222)](l[_0x2d30a3(0x16c)],{'children':[l[_0x2d30a3(0x18d)](_0x2d30a3(0x174),{'className':_0x2d30a3(0x223),'children':_0x2d30a3(0x190)}),l['jsx'](g[_0x2d30a3(0x170)],{'variant':'default','onClick':()=>_0xf10527[_0x2d30a3(0x20e)](),'children':_0x2d30a3(0x1d0)})]});}function te(){var _0x2ea952=_0x1ca2b5;return l[_0x2ea952(0x18d)](l[_0x2ea952(0x16c)],{'children':_0x2ea952(0x1fd)});}var ie=Object[_0x1ca2b5(0x209)],ne=(_0x4b17bf,_0x26e1a4,_0x42d483,_0x4f9c40)=>{var _0x5ded69=_0x1ca2b5;for(var _0x2faec5=_0x4f9c40>0x1?void 0x0:_0x4f9c40?ie(_0x26e1a4,_0x42d483):_0x26e1a4,_0x42c9ed=_0x4b17bf[_0x5ded69(0x1d7)]-0x1,_0x487115;_0x42c9ed>=0x0;_0x42c9ed--)(_0x487115=_0x4b17bf[_0x42c9ed])&&(_0x2faec5=_0x487115(_0x2faec5)||_0x2faec5);return _0x2faec5;},L=(_0x313947,_0x49c4c0)=>(_0x458d76,_0x51d26f)=>_0x49c4c0(_0x458d76,_0x51d26f,_0x313947);exports[_0x1ca2b5(0x1f9)]=class extends o[_0x1ca2b5(0x1df)]{constructor(_0x4a3197,_0x348f89){var _0xc7ca9d=_0x1ca2b5;super(),this[_0xc7ca9d(0x234)]=_0x4a3197,this[_0xc7ca9d(0x1ea)]=_0x348f89,this[_0xc7ca9d(0x220)]();}[_0x1ca2b5(0x220)](){var _0x5f5635=_0x1ca2b5;this[_0x5f5635(0x180)](this[_0x5f5635(0x1ea)][_0x5f5635(0x252)](p[_0x5f5635(0x1c5)][_0x5f5635(0x21d)],()=>p[_0x5f5635(0x219)](A,this['_injector'])));}},exports[_0x1ca2b5(0x1f9)]=ne([L(0x0,o[_0x1ca2b5(0x1e1)](o[_0x1ca2b5(0x1a4)])),L(0x1,p[_0x1ca2b5(0x1b3)])],exports['DesktopLiveShareController']);var re=Object[_0x1ca2b5(0x185)],se=Object[_0x1ca2b5(0x209)],oe=(_0x27e894,_0x2a33db,_0x37f007)=>_0x2a33db in _0x27e894?re(_0x27e894,_0x2a33db,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37f007}):_0x27e894[_0x2a33db]=_0x37f007,ae=(_0x198ccf,_0x17e479,_0x1857e2,_0xc2abeb)=>{var _0x27e5a7=_0x1ca2b5;for(var _0x559de9=_0xc2abeb>0x1?void 0x0:_0xc2abeb?se(_0x17e479,_0x1857e2):_0x17e479,_0x154635=_0x198ccf[_0x27e5a7(0x1d7)]-0x1,_0x253b80;_0x154635>=0x0;_0x154635--)(_0x253b80=_0x198ccf[_0x154635])&&(_0x559de9=_0x253b80(_0x559de9)||_0x559de9);return _0x559de9;},N=(_0x3b7c0a,_0x4f7367)=>(_0x2ae58a,_0x5468b3)=>_0x4f7367(_0x2ae58a,_0x5468b3,_0x3b7c0a),T=(_0x5f46c8,_0x3c6e1d,_0xb16438)=>oe(_0x5f46c8,typeof _0x3c6e1d!=_0x1ca2b5(0x21a)?_0x3c6e1d+'':_0x3c6e1d,_0xb16438);function _0x5d2c(){var _0x52db71=['sheet','univerjs-icon\x20univerjs-icon-','Module','rxjs','CommandType','getMemberID','DisposableCollection','params','toString','_startLiveShareCoordinator','UniverLiveSharePlugin','url(#$1','DesktopLiveShareController','SetZoomRatioOperation','get','LIVESHARE_FETCH_OPERATIONS','You\x27are\x20offline.','live-share-icon','replace','entries','find','_handleOperation','string','_fetchOperations','@univerjs/design','UNIVER_SHEET','_handleTerminate','react','getOwnPropertyDescriptor','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','xlink:href','data','802050chbOJX','stopPresenting','toDisposable','sessionStatus$','_status','_sharedOperations','IUniverInstanceService','8411049jqrPeW','stringify','UniverInstanceType','assign','has','connectInjector','symbol','registerInitialStateReporter','LiveShareStatus','HEADER_MENU','getConfig','64rpVHzX','_mountLiveShare','LiveShareCoordinator','jsxs','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','_collabSession','svg','CollaborationEvent','_handleOnline','_stopFollowing','Dropdown','UniverCollaborationClientPlugin','random','next','DependentOn','button','useState','reverse','includes','offline','_injector','RxDisposable','IDLE','416836qFtTxU','hasOwnProperty','map','mergeOverrideWithDependencies','prototype','_init','stopFollowing','colorChannel1','_unitID','FOLLOWING','then','@univerjs-pro/collaboration','propertyIsEnumerable','BehaviorSubject','SetWorksheetActiveOperation','values','current','presenting','getLiveShareCoordinator','_presenter','shouldShareOperation','path','_beIdle','currentColor','displayName','createElement','_handleNewChangeSets','registerComponent','createInstance','merge','CollaborationSessionService','Present\x20this\x20document','_handleNewHost','useObservable','presenter','Fragment','concat','You\x27re\x20following\x20the\x20presenter','LiveShareService','Button','_collabSessionService','forwardRef','dispose$','div','You\x27re\x20not\x20following\x20the\x20presenter','_entities','takeUntil','UNIVER_LIVE_SHARE_PLUGIN','useDependency','http://www.w3.org/2000/svg','getInitialStates','tag','1em','idSuffix','executeCommand','disposeWithMe','parseProtocolChangeset','Stop\x20following','touchDependencies','2749572jgBwku','defineProperty','LIVESHARE_NEW_HOST','mask','indexOf','_status$','LiveShareController','0\x200\x2017\x2017','getValue','jsx','live-share.config','_liveShareService','You\x27re\x20presenting\x20the\x20document','mutations','LiveShare','OFFLINE','send','getUnitId','children','LIVESHARE_TERMINATE','pipe','OPERATION','_handleOffline','onRendered','LIVESHARE_OPERATION','operations','SAME_OPERATION_SHARE_INTERVAL','useEffect','fill','4014jbZLak','dispose','_reporters','Injector','requireSession','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','delete','_commandDisposable','@univerjs/core','apply','375351RaARGw','_stopPresenting','react/jsx-runtime','_univerInstanceService','getOwnPropertySymbols','call','override','attrs','IUIPartsService','IConfigService','end','status$','add','_startFollowing','toStringTag','useRef','UniverIcon','defIds','unitId','icon','registerSharedOperation','univer-size-4','Start','clsx','_commandService','_config','BuiltInUIPart','evenodd','rxjs/operators','complete','@univerjs/sheets','_configService','onCommandExecuted','event$','tryStartPresenting','not-following','startFollowing','Stop\x20presenting','pluginName','InsertSheetMutation','@univerjs/ui','memberID','clear','use','length','getCurrentTypeOfUnit$','forEach','471998OPtTnd','set','type','idle','3005evBLkS','Disposable','registerDependencies','Inject','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SessionStatus','onStarting','Subject','SetScrollOperation','from','subscribe','extend','_uiPartsService','_startPresenting','NOT_FOLLOWING'];_0x5d2c=function(){return _0x52db71;};return _0x5d2c();}const le=_0x1ca2b5(0x178);exports[_0x1ca2b5(0x1f7)]=class extends o['Plugin']{constructor(_0x3ad8e4=x,_0xc59639,_0x3b88c7){var _0x458da7=_0x1ca2b5;super(),this[_0x458da7(0x1c4)]=_0x3ad8e4,this['_injector']=_0xc59639,this['_configService']=_0x3b88c7;const {..._0x136d6a}=o[_0x458da7(0x254)]({},x,this[_0x458da7(0x1c4)]);this[_0x458da7(0x1ca)]['setConfig']($,_0x136d6a);}[_0x1ca2b5(0x1e4)](){var _0xf62d92=_0x1ca2b5;o[_0xf62d92(0x1e0)](this[_0xf62d92(0x234)],o[_0xf62d92(0x23a)]([[O],[exports[_0xf62d92(0x18a)]],[E],[exports[_0xf62d92(0x1f9)]]],this[_0xf62d92(0x1c4)][_0xf62d92(0x1b1)])),o[_0xf62d92(0x183)](this['_injector'],[[E]]);}[_0x1ca2b5(0x19b)](){var _0x3e0b5f=_0x1ca2b5;o['touchDependencies'](this[_0x3e0b5f(0x234)],[[exports[_0x3e0b5f(0x1f9)]]]);}},T(exports['UniverLiveSharePlugin'],_0x1ca2b5(0x1dc),o[_0x1ca2b5(0x216)]['UNIVER_UNKNOWN']),T(exports[_0x1ca2b5(0x1f7)],_0x1ca2b5(0x1d1),le),exports[_0x1ca2b5(0x1f7)]=ae([o[_0x1ca2b5(0x22e)](m[_0x1ca2b5(0x22b)]),N(0x1,o[_0x1ca2b5(0x1e1)](o[_0x1ca2b5(0x1a4)])),N(0x2,o[_0x1ca2b5(0x1b4)])],exports[_0x1ca2b5(0x1f7)]),exports[_0x1ca2b5(0x192)]=A,exports[_0x1ca2b5(0x16f)]=O,exports[_0x1ca2b5(0x21c)]=h;
1
+ 'use strict';var _0x47e78f=_0x1592;(function(_0xc5dc05,_0x3947e2){var _0x55aa51=_0x1592,_0xb9de40=_0xc5dc05();while(!![]){try{var _0x1b1fac=-parseInt(_0x55aa51(0x186))/0x1+parseInt(_0x55aa51(0x1d7))/0x2+-parseInt(_0x55aa51(0x1b4))/0x3+parseInt(_0x55aa51(0x1d9))/0x4+parseInt(_0x55aa51(0x1d0))/0x5*(parseInt(_0x55aa51(0x1ba))/0x6)+-parseInt(_0x55aa51(0x14d))/0x7*(-parseInt(_0x55aa51(0x17e))/0x8)+parseInt(_0x55aa51(0x184))/0x9*(-parseInt(_0x55aa51(0x15e))/0xa);if(_0x1b1fac===_0x3947e2)break;else _0xb9de40['push'](_0xb9de40['shift']());}catch(_0x41309e){_0xb9de40['push'](_0xb9de40['shift']());}}}(_0x371c,0x85a09));var U=Object[_0x47e78f(0x1ed)],F=(_0x3c21ec,_0x1245ed,_0x5980ae)=>_0x1245ed in _0x3c21ec?U(_0x3c21ec,_0x1245ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5980ae}):_0x3c21ec[_0x1245ed]=_0x5980ae,v=(_0x39aed3,_0x166dd1,_0x4763cc)=>F(_0x39aed3,typeof _0x166dd1!=_0x47e78f(0x198)?_0x166dd1+'':_0x166dd1,_0x4763cc);function _0x1592(_0x1d5a95,_0x56f16f){var _0x371ce2=_0x371c();return _0x1592=function(_0x159279,_0x4ccd42){_0x159279=_0x159279-0x138;var _0x4df72e=_0x371ce2[_0x159279];return _0x4df72e;},_0x1592(_0x1d5a95,_0x56f16f);}Object[_0x47e78f(0x1ed)](exports,Symbol[_0x47e78f(0x1d8)],{'value':_0x47e78f(0x18f)});const m=require(_0x47e78f(0x145)),o=require(_0x47e78f(0x1a4)),C=require('@univerjs/sheets'),w=require(_0x47e78f(0x1f2)),p=require(_0x47e78f(0x1ee)),l=require(_0x47e78f(0x17a)),g=require(_0x47e78f(0x1d4)),f=require(_0x47e78f(0x13d)),_=require(_0x47e78f(0x1c5)),D=require(_0x47e78f(0x1a1)),b=require(_0x47e78f(0x17f)),$=_0x47e78f(0x1f3),x={};class O extends o['Disposable']{constructor(){var _0xa86d4c=_0x47e78f;super(...arguments),v(this,_0xa86d4c(0x1dc),new Set()),v(this,_0xa86d4c(0x1f0),new Set());}[_0x47e78f(0x1dd)](_0x2d1c4e){var _0x5ae2bc=_0x47e78f;return this[_0x5ae2bc(0x1dc)][_0x5ae2bc(0x208)](_0x2d1c4e),o[_0x5ae2bc(0x1b8)](()=>this[_0x5ae2bc(0x1dc)][_0x5ae2bc(0x195)](_0x2d1c4e));}[_0x47e78f(0x152)](_0x3f23d0){var _0x1b1d32=_0x47e78f;return this[_0x1b1d32(0x1f0)][_0x1b1d32(0x208)](_0x3f23d0),o[_0x1b1d32(0x1b8)](()=>this[_0x1b1d32(0x1f0)]['delete'](_0x3f23d0));}[_0x47e78f(0x218)](_0x1c65b3){var _0x2bb1f4=_0x47e78f;return this[_0x2bb1f4(0x1dc)][_0x2bb1f4(0x1d3)](_0x1c65b3);}['getInitialStates'](_0x125033){var _0x5dc849=_0x47e78f;return Array[_0x5dc849(0x158)](this[_0x5dc849(0x1f0)])['map'](_0x4806a1=>_0x4806a1(_0x125033));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x381ef3,_0x2a8502,_0x436e0b,_0x57d5e5)=>{var _0x534975=_0x47e78f;for(var _0x264c1f=_0x57d5e5>0x1?void 0x0:_0x57d5e5?H(_0x2a8502,_0x436e0b):_0x2a8502,_0x329ea6=_0x381ef3[_0x534975(0x1de)]-0x1,_0x49789b;_0x329ea6>=0x0;_0x329ea6--)(_0x49789b=_0x381ef3[_0x329ea6])&&(_0x264c1f=_0x49789b(_0x264c1f)||_0x264c1f);return _0x264c1f;},k=(_0x2dfd78,_0x335af8)=>(_0x1c0e9a,_0x1957d4)=>_0x335af8(_0x1c0e9a,_0x1957d4,_0x2dfd78);let E=class extends o[_0x47e78f(0x207)]{constructor(_0x34b21b){var _0xe5a61d=_0x47e78f;super(),this[_0xe5a61d(0x20b)]=_0x34b21b,this[_0xe5a61d(0x1eb)]();}[_0x47e78f(0x1eb)](){var _0x2d9b9e=_0x47e78f;[w[_0x2d9b9e(0x190)]['id'],w[_0x2d9b9e(0x217)]['id'],C[_0x2d9b9e(0x1f8)]['id']][_0x2d9b9e(0x1f5)](_0x3d5078=>{var _0x47e4be=_0x2d9b9e;this['disposeWithMe'](this[_0x47e4be(0x20b)][_0x47e4be(0x1dd)](_0x3d5078));});}};E=V([k(0x0,o[_0x47e78f(0x213)](O))],E);var u=function(){var _0x9ab3d6=_0x47e78f;return u=Object['assign']||function(_0x517d07){var _0x202358=_0x1592;for(var _0x5e61e3,_0x5aace3=0x1,_0x6fdea4=arguments['length'];_0x5aace3<_0x6fdea4;_0x5aace3++){_0x5e61e3=arguments[_0x5aace3];for(var _0x108132 in _0x5e61e3)Object[_0x202358(0x14f)][_0x202358(0x168)][_0x202358(0x1e7)](_0x5e61e3,_0x108132)&&(_0x517d07[_0x108132]=_0x5e61e3[_0x108132]);}return _0x517d07;},u[_0x9ab3d6(0x19a)](this,arguments);},M=function(_0x165774,_0x166f92){var _0x4cbe81=_0x47e78f,_0x2122f3={};for(var _0x29fb2a in _0x165774)Object[_0x4cbe81(0x14f)]['hasOwnProperty'][_0x4cbe81(0x1e7)](_0x165774,_0x29fb2a)&&_0x166f92['indexOf'](_0x29fb2a)<0x0&&(_0x2122f3[_0x29fb2a]=_0x165774[_0x29fb2a]);if(_0x165774!=null&&typeof Object[_0x4cbe81(0x1bf)]=='function'){for(var _0x4a66e1=0x0,_0x29fb2a=Object[_0x4cbe81(0x1bf)](_0x165774);_0x4a66e1<_0x29fb2a[_0x4cbe81(0x1de)];_0x4a66e1++)_0x166f92['indexOf'](_0x29fb2a[_0x4a66e1])<0x0&&Object[_0x4cbe81(0x14f)][_0x4cbe81(0x1ec)]['call'](_0x165774,_0x29fb2a[_0x4a66e1])&&(_0x2122f3[_0x29fb2a[_0x4a66e1]]=_0x165774[_0x29fb2a[_0x4a66e1]]);}return _0x2122f3;},j=f['forwardRef'](function(_0x12ca38,_0x30f3ee){var _0x428b0a=_0x47e78f,_0x2048a3=_0x12ca38[_0x428b0a(0x161)],_0x1cb9ef=_0x12ca38['id'],_0x48bbe1=_0x12ca38['className'],_0x16415d=_0x12ca38[_0x428b0a(0x155)],_0x51ef9e=M(_0x12ca38,[_0x428b0a(0x161),'id',_0x428b0a(0x203),_0x428b0a(0x155)]),_0x5b3958=_0x428b0a(0x1f6)[_0x428b0a(0x19d)](_0x1cb9ef,'\x20')[_0x428b0a(0x19d)](_0x48bbe1||'')[_0x428b0a(0x1b0)](),_0x3f04f1=f[_0x428b0a(0x214)]('_'[_0x428b0a(0x19d)](G()));return y(_0x2048a3,''[_0x428b0a(0x19d)](_0x1cb9ef),{'defIds':_0x2048a3[_0x428b0a(0x14a)],'idSuffix':_0x3f04f1[_0x428b0a(0x146)]},u({'ref':_0x30f3ee,'className':_0x5b3958},_0x51ef9e),_0x16415d);});function y(_0x270cac,_0x2043c7,_0x24a231,_0x497aae,_0x1c84f6){var _0x15d68e=_0x47e78f;return f[_0x15d68e(0x16e)](_0x270cac[_0x15d68e(0x143)],u(u({'key':_0x2043c7},q(_0x270cac,_0x24a231,_0x1c84f6)),_0x497aae),(W(_0x270cac,_0x24a231)[_0x15d68e(0x1f4)]||[])[_0x15d68e(0x200)](function(_0x49ec6e,_0x3a4ac3){var _0xbfd7ca=_0x15d68e;return y(_0x49ec6e,''[_0xbfd7ca(0x19d)](_0x2043c7,'-')['concat'](_0x270cac[_0xbfd7ca(0x143)],'-')['concat'](_0x3a4ac3),_0x24a231,void 0x0,_0x1c84f6);}));}function q(_0x5978d9,_0x29ebd0,_0x4a1528){var _0x2aff7c=_0x47e78f,_0x174317=u({},_0x5978d9[_0x2aff7c(0x1cd)]);_0x4a1528!=null&&_0x4a1528['colorChannel1']&&_0x174317[_0x2aff7c(0x1da)]===_0x2aff7c(0x211)&&(_0x174317[_0x2aff7c(0x1da)]=_0x4a1528[_0x2aff7c(0x211)]),_0x5978d9[_0x2aff7c(0x143)]==='mask'&&_0x174317['id']&&(_0x174317['id']=_0x174317['id']+_0x29ebd0[_0x2aff7c(0x1b1)]),Object[_0x2aff7c(0x215)](_0x174317)[_0x2aff7c(0x1f5)](function(_0x51420b){var _0x5689a8=_0x2aff7c,_0x3e6232=_0x51420b[0x0],_0x2454e1=_0x51420b[0x1];_0x3e6232===_0x5689a8(0x1a6)&&typeof _0x2454e1==_0x5689a8(0x147)&&(_0x174317[_0x3e6232]=_0x2454e1[_0x5689a8(0x15b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29ebd0[_0x5689a8(0x1b1)],')')));});var _0x57e06a=_0x29ebd0[_0x2aff7c(0x14a)];return!_0x57e06a||_0x57e06a[_0x2aff7c(0x1de)]===0x0||(_0x5978d9['tag']==='use'&&_0x174317[_0x2aff7c(0x144)]&&(_0x174317[_0x2aff7c(0x144)]=_0x174317[_0x2aff7c(0x144)]+_0x29ebd0[_0x2aff7c(0x1b1)]),Object['entries'](_0x174317)[_0x2aff7c(0x1f5)](function(_0x5c3882){var _0x3e6a42=_0x2aff7c,_0x1706f0=_0x5c3882[0x0],_0x48ca68=_0x5c3882[0x1];typeof _0x48ca68=='string'&&(_0x174317[_0x1706f0]=_0x48ca68[_0x3e6a42(0x15b)](/url\(#(.*)\)/,_0x3e6a42(0x1b5)[_0x3e6a42(0x19d)](_0x29ebd0[_0x3e6a42(0x1b1)],')')));})),_0x174317;}function W(_0x35062c,_0x4882e1){var _0x856d62=_0x47e78f,_0x4159e8,_0x50798b=_0x4882e1[_0x856d62(0x14a)];return!_0x50798b||_0x50798b[_0x856d62(0x1de)]===0x0?_0x35062c:_0x35062c[_0x856d62(0x143)]===_0x856d62(0x1d2)&&(!((_0x4159e8=_0x35062c[_0x856d62(0x1f4)])===null||_0x4159e8===void 0x0)&&_0x4159e8['length'])?u(u({},_0x35062c),{'children':_0x35062c['children'][_0x856d62(0x200)](function(_0x155cf9){var _0x1b350f=_0x856d62;return typeof _0x155cf9[_0x1b350f(0x1cd)]['id']=='string'&&_0x50798b&&_0x50798b[_0x1b350f(0x139)](_0x155cf9['attrs']['id'])?u(u({},_0x155cf9),{'attrs':u(u({},_0x155cf9[_0x1b350f(0x1cd)]),{'id':_0x155cf9[_0x1b350f(0x1cd)]['id']+_0x4882e1[_0x1b350f(0x1b1)]})}):_0x155cf9;})}):_0x35062c;}function G(){var _0x3c3e54=_0x47e78f;return Math['random']()['toString'](0x24)[_0x3c3e54(0x210)](0x2,0x8);}j[_0x47e78f(0x1a0)]=_0x47e78f(0x183);var B={'tag':'svg','attrs':{'xmlns':_0x47e78f(0x170),'fill':'none','viewBox':_0x47e78f(0x1cf),'width':_0x47e78f(0x205),'height':'1em'},'children':[{'tag':_0x47e78f(0x13f),'attrs':{'fill':_0x47e78f(0x1d6),'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':_0x47e78f(0x13f),'attrs':{'fill':'currentColor','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':_0x47e78f(0x188),'clipRule':'evenodd'}}]},P=f[_0x47e78f(0x151)](function(_0x339b08,_0x2b3380){var _0x3d9a54=_0x47e78f;return f[_0x3d9a54(0x16e)](j,Object[_0x3d9a54(0x1c4)]({},_0x339b08,{'id':'live-share-icon','ref':_0x2b3380,'icon':B}));});P[_0x47e78f(0x1a0)]='LiveShareIcon';var Y=Object[_0x47e78f(0x1e2)],R=(_0x50ae67,_0x2a20eb,_0x3e6259,_0x1cf185)=>{for(var _0x3c41c9=_0x1cf185>0x1?void 0x0:_0x1cf185?Y(_0x2a20eb,_0x3e6259):_0x2a20eb,_0x416b23=_0x50ae67['length']-0x1,_0x4c1aee;_0x416b23>=0x0;_0x416b23--)(_0x4c1aee=_0x50ae67[_0x416b23])&&(_0x3c41c9=_0x4c1aee(_0x3c41c9)||_0x3c41c9);return _0x3c41c9;},S=(_0x1d8c4b,_0x2d7195)=>(_0x529fe7,_0x556a76)=>_0x2d7195(_0x529fe7,_0x556a76,_0x1d8c4b);exports[_0x47e78f(0x19b)]=class extends o['RxDisposable']{constructor(_0x180435,_0x423a8c,_0x3dde18){var _0x503582=_0x47e78f;super(),v(this,_0x503582(0x18d),new Map()),(this[_0x503582(0x154)]=_0x180435,this['_injector']=_0x423a8c,this[_0x503582(0x193)]=_0x3dde18,this[_0x503582(0x1eb)]());}async[_0x47e78f(0x182)](_0xefab5f){var _0x1b28b6=_0x47e78f;return this[_0x1b28b6(0x18d)]['has'](_0xefab5f)||await this['_startLiveShareCoordinator'](_0xefab5f),this[_0x1b28b6(0x18d)][_0x1b28b6(0x1b7)](_0xefab5f);}[_0x47e78f(0x1eb)](){var _0x16abb4=_0x47e78f;this[_0x16abb4(0x154)]['getTypeOfUnitAdded$'](o[_0x16abb4(0x1d1)][_0x16abb4(0x189)])[_0x16abb4(0x175)](b[_0x16abb4(0x169)](this[_0x16abb4(0x148)]))['subscribe'](async _0x27d754=>{var _0x5f1933=_0x16abb4;const _0x11dad4=_0x27d754[_0x5f1933(0x165)]();this[_0x5f1933(0x18d)][_0x5f1933(0x1d3)](_0x11dad4)||this['_startLiveShareCoordinator'](_0x11dad4);}),this['_univerInstanceService'][_0x16abb4(0x13e)](o['UniverInstanceType'][_0x16abb4(0x189)])[_0x16abb4(0x175)](b[_0x16abb4(0x169)](this[_0x16abb4(0x148)]))['subscribe'](_0xc46022=>{var _0x526476=_0x16abb4;const _0x3397a6=_0xc46022[_0x526476(0x165)](),_0x26bf4f=this[_0x526476(0x18d)]['get'](_0x3397a6);_0x26bf4f==null||_0x26bf4f[_0x526476(0x179)]();});}async[_0x47e78f(0x21c)](_0x247af2){var _0x3e39dd=_0x47e78f;const _0x31503c=await this[_0x3e39dd(0x193)][_0x3e39dd(0x162)](_0x247af2),_0x24ce2e=this[_0x3e39dd(0x1f1)]['createInstance'](exports[_0x3e39dd(0x18c)],_0x247af2,_0x31503c);return _0x24ce2e[_0x3e39dd(0x196)](),this['_entities']['set'](_0x247af2,_0x24ce2e),_0x24ce2e;}},exports[_0x47e78f(0x19b)]=R([S(0x0,o[_0x47e78f(0x1a7)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x47e78f(0x213)](m[_0x47e78f(0x1e1)]))],exports[_0x47e78f(0x19b)]);var h=(_0x55bf22=>(_0x55bf22['OFFLINE']=_0x47e78f(0x212),_0x55bf22['IDLE']=_0x47e78f(0x1c8),_0x55bf22[_0x47e78f(0x1ca)]=_0x47e78f(0x199),_0x55bf22[_0x47e78f(0x219)]='not-following',_0x55bf22[_0x47e78f(0x1ab)]='presenting',_0x55bf22))(h||{});const Z=_0x47e78f(0x166),J=0xc8;exports[_0x47e78f(0x18c)]=class extends o['RxDisposable']{constructor(_0x60e2af,_0x1c62bc,_0x3b7405,_0x46e503,_0x51f582){var _0x444ffb=_0x47e78f;super(),v(this,_0x444ffb(0x21d),new D[(_0x444ffb(0x20e))](_0x444ffb(0x1c8))),v(this,_0x444ffb(0x153),this[_0x444ffb(0x21d)][_0x444ffb(0x1ef)]()),v(this,'_init',!0x1),v(this,_0x444ffb(0x1e0),null),v(this,_0x444ffb(0x1a3),null),(this[_0x444ffb(0x19c)]=_0x60e2af,this[_0x444ffb(0x14c)]=_0x1c62bc,this['_configService']=_0x3b7405,this['_liveShareService']=_0x46e503,this[_0x444ffb(0x174)]=_0x51f582);}get[_0x47e78f(0x21e)](){var _0x3b2ce0=_0x47e78f;return this[_0x3b2ce0(0x21d)][_0x3b2ce0(0x17b)]();}[_0x47e78f(0x179)](){var _0x1d7414=_0x47e78f,_0x12cc23;(_0x12cc23=this[_0x1d7414(0x1e0)])==null||_0x12cc23['dispose'](),this[_0x1d7414(0x21d)]['next'](_0x1d7414(0x1c8)),this[_0x1d7414(0x21d)][_0x1d7414(0x16d)]();}[_0x47e78f(0x196)](){var _0x57b893=_0x47e78f;this[_0x57b893(0x1eb)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0x57b893(0x175)](b[_0x57b893(0x169)](this[_0x57b893(0x148)]))[_0x57b893(0x142)](_0x4da5cd=>{var _0x55076f=_0x57b893;switch(_0x4da5cd){case m['SessionStatus'][_0x55076f(0x191)]:this['_handleOffline']();break;case m[_0x55076f(0x176)][_0x55076f(0x1b9)]:this[_0x55076f(0x1df)]();break;}}),this['_collabSession']['event$'][_0x57b893(0x175)](b['takeUntil'](this[_0x57b893(0x148)]))[_0x57b893(0x142)](_0x3f084f=>{var _0x7b183=_0x57b893;const {eventID:_0x430f58}=_0x3f084f;switch(_0x430f58){case _['CollaborationEvent'][_0x7b183(0x192)]:this[_0x7b183(0x163)](_0x3f084f);break;case _[_0x7b183(0x216)][_0x7b183(0x15d)]:this[_0x7b183(0x167)](_0x3f084f);break;case _[_0x7b183(0x216)][_0x7b183(0x1b6)]:this[_0x7b183(0x1fb)]();break;case _[_0x7b183(0x216)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3f084f);break;}}));}[_0x47e78f(0x17c)](){var _0x23dd84=_0x47e78f;this[_0x23dd84(0x14c)][_0x23dd84(0x141)]({'eventID':_[_0x23dd84(0x216)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x23dd84(0x14c)][_0x23dd84(0x204)]()}},this[_0x23dd84(0x19c)]);}[_0x47e78f(0x206)](){var _0x1fc0b4=_0x47e78f;this[_0x1fc0b4(0x21e)]===_0x1fc0b4(0x140)&&(this[_0x1fc0b4(0x21d)]['next'](_0x1fc0b4(0x1c8)),this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x1fc0b4(0x1b6)],'data':{'unitID':this[_0x1fc0b4(0x19c)]}},this[_0x1fc0b4(0x19c)]));}[_0x47e78f(0x16f)](){var _0x127b1c=_0x47e78f;this['_status']===_0x127b1c(0x1bd)&&(this['_status$'][_0x127b1c(0x1e6)](_0x127b1c(0x199)),this[_0x127b1c(0x172)]());}['stopFollowing'](){var _0x3904a8=_0x47e78f;this['_status']==='following'&&this[_0x3904a8(0x1ae)]();}[_0x47e78f(0x163)](_0x58c3f8){var _0x4ee3e7=_0x47e78f;const {presenter:_0x2bcb4d}=_0x58c3f8['data'],_0x4f83c3=this['_collabSession']['getMemberID']();this['_presenter']=_0x2bcb4d,_0x2bcb4d===_0x4f83c3?(this[_0x4ee3e7(0x1ae)](),this['_startPresenting']()):this[_0x4ee3e7(0x21e)]!==_0x4ee3e7(0x1bd)&&(this[_0x4ee3e7(0x21f)](),this[_0x4ee3e7(0x172)]());}[_0x47e78f(0x1f7)](){var _0x34aa1f=_0x47e78f;const _0xc3f15f={'eventID':_['CollaborationEvent'][_0x34aa1f(0x21a)]};this[_0x34aa1f(0x14c)][_0x34aa1f(0x141)](_0xc3f15f,this[_0x34aa1f(0x19c)]);}[_0x47e78f(0x1fb)](){var _0x3bf569=_0x47e78f;this['_presenter']=null,this[_0x3bf569(0x21e)]!==_0x3bf569(0x140)&&this[_0x3bf569(0x1c0)]();}[_0x47e78f(0x20f)](_0x44933d){var _0x2ba520=_0x47e78f;if(this['_status']===_0x2ba520(0x199)&&this[_0x2ba520(0x1a3)]===_0x44933d[_0x2ba520(0x160)][_0x2ba520(0x1ac)]){const _0xafc0c3=_['parseProtocolChangeset'](_0x44933d[_0x2ba520(0x160)])[_0x2ba520(0x17d)][_0x2ba520(0x1fd)]()[_0x2ba520(0x14e)](_0x12ae8e=>_0x12ae8e['id']===C['InsertSheetMutation']['id']);if(_0xafc0c3){const _0x3a2781=_0xafc0c3['params'][_0x2ba520(0x185)],_0x167f0d=_0xafc0c3[_0x2ba520(0x181)][_0x2ba520(0x187)]['id'];setTimeout(()=>{var _0x274071=_0x2ba520;this[_0x274071(0x174)][_0x274071(0x18b)](C[_0x274071(0x1f8)]['id'],{'unitId':_0x3a2781,'subUnitId':_0x167f0d},{'fromCollab':!0x0});});}}}[_0x47e78f(0x1ea)](){var _0x59537c=_0x47e78f;this[_0x59537c(0x21d)][_0x59537c(0x1e6)](_0x59537c(0x140));const _0x20c507=new Map(),_0x6ebd99=this[_0x59537c(0x1e0)]=new o['DisposableCollection']();_0x6ebd99[_0x59537c(0x208)](o[_0x59537c(0x1b8)](()=>{var _0x111707=_0x59537c;_0x20c507[_0x111707(0x1f5)](_0x1749aa=>_0x1749aa[_0x111707(0x16d)]()),_0x20c507[_0x111707(0x1c3)]();})),_0x6ebd99[_0x59537c(0x208)](this['_commandService']['onCommandExecuted'](_0x3f4220=>{var _0x54fb9b=_0x59537c,_0x308ece;if(_0x3f4220[_0x54fb9b(0x15c)]!==o['CommandType']['OPERATION']||!this['_liveShareService'][_0x54fb9b(0x218)](_0x3f4220['id']))return;const {id:_0x243141}=_0x3f4220;let _0x281690;_0x20c507[_0x54fb9b(0x1d3)](_0x243141)?_0x281690=_0x20c507[_0x54fb9b(0x1b7)](_0x243141):(_0x281690=new D['Subject'](),_0x20c507[_0x54fb9b(0x16a)](_0x243141,_0x281690),_0x281690[_0x54fb9b(0x175)](b[_0x54fb9b(0x194)]((_0x308ece=this['_configService'][_0x54fb9b(0x202)](Z))!=null?_0x308ece:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x7d8c33=>{var _0x2ef2bb=_0x54fb9b;this[_0x2ef2bb(0x14c)][_0x2ef2bb(0x141)]({'eventID':_[_0x2ef2bb(0x216)][_0x2ef2bb(0x15d)],'data':{'unitID':this[_0x2ef2bb(0x19c)],'operations':{[_0x7d8c33['id']]:{'id':_0x7d8c33['id'],'params':JSON[_0x2ef2bb(0x178)](_0x7d8c33[_0x2ef2bb(0x181)])}}}},this['_unitID']);})),_0x281690[_0x54fb9b(0x1e6)](_0x3f4220);})),this[_0x59537c(0x20b)][_0x59537c(0x159)](this[_0x59537c(0x19c)])[_0x59537c(0x1f5)](_0x5c8356=>this[_0x59537c(0x14c)][_0x59537c(0x141)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x59537c(0x19c)],'operations':{[_0x5c8356['id']]:{'id':_0x5c8356['id'],'params':JSON['stringify'](_0x5c8356[_0x59537c(0x181)])}}}},this[_0x59537c(0x19c)]));}[_0x47e78f(0x21f)](){var _0x48b1fa=_0x47e78f,_0x4b3707;this['_status$'][_0x48b1fa(0x1e6)]('idle'),(_0x4b3707=this[_0x48b1fa(0x1e0)])==null||_0x4b3707[_0x48b1fa(0x179)](),this[_0x48b1fa(0x1e0)]=null;}[_0x47e78f(0x172)](){var _0xbdfaee=_0x47e78f,_0x3c0065;(_0x3c0065=this[_0xbdfaee(0x1e0)])==null||_0x3c0065[_0xbdfaee(0x179)](),this[_0xbdfaee(0x21d)][_0xbdfaee(0x1e6)](_0xbdfaee(0x199));}[_0x47e78f(0x1c0)](){var _0x4948ec=_0x47e78f,_0x258c0f;this[_0x4948ec(0x21d)]['next'](_0x4948ec(0x1c8)),(_0x258c0f=this[_0x4948ec(0x1e0)])==null||_0x258c0f['dispose'](),this[_0x4948ec(0x1e0)]=null;}[_0x47e78f(0x1ae)](){var _0x44bc4b=_0x47e78f,_0x1b9d3d;this[_0x44bc4b(0x21d)][_0x44bc4b(0x1e6)]('not-following'),(_0x1b9d3d=this[_0x44bc4b(0x1e0)])==null||_0x1b9d3d['dispose']();}[_0x47e78f(0x167)](_0x74d37f){var _0x7dd73b=_0x47e78f;if(['presenting',_0x7dd73b(0x1bd),'offline'][_0x7dd73b(0x139)](this['_status'])||!_0x74d37f['data'][_0x7dd73b(0x1af)]||_0x74d37f['data']['presenter']===this[_0x7dd73b(0x14c)][_0x7dd73b(0x204)]())return;this[_0x7dd73b(0x21e)]==='idle'&&this[_0x7dd73b(0x172)]();const _0x1728c7=_0x74d37f[_0x7dd73b(0x160)][_0x7dd73b(0x1b2)];Object[_0x7dd73b(0x19f)](_0x1728c7)[_0x7dd73b(0x1f5)](_0x3dbdf9=>{var _0x53e43a=_0x7dd73b;this['_commandService'][_0x53e43a(0x18b)](_0x3dbdf9['id'],_0x3dbdf9[_0x53e43a(0x181)]?JSON[_0x53e43a(0x1a8)](_0x3dbdf9[_0x53e43a(0x181)]):null,{'fromCollab':!0x0});});}[_0x47e78f(0x13c)](){var _0x573c90=_0x47e78f,_0x2867a5;this[_0x573c90(0x21d)][_0x573c90(0x1e6)](_0x573c90(0x212)),(_0x2867a5=this[_0x573c90(0x1e0)])==null||_0x2867a5[_0x573c90(0x179)]();}['_handleOnline'](){var _0x4bf148=_0x47e78f;this['_status$'][_0x4bf148(0x1e6)](_0x4bf148(0x1c8)),this[_0x4bf148(0x1f7)]();}},exports[_0x47e78f(0x18c)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0x47e78f(0x18c)]);function A(){var _0x71d3f6=_0x47e78f;const _0x3edb0e=p[_0x71d3f6(0x149)](exports[_0x71d3f6(0x19b)]),_0x5a5a91=p[_0x71d3f6(0x149)](o['IUniverInstanceService']),_0x22a020=p[_0x71d3f6(0x1f9)](()=>_0x5a5a91[_0x71d3f6(0x19e)](o[_0x71d3f6(0x1d1)][_0x71d3f6(0x189)]),void 0x0,!0x1,[]),[_0x25a928,_0x5b0bef]=f[_0x71d3f6(0x1fe)](null),[_0x267f38,_0x4f722a]=f['useState'](h[_0x71d3f6(0x150)]),_0x52bd05=f[_0x71d3f6(0x214)](null);return f[_0x71d3f6(0x1e9)](()=>(_0x22a020&&_0x3edb0e['getLiveShareCoordinator'](_0x22a020['getUnitId']())[_0x71d3f6(0x1be)](_0x49a80b=>{var _0x43a1c6=_0x71d3f6;_0x5b0bef(_0x49a80b),_0x52bd05[_0x43a1c6(0x146)]=_0x49a80b[_0x43a1c6(0x153)]['subscribe'](_0x37f3d3=>{_0x4f722a(_0x37f3d3);});}),()=>{var _0x3c32d6=_0x71d3f6,_0x27eabb;(_0x27eabb=_0x52bd05['current'])==null||_0x27eabb[_0x3c32d6(0x1bc)](),_0x52bd05[_0x3c32d6(0x146)]=null;}),[_0x22a020,_0x3edb0e]),_0x25a928?l[_0x71d3f6(0x1e3)](g[_0x71d3f6(0x1e8)],{'align':'end','disabled':_0x267f38===h[_0x71d3f6(0x191)],'className':_0x71d3f6(0x1cc),'overlay':l[_0x71d3f6(0x1e3)](K,{'status':_0x267f38,'coordinator':_0x25a928}),'children':l['jsx']('button',{'className':g['clsx'](_0x71d3f6(0x1c2),{'univer-cursor-not-allowed':_0x267f38===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x267f38!==h[_0x71d3f6(0x191)]}),'type':_0x71d3f6(0x1c9),'children':l[_0x71d3f6(0x1e3)](P,{'className':_0x71d3f6(0x1b3)})})}):null;}function _0x371c(){var _0x230106=['delete','init','DependentOn','symbol','following','apply','LiveShareController','_unitID','concat','getCurrentTypeOfUnit$','values','displayName','rxjs','univer-w-full\x20univer-mb-3\x20univer-text-sm','_presenter','@univerjs/core','text','mask','IUniverInstanceService','parse','LiveShareStatus','_configService','PRESENTING','memberID','Fragment','_stopFollowing','presenter','trim','idSuffix','operations','univer-size-4','2000091PXLqcq','url(#$1','LIVESHARE_TERMINATE','get','toDisposable','ONLINE','4340448XLZxsg','connectInjector','unsubscribe','not-following','then','getOwnPropertySymbols','_beIdle','_uiPartsService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','clear','assign','@univerjs-pro/collaboration','UniverCollaborationClientPlugin','_mountLiveShare','idle','button','FOLLOWING','touchDependencies','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','attrs','_config','0\x200\x2017\x2017','5bGEZrL','UniverInstanceType','defs','has','@univerjs/design','You\x27are\x20offline.','currentColor','1447288ncPDeH','toStringTag','2598172HXiQbL','fill','registerComponent','_sharedOperations','registerSharedOperation','length','_handleOnline','_commandDisposable','CollaborationSessionService','getOwnPropertyDescriptor','jsx','jsxs','LiveShareService','next','call','Dropdown','useEffect','_startPresenting','_init','propertyIsEnumerable','defineProperty','@univerjs/ui','asObservable','_reporters','_injector','@univerjs/sheets-ui','live-share.config','children','forEach','univerjs-icon\x20univerjs-icon-','_fetchOperations','SetWorksheetActiveOperation','useObservable','IUIPartsService','_handleTerminate','disposeWithMe','reverse','useState','Stop\x20presenting','map','DesktopLiveShareController','getConfig','className','getMemberID','1em','stopPresenting','Disposable','add','stopFollowing','Button','_liveShareService','UNIVER_UNKNOWN','mergeOverrideWithDependencies','BehaviorSubject','_handleNewChangeSets','substring','colorChannel1','offline','Inject','useRef','entries','CollaborationEvent','SetScrollOperation','shouldShareOperation','NOT_FOLLOWING','LIVESHARE_FETCH_OPERATIONS','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','_status$','_status','_stopPresenting','onRendered','includes','setConfig','BuiltInUIPart','_handleOffline','react','getTypeOfUnitDisposed$','path','presenting','send','subscribe','tag','xlink:href','@univerjs-pro/collaboration-client','current','string','dispose$','useDependency','defIds','merge','_collabSession','7DmrBRq','find','prototype','IDLE','forwardRef','registerInitialStateReporter','status$','_univerInstanceService','extend','Start\x20following','LiveShare','from','getInitialStates','You\x27re\x20presenting\x20the\x20document','replace','type','LIVESHARE_OPERATION','1290guYcLo','div','data','icon','requireSession','_handleNewHost','Stop\x20following','getUnitId','SAME_OPERATION_SHARE_INTERVAL','_handleOperation','hasOwnProperty','takeUntil','set','IConfigService','UniverLiveSharePlugin','complete','createElement','startFollowing','http://www.w3.org/2000/svg','HEADER_MENU','_startFollowing','Start','_commandService','pipe','SessionStatus','Present\x20this\x20document','stringify','dispose','react/jsx-runtime','getValue','tryStartPresenting','mutations','6191224eiziCw','rxjs/operators','Injector','params','getLiveShareCoordinator','UniverIcon','109161JWaEep','unitId','91823IRHlgP','sheet','evenodd','UNIVER_SHEET','onStarting','executeCommand','LiveShareCoordinator','_entities','You\x27re\x20following\x20the\x20presenter','Module','SetZoomRatioOperation','OFFLINE','LIVESHARE_NEW_HOST','_collabSessionService','throttleTime'];_0x371c=function(){return _0x230106;};return _0x371c();}function K(_0x5eb0f5){var _0x3c5408=_0x47e78f;const {status:_0x24e456,coordinator:_0x45fc6c}=_0x5eb0f5;switch(_0x24e456){case h[_0x3c5408(0x150)]:return l['jsx'](z,{'coordinator':_0x45fc6c});case h['FOLLOWING']:return l[_0x3c5408(0x1e3)](Q,{'coordinator':_0x45fc6c});case h[_0x3c5408(0x219)]:return l['jsx'](X,{'coordinator':_0x45fc6c});case h[_0x3c5408(0x191)]:return l[_0x3c5408(0x1e3)](te,{});case h['PRESENTING']:return l[_0x3c5408(0x1e3)](ee,{'coordinator':_0x45fc6c});default:return null;}}function z(_0x11fc6d){var _0x275bb0=_0x47e78f;const {coordinator:_0x328d6c}=_0x11fc6d;return l['jsxs'](l[_0x275bb0(0x1ad)],{'children':[l[_0x275bb0(0x1e3)](_0x275bb0(0x15f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x275bb0(0x177)}),l[_0x275bb0(0x1e3)](g[_0x275bb0(0x20a)],{'onClick':()=>_0x328d6c[_0x275bb0(0x17c)](),'children':_0x275bb0(0x173)})]});}function Q(_0x402c7a){var _0xaa3037=_0x47e78f;const {coordinator:_0x67d749}=_0x402c7a;return l[_0xaa3037(0x1e4)](l[_0xaa3037(0x1ad)],{'children':[l[_0xaa3037(0x1e3)](_0xaa3037(0x15f),{'className':_0xaa3037(0x1a2),'children':_0xaa3037(0x18e)}),l[_0xaa3037(0x1e3)](g[_0xaa3037(0x20a)],{'onClick':()=>_0x67d749[_0xaa3037(0x209)](),'children':_0xaa3037(0x164)})]});}function X(_0x22fff6){var _0x3078de=_0x47e78f;const {coordinator:_0x47ef37}=_0x22fff6;return l[_0x3078de(0x1e4)](l[_0x3078de(0x1ad)],{'children':[l['jsx'](_0x3078de(0x15f),{'className':_0x3078de(0x1a2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3078de(0x1e3)](g['Button'],{'variant':_0x3078de(0x1a5),'onClick':()=>_0x47ef37[_0x3078de(0x16f)](),'children':_0x3078de(0x156)})]});}function ee(_0x3da6c1){var _0x10895f=_0x47e78f;const {coordinator:_0x2bd2ca}=_0x3da6c1;return l[_0x10895f(0x1e4)](l['Fragment'],{'children':[l[_0x10895f(0x1e3)](_0x10895f(0x15f),{'className':_0x10895f(0x1a2),'children':_0x10895f(0x15a)}),l['jsx'](g['Button'],{'variant':'default','onClick':()=>_0x2bd2ca[_0x10895f(0x206)](),'children':_0x10895f(0x1ff)})]});}function te(){var _0x136afc=_0x47e78f;return l[_0x136afc(0x1e3)](l['Fragment'],{'children':_0x136afc(0x1d5)});}var ie=Object[_0x47e78f(0x1e2)],ne=(_0x130cea,_0x1a65f1,_0x462479,_0x2dc0d4)=>{for(var _0x40e1cb=_0x2dc0d4>0x1?void 0x0:_0x2dc0d4?ie(_0x1a65f1,_0x462479):_0x1a65f1,_0x970da8=_0x130cea['length']-0x1,_0x207dee;_0x970da8>=0x0;_0x970da8--)(_0x207dee=_0x130cea[_0x970da8])&&(_0x40e1cb=_0x207dee(_0x40e1cb)||_0x40e1cb);return _0x40e1cb;},L=(_0x3141d1,_0x377f27)=>(_0x1c0627,_0x5725b8)=>_0x377f27(_0x1c0627,_0x5725b8,_0x3141d1);exports[_0x47e78f(0x201)]=class extends o[_0x47e78f(0x207)]{constructor(_0x2f2e0d,_0x4ff8c3){var _0x13cc14=_0x47e78f;super(),this[_0x13cc14(0x1f1)]=_0x2f2e0d,this[_0x13cc14(0x1c1)]=_0x4ff8c3,this[_0x13cc14(0x1c7)]();}[_0x47e78f(0x1c7)](){var _0x4747ef=_0x47e78f;this[_0x4747ef(0x1fc)](this[_0x4747ef(0x1c1)][_0x4747ef(0x1db)](p[_0x4747ef(0x13b)][_0x4747ef(0x171)],()=>p[_0x4747ef(0x1bb)](A,this[_0x4747ef(0x1f1)])));}},exports[_0x47e78f(0x201)]=ne([L(0x0,o[_0x47e78f(0x213)](o[_0x47e78f(0x180)])),L(0x1,p[_0x47e78f(0x1fa)])],exports[_0x47e78f(0x201)]);var re=Object[_0x47e78f(0x1ed)],se=Object[_0x47e78f(0x1e2)],oe=(_0x5da30f,_0x1b71a2,_0x23b377)=>_0x1b71a2 in _0x5da30f?re(_0x5da30f,_0x1b71a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23b377}):_0x5da30f[_0x1b71a2]=_0x23b377,ae=(_0x542533,_0x2f203e,_0x1f7fca,_0x2d2618)=>{for(var _0x5e3000=_0x2d2618>0x1?void 0x0:_0x2d2618?se(_0x2f203e,_0x1f7fca):_0x2f203e,_0x55f89e=_0x542533['length']-0x1,_0x123f0d;_0x55f89e>=0x0;_0x55f89e--)(_0x123f0d=_0x542533[_0x55f89e])&&(_0x5e3000=_0x123f0d(_0x5e3000)||_0x5e3000);return _0x5e3000;},N=(_0x3e7a79,_0x124b3b)=>(_0x2913d2,_0x3e33d3)=>_0x124b3b(_0x2913d2,_0x3e33d3,_0x3e7a79),T=(_0x12cc29,_0x4a877f,_0x68caa4)=>oe(_0x12cc29,typeof _0x4a877f!='symbol'?_0x4a877f+'':_0x4a877f,_0x68caa4);const le=_0x47e78f(0x21b);exports[_0x47e78f(0x16c)]=class extends o['Plugin']{constructor(_0x283bb0=x,_0x13a465,_0x2e6efc){var _0x50436e=_0x47e78f;super(),this[_0x50436e(0x1ce)]=_0x283bb0,this['_injector']=_0x13a465,this[_0x50436e(0x1aa)]=_0x2e6efc;const {..._0x398007}=o[_0x50436e(0x14b)]({},x,this[_0x50436e(0x1ce)]);this[_0x50436e(0x1aa)][_0x50436e(0x13a)]($,_0x398007);}[_0x47e78f(0x18a)](){var _0x486d73=_0x47e78f;o['registerDependencies'](this[_0x486d73(0x1f1)],o[_0x486d73(0x20d)]([[O],[exports[_0x486d73(0x19b)]],[E],[exports['DesktopLiveShareController']]],this[_0x486d73(0x1ce)]['override'])),o[_0x486d73(0x1cb)](this['_injector'],[[E]]);}[_0x47e78f(0x138)](){var _0x509053=_0x47e78f;o[_0x509053(0x1cb)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x47e78f(0x15c),o['UniverInstanceType'][_0x47e78f(0x20c)]),T(exports['UniverLiveSharePlugin'],'pluginName',le),exports[_0x47e78f(0x16c)]=ae([o[_0x47e78f(0x197)](m[_0x47e78f(0x1c6)]),N(0x1,o[_0x47e78f(0x213)](o[_0x47e78f(0x180)])),N(0x2,o[_0x47e78f(0x16b)])],exports['UniverLiveSharePlugin']),exports[_0x47e78f(0x157)]=A,exports[_0x47e78f(0x1e5)]=O,exports[_0x47e78f(0x1a9)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0xb981bb=_0x128b;(function(_0x2ca021,_0x30c7e5){var _0x4e3164=_0x128b,_0x4e5ebd=_0x2ca021();while(!![]){try{var _0x17db50=parseInt(_0x4e3164(0x1aa))/0x1*(-parseInt(_0x4e3164(0x176))/0x2)+-parseInt(_0x4e3164(0x1d0))/0x3+parseInt(_0x4e3164(0x186))/0x4*(parseInt(_0x4e3164(0x19c))/0x5)+-parseInt(_0x4e3164(0x1a4))/0x6+parseInt(_0x4e3164(0x169))/0x7+-parseInt(_0x4e3164(0x201))/0x8+parseInt(_0x4e3164(0x1ef))/0x9*(-parseInt(_0x4e3164(0x1e8))/0xa);if(_0x17db50===_0x30c7e5)break;else _0x4e5ebd['push'](_0x4e5ebd['shift']());}catch(_0x12a640){_0x4e5ebd['push'](_0x4e5ebd['shift']());}}}(_0x1c8d,0x58f88));var q=Object['defineProperty'],z=(_0x1d85c7,_0x481baa,_0x12349b)=>_0x481baa in _0x1d85c7?q(_0x1d85c7,_0x481baa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12349b}):_0x1d85c7[_0x481baa]=_0x12349b,d=(_0x5d03eb,_0x4a05b3,_0x440947)=>z(_0x5d03eb,typeof _0x4a05b3!=_0xb981bb(0x1d5)?_0x4a05b3+'':_0x4a05b3,_0x440947);import{CollaborationSessionService as _0xa7a23,SessionStatus as _0x109da2,UniverCollaborationClientPlugin as _0x4f654}from'@univerjs-pro/collaboration-client';function _0x128b(_0x28bb5a,_0x3754be){var _0x1c8d5c=_0x1c8d();return _0x128b=function(_0x128b28,_0x4ab4a2){_0x128b28=_0x128b28-0x153;var _0x2ce661=_0x1c8d5c[_0x128b28];return _0x2ce661;},_0x128b(_0x28bb5a,_0x3754be);}import{Disposable as _0x1f0cb2,toDisposable as _0x175da3,Inject as _0x1bcd7d,IUniverInstanceService as _0xcc8435,Injector as _0x37a562,IConfigService as _0x509fd7,ICommandService as _0x936333,RxDisposable as _0x431f32,UniverInstanceType as _0x3a976a,DisposableCollection as _0x467461,CommandType as _0x50e7a3,DependentOn as _0x5bda4b,Plugin as _0x267245,merge as _0x32e7ad,registerDependencies as _0x3d2a61,mergeOverrideWithDependencies as _0x299ee2,touchDependencies as _0x3fac19}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3a3cea,InsertSheetMutation as _0x1c8818}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x541067,SetScrollOperation as _0x34e2eb}from'@univerjs/sheets-ui';import{useDependency as _0x11f2c5,useObservable as _0x107d72,IUIPartsService as _0x2658e0,BuiltInUIPart as _0x475348,connectInjector as _0x2d5549}from'@univerjs/ui';import{jsx as _0x4c3f9c,jsxs as _0x55ac32,Fragment as _0x35c6a7}from'react/jsx-runtime';import{Dropdown as _0xb7c916,clsx as _0xb5c652,Button as _0x3c1ff4}from'@univerjs/design';import{forwardRef as _0x48edea,useRef as _0x4b0343,createElement as _0x299d9a,useState as _0x444650,useEffect as _0x4112e7}from'react';import{CollaborationEvent as _0x3796e6,parseProtocolChangeset as _0x50217b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x292abc,Subject as _0x24f5d6}from'rxjs';import{takeUntil as _0x586d99,throttleTime as _0x90091d}from'rxjs/operators';const Oe=_0xb981bb(0x17d),T={};function _0x1c8d(){var _0xf1aa62=['1013168zeydyB','_commandService','text','defineProperty','defIds','NOT_FOLLOWING','_sharedOperations','add','function','getTypeOfUnitDisposed$','type','toString','You\x27re\x20following\x20the\x20presenter','_startFollowing','currentColor','presenter','Start','_handleOnline','Stop\x20presenting','current','mutations','string','getLiveShareCoordinator','univer-size-4','OFFLINE','from','IDLE','fill','3112781lpyRqp','complete','hasOwnProperty','You\x27re\x20not\x20following\x20the\x20presenter','idle','map','apply','sessionStatus$','dispose$','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleOperation','_uiPartsService','_handleNewHost','2JRQQaC','entries','You\x27re\x20presenting\x20the\x20document','startFollowing','none','status$','prototype','live-share.config','data','1em','has','NEW_CHANGESETS','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_stopFollowing','set','_handleTerminate','8168JdRjRI','getInitialStates','parse','getUnitId','unsubscribe','UNIVER_SHEET','button','getOwnPropertyDescriptor','getValue','OPERATION','pluginName','_startLiveShareCoordinator','div','unitId','stopFollowing','get','registerSharedOperation','Start\x20following','http://www.w3.org/2000/svg','find','url(#$1','values','1565wCNlRA','0\x200\x2017\x2017','indexOf','displayName','then','subscribe','LIVESHARE_TERMINATE','operations','98286iVqwvn','idSuffix','defs','_collabSessionService','_collabSession','univer-w-full\x20univer-mb-3\x20univer-text-sm','75931sZpcqW','children','next','getConfig','UNIVER_UNKNOWN','LIVESHARE_NEW_HOST','_entities','forEach','_init','PRESENTING','evenodd','path','_handleOffline','Present\x20this\x20document','LIVESHARE_FETCH_OPERATIONS','_stopPresenting','includes','_beIdle','_startPresenting','dispose','LIVESHARE_REQUEST_HOST','offline','delete','override','onCommandExecuted','following','_liveShareService','xlink:href','_config','onStarting','executeCommand','LIVESHARE_OPERATION','tryStartPresenting','UNIVER_LIVE_SHARE_PLUGIN','mask','disposeWithMe','assign','colorChannel1','731607eFWPOD','_status$','_fetchOperations','clear','_reporters','symbol','UniverIcon','getCurrentTypeOfUnit$','icon','FOLLOWING','attrs','ONLINE','event$','memberID','params','_presenter','svg','HEADER_MENU','getMemberID','requireSession','send','substring','onRendered','_unitID','2460tiXtuI','tag','use','length','pipe','_status','replace','9387MDdBOc','init','live-share-icon','stringify','getOwnPropertySymbols','trim','_injector','concat','shouldShareOperation','_univerInstanceService','className','extend','not-following','_commandDisposable','_mountLiveShare','univerjs-icon\x20univerjs-icon-','_configService','reverse'];_0x1c8d=function(){return _0xf1aa62;};return _0x1c8d();}class L extends _0x1f0cb2{constructor(){var _0x5a3d64=_0xb981bb;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x5a3d64(0x1d4),new Set());}[_0xb981bb(0x196)](_0x4aea05){var _0x54b24d=_0xb981bb;return this['_sharedOperations'][_0x54b24d(0x154)](_0x4aea05),_0x175da3(()=>this[_0x54b24d(0x153)][_0x54b24d(0x1c0)](_0x4aea05));}['registerInitialStateReporter'](_0xb2d5a7){var _0x457bc1=_0xb981bb;return this[_0x457bc1(0x1d4)][_0x457bc1(0x154)](_0xb2d5a7),_0x175da3(()=>this[_0x457bc1(0x1d4)][_0x457bc1(0x1c0)](_0xb2d5a7));}[_0xb981bb(0x1f7)](_0x1d51c7){var _0x436a4e=_0xb981bb;return this[_0x436a4e(0x153)][_0x436a4e(0x180)](_0x1d51c7);}[_0xb981bb(0x187)](_0x274ef8){var _0x53be37=_0xb981bb;return Array[_0x53be37(0x166)](this['_reporters'])[_0x53be37(0x16e)](_0xd91ecb=>_0xd91ecb(_0x274ef8));}}var Ee=Object[_0xb981bb(0x18d)],we=(_0x3b4233,_0xbf9c43,_0xb16272,_0x571135)=>{var _0x2de9ce=_0xb981bb;for(var _0x127157=_0x571135>0x1?void 0x0:_0x571135?Ee(_0xbf9c43,_0xb16272):_0xbf9c43,_0x2ea51a=_0x3b4233[_0x2de9ce(0x1eb)]-0x1,_0xfb2ed5;_0x2ea51a>=0x0;_0x2ea51a--)(_0xfb2ed5=_0x3b4233[_0x2ea51a])&&(_0x127157=_0xfb2ed5(_0x127157)||_0x127157);return _0x127157;},Ne=(_0x49143c,_0x43513c)=>(_0x330532,_0x1971fe)=>_0x43513c(_0x330532,_0x1971fe,_0x49143c);let m=class extends _0x1f0cb2{constructor(_0x560661){var _0x332846=_0xb981bb;super(),this[_0x332846(0x1c4)]=_0x560661,this['_init']();}[_0xb981bb(0x1b2)](){var _0x4ace0b=_0xb981bb;[_0x541067['id'],_0x34e2eb['id'],_0x3a3cea['id']][_0x4ace0b(0x1b1)](_0x4ca4d7=>{var _0x2dee9c=_0x4ace0b;this[_0x2dee9c(0x1cd)](this[_0x2dee9c(0x1c4)][_0x2dee9c(0x196)](_0x4ca4d7));});}};m=we([Ne(0x0,_0x1bcd7d(L))],m);var c=function(){var _0x3db774=_0xb981bb;return c=Object[_0x3db774(0x1ce)]||function(_0x4f2e62){var _0x3058e4=_0x3db774;for(var _0x1a5fac,_0x4468fe=0x1,_0x3a2281=arguments['length'];_0x4468fe<_0x3a2281;_0x4468fe++){_0x1a5fac=arguments[_0x4468fe];for(var _0x5b8a9d in _0x1a5fac)Object['prototype'][_0x3058e4(0x16b)]['call'](_0x1a5fac,_0x5b8a9d)&&(_0x4f2e62[_0x5b8a9d]=_0x1a5fac[_0x5b8a9d]);}return _0x4f2e62;},c[_0x3db774(0x16f)](this,arguments);},Ce=function(_0x3f5bd5,_0x402568){var _0x54821f=_0xb981bb,_0x4e0803={};for(var _0x63eb59 in _0x3f5bd5)Object['prototype']['hasOwnProperty']['call'](_0x3f5bd5,_0x63eb59)&&_0x402568[_0x54821f(0x19e)](_0x63eb59)<0x0&&(_0x4e0803[_0x63eb59]=_0x3f5bd5[_0x63eb59]);if(_0x3f5bd5!=null&&typeof Object[_0x54821f(0x1f3)]==_0x54821f(0x155)){for(var _0x4bc143=0x0,_0x63eb59=Object['getOwnPropertySymbols'](_0x3f5bd5);_0x4bc143<_0x63eb59['length'];_0x4bc143++)_0x402568[_0x54821f(0x19e)](_0x63eb59[_0x4bc143])<0x0&&Object[_0x54821f(0x17c)]['propertyIsEnumerable']['call'](_0x3f5bd5,_0x63eb59[_0x4bc143])&&(_0x4e0803[_0x63eb59[_0x4bc143]]=_0x3f5bd5[_0x63eb59[_0x4bc143]]);}return _0x4e0803;},W=_0x48edea(function(_0x26068f,_0x39530b){var _0x14a876=_0xb981bb,_0x30fc4a=_0x26068f[_0x14a876(0x1d8)],_0x2b2f94=_0x26068f['id'],_0x46853=_0x26068f[_0x14a876(0x1f9)],_0x86baf6=_0x26068f['extend'],_0x20935e=Ce(_0x26068f,[_0x14a876(0x1d8),'id','className',_0x14a876(0x1fa)]),_0x1db1a3=_0x14a876(0x1fe)[_0x14a876(0x1f6)](_0x2b2f94,'\x20')[_0x14a876(0x1f6)](_0x46853||'')[_0x14a876(0x1f4)](),_0x341a77=_0x4b0343('_'[_0x14a876(0x1f6)](Le()));return Y(_0x30fc4a,''['concat'](_0x2b2f94),{'defIds':_0x30fc4a[_0x14a876(0x205)],'idSuffix':_0x341a77[_0x14a876(0x160)]},c({'ref':_0x39530b,'className':_0x1db1a3},_0x20935e),_0x86baf6);});function Y(_0x25019d,_0x4cc3ea,_0x4afdcf,_0x679898,_0x494523){var _0x18a2d8=_0xb981bb;return _0x299d9a(_0x25019d[_0x18a2d8(0x1e9)],c(c({'key':_0x4cc3ea},De(_0x25019d,_0x4afdcf,_0x494523)),_0x679898),(xe(_0x25019d,_0x4afdcf)[_0x18a2d8(0x1ab)]||[])['map'](function(_0x1e6f72,_0x42dbdb){var _0x3b5419=_0x18a2d8;return Y(_0x1e6f72,''[_0x3b5419(0x1f6)](_0x4cc3ea,'-')[_0x3b5419(0x1f6)](_0x25019d[_0x3b5419(0x1e9)],'-')[_0x3b5419(0x1f6)](_0x42dbdb),_0x4afdcf,void 0x0,_0x494523);}));}function De(_0xad1f03,_0xd33e45,_0x2f51a7){var _0x286327=_0xb981bb,_0x1e5fa9=c({},_0xad1f03['attrs']);_0x2f51a7!=null&&_0x2f51a7[_0x286327(0x1cf)]&&_0x1e5fa9[_0x286327(0x168)]===_0x286327(0x1cf)&&(_0x1e5fa9[_0x286327(0x168)]=_0x2f51a7[_0x286327(0x1cf)]),_0xad1f03[_0x286327(0x1e9)]==='mask'&&_0x1e5fa9['id']&&(_0x1e5fa9['id']=_0x1e5fa9['id']+_0xd33e45['idSuffix']),Object['entries'](_0x1e5fa9)['forEach'](function(_0x39c6c0){var _0x47d003=_0x286327,_0x10cd0a=_0x39c6c0[0x0],_0x13ca1f=_0x39c6c0[0x1];_0x10cd0a===_0x47d003(0x1cc)&&typeof _0x13ca1f==_0x47d003(0x162)&&(_0x1e5fa9[_0x10cd0a]=_0x13ca1f[_0x47d003(0x1ee)](/url\(#(.*)\)/,_0x47d003(0x19a)['concat'](_0xd33e45['idSuffix'],')')));});var _0x2c7b57=_0xd33e45[_0x286327(0x205)];return!_0x2c7b57||_0x2c7b57[_0x286327(0x1eb)]===0x0||(_0xad1f03[_0x286327(0x1e9)]===_0x286327(0x1ea)&&_0x1e5fa9['xlink:href']&&(_0x1e5fa9[_0x286327(0x1c5)]=_0x1e5fa9[_0x286327(0x1c5)]+_0xd33e45[_0x286327(0x1a5)]),Object[_0x286327(0x177)](_0x1e5fa9)[_0x286327(0x1b1)](function(_0x135374){var _0x343f34=_0x286327,_0x129395=_0x135374[0x0],_0x1cefb4=_0x135374[0x1];typeof _0x1cefb4==_0x343f34(0x162)&&(_0x1e5fa9[_0x129395]=_0x1cefb4[_0x343f34(0x1ee)](/url\(#(.*)\)/,_0x343f34(0x19a)[_0x343f34(0x1f6)](_0xd33e45[_0x343f34(0x1a5)],')')));})),_0x1e5fa9;}function xe(_0x977d58,_0x20d48c){var _0x2a264a=_0xb981bb,_0x366436,_0x4fedc6=_0x20d48c['defIds'];return!_0x4fedc6||_0x4fedc6[_0x2a264a(0x1eb)]===0x0?_0x977d58:_0x977d58[_0x2a264a(0x1e9)]===_0x2a264a(0x1a6)&&(!((_0x366436=_0x977d58['children'])===null||_0x366436===void 0x0)&&_0x366436[_0x2a264a(0x1eb)])?c(c({},_0x977d58),{'children':_0x977d58[_0x2a264a(0x1ab)][_0x2a264a(0x16e)](function(_0x2c4a16){var _0x38d933=_0x2a264a;return typeof _0x2c4a16[_0x38d933(0x1da)]['id']==_0x38d933(0x162)&&_0x4fedc6&&_0x4fedc6['includes'](_0x2c4a16[_0x38d933(0x1da)]['id'])?c(c({},_0x2c4a16),{'attrs':c(c({},_0x2c4a16['attrs']),{'id':_0x2c4a16[_0x38d933(0x1da)]['id']+_0x20d48c[_0x38d933(0x1a5)]})}):_0x2c4a16;})}):_0x977d58;}function Le(){var _0x16890b=_0xb981bb;return Math['random']()[_0x16890b(0x158)](0x24)[_0x16890b(0x1e5)](0x2,0x8);}W[_0xb981bb(0x19f)]=_0xb981bb(0x1d6);var ye={'tag':_0xb981bb(0x1e0),'attrs':{'xmlns':_0xb981bb(0x198),'fill':_0xb981bb(0x17a),'viewBox':_0xb981bb(0x19d),'width':'1em','height':_0xb981bb(0x17f)},'children':[{'tag':_0xb981bb(0x1b5),'attrs':{'fill':_0xb981bb(0x15b),'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':_0xb981bb(0x1b5),'attrs':{'fill':_0xb981bb(0x15b),'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':_0xb981bb(0x1b4),'clipRule':'evenodd'}}]},B=_0x48edea(function(_0x599e11,_0x41a3dd){var _0x2a03e3=_0xb981bb;return _0x299d9a(W,Object[_0x2a03e3(0x1ce)]({},_0x599e11,{'id':_0x2a03e3(0x1f1),'ref':_0x41a3dd,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object[_0xb981bb(0x18d)],Z=(_0xd5b7a6,_0x323be5,_0x42d499,_0x12c586)=>{var _0x7b4d22=_0xb981bb;for(var _0x26216c=_0x12c586>0x1?void 0x0:_0x12c586?Re(_0x323be5,_0x42d499):_0x323be5,_0x2203cf=_0xd5b7a6[_0x7b4d22(0x1eb)]-0x1,_0x5d6a45;_0x2203cf>=0x0;_0x2203cf--)(_0x5d6a45=_0xd5b7a6[_0x2203cf])&&(_0x26216c=_0x5d6a45(_0x26216c)||_0x26216c);return _0x26216c;},f=(_0x2f96db,_0x3f28dd)=>(_0x2ae3fd,_0x2b566e)=>_0x3f28dd(_0x2ae3fd,_0x2b566e,_0x2f96db);let I=class extends _0x431f32{constructor(_0x18a798,_0x12fcc3,_0x1629fa){var _0x3deab9=_0xb981bb;super(),d(this,'_entities',new Map()),(this[_0x3deab9(0x1f8)]=_0x18a798,this[_0x3deab9(0x1f5)]=_0x12fcc3,this[_0x3deab9(0x1a7)]=_0x1629fa,this[_0x3deab9(0x1b2)]());}async[_0xb981bb(0x163)](_0x5f5bcf){var _0xcca69c=_0xb981bb;return this[_0xcca69c(0x1b0)][_0xcca69c(0x180)](_0x5f5bcf)||await this[_0xcca69c(0x191)](_0x5f5bcf),this[_0xcca69c(0x1b0)][_0xcca69c(0x195)](_0x5f5bcf);}[_0xb981bb(0x1b2)](){var _0x305e28=_0xb981bb;this[_0x305e28(0x1f8)]['getTypeOfUnitAdded$'](_0x3a976a[_0x305e28(0x18b)])['pipe'](_0x586d99(this[_0x305e28(0x171)]))[_0x305e28(0x1a1)](async _0x1182a0=>{var _0x1b2582=_0x305e28;const _0x5f3138=_0x1182a0[_0x1b2582(0x189)]();this[_0x1b2582(0x1b0)][_0x1b2582(0x180)](_0x5f3138)||this[_0x1b2582(0x191)](_0x5f3138);}),this['_univerInstanceService'][_0x305e28(0x156)](_0x3a976a[_0x305e28(0x18b)])[_0x305e28(0x1ec)](_0x586d99(this['dispose$']))[_0x305e28(0x1a1)](_0x43c7ac=>{var _0x116ff6=_0x305e28;const _0x199a51=_0x43c7ac[_0x116ff6(0x189)](),_0x22ca88=this[_0x116ff6(0x1b0)][_0x116ff6(0x195)](_0x199a51);_0x22ca88==null||_0x22ca88[_0x116ff6(0x1bd)]();});}async[_0xb981bb(0x191)](_0x136870){var _0x3aaeda=_0xb981bb;const _0x1b6d45=await this[_0x3aaeda(0x1a7)][_0x3aaeda(0x1e3)](_0x136870),_0x32c709=this[_0x3aaeda(0x1f5)]['createInstance'](C,_0x136870,_0x1b6d45);return _0x32c709[_0x3aaeda(0x1f0)](),this['_entities'][_0x3aaeda(0x184)](_0x136870,_0x32c709),_0x32c709;}};I=Z([f(0x0,_0xcc8435),f(0x1,_0x1bcd7d(_0x37a562)),f(0x2,_0x1bcd7d(_0xa7a23))],I);var h=(_0x5a858b=>(_0x5a858b['OFFLINE']='offline',_0x5a858b[_0xb981bb(0x167)]=_0xb981bb(0x16d),_0x5a858b[_0xb981bb(0x1d9)]='following',_0x5a858b['NOT_FOLLOWING']=_0xb981bb(0x1fb),_0x5a858b[_0xb981bb(0x1b3)]='presenting',_0x5a858b))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x431f32{constructor(_0x24a9d7,_0x75f55c,_0x5534f8,_0x246856,_0x3a9ce2){var _0x3dd1d3=_0xb981bb;super(),d(this,_0x3dd1d3(0x1d1),new _0x292abc(_0x3dd1d3(0x16d))),d(this,'status$',this[_0x3dd1d3(0x1d1)]['asObservable']()),d(this,_0x3dd1d3(0x1b2),!0x1),d(this,_0x3dd1d3(0x1fc),null),d(this,_0x3dd1d3(0x1df),null),(this['_unitID']=_0x24a9d7,this[_0x3dd1d3(0x1a8)]=_0x75f55c,this[_0x3dd1d3(0x1ff)]=_0x5534f8,this[_0x3dd1d3(0x1c4)]=_0x246856,this[_0x3dd1d3(0x202)]=_0x3a9ce2);}get['_status'](){var _0x222bda=_0xb981bb;return this[_0x222bda(0x1d1)][_0x222bda(0x18e)]();}[_0xb981bb(0x1bd)](){var _0x515bc3=_0xb981bb,_0x16bb32;(_0x16bb32=this[_0x515bc3(0x1fc)])==null||_0x16bb32[_0x515bc3(0x1bd)](),this[_0x515bc3(0x1d1)][_0x515bc3(0x1ac)](_0x515bc3(0x16d)),this[_0x515bc3(0x1d1)][_0x515bc3(0x16a)]();}[_0xb981bb(0x1f0)](){var _0xa24847=_0xb981bb;this['_init']||(this[_0xa24847(0x1b2)]=!0x0,this[_0xa24847(0x1a8)][_0xa24847(0x170)][_0xa24847(0x1ec)](_0x586d99(this[_0xa24847(0x171)]))[_0xa24847(0x1a1)](_0x284340=>{var _0x470fbf=_0xa24847;switch(_0x284340){case _0x109da2[_0x470fbf(0x165)]:this[_0x470fbf(0x1b6)]();break;case _0x109da2[_0x470fbf(0x1db)]:this[_0x470fbf(0x15e)]();break;}}),this[_0xa24847(0x1a8)][_0xa24847(0x1dc)]['pipe'](_0x586d99(this['dispose$']))[_0xa24847(0x1a1)](_0x4a58e2=>{var _0x50d29c=_0xa24847;const {eventID:_0x1436f9}=_0x4a58e2;switch(_0x1436f9){case _0x3796e6[_0x50d29c(0x1af)]:this[_0x50d29c(0x175)](_0x4a58e2);break;case _0x3796e6[_0x50d29c(0x1c9)]:this[_0x50d29c(0x173)](_0x4a58e2);break;case _0x3796e6[_0x50d29c(0x1a2)]:this[_0x50d29c(0x185)]();break;case _0x3796e6[_0x50d29c(0x181)]:this['_handleNewChangeSets'](_0x4a58e2);break;}}));}[_0xb981bb(0x1ca)](){var _0x217daf=_0xb981bb;this[_0x217daf(0x1a8)][_0x217daf(0x1e4)]({'eventID':_0x3796e6[_0x217daf(0x1be)],'data':{'unitID':this['_unitID'],'userID':this[_0x217daf(0x1a8)][_0x217daf(0x1e2)]()}},this[_0x217daf(0x1e7)]);}['stopPresenting'](){var _0x16b9ba=_0xb981bb;this[_0x16b9ba(0x1ed)]==='presenting'&&(this[_0x16b9ba(0x1d1)][_0x16b9ba(0x1ac)](_0x16b9ba(0x16d)),this[_0x16b9ba(0x1a8)][_0x16b9ba(0x1e4)]({'eventID':_0x3796e6[_0x16b9ba(0x1a2)],'data':{'unitID':this[_0x16b9ba(0x1e7)]}},this[_0x16b9ba(0x1e7)]));}[_0xb981bb(0x179)](){var _0x4fc44e=_0xb981bb;this[_0x4fc44e(0x1ed)]==='not-following'&&(this[_0x4fc44e(0x1d1)]['next']('following'),this[_0x4fc44e(0x15a)]());}[_0xb981bb(0x194)](){var _0x8cb4e1=_0xb981bb;this[_0x8cb4e1(0x1ed)]===_0x8cb4e1(0x1c3)&&this[_0x8cb4e1(0x183)]();}[_0xb981bb(0x175)](_0x1b4888){var _0x5925de=_0xb981bb;const {presenter:_0x4ae5eb}=_0x1b4888[_0x5925de(0x17e)],_0x30c954=this[_0x5925de(0x1a8)][_0x5925de(0x1e2)]();this['_presenter']=_0x4ae5eb,_0x4ae5eb===_0x30c954?(this[_0x5925de(0x183)](),this[_0x5925de(0x1bc)]()):this['_status']!==_0x5925de(0x1fb)&&(this[_0x5925de(0x1b9)](),this[_0x5925de(0x15a)]());}[_0xb981bb(0x1d2)](){var _0x4b2ec4=_0xb981bb;const _0x457e81={'eventID':_0x3796e6[_0x4b2ec4(0x1b8)]};this[_0x4b2ec4(0x1a8)]['send'](_0x457e81,this['_unitID']);}[_0xb981bb(0x185)](){var _0x267741=_0xb981bb;this[_0x267741(0x1df)]=null,this[_0x267741(0x1ed)]!=='presenting'&&this[_0x267741(0x1bb)]();}['_handleNewChangeSets'](_0x4902e4){var _0x4d8eb7=_0xb981bb;if(this[_0x4d8eb7(0x1ed)]===_0x4d8eb7(0x1c3)&&this[_0x4d8eb7(0x1df)]===_0x4902e4[_0x4d8eb7(0x17e)][_0x4d8eb7(0x1dd)]){const _0x4711b3=_0x50217b(_0x4902e4[_0x4d8eb7(0x17e)])[_0x4d8eb7(0x161)][_0x4d8eb7(0x200)]()[_0x4d8eb7(0x199)](_0x187c00=>_0x187c00['id']===_0x1c8818['id']);if(_0x4711b3){const _0x55763d=_0x4711b3[_0x4d8eb7(0x1de)][_0x4d8eb7(0x193)],_0x3c087b=_0x4711b3['params']['sheet']['id'];setTimeout(()=>{var _0x32aa70=_0x4d8eb7;this[_0x32aa70(0x202)][_0x32aa70(0x1c8)](_0x3a3cea['id'],{'unitId':_0x55763d,'subUnitId':_0x3c087b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1046a9=_0xb981bb;this['_status$'][_0x1046a9(0x1ac)]('presenting');const _0x278730=new Map(),_0x2d3df1=this[_0x1046a9(0x1fc)]=new _0x467461();_0x2d3df1[_0x1046a9(0x154)](_0x175da3(()=>{var _0xd9b076=_0x1046a9;_0x278730[_0xd9b076(0x1b1)](_0x3bd7aa=>_0x3bd7aa[_0xd9b076(0x16a)]()),_0x278730[_0xd9b076(0x1d3)]();})),_0x2d3df1[_0x1046a9(0x154)](this[_0x1046a9(0x202)][_0x1046a9(0x1c2)](_0x3b2f23=>{var _0x32984c=_0x1046a9,_0x2c7ce3;if(_0x3b2f23[_0x32984c(0x157)]!==_0x50e7a3[_0x32984c(0x18f)]||!this[_0x32984c(0x1c4)][_0x32984c(0x1f7)](_0x3b2f23['id']))return;const {id:_0x2fe26e}=_0x3b2f23;let _0x23f4da;_0x278730[_0x32984c(0x180)](_0x2fe26e)?_0x23f4da=_0x278730['get'](_0x2fe26e):(_0x23f4da=new _0x24f5d6(),_0x278730[_0x32984c(0x184)](_0x2fe26e,_0x23f4da),_0x23f4da['pipe'](_0x90091d((_0x2c7ce3=this['_configService'][_0x32984c(0x1ad)](Pe))!=null?_0x2c7ce3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32984c(0x1a1)](_0x250ee4=>{var _0x2629a4=_0x32984c;this[_0x2629a4(0x1a8)]['send']({'eventID':_0x3796e6[_0x2629a4(0x1c9)],'data':{'unitID':this['_unitID'],'operations':{[_0x250ee4['id']]:{'id':_0x250ee4['id'],'params':JSON[_0x2629a4(0x1f2)](_0x250ee4[_0x2629a4(0x1de)])}}}},this[_0x2629a4(0x1e7)]);})),_0x23f4da[_0x32984c(0x1ac)](_0x3b2f23);})),this['_liveShareService']['getInitialStates'](this[_0x1046a9(0x1e7)])[_0x1046a9(0x1b1)](_0x423b63=>this[_0x1046a9(0x1a8)]['send']({'eventID':_0x3796e6[_0x1046a9(0x1c9)],'data':{'unitID':this[_0x1046a9(0x1e7)],'operations':{[_0x423b63['id']]:{'id':_0x423b63['id'],'params':JSON[_0x1046a9(0x1f2)](_0x423b63[_0x1046a9(0x1de)])}}}},this[_0x1046a9(0x1e7)]));}[_0xb981bb(0x1b9)](){var _0x1f6a63=_0xb981bb,_0x2b7f32;this['_status$']['next'](_0x1f6a63(0x16d)),(_0x2b7f32=this['_commandDisposable'])==null||_0x2b7f32['dispose'](),this[_0x1f6a63(0x1fc)]=null;}[_0xb981bb(0x15a)](){var _0x3c0ae5=_0xb981bb,_0x5ea509;(_0x5ea509=this['_commandDisposable'])==null||_0x5ea509[_0x3c0ae5(0x1bd)](),this['_status$'][_0x3c0ae5(0x1ac)](_0x3c0ae5(0x1c3));}[_0xb981bb(0x1bb)](){var _0x276b88=_0xb981bb,_0xdecc28;this[_0x276b88(0x1d1)]['next'](_0x276b88(0x16d)),(_0xdecc28=this[_0x276b88(0x1fc)])==null||_0xdecc28['dispose'](),this[_0x276b88(0x1fc)]=null;}[_0xb981bb(0x183)](){var _0x495545=_0xb981bb,_0x321ae7;this[_0x495545(0x1d1)][_0x495545(0x1ac)](_0x495545(0x1fb)),(_0x321ae7=this[_0x495545(0x1fc)])==null||_0x321ae7[_0x495545(0x1bd)]();}[_0xb981bb(0x173)](_0x1e0a5d){var _0x64f0f5=_0xb981bb;if(['presenting',_0x64f0f5(0x1fb),_0x64f0f5(0x1bf)][_0x64f0f5(0x1ba)](this[_0x64f0f5(0x1ed)])||!_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x15c)]||_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x15c)]===this[_0x64f0f5(0x1a8)]['getMemberID']())return;this[_0x64f0f5(0x1ed)]==='idle'&&this[_0x64f0f5(0x15a)]();const _0x3c59d2=_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x1a3)];Object[_0x64f0f5(0x19b)](_0x3c59d2)[_0x64f0f5(0x1b1)](_0x2ffa66=>{var _0x2faab9=_0x64f0f5;this['_commandService'][_0x2faab9(0x1c8)](_0x2ffa66['id'],_0x2ffa66[_0x2faab9(0x1de)]?JSON[_0x2faab9(0x188)](_0x2ffa66[_0x2faab9(0x1de)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1519bf=_0xb981bb,_0x454f44;this['_status$'][_0x1519bf(0x1ac)](_0x1519bf(0x1bf)),(_0x454f44=this['_commandDisposable'])==null||_0x454f44[_0x1519bf(0x1bd)]();}['_handleOnline'](){var _0x480fe8=_0xb981bb;this[_0x480fe8(0x1d1)]['next'](_0x480fe8(0x16d)),this[_0x480fe8(0x1d2)]();}};C=Z([f(0x2,_0x509fd7),f(0x3,_0x1bcd7d(L)),f(0x4,_0x936333)],C);function Te(){var _0x57f741=_0xb981bb;const _0x1124fe=_0x11f2c5(I),_0x381b73=_0x11f2c5(_0xcc8435),_0x36a6fc=_0x107d72(()=>_0x381b73[_0x57f741(0x1d7)](_0x3a976a[_0x57f741(0x18b)]),void 0x0,!0x1,[]),[_0x280801,_0x4a7ccd]=_0x444650(null),[_0x960ece,_0x546fdd]=_0x444650(h[_0x57f741(0x167)]),_0x35b451=_0x4b0343(null);return _0x4112e7(()=>(_0x36a6fc&&_0x1124fe['getLiveShareCoordinator'](_0x36a6fc[_0x57f741(0x189)]())[_0x57f741(0x1a0)](_0xb04ee1=>{var _0x14300c=_0x57f741;_0x4a7ccd(_0xb04ee1),_0x35b451[_0x14300c(0x160)]=_0xb04ee1[_0x14300c(0x17b)]['subscribe'](_0x6c529a=>{_0x546fdd(_0x6c529a);});}),()=>{var _0x1ace22=_0x57f741,_0x400bb9;(_0x400bb9=_0x35b451[_0x1ace22(0x160)])==null||_0x400bb9[_0x1ace22(0x18a)](),_0x35b451['current']=null;}),[_0x36a6fc,_0x1124fe]),_0x280801?_0x4c3f9c(_0xb7c916,{'align':'end','disabled':_0x960ece===h['OFFLINE'],'className':_0x57f741(0x182),'overlay':_0x4c3f9c($e,{'status':_0x960ece,'coordinator':_0x280801}),'children':_0x4c3f9c('button',{'className':_0xb5c652(_0x57f741(0x172),{'univer-cursor-not-allowed':_0x960ece===h[_0x57f741(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x960ece!==h[_0x57f741(0x165)]}),'type':_0x57f741(0x18c),'children':_0x4c3f9c(B,{'className':_0x57f741(0x164)})})}):null;}function $e(_0x1afab9){var _0x3f5ff3=_0xb981bb;const {status:_0x489c30,coordinator:_0x97e99c}=_0x1afab9;switch(_0x489c30){case h[_0x3f5ff3(0x167)]:return _0x4c3f9c(Fe,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x1d9)]:return _0x4c3f9c(He,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x206)]:return _0x4c3f9c(je,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x165)]:return _0x4c3f9c(Ve,{});case h[_0x3f5ff3(0x1b3)]:return _0x4c3f9c(Ue,{'coordinator':_0x97e99c});default:return null;}}function Fe(_0x157a28){var _0xdb6711=_0xb981bb;const {coordinator:_0x28998a}=_0x157a28;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c(_0xdb6711(0x192),{'className':_0xdb6711(0x1a9),'children':_0xdb6711(0x1b7)}),_0x4c3f9c(_0x3c1ff4,{'onClick':()=>_0x28998a[_0xdb6711(0x1ca)](),'children':_0xdb6711(0x15d)})]});}function He(_0x1309bc){var _0x1b04b2=_0xb981bb;const {coordinator:_0x1ddc37}=_0x1309bc;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1b04b2(0x159)}),_0x4c3f9c(_0x3c1ff4,{'onClick':()=>_0x1ddc37[_0x1b04b2(0x194)](),'children':'Stop\x20following'})]});}function je(_0x4302c5){var _0x5519c7=_0xb981bb;const {coordinator:_0x35af22}=_0x4302c5;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5519c7(0x16c)}),_0x4c3f9c(_0x3c1ff4,{'variant':_0x5519c7(0x203),'onClick':()=>_0x35af22['startFollowing'](),'children':_0x5519c7(0x197)})]});}function Ue(_0x29f4a8){var _0x35feb1=_0xb981bb;const {coordinator:_0x5cbda6}=_0x29f4a8;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':_0x35feb1(0x1a9),'children':_0x35feb1(0x178)}),_0x4c3f9c(_0x3c1ff4,{'variant':'default','onClick':()=>_0x5cbda6['stopPresenting'](),'children':_0x35feb1(0x15f)})]});}function Ve(){return _0x4c3f9c(_0x35c6a7,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x249148,_0x53bad2,_0x97988e,_0x2c9780)=>{var _0x2ea9d9=_0xb981bb;for(var _0x5098ac=_0x2c9780>0x1?void 0x0:_0x2c9780?Me(_0x53bad2,_0x97988e):_0x53bad2,_0x3759c3=_0x249148[_0x2ea9d9(0x1eb)]-0x1,_0x2d0e76;_0x3759c3>=0x0;_0x3759c3--)(_0x2d0e76=_0x249148[_0x3759c3])&&(_0x5098ac=_0x2d0e76(_0x5098ac)||_0x5098ac);return _0x5098ac;},$=(_0x45d42e,_0x59bb20)=>(_0x181d7a,_0x599808)=>_0x59bb20(_0x181d7a,_0x599808,_0x45d42e);let b=class extends _0x1f0cb2{constructor(_0x3a386b,_0xc4307c){var _0x463425=_0xb981bb;super(),this[_0x463425(0x1f5)]=_0x3a386b,this[_0x463425(0x174)]=_0xc4307c,this[_0x463425(0x1fd)]();}['_mountLiveShare'](){var _0xf6084a=_0xb981bb;this[_0xf6084a(0x1cd)](this['_uiPartsService']['registerComponent'](_0x475348[_0xf6084a(0x1e1)],()=>_0x2d5549(Te,this[_0xf6084a(0x1f5)])));}};b=ke([$(0x0,_0x1bcd7d(_0x37a562)),$(0x1,_0x2658e0)],b);var Ge=Object[_0xb981bb(0x204)],We=Object[_0xb981bb(0x18d)],Ye=(_0x342e8b,_0xfad069,_0x2c2755)=>_0xfad069 in _0x342e8b?Ge(_0x342e8b,_0xfad069,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c2755}):_0x342e8b[_0xfad069]=_0x2c2755,Be=(_0x220226,_0x34cdf7,_0x167074,_0x5050c1)=>{var _0x2a4d12=_0xb981bb;for(var _0x5e71b2=_0x5050c1>0x1?void 0x0:_0x5050c1?We(_0x34cdf7,_0x167074):_0x34cdf7,_0x538211=_0x220226[_0x2a4d12(0x1eb)]-0x1,_0x575402;_0x538211>=0x0;_0x538211--)(_0x575402=_0x220226[_0x538211])&&(_0x5e71b2=_0x575402(_0x5e71b2)||_0x5e71b2);return _0x5e71b2;},F=(_0x1dda79,_0x4994fa)=>(_0x250a82,_0x49df34)=>_0x4994fa(_0x250a82,_0x49df34,_0x1dda79),J=(_0x28c95d,_0x55fbd4,_0xa644c7)=>Ye(_0x28c95d,typeof _0x55fbd4!=_0xb981bb(0x1d5)?_0x55fbd4+'':_0x55fbd4,_0xa644c7);const Ze=_0xb981bb(0x1cb);let O=class extends _0x267245{constructor(_0x21cac8=T,_0x12fda2,_0x30f0a2){var _0x24d990=_0xb981bb;super(),this['_config']=_0x21cac8,this[_0x24d990(0x1f5)]=_0x12fda2,this[_0x24d990(0x1ff)]=_0x30f0a2;const {..._0x170cc9}=_0x32e7ad({},T,this[_0x24d990(0x1c6)]);this[_0x24d990(0x1ff)]['setConfig'](Oe,_0x170cc9);}[_0xb981bb(0x1c7)](){var _0x32bd59=_0xb981bb;_0x3d2a61(this[_0x32bd59(0x1f5)],_0x299ee2([[L],[I],[m],[b]],this[_0x32bd59(0x1c6)][_0x32bd59(0x1c1)])),_0x3fac19(this[_0x32bd59(0x1f5)],[[m]]);}[_0xb981bb(0x1e6)](){_0x3fac19(this['_injector'],[[b]]);}};J(O,_0xb981bb(0x157),_0x3a976a[_0xb981bb(0x1ae)]),J(O,_0xb981bb(0x190),Ze),O=Be([_0x5bda4b(_0x4f654),F(0x1,_0x1bcd7d(_0x37a562)),F(0x2,_0x509fd7)],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 _0x5258fa=_0x139a;(function(_0x517ff7,_0x860d13){var _0x2b8d48=_0x139a,_0x3d7aec=_0x517ff7();while(!![]){try{var _0xc3a79d=parseInt(_0x2b8d48(0xca))/0x1*(parseInt(_0x2b8d48(0xb5))/0x2)+parseInt(_0x2b8d48(0xe9))/0x3*(-parseInt(_0x2b8d48(0x117))/0x4)+-parseInt(_0x2b8d48(0xa5))/0x5+-parseInt(_0x2b8d48(0xd2))/0x6*(parseInt(_0x2b8d48(0x10b))/0x7)+parseInt(_0x2b8d48(0xc2))/0x8*(parseInt(_0x2b8d48(0x107))/0x9)+-parseInt(_0x2b8d48(0x145))/0xa*(parseInt(_0x2b8d48(0x11e))/0xb)+-parseInt(_0x2b8d48(0xeb))/0xc*(-parseInt(_0x2b8d48(0x123))/0xd);if(_0xc3a79d===_0x860d13)break;else _0x3d7aec['push'](_0x3d7aec['shift']());}catch(_0x563652){_0x3d7aec['push'](_0x3d7aec['shift']());}}}(_0x1961,0x9b17e));function _0x139a(_0x194edb,_0xc3070e){var _0x196191=_0x1961();return _0x139a=function(_0x139a9b,_0x512bd4){_0x139a9b=_0x139a9b-0x99;var _0x25b3e4=_0x196191[_0x139a9b];return _0x25b3e4;},_0x139a(_0x194edb,_0xc3070e);}var q=Object[_0x5258fa(0x9f)],z=(_0x351192,_0x5b1dba,_0x3ce5e3)=>_0x5b1dba in _0x351192?q(_0x351192,_0x5b1dba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce5e3}):_0x351192[_0x5b1dba]=_0x3ce5e3,d=(_0x458fea,_0x581d72,_0x4fed65)=>z(_0x458fea,typeof _0x581d72!=_0x5258fa(0xbf)?_0x581d72+'':_0x581d72,_0x4fed65);import{CollaborationSessionService as _0x166df7,SessionStatus as _0x6072e1,UniverCollaborationClientPlugin as _0xbe77e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5d78d5,toDisposable as _0x104973,Inject as _0x15c34c,IUniverInstanceService as _0x30f196,Injector as _0x1bb1a3,IConfigService as _0xf2eda3,ICommandService as _0x225c55,RxDisposable as _0x5123e3,UniverInstanceType as _0x14c1f5,DisposableCollection as _0x2872b8,CommandType as _0x16b9f5,DependentOn as _0x36185f,Plugin as _0x607589,merge as _0x1c848f,registerDependencies as _0x1910a1,mergeOverrideWithDependencies as _0x2ab882,touchDependencies as _0xbfe10e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x266111,InsertSheetMutation as _0x58b5c8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3a60b0,SetScrollOperation as _0x399981}from'@univerjs/sheets-ui';import{useDependency as _0x1a879f,useObservable as _0x2c858e,IUIPartsService as _0x48f43a,BuiltInUIPart as _0x5e9d9c,connectInjector as _0x21477e}from'@univerjs/ui';function _0x1961(){var _0x17567c=['registerSharedOperation','_stopFollowing','LIVESHARE_REQUEST_HOST','sessionStatus$','startFollowing','url(#$1','SAME_OPERATION_SHARE_INTERVAL','requireSession','getOwnPropertyDescriptor','defineProperty','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','svg','_reporters','toString','unitId','1126065viKAlJ','prototype','extend','live-share.config','_handleNewHost','call','_status$','executeCommand','UniverIcon','operations','_status','_beIdle','getLiveShareCoordinator','idSuffix','_handleOperation','idle','310162bAPFhl','string','_handleOnline','xlink:href','mask','concat','trim','complete','Start\x20following','memberID','symbol','next','_fetchOperations','8244712ltLhWv','Stop\x20following','http://www.w3.org/2000/svg','stopPresenting','stringify','assign','_init','use','5YCApvA','hasOwnProperty','attrs','not-following','_unitID','UNIVER_SHEET','parse','UNIVER_UNKNOWN','22236fndPlu','getOwnPropertySymbols','IDLE','getUnitId','_handleNewChangeSets','add','div','asObservable','dispose','icon','univer-size-4','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','following','_configService','find','_presenter','button','getConfig','get','setConfig','_univerInstanceService','_injector','2999622JRYTKO','_stopPresenting','3248124EzDVgQ','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','function','_config','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','getValue','replace','live-share-icon','entries','end','tag','defIds','0\x200\x2017\x2017','PRESENTING','LIVESHARE_FETCH_OPERATIONS','pipe','onStarting','disposeWithMe','_mountLiveShare','univer-w-full\x20univer-mb-3\x20univer-text-sm','Stop\x20presenting','_uiPartsService','map','path','getMemberID','_collabSession','9RHCwOK','from','Present\x20this\x20document','registerComponent','1379FNQHYW','delete','1em','_liveShareService','HEADER_MENU','reverse','values','set','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','subscribe','apply','includes','4epbNTb','presenter','children','current','_entities','dispose$','evenodd','303534jnUYuK','tryStartPresenting','none','then','fill','39eOdOxK','data','propertyIsEnumerable','presenting','unsubscribe','onRendered','type','_commandDisposable','shouldShareOperation','stopFollowing','currentColor','_handleTerminate','forEach','override','_collabSessionService','className','send','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_handleOffline','indexOf','_startFollowing','colorChannel1','clear','substring','FOLLOWING','getInitialStates','_startPresenting','OFFLINE','offline','has','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_commandService','getTypeOfUnitDisposed$','Start','10kOLrQL','_startLiveShareCoordinator','LIVESHARE_TERMINATE','status$','params','NEW_CHANGESETS','ONLINE','length','_sharedOperations','displayName','init'];_0x1961=function(){return _0x17567c;};return _0x1961();}import{jsx as _0x5e2a77,jsxs as _0x57e686,Fragment as _0x49f367}from'react/jsx-runtime';import{Dropdown as _0x57c4cd,clsx as _0x3354fe,Button as _0x32a223}from'@univerjs/design';import{forwardRef as _0x541777,useRef as _0x26071b,createElement as _0xe5743d,useState as _0x5b847f,useEffect as _0x2a5c1b}from'react';import{CollaborationEvent as _0x5e4eb2,parseProtocolChangeset as _0x3e708c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x513b10,Subject as _0x49a04c}from'rxjs';import{takeUntil as _0x3dec29,throttleTime as _0x56270f}from'rxjs/operators';const Oe=_0x5258fa(0xa8),T={};class L extends _0x5d78d5{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x5258fa(0x150)](_0x424064){var _0x406f72=_0x5258fa;return this[_0x406f72(0x14d)][_0x406f72(0xd7)](_0x424064),_0x104973(()=>this[_0x406f72(0x14d)][_0x406f72(0x10c)](_0x424064));}[_0x5258fa(0xf0)](_0xafb6f){var _0x5c03c5=_0x5258fa;return this['_reporters']['add'](_0xafb6f),_0x104973(()=>this[_0x5c03c5(0xa2)][_0x5c03c5(0x10c)](_0xafb6f));}['shouldShareOperation'](_0x258e8f){var _0x2c7c5a=_0x5258fa;return this[_0x2c7c5a(0x14d)]['has'](_0x258e8f);}[_0x5258fa(0x13c)](_0x348174){var _0x45bc2a=_0x5258fa;return Array[_0x45bc2a(0x108)](this[_0x45bc2a(0xa2)])[_0x45bc2a(0x103)](_0x56e5a2=>_0x56e5a2(_0x348174));}}var Ee=Object[_0x5258fa(0x9e)],we=(_0xce797b,_0x56dd88,_0x1520b1,_0x3d6f23)=>{var _0xf5b9b0=_0x5258fa;for(var _0x1852de=_0x3d6f23>0x1?void 0x0:_0x3d6f23?Ee(_0x56dd88,_0x1520b1):_0x56dd88,_0x1c113d=_0xce797b[_0xf5b9b0(0x14c)]-0x1,_0x1ca097;_0x1c113d>=0x0;_0x1c113d--)(_0x1ca097=_0xce797b[_0x1c113d])&&(_0x1852de=_0x1ca097(_0x1852de)||_0x1852de);return _0x1852de;},Ne=(_0x1423ba,_0x3c5c47)=>(_0x30fea2,_0x4609a8)=>_0x3c5c47(_0x30fea2,_0x4609a8,_0x1423ba);let m=class extends _0x5d78d5{constructor(_0x2489ac){var _0x4756c8=_0x5258fa;super(),this['_liveShareService']=_0x2489ac,this[_0x4756c8(0xc8)]();}[_0x5258fa(0xc8)](){[_0x3a60b0['id'],_0x399981['id'],_0x266111['id']]['forEach'](_0x7cdfaa=>{var _0x4fc7f1=_0x139a;this[_0x4fc7f1(0xfe)](this[_0x4fc7f1(0x10e)][_0x4fc7f1(0x150)](_0x7cdfaa));});}};m=we([Ne(0x0,_0x15c34c(L))],m);var c=function(){var _0xc1b193=_0x5258fa;return c=Object['assign']||function(_0x189425){var _0x2c524e=_0x139a;for(var _0x80c157,_0x11064b=0x1,_0x1358fc=arguments[_0x2c524e(0x14c)];_0x11064b<_0x1358fc;_0x11064b++){_0x80c157=arguments[_0x11064b];for(var _0x2f94fc in _0x80c157)Object['prototype'][_0x2c524e(0xcb)][_0x2c524e(0xaa)](_0x80c157,_0x2f94fc)&&(_0x189425[_0x2f94fc]=_0x80c157[_0x2f94fc]);}return _0x189425;},c[_0xc1b193(0x115)](this,arguments);},Ce=function(_0x4c7e9f,_0x268726){var _0x2cb23c=_0x5258fa,_0x37e4ca={};for(var _0x4475a3 in _0x4c7e9f)Object['prototype'][_0x2cb23c(0xcb)][_0x2cb23c(0xaa)](_0x4c7e9f,_0x4475a3)&&_0x268726[_0x2cb23c(0x136)](_0x4475a3)<0x0&&(_0x37e4ca[_0x4475a3]=_0x4c7e9f[_0x4475a3]);if(_0x4c7e9f!=null&&typeof Object[_0x2cb23c(0xd3)]==_0x2cb23c(0xee)){for(var _0xe5af2c=0x0,_0x4475a3=Object[_0x2cb23c(0xd3)](_0x4c7e9f);_0xe5af2c<_0x4475a3['length'];_0xe5af2c++)_0x268726[_0x2cb23c(0x136)](_0x4475a3[_0xe5af2c])<0x0&&Object[_0x2cb23c(0xa6)][_0x2cb23c(0x125)]['call'](_0x4c7e9f,_0x4475a3[_0xe5af2c])&&(_0x37e4ca[_0x4475a3[_0xe5af2c]]=_0x4c7e9f[_0x4475a3[_0xe5af2c]]);}return _0x37e4ca;},W=_0x541777(function(_0x4f5f7b,_0x4b36dc){var _0xe05a70=_0x5258fa,_0x3f0de1=_0x4f5f7b['icon'],_0x4c8990=_0x4f5f7b['id'],_0x1a3707=_0x4f5f7b[_0xe05a70(0x132)],_0x4848c5=_0x4f5f7b['extend'],_0x4ec7f3=Ce(_0x4f5f7b,[_0xe05a70(0xdb),'id',_0xe05a70(0x132),_0xe05a70(0xa7)]),_0x237c50='univerjs-icon\x20univerjs-icon-'['concat'](_0x4c8990,'\x20')[_0xe05a70(0xba)](_0x1a3707||'')[_0xe05a70(0xbb)](),_0x31212b=_0x26071b('_'[_0xe05a70(0xba)](Le()));return Y(_0x3f0de1,''[_0xe05a70(0xba)](_0x4c8990),{'defIds':_0x3f0de1[_0xe05a70(0xf8)],'idSuffix':_0x31212b[_0xe05a70(0x11a)]},c({'ref':_0x4b36dc,'className':_0x237c50},_0x4ec7f3),_0x4848c5);});function Y(_0x9aa26f,_0x12a3ce,_0x1ff5d8,_0x4992b3,_0xcc4081){var _0xa6acde=_0x5258fa;return _0xe5743d(_0x9aa26f[_0xa6acde(0xf7)],c(c({'key':_0x12a3ce},De(_0x9aa26f,_0x1ff5d8,_0xcc4081)),_0x4992b3),(xe(_0x9aa26f,_0x1ff5d8)[_0xa6acde(0x119)]||[])[_0xa6acde(0x103)](function(_0x21688a,_0x25038a){var _0x5dc11b=_0xa6acde;return Y(_0x21688a,''[_0x5dc11b(0xba)](_0x12a3ce,'-')[_0x5dc11b(0xba)](_0x9aa26f['tag'],'-')[_0x5dc11b(0xba)](_0x25038a),_0x1ff5d8,void 0x0,_0xcc4081);}));}function De(_0x4aaecd,_0x3e4082,_0x50d5a8){var _0x27b903=_0x5258fa,_0x583c7b=c({},_0x4aaecd[_0x27b903(0xcc)]);_0x50d5a8!=null&&_0x50d5a8[_0x27b903(0x138)]&&_0x583c7b[_0x27b903(0x122)]===_0x27b903(0x138)&&(_0x583c7b[_0x27b903(0x122)]=_0x50d5a8['colorChannel1']),_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xb9)&&_0x583c7b['id']&&(_0x583c7b['id']=_0x583c7b['id']+_0x3e4082['idSuffix']),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x3d70f0){var _0x3c008b=_0x27b903,_0x11d835=_0x3d70f0[0x0],_0x5458b9=_0x3d70f0[0x1];_0x11d835==='mask'&&typeof _0x5458b9==_0x3c008b(0xb6)&&(_0x583c7b[_0x11d835]=_0x5458b9[_0x3c008b(0xf3)](/url\(#(.*)\)/,_0x3c008b(0x9b)['concat'](_0x3e4082[_0x3c008b(0xb2)],')')));});var _0x1f62f4=_0x3e4082[_0x27b903(0xf8)];return!_0x1f62f4||_0x1f62f4[_0x27b903(0x14c)]===0x0||(_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xc9)&&_0x583c7b[_0x27b903(0xb8)]&&(_0x583c7b[_0x27b903(0xb8)]=_0x583c7b['xlink:href']+_0x3e4082[_0x27b903(0xb2)]),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x9bac31){var _0x34e2a0=_0x27b903,_0x7c0466=_0x9bac31[0x0],_0xc2dd41=_0x9bac31[0x1];typeof _0xc2dd41==_0x34e2a0(0xb6)&&(_0x583c7b[_0x7c0466]=_0xc2dd41[_0x34e2a0(0xf3)](/url\(#(.*)\)/,_0x34e2a0(0x9b)['concat'](_0x3e4082[_0x34e2a0(0xb2)],')')));})),_0x583c7b;}function xe(_0x332f8c,_0x329f01){var _0x3b44d5=_0x5258fa,_0x2e1e81,_0x548e1f=_0x329f01[_0x3b44d5(0xf8)];return!_0x548e1f||_0x548e1f[_0x3b44d5(0x14c)]===0x0?_0x332f8c:_0x332f8c[_0x3b44d5(0xf7)]==='defs'&&(!((_0x2e1e81=_0x332f8c[_0x3b44d5(0x119)])===null||_0x2e1e81===void 0x0)&&_0x2e1e81[_0x3b44d5(0x14c)])?c(c({},_0x332f8c),{'children':_0x332f8c[_0x3b44d5(0x119)][_0x3b44d5(0x103)](function(_0x1b7a2d){var _0x1fe392=_0x3b44d5;return typeof _0x1b7a2d[_0x1fe392(0xcc)]['id']==_0x1fe392(0xb6)&&_0x548e1f&&_0x548e1f[_0x1fe392(0x116)](_0x1b7a2d[_0x1fe392(0xcc)]['id'])?c(c({},_0x1b7a2d),{'attrs':c(c({},_0x1b7a2d[_0x1fe392(0xcc)]),{'id':_0x1b7a2d['attrs']['id']+_0x329f01[_0x1fe392(0xb2)]})}):_0x1b7a2d;})}):_0x332f8c;}function Le(){var _0x5079a2=_0x5258fa;return Math['random']()[_0x5079a2(0xa3)](0x24)[_0x5079a2(0x13a)](0x2,0x8);}W[_0x5258fa(0x14e)]=_0x5258fa(0xad);var ye={'tag':_0x5258fa(0xa1),'attrs':{'xmlns':_0x5258fa(0xc4),'fill':_0x5258fa(0x120),'viewBox':_0x5258fa(0xf9),'width':_0x5258fa(0x10d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0x141)}},{'tag':_0x5258fa(0x104),'attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0xa0),'fillRule':_0x5258fa(0x11d),'clipRule':_0x5258fa(0x11d)}}]},B=_0x541777(function(_0x207e36,_0xdcb45c){var _0x9d5824=_0x5258fa;return _0xe5743d(W,Object[_0x9d5824(0xc7)]({},_0x207e36,{'id':_0x9d5824(0xf4),'ref':_0xdcb45c,'icon':ye}));});B[_0x5258fa(0x14e)]='LiveShareIcon';var Re=Object[_0x5258fa(0x9e)],Z=(_0x1cc305,_0x282081,_0x3dcee3,_0x5e63de)=>{var _0x1c9b9a=_0x5258fa;for(var _0x36bd65=_0x5e63de>0x1?void 0x0:_0x5e63de?Re(_0x282081,_0x3dcee3):_0x282081,_0x10acc0=_0x1cc305[_0x1c9b9a(0x14c)]-0x1,_0x29c53a;_0x10acc0>=0x0;_0x10acc0--)(_0x29c53a=_0x1cc305[_0x10acc0])&&(_0x36bd65=_0x29c53a(_0x36bd65)||_0x36bd65);return _0x36bd65;},f=(_0x535dbc,_0x3d98b9)=>(_0x986af1,_0x54711d)=>_0x3d98b9(_0x986af1,_0x54711d,_0x535dbc);let I=class extends _0x5123e3{constructor(_0x16eda5,_0xe09f0a,_0x8d541e){var _0x4b4d77=_0x5258fa;super(),d(this,_0x4b4d77(0x11b),new Map()),(this[_0x4b4d77(0xe7)]=_0x16eda5,this[_0x4b4d77(0xe8)]=_0xe09f0a,this['_collabSessionService']=_0x8d541e,this[_0x4b4d77(0xc8)]());}async[_0x5258fa(0xb1)](_0x5a25d6){var _0x405f36=_0x5258fa;return this[_0x405f36(0x11b)][_0x405f36(0x140)](_0x5a25d6)||await this[_0x405f36(0x146)](_0x5a25d6),this[_0x405f36(0x11b)][_0x405f36(0xe5)](_0x5a25d6);}[_0x5258fa(0xc8)](){var _0x378353=_0x5258fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x14c1f5['UNIVER_SHEET'])[_0x378353(0xfc)](_0x3dec29(this['dispose$']))[_0x378353(0x114)](async _0x497a88=>{var _0x5cdddd=_0x378353;const _0x24ccf7=_0x497a88[_0x5cdddd(0xd5)]();this[_0x5cdddd(0x11b)]['has'](_0x24ccf7)||this['_startLiveShareCoordinator'](_0x24ccf7);}),this[_0x378353(0xe7)][_0x378353(0x143)](_0x14c1f5[_0x378353(0xcf)])[_0x378353(0xfc)](_0x3dec29(this[_0x378353(0x11c)]))[_0x378353(0x114)](_0x1bc627=>{var _0x2065e3=_0x378353;const _0x210eee=_0x1bc627[_0x2065e3(0xd5)](),_0x40879a=this['_entities'][_0x2065e3(0xe5)](_0x210eee);_0x40879a==null||_0x40879a['dispose']();});}async[_0x5258fa(0x146)](_0x57a64b){var _0x4cda0d=_0x5258fa;const _0x1004ae=await this[_0x4cda0d(0x131)][_0x4cda0d(0x9d)](_0x57a64b),_0x2bc36c=this[_0x4cda0d(0xe8)]['createInstance'](C,_0x57a64b,_0x1004ae);return _0x2bc36c[_0x4cda0d(0x14f)](),this[_0x4cda0d(0x11b)][_0x4cda0d(0x112)](_0x57a64b,_0x2bc36c),_0x2bc36c;}};I=Z([f(0x0,_0x30f196),f(0x1,_0x15c34c(_0x1bb1a3)),f(0x2,_0x15c34c(_0x166df7))],I);var h=(_0x515e4b=>(_0x515e4b[_0x5258fa(0x13e)]=_0x5258fa(0x13f),_0x515e4b[_0x5258fa(0xd4)]=_0x5258fa(0xb4),_0x515e4b[_0x5258fa(0x13b)]=_0x5258fa(0xdf),_0x515e4b['NOT_FOLLOWING']=_0x5258fa(0xcd),_0x515e4b['PRESENTING']='presenting',_0x515e4b))(h||{});const Pe=_0x5258fa(0x9c),Ae=0xc8;let C=class extends _0x5123e3{constructor(_0x3047bc,_0x55dc15,_0x162d05,_0x5aeb67,_0x51a31a){var _0x24d12f=_0x5258fa;super(),d(this,_0x24d12f(0xab),new _0x513b10('idle')),d(this,_0x24d12f(0x148),this[_0x24d12f(0xab)][_0x24d12f(0xd9)]()),d(this,_0x24d12f(0xc8),!0x1),d(this,_0x24d12f(0x12a),null),d(this,'_presenter',null),(this[_0x24d12f(0xce)]=_0x3047bc,this['_collabSession']=_0x55dc15,this[_0x24d12f(0xe0)]=_0x162d05,this[_0x24d12f(0x10e)]=_0x5aeb67,this[_0x24d12f(0x142)]=_0x51a31a);}get[_0x5258fa(0xaf)](){var _0x210c6e=_0x5258fa;return this[_0x210c6e(0xab)][_0x210c6e(0xf2)]();}[_0x5258fa(0xda)](){var _0x917d5a=_0x5258fa,_0x4ac8ba;(_0x4ac8ba=this[_0x917d5a(0x12a)])==null||_0x4ac8ba[_0x917d5a(0xda)](),this['_status$'][_0x917d5a(0xc0)](_0x917d5a(0xb4)),this[_0x917d5a(0xab)][_0x917d5a(0xbc)]();}[_0x5258fa(0x14f)](){var _0x545346=_0x5258fa;this[_0x545346(0xc8)]||(this['_init']=!0x0,this['_collabSession'][_0x545346(0x99)][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))['subscribe'](_0xd46afb=>{var _0x1fbd64=_0x545346;switch(_0xd46afb){case _0x6072e1[_0x1fbd64(0x13e)]:this['_handleOffline']();break;case _0x6072e1[_0x1fbd64(0x14b)]:this[_0x1fbd64(0xb7)]();break;}}),this['_collabSession']['event$'][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))[_0x545346(0x114)](_0x1ac858=>{var _0x1b92f2=_0x545346;const {eventID:_0x5c80e6}=_0x1ac858;switch(_0x5c80e6){case _0x5e4eb2[_0x1b92f2(0xec)]:this[_0x1b92f2(0xa9)](_0x1ac858);break;case _0x5e4eb2[_0x1b92f2(0xed)]:this[_0x1b92f2(0xb3)](_0x1ac858);break;case _0x5e4eb2['LIVESHARE_TERMINATE']:this[_0x1b92f2(0x12e)]();break;case _0x5e4eb2[_0x1b92f2(0x14a)]:this['_handleNewChangeSets'](_0x1ac858);break;}}));}[_0x5258fa(0x11f)](){var _0x3a1bf7=_0x5258fa;this[_0x3a1bf7(0x106)][_0x3a1bf7(0x133)]({'eventID':_0x5e4eb2[_0x3a1bf7(0x152)],'data':{'unitID':this['_unitID'],'userID':this[_0x3a1bf7(0x106)][_0x3a1bf7(0x105)]()}},this['_unitID']);}[_0x5258fa(0xc5)](){var _0x43a2a9=_0x5258fa;this[_0x43a2a9(0xaf)]===_0x43a2a9(0x126)&&(this[_0x43a2a9(0xab)]['next'](_0x43a2a9(0xb4)),this['_collabSession'][_0x43a2a9(0x133)]({'eventID':_0x5e4eb2[_0x43a2a9(0x147)],'data':{'unitID':this[_0x43a2a9(0xce)]}},this[_0x43a2a9(0xce)]));}[_0x5258fa(0x9a)](){var _0x598f7d=_0x5258fa;this['_status']===_0x598f7d(0xcd)&&(this[_0x598f7d(0xab)]['next'](_0x598f7d(0xdf)),this[_0x598f7d(0x137)]());}[_0x5258fa(0x12c)](){var _0x2f7bb5=_0x5258fa;this[_0x2f7bb5(0xaf)]===_0x2f7bb5(0xdf)&&this[_0x2f7bb5(0x151)]();}[_0x5258fa(0xa9)](_0x4061a7){var _0x39a4b9=_0x5258fa;const {presenter:_0x2665e4}=_0x4061a7[_0x39a4b9(0x124)],_0x3bdc60=this[_0x39a4b9(0x106)]['getMemberID']();this['_presenter']=_0x2665e4,_0x2665e4===_0x3bdc60?(this[_0x39a4b9(0x151)](),this[_0x39a4b9(0x13d)]()):this['_status']!==_0x39a4b9(0xcd)&&(this[_0x39a4b9(0xea)](),this[_0x39a4b9(0x137)]());}[_0x5258fa(0xc1)](){var _0x1567b4=_0x5258fa;const _0x26ce7e={'eventID':_0x5e4eb2[_0x1567b4(0xfb)]};this[_0x1567b4(0x106)][_0x1567b4(0x133)](_0x26ce7e,this[_0x1567b4(0xce)]);}[_0x5258fa(0x12e)](){var _0x2bfd6c=_0x5258fa;this[_0x2bfd6c(0xe2)]=null,this[_0x2bfd6c(0xaf)]!==_0x2bfd6c(0x126)&&this[_0x2bfd6c(0xb0)]();}[_0x5258fa(0xd6)](_0x3ebc91){var _0x21d463=_0x5258fa;if(this[_0x21d463(0xaf)]===_0x21d463(0xdf)&&this[_0x21d463(0xe2)]===_0x3ebc91[_0x21d463(0x124)][_0x21d463(0xbe)]){const _0x595031=_0x3e708c(_0x3ebc91[_0x21d463(0x124)])['mutations'][_0x21d463(0x110)]()[_0x21d463(0xe1)](_0x4d080c=>_0x4d080c['id']===_0x58b5c8['id']);if(_0x595031){const _0x3a3e73=_0x595031[_0x21d463(0x149)][_0x21d463(0xa4)],_0x358585=_0x595031[_0x21d463(0x149)]['sheet']['id'];setTimeout(()=>{var _0x51050b=_0x21d463;this['_commandService'][_0x51050b(0xac)](_0x266111['id'],{'unitId':_0x3a3e73,'subUnitId':_0x358585},{'fromCollab':!0x0});});}}}[_0x5258fa(0x13d)](){var _0x1dfa08=_0x5258fa;this['_status$'][_0x1dfa08(0xc0)]('presenting');const _0x229265=new Map(),_0xf58a46=this[_0x1dfa08(0x12a)]=new _0x2872b8();_0xf58a46[_0x1dfa08(0xd7)](_0x104973(()=>{var _0x5919b3=_0x1dfa08;_0x229265['forEach'](_0x3b52a9=>_0x3b52a9['complete']()),_0x229265[_0x5919b3(0x139)]();})),_0xf58a46[_0x1dfa08(0xd7)](this[_0x1dfa08(0x142)][_0x1dfa08(0xde)](_0x4bd72e=>{var _0x250f8b=_0x1dfa08,_0x23cd5e;if(_0x4bd72e[_0x250f8b(0x129)]!==_0x16b9f5['OPERATION']||!this[_0x250f8b(0x10e)][_0x250f8b(0x12b)](_0x4bd72e['id']))return;const {id:_0x3d9e8f}=_0x4bd72e;let _0xac24dd;_0x229265['has'](_0x3d9e8f)?_0xac24dd=_0x229265[_0x250f8b(0xe5)](_0x3d9e8f):(_0xac24dd=new _0x49a04c(),_0x229265[_0x250f8b(0x112)](_0x3d9e8f,_0xac24dd),_0xac24dd['pipe'](_0x56270f((_0x23cd5e=this['_configService'][_0x250f8b(0xe4)](Pe))!=null?_0x23cd5e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f8b(0x114)](_0x56745a=>{var _0xc97558=_0x250f8b;this[_0xc97558(0x106)][_0xc97558(0x133)]({'eventID':_0x5e4eb2[_0xc97558(0xed)],'data':{'unitID':this[_0xc97558(0xce)],'operations':{[_0x56745a['id']]:{'id':_0x56745a['id'],'params':JSON[_0xc97558(0xc6)](_0x56745a[_0xc97558(0x149)])}}}},this[_0xc97558(0xce)]);})),_0xac24dd[_0x250f8b(0xc0)](_0x4bd72e);})),this[_0x1dfa08(0x10e)][_0x1dfa08(0x13c)](this['_unitID'])[_0x1dfa08(0x12f)](_0x242f72=>this['_collabSession']['send']({'eventID':_0x5e4eb2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1dfa08(0xce)],'operations':{[_0x242f72['id']]:{'id':_0x242f72['id'],'params':JSON[_0x1dfa08(0xc6)](_0x242f72['params'])}}}},this['_unitID']));}[_0x5258fa(0xea)](){var _0x2207b2=_0x5258fa,_0x530bc5;this[_0x2207b2(0xab)][_0x2207b2(0xc0)](_0x2207b2(0xb4)),(_0x530bc5=this[_0x2207b2(0x12a)])==null||_0x530bc5[_0x2207b2(0xda)](),this[_0x2207b2(0x12a)]=null;}['_startFollowing'](){var _0x8f5826=_0x5258fa,_0x3f857b;(_0x3f857b=this[_0x8f5826(0x12a)])==null||_0x3f857b[_0x8f5826(0xda)](),this['_status$'][_0x8f5826(0xc0)](_0x8f5826(0xdf));}[_0x5258fa(0xb0)](){var _0x21efba=_0x5258fa,_0x35f6ad;this[_0x21efba(0xab)][_0x21efba(0xc0)](_0x21efba(0xb4)),(_0x35f6ad=this[_0x21efba(0x12a)])==null||_0x35f6ad[_0x21efba(0xda)](),this[_0x21efba(0x12a)]=null;}[_0x5258fa(0x151)](){var _0x2a7e36=_0x5258fa,_0x21a69c;this[_0x2a7e36(0xab)][_0x2a7e36(0xc0)](_0x2a7e36(0xcd)),(_0x21a69c=this['_commandDisposable'])==null||_0x21a69c[_0x2a7e36(0xda)]();}[_0x5258fa(0xb3)](_0x84100f){var _0x4c7f83=_0x5258fa;if(['presenting','not-following',_0x4c7f83(0x13f)]['includes'](this[_0x4c7f83(0xaf)])||!_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0x118)]||_0x84100f['data'][_0x4c7f83(0x118)]===this[_0x4c7f83(0x106)]['getMemberID']())return;this[_0x4c7f83(0xaf)]===_0x4c7f83(0xb4)&&this[_0x4c7f83(0x137)]();const _0x6c73ca=_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0xae)];Object[_0x4c7f83(0x111)](_0x6c73ca)['forEach'](_0xe83195=>{var _0x1da899=_0x4c7f83;this[_0x1da899(0x142)]['executeCommand'](_0xe83195['id'],_0xe83195[_0x1da899(0x149)]?JSON[_0x1da899(0xd0)](_0xe83195['params']):null,{'fromCollab':!0x0});});}[_0x5258fa(0x135)](){var _0x525eef=_0x5258fa,_0x1df924;this['_status$'][_0x525eef(0xc0)](_0x525eef(0x13f)),(_0x1df924=this[_0x525eef(0x12a)])==null||_0x1df924['dispose']();}[_0x5258fa(0xb7)](){var _0x399713=_0x5258fa;this[_0x399713(0xab)][_0x399713(0xc0)](_0x399713(0xb4)),this['_fetchOperations']();}};C=Z([f(0x2,_0xf2eda3),f(0x3,_0x15c34c(L)),f(0x4,_0x225c55)],C);function Te(){var _0x563dec=_0x5258fa;const _0x4f3789=_0x1a879f(I),_0x2da8c3=_0x1a879f(_0x30f196),_0x2b8b15=_0x2c858e(()=>_0x2da8c3['getCurrentTypeOfUnit$'](_0x14c1f5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x36aa98,_0x1e141b]=_0x5b847f(null),[_0x4155ab,_0x3d5fef]=_0x5b847f(h['IDLE']),_0x19f582=_0x26071b(null);return _0x2a5c1b(()=>(_0x2b8b15&&_0x4f3789['getLiveShareCoordinator'](_0x2b8b15['getUnitId']())[_0x563dec(0x121)](_0x1be488=>{var _0x2332a0=_0x563dec;_0x1e141b(_0x1be488),_0x19f582[_0x2332a0(0x11a)]=_0x1be488[_0x2332a0(0x148)][_0x2332a0(0x114)](_0x3b665a=>{_0x3d5fef(_0x3b665a);});}),()=>{var _0x3bb493=_0x563dec,_0x22bc4b;(_0x22bc4b=_0x19f582[_0x3bb493(0x11a)])==null||_0x22bc4b[_0x3bb493(0x127)](),_0x19f582[_0x3bb493(0x11a)]=null;}),[_0x2b8b15,_0x4f3789]),_0x36aa98?_0x5e2a77(_0x57c4cd,{'align':_0x563dec(0xf6),'disabled':_0x4155ab===h['OFFLINE'],'className':_0x563dec(0x134),'overlay':_0x5e2a77($e,{'status':_0x4155ab,'coordinator':_0x36aa98}),'children':_0x5e2a77(_0x563dec(0xe3),{'className':_0x3354fe(_0x563dec(0x113),{'univer-cursor-not-allowed':_0x4155ab===h[_0x563dec(0x13e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4155ab!==h[_0x563dec(0x13e)]}),'type':_0x563dec(0xe3),'children':_0x5e2a77(B,{'className':_0x563dec(0xdc)})})}):null;}function $e(_0x2e8138){var _0x257b1=_0x5258fa;const {status:_0x17a195,coordinator:_0x29122c}=_0x2e8138;switch(_0x17a195){case h[_0x257b1(0xd4)]:return _0x5e2a77(Fe,{'coordinator':_0x29122c});case h[_0x257b1(0x13b)]:return _0x5e2a77(He,{'coordinator':_0x29122c});case h['NOT_FOLLOWING']:return _0x5e2a77(je,{'coordinator':_0x29122c});case h[_0x257b1(0x13e)]:return _0x5e2a77(Ve,{});case h[_0x257b1(0xfa)]:return _0x5e2a77(Ue,{'coordinator':_0x29122c});default:return null;}}function Fe(_0x2a2f3a){var _0x5a1536=_0x5258fa;const {coordinator:_0x411181}=_0x2a2f3a;return _0x57e686(_0x49f367,{'children':[_0x5e2a77('div',{'className':_0x5a1536(0x100),'children':_0x5a1536(0x109)}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x411181[_0x5a1536(0x11f)](),'children':_0x5a1536(0x144)})]});}function He(_0x371f8f){var _0x50a77f=_0x5258fa;const {coordinator:_0x4ad7d8}=_0x371f8f;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x50a77f(0xd8),{'className':_0x50a77f(0x100),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x4ad7d8[_0x50a77f(0x12c)](),'children':_0x50a77f(0xc3)})]});}function je(_0x5a04e3){var _0x16316c=_0x5258fa;const {coordinator:_0x282ada}=_0x5a04e3;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x16316c(0xd8),{'className':_0x16316c(0x100),'children':_0x16316c(0xdd)}),_0x5e2a77(_0x32a223,{'variant':'text','onClick':()=>_0x282ada[_0x16316c(0x9a)](),'children':_0x16316c(0xbd)})]});}function Ue(_0x41aea7){var _0x600243=_0x5258fa;const {coordinator:_0x45db9c}=_0x41aea7;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x600243(0xd8),{'className':_0x600243(0x100),'children':_0x600243(0xf1)}),_0x5e2a77(_0x32a223,{'variant':'default','onClick':()=>_0x45db9c[_0x600243(0xc5)](),'children':_0x600243(0x101)})]});}function Ve(){return _0x5e2a77(_0x49f367,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x539ecf,_0x35670f,_0x5c52e9,_0x29da7d)=>{for(var _0x4237df=_0x29da7d>0x1?void 0x0:_0x29da7d?Me(_0x35670f,_0x5c52e9):_0x35670f,_0x1df4d9=_0x539ecf['length']-0x1,_0xf75b98;_0x1df4d9>=0x0;_0x1df4d9--)(_0xf75b98=_0x539ecf[_0x1df4d9])&&(_0x4237df=_0xf75b98(_0x4237df)||_0x4237df);return _0x4237df;},$=(_0x4cab6c,_0x3edae9)=>(_0x334a58,_0x5b0497)=>_0x3edae9(_0x334a58,_0x5b0497,_0x4cab6c);let b=class extends _0x5d78d5{constructor(_0x3a833c,_0x5786c6){var _0x5f0ba1=_0x5258fa;super(),this[_0x5f0ba1(0xe8)]=_0x3a833c,this[_0x5f0ba1(0x102)]=_0x5786c6,this[_0x5f0ba1(0xff)]();}['_mountLiveShare'](){var _0x38e8ca=_0x5258fa;this[_0x38e8ca(0xfe)](this[_0x38e8ca(0x102)][_0x38e8ca(0x10a)](_0x5e9d9c[_0x38e8ca(0x10f)],()=>_0x21477e(Te,this[_0x38e8ca(0xe8)])));}};b=ke([$(0x0,_0x15c34c(_0x1bb1a3)),$(0x1,_0x48f43a)],b);var Ge=Object[_0x5258fa(0x9f)],We=Object[_0x5258fa(0x9e)],Ye=(_0x366853,_0x2d9f78,_0x4094ca)=>_0x2d9f78 in _0x366853?Ge(_0x366853,_0x2d9f78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4094ca}):_0x366853[_0x2d9f78]=_0x4094ca,Be=(_0x5a9b1f,_0x2ad13e,_0x220fa4,_0x434ca9)=>{for(var _0x5cd7ea=_0x434ca9>0x1?void 0x0:_0x434ca9?We(_0x2ad13e,_0x220fa4):_0x2ad13e,_0x331996=_0x5a9b1f['length']-0x1,_0x11ef89;_0x331996>=0x0;_0x331996--)(_0x11ef89=_0x5a9b1f[_0x331996])&&(_0x5cd7ea=_0x11ef89(_0x5cd7ea)||_0x5cd7ea);return _0x5cd7ea;},F=(_0x56e940,_0x50aec0)=>(_0x1c40fc,_0x498e04)=>_0x50aec0(_0x1c40fc,_0x498e04,_0x56e940),J=(_0x49d951,_0xd45167,_0x5187e5)=>Ye(_0x49d951,typeof _0xd45167!=_0x5258fa(0xbf)?_0xd45167+'':_0xd45167,_0x5187e5);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x607589{constructor(_0x33054d=T,_0x3734dc,_0x1c19b3){var _0x54be2f=_0x5258fa;super(),this['_config']=_0x33054d,this[_0x54be2f(0xe8)]=_0x3734dc,this['_configService']=_0x1c19b3;const {..._0x1f7b91}=_0x1c848f({},T,this[_0x54be2f(0xef)]);this['_configService'][_0x54be2f(0xe6)](Oe,_0x1f7b91);}[_0x5258fa(0xfd)](){var _0x5077c3=_0x5258fa;_0x1910a1(this[_0x5077c3(0xe8)],_0x2ab882([[L],[I],[m],[b]],this[_0x5077c3(0xef)][_0x5077c3(0x130)])),_0xbfe10e(this[_0x5077c3(0xe8)],[[m]]);}[_0x5258fa(0x128)](){var _0xda77b3=_0x5258fa;_0xbfe10e(this[_0xda77b3(0xe8)],[[b]]);}};J(O,_0x5258fa(0x129),_0x14c1f5[_0x5258fa(0xd1)]),J(O,'pluginName',Ze),O=Be([_0x36185f(_0xbe77e1),F(0x1,_0x15c34c(_0x1bb1a3)),F(0x2,_0xf2eda3)],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 _0xb981bb=_0x128b;(function(_0x2ca021,_0x30c7e5){var _0x4e3164=_0x128b,_0x4e5ebd=_0x2ca021();while(!![]){try{var _0x17db50=parseInt(_0x4e3164(0x1aa))/0x1*(-parseInt(_0x4e3164(0x176))/0x2)+-parseInt(_0x4e3164(0x1d0))/0x3+parseInt(_0x4e3164(0x186))/0x4*(parseInt(_0x4e3164(0x19c))/0x5)+-parseInt(_0x4e3164(0x1a4))/0x6+parseInt(_0x4e3164(0x169))/0x7+-parseInt(_0x4e3164(0x201))/0x8+parseInt(_0x4e3164(0x1ef))/0x9*(-parseInt(_0x4e3164(0x1e8))/0xa);if(_0x17db50===_0x30c7e5)break;else _0x4e5ebd['push'](_0x4e5ebd['shift']());}catch(_0x12a640){_0x4e5ebd['push'](_0x4e5ebd['shift']());}}}(_0x1c8d,0x58f88));var q=Object['defineProperty'],z=(_0x1d85c7,_0x481baa,_0x12349b)=>_0x481baa in _0x1d85c7?q(_0x1d85c7,_0x481baa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12349b}):_0x1d85c7[_0x481baa]=_0x12349b,d=(_0x5d03eb,_0x4a05b3,_0x440947)=>z(_0x5d03eb,typeof _0x4a05b3!=_0xb981bb(0x1d5)?_0x4a05b3+'':_0x4a05b3,_0x440947);import{CollaborationSessionService as _0xa7a23,SessionStatus as _0x109da2,UniverCollaborationClientPlugin as _0x4f654}from'@univerjs-pro/collaboration-client';function _0x128b(_0x28bb5a,_0x3754be){var _0x1c8d5c=_0x1c8d();return _0x128b=function(_0x128b28,_0x4ab4a2){_0x128b28=_0x128b28-0x153;var _0x2ce661=_0x1c8d5c[_0x128b28];return _0x2ce661;},_0x128b(_0x28bb5a,_0x3754be);}import{Disposable as _0x1f0cb2,toDisposable as _0x175da3,Inject as _0x1bcd7d,IUniverInstanceService as _0xcc8435,Injector as _0x37a562,IConfigService as _0x509fd7,ICommandService as _0x936333,RxDisposable as _0x431f32,UniverInstanceType as _0x3a976a,DisposableCollection as _0x467461,CommandType as _0x50e7a3,DependentOn as _0x5bda4b,Plugin as _0x267245,merge as _0x32e7ad,registerDependencies as _0x3d2a61,mergeOverrideWithDependencies as _0x299ee2,touchDependencies as _0x3fac19}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3a3cea,InsertSheetMutation as _0x1c8818}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x541067,SetScrollOperation as _0x34e2eb}from'@univerjs/sheets-ui';import{useDependency as _0x11f2c5,useObservable as _0x107d72,IUIPartsService as _0x2658e0,BuiltInUIPart as _0x475348,connectInjector as _0x2d5549}from'@univerjs/ui';import{jsx as _0x4c3f9c,jsxs as _0x55ac32,Fragment as _0x35c6a7}from'react/jsx-runtime';import{Dropdown as _0xb7c916,clsx as _0xb5c652,Button as _0x3c1ff4}from'@univerjs/design';import{forwardRef as _0x48edea,useRef as _0x4b0343,createElement as _0x299d9a,useState as _0x444650,useEffect as _0x4112e7}from'react';import{CollaborationEvent as _0x3796e6,parseProtocolChangeset as _0x50217b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x292abc,Subject as _0x24f5d6}from'rxjs';import{takeUntil as _0x586d99,throttleTime as _0x90091d}from'rxjs/operators';const Oe=_0xb981bb(0x17d),T={};function _0x1c8d(){var _0xf1aa62=['1013168zeydyB','_commandService','text','defineProperty','defIds','NOT_FOLLOWING','_sharedOperations','add','function','getTypeOfUnitDisposed$','type','toString','You\x27re\x20following\x20the\x20presenter','_startFollowing','currentColor','presenter','Start','_handleOnline','Stop\x20presenting','current','mutations','string','getLiveShareCoordinator','univer-size-4','OFFLINE','from','IDLE','fill','3112781lpyRqp','complete','hasOwnProperty','You\x27re\x20not\x20following\x20the\x20presenter','idle','map','apply','sessionStatus$','dispose$','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleOperation','_uiPartsService','_handleNewHost','2JRQQaC','entries','You\x27re\x20presenting\x20the\x20document','startFollowing','none','status$','prototype','live-share.config','data','1em','has','NEW_CHANGESETS','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_stopFollowing','set','_handleTerminate','8168JdRjRI','getInitialStates','parse','getUnitId','unsubscribe','UNIVER_SHEET','button','getOwnPropertyDescriptor','getValue','OPERATION','pluginName','_startLiveShareCoordinator','div','unitId','stopFollowing','get','registerSharedOperation','Start\x20following','http://www.w3.org/2000/svg','find','url(#$1','values','1565wCNlRA','0\x200\x2017\x2017','indexOf','displayName','then','subscribe','LIVESHARE_TERMINATE','operations','98286iVqwvn','idSuffix','defs','_collabSessionService','_collabSession','univer-w-full\x20univer-mb-3\x20univer-text-sm','75931sZpcqW','children','next','getConfig','UNIVER_UNKNOWN','LIVESHARE_NEW_HOST','_entities','forEach','_init','PRESENTING','evenodd','path','_handleOffline','Present\x20this\x20document','LIVESHARE_FETCH_OPERATIONS','_stopPresenting','includes','_beIdle','_startPresenting','dispose','LIVESHARE_REQUEST_HOST','offline','delete','override','onCommandExecuted','following','_liveShareService','xlink:href','_config','onStarting','executeCommand','LIVESHARE_OPERATION','tryStartPresenting','UNIVER_LIVE_SHARE_PLUGIN','mask','disposeWithMe','assign','colorChannel1','731607eFWPOD','_status$','_fetchOperations','clear','_reporters','symbol','UniverIcon','getCurrentTypeOfUnit$','icon','FOLLOWING','attrs','ONLINE','event$','memberID','params','_presenter','svg','HEADER_MENU','getMemberID','requireSession','send','substring','onRendered','_unitID','2460tiXtuI','tag','use','length','pipe','_status','replace','9387MDdBOc','init','live-share-icon','stringify','getOwnPropertySymbols','trim','_injector','concat','shouldShareOperation','_univerInstanceService','className','extend','not-following','_commandDisposable','_mountLiveShare','univerjs-icon\x20univerjs-icon-','_configService','reverse'];_0x1c8d=function(){return _0xf1aa62;};return _0x1c8d();}class L extends _0x1f0cb2{constructor(){var _0x5a3d64=_0xb981bb;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x5a3d64(0x1d4),new Set());}[_0xb981bb(0x196)](_0x4aea05){var _0x54b24d=_0xb981bb;return this['_sharedOperations'][_0x54b24d(0x154)](_0x4aea05),_0x175da3(()=>this[_0x54b24d(0x153)][_0x54b24d(0x1c0)](_0x4aea05));}['registerInitialStateReporter'](_0xb2d5a7){var _0x457bc1=_0xb981bb;return this[_0x457bc1(0x1d4)][_0x457bc1(0x154)](_0xb2d5a7),_0x175da3(()=>this[_0x457bc1(0x1d4)][_0x457bc1(0x1c0)](_0xb2d5a7));}[_0xb981bb(0x1f7)](_0x1d51c7){var _0x436a4e=_0xb981bb;return this[_0x436a4e(0x153)][_0x436a4e(0x180)](_0x1d51c7);}[_0xb981bb(0x187)](_0x274ef8){var _0x53be37=_0xb981bb;return Array[_0x53be37(0x166)](this['_reporters'])[_0x53be37(0x16e)](_0xd91ecb=>_0xd91ecb(_0x274ef8));}}var Ee=Object[_0xb981bb(0x18d)],we=(_0x3b4233,_0xbf9c43,_0xb16272,_0x571135)=>{var _0x2de9ce=_0xb981bb;for(var _0x127157=_0x571135>0x1?void 0x0:_0x571135?Ee(_0xbf9c43,_0xb16272):_0xbf9c43,_0x2ea51a=_0x3b4233[_0x2de9ce(0x1eb)]-0x1,_0xfb2ed5;_0x2ea51a>=0x0;_0x2ea51a--)(_0xfb2ed5=_0x3b4233[_0x2ea51a])&&(_0x127157=_0xfb2ed5(_0x127157)||_0x127157);return _0x127157;},Ne=(_0x49143c,_0x43513c)=>(_0x330532,_0x1971fe)=>_0x43513c(_0x330532,_0x1971fe,_0x49143c);let m=class extends _0x1f0cb2{constructor(_0x560661){var _0x332846=_0xb981bb;super(),this[_0x332846(0x1c4)]=_0x560661,this['_init']();}[_0xb981bb(0x1b2)](){var _0x4ace0b=_0xb981bb;[_0x541067['id'],_0x34e2eb['id'],_0x3a3cea['id']][_0x4ace0b(0x1b1)](_0x4ca4d7=>{var _0x2dee9c=_0x4ace0b;this[_0x2dee9c(0x1cd)](this[_0x2dee9c(0x1c4)][_0x2dee9c(0x196)](_0x4ca4d7));});}};m=we([Ne(0x0,_0x1bcd7d(L))],m);var c=function(){var _0x3db774=_0xb981bb;return c=Object[_0x3db774(0x1ce)]||function(_0x4f2e62){var _0x3058e4=_0x3db774;for(var _0x1a5fac,_0x4468fe=0x1,_0x3a2281=arguments['length'];_0x4468fe<_0x3a2281;_0x4468fe++){_0x1a5fac=arguments[_0x4468fe];for(var _0x5b8a9d in _0x1a5fac)Object['prototype'][_0x3058e4(0x16b)]['call'](_0x1a5fac,_0x5b8a9d)&&(_0x4f2e62[_0x5b8a9d]=_0x1a5fac[_0x5b8a9d]);}return _0x4f2e62;},c[_0x3db774(0x16f)](this,arguments);},Ce=function(_0x3f5bd5,_0x402568){var _0x54821f=_0xb981bb,_0x4e0803={};for(var _0x63eb59 in _0x3f5bd5)Object['prototype']['hasOwnProperty']['call'](_0x3f5bd5,_0x63eb59)&&_0x402568[_0x54821f(0x19e)](_0x63eb59)<0x0&&(_0x4e0803[_0x63eb59]=_0x3f5bd5[_0x63eb59]);if(_0x3f5bd5!=null&&typeof Object[_0x54821f(0x1f3)]==_0x54821f(0x155)){for(var _0x4bc143=0x0,_0x63eb59=Object['getOwnPropertySymbols'](_0x3f5bd5);_0x4bc143<_0x63eb59['length'];_0x4bc143++)_0x402568[_0x54821f(0x19e)](_0x63eb59[_0x4bc143])<0x0&&Object[_0x54821f(0x17c)]['propertyIsEnumerable']['call'](_0x3f5bd5,_0x63eb59[_0x4bc143])&&(_0x4e0803[_0x63eb59[_0x4bc143]]=_0x3f5bd5[_0x63eb59[_0x4bc143]]);}return _0x4e0803;},W=_0x48edea(function(_0x26068f,_0x39530b){var _0x14a876=_0xb981bb,_0x30fc4a=_0x26068f[_0x14a876(0x1d8)],_0x2b2f94=_0x26068f['id'],_0x46853=_0x26068f[_0x14a876(0x1f9)],_0x86baf6=_0x26068f['extend'],_0x20935e=Ce(_0x26068f,[_0x14a876(0x1d8),'id','className',_0x14a876(0x1fa)]),_0x1db1a3=_0x14a876(0x1fe)[_0x14a876(0x1f6)](_0x2b2f94,'\x20')[_0x14a876(0x1f6)](_0x46853||'')[_0x14a876(0x1f4)](),_0x341a77=_0x4b0343('_'[_0x14a876(0x1f6)](Le()));return Y(_0x30fc4a,''['concat'](_0x2b2f94),{'defIds':_0x30fc4a[_0x14a876(0x205)],'idSuffix':_0x341a77[_0x14a876(0x160)]},c({'ref':_0x39530b,'className':_0x1db1a3},_0x20935e),_0x86baf6);});function Y(_0x25019d,_0x4cc3ea,_0x4afdcf,_0x679898,_0x494523){var _0x18a2d8=_0xb981bb;return _0x299d9a(_0x25019d[_0x18a2d8(0x1e9)],c(c({'key':_0x4cc3ea},De(_0x25019d,_0x4afdcf,_0x494523)),_0x679898),(xe(_0x25019d,_0x4afdcf)[_0x18a2d8(0x1ab)]||[])['map'](function(_0x1e6f72,_0x42dbdb){var _0x3b5419=_0x18a2d8;return Y(_0x1e6f72,''[_0x3b5419(0x1f6)](_0x4cc3ea,'-')[_0x3b5419(0x1f6)](_0x25019d[_0x3b5419(0x1e9)],'-')[_0x3b5419(0x1f6)](_0x42dbdb),_0x4afdcf,void 0x0,_0x494523);}));}function De(_0xad1f03,_0xd33e45,_0x2f51a7){var _0x286327=_0xb981bb,_0x1e5fa9=c({},_0xad1f03['attrs']);_0x2f51a7!=null&&_0x2f51a7[_0x286327(0x1cf)]&&_0x1e5fa9[_0x286327(0x168)]===_0x286327(0x1cf)&&(_0x1e5fa9[_0x286327(0x168)]=_0x2f51a7[_0x286327(0x1cf)]),_0xad1f03[_0x286327(0x1e9)]==='mask'&&_0x1e5fa9['id']&&(_0x1e5fa9['id']=_0x1e5fa9['id']+_0xd33e45['idSuffix']),Object['entries'](_0x1e5fa9)['forEach'](function(_0x39c6c0){var _0x47d003=_0x286327,_0x10cd0a=_0x39c6c0[0x0],_0x13ca1f=_0x39c6c0[0x1];_0x10cd0a===_0x47d003(0x1cc)&&typeof _0x13ca1f==_0x47d003(0x162)&&(_0x1e5fa9[_0x10cd0a]=_0x13ca1f[_0x47d003(0x1ee)](/url\(#(.*)\)/,_0x47d003(0x19a)['concat'](_0xd33e45['idSuffix'],')')));});var _0x2c7b57=_0xd33e45[_0x286327(0x205)];return!_0x2c7b57||_0x2c7b57[_0x286327(0x1eb)]===0x0||(_0xad1f03[_0x286327(0x1e9)]===_0x286327(0x1ea)&&_0x1e5fa9['xlink:href']&&(_0x1e5fa9[_0x286327(0x1c5)]=_0x1e5fa9[_0x286327(0x1c5)]+_0xd33e45[_0x286327(0x1a5)]),Object[_0x286327(0x177)](_0x1e5fa9)[_0x286327(0x1b1)](function(_0x135374){var _0x343f34=_0x286327,_0x129395=_0x135374[0x0],_0x1cefb4=_0x135374[0x1];typeof _0x1cefb4==_0x343f34(0x162)&&(_0x1e5fa9[_0x129395]=_0x1cefb4[_0x343f34(0x1ee)](/url\(#(.*)\)/,_0x343f34(0x19a)[_0x343f34(0x1f6)](_0xd33e45[_0x343f34(0x1a5)],')')));})),_0x1e5fa9;}function xe(_0x977d58,_0x20d48c){var _0x2a264a=_0xb981bb,_0x366436,_0x4fedc6=_0x20d48c['defIds'];return!_0x4fedc6||_0x4fedc6[_0x2a264a(0x1eb)]===0x0?_0x977d58:_0x977d58[_0x2a264a(0x1e9)]===_0x2a264a(0x1a6)&&(!((_0x366436=_0x977d58['children'])===null||_0x366436===void 0x0)&&_0x366436[_0x2a264a(0x1eb)])?c(c({},_0x977d58),{'children':_0x977d58[_0x2a264a(0x1ab)][_0x2a264a(0x16e)](function(_0x2c4a16){var _0x38d933=_0x2a264a;return typeof _0x2c4a16[_0x38d933(0x1da)]['id']==_0x38d933(0x162)&&_0x4fedc6&&_0x4fedc6['includes'](_0x2c4a16[_0x38d933(0x1da)]['id'])?c(c({},_0x2c4a16),{'attrs':c(c({},_0x2c4a16['attrs']),{'id':_0x2c4a16[_0x38d933(0x1da)]['id']+_0x20d48c[_0x38d933(0x1a5)]})}):_0x2c4a16;})}):_0x977d58;}function Le(){var _0x16890b=_0xb981bb;return Math['random']()[_0x16890b(0x158)](0x24)[_0x16890b(0x1e5)](0x2,0x8);}W[_0xb981bb(0x19f)]=_0xb981bb(0x1d6);var ye={'tag':_0xb981bb(0x1e0),'attrs':{'xmlns':_0xb981bb(0x198),'fill':_0xb981bb(0x17a),'viewBox':_0xb981bb(0x19d),'width':'1em','height':_0xb981bb(0x17f)},'children':[{'tag':_0xb981bb(0x1b5),'attrs':{'fill':_0xb981bb(0x15b),'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':_0xb981bb(0x1b5),'attrs':{'fill':_0xb981bb(0x15b),'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':_0xb981bb(0x1b4),'clipRule':'evenodd'}}]},B=_0x48edea(function(_0x599e11,_0x41a3dd){var _0x2a03e3=_0xb981bb;return _0x299d9a(W,Object[_0x2a03e3(0x1ce)]({},_0x599e11,{'id':_0x2a03e3(0x1f1),'ref':_0x41a3dd,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object[_0xb981bb(0x18d)],Z=(_0xd5b7a6,_0x323be5,_0x42d499,_0x12c586)=>{var _0x7b4d22=_0xb981bb;for(var _0x26216c=_0x12c586>0x1?void 0x0:_0x12c586?Re(_0x323be5,_0x42d499):_0x323be5,_0x2203cf=_0xd5b7a6[_0x7b4d22(0x1eb)]-0x1,_0x5d6a45;_0x2203cf>=0x0;_0x2203cf--)(_0x5d6a45=_0xd5b7a6[_0x2203cf])&&(_0x26216c=_0x5d6a45(_0x26216c)||_0x26216c);return _0x26216c;},f=(_0x2f96db,_0x3f28dd)=>(_0x2ae3fd,_0x2b566e)=>_0x3f28dd(_0x2ae3fd,_0x2b566e,_0x2f96db);let I=class extends _0x431f32{constructor(_0x18a798,_0x12fcc3,_0x1629fa){var _0x3deab9=_0xb981bb;super(),d(this,'_entities',new Map()),(this[_0x3deab9(0x1f8)]=_0x18a798,this[_0x3deab9(0x1f5)]=_0x12fcc3,this[_0x3deab9(0x1a7)]=_0x1629fa,this[_0x3deab9(0x1b2)]());}async[_0xb981bb(0x163)](_0x5f5bcf){var _0xcca69c=_0xb981bb;return this[_0xcca69c(0x1b0)][_0xcca69c(0x180)](_0x5f5bcf)||await this[_0xcca69c(0x191)](_0x5f5bcf),this[_0xcca69c(0x1b0)][_0xcca69c(0x195)](_0x5f5bcf);}[_0xb981bb(0x1b2)](){var _0x305e28=_0xb981bb;this[_0x305e28(0x1f8)]['getTypeOfUnitAdded$'](_0x3a976a[_0x305e28(0x18b)])['pipe'](_0x586d99(this[_0x305e28(0x171)]))[_0x305e28(0x1a1)](async _0x1182a0=>{var _0x1b2582=_0x305e28;const _0x5f3138=_0x1182a0[_0x1b2582(0x189)]();this[_0x1b2582(0x1b0)][_0x1b2582(0x180)](_0x5f3138)||this[_0x1b2582(0x191)](_0x5f3138);}),this['_univerInstanceService'][_0x305e28(0x156)](_0x3a976a[_0x305e28(0x18b)])[_0x305e28(0x1ec)](_0x586d99(this['dispose$']))[_0x305e28(0x1a1)](_0x43c7ac=>{var _0x116ff6=_0x305e28;const _0x199a51=_0x43c7ac[_0x116ff6(0x189)](),_0x22ca88=this[_0x116ff6(0x1b0)][_0x116ff6(0x195)](_0x199a51);_0x22ca88==null||_0x22ca88[_0x116ff6(0x1bd)]();});}async[_0xb981bb(0x191)](_0x136870){var _0x3aaeda=_0xb981bb;const _0x1b6d45=await this[_0x3aaeda(0x1a7)][_0x3aaeda(0x1e3)](_0x136870),_0x32c709=this[_0x3aaeda(0x1f5)]['createInstance'](C,_0x136870,_0x1b6d45);return _0x32c709[_0x3aaeda(0x1f0)](),this['_entities'][_0x3aaeda(0x184)](_0x136870,_0x32c709),_0x32c709;}};I=Z([f(0x0,_0xcc8435),f(0x1,_0x1bcd7d(_0x37a562)),f(0x2,_0x1bcd7d(_0xa7a23))],I);var h=(_0x5a858b=>(_0x5a858b['OFFLINE']='offline',_0x5a858b[_0xb981bb(0x167)]=_0xb981bb(0x16d),_0x5a858b[_0xb981bb(0x1d9)]='following',_0x5a858b['NOT_FOLLOWING']=_0xb981bb(0x1fb),_0x5a858b[_0xb981bb(0x1b3)]='presenting',_0x5a858b))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x431f32{constructor(_0x24a9d7,_0x75f55c,_0x5534f8,_0x246856,_0x3a9ce2){var _0x3dd1d3=_0xb981bb;super(),d(this,_0x3dd1d3(0x1d1),new _0x292abc(_0x3dd1d3(0x16d))),d(this,'status$',this[_0x3dd1d3(0x1d1)]['asObservable']()),d(this,_0x3dd1d3(0x1b2),!0x1),d(this,_0x3dd1d3(0x1fc),null),d(this,_0x3dd1d3(0x1df),null),(this['_unitID']=_0x24a9d7,this[_0x3dd1d3(0x1a8)]=_0x75f55c,this[_0x3dd1d3(0x1ff)]=_0x5534f8,this[_0x3dd1d3(0x1c4)]=_0x246856,this[_0x3dd1d3(0x202)]=_0x3a9ce2);}get['_status'](){var _0x222bda=_0xb981bb;return this[_0x222bda(0x1d1)][_0x222bda(0x18e)]();}[_0xb981bb(0x1bd)](){var _0x515bc3=_0xb981bb,_0x16bb32;(_0x16bb32=this[_0x515bc3(0x1fc)])==null||_0x16bb32[_0x515bc3(0x1bd)](),this[_0x515bc3(0x1d1)][_0x515bc3(0x1ac)](_0x515bc3(0x16d)),this[_0x515bc3(0x1d1)][_0x515bc3(0x16a)]();}[_0xb981bb(0x1f0)](){var _0xa24847=_0xb981bb;this['_init']||(this[_0xa24847(0x1b2)]=!0x0,this[_0xa24847(0x1a8)][_0xa24847(0x170)][_0xa24847(0x1ec)](_0x586d99(this[_0xa24847(0x171)]))[_0xa24847(0x1a1)](_0x284340=>{var _0x470fbf=_0xa24847;switch(_0x284340){case _0x109da2[_0x470fbf(0x165)]:this[_0x470fbf(0x1b6)]();break;case _0x109da2[_0x470fbf(0x1db)]:this[_0x470fbf(0x15e)]();break;}}),this[_0xa24847(0x1a8)][_0xa24847(0x1dc)]['pipe'](_0x586d99(this['dispose$']))[_0xa24847(0x1a1)](_0x4a58e2=>{var _0x50d29c=_0xa24847;const {eventID:_0x1436f9}=_0x4a58e2;switch(_0x1436f9){case _0x3796e6[_0x50d29c(0x1af)]:this[_0x50d29c(0x175)](_0x4a58e2);break;case _0x3796e6[_0x50d29c(0x1c9)]:this[_0x50d29c(0x173)](_0x4a58e2);break;case _0x3796e6[_0x50d29c(0x1a2)]:this[_0x50d29c(0x185)]();break;case _0x3796e6[_0x50d29c(0x181)]:this['_handleNewChangeSets'](_0x4a58e2);break;}}));}[_0xb981bb(0x1ca)](){var _0x217daf=_0xb981bb;this[_0x217daf(0x1a8)][_0x217daf(0x1e4)]({'eventID':_0x3796e6[_0x217daf(0x1be)],'data':{'unitID':this['_unitID'],'userID':this[_0x217daf(0x1a8)][_0x217daf(0x1e2)]()}},this[_0x217daf(0x1e7)]);}['stopPresenting'](){var _0x16b9ba=_0xb981bb;this[_0x16b9ba(0x1ed)]==='presenting'&&(this[_0x16b9ba(0x1d1)][_0x16b9ba(0x1ac)](_0x16b9ba(0x16d)),this[_0x16b9ba(0x1a8)][_0x16b9ba(0x1e4)]({'eventID':_0x3796e6[_0x16b9ba(0x1a2)],'data':{'unitID':this[_0x16b9ba(0x1e7)]}},this[_0x16b9ba(0x1e7)]));}[_0xb981bb(0x179)](){var _0x4fc44e=_0xb981bb;this[_0x4fc44e(0x1ed)]==='not-following'&&(this[_0x4fc44e(0x1d1)]['next']('following'),this[_0x4fc44e(0x15a)]());}[_0xb981bb(0x194)](){var _0x8cb4e1=_0xb981bb;this[_0x8cb4e1(0x1ed)]===_0x8cb4e1(0x1c3)&&this[_0x8cb4e1(0x183)]();}[_0xb981bb(0x175)](_0x1b4888){var _0x5925de=_0xb981bb;const {presenter:_0x4ae5eb}=_0x1b4888[_0x5925de(0x17e)],_0x30c954=this[_0x5925de(0x1a8)][_0x5925de(0x1e2)]();this['_presenter']=_0x4ae5eb,_0x4ae5eb===_0x30c954?(this[_0x5925de(0x183)](),this[_0x5925de(0x1bc)]()):this['_status']!==_0x5925de(0x1fb)&&(this[_0x5925de(0x1b9)](),this[_0x5925de(0x15a)]());}[_0xb981bb(0x1d2)](){var _0x4b2ec4=_0xb981bb;const _0x457e81={'eventID':_0x3796e6[_0x4b2ec4(0x1b8)]};this[_0x4b2ec4(0x1a8)]['send'](_0x457e81,this['_unitID']);}[_0xb981bb(0x185)](){var _0x267741=_0xb981bb;this[_0x267741(0x1df)]=null,this[_0x267741(0x1ed)]!=='presenting'&&this[_0x267741(0x1bb)]();}['_handleNewChangeSets'](_0x4902e4){var _0x4d8eb7=_0xb981bb;if(this[_0x4d8eb7(0x1ed)]===_0x4d8eb7(0x1c3)&&this[_0x4d8eb7(0x1df)]===_0x4902e4[_0x4d8eb7(0x17e)][_0x4d8eb7(0x1dd)]){const _0x4711b3=_0x50217b(_0x4902e4[_0x4d8eb7(0x17e)])[_0x4d8eb7(0x161)][_0x4d8eb7(0x200)]()[_0x4d8eb7(0x199)](_0x187c00=>_0x187c00['id']===_0x1c8818['id']);if(_0x4711b3){const _0x55763d=_0x4711b3[_0x4d8eb7(0x1de)][_0x4d8eb7(0x193)],_0x3c087b=_0x4711b3['params']['sheet']['id'];setTimeout(()=>{var _0x32aa70=_0x4d8eb7;this[_0x32aa70(0x202)][_0x32aa70(0x1c8)](_0x3a3cea['id'],{'unitId':_0x55763d,'subUnitId':_0x3c087b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1046a9=_0xb981bb;this['_status$'][_0x1046a9(0x1ac)]('presenting');const _0x278730=new Map(),_0x2d3df1=this[_0x1046a9(0x1fc)]=new _0x467461();_0x2d3df1[_0x1046a9(0x154)](_0x175da3(()=>{var _0xd9b076=_0x1046a9;_0x278730[_0xd9b076(0x1b1)](_0x3bd7aa=>_0x3bd7aa[_0xd9b076(0x16a)]()),_0x278730[_0xd9b076(0x1d3)]();})),_0x2d3df1[_0x1046a9(0x154)](this[_0x1046a9(0x202)][_0x1046a9(0x1c2)](_0x3b2f23=>{var _0x32984c=_0x1046a9,_0x2c7ce3;if(_0x3b2f23[_0x32984c(0x157)]!==_0x50e7a3[_0x32984c(0x18f)]||!this[_0x32984c(0x1c4)][_0x32984c(0x1f7)](_0x3b2f23['id']))return;const {id:_0x2fe26e}=_0x3b2f23;let _0x23f4da;_0x278730[_0x32984c(0x180)](_0x2fe26e)?_0x23f4da=_0x278730['get'](_0x2fe26e):(_0x23f4da=new _0x24f5d6(),_0x278730[_0x32984c(0x184)](_0x2fe26e,_0x23f4da),_0x23f4da['pipe'](_0x90091d((_0x2c7ce3=this['_configService'][_0x32984c(0x1ad)](Pe))!=null?_0x2c7ce3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32984c(0x1a1)](_0x250ee4=>{var _0x2629a4=_0x32984c;this[_0x2629a4(0x1a8)]['send']({'eventID':_0x3796e6[_0x2629a4(0x1c9)],'data':{'unitID':this['_unitID'],'operations':{[_0x250ee4['id']]:{'id':_0x250ee4['id'],'params':JSON[_0x2629a4(0x1f2)](_0x250ee4[_0x2629a4(0x1de)])}}}},this[_0x2629a4(0x1e7)]);})),_0x23f4da[_0x32984c(0x1ac)](_0x3b2f23);})),this['_liveShareService']['getInitialStates'](this[_0x1046a9(0x1e7)])[_0x1046a9(0x1b1)](_0x423b63=>this[_0x1046a9(0x1a8)]['send']({'eventID':_0x3796e6[_0x1046a9(0x1c9)],'data':{'unitID':this[_0x1046a9(0x1e7)],'operations':{[_0x423b63['id']]:{'id':_0x423b63['id'],'params':JSON[_0x1046a9(0x1f2)](_0x423b63[_0x1046a9(0x1de)])}}}},this[_0x1046a9(0x1e7)]));}[_0xb981bb(0x1b9)](){var _0x1f6a63=_0xb981bb,_0x2b7f32;this['_status$']['next'](_0x1f6a63(0x16d)),(_0x2b7f32=this['_commandDisposable'])==null||_0x2b7f32['dispose'](),this[_0x1f6a63(0x1fc)]=null;}[_0xb981bb(0x15a)](){var _0x3c0ae5=_0xb981bb,_0x5ea509;(_0x5ea509=this['_commandDisposable'])==null||_0x5ea509[_0x3c0ae5(0x1bd)](),this['_status$'][_0x3c0ae5(0x1ac)](_0x3c0ae5(0x1c3));}[_0xb981bb(0x1bb)](){var _0x276b88=_0xb981bb,_0xdecc28;this[_0x276b88(0x1d1)]['next'](_0x276b88(0x16d)),(_0xdecc28=this[_0x276b88(0x1fc)])==null||_0xdecc28['dispose'](),this[_0x276b88(0x1fc)]=null;}[_0xb981bb(0x183)](){var _0x495545=_0xb981bb,_0x321ae7;this[_0x495545(0x1d1)][_0x495545(0x1ac)](_0x495545(0x1fb)),(_0x321ae7=this[_0x495545(0x1fc)])==null||_0x321ae7[_0x495545(0x1bd)]();}[_0xb981bb(0x173)](_0x1e0a5d){var _0x64f0f5=_0xb981bb;if(['presenting',_0x64f0f5(0x1fb),_0x64f0f5(0x1bf)][_0x64f0f5(0x1ba)](this[_0x64f0f5(0x1ed)])||!_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x15c)]||_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x15c)]===this[_0x64f0f5(0x1a8)]['getMemberID']())return;this[_0x64f0f5(0x1ed)]==='idle'&&this[_0x64f0f5(0x15a)]();const _0x3c59d2=_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x1a3)];Object[_0x64f0f5(0x19b)](_0x3c59d2)[_0x64f0f5(0x1b1)](_0x2ffa66=>{var _0x2faab9=_0x64f0f5;this['_commandService'][_0x2faab9(0x1c8)](_0x2ffa66['id'],_0x2ffa66[_0x2faab9(0x1de)]?JSON[_0x2faab9(0x188)](_0x2ffa66[_0x2faab9(0x1de)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1519bf=_0xb981bb,_0x454f44;this['_status$'][_0x1519bf(0x1ac)](_0x1519bf(0x1bf)),(_0x454f44=this['_commandDisposable'])==null||_0x454f44[_0x1519bf(0x1bd)]();}['_handleOnline'](){var _0x480fe8=_0xb981bb;this[_0x480fe8(0x1d1)]['next'](_0x480fe8(0x16d)),this[_0x480fe8(0x1d2)]();}};C=Z([f(0x2,_0x509fd7),f(0x3,_0x1bcd7d(L)),f(0x4,_0x936333)],C);function Te(){var _0x57f741=_0xb981bb;const _0x1124fe=_0x11f2c5(I),_0x381b73=_0x11f2c5(_0xcc8435),_0x36a6fc=_0x107d72(()=>_0x381b73[_0x57f741(0x1d7)](_0x3a976a[_0x57f741(0x18b)]),void 0x0,!0x1,[]),[_0x280801,_0x4a7ccd]=_0x444650(null),[_0x960ece,_0x546fdd]=_0x444650(h[_0x57f741(0x167)]),_0x35b451=_0x4b0343(null);return _0x4112e7(()=>(_0x36a6fc&&_0x1124fe['getLiveShareCoordinator'](_0x36a6fc[_0x57f741(0x189)]())[_0x57f741(0x1a0)](_0xb04ee1=>{var _0x14300c=_0x57f741;_0x4a7ccd(_0xb04ee1),_0x35b451[_0x14300c(0x160)]=_0xb04ee1[_0x14300c(0x17b)]['subscribe'](_0x6c529a=>{_0x546fdd(_0x6c529a);});}),()=>{var _0x1ace22=_0x57f741,_0x400bb9;(_0x400bb9=_0x35b451[_0x1ace22(0x160)])==null||_0x400bb9[_0x1ace22(0x18a)](),_0x35b451['current']=null;}),[_0x36a6fc,_0x1124fe]),_0x280801?_0x4c3f9c(_0xb7c916,{'align':'end','disabled':_0x960ece===h['OFFLINE'],'className':_0x57f741(0x182),'overlay':_0x4c3f9c($e,{'status':_0x960ece,'coordinator':_0x280801}),'children':_0x4c3f9c('button',{'className':_0xb5c652(_0x57f741(0x172),{'univer-cursor-not-allowed':_0x960ece===h[_0x57f741(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x960ece!==h[_0x57f741(0x165)]}),'type':_0x57f741(0x18c),'children':_0x4c3f9c(B,{'className':_0x57f741(0x164)})})}):null;}function $e(_0x1afab9){var _0x3f5ff3=_0xb981bb;const {status:_0x489c30,coordinator:_0x97e99c}=_0x1afab9;switch(_0x489c30){case h[_0x3f5ff3(0x167)]:return _0x4c3f9c(Fe,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x1d9)]:return _0x4c3f9c(He,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x206)]:return _0x4c3f9c(je,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x165)]:return _0x4c3f9c(Ve,{});case h[_0x3f5ff3(0x1b3)]:return _0x4c3f9c(Ue,{'coordinator':_0x97e99c});default:return null;}}function Fe(_0x157a28){var _0xdb6711=_0xb981bb;const {coordinator:_0x28998a}=_0x157a28;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c(_0xdb6711(0x192),{'className':_0xdb6711(0x1a9),'children':_0xdb6711(0x1b7)}),_0x4c3f9c(_0x3c1ff4,{'onClick':()=>_0x28998a[_0xdb6711(0x1ca)](),'children':_0xdb6711(0x15d)})]});}function He(_0x1309bc){var _0x1b04b2=_0xb981bb;const {coordinator:_0x1ddc37}=_0x1309bc;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1b04b2(0x159)}),_0x4c3f9c(_0x3c1ff4,{'onClick':()=>_0x1ddc37[_0x1b04b2(0x194)](),'children':'Stop\x20following'})]});}function je(_0x4302c5){var _0x5519c7=_0xb981bb;const {coordinator:_0x35af22}=_0x4302c5;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5519c7(0x16c)}),_0x4c3f9c(_0x3c1ff4,{'variant':_0x5519c7(0x203),'onClick':()=>_0x35af22['startFollowing'](),'children':_0x5519c7(0x197)})]});}function Ue(_0x29f4a8){var _0x35feb1=_0xb981bb;const {coordinator:_0x5cbda6}=_0x29f4a8;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':_0x35feb1(0x1a9),'children':_0x35feb1(0x178)}),_0x4c3f9c(_0x3c1ff4,{'variant':'default','onClick':()=>_0x5cbda6['stopPresenting'](),'children':_0x35feb1(0x15f)})]});}function Ve(){return _0x4c3f9c(_0x35c6a7,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x249148,_0x53bad2,_0x97988e,_0x2c9780)=>{var _0x2ea9d9=_0xb981bb;for(var _0x5098ac=_0x2c9780>0x1?void 0x0:_0x2c9780?Me(_0x53bad2,_0x97988e):_0x53bad2,_0x3759c3=_0x249148[_0x2ea9d9(0x1eb)]-0x1,_0x2d0e76;_0x3759c3>=0x0;_0x3759c3--)(_0x2d0e76=_0x249148[_0x3759c3])&&(_0x5098ac=_0x2d0e76(_0x5098ac)||_0x5098ac);return _0x5098ac;},$=(_0x45d42e,_0x59bb20)=>(_0x181d7a,_0x599808)=>_0x59bb20(_0x181d7a,_0x599808,_0x45d42e);let b=class extends _0x1f0cb2{constructor(_0x3a386b,_0xc4307c){var _0x463425=_0xb981bb;super(),this[_0x463425(0x1f5)]=_0x3a386b,this[_0x463425(0x174)]=_0xc4307c,this[_0x463425(0x1fd)]();}['_mountLiveShare'](){var _0xf6084a=_0xb981bb;this[_0xf6084a(0x1cd)](this['_uiPartsService']['registerComponent'](_0x475348[_0xf6084a(0x1e1)],()=>_0x2d5549(Te,this[_0xf6084a(0x1f5)])));}};b=ke([$(0x0,_0x1bcd7d(_0x37a562)),$(0x1,_0x2658e0)],b);var Ge=Object[_0xb981bb(0x204)],We=Object[_0xb981bb(0x18d)],Ye=(_0x342e8b,_0xfad069,_0x2c2755)=>_0xfad069 in _0x342e8b?Ge(_0x342e8b,_0xfad069,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c2755}):_0x342e8b[_0xfad069]=_0x2c2755,Be=(_0x220226,_0x34cdf7,_0x167074,_0x5050c1)=>{var _0x2a4d12=_0xb981bb;for(var _0x5e71b2=_0x5050c1>0x1?void 0x0:_0x5050c1?We(_0x34cdf7,_0x167074):_0x34cdf7,_0x538211=_0x220226[_0x2a4d12(0x1eb)]-0x1,_0x575402;_0x538211>=0x0;_0x538211--)(_0x575402=_0x220226[_0x538211])&&(_0x5e71b2=_0x575402(_0x5e71b2)||_0x5e71b2);return _0x5e71b2;},F=(_0x1dda79,_0x4994fa)=>(_0x250a82,_0x49df34)=>_0x4994fa(_0x250a82,_0x49df34,_0x1dda79),J=(_0x28c95d,_0x55fbd4,_0xa644c7)=>Ye(_0x28c95d,typeof _0x55fbd4!=_0xb981bb(0x1d5)?_0x55fbd4+'':_0x55fbd4,_0xa644c7);const Ze=_0xb981bb(0x1cb);let O=class extends _0x267245{constructor(_0x21cac8=T,_0x12fda2,_0x30f0a2){var _0x24d990=_0xb981bb;super(),this['_config']=_0x21cac8,this[_0x24d990(0x1f5)]=_0x12fda2,this[_0x24d990(0x1ff)]=_0x30f0a2;const {..._0x170cc9}=_0x32e7ad({},T,this[_0x24d990(0x1c6)]);this[_0x24d990(0x1ff)]['setConfig'](Oe,_0x170cc9);}[_0xb981bb(0x1c7)](){var _0x32bd59=_0xb981bb;_0x3d2a61(this[_0x32bd59(0x1f5)],_0x299ee2([[L],[I],[m],[b]],this[_0x32bd59(0x1c6)][_0x32bd59(0x1c1)])),_0x3fac19(this[_0x32bd59(0x1f5)],[[m]]);}[_0xb981bb(0x1e6)](){_0x3fac19(this['_injector'],[[b]]);}};J(O,_0xb981bb(0x157),_0x3a976a[_0xb981bb(0x1ae)]),J(O,_0xb981bb(0x190),Ze),O=Be([_0x5bda4b(_0x4f654),F(0x1,_0x1bcd7d(_0x37a562)),F(0x2,_0x509fd7)],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 _0x5258fa=_0x139a;(function(_0x517ff7,_0x860d13){var _0x2b8d48=_0x139a,_0x3d7aec=_0x517ff7();while(!![]){try{var _0xc3a79d=parseInt(_0x2b8d48(0xca))/0x1*(parseInt(_0x2b8d48(0xb5))/0x2)+parseInt(_0x2b8d48(0xe9))/0x3*(-parseInt(_0x2b8d48(0x117))/0x4)+-parseInt(_0x2b8d48(0xa5))/0x5+-parseInt(_0x2b8d48(0xd2))/0x6*(parseInt(_0x2b8d48(0x10b))/0x7)+parseInt(_0x2b8d48(0xc2))/0x8*(parseInt(_0x2b8d48(0x107))/0x9)+-parseInt(_0x2b8d48(0x145))/0xa*(parseInt(_0x2b8d48(0x11e))/0xb)+-parseInt(_0x2b8d48(0xeb))/0xc*(-parseInt(_0x2b8d48(0x123))/0xd);if(_0xc3a79d===_0x860d13)break;else _0x3d7aec['push'](_0x3d7aec['shift']());}catch(_0x563652){_0x3d7aec['push'](_0x3d7aec['shift']());}}}(_0x1961,0x9b17e));function _0x139a(_0x194edb,_0xc3070e){var _0x196191=_0x1961();return _0x139a=function(_0x139a9b,_0x512bd4){_0x139a9b=_0x139a9b-0x99;var _0x25b3e4=_0x196191[_0x139a9b];return _0x25b3e4;},_0x139a(_0x194edb,_0xc3070e);}var q=Object[_0x5258fa(0x9f)],z=(_0x351192,_0x5b1dba,_0x3ce5e3)=>_0x5b1dba in _0x351192?q(_0x351192,_0x5b1dba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce5e3}):_0x351192[_0x5b1dba]=_0x3ce5e3,d=(_0x458fea,_0x581d72,_0x4fed65)=>z(_0x458fea,typeof _0x581d72!=_0x5258fa(0xbf)?_0x581d72+'':_0x581d72,_0x4fed65);import{CollaborationSessionService as _0x166df7,SessionStatus as _0x6072e1,UniverCollaborationClientPlugin as _0xbe77e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5d78d5,toDisposable as _0x104973,Inject as _0x15c34c,IUniverInstanceService as _0x30f196,Injector as _0x1bb1a3,IConfigService as _0xf2eda3,ICommandService as _0x225c55,RxDisposable as _0x5123e3,UniverInstanceType as _0x14c1f5,DisposableCollection as _0x2872b8,CommandType as _0x16b9f5,DependentOn as _0x36185f,Plugin as _0x607589,merge as _0x1c848f,registerDependencies as _0x1910a1,mergeOverrideWithDependencies as _0x2ab882,touchDependencies as _0xbfe10e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x266111,InsertSheetMutation as _0x58b5c8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3a60b0,SetScrollOperation as _0x399981}from'@univerjs/sheets-ui';import{useDependency as _0x1a879f,useObservable as _0x2c858e,IUIPartsService as _0x48f43a,BuiltInUIPart as _0x5e9d9c,connectInjector as _0x21477e}from'@univerjs/ui';function _0x1961(){var _0x17567c=['registerSharedOperation','_stopFollowing','LIVESHARE_REQUEST_HOST','sessionStatus$','startFollowing','url(#$1','SAME_OPERATION_SHARE_INTERVAL','requireSession','getOwnPropertyDescriptor','defineProperty','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','svg','_reporters','toString','unitId','1126065viKAlJ','prototype','extend','live-share.config','_handleNewHost','call','_status$','executeCommand','UniverIcon','operations','_status','_beIdle','getLiveShareCoordinator','idSuffix','_handleOperation','idle','310162bAPFhl','string','_handleOnline','xlink:href','mask','concat','trim','complete','Start\x20following','memberID','symbol','next','_fetchOperations','8244712ltLhWv','Stop\x20following','http://www.w3.org/2000/svg','stopPresenting','stringify','assign','_init','use','5YCApvA','hasOwnProperty','attrs','not-following','_unitID','UNIVER_SHEET','parse','UNIVER_UNKNOWN','22236fndPlu','getOwnPropertySymbols','IDLE','getUnitId','_handleNewChangeSets','add','div','asObservable','dispose','icon','univer-size-4','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','following','_configService','find','_presenter','button','getConfig','get','setConfig','_univerInstanceService','_injector','2999622JRYTKO','_stopPresenting','3248124EzDVgQ','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','function','_config','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','getValue','replace','live-share-icon','entries','end','tag','defIds','0\x200\x2017\x2017','PRESENTING','LIVESHARE_FETCH_OPERATIONS','pipe','onStarting','disposeWithMe','_mountLiveShare','univer-w-full\x20univer-mb-3\x20univer-text-sm','Stop\x20presenting','_uiPartsService','map','path','getMemberID','_collabSession','9RHCwOK','from','Present\x20this\x20document','registerComponent','1379FNQHYW','delete','1em','_liveShareService','HEADER_MENU','reverse','values','set','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','subscribe','apply','includes','4epbNTb','presenter','children','current','_entities','dispose$','evenodd','303534jnUYuK','tryStartPresenting','none','then','fill','39eOdOxK','data','propertyIsEnumerable','presenting','unsubscribe','onRendered','type','_commandDisposable','shouldShareOperation','stopFollowing','currentColor','_handleTerminate','forEach','override','_collabSessionService','className','send','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_handleOffline','indexOf','_startFollowing','colorChannel1','clear','substring','FOLLOWING','getInitialStates','_startPresenting','OFFLINE','offline','has','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_commandService','getTypeOfUnitDisposed$','Start','10kOLrQL','_startLiveShareCoordinator','LIVESHARE_TERMINATE','status$','params','NEW_CHANGESETS','ONLINE','length','_sharedOperations','displayName','init'];_0x1961=function(){return _0x17567c;};return _0x1961();}import{jsx as _0x5e2a77,jsxs as _0x57e686,Fragment as _0x49f367}from'react/jsx-runtime';import{Dropdown as _0x57c4cd,clsx as _0x3354fe,Button as _0x32a223}from'@univerjs/design';import{forwardRef as _0x541777,useRef as _0x26071b,createElement as _0xe5743d,useState as _0x5b847f,useEffect as _0x2a5c1b}from'react';import{CollaborationEvent as _0x5e4eb2,parseProtocolChangeset as _0x3e708c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x513b10,Subject as _0x49a04c}from'rxjs';import{takeUntil as _0x3dec29,throttleTime as _0x56270f}from'rxjs/operators';const Oe=_0x5258fa(0xa8),T={};class L extends _0x5d78d5{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x5258fa(0x150)](_0x424064){var _0x406f72=_0x5258fa;return this[_0x406f72(0x14d)][_0x406f72(0xd7)](_0x424064),_0x104973(()=>this[_0x406f72(0x14d)][_0x406f72(0x10c)](_0x424064));}[_0x5258fa(0xf0)](_0xafb6f){var _0x5c03c5=_0x5258fa;return this['_reporters']['add'](_0xafb6f),_0x104973(()=>this[_0x5c03c5(0xa2)][_0x5c03c5(0x10c)](_0xafb6f));}['shouldShareOperation'](_0x258e8f){var _0x2c7c5a=_0x5258fa;return this[_0x2c7c5a(0x14d)]['has'](_0x258e8f);}[_0x5258fa(0x13c)](_0x348174){var _0x45bc2a=_0x5258fa;return Array[_0x45bc2a(0x108)](this[_0x45bc2a(0xa2)])[_0x45bc2a(0x103)](_0x56e5a2=>_0x56e5a2(_0x348174));}}var Ee=Object[_0x5258fa(0x9e)],we=(_0xce797b,_0x56dd88,_0x1520b1,_0x3d6f23)=>{var _0xf5b9b0=_0x5258fa;for(var _0x1852de=_0x3d6f23>0x1?void 0x0:_0x3d6f23?Ee(_0x56dd88,_0x1520b1):_0x56dd88,_0x1c113d=_0xce797b[_0xf5b9b0(0x14c)]-0x1,_0x1ca097;_0x1c113d>=0x0;_0x1c113d--)(_0x1ca097=_0xce797b[_0x1c113d])&&(_0x1852de=_0x1ca097(_0x1852de)||_0x1852de);return _0x1852de;},Ne=(_0x1423ba,_0x3c5c47)=>(_0x30fea2,_0x4609a8)=>_0x3c5c47(_0x30fea2,_0x4609a8,_0x1423ba);let m=class extends _0x5d78d5{constructor(_0x2489ac){var _0x4756c8=_0x5258fa;super(),this['_liveShareService']=_0x2489ac,this[_0x4756c8(0xc8)]();}[_0x5258fa(0xc8)](){[_0x3a60b0['id'],_0x399981['id'],_0x266111['id']]['forEach'](_0x7cdfaa=>{var _0x4fc7f1=_0x139a;this[_0x4fc7f1(0xfe)](this[_0x4fc7f1(0x10e)][_0x4fc7f1(0x150)](_0x7cdfaa));});}};m=we([Ne(0x0,_0x15c34c(L))],m);var c=function(){var _0xc1b193=_0x5258fa;return c=Object['assign']||function(_0x189425){var _0x2c524e=_0x139a;for(var _0x80c157,_0x11064b=0x1,_0x1358fc=arguments[_0x2c524e(0x14c)];_0x11064b<_0x1358fc;_0x11064b++){_0x80c157=arguments[_0x11064b];for(var _0x2f94fc in _0x80c157)Object['prototype'][_0x2c524e(0xcb)][_0x2c524e(0xaa)](_0x80c157,_0x2f94fc)&&(_0x189425[_0x2f94fc]=_0x80c157[_0x2f94fc]);}return _0x189425;},c[_0xc1b193(0x115)](this,arguments);},Ce=function(_0x4c7e9f,_0x268726){var _0x2cb23c=_0x5258fa,_0x37e4ca={};for(var _0x4475a3 in _0x4c7e9f)Object['prototype'][_0x2cb23c(0xcb)][_0x2cb23c(0xaa)](_0x4c7e9f,_0x4475a3)&&_0x268726[_0x2cb23c(0x136)](_0x4475a3)<0x0&&(_0x37e4ca[_0x4475a3]=_0x4c7e9f[_0x4475a3]);if(_0x4c7e9f!=null&&typeof Object[_0x2cb23c(0xd3)]==_0x2cb23c(0xee)){for(var _0xe5af2c=0x0,_0x4475a3=Object[_0x2cb23c(0xd3)](_0x4c7e9f);_0xe5af2c<_0x4475a3['length'];_0xe5af2c++)_0x268726[_0x2cb23c(0x136)](_0x4475a3[_0xe5af2c])<0x0&&Object[_0x2cb23c(0xa6)][_0x2cb23c(0x125)]['call'](_0x4c7e9f,_0x4475a3[_0xe5af2c])&&(_0x37e4ca[_0x4475a3[_0xe5af2c]]=_0x4c7e9f[_0x4475a3[_0xe5af2c]]);}return _0x37e4ca;},W=_0x541777(function(_0x4f5f7b,_0x4b36dc){var _0xe05a70=_0x5258fa,_0x3f0de1=_0x4f5f7b['icon'],_0x4c8990=_0x4f5f7b['id'],_0x1a3707=_0x4f5f7b[_0xe05a70(0x132)],_0x4848c5=_0x4f5f7b['extend'],_0x4ec7f3=Ce(_0x4f5f7b,[_0xe05a70(0xdb),'id',_0xe05a70(0x132),_0xe05a70(0xa7)]),_0x237c50='univerjs-icon\x20univerjs-icon-'['concat'](_0x4c8990,'\x20')[_0xe05a70(0xba)](_0x1a3707||'')[_0xe05a70(0xbb)](),_0x31212b=_0x26071b('_'[_0xe05a70(0xba)](Le()));return Y(_0x3f0de1,''[_0xe05a70(0xba)](_0x4c8990),{'defIds':_0x3f0de1[_0xe05a70(0xf8)],'idSuffix':_0x31212b[_0xe05a70(0x11a)]},c({'ref':_0x4b36dc,'className':_0x237c50},_0x4ec7f3),_0x4848c5);});function Y(_0x9aa26f,_0x12a3ce,_0x1ff5d8,_0x4992b3,_0xcc4081){var _0xa6acde=_0x5258fa;return _0xe5743d(_0x9aa26f[_0xa6acde(0xf7)],c(c({'key':_0x12a3ce},De(_0x9aa26f,_0x1ff5d8,_0xcc4081)),_0x4992b3),(xe(_0x9aa26f,_0x1ff5d8)[_0xa6acde(0x119)]||[])[_0xa6acde(0x103)](function(_0x21688a,_0x25038a){var _0x5dc11b=_0xa6acde;return Y(_0x21688a,''[_0x5dc11b(0xba)](_0x12a3ce,'-')[_0x5dc11b(0xba)](_0x9aa26f['tag'],'-')[_0x5dc11b(0xba)](_0x25038a),_0x1ff5d8,void 0x0,_0xcc4081);}));}function De(_0x4aaecd,_0x3e4082,_0x50d5a8){var _0x27b903=_0x5258fa,_0x583c7b=c({},_0x4aaecd[_0x27b903(0xcc)]);_0x50d5a8!=null&&_0x50d5a8[_0x27b903(0x138)]&&_0x583c7b[_0x27b903(0x122)]===_0x27b903(0x138)&&(_0x583c7b[_0x27b903(0x122)]=_0x50d5a8['colorChannel1']),_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xb9)&&_0x583c7b['id']&&(_0x583c7b['id']=_0x583c7b['id']+_0x3e4082['idSuffix']),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x3d70f0){var _0x3c008b=_0x27b903,_0x11d835=_0x3d70f0[0x0],_0x5458b9=_0x3d70f0[0x1];_0x11d835==='mask'&&typeof _0x5458b9==_0x3c008b(0xb6)&&(_0x583c7b[_0x11d835]=_0x5458b9[_0x3c008b(0xf3)](/url\(#(.*)\)/,_0x3c008b(0x9b)['concat'](_0x3e4082[_0x3c008b(0xb2)],')')));});var _0x1f62f4=_0x3e4082[_0x27b903(0xf8)];return!_0x1f62f4||_0x1f62f4[_0x27b903(0x14c)]===0x0||(_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xc9)&&_0x583c7b[_0x27b903(0xb8)]&&(_0x583c7b[_0x27b903(0xb8)]=_0x583c7b['xlink:href']+_0x3e4082[_0x27b903(0xb2)]),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x9bac31){var _0x34e2a0=_0x27b903,_0x7c0466=_0x9bac31[0x0],_0xc2dd41=_0x9bac31[0x1];typeof _0xc2dd41==_0x34e2a0(0xb6)&&(_0x583c7b[_0x7c0466]=_0xc2dd41[_0x34e2a0(0xf3)](/url\(#(.*)\)/,_0x34e2a0(0x9b)['concat'](_0x3e4082[_0x34e2a0(0xb2)],')')));})),_0x583c7b;}function xe(_0x332f8c,_0x329f01){var _0x3b44d5=_0x5258fa,_0x2e1e81,_0x548e1f=_0x329f01[_0x3b44d5(0xf8)];return!_0x548e1f||_0x548e1f[_0x3b44d5(0x14c)]===0x0?_0x332f8c:_0x332f8c[_0x3b44d5(0xf7)]==='defs'&&(!((_0x2e1e81=_0x332f8c[_0x3b44d5(0x119)])===null||_0x2e1e81===void 0x0)&&_0x2e1e81[_0x3b44d5(0x14c)])?c(c({},_0x332f8c),{'children':_0x332f8c[_0x3b44d5(0x119)][_0x3b44d5(0x103)](function(_0x1b7a2d){var _0x1fe392=_0x3b44d5;return typeof _0x1b7a2d[_0x1fe392(0xcc)]['id']==_0x1fe392(0xb6)&&_0x548e1f&&_0x548e1f[_0x1fe392(0x116)](_0x1b7a2d[_0x1fe392(0xcc)]['id'])?c(c({},_0x1b7a2d),{'attrs':c(c({},_0x1b7a2d[_0x1fe392(0xcc)]),{'id':_0x1b7a2d['attrs']['id']+_0x329f01[_0x1fe392(0xb2)]})}):_0x1b7a2d;})}):_0x332f8c;}function Le(){var _0x5079a2=_0x5258fa;return Math['random']()[_0x5079a2(0xa3)](0x24)[_0x5079a2(0x13a)](0x2,0x8);}W[_0x5258fa(0x14e)]=_0x5258fa(0xad);var ye={'tag':_0x5258fa(0xa1),'attrs':{'xmlns':_0x5258fa(0xc4),'fill':_0x5258fa(0x120),'viewBox':_0x5258fa(0xf9),'width':_0x5258fa(0x10d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0x141)}},{'tag':_0x5258fa(0x104),'attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0xa0),'fillRule':_0x5258fa(0x11d),'clipRule':_0x5258fa(0x11d)}}]},B=_0x541777(function(_0x207e36,_0xdcb45c){var _0x9d5824=_0x5258fa;return _0xe5743d(W,Object[_0x9d5824(0xc7)]({},_0x207e36,{'id':_0x9d5824(0xf4),'ref':_0xdcb45c,'icon':ye}));});B[_0x5258fa(0x14e)]='LiveShareIcon';var Re=Object[_0x5258fa(0x9e)],Z=(_0x1cc305,_0x282081,_0x3dcee3,_0x5e63de)=>{var _0x1c9b9a=_0x5258fa;for(var _0x36bd65=_0x5e63de>0x1?void 0x0:_0x5e63de?Re(_0x282081,_0x3dcee3):_0x282081,_0x10acc0=_0x1cc305[_0x1c9b9a(0x14c)]-0x1,_0x29c53a;_0x10acc0>=0x0;_0x10acc0--)(_0x29c53a=_0x1cc305[_0x10acc0])&&(_0x36bd65=_0x29c53a(_0x36bd65)||_0x36bd65);return _0x36bd65;},f=(_0x535dbc,_0x3d98b9)=>(_0x986af1,_0x54711d)=>_0x3d98b9(_0x986af1,_0x54711d,_0x535dbc);let I=class extends _0x5123e3{constructor(_0x16eda5,_0xe09f0a,_0x8d541e){var _0x4b4d77=_0x5258fa;super(),d(this,_0x4b4d77(0x11b),new Map()),(this[_0x4b4d77(0xe7)]=_0x16eda5,this[_0x4b4d77(0xe8)]=_0xe09f0a,this['_collabSessionService']=_0x8d541e,this[_0x4b4d77(0xc8)]());}async[_0x5258fa(0xb1)](_0x5a25d6){var _0x405f36=_0x5258fa;return this[_0x405f36(0x11b)][_0x405f36(0x140)](_0x5a25d6)||await this[_0x405f36(0x146)](_0x5a25d6),this[_0x405f36(0x11b)][_0x405f36(0xe5)](_0x5a25d6);}[_0x5258fa(0xc8)](){var _0x378353=_0x5258fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x14c1f5['UNIVER_SHEET'])[_0x378353(0xfc)](_0x3dec29(this['dispose$']))[_0x378353(0x114)](async _0x497a88=>{var _0x5cdddd=_0x378353;const _0x24ccf7=_0x497a88[_0x5cdddd(0xd5)]();this[_0x5cdddd(0x11b)]['has'](_0x24ccf7)||this['_startLiveShareCoordinator'](_0x24ccf7);}),this[_0x378353(0xe7)][_0x378353(0x143)](_0x14c1f5[_0x378353(0xcf)])[_0x378353(0xfc)](_0x3dec29(this[_0x378353(0x11c)]))[_0x378353(0x114)](_0x1bc627=>{var _0x2065e3=_0x378353;const _0x210eee=_0x1bc627[_0x2065e3(0xd5)](),_0x40879a=this['_entities'][_0x2065e3(0xe5)](_0x210eee);_0x40879a==null||_0x40879a['dispose']();});}async[_0x5258fa(0x146)](_0x57a64b){var _0x4cda0d=_0x5258fa;const _0x1004ae=await this[_0x4cda0d(0x131)][_0x4cda0d(0x9d)](_0x57a64b),_0x2bc36c=this[_0x4cda0d(0xe8)]['createInstance'](C,_0x57a64b,_0x1004ae);return _0x2bc36c[_0x4cda0d(0x14f)](),this[_0x4cda0d(0x11b)][_0x4cda0d(0x112)](_0x57a64b,_0x2bc36c),_0x2bc36c;}};I=Z([f(0x0,_0x30f196),f(0x1,_0x15c34c(_0x1bb1a3)),f(0x2,_0x15c34c(_0x166df7))],I);var h=(_0x515e4b=>(_0x515e4b[_0x5258fa(0x13e)]=_0x5258fa(0x13f),_0x515e4b[_0x5258fa(0xd4)]=_0x5258fa(0xb4),_0x515e4b[_0x5258fa(0x13b)]=_0x5258fa(0xdf),_0x515e4b['NOT_FOLLOWING']=_0x5258fa(0xcd),_0x515e4b['PRESENTING']='presenting',_0x515e4b))(h||{});const Pe=_0x5258fa(0x9c),Ae=0xc8;let C=class extends _0x5123e3{constructor(_0x3047bc,_0x55dc15,_0x162d05,_0x5aeb67,_0x51a31a){var _0x24d12f=_0x5258fa;super(),d(this,_0x24d12f(0xab),new _0x513b10('idle')),d(this,_0x24d12f(0x148),this[_0x24d12f(0xab)][_0x24d12f(0xd9)]()),d(this,_0x24d12f(0xc8),!0x1),d(this,_0x24d12f(0x12a),null),d(this,'_presenter',null),(this[_0x24d12f(0xce)]=_0x3047bc,this['_collabSession']=_0x55dc15,this[_0x24d12f(0xe0)]=_0x162d05,this[_0x24d12f(0x10e)]=_0x5aeb67,this[_0x24d12f(0x142)]=_0x51a31a);}get[_0x5258fa(0xaf)](){var _0x210c6e=_0x5258fa;return this[_0x210c6e(0xab)][_0x210c6e(0xf2)]();}[_0x5258fa(0xda)](){var _0x917d5a=_0x5258fa,_0x4ac8ba;(_0x4ac8ba=this[_0x917d5a(0x12a)])==null||_0x4ac8ba[_0x917d5a(0xda)](),this['_status$'][_0x917d5a(0xc0)](_0x917d5a(0xb4)),this[_0x917d5a(0xab)][_0x917d5a(0xbc)]();}[_0x5258fa(0x14f)](){var _0x545346=_0x5258fa;this[_0x545346(0xc8)]||(this['_init']=!0x0,this['_collabSession'][_0x545346(0x99)][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))['subscribe'](_0xd46afb=>{var _0x1fbd64=_0x545346;switch(_0xd46afb){case _0x6072e1[_0x1fbd64(0x13e)]:this['_handleOffline']();break;case _0x6072e1[_0x1fbd64(0x14b)]:this[_0x1fbd64(0xb7)]();break;}}),this['_collabSession']['event$'][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))[_0x545346(0x114)](_0x1ac858=>{var _0x1b92f2=_0x545346;const {eventID:_0x5c80e6}=_0x1ac858;switch(_0x5c80e6){case _0x5e4eb2[_0x1b92f2(0xec)]:this[_0x1b92f2(0xa9)](_0x1ac858);break;case _0x5e4eb2[_0x1b92f2(0xed)]:this[_0x1b92f2(0xb3)](_0x1ac858);break;case _0x5e4eb2['LIVESHARE_TERMINATE']:this[_0x1b92f2(0x12e)]();break;case _0x5e4eb2[_0x1b92f2(0x14a)]:this['_handleNewChangeSets'](_0x1ac858);break;}}));}[_0x5258fa(0x11f)](){var _0x3a1bf7=_0x5258fa;this[_0x3a1bf7(0x106)][_0x3a1bf7(0x133)]({'eventID':_0x5e4eb2[_0x3a1bf7(0x152)],'data':{'unitID':this['_unitID'],'userID':this[_0x3a1bf7(0x106)][_0x3a1bf7(0x105)]()}},this['_unitID']);}[_0x5258fa(0xc5)](){var _0x43a2a9=_0x5258fa;this[_0x43a2a9(0xaf)]===_0x43a2a9(0x126)&&(this[_0x43a2a9(0xab)]['next'](_0x43a2a9(0xb4)),this['_collabSession'][_0x43a2a9(0x133)]({'eventID':_0x5e4eb2[_0x43a2a9(0x147)],'data':{'unitID':this[_0x43a2a9(0xce)]}},this[_0x43a2a9(0xce)]));}[_0x5258fa(0x9a)](){var _0x598f7d=_0x5258fa;this['_status']===_0x598f7d(0xcd)&&(this[_0x598f7d(0xab)]['next'](_0x598f7d(0xdf)),this[_0x598f7d(0x137)]());}[_0x5258fa(0x12c)](){var _0x2f7bb5=_0x5258fa;this[_0x2f7bb5(0xaf)]===_0x2f7bb5(0xdf)&&this[_0x2f7bb5(0x151)]();}[_0x5258fa(0xa9)](_0x4061a7){var _0x39a4b9=_0x5258fa;const {presenter:_0x2665e4}=_0x4061a7[_0x39a4b9(0x124)],_0x3bdc60=this[_0x39a4b9(0x106)]['getMemberID']();this['_presenter']=_0x2665e4,_0x2665e4===_0x3bdc60?(this[_0x39a4b9(0x151)](),this[_0x39a4b9(0x13d)]()):this['_status']!==_0x39a4b9(0xcd)&&(this[_0x39a4b9(0xea)](),this[_0x39a4b9(0x137)]());}[_0x5258fa(0xc1)](){var _0x1567b4=_0x5258fa;const _0x26ce7e={'eventID':_0x5e4eb2[_0x1567b4(0xfb)]};this[_0x1567b4(0x106)][_0x1567b4(0x133)](_0x26ce7e,this[_0x1567b4(0xce)]);}[_0x5258fa(0x12e)](){var _0x2bfd6c=_0x5258fa;this[_0x2bfd6c(0xe2)]=null,this[_0x2bfd6c(0xaf)]!==_0x2bfd6c(0x126)&&this[_0x2bfd6c(0xb0)]();}[_0x5258fa(0xd6)](_0x3ebc91){var _0x21d463=_0x5258fa;if(this[_0x21d463(0xaf)]===_0x21d463(0xdf)&&this[_0x21d463(0xe2)]===_0x3ebc91[_0x21d463(0x124)][_0x21d463(0xbe)]){const _0x595031=_0x3e708c(_0x3ebc91[_0x21d463(0x124)])['mutations'][_0x21d463(0x110)]()[_0x21d463(0xe1)](_0x4d080c=>_0x4d080c['id']===_0x58b5c8['id']);if(_0x595031){const _0x3a3e73=_0x595031[_0x21d463(0x149)][_0x21d463(0xa4)],_0x358585=_0x595031[_0x21d463(0x149)]['sheet']['id'];setTimeout(()=>{var _0x51050b=_0x21d463;this['_commandService'][_0x51050b(0xac)](_0x266111['id'],{'unitId':_0x3a3e73,'subUnitId':_0x358585},{'fromCollab':!0x0});});}}}[_0x5258fa(0x13d)](){var _0x1dfa08=_0x5258fa;this['_status$'][_0x1dfa08(0xc0)]('presenting');const _0x229265=new Map(),_0xf58a46=this[_0x1dfa08(0x12a)]=new _0x2872b8();_0xf58a46[_0x1dfa08(0xd7)](_0x104973(()=>{var _0x5919b3=_0x1dfa08;_0x229265['forEach'](_0x3b52a9=>_0x3b52a9['complete']()),_0x229265[_0x5919b3(0x139)]();})),_0xf58a46[_0x1dfa08(0xd7)](this[_0x1dfa08(0x142)][_0x1dfa08(0xde)](_0x4bd72e=>{var _0x250f8b=_0x1dfa08,_0x23cd5e;if(_0x4bd72e[_0x250f8b(0x129)]!==_0x16b9f5['OPERATION']||!this[_0x250f8b(0x10e)][_0x250f8b(0x12b)](_0x4bd72e['id']))return;const {id:_0x3d9e8f}=_0x4bd72e;let _0xac24dd;_0x229265['has'](_0x3d9e8f)?_0xac24dd=_0x229265[_0x250f8b(0xe5)](_0x3d9e8f):(_0xac24dd=new _0x49a04c(),_0x229265[_0x250f8b(0x112)](_0x3d9e8f,_0xac24dd),_0xac24dd['pipe'](_0x56270f((_0x23cd5e=this['_configService'][_0x250f8b(0xe4)](Pe))!=null?_0x23cd5e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f8b(0x114)](_0x56745a=>{var _0xc97558=_0x250f8b;this[_0xc97558(0x106)][_0xc97558(0x133)]({'eventID':_0x5e4eb2[_0xc97558(0xed)],'data':{'unitID':this[_0xc97558(0xce)],'operations':{[_0x56745a['id']]:{'id':_0x56745a['id'],'params':JSON[_0xc97558(0xc6)](_0x56745a[_0xc97558(0x149)])}}}},this[_0xc97558(0xce)]);})),_0xac24dd[_0x250f8b(0xc0)](_0x4bd72e);})),this[_0x1dfa08(0x10e)][_0x1dfa08(0x13c)](this['_unitID'])[_0x1dfa08(0x12f)](_0x242f72=>this['_collabSession']['send']({'eventID':_0x5e4eb2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1dfa08(0xce)],'operations':{[_0x242f72['id']]:{'id':_0x242f72['id'],'params':JSON[_0x1dfa08(0xc6)](_0x242f72['params'])}}}},this['_unitID']));}[_0x5258fa(0xea)](){var _0x2207b2=_0x5258fa,_0x530bc5;this[_0x2207b2(0xab)][_0x2207b2(0xc0)](_0x2207b2(0xb4)),(_0x530bc5=this[_0x2207b2(0x12a)])==null||_0x530bc5[_0x2207b2(0xda)](),this[_0x2207b2(0x12a)]=null;}['_startFollowing'](){var _0x8f5826=_0x5258fa,_0x3f857b;(_0x3f857b=this[_0x8f5826(0x12a)])==null||_0x3f857b[_0x8f5826(0xda)](),this['_status$'][_0x8f5826(0xc0)](_0x8f5826(0xdf));}[_0x5258fa(0xb0)](){var _0x21efba=_0x5258fa,_0x35f6ad;this[_0x21efba(0xab)][_0x21efba(0xc0)](_0x21efba(0xb4)),(_0x35f6ad=this[_0x21efba(0x12a)])==null||_0x35f6ad[_0x21efba(0xda)](),this[_0x21efba(0x12a)]=null;}[_0x5258fa(0x151)](){var _0x2a7e36=_0x5258fa,_0x21a69c;this[_0x2a7e36(0xab)][_0x2a7e36(0xc0)](_0x2a7e36(0xcd)),(_0x21a69c=this['_commandDisposable'])==null||_0x21a69c[_0x2a7e36(0xda)]();}[_0x5258fa(0xb3)](_0x84100f){var _0x4c7f83=_0x5258fa;if(['presenting','not-following',_0x4c7f83(0x13f)]['includes'](this[_0x4c7f83(0xaf)])||!_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0x118)]||_0x84100f['data'][_0x4c7f83(0x118)]===this[_0x4c7f83(0x106)]['getMemberID']())return;this[_0x4c7f83(0xaf)]===_0x4c7f83(0xb4)&&this[_0x4c7f83(0x137)]();const _0x6c73ca=_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0xae)];Object[_0x4c7f83(0x111)](_0x6c73ca)['forEach'](_0xe83195=>{var _0x1da899=_0x4c7f83;this[_0x1da899(0x142)]['executeCommand'](_0xe83195['id'],_0xe83195[_0x1da899(0x149)]?JSON[_0x1da899(0xd0)](_0xe83195['params']):null,{'fromCollab':!0x0});});}[_0x5258fa(0x135)](){var _0x525eef=_0x5258fa,_0x1df924;this['_status$'][_0x525eef(0xc0)](_0x525eef(0x13f)),(_0x1df924=this[_0x525eef(0x12a)])==null||_0x1df924['dispose']();}[_0x5258fa(0xb7)](){var _0x399713=_0x5258fa;this[_0x399713(0xab)][_0x399713(0xc0)](_0x399713(0xb4)),this['_fetchOperations']();}};C=Z([f(0x2,_0xf2eda3),f(0x3,_0x15c34c(L)),f(0x4,_0x225c55)],C);function Te(){var _0x563dec=_0x5258fa;const _0x4f3789=_0x1a879f(I),_0x2da8c3=_0x1a879f(_0x30f196),_0x2b8b15=_0x2c858e(()=>_0x2da8c3['getCurrentTypeOfUnit$'](_0x14c1f5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x36aa98,_0x1e141b]=_0x5b847f(null),[_0x4155ab,_0x3d5fef]=_0x5b847f(h['IDLE']),_0x19f582=_0x26071b(null);return _0x2a5c1b(()=>(_0x2b8b15&&_0x4f3789['getLiveShareCoordinator'](_0x2b8b15['getUnitId']())[_0x563dec(0x121)](_0x1be488=>{var _0x2332a0=_0x563dec;_0x1e141b(_0x1be488),_0x19f582[_0x2332a0(0x11a)]=_0x1be488[_0x2332a0(0x148)][_0x2332a0(0x114)](_0x3b665a=>{_0x3d5fef(_0x3b665a);});}),()=>{var _0x3bb493=_0x563dec,_0x22bc4b;(_0x22bc4b=_0x19f582[_0x3bb493(0x11a)])==null||_0x22bc4b[_0x3bb493(0x127)](),_0x19f582[_0x3bb493(0x11a)]=null;}),[_0x2b8b15,_0x4f3789]),_0x36aa98?_0x5e2a77(_0x57c4cd,{'align':_0x563dec(0xf6),'disabled':_0x4155ab===h['OFFLINE'],'className':_0x563dec(0x134),'overlay':_0x5e2a77($e,{'status':_0x4155ab,'coordinator':_0x36aa98}),'children':_0x5e2a77(_0x563dec(0xe3),{'className':_0x3354fe(_0x563dec(0x113),{'univer-cursor-not-allowed':_0x4155ab===h[_0x563dec(0x13e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4155ab!==h[_0x563dec(0x13e)]}),'type':_0x563dec(0xe3),'children':_0x5e2a77(B,{'className':_0x563dec(0xdc)})})}):null;}function $e(_0x2e8138){var _0x257b1=_0x5258fa;const {status:_0x17a195,coordinator:_0x29122c}=_0x2e8138;switch(_0x17a195){case h[_0x257b1(0xd4)]:return _0x5e2a77(Fe,{'coordinator':_0x29122c});case h[_0x257b1(0x13b)]:return _0x5e2a77(He,{'coordinator':_0x29122c});case h['NOT_FOLLOWING']:return _0x5e2a77(je,{'coordinator':_0x29122c});case h[_0x257b1(0x13e)]:return _0x5e2a77(Ve,{});case h[_0x257b1(0xfa)]:return _0x5e2a77(Ue,{'coordinator':_0x29122c});default:return null;}}function Fe(_0x2a2f3a){var _0x5a1536=_0x5258fa;const {coordinator:_0x411181}=_0x2a2f3a;return _0x57e686(_0x49f367,{'children':[_0x5e2a77('div',{'className':_0x5a1536(0x100),'children':_0x5a1536(0x109)}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x411181[_0x5a1536(0x11f)](),'children':_0x5a1536(0x144)})]});}function He(_0x371f8f){var _0x50a77f=_0x5258fa;const {coordinator:_0x4ad7d8}=_0x371f8f;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x50a77f(0xd8),{'className':_0x50a77f(0x100),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x4ad7d8[_0x50a77f(0x12c)](),'children':_0x50a77f(0xc3)})]});}function je(_0x5a04e3){var _0x16316c=_0x5258fa;const {coordinator:_0x282ada}=_0x5a04e3;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x16316c(0xd8),{'className':_0x16316c(0x100),'children':_0x16316c(0xdd)}),_0x5e2a77(_0x32a223,{'variant':'text','onClick':()=>_0x282ada[_0x16316c(0x9a)](),'children':_0x16316c(0xbd)})]});}function Ue(_0x41aea7){var _0x600243=_0x5258fa;const {coordinator:_0x45db9c}=_0x41aea7;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x600243(0xd8),{'className':_0x600243(0x100),'children':_0x600243(0xf1)}),_0x5e2a77(_0x32a223,{'variant':'default','onClick':()=>_0x45db9c[_0x600243(0xc5)](),'children':_0x600243(0x101)})]});}function Ve(){return _0x5e2a77(_0x49f367,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x539ecf,_0x35670f,_0x5c52e9,_0x29da7d)=>{for(var _0x4237df=_0x29da7d>0x1?void 0x0:_0x29da7d?Me(_0x35670f,_0x5c52e9):_0x35670f,_0x1df4d9=_0x539ecf['length']-0x1,_0xf75b98;_0x1df4d9>=0x0;_0x1df4d9--)(_0xf75b98=_0x539ecf[_0x1df4d9])&&(_0x4237df=_0xf75b98(_0x4237df)||_0x4237df);return _0x4237df;},$=(_0x4cab6c,_0x3edae9)=>(_0x334a58,_0x5b0497)=>_0x3edae9(_0x334a58,_0x5b0497,_0x4cab6c);let b=class extends _0x5d78d5{constructor(_0x3a833c,_0x5786c6){var _0x5f0ba1=_0x5258fa;super(),this[_0x5f0ba1(0xe8)]=_0x3a833c,this[_0x5f0ba1(0x102)]=_0x5786c6,this[_0x5f0ba1(0xff)]();}['_mountLiveShare'](){var _0x38e8ca=_0x5258fa;this[_0x38e8ca(0xfe)](this[_0x38e8ca(0x102)][_0x38e8ca(0x10a)](_0x5e9d9c[_0x38e8ca(0x10f)],()=>_0x21477e(Te,this[_0x38e8ca(0xe8)])));}};b=ke([$(0x0,_0x15c34c(_0x1bb1a3)),$(0x1,_0x48f43a)],b);var Ge=Object[_0x5258fa(0x9f)],We=Object[_0x5258fa(0x9e)],Ye=(_0x366853,_0x2d9f78,_0x4094ca)=>_0x2d9f78 in _0x366853?Ge(_0x366853,_0x2d9f78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4094ca}):_0x366853[_0x2d9f78]=_0x4094ca,Be=(_0x5a9b1f,_0x2ad13e,_0x220fa4,_0x434ca9)=>{for(var _0x5cd7ea=_0x434ca9>0x1?void 0x0:_0x434ca9?We(_0x2ad13e,_0x220fa4):_0x2ad13e,_0x331996=_0x5a9b1f['length']-0x1,_0x11ef89;_0x331996>=0x0;_0x331996--)(_0x11ef89=_0x5a9b1f[_0x331996])&&(_0x5cd7ea=_0x11ef89(_0x5cd7ea)||_0x5cd7ea);return _0x5cd7ea;},F=(_0x56e940,_0x50aec0)=>(_0x1c40fc,_0x498e04)=>_0x50aec0(_0x1c40fc,_0x498e04,_0x56e940),J=(_0x49d951,_0xd45167,_0x5187e5)=>Ye(_0x49d951,typeof _0xd45167!=_0x5258fa(0xbf)?_0xd45167+'':_0xd45167,_0x5187e5);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x607589{constructor(_0x33054d=T,_0x3734dc,_0x1c19b3){var _0x54be2f=_0x5258fa;super(),this['_config']=_0x33054d,this[_0x54be2f(0xe8)]=_0x3734dc,this['_configService']=_0x1c19b3;const {..._0x1f7b91}=_0x1c848f({},T,this[_0x54be2f(0xef)]);this['_configService'][_0x54be2f(0xe6)](Oe,_0x1f7b91);}[_0x5258fa(0xfd)](){var _0x5077c3=_0x5258fa;_0x1910a1(this[_0x5077c3(0xe8)],_0x2ab882([[L],[I],[m],[b]],this[_0x5077c3(0xef)][_0x5077c3(0x130)])),_0xbfe10e(this[_0x5077c3(0xe8)],[[m]]);}[_0x5258fa(0x128)](){var _0xda77b3=_0x5258fa;_0xbfe10e(this[_0xda77b3(0xe8)],[[b]]);}};J(O,_0x5258fa(0x129),_0x14c1f5[_0x5258fa(0xd1)]),J(O,'pluginName',Ze),O=Be([_0x36185f(_0xbe77e1),F(0x1,_0x15c34c(_0x1bb1a3)),F(0x2,_0xf2eda3)],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 _0x4f12(_0xeac9da,_0x5d495e){var _0x3d5bd7=_0x3d5b();return _0x4f12=function(_0x4f123a,_0x3b746e){_0x4f123a=_0x4f123a-0xb1;var _0x5d5c24=_0x3d5bd7[_0x4f123a];return _0x5d5c24;},_0x4f12(_0xeac9da,_0x5d495e);}function _0x3d5b(){var _0x19ea96=['DisposableCollection','_handleNewHost','registerDependencies','getOwnPropertyDescriptor','_mountLiveShare','116211vOEHih','You\x27re\x20following\x20the\x20presenter','rxjs','jsxs','getInitialStates','UniverLiveSharePlugin','pipe','subscribe','react','Present\x20this\x20document','LiveShareController','takeUntil','Plugin','LIVESHARE_OPERATION','UniverProCollaboration','UniverProLiveShare','children','Button','http://www.w3.org/2000/svg','7057720gnuCJD','getTypeOfUnitDisposed$','NOT_FOLLOWING','NEW_CHANGESETS','url(#$1','evenodd','then','DesktopLiveShareController','PRESENTING','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','You\x27re\x20not\x20following\x20the\x20presenter','_commandService','toDisposable','3401232CTHEgQ','onRendered','memberID','IDLE','@univerjs/ui','colorChannel1','random','SAME_OPERATION_SHARE_INTERVAL','presenter','complete','ONLINE','5656370doiyWW','LIVESHARE_FETCH_OPERATIONS','send','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','apply','getConfig','override','_status$','_commandDisposable','defIds','params','values','object','BehaviorSubject','createElement','getOwnPropertySymbols','OFFLINE','react/jsx-runtime','_injector','extend','_startFollowing','following','7umJGRr','Fragment','@univerjs/core','getLiveShareCoordinator','_handleTerminate','not-following','144236CbXDpD','_configService','RxDisposable','UniverUi','You\x27re\x20presenting\x20the\x20document','mutations','find','presenting','_uiPartsService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','_sharedOperations','symbol','replace','registerComponent','idle','IConfigService','toString','registerSharedOperation','tryStartPresenting','FOLLOWING','hasOwnProperty','useEffect','concat','assign','use','className','function','_collabSessionService','OPERATION','@univerjs/design','clsx','none','from','touchDependencies','text','add','substring','UNIVER_UNKNOWN','icon','getUnitId','defs','_startPresenting','useRef','currentColor','6869274wxTEox','_liveShareService','_collabSession','0\x200\x2017\x2017','string','HEADER_MENU','UniverInstanceType','Inject','onCommandExecuted','_fetchOperations','merge','length','LiveShareIcon','forwardRef','amd','React','defineProperty','reverse','LiveShareCoordinator','CollaborationEvent','You\x27are\x20offline.','set','@univerjs-pro/collaboration-client','stringify','DependentOn','prototype','stopPresenting','default','BuiltInUIPart','useState','_status','SessionStatus','asObservable','path','Dropdown','_unitID','UNIVER_SHEET','current','Start\x20following','attrs','parseProtocolChangeset','univer-w-full\x20univer-mb-3\x20univer-text-sm','indexOf','rxjs/operators','sheet','forEach','registerInitialStateReporter','LiveShare','fill','LIVESHARE_REQUEST_HOST','live-share.config','Disposable','_entities','_reporters','@univerjs/sheets-ui','map','SetWorksheetActiveOperation','entries','Injector','mask','useObservable','_beIdle','Start','univer-size-4','_init','status$','dispose','shouldShareOperation','_config','type','setConfig','get','operations','tag','dispose$','includes','displayName','propertyIsEnumerable','onStarting','clear','UniverProCollaborationClient','InsertSheetMutation','end','idSuffix','getCurrentTypeOfUnit$','xlink:href','next','getMemberID','_startLiveShareCoordinator','call','useDependency','_presenter','div','IUniverInstanceService','init','24386992Wbmcie','Subject','offline','jsx','data','disposeWithMe','LiveShareService','ICommandService','pluginName','_stopFollowing','@univerjs/sheets','UniverDesign','1em','LIVESHARE_TERMINATE','_stopPresenting','Module','executeCommand','@univerjs-pro/collaboration','button','operators','UNIVER_LIVE_SHARE_PLUGIN','unitId','has'];_0x3d5b=function(){return _0x19ea96;};return _0x3d5b();}(function(_0x594aaf,_0x5b7992){var _0x3c890d=_0x4f12,_0x2f297e=_0x594aaf();while(!![]){try{var _0x1b7056=parseInt(_0x3c890d(0x180))/0x1+-parseInt(_0x3c890d(0x159))/0x2+-parseInt(_0x3c890d(0x139))/0x3+parseInt(_0x3c890d(0x14c))/0x4+-parseInt(_0x3c890d(0x164))/0x5+parseInt(_0x3c890d(0xbe))/0x6*(-parseInt(_0x3c890d(0x17a))/0x7)+parseInt(_0x3c890d(0x11d))/0x8;if(_0x1b7056===_0x5b7992)break;else _0x2f297e['push'](_0x2f297e['shift']());}catch(_0x1cb2f3){_0x2f297e['push'](_0x2f297e['shift']());}}}(_0x3d5b,0xe5dde),function(_0x39ed77,_0x231d39){var _0x54a83f=_0x4f12;typeof exports==_0x54a83f(0x170)&&typeof module<'u'?_0x231d39(exports,require(_0x54a83f(0xd4)),require(_0x54a83f(0x17c)),require(_0x54a83f(0x127)),require('@univerjs/sheets-ui'),require(_0x54a83f(0x15d)),require(_0x54a83f(0x175)),require(_0x54a83f(0x19e)),require(_0x54a83f(0x141)),require(_0x54a83f(0x12e)),require(_0x54a83f(0x13b)),require(_0x54a83f(0xe9))):typeof define=='function'&&define[_0x54a83f(0xcc)]?define(['exports','@univerjs-pro/collaboration-client',_0x54a83f(0x17c),_0x54a83f(0x127),_0x54a83f(0xf4),_0x54a83f(0x15d),_0x54a83f(0x175),_0x54a83f(0x19e),_0x54a83f(0x141),_0x54a83f(0x12e),'rxjs','rxjs/operators'],_0x231d39):(_0x39ed77=typeof globalThis<'u'?globalThis:_0x39ed77||self,_0x231d39(_0x39ed77[_0x54a83f(0x148)]={},_0x39ed77[_0x54a83f(0x10e)],_0x39ed77['UniverCore'],_0x39ed77['UniverSheets'],_0x39ed77['UniverSheetsUi'],_0x39ed77[_0x54a83f(0x183)],_0x39ed77['React'],_0x39ed77[_0x54a83f(0x128)],_0x39ed77[_0x54a83f(0xcd)],_0x39ed77[_0x54a83f(0x147)],_0x39ed77[_0x54a83f(0x13b)],_0x39ed77['rxjs'][_0x54a83f(0x130)]));}(this,function(_0x3f8abb,_0x37706c,_0x2abeeb,_0x544b4f,_0x373f59,_0x4a3f16,_0x308395,_0xbd355a,_0x1eede1,_0x223760,_0x45c004,_0x3fb454){'use strict';var _0xa14a42=_0x4f12;var _0x546d6a=Object[_0xa14a42(0xce)],_0x713ec1=(_0x308c6e,_0x4beaae,_0x476e85)=>_0x4beaae in _0x308c6e?_0x546d6a(_0x308c6e,_0x4beaae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x476e85}):_0x308c6e[_0x4beaae]=_0x476e85,_0xd8f51e=(_0x41a7f6,_0x3630d8,_0x47dfc2)=>_0x713ec1(_0x41a7f6,typeof _0x3630d8!='symbol'?_0x3630d8+'':_0x3630d8,_0x47dfc2);const _0x262291=_0xa14a42(0xf0),_0x1f56dc={};class _0x911fa1 extends _0x2abeeb[_0xa14a42(0xf1)]{constructor(){var _0x556a88=_0xa14a42;super(...arguments),_0xd8f51e(this,_0x556a88(0x18b),new Set()),_0xd8f51e(this,_0x556a88(0xf3),new Set());}[_0xa14a42(0x192)](_0x433d9b){var _0x56a673=_0xa14a42;return this[_0x56a673(0x18b)]['add'](_0x433d9b),_0x2abeeb['toDisposable'](()=>this[_0x56a673(0x18b)]['delete'](_0x433d9b));}[_0xa14a42(0xec)](_0x4175f9){var _0x44bfc8=_0xa14a42;return this[_0x44bfc8(0xf3)]['add'](_0x4175f9),_0x2abeeb[_0x44bfc8(0x158)](()=>this['_reporters']['delete'](_0x4175f9));}[_0xa14a42(0x101)](_0x234101){var _0x5e3294=_0xa14a42;return this[_0x5e3294(0x18b)][_0x5e3294(0x133)](_0x234101);}['getInitialStates'](_0x210925){var _0x48d053=_0xa14a42;return Array[_0x48d053(0xb2)](this['_reporters'])[_0x48d053(0xf5)](_0x5c7054=>_0x5c7054(_0x210925));}}var _0x244eee=Object[_0xa14a42(0x137)],_0x810d97=(_0x24da32,_0x4ac263,_0x41443b,_0x495c01)=>{for(var _0x2dd5ee=_0x495c01>0x1?void 0x0:_0x495c01?_0x244eee(_0x4ac263,_0x41443b):_0x4ac263,_0x42cc5e=_0x24da32['length']-0x1,_0x3ca709;_0x42cc5e>=0x0;_0x42cc5e--)(_0x3ca709=_0x24da32[_0x42cc5e])&&(_0x2dd5ee=_0x3ca709(_0x2dd5ee)||_0x2dd5ee);return _0x2dd5ee;},_0x4d3eba=(_0x28ec38,_0x41f1cf)=>(_0x3379f5,_0x1f1490)=>_0x41f1cf(_0x3379f5,_0x1f1490,_0x28ec38);let _0x1a7881=class extends _0x2abeeb[_0xa14a42(0xf1)]{constructor(_0x34c51c){super(),this['_liveShareService']=_0x34c51c,this['_init']();}[_0xa14a42(0xfe)](){var _0x28d726=_0xa14a42;[_0x373f59['SetZoomRatioOperation']['id'],_0x373f59['SetScrollOperation']['id'],_0x544b4f[_0x28d726(0xf6)]['id']]['forEach'](_0x4146d5=>{var _0x1b5405=_0x28d726;this['disposeWithMe'](this[_0x1b5405(0xbf)]['registerSharedOperation'](_0x4146d5));});}};_0x1a7881=_0x810d97([_0x4d3eba(0x0,_0x2abeeb[_0xa14a42(0xc5)](_0x911fa1))],_0x1a7881);var _0x3ea5a3=function(){var _0x530508=_0xa14a42;return _0x3ea5a3=Object[_0x530508(0x198)]||function(_0xb9fbb9){var _0x5a9db1=_0x530508;for(var _0x1e6e33,_0x2174a0=0x1,_0x1ef5ef=arguments[_0x5a9db1(0xc9)];_0x2174a0<_0x1ef5ef;_0x2174a0++){_0x1e6e33=arguments[_0x2174a0];for(var _0x4e8b7f in _0x1e6e33)Object[_0x5a9db1(0xd7)]['hasOwnProperty'][_0x5a9db1(0x117)](_0x1e6e33,_0x4e8b7f)&&(_0xb9fbb9[_0x4e8b7f]=_0x1e6e33[_0x4e8b7f]);}return _0xb9fbb9;},_0x3ea5a3[_0x530508(0x168)](this,arguments);},_0x3c47ae=function(_0x3824c3,_0x444521){var _0x271dae=_0xa14a42,_0x52ac32={};for(var _0x3e6f85 in _0x3824c3)Object[_0x271dae(0xd7)][_0x271dae(0x195)]['call'](_0x3824c3,_0x3e6f85)&&_0x444521[_0x271dae(0xe8)](_0x3e6f85)<0x0&&(_0x52ac32[_0x3e6f85]=_0x3824c3[_0x3e6f85]);if(_0x3824c3!=null&&typeof Object[_0x271dae(0x173)]==_0x271dae(0x19b)){for(var _0x1958cf=0x0,_0x3e6f85=Object['getOwnPropertySymbols'](_0x3824c3);_0x1958cf<_0x3e6f85[_0x271dae(0xc9)];_0x1958cf++)_0x444521[_0x271dae(0xe8)](_0x3e6f85[_0x1958cf])<0x0&&Object[_0x271dae(0xd7)][_0x271dae(0x10b)][_0x271dae(0x117)](_0x3824c3,_0x3e6f85[_0x1958cf])&&(_0x52ac32[_0x3e6f85[_0x1958cf]]=_0x3824c3[_0x3e6f85[_0x1958cf]]);}return _0x52ac32;},_0x8f66bc=_0x1eede1['forwardRef'](function(_0x2720f9,_0x51b041){var _0x76346f=_0xa14a42,_0x446125=_0x2720f9[_0x76346f(0xb8)],_0x4182de=_0x2720f9['id'],_0x1e0c3e=_0x2720f9[_0x76346f(0x19a)],_0x58cf1d=_0x2720f9[_0x76346f(0x177)],_0x2d545e=_0x3c47ae(_0x2720f9,['icon','id',_0x76346f(0x19a),'extend']),_0x31f34a='univerjs-icon\x20univerjs-icon-'[_0x76346f(0x197)](_0x4182de,'\x20')[_0x76346f(0x197)](_0x1e0c3e||'')['trim'](),_0x189d2d=_0x1eede1['useRef']('_'[_0x76346f(0x197)](_0x300d2c()));return _0x7df670(_0x446125,''['concat'](_0x4182de),{'defIds':_0x446125[_0x76346f(0x16d)],'idSuffix':_0x189d2d[_0x76346f(0xe3)]},_0x3ea5a3({'ref':_0x51b041,'className':_0x31f34a},_0x2d545e),_0x58cf1d);});function _0x7df670(_0x3ad081,_0x5b206f,_0x5efc0c,_0x59ef6,_0x465c89){var _0x1f7277=_0xa14a42;return _0x1eede1[_0x1f7277(0x172)](_0x3ad081[_0x1f7277(0x107)],_0x3ea5a3(_0x3ea5a3({'key':_0x5b206f},_0x2c50bb(_0x3ad081,_0x5efc0c,_0x465c89)),_0x59ef6),(_0x46f20b(_0x3ad081,_0x5efc0c)[_0x1f7277(0x149)]||[])[_0x1f7277(0xf5)](function(_0x15d921,_0x575d13){var _0x41318b=_0x1f7277;return _0x7df670(_0x15d921,''[_0x41318b(0x197)](_0x5b206f,'-')[_0x41318b(0x197)](_0x3ad081[_0x41318b(0x107)],'-')[_0x41318b(0x197)](_0x575d13),_0x5efc0c,void 0x0,_0x465c89);}));}function _0x2c50bb(_0x1650cc,_0xfc466f,_0x46ce96){var _0x434f0f=_0xa14a42,_0x4fc5e9=_0x3ea5a3({},_0x1650cc[_0x434f0f(0xe5)]);_0x46ce96!=null&&_0x46ce96[_0x434f0f(0x15e)]&&_0x4fc5e9['fill']===_0x434f0f(0x15e)&&(_0x4fc5e9[_0x434f0f(0xee)]=_0x46ce96[_0x434f0f(0x15e)]),_0x1650cc[_0x434f0f(0x107)]===_0x434f0f(0xf9)&&_0x4fc5e9['id']&&(_0x4fc5e9['id']=_0x4fc5e9['id']+_0xfc466f['idSuffix']),Object['entries'](_0x4fc5e9)['forEach'](function(_0x581107){var _0x52b799=_0x434f0f,_0x54e335=_0x581107[0x0],_0x30303a=_0x581107[0x1];_0x54e335===_0x52b799(0xf9)&&typeof _0x30303a=='string'&&(_0x4fc5e9[_0x54e335]=_0x30303a[_0x52b799(0x18d)](/url\(#(.*)\)/,_0x52b799(0x150)[_0x52b799(0x197)](_0xfc466f[_0x52b799(0x111)],')')));});var _0x133491=_0xfc466f['defIds'];return!_0x133491||_0x133491[_0x434f0f(0xc9)]===0x0||(_0x1650cc[_0x434f0f(0x107)]===_0x434f0f(0x199)&&_0x4fc5e9[_0x434f0f(0x113)]&&(_0x4fc5e9[_0x434f0f(0x113)]=_0x4fc5e9['xlink:href']+_0xfc466f['idSuffix']),Object[_0x434f0f(0xf7)](_0x4fc5e9)[_0x434f0f(0xeb)](function(_0x2fae8e){var _0x3b2d40=_0x434f0f,_0x4076fa=_0x2fae8e[0x0],_0x46f074=_0x2fae8e[0x1];typeof _0x46f074=='string'&&(_0x4fc5e9[_0x4076fa]=_0x46f074['replace'](/url\(#(.*)\)/,_0x3b2d40(0x150)[_0x3b2d40(0x197)](_0xfc466f[_0x3b2d40(0x111)],')')));})),_0x4fc5e9;}function _0x46f20b(_0x517cdc,_0x350d91){var _0x1830a2=_0xa14a42,_0x6ab46c,_0x278da7=_0x350d91[_0x1830a2(0x16d)];return!_0x278da7||_0x278da7['length']===0x0?_0x517cdc:_0x517cdc[_0x1830a2(0x107)]===_0x1830a2(0xba)&&(!((_0x6ab46c=_0x517cdc['children'])===null||_0x6ab46c===void 0x0)&&_0x6ab46c['length'])?_0x3ea5a3(_0x3ea5a3({},_0x517cdc),{'children':_0x517cdc[_0x1830a2(0x149)][_0x1830a2(0xf5)](function(_0x53f753){var _0x760e19=_0x1830a2;return typeof _0x53f753['attrs']['id']==_0x760e19(0xc2)&&_0x278da7&&_0x278da7[_0x760e19(0x109)](_0x53f753[_0x760e19(0xe5)]['id'])?_0x3ea5a3(_0x3ea5a3({},_0x53f753),{'attrs':_0x3ea5a3(_0x3ea5a3({},_0x53f753[_0x760e19(0xe5)]),{'id':_0x53f753[_0x760e19(0xe5)]['id']+_0x350d91[_0x760e19(0x111)]})}):_0x53f753;})}):_0x517cdc;}function _0x300d2c(){var _0x35808e=_0xa14a42;return Math[_0x35808e(0x15f)]()[_0x35808e(0x191)](0x24)[_0x35808e(0xb6)](0x2,0x8);}_0x8f66bc['displayName']='UniverIcon';var _0x340e2b={'tag':'svg','attrs':{'xmlns':_0xa14a42(0x14b),'fill':_0xa14a42(0xb1),'viewBox':_0xa14a42(0xc1),'width':'1em','height':_0xa14a42(0x129)},'children':[{'tag':'path','attrs':{'fill':_0xa14a42(0xbd),'d':_0xa14a42(0x155)}},{'tag':_0xa14a42(0xdf),'attrs':{'fill':_0xa14a42(0xbd),'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':_0xa14a42(0x151),'clipRule':_0xa14a42(0x151)}}]},_0x22377e=_0x1eede1[_0xa14a42(0xcb)](function(_0x3850c3,_0x1aee79){var _0x2629b9=_0xa14a42;return _0x1eede1['createElement'](_0x8f66bc,Object[_0x2629b9(0x198)]({},_0x3850c3,{'id':'live-share-icon','ref':_0x1aee79,'icon':_0x340e2b}));});_0x22377e[_0xa14a42(0x10a)]=_0xa14a42(0xca);var _0x1070e2=Object[_0xa14a42(0x137)],_0x1e3e18=(_0x2b7fa0,_0x10ab16,_0x10f063,_0x1abf72)=>{var _0xde3113=_0xa14a42;for(var _0xe9f716=_0x1abf72>0x1?void 0x0:_0x1abf72?_0x1070e2(_0x10ab16,_0x10f063):_0x10ab16,_0x185c8d=_0x2b7fa0[_0xde3113(0xc9)]-0x1,_0x2eb61e;_0x185c8d>=0x0;_0x185c8d--)(_0x2eb61e=_0x2b7fa0[_0x185c8d])&&(_0xe9f716=_0x2eb61e(_0xe9f716)||_0xe9f716);return _0xe9f716;},_0x5c5fba=(_0x3e551e,_0x53f741)=>(_0x599914,_0xf83082)=>_0x53f741(_0x599914,_0xf83082,_0x3e551e);_0x3f8abb[_0xa14a42(0x143)]=class extends _0x2abeeb['RxDisposable']{constructor(_0x3b0562,_0x56b7fd,_0x56cce7){var _0x3165c6=_0xa14a42;super(),_0xd8f51e(this,_0x3165c6(0xf2),new Map()),(this['_univerInstanceService']=_0x3b0562,this[_0x3165c6(0x176)]=_0x56b7fd,this[_0x3165c6(0x19c)]=_0x56cce7,this['_init']());}async['getLiveShareCoordinator'](_0x15675e){var _0x5ba94d=_0xa14a42;return this[_0x5ba94d(0xf2)][_0x5ba94d(0x133)](_0x15675e)||await this[_0x5ba94d(0x116)](_0x15675e),this[_0x5ba94d(0xf2)][_0x5ba94d(0x105)](_0x15675e);}[_0xa14a42(0xfe)](){var _0x23f621=_0xa14a42;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2abeeb['UniverInstanceType'][_0x23f621(0xe2)])[_0x23f621(0x13f)](_0x3fb454[_0x23f621(0x144)](this['dispose$']))[_0x23f621(0x140)](async _0x12ea21=>{var _0x446b10=_0x23f621;const _0x3b1ea4=_0x12ea21[_0x446b10(0xb9)]();this['_entities']['has'](_0x3b1ea4)||this[_0x446b10(0x116)](_0x3b1ea4);}),this['_univerInstanceService'][_0x23f621(0x14d)](_0x2abeeb[_0x23f621(0xc4)][_0x23f621(0xe2)])['pipe'](_0x3fb454[_0x23f621(0x144)](this[_0x23f621(0x108)]))[_0x23f621(0x140)](_0x2830c5=>{var _0x1a1cc4=_0x23f621;const _0x5f530d=_0x2830c5[_0x1a1cc4(0xb9)](),_0x1b1343=this[_0x1a1cc4(0xf2)][_0x1a1cc4(0x105)](_0x5f530d);_0x1b1343==null||_0x1b1343[_0x1a1cc4(0x100)]();});}async[_0xa14a42(0x116)](_0x3a81ce){var _0x22406d=_0xa14a42;const _0x2cafac=await this[_0x22406d(0x19c)]['requireSession'](_0x3a81ce),_0x22f896=this[_0x22406d(0x176)]['createInstance'](_0x3f8abb[_0x22406d(0xd0)],_0x3a81ce,_0x2cafac);return _0x22f896[_0x22406d(0x11c)](),this['_entities'][_0x22406d(0xd3)](_0x3a81ce,_0x22f896),_0x22f896;}},_0x3f8abb['LiveShareController']=_0x1e3e18([_0x5c5fba(0x0,_0x2abeeb[_0xa14a42(0x11b)]),_0x5c5fba(0x1,_0x2abeeb[_0xa14a42(0xc5)](_0x2abeeb[_0xa14a42(0xf8)])),_0x5c5fba(0x2,_0x2abeeb[_0xa14a42(0xc5)](_0x37706c['CollaborationSessionService']))],_0x3f8abb[_0xa14a42(0x143)]);var _0x146722=(_0x49434c=>(_0x49434c[_0xa14a42(0x174)]='offline',_0x49434c[_0xa14a42(0x15c)]='idle',_0x49434c[_0xa14a42(0x194)]=_0xa14a42(0x179),_0x49434c[_0xa14a42(0x14e)]=_0xa14a42(0x17f),_0x49434c[_0xa14a42(0x154)]=_0xa14a42(0x187),_0x49434c))(_0x146722||{});const _0x325485=_0xa14a42(0x160),_0x4e0292=0xc8;_0x3f8abb[_0xa14a42(0xd0)]=class extends _0x2abeeb[_0xa14a42(0x182)]{constructor(_0x4589a9,_0x3d695a,_0x530060,_0x566f09,_0x5ecaa4){var _0x13fa92=_0xa14a42;super(),_0xd8f51e(this,_0x13fa92(0x16b),new _0x45c004[(_0x13fa92(0x171))](_0x13fa92(0x18f))),_0xd8f51e(this,_0x13fa92(0xff),this['_status$'][_0x13fa92(0xde)]()),_0xd8f51e(this,_0x13fa92(0xfe),!0x1),_0xd8f51e(this,'_commandDisposable',null),_0xd8f51e(this,_0x13fa92(0x119),null),(this[_0x13fa92(0xe1)]=_0x4589a9,this[_0x13fa92(0xc0)]=_0x3d695a,this[_0x13fa92(0x181)]=_0x530060,this[_0x13fa92(0xbf)]=_0x566f09,this['_commandService']=_0x5ecaa4);}get[_0xa14a42(0xdc)](){var _0x460609=_0xa14a42;return this[_0x460609(0x16b)]['getValue']();}[_0xa14a42(0x100)](){var _0x480b49=_0xa14a42,_0x5b7ebb;(_0x5b7ebb=this['_commandDisposable'])==null||_0x5b7ebb[_0x480b49(0x100)](),this[_0x480b49(0x16b)][_0x480b49(0x114)](_0x480b49(0x18f)),this['_status$'][_0x480b49(0x162)]();}[_0xa14a42(0x11c)](){var _0x2882e0=_0xa14a42;this[_0x2882e0(0xfe)]||(this[_0x2882e0(0xfe)]=!0x0,this[_0x2882e0(0xc0)]['sessionStatus$'][_0x2882e0(0x13f)](_0x3fb454[_0x2882e0(0x144)](this[_0x2882e0(0x108)]))[_0x2882e0(0x140)](_0x4ee3e3=>{var _0x386e35=_0x2882e0;switch(_0x4ee3e3){case _0x37706c[_0x386e35(0xdd)][_0x386e35(0x174)]:this['_handleOffline']();break;case _0x37706c[_0x386e35(0xdd)][_0x386e35(0x163)]:this['_handleOnline']();break;}}),this[_0x2882e0(0xc0)]['event$'][_0x2882e0(0x13f)](_0x3fb454[_0x2882e0(0x144)](this[_0x2882e0(0x108)]))[_0x2882e0(0x140)](_0x43f62f=>{var _0x47d18b=_0x2882e0;const {eventID:_0x4ef2f1}=_0x43f62f;switch(_0x4ef2f1){case _0x223760[_0x47d18b(0xd1)]['LIVESHARE_NEW_HOST']:this[_0x47d18b(0x135)](_0x43f62f);break;case _0x223760['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x43f62f);break;case _0x223760['CollaborationEvent'][_0x47d18b(0x12a)]:this[_0x47d18b(0x17e)]();break;case _0x223760[_0x47d18b(0xd1)][_0x47d18b(0x14f)]:this['_handleNewChangeSets'](_0x43f62f);break;}}));}[_0xa14a42(0x193)](){var _0x5a80d1=_0xa14a42;this[_0x5a80d1(0xc0)][_0x5a80d1(0x166)]({'eventID':_0x223760[_0x5a80d1(0xd1)][_0x5a80d1(0xef)],'data':{'unitID':this['_unitID'],'userID':this[_0x5a80d1(0xc0)]['getMemberID']()}},this['_unitID']);}[_0xa14a42(0xd8)](){var _0x8ea12c=_0xa14a42;this[_0x8ea12c(0xdc)]===_0x8ea12c(0x187)&&(this[_0x8ea12c(0x16b)][_0x8ea12c(0x114)](_0x8ea12c(0x18f)),this[_0x8ea12c(0xc0)][_0x8ea12c(0x166)]({'eventID':_0x223760[_0x8ea12c(0xd1)][_0x8ea12c(0x12a)],'data':{'unitID':this['_unitID']}},this[_0x8ea12c(0xe1)]));}['startFollowing'](){var _0x2a53ab=_0xa14a42;this[_0x2a53ab(0xdc)]===_0x2a53ab(0x17f)&&(this[_0x2a53ab(0x16b)][_0x2a53ab(0x114)]('following'),this['_startFollowing']());}[_0xa14a42(0x18a)](){var _0x416e4f=_0xa14a42;this[_0x416e4f(0xdc)]===_0x416e4f(0x179)&&this[_0x416e4f(0x126)]();}['_handleNewHost'](_0x2276b5){var _0x4b27ff=_0xa14a42;const {presenter:_0x519a33}=_0x2276b5['data'],_0xad0730=this[_0x4b27ff(0xc0)][_0x4b27ff(0x115)]();this[_0x4b27ff(0x119)]=_0x519a33,_0x519a33===_0xad0730?(this[_0x4b27ff(0x126)](),this[_0x4b27ff(0xbb)]()):this['_status']!==_0x4b27ff(0x17f)&&(this[_0x4b27ff(0x12b)](),this[_0x4b27ff(0x178)]());}[_0xa14a42(0xc7)](){var _0x5cfba8=_0xa14a42;const _0x25cd13={'eventID':_0x223760['CollaborationEvent'][_0x5cfba8(0x165)]};this['_collabSession']['send'](_0x25cd13,this[_0x5cfba8(0xe1)]);}[_0xa14a42(0x17e)](){var _0x362631=_0xa14a42;this[_0x362631(0x119)]=null,this[_0x362631(0xdc)]!==_0x362631(0x187)&&this[_0x362631(0xfb)]();}['_handleNewChangeSets'](_0xb0f596){var _0x899c2c=_0xa14a42;if(this['_status']===_0x899c2c(0x179)&&this[_0x899c2c(0x119)]===_0xb0f596[_0x899c2c(0x121)][_0x899c2c(0x15b)]){const _0x425977=_0x223760[_0x899c2c(0xe6)](_0xb0f596[_0x899c2c(0x121)])[_0x899c2c(0x185)][_0x899c2c(0xcf)]()[_0x899c2c(0x186)](_0x2f3be0=>_0x2f3be0['id']===_0x544b4f[_0x899c2c(0x10f)]['id']);if(_0x425977){const _0x87b996=_0x425977[_0x899c2c(0x16e)][_0x899c2c(0x132)],_0x419c32=_0x425977[_0x899c2c(0x16e)][_0x899c2c(0xea)]['id'];setTimeout(()=>{var _0x48011a=_0x899c2c;this[_0x48011a(0x157)]['executeCommand'](_0x544b4f['SetWorksheetActiveOperation']['id'],{'unitId':_0x87b996,'subUnitId':_0x419c32},{'fromCollab':!0x0});});}}}[_0xa14a42(0xbb)](){var _0x5a9c78=_0xa14a42;this['_status$'][_0x5a9c78(0x114)](_0x5a9c78(0x187));const _0x385763=new Map(),_0x4fe87a=this[_0x5a9c78(0x16c)]=new _0x2abeeb[(_0x5a9c78(0x134))]();_0x4fe87a[_0x5a9c78(0xb5)](_0x2abeeb[_0x5a9c78(0x158)](()=>{var _0x452b72=_0x5a9c78;_0x385763['forEach'](_0x150705=>_0x150705[_0x452b72(0x162)]()),_0x385763[_0x452b72(0x10d)]();})),_0x4fe87a[_0x5a9c78(0xb5)](this['_commandService'][_0x5a9c78(0xc6)](_0x220521=>{var _0x124441=_0x5a9c78,_0x5e1312;if(_0x220521['type']!==_0x2abeeb['CommandType'][_0x124441(0x19d)]||!this[_0x124441(0xbf)][_0x124441(0x101)](_0x220521['id']))return;const {id:_0x21561b}=_0x220521;let _0x333e95;_0x385763[_0x124441(0x133)](_0x21561b)?_0x333e95=_0x385763[_0x124441(0x105)](_0x21561b):(_0x333e95=new _0x45c004[(_0x124441(0x11e))](),_0x385763[_0x124441(0xd3)](_0x21561b,_0x333e95),_0x333e95[_0x124441(0x13f)](_0x3fb454['throttleTime']((_0x5e1312=this['_configService'][_0x124441(0x169)](_0x325485))!=null?_0x5e1312:_0x4e0292,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x124441(0x140)](_0x45b6ba=>{var _0x4ab5ab=_0x124441;this[_0x4ab5ab(0xc0)][_0x4ab5ab(0x166)]({'eventID':_0x223760[_0x4ab5ab(0xd1)][_0x4ab5ab(0x146)],'data':{'unitID':this[_0x4ab5ab(0xe1)],'operations':{[_0x45b6ba['id']]:{'id':_0x45b6ba['id'],'params':JSON[_0x4ab5ab(0xd5)](_0x45b6ba[_0x4ab5ab(0x16e)])}}}},this[_0x4ab5ab(0xe1)]);})),_0x333e95[_0x124441(0x114)](_0x220521);})),this['_liveShareService'][_0x5a9c78(0x13d)](this[_0x5a9c78(0xe1)])[_0x5a9c78(0xeb)](_0x4ee1f6=>this[_0x5a9c78(0xc0)][_0x5a9c78(0x166)]({'eventID':_0x223760[_0x5a9c78(0xd1)][_0x5a9c78(0x146)],'data':{'unitID':this[_0x5a9c78(0xe1)],'operations':{[_0x4ee1f6['id']]:{'id':_0x4ee1f6['id'],'params':JSON[_0x5a9c78(0xd5)](_0x4ee1f6[_0x5a9c78(0x16e)])}}}},this['_unitID']));}[_0xa14a42(0x12b)](){var _0x1993eb=_0xa14a42,_0x51b25d;this['_status$'][_0x1993eb(0x114)]('idle'),(_0x51b25d=this[_0x1993eb(0x16c)])==null||_0x51b25d[_0x1993eb(0x100)](),this[_0x1993eb(0x16c)]=null;}[_0xa14a42(0x178)](){var _0xf8a9a9=_0xa14a42,_0x492885;(_0x492885=this[_0xf8a9a9(0x16c)])==null||_0x492885[_0xf8a9a9(0x100)](),this[_0xf8a9a9(0x16b)][_0xf8a9a9(0x114)](_0xf8a9a9(0x179));}[_0xa14a42(0xfb)](){var _0x5b45f0=_0xa14a42,_0x216b61;this['_status$'][_0x5b45f0(0x114)]('idle'),(_0x216b61=this['_commandDisposable'])==null||_0x216b61[_0x5b45f0(0x100)](),this[_0x5b45f0(0x16c)]=null;}[_0xa14a42(0x126)](){var _0x21cfef=_0xa14a42,_0x340644;this['_status$']['next']('not-following'),(_0x340644=this[_0x21cfef(0x16c)])==null||_0x340644[_0x21cfef(0x100)]();}['_handleOperation'](_0x197e1e){var _0x21d46f=_0xa14a42;if([_0x21d46f(0x187),_0x21d46f(0x17f),_0x21d46f(0x11f)][_0x21d46f(0x109)](this[_0x21d46f(0xdc)])||!_0x197e1e['data']['presenter']||_0x197e1e[_0x21d46f(0x121)][_0x21d46f(0x161)]===this[_0x21d46f(0xc0)][_0x21d46f(0x115)]())return;this[_0x21d46f(0xdc)]===_0x21d46f(0x18f)&&this[_0x21d46f(0x178)]();const _0x56af9a=_0x197e1e[_0x21d46f(0x121)][_0x21d46f(0x106)];Object[_0x21d46f(0x16f)](_0x56af9a)[_0x21d46f(0xeb)](_0x1e6bd4=>{var _0x5e63c6=_0x21d46f;this[_0x5e63c6(0x157)][_0x5e63c6(0x12d)](_0x1e6bd4['id'],_0x1e6bd4[_0x5e63c6(0x16e)]?JSON['parse'](_0x1e6bd4[_0x5e63c6(0x16e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x125dd1=_0xa14a42,_0x4bdd43;this[_0x125dd1(0x16b)][_0x125dd1(0x114)]('offline'),(_0x4bdd43=this[_0x125dd1(0x16c)])==null||_0x4bdd43[_0x125dd1(0x100)]();}['_handleOnline'](){var _0x442f35=_0xa14a42;this[_0x442f35(0x16b)][_0x442f35(0x114)](_0x442f35(0x18f)),this[_0x442f35(0xc7)]();}},_0x3f8abb['LiveShareCoordinator']=_0x1e3e18([_0x5c5fba(0x2,_0x2abeeb[_0xa14a42(0x190)]),_0x5c5fba(0x3,_0x2abeeb[_0xa14a42(0xc5)](_0x911fa1)),_0x5c5fba(0x4,_0x2abeeb[_0xa14a42(0x124)])],_0x3f8abb[_0xa14a42(0xd0)]);function _0x47f308(){var _0x10380c=_0xa14a42;const _0x2349b9=_0x4a3f16['useDependency'](_0x3f8abb[_0x10380c(0x143)]),_0x3d875e=_0x4a3f16[_0x10380c(0x118)](_0x2abeeb[_0x10380c(0x11b)]),_0x240546=_0x4a3f16[_0x10380c(0xfa)](()=>_0x3d875e[_0x10380c(0x112)](_0x2abeeb[_0x10380c(0xc4)][_0x10380c(0xe2)]),void 0x0,!0x1,[]),[_0x559357,_0x1d4b4c]=_0x1eede1[_0x10380c(0xdb)](null),[_0x4ecd80,_0x2f3108]=_0x1eede1[_0x10380c(0xdb)](_0x146722['IDLE']),_0x58948e=_0x1eede1[_0x10380c(0xbc)](null);return _0x1eede1[_0x10380c(0x196)](()=>(_0x240546&&_0x2349b9[_0x10380c(0x17d)](_0x240546['getUnitId']())[_0x10380c(0x152)](_0x5a88d1=>{var _0x306b59=_0x10380c;_0x1d4b4c(_0x5a88d1),_0x58948e['current']=_0x5a88d1['status$'][_0x306b59(0x140)](_0x186476=>{_0x2f3108(_0x186476);});}),()=>{var _0x1e730d=_0x10380c,_0x13b8e2;(_0x13b8e2=_0x58948e[_0x1e730d(0xe3)])==null||_0x13b8e2['unsubscribe'](),_0x58948e[_0x1e730d(0xe3)]=null;}),[_0x240546,_0x2349b9]),_0x559357?_0x308395[_0x10380c(0x120)](_0xbd355a[_0x10380c(0xe0)],{'align':_0x10380c(0x110),'disabled':_0x4ecd80===_0x146722['OFFLINE'],'className':_0x10380c(0x167),'overlay':_0x308395[_0x10380c(0x120)](_0x5290fc,{'status':_0x4ecd80,'coordinator':_0x559357}),'children':_0x308395[_0x10380c(0x120)]('button',{'className':_0xbd355a[_0x10380c(0x19f)](_0x10380c(0x189),{'univer-cursor-not-allowed':_0x4ecd80===_0x146722[_0x10380c(0x174)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4ecd80!==_0x146722['OFFLINE']}),'type':_0x10380c(0x12f),'children':_0x308395['jsx'](_0x22377e,{'className':_0x10380c(0xfd)})})}):null;}function _0x5290fc(_0xe39e19){var _0x2ad295=_0xa14a42;const {status:_0x1ec122,coordinator:_0x5ec6b0}=_0xe39e19;switch(_0x1ec122){case _0x146722[_0x2ad295(0x15c)]:return _0x308395['jsx'](_0x578b6d,{'coordinator':_0x5ec6b0});case _0x146722[_0x2ad295(0x194)]:return _0x308395[_0x2ad295(0x120)](_0x3d5131,{'coordinator':_0x5ec6b0});case _0x146722[_0x2ad295(0x14e)]:return _0x308395['jsx'](_0x233bfa,{'coordinator':_0x5ec6b0});case _0x146722[_0x2ad295(0x174)]:return _0x308395['jsx'](_0x5d4389,{});case _0x146722[_0x2ad295(0x154)]:return _0x308395[_0x2ad295(0x120)](_0x2ff5bd,{'coordinator':_0x5ec6b0});default:return null;}}function _0x578b6d(_0x450c9){var _0x4b6304=_0xa14a42;const {coordinator:_0x13a6e8}=_0x450c9;return _0x308395[_0x4b6304(0x13c)](_0x308395['Fragment'],{'children':[_0x308395['jsx'](_0x4b6304(0x11a),{'className':_0x4b6304(0xe7),'children':_0x4b6304(0x142)}),_0x308395['jsx'](_0xbd355a['Button'],{'onClick':()=>_0x13a6e8[_0x4b6304(0x193)](),'children':_0x4b6304(0xfc)})]});}function _0x3d5131(_0x2bfeb3){var _0x165010=_0xa14a42;const {coordinator:_0x303ad0}=_0x2bfeb3;return _0x308395['jsxs'](_0x308395['Fragment'],{'children':[_0x308395[_0x165010(0x120)](_0x165010(0x11a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x165010(0x13a)}),_0x308395[_0x165010(0x120)](_0xbd355a[_0x165010(0x14a)],{'onClick':()=>_0x303ad0[_0x165010(0x18a)](),'children':'Stop\x20following'})]});}function _0x233bfa(_0x1877f2){var _0xed204=_0xa14a42;const {coordinator:_0x3db0fc}=_0x1877f2;return _0x308395['jsxs'](_0x308395[_0xed204(0x17b)],{'children':[_0x308395[_0xed204(0x120)](_0xed204(0x11a),{'className':_0xed204(0xe7),'children':_0xed204(0x156)}),_0x308395['jsx'](_0xbd355a[_0xed204(0x14a)],{'variant':_0xed204(0xb4),'onClick':()=>_0x3db0fc['startFollowing'](),'children':_0xed204(0xe4)})]});}function _0x2ff5bd(_0x48f789){var _0xc081f4=_0xa14a42;const {coordinator:_0x3f3511}=_0x48f789;return _0x308395[_0xc081f4(0x13c)](_0x308395[_0xc081f4(0x17b)],{'children':[_0x308395[_0xc081f4(0x120)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xc081f4(0x184)}),_0x308395['jsx'](_0xbd355a[_0xc081f4(0x14a)],{'variant':_0xc081f4(0xd9),'onClick':()=>_0x3f3511[_0xc081f4(0xd8)](),'children':'Stop\x20presenting'})]});}function _0x5d4389(){var _0x41db6d=_0xa14a42;return _0x308395[_0x41db6d(0x120)](_0x308395[_0x41db6d(0x17b)],{'children':_0x41db6d(0xd2)});}var _0x26a6bc=Object[_0xa14a42(0x137)],_0x3fd29b=(_0x3c0d0a,_0x2f9aca,_0x1b9217,_0x2553ea)=>{for(var _0x3b653f=_0x2553ea>0x1?void 0x0:_0x2553ea?_0x26a6bc(_0x2f9aca,_0x1b9217):_0x2f9aca,_0x4ebce5=_0x3c0d0a['length']-0x1,_0x441416;_0x4ebce5>=0x0;_0x4ebce5--)(_0x441416=_0x3c0d0a[_0x4ebce5])&&(_0x3b653f=_0x441416(_0x3b653f)||_0x3b653f);return _0x3b653f;},_0x4c72df=(_0x3d51de,_0x53522f)=>(_0x5b0ae6,_0x2f990e)=>_0x53522f(_0x5b0ae6,_0x2f990e,_0x3d51de);_0x3f8abb[_0xa14a42(0x153)]=class extends _0x2abeeb[_0xa14a42(0xf1)]{constructor(_0x2a6b18,_0x34296b){var _0x1a7491=_0xa14a42;super(),this[_0x1a7491(0x176)]=_0x2a6b18,this[_0x1a7491(0x188)]=_0x34296b,this['_mountLiveShare']();}[_0xa14a42(0x138)](){var _0xd437a5=_0xa14a42;this[_0xd437a5(0x122)](this[_0xd437a5(0x188)][_0xd437a5(0x18e)](_0x4a3f16[_0xd437a5(0xda)][_0xd437a5(0xc3)],()=>_0x4a3f16['connectInjector'](_0x47f308,this[_0xd437a5(0x176)])));}},_0x3f8abb['DesktopLiveShareController']=_0x3fd29b([_0x4c72df(0x0,_0x2abeeb[_0xa14a42(0xc5)](_0x2abeeb[_0xa14a42(0xf8)])),_0x4c72df(0x1,_0x4a3f16['IUIPartsService'])],_0x3f8abb[_0xa14a42(0x153)]);var _0x381842=Object[_0xa14a42(0xce)],_0x56e04f=Object[_0xa14a42(0x137)],_0x16b33d=(_0x25bee0,_0x4a98ad,_0x225025)=>_0x4a98ad in _0x25bee0?_0x381842(_0x25bee0,_0x4a98ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x225025}):_0x25bee0[_0x4a98ad]=_0x225025,_0x264832=(_0x5d8927,_0x2c6069,_0x1e4658,_0x2e42c9)=>{var _0x1f135d=_0xa14a42;for(var _0x2bc51c=_0x2e42c9>0x1?void 0x0:_0x2e42c9?_0x56e04f(_0x2c6069,_0x1e4658):_0x2c6069,_0x5707e3=_0x5d8927[_0x1f135d(0xc9)]-0x1,_0x446dac;_0x5707e3>=0x0;_0x5707e3--)(_0x446dac=_0x5d8927[_0x5707e3])&&(_0x2bc51c=_0x446dac(_0x2bc51c)||_0x2bc51c);return _0x2bc51c;},_0x53d2d7=(_0x14b29c,_0x259262)=>(_0x247e53,_0x11ffec)=>_0x259262(_0x247e53,_0x11ffec,_0x14b29c),_0x20da3d=(_0xda9122,_0x20c54e,_0x200013)=>_0x16b33d(_0xda9122,typeof _0x20c54e!=_0xa14a42(0x18c)?_0x20c54e+'':_0x20c54e,_0x200013);const _0x166b3d=_0xa14a42(0x131);_0x3f8abb['UniverLiveSharePlugin']=class extends _0x2abeeb[_0xa14a42(0x145)]{constructor(_0x30b926=_0x1f56dc,_0x2d0a43,_0x2f5a59){var _0x63355d=_0xa14a42;super(),this[_0x63355d(0x102)]=_0x30b926,this['_injector']=_0x2d0a43,this[_0x63355d(0x181)]=_0x2f5a59;const {..._0x3fe7ca}=_0x2abeeb[_0x63355d(0xc8)]({},_0x1f56dc,this['_config']);this[_0x63355d(0x181)][_0x63355d(0x104)](_0x262291,_0x3fe7ca);}[_0xa14a42(0x10c)](){var _0x193f97=_0xa14a42;_0x2abeeb[_0x193f97(0x136)](this['_injector'],_0x2abeeb['mergeOverrideWithDependencies']([[_0x911fa1],[_0x3f8abb['LiveShareController']],[_0x1a7881],[_0x3f8abb['DesktopLiveShareController']]],this[_0x193f97(0x102)][_0x193f97(0x16a)])),_0x2abeeb[_0x193f97(0xb3)](this[_0x193f97(0x176)],[[_0x1a7881]]);}[_0xa14a42(0x15a)](){var _0x44293d=_0xa14a42;_0x2abeeb[_0x44293d(0xb3)](this[_0x44293d(0x176)],[[_0x3f8abb[_0x44293d(0x153)]]]);}},_0x20da3d(_0x3f8abb['UniverLiveSharePlugin'],_0xa14a42(0x103),_0x2abeeb[_0xa14a42(0xc4)][_0xa14a42(0xb7)]),_0x20da3d(_0x3f8abb[_0xa14a42(0x13e)],_0xa14a42(0x125),_0x166b3d),_0x3f8abb[_0xa14a42(0x13e)]=_0x264832([_0x2abeeb[_0xa14a42(0xd6)](_0x37706c['UniverCollaborationClientPlugin']),_0x53d2d7(0x1,_0x2abeeb[_0xa14a42(0xc5)](_0x2abeeb['Injector'])),_0x53d2d7(0x2,_0x2abeeb['IConfigService'])],_0x3f8abb[_0xa14a42(0x13e)]),_0x3f8abb[_0xa14a42(0xed)]=_0x47f308,_0x3f8abb[_0xa14a42(0x123)]=_0x911fa1,_0x3f8abb['LiveShareStatus']=_0x146722,Object['defineProperty'](_0x3f8abb,Symbol['toStringTag'],{'value':_0xa14a42(0x12c)});}));
1
+ function _0x465a(_0x285d61,_0x4d9227){var _0x16ae83=_0x16ae();return _0x465a=function(_0x465a30,_0x196a95){_0x465a30=_0x465a30-0x121;var _0x2ef50c=_0x16ae83[_0x465a30];return _0x2ef50c;},_0x465a(_0x285d61,_0x4d9227);}(function(_0x2d8044,_0x51020c){var _0x1c76dc=_0x465a,_0x54a471=_0x2d8044();while(!![]){try{var _0x37fda2=parseInt(_0x1c76dc(0x129))/0x1+parseInt(_0x1c76dc(0x12a))/0x2*(parseInt(_0x1c76dc(0x130))/0x3)+-parseInt(_0x1c76dc(0x1ca))/0x4+-parseInt(_0x1c76dc(0x195))/0x5+-parseInt(_0x1c76dc(0x1b8))/0x6*(parseInt(_0x1c76dc(0x20d))/0x7)+parseInt(_0x1c76dc(0x136))/0x8*(parseInt(_0x1c76dc(0x16b))/0x9)+parseInt(_0x1c76dc(0x1a9))/0xa;if(_0x37fda2===_0x51020c)break;else _0x54a471['push'](_0x54a471['shift']());}catch(_0x49ada0){_0x54a471['push'](_0x54a471['shift']());}}}(_0x16ae,0x334cd),function(_0x42e9b2,_0x1c25af){var _0x5d6270=_0x465a;typeof exports=='object'&&typeof module<'u'?_0x1c25af(exports,require(_0x5d6270(0x16e)),require(_0x5d6270(0x1f5)),require(_0x5d6270(0x1f3)),require(_0x5d6270(0x1f7)),require(_0x5d6270(0x207)),require('react/jsx-runtime'),require('@univerjs/design'),require(_0x5d6270(0x1d4)),require(_0x5d6270(0x16d)),require('rxjs'),require(_0x5d6270(0x178))):typeof define==_0x5d6270(0x143)&&define['amd']?define([_0x5d6270(0x158),_0x5d6270(0x16e),'@univerjs/core',_0x5d6270(0x1f3),_0x5d6270(0x1f7),_0x5d6270(0x207),_0x5d6270(0x1ae),_0x5d6270(0x1a3),'react',_0x5d6270(0x16d),'rxjs',_0x5d6270(0x178)],_0x1c25af):(_0x42e9b2=typeof globalThis<'u'?globalThis:_0x42e9b2||self,_0x1c25af(_0x42e9b2['UniverProLiveShare']={},_0x42e9b2['UniverProCollaborationClient'],_0x42e9b2[_0x5d6270(0x19a)],_0x42e9b2['UniverSheets'],_0x42e9b2[_0x5d6270(0x1b0)],_0x42e9b2[_0x5d6270(0x174)],_0x42e9b2[_0x5d6270(0x1ee)],_0x42e9b2['UniverDesign'],_0x42e9b2[_0x5d6270(0x1ee)],_0x42e9b2['UniverProCollaboration'],_0x42e9b2[_0x5d6270(0x1c0)],_0x42e9b2['rxjs'][_0x5d6270(0x1a2)]));}(this,function(_0x4283c3,_0xa185a6,_0x457ba8,_0x30d724,_0x497c1a,_0x4ed24c,_0x266ae0,_0x4d8cc3,_0x646ae3,_0x14b659,_0x1caf80,_0x1c91c9){'use strict';var _0x4e5a84=_0x465a;var _0x31c86d=Object[_0x4e5a84(0x16c)],_0x4ff86e=(_0x21068f,_0x2adff5,_0x1458ca)=>_0x2adff5 in _0x21068f?_0x31c86d(_0x21068f,_0x2adff5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1458ca}):_0x21068f[_0x2adff5]=_0x1458ca,_0xe37336=(_0x5335f2,_0x236057,_0x4a287b)=>_0x4ff86e(_0x5335f2,typeof _0x236057!=_0x4e5a84(0x20e)?_0x236057+'':_0x236057,_0x4a287b);const _0xe02570=_0x4e5a84(0x19f),_0x286e71={};class _0xe7b1f9 extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(){var _0x5c01b1=_0x4e5a84;super(...arguments),_0xe37336(this,_0x5c01b1(0x142),new Set()),_0xe37336(this,'_reporters',new Set());}[_0x4e5a84(0x190)](_0x2342b0){var _0x358013=_0x4e5a84;return this['_sharedOperations'][_0x358013(0x1a1)](_0x2342b0),_0x457ba8[_0x358013(0x1d6)](()=>this[_0x358013(0x142)][_0x358013(0x15b)](_0x2342b0));}[_0x4e5a84(0x170)](_0x3d15e1){var _0x45fa3e=_0x4e5a84;return this[_0x45fa3e(0x185)]['add'](_0x3d15e1),_0x457ba8[_0x45fa3e(0x1d6)](()=>this[_0x45fa3e(0x185)][_0x45fa3e(0x15b)](_0x3d15e1));}[_0x4e5a84(0x128)](_0x419c92){var _0x55b806=_0x4e5a84;return this[_0x55b806(0x142)][_0x55b806(0x175)](_0x419c92);}[_0x4e5a84(0x132)](_0x28a91b){var _0x5e2daa=_0x4e5a84;return Array[_0x5e2daa(0x1e6)](this[_0x5e2daa(0x185)])[_0x5e2daa(0x177)](_0x3c3e44=>_0x3c3e44(_0x28a91b));}}var _0x4cde44=Object[_0x4e5a84(0x1fd)],_0xa887bc=(_0x3e5b37,_0x40a98d,_0x36ae5e,_0x32860b)=>{var _0x2d857b=_0x4e5a84;for(var _0x221447=_0x32860b>0x1?void 0x0:_0x32860b?_0x4cde44(_0x40a98d,_0x36ae5e):_0x40a98d,_0x5799bf=_0x3e5b37[_0x2d857b(0x157)]-0x1,_0x1d9552;_0x5799bf>=0x0;_0x5799bf--)(_0x1d9552=_0x3e5b37[_0x5799bf])&&(_0x221447=_0x1d9552(_0x221447)||_0x221447);return _0x221447;},_0x214d52=(_0x3e9ba9,_0x3d3556)=>(_0x19d112,_0x40ce4b)=>_0x3d3556(_0x19d112,_0x40ce4b,_0x3e9ba9);let _0x4783ce=class extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(_0x50ee65){var _0x3c3e47=_0x4e5a84;super(),this[_0x3c3e47(0x172)]=_0x50ee65,this[_0x3c3e47(0x179)]();}[_0x4e5a84(0x179)](){var _0x5c25fa=_0x4e5a84;[_0x497c1a[_0x5c25fa(0x1ce)]['id'],_0x497c1a['SetScrollOperation']['id'],_0x30d724['SetWorksheetActiveOperation']['id']][_0x5c25fa(0x165)](_0x5b68b2=>{var _0x4b53f0=_0x5c25fa;this['disposeWithMe'](this[_0x4b53f0(0x172)]['registerSharedOperation'](_0x5b68b2));});}};_0x4783ce=_0xa887bc([_0x214d52(0x0,_0x457ba8[_0x4e5a84(0x13c)](_0xe7b1f9))],_0x4783ce);var _0x298233=function(){var _0x1f043e=_0x4e5a84;return _0x298233=Object['assign']||function(_0x3d7a39){var _0x3da2f0=_0x465a;for(var _0x191591,_0x26a202=0x1,_0x5b887d=arguments['length'];_0x26a202<_0x5b887d;_0x26a202++){_0x191591=arguments[_0x26a202];for(var _0x4ddb30 in _0x191591)Object['prototype'][_0x3da2f0(0x15f)][_0x3da2f0(0x148)](_0x191591,_0x4ddb30)&&(_0x3d7a39[_0x4ddb30]=_0x191591[_0x4ddb30]);}return _0x3d7a39;},_0x298233[_0x1f043e(0x163)](this,arguments);},_0x537b32=function(_0x21e174,_0x5204fb){var _0x32a275=_0x4e5a84,_0x2a1374={};for(var _0xcb2cef in _0x21e174)Object[_0x32a275(0x135)]['hasOwnProperty'][_0x32a275(0x148)](_0x21e174,_0xcb2cef)&&_0x5204fb[_0x32a275(0x1c3)](_0xcb2cef)<0x0&&(_0x2a1374[_0xcb2cef]=_0x21e174[_0xcb2cef]);if(_0x21e174!=null&&typeof Object[_0x32a275(0x1cb)]==_0x32a275(0x143)){for(var _0x44378e=0x0,_0xcb2cef=Object['getOwnPropertySymbols'](_0x21e174);_0x44378e<_0xcb2cef[_0x32a275(0x157)];_0x44378e++)_0x5204fb[_0x32a275(0x1c3)](_0xcb2cef[_0x44378e])<0x0&&Object[_0x32a275(0x135)][_0x32a275(0x16a)][_0x32a275(0x148)](_0x21e174,_0xcb2cef[_0x44378e])&&(_0x2a1374[_0xcb2cef[_0x44378e]]=_0x21e174[_0xcb2cef[_0x44378e]]);}return _0x2a1374;},_0x5e7a23=_0x646ae3[_0x4e5a84(0x1b7)](function(_0xe24237,_0x2dcded){var _0x454ba2=_0x4e5a84,_0x128715=_0xe24237[_0x454ba2(0x1dc)],_0x21946b=_0xe24237['id'],_0x4ba976=_0xe24237['className'],_0x8c7e7e=_0xe24237['extend'],_0x19cdd5=_0x537b32(_0xe24237,[_0x454ba2(0x1dc),'id',_0x454ba2(0x15e),_0x454ba2(0x14c)]),_0x552b68=_0x454ba2(0x1c9)[_0x454ba2(0x1c5)](_0x21946b,'\x20')[_0x454ba2(0x1c5)](_0x4ba976||'')[_0x454ba2(0x162)](),_0x109004=_0x646ae3[_0x454ba2(0x14b)]('_'[_0x454ba2(0x1c5)](_0xd0ffbc()));return _0x3f863e(_0x128715,''[_0x454ba2(0x1c5)](_0x21946b),{'defIds':_0x128715['defIds'],'idSuffix':_0x109004[_0x454ba2(0x1e3)]},_0x298233({'ref':_0x2dcded,'className':_0x552b68},_0x19cdd5),_0x8c7e7e);});function _0x3f863e(_0x534416,_0x255c29,_0x5eea1f,_0x582764,_0x4cc570){var _0x30258e=_0x4e5a84;return _0x646ae3[_0x30258e(0x12e)](_0x534416[_0x30258e(0x154)],_0x298233(_0x298233({'key':_0x255c29},_0x188351(_0x534416,_0x5eea1f,_0x4cc570)),_0x582764),(_0x5ac5c0(_0x534416,_0x5eea1f)[_0x30258e(0x1d3)]||[])[_0x30258e(0x177)](function(_0x354bbe,_0x54e03c){var _0x28d0f1=_0x30258e;return _0x3f863e(_0x354bbe,''[_0x28d0f1(0x1c5)](_0x255c29,'-')[_0x28d0f1(0x1c5)](_0x534416[_0x28d0f1(0x154)],'-')[_0x28d0f1(0x1c5)](_0x54e03c),_0x5eea1f,void 0x0,_0x4cc570);}));}function _0x188351(_0x2a4e31,_0x3d8d48,_0x3f4805){var _0x45a8d1=_0x4e5a84,_0x1b7b24=_0x298233({},_0x2a4e31['attrs']);_0x3f4805!=null&&_0x3f4805['colorChannel1']&&_0x1b7b24['fill']===_0x45a8d1(0x1c2)&&(_0x1b7b24[_0x45a8d1(0x17f)]=_0x3f4805[_0x45a8d1(0x1c2)]),_0x2a4e31[_0x45a8d1(0x154)]==='mask'&&_0x1b7b24['id']&&(_0x1b7b24['id']=_0x1b7b24['id']+_0x3d8d48[_0x45a8d1(0x131)]),Object[_0x45a8d1(0x213)](_0x1b7b24)[_0x45a8d1(0x165)](function(_0x5a2dea){var _0x1e6b2f=_0x45a8d1,_0x4870c3=_0x5a2dea[0x0],_0x199962=_0x5a2dea[0x1];_0x4870c3===_0x1e6b2f(0x203)&&typeof _0x199962==_0x1e6b2f(0x145)&&(_0x1b7b24[_0x4870c3]=_0x199962[_0x1e6b2f(0x169)](/url\(#(.*)\)/,_0x1e6b2f(0x1f0)[_0x1e6b2f(0x1c5)](_0x3d8d48[_0x1e6b2f(0x131)],')')));});var _0x3c25b4=_0x3d8d48[_0x45a8d1(0x18e)];return!_0x3c25b4||_0x3c25b4[_0x45a8d1(0x157)]===0x0||(_0x2a4e31[_0x45a8d1(0x154)]==='use'&&_0x1b7b24[_0x45a8d1(0x12c)]&&(_0x1b7b24[_0x45a8d1(0x12c)]=_0x1b7b24[_0x45a8d1(0x12c)]+_0x3d8d48[_0x45a8d1(0x131)]),Object[_0x45a8d1(0x213)](_0x1b7b24)[_0x45a8d1(0x165)](function(_0x2872cc){var _0x450750=_0x45a8d1,_0x22bd14=_0x2872cc[0x0],_0x149682=_0x2872cc[0x1];typeof _0x149682=='string'&&(_0x1b7b24[_0x22bd14]=_0x149682[_0x450750(0x169)](/url\(#(.*)\)/,_0x450750(0x1f0)[_0x450750(0x1c5)](_0x3d8d48['idSuffix'],')')));})),_0x1b7b24;}function _0x5ac5c0(_0x15b603,_0x1b9486){var _0xedfc76=_0x4e5a84,_0x3d162c,_0x34fe28=_0x1b9486[_0xedfc76(0x18e)];return!_0x34fe28||_0x34fe28[_0xedfc76(0x157)]===0x0?_0x15b603:_0x15b603[_0xedfc76(0x154)]===_0xedfc76(0x153)&&(!((_0x3d162c=_0x15b603[_0xedfc76(0x1d3)])===null||_0x3d162c===void 0x0)&&_0x3d162c[_0xedfc76(0x157)])?_0x298233(_0x298233({},_0x15b603),{'children':_0x15b603[_0xedfc76(0x1d3)]['map'](function(_0x5c27b6){var _0x52d4d2=_0xedfc76;return typeof _0x5c27b6[_0x52d4d2(0x20b)]['id']==_0x52d4d2(0x145)&&_0x34fe28&&_0x34fe28[_0x52d4d2(0x1bb)](_0x5c27b6[_0x52d4d2(0x20b)]['id'])?_0x298233(_0x298233({},_0x5c27b6),{'attrs':_0x298233(_0x298233({},_0x5c27b6[_0x52d4d2(0x20b)]),{'id':_0x5c27b6[_0x52d4d2(0x20b)]['id']+_0x1b9486[_0x52d4d2(0x131)]})}):_0x5c27b6;})}):_0x15b603;}function _0xd0ffbc(){var _0x5c94be=_0x4e5a84;return Math['random']()[_0x5c94be(0x206)](0x24)[_0x5c94be(0x1c6)](0x2,0x8);}_0x5e7a23[_0x4e5a84(0x1f1)]='UniverIcon';var _0x5c175f={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e5a84(0x14d),'viewBox':_0x4e5a84(0x156),'width':_0x4e5a84(0x191),'height':_0x4e5a84(0x191)},'children':[{'tag':'path','attrs':{'fill':_0x4e5a84(0x17c),'d':_0x4e5a84(0x210)}},{'tag':_0x4e5a84(0x17d),'attrs':{'fill':_0x4e5a84(0x17c),'d':_0x4e5a84(0x1de),'fillRule':_0x4e5a84(0x1b5),'clipRule':'evenodd'}}]},_0x3a4854=_0x646ae3[_0x4e5a84(0x1b7)](function(_0xb6df36,_0x5c8d95){var _0x19538f=_0x4e5a84;return _0x646ae3[_0x19538f(0x12e)](_0x5e7a23,Object[_0x19538f(0x159)]({},_0xb6df36,{'id':_0x19538f(0x167),'ref':_0x5c8d95,'icon':_0x5c175f}));});_0x3a4854[_0x4e5a84(0x1f1)]=_0x4e5a84(0x1e5);var _0xad6688=Object['getOwnPropertyDescriptor'],_0x4275d4=(_0x29acfa,_0x4ed2f9,_0x2779b2,_0x3dec42)=>{var _0x2212fe=_0x4e5a84;for(var _0x40b7cf=_0x3dec42>0x1?void 0x0:_0x3dec42?_0xad6688(_0x4ed2f9,_0x2779b2):_0x4ed2f9,_0x299204=_0x29acfa[_0x2212fe(0x157)]-0x1,_0x3d54ba;_0x299204>=0x0;_0x299204--)(_0x3d54ba=_0x29acfa[_0x299204])&&(_0x40b7cf=_0x3d54ba(_0x40b7cf)||_0x40b7cf);return _0x40b7cf;},_0x6feff1=(_0x22ee74,_0x326f7b)=>(_0x101134,_0xc8354b)=>_0x326f7b(_0x101134,_0xc8354b,_0x22ee74);_0x4283c3[_0x4e5a84(0x1ed)]=class extends _0x457ba8[_0x4e5a84(0x1ec)]{constructor(_0xdf09e2,_0x2af307,_0xe79dd8){var _0x58abfc=_0x4e5a84;super(),_0xe37336(this,_0x58abfc(0x15d),new Map()),(this[_0x58abfc(0x19e)]=_0xdf09e2,this[_0x58abfc(0x155)]=_0x2af307,this['_collabSessionService']=_0xe79dd8,this['_init']());}async['getLiveShareCoordinator'](_0xf3e61a){var _0x216120=_0x4e5a84;return this['_entities']['has'](_0xf3e61a)||await this[_0x216120(0x20a)](_0xf3e61a),this[_0x216120(0x15d)][_0x216120(0x181)](_0xf3e61a);}['_init'](){var _0x2a38cc=_0x4e5a84;this['_univerInstanceService'][_0x2a38cc(0x212)](_0x457ba8[_0x2a38cc(0x1e1)][_0x2a38cc(0x126)])[_0x2a38cc(0x1b2)](_0x1c91c9[_0x2a38cc(0x192)](this['dispose$']))[_0x2a38cc(0x12b)](async _0x491822=>{var _0x1e0e9e=_0x2a38cc;const _0x4e82ac=_0x491822['getUnitId']();this[_0x1e0e9e(0x15d)]['has'](_0x4e82ac)||this[_0x1e0e9e(0x20a)](_0x4e82ac);}),this['_univerInstanceService'][_0x2a38cc(0x1e0)](_0x457ba8['UniverInstanceType']['UNIVER_SHEET'])[_0x2a38cc(0x1b2)](_0x1c91c9[_0x2a38cc(0x192)](this[_0x2a38cc(0x13d)]))[_0x2a38cc(0x12b)](_0x291c6a=>{var _0x1d7706=_0x2a38cc;const _0x277f88=_0x291c6a['getUnitId'](),_0x565cfc=this[_0x1d7706(0x15d)][_0x1d7706(0x181)](_0x277f88);_0x565cfc==null||_0x565cfc[_0x1d7706(0x16f)]();});}async[_0x4e5a84(0x20a)](_0x39c099){var _0x58e50d=_0x4e5a84;const _0x4f98a1=await this[_0x58e50d(0x176)][_0x58e50d(0x18a)](_0x39c099),_0xc4efe8=this[_0x58e50d(0x155)][_0x58e50d(0x1df)](_0x4283c3[_0x58e50d(0x1b1)],_0x39c099,_0x4f98a1);return _0xc4efe8[_0x58e50d(0x18c)](),this['_entities'][_0x58e50d(0x124)](_0x39c099,_0xc4efe8),_0xc4efe8;}},_0x4283c3[_0x4e5a84(0x1ed)]=_0x4275d4([_0x6feff1(0x0,_0x457ba8[_0x4e5a84(0x149)]),_0x6feff1(0x1,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8['Injector'])),_0x6feff1(0x2,_0x457ba8['Inject'](_0xa185a6[_0x4e5a84(0x197)]))],_0x4283c3[_0x4e5a84(0x1ed)]);var _0x28fff0=(_0x1c409e=>(_0x1c409e['OFFLINE']=_0x4e5a84(0x173),_0x1c409e[_0x4e5a84(0x186)]=_0x4e5a84(0x123),_0x1c409e[_0x4e5a84(0x209)]=_0x4e5a84(0x1f6),_0x1c409e[_0x4e5a84(0x1b3)]=_0x4e5a84(0x1e4),_0x1c409e[_0x4e5a84(0x1d7)]='presenting',_0x1c409e))(_0x28fff0||{});const _0x2f8354='SAME_OPERATION_SHARE_INTERVAL',_0x28ca22=0xc8;_0x4283c3[_0x4e5a84(0x1b1)]=class extends _0x457ba8[_0x4e5a84(0x1ec)]{constructor(_0x31e35d,_0xffacda,_0x4f9dd7,_0xcf8ae9,_0x5d78c9){var _0x5e02aa=_0x4e5a84;super(),_0xe37336(this,_0x5e02aa(0x18f),new _0x1caf80[(_0x5e02aa(0x160))](_0x5e02aa(0x123))),_0xe37336(this,_0x5e02aa(0x141),this[_0x5e02aa(0x18f)][_0x5e02aa(0x1eb)]()),_0xe37336(this,_0x5e02aa(0x179),!0x1),_0xe37336(this,_0x5e02aa(0x17b),null),_0xe37336(this,_0x5e02aa(0x1a8),null),(this['_unitID']=_0x31e35d,this[_0x5e02aa(0x1a0)]=_0xffacda,this['_configService']=_0x4f9dd7,this['_liveShareService']=_0xcf8ae9,this[_0x5e02aa(0x122)]=_0x5d78c9);}get['_status'](){var _0x5414fd=_0x4e5a84;return this[_0x5414fd(0x18f)][_0x5414fd(0x17e)]();}[_0x4e5a84(0x16f)](){var _0xe39d8a=_0x4e5a84,_0x1c9bae;(_0x1c9bae=this[_0xe39d8a(0x17b)])==null||_0x1c9bae[_0xe39d8a(0x16f)](),this['_status$'][_0xe39d8a(0x1f9)](_0xe39d8a(0x123)),this[_0xe39d8a(0x18f)][_0xe39d8a(0x20c)]();}[_0x4e5a84(0x18c)](){var _0xe24011=_0x4e5a84;this[_0xe24011(0x179)]||(this[_0xe24011(0x179)]=!0x0,this['_collabSession']['sessionStatus$'][_0xe24011(0x1b2)](_0x1c91c9[_0xe24011(0x192)](this[_0xe24011(0x13d)]))[_0xe24011(0x12b)](_0x26f093=>{var _0x1d158a=_0xe24011;switch(_0x26f093){case _0xa185a6[_0x1d158a(0x19d)][_0x1d158a(0x1ba)]:this[_0x1d158a(0x1dd)]();break;case _0xa185a6[_0x1d158a(0x19d)]['ONLINE']:this[_0x1d158a(0x204)]();break;}}),this['_collabSession'][_0xe24011(0x18b)][_0xe24011(0x1b2)](_0x1c91c9['takeUntil'](this[_0xe24011(0x13d)]))[_0xe24011(0x12b)](_0x51b548=>{var _0x17f042=_0xe24011;const {eventID:_0x38a224}=_0x51b548;switch(_0x38a224){case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x1bd)]:this[_0x17f042(0x202)](_0x51b548);break;case _0x14b659['CollaborationEvent'][_0x17f042(0x1d9)]:this[_0x17f042(0x1da)](_0x51b548);break;case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x1ff)]:this['_handleTerminate']();break;case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x198)]:this[_0x17f042(0x168)](_0x51b548);break;}}));}[_0x4e5a84(0x20f)](){var _0x15346d=_0x4e5a84;this[_0x15346d(0x1a0)][_0x15346d(0x1f2)]({'eventID':_0x14b659[_0x15346d(0x1db)][_0x15346d(0x1d2)],'data':{'unitID':this[_0x15346d(0x1b6)],'userID':this[_0x15346d(0x1a0)][_0x15346d(0x14f)]()}},this['_unitID']);}[_0x4e5a84(0x1aa)](){var _0x1c1a55=_0x4e5a84;this[_0x1c1a55(0x166)]===_0x1c1a55(0x187)&&(this[_0x1c1a55(0x18f)][_0x1c1a55(0x1f9)](_0x1c1a55(0x123)),this[_0x1c1a55(0x1a0)]['send']({'eventID':_0x14b659['CollaborationEvent'][_0x1c1a55(0x1ff)],'data':{'unitID':this[_0x1c1a55(0x1b6)]}},this[_0x1c1a55(0x1b6)]));}['startFollowing'](){var _0x19ebf9=_0x4e5a84;this[_0x19ebf9(0x166)]===_0x19ebf9(0x1e4)&&(this[_0x19ebf9(0x18f)]['next'](_0x19ebf9(0x1f6)),this[_0x19ebf9(0x211)]());}[_0x4e5a84(0x1fb)](){var _0x347bc3=_0x4e5a84;this[_0x347bc3(0x166)]===_0x347bc3(0x1f6)&&this[_0x347bc3(0x15a)]();}['_handleNewHost'](_0x5ca81d){var _0x234791=_0x4e5a84;const {presenter:_0x1c6ec6}=_0x5ca81d[_0x234791(0x1e7)],_0x2a1958=this['_collabSession'][_0x234791(0x14f)]();this[_0x234791(0x1a8)]=_0x1c6ec6,_0x1c6ec6===_0x2a1958?(this['_stopFollowing'](),this[_0x234791(0x19b)]()):this[_0x234791(0x166)]!==_0x234791(0x1e4)&&(this[_0x234791(0x1d1)](),this[_0x234791(0x211)]());}['_fetchOperations'](){var _0x113875=_0x4e5a84;const _0x417b20={'eventID':_0x14b659[_0x113875(0x1db)][_0x113875(0x208)]};this[_0x113875(0x1a0)][_0x113875(0x1f2)](_0x417b20,this['_unitID']);}[_0x4e5a84(0x184)](){var _0x35ce1d=_0x4e5a84;this[_0x35ce1d(0x1a8)]=null,this['_status']!==_0x35ce1d(0x187)&&this[_0x35ce1d(0x125)]();}['_handleNewChangeSets'](_0x4e01bb){var _0x2040a4=_0x4e5a84;if(this[_0x2040a4(0x166)]===_0x2040a4(0x1f6)&&this[_0x2040a4(0x1a8)]===_0x4e01bb[_0x2040a4(0x1e7)][_0x2040a4(0x1a7)]){const _0x5d9fc0=_0x14b659[_0x2040a4(0x144)](_0x4e01bb[_0x2040a4(0x1e7)])[_0x2040a4(0x15c)]['reverse']()['find'](_0x23995d=>_0x23995d['id']===_0x30d724[_0x2040a4(0x146)]['id']);if(_0x5d9fc0){const _0x2e5480=_0x5d9fc0[_0x2040a4(0x1f8)][_0x2040a4(0x1c7)],_0x3b58c5=_0x5d9fc0['params'][_0x2040a4(0x1cc)]['id'];setTimeout(()=>{var _0xb8956d=_0x2040a4;this[_0xb8956d(0x122)][_0xb8956d(0x1c4)](_0x30d724[_0xb8956d(0x13e)]['id'],{'unitId':_0x2e5480,'subUnitId':_0x3b58c5},{'fromCollab':!0x0});});}}}[_0x4e5a84(0x19b)](){var _0x4cfc68=_0x4e5a84;this[_0x4cfc68(0x18f)]['next']('presenting');const _0x187c08=new Map(),_0x45fe2b=this[_0x4cfc68(0x17b)]=new _0x457ba8[(_0x4cfc68(0x188))]();_0x45fe2b['add'](_0x457ba8[_0x4cfc68(0x1d6)](()=>{var _0x2c3f04=_0x4cfc68;_0x187c08[_0x2c3f04(0x165)](_0x2f0f20=>_0x2f0f20[_0x2c3f04(0x20c)]()),_0x187c08['clear']();})),_0x45fe2b['add'](this[_0x4cfc68(0x122)][_0x4cfc68(0x1b4)](_0x1f6aeb=>{var _0x2cd3f3=_0x4cfc68,_0x1d20a4;if(_0x1f6aeb[_0x2cd3f3(0x1d0)]!==_0x457ba8[_0x2cd3f3(0x196)]['OPERATION']||!this[_0x2cd3f3(0x172)][_0x2cd3f3(0x128)](_0x1f6aeb['id']))return;const {id:_0x3ff0a5}=_0x1f6aeb;let _0xca5860;_0x187c08[_0x2cd3f3(0x175)](_0x3ff0a5)?_0xca5860=_0x187c08['get'](_0x3ff0a5):(_0xca5860=new _0x1caf80['Subject'](),_0x187c08[_0x2cd3f3(0x124)](_0x3ff0a5,_0xca5860),_0xca5860['pipe'](_0x1c91c9[_0x2cd3f3(0x1fe)]((_0x1d20a4=this[_0x2cd3f3(0x1d5)][_0x2cd3f3(0x1a4)](_0x2f8354))!=null?_0x1d20a4:_0x28ca22,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2cd3f3(0x12b)](_0xe6d125=>{var _0x2bdd74=_0x2cd3f3;this['_collabSession'][_0x2bdd74(0x1f2)]({'eventID':_0x14b659[_0x2bdd74(0x1db)][_0x2bdd74(0x1d9)],'data':{'unitID':this[_0x2bdd74(0x1b6)],'operations':{[_0xe6d125['id']]:{'id':_0xe6d125['id'],'params':JSON[_0x2bdd74(0x1e8)](_0xe6d125[_0x2bdd74(0x1f8)])}}}},this[_0x2bdd74(0x1b6)]);})),_0xca5860['next'](_0x1f6aeb);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x3125fe=>this[_0x4cfc68(0x1a0)]['send']({'eventID':_0x14b659[_0x4cfc68(0x1db)][_0x4cfc68(0x1d9)],'data':{'unitID':this['_unitID'],'operations':{[_0x3125fe['id']]:{'id':_0x3125fe['id'],'params':JSON[_0x4cfc68(0x1e8)](_0x3125fe['params'])}}}},this[_0x4cfc68(0x1b6)]));}[_0x4e5a84(0x1d1)](){var _0x172102=_0x4e5a84,_0x39f1b1;this[_0x172102(0x18f)][_0x172102(0x1f9)](_0x172102(0x123)),(_0x39f1b1=this[_0x172102(0x17b)])==null||_0x39f1b1[_0x172102(0x16f)](),this[_0x172102(0x17b)]=null;}[_0x4e5a84(0x211)](){var _0x4c4d7c=_0x4e5a84,_0x54eab8;(_0x54eab8=this[_0x4c4d7c(0x17b)])==null||_0x54eab8[_0x4c4d7c(0x16f)](),this[_0x4c4d7c(0x18f)][_0x4c4d7c(0x1f9)]('following');}['_beIdle'](){var _0x481038=_0x4e5a84,_0x508f52;this['_status$'][_0x481038(0x1f9)](_0x481038(0x123)),(_0x508f52=this[_0x481038(0x17b)])==null||_0x508f52[_0x481038(0x16f)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x2bd92e=_0x4e5a84,_0x55c3ad;this[_0x2bd92e(0x18f)][_0x2bd92e(0x1f9)](_0x2bd92e(0x1e4)),(_0x55c3ad=this[_0x2bd92e(0x17b)])==null||_0x55c3ad['dispose']();}[_0x4e5a84(0x1da)](_0x53d2cd){var _0x381359=_0x4e5a84;if(['presenting','not-following',_0x381359(0x173)][_0x381359(0x1bb)](this['_status'])||!_0x53d2cd[_0x381359(0x1e7)]['presenter']||_0x53d2cd[_0x381359(0x1e7)][_0x381359(0x161)]===this[_0x381359(0x1a0)]['getMemberID']())return;this[_0x381359(0x166)]===_0x381359(0x123)&&this[_0x381359(0x211)]();const _0x37b6ab=_0x53d2cd[_0x381359(0x1e7)][_0x381359(0x152)];Object[_0x381359(0x18d)](_0x37b6ab)[_0x381359(0x165)](_0x2754d4=>{var _0x2bad93=_0x381359;this['_commandService'][_0x2bad93(0x1c4)](_0x2754d4['id'],_0x2754d4['params']?JSON['parse'](_0x2754d4[_0x2bad93(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x4e5a84(0x1dd)](){var _0x4863ec=_0x4e5a84,_0x1798c7;this[_0x4863ec(0x18f)][_0x4863ec(0x1f9)]('offline'),(_0x1798c7=this[_0x4863ec(0x17b)])==null||_0x1798c7[_0x4863ec(0x16f)]();}[_0x4e5a84(0x204)](){var _0x10fdf3=_0x4e5a84;this[_0x10fdf3(0x18f)][_0x10fdf3(0x1f9)](_0x10fdf3(0x123)),this['_fetchOperations']();}},_0x4283c3['LiveShareCoordinator']=_0x4275d4([_0x6feff1(0x2,_0x457ba8[_0x4e5a84(0x180)]),_0x6feff1(0x3,_0x457ba8[_0x4e5a84(0x13c)](_0xe7b1f9)),_0x6feff1(0x4,_0x457ba8[_0x4e5a84(0x1a5)])],_0x4283c3[_0x4e5a84(0x1b1)]);function _0x51dbb0(){var _0x53f328=_0x4e5a84;const _0x36ea7b=_0x4ed24c[_0x53f328(0x17a)](_0x4283c3[_0x53f328(0x1ed)]),_0x28135b=_0x4ed24c['useDependency'](_0x457ba8[_0x53f328(0x149)]),_0x3f8820=_0x4ed24c[_0x53f328(0x1cf)](()=>_0x28135b['getCurrentTypeOfUnit$'](_0x457ba8[_0x53f328(0x1e1)][_0x53f328(0x126)]),void 0x0,!0x1,[]),[_0x1e246f,_0xc4e962]=_0x646ae3['useState'](null),[_0x550ead,_0x2e5504]=_0x646ae3[_0x53f328(0x199)](_0x28fff0[_0x53f328(0x186)]),_0x2ba6e2=_0x646ae3[_0x53f328(0x14b)](null);return _0x646ae3[_0x53f328(0x1a6)](()=>(_0x3f8820&&_0x36ea7b[_0x53f328(0x1ac)](_0x3f8820[_0x53f328(0x1fa)]())[_0x53f328(0x13f)](_0x6ef5=>{var _0x5a5ba2=_0x53f328;_0xc4e962(_0x6ef5),_0x2ba6e2[_0x5a5ba2(0x1e3)]=_0x6ef5[_0x5a5ba2(0x141)][_0x5a5ba2(0x12b)](_0x713f85=>{_0x2e5504(_0x713f85);});}),()=>{var _0x17b258=_0x53f328,_0x4bf73c;(_0x4bf73c=_0x2ba6e2[_0x17b258(0x1e3)])==null||_0x4bf73c['unsubscribe'](),_0x2ba6e2[_0x17b258(0x1e3)]=null;}),[_0x3f8820,_0x36ea7b]),_0x1e246f?_0x266ae0[_0x53f328(0x194)](_0x4d8cc3[_0x53f328(0x171)],{'align':'end','disabled':_0x550ead===_0x28fff0[_0x53f328(0x1ba)],'className':_0x53f328(0x205),'overlay':_0x266ae0[_0x53f328(0x194)](_0xb681b0,{'status':_0x550ead,'coordinator':_0x1e246f}),'children':_0x266ae0['jsx'](_0x53f328(0x1af),{'className':_0x4d8cc3[_0x53f328(0x127)](_0x53f328(0x1cd),{'univer-cursor-not-allowed':_0x550ead===_0x28fff0['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550ead!==_0x28fff0[_0x53f328(0x1ba)]}),'type':_0x53f328(0x1af),'children':_0x266ae0[_0x53f328(0x194)](_0x3a4854,{'className':_0x53f328(0x19c)})})}):null;}function _0xb681b0(_0xcb37bb){var _0x5e9682=_0x4e5a84;const {status:_0x131329,coordinator:_0x4c1d96}=_0xcb37bb;switch(_0x131329){case _0x28fff0[_0x5e9682(0x186)]:return _0x266ae0['jsx'](_0x3e2404,{'coordinator':_0x4c1d96});case _0x28fff0[_0x5e9682(0x209)]:return _0x266ae0[_0x5e9682(0x194)](_0x1967e5,{'coordinator':_0x4c1d96});case _0x28fff0[_0x5e9682(0x1b3)]:return _0x266ae0[_0x5e9682(0x194)](_0x40a338,{'coordinator':_0x4c1d96});case _0x28fff0['OFFLINE']:return _0x266ae0['jsx'](_0x3a3ce2,{});case _0x28fff0[_0x5e9682(0x1d7)]:return _0x266ae0[_0x5e9682(0x194)](_0x340694,{'coordinator':_0x4c1d96});default:return null;}}function _0x3e2404(_0x293032){var _0x41f0cb=_0x4e5a84;const {coordinator:_0x55043c}=_0x293032;return _0x266ae0[_0x41f0cb(0x147)](_0x266ae0['Fragment'],{'children':[_0x266ae0[_0x41f0cb(0x194)](_0x41f0cb(0x182),{'className':_0x41f0cb(0x1ad),'children':_0x41f0cb(0x150)}),_0x266ae0[_0x41f0cb(0x194)](_0x4d8cc3[_0x41f0cb(0x1ab)],{'onClick':()=>_0x55043c[_0x41f0cb(0x20f)](),'children':_0x41f0cb(0x193)})]});}function _0x1967e5(_0x24b21a){var _0x52e33c=_0x4e5a84;const {coordinator:_0x100af1}=_0x24b21a;return _0x266ae0['jsxs'](_0x266ae0[_0x52e33c(0x183)],{'children':[_0x266ae0[_0x52e33c(0x194)](_0x52e33c(0x182),{'className':_0x52e33c(0x1ad),'children':_0x52e33c(0x12d)}),_0x266ae0[_0x52e33c(0x194)](_0x4d8cc3['Button'],{'onClick':()=>_0x100af1[_0x52e33c(0x1fb)](),'children':_0x52e33c(0x1be)})]});}function _0x40a338(_0x10f385){var _0x24505f=_0x4e5a84;const {coordinator:_0x16d46d}=_0x10f385;return _0x266ae0[_0x24505f(0x147)](_0x266ae0[_0x24505f(0x183)],{'children':[_0x266ae0[_0x24505f(0x194)](_0x24505f(0x182),{'className':_0x24505f(0x1ad),'children':_0x24505f(0x12f)}),_0x266ae0[_0x24505f(0x194)](_0x4d8cc3[_0x24505f(0x1ab)],{'variant':'text','onClick':()=>_0x16d46d[_0x24505f(0x121)](),'children':_0x24505f(0x14e)})]});}function _0x340694(_0x5d1cc8){var _0x4901f5=_0x4e5a84;const {coordinator:_0x4c3a31}=_0x5d1cc8;return _0x266ae0[_0x4901f5(0x147)](_0x266ae0[_0x4901f5(0x183)],{'children':[_0x266ae0[_0x4901f5(0x194)](_0x4901f5(0x182),{'className':_0x4901f5(0x1ad),'children':_0x4901f5(0x139)}),_0x266ae0['jsx'](_0x4d8cc3[_0x4901f5(0x1ab)],{'variant':_0x4901f5(0x1e9),'onClick':()=>_0x4c3a31[_0x4901f5(0x1aa)](),'children':'Stop\x20presenting'})]});}function _0x3a3ce2(){var _0x2fc94d=_0x4e5a84;return _0x266ae0['jsx'](_0x266ae0[_0x2fc94d(0x183)],{'children':'You\x27are\x20offline.'});}var _0x297e8b=Object['getOwnPropertyDescriptor'],_0x16bd84=(_0x58b78f,_0x228fe9,_0x599d52,_0x53b737)=>{for(var _0x149454=_0x53b737>0x1?void 0x0:_0x53b737?_0x297e8b(_0x228fe9,_0x599d52):_0x228fe9,_0x580ff8=_0x58b78f['length']-0x1,_0x1973e2;_0x580ff8>=0x0;_0x580ff8--)(_0x1973e2=_0x58b78f[_0x580ff8])&&(_0x149454=_0x1973e2(_0x149454)||_0x149454);return _0x149454;},_0x14ca9a=(_0x34be82,_0x1bf783)=>(_0xaafc2e,_0x145477)=>_0x1bf783(_0xaafc2e,_0x145477,_0x34be82);_0x4283c3[_0x4e5a84(0x1c1)]=class extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(_0x1ff2e8,_0x242cee){var _0x383049=_0x4e5a84;super(),this[_0x383049(0x155)]=_0x1ff2e8,this[_0x383049(0x137)]=_0x242cee,this[_0x383049(0x134)]();}[_0x4e5a84(0x134)](){var _0x8fa15=_0x4e5a84;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x4ed24c[_0x8fa15(0x214)][_0x8fa15(0x138)],()=>_0x4ed24c[_0x8fa15(0x200)](_0x51dbb0,this[_0x8fa15(0x155)])));}},_0x4283c3[_0x4e5a84(0x1c1)]=_0x16bd84([_0x14ca9a(0x0,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8[_0x4e5a84(0x1e2)])),_0x14ca9a(0x1,_0x4ed24c[_0x4e5a84(0x1c8)])],_0x4283c3[_0x4e5a84(0x1c1)]);var _0x19b546=Object[_0x4e5a84(0x16c)],_0x436e71=Object['getOwnPropertyDescriptor'],_0x2cd963=(_0x4666d9,_0x1feea2,_0x49fb1d)=>_0x1feea2 in _0x4666d9?_0x19b546(_0x4666d9,_0x1feea2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49fb1d}):_0x4666d9[_0x1feea2]=_0x49fb1d,_0x467b5b=(_0x27ce2e,_0x5942f4,_0x24d674,_0x10c0f6)=>{var _0x12e936=_0x4e5a84;for(var _0x117905=_0x10c0f6>0x1?void 0x0:_0x10c0f6?_0x436e71(_0x5942f4,_0x24d674):_0x5942f4,_0x577335=_0x27ce2e[_0x12e936(0x157)]-0x1,_0x1a550c;_0x577335>=0x0;_0x577335--)(_0x1a550c=_0x27ce2e[_0x577335])&&(_0x117905=_0x1a550c(_0x117905)||_0x117905);return _0x117905;},_0x1bf226=(_0x447b67,_0x17b8f7)=>(_0x462329,_0x543025)=>_0x17b8f7(_0x462329,_0x543025,_0x447b67),_0x24c2a6=(_0x326ef9,_0x5ec768,_0x275eff)=>_0x2cd963(_0x326ef9,typeof _0x5ec768!='symbol'?_0x5ec768+'':_0x5ec768,_0x275eff);const _0x4f10b6='UNIVER_LIVE_SHARE_PLUGIN';_0x4283c3[_0x4e5a84(0x151)]=class extends _0x457ba8['Plugin']{constructor(_0xbb2f82=_0x286e71,_0x554017,_0x22600a){var _0x27c7ef=_0x4e5a84;super(),this[_0x27c7ef(0x1ef)]=_0xbb2f82,this[_0x27c7ef(0x155)]=_0x554017,this[_0x27c7ef(0x1d5)]=_0x22600a;const {..._0x484441}=_0x457ba8[_0x27c7ef(0x1bf)]({},_0x286e71,this[_0x27c7ef(0x1ef)]);this[_0x27c7ef(0x1d5)][_0x27c7ef(0x1f4)](_0xe02570,_0x484441);}[_0x4e5a84(0x140)](){var _0x59df72=_0x4e5a84;_0x457ba8[_0x59df72(0x1ea)](this['_injector'],_0x457ba8['mergeOverrideWithDependencies']([[_0xe7b1f9],[_0x4283c3[_0x59df72(0x1ed)]],[_0x4783ce],[_0x4283c3[_0x59df72(0x1c1)]]],this[_0x59df72(0x1ef)][_0x59df72(0x189)])),_0x457ba8[_0x59df72(0x14a)](this[_0x59df72(0x155)],[[_0x4783ce]]);}[_0x4e5a84(0x201)](){var _0x1ef8bb=_0x4e5a84;_0x457ba8[_0x1ef8bb(0x14a)](this[_0x1ef8bb(0x155)],[[_0x4283c3['DesktopLiveShareController']]]);}},_0x24c2a6(_0x4283c3['UniverLiveSharePlugin'],_0x4e5a84(0x1d0),_0x457ba8[_0x4e5a84(0x1e1)]['UNIVER_UNKNOWN']),_0x24c2a6(_0x4283c3[_0x4e5a84(0x151)],'pluginName',_0x4f10b6),_0x4283c3[_0x4e5a84(0x151)]=_0x467b5b([_0x457ba8[_0x4e5a84(0x1fc)](_0xa185a6[_0x4e5a84(0x1bc)]),_0x1bf226(0x1,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8[_0x4e5a84(0x1e2)])),_0x1bf226(0x2,_0x457ba8[_0x4e5a84(0x180)])],_0x4283c3[_0x4e5a84(0x151)]),_0x4283c3[_0x4e5a84(0x1b9)]=_0x51dbb0,_0x4283c3[_0x4e5a84(0x13a)]=_0xe7b1f9,_0x4283c3[_0x4e5a84(0x133)]=_0x28fff0,Object[_0x4e5a84(0x16c)](_0x4283c3,Symbol[_0x4e5a84(0x13b)],{'value':_0x4e5a84(0x164)});}));function _0x16ae(){var _0x5ef3e2=['IConfigService','get','div','Fragment','_handleTerminate','_reporters','IDLE','presenting','DisposableCollection','override','requireSession','event$','init','values','defIds','_status$','registerSharedOperation','1em','takeUntil','Start','jsx','1165325cRxFJd','CommandType','CollaborationSessionService','NEW_CHANGESETS','useState','UniverCore','_startPresenting','univer-size-4','SessionStatus','_univerInstanceService','live-share.config','_collabSession','add','operators','@univerjs/design','getConfig','ICommandService','useEffect','memberID','_presenter','6533440AUemHH','stopPresenting','Button','getLiveShareCoordinator','univer-w-full\x20univer-mb-3\x20univer-text-sm','react/jsx-runtime','button','UniverSheetsUi','LiveShareCoordinator','pipe','NOT_FOLLOWING','onCommandExecuted','evenodd','_unitID','forwardRef','42UXrJHY','LiveShare','OFFLINE','includes','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','Stop\x20following','merge','rxjs','DesktopLiveShareController','colorChannel1','indexOf','executeCommand','concat','substring','unitId','IUIPartsService','univerjs-icon\x20univerjs-icon-','1532492kMNONp','getOwnPropertySymbols','sheet','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SetZoomRatioOperation','useObservable','type','_stopPresenting','LIVESHARE_REQUEST_HOST','children','react','_configService','toDisposable','PRESENTING','Disposable','LIVESHARE_OPERATION','_handleOperation','CollaborationEvent','icon','_handleOffline','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','createInstance','getTypeOfUnitDisposed$','UniverInstanceType','Injector','current','not-following','LiveShareIcon','from','data','stringify','default','registerDependencies','asObservable','RxDisposable','LiveShareController','React','_config','url(#$1','displayName','send','@univerjs/sheets','setConfig','@univerjs/core','following','@univerjs/sheets-ui','params','next','getUnitId','stopFollowing','DependentOn','getOwnPropertyDescriptor','throttleTime','LIVESHARE_TERMINATE','connectInjector','onRendered','_handleNewHost','mask','_handleOnline','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','toString','@univerjs/ui','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','_startLiveShareCoordinator','attrs','complete','2905mQlHdr','symbol','tryStartPresenting','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','_startFollowing','getTypeOfUnitAdded$','entries','BuiltInUIPart','startFollowing','_commandService','idle','set','_beIdle','UNIVER_SHEET','clsx','shouldShareOperation','51758EXMJba','25642BAICbI','subscribe','xlink:href','You\x27re\x20following\x20the\x20presenter','createElement','You\x27re\x20not\x20following\x20the\x20presenter','6JJmiTg','idSuffix','getInitialStates','LiveShareStatus','_mountLiveShare','prototype','393896WNxYfo','_uiPartsService','HEADER_MENU','You\x27re\x20presenting\x20the\x20document','LiveShareService','toStringTag','Inject','dispose$','SetWorksheetActiveOperation','then','onStarting','status$','_sharedOperations','function','parseProtocolChangeset','string','InsertSheetMutation','jsxs','call','IUniverInstanceService','touchDependencies','useRef','extend','none','Start\x20following','getMemberID','Present\x20this\x20document','UniverLiveSharePlugin','operations','defs','tag','_injector','0\x200\x2017\x2017','length','exports','assign','_stopFollowing','delete','mutations','_entities','className','hasOwnProperty','BehaviorSubject','presenter','trim','apply','Module','forEach','_status','live-share-icon','_handleNewChangeSets','replace','propertyIsEnumerable','18EdIXMl','defineProperty','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','dispose','registerInitialStateReporter','Dropdown','_liveShareService','offline','UniverUi','has','_collabSessionService','map','rxjs/operators','_init','useDependency','_commandDisposable','currentColor','path','getValue','fill'];_0x16ae=function(){return _0x5ef3e2;};return _0x16ae();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-nightly.202506061607",
3
+ "version": "0.8.0-nightly.202506081606",
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.0-nightly.202506061607",
51
- "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506061607",
52
- "@univerjs/design": "0.8.0-nightly.202506061607",
53
- "@univerjs/sheets": "0.8.0-nightly.202506061607",
54
- "@univerjs/core": "0.8.0-nightly.202506061607",
55
- "@univerjs/sheets-ui": "0.8.0-nightly.202506061607",
56
- "@univerjs/ui": "0.8.0-nightly.202506061607"
50
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202506081606",
51
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506081606",
52
+ "@univerjs/core": "0.8.0-nightly.202506081606",
53
+ "@univerjs/sheets": "0.8.0-nightly.202506081606",
54
+ "@univerjs/design": "0.8.0-nightly.202506081606",
55
+ "@univerjs/sheets-ui": "0.8.0-nightly.202506081606",
56
+ "@univerjs/ui": "0.8.0-nightly.202506081606"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.4",