@univerjs-pro/live-share 0.9.1-nightly.202507071607 → 0.9.1-nightly.202507081607
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 +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x3d2949=_0x1593;(function(_0x4f3938,_0x431a1a){var _0x50050f=_0x1593,_0x374692=_0x4f3938();while(!![]){try{var _0x50ff19=parseInt(_0x50050f(0x1d6))/0x1+parseInt(_0x50050f(0x207))/0x2+parseInt(_0x50050f(0x1b0))/0x3*(parseInt(_0x50050f(0x204))/0x4)+parseInt(_0x50050f(0x1a7))/0x5*(parseInt(_0x50050f(0x157))/0x6)+-parseInt(_0x50050f(0x14d))/0x7+-parseInt(_0x50050f(0x165))/0x8*(-parseInt(_0x50050f(0x172))/0x9)+-parseInt(_0x50050f(0x215))/0xa;if(_0x50ff19===_0x431a1a)break;else _0x374692['push'](_0x374692['shift']());}catch(_0x3af80b){_0x374692['push'](_0x374692['shift']());}}}(_0x2978,0xbd32f));var U=Object[_0x3d2949(0x175)],F=(_0x3e015c,_0x2db239,_0x574bbd)=>_0x2db239 in _0x3e015c?U(_0x3e015c,_0x2db239,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x574bbd}):_0x3e015c[_0x2db239]=_0x574bbd,v=(_0x373d98,_0x1ee170,_0x447ed5)=>F(_0x373d98,typeof _0x1ee170!=_0x3d2949(0x183)?_0x1ee170+'':_0x1ee170,_0x447ed5);Object['defineProperty'](exports,Symbol[_0x3d2949(0x17a)],{'value':_0x3d2949(0x155)});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'),$='live-share.config',x={};class O extends o[_0x3d2949(0x14b)]{constructor(){var _0x3b2ce5=_0x3d2949;super(...arguments),v(this,_0x3b2ce5(0x1b2),new Set()),v(this,_0x3b2ce5(0x17b),new Set());}[_0x3d2949(0x1d8)](_0x287335){var _0x45844d=_0x3d2949;return this['_sharedOperations'][_0x45844d(0x168)](_0x287335),o[_0x45844d(0x180)](()=>this['_sharedOperations'][_0x45844d(0x1f1)](_0x287335));}[_0x3d2949(0x174)](_0x5b9f3b){var _0x3dd489=_0x3d2949;return this['_reporters'][_0x3dd489(0x168)](_0x5b9f3b),o[_0x3dd489(0x180)](()=>this['_reporters'][_0x3dd489(0x1f1)](_0x5b9f3b));}['shouldShareOperation'](_0x56aeec){var _0x2f9c04=_0x3d2949;return this[_0x2f9c04(0x1b2)][_0x2f9c04(0x1b4)](_0x56aeec);}[_0x3d2949(0x1ac)](_0x587263){var _0x1bb7eb=_0x3d2949;return Array['from'](this[_0x1bb7eb(0x17b)])[_0x1bb7eb(0x16a)](_0x4ddcd7=>_0x4ddcd7(_0x587263));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x52a903,_0x50ece1,_0x28c068,_0x481e48)=>{var _0x3bc794=_0x3d2949;for(var _0x4e8e23=_0x481e48>0x1?void 0x0:_0x481e48?H(_0x50ece1,_0x28c068):_0x50ece1,_0x47bf36=_0x52a903[_0x3bc794(0x1b5)]-0x1,_0x131c40;_0x47bf36>=0x0;_0x47bf36--)(_0x131c40=_0x52a903[_0x47bf36])&&(_0x4e8e23=_0x131c40(_0x4e8e23)||_0x4e8e23);return _0x4e8e23;},k=(_0x35f0f8,_0x207977)=>(_0x22ddc4,_0x1e4daf)=>_0x207977(_0x22ddc4,_0x1e4daf,_0x35f0f8);let E=class extends o['Disposable']{constructor(_0x481bcc){var _0x4ae5f4=_0x3d2949;super(),this[_0x4ae5f4(0x1ee)]=_0x481bcc,this[_0x4ae5f4(0x1a9)]();}[_0x3d2949(0x1a9)](){var _0x2c7b52=_0x3d2949;[w['SetZoomRatioOperation']['id'],w[_0x2c7b52(0x194)]['id'],C[_0x2c7b52(0x1f5)]['id']]['forEach'](_0x4421ee=>{var _0x355d6a=_0x2c7b52;this[_0x355d6a(0x199)](this['_liveShareService'][_0x355d6a(0x1d8)](_0x4421ee));});}};E=V([k(0x0,o[_0x3d2949(0x156)](O))],E);var u=function(){var _0x3a62c7=_0x3d2949;return u=Object[_0x3a62c7(0x1a0)]||function(_0x5a3307){var _0x42c2e4=_0x3a62c7;for(var _0x586a9,_0x40ae12=0x1,_0x38c650=arguments['length'];_0x40ae12<_0x38c650;_0x40ae12++){_0x586a9=arguments[_0x40ae12];for(var _0x539ec7 in _0x586a9)Object[_0x42c2e4(0x18d)]['hasOwnProperty'][_0x42c2e4(0x17c)](_0x586a9,_0x539ec7)&&(_0x5a3307[_0x539ec7]=_0x586a9[_0x539ec7]);}return _0x5a3307;},u[_0x3a62c7(0x1a5)](this,arguments);},M=function(_0x233ff2,_0x33933d){var _0x4ac4ce=_0x3d2949,_0x48f872={};for(var _0x3b0a63 in _0x233ff2)Object['prototype'][_0x4ac4ce(0x1b3)][_0x4ac4ce(0x17c)](_0x233ff2,_0x3b0a63)&&_0x33933d[_0x4ac4ce(0x1a2)](_0x3b0a63)<0x0&&(_0x48f872[_0x3b0a63]=_0x233ff2[_0x3b0a63]);if(_0x233ff2!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2ef219=0x0,_0x3b0a63=Object[_0x4ac4ce(0x189)](_0x233ff2);_0x2ef219<_0x3b0a63[_0x4ac4ce(0x1b5)];_0x2ef219++)_0x33933d[_0x4ac4ce(0x1a2)](_0x3b0a63[_0x2ef219])<0x0&&Object['prototype'][_0x4ac4ce(0x1f6)][_0x4ac4ce(0x17c)](_0x233ff2,_0x3b0a63[_0x2ef219])&&(_0x48f872[_0x3b0a63[_0x2ef219]]=_0x233ff2[_0x3b0a63[_0x2ef219]]);}return _0x48f872;},j=f[_0x3d2949(0x1b1)](function(_0x3dfbc6,_0x4b9ac1){var _0x59b94a=_0x3d2949,_0x279421=_0x3dfbc6[_0x59b94a(0x15e)],_0x2e0301=_0x3dfbc6['id'],_0x5575ea=_0x3dfbc6[_0x59b94a(0x209)],_0x18e412=_0x3dfbc6[_0x59b94a(0x143)],_0x1e0940=M(_0x3dfbc6,[_0x59b94a(0x15e),'id',_0x59b94a(0x209),_0x59b94a(0x143)]),_0x565af3=_0x59b94a(0x1d5)[_0x59b94a(0x182)](_0x2e0301,'\x20')[_0x59b94a(0x182)](_0x5575ea||'')[_0x59b94a(0x15d)](),_0x4bc818=f['useRef']('_'[_0x59b94a(0x182)](G()));return y(_0x279421,''[_0x59b94a(0x182)](_0x2e0301),{'defIds':_0x279421[_0x59b94a(0x21e)],'idSuffix':_0x4bc818[_0x59b94a(0x14f)]},u({'ref':_0x4b9ac1,'className':_0x565af3},_0x1e0940),_0x18e412);});function y(_0x1adcc9,_0x3cd97d,_0x13968d,_0x31965a,_0x29ed50){var _0x37ec8b=_0x3d2949;return f[_0x37ec8b(0x208)](_0x1adcc9[_0x37ec8b(0x19a)],u(u({'key':_0x3cd97d},q(_0x1adcc9,_0x13968d,_0x29ed50)),_0x31965a),(W(_0x1adcc9,_0x13968d)[_0x37ec8b(0x1a1)]||[])[_0x37ec8b(0x16a)](function(_0xe7ef3d,_0x1a12c3){var _0x35f597=_0x37ec8b;return y(_0xe7ef3d,''[_0x35f597(0x182)](_0x3cd97d,'-')[_0x35f597(0x182)](_0x1adcc9[_0x35f597(0x19a)],'-')[_0x35f597(0x182)](_0x1a12c3),_0x13968d,void 0x0,_0x29ed50);}));}function q(_0x45e793,_0x3a71e6,_0x28cff5){var _0x278e87=_0x3d2949,_0x17d525=u({},_0x45e793[_0x278e87(0x147)]);_0x28cff5!=null&&_0x28cff5[_0x278e87(0x203)]&&_0x17d525[_0x278e87(0x17d)]===_0x278e87(0x203)&&(_0x17d525[_0x278e87(0x17d)]=_0x28cff5['colorChannel1']),_0x45e793[_0x278e87(0x19a)]===_0x278e87(0x15a)&&_0x17d525['id']&&(_0x17d525['id']=_0x17d525['id']+_0x3a71e6[_0x278e87(0x19c)]),Object[_0x278e87(0x190)](_0x17d525)[_0x278e87(0x216)](function(_0x4d875e){var _0xbd2b7=_0x278e87,_0x32fda0=_0x4d875e[0x0],_0x5ea707=_0x4d875e[0x1];_0x32fda0===_0xbd2b7(0x15a)&&typeof _0x5ea707==_0xbd2b7(0x178)&&(_0x17d525[_0x32fda0]=_0x5ea707[_0xbd2b7(0x160)](/url\(#(.*)\)/,_0xbd2b7(0x1ff)['concat'](_0x3a71e6[_0xbd2b7(0x19c)],')')));});var _0x45bd17=_0x3a71e6['defIds'];return!_0x45bd17||_0x45bd17['length']===0x0||(_0x45e793[_0x278e87(0x19a)]==='use'&&_0x17d525[_0x278e87(0x20b)]&&(_0x17d525[_0x278e87(0x20b)]=_0x17d525['xlink:href']+_0x3a71e6[_0x278e87(0x19c)]),Object[_0x278e87(0x190)](_0x17d525)['forEach'](function(_0x1216dd){var _0x2ef641=_0x278e87,_0x1e934b=_0x1216dd[0x0],_0x46f434=_0x1216dd[0x1];typeof _0x46f434=='string'&&(_0x17d525[_0x1e934b]=_0x46f434[_0x2ef641(0x160)](/url\(#(.*)\)/,_0x2ef641(0x1ff)[_0x2ef641(0x182)](_0x3a71e6[_0x2ef641(0x19c)],')')));})),_0x17d525;}function W(_0x19340c,_0x5b4efa){var _0xe03e62=_0x3d2949,_0x8c5895,_0x1c3c1b=_0x5b4efa[_0xe03e62(0x21e)];return!_0x1c3c1b||_0x1c3c1b[_0xe03e62(0x1b5)]===0x0?_0x19340c:_0x19340c['tag']==='defs'&&(!((_0x8c5895=_0x19340c[_0xe03e62(0x1a1)])===null||_0x8c5895===void 0x0)&&_0x8c5895[_0xe03e62(0x1b5)])?u(u({},_0x19340c),{'children':_0x19340c[_0xe03e62(0x1a1)][_0xe03e62(0x16a)](function(_0x1cb0d5){var _0x20ad7d=_0xe03e62;return typeof _0x1cb0d5[_0x20ad7d(0x147)]['id']==_0x20ad7d(0x178)&&_0x1c3c1b&&_0x1c3c1b[_0x20ad7d(0x1e1)](_0x1cb0d5['attrs']['id'])?u(u({},_0x1cb0d5),{'attrs':u(u({},_0x1cb0d5[_0x20ad7d(0x147)]),{'id':_0x1cb0d5['attrs']['id']+_0x5b4efa[_0x20ad7d(0x19c)]})}):_0x1cb0d5;})}):_0x19340c;}function G(){var _0x376cb7=_0x3d2949;return Math['random']()[_0x376cb7(0x1b8)](0x24)[_0x376cb7(0x1ab)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x3d2949(0x219),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d2949(0x1cc),'viewBox':_0x3d2949(0x19f),'width':_0x3d2949(0x1e9),'height':'1em'},'children':[{'tag':_0x3d2949(0x1e5),'attrs':{'fill':'currentColor','d':_0x3d2949(0x187)}},{'tag':_0x3d2949(0x1e5),'attrs':{'fill':_0x3d2949(0x1ea),'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':_0x3d2949(0x18f)}}]},P=f[_0x3d2949(0x1b1)](function(_0x823389,_0x33f5ac){var _0x300832=_0x3d2949;return f[_0x300832(0x208)](j,Object[_0x300832(0x1a0)]({},_0x823389,{'id':_0x300832(0x144),'ref':_0x33f5ac,'icon':B}));});P[_0x3d2949(0x1a8)]=_0x3d2949(0x146);var Y=Object[_0x3d2949(0x152)],R=(_0x587af8,_0x57fa42,_0x8f0648,_0x3cb693)=>{var _0x16c8cf=_0x3d2949;for(var _0x30f6dc=_0x3cb693>0x1?void 0x0:_0x3cb693?Y(_0x57fa42,_0x8f0648):_0x57fa42,_0x1d4eb3=_0x587af8[_0x16c8cf(0x1b5)]-0x1,_0x10f0ab;_0x1d4eb3>=0x0;_0x1d4eb3--)(_0x10f0ab=_0x587af8[_0x1d4eb3])&&(_0x30f6dc=_0x10f0ab(_0x30f6dc)||_0x30f6dc);return _0x30f6dc;},S=(_0x223eb8,_0xc9b339)=>(_0x4b4437,_0x5af1a6)=>_0xc9b339(_0x4b4437,_0x5af1a6,_0x223eb8);exports[_0x3d2949(0x163)]=class extends o[_0x3d2949(0x171)]{constructor(_0x326ca2,_0x4ca046,_0x10b5f0){var _0x5da7c9=_0x3d2949;super(),v(this,_0x5da7c9(0x1b7),new Map()),(this[_0x5da7c9(0x1dd)]=_0x326ca2,this[_0x5da7c9(0x198)]=_0x4ca046,this['_collabSessionService']=_0x10b5f0,this[_0x5da7c9(0x1a9)]());}async[_0x3d2949(0x179)](_0x59f050){var _0x2f6020=_0x3d2949;return this[_0x2f6020(0x1b7)]['has'](_0x59f050)||await this['_startLiveShareCoordinator'](_0x59f050),this[_0x2f6020(0x1b7)][_0x2f6020(0x1f7)](_0x59f050);}[_0x3d2949(0x1a9)](){var _0xee201c=_0x3d2949;this['_univerInstanceService'][_0xee201c(0x16e)](o[_0xee201c(0x1f0)][_0xee201c(0x1bc)])['pipe'](b[_0xee201c(0x1c3)](this[_0xee201c(0x1a4)]))[_0xee201c(0x1f3)](async _0x214a7b=>{var _0x125593=_0xee201c;const _0x28bb43=_0x214a7b['getUnitId']();this[_0x125593(0x1b7)]['has'](_0x28bb43)||this[_0x125593(0x191)](_0x28bb43);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0xee201c(0x1bc)])[_0xee201c(0x149)](b[_0xee201c(0x1c3)](this[_0xee201c(0x1a4)]))[_0xee201c(0x1f3)](_0xb224ec=>{var _0x190db4=_0xee201c;const _0x205006=_0xb224ec[_0x190db4(0x21b)](),_0x5b1b2b=this[_0x190db4(0x1b7)][_0x190db4(0x1f7)](_0x205006);_0x5b1b2b==null||_0x5b1b2b[_0x190db4(0x169)]();});}async['_startLiveShareCoordinator'](_0x245404){var _0x3ce1bb=_0x3d2949;const _0x1089fc=await this[_0x3ce1bb(0x1c2)]['requireSession'](_0x245404),_0x1f8f0c=this[_0x3ce1bb(0x198)]['createInstance'](exports[_0x3ce1bb(0x1ad)],_0x245404,_0x1089fc);return _0x1f8f0c[_0x3ce1bb(0x1d2)](),this[_0x3ce1bb(0x1b7)][_0x3ce1bb(0x195)](_0x245404,_0x1f8f0c),_0x1f8f0c;}},exports[_0x3d2949(0x163)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x3d2949(0x1b9)])),S(0x2,o[_0x3d2949(0x156)](m['CollaborationSessionService']))],exports[_0x3d2949(0x163)]);var h=(_0x500d97=>(_0x500d97[_0x3d2949(0x200)]=_0x3d2949(0x20a),_0x500d97[_0x3d2949(0x14e)]='idle',_0x500d97[_0x3d2949(0x188)]=_0x3d2949(0x192),_0x500d97[_0x3d2949(0x1e4)]=_0x3d2949(0x1e6),_0x500d97['PRESENTING']=_0x3d2949(0x218),_0x500d97))(h||{});const Z=_0x3d2949(0x19e),J=0xc8;exports[_0x3d2949(0x1ad)]=class extends o[_0x3d2949(0x171)]{constructor(_0x268e10,_0x131250,_0x5e232a,_0x29aef1,_0x361ae4){var _0x335871=_0x3d2949;super(),v(this,_0x335871(0x158),new D['BehaviorSubject'](_0x335871(0x1c6))),v(this,_0x335871(0x140),this[_0x335871(0x158)]['asObservable']()),v(this,'_init',!0x1),v(this,_0x335871(0x17e),null),v(this,'_presenter',null),(this[_0x335871(0x1d4)]=_0x268e10,this['_collabSession']=_0x131250,this[_0x335871(0x1c7)]=_0x5e232a,this[_0x335871(0x1ee)]=_0x29aef1,this['_commandService']=_0x361ae4);}get['_status'](){var _0x5b8293=_0x3d2949;return this['_status$'][_0x5b8293(0x1fd)]();}[_0x3d2949(0x169)](){var _0x17b1e8=_0x3d2949,_0x4b3894;(_0x4b3894=this[_0x17b1e8(0x17e)])==null||_0x4b3894['dispose'](),this[_0x17b1e8(0x158)][_0x17b1e8(0x20e)]('idle'),this[_0x17b1e8(0x158)][_0x17b1e8(0x1d7)]();}[_0x3d2949(0x1d2)](){var _0x9f9419=_0x3d2949;this[_0x9f9419(0x1a9)]||(this[_0x9f9419(0x1a9)]=!0x0,this[_0x9f9419(0x1a6)][_0x9f9419(0x16b)][_0x9f9419(0x149)](b['takeUntil'](this[_0x9f9419(0x1a4)]))[_0x9f9419(0x1f3)](_0x47ce7c=>{var _0x338c2e=_0x9f9419;switch(_0x47ce7c){case m['SessionStatus']['OFFLINE']:this[_0x338c2e(0x185)]();break;case m[_0x338c2e(0x19b)][_0x338c2e(0x213)]:this[_0x338c2e(0x20d)]();break;}}),this[_0x9f9419(0x1a6)]['event$'][_0x9f9419(0x149)](b[_0x9f9419(0x1c3)](this['dispose$']))[_0x9f9419(0x1f3)](_0x11a797=>{var _0x278320=_0x9f9419;const {eventID:_0x26767a}=_0x11a797;switch(_0x26767a){case _[_0x278320(0x1bb)]['LIVESHARE_NEW_HOST']:this[_0x278320(0x14c)](_0x11a797);break;case _[_0x278320(0x1bb)][_0x278320(0x150)]:this['_handleOperation'](_0x11a797);break;case _['CollaborationEvent'][_0x278320(0x1bf)]:this['_handleTerminate']();break;case _[_0x278320(0x1bb)][_0x278320(0x1e7)]:this[_0x278320(0x164)](_0x11a797);break;}}));}[_0x3d2949(0x1c0)](){var _0x4b6f74=_0x3d2949;this['_collabSession'][_0x4b6f74(0x1e3)]({'eventID':_[_0x4b6f74(0x1bb)][_0x4b6f74(0x161)],'data':{'unitID':this[_0x4b6f74(0x1d4)],'userID':this['_collabSession'][_0x4b6f74(0x193)]()}},this[_0x4b6f74(0x1d4)]);}[_0x3d2949(0x1ce)](){var _0x4a8a13=_0x3d2949;this[_0x4a8a13(0x1de)]==='presenting'&&(this['_status$'][_0x4a8a13(0x20e)]('idle'),this[_0x4a8a13(0x1a6)][_0x4a8a13(0x1e3)]({'eventID':_[_0x4a8a13(0x1bb)][_0x4a8a13(0x1bf)],'data':{'unitID':this[_0x4a8a13(0x1d4)]}},this[_0x4a8a13(0x1d4)]));}[_0x3d2949(0x173)](){var _0x2f9c1c=_0x3d2949;this[_0x2f9c1c(0x1de)]===_0x2f9c1c(0x1e6)&&(this[_0x2f9c1c(0x158)][_0x2f9c1c(0x20e)](_0x2f9c1c(0x192)),this[_0x2f9c1c(0x201)]());}[_0x3d2949(0x1af)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x3d2949(0x14c)](_0x139f1d){var _0x4cbd08=_0x3d2949;const {presenter:_0x48450}=_0x139f1d['data'],_0xf4a5fb=this[_0x4cbd08(0x1a6)][_0x4cbd08(0x193)]();this[_0x4cbd08(0x1df)]=_0x48450,_0x48450===_0xf4a5fb?(this[_0x4cbd08(0x154)](),this['_startPresenting']()):this[_0x4cbd08(0x1de)]!=='not-following'&&(this[_0x4cbd08(0x197)](),this[_0x4cbd08(0x201)]());}[_0x3d2949(0x176)](){var _0xc9b6fa=_0x3d2949;const _0x3fa301={'eventID':_[_0xc9b6fa(0x1bb)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x3fa301,this['_unitID']);}[_0x3d2949(0x18b)](){var _0x1d9ae7=_0x3d2949;this[_0x1d9ae7(0x1df)]=null,this['_status']!==_0x1d9ae7(0x218)&&this[_0x1d9ae7(0x217)]();}[_0x3d2949(0x164)](_0x45d603){var _0x1c4b7c=_0x3d2949;if(this['_status']===_0x1c4b7c(0x192)&&this['_presenter']===_0x45d603['data']['memberID']){const _0x374249=_[_0x1c4b7c(0x151)](_0x45d603[_0x1c4b7c(0x1dc)])[_0x1c4b7c(0x15f)][_0x1c4b7c(0x1e0)]()[_0x1c4b7c(0x186)](_0x3c403f=>_0x3c403f['id']===C[_0x1c4b7c(0x1c9)]['id']);if(_0x374249){const _0x141d32=_0x374249['params']['unitId'],_0x303e13=_0x374249[_0x1c4b7c(0x159)][_0x1c4b7c(0x17f)]['id'];setTimeout(()=>{var _0x485150=_0x1c4b7c;this['_commandService'][_0x485150(0x210)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x141d32,'subUnitId':_0x303e13},{'fromCollab':!0x0});});}}}[_0x3d2949(0x1db)](){var _0x2f5590=_0x3d2949;this[_0x2f5590(0x158)]['next'](_0x2f5590(0x218));const _0x154044=new Map(),_0x144ad1=this[_0x2f5590(0x17e)]=new o[(_0x2f5590(0x1d3))]();_0x144ad1['add'](o[_0x2f5590(0x180)](()=>{var _0x286340=_0x2f5590;_0x154044['forEach'](_0x5a98a7=>_0x5a98a7[_0x286340(0x1d7)]()),_0x154044['clear']();})),_0x144ad1[_0x2f5590(0x168)](this[_0x2f5590(0x1ae)][_0x2f5590(0x202)](_0x267981=>{var _0x244649=_0x2f5590,_0x4ce3a2;if(_0x267981[_0x244649(0x1ef)]!==o['CommandType'][_0x244649(0x166)]||!this[_0x244649(0x1ee)][_0x244649(0x18e)](_0x267981['id']))return;const {id:_0x544fde}=_0x267981;let _0x1634f2;_0x154044[_0x244649(0x1b4)](_0x544fde)?_0x1634f2=_0x154044[_0x244649(0x1f7)](_0x544fde):(_0x1634f2=new D[(_0x244649(0x1ca))](),_0x154044[_0x244649(0x195)](_0x544fde,_0x1634f2),_0x1634f2[_0x244649(0x149)](b[_0x244649(0x18c)]((_0x4ce3a2=this[_0x244649(0x1c7)][_0x244649(0x162)](Z))!=null?_0x4ce3a2:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x8b94fd=>{var _0x1894f8=_0x244649;this[_0x1894f8(0x1a6)][_0x1894f8(0x1e3)]({'eventID':_['CollaborationEvent'][_0x1894f8(0x150)],'data':{'unitID':this[_0x1894f8(0x1d4)],'operations':{[_0x8b94fd['id']]:{'id':_0x8b94fd['id'],'params':JSON[_0x1894f8(0x16c)](_0x8b94fd[_0x1894f8(0x159)])}}}},this[_0x1894f8(0x1d4)]);})),_0x1634f2[_0x244649(0x20e)](_0x267981);})),this[_0x2f5590(0x1ee)][_0x2f5590(0x1ac)](this[_0x2f5590(0x1d4)])['forEach'](_0x2b851a=>this[_0x2f5590(0x1a6)][_0x2f5590(0x1e3)]({'eventID':_[_0x2f5590(0x1bb)][_0x2f5590(0x150)],'data':{'unitID':this[_0x2f5590(0x1d4)],'operations':{[_0x2b851a['id']]:{'id':_0x2b851a['id'],'params':JSON[_0x2f5590(0x16c)](_0x2b851a[_0x2f5590(0x159)])}}}},this[_0x2f5590(0x1d4)]));}[_0x3d2949(0x197)](){var _0x271476=_0x3d2949,_0x3b7486;this[_0x271476(0x158)][_0x271476(0x20e)](_0x271476(0x1c6)),(_0x3b7486=this[_0x271476(0x17e)])==null||_0x3b7486[_0x271476(0x169)](),this[_0x271476(0x17e)]=null;}[_0x3d2949(0x201)](){var _0x4f7e14=_0x3d2949,_0x43d551;(_0x43d551=this['_commandDisposable'])==null||_0x43d551[_0x4f7e14(0x169)](),this[_0x4f7e14(0x158)][_0x4f7e14(0x20e)]('following');}[_0x3d2949(0x217)](){var _0x22997c=_0x3d2949,_0x155fa0;this[_0x22997c(0x158)]['next'](_0x22997c(0x1c6)),(_0x155fa0=this['_commandDisposable'])==null||_0x155fa0[_0x22997c(0x169)](),this[_0x22997c(0x17e)]=null;}['_stopFollowing'](){var _0xe80b6=_0x3d2949,_0x5d71be;this['_status$']['next']('not-following'),(_0x5d71be=this[_0xe80b6(0x17e)])==null||_0x5d71be[_0xe80b6(0x169)]();}[_0x3d2949(0x1be)](_0x5f325b){var _0x39d16b=_0x3d2949;if([_0x39d16b(0x218),_0x39d16b(0x1e6),_0x39d16b(0x20a)][_0x39d16b(0x1e1)](this[_0x39d16b(0x1de)])||!_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1eb)]||_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1eb)]===this['_collabSession'][_0x39d16b(0x193)]())return;this[_0x39d16b(0x1de)]===_0x39d16b(0x1c6)&&this[_0x39d16b(0x201)]();const _0x1076c2=_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1ed)];Object[_0x39d16b(0x1c1)](_0x1076c2)[_0x39d16b(0x216)](_0x51ed57=>{var _0x108aee=_0x39d16b;this[_0x108aee(0x1ae)][_0x108aee(0x210)](_0x51ed57['id'],_0x51ed57['params']?JSON[_0x108aee(0x148)](_0x51ed57['params']):null,{'fromCollab':!0x0});});}[_0x3d2949(0x185)](){var _0x2ede6d=_0x3d2949,_0x5dd3f5;this[_0x2ede6d(0x158)][_0x2ede6d(0x20e)](_0x2ede6d(0x20a)),(_0x5dd3f5=this['_commandDisposable'])==null||_0x5dd3f5[_0x2ede6d(0x169)]();}[_0x3d2949(0x20d)](){var _0x587a5c=_0x3d2949;this[_0x587a5c(0x158)]['next'](_0x587a5c(0x1c6)),this[_0x587a5c(0x176)]();}},exports[_0x3d2949(0x1ad)]=R([S(0x2,o[_0x3d2949(0x1d0)]),S(0x3,o[_0x3d2949(0x156)](O)),S(0x4,o['ICommandService'])],exports[_0x3d2949(0x1ad)]);function A(){var _0xac2e96=_0x3d2949;const _0x2e7410=p[_0xac2e96(0x1aa)](exports[_0xac2e96(0x163)]),_0x212331=p[_0xac2e96(0x1aa)](o['IUniverInstanceService']),_0x4549b8=p[_0xac2e96(0x20f)](()=>_0x212331[_0xac2e96(0x1d9)](o[_0xac2e96(0x1f0)][_0xac2e96(0x1bc)]),void 0x0,!0x1,[]),[_0x12c45b,_0xf698bf]=f['useState'](null),[_0x3878c6,_0x3a690e]=f[_0xac2e96(0x1c4)](h[_0xac2e96(0x14e)]),_0x8bbfd4=f[_0xac2e96(0x181)](null);return f['useEffect'](()=>(_0x4549b8&&_0x2e7410[_0xac2e96(0x179)](_0x4549b8[_0xac2e96(0x21b)]())[_0xac2e96(0x1fc)](_0x452f78=>{var _0x61a3f7=_0xac2e96;_0xf698bf(_0x452f78),_0x8bbfd4[_0x61a3f7(0x14f)]=_0x452f78[_0x61a3f7(0x140)][_0x61a3f7(0x1f3)](_0x256890=>{_0x3a690e(_0x256890);});}),()=>{var _0x403be5=_0xac2e96,_0x273c75;(_0x273c75=_0x8bbfd4['current'])==null||_0x273c75[_0x403be5(0x1fe)](),_0x8bbfd4[_0x403be5(0x14f)]=null;}),[_0x4549b8,_0x2e7410]),_0x12c45b?l[_0xac2e96(0x196)](g['Dropdown'],{'align':_0xac2e96(0x1d1),'disabled':_0x3878c6===h[_0xac2e96(0x200)],'className':_0xac2e96(0x167),'overlay':l[_0xac2e96(0x196)](K,{'status':_0x3878c6,'coordinator':_0x12c45b}),'children':l['jsx'](_0xac2e96(0x170),{'className':g[_0xac2e96(0x1f4)](_0xac2e96(0x1c5),{'univer-cursor-not-allowed':_0x3878c6===h[_0xac2e96(0x200)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3878c6!==h[_0xac2e96(0x200)]}),'type':_0xac2e96(0x170),'children':l[_0xac2e96(0x196)](P,{'className':_0xac2e96(0x1bd)})})}):null;}function K(_0x1d478a){var _0x3450d4=_0x3d2949;const {status:_0x1e4ede,coordinator:_0x5a6454}=_0x1d478a;switch(_0x1e4ede){case h[_0x3450d4(0x14e)]:return l[_0x3450d4(0x196)](z,{'coordinator':_0x5a6454});case h[_0x3450d4(0x188)]:return l[_0x3450d4(0x196)](Q,{'coordinator':_0x5a6454});case h[_0x3450d4(0x1e4)]:return l[_0x3450d4(0x196)](X,{'coordinator':_0x5a6454});case h[_0x3450d4(0x200)]:return l[_0x3450d4(0x196)](te,{});case h[_0x3450d4(0x212)]:return l[_0x3450d4(0x196)](ee,{'coordinator':_0x5a6454});default:return null;}}function z(_0x1080a1){var _0x5ac393=_0x3d2949;const {coordinator:_0x1c090d}=_0x1080a1;return l[_0x5ac393(0x1cb)](l[_0x5ac393(0x1f2)],{'children':[l[_0x5ac393(0x196)](_0x5ac393(0x214),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5ac393(0x14a)}),l[_0x5ac393(0x196)](g[_0x5ac393(0x1a3)],{'onClick':()=>_0x1c090d['tryStartPresenting'](),'children':_0x5ac393(0x16f)})]});}function Q(_0x5e395c){var _0x557343=_0x3d2949;const {coordinator:_0x51cc69}=_0x5e395c;return l[_0x557343(0x1cb)](l[_0x557343(0x1f2)],{'children':[l[_0x557343(0x196)](_0x557343(0x214),{'className':_0x557343(0x1cf),'children':_0x557343(0x21a)}),l[_0x557343(0x196)](g['Button'],{'onClick':()=>_0x51cc69[_0x557343(0x1af)](),'children':_0x557343(0x142)})]});}function _0x2978(){var _0x92550b=['getOwnPropertySymbols','LiveShare','_handleTerminate','throttleTime','prototype','shouldShareOperation','evenodd','entries','_startLiveShareCoordinator','following','getMemberID','SetScrollOperation','set','jsx','_stopPresenting','_injector','disposeWithMe','tag','SessionStatus','idSuffix','connectInjector','SAME_OPERATION_SHARE_INTERVAL','0\x200\x2017\x2017','assign','children','indexOf','Button','dispose$','apply','_collabSession','2635fGzxEF','displayName','_init','useDependency','substring','getInitialStates','LiveShareCoordinator','_commandService','stopFollowing','442959iRoRIK','forwardRef','_sharedOperations','hasOwnProperty','has','length','Stop\x20presenting','_entities','toString','Injector','You\x27re\x20presenting\x20the\x20document','CollaborationEvent','UNIVER_SHEET','univer-size-4','_handleOperation','LIVESHARE_TERMINATE','tryStartPresenting','values','_collabSessionService','takeUntil','useState','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','idle','_configService','merge','InsertSheetMutation','Subject','jsxs','none','LiveShareStatus','stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','IConfigService','end','init','DisposableCollection','_unitID','univerjs-icon\x20univerjs-icon-','448582wtnOpF','complete','registerSharedOperation','getCurrentTypeOfUnit$','mergeOverrideWithDependencies','_startPresenting','data','_univerInstanceService','_status','_presenter','reverse','includes','override','send','NOT_FOLLOWING','path','not-following','NEW_CHANGESETS','text','1em','currentColor','presenter','IUIPartsService','operations','_liveShareService','type','UniverInstanceType','delete','Fragment','subscribe','clsx','SetWorksheetActiveOperation','propertyIsEnumerable','get','_uiPartsService','UNIVER_UNKNOWN','UniverCollaborationClientPlugin','_config','then','getValue','unsubscribe','url(#$1','OFFLINE','_startFollowing','onCommandExecuted','colorChannel1','40CjjTPP','UniverLiveSharePlugin','UNIVER_LIVE_SHARE_PLUGIN','622990IVnMKP','createElement','className','offline','xlink:href','DesktopLiveShareController','_handleOnline','next','useObservable','executeCommand','registerComponent','PRESENTING','ONLINE','div','26222650HhaNQc','forEach','_beIdle','presenting','svg','You\x27re\x20following\x20the\x20presenter','getUnitId','onStarting','pluginName','defIds','status$','default','Stop\x20following','extend','live-share-icon','DependentOn','LiveShareIcon','attrs','parse','pipe','Present\x20this\x20document','Disposable','_handleNewHost','3591077mctTcH','IDLE','current','LIVESHARE_OPERATION','parseProtocolChangeset','getOwnPropertyDescriptor','_mountLiveShare','_stopFollowing','Module','Inject','9198SbQZeh','_status$','params','mask','You\x27re\x20not\x20following\x20the\x20presenter','HEADER_MENU','trim','icon','mutations','replace','LIVESHARE_REQUEST_HOST','getConfig','LiveShareController','_handleNewChangeSets','7192BBwJOx','OPERATION','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','add','dispose','map','sessionStatus$','stringify','onRendered','getTypeOfUnitAdded$','Start','button','RxDisposable','8667LHMraJ','startFollowing','registerInitialStateReporter','defineProperty','_fetchOperations','touchDependencies','string','getLiveShareCoordinator','toStringTag','_reporters','call','fill','_commandDisposable','sheet','toDisposable','useRef','concat','symbol','You\x27are\x20offline.','_handleOffline','find','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','FOLLOWING'];_0x2978=function(){return _0x92550b;};return _0x2978();}function X(_0x2e0edf){var _0x2a61d0=_0x3d2949;const {coordinator:_0xe5a21d}=_0x2e0edf;return l['jsxs'](l[_0x2a61d0(0x1f2)],{'children':[l['jsx'](_0x2a61d0(0x214),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2a61d0(0x15b)}),l[_0x2a61d0(0x196)](g[_0x2a61d0(0x1a3)],{'variant':_0x2a61d0(0x1e8),'onClick':()=>_0xe5a21d[_0x2a61d0(0x173)](),'children':'Start\x20following'})]});}function ee(_0x111dd7){var _0x582989=_0x3d2949;const {coordinator:_0x18f9b2}=_0x111dd7;return l[_0x582989(0x1cb)](l[_0x582989(0x1f2)],{'children':[l[_0x582989(0x196)](_0x582989(0x214),{'className':_0x582989(0x1cf),'children':_0x582989(0x1ba)}),l[_0x582989(0x196)](g[_0x582989(0x1a3)],{'variant':_0x582989(0x141),'onClick':()=>_0x18f9b2[_0x582989(0x1ce)](),'children':_0x582989(0x1b6)})]});}function _0x1593(_0x4b1db0,_0x57cf9d){var _0x297898=_0x2978();return _0x1593=function(_0x1593d3,_0x18440b){_0x1593d3=_0x1593d3-0x140;var _0xfdbf5d=_0x297898[_0x1593d3];return _0xfdbf5d;},_0x1593(_0x4b1db0,_0x57cf9d);}function te(){var _0x48b6c1=_0x3d2949;return l[_0x48b6c1(0x196)](l[_0x48b6c1(0x1f2)],{'children':_0x48b6c1(0x184)});}var ie=Object[_0x3d2949(0x152)],ne=(_0x3afbde,_0x112bdb,_0x24d621,_0x384770)=>{var _0x156e02=_0x3d2949;for(var _0x1a35c9=_0x384770>0x1?void 0x0:_0x384770?ie(_0x112bdb,_0x24d621):_0x112bdb,_0x371ff9=_0x3afbde[_0x156e02(0x1b5)]-0x1,_0x386005;_0x371ff9>=0x0;_0x371ff9--)(_0x386005=_0x3afbde[_0x371ff9])&&(_0x1a35c9=_0x386005(_0x1a35c9)||_0x1a35c9);return _0x1a35c9;},L=(_0x16ca37,_0x4a2d44)=>(_0x2c83f4,_0x52620c)=>_0x4a2d44(_0x2c83f4,_0x52620c,_0x16ca37);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x3e6116,_0x598b3d){var _0x1818b6=_0x3d2949;super(),this['_injector']=_0x3e6116,this[_0x1818b6(0x1f8)]=_0x598b3d,this[_0x1818b6(0x153)]();}[_0x3d2949(0x153)](){var _0x2f8247=_0x3d2949;this[_0x2f8247(0x199)](this[_0x2f8247(0x1f8)][_0x2f8247(0x211)](p['BuiltInUIPart'][_0x2f8247(0x15c)],()=>p[_0x2f8247(0x19d)](A,this['_injector'])));}},exports[_0x3d2949(0x20c)]=ne([L(0x0,o[_0x3d2949(0x156)](o['Injector'])),L(0x1,p[_0x3d2949(0x1ec)])],exports[_0x3d2949(0x20c)]);var re=Object[_0x3d2949(0x175)],se=Object['getOwnPropertyDescriptor'],oe=(_0x1cb864,_0x29e343,_0x5c816e)=>_0x29e343 in _0x1cb864?re(_0x1cb864,_0x29e343,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c816e}):_0x1cb864[_0x29e343]=_0x5c816e,ae=(_0x206edc,_0xa81a63,_0x334179,_0x2b8615)=>{for(var _0x31ea76=_0x2b8615>0x1?void 0x0:_0x2b8615?se(_0xa81a63,_0x334179):_0xa81a63,_0x5c5646=_0x206edc['length']-0x1,_0xd4ec0d;_0x5c5646>=0x0;_0x5c5646--)(_0xd4ec0d=_0x206edc[_0x5c5646])&&(_0x31ea76=_0xd4ec0d(_0x31ea76)||_0x31ea76);return _0x31ea76;},N=(_0x16dacd,_0x5c142c)=>(_0x5d3d52,_0x3bdfc2)=>_0x5c142c(_0x5d3d52,_0x3bdfc2,_0x16dacd),T=(_0x1b08ca,_0x384091,_0x2d1469)=>oe(_0x1b08ca,typeof _0x384091!=_0x3d2949(0x183)?_0x384091+'':_0x384091,_0x2d1469);const le=_0x3d2949(0x206);exports[_0x3d2949(0x205)]=class extends o['Plugin']{constructor(_0x2ee2d6=x,_0x367974,_0x2f5557){var _0x3b02ce=_0x3d2949;super(),this[_0x3b02ce(0x1fb)]=_0x2ee2d6,this[_0x3b02ce(0x198)]=_0x367974,this[_0x3b02ce(0x1c7)]=_0x2f5557;const {..._0x294811}=o[_0x3b02ce(0x1c8)]({},x,this['_config']);this[_0x3b02ce(0x1c7)]['setConfig']($,_0x294811);}[_0x3d2949(0x21c)](){var _0x3c7dd3=_0x3d2949;o['registerDependencies'](this[_0x3c7dd3(0x198)],o[_0x3c7dd3(0x1da)]([[O],[exports[_0x3c7dd3(0x163)]],[E],[exports[_0x3c7dd3(0x20c)]]],this[_0x3c7dd3(0x1fb)][_0x3c7dd3(0x1e2)])),o[_0x3c7dd3(0x177)](this[_0x3c7dd3(0x198)],[[E]]);}[_0x3d2949(0x16d)](){var _0x11e810=_0x3d2949;o[_0x11e810(0x177)](this[_0x11e810(0x198)],[[exports[_0x11e810(0x20c)]]]);}},T(exports['UniverLiveSharePlugin'],_0x3d2949(0x1ef),o['UniverInstanceType'][_0x3d2949(0x1f9)]),T(exports['UniverLiveSharePlugin'],_0x3d2949(0x21d),le),exports[_0x3d2949(0x205)]=ae([o[_0x3d2949(0x145)](m[_0x3d2949(0x1fa)]),N(0x1,o['Inject'](o[_0x3d2949(0x1b9)])),N(0x2,o[_0x3d2949(0x1d0)])],exports[_0x3d2949(0x205)]),exports[_0x3d2949(0x18a)]=A,exports['LiveShareService']=O,exports[_0x3d2949(0x1cd)]=h;
|
|
1
|
+
'use strict';var _0x1df96c=_0x2faf;(function(_0xeca53,_0x2366c9){var _0x589420=_0x2faf,_0x52d3ca=_0xeca53();while(!![]){try{var _0xeea6b5=parseInt(_0x589420(0x1fd))/0x1*(parseInt(_0x589420(0x17f))/0x2)+parseInt(_0x589420(0x246))/0x3*(-parseInt(_0x589420(0x16f))/0x4)+parseInt(_0x589420(0x1af))/0x5+parseInt(_0x589420(0x24e))/0x6*(parseInt(_0x589420(0x179))/0x7)+-parseInt(_0x589420(0x16d))/0x8*(parseInt(_0x589420(0x1c5))/0x9)+-parseInt(_0x589420(0x1d5))/0xa*(parseInt(_0x589420(0x229))/0xb)+-parseInt(_0x589420(0x1e0))/0xc;if(_0xeea6b5===_0x2366c9)break;else _0x52d3ca['push'](_0x52d3ca['shift']());}catch(_0x1a0599){_0x52d3ca['push'](_0x52d3ca['shift']());}}}(_0x2638,0xe60c6));var U=Object[_0x1df96c(0x16e)],F=(_0x1e889d,_0x5e62a8,_0x487a52)=>_0x5e62a8 in _0x1e889d?U(_0x1e889d,_0x5e62a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x487a52}):_0x1e889d[_0x5e62a8]=_0x487a52,v=(_0xaed5b2,_0x188995,_0x130d52)=>F(_0xaed5b2,typeof _0x188995!=_0x1df96c(0x20a)?_0x188995+'':_0x188995,_0x130d52);Object[_0x1df96c(0x16e)](exports,Symbol[_0x1df96c(0x213)],{'value':_0x1df96c(0x205)});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'),$=_0x1df96c(0x20b),x={};class O extends o['Disposable']{constructor(){var _0x55edd6=_0x1df96c;super(...arguments),v(this,_0x55edd6(0x181),new Set()),v(this,_0x55edd6(0x178),new Set());}[_0x1df96c(0x180)](_0x4e7ac3){var _0x25c123=_0x1df96c;return this['_sharedOperations'][_0x25c123(0x17d)](_0x4e7ac3),o[_0x25c123(0x168)](()=>this[_0x25c123(0x181)][_0x25c123(0x1ed)](_0x4e7ac3));}[_0x1df96c(0x1bc)](_0x4eb4c5){var _0x228b68=_0x1df96c;return this['_reporters']['add'](_0x4eb4c5),o[_0x228b68(0x168)](()=>this[_0x228b68(0x178)]['delete'](_0x4eb4c5));}['shouldShareOperation'](_0x230db5){var _0x53789b=_0x1df96c;return this[_0x53789b(0x181)][_0x53789b(0x1fc)](_0x230db5);}[_0x1df96c(0x173)](_0x1d32fa){var _0x2aeea8=_0x1df96c;return Array[_0x2aeea8(0x1aa)](this['_reporters'])[_0x2aeea8(0x200)](_0x2dc5c8=>_0x2dc5c8(_0x1d32fa));}}var H=Object[_0x1df96c(0x240)],V=(_0x332b96,_0x1d3b75,_0x492bd7,_0x433172)=>{var _0x58e000=_0x1df96c;for(var _0x4ca46e=_0x433172>0x1?void 0x0:_0x433172?H(_0x1d3b75,_0x492bd7):_0x1d3b75,_0x24514e=_0x332b96[_0x58e000(0x237)]-0x1,_0x1039ac;_0x24514e>=0x0;_0x24514e--)(_0x1039ac=_0x332b96[_0x24514e])&&(_0x4ca46e=_0x1039ac(_0x4ca46e)||_0x4ca46e);return _0x4ca46e;},k=(_0x269ac9,_0x5c60cc)=>(_0x854ece,_0x4b7e58)=>_0x5c60cc(_0x854ece,_0x4b7e58,_0x269ac9);let E=class extends o['Disposable']{constructor(_0x14efcc){var _0x12340c=_0x1df96c;super(),this[_0x12340c(0x1eb)]=_0x14efcc,this[_0x12340c(0x199)]();}['_init'](){var _0xb27e6b=_0x1df96c;[w[_0xb27e6b(0x1cd)]['id'],w[_0xb27e6b(0x236)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x87c48d=>{var _0x54bdbc=_0xb27e6b;this[_0x54bdbc(0x1f6)](this[_0x54bdbc(0x1eb)][_0x54bdbc(0x180)](_0x87c48d));});}};E=V([k(0x0,o[_0x1df96c(0x235)](O))],E);var u=function(){var _0x82e4f4=_0x1df96c;return u=Object[_0x82e4f4(0x1b3)]||function(_0x49c11a){var _0xd310c3=_0x82e4f4;for(var _0x3259fc,_0x371b3b=0x1,_0x276e67=arguments[_0xd310c3(0x237)];_0x371b3b<_0x276e67;_0x371b3b++){_0x3259fc=arguments[_0x371b3b];for(var _0x559a86 in _0x3259fc)Object['prototype'][_0xd310c3(0x23d)][_0xd310c3(0x1fb)](_0x3259fc,_0x559a86)&&(_0x49c11a[_0x559a86]=_0x3259fc[_0x559a86]);}return _0x49c11a;},u[_0x82e4f4(0x191)](this,arguments);},M=function(_0xbc45c0,_0x5efdd8){var _0x1fad38=_0x1df96c,_0x579dff={};for(var _0x533fe3 in _0xbc45c0)Object[_0x1fad38(0x19d)]['hasOwnProperty'][_0x1fad38(0x1fb)](_0xbc45c0,_0x533fe3)&&_0x5efdd8[_0x1fad38(0x1f5)](_0x533fe3)<0x0&&(_0x579dff[_0x533fe3]=_0xbc45c0[_0x533fe3]);if(_0xbc45c0!=null&&typeof Object[_0x1fad38(0x1b5)]==_0x1fad38(0x186)){for(var _0x557638=0x0,_0x533fe3=Object[_0x1fad38(0x1b5)](_0xbc45c0);_0x557638<_0x533fe3[_0x1fad38(0x237)];_0x557638++)_0x5efdd8[_0x1fad38(0x1f5)](_0x533fe3[_0x557638])<0x0&&Object['prototype'][_0x1fad38(0x1a5)][_0x1fad38(0x1fb)](_0xbc45c0,_0x533fe3[_0x557638])&&(_0x579dff[_0x533fe3[_0x557638]]=_0xbc45c0[_0x533fe3[_0x557638]]);}return _0x579dff;},j=f[_0x1df96c(0x1fe)](function(_0x545d47,_0x5d7d81){var _0x2afcfb=_0x1df96c,_0x3744d3=_0x545d47[_0x2afcfb(0x17e)],_0x299bda=_0x545d47['id'],_0x708453=_0x545d47[_0x2afcfb(0x1b0)],_0x10b973=_0x545d47['extend'],_0x478e8d=M(_0x545d47,[_0x2afcfb(0x17e),'id','className',_0x2afcfb(0x1d6)]),_0x51f0ae='univerjs-icon\x20univerjs-icon-'[_0x2afcfb(0x23b)](_0x299bda,'\x20')[_0x2afcfb(0x23b)](_0x708453||'')[_0x2afcfb(0x204)](),_0x1be19b=f[_0x2afcfb(0x24f)]('_'[_0x2afcfb(0x23b)](G()));return y(_0x3744d3,''[_0x2afcfb(0x23b)](_0x299bda),{'defIds':_0x3744d3[_0x2afcfb(0x242)],'idSuffix':_0x1be19b[_0x2afcfb(0x22d)]},u({'ref':_0x5d7d81,'className':_0x51f0ae},_0x478e8d),_0x10b973);});function y(_0x45b996,_0x37e661,_0x16a3a0,_0x58a8d4,_0x99f242){var _0x6188d9=_0x1df96c;return f[_0x6188d9(0x1e8)](_0x45b996['tag'],u(u({'key':_0x37e661},q(_0x45b996,_0x16a3a0,_0x99f242)),_0x58a8d4),(W(_0x45b996,_0x16a3a0)[_0x6188d9(0x208)]||[])[_0x6188d9(0x200)](function(_0x5f2c28,_0xe2bbca){var _0x394478=_0x6188d9;return y(_0x5f2c28,''[_0x394478(0x23b)](_0x37e661,'-')['concat'](_0x45b996[_0x394478(0x1b2)],'-')[_0x394478(0x23b)](_0xe2bbca),_0x16a3a0,void 0x0,_0x99f242);}));}function q(_0x38b599,_0x5360e6,_0x290f3a){var _0x4af28a=_0x1df96c,_0x2d5da8=u({},_0x38b599[_0x4af28a(0x21c)]);_0x290f3a!=null&&_0x290f3a['colorChannel1']&&_0x2d5da8[_0x4af28a(0x16a)]===_0x4af28a(0x1c3)&&(_0x2d5da8['fill']=_0x290f3a['colorChannel1']),_0x38b599['tag']==='mask'&&_0x2d5da8['id']&&(_0x2d5da8['id']=_0x2d5da8['id']+_0x5360e6['idSuffix']),Object[_0x4af28a(0x183)](_0x2d5da8)['forEach'](function(_0x1a32da){var _0x5a773f=_0x4af28a,_0x5b0abd=_0x1a32da[0x0],_0x35e70f=_0x1a32da[0x1];_0x5b0abd==='mask'&&typeof _0x35e70f==_0x5a773f(0x226)&&(_0x2d5da8[_0x5b0abd]=_0x35e70f[_0x5a773f(0x1a3)](/url\(#(.*)\)/,_0x5a773f(0x219)[_0x5a773f(0x23b)](_0x5360e6[_0x5a773f(0x1f3)],')')));});var _0xee37f7=_0x5360e6[_0x4af28a(0x242)];return!_0xee37f7||_0xee37f7[_0x4af28a(0x237)]===0x0||(_0x38b599[_0x4af28a(0x1b2)]===_0x4af28a(0x1f4)&&_0x2d5da8['xlink:href']&&(_0x2d5da8[_0x4af28a(0x241)]=_0x2d5da8['xlink:href']+_0x5360e6[_0x4af28a(0x1f3)]),Object['entries'](_0x2d5da8)[_0x4af28a(0x225)](function(_0x4dad23){var _0x2748a1=_0x4af28a,_0x1cf2c7=_0x4dad23[0x0],_0x528beb=_0x4dad23[0x1];typeof _0x528beb==_0x2748a1(0x226)&&(_0x2d5da8[_0x1cf2c7]=_0x528beb[_0x2748a1(0x1a3)](/url\(#(.*)\)/,_0x2748a1(0x219)[_0x2748a1(0x23b)](_0x5360e6[_0x2748a1(0x1f3)],')')));})),_0x2d5da8;}function _0x2faf(_0x2dbf6e,_0x5ccd55){var _0x2638aa=_0x2638();return _0x2faf=function(_0x2faf15,_0x5a77ef){_0x2faf15=_0x2faf15-0x168;var _0x35a0a4=_0x2638aa[_0x2faf15];return _0x35a0a4;},_0x2faf(_0x2dbf6e,_0x5ccd55);}function W(_0x1ea7be,_0x5dcdd0){var _0xacd20d=_0x1df96c,_0x5ed211,_0x2ba0a3=_0x5dcdd0[_0xacd20d(0x242)];return!_0x2ba0a3||_0x2ba0a3['length']===0x0?_0x1ea7be:_0x1ea7be['tag']===_0xacd20d(0x1cc)&&(!((_0x5ed211=_0x1ea7be[_0xacd20d(0x208)])===null||_0x5ed211===void 0x0)&&_0x5ed211['length'])?u(u({},_0x1ea7be),{'children':_0x1ea7be['children'][_0xacd20d(0x200)](function(_0x47e1cf){var _0x2374ff=_0xacd20d;return typeof _0x47e1cf[_0x2374ff(0x21c)]['id']==_0x2374ff(0x226)&&_0x2ba0a3&&_0x2ba0a3[_0x2374ff(0x187)](_0x47e1cf[_0x2374ff(0x21c)]['id'])?u(u({},_0x47e1cf),{'attrs':u(u({},_0x47e1cf[_0x2374ff(0x21c)]),{'id':_0x47e1cf[_0x2374ff(0x21c)]['id']+_0x5dcdd0[_0x2374ff(0x1f3)]})}):_0x47e1cf;})}):_0x1ea7be;}function G(){var _0x2f2051=_0x1df96c;return Math[_0x2f2051(0x22a)]()['toString'](0x24)[_0x2f2051(0x22f)](0x2,0x8);}j[_0x1df96c(0x1ac)]=_0x1df96c(0x231);var B={'tag':_0x1df96c(0x1f9),'attrs':{'xmlns':_0x1df96c(0x21d),'fill':_0x1df96c(0x18e),'viewBox':_0x1df96c(0x17c),'width':_0x1df96c(0x16c),'height':_0x1df96c(0x16c)},'children':[{'tag':'path','attrs':{'fill':_0x1df96c(0x1b1),'d':_0x1df96c(0x18d)}},{'tag':_0x1df96c(0x232),'attrs':{'fill':_0x1df96c(0x1b1),'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':_0x1df96c(0x18f),'clipRule':_0x1df96c(0x18f)}}]},P=f['forwardRef'](function(_0x19303b,_0x2dc51a){var _0x7761dc=_0x1df96c;return f[_0x7761dc(0x1e8)](j,Object[_0x7761dc(0x1b3)]({},_0x19303b,{'id':_0x7761dc(0x1c2),'ref':_0x2dc51a,'icon':B}));});P['displayName']=_0x1df96c(0x1a2);var Y=Object[_0x1df96c(0x240)],R=(_0x463b25,_0x1d63f4,_0x418070,_0x807735)=>{for(var _0x11364e=_0x807735>0x1?void 0x0:_0x807735?Y(_0x1d63f4,_0x418070):_0x1d63f4,_0x9ee05c=_0x463b25['length']-0x1,_0x58f733;_0x9ee05c>=0x0;_0x9ee05c--)(_0x58f733=_0x463b25[_0x9ee05c])&&(_0x11364e=_0x58f733(_0x11364e)||_0x11364e);return _0x11364e;},S=(_0x2d79fa,_0x23844b)=>(_0x5a080c,_0x31f3b5)=>_0x23844b(_0x5a080c,_0x31f3b5,_0x2d79fa);exports['LiveShareController']=class extends o[_0x1df96c(0x216)]{constructor(_0x483ee9,_0x1bf44b,_0x3e8784){var _0x61df9=_0x1df96c;super(),v(this,_0x61df9(0x1c1),new Map()),(this['_univerInstanceService']=_0x483ee9,this[_0x61df9(0x184)]=_0x1bf44b,this[_0x61df9(0x22c)]=_0x3e8784,this[_0x61df9(0x199)]());}async['getLiveShareCoordinator'](_0x3f06c4){var _0x446612=_0x1df96c;return this[_0x446612(0x1c1)][_0x446612(0x1fc)](_0x3f06c4)||await this['_startLiveShareCoordinator'](_0x3f06c4),this[_0x446612(0x1c1)][_0x446612(0x247)](_0x3f06c4);}['_init'](){var _0xefc831=_0x1df96c;this[_0xefc831(0x1d7)][_0xefc831(0x19e)](o['UniverInstanceType'][_0xefc831(0x201)])[_0xefc831(0x1e7)](b[_0xefc831(0x20e)](this[_0xefc831(0x23a)]))[_0xefc831(0x1cb)](async _0xd14c0b=>{var _0x3aaf06=_0xefc831;const _0x17f8ad=_0xd14c0b[_0x3aaf06(0x16b)]();this['_entities'][_0x3aaf06(0x1fc)](_0x17f8ad)||this[_0x3aaf06(0x218)](_0x17f8ad);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0xefc831(0x192)][_0xefc831(0x201)])['pipe'](b[_0xefc831(0x20e)](this['dispose$']))[_0xefc831(0x1cb)](_0x4e70c3=>{var _0x246a18=_0xefc831;const _0x3bc135=_0x4e70c3[_0x246a18(0x16b)](),_0x4edc81=this[_0x246a18(0x1c1)][_0x246a18(0x247)](_0x3bc135);_0x4edc81==null||_0x4edc81[_0x246a18(0x220)]();});}async['_startLiveShareCoordinator'](_0x38d8b6){var _0x4a6adb=_0x1df96c;const _0x4a2013=await this[_0x4a6adb(0x22c)][_0x4a6adb(0x210)](_0x38d8b6),_0x135cae=this['_injector']['createInstance'](exports[_0x4a6adb(0x20f)],_0x38d8b6,_0x4a2013);return _0x135cae['init'](),this[_0x4a6adb(0x1c1)][_0x4a6adb(0x1ca)](_0x38d8b6,_0x135cae),_0x135cae;}},exports['LiveShareController']=R([S(0x0,o[_0x1df96c(0x19c)]),S(0x1,o[_0x1df96c(0x235)](o[_0x1df96c(0x1bd)])),S(0x2,o['Inject'](m[_0x1df96c(0x202)]))],exports[_0x1df96c(0x188)]);var h=(_0x15dc36=>(_0x15dc36[_0x1df96c(0x1e5)]='offline',_0x15dc36['IDLE']=_0x1df96c(0x217),_0x15dc36[_0x1df96c(0x1c6)]=_0x1df96c(0x1ee),_0x15dc36[_0x1df96c(0x203)]='not-following',_0x15dc36[_0x1df96c(0x175)]='presenting',_0x15dc36))(h||{});const Z=_0x1df96c(0x1d0),J=0xc8;exports[_0x1df96c(0x20f)]=class extends o[_0x1df96c(0x216)]{constructor(_0x4776b6,_0x3cfdd7,_0x20e8d3,_0x33aa0d,_0x208069){var _0x3b2e16=_0x1df96c;super(),v(this,_0x3b2e16(0x238),new D[(_0x3b2e16(0x1ea))](_0x3b2e16(0x217))),v(this,_0x3b2e16(0x1c4),this[_0x3b2e16(0x238)]['asObservable']()),v(this,_0x3b2e16(0x199),!0x1),v(this,_0x3b2e16(0x228),null),v(this,_0x3b2e16(0x1b9),null),(this[_0x3b2e16(0x1c8)]=_0x4776b6,this[_0x3b2e16(0x245)]=_0x3cfdd7,this[_0x3b2e16(0x1f2)]=_0x20e8d3,this[_0x3b2e16(0x1eb)]=_0x33aa0d,this['_commandService']=_0x208069);}get['_status'](){var _0x164251=_0x1df96c;return this[_0x164251(0x238)][_0x164251(0x1d8)]();}[_0x1df96c(0x220)](){var _0x473621=_0x1df96c,_0x22e128;(_0x22e128=this[_0x473621(0x228)])==null||_0x22e128['dispose'](),this[_0x473621(0x238)][_0x473621(0x223)](_0x473621(0x217)),this[_0x473621(0x238)][_0x473621(0x195)]();}['init'](){var _0x138ba0=_0x1df96c;this['_init']||(this['_init']=!0x0,this[_0x138ba0(0x245)][_0x138ba0(0x1a8)]['pipe'](b[_0x138ba0(0x20e)](this[_0x138ba0(0x23a)]))[_0x138ba0(0x1cb)](_0x559f1f=>{var _0x1bb27b=_0x138ba0;switch(_0x559f1f){case m[_0x1bb27b(0x1e3)][_0x1bb27b(0x1e5)]:this[_0x1bb27b(0x1db)]();break;case m[_0x1bb27b(0x1e3)][_0x1bb27b(0x177)]:this[_0x1bb27b(0x1e9)]();break;}}),this[_0x138ba0(0x245)]['event$'][_0x138ba0(0x1e7)](b[_0x138ba0(0x20e)](this[_0x138ba0(0x23a)]))[_0x138ba0(0x1cb)](_0x2a9f73=>{var _0x2a1167=_0x138ba0;const {eventID:_0x4fdf60}=_0x2a9f73;switch(_0x4fdf60){case _[_0x2a1167(0x1c9)][_0x2a1167(0x211)]:this['_handleNewHost'](_0x2a9f73);break;case _[_0x2a1167(0x1c9)][_0x2a1167(0x1f8)]:this[_0x2a1167(0x23c)](_0x2a9f73);break;case _[_0x2a1167(0x1c9)][_0x2a1167(0x1df)]:this[_0x2a1167(0x17b)]();break;case _[_0x2a1167(0x1c9)][_0x2a1167(0x17a)]:this[_0x2a1167(0x197)](_0x2a9f73);break;}}));}[_0x1df96c(0x185)](){var _0x17ed09=_0x1df96c;this[_0x17ed09(0x245)]['send']({'eventID':_[_0x17ed09(0x1c9)][_0x17ed09(0x239)],'data':{'unitID':this[_0x17ed09(0x1c8)],'userID':this[_0x17ed09(0x245)][_0x17ed09(0x1fa)]()}},this[_0x17ed09(0x1c8)]);}[_0x1df96c(0x243)](){var _0x5a55ac=_0x1df96c;this[_0x5a55ac(0x1f7)]===_0x5a55ac(0x18a)&&(this[_0x5a55ac(0x238)][_0x5a55ac(0x223)]('idle'),this[_0x5a55ac(0x245)][_0x5a55ac(0x1a7)]({'eventID':_[_0x5a55ac(0x1c9)][_0x5a55ac(0x1df)],'data':{'unitID':this[_0x5a55ac(0x1c8)]}},this['_unitID']));}[_0x1df96c(0x1ae)](){var _0x388e48=_0x1df96c;this[_0x388e48(0x1f7)]===_0x388e48(0x1dc)&&(this[_0x388e48(0x238)][_0x388e48(0x223)](_0x388e48(0x1ee)),this[_0x388e48(0x1ec)]());}[_0x1df96c(0x20c)](){var _0x4526c4=_0x1df96c;this['_status']===_0x4526c4(0x1ee)&&this[_0x4526c4(0x24d)]();}[_0x1df96c(0x1d2)](_0x5e44af){var _0x2ce9b4=_0x1df96c;const {presenter:_0x2a531a}=_0x5e44af[_0x2ce9b4(0x244)],_0x4b636c=this[_0x2ce9b4(0x245)]['getMemberID']();this['_presenter']=_0x2a531a,_0x2a531a===_0x4b636c?(this[_0x2ce9b4(0x24d)](),this[_0x2ce9b4(0x1a1)]()):this['_status']!==_0x2ce9b4(0x1dc)&&(this[_0x2ce9b4(0x198)](),this[_0x2ce9b4(0x1ec)]());}[_0x1df96c(0x1a0)](){var _0xfda226=_0x1df96c;const _0xf59c63={'eventID':_[_0xfda226(0x1c9)][_0xfda226(0x23f)]};this[_0xfda226(0x245)][_0xfda226(0x1a7)](_0xf59c63,this[_0xfda226(0x1c8)]);}['_handleTerminate'](){var _0x5d5b3b=_0x1df96c;this[_0x5d5b3b(0x1b9)]=null,this[_0x5d5b3b(0x1f7)]!=='presenting'&&this[_0x5d5b3b(0x1a9)]();}['_handleNewChangeSets'](_0x3b101f){var _0x14ba21=_0x1df96c;if(this[_0x14ba21(0x1f7)]===_0x14ba21(0x1ee)&&this[_0x14ba21(0x1b9)]===_0x3b101f[_0x14ba21(0x244)][_0x14ba21(0x18c)]){const _0x3321b8=_['parseProtocolChangeset'](_0x3b101f['data'])[_0x14ba21(0x1e1)][_0x14ba21(0x171)]()[_0x14ba21(0x20d)](_0x3fd64e=>_0x3fd64e['id']===C['InsertSheetMutation']['id']);if(_0x3321b8){const _0x5a0c78=_0x3321b8[_0x14ba21(0x1de)][_0x14ba21(0x193)],_0xcb678d=_0x3321b8[_0x14ba21(0x1de)][_0x14ba21(0x206)]['id'];setTimeout(()=>{var _0x1b6206=_0x14ba21;this[_0x1b6206(0x234)][_0x1b6206(0x1f0)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5a0c78,'subUnitId':_0xcb678d},{'fromCollab':!0x0});});}}}[_0x1df96c(0x1a1)](){var _0x5dcb24=_0x1df96c;this['_status$'][_0x5dcb24(0x223)](_0x5dcb24(0x18a));const _0xa42fa1=new Map(),_0x31ca06=this[_0x5dcb24(0x228)]=new o[(_0x5dcb24(0x21b))]();_0x31ca06[_0x5dcb24(0x17d)](o[_0x5dcb24(0x168)](()=>{var _0x4209ab=_0x5dcb24;_0xa42fa1['forEach'](_0x26ae29=>_0x26ae29['complete']()),_0xa42fa1[_0x4209ab(0x21a)]();})),_0x31ca06[_0x5dcb24(0x17d)](this[_0x5dcb24(0x234)][_0x5dcb24(0x1c7)](_0x2c2bbc=>{var _0x4ee249=_0x5dcb24,_0x24750e;if(_0x2c2bbc['type']!==o[_0x4ee249(0x182)][_0x4ee249(0x1be)]||!this[_0x4ee249(0x1eb)]['shouldShareOperation'](_0x2c2bbc['id']))return;const {id:_0x367986}=_0x2c2bbc;let _0x3e7263;_0xa42fa1['has'](_0x367986)?_0x3e7263=_0xa42fa1['get'](_0x367986):(_0x3e7263=new D['Subject'](),_0xa42fa1[_0x4ee249(0x1ca)](_0x367986,_0x3e7263),_0x3e7263[_0x4ee249(0x1e7)](b[_0x4ee249(0x22e)]((_0x24750e=this[_0x4ee249(0x1f2)][_0x4ee249(0x1bf)](Z))!=null?_0x24750e:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ee249(0x1cb)](_0x2ecc65=>{var _0x1a9a0d=_0x4ee249;this[_0x1a9a0d(0x245)][_0x1a9a0d(0x1a7)]({'eventID':_[_0x1a9a0d(0x1c9)][_0x1a9a0d(0x1f8)],'data':{'unitID':this[_0x1a9a0d(0x1c8)],'operations':{[_0x2ecc65['id']]:{'id':_0x2ecc65['id'],'params':JSON['stringify'](_0x2ecc65[_0x1a9a0d(0x1de)])}}}},this['_unitID']);})),_0x3e7263[_0x4ee249(0x223)](_0x2c2bbc);})),this['_liveShareService']['getInitialStates'](this[_0x5dcb24(0x1c8)])['forEach'](_0x5e29b1=>this[_0x5dcb24(0x245)][_0x5dcb24(0x1a7)]({'eventID':_[_0x5dcb24(0x1c9)][_0x5dcb24(0x1f8)],'data':{'unitID':this['_unitID'],'operations':{[_0x5e29b1['id']]:{'id':_0x5e29b1['id'],'params':JSON['stringify'](_0x5e29b1[_0x5dcb24(0x1de)])}}}},this[_0x5dcb24(0x1c8)]));}[_0x1df96c(0x198)](){var _0x566f41=_0x1df96c,_0x2bb76d;this[_0x566f41(0x238)]['next']('idle'),(_0x2bb76d=this[_0x566f41(0x228)])==null||_0x2bb76d[_0x566f41(0x220)](),this[_0x566f41(0x228)]=null;}[_0x1df96c(0x1ec)](){var _0x26f3d5=_0x1df96c,_0x3f3c72;(_0x3f3c72=this[_0x26f3d5(0x228)])==null||_0x3f3c72['dispose'](),this[_0x26f3d5(0x238)]['next'](_0x26f3d5(0x1ee));}[_0x1df96c(0x1a9)](){var _0x1b654a=_0x1df96c,_0x12aa30;this[_0x1b654a(0x238)][_0x1b654a(0x223)]('idle'),(_0x12aa30=this[_0x1b654a(0x228)])==null||_0x12aa30[_0x1b654a(0x220)](),this[_0x1b654a(0x228)]=null;}['_stopFollowing'](){var _0x5a2a49=_0x1df96c,_0x4d8156;this[_0x5a2a49(0x238)][_0x5a2a49(0x223)]('not-following'),(_0x4d8156=this[_0x5a2a49(0x228)])==null||_0x4d8156[_0x5a2a49(0x220)]();}[_0x1df96c(0x23c)](_0xdf7c1c){var _0x3b0b53=_0x1df96c;if(['presenting',_0x3b0b53(0x1dc),_0x3b0b53(0x214)][_0x3b0b53(0x187)](this['_status'])||!_0xdf7c1c[_0x3b0b53(0x244)][_0x3b0b53(0x1e4)]||_0xdf7c1c[_0x3b0b53(0x244)][_0x3b0b53(0x1e4)]===this[_0x3b0b53(0x245)][_0x3b0b53(0x1fa)]())return;this[_0x3b0b53(0x1f7)]==='idle'&&this[_0x3b0b53(0x1ec)]();const _0x301b60=_0xdf7c1c[_0x3b0b53(0x244)][_0x3b0b53(0x1ce)];Object[_0x3b0b53(0x227)](_0x301b60)['forEach'](_0x435f2f=>{var _0x4dfafa=_0x3b0b53;this[_0x4dfafa(0x234)][_0x4dfafa(0x1f0)](_0x435f2f['id'],_0x435f2f[_0x4dfafa(0x1de)]?JSON[_0x4dfafa(0x18b)](_0x435f2f['params']):null,{'fromCollab':!0x0});});}[_0x1df96c(0x1db)](){var _0x46958f=_0x1df96c,_0x1e499c;this['_status$'][_0x46958f(0x223)](_0x46958f(0x214)),(_0x1e499c=this['_commandDisposable'])==null||_0x1e499c[_0x46958f(0x220)]();}[_0x1df96c(0x1e9)](){var _0x16b799=_0x1df96c;this[_0x16b799(0x238)][_0x16b799(0x223)]('idle'),this[_0x16b799(0x1a0)]();}},exports[_0x1df96c(0x20f)]=R([S(0x2,o[_0x1df96c(0x169)]),S(0x3,o[_0x1df96c(0x235)](O)),S(0x4,o['ICommandService'])],exports[_0x1df96c(0x20f)]);function A(){var _0xcf7b10=_0x1df96c;const _0x4801a5=p[_0xcf7b10(0x19f)](exports[_0xcf7b10(0x188)]),_0x459a8f=p[_0xcf7b10(0x19f)](o['IUniverInstanceService']),_0x3b165f=p['useObservable'](()=>_0x459a8f['getCurrentTypeOfUnit$'](o[_0xcf7b10(0x192)][_0xcf7b10(0x201)]),void 0x0,!0x1,[]),[_0x3de593,_0x448035]=f['useState'](null),[_0x9f4de5,_0x1ae1e1]=f[_0xcf7b10(0x248)](h[_0xcf7b10(0x1c0)]),_0x2be27f=f['useRef'](null);return f[_0xcf7b10(0x176)](()=>(_0x3b165f&&_0x4801a5[_0xcf7b10(0x172)](_0x3b165f[_0xcf7b10(0x16b)]())[_0xcf7b10(0x24b)](_0x58c2fd=>{var _0x583bc1=_0xcf7b10;_0x448035(_0x58c2fd),_0x2be27f[_0x583bc1(0x22d)]=_0x58c2fd['status$'][_0x583bc1(0x1cb)](_0x260408=>{_0x1ae1e1(_0x260408);});}),()=>{var _0x3966af=_0xcf7b10,_0x4b4619;(_0x4b4619=_0x2be27f['current'])==null||_0x4b4619[_0x3966af(0x1f1)](),_0x2be27f['current']=null;}),[_0x3b165f,_0x4801a5]),_0x3de593?l['jsx'](g[_0xcf7b10(0x230)],{'align':_0xcf7b10(0x1a6),'disabled':_0x9f4de5===h['OFFLINE'],'className':_0xcf7b10(0x1ff),'overlay':l[_0xcf7b10(0x1d3)](K,{'status':_0x9f4de5,'coordinator':_0x3de593}),'children':l[_0xcf7b10(0x1d3)](_0xcf7b10(0x1ef),{'className':g[_0xcf7b10(0x1cf)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x9f4de5===h[_0xcf7b10(0x1e5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9f4de5!==h['OFFLINE']}),'type':'button','children':l['jsx'](P,{'className':_0xcf7b10(0x207)})})}):null;}function K(_0x15845a){var _0x1de81c=_0x1df96c;const {status:_0x510af2,coordinator:_0x8b2567}=_0x15845a;switch(_0x510af2){case h[_0x1de81c(0x1c0)]:return l['jsx'](z,{'coordinator':_0x8b2567});case h[_0x1de81c(0x1c6)]:return l[_0x1de81c(0x1d3)](Q,{'coordinator':_0x8b2567});case h['NOT_FOLLOWING']:return l['jsx'](X,{'coordinator':_0x8b2567});case h[_0x1de81c(0x1e5)]:return l['jsx'](te,{});case h[_0x1de81c(0x175)]:return l[_0x1de81c(0x1d3)](ee,{'coordinator':_0x8b2567});default:return null;}}function z(_0x5eacd6){var _0x371f2b=_0x1df96c;const {coordinator:_0x194107}=_0x5eacd6;return l[_0x371f2b(0x194)](l['Fragment'],{'children':[l[_0x371f2b(0x1d3)](_0x371f2b(0x1d4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x371f2b(0x249)}),l[_0x371f2b(0x1d3)](g[_0x371f2b(0x21e)],{'onClick':()=>_0x194107[_0x371f2b(0x185)](),'children':_0x371f2b(0x1d1)})]});}function Q(_0x54a33b){var _0x99fd7b=_0x1df96c;const {coordinator:_0x485723}=_0x54a33b;return l[_0x99fd7b(0x194)](l[_0x99fd7b(0x19a)],{'children':[l[_0x99fd7b(0x1d3)](_0x99fd7b(0x1d4),{'className':_0x99fd7b(0x212),'children':_0x99fd7b(0x1e2)}),l[_0x99fd7b(0x1d3)](g['Button'],{'onClick':()=>_0x485723[_0x99fd7b(0x20c)](),'children':_0x99fd7b(0x24a)})]});}function X(_0x1de78e){var _0x9660c1=_0x1df96c;const {coordinator:_0x523de5}=_0x1de78e;return l[_0x9660c1(0x194)](l[_0x9660c1(0x19a)],{'children':[l[_0x9660c1(0x1d3)](_0x9660c1(0x1d4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x9660c1(0x1e6)}),l['jsx'](g['Button'],{'variant':_0x9660c1(0x1b7),'onClick':()=>_0x523de5[_0x9660c1(0x1ae)](),'children':_0x9660c1(0x215)})]});}function _0x2638(){var _0x3e9d8d=['takeUntil','LiveShareCoordinator','requireSession','LIVESHARE_NEW_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm','toStringTag','offline','Start\x20following','RxDisposable','idle','_startLiveShareCoordinator','url(#$1','clear','DisposableCollection','attrs','http://www.w3.org/2000/svg','Button','IUIPartsService','dispose','BuiltInUIPart','LiveShareStatus','next','mergeOverrideWithDependencies','forEach','string','values','_commandDisposable','44syCciJ','random','onRendered','_collabSessionService','current','throttleTime','substring','Dropdown','UniverIcon','path','connectInjector','_commandService','Inject','SetScrollOperation','length','_status$','LIVESHARE_REQUEST_HOST','dispose$','concat','_handleOperation','hasOwnProperty','merge','LIVESHARE_FETCH_OPERATIONS','getOwnPropertyDescriptor','xlink:href','defIds','stopPresenting','data','_collabSession','36090Vguese','get','useState','Present\x20this\x20document','Stop\x20following','then','Plugin','_stopFollowing','415146iEnorp','useRef','toDisposable','IConfigService','fill','getUnitId','1em','536zRNoqa','defineProperty','84mmqwNc','pluginName','reverse','getLiveShareCoordinator','getInitialStates','UNIVER_LIVE_SHARE_PLUGIN','PRESENTING','useEffect','ONLINE','_reporters','182kjGiYc','NEW_CHANGESETS','_handleTerminate','0\x200\x2017\x2017','add','icon','102oxEHGH','registerSharedOperation','_sharedOperations','CommandType','entries','_injector','tryStartPresenting','function','includes','LiveShareController','Stop\x20presenting','presenting','parse','memberID','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','none','evenodd','HEADER_MENU','apply','UniverInstanceType','unitId','jsxs','complete','You\x27are\x20offline.','_handleNewChangeSets','_stopPresenting','_init','Fragment','override','IUniverInstanceService','prototype','getTypeOfUnitAdded$','useDependency','_fetchOperations','_startPresenting','LiveShareIcon','replace','_uiPartsService','propertyIsEnumerable','end','send','sessionStatus$','_beIdle','from','UNIVER_UNKNOWN','displayName','UniverCollaborationClientPlugin','startFollowing','1636175GVymIR','className','currentColor','tag','assign','onStarting','getOwnPropertySymbols','touchDependencies','text','_mountLiveShare','_presenter','LiveShareService','_config','registerInitialStateReporter','Injector','OPERATION','getConfig','IDLE','_entities','live-share-icon','colorChannel1','status$','77814bTQPmo','FOLLOWING','onCommandExecuted','_unitID','CollaborationEvent','set','subscribe','defs','SetZoomRatioOperation','operations','clsx','SAME_OPERATION_SHARE_INTERVAL','Start','_handleNewHost','jsx','div','864820yguJMz','extend','_univerInstanceService','getValue','type','registerComponent','_handleOffline','not-following','DesktopLiveShareController','params','LIVESHARE_TERMINATE','21366924nTRpEZ','mutations','You\x27re\x20following\x20the\x20presenter','SessionStatus','presenter','OFFLINE','You\x27re\x20not\x20following\x20the\x20presenter','pipe','createElement','_handleOnline','BehaviorSubject','_liveShareService','_startFollowing','delete','following','button','executeCommand','unsubscribe','_configService','idSuffix','use','indexOf','disposeWithMe','_status','LIVESHARE_OPERATION','svg','getMemberID','call','has','34794OqmXfZ','forwardRef','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','map','UNIVER_SHEET','CollaborationSessionService','NOT_FOLLOWING','trim','Module','sheet','univer-size-4','children','UniverLiveSharePlugin','symbol','live-share.config','stopFollowing','find'];_0x2638=function(){return _0x3e9d8d;};return _0x2638();}function ee(_0x43aad8){var _0x380ab4=_0x1df96c;const {coordinator:_0x416e9d}=_0x43aad8;return l[_0x380ab4(0x194)](l['Fragment'],{'children':[l[_0x380ab4(0x1d3)]('div',{'className':_0x380ab4(0x212),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x380ab4(0x1d3)](g[_0x380ab4(0x21e)],{'variant':'default','onClick':()=>_0x416e9d['stopPresenting'](),'children':_0x380ab4(0x189)})]});}function te(){var _0x4c35fa=_0x1df96c;return l[_0x4c35fa(0x1d3)](l[_0x4c35fa(0x19a)],{'children':_0x4c35fa(0x196)});}var ie=Object[_0x1df96c(0x240)],ne=(_0x195cd9,_0x1bf6f5,_0x11e083,_0x3d2a95)=>{var _0x13f49f=_0x1df96c;for(var _0x184467=_0x3d2a95>0x1?void 0x0:_0x3d2a95?ie(_0x1bf6f5,_0x11e083):_0x1bf6f5,_0x184d72=_0x195cd9[_0x13f49f(0x237)]-0x1,_0x4d8d13;_0x184d72>=0x0;_0x184d72--)(_0x4d8d13=_0x195cd9[_0x184d72])&&(_0x184467=_0x4d8d13(_0x184467)||_0x184467);return _0x184467;},L=(_0x212f2f,_0x5c072c)=>(_0x5da435,_0x30b8be)=>_0x5c072c(_0x5da435,_0x30b8be,_0x212f2f);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x59d9c6,_0x1859d4){var _0x30916e=_0x1df96c;super(),this[_0x30916e(0x184)]=_0x59d9c6,this[_0x30916e(0x1a4)]=_0x1859d4,this[_0x30916e(0x1b8)]();}[_0x1df96c(0x1b8)](){var _0xb07ab9=_0x1df96c;this[_0xb07ab9(0x1f6)](this[_0xb07ab9(0x1a4)][_0xb07ab9(0x1da)](p[_0xb07ab9(0x221)][_0xb07ab9(0x190)],()=>p[_0xb07ab9(0x233)](A,this[_0xb07ab9(0x184)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x1df96c(0x235)](o['Injector'])),L(0x1,p[_0x1df96c(0x21f)])],exports[_0x1df96c(0x1dd)]);var re=Object[_0x1df96c(0x16e)],se=Object['getOwnPropertyDescriptor'],oe=(_0x25ce26,_0x1dc51d,_0x1c41a6)=>_0x1dc51d in _0x25ce26?re(_0x25ce26,_0x1dc51d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c41a6}):_0x25ce26[_0x1dc51d]=_0x1c41a6,ae=(_0x2d5cb6,_0x2b0a9a,_0x3c4a75,_0x59f8e8)=>{var _0x1fe7a4=_0x1df96c;for(var _0x27c6f0=_0x59f8e8>0x1?void 0x0:_0x59f8e8?se(_0x2b0a9a,_0x3c4a75):_0x2b0a9a,_0x285a42=_0x2d5cb6[_0x1fe7a4(0x237)]-0x1,_0x434cb1;_0x285a42>=0x0;_0x285a42--)(_0x434cb1=_0x2d5cb6[_0x285a42])&&(_0x27c6f0=_0x434cb1(_0x27c6f0)||_0x27c6f0);return _0x27c6f0;},N=(_0x1524d1,_0x3a822f)=>(_0x1a7d39,_0x49da0d)=>_0x3a822f(_0x1a7d39,_0x49da0d,_0x1524d1),T=(_0x44f7eb,_0x477eab,_0x1cb379)=>oe(_0x44f7eb,typeof _0x477eab!=_0x1df96c(0x20a)?_0x477eab+'':_0x477eab,_0x1cb379);const le=_0x1df96c(0x174);exports[_0x1df96c(0x209)]=class extends o[_0x1df96c(0x24c)]{constructor(_0x2f5cea=x,_0x1fbcab,_0xd7135d){var _0x4f2d2f=_0x1df96c;super(),this[_0x4f2d2f(0x1bb)]=_0x2f5cea,this['_injector']=_0x1fbcab,this[_0x4f2d2f(0x1f2)]=_0xd7135d;const {..._0x1bb49d}=o[_0x4f2d2f(0x23e)]({},x,this['_config']);this[_0x4f2d2f(0x1f2)]['setConfig']($,_0x1bb49d);}[_0x1df96c(0x1b4)](){var _0x51f755=_0x1df96c;o['registerDependencies'](this[_0x51f755(0x184)],o[_0x51f755(0x224)]([[O],[exports[_0x51f755(0x188)]],[E],[exports['DesktopLiveShareController']]],this[_0x51f755(0x1bb)][_0x51f755(0x19b)])),o[_0x51f755(0x1b6)](this[_0x51f755(0x184)],[[E]]);}[_0x1df96c(0x22b)](){var _0x436c23=_0x1df96c;o['touchDependencies'](this[_0x436c23(0x184)],[[exports[_0x436c23(0x1dd)]]]);}},T(exports['UniverLiveSharePlugin'],_0x1df96c(0x1d9),o[_0x1df96c(0x192)][_0x1df96c(0x1ab)]),T(exports['UniverLiveSharePlugin'],_0x1df96c(0x170),le),exports[_0x1df96c(0x209)]=ae([o['DependentOn'](m[_0x1df96c(0x1ad)]),N(0x1,o[_0x1df96c(0x235)](o['Injector'])),N(0x2,o[_0x1df96c(0x169)])],exports[_0x1df96c(0x209)]),exports['LiveShare']=A,exports[_0x1df96c(0x1ba)]=O,exports[_0x1df96c(0x222)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1cfdb8=_0x38aa;(function(_0x2254fe,_0x547e30){var _0x622d75=_0x38aa,_0x5ed9d9=_0x2254fe();while(!![]){try{var _0x4ed5ea=-parseInt(_0x622d75(0x1b8))/0x1+-parseInt(_0x622d75(0x1cb))/0x2*(parseInt(_0x622d75(0x188))/0x3)+parseInt(_0x622d75(0x1eb))/0x4*(parseInt(_0x622d75(0x18b))/0x5)+-parseInt(_0x622d75(0x1d6))/0x6*(-parseInt(_0x622d75(0x211))/0x7)+-parseInt(_0x622d75(0x1ad))/0x8+parseInt(_0x622d75(0x23a))/0x9*(-parseInt(_0x622d75(0x213))/0xa)+parseInt(_0x622d75(0x1ab))/0xb;if(_0x4ed5ea===_0x547e30)break;else _0x5ed9d9['push'](_0x5ed9d9['shift']());}catch(_0x5d0107){_0x5ed9d9['push'](_0x5ed9d9['shift']());}}}(_0x212b,0xd4481));var q=Object[_0x1cfdb8(0x23f)],z=(_0xd16ef2,_0xac2f13,_0x35282d)=>_0xac2f13 in _0xd16ef2?q(_0xd16ef2,_0xac2f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35282d}):_0xd16ef2[_0xac2f13]=_0x35282d,d=(_0x2c04bb,_0x395c32,_0x10d572)=>z(_0x2c04bb,typeof _0x395c32!='symbol'?_0x395c32+'':_0x395c32,_0x10d572);import{CollaborationSessionService as _0x1aeeb2,SessionStatus as _0x4c2fe1,UniverCollaborationClientPlugin as _0x5df2c9}from'@univerjs-pro/collaboration-client';function _0x38aa(_0x4e70b4,_0x13c80e){var _0x212b62=_0x212b();return _0x38aa=function(_0x38aaca,_0x5d5abe){_0x38aaca=_0x38aaca-0x188;var _0x540e9f=_0x212b62[_0x38aaca];return _0x540e9f;},_0x38aa(_0x4e70b4,_0x13c80e);}import{Disposable as _0x978db0,toDisposable as _0x4a5a19,Inject as _0x47e04a,IUniverInstanceService as _0x5e8fc8,Injector as _0x12d76d,IConfigService as _0x4ab276,ICommandService as _0x1b92ec,RxDisposable as _0x34f499,UniverInstanceType as _0x44e9a0,DisposableCollection as _0x4bfb4d,CommandType as _0x1a8ce3,DependentOn as _0x20f516,Plugin as _0x2d95be,merge as _0x4d7b5c,registerDependencies as _0x3c4690,mergeOverrideWithDependencies as _0x5c9bf8,touchDependencies as _0x223193}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x24d323,InsertSheetMutation as _0x10e7cd}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20f706,SetScrollOperation as _0xf4f43e}from'@univerjs/sheets-ui';import{useDependency as _0x5ac572,useObservable as _0xb18adb,IUIPartsService as _0x53c21b,BuiltInUIPart as _0x2b5b91,connectInjector as _0xecd535}from'@univerjs/ui';import{jsx as _0x2585db,jsxs as _0x3c8f57,Fragment as _0x589951}from'react/jsx-runtime';import{Dropdown as _0x2c46c3,clsx as _0x4d9db3,Button as _0xcd60f4}from'@univerjs/design';import{forwardRef as _0x59bfc9,useRef as _0x25d6c4,createElement as _0x45c30f,useState as _0x21145a,useEffect as _0x396e80}from'react';function _0x212b(){var _0x4f0b63=['pluginName','button','symbol','prototype','hasOwnProperty','_collabSession','getUnitId','path','replace','xlink:href','following','_collabSessionService','_commandDisposable','createInstance','none','4tLABLK','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','OPERATION','_liveShareService','PRESENTING','defIds','add','children','presenting','memberID','idle','idSuffix','clear','random','_handleOnline','sessionStatus$','data','OFFLINE','dispose$','subscribe','assign','_unitID','_entities','LIVESHARE_OPERATION','dispose','url(#$1','not-following','tag','colorChannel1','stopFollowing','_handleNewHost','_startPresenting','from','map','_reporters','send','7nckDEy','fill','1589860DNLwNd','_commandService','then','get','getTypeOfUnitAdded$','_handleTerminate','complete','parse','registerComponent','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','_presenter','length','startFollowing','_fetchOperations','svg','http://www.w3.org/2000/svg','LiveShareIcon','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20presenting','string','end','set','tryStartPresenting','_startFollowing','getOwnPropertyDescriptor','setConfig','requireSession','_status','params','presenter','attrs','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','indexOf','getTypeOfUnitDisposed$','values','onStarting','36AbGmYL','0\x200\x2017\x2017','_stopFollowing','getLiveShareCoordinator','extend','defineProperty','1em','2922879GxkwKF','_status$','call','1491340FuOpUJ','current','univer-size-4','UniverIcon','apply','forEach','displayName','includes','Start\x20following','stopPresenting','_uiPartsService','NOT_FOLLOWING','unitId','_injector','getValue','currentColor','getInitialStates','UNIVER_SHEET','ONLINE','operations','init','live-share-icon','registerInitialStateReporter','icon','_sharedOperations','UNIVER_UNKNOWN','_init','onRendered','entries','Stop\x20following','LIVESHARE_TERMINATE','next','43451034ZEDDhj','evenodd','4180944SQwlZt','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','pipe','mask','offline','propertyIsEnumerable','getOwnPropertySymbols','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','getMemberID','_beIdle','1490030ftfqNq','div','text','reverse','find','live-share.config','HEADER_MENU','_configService','status$','mutations','defs','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','_mountLiveShare','onCommandExecuted','_univerInstanceService','asObservable','getConfig','_handleNewChangeSets','unsubscribe','2NSYMkD','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','executeCommand','sheet','type','delete','className','override','univerjs-icon\x20univerjs-icon-','registerSharedOperation','1464168OYzTwh','_config','concat','has','You\x27are\x20offline.','substring'];_0x212b=function(){return _0x4f0b63;};return _0x212b();}import{CollaborationEvent as _0x20f152,parseProtocolChangeset as _0x5d01dc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x232912,Subject as _0x396672}from'rxjs';import{takeUntil as _0x53db6a,throttleTime as _0x4fcd45}from'rxjs/operators';const Oe=_0x1cfdb8(0x1bd),T={};class L extends _0x978db0{constructor(){var _0x263b05=_0x1cfdb8;super(...arguments),d(this,_0x263b05(0x1a3),new Set()),d(this,'_reporters',new Set());}[_0x1cfdb8(0x1d5)](_0x1a5673){var _0x26d507=_0x1cfdb8;return this[_0x26d507(0x1a3)][_0x26d507(0x1f3)](_0x1a5673),_0x4a5a19(()=>this['_sharedOperations'][_0x26d507(0x1d1)](_0x1a5673));}[_0x1cfdb8(0x1a1)](_0x222b63){var _0x272a54=_0x1cfdb8;return this[_0x272a54(0x20f)][_0x272a54(0x1f3)](_0x222b63),_0x4a5a19(()=>this[_0x272a54(0x20f)]['delete'](_0x222b63));}['shouldShareOperation'](_0x3dae90){var _0x1b2f10=_0x1cfdb8;return this[_0x1b2f10(0x1a3)][_0x1b2f10(0x1d9)](_0x3dae90);}['getInitialStates'](_0x9af903){var _0x3af8af=_0x1cfdb8;return Array[_0x3af8af(0x20d)](this[_0x3af8af(0x20f)])[_0x3af8af(0x20e)](_0xe0eae5=>_0xe0eae5(_0x9af903));}}var Ee=Object[_0x1cfdb8(0x22d)],we=(_0x4e4613,_0x447ae7,_0x385b4f,_0x413bfa)=>{var _0x438e2f=_0x1cfdb8;for(var _0x19eb74=_0x413bfa>0x1?void 0x0:_0x413bfa?Ee(_0x447ae7,_0x385b4f):_0x447ae7,_0x2ca1d4=_0x4e4613[_0x438e2f(0x21f)]-0x1,_0x33589d;_0x2ca1d4>=0x0;_0x2ca1d4--)(_0x33589d=_0x4e4613[_0x2ca1d4])&&(_0x19eb74=_0x33589d(_0x19eb74)||_0x19eb74);return _0x19eb74;},Ne=(_0x5300ab,_0x364dc7)=>(_0x195b5e,_0x1987f9)=>_0x364dc7(_0x195b5e,_0x1987f9,_0x5300ab);let m=class extends _0x978db0{constructor(_0x2f763e){var _0x5c2773=_0x1cfdb8;super(),this[_0x5c2773(0x1f0)]=_0x2f763e,this[_0x5c2773(0x1a5)]();}[_0x1cfdb8(0x1a5)](){var _0x565342=_0x1cfdb8;[_0x20f706['id'],_0xf4f43e['id'],_0x24d323['id']][_0x565342(0x190)](_0x5b7203=>{var _0x4fc2ac=_0x565342;this['disposeWithMe'](this['_liveShareService'][_0x4fc2ac(0x1d5)](_0x5b7203));});}};m=we([Ne(0x0,_0x47e04a(L))],m);var c=function(){var _0x10ec6a=_0x1cfdb8;return c=Object[_0x10ec6a(0x201)]||function(_0x39cc35){var _0x3edc73=_0x10ec6a;for(var _0x4d6feb,_0x4ccd36=0x1,_0x59fa55=arguments[_0x3edc73(0x21f)];_0x4ccd36<_0x59fa55;_0x4ccd36++){_0x4d6feb=arguments[_0x4ccd36];for(var _0x137211 in _0x4d6feb)Object['prototype'][_0x3edc73(0x1e0)]['call'](_0x4d6feb,_0x137211)&&(_0x39cc35[_0x137211]=_0x4d6feb[_0x137211]);}return _0x39cc35;},c[_0x10ec6a(0x18f)](this,arguments);},Ce=function(_0xb5c193,_0x5a3b62){var _0x4a0668=_0x1cfdb8,_0xec7201={};for(var _0x4a5760 in _0xb5c193)Object[_0x4a0668(0x1df)][_0x4a0668(0x1e0)]['call'](_0xb5c193,_0x4a5760)&&_0x5a3b62[_0x4a0668(0x236)](_0x4a5760)<0x0&&(_0xec7201[_0x4a5760]=_0xb5c193[_0x4a5760]);if(_0xb5c193!=null&&typeof Object[_0x4a0668(0x1b4)]=='function'){for(var _0x33c41e=0x0,_0x4a5760=Object[_0x4a0668(0x1b4)](_0xb5c193);_0x33c41e<_0x4a5760[_0x4a0668(0x21f)];_0x33c41e++)_0x5a3b62[_0x4a0668(0x236)](_0x4a5760[_0x33c41e])<0x0&&Object[_0x4a0668(0x1df)][_0x4a0668(0x1b3)][_0x4a0668(0x18a)](_0xb5c193,_0x4a5760[_0x33c41e])&&(_0xec7201[_0x4a5760[_0x33c41e]]=_0xb5c193[_0x4a5760[_0x33c41e]]);}return _0xec7201;},W=_0x59bfc9(function(_0x4efc7e,_0xb0d19f){var _0x4baa06=_0x1cfdb8,_0x55f209=_0x4efc7e['icon'],_0xe569d2=_0x4efc7e['id'],_0x1c58fb=_0x4efc7e[_0x4baa06(0x1d2)],_0x3b30b2=_0x4efc7e[_0x4baa06(0x23e)],_0x143fc8=Ce(_0x4efc7e,[_0x4baa06(0x1a2),'id',_0x4baa06(0x1d2),_0x4baa06(0x23e)]),_0x1b8bcd=_0x4baa06(0x1d4)['concat'](_0xe569d2,'\x20')[_0x4baa06(0x1d8)](_0x1c58fb||'')[_0x4baa06(0x225)](),_0x4d6fc4=_0x25d6c4('_'[_0x4baa06(0x1d8)](Le()));return Y(_0x55f209,''[_0x4baa06(0x1d8)](_0xe569d2),{'defIds':_0x55f209[_0x4baa06(0x1f2)],'idSuffix':_0x4d6fc4[_0x4baa06(0x18c)]},c({'ref':_0xb0d19f,'className':_0x1b8bcd},_0x143fc8),_0x3b30b2);});function Y(_0x43f131,_0x1b90f7,_0x27d717,_0x21d043,_0x48f311){var _0x68908d=_0x1cfdb8;return _0x45c30f(_0x43f131[_0x68908d(0x208)],c(c({'key':_0x1b90f7},De(_0x43f131,_0x27d717,_0x48f311)),_0x21d043),(xe(_0x43f131,_0x27d717)[_0x68908d(0x1f4)]||[])[_0x68908d(0x20e)](function(_0x406890,_0x2dd08d){var _0x564cd0=_0x68908d;return Y(_0x406890,''['concat'](_0x1b90f7,'-')[_0x564cd0(0x1d8)](_0x43f131[_0x564cd0(0x208)],'-')[_0x564cd0(0x1d8)](_0x2dd08d),_0x27d717,void 0x0,_0x48f311);}));}function De(_0x82f61f,_0x2aed74,_0x1c1e9e){var _0x16ade7=_0x1cfdb8,_0x4ad31f=c({},_0x82f61f['attrs']);_0x1c1e9e!=null&&_0x1c1e9e[_0x16ade7(0x209)]&&_0x4ad31f['fill']==='colorChannel1'&&(_0x4ad31f[_0x16ade7(0x212)]=_0x1c1e9e[_0x16ade7(0x209)]),_0x82f61f['tag']==='mask'&&_0x4ad31f['id']&&(_0x4ad31f['id']=_0x4ad31f['id']+_0x2aed74[_0x16ade7(0x1f8)]),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x2395ae){var _0x116c4e=_0x16ade7,_0x2fd12d=_0x2395ae[0x0],_0x1e4eb7=_0x2395ae[0x1];_0x2fd12d===_0x116c4e(0x1b1)&&typeof _0x1e4eb7==_0x116c4e(0x228)&&(_0x4ad31f[_0x2fd12d]=_0x1e4eb7[_0x116c4e(0x1e4)](/url\(#(.*)\)/,_0x116c4e(0x206)[_0x116c4e(0x1d8)](_0x2aed74[_0x116c4e(0x1f8)],')')));});var _0x47b494=_0x2aed74[_0x16ade7(0x1f2)];return!_0x47b494||_0x47b494['length']===0x0||(_0x82f61f[_0x16ade7(0x208)]==='use'&&_0x4ad31f['xlink:href']&&(_0x4ad31f[_0x16ade7(0x1e5)]=_0x4ad31f[_0x16ade7(0x1e5)]+_0x2aed74['idSuffix']),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x3e714d){var _0x5e6db8=_0x16ade7,_0x2da8cd=_0x3e714d[0x0],_0x189137=_0x3e714d[0x1];typeof _0x189137==_0x5e6db8(0x228)&&(_0x4ad31f[_0x2da8cd]=_0x189137[_0x5e6db8(0x1e4)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2aed74[_0x5e6db8(0x1f8)],')')));})),_0x4ad31f;}function xe(_0x5dae6e,_0x410d83){var _0x13f102=_0x1cfdb8,_0x2f5174,_0x1313df=_0x410d83[_0x13f102(0x1f2)];return!_0x1313df||_0x1313df[_0x13f102(0x21f)]===0x0?_0x5dae6e:_0x5dae6e[_0x13f102(0x208)]===_0x13f102(0x1c2)&&(!((_0x2f5174=_0x5dae6e[_0x13f102(0x1f4)])===null||_0x2f5174===void 0x0)&&_0x2f5174[_0x13f102(0x21f)])?c(c({},_0x5dae6e),{'children':_0x5dae6e[_0x13f102(0x1f4)][_0x13f102(0x20e)](function(_0x1d6f5e){var _0x187fc2=_0x13f102;return typeof _0x1d6f5e[_0x187fc2(0x233)]['id']==_0x187fc2(0x228)&&_0x1313df&&_0x1313df[_0x187fc2(0x192)](_0x1d6f5e['attrs']['id'])?c(c({},_0x1d6f5e),{'attrs':c(c({},_0x1d6f5e['attrs']),{'id':_0x1d6f5e[_0x187fc2(0x233)]['id']+_0x410d83['idSuffix']})}):_0x1d6f5e;})}):_0x5dae6e;}function Le(){var _0x28a028=_0x1cfdb8;return Math[_0x28a028(0x1fa)]()['toString'](0x24)[_0x28a028(0x1db)](0x2,0x8);}W[_0x1cfdb8(0x191)]=_0x1cfdb8(0x18e);var ye={'tag':_0x1cfdb8(0x222),'attrs':{'xmlns':_0x1cfdb8(0x223),'fill':_0x1cfdb8(0x1ea),'viewBox':_0x1cfdb8(0x23b),'width':_0x1cfdb8(0x240),'height':_0x1cfdb8(0x240)},'children':[{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':'currentColor','d':_0x1cfdb8(0x1c3)}},{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':_0x1cfdb8(0x19a),'d':_0x1cfdb8(0x1b5),'fillRule':_0x1cfdb8(0x1ac),'clipRule':_0x1cfdb8(0x1ac)}}]},B=_0x59bfc9(function(_0x43d921,_0x42532d){var _0x4476b5=_0x1cfdb8;return _0x45c30f(W,Object[_0x4476b5(0x201)]({},_0x43d921,{'id':_0x4476b5(0x1a0),'ref':_0x42532d,'icon':ye}));});B[_0x1cfdb8(0x191)]=_0x1cfdb8(0x224);var Re=Object[_0x1cfdb8(0x22d)],Z=(_0x4e9e22,_0x8190cc,_0x5ba304,_0x2c4611)=>{var _0x2d8fb1=_0x1cfdb8;for(var _0x98efbb=_0x2c4611>0x1?void 0x0:_0x2c4611?Re(_0x8190cc,_0x5ba304):_0x8190cc,_0x4c592=_0x4e9e22[_0x2d8fb1(0x21f)]-0x1,_0x221019;_0x4c592>=0x0;_0x4c592--)(_0x221019=_0x4e9e22[_0x4c592])&&(_0x98efbb=_0x221019(_0x98efbb)||_0x98efbb);return _0x98efbb;},f=(_0x27cafd,_0x2ed14a)=>(_0x9920ce,_0x342b25)=>_0x2ed14a(_0x9920ce,_0x342b25,_0x27cafd);let I=class extends _0x34f499{constructor(_0x585cc7,_0x286658,_0x438dd1){var _0xea64f7=_0x1cfdb8;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x585cc7,this[_0xea64f7(0x198)]=_0x286658,this[_0xea64f7(0x1e7)]=_0x438dd1,this['_init']());}async[_0x1cfdb8(0x23d)](_0x3275a4){var _0x12c256=_0x1cfdb8;return this[_0x12c256(0x203)][_0x12c256(0x1d9)](_0x3275a4)||await this[_0x12c256(0x1cd)](_0x3275a4),this[_0x12c256(0x203)][_0x12c256(0x216)](_0x3275a4);}['_init'](){var _0x2739e5=_0x1cfdb8;this[_0x2739e5(0x1c6)][_0x2739e5(0x217)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))[_0x2739e5(0x200)](async _0xb14a38=>{var _0x5e159f=_0x2739e5;const _0x34c79=_0xb14a38[_0x5e159f(0x1e2)]();this[_0x5e159f(0x203)]['has'](_0x34c79)||this['_startLiveShareCoordinator'](_0x34c79);}),this[_0x2739e5(0x1c6)][_0x2739e5(0x237)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))['subscribe'](_0x453124=>{var _0x22a0ae=_0x2739e5;const _0x1f9d48=_0x453124['getUnitId'](),_0x26fd07=this[_0x22a0ae(0x203)][_0x22a0ae(0x216)](_0x1f9d48);_0x26fd07==null||_0x26fd07[_0x22a0ae(0x205)]();});}async[_0x1cfdb8(0x1cd)](_0x9169fa){var _0x3d461a=_0x1cfdb8;const _0x59e13c=await this['_collabSessionService'][_0x3d461a(0x22f)](_0x9169fa),_0x59207e=this[_0x3d461a(0x198)][_0x3d461a(0x1e9)](C,_0x9169fa,_0x59e13c);return _0x59207e[_0x3d461a(0x19f)](),this['_entities'][_0x3d461a(0x22a)](_0x9169fa,_0x59207e),_0x59207e;}};I=Z([f(0x0,_0x5e8fc8),f(0x1,_0x47e04a(_0x12d76d)),f(0x2,_0x47e04a(_0x1aeeb2))],I);var h=(_0x1d348c=>(_0x1d348c[_0x1cfdb8(0x1fe)]=_0x1cfdb8(0x1b2),_0x1d348c[_0x1cfdb8(0x1ee)]=_0x1cfdb8(0x1f7),_0x1d348c[_0x1cfdb8(0x1ec)]=_0x1cfdb8(0x1e6),_0x1d348c[_0x1cfdb8(0x196)]='not-following',_0x1d348c[_0x1cfdb8(0x1f1)]='presenting',_0x1d348c))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x34f499{constructor(_0x986b6,_0x19809d,_0x1e70f5,_0xcb00ee,_0x193bc4){var _0x3b438f=_0x1cfdb8;super(),d(this,_0x3b438f(0x189),new _0x232912('idle')),d(this,_0x3b438f(0x1c0),this[_0x3b438f(0x189)][_0x3b438f(0x1c7)]()),d(this,'_init',!0x1),d(this,_0x3b438f(0x1e8),null),d(this,'_presenter',null),(this['_unitID']=_0x986b6,this[_0x3b438f(0x1e1)]=_0x19809d,this[_0x3b438f(0x1bf)]=_0x1e70f5,this[_0x3b438f(0x1f0)]=_0xcb00ee,this['_commandService']=_0x193bc4);}get['_status'](){var _0x3cf0ff=_0x1cfdb8;return this[_0x3cf0ff(0x189)][_0x3cf0ff(0x199)]();}[_0x1cfdb8(0x205)](){var _0x1935bd=_0x1cfdb8,_0x7d10a9;(_0x7d10a9=this[_0x1935bd(0x1e8)])==null||_0x7d10a9[_0x1935bd(0x205)](),this[_0x1935bd(0x189)]['next']('idle'),this[_0x1935bd(0x189)][_0x1935bd(0x219)]();}[_0x1cfdb8(0x19f)](){var _0x3c2ea5=_0x1cfdb8;this['_init']||(this[_0x3c2ea5(0x1a5)]=!0x0,this['_collabSession'][_0x3c2ea5(0x1fc)]['pipe'](_0x53db6a(this[_0x3c2ea5(0x1ff)]))['subscribe'](_0x49b50d=>{var _0x42f9e1=_0x3c2ea5;switch(_0x49b50d){case _0x4c2fe1[_0x42f9e1(0x1fe)]:this['_handleOffline']();break;case _0x4c2fe1[_0x42f9e1(0x19d)]:this[_0x42f9e1(0x1fb)]();break;}}),this['_collabSession'][_0x3c2ea5(0x234)][_0x3c2ea5(0x1b0)](_0x53db6a(this['dispose$']))[_0x3c2ea5(0x200)](_0x569ba7=>{var _0x3c9176=_0x3c2ea5;const {eventID:_0x10980b}=_0x569ba7;switch(_0x10980b){case _0x20f152['LIVESHARE_NEW_HOST']:this[_0x3c9176(0x20b)](_0x569ba7);break;case _0x20f152[_0x3c9176(0x204)]:this['_handleOperation'](_0x569ba7);break;case _0x20f152[_0x3c9176(0x1a9)]:this['_handleTerminate']();break;case _0x20f152['NEW_CHANGESETS']:this[_0x3c9176(0x1c9)](_0x569ba7);break;}}));}['tryStartPresenting'](){var _0x31d8fa=_0x1cfdb8;this[_0x31d8fa(0x1e1)][_0x31d8fa(0x210)]({'eventID':_0x20f152[_0x31d8fa(0x21d)],'data':{'unitID':this[_0x31d8fa(0x202)],'userID':this[_0x31d8fa(0x1e1)]['getMemberID']()}},this[_0x31d8fa(0x202)]);}['stopPresenting'](){var _0x591157=_0x1cfdb8;this[_0x591157(0x230)]===_0x591157(0x1f5)&&(this[_0x591157(0x189)]['next'](_0x591157(0x1f7)),this[_0x591157(0x1e1)][_0x591157(0x210)]({'eventID':_0x20f152[_0x591157(0x1a9)],'data':{'unitID':this[_0x591157(0x202)]}},this[_0x591157(0x202)]));}[_0x1cfdb8(0x220)](){var _0x529865=_0x1cfdb8;this[_0x529865(0x230)]==='not-following'&&(this[_0x529865(0x189)][_0x529865(0x1aa)](_0x529865(0x1e6)),this[_0x529865(0x22c)]());}[_0x1cfdb8(0x20a)](){var _0x511b34=_0x1cfdb8;this[_0x511b34(0x230)]===_0x511b34(0x1e6)&&this[_0x511b34(0x23c)]();}['_handleNewHost'](_0x9cf68f){var _0x524346=_0x1cfdb8;const {presenter:_0x5d0808}=_0x9cf68f[_0x524346(0x1fd)],_0x42d715=this[_0x524346(0x1e1)]['getMemberID']();this['_presenter']=_0x5d0808,_0x5d0808===_0x42d715?(this['_stopFollowing'](),this[_0x524346(0x20c)]()):this['_status']!==_0x524346(0x207)&&(this['_stopPresenting'](),this[_0x524346(0x22c)]());}[_0x1cfdb8(0x221)](){var _0x175615=_0x1cfdb8;const _0x544c40={'eventID':_0x20f152['LIVESHARE_FETCH_OPERATIONS']};this[_0x175615(0x1e1)][_0x175615(0x210)](_0x544c40,this[_0x175615(0x202)]);}[_0x1cfdb8(0x218)](){var _0x397979=_0x1cfdb8;this[_0x397979(0x21e)]=null,this[_0x397979(0x230)]!==_0x397979(0x1f5)&&this[_0x397979(0x1b7)]();}[_0x1cfdb8(0x1c9)](_0x1eccf4){var _0x2ce401=_0x1cfdb8;if(this[_0x2ce401(0x230)]==='following'&&this['_presenter']===_0x1eccf4[_0x2ce401(0x1fd)][_0x2ce401(0x1f6)]){const _0x34f39b=_0x5d01dc(_0x1eccf4[_0x2ce401(0x1fd)])[_0x2ce401(0x1c1)][_0x2ce401(0x1bb)]()[_0x2ce401(0x1bc)](_0x20ccc4=>_0x20ccc4['id']===_0x10e7cd['id']);if(_0x34f39b){const _0x3e543d=_0x34f39b['params'][_0x2ce401(0x197)],_0x53c143=_0x34f39b[_0x2ce401(0x231)][_0x2ce401(0x1cf)]['id'];setTimeout(()=>{var _0x3b922c=_0x2ce401;this[_0x3b922c(0x214)][_0x3b922c(0x1ce)](_0x24d323['id'],{'unitId':_0x3e543d,'subUnitId':_0x53c143},{'fromCollab':!0x0});});}}}[_0x1cfdb8(0x20c)](){var _0x8b037f=_0x1cfdb8;this[_0x8b037f(0x189)][_0x8b037f(0x1aa)](_0x8b037f(0x1f5));const _0x39e9db=new Map(),_0x5e0b31=this['_commandDisposable']=new _0x4bfb4d();_0x5e0b31[_0x8b037f(0x1f3)](_0x4a5a19(()=>{var _0xdf7013=_0x8b037f;_0x39e9db[_0xdf7013(0x190)](_0x49cd61=>_0x49cd61[_0xdf7013(0x219)]()),_0x39e9db[_0xdf7013(0x1f9)]();})),_0x5e0b31[_0x8b037f(0x1f3)](this[_0x8b037f(0x214)][_0x8b037f(0x1c5)](_0x2b9a6a=>{var _0x9183b1=_0x8b037f,_0xe3702b;if(_0x2b9a6a[_0x9183b1(0x1d0)]!==_0x1a8ce3[_0x9183b1(0x1ef)]||!this[_0x9183b1(0x1f0)]['shouldShareOperation'](_0x2b9a6a['id']))return;const {id:_0x1bfc77}=_0x2b9a6a;let _0x2af0b8;_0x39e9db[_0x9183b1(0x1d9)](_0x1bfc77)?_0x2af0b8=_0x39e9db[_0x9183b1(0x216)](_0x1bfc77):(_0x2af0b8=new _0x396672(),_0x39e9db[_0x9183b1(0x22a)](_0x1bfc77,_0x2af0b8),_0x2af0b8['pipe'](_0x4fcd45((_0xe3702b=this[_0x9183b1(0x1bf)][_0x9183b1(0x1c8)](Pe))!=null?_0xe3702b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa8648c=>{var _0x2f7443=_0x9183b1;this[_0x2f7443(0x1e1)][_0x2f7443(0x210)]({'eventID':_0x20f152[_0x2f7443(0x204)],'data':{'unitID':this['_unitID'],'operations':{[_0xa8648c['id']]:{'id':_0xa8648c['id'],'params':JSON['stringify'](_0xa8648c[_0x2f7443(0x231)])}}}},this[_0x2f7443(0x202)]);})),_0x2af0b8[_0x9183b1(0x1aa)](_0x2b9a6a);})),this[_0x8b037f(0x1f0)][_0x8b037f(0x19b)](this[_0x8b037f(0x202)])[_0x8b037f(0x190)](_0x54d54a=>this[_0x8b037f(0x1e1)][_0x8b037f(0x210)]({'eventID':_0x20f152[_0x8b037f(0x204)],'data':{'unitID':this[_0x8b037f(0x202)],'operations':{[_0x54d54a['id']]:{'id':_0x54d54a['id'],'params':JSON['stringify'](_0x54d54a[_0x8b037f(0x231)])}}}},this[_0x8b037f(0x202)]));}['_stopPresenting'](){var _0x35885c=_0x1cfdb8,_0x3d4b00;this[_0x35885c(0x189)][_0x35885c(0x1aa)](_0x35885c(0x1f7)),(_0x3d4b00=this[_0x35885c(0x1e8)])==null||_0x3d4b00['dispose'](),this[_0x35885c(0x1e8)]=null;}['_startFollowing'](){var _0x4456e2=_0x1cfdb8,_0x3b8155;(_0x3b8155=this['_commandDisposable'])==null||_0x3b8155[_0x4456e2(0x205)](),this[_0x4456e2(0x189)][_0x4456e2(0x1aa)](_0x4456e2(0x1e6));}[_0x1cfdb8(0x1b7)](){var _0x5c5771=_0x1cfdb8,_0x5a6c76;this[_0x5c5771(0x189)]['next'](_0x5c5771(0x1f7)),(_0x5a6c76=this[_0x5c5771(0x1e8)])==null||_0x5a6c76[_0x5c5771(0x205)](),this[_0x5c5771(0x1e8)]=null;}['_stopFollowing'](){var _0x51c916=_0x1cfdb8,_0x12de5f;this[_0x51c916(0x189)][_0x51c916(0x1aa)](_0x51c916(0x207)),(_0x12de5f=this[_0x51c916(0x1e8)])==null||_0x12de5f[_0x51c916(0x205)]();}['_handleOperation'](_0x5b5ecb){var _0x4be783=_0x1cfdb8;if([_0x4be783(0x1f5),_0x4be783(0x207),_0x4be783(0x1b2)][_0x4be783(0x192)](this[_0x4be783(0x230)])||!_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x232)]||_0x5b5ecb[_0x4be783(0x1fd)]['presenter']===this[_0x4be783(0x1e1)][_0x4be783(0x1b6)]())return;this[_0x4be783(0x230)]===_0x4be783(0x1f7)&&this[_0x4be783(0x22c)]();const _0x2e3c75=_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x19e)];Object[_0x4be783(0x238)](_0x2e3c75)['forEach'](_0x5391f8=>{var _0x23eed0=_0x4be783;this[_0x23eed0(0x214)][_0x23eed0(0x1ce)](_0x5391f8['id'],_0x5391f8[_0x23eed0(0x231)]?JSON[_0x23eed0(0x21a)](_0x5391f8[_0x23eed0(0x231)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x44d3b7=_0x1cfdb8,_0x36ebed;this['_status$'][_0x44d3b7(0x1aa)](_0x44d3b7(0x1b2)),(_0x36ebed=this[_0x44d3b7(0x1e8)])==null||_0x36ebed[_0x44d3b7(0x205)]();}[_0x1cfdb8(0x1fb)](){var _0x475b0a=_0x1cfdb8;this[_0x475b0a(0x189)][_0x475b0a(0x1aa)](_0x475b0a(0x1f7)),this[_0x475b0a(0x221)]();}};C=Z([f(0x2,_0x4ab276),f(0x3,_0x47e04a(L)),f(0x4,_0x1b92ec)],C);function Te(){var _0x59090f=_0x1cfdb8;const _0x978a73=_0x5ac572(I),_0x2db5fb=_0x5ac572(_0x5e8fc8),_0x9ed3cf=_0xb18adb(()=>_0x2db5fb['getCurrentTypeOfUnit$'](_0x44e9a0[_0x59090f(0x19c)]),void 0x0,!0x1,[]),[_0x1969fe,_0x2f608b]=_0x21145a(null),[_0x4c8577,_0x2dce7f]=_0x21145a(h[_0x59090f(0x1ee)]),_0x1a1223=_0x25d6c4(null);return _0x396e80(()=>(_0x9ed3cf&&_0x978a73[_0x59090f(0x23d)](_0x9ed3cf[_0x59090f(0x1e2)]())[_0x59090f(0x215)](_0xff1f95=>{var _0x2cd215=_0x59090f;_0x2f608b(_0xff1f95),_0x1a1223[_0x2cd215(0x18c)]=_0xff1f95[_0x2cd215(0x1c0)][_0x2cd215(0x200)](_0x3240bc=>{_0x2dce7f(_0x3240bc);});}),()=>{var _0xe025f9=_0x59090f,_0x4a1122;(_0x4a1122=_0x1a1223[_0xe025f9(0x18c)])==null||_0x4a1122[_0xe025f9(0x1ca)](),_0x1a1223[_0xe025f9(0x18c)]=null;}),[_0x9ed3cf,_0x978a73]),_0x1969fe?_0x2585db(_0x2c46c3,{'align':_0x59090f(0x229),'disabled':_0x4c8577===h[_0x59090f(0x1fe)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2585db($e,{'status':_0x4c8577,'coordinator':_0x1969fe}),'children':_0x2585db(_0x59090f(0x1dd),{'className':_0x4d9db3(_0x59090f(0x226),{'univer-cursor-not-allowed':_0x4c8577===h[_0x59090f(0x1fe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8577!==h[_0x59090f(0x1fe)]}),'type':_0x59090f(0x1dd),'children':_0x2585db(B,{'className':_0x59090f(0x18d)})})}):null;}function $e(_0x5798a1){var _0x55d5a1=_0x1cfdb8;const {status:_0x12b2cd,coordinator:_0x2b3e37}=_0x5798a1;switch(_0x12b2cd){case h[_0x55d5a1(0x1ee)]:return _0x2585db(Fe,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1ec)]:return _0x2585db(He,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x196)]:return _0x2585db(je,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1fe)]:return _0x2585db(Ve,{});case h['PRESENTING']:return _0x2585db(Ue,{'coordinator':_0x2b3e37});default:return null;}}function Fe(_0x237c5a){var _0x3167ee=_0x1cfdb8;const {coordinator:_0x558289}=_0x237c5a;return _0x3c8f57(_0x589951,{'children':[_0x2585db('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3167ee(0x1ae)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x558289[_0x3167ee(0x22b)](),'children':'Start'})]});}function He(_0x405a5d){var _0xc121e8=_0x1cfdb8;const {coordinator:_0x38a75a}=_0x405a5d;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0xc121e8(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc121e8(0x21c)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x38a75a[_0xc121e8(0x20a)](),'children':_0xc121e8(0x1a8)})]});}function je(_0x3714c4){var _0x43d3b6=_0x1cfdb8;const {coordinator:_0x451cdf}=_0x3714c4;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x43d3b6(0x1b9),{'className':_0x43d3b6(0x235),'children':_0x43d3b6(0x1ed)}),_0x2585db(_0xcd60f4,{'variant':_0x43d3b6(0x1ba),'onClick':()=>_0x451cdf[_0x43d3b6(0x220)](),'children':_0x43d3b6(0x193)})]});}function Ue(_0x348aff){var _0x9ba380=_0x1cfdb8;const {coordinator:_0x2dc79c}=_0x348aff;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x9ba380(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x9ba380(0x1af)}),_0x2585db(_0xcd60f4,{'variant':'default','onClick':()=>_0x2dc79c[_0x9ba380(0x194)](),'children':_0x9ba380(0x227)})]});}function Ve(){var _0x22c132=_0x1cfdb8;return _0x2585db(_0x589951,{'children':_0x22c132(0x1da)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4451df,_0x374f12,_0x25045f,_0x4a89e2)=>{var _0x502f53=_0x1cfdb8;for(var _0x43067b=_0x4a89e2>0x1?void 0x0:_0x4a89e2?Me(_0x374f12,_0x25045f):_0x374f12,_0x55d42c=_0x4451df[_0x502f53(0x21f)]-0x1,_0x508aa7;_0x55d42c>=0x0;_0x55d42c--)(_0x508aa7=_0x4451df[_0x55d42c])&&(_0x43067b=_0x508aa7(_0x43067b)||_0x43067b);return _0x43067b;},$=(_0x39e8fa,_0x3ccddf)=>(_0x2c454f,_0x3233c3)=>_0x3ccddf(_0x2c454f,_0x3233c3,_0x39e8fa);let b=class extends _0x978db0{constructor(_0x570a1d,_0x416b11){var _0x1d2f9b=_0x1cfdb8;super(),this[_0x1d2f9b(0x198)]=_0x570a1d,this[_0x1d2f9b(0x195)]=_0x416b11,this[_0x1d2f9b(0x1c4)]();}[_0x1cfdb8(0x1c4)](){var _0x1122f5=_0x1cfdb8;this['disposeWithMe'](this['_uiPartsService'][_0x1122f5(0x21b)](_0x2b5b91[_0x1122f5(0x1be)],()=>_0xecd535(Te,this[_0x1122f5(0x198)])));}};b=ke([$(0x0,_0x47e04a(_0x12d76d)),$(0x1,_0x53c21b)],b);var Ge=Object['defineProperty'],We=Object[_0x1cfdb8(0x22d)],Ye=(_0x58b4f5,_0x266794,_0x3dd639)=>_0x266794 in _0x58b4f5?Ge(_0x58b4f5,_0x266794,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd639}):_0x58b4f5[_0x266794]=_0x3dd639,Be=(_0x3d2be0,_0x3f4038,_0x106740,_0x5853d8)=>{for(var _0x41ef16=_0x5853d8>0x1?void 0x0:_0x5853d8?We(_0x3f4038,_0x106740):_0x3f4038,_0x5b4e47=_0x3d2be0['length']-0x1,_0x4da8f4;_0x5b4e47>=0x0;_0x5b4e47--)(_0x4da8f4=_0x3d2be0[_0x5b4e47])&&(_0x41ef16=_0x4da8f4(_0x41ef16)||_0x41ef16);return _0x41ef16;},F=(_0x23c66e,_0x33b9cb)=>(_0x4f6307,_0x501b75)=>_0x33b9cb(_0x4f6307,_0x501b75,_0x23c66e),J=(_0x1501a1,_0x4a766a,_0xf697e0)=>Ye(_0x1501a1,typeof _0x4a766a!=_0x1cfdb8(0x1de)?_0x4a766a+'':_0x4a766a,_0xf697e0);const Ze=_0x1cfdb8(0x1cc);let O=class extends _0x2d95be{constructor(_0x54127e=T,_0x393189,_0x5105fe){var _0x158f4b=_0x1cfdb8;super(),this[_0x158f4b(0x1d7)]=_0x54127e,this['_injector']=_0x393189,this['_configService']=_0x5105fe;const {..._0x35dc4c}=_0x4d7b5c({},T,this[_0x158f4b(0x1d7)]);this[_0x158f4b(0x1bf)][_0x158f4b(0x22e)](Oe,_0x35dc4c);}[_0x1cfdb8(0x239)](){var _0x395652=_0x1cfdb8;_0x3c4690(this[_0x395652(0x198)],_0x5c9bf8([[L],[I],[m],[b]],this['_config'][_0x395652(0x1d3)])),_0x223193(this[_0x395652(0x198)],[[m]]);}[_0x1cfdb8(0x1a6)](){var _0x5f4fcb=_0x1cfdb8;_0x223193(this[_0x5f4fcb(0x198)],[[b]]);}};J(O,_0x1cfdb8(0x1d0),_0x44e9a0[_0x1cfdb8(0x1a4)]),J(O,_0x1cfdb8(0x1dc),Ze),O=Be([_0x20f516(_0x5df2c9),F(0x1,_0x47e04a(_0x12d76d)),F(0x2,_0x4ab276)],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 _0x139d32=_0x3252;(function(_0x4f02af,_0x4bc148){var _0x2f607d=_0x3252,_0x1a30a0=_0x4f02af();while(!![]){try{var _0x2aa366=parseInt(_0x2f607d(0x18e))/0x1*(parseInt(_0x2f607d(0x169))/0x2)+parseInt(_0x2f607d(0x17a))/0x3*(-parseInt(_0x2f607d(0x204))/0x4)+parseInt(_0x2f607d(0x1be))/0x5*(parseInt(_0x2f607d(0x1f2))/0x6)+-parseInt(_0x2f607d(0x1fc))/0x7*(parseInt(_0x2f607d(0x1af))/0x8)+parseInt(_0x2f607d(0x1d8))/0x9+parseInt(_0x2f607d(0x1ea))/0xa*(-parseInt(_0x2f607d(0x190))/0xb)+parseInt(_0x2f607d(0x19a))/0xc*(-parseInt(_0x2f607d(0x1bf))/0xd);if(_0x2aa366===_0x4bc148)break;else _0x1a30a0['push'](_0x1a30a0['shift']());}catch(_0x2907db){_0x1a30a0['push'](_0x1a30a0['shift']());}}}(_0x17dd,0xef16d));var q=Object[_0x139d32(0x1a0)],z=(_0x2db7c1,_0x440687,_0x23088e)=>_0x440687 in _0x2db7c1?q(_0x2db7c1,_0x440687,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23088e}):_0x2db7c1[_0x440687]=_0x23088e,d=(_0x5930cb,_0x54311c,_0x180713)=>z(_0x5930cb,typeof _0x54311c!=_0x139d32(0x16a)?_0x54311c+'':_0x54311c,_0x180713);import{CollaborationSessionService as _0x52bc4,SessionStatus as _0x3ebc6d,UniverCollaborationClientPlugin as _0x13f272}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4ed487,toDisposable as _0x28719d,Inject as _0x2b0f26,IUniverInstanceService as _0x27d06d,Injector as _0x533151,IConfigService as _0x3d0a01,ICommandService as _0x207523,RxDisposable as _0x256cb8,UniverInstanceType as _0x10a037,DisposableCollection as _0x2c4c8c,CommandType as _0x308953,DependentOn as _0x32ccb9,Plugin as _0x1776e2,merge as _0x2e2afb,registerDependencies as _0x2364db,mergeOverrideWithDependencies as _0x10625a,touchDependencies as _0x2e8a9b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x23ea32,InsertSheetMutation as _0x5ec0f5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2f8262,SetScrollOperation as _0x3a7c06}from'@univerjs/sheets-ui';import{useDependency as _0xc4c76f,useObservable as _0x270e1c,IUIPartsService as _0x41b052,BuiltInUIPart as _0xd15279,connectInjector as _0x3083ca}from'@univerjs/ui';import{jsx as _0x18fc45,jsxs as _0x24ed7d,Fragment as _0x472b04}from'react/jsx-runtime';import{Dropdown as _0x2bd55a,clsx as _0x326601,Button as _0x580dca}from'@univerjs/design';import{forwardRef as _0x43c1cf,useRef as _0x5d430b,createElement as _0x585a15,useState as _0x1d41ae,useEffect as _0x56b177}from'react';import{CollaborationEvent as _0x16ac95,parseProtocolChangeset as _0x2f4aa3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x32a5a3,Subject as _0xebd73b}from'rxjs';import{takeUntil as _0x228971,throttleTime as _0x33a304}from'rxjs/operators';const Oe=_0x139d32(0x18a),T={};class L extends _0x4ed487{constructor(){var _0x164caa=_0x139d32;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x164caa(0x15c),new Set());}[_0x139d32(0x1e1)](_0x51038c){var _0x2eddee=_0x139d32;return this[_0x2eddee(0x1ff)]['add'](_0x51038c),_0x28719d(()=>this[_0x2eddee(0x1ff)][_0x2eddee(0x1bc)](_0x51038c));}[_0x139d32(0x18f)](_0x4e7d67){var _0x11b21b=_0x139d32;return this['_reporters'][_0x11b21b(0x1ae)](_0x4e7d67),_0x28719d(()=>this['_reporters'][_0x11b21b(0x1bc)](_0x4e7d67));}[_0x139d32(0x1e8)](_0x295101){var _0x313176=_0x139d32;return this[_0x313176(0x1ff)]['has'](_0x295101);}[_0x139d32(0x1c1)](_0x50a64d){var _0xa741f5=_0x139d32;return Array[_0xa741f5(0x1ac)](this[_0xa741f5(0x15c)])['map'](_0x16e6b2=>_0x16e6b2(_0x50a64d));}}var Ee=Object[_0x139d32(0x1c0)],we=(_0x2788d6,_0x2a9d16,_0x5af64e,_0x5acb79)=>{for(var _0x190933=_0x5acb79>0x1?void 0x0:_0x5acb79?Ee(_0x2a9d16,_0x5af64e):_0x2a9d16,_0x4137ff=_0x2788d6['length']-0x1,_0x2ba002;_0x4137ff>=0x0;_0x4137ff--)(_0x2ba002=_0x2788d6[_0x4137ff])&&(_0x190933=_0x2ba002(_0x190933)||_0x190933);return _0x190933;},Ne=(_0x41fdc0,_0x4fd8b5)=>(_0x38eb11,_0x50838a)=>_0x4fd8b5(_0x38eb11,_0x50838a,_0x41fdc0);let m=class extends _0x4ed487{constructor(_0x3bbe1f){var _0x38b5bc=_0x139d32;super(),this[_0x38b5bc(0x1d4)]=_0x3bbe1f,this[_0x38b5bc(0x1a8)]();}['_init'](){var _0x980f43=_0x139d32;[_0x2f8262['id'],_0x3a7c06['id'],_0x23ea32['id']][_0x980f43(0x1e5)](_0x2d3c47=>{var _0xb11e4b=_0x980f43;this[_0xb11e4b(0x188)](this[_0xb11e4b(0x1d4)][_0xb11e4b(0x1e1)](_0x2d3c47));});}};m=we([Ne(0x0,_0x2b0f26(L))],m);var c=function(){var _0x3ab841=_0x139d32;return c=Object[_0x3ab841(0x171)]||function(_0x4304d5){var _0xc5f79c=_0x3ab841;for(var _0x4bcaee,_0x130ade=0x1,_0x5c9275=arguments['length'];_0x130ade<_0x5c9275;_0x130ade++){_0x4bcaee=arguments[_0x130ade];for(var _0x113421 in _0x4bcaee)Object[_0xc5f79c(0x1f0)][_0xc5f79c(0x1eb)][_0xc5f79c(0x1e4)](_0x4bcaee,_0x113421)&&(_0x4304d5[_0x113421]=_0x4bcaee[_0x113421]);}return _0x4304d5;},c[_0x3ab841(0x1cd)](this,arguments);},Ce=function(_0x515fe4,_0x261105){var _0x5d6544=_0x139d32,_0x3682da={};for(var _0x1d8fb0 in _0x515fe4)Object['prototype'][_0x5d6544(0x1eb)][_0x5d6544(0x1e4)](_0x515fe4,_0x1d8fb0)&&_0x261105[_0x5d6544(0x154)](_0x1d8fb0)<0x0&&(_0x3682da[_0x1d8fb0]=_0x515fe4[_0x1d8fb0]);if(_0x515fe4!=null&&typeof Object[_0x5d6544(0x1a2)]==_0x5d6544(0x161)){for(var _0x5aea57=0x0,_0x1d8fb0=Object[_0x5d6544(0x1a2)](_0x515fe4);_0x5aea57<_0x1d8fb0[_0x5d6544(0x1f3)];_0x5aea57++)_0x261105['indexOf'](_0x1d8fb0[_0x5aea57])<0x0&&Object[_0x5d6544(0x1f0)]['propertyIsEnumerable'][_0x5d6544(0x1e4)](_0x515fe4,_0x1d8fb0[_0x5aea57])&&(_0x3682da[_0x1d8fb0[_0x5aea57]]=_0x515fe4[_0x1d8fb0[_0x5aea57]]);}return _0x3682da;},W=_0x43c1cf(function(_0x24101a,_0x43706e){var _0x1c4901=_0x139d32,_0x2317b9=_0x24101a[_0x1c4901(0x1bb)],_0x355628=_0x24101a['id'],_0x2f0c67=_0x24101a[_0x1c4901(0x1f9)],_0x312c42=_0x24101a['extend'],_0x2b202a=Ce(_0x24101a,[_0x1c4901(0x1bb),'id',_0x1c4901(0x1f9),'extend']),_0x30ceb9=_0x1c4901(0x1d9)[_0x1c4901(0x191)](_0x355628,'\x20')[_0x1c4901(0x191)](_0x2f0c67||'')['trim'](),_0x584251=_0x5d430b('_'['concat'](Le()));return Y(_0x2317b9,''[_0x1c4901(0x191)](_0x355628),{'defIds':_0x2317b9[_0x1c4901(0x159)],'idSuffix':_0x584251[_0x1c4901(0x193)]},c({'ref':_0x43706e,'className':_0x30ceb9},_0x2b202a),_0x312c42);});function Y(_0x53bee9,_0x3c7622,_0x33417e,_0x7d169f,_0x545882){var _0x155993=_0x139d32;return _0x585a15(_0x53bee9[_0x155993(0x18d)],c(c({'key':_0x3c7622},De(_0x53bee9,_0x33417e,_0x545882)),_0x7d169f),(xe(_0x53bee9,_0x33417e)[_0x155993(0x1b1)]||[])['map'](function(_0x16ebd4,_0x320b0e){var _0x50bd50=_0x155993;return Y(_0x16ebd4,''[_0x50bd50(0x191)](_0x3c7622,'-')[_0x50bd50(0x191)](_0x53bee9[_0x50bd50(0x18d)],'-')['concat'](_0x320b0e),_0x33417e,void 0x0,_0x545882);}));}function De(_0xd9af45,_0x22ef3b,_0x24fe61){var _0x2843fc=_0x139d32,_0xee9ea0=c({},_0xd9af45[_0x2843fc(0x194)]);_0x24fe61!=null&&_0x24fe61[_0x2843fc(0x19d)]&&_0xee9ea0[_0x2843fc(0x184)]===_0x2843fc(0x19d)&&(_0xee9ea0[_0x2843fc(0x184)]=_0x24fe61[_0x2843fc(0x19d)]),_0xd9af45[_0x2843fc(0x18d)]===_0x2843fc(0x1e0)&&_0xee9ea0['id']&&(_0xee9ea0['id']=_0xee9ea0['id']+_0x22ef3b[_0x2843fc(0x1df)]),Object['entries'](_0xee9ea0)[_0x2843fc(0x1e5)](function(_0x2b1b41){var _0x50fbe8=_0x2843fc,_0x2b0cd0=_0x2b1b41[0x0],_0x1c1f93=_0x2b1b41[0x1];_0x2b0cd0===_0x50fbe8(0x1e0)&&typeof _0x1c1f93==_0x50fbe8(0x1fb)&&(_0xee9ea0[_0x2b0cd0]=_0x1c1f93[_0x50fbe8(0x155)](/url\(#(.*)\)/,'url(#$1'[_0x50fbe8(0x191)](_0x22ef3b['idSuffix'],')')));});var _0x4f8cdb=_0x22ef3b[_0x2843fc(0x159)];return!_0x4f8cdb||_0x4f8cdb[_0x2843fc(0x1f3)]===0x0||(_0xd9af45[_0x2843fc(0x18d)]==='use'&&_0xee9ea0['xlink:href']&&(_0xee9ea0[_0x2843fc(0x153)]=_0xee9ea0[_0x2843fc(0x153)]+_0x22ef3b[_0x2843fc(0x1df)]),Object[_0x2843fc(0x1dc)](_0xee9ea0)[_0x2843fc(0x1e5)](function(_0x9a9fc6){var _0x2d6285=_0x2843fc,_0x15f4db=_0x9a9fc6[0x0],_0x1c18e6=_0x9a9fc6[0x1];typeof _0x1c18e6==_0x2d6285(0x1fb)&&(_0xee9ea0[_0x15f4db]=_0x1c18e6['replace'](/url\(#(.*)\)/,'url(#$1'[_0x2d6285(0x191)](_0x22ef3b[_0x2d6285(0x1df)],')')));})),_0xee9ea0;}function xe(_0x4c1c07,_0x52eee2){var _0x43f3de=_0x139d32,_0x357d46,_0x36f696=_0x52eee2[_0x43f3de(0x159)];return!_0x36f696||_0x36f696[_0x43f3de(0x1f3)]===0x0?_0x4c1c07:_0x4c1c07[_0x43f3de(0x18d)]===_0x43f3de(0x1ce)&&(!((_0x357d46=_0x4c1c07[_0x43f3de(0x1b1)])===null||_0x357d46===void 0x0)&&_0x357d46[_0x43f3de(0x1f3)])?c(c({},_0x4c1c07),{'children':_0x4c1c07[_0x43f3de(0x1b1)][_0x43f3de(0x18c)](function(_0x1d7064){var _0x4d15f8=_0x43f3de;return typeof _0x1d7064['attrs']['id']==_0x4d15f8(0x1fb)&&_0x36f696&&_0x36f696['includes'](_0x1d7064[_0x4d15f8(0x194)]['id'])?c(c({},_0x1d7064),{'attrs':c(c({},_0x1d7064[_0x4d15f8(0x194)]),{'id':_0x1d7064[_0x4d15f8(0x194)]['id']+_0x52eee2[_0x4d15f8(0x1df)]})}):_0x1d7064;})}):_0x4c1c07;}function Le(){var _0x588484=_0x139d32;return Math[_0x588484(0x1de)]()[_0x588484(0x17b)](0x24)[_0x588484(0x1ba)](0x2,0x8);}W[_0x139d32(0x192)]='UniverIcon';var ye={'tag':_0x139d32(0x186),'attrs':{'xmlns':_0x139d32(0x1c8),'fill':_0x139d32(0x16d),'viewBox':_0x139d32(0x19b),'width':'1em','height':_0x139d32(0x1a9)},'children':[{'tag':_0x139d32(0x1ab),'attrs':{'fill':_0x139d32(0x202),'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':_0x139d32(0x202),'d':_0x139d32(0x16b),'fillRule':_0x139d32(0x1ca),'clipRule':'evenodd'}}]},B=_0x43c1cf(function(_0xa1af99,_0x18bfd6){var _0x311e3b=_0x139d32;return _0x585a15(W,Object[_0x311e3b(0x171)]({},_0xa1af99,{'id':'live-share-icon','ref':_0x18bfd6,'icon':ye}));});B[_0x139d32(0x192)]='LiveShareIcon';var Re=Object[_0x139d32(0x1c0)],Z=(_0x12ef8d,_0x29b4a5,_0x19921a,_0x502e8a)=>{for(var _0x59adf4=_0x502e8a>0x1?void 0x0:_0x502e8a?Re(_0x29b4a5,_0x19921a):_0x29b4a5,_0x4eecaf=_0x12ef8d['length']-0x1,_0x5b6644;_0x4eecaf>=0x0;_0x4eecaf--)(_0x5b6644=_0x12ef8d[_0x4eecaf])&&(_0x59adf4=_0x5b6644(_0x59adf4)||_0x59adf4);return _0x59adf4;},f=(_0x5478f9,_0xb6c0b)=>(_0x1c72dc,_0x147f74)=>_0xb6c0b(_0x1c72dc,_0x147f74,_0x5478f9);let I=class extends _0x256cb8{constructor(_0x4fb801,_0x2598e3,_0x33edbb){var _0x2755d5=_0x139d32;super(),d(this,'_entities',new Map()),(this[_0x2755d5(0x15b)]=_0x4fb801,this[_0x2755d5(0x1c9)]=_0x2598e3,this['_collabSessionService']=_0x33edbb,this['_init']());}async[_0x139d32(0x1fd)](_0x5321f7){var _0x4d4525=_0x139d32;return this[_0x4d4525(0x1ed)]['has'](_0x5321f7)||await this[_0x4d4525(0x1a6)](_0x5321f7),this[_0x4d4525(0x1ed)][_0x4d4525(0x163)](_0x5321f7);}['_init'](){var _0x2fed6a=_0x139d32;this['_univerInstanceService'][_0x2fed6a(0x185)](_0x10a037[_0x2fed6a(0x1c4)])[_0x2fed6a(0x1ef)](_0x228971(this['dispose$']))[_0x2fed6a(0x15e)](async _0x2c9a02=>{var _0x116021=_0x2fed6a;const _0x394431=_0x2c9a02[_0x116021(0x1e9)]();this[_0x116021(0x1ed)][_0x116021(0x16e)](_0x394431)||this[_0x116021(0x1a6)](_0x394431);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x10a037[_0x2fed6a(0x1c4)])[_0x2fed6a(0x1ef)](_0x228971(this['dispose$']))['subscribe'](_0x25fb36=>{var _0x3f1b5c=_0x2fed6a;const _0x43d1c0=_0x25fb36[_0x3f1b5c(0x1e9)](),_0x544683=this[_0x3f1b5c(0x1ed)][_0x3f1b5c(0x163)](_0x43d1c0);_0x544683==null||_0x544683[_0x3f1b5c(0x162)]();});}async[_0x139d32(0x1a6)](_0x11e6a9){var _0xf66a94=_0x139d32;const _0xa612a7=await this[_0xf66a94(0x1e2)][_0xf66a94(0x1f5)](_0x11e6a9),_0x43bfe6=this[_0xf66a94(0x1c9)][_0xf66a94(0x1e6)](C,_0x11e6a9,_0xa612a7);return _0x43bfe6[_0xf66a94(0x1b7)](),this[_0xf66a94(0x1ed)][_0xf66a94(0x1cc)](_0x11e6a9,_0x43bfe6),_0x43bfe6;}};I=Z([f(0x0,_0x27d06d),f(0x1,_0x2b0f26(_0x533151)),f(0x2,_0x2b0f26(_0x52bc4))],I);var h=(_0x1388b0=>(_0x1388b0['OFFLINE']=_0x139d32(0x156),_0x1388b0[_0x139d32(0x1c2)]='idle',_0x1388b0[_0x139d32(0x195)]='following',_0x1388b0['NOT_FOLLOWING']=_0x139d32(0x1b6),_0x1388b0[_0x139d32(0x1db)]=_0x139d32(0x1cf),_0x1388b0))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x256cb8{constructor(_0x4fa882,_0x53adae,_0x568a5d,_0x3963dd,_0x4de38c){var _0x5879c6=_0x139d32;super(),d(this,_0x5879c6(0x16f),new _0x32a5a3('idle')),d(this,_0x5879c6(0x16c),this[_0x5879c6(0x16f)][_0x5879c6(0x180)]()),d(this,'_init',!0x1),d(this,_0x5879c6(0x200),null),d(this,_0x5879c6(0x19e),null),(this['_unitID']=_0x4fa882,this[_0x5879c6(0x15a)]=_0x53adae,this['_configService']=_0x568a5d,this[_0x5879c6(0x1d4)]=_0x3963dd,this['_commandService']=_0x4de38c);}get['_status'](){var _0x3ba242=_0x139d32;return this[_0x3ba242(0x16f)]['getValue']();}[_0x139d32(0x162)](){var _0x4229ac=_0x139d32,_0x47a280;(_0x47a280=this[_0x4229ac(0x200)])==null||_0x47a280[_0x4229ac(0x162)](),this['_status$']['next'](_0x4229ac(0x181)),this[_0x4229ac(0x16f)][_0x4229ac(0x166)]();}[_0x139d32(0x1b7)](){var _0x460805=_0x139d32;this[_0x460805(0x1a8)]||(this[_0x460805(0x1a8)]=!0x0,this[_0x460805(0x15a)][_0x460805(0x1f4)][_0x460805(0x1ef)](_0x228971(this['dispose$']))['subscribe'](_0x5df24=>{var _0xda8e5a=_0x460805;switch(_0x5df24){case _0x3ebc6d['OFFLINE']:this[_0xda8e5a(0x176)]();break;case _0x3ebc6d['ONLINE']:this[_0xda8e5a(0x17d)]();break;}}),this[_0x460805(0x15a)][_0x460805(0x1fa)][_0x460805(0x1ef)](_0x228971(this[_0x460805(0x196)]))[_0x460805(0x15e)](_0x5ec5c7=>{var _0x2c70b5=_0x460805;const {eventID:_0x263ec7}=_0x5ec5c7;switch(_0x263ec7){case _0x16ac95[_0x2c70b5(0x1da)]:this[_0x2c70b5(0x203)](_0x5ec5c7);break;case _0x16ac95[_0x2c70b5(0x160)]:this[_0x2c70b5(0x1d7)](_0x5ec5c7);break;case _0x16ac95[_0x2c70b5(0x1bd)]:this[_0x2c70b5(0x17c)]();break;case _0x16ac95[_0x2c70b5(0x1e7)]:this[_0x2c70b5(0x1b3)](_0x5ec5c7);break;}}));}[_0x139d32(0x187)](){var _0x55ad3=_0x139d32;this['_collabSession'][_0x55ad3(0x152)]({'eventID':_0x16ac95[_0x55ad3(0x1c5)],'data':{'unitID':this[_0x55ad3(0x1ad)],'userID':this[_0x55ad3(0x15a)][_0x55ad3(0x1f6)]()}},this[_0x55ad3(0x1ad)]);}[_0x139d32(0x19f)](){var _0x3a3f79=_0x139d32;this[_0x3a3f79(0x1b0)]===_0x3a3f79(0x1cf)&&(this[_0x3a3f79(0x16f)]['next'](_0x3a3f79(0x181)),this[_0x3a3f79(0x15a)]['send']({'eventID':_0x16ac95[_0x3a3f79(0x1bd)],'data':{'unitID':this[_0x3a3f79(0x1ad)]}},this[_0x3a3f79(0x1ad)]));}[_0x139d32(0x175)](){var _0x44c530=_0x139d32;this['_status']===_0x44c530(0x1b6)&&(this['_status$'][_0x44c530(0x1b2)]('following'),this[_0x44c530(0x198)]());}[_0x139d32(0x178)](){var _0x46006f=_0x139d32;this[_0x46006f(0x1b0)]===_0x46006f(0x1a4)&&this['_stopFollowing']();}['_handleNewHost'](_0x454cc3){var _0x3f9870=_0x139d32;const {presenter:_0x213864}=_0x454cc3['data'],_0x548c2f=this[_0x3f9870(0x15a)][_0x3f9870(0x1f6)]();this[_0x3f9870(0x19e)]=_0x213864,_0x213864===_0x548c2f?(this[_0x3f9870(0x170)](),this['_startPresenting']()):this[_0x3f9870(0x1b0)]!==_0x3f9870(0x1b6)&&(this[_0x3f9870(0x172)](),this[_0x3f9870(0x198)]());}[_0x139d32(0x1ee)](){var _0x5d003f=_0x139d32;const _0x2f8f38={'eventID':_0x16ac95['LIVESHARE_FETCH_OPERATIONS']};this[_0x5d003f(0x15a)][_0x5d003f(0x152)](_0x2f8f38,this[_0x5d003f(0x1ad)]);}[_0x139d32(0x17c)](){var _0x19c4ef=_0x139d32;this[_0x19c4ef(0x19e)]=null,this[_0x19c4ef(0x1b0)]!==_0x19c4ef(0x1cf)&&this[_0x19c4ef(0x1b4)]();}[_0x139d32(0x1b3)](_0x408095){var _0x3032b2=_0x139d32;if(this[_0x3032b2(0x1b0)]==='following'&&this[_0x3032b2(0x19e)]===_0x408095[_0x3032b2(0x168)][_0x3032b2(0x18b)]){const _0x35bf92=_0x2f4aa3(_0x408095[_0x3032b2(0x168)])[_0x3032b2(0x1fe)]['reverse']()[_0x3032b2(0x174)](_0x4e5a01=>_0x4e5a01['id']===_0x5ec0f5['id']);if(_0x35bf92){const _0x1a9299=_0x35bf92[_0x3032b2(0x1f8)][_0x3032b2(0x1d6)],_0x247327=_0x35bf92[_0x3032b2(0x1f8)]['sheet']['id'];setTimeout(()=>{var _0x23b01b=_0x3032b2;this[_0x23b01b(0x1a3)][_0x23b01b(0x1d3)](_0x23ea32['id'],{'unitId':_0x1a9299,'subUnitId':_0x247327},{'fromCollab':!0x0});});}}}[_0x139d32(0x201)](){var _0xb6fe09=_0x139d32;this[_0xb6fe09(0x16f)]['next'](_0xb6fe09(0x1cf));const _0x176877=new Map(),_0x32f87c=this[_0xb6fe09(0x200)]=new _0x2c4c8c();_0x32f87c[_0xb6fe09(0x1ae)](_0x28719d(()=>{var _0x9485c8=_0xb6fe09;_0x176877['forEach'](_0x105bc8=>_0x105bc8[_0x9485c8(0x166)]()),_0x176877[_0x9485c8(0x1dd)]();})),_0x32f87c[_0xb6fe09(0x1ae)](this['_commandService'][_0xb6fe09(0x1a5)](_0x411126=>{var _0x3765b7=_0xb6fe09,_0x3225ea;if(_0x411126[_0x3765b7(0x164)]!==_0x308953[_0x3765b7(0x1aa)]||!this[_0x3765b7(0x1d4)][_0x3765b7(0x1e8)](_0x411126['id']))return;const {id:_0x4c550e}=_0x411126;let _0x19f04b;_0x176877['has'](_0x4c550e)?_0x19f04b=_0x176877[_0x3765b7(0x163)](_0x4c550e):(_0x19f04b=new _0xebd73b(),_0x176877['set'](_0x4c550e,_0x19f04b),_0x19f04b['pipe'](_0x33a304((_0x3225ea=this['_configService'][_0x3765b7(0x199)](Pe))!=null?_0x3225ea:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4d0b10=>{var _0x18a478=_0x3765b7;this[_0x18a478(0x15a)][_0x18a478(0x152)]({'eventID':_0x16ac95[_0x18a478(0x160)],'data':{'unitID':this[_0x18a478(0x1ad)],'operations':{[_0x4d0b10['id']]:{'id':_0x4d0b10['id'],'params':JSON[_0x18a478(0x1c7)](_0x4d0b10[_0x18a478(0x1f8)])}}}},this['_unitID']);})),_0x19f04b[_0x3765b7(0x1b2)](_0x411126);})),this['_liveShareService'][_0xb6fe09(0x1c1)](this['_unitID'])[_0xb6fe09(0x1e5)](_0xae2644=>this['_collabSession'][_0xb6fe09(0x152)]({'eventID':_0x16ac95[_0xb6fe09(0x160)],'data':{'unitID':this[_0xb6fe09(0x1ad)],'operations':{[_0xae2644['id']]:{'id':_0xae2644['id'],'params':JSON[_0xb6fe09(0x1c7)](_0xae2644[_0xb6fe09(0x1f8)])}}}},this[_0xb6fe09(0x1ad)]));}['_stopPresenting'](){var _0x5b1879=_0x139d32,_0x297485;this['_status$']['next'](_0x5b1879(0x181)),(_0x297485=this[_0x5b1879(0x200)])==null||_0x297485[_0x5b1879(0x162)](),this['_commandDisposable']=null;}[_0x139d32(0x198)](){var _0x4882f3=_0x139d32,_0x34f6f4;(_0x34f6f4=this[_0x4882f3(0x200)])==null||_0x34f6f4[_0x4882f3(0x162)](),this['_status$'][_0x4882f3(0x1b2)](_0x4882f3(0x1a4));}[_0x139d32(0x1b4)](){var _0x3a5378=_0x139d32,_0x1bf61d;this[_0x3a5378(0x16f)][_0x3a5378(0x1b2)]('idle'),(_0x1bf61d=this[_0x3a5378(0x200)])==null||_0x1bf61d[_0x3a5378(0x162)](),this['_commandDisposable']=null;}[_0x139d32(0x170)](){var _0x129d6f=_0x139d32,_0x1338a5;this[_0x129d6f(0x16f)][_0x129d6f(0x1b2)](_0x129d6f(0x1b6)),(_0x1338a5=this['_commandDisposable'])==null||_0x1338a5[_0x129d6f(0x162)]();}[_0x139d32(0x1d7)](_0x1f472e){var _0x256db0=_0x139d32;if([_0x256db0(0x1cf),_0x256db0(0x1b6),_0x256db0(0x156)]['includes'](this[_0x256db0(0x1b0)])||!_0x1f472e[_0x256db0(0x168)][_0x256db0(0x1d5)]||_0x1f472e[_0x256db0(0x168)]['presenter']===this[_0x256db0(0x15a)][_0x256db0(0x1f6)]())return;this[_0x256db0(0x1b0)]===_0x256db0(0x181)&&this['_startFollowing']();const _0x274766=_0x1f472e[_0x256db0(0x168)][_0x256db0(0x189)];Object[_0x256db0(0x17e)](_0x274766)[_0x256db0(0x1e5)](_0x2d1b65=>{var _0x30f08a=_0x256db0;this[_0x30f08a(0x1a3)]['executeCommand'](_0x2d1b65['id'],_0x2d1b65[_0x30f08a(0x1f8)]?JSON[_0x30f08a(0x1c6)](_0x2d1b65[_0x30f08a(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x139d32(0x176)](){var _0x427d6d=_0x139d32,_0x9318e4;this[_0x427d6d(0x16f)][_0x427d6d(0x1b2)](_0x427d6d(0x156)),(_0x9318e4=this['_commandDisposable'])==null||_0x9318e4[_0x427d6d(0x162)]();}['_handleOnline'](){var _0x423926=_0x139d32;this[_0x423926(0x16f)][_0x423926(0x1b2)](_0x423926(0x181)),this[_0x423926(0x1ee)]();}};C=Z([f(0x2,_0x3d0a01),f(0x3,_0x2b0f26(L)),f(0x4,_0x207523)],C);function Te(){var _0xf9006c=_0x139d32;const _0x4ea830=_0xc4c76f(I),_0x1f5fad=_0xc4c76f(_0x27d06d),_0xc74852=_0x270e1c(()=>_0x1f5fad[_0xf9006c(0x158)](_0x10a037[_0xf9006c(0x1c4)]),void 0x0,!0x1,[]),[_0x262da6,_0xc54e2]=_0x1d41ae(null),[_0x3aa610,_0x596480]=_0x1d41ae(h[_0xf9006c(0x1c2)]),_0x5dfae6=_0x5d430b(null);return _0x56b177(()=>(_0xc74852&&_0x4ea830[_0xf9006c(0x1fd)](_0xc74852['getUnitId']())[_0xf9006c(0x1f7)](_0x2785ee=>{var _0x443090=_0xf9006c;_0xc54e2(_0x2785ee),_0x5dfae6[_0x443090(0x193)]=_0x2785ee[_0x443090(0x16c)][_0x443090(0x15e)](_0x19473d=>{_0x596480(_0x19473d);});}),()=>{var _0x4e86cd;(_0x4e86cd=_0x5dfae6['current'])==null||_0x4e86cd['unsubscribe'](),_0x5dfae6['current']=null;}),[_0xc74852,_0x4ea830]),_0x262da6?_0x18fc45(_0x2bd55a,{'align':_0xf9006c(0x1cb),'disabled':_0x3aa610===h[_0xf9006c(0x1d1)],'className':_0xf9006c(0x1d2),'overlay':_0x18fc45($e,{'status':_0x3aa610,'coordinator':_0x262da6}),'children':_0x18fc45(_0xf9006c(0x1a7),{'className':_0x326601(_0xf9006c(0x17f),{'univer-cursor-not-allowed':_0x3aa610===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3aa610!==h[_0xf9006c(0x1d1)]}),'type':_0xf9006c(0x1a7),'children':_0x18fc45(B,{'className':_0xf9006c(0x15f)})})}):null;}function $e(_0x1cfadd){var _0x73c6c6=_0x139d32;const {status:_0x1a89e1,coordinator:_0x23e194}=_0x1cfadd;switch(_0x1a89e1){case h[_0x73c6c6(0x1c2)]:return _0x18fc45(Fe,{'coordinator':_0x23e194});case h[_0x73c6c6(0x195)]:return _0x18fc45(He,{'coordinator':_0x23e194});case h['NOT_FOLLOWING']:return _0x18fc45(je,{'coordinator':_0x23e194});case h[_0x73c6c6(0x1d1)]:return _0x18fc45(Ve,{});case h['PRESENTING']:return _0x18fc45(Ue,{'coordinator':_0x23e194});default:return null;}}function Fe(_0xcfc422){var _0x57be75=_0x139d32;const {coordinator:_0x16c932}=_0xcfc422;return _0x24ed7d(_0x472b04,{'children':[_0x18fc45(_0x57be75(0x1b9),{'className':_0x57be75(0x1b5),'children':_0x57be75(0x1a1)}),_0x18fc45(_0x580dca,{'onClick':()=>_0x16c932['tryStartPresenting'](),'children':'Start'})]});}function He(_0xd41dbd){var _0x437747=_0x139d32;const {coordinator:_0x4ee407}=_0xd41dbd;return _0x24ed7d(_0x472b04,{'children':[_0x18fc45(_0x437747(0x1b9),{'className':_0x437747(0x1b5),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x18fc45(_0x580dca,{'onClick':()=>_0x4ee407[_0x437747(0x178)](),'children':_0x437747(0x1f1)})]});}function je(_0x17f363){var _0x1a333f=_0x139d32;const {coordinator:_0x4369cb}=_0x17f363;return _0x24ed7d(_0x472b04,{'children':[_0x18fc45(_0x1a333f(0x1b9),{'className':_0x1a333f(0x1b5),'children':_0x1a333f(0x165)}),_0x18fc45(_0x580dca,{'variant':_0x1a333f(0x205),'onClick':()=>_0x4369cb[_0x1a333f(0x175)](),'children':_0x1a333f(0x167)})]});}function Ue(_0x1c691d){var _0xb9a6cf=_0x139d32;const {coordinator:_0x25cc1f}=_0x1c691d;return _0x24ed7d(_0x472b04,{'children':[_0x18fc45(_0xb9a6cf(0x1b9),{'className':_0xb9a6cf(0x1b5),'children':_0xb9a6cf(0x197)}),_0x18fc45(_0x580dca,{'variant':_0xb9a6cf(0x1c3),'onClick':()=>_0x25cc1f[_0xb9a6cf(0x19f)](),'children':_0xb9a6cf(0x1ec)})]});}function Ve(){var _0x2a6f48=_0x139d32;return _0x18fc45(_0x472b04,{'children':_0x2a6f48(0x177)});}function _0x17dd(){var _0x57cd89=['defIds','_collabSession','_univerInstanceService','_reporters','_config','subscribe','univer-size-4','LIVESHARE_OPERATION','function','dispose','get','type','You\x27re\x20not\x20following\x20the\x20presenter','complete','Start\x20following','data','70vckJji','symbol','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','status$','none','has','_status$','_stopFollowing','assign','_stopPresenting','onRendered','find','startFollowing','_handleOffline','You\x27are\x20offline.','stopFollowing','override','5484921nptEKA','toString','_handleTerminate','_handleOnline','values','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','asObservable','idle','registerComponent','UNIVER_LIVE_SHARE_PLUGIN','fill','getTypeOfUnitAdded$','svg','tryStartPresenting','disposeWithMe','operations','live-share.config','memberID','map','tag','46061qKSoAJ','registerInitialStateReporter','250129BpjAoL','concat','displayName','current','attrs','FOLLOWING','dispose$','You\x27re\x20presenting\x20the\x20document','_startFollowing','getConfig','270960JbFyla','0\x200\x2017\x2017','_uiPartsService','colorChannel1','_presenter','stopPresenting','defineProperty','Present\x20this\x20document','getOwnPropertySymbols','_commandService','following','onCommandExecuted','_startLiveShareCoordinator','button','_init','1em','OPERATION','path','from','_unitID','add','1124216zgknLG','_status','children','next','_handleNewChangeSets','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','init','_configService','div','substring','icon','delete','LIVESHARE_TERMINATE','10rHsgva','208gbEUdT','getOwnPropertyDescriptor','getInitialStates','IDLE','default','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','parse','stringify','http://www.w3.org/2000/svg','_injector','evenodd','end','set','apply','defs','presenting','onStarting','OFFLINE','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','executeCommand','_liveShareService','presenter','unitId','_handleOperation','6955029wHSYFG','univerjs-icon\x20univerjs-icon-','LIVESHARE_NEW_HOST','PRESENTING','entries','clear','random','idSuffix','mask','registerSharedOperation','_collabSessionService','_mountLiveShare','call','forEach','createInstance','NEW_CHANGESETS','shouldShareOperation','getUnitId','10ugUHMo','hasOwnProperty','Stop\x20presenting','_entities','_fetchOperations','pipe','prototype','Stop\x20following','2841738Rsvwkm','length','sessionStatus$','requireSession','getMemberID','then','params','className','event$','string','7JNfvsK','getLiveShareCoordinator','mutations','_sharedOperations','_commandDisposable','_startPresenting','currentColor','_handleNewHost','4inYWTz','text','send','xlink:href','indexOf','replace','offline','setConfig','getCurrentTypeOfUnit$'];_0x17dd=function(){return _0x57cd89;};return _0x17dd();}var Me=Object[_0x139d32(0x1c0)],ke=(_0x364907,_0x159dcb,_0x168665,_0x161d33)=>{var _0x5b71e3=_0x139d32;for(var _0x2f12f7=_0x161d33>0x1?void 0x0:_0x161d33?Me(_0x159dcb,_0x168665):_0x159dcb,_0x23429e=_0x364907[_0x5b71e3(0x1f3)]-0x1,_0x59ec10;_0x23429e>=0x0;_0x23429e--)(_0x59ec10=_0x364907[_0x23429e])&&(_0x2f12f7=_0x59ec10(_0x2f12f7)||_0x2f12f7);return _0x2f12f7;},$=(_0x334a7d,_0x147d16)=>(_0x4733f7,_0xa83705)=>_0x147d16(_0x4733f7,_0xa83705,_0x334a7d);let b=class extends _0x4ed487{constructor(_0x1994de,_0x90c218){var _0x58b70a=_0x139d32;super(),this['_injector']=_0x1994de,this[_0x58b70a(0x19c)]=_0x90c218,this[_0x58b70a(0x1e3)]();}[_0x139d32(0x1e3)](){var _0x4621cf=_0x139d32;this[_0x4621cf(0x188)](this[_0x4621cf(0x19c)][_0x4621cf(0x182)](_0xd15279['HEADER_MENU'],()=>_0x3083ca(Te,this[_0x4621cf(0x1c9)])));}};b=ke([$(0x0,_0x2b0f26(_0x533151)),$(0x1,_0x41b052)],b);var Ge=Object['defineProperty'],We=Object[_0x139d32(0x1c0)],Ye=(_0xc7a7ad,_0x43c019,_0x29ef68)=>_0x43c019 in _0xc7a7ad?Ge(_0xc7a7ad,_0x43c019,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29ef68}):_0xc7a7ad[_0x43c019]=_0x29ef68,Be=(_0xc0cc57,_0x44099e,_0x95c12d,_0x36752d)=>{var _0xf6c57e=_0x139d32;for(var _0x3ae7c1=_0x36752d>0x1?void 0x0:_0x36752d?We(_0x44099e,_0x95c12d):_0x44099e,_0x1bc2ec=_0xc0cc57[_0xf6c57e(0x1f3)]-0x1,_0x156a8d;_0x1bc2ec>=0x0;_0x1bc2ec--)(_0x156a8d=_0xc0cc57[_0x1bc2ec])&&(_0x3ae7c1=_0x156a8d(_0x3ae7c1)||_0x3ae7c1);return _0x3ae7c1;},F=(_0x197415,_0x563cc7)=>(_0x25d158,_0x570b97)=>_0x563cc7(_0x25d158,_0x570b97,_0x197415),J=(_0x3a32a1,_0x3b6b40,_0x5f1939)=>Ye(_0x3a32a1,typeof _0x3b6b40!=_0x139d32(0x16a)?_0x3b6b40+'':_0x3b6b40,_0x5f1939);function _0x3252(_0x28a178,_0x7b453b){var _0x17ddba=_0x17dd();return _0x3252=function(_0x3252b3,_0x349e79){_0x3252b3=_0x3252b3-0x152;var _0x545779=_0x17ddba[_0x3252b3];return _0x545779;},_0x3252(_0x28a178,_0x7b453b);}const Ze=_0x139d32(0x183);let O=class extends _0x1776e2{constructor(_0x28cbde=T,_0x5f2f8b,_0x24626c){var _0x347c75=_0x139d32;super(),this[_0x347c75(0x15d)]=_0x28cbde,this['_injector']=_0x5f2f8b,this[_0x347c75(0x1b8)]=_0x24626c;const {..._0x4ed234}=_0x2e2afb({},T,this['_config']);this[_0x347c75(0x1b8)][_0x347c75(0x157)](Oe,_0x4ed234);}[_0x139d32(0x1d0)](){var _0xdd0ddd=_0x139d32;_0x2364db(this[_0xdd0ddd(0x1c9)],_0x10625a([[L],[I],[m],[b]],this['_config'][_0xdd0ddd(0x179)])),_0x2e8a9b(this[_0xdd0ddd(0x1c9)],[[m]]);}[_0x139d32(0x173)](){var _0x6a1f81=_0x139d32;_0x2e8a9b(this[_0x6a1f81(0x1c9)],[[b]]);}};J(O,_0x139d32(0x164),_0x10a037['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x32ccb9(_0x13f272),F(0x1,_0x2b0f26(_0x533151)),F(0x2,_0x3d0a01)],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 _0x1cfdb8=_0x38aa;(function(_0x2254fe,_0x547e30){var _0x622d75=_0x38aa,_0x5ed9d9=_0x2254fe();while(!![]){try{var _0x4ed5ea=-parseInt(_0x622d75(0x1b8))/0x1+-parseInt(_0x622d75(0x1cb))/0x2*(parseInt(_0x622d75(0x188))/0x3)+parseInt(_0x622d75(0x1eb))/0x4*(parseInt(_0x622d75(0x18b))/0x5)+-parseInt(_0x622d75(0x1d6))/0x6*(-parseInt(_0x622d75(0x211))/0x7)+-parseInt(_0x622d75(0x1ad))/0x8+parseInt(_0x622d75(0x23a))/0x9*(-parseInt(_0x622d75(0x213))/0xa)+parseInt(_0x622d75(0x1ab))/0xb;if(_0x4ed5ea===_0x547e30)break;else _0x5ed9d9['push'](_0x5ed9d9['shift']());}catch(_0x5d0107){_0x5ed9d9['push'](_0x5ed9d9['shift']());}}}(_0x212b,0xd4481));var q=Object[_0x1cfdb8(0x23f)],z=(_0xd16ef2,_0xac2f13,_0x35282d)=>_0xac2f13 in _0xd16ef2?q(_0xd16ef2,_0xac2f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35282d}):_0xd16ef2[_0xac2f13]=_0x35282d,d=(_0x2c04bb,_0x395c32,_0x10d572)=>z(_0x2c04bb,typeof _0x395c32!='symbol'?_0x395c32+'':_0x395c32,_0x10d572);import{CollaborationSessionService as _0x1aeeb2,SessionStatus as _0x4c2fe1,UniverCollaborationClientPlugin as _0x5df2c9}from'@univerjs-pro/collaboration-client';function _0x38aa(_0x4e70b4,_0x13c80e){var _0x212b62=_0x212b();return _0x38aa=function(_0x38aaca,_0x5d5abe){_0x38aaca=_0x38aaca-0x188;var _0x540e9f=_0x212b62[_0x38aaca];return _0x540e9f;},_0x38aa(_0x4e70b4,_0x13c80e);}import{Disposable as _0x978db0,toDisposable as _0x4a5a19,Inject as _0x47e04a,IUniverInstanceService as _0x5e8fc8,Injector as _0x12d76d,IConfigService as _0x4ab276,ICommandService as _0x1b92ec,RxDisposable as _0x34f499,UniverInstanceType as _0x44e9a0,DisposableCollection as _0x4bfb4d,CommandType as _0x1a8ce3,DependentOn as _0x20f516,Plugin as _0x2d95be,merge as _0x4d7b5c,registerDependencies as _0x3c4690,mergeOverrideWithDependencies as _0x5c9bf8,touchDependencies as _0x223193}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x24d323,InsertSheetMutation as _0x10e7cd}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20f706,SetScrollOperation as _0xf4f43e}from'@univerjs/sheets-ui';import{useDependency as _0x5ac572,useObservable as _0xb18adb,IUIPartsService as _0x53c21b,BuiltInUIPart as _0x2b5b91,connectInjector as _0xecd535}from'@univerjs/ui';import{jsx as _0x2585db,jsxs as _0x3c8f57,Fragment as _0x589951}from'react/jsx-runtime';import{Dropdown as _0x2c46c3,clsx as _0x4d9db3,Button as _0xcd60f4}from'@univerjs/design';import{forwardRef as _0x59bfc9,useRef as _0x25d6c4,createElement as _0x45c30f,useState as _0x21145a,useEffect as _0x396e80}from'react';function _0x212b(){var _0x4f0b63=['pluginName','button','symbol','prototype','hasOwnProperty','_collabSession','getUnitId','path','replace','xlink:href','following','_collabSessionService','_commandDisposable','createInstance','none','4tLABLK','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','OPERATION','_liveShareService','PRESENTING','defIds','add','children','presenting','memberID','idle','idSuffix','clear','random','_handleOnline','sessionStatus$','data','OFFLINE','dispose$','subscribe','assign','_unitID','_entities','LIVESHARE_OPERATION','dispose','url(#$1','not-following','tag','colorChannel1','stopFollowing','_handleNewHost','_startPresenting','from','map','_reporters','send','7nckDEy','fill','1589860DNLwNd','_commandService','then','get','getTypeOfUnitAdded$','_handleTerminate','complete','parse','registerComponent','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','_presenter','length','startFollowing','_fetchOperations','svg','http://www.w3.org/2000/svg','LiveShareIcon','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20presenting','string','end','set','tryStartPresenting','_startFollowing','getOwnPropertyDescriptor','setConfig','requireSession','_status','params','presenter','attrs','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','indexOf','getTypeOfUnitDisposed$','values','onStarting','36AbGmYL','0\x200\x2017\x2017','_stopFollowing','getLiveShareCoordinator','extend','defineProperty','1em','2922879GxkwKF','_status$','call','1491340FuOpUJ','current','univer-size-4','UniverIcon','apply','forEach','displayName','includes','Start\x20following','stopPresenting','_uiPartsService','NOT_FOLLOWING','unitId','_injector','getValue','currentColor','getInitialStates','UNIVER_SHEET','ONLINE','operations','init','live-share-icon','registerInitialStateReporter','icon','_sharedOperations','UNIVER_UNKNOWN','_init','onRendered','entries','Stop\x20following','LIVESHARE_TERMINATE','next','43451034ZEDDhj','evenodd','4180944SQwlZt','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','pipe','mask','offline','propertyIsEnumerable','getOwnPropertySymbols','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','getMemberID','_beIdle','1490030ftfqNq','div','text','reverse','find','live-share.config','HEADER_MENU','_configService','status$','mutations','defs','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','_mountLiveShare','onCommandExecuted','_univerInstanceService','asObservable','getConfig','_handleNewChangeSets','unsubscribe','2NSYMkD','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','executeCommand','sheet','type','delete','className','override','univerjs-icon\x20univerjs-icon-','registerSharedOperation','1464168OYzTwh','_config','concat','has','You\x27are\x20offline.','substring'];_0x212b=function(){return _0x4f0b63;};return _0x212b();}import{CollaborationEvent as _0x20f152,parseProtocolChangeset as _0x5d01dc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x232912,Subject as _0x396672}from'rxjs';import{takeUntil as _0x53db6a,throttleTime as _0x4fcd45}from'rxjs/operators';const Oe=_0x1cfdb8(0x1bd),T={};class L extends _0x978db0{constructor(){var _0x263b05=_0x1cfdb8;super(...arguments),d(this,_0x263b05(0x1a3),new Set()),d(this,'_reporters',new Set());}[_0x1cfdb8(0x1d5)](_0x1a5673){var _0x26d507=_0x1cfdb8;return this[_0x26d507(0x1a3)][_0x26d507(0x1f3)](_0x1a5673),_0x4a5a19(()=>this['_sharedOperations'][_0x26d507(0x1d1)](_0x1a5673));}[_0x1cfdb8(0x1a1)](_0x222b63){var _0x272a54=_0x1cfdb8;return this[_0x272a54(0x20f)][_0x272a54(0x1f3)](_0x222b63),_0x4a5a19(()=>this[_0x272a54(0x20f)]['delete'](_0x222b63));}['shouldShareOperation'](_0x3dae90){var _0x1b2f10=_0x1cfdb8;return this[_0x1b2f10(0x1a3)][_0x1b2f10(0x1d9)](_0x3dae90);}['getInitialStates'](_0x9af903){var _0x3af8af=_0x1cfdb8;return Array[_0x3af8af(0x20d)](this[_0x3af8af(0x20f)])[_0x3af8af(0x20e)](_0xe0eae5=>_0xe0eae5(_0x9af903));}}var Ee=Object[_0x1cfdb8(0x22d)],we=(_0x4e4613,_0x447ae7,_0x385b4f,_0x413bfa)=>{var _0x438e2f=_0x1cfdb8;for(var _0x19eb74=_0x413bfa>0x1?void 0x0:_0x413bfa?Ee(_0x447ae7,_0x385b4f):_0x447ae7,_0x2ca1d4=_0x4e4613[_0x438e2f(0x21f)]-0x1,_0x33589d;_0x2ca1d4>=0x0;_0x2ca1d4--)(_0x33589d=_0x4e4613[_0x2ca1d4])&&(_0x19eb74=_0x33589d(_0x19eb74)||_0x19eb74);return _0x19eb74;},Ne=(_0x5300ab,_0x364dc7)=>(_0x195b5e,_0x1987f9)=>_0x364dc7(_0x195b5e,_0x1987f9,_0x5300ab);let m=class extends _0x978db0{constructor(_0x2f763e){var _0x5c2773=_0x1cfdb8;super(),this[_0x5c2773(0x1f0)]=_0x2f763e,this[_0x5c2773(0x1a5)]();}[_0x1cfdb8(0x1a5)](){var _0x565342=_0x1cfdb8;[_0x20f706['id'],_0xf4f43e['id'],_0x24d323['id']][_0x565342(0x190)](_0x5b7203=>{var _0x4fc2ac=_0x565342;this['disposeWithMe'](this['_liveShareService'][_0x4fc2ac(0x1d5)](_0x5b7203));});}};m=we([Ne(0x0,_0x47e04a(L))],m);var c=function(){var _0x10ec6a=_0x1cfdb8;return c=Object[_0x10ec6a(0x201)]||function(_0x39cc35){var _0x3edc73=_0x10ec6a;for(var _0x4d6feb,_0x4ccd36=0x1,_0x59fa55=arguments[_0x3edc73(0x21f)];_0x4ccd36<_0x59fa55;_0x4ccd36++){_0x4d6feb=arguments[_0x4ccd36];for(var _0x137211 in _0x4d6feb)Object['prototype'][_0x3edc73(0x1e0)]['call'](_0x4d6feb,_0x137211)&&(_0x39cc35[_0x137211]=_0x4d6feb[_0x137211]);}return _0x39cc35;},c[_0x10ec6a(0x18f)](this,arguments);},Ce=function(_0xb5c193,_0x5a3b62){var _0x4a0668=_0x1cfdb8,_0xec7201={};for(var _0x4a5760 in _0xb5c193)Object[_0x4a0668(0x1df)][_0x4a0668(0x1e0)]['call'](_0xb5c193,_0x4a5760)&&_0x5a3b62[_0x4a0668(0x236)](_0x4a5760)<0x0&&(_0xec7201[_0x4a5760]=_0xb5c193[_0x4a5760]);if(_0xb5c193!=null&&typeof Object[_0x4a0668(0x1b4)]=='function'){for(var _0x33c41e=0x0,_0x4a5760=Object[_0x4a0668(0x1b4)](_0xb5c193);_0x33c41e<_0x4a5760[_0x4a0668(0x21f)];_0x33c41e++)_0x5a3b62[_0x4a0668(0x236)](_0x4a5760[_0x33c41e])<0x0&&Object[_0x4a0668(0x1df)][_0x4a0668(0x1b3)][_0x4a0668(0x18a)](_0xb5c193,_0x4a5760[_0x33c41e])&&(_0xec7201[_0x4a5760[_0x33c41e]]=_0xb5c193[_0x4a5760[_0x33c41e]]);}return _0xec7201;},W=_0x59bfc9(function(_0x4efc7e,_0xb0d19f){var _0x4baa06=_0x1cfdb8,_0x55f209=_0x4efc7e['icon'],_0xe569d2=_0x4efc7e['id'],_0x1c58fb=_0x4efc7e[_0x4baa06(0x1d2)],_0x3b30b2=_0x4efc7e[_0x4baa06(0x23e)],_0x143fc8=Ce(_0x4efc7e,[_0x4baa06(0x1a2),'id',_0x4baa06(0x1d2),_0x4baa06(0x23e)]),_0x1b8bcd=_0x4baa06(0x1d4)['concat'](_0xe569d2,'\x20')[_0x4baa06(0x1d8)](_0x1c58fb||'')[_0x4baa06(0x225)](),_0x4d6fc4=_0x25d6c4('_'[_0x4baa06(0x1d8)](Le()));return Y(_0x55f209,''[_0x4baa06(0x1d8)](_0xe569d2),{'defIds':_0x55f209[_0x4baa06(0x1f2)],'idSuffix':_0x4d6fc4[_0x4baa06(0x18c)]},c({'ref':_0xb0d19f,'className':_0x1b8bcd},_0x143fc8),_0x3b30b2);});function Y(_0x43f131,_0x1b90f7,_0x27d717,_0x21d043,_0x48f311){var _0x68908d=_0x1cfdb8;return _0x45c30f(_0x43f131[_0x68908d(0x208)],c(c({'key':_0x1b90f7},De(_0x43f131,_0x27d717,_0x48f311)),_0x21d043),(xe(_0x43f131,_0x27d717)[_0x68908d(0x1f4)]||[])[_0x68908d(0x20e)](function(_0x406890,_0x2dd08d){var _0x564cd0=_0x68908d;return Y(_0x406890,''['concat'](_0x1b90f7,'-')[_0x564cd0(0x1d8)](_0x43f131[_0x564cd0(0x208)],'-')[_0x564cd0(0x1d8)](_0x2dd08d),_0x27d717,void 0x0,_0x48f311);}));}function De(_0x82f61f,_0x2aed74,_0x1c1e9e){var _0x16ade7=_0x1cfdb8,_0x4ad31f=c({},_0x82f61f['attrs']);_0x1c1e9e!=null&&_0x1c1e9e[_0x16ade7(0x209)]&&_0x4ad31f['fill']==='colorChannel1'&&(_0x4ad31f[_0x16ade7(0x212)]=_0x1c1e9e[_0x16ade7(0x209)]),_0x82f61f['tag']==='mask'&&_0x4ad31f['id']&&(_0x4ad31f['id']=_0x4ad31f['id']+_0x2aed74[_0x16ade7(0x1f8)]),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x2395ae){var _0x116c4e=_0x16ade7,_0x2fd12d=_0x2395ae[0x0],_0x1e4eb7=_0x2395ae[0x1];_0x2fd12d===_0x116c4e(0x1b1)&&typeof _0x1e4eb7==_0x116c4e(0x228)&&(_0x4ad31f[_0x2fd12d]=_0x1e4eb7[_0x116c4e(0x1e4)](/url\(#(.*)\)/,_0x116c4e(0x206)[_0x116c4e(0x1d8)](_0x2aed74[_0x116c4e(0x1f8)],')')));});var _0x47b494=_0x2aed74[_0x16ade7(0x1f2)];return!_0x47b494||_0x47b494['length']===0x0||(_0x82f61f[_0x16ade7(0x208)]==='use'&&_0x4ad31f['xlink:href']&&(_0x4ad31f[_0x16ade7(0x1e5)]=_0x4ad31f[_0x16ade7(0x1e5)]+_0x2aed74['idSuffix']),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x3e714d){var _0x5e6db8=_0x16ade7,_0x2da8cd=_0x3e714d[0x0],_0x189137=_0x3e714d[0x1];typeof _0x189137==_0x5e6db8(0x228)&&(_0x4ad31f[_0x2da8cd]=_0x189137[_0x5e6db8(0x1e4)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2aed74[_0x5e6db8(0x1f8)],')')));})),_0x4ad31f;}function xe(_0x5dae6e,_0x410d83){var _0x13f102=_0x1cfdb8,_0x2f5174,_0x1313df=_0x410d83[_0x13f102(0x1f2)];return!_0x1313df||_0x1313df[_0x13f102(0x21f)]===0x0?_0x5dae6e:_0x5dae6e[_0x13f102(0x208)]===_0x13f102(0x1c2)&&(!((_0x2f5174=_0x5dae6e[_0x13f102(0x1f4)])===null||_0x2f5174===void 0x0)&&_0x2f5174[_0x13f102(0x21f)])?c(c({},_0x5dae6e),{'children':_0x5dae6e[_0x13f102(0x1f4)][_0x13f102(0x20e)](function(_0x1d6f5e){var _0x187fc2=_0x13f102;return typeof _0x1d6f5e[_0x187fc2(0x233)]['id']==_0x187fc2(0x228)&&_0x1313df&&_0x1313df[_0x187fc2(0x192)](_0x1d6f5e['attrs']['id'])?c(c({},_0x1d6f5e),{'attrs':c(c({},_0x1d6f5e['attrs']),{'id':_0x1d6f5e[_0x187fc2(0x233)]['id']+_0x410d83['idSuffix']})}):_0x1d6f5e;})}):_0x5dae6e;}function Le(){var _0x28a028=_0x1cfdb8;return Math[_0x28a028(0x1fa)]()['toString'](0x24)[_0x28a028(0x1db)](0x2,0x8);}W[_0x1cfdb8(0x191)]=_0x1cfdb8(0x18e);var ye={'tag':_0x1cfdb8(0x222),'attrs':{'xmlns':_0x1cfdb8(0x223),'fill':_0x1cfdb8(0x1ea),'viewBox':_0x1cfdb8(0x23b),'width':_0x1cfdb8(0x240),'height':_0x1cfdb8(0x240)},'children':[{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':'currentColor','d':_0x1cfdb8(0x1c3)}},{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':_0x1cfdb8(0x19a),'d':_0x1cfdb8(0x1b5),'fillRule':_0x1cfdb8(0x1ac),'clipRule':_0x1cfdb8(0x1ac)}}]},B=_0x59bfc9(function(_0x43d921,_0x42532d){var _0x4476b5=_0x1cfdb8;return _0x45c30f(W,Object[_0x4476b5(0x201)]({},_0x43d921,{'id':_0x4476b5(0x1a0),'ref':_0x42532d,'icon':ye}));});B[_0x1cfdb8(0x191)]=_0x1cfdb8(0x224);var Re=Object[_0x1cfdb8(0x22d)],Z=(_0x4e9e22,_0x8190cc,_0x5ba304,_0x2c4611)=>{var _0x2d8fb1=_0x1cfdb8;for(var _0x98efbb=_0x2c4611>0x1?void 0x0:_0x2c4611?Re(_0x8190cc,_0x5ba304):_0x8190cc,_0x4c592=_0x4e9e22[_0x2d8fb1(0x21f)]-0x1,_0x221019;_0x4c592>=0x0;_0x4c592--)(_0x221019=_0x4e9e22[_0x4c592])&&(_0x98efbb=_0x221019(_0x98efbb)||_0x98efbb);return _0x98efbb;},f=(_0x27cafd,_0x2ed14a)=>(_0x9920ce,_0x342b25)=>_0x2ed14a(_0x9920ce,_0x342b25,_0x27cafd);let I=class extends _0x34f499{constructor(_0x585cc7,_0x286658,_0x438dd1){var _0xea64f7=_0x1cfdb8;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x585cc7,this[_0xea64f7(0x198)]=_0x286658,this[_0xea64f7(0x1e7)]=_0x438dd1,this['_init']());}async[_0x1cfdb8(0x23d)](_0x3275a4){var _0x12c256=_0x1cfdb8;return this[_0x12c256(0x203)][_0x12c256(0x1d9)](_0x3275a4)||await this[_0x12c256(0x1cd)](_0x3275a4),this[_0x12c256(0x203)][_0x12c256(0x216)](_0x3275a4);}['_init'](){var _0x2739e5=_0x1cfdb8;this[_0x2739e5(0x1c6)][_0x2739e5(0x217)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))[_0x2739e5(0x200)](async _0xb14a38=>{var _0x5e159f=_0x2739e5;const _0x34c79=_0xb14a38[_0x5e159f(0x1e2)]();this[_0x5e159f(0x203)]['has'](_0x34c79)||this['_startLiveShareCoordinator'](_0x34c79);}),this[_0x2739e5(0x1c6)][_0x2739e5(0x237)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))['subscribe'](_0x453124=>{var _0x22a0ae=_0x2739e5;const _0x1f9d48=_0x453124['getUnitId'](),_0x26fd07=this[_0x22a0ae(0x203)][_0x22a0ae(0x216)](_0x1f9d48);_0x26fd07==null||_0x26fd07[_0x22a0ae(0x205)]();});}async[_0x1cfdb8(0x1cd)](_0x9169fa){var _0x3d461a=_0x1cfdb8;const _0x59e13c=await this['_collabSessionService'][_0x3d461a(0x22f)](_0x9169fa),_0x59207e=this[_0x3d461a(0x198)][_0x3d461a(0x1e9)](C,_0x9169fa,_0x59e13c);return _0x59207e[_0x3d461a(0x19f)](),this['_entities'][_0x3d461a(0x22a)](_0x9169fa,_0x59207e),_0x59207e;}};I=Z([f(0x0,_0x5e8fc8),f(0x1,_0x47e04a(_0x12d76d)),f(0x2,_0x47e04a(_0x1aeeb2))],I);var h=(_0x1d348c=>(_0x1d348c[_0x1cfdb8(0x1fe)]=_0x1cfdb8(0x1b2),_0x1d348c[_0x1cfdb8(0x1ee)]=_0x1cfdb8(0x1f7),_0x1d348c[_0x1cfdb8(0x1ec)]=_0x1cfdb8(0x1e6),_0x1d348c[_0x1cfdb8(0x196)]='not-following',_0x1d348c[_0x1cfdb8(0x1f1)]='presenting',_0x1d348c))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x34f499{constructor(_0x986b6,_0x19809d,_0x1e70f5,_0xcb00ee,_0x193bc4){var _0x3b438f=_0x1cfdb8;super(),d(this,_0x3b438f(0x189),new _0x232912('idle')),d(this,_0x3b438f(0x1c0),this[_0x3b438f(0x189)][_0x3b438f(0x1c7)]()),d(this,'_init',!0x1),d(this,_0x3b438f(0x1e8),null),d(this,'_presenter',null),(this['_unitID']=_0x986b6,this[_0x3b438f(0x1e1)]=_0x19809d,this[_0x3b438f(0x1bf)]=_0x1e70f5,this[_0x3b438f(0x1f0)]=_0xcb00ee,this['_commandService']=_0x193bc4);}get['_status'](){var _0x3cf0ff=_0x1cfdb8;return this[_0x3cf0ff(0x189)][_0x3cf0ff(0x199)]();}[_0x1cfdb8(0x205)](){var _0x1935bd=_0x1cfdb8,_0x7d10a9;(_0x7d10a9=this[_0x1935bd(0x1e8)])==null||_0x7d10a9[_0x1935bd(0x205)](),this[_0x1935bd(0x189)]['next']('idle'),this[_0x1935bd(0x189)][_0x1935bd(0x219)]();}[_0x1cfdb8(0x19f)](){var _0x3c2ea5=_0x1cfdb8;this['_init']||(this[_0x3c2ea5(0x1a5)]=!0x0,this['_collabSession'][_0x3c2ea5(0x1fc)]['pipe'](_0x53db6a(this[_0x3c2ea5(0x1ff)]))['subscribe'](_0x49b50d=>{var _0x42f9e1=_0x3c2ea5;switch(_0x49b50d){case _0x4c2fe1[_0x42f9e1(0x1fe)]:this['_handleOffline']();break;case _0x4c2fe1[_0x42f9e1(0x19d)]:this[_0x42f9e1(0x1fb)]();break;}}),this['_collabSession'][_0x3c2ea5(0x234)][_0x3c2ea5(0x1b0)](_0x53db6a(this['dispose$']))[_0x3c2ea5(0x200)](_0x569ba7=>{var _0x3c9176=_0x3c2ea5;const {eventID:_0x10980b}=_0x569ba7;switch(_0x10980b){case _0x20f152['LIVESHARE_NEW_HOST']:this[_0x3c9176(0x20b)](_0x569ba7);break;case _0x20f152[_0x3c9176(0x204)]:this['_handleOperation'](_0x569ba7);break;case _0x20f152[_0x3c9176(0x1a9)]:this['_handleTerminate']();break;case _0x20f152['NEW_CHANGESETS']:this[_0x3c9176(0x1c9)](_0x569ba7);break;}}));}['tryStartPresenting'](){var _0x31d8fa=_0x1cfdb8;this[_0x31d8fa(0x1e1)][_0x31d8fa(0x210)]({'eventID':_0x20f152[_0x31d8fa(0x21d)],'data':{'unitID':this[_0x31d8fa(0x202)],'userID':this[_0x31d8fa(0x1e1)]['getMemberID']()}},this[_0x31d8fa(0x202)]);}['stopPresenting'](){var _0x591157=_0x1cfdb8;this[_0x591157(0x230)]===_0x591157(0x1f5)&&(this[_0x591157(0x189)]['next'](_0x591157(0x1f7)),this[_0x591157(0x1e1)][_0x591157(0x210)]({'eventID':_0x20f152[_0x591157(0x1a9)],'data':{'unitID':this[_0x591157(0x202)]}},this[_0x591157(0x202)]));}[_0x1cfdb8(0x220)](){var _0x529865=_0x1cfdb8;this[_0x529865(0x230)]==='not-following'&&(this[_0x529865(0x189)][_0x529865(0x1aa)](_0x529865(0x1e6)),this[_0x529865(0x22c)]());}[_0x1cfdb8(0x20a)](){var _0x511b34=_0x1cfdb8;this[_0x511b34(0x230)]===_0x511b34(0x1e6)&&this[_0x511b34(0x23c)]();}['_handleNewHost'](_0x9cf68f){var _0x524346=_0x1cfdb8;const {presenter:_0x5d0808}=_0x9cf68f[_0x524346(0x1fd)],_0x42d715=this[_0x524346(0x1e1)]['getMemberID']();this['_presenter']=_0x5d0808,_0x5d0808===_0x42d715?(this['_stopFollowing'](),this[_0x524346(0x20c)]()):this['_status']!==_0x524346(0x207)&&(this['_stopPresenting'](),this[_0x524346(0x22c)]());}[_0x1cfdb8(0x221)](){var _0x175615=_0x1cfdb8;const _0x544c40={'eventID':_0x20f152['LIVESHARE_FETCH_OPERATIONS']};this[_0x175615(0x1e1)][_0x175615(0x210)](_0x544c40,this[_0x175615(0x202)]);}[_0x1cfdb8(0x218)](){var _0x397979=_0x1cfdb8;this[_0x397979(0x21e)]=null,this[_0x397979(0x230)]!==_0x397979(0x1f5)&&this[_0x397979(0x1b7)]();}[_0x1cfdb8(0x1c9)](_0x1eccf4){var _0x2ce401=_0x1cfdb8;if(this[_0x2ce401(0x230)]==='following'&&this['_presenter']===_0x1eccf4[_0x2ce401(0x1fd)][_0x2ce401(0x1f6)]){const _0x34f39b=_0x5d01dc(_0x1eccf4[_0x2ce401(0x1fd)])[_0x2ce401(0x1c1)][_0x2ce401(0x1bb)]()[_0x2ce401(0x1bc)](_0x20ccc4=>_0x20ccc4['id']===_0x10e7cd['id']);if(_0x34f39b){const _0x3e543d=_0x34f39b['params'][_0x2ce401(0x197)],_0x53c143=_0x34f39b[_0x2ce401(0x231)][_0x2ce401(0x1cf)]['id'];setTimeout(()=>{var _0x3b922c=_0x2ce401;this[_0x3b922c(0x214)][_0x3b922c(0x1ce)](_0x24d323['id'],{'unitId':_0x3e543d,'subUnitId':_0x53c143},{'fromCollab':!0x0});});}}}[_0x1cfdb8(0x20c)](){var _0x8b037f=_0x1cfdb8;this[_0x8b037f(0x189)][_0x8b037f(0x1aa)](_0x8b037f(0x1f5));const _0x39e9db=new Map(),_0x5e0b31=this['_commandDisposable']=new _0x4bfb4d();_0x5e0b31[_0x8b037f(0x1f3)](_0x4a5a19(()=>{var _0xdf7013=_0x8b037f;_0x39e9db[_0xdf7013(0x190)](_0x49cd61=>_0x49cd61[_0xdf7013(0x219)]()),_0x39e9db[_0xdf7013(0x1f9)]();})),_0x5e0b31[_0x8b037f(0x1f3)](this[_0x8b037f(0x214)][_0x8b037f(0x1c5)](_0x2b9a6a=>{var _0x9183b1=_0x8b037f,_0xe3702b;if(_0x2b9a6a[_0x9183b1(0x1d0)]!==_0x1a8ce3[_0x9183b1(0x1ef)]||!this[_0x9183b1(0x1f0)]['shouldShareOperation'](_0x2b9a6a['id']))return;const {id:_0x1bfc77}=_0x2b9a6a;let _0x2af0b8;_0x39e9db[_0x9183b1(0x1d9)](_0x1bfc77)?_0x2af0b8=_0x39e9db[_0x9183b1(0x216)](_0x1bfc77):(_0x2af0b8=new _0x396672(),_0x39e9db[_0x9183b1(0x22a)](_0x1bfc77,_0x2af0b8),_0x2af0b8['pipe'](_0x4fcd45((_0xe3702b=this[_0x9183b1(0x1bf)][_0x9183b1(0x1c8)](Pe))!=null?_0xe3702b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa8648c=>{var _0x2f7443=_0x9183b1;this[_0x2f7443(0x1e1)][_0x2f7443(0x210)]({'eventID':_0x20f152[_0x2f7443(0x204)],'data':{'unitID':this['_unitID'],'operations':{[_0xa8648c['id']]:{'id':_0xa8648c['id'],'params':JSON['stringify'](_0xa8648c[_0x2f7443(0x231)])}}}},this[_0x2f7443(0x202)]);})),_0x2af0b8[_0x9183b1(0x1aa)](_0x2b9a6a);})),this[_0x8b037f(0x1f0)][_0x8b037f(0x19b)](this[_0x8b037f(0x202)])[_0x8b037f(0x190)](_0x54d54a=>this[_0x8b037f(0x1e1)][_0x8b037f(0x210)]({'eventID':_0x20f152[_0x8b037f(0x204)],'data':{'unitID':this[_0x8b037f(0x202)],'operations':{[_0x54d54a['id']]:{'id':_0x54d54a['id'],'params':JSON['stringify'](_0x54d54a[_0x8b037f(0x231)])}}}},this[_0x8b037f(0x202)]));}['_stopPresenting'](){var _0x35885c=_0x1cfdb8,_0x3d4b00;this[_0x35885c(0x189)][_0x35885c(0x1aa)](_0x35885c(0x1f7)),(_0x3d4b00=this[_0x35885c(0x1e8)])==null||_0x3d4b00['dispose'](),this[_0x35885c(0x1e8)]=null;}['_startFollowing'](){var _0x4456e2=_0x1cfdb8,_0x3b8155;(_0x3b8155=this['_commandDisposable'])==null||_0x3b8155[_0x4456e2(0x205)](),this[_0x4456e2(0x189)][_0x4456e2(0x1aa)](_0x4456e2(0x1e6));}[_0x1cfdb8(0x1b7)](){var _0x5c5771=_0x1cfdb8,_0x5a6c76;this[_0x5c5771(0x189)]['next'](_0x5c5771(0x1f7)),(_0x5a6c76=this[_0x5c5771(0x1e8)])==null||_0x5a6c76[_0x5c5771(0x205)](),this[_0x5c5771(0x1e8)]=null;}['_stopFollowing'](){var _0x51c916=_0x1cfdb8,_0x12de5f;this[_0x51c916(0x189)][_0x51c916(0x1aa)](_0x51c916(0x207)),(_0x12de5f=this[_0x51c916(0x1e8)])==null||_0x12de5f[_0x51c916(0x205)]();}['_handleOperation'](_0x5b5ecb){var _0x4be783=_0x1cfdb8;if([_0x4be783(0x1f5),_0x4be783(0x207),_0x4be783(0x1b2)][_0x4be783(0x192)](this[_0x4be783(0x230)])||!_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x232)]||_0x5b5ecb[_0x4be783(0x1fd)]['presenter']===this[_0x4be783(0x1e1)][_0x4be783(0x1b6)]())return;this[_0x4be783(0x230)]===_0x4be783(0x1f7)&&this[_0x4be783(0x22c)]();const _0x2e3c75=_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x19e)];Object[_0x4be783(0x238)](_0x2e3c75)['forEach'](_0x5391f8=>{var _0x23eed0=_0x4be783;this[_0x23eed0(0x214)][_0x23eed0(0x1ce)](_0x5391f8['id'],_0x5391f8[_0x23eed0(0x231)]?JSON[_0x23eed0(0x21a)](_0x5391f8[_0x23eed0(0x231)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x44d3b7=_0x1cfdb8,_0x36ebed;this['_status$'][_0x44d3b7(0x1aa)](_0x44d3b7(0x1b2)),(_0x36ebed=this[_0x44d3b7(0x1e8)])==null||_0x36ebed[_0x44d3b7(0x205)]();}[_0x1cfdb8(0x1fb)](){var _0x475b0a=_0x1cfdb8;this[_0x475b0a(0x189)][_0x475b0a(0x1aa)](_0x475b0a(0x1f7)),this[_0x475b0a(0x221)]();}};C=Z([f(0x2,_0x4ab276),f(0x3,_0x47e04a(L)),f(0x4,_0x1b92ec)],C);function Te(){var _0x59090f=_0x1cfdb8;const _0x978a73=_0x5ac572(I),_0x2db5fb=_0x5ac572(_0x5e8fc8),_0x9ed3cf=_0xb18adb(()=>_0x2db5fb['getCurrentTypeOfUnit$'](_0x44e9a0[_0x59090f(0x19c)]),void 0x0,!0x1,[]),[_0x1969fe,_0x2f608b]=_0x21145a(null),[_0x4c8577,_0x2dce7f]=_0x21145a(h[_0x59090f(0x1ee)]),_0x1a1223=_0x25d6c4(null);return _0x396e80(()=>(_0x9ed3cf&&_0x978a73[_0x59090f(0x23d)](_0x9ed3cf[_0x59090f(0x1e2)]())[_0x59090f(0x215)](_0xff1f95=>{var _0x2cd215=_0x59090f;_0x2f608b(_0xff1f95),_0x1a1223[_0x2cd215(0x18c)]=_0xff1f95[_0x2cd215(0x1c0)][_0x2cd215(0x200)](_0x3240bc=>{_0x2dce7f(_0x3240bc);});}),()=>{var _0xe025f9=_0x59090f,_0x4a1122;(_0x4a1122=_0x1a1223[_0xe025f9(0x18c)])==null||_0x4a1122[_0xe025f9(0x1ca)](),_0x1a1223[_0xe025f9(0x18c)]=null;}),[_0x9ed3cf,_0x978a73]),_0x1969fe?_0x2585db(_0x2c46c3,{'align':_0x59090f(0x229),'disabled':_0x4c8577===h[_0x59090f(0x1fe)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2585db($e,{'status':_0x4c8577,'coordinator':_0x1969fe}),'children':_0x2585db(_0x59090f(0x1dd),{'className':_0x4d9db3(_0x59090f(0x226),{'univer-cursor-not-allowed':_0x4c8577===h[_0x59090f(0x1fe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8577!==h[_0x59090f(0x1fe)]}),'type':_0x59090f(0x1dd),'children':_0x2585db(B,{'className':_0x59090f(0x18d)})})}):null;}function $e(_0x5798a1){var _0x55d5a1=_0x1cfdb8;const {status:_0x12b2cd,coordinator:_0x2b3e37}=_0x5798a1;switch(_0x12b2cd){case h[_0x55d5a1(0x1ee)]:return _0x2585db(Fe,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1ec)]:return _0x2585db(He,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x196)]:return _0x2585db(je,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1fe)]:return _0x2585db(Ve,{});case h['PRESENTING']:return _0x2585db(Ue,{'coordinator':_0x2b3e37});default:return null;}}function Fe(_0x237c5a){var _0x3167ee=_0x1cfdb8;const {coordinator:_0x558289}=_0x237c5a;return _0x3c8f57(_0x589951,{'children':[_0x2585db('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3167ee(0x1ae)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x558289[_0x3167ee(0x22b)](),'children':'Start'})]});}function He(_0x405a5d){var _0xc121e8=_0x1cfdb8;const {coordinator:_0x38a75a}=_0x405a5d;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0xc121e8(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc121e8(0x21c)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x38a75a[_0xc121e8(0x20a)](),'children':_0xc121e8(0x1a8)})]});}function je(_0x3714c4){var _0x43d3b6=_0x1cfdb8;const {coordinator:_0x451cdf}=_0x3714c4;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x43d3b6(0x1b9),{'className':_0x43d3b6(0x235),'children':_0x43d3b6(0x1ed)}),_0x2585db(_0xcd60f4,{'variant':_0x43d3b6(0x1ba),'onClick':()=>_0x451cdf[_0x43d3b6(0x220)](),'children':_0x43d3b6(0x193)})]});}function Ue(_0x348aff){var _0x9ba380=_0x1cfdb8;const {coordinator:_0x2dc79c}=_0x348aff;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x9ba380(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x9ba380(0x1af)}),_0x2585db(_0xcd60f4,{'variant':'default','onClick':()=>_0x2dc79c[_0x9ba380(0x194)](),'children':_0x9ba380(0x227)})]});}function Ve(){var _0x22c132=_0x1cfdb8;return _0x2585db(_0x589951,{'children':_0x22c132(0x1da)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4451df,_0x374f12,_0x25045f,_0x4a89e2)=>{var _0x502f53=_0x1cfdb8;for(var _0x43067b=_0x4a89e2>0x1?void 0x0:_0x4a89e2?Me(_0x374f12,_0x25045f):_0x374f12,_0x55d42c=_0x4451df[_0x502f53(0x21f)]-0x1,_0x508aa7;_0x55d42c>=0x0;_0x55d42c--)(_0x508aa7=_0x4451df[_0x55d42c])&&(_0x43067b=_0x508aa7(_0x43067b)||_0x43067b);return _0x43067b;},$=(_0x39e8fa,_0x3ccddf)=>(_0x2c454f,_0x3233c3)=>_0x3ccddf(_0x2c454f,_0x3233c3,_0x39e8fa);let b=class extends _0x978db0{constructor(_0x570a1d,_0x416b11){var _0x1d2f9b=_0x1cfdb8;super(),this[_0x1d2f9b(0x198)]=_0x570a1d,this[_0x1d2f9b(0x195)]=_0x416b11,this[_0x1d2f9b(0x1c4)]();}[_0x1cfdb8(0x1c4)](){var _0x1122f5=_0x1cfdb8;this['disposeWithMe'](this['_uiPartsService'][_0x1122f5(0x21b)](_0x2b5b91[_0x1122f5(0x1be)],()=>_0xecd535(Te,this[_0x1122f5(0x198)])));}};b=ke([$(0x0,_0x47e04a(_0x12d76d)),$(0x1,_0x53c21b)],b);var Ge=Object['defineProperty'],We=Object[_0x1cfdb8(0x22d)],Ye=(_0x58b4f5,_0x266794,_0x3dd639)=>_0x266794 in _0x58b4f5?Ge(_0x58b4f5,_0x266794,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd639}):_0x58b4f5[_0x266794]=_0x3dd639,Be=(_0x3d2be0,_0x3f4038,_0x106740,_0x5853d8)=>{for(var _0x41ef16=_0x5853d8>0x1?void 0x0:_0x5853d8?We(_0x3f4038,_0x106740):_0x3f4038,_0x5b4e47=_0x3d2be0['length']-0x1,_0x4da8f4;_0x5b4e47>=0x0;_0x5b4e47--)(_0x4da8f4=_0x3d2be0[_0x5b4e47])&&(_0x41ef16=_0x4da8f4(_0x41ef16)||_0x41ef16);return _0x41ef16;},F=(_0x23c66e,_0x33b9cb)=>(_0x4f6307,_0x501b75)=>_0x33b9cb(_0x4f6307,_0x501b75,_0x23c66e),J=(_0x1501a1,_0x4a766a,_0xf697e0)=>Ye(_0x1501a1,typeof _0x4a766a!=_0x1cfdb8(0x1de)?_0x4a766a+'':_0x4a766a,_0xf697e0);const Ze=_0x1cfdb8(0x1cc);let O=class extends _0x2d95be{constructor(_0x54127e=T,_0x393189,_0x5105fe){var _0x158f4b=_0x1cfdb8;super(),this[_0x158f4b(0x1d7)]=_0x54127e,this['_injector']=_0x393189,this['_configService']=_0x5105fe;const {..._0x35dc4c}=_0x4d7b5c({},T,this[_0x158f4b(0x1d7)]);this[_0x158f4b(0x1bf)][_0x158f4b(0x22e)](Oe,_0x35dc4c);}[_0x1cfdb8(0x239)](){var _0x395652=_0x1cfdb8;_0x3c4690(this[_0x395652(0x198)],_0x5c9bf8([[L],[I],[m],[b]],this['_config'][_0x395652(0x1d3)])),_0x223193(this[_0x395652(0x198)],[[m]]);}[_0x1cfdb8(0x1a6)](){var _0x5f4fcb=_0x1cfdb8;_0x223193(this[_0x5f4fcb(0x198)],[[b]]);}};J(O,_0x1cfdb8(0x1d0),_0x44e9a0[_0x1cfdb8(0x1a4)]),J(O,_0x1cfdb8(0x1dc),Ze),O=Be([_0x20f516(_0x5df2c9),F(0x1,_0x47e04a(_0x12d76d)),F(0x2,_0x4ab276)],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 _0x139d32=_0x3252;(function(_0x4f02af,_0x4bc148){var _0x2f607d=_0x3252,_0x1a30a0=_0x4f02af();while(!![]){try{var _0x2aa366=parseInt(_0x2f607d(0x18e))/0x1*(parseInt(_0x2f607d(0x169))/0x2)+parseInt(_0x2f607d(0x17a))/0x3*(-parseInt(_0x2f607d(0x204))/0x4)+parseInt(_0x2f607d(0x1be))/0x5*(parseInt(_0x2f607d(0x1f2))/0x6)+-parseInt(_0x2f607d(0x1fc))/0x7*(parseInt(_0x2f607d(0x1af))/0x8)+parseInt(_0x2f607d(0x1d8))/0x9+parseInt(_0x2f607d(0x1ea))/0xa*(-parseInt(_0x2f607d(0x190))/0xb)+parseInt(_0x2f607d(0x19a))/0xc*(-parseInt(_0x2f607d(0x1bf))/0xd);if(_0x2aa366===_0x4bc148)break;else _0x1a30a0['push'](_0x1a30a0['shift']());}catch(_0x2907db){_0x1a30a0['push'](_0x1a30a0['shift']());}}}(_0x17dd,0xef16d));var q=Object[_0x139d32(0x1a0)],z=(_0x2db7c1,_0x440687,_0x23088e)=>_0x440687 in _0x2db7c1?q(_0x2db7c1,_0x440687,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23088e}):_0x2db7c1[_0x440687]=_0x23088e,d=(_0x5930cb,_0x54311c,_0x180713)=>z(_0x5930cb,typeof _0x54311c!=_0x139d32(0x16a)?_0x54311c+'':_0x54311c,_0x180713);import{CollaborationSessionService as _0x52bc4,SessionStatus as _0x3ebc6d,UniverCollaborationClientPlugin as _0x13f272}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4ed487,toDisposable as _0x28719d,Inject as _0x2b0f26,IUniverInstanceService as _0x27d06d,Injector as _0x533151,IConfigService as _0x3d0a01,ICommandService as _0x207523,RxDisposable as _0x256cb8,UniverInstanceType as _0x10a037,DisposableCollection as _0x2c4c8c,CommandType as _0x308953,DependentOn as _0x32ccb9,Plugin as _0x1776e2,merge as _0x2e2afb,registerDependencies as _0x2364db,mergeOverrideWithDependencies as _0x10625a,touchDependencies as _0x2e8a9b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x23ea32,InsertSheetMutation as _0x5ec0f5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2f8262,SetScrollOperation as _0x3a7c06}from'@univerjs/sheets-ui';import{useDependency as _0xc4c76f,useObservable as _0x270e1c,IUIPartsService as _0x41b052,BuiltInUIPart as _0xd15279,connectInjector as _0x3083ca}from'@univerjs/ui';import{jsx as _0x18fc45,jsxs as _0x24ed7d,Fragment as _0x472b04}from'react/jsx-runtime';import{Dropdown as _0x2bd55a,clsx as _0x326601,Button as _0x580dca}from'@univerjs/design';import{forwardRef as _0x43c1cf,useRef as _0x5d430b,createElement as _0x585a15,useState as _0x1d41ae,useEffect as _0x56b177}from'react';import{CollaborationEvent as _0x16ac95,parseProtocolChangeset as _0x2f4aa3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x32a5a3,Subject as _0xebd73b}from'rxjs';import{takeUntil as _0x228971,throttleTime as _0x33a304}from'rxjs/operators';const Oe=_0x139d32(0x18a),T={};class L extends _0x4ed487{constructor(){var _0x164caa=_0x139d32;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x164caa(0x15c),new Set());}[_0x139d32(0x1e1)](_0x51038c){var _0x2eddee=_0x139d32;return this[_0x2eddee(0x1ff)]['add'](_0x51038c),_0x28719d(()=>this[_0x2eddee(0x1ff)][_0x2eddee(0x1bc)](_0x51038c));}[_0x139d32(0x18f)](_0x4e7d67){var _0x11b21b=_0x139d32;return this['_reporters'][_0x11b21b(0x1ae)](_0x4e7d67),_0x28719d(()=>this['_reporters'][_0x11b21b(0x1bc)](_0x4e7d67));}[_0x139d32(0x1e8)](_0x295101){var _0x313176=_0x139d32;return this[_0x313176(0x1ff)]['has'](_0x295101);}[_0x139d32(0x1c1)](_0x50a64d){var _0xa741f5=_0x139d32;return Array[_0xa741f5(0x1ac)](this[_0xa741f5(0x15c)])['map'](_0x16e6b2=>_0x16e6b2(_0x50a64d));}}var Ee=Object[_0x139d32(0x1c0)],we=(_0x2788d6,_0x2a9d16,_0x5af64e,_0x5acb79)=>{for(var _0x190933=_0x5acb79>0x1?void 0x0:_0x5acb79?Ee(_0x2a9d16,_0x5af64e):_0x2a9d16,_0x4137ff=_0x2788d6['length']-0x1,_0x2ba002;_0x4137ff>=0x0;_0x4137ff--)(_0x2ba002=_0x2788d6[_0x4137ff])&&(_0x190933=_0x2ba002(_0x190933)||_0x190933);return _0x190933;},Ne=(_0x41fdc0,_0x4fd8b5)=>(_0x38eb11,_0x50838a)=>_0x4fd8b5(_0x38eb11,_0x50838a,_0x41fdc0);let m=class extends _0x4ed487{constructor(_0x3bbe1f){var _0x38b5bc=_0x139d32;super(),this[_0x38b5bc(0x1d4)]=_0x3bbe1f,this[_0x38b5bc(0x1a8)]();}['_init'](){var _0x980f43=_0x139d32;[_0x2f8262['id'],_0x3a7c06['id'],_0x23ea32['id']][_0x980f43(0x1e5)](_0x2d3c47=>{var _0xb11e4b=_0x980f43;this[_0xb11e4b(0x188)](this[_0xb11e4b(0x1d4)][_0xb11e4b(0x1e1)](_0x2d3c47));});}};m=we([Ne(0x0,_0x2b0f26(L))],m);var c=function(){var _0x3ab841=_0x139d32;return c=Object[_0x3ab841(0x171)]||function(_0x4304d5){var _0xc5f79c=_0x3ab841;for(var _0x4bcaee,_0x130ade=0x1,_0x5c9275=arguments['length'];_0x130ade<_0x5c9275;_0x130ade++){_0x4bcaee=arguments[_0x130ade];for(var _0x113421 in _0x4bcaee)Object[_0xc5f79c(0x1f0)][_0xc5f79c(0x1eb)][_0xc5f79c(0x1e4)](_0x4bcaee,_0x113421)&&(_0x4304d5[_0x113421]=_0x4bcaee[_0x113421]);}return _0x4304d5;},c[_0x3ab841(0x1cd)](this,arguments);},Ce=function(_0x515fe4,_0x261105){var _0x5d6544=_0x139d32,_0x3682da={};for(var _0x1d8fb0 in _0x515fe4)Object['prototype'][_0x5d6544(0x1eb)][_0x5d6544(0x1e4)](_0x515fe4,_0x1d8fb0)&&_0x261105[_0x5d6544(0x154)](_0x1d8fb0)<0x0&&(_0x3682da[_0x1d8fb0]=_0x515fe4[_0x1d8fb0]);if(_0x515fe4!=null&&typeof Object[_0x5d6544(0x1a2)]==_0x5d6544(0x161)){for(var _0x5aea57=0x0,_0x1d8fb0=Object[_0x5d6544(0x1a2)](_0x515fe4);_0x5aea57<_0x1d8fb0[_0x5d6544(0x1f3)];_0x5aea57++)_0x261105['indexOf'](_0x1d8fb0[_0x5aea57])<0x0&&Object[_0x5d6544(0x1f0)]['propertyIsEnumerable'][_0x5d6544(0x1e4)](_0x515fe4,_0x1d8fb0[_0x5aea57])&&(_0x3682da[_0x1d8fb0[_0x5aea57]]=_0x515fe4[_0x1d8fb0[_0x5aea57]]);}return _0x3682da;},W=_0x43c1cf(function(_0x24101a,_0x43706e){var _0x1c4901=_0x139d32,_0x2317b9=_0x24101a[_0x1c4901(0x1bb)],_0x355628=_0x24101a['id'],_0x2f0c67=_0x24101a[_0x1c4901(0x1f9)],_0x312c42=_0x24101a['extend'],_0x2b202a=Ce(_0x24101a,[_0x1c4901(0x1bb),'id',_0x1c4901(0x1f9),'extend']),_0x30ceb9=_0x1c4901(0x1d9)[_0x1c4901(0x191)](_0x355628,'\x20')[_0x1c4901(0x191)](_0x2f0c67||'')['trim'](),_0x584251=_0x5d430b('_'['concat'](Le()));return Y(_0x2317b9,''[_0x1c4901(0x191)](_0x355628),{'defIds':_0x2317b9[_0x1c4901(0x159)],'idSuffix':_0x584251[_0x1c4901(0x193)]},c({'ref':_0x43706e,'className':_0x30ceb9},_0x2b202a),_0x312c42);});function Y(_0x53bee9,_0x3c7622,_0x33417e,_0x7d169f,_0x545882){var _0x155993=_0x139d32;return _0x585a15(_0x53bee9[_0x155993(0x18d)],c(c({'key':_0x3c7622},De(_0x53bee9,_0x33417e,_0x545882)),_0x7d169f),(xe(_0x53bee9,_0x33417e)[_0x155993(0x1b1)]||[])['map'](function(_0x16ebd4,_0x320b0e){var _0x50bd50=_0x155993;return Y(_0x16ebd4,''[_0x50bd50(0x191)](_0x3c7622,'-')[_0x50bd50(0x191)](_0x53bee9[_0x50bd50(0x18d)],'-')['concat'](_0x320b0e),_0x33417e,void 0x0,_0x545882);}));}function De(_0xd9af45,_0x22ef3b,_0x24fe61){var _0x2843fc=_0x139d32,_0xee9ea0=c({},_0xd9af45[_0x2843fc(0x194)]);_0x24fe61!=null&&_0x24fe61[_0x2843fc(0x19d)]&&_0xee9ea0[_0x2843fc(0x184)]===_0x2843fc(0x19d)&&(_0xee9ea0[_0x2843fc(0x184)]=_0x24fe61[_0x2843fc(0x19d)]),_0xd9af45[_0x2843fc(0x18d)]===_0x2843fc(0x1e0)&&_0xee9ea0['id']&&(_0xee9ea0['id']=_0xee9ea0['id']+_0x22ef3b[_0x2843fc(0x1df)]),Object['entries'](_0xee9ea0)[_0x2843fc(0x1e5)](function(_0x2b1b41){var _0x50fbe8=_0x2843fc,_0x2b0cd0=_0x2b1b41[0x0],_0x1c1f93=_0x2b1b41[0x1];_0x2b0cd0===_0x50fbe8(0x1e0)&&typeof _0x1c1f93==_0x50fbe8(0x1fb)&&(_0xee9ea0[_0x2b0cd0]=_0x1c1f93[_0x50fbe8(0x155)](/url\(#(.*)\)/,'url(#$1'[_0x50fbe8(0x191)](_0x22ef3b['idSuffix'],')')));});var _0x4f8cdb=_0x22ef3b[_0x2843fc(0x159)];return!_0x4f8cdb||_0x4f8cdb[_0x2843fc(0x1f3)]===0x0||(_0xd9af45[_0x2843fc(0x18d)]==='use'&&_0xee9ea0['xlink:href']&&(_0xee9ea0[_0x2843fc(0x153)]=_0xee9ea0[_0x2843fc(0x153)]+_0x22ef3b[_0x2843fc(0x1df)]),Object[_0x2843fc(0x1dc)](_0xee9ea0)[_0x2843fc(0x1e5)](function(_0x9a9fc6){var _0x2d6285=_0x2843fc,_0x15f4db=_0x9a9fc6[0x0],_0x1c18e6=_0x9a9fc6[0x1];typeof _0x1c18e6==_0x2d6285(0x1fb)&&(_0xee9ea0[_0x15f4db]=_0x1c18e6['replace'](/url\(#(.*)\)/,'url(#$1'[_0x2d6285(0x191)](_0x22ef3b[_0x2d6285(0x1df)],')')));})),_0xee9ea0;}function xe(_0x4c1c07,_0x52eee2){var _0x43f3de=_0x139d32,_0x357d46,_0x36f696=_0x52eee2[_0x43f3de(0x159)];return!_0x36f696||_0x36f696[_0x43f3de(0x1f3)]===0x0?_0x4c1c07:_0x4c1c07[_0x43f3de(0x18d)]===_0x43f3de(0x1ce)&&(!((_0x357d46=_0x4c1c07[_0x43f3de(0x1b1)])===null||_0x357d46===void 0x0)&&_0x357d46[_0x43f3de(0x1f3)])?c(c({},_0x4c1c07),{'children':_0x4c1c07[_0x43f3de(0x1b1)][_0x43f3de(0x18c)](function(_0x1d7064){var _0x4d15f8=_0x43f3de;return typeof _0x1d7064['attrs']['id']==_0x4d15f8(0x1fb)&&_0x36f696&&_0x36f696['includes'](_0x1d7064[_0x4d15f8(0x194)]['id'])?c(c({},_0x1d7064),{'attrs':c(c({},_0x1d7064[_0x4d15f8(0x194)]),{'id':_0x1d7064[_0x4d15f8(0x194)]['id']+_0x52eee2[_0x4d15f8(0x1df)]})}):_0x1d7064;})}):_0x4c1c07;}function Le(){var _0x588484=_0x139d32;return Math[_0x588484(0x1de)]()[_0x588484(0x17b)](0x24)[_0x588484(0x1ba)](0x2,0x8);}W[_0x139d32(0x192)]='UniverIcon';var ye={'tag':_0x139d32(0x186),'attrs':{'xmlns':_0x139d32(0x1c8),'fill':_0x139d32(0x16d),'viewBox':_0x139d32(0x19b),'width':'1em','height':_0x139d32(0x1a9)},'children':[{'tag':_0x139d32(0x1ab),'attrs':{'fill':_0x139d32(0x202),'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':_0x139d32(0x202),'d':_0x139d32(0x16b),'fillRule':_0x139d32(0x1ca),'clipRule':'evenodd'}}]},B=_0x43c1cf(function(_0xa1af99,_0x18bfd6){var _0x311e3b=_0x139d32;return _0x585a15(W,Object[_0x311e3b(0x171)]({},_0xa1af99,{'id':'live-share-icon','ref':_0x18bfd6,'icon':ye}));});B[_0x139d32(0x192)]='LiveShareIcon';var Re=Object[_0x139d32(0x1c0)],Z=(_0x12ef8d,_0x29b4a5,_0x19921a,_0x502e8a)=>{for(var _0x59adf4=_0x502e8a>0x1?void 0x0:_0x502e8a?Re(_0x29b4a5,_0x19921a):_0x29b4a5,_0x4eecaf=_0x12ef8d['length']-0x1,_0x5b6644;_0x4eecaf>=0x0;_0x4eecaf--)(_0x5b6644=_0x12ef8d[_0x4eecaf])&&(_0x59adf4=_0x5b6644(_0x59adf4)||_0x59adf4);return _0x59adf4;},f=(_0x5478f9,_0xb6c0b)=>(_0x1c72dc,_0x147f74)=>_0xb6c0b(_0x1c72dc,_0x147f74,_0x5478f9);let I=class extends _0x256cb8{constructor(_0x4fb801,_0x2598e3,_0x33edbb){var _0x2755d5=_0x139d32;super(),d(this,'_entities',new Map()),(this[_0x2755d5(0x15b)]=_0x4fb801,this[_0x2755d5(0x1c9)]=_0x2598e3,this['_collabSessionService']=_0x33edbb,this['_init']());}async[_0x139d32(0x1fd)](_0x5321f7){var _0x4d4525=_0x139d32;return this[_0x4d4525(0x1ed)]['has'](_0x5321f7)||await this[_0x4d4525(0x1a6)](_0x5321f7),this[_0x4d4525(0x1ed)][_0x4d4525(0x163)](_0x5321f7);}['_init'](){var _0x2fed6a=_0x139d32;this['_univerInstanceService'][_0x2fed6a(0x185)](_0x10a037[_0x2fed6a(0x1c4)])[_0x2fed6a(0x1ef)](_0x228971(this['dispose$']))[_0x2fed6a(0x15e)](async _0x2c9a02=>{var _0x116021=_0x2fed6a;const _0x394431=_0x2c9a02[_0x116021(0x1e9)]();this[_0x116021(0x1ed)][_0x116021(0x16e)](_0x394431)||this[_0x116021(0x1a6)](_0x394431);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x10a037[_0x2fed6a(0x1c4)])[_0x2fed6a(0x1ef)](_0x228971(this['dispose$']))['subscribe'](_0x25fb36=>{var _0x3f1b5c=_0x2fed6a;const _0x43d1c0=_0x25fb36[_0x3f1b5c(0x1e9)](),_0x544683=this[_0x3f1b5c(0x1ed)][_0x3f1b5c(0x163)](_0x43d1c0);_0x544683==null||_0x544683[_0x3f1b5c(0x162)]();});}async[_0x139d32(0x1a6)](_0x11e6a9){var _0xf66a94=_0x139d32;const _0xa612a7=await this[_0xf66a94(0x1e2)][_0xf66a94(0x1f5)](_0x11e6a9),_0x43bfe6=this[_0xf66a94(0x1c9)][_0xf66a94(0x1e6)](C,_0x11e6a9,_0xa612a7);return _0x43bfe6[_0xf66a94(0x1b7)](),this[_0xf66a94(0x1ed)][_0xf66a94(0x1cc)](_0x11e6a9,_0x43bfe6),_0x43bfe6;}};I=Z([f(0x0,_0x27d06d),f(0x1,_0x2b0f26(_0x533151)),f(0x2,_0x2b0f26(_0x52bc4))],I);var h=(_0x1388b0=>(_0x1388b0['OFFLINE']=_0x139d32(0x156),_0x1388b0[_0x139d32(0x1c2)]='idle',_0x1388b0[_0x139d32(0x195)]='following',_0x1388b0['NOT_FOLLOWING']=_0x139d32(0x1b6),_0x1388b0[_0x139d32(0x1db)]=_0x139d32(0x1cf),_0x1388b0))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x256cb8{constructor(_0x4fa882,_0x53adae,_0x568a5d,_0x3963dd,_0x4de38c){var _0x5879c6=_0x139d32;super(),d(this,_0x5879c6(0x16f),new _0x32a5a3('idle')),d(this,_0x5879c6(0x16c),this[_0x5879c6(0x16f)][_0x5879c6(0x180)]()),d(this,'_init',!0x1),d(this,_0x5879c6(0x200),null),d(this,_0x5879c6(0x19e),null),(this['_unitID']=_0x4fa882,this[_0x5879c6(0x15a)]=_0x53adae,this['_configService']=_0x568a5d,this[_0x5879c6(0x1d4)]=_0x3963dd,this['_commandService']=_0x4de38c);}get['_status'](){var _0x3ba242=_0x139d32;return this[_0x3ba242(0x16f)]['getValue']();}[_0x139d32(0x162)](){var _0x4229ac=_0x139d32,_0x47a280;(_0x47a280=this[_0x4229ac(0x200)])==null||_0x47a280[_0x4229ac(0x162)](),this['_status$']['next'](_0x4229ac(0x181)),this[_0x4229ac(0x16f)][_0x4229ac(0x166)]();}[_0x139d32(0x1b7)](){var _0x460805=_0x139d32;this[_0x460805(0x1a8)]||(this[_0x460805(0x1a8)]=!0x0,this[_0x460805(0x15a)][_0x460805(0x1f4)][_0x460805(0x1ef)](_0x228971(this['dispose$']))['subscribe'](_0x5df24=>{var _0xda8e5a=_0x460805;switch(_0x5df24){case _0x3ebc6d['OFFLINE']:this[_0xda8e5a(0x176)]();break;case _0x3ebc6d['ONLINE']:this[_0xda8e5a(0x17d)]();break;}}),this[_0x460805(0x15a)][_0x460805(0x1fa)][_0x460805(0x1ef)](_0x228971(this[_0x460805(0x196)]))[_0x460805(0x15e)](_0x5ec5c7=>{var _0x2c70b5=_0x460805;const {eventID:_0x263ec7}=_0x5ec5c7;switch(_0x263ec7){case _0x16ac95[_0x2c70b5(0x1da)]:this[_0x2c70b5(0x203)](_0x5ec5c7);break;case _0x16ac95[_0x2c70b5(0x160)]:this[_0x2c70b5(0x1d7)](_0x5ec5c7);break;case _0x16ac95[_0x2c70b5(0x1bd)]:this[_0x2c70b5(0x17c)]();break;case _0x16ac95[_0x2c70b5(0x1e7)]:this[_0x2c70b5(0x1b3)](_0x5ec5c7);break;}}));}[_0x139d32(0x187)](){var _0x55ad3=_0x139d32;this['_collabSession'][_0x55ad3(0x152)]({'eventID':_0x16ac95[_0x55ad3(0x1c5)],'data':{'unitID':this[_0x55ad3(0x1ad)],'userID':this[_0x55ad3(0x15a)][_0x55ad3(0x1f6)]()}},this[_0x55ad3(0x1ad)]);}[_0x139d32(0x19f)](){var _0x3a3f79=_0x139d32;this[_0x3a3f79(0x1b0)]===_0x3a3f79(0x1cf)&&(this[_0x3a3f79(0x16f)]['next'](_0x3a3f79(0x181)),this[_0x3a3f79(0x15a)]['send']({'eventID':_0x16ac95[_0x3a3f79(0x1bd)],'data':{'unitID':this[_0x3a3f79(0x1ad)]}},this[_0x3a3f79(0x1ad)]));}[_0x139d32(0x175)](){var _0x44c530=_0x139d32;this['_status']===_0x44c530(0x1b6)&&(this['_status$'][_0x44c530(0x1b2)]('following'),this[_0x44c530(0x198)]());}[_0x139d32(0x178)](){var _0x46006f=_0x139d32;this[_0x46006f(0x1b0)]===_0x46006f(0x1a4)&&this['_stopFollowing']();}['_handleNewHost'](_0x454cc3){var _0x3f9870=_0x139d32;const {presenter:_0x213864}=_0x454cc3['data'],_0x548c2f=this[_0x3f9870(0x15a)][_0x3f9870(0x1f6)]();this[_0x3f9870(0x19e)]=_0x213864,_0x213864===_0x548c2f?(this[_0x3f9870(0x170)](),this['_startPresenting']()):this[_0x3f9870(0x1b0)]!==_0x3f9870(0x1b6)&&(this[_0x3f9870(0x172)](),this[_0x3f9870(0x198)]());}[_0x139d32(0x1ee)](){var _0x5d003f=_0x139d32;const _0x2f8f38={'eventID':_0x16ac95['LIVESHARE_FETCH_OPERATIONS']};this[_0x5d003f(0x15a)][_0x5d003f(0x152)](_0x2f8f38,this[_0x5d003f(0x1ad)]);}[_0x139d32(0x17c)](){var _0x19c4ef=_0x139d32;this[_0x19c4ef(0x19e)]=null,this[_0x19c4ef(0x1b0)]!==_0x19c4ef(0x1cf)&&this[_0x19c4ef(0x1b4)]();}[_0x139d32(0x1b3)](_0x408095){var _0x3032b2=_0x139d32;if(this[_0x3032b2(0x1b0)]==='following'&&this[_0x3032b2(0x19e)]===_0x408095[_0x3032b2(0x168)][_0x3032b2(0x18b)]){const _0x35bf92=_0x2f4aa3(_0x408095[_0x3032b2(0x168)])[_0x3032b2(0x1fe)]['reverse']()[_0x3032b2(0x174)](_0x4e5a01=>_0x4e5a01['id']===_0x5ec0f5['id']);if(_0x35bf92){const _0x1a9299=_0x35bf92[_0x3032b2(0x1f8)][_0x3032b2(0x1d6)],_0x247327=_0x35bf92[_0x3032b2(0x1f8)]['sheet']['id'];setTimeout(()=>{var _0x23b01b=_0x3032b2;this[_0x23b01b(0x1a3)][_0x23b01b(0x1d3)](_0x23ea32['id'],{'unitId':_0x1a9299,'subUnitId':_0x247327},{'fromCollab':!0x0});});}}}[_0x139d32(0x201)](){var _0xb6fe09=_0x139d32;this[_0xb6fe09(0x16f)]['next'](_0xb6fe09(0x1cf));const _0x176877=new Map(),_0x32f87c=this[_0xb6fe09(0x200)]=new _0x2c4c8c();_0x32f87c[_0xb6fe09(0x1ae)](_0x28719d(()=>{var _0x9485c8=_0xb6fe09;_0x176877['forEach'](_0x105bc8=>_0x105bc8[_0x9485c8(0x166)]()),_0x176877[_0x9485c8(0x1dd)]();})),_0x32f87c[_0xb6fe09(0x1ae)](this['_commandService'][_0xb6fe09(0x1a5)](_0x411126=>{var _0x3765b7=_0xb6fe09,_0x3225ea;if(_0x411126[_0x3765b7(0x164)]!==_0x308953[_0x3765b7(0x1aa)]||!this[_0x3765b7(0x1d4)][_0x3765b7(0x1e8)](_0x411126['id']))return;const {id:_0x4c550e}=_0x411126;let _0x19f04b;_0x176877['has'](_0x4c550e)?_0x19f04b=_0x176877[_0x3765b7(0x163)](_0x4c550e):(_0x19f04b=new _0xebd73b(),_0x176877['set'](_0x4c550e,_0x19f04b),_0x19f04b['pipe'](_0x33a304((_0x3225ea=this['_configService'][_0x3765b7(0x199)](Pe))!=null?_0x3225ea:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4d0b10=>{var _0x18a478=_0x3765b7;this[_0x18a478(0x15a)][_0x18a478(0x152)]({'eventID':_0x16ac95[_0x18a478(0x160)],'data':{'unitID':this[_0x18a478(0x1ad)],'operations':{[_0x4d0b10['id']]:{'id':_0x4d0b10['id'],'params':JSON[_0x18a478(0x1c7)](_0x4d0b10[_0x18a478(0x1f8)])}}}},this['_unitID']);})),_0x19f04b[_0x3765b7(0x1b2)](_0x411126);})),this['_liveShareService'][_0xb6fe09(0x1c1)](this['_unitID'])[_0xb6fe09(0x1e5)](_0xae2644=>this['_collabSession'][_0xb6fe09(0x152)]({'eventID':_0x16ac95[_0xb6fe09(0x160)],'data':{'unitID':this[_0xb6fe09(0x1ad)],'operations':{[_0xae2644['id']]:{'id':_0xae2644['id'],'params':JSON[_0xb6fe09(0x1c7)](_0xae2644[_0xb6fe09(0x1f8)])}}}},this[_0xb6fe09(0x1ad)]));}['_stopPresenting'](){var _0x5b1879=_0x139d32,_0x297485;this['_status$']['next'](_0x5b1879(0x181)),(_0x297485=this[_0x5b1879(0x200)])==null||_0x297485[_0x5b1879(0x162)](),this['_commandDisposable']=null;}[_0x139d32(0x198)](){var _0x4882f3=_0x139d32,_0x34f6f4;(_0x34f6f4=this[_0x4882f3(0x200)])==null||_0x34f6f4[_0x4882f3(0x162)](),this['_status$'][_0x4882f3(0x1b2)](_0x4882f3(0x1a4));}[_0x139d32(0x1b4)](){var _0x3a5378=_0x139d32,_0x1bf61d;this[_0x3a5378(0x16f)][_0x3a5378(0x1b2)]('idle'),(_0x1bf61d=this[_0x3a5378(0x200)])==null||_0x1bf61d[_0x3a5378(0x162)](),this['_commandDisposable']=null;}[_0x139d32(0x170)](){var _0x129d6f=_0x139d32,_0x1338a5;this[_0x129d6f(0x16f)][_0x129d6f(0x1b2)](_0x129d6f(0x1b6)),(_0x1338a5=this['_commandDisposable'])==null||_0x1338a5[_0x129d6f(0x162)]();}[_0x139d32(0x1d7)](_0x1f472e){var _0x256db0=_0x139d32;if([_0x256db0(0x1cf),_0x256db0(0x1b6),_0x256db0(0x156)]['includes'](this[_0x256db0(0x1b0)])||!_0x1f472e[_0x256db0(0x168)][_0x256db0(0x1d5)]||_0x1f472e[_0x256db0(0x168)]['presenter']===this[_0x256db0(0x15a)][_0x256db0(0x1f6)]())return;this[_0x256db0(0x1b0)]===_0x256db0(0x181)&&this['_startFollowing']();const _0x274766=_0x1f472e[_0x256db0(0x168)][_0x256db0(0x189)];Object[_0x256db0(0x17e)](_0x274766)[_0x256db0(0x1e5)](_0x2d1b65=>{var _0x30f08a=_0x256db0;this[_0x30f08a(0x1a3)]['executeCommand'](_0x2d1b65['id'],_0x2d1b65[_0x30f08a(0x1f8)]?JSON[_0x30f08a(0x1c6)](_0x2d1b65[_0x30f08a(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x139d32(0x176)](){var _0x427d6d=_0x139d32,_0x9318e4;this[_0x427d6d(0x16f)][_0x427d6d(0x1b2)](_0x427d6d(0x156)),(_0x9318e4=this['_commandDisposable'])==null||_0x9318e4[_0x427d6d(0x162)]();}['_handleOnline'](){var _0x423926=_0x139d32;this[_0x423926(0x16f)][_0x423926(0x1b2)](_0x423926(0x181)),this[_0x423926(0x1ee)]();}};C=Z([f(0x2,_0x3d0a01),f(0x3,_0x2b0f26(L)),f(0x4,_0x207523)],C);function Te(){var _0xf9006c=_0x139d32;const _0x4ea830=_0xc4c76f(I),_0x1f5fad=_0xc4c76f(_0x27d06d),_0xc74852=_0x270e1c(()=>_0x1f5fad[_0xf9006c(0x158)](_0x10a037[_0xf9006c(0x1c4)]),void 0x0,!0x1,[]),[_0x262da6,_0xc54e2]=_0x1d41ae(null),[_0x3aa610,_0x596480]=_0x1d41ae(h[_0xf9006c(0x1c2)]),_0x5dfae6=_0x5d430b(null);return _0x56b177(()=>(_0xc74852&&_0x4ea830[_0xf9006c(0x1fd)](_0xc74852['getUnitId']())[_0xf9006c(0x1f7)](_0x2785ee=>{var _0x443090=_0xf9006c;_0xc54e2(_0x2785ee),_0x5dfae6[_0x443090(0x193)]=_0x2785ee[_0x443090(0x16c)][_0x443090(0x15e)](_0x19473d=>{_0x596480(_0x19473d);});}),()=>{var _0x4e86cd;(_0x4e86cd=_0x5dfae6['current'])==null||_0x4e86cd['unsubscribe'](),_0x5dfae6['current']=null;}),[_0xc74852,_0x4ea830]),_0x262da6?_0x18fc45(_0x2bd55a,{'align':_0xf9006c(0x1cb),'disabled':_0x3aa610===h[_0xf9006c(0x1d1)],'className':_0xf9006c(0x1d2),'overlay':_0x18fc45($e,{'status':_0x3aa610,'coordinator':_0x262da6}),'children':_0x18fc45(_0xf9006c(0x1a7),{'className':_0x326601(_0xf9006c(0x17f),{'univer-cursor-not-allowed':_0x3aa610===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3aa610!==h[_0xf9006c(0x1d1)]}),'type':_0xf9006c(0x1a7),'children':_0x18fc45(B,{'className':_0xf9006c(0x15f)})})}):null;}function $e(_0x1cfadd){var _0x73c6c6=_0x139d32;const {status:_0x1a89e1,coordinator:_0x23e194}=_0x1cfadd;switch(_0x1a89e1){case h[_0x73c6c6(0x1c2)]:return _0x18fc45(Fe,{'coordinator':_0x23e194});case h[_0x73c6c6(0x195)]:return _0x18fc45(He,{'coordinator':_0x23e194});case h['NOT_FOLLOWING']:return _0x18fc45(je,{'coordinator':_0x23e194});case h[_0x73c6c6(0x1d1)]:return _0x18fc45(Ve,{});case h['PRESENTING']:return _0x18fc45(Ue,{'coordinator':_0x23e194});default:return null;}}function Fe(_0xcfc422){var _0x57be75=_0x139d32;const {coordinator:_0x16c932}=_0xcfc422;return _0x24ed7d(_0x472b04,{'children':[_0x18fc45(_0x57be75(0x1b9),{'className':_0x57be75(0x1b5),'children':_0x57be75(0x1a1)}),_0x18fc45(_0x580dca,{'onClick':()=>_0x16c932['tryStartPresenting'](),'children':'Start'})]});}function He(_0xd41dbd){var _0x437747=_0x139d32;const {coordinator:_0x4ee407}=_0xd41dbd;return _0x24ed7d(_0x472b04,{'children':[_0x18fc45(_0x437747(0x1b9),{'className':_0x437747(0x1b5),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x18fc45(_0x580dca,{'onClick':()=>_0x4ee407[_0x437747(0x178)](),'children':_0x437747(0x1f1)})]});}function je(_0x17f363){var _0x1a333f=_0x139d32;const {coordinator:_0x4369cb}=_0x17f363;return _0x24ed7d(_0x472b04,{'children':[_0x18fc45(_0x1a333f(0x1b9),{'className':_0x1a333f(0x1b5),'children':_0x1a333f(0x165)}),_0x18fc45(_0x580dca,{'variant':_0x1a333f(0x205),'onClick':()=>_0x4369cb[_0x1a333f(0x175)](),'children':_0x1a333f(0x167)})]});}function Ue(_0x1c691d){var _0xb9a6cf=_0x139d32;const {coordinator:_0x25cc1f}=_0x1c691d;return _0x24ed7d(_0x472b04,{'children':[_0x18fc45(_0xb9a6cf(0x1b9),{'className':_0xb9a6cf(0x1b5),'children':_0xb9a6cf(0x197)}),_0x18fc45(_0x580dca,{'variant':_0xb9a6cf(0x1c3),'onClick':()=>_0x25cc1f[_0xb9a6cf(0x19f)](),'children':_0xb9a6cf(0x1ec)})]});}function Ve(){var _0x2a6f48=_0x139d32;return _0x18fc45(_0x472b04,{'children':_0x2a6f48(0x177)});}function _0x17dd(){var _0x57cd89=['defIds','_collabSession','_univerInstanceService','_reporters','_config','subscribe','univer-size-4','LIVESHARE_OPERATION','function','dispose','get','type','You\x27re\x20not\x20following\x20the\x20presenter','complete','Start\x20following','data','70vckJji','symbol','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','status$','none','has','_status$','_stopFollowing','assign','_stopPresenting','onRendered','find','startFollowing','_handleOffline','You\x27are\x20offline.','stopFollowing','override','5484921nptEKA','toString','_handleTerminate','_handleOnline','values','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','asObservable','idle','registerComponent','UNIVER_LIVE_SHARE_PLUGIN','fill','getTypeOfUnitAdded$','svg','tryStartPresenting','disposeWithMe','operations','live-share.config','memberID','map','tag','46061qKSoAJ','registerInitialStateReporter','250129BpjAoL','concat','displayName','current','attrs','FOLLOWING','dispose$','You\x27re\x20presenting\x20the\x20document','_startFollowing','getConfig','270960JbFyla','0\x200\x2017\x2017','_uiPartsService','colorChannel1','_presenter','stopPresenting','defineProperty','Present\x20this\x20document','getOwnPropertySymbols','_commandService','following','onCommandExecuted','_startLiveShareCoordinator','button','_init','1em','OPERATION','path','from','_unitID','add','1124216zgknLG','_status','children','next','_handleNewChangeSets','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','init','_configService','div','substring','icon','delete','LIVESHARE_TERMINATE','10rHsgva','208gbEUdT','getOwnPropertyDescriptor','getInitialStates','IDLE','default','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','parse','stringify','http://www.w3.org/2000/svg','_injector','evenodd','end','set','apply','defs','presenting','onStarting','OFFLINE','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','executeCommand','_liveShareService','presenter','unitId','_handleOperation','6955029wHSYFG','univerjs-icon\x20univerjs-icon-','LIVESHARE_NEW_HOST','PRESENTING','entries','clear','random','idSuffix','mask','registerSharedOperation','_collabSessionService','_mountLiveShare','call','forEach','createInstance','NEW_CHANGESETS','shouldShareOperation','getUnitId','10ugUHMo','hasOwnProperty','Stop\x20presenting','_entities','_fetchOperations','pipe','prototype','Stop\x20following','2841738Rsvwkm','length','sessionStatus$','requireSession','getMemberID','then','params','className','event$','string','7JNfvsK','getLiveShareCoordinator','mutations','_sharedOperations','_commandDisposable','_startPresenting','currentColor','_handleNewHost','4inYWTz','text','send','xlink:href','indexOf','replace','offline','setConfig','getCurrentTypeOfUnit$'];_0x17dd=function(){return _0x57cd89;};return _0x17dd();}var Me=Object[_0x139d32(0x1c0)],ke=(_0x364907,_0x159dcb,_0x168665,_0x161d33)=>{var _0x5b71e3=_0x139d32;for(var _0x2f12f7=_0x161d33>0x1?void 0x0:_0x161d33?Me(_0x159dcb,_0x168665):_0x159dcb,_0x23429e=_0x364907[_0x5b71e3(0x1f3)]-0x1,_0x59ec10;_0x23429e>=0x0;_0x23429e--)(_0x59ec10=_0x364907[_0x23429e])&&(_0x2f12f7=_0x59ec10(_0x2f12f7)||_0x2f12f7);return _0x2f12f7;},$=(_0x334a7d,_0x147d16)=>(_0x4733f7,_0xa83705)=>_0x147d16(_0x4733f7,_0xa83705,_0x334a7d);let b=class extends _0x4ed487{constructor(_0x1994de,_0x90c218){var _0x58b70a=_0x139d32;super(),this['_injector']=_0x1994de,this[_0x58b70a(0x19c)]=_0x90c218,this[_0x58b70a(0x1e3)]();}[_0x139d32(0x1e3)](){var _0x4621cf=_0x139d32;this[_0x4621cf(0x188)](this[_0x4621cf(0x19c)][_0x4621cf(0x182)](_0xd15279['HEADER_MENU'],()=>_0x3083ca(Te,this[_0x4621cf(0x1c9)])));}};b=ke([$(0x0,_0x2b0f26(_0x533151)),$(0x1,_0x41b052)],b);var Ge=Object['defineProperty'],We=Object[_0x139d32(0x1c0)],Ye=(_0xc7a7ad,_0x43c019,_0x29ef68)=>_0x43c019 in _0xc7a7ad?Ge(_0xc7a7ad,_0x43c019,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29ef68}):_0xc7a7ad[_0x43c019]=_0x29ef68,Be=(_0xc0cc57,_0x44099e,_0x95c12d,_0x36752d)=>{var _0xf6c57e=_0x139d32;for(var _0x3ae7c1=_0x36752d>0x1?void 0x0:_0x36752d?We(_0x44099e,_0x95c12d):_0x44099e,_0x1bc2ec=_0xc0cc57[_0xf6c57e(0x1f3)]-0x1,_0x156a8d;_0x1bc2ec>=0x0;_0x1bc2ec--)(_0x156a8d=_0xc0cc57[_0x1bc2ec])&&(_0x3ae7c1=_0x156a8d(_0x3ae7c1)||_0x3ae7c1);return _0x3ae7c1;},F=(_0x197415,_0x563cc7)=>(_0x25d158,_0x570b97)=>_0x563cc7(_0x25d158,_0x570b97,_0x197415),J=(_0x3a32a1,_0x3b6b40,_0x5f1939)=>Ye(_0x3a32a1,typeof _0x3b6b40!=_0x139d32(0x16a)?_0x3b6b40+'':_0x3b6b40,_0x5f1939);function _0x3252(_0x28a178,_0x7b453b){var _0x17ddba=_0x17dd();return _0x3252=function(_0x3252b3,_0x349e79){_0x3252b3=_0x3252b3-0x152;var _0x545779=_0x17ddba[_0x3252b3];return _0x545779;},_0x3252(_0x28a178,_0x7b453b);}const Ze=_0x139d32(0x183);let O=class extends _0x1776e2{constructor(_0x28cbde=T,_0x5f2f8b,_0x24626c){var _0x347c75=_0x139d32;super(),this[_0x347c75(0x15d)]=_0x28cbde,this['_injector']=_0x5f2f8b,this[_0x347c75(0x1b8)]=_0x24626c;const {..._0x4ed234}=_0x2e2afb({},T,this['_config']);this[_0x347c75(0x1b8)][_0x347c75(0x157)](Oe,_0x4ed234);}[_0x139d32(0x1d0)](){var _0xdd0ddd=_0x139d32;_0x2364db(this[_0xdd0ddd(0x1c9)],_0x10625a([[L],[I],[m],[b]],this['_config'][_0xdd0ddd(0x179)])),_0x2e8a9b(this[_0xdd0ddd(0x1c9)],[[m]]);}[_0x139d32(0x173)](){var _0x6a1f81=_0x139d32;_0x2e8a9b(this[_0x6a1f81(0x1c9)],[[b]]);}};J(O,_0x139d32(0x164),_0x10a037['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x32ccb9(_0x13f272),F(0x1,_0x2b0f26(_0x533151)),F(0x2,_0x3d0a01)],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 _0x271f(_0xec7ab0,_0x5f3971){var _0x409b5d=_0x409b();return _0x271f=function(_0x271f71,_0x36fe09){_0x271f71=_0x271f71-0x1b3;var _0x4e5acb=_0x409b5d[_0x271f71];return _0x4e5acb;},_0x271f(_0xec7ab0,_0x5f3971);}function _0x409b(){var _0x472923=['UniverCore','univer-mb-3\x20univer-w-full\x20univer-text-sm','useRef','BuiltInUIPart','stringify','attrs','includes','data','LiveShareController','entries','@univerjs/design','_config','DesktopLiveShareController','then','pluginName','stopPresenting','getMemberID','Injector','current','BehaviorSubject','offline','NOT_FOLLOWING','operations','UniverDesign','currentColor','icon','object','getUnitId','has','mutations','registerComponent','from','UniverSheets','Fragment','presenter','symbol','subscribe','children','Button','onStarting','_reporters','set','url(#$1','find','getInitialStates','UNIVER_SHEET','react/jsx-runtime','colorChannel1','amd','4364304FBWCoh','get','send','LIVESHARE_REQUEST_HOST','idSuffix','FOLLOWING','_commandDisposable','4267485AswUlv','getOwnPropertyDescriptor','idle','string','_init','delete','parseProtocolChangeset','useEffect','react','You\x27re\x20following\x20the\x20presenter','jsxs','jsx','defIds','DependentOn','getValue','event$','getOwnPropertySymbols','@univerjs-pro/collaboration-client','SetScrollOperation','clear','createElement','random','use','stopFollowing','0\x200\x2017\x2017','path','tag','Disposable','_handleOffline','React','NEW_CHANGESETS','10Dflvpf','_startLiveShareCoordinator','concat','SetZoomRatioOperation','sheet','setConfig','_univerInstanceService','prototype','indexOf','startFollowing','Dropdown','_startFollowing','CollaborationSessionService','@univerjs-pro/collaboration','defs','_collabSession','_startPresenting','getTypeOfUnitAdded$','SetWorksheetActiveOperation','IConfigService','ICommandService','UNIVER_LIVE_SHARE_PLUGIN','call','live-share.config','1869553awVqbV','mask','function','333IbeidG','UniverLiveSharePlugin','unitId','1101230IgBOTo','memberID','displayName','http://www.w3.org/2000/svg','reverse','UNIVER_UNKNOWN','following','touchDependencies','LiveShareService','next','asObservable','assign','disposeWithMe','rxjs/operators','LiveShare','replace','_beIdle','trim','substring','default','@univerjs/sheets-ui','button','_stopPresenting','shouldShareOperation','_injector','SAME_OPERATION_SHARE_INTERVAL','IDLE','_presenter','pipe','sessionStatus$','defineProperty','ONLINE','HEADER_MENU','UniverUi','Subject','LIVESHARE_OPERATION','registerDependencies','end','You\x27re\x20presenting\x20the\x20document','@univerjs/core','2264266KQAtmk','SessionStatus','type','useState','_status','UniverProCollaboration','toStringTag','RxDisposable','InsertSheetMutation','getTypeOfUnitDisposed$','UniverIcon','evenodd','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','useObservable','xlink:href','UniverProLiveShare','div','UniverCollaborationClientPlugin','registerInitialStateReporter','toDisposable','connectInjector','DisposableCollection','UniverSheetsUi','status$','onRendered','_uiPartsService','840548THtvIE','add','IUniverInstanceService','1em','hasOwnProperty','toString','_sharedOperations','PRESENTING','_liveShareService','@univerjs/ui','takeUntil','UniverProCollaborationClient','LiveShareIcon','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','_unitID','5030052AXFWGZ','length','CollaborationEvent','none','extend','Present\x20this\x20document','_fetchOperations','params','1YePhbA','parse','_configService','UniverInstanceType','_handleTerminate','fill','Inject','LIVESHARE_FETCH_OPERATIONS','forwardRef','presenting','not-following','init','_entities','You\x27are\x20offline.','override','clsx','_commandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getLiveShareCoordinator','LIVESHARE_NEW_HOST','forEach','_handleOnline','You\x27re\x20not\x20following\x20the\x20presenter','dispose','executeCommand','OFFLINE','useDependency','tryStartPresenting','Start\x20following','_stopFollowing','LIVESHARE_TERMINATE','_handleNewChangeSets','_handleNewHost','_mountLiveShare','exports','LiveShareCoordinator','_handleOperation','dispose$','rxjs','map','className','OPERATION','registerSharedOperation','_status$'];_0x409b=function(){return _0x472923;};return _0x409b();}(function(_0x3cfff8,_0xf2639d){var _0x170fe6=_0x271f,_0x44325d=_0x3cfff8();while(!![]){try{var _0x4c44a0=parseInt(_0x170fe6(0x1c7))/0x1*(-parseInt(_0x170fe6(0x290))/0x2)+-parseInt(_0x170fe6(0x22b))/0x3+-parseInt(_0x170fe6(0x2aa))/0x4*(-parseInt(_0x170fe6(0x24a))/0x5)+-parseInt(_0x170fe6(0x1bf))/0x6+parseInt(_0x170fe6(0x262))/0x7+-parseInt(_0x170fe6(0x224))/0x8+-parseInt(_0x170fe6(0x265))/0x9*(-parseInt(_0x170fe6(0x268))/0xa);if(_0x4c44a0===_0xf2639d)break;else _0x44325d['push'](_0x44325d['shift']());}catch(_0x2137be){_0x44325d['push'](_0x44325d['shift']());}}}(_0x409b,0xc9064),function(_0x198581,_0xcd53e9){var _0x42a606=_0x271f;typeof exports==_0x42a606(0x20d)&&typeof module<'u'?_0xcd53e9(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=='function'&&define[_0x42a606(0x223)]?define([_0x42a606(0x1e9),_0x42a606(0x23c),_0x42a606(0x28f),'@univerjs/sheets',_0x42a606(0x27c),_0x42a606(0x1b9),_0x42a606(0x221),_0x42a606(0x1fd),_0x42a606(0x233),_0x42a606(0x257),'rxjs',_0x42a606(0x275)],_0xcd53e9):(_0x198581=typeof globalThis<'u'?globalThis:_0x198581||self,_0xcd53e9(_0x198581[_0x42a606(0x29f)]={},_0x198581[_0x42a606(0x1bb)],_0x198581[_0x42a606(0x1f3)],_0x198581[_0x42a606(0x213)],_0x198581[_0x42a606(0x2a6)],_0x198581[_0x42a606(0x289)],_0x198581[_0x42a606(0x248)],_0x198581[_0x42a606(0x20a)],_0x198581[_0x42a606(0x248)],_0x198581[_0x42a606(0x295)],_0x198581[_0x42a606(0x1ed)],_0x198581[_0x42a606(0x1ed)]['operators']));}(this,function(_0x2a034c,_0x44068f,_0x214637,_0x4c7348,_0xa60945,_0xced2db,_0x3a11cc,_0x93a8e2,_0x54d5d7,_0x497455,_0x507716,_0x1dafc4){'use strict';var _0x19a470=_0x271f;var _0x592d93=Object[_0x19a470(0x286)],_0x4b143c=(_0x2e3890,_0x4557e3,_0xe01256)=>_0x4557e3 in _0x2e3890?_0x592d93(_0x2e3890,_0x4557e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe01256}):_0x2e3890[_0x4557e3]=_0xe01256,_0x3863ad=(_0x515844,_0x5a8f4d,_0x466dd0)=>_0x4b143c(_0x515844,typeof _0x5a8f4d!=_0x19a470(0x216)?_0x5a8f4d+'':_0x5a8f4d,_0x466dd0);const _0x150d50=_0x19a470(0x261),_0x15fc2a={};class _0x416f9b extends _0x214637[_0x19a470(0x246)]{constructor(){var _0x342346=_0x19a470;super(...arguments),_0x3863ad(this,_0x342346(0x1b6),new Set()),_0x3863ad(this,_0x342346(0x21b),new Set());}[_0x19a470(0x1f1)](_0x583164){var _0x444e4e=_0x19a470;return this[_0x444e4e(0x1b6)][_0x444e4e(0x2ab)](_0x583164),_0x214637[_0x444e4e(0x2a3)](()=>this[_0x444e4e(0x1b6)][_0x444e4e(0x230)](_0x583164));}[_0x19a470(0x2a2)](_0x599c86){var _0x50c709=_0x19a470;return this[_0x50c709(0x21b)][_0x50c709(0x2ab)](_0x599c86),_0x214637[_0x50c709(0x2a3)](()=>this[_0x50c709(0x21b)][_0x50c709(0x230)](_0x599c86));}[_0x19a470(0x27f)](_0x3f0034){var _0x607b7d=_0x19a470;return this[_0x607b7d(0x1b6)][_0x607b7d(0x20f)](_0x3f0034);}[_0x19a470(0x21f)](_0x3784fe){var _0xe76eda=_0x19a470;return Array[_0xe76eda(0x212)](this['_reporters'])['map'](_0x345cdd=>_0x345cdd(_0x3784fe));}}var _0x523ffc=Object[_0x19a470(0x22c)],_0x184600=(_0x4d8a6f,_0x162f6a,_0xb96b95,_0x353a84)=>{var _0x3fe74a=_0x19a470;for(var _0x39f028=_0x353a84>0x1?void 0x0:_0x353a84?_0x523ffc(_0x162f6a,_0xb96b95):_0x162f6a,_0x358409=_0x4d8a6f[_0x3fe74a(0x1c0)]-0x1,_0x2e5c51;_0x358409>=0x0;_0x358409--)(_0x2e5c51=_0x4d8a6f[_0x358409])&&(_0x39f028=_0x2e5c51(_0x39f028)||_0x39f028);return _0x39f028;},_0x439602=(_0x196f63,_0x264d51)=>(_0x19eca2,_0x513f92)=>_0x264d51(_0x19eca2,_0x513f92,_0x196f63);let _0x2bf0a6=class extends _0x214637[_0x19a470(0x246)]{constructor(_0xda815d){var _0x144bbe=_0x19a470;super(),this[_0x144bbe(0x1b8)]=_0xda815d,this['_init']();}[_0x19a470(0x22f)](){var _0x4bbe28=_0x19a470;[_0xa60945[_0x4bbe28(0x24d)]['id'],_0xa60945[_0x4bbe28(0x23d)]['id'],_0x4c7348[_0x4bbe28(0x25c)]['id']]['forEach'](_0x3e2094=>{var _0x2014a5=_0x4bbe28;this[_0x2014a5(0x274)](this[_0x2014a5(0x1b8)][_0x2014a5(0x1f1)](_0x3e2094));});}};_0x2bf0a6=_0x184600([_0x439602(0x0,_0x214637[_0x19a470(0x1cd)](_0x416f9b))],_0x2bf0a6);var _0x2b2871=function(){var _0xeb0daf=_0x19a470;return _0x2b2871=Object[_0xeb0daf(0x273)]||function(_0xa3569){var _0x44bee1=_0xeb0daf;for(var _0x3ddc43,_0x116c39=0x1,_0x37008a=arguments[_0x44bee1(0x1c0)];_0x116c39<_0x37008a;_0x116c39++){_0x3ddc43=arguments[_0x116c39];for(var _0x1ff669 in _0x3ddc43)Object[_0x44bee1(0x251)]['hasOwnProperty']['call'](_0x3ddc43,_0x1ff669)&&(_0xa3569[_0x1ff669]=_0x3ddc43[_0x1ff669]);}return _0xa3569;},_0x2b2871['apply'](this,arguments);},_0x3fcd3e=function(_0x3918ac,_0x37c784){var _0x87d420=_0x19a470,_0x22a004={};for(var _0x400078 in _0x3918ac)Object['prototype'][_0x87d420(0x1b4)][_0x87d420(0x260)](_0x3918ac,_0x400078)&&_0x37c784[_0x87d420(0x252)](_0x400078)<0x0&&(_0x22a004[_0x400078]=_0x3918ac[_0x400078]);if(_0x3918ac!=null&&typeof Object[_0x87d420(0x23b)]==_0x87d420(0x264)){for(var _0x49aaad=0x0,_0x400078=Object[_0x87d420(0x23b)](_0x3918ac);_0x49aaad<_0x400078[_0x87d420(0x1c0)];_0x49aaad++)_0x37c784[_0x87d420(0x252)](_0x400078[_0x49aaad])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x87d420(0x260)](_0x3918ac,_0x400078[_0x49aaad])&&(_0x22a004[_0x400078[_0x49aaad]]=_0x3918ac[_0x400078[_0x49aaad]]);}return _0x22a004;},_0x53c23a=_0x54d5d7['forwardRef'](function(_0x554719,_0x1d68e7){var _0x535ac6=_0x19a470,_0xb661f6=_0x554719[_0x535ac6(0x20c)],_0xa0893c=_0x554719['id'],_0x20beff=_0x554719[_0x535ac6(0x1ef)],_0x453d64=_0x554719[_0x535ac6(0x1c3)],_0x361f25=_0x3fcd3e(_0x554719,[_0x535ac6(0x20c),'id','className','extend']),_0x597d0d='univerjs-icon\x20univerjs-icon-'['concat'](_0xa0893c,'\x20')['concat'](_0x20beff||'')[_0x535ac6(0x279)](),_0x569c2a=_0x54d5d7[_0x535ac6(0x1f5)]('_'[_0x535ac6(0x24c)](_0x1ac4ee()));return _0x238e1f(_0xb661f6,''[_0x535ac6(0x24c)](_0xa0893c),{'defIds':_0xb661f6[_0x535ac6(0x237)],'idSuffix':_0x569c2a[_0x535ac6(0x205)]},_0x2b2871({'ref':_0x1d68e7,'className':_0x597d0d},_0x361f25),_0x453d64);});function _0x238e1f(_0x4e52ea,_0x559919,_0x4836a8,_0x178105,_0x2185cc){var _0x2619df=_0x19a470;return _0x54d5d7['createElement'](_0x4e52ea[_0x2619df(0x245)],_0x2b2871(_0x2b2871({'key':_0x559919},_0x5e129e(_0x4e52ea,_0x4836a8,_0x2185cc)),_0x178105),(_0x3b86cc(_0x4e52ea,_0x4836a8)[_0x2619df(0x218)]||[])[_0x2619df(0x1ee)](function(_0x425c72,_0x48d925){var _0x49d344=_0x2619df;return _0x238e1f(_0x425c72,''[_0x49d344(0x24c)](_0x559919,'-')[_0x49d344(0x24c)](_0x4e52ea[_0x49d344(0x245)],'-')['concat'](_0x48d925),_0x4836a8,void 0x0,_0x2185cc);}));}function _0x5e129e(_0x140169,_0x159afb,_0x35baf0){var _0x19153d=_0x19a470,_0x2681aa=_0x2b2871({},_0x140169[_0x19153d(0x1f8)]);_0x35baf0!=null&&_0x35baf0['colorChannel1']&&_0x2681aa[_0x19153d(0x1cc)]===_0x19153d(0x222)&&(_0x2681aa[_0x19153d(0x1cc)]=_0x35baf0[_0x19153d(0x222)]),_0x140169[_0x19153d(0x245)]==='mask'&&_0x2681aa['id']&&(_0x2681aa['id']=_0x2681aa['id']+_0x159afb[_0x19153d(0x228)]),Object[_0x19153d(0x1fc)](_0x2681aa)['forEach'](function(_0x276463){var _0x1b6643=_0x19153d,_0x211e57=_0x276463[0x0],_0x3c9154=_0x276463[0x1];_0x211e57===_0x1b6643(0x263)&&typeof _0x3c9154=='string'&&(_0x2681aa[_0x211e57]=_0x3c9154['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1b6643(0x24c)](_0x159afb[_0x1b6643(0x228)],')')));});var _0x27c4f3=_0x159afb[_0x19153d(0x237)];return!_0x27c4f3||_0x27c4f3[_0x19153d(0x1c0)]===0x0||(_0x140169[_0x19153d(0x245)]===_0x19153d(0x241)&&_0x2681aa[_0x19153d(0x29e)]&&(_0x2681aa['xlink:href']=_0x2681aa[_0x19153d(0x29e)]+_0x159afb['idSuffix']),Object['entries'](_0x2681aa)[_0x19153d(0x1db)](function(_0x5eeffa){var _0x53a28f=_0x19153d,_0x5be76d=_0x5eeffa[0x0],_0x5a167b=_0x5eeffa[0x1];typeof _0x5a167b==_0x53a28f(0x22e)&&(_0x2681aa[_0x5be76d]=_0x5a167b[_0x53a28f(0x277)](/url\(#(.*)\)/,_0x53a28f(0x21d)[_0x53a28f(0x24c)](_0x159afb[_0x53a28f(0x228)],')')));})),_0x2681aa;}function _0x3b86cc(_0x4a348d,_0x56781d){var _0x5dfd49=_0x19a470,_0x589728,_0x5d0924=_0x56781d[_0x5dfd49(0x237)];return!_0x5d0924||_0x5d0924[_0x5dfd49(0x1c0)]===0x0?_0x4a348d:_0x4a348d[_0x5dfd49(0x245)]===_0x5dfd49(0x258)&&(!((_0x589728=_0x4a348d['children'])===null||_0x589728===void 0x0)&&_0x589728[_0x5dfd49(0x1c0)])?_0x2b2871(_0x2b2871({},_0x4a348d),{'children':_0x4a348d[_0x5dfd49(0x218)][_0x5dfd49(0x1ee)](function(_0x5d10ba){var _0x306a12=_0x5dfd49;return typeof _0x5d10ba[_0x306a12(0x1f8)]['id']==_0x306a12(0x22e)&&_0x5d0924&&_0x5d0924[_0x306a12(0x1f9)](_0x5d10ba[_0x306a12(0x1f8)]['id'])?_0x2b2871(_0x2b2871({},_0x5d10ba),{'attrs':_0x2b2871(_0x2b2871({},_0x5d10ba[_0x306a12(0x1f8)]),{'id':_0x5d10ba[_0x306a12(0x1f8)]['id']+_0x56781d[_0x306a12(0x228)]})}):_0x5d10ba;})}):_0x4a348d;}function _0x1ac4ee(){var _0x309016=_0x19a470;return Math[_0x309016(0x240)]()[_0x309016(0x1b5)](0x24)[_0x309016(0x27a)](0x2,0x8);}_0x53c23a[_0x19a470(0x26a)]=_0x19a470(0x29a);var _0x14dcfc={'tag':'svg','attrs':{'xmlns':_0x19a470(0x26b),'fill':_0x19a470(0x1c2),'viewBox':_0x19a470(0x243),'width':_0x19a470(0x1b3),'height':_0x19a470(0x1b3)},'children':[{'tag':'path','attrs':{'fill':_0x19a470(0x20b),'d':_0x19a470(0x29c)}},{'tag':_0x19a470(0x244),'attrs':{'fill':_0x19a470(0x20b),'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':_0x19a470(0x29b),'clipRule':_0x19a470(0x29b)}}]},_0x1f6af7=_0x54d5d7[_0x19a470(0x1cf)](function(_0x361020,_0x3eb5dd){var _0x529868=_0x19a470;return _0x54d5d7[_0x529868(0x23f)](_0x53c23a,Object[_0x529868(0x273)]({},_0x361020,{'id':'live-share-icon','ref':_0x3eb5dd,'icon':_0x14dcfc}));});_0x1f6af7[_0x19a470(0x26a)]=_0x19a470(0x1bc);var _0x54bd61=Object[_0x19a470(0x22c)],_0x288c50=(_0x22b4d3,_0x39c544,_0x2c926a,_0x2937cb)=>{for(var _0x1cc17a=_0x2937cb>0x1?void 0x0:_0x2937cb?_0x54bd61(_0x39c544,_0x2c926a):_0x39c544,_0x400297=_0x22b4d3['length']-0x1,_0x420a1a;_0x400297>=0x0;_0x400297--)(_0x420a1a=_0x22b4d3[_0x400297])&&(_0x1cc17a=_0x420a1a(_0x1cc17a)||_0x1cc17a);return _0x1cc17a;},_0x3f9a81=(_0x3736ea,_0x26a46a)=>(_0x4c8564,_0x113961)=>_0x26a46a(_0x4c8564,_0x113961,_0x3736ea);_0x2a034c[_0x19a470(0x1fb)]=class extends _0x214637[_0x19a470(0x297)]{constructor(_0x45e3ff,_0x4ac657,_0x77aec2){var _0xb0c611=_0x19a470;super(),_0x3863ad(this,_0xb0c611(0x1d3),new Map()),(this['_univerInstanceService']=_0x45e3ff,this[_0xb0c611(0x280)]=_0x4ac657,this['_collabSessionService']=_0x77aec2,this[_0xb0c611(0x22f)]());}async[_0x19a470(0x1d9)](_0x1536ea){var _0x12dabe=_0x19a470;return this[_0x12dabe(0x1d3)]['has'](_0x1536ea)||await this[_0x12dabe(0x24b)](_0x1536ea),this['_entities'][_0x12dabe(0x225)](_0x1536ea);}[_0x19a470(0x22f)](){var _0x4290cc=_0x19a470;this[_0x4290cc(0x250)][_0x4290cc(0x25b)](_0x214637[_0x4290cc(0x1ca)][_0x4290cc(0x220)])[_0x4290cc(0x284)](_0x1dafc4[_0x4290cc(0x1ba)](this[_0x4290cc(0x1ec)]))[_0x4290cc(0x217)](async _0x293740=>{var _0x244da8=_0x4290cc;const _0x58bf6b=_0x293740[_0x244da8(0x20e)]();this['_entities'][_0x244da8(0x20f)](_0x58bf6b)||this[_0x244da8(0x24b)](_0x58bf6b);}),this[_0x4290cc(0x250)][_0x4290cc(0x299)](_0x214637['UniverInstanceType'][_0x4290cc(0x220)])['pipe'](_0x1dafc4[_0x4290cc(0x1ba)](this[_0x4290cc(0x1ec)]))[_0x4290cc(0x217)](_0x34aa58=>{var _0x49cd5=_0x4290cc;const _0x36c5d2=_0x34aa58[_0x49cd5(0x20e)](),_0x2dc3b0=this[_0x49cd5(0x1d3)]['get'](_0x36c5d2);_0x2dc3b0==null||_0x2dc3b0['dispose']();});}async['_startLiveShareCoordinator'](_0x3f2977){var _0x42bc27=_0x19a470;const _0x21d3c1=await this['_collabSessionService']['requireSession'](_0x3f2977),_0x21bfe5=this['_injector']['createInstance'](_0x2a034c[_0x42bc27(0x1ea)],_0x3f2977,_0x21d3c1);return _0x21bfe5[_0x42bc27(0x1d2)](),this[_0x42bc27(0x1d3)]['set'](_0x3f2977,_0x21bfe5),_0x21bfe5;}},_0x2a034c[_0x19a470(0x1fb)]=_0x288c50([_0x3f9a81(0x0,_0x214637[_0x19a470(0x2ac)]),_0x3f9a81(0x1,_0x214637[_0x19a470(0x1cd)](_0x214637[_0x19a470(0x204)])),_0x3f9a81(0x2,_0x214637['Inject'](_0x44068f[_0x19a470(0x256)]))],_0x2a034c['LiveShareController']);var _0x46fa92=(_0x5b529d=>(_0x5b529d['OFFLINE']=_0x19a470(0x207),_0x5b529d[_0x19a470(0x282)]=_0x19a470(0x22d),_0x5b529d['FOLLOWING']=_0x19a470(0x26e),_0x5b529d[_0x19a470(0x208)]=_0x19a470(0x1d1),_0x5b529d[_0x19a470(0x1b7)]=_0x19a470(0x1d0),_0x5b529d))(_0x46fa92||{});const _0x15d201=_0x19a470(0x281),_0x2494e7=0xc8;_0x2a034c[_0x19a470(0x1ea)]=class extends _0x214637['RxDisposable']{constructor(_0x33f9b1,_0x3cb7f1,_0x1cf47c,_0x42d835,_0x2aa2a4){var _0x119ab9=_0x19a470;super(),_0x3863ad(this,'_status$',new _0x507716[(_0x119ab9(0x206))](_0x119ab9(0x22d))),_0x3863ad(this,_0x119ab9(0x2a7),this[_0x119ab9(0x1f2)][_0x119ab9(0x272)]()),_0x3863ad(this,'_init',!0x1),_0x3863ad(this,_0x119ab9(0x22a),null),_0x3863ad(this,_0x119ab9(0x283),null),(this[_0x119ab9(0x1be)]=_0x33f9b1,this[_0x119ab9(0x259)]=_0x3cb7f1,this[_0x119ab9(0x1c9)]=_0x1cf47c,this['_liveShareService']=_0x42d835,this['_commandService']=_0x2aa2a4);}get[_0x19a470(0x294)](){var _0x3b0e83=_0x19a470;return this[_0x3b0e83(0x1f2)][_0x3b0e83(0x239)]();}['dispose'](){var _0x2a7684=_0x19a470,_0x4f7e5c;(_0x4f7e5c=this['_commandDisposable'])==null||_0x4f7e5c[_0x2a7684(0x1de)](),this[_0x2a7684(0x1f2)][_0x2a7684(0x271)](_0x2a7684(0x22d)),this[_0x2a7684(0x1f2)]['complete']();}['init'](){var _0x5405df=_0x19a470;this[_0x5405df(0x22f)]||(this[_0x5405df(0x22f)]=!0x0,this[_0x5405df(0x259)][_0x5405df(0x285)][_0x5405df(0x284)](_0x1dafc4['takeUntil'](this[_0x5405df(0x1ec)]))[_0x5405df(0x217)](_0x340657=>{var _0x4f5cc5=_0x5405df;switch(_0x340657){case _0x44068f[_0x4f5cc5(0x291)][_0x4f5cc5(0x1e0)]:this[_0x4f5cc5(0x247)]();break;case _0x44068f[_0x4f5cc5(0x291)][_0x4f5cc5(0x287)]:this['_handleOnline']();break;}}),this[_0x5405df(0x259)][_0x5405df(0x23a)][_0x5405df(0x284)](_0x1dafc4[_0x5405df(0x1ba)](this['dispose$']))['subscribe'](_0x418bf7=>{var _0x4227aa=_0x5405df;const {eventID:_0x4cd97a}=_0x418bf7;switch(_0x4cd97a){case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x1da)]:this[_0x4227aa(0x1e7)](_0x418bf7);break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x28b)]:this[_0x4227aa(0x1eb)](_0x418bf7);break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x1e5)]:this[_0x4227aa(0x1cb)]();break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x249)]:this[_0x4227aa(0x1e6)](_0x418bf7);break;}}));}[_0x19a470(0x1e2)](){var _0x3dabf2=_0x19a470;this['_collabSession'][_0x3dabf2(0x226)]({'eventID':_0x497455[_0x3dabf2(0x1c1)][_0x3dabf2(0x227)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x3dabf2(0x1be)]);}[_0x19a470(0x202)](){var _0x56bb94=_0x19a470;this[_0x56bb94(0x294)]===_0x56bb94(0x1d0)&&(this[_0x56bb94(0x1f2)][_0x56bb94(0x271)]('idle'),this[_0x56bb94(0x259)][_0x56bb94(0x226)]({'eventID':_0x497455[_0x56bb94(0x1c1)][_0x56bb94(0x1e5)],'data':{'unitID':this[_0x56bb94(0x1be)]}},this[_0x56bb94(0x1be)]));}[_0x19a470(0x253)](){var _0x4ef722=_0x19a470;this['_status']===_0x4ef722(0x1d1)&&(this[_0x4ef722(0x1f2)][_0x4ef722(0x271)](_0x4ef722(0x26e)),this[_0x4ef722(0x255)]());}[_0x19a470(0x242)](){var _0x40cee7=_0x19a470;this[_0x40cee7(0x294)]==='following'&&this[_0x40cee7(0x1e4)]();}['_handleNewHost'](_0x49bdd7){var _0x5a2ed9=_0x19a470;const {presenter:_0x2d215b}=_0x49bdd7['data'],_0x4bdeb0=this[_0x5a2ed9(0x259)][_0x5a2ed9(0x203)]();this['_presenter']=_0x2d215b,_0x2d215b===_0x4bdeb0?(this[_0x5a2ed9(0x1e4)](),this[_0x5a2ed9(0x25a)]()):this[_0x5a2ed9(0x294)]!=='not-following'&&(this[_0x5a2ed9(0x27e)](),this['_startFollowing']());}[_0x19a470(0x1c5)](){var _0x40e35f=_0x19a470;const _0x1864bd={'eventID':_0x497455['CollaborationEvent'][_0x40e35f(0x1ce)]};this['_collabSession'][_0x40e35f(0x226)](_0x1864bd,this['_unitID']);}[_0x19a470(0x1cb)](){var _0x258760=_0x19a470;this[_0x258760(0x283)]=null,this['_status']!==_0x258760(0x1d0)&&this[_0x258760(0x278)]();}[_0x19a470(0x1e6)](_0x2aeb5a){var _0x562658=_0x19a470;if(this[_0x562658(0x294)]===_0x562658(0x26e)&&this[_0x562658(0x283)]===_0x2aeb5a[_0x562658(0x1fa)][_0x562658(0x269)]){const _0x21b5bd=_0x497455[_0x562658(0x231)](_0x2aeb5a[_0x562658(0x1fa)])[_0x562658(0x210)][_0x562658(0x26c)]()[_0x562658(0x21e)](_0x287b06=>_0x287b06['id']===_0x4c7348[_0x562658(0x298)]['id']);if(_0x21b5bd){const _0x55afa8=_0x21b5bd[_0x562658(0x1c6)][_0x562658(0x267)],_0x10543a=_0x21b5bd[_0x562658(0x1c6)][_0x562658(0x24e)]['id'];setTimeout(()=>{var _0x1192fd=_0x562658;this[_0x1192fd(0x1d7)][_0x1192fd(0x1df)](_0x4c7348[_0x1192fd(0x25c)]['id'],{'unitId':_0x55afa8,'subUnitId':_0x10543a},{'fromCollab':!0x0});});}}}[_0x19a470(0x25a)](){var _0x52ab71=_0x19a470;this['_status$'][_0x52ab71(0x271)](_0x52ab71(0x1d0));const _0x323dc0=new Map(),_0x51d3b3=this[_0x52ab71(0x22a)]=new _0x214637[(_0x52ab71(0x2a5))]();_0x51d3b3[_0x52ab71(0x2ab)](_0x214637[_0x52ab71(0x2a3)](()=>{var _0x20f871=_0x52ab71;_0x323dc0['forEach'](_0x1321a3=>_0x1321a3['complete']()),_0x323dc0[_0x20f871(0x23e)]();})),_0x51d3b3[_0x52ab71(0x2ab)](this['_commandService']['onCommandExecuted'](_0x44b01b=>{var _0x1d0fbc=_0x52ab71,_0x593d72;if(_0x44b01b['type']!==_0x214637['CommandType'][_0x1d0fbc(0x1f0)]||!this[_0x1d0fbc(0x1b8)][_0x1d0fbc(0x27f)](_0x44b01b['id']))return;const {id:_0x45f93d}=_0x44b01b;let _0x263ae1;_0x323dc0['has'](_0x45f93d)?_0x263ae1=_0x323dc0[_0x1d0fbc(0x225)](_0x45f93d):(_0x263ae1=new _0x507716[(_0x1d0fbc(0x28a))](),_0x323dc0[_0x1d0fbc(0x21c)](_0x45f93d,_0x263ae1),_0x263ae1[_0x1d0fbc(0x284)](_0x1dafc4['throttleTime']((_0x593d72=this[_0x1d0fbc(0x1c9)]['getConfig'](_0x15d201))!=null?_0x593d72:_0x2494e7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1d0fbc(0x217)](_0x3c4765=>{var _0x5e236e=_0x1d0fbc;this['_collabSession'][_0x5e236e(0x226)]({'eventID':_0x497455[_0x5e236e(0x1c1)][_0x5e236e(0x28b)],'data':{'unitID':this[_0x5e236e(0x1be)],'operations':{[_0x3c4765['id']]:{'id':_0x3c4765['id'],'params':JSON[_0x5e236e(0x1f7)](_0x3c4765[_0x5e236e(0x1c6)])}}}},this[_0x5e236e(0x1be)]);})),_0x263ae1[_0x1d0fbc(0x271)](_0x44b01b);})),this[_0x52ab71(0x1b8)][_0x52ab71(0x21f)](this[_0x52ab71(0x1be)])['forEach'](_0x29d164=>this[_0x52ab71(0x259)]['send']({'eventID':_0x497455[_0x52ab71(0x1c1)][_0x52ab71(0x28b)],'data':{'unitID':this[_0x52ab71(0x1be)],'operations':{[_0x29d164['id']]:{'id':_0x29d164['id'],'params':JSON[_0x52ab71(0x1f7)](_0x29d164[_0x52ab71(0x1c6)])}}}},this['_unitID']));}[_0x19a470(0x27e)](){var _0x3ccd92=_0x19a470,_0x48aacb;this[_0x3ccd92(0x1f2)][_0x3ccd92(0x271)]('idle'),(_0x48aacb=this[_0x3ccd92(0x22a)])==null||_0x48aacb[_0x3ccd92(0x1de)](),this['_commandDisposable']=null;}[_0x19a470(0x255)](){var _0x793006=_0x19a470,_0xd566f1;(_0xd566f1=this[_0x793006(0x22a)])==null||_0xd566f1['dispose'](),this[_0x793006(0x1f2)][_0x793006(0x271)](_0x793006(0x26e));}[_0x19a470(0x278)](){var _0x241543=_0x19a470,_0x308500;this[_0x241543(0x1f2)][_0x241543(0x271)](_0x241543(0x22d)),(_0x308500=this[_0x241543(0x22a)])==null||_0x308500[_0x241543(0x1de)](),this[_0x241543(0x22a)]=null;}[_0x19a470(0x1e4)](){var _0x44a5cb=_0x19a470,_0x20d647;this[_0x44a5cb(0x1f2)][_0x44a5cb(0x271)]('not-following'),(_0x20d647=this[_0x44a5cb(0x22a)])==null||_0x20d647[_0x44a5cb(0x1de)]();}[_0x19a470(0x1eb)](_0x3770ab){var _0x20d5c6=_0x19a470;if([_0x20d5c6(0x1d0),_0x20d5c6(0x1d1),_0x20d5c6(0x207)][_0x20d5c6(0x1f9)](this[_0x20d5c6(0x294)])||!_0x3770ab['data'][_0x20d5c6(0x215)]||_0x3770ab[_0x20d5c6(0x1fa)]['presenter']===this['_collabSession'][_0x20d5c6(0x203)]())return;this[_0x20d5c6(0x294)]===_0x20d5c6(0x22d)&&this['_startFollowing']();const _0x2c9371=_0x3770ab[_0x20d5c6(0x1fa)][_0x20d5c6(0x209)];Object['values'](_0x2c9371)[_0x20d5c6(0x1db)](_0x2c1286=>{var _0x18a69d=_0x20d5c6;this['_commandService'][_0x18a69d(0x1df)](_0x2c1286['id'],_0x2c1286[_0x18a69d(0x1c6)]?JSON[_0x18a69d(0x1c8)](_0x2c1286[_0x18a69d(0x1c6)]):null,{'fromCollab':!0x0});});}[_0x19a470(0x247)](){var _0x9ccdbc=_0x19a470,_0x110218;this['_status$'][_0x9ccdbc(0x271)](_0x9ccdbc(0x207)),(_0x110218=this[_0x9ccdbc(0x22a)])==null||_0x110218['dispose']();}[_0x19a470(0x1dc)](){var _0x322c29=_0x19a470;this[_0x322c29(0x1f2)][_0x322c29(0x271)](_0x322c29(0x22d)),this[_0x322c29(0x1c5)]();}},_0x2a034c[_0x19a470(0x1ea)]=_0x288c50([_0x3f9a81(0x2,_0x214637['IConfigService']),_0x3f9a81(0x3,_0x214637[_0x19a470(0x1cd)](_0x416f9b)),_0x3f9a81(0x4,_0x214637[_0x19a470(0x25e)])],_0x2a034c['LiveShareCoordinator']);function _0x17fa9e(){var _0xce4442=_0x19a470;const _0x422718=_0xced2db[_0xce4442(0x1e1)](_0x2a034c[_0xce4442(0x1fb)]),_0x2ef103=_0xced2db[_0xce4442(0x1e1)](_0x214637[_0xce4442(0x2ac)]),_0x5e662f=_0xced2db[_0xce4442(0x29d)](()=>_0x2ef103['getCurrentTypeOfUnit$'](_0x214637[_0xce4442(0x1ca)][_0xce4442(0x220)]),void 0x0,!0x1,[]),[_0x33bcc4,_0x1a144b]=_0x54d5d7[_0xce4442(0x293)](null),[_0x2eb338,_0x55e19d]=_0x54d5d7[_0xce4442(0x293)](_0x46fa92[_0xce4442(0x282)]),_0x1e43ec=_0x54d5d7[_0xce4442(0x1f5)](null);return _0x54d5d7[_0xce4442(0x232)](()=>(_0x5e662f&&_0x422718['getLiveShareCoordinator'](_0x5e662f['getUnitId']())[_0xce4442(0x200)](_0xc29e42=>{var _0xf457b2=_0xce4442;_0x1a144b(_0xc29e42),_0x1e43ec[_0xf457b2(0x205)]=_0xc29e42[_0xf457b2(0x2a7)]['subscribe'](_0x19c5c=>{_0x55e19d(_0x19c5c);});}),()=>{var _0x5b0050=_0xce4442,_0x1731f5;(_0x1731f5=_0x1e43ec['current'])==null||_0x1731f5['unsubscribe'](),_0x1e43ec[_0x5b0050(0x205)]=null;}),[_0x5e662f,_0x422718]),_0x33bcc4?_0x3a11cc[_0xce4442(0x236)](_0x93a8e2[_0xce4442(0x254)],{'align':_0xce4442(0x28d),'disabled':_0x2eb338===_0x46fa92[_0xce4442(0x1e0)],'className':_0xce4442(0x1bd),'overlay':_0x3a11cc[_0xce4442(0x236)](_0x19438c,{'status':_0x2eb338,'coordinator':_0x33bcc4}),'children':_0x3a11cc[_0xce4442(0x236)]('button',{'className':_0x93a8e2[_0xce4442(0x1d6)](_0xce4442(0x1d8),{'univer-cursor-not-allowed':_0x2eb338===_0x46fa92[_0xce4442(0x1e0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2eb338!==_0x46fa92[_0xce4442(0x1e0)]}),'type':_0xce4442(0x27d),'children':_0x3a11cc[_0xce4442(0x236)](_0x1f6af7,{'className':'univer-size-4'})})}):null;}function _0x19438c(_0x476bdb){var _0x3d88ba=_0x19a470;const {status:_0x3d64a4,coordinator:_0x4b559d}=_0x476bdb;switch(_0x3d64a4){case _0x46fa92[_0x3d88ba(0x282)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x2ee184,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x229)]:return _0x3a11cc[_0x3d88ba(0x236)](_0xd05273,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x208)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x5203e0,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x1e0)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x41a0b3,{});case _0x46fa92[_0x3d88ba(0x1b7)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x210262,{'coordinator':_0x4b559d});default:return null;}}function _0x2ee184(_0x219f03){var _0x5f4fd5=_0x19a470;const {coordinator:_0x2e5a71}=_0x219f03;return _0x3a11cc['jsxs'](_0x3a11cc[_0x5f4fd5(0x214)],{'children':[_0x3a11cc[_0x5f4fd5(0x236)](_0x5f4fd5(0x2a0),{'className':_0x5f4fd5(0x1f4),'children':_0x5f4fd5(0x1c4)}),_0x3a11cc[_0x5f4fd5(0x236)](_0x93a8e2['Button'],{'onClick':()=>_0x2e5a71[_0x5f4fd5(0x1e2)](),'children':'Start'})]});}function _0xd05273(_0x278222){var _0x5e4ea7=_0x19a470;const {coordinator:_0x3912c8}=_0x278222;return _0x3a11cc[_0x5e4ea7(0x235)](_0x3a11cc[_0x5e4ea7(0x214)],{'children':[_0x3a11cc[_0x5e4ea7(0x236)]('div',{'className':_0x5e4ea7(0x1f4),'children':_0x5e4ea7(0x234)}),_0x3a11cc[_0x5e4ea7(0x236)](_0x93a8e2[_0x5e4ea7(0x219)],{'onClick':()=>_0x3912c8[_0x5e4ea7(0x242)](),'children':'Stop\x20following'})]});}function _0x5203e0(_0x37c9ec){var _0x1be7c6=_0x19a470;const {coordinator:_0x1d2a86}=_0x37c9ec;return _0x3a11cc[_0x1be7c6(0x235)](_0x3a11cc['Fragment'],{'children':[_0x3a11cc[_0x1be7c6(0x236)](_0x1be7c6(0x2a0),{'className':_0x1be7c6(0x1f4),'children':_0x1be7c6(0x1dd)}),_0x3a11cc[_0x1be7c6(0x236)](_0x93a8e2[_0x1be7c6(0x219)],{'variant':'text','onClick':()=>_0x1d2a86[_0x1be7c6(0x253)](),'children':_0x1be7c6(0x1e3)})]});}function _0x210262(_0x5de77a){var _0x233c83=_0x19a470;const {coordinator:_0x22b09a}=_0x5de77a;return _0x3a11cc['jsxs'](_0x3a11cc[_0x233c83(0x214)],{'children':[_0x3a11cc['jsx']('div',{'className':_0x233c83(0x1f4),'children':_0x233c83(0x28e)}),_0x3a11cc['jsx'](_0x93a8e2[_0x233c83(0x219)],{'variant':_0x233c83(0x27b),'onClick':()=>_0x22b09a[_0x233c83(0x202)](),'children':'Stop\x20presenting'})]});}function _0x41a0b3(){var _0x445ccb=_0x19a470;return _0x3a11cc['jsx'](_0x3a11cc[_0x445ccb(0x214)],{'children':_0x445ccb(0x1d4)});}var _0x130ea4=Object[_0x19a470(0x22c)],_0x36ed6d=(_0x1d533c,_0x1f1c23,_0x1e162b,_0x55bee6)=>{var _0x1a97b8=_0x19a470;for(var _0x4cd539=_0x55bee6>0x1?void 0x0:_0x55bee6?_0x130ea4(_0x1f1c23,_0x1e162b):_0x1f1c23,_0x118bb2=_0x1d533c[_0x1a97b8(0x1c0)]-0x1,_0x4767a2;_0x118bb2>=0x0;_0x118bb2--)(_0x4767a2=_0x1d533c[_0x118bb2])&&(_0x4cd539=_0x4767a2(_0x4cd539)||_0x4cd539);return _0x4cd539;},_0x4df61b=(_0x5cd0c9,_0x38db96)=>(_0x49e184,_0x2897e0)=>_0x38db96(_0x49e184,_0x2897e0,_0x5cd0c9);_0x2a034c['DesktopLiveShareController']=class extends _0x214637[_0x19a470(0x246)]{constructor(_0x4b0362,_0x165b37){var _0x23481b=_0x19a470;super(),this[_0x23481b(0x280)]=_0x4b0362,this[_0x23481b(0x2a9)]=_0x165b37,this[_0x23481b(0x1e8)]();}[_0x19a470(0x1e8)](){var _0x5a3a33=_0x19a470;this[_0x5a3a33(0x274)](this['_uiPartsService'][_0x5a3a33(0x211)](_0xced2db[_0x5a3a33(0x1f6)][_0x5a3a33(0x288)],()=>_0xced2db[_0x5a3a33(0x2a4)](_0x17fa9e,this[_0x5a3a33(0x280)])));}},_0x2a034c[_0x19a470(0x1ff)]=_0x36ed6d([_0x4df61b(0x0,_0x214637[_0x19a470(0x1cd)](_0x214637[_0x19a470(0x204)])),_0x4df61b(0x1,_0xced2db['IUIPartsService'])],_0x2a034c[_0x19a470(0x1ff)]);var _0x5b6a16=Object[_0x19a470(0x286)],_0x9aa8e6=Object['getOwnPropertyDescriptor'],_0x5ea762=(_0x56dd2e,_0x343774,_0xdfcc07)=>_0x343774 in _0x56dd2e?_0x5b6a16(_0x56dd2e,_0x343774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdfcc07}):_0x56dd2e[_0x343774]=_0xdfcc07,_0x163d3f=(_0x31cd24,_0x6807ca,_0x35d9ee,_0x4c3aa0)=>{for(var _0x4acc81=_0x4c3aa0>0x1?void 0x0:_0x4c3aa0?_0x9aa8e6(_0x6807ca,_0x35d9ee):_0x6807ca,_0x1a263b=_0x31cd24['length']-0x1,_0x92cfe6;_0x1a263b>=0x0;_0x1a263b--)(_0x92cfe6=_0x31cd24[_0x1a263b])&&(_0x4acc81=_0x92cfe6(_0x4acc81)||_0x4acc81);return _0x4acc81;},_0x30c8ea=(_0x106fb9,_0x45f9fa)=>(_0x30c0e0,_0x588d5b)=>_0x45f9fa(_0x30c0e0,_0x588d5b,_0x106fb9),_0x574b49=(_0x5f5c72,_0x1b97b5,_0x5c46a9)=>_0x5ea762(_0x5f5c72,typeof _0x1b97b5!='symbol'?_0x1b97b5+'':_0x1b97b5,_0x5c46a9);const _0x5d3860=_0x19a470(0x25f);_0x2a034c[_0x19a470(0x266)]=class extends _0x214637['Plugin']{constructor(_0x4d41=_0x15fc2a,_0x540fbb,_0x2bd65c){var _0x2201af=_0x19a470;super(),this['_config']=_0x4d41,this['_injector']=_0x540fbb,this[_0x2201af(0x1c9)]=_0x2bd65c;const {..._0x56a1b6}=_0x214637['merge']({},_0x15fc2a,this[_0x2201af(0x1fe)]);this[_0x2201af(0x1c9)][_0x2201af(0x24f)](_0x150d50,_0x56a1b6);}[_0x19a470(0x21a)](){var _0x1bbbfa=_0x19a470;_0x214637[_0x1bbbfa(0x28c)](this['_injector'],_0x214637['mergeOverrideWithDependencies']([[_0x416f9b],[_0x2a034c[_0x1bbbfa(0x1fb)]],[_0x2bf0a6],[_0x2a034c[_0x1bbbfa(0x1ff)]]],this[_0x1bbbfa(0x1fe)][_0x1bbbfa(0x1d5)])),_0x214637[_0x1bbbfa(0x26f)](this[_0x1bbbfa(0x280)],[[_0x2bf0a6]]);}[_0x19a470(0x2a8)](){var _0x5c406a=_0x19a470;_0x214637[_0x5c406a(0x26f)](this[_0x5c406a(0x280)],[[_0x2a034c[_0x5c406a(0x1ff)]]]);}},_0x574b49(_0x2a034c[_0x19a470(0x266)],_0x19a470(0x292),_0x214637[_0x19a470(0x1ca)][_0x19a470(0x26d)]),_0x574b49(_0x2a034c[_0x19a470(0x266)],_0x19a470(0x201),_0x5d3860),_0x2a034c[_0x19a470(0x266)]=_0x163d3f([_0x214637[_0x19a470(0x238)](_0x44068f[_0x19a470(0x2a1)]),_0x30c8ea(0x1,_0x214637[_0x19a470(0x1cd)](_0x214637['Injector'])),_0x30c8ea(0x2,_0x214637[_0x19a470(0x25d)])],_0x2a034c[_0x19a470(0x266)]),_0x2a034c[_0x19a470(0x276)]=_0x17fa9e,_0x2a034c[_0x19a470(0x270)]=_0x416f9b,_0x2a034c['LiveShareStatus']=_0x46fa92,Object[_0x19a470(0x286)](_0x2a034c,Symbol[_0x19a470(0x296)],{'value':'Module'});}));
|
|
1
|
+
(function(_0x1628fc,_0x41f6fe){var _0x782bda=_0x17c9,_0x2b9afb=_0x1628fc();while(!![]){try{var _0x2934b2=-parseInt(_0x782bda(0x1a7))/0x1+parseInt(_0x782bda(0x168))/0x2*(-parseInt(_0x782bda(0x1fd))/0x3)+parseInt(_0x782bda(0x1b4))/0x4+-parseInt(_0x782bda(0x1e0))/0x5*(-parseInt(_0x782bda(0x1ba))/0x6)+parseInt(_0x782bda(0x140))/0x7+parseInt(_0x782bda(0x156))/0x8*(-parseInt(_0x782bda(0x152))/0x9)+parseInt(_0x782bda(0x14a))/0xa*(parseInt(_0x782bda(0x13d))/0xb);if(_0x2934b2===_0x41f6fe)break;else _0x2b9afb['push'](_0x2b9afb['shift']());}catch(_0x21eb9d){_0x2b9afb['push'](_0x2b9afb['shift']());}}}(_0x48f3,0x9a529),function(_0x50beb0,_0x4d906c){var _0x1826c1=_0x17c9;typeof exports==_0x1826c1(0x1bd)&&typeof module<'u'?_0x4d906c(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==_0x1826c1(0x1fa)&&define[_0x1826c1(0x16c)]?define(['exports',_0x1826c1(0x196),_0x1826c1(0x1e7),_0x1826c1(0x162),'@univerjs/sheets-ui','@univerjs/ui',_0x1826c1(0x1ac),_0x1826c1(0x1f0),_0x1826c1(0x1db),_0x1826c1(0x175),'rxjs',_0x1826c1(0x202)],_0x4d906c):(_0x50beb0=typeof globalThis<'u'?globalThis:_0x50beb0||self,_0x4d906c(_0x50beb0[_0x1826c1(0x139)]={},_0x50beb0[_0x1826c1(0x14c)],_0x50beb0[_0x1826c1(0x204)],_0x50beb0['UniverSheets'],_0x50beb0['UniverSheetsUi'],_0x50beb0['UniverUi'],_0x50beb0[_0x1826c1(0x187)],_0x50beb0[_0x1826c1(0x1a8)],_0x50beb0[_0x1826c1(0x187)],_0x50beb0[_0x1826c1(0x19e)],_0x50beb0[_0x1826c1(0x216)],_0x50beb0['rxjs'][_0x1826c1(0x220)]));}(this,function(_0x177b7c,_0x960837,_0x51d81b,_0x27819d,_0x55006f,_0x235d65,_0x14688c,_0x16e5fb,_0x4a562c,_0x120665,_0x421b15,_0x3a5901){'use strict';var _0x386831=_0x17c9;var _0x472674=Object[_0x386831(0x1a0)],_0x1c4954=(_0x4fdb9c,_0x3307b9,_0x14d20d)=>_0x3307b9 in _0x4fdb9c?_0x472674(_0x4fdb9c,_0x3307b9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d20d}):_0x4fdb9c[_0x3307b9]=_0x14d20d,_0x5bd50c=(_0xe97e8d,_0x36b6d1,_0x43c1b5)=>_0x1c4954(_0xe97e8d,typeof _0x36b6d1!=_0x386831(0x1f7)?_0x36b6d1+'':_0x36b6d1,_0x43c1b5);const _0x5c26bd=_0x386831(0x153),_0x2ba4c9={};class _0x3d5229 extends _0x51d81b[_0x386831(0x157)]{constructor(){var _0x217ee2=_0x386831;super(...arguments),_0x5bd50c(this,_0x217ee2(0x1d7),new Set()),_0x5bd50c(this,_0x217ee2(0x17e),new Set());}[_0x386831(0x1cb)](_0x484b78){var _0x184e06=_0x386831;return this[_0x184e06(0x1d7)]['add'](_0x484b78),_0x51d81b['toDisposable'](()=>this[_0x184e06(0x1d7)][_0x184e06(0x20c)](_0x484b78));}[_0x386831(0x1c7)](_0x32ed32){var _0x4fcbbd=_0x386831;return this['_reporters'][_0x4fcbbd(0x1c2)](_0x32ed32),_0x51d81b[_0x4fcbbd(0x18b)](()=>this[_0x4fcbbd(0x17e)]['delete'](_0x32ed32));}[_0x386831(0x1f6)](_0xb53538){var _0x485ea0=_0x386831;return this[_0x485ea0(0x1d7)]['has'](_0xb53538);}[_0x386831(0x164)](_0x2008f9){var _0x10f819=_0x386831;return Array[_0x10f819(0x138)](this[_0x10f819(0x17e)])[_0x10f819(0x161)](_0x425197=>_0x425197(_0x2008f9));}}var _0x477a1d=Object[_0x386831(0x1b5)],_0x3ef420=(_0x92df5f,_0x27549c,_0x53a91e,_0x323b21)=>{for(var _0x66086d=_0x323b21>0x1?void 0x0:_0x323b21?_0x477a1d(_0x27549c,_0x53a91e):_0x27549c,_0x5533c7=_0x92df5f['length']-0x1,_0x33a53f;_0x5533c7>=0x0;_0x5533c7--)(_0x33a53f=_0x92df5f[_0x5533c7])&&(_0x66086d=_0x33a53f(_0x66086d)||_0x66086d);return _0x66086d;},_0x23f4d3=(_0x5307a1,_0x794bbe)=>(_0x46d89b,_0x5af19c)=>_0x794bbe(_0x46d89b,_0x5af19c,_0x5307a1);let _0x15df14=class extends _0x51d81b[_0x386831(0x157)]{constructor(_0xcbad5d){var _0x5be176=_0x386831;super(),this[_0x5be176(0x1e1)]=_0xcbad5d,this[_0x5be176(0x1f8)]();}[_0x386831(0x1f8)](){var _0x4e22f9=_0x386831;[_0x55006f['SetZoomRatioOperation']['id'],_0x55006f[_0x4e22f9(0x1b2)]['id'],_0x27819d[_0x4e22f9(0x145)]['id']][_0x4e22f9(0x170)](_0x4eb34b=>{var _0x223d00=_0x4e22f9;this[_0x223d00(0x1ae)](this['_liveShareService'][_0x223d00(0x1cb)](_0x4eb34b));});}};_0x15df14=_0x3ef420([_0x23f4d3(0x0,_0x51d81b['Inject'](_0x3d5229))],_0x15df14);var _0xb226e6=function(){var _0x462089=_0x386831;return _0xb226e6=Object[_0x462089(0x1f1)]||function(_0x16dd1f){var _0x3dcd3c=_0x462089;for(var _0x28706f,_0x459f85=0x1,_0x3936fc=arguments['length'];_0x459f85<_0x3936fc;_0x459f85++){_0x28706f=arguments[_0x459f85];for(var _0x3bee3a in _0x28706f)Object[_0x3dcd3c(0x15e)][_0x3dcd3c(0x1e6)]['call'](_0x28706f,_0x3bee3a)&&(_0x16dd1f[_0x3bee3a]=_0x28706f[_0x3bee3a]);}return _0x16dd1f;},_0xb226e6[_0x462089(0x197)](this,arguments);},_0x3bbf8f=function(_0x596400,_0x3ed257){var _0x5aeeec=_0x386831,_0x2e5e9d={};for(var _0xd2543e in _0x596400)Object[_0x5aeeec(0x15e)]['hasOwnProperty'][_0x5aeeec(0x158)](_0x596400,_0xd2543e)&&_0x3ed257['indexOf'](_0xd2543e)<0x0&&(_0x2e5e9d[_0xd2543e]=_0x596400[_0xd2543e]);if(_0x596400!=null&&typeof Object[_0x5aeeec(0x1a3)]=='function'){for(var _0x49ef51=0x0,_0xd2543e=Object['getOwnPropertySymbols'](_0x596400);_0x49ef51<_0xd2543e[_0x5aeeec(0x18d)];_0x49ef51++)_0x3ed257[_0x5aeeec(0x1a1)](_0xd2543e[_0x49ef51])<0x0&&Object[_0x5aeeec(0x15e)][_0x5aeeec(0x227)]['call'](_0x596400,_0xd2543e[_0x49ef51])&&(_0x2e5e9d[_0xd2543e[_0x49ef51]]=_0x596400[_0xd2543e[_0x49ef51]]);}return _0x2e5e9d;},_0x14fbb3=_0x4a562c[_0x386831(0x1fb)](function(_0x2b44ba,_0x51f019){var _0xcccb99=_0x386831,_0x477f5a=_0x2b44ba[_0xcccb99(0x223)],_0x3d7fc4=_0x2b44ba['id'],_0x4c5c91=_0x2b44ba[_0xcccb99(0x17f)],_0x4a6f19=_0x2b44ba[_0xcccb99(0x18a)],_0x5cdba3=_0x3bbf8f(_0x2b44ba,[_0xcccb99(0x223),'id',_0xcccb99(0x17f),_0xcccb99(0x18a)]),_0x290390=_0xcccb99(0x1b3)[_0xcccb99(0x1c0)](_0x3d7fc4,'\x20')[_0xcccb99(0x1c0)](_0x4c5c91||'')[_0xcccb99(0x15b)](),_0x51a4a5=_0x4a562c[_0xcccb99(0x1ad)]('_'[_0xcccb99(0x1c0)](_0x2710b3()));return _0x2a08a9(_0x477f5a,''[_0xcccb99(0x1c0)](_0x3d7fc4),{'defIds':_0x477f5a[_0xcccb99(0x1b9)],'idSuffix':_0x51a4a5[_0xcccb99(0x1a6)]},_0xb226e6({'ref':_0x51f019,'className':_0x290390},_0x5cdba3),_0x4a6f19);});function _0x2a08a9(_0x2eb2f7,_0x4af308,_0x401556,_0x2b6897,_0x11c0e6){var _0x4b7a82=_0x386831;return _0x4a562c[_0x4b7a82(0x18e)](_0x2eb2f7[_0x4b7a82(0x1c4)],_0xb226e6(_0xb226e6({'key':_0x4af308},_0x3ee302(_0x2eb2f7,_0x401556,_0x11c0e6)),_0x2b6897),(_0x41a256(_0x2eb2f7,_0x401556)[_0x4b7a82(0x198)]||[])['map'](function(_0x4c7337,_0x92dd18){var _0x244569=_0x4b7a82;return _0x2a08a9(_0x4c7337,''['concat'](_0x4af308,'-')['concat'](_0x2eb2f7[_0x244569(0x1c4)],'-')[_0x244569(0x1c0)](_0x92dd18),_0x401556,void 0x0,_0x11c0e6);}));}function _0x3ee302(_0x54f251,_0x4753e5,_0xc3dd6c){var _0x146c6a=_0x386831,_0x2d17df=_0xb226e6({},_0x54f251['attrs']);_0xc3dd6c!=null&&_0xc3dd6c[_0x146c6a(0x20b)]&&_0x2d17df['fill']==='colorChannel1'&&(_0x2d17df[_0x146c6a(0x215)]=_0xc3dd6c[_0x146c6a(0x20b)]),_0x54f251['tag']===_0x146c6a(0x169)&&_0x2d17df['id']&&(_0x2d17df['id']=_0x2d17df['id']+_0x4753e5[_0x146c6a(0x159)]),Object[_0x146c6a(0x189)](_0x2d17df)[_0x146c6a(0x170)](function(_0x3eed55){var _0x4b44cf=_0x146c6a,_0x43ba37=_0x3eed55[0x0],_0x3f3295=_0x3eed55[0x1];_0x43ba37===_0x4b44cf(0x169)&&typeof _0x3f3295==_0x4b44cf(0x1e2)&&(_0x2d17df[_0x43ba37]=_0x3f3295['replace'](/url\(#(.*)\)/,_0x4b44cf(0x1be)[_0x4b44cf(0x1c0)](_0x4753e5[_0x4b44cf(0x159)],')')));});var _0x2eb003=_0x4753e5[_0x146c6a(0x1b9)];return!_0x2eb003||_0x2eb003[_0x146c6a(0x18d)]===0x0||(_0x54f251[_0x146c6a(0x1c4)]===_0x146c6a(0x149)&&_0x2d17df[_0x146c6a(0x20f)]&&(_0x2d17df[_0x146c6a(0x20f)]=_0x2d17df[_0x146c6a(0x20f)]+_0x4753e5[_0x146c6a(0x159)]),Object[_0x146c6a(0x189)](_0x2d17df)[_0x146c6a(0x170)](function(_0x608144){var _0x39eb42=_0x146c6a,_0x5050ab=_0x608144[0x0],_0x123f87=_0x608144[0x1];typeof _0x123f87==_0x39eb42(0x1e2)&&(_0x2d17df[_0x5050ab]=_0x123f87[_0x39eb42(0x1cf)](/url\(#(.*)\)/,_0x39eb42(0x1be)[_0x39eb42(0x1c0)](_0x4753e5[_0x39eb42(0x159)],')')));})),_0x2d17df;}function _0x41a256(_0x5c9a3b,_0x483fee){var _0x26d0e5=_0x386831,_0x2c5b11,_0x1cf153=_0x483fee['defIds'];return!_0x1cf153||_0x1cf153[_0x26d0e5(0x18d)]===0x0?_0x5c9a3b:_0x5c9a3b['tag']===_0x26d0e5(0x16b)&&(!((_0x2c5b11=_0x5c9a3b[_0x26d0e5(0x198)])===null||_0x2c5b11===void 0x0)&&_0x2c5b11[_0x26d0e5(0x18d)])?_0xb226e6(_0xb226e6({},_0x5c9a3b),{'children':_0x5c9a3b[_0x26d0e5(0x198)][_0x26d0e5(0x161)](function(_0x9cc06c){var _0x184a91=_0x26d0e5;return typeof _0x9cc06c[_0x184a91(0x1e3)]['id']==_0x184a91(0x1e2)&&_0x1cf153&&_0x1cf153['includes'](_0x9cc06c[_0x184a91(0x1e3)]['id'])?_0xb226e6(_0xb226e6({},_0x9cc06c),{'attrs':_0xb226e6(_0xb226e6({},_0x9cc06c[_0x184a91(0x1e3)]),{'id':_0x9cc06c['attrs']['id']+_0x483fee[_0x184a91(0x159)]})}):_0x9cc06c;})}):_0x5c9a3b;}function _0x2710b3(){var _0xa6a389=_0x386831;return Math[_0xa6a389(0x183)]()['toString'](0x24)[_0xa6a389(0x1f3)](0x2,0x8);}_0x14fbb3[_0x386831(0x176)]=_0x386831(0x177);var _0x574ab3={'tag':_0x386831(0x1fc),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x386831(0x17d),'viewBox':_0x386831(0x21a),'width':_0x386831(0x205),'height':'1em'},'children':[{'tag':_0x386831(0x184),'attrs':{'fill':_0x386831(0x167),'d':_0x386831(0x155)}},{'tag':'path','attrs':{'fill':_0x386831(0x167),'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':_0x386831(0x1ce),'clipRule':'evenodd'}}]},_0x336fa9=_0x4a562c['forwardRef'](function(_0x58c821,_0x10c92c){var _0x2f0a7a=_0x386831;return _0x4a562c[_0x2f0a7a(0x18e)](_0x14fbb3,Object[_0x2f0a7a(0x1f1)]({},_0x58c821,{'id':_0x2f0a7a(0x201),'ref':_0x10c92c,'icon':_0x574ab3}));});_0x336fa9[_0x386831(0x176)]=_0x386831(0x181);var _0x70ec46=Object[_0x386831(0x1b5)],_0x4a73d6=(_0x53d8f3,_0x22f474,_0x2e1dba,_0x1563e3)=>{var _0x488e60=_0x386831;for(var _0x6a6231=_0x1563e3>0x1?void 0x0:_0x1563e3?_0x70ec46(_0x22f474,_0x2e1dba):_0x22f474,_0x25adbe=_0x53d8f3[_0x488e60(0x18d)]-0x1,_0xdb187e;_0x25adbe>=0x0;_0x25adbe--)(_0xdb187e=_0x53d8f3[_0x25adbe])&&(_0x6a6231=_0xdb187e(_0x6a6231)||_0x6a6231);return _0x6a6231;},_0xcf86fc=(_0x5a20d5,_0x8056d4)=>(_0x107e32,_0x5380bd)=>_0x8056d4(_0x107e32,_0x5380bd,_0x5a20d5);_0x177b7c[_0x386831(0x1b8)]=class extends _0x51d81b[_0x386831(0x166)]{constructor(_0x14e211,_0x3eb420,_0x24a84f){var _0x127bb3=_0x386831;super(),_0x5bd50c(this,_0x127bb3(0x17b),new Map()),(this[_0x127bb3(0x174)]=_0x14e211,this[_0x127bb3(0x217)]=_0x3eb420,this[_0x127bb3(0x209)]=_0x24a84f,this[_0x127bb3(0x1f8)]());}async['getLiveShareCoordinator'](_0xc710ae){var _0x3f6baa=_0x386831;return this[_0x3f6baa(0x17b)]['has'](_0xc710ae)||await this[_0x3f6baa(0x1d3)](_0xc710ae),this['_entities'][_0x3f6baa(0x19b)](_0xc710ae);}['_init'](){var _0x1bb7ba=_0x386831;this[_0x1bb7ba(0x174)]['getTypeOfUnitAdded$'](_0x51d81b[_0x1bb7ba(0x1cc)]['UNIVER_SHEET'])[_0x1bb7ba(0x13f)](_0x3a5901[_0x1bb7ba(0x1d1)](this[_0x1bb7ba(0x222)]))[_0x1bb7ba(0x1e8)](async _0x59eba3=>{var _0x3d91a3=_0x1bb7ba;const _0x30a2eb=_0x59eba3[_0x3d91a3(0x1de)]();this[_0x3d91a3(0x17b)][_0x3d91a3(0x1d0)](_0x30a2eb)||this['_startLiveShareCoordinator'](_0x30a2eb);}),this[_0x1bb7ba(0x174)]['getTypeOfUnitDisposed$'](_0x51d81b[_0x1bb7ba(0x1cc)]['UNIVER_SHEET'])['pipe'](_0x3a5901['takeUntil'](this[_0x1bb7ba(0x222)]))[_0x1bb7ba(0x1e8)](_0x51a8c8=>{var _0x3e51ea=_0x1bb7ba;const _0x2b68e0=_0x51a8c8[_0x3e51ea(0x1de)](),_0x1ae2f9=this['_entities']['get'](_0x2b68e0);_0x1ae2f9==null||_0x1ae2f9[_0x3e51ea(0x19d)]();});}async[_0x386831(0x1d3)](_0x65949e){var _0x3e9988=_0x386831;const _0x5234e7=await this['_collabSessionService']['requireSession'](_0x65949e),_0x4c1550=this[_0x3e9988(0x217)]['createInstance'](_0x177b7c[_0x3e9988(0x199)],_0x65949e,_0x5234e7);return _0x4c1550[_0x3e9988(0x19c)](),this['_entities'][_0x3e9988(0x1b6)](_0x65949e,_0x4c1550),_0x4c1550;}},_0x177b7c['LiveShareController']=_0x4a73d6([_0xcf86fc(0x0,_0x51d81b[_0x386831(0x20d)]),_0xcf86fc(0x1,_0x51d81b['Inject'](_0x51d81b[_0x386831(0x21c)])),_0xcf86fc(0x2,_0x51d81b['Inject'](_0x960837[_0x386831(0x172)]))],_0x177b7c['LiveShareController']);var _0x69b623=(_0x105171=>(_0x105171['OFFLINE']='offline',_0x105171[_0x386831(0x150)]='idle',_0x105171['FOLLOWING']='following',_0x105171['NOT_FOLLOWING']=_0x386831(0x1a4),_0x105171[_0x386831(0x1c1)]='presenting',_0x105171))(_0x69b623||{});const _0x58f3a8=_0x386831(0x224),_0x234618=0xc8;_0x177b7c['LiveShareCoordinator']=class extends _0x51d81b[_0x386831(0x166)]{constructor(_0x3f83ea,_0x5802e7,_0xdfe986,_0x133274,_0x667e7){var _0x2878e3=_0x386831;super(),_0x5bd50c(this,'_status$',new _0x421b15[(_0x2878e3(0x178))]('idle')),_0x5bd50c(this,_0x2878e3(0x14f),this[_0x2878e3(0x193)][_0x2878e3(0x200)]()),_0x5bd50c(this,'_init',!0x1),_0x5bd50c(this,_0x2878e3(0x14d),null),_0x5bd50c(this,'_presenter',null),(this[_0x2878e3(0x1f4)]=_0x3f83ea,this[_0x2878e3(0x180)]=_0x5802e7,this[_0x2878e3(0x143)]=_0xdfe986,this[_0x2878e3(0x1e1)]=_0x133274,this[_0x2878e3(0x16a)]=_0x667e7);}get[_0x386831(0x1bf)](){var _0xce0581=_0x386831;return this[_0xce0581(0x193)][_0xce0581(0x171)]();}[_0x386831(0x19d)](){var _0x1ae9f9=_0x386831,_0x6ced23;(_0x6ced23=this[_0x1ae9f9(0x14d)])==null||_0x6ced23[_0x1ae9f9(0x19d)](),this[_0x1ae9f9(0x193)][_0x1ae9f9(0x21d)](_0x1ae9f9(0x154)),this[_0x1ae9f9(0x193)][_0x1ae9f9(0x13c)]();}[_0x386831(0x19c)](){var _0x2454b7=_0x386831;this[_0x2454b7(0x1f8)]||(this[_0x2454b7(0x1f8)]=!0x0,this['_collabSession']['sessionStatus$'][_0x2454b7(0x13f)](_0x3a5901[_0x2454b7(0x1d1)](this['dispose$']))[_0x2454b7(0x1e8)](_0x43e3c5=>{var _0x46ab5b=_0x2454b7;switch(_0x43e3c5){case _0x960837[_0x46ab5b(0x203)][_0x46ab5b(0x141)]:this['_handleOffline']();break;case _0x960837['SessionStatus'][_0x46ab5b(0x15f)]:this[_0x46ab5b(0x207)]();break;}}),this[_0x2454b7(0x180)][_0x2454b7(0x15d)][_0x2454b7(0x13f)](_0x3a5901[_0x2454b7(0x1d1)](this['dispose$']))[_0x2454b7(0x1e8)](_0x3f9301=>{var _0x3a9385=_0x2454b7;const {eventID:_0xf0d3e8}=_0x3f9301;switch(_0xf0d3e8){case _0x120665['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x3a9385(0x21f)](_0x3f9301);break;case _0x120665['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x3a9385(0x1b1)](_0x3f9301);break;case _0x120665[_0x3a9385(0x1d6)][_0x3a9385(0x182)]:this[_0x3a9385(0x1ee)]();break;case _0x120665[_0x3a9385(0x1d6)]['NEW_CHANGESETS']:this[_0x3a9385(0x1a2)](_0x3f9301);break;}}));}[_0x386831(0x1ea)](){var _0x2170bd=_0x386831;this[_0x2170bd(0x180)]['send']({'eventID':_0x120665['CollaborationEvent'][_0x2170bd(0x16d)],'data':{'unitID':this[_0x2170bd(0x1f4)],'userID':this['_collabSession'][_0x2170bd(0x1c5)]()}},this[_0x2170bd(0x1f4)]);}[_0x386831(0x1d9)](){var _0x15c3b2=_0x386831;this[_0x15c3b2(0x1bf)]===_0x15c3b2(0x147)&&(this['_status$']['next']('idle'),this['_collabSession']['send']({'eventID':_0x120665[_0x15c3b2(0x1d6)][_0x15c3b2(0x182)],'data':{'unitID':this[_0x15c3b2(0x1f4)]}},this[_0x15c3b2(0x1f4)]));}[_0x386831(0x1f2)](){var _0x1cb197=_0x386831;this[_0x1cb197(0x1bf)]===_0x1cb197(0x1a4)&&(this[_0x1cb197(0x193)][_0x1cb197(0x21d)](_0x1cb197(0x195)),this[_0x1cb197(0x1ed)]());}[_0x386831(0x1e5)](){var _0x9eb151=_0x386831;this[_0x9eb151(0x1bf)]===_0x9eb151(0x195)&&this[_0x9eb151(0x179)]();}['_handleNewHost'](_0x57f4a7){var _0x415abc=_0x386831;const {presenter:_0x5acb0c}=_0x57f4a7[_0x415abc(0x160)],_0x5bad31=this[_0x415abc(0x180)][_0x415abc(0x1c5)]();this[_0x415abc(0x13b)]=_0x5acb0c,_0x5acb0c===_0x5bad31?(this['_stopFollowing'](),this[_0x415abc(0x221)]()):this['_status']!=='not-following'&&(this[_0x415abc(0x219)](),this[_0x415abc(0x1ed)]());}[_0x386831(0x185)](){var _0x317e99=_0x386831;const _0x43e76={'eventID':_0x120665[_0x317e99(0x1d6)][_0x317e99(0x1a5)]};this[_0x317e99(0x180)][_0x317e99(0x17c)](_0x43e76,this[_0x317e99(0x1f4)]);}[_0x386831(0x1ee)](){var _0x1445b5=_0x386831;this['_presenter']=null,this['_status']!==_0x1445b5(0x147)&&this[_0x1445b5(0x14e)]();}[_0x386831(0x1a2)](_0x2a65b7){var _0x56885c=_0x386831;if(this[_0x56885c(0x1bf)]===_0x56885c(0x195)&&this[_0x56885c(0x13b)]===_0x2a65b7['data']['memberID']){const _0xc3ba24=_0x120665[_0x56885c(0x1c3)](_0x2a65b7['data'])[_0x56885c(0x1af)][_0x56885c(0x1ff)]()[_0x56885c(0x188)](_0x5d16f1=>_0x5d16f1['id']===_0x27819d[_0x56885c(0x191)]['id']);if(_0xc3ba24){const _0x1cacc2=_0xc3ba24[_0x56885c(0x1f5)][_0x56885c(0x1bc)],_0x244f0e=_0xc3ba24[_0x56885c(0x1f5)]['sheet']['id'];setTimeout(()=>{var _0x3a64a7=_0x56885c;this['_commandService'][_0x3a64a7(0x1b0)](_0x27819d[_0x3a64a7(0x145)]['id'],{'unitId':_0x1cacc2,'subUnitId':_0x244f0e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x22ca38=_0x386831;this[_0x22ca38(0x193)][_0x22ca38(0x21d)](_0x22ca38(0x147));const _0x40d913=new Map(),_0x575acf=this['_commandDisposable']=new _0x51d81b['DisposableCollection']();_0x575acf[_0x22ca38(0x1c2)](_0x51d81b[_0x22ca38(0x18b)](()=>{var _0x206f2d=_0x22ca38;_0x40d913[_0x206f2d(0x170)](_0x563da8=>_0x563da8[_0x206f2d(0x13c)]()),_0x40d913[_0x206f2d(0x211)]();})),_0x575acf[_0x22ca38(0x1c2)](this[_0x22ca38(0x16a)][_0x22ca38(0x1fe)](_0x5a2dac=>{var _0x1f6062=_0x22ca38,_0x2e185e;if(_0x5a2dac['type']!==_0x51d81b['CommandType'][_0x1f6062(0x1d2)]||!this[_0x1f6062(0x1e1)][_0x1f6062(0x1f6)](_0x5a2dac['id']))return;const {id:_0x20a89d}=_0x5a2dac;let _0x1c4010;_0x40d913[_0x1f6062(0x1d0)](_0x20a89d)?_0x1c4010=_0x40d913['get'](_0x20a89d):(_0x1c4010=new _0x421b15[(_0x1f6062(0x226))](),_0x40d913['set'](_0x20a89d,_0x1c4010),_0x1c4010[_0x1f6062(0x13f)](_0x3a5901['throttleTime']((_0x2e185e=this['_configService'][_0x1f6062(0x1ab)](_0x58f3a8))!=null?_0x2e185e:_0x234618,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x409c84=>{var _0x2479ab=_0x1f6062;this[_0x2479ab(0x180)][_0x2479ab(0x17c)]({'eventID':_0x120665[_0x2479ab(0x1d6)][_0x2479ab(0x218)],'data':{'unitID':this[_0x2479ab(0x1f4)],'operations':{[_0x409c84['id']]:{'id':_0x409c84['id'],'params':JSON[_0x2479ab(0x146)](_0x409c84['params'])}}}},this[_0x2479ab(0x1f4)]);})),_0x1c4010[_0x1f6062(0x21d)](_0x5a2dac);})),this[_0x22ca38(0x1e1)][_0x22ca38(0x164)](this[_0x22ca38(0x1f4)])[_0x22ca38(0x170)](_0x5d6fb1=>this['_collabSession'][_0x22ca38(0x17c)]({'eventID':_0x120665[_0x22ca38(0x1d6)][_0x22ca38(0x218)],'data':{'unitID':this[_0x22ca38(0x1f4)],'operations':{[_0x5d6fb1['id']]:{'id':_0x5d6fb1['id'],'params':JSON[_0x22ca38(0x146)](_0x5d6fb1[_0x22ca38(0x1f5)])}}}},this[_0x22ca38(0x1f4)]));}[_0x386831(0x219)](){var _0x9e318a=_0x386831,_0x33a45;this[_0x9e318a(0x193)][_0x9e318a(0x21d)](_0x9e318a(0x154)),(_0x33a45=this[_0x9e318a(0x14d)])==null||_0x33a45[_0x9e318a(0x19d)](),this[_0x9e318a(0x14d)]=null;}[_0x386831(0x1ed)](){var _0x548a52=_0x386831,_0x1dbf09;(_0x1dbf09=this['_commandDisposable'])==null||_0x1dbf09[_0x548a52(0x19d)](),this[_0x548a52(0x193)]['next'](_0x548a52(0x195));}[_0x386831(0x14e)](){var _0x30caf4=_0x386831,_0x432468;this[_0x30caf4(0x193)]['next'](_0x30caf4(0x154)),(_0x432468=this[_0x30caf4(0x14d)])==null||_0x432468[_0x30caf4(0x19d)](),this[_0x30caf4(0x14d)]=null;}['_stopFollowing'](){var _0x4fc335=_0x386831,_0x3bf878;this['_status$'][_0x4fc335(0x21d)](_0x4fc335(0x1a4)),(_0x3bf878=this[_0x4fc335(0x14d)])==null||_0x3bf878[_0x4fc335(0x19d)]();}['_handleOperation'](_0x32ec64){var _0x3d33a9=_0x386831;if([_0x3d33a9(0x147),_0x3d33a9(0x1a4),_0x3d33a9(0x13e)][_0x3d33a9(0x1e4)](this[_0x3d33a9(0x1bf)])||!_0x32ec64[_0x3d33a9(0x160)]['presenter']||_0x32ec64['data'][_0x3d33a9(0x163)]===this[_0x3d33a9(0x180)][_0x3d33a9(0x1c5)]())return;this['_status']===_0x3d33a9(0x154)&&this[_0x3d33a9(0x1ed)]();const _0x237b26=_0x32ec64[_0x3d33a9(0x160)][_0x3d33a9(0x194)];Object['values'](_0x237b26)['forEach'](_0x5cf800=>{var _0x48f3b2=_0x3d33a9;this['_commandService']['executeCommand'](_0x5cf800['id'],_0x5cf800[_0x48f3b2(0x1f5)]?JSON['parse'](_0x5cf800[_0x48f3b2(0x1f5)]):null,{'fromCollab':!0x0});});}[_0x386831(0x1ef)](){var _0x3576e7=_0x386831,_0x2cf6b5;this[_0x3576e7(0x193)][_0x3576e7(0x21d)](_0x3576e7(0x13e)),(_0x2cf6b5=this[_0x3576e7(0x14d)])==null||_0x2cf6b5[_0x3576e7(0x19d)]();}[_0x386831(0x207)](){var _0x3936c4=_0x386831;this[_0x3936c4(0x193)][_0x3936c4(0x21d)](_0x3936c4(0x154)),this[_0x3936c4(0x185)]();}},_0x177b7c['LiveShareCoordinator']=_0x4a73d6([_0xcf86fc(0x2,_0x51d81b['IConfigService']),_0xcf86fc(0x3,_0x51d81b[_0x386831(0x190)](_0x3d5229)),_0xcf86fc(0x4,_0x51d81b['ICommandService'])],_0x177b7c['LiveShareCoordinator']);function _0x30876a(){var _0x33d747=_0x386831;const _0x5673f7=_0x235d65[_0x33d747(0x1eb)](_0x177b7c['LiveShareController']),_0x495814=_0x235d65[_0x33d747(0x1eb)](_0x51d81b['IUniverInstanceService']),_0x4e6fbe=_0x235d65['useObservable'](()=>_0x495814['getCurrentTypeOfUnit$'](_0x51d81b[_0x33d747(0x1cc)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x9ff591,_0x52b5c3]=_0x4a562c[_0x33d747(0x1d4)](null),[_0x5ed7e5,_0x2718f9]=_0x4a562c[_0x33d747(0x1d4)](_0x69b623[_0x33d747(0x150)]),_0x5c7f34=_0x4a562c[_0x33d747(0x1ad)](null);return _0x4a562c[_0x33d747(0x16f)](()=>(_0x4e6fbe&&_0x5673f7[_0x33d747(0x15a)](_0x4e6fbe[_0x33d747(0x1de)]())[_0x33d747(0x210)](_0x595148=>{var _0x38a51a=_0x33d747;_0x52b5c3(_0x595148),_0x5c7f34[_0x38a51a(0x1a6)]=_0x595148[_0x38a51a(0x14f)][_0x38a51a(0x1e8)](_0x2655c9=>{_0x2718f9(_0x2655c9);});}),()=>{var _0x261a0e=_0x33d747,_0x2d2edd;(_0x2d2edd=_0x5c7f34[_0x261a0e(0x1a6)])==null||_0x2d2edd[_0x261a0e(0x21e)](),_0x5c7f34[_0x261a0e(0x1a6)]=null;}),[_0x4e6fbe,_0x5673f7]),_0x9ff591?_0x14688c['jsx'](_0x16e5fb[_0x33d747(0x165)],{'align':'end','disabled':_0x5ed7e5===_0x69b623[_0x33d747(0x141)],'className':_0x33d747(0x16e),'overlay':_0x14688c[_0x33d747(0x151)](_0x16751c,{'status':_0x5ed7e5,'coordinator':_0x9ff591}),'children':_0x14688c['jsx']('button',{'className':_0x16e5fb[_0x33d747(0x1ec)](_0x33d747(0x142),{'univer-cursor-not-allowed':_0x5ed7e5===_0x69b623[_0x33d747(0x141)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5ed7e5!==_0x69b623[_0x33d747(0x141)]}),'type':_0x33d747(0x1cd),'children':_0x14688c[_0x33d747(0x151)](_0x336fa9,{'className':_0x33d747(0x1f9)})})}):null;}function _0x16751c(_0x41aa86){var _0x54f326=_0x386831;const {status:_0x1a2b0c,coordinator:_0x3fa986}=_0x41aa86;switch(_0x1a2b0c){case _0x69b623['IDLE']:return _0x14688c[_0x54f326(0x151)](_0x436405,{'coordinator':_0x3fa986});case _0x69b623['FOLLOWING']:return _0x14688c[_0x54f326(0x151)](_0x246153,{'coordinator':_0x3fa986});case _0x69b623[_0x54f326(0x19a)]:return _0x14688c[_0x54f326(0x151)](_0x5c0c52,{'coordinator':_0x3fa986});case _0x69b623[_0x54f326(0x141)]:return _0x14688c[_0x54f326(0x151)](_0x1df1dd,{});case _0x69b623['PRESENTING']:return _0x14688c[_0x54f326(0x151)](_0x3086d9,{'coordinator':_0x3fa986});default:return null;}}function _0x436405(_0x48b1bc){var _0x502841=_0x386831;const {coordinator:_0x3139af}=_0x48b1bc;return _0x14688c[_0x502841(0x18f)](_0x14688c[_0x502841(0x1aa)],{'children':[_0x14688c[_0x502841(0x151)](_0x502841(0x17a),{'className':_0x502841(0x1a9),'children':_0x502841(0x1b7)}),_0x14688c[_0x502841(0x151)](_0x16e5fb[_0x502841(0x1df)],{'onClick':()=>_0x3139af[_0x502841(0x1ea)](),'children':_0x502841(0x1c6)})]});}function _0x246153(_0x48258f){var _0x1e33d4=_0x386831;const {coordinator:_0x1daf35}=_0x48258f;return _0x14688c['jsxs'](_0x14688c[_0x1e33d4(0x1aa)],{'children':[_0x14688c[_0x1e33d4(0x151)](_0x1e33d4(0x17a),{'className':_0x1e33d4(0x1a9),'children':_0x1e33d4(0x15c)}),_0x14688c[_0x1e33d4(0x151)](_0x16e5fb[_0x1e33d4(0x1df)],{'onClick':()=>_0x1daf35[_0x1e33d4(0x1e5)](),'children':'Stop\x20following'})]});}function _0x5c0c52(_0x347b17){var _0x24c650=_0x386831;const {coordinator:_0x5d2c9c}=_0x347b17;return _0x14688c[_0x24c650(0x18f)](_0x14688c['Fragment'],{'children':[_0x14688c[_0x24c650(0x151)](_0x24c650(0x17a),{'className':_0x24c650(0x1a9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x14688c[_0x24c650(0x151)](_0x16e5fb[_0x24c650(0x1df)],{'variant':_0x24c650(0x1d8),'onClick':()=>_0x5d2c9c[_0x24c650(0x1f2)](),'children':_0x24c650(0x14b)})]});}function _0x3086d9(_0x516836){var _0x1ceabb=_0x386831;const {coordinator:_0x219eb6}=_0x516836;return _0x14688c['jsxs'](_0x14688c[_0x1ceabb(0x1aa)],{'children':[_0x14688c[_0x1ceabb(0x151)](_0x1ceabb(0x17a),{'className':_0x1ceabb(0x1a9),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x14688c[_0x1ceabb(0x151)](_0x16e5fb[_0x1ceabb(0x1df)],{'variant':_0x1ceabb(0x144),'onClick':()=>_0x219eb6[_0x1ceabb(0x1d9)](),'children':_0x1ceabb(0x213)})]});}function _0x1df1dd(){var _0x358ea2=_0x386831;return _0x14688c[_0x358ea2(0x151)](_0x14688c[_0x358ea2(0x1aa)],{'children':'You\x27are\x20offline.'});}var _0x1623be=Object[_0x386831(0x1b5)],_0x35fe6b=(_0xbc6b68,_0x3dc28e,_0x1c65b3,_0x136970)=>{var _0x24dad4=_0x386831;for(var _0x4cff04=_0x136970>0x1?void 0x0:_0x136970?_0x1623be(_0x3dc28e,_0x1c65b3):_0x3dc28e,_0x44607e=_0xbc6b68[_0x24dad4(0x18d)]-0x1,_0xc8544c;_0x44607e>=0x0;_0x44607e--)(_0xc8544c=_0xbc6b68[_0x44607e])&&(_0x4cff04=_0xc8544c(_0x4cff04)||_0x4cff04);return _0x4cff04;},_0x2320df=(_0x11ae70,_0x423224)=>(_0x350abe,_0x3e125b)=>_0x423224(_0x350abe,_0x3e125b,_0x11ae70);_0x177b7c[_0x386831(0x206)]=class extends _0x51d81b[_0x386831(0x157)]{constructor(_0x4ce541,_0x39c2a1){var _0x6a9490=_0x386831;super(),this['_injector']=_0x4ce541,this[_0x6a9490(0x1ca)]=_0x39c2a1,this[_0x6a9490(0x1dd)]();}[_0x386831(0x1dd)](){var _0x163ad1=_0x386831;this['disposeWithMe'](this[_0x163ad1(0x1ca)]['registerComponent'](_0x235d65[_0x163ad1(0x212)][_0x163ad1(0x13a)],()=>_0x235d65['connectInjector'](_0x30876a,this[_0x163ad1(0x217)])));}},_0x177b7c[_0x386831(0x206)]=_0x35fe6b([_0x2320df(0x0,_0x51d81b['Inject'](_0x51d81b['Injector'])),_0x2320df(0x1,_0x235d65['IUIPartsService'])],_0x177b7c[_0x386831(0x206)]);var _0x21ad1d=Object[_0x386831(0x1a0)],_0xcaf7a5=Object['getOwnPropertyDescriptor'],_0x1341d2=(_0x249412,_0x44bd75,_0x4d20a7)=>_0x44bd75 in _0x249412?_0x21ad1d(_0x249412,_0x44bd75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d20a7}):_0x249412[_0x44bd75]=_0x4d20a7,_0x451925=(_0x2873f4,_0x8fe6c9,_0x4cf4ea,_0x14fff8)=>{var _0x1da883=_0x386831;for(var _0x4708a3=_0x14fff8>0x1?void 0x0:_0x14fff8?_0xcaf7a5(_0x8fe6c9,_0x4cf4ea):_0x8fe6c9,_0x2373c7=_0x2873f4[_0x1da883(0x18d)]-0x1,_0x8b2894;_0x2373c7>=0x0;_0x2373c7--)(_0x8b2894=_0x2873f4[_0x2373c7])&&(_0x4708a3=_0x8b2894(_0x4708a3)||_0x4708a3);return _0x4708a3;},_0x3b0a92=(_0x5f33e4,_0x35de8f)=>(_0x225b9c,_0x349f4f)=>_0x35de8f(_0x225b9c,_0x349f4f,_0x5f33e4),_0x5c30bb=(_0x39bd08,_0x57ca6a,_0x28382a)=>_0x1341d2(_0x39bd08,typeof _0x57ca6a!='symbol'?_0x57ca6a+'':_0x57ca6a,_0x28382a);const _0x138be7=_0x386831(0x1c9);_0x177b7c['UniverLiveSharePlugin']=class extends _0x51d81b[_0x386831(0x1c8)]{constructor(_0x4ee5c8=_0x2ba4c9,_0x398be6,_0x572a9c){var _0x22d633=_0x386831;super(),this['_config']=_0x4ee5c8,this['_injector']=_0x398be6,this['_configService']=_0x572a9c;const {..._0x506638}=_0x51d81b[_0x22d633(0x208)]({},_0x2ba4c9,this[_0x22d633(0x19f)]);this['_configService']['setConfig'](_0x5c26bd,_0x506638);}[_0x386831(0x186)](){var _0x34542d=_0x386831;_0x51d81b[_0x34542d(0x20a)](this[_0x34542d(0x217)],_0x51d81b[_0x34542d(0x214)]([[_0x3d5229],[_0x177b7c['LiveShareController']],[_0x15df14],[_0x177b7c[_0x34542d(0x206)]]],this[_0x34542d(0x19f)]['override'])),_0x51d81b[_0x34542d(0x1e9)](this['_injector'],[[_0x15df14]]);}[_0x386831(0x1bb)](){var _0xb52e07=_0x386831;_0x51d81b[_0xb52e07(0x1e9)](this[_0xb52e07(0x217)],[[_0x177b7c['DesktopLiveShareController']]]);}},_0x5c30bb(_0x177b7c[_0x386831(0x1dc)],'type',_0x51d81b[_0x386831(0x1cc)][_0x386831(0x1d5)]),_0x5c30bb(_0x177b7c['UniverLiveSharePlugin'],_0x386831(0x21b),_0x138be7),_0x177b7c[_0x386831(0x1dc)]=_0x451925([_0x51d81b[_0x386831(0x148)](_0x960837[_0x386831(0x192)]),_0x3b0a92(0x1,_0x51d81b[_0x386831(0x190)](_0x51d81b[_0x386831(0x21c)])),_0x3b0a92(0x2,_0x51d81b[_0x386831(0x173)])],_0x177b7c[_0x386831(0x1dc)]),_0x177b7c[_0x386831(0x18c)]=_0x30876a,_0x177b7c[_0x386831(0x1da)]=_0x3d5229,_0x177b7c[_0x386831(0x20e)]=_0x69b623,Object[_0x386831(0x1a0)](_0x177b7c,Symbol['toStringTag'],{'value':_0x386831(0x225)});}));function _0x17c9(_0x42af62,_0x9d30f9){var _0x48f3d5=_0x48f3();return _0x17c9=function(_0x17c97c,_0x24935f){_0x17c97c=_0x17c97c-0x138;var _0x52521e=_0x48f3d5[_0x17c97c];return _0x52521e;},_0x17c9(_0x42af62,_0x9d30f9);}function _0x48f3(){var _0x47b2ba=['disposeWithMe','mutations','executeCommand','_handleOperation','SetScrollOperation','univerjs-icon\x20univerjs-icon-','2122108qvpCGi','getOwnPropertyDescriptor','set','Present\x20this\x20document','LiveShareController','defIds','525660fAEmzX','onRendered','unitId','object','url(#$1','_status','concat','PRESENTING','add','parseProtocolChangeset','tag','getMemberID','Start','registerInitialStateReporter','Plugin','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','registerSharedOperation','UniverInstanceType','button','evenodd','replace','has','takeUntil','OPERATION','_startLiveShareCoordinator','useState','UNIVER_UNKNOWN','CollaborationEvent','_sharedOperations','text','stopPresenting','LiveShareService','react','UniverLiveSharePlugin','_mountLiveShare','getUnitId','Button','5UPlxmW','_liveShareService','string','attrs','includes','stopFollowing','hasOwnProperty','@univerjs/core','subscribe','touchDependencies','tryStartPresenting','useDependency','clsx','_startFollowing','_handleTerminate','_handleOffline','@univerjs/design','assign','startFollowing','substring','_unitID','params','shouldShareOperation','symbol','_init','univer-size-4','function','forwardRef','svg','33663ORBzVl','onCommandExecuted','reverse','asObservable','live-share-icon','rxjs/operators','SessionStatus','UniverCore','1em','DesktopLiveShareController','_handleOnline','merge','_collabSessionService','registerDependencies','colorChannel1','delete','IUniverInstanceService','LiveShareStatus','xlink:href','then','clear','BuiltInUIPart','Stop\x20presenting','mergeOverrideWithDependencies','fill','rxjs','_injector','LIVESHARE_OPERATION','_stopPresenting','0\x200\x2017\x2017','pluginName','Injector','next','unsubscribe','_handleNewHost','operators','_startPresenting','dispose$','icon','SAME_OPERATION_SHARE_INTERVAL','Module','Subject','propertyIsEnumerable','from','UniverProLiveShare','HEADER_MENU','_presenter','complete','500445vxzWBo','offline','pipe','2421174ybCHRc','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_configService','default','SetWorksheetActiveOperation','stringify','presenting','DependentOn','use','630lVnETD','Start\x20following','UniverProCollaborationClient','_commandDisposable','_beIdle','status$','IDLE','jsx','346905bRgmfJ','live-share.config','idle','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','208HVscqT','Disposable','call','idSuffix','getLiveShareCoordinator','trim','You\x27re\x20following\x20the\x20presenter','event$','prototype','ONLINE','data','map','@univerjs/sheets','presenter','getInitialStates','Dropdown','RxDisposable','currentColor','214iNdDnq','mask','_commandService','defs','amd','LIVESHARE_REQUEST_HOST','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','useEffect','forEach','getValue','CollaborationSessionService','IConfigService','_univerInstanceService','@univerjs-pro/collaboration','displayName','UniverIcon','BehaviorSubject','_stopFollowing','div','_entities','send','none','_reporters','className','_collabSession','LiveShareIcon','LIVESHARE_TERMINATE','random','path','_fetchOperations','onStarting','React','find','entries','extend','toDisposable','LiveShare','length','createElement','jsxs','Inject','InsertSheetMutation','UniverCollaborationClientPlugin','_status$','operations','following','@univerjs-pro/collaboration-client','apply','children','LiveShareCoordinator','NOT_FOLLOWING','get','init','dispose','UniverProCollaboration','_config','defineProperty','indexOf','_handleNewChangeSets','getOwnPropertySymbols','not-following','LIVESHARE_FETCH_OPERATIONS','current','995282HmlLZT','UniverDesign','univer-mb-3\x20univer-w-full\x20univer-text-sm','Fragment','getConfig','react/jsx-runtime','useRef'];_0x48f3=function(){return _0x47b2ba;};return _0x48f3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.9.1-nightly.
|
|
3
|
+
"version": "0.9.1-nightly.202507081607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"rxjs": ">=7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@univerjs/icons": "^0.4.
|
|
50
|
-
"@univerjs-pro/collaboration
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/sheets": "0.9.1-nightly.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/ui": "0.9.1-nightly.
|
|
56
|
-
"@univerjs/
|
|
49
|
+
"@univerjs/icons": "^0.4.6",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.9.1-nightly.202507081607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.9.1-nightly.202507081607",
|
|
52
|
+
"@univerjs/design": "0.9.1-nightly.202507081607",
|
|
53
|
+
"@univerjs/sheets": "0.9.1-nightly.202507081607",
|
|
54
|
+
"@univerjs/core": "0.9.1-nightly.202507081607",
|
|
55
|
+
"@univerjs/sheets-ui": "0.9.1-nightly.202507081607",
|
|
56
|
+
"@univerjs/ui": "0.9.1-nightly.202507081607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|