@univerjs-pro/live-share 0.9.3 → 0.9.4-nightly.202507290713
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x506a38=_0x2724;(function(_0x208842,_0x1033d2){var _0x597dee=_0x2724,_0x45b526=_0x208842();while(!![]){try{var _0x1e4e7a=parseInt(_0x597dee(0x19e))/0x1+-parseInt(_0x597dee(0x1f9))/0x2*(parseInt(_0x597dee(0x221))/0x3)+-parseInt(_0x597dee(0x1f1))/0x4*(parseInt(_0x597dee(0x208))/0x5)+parseInt(_0x597dee(0x1ea))/0x6+parseInt(_0x597dee(0x1a1))/0x7*(-parseInt(_0x597dee(0x162))/0x8)+-parseInt(_0x597dee(0x190))/0x9*(-parseInt(_0x597dee(0x225))/0xa)+parseInt(_0x597dee(0x163))/0xb*(parseInt(_0x597dee(0x1ac))/0xc);if(_0x1e4e7a===_0x1033d2)break;else _0x45b526['push'](_0x45b526['shift']());}catch(_0x170802){_0x45b526['push'](_0x45b526['shift']());}}}(_0x14ab,0x71b40));var U=Object[_0x506a38(0x20a)],F=(_0x485d14,_0x3ec509,_0x3c5bb6)=>_0x3ec509 in _0x485d14?U(_0x485d14,_0x3ec509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c5bb6}):_0x485d14[_0x3ec509]=_0x3c5bb6,v=(_0x44dfbc,_0x2e4ef6,_0x2ddd95)=>F(_0x44dfbc,typeof _0x2e4ef6!='symbol'?_0x2e4ef6+'':_0x2e4ef6,_0x2ddd95);Object[_0x506a38(0x20a)](exports,Symbol[_0x506a38(0x196)],{'value':_0x506a38(0x1fc)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x506a38(0x188),x={};class O extends o[_0x506a38(0x16e)]{constructor(){var _0x48ae64=_0x506a38;super(...arguments),v(this,_0x48ae64(0x17d),new Set()),v(this,_0x48ae64(0x219),new Set());}[_0x506a38(0x1b3)](_0x5a3613){var _0x46480f=_0x506a38;return this[_0x46480f(0x17d)][_0x46480f(0x16c)](_0x5a3613),o['toDisposable'](()=>this[_0x46480f(0x17d)][_0x46480f(0x203)](_0x5a3613));}['registerInitialStateReporter'](_0x2b746a){var _0x32acb3=_0x506a38;return this[_0x32acb3(0x219)]['add'](_0x2b746a),o[_0x32acb3(0x235)](()=>this[_0x32acb3(0x219)]['delete'](_0x2b746a));}[_0x506a38(0x1da)](_0x4d309d){var _0x4ba2f5=_0x506a38;return this[_0x4ba2f5(0x17d)][_0x4ba2f5(0x17e)](_0x4d309d);}['getInitialStates'](_0x52202e){var _0x28a522=_0x506a38;return Array['from'](this[_0x28a522(0x219)])[_0x28a522(0x16b)](_0x323fdf=>_0x323fdf(_0x52202e));}}var H=Object[_0x506a38(0x1ef)],V=(_0x3be5ff,_0x59963f,_0x49787d,_0x5a011a)=>{var _0x1553d5=_0x506a38;for(var _0x2fcca1=_0x5a011a>0x1?void 0x0:_0x5a011a?H(_0x59963f,_0x49787d):_0x59963f,_0x4b4cab=_0x3be5ff[_0x1553d5(0x239)]-0x1,_0x5ccfd4;_0x4b4cab>=0x0;_0x4b4cab--)(_0x5ccfd4=_0x3be5ff[_0x4b4cab])&&(_0x2fcca1=_0x5ccfd4(_0x2fcca1)||_0x2fcca1);return _0x2fcca1;},k=(_0x36b0df,_0x4f397c)=>(_0x23d96c,_0x3a5559)=>_0x4f397c(_0x23d96c,_0x3a5559,_0x36b0df);let E=class extends o[_0x506a38(0x16e)]{constructor(_0x572785){var _0x45caa8=_0x506a38;super(),this[_0x45caa8(0x236)]=_0x572785,this[_0x45caa8(0x238)]();}['_init'](){var _0x33415d=_0x506a38;[w['SetZoomRatioOperation']['id'],w[_0x33415d(0x1ed)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x315805=>{var _0x4f7aa4=_0x33415d;this[_0x4f7aa4(0x1c1)](this[_0x4f7aa4(0x236)][_0x4f7aa4(0x1b3)](_0x315805));});}};E=V([k(0x0,o[_0x506a38(0x191)](O))],E);var u=function(){var _0x228507=_0x506a38;return u=Object[_0x228507(0x234)]||function(_0x2a68e2){var _0x2986da=_0x228507;for(var _0x3d58e9,_0x3b36bc=0x1,_0x3e4108=arguments[_0x2986da(0x239)];_0x3b36bc<_0x3e4108;_0x3b36bc++){_0x3d58e9=arguments[_0x3b36bc];for(var _0x406823 in _0x3d58e9)Object[_0x2986da(0x18d)]['hasOwnProperty'][_0x2986da(0x1cb)](_0x3d58e9,_0x406823)&&(_0x2a68e2[_0x406823]=_0x3d58e9[_0x406823]);}return _0x2a68e2;},u[_0x228507(0x1f8)](this,arguments);},M=function(_0x21f824,_0x2729a9){var _0x4960fd=_0x506a38,_0x1558c1={};for(var _0x10d115 in _0x21f824)Object['prototype'][_0x4960fd(0x1e2)][_0x4960fd(0x1cb)](_0x21f824,_0x10d115)&&_0x2729a9[_0x4960fd(0x1ee)](_0x10d115)<0x0&&(_0x1558c1[_0x10d115]=_0x21f824[_0x10d115]);if(_0x21f824!=null&&typeof Object[_0x4960fd(0x166)]==_0x4960fd(0x1df)){for(var _0xec592c=0x0,_0x10d115=Object[_0x4960fd(0x166)](_0x21f824);_0xec592c<_0x10d115['length'];_0xec592c++)_0x2729a9[_0x4960fd(0x1ee)](_0x10d115[_0xec592c])<0x0&&Object[_0x4960fd(0x18d)]['propertyIsEnumerable'][_0x4960fd(0x1cb)](_0x21f824,_0x10d115[_0xec592c])&&(_0x1558c1[_0x10d115[_0xec592c]]=_0x21f824[_0x10d115[_0xec592c]]);}return _0x1558c1;},j=f[_0x506a38(0x1f3)](function(_0x59c67b,_0x49bc15){var _0x52302e=_0x506a38,_0xba7625=_0x59c67b['icon'],_0x23b085=_0x59c67b['id'],_0xb29ba=_0x59c67b['className'],_0x4ea3d8=_0x59c67b[_0x52302e(0x176)],_0x1e83dc=M(_0x59c67b,['icon','id','className',_0x52302e(0x176)]),_0x1bfeae='univerjs-icon\x20univerjs-icon-'[_0x52302e(0x1c4)](_0x23b085,'\x20')['concat'](_0xb29ba||'')[_0x52302e(0x1a3)](),_0x3c9b6f=f['useRef']('_'['concat'](G()));return y(_0xba7625,''[_0x52302e(0x1c4)](_0x23b085),{'defIds':_0xba7625['defIds'],'idSuffix':_0x3c9b6f[_0x52302e(0x1d8)]},u({'ref':_0x49bc15,'className':_0x1bfeae},_0x1e83dc),_0x4ea3d8);});function y(_0x4462e3,_0x1d017a,_0x412ba3,_0x2829dc,_0x5644ba){var _0x3cda51=_0x506a38;return f[_0x3cda51(0x197)](_0x4462e3[_0x3cda51(0x1cf)],u(u({'key':_0x1d017a},q(_0x4462e3,_0x412ba3,_0x5644ba)),_0x2829dc),(W(_0x4462e3,_0x412ba3)['children']||[])['map'](function(_0x2a5c4c,_0x5be12f){var _0x203ac5=_0x3cda51;return y(_0x2a5c4c,''[_0x203ac5(0x1c4)](_0x1d017a,'-')[_0x203ac5(0x1c4)](_0x4462e3[_0x203ac5(0x1cf)],'-')[_0x203ac5(0x1c4)](_0x5be12f),_0x412ba3,void 0x0,_0x5644ba);}));}function q(_0x2c4332,_0x3d1254,_0x3ab09e){var _0x58ca65=_0x506a38,_0x1ddace=u({},_0x2c4332[_0x58ca65(0x202)]);_0x3ab09e!=null&&_0x3ab09e[_0x58ca65(0x232)]&&_0x1ddace[_0x58ca65(0x214)]===_0x58ca65(0x232)&&(_0x1ddace[_0x58ca65(0x214)]=_0x3ab09e['colorChannel1']),_0x2c4332['tag']===_0x58ca65(0x1ba)&&_0x1ddace['id']&&(_0x1ddace['id']=_0x1ddace['id']+_0x3d1254[_0x58ca65(0x1c5)]),Object[_0x58ca65(0x18b)](_0x1ddace)[_0x58ca65(0x201)](function(_0x513a0a){var _0x40efcc=_0x58ca65,_0x349d75=_0x513a0a[0x0],_0x4f035c=_0x513a0a[0x1];_0x349d75===_0x40efcc(0x1ba)&&typeof _0x4f035c==_0x40efcc(0x1d9)&&(_0x1ddace[_0x349d75]=_0x4f035c['replace'](/url\(#(.*)\)/,_0x40efcc(0x222)[_0x40efcc(0x1c4)](_0x3d1254['idSuffix'],')')));});var _0x56b89c=_0x3d1254['defIds'];return!_0x56b89c||_0x56b89c[_0x58ca65(0x239)]===0x0||(_0x2c4332[_0x58ca65(0x1cf)]===_0x58ca65(0x1bd)&&_0x1ddace['xlink:href']&&(_0x1ddace[_0x58ca65(0x1b6)]=_0x1ddace[_0x58ca65(0x1b6)]+_0x3d1254['idSuffix']),Object[_0x58ca65(0x18b)](_0x1ddace)[_0x58ca65(0x201)](function(_0x14a38a){var _0x155cce=_0x58ca65,_0x43aaf9=_0x14a38a[0x0],_0x19733a=_0x14a38a[0x1];typeof _0x19733a=='string'&&(_0x1ddace[_0x43aaf9]=_0x19733a[_0x155cce(0x182)](/url\(#(.*)\)/,'url(#$1'[_0x155cce(0x1c4)](_0x3d1254[_0x155cce(0x1c5)],')')));})),_0x1ddace;}function W(_0x5130a4,_0x132b60){var _0x45480e=_0x506a38,_0x437da0,_0x36b92c=_0x132b60[_0x45480e(0x1cc)];return!_0x36b92c||_0x36b92c['length']===0x0?_0x5130a4:_0x5130a4['tag']===_0x45480e(0x1d3)&&(!((_0x437da0=_0x5130a4['children'])===null||_0x437da0===void 0x0)&&_0x437da0['length'])?u(u({},_0x5130a4),{'children':_0x5130a4[_0x45480e(0x1ff)]['map'](function(_0x4af357){var _0x310fbd=_0x45480e;return typeof _0x4af357['attrs']['id']==_0x310fbd(0x1d9)&&_0x36b92c&&_0x36b92c[_0x310fbd(0x1f7)](_0x4af357[_0x310fbd(0x202)]['id'])?u(u({},_0x4af357),{'attrs':u(u({},_0x4af357[_0x310fbd(0x202)]),{'id':_0x4af357['attrs']['id']+_0x132b60[_0x310fbd(0x1c5)]})}):_0x4af357;})}):_0x5130a4;}function G(){var _0x12ca7b=_0x506a38;return Math[_0x12ca7b(0x230)]()[_0x12ca7b(0x1e1)](0x24)[_0x12ca7b(0x1d6)](0x2,0x8);}j[_0x506a38(0x220)]='UniverIcon';var B={'tag':_0x506a38(0x1e7),'attrs':{'xmlns':_0x506a38(0x212),'fill':_0x506a38(0x1c9),'viewBox':_0x506a38(0x226),'width':_0x506a38(0x17b),'height':_0x506a38(0x17b)},'children':[{'tag':'path','attrs':{'fill':_0x506a38(0x19b),'d':_0x506a38(0x1c6)}},{'tag':_0x506a38(0x170),'attrs':{'fill':_0x506a38(0x19b),'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':'evenodd','clipRule':'evenodd'}}]},P=f[_0x506a38(0x1f3)](function(_0x53f239,_0x4b6628){var _0x3af816=_0x506a38;return f['createElement'](j,Object[_0x3af816(0x234)]({},_0x53f239,{'id':_0x3af816(0x210),'ref':_0x4b6628,'icon':B}));});P['displayName']=_0x506a38(0x1fe);var Y=Object[_0x506a38(0x1ef)],R=(_0x4fc467,_0x12f6ff,_0x387077,_0x4e8e17)=>{var _0x9b091a=_0x506a38;for(var _0x12c690=_0x4e8e17>0x1?void 0x0:_0x4e8e17?Y(_0x12f6ff,_0x387077):_0x12f6ff,_0x4eee9d=_0x4fc467[_0x9b091a(0x239)]-0x1,_0x192415;_0x4eee9d>=0x0;_0x4eee9d--)(_0x192415=_0x4fc467[_0x4eee9d])&&(_0x12c690=_0x192415(_0x12c690)||_0x12c690);return _0x12c690;},S=(_0x8e132f,_0xa68868)=>(_0x7c83fd,_0x2f957a)=>_0xa68868(_0x7c83fd,_0x2f957a,_0x8e132f);exports[_0x506a38(0x1ce)]=class extends o['RxDisposable']{constructor(_0x3a3f83,_0x94a06f,_0xacb63e){var _0x55bc43=_0x506a38;super(),v(this,_0x55bc43(0x207),new Map()),(this[_0x55bc43(0x172)]=_0x3a3f83,this['_injector']=_0x94a06f,this[_0x55bc43(0x15f)]=_0xacb63e,this[_0x55bc43(0x238)]());}async[_0x506a38(0x18e)](_0x44a602){var _0x109ce6=_0x506a38;return this[_0x109ce6(0x207)][_0x109ce6(0x17e)](_0x44a602)||await this[_0x109ce6(0x180)](_0x44a602),this[_0x109ce6(0x207)][_0x109ce6(0x1a9)](_0x44a602);}[_0x506a38(0x238)](){var _0x4c70d3=_0x506a38;this['_univerInstanceService'][_0x4c70d3(0x1dc)](o[_0x4c70d3(0x206)][_0x4c70d3(0x1b5)])[_0x4c70d3(0x183)](b['takeUntil'](this['dispose$']))[_0x4c70d3(0x19d)](async _0x55cbcd=>{var _0x382c65=_0x4c70d3;const _0x89553d=_0x55cbcd[_0x382c65(0x20b)]();this[_0x382c65(0x207)]['has'](_0x89553d)||this[_0x382c65(0x180)](_0x89553d);}),this[_0x4c70d3(0x172)][_0x4c70d3(0x20c)](o['UniverInstanceType'][_0x4c70d3(0x1b5)])[_0x4c70d3(0x183)](b['takeUntil'](this[_0x4c70d3(0x1b7)]))[_0x4c70d3(0x19d)](_0x3f9adf=>{var _0x5e92a5=_0x4c70d3;const _0x3eae62=_0x3f9adf[_0x5e92a5(0x20b)](),_0xcff4b5=this[_0x5e92a5(0x207)][_0x5e92a5(0x1a9)](_0x3eae62);_0xcff4b5==null||_0xcff4b5['dispose']();});}async[_0x506a38(0x180)](_0x212e84){var _0x4d92e2=_0x506a38;const _0x2e5e62=await this['_collabSessionService']['requireSession'](_0x212e84),_0x264390=this[_0x4d92e2(0x16f)][_0x4d92e2(0x23c)](exports[_0x4d92e2(0x184)],_0x212e84,_0x2e5e62);return _0x264390['init'](),this[_0x4d92e2(0x207)]['set'](_0x212e84,_0x264390),_0x264390;}},exports[_0x506a38(0x1ce)]=R([S(0x0,o[_0x506a38(0x1e0)]),S(0x1,o[_0x506a38(0x191)](o[_0x506a38(0x195)])),S(0x2,o[_0x506a38(0x191)](m['CollaborationSessionService']))],exports[_0x506a38(0x1ce)]);var h=(_0x3d3f9f=>(_0x3d3f9f[_0x506a38(0x160)]=_0x506a38(0x1d2),_0x3d3f9f['IDLE']=_0x506a38(0x19a),_0x3d3f9f[_0x506a38(0x1fa)]=_0x506a38(0x21f),_0x3d3f9f[_0x506a38(0x1c2)]=_0x506a38(0x1de),_0x3d3f9f[_0x506a38(0x1dd)]=_0x506a38(0x18c),_0x3d3f9f))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x506a38(0x23a)]{constructor(_0x4dee7f,_0x3cf4ac,_0x58530a,_0x1387cb,_0x5b6a8a){var _0x10a095=_0x506a38;super(),v(this,'_status$',new D[(_0x10a095(0x1a4))](_0x10a095(0x19a))),v(this,_0x10a095(0x1f5),this[_0x10a095(0x167)][_0x10a095(0x1db)]()),v(this,_0x10a095(0x238),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x10a095(0x1ad)]=_0x4dee7f,this[_0x10a095(0x1bb)]=_0x3cf4ac,this['_configService']=_0x58530a,this['_liveShareService']=_0x1387cb,this[_0x10a095(0x227)]=_0x5b6a8a);}get[_0x506a38(0x21a)](){var _0x199c45=_0x506a38;return this['_status$'][_0x199c45(0x192)]();}[_0x506a38(0x1e4)](){var _0x1186df=_0x506a38,_0x94617;(_0x94617=this[_0x1186df(0x17f)])==null||_0x94617[_0x1186df(0x1e4)](),this[_0x1186df(0x167)]['next']('idle'),this['_status$']['complete']();}[_0x506a38(0x1ab)](){var _0xa44130=_0x506a38;this[_0xa44130(0x238)]||(this[_0xa44130(0x238)]=!0x0,this['_collabSession']['sessionStatus$'][_0xa44130(0x183)](b[_0xa44130(0x20d)](this[_0xa44130(0x1b7)]))[_0xa44130(0x19d)](_0x54d353=>{var _0x14853c=_0xa44130;switch(_0x54d353){case m[_0x14853c(0x20f)]['OFFLINE']:this['_handleOffline']();break;case m[_0x14853c(0x20f)][_0x14853c(0x1d0)]:this[_0x14853c(0x1d4)]();break;}}),this[_0xa44130(0x1bb)][_0xa44130(0x1d1)][_0xa44130(0x183)](b[_0xa44130(0x20d)](this[_0xa44130(0x1b7)]))['subscribe'](_0x4ccbd5=>{var _0xa3dc8e=_0xa44130;const {eventID:_0xa06b15}=_0x4ccbd5;switch(_0xa06b15){case _[_0xa3dc8e(0x179)][_0xa3dc8e(0x1e5)]:this['_handleNewHost'](_0x4ccbd5);break;case _['CollaborationEvent'][_0xa3dc8e(0x223)]:this[_0xa3dc8e(0x16d)](_0x4ccbd5);break;case _[_0xa3dc8e(0x179)][_0xa3dc8e(0x1c0)]:this[_0xa3dc8e(0x1a6)]();break;case _['CollaborationEvent'][_0xa3dc8e(0x204)]:this[_0xa3dc8e(0x18a)](_0x4ccbd5);break;}}));}[_0x506a38(0x1b9)](){var _0x7d56d4=_0x506a38;this[_0x7d56d4(0x1bb)][_0x7d56d4(0x20e)]({'eventID':_[_0x7d56d4(0x179)][_0x7d56d4(0x18f)],'data':{'unitID':this[_0x7d56d4(0x1ad)],'userID':this['_collabSession'][_0x7d56d4(0x189)]()}},this[_0x7d56d4(0x1ad)]);}['stopPresenting'](){var _0x91cf47=_0x506a38;this[_0x91cf47(0x21a)]===_0x91cf47(0x18c)&&(this[_0x91cf47(0x167)]['next'](_0x91cf47(0x19a)),this['_collabSession'][_0x91cf47(0x20e)]({'eventID':_[_0x91cf47(0x179)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x91cf47(0x1ad)]}},this['_unitID']));}[_0x506a38(0x218)](){var _0x40a1b6=_0x506a38;this[_0x40a1b6(0x21a)]===_0x40a1b6(0x1de)&&(this['_status$'][_0x40a1b6(0x205)](_0x40a1b6(0x21f)),this['_startFollowing']());}[_0x506a38(0x168)](){var _0x1af6b1=_0x506a38;this['_status']===_0x1af6b1(0x21f)&&this[_0x1af6b1(0x198)]();}['_handleNewHost'](_0x1a6b94){var _0x141868=_0x506a38;const {presenter:_0xb02339}=_0x1a6b94[_0x141868(0x1b4)],_0x29f8df=this[_0x141868(0x1bb)][_0x141868(0x189)]();this[_0x141868(0x224)]=_0xb02339,_0xb02339===_0x29f8df?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x141868(0x21a)]!==_0x141868(0x1de)&&(this[_0x141868(0x1a5)](),this[_0x141868(0x1a7)]());}[_0x506a38(0x22e)](){var _0x2e169a=_0x506a38;const _0x3e48bf={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e169a(0x1bb)][_0x2e169a(0x20e)](_0x3e48bf,this[_0x2e169a(0x1ad)]);}[_0x506a38(0x1a6)](){var _0x36d3fc=_0x506a38;this['_presenter']=null,this['_status']!==_0x36d3fc(0x18c)&&this[_0x36d3fc(0x229)]();}[_0x506a38(0x18a)](_0x3ce951){var _0x1651c7=_0x506a38;if(this[_0x1651c7(0x21a)]===_0x1651c7(0x21f)&&this[_0x1651c7(0x224)]===_0x3ce951[_0x1651c7(0x1b4)][_0x1651c7(0x1a2)]){const _0x2b45ca=_[_0x1651c7(0x22d)](_0x3ce951['data'])['mutations'][_0x1651c7(0x215)]()[_0x1651c7(0x1b0)](_0x3a4f3d=>_0x3a4f3d['id']===C[_0x1651c7(0x199)]['id']);if(_0x2b45ca){const _0x5ec17c=_0x2b45ca[_0x1651c7(0x22c)]['unitId'],_0x3cf8f4=_0x2b45ca[_0x1651c7(0x22c)][_0x1651c7(0x165)]['id'];setTimeout(()=>{var _0x5a11be=_0x1651c7;this['_commandService'][_0x5a11be(0x19f)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5ec17c,'subUnitId':_0x3cf8f4},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x419be0=_0x506a38;this[_0x419be0(0x167)]['next'](_0x419be0(0x18c));const _0x5ebf28=new Map(),_0x504aca=this[_0x419be0(0x17f)]=new o['DisposableCollection']();_0x504aca[_0x419be0(0x16c)](o[_0x419be0(0x235)](()=>{var _0x1075e7=_0x419be0;_0x5ebf28[_0x1075e7(0x201)](_0x4471ae=>_0x4471ae['complete']()),_0x5ebf28[_0x1075e7(0x21e)]();})),_0x504aca[_0x419be0(0x16c)](this[_0x419be0(0x227)]['onCommandExecuted'](_0x1ac87f=>{var _0x5b207b=_0x419be0,_0x12f379;if(_0x1ac87f['type']!==o[_0x5b207b(0x1a0)][_0x5b207b(0x228)]||!this[_0x5b207b(0x236)]['shouldShareOperation'](_0x1ac87f['id']))return;const {id:_0x4b48b8}=_0x1ac87f;let _0x13682c;_0x5ebf28[_0x5b207b(0x17e)](_0x4b48b8)?_0x13682c=_0x5ebf28[_0x5b207b(0x1a9)](_0x4b48b8):(_0x13682c=new D[(_0x5b207b(0x1e6))](),_0x5ebf28['set'](_0x4b48b8,_0x13682c),_0x13682c['pipe'](b[_0x5b207b(0x194)]((_0x12f379=this[_0x5b207b(0x1ae)][_0x5b207b(0x1f4)](Z))!=null?_0x12f379:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5b207b(0x19d)](_0xf1cfeb=>{var _0x5852e6=_0x5b207b;this[_0x5852e6(0x1bb)][_0x5852e6(0x20e)]({'eventID':_[_0x5852e6(0x179)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5852e6(0x1ad)],'operations':{[_0xf1cfeb['id']]:{'id':_0xf1cfeb['id'],'params':JSON['stringify'](_0xf1cfeb[_0x5852e6(0x22c)])}}}},this[_0x5852e6(0x1ad)]);})),_0x13682c[_0x5b207b(0x205)](_0x1ac87f);})),this[_0x419be0(0x236)][_0x419be0(0x233)](this[_0x419be0(0x1ad)])[_0x419be0(0x201)](_0x4e043e=>this[_0x419be0(0x1bb)]['send']({'eventID':_[_0x419be0(0x179)][_0x419be0(0x223)],'data':{'unitID':this[_0x419be0(0x1ad)],'operations':{[_0x4e043e['id']]:{'id':_0x4e043e['id'],'params':JSON['stringify'](_0x4e043e[_0x419be0(0x22c)])}}}},this[_0x419be0(0x1ad)]));}[_0x506a38(0x1a5)](){var _0x11d666=_0x506a38,_0x1664d1;this[_0x11d666(0x167)][_0x11d666(0x205)](_0x11d666(0x19a)),(_0x1664d1=this[_0x11d666(0x17f)])==null||_0x1664d1[_0x11d666(0x1e4)](),this[_0x11d666(0x17f)]=null;}[_0x506a38(0x1a7)](){var _0x39f551=_0x506a38,_0xa3d5cb;(_0xa3d5cb=this['_commandDisposable'])==null||_0xa3d5cb[_0x39f551(0x1e4)](),this[_0x39f551(0x167)]['next'](_0x39f551(0x21f));}[_0x506a38(0x229)](){var _0x18fcfe=_0x506a38,_0x5f3039;this['_status$'][_0x18fcfe(0x205)](_0x18fcfe(0x19a)),(_0x5f3039=this[_0x18fcfe(0x17f)])==null||_0x5f3039[_0x18fcfe(0x1e4)](),this[_0x18fcfe(0x17f)]=null;}[_0x506a38(0x198)](){var _0x1f272b=_0x506a38,_0xda9f5;this['_status$'][_0x1f272b(0x205)](_0x1f272b(0x1de)),(_0xda9f5=this[_0x1f272b(0x17f)])==null||_0xda9f5[_0x1f272b(0x1e4)]();}[_0x506a38(0x16d)](_0x5a560c){var _0x4f1556=_0x506a38;if([_0x4f1556(0x18c),_0x4f1556(0x1de),_0x4f1556(0x1d2)]['includes'](this['_status'])||!_0x5a560c['data']['presenter']||_0x5a560c[_0x4f1556(0x1b4)][_0x4f1556(0x1c3)]===this['_collabSession'][_0x4f1556(0x189)]())return;this[_0x4f1556(0x21a)]==='idle'&&this[_0x4f1556(0x1a7)]();const _0x4f21a2=_0x5a560c[_0x4f1556(0x1b4)][_0x4f1556(0x1fd)];Object[_0x4f1556(0x1d7)](_0x4f21a2)[_0x4f1556(0x201)](_0x48a9e4=>{var _0x1e1fd0=_0x4f1556;this[_0x1e1fd0(0x227)][_0x1e1fd0(0x19f)](_0x48a9e4['id'],_0x48a9e4[_0x1e1fd0(0x22c)]?JSON[_0x1e1fd0(0x1d5)](_0x48a9e4[_0x1e1fd0(0x22c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x13c609=_0x506a38,_0x446cc9;this['_status$']['next'](_0x13c609(0x1d2)),(_0x446cc9=this[_0x13c609(0x17f)])==null||_0x446cc9['dispose']();}[_0x506a38(0x1d4)](){var _0x311a30=_0x506a38;this['_status$'][_0x311a30(0x205)]('idle'),this[_0x311a30(0x22e)]();}},exports[_0x506a38(0x184)]=R([S(0x2,o[_0x506a38(0x1af)]),S(0x3,o[_0x506a38(0x191)](O)),S(0x4,o[_0x506a38(0x1a8)])],exports['LiveShareCoordinator']);function A(){var _0x89b8a8=_0x506a38;const _0x2a1e8c=p[_0x89b8a8(0x1cd)](exports[_0x89b8a8(0x1ce)]),_0x1015c5=p[_0x89b8a8(0x1cd)](o[_0x89b8a8(0x1e0)]),_0x55dbed=p[_0x89b8a8(0x173)](()=>_0x1015c5[_0x89b8a8(0x1f6)](o['UniverInstanceType'][_0x89b8a8(0x1b5)]),void 0x0,!0x1,[]),[_0x3d3ed9,_0x26e9e2]=f[_0x89b8a8(0x1f0)](null),[_0x2ad9da,_0x46d755]=f[_0x89b8a8(0x1f0)](h[_0x89b8a8(0x216)]),_0x1b5f89=f['useRef'](null);return f[_0x89b8a8(0x237)](()=>(_0x55dbed&&_0x2a1e8c['getLiveShareCoordinator'](_0x55dbed[_0x89b8a8(0x20b)]())[_0x89b8a8(0x164)](_0x4bfacb=>{var _0x2d531e=_0x89b8a8;_0x26e9e2(_0x4bfacb),_0x1b5f89[_0x2d531e(0x1d8)]=_0x4bfacb[_0x2d531e(0x1f5)][_0x2d531e(0x19d)](_0x16cfb2=>{_0x46d755(_0x16cfb2);});}),()=>{var _0x1fa17e=_0x89b8a8,_0x3d02b6;(_0x3d02b6=_0x1b5f89[_0x1fa17e(0x1d8)])==null||_0x3d02b6['unsubscribe'](),_0x1b5f89[_0x1fa17e(0x1d8)]=null;}),[_0x55dbed,_0x2a1e8c]),_0x3d3ed9?l['jsx'](g[_0x89b8a8(0x186)],{'align':_0x89b8a8(0x209),'disabled':_0x2ad9da===h[_0x89b8a8(0x160)],'className':_0x89b8a8(0x22b),'overlay':l['jsx'](K,{'status':_0x2ad9da,'coordinator':_0x3d3ed9}),'children':l[_0x89b8a8(0x1f2)]('button',{'className':g[_0x89b8a8(0x217)](_0x89b8a8(0x22a),{'univer-cursor-not-allowed':_0x2ad9da===h[_0x89b8a8(0x160)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2ad9da!==h[_0x89b8a8(0x160)]}),'type':_0x89b8a8(0x1aa),'children':l['jsx'](P,{'className':_0x89b8a8(0x1b2)})})}):null;}function K(_0x2e4441){var _0x5e4a85=_0x506a38;const {status:_0x19488f,coordinator:_0x29ee67}=_0x2e4441;switch(_0x19488f){case h[_0x5e4a85(0x216)]:return l[_0x5e4a85(0x1f2)](z,{'coordinator':_0x29ee67});case h[_0x5e4a85(0x1fa)]:return l[_0x5e4a85(0x1f2)](Q,{'coordinator':_0x29ee67});case h[_0x5e4a85(0x1c2)]:return l[_0x5e4a85(0x1f2)](X,{'coordinator':_0x29ee67});case h['OFFLINE']:return l[_0x5e4a85(0x1f2)](te,{});case h['PRESENTING']:return l[_0x5e4a85(0x1f2)](ee,{'coordinator':_0x29ee67});default:return null;}}function z(_0x1b7c77){var _0x31b40b=_0x506a38;const {coordinator:_0x12ba34}=_0x1b7c77;return l[_0x31b40b(0x187)](l[_0x31b40b(0x1ec)],{'children':[l[_0x31b40b(0x1f2)](_0x31b40b(0x1bf),{'className':_0x31b40b(0x1b8),'children':_0x31b40b(0x169)}),l[_0x31b40b(0x1f2)](g[_0x31b40b(0x1e9)],{'onClick':()=>_0x12ba34[_0x31b40b(0x1b9)](),'children':_0x31b40b(0x1c8)})]});}function _0x2724(_0x13b010,_0x4fd35d){var _0x14ab93=_0x14ab();return _0x2724=function(_0x2724b8,_0x406a47){_0x2724b8=_0x2724b8-0x15f;var _0xa31e16=_0x14ab93[_0x2724b8];return _0xa31e16;},_0x2724(_0x13b010,_0x4fd35d);}function Q(_0x5832bc){var _0xa39a39=_0x506a38;const {coordinator:_0x1b4a5a}=_0x5832bc;return l['jsxs'](l[_0xa39a39(0x1ec)],{'children':[l[_0xa39a39(0x1f2)](_0xa39a39(0x1bf),{'className':_0xa39a39(0x1b8),'children':_0xa39a39(0x17a)}),l[_0xa39a39(0x1f2)](g[_0xa39a39(0x1e9)],{'onClick':()=>_0x1b4a5a[_0xa39a39(0x168)](),'children':'Stop\x20following'})]});}function X(_0x409c7d){var _0x1d4e4a=_0x506a38;const {coordinator:_0x35358a}=_0x409c7d;return l[_0x1d4e4a(0x187)](l['Fragment'],{'children':[l[_0x1d4e4a(0x1f2)]('div',{'className':_0x1d4e4a(0x1b8),'children':_0x1d4e4a(0x231)}),l[_0x1d4e4a(0x1f2)](g[_0x1d4e4a(0x1e9)],{'variant':_0x1d4e4a(0x1ca),'onClick':()=>_0x35358a[_0x1d4e4a(0x218)](),'children':_0x1d4e4a(0x161)})]});}function ee(_0x4073ec){var _0x5b26ed=_0x506a38;const {coordinator:_0x2a46fb}=_0x4073ec;return l[_0x5b26ed(0x187)](l[_0x5b26ed(0x1ec)],{'children':[l[_0x5b26ed(0x1f2)](_0x5b26ed(0x1bf),{'className':_0x5b26ed(0x1b8),'children':_0x5b26ed(0x1e3)}),l[_0x5b26ed(0x1f2)](g[_0x5b26ed(0x1e9)],{'variant':'default','onClick':()=>_0x2a46fb[_0x5b26ed(0x19c)](),'children':_0x5b26ed(0x1e8)})]});}function te(){var _0x13c3fc=_0x506a38;return l[_0x13c3fc(0x1f2)](l[_0x13c3fc(0x1ec)],{'children':_0x13c3fc(0x1eb)});}var ie=Object[_0x506a38(0x1ef)],ne=(_0x20377d,_0x560cb7,_0x37641e,_0x441c85)=>{var _0x376571=_0x506a38;for(var _0x5d92cb=_0x441c85>0x1?void 0x0:_0x441c85?ie(_0x560cb7,_0x37641e):_0x560cb7,_0x25df9e=_0x20377d[_0x376571(0x239)]-0x1,_0x335a4f;_0x25df9e>=0x0;_0x25df9e--)(_0x335a4f=_0x20377d[_0x25df9e])&&(_0x5d92cb=_0x335a4f(_0x5d92cb)||_0x5d92cb);return _0x5d92cb;},L=(_0x3dc74f,_0x24fcad)=>(_0x4b0a02,_0x4d9fac)=>_0x24fcad(_0x4b0a02,_0x4d9fac,_0x3dc74f);exports[_0x506a38(0x200)]=class extends o['Disposable']{constructor(_0x5e890f,_0x410b5b){var _0x315322=_0x506a38;super(),this[_0x315322(0x16f)]=_0x5e890f,this['_uiPartsService']=_0x410b5b,this[_0x315322(0x23b)]();}[_0x506a38(0x23b)](){var _0x2e2368=_0x506a38;this['disposeWithMe'](this[_0x2e2368(0x21c)][_0x2e2368(0x1b1)](p[_0x2e2368(0x211)][_0x2e2368(0x21b)],()=>p['connectInjector'](A,this[_0x2e2368(0x16f)])));}},exports[_0x506a38(0x200)]=ne([L(0x0,o[_0x506a38(0x191)](o[_0x506a38(0x195)])),L(0x1,p[_0x506a38(0x181)])],exports['DesktopLiveShareController']);var re=Object[_0x506a38(0x20a)],se=Object[_0x506a38(0x1ef)],oe=(_0x3af9d6,_0x304f8a,_0x53aa58)=>_0x304f8a in _0x3af9d6?re(_0x3af9d6,_0x304f8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53aa58}):_0x3af9d6[_0x304f8a]=_0x53aa58,ae=(_0x2d585b,_0x1b4c65,_0x346248,_0x3e9e6c)=>{for(var _0x14428a=_0x3e9e6c>0x1?void 0x0:_0x3e9e6c?se(_0x1b4c65,_0x346248):_0x1b4c65,_0x2d5dd9=_0x2d585b['length']-0x1,_0x5a31fd;_0x2d5dd9>=0x0;_0x2d5dd9--)(_0x5a31fd=_0x2d585b[_0x2d5dd9])&&(_0x14428a=_0x5a31fd(_0x14428a)||_0x14428a);return _0x14428a;},N=(_0x2ff3a5,_0x33f71a)=>(_0x405ad4,_0x35993c)=>_0x33f71a(_0x405ad4,_0x35993c,_0x2ff3a5),T=(_0x3248c7,_0x45cbf0,_0x416abd)=>oe(_0x3248c7,typeof _0x45cbf0!='symbol'?_0x45cbf0+'':_0x45cbf0,_0x416abd);function _0x14ab(){var _0x2e9c77=['defs','_handleOnline','parse','substring','values','current','string','shouldShareOperation','asObservable','getTypeOfUnitAdded$','PRESENTING','not-following','function','IUniverInstanceService','toString','hasOwnProperty','You\x27re\x20presenting\x20the\x20document','dispose','LIVESHARE_NEW_HOST','Subject','svg','Stop\x20presenting','Button','1380372Gsmnxt','You\x27are\x20offline.','Fragment','SetScrollOperation','indexOf','getOwnPropertyDescriptor','useState','204wFlXUV','jsx','forwardRef','getConfig','status$','getCurrentTypeOfUnit$','includes','apply','162936bLaUJt','FOLLOWING','UniverCollaborationClientPlugin','Module','operations','LiveShareIcon','children','DesktopLiveShareController','forEach','attrs','delete','NEW_CHANGESETS','next','UniverInstanceType','_entities','63265eEJvHx','end','defineProperty','getUnitId','getTypeOfUnitDisposed$','takeUntil','send','SessionStatus','live-share-icon','BuiltInUIPart','http://www.w3.org/2000/svg','type','fill','reverse','IDLE','clsx','startFollowing','_reporters','_status','HEADER_MENU','_uiPartsService','LiveShareService','clear','following','displayName','21ixcPYy','url(#$1','LIVESHARE_OPERATION','_presenter','250ZwXeTX','0\x200\x2017\x2017','_commandService','OPERATION','_beIdle','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','params','parseProtocolChangeset','_fetchOperations','DependentOn','random','You\x27re\x20not\x20following\x20the\x20presenter','colorChannel1','getInitialStates','assign','toDisposable','_liveShareService','useEffect','_init','length','RxDisposable','_mountLiveShare','createInstance','_collabSessionService','OFFLINE','Start\x20following','45208ncDgra','759hsqZRp','then','sheet','getOwnPropertySymbols','_status$','stopFollowing','Present\x20this\x20document','pluginName','map','add','_handleOperation','Disposable','_injector','path','_config','_univerInstanceService','useObservable','UniverLiveSharePlugin','UNIVER_UNKNOWN','extend','mergeOverrideWithDependencies','merge','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','1em','LiveShare','_sharedOperations','has','_commandDisposable','_startLiveShareCoordinator','IUIPartsService','replace','pipe','LiveShareCoordinator','onRendered','Dropdown','jsxs','live-share.config','getMemberID','_handleNewChangeSets','entries','presenting','prototype','getLiveShareCoordinator','LIVESHARE_REQUEST_HOST','67824OIKjvG','Inject','getValue','onStarting','throttleTime','Injector','toStringTag','createElement','_stopFollowing','InsertSheetMutation','idle','currentColor','stopPresenting','subscribe','918108KyPLzI','executeCommand','CommandType','427tlNuaD','memberID','trim','BehaviorSubject','_stopPresenting','_handleTerminate','_startFollowing','ICommandService','get','button','init','119904yfqHWe','_unitID','_configService','IConfigService','find','registerComponent','univer-size-4','registerSharedOperation','data','UNIVER_SHEET','xlink:href','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','tryStartPresenting','mask','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','use','Plugin','div','LIVESHARE_TERMINATE','disposeWithMe','NOT_FOLLOWING','presenter','concat','idSuffix','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','setConfig','Start','none','text','call','defIds','useDependency','LiveShareController','tag','ONLINE','event$','offline'];_0x14ab=function(){return _0x2e9c77;};return _0x14ab();}const le=_0x506a38(0x1bc);exports[_0x506a38(0x174)]=class extends o[_0x506a38(0x1be)]{constructor(_0x1c5f85=x,_0x3df559,_0xda9bb1){var _0x46194e=_0x506a38;super(),this[_0x46194e(0x171)]=_0x1c5f85,this[_0x46194e(0x16f)]=_0x3df559,this[_0x46194e(0x1ae)]=_0xda9bb1;const {..._0x2bcd53}=o[_0x46194e(0x178)]({},x,this[_0x46194e(0x171)]);this[_0x46194e(0x1ae)][_0x46194e(0x1c7)]($,_0x2bcd53);}[_0x506a38(0x193)](){var _0x49f9cf=_0x506a38;o['registerDependencies'](this['_injector'],o[_0x49f9cf(0x177)]([[O],[exports['LiveShareController']],[E],[exports[_0x49f9cf(0x200)]]],this[_0x49f9cf(0x171)]['override'])),o['touchDependencies'](this[_0x49f9cf(0x16f)],[[E]]);}[_0x506a38(0x185)](){var _0x384c69=_0x506a38;o['touchDependencies'](this[_0x384c69(0x16f)],[[exports[_0x384c69(0x200)]]]);}},T(exports[_0x506a38(0x174)],_0x506a38(0x213),o[_0x506a38(0x206)][_0x506a38(0x175)]),T(exports[_0x506a38(0x174)],_0x506a38(0x16a),le),exports[_0x506a38(0x174)]=ae([o[_0x506a38(0x22f)](m[_0x506a38(0x1fb)]),N(0x1,o[_0x506a38(0x191)](o[_0x506a38(0x195)])),N(0x2,o['IConfigService'])],exports[_0x506a38(0x174)]),exports[_0x506a38(0x17c)]=A,exports[_0x506a38(0x21d)]=O,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';var _0x51f54d=_0xfd87;(function(_0x1b9b35,_0x5c0e3d){var _0x4fbc0d=_0xfd87,_0x40363f=_0x1b9b35();while(!![]){try{var _0x9146c1=parseInt(_0x4fbc0d(0x201))/0x1+parseInt(_0x4fbc0d(0x1ad))/0x2+parseInt(_0x4fbc0d(0x1a7))/0x3+-parseInt(_0x4fbc0d(0x1f5))/0x4*(parseInt(_0x4fbc0d(0x250))/0x5)+-parseInt(_0x4fbc0d(0x1b3))/0x6*(parseInt(_0x4fbc0d(0x230))/0x7)+parseInt(_0x4fbc0d(0x26d))/0x8*(parseInt(_0x4fbc0d(0x1a2))/0x9)+-parseInt(_0x4fbc0d(0x272))/0xa;if(_0x9146c1===_0x5c0e3d)break;else _0x40363f['push'](_0x40363f['shift']());}catch(_0x5093d9){_0x40363f['push'](_0x40363f['shift']());}}}(_0x594e,0xb571d));var U=Object[_0x51f54d(0x240)],F=(_0x1eceaa,_0x2e64f1,_0x425620)=>_0x2e64f1 in _0x1eceaa?U(_0x1eceaa,_0x2e64f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425620}):_0x1eceaa[_0x2e64f1]=_0x425620,v=(_0x446ce2,_0x1a4584,_0x2a9e1b)=>F(_0x446ce2,typeof _0x1a4584!=_0x51f54d(0x25f)?_0x1a4584+'':_0x1a4584,_0x2a9e1b);Object[_0x51f54d(0x240)](exports,Symbol['toStringTag'],{'value':_0x51f54d(0x1f2)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x51f54d(0x253),x={};class O extends o[_0x51f54d(0x206)]{constructor(){var _0x33c496=_0x51f54d;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x33c496(0x256),new Set());}[_0x51f54d(0x25d)](_0x47d85f){var _0x18bd3a=_0x51f54d;return this[_0x18bd3a(0x1f8)][_0x18bd3a(0x247)](_0x47d85f),o[_0x18bd3a(0x1f6)](()=>this[_0x18bd3a(0x1f8)][_0x18bd3a(0x26f)](_0x47d85f));}[_0x51f54d(0x1cf)](_0x3375ea){var _0x449c85=_0x51f54d;return this['_reporters']['add'](_0x3375ea),o[_0x449c85(0x1f6)](()=>this[_0x449c85(0x256)][_0x449c85(0x26f)](_0x3375ea));}[_0x51f54d(0x20a)](_0x5d7389){var _0x154afa=_0x51f54d;return this[_0x154afa(0x1f8)][_0x154afa(0x237)](_0x5d7389);}['getInitialStates'](_0x175a4c){var _0x4a2cc0=_0x51f54d;return Array[_0x4a2cc0(0x1c7)](this[_0x4a2cc0(0x256)])[_0x4a2cc0(0x21c)](_0x13fff5=>_0x13fff5(_0x175a4c));}}var H=Object[_0x51f54d(0x1b1)],V=(_0x3fe2b8,_0x174c5b,_0x33a2dd,_0x4f645b)=>{var _0x1ea138=_0x51f54d;for(var _0x5ec556=_0x4f645b>0x1?void 0x0:_0x4f645b?H(_0x174c5b,_0x33a2dd):_0x174c5b,_0x34d1f9=_0x3fe2b8[_0x1ea138(0x19f)]-0x1,_0x4775d7;_0x34d1f9>=0x0;_0x34d1f9--)(_0x4775d7=_0x3fe2b8[_0x34d1f9])&&(_0x5ec556=_0x4775d7(_0x5ec556)||_0x5ec556);return _0x5ec556;},k=(_0x52320e,_0x5871f5)=>(_0x1bf455,_0x45b43c)=>_0x5871f5(_0x1bf455,_0x45b43c,_0x52320e);function _0xfd87(_0x109949,_0x427fe8){var _0x594eac=_0x594e();return _0xfd87=function(_0xfd877e,_0x2c4c4a){_0xfd877e=_0xfd877e-0x19d;var _0x5ea03e=_0x594eac[_0xfd877e];return _0x5ea03e;},_0xfd87(_0x109949,_0x427fe8);}let E=class extends o['Disposable']{constructor(_0x3fe28c){var _0xc1bb5=_0x51f54d;super(),this['_liveShareService']=_0x3fe28c,this[_0xc1bb5(0x1bd)]();}[_0x51f54d(0x1bd)](){var _0x556688=_0x51f54d;[w['SetZoomRatioOperation']['id'],w[_0x556688(0x241)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x2f02e5=>{var _0x31e0b5=_0x556688;this[_0x31e0b5(0x1db)](this[_0x31e0b5(0x1eb)][_0x31e0b5(0x25d)](_0x2f02e5));});}};E=V([k(0x0,o[_0x51f54d(0x21b)](O))],E);var u=function(){var _0x10da66=_0x51f54d;return u=Object[_0x10da66(0x1a0)]||function(_0x1744e7){var _0x19821e=_0x10da66;for(var _0x42c166,_0x51bc51=0x1,_0x4333d6=arguments[_0x19821e(0x19f)];_0x51bc51<_0x4333d6;_0x51bc51++){_0x42c166=arguments[_0x51bc51];for(var _0x5114f1 in _0x42c166)Object[_0x19821e(0x1ac)][_0x19821e(0x1e6)][_0x19821e(0x1a5)](_0x42c166,_0x5114f1)&&(_0x1744e7[_0x5114f1]=_0x42c166[_0x5114f1]);}return _0x1744e7;},u[_0x10da66(0x248)](this,arguments);},M=function(_0x165602,_0x592ba5){var _0x43aef0=_0x51f54d,_0x45cda6={};for(var _0x37dd8f in _0x165602)Object[_0x43aef0(0x1ac)][_0x43aef0(0x1e6)]['call'](_0x165602,_0x37dd8f)&&_0x592ba5['indexOf'](_0x37dd8f)<0x0&&(_0x45cda6[_0x37dd8f]=_0x165602[_0x37dd8f]);if(_0x165602!=null&&typeof Object[_0x43aef0(0x1e2)]==_0x43aef0(0x21e)){for(var _0xa6e5f9=0x0,_0x37dd8f=Object[_0x43aef0(0x1e2)](_0x165602);_0xa6e5f9<_0x37dd8f[_0x43aef0(0x19f)];_0xa6e5f9++)_0x592ba5['indexOf'](_0x37dd8f[_0xa6e5f9])<0x0&&Object['prototype'][_0x43aef0(0x21a)][_0x43aef0(0x1a5)](_0x165602,_0x37dd8f[_0xa6e5f9])&&(_0x45cda6[_0x37dd8f[_0xa6e5f9]]=_0x165602[_0x37dd8f[_0xa6e5f9]]);}return _0x45cda6;},j=f[_0x51f54d(0x23f)](function(_0x1c870e,_0x4d302c){var _0x30e82e=_0x51f54d,_0x11c168=_0x1c870e['icon'],_0x2db42a=_0x1c870e['id'],_0x16dca5=_0x1c870e[_0x30e82e(0x202)],_0x3dee39=_0x1c870e[_0x30e82e(0x239)],_0x437677=M(_0x1c870e,[_0x30e82e(0x270),'id','className','extend']),_0x32326d=_0x30e82e(0x1dd)['concat'](_0x2db42a,'\x20')[_0x30e82e(0x27a)](_0x16dca5||'')['trim'](),_0x305c1d=f['useRef']('_'['concat'](G()));return y(_0x11c168,''[_0x30e82e(0x27a)](_0x2db42a),{'defIds':_0x11c168[_0x30e82e(0x22f)],'idSuffix':_0x305c1d[_0x30e82e(0x233)]},u({'ref':_0x4d302c,'className':_0x32326d},_0x437677),_0x3dee39);});function y(_0x4ea89c,_0x4500f8,_0x193692,_0xb53df4,_0x32ac07){var _0x240a58=_0x51f54d;return f[_0x240a58(0x267)](_0x4ea89c['tag'],u(u({'key':_0x4500f8},q(_0x4ea89c,_0x193692,_0x32ac07)),_0xb53df4),(W(_0x4ea89c,_0x193692)[_0x240a58(0x24f)]||[])[_0x240a58(0x21c)](function(_0xb6863e,_0x5ac181){var _0x1b4395=_0x240a58;return y(_0xb6863e,''[_0x1b4395(0x27a)](_0x4500f8,'-')[_0x1b4395(0x27a)](_0x4ea89c['tag'],'-')['concat'](_0x5ac181),_0x193692,void 0x0,_0x32ac07);}));}function q(_0x2df358,_0x160b26,_0x6689fe){var _0x27506c=_0x51f54d,_0x295bea=u({},_0x2df358[_0x27506c(0x1be)]);_0x6689fe!=null&&_0x6689fe[_0x27506c(0x226)]&&_0x295bea[_0x27506c(0x27e)]===_0x27506c(0x226)&&(_0x295bea[_0x27506c(0x27e)]=_0x6689fe[_0x27506c(0x226)]),_0x2df358[_0x27506c(0x214)]==='mask'&&_0x295bea['id']&&(_0x295bea['id']=_0x295bea['id']+_0x160b26[_0x27506c(0x1f9)]),Object[_0x27506c(0x231)](_0x295bea)[_0x27506c(0x26b)](function(_0x5dc2ce){var _0x4338d6=_0x27506c,_0x40540b=_0x5dc2ce[0x0],_0xd483a2=_0x5dc2ce[0x1];_0x40540b===_0x4338d6(0x221)&&typeof _0xd483a2=='string'&&(_0x295bea[_0x40540b]=_0xd483a2[_0x4338d6(0x232)](/url\(#(.*)\)/,_0x4338d6(0x219)['concat'](_0x160b26[_0x4338d6(0x1f9)],')')));});var _0x3bcb1c=_0x160b26['defIds'];return!_0x3bcb1c||_0x3bcb1c[_0x27506c(0x19f)]===0x0||(_0x2df358[_0x27506c(0x214)]===_0x27506c(0x200)&&_0x295bea[_0x27506c(0x1d4)]&&(_0x295bea[_0x27506c(0x1d4)]=_0x295bea[_0x27506c(0x1d4)]+_0x160b26[_0x27506c(0x1f9)]),Object['entries'](_0x295bea)[_0x27506c(0x26b)](function(_0x4154d9){var _0xc0892e=_0x27506c,_0xca89ca=_0x4154d9[0x0],_0x3455ab=_0x4154d9[0x1];typeof _0x3455ab==_0xc0892e(0x236)&&(_0x295bea[_0xca89ca]=_0x3455ab['replace'](/url\(#(.*)\)/,_0xc0892e(0x219)[_0xc0892e(0x27a)](_0x160b26[_0xc0892e(0x1f9)],')')));})),_0x295bea;}function W(_0x2f56e7,_0x5ac71f){var _0x403ea5=_0x51f54d,_0x48b4a1,_0x20257e=_0x5ac71f[_0x403ea5(0x22f)];return!_0x20257e||_0x20257e[_0x403ea5(0x19f)]===0x0?_0x2f56e7:_0x2f56e7[_0x403ea5(0x214)]===_0x403ea5(0x20e)&&(!((_0x48b4a1=_0x2f56e7[_0x403ea5(0x24f)])===null||_0x48b4a1===void 0x0)&&_0x48b4a1['length'])?u(u({},_0x2f56e7),{'children':_0x2f56e7[_0x403ea5(0x24f)][_0x403ea5(0x21c)](function(_0x4adb2f){var _0x511fc9=_0x403ea5;return typeof _0x4adb2f[_0x511fc9(0x1be)]['id']==_0x511fc9(0x236)&&_0x20257e&&_0x20257e[_0x511fc9(0x1c4)](_0x4adb2f[_0x511fc9(0x1be)]['id'])?u(u({},_0x4adb2f),{'attrs':u(u({},_0x4adb2f['attrs']),{'id':_0x4adb2f['attrs']['id']+_0x5ac71f[_0x511fc9(0x1f9)]})}):_0x4adb2f;})}):_0x2f56e7;}function G(){var _0x4c72ff=_0x51f54d;return Math[_0x4c72ff(0x1f3)]()[_0x4c72ff(0x1e7)](0x24)['substring'](0x2,0x8);}j[_0x51f54d(0x217)]=_0x51f54d(0x21f);var B={'tag':_0x51f54d(0x213),'attrs':{'xmlns':_0x51f54d(0x1ef),'fill':_0x51f54d(0x24b),'viewBox':_0x51f54d(0x1d2),'width':_0x51f54d(0x26a),'height':_0x51f54d(0x26a)},'children':[{'tag':_0x51f54d(0x1ec),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x51f54d(0x1ec),'attrs':{'fill':_0x51f54d(0x1b4),'d':_0x51f54d(0x249),'fillRule':_0x51f54d(0x218),'clipRule':'evenodd'}}]},P=f[_0x51f54d(0x23f)](function(_0x25e111,_0x56e1e4){var _0x3fa95b=_0x51f54d;return f[_0x3fa95b(0x267)](j,Object['assign']({},_0x25e111,{'id':'live-share-icon','ref':_0x56e1e4,'icon':B}));});P[_0x51f54d(0x217)]=_0x51f54d(0x24e);var Y=Object['getOwnPropertyDescriptor'],R=(_0x26d726,_0x201c85,_0x2f7815,_0x5d0792)=>{var _0x3b2505=_0x51f54d;for(var _0x81058c=_0x5d0792>0x1?void 0x0:_0x5d0792?Y(_0x201c85,_0x2f7815):_0x201c85,_0x1fe3c1=_0x26d726[_0x3b2505(0x19f)]-0x1,_0x417783;_0x1fe3c1>=0x0;_0x1fe3c1--)(_0x417783=_0x26d726[_0x1fe3c1])&&(_0x81058c=_0x417783(_0x81058c)||_0x81058c);return _0x81058c;},S=(_0x58d22c,_0x2d3937)=>(_0x26390d,_0x2c214f)=>_0x2d3937(_0x26390d,_0x2c214f,_0x58d22c);exports['LiveShareController']=class extends o[_0x51f54d(0x1a8)]{constructor(_0x20fe92,_0x5cb1a9,_0x3e2b50){var _0x232db0=_0x51f54d;super(),v(this,_0x232db0(0x234),new Map()),(this[_0x232db0(0x25c)]=_0x20fe92,this['_injector']=_0x5cb1a9,this[_0x232db0(0x276)]=_0x3e2b50,this['_init']());}async[_0x51f54d(0x246)](_0x6da8a6){var _0x3a59aa=_0x51f54d;return this[_0x3a59aa(0x234)][_0x3a59aa(0x237)](_0x6da8a6)||await this[_0x3a59aa(0x1d3)](_0x6da8a6),this['_entities'][_0x3a59aa(0x224)](_0x6da8a6);}[_0x51f54d(0x1bd)](){var _0xbc7f18=_0x51f54d;this[_0xbc7f18(0x25c)]['getTypeOfUnitAdded$'](o[_0xbc7f18(0x215)][_0xbc7f18(0x1af)])[_0xbc7f18(0x279)](b[_0xbc7f18(0x22a)](this[_0xbc7f18(0x271)]))['subscribe'](async _0x49a755=>{var _0x52ca2f=_0xbc7f18;const _0x12db29=_0x49a755[_0x52ca2f(0x1dc)]();this[_0x52ca2f(0x234)][_0x52ca2f(0x237)](_0x12db29)||this[_0x52ca2f(0x1d3)](_0x12db29);}),this['_univerInstanceService'][_0xbc7f18(0x220)](o[_0xbc7f18(0x215)][_0xbc7f18(0x1af)])['pipe'](b[_0xbc7f18(0x22a)](this[_0xbc7f18(0x271)]))['subscribe'](_0x2415ea=>{var _0x56ee9e=_0xbc7f18;const _0x186edb=_0x2415ea[_0x56ee9e(0x1dc)](),_0x2e0188=this[_0x56ee9e(0x234)][_0x56ee9e(0x224)](_0x186edb);_0x2e0188==null||_0x2e0188[_0x56ee9e(0x23a)]();});}async[_0x51f54d(0x1d3)](_0x48cef1){var _0x443b38=_0x51f54d;const _0x3824a9=await this[_0x443b38(0x276)][_0x443b38(0x1ae)](_0x48cef1),_0x356dbe=this[_0x443b38(0x278)]['createInstance'](exports[_0x443b38(0x245)],_0x48cef1,_0x3824a9);return _0x356dbe[_0x443b38(0x1f0)](),this[_0x443b38(0x234)][_0x443b38(0x1e9)](_0x48cef1,_0x356dbe),_0x356dbe;}},exports['LiveShareController']=R([S(0x0,o[_0x51f54d(0x216)]),S(0x1,o[_0x51f54d(0x21b)](o[_0x51f54d(0x24d)])),S(0x2,o[_0x51f54d(0x21b)](m[_0x51f54d(0x225)]))],exports[_0x51f54d(0x1aa)]);var h=(_0x2e57cf=>(_0x2e57cf['OFFLINE']=_0x51f54d(0x1fe),_0x2e57cf[_0x51f54d(0x238)]='idle',_0x2e57cf[_0x51f54d(0x263)]=_0x51f54d(0x1a1),_0x2e57cf[_0x51f54d(0x1d9)]=_0x51f54d(0x1bc),_0x2e57cf[_0x51f54d(0x27b)]=_0x51f54d(0x1f1),_0x2e57cf))(h||{});const Z=_0x51f54d(0x1ca),J=0xc8;exports[_0x51f54d(0x245)]=class extends o[_0x51f54d(0x1a8)]{constructor(_0x397847,_0x1e8d83,_0x17ba24,_0x44426f,_0x4e7224){var _0x470c54=_0x51f54d;super(),v(this,'_status$',new D[(_0x470c54(0x1ba))](_0x470c54(0x1cb))),v(this,_0x470c54(0x1d0),this['_status$'][_0x470c54(0x1d5)]()),v(this,_0x470c54(0x1bd),!0x1),v(this,_0x470c54(0x1fd),null),v(this,_0x470c54(0x1ed),null),(this['_unitID']=_0x397847,this[_0x470c54(0x1d8)]=_0x1e8d83,this[_0x470c54(0x205)]=_0x17ba24,this[_0x470c54(0x1eb)]=_0x44426f,this[_0x470c54(0x22d)]=_0x4e7224);}get[_0x51f54d(0x1b9)](){var _0x2c0724=_0x51f54d;return this['_status$'][_0x2c0724(0x1f7)]();}['dispose'](){var _0xc19a11=_0x51f54d,_0xea7015;(_0xea7015=this[_0xc19a11(0x1fd)])==null||_0xea7015[_0xc19a11(0x23a)](),this['_status$'][_0xc19a11(0x1c1)]('idle'),this['_status$'][_0xc19a11(0x1c6)]();}[_0x51f54d(0x1f0)](){var _0x56b9ab=_0x51f54d;this[_0x56b9ab(0x1bd)]||(this[_0x56b9ab(0x1bd)]=!0x0,this[_0x56b9ab(0x1d8)]['sessionStatus$']['pipe'](b[_0x56b9ab(0x22a)](this[_0x56b9ab(0x271)]))[_0x56b9ab(0x266)](_0x2d0dee=>{var _0xb1fbed=_0x56b9ab;switch(_0x2d0dee){case m[_0xb1fbed(0x1b6)][_0xb1fbed(0x1c8)]:this[_0xb1fbed(0x252)]();break;case m['SessionStatus']['ONLINE']:this[_0xb1fbed(0x254)]();break;}}),this[_0x56b9ab(0x1d8)][_0x56b9ab(0x222)][_0x56b9ab(0x279)](b[_0x56b9ab(0x22a)](this[_0x56b9ab(0x271)]))[_0x56b9ab(0x266)](_0x3132d6=>{var _0x1d0ab4=_0x56b9ab;const {eventID:_0x3d8abd}=_0x3132d6;switch(_0x3d8abd){case _['CollaborationEvent'][_0x1d0ab4(0x19d)]:this['_handleNewHost'](_0x3132d6);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3132d6);break;case _['CollaborationEvent'][_0x1d0ab4(0x228)]:this[_0x1d0ab4(0x21d)]();break;case _[_0x1d0ab4(0x23c)][_0x1d0ab4(0x20d)]:this[_0x1d0ab4(0x1e0)](_0x3132d6);break;}}));}[_0x51f54d(0x229)](){var _0x4e17e2=_0x51f54d;this[_0x4e17e2(0x1d8)][_0x4e17e2(0x1c3)]({'eventID':_[_0x4e17e2(0x23c)][_0x4e17e2(0x1a9)],'data':{'unitID':this[_0x4e17e2(0x242)],'userID':this['_collabSession'][_0x4e17e2(0x1d6)]()}},this[_0x4e17e2(0x242)]);}[_0x51f54d(0x1b8)](){var _0x168e4c=_0x51f54d;this[_0x168e4c(0x1b9)]===_0x168e4c(0x1f1)&&(this[_0x168e4c(0x27d)][_0x168e4c(0x1c1)](_0x168e4c(0x1cb)),this[_0x168e4c(0x1d8)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x168e4c(0x242)]));}['startFollowing'](){var _0x1c087=_0x51f54d;this[_0x1c087(0x1b9)]===_0x1c087(0x1bc)&&(this[_0x1c087(0x27d)]['next'](_0x1c087(0x1a1)),this['_startFollowing']());}[_0x51f54d(0x257)](){var _0x46c2a7=_0x51f54d;this[_0x46c2a7(0x1b9)]==='following'&&this[_0x46c2a7(0x1bf)]();}['_handleNewHost'](_0x56f886){var _0x54ac4a=_0x51f54d;const {presenter:_0x17e2f7}=_0x56f886[_0x54ac4a(0x251)],_0x2e9843=this[_0x54ac4a(0x1d8)][_0x54ac4a(0x1d6)]();this[_0x54ac4a(0x1ed)]=_0x17e2f7,_0x17e2f7===_0x2e9843?(this[_0x54ac4a(0x1bf)](),this[_0x54ac4a(0x20b)]()):this[_0x54ac4a(0x1b9)]!==_0x54ac4a(0x1bc)&&(this['_stopPresenting'](),this[_0x54ac4a(0x1e3)]());}[_0x51f54d(0x203)](){var _0x49f900=_0x51f54d;const _0x5bed98={'eventID':_['CollaborationEvent'][_0x49f900(0x1fc)]};this[_0x49f900(0x1d8)]['send'](_0x5bed98,this[_0x49f900(0x242)]);}['_handleTerminate'](){var _0x55d2ff=_0x51f54d;this['_presenter']=null,this[_0x55d2ff(0x1b9)]!==_0x55d2ff(0x1f1)&&this[_0x55d2ff(0x25a)]();}['_handleNewChangeSets'](_0x422da3){var _0xa9c159=_0x51f54d;if(this['_status']===_0xa9c159(0x1a1)&&this['_presenter']===_0x422da3[_0xa9c159(0x251)][_0xa9c159(0x273)]){const _0x5e6526=_[_0xa9c159(0x1fa)](_0x422da3[_0xa9c159(0x251)])['mutations'][_0xa9c159(0x27c)]()[_0xa9c159(0x255)](_0x27ba0b=>_0x27ba0b['id']===C[_0xa9c159(0x262)]['id']);if(_0x5e6526){const _0x842f74=_0x5e6526[_0xa9c159(0x1e4)]['unitId'],_0x5e264f=_0x5e6526['params'][_0xa9c159(0x1c9)]['id'];setTimeout(()=>{var _0x4ee8c5=_0xa9c159;this[_0x4ee8c5(0x22d)][_0x4ee8c5(0x26c)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x842f74,'subUnitId':_0x5e264f},{'fromCollab':!0x0});});}}}[_0x51f54d(0x20b)](){var _0x3a4989=_0x51f54d;this['_status$'][_0x3a4989(0x1c1)](_0x3a4989(0x1f1));const _0x54722=new Map(),_0x47ead1=this[_0x3a4989(0x1fd)]=new o[(_0x3a4989(0x1a4))]();_0x47ead1[_0x3a4989(0x247)](o[_0x3a4989(0x1f6)](()=>{var _0x5cf408=_0x3a4989;_0x54722[_0x5cf408(0x26b)](_0x50d289=>_0x50d289[_0x5cf408(0x1c6)]()),_0x54722[_0x5cf408(0x269)]();})),_0x47ead1['add'](this[_0x3a4989(0x22d)][_0x3a4989(0x212)](_0x1024ef=>{var _0x30aa80=_0x3a4989,_0xd4c2f3;if(_0x1024ef[_0x30aa80(0x1d1)]!==o[_0x30aa80(0x1a3)][_0x30aa80(0x1ce)]||!this[_0x30aa80(0x1eb)][_0x30aa80(0x20a)](_0x1024ef['id']))return;const {id:_0xb8b877}=_0x1024ef;let _0x244c37;_0x54722[_0x30aa80(0x237)](_0xb8b877)?_0x244c37=_0x54722['get'](_0xb8b877):(_0x244c37=new D[(_0x30aa80(0x1ff))](),_0x54722[_0x30aa80(0x1e9)](_0xb8b877,_0x244c37),_0x244c37[_0x30aa80(0x279)](b[_0x30aa80(0x211)]((_0xd4c2f3=this['_configService'][_0x30aa80(0x1c2)](Z))!=null?_0xd4c2f3:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x30aa80(0x266)](_0x5ec96d=>{var _0x1f6b84=_0x30aa80;this['_collabSession'][_0x1f6b84(0x1c3)]({'eventID':_[_0x1f6b84(0x23c)][_0x1f6b84(0x244)],'data':{'unitID':this[_0x1f6b84(0x242)],'operations':{[_0x5ec96d['id']]:{'id':_0x5ec96d['id'],'params':JSON[_0x1f6b84(0x258)](_0x5ec96d['params'])}}}},this[_0x1f6b84(0x242)]);})),_0x244c37[_0x30aa80(0x1c1)](_0x1024ef);})),this[_0x3a4989(0x1eb)]['getInitialStates'](this[_0x3a4989(0x242)])['forEach'](_0x38caa6=>this['_collabSession'][_0x3a4989(0x1c3)]({'eventID':_[_0x3a4989(0x23c)][_0x3a4989(0x244)],'data':{'unitID':this[_0x3a4989(0x242)],'operations':{[_0x38caa6['id']]:{'id':_0x38caa6['id'],'params':JSON[_0x3a4989(0x258)](_0x38caa6['params'])}}}},this[_0x3a4989(0x242)]));}[_0x51f54d(0x207)](){var _0x2a8989=_0x51f54d,_0xb5674e;this[_0x2a8989(0x27d)]['next'](_0x2a8989(0x1cb)),(_0xb5674e=this[_0x2a8989(0x1fd)])==null||_0xb5674e['dispose'](),this[_0x2a8989(0x1fd)]=null;}[_0x51f54d(0x1e3)](){var _0x1e0405=_0x51f54d,_0x17e045;(_0x17e045=this[_0x1e0405(0x1fd)])==null||_0x17e045[_0x1e0405(0x23a)](),this[_0x1e0405(0x27d)][_0x1e0405(0x1c1)]('following');}['_beIdle'](){var _0x5b61a2=_0x51f54d,_0x3711b6;this[_0x5b61a2(0x27d)]['next'](_0x5b61a2(0x1cb)),(_0x3711b6=this[_0x5b61a2(0x1fd)])==null||_0x3711b6[_0x5b61a2(0x23a)](),this[_0x5b61a2(0x1fd)]=null;}[_0x51f54d(0x1bf)](){var _0x5d772b=_0x51f54d,_0x2db040;this[_0x5d772b(0x27d)][_0x5d772b(0x1c1)](_0x5d772b(0x1bc)),(_0x2db040=this[_0x5d772b(0x1fd)])==null||_0x2db040[_0x5d772b(0x23a)]();}[_0x51f54d(0x209)](_0x2a408f){var _0x58fb9b=_0x51f54d;if([_0x58fb9b(0x1f1),_0x58fb9b(0x1bc),_0x58fb9b(0x1fe)][_0x58fb9b(0x1c4)](this[_0x58fb9b(0x1b9)])||!_0x2a408f[_0x58fb9b(0x251)][_0x58fb9b(0x1b5)]||_0x2a408f[_0x58fb9b(0x251)][_0x58fb9b(0x1b5)]===this['_collabSession']['getMemberID']())return;this['_status']===_0x58fb9b(0x1cb)&&this[_0x58fb9b(0x1e3)]();const _0x348268=_0x2a408f[_0x58fb9b(0x251)][_0x58fb9b(0x1b0)];Object[_0x58fb9b(0x1fb)](_0x348268)[_0x58fb9b(0x26b)](_0x2d53d0=>{var _0x29cea5=_0x58fb9b;this[_0x29cea5(0x22d)][_0x29cea5(0x26c)](_0x2d53d0['id'],_0x2d53d0[_0x29cea5(0x1e4)]?JSON[_0x29cea5(0x243)](_0x2d53d0['params']):null,{'fromCollab':!0x0});});}[_0x51f54d(0x252)](){var _0x5de591=_0x51f54d,_0x28321b;this[_0x5de591(0x27d)][_0x5de591(0x1c1)](_0x5de591(0x1fe)),(_0x28321b=this[_0x5de591(0x1fd)])==null||_0x28321b[_0x5de591(0x23a)]();}[_0x51f54d(0x254)](){var _0x1629c2=_0x51f54d;this['_status$'][_0x1629c2(0x1c1)](_0x1629c2(0x1cb)),this[_0x1629c2(0x203)]();}},exports[_0x51f54d(0x245)]=R([S(0x2,o[_0x51f54d(0x23e)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x51f54d(0x1cc)])],exports['LiveShareCoordinator']);function A(){var _0x340a3d=_0x51f54d;const _0x4852c4=p[_0x340a3d(0x277)](exports[_0x340a3d(0x1aa)]),_0x3b7cc9=p[_0x340a3d(0x277)](o[_0x340a3d(0x216)]),_0x3a2114=p['useObservable'](()=>_0x3b7cc9[_0x340a3d(0x264)](o[_0x340a3d(0x215)][_0x340a3d(0x1af)]),void 0x0,!0x1,[]),[_0x1f3802,_0x2d0620]=f['useState'](null),[_0x423b1b,_0x15b2ea]=f[_0x340a3d(0x1a6)](h[_0x340a3d(0x238)]),_0x59bcb0=f[_0x340a3d(0x1c5)](null);return f[_0x340a3d(0x1e5)](()=>(_0x3a2114&&_0x4852c4['getLiveShareCoordinator'](_0x3a2114[_0x340a3d(0x1dc)]())['then'](_0x58a494=>{var _0x1eb0de=_0x340a3d;_0x2d0620(_0x58a494),_0x59bcb0[_0x1eb0de(0x233)]=_0x58a494[_0x1eb0de(0x1d0)]['subscribe'](_0x37490d=>{_0x15b2ea(_0x37490d);});}),()=>{var _0x5332f5=_0x340a3d,_0x4c1f9b;(_0x4c1f9b=_0x59bcb0[_0x5332f5(0x233)])==null||_0x4c1f9b[_0x5332f5(0x265)](),_0x59bcb0['current']=null;}),[_0x3a2114,_0x4852c4]),_0x1f3802?l[_0x340a3d(0x1f4)](g[_0x340a3d(0x25e)],{'align':'end','disabled':_0x423b1b===h['OFFLINE'],'className':_0x340a3d(0x1df),'overlay':l[_0x340a3d(0x1f4)](K,{'status':_0x423b1b,'coordinator':_0x1f3802}),'children':l['jsx']('button',{'className':g[_0x340a3d(0x261)](_0x340a3d(0x1ea),{'univer-cursor-not-allowed':_0x423b1b===h[_0x340a3d(0x1c8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x423b1b!==h['OFFLINE']}),'type':_0x340a3d(0x274),'children':l['jsx'](P,{'className':_0x340a3d(0x22b)})})}):null;}function K(_0x3f1ee1){var _0x4339af=_0x51f54d;const {status:_0x8c85d2,coordinator:_0x541cef}=_0x3f1ee1;switch(_0x8c85d2){case h[_0x4339af(0x238)]:return l[_0x4339af(0x1f4)](z,{'coordinator':_0x541cef});case h[_0x4339af(0x263)]:return l['jsx'](Q,{'coordinator':_0x541cef});case h[_0x4339af(0x1d9)]:return l[_0x4339af(0x1f4)](X,{'coordinator':_0x541cef});case h[_0x4339af(0x1c8)]:return l[_0x4339af(0x1f4)](te,{});case h['PRESENTING']:return l[_0x4339af(0x1f4)](ee,{'coordinator':_0x541cef});default:return null;}}function z(_0x486b98){var _0x188a26=_0x51f54d;const {coordinator:_0x4d830e}=_0x486b98;return l[_0x188a26(0x260)](l[_0x188a26(0x23d)],{'children':[l[_0x188a26(0x1f4)]('div',{'className':_0x188a26(0x1e8),'children':'Present\x20this\x20document'}),l[_0x188a26(0x1f4)](g[_0x188a26(0x1ab)],{'onClick':()=>_0x4d830e['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x4ad70){var _0x51f39e=_0x51f54d;const {coordinator:_0x530ddc}=_0x4ad70;return l[_0x51f39e(0x260)](l[_0x51f39e(0x23d)],{'children':[l[_0x51f39e(0x1f4)](_0x51f39e(0x275),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x51f39e(0x1c0)}),l[_0x51f39e(0x1f4)](g[_0x51f39e(0x1ab)],{'onClick':()=>_0x530ddc[_0x51f39e(0x257)](),'children':_0x51f39e(0x26e)})]});}function X(_0x172a82){var _0x4ea448=_0x51f54d;const {coordinator:_0x2d980a}=_0x172a82;return l[_0x4ea448(0x260)](l[_0x4ea448(0x23d)],{'children':[l[_0x4ea448(0x1f4)](_0x4ea448(0x275),{'className':_0x4ea448(0x1e8),'children':_0x4ea448(0x1b7)}),l['jsx'](g[_0x4ea448(0x1ab)],{'variant':'text','onClick':()=>_0x2d980a[_0x4ea448(0x235)](),'children':_0x4ea448(0x223)})]});}function _0x594e(){var _0xe696e=['univer-mb-3\x20univer-w-full\x20univer-text-sm','set','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_liveShareService','path','_presenter','DesktopLiveShareController','http://www.w3.org/2000/svg','init','presenting','Module','random','jsx','104572BZesTQ','toDisposable','getValue','_sharedOperations','idSuffix','parseProtocolChangeset','values','LIVESHARE_FETCH_OPERATIONS','_commandDisposable','offline','Subject','use','35739IhRyIT','className','_fetchOperations','LiveShareService','_configService','Disposable','_stopPresenting','onRendered','_handleOperation','shouldShareOperation','_startPresenting','LiveShareStatus','NEW_CHANGESETS','defs','UNIVER_UNKNOWN','_config','throttleTime','onCommandExecuted','svg','tag','UniverInstanceType','IUniverInstanceService','displayName','evenodd','url(#$1','propertyIsEnumerable','Inject','map','_handleTerminate','function','UniverIcon','getTypeOfUnitDisposed$','mask','event$','Start\x20following','get','CollaborationSessionService','colorChannel1','Stop\x20presenting','LIVESHARE_TERMINATE','tryStartPresenting','takeUntil','univer-size-4','touchDependencies','_commandService','onStarting','defIds','133dMUcaX','entries','replace','current','_entities','startFollowing','string','has','IDLE','extend','dispose','override','CollaborationEvent','Fragment','IConfigService','forwardRef','defineProperty','SetScrollOperation','_unitID','parse','LIVESHARE_OPERATION','LiveShareCoordinator','getLiveShareCoordinator','add','apply','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','IUIPartsService','none','registerDependencies','Injector','LiveShareIcon','children','30YrtRtn','data','_handleOffline','live-share.config','_handleOnline','find','_reporters','stopFollowing','stringify','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','UniverCollaborationClientPlugin','_univerInstanceService','registerSharedOperation','Dropdown','symbol','jsxs','clsx','InsertSheetMutation','FOLLOWING','getCurrentTypeOfUnit$','unsubscribe','subscribe','createElement','connectInjector','clear','1em','forEach','executeCommand','3410408pIAEKV','Stop\x20following','delete','icon','dispose$','6340700WtRVPb','memberID','button','div','_collabSessionService','useDependency','_injector','pipe','concat','PRESENTING','reverse','_status$','fill','LIVESHARE_NEW_HOST','pluginName','length','assign','following','18IyFxzv','CommandType','DisposableCollection','call','useState','235695OMbSnm','RxDisposable','LIVESHARE_REQUEST_HOST','LiveShareController','Button','prototype','1360120QjxGDD','requireSession','UNIVER_SHEET','operations','getOwnPropertyDescriptor','setConfig','35634vcVYKk','currentColor','presenter','SessionStatus','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','_status','BehaviorSubject','default','not-following','_init','attrs','_stopFollowing','You\x27re\x20following\x20the\x20presenter','next','getConfig','send','includes','useRef','complete','from','OFFLINE','sheet','SAME_OPERATION_SHARE_INTERVAL','idle','ICommandService','You\x27re\x20presenting\x20the\x20document','OPERATION','registerInitialStateReporter','status$','type','0\x200\x2017\x2017','_startLiveShareCoordinator','xlink:href','asObservable','getMemberID','_uiPartsService','_collabSession','NOT_FOLLOWING','BuiltInUIPart','disposeWithMe','getUnitId','univerjs-icon\x20univerjs-icon-','_mountLiveShare','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_handleNewChangeSets','UniverLiveSharePlugin','getOwnPropertySymbols','_startFollowing','params','useEffect','hasOwnProperty','toString'];_0x594e=function(){return _0xe696e;};return _0x594e();}function ee(_0x42962){var _0x10d30f=_0x51f54d;const {coordinator:_0x29555c}=_0x42962;return l[_0x10d30f(0x260)](l[_0x10d30f(0x23d)],{'children':[l[_0x10d30f(0x1f4)]('div',{'className':_0x10d30f(0x1e8),'children':_0x10d30f(0x1cd)}),l[_0x10d30f(0x1f4)](g[_0x10d30f(0x1ab)],{'variant':_0x10d30f(0x1bb),'onClick':()=>_0x29555c[_0x10d30f(0x1b8)](),'children':_0x10d30f(0x227)})]});}function te(){var _0x35a4f0=_0x51f54d;return l[_0x35a4f0(0x1f4)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0xcee59d,_0x1b267d,_0x579cb8,_0x4ecc8b)=>{var _0x3626df=_0x51f54d;for(var _0x3d2ea2=_0x4ecc8b>0x1?void 0x0:_0x4ecc8b?ie(_0x1b267d,_0x579cb8):_0x1b267d,_0x144dbe=_0xcee59d[_0x3626df(0x19f)]-0x1,_0x5a8c29;_0x144dbe>=0x0;_0x144dbe--)(_0x5a8c29=_0xcee59d[_0x144dbe])&&(_0x3d2ea2=_0x5a8c29(_0x3d2ea2)||_0x3d2ea2);return _0x3d2ea2;},L=(_0x4b0b6f,_0x582c10)=>(_0x1143fe,_0x4da8b6)=>_0x582c10(_0x1143fe,_0x4da8b6,_0x4b0b6f);exports[_0x51f54d(0x1ee)]=class extends o[_0x51f54d(0x206)]{constructor(_0x1b0822,_0x2a76ad){var _0x5a3598=_0x51f54d;super(),this[_0x5a3598(0x278)]=_0x1b0822,this[_0x5a3598(0x1d7)]=_0x2a76ad,this[_0x5a3598(0x1de)]();}[_0x51f54d(0x1de)](){var _0x10fc18=_0x51f54d;this[_0x10fc18(0x1db)](this[_0x10fc18(0x1d7)]['registerComponent'](p[_0x10fc18(0x1da)]['HEADER_MENU'],()=>p[_0x10fc18(0x268)](A,this[_0x10fc18(0x278)])));}},exports[_0x51f54d(0x1ee)]=ne([L(0x0,o[_0x51f54d(0x21b)](o[_0x51f54d(0x24d)])),L(0x1,p[_0x51f54d(0x24a)])],exports[_0x51f54d(0x1ee)]);var re=Object['defineProperty'],se=Object[_0x51f54d(0x1b1)],oe=(_0x299411,_0x1ba88b,_0x40445c)=>_0x1ba88b in _0x299411?re(_0x299411,_0x1ba88b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40445c}):_0x299411[_0x1ba88b]=_0x40445c,ae=(_0x33a5d1,_0x75d706,_0x277f6c,_0x1ae0b5)=>{var _0x3af211=_0x51f54d;for(var _0x1cb2a4=_0x1ae0b5>0x1?void 0x0:_0x1ae0b5?se(_0x75d706,_0x277f6c):_0x75d706,_0x277907=_0x33a5d1[_0x3af211(0x19f)]-0x1,_0x621419;_0x277907>=0x0;_0x277907--)(_0x621419=_0x33a5d1[_0x277907])&&(_0x1cb2a4=_0x621419(_0x1cb2a4)||_0x1cb2a4);return _0x1cb2a4;},N=(_0x77eb7e,_0x1aa774)=>(_0x231d4b,_0x42428f)=>_0x1aa774(_0x231d4b,_0x42428f,_0x77eb7e),T=(_0x369d92,_0x54fc93,_0x29587f)=>oe(_0x369d92,typeof _0x54fc93!=_0x51f54d(0x25f)?_0x54fc93+'':_0x54fc93,_0x29587f);const le=_0x51f54d(0x259);exports[_0x51f54d(0x1e1)]=class extends o['Plugin']{constructor(_0x21ad2e=x,_0x4e7c18,_0x210479){var _0x2e91df=_0x51f54d;super(),this[_0x2e91df(0x210)]=_0x21ad2e,this[_0x2e91df(0x278)]=_0x4e7c18,this[_0x2e91df(0x205)]=_0x210479;const {..._0x11c8ee}=o['merge']({},x,this[_0x2e91df(0x210)]);this['_configService'][_0x2e91df(0x1b2)]($,_0x11c8ee);}[_0x51f54d(0x22e)](){var _0x5f06df=_0x51f54d;o[_0x5f06df(0x24c)](this[_0x5f06df(0x278)],o['mergeOverrideWithDependencies']([[O],[exports[_0x5f06df(0x1aa)]],[E],[exports[_0x5f06df(0x1ee)]]],this['_config'][_0x5f06df(0x23b)])),o[_0x5f06df(0x22c)](this[_0x5f06df(0x278)],[[E]]);}[_0x51f54d(0x208)](){var _0x55b1cb=_0x51f54d;o[_0x55b1cb(0x22c)](this[_0x55b1cb(0x278)],[[exports[_0x55b1cb(0x1ee)]]]);}},T(exports[_0x51f54d(0x1e1)],'type',o[_0x51f54d(0x215)][_0x51f54d(0x20f)]),T(exports[_0x51f54d(0x1e1)],_0x51f54d(0x19e),le),exports[_0x51f54d(0x1e1)]=ae([o['DependentOn'](m[_0x51f54d(0x25b)]),N(0x1,o[_0x51f54d(0x21b)](o['Injector'])),N(0x2,o[_0x51f54d(0x23e)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x51f54d(0x204)]=O,exports[_0x51f54d(0x20c)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3a9004=_0x50ee;(function(_0x4c0b18,_0x629717){var _0x43a061=_0x50ee,_0x5657b5=_0x4c0b18();while(!![]){try{var _0x266cd=parseInt(_0x43a061(0x147))/0x1+parseInt(_0x43a061(0x164))/0x2*(parseInt(_0x43a061(0x1b4))/0x3)+parseInt(_0x43a061(0x14d))/0x4+parseInt(_0x43a061(0x1bc))/0x5+-parseInt(_0x43a061(0x13c))/0x6+-parseInt(_0x43a061(0x129))/0x7+parseInt(_0x43a061(0x1cc))/0x8*(-parseInt(_0x43a061(0x1af))/0x9);if(_0x266cd===_0x629717)break;else _0x5657b5['push'](_0x5657b5['shift']());}catch(_0xe033a1){_0x5657b5['push'](_0x5657b5['shift']());}}}(_0x48e5,0xd7b41));var q=Object['defineProperty'],z=(_0x41fcd3,_0x3f091b,_0x21fcfd)=>_0x3f091b in _0x41fcd3?q(_0x41fcd3,_0x3f091b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21fcfd}):_0x41fcd3[_0x3f091b]=_0x21fcfd,d=(_0x3379b9,_0x3fee5e,_0x3b509e)=>z(_0x3379b9,typeof _0x3fee5e!=_0x3a9004(0x168)?_0x3fee5e+'':_0x3fee5e,_0x3b509e);import{CollaborationSessionService as _0x494676,SessionStatus as _0x3c864e,UniverCollaborationClientPlugin as _0x59c281}from'@univerjs-pro/collaboration-client';import{Disposable as _0x317463,toDisposable as _0x206159,Inject as _0x27f4aa,IUniverInstanceService as _0x28bdc3,Injector as _0x495900,IConfigService as _0x2f8d1e,ICommandService as _0x4c8a99,RxDisposable as _0xdd8606,UniverInstanceType as _0x184fe8,DisposableCollection as _0x5d113,CommandType as _0x501da6,DependentOn as _0xc02580,Plugin as _0x432084,merge as _0x6d2ee8,registerDependencies as _0x734f14,mergeOverrideWithDependencies as _0x4359e6,touchDependencies as _0x2ee2f7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x54cd56,InsertSheetMutation as _0x19461a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xfa8492,SetScrollOperation as _0x323229}from'@univerjs/sheets-ui';import{useDependency as _0x14674a,useObservable as _0xb5b489,IUIPartsService as _0x38a075,BuiltInUIPart as _0x29a0d9,connectInjector as _0x51bf03}from'@univerjs/ui';import{jsx as _0x1148da,jsxs as _0x5ec651,Fragment as _0x145b60}from'react/jsx-runtime';import{Dropdown as _0x5dae37,clsx as _0x19ae26,Button as _0x1423fd}from'@univerjs/design';import{forwardRef as _0x4b6caf,useRef as _0x4dee9e,createElement as _0x593257,useState as _0x393f21,useEffect as _0x1e7f8d}from'react';import{CollaborationEvent as _0x1cc368,parseProtocolChangeset as _0x25a2d3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1bae77,Subject as _0x3e828c}from'rxjs';import{takeUntil as _0x2f308f,throttleTime as _0xd47df6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x317463{constructor(){var _0x1527e5=_0x3a9004;super(...arguments),d(this,_0x1527e5(0x17e),new Set()),d(this,_0x1527e5(0x1bd),new Set());}[_0x3a9004(0x134)](_0x40d6e1){var _0x21cb93=_0x3a9004;return this[_0x21cb93(0x17e)][_0x21cb93(0x152)](_0x40d6e1),_0x206159(()=>this[_0x21cb93(0x17e)][_0x21cb93(0x184)](_0x40d6e1));}['registerInitialStateReporter'](_0x5e33d1){var _0x2ac00b=_0x3a9004;return this[_0x2ac00b(0x1bd)][_0x2ac00b(0x152)](_0x5e33d1),_0x206159(()=>this[_0x2ac00b(0x1bd)][_0x2ac00b(0x184)](_0x5e33d1));}[_0x3a9004(0x175)](_0x1d9dea){var _0x496fd2=_0x3a9004;return this['_sharedOperations'][_0x496fd2(0x131)](_0x1d9dea);}['getInitialStates'](_0x2dcdd4){var _0x631cb9=_0x3a9004;return Array[_0x631cb9(0x196)](this[_0x631cb9(0x1bd)])['map'](_0x138954=>_0x138954(_0x2dcdd4));}}var Ee=Object[_0x3a9004(0x173)],we=(_0x48f3fe,_0x3830b4,_0x4a8bc9,_0x2f277e)=>{var _0x58aec2=_0x3a9004;for(var _0x4a9c5c=_0x2f277e>0x1?void 0x0:_0x2f277e?Ee(_0x3830b4,_0x4a8bc9):_0x3830b4,_0x1d876d=_0x48f3fe[_0x58aec2(0x19f)]-0x1,_0x1a7a8a;_0x1d876d>=0x0;_0x1d876d--)(_0x1a7a8a=_0x48f3fe[_0x1d876d])&&(_0x4a9c5c=_0x1a7a8a(_0x4a9c5c)||_0x4a9c5c);return _0x4a9c5c;},Ne=(_0x59c137,_0x1a6faa)=>(_0x411f35,_0x2be373)=>_0x1a6faa(_0x411f35,_0x2be373,_0x59c137);let m=class extends _0x317463{constructor(_0x33f166){var _0x5317ca=_0x3a9004;super(),this[_0x5317ca(0x18b)]=_0x33f166,this[_0x5317ca(0x159)]();}[_0x3a9004(0x159)](){var _0x3b71de=_0x3a9004;[_0xfa8492['id'],_0x323229['id'],_0x54cd56['id']][_0x3b71de(0x1cb)](_0x1b899a=>{var _0x143d12=_0x3b71de;this[_0x143d12(0x169)](this[_0x143d12(0x18b)]['registerSharedOperation'](_0x1b899a));});}};m=we([Ne(0x0,_0x27f4aa(L))],m);var c=function(){var _0x3d1f28=_0x3a9004;return c=Object[_0x3d1f28(0x138)]||function(_0x443ac0){var _0xd45d4=_0x3d1f28;for(var _0x4587d1,_0x237cf6=0x1,_0x3e26a6=arguments[_0xd45d4(0x19f)];_0x237cf6<_0x3e26a6;_0x237cf6++){_0x4587d1=arguments[_0x237cf6];for(var _0x1ea9b1 in _0x4587d1)Object[_0xd45d4(0x1ad)][_0xd45d4(0x135)]['call'](_0x4587d1,_0x1ea9b1)&&(_0x443ac0[_0x1ea9b1]=_0x4587d1[_0x1ea9b1]);}return _0x443ac0;},c['apply'](this,arguments);},Ce=function(_0x4cf340,_0x230be5){var _0x56fb15=_0x3a9004,_0x5a8451={};for(var _0x360411 in _0x4cf340)Object[_0x56fb15(0x1ad)]['hasOwnProperty'][_0x56fb15(0x1a8)](_0x4cf340,_0x360411)&&_0x230be5[_0x56fb15(0x1b1)](_0x360411)<0x0&&(_0x5a8451[_0x360411]=_0x4cf340[_0x360411]);if(_0x4cf340!=null&&typeof Object[_0x56fb15(0x1c7)]==_0x56fb15(0x16b)){for(var _0x70a881=0x0,_0x360411=Object[_0x56fb15(0x1c7)](_0x4cf340);_0x70a881<_0x360411['length'];_0x70a881++)_0x230be5[_0x56fb15(0x1b1)](_0x360411[_0x70a881])<0x0&&Object['prototype'][_0x56fb15(0x140)][_0x56fb15(0x1a8)](_0x4cf340,_0x360411[_0x70a881])&&(_0x5a8451[_0x360411[_0x70a881]]=_0x4cf340[_0x360411[_0x70a881]]);}return _0x5a8451;},W=_0x4b6caf(function(_0x2042b3,_0x2746e3){var _0x12f9fc=_0x3a9004,_0x37a1d9=_0x2042b3[_0x12f9fc(0x17c)],_0x1c20e8=_0x2042b3['id'],_0x1268ea=_0x2042b3[_0x12f9fc(0x166)],_0x5b340a=_0x2042b3[_0x12f9fc(0x189)],_0x31abb1=Ce(_0x2042b3,[_0x12f9fc(0x17c),'id',_0x12f9fc(0x166),_0x12f9fc(0x189)]),_0x4b4189=_0x12f9fc(0x1c9)[_0x12f9fc(0x14a)](_0x1c20e8,'\x20')[_0x12f9fc(0x14a)](_0x1268ea||'')['trim'](),_0xc9d344=_0x4dee9e('_'[_0x12f9fc(0x14a)](Le()));return Y(_0x37a1d9,''[_0x12f9fc(0x14a)](_0x1c20e8),{'defIds':_0x37a1d9[_0x12f9fc(0x15b)],'idSuffix':_0xc9d344[_0x12f9fc(0x19c)]},c({'ref':_0x2746e3,'className':_0x4b4189},_0x31abb1),_0x5b340a);});function _0x48e5(){var _0x256776=['div','dispose','OFFLINE','not-following','IDLE','_collabSession','has','_status','values','registerSharedOperation','hasOwnProperty','_unitID','currentColor','assign','LIVESHARE_TERMINATE','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverIcon','3880464sNkKlC','offline','NOT_FOLLOWING','clear','propertyIsEnumerable','LIVESHARE_NEW_HOST','Start','svg','xlink:href','_fetchOperations','_handleTerminate','548285tAffQo','getUnitId','_handleOffline','concat','HEADER_MENU','onStarting','6277216fPWLNA','_commandService','url(#$1','_config','entries','add','http://www.w3.org/2000/svg','_startPresenting','_presenter','getMemberID','executeCommand','displayName','_init','unitId','defIds','createInstance','1em','SAME_OPERATION_SHARE_INTERVAL','dispose$','status$','none','stringify','pluginName','2088194UbFDpP','getInitialStates','className','_configService','symbol','disposeWithMe','_handleNewChangeSets','function','_stopPresenting','fill','PRESENTING','includes','find','random','getTypeOfUnitDisposed$','getOwnPropertyDescriptor','complete','shouldShareOperation','init','FOLLOWING','string','LIVESHARE_REQUEST_HOST','getLiveShareCoordinator','unsubscribe','icon','path','_sharedOperations','_commandDisposable','_collabSessionService','mask','_startFollowing','startFollowing','delete','Present\x20this\x20document','children','idle','data','extend','_handleNewHost','_liveShareService','_handleOperation','params','idSuffix','presenting','tryStartPresenting','_uiPartsService','sheet','following','UNIVER_SHEET','colorChannel1','from','override','NEW_CHANGESETS','asObservable','replace','type','current','mutations','ONLINE','length','defineProperty','defs','evenodd','get','_startLiveShareCoordinator','Stop\x20presenting','_status$','memberID','call','stopPresenting','_univerInstanceService','onRendered','next','prototype','substring','4347oMbufq','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','indexOf','_injector','onCommandExecuted','3JRqGQS','_mountLiveShare','send','tag','Start\x20following','parse','setConfig','getValue','4274355POdqFa','_reporters','registerComponent','LIVESHARE_FETCH_OPERATIONS','operations','You\x27re\x20presenting\x20the\x20document','You\x27re\x20following\x20the\x20presenter','toString','attrs','_handleOnline','button','getOwnPropertySymbols','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','subscribe','forEach','17624SxCCYD','_entities','_stopFollowing','pipe','LiveShareIcon','sessionStatus$','presenter','univer-size-4','getTypeOfUnitAdded$','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','9955701pqTHNN','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x48e5=function(){return _0x256776;};return _0x48e5();}function Y(_0x102606,_0x2c247c,_0x2bf9b4,_0x2b366e,_0x1f6c20){var _0x311deb=_0x3a9004;return _0x593257(_0x102606[_0x311deb(0x1b7)],c(c({'key':_0x2c247c},De(_0x102606,_0x2bf9b4,_0x1f6c20)),_0x2b366e),(xe(_0x102606,_0x2bf9b4)['children']||[])['map'](function(_0x56ab85,_0xcff9df){var _0x3e4bfc=_0x311deb;return Y(_0x56ab85,''[_0x3e4bfc(0x14a)](_0x2c247c,'-')[_0x3e4bfc(0x14a)](_0x102606[_0x3e4bfc(0x1b7)],'-')['concat'](_0xcff9df),_0x2bf9b4,void 0x0,_0x1f6c20);}));}function De(_0x290539,_0x2ea1b5,_0x231bb3){var _0x4284ef=_0x3a9004,_0x3a3930=c({},_0x290539[_0x4284ef(0x1c4)]);_0x231bb3!=null&&_0x231bb3[_0x4284ef(0x195)]&&_0x3a3930[_0x4284ef(0x16d)]==='colorChannel1'&&(_0x3a3930['fill']=_0x231bb3[_0x4284ef(0x195)]),_0x290539[_0x4284ef(0x1b7)]===_0x4284ef(0x181)&&_0x3a3930['id']&&(_0x3a3930['id']=_0x3a3930['id']+_0x2ea1b5[_0x4284ef(0x18e)]),Object[_0x4284ef(0x151)](_0x3a3930)[_0x4284ef(0x1cb)](function(_0x5548c0){var _0x4fc70f=_0x4284ef,_0x329620=_0x5548c0[0x0],_0x3a579b=_0x5548c0[0x1];_0x329620==='mask'&&typeof _0x3a579b==_0x4fc70f(0x178)&&(_0x3a3930[_0x329620]=_0x3a579b[_0x4fc70f(0x19a)](/url\(#(.*)\)/,_0x4fc70f(0x14f)[_0x4fc70f(0x14a)](_0x2ea1b5[_0x4fc70f(0x18e)],')')));});var _0x4f1ea4=_0x2ea1b5[_0x4284ef(0x15b)];return!_0x4f1ea4||_0x4f1ea4[_0x4284ef(0x19f)]===0x0||(_0x290539['tag']==='use'&&_0x3a3930['xlink:href']&&(_0x3a3930[_0x4284ef(0x144)]=_0x3a3930['xlink:href']+_0x2ea1b5[_0x4284ef(0x18e)]),Object[_0x4284ef(0x151)](_0x3a3930)[_0x4284ef(0x1cb)](function(_0x353f6a){var _0x4b890a=_0x4284ef,_0x2435c0=_0x353f6a[0x0],_0x30a16e=_0x353f6a[0x1];typeof _0x30a16e==_0x4b890a(0x178)&&(_0x3a3930[_0x2435c0]=_0x30a16e[_0x4b890a(0x19a)](/url\(#(.*)\)/,_0x4b890a(0x14f)['concat'](_0x2ea1b5[_0x4b890a(0x18e)],')')));})),_0x3a3930;}function xe(_0x2fa228,_0x133529){var _0x1c6724=_0x3a9004,_0xeb08cc,_0x21fd0e=_0x133529[_0x1c6724(0x15b)];return!_0x21fd0e||_0x21fd0e[_0x1c6724(0x19f)]===0x0?_0x2fa228:_0x2fa228['tag']===_0x1c6724(0x1a1)&&(!((_0xeb08cc=_0x2fa228['children'])===null||_0xeb08cc===void 0x0)&&_0xeb08cc[_0x1c6724(0x19f)])?c(c({},_0x2fa228),{'children':_0x2fa228[_0x1c6724(0x186)]['map'](function(_0x5305d4){var _0x44a590=_0x1c6724;return typeof _0x5305d4[_0x44a590(0x1c4)]['id']==_0x44a590(0x178)&&_0x21fd0e&&_0x21fd0e[_0x44a590(0x16f)](_0x5305d4['attrs']['id'])?c(c({},_0x5305d4),{'attrs':c(c({},_0x5305d4[_0x44a590(0x1c4)]),{'id':_0x5305d4[_0x44a590(0x1c4)]['id']+_0x133529[_0x44a590(0x18e)]})}):_0x5305d4;})}):_0x2fa228;}function Le(){var _0x1387d1=_0x3a9004;return Math[_0x1387d1(0x171)]()[_0x1387d1(0x1c3)](0x24)[_0x1387d1(0x1ae)](0x2,0x8);}W[_0x3a9004(0x158)]=_0x3a9004(0x13b);var ye={'tag':_0x3a9004(0x143),'attrs':{'xmlns':_0x3a9004(0x153),'fill':_0x3a9004(0x161),'viewBox':_0x3a9004(0x1c8),'width':_0x3a9004(0x15d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3a9004(0x137),'d':_0x3a9004(0x128)}},{'tag':_0x3a9004(0x17d),'attrs':{'fill':_0x3a9004(0x137),'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':_0x3a9004(0x1a2),'clipRule':_0x3a9004(0x1a2)}}]},B=_0x4b6caf(function(_0x39f9a6,_0x1d8d43){return _0x593257(W,Object['assign']({},_0x39f9a6,{'id':'live-share-icon','ref':_0x1d8d43,'icon':ye}));});B[_0x3a9004(0x158)]=_0x3a9004(0x123);var Re=Object[_0x3a9004(0x173)],Z=(_0x29d52f,_0x128585,_0xb0870f,_0x5c9a60)=>{for(var _0x8ce863=_0x5c9a60>0x1?void 0x0:_0x5c9a60?Re(_0x128585,_0xb0870f):_0x128585,_0x28d625=_0x29d52f['length']-0x1,_0xf8581f;_0x28d625>=0x0;_0x28d625--)(_0xf8581f=_0x29d52f[_0x28d625])&&(_0x8ce863=_0xf8581f(_0x8ce863)||_0x8ce863);return _0x8ce863;},f=(_0x4365c,_0x1e1fdc)=>(_0x50f3e7,_0x58655b)=>_0x1e1fdc(_0x50f3e7,_0x58655b,_0x4365c);let I=class extends _0xdd8606{constructor(_0x5ade5e,_0x394a8e,_0x36a6ca){var _0x196571=_0x3a9004;super(),d(this,_0x196571(0x1cd),new Map()),(this[_0x196571(0x1aa)]=_0x5ade5e,this[_0x196571(0x1b2)]=_0x394a8e,this[_0x196571(0x180)]=_0x36a6ca,this[_0x196571(0x159)]());}async[_0x3a9004(0x17a)](_0x5ba764){var _0x3ef010=_0x3a9004;return this['_entities']['has'](_0x5ba764)||await this['_startLiveShareCoordinator'](_0x5ba764),this[_0x3ef010(0x1cd)]['get'](_0x5ba764);}['_init'](){var _0xb66d23=_0x3a9004;this['_univerInstanceService'][_0xb66d23(0x127)](_0x184fe8[_0xb66d23(0x194)])[_0xb66d23(0x122)](_0x2f308f(this[_0xb66d23(0x15f)]))[_0xb66d23(0x1ca)](async _0x35e3f3=>{var _0x351e32=_0xb66d23;const _0x5c2f69=_0x35e3f3[_0x351e32(0x148)]();this[_0x351e32(0x1cd)][_0x351e32(0x131)](_0x5c2f69)||this[_0x351e32(0x1a4)](_0x5c2f69);}),this[_0xb66d23(0x1aa)][_0xb66d23(0x172)](_0x184fe8[_0xb66d23(0x194)])[_0xb66d23(0x122)](_0x2f308f(this[_0xb66d23(0x15f)]))['subscribe'](_0x32e442=>{var _0x374ebe=_0xb66d23;const _0x2f52dd=_0x32e442['getUnitId'](),_0x3778f5=this['_entities'][_0x374ebe(0x1a3)](_0x2f52dd);_0x3778f5==null||_0x3778f5[_0x374ebe(0x12c)]();});}async[_0x3a9004(0x1a4)](_0x423882){var _0x550a70=_0x3a9004;const _0x2d336b=await this[_0x550a70(0x180)]['requireSession'](_0x423882),_0x885cd6=this['_injector'][_0x550a70(0x15c)](C,_0x423882,_0x2d336b);return _0x885cd6[_0x550a70(0x176)](),this[_0x550a70(0x1cd)]['set'](_0x423882,_0x885cd6),_0x885cd6;}};I=Z([f(0x0,_0x28bdc3),f(0x1,_0x27f4aa(_0x495900)),f(0x2,_0x27f4aa(_0x494676))],I);var h=(_0x549493=>(_0x549493[_0x3a9004(0x12d)]=_0x3a9004(0x13d),_0x549493[_0x3a9004(0x12f)]=_0x3a9004(0x187),_0x549493['FOLLOWING']='following',_0x549493[_0x3a9004(0x13e)]=_0x3a9004(0x12e),_0x549493['PRESENTING']=_0x3a9004(0x18f),_0x549493))(h||{});const Pe=_0x3a9004(0x15e),Ae=0xc8;let C=class extends _0xdd8606{constructor(_0x3f5d06,_0x5202aa,_0xd2cea9,_0x1fc31e,_0x2abc2b){var _0x104f1e=_0x3a9004;super(),d(this,_0x104f1e(0x1a6),new _0x1bae77(_0x104f1e(0x187))),d(this,_0x104f1e(0x160),this['_status$'][_0x104f1e(0x199)]()),d(this,_0x104f1e(0x159),!0x1),d(this,_0x104f1e(0x17f),null),d(this,_0x104f1e(0x155),null),(this[_0x104f1e(0x136)]=_0x3f5d06,this[_0x104f1e(0x130)]=_0x5202aa,this['_configService']=_0xd2cea9,this[_0x104f1e(0x18b)]=_0x1fc31e,this[_0x104f1e(0x14e)]=_0x2abc2b);}get[_0x3a9004(0x132)](){var _0x1719ff=_0x3a9004;return this[_0x1719ff(0x1a6)][_0x1719ff(0x1bb)]();}[_0x3a9004(0x12c)](){var _0x2ef957=_0x3a9004,_0x1605a0;(_0x1605a0=this[_0x2ef957(0x17f)])==null||_0x1605a0[_0x2ef957(0x12c)](),this[_0x2ef957(0x1a6)][_0x2ef957(0x1ac)](_0x2ef957(0x187)),this[_0x2ef957(0x1a6)][_0x2ef957(0x174)]();}[_0x3a9004(0x176)](){var _0xee0b5f=_0x3a9004;this[_0xee0b5f(0x159)]||(this[_0xee0b5f(0x159)]=!0x0,this[_0xee0b5f(0x130)][_0xee0b5f(0x124)][_0xee0b5f(0x122)](_0x2f308f(this[_0xee0b5f(0x15f)]))['subscribe'](_0x2667ea=>{var _0x410a06=_0xee0b5f;switch(_0x2667ea){case _0x3c864e[_0x410a06(0x12d)]:this[_0x410a06(0x149)]();break;case _0x3c864e[_0x410a06(0x19e)]:this[_0x410a06(0x1c5)]();break;}}),this[_0xee0b5f(0x130)]['event$'][_0xee0b5f(0x122)](_0x2f308f(this[_0xee0b5f(0x15f)]))[_0xee0b5f(0x1ca)](_0x1b409d=>{var _0x5dec01=_0xee0b5f;const {eventID:_0x2be690}=_0x1b409d;switch(_0x2be690){case _0x1cc368[_0x5dec01(0x141)]:this[_0x5dec01(0x18a)](_0x1b409d);break;case _0x1cc368['LIVESHARE_OPERATION']:this[_0x5dec01(0x18c)](_0x1b409d);break;case _0x1cc368[_0x5dec01(0x139)]:this['_handleTerminate']();break;case _0x1cc368[_0x5dec01(0x198)]:this[_0x5dec01(0x16a)](_0x1b409d);break;}}));}[_0x3a9004(0x190)](){var _0x13c1cb=_0x3a9004;this[_0x13c1cb(0x130)]['send']({'eventID':_0x1cc368[_0x13c1cb(0x179)],'data':{'unitID':this[_0x13c1cb(0x136)],'userID':this['_collabSession'][_0x13c1cb(0x156)]()}},this['_unitID']);}[_0x3a9004(0x1a9)](){var _0x1141fd=_0x3a9004;this[_0x1141fd(0x132)]==='presenting'&&(this[_0x1141fd(0x1a6)]['next'](_0x1141fd(0x187)),this[_0x1141fd(0x130)]['send']({'eventID':_0x1cc368[_0x1141fd(0x139)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x3a9004(0x183)](){var _0x34018b=_0x3a9004;this['_status']===_0x34018b(0x12e)&&(this[_0x34018b(0x1a6)][_0x34018b(0x1ac)](_0x34018b(0x193)),this[_0x34018b(0x182)]());}['stopFollowing'](){var _0x56d187=_0x3a9004;this[_0x56d187(0x132)]===_0x56d187(0x193)&&this[_0x56d187(0x1ce)]();}['_handleNewHost'](_0x4e3ea4){var _0x46075c=_0x3a9004;const {presenter:_0x2560a7}=_0x4e3ea4['data'],_0x52d984=this[_0x46075c(0x130)][_0x46075c(0x156)]();this['_presenter']=_0x2560a7,_0x2560a7===_0x52d984?(this[_0x46075c(0x1ce)](),this[_0x46075c(0x154)]()):this[_0x46075c(0x132)]!==_0x46075c(0x12e)&&(this[_0x46075c(0x16c)](),this[_0x46075c(0x182)]());}[_0x3a9004(0x145)](){var _0x3cd11e=_0x3a9004;const _0x2aff3b={'eventID':_0x1cc368[_0x3cd11e(0x1bf)]};this[_0x3cd11e(0x130)]['send'](_0x2aff3b,this['_unitID']);}[_0x3a9004(0x146)](){var _0x2859f6=_0x3a9004;this['_presenter']=null,this[_0x2859f6(0x132)]!==_0x2859f6(0x18f)&&this['_beIdle']();}[_0x3a9004(0x16a)](_0x59a0a6){var _0x3650ed=_0x3a9004;if(this[_0x3650ed(0x132)]===_0x3650ed(0x193)&&this[_0x3650ed(0x155)]===_0x59a0a6['data'][_0x3650ed(0x1a7)]){const _0x5ad254=_0x25a2d3(_0x59a0a6[_0x3650ed(0x188)])[_0x3650ed(0x19d)]['reverse']()[_0x3650ed(0x170)](_0x33f5fb=>_0x33f5fb['id']===_0x19461a['id']);if(_0x5ad254){const _0x209736=_0x5ad254[_0x3650ed(0x18d)][_0x3650ed(0x15a)],_0x40f31a=_0x5ad254['params'][_0x3650ed(0x192)]['id'];setTimeout(()=>{var _0xc96d89=_0x3650ed;this[_0xc96d89(0x14e)][_0xc96d89(0x157)](_0x54cd56['id'],{'unitId':_0x209736,'subUnitId':_0x40f31a},{'fromCollab':!0x0});});}}}[_0x3a9004(0x154)](){var _0x1a5ff7=_0x3a9004;this[_0x1a5ff7(0x1a6)][_0x1a5ff7(0x1ac)]('presenting');const _0x49717d=new Map(),_0x2c064e=this['_commandDisposable']=new _0x5d113();_0x2c064e[_0x1a5ff7(0x152)](_0x206159(()=>{var _0x152730=_0x1a5ff7;_0x49717d[_0x152730(0x1cb)](_0x52e61b=>_0x52e61b[_0x152730(0x174)]()),_0x49717d[_0x152730(0x13f)]();})),_0x2c064e[_0x1a5ff7(0x152)](this[_0x1a5ff7(0x14e)][_0x1a5ff7(0x1b3)](_0x185030=>{var _0xa298be=_0x1a5ff7,_0x31fce9;if(_0x185030[_0xa298be(0x19b)]!==_0x501da6['OPERATION']||!this[_0xa298be(0x18b)]['shouldShareOperation'](_0x185030['id']))return;const {id:_0xc5e0cc}=_0x185030;let _0xfecabc;_0x49717d[_0xa298be(0x131)](_0xc5e0cc)?_0xfecabc=_0x49717d['get'](_0xc5e0cc):(_0xfecabc=new _0x3e828c(),_0x49717d['set'](_0xc5e0cc,_0xfecabc),_0xfecabc[_0xa298be(0x122)](_0xd47df6((_0x31fce9=this[_0xa298be(0x167)]['getConfig'](Pe))!=null?_0x31fce9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xa298be(0x1ca)](_0x5bf614=>{var _0x55c1df=_0xa298be;this[_0x55c1df(0x130)][_0x55c1df(0x1b6)]({'eventID':_0x1cc368['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x55c1df(0x136)],'operations':{[_0x5bf614['id']]:{'id':_0x5bf614['id'],'params':JSON[_0x55c1df(0x162)](_0x5bf614[_0x55c1df(0x18d)])}}}},this[_0x55c1df(0x136)]);})),_0xfecabc['next'](_0x185030);})),this[_0x1a5ff7(0x18b)][_0x1a5ff7(0x165)](this[_0x1a5ff7(0x136)])[_0x1a5ff7(0x1cb)](_0x49abac=>this[_0x1a5ff7(0x130)][_0x1a5ff7(0x1b6)]({'eventID':_0x1cc368['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x49abac['id']]:{'id':_0x49abac['id'],'params':JSON[_0x1a5ff7(0x162)](_0x49abac[_0x1a5ff7(0x18d)])}}}},this[_0x1a5ff7(0x136)]));}[_0x3a9004(0x16c)](){var _0x40f7ff=_0x3a9004,_0x2b94c6;this['_status$']['next']('idle'),(_0x2b94c6=this[_0x40f7ff(0x17f)])==null||_0x2b94c6['dispose'](),this['_commandDisposable']=null;}[_0x3a9004(0x182)](){var _0x51b38d=_0x3a9004,_0x482b32;(_0x482b32=this[_0x51b38d(0x17f)])==null||_0x482b32['dispose'](),this[_0x51b38d(0x1a6)]['next'](_0x51b38d(0x193));}['_beIdle'](){var _0x36fe84=_0x3a9004,_0x4834bb;this[_0x36fe84(0x1a6)]['next'](_0x36fe84(0x187)),(_0x4834bb=this[_0x36fe84(0x17f)])==null||_0x4834bb[_0x36fe84(0x12c)](),this[_0x36fe84(0x17f)]=null;}['_stopFollowing'](){var _0x4d69b1=_0x3a9004,_0x3ca848;this[_0x4d69b1(0x1a6)][_0x4d69b1(0x1ac)](_0x4d69b1(0x12e)),(_0x3ca848=this[_0x4d69b1(0x17f)])==null||_0x3ca848[_0x4d69b1(0x12c)]();}[_0x3a9004(0x18c)](_0x2e70e3){var _0x1906ee=_0x3a9004;if([_0x1906ee(0x18f),_0x1906ee(0x12e),_0x1906ee(0x13d)][_0x1906ee(0x16f)](this[_0x1906ee(0x132)])||!_0x2e70e3[_0x1906ee(0x188)][_0x1906ee(0x125)]||_0x2e70e3[_0x1906ee(0x188)][_0x1906ee(0x125)]===this[_0x1906ee(0x130)][_0x1906ee(0x156)]())return;this[_0x1906ee(0x132)]===_0x1906ee(0x187)&&this['_startFollowing']();const _0x47d4a0=_0x2e70e3['data'][_0x1906ee(0x1c0)];Object[_0x1906ee(0x133)](_0x47d4a0)['forEach'](_0x3f6ea7=>{var _0x16730d=_0x1906ee;this[_0x16730d(0x14e)][_0x16730d(0x157)](_0x3f6ea7['id'],_0x3f6ea7[_0x16730d(0x18d)]?JSON[_0x16730d(0x1b9)](_0x3f6ea7[_0x16730d(0x18d)]):null,{'fromCollab':!0x0});});}[_0x3a9004(0x149)](){var _0x495213=_0x3a9004,_0x284ad9;this[_0x495213(0x1a6)]['next'](_0x495213(0x13d)),(_0x284ad9=this['_commandDisposable'])==null||_0x284ad9['dispose']();}[_0x3a9004(0x1c5)](){var _0x4d1154=_0x3a9004;this[_0x4d1154(0x1a6)]['next'](_0x4d1154(0x187)),this[_0x4d1154(0x145)]();}};C=Z([f(0x2,_0x2f8d1e),f(0x3,_0x27f4aa(L)),f(0x4,_0x4c8a99)],C);function Te(){var _0x1928b8=_0x3a9004;const _0x480d93=_0x14674a(I),_0x29b494=_0x14674a(_0x28bdc3),_0x94dc4f=_0xb5b489(()=>_0x29b494['getCurrentTypeOfUnit$'](_0x184fe8[_0x1928b8(0x194)]),void 0x0,!0x1,[]),[_0x3b5bf5,_0x5b4385]=_0x393f21(null),[_0x2bb3d3,_0x5c842d]=_0x393f21(h[_0x1928b8(0x12f)]),_0x30457d=_0x4dee9e(null);return _0x1e7f8d(()=>(_0x94dc4f&&_0x480d93[_0x1928b8(0x17a)](_0x94dc4f[_0x1928b8(0x148)]())['then'](_0xffc51b=>{var _0x2da001=_0x1928b8;_0x5b4385(_0xffc51b),_0x30457d['current']=_0xffc51b[_0x2da001(0x160)][_0x2da001(0x1ca)](_0x43e85e=>{_0x5c842d(_0x43e85e);});}),()=>{var _0x151577=_0x1928b8,_0x4896a7;(_0x4896a7=_0x30457d[_0x151577(0x19c)])==null||_0x4896a7[_0x151577(0x17b)](),_0x30457d[_0x151577(0x19c)]=null;}),[_0x94dc4f,_0x480d93]),_0x3b5bf5?_0x1148da(_0x5dae37,{'align':'end','disabled':_0x2bb3d3===h[_0x1928b8(0x12d)],'className':_0x1928b8(0x1b0),'overlay':_0x1148da($e,{'status':_0x2bb3d3,'coordinator':_0x3b5bf5}),'children':_0x1148da('button',{'className':_0x19ae26(_0x1928b8(0x12a),{'univer-cursor-not-allowed':_0x2bb3d3===h[_0x1928b8(0x12d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2bb3d3!==h[_0x1928b8(0x12d)]}),'type':_0x1928b8(0x1c6),'children':_0x1148da(B,{'className':_0x1928b8(0x126)})})}):null;}function $e(_0x427392){var _0x595514=_0x3a9004;const {status:_0x46fa8d,coordinator:_0x3ede99}=_0x427392;switch(_0x46fa8d){case h[_0x595514(0x12f)]:return _0x1148da(Fe,{'coordinator':_0x3ede99});case h[_0x595514(0x177)]:return _0x1148da(He,{'coordinator':_0x3ede99});case h['NOT_FOLLOWING']:return _0x1148da(je,{'coordinator':_0x3ede99});case h[_0x595514(0x12d)]:return _0x1148da(Ve,{});case h[_0x595514(0x16e)]:return _0x1148da(Ue,{'coordinator':_0x3ede99});default:return null;}}function Fe(_0x489de1){var _0x5b60=_0x3a9004;const {coordinator:_0x4d6fbb}=_0x489de1;return _0x5ec651(_0x145b60,{'children':[_0x1148da('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5b60(0x185)}),_0x1148da(_0x1423fd,{'onClick':()=>_0x4d6fbb[_0x5b60(0x190)](),'children':_0x5b60(0x142)})]});}function He(_0x3551eb){var _0x514d4e=_0x3a9004;const {coordinator:_0x5ddfdf}=_0x3551eb;return _0x5ec651(_0x145b60,{'children':[_0x1148da(_0x514d4e(0x12b),{'className':_0x514d4e(0x13a),'children':_0x514d4e(0x1c2)}),_0x1148da(_0x1423fd,{'onClick':()=>_0x5ddfdf['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x532b46){var _0x214219=_0x3a9004;const {coordinator:_0x2ce70e}=_0x532b46;return _0x5ec651(_0x145b60,{'children':[_0x1148da('div',{'className':_0x214219(0x13a),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1148da(_0x1423fd,{'variant':'text','onClick':()=>_0x2ce70e[_0x214219(0x183)](),'children':_0x214219(0x1b8)})]});}function Ue(_0x1604bd){var _0xa86fc4=_0x3a9004;const {coordinator:_0x3e7eb2}=_0x1604bd;return _0x5ec651(_0x145b60,{'children':[_0x1148da(_0xa86fc4(0x12b),{'className':_0xa86fc4(0x13a),'children':_0xa86fc4(0x1c1)}),_0x1148da(_0x1423fd,{'variant':'default','onClick':()=>_0x3e7eb2['stopPresenting'](),'children':_0xa86fc4(0x1a5)})]});}function Ve(){return _0x1148da(_0x145b60,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x2748cc,_0x4cbaab,_0x478cfa,_0x2f7305)=>{for(var _0x5941c3=_0x2f7305>0x1?void 0x0:_0x2f7305?Me(_0x4cbaab,_0x478cfa):_0x4cbaab,_0x5aa938=_0x2748cc['length']-0x1,_0x463870;_0x5aa938>=0x0;_0x5aa938--)(_0x463870=_0x2748cc[_0x5aa938])&&(_0x5941c3=_0x463870(_0x5941c3)||_0x5941c3);return _0x5941c3;},$=(_0x102b55,_0x2451de)=>(_0x155aa3,_0x3ba4c2)=>_0x2451de(_0x155aa3,_0x3ba4c2,_0x102b55);let b=class extends _0x317463{constructor(_0x16e13d,_0x3b9d16){var _0x32089c=_0x3a9004;super(),this[_0x32089c(0x1b2)]=_0x16e13d,this[_0x32089c(0x191)]=_0x3b9d16,this[_0x32089c(0x1b5)]();}[_0x3a9004(0x1b5)](){var _0x2f61d2=_0x3a9004;this[_0x2f61d2(0x169)](this[_0x2f61d2(0x191)][_0x2f61d2(0x1be)](_0x29a0d9[_0x2f61d2(0x14b)],()=>_0x51bf03(Te,this[_0x2f61d2(0x1b2)])));}};b=ke([$(0x0,_0x27f4aa(_0x495900)),$(0x1,_0x38a075)],b);var Ge=Object[_0x3a9004(0x1a0)],We=Object[_0x3a9004(0x173)],Ye=(_0x430380,_0x33a476,_0x404f3a)=>_0x33a476 in _0x430380?Ge(_0x430380,_0x33a476,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404f3a}):_0x430380[_0x33a476]=_0x404f3a,Be=(_0x54b0da,_0x2b9bdd,_0x49e10b,_0x1755e7)=>{var _0x5d8440=_0x3a9004;for(var _0x38f2b5=_0x1755e7>0x1?void 0x0:_0x1755e7?We(_0x2b9bdd,_0x49e10b):_0x2b9bdd,_0x5f3ced=_0x54b0da[_0x5d8440(0x19f)]-0x1,_0x12305b;_0x5f3ced>=0x0;_0x5f3ced--)(_0x12305b=_0x54b0da[_0x5f3ced])&&(_0x38f2b5=_0x12305b(_0x38f2b5)||_0x38f2b5);return _0x38f2b5;},F=(_0x328a8b,_0x441bf8)=>(_0x38b365,_0x557192)=>_0x441bf8(_0x38b365,_0x557192,_0x328a8b),J=(_0x48896d,_0x506de4,_0xafc80f)=>Ye(_0x48896d,typeof _0x506de4!='symbol'?_0x506de4+'':_0x506de4,_0xafc80f);function _0x50ee(_0x357af5,_0x33d458){var _0x48e519=_0x48e5();return _0x50ee=function(_0x50eea8,_0x42fa9c){_0x50eea8=_0x50eea8-0x122;var _0x425dec=_0x48e519[_0x50eea8];return _0x425dec;},_0x50ee(_0x357af5,_0x33d458);}const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x432084{constructor(_0x26d9b6=T,_0x49a2bb,_0x5860ee){var _0x217c37=_0x3a9004;super(),this[_0x217c37(0x150)]=_0x26d9b6,this[_0x217c37(0x1b2)]=_0x49a2bb,this[_0x217c37(0x167)]=_0x5860ee;const {..._0x92a2a}=_0x6d2ee8({},T,this['_config']);this[_0x217c37(0x167)][_0x217c37(0x1ba)](Oe,_0x92a2a);}[_0x3a9004(0x14c)](){var _0x39d98f=_0x3a9004;_0x734f14(this[_0x39d98f(0x1b2)],_0x4359e6([[L],[I],[m],[b]],this[_0x39d98f(0x150)][_0x39d98f(0x197)])),_0x2ee2f7(this[_0x39d98f(0x1b2)],[[m]]);}[_0x3a9004(0x1ab)](){var _0x16ebb4=_0x3a9004;_0x2ee2f7(this[_0x16ebb4(0x1b2)],[[b]]);}};J(O,_0x3a9004(0x19b),_0x184fe8['UNIVER_UNKNOWN']),J(O,_0x3a9004(0x163),Ze),O=Be([_0xc02580(_0x59c281),F(0x1,_0x27f4aa(_0x495900)),F(0x2,_0x2f8d1e)],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 _0x20f48d=_0x39bb;(function(_0x2c2ed3,_0x4cc686){var _0x3fec1a=_0x39bb,_0x93ac42=_0x2c2ed3();while(!![]){try{var _0x368a15=-parseInt(_0x3fec1a(0x14e))/0x1*(parseInt(_0x3fec1a(0x153))/0x2)+-parseInt(_0x3fec1a(0xe4))/0x3*(parseInt(_0x3fec1a(0x131))/0x4)+-parseInt(_0x3fec1a(0xfa))/0x5+parseInt(_0x3fec1a(0x10f))/0x6*(parseInt(_0x3fec1a(0xda))/0x7)+-parseInt(_0x3fec1a(0x13f))/0x8*(parseInt(_0x3fec1a(0x15b))/0x9)+parseInt(_0x3fec1a(0xfc))/0xa+parseInt(_0x3fec1a(0x160))/0xb*(parseInt(_0x3fec1a(0x16a))/0xc);if(_0x368a15===_0x4cc686)break;else _0x93ac42['push'](_0x93ac42['shift']());}catch(_0x5bb1a1){_0x93ac42['push'](_0x93ac42['shift']());}}}(_0x1354,0x98d78));var q=Object[_0x20f48d(0x122)],z=(_0x5a6317,_0x42ce78,_0x14d706)=>_0x42ce78 in _0x5a6317?q(_0x5a6317,_0x42ce78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d706}):_0x5a6317[_0x42ce78]=_0x14d706,d=(_0x33db0b,_0x3fe3d6,_0x1a9268)=>z(_0x33db0b,typeof _0x3fe3d6!=_0x20f48d(0xf1)?_0x3fe3d6+'':_0x3fe3d6,_0x1a9268);import{CollaborationSessionService as _0xc5bf75,SessionStatus as _0x7c9eda,UniverCollaborationClientPlugin as _0x2d4e6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1a511f,toDisposable as _0x3f3e9d,Inject as _0x5e6b53,IUniverInstanceService as _0x10d7b1,Injector as _0x25d4db,IConfigService as _0x27f4d,ICommandService as _0x4bf68b,RxDisposable as _0x4aa7c3,UniverInstanceType as _0x1df0c8,DisposableCollection as _0x48f9ff,CommandType as _0x39bd65,DependentOn as _0x1a4ce7,Plugin as _0x5c6f5f,merge as _0x1b809b,registerDependencies as _0x1d9d68,mergeOverrideWithDependencies as _0x1c6ef3,touchDependencies as _0x4e8b78}from'@univerjs/core';function _0x1354(){var _0x193eb8=['getOwnPropertySymbols','delete','add','LIVESHARE_REQUEST_HOST','3822qvuYSI','mask','Start\x20following','icon','Present\x20this\x20document','trim','onStarting','toString','presenter','pluginName','string','getMemberID','default','_startFollowing','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27are\x20offline.','currentColor','shouldShareOperation','defineProperty','OFFLINE','sessionStatus$','idle','mutations','_configService','getTypeOfUnitAdded$','sheet','pipe','function','set','disposeWithMe','requireSession','getCurrentTypeOfUnit$','_liveShareService','22508DkZXBX','event$','div','getTypeOfUnitDisposed$','_mountLiveShare','replace','HEADER_MENU','executeCommand','getConfig','colorChannel1','_entities','path','get','IDLE','3325032VliWIt','memberID','ONLINE','offline','reverse','_univerInstanceService','_startLiveShareCoordinator','getUnitId','entries','not-following','data','FOLLOWING','indexOf','startFollowing','forEach','1096319BgspSD','complete','_handleOperation','_commandDisposable','idSuffix','2XeScrb','1em','following','children','defs','extend','_handleTerminate','getInitialStates','27GdMIPB','tryStartPresenting','registerSharedOperation','substring','_sharedOperations','11NvWjpe','random','unsubscribe','_stopPresenting','_config','_status','_uiPartsService','then','You\x27re\x20not\x20following\x20the\x20presenter','text','42252636MBuIPn','_beIdle','LIVESHARE_OPERATION','presenting','_handleOffline','status$','stopPresenting','values','clear','displayName','_handleNewChangeSets','_fetchOperations','button','use','_collabSessionService','You\x27re\x20following\x20the\x20presenter','xlink:href','PRESENTING','0\x200\x2017\x2017','_injector','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','prototype','UNIVER_SHEET','univer-size-4','send','propertyIsEnumerable','onRendered','stopFollowing','apply','getLiveShareCoordinator','subscribe','map','init','call','Start','defIds','stringify','registerInitialStateReporter','9548uqyBEd','length','attrs','current','live-share.config','_reporters','unitId','_status$','_init','tag','597nRqtBa','includes','SAME_OPERATION_SHARE_INTERVAL','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','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','hasOwnProperty','LIVESHARE_NEW_HOST','has','_stopFollowing','onCommandExecuted','type','className','LIVESHARE_TERMINATE','symbol','_commandService','_unitID','fill','dispose','LiveShareIcon','evenodd','dispose$','assign','2851440mbZLZW','_collabSession','2693860fzOzxd','http://www.w3.org/2000/svg','_handleNewHost','params','concat','getOwnPropertyDescriptor','_startPresenting','_handleOnline','_presenter','end','url(#$1','createInstance','UNIVER_UNKNOWN','next','registerComponent'];_0x1354=function(){return _0x193eb8;};return _0x1354();}import{SetWorksheetActiveOperation as _0x30ebd3,InsertSheetMutation as _0x3e383d}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2686c8,SetScrollOperation as _0x15ddba}from'@univerjs/sheets-ui';import{useDependency as _0x2713b0,useObservable as _0x1d60ce,IUIPartsService as _0xe05b9c,BuiltInUIPart as _0x22f3b6,connectInjector as _0x123b5d}from'@univerjs/ui';import{jsx as _0x591b4e,jsxs as _0xf95584,Fragment as _0xb7edf3}from'react/jsx-runtime';import{Dropdown as _0x3a1168,clsx as _0x25609c,Button as _0x3b8bcf}from'@univerjs/design';function _0x39bb(_0x58224d,_0x8a8988){var _0x13544a=_0x1354();return _0x39bb=function(_0x39bb79,_0x2af241){_0x39bb79=_0x39bb79-0xbf;var _0x19cce5=_0x13544a[_0x39bb79];return _0x19cce5;},_0x39bb(_0x58224d,_0x8a8988);}import{forwardRef as _0x11114f,useRef as _0x5991aa,createElement as _0x3f4386,useState as _0x5e8cb1,useEffect as _0x613455}from'react';import{CollaborationEvent as _0x18a2fa,parseProtocolChangeset as _0x585eb4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xd52750,Subject as _0x127c60}from'rxjs';import{takeUntil as _0xc6f40a,throttleTime as _0x34d54c}from'rxjs/operators';const Oe=_0x20f48d(0xde),T={};class L extends _0x1a511f{constructor(){var _0x16e71b=_0x20f48d;super(...arguments),d(this,_0x16e71b(0x15f),new Set()),d(this,_0x16e71b(0xdf),new Set());}['registerSharedOperation'](_0x5abf48){var _0x561a43=_0x20f48d;return this[_0x561a43(0x15f)][_0x561a43(0x10d)](_0x5abf48),_0x3f3e9d(()=>this[_0x561a43(0x15f)][_0x561a43(0x10c)](_0x5abf48));}[_0x20f48d(0xd9)](_0x248586){var _0x3b4578=_0x20f48d;return this[_0x3b4578(0xdf)][_0x3b4578(0x10d)](_0x248586),_0x3f3e9d(()=>this[_0x3b4578(0xdf)][_0x3b4578(0x10c)](_0x248586));}['shouldShareOperation'](_0x576407){var _0x4cd022=_0x20f48d;return this['_sharedOperations'][_0x4cd022(0xeb)](_0x576407);}[_0x20f48d(0x15a)](_0x3d2644){var _0x3a25f0=_0x20f48d;return Array['from'](this[_0x3a25f0(0xdf)])[_0x3a25f0(0xd3)](_0x59d816=>_0x59d816(_0x3d2644));}}var Ee=Object[_0x20f48d(0x101)],we=(_0x391951,_0x129d60,_0x417ef3,_0x3bbed2)=>{var _0xc20129=_0x20f48d;for(var _0x284266=_0x3bbed2>0x1?void 0x0:_0x3bbed2?Ee(_0x129d60,_0x417ef3):_0x129d60,_0x4a4069=_0x391951[_0xc20129(0xdb)]-0x1,_0x58d83b;_0x4a4069>=0x0;_0x4a4069--)(_0x58d83b=_0x391951[_0x4a4069])&&(_0x284266=_0x58d83b(_0x284266)||_0x284266);return _0x284266;},Ne=(_0x27cc41,_0x37a93a)=>(_0x51a5aa,_0x5f5dc8)=>_0x37a93a(_0x51a5aa,_0x5f5dc8,_0x27cc41);let m=class extends _0x1a511f{constructor(_0x5c72e2){var _0x3efb33=_0x20f48d;super(),this[_0x3efb33(0x130)]=_0x5c72e2,this[_0x3efb33(0xe2)]();}['_init'](){var _0x253745=_0x20f48d;[_0x2686c8['id'],_0x15ddba['id'],_0x30ebd3['id']][_0x253745(0x14d)](_0x34b4ee=>{var _0x13e36c=_0x253745;this[_0x13e36c(0x12d)](this[_0x13e36c(0x130)][_0x13e36c(0x15d)](_0x34b4ee));});}};m=we([Ne(0x0,_0x5e6b53(L))],m);var c=function(){var _0x32987f=_0x20f48d;return c=Object[_0x32987f(0xf9)]||function(_0x5ea257){var _0x1dda28=_0x32987f;for(var _0x4f84b5,_0x16f4a2=0x1,_0x465a70=arguments[_0x1dda28(0xdb)];_0x16f4a2<_0x465a70;_0x16f4a2++){_0x4f84b5=arguments[_0x16f4a2];for(var _0xb9a3ce in _0x4f84b5)Object[_0x1dda28(0xc9)][_0x1dda28(0xe9)][_0x1dda28(0xd5)](_0x4f84b5,_0xb9a3ce)&&(_0x5ea257[_0xb9a3ce]=_0x4f84b5[_0xb9a3ce]);}return _0x5ea257;},c[_0x32987f(0xd0)](this,arguments);},Ce=function(_0x10fc2d,_0x532d5a){var _0x312b0e=_0x20f48d,_0x126207={};for(var _0x2da836 in _0x10fc2d)Object[_0x312b0e(0xc9)][_0x312b0e(0xe9)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836)&&_0x532d5a[_0x312b0e(0x14b)](_0x2da836)<0x0&&(_0x126207[_0x2da836]=_0x10fc2d[_0x2da836]);if(_0x10fc2d!=null&&typeof Object[_0x312b0e(0x10b)]==_0x312b0e(0x12b)){for(var _0x17929f=0x0,_0x2da836=Object['getOwnPropertySymbols'](_0x10fc2d);_0x17929f<_0x2da836[_0x312b0e(0xdb)];_0x17929f++)_0x532d5a[_0x312b0e(0x14b)](_0x2da836[_0x17929f])<0x0&&Object['prototype'][_0x312b0e(0xcd)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836[_0x17929f])&&(_0x126207[_0x2da836[_0x17929f]]=_0x10fc2d[_0x2da836[_0x17929f]]);}return _0x126207;},W=_0x11114f(function(_0x48085e,_0x138cf8){var _0x4cb002=_0x20f48d,_0xff3a=_0x48085e['icon'],_0x58397f=_0x48085e['id'],_0x2d9278=_0x48085e[_0x4cb002(0xef)],_0x4783b6=_0x48085e[_0x4cb002(0x158)],_0x61ae00=Ce(_0x48085e,[_0x4cb002(0x112),'id','className',_0x4cb002(0x158)]),_0x586eda='univerjs-icon\x20univerjs-icon-'[_0x4cb002(0x100)](_0x58397f,'\x20')[_0x4cb002(0x100)](_0x2d9278||'')[_0x4cb002(0x114)](),_0xaf7d55=_0x5991aa('_'['concat'](Le()));return Y(_0xff3a,''['concat'](_0x58397f),{'defIds':_0xff3a[_0x4cb002(0xd7)],'idSuffix':_0xaf7d55['current']},c({'ref':_0x138cf8,'className':_0x586eda},_0x61ae00),_0x4783b6);});function Y(_0x1aa5ea,_0x499209,_0x5dec01,_0x1f6278,_0x4e4d66){var _0x1626d8=_0x20f48d;return _0x3f4386(_0x1aa5ea['tag'],c(c({'key':_0x499209},De(_0x1aa5ea,_0x5dec01,_0x4e4d66)),_0x1f6278),(xe(_0x1aa5ea,_0x5dec01)[_0x1626d8(0x156)]||[])[_0x1626d8(0xd3)](function(_0x560e67,_0x1a6182){var _0x498a95=_0x1626d8;return Y(_0x560e67,''[_0x498a95(0x100)](_0x499209,'-')['concat'](_0x1aa5ea[_0x498a95(0xe3)],'-')[_0x498a95(0x100)](_0x1a6182),_0x5dec01,void 0x0,_0x4e4d66);}));}function De(_0x3ebdf1,_0x3cc285,_0xade262){var _0x583d8d=_0x20f48d,_0x5c752b=c({},_0x3ebdf1[_0x583d8d(0xdc)]);_0xade262!=null&&_0xade262[_0x583d8d(0x13a)]&&_0x5c752b[_0x583d8d(0xf4)]===_0x583d8d(0x13a)&&(_0x5c752b[_0x583d8d(0xf4)]=_0xade262[_0x583d8d(0x13a)]),_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0x110)&&_0x5c752b['id']&&(_0x5c752b['id']=_0x5c752b['id']+_0x3cc285[_0x583d8d(0x152)]),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0xa41835){var _0x59ad06=_0x583d8d,_0x40322d=_0xa41835[0x0],_0x42f436=_0xa41835[0x1];_0x40322d==='mask'&&typeof _0x42f436==_0x59ad06(0x119)&&(_0x5c752b[_0x40322d]=_0x42f436[_0x59ad06(0x136)](/url\(#(.*)\)/,_0x59ad06(0x106)[_0x59ad06(0x100)](_0x3cc285[_0x59ad06(0x152)],')')));});var _0x5c70bf=_0x3cc285[_0x583d8d(0xd7)];return!_0x5c70bf||_0x5c70bf['length']===0x0||(_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0xc0)&&_0x5c752b['xlink:href']&&(_0x5c752b[_0x583d8d(0xc3)]=_0x5c752b[_0x583d8d(0xc3)]+_0x3cc285['idSuffix']),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0x8460c7){var _0x165fd7=_0x583d8d,_0x5488b6=_0x8460c7[0x0],_0x51c173=_0x8460c7[0x1];typeof _0x51c173=='string'&&(_0x5c752b[_0x5488b6]=_0x51c173['replace'](/url\(#(.*)\)/,'url(#$1'[_0x165fd7(0x100)](_0x3cc285[_0x165fd7(0x152)],')')));})),_0x5c752b;}function xe(_0x230754,_0x2da33b){var _0x2fa412=_0x20f48d,_0x5be48b,_0x49f6c1=_0x2da33b[_0x2fa412(0xd7)];return!_0x49f6c1||_0x49f6c1['length']===0x0?_0x230754:_0x230754[_0x2fa412(0xe3)]===_0x2fa412(0x157)&&(!((_0x5be48b=_0x230754[_0x2fa412(0x156)])===null||_0x5be48b===void 0x0)&&_0x5be48b[_0x2fa412(0xdb)])?c(c({},_0x230754),{'children':_0x230754[_0x2fa412(0x156)][_0x2fa412(0xd3)](function(_0x5b1f6b){var _0x33d8a6=_0x2fa412;return typeof _0x5b1f6b[_0x33d8a6(0xdc)]['id']==_0x33d8a6(0x119)&&_0x49f6c1&&_0x49f6c1[_0x33d8a6(0xe5)](_0x5b1f6b[_0x33d8a6(0xdc)]['id'])?c(c({},_0x5b1f6b),{'attrs':c(c({},_0x5b1f6b[_0x33d8a6(0xdc)]),{'id':_0x5b1f6b['attrs']['id']+_0x2da33b[_0x33d8a6(0x152)]})}):_0x5b1f6b;})}):_0x230754;}function Le(){var _0xfe5172=_0x20f48d;return Math[_0xfe5172(0x161)]()[_0xfe5172(0x116)](0x24)[_0xfe5172(0x15e)](0x2,0x8);}W[_0x20f48d(0x173)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x20f48d(0xfd),'fill':'none','viewBox':_0x20f48d(0xc5),'width':_0x20f48d(0x154),'height':_0x20f48d(0x154)},'children':[{'tag':'path','attrs':{'fill':_0x20f48d(0x120),'d':_0x20f48d(0xe7)}},{'tag':_0x20f48d(0x13c),'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':_0x20f48d(0xf7),'clipRule':'evenodd'}}]},B=_0x11114f(function(_0xd0a02f,_0x2d7153){var _0x5e4663=_0x20f48d;return _0x3f4386(W,Object[_0x5e4663(0xf9)]({},_0xd0a02f,{'id':'live-share-icon','ref':_0x2d7153,'icon':ye}));});B[_0x20f48d(0x173)]=_0x20f48d(0xf6);var Re=Object[_0x20f48d(0x101)],Z=(_0x2daa00,_0x508644,_0x38e735,_0x2fb5bd)=>{for(var _0xe27228=_0x2fb5bd>0x1?void 0x0:_0x2fb5bd?Re(_0x508644,_0x38e735):_0x508644,_0x21afd2=_0x2daa00['length']-0x1,_0x42809d;_0x21afd2>=0x0;_0x21afd2--)(_0x42809d=_0x2daa00[_0x21afd2])&&(_0xe27228=_0x42809d(_0xe27228)||_0xe27228);return _0xe27228;},f=(_0x3194ec,_0x1f7372)=>(_0x2b2128,_0x4d7cd6)=>_0x1f7372(_0x2b2128,_0x4d7cd6,_0x3194ec);let I=class extends _0x4aa7c3{constructor(_0x48d520,_0xb09bbc,_0x3d90ba){var _0xc18116=_0x20f48d;super(),d(this,'_entities',new Map()),(this[_0xc18116(0x144)]=_0x48d520,this[_0xc18116(0xc6)]=_0xb09bbc,this[_0xc18116(0xc1)]=_0x3d90ba,this[_0xc18116(0xe2)]());}async[_0x20f48d(0xd1)](_0x58de9f){var _0x183613=_0x20f48d;return this[_0x183613(0x13b)][_0x183613(0xeb)](_0x58de9f)||await this[_0x183613(0x145)](_0x58de9f),this[_0x183613(0x13b)]['get'](_0x58de9f);}['_init'](){var _0x4a2baa=_0x20f48d;this[_0x4a2baa(0x144)][_0x4a2baa(0x128)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this[_0x4a2baa(0xf8)]))[_0x4a2baa(0xd2)](async _0x3dd5b2=>{var _0x1b839b=_0x4a2baa;const _0x58086a=_0x3dd5b2['getUnitId']();this[_0x1b839b(0x13b)][_0x1b839b(0xeb)](_0x58086a)||this[_0x1b839b(0x145)](_0x58086a);}),this[_0x4a2baa(0x144)][_0x4a2baa(0x134)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this['dispose$']))[_0x4a2baa(0xd2)](_0x12bc9a=>{var _0x41fc05=_0x4a2baa;const _0x70ebec=_0x12bc9a[_0x41fc05(0x146)](),_0x1aae01=this[_0x41fc05(0x13b)]['get'](_0x70ebec);_0x1aae01==null||_0x1aae01[_0x41fc05(0xf5)]();});}async['_startLiveShareCoordinator'](_0x5c4a12){var _0x3cca2=_0x20f48d;const _0x43f3a1=await this['_collabSessionService'][_0x3cca2(0x12e)](_0x5c4a12),_0x35cc71=this[_0x3cca2(0xc6)][_0x3cca2(0x107)](C,_0x5c4a12,_0x43f3a1);return _0x35cc71[_0x3cca2(0xd4)](),this[_0x3cca2(0x13b)][_0x3cca2(0x12c)](_0x5c4a12,_0x35cc71),_0x35cc71;}};I=Z([f(0x0,_0x10d7b1),f(0x1,_0x5e6b53(_0x25d4db)),f(0x2,_0x5e6b53(_0xc5bf75))],I);var h=(_0x149a58=>(_0x149a58[_0x20f48d(0x123)]=_0x20f48d(0x142),_0x149a58[_0x20f48d(0x13e)]=_0x20f48d(0x125),_0x149a58[_0x20f48d(0x14a)]='following',_0x149a58['NOT_FOLLOWING']=_0x20f48d(0x148),_0x149a58[_0x20f48d(0xc4)]=_0x20f48d(0x16d),_0x149a58))(h||{});const Pe=_0x20f48d(0xe6),Ae=0xc8;let C=class extends _0x4aa7c3{constructor(_0x21c6dc,_0x1aa65a,_0x19fcf3,_0x9bf42f,_0x6c312d){var _0x24e1a3=_0x20f48d;super(),d(this,_0x24e1a3(0xe1),new _0xd52750(_0x24e1a3(0x125))),d(this,'status$',this[_0x24e1a3(0xe1)]['asObservable']()),d(this,_0x24e1a3(0xe2),!0x1),d(this,_0x24e1a3(0x151),null),d(this,'_presenter',null),(this['_unitID']=_0x21c6dc,this['_collabSession']=_0x1aa65a,this['_configService']=_0x19fcf3,this[_0x24e1a3(0x130)]=_0x9bf42f,this[_0x24e1a3(0xf2)]=_0x6c312d);}get[_0x20f48d(0x165)](){var _0x145d52=_0x20f48d;return this[_0x145d52(0xe1)]['getValue']();}['dispose'](){var _0x2d6852=_0x20f48d,_0x33e68e;(_0x33e68e=this['_commandDisposable'])==null||_0x33e68e[_0x2d6852(0xf5)](),this['_status$'][_0x2d6852(0x109)](_0x2d6852(0x125)),this[_0x2d6852(0xe1)][_0x2d6852(0x14f)]();}[_0x20f48d(0xd4)](){var _0x181658=_0x20f48d;this[_0x181658(0xe2)]||(this[_0x181658(0xe2)]=!0x0,this[_0x181658(0xfb)][_0x181658(0x124)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x126922=>{var _0x5ba407=_0x181658;switch(_0x126922){case _0x7c9eda[_0x5ba407(0x123)]:this[_0x5ba407(0x16e)]();break;case _0x7c9eda[_0x5ba407(0x141)]:this[_0x5ba407(0x103)]();break;}}),this['_collabSession'][_0x181658(0x132)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x73fbaa=>{var _0x6da9e7=_0x181658;const {eventID:_0x33fe2a}=_0x73fbaa;switch(_0x33fe2a){case _0x18a2fa[_0x6da9e7(0xea)]:this[_0x6da9e7(0xfe)](_0x73fbaa);break;case _0x18a2fa['LIVESHARE_OPERATION']:this['_handleOperation'](_0x73fbaa);break;case _0x18a2fa[_0x6da9e7(0xf0)]:this[_0x6da9e7(0x159)]();break;case _0x18a2fa[_0x6da9e7(0xc7)]:this[_0x6da9e7(0x174)](_0x73fbaa);break;}}));}[_0x20f48d(0x15c)](){var _0xa7feb9=_0x20f48d;this[_0xa7feb9(0xfb)][_0xa7feb9(0xcc)]({'eventID':_0x18a2fa[_0xa7feb9(0x10e)],'data':{'unitID':this[_0xa7feb9(0xf3)],'userID':this[_0xa7feb9(0xfb)]['getMemberID']()}},this[_0xa7feb9(0xf3)]);}[_0x20f48d(0x170)](){var _0x2a5616=_0x20f48d;this['_status']===_0x2a5616(0x16d)&&(this['_status$']['next'](_0x2a5616(0x125)),this[_0x2a5616(0xfb)]['send']({'eventID':_0x18a2fa['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2a5616(0xf3)]}},this[_0x2a5616(0xf3)]));}['startFollowing'](){var _0x106373=_0x20f48d;this[_0x106373(0x165)]==='not-following'&&(this[_0x106373(0xe1)]['next'](_0x106373(0x155)),this[_0x106373(0x11c)]());}[_0x20f48d(0xcf)](){var _0x617ad6=_0x20f48d;this[_0x617ad6(0x165)]==='following'&&this[_0x617ad6(0xec)]();}[_0x20f48d(0xfe)](_0x27b3f4){var _0x232fe9=_0x20f48d;const {presenter:_0x278bf3}=_0x27b3f4[_0x232fe9(0x149)],_0x4e497e=this[_0x232fe9(0xfb)][_0x232fe9(0x11a)]();this[_0x232fe9(0x104)]=_0x278bf3,_0x278bf3===_0x4e497e?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x232fe9(0x165)]!=='not-following'&&(this['_stopPresenting'](),this[_0x232fe9(0x11c)]());}[_0x20f48d(0x175)](){var _0x1ea5f2=_0x20f48d;const _0x14d822={'eventID':_0x18a2fa['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x1ea5f2(0xcc)](_0x14d822,this[_0x1ea5f2(0xf3)]);}['_handleTerminate'](){var _0x277797=_0x20f48d;this[_0x277797(0x104)]=null,this[_0x277797(0x165)]!==_0x277797(0x16d)&&this['_beIdle']();}[_0x20f48d(0x174)](_0x53c9c9){var _0x3876b0=_0x20f48d;if(this[_0x3876b0(0x165)]==='following'&&this['_presenter']===_0x53c9c9[_0x3876b0(0x149)][_0x3876b0(0x140)]){const _0x2d880f=_0x585eb4(_0x53c9c9['data'])[_0x3876b0(0x126)][_0x3876b0(0x143)]()['find'](_0x7f9915=>_0x7f9915['id']===_0x3e383d['id']);if(_0x2d880f){const _0x5dc93c=_0x2d880f['params'][_0x3876b0(0xe0)],_0x5c171c=_0x2d880f[_0x3876b0(0xff)][_0x3876b0(0x129)]['id'];setTimeout(()=>{var _0x101596=_0x3876b0;this[_0x101596(0xf2)][_0x101596(0x138)](_0x30ebd3['id'],{'unitId':_0x5dc93c,'subUnitId':_0x5c171c},{'fromCollab':!0x0});});}}}[_0x20f48d(0x102)](){var _0x107fad=_0x20f48d;this[_0x107fad(0xe1)][_0x107fad(0x109)](_0x107fad(0x16d));const _0x189c64=new Map(),_0x51dce0=this[_0x107fad(0x151)]=new _0x48f9ff();_0x51dce0['add'](_0x3f3e9d(()=>{var _0x1223dc=_0x107fad;_0x189c64['forEach'](_0x301d7d=>_0x301d7d[_0x1223dc(0x14f)]()),_0x189c64[_0x1223dc(0x172)]();})),_0x51dce0[_0x107fad(0x10d)](this[_0x107fad(0xf2)][_0x107fad(0xed)](_0x1dd1f2=>{var _0x162e69=_0x107fad,_0x1fe835;if(_0x1dd1f2[_0x162e69(0xee)]!==_0x39bd65['OPERATION']||!this[_0x162e69(0x130)][_0x162e69(0x121)](_0x1dd1f2['id']))return;const {id:_0x34e474}=_0x1dd1f2;let _0x2150e1;_0x189c64[_0x162e69(0xeb)](_0x34e474)?_0x2150e1=_0x189c64[_0x162e69(0x13d)](_0x34e474):(_0x2150e1=new _0x127c60(),_0x189c64[_0x162e69(0x12c)](_0x34e474,_0x2150e1),_0x2150e1[_0x162e69(0x12a)](_0x34d54c((_0x1fe835=this[_0x162e69(0x127)][_0x162e69(0x139)](Pe))!=null?_0x1fe835:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x162e69(0xd2)](_0x40a9f3=>{var _0x198215=_0x162e69;this[_0x198215(0xfb)]['send']({'eventID':_0x18a2fa[_0x198215(0x16c)],'data':{'unitID':this[_0x198215(0xf3)],'operations':{[_0x40a9f3['id']]:{'id':_0x40a9f3['id'],'params':JSON[_0x198215(0xd8)](_0x40a9f3['params'])}}}},this[_0x198215(0xf3)]);})),_0x2150e1[_0x162e69(0x109)](_0x1dd1f2);})),this[_0x107fad(0x130)][_0x107fad(0x15a)](this[_0x107fad(0xf3)])[_0x107fad(0x14d)](_0x10b4f2=>this[_0x107fad(0xfb)][_0x107fad(0xcc)]({'eventID':_0x18a2fa['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x10b4f2['id']]:{'id':_0x10b4f2['id'],'params':JSON[_0x107fad(0xd8)](_0x10b4f2[_0x107fad(0xff)])}}}},this[_0x107fad(0xf3)]));}[_0x20f48d(0x163)](){var _0x45503f=_0x20f48d,_0x59a185;this['_status$']['next'](_0x45503f(0x125)),(_0x59a185=this[_0x45503f(0x151)])==null||_0x59a185[_0x45503f(0xf5)](),this[_0x45503f(0x151)]=null;}[_0x20f48d(0x11c)](){var _0x12d4d1=_0x20f48d,_0x56d0ac;(_0x56d0ac=this[_0x12d4d1(0x151)])==null||_0x56d0ac[_0x12d4d1(0xf5)](),this['_status$']['next'](_0x12d4d1(0x155));}[_0x20f48d(0x16b)](){var _0xbb4df2=_0x20f48d,_0x7320ea;this[_0xbb4df2(0xe1)][_0xbb4df2(0x109)](_0xbb4df2(0x125)),(_0x7320ea=this['_commandDisposable'])==null||_0x7320ea[_0xbb4df2(0xf5)](),this[_0xbb4df2(0x151)]=null;}[_0x20f48d(0xec)](){var _0x91d738=_0x20f48d,_0x152b2e;this['_status$']['next'](_0x91d738(0x148)),(_0x152b2e=this['_commandDisposable'])==null||_0x152b2e[_0x91d738(0xf5)]();}[_0x20f48d(0x150)](_0x507d49){var _0x5af945=_0x20f48d;if([_0x5af945(0x16d),'not-following',_0x5af945(0x142)][_0x5af945(0xe5)](this[_0x5af945(0x165)])||!_0x507d49[_0x5af945(0x149)][_0x5af945(0x117)]||_0x507d49['data']['presenter']===this[_0x5af945(0xfb)][_0x5af945(0x11a)]())return;this[_0x5af945(0x165)]===_0x5af945(0x125)&&this['_startFollowing']();const _0x2f79b6=_0x507d49[_0x5af945(0x149)]['operations'];Object[_0x5af945(0x171)](_0x2f79b6)['forEach'](_0x5594db=>{var _0x44fab5=_0x5af945;this[_0x44fab5(0xf2)][_0x44fab5(0x138)](_0x5594db['id'],_0x5594db[_0x44fab5(0xff)]?JSON['parse'](_0x5594db['params']):null,{'fromCollab':!0x0});});}[_0x20f48d(0x16e)](){var _0x15b16c=_0x20f48d,_0x5ce6d5;this[_0x15b16c(0xe1)][_0x15b16c(0x109)](_0x15b16c(0x142)),(_0x5ce6d5=this[_0x15b16c(0x151)])==null||_0x5ce6d5[_0x15b16c(0xf5)]();}[_0x20f48d(0x103)](){var _0x3a7680=_0x20f48d;this['_status$'][_0x3a7680(0x109)](_0x3a7680(0x125)),this[_0x3a7680(0x175)]();}};C=Z([f(0x2,_0x27f4d),f(0x3,_0x5e6b53(L)),f(0x4,_0x4bf68b)],C);function Te(){var _0x2a2912=_0x20f48d;const _0x3e0e8f=_0x2713b0(I),_0x1ab237=_0x2713b0(_0x10d7b1),_0x10fea5=_0x1d60ce(()=>_0x1ab237[_0x2a2912(0x12f)](_0x1df0c8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13482a,_0x2b578f]=_0x5e8cb1(null),[_0x355e54,_0xac4b1c]=_0x5e8cb1(h['IDLE']),_0x36257c=_0x5991aa(null);return _0x613455(()=>(_0x10fea5&&_0x3e0e8f[_0x2a2912(0xd1)](_0x10fea5[_0x2a2912(0x146)]())[_0x2a2912(0x167)](_0x36fad5=>{var _0x559aed=_0x2a2912;_0x2b578f(_0x36fad5),_0x36257c[_0x559aed(0xdd)]=_0x36fad5[_0x559aed(0x16f)][_0x559aed(0xd2)](_0x240c49=>{_0xac4b1c(_0x240c49);});}),()=>{var _0x50398e=_0x2a2912,_0xa10712;(_0xa10712=_0x36257c[_0x50398e(0xdd)])==null||_0xa10712[_0x50398e(0x162)](),_0x36257c[_0x50398e(0xdd)]=null;}),[_0x10fea5,_0x3e0e8f]),_0x13482a?_0x591b4e(_0x3a1168,{'align':_0x2a2912(0x105),'disabled':_0x355e54===h['OFFLINE'],'className':_0x2a2912(0xe8),'overlay':_0x591b4e($e,{'status':_0x355e54,'coordinator':_0x13482a}),'children':_0x591b4e(_0x2a2912(0xbf),{'className':_0x25609c(_0x2a2912(0xc8),{'univer-cursor-not-allowed':_0x355e54===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x355e54!==h[_0x2a2912(0x123)]}),'type':'button','children':_0x591b4e(B,{'className':_0x2a2912(0xcb)})})}):null;}function $e(_0x31e430){var _0x4c70ee=_0x20f48d;const {status:_0x49a101,coordinator:_0xbc1520}=_0x31e430;switch(_0x49a101){case h[_0x4c70ee(0x13e)]:return _0x591b4e(Fe,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x14a)]:return _0x591b4e(He,{'coordinator':_0xbc1520});case h['NOT_FOLLOWING']:return _0x591b4e(je,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x123)]:return _0x591b4e(Ve,{});case h[_0x4c70ee(0xc4)]:return _0x591b4e(Ue,{'coordinator':_0xbc1520});default:return null;}}function Fe(_0x20c32d){var _0x37eb8e=_0x20f48d;const {coordinator:_0x3175d9}=_0x20c32d;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x37eb8e(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x37eb8e(0x113)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0x3175d9[_0x37eb8e(0x15c)](),'children':_0x37eb8e(0xd6)})]});}function He(_0x312c16){var _0xe4c6ac=_0x20f48d;const {coordinator:_0xb1b530}=_0x312c16;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e('div',{'className':_0xe4c6ac(0x11e),'children':_0xe4c6ac(0xc2)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0xb1b530[_0xe4c6ac(0xcf)](),'children':'Stop\x20following'})]});}function je(_0x5a9d64){var _0x570224=_0x20f48d;const {coordinator:_0x1e4aa5}=_0x5a9d64;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x570224(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570224(0x168)}),_0x591b4e(_0x3b8bcf,{'variant':_0x570224(0x169),'onClick':()=>_0x1e4aa5[_0x570224(0x14c)](),'children':_0x570224(0x111)})]});}function Ue(_0x2a7216){var _0x31db84=_0x20f48d;const {coordinator:_0x2f30b4}=_0x2a7216;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x31db84(0x133),{'className':_0x31db84(0x11e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x591b4e(_0x3b8bcf,{'variant':_0x31db84(0x11b),'onClick':()=>_0x2f30b4[_0x31db84(0x170)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x1ea2b1=_0x20f48d;return _0x591b4e(_0xb7edf3,{'children':_0x1ea2b1(0x11f)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x1e86b3,_0x5704cc,_0x257239,_0x46ca42)=>{for(var _0x1c5c74=_0x46ca42>0x1?void 0x0:_0x46ca42?Me(_0x5704cc,_0x257239):_0x5704cc,_0x16e8d0=_0x1e86b3['length']-0x1,_0x6cf96c;_0x16e8d0>=0x0;_0x16e8d0--)(_0x6cf96c=_0x1e86b3[_0x16e8d0])&&(_0x1c5c74=_0x6cf96c(_0x1c5c74)||_0x1c5c74);return _0x1c5c74;},$=(_0x498f27,_0x3f0482)=>(_0x344315,_0x7a0af)=>_0x3f0482(_0x344315,_0x7a0af,_0x498f27);let b=class extends _0x1a511f{constructor(_0x1844b9,_0x2de9fd){var _0x7e94a1=_0x20f48d;super(),this[_0x7e94a1(0xc6)]=_0x1844b9,this[_0x7e94a1(0x166)]=_0x2de9fd,this[_0x7e94a1(0x135)]();}[_0x20f48d(0x135)](){var _0x44de3f=_0x20f48d;this[_0x44de3f(0x12d)](this[_0x44de3f(0x166)][_0x44de3f(0x10a)](_0x22f3b6[_0x44de3f(0x137)],()=>_0x123b5d(Te,this['_injector'])));}};b=ke([$(0x0,_0x5e6b53(_0x25d4db)),$(0x1,_0xe05b9c)],b);var Ge=Object[_0x20f48d(0x122)],We=Object[_0x20f48d(0x101)],Ye=(_0x15d16d,_0x4527c9,_0x440aed)=>_0x4527c9 in _0x15d16d?Ge(_0x15d16d,_0x4527c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x440aed}):_0x15d16d[_0x4527c9]=_0x440aed,Be=(_0xc1efcc,_0x1e7ca1,_0x3c23ac,_0x111ade)=>{var _0xfde630=_0x20f48d;for(var _0x5d8198=_0x111ade>0x1?void 0x0:_0x111ade?We(_0x1e7ca1,_0x3c23ac):_0x1e7ca1,_0x123851=_0xc1efcc[_0xfde630(0xdb)]-0x1,_0x5d8846;_0x123851>=0x0;_0x123851--)(_0x5d8846=_0xc1efcc[_0x123851])&&(_0x5d8198=_0x5d8846(_0x5d8198)||_0x5d8198);return _0x5d8198;},F=(_0x57a572,_0x3620b5)=>(_0x8a1bcb,_0x172e19)=>_0x3620b5(_0x8a1bcb,_0x172e19,_0x57a572),J=(_0x3d5ec4,_0x5c8a5f,_0x21eca2)=>Ye(_0x3d5ec4,typeof _0x5c8a5f!=_0x20f48d(0xf1)?_0x5c8a5f+'':_0x5c8a5f,_0x21eca2);const Ze=_0x20f48d(0x11d);let O=class extends _0x5c6f5f{constructor(_0x351256=T,_0x490d32,_0x8e6d18){var _0x56ffb4=_0x20f48d;super(),this['_config']=_0x351256,this[_0x56ffb4(0xc6)]=_0x490d32,this['_configService']=_0x8e6d18;const {..._0x14b40d}=_0x1b809b({},T,this[_0x56ffb4(0x164)]);this[_0x56ffb4(0x127)]['setConfig'](Oe,_0x14b40d);}[_0x20f48d(0x115)](){var _0x45a5aa=_0x20f48d;_0x1d9d68(this['_injector'],_0x1c6ef3([[L],[I],[m],[b]],this[_0x45a5aa(0x164)]['override'])),_0x4e8b78(this[_0x45a5aa(0xc6)],[[m]]);}[_0x20f48d(0xce)](){var _0xfd7ab0=_0x20f48d;_0x4e8b78(this[_0xfd7ab0(0xc6)],[[b]]);}};J(O,'type',_0x1df0c8[_0x20f48d(0x108)]),J(O,_0x20f48d(0x118),Ze),O=Be([_0x1a4ce7(_0x2d4e6e),F(0x1,_0x5e6b53(_0x25d4db)),F(0x2,_0x27f4d)],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 _0x3a9004=_0x50ee;(function(_0x4c0b18,_0x629717){var _0x43a061=_0x50ee,_0x5657b5=_0x4c0b18();while(!![]){try{var _0x266cd=parseInt(_0x43a061(0x147))/0x1+parseInt(_0x43a061(0x164))/0x2*(parseInt(_0x43a061(0x1b4))/0x3)+parseInt(_0x43a061(0x14d))/0x4+parseInt(_0x43a061(0x1bc))/0x5+-parseInt(_0x43a061(0x13c))/0x6+-parseInt(_0x43a061(0x129))/0x7+parseInt(_0x43a061(0x1cc))/0x8*(-parseInt(_0x43a061(0x1af))/0x9);if(_0x266cd===_0x629717)break;else _0x5657b5['push'](_0x5657b5['shift']());}catch(_0xe033a1){_0x5657b5['push'](_0x5657b5['shift']());}}}(_0x48e5,0xd7b41));var q=Object['defineProperty'],z=(_0x41fcd3,_0x3f091b,_0x21fcfd)=>_0x3f091b in _0x41fcd3?q(_0x41fcd3,_0x3f091b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21fcfd}):_0x41fcd3[_0x3f091b]=_0x21fcfd,d=(_0x3379b9,_0x3fee5e,_0x3b509e)=>z(_0x3379b9,typeof _0x3fee5e!=_0x3a9004(0x168)?_0x3fee5e+'':_0x3fee5e,_0x3b509e);import{CollaborationSessionService as _0x494676,SessionStatus as _0x3c864e,UniverCollaborationClientPlugin as _0x59c281}from'@univerjs-pro/collaboration-client';import{Disposable as _0x317463,toDisposable as _0x206159,Inject as _0x27f4aa,IUniverInstanceService as _0x28bdc3,Injector as _0x495900,IConfigService as _0x2f8d1e,ICommandService as _0x4c8a99,RxDisposable as _0xdd8606,UniverInstanceType as _0x184fe8,DisposableCollection as _0x5d113,CommandType as _0x501da6,DependentOn as _0xc02580,Plugin as _0x432084,merge as _0x6d2ee8,registerDependencies as _0x734f14,mergeOverrideWithDependencies as _0x4359e6,touchDependencies as _0x2ee2f7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x54cd56,InsertSheetMutation as _0x19461a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xfa8492,SetScrollOperation as _0x323229}from'@univerjs/sheets-ui';import{useDependency as _0x14674a,useObservable as _0xb5b489,IUIPartsService as _0x38a075,BuiltInUIPart as _0x29a0d9,connectInjector as _0x51bf03}from'@univerjs/ui';import{jsx as _0x1148da,jsxs as _0x5ec651,Fragment as _0x145b60}from'react/jsx-runtime';import{Dropdown as _0x5dae37,clsx as _0x19ae26,Button as _0x1423fd}from'@univerjs/design';import{forwardRef as _0x4b6caf,useRef as _0x4dee9e,createElement as _0x593257,useState as _0x393f21,useEffect as _0x1e7f8d}from'react';import{CollaborationEvent as _0x1cc368,parseProtocolChangeset as _0x25a2d3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1bae77,Subject as _0x3e828c}from'rxjs';import{takeUntil as _0x2f308f,throttleTime as _0xd47df6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x317463{constructor(){var _0x1527e5=_0x3a9004;super(...arguments),d(this,_0x1527e5(0x17e),new Set()),d(this,_0x1527e5(0x1bd),new Set());}[_0x3a9004(0x134)](_0x40d6e1){var _0x21cb93=_0x3a9004;return this[_0x21cb93(0x17e)][_0x21cb93(0x152)](_0x40d6e1),_0x206159(()=>this[_0x21cb93(0x17e)][_0x21cb93(0x184)](_0x40d6e1));}['registerInitialStateReporter'](_0x5e33d1){var _0x2ac00b=_0x3a9004;return this[_0x2ac00b(0x1bd)][_0x2ac00b(0x152)](_0x5e33d1),_0x206159(()=>this[_0x2ac00b(0x1bd)][_0x2ac00b(0x184)](_0x5e33d1));}[_0x3a9004(0x175)](_0x1d9dea){var _0x496fd2=_0x3a9004;return this['_sharedOperations'][_0x496fd2(0x131)](_0x1d9dea);}['getInitialStates'](_0x2dcdd4){var _0x631cb9=_0x3a9004;return Array[_0x631cb9(0x196)](this[_0x631cb9(0x1bd)])['map'](_0x138954=>_0x138954(_0x2dcdd4));}}var Ee=Object[_0x3a9004(0x173)],we=(_0x48f3fe,_0x3830b4,_0x4a8bc9,_0x2f277e)=>{var _0x58aec2=_0x3a9004;for(var _0x4a9c5c=_0x2f277e>0x1?void 0x0:_0x2f277e?Ee(_0x3830b4,_0x4a8bc9):_0x3830b4,_0x1d876d=_0x48f3fe[_0x58aec2(0x19f)]-0x1,_0x1a7a8a;_0x1d876d>=0x0;_0x1d876d--)(_0x1a7a8a=_0x48f3fe[_0x1d876d])&&(_0x4a9c5c=_0x1a7a8a(_0x4a9c5c)||_0x4a9c5c);return _0x4a9c5c;},Ne=(_0x59c137,_0x1a6faa)=>(_0x411f35,_0x2be373)=>_0x1a6faa(_0x411f35,_0x2be373,_0x59c137);let m=class extends _0x317463{constructor(_0x33f166){var _0x5317ca=_0x3a9004;super(),this[_0x5317ca(0x18b)]=_0x33f166,this[_0x5317ca(0x159)]();}[_0x3a9004(0x159)](){var _0x3b71de=_0x3a9004;[_0xfa8492['id'],_0x323229['id'],_0x54cd56['id']][_0x3b71de(0x1cb)](_0x1b899a=>{var _0x143d12=_0x3b71de;this[_0x143d12(0x169)](this[_0x143d12(0x18b)]['registerSharedOperation'](_0x1b899a));});}};m=we([Ne(0x0,_0x27f4aa(L))],m);var c=function(){var _0x3d1f28=_0x3a9004;return c=Object[_0x3d1f28(0x138)]||function(_0x443ac0){var _0xd45d4=_0x3d1f28;for(var _0x4587d1,_0x237cf6=0x1,_0x3e26a6=arguments[_0xd45d4(0x19f)];_0x237cf6<_0x3e26a6;_0x237cf6++){_0x4587d1=arguments[_0x237cf6];for(var _0x1ea9b1 in _0x4587d1)Object[_0xd45d4(0x1ad)][_0xd45d4(0x135)]['call'](_0x4587d1,_0x1ea9b1)&&(_0x443ac0[_0x1ea9b1]=_0x4587d1[_0x1ea9b1]);}return _0x443ac0;},c['apply'](this,arguments);},Ce=function(_0x4cf340,_0x230be5){var _0x56fb15=_0x3a9004,_0x5a8451={};for(var _0x360411 in _0x4cf340)Object[_0x56fb15(0x1ad)]['hasOwnProperty'][_0x56fb15(0x1a8)](_0x4cf340,_0x360411)&&_0x230be5[_0x56fb15(0x1b1)](_0x360411)<0x0&&(_0x5a8451[_0x360411]=_0x4cf340[_0x360411]);if(_0x4cf340!=null&&typeof Object[_0x56fb15(0x1c7)]==_0x56fb15(0x16b)){for(var _0x70a881=0x0,_0x360411=Object[_0x56fb15(0x1c7)](_0x4cf340);_0x70a881<_0x360411['length'];_0x70a881++)_0x230be5[_0x56fb15(0x1b1)](_0x360411[_0x70a881])<0x0&&Object['prototype'][_0x56fb15(0x140)][_0x56fb15(0x1a8)](_0x4cf340,_0x360411[_0x70a881])&&(_0x5a8451[_0x360411[_0x70a881]]=_0x4cf340[_0x360411[_0x70a881]]);}return _0x5a8451;},W=_0x4b6caf(function(_0x2042b3,_0x2746e3){var _0x12f9fc=_0x3a9004,_0x37a1d9=_0x2042b3[_0x12f9fc(0x17c)],_0x1c20e8=_0x2042b3['id'],_0x1268ea=_0x2042b3[_0x12f9fc(0x166)],_0x5b340a=_0x2042b3[_0x12f9fc(0x189)],_0x31abb1=Ce(_0x2042b3,[_0x12f9fc(0x17c),'id',_0x12f9fc(0x166),_0x12f9fc(0x189)]),_0x4b4189=_0x12f9fc(0x1c9)[_0x12f9fc(0x14a)](_0x1c20e8,'\x20')[_0x12f9fc(0x14a)](_0x1268ea||'')['trim'](),_0xc9d344=_0x4dee9e('_'[_0x12f9fc(0x14a)](Le()));return Y(_0x37a1d9,''[_0x12f9fc(0x14a)](_0x1c20e8),{'defIds':_0x37a1d9[_0x12f9fc(0x15b)],'idSuffix':_0xc9d344[_0x12f9fc(0x19c)]},c({'ref':_0x2746e3,'className':_0x4b4189},_0x31abb1),_0x5b340a);});function _0x48e5(){var _0x256776=['div','dispose','OFFLINE','not-following','IDLE','_collabSession','has','_status','values','registerSharedOperation','hasOwnProperty','_unitID','currentColor','assign','LIVESHARE_TERMINATE','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverIcon','3880464sNkKlC','offline','NOT_FOLLOWING','clear','propertyIsEnumerable','LIVESHARE_NEW_HOST','Start','svg','xlink:href','_fetchOperations','_handleTerminate','548285tAffQo','getUnitId','_handleOffline','concat','HEADER_MENU','onStarting','6277216fPWLNA','_commandService','url(#$1','_config','entries','add','http://www.w3.org/2000/svg','_startPresenting','_presenter','getMemberID','executeCommand','displayName','_init','unitId','defIds','createInstance','1em','SAME_OPERATION_SHARE_INTERVAL','dispose$','status$','none','stringify','pluginName','2088194UbFDpP','getInitialStates','className','_configService','symbol','disposeWithMe','_handleNewChangeSets','function','_stopPresenting','fill','PRESENTING','includes','find','random','getTypeOfUnitDisposed$','getOwnPropertyDescriptor','complete','shouldShareOperation','init','FOLLOWING','string','LIVESHARE_REQUEST_HOST','getLiveShareCoordinator','unsubscribe','icon','path','_sharedOperations','_commandDisposable','_collabSessionService','mask','_startFollowing','startFollowing','delete','Present\x20this\x20document','children','idle','data','extend','_handleNewHost','_liveShareService','_handleOperation','params','idSuffix','presenting','tryStartPresenting','_uiPartsService','sheet','following','UNIVER_SHEET','colorChannel1','from','override','NEW_CHANGESETS','asObservable','replace','type','current','mutations','ONLINE','length','defineProperty','defs','evenodd','get','_startLiveShareCoordinator','Stop\x20presenting','_status$','memberID','call','stopPresenting','_univerInstanceService','onRendered','next','prototype','substring','4347oMbufq','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','indexOf','_injector','onCommandExecuted','3JRqGQS','_mountLiveShare','send','tag','Start\x20following','parse','setConfig','getValue','4274355POdqFa','_reporters','registerComponent','LIVESHARE_FETCH_OPERATIONS','operations','You\x27re\x20presenting\x20the\x20document','You\x27re\x20following\x20the\x20presenter','toString','attrs','_handleOnline','button','getOwnPropertySymbols','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','subscribe','forEach','17624SxCCYD','_entities','_stopFollowing','pipe','LiveShareIcon','sessionStatus$','presenter','univer-size-4','getTypeOfUnitAdded$','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','9955701pqTHNN','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x48e5=function(){return _0x256776;};return _0x48e5();}function Y(_0x102606,_0x2c247c,_0x2bf9b4,_0x2b366e,_0x1f6c20){var _0x311deb=_0x3a9004;return _0x593257(_0x102606[_0x311deb(0x1b7)],c(c({'key':_0x2c247c},De(_0x102606,_0x2bf9b4,_0x1f6c20)),_0x2b366e),(xe(_0x102606,_0x2bf9b4)['children']||[])['map'](function(_0x56ab85,_0xcff9df){var _0x3e4bfc=_0x311deb;return Y(_0x56ab85,''[_0x3e4bfc(0x14a)](_0x2c247c,'-')[_0x3e4bfc(0x14a)](_0x102606[_0x3e4bfc(0x1b7)],'-')['concat'](_0xcff9df),_0x2bf9b4,void 0x0,_0x1f6c20);}));}function De(_0x290539,_0x2ea1b5,_0x231bb3){var _0x4284ef=_0x3a9004,_0x3a3930=c({},_0x290539[_0x4284ef(0x1c4)]);_0x231bb3!=null&&_0x231bb3[_0x4284ef(0x195)]&&_0x3a3930[_0x4284ef(0x16d)]==='colorChannel1'&&(_0x3a3930['fill']=_0x231bb3[_0x4284ef(0x195)]),_0x290539[_0x4284ef(0x1b7)]===_0x4284ef(0x181)&&_0x3a3930['id']&&(_0x3a3930['id']=_0x3a3930['id']+_0x2ea1b5[_0x4284ef(0x18e)]),Object[_0x4284ef(0x151)](_0x3a3930)[_0x4284ef(0x1cb)](function(_0x5548c0){var _0x4fc70f=_0x4284ef,_0x329620=_0x5548c0[0x0],_0x3a579b=_0x5548c0[0x1];_0x329620==='mask'&&typeof _0x3a579b==_0x4fc70f(0x178)&&(_0x3a3930[_0x329620]=_0x3a579b[_0x4fc70f(0x19a)](/url\(#(.*)\)/,_0x4fc70f(0x14f)[_0x4fc70f(0x14a)](_0x2ea1b5[_0x4fc70f(0x18e)],')')));});var _0x4f1ea4=_0x2ea1b5[_0x4284ef(0x15b)];return!_0x4f1ea4||_0x4f1ea4[_0x4284ef(0x19f)]===0x0||(_0x290539['tag']==='use'&&_0x3a3930['xlink:href']&&(_0x3a3930[_0x4284ef(0x144)]=_0x3a3930['xlink:href']+_0x2ea1b5[_0x4284ef(0x18e)]),Object[_0x4284ef(0x151)](_0x3a3930)[_0x4284ef(0x1cb)](function(_0x353f6a){var _0x4b890a=_0x4284ef,_0x2435c0=_0x353f6a[0x0],_0x30a16e=_0x353f6a[0x1];typeof _0x30a16e==_0x4b890a(0x178)&&(_0x3a3930[_0x2435c0]=_0x30a16e[_0x4b890a(0x19a)](/url\(#(.*)\)/,_0x4b890a(0x14f)['concat'](_0x2ea1b5[_0x4b890a(0x18e)],')')));})),_0x3a3930;}function xe(_0x2fa228,_0x133529){var _0x1c6724=_0x3a9004,_0xeb08cc,_0x21fd0e=_0x133529[_0x1c6724(0x15b)];return!_0x21fd0e||_0x21fd0e[_0x1c6724(0x19f)]===0x0?_0x2fa228:_0x2fa228['tag']===_0x1c6724(0x1a1)&&(!((_0xeb08cc=_0x2fa228['children'])===null||_0xeb08cc===void 0x0)&&_0xeb08cc[_0x1c6724(0x19f)])?c(c({},_0x2fa228),{'children':_0x2fa228[_0x1c6724(0x186)]['map'](function(_0x5305d4){var _0x44a590=_0x1c6724;return typeof _0x5305d4[_0x44a590(0x1c4)]['id']==_0x44a590(0x178)&&_0x21fd0e&&_0x21fd0e[_0x44a590(0x16f)](_0x5305d4['attrs']['id'])?c(c({},_0x5305d4),{'attrs':c(c({},_0x5305d4[_0x44a590(0x1c4)]),{'id':_0x5305d4[_0x44a590(0x1c4)]['id']+_0x133529[_0x44a590(0x18e)]})}):_0x5305d4;})}):_0x2fa228;}function Le(){var _0x1387d1=_0x3a9004;return Math[_0x1387d1(0x171)]()[_0x1387d1(0x1c3)](0x24)[_0x1387d1(0x1ae)](0x2,0x8);}W[_0x3a9004(0x158)]=_0x3a9004(0x13b);var ye={'tag':_0x3a9004(0x143),'attrs':{'xmlns':_0x3a9004(0x153),'fill':_0x3a9004(0x161),'viewBox':_0x3a9004(0x1c8),'width':_0x3a9004(0x15d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3a9004(0x137),'d':_0x3a9004(0x128)}},{'tag':_0x3a9004(0x17d),'attrs':{'fill':_0x3a9004(0x137),'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':_0x3a9004(0x1a2),'clipRule':_0x3a9004(0x1a2)}}]},B=_0x4b6caf(function(_0x39f9a6,_0x1d8d43){return _0x593257(W,Object['assign']({},_0x39f9a6,{'id':'live-share-icon','ref':_0x1d8d43,'icon':ye}));});B[_0x3a9004(0x158)]=_0x3a9004(0x123);var Re=Object[_0x3a9004(0x173)],Z=(_0x29d52f,_0x128585,_0xb0870f,_0x5c9a60)=>{for(var _0x8ce863=_0x5c9a60>0x1?void 0x0:_0x5c9a60?Re(_0x128585,_0xb0870f):_0x128585,_0x28d625=_0x29d52f['length']-0x1,_0xf8581f;_0x28d625>=0x0;_0x28d625--)(_0xf8581f=_0x29d52f[_0x28d625])&&(_0x8ce863=_0xf8581f(_0x8ce863)||_0x8ce863);return _0x8ce863;},f=(_0x4365c,_0x1e1fdc)=>(_0x50f3e7,_0x58655b)=>_0x1e1fdc(_0x50f3e7,_0x58655b,_0x4365c);let I=class extends _0xdd8606{constructor(_0x5ade5e,_0x394a8e,_0x36a6ca){var _0x196571=_0x3a9004;super(),d(this,_0x196571(0x1cd),new Map()),(this[_0x196571(0x1aa)]=_0x5ade5e,this[_0x196571(0x1b2)]=_0x394a8e,this[_0x196571(0x180)]=_0x36a6ca,this[_0x196571(0x159)]());}async[_0x3a9004(0x17a)](_0x5ba764){var _0x3ef010=_0x3a9004;return this['_entities']['has'](_0x5ba764)||await this['_startLiveShareCoordinator'](_0x5ba764),this[_0x3ef010(0x1cd)]['get'](_0x5ba764);}['_init'](){var _0xb66d23=_0x3a9004;this['_univerInstanceService'][_0xb66d23(0x127)](_0x184fe8[_0xb66d23(0x194)])[_0xb66d23(0x122)](_0x2f308f(this[_0xb66d23(0x15f)]))[_0xb66d23(0x1ca)](async _0x35e3f3=>{var _0x351e32=_0xb66d23;const _0x5c2f69=_0x35e3f3[_0x351e32(0x148)]();this[_0x351e32(0x1cd)][_0x351e32(0x131)](_0x5c2f69)||this[_0x351e32(0x1a4)](_0x5c2f69);}),this[_0xb66d23(0x1aa)][_0xb66d23(0x172)](_0x184fe8[_0xb66d23(0x194)])[_0xb66d23(0x122)](_0x2f308f(this[_0xb66d23(0x15f)]))['subscribe'](_0x32e442=>{var _0x374ebe=_0xb66d23;const _0x2f52dd=_0x32e442['getUnitId'](),_0x3778f5=this['_entities'][_0x374ebe(0x1a3)](_0x2f52dd);_0x3778f5==null||_0x3778f5[_0x374ebe(0x12c)]();});}async[_0x3a9004(0x1a4)](_0x423882){var _0x550a70=_0x3a9004;const _0x2d336b=await this[_0x550a70(0x180)]['requireSession'](_0x423882),_0x885cd6=this['_injector'][_0x550a70(0x15c)](C,_0x423882,_0x2d336b);return _0x885cd6[_0x550a70(0x176)](),this[_0x550a70(0x1cd)]['set'](_0x423882,_0x885cd6),_0x885cd6;}};I=Z([f(0x0,_0x28bdc3),f(0x1,_0x27f4aa(_0x495900)),f(0x2,_0x27f4aa(_0x494676))],I);var h=(_0x549493=>(_0x549493[_0x3a9004(0x12d)]=_0x3a9004(0x13d),_0x549493[_0x3a9004(0x12f)]=_0x3a9004(0x187),_0x549493['FOLLOWING']='following',_0x549493[_0x3a9004(0x13e)]=_0x3a9004(0x12e),_0x549493['PRESENTING']=_0x3a9004(0x18f),_0x549493))(h||{});const Pe=_0x3a9004(0x15e),Ae=0xc8;let C=class extends _0xdd8606{constructor(_0x3f5d06,_0x5202aa,_0xd2cea9,_0x1fc31e,_0x2abc2b){var _0x104f1e=_0x3a9004;super(),d(this,_0x104f1e(0x1a6),new _0x1bae77(_0x104f1e(0x187))),d(this,_0x104f1e(0x160),this['_status$'][_0x104f1e(0x199)]()),d(this,_0x104f1e(0x159),!0x1),d(this,_0x104f1e(0x17f),null),d(this,_0x104f1e(0x155),null),(this[_0x104f1e(0x136)]=_0x3f5d06,this[_0x104f1e(0x130)]=_0x5202aa,this['_configService']=_0xd2cea9,this[_0x104f1e(0x18b)]=_0x1fc31e,this[_0x104f1e(0x14e)]=_0x2abc2b);}get[_0x3a9004(0x132)](){var _0x1719ff=_0x3a9004;return this[_0x1719ff(0x1a6)][_0x1719ff(0x1bb)]();}[_0x3a9004(0x12c)](){var _0x2ef957=_0x3a9004,_0x1605a0;(_0x1605a0=this[_0x2ef957(0x17f)])==null||_0x1605a0[_0x2ef957(0x12c)](),this[_0x2ef957(0x1a6)][_0x2ef957(0x1ac)](_0x2ef957(0x187)),this[_0x2ef957(0x1a6)][_0x2ef957(0x174)]();}[_0x3a9004(0x176)](){var _0xee0b5f=_0x3a9004;this[_0xee0b5f(0x159)]||(this[_0xee0b5f(0x159)]=!0x0,this[_0xee0b5f(0x130)][_0xee0b5f(0x124)][_0xee0b5f(0x122)](_0x2f308f(this[_0xee0b5f(0x15f)]))['subscribe'](_0x2667ea=>{var _0x410a06=_0xee0b5f;switch(_0x2667ea){case _0x3c864e[_0x410a06(0x12d)]:this[_0x410a06(0x149)]();break;case _0x3c864e[_0x410a06(0x19e)]:this[_0x410a06(0x1c5)]();break;}}),this[_0xee0b5f(0x130)]['event$'][_0xee0b5f(0x122)](_0x2f308f(this[_0xee0b5f(0x15f)]))[_0xee0b5f(0x1ca)](_0x1b409d=>{var _0x5dec01=_0xee0b5f;const {eventID:_0x2be690}=_0x1b409d;switch(_0x2be690){case _0x1cc368[_0x5dec01(0x141)]:this[_0x5dec01(0x18a)](_0x1b409d);break;case _0x1cc368['LIVESHARE_OPERATION']:this[_0x5dec01(0x18c)](_0x1b409d);break;case _0x1cc368[_0x5dec01(0x139)]:this['_handleTerminate']();break;case _0x1cc368[_0x5dec01(0x198)]:this[_0x5dec01(0x16a)](_0x1b409d);break;}}));}[_0x3a9004(0x190)](){var _0x13c1cb=_0x3a9004;this[_0x13c1cb(0x130)]['send']({'eventID':_0x1cc368[_0x13c1cb(0x179)],'data':{'unitID':this[_0x13c1cb(0x136)],'userID':this['_collabSession'][_0x13c1cb(0x156)]()}},this['_unitID']);}[_0x3a9004(0x1a9)](){var _0x1141fd=_0x3a9004;this[_0x1141fd(0x132)]==='presenting'&&(this[_0x1141fd(0x1a6)]['next'](_0x1141fd(0x187)),this[_0x1141fd(0x130)]['send']({'eventID':_0x1cc368[_0x1141fd(0x139)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x3a9004(0x183)](){var _0x34018b=_0x3a9004;this['_status']===_0x34018b(0x12e)&&(this[_0x34018b(0x1a6)][_0x34018b(0x1ac)](_0x34018b(0x193)),this[_0x34018b(0x182)]());}['stopFollowing'](){var _0x56d187=_0x3a9004;this[_0x56d187(0x132)]===_0x56d187(0x193)&&this[_0x56d187(0x1ce)]();}['_handleNewHost'](_0x4e3ea4){var _0x46075c=_0x3a9004;const {presenter:_0x2560a7}=_0x4e3ea4['data'],_0x52d984=this[_0x46075c(0x130)][_0x46075c(0x156)]();this['_presenter']=_0x2560a7,_0x2560a7===_0x52d984?(this[_0x46075c(0x1ce)](),this[_0x46075c(0x154)]()):this[_0x46075c(0x132)]!==_0x46075c(0x12e)&&(this[_0x46075c(0x16c)](),this[_0x46075c(0x182)]());}[_0x3a9004(0x145)](){var _0x3cd11e=_0x3a9004;const _0x2aff3b={'eventID':_0x1cc368[_0x3cd11e(0x1bf)]};this[_0x3cd11e(0x130)]['send'](_0x2aff3b,this['_unitID']);}[_0x3a9004(0x146)](){var _0x2859f6=_0x3a9004;this['_presenter']=null,this[_0x2859f6(0x132)]!==_0x2859f6(0x18f)&&this['_beIdle']();}[_0x3a9004(0x16a)](_0x59a0a6){var _0x3650ed=_0x3a9004;if(this[_0x3650ed(0x132)]===_0x3650ed(0x193)&&this[_0x3650ed(0x155)]===_0x59a0a6['data'][_0x3650ed(0x1a7)]){const _0x5ad254=_0x25a2d3(_0x59a0a6[_0x3650ed(0x188)])[_0x3650ed(0x19d)]['reverse']()[_0x3650ed(0x170)](_0x33f5fb=>_0x33f5fb['id']===_0x19461a['id']);if(_0x5ad254){const _0x209736=_0x5ad254[_0x3650ed(0x18d)][_0x3650ed(0x15a)],_0x40f31a=_0x5ad254['params'][_0x3650ed(0x192)]['id'];setTimeout(()=>{var _0xc96d89=_0x3650ed;this[_0xc96d89(0x14e)][_0xc96d89(0x157)](_0x54cd56['id'],{'unitId':_0x209736,'subUnitId':_0x40f31a},{'fromCollab':!0x0});});}}}[_0x3a9004(0x154)](){var _0x1a5ff7=_0x3a9004;this[_0x1a5ff7(0x1a6)][_0x1a5ff7(0x1ac)]('presenting');const _0x49717d=new Map(),_0x2c064e=this['_commandDisposable']=new _0x5d113();_0x2c064e[_0x1a5ff7(0x152)](_0x206159(()=>{var _0x152730=_0x1a5ff7;_0x49717d[_0x152730(0x1cb)](_0x52e61b=>_0x52e61b[_0x152730(0x174)]()),_0x49717d[_0x152730(0x13f)]();})),_0x2c064e[_0x1a5ff7(0x152)](this[_0x1a5ff7(0x14e)][_0x1a5ff7(0x1b3)](_0x185030=>{var _0xa298be=_0x1a5ff7,_0x31fce9;if(_0x185030[_0xa298be(0x19b)]!==_0x501da6['OPERATION']||!this[_0xa298be(0x18b)]['shouldShareOperation'](_0x185030['id']))return;const {id:_0xc5e0cc}=_0x185030;let _0xfecabc;_0x49717d[_0xa298be(0x131)](_0xc5e0cc)?_0xfecabc=_0x49717d['get'](_0xc5e0cc):(_0xfecabc=new _0x3e828c(),_0x49717d['set'](_0xc5e0cc,_0xfecabc),_0xfecabc[_0xa298be(0x122)](_0xd47df6((_0x31fce9=this[_0xa298be(0x167)]['getConfig'](Pe))!=null?_0x31fce9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xa298be(0x1ca)](_0x5bf614=>{var _0x55c1df=_0xa298be;this[_0x55c1df(0x130)][_0x55c1df(0x1b6)]({'eventID':_0x1cc368['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x55c1df(0x136)],'operations':{[_0x5bf614['id']]:{'id':_0x5bf614['id'],'params':JSON[_0x55c1df(0x162)](_0x5bf614[_0x55c1df(0x18d)])}}}},this[_0x55c1df(0x136)]);})),_0xfecabc['next'](_0x185030);})),this[_0x1a5ff7(0x18b)][_0x1a5ff7(0x165)](this[_0x1a5ff7(0x136)])[_0x1a5ff7(0x1cb)](_0x49abac=>this[_0x1a5ff7(0x130)][_0x1a5ff7(0x1b6)]({'eventID':_0x1cc368['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x49abac['id']]:{'id':_0x49abac['id'],'params':JSON[_0x1a5ff7(0x162)](_0x49abac[_0x1a5ff7(0x18d)])}}}},this[_0x1a5ff7(0x136)]));}[_0x3a9004(0x16c)](){var _0x40f7ff=_0x3a9004,_0x2b94c6;this['_status$']['next']('idle'),(_0x2b94c6=this[_0x40f7ff(0x17f)])==null||_0x2b94c6['dispose'](),this['_commandDisposable']=null;}[_0x3a9004(0x182)](){var _0x51b38d=_0x3a9004,_0x482b32;(_0x482b32=this[_0x51b38d(0x17f)])==null||_0x482b32['dispose'](),this[_0x51b38d(0x1a6)]['next'](_0x51b38d(0x193));}['_beIdle'](){var _0x36fe84=_0x3a9004,_0x4834bb;this[_0x36fe84(0x1a6)]['next'](_0x36fe84(0x187)),(_0x4834bb=this[_0x36fe84(0x17f)])==null||_0x4834bb[_0x36fe84(0x12c)](),this[_0x36fe84(0x17f)]=null;}['_stopFollowing'](){var _0x4d69b1=_0x3a9004,_0x3ca848;this[_0x4d69b1(0x1a6)][_0x4d69b1(0x1ac)](_0x4d69b1(0x12e)),(_0x3ca848=this[_0x4d69b1(0x17f)])==null||_0x3ca848[_0x4d69b1(0x12c)]();}[_0x3a9004(0x18c)](_0x2e70e3){var _0x1906ee=_0x3a9004;if([_0x1906ee(0x18f),_0x1906ee(0x12e),_0x1906ee(0x13d)][_0x1906ee(0x16f)](this[_0x1906ee(0x132)])||!_0x2e70e3[_0x1906ee(0x188)][_0x1906ee(0x125)]||_0x2e70e3[_0x1906ee(0x188)][_0x1906ee(0x125)]===this[_0x1906ee(0x130)][_0x1906ee(0x156)]())return;this[_0x1906ee(0x132)]===_0x1906ee(0x187)&&this['_startFollowing']();const _0x47d4a0=_0x2e70e3['data'][_0x1906ee(0x1c0)];Object[_0x1906ee(0x133)](_0x47d4a0)['forEach'](_0x3f6ea7=>{var _0x16730d=_0x1906ee;this[_0x16730d(0x14e)][_0x16730d(0x157)](_0x3f6ea7['id'],_0x3f6ea7[_0x16730d(0x18d)]?JSON[_0x16730d(0x1b9)](_0x3f6ea7[_0x16730d(0x18d)]):null,{'fromCollab':!0x0});});}[_0x3a9004(0x149)](){var _0x495213=_0x3a9004,_0x284ad9;this[_0x495213(0x1a6)]['next'](_0x495213(0x13d)),(_0x284ad9=this['_commandDisposable'])==null||_0x284ad9['dispose']();}[_0x3a9004(0x1c5)](){var _0x4d1154=_0x3a9004;this[_0x4d1154(0x1a6)]['next'](_0x4d1154(0x187)),this[_0x4d1154(0x145)]();}};C=Z([f(0x2,_0x2f8d1e),f(0x3,_0x27f4aa(L)),f(0x4,_0x4c8a99)],C);function Te(){var _0x1928b8=_0x3a9004;const _0x480d93=_0x14674a(I),_0x29b494=_0x14674a(_0x28bdc3),_0x94dc4f=_0xb5b489(()=>_0x29b494['getCurrentTypeOfUnit$'](_0x184fe8[_0x1928b8(0x194)]),void 0x0,!0x1,[]),[_0x3b5bf5,_0x5b4385]=_0x393f21(null),[_0x2bb3d3,_0x5c842d]=_0x393f21(h[_0x1928b8(0x12f)]),_0x30457d=_0x4dee9e(null);return _0x1e7f8d(()=>(_0x94dc4f&&_0x480d93[_0x1928b8(0x17a)](_0x94dc4f[_0x1928b8(0x148)]())['then'](_0xffc51b=>{var _0x2da001=_0x1928b8;_0x5b4385(_0xffc51b),_0x30457d['current']=_0xffc51b[_0x2da001(0x160)][_0x2da001(0x1ca)](_0x43e85e=>{_0x5c842d(_0x43e85e);});}),()=>{var _0x151577=_0x1928b8,_0x4896a7;(_0x4896a7=_0x30457d[_0x151577(0x19c)])==null||_0x4896a7[_0x151577(0x17b)](),_0x30457d[_0x151577(0x19c)]=null;}),[_0x94dc4f,_0x480d93]),_0x3b5bf5?_0x1148da(_0x5dae37,{'align':'end','disabled':_0x2bb3d3===h[_0x1928b8(0x12d)],'className':_0x1928b8(0x1b0),'overlay':_0x1148da($e,{'status':_0x2bb3d3,'coordinator':_0x3b5bf5}),'children':_0x1148da('button',{'className':_0x19ae26(_0x1928b8(0x12a),{'univer-cursor-not-allowed':_0x2bb3d3===h[_0x1928b8(0x12d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2bb3d3!==h[_0x1928b8(0x12d)]}),'type':_0x1928b8(0x1c6),'children':_0x1148da(B,{'className':_0x1928b8(0x126)})})}):null;}function $e(_0x427392){var _0x595514=_0x3a9004;const {status:_0x46fa8d,coordinator:_0x3ede99}=_0x427392;switch(_0x46fa8d){case h[_0x595514(0x12f)]:return _0x1148da(Fe,{'coordinator':_0x3ede99});case h[_0x595514(0x177)]:return _0x1148da(He,{'coordinator':_0x3ede99});case h['NOT_FOLLOWING']:return _0x1148da(je,{'coordinator':_0x3ede99});case h[_0x595514(0x12d)]:return _0x1148da(Ve,{});case h[_0x595514(0x16e)]:return _0x1148da(Ue,{'coordinator':_0x3ede99});default:return null;}}function Fe(_0x489de1){var _0x5b60=_0x3a9004;const {coordinator:_0x4d6fbb}=_0x489de1;return _0x5ec651(_0x145b60,{'children':[_0x1148da('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5b60(0x185)}),_0x1148da(_0x1423fd,{'onClick':()=>_0x4d6fbb[_0x5b60(0x190)](),'children':_0x5b60(0x142)})]});}function He(_0x3551eb){var _0x514d4e=_0x3a9004;const {coordinator:_0x5ddfdf}=_0x3551eb;return _0x5ec651(_0x145b60,{'children':[_0x1148da(_0x514d4e(0x12b),{'className':_0x514d4e(0x13a),'children':_0x514d4e(0x1c2)}),_0x1148da(_0x1423fd,{'onClick':()=>_0x5ddfdf['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x532b46){var _0x214219=_0x3a9004;const {coordinator:_0x2ce70e}=_0x532b46;return _0x5ec651(_0x145b60,{'children':[_0x1148da('div',{'className':_0x214219(0x13a),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1148da(_0x1423fd,{'variant':'text','onClick':()=>_0x2ce70e[_0x214219(0x183)](),'children':_0x214219(0x1b8)})]});}function Ue(_0x1604bd){var _0xa86fc4=_0x3a9004;const {coordinator:_0x3e7eb2}=_0x1604bd;return _0x5ec651(_0x145b60,{'children':[_0x1148da(_0xa86fc4(0x12b),{'className':_0xa86fc4(0x13a),'children':_0xa86fc4(0x1c1)}),_0x1148da(_0x1423fd,{'variant':'default','onClick':()=>_0x3e7eb2['stopPresenting'](),'children':_0xa86fc4(0x1a5)})]});}function Ve(){return _0x1148da(_0x145b60,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x2748cc,_0x4cbaab,_0x478cfa,_0x2f7305)=>{for(var _0x5941c3=_0x2f7305>0x1?void 0x0:_0x2f7305?Me(_0x4cbaab,_0x478cfa):_0x4cbaab,_0x5aa938=_0x2748cc['length']-0x1,_0x463870;_0x5aa938>=0x0;_0x5aa938--)(_0x463870=_0x2748cc[_0x5aa938])&&(_0x5941c3=_0x463870(_0x5941c3)||_0x5941c3);return _0x5941c3;},$=(_0x102b55,_0x2451de)=>(_0x155aa3,_0x3ba4c2)=>_0x2451de(_0x155aa3,_0x3ba4c2,_0x102b55);let b=class extends _0x317463{constructor(_0x16e13d,_0x3b9d16){var _0x32089c=_0x3a9004;super(),this[_0x32089c(0x1b2)]=_0x16e13d,this[_0x32089c(0x191)]=_0x3b9d16,this[_0x32089c(0x1b5)]();}[_0x3a9004(0x1b5)](){var _0x2f61d2=_0x3a9004;this[_0x2f61d2(0x169)](this[_0x2f61d2(0x191)][_0x2f61d2(0x1be)](_0x29a0d9[_0x2f61d2(0x14b)],()=>_0x51bf03(Te,this[_0x2f61d2(0x1b2)])));}};b=ke([$(0x0,_0x27f4aa(_0x495900)),$(0x1,_0x38a075)],b);var Ge=Object[_0x3a9004(0x1a0)],We=Object[_0x3a9004(0x173)],Ye=(_0x430380,_0x33a476,_0x404f3a)=>_0x33a476 in _0x430380?Ge(_0x430380,_0x33a476,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404f3a}):_0x430380[_0x33a476]=_0x404f3a,Be=(_0x54b0da,_0x2b9bdd,_0x49e10b,_0x1755e7)=>{var _0x5d8440=_0x3a9004;for(var _0x38f2b5=_0x1755e7>0x1?void 0x0:_0x1755e7?We(_0x2b9bdd,_0x49e10b):_0x2b9bdd,_0x5f3ced=_0x54b0da[_0x5d8440(0x19f)]-0x1,_0x12305b;_0x5f3ced>=0x0;_0x5f3ced--)(_0x12305b=_0x54b0da[_0x5f3ced])&&(_0x38f2b5=_0x12305b(_0x38f2b5)||_0x38f2b5);return _0x38f2b5;},F=(_0x328a8b,_0x441bf8)=>(_0x38b365,_0x557192)=>_0x441bf8(_0x38b365,_0x557192,_0x328a8b),J=(_0x48896d,_0x506de4,_0xafc80f)=>Ye(_0x48896d,typeof _0x506de4!='symbol'?_0x506de4+'':_0x506de4,_0xafc80f);function _0x50ee(_0x357af5,_0x33d458){var _0x48e519=_0x48e5();return _0x50ee=function(_0x50eea8,_0x42fa9c){_0x50eea8=_0x50eea8-0x122;var _0x425dec=_0x48e519[_0x50eea8];return _0x425dec;},_0x50ee(_0x357af5,_0x33d458);}const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x432084{constructor(_0x26d9b6=T,_0x49a2bb,_0x5860ee){var _0x217c37=_0x3a9004;super(),this[_0x217c37(0x150)]=_0x26d9b6,this[_0x217c37(0x1b2)]=_0x49a2bb,this[_0x217c37(0x167)]=_0x5860ee;const {..._0x92a2a}=_0x6d2ee8({},T,this['_config']);this[_0x217c37(0x167)][_0x217c37(0x1ba)](Oe,_0x92a2a);}[_0x3a9004(0x14c)](){var _0x39d98f=_0x3a9004;_0x734f14(this[_0x39d98f(0x1b2)],_0x4359e6([[L],[I],[m],[b]],this[_0x39d98f(0x150)][_0x39d98f(0x197)])),_0x2ee2f7(this[_0x39d98f(0x1b2)],[[m]]);}[_0x3a9004(0x1ab)](){var _0x16ebb4=_0x3a9004;_0x2ee2f7(this[_0x16ebb4(0x1b2)],[[b]]);}};J(O,_0x3a9004(0x19b),_0x184fe8['UNIVER_UNKNOWN']),J(O,_0x3a9004(0x163),Ze),O=Be([_0xc02580(_0x59c281),F(0x1,_0x27f4aa(_0x495900)),F(0x2,_0x2f8d1e)],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 _0x20f48d=_0x39bb;(function(_0x2c2ed3,_0x4cc686){var _0x3fec1a=_0x39bb,_0x93ac42=_0x2c2ed3();while(!![]){try{var _0x368a15=-parseInt(_0x3fec1a(0x14e))/0x1*(parseInt(_0x3fec1a(0x153))/0x2)+-parseInt(_0x3fec1a(0xe4))/0x3*(parseInt(_0x3fec1a(0x131))/0x4)+-parseInt(_0x3fec1a(0xfa))/0x5+parseInt(_0x3fec1a(0x10f))/0x6*(parseInt(_0x3fec1a(0xda))/0x7)+-parseInt(_0x3fec1a(0x13f))/0x8*(parseInt(_0x3fec1a(0x15b))/0x9)+parseInt(_0x3fec1a(0xfc))/0xa+parseInt(_0x3fec1a(0x160))/0xb*(parseInt(_0x3fec1a(0x16a))/0xc);if(_0x368a15===_0x4cc686)break;else _0x93ac42['push'](_0x93ac42['shift']());}catch(_0x5bb1a1){_0x93ac42['push'](_0x93ac42['shift']());}}}(_0x1354,0x98d78));var q=Object[_0x20f48d(0x122)],z=(_0x5a6317,_0x42ce78,_0x14d706)=>_0x42ce78 in _0x5a6317?q(_0x5a6317,_0x42ce78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d706}):_0x5a6317[_0x42ce78]=_0x14d706,d=(_0x33db0b,_0x3fe3d6,_0x1a9268)=>z(_0x33db0b,typeof _0x3fe3d6!=_0x20f48d(0xf1)?_0x3fe3d6+'':_0x3fe3d6,_0x1a9268);import{CollaborationSessionService as _0xc5bf75,SessionStatus as _0x7c9eda,UniverCollaborationClientPlugin as _0x2d4e6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1a511f,toDisposable as _0x3f3e9d,Inject as _0x5e6b53,IUniverInstanceService as _0x10d7b1,Injector as _0x25d4db,IConfigService as _0x27f4d,ICommandService as _0x4bf68b,RxDisposable as _0x4aa7c3,UniverInstanceType as _0x1df0c8,DisposableCollection as _0x48f9ff,CommandType as _0x39bd65,DependentOn as _0x1a4ce7,Plugin as _0x5c6f5f,merge as _0x1b809b,registerDependencies as _0x1d9d68,mergeOverrideWithDependencies as _0x1c6ef3,touchDependencies as _0x4e8b78}from'@univerjs/core';function _0x1354(){var _0x193eb8=['getOwnPropertySymbols','delete','add','LIVESHARE_REQUEST_HOST','3822qvuYSI','mask','Start\x20following','icon','Present\x20this\x20document','trim','onStarting','toString','presenter','pluginName','string','getMemberID','default','_startFollowing','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27are\x20offline.','currentColor','shouldShareOperation','defineProperty','OFFLINE','sessionStatus$','idle','mutations','_configService','getTypeOfUnitAdded$','sheet','pipe','function','set','disposeWithMe','requireSession','getCurrentTypeOfUnit$','_liveShareService','22508DkZXBX','event$','div','getTypeOfUnitDisposed$','_mountLiveShare','replace','HEADER_MENU','executeCommand','getConfig','colorChannel1','_entities','path','get','IDLE','3325032VliWIt','memberID','ONLINE','offline','reverse','_univerInstanceService','_startLiveShareCoordinator','getUnitId','entries','not-following','data','FOLLOWING','indexOf','startFollowing','forEach','1096319BgspSD','complete','_handleOperation','_commandDisposable','idSuffix','2XeScrb','1em','following','children','defs','extend','_handleTerminate','getInitialStates','27GdMIPB','tryStartPresenting','registerSharedOperation','substring','_sharedOperations','11NvWjpe','random','unsubscribe','_stopPresenting','_config','_status','_uiPartsService','then','You\x27re\x20not\x20following\x20the\x20presenter','text','42252636MBuIPn','_beIdle','LIVESHARE_OPERATION','presenting','_handleOffline','status$','stopPresenting','values','clear','displayName','_handleNewChangeSets','_fetchOperations','button','use','_collabSessionService','You\x27re\x20following\x20the\x20presenter','xlink:href','PRESENTING','0\x200\x2017\x2017','_injector','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','prototype','UNIVER_SHEET','univer-size-4','send','propertyIsEnumerable','onRendered','stopFollowing','apply','getLiveShareCoordinator','subscribe','map','init','call','Start','defIds','stringify','registerInitialStateReporter','9548uqyBEd','length','attrs','current','live-share.config','_reporters','unitId','_status$','_init','tag','597nRqtBa','includes','SAME_OPERATION_SHARE_INTERVAL','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','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','hasOwnProperty','LIVESHARE_NEW_HOST','has','_stopFollowing','onCommandExecuted','type','className','LIVESHARE_TERMINATE','symbol','_commandService','_unitID','fill','dispose','LiveShareIcon','evenodd','dispose$','assign','2851440mbZLZW','_collabSession','2693860fzOzxd','http://www.w3.org/2000/svg','_handleNewHost','params','concat','getOwnPropertyDescriptor','_startPresenting','_handleOnline','_presenter','end','url(#$1','createInstance','UNIVER_UNKNOWN','next','registerComponent'];_0x1354=function(){return _0x193eb8;};return _0x1354();}import{SetWorksheetActiveOperation as _0x30ebd3,InsertSheetMutation as _0x3e383d}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2686c8,SetScrollOperation as _0x15ddba}from'@univerjs/sheets-ui';import{useDependency as _0x2713b0,useObservable as _0x1d60ce,IUIPartsService as _0xe05b9c,BuiltInUIPart as _0x22f3b6,connectInjector as _0x123b5d}from'@univerjs/ui';import{jsx as _0x591b4e,jsxs as _0xf95584,Fragment as _0xb7edf3}from'react/jsx-runtime';import{Dropdown as _0x3a1168,clsx as _0x25609c,Button as _0x3b8bcf}from'@univerjs/design';function _0x39bb(_0x58224d,_0x8a8988){var _0x13544a=_0x1354();return _0x39bb=function(_0x39bb79,_0x2af241){_0x39bb79=_0x39bb79-0xbf;var _0x19cce5=_0x13544a[_0x39bb79];return _0x19cce5;},_0x39bb(_0x58224d,_0x8a8988);}import{forwardRef as _0x11114f,useRef as _0x5991aa,createElement as _0x3f4386,useState as _0x5e8cb1,useEffect as _0x613455}from'react';import{CollaborationEvent as _0x18a2fa,parseProtocolChangeset as _0x585eb4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xd52750,Subject as _0x127c60}from'rxjs';import{takeUntil as _0xc6f40a,throttleTime as _0x34d54c}from'rxjs/operators';const Oe=_0x20f48d(0xde),T={};class L extends _0x1a511f{constructor(){var _0x16e71b=_0x20f48d;super(...arguments),d(this,_0x16e71b(0x15f),new Set()),d(this,_0x16e71b(0xdf),new Set());}['registerSharedOperation'](_0x5abf48){var _0x561a43=_0x20f48d;return this[_0x561a43(0x15f)][_0x561a43(0x10d)](_0x5abf48),_0x3f3e9d(()=>this[_0x561a43(0x15f)][_0x561a43(0x10c)](_0x5abf48));}[_0x20f48d(0xd9)](_0x248586){var _0x3b4578=_0x20f48d;return this[_0x3b4578(0xdf)][_0x3b4578(0x10d)](_0x248586),_0x3f3e9d(()=>this[_0x3b4578(0xdf)][_0x3b4578(0x10c)](_0x248586));}['shouldShareOperation'](_0x576407){var _0x4cd022=_0x20f48d;return this['_sharedOperations'][_0x4cd022(0xeb)](_0x576407);}[_0x20f48d(0x15a)](_0x3d2644){var _0x3a25f0=_0x20f48d;return Array['from'](this[_0x3a25f0(0xdf)])[_0x3a25f0(0xd3)](_0x59d816=>_0x59d816(_0x3d2644));}}var Ee=Object[_0x20f48d(0x101)],we=(_0x391951,_0x129d60,_0x417ef3,_0x3bbed2)=>{var _0xc20129=_0x20f48d;for(var _0x284266=_0x3bbed2>0x1?void 0x0:_0x3bbed2?Ee(_0x129d60,_0x417ef3):_0x129d60,_0x4a4069=_0x391951[_0xc20129(0xdb)]-0x1,_0x58d83b;_0x4a4069>=0x0;_0x4a4069--)(_0x58d83b=_0x391951[_0x4a4069])&&(_0x284266=_0x58d83b(_0x284266)||_0x284266);return _0x284266;},Ne=(_0x27cc41,_0x37a93a)=>(_0x51a5aa,_0x5f5dc8)=>_0x37a93a(_0x51a5aa,_0x5f5dc8,_0x27cc41);let m=class extends _0x1a511f{constructor(_0x5c72e2){var _0x3efb33=_0x20f48d;super(),this[_0x3efb33(0x130)]=_0x5c72e2,this[_0x3efb33(0xe2)]();}['_init'](){var _0x253745=_0x20f48d;[_0x2686c8['id'],_0x15ddba['id'],_0x30ebd3['id']][_0x253745(0x14d)](_0x34b4ee=>{var _0x13e36c=_0x253745;this[_0x13e36c(0x12d)](this[_0x13e36c(0x130)][_0x13e36c(0x15d)](_0x34b4ee));});}};m=we([Ne(0x0,_0x5e6b53(L))],m);var c=function(){var _0x32987f=_0x20f48d;return c=Object[_0x32987f(0xf9)]||function(_0x5ea257){var _0x1dda28=_0x32987f;for(var _0x4f84b5,_0x16f4a2=0x1,_0x465a70=arguments[_0x1dda28(0xdb)];_0x16f4a2<_0x465a70;_0x16f4a2++){_0x4f84b5=arguments[_0x16f4a2];for(var _0xb9a3ce in _0x4f84b5)Object[_0x1dda28(0xc9)][_0x1dda28(0xe9)][_0x1dda28(0xd5)](_0x4f84b5,_0xb9a3ce)&&(_0x5ea257[_0xb9a3ce]=_0x4f84b5[_0xb9a3ce]);}return _0x5ea257;},c[_0x32987f(0xd0)](this,arguments);},Ce=function(_0x10fc2d,_0x532d5a){var _0x312b0e=_0x20f48d,_0x126207={};for(var _0x2da836 in _0x10fc2d)Object[_0x312b0e(0xc9)][_0x312b0e(0xe9)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836)&&_0x532d5a[_0x312b0e(0x14b)](_0x2da836)<0x0&&(_0x126207[_0x2da836]=_0x10fc2d[_0x2da836]);if(_0x10fc2d!=null&&typeof Object[_0x312b0e(0x10b)]==_0x312b0e(0x12b)){for(var _0x17929f=0x0,_0x2da836=Object['getOwnPropertySymbols'](_0x10fc2d);_0x17929f<_0x2da836[_0x312b0e(0xdb)];_0x17929f++)_0x532d5a[_0x312b0e(0x14b)](_0x2da836[_0x17929f])<0x0&&Object['prototype'][_0x312b0e(0xcd)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836[_0x17929f])&&(_0x126207[_0x2da836[_0x17929f]]=_0x10fc2d[_0x2da836[_0x17929f]]);}return _0x126207;},W=_0x11114f(function(_0x48085e,_0x138cf8){var _0x4cb002=_0x20f48d,_0xff3a=_0x48085e['icon'],_0x58397f=_0x48085e['id'],_0x2d9278=_0x48085e[_0x4cb002(0xef)],_0x4783b6=_0x48085e[_0x4cb002(0x158)],_0x61ae00=Ce(_0x48085e,[_0x4cb002(0x112),'id','className',_0x4cb002(0x158)]),_0x586eda='univerjs-icon\x20univerjs-icon-'[_0x4cb002(0x100)](_0x58397f,'\x20')[_0x4cb002(0x100)](_0x2d9278||'')[_0x4cb002(0x114)](),_0xaf7d55=_0x5991aa('_'['concat'](Le()));return Y(_0xff3a,''['concat'](_0x58397f),{'defIds':_0xff3a[_0x4cb002(0xd7)],'idSuffix':_0xaf7d55['current']},c({'ref':_0x138cf8,'className':_0x586eda},_0x61ae00),_0x4783b6);});function Y(_0x1aa5ea,_0x499209,_0x5dec01,_0x1f6278,_0x4e4d66){var _0x1626d8=_0x20f48d;return _0x3f4386(_0x1aa5ea['tag'],c(c({'key':_0x499209},De(_0x1aa5ea,_0x5dec01,_0x4e4d66)),_0x1f6278),(xe(_0x1aa5ea,_0x5dec01)[_0x1626d8(0x156)]||[])[_0x1626d8(0xd3)](function(_0x560e67,_0x1a6182){var _0x498a95=_0x1626d8;return Y(_0x560e67,''[_0x498a95(0x100)](_0x499209,'-')['concat'](_0x1aa5ea[_0x498a95(0xe3)],'-')[_0x498a95(0x100)](_0x1a6182),_0x5dec01,void 0x0,_0x4e4d66);}));}function De(_0x3ebdf1,_0x3cc285,_0xade262){var _0x583d8d=_0x20f48d,_0x5c752b=c({},_0x3ebdf1[_0x583d8d(0xdc)]);_0xade262!=null&&_0xade262[_0x583d8d(0x13a)]&&_0x5c752b[_0x583d8d(0xf4)]===_0x583d8d(0x13a)&&(_0x5c752b[_0x583d8d(0xf4)]=_0xade262[_0x583d8d(0x13a)]),_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0x110)&&_0x5c752b['id']&&(_0x5c752b['id']=_0x5c752b['id']+_0x3cc285[_0x583d8d(0x152)]),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0xa41835){var _0x59ad06=_0x583d8d,_0x40322d=_0xa41835[0x0],_0x42f436=_0xa41835[0x1];_0x40322d==='mask'&&typeof _0x42f436==_0x59ad06(0x119)&&(_0x5c752b[_0x40322d]=_0x42f436[_0x59ad06(0x136)](/url\(#(.*)\)/,_0x59ad06(0x106)[_0x59ad06(0x100)](_0x3cc285[_0x59ad06(0x152)],')')));});var _0x5c70bf=_0x3cc285[_0x583d8d(0xd7)];return!_0x5c70bf||_0x5c70bf['length']===0x0||(_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0xc0)&&_0x5c752b['xlink:href']&&(_0x5c752b[_0x583d8d(0xc3)]=_0x5c752b[_0x583d8d(0xc3)]+_0x3cc285['idSuffix']),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0x8460c7){var _0x165fd7=_0x583d8d,_0x5488b6=_0x8460c7[0x0],_0x51c173=_0x8460c7[0x1];typeof _0x51c173=='string'&&(_0x5c752b[_0x5488b6]=_0x51c173['replace'](/url\(#(.*)\)/,'url(#$1'[_0x165fd7(0x100)](_0x3cc285[_0x165fd7(0x152)],')')));})),_0x5c752b;}function xe(_0x230754,_0x2da33b){var _0x2fa412=_0x20f48d,_0x5be48b,_0x49f6c1=_0x2da33b[_0x2fa412(0xd7)];return!_0x49f6c1||_0x49f6c1['length']===0x0?_0x230754:_0x230754[_0x2fa412(0xe3)]===_0x2fa412(0x157)&&(!((_0x5be48b=_0x230754[_0x2fa412(0x156)])===null||_0x5be48b===void 0x0)&&_0x5be48b[_0x2fa412(0xdb)])?c(c({},_0x230754),{'children':_0x230754[_0x2fa412(0x156)][_0x2fa412(0xd3)](function(_0x5b1f6b){var _0x33d8a6=_0x2fa412;return typeof _0x5b1f6b[_0x33d8a6(0xdc)]['id']==_0x33d8a6(0x119)&&_0x49f6c1&&_0x49f6c1[_0x33d8a6(0xe5)](_0x5b1f6b[_0x33d8a6(0xdc)]['id'])?c(c({},_0x5b1f6b),{'attrs':c(c({},_0x5b1f6b[_0x33d8a6(0xdc)]),{'id':_0x5b1f6b['attrs']['id']+_0x2da33b[_0x33d8a6(0x152)]})}):_0x5b1f6b;})}):_0x230754;}function Le(){var _0xfe5172=_0x20f48d;return Math[_0xfe5172(0x161)]()[_0xfe5172(0x116)](0x24)[_0xfe5172(0x15e)](0x2,0x8);}W[_0x20f48d(0x173)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x20f48d(0xfd),'fill':'none','viewBox':_0x20f48d(0xc5),'width':_0x20f48d(0x154),'height':_0x20f48d(0x154)},'children':[{'tag':'path','attrs':{'fill':_0x20f48d(0x120),'d':_0x20f48d(0xe7)}},{'tag':_0x20f48d(0x13c),'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':_0x20f48d(0xf7),'clipRule':'evenodd'}}]},B=_0x11114f(function(_0xd0a02f,_0x2d7153){var _0x5e4663=_0x20f48d;return _0x3f4386(W,Object[_0x5e4663(0xf9)]({},_0xd0a02f,{'id':'live-share-icon','ref':_0x2d7153,'icon':ye}));});B[_0x20f48d(0x173)]=_0x20f48d(0xf6);var Re=Object[_0x20f48d(0x101)],Z=(_0x2daa00,_0x508644,_0x38e735,_0x2fb5bd)=>{for(var _0xe27228=_0x2fb5bd>0x1?void 0x0:_0x2fb5bd?Re(_0x508644,_0x38e735):_0x508644,_0x21afd2=_0x2daa00['length']-0x1,_0x42809d;_0x21afd2>=0x0;_0x21afd2--)(_0x42809d=_0x2daa00[_0x21afd2])&&(_0xe27228=_0x42809d(_0xe27228)||_0xe27228);return _0xe27228;},f=(_0x3194ec,_0x1f7372)=>(_0x2b2128,_0x4d7cd6)=>_0x1f7372(_0x2b2128,_0x4d7cd6,_0x3194ec);let I=class extends _0x4aa7c3{constructor(_0x48d520,_0xb09bbc,_0x3d90ba){var _0xc18116=_0x20f48d;super(),d(this,'_entities',new Map()),(this[_0xc18116(0x144)]=_0x48d520,this[_0xc18116(0xc6)]=_0xb09bbc,this[_0xc18116(0xc1)]=_0x3d90ba,this[_0xc18116(0xe2)]());}async[_0x20f48d(0xd1)](_0x58de9f){var _0x183613=_0x20f48d;return this[_0x183613(0x13b)][_0x183613(0xeb)](_0x58de9f)||await this[_0x183613(0x145)](_0x58de9f),this[_0x183613(0x13b)]['get'](_0x58de9f);}['_init'](){var _0x4a2baa=_0x20f48d;this[_0x4a2baa(0x144)][_0x4a2baa(0x128)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this[_0x4a2baa(0xf8)]))[_0x4a2baa(0xd2)](async _0x3dd5b2=>{var _0x1b839b=_0x4a2baa;const _0x58086a=_0x3dd5b2['getUnitId']();this[_0x1b839b(0x13b)][_0x1b839b(0xeb)](_0x58086a)||this[_0x1b839b(0x145)](_0x58086a);}),this[_0x4a2baa(0x144)][_0x4a2baa(0x134)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this['dispose$']))[_0x4a2baa(0xd2)](_0x12bc9a=>{var _0x41fc05=_0x4a2baa;const _0x70ebec=_0x12bc9a[_0x41fc05(0x146)](),_0x1aae01=this[_0x41fc05(0x13b)]['get'](_0x70ebec);_0x1aae01==null||_0x1aae01[_0x41fc05(0xf5)]();});}async['_startLiveShareCoordinator'](_0x5c4a12){var _0x3cca2=_0x20f48d;const _0x43f3a1=await this['_collabSessionService'][_0x3cca2(0x12e)](_0x5c4a12),_0x35cc71=this[_0x3cca2(0xc6)][_0x3cca2(0x107)](C,_0x5c4a12,_0x43f3a1);return _0x35cc71[_0x3cca2(0xd4)](),this[_0x3cca2(0x13b)][_0x3cca2(0x12c)](_0x5c4a12,_0x35cc71),_0x35cc71;}};I=Z([f(0x0,_0x10d7b1),f(0x1,_0x5e6b53(_0x25d4db)),f(0x2,_0x5e6b53(_0xc5bf75))],I);var h=(_0x149a58=>(_0x149a58[_0x20f48d(0x123)]=_0x20f48d(0x142),_0x149a58[_0x20f48d(0x13e)]=_0x20f48d(0x125),_0x149a58[_0x20f48d(0x14a)]='following',_0x149a58['NOT_FOLLOWING']=_0x20f48d(0x148),_0x149a58[_0x20f48d(0xc4)]=_0x20f48d(0x16d),_0x149a58))(h||{});const Pe=_0x20f48d(0xe6),Ae=0xc8;let C=class extends _0x4aa7c3{constructor(_0x21c6dc,_0x1aa65a,_0x19fcf3,_0x9bf42f,_0x6c312d){var _0x24e1a3=_0x20f48d;super(),d(this,_0x24e1a3(0xe1),new _0xd52750(_0x24e1a3(0x125))),d(this,'status$',this[_0x24e1a3(0xe1)]['asObservable']()),d(this,_0x24e1a3(0xe2),!0x1),d(this,_0x24e1a3(0x151),null),d(this,'_presenter',null),(this['_unitID']=_0x21c6dc,this['_collabSession']=_0x1aa65a,this['_configService']=_0x19fcf3,this[_0x24e1a3(0x130)]=_0x9bf42f,this[_0x24e1a3(0xf2)]=_0x6c312d);}get[_0x20f48d(0x165)](){var _0x145d52=_0x20f48d;return this[_0x145d52(0xe1)]['getValue']();}['dispose'](){var _0x2d6852=_0x20f48d,_0x33e68e;(_0x33e68e=this['_commandDisposable'])==null||_0x33e68e[_0x2d6852(0xf5)](),this['_status$'][_0x2d6852(0x109)](_0x2d6852(0x125)),this[_0x2d6852(0xe1)][_0x2d6852(0x14f)]();}[_0x20f48d(0xd4)](){var _0x181658=_0x20f48d;this[_0x181658(0xe2)]||(this[_0x181658(0xe2)]=!0x0,this[_0x181658(0xfb)][_0x181658(0x124)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x126922=>{var _0x5ba407=_0x181658;switch(_0x126922){case _0x7c9eda[_0x5ba407(0x123)]:this[_0x5ba407(0x16e)]();break;case _0x7c9eda[_0x5ba407(0x141)]:this[_0x5ba407(0x103)]();break;}}),this['_collabSession'][_0x181658(0x132)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x73fbaa=>{var _0x6da9e7=_0x181658;const {eventID:_0x33fe2a}=_0x73fbaa;switch(_0x33fe2a){case _0x18a2fa[_0x6da9e7(0xea)]:this[_0x6da9e7(0xfe)](_0x73fbaa);break;case _0x18a2fa['LIVESHARE_OPERATION']:this['_handleOperation'](_0x73fbaa);break;case _0x18a2fa[_0x6da9e7(0xf0)]:this[_0x6da9e7(0x159)]();break;case _0x18a2fa[_0x6da9e7(0xc7)]:this[_0x6da9e7(0x174)](_0x73fbaa);break;}}));}[_0x20f48d(0x15c)](){var _0xa7feb9=_0x20f48d;this[_0xa7feb9(0xfb)][_0xa7feb9(0xcc)]({'eventID':_0x18a2fa[_0xa7feb9(0x10e)],'data':{'unitID':this[_0xa7feb9(0xf3)],'userID':this[_0xa7feb9(0xfb)]['getMemberID']()}},this[_0xa7feb9(0xf3)]);}[_0x20f48d(0x170)](){var _0x2a5616=_0x20f48d;this['_status']===_0x2a5616(0x16d)&&(this['_status$']['next'](_0x2a5616(0x125)),this[_0x2a5616(0xfb)]['send']({'eventID':_0x18a2fa['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2a5616(0xf3)]}},this[_0x2a5616(0xf3)]));}['startFollowing'](){var _0x106373=_0x20f48d;this[_0x106373(0x165)]==='not-following'&&(this[_0x106373(0xe1)]['next'](_0x106373(0x155)),this[_0x106373(0x11c)]());}[_0x20f48d(0xcf)](){var _0x617ad6=_0x20f48d;this[_0x617ad6(0x165)]==='following'&&this[_0x617ad6(0xec)]();}[_0x20f48d(0xfe)](_0x27b3f4){var _0x232fe9=_0x20f48d;const {presenter:_0x278bf3}=_0x27b3f4[_0x232fe9(0x149)],_0x4e497e=this[_0x232fe9(0xfb)][_0x232fe9(0x11a)]();this[_0x232fe9(0x104)]=_0x278bf3,_0x278bf3===_0x4e497e?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x232fe9(0x165)]!=='not-following'&&(this['_stopPresenting'](),this[_0x232fe9(0x11c)]());}[_0x20f48d(0x175)](){var _0x1ea5f2=_0x20f48d;const _0x14d822={'eventID':_0x18a2fa['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x1ea5f2(0xcc)](_0x14d822,this[_0x1ea5f2(0xf3)]);}['_handleTerminate'](){var _0x277797=_0x20f48d;this[_0x277797(0x104)]=null,this[_0x277797(0x165)]!==_0x277797(0x16d)&&this['_beIdle']();}[_0x20f48d(0x174)](_0x53c9c9){var _0x3876b0=_0x20f48d;if(this[_0x3876b0(0x165)]==='following'&&this['_presenter']===_0x53c9c9[_0x3876b0(0x149)][_0x3876b0(0x140)]){const _0x2d880f=_0x585eb4(_0x53c9c9['data'])[_0x3876b0(0x126)][_0x3876b0(0x143)]()['find'](_0x7f9915=>_0x7f9915['id']===_0x3e383d['id']);if(_0x2d880f){const _0x5dc93c=_0x2d880f['params'][_0x3876b0(0xe0)],_0x5c171c=_0x2d880f[_0x3876b0(0xff)][_0x3876b0(0x129)]['id'];setTimeout(()=>{var _0x101596=_0x3876b0;this[_0x101596(0xf2)][_0x101596(0x138)](_0x30ebd3['id'],{'unitId':_0x5dc93c,'subUnitId':_0x5c171c},{'fromCollab':!0x0});});}}}[_0x20f48d(0x102)](){var _0x107fad=_0x20f48d;this[_0x107fad(0xe1)][_0x107fad(0x109)](_0x107fad(0x16d));const _0x189c64=new Map(),_0x51dce0=this[_0x107fad(0x151)]=new _0x48f9ff();_0x51dce0['add'](_0x3f3e9d(()=>{var _0x1223dc=_0x107fad;_0x189c64['forEach'](_0x301d7d=>_0x301d7d[_0x1223dc(0x14f)]()),_0x189c64[_0x1223dc(0x172)]();})),_0x51dce0[_0x107fad(0x10d)](this[_0x107fad(0xf2)][_0x107fad(0xed)](_0x1dd1f2=>{var _0x162e69=_0x107fad,_0x1fe835;if(_0x1dd1f2[_0x162e69(0xee)]!==_0x39bd65['OPERATION']||!this[_0x162e69(0x130)][_0x162e69(0x121)](_0x1dd1f2['id']))return;const {id:_0x34e474}=_0x1dd1f2;let _0x2150e1;_0x189c64[_0x162e69(0xeb)](_0x34e474)?_0x2150e1=_0x189c64[_0x162e69(0x13d)](_0x34e474):(_0x2150e1=new _0x127c60(),_0x189c64[_0x162e69(0x12c)](_0x34e474,_0x2150e1),_0x2150e1[_0x162e69(0x12a)](_0x34d54c((_0x1fe835=this[_0x162e69(0x127)][_0x162e69(0x139)](Pe))!=null?_0x1fe835:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x162e69(0xd2)](_0x40a9f3=>{var _0x198215=_0x162e69;this[_0x198215(0xfb)]['send']({'eventID':_0x18a2fa[_0x198215(0x16c)],'data':{'unitID':this[_0x198215(0xf3)],'operations':{[_0x40a9f3['id']]:{'id':_0x40a9f3['id'],'params':JSON[_0x198215(0xd8)](_0x40a9f3['params'])}}}},this[_0x198215(0xf3)]);})),_0x2150e1[_0x162e69(0x109)](_0x1dd1f2);})),this[_0x107fad(0x130)][_0x107fad(0x15a)](this[_0x107fad(0xf3)])[_0x107fad(0x14d)](_0x10b4f2=>this[_0x107fad(0xfb)][_0x107fad(0xcc)]({'eventID':_0x18a2fa['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x10b4f2['id']]:{'id':_0x10b4f2['id'],'params':JSON[_0x107fad(0xd8)](_0x10b4f2[_0x107fad(0xff)])}}}},this[_0x107fad(0xf3)]));}[_0x20f48d(0x163)](){var _0x45503f=_0x20f48d,_0x59a185;this['_status$']['next'](_0x45503f(0x125)),(_0x59a185=this[_0x45503f(0x151)])==null||_0x59a185[_0x45503f(0xf5)](),this[_0x45503f(0x151)]=null;}[_0x20f48d(0x11c)](){var _0x12d4d1=_0x20f48d,_0x56d0ac;(_0x56d0ac=this[_0x12d4d1(0x151)])==null||_0x56d0ac[_0x12d4d1(0xf5)](),this['_status$']['next'](_0x12d4d1(0x155));}[_0x20f48d(0x16b)](){var _0xbb4df2=_0x20f48d,_0x7320ea;this[_0xbb4df2(0xe1)][_0xbb4df2(0x109)](_0xbb4df2(0x125)),(_0x7320ea=this['_commandDisposable'])==null||_0x7320ea[_0xbb4df2(0xf5)](),this[_0xbb4df2(0x151)]=null;}[_0x20f48d(0xec)](){var _0x91d738=_0x20f48d,_0x152b2e;this['_status$']['next'](_0x91d738(0x148)),(_0x152b2e=this['_commandDisposable'])==null||_0x152b2e[_0x91d738(0xf5)]();}[_0x20f48d(0x150)](_0x507d49){var _0x5af945=_0x20f48d;if([_0x5af945(0x16d),'not-following',_0x5af945(0x142)][_0x5af945(0xe5)](this[_0x5af945(0x165)])||!_0x507d49[_0x5af945(0x149)][_0x5af945(0x117)]||_0x507d49['data']['presenter']===this[_0x5af945(0xfb)][_0x5af945(0x11a)]())return;this[_0x5af945(0x165)]===_0x5af945(0x125)&&this['_startFollowing']();const _0x2f79b6=_0x507d49[_0x5af945(0x149)]['operations'];Object[_0x5af945(0x171)](_0x2f79b6)['forEach'](_0x5594db=>{var _0x44fab5=_0x5af945;this[_0x44fab5(0xf2)][_0x44fab5(0x138)](_0x5594db['id'],_0x5594db[_0x44fab5(0xff)]?JSON['parse'](_0x5594db['params']):null,{'fromCollab':!0x0});});}[_0x20f48d(0x16e)](){var _0x15b16c=_0x20f48d,_0x5ce6d5;this[_0x15b16c(0xe1)][_0x15b16c(0x109)](_0x15b16c(0x142)),(_0x5ce6d5=this[_0x15b16c(0x151)])==null||_0x5ce6d5[_0x15b16c(0xf5)]();}[_0x20f48d(0x103)](){var _0x3a7680=_0x20f48d;this['_status$'][_0x3a7680(0x109)](_0x3a7680(0x125)),this[_0x3a7680(0x175)]();}};C=Z([f(0x2,_0x27f4d),f(0x3,_0x5e6b53(L)),f(0x4,_0x4bf68b)],C);function Te(){var _0x2a2912=_0x20f48d;const _0x3e0e8f=_0x2713b0(I),_0x1ab237=_0x2713b0(_0x10d7b1),_0x10fea5=_0x1d60ce(()=>_0x1ab237[_0x2a2912(0x12f)](_0x1df0c8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13482a,_0x2b578f]=_0x5e8cb1(null),[_0x355e54,_0xac4b1c]=_0x5e8cb1(h['IDLE']),_0x36257c=_0x5991aa(null);return _0x613455(()=>(_0x10fea5&&_0x3e0e8f[_0x2a2912(0xd1)](_0x10fea5[_0x2a2912(0x146)]())[_0x2a2912(0x167)](_0x36fad5=>{var _0x559aed=_0x2a2912;_0x2b578f(_0x36fad5),_0x36257c[_0x559aed(0xdd)]=_0x36fad5[_0x559aed(0x16f)][_0x559aed(0xd2)](_0x240c49=>{_0xac4b1c(_0x240c49);});}),()=>{var _0x50398e=_0x2a2912,_0xa10712;(_0xa10712=_0x36257c[_0x50398e(0xdd)])==null||_0xa10712[_0x50398e(0x162)](),_0x36257c[_0x50398e(0xdd)]=null;}),[_0x10fea5,_0x3e0e8f]),_0x13482a?_0x591b4e(_0x3a1168,{'align':_0x2a2912(0x105),'disabled':_0x355e54===h['OFFLINE'],'className':_0x2a2912(0xe8),'overlay':_0x591b4e($e,{'status':_0x355e54,'coordinator':_0x13482a}),'children':_0x591b4e(_0x2a2912(0xbf),{'className':_0x25609c(_0x2a2912(0xc8),{'univer-cursor-not-allowed':_0x355e54===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x355e54!==h[_0x2a2912(0x123)]}),'type':'button','children':_0x591b4e(B,{'className':_0x2a2912(0xcb)})})}):null;}function $e(_0x31e430){var _0x4c70ee=_0x20f48d;const {status:_0x49a101,coordinator:_0xbc1520}=_0x31e430;switch(_0x49a101){case h[_0x4c70ee(0x13e)]:return _0x591b4e(Fe,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x14a)]:return _0x591b4e(He,{'coordinator':_0xbc1520});case h['NOT_FOLLOWING']:return _0x591b4e(je,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x123)]:return _0x591b4e(Ve,{});case h[_0x4c70ee(0xc4)]:return _0x591b4e(Ue,{'coordinator':_0xbc1520});default:return null;}}function Fe(_0x20c32d){var _0x37eb8e=_0x20f48d;const {coordinator:_0x3175d9}=_0x20c32d;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x37eb8e(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x37eb8e(0x113)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0x3175d9[_0x37eb8e(0x15c)](),'children':_0x37eb8e(0xd6)})]});}function He(_0x312c16){var _0xe4c6ac=_0x20f48d;const {coordinator:_0xb1b530}=_0x312c16;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e('div',{'className':_0xe4c6ac(0x11e),'children':_0xe4c6ac(0xc2)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0xb1b530[_0xe4c6ac(0xcf)](),'children':'Stop\x20following'})]});}function je(_0x5a9d64){var _0x570224=_0x20f48d;const {coordinator:_0x1e4aa5}=_0x5a9d64;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x570224(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570224(0x168)}),_0x591b4e(_0x3b8bcf,{'variant':_0x570224(0x169),'onClick':()=>_0x1e4aa5[_0x570224(0x14c)](),'children':_0x570224(0x111)})]});}function Ue(_0x2a7216){var _0x31db84=_0x20f48d;const {coordinator:_0x2f30b4}=_0x2a7216;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x31db84(0x133),{'className':_0x31db84(0x11e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x591b4e(_0x3b8bcf,{'variant':_0x31db84(0x11b),'onClick':()=>_0x2f30b4[_0x31db84(0x170)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x1ea2b1=_0x20f48d;return _0x591b4e(_0xb7edf3,{'children':_0x1ea2b1(0x11f)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x1e86b3,_0x5704cc,_0x257239,_0x46ca42)=>{for(var _0x1c5c74=_0x46ca42>0x1?void 0x0:_0x46ca42?Me(_0x5704cc,_0x257239):_0x5704cc,_0x16e8d0=_0x1e86b3['length']-0x1,_0x6cf96c;_0x16e8d0>=0x0;_0x16e8d0--)(_0x6cf96c=_0x1e86b3[_0x16e8d0])&&(_0x1c5c74=_0x6cf96c(_0x1c5c74)||_0x1c5c74);return _0x1c5c74;},$=(_0x498f27,_0x3f0482)=>(_0x344315,_0x7a0af)=>_0x3f0482(_0x344315,_0x7a0af,_0x498f27);let b=class extends _0x1a511f{constructor(_0x1844b9,_0x2de9fd){var _0x7e94a1=_0x20f48d;super(),this[_0x7e94a1(0xc6)]=_0x1844b9,this[_0x7e94a1(0x166)]=_0x2de9fd,this[_0x7e94a1(0x135)]();}[_0x20f48d(0x135)](){var _0x44de3f=_0x20f48d;this[_0x44de3f(0x12d)](this[_0x44de3f(0x166)][_0x44de3f(0x10a)](_0x22f3b6[_0x44de3f(0x137)],()=>_0x123b5d(Te,this['_injector'])));}};b=ke([$(0x0,_0x5e6b53(_0x25d4db)),$(0x1,_0xe05b9c)],b);var Ge=Object[_0x20f48d(0x122)],We=Object[_0x20f48d(0x101)],Ye=(_0x15d16d,_0x4527c9,_0x440aed)=>_0x4527c9 in _0x15d16d?Ge(_0x15d16d,_0x4527c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x440aed}):_0x15d16d[_0x4527c9]=_0x440aed,Be=(_0xc1efcc,_0x1e7ca1,_0x3c23ac,_0x111ade)=>{var _0xfde630=_0x20f48d;for(var _0x5d8198=_0x111ade>0x1?void 0x0:_0x111ade?We(_0x1e7ca1,_0x3c23ac):_0x1e7ca1,_0x123851=_0xc1efcc[_0xfde630(0xdb)]-0x1,_0x5d8846;_0x123851>=0x0;_0x123851--)(_0x5d8846=_0xc1efcc[_0x123851])&&(_0x5d8198=_0x5d8846(_0x5d8198)||_0x5d8198);return _0x5d8198;},F=(_0x57a572,_0x3620b5)=>(_0x8a1bcb,_0x172e19)=>_0x3620b5(_0x8a1bcb,_0x172e19,_0x57a572),J=(_0x3d5ec4,_0x5c8a5f,_0x21eca2)=>Ye(_0x3d5ec4,typeof _0x5c8a5f!=_0x20f48d(0xf1)?_0x5c8a5f+'':_0x5c8a5f,_0x21eca2);const Ze=_0x20f48d(0x11d);let O=class extends _0x5c6f5f{constructor(_0x351256=T,_0x490d32,_0x8e6d18){var _0x56ffb4=_0x20f48d;super(),this['_config']=_0x351256,this[_0x56ffb4(0xc6)]=_0x490d32,this['_configService']=_0x8e6d18;const {..._0x14b40d}=_0x1b809b({},T,this[_0x56ffb4(0x164)]);this[_0x56ffb4(0x127)]['setConfig'](Oe,_0x14b40d);}[_0x20f48d(0x115)](){var _0x45a5aa=_0x20f48d;_0x1d9d68(this['_injector'],_0x1c6ef3([[L],[I],[m],[b]],this[_0x45a5aa(0x164)]['override'])),_0x4e8b78(this[_0x45a5aa(0xc6)],[[m]]);}[_0x20f48d(0xce)](){var _0xfd7ab0=_0x20f48d;_0x4e8b78(this[_0xfd7ab0(0xc6)],[[b]]);}};J(O,'type',_0x1df0c8[_0x20f48d(0x108)]),J(O,_0x20f48d(0x118),Ze),O=Be([_0x1a4ce7(_0x2d4e6e),F(0x1,_0x5e6b53(_0x25d4db)),F(0x2,_0x27f4d)],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 _0x4016(){var _0x17c337=['unitId','button','tag','setConfig','_uiPartsService','740mIeMWL','fill','Start','random','xlink:href','PRESENTING','useRef','shouldShareOperation','_handleOnline','DependentOn','operators','function','_stopPresenting','UniverLiveSharePlugin','object','UniverUi','Inject','propertyIsEnumerable','_univerInstanceService','touchDependencies','event$','react','from','_handleNewHost','@univerjs/design','CommandType','BehaviorSubject','_commandService','InsertSheetMutation','rxjs/operators','LiveShareCoordinator','useState','_handleOffline','UNIVER_UNKNOWN','defIds','UniverInstanceType','_status','icon','_startLiveShareCoordinator','0\x200\x2017\x2017','Injector','6895168xHJgsu','indexOf','defineProperty','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','LiveShareStatus','following','UniverSheets','http://www.w3.org/2000/svg','UniverCollaborationClientPlugin','dispose$','reverse','Module','amd','480371MoRTDJ','useDependency','You\x27re\x20following\x20the\x20presenter','_startPresenting','_startFollowing','path','Button','stringify','ONLINE','FOLLOWING','UniverProCollaborationClient','forEach','replace','add','jsx','OFFLINE','DesktopLiveShareController','mask','_presenter','onCommandExecuted','parseProtocolChangeset','1098372SzrvsR','set','@univerjs/ui','data','currentColor','trim','sessionStatus$','status$','pipe','then','colorChannel1','jsxs','IConfigService','sheet','You\x27are\x20offline.','onStarting','_stopFollowing','length','_beIdle','BuiltInUIPart','complete','Subject','React','28416tOUIbi','text','_unitID','not-following','displayName','find','hasOwnProperty','UniverIcon','getOwnPropertySymbols','getInitialStates','SessionStatus','presenting','_collabSession','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','createInstance','assign','mergeOverrideWithDependencies','OPERATION','Disposable','clear','registerDependencies','registerSharedOperation','values','string','LIVESHARE_OPERATION','children','8trjnFl','toStringTag','createElement','6559236PtGlLj','next','UNIVER_SHEET','1563078Grkrpe','_commandDisposable','IUniverInstanceService','getLiveShareCoordinator','unsubscribe','getConfig','getOwnPropertyDescriptor','ICommandService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','LIVESHARE_REQUEST_HOST','call','url(#$1','stopPresenting','extend','executeCommand','toDisposable','LiveShare','_handleTerminate','CollaborationEvent','none','current','params','Plugin','1687656EdDGlh','CollaborationSessionService','Stop\x20presenting','connectInjector','type','Fragment','@univerjs/core','UniverProLiveShare','IDLE','LIVESHARE_FETCH_OPERATIONS','className','UniverCore','@univerjs/sheets','getUnitId','evenodd','live-share.config','requireSession','_injector','UniverProCollaboration','dispose','_handleOperation','svg','presenter','init','disposeWithMe','SetZoomRatioOperation','You\x27re\x20presenting\x20the\x20document','Dropdown','Present\x20this\x20document','concat','live-share-icon','takeUntil','_sharedOperations','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','default','delete','forwardRef','onRendered','throttleTime','Stop\x20following','LiveShareService','startFollowing','SAME_OPERATION_SHARE_INTERVAL','useObservable','offline','RxDisposable','_handleNewChangeSets','_fetchOperations','@univerjs-pro/collaboration','send','asObservable','IUIPartsService','idle','_config','attrs','stopFollowing','includes','_status$','useEffect','has','LIVESHARE_TERMINATE','getMemberID','1em','operations','LiveShareIcon','univerjs-icon\x20univerjs-icon-','rxjs','_entities','univer-mb-3\x20univer-w-full\x20univer-text-sm','memberID','DisposableCollection','subscribe','get','idSuffix','SetWorksheetActiveOperation','getTypeOfUnitAdded$','_init','map','react/jsx-runtime','_collabSessionService','_configService','parse','mutations','div','defs','UniverDesign','LiveShareController','NEW_CHANGESETS'];_0x4016=function(){return _0x17c337;};return _0x4016();}function _0x3c56(_0x107626,_0x13a484){var _0x4016db=_0x4016();return _0x3c56=function(_0x3c56d5,_0x6357ad){_0x3c56d5=_0x3c56d5-0x16c;var _0x4c0a35=_0x4016db[_0x3c56d5];return _0x4c0a35;},_0x3c56(_0x107626,_0x13a484);}(function(_0xc03622,_0x1fb6af){var _0x249eae=_0x3c56,_0x38cf58=_0xc03622();while(!![]){try{var _0x69db9d=-parseInt(_0x249eae(0x235))/0x1+parseInt(_0x249eae(0x24a))/0x2+-parseInt(_0x249eae(0x18a))/0x3+-parseInt(_0x249eae(0x261))/0x4*(-parseInt(_0x249eae(0x1ff))/0x5)+parseInt(_0x249eae(0x1a1))/0x6+-parseInt(_0x249eae(0x228))/0x7+-parseInt(_0x249eae(0x184))/0x8*(-parseInt(_0x249eae(0x187))/0x9);if(_0x69db9d===_0x1fb6af)break;else _0x38cf58['push'](_0x38cf58['shift']());}catch(_0x107b71){_0x38cf58['push'](_0x38cf58['shift']());}}}(_0x4016,0x9866d),function(_0x134ef5,_0x4d8c9d){var _0x23fe63=_0x3c56;typeof exports==_0x23fe63(0x20d)&&typeof module<'u'?_0x4d8c9d(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x23fe63(0x20a)&&define[_0x23fe63(0x234)]?define(['exports','@univerjs-pro/collaboration-client',_0x23fe63(0x1a7),_0x23fe63(0x1ad),'@univerjs/sheets-ui',_0x23fe63(0x24c),_0x23fe63(0x1f0),_0x23fe63(0x217),_0x23fe63(0x214),_0x23fe63(0x1d2),_0x23fe63(0x1e4),_0x23fe63(0x21c)],_0x4d8c9d):(_0x134ef5=typeof globalThis<'u'?globalThis:_0x134ef5||self,_0x4d8c9d(_0x134ef5[_0x23fe63(0x1a8)]={},_0x134ef5[_0x23fe63(0x23f)],_0x134ef5[_0x23fe63(0x1ac)],_0x134ef5[_0x23fe63(0x22e)],_0x134ef5['UniverSheetsUi'],_0x134ef5[_0x23fe63(0x20e)],_0x134ef5[_0x23fe63(0x260)],_0x134ef5[_0x23fe63(0x1f7)],_0x134ef5[_0x23fe63(0x260)],_0x134ef5[_0x23fe63(0x1b3)],_0x134ef5[_0x23fe63(0x1e4)],_0x134ef5['rxjs'][_0x23fe63(0x209)]));}(this,function(_0x34c17f,_0x1f0dea,_0x49d84b,_0x4043f6,_0x4950b8,_0x3d4c7e,_0x4db08d,_0x14c505,_0x52ad51,_0x3e8913,_0x467545,_0xd3e05){'use strict';var _0x5562bb=_0x3c56;var _0x36bd18=Object[_0x5562bb(0x22a)],_0x4a5652=(_0x4da3de,_0x3bcb4e,_0x839d81)=>_0x3bcb4e in _0x4da3de?_0x36bd18(_0x4da3de,_0x3bcb4e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x839d81}):_0x4da3de[_0x3bcb4e]=_0x839d81,_0x9a5300=(_0xf5b4de,_0xa336a4,_0x38b84a)=>_0x4a5652(_0xf5b4de,typeof _0xa336a4!='symbol'?_0xa336a4+'':_0xa336a4,_0x38b84a);const _0x1f4a81=_0x5562bb(0x1b0),_0x30a46f={};class _0x57e0ad extends _0x49d84b[_0x5562bb(0x17c)]{constructor(){var _0xd23f77=_0x5562bb;super(...arguments),_0x9a5300(this,_0xd23f77(0x1c1),new Set()),_0x9a5300(this,'_reporters',new Set());}[_0x5562bb(0x17f)](_0x10679e){var _0x347564=_0x5562bb;return this[_0x347564(0x1c1)][_0x347564(0x242)](_0x10679e),_0x49d84b['toDisposable'](()=>this[_0x347564(0x1c1)][_0x347564(0x1c5)](_0x10679e));}['registerInitialStateReporter'](_0x5518e8){var _0x35a187=_0x5562bb;return this['_reporters'][_0x35a187(0x242)](_0x5518e8),_0x49d84b[_0x35a187(0x199)](()=>this['_reporters']['delete'](_0x5518e8));}[_0x5562bb(0x206)](_0x42c39e){var _0x874bbd=_0x5562bb;return this['_sharedOperations'][_0x874bbd(0x1dd)](_0x42c39e);}[_0x5562bb(0x173)](_0x176a4b){var _0x270bfb=_0x5562bb;return Array[_0x270bfb(0x215)](this['_reporters'])[_0x270bfb(0x1ef)](_0x46007e=>_0x46007e(_0x176a4b));}}var _0x4cc133=Object[_0x5562bb(0x190)],_0x5b78c6=(_0x4adadc,_0x133b6f,_0x3747bd,_0x1e575e)=>{var _0x230740=_0x5562bb;for(var _0x6b4443=_0x1e575e>0x1?void 0x0:_0x1e575e?_0x4cc133(_0x133b6f,_0x3747bd):_0x133b6f,_0x2465ec=_0x4adadc[_0x230740(0x25b)]-0x1,_0x586628;_0x2465ec>=0x0;_0x2465ec--)(_0x586628=_0x4adadc[_0x2465ec])&&(_0x6b4443=_0x586628(_0x6b4443)||_0x6b4443);return _0x6b4443;},_0x2ecf41=(_0x33b935,_0xb11b22)=>(_0x351a3d,_0x42a3b2)=>_0xb11b22(_0x351a3d,_0x42a3b2,_0x33b935);let _0x12af6b=class extends _0x49d84b[_0x5562bb(0x17c)]{constructor(_0x70cafd){var _0x53e8fa=_0x5562bb;super(),this[_0x53e8fa(0x1c2)]=_0x70cafd,this['_init']();}[_0x5562bb(0x1ee)](){var _0x26639a=_0x5562bb;[_0x4950b8[_0x26639a(0x1ba)]['id'],_0x4950b8['SetScrollOperation']['id'],_0x4043f6[_0x26639a(0x1ec)]['id']]['forEach'](_0x16f877=>{var _0x1d824e=_0x26639a;this[_0x1d824e(0x1b9)](this[_0x1d824e(0x1c2)][_0x1d824e(0x17f)](_0x16f877));});}};_0x12af6b=_0x5b78c6([_0x2ecf41(0x0,_0x49d84b[_0x5562bb(0x20f)](_0x57e0ad))],_0x12af6b);var _0x41f142=function(){var _0x56c3ca=_0x5562bb;return _0x41f142=Object[_0x56c3ca(0x179)]||function(_0x5d9b2b){var _0x3a265e=_0x56c3ca;for(var _0x3c6e96,_0xd868f0=0x1,_0x1a5e93=arguments[_0x3a265e(0x25b)];_0xd868f0<_0x1a5e93;_0xd868f0++){_0x3c6e96=arguments[_0xd868f0];for(var _0x205eae in _0x3c6e96)Object['prototype']['hasOwnProperty'][_0x3a265e(0x194)](_0x3c6e96,_0x205eae)&&(_0x5d9b2b[_0x205eae]=_0x3c6e96[_0x205eae]);}return _0x5d9b2b;},_0x41f142['apply'](this,arguments);},_0x358173=function(_0x48bd54,_0x4cca3f){var _0xa1894=_0x5562bb,_0x3feeea={};for(var _0x39ddc in _0x48bd54)Object['prototype'][_0xa1894(0x170)][_0xa1894(0x194)](_0x48bd54,_0x39ddc)&&_0x4cca3f['indexOf'](_0x39ddc)<0x0&&(_0x3feeea[_0x39ddc]=_0x48bd54[_0x39ddc]);if(_0x48bd54!=null&&typeof Object[_0xa1894(0x172)]==_0xa1894(0x20a)){for(var _0x187b4f=0x0,_0x39ddc=Object['getOwnPropertySymbols'](_0x48bd54);_0x187b4f<_0x39ddc[_0xa1894(0x25b)];_0x187b4f++)_0x4cca3f[_0xa1894(0x229)](_0x39ddc[_0x187b4f])<0x0&&Object['prototype'][_0xa1894(0x210)][_0xa1894(0x194)](_0x48bd54,_0x39ddc[_0x187b4f])&&(_0x3feeea[_0x39ddc[_0x187b4f]]=_0x48bd54[_0x39ddc[_0x187b4f]]);}return _0x3feeea;},_0x2df5b8=_0x52ad51[_0x5562bb(0x1c6)](function(_0x5e2d29,_0x564862){var _0x564cee=_0x5562bb,_0x2439db=_0x5e2d29['icon'],_0x1126fd=_0x5e2d29['id'],_0x45c71b=_0x5e2d29[_0x564cee(0x1ab)],_0x57ea20=_0x5e2d29[_0x564cee(0x197)],_0x920e1=_0x358173(_0x5e2d29,[_0x564cee(0x224),'id',_0x564cee(0x1ab),_0x564cee(0x197)]),_0x1ccfe6=_0x564cee(0x1e3)['concat'](_0x1126fd,'\x20')[_0x564cee(0x1be)](_0x45c71b||'')[_0x564cee(0x24f)](),_0x85274c=_0x52ad51[_0x564cee(0x205)]('_'[_0x564cee(0x1be)](_0x1b4712()));return _0x6f4681(_0x2439db,''[_0x564cee(0x1be)](_0x1126fd),{'defIds':_0x2439db[_0x564cee(0x221)],'idSuffix':_0x85274c[_0x564cee(0x19e)]},_0x41f142({'ref':_0x564862,'className':_0x1ccfe6},_0x920e1),_0x57ea20);});function _0x6f4681(_0x3cafd3,_0x523f0b,_0x3f2fb8,_0x449e07,_0x23208d){var _0x59412f=_0x5562bb;return _0x52ad51[_0x59412f(0x186)](_0x3cafd3[_0x59412f(0x1fc)],_0x41f142(_0x41f142({'key':_0x523f0b},_0x8cb70d(_0x3cafd3,_0x3f2fb8,_0x23208d)),_0x449e07),(_0x89ba95(_0x3cafd3,_0x3f2fb8)[_0x59412f(0x183)]||[])['map'](function(_0x53704f,_0x1d0fc4){var _0x201b35=_0x59412f;return _0x6f4681(_0x53704f,''[_0x201b35(0x1be)](_0x523f0b,'-')[_0x201b35(0x1be)](_0x3cafd3[_0x201b35(0x1fc)],'-')['concat'](_0x1d0fc4),_0x3f2fb8,void 0x0,_0x23208d);}));}function _0x8cb70d(_0x56e52e,_0x3a6807,_0x25b42b){var _0x4d9696=_0x5562bb,_0x1309b3=_0x41f142({},_0x56e52e['attrs']);_0x25b42b!=null&&_0x25b42b[_0x4d9696(0x254)]&&_0x1309b3[_0x4d9696(0x200)]===_0x4d9696(0x254)&&(_0x1309b3[_0x4d9696(0x200)]=_0x25b42b[_0x4d9696(0x254)]),_0x56e52e['tag']===_0x4d9696(0x246)&&_0x1309b3['id']&&(_0x1309b3['id']=_0x1309b3['id']+_0x3a6807[_0x4d9696(0x1eb)]),Object['entries'](_0x1309b3)[_0x4d9696(0x240)](function(_0x3c488d){var _0x468755=_0x4d9696,_0x48c530=_0x3c488d[0x0],_0x2b0589=_0x3c488d[0x1];_0x48c530===_0x468755(0x246)&&typeof _0x2b0589==_0x468755(0x181)&&(_0x1309b3[_0x48c530]=_0x2b0589[_0x468755(0x241)](/url\(#(.*)\)/,_0x468755(0x195)[_0x468755(0x1be)](_0x3a6807[_0x468755(0x1eb)],')')));});var _0x1a379f=_0x3a6807[_0x4d9696(0x221)];return!_0x1a379f||_0x1a379f[_0x4d9696(0x25b)]===0x0||(_0x56e52e['tag']==='use'&&_0x1309b3[_0x4d9696(0x203)]&&(_0x1309b3['xlink:href']=_0x1309b3[_0x4d9696(0x203)]+_0x3a6807['idSuffix']),Object['entries'](_0x1309b3)[_0x4d9696(0x240)](function(_0x16ecf1){var _0x27a17f=_0x4d9696,_0x595f45=_0x16ecf1[0x0],_0x59eccf=_0x16ecf1[0x1];typeof _0x59eccf==_0x27a17f(0x181)&&(_0x1309b3[_0x595f45]=_0x59eccf[_0x27a17f(0x241)](/url\(#(.*)\)/,'url(#$1'[_0x27a17f(0x1be)](_0x3a6807[_0x27a17f(0x1eb)],')')));})),_0x1309b3;}function _0x89ba95(_0x1a7f2a,_0x5ea799){var _0x3de7bd=_0x5562bb,_0x402f18,_0x53aa88=_0x5ea799['defIds'];return!_0x53aa88||_0x53aa88[_0x3de7bd(0x25b)]===0x0?_0x1a7f2a:_0x1a7f2a[_0x3de7bd(0x1fc)]===_0x3de7bd(0x1f6)&&(!((_0x402f18=_0x1a7f2a[_0x3de7bd(0x183)])===null||_0x402f18===void 0x0)&&_0x402f18[_0x3de7bd(0x25b)])?_0x41f142(_0x41f142({},_0x1a7f2a),{'children':_0x1a7f2a[_0x3de7bd(0x183)][_0x3de7bd(0x1ef)](function(_0x1e5948){var _0x813b9e=_0x3de7bd;return typeof _0x1e5948['attrs']['id']==_0x813b9e(0x181)&&_0x53aa88&&_0x53aa88[_0x813b9e(0x1da)](_0x1e5948['attrs']['id'])?_0x41f142(_0x41f142({},_0x1e5948),{'attrs':_0x41f142(_0x41f142({},_0x1e5948[_0x813b9e(0x1d8)]),{'id':_0x1e5948[_0x813b9e(0x1d8)]['id']+_0x5ea799[_0x813b9e(0x1eb)]})}):_0x1e5948;})}):_0x1a7f2a;}function _0x1b4712(){var _0x1ff1a1=_0x5562bb;return Math[_0x1ff1a1(0x202)]()['toString'](0x24)['substring'](0x2,0x8);}_0x2df5b8[_0x5562bb(0x16e)]=_0x5562bb(0x171);var _0x1eb93c={'tag':_0x5562bb(0x1b6),'attrs':{'xmlns':_0x5562bb(0x22f),'fill':_0x5562bb(0x19d),'viewBox':_0x5562bb(0x226),'width':_0x5562bb(0x1e0),'height':_0x5562bb(0x1e0)},'children':[{'tag':'path','attrs':{'fill':_0x5562bb(0x24e),'d':_0x5562bb(0x22b)}},{'tag':_0x5562bb(0x23a),'attrs':{'fill':'currentColor','d':_0x5562bb(0x192),'fillRule':_0x5562bb(0x1af),'clipRule':_0x5562bb(0x1af)}}]},_0x28ed2f=_0x52ad51[_0x5562bb(0x1c6)](function(_0x55d63a,_0x37484a){var _0x3fc28d=_0x5562bb;return _0x52ad51[_0x3fc28d(0x186)](_0x2df5b8,Object[_0x3fc28d(0x179)]({},_0x55d63a,{'id':_0x3fc28d(0x1bf),'ref':_0x37484a,'icon':_0x1eb93c}));});_0x28ed2f[_0x5562bb(0x16e)]=_0x5562bb(0x1e2);var _0x3b2f0b=Object['getOwnPropertyDescriptor'],_0x1e6956=(_0xbb9288,_0x689209,_0x2f7b42,_0x22ecaf)=>{var _0x4337da=_0x5562bb;for(var _0x57ad97=_0x22ecaf>0x1?void 0x0:_0x22ecaf?_0x3b2f0b(_0x689209,_0x2f7b42):_0x689209,_0x2152fa=_0xbb9288[_0x4337da(0x25b)]-0x1,_0xd9fcb9;_0x2152fa>=0x0;_0x2152fa--)(_0xd9fcb9=_0xbb9288[_0x2152fa])&&(_0x57ad97=_0xd9fcb9(_0x57ad97)||_0x57ad97);return _0x57ad97;},_0x4a0b68=(_0x276d39,_0x2768ad)=>(_0x4d9583,_0xcf2d94)=>_0x2768ad(_0x4d9583,_0xcf2d94,_0x276d39);_0x34c17f[_0x5562bb(0x1f8)]=class extends _0x49d84b[_0x5562bb(0x1cf)]{constructor(_0x450fb7,_0x2af595,_0xb81748){var _0x240688=_0x5562bb;super(),_0x9a5300(this,_0x240688(0x1e5),new Map()),(this[_0x240688(0x211)]=_0x450fb7,this['_injector']=_0x2af595,this[_0x240688(0x1f1)]=_0xb81748,this['_init']());}async[_0x5562bb(0x18d)](_0xaced28){var _0x1c63fe=_0x5562bb;return this[_0x1c63fe(0x1e5)][_0x1c63fe(0x1dd)](_0xaced28)||await this[_0x1c63fe(0x225)](_0xaced28),this[_0x1c63fe(0x1e5)]['get'](_0xaced28);}[_0x5562bb(0x1ee)](){var _0xf34900=_0x5562bb;this[_0xf34900(0x211)][_0xf34900(0x1ed)](_0x49d84b['UniverInstanceType']['UNIVER_SHEET'])[_0xf34900(0x252)](_0xd3e05[_0xf34900(0x1c0)](this['dispose$']))[_0xf34900(0x1e9)](async _0x403ce1=>{var _0x13ad98=_0xf34900;const _0x5b3444=_0x403ce1[_0x13ad98(0x1ae)]();this[_0x13ad98(0x1e5)][_0x13ad98(0x1dd)](_0x5b3444)||this[_0x13ad98(0x225)](_0x5b3444);}),this[_0xf34900(0x211)]['getTypeOfUnitDisposed$'](_0x49d84b[_0xf34900(0x222)][_0xf34900(0x189)])[_0xf34900(0x252)](_0xd3e05[_0xf34900(0x1c0)](this[_0xf34900(0x231)]))[_0xf34900(0x1e9)](_0x54b88d=>{var _0x1655b=_0xf34900;const _0x3f1056=_0x54b88d[_0x1655b(0x1ae)](),_0x2d58f6=this[_0x1655b(0x1e5)]['get'](_0x3f1056);_0x2d58f6==null||_0x2d58f6['dispose']();});}async[_0x5562bb(0x225)](_0x46ddae){var _0x20753f=_0x5562bb;const _0x29903e=await this[_0x20753f(0x1f1)][_0x20753f(0x1b1)](_0x46ddae),_0x24761d=this[_0x20753f(0x1b2)][_0x20753f(0x178)](_0x34c17f['LiveShareCoordinator'],_0x46ddae,_0x29903e);return _0x24761d[_0x20753f(0x1b8)](),this[_0x20753f(0x1e5)][_0x20753f(0x24b)](_0x46ddae,_0x24761d),_0x24761d;}},_0x34c17f[_0x5562bb(0x1f8)]=_0x1e6956([_0x4a0b68(0x0,_0x49d84b[_0x5562bb(0x18c)]),_0x4a0b68(0x1,_0x49d84b[_0x5562bb(0x20f)](_0x49d84b[_0x5562bb(0x227)])),_0x4a0b68(0x2,_0x49d84b[_0x5562bb(0x20f)](_0x1f0dea[_0x5562bb(0x1a2)]))],_0x34c17f[_0x5562bb(0x1f8)]);var _0x1b6a58=(_0x4a27af=>(_0x4a27af[_0x5562bb(0x244)]=_0x5562bb(0x1ce),_0x4a27af['IDLE']=_0x5562bb(0x1d6),_0x4a27af[_0x5562bb(0x23e)]='following',_0x4a27af['NOT_FOLLOWING']=_0x5562bb(0x16d),_0x4a27af[_0x5562bb(0x204)]=_0x5562bb(0x175),_0x4a27af))(_0x1b6a58||{});const _0xc69854=_0x5562bb(0x1cc),_0x130506=0xc8;_0x34c17f[_0x5562bb(0x21d)]=class extends _0x49d84b[_0x5562bb(0x1cf)]{constructor(_0x42e280,_0x13b9e1,_0xdcabe9,_0x3eab02,_0x409e8c){var _0x5edd21=_0x5562bb;super(),_0x9a5300(this,_0x5edd21(0x1db),new _0x467545[(_0x5edd21(0x219))](_0x5edd21(0x1d6))),_0x9a5300(this,_0x5edd21(0x251),this[_0x5edd21(0x1db)][_0x5edd21(0x1d4)]()),_0x9a5300(this,_0x5edd21(0x1ee),!0x1),_0x9a5300(this,'_commandDisposable',null),_0x9a5300(this,_0x5edd21(0x247),null),(this['_unitID']=_0x42e280,this[_0x5edd21(0x176)]=_0x13b9e1,this[_0x5edd21(0x1f2)]=_0xdcabe9,this[_0x5edd21(0x1c2)]=_0x3eab02,this[_0x5edd21(0x21a)]=_0x409e8c);}get[_0x5562bb(0x223)](){var _0x8256e5=_0x5562bb;return this[_0x8256e5(0x1db)]['getValue']();}[_0x5562bb(0x1b4)](){var _0x3c5c40=_0x5562bb,_0x501e58;(_0x501e58=this[_0x3c5c40(0x18b)])==null||_0x501e58[_0x3c5c40(0x1b4)](),this[_0x3c5c40(0x1db)][_0x3c5c40(0x188)](_0x3c5c40(0x1d6)),this[_0x3c5c40(0x1db)][_0x3c5c40(0x25e)]();}['init'](){var _0x563d86=_0x5562bb;this[_0x563d86(0x1ee)]||(this[_0x563d86(0x1ee)]=!0x0,this['_collabSession'][_0x563d86(0x250)][_0x563d86(0x252)](_0xd3e05[_0x563d86(0x1c0)](this['dispose$']))['subscribe'](_0x5cee73=>{var _0x9b8d6a=_0x563d86;switch(_0x5cee73){case _0x1f0dea[_0x9b8d6a(0x174)][_0x9b8d6a(0x244)]:this[_0x9b8d6a(0x21f)]();break;case _0x1f0dea[_0x9b8d6a(0x174)][_0x9b8d6a(0x23d)]:this[_0x9b8d6a(0x207)]();break;}}),this[_0x563d86(0x176)][_0x563d86(0x213)][_0x563d86(0x252)](_0xd3e05[_0x563d86(0x1c0)](this[_0x563d86(0x231)]))[_0x563d86(0x1e9)](_0x2cd825=>{var _0xa2ce28=_0x563d86;const {eventID:_0x2190f0}=_0x2cd825;switch(_0x2190f0){case _0x3e8913[_0xa2ce28(0x19c)]['LIVESHARE_NEW_HOST']:this[_0xa2ce28(0x216)](_0x2cd825);break;case _0x3e8913[_0xa2ce28(0x19c)][_0xa2ce28(0x182)]:this[_0xa2ce28(0x1b5)](_0x2cd825);break;case _0x3e8913[_0xa2ce28(0x19c)][_0xa2ce28(0x1de)]:this[_0xa2ce28(0x19b)]();break;case _0x3e8913[_0xa2ce28(0x19c)][_0xa2ce28(0x1f9)]:this['_handleNewChangeSets'](_0x2cd825);break;}}));}['tryStartPresenting'](){var _0x381cc6=_0x5562bb;this['_collabSession'][_0x381cc6(0x1d3)]({'eventID':_0x3e8913[_0x381cc6(0x19c)][_0x381cc6(0x193)],'data':{'unitID':this['_unitID'],'userID':this[_0x381cc6(0x176)]['getMemberID']()}},this[_0x381cc6(0x16c)]);}[_0x5562bb(0x196)](){var _0x57a165=_0x5562bb;this[_0x57a165(0x223)]===_0x57a165(0x175)&&(this[_0x57a165(0x1db)][_0x57a165(0x188)](_0x57a165(0x1d6)),this[_0x57a165(0x176)][_0x57a165(0x1d3)]({'eventID':_0x3e8913[_0x57a165(0x19c)][_0x57a165(0x1de)],'data':{'unitID':this['_unitID']}},this[_0x57a165(0x16c)]));}[_0x5562bb(0x1cb)](){var _0x240602=_0x5562bb;this[_0x240602(0x223)]==='not-following'&&(this[_0x240602(0x1db)][_0x240602(0x188)](_0x240602(0x22d)),this[_0x240602(0x239)]());}['stopFollowing'](){var _0x503ada=_0x5562bb;this[_0x503ada(0x223)]===_0x503ada(0x22d)&&this['_stopFollowing']();}[_0x5562bb(0x216)](_0x48a2d0){var _0x1aedef=_0x5562bb;const {presenter:_0x4b6a68}=_0x48a2d0[_0x1aedef(0x24d)],_0x4c11c7=this[_0x1aedef(0x176)][_0x1aedef(0x1df)]();this['_presenter']=_0x4b6a68,_0x4b6a68===_0x4c11c7?(this[_0x1aedef(0x25a)](),this[_0x1aedef(0x238)]()):this[_0x1aedef(0x223)]!==_0x1aedef(0x16d)&&(this[_0x1aedef(0x20b)](),this[_0x1aedef(0x239)]());}['_fetchOperations'](){var _0x503cd8=_0x5562bb;const _0x4d7246={'eventID':_0x3e8913[_0x503cd8(0x19c)][_0x503cd8(0x1aa)]};this[_0x503cd8(0x176)][_0x503cd8(0x1d3)](_0x4d7246,this[_0x503cd8(0x16c)]);}[_0x5562bb(0x19b)](){var _0x296ecb=_0x5562bb;this[_0x296ecb(0x247)]=null,this['_status']!==_0x296ecb(0x175)&&this[_0x296ecb(0x25c)]();}[_0x5562bb(0x1d0)](_0x9c13f5){var _0xac0d7d=_0x5562bb;if(this[_0xac0d7d(0x223)]===_0xac0d7d(0x22d)&&this[_0xac0d7d(0x247)]===_0x9c13f5[_0xac0d7d(0x24d)][_0xac0d7d(0x1e7)]){const _0x461527=_0x3e8913[_0xac0d7d(0x249)](_0x9c13f5[_0xac0d7d(0x24d)])[_0xac0d7d(0x1f4)][_0xac0d7d(0x232)]()[_0xac0d7d(0x16f)](_0x3f4279=>_0x3f4279['id']===_0x4043f6[_0xac0d7d(0x21b)]['id']);if(_0x461527){const _0x553d88=_0x461527[_0xac0d7d(0x19f)][_0xac0d7d(0x1fa)],_0x12e839=_0x461527['params'][_0xac0d7d(0x257)]['id'];setTimeout(()=>{var _0x29cff2=_0xac0d7d;this[_0x29cff2(0x21a)][_0x29cff2(0x198)](_0x4043f6[_0x29cff2(0x1ec)]['id'],{'unitId':_0x553d88,'subUnitId':_0x12e839},{'fromCollab':!0x0});});}}}[_0x5562bb(0x238)](){var _0xae2c75=_0x5562bb;this[_0xae2c75(0x1db)]['next']('presenting');const _0x3a9eb8=new Map(),_0x232969=this['_commandDisposable']=new _0x49d84b[(_0xae2c75(0x1e8))]();_0x232969[_0xae2c75(0x242)](_0x49d84b[_0xae2c75(0x199)](()=>{var _0x38bac2=_0xae2c75;_0x3a9eb8[_0x38bac2(0x240)](_0x28d42d=>_0x28d42d[_0x38bac2(0x25e)]()),_0x3a9eb8[_0x38bac2(0x17d)]();})),_0x232969[_0xae2c75(0x242)](this[_0xae2c75(0x21a)][_0xae2c75(0x248)](_0x318aa4=>{var _0x59add7=_0xae2c75,_0x53d317;if(_0x318aa4['type']!==_0x49d84b[_0x59add7(0x218)][_0x59add7(0x17b)]||!this[_0x59add7(0x1c2)][_0x59add7(0x206)](_0x318aa4['id']))return;const {id:_0xe7220f}=_0x318aa4;let _0x3b4c87;_0x3a9eb8['has'](_0xe7220f)?_0x3b4c87=_0x3a9eb8[_0x59add7(0x1ea)](_0xe7220f):(_0x3b4c87=new _0x467545[(_0x59add7(0x25f))](),_0x3a9eb8[_0x59add7(0x24b)](_0xe7220f,_0x3b4c87),_0x3b4c87[_0x59add7(0x252)](_0xd3e05[_0x59add7(0x1c8)]((_0x53d317=this['_configService'][_0x59add7(0x18f)](_0xc69854))!=null?_0x53d317:_0x130506,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59add7(0x1e9)](_0x2b117d=>{var _0xe7e1e2=_0x59add7;this[_0xe7e1e2(0x176)][_0xe7e1e2(0x1d3)]({'eventID':_0x3e8913[_0xe7e1e2(0x19c)][_0xe7e1e2(0x182)],'data':{'unitID':this[_0xe7e1e2(0x16c)],'operations':{[_0x2b117d['id']]:{'id':_0x2b117d['id'],'params':JSON[_0xe7e1e2(0x23c)](_0x2b117d[_0xe7e1e2(0x19f)])}}}},this['_unitID']);})),_0x3b4c87['next'](_0x318aa4);})),this['_liveShareService'][_0xae2c75(0x173)](this[_0xae2c75(0x16c)])[_0xae2c75(0x240)](_0x3440f7=>this[_0xae2c75(0x176)][_0xae2c75(0x1d3)]({'eventID':_0x3e8913[_0xae2c75(0x19c)][_0xae2c75(0x182)],'data':{'unitID':this[_0xae2c75(0x16c)],'operations':{[_0x3440f7['id']]:{'id':_0x3440f7['id'],'params':JSON['stringify'](_0x3440f7[_0xae2c75(0x19f)])}}}},this[_0xae2c75(0x16c)]));}[_0x5562bb(0x20b)](){var _0x4eb06e=_0x5562bb,_0x1c1a46;this[_0x4eb06e(0x1db)][_0x4eb06e(0x188)](_0x4eb06e(0x1d6)),(_0x1c1a46=this[_0x4eb06e(0x18b)])==null||_0x1c1a46[_0x4eb06e(0x1b4)](),this[_0x4eb06e(0x18b)]=null;}[_0x5562bb(0x239)](){var _0x39c400=_0x5562bb,_0x44ac3a;(_0x44ac3a=this['_commandDisposable'])==null||_0x44ac3a[_0x39c400(0x1b4)](),this[_0x39c400(0x1db)][_0x39c400(0x188)](_0x39c400(0x22d));}[_0x5562bb(0x25c)](){var _0x2940e6=_0x5562bb,_0x278751;this[_0x2940e6(0x1db)][_0x2940e6(0x188)](_0x2940e6(0x1d6)),(_0x278751=this[_0x2940e6(0x18b)])==null||_0x278751[_0x2940e6(0x1b4)](),this[_0x2940e6(0x18b)]=null;}['_stopFollowing'](){var _0x414007=_0x5562bb,_0x4530c4;this[_0x414007(0x1db)][_0x414007(0x188)]('not-following'),(_0x4530c4=this[_0x414007(0x18b)])==null||_0x4530c4[_0x414007(0x1b4)]();}[_0x5562bb(0x1b5)](_0xb58639){var _0x52eec9=_0x5562bb;if([_0x52eec9(0x175),_0x52eec9(0x16d),_0x52eec9(0x1ce)][_0x52eec9(0x1da)](this[_0x52eec9(0x223)])||!_0xb58639[_0x52eec9(0x24d)][_0x52eec9(0x1b7)]||_0xb58639[_0x52eec9(0x24d)][_0x52eec9(0x1b7)]===this[_0x52eec9(0x176)][_0x52eec9(0x1df)]())return;this[_0x52eec9(0x223)]===_0x52eec9(0x1d6)&&this['_startFollowing']();const _0x2f9ad0=_0xb58639[_0x52eec9(0x24d)][_0x52eec9(0x1e1)];Object[_0x52eec9(0x180)](_0x2f9ad0)[_0x52eec9(0x240)](_0x33d72e=>{var _0x4ba55b=_0x52eec9;this['_commandService']['executeCommand'](_0x33d72e['id'],_0x33d72e['params']?JSON[_0x4ba55b(0x1f3)](_0x33d72e[_0x4ba55b(0x19f)]):null,{'fromCollab':!0x0});});}[_0x5562bb(0x21f)](){var _0x4a02fe=_0x5562bb,_0x5c69e8;this[_0x4a02fe(0x1db)]['next'](_0x4a02fe(0x1ce)),(_0x5c69e8=this[_0x4a02fe(0x18b)])==null||_0x5c69e8[_0x4a02fe(0x1b4)]();}[_0x5562bb(0x207)](){var _0x439937=_0x5562bb;this[_0x439937(0x1db)]['next']('idle'),this[_0x439937(0x1d1)]();}},_0x34c17f[_0x5562bb(0x21d)]=_0x1e6956([_0x4a0b68(0x2,_0x49d84b[_0x5562bb(0x256)]),_0x4a0b68(0x3,_0x49d84b[_0x5562bb(0x20f)](_0x57e0ad)),_0x4a0b68(0x4,_0x49d84b[_0x5562bb(0x191)])],_0x34c17f['LiveShareCoordinator']);function _0x21ae59(){var _0xeb4c4a=_0x5562bb;const _0x5174d4=_0x3d4c7e[_0xeb4c4a(0x236)](_0x34c17f[_0xeb4c4a(0x1f8)]),_0x106ef6=_0x3d4c7e[_0xeb4c4a(0x236)](_0x49d84b[_0xeb4c4a(0x18c)]),_0x35522a=_0x3d4c7e[_0xeb4c4a(0x1cd)](()=>_0x106ef6['getCurrentTypeOfUnit$'](_0x49d84b[_0xeb4c4a(0x222)][_0xeb4c4a(0x189)]),void 0x0,!0x1,[]),[_0x455d21,_0x27b7c8]=_0x52ad51[_0xeb4c4a(0x21e)](null),[_0x12d969,_0x3f0085]=_0x52ad51['useState'](_0x1b6a58[_0xeb4c4a(0x1a9)]),_0x4c5d86=_0x52ad51[_0xeb4c4a(0x205)](null);return _0x52ad51[_0xeb4c4a(0x1dc)](()=>(_0x35522a&&_0x5174d4['getLiveShareCoordinator'](_0x35522a[_0xeb4c4a(0x1ae)]())[_0xeb4c4a(0x253)](_0x40f097=>{var _0x29318d=_0xeb4c4a;_0x27b7c8(_0x40f097),_0x4c5d86[_0x29318d(0x19e)]=_0x40f097[_0x29318d(0x251)][_0x29318d(0x1e9)](_0x55e30b=>{_0x3f0085(_0x55e30b);});}),()=>{var _0x5e175d=_0xeb4c4a,_0xff2eee;(_0xff2eee=_0x4c5d86[_0x5e175d(0x19e)])==null||_0xff2eee[_0x5e175d(0x18e)](),_0x4c5d86[_0x5e175d(0x19e)]=null;}),[_0x35522a,_0x5174d4]),_0x455d21?_0x4db08d[_0xeb4c4a(0x243)](_0x14c505[_0xeb4c4a(0x1bc)],{'align':'end','disabled':_0x12d969===_0x1b6a58[_0xeb4c4a(0x244)],'className':_0xeb4c4a(0x177),'overlay':_0x4db08d[_0xeb4c4a(0x243)](_0x14cfb8,{'status':_0x12d969,'coordinator':_0x455d21}),'children':_0x4db08d['jsx']('button',{'className':_0x14c505['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x12d969===_0x1b6a58[_0xeb4c4a(0x244)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x12d969!==_0x1b6a58[_0xeb4c4a(0x244)]}),'type':_0xeb4c4a(0x1fb),'children':_0x4db08d[_0xeb4c4a(0x243)](_0x28ed2f,{'className':'univer-size-4'})})}):null;}function _0x14cfb8(_0x1eb446){var _0x57613d=_0x5562bb;const {status:_0x1a0432,coordinator:_0x58069f}=_0x1eb446;switch(_0x1a0432){case _0x1b6a58[_0x57613d(0x1a9)]:return _0x4db08d[_0x57613d(0x243)](_0x8bf1d5,{'coordinator':_0x58069f});case _0x1b6a58['FOLLOWING']:return _0x4db08d[_0x57613d(0x243)](_0x252c02,{'coordinator':_0x58069f});case _0x1b6a58['NOT_FOLLOWING']:return _0x4db08d[_0x57613d(0x243)](_0x510419,{'coordinator':_0x58069f});case _0x1b6a58[_0x57613d(0x244)]:return _0x4db08d[_0x57613d(0x243)](_0x489979,{});case _0x1b6a58[_0x57613d(0x204)]:return _0x4db08d[_0x57613d(0x243)](_0x25edb0,{'coordinator':_0x58069f});default:return null;}}function _0x8bf1d5(_0x37b7d4){var _0x2ce73c=_0x5562bb;const {coordinator:_0x21eb33}=_0x37b7d4;return _0x4db08d[_0x2ce73c(0x255)](_0x4db08d['Fragment'],{'children':[_0x4db08d[_0x2ce73c(0x243)](_0x2ce73c(0x1f5),{'className':_0x2ce73c(0x1e6),'children':_0x2ce73c(0x1bd)}),_0x4db08d['jsx'](_0x14c505[_0x2ce73c(0x23b)],{'onClick':()=>_0x21eb33['tryStartPresenting'](),'children':_0x2ce73c(0x201)})]});}function _0x252c02(_0xd68b97){var _0x19e587=_0x5562bb;const {coordinator:_0x3f544c}=_0xd68b97;return _0x4db08d[_0x19e587(0x255)](_0x4db08d['Fragment'],{'children':[_0x4db08d[_0x19e587(0x243)](_0x19e587(0x1f5),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x19e587(0x237)}),_0x4db08d['jsx'](_0x14c505['Button'],{'onClick':()=>_0x3f544c[_0x19e587(0x1d9)](),'children':_0x19e587(0x1c9)})]});}function _0x510419(_0x37044c){var _0x1e4636=_0x5562bb;const {coordinator:_0x11a7ec}=_0x37044c;return _0x4db08d['jsxs'](_0x4db08d[_0x1e4636(0x1a6)],{'children':[_0x4db08d[_0x1e4636(0x243)](_0x1e4636(0x1f5),{'className':_0x1e4636(0x1e6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4db08d[_0x1e4636(0x243)](_0x14c505[_0x1e4636(0x23b)],{'variant':_0x1e4636(0x262),'onClick':()=>_0x11a7ec[_0x1e4636(0x1cb)](),'children':'Start\x20following'})]});}function _0x25edb0(_0x285f39){var _0x36fc40=_0x5562bb;const {coordinator:_0x204b05}=_0x285f39;return _0x4db08d['jsxs'](_0x4db08d[_0x36fc40(0x1a6)],{'children':[_0x4db08d[_0x36fc40(0x243)](_0x36fc40(0x1f5),{'className':_0x36fc40(0x1e6),'children':_0x36fc40(0x1bb)}),_0x4db08d[_0x36fc40(0x243)](_0x14c505[_0x36fc40(0x23b)],{'variant':_0x36fc40(0x1c4),'onClick':()=>_0x204b05[_0x36fc40(0x196)](),'children':_0x36fc40(0x1a3)})]});}function _0x489979(){var _0x23ad08=_0x5562bb;return _0x4db08d[_0x23ad08(0x243)](_0x4db08d['Fragment'],{'children':_0x23ad08(0x258)});}var _0x5d9270=Object[_0x5562bb(0x190)],_0x4acf95=(_0xd4d023,_0x2ccaed,_0x237af9,_0x650155)=>{for(var _0x15a180=_0x650155>0x1?void 0x0:_0x650155?_0x5d9270(_0x2ccaed,_0x237af9):_0x2ccaed,_0x45d500=_0xd4d023['length']-0x1,_0x4a9020;_0x45d500>=0x0;_0x45d500--)(_0x4a9020=_0xd4d023[_0x45d500])&&(_0x15a180=_0x4a9020(_0x15a180)||_0x15a180);return _0x15a180;},_0x3334f2=(_0x2257b8,_0xe1526b)=>(_0x47c7ee,_0x4ab905)=>_0xe1526b(_0x47c7ee,_0x4ab905,_0x2257b8);_0x34c17f[_0x5562bb(0x245)]=class extends _0x49d84b[_0x5562bb(0x17c)]{constructor(_0x330960,_0xd956ba){super(),this['_injector']=_0x330960,this['_uiPartsService']=_0xd956ba,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x5af966=_0x5562bb;this[_0x5af966(0x1b9)](this[_0x5af966(0x1fe)]['registerComponent'](_0x3d4c7e[_0x5af966(0x25d)]['HEADER_MENU'],()=>_0x3d4c7e[_0x5af966(0x1a4)](_0x21ae59,this[_0x5af966(0x1b2)])));}},_0x34c17f['DesktopLiveShareController']=_0x4acf95([_0x3334f2(0x0,_0x49d84b[_0x5562bb(0x20f)](_0x49d84b[_0x5562bb(0x227)])),_0x3334f2(0x1,_0x3d4c7e[_0x5562bb(0x1d5)])],_0x34c17f['DesktopLiveShareController']);var _0x141b66=Object[_0x5562bb(0x22a)],_0x47d6e6=Object['getOwnPropertyDescriptor'],_0x3933e4=(_0x2f5c75,_0x52dd8c,_0x3fbdf3)=>_0x52dd8c in _0x2f5c75?_0x141b66(_0x2f5c75,_0x52dd8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fbdf3}):_0x2f5c75[_0x52dd8c]=_0x3fbdf3,_0x23e951=(_0x2d1098,_0x588df5,_0x2c841f,_0x583bd1)=>{var _0x45244c=_0x5562bb;for(var _0x16c532=_0x583bd1>0x1?void 0x0:_0x583bd1?_0x47d6e6(_0x588df5,_0x2c841f):_0x588df5,_0x18d1a0=_0x2d1098[_0x45244c(0x25b)]-0x1,_0x697928;_0x18d1a0>=0x0;_0x18d1a0--)(_0x697928=_0x2d1098[_0x18d1a0])&&(_0x16c532=_0x697928(_0x16c532)||_0x16c532);return _0x16c532;},_0x3df1c7=(_0x415465,_0x2c81f7)=>(_0x6972b1,_0x16fe69)=>_0x2c81f7(_0x6972b1,_0x16fe69,_0x415465),_0x2f2f16=(_0x129e96,_0x1cfffe,_0xc85466)=>_0x3933e4(_0x129e96,typeof _0x1cfffe!='symbol'?_0x1cfffe+'':_0x1cfffe,_0xc85466);const _0xccee78=_0x5562bb(0x1c3);_0x34c17f[_0x5562bb(0x20c)]=class extends _0x49d84b[_0x5562bb(0x1a0)]{constructor(_0x4b624d=_0x30a46f,_0x206a33,_0x5cc733){var _0xd779b8=_0x5562bb;super(),this['_config']=_0x4b624d,this[_0xd779b8(0x1b2)]=_0x206a33,this[_0xd779b8(0x1f2)]=_0x5cc733;const {..._0x584e61}=_0x49d84b['merge']({},_0x30a46f,this[_0xd779b8(0x1d7)]);this[_0xd779b8(0x1f2)][_0xd779b8(0x1fd)](_0x1f4a81,_0x584e61);}[_0x5562bb(0x259)](){var _0x503206=_0x5562bb;_0x49d84b[_0x503206(0x17e)](this['_injector'],_0x49d84b[_0x503206(0x17a)]([[_0x57e0ad],[_0x34c17f[_0x503206(0x1f8)]],[_0x12af6b],[_0x34c17f[_0x503206(0x245)]]],this[_0x503206(0x1d7)]['override'])),_0x49d84b[_0x503206(0x212)](this['_injector'],[[_0x12af6b]]);}[_0x5562bb(0x1c7)](){var _0x3f9cd8=_0x5562bb;_0x49d84b[_0x3f9cd8(0x212)](this[_0x3f9cd8(0x1b2)],[[_0x34c17f[_0x3f9cd8(0x245)]]]);}},_0x2f2f16(_0x34c17f[_0x5562bb(0x20c)],_0x5562bb(0x1a5),_0x49d84b[_0x5562bb(0x222)][_0x5562bb(0x220)]),_0x2f2f16(_0x34c17f[_0x5562bb(0x20c)],'pluginName',_0xccee78),_0x34c17f[_0x5562bb(0x20c)]=_0x23e951([_0x49d84b[_0x5562bb(0x208)](_0x1f0dea[_0x5562bb(0x230)]),_0x3df1c7(0x1,_0x49d84b['Inject'](_0x49d84b[_0x5562bb(0x227)])),_0x3df1c7(0x2,_0x49d84b[_0x5562bb(0x256)])],_0x34c17f['UniverLiveSharePlugin']),_0x34c17f[_0x5562bb(0x19a)]=_0x21ae59,_0x34c17f[_0x5562bb(0x1ca)]=_0x57e0ad,_0x34c17f[_0x5562bb(0x22c)]=_0x1b6a58,Object['defineProperty'](_0x34c17f,Symbol[_0x5562bb(0x185)],{'value':_0x5562bb(0x233)});}));
|
|
1
|
+
(function(_0x8fc982,_0x349e9f){var _0x32dc5d=_0x6915,_0x257837=_0x8fc982();while(!![]){try{var _0x5c23ca=parseInt(_0x32dc5d(0x1b3))/0x1*(parseInt(_0x32dc5d(0x243))/0x2)+parseInt(_0x32dc5d(0x272))/0x3*(-parseInt(_0x32dc5d(0x224))/0x4)+parseInt(_0x32dc5d(0x1d0))/0x5*(-parseInt(_0x32dc5d(0x203))/0x6)+parseInt(_0x32dc5d(0x1c1))/0x7*(parseInt(_0x32dc5d(0x1ae))/0x8)+-parseInt(_0x32dc5d(0x265))/0x9+-parseInt(_0x32dc5d(0x1ed))/0xa+parseInt(_0x32dc5d(0x1f1))/0xb;if(_0x5c23ca===_0x349e9f)break;else _0x257837['push'](_0x257837['shift']());}catch(_0xa67862){_0x257837['push'](_0x257837['shift']());}}}(_0x18a6,0x57128),function(_0x458a95,_0x5b747b){var _0x113d13=_0x6915;typeof exports==_0x113d13(0x29b)&&typeof module<'u'?_0x5b747b(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x113d13(0x230)&&define[_0x113d13(0x294)]?define([_0x113d13(0x20f),'@univerjs-pro/collaboration-client','@univerjs/core',_0x113d13(0x26a),_0x113d13(0x1c6),_0x113d13(0x28f),_0x113d13(0x1a8),_0x113d13(0x1bb),_0x113d13(0x212),_0x113d13(0x219),_0x113d13(0x1a9),_0x113d13(0x293)],_0x5b747b):(_0x458a95=typeof globalThis<'u'?globalThis:_0x458a95||self,_0x5b747b(_0x458a95[_0x113d13(0x22c)]={},_0x458a95[_0x113d13(0x221)],_0x458a95[_0x113d13(0x1d3)],_0x458a95[_0x113d13(0x238)],_0x458a95['UniverSheetsUi'],_0x458a95[_0x113d13(0x288)],_0x458a95[_0x113d13(0x207)],_0x458a95[_0x113d13(0x223)],_0x458a95[_0x113d13(0x207)],_0x458a95[_0x113d13(0x25a)],_0x458a95[_0x113d13(0x1a9)],_0x458a95[_0x113d13(0x1a9)][_0x113d13(0x1f0)]));}(this,function(_0x56259b,_0x25c12f,_0x2b7017,_0x2dcc44,_0x483512,_0x558d9b,_0x1baef6,_0x4f2ab1,_0x5c1116,_0x3c711c,_0x298f1e,_0x5e4e89){'use strict';var _0x2dae78=_0x6915;var _0xbb4e6=Object[_0x2dae78(0x1e6)],_0x2186ed=(_0x495420,_0x3189dd,_0x539851)=>_0x3189dd in _0x495420?_0xbb4e6(_0x495420,_0x3189dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x539851}):_0x495420[_0x3189dd]=_0x539851,_0x173f71=(_0x4b5f96,_0x59f388,_0x4e0be6)=>_0x2186ed(_0x4b5f96,typeof _0x59f388!='symbol'?_0x59f388+'':_0x59f388,_0x4e0be6);const _0x245a56=_0x2dae78(0x21e),_0x1f924c={};class _0x561933 extends _0x2b7017['Disposable']{constructor(){var _0x1b63be=_0x2dae78;super(...arguments),_0x173f71(this,_0x1b63be(0x1d6),new Set()),_0x173f71(this,_0x1b63be(0x23b),new Set());}[_0x2dae78(0x261)](_0x2f57b4){var _0x839a26=_0x2dae78;return this[_0x839a26(0x1d6)][_0x839a26(0x1b8)](_0x2f57b4),_0x2b7017['toDisposable'](()=>this[_0x839a26(0x1d6)]['delete'](_0x2f57b4));}[_0x2dae78(0x253)](_0x325b80){var _0x51187d=_0x2dae78;return this['_reporters'][_0x51187d(0x1b8)](_0x325b80),_0x2b7017[_0x51187d(0x1d1)](()=>this[_0x51187d(0x23b)][_0x51187d(0x1b6)](_0x325b80));}[_0x2dae78(0x29d)](_0x172dc7){var _0x350b48=_0x2dae78;return this[_0x350b48(0x1d6)][_0x350b48(0x21d)](_0x172dc7);}['getInitialStates'](_0xa065e2){var _0x55eed9=_0x2dae78;return Array[_0x55eed9(0x247)](this[_0x55eed9(0x23b)])['map'](_0x5d7c36=>_0x5d7c36(_0xa065e2));}}var _0x31f5ce=Object[_0x2dae78(0x246)],_0x136645=(_0x1f1f76,_0x5b3f41,_0x1e88c9,_0x1956fb)=>{var _0x3e7c3e=_0x2dae78;for(var _0x39b618=_0x1956fb>0x1?void 0x0:_0x1956fb?_0x31f5ce(_0x5b3f41,_0x1e88c9):_0x5b3f41,_0x5e172c=_0x1f1f76[_0x3e7c3e(0x209)]-0x1,_0x5ca725;_0x5e172c>=0x0;_0x5e172c--)(_0x5ca725=_0x1f1f76[_0x5e172c])&&(_0x39b618=_0x5ca725(_0x39b618)||_0x39b618);return _0x39b618;},_0x284e80=(_0x362edc,_0x272936)=>(_0x285c1a,_0x22f433)=>_0x272936(_0x285c1a,_0x22f433,_0x362edc);let _0x29c2bc=class extends _0x2b7017[_0x2dae78(0x1b0)]{constructor(_0x58e077){var _0x4d7962=_0x2dae78;super(),this[_0x4d7962(0x244)]=_0x58e077,this['_init']();}[_0x2dae78(0x1d9)](){var _0x5e497e=_0x2dae78;[_0x483512['SetZoomRatioOperation']['id'],_0x483512['SetScrollOperation']['id'],_0x2dcc44[_0x5e497e(0x1ad)]['id']][_0x5e497e(0x1bd)](_0x218c9e=>{var _0x27e900=_0x5e497e;this[_0x27e900(0x24a)](this['_liveShareService'][_0x27e900(0x261)](_0x218c9e));});}};_0x29c2bc=_0x136645([_0x284e80(0x0,_0x2b7017['Inject'](_0x561933))],_0x29c2bc);var _0x37a525=function(){var _0x159c67=_0x2dae78;return _0x37a525=Object[_0x159c67(0x1e7)]||function(_0x2d5cc6){var _0x1a6092=_0x159c67;for(var _0xad2d72,_0x9b8ce5=0x1,_0x3513cd=arguments[_0x1a6092(0x209)];_0x9b8ce5<_0x3513cd;_0x9b8ce5++){_0xad2d72=arguments[_0x9b8ce5];for(var _0x45a02d in _0xad2d72)Object[_0x1a6092(0x1a4)]['hasOwnProperty'][_0x1a6092(0x281)](_0xad2d72,_0x45a02d)&&(_0x2d5cc6[_0x45a02d]=_0xad2d72[_0x45a02d]);}return _0x2d5cc6;},_0x37a525[_0x159c67(0x226)](this,arguments);},_0x502002=function(_0x89fdb2,_0x27a215){var _0x2d3468=_0x2dae78,_0x4117a4={};for(var _0x55b9d1 in _0x89fdb2)Object[_0x2d3468(0x1a4)][_0x2d3468(0x1c7)][_0x2d3468(0x281)](_0x89fdb2,_0x55b9d1)&&_0x27a215[_0x2d3468(0x295)](_0x55b9d1)<0x0&&(_0x4117a4[_0x55b9d1]=_0x89fdb2[_0x55b9d1]);if(_0x89fdb2!=null&&typeof Object[_0x2d3468(0x1ff)]==_0x2d3468(0x230)){for(var _0x7e7f6d=0x0,_0x55b9d1=Object['getOwnPropertySymbols'](_0x89fdb2);_0x7e7f6d<_0x55b9d1[_0x2d3468(0x209)];_0x7e7f6d++)_0x27a215['indexOf'](_0x55b9d1[_0x7e7f6d])<0x0&&Object[_0x2d3468(0x1a4)][_0x2d3468(0x1ea)][_0x2d3468(0x281)](_0x89fdb2,_0x55b9d1[_0x7e7f6d])&&(_0x4117a4[_0x55b9d1[_0x7e7f6d]]=_0x89fdb2[_0x55b9d1[_0x7e7f6d]]);}return _0x4117a4;},_0x3b5527=_0x5c1116[_0x2dae78(0x1e9)](function(_0x3c97c1,_0xda89d){var _0x225f56=_0x2dae78,_0x485157=_0x3c97c1[_0x225f56(0x211)],_0x447b1b=_0x3c97c1['id'],_0x4e5471=_0x3c97c1[_0x225f56(0x214)],_0x517452=_0x3c97c1[_0x225f56(0x240)],_0xac121f=_0x502002(_0x3c97c1,['icon','id',_0x225f56(0x214),_0x225f56(0x240)]),_0x376f98=_0x225f56(0x1b5)[_0x225f56(0x255)](_0x447b1b,'\x20')[_0x225f56(0x255)](_0x4e5471||'')[_0x225f56(0x1fc)](),_0x4c4880=_0x5c1116[_0x225f56(0x29c)]('_'[_0x225f56(0x255)](_0x458c40()));return _0x170f3e(_0x485157,''[_0x225f56(0x255)](_0x447b1b),{'defIds':_0x485157[_0x225f56(0x200)],'idSuffix':_0x4c4880[_0x225f56(0x259)]},_0x37a525({'ref':_0xda89d,'className':_0x376f98},_0xac121f),_0x517452);});function _0x170f3e(_0x5a7212,_0x2706f8,_0x5a67a5,_0xe337cb,_0x529fc3){var _0x494119=_0x2dae78;return _0x5c1116[_0x494119(0x205)](_0x5a7212['tag'],_0x37a525(_0x37a525({'key':_0x2706f8},_0x48b829(_0x5a7212,_0x5a67a5,_0x529fc3)),_0xe337cb),(_0x101075(_0x5a7212,_0x5a67a5)[_0x494119(0x21f)]||[])[_0x494119(0x206)](function(_0x36019e,_0x5bf622){var _0x5b23a7=_0x494119;return _0x170f3e(_0x36019e,''[_0x5b23a7(0x255)](_0x2706f8,'-')[_0x5b23a7(0x255)](_0x5a7212[_0x5b23a7(0x202)],'-')[_0x5b23a7(0x255)](_0x5bf622),_0x5a67a5,void 0x0,_0x529fc3);}));}function _0x48b829(_0x353084,_0x3c4c25,_0x8018a){var _0x3da6d2=_0x2dae78,_0x56b614=_0x37a525({},_0x353084['attrs']);_0x8018a!=null&&_0x8018a[_0x3da6d2(0x27e)]&&_0x56b614[_0x3da6d2(0x23e)]==='colorChannel1'&&(_0x56b614[_0x3da6d2(0x23e)]=_0x8018a['colorChannel1']),_0x353084[_0x3da6d2(0x202)]===_0x3da6d2(0x1d8)&&_0x56b614['id']&&(_0x56b614['id']=_0x56b614['id']+_0x3c4c25['idSuffix']),Object[_0x3da6d2(0x269)](_0x56b614)[_0x3da6d2(0x1bd)](function(_0x26a66a){var _0x7507c0=_0x3da6d2,_0x4b4eb0=_0x26a66a[0x0],_0x444fce=_0x26a66a[0x1];_0x4b4eb0===_0x7507c0(0x1d8)&&typeof _0x444fce=='string'&&(_0x56b614[_0x4b4eb0]=_0x444fce[_0x7507c0(0x25f)](/url\(#(.*)\)/,_0x7507c0(0x252)['concat'](_0x3c4c25['idSuffix'],')')));});var _0x166757=_0x3c4c25[_0x3da6d2(0x200)];return!_0x166757||_0x166757[_0x3da6d2(0x209)]===0x0||(_0x353084[_0x3da6d2(0x202)]===_0x3da6d2(0x251)&&_0x56b614[_0x3da6d2(0x1f9)]&&(_0x56b614[_0x3da6d2(0x1f9)]=_0x56b614['xlink:href']+_0x3c4c25[_0x3da6d2(0x227)]),Object[_0x3da6d2(0x269)](_0x56b614)[_0x3da6d2(0x1bd)](function(_0x1dc433){var _0x4ee982=_0x3da6d2,_0x3982ff=_0x1dc433[0x0],_0x2b925a=_0x1dc433[0x1];typeof _0x2b925a==_0x4ee982(0x24f)&&(_0x56b614[_0x3982ff]=_0x2b925a[_0x4ee982(0x25f)](/url\(#(.*)\)/,_0x4ee982(0x252)['concat'](_0x3c4c25[_0x4ee982(0x227)],')')));})),_0x56b614;}function _0x101075(_0x4a6b7c,_0x287fb8){var _0x16e006=_0x2dae78,_0x288ff7,_0x4f34cf=_0x287fb8[_0x16e006(0x200)];return!_0x4f34cf||_0x4f34cf[_0x16e006(0x209)]===0x0?_0x4a6b7c:_0x4a6b7c[_0x16e006(0x202)]===_0x16e006(0x1fe)&&(!((_0x288ff7=_0x4a6b7c[_0x16e006(0x21f)])===null||_0x288ff7===void 0x0)&&_0x288ff7['length'])?_0x37a525(_0x37a525({},_0x4a6b7c),{'children':_0x4a6b7c[_0x16e006(0x21f)][_0x16e006(0x206)](function(_0x4e08bc){var _0x21c902=_0x16e006;return typeof _0x4e08bc[_0x21c902(0x1a3)]['id']=='string'&&_0x4f34cf&&_0x4f34cf[_0x21c902(0x208)](_0x4e08bc[_0x21c902(0x1a3)]['id'])?_0x37a525(_0x37a525({},_0x4e08bc),{'attrs':_0x37a525(_0x37a525({},_0x4e08bc[_0x21c902(0x1a3)]),{'id':_0x4e08bc['attrs']['id']+_0x287fb8[_0x21c902(0x227)]})}):_0x4e08bc;})}):_0x4a6b7c;}function _0x458c40(){var _0x334ce7=_0x2dae78;return Math[_0x334ce7(0x1bc)]()[_0x334ce7(0x278)](0x24)[_0x334ce7(0x273)](0x2,0x8);}_0x3b5527[_0x2dae78(0x283)]='UniverIcon';var _0x2df275={'tag':_0x2dae78(0x20a),'attrs':{'xmlns':_0x2dae78(0x1de),'fill':'none','viewBox':_0x2dae78(0x274),'width':_0x2dae78(0x1e8),'height':'1em'},'children':[{'tag':_0x2dae78(0x1cd),'attrs':{'fill':_0x2dae78(0x287),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x2dae78(0x287),'d':_0x2dae78(0x1c3),'fillRule':_0x2dae78(0x1c2),'clipRule':'evenodd'}}]},_0x34ee0e=_0x5c1116['forwardRef'](function(_0x4d585a,_0x56c3fd){var _0xecb1fb=_0x2dae78;return _0x5c1116[_0xecb1fb(0x205)](_0x3b5527,Object[_0xecb1fb(0x1e7)]({},_0x4d585a,{'id':_0xecb1fb(0x271),'ref':_0x56c3fd,'icon':_0x2df275}));});_0x34ee0e[_0x2dae78(0x283)]=_0x2dae78(0x290);var _0x4663d4=Object['getOwnPropertyDescriptor'],_0x3ddac3=(_0xdf5b9a,_0xff3aca,_0x31b648,_0x3094cf)=>{for(var _0x23d8a8=_0x3094cf>0x1?void 0x0:_0x3094cf?_0x4663d4(_0xff3aca,_0x31b648):_0xff3aca,_0xf8e404=_0xdf5b9a['length']-0x1,_0x332839;_0xf8e404>=0x0;_0xf8e404--)(_0x332839=_0xdf5b9a[_0xf8e404])&&(_0x23d8a8=_0x332839(_0x23d8a8)||_0x23d8a8);return _0x23d8a8;},_0x3c706d=(_0x4236f1,_0x332786)=>(_0x3a5acf,_0x12e8ca)=>_0x332786(_0x3a5acf,_0x12e8ca,_0x4236f1);_0x56259b['LiveShareController']=class extends _0x2b7017[_0x2dae78(0x1c5)]{constructor(_0x4b2c0a,_0x36ce6a,_0x19b537){var _0x5a1617=_0x2dae78;super(),_0x173f71(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4b2c0a,this[_0x5a1617(0x28e)]=_0x36ce6a,this['_collabSessionService']=_0x19b537,this[_0x5a1617(0x1d9)]());}async[_0x2dae78(0x1dd)](_0x378de0){var _0x4edf33=_0x2dae78;return this[_0x4edf33(0x22f)][_0x4edf33(0x21d)](_0x378de0)||await this[_0x4edf33(0x21b)](_0x378de0),this[_0x4edf33(0x22f)][_0x4edf33(0x220)](_0x378de0);}['_init'](){var _0x4d0a39=_0x2dae78;this[_0x4d0a39(0x1d7)][_0x4d0a39(0x24b)](_0x2b7017[_0x4d0a39(0x249)][_0x4d0a39(0x250)])['pipe'](_0x5e4e89[_0x4d0a39(0x210)](this[_0x4d0a39(0x296)]))[_0x4d0a39(0x26f)](async _0x3cd509=>{var _0x1e4abc=_0x4d0a39;const _0x31f3a0=_0x3cd509[_0x1e4abc(0x23c)]();this[_0x1e4abc(0x22f)][_0x1e4abc(0x21d)](_0x31f3a0)||this[_0x1e4abc(0x21b)](_0x31f3a0);}),this[_0x4d0a39(0x1d7)]['getTypeOfUnitDisposed$'](_0x2b7017[_0x4d0a39(0x249)]['UNIVER_SHEET'])[_0x4d0a39(0x279)](_0x5e4e89[_0x4d0a39(0x210)](this['dispose$']))['subscribe'](_0x185184=>{var _0x303e6f=_0x4d0a39;const _0x3e69d7=_0x185184[_0x303e6f(0x23c)](),_0x5f362b=this[_0x303e6f(0x22f)][_0x303e6f(0x220)](_0x3e69d7);_0x5f362b==null||_0x5f362b['dispose']();});}async['_startLiveShareCoordinator'](_0x38ae8f){var _0x72ebd=_0x2dae78;const _0x4a986d=await this[_0x72ebd(0x262)][_0x72ebd(0x1cc)](_0x38ae8f),_0xf1d85e=this[_0x72ebd(0x28e)]['createInstance'](_0x56259b[_0x72ebd(0x1fd)],_0x38ae8f,_0x4a986d);return _0xf1d85e[_0x72ebd(0x1ac)](),this[_0x72ebd(0x22f)]['set'](_0x38ae8f,_0xf1d85e),_0xf1d85e;}},_0x56259b['LiveShareController']=_0x3ddac3([_0x3c706d(0x0,_0x2b7017[_0x2dae78(0x1c8)]),_0x3c706d(0x1,_0x2b7017['Inject'](_0x2b7017['Injector'])),_0x3c706d(0x2,_0x2b7017['Inject'](_0x25c12f[_0x2dae78(0x1dc)]))],_0x56259b[_0x2dae78(0x1e2)]);var _0x8b9dfd=(_0x2e8cbf=>(_0x2e8cbf['OFFLINE']='offline',_0x2e8cbf[_0x2dae78(0x235)]=_0x2dae78(0x216),_0x2e8cbf[_0x2dae78(0x28b)]=_0x2dae78(0x23a),_0x2e8cbf[_0x2dae78(0x284)]=_0x2dae78(0x1b4),_0x2e8cbf[_0x2dae78(0x267)]='presenting',_0x2e8cbf))(_0x8b9dfd||{});const _0x25810f=_0x2dae78(0x1e0),_0x1ec601=0xc8;_0x56259b[_0x2dae78(0x1fd)]=class extends _0x2b7017[_0x2dae78(0x1c5)]{constructor(_0x1efd6f,_0x2c239c,_0x399a35,_0x5ac91e,_0x5aa2ed){var _0x10dac4=_0x2dae78;super(),_0x173f71(this,_0x10dac4(0x291),new _0x298f1e[(_0x10dac4(0x27d))](_0x10dac4(0x216))),_0x173f71(this,_0x10dac4(0x1b9),this['_status$'][_0x10dac4(0x233)]()),_0x173f71(this,_0x10dac4(0x1d9),!0x1),_0x173f71(this,_0x10dac4(0x258),null),_0x173f71(this,_0x10dac4(0x231),null),(this[_0x10dac4(0x280)]=_0x1efd6f,this[_0x10dac4(0x234)]=_0x2c239c,this[_0x10dac4(0x298)]=_0x399a35,this[_0x10dac4(0x244)]=_0x5ac91e,this[_0x10dac4(0x289)]=_0x5aa2ed);}get[_0x2dae78(0x275)](){var _0x43932b=_0x2dae78;return this[_0x43932b(0x291)][_0x43932b(0x1d4)]();}[_0x2dae78(0x22a)](){var _0x3dcbf8=_0x2dae78,_0x1a5f20;(_0x1a5f20=this[_0x3dcbf8(0x258)])==null||_0x1a5f20[_0x3dcbf8(0x22a)](),this['_status$'][_0x3dcbf8(0x27b)](_0x3dcbf8(0x216)),this[_0x3dcbf8(0x291)][_0x3dcbf8(0x217)]();}[_0x2dae78(0x1ac)](){var _0x4b918f=_0x2dae78;this[_0x4b918f(0x1d9)]||(this[_0x4b918f(0x1d9)]=!0x0,this[_0x4b918f(0x234)][_0x4b918f(0x285)]['pipe'](_0x5e4e89[_0x4b918f(0x210)](this[_0x4b918f(0x296)]))['subscribe'](_0x2868c6=>{var _0x13cebd=_0x4b918f;switch(_0x2868c6){case _0x25c12f['SessionStatus'][_0x13cebd(0x1e1)]:this[_0x13cebd(0x299)]();break;case _0x25c12f[_0x13cebd(0x21a)][_0x13cebd(0x218)]:this['_handleOnline']();break;}}),this['_collabSession']['event$']['pipe'](_0x5e4e89['takeUntil'](this[_0x4b918f(0x296)]))[_0x4b918f(0x26f)](_0x1c6e0b=>{var _0x10fa84=_0x4b918f;const {eventID:_0x2f4b0c}=_0x1c6e0b;switch(_0x2f4b0c){case _0x3c711c[_0x10fa84(0x1b7)][_0x10fa84(0x260)]:this[_0x10fa84(0x277)](_0x1c6e0b);break;case _0x3c711c['CollaborationEvent'][_0x10fa84(0x286)]:this[_0x10fa84(0x236)](_0x1c6e0b);break;case _0x3c711c[_0x10fa84(0x1b7)][_0x10fa84(0x29a)]:this[_0x10fa84(0x1f2)]();break;case _0x3c711c[_0x10fa84(0x1b7)][_0x10fa84(0x215)]:this['_handleNewChangeSets'](_0x1c6e0b);break;}}));}[_0x2dae78(0x1ee)](){var _0x47bb77=_0x2dae78;this[_0x47bb77(0x234)][_0x47bb77(0x228)]({'eventID':_0x3c711c[_0x47bb77(0x1b7)][_0x47bb77(0x1d2)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x47bb77(0x256)]()}},this[_0x47bb77(0x280)]);}[_0x2dae78(0x24d)](){var _0x1a4dd1=_0x2dae78;this[_0x1a4dd1(0x275)]===_0x1a4dd1(0x26c)&&(this['_status$']['next'](_0x1a4dd1(0x216)),this[_0x1a4dd1(0x234)]['send']({'eventID':_0x3c711c['CollaborationEvent'][_0x1a4dd1(0x29a)],'data':{'unitID':this[_0x1a4dd1(0x280)]}},this[_0x1a4dd1(0x280)]));}[_0x2dae78(0x1ef)](){var _0x49ff62=_0x2dae78;this['_status']==='not-following'&&(this[_0x49ff62(0x291)][_0x49ff62(0x27b)](_0x49ff62(0x23a)),this[_0x49ff62(0x263)]());}[_0x2dae78(0x1a6)](){var _0x5f09c7=_0x2dae78;this[_0x5f09c7(0x275)]==='following'&&this[_0x5f09c7(0x20b)]();}[_0x2dae78(0x277)](_0x498175){var _0x5295db=_0x2dae78;const {presenter:_0x35f540}=_0x498175[_0x5295db(0x1ba)],_0xfe4a3b=this[_0x5295db(0x234)][_0x5295db(0x256)]();this[_0x5295db(0x231)]=_0x35f540,_0x35f540===_0xfe4a3b?(this['_stopFollowing'](),this[_0x5295db(0x23f)]()):this[_0x5295db(0x275)]!==_0x5295db(0x1b4)&&(this[_0x5295db(0x20d)](),this['_startFollowing']());}['_fetchOperations'](){var _0x11c528=_0x2dae78;const _0x3444b6={'eventID':_0x3c711c['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x11c528(0x228)](_0x3444b6,this[_0x11c528(0x280)]);}['_handleTerminate'](){var _0x353f90=_0x2dae78;this[_0x353f90(0x231)]=null,this[_0x353f90(0x275)]!==_0x353f90(0x26c)&&this[_0x353f90(0x1fb)]();}[_0x2dae78(0x242)](_0x1d9eda){var _0x296564=_0x2dae78;if(this[_0x296564(0x275)]==='following'&&this[_0x296564(0x231)]===_0x1d9eda[_0x296564(0x1ba)][_0x296564(0x28c)]){const _0x222200=_0x3c711c[_0x296564(0x257)](_0x1d9eda[_0x296564(0x1ba)])[_0x296564(0x1f7)][_0x296564(0x1f5)]()[_0x296564(0x204)](_0x2bcf3a=>_0x2bcf3a['id']===_0x2dcc44['InsertSheetMutation']['id']);if(_0x222200){const _0x255ff0=_0x222200[_0x296564(0x25c)][_0x296564(0x28a)],_0x3f527a=_0x222200['params'][_0x296564(0x1d5)]['id'];setTimeout(()=>{var _0x279ec3=_0x296564;this[_0x279ec3(0x289)][_0x279ec3(0x270)](_0x2dcc44[_0x279ec3(0x1ad)]['id'],{'unitId':_0x255ff0,'subUnitId':_0x3f527a},{'fromCollab':!0x0});});}}}[_0x2dae78(0x23f)](){var _0x3980f9=_0x2dae78;this[_0x3980f9(0x291)][_0x3980f9(0x27b)]('presenting');const _0x4956d3=new Map(),_0xfa15c9=this[_0x3980f9(0x258)]=new _0x2b7017[(_0x3980f9(0x232))]();_0xfa15c9['add'](_0x2b7017[_0x3980f9(0x1d1)](()=>{var _0x587775=_0x3980f9;_0x4956d3['forEach'](_0x113086=>_0x113086['complete']()),_0x4956d3[_0x587775(0x28d)]();})),_0xfa15c9['add'](this['_commandService']['onCommandExecuted'](_0xe2e216=>{var _0xb56a76=_0x3980f9,_0x51c7aa;if(_0xe2e216[_0xb56a76(0x276)]!==_0x2b7017[_0xb56a76(0x1c9)]['OPERATION']||!this[_0xb56a76(0x244)]['shouldShareOperation'](_0xe2e216['id']))return;const {id:_0x44db50}=_0xe2e216;let _0x567999;_0x4956d3[_0xb56a76(0x21d)](_0x44db50)?_0x567999=_0x4956d3[_0xb56a76(0x220)](_0x44db50):(_0x567999=new _0x298f1e[(_0xb56a76(0x248))](),_0x4956d3[_0xb56a76(0x1f3)](_0x44db50,_0x567999),_0x567999[_0xb56a76(0x279)](_0x5e4e89['throttleTime']((_0x51c7aa=this['_configService'][_0xb56a76(0x1b2)](_0x25810f))!=null?_0x51c7aa:_0x1ec601,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xb56a76(0x26f)](_0x289eca=>{var _0x25a6d7=_0xb56a76;this['_collabSession'][_0x25a6d7(0x228)]({'eventID':_0x3c711c['CollaborationEvent'][_0x25a6d7(0x286)],'data':{'unitID':this[_0x25a6d7(0x280)],'operations':{[_0x289eca['id']]:{'id':_0x289eca['id'],'params':JSON[_0x25a6d7(0x26e)](_0x289eca[_0x25a6d7(0x25c)])}}}},this['_unitID']);})),_0x567999[_0xb56a76(0x27b)](_0xe2e216);})),this['_liveShareService']['getInitialStates'](this[_0x3980f9(0x280)])[_0x3980f9(0x1bd)](_0x32763f=>this[_0x3980f9(0x234)][_0x3980f9(0x228)]({'eventID':_0x3c711c[_0x3980f9(0x1b7)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x32763f['id']]:{'id':_0x32763f['id'],'params':JSON['stringify'](_0x32763f[_0x3980f9(0x25c)])}}}},this['_unitID']));}[_0x2dae78(0x20d)](){var _0x280b77=_0x2dae78,_0x5564a8;this['_status$']['next']('idle'),(_0x5564a8=this[_0x280b77(0x258)])==null||_0x5564a8['dispose'](),this['_commandDisposable']=null;}[_0x2dae78(0x263)](){var _0x15d928=_0x2dae78,_0x32a040;(_0x32a040=this[_0x15d928(0x258)])==null||_0x32a040[_0x15d928(0x22a)](),this[_0x15d928(0x291)][_0x15d928(0x27b)](_0x15d928(0x23a));}['_beIdle'](){var _0x10ba0f=_0x2dae78,_0x5eedea;this[_0x10ba0f(0x291)]['next']('idle'),(_0x5eedea=this[_0x10ba0f(0x258)])==null||_0x5eedea['dispose'](),this[_0x10ba0f(0x258)]=null;}['_stopFollowing'](){var _0x156b87=_0x2dae78,_0x54b74b;this[_0x156b87(0x291)][_0x156b87(0x27b)]('not-following'),(_0x54b74b=this[_0x156b87(0x258)])==null||_0x54b74b[_0x156b87(0x22a)]();}['_handleOperation'](_0x4b05dc){var _0x57fc89=_0x2dae78;if([_0x57fc89(0x26c),'not-following',_0x57fc89(0x1fa)][_0x57fc89(0x208)](this['_status'])||!_0x4b05dc[_0x57fc89(0x1ba)][_0x57fc89(0x1df)]||_0x4b05dc[_0x57fc89(0x1ba)][_0x57fc89(0x1df)]===this[_0x57fc89(0x234)][_0x57fc89(0x256)]())return;this['_status']===_0x57fc89(0x216)&&this[_0x57fc89(0x263)]();const _0xdb73f6=_0x4b05dc[_0x57fc89(0x1ba)][_0x57fc89(0x1eb)];Object[_0x57fc89(0x27f)](_0xdb73f6)[_0x57fc89(0x1bd)](_0xf59f54=>{var _0x11f823=_0x57fc89;this[_0x11f823(0x289)]['executeCommand'](_0xf59f54['id'],_0xf59f54[_0x11f823(0x25c)]?JSON[_0x11f823(0x25b)](_0xf59f54['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2ebc2e=_0x2dae78,_0x2ecad0;this[_0x2ebc2e(0x291)][_0x2ebc2e(0x27b)](_0x2ebc2e(0x1fa)),(_0x2ecad0=this[_0x2ebc2e(0x258)])==null||_0x2ecad0[_0x2ebc2e(0x22a)]();}[_0x2dae78(0x27c)](){var _0x1718c4=_0x2dae78;this['_status$'][_0x1718c4(0x27b)](_0x1718c4(0x216)),this['_fetchOperations']();}},_0x56259b['LiveShareCoordinator']=_0x3ddac3([_0x3c706d(0x2,_0x2b7017[_0x2dae78(0x25e)]),_0x3c706d(0x3,_0x2b7017[_0x2dae78(0x1ce)](_0x561933)),_0x3c706d(0x4,_0x2b7017[_0x2dae78(0x239)])],_0x56259b[_0x2dae78(0x1fd)]);function _0x16e19d(){var _0x4b8b41=_0x2dae78;const _0x4c2630=_0x558d9b[_0x4b8b41(0x268)](_0x56259b[_0x4b8b41(0x1e2)]),_0x216212=_0x558d9b[_0x4b8b41(0x268)](_0x2b7017['IUniverInstanceService']),_0xdcb2e=_0x558d9b['useObservable'](()=>_0x216212[_0x4b8b41(0x1be)](_0x2b7017[_0x4b8b41(0x249)][_0x4b8b41(0x250)]),void 0x0,!0x1,[]),[_0x4fc440,_0x2c4492]=_0x5c1116[_0x4b8b41(0x1f8)](null),[_0x1c8a12,_0x58de25]=_0x5c1116[_0x4b8b41(0x1f8)](_0x8b9dfd[_0x4b8b41(0x235)]),_0x1e5d7e=_0x5c1116[_0x4b8b41(0x29c)](null);return _0x5c1116['useEffect'](()=>(_0xdcb2e&&_0x4c2630[_0x4b8b41(0x1dd)](_0xdcb2e[_0x4b8b41(0x23c)]())[_0x4b8b41(0x1bf)](_0x428784=>{var _0xfb44ea=_0x4b8b41;_0x2c4492(_0x428784),_0x1e5d7e[_0xfb44ea(0x259)]=_0x428784['status$'][_0xfb44ea(0x26f)](_0x31ecde=>{_0x58de25(_0x31ecde);});}),()=>{var _0x597cd1=_0x4b8b41,_0x1e50a7;(_0x1e50a7=_0x1e5d7e[_0x597cd1(0x259)])==null||_0x1e50a7['unsubscribe'](),_0x1e5d7e['current']=null;}),[_0xdcb2e,_0x4c2630]),_0x4fc440?_0x1baef6[_0x4b8b41(0x292)](_0x4f2ab1[_0x4b8b41(0x1f4)],{'align':_0x4b8b41(0x237),'disabled':_0x1c8a12===_0x8b9dfd[_0x4b8b41(0x1e1)],'className':_0x4b8b41(0x23d),'overlay':_0x1baef6[_0x4b8b41(0x292)](_0x5bc121,{'status':_0x1c8a12,'coordinator':_0x4fc440}),'children':_0x1baef6['jsx'](_0x4b8b41(0x22d),{'className':_0x4f2ab1['clsx'](_0x4b8b41(0x1cb),{'univer-cursor-not-allowed':_0x1c8a12===_0x8b9dfd[_0x4b8b41(0x1e1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1c8a12!==_0x8b9dfd[_0x4b8b41(0x1e1)]}),'type':_0x4b8b41(0x22d),'children':_0x1baef6[_0x4b8b41(0x292)](_0x34ee0e,{'className':_0x4b8b41(0x1c0)})})}):null;}function _0x5bc121(_0x9803da){var _0x3a9bd=_0x2dae78;const {status:_0xe5cb8,coordinator:_0x4e8cb4}=_0x9803da;switch(_0xe5cb8){case _0x8b9dfd[_0x3a9bd(0x235)]:return _0x1baef6['jsx'](_0x532241,{'coordinator':_0x4e8cb4});case _0x8b9dfd[_0x3a9bd(0x28b)]:return _0x1baef6[_0x3a9bd(0x292)](_0x3abf8a,{'coordinator':_0x4e8cb4});case _0x8b9dfd[_0x3a9bd(0x284)]:return _0x1baef6['jsx'](_0x427554,{'coordinator':_0x4e8cb4});case _0x8b9dfd[_0x3a9bd(0x1e1)]:return _0x1baef6[_0x3a9bd(0x292)](_0x42936e,{});case _0x8b9dfd['PRESENTING']:return _0x1baef6[_0x3a9bd(0x292)](_0x457796,{'coordinator':_0x4e8cb4});default:return null;}}function _0x532241(_0x86f0ea){var _0x229152=_0x2dae78;const {coordinator:_0x547667}=_0x86f0ea;return _0x1baef6[_0x229152(0x21c)](_0x1baef6[_0x229152(0x22e)],{'children':[_0x1baef6[_0x229152(0x292)](_0x229152(0x22b),{'className':_0x229152(0x229),'children':_0x229152(0x1e5)}),_0x1baef6[_0x229152(0x292)](_0x4f2ab1[_0x229152(0x213)],{'onClick':()=>_0x547667[_0x229152(0x1ee)](),'children':_0x229152(0x24e)})]});}function _0x3abf8a(_0x438aa2){var _0x1d78d0=_0x2dae78;const {coordinator:_0x55586b}=_0x438aa2;return _0x1baef6[_0x1d78d0(0x21c)](_0x1baef6[_0x1d78d0(0x22e)],{'children':[_0x1baef6['jsx'](_0x1d78d0(0x22b),{'className':_0x1d78d0(0x229),'children':_0x1d78d0(0x1db)}),_0x1baef6[_0x1d78d0(0x292)](_0x4f2ab1[_0x1d78d0(0x213)],{'onClick':()=>_0x55586b[_0x1d78d0(0x1a6)](),'children':'Stop\x20following'})]});}function _0x427554(_0x41cba8){var _0x176c54=_0x2dae78;const {coordinator:_0x1e81ee}=_0x41cba8;return _0x1baef6[_0x176c54(0x21c)](_0x1baef6[_0x176c54(0x22e)],{'children':[_0x1baef6[_0x176c54(0x292)](_0x176c54(0x22b),{'className':_0x176c54(0x229),'children':_0x176c54(0x1f6)}),_0x1baef6[_0x176c54(0x292)](_0x4f2ab1[_0x176c54(0x213)],{'variant':_0x176c54(0x1a7),'onClick':()=>_0x1e81ee[_0x176c54(0x1ef)](),'children':_0x176c54(0x1cf)})]});}function _0x457796(_0x387812){var _0x54dc67=_0x2dae78;const {coordinator:_0x31e772}=_0x387812;return _0x1baef6[_0x54dc67(0x21c)](_0x1baef6[_0x54dc67(0x22e)],{'children':[_0x1baef6[_0x54dc67(0x292)](_0x54dc67(0x22b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x1baef6[_0x54dc67(0x292)](_0x4f2ab1['Button'],{'variant':_0x54dc67(0x225),'onClick':()=>_0x31e772[_0x54dc67(0x24d)](),'children':_0x54dc67(0x1e3)})]});}function _0x42936e(){var _0x3131ba=_0x2dae78;return _0x1baef6[_0x3131ba(0x292)](_0x1baef6[_0x3131ba(0x22e)],{'children':_0x3131ba(0x24c)});}var _0x558ecb=Object['getOwnPropertyDescriptor'],_0x14cf2e=(_0xe9b329,_0x80ccec,_0x1416ac,_0x5ba6a3)=>{var _0x4b5bab=_0x2dae78;for(var _0x4602db=_0x5ba6a3>0x1?void 0x0:_0x5ba6a3?_0x558ecb(_0x80ccec,_0x1416ac):_0x80ccec,_0x120978=_0xe9b329[_0x4b5bab(0x209)]-0x1,_0x4d61f9;_0x120978>=0x0;_0x120978--)(_0x4d61f9=_0xe9b329[_0x120978])&&(_0x4602db=_0x4d61f9(_0x4602db)||_0x4602db);return _0x4602db;},_0x2ffd78=(_0x2a6f23,_0x26f23e)=>(_0x44e0d1,_0x1bcc64)=>_0x26f23e(_0x44e0d1,_0x1bcc64,_0x2a6f23);_0x56259b['DesktopLiveShareController']=class extends _0x2b7017[_0x2dae78(0x1b0)]{constructor(_0x4e4605,_0x16267f){var _0x1c5558=_0x2dae78;super(),this['_injector']=_0x4e4605,this[_0x1c5558(0x1b1)]=_0x16267f,this[_0x1c5558(0x25d)]();}[_0x2dae78(0x25d)](){var _0x184166=_0x2dae78;this[_0x184166(0x24a)](this[_0x184166(0x1b1)][_0x184166(0x1ec)](_0x558d9b['BuiltInUIPart'][_0x184166(0x1aa)],()=>_0x558d9b[_0x184166(0x1c4)](_0x16e19d,this[_0x184166(0x28e)])));}},_0x56259b[_0x2dae78(0x26d)]=_0x14cf2e([_0x2ffd78(0x0,_0x2b7017[_0x2dae78(0x1ce)](_0x2b7017['Injector'])),_0x2ffd78(0x1,_0x558d9b[_0x2dae78(0x1da)])],_0x56259b[_0x2dae78(0x26d)]);var _0x48ac40=Object[_0x2dae78(0x1e6)],_0x2204da=Object['getOwnPropertyDescriptor'],_0x294563=(_0x35bb1b,_0x17cd48,_0x279f9d)=>_0x17cd48 in _0x35bb1b?_0x48ac40(_0x35bb1b,_0x17cd48,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x279f9d}):_0x35bb1b[_0x17cd48]=_0x279f9d,_0x362d02=(_0x594761,_0x1742e7,_0x52ae51,_0x499540)=>{var _0x3a07af=_0x2dae78;for(var _0x58d207=_0x499540>0x1?void 0x0:_0x499540?_0x2204da(_0x1742e7,_0x52ae51):_0x1742e7,_0x35850e=_0x594761[_0x3a07af(0x209)]-0x1,_0x46005c;_0x35850e>=0x0;_0x35850e--)(_0x46005c=_0x594761[_0x35850e])&&(_0x58d207=_0x46005c(_0x58d207)||_0x58d207);return _0x58d207;},_0x40bdf0=(_0x31cad6,_0x5ccf93)=>(_0x7ba73b,_0x532b3e)=>_0x5ccf93(_0x7ba73b,_0x532b3e,_0x31cad6),_0x382080=(_0x1e444f,_0x4b2165,_0x4b43ce)=>_0x294563(_0x1e444f,typeof _0x4b2165!=_0x2dae78(0x282)?_0x4b2165+'':_0x4b2165,_0x4b43ce);const _0x185fea='UNIVER_LIVE_SHARE_PLUGIN';_0x56259b[_0x2dae78(0x1ca)]=class extends _0x2b7017[_0x2dae78(0x1ab)]{constructor(_0x2dbf57=_0x1f924c,_0x2c22ef,_0x1c0694){var _0x2cb9ca=_0x2dae78;super(),this['_config']=_0x2dbf57,this[_0x2cb9ca(0x28e)]=_0x2c22ef,this[_0x2cb9ca(0x298)]=_0x1c0694;const {..._0x162b8a}=_0x2b7017[_0x2cb9ca(0x297)]({},_0x1f924c,this[_0x2cb9ca(0x254)]);this['_configService'][_0x2cb9ca(0x20e)](_0x245a56,_0x162b8a);}[_0x2dae78(0x1a5)](){var _0x3e9c03=_0x2dae78;_0x2b7017[_0x3e9c03(0x1e4)](this[_0x3e9c03(0x28e)],_0x2b7017[_0x3e9c03(0x245)]([[_0x561933],[_0x56259b[_0x3e9c03(0x1e2)]],[_0x29c2bc],[_0x56259b[_0x3e9c03(0x26d)]]],this[_0x3e9c03(0x254)][_0x3e9c03(0x20c)])),_0x2b7017[_0x3e9c03(0x26b)](this[_0x3e9c03(0x28e)],[[_0x29c2bc]]);}['onRendered'](){var _0x1471e2=_0x2dae78;_0x2b7017[_0x1471e2(0x26b)](this['_injector'],[[_0x56259b[_0x1471e2(0x26d)]]]);}},_0x382080(_0x56259b[_0x2dae78(0x1ca)],_0x2dae78(0x276),_0x2b7017['UniverInstanceType'][_0x2dae78(0x222)]),_0x382080(_0x56259b[_0x2dae78(0x1ca)],_0x2dae78(0x201),_0x185fea),_0x56259b[_0x2dae78(0x1ca)]=_0x362d02([_0x2b7017['DependentOn'](_0x25c12f[_0x2dae78(0x1af)]),_0x40bdf0(0x1,_0x2b7017[_0x2dae78(0x1ce)](_0x2b7017['Injector'])),_0x40bdf0(0x2,_0x2b7017[_0x2dae78(0x25e)])],_0x56259b[_0x2dae78(0x1ca)]),_0x56259b[_0x2dae78(0x266)]=_0x16e19d,_0x56259b[_0x2dae78(0x264)]=_0x561933,_0x56259b['LiveShareStatus']=_0x8b9dfd,Object[_0x2dae78(0x1e6)](_0x56259b,Symbol[_0x2dae78(0x27a)],{'value':_0x2dae78(0x241)});}));function _0x6915(_0x171d7e,_0x219f9f){var _0x18a681=_0x18a6();return _0x6915=function(_0x69153f,_0x4ef46f){_0x69153f=_0x69153f-0x1a3;var _0x42e104=_0x18a681[_0x69153f];return _0x42e104;},_0x6915(_0x171d7e,_0x219f9f);}function _0x18a6(){var _0x4fbf4e=['_beIdle','trim','LiveShareCoordinator','defs','getOwnPropertySymbols','defIds','pluginName','tag','1856874yIpNZw','find','createElement','map','React','includes','length','svg','_stopFollowing','override','_stopPresenting','setConfig','exports','takeUntil','icon','react','Button','className','NEW_CHANGESETS','idle','complete','ONLINE','@univerjs-pro/collaboration','SessionStatus','_startLiveShareCoordinator','jsxs','has','live-share.config','children','get','UniverProCollaborationClient','UNIVER_UNKNOWN','UniverDesign','1329392QFGstj','default','apply','idSuffix','send','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','div','UniverProLiveShare','button','Fragment','_entities','function','_presenter','DisposableCollection','asObservable','_collabSession','IDLE','_handleOperation','end','UniverSheets','ICommandService','following','_reporters','getUnitId','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','fill','_startPresenting','extend','Module','_handleNewChangeSets','52pZZUoX','_liveShareService','mergeOverrideWithDependencies','getOwnPropertyDescriptor','from','Subject','UniverInstanceType','disposeWithMe','getTypeOfUnitAdded$','You\x27are\x20offline.','stopPresenting','Start','string','UNIVER_SHEET','use','url(#$1','registerInitialStateReporter','_config','concat','getMemberID','parseProtocolChangeset','_commandDisposable','current','UniverProCollaboration','parse','params','_mountLiveShare','IConfigService','replace','LIVESHARE_NEW_HOST','registerSharedOperation','_collabSessionService','_startFollowing','LiveShareService','6131043lhaFYX','LiveShare','PRESENTING','useDependency','entries','@univerjs/sheets','touchDependencies','presenting','DesktopLiveShareController','stringify','subscribe','executeCommand','live-share-icon','3tCdTNC','substring','0\x200\x2017\x2017','_status','type','_handleNewHost','toString','pipe','toStringTag','next','_handleOnline','BehaviorSubject','colorChannel1','values','_unitID','call','symbol','displayName','NOT_FOLLOWING','sessionStatus$','LIVESHARE_OPERATION','currentColor','UniverUi','_commandService','unitId','FOLLOWING','memberID','clear','_injector','@univerjs/ui','LiveShareIcon','_status$','jsx','rxjs/operators','amd','indexOf','dispose$','merge','_configService','_handleOffline','LIVESHARE_TERMINATE','object','useRef','shouldShareOperation','attrs','prototype','onStarting','stopFollowing','text','react/jsx-runtime','rxjs','HEADER_MENU','Plugin','init','SetWorksheetActiveOperation','1664uaqwek','UniverCollaborationClientPlugin','Disposable','_uiPartsService','getConfig','24968SSAYjZ','not-following','univerjs-icon\x20univerjs-icon-','delete','CollaborationEvent','add','status$','data','@univerjs/design','random','forEach','getCurrentTypeOfUnit$','then','univer-size-4','13244XdgiGd','evenodd','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','connectInjector','RxDisposable','@univerjs/sheets-ui','hasOwnProperty','IUniverInstanceService','CommandType','UniverLiveSharePlugin','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','requireSession','path','Inject','Start\x20following','10XUCAhh','toDisposable','LIVESHARE_REQUEST_HOST','UniverCore','getValue','sheet','_sharedOperations','_univerInstanceService','mask','_init','IUIPartsService','You\x27re\x20following\x20the\x20presenter','CollaborationSessionService','getLiveShareCoordinator','http://www.w3.org/2000/svg','presenter','SAME_OPERATION_SHARE_INTERVAL','OFFLINE','LiveShareController','Stop\x20presenting','registerDependencies','Present\x20this\x20document','defineProperty','assign','1em','forwardRef','propertyIsEnumerable','operations','registerComponent','3032700koEWXC','tryStartPresenting','startFollowing','operators','13747217bBzSVN','_handleTerminate','set','Dropdown','reverse','You\x27re\x20not\x20following\x20the\x20presenter','mutations','useState','xlink:href','offline'];_0x18a6=function(){return _0x4fbf4e;};return _0x18a6();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4-nightly.202507290713",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.6",
|
|
50
|
-
"@univerjs-pro/collaboration
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets": "0.9.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.9.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.9.4-nightly.202507290713",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.9.4-nightly.202507290713",
|
|
52
|
+
"@univerjs/design": "0.9.4-nightly.202507290713",
|
|
53
|
+
"@univerjs/core": "0.9.4-nightly.202507290713",
|
|
54
|
+
"@univerjs/sheets": "0.9.4-nightly.202507290713",
|
|
55
|
+
"@univerjs/ui": "0.9.4-nightly.202507290713",
|
|
56
|
+
"@univerjs/sheets-ui": "0.9.4-nightly.202507290713"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"rxjs": "7.8.2",
|
|
62
62
|
"tailwindcss": "^3.4.17",
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
|
-
"vite": "^7.0.
|
|
64
|
+
"vite": "^7.0.6",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.9.
|
|
66
|
+
"@univerjs-infra/shared": "0.9.4",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|